wrangler 0.0.0-e42f3207 → 0.0.0-e44f496a8

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,52 @@
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
+ "type": "string"
10
+ },
11
+ "directory": {
12
+ "description": "Absolute path to assets directory",
13
+ "type": "string"
14
+ },
15
+ "html_handling": {
16
+ "enum": [
17
+ "auto-trailing-slash",
18
+ "force-trailing-slash",
19
+ "drop-trailing-slash",
20
+ "none"
21
+ ],
22
+ "type": "string"
23
+ },
24
+ "not_found_handling": {
25
+ "enum": [
26
+ "single-page-application",
27
+ "404-page",
28
+ "none"
29
+ ],
30
+ "type": "string"
31
+ }
32
+ },
33
+ "required": [
34
+ "directory"
35
+ ],
36
+ "type": "object"
37
+ },
5
38
  "CloudchamberConfig": {
6
39
  "additionalProperties": false,
7
40
  "description": "Configuration in wrangler for Cloudchamber",
8
41
  "properties": {
42
+ "image": {
43
+ "type": "string"
44
+ },
45
+ "ipv4": {
46
+ "type": "boolean"
47
+ },
48
+ "location": {
49
+ "type": "string"
50
+ },
9
51
  "memory": {
10
52
  "type": "string"
11
53
  },
@@ -24,7 +66,8 @@
24
66
  "Text",
25
67
  "Data",
26
68
  "PythonModule",
27
- "PythonRequirement"
69
+ "PythonRequirement",
70
+ "NodeJsCompatModule"
28
71
  ],
29
72
  "type": "string"
30
73
  },
@@ -127,6 +170,61 @@
127
170
  },
128
171
  "type": "array"
129
172
  },
173
+ "DurableObjectMigration": {
174
+ "additionalProperties": false,
175
+ "description": "Configuration in wrangler for Durable Object Migrations",
176
+ "properties": {
177
+ "deleted_classes": {
178
+ "description": "The Durable Objects being removed.",
179
+ "items": {
180
+ "type": "string"
181
+ },
182
+ "type": "array"
183
+ },
184
+ "new_classes": {
185
+ "description": "The new Durable Objects being defined.",
186
+ "items": {
187
+ "type": "string"
188
+ },
189
+ "type": "array"
190
+ },
191
+ "new_sqlite_classes": {
192
+ "description": "The new SQLite Durable Objects being defined.",
193
+ "items": {
194
+ "type": "string"
195
+ },
196
+ "type": "array"
197
+ },
198
+ "renamed_classes": {
199
+ "description": "The Durable Objects being renamed.",
200
+ "items": {
201
+ "additionalProperties": false,
202
+ "properties": {
203
+ "from": {
204
+ "type": "string"
205
+ },
206
+ "to": {
207
+ "type": "string"
208
+ }
209
+ },
210
+ "required": [
211
+ "from",
212
+ "to"
213
+ ],
214
+ "type": "object"
215
+ },
216
+ "type": "array"
217
+ },
218
+ "tag": {
219
+ "description": "A unique identifier for this migration.",
220
+ "type": "string"
221
+ }
222
+ },
223
+ "required": [
224
+ "tag"
225
+ ],
226
+ "type": "object"
227
+ },
130
228
  "Environment": {
131
229
  "additionalProperties": false,
132
230
  "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.",
@@ -174,6 +272,10 @@
174
272
  },
175
273
  "type": "array"
176
274
  },
275
+ "assets": {
276
+ "$ref": "#/definitions/Assets",
277
+ "description": "Specify the directory of static assets to deploy/serve\n\nMore details at https://developers.cloudflare.com/workers/frameworks/"
278
+ },
177
279
  "base_dir": {
178
280
  "description": "The directory in which module rules should be evaluated when including additional files into a Worker deployment. This defaults to the directory containing the `main` entry point of the Worker if not specified.",
179
281
  "type": "string"
@@ -246,29 +348,6 @@
246
348
  },
247
349
  "type": "array"
