Skip to content

Commit fff49ee

Browse files
chore(api): update composite API spec
1 parent 2a4624b commit fff49ee

5 files changed

Lines changed: 27 additions & 2 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: 2204
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-a6c352830d1270d0abb5bb983058ea21815e1bb7d2e163965335dcb0e706f057.yml
3-
openapi_spec_hash: 887efce5205bdef9eec55d574113ef5b
3+
openapi_spec_hash: d6aabfab666cd45b35131f8d45cb09aa
44
config_hash: ff549978909de2badc92845fea964f4b

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/billing/usage_paygo_response.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,11 @@ class UsagePaygoResponseItem(BaseModel):
3030
"""Specifies the quantity consumed during this charge period."""
3131

3232
consumed_unit: str = FieldInfo(alias="ConsumedUnit")
33-
"""Specifies the unit of measurement for consumed quantity."""
33+
"""
34+
A display name for the unit of measurement used for the product (for example,
35+
"GB-months", "GB-seconds"). May be empty when the unit is implicit in the
36+
service name.
37+
"""
3438

3539
contracted_cost: float = FieldInfo(alias="ContractedCost")
3640
"""Specifies the cost for this charge period in the billing currency."""

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)