wrangler 0.0.0-ce00a44c → 0.0.0-ce165ff11

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,56 @@
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": "If true, then respond to requests that match an asset with that asset directly. If false, route every request to the User Worker, whether or not it matches an asset.",
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
+ },
40
+ "type": "object"
41
+ },
5
42
  "CloudchamberConfig": {
6
43
  "additionalProperties": false,
7
44
  "description": "Configuration in wrangler for Cloudchamber",
8
45
  "properties": {
46
+ "image": {
47
+ "type": "string"
48
+ },
49
+ "ipv4": {
50
+ "type": "boolean"
51
+ },
52
+ "location": {
53
+ "type": "string"
54
+ },
9
55
  "memory": {
10
56
  "type": "string"
11
57
  },
@@ -24,10 +70,112 @@
24
70
  "Text",
25
71
  "Data",
26
72
  "PythonModule",
27
- "PythonRequirement"
73
+ "PythonRequirement",
74
+ "NodeJsCompatModule"
28
75
  ],
29
76
  "type": "string"
30
77
  },
78
+ "ContainerApp": {
79
+ "additionalProperties": false,
80
+ "description": "Configuration for a container application",
81
+ "properties": {
82
+ "configuration": {
83
+ "additionalProperties": false,
84
+ "properties": {
85
+ "image": {
86
+ "type": "string"
87
+ },
88
+ "labels": {
89
+ "items": {
90
+ "additionalProperties": false,
91
+ "properties": {
92
+ "name": {
93
+ "type": "string"
94
+ },
95
+ "value": {
96
+ "type": "string"
97
+ }
98
+ },
99
+ "required": [
100
+ "name",
101
+ "value"
102
+ ],
103
+ "type": "object"
104
+ },
105
+ "type": "array"
106
+ },
107
+ "secrets": {
108
+ "items": {
109
+ "additionalProperties": false,
110
+ "properties": {
111
+ "name": {
112
+ "type": "string"
113
+ },
114
+ "secret": {
115
+ "type": "string"
116
+ },
117
+ "type": {
118
+ "const": "env",
119
+ "type": "string"
120
+ }
121
+ },
122
+ "required": [
123
+ "name",
124
+ "type",
125
+ "secret"
126
+ ],
127
+ "type": "object"
128
+ },
129
+ "type": "array"
130
+ }
131
+ },
132
+ "required": [
133
+ "image"
134
+ ],
135
+ "type": "object"
136
+ },
137
+ "constraints": {
138
+ "additionalProperties": false,
139
+ "properties": {
140
+ "cities": {
141
+ "items": {
142
+ "type": "string"
143
+ },
144
+ "type": "array"
145
+ },
146
+ "regions": {
147
+ "items": {
148
+ "type": "string"
149
+ },
150
+ "type": "array"
151
+ },
152
+ "tier": {
153
+ "type": "number"
154
+ }
155
+ },
156
+ "type": "object"
157
+ },
158
+ "instances": {
159
+ "type": "number"
160
+ },
161
+ "name": {
162
+ "type": "string"
163
+ },
164
+ "scheduling_policy": {
165
+ "enum": [
166
+ "regional",
167
+ "moon"
168
+ ],
169
+ "type": "string"
170
+ }
171
+ },
172
+ "required": [
173
+ "name",
174
+ "instances",
175
+ "configuration"
176
+ ],
177
+ "type": "object"
178
+ },
31
179
  "CustomDomainRoute": {
32
180
  "additionalProperties": false,
33
181
  "properties": {
@@ -50,7 +198,7 @@
50
198
  "properties": {
51
199
  "dir": {
52
200
  "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.",
201
+ "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
202
  "type": "string"
55
203
  },
56
204
  "format": {
@@ -82,7 +230,7 @@
82
230
  "type": "string"
83
231
  },
84
232
  "parameters": {
85
- "description": "(Optional) List of parameter names, for sending context from your dispatch worker to the outbound handler",
233
+ "description": "(Optional) List of parameter names, for sending context from your dispatch Worker to the outbound handler",
86
234
  "items": {
87
235
  "type": "string"
88
236
  },
@@ -115,7 +263,7 @@
115
263
  "type": "string"
116
264
  },
117
265
  "script_name": {
118
- "description": "The script where the Durable Object is defined (if it's external to this worker)",
266
+ "description": "The script where the Durable Object is defined (if it's external to this Worker)",
119
267
  "type": "string"
120
268
  }
121
269
  },
@@ -127,6 +275,61 @@
127
275
  },
128
276
  "type": "array"
129
277
  },
278
+ "DurableObjectMigration": {
279
+ "additionalProperties": false,
280
+ "description": "Configuration in wrangler for Durable Object Migrations",
281
+ "properties": {
282
+ "deleted_classes": {
283
+ "description": "The Durable Objects being removed.",
284
+ "items": {
285
+ "type": "string"
286
+ },
287
+ "type": "array"
288
+ },
289
+ "new_classes": {
290
+ "description": "The new Durable Objects being defined.",
291
+ "items": {
292
+ "type": "string"
293
+ },
294
+ "type": "array"
295
+ },
296
+ "new_sqlite_classes": {
297
+ "description": "The new SQLite Durable Objects being defined.",
298
+ "items": {
299
+ "type": "string"
300
+ },
301
+ "type": "array"
302
+ },
303
+ "renamed_classes": {
304
+ "description": "The Durable Objects being renamed.",
305
+ "items": {
306
+ "additionalProperties": false,
307
+ "properties": {
308
+ "from": {
309
+ "type": "string"
310
+ },
311
+ "to": {
312
+ "type": "string"
313
+ }
314
+ },
315
+ "required": [
316
+ "from",
317
+ "to"
318
+ ],
319
+ "type": "object"
320
+ },
321
+ "type": "array"
322
+ },
323
+ "tag": {
324
+ "description": "A unique identifier for this migration.",
325
+ "type": "string"
326
+ }
327
+ },
328
+ "required": [
329
+ "tag"
330
+ ],
331
+ "type": "object"
332
+ },
130
333
  "Environment": {
131
334
  "additionalProperties": false,
132
335
  "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,10 +340,14 @@
137
340
  },
