wrangler 0.0.0-e75c5812f → 0.0.0-e771fe990

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,6 +2,43 @@
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",
@@ -38,6 +75,107 @@
38
75
  ],
39
76
  "type": "string"
40
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
+ },
41
179
  "CustomDomainRoute": {
42
180
  "additionalProperties": false,
43
181
  "properties": {
@@ -60,7 +198,7 @@
60
198
  "properties": {
61
199
  "dir": {
62
200
  "deprecated": true,
63
- "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.",
64
202
  "type": "string"
65
203
  },
66
204
  "format": {
@@ -137,6 +275,61 @@
137
275
  },
138
276
  "type": "array"
139
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
+ },
140
333
  "Environment": {
141
334
  "additionalProperties": false,
142
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.",
@@ -184,6 +377,10 @@
184
377
  },
185
378
  "type": "array"
186
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
+ },
187
384
  "base_dir": {
188
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.",
189
386
  "type": "string"
@@ -256,6 +453,24 @@
256
453
  },
257
454
  "type": "array"
258
455
  },
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"
465
+ },
466
+ "type": "array"
467
+ }
468
+ },
469
+ "required": [
470
+ "app"
471
+ ],
472
+ "type": "object"
473
+ },
259
474
  "d1_databases": {
260
475
  "default": "`[]`",
261
476
  "description": "Specifies D1 databases that are bound to this Worker environment.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
@@ -292,9 +507,7 @@
292
507
  }
293
508
  },
294
509
  "required": [
295
- "binding",
296
- "database_name",
297
- "database_id"
510
+ "binding"
298
511
  ],
299
512
  "type": "object"
300
513
  },
@@ -349,10 +562,6 @@
349
562
  ],
350
563
  "type": "object"
351
564
  },
352
- "experimental_assets": {
353
- "$ref": "#/definitions/ExperimentalAssets",
354
- "description": "Specify the directory of static assets to deploy/serve"
355
- },
356
565
  "find_additional_modules": {
357
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.",
358
567
  "type": "boolean"
@@ -418,8 +627,7 @@
418
627
  }
419
628
  },
420
629
  "required": [
421
- "binding",
422
- "id"
630
+ "binding"
423
631
  ],
424
632
  "type": "object"
425
633
  },
@@ -473,51 +681,7 @@
473
681
  "default": [],
474
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",
475
683
  "items": {
476
- "additionalProperties": false,
477
- "properties": {
478
- "deleted_classes": {
479
- "description": "The Durable Objects being removed.",
480
- "items": {
481
- "type": "string"
482
- },
483
- "type": "array"
484
- },
485
- "new_classes": {
486
- "description": "The new Durable Objects being defined.",
487
- "items": {
488
- "type": "string"
489
- },
490
- "type": "array"
491
- },
492
- "renamed_classes": {
493
- "description": "The Durable Objects being renamed.",
494
- "items": {
495
- "additionalProperties": false,
496
- "properties": {
497
- "from": {
498
- "type": "string"
499
- },
500
- "to": {
501
- "type": "string"
502
- }
503
- },
504
- "required": [
505
- "from",
506
- "to"
507
- ],
508
- "type": "object"
509
- },
510
- "type": "array"
511
- },
512
- "tag": {
513
- "description": "A unique identifier for this migration.",
514
- "type": "string"
515
- }
516
- },
517
- "required": [
518
- "tag"
519
- ],
520
- "type": "object"
684
+ "$ref": "#/definitions/DurableObjectMigration"
521
685
  },
522
686
  "type": "array"
523
687
  },
@@ -560,10 +724,40 @@
560
724
  "description": "Add polyfills for node builtin modules and globals",
561
725
  "type": "boolean"
