@distilled.cloud/cloudflare 0.26.0 → 0.27.0

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 (60) hide show
  1. package/lib/client/api.d.ts.map +1 -1
  2. package/lib/client/api.js +15 -7
  3. package/lib/client/api.js.map +1 -1
  4. package/lib/services/ai-gateway.d.ts +7 -1
  5. package/lib/services/ai-gateway.d.ts.map +1 -1
  6. package/lib/services/ai-gateway.js +3 -1
  7. package/lib/services/ai-gateway.js.map +1 -1
  8. package/lib/services/aisearch.d.ts +7 -1
  9. package/lib/services/aisearch.d.ts.map +1 -1
  10. package/lib/services/aisearch.js +6 -0
  11. package/lib/services/aisearch.js.map +1 -1
  12. package/lib/services/api-gateway.d.ts +1 -1
  13. package/lib/services/api-gateway.d.ts.map +1 -1
  14. package/lib/services/api-gateway.js +1 -1
  15. package/lib/services/api-gateway.js.map +1 -1
  16. package/lib/services/cache.d.ts +7 -1
  17. package/lib/services/cache.d.ts.map +1 -1
  18. package/lib/services/cache.js +6 -1
  19. package/lib/services/cache.js.map +1 -1
  20. package/lib/services/iam.d.ts +7 -1
  21. package/lib/services/iam.d.ts.map +1 -1
  22. package/lib/services/iam.js +6 -1
  23. package/lib/services/iam.js.map +1 -1
  24. package/lib/services/page-rules.d.ts +7 -1
  25. package/lib/services/page-rules.d.ts.map +1 -1
  26. package/lib/services/page-rules.js +6 -1
  27. package/lib/services/page-rules.js.map +1 -1
  28. package/lib/services/pages.d.ts +8 -8
  29. package/lib/services/pages.d.ts.map +1 -1
  30. package/lib/services/pages.js +408 -396
  31. package/lib/services/pages.js.map +1 -1
  32. package/lib/services/r2.d.ts +7 -1
  33. package/lib/services/r2.d.ts.map +1 -1
  34. package/lib/services/r2.js +13 -1
  35. package/lib/services/r2.js.map +1 -1
  36. package/lib/services/schema-validation.d.ts +7 -1
  37. package/lib/services/schema-validation.d.ts.map +1 -1
  38. package/lib/services/schema-validation.js +6 -1
  39. package/lib/services/schema-validation.js.map +1 -1
  40. package/lib/services/workers.d.ts +7 -1
  41. package/lib/services/workers.d.ts.map +1 -1
  42. package/lib/services/workers.js +6 -1
  43. package/lib/services/workers.js.map +1 -1
  44. package/lib/services/zero-trust.d.ts +9 -3
  45. package/lib/services/zero-trust.d.ts.map +1 -1
  46. package/lib/services/zero-trust.js +8 -6
  47. package/lib/services/zero-trust.js.map +1 -1
  48. package/package.json +2 -2
  49. package/src/client/api.ts +15 -8
  50. package/src/services/ai-gateway.ts +13 -2
  51. package/src/services/aisearch.ts +10 -0
  52. package/src/services/api-gateway.ts +2 -2
  53. package/src/services/cache.ts +11 -2
  54. package/src/services/iam.ts +13 -2
  55. package/src/services/page-rules.ts +13 -2
  56. package/src/services/pages.ts +780 -760
  57. package/src/services/r2.ts +20 -2
  58. package/src/services/schema-validation.ts +10 -2
  59. package/src/services/workers.ts +11 -2
  60. package/src/services/zero-trust.ts +23 -9
@@ -239,204 +239,210 @@ export const GetProjectResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(()
239
239
  ]),
240
240
  createdOn: Schema.String,