248
350
  },
249
- "constellation": {
250
- "default": "`[]`",
251
- "description": "Specifies Constellation projects that are bound to this Worker environment.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
252
- "items": {
253
- "additionalProperties": false,
254
- "properties": {
255
- "binding": {
256
- "description": "The binding name used to refer to the project in the Worker.",
257
- "type": "string"
258
- },
259
- "project_id": {
260
- "description": "The id of the project.",
261
- "type": "string"
262
- }
263
- },
264
- "required": [
265
- "binding",
266
- "project_id"
267
- ],
268
- "type": "object"
269
- },
270
- "type": "array"
271
- },
272
351
  "d1_databases": {
273
352
  "default": "`[]`",
274
353
  "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.",
@@ -478,6 +557,14 @@
478
557
  "description": "The entrypoint/path to the JavaScript file that will be executed.",
479
558
  "type": "string"
480
559
  },
560
+ "migrations": {
561
+ "default": [],
562
+ "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",
563
+ "items": {
564
+ "$ref": "#/definitions/DurableObjectMigration"
565
+ },
566
+ "type": "array"
567
+ },
481
568
  "minify": {
482
569
  "description": "Minify the script before uploading.",
483
570
  "type": "boolean"
@@ -517,10 +604,40 @@
517
604
  "description": "Add polyfills for node builtin modules and globals",
518
605
  "type": "boolean"
519
606
  },
