Skip to content

Commit f94e4de

Browse files
chore(api): update composite API spec
1 parent 656f973 commit f94e4de

23 files changed

Lines changed: 14 additions & 274 deletions

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 2404
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare/cloudflare-5b604e453c8856075fa29214c76cffcdceeec0577992cd0126a1dd4941cfb43e.yml
3-
openapi_spec_hash: 9be331253c989946b4df42615e242471
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare/cloudflare-860e0e21c46ccb06bc3d07c600d9f192572d700fbfda45f01c1df3c5da0bc828.yml
3+
openapi_spec_hash: ef2c85d912a4dc2a8f5cfa8a30293698
44
config_hash: 2f529580a17438fc62cd0b47db41b6f1

src/cloudflare/types/aisearch/instance_chat_completions_params.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,8 @@ class AISearchOptionsRetrieval(TypedDict, total=False):
160160
161161
'and' restricts candidates to documents containing all query terms; 'or'
162162
includes any document containing at least one term, ranked by BM25 relevance.
163-
Defaults to 'and'.
163+
When omitted, falls back to the instance-level
164+
retrieval_options.keyword_match_mode, then to 'and'.
164165
"""
165166

166167
match_threshold: float

src/cloudflare/types/aisearch/instance_create_params.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
"RetrievalOptionsBoostBy",
2525
"SourceParams",
2626
"SourceParamsWebCrawler",
27-
"SourceParamsWebCrawlerCrawlOptions",
2827
"SourceParamsWebCrawlerParseOptions",
2928
"SourceParamsWebCrawlerParseOptionsContentSelector",
3029
"SourceParamsWebCrawlerStoreOptions",
@@ -302,18 +301,6 @@ class RetrievalOptions(TypedDict, total=False):
302301
"""
303302

304303

305-
class SourceParamsWebCrawlerCrawlOptions(TypedDict, total=False):
306-
depth: float
307-
308-
include_external_links: bool
309-
310-
include_subdomains: bool
311-
312-
max_age: float
313-
314-
source: Literal["all", "sitemaps", "links"]
315-
316-
317304
class SourceParamsWebCrawlerParseOptionsContentSelector(TypedDict, total=False):
318305
path: Required[str]
319306
"""Glob pattern to match against the page URL path.
@@ -367,8 +354,6 @@ class SourceParamsWebCrawlerStoreOptions(TypedDict, total=False):
367354

368355

369356
class SourceParamsWebCrawler(TypedDict, total=False):
370-
crawl_options: SourceParamsWebCrawlerCrawlOptions
371-
372357
parse_options: SourceParamsWebCrawlerParseOptions
373358

374359
parse_type: Literal["sitemap", "feed-rss", "crawl"]

src/cloudflare/types/aisearch/instance_create_response.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
"RetrievalOptionsBoostBy",
2525
"SourceParams",
2626
"SourceParamsWebCrawler",
27-
"SourceParamsWebCrawlerCrawlOptions",
2827
"SourceParamsWebCrawlerParseOptions",
2928
"SourceParamsWebCrawlerParseOptionsContentSelector",
3029
"SourceParamsWebCrawlerStoreOptions",
@@ -143,18 +142,6 @@ class RetrievalOptions(BaseModel):
143142
"""
144143

145144

146-
class SourceParamsWebCrawlerCrawlOptions(BaseModel):
147-
depth: Optional[float] = None
148-
149-
include_external_links: Optional[bool] = None
150-
151-
include_subdomains: Optional[bool] = None
152-
153-
max_age: Optional[float] = None
154-
155-
source: Optional[Literal["all", "sitemaps", "links"]] = None
156-
157-
158145
class SourceParamsWebCrawlerParseOptionsContentSelector(BaseModel):
159146
path: str
160147
"""Glob pattern to match against the page URL path.
@@ -208,8 +195,6 @@ class SourceParamsWebCrawlerStoreOptions(BaseModel):
208195

209196

210197
class SourceParamsWebCrawler(BaseModel):
211-
crawl_options: Optional[SourceParamsWebCrawlerCrawlOptions] = None
212-
213198
parse_options: Optional[SourceParamsWebCrawlerParseOptions] = None
214199

215200
parse_type: Optional[Literal["sitemap", "feed-rss", "crawl"]] = None

src/cloudflare/types/aisearch/instance_delete_response.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
"RetrievalOptionsBoostBy",
2525
"SourceParams",
2626
"SourceParamsWebCrawler",
27-
"SourceParamsWebCrawlerCrawlOptions",
2827
"SourceParamsWebCrawlerParseOptions",
2928
"SourceParamsWebCrawlerParseOptionsContentSelector",
3029
"SourceParamsWebCrawlerStoreOptions",
@@ -143,18 +142,6 @@ class RetrievalOptions(BaseModel):
143142
"""
144143