138
341
  "ai": {
139
342
  "additionalProperties": false,
140
- "description": "Binding to the AI project.",
343
+ "default": "`{}`",
344
+ "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.",
141
345
  "properties": {
142
346
  "binding": {
143
347
  "type": "string"
348
+ },
349
+ "staging": {
350
+ "type": "boolean"
144
351
  }
145
352
  },
146
353
  "required": [
@@ -155,7 +362,7 @@
155
362
  "additionalProperties": false,
156
363
  "properties": {
157
364
  "binding": {
158
- "description": "The binding name used to refer to the dataset in the worker.",
365
+ "description": "The binding name used to refer to the dataset in the Worker.",
159
366
  "type": "string"
160
367
  },
161
368
  "dataset": {
@@ -170,13 +377,18 @@
170
377
  },
171
378
  "type": "array"
172
379
  },
380
+ "assets": {
381
+ "$ref": "#/definitions/Assets",
382
+ "description": "Specify the directory of static assets to deploy/serve\n\nMore details at https://developers.cloudflare.com/workers/frameworks/"
383
+ },
173
384
  "base_dir": {
174
- "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.",
385
+ "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.",
175
386
  "type": "string"
176
387
  },
177
388
  "browser": {
178
389
  "additionalProperties": false,
179
- "description": "A browser that will be usable from the worker.",
390
+ "default": "`{}`",
391
+ "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.",
180
392
  "properties": {
181
393
  "binding": {
182
394
  "type": "string"
@@ -189,7 +401,9 @@
189
401
  },
190
402
  "build": {
191
403
  "additionalProperties": false,
192
- "default": {},
404
+ "default": {
405
+ "watch_dir": "./src"
406
+ },
193
407
  "description": "Configures a custom build step to be run by Wrangler when building your Worker.\n\nRefer to the [custom builds documentation](https://developers.cloudflare.com/workers/cli-wrangler/configuration#build) for more details.",
194
408
  "properties": {
195
409
  "command": {
@@ -232,34 +446,30 @@
232
446
  "type": "string"
233
447
  },
234
448
  "compatibility_flags": {
449
+ "default": "`[]`",
235
450
  "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",
236
451
  "items": {
237
452
  "type": "string"
238
453
  },
239
454
  "type": "array"
240
455
  },
241
- "constellation": {
242
- "default": "`[]`",
243
- "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.",
244
- "items": {
245
- "additionalProperties": false,
246
- "properties": {
247
- "binding": {
248
- "description": "The binding name used to refer to the project in the worker.",
249
- "type": "string"
456
+ "containers": {
457
+ "additionalProperties": false,
458
+ "description": "Container related configuration",
459
+ "properties": {
460
+ "app": {
461
+ "default": "`{}`",
462
+ "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.",
463
+ "items": {
464
+ "$ref": "#/definitions/ContainerApp"
250
465
  },
251
- "project_id": {
252
- "description": "The id of the project.",
253
- "type": "string"
254
- }
255
- },
256
- "required": [
257
- "binding",
258
- "project_id"
259
- ],
260
- "type": "object"
466
+ "type": "array"
467
+ }
261
468
  },
262
- "type": "array"
469
+ "required": [
470
+ "app"
471
+ ],
472
+ "type": "object"
263
473
  },
264
474
  "d1_databases": {
265
475
  "default": "`[]`",
@@ -268,7 +478,7 @@
268
478
  "additionalProperties": false,
269
479
  "properties": {
270
480
  "binding": {
271
- "description": "The binding name used to refer to the D1 database in the worker.",
481
+ "description": "The binding name used to refer to the D1 database in the Worker.",
272
482
  "type": "string"
273
483
  },
274
484
  "database_id": {
@@ -297,9 +507,7 @@
297
507
  }
298
508
  },
299
509
  "required": [
300
- "binding",
301
- "database_name",
302
- "database_id"
510
+ "binding"
303
511
  ],
304
512
  "type": "object"
305
513
  },
@@ -310,7 +518,7 @@
310
518
  "type": "string"
311
519
  },
312
520
  "default": "`{}`",
313
- "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.",
521
+ "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.",
314
522
  "type": "object"
315
523
  },
316
524
  "dispatch_namespaces": {
@@ -329,7 +537,7 @@
329
537
  },
330
538
  "outbound": {
331
539
  "$ref": "#/definitions/DispatchNamespaceOutbound",
332
- "description": "Details about the outbound worker which will handle outbound requests from your namespace"
540
+ "description": "Details about the outbound Worker which will handle outbound requests from your namespace"
333
541
  }
334
542
  },
335
543
  "required": [
@@ -343,7 +551,7 @@
343
551
  "durable_objects": {
344
552
  "additionalProperties": false,
345
553
  "default": "`{bindings:[]}`",
346
- "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.",
554
+ "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.",
347
555
  "properties": {
348
556
  "bindings": {
349
557
  "$ref": "#/definitions/DurableObjectBindings"
@@ -355,11 +563,11 @@
355
563
  "type": "object"
356
564
  },
357
565
  "find_additional_modules": {
358
- "description": "If true then Wrangler will traverse the file tree below `base_dir`; Any files that match `rules` will be included in the deployed worker. Defaults to true if `no_bundle` is true, otherwise false.",
566
+ "description": "If true then Wrangler will traverse the file tree below `base_dir`; Any files that match `rules` will be included in the deployed Worker. Defaults to true if `no_bundle` is true, otherwise false.",
359
567
  "type": "boolean"
360
568
  },
361
569
  "first_party_worker": {
362
- "description": "Designates this worker as an internal-only \"first-party\" worker.",
570
+ "description": "Designates this Worker as an internal-only \"first-party\" Worker.",
363
571
  "type": "boolean"
364
572
  },
365
573
  "hyperdrive": {
@@ -369,7 +577,7 @@
369
577
  "additionalProperties": false,
370
578
  "properties": {
371
579
  "binding": {
372
- "description": "The binding name used to refer to the project in the worker.",
580
+ "description": "The binding name used to refer to the project in the Worker.",
373
581
  "type": "string"
374
582
  },
375
583
  "id": {
@@ -419,8 +627,7 @@
419
627
  }
420
628
  },
421
629
  "required": [
422
- "binding",
423
- "id"
630
+ "binding"
424
631
  ],
425
632
  "type": "object"
426
633
  },
@@ -463,23 +670,33 @@
463
670
  "type": "object"
464
671
  },
465
672
  "logpush": {
466
- "description": "Send Trace Events from this worker to Workers Logpush.\n\nThis will not configure a corresponding Logpush job automatically.\n\nFor more information about Workers Logpush, see: https://blog.cloudflare.com/logpush-for-workers/",
673
+ "description": "Send Trace Events from this Worker to Workers Logpush.\n\nThis will not configure a corresponding Logpush job automatically.\n\nFor more information about Workers Logpush, see: https://blog.cloudflare.com/logpush-for-workers/",
467
674
  "type": "boolean"
468
675
  },
469
676
  "main": {
470
677
  "description": "The entrypoint/path to the JavaScript file that will be executed.",
471
678
  "type": "string"
472
679
  },
680
+ "migrations": {
681
+ "default": [],
682
+ "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",
683
+ "items": {
684
+ "$ref": "#/definitions/DurableObjectMigration"
685
+ },
686
+ "type": "array"
687
+ },
473
688
  "minify": {
474
689
  "description": "Minify the script before uploading.",
475
690
  "type": "boolean"
476
691
  },
477
692
  "mtls_certificates": {
693
+ "default": "`[]`",
694
+ "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.",
478
695
  "items": {
479
696
  "additionalProperties": false,
480
697
  "properties": {
481
698
  "binding": {
482
- "description": "The binding name used to refer to the certificate in the worker",
699
+ "description": "The binding name used to refer to the certificate in the Worker",
483
700
  "type": "string"
484
701
  },
485
702
  "certificate_id": {
@@ -496,7 +713,7 @@
496
713
  "type": "array"
497
714
  },
498
715
  "name": {
499
- "description": "The name of your worker. Alphanumeric + dashes only.",
716
+ "description": "The name of your Worker. Alphanumeric + dashes only.",
500
717
  "type": "string"
501
718
  },
502
719
  "no_bundle": {
@@ -507,10 +724,40 @@
507
724
  "description": "Add polyfills for node builtin modules and globals",
508
725
  "type": "boolean"
509
726
  },
727
+ "observability": {
728
+ "$ref": "#/definitions/Observability",
729
+ "description": "Specify the observability behavior of the Worker."
730
+ },
731
+ "pipelines": {
732
+ "default": "`[]`",
733
+ "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.",
734
+ "items": {
735
+ "additionalProperties": false,
736
+ "properties": {
737
+ "binding": {
738
+ "description": "The binding name used to refer to the bound service.",
739
+ "type": "string"
740
+ },
741
+ "pipeline": {
742
+ "description": "Name of the Pipeline to bind",
743
+ "type": "string"
744
+ }
745
+ },
746
+ "required": [
747
+ "binding",
748
+ "pipeline"
749
+ ],
750
+ "type": "object"
751
+ },
752
+ "type": "array"
753
+ },
510
754
  "placement": {
511
755
  "additionalProperties": false,
512
- "description": "Specify how the worker should be located to minimize round-trip time.\n\nMore details: https://developers.cloudflare.com/workers/platform/smart-placement/",
756
+ "description": "Specify how the Worker should be located to minimize round-trip time.\n\nMore details: https://developers.cloudflare.com/workers/platform/smart-placement/",
513
757
  "properties": {
758
+ "hint": {
759
+ "type": "string"
760
+ },
514
761
  "mode": {
515
762
  "enum": [
516
763
  "off",
@@ -528,9 +775,14 @@
528
775
  "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`.",
529
776
  "type": "boolean"
530
777
  },
778
+ "preview_urls": {
779
+ "default": "`true`",
780
+ "description": "Whether we use <version>-<name>.<subdomain>.workers.dev to serve Preview URLs for your Worker.",
781
+ "type": "boolean"
782
+ },
531
783
  "queues": {
532
784
  "additionalProperties": false,
533
- "default": "`{}`",
785
+ "default": "`{consumers:[],producers:[]}`",
534
786
  "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.",
535
787
  "properties": {
536
788
  "consumers": {
@@ -591,7 +843,7 @@
591
843
  "additionalProperties": false,
592
844
  "properties": {
593
845
  "binding": {
594
- "description": "The binding name used to refer to the Queue in the worker.",
846
+ "description": "The binding name used to refer to the Queue in the Worker.",
595
847
  "type": "string"
596
848
  },
597
849
  "delivery_delay": {
@@ -621,7 +873,7 @@
621
873
  "additionalProperties": false,
622
874
  "properties": {
623
875
  "binding": {
624
- "description": "The binding name used to refer to the R2 bucket in the worker.",
876
+ "description": "The binding name used to refer to the R2 bucket in the Worker.",
625
877
  "type": "string"
626
878
  },
627
879
  "bucket_name": {
@@ -638,8 +890,7 @@
638
890
  }
639
891
  },
640
892
  "required": [
641
- "binding",
642
- "bucket_name"
893
+ "binding"
643
894
  ],
644
895
  "type": "object"
645
896
  },
@@ -647,10 +898,10 @@
647
898
  },
648
899
  "route": {
649
900
  "$ref": "#/definitions/Route",
650
- "description": "A route that your worker should be published to. Literally the same as routes, but only one. Only one of `routes` or `route` is required.\n\nOnly required when workers_dev is false, and there's no scheduled worker"
901
+ "description": "A route that your Worker should be published to. Literally the same as routes, but only one. Only one of `routes` or `route` is required.\n\nOnly required when workers_dev is false, and there's no scheduled Worker"
651
902
  },
652
903
  "routes": {
653
- "description": "A list of routes that your worker should be published to. Only one of `routes` or `route` is required.\n\nOnly required when workers_dev is false, and there's no scheduled worker (see `triggers`)",
904
+ "description": "A list of routes that your Worker should be published to. Only one of `routes` or `route` is required.\n\nOnly required when workers_dev is false, and there's no scheduled Worker (see `triggers`)",
654
905
  "items": {
655
906
  "$ref": "#/definitions/Route"
656
907
  },
@@ -694,7 +945,7 @@
694
945
  },
695
946
  "services": {
696
947
  "default": "`[]`",
697
- "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.",
948
+ "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.",
698
949
  "items": {
699
950
  "additionalProperties": false,
700
951
  "properties": {
@@ -724,6 +975,8 @@
724
975
  "type": "array"
725
976
  },
726
977
  "tail_consumers": {
978
+ "default": "`[]`",
979
+ "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.",
727
980
  "items": {
728
981
  "$ref": "#/definitions/TailConsumer"
729
982
  },
@@ -732,7 +985,7 @@
732
985
  "triggers": {
733
986
  "additionalProperties": false,
734
987
  "default": "`{crons:[]}`",
735
- "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",
988
+ "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",
736
989
  "properties": {
737
990
  "crons": {
738
991
  "items": {
@@ -752,6 +1005,7 @@
752
1005
  },
753
1006
  "unsafe": {
754
1007
  "additionalProperties": false,
1008
+ "default": "`{}`",
755
1009
  "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.",
756
1010
  "properties": {
757
1011
  "bindings": {
@@ -842,7 +1096,7 @@
842
1096
  ]
843
1097
  },
844
1098
  "default": "`{}`",
845
- "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.",
1099
+ "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.",
846
1100
  "type": "object"
847
1101
  },
848
1102
  "vectorize": {
@@ -852,7 +1106,7 @@
852
1106
  "additionalProperties": false,
853
1107
  "properties": {
854
1108
  "binding": {
855
- "description": "The binding name used to refer to the Vectorize index in the worker.",
1109
+ "description": "The binding name used to refer to the Vectorize index in the Worker.",
856
1110
  "type": "string"
857
1111
  },
858
1112
  "index_name": {
@@ -883,9 +1137,17 @@
883
1137
  },
884
1138
  "workers_dev": {
885
1139
  "default": "`true` (This is a breaking change from Wrangler v1)",
886
- "description": "Whether we use <name>.<subdomain>.workers.dev to test and deploy your worker.",
1140
+ "description": "Whether we use <name>.<subdomain>.workers.dev to test and deploy your Worker.\n\n// Carmen according to our tests the default is undefined // warning: you must force \"workers_dev: true\" in tests to match expected behavior",
887
1141
  "type": "boolean"
888
1142
  },
1143
+ "workflows": {
1144
+ "default": "`[]`",
1145
+ "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.",
1146
+ "items": {
1147
+ "$ref": "#/definitions/WorkflowBinding"
1148
+ },
1149
+ "type": "array"
1150
+ },
889
1151
  "zone_id": {
890
1152
  "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.",
891
1153
  "type": "string"
@@ -896,7 +1158,7 @@
896
1158
  "build",
897
1159
  "cloudchamber",
898
1160
  "compatibility_flags",
899
- "constellation",
1161
+ "containers",
900
1162
  "d1_databases",
901
1163
  "define",
902
1164
  "dispatch_namespaces",
@@ -906,7 +1168,9 @@
906
1168
  "jsx_fragment",
907
1169
  "kv_namespaces",
908
1170
  "logfwdr",
1171
+ "migrations",
909
1172
  "mtls_certificates",
1173
+ "pipelines",
910
1174
  "queues",
911
1175
  "r2_buckets",
912
1176
  "rules",
@@ -914,7 +1178,8 @@
914
1178
  "triggers",
915
1179
  "unsafe",
916
1180
  "vars",
917
- "vectorize"
1181
+ "vectorize",
1182
+ "workflows"
918
1183
  ],
919
1184
  "type": "object"
920
1185
  },
@@ -940,6 +1205,37 @@
940
1205
  "Literal": {
941
1206
  "$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"
942
1207
  },
1208
+ "Observability": {
1209
+ "additionalProperties": false,
1210
+ "properties": {
1211
+ "enabled": {
1212
+ "description": "If observability is enabled for this Worker",
1213
+ "type": "boolean"
1214
+ },
1215
+ "head_sampling_rate": {
1216
+ "description": "The sampling rate",
1217
+ "type": "number"
1218
+ },
1219
+ "logs": {
1220
+ "additionalProperties": false,
1221
+ "properties": {
1222
+ "enabled": {
1223
+ "type": "boolean"
1224
+ },
1225
+ "head_sampling_rate": {
1226
+ "description": "The sampling rate",
1227
+ "type": "number"
1228
+ },
1229
+ "invocation_logs": {
1230
+ "description": "Set to false to disable invocation logs",
1231
+ "type": "boolean"
1232
+ }
1233
+ },
1234
+ "type": "object"
1235
+ }
1236
+ },
1237
+ "type": "object"
1238
+ },
943
1239
  "RawConfig": {
944
1240
  "additionalProperties": false,
945
1241
  "properties": {
@@ -952,10 +1248,14 @@
952
1248
  },
953
1249
  "ai": {
954
1250
  "additionalProperties": false,
955
- "description": "Binding to the AI project.",
1251
+ "default": "`{}`",
1252
+ "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.",
956
1253
  "properties": {
957
1254
  "binding": {
958
1255
  "type": "string"
1256
+ },
1257
+ "staging": {
1258
+ "type": "boolean"
959
1259
  }
960
1260
  },
961
1261
  "required": [
@@ -963,6 +1263,13 @@
963
1263
  ],
964
1264
  "type": "object"
965
1265
  },
1266
+ "alias": {
1267
+ "additionalProperties": {
1268
+ "type": "string"
1269
+ },
1270
+ "description": "A map of module aliases. Lets you swap out a module for any others. Corresponds with esbuild's `alias` config",
1271
+ "type": "object"
1272
+ },
966
1273
  "analytics_engine_datasets": {
967
1274
  "default": "`[]`",
968
1275
  "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.",
@@ -970,7 +1277,7 @@
970
1277
  "additionalProperties": false,
971
1278
  "properties": {
972
1279
  "binding": {
973
- "description": "The binding name used to refer to the dataset in the worker.",
1280
+ "description": "The binding name used to refer to the dataset in the Worker.",
974
1281
  "type": "string"
975
1282
  },
976
1283
  "dataset": {
@@ -986,46 +1293,17 @@
986
1293
  "type": "array"
987
1294
  },
988
1295
  "assets": {
989
- "additionalProperties": false,
990
- "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.",
991
- "properties": {
992
- "browser_TTL": {
993
- "type": "number"
994
- },
995
- "bucket": {
996
- "type": "string"
997
- },
998
- "exclude": {
999
- "items": {
1000
- "type": "string"
1001
- },
1002
- "type": "array"
1003
- },
1004
- "include": {
1005
- "items": {
1006
- "type": "string"
1007
- },
1008
- "type": "array"
1009
- },
1010
- "serve_single_page_app": {
1011
- "type": "boolean"
1012
- }
1013
- },
1014
- "required": [
1015
- "bucket",
1016
- "include",
1017
- "exclude",
1018
- "serve_single_page_app"
1019
- ],
1020
- "type": "object"
1296
+ "$ref": "#/definitions/Assets",
1297
+ "description": "Specify the directory of static assets to deploy/serve\n\nMore details at https://developers.cloudflare.com/workers/frameworks/"
1021
1298
  },
1022
1299
  "base_dir": {
1023
- "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.",
1300
+ "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.",
1024
1301
  "type": "string"
1025
1302
  },
1026
1303
  "browser": {
1027
1304
  "additionalProperties": false,
1028
- "description": "A browser that will be usable from the worker.",
1305
+ "default": "`{}`",
1306
+ "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.",
1029
1307
  "properties": {
1030
1308
  "binding": {
1031
1309
  "type": "string"
@@ -1038,7 +1316,9 @@
1038
1316
  },
1039
1317
  "build": {
1040
1318
  "additionalProperties": false,
1041
- "default": {},
1319
+ "default": {
1320
+ "watch_dir": "./src"
1321
+ },
1042
1322
  "description": "Configures a custom build step to be run by Wrangler when building your Worker.\n\nRefer to the [custom builds documentation](https://developers.cloudflare.com/workers/cli-wrangler/configuration#build) for more details.",
1043
1323
  "properties": {
1044
1324
  "command": {
@@ -1081,37 +1361,30 @@
1081
1361
  "type": "string"
1082
1362
  },
1083
1363
  "compatibility_flags": {
1364
+ "default": "`[]`",
1084
1365
  "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",
1085
1366
  "items": {
1086
1367
  "type": "string"
1087
1368
  },
1088
1369
  "type": "array"
1089
1370
  },
1090
- "configPath": {
1091
- "type": "string"
1092
- },
1093
- "constellation": {
1094
- "default": "`[]`",
1095
- "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.",
1096
- "items": {
1097
- "additionalProperties": false,
1098
- "properties": {
1099
- "binding": {
1100
- "description": "The binding name used to refer to the project in the worker.",
1101
- "type": "string"
1371
+ "containers": {
1372
+ "additionalProperties": false,
1373
+ "description": "Container related configuration",
1374
+ "properties": {
1375
+ "app": {
1376
+ "default": "`{}`",
1377
+ "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.",
1378
+ "items": {
1379
+ "$ref": "#/definitions/ContainerApp"
1102
1380
  },
1103
- "project_id": {
1104
- "description": "The id of the project.",
1105
- "type": "string"
1106
- }
1107
- },
1108
- "required": [
1109
- "binding",
1110
- "project_id"
1111
- ],
1112
- "type": "object"
1381
+ "type": "array"
1382
+ }
1113
1383
  },
1114
- "type": "array"
1384
+ "required": [
1385
+ "app"
1386
+ ],
1387
+ "type": "object"
1115
1388
  },
1116
1389
  "d1_databases": {
1117
1390
  "default": "`[]`",
@@ -1120,7 +1393,7 @@
1120
1393
  "additionalProperties": false,
1121
1394
  "properties": {
1122
1395
  "binding": {
1123
- "description": "The binding name used to refer to the D1 database in the worker.",
1396
+ "description": "The binding name used to refer to the D1 database in the Worker.",
1124
1397
  "type": "string"
1125
1398
  },
1126
1399
  "database_id": {
@@ -1149,9 +1422,7 @@
1149
1422
  }
1150
1423
  },
1151
1424
  "required": [
1152
- "binding",
1153
- "database_name",
1154
- "database_id"
1425
+ "binding"
1155
1426
  ],
1156
1427
  "type": "object"
1157
1428
  },
@@ -1169,7 +1440,7 @@
1169
1440
  "type": "string"
1170
1441
  },
1171
1442
  "default": "`{}`",
1172
- "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.",
1443
+ "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.",
1173
1444
  "type": "object"
1174
1445
  },
1175
1446
  "dev": {
@@ -1192,7 +1463,7 @@
1192
1463
  },
1193
1464
  "outbound": {
1194
1465
  "$ref": "#/definitions/DispatchNamespaceOutbound",
1195
- "description": "Details about the outbound worker which will handle outbound requests from your namespace"
1466
+ "description": "Details about the outbound Worker which will handle outbound requests from your namespace"
1196
1467
  }
1197
1468
  },
1198
1469
  "required": [
@@ -1206,7 +1477,7 @@
1206
1477
  "durable_objects": {
1207
1478
  "additionalProperties": false,
1208
1479
  "default": "`{bindings:[]}`",
1209
- "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.",
1480
+ "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.",
1210
1481
  "properties": {
1211
1482
  "bindings": {
1212
1483
  "$ref": "#/definitions/DurableObjectBindings"
@@ -1228,7 +1499,7 @@
1228
1499
  "experimental_services": {
1229
1500
  "default": "`[]`",
1230
1501
  "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.",
1231
- "description": "A list of services that your worker should be bound to.",
1502
+ "description": "A list of services that your Worker should be bound to.",
1232
1503
  "items": {
1233
1504
  "additionalProperties": false,
1234
1505
  "properties": {
@@ -1255,11 +1526,11 @@
1255
1526
  "type": "array"
1256
1527
  },
1257
1528
  "find_additional_modules": {
1258
- "description": "If true then Wrangler will traverse the file tree below `base_dir`; Any files that match `rules` will be included in the deployed worker. Defaults to true if `no_bundle` is true, otherwise false.",
1529
+ "description": "If true then Wrangler will traverse the file tree below `base_dir`; Any files that match `rules` will be included in the deployed Worker. Defaults to true if `no_bundle` is true, otherwise false.",
1259
1530
  "type": "boolean"
1260
1531
  },
1261
1532
  "first_party_worker": {
1262
- "description": "Designates this worker as an internal-only \"first-party\" worker.",
1533
+ "description": "Designates this Worker as an internal-only \"first-party\" Worker.",
1263
1534
  "type": "boolean"
1264
1535
  },
1265
1536
  "hyperdrive": {
@@ -1269,7 +1540,7 @@
1269
1540
  "additionalProperties": false,
1270
1541
  "properties": {
1271
1542
  "binding": {
1272
- "description": "The binding name used to refer to the project in the worker.",
1543
+ "description": "The binding name used to refer to the project in the Worker.",
1273
1544
  "type": "string"
1274
1545
  },
1275
1546
  "id": {
@@ -1301,7 +1572,7 @@
1301
1572
  },
1302
1573
  "keep_vars": {
1303
1574
  "default": false,
1304
- "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.",
1575
+ "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.",
1305
1576
  "type": "boolean"
1306
1577
  },
1307
1578
  "kv-namespaces": {
@@ -1329,13 +1600,53 @@
1329
1600
  }
1330
1601
  },
1331
1602
  "required": [
1332
- "binding",
1333
- "id"
1603
+ "binding"
1334
1604
  ],
1335
1605
  "type": "object"
1336
1606
  },
1337
1607
  "type": "array"
1338
1608
  },
1609
+ "legacy_assets": {
1610
+ "anyOf": [
1611
+ {
1612
+ "additionalProperties": false,
1613
+ "properties": {
1614
+ "browser_TTL": {
1615
+ "type": "number"
1616
+ },
1617
+ "bucket": {
1618
+ "type": "string"
1619
+ },
1620
+ "exclude": {
1621
+ "items": {
1622
+ "type": "string"
1623
+ },
1624
+ "type": "array"
1625
+ },
1626
+ "include": {
1627
+ "items": {
1628
+ "type": "string"
1629
+ },
1630
+ "type": "array"
1631
+ },
1632
+ "serve_single_page_app": {
1633
+ "type": "boolean"
1634
+ }
1635
+ },
1636
+ "required": [
1637
+ "bucket",
1638
+ "include",
1639
+ "exclude",
1640
+ "serve_single_page_app"
1641
+ ],
1642
+ "type": "object"
1643
+ },
1644
+ {
1645
+ "type": "string"
1646
+ }
1647
+ ],
1648
+ "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`."
1649
+ },
1339
1650
  "legacy_env": {
1340
1651
  "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.",
1341
1652
  "type": "boolean"
@@ -1377,7 +1688,7 @@
1377
1688
  "type": "object"
1378
1689
  },
1379
1690
  "logpush": {
1380
- "description": "Send Trace Events from this worker to Workers Logpush.\n\nThis will not configure a corresponding Logpush job automatically.\n\nFor more information about Workers Logpush, see: https://blog.cloudflare.com/logpush-for-workers/",
1691
+ "description": "Send Trace Events from this Worker to Workers Logpush.\n\nThis will not configure a corresponding Logpush job automatically.\n\nFor more information about Workers Logpush, see: https://blog.cloudflare.com/logpush-for-workers/",
1381
1692
  "type": "boolean"
1382
1693
  },
1383
1694
  "main": {
@@ -1388,51 +1699,7 @@
1388
1699
  "default": [],
1389
1700
  "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",
1390
1701
  "items": {
1391
- "additionalProperties": false,
1392
- "properties": {
1393
- "deleted_classes": {
1394
- "description": "The Durable Objects being removed.",
1395
- "items": {
1396
- "type": "string"
1397
- },
1398
- "type": "array"
1399
- },
1400
- "new_classes": {
1401
- "description": "The new Durable Objects being defined.",
1402
- "items": {
1403
- "type": "string"
1404
- },
1405
- "type": "array"
1406
- },
1407
- "renamed_classes": {
1408
- "description": "The Durable Objects being renamed.",
1409
- "items": {
1410
- "additionalProperties": false,
1411
- "properties": {
1412
- "from": {
1413
- "type": "string"
1414
- },
1415
- "to": {
1416
- "type": "string"
1417
- }
1418
- },
1419
- "required": [
1420
- "from",
1421
- "to"
1422
- ],
1423
- "type": "object"
1424
- },
1425
- "type": "array"
1426
- },
1427
- "tag": {
1428
- "description": "A unique identifier for this migration.",
1429
- "type": "string"
1430
- }
1431
- },
1432
- "required": [
1433
- "tag"
1434
- ],
1435
- "type": "object"
1702
+ "$ref": "#/definitions/DurableObjectMigration"
1436
1703
  },
1437
1704
  "type": "array"
1438
1705
  },
@@ -1445,11 +1712,13 @@
1445
1712
  "type": "boolean"
1446
1713
  },
1447
1714
  "mtls_certificates": {
1715
+ "default": "`[]`",
1716
+ "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.",
1448
1717
  "items": {
1449
1718
  "additionalProperties": false,
1450
1719
  "properties": {
1451
1720
  "binding": {
1452
- "description": "The binding name used to refer to the certificate in the worker",
1721
+ "description": "The binding name used to refer to the certificate in the Worker",
1453
1722
  "type": "string"
1454
1723
  },
1455
1724
  "certificate_id": {
@@ -1466,7 +1735,7 @@
1466
1735
  "type": "array"
1467
1736
  },
1468
1737
  "name": {
1469
- "description": "The name of your worker. Alphanumeric + dashes only.",
1738
+ "description": "The name of your Worker. Alphanumeric + dashes only.",
1470
1739
  "type": "string"
1471
1740
  },
1472
1741
  "no_bundle": {
@@ -1477,14 +1746,44 @@
1477
1746
  "description": "Add polyfills for node builtin modules and globals",
1478
1747
  "type": "boolean"
1479
1748
  },
1749
+ "observability": {
1750
+ "$ref": "#/definitions/Observability",
1751
+ "description": "Specify the observability behavior of the Worker."
1752
+ },
1480
1753
  "pages_build_output_dir": {
1481
- "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.",
1754
+ "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.",
1482
1755
  "type": "string"
1483
1756
  },
1757
+ "pipelines": {
1758
+ "default": "`[]`",
1759
+ "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.",
1760
+ "items": {
1761
+ "additionalProperties": false,
1762
+ "properties": {
1763
+ "binding": {
1764
+ "description": "The binding name used to refer to the bound service.",
1765
+ "type": "string"
1766
+ },
1767
+ "pipeline": {
1768
+ "description": "Name of the Pipeline to bind",
1769
+ "type": "string"
1770
+ }
1771
+ },
1772
+ "required": [
1773
+ "binding",
1774
+ "pipeline"
1775
+ ],
1776
+ "type": "object"
1777
+ },
1778
+ "type": "array"
1779
+ },
1484
1780
  "placement": {
1485
1781
  "additionalProperties": false,
1486
- "description": "Specify how the worker should be located to minimize round-trip time.\n\nMore details: https://developers.cloudflare.com/workers/platform/smart-placement/",
1782
+ "description": "Specify how the Worker should be located to minimize round-trip time.\n\nMore details: https://developers.cloudflare.com/workers/platform/smart-placement/",
1487
1783
  "properties": {
1784
+ "hint": {
1785
+ "type": "string"
1786
+ },
1488
1787
  "mode": {
1489
1788
  "enum": [
1490
1789
  "off",
@@ -1502,9 +1801,14 @@
1502
1801
  "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`.",
1503
1802
  "type": "boolean"
1504
1803
  },
1804
+ "preview_urls": {
1805
+ "default": "`true`",
1806
+ "description": "Whether we use <version>-<name>.<subdomain>.workers.dev to serve Preview URLs for your Worker.",
1807
+ "type": "boolean"
1808
+ },
1505
1809
  "queues": {
1506
1810
  "additionalProperties": false,
1507
- "default": "`{}`",
1811
+ "default": "`{consumers:[],producers:[]}`",
1508
1812
  "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.",
1509
1813
  "properties": {
1510
1814
  "consumers": {
@@ -1565,7 +1869,7 @@
1565
1869
  "additionalProperties": false,
1566
1870
  "properties": {
1567
1871
  "binding": {
1568
- "description": "The binding name used to refer to the Queue in the worker.",
1872
+ "description": "The binding name used to refer to the Queue in the Worker.",
1569
1873
  "type": "string"
1570
1874
  },
1571
1875
  "delivery_delay": {
@@ -1595,7 +1899,7 @@
1595
1899
  "additionalProperties": false,
1596
1900
  "properties": {
1597
1901
  "binding": {
1598
- "description": "The binding name used to refer to the R2 bucket in the worker.",
1902
+ "description": "The binding name used to refer to the R2 bucket in the Worker.",
1599
1903
  "type": "string"
1600
1904
  },
1601
1905
  "bucket_name": {
@@ -1612,8 +1916,7 @@
1612
1916
  }
1613
1917
  },
1614
1918
  "required": [
1615
- "binding",
1616
- "bucket_name"
1919
+ "binding"
1617
1920
  ],
1618
1921
  "type": "object"
1619
1922
  },
@@ -1621,10 +1924,10 @@
1621
1924
  },
1622
1925
  "route": {
1623
1926
  "$ref": "#/definitions/Route",
1624
- "description": "A route that your worker should be published to. Literally the same as routes, but only one. Only one of `routes` or `route` is required.\n\nOnly required when workers_dev is false, and there's no scheduled worker"
1927
+ "description": "A route that your Worker should be published to. Literally the same as routes, but only one. Only one of `routes` or `route` is required.\n\nOnly required when workers_dev is false, and there's no scheduled Worker"
1625
1928
  },
1626
1929
  "routes": {
1627
- "description": "A list of routes that your worker should be published to. Only one of `routes` or `route` is required.\n\nOnly required when workers_dev is false, and there's no scheduled worker (see `triggers`)",
1930
+ "description": "A list of routes that your Worker should be published to. Only one of `routes` or `route` is required.\n\nOnly required when workers_dev is false, and there's no scheduled Worker (see `triggers`)",
1628
1931
  "items": {
1629
1932
  "$ref": "#/definitions/Route"
1630
1933
  },
@@ -1672,7 +1975,7 @@
1672
1975
  },
1673
1976
  "services": {
1674
1977
  "default": "`[]`",
1675
- "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.",
1978
+ "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.",
1676
1979
  "items": {
1677
1980
  "additionalProperties": false,
1678
1981
  "properties": {
@@ -1706,7 +2009,7 @@
1706
2009
  "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",
1707
2010
  "properties": {
1708
2011
  "bucket": {
1709
- "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.",
2012
+ "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.",
1710
2013
  "type": "string"
1711
2014
  },
1712
2015
  "entry-point": {
@@ -1737,6 +2040,8 @@
1737
2040
  "type": "object"
1738
2041
  },
1739
2042
  "tail_consumers": {
2043
+ "default": "`[]`",
2044
+ "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.",
1740
2045
  "items": {
1741
2046
  "$ref": "#/definitions/TailConsumer"
1742
2047
  },
@@ -1752,7 +2057,7 @@
1752
2057
  "triggers": {
1753
2058
  "additionalProperties": false,
1754
2059
  "default": "`{crons:[]}`",
1755
- "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",
2060
+ "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",
1756
2061
  "properties": {
1757
2062
  "crons": {
1758
2063
  "items": {
@@ -1782,6 +2087,7 @@
1782
2087
  },
1783
2088
  "unsafe": {
1784
2089
  "additionalProperties": false,
2090
+ "default": "`{}`",
1785
2091
  "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.",
1786
2092
  "properties": {
1787
2093
  "bindings": {
@@ -1872,7 +2178,7 @@
1872
2178
  ]
1873
2179
  },
1874
2180
  "default": "`{}`",
1875
- "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.",
2181
+ "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.",
1876
2182
  "type": "object"
1877
2183
  },
1878
2184
  "vectorize": {
@@ -1882,7 +2188,7 @@
1882
2188
  "additionalProperties": false,
1883
2189
  "properties": {
1884
2190
  "binding": {
1885
- "description": "The binding name used to refer to the Vectorize index in the worker.",
2191
+ "description": "The binding name used to refer to the Vectorize index in the Worker.",
1886
2192
  "type": "string"
1887
2193
  },
1888
2194
  "index_name": {
@@ -1925,9 +2231,17 @@
1925
2231
  },
1926
2232
  "workers_dev": {
1927
2233
  "default": "`true` (This is a breaking change from Wrangler v1)",
1928
- "description": "Whether we use <name>.<subdomain>.workers.dev to test and deploy your worker.",
2234
+ "description": "Whether we use <name>.<subdomain>.workers.dev to test and deploy your Worker.\n\n// Carmen according to our tests the default is undefined // warning: you must force \"workers_dev: true\" in tests to match expected behavior",
1929
2235
  "type": "boolean"
1930
2236
  },
2237
+ "workflows": {
2238
+ "default": "`[]`",
2239
+ "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.",
2240
+ "items": {
2241
+ "$ref": "#/definitions/WorkflowBinding"
2242
+ },
2243
+ "type": "array"
2244
+ },
1931
2245
  "zone_id": {
1932
2246
  "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.",
1933
2247
  "type": "string"
@@ -1988,10 +2302,14 @@
1988
2302
  },
1989
2303
  "ai": {
1990
2304
  "additionalProperties": false,
1991
- "description": "Binding to the AI project.",
2305
+ "default": "`{}`",
2306
+ "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.",
1992
2307
  "properties": {
1993
2308
  "binding": {
1994
2309
  "type": "string"
2310
+ },
2311
+ "staging": {
2312
+ "type": "boolean"
1995
2313
  }
1996
2314
  },
1997
2315
  "required": [
@@ -2006,7 +2324,7 @@
2006
2324
  "additionalProperties": false,
2007
2325
  "properties": {
2008
2326
  "binding": {
2009
- "description": "The binding name used to refer to the dataset in the worker.",
2327
+ "description": "The binding name used to refer to the dataset in the Worker.",
2010
2328
  "type": "string"
2011
2329
  },
2012
2330
  "dataset": {
@@ -2021,13 +2339,18 @@
2021
2339
  },
2022
2340
  "type": "array"
2023
2341
  },
2342
+ "assets": {
2343
+ "$ref": "#/definitions/Assets",
2344
+ "description": "Specify the directory of static assets to deploy/serve\n\nMore details at https://developers.cloudflare.com/workers/frameworks/"
2345
+ },
2024
2346
  "base_dir": {
2025
- "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.",
2347
+ "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.",
2026
2348
  "type": "string"
2027
2349
  },
2028
2350
  "browser": {
2029
2351
  "additionalProperties": false,
2030
- "description": "A browser that will be usable from the worker.",
2352
+ "default": "`{}`",
2353
+ "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.",
2031
2354
  "properties": {
2032
2355
  "binding": {
2033
2356
  "type": "string"
@@ -2040,7 +2363,9 @@
2040
2363
  },
2041
2364
  "build": {
2042
2365
  "additionalProperties": false,
2043
- "default": {},
2366
+ "default": {
2367
+ "watch_dir": "./src"
2368
+ },
2044
2369
  "description": "Configures a custom build step to be run by Wrangler when building your Worker.\n\nRefer to the [custom builds documentation](https://developers.cloudflare.com/workers/cli-wrangler/configuration#build) for more details.",
2045
2370
  "properties": {
2046
2371
  "command": {
@@ -2083,34 +2408,30 @@
2083
2408
  "type": "string"
2084
2409
  },
2085
2410
  "compatibility_flags": {
2411
+ "default": "`[]`",
2086
2412
  "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",
2087
2413
  "items": {
2088
2414
  "type": "string"
2089
2415
  },
2090
2416
  "type": "array"
2091
2417
  },
2092
- "constellation": {
2093
- "default": "`[]`",
2094
- "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.",
2095
- "items": {
2096
- "additionalProperties": false,
2097
- "properties": {
2098
- "binding": {
2099
- "description": "The binding name used to refer to the project in the worker.",
2100
- "type": "string"
2418
+ "containers": {
2419
+ "additionalProperties": false,
2420
+ "description": "Container related configuration",
2421
+ "properties": {
2422
+ "app": {
2423
+ "default": "`{}`",
2424
+ "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.",
2425
+ "items": {
2426
+ "$ref": "#/definitions/ContainerApp"
2101
2427
  },
2102
- "project_id": {
2103
- "description": "The id of the project.",
2104
- "type": "string"
2105
- }
2106
- },
2107
- "required": [
2108
- "binding",
2109
- "project_id"
2110
- ],
2111
- "type": "object"
2428
+ "type": "array"
2429
+ }
2112
2430
  },
2113
- "type": "array"
2431
+ "required": [
2432
+ "app"
2433
+ ],
2434
+ "type": "object"
2114
2435
  },
2115
2436
  "d1_databases": {
2116
2437
  "default": "`[]`",
@@ -2119,7 +2440,7 @@
2119
2440
  "additionalProperties": false,
2120
2441
  "properties": {
2121
2442
  "binding": {
2122
- "description": "The binding name used to refer to the D1 database in the worker.",
2443
+ "description": "The binding name used to refer to the D1 database in the Worker.",
2123
2444
  "type": "string"
2124
2445
  },
2125
2446
  "database_id": {
@@ -2148,9 +2469,7 @@
2148
2469
  }
2149
2470
  },
2150
2471
  "required": [
2151
- "binding",
2152
- "database_name",
2153
- "database_id"
2472
+ "binding"
2154
2473
  ],
2155
2474
  "type": "object"
2156
2475
  },
@@ -2161,7 +2480,7 @@
2161
2480
  "type": "string"
2162
2481
  },
2163
2482
  "default": "`{}`",
2164
- "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.",
2483
+ "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.",
2165
2484
  "type": "object"
2166
2485
  },
2167
2486
  "dispatch_namespaces": {
@@ -2180,7 +2499,7 @@
2180
2499
  },
2181
2500
  "outbound": {
2182
2501
  "$ref": "#/definitions/DispatchNamespaceOutbound",
2183
- "description": "Details about the outbound worker which will handle outbound requests from your namespace"
2502
+ "description": "Details about the outbound Worker which will handle outbound requests from your namespace"
2184
2503
  }
2185
2504
  },
2186
2505
  "required": [
@@ -2194,7 +2513,7 @@
2194
2513
  "durable_objects": {
2195
2514
  "additionalProperties": false,
2196
2515
  "default": "`{bindings:[]}`",
2197
- "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.",
2516
+ "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.",
2198
2517
  "properties": {
2199
2518
  "bindings": {
2200
2519
  "$ref": "#/definitions/DurableObjectBindings"
@@ -2208,7 +2527,7 @@
2208
2527
  "experimental_services": {
2209
2528
  "default": "`[]`",
2210
2529
  "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.",
2211
- "description": "A list of services that your worker should be bound to.",
2530
+ "description": "A list of services that your Worker should be bound to.",
2212
2531
  "items": {
2213
2532
  "additionalProperties": false,
2214
2533
  "properties": {
@@ -2235,11 +2554,11 @@
2235
2554
  "type": "array"
2236
2555
  },
2237
2556
  "find_additional_modules": {
2238
- "description": "If true then Wrangler will traverse the file tree below `base_dir`; Any files that match `rules` will be included in the deployed worker. Defaults to true if `no_bundle` is true, otherwise false.",
2557
+ "description": "If true then Wrangler will traverse the file tree below `base_dir`; Any files that match `rules` will be included in the deployed Worker. Defaults to true if `no_bundle` is true, otherwise false.",
2239
2558
  "type": "boolean"
2240
2559
  },
2241
2560
  "first_party_worker": {
2242
- "description": "Designates this worker as an internal-only \"first-party\" worker.",
2561
+ "description": "Designates this Worker as an internal-only \"first-party\" Worker.",
2243
2562
  "type": "boolean"
2244
2563
  },
2245
2564
  "hyperdrive": {
@@ -2249,7 +2568,7 @@
2249
2568
  "additionalProperties": false,
2250
2569
  "properties": {
2251
2570
  "binding": {
2252
- "description": "The binding name used to refer to the project in the worker.",
2571
+ "description": "The binding name used to refer to the project in the Worker.",
2253
2572
  "type": "string"
2254
2573
  },
2255
2574
  "id": {
@@ -2304,8 +2623,7 @@
2304
2623
  }
2305
2624
  },
2306
2625
  "required": [
2307
- "binding",
2308
- "id"
2626
+ "binding"
2309
2627
  ],
2310
2628
  "type": "object"
2311
2629
  },
@@ -2348,23 +2666,33 @@
2348
2666
  "type": "object"
2349
2667
  },
2350
2668
  "logpush": {
2351
- "description": "Send Trace Events from this worker to Workers Logpush.\n\nThis will not configure a corresponding Logpush job automatically.\n\nFor more information about Workers Logpush, see: https://blog.cloudflare.com/logpush-for-workers/",
2669
+ "description": "Send Trace Events from this Worker to Workers Logpush.\n\nThis will not configure a corresponding Logpush job automatically.\n\nFor more information about Workers Logpush, see: https://blog.cloudflare.com/logpush-for-workers/",
2352
2670
  "type": "boolean"
2353
2671
  },
2354
2672
  "main": {
2355
2673
  "description": "The entrypoint/path to the JavaScript file that will be executed.",
2356
2674
  "type": "string"
2357
2675
  },
2676
+ "migrations": {
2677
+ "default": [],
2678
+ "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",
2679
+ "items": {
2680
+ "$ref": "#/definitions/DurableObjectMigration"
2681
+ },
2682
+ "type": "array"
2683
+ },
2358
2684
  "minify": {
2359
2685
  "description": "Minify the script before uploading.",
2360
2686
  "type": "boolean"
2361
2687
  },
2362
2688
  "mtls_certificates": {
2689
+ "default": "`[]`",
2690
+ "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.",
2363
2691
  "items": {
2364
2692
  "additionalProperties": false,
2365
2693
  "properties": {
2366
2694
  "binding": {
2367
- "description": "The binding name used to refer to the certificate in the worker",
2695
+ "description": "The binding name used to refer to the certificate in the Worker",
2368
2696
  "type": "string"
2369
2697
  },
2370
2698
  "certificate_id": {
@@ -2381,7 +2709,7 @@
2381
2709
  "type": "array"
2382
2710
  },
2383
2711
  "name": {
2384
- "description": "The name of your worker. Alphanumeric + dashes only.",
2712
+ "description": "The name of your Worker. Alphanumeric + dashes only.",
2385
2713
  "type": "string"
2386
2714
  },
2387
2715
  "no_bundle": {
@@ -2392,10 +2720,40 @@
2392
2720
  "description": "Add polyfills for node builtin modules and globals",
2393
2721
  "type": "boolean"
2394
2722
  },
2723
+ "observability": {
2724
+ "$ref": "#/definitions/Observability",
2725
+ "description": "Specify the observability behavior of the Worker."
2726
+ },
2727
+ "pipelines": {
2728
+ "default": "`[]`",
2729
+ "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.",
2730
+ "items": {
2731
+ "additionalProperties": false,
2732
+ "properties": {
2733
+ "binding": {
2734
+ "description": "The binding name used to refer to the bound service.",
2735
+ "type": "string"
2736
+ },
2737
+ "pipeline": {
2738
+ "description": "Name of the Pipeline to bind",
2739
+ "type": "string"
2740
+ }
2741
+ },
2742
+ "required": [
2743
+ "binding",
2744
+ "pipeline"
2745
+ ],
2746
+ "type": "object"
2747
+ },
2748
+ "type": "array"
2749
+ },
2395
2750
  "placement": {
2396
2751
  "additionalProperties": false,
2397
- "description": "Specify how the worker should be located to minimize round-trip time.\n\nMore details: https://developers.cloudflare.com/workers/platform/smart-placement/",
2752
+ "description": "Specify how the Worker should be located to minimize round-trip time.\n\nMore details: https://developers.cloudflare.com/workers/platform/smart-placement/",
2398
2753
  "properties": {
2754
+ "hint": {
2755
+ "type": "string"
2756
+ },
2399
2757
  "mode": {
2400
2758
  "enum": [
2401
2759
  "off",
@@ -2413,9 +2771,14 @@
2413
2771
  "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`.",
2414
2772
  "type": "boolean"
2415
2773
  },
2774
+ "preview_urls": {
2775
+ "default": "`true`",
2776
+ "description": "Whether we use <version>-<name>.<subdomain>.workers.dev to serve Preview URLs for your Worker.",
2777
+ "type": "boolean"
2778
+ },
2416
2779
  "queues": {
2417
2780
  "additionalProperties": false,
2418
- "default": "`{}`",
2781
+ "default": "`{consumers:[],producers:[]}`",
2419
2782
  "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.",
2420
2783
  "properties": {
2421
2784
  "consumers": {
@@ -2476,7 +2839,7 @@
2476
2839
  "additionalProperties": false,
2477
2840
  "properties": {
2478
2841
  "binding": {
2479
- "description": "The binding name used to refer to the Queue in the worker.",
2842
+ "description": "The binding name used to refer to the Queue in the Worker.",
2480
2843
  "type": "string"
2481
2844
  },
2482
2845
  "delivery_delay": {
@@ -2506,7 +2869,7 @@
2506
2869
  "additionalProperties": false,
2507
2870
  "properties": {
2508
2871
  "binding": {
2509
- "description": "The binding name used to refer to the R2 bucket in the worker.",
2872
+ "description": "The binding name used to refer to the R2 bucket in the Worker.",
2510
2873
  "type": "string"
2511
2874
  },
2512
2875
  "bucket_name": {
@@ -2523,8 +2886,7 @@
2523
2886
  }
2524
2887
  },
2525
2888
  "required": [
2526
- "binding",
2527
- "bucket_name"
2889
+ "binding"
2528
2890
  ],
2529
2891
  "type": "object"
2530
2892
  },
@@ -2532,10 +2894,10 @@
2532
2894
  },
2533
2895
  "route": {
2534
2896
  "$ref": "#/definitions/Route",
2535
- "description": "A route that your worker should be published to. Literally the same as routes, but only one. Only one of `routes` or `route` is required.\n\nOnly required when workers_dev is false, and there's no scheduled worker"
2897
+ "description": "A route that your Worker should be published to. Literally the same as routes, but only one. Only one of `routes` or `route` is required.\n\nOnly required when workers_dev is false, and there's no scheduled Worker"
2536
2898
  },
2537
2899
  "routes": {
2538
- "description": "A list of routes that your worker should be published to. Only one of `routes` or `route` is required.\n\nOnly required when workers_dev is false, and there's no scheduled worker (see `triggers`)",
2900
+ "description": "A list of routes that your Worker should be published to. Only one of `routes` or `route` is required.\n\nOnly required when workers_dev is false, and there's no scheduled Worker (see `triggers`)",
2539
2901
  "items": {
2540
2902
  "$ref": "#/definitions/Route"
2541
2903
  },
@@ -2579,7 +2941,7 @@
2579
2941
  },
2580
2942
  "services": {
2581
2943
  "default": "`[]`",
2582
- "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.",
2944
+ "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.",
2583
2945
  "items": {
2584
2946
  "additionalProperties": false,
2585
2947
  "properties": {
@@ -2609,6 +2971,8 @@
2609
2971
  "type": "array"
2610
2972
  },
2611
2973
  "tail_consumers": {
2974
+ "default": "`[]`",
2975
+ "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.",
2612
2976
  "items": {
2613
2977
  "$ref": "#/definitions/TailConsumer"
2614
2978
  },
@@ -2617,7 +2981,7 @@
2617
2981
  "triggers": {
2618
2982
  "additionalProperties": false,
2619
2983
  "default": "`{crons:[]}`",
2620
- "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",
2984
+ "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",
2621
2985
  "properties": {
2622
2986
  "crons": {
2623
2987
  "items": {
@@ -2637,6 +3001,7 @@
2637
3001
  },
2638
3002
  "unsafe": {
2639
3003
  "additionalProperties": false,
3004
+ "default": "`{}`",
2640
3005
  "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.",
2641
3006
  "properties": {
2642
3007
  "bindings": {
@@ -2727,7 +3092,7 @@
2727
3092
  ]
2728
3093
  },
2729
3094
  "default": "`{}`",
2730
- "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.",
3095
+ "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.",
2731
3096
  "type": "object"
2732
3097
  },
2733
3098
  "vectorize": {
@@ -2737,7 +3102,7 @@
2737
3102
  "additionalProperties": false,
2738
3103
  "properties": {
2739
3104
  "binding": {
2740
- "description": "The binding name used to refer to the Vectorize index in the worker.",
3105
+ "description": "The binding name used to refer to the Vectorize index in the Worker.",
2741
3106
  "type": "string"
2742
3107
  },
2743
3108
  "index_name": {
@@ -2768,9 +3133,17 @@
2768
3133
  },
2769
3134
  "workers_dev": {
2770
3135
  "default": "`true` (This is a breaking change from Wrangler v1)",
2771
- "description": "Whether we use <name>.<subdomain>.workers.dev to test and deploy your worker.",
3136
+ "description": "Whether we use <name>.<subdomain>.workers.dev to test and deploy your Worker.\n\n// Carmen according to our tests the default is undefined // warning: you must force \"workers_dev: true\" in tests to match expected behavior",
2772
3137
  "type": "boolean"
2773
3138
  },
3139
+ "workflows": {
3140
+ "default": "`[]`",
3141
+ "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.",
3142
+ "items": {
3143
+ "$ref": "#/definitions/WorkflowBinding"
3144
+ },
3145
+ "type": "array"
3146
+ },
2774
3147
  "zone_id": {
2775
3148
  "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.",
2776
3149
  "type": "string"
@@ -2781,7 +3154,7 @@
2781
3154
  "Route": {
2782
3155
  "anyOf": [
2783
3156
  {
2784
- "$ref": "#/definitions/SimpleRoute"
3157
+ "type": "string"
2785
3158
  },
2786
3159
  {
2787
3160
  "$ref": "#/definitions/ZoneIdRoute"
@@ -2817,14 +3190,11 @@
2817
3190
  ],
2818
3191
  "type": "object"
2819
3192
  },
2820
- "SimpleRoute": {
2821
- "type": "string"
2822
- },
2823
3193
  "TailConsumer": {
2824
3194
  "additionalProperties": false,
2825
3195
  "properties": {
2826
3196
  "environment": {
2827
- "description": "(Optional) The environt of the service.",
3197
+ "description": "(Optional) The environment of the service.",
2828
3198
  "type": "string"
2829
3199
  },
2830
3200
  "service": {
@@ -2849,7 +3219,7 @@
2849
3219
  "additionalProperties": false,
2850
3220
  "properties": {
2851
3221
  "cpu_ms": {
2852
- "description": "Maximum allowed CPU time for a worker's invocation in milliseconds",
3222
+ "description": "Maximum allowed CPU time for a Worker's invocation in milliseconds",
2853
3223
  "type": "number"
2854
3224
  }
2855
3225
  },
@@ -2858,6 +3228,33 @@
2858
3228
  ],
2859
3229
  "type": "object"
2860
3230
  },
3231
+ "WorkflowBinding": {
3232
+ "additionalProperties": false,
3233
+ "properties": {
3234
+ "binding": {
3235
+ "description": "The name of the binding used to refer to the Workflow",
3236
+ "type": "string"
3237
+ },
3238
+ "class_name": {
3239
+ "description": "The exported class name of the Workflow",
3240
+ "type": "string"
3241
+ },
3242
+ "name": {
3243
+ "description": "The name of the Workflow",
3244
+ "type": "string"
3245
+ },
3246
+ "script_name": {
3247
+ "description": "The script where the Workflow is defined (if it's external to this Worker)",
3248
+ "type": "string"
3249
+ }
3250
+ },
3251
+ "required": [
3252
+ "binding",
3253
+ "name",
3254
+ "class_name"
3255
+ ],
3256
+ "type": "object"
3257
+ },
2861
3258
  "ZoneIdRoute": {
2862
3259
  "additionalProperties": false,
2863
3260
  "properties": {