Skip to content

Commit 1f4de90

Browse files
chore(api): update composite API spec
1 parent 2685e87 commit 1f4de90

File tree

8 files changed

+113
-73
lines changed

8 files changed

+113
-73
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 2163
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-4169ee95b14da30c92adc40665601f23402b6062088a1c3f34bafeab0c5147cf.yml
3-
openapi_spec_hash: 67c46cedb1c6e2c903e16c17b06486c8
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-7675b265d629354e193126ffad8e93efb804186cd581c0d45059547a015b7151.yml
3+
openapi_spec_hash: 12d024b8abf3333c2326cf51a933ba39
44
config_hash: aebbf0fc2e33e6126d43d201bfa58e25

api.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11209,7 +11209,6 @@ from cloudflare.types.aisearch import (
1120911209
NamespaceCreateResponse,
1121011210
NamespaceUpdateResponse,
1121111211
NamespaceListResponse,
11212-
NamespaceDeleteResponse,
1121311212
NamespaceChatCompletionsResponse,
1121411213
NamespaceReadResponse,
1121511214
NamespaceSearchResponse,
@@ -11221,7 +11220,7 @@ Methods:
1122111220
- <code title="post /accounts/{account_id}/ai-search/namespaces">client.aisearch.namespaces.<a href="./src/cloudflare/resources/aisearch/namespaces/namespaces.py">create</a>(\*, account_id, \*\*<a href="src/cloudflare/types/aisearch/namespace_create_params.py">params</a>) -> <a href="./src/cloudflare/types/aisearch/namespace_create_response.py">NamespaceCreateResponse</a></code>
1122211221
- <code title="put /accounts/{account_id}/ai-search/namespaces/{name}">client.aisearch.namespaces.<a href="./src/cloudflare/resources/aisearch/namespaces/namespaces.py">update</a>(name, \*, account_id, \*\*<a href="src/cloudflare/types/aisearch/namespace_update_params.py">params</a>) -> <a href="./src/cloudflare/types/aisearch/namespace_update_response.py">NamespaceUpdateResponse</a></code>
1122311222
- <code title="get /accounts/{account_id}/ai-search/namespaces">client.aisearch.namespaces.<a href="./src/cloudflare/resources/aisearch/namespaces/namespaces.py">list</a>(\*, account_id, \*\*<a href="src/cloudflare/types/aisearch/namespace_list_params.py">params</a>) -> <a href="./src/cloudflare/types/aisearch/namespace_list_response.py">SyncV4PagePaginationArray[NamespaceListResponse]</a></code>
11224-
- <code title="delete /accounts/{account_id}/ai-search/namespaces/{name}">client.aisearch.namespaces.<a href="./src/cloudflare/resources/aisearch/namespaces/namespaces.py">delete</a>(name, \*, account_id) -> <a href="./src/cloudflare/types/aisearch/namespace_delete_response.py">NamespaceDeleteResponse</a></code>
11223+
- <code title="delete /accounts/{account_id}/ai-search/namespaces/{name}">client.aisearch.namespaces.<a href="./src/cloudflare/resources/aisearch/namespaces/namespaces.py">delete</a>(name, \*, account_id) -> object</code>
1122511224
- <code title="post /accounts/{account_id}/ai-search/namespaces/{name}/chat/completions">client.aisearch.namespaces.<a href="./src/cloudflare/resources/aisearch/namespaces/namespaces.py">chat_completions</a>(name, \*, account_id, \*\*<a href="src/cloudflare/types/aisearch/namespace_chat_completions_params.py">params</a>) -> <a href="./src/cloudflare/types/aisearch/namespace_chat_completions_response.py">NamespaceChatCompletionsResponse</a></code>
1122611225
- <code title="get /accounts/{account_id}/ai-search/namespaces/{name}">client.aisearch.namespaces.<a href="./src/cloudflare/resources/aisearch/namespaces/namespaces.py">read</a>(name, \*, account_id) -> <a href="./src/cloudflare/types/aisearch/namespace_read_response.py">NamespaceReadResponse</a></code>
1122711226
- <code title="post /accounts/{account_id}/ai-search/namespaces/{name}/search">client.aisearch.namespaces.<a href="./src/cloudflare/resources/aisearch/namespaces/namespaces.py">search</a>(name, \*, account_id, \*\*<a href="src/cloudflare/types/aisearch/namespace_search_params.py">params</a>) -> <a href="./src/cloudflare/types/aisearch/namespace_search_response.py">NamespaceSearchResponse</a></code>

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

Lines changed: 22 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@
3838
from ....types.aisearch.namespace_list_response import NamespaceListResponse
3939
from ....types.aisearch.namespace_read_response import NamespaceReadResponse
4040
from ....types.aisearch.namespace_create_response import NamespaceCreateResponse
41-
from ....types.aisearch.namespace_delete_response import NamespaceDeleteResponse
4241
from ....types.aisearch.namespace_search_response import NamespaceSearchResponse
4342
from ....types.aisearch.namespace_update_response import NamespaceUpdateResponse
4443
from ....types.aisearch.namespace_chat_completions_response import NamespaceChatCompletionsResponse
@@ -84,7 +83,7 @@ def create(
8483
timeout: float | httpx.Timeout | None | NotGiven = not_given,
8584
) -> NamespaceCreateResponse:
8685
"""
87-
Create a new namespaces.
86+
Create a new namespace.
8887
8988
Args:
9089
description: Optional description for the namespace. Max 256 characters.
@@ -171,10 +170,9 @@ def list(
171170
self,
172171
*,
173172
account_id: str | None = None,
174-
order_by: Literal["created_at"] | Omit = omit,
175-
order_by_direction: Literal["asc", "desc"] | Omit = omit,
176173
page: int | Omit = omit,
177174
per_page: int | Omit = omit,
175+
search: str | Omit = omit,
178176
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
179177
# The extra values given here take precedence over values defined on the client or passed to this method.
180178
extra_headers: Headers | None = None,
@@ -186,9 +184,12 @@ def list(
186184
List namespaces.
187185
188186
Args:
189-
order_by: Order By Column Name
187+
page: Page number (1-indexed).
190188
191-
order_by_direction: Order By Direction
189+
per_page: Number of results per page.
190+
191+
search: Filter namespaces whose name or description contains this string
192+
(case-insensitive).
192193
193194
extra_headers: Send extra headers
194195
@@ -212,10 +213,9 @@ def list(
212213
timeout=timeout,
213214
query=maybe_transform(
214215
{
215-
"order_by": order_by,
216-
"order_by_direction": order_by_direction,
217216
"page": page,
218217
"per_page": per_page,
218+
"search": search,
219219
},
220220
namespace_list_params.NamespaceListParams,
221221
),
@@ -234,7 +234,7 @@ def delete(
234234
extra_query: Query | None = None,
235235
extra_body: Body | None = None,
236236
timeout: float | httpx.Timeout | None | NotGiven = not_given,
237-
) -> NamespaceDeleteResponse:
237+
) -> object:
238238
"""
239239
Delete namespace.
240240
@@ -260,9 +260,9 @@ def delete(
260260
extra_query=extra_query,
261261
extra_body=extra_body,
262262
timeout=timeout,
263-
post_parser=ResultWrapper[NamespaceDeleteResponse]._unwrapper,
263+
post_parser=ResultWrapper[object]._unwrapper,
264264
),
265-
cast_to=cast(Type[NamespaceDeleteResponse], ResultWrapper[NamespaceDeleteResponse]),
265+
cast_to=cast(Type[object], ResultWrapper[object]),
266266
)
267267

