wrangler 0.0.0-e5037b92a → 0.0.0-e51304ca0

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.
@@ -6,6 +6,7 @@
6
6
  "additionalProperties": false,
7
7
  "properties": {
8
8
  "binding": {
9
+ "description": "Name of `env` binding property in the User Worker.",
9
10
  "type": "string"
10
11
  },
11
12
  "directory": {
@@ -13,6 +14,7 @@
13
14
  "type": "string"
14
15
  },
15
16
  "html_handling": {
17
+ "description": "How to handle HTML requests.",
16
18
  "enum": [
17
19
  "auto-trailing-slash",
18
20
  "force-trailing-slash",
@@ -22,17 +24,19 @@
22
24
  "type": "string"
23
25
  },
24
26
  "not_found_handling": {
27
+ "description": "How to handle requests that do not match an asset.",
25
28
  "enum": [
26
29
  "single-page-application",
27
30
  "404-page",
28
31
  "none"
29
32
  ],
30
33
  "type": "string"
34
+ },
35
+ "run_worker_first": {
36
+ "description": "If true, route every request to the User Worker, whether or not it matches an asset. If false, then respond to requests that match an asset with that asset directly.",
37
+ "type": "boolean"
31
38
  }
32
39
  },
33
- "required": [
34
- "directory"
35
- ],
36
40
  "type": "object"
37
41
  },
38
42
  "CloudchamberConfig": {
@@ -71,50 +75,121 @@
71
75
  ],
72
76
  "type": "string"
73
77
  },
