Skip to content

Commit b2ea183

Browse files
chore(api): update composite API spec
1 parent ebb7b3d commit b2ea183

File tree

9 files changed

+154
-16
lines changed

9 files changed

+154
-16
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: 1822
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-8e442fce0dce2e390b39c69d751c1b58044f37132fd9c5a6b62b0454b8e3d2b5.yml
3-
openapi_spec_hash: 63128c5acd4c35d5adf4ffb260450f00
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-da898c50e812b8d004199a66cbadb1ce43450928a6700f9fa0d7ae26d61df08b.yml
3+
openapi_spec_hash: bd9a337e74a90fd0e886dbea5631766e
44
config_hash: 107e0f1f8a98b007260b319226b88b3c

src/resources/workers-for-platforms/dispatch/namespaces/scripts/bindings.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ export namespace BindingGetResponse {
168168
name: string;
169169

170170
/**
171-
* Namespace to bind to.
171+
* The name of the dispatch namespace.
172172
*/
173173
namespace: string;
174174

src/resources/workers-for-platforms/dispatch/namespaces/scripts/scripts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -616,7 +616,7 @@ export namespace ScriptUpdateParams {
616616
name: string;
617617

618618
/**
619-
* Namespace to bind to.
619+
* The name of the dispatch namespace.
620620
*/
621621
namespace: string;
622622

src/resources/workers-for-platforms/dispatch/namespaces/scripts/settings.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ export namespace SettingEditResponse {
247247
name: string;
248248

249249
/**
250-
* Namespace to bind to.
250+
* The name of the dispatch namespace.
251251
*/
252252
namespace: string;
253253

@@ -999,7 +999,7 @@ export namespace SettingGetResponse {
999999
name: string;
10001000

10011001
/**
1002-
* Namespace to bind to.
1002+
* The name of the dispatch namespace.
10031003
*/
10041004
namespace: string;
10051005

@@ -1769,7 +1769,7 @@ export namespace SettingEditParams {
17691769
name: string;
17701770

17711771
/**
1772-
* Namespace to bind to.
1772+
* The name of the dispatch namespace.
17731773
*/
17741774
namespace: string;
17751775

src/resources/workers/beta/workers/versions.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ export namespace Version {
409409
name: string;
410410

411411
/**
412-
* Namespace to bind to.
412+
* The name of the dispatch namespace.
413413
*/
414414
namespace: string;
415415

@@ -1263,7 +1263,7 @@ export namespace VersionCreateParams {
12631263
name: string;
12641264

12651265
/**
1266-
* Namespace to bind to.
1266+
* The name of the dispatch namespace.
12671267
*/
12681268
namespace: string;
12691269

src/resources/workers/beta/workers/workers.ts

Lines changed: 138 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,11 @@ export interface Worker {
193193
*/
194194
observability: Worker.Observability;
195195

196+
/**
197+
* Other resources that reference the Worker and depend on it existing.
198+
*/
199+
references: Worker.References;
200+
196201
/**
197202
* Subdomain settings for the Worker.
198203
*/
@@ -259,6 +264,139 @@ export namespace Worker {
259264
}
260265
}
261266

267+
/**
268+
* Other resources that reference the Worker and depend on it existing.
269+
*/
270+
export interface References {
271+
/**
272+
* Other Workers that reference the Worker as an outbound for a dispatch namespace.
273+
*/
274+
dispatch_namespace_outbounds: Array<References.DispatchNamespaceOutbound>;
275+
276+
/**
277+
* Custom domains connected to the Worker.
278+
*/
279+
domains: Array<References.Domain>;
280+
281+
/**
282+
* Other Workers that reference Durable Object classes implemented by the Worker.
283+
*/
284+
durable_objects: Array<References.DurableObject>;
285+
286+
/**
287+
* Queues that send messages to the Worker.
288+
*/
289+
queues: Array<References.Queue>;
290+
291+
/**
292+
* Other Workers that reference the Worker using
293+
* [service bindings](https://developers.cloudflare.com/workers/runtime-apis/bindings/service-bindings/).
294+
*/
295+
workers: Array<References.Worker>;
296+
}
297+
298+
export namespace References {
299+
export interface DispatchNamespaceOutbound {
300+
/**
301+
* ID of the dispatch namespace.
302+
*/
303+
namespace_id: string;
304+
305+
/**
306+
* Name of the dispatch namespace.
307+
*/
308+
namespace_name: string;
309+
310+
/**
311+
* ID of the Worker using the dispatch namespace.
312+
*/
313+
worker_id: string;
314+
315+
/**
316+
* Name of the Worker using the dispatch namespace.
317+
*/
318+
worker_name: string;
319+
}
320+
321+
export interface Domain {
322+
/**
323+
* ID of the custom domain.
324+
*/
325+
id: string;
326+
327+
/**
328+
* ID of the TLS certificate issued for the custom domain.
329+
*/
330+
certificate_id: string;
331+
332+
/**
333+
* Full hostname of the custom domain, including the zone name.
334+
*/
335+
hostname: string;
336+
337+
/**
338+
* ID of the zone.
339+
*/
340+
zone_id: string;
341+
342+
/**
343+
* Name of the zone.
344+
*/
345+
zone_name: string;
346+
}
347+
348+
export interface DurableObject {
349+
/**
350+
* ID of the Durable Object namespace being used.
351+
*/
352+
namespace_id: string;
353+
354+
/**
355+
* Name of the Durable Object namespace being used.
356+
*/
357+
namespace_name: string;
358+
359+
/**
360+
* ID of the Worker using the Durable Object implementation.
361+
*/
362+
worker_id: string;
363+
364+
/**
365+
* Name of the Worker using the Durable Object implementation.
366+
*/
367+
worker_name: string;
368+
}
369+
370+
export interface Queue {
371+
/**
372+
* ID of the queue consumer configuration.
373+
*/
374+
queue_consumer_id: string;
375+
376+
/**
377+
* ID of the queue.
378+
*/
379+
queue_id: string;
380+
381+
/**
382+
* Name of the queue.
383+
*/
384+
queue_name: string;
385+
}
386+
387+
export interface Worker {
388+
/**
389+
* ID of the referencing Worker.
390+
*/
391+
id: string;
392+
393+
/**
394+
* Name of the referencing Worker.
395+
*/
396+
name: string;
397+
}
398+
}
399+
262400
/**
263401
* Subdomain settings for the Worker.
264402
*/

src/resources/workers/scripts/script-and-version-settings.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ export namespace ScriptAndVersionSettingEditResponse {
243243
name: string;
244244

245245
/**
246-
* Namespace to bind to.
246+
* The name of the dispatch namespace.
247247
*/
248248
namespace: string;
249249

@@ -995,7 +995,7 @@ export namespace ScriptAndVersionSettingGetResponse {
995995
name: string;
996996

997997
/**
998-
* Namespace to bind to.
998+
* The name of the dispatch namespace.
999999
*/
10001000
namespace: string;
10011001

@@ -1765,7 +1765,7 @@ export namespace ScriptAndVersionSettingEditParams {
17651765
name: string;
17661766

17671767
/**
1768-
* Namespace to bind to.
1768+
* The name of the dispatch namespace.
17691769
*/
17701770
namespace: string;
17711771

src/resources/workers/scripts/scripts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -925,7 +925,7 @@ export namespace ScriptUpdateParams {
925925
name: string;
926926

927927
/**
928-
* Namespace to bind to.
928+
* The name of the dispatch namespace.
929929
*/
930930
namespace: string;
931931

src/resources/workers/scripts/versions.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ export namespace VersionCreateResponse {
245245
name: string;
246246

247247
/**
248-
* Namespace to bind to.
248+
* The name of the dispatch namespace.
249249
*/
250250
namespace: string;
251251

@@ -981,7 +981,7 @@ export namespace VersionGetResponse {
981981
name: string;
982982

983983
/**
984-
* Namespace to bind to.
984+
* The name of the dispatch namespace.
985985
*/
986986
namespace: string;
987987

@@ -1745,7 +1745,7 @@ export namespace VersionCreateParams {
17451745
name: string;
17461746

17471747
/**
1748-
* Namespace to bind to.
1748+
* The name of the dispatch namespace.
17491749
*/
17501750
namespace: string;
17511751

0 commit comments

Comments
 (0)