diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 2be9c43..af55ef0 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.2.0" + ".": "0.2.1" } diff --git a/.stats.yml b/.stats.yml index 97f6d7e..69050cb 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 13 openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/parallel-web%2Fparallel-sdk-e853fc79f3b41f00b3934fcc2e4c2813aa9f38528548f5f596e2b11ea833019b.yml openapi_spec_hash: 34ed7e373927037fce6fd33d9bb60389 -config_hash: ae63572e3769dcd1b11e587f039e211a +config_hash: 49716a82995763fddc4308b0b302f1cb diff --git a/CHANGELOG.md b/CHANGELOG.md index 8d8a7d3..88fc77c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.2.1 (2025-10-21) + +Full Changelog: [v0.2.0...v0.2.1](https://github.com/parallel-web/parallel-sdk-typescript/compare/v0.2.0...v0.2.1) + +### Features + +* **api:** manual updates ([1215c78](https://github.com/parallel-web/parallel-sdk-typescript/commit/1215c7868330a32b185163a1234db5a1b5b23e3c)) + ## 0.2.0 (2025-10-21) Full Changelog: [v0.1.2...v0.2.0](https://github.com/parallel-web/parallel-sdk-typescript/compare/v0.1.2...v0.2.0) diff --git a/api.md b/api.md index 9669c2c..2da1ddb 100644 --- a/api.md +++ b/api.md @@ -37,6 +37,7 @@ Types: - ExtractError - ExtractResponse - ExtractResult +- FetchPolicy - SearchResult - WebSearchResult diff --git a/package.json b/package.json index e6b4263..724ec74 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "parallel-web", - "version": "0.2.0", + "version": "0.2.1", "description": "The official TypeScript library for the Parallel API", "author": "Parallel ", "types": "dist/index.d.ts", diff --git a/src/resources/beta/beta.ts b/src/resources/beta/beta.ts index 4121bad..1f6909a 100644 --- a/src/resources/beta/beta.ts +++ b/src/resources/beta/beta.ts @@ -152,6 +152,35 @@ export interface ExtractResult { url: string; } +/** + * Fetch policy. + * + * Determines when to return content from the cache (faster) vs fetching live + * content (fresher). + */ +export interface FetchPolicy { + /** + * If false, fallback to cached content older than max-age if live fetch fails or + * times out. If true, returns an error instead. + */ + disable_cache_fallback?: boolean; + + /** + * Maximum age of cached content in seconds to trigger a live fetch. Minimum value + * 600 seconds (10 minutes). If not provided, a dynamic age policy will be used + * based on the search objective and url. + */ + max_age_seconds?: number | null; + + /** + * Timeout in seconds for fetching live content if unavailable in cache. If + * unspecified a dynamic timeout will be used based on the url, generally 15 + * seconds for simple pages and up to 60 seconds for complex pages requiring + * javascript or PDF rendering. + */ + timeout_seconds?: number | null; +} + /** * Output for the Search API. */ @@ -206,7 +235,7 @@ export interface BetaExtractParams { * Determines when to return content from the cache (faster) vs fetching live * content (fresher). */ - fetch_policy?: BetaExtractParams.FetchPolicy | null; + fetch_policy?: FetchPolicy | null; /** * Body param: Include full content from each URL. Note that if neither objective @@ -233,35 +262,6 @@ export interface BetaExtractParams { } export namespace BetaExtractParams { - /** - * Fetch policy. - * - * Determines when to return content from the cache (faster) vs fetching live - * content (fresher). - */ - export interface FetchPolicy { - /** - * If false, fallback to cached content older than max-age if live fetch fails or - * times out. If true, returns an error instead. - */ - disable_cache_fallback?: boolean; - - /** - * Maximum age of cached content in seconds to trigger a live fetch. Minimum value - * 600 seconds (10 minutes). If not provided, a dynamic age policy will be used - * based on the search objective and url. - */ - max_age_seconds?: number | null; - - /** - * Timeout in seconds for fetching live content if unavailable in cache. If - * unspecified a dynamic timeout will be used based on the url, generally 15 - * seconds for simple pages and up to 60 seconds for complex pages requiring - * javascript or PDF rendering. - */ - timeout_seconds?: number | null; - } - /** * Optional settings for returning full content. */ @@ -328,6 +328,7 @@ export declare namespace Beta { type ExtractError as ExtractError, type ExtractResponse as ExtractResponse, type ExtractResult as ExtractResult, + type FetchPolicy as FetchPolicy, type SearchResult as SearchResult, type WebSearchResult as WebSearchResult, type BetaExtractParams as BetaExtractParams, diff --git a/src/version.ts b/src/version.ts index bade2ff..256fecd 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const VERSION = '0.2.0'; // x-release-please-version +export const VERSION = '0.2.1'; // x-release-please-version