alchemy 2.0.0-beta.65 → 2.0.0-beta.66

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 (950) hide show
  1. package/bin/exec.js +433 -181
  2. package/bin/exec.js.map +1 -1
  3. package/lib/AWS/ApiGateway/common.d.ts.map +1 -1
  4. package/lib/AWS/ApiGateway/common.js +8 -1
  5. package/lib/AWS/ApiGateway/common.js.map +1 -1
  6. package/lib/AWS/Bedrock/LanguageModel.d.ts +208 -0
  7. package/lib/AWS/Bedrock/LanguageModel.d.ts.map +1 -0
  8. package/lib/AWS/Bedrock/LanguageModel.js +508 -0
  9. package/lib/AWS/Bedrock/LanguageModel.js.map +1 -0
  10. package/lib/AWS/Bedrock/LanguageModelHttp.d.ts +10 -0
  11. package/lib/AWS/Bedrock/LanguageModelHttp.d.ts.map +1 -0
  12. package/lib/AWS/Bedrock/LanguageModelHttp.js +26 -0
  13. package/lib/AWS/Bedrock/LanguageModelHttp.js.map +1 -0
  14. package/lib/AWS/Bedrock/index.d.ts +2 -0
  15. package/lib/AWS/Bedrock/index.d.ts.map +1 -1
  16. package/lib/AWS/Bedrock/index.js +2 -0
  17. package/lib/AWS/Bedrock/index.js.map +1 -1
  18. package/lib/AWS/CloudFront/Distribution.d.ts +24 -0
  19. package/lib/AWS/CloudFront/Distribution.d.ts.map +1 -1
  20. package/lib/AWS/CloudFront/Distribution.js +89 -4
  21. package/lib/AWS/CloudFront/Distribution.js.map +1 -1
  22. package/lib/AWS/CostExplorer/AnomalyMonitor.d.ts +1 -1
  23. package/lib/AWS/CostExplorer/AnomalyMonitor.d.ts.map +1 -1
  24. package/lib/AWS/CostExplorer/AnomalySubscription.d.ts +1 -1
  25. package/lib/AWS/CostExplorer/AnomalySubscription.d.ts.map +1 -1
  26. package/lib/AWS/CostExplorer/BindingHttp.d.ts +3 -3
  27. package/lib/AWS/CostExplorer/BindingHttp.d.ts.map +1 -1
  28. package/lib/AWS/CostExplorer/CostCategory.d.ts +1 -1
  29. package/lib/AWS/CostExplorer/CostCategory.d.ts.map +1 -1
  30. package/lib/AWS/CostExplorer/GetAnomaliesHttp.d.ts +1 -1
  31. package/lib/AWS/CostExplorer/GetAnomaliesHttp.d.ts.map +1 -1
  32. package/lib/AWS/CostExplorer/GetApproximateUsageRecordsHttp.d.ts +1 -1
  33. package/lib/AWS/CostExplorer/GetApproximateUsageRecordsHttp.d.ts.map +1 -1
  34. package/lib/AWS/CostExplorer/GetCommitmentPurchaseAnalysisHttp.d.ts +1 -1
  35. package/lib/AWS/CostExplorer/GetCommitmentPurchaseAnalysisHttp.d.ts.map +1 -1
  36. package/lib/AWS/CostExplorer/GetCostAndUsageComparisonsHttp.d.ts +1 -1
  37. package/lib/AWS/CostExplorer/GetCostAndUsageComparisonsHttp.d.ts.map +1 -1
  38. package/lib/AWS/CostExplorer/GetCostAndUsageHttp.d.ts +1 -1
  39. package/lib/AWS/CostExplorer/GetCostAndUsageHttp.d.ts.map +1 -1
  40. package/lib/AWS/CostExplorer/GetCostAndUsageWithResourcesHttp.d.ts +1 -1
  41. package/lib/AWS/CostExplorer/GetCostAndUsageWithResourcesHttp.d.ts.map +1 -1
  42. package/lib/AWS/CostExplorer/GetCostCategoriesHttp.d.ts +1 -1
  43. package/lib/AWS/CostExplorer/GetCostCategoriesHttp.d.ts.map +1 -1
  44. package/lib/AWS/CostExplorer/GetCostComparisonDriversHttp.d.ts +1 -1
  45. package/lib/AWS/CostExplorer/GetCostComparisonDriversHttp.d.ts.map +1 -1
  46. package/lib/AWS/CostExplorer/GetCostForecastHttp.d.ts +1 -1
  47. package/lib/AWS/CostExplorer/GetCostForecastHttp.d.ts.map +1 -1
  48. package/lib/AWS/CostExplorer/GetDimensionValuesHttp.d.ts +1 -1
  49. package/lib/AWS/CostExplorer/GetDimensionValuesHttp.d.ts.map +1 -1
  50. package/lib/AWS/CostExplorer/GetReservationCoverageHttp.d.ts +1 -1
  51. package/lib/AWS/CostExplorer/GetReservationCoverageHttp.d.ts.map +1 -1
  52. package/lib/AWS/CostExplorer/GetReservationPurchaseRecommendationHttp.d.ts +1 -1
  53. package/lib/AWS/CostExplorer/GetReservationPurchaseRecommendationHttp.d.ts.map +1 -1
  54. package/lib/AWS/CostExplorer/GetReservationUtilizationHttp.d.ts +1 -1
  55. package/lib/AWS/CostExplorer/GetReservationUtilizationHttp.d.ts.map +1 -1
  56. package/lib/AWS/CostExplorer/GetRightsizingRecommendationHttp.d.ts +1 -1
  57. package/lib/AWS/CostExplorer/GetRightsizingRecommendationHttp.d.ts.map +1 -1
  58. package/lib/AWS/CostExplorer/GetSavingsPlanPurchaseRecommendationDetailsHttp.d.ts +1 -1
  59. package/lib/AWS/CostExplorer/GetSavingsPlanPurchaseRecommendationDetailsHttp.d.ts.map +1 -1
  60. package/lib/AWS/CostExplorer/GetSavingsPlansCoverageHttp.d.ts +1 -1
  61. package/lib/AWS/CostExplorer/GetSavingsPlansCoverageHttp.d.ts.map +1 -1
  62. package/lib/AWS/CostExplorer/GetSavingsPlansPurchaseRecommendationHttp.d.ts +1 -1
  63. package/lib/AWS/CostExplorer/GetSavingsPlansPurchaseRecommendationHttp.d.ts.map +1 -1
  64. package/lib/AWS/CostExplorer/GetSavingsPlansUtilizationDetailsHttp.d.ts +1 -1
  65. package/lib/AWS/CostExplorer/GetSavingsPlansUtilizationDetailsHttp.d.ts.map +1 -1
  66. package/lib/AWS/CostExplorer/GetSavingsPlansUtilizationHttp.d.ts +1 -1
  67. package/lib/AWS/CostExplorer/GetSavingsPlansUtilizationHttp.d.ts.map +1 -1
  68. package/lib/AWS/CostExplorer/GetTagsHttp.d.ts +1 -1
  69. package/lib/AWS/CostExplorer/GetTagsHttp.d.ts.map +1 -1
  70. package/lib/AWS/CostExplorer/GetUsageForecastHttp.d.ts +1 -1
  71. package/lib/AWS/CostExplorer/GetUsageForecastHttp.d.ts.map +1 -1
  72. package/lib/AWS/CostExplorer/ListCommitmentPurchaseAnalysesHttp.d.ts +1 -1
  73. package/lib/AWS/CostExplorer/ListCommitmentPurchaseAnalysesHttp.d.ts.map +1 -1
  74. package/lib/AWS/CostExplorer/ListCostAllocationTagBackfillHistoryHttp.d.ts +1 -1
  75. package/lib/AWS/CostExplorer/ListCostAllocationTagBackfillHistoryHttp.d.ts.map +1 -1
  76. package/lib/AWS/CostExplorer/ListCostAllocationTagsHttp.d.ts +1 -1
  77. package/lib/AWS/CostExplorer/ListCostAllocationTagsHttp.d.ts.map +1 -1
  78. package/lib/AWS/CostExplorer/ListCostCategoryResourceAssociationsHttp.d.ts +1 -1
  79. package/lib/AWS/CostExplorer/ListCostCategoryResourceAssociationsHttp.d.ts.map +1 -1
  80. package/lib/AWS/CostExplorer/ListSavingsPlansPurchaseRecommendationGenerationHttp.d.ts +1 -1
  81. package/lib/AWS/CostExplorer/ListSavingsPlansPurchaseRecommendationGenerationHttp.d.ts.map +1 -1
  82. package/lib/AWS/CostExplorer/ProvideAnomalyFeedbackHttp.d.ts +1 -1
  83. package/lib/AWS/CostExplorer/ProvideAnomalyFeedbackHttp.d.ts.map +1 -1
  84. package/lib/AWS/CostExplorer/StartCommitmentPurchaseAnalysisHttp.d.ts +1 -1
  85. package/lib/AWS/CostExplorer/StartCommitmentPurchaseAnalysisHttp.d.ts.map +1 -1
  86. package/lib/AWS/CostExplorer/StartCostAllocationTagBackfillHttp.d.ts +1 -1
  87. package/lib/AWS/CostExplorer/StartCostAllocationTagBackfillHttp.d.ts.map +1 -1
  88. package/lib/AWS/CostExplorer/StartSavingsPlansPurchaseRecommendationGenerationHttp.d.ts +1 -1
  89. package/lib/AWS/CostExplorer/StartSavingsPlansPurchaseRecommendationGenerationHttp.d.ts.map +1 -1
  90. package/lib/AWS/CostExplorer/UpdateCostAllocationTagsStatusHttp.d.ts +1 -1
  91. package/lib/AWS/CostExplorer/UpdateCostAllocationTagsStatusHttp.d.ts.map +1 -1
  92. package/lib/AWS/CostExplorer/common.d.ts +5 -3
  93. package/lib/AWS/CostExplorer/common.d.ts.map +1 -1
  94. package/lib/AWS/CostExplorer/common.js +16 -1
  95. package/lib/AWS/CostExplorer/common.js.map +1 -1
  96. package/lib/AWS/DataSync/Task.d.ts.map +1 -1
  97. package/lib/AWS/DataSync/Task.js +16 -2
  98. package/lib/AWS/DataSync/Task.js.map +1 -1
  99. package/lib/AWS/EC2/Vpc.d.ts.map +1 -1
  100. package/lib/AWS/EC2/Vpc.js +15 -2
  101. package/lib/AWS/EC2/Vpc.js.map +1 -1
  102. package/lib/AWS/EC2/hosted.d.ts.map +1 -1
  103. package/lib/AWS/EC2/hosted.js +10 -2
  104. package/lib/AWS/EC2/hosted.js.map +1 -1
  105. package/lib/AWS/ECR/Image.d.ts +132 -13
  106. package/lib/AWS/ECR/Image.d.ts.map +1 -1
  107. package/lib/AWS/ECR/ImageSource.d.ts.map +1 -1
  108. package/lib/AWS/ECR/ImageSource.js +10 -2
  109. package/lib/AWS/ECR/ImageSource.js.map +1 -1
  110. package/lib/AWS/ECR/Repository.d.ts +2 -0
  111. package/lib/AWS/ECR/Repository.d.ts.map +1 -1
  112. package/lib/AWS/ECR/Repository.js +28 -3
  113. package/lib/AWS/ECR/Repository.js.map +1 -1
  114. package/lib/AWS/ECS/Service.d.ts +27 -1
  115. package/lib/AWS/ECS/Service.d.ts.map +1 -1
  116. package/lib/AWS/ECS/Service.js +184 -22
  117. package/lib/AWS/ECS/Service.js.map +1 -1
  118. package/lib/AWS/ECS/Task.d.ts +32 -8
  119. package/lib/AWS/ECS/Task.d.ts.map +1 -1
  120. package/lib/AWS/ECS/Task.js +62 -29
  121. package/lib/AWS/ECS/Task.js.map +1 -1
  122. package/lib/AWS/EKS/Deployment.d.ts.map +1 -1
  123. package/lib/AWS/EKS/Deployment.js +10 -2
  124. package/lib/AWS/EKS/Deployment.js.map +1 -1
  125. package/lib/AWS/EKS/Job.d.ts.map +1 -1
  126. package/lib/AWS/EKS/Job.js +10 -2
  127. package/lib/AWS/EKS/Job.js.map +1 -1
  128. package/lib/AWS/Lambda/Function.d.ts +15 -0
  129. package/lib/AWS/Lambda/Function.d.ts.map +1 -1
  130. package/lib/AWS/Lambda/Function.js +67 -29
  131. package/lib/AWS/Lambda/Function.js.map +1 -1
  132. package/lib/AWS/Lambda/HttpServer.d.ts.map +1 -1
  133. package/lib/AWS/Lambda/HttpServer.js +7 -1
  134. package/lib/AWS/Lambda/HttpServer.js.map +1 -1
  135. package/lib/AWS/Lambda/LayerVersion.d.ts +176 -0
  136. package/lib/AWS/Lambda/LayerVersion.d.ts.map +1 -0
  137. package/lib/AWS/Lambda/LayerVersion.js +288 -0
  138. package/lib/AWS/Lambda/LayerVersion.js.map +1 -0
  139. package/lib/AWS/Lambda/MicrovmBundle.d.ts.map +1 -1
  140. package/lib/AWS/Lambda/MicrovmBundle.js +10 -2
  141. package/lib/AWS/Lambda/MicrovmBundle.js.map +1 -1
  142. package/lib/AWS/Lambda/index.d.ts +1 -0
  143. package/lib/AWS/Lambda/index.d.ts.map +1 -1
  144. package/lib/AWS/Lambda/index.js +1 -0
  145. package/lib/AWS/Lambda/index.js.map +1 -1
  146. package/lib/AWS/Providers.d.ts.map +1 -1
  147. package/lib/AWS/Providers.js +6 -1
  148. package/lib/AWS/Providers.js.map +1 -1
  149. package/lib/AWS/SES/ActiveReceiptRuleSet.d.ts +40 -0
  150. package/lib/AWS/SES/ActiveReceiptRuleSet.d.ts.map +1 -0
  151. package/lib/AWS/SES/ActiveReceiptRuleSet.js +58 -0
  152. package/lib/AWS/SES/ActiveReceiptRuleSet.js.map +1 -0
  153. package/lib/AWS/SES/ReceiptFilter.d.ts +67 -0
  154. package/lib/AWS/SES/ReceiptFilter.d.ts.map +1 -0
  155. package/lib/AWS/SES/ReceiptFilter.js +92 -0
  156. package/lib/AWS/SES/ReceiptFilter.js.map +1 -0
  157. package/lib/AWS/SES/ReceiptRule.d.ts +133 -0
  158. package/lib/AWS/SES/ReceiptRule.d.ts.map +1 -0
  159. package/lib/AWS/SES/ReceiptRule.js +178 -0
  160. package/lib/AWS/SES/ReceiptRule.js.map +1 -0
  161. package/lib/AWS/SES/ReceiptRuleSet.d.ts +55 -0
  162. package/lib/AWS/SES/ReceiptRuleSet.d.ts.map +1 -0
  163. package/lib/AWS/SES/ReceiptRuleSet.js +112 -0
  164. package/lib/AWS/SES/ReceiptRuleSet.js.map +1 -0
  165. package/lib/AWS/SES/SendBounce.d.ts +37 -0
  166. package/lib/AWS/SES/SendBounce.d.ts.map +1 -0
  167. package/lib/AWS/SES/SendBounce.js +3 -0
  168. package/lib/AWS/SES/SendBounce.js.map +1 -0
  169. package/lib/AWS/SES/SendBounceHttp.d.ts +4 -0
  170. package/lib/AWS/SES/SendBounceHttp.d.ts.map +1 -0
  171. package/lib/AWS/SES/SendBounceHttp.js +10 -0
  172. package/lib/AWS/SES/SendBounceHttp.js.map +1 -0
  173. package/lib/AWS/SES/index.d.ts +6 -0
  174. package/lib/AWS/SES/index.d.ts.map +1 -1
  175. package/lib/AWS/SES/index.js +6 -0
  176. package/lib/AWS/SES/index.js.map +1 -1
  177. package/lib/AWS/StateStore/State.d.ts +11 -0
  178. package/lib/AWS/StateStore/State.d.ts.map +1 -1
  179. package/lib/AWS/StateStore/State.js +117 -38
  180. package/lib/AWS/StateStore/State.js.map +1 -1
  181. package/lib/Apply.d.ts +37 -1
  182. package/lib/Apply.d.ts.map +1 -1
  183. package/lib/Apply.js +270 -194
  184. package/lib/Apply.js.map +1 -1
  185. package/lib/Axiom/Telemetry.d.ts +66 -0
  186. package/lib/Axiom/Telemetry.d.ts.map +1 -0
  187. package/lib/Axiom/Telemetry.js +69 -0
  188. package/lib/Axiom/Telemetry.js.map +1 -0
  189. package/lib/Axiom/index.d.ts +1 -0
  190. package/lib/Axiom/index.d.ts.map +1 -1
  191. package/lib/Axiom/index.js +1 -0
  192. package/lib/Axiom/index.js.map +1 -1
  193. package/lib/Bundle/Bundle.d.ts +1 -1
  194. package/lib/Bundle/Bundle.d.ts.map +1 -1
  195. package/lib/Bundle/Bundle.js +14 -6
  196. package/lib/Bundle/Bundle.js.map +1 -1
  197. package/lib/Bundle/BundleAnalyzerPlugin.d.ts +1 -1
  198. package/lib/Bundle/BundleAnalyzerPlugin.d.ts.map +1 -1
  199. package/lib/Bundle/BundleAnalyzerPlugin.js +10 -5
  200. package/lib/Bundle/BundleAnalyzerPlugin.js.map +1 -1
  201. package/lib/Bundle/PurePlugin.d.ts +1 -1
  202. package/lib/Bundle/PurePlugin.d.ts.map +1 -1
  203. package/lib/Bundle/PurePlugin.js +15 -7
  204. package/lib/Bundle/PurePlugin.js.map +1 -1
  205. package/lib/Cli/checkVersion.d.ts +11 -5
  206. package/lib/Cli/checkVersion.d.ts.map +1 -1
  207. package/lib/Cli/checkVersion.js +73 -12
  208. package/lib/Cli/checkVersion.js.map +1 -1
  209. package/lib/Cli/commands/cloudflare.d.ts +1 -1
  210. package/lib/Cli/commands/deploy.d.ts.map +1 -1
  211. package/lib/Cli/commands/deploy.js +3 -11
  212. package/lib/Cli/commands/deploy.js.map +1 -1
  213. package/lib/Cli/commands/logs.d.ts.map +1 -1
  214. package/lib/Cli/commands/logs.js +3 -1
  215. package/lib/Cli/commands/logs.js.map +1 -1
  216. package/lib/Cli/commands/tail.d.ts.map +1 -1
  217. package/lib/Cli/commands/tail.js +3 -1
  218. package/lib/Cli/commands/tail.js.map +1 -1
  219. package/lib/Cli/main.d.ts.map +1 -1
  220. package/lib/Cli/main.js +5 -4
  221. package/lib/Cli/main.js.map +1 -1
  222. package/lib/Cloudflare/AI/Search.d.ts +4 -15
  223. package/lib/Cloudflare/AI/Search.d.ts.map +1 -1
  224. package/lib/Cloudflare/AI/Search.js +4 -6
  225. package/lib/Cloudflare/AI/Search.js.map +1 -1
  226. package/lib/Cloudflare/AI/SearchInstance.d.ts +7 -26
  227. package/lib/Cloudflare/AI/SearchInstance.d.ts.map +1 -1
  228. package/lib/Cloudflare/AI/SearchInstance.js +7 -26
  229. package/lib/Cloudflare/AI/SearchInstance.js.map +1 -1
  230. package/lib/Cloudflare/ApiToken/AccountApiToken.d.ts +3 -0
  231. package/lib/Cloudflare/ApiToken/AccountApiToken.d.ts.map +1 -1
  232. package/lib/Cloudflare/ApiToken/AccountApiToken.js +3 -0
  233. package/lib/Cloudflare/ApiToken/AccountApiToken.js.map +1 -1
  234. package/lib/Cloudflare/Auth/AuthProvider.d.ts +2 -1
  235. package/lib/Cloudflare/Auth/AuthProvider.d.ts.map +1 -1
  236. package/lib/Cloudflare/Auth/AuthProvider.js +8 -3
  237. package/lib/Cloudflare/Auth/AuthProvider.js.map +1 -1
  238. package/lib/Cloudflare/Auth/OAuthClient.d.ts +5 -0
  239. package/lib/Cloudflare/Auth/OAuthClient.d.ts.map +1 -1
  240. package/lib/Cloudflare/Auth/OAuthClient.js +50 -4
  241. package/lib/Cloudflare/Auth/OAuthClient.js.map +1 -1
  242. package/lib/Cloudflare/Containers/Container.d.ts +81 -3
  243. package/lib/Cloudflare/Containers/Container.d.ts.map +1 -1
  244. package/lib/Cloudflare/Containers/Container.js +70 -0
  245. package/lib/Cloudflare/Containers/Container.js.map +1 -1
  246. package/lib/Cloudflare/Containers/ContainerApplication.d.ts +22 -1
  247. package/lib/Cloudflare/Containers/ContainerApplication.d.ts.map +1 -1
  248. package/lib/Cloudflare/Containers/ContainerApplication.js +4 -1
  249. package/lib/Cloudflare/Containers/ContainerApplication.js.map +1 -1
  250. package/lib/Cloudflare/Containers/ContainerBundle.d.ts.map +1 -1
  251. package/lib/Cloudflare/Containers/ContainerBundle.js +10 -2
  252. package/lib/Cloudflare/Containers/ContainerBundle.js.map +1 -1
  253. package/lib/Cloudflare/Containers/ContainerProvider.d.ts.map +1 -1
  254. package/lib/Cloudflare/Containers/ContainerProvider.js +43 -0
  255. package/lib/Cloudflare/Containers/ContainerProvider.js.map +1 -1
  256. package/lib/Cloudflare/Credentials.d.ts +21 -1
  257. package/lib/Cloudflare/Credentials.d.ts.map +1 -1
  258. package/lib/Cloudflare/Credentials.js +52 -9
  259. package/lib/Cloudflare/Credentials.js.map +1 -1
  260. package/lib/Cloudflare/D1/ApplyMigrations.d.ts +30 -5
  261. package/lib/Cloudflare/D1/ApplyMigrations.d.ts.map +1 -1
  262. package/lib/Cloudflare/D1/ApplyMigrations.js +36 -26
  263. package/lib/Cloudflare/D1/ApplyMigrations.js.map +1 -1
  264. package/lib/Cloudflare/D1/Database.d.ts +18 -1
  265. package/lib/Cloudflare/D1/Database.d.ts.map +1 -1
  266. package/lib/Cloudflare/D1/Database.js +134 -2
  267. package/lib/Cloudflare/D1/Database.js.map +1 -1
  268. package/lib/Cloudflare/D1/LocalD1Gateway.d.ts +39 -0
  269. package/lib/Cloudflare/D1/LocalD1Gateway.d.ts.map +1 -0
  270. package/lib/Cloudflare/D1/LocalD1Gateway.js +100 -0
  271. package/lib/Cloudflare/D1/LocalD1Gateway.js.map +1 -0
  272. package/lib/Cloudflare/D1/QueryDatabaseHttpClient.d.ts +31 -0
  273. package/lib/Cloudflare/D1/QueryDatabaseHttpClient.d.ts.map +1 -1
  274. package/lib/Cloudflare/D1/QueryDatabaseHttpClient.js +13 -6
  275. package/lib/Cloudflare/D1/QueryDatabaseHttpClient.js.map +1 -1
  276. package/lib/Cloudflare/D1/QueryDatabaseLocal.d.ts.map +1 -1
  277. package/lib/Cloudflare/D1/QueryDatabaseLocal.js +21 -2
  278. package/lib/Cloudflare/D1/QueryDatabaseLocal.js.map +1 -1
  279. package/lib/Cloudflare/Email/Address.d.ts.map +1 -1
  280. package/lib/Cloudflare/Email/Address.js +15 -1
  281. package/lib/Cloudflare/Email/Address.js.map +1 -1
  282. package/lib/Cloudflare/Email/SendBinding.d.ts.map +1 -1
  283. package/lib/Cloudflare/Email/SendBinding.js +1 -0
  284. package/lib/Cloudflare/Email/SendBinding.js.map +1 -1
  285. package/lib/Cloudflare/Email/SendEmail.d.ts +12 -0
  286. package/lib/Cloudflare/Email/SendEmail.d.ts.map +1 -1
  287. package/lib/Cloudflare/Email/SendEmail.js +1 -0
  288. package/lib/Cloudflare/Email/SendEmail.js.map +1 -1
  289. package/lib/Cloudflare/Flagship/App.d.ts.map +1 -1
  290. package/lib/Cloudflare/Flagship/App.js +8 -3
  291. package/lib/Cloudflare/Flagship/App.js.map +1 -1
  292. package/lib/Cloudflare/KV/LocalKVGateway.d.ts +15 -0
  293. package/lib/Cloudflare/KV/LocalKVGateway.d.ts.map +1 -0
  294. package/lib/Cloudflare/KV/LocalKVGateway.js +64 -0
  295. package/lib/Cloudflare/KV/LocalKVGateway.js.map +1 -0
  296. package/lib/Cloudflare/KV/Namespace.d.ts +9 -1
  297. package/lib/Cloudflare/KV/Namespace.d.ts.map +1 -1
  298. package/lib/Cloudflare/KV/Namespace.js +45 -1
  299. package/lib/Cloudflare/KV/Namespace.js.map +1 -1
  300. package/lib/Cloudflare/KV/NamespaceLocal.d.ts +16 -5
  301. package/lib/Cloudflare/KV/NamespaceLocal.d.ts.map +1 -1
  302. package/lib/Cloudflare/KV/NamespaceLocal.js +21 -4
  303. package/lib/Cloudflare/KV/NamespaceLocal.js.map +1 -1
  304. package/lib/Cloudflare/KV/ReadNamespaceLocal.d.ts.map +1 -1
  305. package/lib/Cloudflare/KV/ReadNamespaceLocal.js +5 -1
  306. package/lib/Cloudflare/KV/ReadNamespaceLocal.js.map +1 -1
  307. package/lib/Cloudflare/KV/ReadWriteNamespaceLocal.d.ts.map +1 -1
  308. package/lib/Cloudflare/KV/ReadWriteNamespaceLocal.js +5 -1
  309. package/lib/Cloudflare/KV/ReadWriteNamespaceLocal.js.map +1 -1
  310. package/lib/Cloudflare/KV/WriteNamespaceLocal.d.ts.map +1 -1
  311. package/lib/Cloudflare/KV/WriteNamespaceLocal.js +5 -1
  312. package/lib/Cloudflare/KV/WriteNamespaceLocal.js.map +1 -1
  313. package/lib/Cloudflare/LocalGateway.d.ts +25 -0
  314. package/lib/Cloudflare/LocalGateway.d.ts.map +1 -0
  315. package/lib/Cloudflare/LocalGateway.js +70 -0
  316. package/lib/Cloudflare/LocalGateway.js.map +1 -0
  317. package/lib/Cloudflare/LocalRuntime.d.ts +14 -1
  318. package/lib/Cloudflare/LocalRuntime.d.ts.map +1 -1
  319. package/lib/Cloudflare/LocalRuntime.js +16 -1
  320. package/lib/Cloudflare/LocalRuntime.js.map +1 -1
  321. package/lib/Cloudflare/Logs.d.ts.map +1 -1
  322. package/lib/Cloudflare/Logs.js +18 -6
  323. package/lib/Cloudflare/Logs.js.map +1 -1
  324. package/lib/Cloudflare/Providers.d.ts +1 -1
  325. package/lib/Cloudflare/Providers.d.ts.map +1 -1
  326. package/lib/Cloudflare/Providers.js +6 -2
  327. package/lib/Cloudflare/Providers.js.map +1 -1
  328. package/lib/Cloudflare/Queues/Consumer.d.ts +16 -3
  329. package/lib/Cloudflare/Queues/Consumer.d.ts.map +1 -1
  330. package/lib/Cloudflare/Queues/Consumer.js +51 -3
  331. package/lib/Cloudflare/Queues/Consumer.js.map +1 -1
  332. package/lib/Cloudflare/Queues/Queue.d.ts +4 -3
  333. package/lib/Cloudflare/Queues/Queue.d.ts.map +1 -1
  334. package/lib/Cloudflare/Queues/Queue.js +7 -17
  335. package/lib/Cloudflare/Queues/Queue.js.map +1 -1
  336. package/lib/Cloudflare/Queues/QueueBinding.d.ts.map +1 -1
  337. package/lib/Cloudflare/Queues/QueueBinding.js +19 -0
  338. package/lib/Cloudflare/Queues/QueueBinding.js.map +1 -1
  339. package/lib/Cloudflare/Queues/QueueShim.d.ts +55 -0
  340. package/lib/Cloudflare/Queues/QueueShim.d.ts.map +1 -0
  341. package/lib/Cloudflare/Queues/QueueShim.js +177 -0
  342. package/lib/Cloudflare/Queues/QueueShim.js.map +1 -0
  343. package/lib/Cloudflare/R2/Bucket.d.ts +14 -1
  344. package/lib/Cloudflare/R2/Bucket.d.ts.map +1 -1
  345. package/lib/Cloudflare/R2/Bucket.js +53 -1
  346. package/lib/Cloudflare/R2/Bucket.js.map +1 -1
  347. package/lib/Cloudflare/R2/BucketBinding.d.ts +10 -0
  348. package/lib/Cloudflare/R2/BucketBinding.d.ts.map +1 -1
  349. package/lib/Cloudflare/R2/BucketBinding.js +14 -3
  350. package/lib/Cloudflare/R2/BucketBinding.js.map +1 -1
  351. package/lib/Cloudflare/R2/BucketLocal.d.ts +13 -6
  352. package/lib/Cloudflare/R2/BucketLocal.d.ts.map +1 -1
  353. package/lib/Cloudflare/R2/BucketLocal.js +19 -6
  354. package/lib/Cloudflare/R2/BucketLocal.js.map +1 -1
  355. package/lib/Cloudflare/R2/LocalR2Gateway.d.ts +15 -0
  356. package/lib/Cloudflare/R2/LocalR2Gateway.d.ts.map +1 -0
  357. package/lib/Cloudflare/R2/LocalR2Gateway.js +65 -0
  358. package/lib/Cloudflare/R2/LocalR2Gateway.js.map +1 -0
  359. package/lib/Cloudflare/R2/ReadBucketLocal.d.ts.map +1 -1
  360. package/lib/Cloudflare/R2/ReadBucketLocal.js +5 -1
  361. package/lib/Cloudflare/R2/ReadBucketLocal.js.map +1 -1
  362. package/lib/Cloudflare/R2/ReadWriteBucketLocal.d.ts.map +1 -1
  363. package/lib/Cloudflare/R2/ReadWriteBucketLocal.js +5 -1
  364. package/lib/Cloudflare/R2/ReadWriteBucketLocal.js.map +1 -1
  365. package/lib/Cloudflare/R2/WriteBucketLocal.d.ts.map +1 -1
  366. package/lib/Cloudflare/R2/WriteBucketLocal.js +5 -1
  367. package/lib/Cloudflare/R2/WriteBucketLocal.js.map +1 -1
  368. package/lib/Cloudflare/Ruleset/AccountEntrypoint.d.ts.map +1 -1
  369. package/lib/Cloudflare/Ruleset/AccountEntrypoint.js +5 -1
  370. package/lib/Cloudflare/Ruleset/AccountEntrypoint.js.map +1 -1
  371. package/lib/Cloudflare/Ruleset/Ruleset.d.ts.map +1 -1
  372. package/lib/Cloudflare/Ruleset/Ruleset.js +19 -6
  373. package/lib/Cloudflare/Ruleset/Ruleset.js.map +1 -1
  374. package/lib/Cloudflare/Rum/Site.js +10 -2
  375. package/lib/Cloudflare/Rum/Site.js.map +1 -1
  376. package/lib/Cloudflare/StateStore/Api.d.ts +31 -2
  377. package/lib/Cloudflare/StateStore/Api.js +1 -1
  378. package/lib/Cloudflare/StateStore/Api.js.map +1 -1
  379. package/lib/Cloudflare/StateStore/State.d.ts +1 -1
  380. package/lib/Cloudflare/StateStore/State.d.ts.map +1 -1
  381. package/lib/Cloudflare/Tunnel/Tunnel.d.ts.map +1 -1
  382. package/lib/Cloudflare/Tunnel/Tunnel.js +20 -1
  383. package/lib/Cloudflare/Tunnel/Tunnel.js.map +1 -1
  384. package/lib/Cloudflare/Website/StaticSite.d.ts +34 -7
  385. package/lib/Cloudflare/Website/StaticSite.d.ts.map +1 -1
  386. package/lib/Cloudflare/Website/StaticSite.js +108 -24
  387. package/lib/Cloudflare/Website/StaticSite.js.map +1 -1
  388. package/lib/Cloudflare/Website/Vite.d.ts +33 -19
  389. package/lib/Cloudflare/Website/Vite.d.ts.map +1 -1
  390. package/lib/Cloudflare/Website/Vite.js +33 -19
  391. package/lib/Cloudflare/Website/Vite.js.map +1 -1
  392. package/lib/Cloudflare/Workers/Compatibility.d.ts.map +1 -1
  393. package/lib/Cloudflare/Workers/Compatibility.js +26 -7
  394. package/lib/Cloudflare/Workers/Compatibility.js.map +1 -1
  395. package/lib/Cloudflare/Workers/DurableObject.d.ts +22 -0
  396. package/lib/Cloudflare/Workers/DurableObject.d.ts.map +1 -1
  397. package/lib/Cloudflare/Workers/DurableObject.js +22 -0
  398. package/lib/Cloudflare/Workers/DurableObject.js.map +1 -1
  399. package/lib/Cloudflare/Workers/DurableObjectBridge.d.ts.map +1 -1
  400. package/lib/Cloudflare/Workers/DurableObjectBridge.js +20 -5
  401. package/lib/Cloudflare/Workers/DurableObjectBridge.js.map +1 -1
  402. package/lib/Cloudflare/Workers/InferEnv.d.ts +4 -2
  403. package/lib/Cloudflare/Workers/InferEnv.d.ts.map +1 -1
  404. package/lib/Cloudflare/Workers/LocalWorkerProvider.d.ts +7 -3
  405. package/lib/Cloudflare/Workers/LocalWorkerProvider.d.ts.map +1 -1
  406. package/lib/Cloudflare/Workers/LocalWorkerProvider.js +483 -298
  407. package/lib/Cloudflare/Workers/LocalWorkerProvider.js.map +1 -1
  408. package/lib/Cloudflare/Workers/Worker.d.ts +612 -13
  409. package/lib/Cloudflare/Workers/Worker.d.ts.map +1 -1
  410. package/lib/Cloudflare/Workers/Worker.js +222 -1
  411. package/lib/Cloudflare/Workers/Worker.js.map +1 -1
  412. package/lib/Cloudflare/Workers/WorkerAsyncBindings.d.ts +13 -1
  413. package/lib/Cloudflare/Workers/WorkerAsyncBindings.d.ts.map +1 -1
  414. package/lib/Cloudflare/Workers/WorkerAsyncBindings.js +171 -21
  415. package/lib/Cloudflare/Workers/WorkerAsyncBindings.js.map +1 -1
  416. package/lib/Cloudflare/Workers/WorkerBinding.d.ts +130 -28
  417. package/lib/Cloudflare/Workers/WorkerBinding.d.ts.map +1 -1
  418. package/lib/Cloudflare/Workers/WorkerBinding.js.map +1 -1
  419. package/lib/Cloudflare/Workers/WorkerBridge.d.ts +6 -2
  420. package/lib/Cloudflare/Workers/WorkerBridge.d.ts.map +1 -1
  421. package/lib/Cloudflare/Workers/WorkerBridge.js +18 -2
  422. package/lib/Cloudflare/Workers/WorkerBridge.js.map +1 -1
  423. package/lib/Cloudflare/Workers/WorkerBundle.d.ts.map +1 -1
  424. package/lib/Cloudflare/Workers/WorkerBundle.js +4 -1
  425. package/lib/Cloudflare/Workers/WorkerBundle.js.map +1 -1
  426. package/lib/Cloudflare/Workers/WorkerProvider.d.ts +186 -11
  427. package/lib/Cloudflare/Workers/WorkerProvider.d.ts.map +1 -1
  428. package/lib/Cloudflare/Workers/WorkerProvider.js +1765 -236
  429. package/lib/Cloudflare/Workers/WorkerProvider.js.map +1 -1
  430. package/lib/Cloudflare/Workflows/WorkflowBridge.d.ts +7 -1
  431. package/lib/Cloudflare/Workflows/WorkflowBridge.d.ts.map +1 -1
  432. package/lib/Cloudflare/Workflows/WorkflowBridge.js +14 -4
  433. package/lib/Cloudflare/Workflows/WorkflowBridge.js.map +1 -1
  434. package/lib/Command/Build.d.ts +2 -2
  435. package/lib/Command/Build.d.ts.map +1 -1
  436. package/lib/Command/Build.js +4 -7
  437. package/lib/Command/Build.js.map +1 -1
  438. package/lib/Command/Command.d.ts +34 -4
  439. package/lib/Command/Command.d.ts.map +1 -1
  440. package/lib/Command/Command.js +125 -30
  441. package/lib/Command/Command.js.map +1 -1
  442. package/lib/Command/Dev.d.ts +2 -2
  443. package/lib/Command/Dev.d.ts.map +1 -1
  444. package/lib/Command/Dev.js +51 -73
  445. package/lib/Command/Dev.js.map +1 -1
  446. package/lib/Command/Exec.d.ts +11 -2
  447. package/lib/Command/Exec.d.ts.map +1 -1
  448. package/lib/Command/Exec.js +9 -0
  449. package/lib/Command/Exec.js.map +1 -1
  450. package/lib/Command/Memo.d.ts +9 -1
  451. package/lib/Command/Memo.d.ts.map +1 -1
  452. package/lib/Command/Memo.js +14 -2
  453. package/lib/Command/Memo.js.map +1 -1
  454. package/lib/Command/Providers.d.ts +1 -1
  455. package/lib/Command/Providers.d.ts.map +1 -1
  456. package/lib/Command/Redaction.d.ts +10 -0
  457. package/lib/Command/Redaction.d.ts.map +1 -0
  458. package/lib/Command/Redaction.js +119 -0
  459. package/lib/Command/Redaction.js.map +1 -0
  460. package/lib/Deploy.d.ts +2 -1
  461. package/lib/Deploy.d.ts.map +1 -1
  462. package/lib/Destroy.d.ts +2 -1
  463. package/lib/Destroy.d.ts.map +1 -1
  464. package/lib/Destroy.js +1 -9
  465. package/lib/Destroy.js.map +1 -1
  466. package/lib/Docker/Container.d.ts +15 -1
  467. package/lib/Docker/Container.d.ts.map +1 -1
  468. package/lib/Docker/Container.js +34 -11
  469. package/lib/Docker/Container.js.map +1 -1
  470. package/lib/Docker/Context.d.ts +84 -0
  471. package/lib/Docker/Context.d.ts.map +1 -0
  472. package/lib/Docker/Context.js +145 -0
  473. package/lib/Docker/Context.js.map +1 -0
  474. package/lib/Docker/Docker.d.ts +190 -14
  475. package/lib/Docker/Docker.d.ts.map +1 -1
  476. package/lib/Docker/Docker.js +149 -28
  477. package/lib/Docker/Docker.js.map +1 -1
  478. package/lib/Docker/Image.d.ts +12 -0
  479. package/lib/Docker/Image.d.ts.map +1 -1
  480. package/lib/Docker/Image.js +24 -7
  481. package/lib/Docker/Image.js.map +1 -1
  482. package/lib/Docker/Network.d.ts +7 -0
  483. package/lib/Docker/Network.d.ts.map +1 -1
  484. package/lib/Docker/Network.js +16 -7
  485. package/lib/Docker/Network.js.map +1 -1
  486. package/lib/Docker/Providers.d.ts +1 -1
  487. package/lib/Docker/Providers.d.ts.map +1 -1
  488. package/lib/Docker/Providers.js +13 -1
  489. package/lib/Docker/Providers.js.map +1 -1
  490. package/lib/Docker/RemoteImage.d.ts +12 -0
  491. package/lib/Docker/RemoteImage.d.ts.map +1 -1
  492. package/lib/Docker/RemoteImage.js +22 -8
  493. package/lib/Docker/RemoteImage.js.map +1 -1
  494. package/lib/Docker/Service.d.ts +445 -0
  495. package/lib/Docker/Service.d.ts.map +1 -0
  496. package/lib/Docker/Service.js +578 -0
  497. package/lib/Docker/Service.js.map +1 -0
  498. package/lib/Docker/ServiceImage.d.ts +78 -0
  499. package/lib/Docker/ServiceImage.d.ts.map +1 -0
  500. package/lib/Docker/ServiceImage.js +232 -0
  501. package/lib/Docker/ServiceImage.js.map +1 -0
  502. package/lib/Docker/Swarm.d.ts +117 -0
  503. package/lib/Docker/Swarm.d.ts.map +1 -0
  504. package/lib/Docker/Swarm.js +149 -0
  505. package/lib/Docker/Swarm.js.map +1 -0
  506. package/lib/Docker/Volume.d.ts +11 -0
  507. package/lib/Docker/Volume.d.ts.map +1 -1
  508. package/lib/Docker/Volume.js +21 -6
  509. package/lib/Docker/Volume.js.map +1 -1
  510. package/lib/Docker/index.d.ts +3 -0
  511. package/lib/Docker/index.d.ts.map +1 -1
  512. package/lib/Docker/index.js +3 -0
  513. package/lib/Docker/index.js.map +1 -1
  514. package/lib/Http.d.ts +8 -1
  515. package/lib/Http.d.ts.map +1 -1
  516. package/lib/Http.js +7 -2
  517. package/lib/Http.js.map +1 -1
  518. package/lib/Local/LocalProvider.d.ts +182 -0
  519. package/lib/Local/LocalProvider.d.ts.map +1 -0
  520. package/lib/Local/LocalProvider.js +226 -0
  521. package/lib/Local/LocalProvider.js.map +1 -0
  522. package/lib/Local/ProviderLayer.d.ts +43 -2
  523. package/lib/Local/ProviderLayer.d.ts.map +1 -1
  524. package/lib/Local/ProviderLayer.js +80 -2
  525. package/lib/Local/ProviderLayer.js.map +1 -1
  526. package/lib/Local/RpcProvider.d.ts +7 -0
  527. package/lib/Local/RpcProvider.d.ts.map +1 -1
  528. package/lib/Local/RpcProvider.js +8 -3
  529. package/lib/Local/RpcProvider.js.map +1 -1
  530. package/lib/Local/RpcProviderProxy.d.ts.map +1 -1
  531. package/lib/Local/RpcProviderProxy.js +3 -0
  532. package/lib/Local/RpcProviderProxy.js.map +1 -1
  533. package/lib/Local/RpcServer.d.ts +8 -1
  534. package/lib/Local/RpcServer.d.ts.map +1 -1
  535. package/lib/Local/RpcServer.js +4 -1
  536. package/lib/Local/RpcServer.js.map +1 -1
  537. package/lib/Plan.d.ts +34 -0
  538. package/lib/Plan.d.ts.map +1 -1
  539. package/lib/Plan.js +127 -40
  540. package/lib/Plan.js.map +1 -1
  541. package/lib/Planetscale/AuthProvider.d.ts.map +1 -1
  542. package/lib/Planetscale/AuthProvider.js +6 -2
  543. package/lib/Planetscale/AuthProvider.js.map +1 -1
  544. package/lib/Planetscale/Branch.d.ts.map +1 -1
  545. package/lib/Planetscale/Branch.js +36 -6
  546. package/lib/Planetscale/Branch.js.map +1 -1
  547. package/lib/Planetscale/MySQL/MySQLDatabase.d.ts.map +1 -1
  548. package/lib/Planetscale/MySQL/MySQLDatabase.js +31 -6
  549. package/lib/Planetscale/MySQL/MySQLDatabase.js.map +1 -1
  550. package/lib/Planetscale/OAuthClient.d.ts +7 -1
  551. package/lib/Planetscale/OAuthClient.d.ts.map +1 -1
  552. package/lib/Planetscale/OAuthClient.js +51 -4
  553. package/lib/Planetscale/OAuthClient.js.map +1 -1
  554. package/lib/Planetscale/Postgres/PostgresDatabase.d.ts.map +1 -1
  555. package/lib/Planetscale/Postgres/PostgresDatabase.js +30 -5
  556. package/lib/Planetscale/Postgres/PostgresDatabase.js.map +1 -1
  557. package/lib/Platform.d.ts.map +1 -1
  558. package/lib/Platform.js +25 -14
  559. package/lib/Platform.js.map +1 -1
  560. package/lib/Prisma/App.d.ts +80 -0
  561. package/lib/Prisma/App.d.ts.map +1 -0
  562. package/lib/Prisma/App.js +238 -0
  563. package/lib/Prisma/App.js.map +1 -0
  564. package/lib/Prisma/AuthProvider.d.ts +28 -0
  565. package/lib/Prisma/AuthProvider.d.ts.map +1 -0
  566. package/lib/Prisma/AuthProvider.js +131 -0
  567. package/lib/Prisma/AuthProvider.js.map +1 -0
  568. package/lib/Prisma/Branch.d.ts +75 -0
  569. package/lib/Prisma/Branch.d.ts.map +1 -0
  570. package/lib/Prisma/Branch.js +216 -0
  571. package/lib/Prisma/Branch.js.map +1 -0
  572. package/lib/Prisma/Client.d.ts +178 -0
  573. package/lib/Prisma/Client.d.ts.map +1 -0
  574. package/lib/Prisma/Client.js +562 -0
  575. package/lib/Prisma/Client.js.map +1 -0
  576. package/lib/Prisma/Compute.d.ts +583 -0
  577. package/lib/Prisma/Compute.d.ts.map +1 -0
  578. package/lib/Prisma/Compute.js +1543 -0
  579. package/lib/Prisma/Compute.js.map +1 -0
  580. package/lib/Prisma/ComputeArchive.d.ts +63 -0
  581. package/lib/Prisma/ComputeArchive.d.ts.map +1 -0
  582. package/lib/Prisma/ComputeArchive.js +227 -0
  583. package/lib/Prisma/ComputeArchive.js.map +1 -0
  584. package/lib/Prisma/ComputeBuild.d.ts +106 -0
  585. package/lib/Prisma/ComputeBuild.d.ts.map +1 -0
  586. package/lib/Prisma/ComputeBuild.js +987 -0
  587. package/lib/Prisma/ComputeBuild.js.map +1 -0
  588. package/lib/Prisma/ComputeLifecycle.d.ts +84 -0
  589. package/lib/Prisma/ComputeLifecycle.d.ts.map +1 -0
  590. package/lib/Prisma/ComputeLifecycle.js +186 -0
  591. package/lib/Prisma/ComputeLifecycle.js.map +1 -0
  592. package/lib/Prisma/Connect.d.ts +99 -0
  593. package/lib/Prisma/Connect.d.ts.map +1 -0
  594. package/lib/Prisma/Connect.js +187 -0
  595. package/lib/Prisma/Connect.js.map +1 -0
  596. package/lib/Prisma/Connection.d.ts +202 -0
  597. package/lib/Prisma/Connection.d.ts.map +1 -0
  598. package/lib/Prisma/Connection.js +346 -0
  599. package/lib/Prisma/Connection.js.map +1 -0
  600. package/lib/Prisma/CustomDomain.d.ts +81 -0
  601. package/lib/Prisma/CustomDomain.d.ts.map +1 -0
  602. package/lib/Prisma/CustomDomain.js +175 -0
  603. package/lib/Prisma/CustomDomain.js.map +1 -0
  604. package/lib/Prisma/Database.d.ts +208 -0
  605. package/lib/Prisma/Database.d.ts.map +1 -0
  606. package/lib/Prisma/Database.js +405 -0
  607. package/lib/Prisma/Database.js.map +1 -0
  608. package/lib/Prisma/Deployment.d.ts +135 -0
  609. package/lib/Prisma/Deployment.d.ts.map +1 -0
  610. package/lib/Prisma/Deployment.js +348 -0
  611. package/lib/Prisma/Deployment.js.map +1 -0
  612. package/lib/Prisma/EnvironmentVariable.d.ts +89 -0
  613. package/lib/Prisma/EnvironmentVariable.d.ts.map +1 -0
  614. package/lib/Prisma/EnvironmentVariable.js +213 -0
  615. package/lib/Prisma/EnvironmentVariable.js.map +1 -0
  616. package/lib/Prisma/Internal/AppIdentity.d.ts +10 -0
  617. package/lib/Prisma/Internal/AppIdentity.d.ts.map +1 -0
  618. package/lib/Prisma/Internal/AppIdentity.js +6 -0
  619. package/lib/Prisma/Internal/AppIdentity.js.map +1 -0
  620. package/lib/Prisma/Internal/AppPromotion.d.ts +19 -0
  621. package/lib/Prisma/Internal/AppPromotion.d.ts.map +1 -0
  622. package/lib/Prisma/Internal/AppPromotion.js +107 -0
  623. package/lib/Prisma/Internal/AppPromotion.js.map +1 -0
  624. package/lib/Prisma/Internal/ArchivePlatform.d.ts +42 -0
  625. package/lib/Prisma/Internal/ArchivePlatform.d.ts.map +1 -0
  626. package/lib/Prisma/Internal/ArchivePlatform.js +214 -0
  627. package/lib/Prisma/Internal/ArchivePlatform.js.map +1 -0
  628. package/lib/Prisma/Internal/ArtifactFile.d.ts +58 -0
  629. package/lib/Prisma/Internal/ArtifactFile.d.ts.map +1 -0
  630. package/lib/Prisma/Internal/ArtifactFile.js +134 -0
  631. package/lib/Prisma/Internal/ArtifactFile.js.map +1 -0
  632. package/lib/Prisma/Internal/ArtifactUpload.d.ts +5 -0
  633. package/lib/Prisma/Internal/ArtifactUpload.d.ts.map +1 -0
  634. package/lib/Prisma/Internal/ArtifactUpload.js +51 -0
  635. package/lib/Prisma/Internal/ArtifactUpload.js.map +1 -0
  636. package/lib/Prisma/Internal/BundlePaths.d.ts +4 -0
  637. package/lib/Prisma/Internal/BundlePaths.d.ts.map +1 -0
  638. package/lib/Prisma/Internal/BundlePaths.js +16 -0
  639. package/lib/Prisma/Internal/BundlePaths.js.map +1 -0
  640. package/lib/Prisma/Internal/CleanupFailure.d.ts +8 -0
  641. package/lib/Prisma/Internal/CleanupFailure.d.ts.map +1 -0
  642. package/lib/Prisma/Internal/CleanupFailure.js +8 -0
  643. package/lib/Prisma/Internal/CleanupFailure.js.map +1 -0
  644. package/lib/Prisma/Internal/DatabaseSecrets.d.ts +35 -0
  645. package/lib/Prisma/Internal/DatabaseSecrets.d.ts.map +1 -0
  646. package/lib/Prisma/Internal/DatabaseSecrets.js +85 -0
  647. package/lib/Prisma/Internal/DatabaseSecrets.js.map +1 -0
  648. package/lib/Prisma/Internal/DeploymentActions.d.ts +5 -0
  649. package/lib/Prisma/Internal/DeploymentActions.d.ts.map +1 -0
  650. package/lib/Prisma/Internal/DeploymentActions.js +16 -0
  651. package/lib/Prisma/Internal/DeploymentActions.js.map +1 -0
  652. package/lib/Prisma/Internal/DeploymentIdentity.d.ts +8 -0
  653. package/lib/Prisma/Internal/DeploymentIdentity.d.ts.map +1 -0
  654. package/lib/Prisma/Internal/DeploymentIdentity.js +12 -0
  655. package/lib/Prisma/Internal/DeploymentIdentity.js.map +1 -0
  656. package/lib/Prisma/Internal/DeploymentObserve.d.ts +3 -0
  657. package/lib/Prisma/Internal/DeploymentObserve.d.ts.map +1 -0
  658. package/lib/Prisma/Internal/DeploymentObserve.js +2 -0
  659. package/lib/Prisma/Internal/DeploymentObserve.js.map +1 -0
  660. package/lib/Prisma/Internal/EnvName.d.ts +7 -0
  661. package/lib/Prisma/Internal/EnvName.d.ts.map +1 -0
  662. package/lib/Prisma/Internal/EnvName.js +23 -0
  663. package/lib/Prisma/Internal/EnvName.js.map +1 -0
  664. package/lib/Prisma/Internal/HttpClient.d.ts +21 -0
  665. package/lib/Prisma/Internal/HttpClient.d.ts.map +1 -0
  666. package/lib/Prisma/Internal/HttpClient.js +23 -0
  667. package/lib/Prisma/Internal/HttpClient.js.map +1 -0
  668. package/lib/Prisma/Operations.d.ts +143 -0
  669. package/lib/Prisma/Operations.d.ts.map +1 -0
  670. package/lib/Prisma/Operations.js +75 -0
  671. package/lib/Prisma/Operations.js.map +1 -0
  672. package/lib/Prisma/Postgres.d.ts +24 -0
  673. package/lib/Prisma/Postgres.d.ts.map +1 -0
  674. package/lib/Prisma/Postgres.js +23 -0
  675. package/lib/Prisma/Postgres.js.map +1 -0
  676. package/lib/Prisma/PostgresOrigin.d.ts +31 -0
  677. package/lib/Prisma/PostgresOrigin.d.ts.map +1 -0
  678. package/lib/Prisma/PostgresOrigin.js +30 -0
  679. package/lib/Prisma/PostgresOrigin.js.map +1 -0
  680. package/lib/Prisma/PrismaDevDatabase.d.ts +25 -0
  681. package/lib/Prisma/PrismaDevDatabase.d.ts.map +1 -0
  682. package/lib/Prisma/PrismaDevDatabase.js +280 -0
  683. package/lib/Prisma/PrismaDevDatabase.js.map +1 -0
  684. package/lib/Prisma/PrismaEnvironment.d.ts +14 -0
  685. package/lib/Prisma/PrismaEnvironment.d.ts.map +1 -0
  686. package/lib/Prisma/PrismaEnvironment.js +50 -0
  687. package/lib/Prisma/PrismaEnvironment.js.map +1 -0
  688. package/lib/Prisma/PrismaLogs.d.ts +42 -0
  689. package/lib/Prisma/PrismaLogs.d.ts.map +1 -0
  690. package/lib/Prisma/PrismaLogs.js +318 -0
  691. package/lib/Prisma/PrismaLogs.js.map +1 -0
  692. package/lib/Prisma/Project.d.ts +117 -0
  693. package/lib/Prisma/Project.d.ts.map +1 -0
  694. package/lib/Prisma/Project.js +361 -0
  695. package/lib/Prisma/Project.js.map +1 -0
  696. package/lib/Prisma/Providers.d.ts +61 -0
  697. package/lib/Prisma/Providers.d.ts.map +1 -0
  698. package/lib/Prisma/Providers.js +282 -0
  699. package/lib/Prisma/Providers.js.map +1 -0
  700. package/lib/Prisma/Refs.d.ts +19 -0
  701. package/lib/Prisma/Refs.d.ts.map +1 -0
  702. package/lib/Prisma/Refs.js +25 -0
  703. package/lib/Prisma/Refs.js.map +1 -0
  704. package/lib/Prisma/SourceRepository.d.ts +104 -0
  705. package/lib/Prisma/SourceRepository.d.ts.map +1 -0
  706. package/lib/Prisma/SourceRepository.js +221 -0
  707. package/lib/Prisma/SourceRepository.js.map +1 -0
  708. package/lib/Prisma/Types.d.ts +539 -0
  709. package/lib/Prisma/Types.d.ts.map +1 -0
  710. package/lib/Prisma/Types.js +13 -0
  711. package/lib/Prisma/Types.js.map +1 -0
  712. package/lib/Prisma/index.d.ts +25 -0
  713. package/lib/Prisma/index.d.ts.map +1 -0
  714. package/lib/Prisma/index.js +24 -0
  715. package/lib/Prisma/index.js.map +1 -0
  716. package/lib/Provider.d.ts +57 -5
  717. package/lib/Provider.d.ts.map +1 -1
  718. package/lib/Provider.js +54 -30
  719. package/lib/Provider.js.map +1 -1
  720. package/lib/ProviderMode.d.ts +93 -0
  721. package/lib/ProviderMode.d.ts.map +1 -0
  722. package/lib/ProviderMode.js +77 -0
  723. package/lib/ProviderMode.js.map +1 -0
  724. package/lib/Resource.d.ts +8 -0
  725. package/lib/Resource.d.ts.map +1 -1
  726. package/lib/Resource.js +31 -0
  727. package/lib/Resource.js.map +1 -1
  728. package/lib/RuntimeContext.d.ts +7 -0
  729. package/lib/RuntimeContext.d.ts.map +1 -1
  730. package/lib/RuntimeContext.js.map +1 -1
  731. package/lib/Server/Process.d.ts +8 -0
  732. package/lib/Server/Process.d.ts.map +1 -1
  733. package/lib/Server/Process.js +29 -0
  734. package/lib/Server/Process.js.map +1 -1
  735. package/lib/State/InMemoryState.d.ts.map +1 -1
  736. package/lib/State/InMemoryState.js +2 -0
  737. package/lib/State/InMemoryState.js.map +1 -1
  738. package/lib/State/ResourceState.d.ts +18 -0
  739. package/lib/State/ResourceState.d.ts.map +1 -1
  740. package/lib/Sync.d.ts.map +1 -1
  741. package/lib/Sync.js +8 -2
  742. package/lib/Sync.js.map +1 -1
  743. package/lib/Telemetry.d.ts +150 -0
  744. package/lib/Telemetry.d.ts.map +1 -0
  745. package/lib/Telemetry.js +512 -0
  746. package/lib/Telemetry.js.map +1 -0
  747. package/lib/Test/Alchemy.d.ts.map +1 -1
  748. package/lib/Test/Alchemy.js +3 -1
  749. package/lib/Test/Alchemy.js.map +1 -1
  750. package/lib/Test/Core.d.ts +2 -2
  751. package/lib/Test/Core.d.ts.map +1 -1
  752. package/lib/Test/Core.js +1 -8
  753. package/lib/Test/Core.js.map +1 -1
  754. package/lib/Util/Clank.d.ts +11 -6
  755. package/lib/Util/Clank.d.ts.map +1 -1
  756. package/lib/Util/Clank.js +22 -9
  757. package/lib/Util/Clank.js.map +1 -1
  758. package/lib/Util/zip.d.ts +11 -0
  759. package/lib/Util/zip.d.ts.map +1 -1
  760. package/lib/Util/zip.js +30 -0
  761. package/lib/Util/zip.js.map +1 -1
  762. package/lib/index.d.ts +3 -0
  763. package/lib/index.d.ts.map +1 -1
  764. package/lib/index.js +3 -0
  765. package/lib/index.js.map +1 -1
  766. package/package.json +46 -13
  767. package/src/AWS/ApiGateway/common.ts +9 -0
  768. package/src/AWS/Bedrock/LanguageModel.ts +883 -0
  769. package/src/AWS/Bedrock/LanguageModelHttp.ts +36 -0
  770. package/src/AWS/Bedrock/index.ts +2 -0
  771. package/src/AWS/CloudFront/Distribution.ts +116 -6
  772. package/src/AWS/CostExplorer/common.ts +23 -2
  773. package/src/AWS/DataSync/Task.ts +30 -15
  774. package/src/AWS/EC2/Vpc.ts +35 -21
  775. package/src/AWS/EC2/hosted.ts +10 -2
  776. package/src/AWS/ECR/ImageSource.ts +10 -2
  777. package/src/AWS/ECR/Repository.ts +39 -4
  778. package/src/AWS/ECS/Service.ts +322 -22
  779. package/src/AWS/ECS/Task.ts +82 -32
  780. package/src/AWS/EKS/Deployment.ts +10 -2
  781. package/src/AWS/EKS/Job.ts +10 -2
  782. package/src/AWS/Lambda/Function.ts +101 -43
  783. package/src/AWS/Lambda/HttpServer.ts +7 -1
  784. package/src/AWS/Lambda/LayerVersion.ts +490 -0
  785. package/src/AWS/Lambda/MicrovmBundle.ts +10 -2
  786. package/src/AWS/Lambda/index.ts +1 -0
  787. package/src/AWS/Providers.ts +10 -0
  788. package/src/AWS/SES/ActiveReceiptRuleSet.ts +88 -0
  789. package/src/AWS/SES/ReceiptFilter.ts +169 -0
  790. package/src/AWS/SES/ReceiptRule.ts +300 -0
  791. package/src/AWS/SES/ReceiptRuleSet.ts +164 -0
  792. package/src/AWS/SES/SendBounce.ts +44 -0
  793. package/src/AWS/SES/SendBounceHttp.ts +13 -0
  794. package/src/AWS/SES/index.ts +6 -0
  795. package/src/AWS/StateStore/State.ts +159 -42
  796. package/src/Apply.ts +199 -83
  797. package/src/Axiom/Telemetry.ts +119 -0
  798. package/src/Axiom/index.ts +1 -0
  799. package/src/Bundle/Bundle.ts +17 -7
  800. package/src/Bundle/BundleAnalyzerPlugin.ts +9 -4
  801. package/src/Bundle/PurePlugin.ts +19 -9
  802. package/src/Cli/checkVersion.ts +102 -16
  803. package/src/Cli/commands/deploy.ts +3 -14
  804. package/src/Cli/commands/logs.ts +6 -1
  805. package/src/Cli/commands/tail.ts +6 -1
  806. package/src/Cli/main.ts +5 -4
  807. package/src/Cloudflare/AI/Search.ts +4 -18
  808. package/src/Cloudflare/AI/SearchInstance.ts +7 -26
  809. package/src/Cloudflare/ApiToken/AccountApiToken.ts +3 -0
  810. package/src/Cloudflare/Auth/AuthProvider.ts +17 -3
  811. package/src/Cloudflare/Auth/OAuthClient.ts +58 -2
  812. package/src/Cloudflare/Containers/Container.ts +92 -3
  813. package/src/Cloudflare/Containers/ContainerApplication.ts +31 -5
  814. package/src/Cloudflare/Containers/ContainerBundle.ts +10 -2
  815. package/src/Cloudflare/Containers/ContainerProvider.ts +62 -0
  816. package/src/Cloudflare/Credentials.ts +69 -9
  817. package/src/Cloudflare/D1/ApplyMigrations.ts +72 -77
  818. package/src/Cloudflare/D1/Database.ts +154 -2
  819. package/src/Cloudflare/D1/LocalD1Gateway.ts +150 -0
  820. package/src/Cloudflare/D1/QueryDatabaseHttpClient.ts +49 -11
  821. package/src/Cloudflare/D1/QueryDatabaseLocal.ts +44 -2
  822. package/src/Cloudflare/Email/Address.ts +18 -1
  823. package/src/Cloudflare/Email/SendBinding.ts +1 -0
  824. package/src/Cloudflare/Email/SendEmail.ts +13 -0
  825. package/src/Cloudflare/Flagship/App.ts +18 -6
  826. package/src/Cloudflare/KV/LocalKVGateway.ts +86 -0
  827. package/src/Cloudflare/KV/Namespace.ts +47 -1
  828. package/src/Cloudflare/KV/NamespaceLocal.ts +29 -6
  829. package/src/Cloudflare/KV/ReadNamespaceLocal.ts +5 -1
  830. package/src/Cloudflare/KV/ReadWriteNamespaceLocal.ts +5 -1
  831. package/src/Cloudflare/KV/WriteNamespaceLocal.ts +5 -1
  832. package/src/Cloudflare/LocalGateway.ts +86 -0
  833. package/src/Cloudflare/LocalRuntime.ts +21 -1
  834. package/src/Cloudflare/Logs.ts +58 -28
  835. package/src/Cloudflare/Providers.ts +4 -2
  836. package/src/Cloudflare/Queues/Consumer.ts +70 -2
  837. package/src/Cloudflare/Queues/Queue.ts +7 -16
  838. package/src/Cloudflare/Queues/QueueBinding.ts +21 -0
  839. package/src/Cloudflare/Queues/QueueShim.ts +193 -0
  840. package/src/Cloudflare/R2/Bucket.ts +55 -1
  841. package/src/Cloudflare/R2/BucketBinding.ts +17 -3
  842. package/src/Cloudflare/R2/BucketLocal.ts +25 -8
  843. package/src/Cloudflare/R2/LocalR2Gateway.ts +84 -0
  844. package/src/Cloudflare/R2/ReadBucketLocal.ts +7 -1
  845. package/src/Cloudflare/R2/ReadWriteBucketLocal.ts +7 -1
  846. package/src/Cloudflare/R2/WriteBucketLocal.ts +7 -1
  847. package/src/Cloudflare/Ruleset/AccountEntrypoint.ts +5 -1
  848. package/src/Cloudflare/Ruleset/Ruleset.ts +20 -6
  849. package/src/Cloudflare/Rum/Site.ts +11 -4
  850. package/src/Cloudflare/StateStore/Api.ts +1 -1
  851. package/src/Cloudflare/Tunnel/Tunnel.ts +23 -1
  852. package/src/Cloudflare/Website/StaticSite.ts +117 -28
  853. package/src/Cloudflare/Website/Vite.ts +33 -19
  854. package/src/Cloudflare/Workers/Compatibility.ts +27 -7
  855. package/src/Cloudflare/Workers/DurableObject.ts +22 -0
  856. package/src/Cloudflare/Workers/DurableObjectBridge.ts +29 -10
  857. package/src/Cloudflare/Workers/InferEnv.ts +74 -59
  858. package/src/Cloudflare/Workers/LocalWorkerProvider.ts +619 -401
  859. package/src/Cloudflare/Workers/Worker.ts +676 -28
  860. package/src/Cloudflare/Workers/WorkerAsyncBindings.ts +209 -25
  861. package/src/Cloudflare/Workers/WorkerBinding.ts +67 -3
  862. package/src/Cloudflare/Workers/WorkerBridge.ts +26 -4
  863. package/src/Cloudflare/Workers/WorkerBundle.ts +6 -1
  864. package/src/Cloudflare/Workers/WorkerProvider.ts +2269 -277
  865. package/src/Cloudflare/Workflows/WorkflowBridge.ts +31 -13
  866. package/src/Command/Build.ts +8 -8
  867. package/src/Command/Command.ts +217 -42
  868. package/src/Command/Dev.ts +79 -107
  869. package/src/Command/Exec.ts +11 -2
  870. package/src/Command/Memo.ts +27 -3
  871. package/src/Command/Redaction.ts +181 -0
  872. package/src/Destroy.ts +1 -10
  873. package/src/Docker/Container.ts +55 -15
  874. package/src/Docker/Context.ts +236 -0
  875. package/src/Docker/Docker.ts +393 -43
  876. package/src/Docker/Image.ts +28 -7
  877. package/src/Docker/Network.ts +38 -14
  878. package/src/Docker/Providers.ts +16 -1
  879. package/src/Docker/RemoteImage.ts +23 -7
  880. package/src/Docker/Service.ts +1119 -0
  881. package/src/Docker/ServiceImage.ts +331 -0
  882. package/src/Docker/Swarm.ts +226 -0
  883. package/src/Docker/Volume.ts +25 -6
  884. package/src/Docker/index.ts +3 -0
  885. package/src/Http.ts +15 -2
  886. package/src/Local/LocalProvider.ts +518 -0
  887. package/src/Local/ProviderLayer.ts +113 -11
  888. package/src/Local/RpcProvider.ts +10 -5
  889. package/src/Local/RpcProviderProxy.ts +4 -1
  890. package/src/Local/RpcServer.ts +20 -2
  891. package/src/Plan.ts +182 -54
  892. package/src/Planetscale/AuthProvider.ts +15 -2
  893. package/src/Planetscale/Branch.ts +39 -6
  894. package/src/Planetscale/MySQL/MySQLDatabase.ts +34 -6
  895. package/src/Planetscale/OAuthClient.ts +59 -3
  896. package/src/Planetscale/Postgres/PostgresDatabase.ts +33 -5
  897. package/src/Platform.ts +29 -17
  898. package/src/Prisma/App.ts +420 -0
  899. package/src/Prisma/AuthProvider.ts +260 -0
  900. package/src/Prisma/Branch.ts +396 -0
  901. package/src/Prisma/Client.ts +1337 -0
  902. package/src/Prisma/Compute.ts +2876 -0
  903. package/src/Prisma/ComputeArchive.ts +432 -0
  904. package/src/Prisma/ComputeBuild.ts +1652 -0
  905. package/src/Prisma/ComputeLifecycle.ts +391 -0
  906. package/src/Prisma/Connect.ts +410 -0
  907. package/src/Prisma/Connection.ts +626 -0
  908. package/src/Prisma/CustomDomain.ts +363 -0
  909. package/src/Prisma/Database.ts +836 -0
  910. package/src/Prisma/Deployment.ts +655 -0
  911. package/src/Prisma/EnvironmentVariable.ts +401 -0
  912. package/src/Prisma/Internal/AppIdentity.ts +19 -0
  913. package/src/Prisma/Internal/AppPromotion.ts +172 -0
  914. package/src/Prisma/Internal/ArchivePlatform.ts +320 -0
  915. package/src/Prisma/Internal/ArtifactFile.ts +242 -0
  916. package/src/Prisma/Internal/ArtifactUpload.ts +86 -0
  917. package/src/Prisma/Internal/BundlePaths.ts +28 -0
  918. package/src/Prisma/Internal/CleanupFailure.ts +17 -0
  919. package/src/Prisma/Internal/DatabaseSecrets.ts +175 -0
  920. package/src/Prisma/Internal/DeploymentActions.ts +59 -0
  921. package/src/Prisma/Internal/DeploymentIdentity.ts +25 -0
  922. package/src/Prisma/Internal/DeploymentObserve.ts +6 -0
  923. package/src/Prisma/Internal/EnvName.ts +24 -0
  924. package/src/Prisma/Internal/HttpClient.ts +30 -0
  925. package/src/Prisma/Operations.ts +259 -0
  926. package/src/Prisma/Postgres.ts +24 -0
  927. package/src/Prisma/PostgresOrigin.ts +52 -0
  928. package/src/Prisma/PrismaDevDatabase.ts +395 -0
  929. package/src/Prisma/PrismaEnvironment.ts +89 -0
  930. package/src/Prisma/PrismaLogs.ts +434 -0
  931. package/src/Prisma/Project.ts +681 -0
  932. package/src/Prisma/Providers.ts +411 -0
  933. package/src/Prisma/Refs.ts +69 -0
  934. package/src/Prisma/SourceRepository.ts +432 -0
  935. package/src/Prisma/Types.ts +611 -0
  936. package/src/Prisma/index.ts +24 -0
  937. package/src/Provider.ts +155 -39
  938. package/src/ProviderMode.ts +123 -0
  939. package/src/Resource.ts +46 -0
  940. package/src/RuntimeContext.ts +7 -0
  941. package/src/Server/Process.ts +33 -0
  942. package/src/State/InMemoryState.ts +2 -0
  943. package/src/State/ResourceState.ts +18 -0
  944. package/src/Sync.ts +14 -2
  945. package/src/Telemetry.ts +736 -0
  946. package/src/Test/Alchemy.ts +3 -1
  947. package/src/Test/Core.ts +1 -8
  948. package/src/Util/Clank.ts +37 -11
  949. package/src/Util/zip.ts +39 -0
  950. package/src/index.ts +3 -0
