devflare 1.0.0-next.22 → 1.0.0-next.24

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 (146) hide show
  1. package/LLM.md +221 -7
  2. package/dist/account-5nm1xn0v.js +475 -0
  3. package/dist/account-j8nfggg4.js +475 -0
  4. package/dist/account-qhe8vtds.js +475 -0
  5. package/dist/bridge/miniflare.d.ts +1 -1
  6. package/dist/bridge/miniflare.d.ts.map +1 -1
  7. package/dist/browser.d.ts +35 -15
  8. package/dist/browser.d.ts.map +1 -1
  9. package/dist/browser.js +4 -2
  10. package/dist/build-vctfnmsf.js +54 -0
  11. package/dist/build-vy95gy3f.js +54 -0
  12. package/dist/build-yzx0gsaj.js +54 -0
  13. package/dist/cli/commands/build-artifacts.d.ts.map +1 -1
  14. package/dist/cli/commands/config.d.ts.map +1 -1
  15. package/dist/cli/commands/deploy/prepare.d.ts.map +1 -1
  16. package/dist/cli/commands/deploy.d.ts.map +1 -1
  17. package/dist/cli/commands/type-generation/generator.d.ts +4 -2
  18. package/dist/cli/commands/type-generation/generator.d.ts.map +1 -1
  19. package/dist/cli/commands/types.d.ts.map +1 -1
  20. package/dist/cli/index.js +1 -1
  21. package/dist/config/compiler/types.d.ts +1 -1
  22. package/dist/config/compiler/types.d.ts.map +1 -1
  23. package/dist/config/define.d.ts +7 -4
  24. package/dist/config/define.d.ts.map +1 -1
  25. package/dist/config/env-vars.d.ts +309 -0
  26. package/dist/config/env-vars.d.ts.map +1 -0
  27. package/dist/config/index.d.ts +2 -1
  28. package/dist/config/index.d.ts.map +1 -1
  29. package/dist/config/loader.d.ts.map +1 -1
  30. package/dist/config/local-dev-vars.d.ts +2 -2
  31. package/dist/config/local-dev-vars.d.ts.map +1 -1
  32. package/dist/config/schema-env.d.ts +28 -8
  33. package/dist/config/schema-env.d.ts.map +1 -1
  34. package/dist/config/schema-runtime.d.ts +11 -1
  35. package/dist/config/schema-runtime.d.ts.map +1 -1
  36. package/dist/config/schema-types-bindings-platform.d.ts +378 -0
  37. package/dist/config/schema-types-bindings-platform.d.ts.map +1 -0
  38. package/dist/config/schema-types-bindings-resources.d.ts +551 -0
  39. package/dist/config/schema-types-bindings-resources.d.ts.map +1 -0
  40. package/dist/config/schema-types-bindings.d.ts +254 -0
  41. package/dist/config/schema-types-bindings.d.ts.map +1 -0
  42. package/dist/config/schema-types-build.d.ts +86 -0
  43. package/dist/config/schema-types-build.d.ts.map +1 -0
  44. package/dist/config/schema-types-runtime.d.ts +885 -0
  45. package/dist/config/schema-types-runtime.d.ts.map +1 -0
  46. package/dist/config/schema-types.d.ts +377 -0
  47. package/dist/config/schema-types.d.ts.map +1 -0
  48. package/dist/config/schema.d.ts +47 -18
  49. package/dist/config/schema.d.ts.map +1 -1
  50. package/dist/config-entry.d.ts +2 -0
  51. package/dist/config-entry.d.ts.map +1 -1
  52. package/dist/config-entry.js +3 -1
  53. package/dist/config-gq5jh4cx.js +105 -0
  54. package/dist/config-rq32csms.js +105 -0
  55. package/dist/config-vec13050.js +105 -0
  56. package/dist/deploy-01j0ep5n.js +1055 -0
  57. package/dist/deploy-krj3k9zm.js +1055 -0
  58. package/dist/deploy-mem96qyn.js +1066 -0
  59. package/dist/deploy-tjypkhg7.js +1055 -0
  60. package/dist/dev-apkr7cfv.js +2597 -0
  61. package/dist/dev-bh581ew3.js +2597 -0
  62. package/dist/dev-gn5y93z9.js +2597 -0
  63. package/dist/dev-server/server.d.ts.map +1 -1
  64. package/dist/doctor-9asw8x18.js +259 -0
  65. package/dist/doctor-h5q28qt1.js +259 -0
  66. package/dist/doctor-khk550tw.js +259 -0
  67. package/dist/env.d.ts +10 -0
  68. package/dist/env.d.ts.map +1 -1
  69. package/dist/index-0bv2qjs1.js +1555 -0
  70. package/dist/index-3tkzn06q.js +413 -0
  71. package/dist/index-4j9ah79n.js +1033 -0
  72. package/dist/index-8fyz6gcm.js +699 -0
  73. package/dist/index-97z629zr.js +109 -0
  74. package/dist/index-b28c4yr4.js +1205 -0
  75. package/dist/index-bfjpjs07.js +581 -0
  76. package/dist/index-c8p4njqy.js +479 -0
  77. package/dist/index-cna43592.js +1573 -0
  78. package/dist/index-cr06zrgw.js +1033 -0
  79. package/dist/index-cwjjdtgn.js +74 -0
  80. package/dist/index-d00njc1f.js +147 -0
  81. package/dist/index-dgeamyfk.js +1426 -0
  82. package/dist/index-dref9ecb.js +476 -0
  83. package/dist/index-e151t4ge.js +895 -0
  84. package/dist/index-e7kakw0j.js +1033 -0
  85. package/dist/index-f1g5jdm8.js +1426 -0
  86. package/dist/index-f46984zs.js +1554 -0
  87. package/dist/index-ftf7yqhs.js +74 -0
  88. package/dist/index-grk8pzhr.js +185 -0
  89. package/dist/index-h332fg62.js +1205 -0
  90. package/dist/index-hzmpecq9.js +52 -0
  91. package/dist/index-j1csb7gb.js +581 -0
  92. package/dist/index-j7x7f72h.js +185 -0
  93. package/dist/index-ja2rdbt0.js +476 -0
  94. package/dist/index-jkqbjwt2.js +476 -0
  95. package/dist/index-kc207nyr.js +52 -0
  96. package/dist/index-meq8ydc0.js +895 -0
  97. package/dist/index-mh5renra.js +895 -0
  98. package/dist/index-myfjejs0.js +185 -0
  99. package/dist/index-p9xq83p7.js +147 -0
  100. package/dist/index-q15nj71j.js +52 -0
  101. package/dist/index-qkfvd3cs.js +109 -0
  102. package/dist/index-qqp65pyv.js +699 -0
  103. package/dist/index-rnz879kf.js +1426 -0
  104. package/dist/index-s0fmwxbk.js +74 -0
  105. package/dist/index-s96e5dd9.js +699 -0
  106. package/dist/index-stzx8nc4.js +111 -0
  107. package/dist/index-th4vrnbk.js +1205 -0
  108. package/dist/index-vtcmsgaf.js +581 -0
  109. package/dist/index-x2k3awjs.js +147 -0
  110. package/dist/index-x8x547tz.js +1426 -0
  111. package/dist/index-xxxd0mvw.js +109 -0
  112. package/dist/index.d.ts +1 -1
  113. package/dist/index.d.ts.map +1 -1
  114. package/dist/index.js +8 -6
  115. package/dist/login-280p2cm9.js +77 -0
  116. package/dist/login-4n266whq.js +77 -0
  117. package/dist/login-g9rb7dj3.js +77 -0
  118. package/dist/previews-3m3ffpaw.js +1337 -0
  119. package/dist/previews-tr8sm03d.js +1337 -0
  120. package/dist/previews-ykamw25e.js +1337 -0
  121. package/dist/productions-4m1pd6ts.js +505 -0
  122. package/dist/productions-62y489ff.js +505 -0
  123. package/dist/productions-cgn3fz7d.js +505 -0
  124. package/dist/runtime/exports.d.ts +23 -0
  125. package/dist/runtime/exports.d.ts.map +1 -1
  126. package/dist/runtime/index.d.ts +1 -1
  127. package/dist/runtime/index.d.ts.map +1 -1
  128. package/dist/runtime/index.js +5 -3
  129. package/dist/secrets-4050kqf5.js +91 -0
  130. package/dist/secrets-gywxctdh.js +91 -0
  131. package/dist/secrets-p112cajt.js +91 -0
  132. package/dist/sveltekit/index.js +4 -4
  133. package/dist/test/index.js +23 -11
  134. package/dist/test/resolve-service-bindings.d.ts +1 -1
  135. package/dist/test/resolve-service-bindings.d.ts.map +1 -1
  136. package/dist/test/simple-context-lifecycle.d.ts.map +1 -1
  137. package/dist/types-17kkqw37.js +705 -0
  138. package/dist/types-apmt10yj.js +705 -0
  139. package/dist/types-ttrrgdfj.js +705 -0
  140. package/dist/vite/index.js +5 -5
  141. package/dist/vite/plugin-context.d.ts.map +1 -1
  142. package/dist/vite/plugin-programmatic.d.ts.map +1 -1
  143. package/dist/worker-2k1jyr6p.js +513 -0
  144. package/dist/worker-4fd49jm0.js +513 -0
  145. package/dist/worker-jqgn6jyj.js +513 -0
  146. package/package.json +1 -1