241
241
  deploymentConfigs: Schema.Struct({
242
- preview: Schema.Struct({
243
- alwaysUseLatestCompatibilityDate: Schema.Boolean,
244
- buildImageMajorVersion: Schema.Number,
245
- compatibilityDate: Schema.String,
246
- compatibilityFlags: Schema.Array(Schema.String),
247
- envVars: Schema.Union([
248
- Schema.Record(Schema.String, Schema.Unknown),
249
- Schema.Null,
250
- ]),
251
- failOpen: Schema.Boolean,
252
- usageModel: Schema.Union([
253
- Schema.Literals(["standard", "bundled", "unbound"]),
254
- Schema.String,
255
- ]),
256
- aiBindings: Schema.optional(Schema.Union([
257
- Schema.Record(Schema.String, Schema.Unknown),
258
- Schema.Null,
259
- ])),
260
- analyticsEngineDatasets: Schema.optional(Schema.Union([
261
- Schema.Record(Schema.String, Schema.Unknown),
262
- Schema.Null,
263
- ])),
264
- browsers: Schema.optional(Schema.Union([
265
- Schema.Record(Schema.String, Schema.Unknown),
266
- Schema.Null,
267
- ])),
268
- d1Databases: Schema.optional(Schema.Union([
269
- Schema.Record(Schema.String, Schema.Unknown),
270
- Schema.Null,
271
- ])),
272
- durableObjectNamespaces: Schema.optional(Schema.Union([
273
- Schema.Record(Schema.String, Schema.Unknown),
274
- Schema.Null,
275
- ])),
276
- hyperdriveBindings: Schema.optional(Schema.Union([
277
- Schema.Record(Schema.String, Schema.Unknown),
278
- Schema.Null,
279
- ])),
280
- kvNamespaces: Schema.optional(Schema.Union([
281
- Schema.Record(Schema.String, Schema.Unknown),
282
- Schema.Null,
283
- ])),
284
- limits: Schema.optional(Schema.Union([
285
- Schema.Struct({
286
- cpuMs: Schema.Number,
287
- }).pipe(Schema.encodeKeys({ cpuMs: "cpu_ms" })),
288
- Schema.Null,
289
- ])),
290
- mtlsCertificates: Schema.optional(Schema.Union([
291
- Schema.Record(Schema.String, Schema.Unknown),
292
- Schema.Null,
293
- ])),
294
- placement: Schema.optional(Schema.Union([
295
- Schema.Struct({
296
- mode: Schema.String,
297
- }),
298
- Schema.Null,
299
- ])),
300
- queueProducers: Schema.optional(Schema.Union([
301
- Schema.Record(Schema.String, Schema.Unknown),
302
- Schema.Null,
303
- ])),
304
- r2Buckets: Schema.optional(Schema.Union([
305
- Schema.Record(Schema.String, Schema.Unknown),
306
- Schema.Null,
307
- ])),
308
- services: Schema.optional(Schema.Union([
309
- Schema.Record(Schema.String, Schema.Unknown),
310
- Schema.Null,
311
- ])),
312
- vectorizeBindings: Schema.optional(Schema.Union([
313
- Schema.Record(Schema.String, Schema.Unknown),
314
- Schema.Null,
315
- ])),
316
- wranglerConfigHash: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
317
- }).pipe(Schema.encodeKeys({
318
- alwaysUseLatestCompatibilityDate: "always_use_latest_compatibility_date",
319
- buildImageMajorVersion: "build_image_major_version",
320
- compatibilityDate: "compatibility_date",
321
- compatibilityFlags: "compatibility_flags",
322
- envVars: "env_vars",
323
- failOpen: "fail_open",
324
- usageModel: "usage_model",
325
- aiBindings: "ai_bindings",
326
- analyticsEngineDatasets: "analytics_engine_datasets",
327
- browsers: "browsers",
328
- d1Databases: "d1_databases",
329
- durableObjectNamespaces: "durable_object_namespaces",
330
- hyperdriveBindings: "hyperdrive_bindings",
331
- kvNamespaces: "kv_namespaces",
332
- limits: "limits",
333
- mtlsCertificates: "mtls_certificates",
334
- placement: "placement",
335
- queueProducers: "queue_producers",
336
- r2Buckets: "r2_buckets",
337
- services: "services",
338
- vectorizeBindings: "vectorize_bindings",
339
- wranglerConfigHash: "wrangler_config_hash",
340
- })),
341
- production: Schema.Struct({
342
- alwaysUseLatestCompatibilityDate: Schema.Boolean,
343
- buildImageMajorVersion: Schema.Number,
344
- compatibilityDate: Schema.String,
345
- compatibilityFlags: Schema.Array(Schema.String),
346
- envVars: Schema.Union([
347
- Schema.Record(Schema.String, Schema.Unknown),
348
- Schema.Null,
349
- ]),
350
- failOpen: Schema.Boolean,
351
- usageModel: Schema.Union([
352
- Schema.Literals(["standard", "bundled", "unbound"]),
353
- Schema.String,
354
- ]),
355
- aiBindings: Schema.optional(Schema.Union([
356
- Schema.Record(Schema.String, Schema.Unknown),
357
- Schema.Null,
358
- ])),
359
- analyticsEngineDatasets: Schema.optional(Schema.Union([
360
- Schema.Record(Schema.String, Schema.Unknown),
361
- Schema.Null,
362
- ])),
363
- browsers: Schema.optional(Schema.Union([
364
- Schema.Record(Schema.String, Schema.Unknown),
365
- Schema.Null,
366
- ])),
367
- d1Databases: Schema.optional(Schema.Union([
368
- Schema.Record(Schema.String, Schema.Unknown),
369
- Schema.Null,
370
- ])),
371
- durableObjectNamespaces: Schema.optional(Schema.Union([
372
- Schema.Record(Schema.String, Schema.Unknown),
373
- Schema.Null,
374
- ])),
375
- hyperdriveBindings: Schema.optional(Schema.Union([
376
- Schema.Record(Schema.String, Schema.Unknown),
377
- Schema.Null,
378
- ])),
379
- kvNamespaces: Schema.optional(Schema.Union([
380
- Schema.Record(Schema.String, Schema.Unknown),
381
- Schema.Null,
382
- ])),
383
- limits: Schema.optional(Schema.Union([
384
- Schema.Struct({
385
- cpuMs: Schema.Number,
386
- }).pipe(Schema.encodeKeys({ cpuMs: "cpu_ms" })),
387
- Schema.Null,
388
- ])),
389
- mtlsCertificates: Schema.optional(Schema.Union([
390
- Schema.Record(Schema.String, Schema.Unknown),
391
- Schema.Null,
392
- ])),
393
- placement: Schema.optional(Schema.Union([
394
- Schema.Struct({
395
- mode: Schema.String,
396
- }),
397
- Schema.Null,
398
- ])),
399
- queueProducers: Schema.optional(Schema.Union([
400
- Schema.Record(Schema.String, Schema.Unknown),
401
- Schema.Null,
402
- ])),
403
- r2Buckets: Schema.optional(Schema.Union([
404
- Schema.Record(Schema.String, Schema.Unknown),
405
- Schema.Null,
406
- ])),
407
- services: Schema.optional(Schema.Union([
408
- Schema.Record(Schema.String, Schema.Unknown),
409
- Schema.Null,
410
- ])),
411
- vectorizeBindings: Schema.optional(Schema.Union([
412
- Schema.Record(Schema.String, Schema.Unknown),
413
- Schema.Null,
414
- ])),
415
- wranglerConfigHash: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
416
- }).pipe(Schema.encodeKeys({
417
- alwaysUseLatestCompatibilityDate: "always_use_latest_compatibility_date",
418
- buildImageMajorVersion: "build_image_major_version",
419
- compatibilityDate: "compatibility_date",
420
- compatibilityFlags: "compatibility_flags",
421
- envVars: "env_vars",
422
- failOpen: "fail_open",
423
- usageModel: "usage_model",
424
- aiBindings: "ai_bindings",
425
- analyticsEngineDatasets: "analytics_engine_datasets",
426
- browsers: "browsers",
427
- d1Databases: "d1_databases",
428
- durableObjectNamespaces: "durable_object_namespaces",
429
- hyperdriveBindings: "hyperdrive_bindings",
430
- kvNamespaces: "kv_namespaces",
431
- limits: "limits",
432
- mtlsCertificates: "mtls_certificates",
433
- placement: "placement",
434
- queueProducers: "queue_producers",
435
- r2Buckets: "r2_buckets",
436
- services: "services",
437
- vectorizeBindings: "vectorize_bindings",
438
- wranglerConfigHash: "wrangler_config_hash",
439
- })),
242
+ preview: Schema.optional(Schema.Union([
243
+ Schema.Struct({
244
+ alwaysUseLatestCompatibilityDate: Schema.Boolean,
245
+ buildImageMajorVersion: Schema.Number,
246
+ compatibilityDate: Schema.String,
247
+ compatibilityFlags: Schema.Array(Schema.String),
248
+ envVars: Schema.Union([
249
+ Schema.Record(Schema.String, Schema.Unknown),
250
+ Schema.Null,
251
+ ]),
252
+ failOpen: Schema.Boolean,
253
+ usageModel: Schema.Union([
254
+ Schema.Literals(["standard", "bundled", "unbound"]),
255
+ Schema.String,
256
+ ]),
257
+ aiBindings: Schema.optional(Schema.Union([
258
+ Schema.Record(Schema.String, Schema.Unknown),
259
+ Schema.Null,
260
+ ])),
261
+ analyticsEngineDatasets: Schema.optional(Schema.Union([
262
+ Schema.Record(Schema.String, Schema.Unknown),
263
+ Schema.Null,
264
+ ])),
265
+ browsers: Schema.optional(Schema.Union([
266
+ Schema.Record(Schema.String, Schema.Unknown),
267
+ Schema.Null,
268
+ ])),
269
+ d1Databases: Schema.optional(Schema.Union([
270
+ Schema.Record(Schema.String, Schema.Unknown),
271
+ Schema.Null,
272
+ ])),
273
+ durableObjectNamespaces: Schema.optional(Schema.Union([
274
+ Schema.Record(Schema.String, Schema.Unknown),
275
+ Schema.Null,
276
+ ])),
277
+ hyperdriveBindings: Schema.optional(Schema.Union([
278
+ Schema.Record(Schema.String, Schema.Unknown),
279
+ Schema.Null,
280
+ ])),
281
+ kvNamespaces: Schema.optional(Schema.Union([
282
+ Schema.Record(Schema.String, Schema.Unknown),
283
+ Schema.Null,
284
+ ])),
285
+ limits: Schema.optional(Schema.Union([
286
+ Schema.Struct({
287
+ cpuMs: Schema.Number,
288
+ }).pipe(Schema.encodeKeys({ cpuMs: "cpu_ms" })),
289
+ Schema.Null,
290
+ ])),
291
+ mtlsCertificates: Schema.optional(Schema.Union([
292
+ Schema.Record(Schema.String, Schema.Unknown),
293
+ Schema.Null,
294
+ ])),
295
+ placement: Schema.optional(Schema.Union([
296
+ Schema.Struct({
297
+ mode: Schema.String,
298
+ }),
299
+ Schema.Null,
300
+ ])),
301
+ queueProducers: Schema.optional(Schema.Union([
302
+ Schema.Record(Schema.String, Schema.Unknown),
303
+ Schema.Null,
304
+ ])),
305
+ r2Buckets: Schema.optional(Schema.Union([
306
+ Schema.Record(Schema.String, Schema.Unknown),
307
+ Schema.Null,
308
+ ])),
309
+ services: Schema.optional(Schema.Union([
310
+ Schema.Record(Schema.String, Schema.Unknown),
311
+ Schema.Null,
312
+ ])),
313
+ vectorizeBindings: Schema.optional(Schema.Union([
314
+ Schema.Record(Schema.String, Schema.Unknown),
315
+ Schema.Null,
316
+ ])),
317
+ wranglerConfigHash: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
318
+ }).pipe(Schema.encodeKeys({
319
+ alwaysUseLatestCompatibilityDate: "always_use_latest_compatibility_date",
320
+ buildImageMajorVersion: "build_image_major_version",
321
+ compatibilityDate: "compatibility_date",
322
+ compatibilityFlags: "compatibility_flags",
323
+ envVars: "env_vars",
324
+ failOpen: "fail_open",
325
+ usageModel: "usage_model",
326
+ aiBindings: "ai_bindings",
327
+ analyticsEngineDatasets: "analytics_engine_datasets",
328
+ browsers: "browsers",
329
+ d1Databases: "d1_databases",
330
+ durableObjectNamespaces: "durable_object_namespaces",
331
+ hyperdriveBindings: "hyperdrive_bindings",
332
+ kvNamespaces: "kv_namespaces",
333
+ limits: "limits",
334
+ mtlsCertificates: "mtls_certificates",
335
+ placement: "placement",
336
+ queueProducers: "queue_producers",
337
+ r2Buckets: "r2_buckets",
338
+ services: "services",
339
+ vectorizeBindings: "vectorize_bindings",
340
+ wranglerConfigHash: "wrangler_config_hash",
341
+ })),
342
+ Schema.Null,
343
+ ])),
344
+ production: Schema.optional(Schema.Union([
345
+ Schema.Struct({
346
+ alwaysUseLatestCompatibilityDate: Schema.Boolean,
347
+ buildImageMajorVersion: Schema.Number,
348
+ compatibilityDate: Schema.String,
349
+ compatibilityFlags: Schema.Array(Schema.String),
350
+ envVars: Schema.Union([
351
+ Schema.Record(Schema.String, Schema.Unknown),
352
+ Schema.Null,
353
+ ]),
354
+ failOpen: Schema.Boolean,
355
+ usageModel: Schema.Union([
356
+ Schema.Literals(["standard", "bundled", "unbound"]),
357
+ Schema.String,
358
+ ]),
359
+ aiBindings: Schema.optional(Schema.Union([
360
+ Schema.Record(Schema.String, Schema.Unknown),
361
+ Schema.Null,
362
+ ])),
363
+ analyticsEngineDatasets: Schema.optional(Schema.Union([
364
+ Schema.Record(Schema.String, Schema.Unknown),
365
+ Schema.Null,
366
+ ])),
367
+ browsers: Schema.optional(Schema.Union([
368
+ Schema.Record(Schema.String, Schema.Unknown),
369
+ Schema.Null,
370
+ ])),
371
+ d1Databases: Schema.optional(Schema.Union([
372
+ Schema.Record(Schema.String, Schema.Unknown),
373
+ Schema.Null,
374
+ ])),
375
+ durableObjectNamespaces: Schema.optional(Schema.Union([
376
+ Schema.Record(Schema.String, Schema.Unknown),
377
+ Schema.Null,
378
+ ])),
379
+ hyperdriveBindings: Schema.optional(Schema.Union([
380
+ Schema.Record(Schema.String, Schema.Unknown),
381
+ Schema.Null,
382
+ ])),
383
+ kvNamespaces: Schema.optional(Schema.Union([
384
+ Schema.Record(Schema.String, Schema.Unknown),
385
+ Schema.Null,
386
+ ])),
387
+ limits: Schema.optional(Schema.Union([
388
+ Schema.Struct({
389
+ cpuMs: Schema.Number,
390
+ }).pipe(Schema.encodeKeys({ cpuMs: "cpu_ms" })),
391
+ Schema.Null,
392
+ ])),
393
+ mtlsCertificates: Schema.optional(Schema.Union([
394
+ Schema.Record(Schema.String, Schema.Unknown),
395
+ Schema.Null,
396
+ ])),
397
+ placement: Schema.optional(Schema.Union([
398
+ Schema.Struct({
399
+ mode: Schema.String,
400
+ }),
401
+ Schema.Null,
402
+ ])),
403
+ queueProducers: Schema.optional(Schema.Union([
404
+ Schema.Record(Schema.String, Schema.Unknown),
405
+ Schema.Null,
406
+ ])),
407
+ r2Buckets: Schema.optional(Schema.Union([
408
+ Schema.Record(Schema.String, Schema.Unknown),
409
+ Schema.Null,
410
+ ])),
411
+ services: Schema.optional(Schema.Union([
412
+ Schema.Record(Schema.String, Schema.Unknown),
413
+ Schema.Null,
414
+ ])),
415
+ vectorizeBindings: Schema.optional(Schema.Union([
416
+ Schema.Record(Schema.String, Schema.Unknown),
417
+ Schema.Null,
418
+ ])),
419
+ wranglerConfigHash: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
420
+ }).pipe(Schema.encodeKeys({
421
+ alwaysUseLatestCompatibilityDate: "always_use_latest_compatibility_date",
422
+ buildImageMajorVersion: "build_image_major_version",
423
+ compatibilityDate: "compatibility_date",
424
+ compatibilityFlags: "compatibility_flags",
425
+ envVars: "env_vars",
426
+ failOpen: "fail_open",
427
+ usageModel: "usage_model",
428
+ aiBindings: "ai_bindings",
429
+ analyticsEngineDatasets: "analytics_engine_datasets",
430
+ browsers: "browsers",
431
+ d1Databases: "d1_databases",
432
+ durableObjectNamespaces: "durable_object_namespaces",
433
+ hyperdriveBindings: "hyperdrive_bindings",
434
+ kvNamespaces: "kv_namespaces",
435
+ limits: "limits",
436
+ mtlsCertificates: "mtls_certificates",
437
+ placement: "placement",
438
+ queueProducers: "queue_producers",
439
+ r2Buckets: "r2_buckets",
440
+ services: "services",
441
+ vectorizeBindings: "vectorize_bindings",
442
+ wranglerConfigHash: "wrangler_config_hash",
443
+ })),
444
+ Schema.Null,
445
+ ])),
440
446
  }),
