Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "2.0.0"
".": "2.1.0"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 29
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-7dbd739a81e6aaf7fc7ef1858606e7d572d309af55082a66431d9292e655e66f.yml
openapi_spec_hash: a6374d5d718a7bd9d3d54fb657e2bd9d
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-51ebe668b198157ccb18984017dd2fe35f7675220e8b933b03325b3c459ef2a6.yml
openapi_spec_hash: b3ed94bd6b59d4e32fc2c5aa8187d6b2
config_hash: ff35e224e809656528c44163aa41bebd
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# Changelog

## 2.1.0 (2026-07-08)

Full Changelog: [v2.0.0...v2.1.0](https://github.com/context-dot-dev/context-go-sdk/compare/v2.0.0...v2.1.0)

### Features

* **api:** api update ([fe71712](https://github.com/context-dot-dev/context-go-sdk/commit/fe71712de5cfc8036b6ba54bfd832b9d97d5393b))
* **api:** api update ([4938107](https://github.com/context-dot-dev/context-go-sdk/commit/4938107e38ed6e3018a9548af353d8b409604fc2))
* **api:** api update ([20e8c26](https://github.com/context-dot-dev/context-go-sdk/commit/20e8c26e9bd19c65919ff1fb2e13f967cef4c060))
* **api:** api update ([68826ea](https://github.com/context-dot-dev/context-go-sdk/commit/68826ea12d631dd6abeb2ee4f2fcbc97269be350))

## 2.0.0 (2026-07-06)

Full Changelog: [v1.5.0...v2.0.0](https://github.com/context-dot-dev/context-go-sdk/compare/v1.5.0...v2.0.0)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Or to pin the version:
<!-- x-release-please-start-version -->

```sh
go get -u 'github.com/context-dot-dev/context-go-sdk@v2.0.0'
go get -u 'github.com/context-dot-dev/context-go-sdk@v2.1.0'
```

<!-- x-release-please-end -->
Expand Down
43 changes: 42 additions & 1 deletion brand.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ func NewBrandService(opts ...option.RequestOption) (r BrandService) {

// Retrieve logos, backdrops, colors, industry, description, and more. Provide
// exactly one lookup identifier in the request body: a domain, company name, email
// address, stock ticker, or transaction descriptor.
// address, stock ticker, transaction descriptor, or direct URL. Note:
// `by_direct_url` fetches brand data only from the provided URL — not from the
// entire internet.
func (r *BrandService) Get(ctx context.Context, body BrandGetParams, opts ...option.RequestOption) (res *BrandGetResponse, err error) {
opts = slices.Concat(r.options, opts)
path := "brand/retrieve"
Expand Down Expand Up @@ -883,6 +885,13 @@ type BrandGetParams struct {
// email.
OfByTicker *BrandGetParamsBodyByTicker `json:",inline"`
// This field is a request body variant, only one variant field can be set.
// Retrieve brand data by fetching the provided URL directly. Note: if you use
// this, brand data is fetched only from the provided URL — not from the entire
// internet — so results are limited to what that single page contains. No domain
// resolution, database lookup, or cross-source enrichment is performed. Cannot be
// combined with domain, name, email, or ticker.
OfByDirectURL *BrandGetParamsBodyByDirectURL `json:",inline"`
// This field is a request body variant, only one variant field can be set.
// Identify brand data from a transaction descriptor. Cannot be combined with
// domain, name, email, or ticker.
OfByTransaction *BrandGetParamsBodyByTransaction `json:",inline"`
Expand All @@ -895,6 +904,7 @@ func (u BrandGetParams) MarshalJSON() ([]byte, error) {
u.OfByName,
u.OfByEmail,
u.OfByTicker,
u.OfByDirectURL,
u.OfByTransaction)
}
func (r *BrandGetParams) UnmarshalJSON(data []byte) error {
Expand Down Expand Up @@ -1146,6 +1156,37 @@ func init() {
)
}

// Retrieve brand data by fetching the provided URL directly. Note: if you use
// this, brand data is fetched only from the provided URL — not from the entire
// internet — so results are limited to what that single page contains. No domain
// resolution, database lookup, or cross-source enrichment is performed. Cannot be
// combined with domain, name, email, or ticker.
//
// The properties DirectURL, Type are required.
type BrandGetParamsBodyByDirectURL struct {
// Full http(s) URL to fetch brand data from (e.g.,
// 'https://stripe.com/enterprise'). Only this URL is fetched — not the entire
// internet.
DirectURL string `json:"direct_url" api:"required" format:"uri"`
// Optional timeout in milliseconds for the request. If the request takes longer
// than this value, it will be aborted with a 408 status code. Maximum allowed
// value is 300000ms (5 minutes).
TimeoutMs param.Opt[int64] `json:"timeoutMS,omitzero"`
// Discriminator for direct-URL-based brand retrieval.
//
// This field can be elided, and will marshal its zero value as "by_direct_url".
Type constant.ByDirectURL `json:"type" default:"by_direct_url"`
paramObj
}

func (r BrandGetParamsBodyByDirectURL) MarshalJSON() (data []byte, err error) {
type shadow BrandGetParamsBodyByDirectURL
return param.MarshalObject(r, (*shadow)(&r))
}
func (r *BrandGetParamsBodyByDirectURL) UnmarshalJSON(data []byte) error {
return apijson.UnmarshalRoot(data, r)
}

// Identify brand data from a transaction descriptor. Cannot be combined with
// domain, name, email, or ticker.
//
Expand Down
2 changes: 1 addition & 1 deletion internal/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

package internal

const PackageVersion = "2.0.0" // x-release-please-version
const PackageVersion = "2.1.0" // x-release-please-version
Loading
Loading