268268
def chat_completions(
@@ -487,7 +487,7 @@ async def create(
487487
timeout: float | httpx.Timeout | None | NotGiven = not_given,
488488
) -> NamespaceCreateResponse:
489489
"""
490-
Create a new namespaces.
490+
Create a new namespace.
491491
492492
Args:
493493
description: Optional description for the namespace. Max 256 characters.
@@ -576,10 +576,9 @@ def list(
576576
self,
577577
*,
578578
account_id: str | None = None,
579-
order_by: Literal["created_at"] | Omit = omit,
580-
order_by_direction: Literal["asc", "desc"] | Omit = omit,
581579
page: int | Omit = omit,
582580
per_page: int | Omit = omit,
581+
search: str | Omit = omit,
583582
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
584583
# The extra values given here take precedence over values defined on the client or passed to this method.
585584
extra_headers: Headers | None = None,
@@ -591,9 +590,12 @@ def list(
591590
List namespaces.
592591
593592
Args:
594-
order_by: Order By Column Name
593+
page: Page number (1-indexed).
594+
595+
per_page: Number of results per page.
595596
596-
order_by_direction: Order By Direction
597+
search: Filter namespaces whose name or description contains this string
598+
(case-insensitive).
597599
598600
extra_headers: Send extra headers
599601
@@ -617,10 +619,9 @@ def list(
617619
timeout=timeout,
618620
query=maybe_transform(
619621
{
620-
"order_by": order_by,
621-
"order_by_direction": order_by_direction,
622622
"page": page,
623623
"per_page": per_page,
624+
"search": search,
624625
},
625626
namespace_list_params.NamespaceListParams,
626627
),
@@ -639,7 +640,7 @@ async def delete(
639640
extra_query: Query | None = None,
640641
extra_body: Body | None = None,
641642
timeout: float | httpx.Timeout | None | NotGiven = not_given,
642-
) -> NamespaceDeleteResponse:
643+
) -> object:
643644
"""
644645
Delete namespace.
645646
@@ -665,9 +666,9 @@ async def delete(
665666
extra_query=extra_query,
666667
extra_body=extra_body,
667668
timeout=timeout,
668-
post_parser=ResultWrapper[NamespaceDeleteResponse]._unwrapper,
669+
post_parser=ResultWrapper[object]._unwrapper,
669670
),
670-
cast_to=cast(Type[NamespaceDeleteResponse], ResultWrapper[NamespaceDeleteResponse]),
671+
cast_to=cast(Type[object], ResultWrapper[object]),
671672
)
672673

