From 8a66cc603ad04b2077a1ebdc7638c865ab68164b Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 17 Aug 2026 05:38:30 +0000 Subject: [PATCH 1/7] feat(api): api update --- .stats.yml | 4 ++-- news.go | 66 ++++++++++++++++++++++++++++++++++++++++-------------- 2 files changed, 51 insertions(+), 19 deletions(-) diff --git a/.stats.yml b/.stats.yml index 4b9b1cb..f9f986b 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 41 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-5dbe631ce516ca688273053ddcb58870561bd6dc76fa75df354c954d7af65a3c.yml -openapi_spec_hash: 53a74c4cccbdec8590db38183840a446 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-5e890b591fcd62757c51fa1decc2cccc3d52d5a83097b10775507e3485776f73.yml +openapi_spec_hash: 432ee63a7d4ffca7d5993dc0853d9c81 config_hash: 0fb0ceca5946298c416cec0cca5260c7 diff --git a/news.go b/news.go index 15189ee..e4ea612 100644 --- a/news.go +++ b/news.go @@ -50,10 +50,15 @@ func (r *NewsService) Search(ctx context.Context, body NewsSearchParams, opts .. } type NewsSearchResponse struct { - Data []NewsSearchResponseData `json:"data" api:"required"` - HasMore bool `json:"has_more" api:"required"` - Meta NewsSearchResponseMeta `json:"meta" api:"required"` - NextCursor string `json:"next_cursor" api:"required"` + // Articles matching the search, in the requested order. + Data []NewsSearchResponseData `json:"data" api:"required"` + // True when more results are available beyond this page. + HasMore bool `json:"has_more" api:"required"` + // Summary information about this response. + Meta NewsSearchResponseMeta `json:"meta" api:"required"` + // Pass as cursor in the next request to fetch the following page. Null when there + // are no more results. + NextCursor string `json:"next_cursor" api:"required"` // Metadata about the API key used for the request. Included in every response // whenever a valid API key is provided, even when the response status is not 200. KeyMetadata NewsSearchResponseKeyMetadata `json:"key_metadata"` @@ -76,20 +81,37 @@ func (r *NewsSearchResponse) UnmarshalJSON(data []byte) error { } type NewsSearchResponseData struct { - ID string `json:"id" api:"required"` - Authors []string `json:"authors" api:"required"` - Description string `json:"description" api:"required"` - ImageURL string `json:"image_url" api:"required"` - Language string `json:"language" api:"required"` - Match NewsSearchResponseDataMatch `json:"match" api:"required"` - PublishedAt time.Time `json:"published_at" api:"required" format:"date-time"` - Source NewsSearchResponseDataSource `json:"source" api:"required"` - // Groups matching normalized headlines published on the same UTC day. + // Stable unique identifier for this article. Use it to deduplicate or reference an + // article across requests. + ID string `json:"id" api:"required"` + // Bylined authors. Empty when no byline is available. + Authors []string `json:"authors" api:"required"` + // Short summary or excerpt of the article, when the publisher provides one. + Description string `json:"description" api:"required"` + // Lead image for the article, when one is available. + ImageURL string `json:"image_url" api:"required"` + // Language the article is written in, as a lowercase ISO 639-1 code such as en. + // Null when unknown. + Language string `json:"language" api:"required"` + // How the article relates to the company you searched for. + Match NewsSearchResponseDataMatch `json:"match" api:"required"` + // When the article was published, as an ISO 8601 timestamp. Null when the + // publisher does not state a reliable date. + PublishedAt time.Time `json:"published_at" api:"required" format:"date-time"` + // The publication that published the article. + Source NewsSearchResponseDataSource `json:"source" api:"required"` + // Shared by articles covering the same story on the same day. Use it to group or + // collapse syndicated copies of one announcement across outlets. StoryID string `json:"story_id" api:"required"` - Title string `json:"title" api:"required"` + // Article headline. + Title string `json:"title" api:"required"` + // Kind of coverage. Use it to separate independent reporting (editorial) from + // company-issued content (press_release, regulatory_filing, advisory). + // // Any of "editorial", "press_release", "regulatory_filing", "advisory". Type string `json:"type" api:"required"` - URL string `json:"url" api:"required" format:"uri"` + // Link to the article on the publisher site. + URL string `json:"url" api:"required" format:"uri"` // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. JSON struct { ID respjson.Field @@ -115,8 +137,13 @@ func (r *NewsSearchResponseData) UnmarshalJSON(data []byte) error { return apijson.UnmarshalRoot(data, r) } +// How the article relates to the company you searched for. type NewsSearchResponseDataMatch struct { + // How confident the match is, from 0 to 1. Null when a score is unavailable. Confidence float64 `json:"confidence" api:"required"` + // primary when the article is mainly about the company, secondary when the company + // is mentioned but is not the main subject. + // // Any of "primary", "secondary". Level string `json:"level" api:"required"` // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. @@ -134,11 +161,14 @@ func (r *NewsSearchResponseDataMatch) UnmarshalJSON(data []byte) error { return apijson.UnmarshalRoot(data, r) } +// The publication that published the article. type NewsSearchResponseDataSource struct { // True when Context observed this article in the publisher-owned feed. - Direct bool `json:"direct" api:"required"` + Direct bool `json:"direct" api:"required"` + // Website domain of the publication. Domain string `json:"domain" api:"required"` - Name string `json:"name" api:"required"` + // Name of the publication, such as Reuters. + Name string `json:"name" api:"required"` // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. JSON struct { Direct respjson.Field @@ -155,7 +185,9 @@ func (r *NewsSearchResponseDataSource) UnmarshalJSON(data []byte) error { return apijson.UnmarshalRoot(data, r) } +// Summary information about this response. type NewsSearchResponseMeta struct { + // Number of articles in this page. Count int64 `json:"count" api:"required"` // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. JSON struct { From a2df32c104304eafc8b266d89cf665e35b45ad57 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 17 Aug 2026 06:44:00 +0000 Subject: [PATCH 2/7] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index f9f986b..65e1e03 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 41 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-5e890b591fcd62757c51fa1decc2cccc3d52d5a83097b10775507e3485776f73.yml -openapi_spec_hash: 432ee63a7d4ffca7d5993dc0853d9c81 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-a93ee49f1b1f7a2d95a79fa63dba0c825dcc664198a8d6d42a71c4577342cb3b.yml +openapi_spec_hash: 62ec48956bfb06100953840ac780e93f config_hash: 0fb0ceca5946298c416cec0cca5260c7 From 0b8e3ed35d100f2246c127c7f2fe7a4235ee90b2 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 17 Aug 2026 06:58:53 +0000 Subject: [PATCH 3/7] feat(api): api update --- .stats.yml | 4 ++-- brand.go | 14 ++++++++++++++ 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 65e1e03..01e56c8 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 41 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-a93ee49f1b1f7a2d95a79fa63dba0c825dcc664198a8d6d42a71c4577342cb3b.yml -openapi_spec_hash: 62ec48956bfb06100953840ac780e93f +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-f23ab92b85d838bfa0c2741f96f4bf7acf09a22cc17aa88d78ae8a1cafb0c7f0.yml +openapi_spec_hash: 641b62af26fa7bc744bbebc50aeb2ac6 config_hash: 0fb0ceca5946298c416cec0cca5260c7 diff --git a/brand.go b/brand.go index 81c8c17..5306aa2 100644 --- a/brand.go +++ b/brand.go @@ -287,10 +287,17 @@ type BrandGetResponseBrandColor struct { Hex string `json:"hex"` // Name of the color Name string `json:"name"` + // Where the color was observed: 'site' colors come from the website's own theme + // signals (rendered page colors, manifest, theme-color meta), 'logo' colors from + // logo image pixels. + // + // Any of "site", "logo". + Source string `json:"source"` // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. JSON struct { Hex respjson.Field Name respjson.Field + Source respjson.Field ExtraFields map[string]respjson.Field raw string } `json:"-"` @@ -780,10 +787,17 @@ type BrandGetSimplifiedResponseBrandColor struct { Hex string `json:"hex"` // Name of the color Name string `json:"name"` + // Where the color was observed: 'site' colors come from the website's own theme + // signals (rendered page colors, manifest, theme-color meta), 'logo' colors from + // logo image pixels. + // + // Any of "site", "logo". + Source string `json:"source"` // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. JSON struct { Hex respjson.Field Name respjson.Field + Source respjson.Field ExtraFields map[string]respjson.Field raw string } `json:"-"` From ba8f7e4f992ec46bc2d279cbf1b5899852fe8382 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 18 Aug 2026 03:24:56 +0000 Subject: [PATCH 4/7] feat(api): api update --- .stats.yml | 4 ++-- web.go | 6 ++++++ web_test.go | 1 + 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 01e56c8..5c58535 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 41 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-f23ab92b85d838bfa0c2741f96f4bf7acf09a22cc17aa88d78ae8a1cafb0c7f0.yml -openapi_spec_hash: 641b62af26fa7bc744bbebc50aeb2ac6 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-a0e9f5a245a9ad4bf712a35826463af573957da6d3714136cfab643140664566.yml +openapi_spec_hash: 20f2776cd458320c8b66fec4ec4f9332 config_hash: 0fb0ceca5946298c416cec0cca5260c7 diff --git a/web.go b/web.go index 47bff14..b05988b 100644 --- a/web.go +++ b/web.go @@ -2738,6 +2738,12 @@ type WebScreenshotParams struct { // the screenshot. Min: 0. Max: 30000 (30 seconds). Defaults to 3000 ms when // omitted. WaitForMs param.Opt[int64] `query:"waitForMs,omitzero" json:"-"` + // Optional parameter for comprehensive popup cleanup. If 'true', the browser + // dismisses detected cookie/consent UI and clears other detected obstructive + // popups and overlays before capture. If 'false' or not provided, this parameter + // requests no cleanup; handleCookiePopup can still request cookie/consent handling + // independently. + ClearPopups param.Opt[bool] `query:"clearPopups,omitzero" json:"-"` // A specific URL to screenshot directly, bypassing domain resolution (e.g., // 'https://example.com/pricing'). When provided, the screenshot is taken of this // exact URL. You must provide either 'domain' or 'directUrl', but not both. diff --git a/web_test.go b/web_test.go index 881db9a..5e480d7 100644 --- a/web_test.go +++ b/web_test.go @@ -162,6 +162,7 @@ func TestWebScreenshotWithOptionalParams(t *testing.T) { option.WithAPIKey("My API Key"), ) _, err := client.Web.Screenshot(context.TODO(), contextdev.WebScreenshotParams{ + ClearPopups: contextdev.Bool(true), ColorScheme: contextdev.WebScreenshotParamsColorSchemeLight, Country: contextdev.WebScreenshotParamsCountryDe, DirectURL: contextdev.String("https://example.com"), From 61de435c617614d2f22ce18546f20b4f0c1c3d87 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 18 Aug 2026 04:33:26 +0000 Subject: [PATCH 5/7] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 5c58535..60361a5 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 41 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-a0e9f5a245a9ad4bf712a35826463af573957da6d3714136cfab643140664566.yml -openapi_spec_hash: 20f2776cd458320c8b66fec4ec4f9332 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-813f97d04b6924bbbeb1a89dd8f0d7b38d3241bd0126338fa00ddcb094ab6893.yml +openapi_spec_hash: 3fee1c958d5414b88e964062ea4cc808 config_hash: 0fb0ceca5946298c416cec0cca5260c7 From e2f81fcd8ebbe5b7201ca51ae6b4bfbb0835bd98 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 18 Aug 2026 06:16:51 +0000 Subject: [PATCH 6/7] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 60361a5..9673209 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 41 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-813f97d04b6924bbbeb1a89dd8f0d7b38d3241bd0126338fa00ddcb094ab6893.yml -openapi_spec_hash: 3fee1c958d5414b88e964062ea4cc808 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-b0c72d2fe5911c9ce155275b954198bf2152e915a7e5b9f719aad50e222b9ef8.yml +openapi_spec_hash: 5cf943ea5718059b7975417b012cee28 config_hash: 0fb0ceca5946298c416cec0cca5260c7 From 435b46c108b0346d3a1c0976d74eb27d987eca37 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 18 Aug 2026 06:17:19 +0000 Subject: [PATCH 7/7] release: 2.11.0 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 10 ++++++++++ README.md | 2 +- internal/version.go | 2 +- 4 files changed, 13 insertions(+), 3 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 21f6056..e6c39ad 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "2.10.0" + ".": "2.11.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index c9eb165..064adc7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,15 @@ # Changelog +## 2.11.0 (2026-08-18) + +Full Changelog: [v2.10.0...v2.11.0](https://github.com/context-dot-dev/context-go-sdk/compare/v2.10.0...v2.11.0) + +### Features + +* **api:** api update ([ba8f7e4](https://github.com/context-dot-dev/context-go-sdk/commit/ba8f7e4f992ec46bc2d279cbf1b5899852fe8382)) +* **api:** api update ([0b8e3ed](https://github.com/context-dot-dev/context-go-sdk/commit/0b8e3ed35d100f2246c127c7f2fe7a4235ee90b2)) +* **api:** api update ([8a66cc6](https://github.com/context-dot-dev/context-go-sdk/commit/8a66cc603ad04b2077a1ebdc7638c865ab68164b)) + ## 2.10.0 (2026-08-17) Full Changelog: [v2.9.0...v2.10.0](https://github.com/context-dot-dev/context-go-sdk/compare/v2.9.0...v2.10.0) diff --git a/README.md b/README.md index 0618225..fc8ec9d 100644 --- a/README.md +++ b/README.md @@ -37,7 +37,7 @@ Or to pin the version: ```sh -go get -u 'github.com/context-dot-dev/context-go-sdk@v2.10.0' +go get -u 'github.com/context-dot-dev/context-go-sdk@v2.11.0' ``` diff --git a/internal/version.go b/internal/version.go index 3b2e89c..4d3ca74 100644 --- a/internal/version.go +++ b/internal/version.go @@ -2,4 +2,4 @@ package internal -const PackageVersion = "2.10.0" // x-release-please-version +const PackageVersion = "2.11.0" // x-release-please-version