145144

146-
class SourceParamsWebCrawlerCrawlOptions(BaseModel):
147-
depth: Optional[float] = None
148-
149-
include_external_links: Optional[bool] = None
150-
151-
include_subdomains: Optional[bool] = None
152-
153-
max_age: Optional[float] = None
154-
155-
source: Optional[Literal["all", "sitemaps", "links"]] = None
156-
157-
158145
class SourceParamsWebCrawlerParseOptionsContentSelector(BaseModel):
159146
path: str
160147
"""Glob pattern to match against the page URL path.
@@ -208,8 +195,6 @@ class SourceParamsWebCrawlerStoreOptions(BaseModel):
208195

209196

210197
class SourceParamsWebCrawler(BaseModel):
211-
crawl_options: Optional[SourceParamsWebCrawlerCrawlOptions] = None
212-
213198
parse_options: Optional[SourceParamsWebCrawlerParseOptions] = None
214199

215200
parse_type: Optional[Literal["sitemap", "feed-rss", "crawl"]] = None

src/cloudflare/types/aisearch/instance_list_response.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
"RetrievalOptionsBoostBy",
2525
"SourceParams",
2626
"SourceParamsWebCrawler",
27-
"SourceParamsWebCrawlerCrawlOptions",
2827
"SourceParamsWebCrawlerParseOptions",
2928
"SourceParamsWebCrawlerParseOptionsContentSelector",
3029
"SourceParamsWebCrawlerStoreOptions",
@@ -143,18 +142,6 @@ class RetrievalOptions(BaseModel):
143142
"""
144143

145144

146-
class SourceParamsWebCrawlerCrawlOptions(BaseModel):
147-
depth: Optional[float] = None
148-
149-
include_external_links: Optional[bool] = None
150-
151-
include_subdomains: Optional[bool] = None
152-
153-
max_age: Optional[float] = None
154-
155-
source: Optional[Literal["all", "sitemaps", "links"]] = None
156-
157-
158145
class SourceParamsWebCrawlerParseOptionsContentSelector(BaseModel):
159146
path: str
160147
"""Glob pattern to match against the page URL path.
@@ -208,8 +195,6 @@ class SourceParamsWebCrawlerStoreOptions(BaseModel):
208195

209196

210197
class SourceParamsWebCrawler(BaseModel):
211-
crawl_options: Optional[SourceParamsWebCrawlerCrawlOptions] = None
212-
213198
parse_options: Optional[SourceParamsWebCrawlerParseOptions] = None
214199

215200
parse_type: Optional[Literal["sitemap", "feed-rss", "crawl"]] = None

src/cloudflare/types/aisearch/instance_read_response.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
"RetrievalOptionsBoostBy",
2525
"SourceParams",
2626
"SourceParamsWebCrawler",
27-
"SourceParamsWebCrawlerCrawlOptions",
2827
"SourceParamsWebCrawlerParseOptions",
2928
"SourceParamsWebCrawlerParseOptionsContentSelector",
3029
"SourceParamsWebCrawlerStoreOptions",
@@ -143,18 +142,6 @@ class RetrievalOptions(BaseModel):
143142
"""
144143

145144