673674
async def chat_completions(

src/cloudflare/types/aisearch/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
from .instance_search_response import InstanceSearchResponse as InstanceSearchResponse
2929
from .instance_update_response import InstanceUpdateResponse as InstanceUpdateResponse
3030
from .namespace_create_response import NamespaceCreateResponse as NamespaceCreateResponse
31-
from .namespace_delete_response import NamespaceDeleteResponse as NamespaceDeleteResponse
3231
from .namespace_search_response import NamespaceSearchResponse as NamespaceSearchResponse
3332
from .namespace_update_response import NamespaceUpdateResponse as NamespaceUpdateResponse
3433
from .instance_chat_completions_params import InstanceChatCompletionsParams as InstanceChatCompletionsParams

src/cloudflare/types/aisearch/namespace_delete_response.py

Lines changed: 0 additions & 17 deletions
This file was deleted.

src/cloudflare/types/aisearch/namespace_list_params.py

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,22 @@
22

33
from __future__ import annotations
44

5-
from typing_extensions import Literal, TypedDict
5+
from typing_extensions import TypedDict
66

77
__all__ = ["NamespaceListParams"]
88

99

1010
class NamespaceListParams(TypedDict, total=False):
1111
account_id: str
1212

13-
order_by: Literal["created_at"]
14-
"""Order By Column Name"""
15-
16-
order_by_direction: Literal["asc", "desc"]
17-
"""Order By Direction"""
18-
1913
page: int
14+
"""Page number (1-indexed)."""
2015

2116
per_page: int
17+
"""Number of results per page."""
18+
19+
search: str
20+
"""
21+
Filter namespaces whose name or description contains this string
22+
(case-insensitive).
23+
"""

src/cloudflare/types/url_scanner/scan_get_response.py

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,11 @@
6666
"MetaProcessorsAgentReadinessChecksBotAccessControlWebBotAuthEvidenceRequest",
6767
"MetaProcessorsAgentReadinessChecksBotAccessControlWebBotAuthEvidenceResponse",
6868
"MetaProcessorsAgentReadinessChecksCommerce",
69+
"MetaProcessorsAgentReadinessChecksCommerceAcp",
70+
"MetaProcessorsAgentReadinessChecksCommerceAcpEvidence",
71+
"MetaProcessorsAgentReadinessChecksCommerceAcpEvidenceFinding",
72+
"MetaProcessorsAgentReadinessChecksCommerceAcpEvidenceRequest",
73+
"MetaProcessorsAgentReadinessChecksCommerceAcpEvidenceResponse",
6974
"MetaProcessorsAgentReadinessChecksCommerceAp2",
7075
"MetaProcessorsAgentReadinessChecksCommerceAp2Evidence",
7176
"MetaProcessorsAgentReadinessChecksCommerceAp2EvidenceFinding",
@@ -766,6 +771,58 @@ class MetaProcessorsAgentReadinessChecksBotAccessControl(BaseModel):
766771
web_bot_auth: MetaProcessorsAgentReadinessChecksBotAccessControlWebBotAuth = FieldInfo(alias="webBotAuth")
767772

768773

774+
class MetaProcessorsAgentReadinessChecksCommerceAcpEvidenceFinding(BaseModel):
775+
outcome: str
776+
777+
summary: str
778+
779+
780+
class MetaProcessorsAgentReadinessChecksCommerceAcpEvidenceRequest(BaseModel):
781+
method: str
782+
783+
url: str
784+
785+
headers: Optional[object] = None
786+
787+
788+
class MetaProcessorsAgentReadinessChecksCommerceAcpEvidenceResponse(BaseModel):
789+
status: int
790+
791+
status_text: str = FieldInfo(alias="statusText")
792+
793+
body_preview: Optional[str] = FieldInfo(alias="bodyPreview", default=None)
794+
795+
body_size: Optional[int] = FieldInfo(alias="bodySize", default=None)
796+
797+
headers: Optional[object] = None
798+
799+
redirected_to: Optional[str] = FieldInfo(alias="redirectedTo", default=None)
800+
801+
802+
class MetaProcessorsAgentReadinessChecksCommerceAcpEvidence(BaseModel):
803+
action: str
804+
805+
label: str
806+
807+
finding: Optional[MetaProcessorsAgentReadinessChecksCommerceAcpEvidenceFinding] = None
808+
809+
request: Optional[MetaProcessorsAgentReadinessChecksCommerceAcpEvidenceRequest] = None
810+
811+
response: Optional[MetaProcessorsAgentReadinessChecksCommerceAcpEvidenceResponse] = None
812+
813+
814+
class MetaProcessorsAgentReadinessChecksCommerceAcp(BaseModel):
815+
status: str
816+
817+
details: Optional[object] = None
818+
819+
duration_ms: Optional[float] = FieldInfo(alias="durationMs", default=None)
820+
821+
evidence: Optional[List[MetaProcessorsAgentReadinessChecksCommerceAcpEvidence]] = None
822+
823+
message: Optional[str] = None
824+
825+
769826
class MetaProcessorsAgentReadinessChecksCommerceAp2EvidenceFinding(BaseModel):
770827
outcome: str
771828

@@ -923,6 +980,8 @@ class MetaProcessorsAgentReadinessChecksCommerceX402(BaseModel):
923980

924981

925982
class MetaProcessorsAgentReadinessChecksCommerce(BaseModel):
983+
acp: MetaProcessorsAgentReadinessChecksCommerceAcp
984+
926985
ap2: MetaProcessorsAgentReadinessChecksCommerceAp2
927986

928987
ucp: MetaProcessorsAgentReadinessChecksCommerceUcp

0 commit comments

Comments
 (0)