Skip to content

Commit 7e91dae

Browse files
chore(api): update composite API spec
1 parent e555e4f commit 7e91dae

16 files changed

Lines changed: 118 additions & 17 deletions

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 1822
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-018fa28df9d660403fe5e2114dfd2ad4ce4a5f33834c7735c14061e4886c55b2.yml
3-
openapi_spec_hash: 788fc8f4283e7484ee3e24e01c1414bf
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-e72bea1cac5e5deaf366b954dc79ebc69af2ff2ebaeba7db2d1c7b5c2c199422.yml
3+
openapi_spec_hash: fd6022951e9e6a5bb2a436b3717ae0a2
44
config_hash: 107e0f1f8a98b007260b319226b88b3c

src/cloudflare/types/workers/beta/worker.py

Lines changed: 102 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,19 @@
55

66
from ...._models import BaseModel
77

8-
__all__ = ["Worker", "Observability", "ObservabilityLogs", "Subdomain", "TailConsumer"]
8+
__all__ = [
9+
"Worker",
10+
"Observability",
11+
"ObservabilityLogs",
12+
"References",
13+
"ReferencesDispatchNamespaceOutbound",
14+
"ReferencesDomain",
15+
"ReferencesDurableObject",
16+
"ReferencesQueue",
17+
"ReferencesWorker",
18+
"Subdomain",
19+
"TailConsumer",
20+
]
921

1022

1123
class ObservabilityLogs(BaseModel):
@@ -34,6 +46,92 @@ class Observability(BaseModel):
3446
"""Log settings for the Worker."""
3547

3648

49+
class ReferencesDispatchNamespaceOutbound(BaseModel):
50+
namespace_id: str
51+
"""ID of the dispatch namespace."""
52+
53+
namespace_name: str
54+
"""Name of the dispatch namespace."""
55+
56+
worker_id: str
57+
"""ID of the Worker using the dispatch namespace."""
58+
59+
worker_name: str
60+
"""Name of the Worker using the dispatch namespace."""
61+
62+
63+
class ReferencesDomain(BaseModel):
64+
id: str
65+
"""ID of the custom domain."""
66+
67+
certificate_id: str
68+
"""ID of the TLS certificate issued for the custom domain."""
69+
70+
hostname: str
71+
"""Full hostname of the custom domain, including the zone name."""
72+
73+
zone_id: str
74+
"""ID of the zone."""
75+
76+
zone_name: str
77+
"""Name of the zone."""
78+
79+
80+
class ReferencesDurableObject(BaseModel):
81+
namespace_id: str
82+
"""ID of the Durable Object namespace being used."""
83+
84+
namespace_name: str
85+
"""Name of the Durable Object namespace being used."""
86+
87+
worker_id: str
88+
"""ID of the Worker using the Durable Object implementation."""
89+
90+
worker_name: str
91+
"""Name of the Worker using the Durable Object implementation."""
92+
93+
94+
class ReferencesQueue(BaseModel):
95+
queue_consumer_id: str
96+
"""ID of the queue consumer configuration."""
97+
98+
queue_id: str
99+
"""ID of the queue."""
100+
101+
queue_name: str
102+
"""Name of the queue."""
103+
104+
105+
class ReferencesWorker(BaseModel):
106+
id: str
107+
"""ID of the referencing Worker."""
108+
109+
name: str
110+
"""Name of the referencing Worker."""
111+
112+
113+
class References(BaseModel):
114+
dispatch_namespace_outbounds: List[ReferencesDispatchNamespaceOutbound]
115+
"""
116+
Other Workers that reference the Worker as an outbound for a dispatch namespace.
117+
"""
118+
119+
domains: List[ReferencesDomain]
120+
"""Custom domains connected to the Worker."""
121+
122+
durable_objects: List[ReferencesDurableObject]
123+
"""Other Workers that reference Durable Object classes implemented by the Worker."""
124+
125+
queues: List[ReferencesQueue]
126+
"""Queues that send messages to the Worker."""
127+
128+
workers: List[ReferencesWorker]
129+
"""
130+
Other Workers that reference the Worker using
131+
[service bindings](https://developers.cloudflare.com/workers/runtime-apis/bindings/service-bindings/).
132+
"""
133+
134+
37135
class Subdomain(BaseModel):
38136
enabled: Optional[bool] = None
39137
"""Whether the \\**.workers.dev subdomain is enabled for the Worker."""
@@ -67,6 +165,9 @@ class Worker(BaseModel):
67165
observability: Observability
68166
"""Observability settings for the Worker."""
69167

