Skip to content

Commit 3a1b2f7

Browse files
chore(api): update composite API spec
1 parent 926d1ec commit 3a1b2f7

27 files changed

Lines changed: 255 additions & 233 deletions

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 2184
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-4dec1c4b6f348c1870a221a1d34b0a996f5c3da41867b6dbeaddc3a1f63641fa.yml
3-
openapi_spec_hash: be2a37a7d40ad959c12d1b89f3695e91
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-5ff6ed21212588ad2fe32b71cfcea1b3f3dbd30053aca3530d9b958c0adee39c.yml
3+
openapi_spec_hash: 6f10e88d71ed882c5e6aa618d85e62d8
44
config_hash: af8ba8b08f4bcb84f6007acfbdc0671c

src/cloudflare/resources/aisearch/api.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,6 @@ from cloudflare.types.aisearch import (
161161
TokenCreateResponse,
162162
TokenUpdateResponse,
163163
TokenListResponse,
164-
TokenDeleteResponse,
165164
TokenReadResponse,
166165
)
167166
```
@@ -171,5 +170,5 @@ Methods:
171170
- <code title="post /accounts/{account_id}/ai-search/tokens">client.aisearch.tokens.<a href="./src/cloudflare/resources/aisearch/tokens.py">create</a>(\*, account_id, \*\*<a href="src/cloudflare/types/aisearch/token_create_params.py">params</a>) -> <a href="./src/cloudflare/types/aisearch/token_create_response.py">TokenCreateResponse</a></code>
172171
- <code title="put /accounts/{account_id}/ai-search/tokens/{id}">client.aisearch.tokens.<a href="./src/cloudflare/resources/aisearch/tokens.py">update</a>(id, \*, account_id, \*\*<a href="src/cloudflare/types/aisearch/token_update_params.py">params</a>) -> <a href="./src/cloudflare/types/aisearch/token_update_response.py">TokenUpdateResponse</a></code>
173172
- <code title="get /accounts/{account_id}/ai-search/tokens">client.aisearch.tokens.<a href="./src/cloudflare/resources/aisearch/tokens.py">list</a>(\*, account_id, \*\*<a href="src/cloudflare/types/aisearch/token_list_params.py">params</a>) -> <a href="./src/cloudflare/types/aisearch/token_list_response.py">SyncV4PagePaginationArray[TokenListResponse]</a></code>
174-
- <code title="delete /accounts/{account_id}/ai-search/tokens/{id}">client.aisearch.tokens.<a href="./src/cloudflare/resources/aisearch/tokens.py">delete</a>(id, \*, account_id) -> <a href="./src/cloudflare/types/aisearch/token_delete_response.py">TokenDeleteResponse</a></code>
173+
- <code title="delete /accounts/{account_id}/ai-search/tokens/{id}">client.aisearch.tokens.<a href="./src/cloudflare/resources/aisearch/tokens.py">delete</a>(id, \*, account_id) -> object</code>
175174
- <code title="get /accounts/{account_id}/ai-search/tokens/{id}">client.aisearch.tokens.<a href="./src/cloudflare/resources/aisearch/tokens.py">read</a>(id, \*, account_id) -> <a href="./src/cloudflare/types/aisearch/token_read_response.py">TokenReadResponse</a></code>

src/cloudflare/resources/aisearch/instances/instances.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ def create(
182182
score_threshold: float | Omit = omit,
183183
source: Optional[str] | Omit = omit,
184184
source_params: Optional[instance_create_params.SourceParams] | Omit = omit,
185-
sync_interval: Literal[3600, 7200, 14400, 21600, 43200, 86400] | Omit = omit,
185+
sync_interval: Literal[900, 1800, 3600, 7200, 14400, 21600, 43200, 86400] | Omit = omit,
186186
token_id: str | Omit = omit,
187187
type: Optional[Literal["r2", "web-crawler"]] | Omit = omit,
188188
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -204,8 +204,8 @@ def create(
204204
index_method: Controls which storage backends are used during indexing. Defaults to
205205
vector-only.
206206
207-
sync_interval: Interval between automatic syncs, in seconds. Allowed values: 3600 (1h), 7200
208-
(2h), 14400 (4h), 21600 (6h), 43200 (12h), 86400 (24h).
207+
sync_interval: Interval between automatic syncs, in seconds. Allowed values: 900 (15min), 1800
208+
(30min), 3600 (1h), 7200 (2h), 14400 (4h), 21600 (6h), 43200 (12h), 86400 (24h).
209209
210210
extra_headers: Send extra headers
211211
@@ -410,7 +410,7 @@ def update(
410410
]
411411
]
412412
| Omit = omit,
413-
sync_interval: Literal[3600, 7200, 14400, 21600, 43200, 86400] | Omit = omit,
413+
sync_interval: Literal[900, 1800, 3600, 7200, 14400, 21600, 43200, 86400] | Omit = omit,
414414
system_prompt_aisearch: Optional[str] | Omit = omit,
415415
system_prompt_index_summarization: Optional[str] | Omit = omit,
416416
system_prompt_rewrite_query: Optional[str] | Omit = omit,
@@ -432,8 +432,8 @@ def update(
432432
index_method: Controls which storage backends are used during indexing. Defaults to
433433
vector-only.
434434
435-
sync_interval: Interval between automatic syncs, in seconds. Allowed values: 3600 (1h), 7200
436-
(2h), 14400 (4h), 21600 (6h), 43200 (12h), 86400 (24h).
435+
sync_interval: Interval between automatic syncs, in seconds. Allowed values: 900 (15min), 1800
436+
(30min), 3600 (1h), 7200 (2h), 14400 (4h), 21600 (6h), 43200 (12h), 86400 (24h).
437437
438438
extra_headers: Send extra headers
439439
@@ -975,7 +975,7 @@ async def create(
975975
score_threshold: float | Omit = omit,
976976
source: Optional[str] | Omit = omit,
977977
source_params: Optional[instance_create_params.SourceParams] | Omit = omit,
978-
sync_interval: Literal[3600, 7200, 14400, 21600, 43200, 86400] | Omit = omit,
978+
sync_interval: Literal[900, 1800, 3600, 7200, 14400, 21600, 43200, 86400] | Omit = omit,
979979
token_id: str | Omit = omit,
980980
type: Optional[Literal["r2", "web-crawler"]] | Omit = omit,
981981
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -997,8 +997,8 @@ async def create(
997997
index_method: Controls which storage backends are used during indexing. Defaults to
998998
vector-only.
999999
1000-
sync_interval: Interval between automatic syncs, in seconds. Allowed values: 3600 (1h), 7200
1001-
(2h), 14400 (4h), 21600 (6h), 43200 (12h), 86400 (24h).
1000+
sync_interval: Interval between automatic syncs, in seconds. Allowed values: 900 (15min), 1800
1001+
(30min), 3600 (1h), 7200 (2h), 14400 (4h), 21600 (6h), 43200 (12h), 86400 (24h).
10021002
10031003
extra_headers: Send extra headers
10041004
@@ -1203,7 +1203,7 @@ async def update(
12031203
]
12041204
]
12051205
| Omit = omit,
1206-
sync_interval: Literal[3600, 7200, 14400, 21600, 43200, 86400] | Omit = omit,
1206+
sync_interval: Literal[900, 1800, 3600, 7200, 14400, 21600, 43200, 86400] | Omit = omit,
12071207
system_prompt_aisearch: Optional[str] | Omit = omit,
12081208
system_prompt_index_summarization: Optional[str] | Omit = omit,
12091209
system_prompt_rewrite_query: Optional[str] | Omit = omit,
@@ -1225,8 +1225,8 @@ async def update(
12251225
index_method: Controls which storage backends are used during indexing. Defaults to
12261226
vector-only.
12271227
1228-
sync_interval: Interval between automatic syncs, in seconds. Allowed values: 3600 (1h), 7200
1229-
(2h), 14400 (4h), 21600 (6h), 43200 (12h), 86400 (24h).
1228+
sync_interval: Interval between automatic syncs, in seconds. Allowed values: 900 (15min), 1800
1229+
(30min), 3600 (1h), 7200 (2h), 14400 (4h), 21600 (6h), 43200 (12h), 86400 (24h).
12301230
12311231
extra_headers: Send extra headers
12321232

src/cloudflare/resources/aisearch/namespaces/instances/instances.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ def create(
195195
score_threshold: float | Omit = omit,
196196
source: Optional[str] | Omit = omit,
197197
source_params: Optional[instance_create_params.SourceParams] | Omit = omit,
198-
sync_interval: Literal[3600, 7200, 14400, 21600, 43200, 86400] | Omit = omit,
198+
sync_interval: Literal[900, 1800, 3600, 7200, 14400, 21600, 43200, 86400] | Omit = omit,
199199
token_id: str | Omit = omit,
200200
type: Optional[Literal["r2", "web-crawler"]] | Omit = omit,
201201
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -217,8 +217,8 @@ def create(
217217
index_method: Controls which storage backends are used during indexing. Defaults to
218218
vector-only.
219219
220-
sync_interval: Interval between automatic syncs, in seconds. Allowed values: 3600 (1h), 7200
221-
(2h), 14400 (4h), 21600 (6h), 43200 (12h), 86400 (24h).
220+
sync_interval: Interval between automatic syncs, in seconds. Allowed values: 900 (15min), 1800
221+
(30min), 3600 (1h), 7200 (2h), 14400 (4h), 21600 (6h), 43200 (12h), 86400 (24h).
222222
223223
extra_headers: Send extra headers
224224
@@ -428,7 +428,7 @@ def update(
428428
]
429429
]
430430
| Omit = omit,
431-
sync_interval: Literal[3600, 7200, 14400, 21600, 43200, 86400] | Omit = omit,
431+
sync_interval: Literal[900, 1800, 3600, 7200, 14400, 21600, 43200, 86400] | Omit = omit,
432432
system_prompt_aisearch: Optional[str] | Omit = omit,
433433
system_prompt_index_summarization: Optional[str] | Omit = omit,
434434
system_prompt_rewrite_query: Optional[str] | Omit = omit,
@@ -450,8 +450,8 @@ def update(
450450
index_method: Controls which storage backends are used during indexing. Defaults to
451451
vector-only.
452452
453-
sync_interval: Interval between automatic syncs, in seconds. Allowed values: 3600 (1h), 7200
454-
(2h), 14400 (4h), 21600 (6h), 43200 (12h), 86400 (24h).
453+
sync_interval: Interval between automatic syncs, in seconds. Allowed values: 900 (15min), 1800
454+
(30min), 3600 (1h), 7200 (2h), 14400 (4h), 21600 (6h), 43200 (12h), 86400 (24h).
455455
456456
extra_headers: Send extra headers
457457
@@ -1048,7 +1048,7 @@ async def create(
10481048
score_threshold: float | Omit = omit,
10491049
source: Optional[str] | Omit = omit,
10501050
source_params: Optional[instance_create_params.SourceParams] | Omit = omit,
1051-
sync_interval: Literal[3600, 7200, 14400, 21600, 43200, 86400] | Omit = omit,
1051+
sync_interval: Literal[900, 1800, 3600, 7200, 14400, 21600, 43200, 86400] | Omit = omit,
10521052
token_id: str | Omit = omit,
10531053
type: Optional[Literal["r2", "web-crawler"]] | Omit = omit,
10541054
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -1070,8 +1070,8 @@ async def create(
10701070
index_method: Controls which storage backends are used during indexing. Defaults to
10711071
vector-only.
10721072
1073-
sync_interval: Interval between automatic syncs, in seconds. Allowed values: 3600 (1h), 7200
1074-
(2h), 14400 (4h), 21600 (6h), 43200 (12h), 86400 (24h).
1073+
sync_interval: Interval between automatic syncs, in seconds. Allowed values: 900 (15min), 1800
1074+
(30min), 3600 (1h), 7200 (2h), 14400 (4h), 21600 (6h), 43200 (12h), 86400 (24h).
10751075
10761076
extra_headers: Send extra headers
10771077
@@ -1281,7 +1281,7 @@ async def update(
12811281
]
12821282
]
12831283
| Omit = omit,
1284-
sync_interval: Literal[3600, 7200, 14400, 21600, 43200, 86400] | Omit = omit,
1284+
sync_interval: Literal[900, 1800, 3600, 7200, 14400, 21600, 43200, 86400] | Omit = omit,
12851285
system_prompt_aisearch: Optional[str] | Omit = omit,
12861286
system_prompt_index_summarization: Optional[str] | Omit = omit,
12871287
system_prompt_rewrite_query: Optional[str] | Omit = omit,
@@ -1303,8 +1303,8 @@ async def update(
13031303
index_method: Controls which storage backends are used during indexing. Defaults to
13041304
vector-only.
13051305
1306-
sync_interval: Interval between automatic syncs, in seconds. Allowed values: 3600 (1h), 7200
1307-
(2h), 14400 (4h), 21600 (6h), 43200 (12h), 86400 (24h).
1306+
sync_interval: Interval between automatic syncs, in seconds. Allowed values: 900 (15min), 1800
1307+
(30min), 3600 (1h), 7200 (2h), 14400 (4h), 21600 (6h), 43200 (12h), 86400 (24h).
13081308
13091309
extra_headers: Send extra headers
13101310

0 commit comments

Comments
 (0)