@@ -30,41 +30,27 @@ export class BindingGetResponsesSinglePage extends SinglePage<BindingGetResponse
3030 * A binding to allow the Worker to communicate with resources
3131 */
3232export type BindingGetResponse =
33- | BindingGetResponse . WorkersBindingKindAny
3433 | BindingGetResponse . WorkersBindingKindAI
3534 | BindingGetResponse . WorkersBindingKindAnalyticsEngine
3635 | BindingGetResponse . WorkersBindingKindAssets
3736 | BindingGetResponse . WorkersBindingKindBrowserRendering
3837 | BindingGetResponse . WorkersBindingKindD1
3938 | BindingGetResponse . WorkersBindingKindDispatchNamespace
40- | BindingGetResponse . WorkersBindingKindDo
39+ | BindingGetResponse . WorkersBindingKindDurableObjectNamespace
4140 | BindingGetResponse . WorkersBindingKindHyperdrive
4241 | BindingGetResponse . WorkersBindingKindJson
4342 | BindingGetResponse . WorkersBindingKindKVNamespace
44- | BindingGetResponse . WorkersBindingKindMTLSCERT
43+ | BindingGetResponse . WorkersBindingKindMTLSCertificate
4544 | BindingGetResponse . WorkersBindingKindPlainText
4645 | BindingGetResponse . WorkersBindingKindQueue
47- | BindingGetResponse . WorkersBindingKindR2
48- | BindingGetResponse . WorkersBindingKindSecret
46+ | BindingGetResponse . WorkersBindingKindR2Bucket
47+ | BindingGetResponse . WorkersBindingKindSecretText
4948 | BindingGetResponse . WorkersBindingKindService
5049 | BindingGetResponse . WorkersBindingKindTailConsumer
5150 | BindingGetResponse . WorkersBindingKindVectorize
5251 | BindingGetResponse . WorkersBindingKindVersionMetadata ;
5352
5453export namespace BindingGetResponse {
55- export interface WorkersBindingKindAny {
56- /**
57- * A JavaScript variable name for the binding.
58- */
59- name : string ;
60-
61- /**
62- * The kind of resource that the binding provides.
63- */
64- type : string ;
65- [ k : string ] : unknown ;
66- }
67-
6854 export interface WorkersBindingKindAI {
6955 /**
7056 * A JavaScript variable name for the binding.
@@ -74,12 +60,12 @@ export namespace BindingGetResponse {
7460 /**
7561 * The kind of resource that the binding provides.
7662 */
77- type : 'ai' ;
63+ type : string ;
7864 }
7965
8066 export interface WorkersBindingKindAnalyticsEngine {
8167 /**
82- * The dataset name to bind to.
68+ * The name of the dataset to bind to.
8369 */
8470 dataset : string ;
8571
@@ -91,7 +77,7 @@ export namespace BindingGetResponse {
9177 /**
9278 * The kind of resource that the binding provides.
9379 */
94- type : 'analytics_engine' ;
80+ type : string ;
9581 }
9682
9783 export interface WorkersBindingKindAssets {
@@ -103,7 +89,7 @@ export namespace BindingGetResponse {
10389 /**
10490 * The kind of resource that the binding provides.
10591 */
106- type : 'assets' ;
92+ type : string ;
10793 }
10894
10995 export interface WorkersBindingKindBrowserRendering {
@@ -115,7 +101,7 @@ export namespace BindingGetResponse {
115101 /**
116102 * The kind of resource that the binding provides.
117103 */
118- type : 'browser_rendering' ;
104+ type : string ;
119105 }
120106
121107 export interface WorkersBindingKindD1 {
@@ -132,7 +118,7 @@ export namespace BindingGetResponse {
132118 /**
133119 * The kind of resource that the binding provides.
134120 */
135- type : 'd1' ;
121+ type : string ;
136122 }
137123
138124 export interface WorkersBindingKindDispatchNamespace {
@@ -149,7 +135,7 @@ export namespace BindingGetResponse {
149135 /**
150136 * The kind of resource that the binding provides.
151137 */
152- type : 'dispatch_namespace' ;
138+ type : string ;
153139
154140 /**
155141 * Outbound worker.
@@ -192,7 +178,7 @@ export namespace BindingGetResponse {
192178 }
193179 }
194180
195- export interface WorkersBindingKindDo {
181+ export interface WorkersBindingKindDurableObjectNamespace {
196182 /**
197183 * The exported class name of the Durable Object.
198184 */
@@ -206,7 +192,7 @@ export namespace BindingGetResponse {
206192 /**
207193 * The kind of resource that the binding provides.
208194 */
209- type : 'durable_object_namespace' ;
195+ type : string ;
210196
211197 /**
212198 * The environment of the script_name to bind to.
@@ -239,7 +225,7 @@ export namespace BindingGetResponse {
239225 /**
240226 * The kind of resource that the binding provides.
241227 */
242- type : 'hyperdrive' ;
228+ type : string ;
243229 }
244230
245231 export interface WorkersBindingKindJson {
@@ -256,7 +242,7 @@ export namespace BindingGetResponse {
256242 /**
257243 * The kind of resource that the binding provides.
258244 */
259- type : 'json' ;
245+ type : string ;
260246 }
261247
262248 export interface WorkersBindingKindKVNamespace {
@@ -273,10 +259,10 @@ export namespace BindingGetResponse {
273259 /**
274260 * The kind of resource that the binding provides.
275261 */
276- type : 'kv_namespace' ;
262+ type : string ;
277263 }
278264
279- export interface WorkersBindingKindMTLSCERT {
265+ export interface WorkersBindingKindMTLSCertificate {
280266 /**
281267 * Identifier of the certificate to bind to.
282268 */
@@ -290,7 +276,7 @@ export namespace BindingGetResponse {
290276 /**
291277 * The kind of resource that the binding provides.
292278 */
293- type : 'mtls_certificate' ;
279+ type : string ;
294280 }
295281
296282 export interface WorkersBindingKindPlainText {
@@ -307,7 +293,7 @@ export namespace BindingGetResponse {
307293 /**
308294 * The kind of resource that the binding provides.
309295 */
310- type : 'plain_text' ;
296+ type : string ;
311297 }
312298
313299 export interface WorkersBindingKindQueue {
@@ -324,10 +310,10 @@ export namespace BindingGetResponse {
324310 /**
325311 * The kind of resource that the binding provides.
326312 */
327- type : 'queue' ;
313+ type : string ;
328314 }
329315
330- export interface WorkersBindingKindR2 {
316+ export interface WorkersBindingKindR2Bucket {
331317 /**
332318 * R2 bucket to bind to.
333319 */
@@ -341,10 +327,10 @@ export namespace BindingGetResponse {
341327 /**
342328 * The kind of resource that the binding provides.
343329 */
344- type : 'r2_bucket' ;
330+ type : string ;
345331 }
346332
347- export interface WorkersBindingKindSecret {
333+ export interface WorkersBindingKindSecretText {
348334 /**
349335 * A JavaScript variable name for the binding.
350336 */
@@ -358,7 +344,7 @@ export namespace BindingGetResponse {
358344 /**
359345 * The kind of resource that the binding provides.
360346 */
361- type : 'secret_text' ;
347+ type : string ;
362348 }
363349
364350 export interface WorkersBindingKindService {
@@ -380,7 +366,7 @@ export namespace BindingGetResponse {
380366 /**
381367 * The kind of resource that the binding provides.
382368 */
383- type : 'service' ;
369+ type : string ;
384370 }
385371
386372 export interface WorkersBindingKindTailConsumer {
@@ -397,7 +383,7 @@ export namespace BindingGetResponse {
397383 /**
398384 * The kind of resource that the binding provides.
399385 */
400- type : 'tail_consumer' ;
386+ type : string ;
401387 }
402388
403389 export interface WorkersBindingKindVectorize {
@@ -414,7 +400,7 @@ export namespace BindingGetResponse {
414400 /**
415401 * The kind of resource that the binding provides.
416402 */
417- type : 'vectorize' ;
403+ type : string ;
418404 }
419405
420406 export interface WorkersBindingKindVersionMetadata {
@@ -426,7 +412,7 @@ export namespace BindingGetResponse {
426412 /**
427413 * The kind of resource that the binding provides.
428414 */
429- type : 'version_metadata' ;
415+ type : string ;
430416 }
431417}
432418
0 commit comments