@@ -10,6 +10,7 @@ import { type MemoOptions } from "../../Command/Memo.ts";
10
10
  import type { Dependencies } from "../../Dependencies.ts";
11
11
  import type { InputProps } from "../../Input.ts";
12
12
  import type { Named, Tag } from "../../Named.ts";
13
+ import type * as Output from "../../Output.ts";
13
14
  import { type Main, type MainRpc, type MakeShape, type PlatformProps, type PlatformServices } from "../../Platform.ts";
14
15
  import { Resource, type ResourceClassLike } from "../../Resource.ts";
15
16
  import type { Rpc } from "../../Rpc.ts";
@@ -126,12 +127,68 @@ export type WorkerEnv = Record<string, string | number | boolean | null | readon
126
127
  export type WorkerBindingProps = {
127
128
  [bindingName in string]: WorkerBindingResource | Effect.Effect<WorkerBindingResource, any, any>;
128
129
  };
130
+ type Unwrap<T> = T extends Output.Output<infer A, infer _Req> ? A : T;
129
131
  export type NormalizedBindings<Bindings extends WorkerBindingProps = {}, AssetsConfig extends WorkerAssetsConfig | undefined = undefined> = {
130
- [B in keyof Bindings]: Bindings[B] extends Effect.Effect<infer T extends WorkerBindingResource, any, any> ? T extends Redacted.Redacted<infer T> | Config.Config<infer T> ? T : T : Extract<Bindings[B], WorkerBindingResource>;
132
+ [B in keyof Bindings]: Bindings[B] extends Effect.Effect<infer T extends WorkerBindingResource, any, any> ? T extends Redacted.Redacted<infer V> | Config.Config<infer V> ? V : Unwrap<T> : Extract<Unwrap<Bindings[B]>, WorkerBindingResource>;
131
133
  } & (undefined extends AssetsConfig ? {} : {
132
134
  ASSETS: Assets;
133
135
  });
