wrangler 0.0.0-e9f8a2fa → 0.0.0-ea3e16a89

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
  },
@@ -24,10 +74,112 @@
24
74
  "Text",
25
75
  "Data",
26
76
  "PythonModule",
27
- "PythonRequirement"
77
+ "PythonRequirement",
78
+ "NodeJsCompatModule"
28
79
  ],
29
80
  "type": "string"
30
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
+ },
31
183
  "CustomDomainRoute": {
32
184
  "additionalProperties": false,
33
185
  "properties": {
@@ -50,7 +202,7 @@
50
202
  "properties": {
51
203
  "dir": {
52
204
  "deprecated": true,
53
- "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.",
54
206
  "type": "string"
55
207
  },
56
208
  "format": {
@@ -127,6 +279,61 @@
127
279
  },
128
280
  "type": "array"
129
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
+ },
130
337
  "Environment": {
131
338
  "additionalProperties": false,
132
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.",
@@ -137,7 +344,7 @@
137
344
  },
138
345
  "ai": {
139
346
  "additionalProperties": false,
140
- "default": "`{}`",
347
+ "default": {},
141
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.",
142
349
  "properties": {
143
350
  "binding": {
@@ -153,7 +360,7 @@
153
360
  "type": "object"
154
361
  },
155
362
  "analytics_engine_datasets": {
156
- "default": "`[]`",
363
+ "default": [],
157
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.",
158
365
  "items": {
159
366
  "additionalProperties": false,
@@ -174,13 +381,17 @@
174
381
  },
175
382
  "type": "array"
176
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
+ },
177
388
  "base_dir": {
178
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.",
179
390
  "type": "string"
180
391
  },
181
392
  "browser": {
182
393
  "additionalProperties": false,
183
- "default": "`{}`",
394
+ "default": {},
184
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.",
185
396
  "properties": {
186
397
  "binding": {
@@ -231,7 +442,7 @@
231
442
  },
232
443
  "cloudchamber": {
233
444
  "$ref": "#/definitions/CloudchamberConfig",
234
- "default": "`{}`",
445
+ "default": {},
235
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."
236
447
  },
237
448
  "compatibility_date": {
@@ -239,38 +450,33 @@
239
450
  "type": "string"
240
451
  },
241
452
  "compatibility_flags": {
242
- "default": "`[]`",
243
- "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",
244
455
  "items": {
245
456
  "type": "string"
246
457
  },
247
458
  "type": "array"
248
459
  },
249
- "constellation": {
250
- "default": "`[]`",
251
- "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.",
252
- "items": {
253
- "additionalProperties": false,
254
- "properties": {
255
- "binding": {
256
- "description": "The binding name used to refer to the project in the Worker.",
257
- "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"
258
469
  },
259
- "project_id": {
260
- "description": "The id of the project.",
261
- "type": "string"
262
- }
263
- },
264
- "required": [
265
- "binding",
266
- "project_id"
267
- ],
268
- "type": "object"
470
+ "type": "array"
471
+ }
269
472
  },
270
- "type": "array"
473
+ "required": [
474
+ "app"
475
+ ],
476
+ "type": "object"
271
477
  },
272
478
  "d1_databases": {
273
- "default": "`[]`",
479
+ "default": [],
274
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.",
275
481
  "items": {
276
482
  "additionalProperties": false,
@@ -305,9 +511,7 @@
305
511
  }
306
512
  },
307
513
  "required": [
308
- "binding",
309
- "database_name",
310
- "database_id"
514
+ "binding"
311
515
  ],
312
516
  "type": "object"
313
517
  },
@@ -317,12 +521,12 @@
317
521
  "additionalProperties": {
318
522
  "type": "string"
319
523
  },
320
- "default": "`{}`",
524
+ "default": {},
321
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.",
322
526
  "type": "object"
323
527
  },
324
528
  "dispatch_namespaces": {
325
- "default": "`[]`",
529
+ "default": [],
326
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.",
327
531
  "items": {
328
532
  "additionalProperties": false,
@@ -350,7 +554,9 @@
350
554
  },
351
555
  "durable_objects": {
352
556
  "additionalProperties": false,
353
- "default": "`{bindings:[]}`",
557
+ "default": {
558
+ "bindings": []
559
+ },
354
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.",
355
561
  "properties": {
356
562
  "bindings": {
@@ -371,7 +577,7 @@
371
577
  "type": "boolean"
372
578
  },
373
579
  "hyperdrive": {
374
- "default": "`[]`",
580
+ "default": [],
375
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.",
376
582
  "items": {
377
583
  "additionalProperties": false,
@@ -397,18 +603,32 @@
397
603
  },
398
604
  "type": "array"
399
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
+ },
400
620
  "jsx_factory": {
401
- "default": "`\"React.createElement\"`",
621
+ "default": "React.createElement",
402
622
  "description": "The function to use to replace jsx syntax.",
403
623
  "type": "string"
404
624
  },
405
625
  "jsx_fragment": {
406
- "default": "`\"React.Fragment\"`",
626
+ "default": "React.Fragment",
407
627
  "description": "The function to use to replace jsx fragment syntax.",
408
628
  "type": "string"
409
629
  },
410
630
  "kv_namespaces": {
411
- "default": "`[]`",
631
+ "default": [],
412
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.",
413
633
  "items": {
414
634
  "additionalProperties": false,
@@ -427,8 +647,7 @@
427
647
  }
428
648
  },
429
649
  "required": [
430
- "binding",
431
- "id"
650
+ "binding"
432
651
  ],
433
652
  "type": "object"
434
653
  },
@@ -440,7 +659,9 @@
440
659
  },
441
660
  "logfwdr": {
442
661
  "additionalProperties": false,
443
- "default": "`{bindings:[]}`",
662
+ "default": {
663
+ "bindings": []
664
+ },
444
665
  "description": "List of bindings that you will send to logfwdr",
445
666
  "properties": {
446
667
  "bindings": {
@@ -478,12 +699,20 @@
478
699
  "description": "The entrypoint/path to the JavaScript file that will be executed.",
479
700
  "type": "string"
480
701
  },
702
+ "migrations": {
703
+ "default": [],
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",
705
+ "items": {
706
+ "$ref": "#/definitions/DurableObjectMigration"
707
+ },
708
+ "type": "array"
709
+ },
481
710
  "minify": {
482
711
  "description": "Minify the script before uploading.",
483
712
  "type": "boolean"
484
713
  },
485
714
  "mtls_certificates": {
486
- "default": "`[]`",
715
+ "default": [],
487
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.",
488
717
  "items": {
489
718
  "additionalProperties": false,
@@ -517,10 +746,40 @@
517
746
  "description": "Add polyfills for node builtin modules and globals",
518
747
  "type": "boolean"
519
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
+ },
520
776
  "placement": {
521
777
  "additionalProperties": false,
522
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/",
523
779
  "properties": {
780
+ "hint": {
781
+ "type": "string"
782
+ },
524
783
  "mode": {
525
784
  "enum": [
526
785
  "off",
@@ -538,9 +797,17 @@
538
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`.",
539
798
  "type": "boolean"
540
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
+ },
541
805
  "queues": {
542
806
  "additionalProperties": false,
543
- "default": "`{consumers:[],producers:[]}`",
807
+ "default": {
808
+ "consumers": [],
809
+ "producers": []
810
+ },
544
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.",
545
812
  "properties": {
546
813
  "consumers": {
@@ -625,7 +892,7 @@
625
892
  "type": "object"
626
893
  },
627
894
  "r2_buckets": {
628
- "default": "`[]`",
895
+ "default": [],
629
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.",
630
897
  "items": {
631
898
  "additionalProperties": false,
@@ -648,8 +915,7 @@
648
915
  }
649
916
  },
650
917
  "required": [
651
- "binding",
652
- "bucket_name"
918
+ "binding"
653
919
  ],
654
920
  "type": "object"
655
921
  },
@@ -674,7 +940,7 @@
674
940
  "type": "array"
675
941
  },
676
942
  "send_email": {
677
- "default": "`[]`",
943
+ "default": [],
678
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.",
679
945
  "items": {
680
946
  "additionalProperties": false,
@@ -703,7 +969,7 @@
703
969
  "type": "array"
704
970
  },
705
971
  "services": {
706
- "default": "`[]`",
972
+ "default": [],
707
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.",
708
974
  "items": {
709
975
  "additionalProperties": false,
@@ -734,7 +1000,7 @@
734
1000
  "type": "array"
735
1001
  },
736
1002
  "tail_consumers": {
737
- "default": "`[]`",
1003
+ "default": [],
738
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.",
739
1005
  "items": {
740
1006
  "$ref": "#/definitions/TailConsumer"
@@ -743,7 +1009,9 @@
743
1009
  },
744
1010
  "triggers": {
745
1011
  "additionalProperties": false,
746
- "default": "`{crons:[]}`",
1012
+ "default": {
1013
+ "crons": []
1014
+ },
747
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",
748
1016
  "properties": {
749
1017
  "crons": {
@@ -764,7 +1032,7 @@
764
1032
  },
765
1033
  "unsafe": {
766
1034
  "additionalProperties": false,
767
- "default": "`{}`",
1035
+ "default": {},
768
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.",
769
1037
  "properties": {
770
1038
  "bindings": {
@@ -854,12 +1122,12 @@
854
1122
  }
855
1123
  ]
856
1124
  },
857
- "default": "`{}`",
1125
+ "default": {},
858
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.",
859
1127
  "type": "object"
860
1128
  },
861
1129
  "vectorize": {
862
- "default": "`[]`",
1130
+ "default": [],
863
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.",
864
1132
  "items": {
865
1133
  "additionalProperties": false,
@@ -895,10 +1163,18 @@
895
1163
  "type": "object"
896
1164
  },
897
1165
  "workers_dev": {
898
- "default": "`true` (This is a breaking change from Wrangler v1)",
899
- "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.",
900
1168
  "type": "boolean"
901
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
+ },
902
1178
  "zone_id": {
903
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.",
904
1180
  "type": "string"
@@ -909,7 +1185,7 @@
909
1185
  "build",
910
1186
  "cloudchamber",
911
1187
  "compatibility_flags",
912
- "constellation",
1188
+ "containers",
913
1189
  "d1_databases",
914
1190
  "define",
915
1191
  "dispatch_namespaces",
@@ -919,7 +1195,9 @@
919
1195
  "jsx_fragment",
920
1196
  "kv_namespaces",
921
1197
  "logfwdr",
1198
+ "migrations",
922
1199
  "mtls_certificates",
1200
+ "pipelines",
923
1201
  "queues",
924
1202
  "r2_buckets",
925
1203
  "rules",
@@ -927,7 +1205,8 @@
927
1205
  "triggers",
928
1206
  "unsafe",
929
1207
  "vars",
930
- "vectorize"
1208
+ "vectorize",
1209
+ "workflows"
931
1210
  ],
932
1211
  "type": "object"
933
1212
  },
@@ -953,6 +1232,37 @@
953
1232
  "Literal": {
954
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"
955
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
+ },
956
1266
  "RawConfig": {
957
1267
  "additionalProperties": false,
958
1268
  "properties": {
@@ -965,7 +1275,7 @@
965
1275
  },
966
1276
  "ai": {
967
1277
  "additionalProperties": false,
968
- "default": "`{}`",
1278
+ "default": {},
969
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.",
970
1280
  "properties": {
971
1281
  "binding": {
@@ -980,8 +1290,15 @@
980
1290
  ],
981
1291
  "type": "object"
982
1292
  },
1293
+ "alias": {
1294
+ "additionalProperties": {
1295
+ "type": "string"
1296
+ },
1297
+ "description": "A map of module aliases. Lets you swap out a module for any others. Corresponds with esbuild's `alias` config",
1298
+ "type": "object"
1299
+ },
983
1300
  "analytics_engine_datasets": {
984
- "default": "`[]`",
1301
+ "default": [],
985
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.",
986
1303
  "items": {
987
1304
  "additionalProperties": false,
@@ -1003,38 +1320,8 @@
1003
1320
  "type": "array"
1004
1321
  },
1005
1322
  "assets": {
1006
- "additionalProperties": false,
1007
- "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.",
1008
- "properties": {
1009
- "browser_TTL": {
1010
- "type": "number"
1011
- },
1012
- "bucket": {
1013
- "type": "string"
1014
- },
1015
- "exclude": {
1016
- "items": {
1017
- "type": "string"
1018
- },
1019
- "type": "array"
1020
- },
1021
- "include": {
1022
- "items": {
1023
- "type": "string"
1024
- },
1025
- "type": "array"
1026
- },
1027
- "serve_single_page_app": {
1028
- "type": "boolean"
1029
- }
1030
- },
1031
- "required": [
1032
- "bucket",
1033
- "include",
1034
- "exclude",
1035
- "serve_single_page_app"
1036
- ],
1037
- "type": "object"
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/"
1038
1325
  },
1039
1326
  "base_dir": {
1040
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.",
@@ -1042,7 +1329,7 @@
1042
1329
  },
1043
1330
  "browser": {
1044
1331
  "additionalProperties": false,
1045
- "default": "`{}`",
1332
+ "default": {},
1046
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.",
1047
1334
  "properties": {
1048
1335
  "binding": {
@@ -1093,7 +1380,7 @@
1093
1380
  },
1094
1381
  "cloudchamber": {
1095
1382
  "$ref": "#/definitions/CloudchamberConfig",
1096
- "default": "`{}`",
1383
+ "default": {},
1097
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."
1098
1385
  },
1099
1386
  "compatibility_date": {
@@ -1101,41 +1388,33 @@
1101
1388
  "type": "string"
1102
1389
  },
1103
1390
  "compatibility_flags": {
1104
- "default": "`[]`",
1105
- "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",
1106
1393
  "items": {
1107
1394
  "type": "string"
1108
1395
  },
1109
1396
  "type": "array"
1110
1397
  },
1111
- "configPath": {
1112
- "type": "string"
1113
- },
1114
- "constellation": {
1115
- "default": "`[]`",
1116
- "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.",
1117
- "items": {
1118
- "additionalProperties": false,
1119
- "properties": {
1120
- "binding": {
1121
- "description": "The binding name used to refer to the project in the Worker.",
1122
- "type": "string"
1123
- },
1124
- "project_id": {
1125
- "description": "The id of the project.",
1126
- "type": "string"
1127
- }
1128
- },
1129
- "required": [
1130
- "binding",
1131
- "project_id"
1132
- ],
1133
- "type": "object"
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"
1407
+ },
1408
+ "type": "array"
1409
+ }
1134
1410
  },
1135
- "type": "array"
1411
+ "required": [
1412
+ "app"
1413
+ ],
1414
+ "type": "object"
1136
1415
  },
1137
1416
  "d1_databases": {
1138
- "default": "`[]`",
1417
+ "default": [],
1139
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.",
1140
1419
  "items": {
1141
1420
  "additionalProperties": false,
@@ -1170,9 +1449,7 @@
1170
1449
  }
1171
1450
  },
1172
1451
  "required": [
1173
- "binding",
1174
- "database_name",
1175
- "database_id"
1452
+ "binding"
1176
1453
  ],
1177
1454
  "type": "object"
1178
1455
  },
@@ -1189,7 +1466,7 @@
1189
1466
  "additionalProperties": {
1190
1467
  "type": "string"
1191
1468
  },
1192
- "default": "`{}`",
1469
+ "default": {},
1193
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.",
1194
1471
  "type": "object"
1195
1472
  },
@@ -1198,7 +1475,7 @@
1198
1475
  "description": "Options to configure the development server that your worker will use."
1199
1476
  },
1200
1477
  "dispatch_namespaces": {
1201
- "default": "`[]`",
1478
+ "default": [],
1202
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.",
1203
1480
  "items": {
1204
1481
  "additionalProperties": false,
@@ -1226,7 +1503,9 @@
1226
1503
  },
1227
1504
  "durable_objects": {
1228
1505
  "additionalProperties": false,
1229
- "default": "`{bindings:[]}`",
1506
+ "default": {
1507
+ "bindings": []
1508
+ },
1230
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.",
1231
1510
  "properties": {
1232
1511
  "bindings": {
@@ -1247,7 +1526,7 @@
1247
1526
  "type": "object"
1248
1527
  },
1249
1528
  "experimental_services": {
1250
- "default": "`[]`",
1529
+ "default": [],
1251
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.",
1252
1531
  "description": "A list of services that your Worker should be bound to.",
1253
1532
  "items": {
@@ -1284,7 +1563,7 @@
1284
1563
  "type": "boolean"
1285
1564
  },
1286
1565
  "hyperdrive": {
1287
- "default": "`[]`",
1566
+ "default": [],
1288
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.",
1289
1568
  "items": {
1290
1569
  "additionalProperties": false,
@@ -1310,19 +1589,33 @@
1310
1589
  },
1311
1590
  "type": "array"
1312
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
+ },
1313
1606
  "jsx_factory": {
1314
- "default": "`\"React.createElement\"`",
1607
+ "default": "React.createElement",
1315
1608
  "description": "The function to use to replace jsx syntax.",
1316
1609
  "type": "string"
1317
1610
  },
1318
1611
  "jsx_fragment": {
1319
- "default": "`\"React.Fragment\"`",
1612
+ "default": "React.Fragment",
1320
1613
  "description": "The function to use to replace jsx fragment syntax.",
1321
1614
  "type": "string"
1322
1615
  },
1323
1616
  "keep_vars": {
1324
1617
  "default": false,
1325
- "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.",
1326
1619
  "type": "boolean"
1327
1620
  },
1328
1621
  "kv-namespaces": {
@@ -1331,7 +1624,7 @@
1331
1624
  "type": "string"
1332
1625
  },
1333
1626
  "kv_namespaces": {
1334
- "default": "`[]`",
1627
+ "default": [],
1335
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.",
1336
1629
  "items": {
1337
1630
  "additionalProperties": false,
@@ -1350,13 +1643,53 @@
1350
1643
  }
1351
1644
  },
1352
1645
  "required": [
1353
- "binding",
1354
- "id"
1646
+ "binding"
1355
1647
  ],
1356
1648
  "type": "object"
1357
1649
  },
1358
1650
  "type": "array"
1359
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"
1686
+ },
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`."
1692
+ },
1360
1693
  "legacy_env": {
1361
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.",
1362
1695
  "type": "boolean"
@@ -1367,7 +1700,9 @@
1367
1700
  },
1368
1701
  "logfwdr": {
1369
1702
  "additionalProperties": false,
1370
- "default": "`{bindings:[]}`",
1703
+ "default": {
1704
+ "bindings": []
1705
+ },
1371
1706
  "description": "List of bindings that you will send to logfwdr",
1372
1707
  "properties": {
1373
1708
  "bindings": {
@@ -1409,51 +1744,7 @@
1409
1744
  "default": [],
1410
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",
1411
1746
  "items": {
1412
- "additionalProperties": false,
1413
- "properties": {
1414
- "deleted_classes": {
1415
- "description": "The Durable Objects being removed.",
1416
- "items": {
1417
- "type": "string"
1418
- },
1419
- "type": "array"
1420
- },
1421
- "new_classes": {
1422
- "description": "The new Durable Objects being defined.",
1423
- "items": {
1424
- "type": "string"
1425
- },
1426
- "type": "array"
1427
- },
1428
- "renamed_classes": {
1429
- "description": "The Durable Objects being renamed.",
1430
- "items": {
1431
- "additionalProperties": false,
1432
- "properties": {
1433
- "from": {
1434
- "type": "string"
1435
- },
1436
- "to": {
1437
- "type": "string"
1438
- }
1439
- },
1440
- "required": [
1441
- "from",
1442
- "to"
1443
- ],
1444
- "type": "object"
1445
- },
1446
- "type": "array"
1447
- },
1448
- "tag": {
1449
- "description": "A unique identifier for this migration.",
1450
- "type": "string"
1451
- }
1452
- },
1453
- "required": [
1454
- "tag"
1455
- ],
1456
- "type": "object"
1747
+ "$ref": "#/definitions/DurableObjectMigration"
1457
1748
  },
1458
1749
  "type": "array"
1459
1750
  },
@@ -1466,7 +1757,7 @@
1466
1757
  "type": "boolean"
1467
1758
  },
1468
1759
  "mtls_certificates": {
1469
- "default": "`[]`",
1760
+ "default": [],
1470
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.",
1471
1762
  "items": {
1472
1763
  "additionalProperties": false,
@@ -1500,14 +1791,44 @@
1500
1791
  "description": "Add polyfills for node builtin modules and globals",
1501
1792
  "type": "boolean"
1502
1793
  },
1794
+ "observability": {
1795
+ "$ref": "#/definitions/Observability",
1796
+ "description": "Specify the observability behavior of the Worker."
1797
+ },
1503
1798
  "pages_build_output_dir": {
1504
- "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.",
1505
1800
  "type": "string"
1506
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
+ },
1507
1825
  "placement": {
1508
1826
  "additionalProperties": false,
1509
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/",
1510
1828
  "properties": {
1829
+ "hint": {
1830
+ "type": "string"
1831
+ },
1511
1832
  "mode": {
1512
1833
  "enum": [
1513
1834
  "off",
@@ -1525,9 +1846,17 @@
1525
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`.",
1526
1847
  "type": "boolean"
1527
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
+ },
1528
1854
  "queues": {
1529
1855
  "additionalProperties": false,
1530
- "default": "`{consumers:[],producers:[]}`",
1856
+ "default": {
1857
+ "consumers": [],
1858
+ "producers": []
1859
+ },
1531
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.",
1532
1861
  "properties": {
1533
1862
  "consumers": {
@@ -1612,7 +1941,7 @@
1612
1941
  "type": "object"
1613
1942
  },
1614
1943
  "r2_buckets": {
1615
- "default": "`[]`",
1944
+ "default": [],
1616
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.",
1617
1946
  "items": {
1618
1947
  "additionalProperties": false,
@@ -1635,8 +1964,7 @@
1635
1964
  }
1636
1965
  },
1637
1966
  "required": [
1638
- "binding",
1639
- "bucket_name"
1967
+ "binding"
1640
1968
  ],
1641
1969
  "type": "object"
1642
1970
  },
@@ -1661,7 +1989,7 @@
1661
1989
  "type": "array"
1662
1990
  },
1663
1991
  "send_email": {
1664
- "default": "`[]`",
1992
+ "default": [],
1665
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.",
1666
1994
  "items": {
1667
1995
  "additionalProperties": false,
@@ -1694,7 +2022,7 @@
1694
2022
  "type": "boolean"
1695
2023
  },
1696
2024
  "services": {
1697
- "default": "`[]`",
2025
+ "default": [],
1698
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.",
1699
2027
  "items": {
1700
2028
  "additionalProperties": false,
@@ -1729,7 +2057,7 @@
1729
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",
1730
2058
  "properties": {
1731
2059
  "bucket": {
1732
- "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.",
1733
2061
  "type": "string"
1734
2062
  },
1735
2063
  "entry-point": {
@@ -1760,7 +2088,7 @@
1760
2088
  "type": "object"
1761
2089
  },
1762
2090
  "tail_consumers": {
1763
- "default": "`[]`",
2091
+ "default": [],
1764
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.",
1765
2093
  "items": {
1766
2094
  "$ref": "#/definitions/TailConsumer"
@@ -1776,7 +2104,9 @@
1776
2104
  },
1777
2105
  "triggers": {
1778
2106
  "additionalProperties": false,
1779
- "default": "`{crons:[]}`",
2107
+ "default": {
2108
+ "crons": []
2109
+ },
1780
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",
1781
2111
  "properties": {
1782
2112
  "crons": {
@@ -1807,7 +2137,7 @@
1807
2137
  },
1808
2138
  "unsafe": {
1809
2139
  "additionalProperties": false,
1810
- "default": "`{}`",
2140
+ "default": {},
1811
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.",
1812
2142
  "properties": {
1813
2143
  "bindings": {
@@ -1897,12 +2227,12 @@
1897
2227
  }
1898
2228
  ]
1899
2229
  },
1900
- "default": "`{}`",
2230
+ "default": {},
1901
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.",
1902
2232
  "type": "object"
1903
2233
  },
1904
2234
  "vectorize": {
1905
- "default": "`[]`",
2235
+ "default": [],
1906
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.",
1907
2237
  "items": {
1908
2238
  "additionalProperties": false,
@@ -1950,10 +2280,18 @@
1950
2280
  "type": "string"
1951
2281
  },
1952
2282
  "workers_dev": {
1953
- "default": "`true` (This is a breaking change from Wrangler v1)",
1954
- "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.",
1955
2285
  "type": "boolean"
1956
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
+ },
1957
2295
  "zone_id": {
1958
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.",
1959
2297
  "type": "string"
@@ -2014,7 +2352,7 @@
2014
2352
  },
2015
2353
  "ai": {
2016
2354
  "additionalProperties": false,
2017
- "default": "`{}`",
2355
+ "default": {},
2018
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.",
2019
2357
  "properties": {
2020
2358
  "binding": {
@@ -2030,7 +2368,7 @@
2030
2368
  "type": "object"
2031
2369
  },
2032
2370
  "analytics_engine_datasets": {
2033
- "default": "`[]`",
2371
+ "default": [],
2034
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.",
2035
2373
  "items": {
2036
2374
  "additionalProperties": false,
@@ -2051,13 +2389,17 @@
2051
2389
  },
2052
2390
  "type": "array"
2053
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
+ },
2054
2396
  "base_dir": {
2055
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.",
2056
2398
  "type": "string"
2057
2399
  },
2058
2400
  "browser": {
2059
2401
  "additionalProperties": false,
2060
- "default": "`{}`",
2402
+ "default": {},
2061
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.",
2062
2404
  "properties": {
2063
2405
  "binding": {
@@ -2108,7 +2450,7 @@
2108
2450
  },
2109
2451
  "cloudchamber": {
2110
2452
  "$ref": "#/definitions/CloudchamberConfig",
2111
- "default": "`{}`",
2453
+ "default": {},
2112
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."
2113
2455
  },
2114
2456
  "compatibility_date": {
@@ -2116,38 +2458,33 @@
2116
2458
  "type": "string"
2117
2459
  },
2118
2460
  "compatibility_flags": {
2119
- "default": "`[]`",
2120
- "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",
2121
2463
  "items": {
2122
2464
  "type": "string"
2123
2465
  },
2124
2466
  "type": "array"
2125
2467
  },
2126
- "constellation": {
2127
- "default": "`[]`",
2128
- "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.",
2129
- "items": {
2130
- "additionalProperties": false,
2131
- "properties": {
2132
- "binding": {
2133
- "description": "The binding name used to refer to the project in the Worker.",
2134
- "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"
2135
2477
  },
2136
- "project_id": {
2137
- "description": "The id of the project.",
2138
- "type": "string"
2139
- }
2140
- },
2141
- "required": [
2142
- "binding",
2143
- "project_id"
2144
- ],
2145
- "type": "object"
2478
+ "type": "array"
2479
+ }
2146
2480
  },
2147
- "type": "array"
2481
+ "required": [
2482
+ "app"
2483
+ ],
2484
+ "type": "object"
2148
2485
  },
2149
2486
  "d1_databases": {
2150
- "default": "`[]`",
2487
+ "default": [],
2151
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.",
2152
2489
  "items": {
2153
2490
  "additionalProperties": false,
@@ -2182,9 +2519,7 @@
2182
2519
  }
2183
2520
  },
2184
2521
  "required": [
2185
- "binding",
2186
- "database_name",
2187
- "database_id"
2522
+ "binding"
2188
2523
  ],
2189
2524
  "type": "object"
2190
2525
  },
@@ -2194,12 +2529,12 @@
2194
2529
  "additionalProperties": {
2195
2530
  "type": "string"
2196
2531
  },
2197
- "default": "`{}`",
2532
+ "default": {},
2198
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.",
2199
2534
  "type": "object"
2200
2535
  },
2201
2536
  "dispatch_namespaces": {
2202
- "default": "`[]`",
2537
+ "default": [],
2203
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.",
2204
2539
  "items": {
2205
2540
  "additionalProperties": false,
@@ -2227,7 +2562,9 @@
2227
2562
  },
2228
2563
  "durable_objects": {
2229
2564
  "additionalProperties": false,
2230
- "default": "`{bindings:[]}`",
2565
+ "default": {
2566
+ "bindings": []
2567
+ },
2231
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.",
2232
2569
  "properties": {
2233
2570
  "bindings": {
@@ -2240,7 +2577,7 @@
2240
2577
  "type": "object"
2241
2578
  },
2242
2579
  "experimental_services": {
2243
- "default": "`[]`",
2580
+ "default": [],
2244
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.",
2245
2582
  "description": "A list of services that your Worker should be bound to.",
2246
2583
  "items": {
@@ -2277,7 +2614,7 @@
2277
2614
  "type": "boolean"
2278
2615
  },
2279
2616
  "hyperdrive": {
2280
- "default": "`[]`",
2617
+ "default": [],
2281
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.",
2282
2619
  "items": {
2283
2620
  "additionalProperties": false,
@@ -2303,13 +2640,27 @@
2303
2640
  },
2304
2641
  "type": "array"
2305
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
+ },
2306
2657
  "jsx_factory": {
2307
- "default": "`\"React.createElement\"`",
2658
+ "default": "React.createElement",
2308
2659
  "description": "The function to use to replace jsx syntax.",
2309
2660
  "type": "string"
2310
2661
  },
2311
2662
  "jsx_fragment": {
2312
- "default": "`\"React.Fragment\"`",
2663
+ "default": "React.Fragment",
2313
2664
  "description": "The function to use to replace jsx fragment syntax.",
2314
2665
  "type": "string"
2315
2666
  },
@@ -2319,7 +2670,7 @@
2319
2670
  "type": "string"
2320
2671
  },
2321
2672
  "kv_namespaces": {
2322
- "default": "`[]`",
2673
+ "default": [],
2323
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.",
2324
2675
  "items": {
2325
2676
  "additionalProperties": false,
@@ -2338,8 +2689,7 @@
2338
2689
  }
2339
2690
  },
2340
2691
  "required": [
2341
- "binding",
2342
- "id"
2692
+ "binding"
2343
2693
  ],
2344
2694
  "type": "object"
2345
2695
  },
@@ -2351,7 +2701,9 @@
2351
2701
  },
2352
2702
  "logfwdr": {
2353
2703
  "additionalProperties": false,
2354
- "default": "`{bindings:[]}`",
2704
+ "default": {
2705
+ "bindings": []
2706
+ },
2355
2707
  "description": "List of bindings that you will send to logfwdr",
2356
2708
  "properties": {
2357
2709
  "bindings": {
@@ -2389,12 +2741,20 @@
2389
2741
  "description": "The entrypoint/path to the JavaScript file that will be executed.",
2390
2742
  "type": "string"
2391
2743
  },
2744
+ "migrations": {
2745
+ "default": [],
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",
2747
+ "items": {
2748
+ "$ref": "#/definitions/DurableObjectMigration"
2749
+ },
2750
+ "type": "array"
2751
+ },
2392
2752
  "minify": {
2393
2753
  "description": "Minify the script before uploading.",
2394
2754
  "type": "boolean"
2395
2755
  },
2396
2756
  "mtls_certificates": {
2397
- "default": "`[]`",
2757
+ "default": [],
2398
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.",
2399
2759
  "items": {
2400
2760
  "additionalProperties": false,
@@ -2428,10 +2788,40 @@
2428
2788
  "description": "Add polyfills for node builtin modules and globals",
2429
2789
  "type": "boolean"
2430
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
+ },
2431
2818
  "placement": {
2432
2819
  "additionalProperties": false,
2433
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/",
2434
2821
  "properties": {
2822
+ "hint": {
2823
+ "type": "string"
2824
+ },
2435
2825
  "mode": {
2436
2826
  "enum": [
2437
2827
  "off",
@@ -2449,9 +2839,17 @@
2449
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`.",
2450
2840
  "type": "boolean"
2451
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
+ },
2452
2847
  "queues": {
2453
2848
  "additionalProperties": false,
2454
- "default": "`{consumers:[],producers:[]}`",
2849
+ "default": {
2850
+ "consumers": [],
2851
+ "producers": []
2852
+ },
2455
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.",
2456
2854
  "properties": {
2457
2855
  "consumers": {
@@ -2536,7 +2934,7 @@
2536
2934
  "type": "object"
2537
2935
  },
2538
2936
  "r2_buckets": {
2539
- "default": "`[]`",
2937
+ "default": [],
2540
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.",
2541
2939
  "items": {
2542
2940
  "additionalProperties": false,
@@ -2559,8 +2957,7 @@
2559
2957
  }
2560
2958
  },
2561
2959
  "required": [
2562
- "binding",
2563
- "bucket_name"
2960
+ "binding"
2564
2961
  ],
2565
2962
  "type": "object"
2566
2963
  },
@@ -2585,7 +2982,7 @@
2585
2982
  "type": "array"
2586
2983
  },
2587
2984
  "send_email": {
2588
- "default": "`[]`",
2985
+ "default": [],
2589
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.",
2590
2987
  "items": {
2591
2988
  "additionalProperties": false,
@@ -2614,7 +3011,7 @@
2614
3011
  "type": "array"
2615
3012
  },
2616
3013
  "services": {
2617
- "default": "`[]`",
3014
+ "default": [],
2618
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.",
2619
3016
  "items": {
2620
3017
  "additionalProperties": false,
@@ -2645,7 +3042,7 @@
2645
3042
  "type": "array"
2646
3043
  },
2647
3044
  "tail_consumers": {
2648
- "default": "`[]`",
3045
+ "default": [],
2649
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.",
2650
3047
  "items": {
2651
3048
  "$ref": "#/definitions/TailConsumer"
@@ -2654,7 +3051,9 @@
2654
3051
  },
2655
3052
  "triggers": {
2656
3053
  "additionalProperties": false,
2657
- "default": "`{crons:[]}`",
3054
+ "default": {
3055
+ "crons": []
3056
+ },
2658
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",
2659
3058
  "properties": {
2660
3059
  "crons": {
@@ -2675,7 +3074,7 @@
2675
3074
  },
2676
3075
  "unsafe": {
2677
3076
  "additionalProperties": false,
2678
- "default": "`{}`",
3077
+ "default": {},
2679
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.",
2680
3079
  "properties": {
2681
3080
  "bindings": {
@@ -2765,12 +3164,12 @@
2765
3164
  }
2766
3165
  ]
2767
3166
  },
2768
- "default": "`{}`",
3167
+ "default": {},
2769
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.",
2770
3169
  "type": "object"
2771
3170
  },
2772
3171
  "vectorize": {
2773
- "default": "`[]`",
3172
+ "default": [],
2774
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.",
2775
3174
  "items": {
2776
3175
  "additionalProperties": false,
@@ -2806,10 +3205,18 @@
2806
3205
  "type": "object"
2807
3206
  },
2808
3207
  "workers_dev": {
2809
- "default": "`true` (This is a breaking change from Wrangler v1)",
2810
- "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.",
2811
3210
  "type": "boolean"
2812
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
+ },
2813
3220
  "zone_id": {
2814
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.",
2815
3222
  "type": "string"
@@ -2820,7 +3227,7 @@
2820
3227
  "Route": {
2821
3228
  "anyOf": [
2822
3229
  {
2823
- "$ref": "#/definitions/SimpleRoute"
3230
+ "type": "string"
2824
3231
  },
2825
3232
  {
2826
3233
  "$ref": "#/definitions/ZoneIdRoute"
@@ -2856,14 +3263,11 @@
2856
3263
  ],
2857
3264
  "type": "object"
2858
3265
  },
2859
- "SimpleRoute": {
2860
- "type": "string"
2861
- },
2862
3266
  "TailConsumer": {
2863
3267
  "additionalProperties": false,
2864
3268
  "properties": {
2865
3269
  "environment": {
2866
- "description": "(Optional) The environt of the service.",
3270
+ "description": "(Optional) The environment of the service.",
2867
3271
  "type": "string"
2868
3272
  },
2869
3273
  "service": {
@@ -2897,6 +3301,33 @@
2897
3301
  ],
2898
3302
  "type": "object"
2899
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
+ },
2900
3331
  "ZoneIdRoute": {
2901
3332
  "additionalProperties": false,
2902
3333
  "properties": {