wrangler 0.0.0-e0abf917 → 0.0.0-e0b98fdb6

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,6 +1361,7 @@
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"
@@ -1090,28 +1371,23 @@
1090
1371
  "configPath": {
1091
1372
  "type": "string"
1092
1373
  },
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"
1374
+ "containers": {
1375
+ "additionalProperties": false,
1376
+ "description": "Container related configuration",
1377
+ "properties": {
1378
+ "app": {
1379
+ "default": "`{}`",
1380
+ "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.",
1381
+ "items": {
1382
+ "$ref": "#/definitions/ContainerApp"
1102
1383
  },
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"
1384
+ "type": "array"
1385
+ }
1113
1386
  },
1114
- "type": "array"
1387
+ "required": [
1388
+ "app"
1389
+ ],
1390
+ "type": "object"
1115
1391
  },
1116
1392
  "d1_databases": {
1117
1393
  "default": "`[]`",
@@ -1120,7 +1396,7 @@
1120
1396
  "additionalProperties": false,
1121
1397
  "properties": {
1122
1398
  "binding": {
1123
- "description": "The binding name used to refer to the D1 database in the worker.",
1399
+ "description": "The binding name used to refer to the D1 database in the Worker.",
1124
1400
  "type": "string"
1125
1401
  },
1126
1402
  "database_id": {
@@ -1149,9 +1425,7 @@
1149
1425
  }
1150
1426
  },
1151
1427
  "required": [
1152
- "binding",
1153
- "database_name",
1154
- "database_id"
1428
+ "binding"
1155
1429
  ],
1156
1430
  "type": "object"
1157
1431
  },
@@ -1169,7 +1443,7 @@
1169
1443
  "type": "string"
1170
1444
  },
1171
1445
  "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.",
1446
+ "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
1447
  "type": "object"
1174
1448
  },
1175
1449
  "dev": {
@@ -1192,7 +1466,7 @@
1192
1466
  },
1193
1467
  "outbound": {
1194
1468
  "$ref": "#/definitions/DispatchNamespaceOutbound",
1195
- "description": "Details about the outbound worker which will handle outbound requests from your namespace"
1469
+ "description": "Details about the outbound Worker which will handle outbound requests from your namespace"
1196
1470
  }
1197
1471
  },