134
136
  export type WorkerAssetsConfig = string | AssetsProps | AssetsWithHash;
137
+ /**
138
+ * Fine-grained control over the Worker's `workers.dev` surface. The two
139
+ * toggles are independent on the Cloudflare API.
140
+ */
141
+ export interface WorkersDevConfig {
142
+ /**
143
+ * Serve the Worker at its stable `workers.dev` URL
144
+ * (`https://<worker-name>.<account-subdomain>.workers.dev`).
145
+ * @default true
146
+ */
147
+ enabled?: boolean;
148
+ /**
149
+ * Enable version preview URLs — a distinct
150
+ * `https://<version-prefix>-<worker-name>.<account-subdomain>.workers.dev`
151
+ * URL per uploaded version, plus stable aliased preview URLs
152
+ * (`https://<alias>-...`) for versions uploaded with an alias.
153
+ *
154
+ * When previews are enabled but {@link enabled} is `false`, the current
155
+ * version's preview URL becomes the Worker's primary `url` output.
156
+ * @default true
157
+ */
158
+ previewsEnabled?: boolean;
159
+ }
160
+ /**
161
+ * The Worker's custom-domain configuration: one canonical hostname, plus
162
+ * optional aliases that also serve the Worker and redirect hostnames that
163
+ * 301 to the canonical name.
164
+ */
165
+ export interface WorkerDomainConfig {
166
+ /**
167
+ * The canonical hostname (e.g. `"example.com"`). Attached to the Worker
168
+ * as a Cloudflare custom domain — DNS record and edge certificate are
169
+ * managed automatically. The Cloudflare zone is inferred from the
170
+ * hostname and must already exist in the account.
171
+ *
172
+ * When set, `https://<name>` is the Worker's primary `url` output.
173
+ */
174
+ name: string;
175
+ /**
176
+ * Additional hostnames that serve the Worker (e.g. `"www.example.com"`,
177
+ * `"api.example.com"`). Each is attached as its own custom domain.
178
+ * Order matters: aliases follow `name` in the `urls` output.
179
+ */
180
+ aliases?: string[];
181
+ /**
182
+ * Hostnames that permanently redirect (HTTP 301, path and query
183
+ * preserved) to {@link name} — e.g. `"old.example.com"`. Each is
184
+ * attached as a custom domain (for DNS + TLS) with a redirect rule in
185
+ * the zone's `http_request_dynamic_redirect` phase, which runs before
186
+ * the Worker — redirected requests never invoke it. Redirect hostnames
187
+ * serve no content, so they appear in the `domain` output but never in
188
+ * `urls`.
189
+ */
190
+ redirects?: string[];
191
+ }
135
192
  export interface WorkerRouteConfig {
136
193
  /**
137
194
  * URL pattern to match incoming requests against, e.g.
@@ -153,6 +210,185 @@ export interface WorkerRouteConfig {
153
210
  */
154
211
  zone?: ZoneReference;
155
212
  }
