Skip to content

Commit d2a5686

Browse files
chore(api): update composite API spec
1 parent 46898b8 commit d2a5686

17 files changed

Lines changed: 197 additions & 67 deletions

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 2208
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-a6c352830d1270d0abb5bb983058ea21815e1bb7d2e163965335dcb0e706f057.yml
3-
openapi_spec_hash: e722ad1f58e3dfb3a928cf9890d48da4
3+
openapi_spec_hash: 42dd4ac0ac3f5c00bbe80e26fed2fa51
44
config_hash: 20574d7a53e0349a3337a121a46638d4

src/cloudflare/types/aisearch/instance_create_params.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -325,8 +325,9 @@ class SourceParamsWebCrawlerParseOptionsContentSelector(TypedDict, total=False):
325325
selector: Required[str]
326326
"""CSS selector to extract content from pages matching the path pattern.
327327
328-
Supports standard CSS selectors including class, ID, element, and attribute
329-
selectors.
328+
Must not contain disallowed characters (;, `, $, {, }, \\)). Must target a single
329+
element; if multiple elements match, the selector is ignored and the full page
330+
is used.
330331
"""
331332

332333

@@ -335,10 +336,16 @@ class SourceParamsWebCrawlerParseOptions(TypedDict, total=False):
335336
"""
336337
List of path-to-selector mappings for extracting specific content from crawled
337338
pages. Each entry pairs a URL glob pattern with a CSS selector. The first
338-
matching path wins. Only the matched HTML fragment is stored and indexed.
339+
matching path wins. Only the matched HTML fragment is stored and indexed. Omit
340+
the field to disable content selection — empty arrays are rejected.
339341
"""
340342

341343
include_headers: Dict[str, str]
344+
"""Up to 5 custom HTTP headers sent with each crawl request.
345+
346+
Names must be RFC-7230 token characters (no spaces, colons, or control
347+
characters); values must be HTAB + printable ASCII (no CR/LF).
348+
"""
342349

343350
include_images: bool
344351

src/cloudflare/types/aisearch/instance_create_response.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,9 @@ class SourceParamsWebCrawlerParseOptionsContentSelector(BaseModel):
166166
selector: str
167167
"""CSS selector to extract content from pages matching the path pattern.
168168
169-
Supports standard CSS selectors including class, ID, element, and attribute
170-
selectors.
169+
Must not contain disallowed characters (;, `, $, {, }, \\)). Must target a single
170+
element; if multiple elements match, the selector is ignored and the full page
171+
is used.
171172
"""
172173

173174

@@ -176,10 +177,16 @@ class SourceParamsWebCrawlerParseOptions(BaseModel):
176177
"""
177178
List of path-to-selector mappings for extracting specific content from crawled
178179
pages. Each entry pairs a URL glob pattern with a CSS selector. The first
179-
matching path wins. Only the matched HTML fragment is stored and indexed.
180+
matching path wins. Only the matched HTML fragment is stored and indexed. Omit
181+
the field to disable content selection — empty arrays are rejected.
180182
"""
181183

182184
include_headers: Optional[Dict[str, str]] = None
185+
"""Up to 5 custom HTTP headers sent with each crawl request.
186+
187+
Names must be RFC-7230 token characters (no spaces, colons, or control
188+
characters); values must be HTAB + printable ASCII (no CR/LF).
189+
"""
183190

184191
include_images: Optional[bool] = None
185192

src/cloudflare/types/aisearch/instance_delete_response.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,9 @@ class SourceParamsWebCrawlerParseOptionsContentSelector(BaseModel):
166166
selector: str
167167
"""CSS selector to extract content from pages matching the path pattern.
168168
169-
Supports standard CSS selectors including class, ID, element, and attribute
170-
selectors.
169+
Must not contain disallowed characters (;, `, $, {, }, \\)). Must target a single
170+
element; if multiple elements match, the selector is ignored and the full page
171+
is used.
171172
"""
172173

173174

@@ -176,10 +177,16 @@ class SourceParamsWebCrawlerParseOptions(BaseModel):
176177
"""
177178
List of path-to-selector mappings for extracting specific content from crawled
178179
pages. Each entry pairs a URL glob pattern with a CSS selector. The first
179-
matching path wins. Only the matched HTML fragment is stored and indexed.
180+
matching path wins. Only the matched HTML fragment is stored and indexed. Omit
181+
the field to disable content selection — empty arrays are rejected.
180182
"""
181183