607
+ "observability": {
608
+ "$ref": "#/definitions/Observability",
609
+ "description": "Specify the observability behavior of the Worker."
610
+ },
611
+ "pipelines": {
612
+ "default": "`[]`",
613
+ "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.",
614
+ "items": {
615
+ "additionalProperties": false,
616
+ "properties": {
617
+ "binding": {
618
+ "description": "The binding name used to refer to the bound service.",
619
+ "type": "string"
620
+ },
621
+ "pipeline": {
622
+ "description": "Name of the Pipeline to bind",
623
+ "type": "string"
624
+ }
625
+ },
626
+ "required": [
627
+ "binding",
628
+ "pipeline"
629
+ ],
630
+ "type": "object"
631
+ },
632
+ "type": "array"
633
+ },
520
634
  "placement": {
521
635
  "additionalProperties": false,
522
636
  "description": "Specify how the Worker should be located to minimize round-trip time.\n\nMore details: https://developers.cloudflare.com/workers/platform/smart-placement/",
523
637
  "properties": {
638
+ "hint": {
639
+ "type": "string"
640
+ },
524
641
  "mode": {
525
642
  "enum": [
526
643
  "off",
@@ -896,9 +1013,17 @@
896
1013
  },
897
1014
  "workers_dev": {
898
1015
  "default": "`true` (This is a breaking change from Wrangler v1)",
899
- "description": "Whether we use <name>.<subdomain>.workers.dev to test and deploy your Worker.\n\n// Carmen according to our tests the default is undefined",
1016
+ "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",
900
1017
  "type": "boolean"
901
1018
  },
1019
+ "workflows": {
1020
+ "default": "`[]`",
1021
+ "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.",
1022
+ "items": {
1023
+ "$ref": "#/definitions/WorkflowBinding"
1024
+ },
1025
+ "type": "array"
1026
+ },
902
1027
  "zone_id": {
903
1028
  "description": "TODO: remove this as it has been deprecated.\n\nThis is just here for now because the `route` commands use it. So we need to include it in this type so it is available.",
904
1029
  "type": "string"
@@ -909,7 +1034,6 @@
909
1034
  "build",
910
1035
  "cloudchamber",
911
1036
  "compatibility_flags",
912
- "constellation",
913
1037
  "d1_databases",
914
1038
  "define",
915
1039
  "dispatch_namespaces",
@@ -919,7 +1043,9 @@
919
1043
  "jsx_fragment",
920
1044
  "kv_namespaces",
921
1045
  "logfwdr",
1046
+ "migrations",
922
1047
  "mtls_certificates",
1048
+ "pipelines",
923
1049
  "queues",
924
1050
  "r2_buckets",
925
1051
  "rules",
@@ -927,7 +1053,8 @@
927
1053
  "triggers",
928
1054
  "unsafe",
929
1055
  "vars",
930
- "vectorize"
1056
+ "vectorize",
1057
+ "workflows"
931
1058
  ],
932
1059
  "type": "object"
933
1060
  },
@@ -953,6 +1080,23 @@
953
1080
  "Literal": {
954
1081
  "$ref": "#/definitions/TypeOf%3CZodUnion%3C%5Bdef-class-1315922706-6501-8772-1315922706-0-54395%2Cdef-class-1315922706-9299-10989-1315922706-0-54395%2Cdef-class-1315922706-12937-13365-1315922706-0-54395%2Cdef-class-1315922706-15083-15273-1315922706-0-54395%5D%3E%3E"
955
1082
  },
1083
+ "Observability": {
1084
+ "additionalProperties": false,
1085
+ "properties": {
1086
+ "enabled": {
1087
+ "description": "If observability is enabled for this Worker",
1088
+ "type": "boolean"
1089
+ },
1090
+ "head_sampling_rate": {
1091
+ "description": "The sampling rate",
1092
+ "type": "number"
1093
+ }
1094
+ },
1095
+ "required": [
1096
+ "enabled"
1097
+ ],
1098
+ "type": "object"
1099
+ },
956
1100
  "RawConfig": {
957
1101
  "additionalProperties": false,
958
1102
  "properties": {
@@ -980,6 +1124,13 @@
980
1124
  ],
981
1125
  "type": "object"
982
1126
  },
1127
+ "alias": {
1128
+ "additionalProperties": {
1129
+ "type": "string"
1130
+ },
1131
+ "description": "A map of module aliases. Lets you swap out a module for any others. Corresponds with esbuild's `alias` config",
1132
+ "type": "object"
1133
+ },
983
1134
  "analytics_engine_datasets": {
984
1135
  "default": "`[]`",
985
1136
  "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.",
@@ -1003,38 +1154,8 @@
1003
1154
  "type": "array"
1004
1155
  },
1005
1156
  "assets": {
1006
- "additionalProperties": false,
1007
- "description": "Serve a folder of static assets with your Worker, without any additional code. This can either be a string, or an object with additional config fields.",
1008
- "properties": {
1009
- "browser_TTL": {
1010
- "type": "number"
1011
- },
1012
- "bucket": {
1013
- "type": "string"
1014
- },
1015
- "exclude": {
1016
- "items": {
1017
- "type": "string"
1018
- },
1019
- "type": "array"
1020
- },
1021
- "include": {
1022
- "items": {
1023
- "type": "string"
1024
- },
1025
- "type": "array"
1026
- },
1027
- "serve_single_page_app": {
1028
- "type": "boolean"
1029
- }
1030
- },
1031
- "required": [
1032
- "bucket",
1033
- "include",
1034
- "exclude",
1035
- "serve_single_page_app"
1036
- ],
1037
- "type": "object"
1157
+ "$ref": "#/definitions/Assets",
1158
+ "description": "Specify the directory of static assets to deploy/serve\n\nMore details at https://developers.cloudflare.com/workers/frameworks/"
1038
1159
  },
1039
1160
  "base_dir": {
1040
1161
  "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.",
@@ -1111,29 +1232,6 @@
1111
1232
  "configPath": {
1112
1233
  "type": "string"
1113
1234
  },
1114
- "constellation": {
1115
- "default": "`[]`",
1116
- "description": "Specifies Constellation projects that are bound to this Worker environment.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
1117
- "items": {
1118
- "additionalProperties": false,
1119
- "properties": {
1120
- "binding": {
1121
- "description": "The binding name used to refer to the project in the Worker.",
1122
- "type": "string"
1123
- },
1124
- "project_id": {
1125
- "description": "The id of the project.",
1126
- "type": "string"
1127
- }
1128
- },
1129
- "required": [
1130
- "binding",
1131
- "project_id"
1132
- ],
1133
- "type": "object"
1134
- },
1135
- "type": "array"
1136
- },
1137
1235
  "d1_databases": {
1138
1236
  "default": "`[]`",
1139
1237
  "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.",
@@ -1357,6 +1455,47 @@
1357
1455
  },
1358
1456
  "type": "array"
1359
1457
  },
1458
+ "legacy_assets": {
1459
+ "anyOf": [
1460
+ {
1461
+ "additionalProperties": false,
1462
+ "properties": {
1463
+ "browser_TTL": {
1464
+ "type": "number"
1465
+ },
1466
+ "bucket": {
1467
+ "type": "string"
1468
+ },
1469
+ "exclude": {
1470
+ "items": {
1471
+ "type": "string"
1472
+ },
1473
+ "type": "array"
1474
+ },
1475
+ "include": {
1476
+ "items": {
1477
+ "type": "string"
1478
+ },
1479
+ "type": "array"
1480
+ },
1481
+ "serve_single_page_app": {
1482
+ "type": "boolean"
1483
+ }
1484
+ },
1485
+ "required": [
1486
+ "bucket",
1487
+ "include",
1488
+ "exclude",
1489
+ "serve_single_page_app"
1490
+ ],
1491
+ "type": "object"
1492
+ },
1493
+ {
1494
+ "type": "string"
1495
+ }
1496
+ ],
1497
+ "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`."
1498
+ },
1360
1499
  "legacy_env": {
1361
1500
  "description": "A boolean to enable \"legacy\" style wrangler environments (from Wrangler v1). These have been superseded by Services, but there may be projects that won't (or can't) use them. If you're using a legacy environment, you can set this to `true` to enable it.",
1362
1501
  "type": "boolean"
@@ -1409,51 +1548,7 @@
1409
1548
  "default": [],
1410
1549
  "description": "A list of migrations that should be uploaded with your Worker.\n\nThese define changes in your Durable Object declarations.\n\nMore details at https://developers.cloudflare.com/workers/learning/using-durable-objects#configuring-durable-object-classes-with-migrations",
1411
1550
  "items": {
1412
- "additionalProperties": false,
1413
- "properties": {
1414
- "deleted_classes": {
1415
- "description": "The Durable Objects being removed.",
1416
- "items": {
1417
- "type": "string"
1418
- },
1419
- "type": "array"
1420
- },
1421
- "new_classes": {
1422
- "description": "The new Durable Objects being defined.",
1423
- "items": {
1424
- "type": "string"
1425
- },
1426
- "type": "array"
1427
- },
1428
- "renamed_classes": {
1429
- "description": "The Durable Objects being renamed.",
1430
- "items": {
1431
- "additionalProperties": false,
1432
- "properties": {
1433
- "from": {
1434
- "type": "string"
1435
- },
1436
- "to": {
1437
- "type": "string"
1438
- }
1439
- },
1440
- "required": [
1441
- "from",
1442
- "to"
1443
- ],
1444
- "type": "object"
1445
- },
1446
- "type": "array"
1447
- },
1448
- "tag": {
1449
- "description": "A unique identifier for this migration.",
1450
- "type": "string"
1451
- }
1452
- },
1453
- "required": [
1454
- "tag"
1455
- ],
1456
- "type": "object"
1551
+ "$ref": "#/definitions/DurableObjectMigration"
1457
1552
  },
1458
1553
  "type": "array"
1459
1554
  },
@@ -1500,14 +1595,44 @@
1500
1595
  "description": "Add polyfills for node builtin modules and globals",
1501
1596
  "type": "boolean"
1502
1597
  },
1598
+ "observability": {
1599
+ "$ref": "#/definitions/Observability",
1600
+ "description": "Specify the observability behavior of the Worker."
1601
+ },
1503
1602
  "pages_build_output_dir": {
1504
1603
  "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.",
1505
1604
  "type": "string"
1506
1605
  },
1606
+ "pipelines": {
1607
+ "default": "`[]`",
1608
+ "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.",
1609
+ "items": {
1610
+ "additionalProperties": false,
1611
+ "properties": {
1612
+ "binding": {
1613
+ "description": "The binding name used to refer to the bound service.",
1614
+ "type": "string"
1615
+ },
1616
+ "pipeline": {
1617
+ "description": "Name of the Pipeline to bind",
1618
+ "type": "string"
1619
+ }
1620
+ },
1621
+ "required": [
1622
+ "binding",
1623
+ "pipeline"
1624
+ ],
1625
+ "type": "object"
1626
+ },
1627
+ "type": "array"
1628
+ },
1507
1629
  "placement": {
1508
1630
  "additionalProperties": false,
1509
1631
  "description": "Specify how the Worker should be located to minimize round-trip time.\n\nMore details: https://developers.cloudflare.com/workers/platform/smart-placement/",
1510
1632
  "properties": {
1633
+ "hint": {
1634
+ "type": "string"
1635
+ },
1511
1636
  "mode": {
1512
1637
  "enum": [
1513
1638
  "off",
@@ -1951,9 +2076,17 @@
1951
2076
  },
1952
2077
  "workers_dev": {
1953
2078
  "default": "`true` (This is a breaking change from Wrangler v1)",
1954
- "description": "Whether we use <name>.<subdomain>.workers.dev to test and deploy your Worker.\n\n// Carmen according to our tests the default is undefined",
2079
+ "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",
1955
2080
  "type": "boolean"
1956
2081
  },
2082
+ "workflows": {
2083
+ "default": "`[]`",
2084
+ "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.",
2085
+ "items": {
2086
+ "$ref": "#/definitions/WorkflowBinding"
2087
+ },
2088
+ "type": "array"
2089
+ },
1957
2090
  "zone_id": {
1958
2091
  "description": "TODO: remove this as it has been deprecated.\n\nThis is just here for now because the `route` commands use it. So we need to include it in this type so it is available.",
1959
2092
  "type": "string"
@@ -2051,6 +2184,10 @@
2051
2184
  },
2052
2185
  "type": "array"
2053
2186
  },
2187
+ "assets": {
2188
+ "$ref": "#/definitions/Assets",
2189
+ "description": "Specify the directory of static assets to deploy/serve\n\nMore details at https://developers.cloudflare.com/workers/frameworks/"
2190
+ },
2054
2191
  "base_dir": {
2055
2192
  "description": "The directory in which module rules should be evaluated when including additional files into a Worker deployment. This defaults to the directory containing the `main` entry point of the Worker if not specified.",
2056
2193
  "type": "string"
@@ -2123,29 +2260,6 @@
2123
2260
  },
2124
2261
  "type": "array"
2125
2262
  },
2126
- "constellation": {
2127
- "default": "`[]`",
2128
- "description": "Specifies Constellation projects that are bound to this Worker environment.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
2129
- "items": {
2130
- "additionalProperties": false,
2131
- "properties": {
2132
- "binding": {
2133
- "description": "The binding name used to refer to the project in the Worker.",
2134
- "type": "string"
2135
- },
2136
- "project_id": {
2137
- "description": "The id of the project.",
2138
- "type": "string"
2139
- }
2140
- },
2141
- "required": [
2142
- "binding",
2143
- "project_id"
2144
- ],
2145
- "type": "object"
2146
- },
2147
- "type": "array"
2148
- },
2149
2263
  "d1_databases": {
2150
2264
  "default": "`[]`",
2151
2265
  "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.",
@@ -2389,6 +2503,14 @@
2389
2503
  "description": "The entrypoint/path to the JavaScript file that will be executed.",
2390
2504
  "type": "string"
2391
2505
  },
2506
+ "migrations": {
2507
+ "default": [],
2508
+ "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",
2509
+ "items": {
2510
+ "$ref": "#/definitions/DurableObjectMigration"
2511
+ },
2512
+ "type": "array"
2513
+ },
2392
2514
  "minify": {
2393
2515
  "description": "Minify the script before uploading.",
2394
2516
  "type": "boolean"
@@ -2428,10 +2550,40 @@
2428
2550
  "description": "Add polyfills for node builtin modules and globals",
2429
2551
  "type": "boolean"
2430
2552
  },
2553
+ "observability": {
2554
+ "$ref": "#/definitions/Observability",
2555
+ "description": "Specify the observability behavior of the Worker."
2556
+ },
2557
+ "pipelines": {
2558
+ "default": "`[]`",
2559
+ "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.",
2560
+ "items": {
2561
+ "additionalProperties": false,
2562
+ "properties": {
2563
+ "binding": {
2564
+ "description": "The binding name used to refer to the bound service.",
2565
+ "type": "string"
2566
+ },
2567
+ "pipeline": {
2568
+ "description": "Name of the Pipeline to bind",
2569
+ "type": "string"
2570
+ }
2571
+ },
2572
+ "required": [
2573
+ "binding",
2574
+ "pipeline"
2575
+ ],
2576
+ "type": "object"
2577
+ },
2578
+ "type": "array"
2579
+ },
2431
2580
  "placement": {
2432
2581
  "additionalProperties": false,
2433
2582
  "description": "Specify how the Worker should be located to minimize round-trip time.\n\nMore details: https://developers.cloudflare.com/workers/platform/smart-placement/",
2434
2583
  "properties": {
2584
+ "hint": {
2585
+ "type": "string"
2586
+ },
2435
2587
  "mode": {
2436
2588
  "enum": [
2437
2589
  "off",
@@ -2807,9 +2959,17 @@
2807
2959
  },
2808
2960
  "workers_dev": {
2809
2961
  "default": "`true` (This is a breaking change from Wrangler v1)",
2810
- "description": "Whether we use <name>.<subdomain>.workers.dev to test and deploy your Worker.\n\n// Carmen according to our tests the default is undefined",
2962
+ "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",
2811
2963
  "type": "boolean"
2812
2964
  },
2965
+ "workflows": {
2966
+ "default": "`[]`",
2967
+ "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.",
2968
+ "items": {
2969
+ "$ref": "#/definitions/WorkflowBinding"
2970
+ },
2971
+ "type": "array"
2972
+ },
2813
2973
  "zone_id": {
2814
2974
  "description": "TODO: remove this as it has been deprecated.\n\nThis is just here for now because the `route` commands use it. So we need to include it in this type so it is available.",
2815
2975
  "type": "string"
@@ -2863,7 +3023,7 @@
2863
3023
  "additionalProperties": false,
2864
3024
  "properties": {
2865
3025
  "environment": {
2866
- "description": "(Optional) The environt of the service.",
3026
+ "description": "(Optional) The environment of the service.",
2867
3027
  "type": "string"
2868
3028
  },
2869
3029
  "service": {
@@ -2897,6 +3057,33 @@
2897
3057
  ],
2898
3058
  "type": "object"
2899
3059
  },
3060
+ "WorkflowBinding": {
3061
+ "additionalProperties": false,
3062
+ "properties": {
3063
+ "binding": {
3064
+ "description": "The name of the binding used to refer to the Workflow",
3065
+ "type": "string"
3066
+ },
3067
+ "class_name": {
3068
+ "description": "The exported class name of the Workflow",
3069
+ "type": "string"
3070
+ },
3071
+ "name": {
3072
+ "description": "The name of the Workflow",
3073
+ "type": "string"
3074
+ },
3075
+ "script_name": {
3076
+ "description": "The script where the Workflow is defined (if it's external to this Worker)",
3077
+ "type": "string"
3078
+ }
3079
+ },
3080
+ "required": [
3081
+ "binding",
3082
+ "name",
3083
+ "class_name"
3084
+ ],
3085
+ "type": "object"
3086
+ },
2900
3087
  "ZoneIdRoute": {
2901
3088
  "additionalProperties": false,
2902
3089
  "properties": {