Skip to content

Commit 18a6fde

Browse files
feat(api): api update
1 parent 7972e6f commit 18a6fde

5 files changed

Lines changed: 28 additions & 29 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: 1752
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-357249a6950c7512598745513daaa0dbf653513c57dd9604f5e6d8b7e6ded2c4.yml
3-
openapi_spec_hash: 3ab1a48771883dabf9cb61dbb58bbdb3
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-06c0722289c612a94a6c1e228ea4ada586b3942b04cb02b9a55d98adef5e9558.yml
3+
openapi_spec_hash: f6f0cf5e8a41260e0d1ddf20a71a9c75
44
config_hash: 284c4178d08f75d8c8b29f275948a8fd

src/cloudflare/resources/email_security/settings/domains.py

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

33
from __future__ import annotations
44

5-
from typing import List, Type, Optional, cast
5+
from typing import List, Type, cast
66
from typing_extensions import Literal
77

88
import httpx
@@ -214,7 +214,7 @@ def edit(
214214
account_id: str,
215215
ip_restrictions: List[str],
216216
allowed_delivery_modes: List[Literal["DIRECT", "BCC", "JOURNAL", "API", "RETRO_SCAN"]] | NotGiven = NOT_GIVEN,
217-
domain: Optional[str] | NotGiven = NOT_GIVEN,
217+
domain: str | NotGiven = NOT_GIVEN,
218218
drop_dispositions: List[
219219
Literal[
220220
"MALICIOUS",
@@ -231,8 +231,8 @@ def edit(
231231
]
232232
| NotGiven = NOT_GIVEN,
233233
folder: Literal["AllItems", "Inbox"] | NotGiven = NOT_GIVEN,
234-
integration_id: Optional[str] | NotGiven = NOT_GIVEN,
235-
lookback_hops: Optional[int] | NotGiven = NOT_GIVEN,
234+
integration_id: str | NotGiven = NOT_GIVEN,
235+
lookback_hops: int | NotGiven = NOT_GIVEN,
236236
require_tls_inbound: bool | NotGiven = NOT_GIVEN,
237237
require_tls_outbound: bool | NotGiven = NOT_GIVEN,
238238
transport: str | NotGiven = NOT_GIVEN,
@@ -515,7 +515,7 @@ async def edit(
515515
account_id: str,
516516
ip_restrictions: List[str],
517517
allowed_delivery_modes: List[Literal["DIRECT", "BCC", "JOURNAL", "API", "RETRO_SCAN"]] | NotGiven = NOT_GIVEN,
518-
domain: Optional[str] | NotGiven = NOT_GIVEN,
518+
domain: str | NotGiven = NOT_GIVEN,
519519
drop_dispositions: List[
520520
Literal[
521521
"MALICIOUS",
@@ -532,8 +532,8 @@ async def edit(
532532
]
533533
| NotGiven = NOT_GIVEN,
534534
folder: Literal["AllItems", "Inbox"] | NotGiven = NOT_GIVEN,
535-
integration_id: Optional[str] | NotGiven = NOT_GIVEN,
536-
lookback_hops: Optional[int] | NotGiven = NOT_GIVEN,
535+
integration_id: str | NotGiven = NOT_GIVEN,
536+
lookback_hops: int | NotGiven = NOT_GIVEN,
537537
require_tls_inbound: bool | NotGiven = NOT_GIVEN,
538538
require_tls_outbound: bool | NotGiven = NOT_GIVEN,
539539
transport: str | NotGiven = NOT_GIVEN,

src/cloudflare/resources/email_security/settings/trusted_domains.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -287,11 +287,11 @@ def edit(
287287
trusted_domain_id: int,
288288
*,
289289
account_id: str,
290-
comments: Optional[str] | NotGiven = NOT_GIVEN,
291-
is_recent: Optional[bool] | NotGiven = NOT_GIVEN,
292-
is_regex: Optional[bool] | NotGiven = NOT_GIVEN,
293-
is_similarity: Optional[bool] | NotGiven = NOT_GIVEN,
294-
pattern: Optional[str] | NotGiven = NOT_GIVEN,
290+
comments: str | NotGiven = NOT_GIVEN,
291+
is_recent: bool | NotGiven = NOT_GIVEN,
292+
is_regex: bool | NotGiven = NOT_GIVEN,
293+
is_similarity: bool | NotGiven = NOT_GIVEN,
294+
pattern: str | NotGiven = NOT_GIVEN,
295295
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
296296
# The extra values given here take precedence over values defined on the client or passed to this method.
297297
extra_headers: Headers | None = None,
@@ -641,11 +641,11 @@ async def edit(
641641
trusted_domain_id: int,
642642
*,
643643
account_id: str,
644-
comments: Optional[str] | NotGiven = NOT_GIVEN,
645-
is_recent: Optional[bool] | NotGiven = NOT_GIVEN,
646-
is_regex: Optional[bool] | NotGiven = NOT_GIVEN,
647-
is_similarity: Optional[bool] | NotGiven = NOT_GIVEN,
648-
pattern: Optional[str] | NotGiven = NOT_GIVEN,
644+
comments: str | NotGiven = NOT_GIVEN,
645+
is_recent: bool | NotGiven = NOT_GIVEN,
646+
is_regex: bool | NotGiven = NOT_GIVEN,
647+
is_similarity: bool | NotGiven = NOT_GIVEN,
648+
pattern: str | NotGiven = NOT_GIVEN,
649649
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
650650
# The extra values given here take precedence over values defined on the client or passed to this method.
651651
extra_headers: Headers | None = None,

src/cloudflare/types/email_security/settings/domain_edit_params.py

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

33
from __future__ import annotations
44

5-
from typing import List, Optional
5+
from typing import List
66
from typing_extensions import Literal, Required, TypedDict
77

88
__all__ = ["DomainEditParams"]
@@ -16,7 +16,7 @@ class DomainEditParams(TypedDict, total=False):
1616

1717
allowed_delivery_modes: List[Literal["DIRECT", "BCC", "JOURNAL", "API", "RETRO_SCAN"]]
1818

19-
domain: Optional[str]
19+
domain: str
2020

2121
drop_dispositions: List[
2222
Literal[
@@ -35,9 +35,9 @@ class DomainEditParams(TypedDict, total=False):
3535

3636
folder: Literal["AllItems", "Inbox"]
3737

38-
integration_id: Optional[str]
38+
integration_id: str
3939

40-
lookback_hops: Optional[int]
40+
lookback_hops: int
4141

4242
require_tls_inbound: bool
4343

src/cloudflare/types/email_security/settings/trusted_domain_edit_params.py

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

33
from __future__ import annotations
44

5-
from typing import Optional
65
from typing_extensions import Required, TypedDict
76

87
__all__ = ["TrustedDomainEditParams"]
@@ -12,20 +11,20 @@ class TrustedDomainEditParams(TypedDict, total=False):
1211
account_id: Required[str]
1312
"""Account Identifier"""
1413

15-
comments: Optional[str]
14+
comments: str
1615

17-
is_recent: Optional[bool]
16+
is_recent: bool
1817
"""
1918
Select to prevent recently registered domains from triggering a Suspicious or
2019
Malicious disposition.
2120
"""
2221

23-
is_regex: Optional[bool]
22+
is_regex: bool
2423

25-
is_similarity: Optional[bool]
24+
is_similarity: bool
2625
"""
2726
Select for partner or other approved domains that have similar spelling to your
2827
connected domains. Prevents listed domains from triggering a Spoof disposition.
2928
"""
3029

31-
pattern: Optional[str]
30+
pattern: str

0 commit comments

Comments
 (0)