182184
include_headers: Optional[Dict[str, str]] = None
185+
"""Up to 5 custom HTTP headers sent with each crawl request.
186+
187+
Names must be RFC-7230 token characters (no spaces, colons, or control
188+
characters); values must be HTAB + printable ASCII (no CR/LF).
189+
"""
183190

184191
include_images: Optional[bool] = None
185192

src/cloudflare/types/aisearch/instance_list_response.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,9 @@ class SourceParamsWebCrawlerParseOptionsContentSelector(BaseModel):
166166
selector: str
167167
"""CSS selector to extract content from pages matching the path pattern.
168168
169-
Supports standard CSS selectors including class, ID, element, and attribute
170-
selectors.
169+
Must not contain disallowed characters (;, `, $, {, }, \\)). Must target a single
170+
element; if multiple elements match, the selector is ignored and the full page
171+
is used.
171172
"""
172173

173174

@@ -176,10 +177,16 @@ class SourceParamsWebCrawlerParseOptions(BaseModel):
176177
"""
177178
List of path-to-selector mappings for extracting specific content from crawled
178179
pages. Each entry pairs a URL glob pattern with a CSS selector. The first
179-
matching path wins. Only the matched HTML fragment is stored and indexed.
180+
matching path wins. Only the matched HTML fragment is stored and indexed. Omit
181+
the field to disable content selection — empty arrays are rejected.
180182
"""
181183

182184
include_headers: Optional[Dict[str, str]] = None
185+
"""Up to 5 custom HTTP headers sent with each crawl request.
186+
187+
Names must be RFC-7230 token characters (no spaces, colons, or control
188+
characters); values must be HTAB + printable ASCII (no CR/LF).
189+
"""
183190

184191
include_images: Optional[bool] = None
185192

src/cloudflare/types/aisearch/instance_read_response.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,9 @@ class SourceParamsWebCrawlerParseOptionsContentSelector(BaseModel):
166166
selector: str
167167
"""CSS selector to extract content from pages matching the path pattern.
168168
169-
Supports standard CSS selectors including class, ID, element, and attribute
170-
selectors.
169+
Must not contain disallowed characters (;, `, $, {, }, \\)). Must target a single
170+
element; if multiple elements match, the selector is ignored and the full page
171+
is used.
171172
"""
172173

173174

@@ -176,10 +177,16 @@ class SourceParamsWebCrawlerParseOptions(BaseModel):
176177
"""
177178
List of path-to-selector mappings for extracting specific content from crawled
178179
pages. Each entry pairs a URL glob pattern with a CSS selector. The first
179-
matching path wins. Only the matched HTML fragment is stored and indexed.
180+
matching path wins. Only the matched HTML fragment is stored and indexed. Omit
181+
the field to disable content selection — empty arrays are rejected.
180182
"""
181183

182184
include_headers: Optional[Dict[str, str]] = None
185+
"""Up to 5 custom HTTP headers sent with each crawl request.
186+
187+
Names must be RFC-7230 token characters (no spaces, colons, or control
188+
characters); values must be HTAB + printable ASCII (no CR/LF).
189+
"""
183190

184191
include_images: Optional[bool] = None
185192

src/cloudflare/types/aisearch/instance_update_params.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -360,8 +360,9 @@ class SourceParamsWebCrawlerParseOptionsContentSelector(TypedDict, total=False):
360360
selector: Required[str]
361361
"""CSS selector to extract content from pages matching the path pattern.
362362
363-
Supports standard CSS selectors including class, ID, element, and attribute
364-
selectors.
363+
Must not contain disallowed characters (;, `, $, {, }, \\)). Must target a single
364+
element; if multiple elements match, the selector is ignored and the full page
365+
is used.
365366
"""
366367

367368

@@ -370,10 +371,16 @@ class SourceParamsWebCrawlerParseOptions(TypedDict, total=False):
370371
"""
371372
List of path-to-selector mappings for extracting specific content from crawled
372373
pages. Each entry pairs a URL glob pattern with a CSS selector. The first
373-
matching path wins. Only the matched HTML fragment is stored and indexed.
374+
matching path wins. Only the matched HTML fragment is stored and indexed. Omit
375+
the field to disable content selection — empty arrays are rejected.
374376
"""
375377

376378
include_headers: Dict[str, str]
379+
"""Up to 5 custom HTTP headers sent with each crawl request.
380+
381+
Names must be RFC-7230 token characters (no spaces, colons, or control
382+
characters); values must be HTAB + printable ASCII (no CR/LF).
383+
"""
377384

