Skip to content

Commit ae726cf

Browse files
chore(api): update composite API spec
1 parent 4694bd3 commit ae726cf

9 files changed

Lines changed: 121 additions & 10 deletions

File tree

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 2211
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-a6c352830d1270d0abb5bb983058ea21815e1bb7d2e163965335dcb0e706f057.yml
3-
openapi_spec_hash: 512888090352626a0937b97e77f93c6c
3+
openapi_spec_hash: 080c9cae915329f859d49062622da2f7
44
config_hash: e84ce27865a87048dfceb774cac9c0fd

src/cloudflare/resources/cloudforce_one/threat_events/threat_events.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ def list(
260260
cursor: str | Omit = omit,
261261
dataset_id: SequenceNotStr[str] | Omit = omit,
262262
force_refresh: bool | Omit = omit,
263-
format: Literal["json", "stix2"] | Omit = omit,
263+
format: Literal["json", "stix2", "taxii"] | Omit = omit,
264264
order: Literal["asc", "desc"] | Omit = omit,
265265
order_by: str | Omit = omit,
266266
page: float | Omit = omit,
@@ -653,7 +653,7 @@ async def list(
653653
cursor: str | Omit = omit,
654654
dataset_id: SequenceNotStr[str] | Omit = omit,
655655
force_refresh: bool | Omit = omit,
656-
format: Literal["json", "stix2"] | Omit = omit,
656+
format: Literal["json", "stix2", "taxii"] | Omit = omit,
657657
order: Literal["asc", "desc"] | Omit = omit,
658658
order_by: str | Omit = omit,
659659
page: float | Omit = omit,

src/cloudflare/resources/zero_trust/resource_library/applications.py

Lines changed: 30 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ def list(
5454
limit: int | Omit = omit,
5555
offset: int | Omit = omit,
5656
order_by: str | Omit = omit,
57+
search: str | Omit = omit,
5758
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
5859
# The extra values given here take precedence over values defined on the client or passed to this method.
5960
extra_headers: Headers | None = None,
@@ -77,13 +78,24 @@ def list(
7778
- ip_subnet: Filter by IP subnet using CIDR containment — returns applications
7879
where any stored subnet contains the search value (e.g., ip_subnet:10.0.1.5/32
7980
matches apps with 10.0.0.0/16)
80-
- intel_id: Filter by Intel API ID (e.g., intel_id:498). .
81+
- intel_id: Filter by Intel API ID (e.g., intel_id:498). also supports multiple
82+
values (e.g., intel_id:498,1001)
83+
- category_id: Filter by category ID (e.g.,
84+
category_id:37f8ec03-8766-49d4-9a15-369b044c842c).
85+
- category_name: Filter by category name (e.g., category_name:HR).
86+
- supported: Filter by supported Cloudflare product (e.g., supported:ACCESS).
87+
Values: GATEWAY, ACCESS, CASB. .
8188
8289
limit: Limit of number of results to return (max 250).
8390
8491
offset: Offset of results to return.
8592
86-
order_by: Order by result by field name and order (e.g., name:asc).
93+
order_by: Order results by field name and direction (e.g., name:asc). Ignored when search
94+
is provided; results are ranked by relevance instead.
95+
96+
search: Fuzzy search across application name and hostnames. Results are ranked by
97+
relevance. Must be between 2 and 200 characters. Can be combined with filter
98+
parameters.
8799
88100
extra_headers: Send extra headers
89101
@@ -109,6 +121,7 @@ def list(
109121
"limit": limit,
110122
"offset": offset,
111123
"order_by": order_by,
124+
"search": search,
112125
},
113126
application_list_params.ApplicationListParams,
114127
),
@@ -185,6 +198,7 @@ def list(
185198
limit: int | Omit = omit,
186199
offset: int | Omit = omit,
187200
order_by: str | Omit = omit,
201+
search: str | Omit = omit,
188202
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
189203
# The extra values given here take precedence over values defined on the client or passed to this method.
190204
extra_headers: Headers | None = None,
@@ -208,13 +222,24 @@ def list(
208222
- ip_subnet: Filter by IP subnet using CIDR containment — returns applications
209223
where any stored subnet contains the search value (e.g., ip_subnet:10.0.1.5/32
210224
matches apps with 10.0.0.0/16)
211-
- intel_id: Filter by Intel API ID (e.g., intel_id:498). .
225+
- intel_id: Filter by Intel API ID (e.g., intel_id:498). also supports multiple
226+
values (e.g., intel_id:498,1001)
227+
- category_id: Filter by category ID (e.g.,
228+
category_id:37f8ec03-8766-49d4-9a15-369b044c842c).
229+
- category_name: Filter by category name (e.g., category_name:HR).
230+
- supported: Filter by supported Cloudflare product (e.g., supported:ACCESS).
231+
Values: GATEWAY, ACCESS, CASB. .
212232
213233
limit: Limit of number of results to return (max 250).
214234
215235
offset: Offset of results to return.
216236
217-
order_by: Order by result by field name and order (e.g., name:asc).
237+
order_by: Order results by field name and direction (e.g., name:asc). Ignored when search
238+
is provided; results are ranked by relevance instead.
239+
240+
search: Fuzzy search across application name and hostnames. Results are ranked by
241+
relevance. Must be between 2 and 200 characters. Can be combined with filter
242+
parameters.
218243
219244
extra_headers: Send extra headers
220245
@@ -240,6 +265,7 @@ def list(
240265
"limit": limit,
241266
"offset": offset,
242267
"order_by": order_by,
268+
"search": search,
243269
},
244270
application_list_params.ApplicationListParams,
245271
),

src/cloudflare/types/cloudforce_one/threat_event_list_params.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class ThreatEventListParams(TypedDict, total=False):
3333

3434
force_refresh: Annotated[bool, PropertyInfo(alias="forceRefresh")]
3535

36-
format: Literal["json", "stix2"]
36+
format: Literal["json", "stix2", "taxii"]
3737

3838
order: Literal["asc", "desc"]
3939

src/cloudflare/types/url_scanner/scan_get_response.py

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,11 @@
7676
"MetaProcessorsAgentReadinessChecksCommerceAp2EvidenceFinding",
7777
"MetaProcessorsAgentReadinessChecksCommerceAp2EvidenceRequest",
7878
"MetaProcessorsAgentReadinessChecksCommerceAp2EvidenceResponse",
79+
"MetaProcessorsAgentReadinessChecksCommerceMpp",
80+
"MetaProcessorsAgentReadinessChecksCommerceMppEvidence",
81+
"MetaProcessorsAgentReadinessChecksCommerceMppEvidenceFinding",
82+
"MetaProcessorsAgentReadinessChecksCommerceMppEvidenceRequest",
83+
"MetaProcessorsAgentReadinessChecksCommerceMppEvidenceResponse",
7984
"MetaProcessorsAgentReadinessChecksCommerceUcp",
8085
"MetaProcessorsAgentReadinessChecksCommerceUcpEvidence",
8186
"MetaProcessorsAgentReadinessChecksCommerceUcpEvidenceFinding",
@@ -875,6 +880,58 @@ class MetaProcessorsAgentReadinessChecksCommerceAp2(BaseModel):
875880
message: Optional[str] = None
876881

877882

883+
class MetaProcessorsAgentReadinessChecksCommerceMppEvidenceFinding(BaseModel):
884+
outcome: str
885+
886+
summary: str
887+
888+
889+
class MetaProcessorsAgentReadinessChecksCommerceMppEvidenceRequest(BaseModel):
890+
method: str
891+
892+
url: str
893+
894+
headers: Optional[object] = None
895+
896+
897+
class MetaProcessorsAgentReadinessChecksCommerceMppEvidenceResponse(BaseModel):
898+
status: int
899+
900+
status_text: str = FieldInfo(alias="statusText")
901+
902+
body_preview: Optional[str] = FieldInfo(alias="bodyPreview", default=None)
903+
904+
body_size: Optional[int] = FieldInfo(alias="bodySize", default=None)
905+
906+
headers: Optional[object] = None
907+
908+
redirected_to: Optional[str] = FieldInfo(alias="redirectedTo", default=None)
909+
910+
911+
class MetaProcessorsAgentReadinessChecksCommerceMppEvidence(BaseModel):
912+
action: str
913+
914+
label: str
915+
916+
finding: Optional[MetaProcessorsAgentReadinessChecksCommerceMppEvidenceFinding] = None
917+
918+
request: Optional[MetaProcessorsAgentReadinessChecksCommerceMppEvidenceRequest] = None
919+
920+
response: Optional[MetaProcessorsAgentReadinessChecksCommerceMppEvidenceResponse] = None
921+
922+
923+
class MetaProcessorsAgentReadinessChecksCommerceMpp(BaseModel):
924+
status: str
925+
926+
details: Optional[object] = None
927+
928+
duration_ms: Optional[float] = FieldInfo(alias="durationMs", default=None)
929+
930+
evidence: Optional[List[MetaProcessorsAgentReadinessChecksCommerceMppEvidence]] = None
931+
932+
message: Optional[str] = None
933+
934+
878935
class MetaProcessorsAgentReadinessChecksCommerceUcpEvidenceFinding(BaseModel):
879936
outcome: str
880937

@@ -984,6 +1041,8 @@ class MetaProcessorsAgentReadinessChecksCommerce(BaseModel):
9841041

9851042
ap2: MetaProcessorsAgentReadinessChecksCommerceAp2
9861043

1044+
mpp: MetaProcessorsAgentReadinessChecksCommerceMpp
1045+
9871046
ucp: MetaProcessorsAgentReadinessChecksCommerceUcp
9881047

9891048
x402: MetaProcessorsAgentReadinessChecksCommerceX402

src/cloudflare/types/zero_trust/resource_library/application_get_response.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

33
from typing import List, Optional
4+
from typing_extensions import Literal
45

56
from ...._models import BaseModel
67

@@ -47,6 +48,9 @@ class ApplicationGetResponse(BaseModel):
4748
support_domains: List[str]
4849
"""Returns the list of support domains for the application."""
4950

51+
supported: List[Literal["GATEWAY", "ACCESS", "CASB"]]
52+
"""Cloudflare products that support this application."""
53+
5054
updated_at: str
5155
"""Returns the application update time."""
5256

src/cloudflare/types/zero_trust/resource_library/application_list_params.py

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,13 @@ class ApplicationListParams(TypedDict, total=False):
2222
- ip_subnet: Filter by IP subnet using CIDR containment — returns applications
2323
where any stored subnet contains the search value (e.g., ip_subnet:10.0.1.5/32
2424
matches apps with 10.0.0.0/16)
25-
- intel_id: Filter by Intel API ID (e.g., intel_id:498). .
25+
- intel_id: Filter by Intel API ID (e.g., intel_id:498). also supports multiple
26+
values (e.g., intel_id:498,1001)
27+
- category_id: Filter by category ID (e.g.,
28+
category_id:37f8ec03-8766-49d4-9a15-369b044c842c).
29+
- category_name: Filter by category name (e.g., category_name:HR).
30+
- supported: Filter by supported Cloudflare product (e.g., supported:ACCESS).
31+
Values: GATEWAY, ACCESS, CASB. .
2632
"""
2733

2834
limit: int
@@ -32,4 +38,14 @@ class ApplicationListParams(TypedDict, total=False):
3238
"""Offset of results to return."""
3339

3440
order_by: str
35-
"""Order by result by field name and order (e.g., name:asc)."""
41+
"""Order results by field name and direction (e.g., name:asc).
42+
43+
Ignored when search is provided; results are ranked by relevance instead.
44+
"""
45+
46+
search: str
47+
"""Fuzzy search across application name and hostnames.
48+
49+
Results are ranked by relevance. Must be between 2 and 200 characters. Can be
50+
combined with filter parameters.
51+
"""

src/cloudflare/types/zero_trust/resource_library/application_list_response.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

33
from typing import List, Optional
4+
from typing_extensions import Literal
45

56
from ...._models import BaseModel
67

@@ -47,6 +48,9 @@ class ApplicationListResponse(BaseModel):
4748
support_domains: List[str]
4849
"""Returns the list of support domains for the application."""
4950

51+
supported: List[Literal["GATEWAY", "ACCESS", "CASB"]]
52+
"""Cloudflare products that support this application."""
53+
5054
updated_at: str
5155
"""Returns the application update time."""
5256

tests/api_resources/zero_trust/resource_library/test_applications.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ def test_method_list_with_all_params(self, client: Cloudflare) -> None:
3636
limit=0,
3737
offset=0,
3838
order_by="order_by",
39+
search="xx",
3940
)
4041
assert_matches_type(SyncSinglePage[ApplicationListResponse], application, path=["response"])
4142

@@ -139,6 +140,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncCloudflare)
139140
limit=0,
140141
offset=0,
141142
order_by="order_by",
143+
search="xx",
142144
)
143145
assert_matches_type(AsyncSinglePage[ApplicationListResponse], application, path=["response"])
144146

0 commit comments

Comments
 (0)