213
+ /**
214
+ * Version-affinity configuration — keeps each user on one version for the
215
+ * duration of a gradual rollout.
216
+ *
217
+ * Percentages route each request independently, so one user can bounce
218
+ * between versions mid-rollout. Cloudflare pins a request to a version
219
+ * deterministically when it carries a `Cloudflare-Workers-Version-Key`
220
+ * header: the key is hashed and assigned a version from the current
221
+ * percentages, so equal keys always land on the same version, and pinned
222
+ * users only move forward as percentages rise.
223
+ *
224
+ * Setting `affinity` provisions that header as infrastructure: a `rewrite`
225
+ * Transform Rule in the `http_request_late_transform` phase of every zone
226
+ * the Worker serves on (custom domains and zone routes), scoped to the
227
+ * Worker's hostnames, filling the header from the configured source. The
228
+ * rule is updated in place as the config changes and removed when
229
+ * `affinity` is removed or the Worker is destroyed; other rules in the
230
+ * zone's shared entrypoint are left untouched.
231
+ *
232
+ * Exactly one of {@link cookie}, {@link header}, or {@link key} may be
233
+ * set; {@link ip} combines with `cookie`/`header` as a fallback or stands
234
+ * alone as the sole source.
235
+ *
236
+ * Transform Rules only see **zone traffic** — the Worker must have a
237
+ * `domain` or `routes` (or, with `version.parent`, the parent must).
238
+ * A workers.dev-only Worker fails the deploy with
239
+ * `WorkerVersionConfigError`; on the bare workers.dev URL clients must
240
+ * send the header themselves.
241
+ */
242
+ export interface WorkerVersionAffinity {
243
+ /**
244
+ * Pin by the value of this request cookie (e.g. a session id). Requests
245
+ * without the cookie fall back to {@link ip} when set, otherwise they
246
+ * route independently by percentage.
247
+ */
248
+ cookie?: string;
249
+ /**
250
+ * Pin by the value of this request header (e.g. a tenant or user id
251
+ * your edge already stamps, or a stable auth claim forwarded as a
252
+ * header). Requests without the header fall back to {@link ip} when
253
+ * set, otherwise they route independently by percentage.
254
+ */
255
+ header?: string;
256
+ /**
257
+ * Pin by client IP. On its own (`{ ip: true }`) every request is keyed
258
+ * by `ip.src`; combined with {@link cookie} or {@link header} it is the
259
+ * fallback for requests missing the primary source (e.g. sticky by
260
+ * session cookie, falling back to sticky IP before the cookie is set).
261
+ */
262
+ ip?: boolean;
263
+ /**
264
+ * Escape hatch: a raw [Rules-language](https://developers.cloudflare.com/ruleset-engine/rules-language/)
265
+ * expression that computes the version key — e.g. a JWT claim via API
266
+ * Shield's `http.request.jwt.claims`, or any composite of request
267
+ * fields. Applied to every request on the Worker's hostnames; cannot be
268
+ * combined with the other sources.
269
+ */
270
+ key?: string;
271
+ }
272
+ /**
273
+ * Versioning configuration for a Worker deploy — controls Worker
274
+ * [versions and gradual deployments](https://developers.cloudflare.com/workers/configuration/versions-and-deployments/).
275
+ *
276
+ * Two modes, selected by {@link parent}:
277
+ *
278
+ * - **Version worker** (`parent` set): instead of creating its own script,
279
+ * this Worker uploads an immutable *version* to the referenced parent
280
+ * Worker's script. With `traffic: 0` (the default) the parent's live
281
+ * deployment is untouched and the version is reachable only at its
282
+ * preview URL (`<version-prefix>-<name>.<subdomain>.workers.dev`) —
283
+ * the PR-preview use case. With `traffic > 0` the version becomes a
284
+ * canary taking that percentage of the parent's traffic.
285
+ * - **Gradual rollout** (`parent` omitted): when this Worker deploys
286
+ * itself, the newly uploaded version receives {@link traffic} percent
287
+ * and the currently-live version keeps the remainder, instead of the
288
+ * default 100% cutover.
289
+ *
290
+ * A gradual rollout carries only what a version can: code, bindings,
291
+ * compatibility settings, and cache configuration. Workers with static
292
+ * assets cannot roll out gradually (the versions API cannot carry assets),
293
+ * a deploy that changes Durable Object class migrations must go out at
294
+ * 100% (migrations cannot ride a rollout), and script-level settings
295
+ * (tags, observability, limits, placement, logpush) keep their live
296
+ * values until the next full deploy.
297
+ */
298
+ export interface WorkerVersionOptions {
299
+ /**
300
+ * The Worker that owns the script this version is uploaded to. Accepts a
301
+ * Worker reference — typically `yield* Cloudflare.Worker.ref(id, { stage,
302
+ * stack })` for a Worker deployed in another stage/stack, or a
303
+ * locally-declared Worker — or a literal script name as an escape hatch.
304
+ *
305
+ * When set, this resource does not create a script of its own: it
306
+ * uploads a version (code + bindings + compatibility settings) to the
307
+ * parent's script. Script-level settings apply immediately to *all*
308
+ * versions of the parent, so they cannot be set on a version worker —
309
+ * `name`, `assets`, `namespace`, `crons`, `domain`, `routes`, `tags`,
310
+ * `logpush`, `observability`, `placement`, `limits`, and `subdomain` are
311
+ * rejected, as are locally-hosted Durable Object or Workflow classes
312
+ * (their migrations would mutate the parent).
313
+ *
314
+ * Changing the parent replaces the resource (a version belongs to
315
+ * exactly one script).
316
+ */
317
+ parent?: string | Worker;
318
+ /**
319
+ * Percentage of traffic (0–100) the newly uploaded version receives; the
320
+ * currently-live version keeps the remainder. Cloudflare deployments
321
+ * split between at most two versions, so one canary can be active per
322
+ * script at a time.
323
+ *
324
+ * With {@link parent} set, defaults to `0`: the version is
325
+ * preview-URL-only and the parent's live deployment is untouched.
326
+ * Without `parent`, defaults to `100` (today's full cutover); `0` means
327
+ * "upload the version without deploying it" (the equivalent of
328
+ * `wrangler versions upload`).
329
+ *
330
+ * Percentages replace the previous deployment, they never add. Each
331
+ * versioned deploy splits its new version against the *stable* version —
332
+ * the majority holder of the current deployment — so deploying at 10 and
333
+ * then at 20 yields the second version at 20% against the stable version
334
+ * at 80%, with the earlier 10% version dropped from routing entirely
335
+ * (still uploaded, but unreachable even via a version-override header).
336
+ * With unchanged code that replacement is exactly a ramp; with changed
337
+ * code it swaps canaries. The first deploy of a script always goes to
338
+ * 100%, since there is no previous version to split with.
339
+ *
340
+ * Note that a subsequent full deploy of the parent (or of this Worker
341
+ * itself, at the default 100) resets traffic to 100% of its own new
342
+ * version.
343
+ */
344
+ traffic?: number;
345
+ /**
346
+ * Preview-URL alias for the uploaded version. Aliased preview URLs
347
+ * (`<alias>-<name>.<subdomain>.workers.dev`) are stable — each upload
348
+ * with the same alias re-points the URL at the new version — which is
349
+ * what makes them useful as shareable PR-preview links and lets
350
+ * `Worker.URL` resolve before the version exists.
351
+ *
352
+ * For a version worker ({@link parent} set) an alias is derived
353
+ * automatically from the stack, stage, and logical id, so every version
354
+ * worker gets a stable preview URL out of the box; set this to override
355
+ * it. Must start with a lowercase letter, contain only lowercase
356
+ * letters, digits, and dashes, and `<alias>-<worker-name>` must fit in
357
+ * 63 characters (a DNS label).
358
+ */
359
+ alias?: string;
360
+ /**
361
+ * Keep each user on one version for the duration of the rollout by
362
+ * pinning them to a stable request property — a session cookie, a
363
+ * header, the client IP, or a raw Rules-language expression:
364
+ *
365
+ * ```typescript
366
+ * version: {
367
+ * traffic: 10,
368
+ * // sticky by session cookie, falling back to sticky IP
369
+ * affinity: { cookie: "session_id", ip: true },
370
+ * }
371
+ * ```
372
+ *
373
+ * Provisions a Transform Rule that fills the
374
+ * `Cloudflare-Workers-Version-Key` header on the zones the Worker
375
+ * serves on — the Worker (or, with {@link parent}, the parent) must
376
+ * have a `domain` or `routes`. With `parent` set, the rule lands on the
377
+ * parent's zones, pinning users across the canary split. See
378
+ * {@link WorkerVersionAffinity}.
379
+ */
380
+ affinity?: WorkerVersionAffinity;
381
+ /**
382
+ * Human-readable annotation attached to the uploaded version, shown in
383
+ * the Cloudflare dashboard and `wrangler versions list`.
384
+ */
385
+ message?: string;
386
+ /**
387
+ * Machine-readable tag annotation attached to the uploaded version
388
+ * (e.g. a git commit SHA or PR number).
389
+ */
390
+ tag?: string;
391
+ }
156
392
  export interface WorkerProps<Bindings extends WorkerBindingProps = any, Assets extends WorkerAssetsConfig | undefined = WorkerAssetsConfig | undefined> extends PlatformProps {
157
393
  /**
158
394
  * Worker name override. If omitted, Alchemy derives a deterministic physical
@@ -181,21 +417,38 @@ export interface WorkerProps<Bindings extends WorkerBindingProps = any, Assets e
181
417
  */
182
418
  namespace?: string | DispatchNamespace;
183
419
  /**
184
- * Whether to enable a workers.dev URL for this worker
420
+ * Worker versions & gradual deployments. Set `version.parent` to upload
421
+ * this Worker as a preview/canary *version* of another Worker's script
422
+ * instead of creating its own; set `version.traffic` below 100 to
423
+ * gradually roll out a deploy of this Worker's own script. See
424
+ * {@link WorkerVersionOptions}.
425
+ */
426
+ version?: WorkerVersionOptions;
427
+ /**
428
+ * Controls the Worker's `workers.dev` surface.
429
+ *
430
+ * - `true` (the default) — serve the Worker at its stable `workers.dev`
431
+ * URL and enable version preview URLs.
432
+ * - `false` — no `workers.dev` URLs at all.
433
+ * - An object — toggle the stable URL and version previews independently,
434
+ * e.g. `{ enabled: false, previewsEnabled: true }` keeps the stable URL
435
+ * off while each deployed version stays reachable at its preview URL.
436
+ *
185
437
  * @default true
186
438
  */
187
- url?: boolean;
439
+ workersDev?: boolean | WorkersDevConfig;
188
440
  /**
189
441
  * Static assets to serve. Can be:
190
442
  * - A string path to the assets directory
191
443
  * - An AssetsProps object with directory and config
192
444
  * - An object with path and hash (e.g., from a Build resource)
445
+ *
446
+ * When neither {@link main} nor {@link script} is provided, the Worker is
447
+ * deployed **assets-only**: no script is uploaded at all and Cloudflare's
448
+ * asset layer serves every request, applying `htmlHandling` /
449
+ * `notFoundHandling` (including single-page-application fallback) itself.
193
450
  */
194
451
  assets?: Assets;
195
- subdomain?: {
196
- enabled?: boolean;
197
- previewsEnabled?: boolean;
198
- };
199
452
  /** @internal used by Cloudflare.Website.Vite resource */
200
453
  vite?: ViteOptions;
201
454
  logpush?: boolean;
@@ -232,7 +485,8 @@ export interface WorkerProps<Bindings extends WorkerBindingProps = any, Assets e
232
485
  tags?: string[];
233
486
  /**
234
487
  * Path to the Worker's entry module. Bundled with rolldown before
235
- * upload. Mutually exclusive with {@link script} — provide exactly one.
488
+ * upload. Mutually exclusive with {@link script} — provide at most one.
489
+ * Omit both (with {@link assets} set) to deploy an assets-only Worker.
236
490
  *
237
491
  * A `.py` entry deploys a Python Worker instead: no bundling runs — the
238
492
  * entry plus every sibling `.py` file upload as Python modules, the
@@ -275,6 +529,11 @@ export interface WorkerProps<Bindings extends WorkerBindingProps = any, Assets e
275
529
  * [Secrets & env](/cloudflare/security/secrets-env).
276
530
  * - Literal values — routed by shape: `Redacted<string>` →
277
531
  * `secret_text`, `string` → `plain_text`, anything else → `json`.
532
+ * - `Output` values that resolve to a plain env value (e.g.
533
+ * `Alchemy.makeRandom`) — classified at deploy time by their
534
+ * resolved value using the literal rules above. Whole-resource
535
+ * Outputs (`Output.of(bucket)`) are rejected at deploy time; bind
536
+ * the resource itself instead.
278
537
  *
279
538
  * In Effect-native Workers you can alternatively `yield*` a
280
539
  * `Config` in the Init phase to register the binding implicitly;
@@ -295,11 +554,20 @@ export interface WorkerProps<Bindings extends WorkerBindingProps = any, Assets e
295
554
  */
296
555
  crons?: string[];
297
556
  /**
298
- * One or more custom hostnames (e.g. `"app.example.com"`) to bind to this
299
- * Worker. The Cloudflare Zone is inferred from the hostname — the zone must
300
- * already exist in the account.
557
+ * The Worker's custom domain: one canonical hostname, plus optional
558
+ * `aliases` that also serve the Worker and `redirects` that 301 to the
559
+ * canonical name. A bare string is shorthand for `{ name }`. The
560
+ * Cloudflare zone is inferred from each hostname — the zone must already
561
+ * exist in the account.
562
+ *
563
+ * When set, `https://<name>` becomes the Worker's primary `url` output,
564
+ * ranking above the `workers.dev` URL. See {@link WorkerDomainConfig}.
565
+ *
566
+ * Omitting the prop leaves custom domains unmanaged — attachments made
567
+ * outside Alchemy are preserved. Pass `null` to explicitly detach every
568
+ * custom domain (and remove their redirect rules).
301
569
  */
302
- domain?: string | string[];
570
+ domain?: string | WorkerDomainConfig | null;
303
571
  /**
304
572
  * Zone routes that map URL patterns to this Worker. Equivalent to Wrangler's
305
573
  * `routes` array — provide `zoneName` or `zoneId` (or `zone`) alongside each
@@ -379,6 +647,22 @@ export interface WorkerProps<Bindings extends WorkerBindingProps = any, Assets e
379
647
  * @default false
380
648
  */
381
649
  strictPort?: boolean;
650
+ /**
651
+ * Whether the local runtime's Cache API simulator
652
+ * (`caches.default` / `caches.open()`) stores responses. Set
653
+ * `false` to make every cache operation a no-op — matching
654
+ * production behaviour on `workers.dev` subdomains, where the
655
+ * Cache API silently does nothing.
656
+ * @default true
657
+ */
658
+ cache?: boolean;
659
+ /**
660
+ * Override the `request.cf` blob served to this Worker locally.
661
+ * Defaults to a static placeholder (Miniflare's Austin/DFW blob);
662
+ * pass e.g. `{ colo: "LHR", country: "GB" }` to simulate a
663
+ * different edge location.
664
+ */
665
+ cf?: Record<string, unknown>;
382
666
  } | {
383
667
  /**
384
668
  * Don't start a local Worker; an external dev server is running instead.
@@ -466,17 +750,81 @@ export type Worker<Bindings extends WorkerBindings = any> = Resource<WorkerTypeI
466
750
  */
467
751
  namespace: string | undefined;
468
752
  logpush: boolean | undefined;
753
+ /**
754
+ * The most significant URL the Worker is reachable at — always
755
+ * `urls[0]`, or `undefined` when the Worker is not reachable at any
756
+ * URL (e.g. a dispatch-namespace user worker). Ranking: the canonical
757
+ * custom domain, then aliases, then the stable `workers.dev` URL; a
758
+ * version worker's `url` is its aliased preview URL; under
759
+ * `alchemy dev` it is the local dev server's URL.
760
+ */
469
761
  url: string | undefined;
762
+ /**
763
+ * Every URL that serves this Worker, most significant first —
764
+ * `[https://<domain.name>?, ...aliases, <workers.dev URL>?,
765
+ * <version preview URLs>?]`, or the local dev server's
766
+ * `[localhost, ...LAN]` URLs under `alchemy dev`. Redirect hostnames
767
+ * never appear (they don't serve the Worker). Useful wholesale, e.g.
768
+ * as a CORS allow-list.
769
+ */
770
+ urls: string[];
771
+ /**
772
+ * The Worker's resolved custom-domain configuration — canonical
773
+ * `name`, `aliases`, and `redirects` as deployed — or `undefined`
774
+ * when no custom domain is configured.
775
+ */
776
+ domain: {
777
+ name: string;
778
+ aliases: string[];
779
+ redirects: string[];
780
+ } | undefined;
470
781
  tags: string[] | undefined;
471
782
  durableObjectNamespaces: Record<string, string>;
472
783
  accountId: string;
473
- domains: string[];
474
784
  routes: {
475
785
  id: string;
476
786
  pattern: string;
477
787
  zoneId: string;
478
788
  }[];
479
789
  crons: string[];
790
+ /**
791
+ * The parent script name this Worker uploads versions to, when this
792
+ * resource is a version worker (`version.parent` set). `undefined` for
793
+ * a Worker that owns its own script — including one deploying with a
794
+ * gradual rollout. This is the discriminator `read`/`delete` use to
795
+ * avoid treating the parent's script as this resource's own.
796
+ */
797
+ versionOf?: string | undefined;
798
+ /**
799
+ * The id of the version uploaded by the most recent deploy. Only set
800
+ * when versioning is in play: always for a version worker
801
+ * (`version.parent`), and for a self-owned Worker when a gradual
802
+ * rollout (`version.traffic` < 100) deployed via the versions API.
803
+ */
804
+ versionId?: string | undefined;
805
+ /**
806
+ * The preview-URL alias attached to the uploaded version — the
807
+ * user-provided `version.alias`, or the auto-derived stable alias for
808
+ * a version worker. The aliased preview URL
809
+ * (`<alias>-<name>.<subdomain>.workers.dev`) is stable across
810
+ * deploys and is the version worker's primary `url`.
811
+ */
812
+ versionAlias?: string | undefined;
813
+ /**
814
+ * The id of the deployment created by the most recent deploy, when the
815
+ * deploy created one through the deployments API (a version with
816
+ * `traffic > 0`). Preview-only versions (`traffic: 0`) have no
817
+ * deployment.
818
+ */
819
+ deploymentId?: string | undefined;
820
+ /**
821
+ * The zone ids currently holding this resource's version-affinity
822
+ * Transform Rules (`version.affinity`) — the cleanup list consulted
823
+ * when affinity is removed or the resource is deleted. For a version
824
+ * worker these are the *parent's* zones. `undefined` when no affinity
825
+ * rules are deployed.
826
+ */
827
+ affinityZoneIds?: string[] | undefined;
480
828
  hash?: {
481
829
  assets: string | undefined;
482
830
  bundle: string | undefined;
@@ -498,7 +846,57 @@ export type Worker<Bindings extends WorkerBindings = any> = Resource<WorkerTypeI
498
846
  }[];
499
847
  crons?: string[];
500
848
  hyperdrives?: Record<string, Required<DevOrigin>>;
849
+ dev?: {
850
+ remote?: boolean;
851
+ };
501
852
  }, Providers>;
