devflare 1.0.0-next.42 → 1.0.0-next.44
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LLM.md +1342 -1
- package/dist/_chunks/{account-BtWcv3X9.js → account-Cdo_cRNv.js} +1 -1
- package/dist/_chunks/{build-D1l6a5Il.js → build-MzQbenXE.js} +1 -1
- package/dist/_chunks/{build-artifacts-BUaq16e4.js → build-artifacts-tD45Rwmx.js} +4 -4
- package/dist/_chunks/{cli-CgFqrDZd.js → cli-BiDDz-RY.js} +12 -12
- package/dist/_chunks/{command-utils-BsfkmTqh.js → command-utils-C48hJMln.js} +1 -1
- package/dist/_chunks/{compiler-uoyAQ8zW.js → compiler-Dc97FkBg.js} +80 -15
- package/dist/_chunks/{config-D5u-bEkn.js → config-DQ_uWv37.js} +3 -3
- package/dist/_chunks/{config-path-DCPto4XB.js → config-path-ePwIvHNX.js} +1 -1
- package/dist/_chunks/{deploy-DIDoW5u1.js → deploy-BmtstRbc.js} +6 -6
- package/dist/_chunks/{dev-BTSSETUX.js → dev-wVHYCbZF.js} +19 -10
- package/dist/_chunks/{doctor-C0g8X36G.js → doctor-lFlh-olK.js} +2 -2
- package/dist/_chunks/{family-DXC5SdFK.js → family-Dfb9VR9g.js} +1 -1
- package/dist/_chunks/{loader-DLXO60RO.js → loader-RZhqzsRJ.js} +4 -4
- package/dist/_chunks/{local-secrets-DMmEOygL.js → local-secrets-DMPkmOn3.js} +1 -1
- package/dist/_chunks/{local-workflow-entrypoints-Wip3o1u8.js → local-workflow-entrypoints-Cq_WJajd.js} +1 -1
- package/dist/_chunks/{login-BmnDzDlH.js → login-DnyfffOC.js} +1 -1
- package/dist/_chunks/{preview-BhqDmq8I.js → preview-C3Cdr8an.js} +9 -3
- package/dist/_chunks/{preview-resources-DdXj8LMM.js → preview-resources-xziKCynb.js} +5 -4
- package/dist/_chunks/{previews-Dlr13x5M.js → previews-wI-pW6HM.js} +7 -7
- package/dist/_chunks/{productions-D3AnOHac.js → productions-BpROdhLN.js} +3 -3
- package/dist/_chunks/{routes-BWi7h2xb.js → routes-5OnFhKR2.js} +18 -5
- package/dist/_chunks/{schema-normalization-DWVleVxo.js → schema-normalization-BCwTLTGp.js} +196 -13
- package/dist/_chunks/{secrets-70eN0Q6C.js → secrets-DIpJGe6C.js} +1 -1
- package/dist/_chunks/{types-BgA5Hb4B.js → types-Zn9vyUGA.js} +11 -3
- package/dist/_chunks/{vite-BszZvrKL.js → vite-DLUELS0D.js} +5 -5
- package/dist/_chunks/{worker-CS1jgNFE.js → worker-rL5udcl9.js} +4 -4
- package/dist/bridge/miniflare.d.ts.map +1 -1
- package/dist/browser.d.ts +818 -36
- package/dist/browser.d.ts.map +1 -1
- package/dist/cli/commands/type-generation/generator.d.ts +12 -3
- package/dist/cli/commands/type-generation/generator.d.ts.map +1 -1
- package/dist/cli/index.js +1 -1
- package/dist/config/compiler/bindings.d.ts.map +1 -1
- package/dist/config/compiler/do-workers.d.ts.map +1 -1
- package/dist/config/compiler/types.d.ts +28 -0
- package/dist/config/compiler/types.d.ts.map +1 -1
- package/dist/config/deploy-resources.d.ts.map +1 -1
- package/dist/config/index.d.ts +1 -1
- package/dist/config/index.d.ts.map +1 -1
- package/dist/config/preview-resources.d.ts +1 -1
- package/dist/config/preview-resources.d.ts.map +1 -1
- package/dist/config/preview.d.ts.map +1 -1
- package/dist/config/schema-bindings.d.ts +544 -14
- package/dist/config/schema-bindings.d.ts.map +1 -1
- package/dist/config/schema-env.d.ts +572 -24
- package/dist/config/schema-env.d.ts.map +1 -1
- package/dist/config/schema-normalization.d.ts +82 -1
- package/dist/config/schema-normalization.d.ts.map +1 -1
- package/dist/config/schema-types-bindings-platform.d.ts +130 -0
- package/dist/config/schema-types-bindings-platform.d.ts.map +1 -1
- package/dist/config/schema-types-bindings-resources.d.ts +220 -3
- package/dist/config/schema-types-bindings-resources.d.ts.map +1 -1
- package/dist/config/schema-types-bindings.d.ts +42 -3
- package/dist/config/schema-types-bindings.d.ts.map +1 -1
- package/dist/config/schema.d.ts +1035 -57
- package/dist/config/schema.d.ts.map +1 -1
- package/dist/config-entry.js +1 -1
- package/dist/dev-server/miniflare-bindings.d.ts +6 -0
- package/dist/dev-server/miniflare-bindings.d.ts.map +1 -1
- package/dist/dev-server/miniflare-dev-config.d.ts.map +1 -1
- package/dist/dev-server/miniflare-worker-config.d.ts +5 -1
- package/dist/dev-server/miniflare-worker-config.d.ts.map +1 -1
- package/dist/index.js +4 -4
- package/dist/sveltekit/index.js +3 -3
- package/dist/test/index.d.ts +1 -1
- package/dist/test/index.d.ts.map +1 -1
- package/dist/test/index.js +168 -10
- package/dist/test/offline-bindings.d.ts +5 -3
- package/dist/test/offline-bindings.d.ts.map +1 -1
- package/dist/test/resolve-service-bindings.d.ts.map +1 -1
- package/dist/test/simple-context-mfconfig.d.ts.map +1 -1
- package/dist/test/utilities/stream-flagship.d.ts +27 -0
- package/dist/test/utilities/stream-flagship.d.ts.map +1 -0
- package/dist/test/utilities.d.ts +1 -0
- package/dist/test/utilities.d.ts.map +1 -1
- package/dist/vite/index.js +1 -1
- package/package.json +1 -1
|
@@ -65,16 +65,43 @@ export declare const queueConsumerSchema: z.ZodObject<{
|
|
|
65
65
|
maxConcurrency?: number | undefined;
|
|
66
66
|
retryDelay?: number | undefined;
|
|
67
67
|
}>;
|
|
68
|
+
/**
|
|
69
|
+
* Queue producer binding schema.
|
|
70
|
+
* Accepts the queue-name string shorthand or an object form exposing `remote`.
|
|
71
|
+
*/
|
|
72
|
+
export declare const queueProducerSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
73
|
+
/** Queue name this producer writes to */
|
|
74
|
+
queue: z.ZodString;
|
|
75
|
+
/** Ask Wrangler local development to connect this producer to the remote queue */
|
|
76
|
+
remote: z.ZodOptional<z.ZodBoolean>;
|
|
77
|
+
}, "strict", z.ZodTypeAny, {
|
|
78
|
+
queue: string;
|
|
79
|
+
remote?: boolean | undefined;
|
|
80
|
+
}, {
|
|
81
|
+
queue: string;
|
|
82
|
+
remote?: boolean | undefined;
|
|
83
|
+
}>]>;
|
|
68
84
|
/**
|
|
69
85
|
* Queues configuration for producers and consumers.
|
|
70
86
|
*/
|
|
71
87
|
export declare const queuesConfigSchema: z.ZodObject<{
|
|
72
88
|
/**
|
|
73
89
|
* Queue producer bindings.
|
|
74
|
-
* Maps binding name to queue name
|
|
90
|
+
* Maps binding name to queue name or an object form exposing `remote`.
|
|
75
91
|
* @example { TASK_QUEUE: 'task-queue' }
|
|
76
92
|
*/
|
|
77
|
-
producers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString
|
|
93
|
+
producers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
94
|
+
/** Queue name this producer writes to */
|
|
95
|
+
queue: z.ZodString;
|
|
96
|
+
/** Ask Wrangler local development to connect this producer to the remote queue */
|
|
97
|
+
remote: z.ZodOptional<z.ZodBoolean>;
|
|
98
|
+
}, "strict", z.ZodTypeAny, {
|
|
99
|
+
queue: string;
|
|
100
|
+
remote?: boolean | undefined;
|
|
101
|
+
}, {
|
|
102
|
+
queue: string;
|
|
103
|
+
remote?: boolean | undefined;
|
|
104
|
+
}>]>>>;
|
|
78
105
|
/**
|
|
79
106
|
* Queue consumer configurations.
|
|
80
107
|
* Array of consumer configs for processing queue messages.
|
|
@@ -121,7 +148,10 @@ export declare const queuesConfigSchema: z.ZodObject<{
|
|
|
121
148
|
retryDelay?: number | undefined;
|
|
122
149
|
}>, "many">>;
|
|
123
150
|
}, "strip", z.ZodTypeAny, {
|
|
124
|
-
producers?: Record<string, string
|
|
151
|
+
producers?: Record<string, string | {
|
|
152
|
+
queue: string;
|
|
153
|
+
remote?: boolean | undefined;
|
|
154
|
+
}> | undefined;
|
|
125
155
|
consumers?: {
|
|
126
156
|
queue: string;
|
|
127
157
|
maxBatchSize?: number | undefined;
|
|
@@ -132,7 +162,10 @@ export declare const queuesConfigSchema: z.ZodObject<{
|
|
|
132
162
|
retryDelay?: number | undefined;
|
|
133
163
|
}[] | undefined;
|
|
134
164
|
}, {
|
|
135
|
-
producers?: Record<string, string
|
|
165
|
+
producers?: Record<string, string | {
|
|
166
|
+
queue: string;
|
|
167
|
+
remote?: boolean | undefined;
|
|
168
|
+
}> | undefined;
|
|
136
169
|
consumers?: {
|
|
137
170
|
queue: string;
|
|
138
171
|
maxBatchSize?: number | undefined;
|
|
@@ -216,6 +249,8 @@ export declare const serviceBindingSchema: z.ZodType<{
|
|
|
216
249
|
environment?: string;
|
|
217
250
|
/** Optional entrypoint class name for named exports */
|
|
218
251
|
entrypoint?: string;
|
|
252
|
+
/** Ask Wrangler local development to connect this binding to the remote service */
|
|
253
|
+
remote?: boolean;
|
|
219
254
|
/** @internal Reference marker for ref() bindings */
|
|
220
255
|
__ref?: unknown;
|
|
221
256
|
}, z.ZodTypeDef, {
|
|
@@ -225,6 +260,8 @@ export declare const serviceBindingSchema: z.ZodType<{
|
|
|
225
260
|
environment?: string;
|
|
226
261
|
/** Optional entrypoint class name for named exports */
|
|
227
262
|
entrypoint?: string;
|
|
263
|
+
/** Ask Wrangler local development to connect this binding to the remote service */
|
|
264
|
+
remote?: boolean;
|
|
228
265
|
/** @internal Reference marker for ref() bindings */
|
|
229
266
|
__ref?: unknown;
|
|
230
267
|
}>;
|
|
@@ -448,67 +485,208 @@ export declare const sendEmailBindingSchema: z.ZodEffects<z.ZodObject<{
|
|
|
448
485
|
allowedSenderAddresses?: string[] | undefined;
|
|
449
486
|
}>;
|
|
450
487
|
export declare const d1BindingByIdSchema: z.ZodObject<{
|
|
488
|
+
/** D1 database ID used during `wrangler dev`; compiles to `preview_database_id` */
|
|
489
|
+
previewDatabaseId: z.ZodOptional<z.ZodString>;
|
|
490
|
+
/** Name of the migrations table; compiles to `migrations_table` */
|
|
491
|
+
migrationsTable: z.ZodOptional<z.ZodString>;
|
|
492
|
+
/** Path to the migrations directory; compiles to `migrations_dir` */
|
|
493
|
+
migrationsDir: z.ZodOptional<z.ZodString>;
|
|
494
|
+
/** Ask Wrangler local development to connect this binding to the remote database */
|
|
495
|
+
remote: z.ZodOptional<z.ZodBoolean>;
|
|
451
496
|
/** Explicit D1 database ID */
|
|
452
497
|
id: z.ZodString;
|
|
453
498
|
}, "strict", z.ZodTypeAny, {
|
|
499
|
+
previewDatabaseId?: string | undefined;
|
|
500
|
+
migrationsTable?: string | undefined;
|
|
501
|
+
migrationsDir?: string | undefined;
|
|
502
|
+
remote?: boolean | undefined;
|
|
454
503
|
id: string;
|
|
455
504
|
}, {
|
|
505
|
+
previewDatabaseId?: string | undefined;
|
|
506
|
+
migrationsTable?: string | undefined;
|
|
507
|
+
migrationsDir?: string | undefined;
|
|
508
|
+
remote?: boolean | undefined;
|
|
456
509
|
id: string;
|
|
457
510
|
}>;
|
|
458
511
|
export declare const d1BindingByNameSchema: z.ZodObject<{
|
|
512
|
+
/** D1 database ID used during `wrangler dev`; compiles to `preview_database_id` */
|
|
513
|
+
previewDatabaseId: z.ZodOptional<z.ZodString>;
|
|
514
|
+
/** Name of the migrations table; compiles to `migrations_table` */
|
|
515
|
+
migrationsTable: z.ZodOptional<z.ZodString>;
|
|
516
|
+
/** Path to the migrations directory; compiles to `migrations_dir` */
|
|
517
|
+
migrationsDir: z.ZodOptional<z.ZodString>;
|
|
518
|
+
/** Ask Wrangler local development to connect this binding to the remote database */
|
|
519
|
+
remote: z.ZodOptional<z.ZodBoolean>;
|
|
459
520
|
/** Stable D1 database name to resolve to an ID at config/build/deploy time */
|
|
460
521
|
name: z.ZodString;
|
|
461
522
|
}, "strict", z.ZodTypeAny, {
|
|
523
|
+
previewDatabaseId?: string | undefined;
|
|
524
|
+
migrationsTable?: string | undefined;
|
|
525
|
+
migrationsDir?: string | undefined;
|
|
526
|
+
remote?: boolean | undefined;
|
|
462
527
|
name: string;
|
|
463
528
|
}, {
|
|
529
|
+
previewDatabaseId?: string | undefined;
|
|
530
|
+
migrationsTable?: string | undefined;
|
|
531
|
+
migrationsDir?: string | undefined;
|
|
532
|
+
remote?: boolean | undefined;
|
|
464
533
|
name: string;
|
|
465
534
|
}>;
|
|
466
535
|
export declare const d1BindingSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
536
|
+
/** D1 database ID used during `wrangler dev`; compiles to `preview_database_id` */
|
|
537
|
+
previewDatabaseId: z.ZodOptional<z.ZodString>;
|
|
538
|
+
/** Name of the migrations table; compiles to `migrations_table` */
|
|
539
|
+
migrationsTable: z.ZodOptional<z.ZodString>;
|
|
540
|
+
/** Path to the migrations directory; compiles to `migrations_dir` */
|
|
541
|
+
migrationsDir: z.ZodOptional<z.ZodString>;
|
|
542
|
+
/** Ask Wrangler local development to connect this binding to the remote database */
|
|
543
|
+
remote: z.ZodOptional<z.ZodBoolean>;
|
|
467
544
|
/** Explicit D1 database ID */
|
|
468
545
|
id: z.ZodString;
|
|
469
546
|
}, "strict", z.ZodTypeAny, {
|
|
547
|
+
previewDatabaseId?: string | undefined;
|
|
548
|
+
migrationsTable?: string | undefined;
|
|
549
|
+
migrationsDir?: string | undefined;
|
|
550
|
+
remote?: boolean | undefined;
|
|
470
551
|
id: string;
|
|
471
552
|
}, {
|
|
553
|
+
previewDatabaseId?: string | undefined;
|
|
554
|
+
migrationsTable?: string | undefined;
|
|
555
|
+
migrationsDir?: string | undefined;
|
|
556
|
+
remote?: boolean | undefined;
|
|
472
557
|
id: string;
|
|
473
558
|
}>, z.ZodObject<{
|
|
559
|
+
/** D1 database ID used during `wrangler dev`; compiles to `preview_database_id` */
|
|
560
|
+
previewDatabaseId: z.ZodOptional<z.ZodString>;
|
|
561
|
+
/** Name of the migrations table; compiles to `migrations_table` */
|
|
562
|
+
migrationsTable: z.ZodOptional<z.ZodString>;
|
|
563
|
+
/** Path to the migrations directory; compiles to `migrations_dir` */
|
|
564
|
+
migrationsDir: z.ZodOptional<z.ZodString>;
|
|
565
|
+
/** Ask Wrangler local development to connect this binding to the remote database */
|
|
566
|
+
remote: z.ZodOptional<z.ZodBoolean>;
|
|
474
567
|
/** Stable D1 database name to resolve to an ID at config/build/deploy time */
|
|
475
568
|
name: z.ZodString;
|
|
476
569
|
}, "strict", z.ZodTypeAny, {
|
|
570
|
+
previewDatabaseId?: string | undefined;
|
|
571
|
+
migrationsTable?: string | undefined;
|
|
572
|
+
migrationsDir?: string | undefined;
|
|
573
|
+
remote?: boolean | undefined;
|
|
477
574
|
name: string;
|
|
478
575
|
}, {
|
|
576
|
+
previewDatabaseId?: string | undefined;
|
|
577
|
+
migrationsTable?: string | undefined;
|
|
578
|
+
migrationsDir?: string | undefined;
|
|
579
|
+
remote?: boolean | undefined;
|
|
479
580
|
name: string;
|
|
480
581
|
}>]>;
|
|
481
582
|
export declare const kvBindingByIdSchema: z.ZodObject<{
|
|
583
|
+
/** KV namespace ID used during `wrangler dev`; compiles to `preview_id` */
|
|
584
|
+
previewId: z.ZodOptional<z.ZodString>;
|
|
585
|
+
/** Ask Wrangler local development to connect this binding to the remote namespace */
|
|
586
|
+
remote: z.ZodOptional<z.ZodBoolean>;
|
|
482
587
|
/** Explicit KV namespace ID */
|
|
483
588
|
id: z.ZodString;
|
|
484
589
|
}, "strict", z.ZodTypeAny, {
|
|
590
|
+
previewId?: string | undefined;
|
|
591
|
+
remote?: boolean | undefined;
|
|
485
592
|
id: string;
|
|
486
593
|
}, {
|
|
594
|
+
previewId?: string | undefined;
|
|
595
|
+
remote?: boolean | undefined;
|
|
487
596
|
id: string;
|
|
488
597
|
}>;
|
|
489
598
|
export declare const kvBindingByNameSchema: z.ZodObject<{
|
|
599
|
+
/** KV namespace ID used during `wrangler dev`; compiles to `preview_id` */
|
|
600
|
+
previewId: z.ZodOptional<z.ZodString>;
|
|
601
|
+
/** Ask Wrangler local development to connect this binding to the remote namespace */
|
|
602
|
+
remote: z.ZodOptional<z.ZodBoolean>;
|
|
490
603
|
/** Stable KV namespace name to resolve to an ID at config/build/deploy time */
|
|
491
604
|
name: z.ZodString;
|
|
492
605
|
}, "strict", z.ZodTypeAny, {
|
|
606
|
+
previewId?: string | undefined;
|
|
607
|
+
remote?: boolean | undefined;
|
|
493
608
|
name: string;
|
|
494
609
|
}, {
|
|
610
|
+
previewId?: string | undefined;
|
|
611
|
+
remote?: boolean | undefined;
|
|
495
612
|
name: string;
|
|
496
613
|
}>;
|
|
497
614
|
export declare const kvBindingSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
615
|
+
/** KV namespace ID used during `wrangler dev`; compiles to `preview_id` */
|
|
616
|
+
previewId: z.ZodOptional<z.ZodString>;
|
|
617
|
+
/** Ask Wrangler local development to connect this binding to the remote namespace */
|
|
618
|
+
remote: z.ZodOptional<z.ZodBoolean>;
|
|
498
619
|
/** Explicit KV namespace ID */
|
|
499
620
|
id: z.ZodString;
|
|
500
621
|
}, "strict", z.ZodTypeAny, {
|
|
622
|
+
previewId?: string | undefined;
|
|
623
|
+
remote?: boolean | undefined;
|
|
501
624
|
id: string;
|
|
502
625
|
}, {
|
|
626
|
+
previewId?: string | undefined;
|
|
627
|
+
remote?: boolean | undefined;
|
|
503
628
|
id: string;
|
|
504
629
|
}>, z.ZodObject<{
|
|
630
|
+
/** KV namespace ID used during `wrangler dev`; compiles to `preview_id` */
|
|
631
|
+
previewId: z.ZodOptional<z.ZodString>;
|
|
632
|
+
/** Ask Wrangler local development to connect this binding to the remote namespace */
|
|
633
|
+
remote: z.ZodOptional<z.ZodBoolean>;
|
|
505
634
|
/** Stable KV namespace name to resolve to an ID at config/build/deploy time */
|
|
506
635
|
name: z.ZodString;
|
|
507
636
|
}, "strict", z.ZodTypeAny, {
|
|
637
|
+
previewId?: string | undefined;
|
|
638
|
+
remote?: boolean | undefined;
|
|
508
639
|
name: string;
|
|
509
640
|
}, {
|
|
641
|
+
previewId?: string | undefined;
|
|
642
|
+
remote?: boolean | undefined;
|
|
510
643
|
name: string;
|
|
511
644
|
}>]>;
|
|
645
|
+
/**
|
|
646
|
+
* R2 bucket binding schema.
|
|
647
|
+
* Accepts the bucket-name string shorthand or an object form exposing
|
|
648
|
+
* `remote`, `previewBucketName`, and `jurisdiction`.
|
|
649
|
+
*/
|
|
650
|
+
export declare const r2BindingObjectSchema: z.ZodObject<{
|
|
651
|
+
/** R2 bucket name at the edge */
|
|
652
|
+
bucketName: z.ZodString;
|
|
653
|
+
/** R2 bucket name used during `wrangler dev`; compiles to `preview_bucket_name` */
|
|
654
|
+
previewBucketName: z.ZodOptional<z.ZodString>;
|
|
655
|
+
/** Jurisdiction the bucket exists in; compiles to `jurisdiction` */
|
|
656
|
+
jurisdiction: z.ZodOptional<z.ZodString>;
|
|
657
|
+
/** Ask Wrangler local development to connect this binding to the remote bucket */
|
|
658
|
+
remote: z.ZodOptional<z.ZodBoolean>;
|
|
659
|
+
}, "strict", z.ZodTypeAny, {
|
|
660
|
+
bucketName: string;
|
|
661
|
+
previewBucketName?: string | undefined;
|
|
662
|
+
jurisdiction?: string | undefined;
|
|
663
|
+
remote?: boolean | undefined;
|
|
664
|
+
}, {
|
|
665
|
+
bucketName: string;
|
|
666
|
+
previewBucketName?: string | undefined;
|
|
667
|
+
jurisdiction?: string | undefined;
|
|
668
|
+
remote?: boolean | undefined;
|
|
669
|
+
}>;
|
|
670
|
+
export declare const r2BindingSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
671
|
+
/** R2 bucket name at the edge */
|
|
672
|
+
bucketName: z.ZodString;
|
|
673
|
+
/** R2 bucket name used during `wrangler dev`; compiles to `preview_bucket_name` */
|
|
674
|
+
previewBucketName: z.ZodOptional<z.ZodString>;
|
|
675
|
+
/** Jurisdiction the bucket exists in; compiles to `jurisdiction` */
|
|
676
|
+
jurisdiction: z.ZodOptional<z.ZodString>;
|
|
677
|
+
/** Ask Wrangler local development to connect this binding to the remote bucket */
|
|
678
|
+
remote: z.ZodOptional<z.ZodBoolean>;
|
|
679
|
+
}, "strict", z.ZodTypeAny, {
|
|
680
|
+
bucketName: string;
|
|
681
|
+
previewBucketName?: string | undefined;
|
|
682
|
+
jurisdiction?: string | undefined;
|
|
683
|
+
remote?: boolean | undefined;
|
|
684
|
+
}, {
|
|
685
|
+
bucketName: string;
|
|
686
|
+
previewBucketName?: string | undefined;
|
|
687
|
+
jurisdiction?: string | undefined;
|
|
688
|
+
remote?: boolean | undefined;
|
|
689
|
+
}>]>;
|
|
512
690
|
export declare const mtlsCertificateBindingByIdSchema: z.ZodObject<{
|
|
513
691
|
/** Uploaded mTLS certificate UUID from `wrangler mtls-certificate upload` */
|
|
514
692
|
certificateId: z.ZodString;
|
|
@@ -675,6 +853,106 @@ export declare const artifactsBindingSchema: z.ZodUnion<[z.ZodString, z.ZodObjec
|
|
|
675
853
|
namespace: string;
|
|
676
854
|
remote?: boolean | undefined;
|
|
677
855
|
}>]>;
|
|
856
|
+
/**
|
|
857
|
+
* CF-2 — Cloudflare Stream binding (video upload/playback service).
|
|
858
|
+
* Mirrors the Images/Media singleton shape: `true` shorthand or `{ remote? }`.
|
|
859
|
+
*/
|
|
860
|
+
export declare const streamBindingSchema: z.ZodUnion<[z.ZodObject<{
|
|
861
|
+
/** Ask Wrangler local development to connect this binding to the remote Stream service */
|
|
862
|
+
remote: z.ZodOptional<z.ZodBoolean>;
|
|
863
|
+
}, "strict", z.ZodTypeAny, {
|
|
864
|
+
remote?: boolean | undefined;
|
|
865
|
+
}, {
|
|
866
|
+
remote?: boolean | undefined;
|
|
867
|
+
}>, z.ZodLiteral<true>]>;
|
|
868
|
+
/**
|
|
869
|
+
* CF-2 — VPC service binding. Connects the Worker to a private service through
|
|
870
|
+
* a Cloudflare VPC connectivity service. Compiles to wrangler's `vpc_services`.
|
|
871
|
+
*/
|
|
872
|
+
export declare const vpcServiceBindingSchema: z.ZodObject<{
|
|
873
|
+
/** Service ID of the VPC connectivity service; compiles to `service_id` */
|
|
874
|
+
serviceId: z.ZodString;
|
|
875
|
+
/** Ask Wrangler local development to connect this binding to the remote VPC service */
|
|
876
|
+
remote: z.ZodOptional<z.ZodBoolean>;
|
|
877
|
+
}, "strict", z.ZodTypeAny, {
|
|
878
|
+
serviceId: string;
|
|
879
|
+
remote?: boolean | undefined;
|
|
880
|
+
}, {
|
|
881
|
+
serviceId: string;
|
|
882
|
+
remote?: boolean | undefined;
|
|
883
|
+
}>;
|
|
884
|
+
/**
|
|
885
|
+
* CF-2 — VPC network binding routed through a Cloudflare Tunnel (`tunnelId`).
|
|
886
|
+
*/
|
|
887
|
+
export declare const vpcNetworkByTunnelSchema: z.ZodObject<{
|
|
888
|
+
/** Tunnel ID of the Cloudflare Tunnel; compiles to `tunnel_id`. Mutually exclusive with networkId */
|
|
889
|
+
tunnelId: z.ZodString;
|
|
890
|
+
/** Ask Wrangler local development to connect this binding to the remote VPC network */
|
|
891
|
+
remote: z.ZodOptional<z.ZodBoolean>;
|
|
892
|
+
}, "strict", z.ZodTypeAny, {
|
|
893
|
+
tunnelId: string;
|
|
894
|
+
remote?: boolean | undefined;
|
|
895
|
+
}, {
|
|
896
|
+
tunnelId: string;
|
|
897
|
+
remote?: boolean | undefined;
|
|
898
|
+
}>;
|
|
899
|
+
/**
|
|
900
|
+
* CF-2 — VPC network binding routed through a network ID (`networkId`).
|
|
901
|
+
*/
|
|
902
|
+
export declare const vpcNetworkByNetworkSchema: z.ZodObject<{
|
|
903
|
+
/** Network ID to route traffic through; compiles to `network_id`. Mutually exclusive with tunnelId */
|
|
904
|
+
networkId: z.ZodString;
|
|
905
|
+
/** Ask Wrangler local development to connect this binding to the remote VPC network */
|
|
906
|
+
remote: z.ZodOptional<z.ZodBoolean>;
|
|
907
|
+
}, "strict", z.ZodTypeAny, {
|
|
908
|
+
networkId: string;
|
|
909
|
+
remote?: boolean | undefined;
|
|
910
|
+
}, {
|
|
911
|
+
networkId: string;
|
|
912
|
+
remote?: boolean | undefined;
|
|
913
|
+
}>;
|
|
914
|
+
/**
|
|
915
|
+
* CF-2 — VPC network binding. Use exactly one of `tunnelId` or `networkId`.
|
|
916
|
+
*/
|
|
917
|
+
export declare const vpcNetworkBindingSchema: z.ZodUnion<[z.ZodObject<{
|
|
918
|
+
/** Tunnel ID of the Cloudflare Tunnel; compiles to `tunnel_id`. Mutually exclusive with networkId */
|
|
919
|
+
tunnelId: z.ZodString;
|
|
920
|
+
/** Ask Wrangler local development to connect this binding to the remote VPC network */
|
|
921
|
+
remote: z.ZodOptional<z.ZodBoolean>;
|
|
922
|
+
}, "strict", z.ZodTypeAny, {
|
|
923
|
+
tunnelId: string;
|
|
924
|
+
remote?: boolean | undefined;
|
|
925
|
+
}, {
|
|
926
|
+
tunnelId: string;
|
|
927
|
+
remote?: boolean | undefined;
|
|
928
|
+
}>, z.ZodObject<{
|
|
929
|
+
/** Network ID to route traffic through; compiles to `network_id`. Mutually exclusive with tunnelId */
|
|
930
|
+
networkId: z.ZodString;
|
|
931
|
+
/** Ask Wrangler local development to connect this binding to the remote VPC network */
|
|
932
|
+
remote: z.ZodOptional<z.ZodBoolean>;
|
|
933
|
+
}, "strict", z.ZodTypeAny, {
|
|
934
|
+
networkId: string;
|
|
935
|
+
remote?: boolean | undefined;
|
|
936
|
+
}, {
|
|
937
|
+
networkId: string;
|
|
938
|
+
remote?: boolean | undefined;
|
|
939
|
+
}>]>;
|
|
940
|
+
/**
|
|
941
|
+
* CF-2 — Flagship feature-flag binding. Compiles to wrangler's `flagship`
|
|
942
|
+
* array (`app_id`).
|
|
943
|
+
*/
|
|
944
|
+
export declare const flagshipBindingSchema: z.ZodObject<{
|
|
945
|
+
/** Flagship app ID to bind to; compiles to `app_id` */
|
|
946
|
+
appId: z.ZodString;
|
|
947
|
+
/** Ask Wrangler local development to use the remote Flagship service for flag evaluation */
|
|
948
|
+
remote: z.ZodOptional<z.ZodBoolean>;
|
|
949
|
+
}, "strict", z.ZodTypeAny, {
|
|
950
|
+
appId: string;
|
|
951
|
+
remote?: boolean | undefined;
|
|
952
|
+
}, {
|
|
953
|
+
appId: string;
|
|
954
|
+
remote?: boolean | undefined;
|
|
955
|
+
}>;
|
|
678
956
|
/**
|
|
679
957
|
* All worker bindings configuration.
|
|
680
958
|
* Defines connections to Cloudflare services and resources.
|
|
@@ -685,18 +963,34 @@ export declare const bindingsSchema: z.ZodOptional<z.ZodObject<{
|
|
|
685
963
|
* Maps binding name to either a stable KV namespace name or an explicit resolver object.
|
|
686
964
|
*/
|
|
687
965
|
kv: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
966
|
+
/** KV namespace ID used during `wrangler dev`; compiles to `preview_id` */
|
|
967
|
+
previewId: z.ZodOptional<z.ZodString>;
|
|
968
|
+
/** Ask Wrangler local development to connect this binding to the remote namespace */
|
|
969
|
+
remote: z.ZodOptional<z.ZodBoolean>;
|
|
688
970
|
/** Explicit KV namespace ID */
|
|
689
971
|
id: z.ZodString;
|
|
690
972
|
}, "strict", z.ZodTypeAny, {
|
|
973
|
+
previewId?: string | undefined;
|
|
974
|
+
remote?: boolean | undefined;
|
|
691
975
|
id: string;
|
|
692
976
|
}, {
|
|
977
|
+
previewId?: string | undefined;
|
|
978
|
+
remote?: boolean | undefined;
|
|
693
979
|
id: string;
|
|
694
980
|
}>, z.ZodObject<{
|
|
981
|
+
/** KV namespace ID used during `wrangler dev`; compiles to `preview_id` */
|
|
982
|
+
previewId: z.ZodOptional<z.ZodString>;
|
|
983
|
+
/** Ask Wrangler local development to connect this binding to the remote namespace */
|
|
984
|
+
remote: z.ZodOptional<z.ZodBoolean>;
|
|
695
985
|
/** Stable KV namespace name to resolve to an ID at config/build/deploy time */
|
|
696
986
|
name: z.ZodString;
|
|
697
987
|
}, "strict", z.ZodTypeAny, {
|
|
988
|
+
previewId?: string | undefined;
|
|
989
|
+
remote?: boolean | undefined;
|
|
698
990
|
name: string;
|
|
699
991
|
}, {
|
|
992
|
+
previewId?: string | undefined;
|
|
993
|
+
remote?: boolean | undefined;
|
|
700
994
|
name: string;
|
|
701
995
|
}>]>>>;
|
|
702
996
|
/**
|
|
@@ -704,25 +998,76 @@ export declare const bindingsSchema: z.ZodOptional<z.ZodObject<{
|
|
|
704
998
|
* Maps binding name to either a stable D1 database name or an explicit resolver object.
|
|
705
999
|
*/
|
|
706
1000
|
d1: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
1001
|
+
/** D1 database ID used during `wrangler dev`; compiles to `preview_database_id` */
|
|
1002
|
+
previewDatabaseId: z.ZodOptional<z.ZodString>;
|
|
1003
|
+
/** Name of the migrations table; compiles to `migrations_table` */
|
|
1004
|
+
migrationsTable: z.ZodOptional<z.ZodString>;
|
|
1005
|
+
/** Path to the migrations directory; compiles to `migrations_dir` */
|
|
1006
|
+
migrationsDir: z.ZodOptional<z.ZodString>;
|
|
1007
|
+
/** Ask Wrangler local development to connect this binding to the remote database */
|
|
1008
|
+
remote: z.ZodOptional<z.ZodBoolean>;
|
|
707
1009
|
/** Explicit D1 database ID */
|
|
708
1010
|
id: z.ZodString;
|
|
709
1011
|
}, "strict", z.ZodTypeAny, {
|
|
1012
|
+
previewDatabaseId?: string | undefined;
|
|
1013
|
+
migrationsTable?: string | undefined;
|
|
1014
|
+
migrationsDir?: string | undefined;
|
|
1015
|
+
remote?: boolean | undefined;
|
|
710
1016
|
id: string;
|
|
711
1017
|
}, {
|
|
1018
|
+
previewDatabaseId?: string | undefined;
|
|
1019
|
+
migrationsTable?: string | undefined;
|
|
1020
|
+
migrationsDir?: string | undefined;
|
|
1021
|
+
remote?: boolean | undefined;
|
|
712
1022
|
id: string;
|
|
713
1023
|
}>, z.ZodObject<{
|
|
1024
|
+
/** D1 database ID used during `wrangler dev`; compiles to `preview_database_id` */
|
|
1025
|
+
previewDatabaseId: z.ZodOptional<z.ZodString>;
|
|
1026
|
+
/** Name of the migrations table; compiles to `migrations_table` */
|
|
1027
|
+
migrationsTable: z.ZodOptional<z.ZodString>;
|
|
1028
|
+
/** Path to the migrations directory; compiles to `migrations_dir` */
|
|
1029
|
+
migrationsDir: z.ZodOptional<z.ZodString>;
|
|
1030
|
+
/** Ask Wrangler local development to connect this binding to the remote database */
|
|
1031
|
+
remote: z.ZodOptional<z.ZodBoolean>;
|
|
714
1032
|
/** Stable D1 database name to resolve to an ID at config/build/deploy time */
|
|
715
1033
|
name: z.ZodString;
|
|
716
1034
|
}, "strict", z.ZodTypeAny, {
|
|
1035
|
+
previewDatabaseId?: string | undefined;
|
|
1036
|
+
migrationsTable?: string | undefined;
|
|
1037
|
+
migrationsDir?: string | undefined;
|
|
1038
|
+
remote?: boolean | undefined;
|
|
717
1039
|
name: string;
|
|
718
1040
|
}, {
|
|
1041
|
+
previewDatabaseId?: string | undefined;
|
|
1042
|
+
migrationsTable?: string | undefined;
|
|
1043
|
+
migrationsDir?: string | undefined;
|
|
1044
|
+
remote?: boolean | undefined;
|
|
719
1045
|
name: string;
|
|
720
1046
|
}>]>>>;
|
|
721
1047
|
/**
|
|
722
1048
|
* R2 Bucket bindings.
|
|
723
|
-
* Maps binding name to R2 bucket name.
|
|
1049
|
+
* Maps binding name to an R2 bucket name or an explicit object form.
|
|
724
1050
|
*/
|
|
725
|
-
r2: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString
|
|
1051
|
+
r2: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
1052
|
+
/** R2 bucket name at the edge */
|
|
1053
|
+
bucketName: z.ZodString;
|
|
1054
|
+
/** R2 bucket name used during `wrangler dev`; compiles to `preview_bucket_name` */
|
|
1055
|
+
previewBucketName: z.ZodOptional<z.ZodString>;
|
|
1056
|
+
/** Jurisdiction the bucket exists in; compiles to `jurisdiction` */
|
|
1057
|
+
jurisdiction: z.ZodOptional<z.ZodString>;
|
|
1058
|
+
/** Ask Wrangler local development to connect this binding to the remote bucket */
|
|
1059
|
+
remote: z.ZodOptional<z.ZodBoolean>;
|
|
1060
|
+
}, "strict", z.ZodTypeAny, {
|
|
1061
|
+
bucketName: string;
|
|
1062
|
+
previewBucketName?: string | undefined;
|
|
1063
|
+
jurisdiction?: string | undefined;
|
|
1064
|
+
remote?: boolean | undefined;
|
|
1065
|
+
}, {
|
|
1066
|
+
bucketName: string;
|
|
1067
|
+
previewBucketName?: string | undefined;
|
|
1068
|
+
jurisdiction?: string | undefined;
|
|
1069
|
+
remote?: boolean | undefined;
|
|
1070
|
+
}>]>>>;
|
|
726
1071
|
/**
|
|
727
1072
|
* Durable Object bindings.
|
|
728
1073
|
* Maps binding name to DO class configuration.
|
|
@@ -734,10 +1079,21 @@ export declare const bindingsSchema: z.ZodOptional<z.ZodObject<{
|
|
|
734
1079
|
queues: z.ZodOptional<z.ZodObject<{
|
|
735
1080
|
/**
|
|
736
1081
|
* Queue producer bindings.
|
|
737
|
-
* Maps binding name to queue name
|
|
1082
|
+
* Maps binding name to queue name or an object form exposing `remote`.
|
|
738
1083
|
* @example { TASK_QUEUE: 'task-queue' }
|
|
739
1084
|
*/
|
|
740
|
-
producers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString
|
|
1085
|
+
producers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
1086
|
+
/** Queue name this producer writes to */
|
|
1087
|
+
queue: z.ZodString;
|
|
1088
|
+
/** Ask Wrangler local development to connect this producer to the remote queue */
|
|
1089
|
+
remote: z.ZodOptional<z.ZodBoolean>;
|
|
1090
|
+
}, "strict", z.ZodTypeAny, {
|
|
1091
|
+
queue: string;
|
|
1092
|
+
remote?: boolean | undefined;
|
|
1093
|
+
}, {
|
|
1094
|
+
queue: string;
|
|
1095
|
+
remote?: boolean | undefined;
|
|
1096
|
+
}>]>>>;
|
|
741
1097
|
/**
|
|
742
1098
|
* Queue consumer configurations.
|
|
743
1099
|
* Array of consumer configs for processing queue messages.
|
|
@@ -784,7 +1140,10 @@ export declare const bindingsSchema: z.ZodOptional<z.ZodObject<{
|
|
|
784
1140
|
retryDelay?: number | undefined;
|
|
785
1141
|
}>, "many">>;
|
|
786
1142
|
}, "strip", z.ZodTypeAny, {
|
|
787
|
-
producers?: Record<string, string
|
|
1143
|
+
producers?: Record<string, string | {
|
|
1144
|
+
queue: string;
|
|
1145
|
+
remote?: boolean | undefined;
|
|
1146
|
+
}> | undefined;
|
|
788
1147
|
consumers?: {
|
|
789
1148
|
queue: string;
|
|
790
1149
|
maxBatchSize?: number | undefined;
|
|
@@ -795,7 +1154,10 @@ export declare const bindingsSchema: z.ZodOptional<z.ZodObject<{
|
|
|
795
1154
|
retryDelay?: number | undefined;
|
|
796
1155
|
}[] | undefined;
|
|
797
1156
|
}, {
|
|
798
|
-
producers?: Record<string, string
|
|
1157
|
+
producers?: Record<string, string | {
|
|
1158
|
+
queue: string;
|
|
1159
|
+
remote?: boolean | undefined;
|
|
1160
|
+
}> | undefined;
|
|
799
1161
|
consumers?: {
|
|
800
1162
|
queue: string;
|
|
801
1163
|
maxBatchSize?: number | undefined;
|
|
@@ -879,6 +1241,8 @@ export declare const bindingsSchema: z.ZodOptional<z.ZodObject<{
|
|
|
879
1241
|
environment?: string;
|
|
880
1242
|
/** Optional entrypoint class name for named exports */
|
|
881
1243
|
entrypoint?: string;
|
|
1244
|
+
/** Ask Wrangler local development to connect this binding to the remote service */
|
|
1245
|
+
remote?: boolean;
|
|
882
1246
|
/** @internal Reference marker for ref() bindings */
|
|
883
1247
|
__ref?: unknown;
|
|
884
1248
|
}, z.ZodTypeDef, {
|
|
@@ -888,6 +1252,8 @@ export declare const bindingsSchema: z.ZodOptional<z.ZodObject<{
|
|
|
888
1252
|
environment?: string;
|
|
889
1253
|
/** Optional entrypoint class name for named exports */
|
|
890
1254
|
entrypoint?: string;
|
|
1255
|
+
/** Ask Wrangler local development to connect this binding to the remote service */
|
|
1256
|
+
remote?: boolean;
|
|
891
1257
|
/** @internal Reference marker for ref() bindings */
|
|
892
1258
|
__ref?: unknown;
|
|
893
1259
|
}>>>;
|
|
@@ -1215,21 +1581,119 @@ export declare const bindingsSchema: z.ZodOptional<z.ZodObject<{
|
|
|
1215
1581
|
namespace: string;
|
|
1216
1582
|
remote?: boolean | undefined;
|
|
1217
1583
|
}>]>>>;
|
|
1584
|
+
/**
|
|
1585
|
+
* CF-2 — Cloudflare Stream binding.
|
|
1586
|
+
* Maps a binding name to access the Stream service from the worker
|
|
1587
|
+
* (video upload/playback via `env.<binding>`).
|
|
1588
|
+
*/
|
|
1589
|
+
stream: z.ZodEffects<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
|
|
1590
|
+
/** Ask Wrangler local development to connect this binding to the remote Stream service */
|
|
1591
|
+
remote: z.ZodOptional<z.ZodBoolean>;
|
|
1592
|
+
}, "strict", z.ZodTypeAny, {
|
|
1593
|
+
remote?: boolean | undefined;
|
|
1594
|
+
}, {
|
|
1595
|
+
remote?: boolean | undefined;
|
|
1596
|
+
}>, z.ZodLiteral<true>]>>>, Record<string, true | {
|
|
1597
|
+
remote?: boolean | undefined;
|
|
1598
|
+
}> | undefined, Record<string, true | {
|
|
1599
|
+
remote?: boolean | undefined;
|
|
1600
|
+
}> | undefined>;
|
|
1601
|
+
/**
|
|
1602
|
+
* CF-2 — VPC service bindings.
|
|
1603
|
+
* Maps a binding name to a Cloudflare VPC connectivity service that
|
|
1604
|
+
* reaches a private service.
|
|
1605
|
+
*/
|
|
1606
|
+
vpcServices: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1607
|
+
/** Service ID of the VPC connectivity service; compiles to `service_id` */
|
|
1608
|
+
serviceId: z.ZodString;
|
|
1609
|
+
/** Ask Wrangler local development to connect this binding to the remote VPC service */
|
|
1610
|
+
remote: z.ZodOptional<z.ZodBoolean>;
|
|
1611
|
+
}, "strict", z.ZodTypeAny, {
|
|
1612
|
+
serviceId: string;
|
|
1613
|
+
remote?: boolean | undefined;
|
|
1614
|
+
}, {
|
|
1615
|
+
serviceId: string;
|
|
1616
|
+
remote?: boolean | undefined;
|
|
1617
|
+
}>>>;
|
|
1618
|
+
/**
|
|
1619
|
+
* CF-2 — VPC network bindings.
|
|
1620
|
+
* Maps a binding name to a VPC network routed through a Cloudflare
|
|
1621
|
+
* Tunnel or a network ID.
|
|
1622
|
+
*/
|
|
1623
|
+
vpcNetworks: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
|
|
1624
|
+
/** Tunnel ID of the Cloudflare Tunnel; compiles to `tunnel_id`. Mutually exclusive with networkId */
|
|
1625
|
+
tunnelId: z.ZodString;
|
|
1626
|
+
/** Ask Wrangler local development to connect this binding to the remote VPC network */
|
|
1627
|
+
remote: z.ZodOptional<z.ZodBoolean>;
|
|
1628
|
+
}, "strict", z.ZodTypeAny, {
|
|
1629
|
+
tunnelId: string;
|
|
1630
|
+
remote?: boolean | undefined;
|
|
1631
|
+
}, {
|
|
1632
|
+
tunnelId: string;
|
|
1633
|
+
remote?: boolean | undefined;
|
|
1634
|
+
}>, z.ZodObject<{
|
|
1635
|
+
/** Network ID to route traffic through; compiles to `network_id`. Mutually exclusive with tunnelId */
|
|
1636
|
+
networkId: z.ZodString;
|
|
1637
|
+
/** Ask Wrangler local development to connect this binding to the remote VPC network */
|
|
1638
|
+
remote: z.ZodOptional<z.ZodBoolean>;
|
|
1639
|
+
}, "strict", z.ZodTypeAny, {
|
|
1640
|
+
networkId: string;
|
|
1641
|
+
remote?: boolean | undefined;
|
|
1642
|
+
}, {
|
|
1643
|
+
networkId: string;
|
|
1644
|
+
remote?: boolean | undefined;
|
|
1645
|
+
}>]>>>;
|
|
1646
|
+
/**
|
|
1647
|
+
* CF-2 — Flagship feature-flag bindings.
|
|
1648
|
+
* Maps a binding name to a Flagship app for feature-flag evaluation.
|
|
1649
|
+
*/
|
|
1650
|
+
flagship: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1651
|
+
/** Flagship app ID to bind to; compiles to `app_id` */
|
|
1652
|
+
appId: z.ZodString;
|
|
1653
|
+
/** Ask Wrangler local development to use the remote Flagship service for flag evaluation */
|
|
1654
|
+
remote: z.ZodOptional<z.ZodBoolean>;
|
|
1655
|
+
}, "strict", z.ZodTypeAny, {
|
|
1656
|
+
appId: string;
|
|
1657
|
+
remote?: boolean | undefined;
|
|
1658
|
+
}, {
|
|
1659
|
+
appId: string;
|
|
1660
|
+
remote?: boolean | undefined;
|
|
1661
|
+
}>>>;
|
|
1218
1662
|
}, "strip", z.ZodTypeAny, {
|
|
1219
1663
|
kv?: Record<string, string | {
|
|
1664
|
+
previewId?: string | undefined;
|
|
1665
|
+
remote?: boolean | undefined;
|
|
1220
1666
|
id: string;
|
|
1221
1667
|
} | {
|
|
1668
|
+
previewId?: string | undefined;
|
|
1669
|
+
remote?: boolean | undefined;
|
|
1222
1670
|
name: string;
|
|
1223
1671
|
}> | undefined;
|
|
1224
1672
|
d1?: Record<string, string | {
|
|
1673
|
+
previewDatabaseId?: string | undefined;
|
|
1674
|
+
migrationsTable?: string | undefined;
|
|
1675
|
+
migrationsDir?: string | undefined;
|
|
1676
|
+
remote?: boolean | undefined;
|
|
1225
1677
|
id: string;
|
|
1226
1678
|
} | {
|
|
1679
|
+
previewDatabaseId?: string | undefined;
|
|
1680
|
+
migrationsTable?: string | undefined;
|
|
1681
|
+
migrationsDir?: string | undefined;
|
|
1682
|
+
remote?: boolean | undefined;
|
|
1227
1683
|
name: string;
|
|
1228
1684
|
}> | undefined;
|
|
1229
|
-
r2?: Record<string, string
|
|
1685
|
+
r2?: Record<string, string | {
|
|
1686
|
+
bucketName: string;
|
|
1687
|
+
previewBucketName?: string | undefined;
|
|
1688
|
+
jurisdiction?: string | undefined;
|
|
1689
|
+
remote?: boolean | undefined;
|
|
1690
|
+
}> | undefined;
|
|
1230
1691
|
durableObjects?: Record<string, DurableObjectBindingInput> | undefined;
|
|
1231
1692
|
queues?: {
|
|
1232
|
-
producers?: Record<string, string
|
|
1693
|
+
producers?: Record<string, string | {
|
|
1694
|
+
queue: string;
|
|
1695
|
+
remote?: boolean | undefined;
|
|
1696
|
+
}> | undefined;
|
|
1233
1697
|
consumers?: {
|
|
1234
1698
|
queue: string;
|
|
1235
1699
|
maxBatchSize?: number | undefined;
|
|
@@ -1262,6 +1726,8 @@ export declare const bindingsSchema: z.ZodOptional<z.ZodObject<{
|
|
|
1262
1726
|
environment?: string;
|
|
1263
1727
|
/** Optional entrypoint class name for named exports */
|
|
1264
1728
|
entrypoint?: string;
|
|
1729
|
+
/** Ask Wrangler local development to connect this binding to the remote service */
|
|
1730
|
+
remote?: boolean;
|
|
1265
1731
|
/** @internal Reference marker for ref() bindings */
|
|
1266
1732
|
__ref?: unknown;
|
|
1267
1733
|
}> | undefined;
|
|
@@ -1342,21 +1808,59 @@ export declare const bindingsSchema: z.ZodOptional<z.ZodObject<{
|
|
|
1342
1808
|
namespace: string;
|
|
1343
1809
|
remote?: boolean | undefined;
|
|
1344
1810
|
}> | undefined;
|
|
1811
|
+
stream?: Record<string, true | {
|
|
1812
|
+
remote?: boolean | undefined;
|
|
1813
|
+
}> | undefined;
|
|
1814
|
+
vpcServices?: Record<string, {
|
|
1815
|
+
serviceId: string;
|
|
1816
|
+
remote?: boolean | undefined;
|
|
1817
|
+
}> | undefined;
|
|
1818
|
+
vpcNetworks?: Record<string, {
|
|
1819
|
+
tunnelId: string;
|
|
1820
|
+
remote?: boolean | undefined;
|
|
1821
|
+
} | {
|
|
1822
|
+
networkId: string;
|
|
1823
|
+
remote?: boolean | undefined;
|
|
1824
|
+
}> | undefined;
|
|
1825
|
+
flagship?: Record<string, {
|
|
1826
|
+
appId: string;
|
|
1827
|
+
remote?: boolean | undefined;
|
|
1828
|
+
}> | undefined;
|
|
1345
1829
|
}, {
|
|
1346
1830
|
kv?: Record<string, string | {
|
|
1831
|
+
previewId?: string | undefined;
|
|
1832
|
+
remote?: boolean | undefined;
|
|
1347
1833
|
id: string;
|
|
1348
1834
|
} | {
|
|
1835
|
+
previewId?: string | undefined;
|
|
1836
|
+
remote?: boolean | undefined;
|
|
1349
1837
|
name: string;
|
|
1350
1838
|
}> | undefined;
|
|
1351
1839
|
d1?: Record<string, string | {
|
|
1840
|
+
previewDatabaseId?: string | undefined;
|
|
1841
|
+
migrationsTable?: string | undefined;
|
|
1842
|
+
migrationsDir?: string | undefined;
|
|
1843
|
+
remote?: boolean | undefined;
|
|
1352
1844
|
id: string;
|
|
1353
1845
|
} | {
|
|
1846
|
+
previewDatabaseId?: string | undefined;
|
|
1847
|
+
migrationsTable?: string | undefined;
|
|
1848
|
+
migrationsDir?: string | undefined;
|
|
1849
|
+
remote?: boolean | undefined;
|
|
1354
1850
|
name: string;
|
|
1355
1851
|
}> | undefined;
|
|
1356
|
-
r2?: Record<string, string
|
|
1852
|
+
r2?: Record<string, string | {
|
|
1853
|
+
bucketName: string;
|
|
1854
|
+
previewBucketName?: string | undefined;
|
|
1855
|
+
jurisdiction?: string | undefined;
|
|
1856
|
+
remote?: boolean | undefined;
|
|
1857
|
+
}> | undefined;
|
|
1357
1858
|
durableObjects?: Record<string, DurableObjectBindingInput> | undefined;
|
|
1358
1859
|
queues?: {
|
|
1359
|
-
producers?: Record<string, string
|
|
1860
|
+
producers?: Record<string, string | {
|
|
1861
|
+
queue: string;
|
|
1862
|
+
remote?: boolean | undefined;
|
|
1863
|
+
}> | undefined;
|
|
1360
1864
|
consumers?: {
|
|
1361
1865
|
queue: string;
|
|
1362
1866
|
maxBatchSize?: number | undefined;
|
|
@@ -1389,6 +1893,8 @@ export declare const bindingsSchema: z.ZodOptional<z.ZodObject<{
|
|
|
1389
1893
|
environment?: string;
|
|
1390
1894
|
/** Optional entrypoint class name for named exports */
|
|
1391
1895
|
entrypoint?: string;
|
|
1896
|
+
/** Ask Wrangler local development to connect this binding to the remote service */
|
|
1897
|
+
remote?: boolean;
|
|
1392
1898
|
/** @internal Reference marker for ref() bindings */
|
|
1393
1899
|
__ref?: unknown;
|
|
1394
1900
|
}> | undefined;
|
|
@@ -1469,6 +1975,24 @@ export declare const bindingsSchema: z.ZodOptional<z.ZodObject<{
|
|
|
1469
1975
|
namespace: string;
|
|
1470
1976
|
remote?: boolean | undefined;
|
|
1471
1977
|
}> | undefined;
|
|
1978
|
+
stream?: Record<string, true | {
|
|
1979
|
+
remote?: boolean | undefined;
|
|
1980
|
+
}> | undefined;
|
|
1981
|
+
vpcServices?: Record<string, {
|
|
1982
|
+
serviceId: string;
|
|
1983
|
+
remote?: boolean | undefined;
|
|
1984
|
+
}> | undefined;
|
|
1985
|
+
vpcNetworks?: Record<string, {
|
|
1986
|
+
tunnelId: string;
|
|
1987
|
+
remote?: boolean | undefined;
|
|
1988
|
+
} | {
|
|
1989
|
+
networkId: string;
|
|
1990
|
+
remote?: boolean | undefined;
|
|
1991
|
+
}> | undefined;
|
|
1992
|
+
flagship?: Record<string, {
|
|
1993
|
+
appId: string;
|
|
1994
|
+
remote?: boolean | undefined;
|
|
1995
|
+
}> | undefined;
|
|
1472
1996
|
}>>;
|
|
1473
1997
|
export type BrowserBindings = z.infer<typeof browserBindingSchema>;
|
|
1474
1998
|
export type BrowserBinding = z.infer<typeof browserBindingValueSchema>;
|
|
@@ -1476,6 +2000,8 @@ export type D1Binding = z.infer<typeof d1BindingSchema>;
|
|
|
1476
2000
|
export type DurableObjectBinding = z.infer<typeof durableObjectBindingSchema>;
|
|
1477
2001
|
export type HyperdriveBinding = z.infer<typeof hyperdriveBindingSchema>;
|
|
1478
2002
|
export type KVBinding = z.infer<typeof kvBindingSchema>;
|
|
2003
|
+
export type R2Binding = z.infer<typeof r2BindingSchema>;
|
|
2004
|
+
export type QueueProducer = z.infer<typeof queueProducerSchema>;
|
|
1479
2005
|
export type QueueConsumer = z.infer<typeof queueConsumerSchema>;
|
|
1480
2006
|
export type QueuesConfig = z.infer<typeof queuesConfigSchema>;
|
|
1481
2007
|
export type RateLimitBinding = z.infer<typeof rateLimitBindingSchema>;
|
|
@@ -1492,4 +2018,8 @@ export type PipelineBinding = z.infer<typeof pipelineBindingSchema>;
|
|
|
1492
2018
|
export type ImagesBinding = z.infer<typeof imagesBindingSchema>;
|
|
1493
2019
|
export type MediaBinding = z.infer<typeof mediaBindingSchema>;
|
|
1494
2020
|
export type ArtifactsBinding = z.infer<typeof artifactsBindingSchema>;
|
|
2021
|
+
export type StreamBinding = z.infer<typeof streamBindingSchema>;
|
|
2022
|
+
export type VpcServiceBinding = z.infer<typeof vpcServiceBindingSchema>;
|
|
2023
|
+
export type VpcNetworkBinding = z.infer<typeof vpcNetworkBindingSchema>;
|
|
2024
|
+
export type FlagshipBinding = z.infer<typeof flagshipBindingSchema>;
|
|
1495
2025
|
//# sourceMappingURL=schema-bindings.d.ts.map
|