1198
1472
  "required": [
@@ -1206,7 +1480,7 @@
1206
1480
  "durable_objects": {
1207
1481
  "additionalProperties": false,
1208
1482
  "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.",
1483
+ "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
1484
  "properties": {
1211
1485
  "bindings": {
1212
1486
  "$ref": "#/definitions/DurableObjectBindings"
@@ -1228,7 +1502,7 @@
1228
1502
  "experimental_services": {
1229
1503
  "default": "`[]`",
1230
1504
  "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.",
1505
+ "description": "A list of services that your Worker should be bound to.",
1232
1506
  "items": {
1233
1507
  "additionalProperties": false,
1234
1508
  "properties": {
@@ -1255,11 +1529,11 @@
1255
1529
  "type": "array"
1256
1530
  },
1257
1531
  "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.",
1532
+ "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
1533
  "type": "boolean"
1260
1534
  },
1261
1535
  "first_party_worker": {
1262
- "description": "Designates this worker as an internal-only \"first-party\" worker.",
1536
+ "description": "Designates this Worker as an internal-only \"first-party\" Worker.",
1263
1537
  "type": "boolean"
1264
1538
  },
1265
1539
  "hyperdrive": {
@@ -1269,7 +1543,7 @@
1269
1543
  "additionalProperties": false,
1270
1544
  "properties": {
1271
1545
  "binding": {
1272
- "description": "The binding name used to refer to the project in the worker.",
1546
+ "description": "The binding name used to refer to the project in the Worker.",
1273
1547
  "type": "string"
1274
1548
  },
1275
1549
  "id": {
@@ -1301,7 +1575,7 @@
1301
1575
  },
1302
1576
  "keep_vars": {
1303
1577
  "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.",
1578
+ "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
1579
  "type": "boolean"
1306
1580
  },
1307
1581
  "kv-namespaces": {
@@ -1329,13 +1603,53 @@
1329
1603
  }
1330
1604
  },
1331
1605
  "required": [
1332
- "binding",
1333
- "id"
1606
+ "binding"
1334
1607
  ],
1335
1608
  "type": "object"
1336
1609
  },
1337
1610
  "type": "array"
1338
1611
  },
1612
+ "legacy_assets": {
1613
+ "anyOf": [
1614
+ {
1615
+ "additionalProperties": false,
1616
+ "properties": {
1617
+ "browser_TTL": {
1618
+ "type": "number"
1619
+ },
1620
+ "bucket": {
1621
+ "type": "string"
1622
+ },
1623
+ "exclude": {
1624
+ "items": {
1625
+ "type": "string"
1626
+ },
1627
+ "type": "array"
1628
+ },
1629
+ "include": {
1630
+ "items": {
1631
+ "type": "string"
1632
+ },
1633
+ "type": "array"
1634
+ },
1635
+ "serve_single_page_app": {
1636
+ "type": "boolean"
1637
+ }
1638
+ },
1639
+ "required": [
1640
+ "bucket",
1641
+ "include",
1642
+ "exclude",
1643
+ "serve_single_page_app"
1644
+ ],
1645
+ "type": "object"
1646
+ },
1647
+ {
1648
+ "type": "string"
1649
+ }
1650
+ ],
1651
+ "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`."
1652
+ },
1339
1653
  "legacy_env": {
1340
1654
  "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
1655
  "type": "boolean"
@@ -1377,7 +1691,7 @@
1377
1691
  "type": "object"
1378
1692
  },
1379
1693
  "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/",
1694
+ "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
1695
  "type": "boolean"
1382
1696
  },
1383
1697
  "main": {
@@ -1388,51 +1702,7 @@
1388
1702
  "default": [],
1389
1703
  "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
1704
  "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"
1705
+ "$ref": "#/definitions/DurableObjectMigration"
1436
1706
  },
1437
1707
  "type": "array"
1438
1708
  },
@@ -1445,11 +1715,13 @@
1445
1715
  "type": "boolean"
1446
1716
  },
1447
1717
  "mtls_certificates": {
1718
+ "default": "`[]`",
1719
+ "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
1720
  "items": {
1449
1721
  "additionalProperties": false,
1450
1722
  "properties": {
1451
1723
  "binding": {
1452
- "description": "The binding name used to refer to the certificate in the worker",
1724
+ "description": "The binding name used to refer to the certificate in the Worker",
1453
1725
  "type": "string"
1454
1726
  },
1455
1727
  "certificate_id": {
@@ -1466,7 +1738,7 @@
1466
1738
  "type": "array"
1467
1739
  },
1468
1740
  "name": {
1469
- "description": "The name of your worker. Alphanumeric + dashes only.",
1741
+ "description": "The name of your Worker. Alphanumeric + dashes only.",
1470
1742
  "type": "string"
1471
1743
  },
1472
1744
  "no_bundle": {
@@ -1477,14 +1749,44 @@
1477
1749
  "description": "Add polyfills for node builtin modules and globals",
1478
1750
  "type": "boolean"
1479
1751
  },
1752
+ "observability": {
1753
+ "$ref": "#/definitions/Observability",
1754
+ "description": "Specify the observability behavior of the Worker."
1755
+ },
1480
1756
  "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.",
1757
+ "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
1758
  "type": "string"
1483
1759
  },
1760
+ "pipelines": {
1761
+ "default": "`[]`",
1762
+ "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.",
1763
+ "items": {
1764
+ "additionalProperties": false,
1765
+ "properties": {
1766
+ "binding": {
1767
+ "description": "The binding name used to refer to the bound service.",
1768
+ "type": "string"
1769
+ },
1770
+ "pipeline": {
1771
+ "description": "Name of the Pipeline to bind",
1772
+ "type": "string"
1773
+ }
1774
+ },
1775
+ "required": [
1776
+ "binding",
1777
+ "pipeline"
1778
+ ],
1779
+ "type": "object"
1780
+ },
1781
+ "type": "array"
1782
+ },
1484
1783
  "placement": {
1485
1784
  "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/",
1785
+ "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
1786
  "properties": {
1787
+ "hint": {
1788
+ "type": "string"
1789
+ },
1488
1790
  "mode": {
1489
1791
  "enum": [
1490
1792
  "off",
@@ -1502,9 +1804,14 @@
1502
1804
  "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
1805
  "type": "boolean"
1504
1806
  },
1807
+ "preview_urls": {
1808
+ "default": "`true`",
1809
+ "description": "Whether we use <version>-<name>.<subdomain>.workers.dev to serve Preview URLs for your Worker.",
1810
+ "type": "boolean"
1811
+ },
1505
1812
  "queues": {
1506
1813
  "additionalProperties": false,
1507
- "default": "`{}`",
1814
+ "default": "`{consumers:[],producers:[]}`",
1508
1815
  "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
1816
  "properties": {
1510
1817
  "consumers": {
@@ -1565,7 +1872,7 @@
1565
1872
  "additionalProperties": false,
1566
1873
  "properties": {
1567
1874
  "binding": {
1568
- "description": "The binding name used to refer to the Queue in the worker.",
1875
+ "description": "The binding name used to refer to the Queue in the Worker.",
1569
1876
  "type": "string"
1570
1877
  },
1571
1878
  "delivery_delay": {
@@ -1595,7 +1902,7 @@
1595
1902
  "additionalProperties": false,
1596
1903
  "properties": {
1597
1904
  "binding": {
1598
- "description": "The binding name used to refer to the R2 bucket in the worker.",
1905
+ "description": "The binding name used to refer to the R2 bucket in the Worker.",
1599
1906
  "type": "string"
1600
1907
  },
1601
1908
  "bucket_name": {
@@ -1612,8 +1919,7 @@
1612
1919
  }
1613
1920
  },
1614
1921
  "required": [
1615
- "binding",
1616
- "bucket_name"
1922
+ "binding"
1617
1923
  ],
1618
1924
  "type": "object"
1619
1925
  },
@@ -1621,10 +1927,10 @@
1621
1927
  },
1622
1928
  "route": {
1623
1929
  "$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"
1930
+ "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
1931
  },
1626
1932
  "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`)",
1933
+ "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
1934
  "items": {
1629
1935
  "$ref": "#/definitions/Route"
1630
1936
  },
@@ -1672,7 +1978,7 @@
1672
1978
  },
1673
1979
  "services": {
1674
1980
  "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.",
1981
+ "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
1982
  "items": {
1677
1983
  "additionalProperties": false,
1678
1984
  "properties": {
@@ -1706,7 +2012,7 @@
1706
2012
  "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
2013
  "properties": {
1708
2014
  "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.",
2015
+ "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
2016
  "type": "string"
1711
2017
  },
1712
2018
  "entry-point": {
@@ -1737,6 +2043,8 @@
1737
2043
  "type": "object"
1738
2044
  },
1739
2045
  "tail_consumers": {
2046
+ "default": "`[]`",
2047
+ "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
2048
  "items": {
1741
2049
  "$ref": "#/definitions/TailConsumer"
1742
2050
  },
@@ -1752,7 +2060,7 @@
1752
2060
  "triggers": {
1753
2061
  "additionalProperties": false,
1754
2062
  "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",
2063
+ "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
2064
  "properties": {
1757
2065
  "crons": {
1758
2066
  "items": {
@@ -1782,6 +2090,7 @@
1782
2090
  },
1783
2091
  "unsafe": {
1784
2092
  "additionalProperties": false,
2093
+ "default": "`{}`",
1785
2094
  "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
2095
  "properties": {
1787
2096
  "bindings": {
@@ -1872,7 +2181,7 @@
1872
2181
  ]
1873
2182
  },
1874
2183
  "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.",
2184
+ "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
2185
  "type": "object"
1877
2186
  },
1878
2187
  "vectorize": {
@@ -1882,7 +2191,7 @@
1882
2191
  "additionalProperties": false,
1883
2192
  "properties": {
1884
2193
  "binding": {
1885
- "description": "The binding name used to refer to the Vectorize index in the worker.",
2194
+ "description": "The binding name used to refer to the Vectorize index in the Worker.",
1886
2195
  "type": "string"
1887
2196
  },
1888
2197
  "index_name": {
@@ -1925,9 +2234,17 @@
1925
2234
  },
1926
2235
  "workers_dev": {
1927
2236
  "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.",
2237
+ "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
2238
  "type": "boolean"
1930
2239
  },
2240
+ "workflows": {
2241
+ "default": "`[]`",
2242
+ "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.",
2243
+ "items": {
2244
+ "$ref": "#/definitions/WorkflowBinding"
2245
+ },
2246
+ "type": "array"
2247
+ },
1931
2248
  "zone_id": {
1932
2249
  "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
2250
  "type": "string"
@@ -1988,10 +2305,14 @@
1988
2305
  },
1989
2306
  "ai": {
1990
2307
  "additionalProperties": false,
1991
- "description": "Binding to the AI project.",
2308
+ "default": "`{}`",
2309
+ "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
2310
  "properties": {
1993
2311
  "binding": {
1994
2312
  "type": "string"
2313
+ },
2314
+ "staging": {
2315
+ "type": "boolean"
1995
2316
  }
1996
2317
  },
1997
2318
  "required": [
@@ -2006,7 +2327,7 @@
2006
2327
  "additionalProperties": false,
2007
2328
  "properties": {
2008
2329
  "binding": {
2009
- "description": "The binding name used to refer to the dataset in the worker.",
2330
+ "description": "The binding name used to refer to the dataset in the Worker.",
2010
2331
  "type": "string"
2011
2332
  },
2012
2333
  "dataset": {
@@ -2021,13 +2342,18 @@
2021
2342
  },
2022
2343
  "type": "array"
2023
2344
  },
2345
+ "assets": {
2346
+ "$ref": "#/definitions/Assets",
2347
+ "description": "Specify the directory of static assets to deploy/serve\n\nMore details at https://developers.cloudflare.com/workers/frameworks/"
2348
+ },
2024
2349
  "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.",
2350
+ "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
2351
  "type": "string"
2027
2352
  },
2028
2353
  "browser": {
2029
2354
  "additionalProperties": false,
2030
- "description": "A browser that will be usable from the worker.",
2355
+ "default": "`{}`",
2356
+ "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
2357
  "properties": {
2032
2358
  "binding": {
2033
2359
  "type": "string"
@@ -2040,7 +2366,9 @@
2040
2366
  },
2041
2367
  "build": {
2042
2368
  "additionalProperties": false,
2043
- "default": {},
2369
+ "default": {
2370
+ "watch_dir": "./src"
2371
+ },
2044
2372
  "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
2373
  "properties": {
2046
2374
  "command": {
@@ -2083,34 +2411,30 @@
2083
2411
  "type": "string"
2084
2412
  },
2085
2413
  "compatibility_flags": {
2414
+ "default": "`[]`",
2086
2415
  "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
2416
  "items": {
2088
2417
  "type": "string"
2089
2418
  },
2090
2419
  "type": "array"
2091
2420
  },
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"
2421
+ "containers": {
2422
+ "additionalProperties": false,
2423
+ "description": "Container related configuration",
2424
+ "properties": {
2425
+ "app": {
2426
+ "default": "`{}`",
2427
+ "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.",
2428
+ "items": {
2429
+ "$ref": "#/definitions/ContainerApp"
2101
2430
  },
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"
2431
+ "type": "array"
2432
+ }
2112
2433
  },
2113
- "type": "array"
2434
+ "required": [
2435
+ "app"
2436
+ ],
2437
+ "type": "object"
2114
2438
  },
2115
2439
  "d1_databases": {
2116
2440
  "default": "`[]`",
@@ -2119,7 +2443,7 @@
2119
2443
  "additionalProperties": false,
2120
2444
  "properties": {
2121
2445
  "binding": {
2122
- "description": "The binding name used to refer to the D1 database in the worker.",
2446
+ "description": "The binding name used to refer to the D1 database in the Worker.",
2123
2447
  "type": "string"
2124
2448
  },
2125
2449
  "database_id": {
@@ -2148,9 +2472,7 @@
2148
2472
  }
2149
2473
  },
2150
2474
  "required": [
2151
- "binding",
2152
- "database_name",
2153
- "database_id"
2475
+ "binding"
2154
2476
  ],
2155
2477
  "type": "object"
2156
2478
  },
@@ -2161,7 +2483,7 @@
2161
2483
  "type": "string"
2162
2484
  },
2163
2485
  "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.",
2486
+ "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
2487
  "type": "object"
2166
2488
  },
2167
2489
  "dispatch_namespaces": {
@@ -2180,7 +2502,7 @@
2180
2502
  },
2181
2503
  "outbound": {
2182
2504
  "$ref": "#/definitions/DispatchNamespaceOutbound",
2183
- "description": "Details about the outbound worker which will handle outbound requests from your namespace"
2505
+ "description": "Details about the outbound Worker which will handle outbound requests from your namespace"
2184
2506
  }
2185
2507
  },
2186
2508
  "required": [
@@ -2194,7 +2516,7 @@
2194
2516
  "durable_objects": {
2195
2517
  "additionalProperties": false,
2196
2518
  "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.",
2519
+ "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
2520
  "properties": {
2199
2521
  "bindings": {
2200
2522
  "$ref": "#/definitions/DurableObjectBindings"
@@ -2208,7 +2530,7 @@
2208
2530
  "experimental_services": {
2209
2531
  "default": "`[]`",
2210
2532
  "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.",
2533
+ "description": "A list of services that your Worker should be bound to.",
2212
2534
  "items": {
2213
2535
  "additionalProperties": false,
2214
2536
  "properties": {
@@ -2235,11 +2557,11 @@
2235
2557
  "type": "array"
2236
2558
  },
2237
2559
  "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.",
2560
+ "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
2561
  "type": "boolean"
2240
2562
  },
2241
2563
  "first_party_worker": {
2242
- "description": "Designates this worker as an internal-only \"first-party\" worker.",
2564
+ "description": "Designates this Worker as an internal-only \"first-party\" Worker.",
2243
2565
  "type": "boolean"
2244
2566
  },
2245
2567
  "hyperdrive": {
@@ -2249,7 +2571,7 @@
2249
2571
  "additionalProperties": false,
2250
2572
  "properties": {
2251
2573
  "binding": {
2252
- "description": "The binding name used to refer to the project in the worker.",
2574
+ "description": "The binding name used to refer to the project in the Worker.",
2253
2575
  "type": "string"
2254
2576
  },
2255
2577
  "id": {
@@ -2304,8 +2626,7 @@
2304
2626
  }
2305
2627
  },
2306
2628
  "required": [
2307
- "binding",
2308
- "id"
2629
+ "binding"
2309
2630
  ],
2310
2631
  "type": "object"
2311
2632
  },
@@ -2348,23 +2669,33 @@
2348
2669
  "type": "object"
2349
2670
  },
2350
2671
  "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/",
2672
+ "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
2673
  "type": "boolean"
2353
2674
  },
2354
2675
  "main": {
2355
2676
  "description": "The entrypoint/path to the JavaScript file that will be executed.",
2356
2677
  "type": "string"
2357
2678
  },
2679
+ "migrations": {
2680
+ "default": [],
2681
+ "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",
2682
+ "items": {
2683
+ "$ref": "#/definitions/DurableObjectMigration"
2684
+ },
2685
+ "type": "array"
2686
+ },
2358
2687
  "minify": {
2359
2688
  "description": "Minify the script before uploading.",
2360
2689
  "type": "boolean"
2361
2690
  },
2362
2691
  "mtls_certificates": {
2692
+ "default": "`[]`",
2693
+ "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
2694
  "items": {
2364
2695
  "additionalProperties": false,
2365
2696
  "properties": {
2366
2697
  "binding": {
2367
- "description": "The binding name used to refer to the certificate in the worker",
2698
+ "description": "The binding name used to refer to the certificate in the Worker",
2368
2699
  "type": "string"
2369
2700
  },
2370
2701
  "certificate_id": {
@@ -2381,7 +2712,7 @@
2381
2712
  "type": "array"
2382
2713
  },
2383
2714
  "name": {
2384
- "description": "The name of your worker. Alphanumeric + dashes only.",
2715
+ "description": "The name of your Worker. Alphanumeric + dashes only.",
2385
2716
  "type": "string"
2386
2717
  },
2387
2718
  "no_bundle": {
@@ -2392,10 +2723,40 @@
2392
2723
  "description": "Add polyfills for node builtin modules and globals",
2393
2724
  "type": "boolean"
2394
2725
  },
2726
+ "observability": {
2727
+ "$ref": "#/definitions/Observability",
2728
+ "description": "Specify the observability behavior of the Worker."
2729
+ },
2730
+ "pipelines": {
2731
+ "default": "`[]`",
2732
+ "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.",
2733
+ "items": {
2734
+ "additionalProperties": false,
2735
+ "properties": {
2736
+ "binding": {
2737
+ "description": "The binding name used to refer to the bound service.",
2738
+ "type": "string"
2739
+ },
2740
+ "pipeline": {
2741
+ "description": "Name of the Pipeline to bind",
2742
+ "type": "string"
2743
+ }
2744
+ },
2745
+ "required": [
2746
+ "binding",
2747
+ "pipeline"
2748
+ ],
2749
+ "type": "object"
2750
+ },
2751
+ "type": "array"
2752
+ },
2395
2753
  "placement": {
2396
2754
  "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/",
2755
+ "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
2756
  "properties": {
2757
+ "hint": {
2758
+ "type": "string"
2759
+ },
2399
2760
  "mode": {
2400
2761
  "enum": [
2401
2762
  "off",
@@ -2413,9 +2774,14 @@
2413
2774
  "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
2775
  "type": "boolean"
2415
2776
  },
2777
+ "preview_urls": {
2778
+ "default": "`true`",
2779
+ "description": "Whether we use <version>-<name>.<subdomain>.workers.dev to serve Preview URLs for your Worker.",
2780
+ "type": "boolean"
2781
+ },
2416
2782
  "queues": {
2417
2783
  "additionalProperties": false,
2418
- "default": "`{}`",
2784
+ "default": "`{consumers:[],producers:[]}`",
2419
2785
  "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
2786
  "properties": {
2421
2787
  "consumers": {
@@ -2476,7 +2842,7 @@
2476
2842
  "additionalProperties": false,
2477
2843
  "properties": {
2478
2844
  "binding": {
2479
- "description": "The binding name used to refer to the Queue in the worker.",
2845
+ "description": "The binding name used to refer to the Queue in the Worker.",
2480
2846
  "type": "string"
2481
2847
  },
2482
2848
  "delivery_delay": {
@@ -2506,7 +2872,7 @@
2506
2872
  "additionalProperties": false,
2507
2873
  "properties": {
2508
2874
  "binding": {
2509
- "description": "The binding name used to refer to the R2 bucket in the worker.",
2875
+ "description": "The binding name used to refer to the R2 bucket in the Worker.",
2510
2876
  "type": "string"
2511
2877
  },
2512
2878
  "bucket_name": {
@@ -2523,8 +2889,7 @@
2523
2889
  }
2524
2890
  },
2525
2891
  "required": [
2526
- "binding",
2527
- "bucket_name"
2892
+ "binding"
2528
2893
  ],
2529
2894
  "type": "object"
2530
2895
  },
@@ -2532,10 +2897,10 @@
2532
2897
  },
2533
2898
  "route": {
2534
2899
  "$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"
2900
+ "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
2901
  },
2537
2902
  "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`)",
2903
+ "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
2904
  "items": {
2540
2905
  "$ref": "#/definitions/Route"
2541
2906
  },
@@ -2579,7 +2944,7 @@
2579
2944
  },
2580
2945
  "services": {
2581
2946
  "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.",
2947
+ "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
2948
  "items": {
2584
2949
  "additionalProperties": false,
2585
2950
  "properties": {
@@ -2609,6 +2974,8 @@
2609
2974
  "type": "array"
2610
2975
  },
2611
2976
  "tail_consumers": {
2977
+ "default": "`[]`",
2978
+ "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
2979
  "items": {
2613
2980
  "$ref": "#/definitions/TailConsumer"
2614
2981
  },
@@ -2617,7 +2984,7 @@
2617
2984
  "triggers": {
2618
2985
  "additionalProperties": false,
2619
2986
  "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",
2987
+ "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
2988
  "properties": {
2622
2989
  "crons": {
2623
2990
  "items": {
@@ -2637,6 +3004,7 @@
2637
3004
  },
2638
3005
  "unsafe": {
2639
3006
  "additionalProperties": false,
3007
+ "default": "`{}`",
2640
3008
  "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
3009
  "properties": {
2642
3010
  "bindings": {
@@ -2727,7 +3095,7 @@
2727
3095
  ]
2728
3096
  },
2729
3097
  "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.",
3098
+ "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
3099
  "type": "object"
2732
3100
  },
2733
3101
  "vectorize": {
@@ -2737,7 +3105,7 @@
2737
3105
  "additionalProperties": false,
2738
3106
  "properties": {
2739
3107
  "binding": {
2740
- "description": "The binding name used to refer to the Vectorize index in the worker.",
3108
+ "description": "The binding name used to refer to the Vectorize index in the Worker.",
2741
3109
  "type": "string"
2742
3110
  },
2743
3111
  "index_name": {
@@ -2768,9 +3136,17 @@
2768
3136
  },
2769
3137
  "workers_dev": {
2770
3138
  "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.",
3139
+ "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
3140
  "type": "boolean"
2773
3141
  },
3142
+ "workflows": {
3143
+ "default": "`[]`",
3144
+ "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.",
3145
+ "items": {
3146
+ "$ref": "#/definitions/WorkflowBinding"
3147
+ },
3148
+ "type": "array"
3149
+ },
2774
3150
  "zone_id": {
2775
3151
  "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
3152
  "type": "string"
@@ -2781,7 +3157,7 @@
2781
3157
  "Route": {
2782
3158
  "anyOf": [
2783
3159
  {
2784
- "$ref": "#/definitions/SimpleRoute"
3160
+ "type": "string"
2785
3161
  },
2786
3162
  {
2787
3163
  "$ref": "#/definitions/ZoneIdRoute"
@@ -2817,14 +3193,11 @@
2817
3193
  ],
2818
3194
  "type": "object"
2819
3195
  },
2820
- "SimpleRoute": {
2821
- "type": "string"
2822
- },
2823
3196
  "TailConsumer": {
2824
3197
  "additionalProperties": false,
2825
3198
  "properties": {
2826
3199
  "environment": {
2827
- "description": "(Optional) The environt of the service.",
3200
+ "description": "(Optional) The environment of the service.",
2828
3201
  "type": "string"
2829
3202
  },
2830
3203
  "service": {
@@ -2849,7 +3222,7 @@
2849
3222
  "additionalProperties": false,
2850
3223
  "properties": {
2851
3224
  "cpu_ms": {
2852
- "description": "Maximum allowed CPU time for a worker's invocation in milliseconds",
3225
+ "description": "Maximum allowed CPU time for a Worker's invocation in milliseconds",
2853
3226
  "type": "number"
2854
3227
  }
2855
3228
  },
@@ -2858,6 +3231,33 @@
2858
3231
  ],
2859
3232
  "type": "object"
2860
3233
  },
3234
+ "WorkflowBinding": {
3235
+ "additionalProperties": false,
3236
+ "properties": {
3237
+ "binding": {
3238
+ "description": "The name of the binding used to refer to the Workflow",
3239
+ "type": "string"
3240
+ },
3241
+ "class_name": {
3242
+ "description": "The exported class name of the Workflow",
3243
+ "type": "string"
3244
+ },
3245
+ "name": {
3246
+ "description": "The name of the Workflow",
3247
+ "type": "string"
3248
+ },
3249
+ "script_name": {
3250
+ "description": "The script where the Workflow is defined (if it's external to this Worker)",
3251
+ "type": "string"
3252
+ }
3253
+ },
3254
+ "required": [
3255
+ "binding",
3256
+ "name",
3257
+ "class_name"
3258
+ ],
3259
+ "type": "object"
3260
+ },
2861
3261
  "ZoneIdRoute": {
2862
3262
  "additionalProperties": false,
2863
3263
  "properties": {