wrangler 0.0.0-e6e1daba → 0.0.0-e70806f1

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.
Files changed (310) hide show
  1. package/README.md +11 -13
  2. package/bin/wrangler.js +14 -103
  3. package/config-schema.json +2947 -0
  4. package/package.json +194 -194
  5. package/templates/__tests__/tsconfig.json +1 -1
  6. package/templates/checked-fetch.js +11 -4
  7. package/templates/facade.d.ts +7 -2
  8. package/templates/gitignore +0 -4
  9. package/templates/init-tests/test-vitest-new-worker.js +1 -1
  10. package/templates/init-tests/test-vitest-new-worker.ts +1 -1
  11. package/templates/middleware/common.ts +9 -4
  12. package/templates/middleware/loader-modules.ts +94 -44
  13. package/templates/middleware/loader-sw.ts +6 -10
  14. package/templates/middleware/middleware-ensure-req-body-drained.ts +18 -0
  15. package/templates/middleware/middleware-miniflare3-json-error.ts +17 -5
  16. package/templates/middleware/middleware-serve-static-assets.d.ts +6 -0
  17. package/templates/middleware/middleware-serve-static-assets.ts +56 -0
  18. package/templates/modules-watch-stub.js +4 -0
  19. package/templates/new-worker-scheduled.ts +1 -1
  20. package/templates/new-worker.ts +1 -1
  21. package/templates/pages-dev-pipeline.ts +2 -1
  22. package/templates/pages-dev-util.ts +4 -1
  23. package/templates/pages-shim.ts +0 -3
  24. package/templates/pages-template-plugin.ts +14 -4
  25. package/templates/pages-template-worker.ts +12 -3
  26. package/templates/startDevWorker/InspectorProxyWorker.ts +664 -0
  27. package/templates/startDevWorker/ProxyWorker.ts +334 -0
  28. package/templates/tsconfig.init.json +1 -2
  29. package/templates/tsconfig.json +1 -1
  30. package/wrangler-dist/InspectorProxyWorker.js +464 -0
  31. package/wrangler-dist/InspectorProxyWorker.js.map +6 -0
  32. package/wrangler-dist/ProxyWorker.js +240 -0
  33. package/wrangler-dist/ProxyWorker.js.map +6 -0
  34. package/wrangler-dist/cli.d.ts +23790 -1052
  35. package/wrangler-dist/cli.js +155835 -98941
  36. package/wrangler-dist/wasm-sync.wasm +0 -0
  37. package/Cloudflare_CA.pem +0 -18
  38. package/import_meta_url.js +0 -3
  39. package/miniflare-config-stubs/.env.empty +0 -0
  40. package/miniflare-config-stubs/package.empty.json +0 -1
  41. package/miniflare-config-stubs/wrangler.empty.toml +0 -0
  42. package/miniflare-dist/index.mjs +0 -6368
  43. package/src/__tests__/access.test.ts +0 -25
  44. package/src/__tests__/api-dev.test.ts +0 -238
  45. package/src/__tests__/api-devregistry.test.js +0 -64
  46. package/src/__tests__/api.test.ts +0 -80
  47. package/src/__tests__/config-cache-without-cache-dir.test.ts +0 -38
  48. package/src/__tests__/config-cache.test.ts +0 -42
  49. package/src/__tests__/configuration.test.ts +0 -4233
  50. package/src/__tests__/d1/d1.test.ts +0 -82
  51. package/src/__tests__/d1/execute.test.ts +0 -64
  52. package/src/__tests__/d1/migrate.test.ts +0 -155
  53. package/src/__tests__/d1/splitter.test.ts +0 -255
  54. package/src/__tests__/delete.test.ts +0 -266
  55. package/src/__tests__/deployments.test.ts +0 -129
  56. package/src/__tests__/dev.test.tsx +0 -1587
  57. package/src/__tests__/generate.test.ts +0 -238
  58. package/src/__tests__/get-host-from-url.test.ts +0 -16
  59. package/src/__tests__/guess-worker-format.test.ts +0 -120
  60. package/src/__tests__/helpers/clipboardy-mock.js +0 -4
  61. package/src/__tests__/helpers/cmd-shim.d.ts +0 -11
  62. package/src/__tests__/helpers/end-event-loop.ts +0 -6
  63. package/src/__tests__/helpers/mock-account-id.ts +0 -48
  64. package/src/__tests__/helpers/mock-auth-domain.ts +0 -20
  65. package/src/__tests__/helpers/mock-bin.ts +0 -36
  66. package/src/__tests__/helpers/mock-console.ts +0 -106
  67. package/src/__tests__/helpers/mock-dialogs.ts +0 -139
  68. package/src/__tests__/helpers/mock-get-pages-upload-token.ts +0 -25
  69. package/src/__tests__/helpers/mock-get-zone-from-host.ts +0 -11
  70. package/src/__tests__/helpers/mock-http-server.ts +0 -46
  71. package/src/__tests__/helpers/mock-istty.ts +0 -74
  72. package/src/__tests__/helpers/mock-known-routes.ts +0 -12
  73. package/src/__tests__/helpers/mock-kv.ts +0 -46
  74. package/src/__tests__/helpers/mock-oauth-flow.ts +0 -263
  75. package/src/__tests__/helpers/mock-process.ts +0 -34
  76. package/src/__tests__/helpers/mock-set-timeout.ts +0 -16
  77. package/src/__tests__/helpers/mock-stdin.ts +0 -108
  78. package/src/__tests__/helpers/mock-web-socket.ts +0 -29
  79. package/src/__tests__/helpers/msw/blob-worker.cjs +0 -19
  80. package/src/__tests__/helpers/msw/handlers/access.ts +0 -13
  81. package/src/__tests__/helpers/msw/handlers/deployments.ts +0 -93
  82. package/src/__tests__/helpers/msw/handlers/namespaces.ts +0 -81
  83. package/src/__tests__/helpers/msw/handlers/oauth.ts +0 -31
  84. package/src/__tests__/helpers/msw/handlers/r2.ts +0 -60
  85. package/src/__tests__/helpers/msw/handlers/script.ts +0 -56
  86. package/src/__tests__/helpers/msw/handlers/user.ts +0 -52
  87. package/src/__tests__/helpers/msw/handlers/zones.ts +0 -20
  88. package/src/__tests__/helpers/msw/index.ts +0 -50
  89. package/src/__tests__/helpers/msw/read-file-sync.js +0 -61
  90. package/src/__tests__/helpers/run-in-tmp.ts +0 -38
  91. package/src/__tests__/helpers/run-wrangler.ts +0 -16
  92. package/src/__tests__/helpers/string-dynamic-values-matcher.ts +0 -28
  93. package/src/__tests__/helpers/worker-scripts/child-wrangler.toml +0 -1
  94. package/src/__tests__/helpers/worker-scripts/hello-world-worker.js +0 -5
  95. package/src/__tests__/helpers/worker-scripts/hello-world-wrangler.toml +0 -1
  96. package/src/__tests__/helpers/worker-scripts/parent-worker.js +0 -8
  97. package/src/__tests__/helpers/worker-scripts/parent-wrangler.toml +0 -5
  98. package/src/__tests__/helpers/write-worker-source.ts +0 -31
  99. package/src/__tests__/helpers/write-wrangler-toml.ts +0 -17
  100. package/src/__tests__/https-options.test.ts +0 -163
  101. package/src/__tests__/index.test.ts +0 -274
  102. package/src/__tests__/init.test.ts +0 -3164
  103. package/src/__tests__/jest.setup.ts +0 -175
  104. package/src/__tests__/kv.test.ts +0 -1799
  105. package/src/__tests__/logger.test.ts +0 -141
  106. package/src/__tests__/logout.test.ts +0 -47
  107. package/src/__tests__/metrics.test.ts +0 -493
  108. package/src/__tests__/middleware.scheduled.test.ts +0 -145
  109. package/src/__tests__/middleware.test.ts +0 -815
  110. package/src/__tests__/mtls-certificates.test.ts +0 -585
  111. package/src/__tests__/package-manager.test.ts +0 -353
  112. package/src/__tests__/pages/deployment-list.test.ts +0 -78
  113. package/src/__tests__/pages/functions-build.test.ts +0 -402
  114. package/src/__tests__/pages/pages.test.ts +0 -81
  115. package/src/__tests__/pages/project-create.test.ts +0 -63
  116. package/src/__tests__/pages/project-list.test.ts +0 -108
  117. package/src/__tests__/pages/project-upload.test.ts +0 -481
  118. package/src/__tests__/pages/publish.test.ts +0 -2745
  119. package/src/__tests__/pages-deployment-tail.test.ts +0 -955
  120. package/src/__tests__/parse.test.ts +0 -436
  121. package/src/__tests__/paths.test.ts +0 -39
  122. package/src/__tests__/publish.test.ts +0 -8167
  123. package/src/__tests__/pubsub.test.ts +0 -493
  124. package/src/__tests__/queues.test.ts +0 -529
  125. package/src/__tests__/r2.test.ts +0 -374
  126. package/src/__tests__/route.test.ts +0 -45
  127. package/src/__tests__/secret.test.ts +0 -693
  128. package/src/__tests__/tail.test.ts +0 -958
  129. package/src/__tests__/test-old-node-version.js +0 -31
  130. package/src/__tests__/tsconfig-sanity.ts +0 -12
  131. package/src/__tests__/tsconfig.json +0 -8
  132. package/src/__tests__/tsconfig.tsbuildinfo +0 -1
  133. package/src/__tests__/type-generation.test.ts +0 -233
  134. package/src/__tests__/user.test.ts +0 -118
  135. package/src/__tests__/utils-collectKeyValues.test.ts +0 -47
  136. package/src/__tests__/validate-dev-props.test.ts +0 -56
  137. package/src/__tests__/version.test.ts +0 -35
  138. package/src/__tests__/whoami.test.tsx +0 -172
  139. package/src/__tests__/worker-namespace.test.ts +0 -339
  140. package/src/abort.d.ts +0 -3
  141. package/src/api/dev.ts +0 -328
  142. package/src/api/index.ts +0 -11
  143. package/src/api/mtls-certificate.ts +0 -148
  144. package/src/api/pages/create-worker-bundle-contents.ts +0 -75
  145. package/src/api/pages/index.ts +0 -5
  146. package/src/api/pages/publish.tsx +0 -368
  147. package/src/bundle-reporter.ts +0 -68
  148. package/src/bundle.ts +0 -877
  149. package/src/cfetch/index.ts +0 -158
  150. package/src/cfetch/internal.ts +0 -258
  151. package/src/cli.ts +0 -28
  152. package/src/config/README.md +0 -107
  153. package/src/config/config.ts +0 -282
  154. package/src/config/diagnostics.ts +0 -80
  155. package/src/config/environment.ts +0 -586
  156. package/src/config/index.ts +0 -375
  157. package/src/config/validation-helpers.ts +0 -597
  158. package/src/config/validation.ts +0 -2198
  159. package/src/config-cache.ts +0 -85
  160. package/src/create-worker-preview.ts +0 -293
  161. package/src/create-worker-upload-form.ts +0 -334
  162. package/src/d1/backups.tsx +0 -215
  163. package/src/d1/constants.ts +0 -2
  164. package/src/d1/create.tsx +0 -64
  165. package/src/d1/delete.ts +0 -53
  166. package/src/d1/execute.tsx +0 -354
  167. package/src/d1/formatTimeAgo.ts +0 -14
  168. package/src/d1/index.ts +0 -100
  169. package/src/d1/list.tsx +0 -60
  170. package/src/d1/migrations/apply.tsx +0 -206
  171. package/src/d1/migrations/create.tsx +0 -76
  172. package/src/d1/migrations/helpers.ts +0 -172
  173. package/src/d1/migrations/index.ts +0 -3
  174. package/src/d1/migrations/list.tsx +0 -92
  175. package/src/d1/migrations/options.ts +0 -23
  176. package/src/d1/options.ts +0 -22
  177. package/src/d1/splitter.ts +0 -161
  178. package/src/d1/types.ts +0 -25
  179. package/src/d1/utils.ts +0 -49
  180. package/src/delete.ts +0 -100
  181. package/src/deployments.ts +0 -116
  182. package/src/deprecated/index.ts +0 -144
  183. package/src/dev/dev-vars.ts +0 -39
  184. package/src/dev/dev.tsx +0 -600
  185. package/src/dev/get-local-persistence-path.ts +0 -31
  186. package/src/dev/local.tsx +0 -922
  187. package/src/dev/remote.tsx +0 -632
  188. package/src/dev/start-server.ts +0 -538
  189. package/src/dev/use-esbuild.ts +0 -205
  190. package/src/dev/validate-dev-props.ts +0 -31
  191. package/src/dev-registry.ts +0 -201
  192. package/src/dev.tsx +0 -914
  193. package/src/dialogs.ts +0 -136
  194. package/src/dispatch-namespace.ts +0 -211
  195. package/src/docs/index.ts +0 -97
  196. package/src/durable.ts +0 -102
  197. package/src/entry.ts +0 -327
  198. package/src/environment-variables/factory.ts +0 -88
  199. package/src/environment-variables/misc-variables.ts +0 -30
  200. package/src/errors.ts +0 -11
  201. package/src/generate/index.ts +0 -298
  202. package/src/git-client.ts +0 -135
  203. package/src/global-wrangler-config-path.ts +0 -26
  204. package/src/https-options.ts +0 -127
  205. package/src/index.ts +0 -705
  206. package/src/init.ts +0 -1022
  207. package/src/inspect.ts +0 -782
  208. package/src/intl-polyfill.d.ts +0 -139
  209. package/src/is-ci.ts +0 -14
  210. package/src/is-interactive.ts +0 -16
  211. package/src/jest.d.ts +0 -4
  212. package/src/kv/helpers.ts +0 -430
  213. package/src/kv/index.ts +0 -594
  214. package/src/logger.ts +0 -104
  215. package/src/metrics/index.ts +0 -5
  216. package/src/metrics/metrics-config.ts +0 -239
  217. package/src/metrics/metrics-dispatcher.ts +0 -96
  218. package/src/metrics/metrics-usage-headers.ts +0 -24
  219. package/src/metrics/send-event.ts +0 -98
  220. package/src/miniflare-cli/README.md +0 -30
  221. package/src/miniflare-cli/assets.ts +0 -251
  222. package/src/miniflare-cli/index.ts +0 -210
  223. package/src/miniflare-cli/request-context.ts +0 -40
  224. package/src/miniflare-cli/tsconfig.json +0 -9
  225. package/src/miniflare-cli/tsconfig.tsbuildinfo +0 -1
  226. package/src/miniflare-cli/types.ts +0 -11
  227. package/src/module-collection.ts +0 -267
  228. package/src/mtls-certificate/cli.ts +0 -155
  229. package/src/open-in-browser.ts +0 -17
  230. package/src/package-manager.ts +0 -219
  231. package/src/pages/build.ts +0 -232
  232. package/src/pages/buildFunctions.ts +0 -130
  233. package/src/pages/constants.ts +0 -18
  234. package/src/pages/deployment-tails.ts +0 -281
  235. package/src/pages/deployments.tsx +0 -86
  236. package/src/pages/dev.ts +0 -716
  237. package/src/pages/errors.ts +0 -66
  238. package/src/pages/functions/buildPlugin.ts +0 -90
  239. package/src/pages/functions/buildWorker.ts +0 -288
  240. package/src/pages/functions/filepath-routing.test.ts +0 -234
  241. package/src/pages/functions/filepath-routing.ts +0 -189
  242. package/src/pages/functions/identifiers.ts +0 -78
  243. package/src/pages/functions/routes-consolidation.test.ts +0 -250
  244. package/src/pages/functions/routes-consolidation.ts +0 -73
  245. package/src/pages/functions/routes-transformation.test.ts +0 -282
  246. package/src/pages/functions/routes-transformation.ts +0 -115
  247. package/src/pages/functions/routes-validation.test.ts +0 -403
  248. package/src/pages/functions/routes-validation.ts +0 -202
  249. package/src/pages/functions/routes.ts +0 -151
  250. package/src/pages/functions/tsconfig.json +0 -8
  251. package/src/pages/functions/tsconfig.tsbuildinfo +0 -1
  252. package/src/pages/functions.ts +0 -86
  253. package/src/pages/hash.ts +0 -13
  254. package/src/pages/index.ts +0 -102
  255. package/src/pages/projects.tsx +0 -162
  256. package/src/pages/prompt-select-project.tsx +0 -31
  257. package/src/pages/publish.tsx +0 -276
  258. package/src/pages/types.ts +0 -46
  259. package/src/pages/upload.tsx +0 -449
  260. package/src/pages/utils.ts +0 -23
  261. package/src/parse.ts +0 -308
  262. package/src/paths.ts +0 -71
  263. package/src/proxy.ts +0 -694
  264. package/src/publish/index.ts +0 -274
  265. package/src/publish/publish.ts +0 -1065
  266. package/src/pubsub/index.ts +0 -286
  267. package/src/pubsub/pubsub-commands.ts +0 -623
  268. package/src/queues/cli/commands/consumer/add.ts +0 -65
  269. package/src/queues/cli/commands/consumer/index.ts +0 -19
  270. package/src/queues/cli/commands/consumer/remove.ts +0 -31
  271. package/src/queues/cli/commands/create.ts +0 -25
  272. package/src/queues/cli/commands/delete.ts +0 -26
  273. package/src/queues/cli/commands/index.ts +0 -35
  274. package/src/queues/cli/commands/list.ts +0 -25
  275. package/src/queues/client.ts +0 -135
  276. package/src/queues/utils.ts +0 -18
  277. package/src/r2/constants.ts +0 -4
  278. package/src/r2/helpers.ts +0 -132
  279. package/src/r2/index.ts +0 -289
  280. package/src/routes.ts +0 -140
  281. package/src/secret/index.ts +0 -375
  282. package/src/selfsigned.d.ts +0 -29
  283. package/src/sites.ts +0 -372
  284. package/src/tail/createTail.ts +0 -406
  285. package/src/tail/filters.ts +0 -277
  286. package/src/tail/index.ts +0 -211
  287. package/src/tail/printing.ts +0 -122
  288. package/src/tsconfig-sanity.ts +0 -16
  289. package/src/type-generation.ts +0 -181
  290. package/src/update-check.ts +0 -19
  291. package/src/user/access.ts +0 -68
  292. package/src/user/auth-variables.ts +0 -113
  293. package/src/user/choose-account.tsx +0 -39
  294. package/src/user/generate-auth-url.ts +0 -33
  295. package/src/user/generate-random-state.ts +0 -16
  296. package/src/user/index.ts +0 -2
  297. package/src/user/user.ts +0 -1233
  298. package/src/utils/collectKeyValues.ts +0 -14
  299. package/src/whoami.ts +0 -135
  300. package/src/worker.ts +0 -257
  301. package/src/yargs-types.ts +0 -37
  302. package/src/zones.ts +0 -191
  303. package/templates/__tests__/tsconfig.tsbuildinfo +0 -1
  304. package/templates/d1-beta-facade.js +0 -241
  305. package/templates/first-party-worker-module-facade.ts +0 -19
  306. package/templates/format-dev-errors.ts +0 -34
  307. package/templates/serve-static-assets.ts +0 -66
  308. package/templates/service-bindings-module-facade.js +0 -55
  309. package/templates/service-bindings-sw-facade.js +0 -42
  310. package/templates/tsconfig.tsbuildinfo +0 -1