853
+ /**
854
+ * Effect-native accessor for the Worker's own URL. The value is injected as an
855
+ * env binding that only exists at the *exec* phase on the deployed Worker, so
856
+ * reading it is deferred behind an Effect that requires {@link RuntimeContext}.
857
+ * Yield it inside a handler to obtain the URL string.
858
+ */
859
+ export type URLAccessor = Effect.Effect<string, never, RuntimeContext>;
860
+ /**
861
+ * The type of {@link URL} (`Worker.URL`).
862
+ *
863
+ * It is a real `Effect` — `yield* Worker.URL` inside a Worker init attaches
864
+ * the binding and resolves the deferred {@link URLAccessor} — but it also
865
+ * carries the `~alchemy/Kind` marker statically, so when it is declared on a
866
+ * Worker's `env` the binding machinery recognises it as a `self_url` binding
867
+ * (`isSelfUrl`) instead of running it.
868
+ *
869
+ * Defined in this module (not its own file): the effect closes over the
870
+ * `Worker` tag and `WorkerEnvironment`, and a separate module would form a
871
+ * value cycle with Worker.ts that the deploy bundler's scope hoisting turns
872
+ * into a startup crash.
873
+ */
874
+ export interface URLEffect extends Effect.Effect<URLAccessor, never, WorkerEnvironment | Worker> {
875
+ "~alchemy/Kind": "Cloudflare.Workers.URL";
876
+ }
877
+ /**
878
+ * A Worker's own public URL, injected as a binding on that same Worker. At
879
+ * deploy time Alchemy resolves the URL the Worker will be served at (its first
880
+ * custom domain if any, otherwise its `workers.dev` URL) and injects it as a
881
+ * plain-text env binding, so the running Worker knows its own public address.
882
+ *
883
+ * Declare it on a Worker's `env` (it flows through `InferEnv` → `string`) or
884
+ * `yield*` it inside an Effect-native Worker to attach the binding and obtain
885
+ * a deferred {@link URLAccessor}. It is also exposed as
886
+ * `Cloudflare.Worker.URL`.
887
+ *
888
+ * Because the URL is resolved *before* the bundle is built, a `VITE_`-prefixed
889
+ * env key holding `Worker.URL` is inlined into the client bundle as
890
+ * `import.meta.env.VITE_*` — the canonical way to give a Vite frontend its own
891
+ * public URL.
892
+ */
893
+ export declare const URL: URLEffect;
894
+ /**
895
+ * Returns true when the value is the `Worker.URL` binding (keyed on the
896
+ * static `~alchemy/Kind` marker — the value is a real Effect, so every
897
+ * env-resolution site must check this before `Effect.isEffect`).
898
+ */
899
+ export declare const isSelfUrl: (value: unknown) => value is URLEffect;
502
900
  /**
503
901
  * A Cloudflare Worker host with deploy-time binding support and runtime export
504
902
  * collection.
@@ -739,6 +1137,22 @@ export type Worker<Bindings extends WorkerBindings = any> = Resource<WorkerTypeI
739
1137
  * }
740
1138
  * ```
741
1139
  *
1140
+ * @example Assets-only Worker (static site)
1141
+ * Omit `main` and `script` entirely to deploy a static site: no Worker
1142
+ * code is uploaded — Cloudflare's asset layer serves every request and
1143
+ * applies `htmlHandling` / `notFoundHandling` (including SPA fallback)
1144
+ * itself, exactly like an assets-only `wrangler deploy`.
1145
+ * ```typescript
1146
+ * const site = yield* Cloudflare.Worker("Site", {
1147
+ * assets: {
1148
+ * directory: "./public",
1149
+ * htmlHandling: "drop-trailing-slash",
1150
+ * notFoundHandling: "404-page",
1151
+ * },
1152
+ * domain: "static.example.com",
1153
+ * });
1154
+ * ```
1155
+ *
742
1156
  * @example Zone routes
743
1157
  * ```typescript
744
1158
  * {
@@ -765,6 +1179,170 @@ export type Worker<Bindings extends WorkerBindings = any> = Resource<WorkerTypeI
765
1179
  * }
766
1180
  * ```
767
1181
  *
1182
+ * @section URLs & Domains
1183
+ * Every URL that serves the Worker is collected in `worker.urls`, most
1184
+ * significant first, and `worker.url` is always `urls[0]`. The ranking:
1185
+ * the canonical custom domain (`domain.name`), then aliases in declared
1186
+ * order, then the stable `workers.dev` URL, then version preview URLs.
1187
+ * Under `alchemy dev`, `urls` is the local dev server's
1188
+ * `[localhost, ...LAN]` addresses instead. Redirect hostnames never
1189
+ * appear in `urls` — they serve no content.
1190
+ *
1191
+ * The `workersDev` prop controls the `workers.dev` surface (`true` by
1192
+ * default = stable URL + version previews; `false` = neither; object form
1193
+ * toggles independently), and the `domain` prop attaches custom domains —
1194
+ * DNS records and edge certificates are managed automatically.
1195
+ *
1196
+ * @example Custom domain with aliases and redirects
1197
+ * ```typescript
1198
+ * const worker = yield* Cloudflare.Worker("Api", {
1199
+ * main: "./src/api.ts",
1200
+ * domain: {
1201
+ * name: "example.com",
1202
+ * aliases: ["www.example.com"],
1203
+ * redirects: ["old.example.com"], // 301 → https://example.com
1204
+ * },
1205
+ * });
1206
+ * // worker.url === "https://example.com"
1207
+ * // worker.urls === ["https://example.com", "https://www.example.com",
1208
+ * // "https://<name>.<account>.workers.dev"]
1209
+ * ```
1210
+ *
1211
+ * @example workers.dev toggles
1212
+ * ```typescript
1213
+ * // No workers.dev URLs at all:
1214
+ * { main: "./src/api.ts", workersDev: false, domain: "api.example.com" }
1215
+ *
1216
+ * // Previews only — each deploy's version preview URL becomes worker.url:
1217
+ * { main: "./src/api.ts", workersDev: { enabled: false, previewsEnabled: true } }
1218
+ * ```
1219
+ *
1220
+ * @example All URLs as a CORS allow-list
1221
+ * ```typescript
1222
+ * const site = yield* Cloudflare.Worker("Site", {
1223
+ * main: "./src/site.ts",
1224
+ * domain: { name: "example.com", aliases: ["www.example.com"] },
1225
+ * });
1226
+ * const api = yield* Cloudflare.Worker("Api", {
1227
+ * main: "./src/api.ts",
1228
+ * env: { ALLOWED_ORIGINS: site.urls },
1229
+ * });
1230
+ * ```
1231
+ *
1232
+ * @section Versions & Gradual Deployments
1233
+ * The `version` prop maps Cloudflare's
1234
+ * [versions and gradual deployments](https://developers.cloudflare.com/workers/configuration/versions-and-deployments/)
1235
+ * onto Alchemy stages. A Worker with `version.parent` set uploads an
1236
+ * immutable *version* to the parent Worker's script instead of creating its
1237
+ * own — by default with no traffic, reachable only at its preview URL
1238
+ * (`worker.url`), which is the PR-preview workflow. Give it `traffic` to
1239
+ * run it as a canary, or use `version.traffic` on a normal Worker to roll
1240
+ * out its own deploys gradually.
1241
+ *
1242
+ * A version worker's `url` is its *aliased* preview URL
1243
+ * (`<alias>-<name>.<subdomain>.workers.dev`) — the alias is derived from
1244
+ * the stack, stage, and logical id (override with `version.alias`), so the
1245
+ * URL is stable across deploys and always points at the latest uploaded
1246
+ * version. The per-version URL (`<version-prefix>-...`) is also returned
1247
+ * in `domains`. Because the aliased URL is known before the version
1248
+ * exists, `Worker.URL` works on version workers and resolves to it.
1249
+ *
1250
+ * A version carries code, bindings, and compatibility settings. Script-level
1251
+ * settings (routes, domains, crons, tags, observability, …) belong to the
1252
+ * parent and are rejected on version workers, as are locally-hosted Durable
1253
+ * Object or Workflow classes. Preview URLs require the parent's workers.dev
1254
+ * subdomain to be enabled (the default).
1255
+ *
1256
+ * @example PR preview: a version of another stage's Worker
1257
+ * ```typescript
1258
+ * // The staging stage deploys the real Worker; a PR stage uploads its
1259
+ * // code as a zero-traffic version of staging's script and gets back a
1260
+ * // stable preview URL.
1261
+ * const parent = yield* Cloudflare.Worker.ref("MyWorker", {
1262
+ * stage: "staging",
1263
+ * });
1264
+ * const preview = yield* Cloudflare.Worker("MyWorker", {
1265
+ * main: "./src/worker.ts",
1266
+ * version: { parent, message: `PR #${process.env.PR_NUMBER}` },
1267
+ * });
1268
+ * // preview.url -> https://<alias>-<name>.<subdomain>.workers.dev
1269
+ * // (stable across deploys; re-points at each newly uploaded version)
1270
+ * ```
1271
+ *
1272
+ * @example Canary: send 10% of the parent's traffic to a version
1273
+ * ```typescript
1274
+ * const parent = yield* Cloudflare.Worker.ref("MyWorker", { stage: "prod" });
1275
+ * yield* Cloudflare.Worker("MyWorker", {
1276
+ * main: "./src/worker.ts",
1277
+ * version: { parent, traffic: 10 },
1278
+ * });
1279
+ * ```
1280
+ *
1281
+ * @example Gradual rollout of a Worker's own deploy
1282
+ * ```typescript
1283
+ * // The new version takes 25% of traffic; the previously-live version
1284
+ * // keeps 75%. Bump traffic (or remove the prop) and re-deploy to promote.
1285
+ * yield* Cloudflare.Worker("MyWorker", {
1286
+ * main: "./src/worker.ts",
1287
+ * version: { traffic: 25 },
1288
+ * });
1289
+ * ```
1290
+ *
1291
+ * @example Keep users on one version during the rollout
1292
+ * ```typescript
1293
+ * // Percentages route each request independently; affinity pins users by
1294
+ * // filling the Cloudflare-Workers-Version-Key header on zone traffic —
1295
+ * // here from the session cookie, falling back to the client IP. Requires
1296
+ * // a `domain` or `routes` (with `parent`, the parent's).
1297
+ * yield* Cloudflare.Worker("MyWorker", {
1298
+ * main: "./src/worker.ts",
1299
+ * domain: "api.example.com",
1300
+ * version: {
1301
+ * traffic: 25,
1302
+ * affinity: { cookie: "session_id", ip: true },
1303
+ * },
1304
+ * });
1305
+ * ```
1306
+ *
1307
+ * @section The Worker's own URL
1308
+ * `Worker.URL` injects the URL a Worker is served at as a binding on that
1309
+ * same Worker — the first custom `domain` if one is configured, otherwise
1310
+ * its `workers.dev` URL, always equal to the resource's `url` attribute.
1311
+ * Under `alchemy dev` it resolves to the local dev server's URL.
1312
+ *
1313
+ * @example Read the Worker's own URL inside a handler
1314
+ * ```typescript
1315
+ * Cloudflare.Worker(
1316
+ * "Api",
1317
+ * { main: import.meta.url },
1318
+ * Effect.gen(function* () {
1319
+ * // Attaches the binding and returns a deferred accessor.
1320
+ * const url = yield* Cloudflare.Worker.URL;
1321
+ *
1322
+ * return {
1323
+ * fetch: Effect.gen(function* () {
1324
+ * const publicUrl = yield* url;
1325
+ * return Response.json({ url: publicUrl });
1326
+ * }),
1327
+ * };
1328
+ * }).pipe(Effect.provide(Cloudflare.Workers.URLBinding)),
1329
+ * );
1330
+ * ```
1331
+ *
1332
+ * @example Inject the URL into an async Worker's env
1333
+ * `InferEnv` types the entry as `string`. A `VITE_`-prefixed key on a
1334
+ * vite-built Worker is additionally inlined into the client bundle as
1335
+ * `import.meta.env.VITE_PUBLIC_URL` at build time.
1336
+ * ```typescript
1337
+ * export const Worker = Cloudflare.Worker("Worker", {
1338
+ * main: "./src/worker.ts",
1339
+ * env: { PUBLIC_URL: Cloudflare.Worker.URL },
1340
+ * });
1341
+ *
1342
+ * export type WorkerEnv = Cloudflare.InferEnv<typeof Worker>;
1343
+ * // { PUBLIC_URL: string }
1344
+ * ```
1345
+ *
768
1346
  * @section Observability
769
1347
  * Cloudflare Workers Observability is on by default — `logs.enabled` and
770
1348
  * `logs.invocationLogs` are turned on if you don't pass an `observability`
@@ -1060,11 +1638,32 @@ export declare const Worker: ResourceClassLike<Worker> & Effect.Effect<Worker &
1060
1638
  <const Id extends string, Shape extends WorkerShape, Req extends WorkerServices | Container.Application<any> | PlatformServices | Tag>(id: Id, props: InputProps<WorkerProps>, impl: Effect.Effect<Shape, ConfigError, Req>): Effect.Effect<Worker & Rpc<Self>, never, Extract<Req, Container.Application<any>> | Providers> & Named<Id> & {
1061
1639
  new (): MakeShape<Shape, WorkerShape> & Named<Id> & Tag;
1062
1640
  };
1641
+ /**
1642
+ * Class form without an implementation — an external Worker (a plain
1643
+ * bundled `main`, a raw `script`, or an assets-only Worker with no
1644
+ * script at all):
1645
+ *
1646
+ * ```typescript
1647
+ * export class Site extends Cloudflare.Worker<Site>()("Site", {
1648
+ * assets: { directory: "./public" },
1649
+ * }) {}
1650
+ * ```
1651
+ */
1652
+ <const Id extends string, Req = never>(id: Id, props: InputProps<WorkerProps> | Effect.Effect<InputProps<WorkerProps>, ConfigError, Req>): Effect.Effect<Worker & Rpc<{}>, never, Req | Providers> & Named<Id> & {
1653
+ new (): Named<Id> & Tag;
1654
+ };
1063
1655
  };
