Skip to content

Commit adc6f6b

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
feat(api): api update (#2237)
1 parent a0f4c07 commit adc6f6b

File tree

5 files changed

+19
-1
lines changed

5 files changed

+19
-1
lines changed

.stats.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configured_endpoints: 1448
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-58466f8887cb79ea28006b477268bfeceb49aca0ef6b5907ebd6a779543da4ae.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-c6de93f8f17d32aab783331839a3d62613deee459b821a7a76cb0f4e73a038ce.yml

src/cloudflare/types/workers/script_update_params.py

+7
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,13 @@ class Variant0MetadataAssetsConfig(TypedDict, total=False):
6060
is no Worker script.
6161
"""
6262

63+
serve_directly: bool
64+
"""
65+
When true and the incoming request matches an asset, that will be served instead
66+
of invoking the Worker script. When false, requests will always invoke the
67+
Worker script.
68+
"""
69+
6370

6471
class Variant0MetadataAssets(TypedDict, total=False):
6572
config: Variant0MetadataAssetsConfig

src/cloudflare/types/workers_for_platforms/dispatch/namespaces/script_update_params.py

+7
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,13 @@ class Variant0MetadataAssetsConfig(TypedDict, total=False):
5555
is no Worker script.
5656
"""
5757

58+
serve_directly: bool
59+
"""
60+
When true and the incoming request matches an asset, that will be served instead
61+
of invoking the Worker script. When false, requests will always invoke the
62+
Worker script.
63+
"""
64+
5865

5966
class Variant0MetadataAssets(TypedDict, total=False):
6067
config: Variant0MetadataAssetsConfig

tests/api_resources/workers/test_scripts.py

+2
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ def test_method_update_with_all_params_overload_1(self, client: Cloudflare) -> N
4848
"config": {
4949
"html_handling": "auto-trailing-slash",
5050
"not_found_handling": "none",
51+
"serve_directly": True,
5152
},
5253
"jwt": "jwt",
5354
},
@@ -396,6 +397,7 @@ async def test_method_update_with_all_params_overload_1(self, async_client: Asyn
396397
"config": {
397398
"html_handling": "auto-trailing-slash",
398399
"not_found_handling": "none",
400+
"serve_directly": True,
399401
},
400402
"jwt": "jwt",
401403
},

tests/api_resources/workers_for_platforms/dispatch/namespaces/test_scripts.py

+2
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ def test_method_update_with_all_params_overload_1(self, client: Cloudflare) -> N
4343
"config": {
4444
"html_handling": "auto-trailing-slash",
4545
"not_found_handling": "none",
46+
"serve_directly": True,
4647
},
4748
"jwt": "jwt",
4849
},
@@ -384,6 +385,7 @@ async def test_method_update_with_all_params_overload_1(self, async_client: Asyn
384385
"config": {
385386
"html_handling": "auto-trailing-slash",
386387
"not_found_handling": "none",
388+
"serve_directly": True,
387389
},
388390
"jwt": "jwt",
389391
},

0 commit comments

Comments
 (0)