wrangler 0.0.0-c44ab9258 → 0.0.0-c46e02dfd

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.
package/README.md CHANGED
@@ -8,6 +8,10 @@
8
8
 
9
9
  `wrangler` is a command line tool for building [Cloudflare Workers](https://workers.cloudflare.com/).
10
10
 
11
+ > [!WARNING]
12
+ >
13
+ > Wrangler v2 is **only receiving critical security updates.** We recommend you [migrate to Wrangler v3](https://developers.cloudflare.com/workers/wrangler/migration/update-v2-to-v3/) if you can.
14
+
11
15
  ## Quick Start
12
16
 
13
17
  ```bash
@@ -2,6 +2,39 @@
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",
@@ -137,6 +170,61 @@
137
170
  },
138
171
  "type": "array"
139
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
+ },
140
228
  "Environment": {
141
229
  "additionalProperties": false,
142
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.",
@@ -184,6 +272,10 @@
184
272
  },
185
273
  "type": "array"
186
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
+ },
187
279
  "base_dir": {
188
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.",
189
281
  "type": "string"
@@ -349,10 +441,6 @@
349
441
  ],
350
442
  "type": "object"
351
443
  },
352
- "experimental_assets": {
353
- "$ref": "#/definitions/ExperimentalAssets",
354
- "description": "Specify the directory of static assets to deploy/serve"
355
- },
356
444
  "find_additional_modules": {
357
445
  "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
446
  "type": "boolean"
@@ -473,51 +561,7 @@
473
561
  "default": [],
474
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",
475
563
  "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"
564
+ "$ref": "#/definitions/DurableObjectMigration"
521
565
  },
522
566
  "type": "array"
523
567
  },
@@ -560,10 +604,40 @@
560
604
  "description": "Add polyfills for node builtin modules and globals",
561
605
  "type": "boolean"
562
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
+ },
563
634
  "placement": {
564
635
  "additionalProperties": false,
565
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/",
566
637
  "properties": {
638
+ "hint": {
639
+ "type": "string"
640
+ },
567
641
  "mode": {
568
642
  "enum": [
569
643
  "off",
@@ -939,9 +1013,17 @@
939
1013
  },
940
1014
  "workers_dev": {
941
1015
  "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",
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",
943
1017
  "type": "boolean"
944
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
+ },
945
1027
  "zone_id": {
946
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.",
947
1029
  "type": "string"
@@ -963,6 +1045,7 @@
963
1045
  "logfwdr",
964
1046
  "migrations",
965
1047
  "mtls_certificates",
1048
+ "pipelines",
966
1049
  "queues",
967
1050
  "r2_buckets",
968
1051
  "rules",
@@ -970,23 +1053,8 @@
970
1053
  "triggers",
971
1054
  "unsafe",
972
1055
  "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"
1056
+ "vectorize",
1057
+ "workflows"
990
1058
  ],
991
1059
  "type": "object"
992
1060
  },
@@ -1012,6 +1080,23 @@
1012
1080
  "Literal": {
1013
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"
1014
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
+ },
1015
1100
  "RawConfig": {
1016
1101
  "additionalProperties": false,
1017
1102
  "properties": {
@@ -1069,45 +1154,8 @@
1069
1154
  "type": "array"
1070
1155
  },
1071
1156
  "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."
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/"
1111
1159
  },
1112
1160
  "base_dir": {
1113
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.",
@@ -1296,10 +1344,6 @@
1296
1344
  "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
1345
  "type": "object"
1298
1346
  },
1299
- "experimental_assets": {
1300
- "$ref": "#/definitions/ExperimentalAssets",
1301
- "description": "Specify the directory of static assets to deploy/serve"
1302
- },
1303
1347
  "experimental_services": {
1304
1348
  "default": "`[]`",
1305
1349
  "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.",
@@ -1450,7 +1494,7 @@
1450
1494
  "type": "string"
1451
1495
  }
1452
1496
  ],
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."
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`."
1454
1498
  },
1455
1499
  "legacy_env": {
1456
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.",
@@ -1504,51 +1548,7 @@
1504
1548
  "default": [],
1505
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",
1506
1550
  "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"
1551
+ "$ref": "#/definitions/DurableObjectMigration"
1552
1552
  },
1553
1553
  "type": "array"
1554
1554
  },
@@ -1595,14 +1595,44 @@
1595
1595
  "description": "Add polyfills for node builtin modules and globals",
