Skip to content

Commit d0bc41a

Browse files
feat(api): api update
1 parent 56cf746 commit d0bc41a

6 files changed

Lines changed: 10 additions & 6 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: 1780
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-4c0247a93639846d39cfcc99d38e7c5e98b2637591e856ec3a6c6b8f5ded8483.yml
3-
openapi_spec_hash: 63874e2c079e61d488da4dabbd830029
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-c7a7b078b5674b19aa554cb9420deade6c92807a40680c28f364a206ba3f2721.yml
3+
openapi_spec_hash: 3831e836bc45fc02aa8fb688c14aa2ca
44
config_hash: d0e248ca79b5e8c02f412a9f5cbf5fc5

src/cloudflare/resources/email_security/submissions.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ def list(
6060
requested_disposition: Literal["MALICIOUS", "SUSPICIOUS", "SPOOF", "SPAM", "BULK", "NONE"]
6161
| NotGiven = NOT_GIVEN,
6262
start: Union[str, datetime] | NotGiven = NOT_GIVEN,
63+
status: str | NotGiven = NOT_GIVEN,
6364
submission_id: str | NotGiven = NOT_GIVEN,
6465
type: Literal["TEAM", "USER"] | NotGiven = NOT_GIVEN,
6566
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -111,6 +112,7 @@ def list(
111112
"query": query,
112113
"requested_disposition": requested_disposition,
113114
"start": start,
115+
"status": status,
114116
"submission_id": submission_id,
115117
"type": type,
116118
},
@@ -155,6 +157,7 @@ def list(
155157
requested_disposition: Literal["MALICIOUS", "SUSPICIOUS", "SPOOF", "SPAM", "BULK", "NONE"]
156158
| NotGiven = NOT_GIVEN,
157159
start: Union[str, datetime] | NotGiven = NOT_GIVEN,
160+
status: str | NotGiven = NOT_GIVEN,
158161
submission_id: str | NotGiven = NOT_GIVEN,
159162
type: Literal["TEAM", "USER"] | NotGiven = NOT_GIVEN,
160163
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -206,6 +209,7 @@ def list(
206209
"query": query,
207210
"requested_disposition": requested_disposition,
208211
"start": start,
212+
"status": status,
209213
"submission_id": submission_id,
210214
"type": type,
211215
},

src/cloudflare/types/email_security/investigate_get_response.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ class Properties(BaseModel):
1616
allowlisted_pattern_type: Optional[
1717
Literal[
1818
"quarantine_release",
19-
"blocked_sender",
2019
"acceptable_sender",
2120
"allowed_sender",
2221
"allowed_recipient",
@@ -33,7 +32,6 @@ class Properties(BaseModel):
3332
whitelisted_pattern_type: Optional[
3433
Literal[
3534
"quarantine_release",
36-
"blocked_sender",
3735
"acceptable_sender",
3836
"allowed_sender",
3937
"allowed_recipient",

src/cloudflare/types/email_security/investigate_list_response.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ class Properties(BaseModel):
1616
allowlisted_pattern_type: Optional[
1717
Literal[
1818
"quarantine_release",
19-
"blocked_sender",
2019
"acceptable_sender",
2120
"allowed_sender",
2221
"allowed_recipient",
@@ -33,7 +32,6 @@ class Properties(BaseModel):
3332
whitelisted_pattern_type: Optional[
3433
Literal[
3534
"quarantine_release",
36-
"blocked_sender",
3735
"acceptable_sender",
3836
"allowed_sender",
3937
"allowed_recipient",

src/cloudflare/types/email_security/submission_list_params.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ class SubmissionListParams(TypedDict, total=False):
3535
start: Annotated[Union[str, datetime], PropertyInfo(format="iso8601")]
3636
"""The beginning of the search date range. Defaults to `now - 30 days`."""
3737

38+
status: str
39+
3840
submission_id: str
3941

4042
type: Literal["TEAM", "USER"]

tests/api_resources/email_security/test_submissions.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ def test_method_list_with_all_params(self, client: Cloudflare) -> None:
3838
query="query",
3939
requested_disposition="MALICIOUS",
4040
start=parse_datetime("2019-12-27T18:11:19.117Z"),
41+
status="status",
4142
submission_id="submission_id",
4243
type="TEAM",
4344
)
@@ -99,6 +100,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncCloudflare)
99100
query="query",
100101
requested_disposition="MALICIOUS",
101102
start=parse_datetime("2019-12-27T18:11:19.117Z"),
103+
status="status",
102104
submission_id="submission_id",
103105
type="TEAM",
104106
)

0 commit comments

Comments
 (0)