146-
class SourceParamsWebCrawlerCrawlOptions(BaseModel):
147-
depth: Optional[float] = None
148-
149-
include_external_links: Optional[bool] = None
150-
151-
include_subdomains: Optional[bool] = None
152-
153-
max_age: Optional[float] = None
154-
155-
source: Optional[Literal["all", "sitemaps", "links"]] = None
156-
157-
158145
class SourceParamsWebCrawlerParseOptionsContentSelector(BaseModel):
159146
path: str
160147
"""Glob pattern to match against the page URL path.
@@ -208,8 +195,6 @@ class SourceParamsWebCrawlerStoreOptions(BaseModel):
208195

209196

210197
class SourceParamsWebCrawler(BaseModel):
211-
crawl_options: Optional[SourceParamsWebCrawlerCrawlOptions] = None
212-
213198
parse_options: Optional[SourceParamsWebCrawlerParseOptions] = None
214199

215200
parse_type: Optional[Literal["sitemap", "feed-rss", "crawl"]] = None

src/cloudflare/types/aisearch/instance_search_params.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,8 @@ class AISearchOptionsRetrieval(TypedDict, total=False):
125125
126126
'and' restricts candidates to documents containing all query terms; 'or'
127127
includes any document containing at least one term, ranked by BM25 relevance.
128-
Defaults to 'and'.
128+
When omitted, falls back to the instance-level
129+
retrieval_options.keyword_match_mode, then to 'and'.
129130
"""
130131

131132
match_threshold: float

src/cloudflare/types/aisearch/instance_update_params.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
"RetrievalOptionsBoostBy",
2525
"SourceParams",
2626
"SourceParamsWebCrawler",
27-
"SourceParamsWebCrawlerCrawlOptions",
2827
"SourceParamsWebCrawlerParseOptions",
2928
"SourceParamsWebCrawlerParseOptionsContentSelector",
3029
"SourceParamsWebCrawlerStoreOptions",
@@ -337,18 +336,6 @@ class RetrievalOptions(TypedDict, total=False):
337336
"""
338337

339338

340-
class SourceParamsWebCrawlerCrawlOptions(TypedDict, total=False):
341-
depth: float
342-
343-
include_external_links: bool
344-
345-
include_subdomains: bool
346-
347-
max_age: float
348-
349-
source: Literal["all", "sitemaps", "links"]
350-
351-
352339
class SourceParamsWebCrawlerParseOptionsContentSelector(TypedDict, total=False):
353340
path: Required[str]
354341
"""Glob pattern to match against the page URL path.
@@ -402,8 +389,6 @@ class SourceParamsWebCrawlerStoreOptions(TypedDict, total=False):
402389

403390

404391
class SourceParamsWebCrawler(TypedDict, total=False):
405-
crawl_options: SourceParamsWebCrawlerCrawlOptions
406-
407392
parse_options: SourceParamsWebCrawlerParseOptions
408393

409394
parse_type: Literal["sitemap", "feed-rss", "crawl"]

src/cloudflare/types/aisearch/instance_update_response.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
"RetrievalOptionsBoostBy",
2525
"SourceParams",
2626
"SourceParamsWebCrawler",
27-
"SourceParamsWebCrawlerCrawlOptions",
2827
"SourceParamsWebCrawlerParseOptions",
2928
"SourceParamsWebCrawlerParseOptionsContentSelector",
3029
"SourceParamsWebCrawlerStoreOptions",
@@ -143,18 +142,6 @@ class RetrievalOptions(BaseModel):
143142
"""
144143

145144

146-
class SourceParamsWebCrawlerCrawlOptions(BaseModel):
147-
depth: Optional[float] = None
148-
149-
include_external_links: Optional[bool] = None
150-
151-
include_subdomains: Optional[bool] = None
152-
153-
max_age: Optional[float] = None
154-
155-
source: Optional[Literal["all", "sitemaps", "links"]] = None
156-
157-
158145
class SourceParamsWebCrawlerParseOptionsContentSelector(BaseModel):
159146
path: str
160147
"""Glob pattern to match against the page URL path.
@@ -208,8 +195,6 @@ class SourceParamsWebCrawlerStoreOptions(BaseModel):
208195

209196

210197
class SourceParamsWebCrawler(BaseModel):
211-
crawl_options: Optional[SourceParamsWebCrawlerCrawlOptions] = None
212-
213198
parse_options: Optional[SourceParamsWebCrawlerParseOptions] = None
214199

215200
parse_type: Optional[Literal["sitemap", "feed-rss", "crawl"]] = None

0 commit comments

Comments
 (0)