Skip to content

Commit 5929e33

Browse files
authored
Merge pull request #2707 from cloudflare/sync/staging-next-2026-04-29
sync: integrate staging-next codegen changes (2026-04-29)
2 parents 9707100 + b258ec8 commit 5929e33

260 files changed

Lines changed: 6657 additions & 2933 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.stats.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 2194
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-0ce49e6bb0d3819f135b9a567b661205fdf5df21cff157eab2b7abd7b5b50347.yml
3-
openapi_spec_hash: 512a5bb3a32860590c8949765605d65a
4-
config_hash: 5367ae3e3a9a0d6578c2756965a99e3a
1+
configured_endpoints: 2195
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-a6c352830d1270d0abb5bb983058ea21815e1bb7d2e163965335dcb0e706f057.yml
3+
openapi_spec_hash: ffe469d5b0b3f29c20ccb91c0a2862e7
4+
config_hash: a83bae9f0be0219cfe77d38d5af60d4a

src/cloudflare/resources/ai/to_markdown.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,11 +111,11 @@ def transform(
111111
# sent to the server will contain a `boundary` parameter, e.g.
112112
# multipart/form-data; boundary=---abc--
113113
extra_headers = {"Content-Type": "multipart/form-data", **(extra_headers or {})}
114-
return self._get_api_list(
114+
return self._get_api_list( # type: ignore[call-arg]
115115
path_template("/accounts/{account_id}/ai/tomarkdown", account_id=account_id),
116116
page=SyncSinglePage[ToMarkdownTransformResponse],
117117
body=maybe_transform(body, to_markdown_transform_params.ToMarkdownTransformParams),
118-
files=files,
118+
files=files, # pyright: ignore[reportCallIssue]
119119
options=make_request_options(
120120
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
121121
),
@@ -210,11 +210,11 @@ def transform(
210210
# sent to the server will contain a `boundary` parameter, e.g.
211211
# multipart/form-data; boundary=---abc--
212212
extra_headers = {"Content-Type": "multipart/form-data", **(extra_headers or {})}
213-
return self._get_api_list(
213+
return self._get_api_list( # type: ignore[call-arg]
214214
path_template("/accounts/{account_id}/ai/tomarkdown", account_id=account_id),
215215
page=AsyncSinglePage[ToMarkdownTransformResponse],
216216
body=maybe_transform(body, to_markdown_transform_params.ToMarkdownTransformParams),
217-
files=files,
217+
files=files, # pyright: ignore[reportCallIssue]
218218
options=make_request_options(
219219
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
220220
),

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

Lines changed: 34 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ def create(
192192
extra_body: Body | None = None,
193193
timeout: float | httpx.Timeout | None | NotGiven = not_given,
194194
) -> InstanceCreateResponse:
195-
"""Create a new instances.
195+
"""Create a new instance.
196196
197197
Args:
198198
id: AI Search instance ID.
@@ -420,13 +420,10 @@ def update(
420420
extra_body: Body | None = None,
421421
timeout: float | httpx.Timeout | None | NotGiven = not_given,
422422
) -> InstanceUpdateResponse:
423-
"""Update instances.
423+
"""
424+
Update instance.
424425
425426
Args:
426-
id: AI Search instance ID.
427-
428-
Lowercase alphanumeric, hyphens, and underscores.
429-
430427
index_method: Controls which storage backends are used during indexing. Defaults to
431428
vector-only.
432429
@@ -496,7 +493,7 @@ def list(
496493
self,
497494
*,
498495
account_id: str,
499-
namespace: Optional[str] | Omit = omit,
496+
namespace: str | Omit = omit,
500497
order_by: Literal["created_at"] | Omit = omit,
501498
order_by_direction: Literal["asc", "desc"] | Omit = omit,
502499
page: int | Omit = omit,
@@ -513,11 +510,17 @@ def list(
513510
List instances.
514511
515512
Args:
516-
order_by: Order By Column Name
513+
namespace: Filter by namespace.
517514
518-
order_by_direction: Order By Direction
515+
order_by: Field to order results by.
519516
520-
search: Search by id
517+
order_by_direction: Order direction.
518+
519+
page: Page number (1-indexed).
520+
521+
per_page: Number of results per page.
522+
523+
search: Filter instances whose id contains this string (case-insensitive).
521524
522525
extra_headers: Send extra headers
523526
@@ -564,13 +567,10 @@ def delete(
564567
extra_body: Body | None = None,
565568
timeout: float | httpx.Timeout | None | NotGiven = not_given,
566569
) -> InstanceDeleteResponse:
567-
"""Delete instances.
570+
"""
571+
Delete instance.
568572
569573
Args:
570-
id: AI Search instance ID.
571-
572-
Lowercase alphanumeric, hyphens, and underscores.
573-
574574
extra_headers: Send extra headers
575575
576576
extra_query: Add additional query parameters to the request
@@ -693,13 +693,10 @@ def read(
693693
extra_body: Body | None = None,
694694
timeout: float | httpx.Timeout | None | NotGiven = not_given,
695695
) -> InstanceReadResponse:
696-
"""Read instances.
696+
"""
697+
Read instance.
697698
698699
Args:
699-
id: AI Search instance ID.
700-
701-
Lowercase alphanumeric, hyphens, and underscores.
702-
703700
extra_headers: Send extra headers
704701
705702
extra_query: Add additional query parameters to the request
@@ -969,7 +966,7 @@ async def create(
969966
extra_body: Body | None = None,
970967
timeout: float | httpx.Timeout | None | NotGiven = not_given,
971968
) -> InstanceCreateResponse:
972-
"""Create a new instances.
969+
"""Create a new instance.
973970
974971
Args:
975972
id: AI Search instance ID.
@@ -1197,13 +1194,10 @@ async def update(
11971194
extra_body: Body | None = None,
11981195
timeout: float | httpx.Timeout | None | NotGiven = not_given,
11991196
) -> InstanceUpdateResponse:
1200-
"""Update instances.
1197+
"""
1198+
Update instance.
12011199
12021200
Args:
1203-
id: AI Search instance ID.
1204-
1205-
Lowercase alphanumeric, hyphens, and underscores.
1206-
12071201
index_method: Controls which storage backends are used during indexing. Defaults to
12081202
vector-only.
12091203
@@ -1273,7 +1267,7 @@ def list(
12731267
self,
12741268
*,
12751269
account_id: str,
1276-
namespace: Optional[str] | Omit = omit,
1270+
namespace: str | Omit = omit,
12771271
order_by: Literal["created_at"] | Omit = omit,
12781272
order_by_direction: Literal["asc", "desc"] | Omit = omit,
12791273
page: int | Omit = omit,
@@ -1290,11 +1284,17 @@ def list(
12901284
List instances.
12911285
12921286
Args:
1293-
order_by: Order By Column Name
1287+
namespace: Filter by namespace.
12941288
1295-
order_by_direction: Order By Direction
1289+
order_by: Field to order results by.
12961290
1297-
search: Search by id
1291+
order_by_direction: Order direction.
1292+
1293+
page: Page number (1-indexed).
1294+
1295+
per_page: Number of results per page.
1296+
1297+
search: Filter instances whose id contains this string (case-insensitive).
12981298
12991299
extra_headers: Send extra headers
13001300
@@ -1341,13 +1341,10 @@ async def delete(
13411341
extra_body: Body | None = None,
13421342
timeout: float | httpx.Timeout | None | NotGiven = not_given,
13431343
) -> InstanceDeleteResponse:
1344-
"""Delete instances.
1344+
"""
1345+
Delete instance.
13451346
13461347
Args:
1347-
id: AI Search instance ID.
1348-
1349-
Lowercase alphanumeric, hyphens, and underscores.
1350-
13511348
extra_headers: Send extra headers
13521349
13531350
extra_query: Add additional query parameters to the request
@@ -1470,13 +1467,10 @@ async def read(
14701467
extra_body: Body | None = None,
14711468
timeout: float | httpx.Timeout | None | NotGiven = not_given,
14721469
) -> InstanceReadResponse:
1473-
"""Read instances.
1470+
"""
1471+
Read instance.
14741472
14751473
Args:
1476-
id: AI Search instance ID.
1477-
1478-
Lowercase alphanumeric, hyphens, and underscores.
1479-
14801474
extra_headers: Send extra headers
14811475
14821476
extra_query: Add additional query parameters to the request

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

Lines changed: 34 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ def create(
205205
extra_body: Body | None = None,
206206
timeout: float | httpx.Timeout | None | NotGiven = not_given,
207207
) -> InstanceCreateResponse:
208-
"""Create a new instances.
208+
"""Create a new instance.
209209
210210
Args:
211211
id: AI Search instance ID.
@@ -438,13 +438,10 @@ def update(
438438
extra_body: Body | None = None,
439439
timeout: float | httpx.Timeout | None | NotGiven = not_given,
440440
) -> InstanceUpdateResponse:
441-
"""Update instances.
441+
"""
442+
Update instance.
442443
443444
Args:
444-
id: AI Search instance ID.
445-
446-
Lowercase alphanumeric, hyphens, and underscores.
447-
448445
index_method: Controls which storage backends are used during indexing. Defaults to
449446
vector-only.
450447
@@ -522,7 +519,7 @@ def list(
522519
name: str,
523520
*,
524521
account_id: str,
525-
namespace: Optional[str] | Omit = omit,
522+
namespace: str | Omit = omit,
526523
order_by: Literal["created_at"] | Omit = omit,
527524
order_by_direction: Literal["asc", "desc"] | Omit = omit,
528525
page: int | Omit = omit,
@@ -539,11 +536,17 @@ def list(
539536
List instances.
540537
541538
Args:
542-
order_by: Order By Column Name
539+
namespace: Filter by namespace.
543540
544-
order_by_direction: Order By Direction
541+
order_by: Field to order results by.
545542
546-
search: Search by id
543+
order_by_direction: Order direction.
544+
545+
page: Page number (1-indexed).
546+
547+
per_page: Number of results per page.
548+
549+
search: Filter instances whose id contains this string (case-insensitive).
547550
548551
extra_headers: Send extra headers
549552
@@ -595,13 +598,10 @@ def delete(
595598
extra_body: Body | None = None,
596599
timeout: float | httpx.Timeout | None | NotGiven = not_given,
597600
) -> InstanceDeleteResponse:
598-
"""Delete instances.
601+
"""
602+
Delete instance.
599603
600604
Args:
601-
id: AI Search instance ID.
602-
603-
Lowercase alphanumeric, hyphens, and underscores.
604-
605605
extra_headers: Send extra headers
606606
607607
extra_query: Add additional query parameters to the request
@@ -738,13 +738,10 @@ def read(
738738
extra_body: Body | None = None,
739739
timeout: float | httpx.Timeout | None | NotGiven = not_given,
740740
) -> InstanceReadResponse:
741-
"""Read instances.
741+
"""
742+
Read instance.
742743
743744
Args:
744-
id: AI Search instance ID.
745-
746-
Lowercase alphanumeric, hyphens, and underscores.
747-
748745
extra_headers: Send extra headers
749746
750747
extra_query: Add additional query parameters to the request
@@ -1042,7 +1039,7 @@ async def create(
10421039
extra_body: Body | None = None,
10431040
timeout: float | httpx.Timeout | None | NotGiven = not_given,
10441041
) -> InstanceCreateResponse:
1045-
"""Create a new instances.
1042+
"""Create a new instance.
10461043
10471044
Args:
10481045
id: AI Search instance ID.
@@ -1275,13 +1272,10 @@ async def update(
12751272
extra_body: Body | None = None,
12761273
timeout: float | httpx.Timeout | None | NotGiven = not_given,
12771274
) -> InstanceUpdateResponse:
1278-
"""Update instances.
1275+
"""
1276+
Update instance.
12791277
12801278
Args:
1281-
id: AI Search instance ID.
1282-
1283-
Lowercase alphanumeric, hyphens, and underscores.
1284-
12851279
index_method: Controls which storage backends are used during indexing. Defaults to
12861280
vector-only.
12871281
@@ -1359,7 +1353,7 @@ def list(
13591353
name: str,
13601354
*,
13611355
account_id: str,
1362-
namespace: Optional[str] | Omit = omit,
1356+
namespace: str | Omit = omit,
13631357
order_by: Literal["created_at"] | Omit = omit,
13641358
order_by_direction: Literal["asc", "desc"] | Omit = omit,
13651359
page: int | Omit = omit,
@@ -1376,11 +1370,17 @@ def list(
13761370
List instances.
13771371
13781372
Args:
1379-
order_by: Order By Column Name
1373+
namespace: Filter by namespace.
13801374
1381-
order_by_direction: Order By Direction
1375+
order_by: Field to order results by.
13821376
1383-
search: Search by id
1377+
order_by_direction: Order direction.
1378+
1379+
page: Page number (1-indexed).
1380+
1381+
per_page: Number of results per page.
1382+
1383+
search: Filter instances whose id contains this string (case-insensitive).
13841384
13851385
extra_headers: Send extra headers
13861386
@@ -1432,13 +1432,10 @@ async def delete(
14321432
extra_body: Body | None = None,
14331433
timeout: float | httpx.Timeout | None | NotGiven = not_given,
14341434
) -> InstanceDeleteResponse:
1435-
"""Delete instances.
1435+
"""
1436+
Delete instance.
14361437
14371438
Args:
1438-
id: AI Search instance ID.
1439-
1440-
Lowercase alphanumeric, hyphens, and underscores.
1441-
14421439
extra_headers: Send extra headers
14431440
14441441
extra_query: Add additional query parameters to the request
@@ -1575,13 +1572,10 @@ async def read(
15751572
extra_body: Body | None = None,
15761573
timeout: float | httpx.Timeout | None | NotGiven = not_given,
15771574
) -> InstanceReadResponse:
1578-
"""Read instances.
1575+
"""
1576+
Read instance.
15791577
15801578
Args:
1581-
id: AI Search instance ID.
1582-
1583-
Lowercase alphanumeric, hyphens, and underscores.
1584-
15851579
extra_headers: Send extra headers
15861580
15871581
extra_query: Add additional query parameters to the request

0 commit comments

Comments
 (0)