168+
references: References
169+
"""Other resources that reference the Worker and depend on it existing."""
170+
70171
subdomain: Subdomain
71172
"""Subdomain settings for the Worker."""
72173

src/cloudflare/types/workers/beta/workers/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ class BindingWorkersBindingKindDispatchNamespace(BaseModel):
179179
"""A JavaScript variable name for the binding."""
180180

181181
namespace: str
182-
"""Namespace to bind to."""
182+
"""The name of the dispatch namespace."""
183183

184184
type: Literal["dispatch_namespace"]
185185
"""The kind of resource that the binding provides."""

src/cloudflare/types/workers/beta/workers/version_create_params.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ class BindingWorkersBindingKindDispatchNamespace(TypedDict, total=False):
254254
"""A JavaScript variable name for the binding."""
255255

256256
namespace: Required[str]
257-
"""Namespace to bind to."""
257+
"""The name of the dispatch namespace."""
258258

259259
type: Required[Literal["dispatch_namespace"]]
260260
"""The kind of resource that the binding provides."""

src/cloudflare/types/workers/script_update_params.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ class MetadataBindingWorkersBindingKindDispatchNamespace(TypedDict, total=False)
205205
"""A JavaScript variable name for the binding."""
206206

207207
namespace: Required[str]
208-
"""Namespace to bind to."""
208+
"""The name of the dispatch namespace."""
209209

210210
type: Required[Literal["dispatch_namespace"]]
211211
"""The kind of resource that the binding provides."""

src/cloudflare/types/workers/scripts/script_and_version_setting_edit_params.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ class SettingsBindingWorkersBindingKindDispatchNamespace(TypedDict, total=False)
145145
"""A JavaScript variable name for the binding."""
146146

147147
namespace: Required[str]
148-
"""Namespace to bind to."""
148+
"""The name of the dispatch namespace."""
149149

150150
type: Required[Literal["dispatch_namespace"]]
151151
"""The kind of resource that the binding provides."""

src/cloudflare/types/workers/scripts/script_and_version_setting_edit_response.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ class BindingWorkersBindingKindDispatchNamespace(BaseModel):
137137
"""A JavaScript variable name for the binding."""
138138

139139
namespace: str
140-
"""Namespace to bind to."""
140+
"""The name of the dispatch namespace."""
141141

142142
type: Literal["dispatch_namespace"]
143143
"""The kind of resource that the binding provides."""

src/cloudflare/types/workers/scripts/script_and_version_setting_get_response.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ class BindingWorkersBindingKindDispatchNamespace(BaseModel):
137137
"""A JavaScript variable name for the binding."""
138138

139139
namespace: str
140-
"""Namespace to bind to."""
140+
"""The name of the dispatch namespace."""
141141

142142
type: Literal["dispatch_namespace"]
143143
"""The kind of resource that the binding provides."""

src/cloudflare/types/workers/scripts/version_create_params.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ class MetadataBindingWorkersBindingKindDispatchNamespace(TypedDict, total=False)
161161
"""A JavaScript variable name for the binding."""
162162

163163
namespace: Required[str]
164-
"""Namespace to bind to."""
164+
"""The name of the dispatch namespace."""
165165

166166
type: Required[Literal["dispatch_namespace"]]
167167
"""The kind of resource that the binding provides."""

src/cloudflare/types/workers/scripts/version_create_response.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ class ResourcesBindingWorkersBindingKindDispatchNamespace(BaseModel):
135135
"""A JavaScript variable name for the binding."""
136136

137137
namespace: str
138-
"""Namespace to bind to."""
138+
"""The name of the dispatch namespace."""
139139

140140
type: Literal["dispatch_namespace"]
141141
"""The kind of resource that the binding provides."""

0 commit comments

Comments
 (0)