378385
include_images: bool
379386

src/cloudflare/types/aisearch/instance_update_response.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,9 @@ class SourceParamsWebCrawlerParseOptionsContentSelector(BaseModel):
166166
selector: str
167167
"""CSS selector to extract content from pages matching the path pattern.
168168
169-
Supports standard CSS selectors including class, ID, element, and attribute
170-
selectors.
169+
Must not contain disallowed characters (;, `, $, {, }, \\)). Must target a single
170+
element; if multiple elements match, the selector is ignored and the full page
171+
is used.
171172
"""
172173

173174

@@ -176,10 +177,16 @@ class SourceParamsWebCrawlerParseOptions(BaseModel):
176177
"""
177178
List of path-to-selector mappings for extracting specific content from crawled
178179
pages. Each entry pairs a URL glob pattern with a CSS selector. The first
179-
matching path wins. Only the matched HTML fragment is stored and indexed.
180+
matching path wins. Only the matched HTML fragment is stored and indexed. Omit
181+
the field to disable content selection — empty arrays are rejected.
180182
"""
181183

182184
include_headers: Optional[Dict[str, str]] = None
185+
"""Up to 5 custom HTTP headers sent with each crawl request.
186+
187+
Names must be RFC-7230 token characters (no spaces, colons, or control
188+
characters); values must be HTAB + printable ASCII (no CR/LF).
189+
"""
183190

184191
include_images: Optional[bool] = None
185192

src/cloudflare/types/aisearch/namespaces/instance_create_params.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -325,8 +325,9 @@ class SourceParamsWebCrawlerParseOptionsContentSelector(TypedDict, total=False):
325325
selector: Required[str]
326326
"""CSS selector to extract content from pages matching the path pattern.
327327
328-
Supports standard CSS selectors including class, ID, element, and attribute
329-
selectors.
328+
Must not contain disallowed characters (;, `, $, {, }, \\)). Must target a single
329+
element; if multiple elements match, the selector is ignored and the full page
330+
is used.
330331
"""
331332

332333

@@ -335,10 +336,16 @@ class SourceParamsWebCrawlerParseOptions(TypedDict, total=False):
335336
"""
336337
List of path-to-selector mappings for extracting specific content from crawled
337338
pages. Each entry pairs a URL glob pattern with a CSS selector. The first
338-
matching path wins. Only the matched HTML fragment is stored and indexed.
339+
matching path wins. Only the matched HTML fragment is stored and indexed. Omit
340+
the field to disable content selection — empty arrays are rejected.
339341
"""
340342

341343
include_headers: Dict[str, str]
344+
"""Up to 5 custom HTTP headers sent with each crawl request.
345+
346+
Names must be RFC-7230 token characters (no spaces, colons, or control
347+
characters); values must be HTAB + printable ASCII (no CR/LF).
348+
"""
342349

343350
include_images: bool
344351

src/cloudflare/types/aisearch/namespaces/instance_create_response.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,9 @@ class SourceParamsWebCrawlerParseOptionsContentSelector(BaseModel):
166166
selector: str
167167
"""CSS selector to extract content from pages matching the path pattern.
168168
169-
Supports standard CSS selectors including class, ID, element, and attribute
170-
selectors.
169+
Must not contain disallowed characters (;, `, $, {, }, \\)). Must target a single
170+
element; if multiple elements match, the selector is ignored and the full page
171+
is used.
171172
"""
172173

173174

@@ -176,10 +177,16 @@ class SourceParamsWebCrawlerParseOptions(BaseModel):
176177
"""
177178
List of path-to-selector mappings for extracting specific content from crawled
178179
pages. Each entry pairs a URL glob pattern with a CSS selector. The first
179-
matching path wins. Only the matched HTML fragment is stored and indexed.
180+
matching path wins. Only the matched HTML fragment is stored and indexed. Omit
181+
the field to disable content selection — empty arrays are rejected.
180182
"""
181183

182184
include_headers: Optional[Dict[str, str]] = None
185+
"""Up to 5 custom HTTP headers sent with each crawl request.
186+
187+
Names must be RFC-7230 token characters (no spaces, colons, or control
188+
characters); values must be HTAB + printable ASCII (no CR/LF).
189+
"""
183190

184191
include_images: Optional[bool] = None
185192

0 commit comments

Comments
 (0)