Skip to content

Commit 23a979d

Browse files
committed
chore(email_security): update generated types and methods
1 parent 54b8775 commit 23a979d

3 files changed

Lines changed: 21 additions & 0 deletions

File tree

src/cloudflare/resources/email_security/submissions.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ def list(
5151
*,
5252
account_id: str,
5353
end: Union[str, datetime] | Omit = omit,
54+
escalated_from_user: bool | Omit = omit,
5455
original_disposition: Literal["MALICIOUS", "SUSPICIOUS", "SPOOF", "SPAM", "BULK", "NONE"] | Omit = omit,
5556
outcome_disposition: Literal["MALICIOUS", "SUSPICIOUS", "SPOOF", "SPAM", "BULK", "NONE"] | Omit = omit,
5657
page: int | Omit = omit,
@@ -79,6 +80,10 @@ def list(
7980
8081
end: The end of the search date range. Defaults to `now`.
8182
83+
escalated_from_user: When true, return only submissions that were escalated by an end user (vs. by
84+
the security team). When false, return only submissions that were not escalated
85+
by an end user. When omitted, no filter is applied.
86+
8287
page: Current page within paginated list of results.
8388
8489
per_page: The number of results per page. Maximum value is 1000.
@@ -106,6 +111,7 @@ def list(
106111
query=maybe_transform(
107112
{
108113
"end": end,
114+
"escalated_from_user": escalated_from_user,
109115
"original_disposition": original_disposition,
110116
"outcome_disposition": outcome_disposition,
111117
"page": page,
@@ -149,6 +155,7 @@ def list(
149155
*,
150156
account_id: str,
151157
end: Union[str, datetime] | Omit = omit,
158+
escalated_from_user: bool | Omit = omit,
152159
original_disposition: Literal["MALICIOUS", "SUSPICIOUS", "SPOOF", "SPAM", "BULK", "NONE"] | Omit = omit,
153160
outcome_disposition: Literal["MALICIOUS", "SUSPICIOUS", "SPOOF", "SPAM", "BULK", "NONE"] | Omit = omit,
154161
page: int | Omit = omit,
@@ -177,6 +184,10 @@ def list(
177184
178185
end: The end of the search date range. Defaults to `now`.
179186
187+
escalated_from_user: When true, return only submissions that were escalated by an end user (vs. by
188+
the security team). When false, return only submissions that were not escalated
189+
by an end user. When omitted, no filter is applied.
190+
180191
page: Current page within paginated list of results.
181192
182193
per_page: The number of results per page. Maximum value is 1000.
@@ -204,6 +215,7 @@ def list(
204215
query=maybe_transform(
205216
{
206217
"end": end,
218+
"escalated_from_user": escalated_from_user,
207219
"original_disposition": original_disposition,
208220
"outcome_disposition": outcome_disposition,
209221
"page": page,

src/cloudflare/types/email_security/submission_list_params.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,13 @@ class SubmissionListParams(TypedDict, total=False):
1818
end: Annotated[Union[str, datetime], PropertyInfo(format="iso8601")]
1919
"""The end of the search date range. Defaults to `now`."""
2020

21+
escalated_from_user: bool
22+
"""When true, return only submissions that were escalated by an end user (vs.
23+
24+
by the security team). When false, return only submissions that were not
25+
escalated by an end user. When omitted, no filter is applied.
26+
"""
27+
2128
original_disposition: Literal["MALICIOUS", "SUSPICIOUS", "SPOOF", "SPAM", "BULK", "NONE"]
2229

2330
outcome_disposition: Literal["MALICIOUS", "SUSPICIOUS", "SPOOF", "SPAM", "BULK", "NONE"]

tests/api_resources/email_security/test_submissions.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ def test_method_list_with_all_params(self, client: Cloudflare) -> None:
3131
submission = client.email_security.submissions.list(
3232
account_id="023e105f4ecef8ad9ca31a8372d0c353",
3333
end=parse_datetime("2019-12-27T18:11:19.117Z"),
34+
escalated_from_user=True,
3435
original_disposition="MALICIOUS",
3536
outcome_disposition="MALICIOUS",
3637
page=1,
@@ -93,6 +94,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncCloudflare)
9394
submission = await async_client.email_security.submissions.list(
9495
account_id="023e105f4ecef8ad9ca31a8372d0c353",
9596
end=parse_datetime("2019-12-27T18:11:19.117Z"),
97+
escalated_from_user=True,
9698
original_disposition="MALICIOUS",
9799
outcome_disposition="MALICIOUS",
98100
page=1,

0 commit comments

Comments
 (0)