Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 1448
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-58466f8887cb79ea28006b477268bfeceb49aca0ef6b5907ebd6a779543da4ae.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-c6de93f8f17d32aab783331839a3d62613deee459b821a7a76cb0f4e73a038ce.yml
7 changes: 7 additions & 0 deletions src/cloudflare/types/workers/script_update_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,13 @@ class Variant0MetadataAssetsConfig(TypedDict, total=False):
is no Worker script.
"""

serve_directly: bool
"""
When true and the incoming request matches an asset, that will be served instead
of invoking the Worker script. When false, requests will always invoke the
Worker script.
"""


class Variant0MetadataAssets(TypedDict, total=False):
config: Variant0MetadataAssetsConfig
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,13 @@ class Variant0MetadataAssetsConfig(TypedDict, total=False):
is no Worker script.
"""

serve_directly: bool
"""
When true and the incoming request matches an asset, that will be served instead
of invoking the Worker script. When false, requests will always invoke the
Worker script.
"""


class Variant0MetadataAssets(TypedDict, total=False):
config: Variant0MetadataAssetsConfig
Expand Down
2 changes: 2 additions & 0 deletions tests/api_resources/workers/test_scripts.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ def test_method_update_with_all_params_overload_1(self, client: Cloudflare) -> N
"config": {
"html_handling": "auto-trailing-slash",
"not_found_handling": "none",
"serve_directly": True,
},
"jwt": "jwt",
},
Expand Down Expand Up @@ -396,6 +397,7 @@ async def test_method_update_with_all_params_overload_1(self, async_client: Asyn
"config": {
"html_handling": "auto-trailing-slash",
"not_found_handling": "none",
"serve_directly": True,
},
"jwt": "jwt",
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ def test_method_update_with_all_params_overload_1(self, client: Cloudflare) -> N
"config": {
"html_handling": "auto-trailing-slash",
"not_found_handling": "none",
"serve_directly": True,
},
"jwt": "jwt",
},
Expand Down Expand Up @@ -384,6 +385,7 @@ async def test_method_update_with_all_params_overload_1(self, async_client: Asyn
"config": {
"html_handling": "auto-trailing-slash",
"not_found_handling": "none",
"serve_directly": True,
},
"jwt": "jwt",
},
Expand Down