@@ -0,0 +1,2947 @@
1
+ {
2
+ "$ref": "#/definitions/RawConfig",
3
+ "$schema": "http://json-schema.org/draft-07/schema#",
4
+ "definitions": {
5
+ "CloudchamberConfig": {
6
+ "additionalProperties": false,
7
+ "description": "Configuration in wrangler for Cloudchamber",
8
+ "properties": {
9
+ "memory": {
10
+ "type": "string"
11
+ },
12
+ "vcpu": {
13
+ "type": "number"
14
+ }
15
+ },
16
+ "type": "object"
17
+ },
18
+ "ConfigModuleRuleType": {
19
+ "description": "The possible types for a `Rule`.",
20
+ "enum": [
21
+ "ESModule",
22
+ "CommonJS",
23
+ "CompiledWasm",
24
+ "Text",
25
+ "Data",
26
+ "PythonModule",
27
+ "PythonRequirement",
28
+ "NodeJsCompatModule"
29
+ ],
30
+ "type": "string"
31
+ },
32
+ "CustomDomainRoute": {
33
+ "additionalProperties": false,
34
+ "properties": {
35
+ "custom_domain": {
36
+ "type": "boolean"
37
+ },
38
+ "pattern": {
39
+ "type": "string"
40
+ }
41
+ },
42
+ "required": [
43
+ "pattern",
44
+ "custom_domain"
45
+ ],
46
+ "type": "object"
47
+ },
48
+ "DeprecatedUpload": {
49
+ "additionalProperties": false,
50
+ "description": "Deprecated upload configuration.",
51
+ "properties": {
52
+ "dir": {
53
+ "deprecated": true,
54
+ "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.",
55
+ "type": "string"
56
+ },
57
+ "format": {
58
+ "deprecated": "We infer the format automatically now.",
59
+ "description": "The format of the Worker script.",
60
+ "enum": [
61
+ "modules",
62
+ "service-worker"
63
+ ],
64
+ "type": "string"
65
+ },
66
+ "main": {
67
+ "deprecated": "This will be replaced by a command line argument.",
68
+ "description": "The path to the Worker script, relative to `upload.dir`.",
69
+ "type": "string"
70
+ },
71
+ "rules": {
72
+ "$ref": "#/definitions/Environment",
73
+ "deprecated": "This is now defined at the top level `rules` field."
74
+ }
75
+ },
76
+ "type": "object"
77
+ },
78
+ "DispatchNamespaceOutbound": {
79
+ "additionalProperties": false,
80
+ "properties": {
81
+ "environment": {
82
+ "description": "(Optional) Name of the environment handling the outbound requests.",
83
+ "type": "string"
84
+ },
85
+ "parameters": {
86
+ "description": "(Optional) List of parameter names, for sending context from your dispatch Worker to the outbound handler",
87
+ "items": {
88
+ "type": "string"
89
+ },
90
+ "type": "array"
91
+ },
92
+ "service": {
93
+ "description": "Name of the service handling the outbound requests",
94
+ "type": "string"
95
+ }
96
+ },
97
+ "required": [
98
+ "service"
99
+ ],
100
+ "type": "object"
101
+ },
102
+ "DurableObjectBindings": {
103
+ "items": {
104
+ "additionalProperties": false,
105
+ "properties": {
106
+ "class_name": {
107
+ "description": "The exported class name of the Durable Object",
108
+ "type": "string"
109
+ },
110
+ "environment": {
111
+ "description": "The service environment of the script_name to bind to",
112
+ "type": "string"
113
+ },
114
+ "name": {
115
+ "description": "The name of the binding used to refer to the Durable Object",
116
+ "type": "string"
117
+ },
118
+ "script_name": {
119
+ "description": "The script where the Durable Object is defined (if it's external to this Worker)",
120
+ "type": "string"
121
+ }
122
+ },
123
+ "required": [
124
+ "name",
125
+ "class_name"
126
+ ],
127
+ "type": "object"
128
+ },
129
+ "type": "array"
130
+ },
131
+ "Environment": {
132
+ "additionalProperties": false,
133
+ "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.",
134
+ "properties": {
135
+ "account_id": {
136
+ "description": "This is the ID of the account associated with your zone. You might have more than one account, so make sure to use the ID of the account associated with the zone/route you provide, if you provide one. It can also be specified through the CLOUDFLARE_ACCOUNT_ID environment variable.",
137
+ "type": "string"
138
+ },
139
+ "ai": {
140
+ "additionalProperties": false,
141
+ "default": "`{}`",
142
+ "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.",
143
+ "properties": {
144
+ "binding": {
145
+ "type": "string"
146
+ },
147
+ "staging": {
148
+ "type": "boolean"
149
+ }
150
+ },
151
+ "required": [
152
+ "binding"
153
+ ],
154
+ "type": "object"
155
+ },
156
+ "analytics_engine_datasets": {
157
+ "default": "`[]`",
158
+ "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.",
159
+ "items": {
160
+ "additionalProperties": false,
161
+ "properties": {
162
+ "binding": {
163
+ "description": "The binding name used to refer to the dataset in the Worker.",
164
+ "type": "string"
165
+ },
166
+ "dataset": {
167
+ "description": "The name of this dataset to write to.",
168
+ "type": "string"
169
+ }
170
+ },
171
+ "required": [
172
+ "binding"
173
+ ],
174
+ "type": "object"
175
+ },
176
+ "type": "array"
177
+ },
178
+ "base_dir": {
179
+ "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.",
180
+ "type": "string"
181
+ },
182
+ "browser": {
183
+ "additionalProperties": false,
184
+ "default": "`{}`",
185
+ "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.",
186
+ "properties": {
187
+ "binding": {
188
+ "type": "string"
189
+ }
190
+ },
191
+ "required": [
192
+ "binding"
193
+ ],
194
+ "type": "object"
195
+ },
196
+ "build": {
197
+ "additionalProperties": false,
198
+ "default": {
199
+ "watch_dir": "./src"
200
+ },
201
+ "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.",
202
+ "properties": {
203
+ "command": {
204
+ "description": "The command used to build your Worker. On Linux and macOS, the command is executed in the `sh` shell and the `cmd` shell for Windows. The `&&` and `||` shell operators may be used.",
205
+ "type": "string"
206
+ },
207
+ "cwd": {
208
+ "description": "The directory in which the command is executed.",
209
+ "type": "string"
210
+ },
211
+ "upload": {
212
+ "$ref": "#/definitions/DeprecatedUpload",
213
+ "deprecated": true,
214
+ "description": "Deprecated field previously used to configure the build and upload of the script."
215
+ },
216
+ "watch_dir": {
217
+ "anyOf": [
218
+ {
219
+ "type": "string"
220
+ },
221
+ {
222
+ "items": {
223
+ "type": "string"
224
+ },
225
+ "type": "array"
226
+ }
227
+ ],
228
+ "description": "The directory to watch for changes while using wrangler dev, defaults to the current working directory"
229
+ }
230
+ },
231
+ "type": "object"
232
+ },
233
+ "cloudchamber": {
234
+ "$ref": "#/definitions/CloudchamberConfig",
235
+ "default": "`{}`",
236
+ "description": "Cloudchamber configuration\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment."
237
+ },
238
+ "compatibility_date": {
239
+ "description": "A date in the form yyyy-mm-dd, which will be used to determine which version of the Workers runtime is used.\n\nMore details at https://developers.cloudflare.com/workers/platform/compatibility-dates",
240
+ "type": "string"
241
+ },
242
+ "compatibility_flags": {
243
+ "default": "`[]`",
244
+ "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",
245
+ "items": {
246
+ "type": "string"
247
+ },
248
+ "type": "array"
249
+ },
250
+ "constellation": {
251
+ "default": "`[]`",
252
+ "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.",
253
+ "items": {
254
+ "additionalProperties": false,
255
+ "properties": {
256
+ "binding": {
257
+ "description": "The binding name used to refer to the project in the Worker.",
258
+ "type": "string"
259
+ },
260
+ "project_id": {
261
+ "description": "The id of the project.",
262
+ "type": "string"
263
+ }
264
+ },
265
+ "required": [
266
+ "binding",
267
+ "project_id"
268
+ ],
269
+ "type": "object"
270
+ },
271
+ "type": "array"
272
+ },
273
+ "d1_databases": {
274
+ "default": "`[]`",
275
+ "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.",
276
+ "items": {
277
+ "additionalProperties": false,
278
+ "properties": {
279
+ "binding": {
280
+ "description": "The binding name used to refer to the D1 database in the Worker.",
281
+ "type": "string"
282
+ },
283
+ "database_id": {
284
+ "description": "The UUID of this D1 database (not required).",
285
+ "type": "string"
286
+ },
287
+ "database_internal_env": {
288
+ "description": "Internal use only.",
289
+ "type": "string"
290
+ },
291
+ "database_name": {
292
+ "description": "The name of this D1 database.",
293
+ "type": "string"
294
+ },
295
+ "migrations_dir": {
296
+ "description": "The path to the directory of migrations for this D1 database (defaults to './migrations').",
297
+ "type": "string"
298
+ },
299
+ "migrations_table": {
300
+ "description": "The name of the migrations table for this D1 database (defaults to 'd1_migrations').",
301
+ "type": "string"
302
+ },
303
+ "preview_database_id": {
304
+ "description": "The UUID of this D1 database for Wrangler Dev (if specified).",
305
+ "type": "string"
306
+ }
307
+ },
308
+ "required": [
309
+ "binding",
310
+ "database_name",
311
+ "database_id"
312
+ ],
313
+ "type": "object"
314
+ },
315
+ "type": "array"
316
+ },
317
+ "define": {
318
+ "additionalProperties": {
319
+ "type": "string"
320
+ },
321
+ "default": "`{}`",
322
+ "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.",
323
+ "type": "object"
324
+ },
325
+ "dispatch_namespaces": {
326
+ "default": "`[]`",
327
+ "description": "Specifies namespace bindings 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.",
328
+ "items": {
329
+ "additionalProperties": false,
330
+ "properties": {
331
+ "binding": {
332
+ "description": "The binding name used to refer to the bound service.",
333
+ "type": "string"
334
+ },
335
+ "namespace": {
336
+ "description": "The namespace to bind to.",
337
+ "type": "string"
338
+ },
339
+ "outbound": {
340
+ "$ref": "#/definitions/DispatchNamespaceOutbound",
341
+ "description": "Details about the outbound Worker which will handle outbound requests from your namespace"
342
+ }
343
+ },
344
+ "required": [
345
+ "binding",
346
+ "namespace"
347
+ ],
348
+ "type": "object"
349
+ },
350
+ "type": "array"
351
+ },
352
+ "durable_objects": {
353
+ "additionalProperties": false,
354
+ "default": "`{bindings:[]}`",
355
+ "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.",
356
+ "properties": {
357
+ "bindings": {
358
+ "$ref": "#/definitions/DurableObjectBindings"
359
+ }
360
+ },
361
+ "required": [
362
+ "bindings"
363
+ ],
364
+ "type": "object"
365
+ },
366
+ "find_additional_modules": {
367
+ "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.",
368
+ "type": "boolean"
369
+ },
370
+ "first_party_worker": {
371
+ "description": "Designates this Worker as an internal-only \"first-party\" Worker.",
372
+ "type": "boolean"
373
+ },
374
+ "hyperdrive": {
375
+ "default": "`[]`",
376
+ "description": "Specifies Hyperdrive configs 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.",
377
+ "items": {
378
+ "additionalProperties": false,
379
+ "properties": {
380
+ "binding": {
381
+ "description": "The binding name used to refer to the project in the Worker.",
382
+ "type": "string"
383
+ },
384
+ "id": {
385
+ "description": "The id of the database.",
386
+ "type": "string"
387
+ },
388
+ "localConnectionString": {
389
+ "description": "The local database connection string for `wrangler dev`",
390
+ "type": "string"
391
+ }
392
+ },
393
+ "required": [
394
+ "binding",
395
+ "id"
396
+ ],
397
+ "type": "object"
398
+ },
399
+ "type": "array"
400
+ },
401
+ "jsx_factory": {
402
+ "default": "`\"React.createElement\"`",
403
+ "description": "The function to use to replace jsx syntax.",
404
+ "type": "string"
405
+ },
406
+ "jsx_fragment": {
407
+ "default": "`\"React.Fragment\"`",
408
+ "description": "The function to use to replace jsx fragment syntax.",
409
+ "type": "string"
410
+ },
411
+ "kv_namespaces": {
412
+ "default": "`[]`",
413
+ "description": "These specify any Workers KV Namespaces you want to access from inside your Worker.\n\nTo learn more about KV Namespaces, see the documentation at https://developers.cloudflare.com/workers/learning/how-kv-works\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
414
+ "items": {
415
+ "additionalProperties": false,
416
+ "properties": {
417
+ "binding": {
418
+ "description": "The binding name used to refer to the KV Namespace",
419
+ "type": "string"
420
+ },
421
+ "id": {
422
+ "description": "The ID of the KV namespace",
423
+ "type": "string"
424
+ },
425
+ "preview_id": {
426
+ "description": "The ID of the KV namespace used during `wrangler dev`",
427
+ "type": "string"
428
+ }
429
+ },
430
+ "required": [
431
+ "binding",
432
+ "id"
433
+ ],
434
+ "type": "object"
435
+ },
436
+ "type": "array"
437
+ },
438
+ "limits": {
439
+ "$ref": "#/definitions/UserLimits",
440
+ "description": "Specify limits for runtime behavior. Only supported for the \"standard\" Usage Model"
441
+ },
442
+ "logfwdr": {
443
+ "additionalProperties": false,
444
+ "default": "`{bindings:[]}`",
445
+ "description": "List of bindings that you will send to logfwdr",
446
+ "properties": {
447
+ "bindings": {
448
+ "items": {
449
+ "additionalProperties": false,
450
+ "properties": {
451
+ "destination": {
452
+ "description": "The destination for this logged message",
453
+ "type": "string"
454
+ },
455
+ "name": {
456
+ "description": "The binding name used to refer to logfwdr",
457
+ "type": "string"
458
+ }
459
+ },
460
+ "required": [
461
+ "name",
462
+ "destination"
463
+ ],
464
+ "type": "object"
465
+ },
466
+ "type": "array"
467
+ }
468
+ },
469
+ "required": [
470
+ "bindings"
471
+ ],
472
+ "type": "object"
473
+ },
474
+ "logpush": {
475
+ "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/",
476
+ "type": "boolean"
477
+ },
478
+ "main": {
479
+ "description": "The entrypoint/path to the JavaScript file that will be executed.",
480
+ "type": "string"
481
+ },
482
+ "minify": {
483
+ "description": "Minify the script before uploading.",
484
+ "type": "boolean"
485
+ },
486
+ "mtls_certificates": {
487
+ "default": "`[]`",
488
+ "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.",
489
+ "items": {
490
+ "additionalProperties": false,
491
+ "properties": {
492
+ "binding": {
493
+ "description": "The binding name used to refer to the certificate in the Worker",
494
+ "type": "string"
495
+ },
496
+ "certificate_id": {
497
+ "description": "The uuid of the uploaded mTLS certificate",
498
+ "type": "string"
499
+ }
500
+ },
501
+ "required": [
502
+ "binding",
503
+ "certificate_id"
504
+ ],
505
+ "type": "object"
506
+ },
507
+ "type": "array"
508
+ },
509
+ "name": {
510
+ "description": "The name of your Worker. Alphanumeric + dashes only.",
511
+ "type": "string"
512
+ },
513
+ "no_bundle": {
514
+ "description": "Skip internal build steps and directly deploy script",
515
+ "type": "boolean"
516
+ },
517
+ "node_compat": {
518
+ "description": "Add polyfills for node builtin modules and globals",
519
+ "type": "boolean"
520
+ },
521
+ "placement": {
522
+ "additionalProperties": false,
523
+ "description": "Specify how the Worker should be located to minimize round-trip time.\n\nMore details: https://developers.cloudflare.com/workers/platform/smart-placement/",
524
+ "properties": {
525
+ "mode": {
526
+ "enum": [
527
+ "off",
528
+ "smart"
529
+ ],
530
+ "type": "string"
531
+ }
532
+ },
533
+ "required": [
534
+ "mode"
535
+ ],
536
+ "type": "object"
537
+ },
538
+ "preserve_file_names": {
539
+ "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`.",
540
+ "type": "boolean"
541
+ },
542
+ "queues": {
543
+ "additionalProperties": false,
544
+ "default": "`{consumers:[],producers:[]}`",
545
+ "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.",
546
+ "properties": {
547
+ "consumers": {
548
+ "description": "Consumer configuration",
549
+ "items": {
550
+ "additionalProperties": false,
551
+ "properties": {
552
+ "dead_letter_queue": {
553
+ "description": "The queue to send messages that failed to be consumed.",
554
+ "type": "string"
555
+ },
556
+ "max_batch_size": {
557
+ "description": "The maximum number of messages per batch",
558
+ "type": "number"
559
+ },
560
+ "max_batch_timeout": {
561
+ "description": "The maximum number of seconds to wait to fill a batch with messages.",
562
+ "type": "number"
563
+ },
564
+ "max_concurrency": {
565
+ "description": "The maximum number of concurrent consumer Worker invocations. Leaving this unset will allow your consumer to scale to the maximum concurrency needed to keep up with the message backlog.",
566
+ "type": [
567
+ "number",
568
+ "null"
569
+ ]
570
+ },
571
+ "max_retries": {
572
+ "description": "The maximum number of retries for each message.",
573
+ "type": "number"
574
+ },
575
+ "queue": {
576
+ "description": "The name of the queue from which this consumer should consume.",
577
+ "type": "string"
578
+ },
579
+ "retry_delay": {
580
+ "description": "The number of seconds to wait before retrying a message",
581
+ "type": "number"
582
+ },
583
+ "type": {
584
+ "description": "The consumer type, e.g., worker, http-pull, r2-bucket, etc. Default is worker.",
585
+ "type": "string"
586
+ },
587
+ "visibility_timeout_ms": {
588
+ "description": "The number of milliseconds to wait for pulled messages to become visible again",
589
+ "type": "number"
590
+ }
591
+ },
592
+ "required": [
593
+ "queue"
594
+ ],
595
+ "type": "object"
596
+ },
597
+ "type": "array"
598
+ },
599
+ "producers": {
600
+ "description": "Producer bindings",
601
+ "items": {
602
+ "additionalProperties": false,
603
+ "properties": {
604
+ "binding": {
605
+ "description": "The binding name used to refer to the Queue in the Worker.",
606
+ "type": "string"
607
+ },
608
+ "delivery_delay": {
609
+ "description": "The number of seconds to wait before delivering a message",
610
+ "type": "number"
611
+ },
612
+ "queue": {
613
+ "description": "The name of this Queue.",
614
+ "type": "string"
615
+ }
616
+ },
617
+ "required": [
618
+ "binding",
619
+ "queue"
620
+ ],
621
+ "type": "object"
622
+ },
623
+ "type": "array"
624
+ }
625
+ },
626
+ "type": "object"
627
+ },
628
+ "r2_buckets": {
629
+ "default": "`[]`",
630
+ "description": "Specifies R2 buckets 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.",
631
+ "items": {
632
+ "additionalProperties": false,
633
+ "properties": {
634
+ "binding": {
635
+ "description": "The binding name used to refer to the R2 bucket in the Worker.",
636
+ "type": "string"
637
+ },
638
+ "bucket_name": {
639
+ "description": "The name of this R2 bucket at the edge.",
640
+ "type": "string"
641
+ },
642
+ "jurisdiction": {
643
+ "description": "The jurisdiction that the bucket exists in. Default if not present.",
644
+ "type": "string"
645
+ },
646
+ "preview_bucket_name": {
647
+ "description": "The preview name of this R2 bucket at the edge.",
648
+ "type": "string"
649
+ }
650
+ },
651
+ "required": [
652
+ "binding",
653
+ "bucket_name"
654
+ ],
655
+ "type": "object"
656
+ },
657
+ "type": "array"
658
+ },
659
+ "route": {
660
+ "$ref": "#/definitions/Route",
661
+ "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"
662
+ },
663
+ "routes": {
664
+ "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`)",
665
+ "items": {
666
+ "$ref": "#/definitions/Route"
667
+ },
668
+ "type": "array"
669
+ },
670
+ "rules": {
671
+ "description": "An ordered list of rules that define which modules to import, and what type to import them as. You will need to specify rules to use Text, Data, and CompiledWasm modules, or when you wish to have a .js file be treated as an ESModule instead of CommonJS.",
672
+ "items": {
673
+ "$ref": "#/definitions/Rule"
674
+ },
675
+ "type": "array"
676
+ },
677
+ "send_email": {
678
+ "default": "`[]`",
679
+ "description": "These specify bindings to send email from inside your Worker.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
680
+ "items": {
681
+ "additionalProperties": false,
682
+ "properties": {
683
+ "allowed_destination_addresses": {
684
+ "description": "If this binding should be restricted to a set of verified addresses",
685
+ "items": {
686
+ "type": "string"
687
+ },
688
+ "type": "array"
689
+ },
690
+ "destination_address": {
691
+ "description": "If this binding should be restricted to a specific verified address",
692
+ "type": "string"
693
+ },
694
+ "name": {
695
+ "description": "The binding name used to refer to the this binding",
696
+ "type": "string"
697
+ }
698
+ },
699
+ "required": [
700
+ "name"
701
+ ],
702
+ "type": "object"
703
+ },
704
+ "type": "array"
705
+ },
706
+ "services": {
707
+ "default": "`[]`",
708
+ "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.",
709
+ "items": {
710
+ "additionalProperties": false,
711
+ "properties": {
712
+ "binding": {
713
+ "description": "The binding name used to refer to the bound service.",
714
+ "type": "string"
715
+ },
716
+ "entrypoint": {
717
+ "description": "Optionally, the entrypoint (named export) of the service to bind to.",
718
+ "type": "string"
719
+ },
720
+ "environment": {
721
+ "description": "The environment of the service (e.g. production, staging, etc).",
722
+ "type": "string"
723
+ },
724
+ "service": {
725
+ "description": "The name of the service.",
726
+ "type": "string"
727
+ }
728
+ },
729
+ "required": [
730
+ "binding",
731
+ "service"
732
+ ],
733
+ "type": "object"
734
+ },
735
+ "type": "array"
736
+ },
737
+ "tail_consumers": {
738
+ "default": "`[]`",
739
+ "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.",
740
+ "items": {
741
+ "$ref": "#/definitions/TailConsumer"
742
+ },
743
+ "type": "array"
744
+ },
745
+ "triggers": {
746
+ "additionalProperties": false,
747
+ "default": "`{crons:[]}`",
748
+ "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",
749
+ "properties": {
750
+ "crons": {
751
+ "items": {
752
+ "type": "string"
753
+ },
754
+ "type": "array"
755
+ }
756
+ },
757
+ "required": [
758
+ "crons"
759
+ ],
760
+ "type": "object"
761
+ },
762
+ "tsconfig": {
763
+ "description": "Path to a custom tsconfig",
764
+ "type": "string"
765
+ },
766
+ "unsafe": {
767
+ "additionalProperties": false,
768
+ "default": "`{}`",
769
+ "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.",
770
+ "properties": {
771
+ "bindings": {
772
+ "description": "A set of bindings that should be put into a Worker's upload metadata without changes. These can be used to implement bindings for features that haven't released and aren't supported directly by wrangler or miniflare.",
773
+ "items": {
774
+ "additionalProperties": {},
775
+ "properties": {
776
+ "name": {
777
+ "type": "string"
778
+ },
779
+ "type": {
780
+ "type": "string"
781
+ }
782
+ },
783
+ "required": [
784
+ "name",
785
+ "type"
786
+ ],
787
+ "type": "object"
788
+ },
789
+ "type": "array"
790
+ },
791
+ "capnp": {
792
+ "anyOf": [
793
+ {
794
+ "additionalProperties": false,
795
+ "properties": {
796
+ "base_path": {
797
+ "type": "string"
798
+ },
799
+ "source_schemas": {
800
+ "items": {
801
+ "type": "string"
802
+ },
803
+ "type": "array"
804
+ }
805
+ },
806
+ "required": [
807
+ "base_path",
808
+ "source_schemas"
809
+ ],
810
+ "type": "object"
811
+ },
812
+ {
813
+ "additionalProperties": false,
814
+ "properties": {
815
+ "compiled_schema": {
816
+ "type": "string"
817
+ }
818
+ },
819
+ "required": [
820
+ "compiled_schema"
821
+ ],
822
+ "type": "object"
823
+ }
824
+ ],
825
+ "description": "Used for internal capnp uploads for the Workers runtime"
826
+ },
827
+ "metadata": {
828
+ "additionalProperties": {},
829
+ "description": "Arbitrary key/value pairs that will be included in the uploaded metadata. Values specified here will always be applied to metadata last, so can add new or override existing fields.",
830
+ "type": "object"
831
+ }
832
+ },
833
+ "type": "object"
834
+ },
835
+ "upload_source_maps": {
836
+ "description": "Include source maps when uploading this worker.",
837
+ "type": "boolean"
838
+ },
839
+ "usage_model": {
840
+ "description": "Specifies the Usage Model for your Worker. There are two options - [bundled](https://developers.cloudflare.com/workers/platform/limits#bundled-usage-model) and [unbound](https://developers.cloudflare.com/workers/platform/limits#unbound-usage-model). For newly created Workers, if the Usage Model is omitted it will be set to the [default Usage Model set on the account](https://dash.cloudflare.com/?account=workers/default-usage-model). For existing Workers, if the Usage Model is omitted, it will be set to the Usage Model configured in the dashboard for that Worker.",
841
+ "enum": [
842
+ "bundled",
843
+ "unbound"
844
+ ],
845
+ "type": "string"
846
+ },
847
+ "vars": {
848
+ "additionalProperties": {
849
+ "anyOf": [
850
+ {
851
+ "type": "string"
852
+ },
853
+ {
854
+ "$ref": "#/definitions/Json"
855
+ }
856
+ ]
857
+ },
858
+ "default": "`{}`",
859
+ "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.",
860
+ "type": "object"
861
+ },
862
+ "vectorize": {
863
+ "default": "`[]`",
864
+ "description": "Specifies Vectorize indexes 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.",
865
+ "items": {
866
+ "additionalProperties": false,
867
+ "properties": {
868
+ "binding": {
869
+ "description": "The binding name used to refer to the Vectorize index in the Worker.",
870
+ "type": "string"
871
+ },
872
+ "index_name": {
873
+ "description": "The name of the index.",
874
+ "type": "string"
875
+ }
876
+ },
877
+ "required": [
878
+ "binding",
879
+ "index_name"
880
+ ],
881
+ "type": "object"
882
+ },
883
+ "type": "array"
884
+ },
885
+ "version_metadata": {
886
+ "additionalProperties": false,
887
+ "description": "Binding to the Worker Version's metadata",
888
+ "properties": {
889
+ "binding": {
890
+ "type": "string"
891
+ }
892
+ },
893
+ "required": [
894
+ "binding"
895
+ ],
896
+ "type": "object"
897
+ },
898
+ "workers_dev": {
899
+ "default": "`true` (This is a breaking change from Wrangler v1)",
900
+ "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",
901
+ "type": "boolean"
902
+ },
903
+ "zone_id": {
904
+ "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.",
905
+ "type": "string"
906
+ }
907
+ },
908
+ "required": [
909
+ "analytics_engine_datasets",
910
+ "build",
911
+ "cloudchamber",
912
+ "compatibility_flags",
913
+ "constellation",
914
+ "d1_databases",
915
+ "define",
916
+ "dispatch_namespaces",
917
+ "durable_objects",
918
+ "hyperdrive",
919
+ "jsx_factory",
920
+ "jsx_fragment",
921
+ "kv_namespaces",
922
+ "logfwdr",
923
+ "mtls_certificates",
924
+ "queues",
925
+ "r2_buckets",
926
+ "rules",
927
+ "send_email",
928
+ "triggers",
929
+ "unsafe",
930
+ "vars",
931
+ "vectorize"
932
+ ],
933
+ "type": "object"
934
+ },
935
+ "Json": {
936
+ "anyOf": [
937
+ {
938
+ "$ref": "#/definitions/Literal"
939
+ },
940
+ {
941
+ "additionalProperties": {
942
+ "$ref": "#/definitions/Json"
943
+ },
944
+ "type": "object"
945
+ },
946
+ {
947
+ "items": {
948
+ "$ref": "#/definitions/Json"
949
+ },
950
+ "type": "array"
951
+ }
952
+ ]
953
+ },
954
+ "Literal": {
955
+ "$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"
956
+ },
957
+ "RawConfig": {
958
+ "additionalProperties": false,
959
+ "properties": {
960
+ "$schema": {
961
+ "type": "string"
962
+ },
963
+ "account_id": {
964
+ "description": "This is the ID of the account associated with your zone. You might have more than one account, so make sure to use the ID of the account associated with the zone/route you provide, if you provide one. It can also be specified through the CLOUDFLARE_ACCOUNT_ID environment variable.",
965
+ "type": "string"
966
+ },
967
+ "ai": {
968
+ "additionalProperties": false,
969
+ "default": "`{}`",
970
+ "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.",
971
+ "properties": {
972
+ "binding": {
973
+ "type": "string"
974
+ },
975
+ "staging": {
976
+ "type": "boolean"
977
+ }
978
+ },
979
+ "required": [
980
+ "binding"
981
+ ],
982
+ "type": "object"
983
+ },
984
+ "analytics_engine_datasets": {
985
+ "default": "`[]`",
986
+ "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.",
987
+ "items": {
988
+ "additionalProperties": false,
989
+ "properties": {
990
+ "binding": {
991
+ "description": "The binding name used to refer to the dataset in the Worker.",
992
+ "type": "string"
993
+ },
994
+ "dataset": {
995
+ "description": "The name of this dataset to write to.",
996
+ "type": "string"
997
+ }
998
+ },
999
+ "required": [
1000
+ "binding"
1001
+ ],
1002
+ "type": "object"
1003
+ },
1004
+ "type": "array"
1005
+ },
1006
+ "assets": {
1007
+ "anyOf": [
1008
+ {
1009
+ "additionalProperties": false,
1010
+ "properties": {
1011
+ "browser_TTL": {
1012
+ "type": "number"
1013
+ },
1014
+ "bucket": {
1015
+ "type": "string"
1016
+ },
1017
+ "exclude": {
1018
+ "items": {
1019
+ "type": "string"
1020
+ },
1021
+ "type": "array"
1022
+ },
1023
+ "include": {
1024
+ "items": {
1025
+ "type": "string"
1026
+ },
1027
+ "type": "array"
1028
+ },
1029
+ "serve_single_page_app": {
1030
+ "type": "boolean"
1031
+ }
1032
+ },
1033
+ "required": [
1034
+ "bucket",
1035
+ "include",
1036
+ "exclude",
1037
+ "serve_single_page_app"
1038
+ ],
1039
+ "type": "object"
1040
+ },
1041
+ {
1042
+ "type": "string"
1043
+ }
1044
+ ],
1045
+ "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."
1046
+ },
1047
+ "base_dir": {
1048
+ "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.",
1049
+ "type": "string"
1050
+ },
1051
+ "browser": {
1052
+ "additionalProperties": false,
1053
+ "default": "`{}`",
1054
+ "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.",
1055
+ "properties": {
1056
+ "binding": {
1057
+ "type": "string"
1058
+ }
1059
+ },
1060
+ "required": [
1061
+ "binding"
1062
+ ],
1063
+ "type": "object"
1064
+ },
1065
+ "build": {
1066
+ "additionalProperties": false,
1067
+ "default": {
1068
+ "watch_dir": "./src"
1069
+ },
1070
+ "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.",
1071
+ "properties": {
1072
+ "command": {
1073
+ "description": "The command used to build your Worker. On Linux and macOS, the command is executed in the `sh` shell and the `cmd` shell for Windows. The `&&` and `||` shell operators may be used.",
1074
+ "type": "string"
1075
+ },
1076
+ "cwd": {
1077
+ "description": "The directory in which the command is executed.",
1078
+ "type": "string"
1079
+ },
1080
+ "upload": {
1081
+ "$ref": "#/definitions/DeprecatedUpload",
1082
+ "deprecated": true,
1083
+ "description": "Deprecated field previously used to configure the build and upload of the script."
1084
+ },
1085
+ "watch_dir": {
1086
+ "anyOf": [
1087
+ {
1088
+ "type": "string"
1089
+ },
1090
+ {
1091
+ "items": {
1092
+ "type": "string"
1093
+ },
1094
+ "type": "array"
1095
+ }
1096
+ ],
1097
+ "description": "The directory to watch for changes while using wrangler dev, defaults to the current working directory"
1098
+ }
1099
+ },
1100
+ "type": "object"
1101
+ },
1102
+ "cloudchamber": {
1103
+ "$ref": "#/definitions/CloudchamberConfig",
1104
+ "default": "`{}`",
1105
+ "description": "Cloudchamber configuration\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment."
1106
+ },
1107
+ "compatibility_date": {
1108
+ "description": "A date in the form yyyy-mm-dd, which will be used to determine which version of the Workers runtime is used.\n\nMore details at https://developers.cloudflare.com/workers/platform/compatibility-dates",
1109
+ "type": "string"
1110
+ },
1111
+ "compatibility_flags": {
1112
+ "default": "`[]`",
1113
+ "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",
1114
+ "items": {
1115
+ "type": "string"
1116
+ },
1117
+ "type": "array"
1118
+ },
1119
+ "configPath": {
1120
+ "type": "string"
1121
+ },
1122
+ "constellation": {
1123
+ "default": "`[]`",
1124
+ "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.",
1125
+ "items": {
1126
+ "additionalProperties": false,
1127
+ "properties": {
1128
+ "binding": {
1129
+ "description": "The binding name used to refer to the project in the Worker.",
1130
+ "type": "string"
1131
+ },
1132
+ "project_id": {
1133
+ "description": "The id of the project.",
1134
+ "type": "string"
1135
+ }
1136
+ },
1137
+ "required": [
1138
+ "binding",
1139
+ "project_id"
1140
+ ],
1141
+ "type": "object"
1142
+ },
1143
+ "type": "array"
1144
+ },
1145
+ "d1_databases": {
1146
+ "default": "`[]`",
1147
+ "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.",
1148
+ "items": {
1149
+ "additionalProperties": false,
1150
+ "properties": {
1151
+ "binding": {
1152
+ "description": "The binding name used to refer to the D1 database in the Worker.",
1153
+ "type": "string"
1154
+ },
1155
+ "database_id": {
1156
+ "description": "The UUID of this D1 database (not required).",
1157
+ "type": "string"
1158
+ },
1159
+ "database_internal_env": {
1160
+ "description": "Internal use only.",
1161
+ "type": "string"
1162
+ },
1163
+ "database_name": {
1164
+ "description": "The name of this D1 database.",
1165
+ "type": "string"
1166
+ },
1167
+ "migrations_dir": {
1168
+ "description": "The path to the directory of migrations for this D1 database (defaults to './migrations').",
1169
+ "type": "string"
1170
+ },
1171
+ "migrations_table": {
1172
+ "description": "The name of the migrations table for this D1 database (defaults to 'd1_migrations').",
1173
+ "type": "string"
1174
+ },
1175
+ "preview_database_id": {
1176
+ "description": "The UUID of this D1 database for Wrangler Dev (if specified).",
1177
+ "type": "string"
1178
+ }
1179
+ },
1180
+ "required": [
1181
+ "binding",
1182
+ "database_name",
1183
+ "database_id"
1184
+ ],
1185
+ "type": "object"
1186
+ },
1187
+ "type": "array"
1188
+ },
1189
+ "data_blobs": {
1190
+ "additionalProperties": {
1191
+ "type": "string"
1192
+ },
1193
+ "description": "A list of data files that your worker should be bound to. This is the \"legacy\" way of binding to a data file. ES module workers should do proper module imports.",
1194
+ "type": "object"
1195
+ },
1196
+ "define": {
1197
+ "additionalProperties": {
1198
+ "type": "string"
1199
+ },
1200
+ "default": "`{}`",
1201
+ "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.",
1202
+ "type": "object"
1203
+ },
1204
+ "dev": {
1205
+ "$ref": "#/definitions/RawDevConfig",
1206
+ "description": "Options to configure the development server that your worker will use."
1207
+ },
1208
+ "dispatch_namespaces": {
1209
+ "default": "`[]`",
1210
+ "description": "Specifies namespace bindings 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.",
1211
+ "items": {
1212
+ "additionalProperties": false,
1213
+ "properties": {
1214
+ "binding": {
1215
+ "description": "The binding name used to refer to the bound service.",
1216
+ "type": "string"
1217
+ },
1218
+ "namespace": {
1219
+ "description": "The namespace to bind to.",
1220
+ "type": "string"
1221
+ },
1222
+ "outbound": {
1223
+ "$ref": "#/definitions/DispatchNamespaceOutbound",
1224
+ "description": "Details about the outbound Worker which will handle outbound requests from your namespace"
1225
+ }
1226
+ },
1227
+ "required": [
1228
+ "binding",
1229
+ "namespace"
1230
+ ],
1231
+ "type": "object"
1232
+ },
1233
+ "type": "array"
1234
+ },
1235
+ "durable_objects": {
1236
+ "additionalProperties": false,
1237
+ "default": "`{bindings:[]}`",
1238
+ "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.",
1239
+ "properties": {
1240
+ "bindings": {
1241
+ "$ref": "#/definitions/DurableObjectBindings"
1242
+ }
1243
+ },
1244
+ "required": [
1245
+ "bindings"
1246
+ ],
1247
+ "type": "object"
1248
+ },
1249
+ "env": {
1250
+ "additionalProperties": {
1251
+ "$ref": "#/definitions/RawEnvironment"
1252
+ },
1253
+ "default": {},
1254
+ "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",
1255
+ "type": "object"
1256
+ },
1257
+ "experimental_services": {
1258
+ "default": "`[]`",
1259
+ "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.",
1260
+ "description": "A list of services that your Worker should be bound to.",
1261
+ "items": {
1262
+ "additionalProperties": false,
1263
+ "properties": {
1264
+ "environment": {
1265
+ "description": "The Service's environment",
1266
+ "type": "string"
1267
+ },
1268
+ "name": {
1269
+ "description": "The binding name used to refer to the Service",
1270
+ "type": "string"
1271
+ },
1272
+ "service": {
1273
+ "description": "The name of the Service being bound",
1274
+ "type": "string"
1275
+ }
1276
+ },
1277
+ "required": [
1278
+ "name",
1279
+ "service",
1280
+ "environment"
1281
+ ],
1282
+ "type": "object"
1283
+ },
1284
+ "type": "array"
1285
+ },
1286
+ "find_additional_modules": {
1287
+ "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.",
1288
+ "type": "boolean"
1289
+ },
1290
+ "first_party_worker": {
1291
+ "description": "Designates this Worker as an internal-only \"first-party\" Worker.",
1292
+ "type": "boolean"
1293
+ },
1294
+ "hyperdrive": {
1295
+ "default": "`[]`",
1296
+ "description": "Specifies Hyperdrive configs 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.",
1297
+ "items": {
1298
+ "additionalProperties": false,
1299
+ "properties": {
1300
+ "binding": {
1301
+ "description": "The binding name used to refer to the project in the Worker.",
1302
+ "type": "string"
1303
+ },
1304
+ "id": {
1305
+ "description": "The id of the database.",
1306
+ "type": "string"
1307
+ },
1308
+ "localConnectionString": {
1309
+ "description": "The local database connection string for `wrangler dev`",
1310
+ "type": "string"
1311
+ }
1312
+ },
1313
+ "required": [
1314
+ "binding",
1315
+ "id"
1316
+ ],
1317
+ "type": "object"
1318
+ },
1319
+ "type": "array"
1320
+ },
1321
+ "jsx_factory": {
1322
+ "default": "`\"React.createElement\"`",
1323
+ "description": "The function to use to replace jsx syntax.",
1324
+ "type": "string"
1325
+ },
1326
+ "jsx_fragment": {
1327
+ "default": "`\"React.Fragment\"`",
1328
+ "description": "The function to use to replace jsx fragment syntax.",
1329
+ "type": "string"
1330
+ },
1331
+ "keep_vars": {
1332
+ "default": false,
1333
+ "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.",
1334
+ "type": "boolean"
1335
+ },
1336
+ "kv-namespaces": {
1337
+ "deprecated": "DO NOT USE. This was a legacy bug from Wrangler v1, that we do not want to support.",
1338
+ "description": "Legacy way of defining KVNamespaces that is no longer supported.",
1339
+ "type": "string"
1340
+ },
1341
+ "kv_namespaces": {
1342
+ "default": "`[]`",
1343
+ "description": "These specify any Workers KV Namespaces you want to access from inside your Worker.\n\nTo learn more about KV Namespaces, see the documentation at https://developers.cloudflare.com/workers/learning/how-kv-works\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
1344
+ "items": {
1345
+ "additionalProperties": false,
1346
+ "properties": {
1347
+ "binding": {
1348
+ "description": "The binding name used to refer to the KV Namespace",
1349
+ "type": "string"
1350
+ },
1351
+ "id": {
1352
+ "description": "The ID of the KV namespace",
1353
+ "type": "string"
1354
+ },
1355
+ "preview_id": {
1356
+ "description": "The ID of the KV namespace used during `wrangler dev`",
1357
+ "type": "string"
1358
+ }
1359
+ },
1360
+ "required": [
1361
+ "binding",
1362
+ "id"
1363
+ ],
1364
+ "type": "object"
1365
+ },
1366
+ "type": "array"
1367
+ },
1368
+ "legacy_env": {
1369
+ "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.",
1370
+ "type": "boolean"
1371
+ },
1372
+ "limits": {
1373
+ "$ref": "#/definitions/UserLimits",
1374
+ "description": "Specify limits for runtime behavior. Only supported for the \"standard\" Usage Model"
1375
+ },
1376
+ "logfwdr": {
1377
+ "additionalProperties": false,
1378
+ "default": "`{bindings:[]}`",
1379
+ "description": "List of bindings that you will send to logfwdr",
1380
+ "properties": {
1381
+ "bindings": {
1382
+ "items": {
1383
+ "additionalProperties": false,
1384
+ "properties": {
1385
+ "destination": {
1386
+ "description": "The destination for this logged message",
1387
+ "type": "string"
1388
+ },
1389
+ "name": {
1390
+ "description": "The binding name used to refer to logfwdr",
1391
+ "type": "string"
1392
+ }
1393
+ },
1394
+ "required": [
1395
+ "name",
1396
+ "destination"
1397
+ ],
1398
+ "type": "object"
1399
+ },
1400
+ "type": "array"
1401
+ }
1402
+ },
1403
+ "required": [
1404
+ "bindings"
1405
+ ],
1406
+ "type": "object"
1407
+ },
1408
+ "logpush": {
1409
+ "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/",
1410
+ "type": "boolean"
1411
+ },
1412
+ "main": {
1413
+ "description": "The entrypoint/path to the JavaScript file that will be executed.",
1414
+ "type": "string"
1415
+ },
1416
+ "migrations": {
1417
+ "default": [],
1418
+ "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",
1419
+ "items": {
1420
+ "additionalProperties": false,
1421
+ "properties": {
1422
+ "deleted_classes": {
1423
+ "description": "The Durable Objects being removed.",
1424
+ "items": {
1425
+ "type": "string"
1426
+ },
1427
+ "type": "array"
1428
+ },
1429
+ "new_classes": {
1430
+ "description": "The new Durable Objects being defined.",
1431
+ "items": {
1432
+ "type": "string"
1433
+ },
1434
+ "type": "array"
1435
+ },
1436
+ "renamed_classes": {
1437
+ "description": "The Durable Objects being renamed.",
1438
+ "items": {
1439
+ "additionalProperties": false,
1440
+ "properties": {
1441
+ "from": {
1442
+ "type": "string"
1443
+ },
1444
+ "to": {
1445
+ "type": "string"
1446
+ }
1447
+ },
1448
+ "required": [
1449
+ "from",
1450
+ "to"
1451
+ ],
1452
+ "type": "object"
1453
+ },
1454
+ "type": "array"
1455
+ },
1456
+ "tag": {
1457
+ "description": "A unique identifier for this migration.",
1458
+ "type": "string"
1459
+ }
1460
+ },
1461
+ "required": [
1462
+ "tag"
1463
+ ],
1464
+ "type": "object"
1465
+ },
1466
+ "type": "array"
1467
+ },
1468
+ "miniflare": {
1469
+ "deprecated": true,
1470
+ "description": "Configuration only used by a standalone use of the miniflare binary."
1471
+ },
1472
+ "minify": {
1473
+ "description": "Minify the script before uploading.",
1474
+ "type": "boolean"
1475
+ },
1476
+ "mtls_certificates": {
1477
+ "default": "`[]`",
1478
+ "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.",
1479
+ "items": {
1480
+ "additionalProperties": false,
1481
+ "properties": {
1482
+ "binding": {
1483
+ "description": "The binding name used to refer to the certificate in the Worker",
1484
+ "type": "string"
1485
+ },
1486
+ "certificate_id": {
1487
+ "description": "The uuid of the uploaded mTLS certificate",
1488
+ "type": "string"
1489
+ }
1490
+ },
1491
+ "required": [
1492
+ "binding",
1493
+ "certificate_id"
1494
+ ],
1495
+ "type": "object"
1496
+ },
1497
+ "type": "array"
1498
+ },
1499
+ "name": {
1500
+ "description": "The name of your Worker. Alphanumeric + dashes only.",
1501
+ "type": "string"
1502
+ },
1503
+ "no_bundle": {
1504
+ "description": "Skip internal build steps and directly deploy script",
1505
+ "type": "boolean"
1506
+ },
1507
+ "node_compat": {
1508
+ "description": "Add polyfills for node builtin modules and globals",
1509
+ "type": "boolean"
1510
+ },
1511
+ "pages_build_output_dir": {
1512
+ "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.",
1513
+ "type": "string"
1514
+ },
1515
+ "placement": {
1516
+ "additionalProperties": false,
1517
+ "description": "Specify how the Worker should be located to minimize round-trip time.\n\nMore details: https://developers.cloudflare.com/workers/platform/smart-placement/",
1518
+ "properties": {
1519
+ "mode": {
1520
+ "enum": [
1521
+ "off",
1522
+ "smart"
1523
+ ],
1524
+ "type": "string"
1525
+ }
1526
+ },
1527
+ "required": [
1528
+ "mode"
1529
+ ],
1530
+ "type": "object"
1531
+ },
1532
+ "preserve_file_names": {
1533
+ "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`.",
1534
+ "type": "boolean"
1535
+ },
1536
+ "queues": {
1537
+ "additionalProperties": false,
1538
+ "default": "`{consumers:[],producers:[]}`",
1539
+ "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.",
1540
+ "properties": {
1541
+ "consumers": {
1542
+ "description": "Consumer configuration",
1543
+ "items": {
1544
+ "additionalProperties": false,
1545
+ "properties": {
1546
+ "dead_letter_queue": {
1547
+ "description": "The queue to send messages that failed to be consumed.",
1548
+ "type": "string"
1549
+ },
1550
+ "max_batch_size": {
1551
+ "description": "The maximum number of messages per batch",
1552
+ "type": "number"
1553
+ },
1554
+ "max_batch_timeout": {
1555
+ "description": "The maximum number of seconds to wait to fill a batch with messages.",
1556
+ "type": "number"
1557
+ },
1558
+ "max_concurrency": {
1559
+ "description": "The maximum number of concurrent consumer Worker invocations. Leaving this unset will allow your consumer to scale to the maximum concurrency needed to keep up with the message backlog.",
1560
+ "type": [
1561
+ "number",
1562
+ "null"
1563
+ ]
1564
+ },
1565
+ "max_retries": {
1566
+ "description": "The maximum number of retries for each message.",
1567
+ "type": "number"
1568
+ },
1569
+ "queue": {
1570
+ "description": "The name of the queue from which this consumer should consume.",
1571
+ "type": "string"
1572
+ },
1573
+ "retry_delay": {
1574
+ "description": "The number of seconds to wait before retrying a message",
1575
+ "type": "number"
1576
+ },
1577
+ "type": {
1578
+ "description": "The consumer type, e.g., worker, http-pull, r2-bucket, etc. Default is worker.",
1579
+ "type": "string"
1580
+ },
1581
+ "visibility_timeout_ms": {
1582
+ "description": "The number of milliseconds to wait for pulled messages to become visible again",
1583
+ "type": "number"
1584
+ }
1585
+ },
1586
+ "required": [
1587
+ "queue"
1588
+ ],
1589
+ "type": "object"
1590
+ },
1591
+ "type": "array"
1592
+ },
1593
+ "producers": {
1594
+ "description": "Producer bindings",
1595
+ "items": {
1596
+ "additionalProperties": false,
1597
+ "properties": {
1598
+ "binding": {
1599
+ "description": "The binding name used to refer to the Queue in the Worker.",
1600
+ "type": "string"
1601
+ },
1602
+ "delivery_delay": {
1603
+ "description": "The number of seconds to wait before delivering a message",
1604
+ "type": "number"
1605
+ },
1606
+ "queue": {
1607
+ "description": "The name of this Queue.",
1608
+ "type": "string"
1609
+ }
1610
+ },
1611
+ "required": [
1612
+ "binding",
1613
+ "queue"
1614
+ ],
1615
+ "type": "object"
1616
+ },
1617
+ "type": "array"
1618
+ }
1619
+ },
1620
+ "type": "object"
1621
+ },
1622
+ "r2_buckets": {
1623
+ "default": "`[]`",
1624
+ "description": "Specifies R2 buckets 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.",
1625
+ "items": {
1626
+ "additionalProperties": false,
1627
+ "properties": {
1628
+ "binding": {
1629
+ "description": "The binding name used to refer to the R2 bucket in the Worker.",
1630
+ "type": "string"
1631
+ },
1632
+ "bucket_name": {
1633
+ "description": "The name of this R2 bucket at the edge.",
1634
+ "type": "string"
1635
+ },
1636
+ "jurisdiction": {
1637
+ "description": "The jurisdiction that the bucket exists in. Default if not present.",
1638
+ "type": "string"
1639
+ },
1640
+ "preview_bucket_name": {
1641
+ "description": "The preview name of this R2 bucket at the edge.",
1642
+ "type": "string"
1643
+ }
1644
+ },
1645
+ "required": [
1646
+ "binding",
1647
+ "bucket_name"
1648
+ ],
1649
+ "type": "object"
1650
+ },
1651
+ "type": "array"
1652
+ },
1653
+ "route": {
1654
+ "$ref": "#/definitions/Route",
1655
+ "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"
1656
+ },
1657
+ "routes": {
1658
+ "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`)",
1659
+ "items": {
1660
+ "$ref": "#/definitions/Route"
1661
+ },
1662
+ "type": "array"
1663
+ },
1664
+ "rules": {
1665
+ "description": "An ordered list of rules that define which modules to import, and what type to import them as. You will need to specify rules to use Text, Data, and CompiledWasm modules, or when you wish to have a .js file be treated as an ESModule instead of CommonJS.",
1666
+ "items": {
1667
+ "$ref": "#/definitions/Rule"
1668
+ },
1669
+ "type": "array"
1670
+ },
1671
+ "send_email": {
1672
+ "default": "`[]`",
1673
+ "description": "These specify bindings to send email from inside your Worker.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
1674
+ "items": {
1675
+ "additionalProperties": false,
1676
+ "properties": {
1677
+ "allowed_destination_addresses": {
1678
+ "description": "If this binding should be restricted to a set of verified addresses",
1679
+ "items": {
1680
+ "type": "string"
1681
+ },
1682
+ "type": "array"
1683
+ },
1684
+ "destination_address": {
1685
+ "description": "If this binding should be restricted to a specific verified address",
1686
+ "type": "string"
1687
+ },
1688
+ "name": {
1689
+ "description": "The binding name used to refer to the this binding",
1690
+ "type": "string"
1691
+ }
1692
+ },
1693
+ "required": [
1694
+ "name"
1695
+ ],
1696
+ "type": "object"
1697
+ },
1698
+ "type": "array"
1699
+ },
1700
+ "send_metrics": {
1701
+ "description": "Whether Wrangler should send usage metrics to Cloudflare for this project.\n\nWhen defined this will override any user settings. Otherwise, Wrangler will use the user's preference.",
1702
+ "type": "boolean"
1703
+ },
1704
+ "services": {
1705
+ "default": "`[]`",
1706
+ "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.",
1707
+ "items": {
1708
+ "additionalProperties": false,
1709
+ "properties": {
1710
+ "binding": {
1711
+ "description": "The binding name used to refer to the bound service.",
1712
+ "type": "string"
1713
+ },
1714
+ "entrypoint": {
1715
+ "description": "Optionally, the entrypoint (named export) of the service to bind to.",
1716
+ "type": "string"
1717
+ },
1718
+ "environment": {
1719
+ "description": "The environment of the service (e.g. production, staging, etc).",
1720
+ "type": "string"
1721
+ },
1722
+ "service": {
1723
+ "description": "The name of the service.",
1724
+ "type": "string"
1725
+ }
1726
+ },
1727
+ "required": [
1728
+ "binding",
1729
+ "service"
1730
+ ],
1731
+ "type": "object"
1732
+ },
1733
+ "type": "array"
1734
+ },
1735
+ "site": {
1736
+ "additionalProperties": false,
1737
+ "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",
1738
+ "properties": {
1739
+ "bucket": {
1740
+ "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.",
1741
+ "type": "string"
1742
+ },
1743
+ "entry-point": {
1744
+ "deprecated": "DO NOT use this (it's a holdover from Wrangler v1.x). Either use the top level `main` field, or pass the path to your entry file as a command line argument.",
1745
+ "description": "The location of your Worker script.",
1746
+ "type": "string"
1747
+ },
1748
+ "exclude": {
1749
+ "default": [],
1750
+ "description": "A list of .gitignore-style patterns that match files or directories in your bucket that should be excluded from uploads. Example: exclude = [\"ignore_dir\"]",
1751
+ "items": {
1752
+ "type": "string"
1753
+ },
1754
+ "type": "array"
1755
+ },
1756
+ "include": {
1757
+ "default": [],
1758
+ "description": "An exclusive list of .gitignore-style patterns that match file or directory names from your bucket location. Only matched items will be uploaded. Example: include = [\"upload_dir\"]",
1759
+ "items": {
1760
+ "type": "string"
1761
+ },
1762
+ "type": "array"
1763
+ }
1764
+ },
1765
+ "required": [
1766
+ "bucket"
1767
+ ],
1768
+ "type": "object"
1769
+ },
1770
+ "tail_consumers": {
1771
+ "default": "`[]`",
1772
+ "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.",
1773
+ "items": {
1774
+ "$ref": "#/definitions/TailConsumer"
1775
+ },
1776
+ "type": "array"
1777
+ },
1778
+ "text_blobs": {
1779
+ "additionalProperties": {
1780
+ "type": "string"
1781
+ },
1782
+ "description": "A list of text files that your worker should be bound to. This is the \"legacy\" way of binding to a text file. ES module workers should do proper module imports.",
1783
+ "type": "object"
1784
+ },
1785
+ "triggers": {
1786
+ "additionalProperties": false,
1787
+ "default": "`{crons:[]}`",
1788
+ "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",
1789
+ "properties": {
1790
+ "crons": {
1791
+ "items": {
1792
+ "type": "string"
1793
+ },
1794
+ "type": "array"
1795
+ }
1796
+ },
1797
+ "required": [
1798
+ "crons"
1799
+ ],
1800
+ "type": "object"
1801
+ },
1802
+ "tsconfig": {
1803
+ "description": "Path to a custom tsconfig",
1804
+ "type": "string"
1805
+ },
1806
+ "type": {
1807
+ "deprecated": "DO NOT USE THIS. Most common features now work out of the box with wrangler, including modules, jsx, typescript, etc. If you need anything more, use a custom build.",
1808
+ "description": "The project \"type\". A holdover from Wrangler v1.x. Valid values were \"webpack\", \"javascript\", and \"rust\".",
1809
+ "enum": [
1810
+ "webpack",
1811
+ "javascript",
1812
+ "rust"
1813
+ ],
1814
+ "type": "string"
1815
+ },
1816
+ "unsafe": {
1817
+ "additionalProperties": false,
1818
+ "default": "`{}`",
1819
+ "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.",
1820
+ "properties": {
1821
+ "bindings": {
1822
+ "description": "A set of bindings that should be put into a Worker's upload metadata without changes. These can be used to implement bindings for features that haven't released and aren't supported directly by wrangler or miniflare.",
1823
+ "items": {
1824
+ "additionalProperties": {},
1825
+ "properties": {
1826
+ "name": {
1827
+ "type": "string"
1828
+ },
1829
+ "type": {
1830
+ "type": "string"
1831
+ }
1832
+ },
1833
+ "required": [
1834
+ "name",
1835
+ "type"
1836
+ ],
1837
+ "type": "object"
1838
+ },
1839
+ "type": "array"
1840
+ },
1841
+ "capnp": {
1842
+ "anyOf": [
1843
+ {
1844
+ "additionalProperties": false,
1845
+ "properties": {
1846
+ "base_path": {
1847
+ "type": "string"
1848
+ },
1849
+ "source_schemas": {
1850
+ "items": {
1851
+ "type": "string"
1852
+ },
1853
+ "type": "array"
1854
+ }
1855
+ },
1856
+ "required": [
1857
+ "base_path",
1858
+ "source_schemas"
1859
+ ],
1860
+ "type": "object"
1861
+ },
1862
+ {
1863
+ "additionalProperties": false,
1864
+ "properties": {
1865
+ "compiled_schema": {
1866
+ "type": "string"
1867
+ }
1868
+ },
1869
+ "required": [
1870
+ "compiled_schema"
1871
+ ],
1872
+ "type": "object"
1873
+ }
1874
+ ],
1875
+ "description": "Used for internal capnp uploads for the Workers runtime"
1876
+ },
1877
+ "metadata": {
1878
+ "additionalProperties": {},
1879
+ "description": "Arbitrary key/value pairs that will be included in the uploaded metadata. Values specified here will always be applied to metadata last, so can add new or override existing fields.",
1880
+ "type": "object"
1881
+ }
1882
+ },
1883
+ "type": "object"
1884
+ },
1885
+ "upload_source_maps": {
1886
+ "description": "Include source maps when uploading this worker.",
1887
+ "type": "boolean"
1888
+ },
1889
+ "usage_model": {
1890
+ "description": "Specifies the Usage Model for your Worker. There are two options - [bundled](https://developers.cloudflare.com/workers/platform/limits#bundled-usage-model) and [unbound](https://developers.cloudflare.com/workers/platform/limits#unbound-usage-model). For newly created Workers, if the Usage Model is omitted it will be set to the [default Usage Model set on the account](https://dash.cloudflare.com/?account=workers/default-usage-model). For existing Workers, if the Usage Model is omitted, it will be set to the Usage Model configured in the dashboard for that Worker.",
1891
+ "enum": [
1892
+ "bundled",
1893
+ "unbound"
1894
+ ],
1895
+ "type": "string"
1896
+ },
1897
+ "vars": {
1898
+ "additionalProperties": {
1899
+ "anyOf": [
1900
+ {
1901
+ "type": "string"
1902
+ },
1903
+ {
1904
+ "$ref": "#/definitions/Json"
1905
+ }
1906
+ ]
1907
+ },
1908
+ "default": "`{}`",
1909
+ "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.",
1910
+ "type": "object"
1911
+ },
1912
+ "vectorize": {
1913
+ "default": "`[]`",
1914
+ "description": "Specifies Vectorize indexes 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.",
1915
+ "items": {
1916
+ "additionalProperties": false,
1917
+ "properties": {
1918
+ "binding": {
1919
+ "description": "The binding name used to refer to the Vectorize index in the Worker.",
1920
+ "type": "string"
1921
+ },
1922
+ "index_name": {
1923
+ "description": "The name of the index.",
1924
+ "type": "string"
1925
+ }
1926
+ },
1927
+ "required": [
1928
+ "binding",
1929
+ "index_name"
1930
+ ],
1931
+ "type": "object"
1932
+ },
1933
+ "type": "array"
1934
+ },
1935
+ "version_metadata": {
1936
+ "additionalProperties": false,
1937
+ "description": "Binding to the Worker Version's metadata",
1938
+ "properties": {
1939
+ "binding": {
1940
+ "type": "string"
1941
+ }
1942
+ },
1943
+ "required": [
1944
+ "binding"
1945
+ ],
1946
+ "type": "object"
1947
+ },
1948
+ "wasm_modules": {
1949
+ "additionalProperties": {
1950
+ "type": "string"
1951
+ },
1952
+ "description": "A list of wasm modules that your worker should be bound to. This is the \"legacy\" way of binding to a wasm module. ES module workers should do proper module imports.",
1953
+ "type": "object"
1954
+ },
1955
+ "webpack_config": {
1956
+ "deprecated": "DO NOT USE THIS. Most common features now work out of the box with wrangler, including modules, jsx, typescript, etc. If you need anything more, use a custom build.",
1957
+ "description": "Path to the webpack config to use when building your worker. A holdover from Wrangler v1.x, used with `type: \"webpack\"`.",
1958
+ "type": "string"
1959
+ },
1960
+ "workers_dev": {
1961
+ "default": "`true` (This is a breaking change from Wrangler v1)",
1962
+ "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",
1963
+ "type": "boolean"
1964
+ },
1965
+ "zone_id": {
1966
+ "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.",
1967
+ "type": "string"
1968
+ }
1969
+ },
1970
+ "type": "object"
1971
+ },
1972
+ "RawDevConfig": {
1973
+ "additionalProperties": false,
1974
+ "properties": {
1975
+ "host": {
1976
+ "description": "Host to forward requests to, defaults to the host of the first route of project",
1977
+ "type": "string"
1978
+ },
1979
+ "inspector_port": {
1980
+ "default": 9229,
1981
+ "description": "Port for the local dev server's inspector to listen on",
1982
+ "type": "number"
1983
+ },
1984
+ "ip": {
1985
+ "default": "localhost",
1986
+ "description": "IP address for the local dev server to listen on,",
1987
+ "type": "string"
1988
+ },
1989
+ "local_protocol": {
1990
+ "default": "http",
1991
+ "description": "Protocol that local wrangler dev server listens to requests on.",
1992
+ "enum": [
1993
+ "http",
1994
+ "https"
1995
+ ],
1996
+ "type": "string"
1997
+ },
1998
+ "port": {
1999
+ "default": 8787,
2000
+ "description": "Port for the local dev server to listen on",
2001
+ "type": "number"
2002
+ },
2003
+ "upstream_protocol": {
2004
+ "default": "https",
2005
+ "description": "Protocol that wrangler dev forwards requests on\n\nSetting this to `http` is not currently implemented for remote mode. See https://github.com/cloudflare/workers-sdk/issues/583",
2006
+ "enum": [
2007
+ "https",
2008
+ "http"
2009
+ ],
2010
+ "type": "string"
2011
+ }
2012
+ },
2013
+ "type": "object"
2014
+ },
2015
+ "RawEnvironment": {
2016
+ "additionalProperties": false,
2017
+ "description": "The raw environment configuration that we read from the config file.\n\nAll the properties are optional, and will be replaced with defaults in the configuration that is used in the rest of the codebase.",
2018
+ "properties": {
2019
+ "account_id": {
2020
+ "description": "This is the ID of the account associated with your zone. You might have more than one account, so make sure to use the ID of the account associated with the zone/route you provide, if you provide one. It can also be specified through the CLOUDFLARE_ACCOUNT_ID environment variable.",
2021
+ "type": "string"
2022
+ },
2023
+ "ai": {
2024
+ "additionalProperties": false,
2025
+ "default": "`{}`",
2026
+ "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.",
2027
+ "properties": {
2028
+ "binding": {
2029
+ "type": "string"
2030
+ },
2031
+ "staging": {
2032
+ "type": "boolean"
2033
+ }
2034
+ },
2035
+ "required": [
2036
+ "binding"
2037
+ ],
2038
+ "type": "object"
2039
+ },
2040
+ "analytics_engine_datasets": {
2041
+ "default": "`[]`",
2042
+ "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.",
2043
+ "items": {
2044
+ "additionalProperties": false,
2045
+ "properties": {
2046
+ "binding": {
2047
+ "description": "The binding name used to refer to the dataset in the Worker.",
2048
+ "type": "string"
2049
+ },
2050
+ "dataset": {
2051
+ "description": "The name of this dataset to write to.",
2052
+ "type": "string"
2053
+ }
2054
+ },
2055
+ "required": [
2056
+ "binding"
2057
+ ],
2058
+ "type": "object"
2059
+ },
2060
+ "type": "array"
2061
+ },
2062
+ "base_dir": {
2063
+ "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.",
2064
+ "type": "string"
2065
+ },
2066
+ "browser": {
2067
+ "additionalProperties": false,
2068
+ "default": "`{}`",
2069
+ "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.",
2070
+ "properties": {
2071
+ "binding": {
2072
+ "type": "string"
2073
+ }
2074
+ },
2075
+ "required": [
2076
+ "binding"
2077
+ ],
2078
+ "type": "object"
2079
+ },
2080
+ "build": {
2081
+ "additionalProperties": false,
2082
+ "default": {
2083
+ "watch_dir": "./src"
2084
+ },
2085
+ "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.",
2086
+ "properties": {
2087
+ "command": {
2088
+ "description": "The command used to build your Worker. On Linux and macOS, the command is executed in the `sh` shell and the `cmd` shell for Windows. The `&&` and `||` shell operators may be used.",
2089
+ "type": "string"
2090
+ },
2091
+ "cwd": {
2092
+ "description": "The directory in which the command is executed.",
2093
+ "type": "string"
2094
+ },
2095
+ "upload": {
2096
+ "$ref": "#/definitions/DeprecatedUpload",
2097
+ "deprecated": true,
2098
+ "description": "Deprecated field previously used to configure the build and upload of the script."
2099
+ },
2100
+ "watch_dir": {
2101
+ "anyOf": [
2102
+ {
2103
+ "type": "string"
2104
+ },
2105
+ {
2106
+ "items": {
2107
+ "type": "string"
2108
+ },
2109
+ "type": "array"
2110
+ }
2111
+ ],
2112
+ "description": "The directory to watch for changes while using wrangler dev, defaults to the current working directory"
2113
+ }
2114
+ },
2115
+ "type": "object"
2116
+ },
2117
+ "cloudchamber": {
2118
+ "$ref": "#/definitions/CloudchamberConfig",
2119
+ "default": "`{}`",
2120
+ "description": "Cloudchamber configuration\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment."
2121
+ },
2122
+ "compatibility_date": {
2123
+ "description": "A date in the form yyyy-mm-dd, which will be used to determine which version of the Workers runtime is used.\n\nMore details at https://developers.cloudflare.com/workers/platform/compatibility-dates",
2124
+ "type": "string"
2125
+ },
2126
+ "compatibility_flags": {
2127
+ "default": "`[]`",
2128
+ "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",
2129
+ "items": {
2130
+ "type": "string"
2131
+ },
2132
+ "type": "array"
2133
+ },
2134
+ "constellation": {
2135
+ "default": "`[]`",
2136
+ "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.",
2137
+ "items": {
2138
+ "additionalProperties": false,
2139
+ "properties": {
2140
+ "binding": {
2141
+ "description": "The binding name used to refer to the project in the Worker.",
2142
+ "type": "string"
2143
+ },
2144
+ "project_id": {
2145
+ "description": "The id of the project.",
2146
+ "type": "string"
2147
+ }
2148
+ },
2149
+ "required": [
2150
+ "binding",
2151
+ "project_id"
2152
+ ],
2153
+ "type": "object"
2154
+ },
2155
+ "type": "array"
2156
+ },
2157
+ "d1_databases": {
2158
+ "default": "`[]`",
2159
+ "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.",
2160
+ "items": {
2161
+ "additionalProperties": false,
2162
+ "properties": {
2163
+ "binding": {
2164
+ "description": "The binding name used to refer to the D1 database in the Worker.",
2165
+ "type": "string"
2166
+ },
2167
+ "database_id": {
2168
+ "description": "The UUID of this D1 database (not required).",
2169
+ "type": "string"
2170
+ },
2171
+ "database_internal_env": {
2172
+ "description": "Internal use only.",
2173
+ "type": "string"
2174
+ },
2175
+ "database_name": {
2176
+ "description": "The name of this D1 database.",
2177
+ "type": "string"
2178
+ },
2179
+ "migrations_dir": {
2180
+ "description": "The path to the directory of migrations for this D1 database (defaults to './migrations').",
2181
+ "type": "string"
2182
+ },
2183
+ "migrations_table": {
2184
+ "description": "The name of the migrations table for this D1 database (defaults to 'd1_migrations').",
2185
+ "type": "string"
2186
+ },
2187
+ "preview_database_id": {
2188
+ "description": "The UUID of this D1 database for Wrangler Dev (if specified).",
2189
+ "type": "string"
2190
+ }
2191
+ },
2192
+ "required": [
2193
+ "binding",
2194
+ "database_name",
2195
+ "database_id"
2196
+ ],
2197
+ "type": "object"
2198
+ },
2199
+ "type": "array"
2200
+ },
2201
+ "define": {
2202
+ "additionalProperties": {
2203
+ "type": "string"
2204
+ },
2205
+ "default": "`{}`",
2206
+ "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.",
2207
+ "type": "object"
2208
+ },
2209
+ "dispatch_namespaces": {
2210
+ "default": "`[]`",
2211
+ "description": "Specifies namespace bindings 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.",
2212
+ "items": {
2213
+ "additionalProperties": false,
2214
+ "properties": {
2215
+ "binding": {
2216
+ "description": "The binding name used to refer to the bound service.",
2217
+ "type": "string"
2218
+ },
2219
+ "namespace": {
2220
+ "description": "The namespace to bind to.",
2221
+ "type": "string"
2222
+ },
2223
+ "outbound": {
2224
+ "$ref": "#/definitions/DispatchNamespaceOutbound",
2225
+ "description": "Details about the outbound Worker which will handle outbound requests from your namespace"
2226
+ }
2227
+ },
2228
+ "required": [
2229
+ "binding",
2230
+ "namespace"
2231
+ ],
2232
+ "type": "object"
2233
+ },
2234
+ "type": "array"
2235
+ },
2236
+ "durable_objects": {
2237
+ "additionalProperties": false,
2238
+ "default": "`{bindings:[]}`",
2239
+ "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.",
2240
+ "properties": {
2241
+ "bindings": {
2242
+ "$ref": "#/definitions/DurableObjectBindings"
2243
+ }
2244
+ },
2245
+ "required": [
2246
+ "bindings"
2247
+ ],
2248
+ "type": "object"
2249
+ },
2250
+ "experimental_services": {
2251
+ "default": "`[]`",
2252
+ "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.",
2253
+ "description": "A list of services that your Worker should be bound to.",
2254
+ "items": {
2255
+ "additionalProperties": false,
2256
+ "properties": {
2257
+ "environment": {
2258
+ "description": "The Service's environment",
2259
+ "type": "string"
2260
+ },
2261
+ "name": {
2262
+ "description": "The binding name used to refer to the Service",
2263
+ "type": "string"
2264
+ },
2265
+ "service": {
2266
+ "description": "The name of the Service being bound",
2267
+ "type": "string"
2268
+ }
2269
+ },
2270
+ "required": [
2271
+ "name",
2272
+ "service",
2273
+ "environment"
2274
+ ],
2275
+ "type": "object"
2276
+ },
2277
+ "type": "array"
2278
+ },
2279
+ "find_additional_modules": {
2280
+ "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.",
2281
+ "type": "boolean"
2282
+ },
2283
+ "first_party_worker": {
2284
+ "description": "Designates this Worker as an internal-only \"first-party\" Worker.",
2285
+ "type": "boolean"
2286
+ },
2287
+ "hyperdrive": {
2288
+ "default": "`[]`",
2289
+ "description": "Specifies Hyperdrive configs 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.",
2290
+ "items": {
2291
+ "additionalProperties": false,
2292
+ "properties": {
2293
+ "binding": {
2294
+ "description": "The binding name used to refer to the project in the Worker.",
2295
+ "type": "string"
2296
+ },
2297
+ "id": {
2298
+ "description": "The id of the database.",
2299
+ "type": "string"
2300
+ },
2301
+ "localConnectionString": {
2302
+ "description": "The local database connection string for `wrangler dev`",
2303
+ "type": "string"
2304
+ }
2305
+ },
2306
+ "required": [
2307
+ "binding",
2308
+ "id"
2309
+ ],
2310
+ "type": "object"
2311
+ },
2312
+ "type": "array"
2313
+ },
2314
+ "jsx_factory": {
2315
+ "default": "`\"React.createElement\"`",
2316
+ "description": "The function to use to replace jsx syntax.",
2317
+ "type": "string"
2318
+ },
2319
+ "jsx_fragment": {
2320
+ "default": "`\"React.Fragment\"`",
2321
+ "description": "The function to use to replace jsx fragment syntax.",
2322
+ "type": "string"
2323
+ },
2324
+ "kv-namespaces": {
2325
+ "deprecated": "DO NOT USE. This was a legacy bug from Wrangler v1, that we do not want to support.",
2326
+ "description": "Legacy way of defining KVNamespaces that is no longer supported.",
2327
+ "type": "string"
2328
+ },
2329
+ "kv_namespaces": {
2330
+ "default": "`[]`",
2331
+ "description": "These specify any Workers KV Namespaces you want to access from inside your Worker.\n\nTo learn more about KV Namespaces, see the documentation at https://developers.cloudflare.com/workers/learning/how-kv-works\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
2332
+ "items": {
2333
+ "additionalProperties": false,
2334
+ "properties": {
2335
+ "binding": {
2336
+ "description": "The binding name used to refer to the KV Namespace",
2337
+ "type": "string"
2338
+ },
2339
+ "id": {
2340
+ "description": "The ID of the KV namespace",
2341
+ "type": "string"
2342
+ },
2343
+ "preview_id": {
2344
+ "description": "The ID of the KV namespace used during `wrangler dev`",
2345
+ "type": "string"
2346
+ }
2347
+ },
2348
+ "required": [
2349
+ "binding",
2350
+ "id"
2351
+ ],
2352
+ "type": "object"
2353
+ },
2354
+ "type": "array"
2355
+ },
2356
+ "limits": {
2357
+ "$ref": "#/definitions/UserLimits",
2358
+ "description": "Specify limits for runtime behavior. Only supported for the \"standard\" Usage Model"
2359
+ },
2360
+ "logfwdr": {
2361
+ "additionalProperties": false,
2362
+ "default": "`{bindings:[]}`",
2363
+ "description": "List of bindings that you will send to logfwdr",
2364
+ "properties": {
2365
+ "bindings": {
2366
+ "items": {
2367
+ "additionalProperties": false,
2368
+ "properties": {
2369
+ "destination": {
2370
+ "description": "The destination for this logged message",
2371
+ "type": "string"
2372
+ },
2373
+ "name": {
2374
+ "description": "The binding name used to refer to logfwdr",
2375
+ "type": "string"
2376
+ }
2377
+ },
2378
+ "required": [
2379
+ "name",
2380
+ "destination"
2381
+ ],
2382
+ "type": "object"
2383
+ },
2384
+ "type": "array"
2385
+ }
2386
+ },
2387
+ "required": [
2388
+ "bindings"
2389
+ ],
2390
+ "type": "object"
2391
+ },
2392
+ "logpush": {
2393
+ "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/",
2394
+ "type": "boolean"
2395
+ },
2396
+ "main": {
2397
+ "description": "The entrypoint/path to the JavaScript file that will be executed.",
2398
+ "type": "string"
2399
+ },
2400
+ "minify": {
2401
+ "description": "Minify the script before uploading.",
2402
+ "type": "boolean"
2403
+ },
2404
+ "mtls_certificates": {
2405
+ "default": "`[]`",
2406
+ "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.",
2407
+ "items": {
2408
+ "additionalProperties": false,
2409
+ "properties": {
2410
+ "binding": {
2411
+ "description": "The binding name used to refer to the certificate in the Worker",
2412
+ "type": "string"
2413
+ },
2414
+ "certificate_id": {
2415
+ "description": "The uuid of the uploaded mTLS certificate",
2416
+ "type": "string"
2417
+ }
2418
+ },
2419
+ "required": [
2420
+ "binding",
2421
+ "certificate_id"
2422
+ ],
2423
+ "type": "object"
2424
+ },
2425
+ "type": "array"
2426
+ },
2427
+ "name": {
2428
+ "description": "The name of your Worker. Alphanumeric + dashes only.",
2429
+ "type": "string"
2430
+ },
2431
+ "no_bundle": {
2432
+ "description": "Skip internal build steps and directly deploy script",
2433
+ "type": "boolean"
2434
+ },
2435
+ "node_compat": {
2436
+ "description": "Add polyfills for node builtin modules and globals",
2437
+ "type": "boolean"
2438
+ },
2439
+ "placement": {
2440
+ "additionalProperties": false,
2441
+ "description": "Specify how the Worker should be located to minimize round-trip time.\n\nMore details: https://developers.cloudflare.com/workers/platform/smart-placement/",
2442
+ "properties": {
2443
+ "mode": {
2444
+ "enum": [
2445
+ "off",
2446
+ "smart"
2447
+ ],
2448
+ "type": "string"
2449
+ }
2450
+ },
2451
+ "required": [
2452
+ "mode"
2453
+ ],
2454
+ "type": "object"
2455
+ },
2456
+ "preserve_file_names": {
2457
+ "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`.",
2458
+ "type": "boolean"
2459
+ },
2460
+ "queues": {
2461
+ "additionalProperties": false,
2462
+ "default": "`{consumers:[],producers:[]}`",
2463
+ "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.",
2464
+ "properties": {
2465
+ "consumers": {
2466
+ "description": "Consumer configuration",
2467
+ "items": {
2468
+ "additionalProperties": false,
2469
+ "properties": {
2470
+ "dead_letter_queue": {
2471
+ "description": "The queue to send messages that failed to be consumed.",
2472
+ "type": "string"
2473
+ },
2474
+ "max_batch_size": {
2475
+ "description": "The maximum number of messages per batch",
2476
+ "type": "number"
2477
+ },
2478
+ "max_batch_timeout": {
2479
+ "description": "The maximum number of seconds to wait to fill a batch with messages.",
2480
+ "type": "number"
2481
+ },
2482
+ "max_concurrency": {
2483
+ "description": "The maximum number of concurrent consumer Worker invocations. Leaving this unset will allow your consumer to scale to the maximum concurrency needed to keep up with the message backlog.",
2484
+ "type": [
2485
+ "number",
2486
+ "null"
2487
+ ]
2488
+ },
2489
+ "max_retries": {
2490
+ "description": "The maximum number of retries for each message.",
2491
+ "type": "number"
2492
+ },
2493
+ "queue": {
2494
+ "description": "The name of the queue from which this consumer should consume.",
2495
+ "type": "string"
2496
+ },
2497
+ "retry_delay": {
2498
+ "description": "The number of seconds to wait before retrying a message",
2499
+ "type": "number"
2500
+ },
2501
+ "type": {
2502
+ "description": "The consumer type, e.g., worker, http-pull, r2-bucket, etc. Default is worker.",
2503
+ "type": "string"
2504
+ },
2505
+ "visibility_timeout_ms": {
2506
+ "description": "The number of milliseconds to wait for pulled messages to become visible again",
2507
+ "type": "number"
2508
+ }
2509
+ },
2510
+ "required": [
2511
+ "queue"
2512
+ ],
2513
+ "type": "object"
2514
+ },
2515
+ "type": "array"
2516
+ },
2517
+ "producers": {
2518
+ "description": "Producer bindings",
2519
+ "items": {
2520
+ "additionalProperties": false,
2521
+ "properties": {
2522
+ "binding": {
2523
+ "description": "The binding name used to refer to the Queue in the Worker.",
2524
+ "type": "string"
2525
+ },
2526
+ "delivery_delay": {
2527
+ "description": "The number of seconds to wait before delivering a message",
2528
+ "type": "number"
2529
+ },
2530
+ "queue": {
2531
+ "description": "The name of this Queue.",
2532
+ "type": "string"
2533
+ }
2534
+ },
2535
+ "required": [
2536
+ "binding",
2537
+ "queue"
2538
+ ],
2539
+ "type": "object"
2540
+ },
2541
+ "type": "array"
2542
+ }
2543
+ },
2544
+ "type": "object"
2545
+ },
2546
+ "r2_buckets": {
2547
+ "default": "`[]`",
2548
+ "description": "Specifies R2 buckets 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.",
2549
+ "items": {
2550
+ "additionalProperties": false,
2551
+ "properties": {
2552
+ "binding": {
2553
+ "description": "The binding name used to refer to the R2 bucket in the Worker.",
2554
+ "type": "string"
2555
+ },
2556
+ "bucket_name": {
2557
+ "description": "The name of this R2 bucket at the edge.",
2558
+ "type": "string"
2559
+ },
2560
+ "jurisdiction": {
2561
+ "description": "The jurisdiction that the bucket exists in. Default if not present.",
2562
+ "type": "string"
2563
+ },
2564
+ "preview_bucket_name": {
2565
+ "description": "The preview name of this R2 bucket at the edge.",
2566
+ "type": "string"
2567
+ }
2568
+ },
2569
+ "required": [
2570
+ "binding",
2571
+ "bucket_name"
2572
+ ],
2573
+ "type": "object"
2574
+ },
2575
+ "type": "array"
2576
+ },
2577
+ "route": {
2578
+ "$ref": "#/definitions/Route",
2579
+ "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"
2580
+ },
2581
+ "routes": {
2582
+ "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`)",
2583
+ "items": {
2584
+ "$ref": "#/definitions/Route"
2585
+ },
2586
+ "type": "array"
2587
+ },
2588
+ "rules": {
2589
+ "description": "An ordered list of rules that define which modules to import, and what type to import them as. You will need to specify rules to use Text, Data, and CompiledWasm modules, or when you wish to have a .js file be treated as an ESModule instead of CommonJS.",
2590
+ "items": {
2591
+ "$ref": "#/definitions/Rule"
2592
+ },
2593
+ "type": "array"
2594
+ },
2595
+ "send_email": {
2596
+ "default": "`[]`",
2597
+ "description": "These specify bindings to send email from inside your Worker.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
2598
+ "items": {
2599
+ "additionalProperties": false,
2600
+ "properties": {
2601
+ "allowed_destination_addresses": {
2602
+ "description": "If this binding should be restricted to a set of verified addresses",
2603
+ "items": {
2604
+ "type": "string"
2605
+ },
2606
+ "type": "array"
2607
+ },
2608
+ "destination_address": {
2609
+ "description": "If this binding should be restricted to a specific verified address",
2610
+ "type": "string"
2611
+ },
2612
+ "name": {
2613
+ "description": "The binding name used to refer to the this binding",
2614
+ "type": "string"
2615
+ }
2616
+ },
2617
+ "required": [
2618
+ "name"
2619
+ ],
2620
+ "type": "object"
2621
+ },
2622
+ "type": "array"
2623
+ },
2624
+ "services": {
2625
+ "default": "`[]`",
2626
+ "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.",
2627
+ "items": {
2628
+ "additionalProperties": false,
2629
+ "properties": {
2630
+ "binding": {
2631
+ "description": "The binding name used to refer to the bound service.",
2632
+ "type": "string"
2633
+ },
2634
+ "entrypoint": {
2635
+ "description": "Optionally, the entrypoint (named export) of the service to bind to.",
2636
+ "type": "string"
2637
+ },
2638
+ "environment": {
2639
+ "description": "The environment of the service (e.g. production, staging, etc).",
2640
+ "type": "string"
2641
+ },
2642
+ "service": {
2643
+ "description": "The name of the service.",
2644
+ "type": "string"
2645
+ }
2646
+ },
2647
+ "required": [
2648
+ "binding",
2649
+ "service"
2650
+ ],
2651
+ "type": "object"
2652
+ },
2653
+ "type": "array"
2654
+ },
2655
+ "tail_consumers": {
2656
+ "default": "`[]`",
2657
+ "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.",
2658
+ "items": {
2659
+ "$ref": "#/definitions/TailConsumer"
2660
+ },
2661
+ "type": "array"
2662
+ },
2663
+ "triggers": {
2664
+ "additionalProperties": false,
2665
+ "default": "`{crons:[]}`",
2666
+ "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",
2667
+ "properties": {
2668
+ "crons": {
2669
+ "items": {
2670
+ "type": "string"
2671
+ },
2672
+ "type": "array"
2673
+ }
2674
+ },
2675
+ "required": [
2676
+ "crons"
2677
+ ],
2678
+ "type": "object"
2679
+ },
2680
+ "tsconfig": {
2681
+ "description": "Path to a custom tsconfig",
2682
+ "type": "string"
2683
+ },
2684
+ "unsafe": {
2685
+ "additionalProperties": false,
2686
+ "default": "`{}`",
2687
+ "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.",
2688
+ "properties": {
2689
+ "bindings": {
2690
+ "description": "A set of bindings that should be put into a Worker's upload metadata without changes. These can be used to implement bindings for features that haven't released and aren't supported directly by wrangler or miniflare.",
2691
+ "items": {
2692
+ "additionalProperties": {},
2693
+ "properties": {
2694
+ "name": {
2695
+ "type": "string"
2696
+ },
2697
+ "type": {
2698
+ "type": "string"
2699
+ }
2700
+ },
2701
+ "required": [
2702
+ "name",
2703
+ "type"
2704
+ ],
2705
+ "type": "object"
2706
+ },
2707
+ "type": "array"
2708
+ },
2709
+ "capnp": {
2710
+ "anyOf": [
2711
+ {
2712
+ "additionalProperties": false,
2713
+ "properties": {
2714
+ "base_path": {
2715
+ "type": "string"
2716
+ },
2717
+ "source_schemas": {
2718
+ "items": {
2719
+ "type": "string"
2720
+ },
2721
+ "type": "array"
2722
+ }
2723
+ },
2724
+ "required": [
2725
+ "base_path",
2726
+ "source_schemas"
2727
+ ],
2728
+ "type": "object"
2729
+ },
2730
+ {
2731
+ "additionalProperties": false,
2732
+ "properties": {
2733
+ "compiled_schema": {
2734
+ "type": "string"
2735
+ }
2736
+ },
2737
+ "required": [
2738
+ "compiled_schema"
2739
+ ],
2740
+ "type": "object"
2741
+ }
2742
+ ],
2743
+ "description": "Used for internal capnp uploads for the Workers runtime"
2744
+ },
2745
+ "metadata": {
2746
+ "additionalProperties": {},
2747
+ "description": "Arbitrary key/value pairs that will be included in the uploaded metadata. Values specified here will always be applied to metadata last, so can add new or override existing fields.",
2748
+ "type": "object"
2749
+ }
2750
+ },
2751
+ "type": "object"
2752
+ },
2753
+ "upload_source_maps": {
2754
+ "description": "Include source maps when uploading this worker.",
2755
+ "type": "boolean"
2756
+ },
2757
+ "usage_model": {
2758
+ "description": "Specifies the Usage Model for your Worker. There are two options - [bundled](https://developers.cloudflare.com/workers/platform/limits#bundled-usage-model) and [unbound](https://developers.cloudflare.com/workers/platform/limits#unbound-usage-model). For newly created Workers, if the Usage Model is omitted it will be set to the [default Usage Model set on the account](https://dash.cloudflare.com/?account=workers/default-usage-model). For existing Workers, if the Usage Model is omitted, it will be set to the Usage Model configured in the dashboard for that Worker.",
2759
+ "enum": [
2760
+ "bundled",
2761
+ "unbound"
2762
+ ],
2763
+ "type": "string"
2764
+ },
2765
+ "vars": {
2766
+ "additionalProperties": {
2767
+ "anyOf": [
2768
+ {
2769
+ "type": "string"
2770
+ },
2771
+ {
2772
+ "$ref": "#/definitions/Json"
2773
+ }
2774
+ ]
2775
+ },
2776
+ "default": "`{}`",
2777
+ "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.",
2778
+ "type": "object"
2779
+ },
2780
+ "vectorize": {
2781
+ "default": "`[]`",
2782
+ "description": "Specifies Vectorize indexes 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.",
2783
+ "items": {
2784
+ "additionalProperties": false,
2785
+ "properties": {
2786
+ "binding": {
2787
+ "description": "The binding name used to refer to the Vectorize index in the Worker.",
2788
+ "type": "string"
2789
+ },
2790
+ "index_name": {
2791
+ "description": "The name of the index.",
2792
+ "type": "string"
2793
+ }
2794
+ },
2795
+ "required": [
2796
+ "binding",
2797
+ "index_name"
2798
+ ],
2799
+ "type": "object"
2800
+ },
2801
+ "type": "array"
2802
+ },
2803
+ "version_metadata": {
2804
+ "additionalProperties": false,
2805
+ "description": "Binding to the Worker Version's metadata",
2806
+ "properties": {
2807
+ "binding": {
2808
+ "type": "string"
2809
+ }
2810
+ },
2811
+ "required": [
2812
+ "binding"
2813
+ ],
2814
+ "type": "object"
2815
+ },
2816
+ "workers_dev": {
2817
+ "default": "`true` (This is a breaking change from Wrangler v1)",
2818
+ "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",
2819
+ "type": "boolean"
2820
+ },
2821
+ "zone_id": {
2822
+ "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.",
2823
+ "type": "string"
2824
+ }
2825
+ },
2826
+ "type": "object"
2827
+ },
2828
+ "Route": {
2829
+ "anyOf": [
2830
+ {
2831
+ "$ref": "#/definitions/SimpleRoute"
2832
+ },
2833
+ {
2834
+ "$ref": "#/definitions/ZoneIdRoute"
2835
+ },
2836
+ {
2837
+ "$ref": "#/definitions/ZoneNameRoute"
2838
+ },
2839
+ {
2840
+ "$ref": "#/definitions/CustomDomainRoute"
2841
+ }
2842
+ ]
2843
+ },
2844
+ "Rule": {
2845
+ "additionalProperties": false,
2846
+ "description": "A bundling resolver rule, defining the modules type for paths that match the specified globs.",
2847
+ "properties": {
2848
+ "fallthrough": {
2849
+ "type": "boolean"
2850
+ },
2851
+ "globs": {
2852
+ "items": {
2853
+ "type": "string"
2854
+ },
2855
+ "type": "array"
2856
+ },
2857
+ "type": {
2858
+ "$ref": "#/definitions/ConfigModuleRuleType"
2859
+ }
2860
+ },
2861
+ "required": [
2862
+ "type",
2863
+ "globs"
2864
+ ],
2865
+ "type": "object"
2866
+ },
2867
+ "SimpleRoute": {
2868
+ "type": "string"
2869
+ },
2870
+ "TailConsumer": {
2871
+ "additionalProperties": false,
2872
+ "properties": {
2873
+ "environment": {
2874
+ "description": "(Optional) The environt of the service.",
2875
+ "type": "string"
2876
+ },
2877
+ "service": {
2878
+ "description": "The name of the service tail events will be forwarded to.",
2879
+ "type": "string"
2880
+ }
2881
+ },
2882
+ "required": [
2883
+ "service"
2884
+ ],
2885
+ "type": "object"
2886
+ },
2887
+ "TypeOf<ZodUnion<[def-class-1315922706-6501-8772-1315922706-0-54395,def-class-1315922706-9299-10989-1315922706-0-54395,def-class-1315922706-12937-13365-1315922706-0-54395,def-class-1315922706-15083-15273-1315922706-0-54395]>>": {
2888
+ "type": [
2889
+ "string",
2890
+ "number",
2891
+ "boolean",
2892
+ "null"
2893
+ ]
2894
+ },
2895
+ "UserLimits": {
2896
+ "additionalProperties": false,
2897
+ "properties": {
2898
+ "cpu_ms": {
2899
+ "description": "Maximum allowed CPU time for a Worker's invocation in milliseconds",
2900
+ "type": "number"
2901
+ }
2902
+ },
2903
+ "required": [
2904
+ "cpu_ms"
2905
+ ],
2906
+ "type": "object"
2907
+ },
2908
+ "ZoneIdRoute": {
2909
+ "additionalProperties": false,
2910
+ "properties": {
2911
+ "custom_domain": {
2912
+ "type": "boolean"
2913
+ },
2914
+ "pattern": {
2915
+ "type": "string"
2916
+ },
2917
+ "zone_id": {
2918
+ "type": "string"
2919
+ }
2920
+ },
2921
+ "required": [
2922
+ "pattern",
2923
+ "zone_id"
2924
+ ],
2925
+ "type": "object"
2926
+ },
2927
+ "ZoneNameRoute": {
2928
+ "additionalProperties": false,
2929
+ "properties": {
2930
+ "custom_domain": {
2931
+ "type": "boolean"
2932
+ },
2933
+ "pattern": {
2934
+ "type": "string"
2935
+ },
2936
+ "zone_name": {
2937
+ "type": "string"
2938
+ }
2939
+ },
2940
+ "required": [
2941
+ "pattern",
2942
+ "zone_name"
2943
+ ],
2944
+ "type": "object"
2945
+ }
2946
+ }
2947
+ }