Skip to content

Commit 1e44790

Browse files
feat(api): api update
1 parent 1fe51da commit 1e44790

4 files changed

Lines changed: 29 additions & 2 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 1781
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-8efc1376a00d3137b7e83d6ad94f80d1d8058d4997322d23fb263bcf50cdf112.yml
3-
openapi_spec_hash: 6a0341306821788fa1c9f839bd0ae3cc
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-4b3ce752c7b171704ed785a8f35bc61b15aa712792e749d831614cfff7b55058.yml
3+
openapi_spec_hash: 6b85b7c798ade6f47a69fa057c470e35
44
config_hash: 11218d4e895d6852fa70acc77ad5da3d

src/cloudflare/types/workers_for_platforms/dispatch/namespace_create_response.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,12 @@ class NamespaceCreateResponse(BaseModel):
2929

3030
script_count: Optional[int] = None
3131
"""The current number of scripts in this Dispatch Namespace."""
32+
33+
trusted_workers: Optional[bool] = None
34+
"""Whether the Workers in the namespace are executed in a "trusted" manner.
35+
36+
When a Worker is trusted, it has access to the shared caches for the zone in the
37+
Cache API, and has access to the `request.cf` object on incoming Requests. When
38+
a Worker is untrusted, caches are not shared across the zone, and `request.cf`
39+
is undefined. By default, Workers in a namespace are "untrusted".
40+
"""

src/cloudflare/types/workers_for_platforms/dispatch/namespace_get_response.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,12 @@ class NamespaceGetResponse(BaseModel):
2929

3030
script_count: Optional[int] = None
3131
"""The current number of scripts in this Dispatch Namespace."""
32+
33+
trusted_workers: Optional[bool] = None
34+
"""Whether the Workers in the namespace are executed in a "trusted" manner.
35+
36+
When a Worker is trusted, it has access to the shared caches for the zone in the
37+
Cache API, and has access to the `request.cf` object on incoming Requests. When
38+
a Worker is untrusted, caches are not shared across the zone, and `request.cf`
39+
is undefined. By default, Workers in a namespace are "untrusted".
40+
"""

src/cloudflare/types/workers_for_platforms/dispatch/namespace_list_response.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,12 @@ class NamespaceListResponse(BaseModel):
2929

3030
script_count: Optional[int] = None
3131
"""The current number of scripts in this Dispatch Namespace."""
32+
33+
trusted_workers: Optional[bool] = None
34+
"""Whether the Workers in the namespace are executed in a "trusted" manner.
35+
36+
When a Worker is trusted, it has access to the shared caches for the zone in the
37+
Cache API, and has access to the `request.cf` object on incoming Requests. When
38+
a Worker is untrusted, caches are not shared across the zone, and `request.cf`
39+
is undefined. By default, Workers in a namespace are "untrusted".
40+
"""

0 commit comments

Comments
 (0)