441
447
  framework: Schema.String,
442
448
  frameworkVersion: Schema.String,
@@ -885,204 +891,210 @@ export const ListProjectsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend((
885
891
  ]),
886
892
  createdOn: Schema.String,
887
893
  deploymentConfigs: Schema.Struct({
888
- preview: Schema.Struct({
889
- alwaysUseLatestCompatibilityDate: Schema.Boolean,
890
- buildImageMajorVersion: Schema.Number,
891
- compatibilityDate: Schema.String,
892
- compatibilityFlags: Schema.Array(Schema.String),
893
- envVars: Schema.Union([
894
- Schema.Record(Schema.String, Schema.Unknown),
895
- Schema.Null,
896
- ]),
897
- failOpen: Schema.Boolean,
898
- usageModel: Schema.Union([
899
- Schema.Literals(["standard", "bundled", "unbound"]),
900
- Schema.String,
901
- ]),
902
- aiBindings: Schema.optional(Schema.Union([
903
- Schema.Record(Schema.String, Schema.Unknown),
904
- Schema.Null,
905
- ])),
906
- analyticsEngineDatasets: Schema.optional(Schema.Union([
907
- Schema.Record(Schema.String, Schema.Unknown),
908
- Schema.Null,
909
- ])),
910
- browsers: Schema.optional(Schema.Union([
911
- Schema.Record(Schema.String, Schema.Unknown),
912
- Schema.Null,
913
- ])),
914
- d1Databases: Schema.optional(Schema.Union([
915
- Schema.Record(Schema.String, Schema.Unknown),
916
- Schema.Null,
917
- ])),
918
- durableObjectNamespaces: Schema.optional(Schema.Union([
919
- Schema.Record(Schema.String, Schema.Unknown),
920
- Schema.Null,
921
- ])),
922
- hyperdriveBindings: Schema.optional(Schema.Union([
923
- Schema.Record(Schema.String, Schema.Unknown),
924
- Schema.Null,
925
- ])),
926
- kvNamespaces: Schema.optional(Schema.Union([
927
- Schema.Record(Schema.String, Schema.Unknown),
928
- Schema.Null,
929
- ])),
930
- limits: Schema.optional(Schema.Union([
931
- Schema.Struct({
932
- cpuMs: Schema.Number,
933
- }).pipe(Schema.encodeKeys({ cpuMs: "cpu_ms" })),
934
- Schema.Null,
935
- ])),
936
- mtlsCertificates: Schema.optional(Schema.Union([
937
- Schema.Record(Schema.String, Schema.Unknown),
938
- Schema.Null,
939
- ])),
940
- placement: Schema.optional(Schema.Union([
941
- Schema.Struct({
942
- mode: Schema.String,
943
- }),
944
- Schema.Null,
945
- ])),
946
- queueProducers: Schema.optional(Schema.Union([
947
- Schema.Record(Schema.String, Schema.Unknown),
948
- Schema.Null,
949
- ])),
950
- r2Buckets: Schema.optional(Schema.Union([
951
- Schema.Record(Schema.String, Schema.Unknown),
952
- Schema.Null,
953
- ])),
954
- services: Schema.optional(Schema.Union([
955
- Schema.Record(Schema.String, Schema.Unknown),
956
- Schema.Null,
957
- ])),
958
- vectorizeBindings: Schema.optional(Schema.Union([
959
- Schema.Record(Schema.String, Schema.Unknown),
960
- Schema.Null,
961
- ])),
962
- wranglerConfigHash: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
963
- }).pipe(Schema.encodeKeys({
964
- alwaysUseLatestCompatibilityDate: "always_use_latest_compatibility_date",
965
- buildImageMajorVersion: "build_image_major_version",
966
- compatibilityDate: "compatibility_date",
967
- compatibilityFlags: "compatibility_flags",
968
- envVars: "env_vars",
969
- failOpen: "fail_open",
970
- usageModel: "usage_model",
971
- aiBindings: "ai_bindings",
972
- analyticsEngineDatasets: "analytics_engine_datasets",
973
- browsers: "browsers",
974
- d1Databases: "d1_databases",
975
- durableObjectNamespaces: "durable_object_namespaces",
976
- hyperdriveBindings: "hyperdrive_bindings",
977
- kvNamespaces: "kv_namespaces",
978
- limits: "limits",
979
- mtlsCertificates: "mtls_certificates",
980
- placement: "placement",
981
- queueProducers: "queue_producers",
982
- r2Buckets: "r2_buckets",
983
- services: "services",
984
- vectorizeBindings: "vectorize_bindings",
985
- wranglerConfigHash: "wrangler_config_hash",
986
- })),
987
- production: Schema.Struct({
988
- alwaysUseLatestCompatibilityDate: Schema.Boolean,
989
- buildImageMajorVersion: Schema.Number,
990
- compatibilityDate: Schema.String,
991
- compatibilityFlags: Schema.Array(Schema.String),
992
- envVars: Schema.Union([
993
- Schema.Record(Schema.String, Schema.Unknown),
994
- Schema.Null,
995
- ]),
996
- failOpen: Schema.Boolean,
997
- usageModel: Schema.Union([
998
- Schema.Literals(["standard", "bundled", "unbound"]),
999
- Schema.String,
1000
- ]),
1001
- aiBindings: Schema.optional(Schema.Union([
1002
- Schema.Record(Schema.String, Schema.Unknown),
1003
- Schema.Null,
1004
- ])),
1005
- analyticsEngineDatasets: Schema.optional(Schema.Union([
1006
- Schema.Record(Schema.String, Schema.Unknown),
1007
- Schema.Null,
1008
- ])),
1009
- browsers: Schema.optional(Schema.Union([
1010
- Schema.Record(Schema.String, Schema.Unknown),
1011
- Schema.Null,
1012
- ])),
1013
- d1Databases: Schema.optional(Schema.Union([
1014
- Schema.Record(Schema.String, Schema.Unknown),
1015
- Schema.Null,
1016
- ])),
1017
- durableObjectNamespaces: Schema.optional(Schema.Union([
1018
- Schema.Record(Schema.String, Schema.Unknown),
1019
- Schema.Null,
1020
- ])),
1021
- hyperdriveBindings: Schema.optional(Schema.Union([
1022
- Schema.Record(Schema.String, Schema.Unknown),
1023
- Schema.Null,
1024
- ])),
1025
- kvNamespaces: Schema.optional(Schema.Union([
1026
- Schema.Record(Schema.String, Schema.Unknown),
1027
- Schema.Null,
1028
- ])),
1029
- limits: Schema.optional(Schema.Union([
1030
- Schema.Struct({
1031
- cpuMs: Schema.Number,
1032
- }).pipe(Schema.encodeKeys({ cpuMs: "cpu_ms" })),
1033
- Schema.Null,
1034
- ])),
1035
- mtlsCertificates: Schema.optional(Schema.Union([
1036
- Schema.Record(Schema.String, Schema.Unknown),
1037
- Schema.Null,
1038
- ])),
1039
- placement: Schema.optional(Schema.Union([
1040
- Schema.Struct({
1041
- mode: Schema.String,
1042
- }),
1043
- Schema.Null,
1044
- ])),
1045
- queueProducers: Schema.optional(Schema.Union([
1046
- Schema.Record(Schema.String, Schema.Unknown),
1047
- Schema.Null,
1048
- ])),
1049
- r2Buckets: Schema.optional(Schema.Union([
1050
- Schema.Record(Schema.String, Schema.Unknown),
1051
- Schema.Null,
1052
- ])),
1053
- services: Schema.optional(Schema.Union([
1054
- Schema.Record(Schema.String, Schema.Unknown),
1055
- Schema.Null,
1056
- ])),
1057
- vectorizeBindings: Schema.optional(Schema.Union([
1058
- Schema.Record(Schema.String, Schema.Unknown),
1059
- Schema.Null,
1060
- ])),
1061
- wranglerConfigHash: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1062
- }).pipe(Schema.encodeKeys({
1063
- alwaysUseLatestCompatibilityDate: "always_use_latest_compatibility_date",
1064
- buildImageMajorVersion: "build_image_major_version",
1065
- compatibilityDate: "compatibility_date",
1066
- compatibilityFlags: "compatibility_flags",
1067
- envVars: "env_vars",
1068
- failOpen: "fail_open",
1069
- usageModel: "usage_model",
1070
- aiBindings: "ai_bindings",
1071
- analyticsEngineDatasets: "analytics_engine_datasets",
1072
- browsers: "browsers",
1073
- d1Databases: "d1_databases",
1074
- durableObjectNamespaces: "durable_object_namespaces",
1075
- hyperdriveBindings: "hyperdrive_bindings",
1076
- kvNamespaces: "kv_namespaces",
1077
- limits: "limits",
1078
- mtlsCertificates: "mtls_certificates",
1079
- placement: "placement",
1080
- queueProducers: "queue_producers",
1081
- r2Buckets: "r2_buckets",
1082
- services: "services",
1083
- vectorizeBindings: "vectorize_bindings",
1084
- wranglerConfigHash: "wrangler_config_hash",
1085
- })),
894
+ preview: Schema.optional(Schema.Union([
895
+ Schema.Struct({
896
+ alwaysUseLatestCompatibilityDate: Schema.Boolean,
897
+ buildImageMajorVersion: Schema.Number,
898
+ compatibilityDate: Schema.String,
899
+ compatibilityFlags: Schema.Array(Schema.String),
900
+ envVars: Schema.Union([
901
+ Schema.Record(Schema.String, Schema.Unknown),
902
+ Schema.Null,
903
+ ]),
904
+ failOpen: Schema.Boolean,
905
+ usageModel: Schema.Union([
906
+ Schema.Literals(["standard", "bundled", "unbound"]),
907
+ Schema.String,
908
+ ]),
909
+ aiBindings: Schema.optional(Schema.Union([
910
+ Schema.Record(Schema.String, Schema.Unknown),
911
+ Schema.Null,
912
+ ])),
913
+ analyticsEngineDatasets: Schema.optional(Schema.Union([
914
+ Schema.Record(Schema.String, Schema.Unknown),
915
+ Schema.Null,
916
+ ])),
917
+ browsers: Schema.optional(Schema.Union([
918
+ Schema.Record(Schema.String, Schema.Unknown),
919
+ Schema.Null,
920
+ ])),
921
+ d1Databases: Schema.optional(Schema.Union([
922
+ Schema.Record(Schema.String, Schema.Unknown),
923
+ Schema.Null,
924
+ ])),
925
+ durableObjectNamespaces: Schema.optional(Schema.Union([
926
+ Schema.Record(Schema.String, Schema.Unknown),
927
+ Schema.Null,
928
+ ])),
929
+ hyperdriveBindings: Schema.optional(Schema.Union([
930
+ Schema.Record(Schema.String, Schema.Unknown),
931
+ Schema.Null,
932
+ ])),
933
+ kvNamespaces: Schema.optional(Schema.Union([
934
+ Schema.Record(Schema.String, Schema.Unknown),
935
+ Schema.Null,
936
+ ])),
937
+ limits: Schema.optional(Schema.Union([
938
+ Schema.Struct({
939
+ cpuMs: Schema.Number,
940
+ }).pipe(Schema.encodeKeys({ cpuMs: "cpu_ms" })),
941
+ Schema.Null,
942
+ ])),
943
+ mtlsCertificates: Schema.optional(Schema.Union([
944
+ Schema.Record(Schema.String, Schema.Unknown),
945
+ Schema.Null,
946
+ ])),
947
+ placement: Schema.optional(Schema.Union([
948
+ Schema.Struct({
949
+ mode: Schema.String,
950
+ }),
951
+ Schema.Null,
952
+ ])),
953
+ queueProducers: Schema.optional(Schema.Union([
954
+ Schema.Record(Schema.String, Schema.Unknown),
955
+ Schema.Null,
956
+ ])),
957
+ r2Buckets: Schema.optional(Schema.Union([
958
+ Schema.Record(Schema.String, Schema.Unknown),
959
+ Schema.Null,
960
+ ])),
961
+ services: Schema.optional(Schema.Union([
962
+ Schema.Record(Schema.String, Schema.Unknown),
963
+ Schema.Null,
964
+ ])),
965
+ vectorizeBindings: Schema.optional(Schema.Union([
966
+ Schema.Record(Schema.String, Schema.Unknown),
967
+ Schema.Null,
968
+ ])),
969
+ wranglerConfigHash: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
970
+ }).pipe(Schema.encodeKeys({
971
+ alwaysUseLatestCompatibilityDate: "always_use_latest_compatibility_date",
972
+ buildImageMajorVersion: "build_image_major_version",
973
+ compatibilityDate: "compatibility_date",
974
+ compatibilityFlags: "compatibility_flags",
975
+ envVars: "env_vars",
976
+ failOpen: "fail_open",
977
+ usageModel: "usage_model",
978
+ aiBindings: "ai_bindings",
979
+ analyticsEngineDatasets: "analytics_engine_datasets",
980
+ browsers: "browsers",
981
+ d1Databases: "d1_databases",
982
+ durableObjectNamespaces: "durable_object_namespaces",
983
+ hyperdriveBindings: "hyperdrive_bindings",
984
+ kvNamespaces: "kv_namespaces",
985
+ limits: "limits",
986
+ mtlsCertificates: "mtls_certificates",
987
+ placement: "placement",
988
+ queueProducers: "queue_producers",
989
+ r2Buckets: "r2_buckets",
990
+ services: "services",
991
+ vectorizeBindings: "vectorize_bindings",
992
+ wranglerConfigHash: "wrangler_config_hash",
993
+ })),
994
+ Schema.Null,
995
+ ])),
996
+ production: Schema.optional(Schema.Union([
997
+ Schema.Struct({
998
+ alwaysUseLatestCompatibilityDate: Schema.Boolean,
999
+ buildImageMajorVersion: Schema.Number,
1000
+ compatibilityDate: Schema.String,
1001
+ compatibilityFlags: Schema.Array(Schema.String),
1002
+ envVars: Schema.Union([
1003
+ Schema.Record(Schema.String, Schema.Unknown),
1004
+ Schema.Null,
1005
+ ]),
1006
+ failOpen: Schema.Boolean,
1007
+ usageModel: Schema.Union([
1008
+ Schema.Literals(["standard", "bundled", "unbound"]),
1009
+ Schema.String,
1010
+ ]),
1011
+ aiBindings: Schema.optional(Schema.Union([
1012
+ Schema.Record(Schema.String, Schema.Unknown),
1013
+ Schema.Null,
1014
+ ])),
1015
+ analyticsEngineDatasets: Schema.optional(Schema.Union([
1016
+ Schema.Record(Schema.String, Schema.Unknown),
1017
+ Schema.Null,
1018
+ ])),
1019
+ browsers: Schema.optional(Schema.Union([
1020
+ Schema.Record(Schema.String, Schema.Unknown),
1021
+ Schema.Null,
1022
+ ])),
1023
+ d1Databases: Schema.optional(Schema.Union([
1024
+ Schema.Record(Schema.String, Schema.Unknown),
1025
+ Schema.Null,
1026
+ ])),
1027
+ durableObjectNamespaces: Schema.optional(Schema.Union([
1028
+ Schema.Record(Schema.String, Schema.Unknown),
1029
+ Schema.Null,
1030
+ ])),
1031
+ hyperdriveBindings: Schema.optional(Schema.Union([
1032
+ Schema.Record(Schema.String, Schema.Unknown),
1033
+ Schema.Null,
1034
+ ])),
1035
+ kvNamespaces: Schema.optional(Schema.Union([
1036
+ Schema.Record(Schema.String, Schema.Unknown),
1037
+ Schema.Null,
1038
+ ])),
1039
+ limits: Schema.optional(Schema.Union([
1040
+ Schema.Struct({
1041
+ cpuMs: Schema.Number,
1042
+ }).pipe(Schema.encodeKeys({ cpuMs: "cpu_ms" })),
1043
+ Schema.Null,
1044
+ ])),
1045
+ mtlsCertificates: Schema.optional(Schema.Union([
1046
+ Schema.Record(Schema.String, Schema.Unknown),
1047
+ Schema.Null,
1048
+ ])),
1049
+ placement: Schema.optional(Schema.Union([
1050
+ Schema.Struct({
1051
+ mode: Schema.String,
1052
+ }),
1053
+ Schema.Null,
1054
+ ])),
1055
+ queueProducers: Schema.optional(Schema.Union([
1056
+ Schema.Record(Schema.String, Schema.Unknown),
1057
+ Schema.Null,
1058
+ ])),
1059
+ r2Buckets: Schema.optional(Schema.Union([
1060
+ Schema.Record(Schema.String, Schema.Unknown),
1061
+ Schema.Null,
1062
+ ])),
1063
+ services: Schema.optional(Schema.Union([
1064
+ Schema.Record(Schema.String, Schema.Unknown),
1065
+ Schema.Null,
1066
+ ])),
1067
+ vectorizeBindings: Schema.optional(Schema.Union([
1068
+ Schema.Record(Schema.String, Schema.Unknown),
1069
+ Schema.Null,
1070
+ ])),
1071
+ wranglerConfigHash: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1072
+ }).pipe(Schema.encodeKeys({
1073
+ alwaysUseLatestCompatibilityDate: "always_use_latest_compatibility_date",
1074
+ buildImageMajorVersion: "build_image_major_version",
1075
+ compatibilityDate: "compatibility_date",
1076
+ compatibilityFlags: "compatibility_flags",
1077
+ envVars: "env_vars",
1078
+ failOpen: "fail_open",
1079
+ usageModel: "usage_model",
1080
+ aiBindings: "ai_bindings",
1081
+ analyticsEngineDatasets: "analytics_engine_datasets",
1082
+ browsers: "browsers",
1083
+ d1Databases: "d1_databases",
1084
+ durableObjectNamespaces: "durable_object_namespaces",
1085
+ hyperdriveBindings: "hyperdrive_bindings",
1086
+ kvNamespaces: "kv_namespaces",
1087
+ limits: "limits",
1088
+ mtlsCertificates: "mtls_certificates",
1089
+ placement: "placement",
1090
+ queueProducers: "queue_producers",
1091
+ r2Buckets: "r2_buckets",
1092
+ services: "services",
1093
+ vectorizeBindings: "vectorize_bindings",
1094
+ wranglerConfigHash: "wrangler_config_hash",
1095
+ })),
1096
+ Schema.Null,
1097
+ ])),
1086
1098
  }),
1087
1099
  framework: Schema.String,
1088
1100
  frameworkVersion: Schema.String,