From 60f6e907e3c65eb5003f3863ff60d48cace23b6e Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 21 Apr 2026 16:28:44 +0000 Subject: [PATCH 1/4] feat(api): Mark search and extract as deprecated --- .stats.yml | 2 +- src/resources/beta/beta.ts | 12 ++---------- 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/.stats.yml b/.stats.yml index ea4794f..93b7fe8 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 24 openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/parallel-web%2Fparallel-sdk-57e1c56be0942c131ab5f24d8620de166d0721ef7f3423532abc7027e5a989e7.yml openapi_spec_hash: e61f831e30d19590eb3138a1b1709d1d -config_hash: 80e7ee7ad8e3424616aca7189ffd5ae7 +config_hash: e17d82e9cb35004e5f9a9d3c4cf51aeb diff --git a/src/resources/beta/beta.ts b/src/resources/beta/beta.ts index 47f3388..3e29693 100644 --- a/src/resources/beta/beta.ts +++ b/src/resources/beta/beta.ts @@ -70,12 +70,7 @@ export class Beta extends APIResource { /** * Extracts relevant content from specific web URLs. * - * @example - * ```ts - * const extractResponse = await client.beta.extract({ - * urls: ['string'], - * }); - * ``` + * @deprecated Use client.extract instead. For more info, see https://docs.parallel.ai/extract/extract-migration-guide */ extract(params: BetaExtractParams, options?: RequestOptions): APIPromise { const { betas, ...body } = params; @@ -92,10 +87,7 @@ export class Beta extends APIResource { /** * Searches the web. * - * @example - * ```ts - * const searchResult = await client.beta.search(); - * ``` + * @deprecated Use client.search instead. For more info, see https://docs.parallel.ai/search/search-migration-guide */ search(params: BetaSearchParams, options?: RequestOptions): APIPromise { const { betas, ...body } = params; From 3a435c0bbbb9520cbf3470c44c0c97f0471ecab0 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 21 Apr 2026 18:08:28 +0000 Subject: [PATCH 2/4] feat(api): OpenAPI changes Migration guides added to the paths --- .stats.yml | 4 ++-- src/client.ts | 12 ++++++++---- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/.stats.yml b/.stats.yml index 93b7fe8..61afc81 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 24 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/parallel-web%2Fparallel-sdk-57e1c56be0942c131ab5f24d8620de166d0721ef7f3423532abc7027e5a989e7.yml -openapi_spec_hash: e61f831e30d19590eb3138a1b1709d1d +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/parallel-web%2Fparallel-sdk-3283d0ed1520a152928edc5dee967f6ee0ee70d434d5ea96dbfc60202672417d.yml +openapi_spec_hash: 9cd5bd74222a21612086b1ca0ad6725d config_hash: e17d82e9cb35004e5f9a9d3c4cf51aeb diff --git a/src/client.ts b/src/client.ts index 0177c07..c4c1cab 100644 --- a/src/client.ts +++ b/src/client.ts @@ -238,8 +238,10 @@ export class Parallel { /** * Extracts relevant content from specific web URLs. * - * The legacy Extract API reference is available - * [here](https://docs.parallel.ai/api-reference/legacy/extract-beta/extract). + * The legacy Extract API reference (`/v1beta/extract` endpoint) is available + * [here](https://docs.parallel.ai/api-reference/legacy/extract-beta/extract), and + * migration guide is + * [here](https://docs.parallel.ai/extract/extract-migration-guide). * * @example * ```ts @@ -258,8 +260,10 @@ export class Parallel { /** * Searches the web. * - * The legacy Search API reference is available - * [here](https://docs.parallel.ai/api-reference/legacy/search-beta/search). + * The legacy Search API reference (`/v1beta/search` endpoint) is available + * [here](https://docs.parallel.ai/api-reference/legacy/search-beta/search), and + * migration guide is + * [here](https://docs.parallel.ai/search/search-migration-guide). * * @example * ```ts From ae5cb89998ed6f6a11d4ee9fb5769646d78a8bd4 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 22 Apr 2026 17:14:01 +0000 Subject: [PATCH 3/4] feat(api): manual updates OpenAPI updates --- .stats.yml | 4 ++-- src/resources/beta/beta.ts | 12 ++++++++++++ tests/api-resources/beta/beta.test.ts | 1 + tests/api-resources/top-level.test.ts | 4 ++-- 4 files changed, 17 insertions(+), 4 deletions(-) diff --git a/.stats.yml b/.stats.yml index 61afc81..778c22b 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 24 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/parallel-web%2Fparallel-sdk-3283d0ed1520a152928edc5dee967f6ee0ee70d434d5ea96dbfc60202672417d.yml -openapi_spec_hash: 9cd5bd74222a21612086b1ca0ad6725d +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/parallel-web%2Fparallel-sdk-66ee13c3475d2c76f0956f258f0469903155b83ef02e839641be94cdc2014cf3.yml +openapi_spec_hash: 88af7b88725bead1f8ccdcaeb436fadb config_hash: e17d82e9cb35004e5f9a9d3c4cf51aeb diff --git a/src/resources/beta/beta.ts b/src/resources/beta/beta.ts index 3e29693..b889a8e 100644 --- a/src/resources/beta/beta.ts +++ b/src/resources/beta/beta.ts @@ -244,6 +244,12 @@ export interface BetaExtractParams { */ urls: Array; + /** + * Body param: The model generating this request and consuming the results. Enables + * optimizations and tailors default settings for the model's capabilities. + */ + client_model?: string | null; + /** * Body param: Include excerpts from each URL relevant to the search objective and * queries. Note that if neither objective nor search_queries is provided, excerpts @@ -302,6 +308,12 @@ export namespace BetaExtractParams { } export interface BetaSearchParams { + /** + * Body param: The model generating this request and consuming the results. Enables + * optimizations and tailors default settings for the model's capabilities. + */ + client_model?: string | null; + /** * Body param: Optional settings to configure excerpt generation. */ diff --git a/tests/api-resources/beta/beta.test.ts b/tests/api-resources/beta/beta.test.ts index 846c650..0e55b6c 100644 --- a/tests/api-resources/beta/beta.test.ts +++ b/tests/api-resources/beta/beta.test.ts @@ -22,6 +22,7 @@ describe('resource beta', () => { test('extract: required and optional params', async () => { const response = await client.beta.extract({ urls: ['string'], + client_model: 'claude-opus-4-7', excerpts: true, fetch_policy: { disable_cache_fallback: true, diff --git a/tests/api-resources/top-level.test.ts b/tests/api-resources/top-level.test.ts index f1b0ecd..cbca4aa 100644 --- a/tests/api-resources/top-level.test.ts +++ b/tests/api-resources/top-level.test.ts @@ -31,7 +31,7 @@ describe('top level methods', () => { }, full_content: { max_chars_per_result: 0 }, }, - client_model: 'claude-sonnet-4-6-20260401', + client_model: 'claude-opus-4-7', max_chars_total: 0, objective: 'objective', search_queries: ['string'], @@ -68,7 +68,7 @@ describe('top level methods', () => { include_domains: ['wikipedia.org', 'usa.gov', '.edu'], }, }, - client_model: 'claude-sonnet-4-6-20260401', + client_model: 'claude-opus-4-7', max_chars_total: 0, mode: 'basic', objective: 'objective', From 4702c696c1da722bceeb13dac15e181be64883bd Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 22 Apr 2026 17:14:23 +0000 Subject: [PATCH 4/4] release: 0.4.1 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 10 ++++++++++ package.json | 2 +- src/version.ts | 2 +- 4 files changed, 13 insertions(+), 3 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 2537c1f..218393f 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.4.0" + ".": "0.4.1" } diff --git a/CHANGELOG.md b/CHANGELOG.md index 3cd9e7b..70d7602 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,15 @@ # Changelog +## 0.4.1 (2026-04-22) + +Full Changelog: [v0.4.0...v0.4.1](https://github.com/parallel-web/parallel-sdk-typescript/compare/v0.4.0...v0.4.1) + +### Features + +* **api:** manual updates ([ae5cb89](https://github.com/parallel-web/parallel-sdk-typescript/commit/ae5cb89998ed6f6a11d4ee9fb5769646d78a8bd4)) +* **api:** Mark search and extract as deprecated ([60f6e90](https://github.com/parallel-web/parallel-sdk-typescript/commit/60f6e907e3c65eb5003f3863ff60d48cace23b6e)) +* **api:** OpenAPI changes ([3a435c0](https://github.com/parallel-web/parallel-sdk-typescript/commit/3a435c0bbbb9520cbf3470c44c0c97f0471ecab0)) + ## 0.4.0 (2026-04-21) Full Changelog: [v0.3.2...v0.4.0](https://github.com/parallel-web/parallel-sdk-typescript/compare/v0.3.2...v0.4.0) diff --git a/package.json b/package.json index 4789bab..b9e1560 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "parallel-web", - "version": "0.4.0", + "version": "0.4.1", "description": "The official TypeScript library for the Parallel API", "author": "Parallel ", "types": "dist/index.d.ts", diff --git a/src/version.ts b/src/version.ts index 4e7f788..99a0031 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const VERSION = '0.4.0'; // x-release-please-version +export const VERSION = '0.4.1'; // x-release-please-version