74
- "CustomDomainRoute": {
78
+ "ContainerApp": {
75
79
  "additionalProperties": false,
80
+ "description": "Configuration for a container application",
76
81
  "properties": {
77
- "custom_domain": {
78
- "type": "boolean"
82
+ "configuration": {
83
+ "additionalProperties": false,
84
+ "properties": {
85
+ "image": {
86
+ "type": "string"
87
+ },
88
+ "labels": {
89
+ "items": {
90
+ "additionalProperties": false,
91
+ "properties": {
92
+ "name": {
93
+ "type": "string"
94
+ },
95
+ "value": {
96
+ "type": "string"
97
+ }
98
+ },
99
+ "required": [
100
+ "name",
101
+ "value"
102
+ ],
103
+ "type": "object"
104
+ },
105
+ "type": "array"
106
+ },
107
+ "secrets": {
108
+ "items": {
109
+ "additionalProperties": false,
110
+ "properties": {
111
+ "name": {
112
+ "type": "string"
113
+ },
114
+ "secret": {
115
+ "type": "string"
116
+ },
117
+ "type": {
118
+ "const": "env",
119
+ "type": "string"
120
+ }
121
+ },
122
+ "required": [
123
+ "name",
124
+ "type",
125
+ "secret"
126
+ ],
127
+ "type": "object"
128
+ },
129
+ "type": "array"
130
+ }
131
+ },
132
+ "required": [
133
+ "image"
134
+ ],
135
+ "type": "object"
79
136
  },
80
- "pattern": {
137
+ "constraints": {
138
+ "additionalProperties": false,
139
+ "properties": {
140
+ "cities": {
141
+ "items": {
142
+ "type": "string"
143
+ },
144
+ "type": "array"
145
+ },
146
+ "regions": {
147
+ "items": {
148
+ "type": "string"
149
+ },
150
+ "type": "array"
151
+ },
152
+ "tier": {
153
+ "type": "number"
154
+ }
155
+ },
156
+ "type": "object"
157
+ },
158
+ "instances": {
159
+ "type": "number"
160
+ },
161
+ "name": {
162
+ "type": "string"
163
+ },
164
+ "scheduling_policy": {
165
+ "enum": [
166
+ "regional",
167
+ "moon"
168
+ ],
81
169
  "type": "string"
82
170
  }
83
171
  },
84
172
  "required": [
85
- "pattern",
86
- "custom_domain"
173
+ "name",
174
+ "instances",
175
+ "configuration"
87
176
  ],
88
177
  "type": "object"
89
178
  },
90
- "DeprecatedUpload": {
179
+ "CustomDomainRoute": {
91
180
  "additionalProperties": false,
92
- "description": "Deprecated upload configuration.",
93
181
  "properties": {
94
- "dir": {
95
- "deprecated": true,
96
- "description": "The directory you wish to upload your Worker from, relative to the wrangler.toml file.\n\nDefaults to the directory containing the wrangler.toml file.",
97
- "type": "string"
98
- },
99
- "format": {
100
- "deprecated": "We infer the format automatically now.",
101
- "description": "The format of the Worker script.",
102
- "enum": [
103
- "modules",
104
- "service-worker"
105
- ],
106
- "type": "string"
182
+ "custom_domain": {
183
+ "type": "boolean"
107
184
  },
108
- "main": {
109
- "deprecated": "This will be replaced by a command line argument.",
110
- "description": "The path to the Worker script, relative to `upload.dir`.",
185
+ "pattern": {
111
186
  "type": "string"
112
- },
113
- "rules": {
114
- "$ref": "#/definitions/Environment",
115
- "deprecated": "This is now defined at the top level `rules` field."
116
187
  }
117
188
  },
189
+ "required": [
190
+ "pattern",
191
+ "custom_domain"
192
+ ],
118
193
  "type": "object"
119
194
  },
120
195
  "DispatchNamespaceOutbound": {
@@ -210,842 +285,18 @@
210
285
  "required": [
211
286
  "from",
212
287
  "to"
213
- ],
214
- "type": "object"
215
- },
216
- "type": "array"
217
- },
218
- "tag": {
219
- "description": "A unique identifier for this migration.",
220
- "type": "string"
221
- }
222
- },
223
- "required": [
224
- "tag"
225
- ],
226
- "type": "object"
227
- },
228
- "Environment": {
229
- "additionalProperties": false,
230
- "description": "The `Environment` interface declares all the configuration fields that can be specified for an environment.\n\nThis could be the top-level default environment, or a specific named environment.",
231
- "properties": {
232
- "account_id": {
233
- "description": "This is the ID of the account associated with your zone. You might have more than one account, so make sure to use the ID of the account associated with the zone/route you provide, if you provide one. It can also be specified through the CLOUDFLARE_ACCOUNT_ID environment variable.",
234
- "type": "string"
235
- },
236
- "ai": {
237
- "additionalProperties": false,
238
- "default": "`{}`",
239
- "description": "Binding to the AI project.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
240
- "properties": {
241
- "binding": {
242
- "type": "string"
243
- },
244
- "staging": {
245
- "type": "boolean"
246
- }
247
- },
248
- "required": [
249
- "binding"
250
- ],
251
- "type": "object"
252
- },
253
- "analytics_engine_datasets": {
254
- "default": "`[]`",
255
- "description": "Specifies analytics engine datasets that are bound to this Worker environment.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
256
- "items": {
257
- "additionalProperties": false,
258
- "properties": {
259
- "binding": {
260
- "description": "The binding name used to refer to the dataset in the Worker.",
261
- "type": "string"
262
- },
263
- "dataset": {
264
- "description": "The name of this dataset to write to.",
265
- "type": "string"
266
- }
267
- },
268
- "required": [
269
- "binding"
270
- ],
271
- "type": "object"
272
- },
273
- "type": "array"
274
- },
275
- "assets": {
276
- "$ref": "#/definitions/Assets",
277
- "description": "Specify the directory of static assets to deploy/serve\n\nMore details at https://developers.cloudflare.com/workers/frameworks/"
278
- },
279
- "base_dir": {
280
- "description": "The directory in which module rules should be evaluated when including additional files into a Worker deployment. This defaults to the directory containing the `main` entry point of the Worker if not specified.",
281
- "type": "string"
282
- },
283
- "browser": {
284
- "additionalProperties": false,
285
- "default": "`{}`",
286
- "description": "A browser that will be usable from the Worker.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
287
- "properties": {
288
- "binding": {
289
- "type": "string"
290
- }
291
- },
292
- "required": [
293
- "binding"
294
- ],
295
- "type": "object"
296
- },
297
- "build": {
298
- "additionalProperties": false,
299
- "default": {
300
- "watch_dir": "./src"
301
- },
302
- "description": "Configures a custom build step to be run by Wrangler when building your Worker.\n\nRefer to the [custom builds documentation](https://developers.cloudflare.com/workers/cli-wrangler/configuration#build) for more details.",
303
- "properties": {
304
- "command": {
305
- "description": "The command used to build your Worker. On Linux and macOS, the command is executed in the `sh` shell and the `cmd` shell for Windows. The `&&` and `||` shell operators may be used.",
306
- "type": "string"
307
- },
308
- "cwd": {
309
- "description": "The directory in which the command is executed.",
310
- "type": "string"
311
- },
312
- "upload": {
313
- "$ref": "#/definitions/DeprecatedUpload",
314
- "deprecated": true,
315
- "description": "Deprecated field previously used to configure the build and upload of the script."
316
- },
317
- "watch_dir": {
318
- "anyOf": [
319
- {
320
- "type": "string"
321
- },
322
- {
323
- "items": {
324
- "type": "string"
325
- },
326
- "type": "array"
327
- }
328
- ],
329
- "description": "The directory to watch for changes while using wrangler dev, defaults to the current working directory"
330
- }
331
- },
332
- "type": "object"
333
- },
334
- "cloudchamber": {
335
- "$ref": "#/definitions/CloudchamberConfig",
336
- "default": "`{}`",
337
- "description": "Cloudchamber configuration\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment."
338
- },
339
- "compatibility_date": {
340
- "description": "A date in the form yyyy-mm-dd, which will be used to determine which version of the Workers runtime is used.\n\nMore details at https://developers.cloudflare.com/workers/platform/compatibility-dates",
341
- "type": "string"
342
- },
343
- "compatibility_flags": {
344
- "default": "`[]`",
345
- "description": "A list of flags that enable features from upcoming features of the Workers runtime, usually used together with compatibility_flags.\n\nMore details at https://developers.cloudflare.com/workers/platform/compatibility-dates",
346
- "items": {
347
- "type": "string"
348
- },
349
- "type": "array"
350
- },
351
- "d1_databases": {
352
- "default": "`[]`",
353
- "description": "Specifies D1 databases that are bound to this Worker environment.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
354
- "items": {
355
- "additionalProperties": false,
356
- "properties": {
357
- "binding": {
358
- "description": "The binding name used to refer to the D1 database in the Worker.",
359
- "type": "string"
360
- },
361
- "database_id": {
362
- "description": "The UUID of this D1 database (not required).",
363
- "type": "string"
364
- },
365
- "database_internal_env": {
366
- "description": "Internal use only.",
367
- "type": "string"
368
- },
369
- "database_name": {
370
- "description": "The name of this D1 database.",
371
- "type": "string"
372
- },
373
- "migrations_dir": {
374
- "description": "The path to the directory of migrations for this D1 database (defaults to './migrations').",
375
- "type": "string"
376
- },
377
- "migrations_table": {
378
- "description": "The name of the migrations table for this D1 database (defaults to 'd1_migrations').",
379
- "type": "string"
380
- },
381
- "preview_database_id": {
382
- "description": "The UUID of this D1 database for Wrangler Dev (if specified).",
383
- "type": "string"
384
- }
385
- },
386
- "required": [
387
- "binding",
388
- "database_name",
389
- "database_id"
390
- ],
391
- "type": "object"
392
- },
393
- "type": "array"
394
- },
395
- "define": {
396
- "additionalProperties": {
397
- "type": "string"
398
- },
399
- "default": "`{}`",
400
- "description": "A map of values to substitute when deploying your Worker.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
401
- "type": "object"
402
- },
403
- "dispatch_namespaces": {
404
- "default": "`[]`",
405
- "description": "Specifies namespace bindings that are bound to this Worker environment.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
406
- "items": {
407
- "additionalProperties": false,
408
- "properties": {
409
- "binding": {
410
- "description": "The binding name used to refer to the bound service.",
411
- "type": "string"
412
- },
413
- "namespace": {
414
- "description": "The namespace to bind to.",
415
- "type": "string"
416
- },
417
- "outbound": {
418
- "$ref": "#/definitions/DispatchNamespaceOutbound",
419
- "description": "Details about the outbound Worker which will handle outbound requests from your namespace"
420
- }
421
- },
422
- "required": [
423
- "binding",
424
- "namespace"
425
- ],
426
- "type": "object"
427
- },
428
- "type": "array"
429
- },
430
- "durable_objects": {
431
- "additionalProperties": false,
432
- "default": "`{bindings:[]}`",
433
- "description": "A list of durable objects that your Worker should be bound to.\n\nFor more information about Durable Objects, see the documentation at https://developers.cloudflare.com/workers/learning/using-durable-objects\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
434
- "properties": {
435
- "bindings": {
436
- "$ref": "#/definitions/DurableObjectBindings"
437
- }
438
- },
439
- "required": [
440
- "bindings"
441
- ],
442
- "type": "object"
443
- },
444
- "find_additional_modules": {
445
- "description": "If true then Wrangler will traverse the file tree below `base_dir`; Any files that match `rules` will be included in the deployed Worker. Defaults to true if `no_bundle` is true, otherwise false.",
446
- "type": "boolean"
447
- },
448
- "first_party_worker": {
449
- "description": "Designates this Worker as an internal-only \"first-party\" Worker.",
450
- "type": "boolean"
451
- },
452
- "hyperdrive": {
453
- "default": "`[]`",
454
- "description": "Specifies Hyperdrive configs that are bound to this Worker environment.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
455
- "items": {
456
- "additionalProperties": false,
457
- "properties": {
458
- "binding": {
459
- "description": "The binding name used to refer to the project in the Worker.",
460
- "type": "string"
461
- },
462
- "id": {
463
- "description": "The id of the database.",
464
- "type": "string"
465
- },
466
- "localConnectionString": {
467
- "description": "The local database connection string for `wrangler dev`",
468
- "type": "string"
469
- }
470
- },
471
- "required": [
472
- "binding",
473
- "id"
474
- ],
475
- "type": "object"
476
- },
477
- "type": "array"
478
- },
479
- "jsx_factory": {
480
- "default": "`\"React.createElement\"`",
481
- "description": "The function to use to replace jsx syntax.",
482
- "type": "string"
483
- },
484
- "jsx_fragment": {
485
- "default": "`\"React.Fragment\"`",
486
- "description": "The function to use to replace jsx fragment syntax.",
487
- "type": "string"
488
- },
489
- "kv_namespaces": {
490
- "default": "`[]`",
491
- "description": "These specify any Workers KV Namespaces you want to access from inside your Worker.\n\nTo learn more about KV Namespaces, see the documentation at https://developers.cloudflare.com/workers/learning/how-kv-works\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
492
- "items": {
493
- "additionalProperties": false,
494
- "properties": {
495
- "binding": {
496
- "description": "The binding name used to refer to the KV Namespace",
497
- "type": "string"
498
- },
499
- "id": {
500
- "description": "The ID of the KV namespace",
501
- "type": "string"
502
- },
503
- "preview_id": {
504
- "description": "The ID of the KV namespace used during `wrangler dev`",
505
- "type": "string"
506
- }
507
- },
508
- "required": [
509
- "binding",
510
- "id"
511
- ],
512
- "type": "object"
513
- },
514
- "type": "array"
515
- },
516
- "limits": {
517
- "$ref": "#/definitions/UserLimits",
518
- "description": "Specify limits for runtime behavior. Only supported for the \"standard\" Usage Model"
519
- },
520
- "logfwdr": {
521
- "additionalProperties": false,
522
- "default": "`{bindings:[]}`",
523
- "description": "List of bindings that you will send to logfwdr",
524
- "properties": {
525
- "bindings": {
526
- "items": {
527
- "additionalProperties": false,
528
- "properties": {
529
- "destination": {
530
- "description": "The destination for this logged message",
531
- "type": "string"
532
- },
533
- "name": {
534
- "description": "The binding name used to refer to logfwdr",
535
- "type": "string"
536
- }
537
- },
538
- "required": [
539
- "name",
540
- "destination"
541
- ],
542
- "type": "object"
543
- },
544
- "type": "array"
545
- }
546
- },
547
- "required": [
548
- "bindings"
549
- ],
550
- "type": "object"
551
- },
552
- "logpush": {
553
- "description": "Send Trace Events from this Worker to Workers Logpush.\n\nThis will not configure a corresponding Logpush job automatically.\n\nFor more information about Workers Logpush, see: https://blog.cloudflare.com/logpush-for-workers/",
554
- "type": "boolean"
555
- },
556
- "main": {
557
- "description": "The entrypoint/path to the JavaScript file that will be executed.",
558
- "type": "string"
559
- },
560
- "migrations": {
561
- "default": [],
562
- "description": "A list of migrations that should be uploaded with your Worker.\n\nThese define changes in your Durable Object declarations.\n\nMore details at https://developers.cloudflare.com/workers/learning/using-durable-objects#configuring-durable-object-classes-with-migrations",
563
- "items": {
564
- "$ref": "#/definitions/DurableObjectMigration"
565
- },
566
- "type": "array"
567
- },
568
- "minify": {
569
- "description": "Minify the script before uploading.",
570
- "type": "boolean"
571
- },
572
- "mtls_certificates": {
573
- "default": "`[]`",
574
- "description": "Specifies a list of mTLS certificates that are bound to this Worker environment.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
575
- "items": {
576
- "additionalProperties": false,
577
- "properties": {
578
- "binding": {
579
- "description": "The binding name used to refer to the certificate in the Worker",
580
- "type": "string"
581
- },
582
- "certificate_id": {
583
- "description": "The uuid of the uploaded mTLS certificate",
584
- "type": "string"
585
- }
586
- },
587
- "required": [
588
- "binding",
589
- "certificate_id"
590
- ],
591
- "type": "object"
592
- },
593
- "type": "array"
594
- },
595
- "name": {
596
- "description": "The name of your Worker. Alphanumeric + dashes only.",
597
- "type": "string"
598
- },
599
- "no_bundle": {
600
- "description": "Skip internal build steps and directly deploy script",
601
- "type": "boolean"
602
- },
603
- "node_compat": {
604
- "description": "Add polyfills for node builtin modules and globals",
605
- "type": "boolean"
606
- },
607
- "observability": {
608
- "$ref": "#/definitions/Observability",
609
- "description": "Specify the observability behavior of the Worker."
610
- },
611
- "pipelines": {
612
- "default": "`[]`",
613
- "description": "Specifies list of Pipelines bound to this Worker environment\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
614
- "items": {
615
- "additionalProperties": false,
616
- "properties": {
617
- "binding": {
618
- "description": "The binding name used to refer to the bound service.",
619
- "type": "string"
620
- },
621
- "pipeline": {
622
- "description": "Name of the Pipeline to bind",
623
- "type": "string"
624
- }
625
- },
626
- "required": [
627
- "binding",
628
- "pipeline"
629
- ],
630
- "type": "object"
631
- },
632
- "type": "array"
633
- },
634
- "placement": {
635
- "additionalProperties": false,
636
- "description": "Specify how the Worker should be located to minimize round-trip time.\n\nMore details: https://developers.cloudflare.com/workers/platform/smart-placement/",
637
- "properties": {
638
- "hint": {
639
- "type": "string"
640
- },
641
- "mode": {
642
- "enum": [
643
- "off",
644
- "smart"
645
- ],
646
- "type": "string"
647
- }
648
- },
649
- "required": [
650
- "mode"
651
- ],
652
- "type": "object"
653
- },
654
- "preserve_file_names": {
655
- "description": "Determines whether Wrangler will preserve bundled file names. Defaults to false. If left unset, files will be named using the pattern ${fileHash}-${basename}, for example, `34de60b44167af5c5a709e62a4e20c4f18c9e3b6-favicon.ico`.",
656
- "type": "boolean"
657
- },
658
- "queues": {
659
- "additionalProperties": false,
660
- "default": "`{consumers:[],producers:[]}`",
661
- "description": "Specifies Queues that are bound to this Worker environment.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
662
- "properties": {
663
- "consumers": {
664
- "description": "Consumer configuration",
665
- "items": {
666
- "additionalProperties": false,
667
- "properties": {
668
- "dead_letter_queue": {
669
- "description": "The queue to send messages that failed to be consumed.",
670
- "type": "string"
671
- },
672
- "max_batch_size": {
673
- "description": "The maximum number of messages per batch",
674
- "type": "number"
675
- },
676
- "max_batch_timeout": {
677
- "description": "The maximum number of seconds to wait to fill a batch with messages.",
678
- "type": "number"
679
- },
680
- "max_concurrency": {
681
- "description": "The maximum number of concurrent consumer Worker invocations. Leaving this unset will allow your consumer to scale to the maximum concurrency needed to keep up with the message backlog.",
682
- "type": [
683
- "number",
684
- "null"
685
- ]
686
- },
687
- "max_retries": {
688
- "description": "The maximum number of retries for each message.",
689
- "type": "number"
690
- },
691
- "queue": {
692
- "description": "The name of the queue from which this consumer should consume.",
693
- "type": "string"
694
- },
695
- "retry_delay": {
696
- "description": "The number of seconds to wait before retrying a message",
697
- "type": "number"
698
- },
699
- "type": {
700
- "description": "The consumer type, e.g., worker, http-pull, r2-bucket, etc. Default is worker.",
701
- "type": "string"
702
- },
703
- "visibility_timeout_ms": {
704
- "description": "The number of milliseconds to wait for pulled messages to become visible again",
705
- "type": "number"
706
- }
707
- },
708
- "required": [
709
- "queue"
710
- ],
711
- "type": "object"
712
- },
713
- "type": "array"
714
- },
715
- "producers": {
716
- "description": "Producer bindings",
717
- "items": {
718
- "additionalProperties": false,
719
- "properties": {
720
- "binding": {
721
- "description": "The binding name used to refer to the Queue in the Worker.",
722
- "type": "string"
723
- },
724
- "delivery_delay": {
725
- "description": "The number of seconds to wait before delivering a message",
726
- "type": "number"
727
- },
728
- "queue": {
729
- "description": "The name of this Queue.",
730
- "type": "string"
731
- }
732
- },
733
- "required": [
734
- "binding",
735
- "queue"
736
- ],
737
- "type": "object"
738
- },
739
- "type": "array"
740
- }
741
- },
742
- "type": "object"
743
- },
744
- "r2_buckets": {
745
- "default": "`[]`",
746
- "description": "Specifies R2 buckets that are bound to this Worker environment.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
747
- "items": {
748
- "additionalProperties": false,
749
- "properties": {
750
- "binding": {
751
- "description": "The binding name used to refer to the R2 bucket in the Worker.",
752
- "type": "string"
753
- },
754
- "bucket_name": {
755
- "description": "The name of this R2 bucket at the edge.",
756
- "type": "string"
757
- },
758
- "jurisdiction": {
759
- "description": "The jurisdiction that the bucket exists in. Default if not present.",
760
- "type": "string"
761
- },
762
- "preview_bucket_name": {
763
- "description": "The preview name of this R2 bucket at the edge.",
764
- "type": "string"
765
- }
766
- },
767
- "required": [
768
- "binding",
769
- "bucket_name"
770
- ],
771
- "type": "object"
772
- },
773
- "type": "array"
774
- },
775
- "route": {
776
- "$ref": "#/definitions/Route",
777
- "description": "A route that your Worker should be published to. Literally the same as routes, but only one. Only one of `routes` or `route` is required.\n\nOnly required when workers_dev is false, and there's no scheduled Worker"
778
- },
779
- "routes": {
780
- "description": "A list of routes that your Worker should be published to. Only one of `routes` or `route` is required.\n\nOnly required when workers_dev is false, and there's no scheduled Worker (see `triggers`)",
781
- "items": {
782
- "$ref": "#/definitions/Route"
783
- },
784
- "type": "array"
785
- },
786
- "rules": {
787
- "description": "An ordered list of rules that define which modules to import, and what type to import them as. You will need to specify rules to use Text, Data, and CompiledWasm modules, or when you wish to have a .js file be treated as an ESModule instead of CommonJS.",
788
- "items": {
789
- "$ref": "#/definitions/Rule"
790
- },
791
- "type": "array"
792
- },
793
- "send_email": {
794
- "default": "`[]`",
795
- "description": "These specify bindings to send email from inside your Worker.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
796
- "items": {
797
- "additionalProperties": false,
798
- "properties": {
799
- "allowed_destination_addresses": {
800
- "description": "If this binding should be restricted to a set of verified addresses",
801
- "items": {
802
- "type": "string"
803
- },
804
- "type": "array"
805
- },
806
- "destination_address": {
807
- "description": "If this binding should be restricted to a specific verified address",
808
- "type": "string"
809
- },
810
- "name": {
811
- "description": "The binding name used to refer to the this binding",
812
- "type": "string"
813
- }
814
- },
815
- "required": [
816
- "name"
817
- ],
818
- "type": "object"
819
- },
820
- "type": "array"
821
- },
822
- "services": {
823
- "default": "`[]`",
824
- "description": "Specifies service bindings (Worker-to-Worker) that are bound to this Worker environment.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
825
- "items": {
826
- "additionalProperties": false,
827
- "properties": {
828
- "binding": {
829
- "description": "The binding name used to refer to the bound service.",
830
- "type": "string"
831
- },
832
- "entrypoint": {
833
- "description": "Optionally, the entrypoint (named export) of the service to bind to.",
834
- "type": "string"
835
- },
836
- "environment": {
837
- "description": "The environment of the service (e.g. production, staging, etc).",
838
- "type": "string"
839
- },
840
- "service": {
841
- "description": "The name of the service.",
842
- "type": "string"
843
- }
844
- },
845
- "required": [
846
- "binding",
847
- "service"
848
- ],
849
- "type": "object"
850
- },
851
- "type": "array"
852
- },
853
- "tail_consumers": {
854
- "default": "`[]`",
855
- "description": "Specifies a list of Tail Workers that are bound to this Worker environment\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
856
- "items": {
857
- "$ref": "#/definitions/TailConsumer"
858
- },
859
- "type": "array"
860
- },
861
- "triggers": {
862
- "additionalProperties": false,
863
- "default": "`{crons:[]}`",
864
- "description": "\"Cron\" definitions to trigger a Worker's \"scheduled\" function.\n\nLets you call Workers periodically, much like a cron job.\n\nMore details here https://developers.cloudflare.com/workers/platform/cron-triggers",
865
- "properties": {
866
- "crons": {
867
- "items": {
868
- "type": "string"
869
- },
870
- "type": "array"
871
- }
872
- },
873
- "required": [
874
- "crons"
875
- ],
876
- "type": "object"
877
- },
878
- "tsconfig": {
879
- "description": "Path to a custom tsconfig",
880
- "type": "string"
881
- },
882
- "unsafe": {
883
- "additionalProperties": false,
884
- "default": "`{}`",
885
- "description": "\"Unsafe\" tables for features that aren't directly supported by wrangler.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
886
- "properties": {
887
- "bindings": {
888
- "description": "A set of bindings that should be put into a Worker's upload metadata without changes. These can be used to implement bindings for features that haven't released and aren't supported directly by wrangler or miniflare.",
889
- "items": {
890
- "additionalProperties": {},
891
- "properties": {
892
- "name": {
893
- "type": "string"
894
- },
895
- "type": {
896
- "type": "string"
897
- }
898
- },
899
- "required": [
900
- "name",
901
- "type"
902
- ],
903
- "type": "object"
904
- },
905
- "type": "array"
906
- },
907
- "capnp": {
908
- "anyOf": [
909
- {
910
- "additionalProperties": false,
911
- "properties": {
912
- "base_path": {
913
- "type": "string"
914
- },
915
- "source_schemas": {
916
- "items": {
917
- "type": "string"
918
- },
919
- "type": "array"
920
- }
921
- },
922
- "required": [
923
- "base_path",
924
- "source_schemas"
925
- ],
926
- "type": "object"
927
- },
928
- {
929
- "additionalProperties": false,
930
- "properties": {
931
- "compiled_schema": {
932
- "type": "string"
933
- }
934
- },
935
- "required": [
936
- "compiled_schema"
937
- ],
938
- "type": "object"
939
- }
940
- ],
941
- "description": "Used for internal capnp uploads for the Workers runtime"
942
- },
943
- "metadata": {
944
- "additionalProperties": {},
945
- "description": "Arbitrary key/value pairs that will be included in the uploaded metadata. Values specified here will always be applied to metadata last, so can add new or override existing fields.",
946
- "type": "object"
947
- }
948
- },
949
- "type": "object"
950
- },
951
- "upload_source_maps": {
952
- "description": "Include source maps when uploading this worker.",
953
- "type": "boolean"
954
- },
955
- "usage_model": {
956
- "description": "Specifies the Usage Model for your Worker. There are two options - [bundled](https://developers.cloudflare.com/workers/platform/limits#bundled-usage-model) and [unbound](https://developers.cloudflare.com/workers/platform/limits#unbound-usage-model). For newly created Workers, if the Usage Model is omitted it will be set to the [default Usage Model set on the account](https://dash.cloudflare.com/?account=workers/default-usage-model). For existing Workers, if the Usage Model is omitted, it will be set to the Usage Model configured in the dashboard for that Worker.",
957
- "enum": [
958
- "bundled",
959
- "unbound"
960
- ],
961
- "type": "string"
962
- },
963
- "vars": {
964
- "additionalProperties": {
965
- "anyOf": [
966
- {
967
- "type": "string"
968
- },
969
- {
970
- "$ref": "#/definitions/Json"
971
- }
972
- ]
973
- },
974
- "default": "`{}`",
975
- "description": "A map of environment variables to set when deploying your Worker.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
976
- "type": "object"
977
- },
978
- "vectorize": {
979
- "default": "`[]`",
980
- "description": "Specifies Vectorize indexes that are bound to this Worker environment.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
981
- "items": {
982
- "additionalProperties": false,
983
- "properties": {
984
- "binding": {
985
- "description": "The binding name used to refer to the Vectorize index in the Worker.",
986
- "type": "string"
987
- },
988
- "index_name": {
989
- "description": "The name of the index.",
990
- "type": "string"
991
- }
992
- },
993
- "required": [
994
- "binding",
995
- "index_name"
996
- ],
997
- "type": "object"
998
- },
999
- "type": "array"
1000
- },
1001
- "version_metadata": {
1002
- "additionalProperties": false,
1003
- "description": "Binding to the Worker Version's metadata",
1004
- "properties": {
1005
- "binding": {
1006
- "type": "string"
1007
- }
1008
- },
1009
- "required": [
1010
- "binding"
1011
- ],
1012
- "type": "object"
1013
- },
1014
- "workers_dev": {
1015
- "default": "`true` (This is a breaking change from Wrangler v1)",
1016
- "description": "Whether we use <name>.<subdomain>.workers.dev to test and deploy your Worker.\n\n// Carmen according to our tests the default is undefined // warning: you must force \"workers_dev: true\" in tests to match expected behavior",
1017
- "type": "boolean"
288
+ ],
289
+ "type": "object"
290
+ },
291
+ "type": "array"
1018
292
  },
1019
- "zone_id": {
1020
- "description": "TODO: remove this as it has been deprecated.\n\nThis is just here for now because the `route` commands use it. So we need to include it in this type so it is available.",
293
+ "tag": {
294
+ "description": "A unique identifier for this migration.",
1021
295
  "type": "string"
1022
296
  }
1023
297
  },
1024
298
  "required": [
1025
- "analytics_engine_datasets",
1026
- "build",
1027
- "cloudchamber",
1028
- "compatibility_flags",
1029
- "d1_databases",
1030
- "define",
1031
- "dispatch_namespaces",
1032
- "durable_objects",
1033
- "hyperdrive",
1034
- "jsx_factory",
1035
- "jsx_fragment",
1036
- "kv_namespaces",
1037
- "logfwdr",
1038
- "migrations",
1039
- "mtls_certificates",
1040
- "pipelines",
1041
- "queues",
1042
- "r2_buckets",
1043
- "rules",
1044
- "send_email",
1045
- "triggers",
1046
- "unsafe",
1047
- "vars",
1048
- "vectorize"
299
+ "tag"
1049
300
  ],
1050
301
  "type": "object"
1051
302
  },
@@ -1081,11 +332,25 @@
1081
332
  "head_sampling_rate": {
1082
333
  "description": "The sampling rate",
1083
334
  "type": "number"
335
+ },
336
+ "logs": {
337
+ "additionalProperties": false,
338
+ "properties": {
339
+ "enabled": {
340
+ "type": "boolean"
341
+ },
342
+ "head_sampling_rate": {
343
+ "description": "The sampling rate",
344
+ "type": "number"
345
+ },
346
+ "invocation_logs": {
347
+ "description": "Set to false to disable invocation logs",
348
+ "type": "boolean"
349
+ }
350
+ },
351
+ "type": "object"
1084
352
  }
1085
353
  },
1086
- "required": [
1087
- "enabled"
1088
- ],
1089
354
  "type": "object"
1090
355
  },