562
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
+ },
563
754
  "placement": {
564
755
  "additionalProperties": false,
565
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/",
566
757
  "properties": {
758
+ "hint": {
759
+ "type": "string"
760
+ },
567
761
  "mode": {
568
762
  "enum": [
569
763
  "off",
@@ -581,6 +775,11 @@
581
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`.",
582
776
  "type": "boolean"
583
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
+ },
584
783
  "queues": {
585
784
  "additionalProperties": false,
586
785
  "default": "`{consumers:[],producers:[]}`",
@@ -691,8 +890,7 @@
691
890
  }
692
891
  },
693
892
  "required": [
694
- "binding",
695
- "bucket_name"
893
+ "binding"
696
894
  ],
697
895
  "type": "object"
698
896
  },
@@ -939,9 +1137,17 @@
939
1137
  },
940
1138
  "workers_dev": {
941
1139
  "default": "`true` (This is a breaking change from Wrangler v1)",
942
- "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",
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",
943
1141
  "type": "boolean"
944
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
+ },
945
1151
  "zone_id": {
946
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.",
947
1153
  "type": "string"
@@ -952,6 +1158,7 @@
952
1158
  "build",
953
1159
  "cloudchamber",
954
1160
  "compatibility_flags",
1161
+ "containers",
955
1162
  "d1_databases",
956
1163
  "define",
957
1164
  "dispatch_namespaces",
@@ -963,6 +1170,7 @@
963
1170
  "logfwdr",
964
1171
  "migrations",
965
1172
  "mtls_certificates",
1173
+ "pipelines",
966
1174
  "queues",
967
1175
  "r2_buckets",
968
1176
  "rules",
@@ -970,23 +1178,8 @@
970
1178
  "triggers",
971
1179
  "unsafe",
972
1180
  "vars",
973
- "vectorize"
974
- ],
975
- "type": "object"
976
- },
977
- "ExperimentalAssets": {
978
- "additionalProperties": false,
979
- "properties": {
980
- "binding": {
981
- "type": "string"
982
- },
983
- "directory": {
984
- "description": "Absolute path to assets directory",
985
- "type": "string"
986
- }
987
- },
988
- "required": [
989
- "directory"
1181
+ "vectorize",
1182
+ "workflows"
990
1183
  ],
991
1184
  "type": "object"
992
1185
  },
@@ -1012,6 +1205,37 @@
1012
1205
  "Literal": {
1013
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"
1014
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
+ },
1015
1239
  "RawConfig": {
1016
1240
  "additionalProperties": false,
1017
1241
  "properties": {
@@ -1069,45 +1293,8 @@
1069
1293
  "type": "array"
1070
1294
  },
1071
1295
  "assets": {
1072
- "anyOf": [
1073
- {
1074
- "additionalProperties": false,
1075
- "properties": {
1076
- "browser_TTL": {
1077
- "type": "number"
1078
- },
1079
- "bucket": {
1080
- "type": "string"
1081
- },
1082
- "exclude": {
1083
- "items": {
1084
- "type": "string"
1085
- },
1086
- "type": "array"
1087
- },
1088
- "include": {
1089
- "items": {
1090
- "type": "string"
1091
- },
1092
- "type": "array"
1093
- },
1094
- "serve_single_page_app": {
1095
- "type": "boolean"
1096
- }
1097
- },
1098
- "required": [
1099
- "bucket",
1100
- "include",
1101
- "exclude",
1102
- "serve_single_page_app"
1103
- ],
1104
- "type": "object"
1105
- },
1106
- {
1107
- "type": "string"
1108
- }
1109
- ],
1110
- "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. Only one of assets and legacy_assets can be used."
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/"
1111
1298
  },
1112
1299
  "base_dir": {
1113
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.",
@@ -1181,8 +1368,23 @@
1181
1368
  },
1182
1369
  "type": "array"
1183
1370
  },
1184
- "configPath": {
1185
- "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"
1380
+ },
1381
+ "type": "array"
1382
+ }
1383
+ },
1384
+ "required": [
1385
+ "app"
1386
+ ],
1387
+ "type": "object"
1186
1388
  },
1187
1389
  "d1_databases": {
1188
1390
  "default": "`[]`",
@@ -1220,9 +1422,7 @@
1220
1422
  }
1221
1423
  },
1222
1424
  "required": [
1223
- "binding",
1224
- "database_name",
1225
- "database_id"
1425
+ "binding"
1226
1426
  ],
1227
1427
  "type": "object"
1228
1428
  },
@@ -1296,10 +1496,6 @@
1296
1496
  "description": "The `env` section defines overrides for the configuration for different environments.\n\nAll environment fields can be specified at the top level of the config indicating the default environment settings.\n\n- Some fields are inherited and overridable in each environment.\n- But some are not inherited and must be explicitly specified in every environment, if they are specified at the top level.\n\nFor more information, see the documentation at https://developers.cloudflare.com/workers/cli-wrangler/configuration#environments",
1297
1497
  "type": "object"
1298
1498
  },
1299
- "experimental_assets": {
1300
- "$ref": "#/definitions/ExperimentalAssets",
1301
- "description": "Specify the directory of static assets to deploy/serve"
1302
- },
1303
1499
  "experimental_services": {
1304
1500
  "default": "`[]`",
1305
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.",
@@ -1376,7 +1572,7 @@
1376
1572
  },
1377
1573
  "keep_vars": {
1378
1574
  "default": false,
1379
- "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.",
1380
1576
  "type": "boolean"
1381
1577
  },
1382
1578
  "kv-namespaces": {
@@ -1404,8 +1600,7 @@
1404
1600
  }
1405
1601
  },
1406
1602
  "required": [
1407
- "binding",
1408
- "id"
1603
+ "binding"
1409
1604
  ],
1410
1605
  "type": "object"
1411
1606
  },
@@ -1450,7 +1645,7 @@
1450
1645
  "type": "string"
1451
1646
  }
1452
1647
  ],
1453
- "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. Only one of assets and legacy_assets can be used."
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`."
1454
1649
  },
1455
1650
  "legacy_env": {
1456
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.",
@@ -1504,51 +1699,7 @@
1504
1699
  "default": [],
1505
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",
1506
1701
  "items": {
1507
- "additionalProperties": false,
1508
- "properties": {
1509
- "deleted_classes": {
1510
- "description": "The Durable Objects being removed.",
1511
- "items": {
1512
- "type": "string"
1513
- },
1514
- "type": "array"
1515
- },
1516
- "new_classes": {
1517
- "description": "The new Durable Objects being defined.",
1518
- "items": {
1519
- "type": "string"
1520
- },
1521
- "type": "array"
1522
- },
1523
- "renamed_classes": {
1524
- "description": "The Durable Objects being renamed.",
1525
- "items": {
1526
- "additionalProperties": false,
1527
- "properties": {
1528
- "from": {
1529
- "type": "string"
1530
- },
1531
- "to": {
1532
- "type": "string"
1533
- }
1534
- },
1535
- "required": [
1536
- "from",
1537
- "to"
1538
- ],
1539
- "type": "object"
1540
- },
1541
- "type": "array"
1542
- },
1543
- "tag": {
1544
- "description": "A unique identifier for this migration.",
1545
- "type": "string"
1546
- }
1547
- },
1548
- "required": [
1549
- "tag"
1550
- ],
1551
- "type": "object"
1702
+ "$ref": "#/definitions/DurableObjectMigration"
1552
1703
  },
1553
1704
  "type": "array"
1554
1705
  },
@@ -1595,14 +1746,44 @@
1595
1746
  "description": "Add polyfills for node builtin modules and globals",
1596
1747
  "type": "boolean"
1597
1748
  },
1749
+ "observability": {
1750
+ "$ref": "#/definitions/Observability",
1751
+ "description": "Specify the observability behavior of the Worker."
1752
+ },
1598
1753
  "pages_build_output_dir": {
1599
- "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.",
1600
1755
  "type": "string"
1601
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
+ },
1602
1780
  "placement": {
1603
1781
  "additionalProperties": false,
1604
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/",
1605
1783
  "properties": {
1784
+ "hint": {
1785
+ "type": "string"
1786
+ },
1606
1787
  "mode": {
1607
1788
  "enum": [
1608
1789
  "off",
@@ -1620,6 +1801,11 @@
1620
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`.",
1621
1802
  "type": "boolean"
1622
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
+ },
1623
1809
  "queues": {
1624
1810
  "additionalProperties": false,
1625
1811
  "default": "`{consumers:[],producers:[]}`",
@@ -1730,8 +1916,7 @@
1730
1916
  }
1731
1917
  },
1732
1918
  "required": [
1733
- "binding",
1734
- "bucket_name"
1919
+ "binding"
1735
1920
  ],
1736
1921
  "type": "object"
1737
1922
  },
@@ -1824,7 +2009,7 @@
1824
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",
1825
2010
  "properties": {
1826
2011
  "bucket": {
1827
- "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.",
1828
2013
  "type": "string"
1829
2014
  },
1830
2015
  "entry-point": {
@@ -2046,9 +2231,17 @@
2046
2231
  },
2047
2232
  "workers_dev": {
2048
2233
  "default": "`true` (This is a breaking change from Wrangler v1)",
2049
- "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",
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",
2050
2235
  "type": "boolean"
2051
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
+ },
2052
2245
  "zone_id": {
2053
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.",
2054
2247
  "type": "string"
@@ -2146,6 +2339,10 @@
2146
2339
  },
2147
2340
  "type": "array"
2148
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
+ },
2149
2346
  "base_dir": {
2150
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.",
2151
2348
  "type": "string"
@@ -2218,6 +2415,24 @@
2218
2415
  },
2219
2416
  "type": "array"
2220
2417
  },
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"
2427
+ },
2428
+ "type": "array"
2429
+ }
2430
+ },
2431
+ "required": [
2432
+ "app"
2433
+ ],
2434
+ "type": "object"
2435
+ },
2221
2436
  "d1_databases": {
2222
2437
  "default": "`[]`",
2223
2438
  "description": "Specifies D1 databases that are bound to this Worker environment.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
@@ -2254,9 +2469,7 @@
2254
2469
  }
2255
2470
  },
2256
2471
  "required": [
2257
- "binding",
2258
- "database_name",
2259
- "database_id"
2472
+ "binding"
2260
2473
  ],
2261
2474
  "type": "object"
2262
2475
  },
@@ -2311,10 +2524,6 @@
2311
2524
  ],
2312
2525
  "type": "object"
2313
2526
  },
2314
- "experimental_assets": {
2315
- "$ref": "#/definitions/ExperimentalAssets",
2316
- "description": "Specify the directory of static assets to deploy/serve"
2317
- },
2318
2527
  "experimental_services": {
2319
2528
  "default": "`[]`",
2320
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.",
@@ -2414,8 +2623,7 @@
2414
2623
  }
2415
2624
  },
2416
2625
  "required": [
2417
- "binding",
2418
- "id"
2626
+ "binding"
2419
2627
  ],
2420
2628
  "type": "object"
2421
2629
  },
@@ -2469,51 +2677,7 @@
2469
2677
  "default": [],
2470
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",
2471
2679
  "items": {
2472
- "additionalProperties": false,
2473
- "properties": {
2474
- "deleted_classes": {
2475
- "description": "The Durable Objects being removed.",
2476
- "items": {
2477
- "type": "string"
2478
- },
2479
- "type": "array"
2480
- },
2481
- "new_classes": {
2482
- "description": "The new Durable Objects being defined.",
2483
- "items": {
2484
- "type": "string"
2485
- },
2486
- "type": "array"
2487
- },
2488
- "renamed_classes": {
2489
- "description": "The Durable Objects being renamed.",
2490
- "items": {
2491
- "additionalProperties": false,
2492
- "properties": {
2493
- "from": {
2494
- "type": "string"
2495
- },
2496
- "to": {
2497
- "type": "string"
2498
- }
2499
- },
2500
- "required": [
2501
- "from",
2502
- "to"
2503
- ],
2504
- "type": "object"
2505
- },
2506
- "type": "array"
2507
- },
2508
- "tag": {
2509
- "description": "A unique identifier for this migration.",
2510
- "type": "string"
2511
- }
2512
- },
2513
- "required": [
2514
- "tag"
2515
- ],
2516
- "type": "object"
2680
+ "$ref": "#/definitions/DurableObjectMigration"
2517
2681
  },
2518
2682
  "type": "array"
2519
2683
  },
@@ -2556,10 +2720,40 @@
2556
2720
  "description": "Add polyfills for node builtin modules and globals",
2557
2721
  "type": "boolean"
2558
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
+ },
2559
2750
  "placement": {
2560
2751
  "additionalProperties": false,
2561
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/",
2562
2753
  "properties": {
2754
+ "hint": {
2755
+ "type": "string"
2756
+ },
2563
2757
  "mode": {
2564
2758
  "enum": [
2565
2759
  "off",
@@ -2577,6 +2771,11 @@
2577
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`.",
2578
2772
  "type": "boolean"
2579
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
+ },
2580
2779
  "queues": {
2581
2780
  "additionalProperties": false,
2582
2781
  "default": "`{consumers:[],producers:[]}`",
@@ -2687,8 +2886,7 @@
2687
2886
  }
2688
2887
  },
2689
2888
  "required": [
2690
- "binding",
2691
- "bucket_name"
2889
+ "binding"
2692
2890
  ],
2693
2891
  "type": "object"
2694
2892
  },
@@ -2935,9 +3133,17 @@
2935
3133
  },
2936
3134
  "workers_dev": {
2937
3135
  "default": "`true` (This is a breaking change from Wrangler v1)",
2938
- "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",
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",
2939
3137
  "type": "boolean"
2940
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
+ },
2941
3147
  "zone_id": {
2942
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.",
2943
3149
  "type": "string"
@@ -2948,7 +3154,7 @@
2948
3154
  "Route": {
2949
3155
  "anyOf": [
2950
3156
  {
2951
- "$ref": "#/definitions/SimpleRoute"
3157
+ "type": "string"
2952
3158
  },
2953
3159
  {
2954
3160
  "$ref": "#/definitions/ZoneIdRoute"
@@ -2984,9 +3190,6 @@
2984
3190
  ],
2985
3191
  "type": "object"
2986
3192
  },
2987
- "SimpleRoute": {
2988
- "type": "string"
2989
- },
2990
3193
  "TailConsumer": {
2991
3194
  "additionalProperties": false,
2992
3195
  "properties": {
@@ -3025,6 +3228,33 @@
3025
3228
  ],
3026
3229
  "type": "object"
3027
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
+ },
3028
3258
  "ZoneIdRoute": {
3029
3259
  "additionalProperties": false,
3030
3260
  "properties": {