1596
1596
  "type": "boolean"
1597
1597
  },
1598
+ "observability": {
1599
+ "$ref": "#/definitions/Observability",
1600
+ "description": "Specify the observability behavior of the Worker."
1601
+ },
1598
1602
  "pages_build_output_dir": {
1599
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.",
1600
1604
  "type": "string"
1601
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
+ },
1602
1629
  "placement": {
1603
1630
  "additionalProperties": false,
1604
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/",
1605
1632
  "properties": {
1633
+ "hint": {
1634
+ "type": "string"
1635
+ },
1606
1636
  "mode": {
1607
1637
  "enum": [
1608
1638
  "off",
@@ -2046,9 +2076,17 @@
2046
2076
  },
2047
2077
  "workers_dev": {
2048
2078
  "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",
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",
2050
2080
  "type": "boolean"
2051
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
+ },
2052
2090
  "zone_id": {
2053
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.",
2054
2092
  "type": "string"
@@ -2146,6 +2184,10 @@
2146
2184
  },
2147
2185
  "type": "array"
2148
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
+ },
2149
2191
  "base_dir": {
2150
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.",
2151
2193
  "type": "string"
@@ -2311,10 +2353,6 @@
2311
2353
  ],
2312
2354
  "type": "object"
2313
2355
  },
2314
- "experimental_assets": {
2315
- "$ref": "#/definitions/ExperimentalAssets",
2316
- "description": "Specify the directory of static assets to deploy/serve"
2317
- },
2318
2356
  "experimental_services": {
2319
2357
  "default": "`[]`",
2320
2358
  "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.",
@@ -2469,51 +2507,7 @@
2469
2507
  "default": [],
2470
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",
2471
2509
  "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"
2510
+ "$ref": "#/definitions/DurableObjectMigration"
2517
2511
  },
2518
2512
  "type": "array"
2519
2513
  },
@@ -2556,10 +2550,40 @@
2556
2550
  "description": "Add polyfills for node builtin modules and globals",
2557
2551
  "type": "boolean"
2558
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
+ },
2559
2580
  "placement": {
2560
2581
  "additionalProperties": false,
2561
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/",
2562
2583
  "properties": {
2584
+ "hint": {
2585
+ "type": "string"
2586
+ },
2563
2587
  "mode": {
2564
2588
  "enum": [
2565
2589
  "off",
@@ -2935,9 +2959,17 @@
2935
2959
  },
2936
2960
  "workers_dev": {
2937
2961
  "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",
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",
2939
2963
  "type": "boolean"
2940
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
+ },
2941
2973
  "zone_id": {
2942
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.",
2943
2975
  "type": "string"
@@ -2948,7 +2980,7 @@
2948
2980
  "Route": {
2949
2981
  "anyOf": [
2950
2982
  {
2951
- "$ref": "#/definitions/SimpleRoute"
2983
+ "type": "string"
2952
2984
  },
2953
2985
  {
2954
2986
  "$ref": "#/definitions/ZoneIdRoute"
@@ -2984,9 +3016,6 @@
2984
3016
  ],
2985
3017
  "type": "object"
2986
3018
  },
2987
- "SimpleRoute": {
2988
- "type": "string"
2989
- },
2990
3019
  "TailConsumer": {
2991
3020
  "additionalProperties": false,
2992
3021
  "properties": {
@@ -3025,6 +3054,33 @@
3025
3054
  ],
3026
3055
  "type": "object"
3027
3056
  },
3057
+ "WorkflowBinding": {
3058
+ "additionalProperties": false,
3059
+ "properties": {
3060
+ "binding": {
3061
+ "description": "The name of the binding used to refer to the Workflow",
3062
+ "type": "string"
3063
+ },
3064
+ "class_name": {
3065
+ "description": "The exported class name of the Workflow",
3066
+ "type": "string"
3067
+ },
3068
+ "name": {
3069
+ "description": "The name of the Workflow",
3070
+ "type": "string"
3071
+ },
3072
+ "script_name": {
3073
+ "description": "The script where the Workflow is defined (if it's external to this Worker)",
3074
+ "type": "string"
3075
+ }
3076
+ },
3077
+ "required": [
3078
+ "binding",
3079
+ "name",
3080
+ "class_name"
3081
+ ],
3082
+ "type": "object"
3083
+ },
3028
3084
  "ZoneIdRoute": {
3029
3085
  "additionalProperties": false,
3030
3086
  "properties": {