Skip to content

Commit fd0fca0

Browse files
chore(api): update composite API spec
1 parent 67db9e9 commit fd0fca0

9 files changed

Lines changed: 32 additions & 14 deletions

File tree

.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-f6c736e0222af704b2e8f761b885e1e9bf09fd76ef40b575f420fb2f45495ea7.yml
3-
openapi_spec_hash: cd80e4c5d8c0fa27bd23f8238d7e13d2
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-8d1ce6c5608563d8f7c974108d59033116d234666eb72d8d1227af2994a4fef7.yml
3+
openapi_spec_hash: 00d82a3a7a91eeb2f55dc0654dfe22ff
44
config_hash: 02fbdebd82a78d34dd6d005f1d2ad28c

src/cloudflare/resources/zero_trust/gateway/lists/lists.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def create(
6464
*,
6565
account_id: str | None = None,
6666
name: str,
67-
type: Literal["SERIAL", "URL", "DOMAIN", "EMAIL", "IP", "CATEGORY", "LOCATION", "DEVICE"],
67+
type: Literal["SERIAL", "URL", "DOMAIN", "EMAIL", "IP", "CATEGORY", "LOCATION", "DEVICE", "AAGUID"],
6868
description: str | Omit = omit,
6969
items: Iterable[list_create_params.Item] | Omit = omit,
7070
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -186,7 +186,8 @@ def list(
186186
self,
187187
*,
188188
account_id: str | None = None,
189-
type: Literal["SERIAL", "URL", "DOMAIN", "EMAIL", "IP", "CATEGORY", "LOCATION", "DEVICE"] | Omit = omit,
189+
type: Literal["SERIAL", "URL", "DOMAIN", "EMAIL", "IP", "CATEGORY", "LOCATION", "DEVICE", "AAGUID"]
190+
| Omit = omit,
190191
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
191192
# The extra values given here take precedence over values defined on the client or passed to this method.
192193
extra_headers: Headers | None = None,
@@ -400,7 +401,7 @@ async def create(
400401
*,
401402
account_id: str | None = None,
402403
name: str,
403-
type: Literal["SERIAL", "URL", "DOMAIN", "EMAIL", "IP", "CATEGORY", "LOCATION", "DEVICE"],
404+
type: Literal["SERIAL", "URL", "DOMAIN", "EMAIL", "IP", "CATEGORY", "LOCATION", "DEVICE", "AAGUID"],
404405
description: str | Omit = omit,
405406
items: Iterable[list_create_params.Item] | Omit = omit,
406407
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -522,7 +523,8 @@ def list(
522523
self,
523524
*,
524525
account_id: str | None = None,
525-
type: Literal["SERIAL", "URL", "DOMAIN", "EMAIL", "IP", "CATEGORY", "LOCATION", "DEVICE"] | Omit = omit,
526+
type: Literal["SERIAL", "URL", "DOMAIN", "EMAIL", "IP", "CATEGORY", "LOCATION", "DEVICE", "AAGUID"]
527+
| Omit = omit,
526528
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
527529
# The extra values given here take precedence over values defined on the client or passed to this method.
528530
extra_headers: Headers | None = None,

src/cloudflare/types/zero_trust/gateway/gateway_list.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class GatewayList(BaseModel):
2828
name: Optional[str] = None
2929
"""Specify the list name."""
3030

31-
type: Optional[Literal["SERIAL", "URL", "DOMAIN", "EMAIL", "IP", "CATEGORY", "LOCATION", "DEVICE"]] = None
31+
type: Optional[Literal["SERIAL", "URL", "DOMAIN", "EMAIL", "IP", "CATEGORY", "LOCATION", "DEVICE", "AAGUID"]] = None
3232
"""Specify the list type."""
3333

3434
updated_at: Optional[datetime] = None

src/cloudflare/types/zero_trust/gateway/list_create_params.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class ListCreateParams(TypedDict, total=False):
1414
name: Required[str]
1515
"""Specify the list name."""
1616

17-
type: Required[Literal["SERIAL", "URL", "DOMAIN", "EMAIL", "IP", "CATEGORY", "LOCATION", "DEVICE"]]
17+
type: Required[Literal["SERIAL", "URL", "DOMAIN", "EMAIL", "IP", "CATEGORY", "LOCATION", "DEVICE", "AAGUID"]]
1818
"""Specify the list type."""
1919

2020
description: str

src/cloudflare/types/zero_trust/gateway/list_create_response.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class ListCreateResponse(BaseModel):
2525
name: Optional[str] = None
2626
"""Specify the list name."""
2727

28-
type: Optional[Literal["SERIAL", "URL", "DOMAIN", "EMAIL", "IP", "CATEGORY", "LOCATION", "DEVICE"]] = None
28+
type: Optional[Literal["SERIAL", "URL", "DOMAIN", "EMAIL", "IP", "CATEGORY", "LOCATION", "DEVICE", "AAGUID"]] = None
2929
"""Specify the list type."""
3030

3131
updated_at: Optional[datetime] = None

src/cloudflare/types/zero_trust/gateway/list_list_params.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@
1010
class ListListParams(TypedDict, total=False):
1111
account_id: str
1212

13-
type: Literal["SERIAL", "URL", "DOMAIN", "EMAIL", "IP", "CATEGORY", "LOCATION", "DEVICE"]
13+
type: Literal["SERIAL", "URL", "DOMAIN", "EMAIL", "IP", "CATEGORY", "LOCATION", "DEVICE", "AAGUID"]
1414
"""Specify the list type."""

src/cloudflare/types/zero_trust/gateway/rule_setting.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ class BISOAdminControls(BaseModel):
6464
download: Optional[Literal["enabled", "disabled", "remote_only"]] = None
6565
"""Configure download behavior.
6666
67-
When set to remote_only, users can view downloads but cannot save them. Applies
68-
only when version == "v2".
67+
When set to remote_only, users can view downloads but cannot save them. If this
68+
field is absent, downloading remains enabled. Applies only when version == "v2".
6969
"""
7070

7171
dp: Optional[bool] = None
@@ -105,6 +105,12 @@ class BISOAdminControls(BaseModel):
105105
version: Optional[Literal["v1", "v2"]] = None
106106
"""Indicate which version of the browser isolation controls should apply."""
107107

108+
wm_id: Optional[str] = None
109+
"""Specify the watermark ID (UUID) to apply to the isolated browser session.
110+
111+
When present, enables watermark rendering in the isolated browser.
112+
"""
113+
108114

109115
class BlockPage(BaseModel):
110116
"""Configure custom block page settings.

src/cloudflare/types/zero_trust/gateway/rule_setting_param.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ class BISOAdminControls(TypedDict, total=False):
6464
download: Literal["enabled", "disabled", "remote_only"]
6565
"""Configure download behavior.
6666
67-
When set to remote_only, users can view downloads but cannot save them. Applies
68-
only when version == "v2".
67+
When set to remote_only, users can view downloads but cannot save them. If this
68+
field is absent, downloading remains enabled. Applies only when version == "v2".
6969
"""
7070

7171
dp: bool
@@ -105,6 +105,12 @@ class BISOAdminControls(TypedDict, total=False):
105105
version: Literal["v1", "v2"]
106106
"""Indicate which version of the browser isolation controls should apply."""
107107

108+
wm_id: str
109+
"""Specify the watermark ID (UUID) to apply to the isolated browser session.
110+
111+
When present, enables watermark rendering in the isolated browser.
112+
"""
113+
108114

109115
class BlockPage(TypedDict, total=False):
110116
"""Configure custom block page settings.

tests/api_resources/zero_trust/gateway/test_rules.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ def test_method_create_with_all_params(self, client: Cloudflare) -> None:
6666
"printing": "enabled",
6767
"upload": "enabled",
6868
"version": "v1",
69+
"wm_id": "475345dc-5299-4b6e-8f6a-3d3e4c8e9f1a",
6970
},
7071
"block_page": {
7172
"target_uri": "https://example.com",
@@ -230,6 +231,7 @@ def test_method_update_with_all_params(self, client: Cloudflare) -> None:
230231
"printing": "enabled",
231232
"upload": "enabled",
232233
"version": "v1",
234+
"wm_id": "475345dc-5299-4b6e-8f6a-3d3e4c8e9f1a",
233235
},
234236
"block_page": {
235237
"target_uri": "https://example.com",
@@ -629,6 +631,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncCloudflare
629631
"printing": "enabled",
630632
"upload": "enabled",
631633
"version": "v1",
634+
"wm_id": "475345dc-5299-4b6e-8f6a-3d3e4c8e9f1a",
632635
},
633636
"block_page": {
634637
"target_uri": "https://example.com",
@@ -793,6 +796,7 @@ async def test_method_update_with_all_params(self, async_client: AsyncCloudflare
793796
"printing": "enabled",
794797
"upload": "enabled",
795798
"version": "v1",
799+
"wm_id": "475345dc-5299-4b6e-8f6a-3d3e4c8e9f1a",
796800
},
797801
"block_page": {
798802
"target_uri": "https://example.com",

0 commit comments

Comments
 (0)