wrangler 0.0.0-e621d7b3 → 0.0.0-e62b097bb

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.
@@ -2,10 +2,60 @@
2
2
  "$ref": "#/definitions/RawConfig",
3
3
  "$schema": "http://json-schema.org/draft-07/schema#",
4
4
  "definitions": {
5
+ "Assets": {
6
+ "additionalProperties": false,
7
+ "properties": {
8
+ "binding": {
9
+ "description": "Name of `env` binding property in the User Worker.",
10
+ "type": "string"
11
+ },
12
+ "directory": {
13
+ "description": "Absolute path to assets directory",
14
+ "type": "string"
15
+ },
16
+ "experimental_serve_directly": {
17
+ "description": "Deprecated; Inverse of run_worker_first. Should use run_worker_first instead",
18
+ "type": "boolean"
19
+ },
20
+ "html_handling": {
21
+ "description": "How to handle HTML requests.",
22
+ "enum": [
23
+ "auto-trailing-slash",
24
+ "force-trailing-slash",
25
+ "drop-trailing-slash",
26
+ "none"
27
+ ],
28
+ "type": "string"
29
+ },
30
+ "not_found_handling": {
31
+ "description": "How to handle requests that do not match an asset.",
32
+ "enum": [
33
+ "single-page-application",
34
+ "404-page",
35
+ "none"
36
+ ],
37
+ "type": "string"
38
+ },
39
+ "run_worker_first": {
40
+ "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.",
41
+ "type": "boolean"
42
+ }
43
+ },
44
+ "type": "object"
45
+ },
5
46
  "CloudchamberConfig": {
6
47
  "additionalProperties": false,
7
48
  "description": "Configuration in wrangler for Cloudchamber",
8
49
  "properties": {
50
+ "image": {
51
+ "type": "string"
52
+ },
53
+ "ipv4": {
54
+ "type": "boolean"
55
+ },
56
+ "location": {
57
+ "type": "string"
58
+ },
9
59
  "memory": {
10
60
  "type": "string"
11
61
  },
@@ -29,6 +79,107 @@
29
79
  ],
30
80
  "type": "string"
31
81
  },
82
+ "ContainerApp": {
83
+ "additionalProperties": false,
84
+ "description": "Configuration for a container application",
85
+ "properties": {
86
+ "configuration": {
87
+ "additionalProperties": false,
88
+ "properties": {
89
+ "image": {
90
+ "type": "string"
91
+ },
92
+ "labels": {
93
+ "items": {
94
+ "additionalProperties": false,
95
+ "properties": {
96
+ "name": {
97
+ "type": "string"
98
+ },
99
+ "value": {
100
+ "type": "string"
101
+ }
102
+ },
103
+ "required": [
104
+ "name",
105
+ "value"
106
+ ],
107
+ "type": "object"
108
+ },
109
+ "type": "array"
110
+ },
111
+ "secrets": {
112
+ "items": {
113
+ "additionalProperties": false,
114
+ "properties": {
115
+ "name": {
116
+ "type": "string"
117
+ },
118
+ "secret": {
119
+ "type": "string"
120
+ },
121
+ "type": {
122
+ "const": "env",
123
+ "type": "string"
124
+ }
125
+ },
126
+ "required": [
127
+ "name",
128
+ "type",
129
+ "secret"
130
+ ],
131
+ "type": "object"
132
+ },
133
+ "type": "array"
134
+ }
135
+ },
136
+ "required": [
137
+ "image"
138
+ ],
139
+ "type": "object"
140
+ },
141
+ "constraints": {
142
+ "additionalProperties": false,
143
+ "properties": {
144
+ "cities": {
145
+ "items": {
146
+ "type": "string"
147
+ },
148
+ "type": "array"
149
+ },
150
+ "regions": {
151
+ "items": {
152
+ "type": "string"
153
+ },
154
+ "type": "array"
155
+ },
156
+ "tier": {
157
+ "type": "number"
158
+ }
159
+ },
160
+ "type": "object"
161
+ },
162
+ "instances": {
163
+ "type": "number"
164
+ },
165
+ "name": {
166
+ "type": "string"
167
+ },
168
+ "scheduling_policy": {
169
+ "enum": [
170
+ "regional",
171
+ "moon"
172
+ ],
173
+ "type": "string"
174
+ }
175
+ },
176
+ "required": [
177
+ "name",
178
+ "instances",
179
+ "configuration"
180
+ ],
181
+ "type": "object"
182
+ },
32
183
  "CustomDomainRoute": {
33
184
  "additionalProperties": false,
34
185
  "properties": {
@@ -51,7 +202,7 @@
51
202
  "properties": {
52
203
  "dir": {
53
204
  "deprecated": true,
54
- "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.",
205
+ "description": "The directory you wish to upload your Worker from, relative to the Wrangler configuration file.\n\nDefaults to the directory containing the Wrangler configuration file.",
55
206
  "type": "string"
56
207
  },
57
208
  "format": {
@@ -128,6 +279,61 @@
128
279
  },
129
280
  "type": "array"
130
281
  },
282
+ "DurableObjectMigration": {
283
+ "additionalProperties": false,
284
+ "description": "Configuration in wrangler for Durable Object Migrations",
285
+ "properties": {
286
+ "deleted_classes": {
287
+ "description": "The Durable Objects being removed.",
288
+ "items": {
289
+ "type": "string"
290
+ },
291
+ "type": "array"
292
+ },
293
+ "new_classes": {
294
+ "description": "The new Durable Objects being defined.",
295
+ "items": {
296
+ "type": "string"
297
+ },
298
+ "type": "array"
299
+ },
300
+ "new_sqlite_classes": {
301
+ "description": "The new SQLite Durable Objects being defined.",
302
+ "items": {
303
+ "type": "string"
304
+ },
305
+ "type": "array"
306
+ },
307
+ "renamed_classes": {
308
+ "description": "The Durable Objects being renamed.",
309
+ "items": {
310
+ "additionalProperties": false,
311
+ "properties": {
312
+ "from": {
313
+ "type": "string"
314
+ },
315
+ "to": {
316
+ "type": "string"
317
+ }
318
+ },
319
+ "required": [
320
+ "from",
321
+ "to"
322
+ ],
323
+ "type": "object"
324
+ },
325
+ "type": "array"
326
+ },
327
+ "tag": {
328
+ "description": "A unique identifier for this migration.",
329
+ "type": "string"
330
+ }
331
+ },
332
+ "required": [
333
+ "tag"
334
+ ],
335
+ "type": "object"
336
+ },
131
337
  "Environment": {
132
338
  "additionalProperties": false,
133
339
  "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.",
@@ -138,7 +344,7 @@
138
344
  },
139
345
  "ai": {
140
346
  "additionalProperties": false,
141
- "default": "`{}`",
347
+ "default": {},
142
348
  "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.",
143
349
  "properties": {
144
350
  "binding": {
@@ -154,7 +360,7 @@
154
360
  "type": "object"
155
361
  },
156
362
  "analytics_engine_datasets": {
157
- "default": "`[]`",
363
+ "default": [],
158
364
  "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.",
159
365
  "items": {
160
366
  "additionalProperties": false,
@@ -175,13 +381,17 @@
175
381
  },
176
382
  "type": "array"
177
383
  },
384
+ "assets": {
385
+ "$ref": "#/definitions/Assets",
386
+ "description": "Specify the directory of static assets to deploy/serve\n\nMore details at https://developers.cloudflare.com/workers/frameworks/"
387
+ },
178
388
  "base_dir": {
179
389
  "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.",
180
390
  "type": "string"
181
391
  },
182
392
  "browser": {
183
393
  "additionalProperties": false,
184
- "default": "`{}`",
394
+ "default": {},
185
395
  "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.",
186
396
  "properties": {
187
397
  "binding": {
@@ -232,7 +442,7 @@
232
442
  },
233
443
  "cloudchamber": {
234
444
  "$ref": "#/definitions/CloudchamberConfig",
235
- "default": "`{}`",
445
+ "default": {},
236
446
  "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."
237
447
  },
238
448
  "compatibility_date": {
@@ -240,38 +450,33 @@
240
450
  "type": "string"
241
451
  },
242
452
  "compatibility_flags": {
243
- "default": "`[]`",
244
- "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",
453
+ "default": [],
454
+ "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",
245
455
  "items": {
246
456
  "type": "string"
247
457
  },
248
458
  "type": "array"
249
459
  },
250
- "constellation": {
251
- "default": "`[]`",
252
- "description": "Specifies Constellation projects 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.",
253
- "items": {
254
- "additionalProperties": false,
255
- "properties": {
256
- "binding": {
257
- "description": "The binding name used to refer to the project in the Worker.",
258
- "type": "string"
460
+ "containers": {
461
+ "additionalProperties": false,
462
+ "description": "Container related configuration",
463
+ "properties": {
464
+ "app": {
465
+ "default": {},
466
+ "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.",
467
+ "items": {
468
+ "$ref": "#/definitions/ContainerApp"
259
469
  },
260
- "project_id": {
261
- "description": "The id of the project.",
262
- "type": "string"
263
- }
264
- },
265
- "required": [
266
- "binding",
267
- "project_id"
268
- ],
269
- "type": "object"
470
+ "type": "array"
471
+ }
270
472
  },
271
- "type": "array"
473
+ "required": [
474
+ "app"
475
+ ],
476
+ "type": "object"
272
477
  },
273
478
  "d1_databases": {
274
- "default": "`[]`",
479
+ "default": [],
275
480
  "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.",
276
481
  "items": {
277
482
  "additionalProperties": false,
@@ -306,9 +511,7 @@
306
511
  }
307
512
  },
308
513
  "required": [
309
- "binding",
310
- "database_name",
311
- "database_id"
514
+ "binding"
312
515
  ],
313
516
  "type": "object"
314
517
  },
@@ -318,12 +521,12 @@
318
521
  "additionalProperties": {
319
522
  "type": "string"
320
523
  },
321
- "default": "`{}`",
524
+ "default": {},
322
525
  "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.",
323
526
  "type": "object"
324
527
  },
325
528
  "dispatch_namespaces": {
326
- "default": "`[]`",
529
+ "default": [],
327
530
  "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.",
328
531
  "items": {
329
532
  "additionalProperties": false,
@@ -351,7 +554,9 @@
351
554
  },
352
555
  "durable_objects": {
353
556
  "additionalProperties": false,
354
- "default": "`{bindings:[]}`",
557
+ "default": {
558
+ "bindings": []
559
+ },
355
560
  "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.",
356
561
  "properties": {
357
562
  "bindings": {
@@ -372,7 +577,7 @@
372
577
  "type": "boolean"
373
578
  },
374
579
  "hyperdrive": {
375
- "default": "`[]`",
580
+ "default": [],
376
581
  "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.",
377
582
  "items": {
378
583
  "additionalProperties": false,
@@ -398,18 +603,32 @@
398
603
  },
399
604
  "type": "array"
400
605
  },
606
+ "images": {
607
+ "additionalProperties": false,
608
+ "default": {},
609
+ "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.",
610
+ "properties": {
611
+ "binding": {
612
+ "type": "string"
613
+ }
614
+ },
615
+ "required": [
616
+ "binding"
617
+ ],
618
+ "type": "object"
619
+ },
401
620
  "jsx_factory": {
402
- "default": "`\"React.createElement\"`",
621
+ "default": "React.createElement",
403
622
  "description": "The function to use to replace jsx syntax.",
404
623
  "type": "string"
405
624
  },
406
625
  "jsx_fragment": {
407
- "default": "`\"React.Fragment\"`",
626
+ "default": "React.Fragment",
408
627
  "description": "The function to use to replace jsx fragment syntax.",
409
628
  "type": "string"
410
629
  },
411
630
  "kv_namespaces": {
412
- "default": "`[]`",
631
+ "default": [],
413
632
  "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.",
414
633
  "items": {
415
634
  "additionalProperties": false,
@@ -428,8 +647,7 @@
428
647
  }
429
648
  },
430
649
  "required": [
431
- "binding",
432
- "id"
650
+ "binding"
433
651
  ],
434
652
  "type": "object"
435
653
  },
@@ -441,7 +659,9 @@
441
659
  },
442
660
  "logfwdr": {
443
661
  "additionalProperties": false,
444
- "default": "`{bindings:[]}`",
662
+ "default": {
663
+ "bindings": []
664
+ },
445
665
  "description": "List of bindings that you will send to logfwdr",
446
666
  "properties": {
447
667
  "bindings": {
@@ -483,51 +703,7 @@
483
703
  "default": [],
484
704
  "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",
485
705
  "items": {
486
- "additionalProperties": false,
487
- "properties": {
488
- "deleted_classes": {
489
- "description": "The Durable Objects being removed.",
490
- "items": {
491
- "type": "string"
492
- },
493
- "type": "array"
494
- },
495
- "new_classes": {
496
- "description": "The new Durable Objects being defined.",
497
- "items": {
498
- "type": "string"
499
- },
500
- "type": "array"
501
- },
502
- "renamed_classes": {
503
- "description": "The Durable Objects being renamed.",
504
- "items": {
505
- "additionalProperties": false,
506
- "properties": {
507
- "from": {
508
- "type": "string"
509
- },
510
- "to": {
511
- "type": "string"
512
- }
513
- },
514
- "required": [
515
- "from",
516
- "to"
517
- ],
518
- "type": "object"
519
- },
520
- "type": "array"
521
- },
522
- "tag": {
523
- "description": "A unique identifier for this migration.",
524
- "type": "string"
525
- }
526
- },
527
- "required": [
528
- "tag"
529
- ],
530
- "type": "object"
706
+ "$ref": "#/definitions/DurableObjectMigration"
531
707
  },
532
708
  "type": "array"
533
709
  },
@@ -536,7 +712,7 @@
536
712
  "type": "boolean"
537
713
  },
538
714
  "mtls_certificates": {
539
- "default": "`[]`",
715
+ "default": [],
540
716
  "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.",
541
717
  "items": {
542
718
  "additionalProperties": false,
@@ -570,10 +746,40 @@
570
746
  "description": "Add polyfills for node builtin modules and globals",
571
747
  "type": "boolean"
572
748
  },
749
+ "observability": {
750
+ "$ref": "#/definitions/Observability",
751
+ "description": "Specify the observability behavior of the Worker."
752
+ },
753
+ "pipelines": {
754
+ "default": [],
755
+ "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.",
756
+ "items": {
757
+ "additionalProperties": false,
758
+ "properties": {
759
+ "binding": {
760
+ "description": "The binding name used to refer to the bound service.",
761
+ "type": "string"
762
+ },
763
+ "pipeline": {
764
+ "description": "Name of the Pipeline to bind",
765
+ "type": "string"
766
+ }
767
+ },
768
+ "required": [
769
+ "binding",
770
+ "pipeline"
771
+ ],
772
+ "type": "object"
773
+ },
774
+ "type": "array"
775
+ },
573
776
  "placement": {
574
777
  "additionalProperties": false,
575
778
  "description": "Specify how the Worker should be located to minimize round-trip time.\n\nMore details: https://developers.cloudflare.com/workers/platform/smart-placement/",
576
779
  "properties": {
780
+ "hint": {
781
+ "type": "string"
782
+ },
577
783
  "mode": {
578
784
  "enum": [
579
785
  "off",
@@ -591,9 +797,17 @@
591
797
  "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`.",
592
798
  "type": "boolean"
593
799
  },
800
+ "preview_urls": {
801
+ "default": true,
802
+ "description": "Whether we use <version>-<name>.<subdomain>.workers.dev to serve Preview URLs for your Worker.",
803
+ "type": "boolean"
804
+ },
594
805
  "queues": {
595
806
  "additionalProperties": false,
596
- "default": "`{consumers:[],producers:[]}`",
807
+ "default": {
808
+ "consumers": [],
809
+ "producers": []
810
+ },
597
811
  "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.",
598
812
  "properties": {
599
813
  "consumers": {
@@ -678,7 +892,7 @@
678
892
  "type": "object"
679
893
  },
680
894
  "r2_buckets": {
681
- "default": "`[]`",
895
+ "default": [],
682
896
  "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.",
683
897
  "items": {
684
898
  "additionalProperties": false,
@@ -701,8 +915,7 @@
701
915
  }
702
916
  },
703
917
  "required": [
704
- "binding",
705
- "bucket_name"
918
+ "binding"
706
919
  ],
707
920
  "type": "object"
708
921
  },
@@ -727,7 +940,7 @@
727
940
  "type": "array"
728
941
  },
729
942
  "send_email": {
730
- "default": "`[]`",
943
+ "default": [],
731
944
  "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.",
732
945
  "items": {
733
946
  "additionalProperties": false,
@@ -756,7 +969,7 @@
756
969
  "type": "array"
757
970
  },
758
971
  "services": {
759
- "default": "`[]`",
972
+ "default": [],
760
973
  "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.",
761
974
  "items": {
762
975
  "additionalProperties": false,
@@ -787,7 +1000,7 @@
787
1000
  "type": "array"
788
1001
  },
789
1002
  "tail_consumers": {
790
- "default": "`[]`",
1003
+ "default": [],
791
1004
  "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.",
792
1005
  "items": {
793
1006
  "$ref": "#/definitions/TailConsumer"
@@ -796,7 +1009,9 @@
796
1009
  },
797
1010
  "triggers": {
798
1011
  "additionalProperties": false,
799
- "default": "`{crons:[]}`",
1012
+ "default": {
1013
+ "crons": []
1014
+ },
800
1015
  "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",
801
1016
  "properties": {
802
1017
  "crons": {
@@ -817,7 +1032,7 @@
817
1032
  },
818
1033
  "unsafe": {
819
1034
  "additionalProperties": false,
820
- "default": "`{}`",
1035
+ "default": {},
821
1036
  "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.",
822
1037
  "properties": {
823
1038
  "bindings": {
@@ -907,12 +1122,12 @@
907
1122
  }
908
1123
  ]
909
1124
  },
910
- "default": "`{}`",
1125
+ "default": {},
911
1126
  "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.",
912
1127
  "type": "object"
913
1128
  },
914
1129
  "vectorize": {
915
- "default": "`[]`",
1130
+ "default": [],
916
1131
  "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.",
917
1132
  "items": {
918
1133
  "additionalProperties": false,
@@ -948,10 +1163,18 @@
948
1163
  "type": "object"
949
1164
  },
950
1165
  "workers_dev": {
951
- "default": "`true` (This is a breaking change from Wrangler v1)",
952
- "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",
1166
+ "default": true,
1167
+ "description": "Whether we use <name>.<subdomain>.workers.dev to test and deploy your Worker.",
953
1168
  "type": "boolean"
954
1169
  },
1170
+ "workflows": {
1171
+ "default": [],
1172
+ "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.",
1173
+ "items": {
1174
+ "$ref": "#/definitions/WorkflowBinding"
1175
+ },
1176
+ "type": "array"
1177
+ },
955
1178
  "zone_id": {
956
1179
  "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.",
957
1180
  "type": "string"
@@ -962,7 +1185,7 @@
962
1185
  "build",
963
1186
  "cloudchamber",
964
1187
  "compatibility_flags",
965
- "constellation",
1188
+ "containers",
966
1189
  "d1_databases",
967
1190
  "define",
968
1191
  "dispatch_namespaces",
@@ -974,6 +1197,7 @@
974
1197
  "logfwdr",
975
1198
  "migrations",
976
1199
  "mtls_certificates",
1200
+ "pipelines",
977
1201
  "queues",
978
1202
  "r2_buckets",
979
1203
  "rules",
@@ -981,7 +1205,8 @@
981
1205
  "triggers",
982
1206
  "unsafe",
983
1207
  "vars",
984
- "vectorize"
1208
+ "vectorize",
1209
+ "workflows"
985
1210
  ],
986
1211
  "type": "object"
987
1212
  },
@@ -1007,6 +1232,37 @@
1007
1232
  "Literal": {
1008
1233
  "$ref": "#/definitions/TypeOf%3CZodUnion%3C%5Bdef-class-1315922706-6501-8772-1315922706-0-54395%2Cdef-class-1315922706-9299-10989-1315922706-0-54395%2Cdef-class-1315922706-12937-13365-1315922706-0-54395%2Cdef-class-1315922706-15083-15273-1315922706-0-54395%5D%3E%3E"
1009
1234
  },
1235
+ "Observability": {
1236
+ "additionalProperties": false,
1237
+ "properties": {
1238
+ "enabled": {
1239
+ "description": "If observability is enabled for this Worker",
1240
+ "type": "boolean"
1241
+ },
1242
+ "head_sampling_rate": {
1243
+ "description": "The sampling rate",
1244
+ "type": "number"
1245
+ },
1246
+ "logs": {
1247
+ "additionalProperties": false,
1248
+ "properties": {
1249
+ "enabled": {
1250
+ "type": "boolean"
1251
+ },
1252
+ "head_sampling_rate": {
1253
+ "description": "The sampling rate",
1254
+ "type": "number"
1255
+ },
1256
+ "invocation_logs": {
1257
+ "description": "Set to false to disable invocation logs",
1258
+ "type": "boolean"
1259
+ }
1260
+ },
1261
+ "type": "object"
1262
+ }
1263
+ },
1264
+ "type": "object"
1265
+ },
1010
1266
  "RawConfig": {
1011
1267
  "additionalProperties": false,
1012
1268
  "properties": {
@@ -1019,7 +1275,7 @@
1019
1275
  },
1020
1276
  "ai": {
1021
1277
  "additionalProperties": false,
1022
- "default": "`{}`",
1278
+ "default": {},
1023
1279
  "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.",
1024
1280
  "properties": {
1025
1281
  "binding": {
@@ -1042,7 +1298,7 @@
1042
1298
  "type": "object"
1043
1299
  },
1044
1300
  "analytics_engine_datasets": {
1045
- "default": "`[]`",
1301
+ "default": [],
1046
1302
  "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.",
1047
1303
  "items": {
1048
1304
  "additionalProperties": false,
@@ -1064,45 +1320,8 @@
1064
1320
  "type": "array"
1065
1321
  },
1066
1322
  "assets": {
1067
- "anyOf": [
1068
- {
1069
- "additionalProperties": false,
1070
- "properties": {
1071
- "browser_TTL": {
1072
- "type": "number"
1073
- },
1074
- "bucket": {
1075
- "type": "string"
1076
- },
1077
- "exclude": {
1078
- "items": {
1079
- "type": "string"
1080
- },
1081
- "type": "array"
1082
- },
1083
- "include": {
1084
- "items": {
1085
- "type": "string"
1086
- },
1087
- "type": "array"
1088
- },
1089
- "serve_single_page_app": {
1090
- "type": "boolean"
1091
- }
1092
- },
1093
- "required": [
1094
- "bucket",
1095
- "include",
1096
- "exclude",
1097
- "serve_single_page_app"
1098
- ],
1099
- "type": "object"
1100
- },
1101
- {
1102
- "type": "string"
1103
- }
1104
- ],
1105
- "description": "Serve 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."
1323
+ "$ref": "#/definitions/Assets",
1324
+ "description": "Specify the directory of static assets to deploy/serve\n\nMore details at https://developers.cloudflare.com/workers/frameworks/"
1106
1325
  },
1107
1326
  "base_dir": {
1108
1327
  "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.",
@@ -1110,7 +1329,7 @@
1110
1329
  },
1111
1330
  "browser": {
1112
1331
  "additionalProperties": false,
1113
- "default": "`{}`",
1332
+ "default": {},
1114
1333
  "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.",
1115
1334
  "properties": {
1116
1335
  "binding": {
@@ -1161,7 +1380,7 @@
1161
1380
  },
1162
1381
  "cloudchamber": {
1163
1382
  "$ref": "#/definitions/CloudchamberConfig",
1164
- "default": "`{}`",
1383
+ "default": {},
1165
1384
  "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."
1166
1385
  },
1167
1386
  "compatibility_date": {
@@ -1169,41 +1388,33 @@
1169
1388
  "type": "string"
1170
1389
  },
1171
1390
  "compatibility_flags": {
1172
- "default": "`[]`",
1173
- "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",
1391
+ "default": [],
1392
+ "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",
1174
1393
  "items": {
1175
1394
  "type": "string"
1176
1395
  },
1177
1396
  "type": "array"
1178
1397
  },
1179
- "configPath": {
1180
- "type": "string"
1181
- },
1182
- "constellation": {
1183
- "default": "`[]`",
1184
- "description": "Specifies Constellation projects 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.",
1185
- "items": {
1186
- "additionalProperties": false,
1187
- "properties": {
1188
- "binding": {
1189
- "description": "The binding name used to refer to the project in the Worker.",
1190
- "type": "string"
1398
+ "containers": {
1399
+ "additionalProperties": false,
1400
+ "description": "Container related configuration",
1401
+ "properties": {
1402
+ "app": {
1403
+ "default": {},
1404
+ "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.",
1405
+ "items": {
1406
+ "$ref": "#/definitions/ContainerApp"
1191
1407
  },
1192
- "project_id": {
1193
- "description": "The id of the project.",
1194
- "type": "string"
1195
- }
1196
- },
1197
- "required": [
1198
- "binding",
1199
- "project_id"
1200
- ],
1201
- "type": "object"
1408
+ "type": "array"
1409
+ }
1202
1410
  },
1203
- "type": "array"
1411
+ "required": [
1412
+ "app"
1413
+ ],
1414
+ "type": "object"
1204
1415
  },
1205
1416
  "d1_databases": {
1206
- "default": "`[]`",
1417
+ "default": [],
1207
1418
  "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.",
1208
1419
  "items": {
1209
1420
  "additionalProperties": false,
@@ -1238,9 +1449,7 @@
1238
1449
  }
1239
1450
  },
1240
1451
  "required": [
1241
- "binding",
1242
- "database_name",
1243
- "database_id"
1452
+ "binding"
1244
1453
  ],
1245
1454
  "type": "object"
1246
1455
  },
@@ -1257,7 +1466,7 @@
1257
1466
  "additionalProperties": {
1258
1467
  "type": "string"
1259
1468
  },
1260
- "default": "`{}`",
1469
+ "default": {},
1261
1470
  "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.",
1262
1471
  "type": "object"
1263
1472
  },
@@ -1266,7 +1475,7 @@
1266
1475
  "description": "Options to configure the development server that your worker will use."
1267
1476
  },
1268
1477
  "dispatch_namespaces": {
1269
- "default": "`[]`",
1478
+ "default": [],
1270
1479
  "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.",
1271
1480
  "items": {
1272
1481
  "additionalProperties": false,
@@ -1294,7 +1503,9 @@
1294
1503
  },
1295
1504
  "durable_objects": {
1296
1505
  "additionalProperties": false,
1297
- "default": "`{bindings:[]}`",
1506
+ "default": {
1507
+ "bindings": []
1508
+ },
1298
1509
  "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.",
1299
1510
  "properties": {
1300
1511
  "bindings": {
@@ -1315,7 +1526,7 @@
1315
1526
  "type": "object"
1316
1527
  },
1317
1528
  "experimental_services": {
1318
- "default": "`[]`",
1529
+ "default": [],
1319
1530
  "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.",
1320
1531
  "description": "A list of services that your Worker should be bound to.",
1321
1532
  "items": {
@@ -1352,7 +1563,7 @@
1352
1563
  "type": "boolean"
1353
1564
  },
1354
1565
  "hyperdrive": {
1355
- "default": "`[]`",
1566
+ "default": [],
1356
1567
  "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.",
1357
1568
  "items": {
1358
1569
  "additionalProperties": false,
@@ -1378,19 +1589,33 @@
1378
1589
  },
1379
1590
  "type": "array"
1380
1591
  },
1592
+ "images": {
1593
+ "additionalProperties": false,
1594
+ "default": {},
1595
+ "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.",
1596
+ "properties": {
1597
+ "binding": {
1598
+ "type": "string"
1599
+ }
1600
+ },
1601
+ "required": [
1602
+ "binding"
1603
+ ],
1604
+ "type": "object"
1605
+ },
1381
1606
  "jsx_factory": {
1382
- "default": "`\"React.createElement\"`",
1607
+ "default": "React.createElement",
1383
1608
  "description": "The function to use to replace jsx syntax.",
1384
1609
  "type": "string"
1385
1610
  },
1386
1611
  "jsx_fragment": {
1387
- "default": "`\"React.Fragment\"`",
1612
+ "default": "React.Fragment",
1388
1613
  "description": "The function to use to replace jsx fragment syntax.",
1389
1614
  "type": "string"
1390
1615
  },
1391
1616
  "keep_vars": {
1392
1617
  "default": false,
1393
- "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.",
1618
+ "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.",
1394
1619
  "type": "boolean"
1395
1620
  },
1396
1621
  "kv-namespaces": {
@@ -1399,7 +1624,7 @@
1399
1624
  "type": "string"
1400
1625
  },
1401
1626
  "kv_namespaces": {
1402
- "default": "`[]`",
1627
+ "default": [],
1403
1628
  "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.",
1404
1629
  "items": {
1405
1630
  "additionalProperties": false,
@@ -1412,18 +1637,58 @@
1412
1637
  "description": "The ID of the KV namespace",
1413
1638
  "type": "string"
1414
1639
  },
1415
- "preview_id": {
1416
- "description": "The ID of the KV namespace used during `wrangler dev`",
1417
- "type": "string"
1418
- }
1640
+ "preview_id": {
1641
+ "description": "The ID of the KV namespace used during `wrangler dev`",
1642
+ "type": "string"
1643
+ }
1644
+ },
1645
+ "required": [
1646
+ "binding"
1647
+ ],
1648
+ "type": "object"
1649
+ },
1650
+ "type": "array"
1651
+ },
1652
+ "legacy_assets": {
1653
+ "anyOf": [
1654
+ {
1655
+ "additionalProperties": false,
1656
+ "properties": {
1657
+ "browser_TTL": {
1658
+ "type": "number"
1659
+ },
1660
+ "bucket": {
1661
+ "type": "string"
1662
+ },
1663
+ "exclude": {
1664
+ "items": {
1665
+ "type": "string"
1666
+ },
1667
+ "type": "array"
1668
+ },
1669
+ "include": {
1670
+ "items": {
1671
+ "type": "string"
1672
+ },
1673
+ "type": "array"
1674
+ },
1675
+ "serve_single_page_app": {
1676
+ "type": "boolean"
1677
+ }
1678
+ },
1679
+ "required": [
1680
+ "bucket",
1681
+ "include",
1682
+ "exclude",
1683
+ "serve_single_page_app"
1684
+ ],
1685
+ "type": "object"
1419
1686
  },
1420
- "required": [
1421
- "binding",
1422
- "id"
1423
- ],
1424
- "type": "object"
1425
- },
1426
- "type": "array"
1687
+ {
1688
+ "type": "string"
1689
+ }
1690
+ ],
1691
+ "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`."
1427
1692
  },
1428
1693
  "legacy_env": {
1429
1694
  "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.",
@@ -1435,7 +1700,9 @@
1435
1700
  },
1436
1701
  "logfwdr": {
1437
1702
  "additionalProperties": false,
1438
- "default": "`{bindings:[]}`",
1703
+ "default": {
1704
+ "bindings": []
1705
+ },
1439
1706
  "description": "List of bindings that you will send to logfwdr",
1440
1707
  "properties": {
1441
1708
  "bindings": {
@@ -1477,51 +1744,7 @@
1477
1744
  "default": [],
1478
1745
  "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",
1479
1746
  "items": {
1480
- "additionalProperties": false,
1481
- "properties": {
1482
- "deleted_classes": {
1483
- "description": "The Durable Objects being removed.",
1484
- "items": {
1485
- "type": "string"
1486
- },
1487
- "type": "array"
1488
- },
1489
- "new_classes": {
1490
- "description": "The new Durable Objects being defined.",
1491
- "items": {
1492
- "type": "string"
1493
- },
1494
- "type": "array"
1495
- },
1496
- "renamed_classes": {
1497
- "description": "The Durable Objects being renamed.",
1498
- "items": {
1499
- "additionalProperties": false,
1500
- "properties": {
1501
- "from": {
1502
- "type": "string"
1503
- },
1504
- "to": {
1505
- "type": "string"
1506
- }
1507
- },
1508
- "required": [
1509
- "from",
1510
- "to"
1511
- ],
1512
- "type": "object"
1513
- },
1514
- "type": "array"
1515
- },
1516
- "tag": {
1517
- "description": "A unique identifier for this migration.",
1518
- "type": "string"
1519
- }
1520
- },
1521
- "required": [
1522
- "tag"
1523
- ],
1524
- "type": "object"
1747
+ "$ref": "#/definitions/DurableObjectMigration"
1525
1748
  },
1526
1749
  "type": "array"
1527
1750
  },
@@ -1534,7 +1757,7 @@
1534
1757
  "type": "boolean"
1535
1758
  },
1536
1759
  "mtls_certificates": {
1537
- "default": "`[]`",
1760
+ "default": [],
1538
1761
  "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.",
1539
1762
  "items": {
1540
1763
  "additionalProperties": false,
@@ -1568,14 +1791,44 @@
1568
1791
  "description": "Add polyfills for node builtin modules and globals",
1569
1792
  "type": "boolean"
1570
1793
  },
1794
+ "observability": {
1795
+ "$ref": "#/definitions/Observability",
1796
+ "description": "Specify the observability behavior of the Worker."
1797
+ },
1571
1798
  "pages_build_output_dir": {
1572
- "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.",
1799
+ "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.",
1573
1800
  "type": "string"
1574
1801
  },
1802
+ "pipelines": {
1803
+ "default": [],
1804
+ "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.",
1805
+ "items": {
1806
+ "additionalProperties": false,
1807
+ "properties": {
1808
+ "binding": {
1809
+ "description": "The binding name used to refer to the bound service.",
1810
+ "type": "string"
1811
+ },
1812
+ "pipeline": {
1813
+ "description": "Name of the Pipeline to bind",
1814
+ "type": "string"
1815
+ }
1816
+ },
1817
+ "required": [
1818
+ "binding",
1819
+ "pipeline"
1820
+ ],
1821
+ "type": "object"
1822
+ },
1823
+ "type": "array"
1824
+ },
1575
1825
  "placement": {
1576
1826
  "additionalProperties": false,
1577
1827
  "description": "Specify how the Worker should be located to minimize round-trip time.\n\nMore details: https://developers.cloudflare.com/workers/platform/smart-placement/",
1578
1828
  "properties": {
1829
+ "hint": {
1830
+ "type": "string"
1831
+ },
1579
1832
  "mode": {
1580
1833
  "enum": [
1581
1834
  "off",
@@ -1593,9 +1846,17 @@
1593
1846
  "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`.",
1594
1847
  "type": "boolean"
1595
1848
  },
1849
+ "preview_urls": {
1850
+ "default": true,
1851
+ "description": "Whether we use <version>-<name>.<subdomain>.workers.dev to serve Preview URLs for your Worker.",
1852
+ "type": "boolean"
1853
+ },
1596
1854
  "queues": {
1597
1855
  "additionalProperties": false,
1598
- "default": "`{consumers:[],producers:[]}`",
1856
+ "default": {
1857
+ "consumers": [],
1858
+ "producers": []
1859
+ },
1599
1860
  "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.",
1600
1861
  "properties": {
1601
1862
  "consumers": {
@@ -1680,7 +1941,7 @@
1680
1941
  "type": "object"
1681
1942
  },
1682
1943
  "r2_buckets": {
1683
- "default": "`[]`",
1944
+ "default": [],
1684
1945
  "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.",
1685
1946
  "items": {
1686
1947
  "additionalProperties": false,
@@ -1703,8 +1964,7 @@
1703
1964
  }
1704
1965
  },
1705
1966
  "required": [
1706
- "binding",
1707
- "bucket_name"
1967
+ "binding"
1708
1968
  ],
1709
1969
  "type": "object"
1710
1970
  },
@@ -1729,7 +1989,7 @@
1729
1989
  "type": "array"
1730
1990
  },
1731
1991
  "send_email": {
1732
- "default": "`[]`",
1992
+ "default": [],
1733
1993
  "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.",
1734
1994
  "items": {
1735
1995
  "additionalProperties": false,
@@ -1762,7 +2022,7 @@
1762
2022
  "type": "boolean"
1763
2023
  },
1764
2024
  "services": {
1765
- "default": "`[]`",
2025
+ "default": [],
1766
2026
  "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.",
1767
2027
  "items": {
1768
2028
  "additionalProperties": false,
@@ -1797,7 +2057,7 @@
1797
2057
  "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",
1798
2058
  "properties": {
1799
2059
  "bucket": {
1800
- "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.",
2060
+ "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.",
1801
2061
  "type": "string"
1802
2062
  },
1803
2063
  "entry-point": {
@@ -1828,7 +2088,7 @@
1828
2088
  "type": "object"
1829
2089
  },
1830
2090
  "tail_consumers": {
1831
- "default": "`[]`",
2091
+ "default": [],
1832
2092
  "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.",
1833
2093
  "items": {
1834
2094
  "$ref": "#/definitions/TailConsumer"
@@ -1844,7 +2104,9 @@
1844
2104
  },
1845
2105
  "triggers": {
1846
2106
  "additionalProperties": false,
1847
- "default": "`{crons:[]}`",
2107
+ "default": {
2108
+ "crons": []
2109
+ },
1848
2110
  "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",
1849
2111
  "properties": {
1850
2112
  "crons": {
@@ -1875,7 +2137,7 @@
1875
2137
  },
1876
2138
  "unsafe": {
1877
2139
  "additionalProperties": false,
1878
- "default": "`{}`",
2140
+ "default": {},
1879
2141
  "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.",
1880
2142
  "properties": {
1881
2143
  "bindings": {
@@ -1965,12 +2227,12 @@
1965
2227
  }
1966
2228
  ]
1967
2229
  },
1968
- "default": "`{}`",
2230
+ "default": {},
1969
2231
  "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.",
1970
2232
  "type": "object"
1971
2233
  },
1972
2234
  "vectorize": {
1973
- "default": "`[]`",
2235
+ "default": [],
1974
2236
  "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.",
1975
2237
  "items": {
1976
2238
  "additionalProperties": false,
@@ -2018,10 +2280,18 @@
2018
2280
  "type": "string"
2019
2281
  },
2020
2282
  "workers_dev": {
2021
- "default": "`true` (This is a breaking change from Wrangler v1)",
2022
- "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",
2283
+ "default": true,
2284
+ "description": "Whether we use <name>.<subdomain>.workers.dev to test and deploy your Worker.",
2023
2285
  "type": "boolean"
2024
2286
  },
2287
+ "workflows": {
2288
+ "default": [],
2289
+ "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.",
2290
+ "items": {
2291
+ "$ref": "#/definitions/WorkflowBinding"
2292
+ },
2293
+ "type": "array"
2294
+ },
2025
2295
  "zone_id": {
2026
2296
  "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.",
2027
2297
  "type": "string"
@@ -2082,7 +2352,7 @@
2082
2352
  },
2083
2353
  "ai": {
2084
2354
  "additionalProperties": false,
2085
- "default": "`{}`",
2355
+ "default": {},
2086
2356
  "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.",
2087
2357
  "properties": {
2088
2358
  "binding": {
@@ -2098,7 +2368,7 @@
2098
2368
  "type": "object"
2099
2369
  },
2100
2370
  "analytics_engine_datasets": {
2101
- "default": "`[]`",
2371
+ "default": [],
2102
2372
  "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.",
2103
2373
  "items": {
2104
2374
  "additionalProperties": false,
@@ -2119,13 +2389,17 @@
2119
2389
  },
2120
2390
  "type": "array"
2121
2391
  },
2392
+ "assets": {
2393
+ "$ref": "#/definitions/Assets",
2394
+ "description": "Specify the directory of static assets to deploy/serve\n\nMore details at https://developers.cloudflare.com/workers/frameworks/"
2395
+ },
2122
2396
  "base_dir": {
2123
2397
  "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.",
2124
2398
  "type": "string"
2125
2399
  },
2126
2400
  "browser": {
2127
2401
  "additionalProperties": false,
2128
- "default": "`{}`",
2402
+ "default": {},
2129
2403
  "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.",
2130
2404
  "properties": {
2131
2405
  "binding": {
@@ -2176,7 +2450,7 @@
2176
2450
  },
2177
2451
  "cloudchamber": {
2178
2452
  "$ref": "#/definitions/CloudchamberConfig",
2179
- "default": "`{}`",
2453
+ "default": {},
2180
2454
  "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."
2181
2455
  },
2182
2456
  "compatibility_date": {
@@ -2184,38 +2458,33 @@
2184
2458
  "type": "string"
2185
2459
  },
2186
2460
  "compatibility_flags": {
2187
- "default": "`[]`",
2188
- "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",
2461
+ "default": [],
2462
+ "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",
2189
2463
  "items": {
2190
2464
  "type": "string"
2191
2465
  },
2192
2466
  "type": "array"
2193
2467
  },
2194
- "constellation": {
2195
- "default": "`[]`",
2196
- "description": "Specifies Constellation projects 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.",
2197
- "items": {
2198
- "additionalProperties": false,
2199
- "properties": {
2200
- "binding": {
2201
- "description": "The binding name used to refer to the project in the Worker.",
2202
- "type": "string"
2468
+ "containers": {
2469
+ "additionalProperties": false,
2470
+ "description": "Container related configuration",
2471
+ "properties": {
2472
+ "app": {
2473
+ "default": {},
2474
+ "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.",
2475
+ "items": {
2476
+ "$ref": "#/definitions/ContainerApp"
2203
2477
  },
2204
- "project_id": {
2205
- "description": "The id of the project.",
2206
- "type": "string"
2207
- }
2208
- },
2209
- "required": [
2210
- "binding",
2211
- "project_id"
2212
- ],
2213
- "type": "object"
2478
+ "type": "array"
2479
+ }
2214
2480
  },
2215
- "type": "array"
2481
+ "required": [
2482
+ "app"
2483
+ ],
2484
+ "type": "object"
2216
2485
  },
2217
2486
  "d1_databases": {
2218
- "default": "`[]`",
2487
+ "default": [],
2219
2488
  "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.",
2220
2489
  "items": {
2221
2490
  "additionalProperties": false,
@@ -2250,9 +2519,7 @@
2250
2519
  }
2251
2520
  },
2252
2521
  "required": [
2253
- "binding",
2254
- "database_name",
2255
- "database_id"
2522
+ "binding"
2256
2523
  ],
2257
2524
  "type": "object"
2258
2525
  },
@@ -2262,12 +2529,12 @@
2262
2529
  "additionalProperties": {
2263
2530
  "type": "string"
2264
2531
  },
2265
- "default": "`{}`",
2532
+ "default": {},
2266
2533
  "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.",
2267
2534
  "type": "object"
2268
2535
  },
2269
2536
  "dispatch_namespaces": {
2270
- "default": "`[]`",
2537
+ "default": [],
2271
2538
  "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.",
2272
2539
  "items": {
2273
2540
  "additionalProperties": false,
@@ -2295,7 +2562,9 @@
2295
2562
  },
2296
2563
  "durable_objects": {
2297
2564
  "additionalProperties": false,
2298
- "default": "`{bindings:[]}`",
2565
+ "default": {
2566
+ "bindings": []
2567
+ },
2299
2568
  "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.",
2300
2569
  "properties": {
2301
2570
  "bindings": {
@@ -2308,7 +2577,7 @@
2308
2577
  "type": "object"
2309
2578
  },
2310
2579
  "experimental_services": {
2311
- "default": "`[]`",
2580
+ "default": [],
2312
2581
  "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.",
2313
2582
  "description": "A list of services that your Worker should be bound to.",
2314
2583
  "items": {
@@ -2345,7 +2614,7 @@
2345
2614
  "type": "boolean"
2346
2615
  },
2347
2616
  "hyperdrive": {
2348
- "default": "`[]`",
2617
+ "default": [],
2349
2618
  "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.",
2350
2619
  "items": {
2351
2620
  "additionalProperties": false,
@@ -2371,13 +2640,27 @@
2371
2640
  },
2372
2641
  "type": "array"
2373
2642
  },
2643
+ "images": {
2644
+ "additionalProperties": false,
2645
+ "default": {},
2646
+ "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.",
2647
+ "properties": {
2648
+ "binding": {
2649
+ "type": "string"
2650
+ }
2651
+ },
2652
+ "required": [
2653
+ "binding"
2654
+ ],
2655
+ "type": "object"
2656
+ },
2374
2657
  "jsx_factory": {
2375
- "default": "`\"React.createElement\"`",
2658
+ "default": "React.createElement",
2376
2659
  "description": "The function to use to replace jsx syntax.",
2377
2660
  "type": "string"
2378
2661
  },
2379
2662
  "jsx_fragment": {
2380
- "default": "`\"React.Fragment\"`",
2663
+ "default": "React.Fragment",
2381
2664
  "description": "The function to use to replace jsx fragment syntax.",
2382
2665
  "type": "string"
2383
2666
  },
@@ -2387,7 +2670,7 @@
2387
2670
  "type": "string"
2388
2671
  },
2389
2672
  "kv_namespaces": {
2390
- "default": "`[]`",
2673
+ "default": [],
2391
2674
  "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.",
2392
2675
  "items": {
2393
2676
  "additionalProperties": false,
@@ -2406,8 +2689,7 @@
2406
2689
  }
2407
2690
  },
2408
2691
  "required": [
2409
- "binding",
2410
- "id"
2692
+ "binding"
2411
2693
  ],
2412
2694
  "type": "object"
2413
2695
  },
@@ -2419,7 +2701,9 @@
2419
2701
  },
2420
2702
  "logfwdr": {
2421
2703
  "additionalProperties": false,
2422
- "default": "`{bindings:[]}`",
2704
+ "default": {
2705
+ "bindings": []
2706
+ },
2423
2707
  "description": "List of bindings that you will send to logfwdr",
2424
2708
  "properties": {
2425
2709
  "bindings": {
@@ -2461,51 +2745,7 @@
2461
2745
  "default": [],
2462
2746
  "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",
2463
2747
  "items": {
2464
- "additionalProperties": false,
2465
- "properties": {
2466
- "deleted_classes": {
2467
- "description": "The Durable Objects being removed.",
2468
- "items": {
2469
- "type": "string"
2470
- },
2471
- "type": "array"
2472
- },
2473
- "new_classes": {
2474
- "description": "The new Durable Objects being defined.",
2475
- "items": {
2476
- "type": "string"
2477
- },
2478
- "type": "array"
2479
- },
2480
- "renamed_classes": {
2481
- "description": "The Durable Objects being renamed.",
2482
- "items": {
2483
- "additionalProperties": false,
2484
- "properties": {
2485
- "from": {
2486
- "type": "string"
2487
- },
2488
- "to": {
2489
- "type": "string"
2490
- }
2491
- },
2492
- "required": [
2493
- "from",
2494
- "to"
2495
- ],
2496
- "type": "object"
2497
- },
2498
- "type": "array"
2499
- },
2500
- "tag": {
2501
- "description": "A unique identifier for this migration.",
2502
- "type": "string"
2503
- }
2504
- },
2505
- "required": [
2506
- "tag"
2507
- ],
2508
- "type": "object"
2748
+ "$ref": "#/definitions/DurableObjectMigration"
2509
2749
  },
2510
2750
  "type": "array"
2511
2751
  },
@@ -2514,7 +2754,7 @@
2514
2754
  "type": "boolean"
2515
2755
  },
2516
2756
  "mtls_certificates": {
2517
- "default": "`[]`",
2757
+ "default": [],
2518
2758
  "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.",
2519
2759
  "items": {
2520
2760
  "additionalProperties": false,
@@ -2548,10 +2788,40 @@
2548
2788
  "description": "Add polyfills for node builtin modules and globals",
2549
2789
  "type": "boolean"
2550
2790
  },
2791
+ "observability": {
2792
+ "$ref": "#/definitions/Observability",
2793
+ "description": "Specify the observability behavior of the Worker."
2794
+ },
2795
+ "pipelines": {
2796
+ "default": [],
2797
+ "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.",
2798
+ "items": {
2799
+ "additionalProperties": false,
2800
+ "properties": {
2801
+ "binding": {
2802
+ "description": "The binding name used to refer to the bound service.",
2803
+ "type": "string"
2804
+ },
2805
+ "pipeline": {
2806
+ "description": "Name of the Pipeline to bind",
2807
+ "type": "string"
2808
+ }
2809
+ },
2810
+ "required": [
2811
+ "binding",
2812
+ "pipeline"
2813
+ ],
2814
+ "type": "object"
2815
+ },
2816
+ "type": "array"
2817
+ },
2551
2818
  "placement": {
2552
2819
  "additionalProperties": false,
2553
2820
  "description": "Specify how the Worker should be located to minimize round-trip time.\n\nMore details: https://developers.cloudflare.com/workers/platform/smart-placement/",
2554
2821
  "properties": {
2822
+ "hint": {
2823
+ "type": "string"
2824
+ },
2555
2825
  "mode": {
2556
2826
  "enum": [
2557
2827
  "off",
@@ -2569,9 +2839,17 @@
2569
2839
  "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`.",
2570
2840
  "type": "boolean"
2571
2841
  },
2842
+ "preview_urls": {
2843
+ "default": true,
2844
+ "description": "Whether we use <version>-<name>.<subdomain>.workers.dev to serve Preview URLs for your Worker.",
2845
+ "type": "boolean"
2846
+ },
2572
2847
  "queues": {
2573
2848
  "additionalProperties": false,
2574
- "default": "`{consumers:[],producers:[]}`",
2849
+ "default": {
2850
+ "consumers": [],
2851
+ "producers": []
2852
+ },
2575
2853
  "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.",
2576
2854
  "properties": {
2577
2855
  "consumers": {
@@ -2656,7 +2934,7 @@
2656
2934
  "type": "object"
2657
2935
  },
2658
2936
  "r2_buckets": {
2659
- "default": "`[]`",
2937
+ "default": [],
2660
2938
  "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.",
2661
2939
  "items": {
2662
2940
  "additionalProperties": false,
@@ -2679,8 +2957,7 @@
2679
2957
  }
2680
2958
  },
2681
2959
  "required": [
2682
- "binding",
2683
- "bucket_name"
2960
+ "binding"
2684
2961
  ],
2685
2962
  "type": "object"
2686
2963
  },
@@ -2705,7 +2982,7 @@
2705
2982
  "type": "array"
2706
2983
  },
2707
2984
  "send_email": {
2708
- "default": "`[]`",
2985
+ "default": [],
2709
2986
  "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.",
2710
2987
  "items": {
2711
2988
  "additionalProperties": false,
@@ -2734,7 +3011,7 @@
2734
3011
  "type": "array"
2735
3012
  },
2736
3013
  "services": {
2737
- "default": "`[]`",
3014
+ "default": [],
2738
3015
  "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.",
2739
3016
  "items": {
2740
3017
  "additionalProperties": false,
@@ -2765,7 +3042,7 @@
2765
3042
  "type": "array"
2766
3043
  },
2767
3044
  "tail_consumers": {
2768
- "default": "`[]`",
3045
+ "default": [],
2769
3046
  "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.",
2770
3047
  "items": {
2771
3048
  "$ref": "#/definitions/TailConsumer"
@@ -2774,7 +3051,9 @@
2774
3051
  },
2775
3052
  "triggers": {
2776
3053
  "additionalProperties": false,
2777
- "default": "`{crons:[]}`",
3054
+ "default": {
3055
+ "crons": []
3056
+ },
2778
3057
  "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",
2779
3058
  "properties": {
2780
3059
  "crons": {
@@ -2795,7 +3074,7 @@
2795
3074
  },
2796
3075
  "unsafe": {
2797
3076
  "additionalProperties": false,
2798
- "default": "`{}`",
3077
+ "default": {},
2799
3078
  "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.",
2800
3079
  "properties": {
2801
3080
  "bindings": {
@@ -2885,12 +3164,12 @@
2885
3164
  }
2886
3165
  ]
2887
3166
  },
2888
- "default": "`{}`",
3167
+ "default": {},
2889
3168
  "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.",
2890
3169
  "type": "object"
2891
3170
  },
2892
3171
  "vectorize": {
2893
- "default": "`[]`",
3172
+ "default": [],
2894
3173
  "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.",
2895
3174
  "items": {
2896
3175
  "additionalProperties": false,
@@ -2926,10 +3205,18 @@
2926
3205
  "type": "object"
2927
3206
  },
2928
3207
  "workers_dev": {
2929
- "default": "`true` (This is a breaking change from Wrangler v1)",
2930
- "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",
3208
+ "default": true,
3209
+ "description": "Whether we use <name>.<subdomain>.workers.dev to test and deploy your Worker.",
2931
3210
  "type": "boolean"
2932
3211
  },
3212
+ "workflows": {
3213
+ "default": [],
3214
+ "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.",
3215
+ "items": {
3216
+ "$ref": "#/definitions/WorkflowBinding"
3217
+ },
3218
+ "type": "array"
3219
+ },
2933
3220
  "zone_id": {
2934
3221
  "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.",
2935
3222
  "type": "string"
@@ -2940,7 +3227,7 @@
2940
3227
  "Route": {
2941
3228
  "anyOf": [
2942
3229
  {
2943
- "$ref": "#/definitions/SimpleRoute"
3230
+ "type": "string"
2944
3231
  },
2945
3232
  {
2946
3233
  "$ref": "#/definitions/ZoneIdRoute"
@@ -2976,9 +3263,6 @@
2976
3263
  ],
2977
3264
  "type": "object"
2978
3265
  },
2979
- "SimpleRoute": {
2980
- "type": "string"
2981
- },
2982
3266
  "TailConsumer": {
2983
3267
  "additionalProperties": false,
2984
3268
  "properties": {
@@ -3017,6 +3301,33 @@
3017
3301
  ],
3018
3302
  "type": "object"
3019
3303
  },
3304
+ "WorkflowBinding": {
3305
+ "additionalProperties": false,
3306
+ "properties": {
3307
+ "binding": {
3308
+ "description": "The name of the binding used to refer to the Workflow",
3309
+ "type": "string"
3310
+ },
3311
+ "class_name": {
3312
+ "description": "The exported class name of the Workflow",
3313
+ "type": "string"
3314
+ },
3315
+ "name": {
3316
+ "description": "The name of the Workflow",
3317
+ "type": "string"
3318
+ },
3319
+ "script_name": {
3320
+ "description": "The script where the Workflow is defined (if it's external to this Worker)",
3321
+ "type": "string"
3322
+ }
3323
+ },
3324
+ "required": [
3325
+ "binding",
3326
+ "name",
3327
+ "class_name"
3328
+ ],
3329
+ "type": "object"
3330
+ },
3020
3331
  "ZoneIdRoute": {
3021
3332
  "additionalProperties": false,
3022
3333
  "properties": {