Skip to content

Commit ad75922

Browse files
feat(api): api update
1 parent 3bd3de8 commit ad75922

File tree

5 files changed

+12
-6
lines changed

5 files changed

+12
-6
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: 1742
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-5d682f33926a73726354b9321bbf000936e22de25e093395d9c6cdebebf3b698.yml
3-
openapi_spec_hash: 3e70f79498720d18f3ec95e4a2575c54
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-343ecadb21bd1ea763c365c913600b3674d82225706eb2ce678423dd9c97a121.yml
3+
openapi_spec_hash: a2a81e92d824c28f93996ab69d9fa4f6
44
config_hash: cb36b26a5fcc81fa60c65016b1e74f0a

src/cloudflare/resources/url_scanner/scans.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,8 @@ def create(
279279
Args:
280280
account_id: Account ID.
281281
282+
country: Country to geo egress from
283+
282284
custom_headers: Set custom headers.
283285
284286
screenshots_resolutions: Take multiple screenshots targeting different device types.
@@ -837,6 +839,8 @@ async def create(
837839
Args:
838840
account_id: Account ID.
839841
842+
country: Country to geo egress from
843+
840844
custom_headers: Set custom headers.
841845
842846
screenshots_resolutions: Take multiple screenshots targeting different device types.

src/cloudflare/types/url_scanner/scan_bulk_create_response.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

33
from typing import List, Optional
4-
from typing_extensions import TypeAlias
4+
from typing_extensions import Literal, TypeAlias
55

66
from ..._models import BaseModel
77

@@ -25,7 +25,7 @@ class ScanBulkCreateResponseItem(BaseModel):
2525
uuid: str
2626
"""Scan ID."""
2727

28-
visibility: str
28+
visibility: Literal["public", "unlisted"]
2929
"""Submitted visibility status."""
3030

3131
options: Optional[ScanBulkCreateResponseItemOptions] = None

src/cloudflare/types/url_scanner/scan_create_params.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,7 @@ class ScanCreateParams(TypedDict, total=False):
213213
"ZM",
214214
"ZW",
215215
]
216+
"""Country to geo egress from"""
216217

217218
customagent: str
218219

src/cloudflare/types/url_scanner/scan_create_response.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

33
from typing import Optional
4+
from typing_extensions import Literal
45

56
from ..._models import BaseModel
67

@@ -18,15 +19,15 @@ class ScanCreateResponse(BaseModel):
1819
message: str
1920

2021
result: str
21-
"""URL to report."""
22+
"""Public URL to report."""
2223

2324
url: str
2425
"""Canonical form of submitted URL. Use this if you want to later search by URL."""
2526

2627
uuid: str
2728
"""Scan ID."""
2829

29-
visibility: str
30+
visibility: Literal["public", "unlisted"]
3031
"""Submitted visibility status."""
3132

3233
options: Optional[Options] = None

0 commit comments

Comments
 (0)