Skip to content

Commit abfa08c

Browse files
author
stlc-bot
committed
feat(scrape): enable highlights with zero data retention (#1246)
Stainless-Generated-From: 448684d
1 parent ead78c0 commit abfa08c

1 file changed

Lines changed: 10 additions & 26 deletions

File tree

‎src/resources/web.ts‎

Lines changed: 10 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -946,9 +946,7 @@ export interface WebScrapeResponse {
946946
cache_metadata: WebScrapeResponse.CacheMetadata;
947947

948948
/**
949-
* Plain-text passages relevant to highlightsParams.query, in page order, each
950-
* prefixed with its section heading in square brackets. Empty when the page has no
951-
* text.
949+
* Relevant passages for your question or topic.
952950
*/
953951
highlights: WebScrapeResponse.Highlights;
954952

@@ -963,10 +961,7 @@ export interface WebScrapeResponse {
963961
images: WebScrapeResponse.Images;
964962

965963
/**
966-
* Page data extracted into jsonParams.schema, after shared content filters. Values
967-
* are grounded in the page; optional fields the page does not state are omitted,
968-
* or null when their type allows null. An empty object when the filters leave no
969-
* text.
964+
* Page data extracted using your schema.
970965
*/
971966
json: WebScrapeResponse.Json;
972967

@@ -986,7 +981,7 @@ export interface WebScrapeResponse {
986981
parsed: WebScrapeResponse.Parsed;
987982

988983
/**
989-
* Product detail page classification and the extracted product.
984+
* Product details found on the page.
990985
*/
991986
product: WebScrapeResponse.Product;
992987

@@ -1062,9 +1057,7 @@ export namespace WebScrapeResponse {
10621057
}
10631058

10641059
/**
1065-
* Plain-text passages relevant to highlightsParams.query, in page order, each
1066-
* prefixed with its section heading in square brackets. Empty when the page has no
1067-
* text.
1060+
* Relevant passages for your question or topic.
10681061
*/
10691062
export interface Highlights {
10701063
data: Array<string> | null;
@@ -1125,10 +1118,7 @@ export namespace WebScrapeResponse {
11251118
}
11261119

11271120
/**
1128-
* Page data extracted into jsonParams.schema, after shared content filters. Values
1129-
* are grounded in the page; optional fields the page does not state are omitted,
1130-
* or null when their type allows null. An empty object when the filters leave no
1131-
* text.
1121+
* Page data extracted using your schema.
11321122
*/
11331123
export interface Json {
11341124
data: { [key: string]: unknown } | null;
@@ -1287,7 +1277,7 @@ export namespace WebScrapeResponse {
12871277
}
12881278

12891279
/**
1290-
* Product detail page classification and the extracted product.
1280+
* Product details found on the page.
12911281
*/
12921282
export interface Product {
12931283
data: Product.Data | null;
@@ -2309,8 +2299,7 @@ export interface WebScrapeParams {
23092299

23102300
/**
23112301
* Zero data retention. Bypasses caches and uploads; excludes request/response
2312-
* content and tags from logs. Must be enabled for your organization. Not available
2313-
* with the highlights output.
2302+
* content and tags from logs. Must be enabled for your organization.
23142303
*/
23152304
zdr?: 'enabled' | 'disabled';
23162305
}
@@ -2326,9 +2315,7 @@ export namespace WebScrapeParams {
23262315
bytes?: boolean;
23272316

23282317
/**
2329-
* Plain-text passages from the page that are most relevant to
2330-
* highlightsParams.query, each prefixed with its section heading. Adds 3 credits.
2331-
* Not available with zdr enabled.
2318+
* Relevant passages for your question or topic. Adds 3 credits.
23322319
*/
23332320
highlights?: boolean;
23342321

@@ -2343,10 +2330,7 @@ export namespace WebScrapeParams {
23432330
images?: boolean;
23442331

23452332
/**
2346-
* Page data extracted by an LLM from the page Markdown into jsonParams.schema;
2347-
* values carried only in attributes or CSS classes need formats.parse instead.
2348-
* Adds four credits when the page has text to extract; when shared content filters
2349-
* leave no text the result is an empty object and only the base price applies.
2333+
* Page data extracted using your schema. Adds 4 credits.
23502334
*/
23512335
json?: boolean;
23522336

@@ -2361,7 +2345,7 @@ export namespace WebScrapeParams {
23612345
parse?: boolean;
23622346

23632347
/**
2364-
* Structured product data for product detail pages. Adds one credit.
2348+
* Product details such as name, price, and availability. Adds 1 credit.
23652349
*/
23662350
product?: boolean;
23672351

0 commit comments

Comments
 (0)