1091
356
  "RawConfig": {
@@ -1100,7 +365,7 @@
1100
365
  },
1101
366
  "ai": {
1102
367
  "additionalProperties": false,
1103
- "default": "`{}`",
368
+ "default": {},
1104
369
  "description": "Binding to the AI project.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
1105
370
  "properties": {
1106
371
  "binding": {
@@ -1123,7 +388,7 @@
1123
388
  "type": "object"
1124
389
  },
1125
390
  "analytics_engine_datasets": {
1126
- "default": "`[]`",
391
+ "default": [],
1127
392
  "description": "Specifies analytics engine datasets that are bound to this Worker environment.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
1128
393
  "items": {
1129
394
  "additionalProperties": false,
@@ -1154,7 +419,7 @@
1154
419
  },
1155
420
  "browser": {
1156
421
  "additionalProperties": false,
1157
- "default": "`{}`",
422
+ "default": {},
1158
423
  "description": "A browser that will be usable from the Worker.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
1159
424
  "properties": {
1160
425
  "binding": {
@@ -1181,11 +446,6 @@
1181
446
  "description": "The directory in which the command is executed.",
1182
447
  "type": "string"
1183
448
  },
1184
- "upload": {
1185
- "$ref": "#/definitions/DeprecatedUpload",
1186
- "deprecated": true,
1187
- "description": "Deprecated field previously used to configure the build and upload of the script."
1188
- },
1189
449
  "watch_dir": {
1190
450
  "anyOf": [
1191
451
  {
@@ -1205,7 +465,7 @@
1205
465
  },
1206
466
  "cloudchamber": {
1207
467
  "$ref": "#/definitions/CloudchamberConfig",
1208
- "default": "`{}`",
468
+ "default": {},
1209
469
  "description": "Cloudchamber configuration\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment."
1210
470
  },
1211
471
  "compatibility_date": {
@@ -1213,18 +473,33 @@
1213
473
  "type": "string"
1214
474
  },
1215
475
  "compatibility_flags": {
1216
- "default": "`[]`",
1217
- "description": "A list of flags that enable features from upcoming features of the Workers runtime, usually used together with compatibility_flags.\n\nMore details at https://developers.cloudflare.com/workers/platform/compatibility-dates",
476
+ "default": [],
477
+ "description": "A list of flags that enable features from upcoming features of the Workers runtime, usually used together with compatibility_date.\n\nMore details at https://developers.cloudflare.com/workers/platform/compatibility-flags",
1218
478
  "items": {
1219
479
  "type": "string"
1220
480
  },
1221
481
  "type": "array"
1222
482
  },
1223
- "configPath": {
1224
- "type": "string"
483
+ "containers": {
484
+ "additionalProperties": false,
485
+ "description": "Container related configuration",
486
+ "properties": {
487
+ "app": {
488
+ "default": {},
489
+ "description": "Container app configuration\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
490
+ "items": {
491
+ "$ref": "#/definitions/ContainerApp"
492
+ },
493
+ "type": "array"
494
+ }
495
+ },
496
+ "required": [
497
+ "app"
498
+ ],
499
+ "type": "object"
1225
500
  },
1226
501
  "d1_databases": {
1227
- "default": "`[]`",
502
+ "default": [],
1228
503
  "description": "Specifies D1 databases that are bound to this Worker environment.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
1229
504
  "items": {
1230
505
  "additionalProperties": false,
@@ -1259,9 +534,7 @@
1259
534
  }
1260
535
  },
1261
536
  "required": [
1262
- "binding",
1263
- "database_name",
1264
- "database_id"
537
+ "binding"
1265
538
  ],
1266
539
  "type": "object"
1267
540
  },
@@ -1278,7 +551,7 @@
1278
551
  "additionalProperties": {
1279
552
  "type": "string"
1280
553
  },
1281
- "default": "`{}`",
554
+ "default": {},
1282
555
  "description": "A map of values to substitute when deploying your Worker.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
1283
556
  "type": "object"
1284
557
  },
@@ -1287,7 +560,7 @@
1287
560
  "description": "Options to configure the development server that your worker will use."
1288
561
  },
1289
562
  "dispatch_namespaces": {
1290
- "default": "`[]`",
563
+ "default": [],
1291
564
  "description": "Specifies namespace bindings that are bound to this Worker environment.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
1292
565
  "items": {
1293
566
  "additionalProperties": false,
@@ -1315,7 +588,9 @@
1315
588
  },
1316
589
  "durable_objects": {
1317
590
  "additionalProperties": false,
1318
- "default": "`{bindings:[]}`",
591
+ "default": {
592
+ "bindings": []
593
+ },
1319
594
  "description": "A list of durable objects that your Worker should be bound to.\n\nFor more information about Durable Objects, see the documentation at https://developers.cloudflare.com/workers/learning/using-durable-objects\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
1320
595
  "properties": {
1321
596
  "bindings": {
@@ -1335,35 +610,6 @@
1335
610
  "description": "The `env` section defines overrides for the configuration for different environments.\n\nAll environment fields can be specified at the top level of the config indicating the default environment settings.\n\n- Some fields are inherited and overridable in each environment.\n- But some are not inherited and must be explicitly specified in every environment, if they are specified at the top level.\n\nFor more information, see the documentation at https://developers.cloudflare.com/workers/cli-wrangler/configuration#environments",
1336
611
  "type": "object"
1337
612
  },
1338
- "experimental_services": {
1339
- "default": "`[]`",
1340
- "deprecated": "DO NOT USE. We'd added this to test the new service binding system, but the proper way to test experimental features is to use `unsafe.bindings` configuration.",
1341
- "description": "A list of services that your Worker should be bound to.",
1342
- "items": {
1343
- "additionalProperties": false,
1344
- "properties": {
1345
- "environment": {
1346
- "description": "The Service's environment",
1347
- "type": "string"
1348
- },
1349
- "name": {
1350
- "description": "The binding name used to refer to the Service",
1351
- "type": "string"
1352
- },
1353
- "service": {
1354
- "description": "The name of the Service being bound",
1355
- "type": "string"
1356
- }
1357
- },
1358
- "required": [
1359
- "name",
1360
- "service",
1361
- "environment"
1362
- ],
1363
- "type": "object"
1364
- },
1365
- "type": "array"
1366
- },
1367
613
  "find_additional_modules": {
1368
614
  "description": "If true then Wrangler will traverse the file tree below `base_dir`; Any files that match `rules` will be included in the deployed Worker. Defaults to true if `no_bundle` is true, otherwise false.",
1369
615
  "type": "boolean"
@@ -1373,7 +619,7 @@
1373
619
  "type": "boolean"
1374
620
  },
1375
621
  "hyperdrive": {
1376
- "default": "`[]`",
622
+ "default": [],
1377
623
  "description": "Specifies Hyperdrive configs that are bound to this Worker environment.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
1378
624
  "items": {
1379
625
  "additionalProperties": false,
@@ -1399,28 +645,37 @@
1399
645
  },
1400
646
  "type": "array"
1401
647
  },
648
+ "images": {
649
+ "additionalProperties": false,
650
+ "default": {},
651
+ "description": "Binding to Cloudflare Images\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
652
+ "properties": {
653
+ "binding": {
654
+ "type": "string"
655
+ }
656
+ },
657
+ "required": [
658
+ "binding"
659
+ ],
660
+ "type": "object"
661
+ },
1402
662
  "jsx_factory": {
1403
- "default": "`\"React.createElement\"`",
663
+ "default": "React.createElement",
1404
664
  "description": "The function to use to replace jsx syntax.",
1405
665
  "type": "string"
1406
666
  },
1407
667
  "jsx_fragment": {
1408
- "default": "`\"React.Fragment\"`",
668
+ "default": "React.Fragment",
1409
669
  "description": "The function to use to replace jsx fragment syntax.",
1410
670
  "type": "string"
1411
671
  },
1412
672
  "keep_vars": {
1413
673
  "default": false,
1414
- "description": "By default, wrangler.toml is the source of truth for your environment configuration, like a terraform file.\n\nIf you change your vars in the dashboard, wrangler *will* override/delete them on its next deploy.\n\nIf you want to keep your dashboard vars when wrangler deploys, set this field to true.",
674
+ "description": "By default, the Wrangler configuration file is the source of truth for your environment configuration, like a terraform file.\n\nIf you change your vars in the dashboard, wrangler *will* override/delete them on its next deploy.\n\nIf you want to keep your dashboard vars when wrangler deploys, set this field to true.",
1415
675
  "type": "boolean"
1416
676
  },
1417
- "kv-namespaces": {
1418
- "deprecated": "DO NOT USE. This was a legacy bug from Wrangler v1, that we do not want to support.",
1419
- "description": "Legacy way of defining KVNamespaces that is no longer supported.",
1420
- "type": "string"
1421
- },
1422
677
  "kv_namespaces": {
1423
- "default": "`[]`",
678
+ "default": [],
1424
679
  "description": "These specify any Workers KV Namespaces you want to access from inside your Worker.\n\nTo learn more about KV Namespaces, see the documentation at https://developers.cloudflare.com/workers/learning/how-kv-works\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
1425
680
  "items": {
1426
681
  "additionalProperties": false,
@@ -1439,54 +694,12 @@
1439
694
  }
1440
695
  },
1441
696
  "required": [
1442
- "binding",
1443
- "id"
697
+ "binding"
1444
698
  ],
1445
699
  "type": "object"
1446
700
  },
1447
701
  "type": "array"
1448
702
  },
1449
- "legacy_assets": {
1450
- "anyOf": [
1451
- {
1452
- "additionalProperties": false,
1453
- "properties": {
1454
- "browser_TTL": {
1455
- "type": "number"
1456
- },
1457
- "bucket": {
1458
- "type": "string"
1459
- },
1460
- "exclude": {
1461
- "items": {
1462
- "type": "string"
1463
- },
1464
- "type": "array"
1465
- },
1466
- "include": {
1467
- "items": {
1468
- "type": "string"
1469
- },
1470
- "type": "array"
1471
- },
1472
- "serve_single_page_app": {
1473
- "type": "boolean"
1474
- }
1475
- },
1476
- "required": [
1477
- "bucket",
1478
- "include",
1479
- "exclude",
1480
- "serve_single_page_app"
1481
- ],
1482
- "type": "object"
1483
- },
1484
- {
1485
- "type": "string"
1486
- }
1487
- ],
1488
- "description": "Old behaviour of serving a folder of static assets with your Worker, without any additional code. This can either be a string, or an object with additional config fields. Will be deprecated in the near future in favor of `assets`."
1489
- },
1490
703
  "legacy_env": {
1491
704
  "description": "A boolean to enable \"legacy\" style wrangler environments (from Wrangler v1). These have been superseded by Services, but there may be projects that won't (or can't) use them. If you're using a legacy environment, you can set this to `true` to enable it.",
1492
705
  "type": "boolean"
@@ -1497,7 +710,9 @@
1497
710
  },
1498
711
  "logfwdr": {
1499
712
  "additionalProperties": false,
1500
- "default": "`{bindings:[]}`",
713
+ "default": {
714
+ "bindings": []
715
+ },
1501
716
  "description": "List of bindings that you will send to logfwdr",
1502
717
  "properties": {
1503
718
  "bindings": {
@@ -1543,16 +758,12 @@
1543
758
  },
1544
759
  "type": "array"
1545
760
  },
1546
- "miniflare": {
1547
- "deprecated": true,
1548
- "description": "Configuration only used by a standalone use of the miniflare binary."
1549
- },
1550
761
  "minify": {
1551
762
  "description": "Minify the script before uploading.",
1552
763
  "type": "boolean"
1553
764
  },
1554
765
  "mtls_certificates": {
1555
- "default": "`[]`",
766
+ "default": [],
1556
767
  "description": "Specifies a list of mTLS certificates that are bound to this Worker environment.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
1557
768
  "items": {
1558
769
  "additionalProperties": false,
@@ -1582,20 +793,16 @@
1582
793
  "description": "Skip internal build steps and directly deploy script",
1583
794
  "type": "boolean"
1584
795
  },
1585
- "node_compat": {
1586
- "description": "Add polyfills for node builtin modules and globals",
1587
- "type": "boolean"
1588
- },
1589
796
  "observability": {
1590
797
  "$ref": "#/definitions/Observability",
1591
798
  "description": "Specify the observability behavior of the Worker."
1592
799
  },
1593
800
  "pages_build_output_dir": {
1594
- "description": "The directory of static assets to serve.\n\nThe presence of this field in `wrangler.toml` indicates a Pages project, and will prompt the handling of the configuration file according to the Pages-specific validation rules.",
801
+ "description": "The directory of static assets to serve.\n\nThe presence of this field in a Wrangler configuration file indicates a Pages project, and will prompt the handling of the configuration file according to the Pages-specific validation rules.",
1595
802
  "type": "string"
1596
803
  },
1597
804
  "pipelines": {
1598
- "default": "`[]`",
805
+ "default": [],
1599
806
  "description": "Specifies list of Pipelines bound to this Worker environment\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
1600
807
  "items": {
1601
808
  "additionalProperties": false,
@@ -1641,9 +848,17 @@
1641
848
  "description": "Determines whether Wrangler will preserve bundled file names. Defaults to false. If left unset, files will be named using the pattern ${fileHash}-${basename}, for example, `34de60b44167af5c5a709e62a4e20c4f18c9e3b6-favicon.ico`.",
1642
849
  "type": "boolean"
1643
850
  },
851
+ "preview_urls": {
852
+ "default": true,
853
+ "description": "Whether we use <version>-<name>.<subdomain>.workers.dev to serve Preview URLs for your Worker.",
854
+ "type": "boolean"
855
+ },
1644
856
  "queues": {
1645
857
  "additionalProperties": false,
1646
- "default": "`{consumers:[],producers:[]}`",
858
+ "default": {
859
+ "consumers": [],
860
+ "producers": []
861
+ },
1647
862
  "description": "Specifies Queues that are bound to this Worker environment.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
1648
863
  "properties": {
1649
864
  "consumers": {
@@ -1728,7 +943,7 @@
1728
943
  "type": "object"
1729
944
  },
1730
945
  "r2_buckets": {
1731
- "default": "`[]`",
946
+ "default": [],
1732
947
  "description": "Specifies R2 buckets that are bound to this Worker environment.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
1733
948
  "items": {
1734
949
  "additionalProperties": false,
@@ -1751,8 +966,7 @@
1751
966
  }
1752
967
  },
1753
968
  "required": [
1754
- "binding",
1755
- "bucket_name"
969
+ "binding"
1756
970
  ],
1757
971
  "type": "object"
1758
972
  },
@@ -1777,7 +991,7 @@
1777
991
  "type": "array"
1778
992
  },
1779
993
  "send_email": {
1780
- "default": "`[]`",
994
+ "default": [],
1781
995
  "description": "These specify bindings to send email from inside your Worker.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
1782
996
  "items": {
1783
997
  "additionalProperties": false,
@@ -1810,7 +1024,7 @@
1810
1024
  "type": "boolean"
1811
1025
  },
1812
1026
  "services": {
1813
- "default": "`[]`",
1027
+ "default": [],
1814
1028
  "description": "Specifies service bindings (Worker-to-Worker) that are bound to this Worker environment.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
1815
1029
  "items": {
1816
1030
  "additionalProperties": false,
@@ -1845,7 +1059,7 @@
1845
1059
  "description": "The definition of a Worker Site, a feature that lets you upload static assets with your Worker.\n\nMore details at https://developers.cloudflare.com/workers/platform/sites",
1846
1060
  "properties": {
1847
1061
  "bucket": {
1848
- "description": "The directory containing your static assets.\n\nIt must be a path relative to your wrangler.toml file. Example: bucket = \"./public\"\n\nIf there is a `site` field then it must contain this `bucket` field.",
1062
+ "description": "The directory containing your static assets.\n\nIt must be a path relative to your Wrangler configuration file. Example: bucket = \"./public\"\n\nIf there is a `site` field then it must contain this `bucket` field.",
1849
1063
  "type": "string"
1850
1064
  },
1851
1065
  "entry-point": {
@@ -1876,7 +1090,7 @@
1876
1090
  "type": "object"
1877
1091
  },
1878
1092
  "tail_consumers": {
1879
- "default": "`[]`",
1093
+ "default": [],
1880
1094
  "description": "Specifies a list of Tail Workers that are bound to this Worker environment\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
1881
1095
  "items": {
1882
1096
  "$ref": "#/definitions/TailConsumer"
@@ -1892,7 +1106,9 @@
1892
1106
  },
1893
1107
  "triggers": {
1894
1108
  "additionalProperties": false,
1895
- "default": "`{crons:[]}`",
1109
+ "default": {
1110
+ "crons": []
1111
+ },
1896
1112
  "description": "\"Cron\" definitions to trigger a Worker's \"scheduled\" function.\n\nLets you call Workers periodically, much like a cron job.\n\nMore details here https://developers.cloudflare.com/workers/platform/cron-triggers",
1897
1113
  "properties": {
1898
1114
  "crons": {
@@ -1911,19 +1127,9 @@
1911
1127
  "description": "Path to a custom tsconfig",
1912
1128
  "type": "string"
1913
1129
  },
1914
- "type": {
1915
- "deprecated": "DO NOT USE THIS. Most common features now work out of the box with wrangler, including modules, jsx, typescript, etc. If you need anything more, use a custom build.",
1916
- "description": "The project \"type\". A holdover from Wrangler v1.x. Valid values were \"webpack\", \"javascript\", and \"rust\".",
1917
- "enum": [
1918
- "webpack",
1919
- "javascript",
1920
- "rust"
1921
- ],
1922
- "type": "string"
1923
- },
1924
1130
  "unsafe": {
1925
1131
  "additionalProperties": false,
1926
- "default": "`{}`",
1132
+ "default": {},
1927
1133
  "description": "\"Unsafe\" tables for features that aren't directly supported by wrangler.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
1928
1134
  "properties": {
1929
1135
  "bindings": {
@@ -1994,14 +1200,6 @@
1994
1200
  "description": "Include source maps when uploading this worker.",
1995
1201
  "type": "boolean"
1996
1202
  },
1997
- "usage_model": {
1998
- "description": "Specifies the Usage Model for your Worker. There are two options - [bundled](https://developers.cloudflare.com/workers/platform/limits#bundled-usage-model) and [unbound](https://developers.cloudflare.com/workers/platform/limits#unbound-usage-model). For newly created Workers, if the Usage Model is omitted it will be set to the [default Usage Model set on the account](https://dash.cloudflare.com/?account=workers/default-usage-model). For existing Workers, if the Usage Model is omitted, it will be set to the Usage Model configured in the dashboard for that Worker.",
1999
- "enum": [
2000
- "bundled",
2001
- "unbound"
2002
- ],
2003
- "type": "string"
2004
- },
2005
1203
  "vars": {
2006
1204
  "additionalProperties": {
2007
1205
  "anyOf": [
@@ -2013,12 +1211,12 @@
2013
1211
  }
2014
1212
  ]
2015
1213
  },
2016
- "default": "`{}`",
1214
+ "default": {},
2017
1215
  "description": "A map of environment variables to set when deploying your Worker.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
2018
1216
  "type": "object"
2019
1217
  },
2020
1218
  "vectorize": {
2021
- "default": "`[]`",
1219
+ "default": [],
2022
1220
  "description": "Specifies Vectorize indexes that are bound to this Worker environment.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
2023
1221
  "items": {
2024
1222
  "additionalProperties": false,
@@ -2060,19 +1258,18 @@
2060
1258
  "description": "A list of wasm modules that your worker should be bound to. This is the \"legacy\" way of binding to a wasm module. ES module workers should do proper module imports.",
2061
1259
  "type": "object"
2062
1260
  },
2063
- "webpack_config": {
2064
- "deprecated": "DO NOT USE THIS. Most common features now work out of the box with wrangler, including modules, jsx, typescript, etc. If you need anything more, use a custom build.",
2065
- "description": "Path to the webpack config to use when building your worker. A holdover from Wrangler v1.x, used with `type: \"webpack\"`.",
2066
- "type": "string"
2067
- },
2068
1261
  "workers_dev": {
2069
- "default": "`true` (This is a breaking change from Wrangler v1)",
2070
- "description": "Whether we use <name>.<subdomain>.workers.dev to test and deploy your Worker.\n\n// Carmen according to our tests the default is undefined // warning: you must force \"workers_dev: true\" in tests to match expected behavior",
1262
+ "default": true,
1263
+ "description": "Whether we use <name>.<subdomain>.workers.dev to test and deploy your Worker.",
2071
1264
  "type": "boolean"
2072
1265
  },
2073
- "zone_id": {
2074
- "description": "TODO: remove this as it has been deprecated.\n\nThis is just here for now because the `route` commands use it. So we need to include it in this type so it is available.",
2075
- "type": "string"
1266
+ "workflows": {
1267
+ "default": [],
1268
+ "description": "A list of workflows that your Worker should be bound to.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
1269
+ "items": {
1270
+ "$ref": "#/definitions/WorkflowBinding"
1271
+ },
1272
+ "type": "array"
2076
1273
  }
2077
1274
  },
2078
1275
  "type": "object"
@@ -2130,7 +1327,7 @@
2130
1327
  },
2131
1328
  "ai": {
2132
1329
  "additionalProperties": false,
2133
- "default": "`{}`",
1330
+ "default": {},
2134
1331
  "description": "Binding to the AI project.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
2135
1332
  "properties": {
2136
1333
  "binding": {
@@ -2146,7 +1343,7 @@
2146
1343
  "type": "object"
2147
1344
  },
2148
1345
  "analytics_engine_datasets": {
2149
- "default": "`[]`",
1346
+ "default": [],
2150
1347
  "description": "Specifies analytics engine datasets that are bound to this Worker environment.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
2151
1348
  "items": {
2152
1349
  "additionalProperties": false,
@@ -2177,7 +1374,7 @@
2177
1374
  },
2178
1375
  "browser": {
2179
1376
  "additionalProperties": false,
2180
- "default": "`{}`",
1377
+ "default": {},
2181
1378
  "description": "A browser that will be usable from the Worker.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
2182
1379
  "properties": {
2183
1380
  "binding": {
@@ -2204,11 +1401,6 @@
2204
1401
  "description": "The directory in which the command is executed.",
2205
1402
  "type": "string"
2206
1403
  },
2207
- "upload": {
2208
- "$ref": "#/definitions/DeprecatedUpload",
2209
- "deprecated": true,
2210
- "description": "Deprecated field previously used to configure the build and upload of the script."
2211
- },
2212
1404
  "watch_dir": {
2213
1405
  "anyOf": [
2214
1406
  {
@@ -2228,7 +1420,7 @@
2228
1420
  },
2229
1421
  "cloudchamber": {
2230
1422
  "$ref": "#/definitions/CloudchamberConfig",
2231
- "default": "`{}`",
1423
+ "default": {},
2232
1424
  "description": "Cloudchamber configuration\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment."
2233
1425
  },
2234
1426
  "compatibility_date": {
@@ -2236,15 +1428,33 @@
2236
1428
  "type": "string"
2237
1429
  },
2238
1430
  "compatibility_flags": {
2239
- "default": "`[]`",
2240
- "description": "A list of flags that enable features from upcoming features of the Workers runtime, usually used together with compatibility_flags.\n\nMore details at https://developers.cloudflare.com/workers/platform/compatibility-dates",
1431
+ "default": [],
1432
+ "description": "A list of flags that enable features from upcoming features of the Workers runtime, usually used together with compatibility_date.\n\nMore details at https://developers.cloudflare.com/workers/platform/compatibility-flags",
2241
1433
  "items": {
2242
1434
  "type": "string"
2243
1435
  },
2244
1436
  "type": "array"
2245
1437
  },
1438
+ "containers": {
1439
+ "additionalProperties": false,
1440
+ "description": "Container related configuration",
1441
+ "properties": {
1442
+ "app": {
1443
+ "default": {},
1444
+ "description": "Container app configuration\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
1445
+ "items": {
1446
+ "$ref": "#/definitions/ContainerApp"
1447
+ },
1448
+ "type": "array"
1449
+ }
1450
+ },
1451
+ "required": [
1452
+ "app"
1453
+ ],
1454
+ "type": "object"
1455
+ },
2246
1456
  "d1_databases": {
2247
- "default": "`[]`",
1457
+ "default": [],
2248
1458
  "description": "Specifies D1 databases that are bound to this Worker environment.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
2249
1459
  "items": {
2250
1460
  "additionalProperties": false,
@@ -2279,9 +1489,7 @@
2279
1489
  }
2280
1490
  },
2281
1491
  "required": [
2282
- "binding",
2283
- "database_name",
2284
- "database_id"
1492
+ "binding"
2285
1493
  ],
2286
1494
  "type": "object"
2287
1495
  },
@@ -2291,12 +1499,12 @@
2291
1499
  "additionalProperties": {
2292
1500
  "type": "string"
2293
1501
  },
2294
- "default": "`{}`",
1502
+ "default": {},
2295
1503
  "description": "A map of values to substitute when deploying your Worker.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
2296
1504
  "type": "object"
2297
1505
  },
2298
1506
  "dispatch_namespaces": {
2299
- "default": "`[]`",
1507
+ "default": [],
2300
1508
  "description": "Specifies namespace bindings that are bound to this Worker environment.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
2301
1509
  "items": {
2302
1510
  "additionalProperties": false,
@@ -2324,7 +1532,9 @@
2324
1532
  },
2325
1533
  "durable_objects": {
2326
1534
  "additionalProperties": false,
2327
- "default": "`{bindings:[]}`",
1535
+ "default": {
1536
+ "bindings": []
1537
+ },
2328
1538
  "description": "A list of durable objects that your Worker should be bound to.\n\nFor more information about Durable Objects, see the documentation at https://developers.cloudflare.com/workers/learning/using-durable-objects\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
2329
1539
  "properties": {
2330
1540
  "bindings": {
@@ -2336,35 +1546,6 @@
2336
1546
  ],
2337
1547
  "type": "object"
2338
1548
  },
2339
- "experimental_services": {
2340
- "default": "`[]`",
2341
- "deprecated": "DO NOT USE. We'd added this to test the new service binding system, but the proper way to test experimental features is to use `unsafe.bindings` configuration.",
2342
- "description": "A list of services that your Worker should be bound to.",
2343
- "items": {
2344
- "additionalProperties": false,
2345
- "properties": {
2346
- "environment": {
2347
- "description": "The Service's environment",
2348
- "type": "string"
2349
- },
2350
- "name": {
2351
- "description": "The binding name used to refer to the Service",
2352
- "type": "string"
2353
- },
2354
- "service": {
2355
- "description": "The name of the Service being bound",
2356
- "type": "string"
2357
- }
2358
- },
2359
- "required": [
2360
- "name",
2361
- "service",
2362
- "environment"
2363
- ],
2364
- "type": "object"
2365
- },
2366
- "type": "array"
2367
- },
2368
1549
  "find_additional_modules": {
2369
1550
  "description": "If true then Wrangler will traverse the file tree below `base_dir`; Any files that match `rules` will be included in the deployed Worker. Defaults to true if `no_bundle` is true, otherwise false.",
2370
1551
  "type": "boolean"
@@ -2374,7 +1555,7 @@
2374
1555
  "type": "boolean"
2375
1556
  },
2376
1557
  "hyperdrive": {
2377
- "default": "`[]`",
1558
+ "default": [],
2378
1559
  "description": "Specifies Hyperdrive configs that are bound to this Worker environment.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
2379
1560
  "items": {
2380
1561
  "additionalProperties": false,
@@ -2400,23 +1581,32 @@
2400
1581
  },
2401
1582
  "type": "array"
2402
1583
  },
1584
+ "images": {
1585
+ "additionalProperties": false,
1586
+ "default": {},
1587
+ "description": "Binding to Cloudflare Images\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
1588
+ "properties": {
1589
+ "binding": {
1590
+ "type": "string"
1591
+ }
1592
+ },
1593
+ "required": [
1594
+ "binding"
1595
+ ],
1596
+ "type": "object"
1597
+ },
2403
1598
  "jsx_factory": {
2404
- "default": "`\"React.createElement\"`",
1599
+ "default": "React.createElement",
2405
1600
  "description": "The function to use to replace jsx syntax.",
2406
1601
  "type": "string"
2407
1602
  },
2408
1603
  "jsx_fragment": {
2409
- "default": "`\"React.Fragment\"`",
1604
+ "default": "React.Fragment",
2410
1605
  "description": "The function to use to replace jsx fragment syntax.",
2411
1606
  "type": "string"
2412
1607
  },
2413
- "kv-namespaces": {
2414
- "deprecated": "DO NOT USE. This was a legacy bug from Wrangler v1, that we do not want to support.",
2415
- "description": "Legacy way of defining KVNamespaces that is no longer supported.",
2416
- "type": "string"
2417
- },
2418
1608
  "kv_namespaces": {
2419
- "default": "`[]`",
1609
+ "default": [],
2420
1610
  "description": "These specify any Workers KV Namespaces you want to access from inside your Worker.\n\nTo learn more about KV Namespaces, see the documentation at https://developers.cloudflare.com/workers/learning/how-kv-works\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
2421
1611
  "items": {
2422
1612
  "additionalProperties": false,
@@ -2435,8 +1625,7 @@
2435
1625
  }
2436
1626
  },
2437
1627
  "required": [
2438
- "binding",
2439
- "id"
1628
+ "binding"
2440
1629
  ],
2441
1630
  "type": "object"
2442
1631
  },
@@ -2448,7 +1637,9 @@
2448
1637
  },
2449
1638
  "logfwdr": {
2450
1639
  "additionalProperties": false,
2451
- "default": "`{bindings:[]}`",
1640
+ "default": {
1641
+ "bindings": []
1642
+ },
2452
1643
  "description": "List of bindings that you will send to logfwdr",
2453
1644
  "properties": {
2454
1645
  "bindings": {
@@ -2499,7 +1690,7 @@
2499
1690
  "type": "boolean"
2500
1691
  },
2501
1692
  "mtls_certificates": {
2502
- "default": "`[]`",
1693
+ "default": [],
2503
1694
  "description": "Specifies a list of mTLS certificates that are bound to this Worker environment.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
2504
1695
  "items": {
2505
1696
  "additionalProperties": false,
@@ -2529,16 +1720,12 @@
2529
1720
  "description": "Skip internal build steps and directly deploy script",
2530
1721
  "type": "boolean"
2531
1722
  },
2532
- "node_compat": {
2533
- "description": "Add polyfills for node builtin modules and globals",
2534
- "type": "boolean"
2535
- },
2536
1723
  "observability": {
2537
1724
  "$ref": "#/definitions/Observability",
2538
1725
  "description": "Specify the observability behavior of the Worker."
2539
1726
  },
2540
1727
  "pipelines": {
2541
- "default": "`[]`",
1728
+ "default": [],
2542
1729
  "description": "Specifies list of Pipelines bound to this Worker environment\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
2543
1730
  "items": {
2544
1731
  "additionalProperties": false,
@@ -2584,9 +1771,17 @@
2584
1771
  "description": "Determines whether Wrangler will preserve bundled file names. Defaults to false. If left unset, files will be named using the pattern ${fileHash}-${basename}, for example, `34de60b44167af5c5a709e62a4e20c4f18c9e3b6-favicon.ico`.",
2585
1772
  "type": "boolean"
2586
1773
  },
1774
+ "preview_urls": {
1775
+ "default": true,
1776
+ "description": "Whether we use <version>-<name>.<subdomain>.workers.dev to serve Preview URLs for your Worker.",
1777
+ "type": "boolean"
1778
+ },
2587
1779
  "queues": {
2588
1780
  "additionalProperties": false,
2589
- "default": "`{consumers:[],producers:[]}`",
1781
+ "default": {
1782
+ "consumers": [],
1783
+ "producers": []
1784
+ },
2590
1785
  "description": "Specifies Queues that are bound to this Worker environment.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
2591
1786
  "properties": {
2592
1787
  "consumers": {
@@ -2671,7 +1866,7 @@
2671
1866
  "type": "object"
2672
1867
  },
2673
1868
  "r2_buckets": {
2674
- "default": "`[]`",
1869
+ "default": [],
2675
1870
  "description": "Specifies R2 buckets that are bound to this Worker environment.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
2676
1871
  "items": {
2677
1872
  "additionalProperties": false,
@@ -2694,8 +1889,7 @@
2694
1889
  }
2695
1890
  },
2696
1891
  "required": [
2697
- "binding",
2698
- "bucket_name"
1892
+ "binding"
2699
1893
  ],
2700
1894
  "type": "object"
2701
1895
  },
@@ -2720,7 +1914,7 @@
2720
1914
  "type": "array"
2721
1915
  },
2722
1916
  "send_email": {
2723
- "default": "`[]`",
1917
+ "default": [],
2724
1918
  "description": "These specify bindings to send email from inside your Worker.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
2725
1919
  "items": {
2726
1920
  "additionalProperties": false,
@@ -2749,7 +1943,7 @@
2749
1943
  "type": "array"
2750
1944
  },
2751
1945
  "services": {
2752
- "default": "`[]`",
1946
+ "default": [],
2753
1947
  "description": "Specifies service bindings (Worker-to-Worker) that are bound to this Worker environment.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
2754
1948
  "items": {
2755
1949
  "additionalProperties": false,
@@ -2780,7 +1974,7 @@
2780
1974
  "type": "array"
2781
1975
  },
2782
1976
  "tail_consumers": {
2783
- "default": "`[]`",
1977
+ "default": [],
2784
1978
  "description": "Specifies a list of Tail Workers that are bound to this Worker environment\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
2785
1979
  "items": {
2786
1980
  "$ref": "#/definitions/TailConsumer"
@@ -2789,7 +1983,9 @@
2789
1983
  },
2790
1984
  "triggers": {
2791
1985
  "additionalProperties": false,
2792
- "default": "`{crons:[]}`",
1986
+ "default": {
1987
+ "crons": []
1988
+ },
2793
1989
  "description": "\"Cron\" definitions to trigger a Worker's \"scheduled\" function.\n\nLets you call Workers periodically, much like a cron job.\n\nMore details here https://developers.cloudflare.com/workers/platform/cron-triggers",
2794
1990
  "properties": {
2795
1991
  "crons": {
@@ -2810,7 +2006,7 @@
2810
2006
  },
2811
2007
  "unsafe": {
2812
2008
  "additionalProperties": false,
2813
- "default": "`{}`",
2009
+ "default": {},
2814
2010
  "description": "\"Unsafe\" tables for features that aren't directly supported by wrangler.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
2815
2011
  "properties": {
2816
2012
  "bindings": {
@@ -2881,14 +2077,6 @@
2881
2077
  "description": "Include source maps when uploading this worker.",
2882
2078
  "type": "boolean"
2883
2079
  },
2884
- "usage_model": {
2885
- "description": "Specifies the Usage Model for your Worker. There are two options - [bundled](https://developers.cloudflare.com/workers/platform/limits#bundled-usage-model) and [unbound](https://developers.cloudflare.com/workers/platform/limits#unbound-usage-model). For newly created Workers, if the Usage Model is omitted it will be set to the [default Usage Model set on the account](https://dash.cloudflare.com/?account=workers/default-usage-model). For existing Workers, if the Usage Model is omitted, it will be set to the Usage Model configured in the dashboard for that Worker.",
2886
- "enum": [
2887
- "bundled",
2888
- "unbound"
2889
- ],
2890
- "type": "string"
2891
- },
2892
2080
  "vars": {
2893
2081
  "additionalProperties": {
2894
2082
  "anyOf": [
@@ -2900,12 +2088,12 @@
2900
2088
  }
2901
2089
  ]
2902
2090
  },
2903
- "default": "`{}`",
2091
+ "default": {},
2904
2092
  "description": "A map of environment variables to set when deploying your Worker.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
2905
2093
  "type": "object"
2906
2094
  },
2907
2095
  "vectorize": {
2908
- "default": "`[]`",
2096
+ "default": [],
2909
2097
  "description": "Specifies Vectorize indexes that are bound to this Worker environment.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
2910
2098
  "items": {
2911
2099
  "additionalProperties": false,
@@ -2941,13 +2129,17 @@
2941
2129
  "type": "object"
2942
2130
  },
2943
2131
  "workers_dev": {
2944
- "default": "`true` (This is a breaking change from Wrangler v1)",
2945
- "description": "Whether we use <name>.<subdomain>.workers.dev to test and deploy your Worker.\n\n// Carmen according to our tests the default is undefined // warning: you must force \"workers_dev: true\" in tests to match expected behavior",
2132
+ "default": true,
2133
+ "description": "Whether we use <name>.<subdomain>.workers.dev to test and deploy your Worker.",
2946
2134
  "type": "boolean"
2947
2135
  },
2948
- "zone_id": {
2949
- "description": "TODO: remove this as it has been deprecated.\n\nThis is just here for now because the `route` commands use it. So we need to include it in this type so it is available.",
2950
- "type": "string"
2136
+ "workflows": {
2137
+ "default": [],
2138
+ "description": "A list of workflows that your Worker should be bound to.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
2139
+ "items": {
2140
+ "$ref": "#/definitions/WorkflowBinding"
2141
+ },
2142
+ "type": "array"
2951
2143
  }
2952
2144
  },
2953
2145
  "type": "object"
@@ -2955,7 +2147,7 @@
2955
2147
  "Route": {
2956
2148
  "anyOf": [
2957
2149
  {
2958
- "$ref": "#/definitions/SimpleRoute"
2150
+ "type": "string"
2959
2151
  },
2960
2152
  {
2961
2153
  "$ref": "#/definitions/ZoneIdRoute"
@@ -2991,9 +2183,6 @@
2991
2183
  ],
2992
2184
  "type": "object"
2993
2185
  },
2994
- "SimpleRoute": {
2995
- "type": "string"
2996
- },
2997
2186
  "TailConsumer": {
2998
2187
  "additionalProperties": false,
2999
2188
  "properties": {
@@ -3032,6 +2221,33 @@
3032
2221
  ],
3033
2222
  "type": "object"
3034
2223
  },
2224
+ "WorkflowBinding": {
2225
+ "additionalProperties": false,
2226
+ "properties": {
2227
+ "binding": {
2228
+ "description": "The name of the binding used to refer to the Workflow",
2229
+ "type": "string"
2230
+ },
2231
+ "class_name": {
2232
+ "description": "The exported class name of the Workflow",
2233
+ "type": "string"
2234
+ },
2235
+ "name": {
2236
+ "description": "The name of the Workflow",
2237
+ "type": "string"
2238
+ },
2239
+ "script_name": {
2240
+ "description": "The script where the Workflow is defined (if it's external to this Worker)",
2241
+ "type": "string"
2242
+ }
2243
+ },
2244
+ "required": [
2245
+ "binding",
2246
+ "name",
2247
+ "class_name"
2248
+ ],
2249
+ "type": "object"
2250
+ },
3035
2251
  "ZoneIdRoute": {
3036
2252
  "additionalProperties": false,
3037
2253
  "properties": {