@@ -0,0 +1,885 @@
1
+ export interface PreviewConfigInput {
2
+ /**
3
+ * Whether preview-generated config should include cron triggers.
4
+ *
5
+ * @default `false`
6
+ *
7
+ * @example
8
+ * ```ts
9
+ * previews: { includeCrons: true }
10
+ * ```
11
+ */
12
+ includeCrons?: boolean;
13
+ }
14
+ /**
15
+ * Source file discovery for Worker handlers and generated support files.
16
+ */
17
+ export interface FilesConfigInput {
18
+ /**
19
+ * HTTP fetch entrypoint source file or `false` to disable fetch handler
20
+ * discovery.
21
+ *
22
+ * @default Auto-discovered from conventional fetch handler paths.
23
+ *
24
+ * @example
25
+ * ```ts
26
+ * files: { fetch: 'src/fetch.ts' }
27
+ * ```
28
+ */
29
+ fetch?: string | false;
30
+ /**
31
+ * Queue handler source file or `false` to disable queue handler discovery.
32
+ *
33
+ * @default Auto-discovered from conventional queue handler paths.
34
+ *
35
+ * @example
36
+ * ```ts
37
+ * files: { queue: 'src/queue.ts' }
38
+ * ```
39
+ */
40
+ queue?: string | false;
41
+ /**
42
+ * Scheduled event handler source file or `false` to disable scheduled
43
+ * handler discovery.
44
+ *
45
+ * @default Auto-discovered from conventional scheduled handler paths.
46
+ *
47
+ * @example
48
+ * ```ts
49
+ * files: { scheduled: 'src/scheduled.ts' }
50
+ * ```
51
+ */
52
+ scheduled?: string | false;
53
+ /**
54
+ * Email event handler source file or `false` to disable email handler
55
+ * discovery.
56
+ *
57
+ * @default Auto-discovered from conventional email handler paths.
58
+ *
59
+ * @example
60
+ * ```ts
61
+ * files: { email: 'src/email.ts' }
62
+ * ```
63
+ */
64
+ email?: string | false;
65
+ /**
66
+ * Tail event handler source file or `false` to disable tail handler
67
+ * discovery.
68
+ *
69
+ * @default Auto-discovered from conventional tail handler paths.
70
+ *
71
+ * @example
72
+ * ```ts
73
+ * files: { tail: 'src/tail.ts' }
74
+ * ```
75
+ */
76
+ tail?: string | false;
77
+ /**
78
+ * Durable Object source file glob or `false` to disable Durable Object
79
+ * class discovery.
80
+ *
81
+ * @default Auto-discovered from conventional Durable Object file paths.
82
+ *
83
+ * @example
84
+ * ```ts
85
+ * files: { durableObjects: 'src/do.*.ts' }
86
+ * ```
87
+ */
88
+ durableObjects?: string | false;
89
+ /**
90
+ * Named WorkerEntrypoint source file glob or `false` to disable entrypoint
91
+ * discovery.
92
+ *
93
+ * @default Auto-discovered from conventional entrypoint file paths.
94
+ *
95
+ * @example
96
+ * ```ts
97
+ * files: { entrypoints: 'src/ep.*.ts' }
98
+ * ```
99
+ */
100
+ entrypoints?: string | false;
101
+ /**
102
+ * Workflow source file glob or `false` to disable workflow discovery.
103
+ *
104
+ * @default Auto-discovered from conventional workflow file paths.
105
+ *
106
+ * @example
107
+ * ```ts
108
+ * files: { workflows: 'src/wf.*.ts' }
109
+ * ```
110
+ */
111
+ workflows?: string | false;
112
+ /**
113
+ * Built-in route-file discovery configuration or `false` to disable route
114
+ * file discovery.
115
+ *
116
+ * @default Auto-discovered from conventional route file paths.
117
+ *
118
+ * @example
119
+ * ```ts
120
+ * files: {
121
+ * routes: { dir: 'src/routes', prefix: '/api' }
122
+ * }
123
+ * ```
124
+ */
125
+ routes?: RouteTreeConfigInput | false;
126
+ /**
127
+ * Internal transport worker source file. Set `null` to suppress transport
128
+ * file generation when a command supports doing so.
129
+ *
130
+ * @default Devflare-managed transport file.
131
+ *
132
+ * @example
133
+ * ```ts
134
+ * files: { transport: 'src/.devflare/transport.ts' }
135
+ * ```
136
+ */
137
+ transport?: string | null;
138
+ }
139
+ /**
140
+ * Built-in file router discovery configuration.
141
+ */
142
+ export interface RouteTreeConfigInput {
143
+ /**
144
+ * Directory containing route files.
145
+ *
146
+ * @example
147
+ * ```ts
148
+ * routes: { dir: 'src/routes' }
149
+ * ```
150
+ */
151
+ dir: string;
152
+ /**
153
+ * URL prefix added before discovered route paths.
154
+ *
155
+ * @default No prefix.
156
+ *
157
+ * @example
158
+ * ```ts
159
+ * routes: { dir: 'src/routes', prefix: '/api' }
160
+ * ```
161
+ */
162
+ prefix?: string;
163
+ }
164
+ /**
165
+ * Trigger configuration for scheduled events.
166
+ */
167
+ export interface TriggersConfigInput {
168
+ /**
169
+ * Cron expressions that invoke the Worker scheduled handler.
170
+ *
171
+ * @example
172
+ * ```ts
173
+ * triggers: { crons: ['0 * * * *'] }
174
+ * ```
175
+ */
176
+ crons?: string[];
177
+ }
178
+ /**
179
+ * Wrangler module rule configuration.
180
+ */
181
+ export interface ModuleRuleConfigInput {
182
+ /**
183
+ * Module rule type.
184
+ *
185
+ * @example
186
+ * ```ts
187
+ * type: 'Text'
188
+ * ```
189
+ */
190
+ type: 'ESModule' | 'CommonJS' | 'CompiledWasm' | 'Text' | 'Data';
191
+ /**
192
+ * Glob patterns matched by this module rule.
193
+ *
194
+ * @example
195
+ * ```ts
196
+ * globs: ['content/*.txt']
197
+ * ```
198
+ */
199
+ globs: string[];
200
+ /**
201
+ * Whether Wrangler should continue evaluating later rules after this one.
202
+ *
203
+ * @default Wrangler default behavior.
204
+ *
205
+ * @example
206
+ * ```ts
207
+ * fallthrough: true
208
+ * ```
209
+ */
210
+ fallthrough?: boolean;
211
+ }
212
+ /**
213
+ * Tail Worker consumer configuration.
214
+ */
215
+ export type TailConsumerConfigInput = string | TailConsumerObjectConfigInput;
216
+ /**
217
+ * Tail Worker consumer object form.
218
+ */
219
+ export interface TailConsumerObjectConfigInput {
220
+ /**
221
+ * Tail Worker service name.
222
+ *
223
+ * @example
224
+ * ```ts
225
+ * service: 'trace-worker'
226
+ * ```
227
+ */
228
+ service: string;
229
+ /**
230
+ * Optional Tail Worker environment.
231
+ *
232
+ * @default Target worker default environment.
233
+ *
234
+ * @example
235
+ * ```ts
236
+ * environment: 'production'
237
+ * ```
238
+ */
239
+ environment?: string;
240
+ }
241
+ /**
242
+ * Secret declaration options.
243
+ */
244
+ export interface SecretConfigInput {
245
+ /**
246
+ * Whether the secret is required during validation.
247
+ *
248
+ * @default `true`
249
+ *
250
+ * @example
251
+ * ```ts
252
+ * secrets: { API_TOKEN: { required: true } }
253
+ * ```
254
+ */
255
+ required?: boolean;
256
+ }
257
+ /**
258
+ * Cloudflare Worker route configuration.
259
+ */
260
+ export interface RouteConfigInput {
261
+ /**
262
+ * Route pattern handled by the Worker.
263
+ *
264
+ * @example
265
+ * ```ts
266
+ * { pattern: 'api.example.com/*' }
267
+ * ```
268
+ */
269
+ pattern: string;
270
+ /**
271
+ * Zone name for the route.
272
+ *
273
+ * @default Cloudflare resolves the zone from the route pattern when
274
+ * possible.
275
+ *
276
+ * @example
277
+ * ```ts
278
+ * { pattern: 'api.example.com/*', zone_name: 'example.com' }
279
+ * ```
280
+ */
281
+ zone_name?: string;
282
+ /**
283
+ * Zone ID for the route.
284
+ *
285
+ * @default Cloudflare resolves the zone from the route pattern when
286
+ * possible.
287
+ *
288
+ * @example
289
+ * ```ts
290
+ * { pattern: 'api.example.com/*', zone_id: 'zone-id' }
291
+ * ```
292
+ */
293
+ zone_id?: string;
294
+ /**
295
+ * Whether this route is a custom domain route instead of a wildcard route.
296
+ * Custom Domains attach the Worker to the whole hostname, so the pattern
297
+ * must be a bare host such as `worker.example.com`. Use a normal route
298
+ * with `zone_name` or `zone_id` for wildcard or path patterns.
299
+ *
300
+ * @default `false`
301
+ *
302
+ * @example
303
+ * ```ts
304
+ * routes: [
305
+ * { pattern: 'worker.example.com', custom_domain: true }
306
+ * ]
307
+ * ```
308
+ */
309
+ custom_domain?: boolean;
310
+ }
311
+ /**
312
+ * Local WebSocket route for Durable Object proxying.
313
+ */
314
+ export interface WsRouteConfigInput {
315
+ /**
316
+ * Local route pattern.
317
+ *
318
+ * @example
319
+ * ```ts
320
+ * pattern: '/rooms/:id'
321
+ * ```
322
+ */
323
+ pattern: string;
324
+ /**
325
+ * Durable Object namespace binding name that should receive the socket.
326
+ *
327
+ * @example
328
+ * ```ts
329
+ * doNamespace: 'ROOM'
330
+ * ```
331
+ */
332
+ doNamespace: string;
333
+ /**
334
+ * Route parameter used as the Durable Object ID.
335
+ *
336
+ * @default `'id'`
337
+ *
338
+ * @example
339
+ * ```ts
340
+ * idParam: 'roomId'
341
+ * ```
342
+ */
343
+ idParam?: string;
344
+ /**
345
+ * Path forwarded to the Durable Object when the socket is proxied.
346
+ *
347
+ * @default `'/websocket'`
348
+ *
349
+ * @example
350
+ * ```ts
351
+ * forwardPath: '/connect'
352
+ * ```
353
+ */
354
+ forwardPath?: string;
355
+ }
356
+ /**
357
+ * Static assets configuration.
358
+ */
359
+ export interface AssetsConfigInput {
360
+ /**
361
+ * Directory containing static assets.
362
+ *
363
+ * @example
364
+ * ```ts
365
+ * assets: { directory: './dist' }
366
+ * ```
367
+ */
368
+ directory: string;
369
+ /**
370
+ * Optional asset binding name exposed to the Worker.
371
+ *
372
+ * @default Wrangler default binding behavior.
373
+ *
374
+ * @example
375
+ * ```ts
376
+ * assets: { directory: './dist', binding: 'ASSETS' }
377
+ * ```
378
+ */
379
+ binding?: string;
380
+ /**
381
+ * HTML path handling behavior.
382
+ *
383
+ * @default Wrangler default behavior.
384
+ *
385
+ * @example
386
+ * ```ts
387
+ * html_handling: 'auto-trailing-slash'
388
+ * ```
389
+ */
390
+ html_handling?: 'auto-trailing-slash' | 'force-trailing-slash' | 'drop-trailing-slash' | 'none';
391
+ /**
392
+ * Not-found handling behavior.
393
+ *
394
+ * @default Wrangler default behavior.
395
+ *
396
+ * @example
397
+ * ```ts
398
+ * not_found_handling: 'single-page-application'
399
+ * ```
400
+ */
401
+ not_found_handling?: 'single-page-application' | '404-page' | 'none';
402
+ /**
403
+ * Whether the Worker should run before serving assets, or the asset path
404
+ * patterns that should run the Worker first.
405
+ *
406
+ * @default Wrangler default behavior.
407
+ *
408
+ * @example
409
+ * ```ts
410
+ * run_worker_first: ['/api/*']
411
+ * ```
412
+ */
413
+ run_worker_first?: boolean | string[];
414
+ }
415
+ /**
416
+ * Cloudflare Container configuration.
417
+ */
418
+ export interface ContainerConfigInput {
419
+ /**
420
+ * Container class name exported by the Worker.
421
+ *
422
+ * @example
423
+ * ```ts
424
+ * className: 'RendererContainer'
425
+ * ```
426
+ */
427
+ className: string;
428
+ /**
429
+ * Container image reference or build target.
430
+ *
431
+ * @example
432
+ * ```ts
433
+ * image: './Dockerfile'
434
+ * ```
435
+ */
436
+ image: string;
437
+ /**
438
+ * Maximum number of container instances.
439
+ *
440
+ * @default Cloudflare Containers default behavior.
441
+ *
442
+ * @example
443
+ * ```ts
444
+ * maxInstances: 3
445
+ * ```
446
+ */
447
+ maxInstances?: number;
448
+ /**
449
+ * Container instance type.
450
+ *
451
+ * @default Cloudflare Containers default behavior.
452
+ *
453
+ * @example
454
+ * ```ts
455
+ * instanceType: 'standard'
456
+ * ```
457
+ */
458
+ instanceType?: string;
459
+ /**
460
+ * Optional generated container name.
461
+ *
462
+ * @default Devflare derives the name from the class when possible.
463
+ *
464
+ * @example
465
+ * ```ts
466
+ * name: 'renderer'
467
+ * ```
468
+ */
469
+ name?: string;
470
+ /**
471
+ * Docker build context.
472
+ *
473
+ * @default Container image path default.
474
+ *
475
+ * @example
476
+ * ```ts
477
+ * imageBuildContext: './containers/renderer'
478
+ * ```
479
+ */
480
+ imageBuildContext?: string;
481
+ /**
482
+ * Build-time variables for the container image.
483
+ *
484
+ * @default No image variables.
485
+ *
486
+ * @example
487
+ * ```ts
488
+ * imageVars: { NODE_ENV: 'production' }
489
+ * ```
490
+ */
491
+ imageVars?: Record<string, string>;
492
+ /**
493
+ * Active grace period in seconds during rollout.
494
+ *
495
+ * @default Cloudflare Containers default behavior.
496
+ *
497
+ * @example
498
+ * ```ts
499
+ * rolloutActiveGracePeriod: 60
500
+ * ```
501
+ */
502
+ rolloutActiveGracePeriod?: number;
503
+ /**
504
+ * Rollout step percentage or step percentages.
505
+ *
506
+ * @default Cloudflare Containers default behavior.
507
+ *
508
+ * @example
509
+ * ```ts
510
+ * rolloutStepPercentage: [10, 50, 100]
511
+ * ```
512
+ */
513
+ rolloutStepPercentage?: number | number[];
514
+ }
515
+ /**
516
+ * Worker placement configuration.
517
+ */
518
+ export type PlacementConfigInput = SmartPlacementConfigInput | TargetedRegionPlacementConfigInput | TargetedHostPlacementConfigInput | TargetedHostnamePlacementConfigInput;
519
+ /**
520
+ * Smart Placement configuration.
521
+ */
522
+ export interface SmartPlacementConfigInput {
523
+ /**
524
+ * Smart Placement mode.
525
+ *
526
+ * @example
527
+ * ```ts
528
+ * mode: 'smart'
529
+ * ```
530
+ */
531
+ mode: 'off' | 'smart';
532
+ /**
533
+ * Optional placement hint. Only valid when `mode` is `smart`.
534
+ *
535
+ * @default No placement hint.
536
+ *
537
+ * @example
538
+ * ```ts
539
+ * hint: 'wnam'
540
+ * ```
541
+ */
542
+ hint?: string;
543
+ }
544
+ /**
545
+ * Targeted placement by Cloudflare region.
546
+ */
547
+ export interface TargetedRegionPlacementConfigInput {
548
+ /**
549
+ * Targeted placement mode.
550
+ *
551
+ * @default `'targeted'`
552
+ *
553
+ * @example
554
+ * ```ts
555
+ * mode: 'targeted'
556
+ * ```
557
+ */
558
+ mode?: 'targeted';
559
+ /**
560
+ * Target Cloudflare region.
561
+ *
562
+ * @example
563
+ * ```ts
564
+ * region: 'wnam'
565
+ * ```
566
+ */
567
+ region: string;
568
+ }
569
+ /**
570
+ * Targeted placement by host.
571
+ */
572
+ export interface TargetedHostPlacementConfigInput {
573
+ /**
574
+ * Targeted placement mode.
575
+ *
576
+ * @default `'targeted'`
577
+ *
578
+ * @example
579
+ * ```ts
580
+ * mode: 'targeted'
581
+ * ```
582
+ */
583
+ mode?: 'targeted';
584
+ /**
585
+ * Target host.
586
+ *
587
+ * @example
588
+ * ```ts
589
+ * host: 'db.internal'
590
+ * ```
591
+ */
592
+ host: string;
593
+ }
594
+ /**
595
+ * Targeted placement by hostname.
596
+ */
597
+ export interface TargetedHostnamePlacementConfigInput {
598
+ /**
599
+ * Targeted placement mode.
600
+ *
601
+ * @default `'targeted'`
602
+ *
603
+ * @example
604
+ * ```ts
605
+ * mode: 'targeted'
606
+ * ```
607
+ */
608
+ mode?: 'targeted';
609
+ /**
610
+ * Target hostname.
611
+ *
612
+ * @example
613
+ * ```ts
614
+ * hostname: 'api.example.com'
615
+ * ```
616
+ */
617
+ hostname: string;
618
+ }
619
+ /**
620
+ * Worker resource limits.
621
+ */
622
+ export interface LimitsConfigInput {
623
+ /**
624
+ * CPU time limit in milliseconds.
625
+ *
626
+ * @default Cloudflare Workers account and plan default.
627
+ *
628
+ * @example
629
+ * ```ts
630
+ * cpu_ms: 50
631
+ * ```
632
+ */
633
+ cpu_ms?: number;
634
+ /**
635
+ * Subrequest limit.
636
+ *
637
+ * @default Cloudflare Workers account and plan default.
638
+ *
639
+ * @example
640
+ * ```ts
641
+ * subrequests: 1000
642
+ * ```
643
+ */
644
+ subrequests?: number;
645
+ }
646
+ /**
647
+ * Worker logs and traces observability settings.
648
+ */
649
+ export interface ObservabilityConfigInput {
650
+ /**
651
+ * Enable observability.
652
+ *
653
+ * @default Cloudflare default behavior.
654
+ *
655
+ * @example
656
+ * ```ts
657
+ * enabled: true
658
+ * ```
659
+ */
660
+ enabled?: boolean;
661
+ /**
662
+ * Head sampling rate from `0` to `1`.
663
+ *
664
+ * @default Cloudflare default sampling behavior.
665
+ *
666
+ * @example
667
+ * ```ts
668
+ * head_sampling_rate: 0.1
669
+ * ```
670
+ */
671
+ head_sampling_rate?: number;
672
+ /**
673
+ * Log-specific observability settings.
674
+ *
675
+ * @default Cloudflare default log behavior.
676
+ *
677
+ * @example
678
+ * ```ts
679
+ * logs: { enabled: true, invocation_logs: true }
680
+ * ```
681
+ */
682
+ logs?: ObservabilityLogsConfigInput;
683
+ /**
684
+ * Trace-specific observability settings.
685
+ *
686
+ * @default Cloudflare default trace behavior.
687
+ *
688
+ * @example
689
+ * ```ts
690
+ * traces: { enabled: true, head_sampling_rate: 0.05 }
691
+ * ```
692
+ */
693
+ traces?: ObservabilityTracesConfigInput;
694
+ }
695
+ /**
696
+ * Worker log observability settings.
697
+ */
698
+ export interface ObservabilityLogsConfigInput {
699
+ /**
700
+ * Enable log collection.
701
+ *
702
+ * @default Cloudflare default log behavior.
703
+ *
704
+ * @example
705
+ * ```ts
706
+ * enabled: true
707
+ * ```
708
+ */
709
+ enabled?: boolean;
710
+ /**
711
+ * Log head sampling rate from `0` to `1`.
712
+ *
713
+ * @default Cloudflare default sampling behavior.
714
+ *
715
+ * @example
716
+ * ```ts
717
+ * head_sampling_rate: 0.1
718
+ * ```
719
+ */
720
+ head_sampling_rate?: number;
721
+ /**
722
+ * Include invocation logs.
723
+ *
724
+ * @default Cloudflare default log behavior.
725
+ *
726
+ * @example
727
+ * ```ts
728
+ * invocation_logs: true
729
+ * ```
730
+ */
731
+ invocation_logs?: boolean;
732
+ /**
733
+ * Persist logs.
734
+ *
735
+ * @default Cloudflare default persistence behavior.
736
+ *
737
+ * @example
738
+ * ```ts
739
+ * persist: true
740
+ * ```
741
+ */
742
+ persist?: boolean;
743
+ /**
744
+ * Log destination names.
745
+ *
746
+ * @default Cloudflare default destinations.
747
+ *
748
+ * @example
749
+ * ```ts
750
+ * destinations: ['cloudflare']
751
+ * ```
752
+ */
753
+ destinations?: string[];
754
+ }
755
+ /**
756
+ * Worker trace observability settings.
757
+ */
758
+ export interface ObservabilityTracesConfigInput {
759
+ /**
760
+ * Enable trace collection.
761
+ *
762
+ * @default Cloudflare default trace behavior.
763
+ *
764
+ * @example
765
+ * ```ts
766
+ * enabled: true
767
+ * ```
768
+ */
769
+ enabled?: boolean;
770
+ /**
771
+ * Trace head sampling rate from `0` to `1`.
772
+ *
773
+ * @default Cloudflare default sampling behavior.
774
+ *
775
+ * @example
776
+ * ```ts
777
+ * head_sampling_rate: 0.1
778
+ * ```
779
+ */
780
+ head_sampling_rate?: number;
781
+ /**
782
+ * Persist traces.
783
+ *
784
+ * @default Cloudflare default persistence behavior.
785
+ *
786
+ * @example
787
+ * ```ts
788
+ * persist: true
789
+ * ```
790
+ */
791
+ persist?: boolean;
792
+ /**
793
+ * Trace destination names.
794
+ *
795
+ * @default Cloudflare default destinations.
796
+ *
797
+ * @example
798
+ * ```ts
799
+ * destinations: ['cloudflare']
800
+ * ```
801
+ */
802
+ destinations?: string[];
803
+ }
804
+ /**
805
+ * Durable Object migration configuration.
806
+ */
807
+ export interface MigrationConfigInput {
808
+ /**
809
+ * Unique migration tag.
810
+ *
811
+ * @example
812
+ * ```ts
813
+ * tag: 'v1'
814
+ * ```
815
+ */
816
+ tag: string;
817
+ /**
818
+ * New Durable Object class names using legacy storage.
819
+ *
820
+ * @default No new legacy-storage classes.
821
+ *
822
+ * @example
823
+ * ```ts
824
+ * new_classes: ['Counter']
825
+ * ```
826
+ */
827
+ new_classes?: string[];
828
+ /**
829
+ * Renamed Durable Object classes.
830
+ *
831
+ * @default No renamed classes.
832
+ *
833
+ * @example
834
+ * ```ts
835
+ * renamed_classes: [{ from: 'OldCounter', to: 'Counter' }]
836
+ * ```
837
+ */
838
+ renamed_classes?: RenamedClassMigrationInput[];
839
+ /**
840
+ * Deleted Durable Object class names.
841
+ *
842
+ * @default No deleted classes.
843
+ *
844
+ * @example
845
+ * ```ts
846
+ * deleted_classes: ['OldCounter']
847
+ * ```
848
+ */
849
+ deleted_classes?: string[];
850
+ /**
851
+ * New Durable Object class names using SQLite storage.
852
+ *
853
+ * @default No new SQLite classes.
854
+ *
855
+ * @example
856
+ * ```ts
857
+ * new_sqlite_classes: ['Counter']
858
+ * ```
859
+ */
860
+ new_sqlite_classes?: string[];
861
+ }
862
+ /**
863
+ * Durable Object class rename migration entry.
864
+ */
865
+ export interface RenamedClassMigrationInput {
866
+ /**
867
+ * Previous Durable Object class name.
868
+ *
869
+ * @example
870
+ * ```ts
871
+ * from: 'OldCounter'
872
+ * ```
873
+ */
874
+ from: string;
875
+ /**
876
+ * New Durable Object class name.
877
+ *
878
+ * @example
879
+ * ```ts
880
+ * to: 'Counter'
881
+ * ```
882
+ */
883
+ to: string;
884
+ }
885
+ //# sourceMappingURL=schema-types-runtime.d.ts.map