Skip to content

Commit 8570679

Browse files
feat(api): api update
1 parent 81796e7 commit 8570679

File tree

4 files changed

+14
-7
lines changed

4 files changed

+14
-7
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 1793
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-ee8c2cffcbe717617cb13252557a3de006816d9ed6b6aa8e054316663ef91c2b.yml
3-
openapi_spec_hash: 64cb39b96abfd876a27e679f44bb1eef
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-46ae98ac058f8748b8ce2ff270c37edc601a9980f18cebe115f7df45974e7b9e.yml
3+
openapi_spec_hash: 48d63c6a54028125b8be56594f86f899
44
config_hash: de4c81cee29cd7dd907279e8916b334f

src/cloudflare/resources/email_security/investigate/reclassify.py

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

33
from __future__ import annotations
44

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

88
import httpx
@@ -50,7 +50,8 @@ def create(
5050
*,
5151
account_id: str,
5252
expected_disposition: Literal["NONE", "BULK", "MALICIOUS", "SPAM", "SPOOF", "SUSPICIOUS"],
53-
eml_content: Optional[str] | NotGiven = NOT_GIVEN,
53+
eml_content: str | NotGiven = NOT_GIVEN,
54+
escalated_submission_id: str | NotGiven = NOT_GIVEN,
5455
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
5556
# The extra values given here take precedence over values defined on the client or passed to this method.
5657
extra_headers: Headers | None = None,
@@ -86,6 +87,7 @@ def create(
8687
{
8788
"expected_disposition": expected_disposition,
8889
"eml_content": eml_content,
90+
"escalated_submission_id": escalated_submission_id,
8991
},
9092
reclassify_create_params.ReclassifyCreateParams,
9193
),
@@ -126,7 +128,8 @@ async def create(
126128
*,
127129
account_id: str,
128130
expected_disposition: Literal["NONE", "BULK", "MALICIOUS", "SPAM", "SPOOF", "SUSPICIOUS"],
129-
eml_content: Optional[str] | NotGiven = NOT_GIVEN,
131+
eml_content: str | NotGiven = NOT_GIVEN,
132+
escalated_submission_id: str | NotGiven = NOT_GIVEN,
130133
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
131134
# The extra values given here take precedence over values defined on the client or passed to this method.
132135
extra_headers: Headers | None = None,
@@ -162,6 +165,7 @@ async def create(
162165
{
163166
"expected_disposition": expected_disposition,
164167
"eml_content": eml_content,
168+
"escalated_submission_id": escalated_submission_id,
165169
},
166170
reclassify_create_params.ReclassifyCreateParams,
167171
),

src/cloudflare/types/email_security/investigate/reclassify_create_params.py

Lines changed: 3 additions & 2 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 Literal, Required, TypedDict
76

87
__all__ = ["ReclassifyCreateParams"]
@@ -14,5 +13,7 @@ class ReclassifyCreateParams(TypedDict, total=False):
1413

1514
expected_disposition: Required[Literal["NONE", "BULK", "MALICIOUS", "SPAM", "SPOOF", "SUSPICIOUS"]]
1615

17-
eml_content: Optional[str]
16+
eml_content: str
1817
"""Base64 encoded content of the EML file"""
18+
19+
escalated_submission_id: str

tests/api_resources/email_security/investigate/test_reclassify.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ def test_method_create_with_all_params(self, client: Cloudflare) -> None:
3232
account_id="023e105f4ecef8ad9ca31a8372d0c353",
3333
expected_disposition="NONE",
3434
eml_content="eml_content",
35+
escalated_submission_id="escalated_submission_id",
3536
)
3637
assert_matches_type(object, reclassify, path=["response"])
3738

@@ -101,6 +102,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncCloudflare
101102
account_id="023e105f4ecef8ad9ca31a8372d0c353",
102103
expected_disposition="NONE",
103104
eml_content="eml_content",
105+
escalated_submission_id="escalated_submission_id",
104106
)
105107
assert_matches_type(object, reclassify, path=["response"])
106108

0 commit comments

Comments
 (0)