1064
1656
  <const Bindings extends WorkerBindingProps = {}, const Assets extends WorkerAssetsConfig | undefined = undefined, Req = never>(id: string, props: InputProps<WorkerProps<Bindings, Assets>> | Effect.Effect<InputProps<WorkerProps<Bindings, Assets>>, ConfigError, Req>): Effect.Effect<Worker<{
1065
1657
  [binding in keyof NormalizedBindings<Bindings, Assets>]: NormalizedBindings<Bindings, Assets>[binding];
1066
1658
  }> & Rpc<{}>, never, Req | Providers>;
1067
1659
  <const Id extends string, Shape extends WorkerShape, Req extends WorkerServices | Container.Application<any> | PlatformServices>(id: string, props: InputProps<WorkerProps>, impl: Effect.Effect<Shape, ConfigError, Req>): Effect.Effect<Worker & Rpc<Shape>, never, Extract<Req, Container.Application<any>> | Providers> & Named<Id>;
1660
+ /**
1661
+ * The Worker's own public URL, injected as a binding on that same Worker.
1662
+ * Declare it on `env` (`env: { VITE_PUBLIC_URL: Worker.URL }`) or
1663
+ * `yield*` it inside an Effect-native Worker to obtain a deferred
1664
+ * accessor. See {@link URLEffect}.
1665
+ */
1666
+ readonly URL: URLEffect;
1068
1667
  };
1069
1668
  export {};
1070
1669
  //# sourceMappingURL=Worker.d.ts.map