Skip to content

Commit 54b8775

Browse files
committed
chore(aisearch): update generated types and methods
1 parent b8078b3 commit 54b8775

18 files changed

Lines changed: 166 additions & 8 deletions

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

Lines changed: 30 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ def create(
115115
cache: bool | Omit = omit,
116116
cache_threshold: Literal["super_strict_match", "close_enough", "flexible_friend", "anything_goes"]
117117
| Omit = omit,
118+
cache_ttl: Literal[600, 1800, 3600, 7200, 21600, 43200, 86400, 172800, 259200, 518400] | Omit = omit,
118119
chunk: bool | Omit = omit,
119120
chunk_overlap: int | Omit = omit,
120121
chunk_size: int | Omit = omit,
@@ -199,6 +200,10 @@ def create(
199200
200201
Lowercase alphanumeric, hyphens, and underscores.
201202
203+
cache_ttl: Cache entry TTL in seconds. Allowed values: 600 (10min), 1800 (30min), 3600
204+
(1h), 7200 (2h), 21600 (6h), 43200 (12h), 86400 (24h), 172800 (48h), 259200
205+
(72h), 518400 (6d).
206+
202207
hybrid_search_enabled: Deprecated — use index_method instead.
203208
204209
index_method: Controls which storage backends are used during indexing. Defaults to
@@ -226,6 +231,7 @@ def create(
226231
"aisearch_model": aisearch_model,
227232
"cache": cache,
228233
"cache_threshold": cache_threshold,
234+
"cache_ttl": cache_ttl,
229235
"chunk": chunk,
230236
"chunk_overlap": chunk_overlap,
231237
"chunk_size": chunk_size,
@@ -306,6 +312,7 @@ def update(
306312
cache: bool | Omit = omit,
307313
cache_threshold: Literal["super_strict_match", "close_enough", "flexible_friend", "anything_goes"]
308314
| Omit = omit,
315+
cache_ttl: Literal[600, 1800, 3600, 7200, 21600, 43200, 86400, 172800, 259200, 518400] | Omit = omit,
309316
chunk: bool | Omit = omit,
310317
chunk_overlap: int | Omit = omit,
311318
chunk_size: int | Omit = omit,
@@ -420,10 +427,15 @@ def update(
420427
extra_body: Body | None = None,
421428
timeout: float | httpx.Timeout | None | NotGiven = not_given,
422429
) -> InstanceUpdateResponse:
423-
"""
424-
Update instance.
430+
"""Update instance.
425431
426432
Args:
433+
cache_ttl: Cache entry TTL in seconds.
434+
435+
Allowed values: 600 (10min), 1800 (30min), 3600
436+
(1h), 7200 (2h), 21600 (6h), 43200 (12h), 86400 (24h), 172800 (48h), 259200
437+
(72h), 518400 (6d).
438+
427439
index_method: Controls which storage backends are used during indexing. Defaults to
428440
vector-only.
429441
@@ -450,6 +462,7 @@ def update(
450462
"aisearch_model": aisearch_model,
451463
"cache": cache,
452464
"cache_threshold": cache_threshold,
465+
"cache_ttl": cache_ttl,
453466
"chunk": chunk,
454467
"chunk_overlap": chunk_overlap,
455468
"chunk_size": chunk_size,
@@ -889,6 +902,7 @@ async def create(
889902
cache: bool | Omit = omit,
890903
cache_threshold: Literal["super_strict_match", "close_enough", "flexible_friend", "anything_goes"]
891904
| Omit = omit,
905+
cache_ttl: Literal[600, 1800, 3600, 7200, 21600, 43200, 86400, 172800, 259200, 518400] | Omit = omit,
892906
chunk: bool | Omit = omit,
893907
chunk_overlap: int | Omit = omit,
894908
chunk_size: int | Omit = omit,
@@ -973,6 +987,10 @@ async def create(
973987
974988
Lowercase alphanumeric, hyphens, and underscores.
975989
990+
cache_ttl: Cache entry TTL in seconds. Allowed values: 600 (10min), 1800 (30min), 3600
991+
(1h), 7200 (2h), 21600 (6h), 43200 (12h), 86400 (24h), 172800 (48h), 259200
992+
(72h), 518400 (6d).
993+
976994
hybrid_search_enabled: Deprecated — use index_method instead.
977995
978996
index_method: Controls which storage backends are used during indexing. Defaults to
@@ -1000,6 +1018,7 @@ async def create(
10001018
"aisearch_model": aisearch_model,
10011019
"cache": cache,
10021020
"cache_threshold": cache_threshold,
1021+
"cache_ttl": cache_ttl,
10031022
"chunk": chunk,
10041023
"chunk_overlap": chunk_overlap,
10051024
"chunk_size": chunk_size,
@@ -1080,6 +1099,7 @@ async def update(
10801099
cache: bool | Omit = omit,
10811100
cache_threshold: Literal["super_strict_match", "close_enough", "flexible_friend", "anything_goes"]
10821101
| Omit = omit,
1102+
cache_ttl: Literal[600, 1800, 3600, 7200, 21600, 43200, 86400, 172800, 259200, 518400] | Omit = omit,
10831103
chunk: bool | Omit = omit,
10841104
chunk_overlap: int | Omit = omit,
10851105
chunk_size: int | Omit = omit,
@@ -1194,10 +1214,15 @@ async def update(
11941214
extra_body: Body | None = None,
11951215
timeout: float | httpx.Timeout | None | NotGiven = not_given,
11961216
) -> InstanceUpdateResponse:
1197-
"""
1198-
Update instance.
1217+
"""Update instance.
11991218
12001219
Args:
1220+
cache_ttl: Cache entry TTL in seconds.
1221+
1222+
Allowed values: 600 (10min), 1800 (30min), 3600
1223+
(1h), 7200 (2h), 21600 (6h), 43200 (12h), 86400 (24h), 172800 (48h), 259200
1224+
(72h), 518400 (6d).
1225+
12011226
index_method: Controls which storage backends are used during indexing. Defaults to
12021227
vector-only.
12031228
@@ -1224,6 +1249,7 @@ async def update(
12241249
"aisearch_model": aisearch_model,
12251250
"cache": cache,
12261251
"cache_threshold": cache_threshold,
1252+
"cache_ttl": cache_ttl,
12271253
"chunk": chunk,
12281254
"chunk_overlap": chunk_overlap,
12291255
"chunk_size": chunk_size,

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

Lines changed: 30 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ def create(
128128
cache: bool | Omit = omit,
129129
cache_threshold: Literal["super_strict_match", "close_enough", "flexible_friend", "anything_goes"]
130130
| Omit = omit,
131+
cache_ttl: Literal[600, 1800, 3600, 7200, 21600, 43200, 86400, 172800, 259200, 518400] | Omit = omit,
131132
chunk: bool | Omit = omit,
132133
chunk_overlap: int | Omit = omit,
133134
chunk_size: int | Omit = omit,
@@ -212,6 +213,10 @@ def create(
212213
213214
Lowercase alphanumeric, hyphens, and underscores.
214215
216+
cache_ttl: Cache entry TTL in seconds. Allowed values: 600 (10min), 1800 (30min), 3600
217+
(1h), 7200 (2h), 21600 (6h), 43200 (12h), 86400 (24h), 172800 (48h), 259200
218+
(72h), 518400 (6d).
219+
215220
hybrid_search_enabled: Deprecated — use index_method instead.
216221
217222
index_method: Controls which storage backends are used during indexing. Defaults to
@@ -243,6 +248,7 @@ def create(
243248
"aisearch_model": aisearch_model,
244249
"cache": cache,
245250
"cache_threshold": cache_threshold,
251+
"cache_ttl": cache_ttl,
246252
"chunk": chunk,
247253
"chunk_overlap": chunk_overlap,
248254
"chunk_size": chunk_size,
@@ -324,6 +330,7 @@ def update(
324330
cache: bool | Omit = omit,
325331
cache_threshold: Literal["super_strict_match", "close_enough", "flexible_friend", "anything_goes"]
326332
| Omit = omit,
333+
cache_ttl: Literal[600, 1800, 3600, 7200, 21600, 43200, 86400, 172800, 259200, 518400] | Omit = omit,
327334
chunk: bool | Omit = omit,
328335
chunk_overlap: int | Omit = omit,
329336
chunk_size: int | Omit = omit,
@@ -438,10 +445,15 @@ def update(
438445
extra_body: Body | None = None,
439446
timeout: float | httpx.Timeout | None | NotGiven = not_given,
440447
) -> InstanceUpdateResponse:
441-
"""
442-
Update instance.
448+
"""Update instance.
443449
444450
Args:
451+
cache_ttl: Cache entry TTL in seconds.
452+
453+
Allowed values: 600 (10min), 1800 (30min), 3600
454+
(1h), 7200 (2h), 21600 (6h), 43200 (12h), 86400 (24h), 172800 (48h), 259200
455+
(72h), 518400 (6d).
456+
445457
index_method: Controls which storage backends are used during indexing. Defaults to
446458
vector-only.
447459
@@ -475,6 +487,7 @@ def update(
475487
"aisearch_model": aisearch_model,
476488
"cache": cache,
477489
"cache_threshold": cache_threshold,
490+
"cache_ttl": cache_ttl,
478491
"chunk": chunk,
479492
"chunk_overlap": chunk_overlap,
480493
"chunk_size": chunk_size,
@@ -962,6 +975,7 @@ async def create(
962975
cache: bool | Omit = omit,
963976
cache_threshold: Literal["super_strict_match", "close_enough", "flexible_friend", "anything_goes"]
964977
| Omit = omit,
978+
cache_ttl: Literal[600, 1800, 3600, 7200, 21600, 43200, 86400, 172800, 259200, 518400] | Omit = omit,
965979
chunk: bool | Omit = omit,
966980
chunk_overlap: int | Omit = omit,
967981
chunk_size: int | Omit = omit,
@@ -1046,6 +1060,10 @@ async def create(
10461060
10471061
Lowercase alphanumeric, hyphens, and underscores.
10481062
1063+
cache_ttl: Cache entry TTL in seconds. Allowed values: 600 (10min), 1800 (30min), 3600
1064+
(1h), 7200 (2h), 21600 (6h), 43200 (12h), 86400 (24h), 172800 (48h), 259200
1065+
(72h), 518400 (6d).
1066+
10491067
hybrid_search_enabled: Deprecated — use index_method instead.
10501068
10511069
index_method: Controls which storage backends are used during indexing. Defaults to
@@ -1077,6 +1095,7 @@ async def create(
10771095
"aisearch_model": aisearch_model,
10781096
"cache": cache,
10791097
"cache_threshold": cache_threshold,
1098+
"cache_ttl": cache_ttl,
10801099
"chunk": chunk,
10811100
"chunk_overlap": chunk_overlap,
10821101
"chunk_size": chunk_size,
@@ -1158,6 +1177,7 @@ async def update(
11581177
cache: bool | Omit = omit,
11591178
cache_threshold: Literal["super_strict_match", "close_enough", "flexible_friend", "anything_goes"]
11601179
| Omit = omit,
1180+
cache_ttl: Literal[600, 1800, 3600, 7200, 21600, 43200, 86400, 172800, 259200, 518400] | Omit = omit,
11611181
chunk: bool | Omit = omit,
11621182
chunk_overlap: int | Omit = omit,
11631183
chunk_size: int | Omit = omit,
@@ -1272,10 +1292,15 @@ async def update(
12721292
extra_body: Body | None = None,
12731293
timeout: float | httpx.Timeout | None | NotGiven = not_given,
12741294
) -> InstanceUpdateResponse:
1275-
"""
1276-
Update instance.
1295+
"""Update instance.
12771296
12781297
Args:
1298+
cache_ttl: Cache entry TTL in seconds.
1299+
1300+
Allowed values: 600 (10min), 1800 (30min), 3600
1301+
(1h), 7200 (2h), 21600 (6h), 43200 (12h), 86400 (24h), 172800 (48h), 259200
1302+
(72h), 518400 (6d).
1303+
12791304
index_method: Controls which storage backends are used during indexing. Defaults to
12801305
vector-only.
12811306
@@ -1309,6 +1334,7 @@ async def update(
13091334
"aisearch_model": aisearch_model,
13101335
"cache": cache,
13111336
"cache_threshold": cache_threshold,
1337+
"cache_ttl": cache_ttl,
13121338
"chunk": chunk,
13131339
"chunk_overlap": chunk_overlap,
13141340
"chunk_size": chunk_size,

src/cloudflare/types/aisearch/instance_create_params.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,13 @@ class InstanceCreateParams(TypedDict, total=False):
8181

8282
cache_threshold: Literal["super_strict_match", "close_enough", "flexible_friend", "anything_goes"]
8383

84+
cache_ttl: Literal[600, 1800, 3600, 7200, 21600, 43200, 86400, 172800, 259200, 518400]
85+
"""Cache entry TTL in seconds.
86+
87+
Allowed values: 600 (10min), 1800 (30min), 3600 (1h), 7200 (2h), 21600 (6h),
88+
43200 (12h), 86400 (24h), 172800 (48h), 259200 (72h), 518400 (6d).
89+
"""
90+
8491
chunk: bool
8592

8693
chunk_overlap: int

src/cloudflare/types/aisearch/instance_create_response.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,13 @@ class InstanceCreateResponse(BaseModel):
282282

283283
cache_threshold: Optional[Literal["super_strict_match", "close_enough", "flexible_friend", "anything_goes"]] = None
284284

285+
cache_ttl: Optional[Literal[600, 1800, 3600, 7200, 21600, 43200, 86400, 172800, 259200, 518400]] = None
286+
"""Cache entry TTL in seconds.
287+
288+
Allowed values: 600 (10min), 1800 (30min), 3600 (1h), 7200 (2h), 21600 (6h),
289+
43200 (12h), 86400 (24h), 172800 (48h), 259200 (72h), 518400 (6d).
290+
"""
291+
285292
chunk_overlap: Optional[int] = None
286293

287294
chunk_size: Optional[int] = None

src/cloudflare/types/aisearch/instance_delete_response.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,13 @@ class InstanceDeleteResponse(BaseModel):
282282

283283
cache_threshold: Optional[Literal["super_strict_match", "close_enough", "flexible_friend", "anything_goes"]] = None
284284

285+
cache_ttl: Optional[Literal[600, 1800, 3600, 7200, 21600, 43200, 86400, 172800, 259200, 518400]] = None
286+
"""Cache entry TTL in seconds.
287+
288+
Allowed values: 600 (10min), 1800 (30min), 3600 (1h), 7200 (2h), 21600 (6h),
289+
43200 (12h), 86400 (24h), 172800 (48h), 259200 (72h), 518400 (6d).
290+
"""
291+
285292
chunk_overlap: Optional[int] = None
286293

287294
chunk_size: Optional[int] = None

src/cloudflare/types/aisearch/instance_list_response.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,13 @@ class InstanceListResponse(BaseModel):
282282

283283
cache_threshold: Optional[Literal["super_strict_match", "close_enough", "flexible_friend", "anything_goes"]] = None
284284

285+
cache_ttl: Optional[Literal[600, 1800, 3600, 7200, 21600, 43200, 86400, 172800, 259200, 518400]] = None
286+
"""Cache entry TTL in seconds.
287+
288+
Allowed values: 600 (10min), 1800 (30min), 3600 (1h), 7200 (2h), 21600 (6h),
289+
43200 (12h), 86400 (24h), 172800 (48h), 259200 (72h), 518400 (6d).
290+
"""
291+
285292
chunk_overlap: Optional[int] = None
286293

287294
chunk_size: Optional[int] = None

src/cloudflare/types/aisearch/instance_read_response.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,13 @@ class InstanceReadResponse(BaseModel):
282282

283283
cache_threshold: Optional[Literal["super_strict_match", "close_enough", "flexible_friend", "anything_goes"]] = None
284284

285+
cache_ttl: Optional[Literal[600, 1800, 3600, 7200, 21600, 43200, 86400, 172800, 259200, 518400]] = None
286+
"""Cache entry TTL in seconds.
287+
288+
Allowed values: 600 (10min), 1800 (30min), 3600 (1h), 7200 (2h), 21600 (6h),
289+
43200 (12h), 86400 (24h), 172800 (48h), 259200 (72h), 518400 (6d).
290+
"""
291+
285292
chunk_overlap: Optional[int] = None
286293

287294
chunk_size: Optional[int] = None

src/cloudflare/types/aisearch/instance_update_params.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,13 @@ class InstanceUpdateParams(TypedDict, total=False):
7878

7979
cache_threshold: Literal["super_strict_match", "close_enough", "flexible_friend", "anything_goes"]
8080

81+
cache_ttl: Literal[600, 1800, 3600, 7200, 21600, 43200, 86400, 172800, 259200, 518400]
82+
"""Cache entry TTL in seconds.
83+
84+
Allowed values: 600 (10min), 1800 (30min), 3600 (1h), 7200 (2h), 21600 (6h),
85+
43200 (12h), 86400 (24h), 172800 (48h), 259200 (72h), 518400 (6d).
86+
"""
87+
8188
chunk: bool
8289

8390
chunk_overlap: int

src/cloudflare/types/aisearch/instance_update_response.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,13 @@ class InstanceUpdateResponse(BaseModel):
282282

283283
cache_threshold: Optional[Literal["super_strict_match", "close_enough", "flexible_friend", "anything_goes"]] = None
284284

285+
cache_ttl: Optional[Literal[600, 1800, 3600, 7200, 21600, 43200, 86400, 172800, 259200, 518400]] = None
286+
"""Cache entry TTL in seconds.
287+
288+
Allowed values: 600 (10min), 1800 (30min), 3600 (1h), 7200 (2h), 21600 (6h),
289+
43200 (12h), 86400 (24h), 172800 (48h), 259200 (72h), 518400 (6d).
290+
"""
291+
285292
chunk_overlap: Optional[int] = None
286293

287294
chunk_size: Optional[int] = None

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,13 @@ class InstanceCreateParams(TypedDict, total=False):
8181

8282
cache_threshold: Literal["super_strict_match", "close_enough", "flexible_friend", "anything_goes"]
8383

84+
cache_ttl: Literal[600, 1800, 3600, 7200, 21600, 43200, 86400, 172800, 259200, 518400]
85+
"""Cache entry TTL in seconds.
86+
87+
Allowed values: 600 (10min), 1800 (30min), 3600 (1h), 7200 (2h), 21600 (6h),
88+
43200 (12h), 86400 (24h), 172800 (48h), 259200 (72h), 518400 (6d).
89+
"""
90+
8491
chunk: bool
8592

8693
chunk_overlap: int

0 commit comments

Comments
 (0)