monorise 0.1.0 → 1.1.0-dev.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 (275) hide show
  1. package/dist/base/index.d.ts +90 -5
  2. package/dist/base/index.js.map +1 -1
  3. package/dist/cli/cli.js +6 -0
  4. package/dist/cli/cli.js.map +1 -1
  5. package/dist/core/chunk-QV4Q5377.js +76 -0
  6. package/dist/core/chunk-QV4Q5377.js.map +1 -0
  7. package/dist/core/index.d.ts +187 -19
  8. package/dist/core/index.js +1583 -85
  9. package/dist/core/index.js.map +1 -1
  10. package/dist/core/service.config-ZJEZ6EKA.js +13 -0
  11. package/dist/core/service.config-ZJEZ6EKA.js.map +1 -0
  12. package/dist/proxy/index.d.ts +35 -0
  13. package/dist/proxy/index.js +75 -0
  14. package/dist/proxy/index.js.map +1 -0
  15. package/dist/react/actions/websocket.action.d.ts +71 -0
  16. package/dist/react/actions/websocket.action.d.ts.map +1 -0
  17. package/dist/react/chunk-4D22OCZG.js +65 -0
  18. package/dist/react/chunk-4D22OCZG.js.map +1 -0
  19. package/dist/react/chunk-4N3P4ONH.js +588 -0
  20. package/dist/react/chunk-4N3P4ONH.js.map +1 -0
  21. package/dist/react/chunk-4Y4KWGJD.js +182 -0
  22. package/dist/react/chunk-4Y4KWGJD.js.map +1 -0
  23. package/dist/react/chunk-757E5UYA.js +893 -0
  24. package/dist/react/chunk-757E5UYA.js.map +1 -0
  25. package/dist/react/chunk-A5TI2FW3.js +13 -0
  26. package/dist/react/chunk-A5TI2FW3.js.map +1 -0
  27. package/dist/react/chunk-B3XDGUFO.js +489 -0
  28. package/dist/react/chunk-B3XDGUFO.js.map +1 -0
  29. package/dist/react/chunk-BPBCUO2Z.js +248 -0
  30. package/dist/react/chunk-BPBCUO2Z.js.map +1 -0
  31. package/dist/react/chunk-CQBOIXWK.js +142 -0
  32. package/dist/react/chunk-CQBOIXWK.js.map +1 -0
  33. package/dist/react/chunk-DRH2BB7I.js +383 -0
  34. package/dist/react/chunk-DRH2BB7I.js.map +1 -0
  35. package/dist/react/chunk-EQ3PKQ2S.js +402 -0
  36. package/dist/react/chunk-EQ3PKQ2S.js.map +1 -0
  37. package/dist/react/chunk-H64MMAL7.js +245 -0
  38. package/dist/react/chunk-H64MMAL7.js.map +1 -0
  39. package/dist/react/chunk-KJX5LOMN.js +43 -0
  40. package/dist/react/chunk-KJX5LOMN.js.map +1 -0
  41. package/dist/react/chunk-MO35V2Y7.js +172 -0
  42. package/dist/react/chunk-MO35V2Y7.js.map +1 -0
  43. package/dist/react/chunk-UC3E72G7.js +73 -0
  44. package/dist/react/chunk-UC3E72G7.js.map +1 -0
  45. package/dist/react/chunk-UHMKB3OR.js +5568 -0
  46. package/dist/react/chunk-UHMKB3OR.js.map +1 -0
  47. package/dist/react/chunk-UQPQBWEQ.js +54 -0
  48. package/dist/react/chunk-UQPQBWEQ.js.map +1 -0
  49. package/dist/react/chunk-XCDCVRJR.js +43 -0
  50. package/dist/react/chunk-XCDCVRJR.js.map +1 -0
  51. package/dist/react/chunk-XOYAZDIH.js +47 -0
  52. package/dist/react/chunk-XOYAZDIH.js.map +1 -0
  53. package/dist/react/chunk-YNFQEPO5.js +29 -0
  54. package/dist/react/chunk-YNFQEPO5.js.map +1 -0
  55. package/dist/react/dist-es-35AO47NO.js +90 -0
  56. package/dist/react/dist-es-35AO47NO.js.map +1 -0
  57. package/dist/react/dist-es-5GDBXNKQ.js +333 -0
  58. package/dist/react/dist-es-5GDBXNKQ.js.map +1 -0
  59. package/dist/react/dist-es-B3JDGWY6.js +71 -0
  60. package/dist/react/dist-es-B3JDGWY6.js.map +1 -0
  61. package/dist/react/dist-es-IWIE5JLA.js +169 -0
  62. package/dist/react/dist-es-IWIE5JLA.js.map +1 -0
  63. package/dist/react/dist-es-NRIS3TYJ.js +494 -0
  64. package/dist/react/dist-es-NRIS3TYJ.js.map +1 -0
  65. package/dist/react/dist-es-VCXAEYYN.js +22 -0
  66. package/dist/react/dist-es-VCXAEYYN.js.map +1 -0
  67. package/dist/react/dist-es-VU33JFTZ.js +379 -0
  68. package/dist/react/dist-es-VU33JFTZ.js.map +1 -0
  69. package/dist/react/event-streams-OSOTOTTP.js +277 -0
  70. package/dist/react/event-streams-OSOTOTTP.js.map +1 -0
  71. package/dist/react/index.d.ts +53 -4
  72. package/dist/react/index.d.ts.map +1 -1
  73. package/dist/react/index.js +10948 -190
  74. package/dist/react/index.js.map +1 -1
  75. package/dist/react/loadSso-ME7MKAM3.js +556 -0
  76. package/dist/react/loadSso-ME7MKAM3.js.map +1 -0
  77. package/dist/react/service.config-ZJEZ6EKA-FC2TR3GH.js +14 -0
  78. package/dist/react/service.config-ZJEZ6EKA-FC2TR3GH.js.map +1 -0
  79. package/dist/react/services/core.service.d.ts +11 -1
  80. package/dist/react/services/core.service.d.ts.map +1 -1
  81. package/dist/react/signin-LOXYIE5I.js +653 -0
  82. package/dist/react/signin-LOXYIE5I.js.map +1 -0
  83. package/dist/react/sso-oidc-X63KRRLO.js +786 -0
  84. package/dist/react/sso-oidc-X63KRRLO.js.map +1 -0
  85. package/dist/react/sts-OXBEY7HY.js +3948 -0
  86. package/dist/react/sts-OXBEY7HY.js.map +1 -0
  87. package/dist/react/websocket/WebSocketManager.d.ts +68 -0
  88. package/dist/react/websocket/WebSocketManager.d.ts.map +1 -0
  89. package/dist/react/websocket/index.d.ts +3 -0
  90. package/dist/react/websocket/index.d.ts.map +1 -0
  91. package/dist/react/websocket/optimistic.d.ts +51 -0
  92. package/dist/react/websocket/optimistic.d.ts.map +1 -0
  93. package/dist/react/websocket-QHA7SQXG.js +10 -0
  94. package/dist/react/websocket-QHA7SQXG.js.map +1 -0
  95. package/dist/sst/.sst/platform/src/components/aws/alb.d.ts +280 -0
  96. package/dist/sst/.sst/platform/src/components/aws/alb.d.ts.map +1 -0
  97. package/dist/sst/.sst/platform/src/components/aws/apigateway-websocket-route.d.ts +1 -1
  98. package/dist/sst/.sst/platform/src/components/aws/apigateway-websocket-route.d.ts.map +1 -1
  99. package/dist/sst/.sst/platform/src/components/aws/apigateway-websocket.d.ts +13 -2
  100. package/dist/sst/.sst/platform/src/components/aws/apigateway-websocket.d.ts.map +1 -1
  101. package/dist/sst/.sst/platform/src/components/aws/apigatewayv1-authorizer.d.ts.map +1 -1
  102. package/dist/sst/.sst/platform/src/components/aws/apigatewayv1-lambda-route.d.ts +1 -1
  103. package/dist/sst/.sst/platform/src/components/aws/apigatewayv1-lambda-route.d.ts.map +1 -1
  104. package/dist/sst/.sst/platform/src/components/aws/apigatewayv1.d.ts +93 -83
  105. package/dist/sst/.sst/platform/src/components/aws/apigatewayv1.d.ts.map +1 -1
  106. package/dist/sst/.sst/platform/src/components/aws/apigatewayv2-authorizer.d.ts.map +1 -1
  107. package/dist/sst/.sst/platform/src/components/aws/apigatewayv2-lambda-route.d.ts +1 -1
  108. package/dist/sst/.sst/platform/src/components/aws/apigatewayv2-lambda-route.d.ts.map +1 -1
  109. package/dist/sst/.sst/platform/src/components/aws/apigatewayv2.d.ts +8 -2
  110. package/dist/sst/.sst/platform/src/components/aws/apigatewayv2.d.ts.map +1 -1
  111. package/dist/sst/.sst/platform/src/components/aws/app-sync-data-source.d.ts +1 -1
  112. package/dist/sst/.sst/platform/src/components/aws/app-sync-data-source.d.ts.map +1 -1
  113. package/dist/sst/.sst/platform/src/components/aws/app-sync.d.ts +1 -1
  114. package/dist/sst/.sst/platform/src/components/aws/app-sync.d.ts.map +1 -1
  115. package/dist/sst/.sst/platform/src/components/aws/aurora.d.ts +18 -0
  116. package/dist/sst/.sst/platform/src/components/aws/aurora.d.ts.map +1 -1
  117. package/dist/sst/.sst/platform/src/components/aws/auth-v1.d.ts +1 -1
  118. package/dist/sst/.sst/platform/src/components/aws/auth-v1.d.ts.map +1 -1
  119. package/dist/sst/.sst/platform/src/components/aws/auth.d.ts.map +1 -1
  120. package/dist/sst/.sst/platform/src/components/aws/bucket-lambda-subscriber.d.ts +1 -1
  121. package/dist/sst/.sst/platform/src/components/aws/bucket-lambda-subscriber.d.ts.map +1 -1
  122. package/dist/sst/.sst/platform/src/components/aws/bucket-notification.d.ts.map +1 -1
  123. package/dist/sst/.sst/platform/src/components/aws/bucket.d.ts +13 -8
  124. package/dist/sst/.sst/platform/src/components/aws/bucket.d.ts.map +1 -1
  125. package/dist/sst/.sst/platform/src/components/aws/bus-lambda-subscriber.d.ts +3 -2
  126. package/dist/sst/.sst/platform/src/components/aws/bus-lambda-subscriber.d.ts.map +1 -1
  127. package/dist/sst/.sst/platform/src/components/aws/bus.d.ts +34 -3
  128. package/dist/sst/.sst/platform/src/components/aws/bus.d.ts.map +1 -1
  129. package/dist/sst/.sst/platform/src/components/aws/cdn.d.ts +11 -0
  130. package/dist/sst/.sst/platform/src/components/aws/cdn.d.ts.map +1 -1
  131. package/dist/sst/.sst/platform/src/components/aws/cluster.d.ts +59 -1
  132. package/dist/sst/.sst/platform/src/components/aws/cluster.d.ts.map +1 -1
  133. package/dist/sst/.sst/platform/src/components/aws/cognito-identity-pool.d.ts +5 -0
  134. package/dist/sst/.sst/platform/src/components/aws/cognito-identity-pool.d.ts.map +1 -1
  135. package/dist/sst/.sst/platform/src/components/aws/cognito-user-pool.d.ts +100 -0
  136. package/dist/sst/.sst/platform/src/components/aws/cognito-user-pool.d.ts.map +1 -1
  137. package/dist/sst/.sst/platform/src/components/aws/cron-v2.d.ts +325 -0
  138. package/dist/sst/.sst/platform/src/components/aws/cron-v2.d.ts.map +1 -0
  139. package/dist/sst/.sst/platform/src/components/aws/cron.d.ts +15 -6
  140. package/dist/sst/.sst/platform/src/components/aws/cron.d.ts.map +1 -1
  141. package/dist/sst/.sst/platform/src/components/aws/dsql.d.ts +369 -0
  142. package/dist/sst/.sst/platform/src/components/aws/dsql.d.ts.map +1 -0
  143. package/dist/sst/.sst/platform/src/components/aws/dynamo-lambda-subscriber.d.ts +1 -1
  144. package/dist/sst/.sst/platform/src/components/aws/dynamo-lambda-subscriber.d.ts.map +1 -1
  145. package/dist/sst/.sst/platform/src/components/aws/dynamo.d.ts +63 -3
  146. package/dist/sst/.sst/platform/src/components/aws/dynamo.d.ts.map +1 -1
  147. package/dist/sst/.sst/platform/src/components/aws/email.d.ts +5 -0
  148. package/dist/sst/.sst/platform/src/components/aws/email.d.ts.map +1 -1
  149. package/dist/sst/.sst/platform/src/components/aws/fargate.d.ts +95 -4
  150. package/dist/sst/.sst/platform/src/components/aws/fargate.d.ts.map +1 -1
  151. package/dist/sst/.sst/platform/src/components/aws/function.d.ts +121 -21
  152. package/dist/sst/.sst/platform/src/components/aws/function.d.ts.map +1 -1
  153. package/dist/sst/.sst/platform/src/components/aws/helpers/arn.d.ts +11 -0
  154. package/dist/sst/.sst/platform/src/components/aws/helpers/arn.d.ts.map +1 -1
  155. package/dist/sst/.sst/platform/src/components/aws/helpers/container-builder.d.ts.map +1 -1
  156. package/dist/sst/.sst/platform/src/components/aws/helpers/function-builder.d.ts +7 -3
  157. package/dist/sst/.sst/platform/src/components/aws/helpers/function-builder.d.ts.map +1 -1
  158. package/dist/sst/.sst/platform/src/components/aws/helpers/load-balancer.d.ts +9 -0
  159. package/dist/sst/.sst/platform/src/components/aws/helpers/load-balancer.d.ts.map +1 -0
  160. package/dist/sst/.sst/platform/src/components/aws/helpers/provider.d.ts +2 -2
  161. package/dist/sst/.sst/platform/src/components/aws/helpers/provider.d.ts.map +1 -1
  162. package/dist/sst/.sst/platform/src/components/aws/helpers/site-builder.d.ts +1 -1
  163. package/dist/sst/.sst/platform/src/components/aws/helpers/site-builder.d.ts.map +1 -1
  164. package/dist/sst/.sst/platform/src/components/aws/helpers/subscriber.d.ts +1 -1
  165. package/dist/sst/.sst/platform/src/components/aws/helpers/subscriber.d.ts.map +1 -1
  166. package/dist/sst/.sst/platform/src/components/aws/https-redirect.d.ts.map +1 -1
  167. package/dist/sst/.sst/platform/src/components/aws/index.d.ts +4 -0
  168. package/dist/sst/.sst/platform/src/components/aws/index.d.ts.map +1 -1
  169. package/dist/sst/.sst/platform/src/components/aws/kinesis-stream-lambda-subscriber.d.ts.map +1 -1
  170. package/dist/sst/.sst/platform/src/components/aws/kinesis-stream.d.ts +8 -3
  171. package/dist/sst/.sst/platform/src/components/aws/kinesis-stream.d.ts.map +1 -1
  172. package/dist/sst/.sst/platform/src/components/aws/linkable.d.ts +1 -1
  173. package/dist/sst/.sst/platform/src/components/aws/linkable.d.ts.map +1 -1
  174. package/dist/sst/.sst/platform/src/components/aws/mysql.d.ts +34 -5
  175. package/dist/sst/.sst/platform/src/components/aws/mysql.d.ts.map +1 -1
  176. package/dist/sst/.sst/platform/src/components/aws/nextjs.d.ts +39 -5
  177. package/dist/sst/.sst/platform/src/components/aws/nextjs.d.ts.map +1 -1
  178. package/dist/sst/.sst/platform/src/components/aws/nuxt.d.ts.map +1 -1
  179. package/dist/sst/.sst/platform/src/components/aws/open-search.d.ts +12 -1
  180. package/dist/sst/.sst/platform/src/components/aws/open-search.d.ts.map +1 -1
  181. package/dist/sst/.sst/platform/src/components/aws/opencontrol.d.ts +7 -3
  182. package/dist/sst/.sst/platform/src/components/aws/opencontrol.d.ts.map +1 -1
  183. package/dist/sst/.sst/platform/src/components/aws/permission.d.ts +5 -0
  184. package/dist/sst/.sst/platform/src/components/aws/permission.d.ts.map +1 -1
  185. package/dist/sst/.sst/platform/src/components/aws/postgres-v1.d.ts +13 -2
  186. package/dist/sst/.sst/platform/src/components/aws/postgres-v1.d.ts.map +1 -1
  187. package/dist/sst/.sst/platform/src/components/aws/postgres.d.ts +34 -5
  188. package/dist/sst/.sst/platform/src/components/aws/postgres.d.ts.map +1 -1
  189. package/dist/sst/.sst/platform/src/components/aws/queue-lambda-subscriber.d.ts +6 -1
  190. package/dist/sst/.sst/platform/src/components/aws/queue-lambda-subscriber.d.ts.map +1 -1
  191. package/dist/sst/.sst/platform/src/components/aws/queue.d.ts +10 -1
  192. package/dist/sst/.sst/platform/src/components/aws/queue.d.ts.map +1 -1
  193. package/dist/sst/.sst/platform/src/components/aws/realtime-lambda-subscriber.d.ts +1 -1
  194. package/dist/sst/.sst/platform/src/components/aws/realtime-lambda-subscriber.d.ts.map +1 -1
  195. package/dist/sst/.sst/platform/src/components/aws/realtime.d.ts +6 -1
  196. package/dist/sst/.sst/platform/src/components/aws/realtime.d.ts.map +1 -1
  197. package/dist/sst/.sst/platform/src/components/aws/redis-v1.d.ts +10 -0
  198. package/dist/sst/.sst/platform/src/components/aws/redis-v1.d.ts.map +1 -1
  199. package/dist/sst/.sst/platform/src/components/aws/redis.d.ts +14 -0
  200. package/dist/sst/.sst/platform/src/components/aws/redis.d.ts.map +1 -1
  201. package/dist/sst/.sst/platform/src/components/aws/router.d.ts +482 -2
  202. package/dist/sst/.sst/platform/src/components/aws/router.d.ts.map +1 -1
  203. package/dist/sst/.sst/platform/src/components/aws/service-v1.d.ts.map +1 -1
  204. package/dist/sst/.sst/platform/src/components/aws/service.d.ts +125 -0
  205. package/dist/sst/.sst/platform/src/components/aws/service.d.ts.map +1 -1
  206. package/dist/sst/.sst/platform/src/components/aws/sns-topic-lambda-subscriber.d.ts +1 -1
  207. package/dist/sst/.sst/platform/src/components/aws/sns-topic-lambda-subscriber.d.ts.map +1 -1
  208. package/dist/sst/.sst/platform/src/components/aws/sns-topic.d.ts +6 -1
  209. package/dist/sst/.sst/platform/src/components/aws/sns-topic.d.ts.map +1 -1
  210. package/dist/sst/.sst/platform/src/components/aws/ssr-site.d.ts +7 -7
  211. package/dist/sst/.sst/platform/src/components/aws/ssr-site.d.ts.map +1 -1
  212. package/dist/sst/.sst/platform/src/components/aws/static-site.d.ts.map +1 -1
  213. package/dist/sst/.sst/platform/src/components/aws/step-functions/state.d.ts +1 -1
  214. package/dist/sst/.sst/platform/src/components/aws/step-functions/state.d.ts.map +1 -1
  215. package/dist/sst/.sst/platform/src/components/aws/step-functions/task.d.ts +10 -2
  216. package/dist/sst/.sst/platform/src/components/aws/step-functions/task.d.ts.map +1 -1
  217. package/dist/sst/.sst/platform/src/components/aws/step-functions.d.ts +5 -0
  218. package/dist/sst/.sst/platform/src/components/aws/step-functions.d.ts.map +1 -1
  219. package/dist/sst/.sst/platform/src/components/aws/tan-stack-start.d.ts +20 -6
  220. package/dist/sst/.sst/platform/src/components/aws/tan-stack-start.d.ts.map +1 -1
  221. package/dist/sst/.sst/platform/src/components/aws/task.d.ts +35 -15
  222. package/dist/sst/.sst/platform/src/components/aws/task.d.ts.map +1 -1
  223. package/dist/sst/.sst/platform/src/components/aws/vector.d.ts +5 -0
  224. package/dist/sst/.sst/platform/src/components/aws/vector.d.ts.map +1 -1
  225. package/dist/sst/.sst/platform/src/components/aws/vpc.d.ts +51 -4
  226. package/dist/sst/.sst/platform/src/components/aws/vpc.d.ts.map +1 -1
  227. package/dist/sst/.sst/platform/src/components/aws/workflow.d.ts +331 -0
  228. package/dist/sst/.sst/platform/src/components/aws/workflow.d.ts.map +1 -0
  229. package/dist/sst/.sst/platform/src/components/cloudflare/ai.d.ts +82 -0
  230. package/dist/sst/.sst/platform/src/components/cloudflare/ai.d.ts.map +1 -0
  231. package/dist/sst/.sst/platform/src/components/cloudflare/binding.d.ts +15 -1
  232. package/dist/sst/.sst/platform/src/components/cloudflare/binding.d.ts.map +1 -1
  233. package/dist/sst/.sst/platform/src/components/cloudflare/bucket.d.ts +4 -2
  234. package/dist/sst/.sst/platform/src/components/cloudflare/bucket.d.ts.map +1 -1
  235. package/dist/sst/.sst/platform/src/components/cloudflare/cron.d.ts +29 -5
  236. package/dist/sst/.sst/platform/src/components/cloudflare/cron.d.ts.map +1 -1
  237. package/dist/sst/.sst/platform/src/components/cloudflare/d1.d.ts +37 -2
  238. package/dist/sst/.sst/platform/src/components/cloudflare/d1.d.ts.map +1 -1
  239. package/dist/sst/.sst/platform/src/components/cloudflare/index.d.ts +1 -0
  240. package/dist/sst/.sst/platform/src/components/cloudflare/index.d.ts.map +1 -1
  241. package/dist/sst/.sst/platform/src/components/cloudflare/kv.d.ts +36 -2
  242. package/dist/sst/.sst/platform/src/components/cloudflare/kv.d.ts.map +1 -1
  243. package/dist/sst/.sst/platform/src/components/cloudflare/providers/worker-placement.d.ts +27 -0
  244. package/dist/sst/.sst/platform/src/components/cloudflare/providers/worker-placement.d.ts.map +1 -0
  245. package/dist/sst/.sst/platform/src/components/cloudflare/providers/zone-lookup.d.ts.map +1 -1
  246. package/dist/sst/.sst/platform/src/components/cloudflare/queue-worker-subscriber.d.ts +116 -0
  247. package/dist/sst/.sst/platform/src/components/cloudflare/queue-worker-subscriber.d.ts.map +1 -0
  248. package/dist/sst/.sst/platform/src/components/cloudflare/queue.d.ts +186 -3
  249. package/dist/sst/.sst/platform/src/components/cloudflare/queue.d.ts.map +1 -1
  250. package/dist/sst/.sst/platform/src/components/cloudflare/static-site.d.ts +2 -2
  251. package/dist/sst/.sst/platform/src/components/cloudflare/static-site.d.ts.map +1 -1
  252. package/dist/sst/.sst/platform/src/components/cloudflare/worker.d.ts +39 -5
  253. package/dist/sst/.sst/platform/src/components/cloudflare/worker.d.ts.map +1 -1
  254. package/dist/sst/.sst/platform/src/components/component.d.ts.map +1 -1
  255. package/dist/sst/.sst/platform/src/components/duration.d.ts +2 -0
  256. package/dist/sst/.sst/platform/src/components/duration.d.ts.map +1 -1
  257. package/dist/sst/.sst/platform/src/components/esbuild.d.ts +3 -0
  258. package/dist/sst/.sst/platform/src/components/esbuild.d.ts.map +1 -0
  259. package/dist/sst/.sst/platform/src/components/link.d.ts +2 -2
  260. package/dist/sst/.sst/platform/src/components/link.d.ts.map +1 -1
  261. package/dist/sst/.sst/platform/src/components/linkable.d.ts +32 -2
  262. package/dist/sst/.sst/platform/src/components/linkable.d.ts.map +1 -1
  263. package/dist/sst/.sst/platform/src/components/rpc/rpc.d.ts.map +1 -1
  264. package/dist/sst/.sst/platform/src/components/vercel/dns.d.ts +2 -2
  265. package/dist/sst/.sst/platform/src/util/minify.d.ts +2 -0
  266. package/dist/sst/.sst/platform/src/util/minify.d.ts.map +1 -0
  267. package/dist/sst/components/monorise-core.d.ts +10 -0
  268. package/dist/sst/components/monorise-core.d.ts.map +1 -1
  269. package/dist/sst/components/q-function.d.ts +2 -3
  270. package/dist/sst/components/q-function.d.ts.map +1 -1
  271. package/dist/sst/index.js +75 -12
  272. package/dist/sst/index.js.map +1 -1
  273. package/package.json +10 -2
  274. package/dist/sst/.sst/platform/src/components/aws/helpers/quota.d.ts +0 -7
  275. package/dist/sst/.sst/platform/src/components/aws/helpers/quota.d.ts.map +0 -1
@@ -6,6 +6,7 @@ import { Input } from "../input.js";
6
6
  export interface CronArgs {
7
7
  /**
8
8
  * The worker that'll be executed when the cron job runs.
9
+ * @deprecated Use `worker` instead.
9
10
  *
10
11
  * @example
11
12
  *
@@ -26,7 +27,30 @@ export interface CronArgs {
26
27
  * }
27
28
  * ```
28
29
  */
29
- job: Input<string | WorkerArgs>;
30
+ job?: Input<string | WorkerArgs>;
31
+ /**
32
+ * The worker that'll be executed when the cron job runs.
33
+ *
34
+ * @example
35
+ *
36
+ * ```ts
37
+ * {
38
+ * worker: "src/cron.ts"
39
+ * }
40
+ * ```
41
+ *
42
+ * You can pass in the full worker props.
43
+ *
44
+ * ```ts
45
+ * {
46
+ * worker: {
47
+ * handler: "src/cron.ts",
48
+ * link: [bucket]
49
+ * }
50
+ * }
51
+ * ```
52
+ */
53
+ worker?: Input<string | WorkerArgs>;
30
54
  /**
31
55
  * The schedule for the cron job.
32
56
  *
@@ -79,21 +103,21 @@ export interface CronArgs {
79
103
  * };
80
104
  * ```
81
105
  *
82
- * Pass in a `schedules` and a `job` worker that'll be executed.
106
+ * Pass in a `schedules` and a `worker` that'll be executed.
83
107
  *
84
108
  * ```ts title="sst.config.ts"
85
109
  * new sst.cloudflare.Cron("MyCronJob", {
86
- * job: "cron.ts",
110
+ * worker: "cron.ts",
87
111
  * schedules: ["* * * * *"]
88
112
  * });
89
113
  * ```
90
114
  *
91
- * #### Customize the function
115
+ * #### Customize the worker
92
116
  *
93
117
  * ```js title="sst.config.ts"
94
118
  * new sst.cloudflare.Cron("MyCronJob", {
95
119
  * schedules: ["* * * * *"],
96
- * job: {
120
+ * worker: {
97
121
  * handler: "cron.ts",
98
122
  * link: [bucket]
99
123
  * }
@@ -1 +1 @@
1
- {"version":3,"file":"cron.d.ts","sourceRoot":"","sources":["../../../../../../.sst/platform/src/components/cloudflare/cron.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,wBAAwB,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAEvE,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,SAAS,EAAa,MAAM,cAAc,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAEtC,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAGpC,MAAM,WAAW,QAAQ;IACvB;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,GAAG,EAAE,KAAK,CAAC,MAAM,GAAG,UAAU,CAAC,CAAC;IAChC;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,SAAS,EAAE,KAAK,CAAC,MAAM,EAAE,CAAC,CAAC;IAC3B;;;OAGG;IACH,SAAS,CAAC,EAAE;QACV;;WAEG;QACH,OAAO,CAAC,EAAE,SAAS,CAAC,UAAU,CAAC,qBAAqB,CAAC,CAAC;KACvD,CAAC;CACH;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,qBAAa,IAAK,SAAQ,SAAS;IACjC,OAAO,CAAC,MAAM,CAAgB;IAC9B,OAAO,CAAC,OAAO,CAA+B;gBAElC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,CAAC,EAAE,wBAAwB;IAiCzE;;OAEG;IACH,IAAW,KAAK;QAEZ;;WAEG;;QAEH;;WAEG;;MAGN;CACF"}
1
+ {"version":3,"file":"cron.d.ts","sourceRoot":"","sources":["../../../../../../.sst/platform/src/components/cloudflare/cron.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,wBAAwB,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAEvE,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,SAAS,EAAa,MAAM,cAAc,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAEtC,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAIpC,MAAM,WAAW,QAAQ;IACvB;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,GAAG,CAAC,EAAE,KAAK,CAAC,MAAM,GAAG,UAAU,CAAC,CAAC;IACjC;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,MAAM,GAAG,UAAU,CAAC,CAAC;IACpC;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,SAAS,EAAE,KAAK,CAAC,MAAM,EAAE,CAAC,CAAC;IAC3B;;;OAGG;IACH,SAAS,CAAC,EAAE;QACV;;WAEG;QACH,OAAO,CAAC,EAAE,SAAS,CAAC,UAAU,CAAC,qBAAqB,CAAC,CAAC;KACvD,CAAC;CACH;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,qBAAa,IAAK,SAAQ,SAAS;IACjC,OAAO,CAAC,MAAM,CAAgB;IAC9B,OAAO,CAAC,OAAO,CAA+B;gBAElC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,CAAC,EAAE,wBAAwB;IA8CzE;;OAEG;IACH,IAAW,KAAK;QAEZ;;WAEG;;QAEH;;WAEG;;MAGN;CACF"}
@@ -72,8 +72,8 @@ export declare class D1 extends Component implements Link.Linkable {
72
72
  };
73
73
  include: {
74
74
  type: "cloudflare.binding";
75
- binding: "kvNamespaceBindings" | "secretTextBindings" | "serviceBindings" | "plainTextBindings" | "queueBindings" | "r2BucketBindings" | "d1DatabaseBindings";
76
- properties: {
75
+ binding: "aiBindings" | "kvNamespaceBindings" | "secretTextBindings" | "serviceBindings" | "plainTextBindings" | "queueBindings" | "r2BucketBindings" | "d1DatabaseBindings" | "hyperdriveBindings" | "versionMetadataBindings";
76
+ properties: Record<string, never> | {
77
77
  namespaceId: import("../input").Input<string>;
78
78
  } | {
79
79
  text: import("../input").Input<string>;
@@ -87,6 +87,8 @@ export declare class D1 extends Component implements Link.Linkable {
87
87
  bucketName: import("../input").Input<string>;
88
88
  } | {
89
89
  id: import("../input").Input<string>;
90
+ } | {
91
+ id: import("../input").Input<string>;
90
92
  };
91
93
  }[];
92
94
  };
@@ -103,5 +105,38 @@ export declare class D1 extends Component implements Link.Linkable {
103
105
  */
104
106
  database: import("@pulumi/cloudflare/d1database").D1Database;
105
107
  };
108
+ /**
109
+ * Reference an existing D1 Database with the given database ID. This is
110
+ * useful when you create a D1 in one stage and want to share it in another.
111
+ * It avoids having to create a new D1 Database in the other stage.
112
+ *
113
+ * :::tip
114
+ * You can use the `static get` method to share D1 Databases across stages.
115
+ * :::
116
+ *
117
+ * @param name The name of the component.
118
+ * @param databaseId The database ID of the existing D1 Database.
119
+ *
120
+ * @example
121
+ * Imagine you create a D1 Database in the `dev` stage. And in your personal
122
+ * stage `giorgio`, instead of creating a new database, you want to share the
123
+ * same database from `dev`.
124
+ *
125
+ * ```ts title="sst.config.ts"
126
+ * const d1 = $app.stage === "giorgio"
127
+ * ? sst.cloudflare.D1.get("MyD1", "my-database-id")
128
+ * : new sst.cloudflare.D1("MyD1");
129
+ * ```
130
+ *
131
+ * Here `my-database-id` is the ID of the D1 Database created in the `dev`
132
+ * stage. You can find it by outputting the D1 Database in the `dev` stage.
133
+ *
134
+ * ```ts title="sst.config.ts"
135
+ * return {
136
+ * d1
137
+ * };
138
+ * ```
139
+ */
140
+ static get(name: string, databaseId: string, opts?: ComponentResourceOptions): D1;
106
141
  }
107
142
  //# sourceMappingURL=d1.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"d1.d.ts","sourceRoot":"","sources":["../../../../../../.sst/platform/src/components/cloudflare/d1.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAC1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,SAAS,EAAa,MAAM,cAAc,CAAC;AAC/D,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAI/B,MAAM,WAAW,MAAM;IACrB;;;OAGG;IACH,SAAS,CAAC,EAAE;QACV;;WAEG;QACH,QAAQ,CAAC,EAAE,SAAS,CAAC,UAAU,CAAC,cAAc,CAAC,CAAC;KACjD,CAAC;CACH;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,qBAAa,EAAG,SAAQ,SAAU,YAAW,IAAI,CAAC,QAAQ;IACxD,OAAO,CAAC,QAAQ,CAAwB;gBAE5B,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,wBAAwB;IAwBxE;;;;;;;;;;;;;;OAcG;IACH,UAAU;;;;;;;;;;;;;;;;;;;;;;;;IAgBV;;OAEG;IACH,IAAW,UAAU,yBAEpB;IAED;;OAEG;IACH,IAAW,KAAK;QAEZ;;WAEG;;MAGN;CACF"}
1
+ {"version":3,"file":"d1.d.ts","sourceRoot":"","sources":["../../../../../../.sst/platform/src/components/cloudflare/d1.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAC1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,SAAS,EAAa,MAAM,cAAc,CAAC;AAC/D,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAI/B,MAAM,WAAW,MAAM;IACrB;;;OAGG;IACH,SAAS,CAAC,EAAE;QACV;;WAEG;QACH,QAAQ,CAAC,EAAE,SAAS,CAAC,UAAU,CAAC,cAAc,CAAC,CAAC;KACjD,CAAC;CACH;AAOD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,qBAAa,EAAG,SAAQ,SAAU,YAAW,IAAI,CAAC,QAAQ;IACxD,OAAO,CAAC,QAAQ,CAAwB;gBAE5B,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,wBAAwB;IA8BxE;;;;;;;;;;;;;;OAcG;IACH,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;IAgBV;;OAEG;IACH,IAAW,UAAU,yBAKpB;IAED;;OAEG;IACH,IAAW,KAAK;QAEZ;;WAEG;;MAGN;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA+BG;WACW,GAAG,CACf,IAAI,EAAE,MAAM,EACZ,UAAU,EAAE,MAAM,EAClB,IAAI,CAAC,EAAE,wBAAwB;CAalC"}
@@ -8,6 +8,7 @@ export * from "./account-id";
8
8
  export * from "./auth";
9
9
  export * from "./queue";
10
10
  export * from "./cron";
11
+ export * from "./ai";
11
12
  export { binding } from "./binding.js";
12
13
  /**
13
14
  * experimental packages, you may be fired for using
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../.sst/platform/src/components/cloudflare/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,MAAM,CAAC;AACrB,cAAc,MAAM,CAAC;AACrB,cAAc,OAAO,CAAC;AACtB,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAEvC;;GAEG;AACH,OAAO,KAAK,CAAC,MAAM,sBAAsB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../.sst/platform/src/components/cloudflare/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,MAAM,CAAC;AACrB,cAAc,MAAM,CAAC;AACrB,cAAc,OAAO,CAAC;AACtB,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,MAAM,CAAC;AACrB,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAEvC;;GAEG;AACH,OAAO,KAAK,CAAC,MAAM,sBAAsB,CAAC"}
@@ -14,6 +14,12 @@ export interface KvArgs {
14
14
  namespace?: Transform<cloudflare.WorkersKvNamespaceArgs>;
15
15
  };
16
16
  }
17
+ export interface KvGetArgs {
18
+ /**
19
+ * The ID of the existing KV namespace.
20
+ */
21
+ namespaceId: string;
22
+ }
17
23
  /**
18
24
  * The `Kv` component lets you add a [Cloudflare KV storage namespace](https://developers.cloudflare.com/kv/) to
19
25
  * your app.
@@ -49,6 +55,31 @@ export interface KvArgs {
49
55
  export declare class Kv extends Component implements Link.Linkable {
50
56
  private namespace;
51
57
  constructor(name: string, args?: KvArgs, opts?: ComponentResourceOptions);
58
+ /**
59
+ * Reference an existing KV namespace with the given name. This is useful when you
60
+ * create a KV namespace in one stage and want to share it in another.
61
+ *
62
+ * :::tip
63
+ * You can use the `static get` method to share KV namespaces across stages.
64
+ * :::
65
+ *
66
+ * @param name The name of the component.
67
+ * @param args The arguments to get the KV namespace.
68
+ * @param opts? Resource options.
69
+ *
70
+ * @example
71
+ * Imagine you create a KV namespace in the `dev` stage. And in your personal stage `frank`,
72
+ * instead of creating a new namespace, you want to share the same one from `dev`.
73
+ *
74
+ * ```ts title="sst.config.ts"
75
+ * const storage = $app.stage === "frank"
76
+ * ? sst.cloudflare.Kv.get("MyStorage", {
77
+ * namespaceId: "a1b2c3d4e5f6",
78
+ * })
79
+ * : new sst.cloudflare.Kv("MyStorage");
80
+ * ```
81
+ */
82
+ static get(name: string, args: KvGetArgs, opts?: ComponentResourceOptions): Kv;
52
83
  /**
53
84
  * When you link a KV storage, the storage will be available to the worker and you can
54
85
  * interact with it using its [API methods](https://developers.cloudflare.com/kv/api/).
@@ -68,8 +99,8 @@ export declare class Kv extends Component implements Link.Linkable {
68
99
  };
69
100
  include: {
70
101
  type: "cloudflare.binding";
71
- binding: "kvNamespaceBindings" | "secretTextBindings" | "serviceBindings" | "plainTextBindings" | "queueBindings" | "r2BucketBindings" | "d1DatabaseBindings";
72
- properties: {
102
+ binding: "aiBindings" | "kvNamespaceBindings" | "secretTextBindings" | "serviceBindings" | "plainTextBindings" | "queueBindings" | "r2BucketBindings" | "d1DatabaseBindings" | "hyperdriveBindings" | "versionMetadataBindings";
103
+ properties: Record<string, never> | {
73
104
  namespaceId: import("../input").Input<string>;
74
105
  } | {
75
106
  text: import("../input").Input<string>;
@@ -83,11 +114,14 @@ export declare class Kv extends Component implements Link.Linkable {
83
114
  bucketName: import("../input").Input<string>;
84
115
  } | {
85
116
  id: import("../input").Input<string>;
117
+ } | {
118
+ id: import("../input").Input<string>;
86
119
  };
87
120
  }[];
88
121
  };
89
122
  /**
90
123
  * The generated ID of the KV namespace.
124
+ * @deprecated Use `namespaceId` instead.
91
125
  */
92
126
  get id(): $util.Output<string>;
93
127
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"kv.d.ts","sourceRoot":"","sources":["../../../../../../.sst/platform/src/components/cloudflare/kv.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAC1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,SAAS,EAAa,MAAM,cAAc,CAAC;AAC/D,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAI/B,MAAM,WAAW,MAAM;IACrB;;;OAGG;IACH,SAAS,CAAC,EAAE;QACV;;WAEG;QACH,SAAS,CAAC,EAAE,SAAS,CAAC,UAAU,CAAC,sBAAsB,CAAC,CAAC;KAC1D,CAAC;CACH;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,qBAAa,EAAG,SAAQ,SAAU,YAAW,IAAI,CAAC,QAAQ;IACxD,OAAO,CAAC,SAAS,CAAgC;gBAErC,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,wBAAwB;IAwBxE;;;;;;;;;;;;OAYG;IACH,UAAU;;;;;;;;;;;;;;;;;;;;;;;;IAgBV;;OAEG;IACH,IAAW,EAAE,yBAEZ;IAED;;OAEG;IACH,IAAW,WAAW,yBAErB;IAED;;OAEG;IACH,IAAW,KAAK;QAEZ;;WAEG;;MAGN;CACF"}
1
+ {"version":3,"file":"kv.d.ts","sourceRoot":"","sources":["../../../../../../.sst/platform/src/components/cloudflare/kv.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAC1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,SAAS,EAAa,MAAM,cAAc,CAAC;AAC/D,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAI/B,MAAM,WAAW,MAAM;IACrB;;;OAGG;IACH,SAAS,CAAC,EAAE;QACV;;WAEG;QACH,SAAS,CAAC,EAAE,SAAS,CAAC,UAAU,CAAC,sBAAsB,CAAC,CAAC;KAC1D,CAAC;CACH;AAED,MAAM,WAAW,SAAS;IACxB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;CACrB;AAOD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,qBAAa,EAAG,SAAQ,SAAU,YAAW,IAAI,CAAC,QAAQ;IACxD,OAAO,CAAC,SAAS,CAAgC;gBAErC,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,wBAAwB;IA8BxE;;;;;;;;;;;;;;;;;;;;;;;OAuBG;WACW,GAAG,CACf,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,SAAS,EACf,IAAI,CAAC,EAAE,wBAAwB;IAkBjC;;;;;;;;;;;;OAYG;IACH,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;IAgBV;;;OAGG;IACH,IAAW,EAAE,yBAEZ;IAED;;OAEG;IACH,IAAW,WAAW,yBAKrB;IAED;;OAEG;IACH,IAAW,KAAK;QAEZ;;WAEG;;MAGN;CACF"}
@@ -0,0 +1,27 @@
1
+ import { CustomResourceOptions, Input, Output, dynamic } from "@pulumi/pulumi";
2
+ interface Inputs {
3
+ accountId: string;
4
+ scriptName: string;
5
+ etag?: string;
6
+ mode?: string;
7
+ region?: string;
8
+ host?: string;
9
+ hostname?: string;
10
+ }
11
+ export interface WorkerPlacementInputs {
12
+ accountId?: Input<Inputs["accountId"]>;
13
+ scriptName: Input<Inputs["scriptName"]>;
14
+ etag?: Input<Inputs["etag"]>;
15
+ mode?: Input<Inputs["mode"]>;
16
+ region?: Input<Inputs["region"]>;
17
+ host?: Input<Inputs["host"]>;
18
+ hostname?: Input<Inputs["hostname"]>;
19
+ }
20
+ export interface WorkerPlacement {
21
+ scriptName: Output<string>;
22
+ }
23
+ export declare class WorkerPlacement extends dynamic.Resource {
24
+ constructor(name: string, args: WorkerPlacementInputs, opts?: CustomResourceOptions);
25
+ }
26
+ export {};
27
+ //# sourceMappingURL=worker-placement.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"worker-placement.d.ts","sourceRoot":"","sources":["../../../../../../../.sst/platform/src/components/cloudflare/providers/worker-placement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAI/E,UAAU,MAAM;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,qBAAqB;IACpC,SAAS,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC;IACvC,UAAU,EAAE,KAAK,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC,CAAC;IACxC,IAAI,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC;IAC7B,IAAI,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC;IAC7B,MAAM,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC;IACjC,IAAI,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC;IAC7B,QAAQ,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC;CACtC;AAED,MAAM,WAAW,eAAe;IAC9B,UAAU,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC;CAC5B;AAqDD,qBAAa,eAAgB,SAAQ,OAAO,CAAC,QAAQ;gBAEjD,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,qBAAqB,EAC3B,IAAI,CAAC,EAAE,qBAAqB;CAS/B"}
@@ -1 +1 @@
1
- {"version":3,"file":"zone-lookup.d.ts","sourceRoot":"","sources":["../../../../../../../.sst/platform/src/components/cloudflare/providers/zone-lookup.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAG/E,UAAU,MAAM;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,UAAU,OAAO;IACf,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,gBAAgB;IAC/B,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC;IACtC,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC;CACjC;AAED,MAAM,WAAW,UAAU;IACzB,MAAM,EAAE,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC;IAClC,QAAQ,EAAE,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC;CACvC;AAiDD,qBAAa,UAAW,SAAQ,OAAO,CAAC,QAAQ;gBAE5C,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,gBAAgB,EACtB,IAAI,CAAC,EAAE,qBAAqB;CAS/B"}
1
+ {"version":3,"file":"zone-lookup.d.ts","sourceRoot":"","sources":["../../../../../../../.sst/platform/src/components/cloudflare/providers/zone-lookup.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAG/E,UAAU,MAAM;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,UAAU,OAAO;IACf,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,gBAAgB;IAC/B,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC;IACtC,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC;CACjC;AAED,MAAM,WAAW,UAAU;IACzB,MAAM,EAAE,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC;IAClC,QAAQ,EAAE,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC;CACvC;AAkDD,qBAAa,UAAW,SAAQ,OAAO,CAAC,QAAQ;gBAE5C,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,gBAAgB,EACtB,IAAI,CAAC,EAAE,qBAAqB;CAS/B"}
@@ -0,0 +1,116 @@
1
+ import { ComponentResourceOptions, Input } from "@pulumi/pulumi";
2
+ import * as cloudflare from "@pulumi/cloudflare";
3
+ import { Component, Transform } from "../component";
4
+ import { DurationMinutes, DurationSeconds } from "../duration";
5
+ import { WorkerArgs } from "./worker";
6
+ export interface QueueWorkerSubscriberArgs {
7
+ /**
8
+ * The queue to use.
9
+ */
10
+ queue: Input<{
11
+ /**
12
+ * The ID of the queue.
13
+ */
14
+ id: Input<string>;
15
+ }>;
16
+ /**
17
+ * The subscriber worker.
18
+ */
19
+ subscriber: Input<string | WorkerArgs>;
20
+ /**
21
+ * The dead letter queue to send messages that fail processing.
22
+ *
23
+ * When `dlq` is configured, `dlq.queue` is required.
24
+ */
25
+ dlq?: {
26
+ /**
27
+ * The name of the dead letter queue.
28
+ */
29
+ queue: Input<string>;
30
+ /**
31
+ * The number of times the main queue will retry the message before sending it to the dead-letter queue.
32
+ * @default `3`
33
+ */
34
+ retry?: Input<number>;
35
+ /**
36
+ * The number of seconds to delay before making the message available for another attempt.
37
+ * @default `0 seconds`
38
+ */
39
+ retryDelay?: Input<DurationSeconds>;
40
+ };
41
+ /**
42
+ * Maximum number of concurrent consumers that may consume from this Queue.
43
+ * @default `null`
44
+ */
45
+ maxConcurrency?: Input<number>;
46
+ /**
47
+ * The maximum number of messages to include in a batch.
48
+ * @default `10`
49
+ */
50
+ batch?: {
51
+ /**
52
+ * The maximum number of events that will be processed together in a single invocation
53
+ * of the consumer function.
54
+ *
55
+ * Value must be between 1 and 100.
56
+ *
57
+ * :::note
58
+ * When `size` is set to a value greater than 10, `window` must be set to at least `1 second`.
59
+ * :::
60
+ *
61
+ * @default `10`
62
+ */
63
+ size?: Input<number>;
64
+ /**
65
+ * The maximum amount of time to wait for collecting events before sending the batch to
66
+ * the consumer function, even if the batch size hasn't been reached.
67
+ *
68
+ * Value must be between 0 seconds and 60 seconds.
69
+ * @default `"5 seconds"`
70
+ */
71
+ window?: Input<DurationMinutes>;
72
+ };
73
+ /**
74
+ * [Transform](/docs/components/#transform) how this component creates its underlying
75
+ * resources.
76
+ */
77
+ transform?: {
78
+ /**
79
+ * Transform the Worker resource.
80
+ */
81
+ worker?: Transform<WorkerArgs>;
82
+ /**
83
+ * Transform the Consumer resource.
84
+ */
85
+ consumer?: Transform<cloudflare.QueueConsumerArgs>;
86
+ };
87
+ }
88
+ /**
89
+ * The `QueueWorkerSubscriber` component is internally used by the `Queue` component to
90
+ * add a consumer to [Cloudflare Queues](https://developers.cloudflare.com/queues/).
91
+ *
92
+ * :::note
93
+ * This component is not intended to be created directly.
94
+ * :::
95
+ *
96
+ * You'll find this component returned by `Queue.subscribe()`.
97
+ */
98
+ export declare class QueueWorkerSubscriber extends Component {
99
+ private readonly _worker;
100
+ private readonly consumer;
101
+ constructor(name: string, args: QueueWorkerSubscriberArgs, opts?: ComponentResourceOptions);
102
+ /**
103
+ * The underlying [resources](/docs/components/#nodes) this component creates.
104
+ */
105
+ get nodes(): {
106
+ /**
107
+ * The Worker that'll process messages from the queue.
108
+ */
109
+ readonly worker: $util.Output<sst.cloudflare.Worker>;
110
+ /**
111
+ * The Cloudflare Queue Consumer.
112
+ */
113
+ consumer: import("@pulumi/cloudflare/queueConsumer").QueueConsumer;
114
+ };
115
+ }
116
+ //# sourceMappingURL=queue-worker-subscriber.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"queue-worker-subscriber.d.ts","sourceRoot":"","sources":["../../../../../../.sst/platform/src/components/cloudflare/queue-worker-subscriber.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,KAAK,EAAU,MAAM,gBAAgB,CAAC;AACzE,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,SAAS,EAAa,MAAM,cAAc,CAAC;AAC/D,OAAO,EACL,eAAe,EACf,eAAe,EAEhB,MAAM,aAAa,CAAC;AAErB,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAGtC,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,KAAK,EAAE,KAAK,CAAC;QACX;;WAEG;QACH,EAAE,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;KACnB,CAAC,CAAC;IACH;;OAEG;IACH,UAAU,EAAE,KAAK,CAAC,MAAM,GAAG,UAAU,CAAC,CAAC;IACvC;;;;OAIG;IACH,GAAG,CAAC,EAAE;QACJ;;WAEG;QACH,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;QACrB;;;WAGG;QACH,KAAK,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;QACtB;;;WAGG;QACH,UAAU,CAAC,EAAE,KAAK,CAAC,eAAe,CAAC,CAAC;KACrC,CAAC;IACF;;;OAGG;IACH,cAAc,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC/B;;;OAGG;IACH,KAAK,CAAC,EAAE;QACN;;;;;;;;;;;WAWG;QACH,IAAI,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;QACrB;;;;;;WAMG;QACH,MAAM,CAAC,EAAE,KAAK,CAAC,eAAe,CAAC,CAAC;KACjC,CAAC;IACF;;;OAGG;IACH,SAAS,CAAC,EAAE;QACV;;WAEG;QACH,MAAM,CAAC,EAAE,SAAS,CAAC,UAAU,CAAC,CAAC;QAC/B;;WAEG;QACH,QAAQ,CAAC,EAAE,SAAS,CAAC,UAAU,CAAC,iBAAiB,CAAC,CAAC;KACpD,CAAC;CACH;AAED;;;;;;;;;GASG;AACH,qBAAa,qBAAsB,SAAQ,SAAS;IAClD,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAgB;IACxC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAA2B;gBAGlD,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,yBAAyB,EAC/B,IAAI,CAAC,EAAE,wBAAwB;IAiDjC;;OAEG;IACH,IAAW,KAAK;QAGZ;;WAEG;;QAIH;;WAEG;;MAGN;CACF"}
@@ -1,8 +1,37 @@
1
- import { ComponentResourceOptions } from "@pulumi/pulumi";
1
+ import { ComponentResourceOptions, Input } from "@pulumi/pulumi";
2
2
  import * as cloudflare from "@pulumi/cloudflare";
3
3
  import { Component, Transform } from "../component";
4
4
  import { Link } from "../link";
5
+ import { WorkerArgs } from "./worker";
6
+ import { QueueWorkerSubscriber } from "./queue-worker-subscriber";
7
+ import { DurationMinutes, DurationSeconds } from "../duration";
5
8
  export interface QueueArgs {
9
+ /**
10
+ * The dead letter queue to send messages that fail processing.
11
+ *
12
+ * When `dlq` is configured, `dlq.queue` is required.
13
+ */
14
+ dlq?: {
15
+ /**
16
+ * The name of the dead letter queue.
17
+ */
18
+ queue: Input<string>;
19
+ /**
20
+ * The number of times the main queue will retry the message before sending it to the dead-letter queue.
21
+ * @default `3`
22
+ */
23
+ retry?: Input<number>;
24
+ /**
25
+ * The number of seconds to delay before making the message available for another attempt.
26
+ * @default `0 seconds`
27
+ */
28
+ retryDelay?: Input<DurationSeconds>;
29
+ };
30
+ /**
31
+ * Maximum number of concurrent consumers that may consume from this Queue.
32
+ * @default `null`
33
+ */
34
+ maxConcurrency?: Input<number>;
6
35
  /**
7
36
  * [Transform](/docs/components/#transform) how this component creates its underlying
8
37
  * resources.
@@ -14,19 +43,171 @@ export interface QueueArgs {
14
43
  queue?: Transform<cloudflare.QueueArgs>;
15
44
  };
16
45
  }
46
+ export interface QueueSubscribeArgs {
47
+ /**
48
+ * The maximum number of messages to include in a batch.
49
+ * @default `10`
50
+ */
51
+ batch?: {
52
+ /**
53
+ * The maximum number of events that will be processed together in a single invocation
54
+ * of the consumer function.
55
+ *
56
+ * Value must be between 1 and 100.
57
+ *
58
+ * :::note
59
+ * When `size` is set to a value greater than 10, `window` must be set to at least `1 second`.
60
+ * :::
61
+ *
62
+ * @default `10`
63
+ * @example
64
+ * Set batch size to 1. This will process events individually.
65
+ * ```js
66
+ * {
67
+ * batch: {
68
+ * size: 1
69
+ * }
70
+ * }
71
+ * ```
72
+ */
73
+ size?: Input<number>;
74
+ /**
75
+ * The maximum amount of time to wait for collecting events before sending the batch to
76
+ * the consumer function, even if the batch size hasn't been reached.
77
+ *
78
+ * Value must be between 0 seconds and 60 seconds.
79
+ * @default `"5 seconds"`
80
+ * @example
81
+ * ```js
82
+ * {
83
+ * batch: {
84
+ * window: "5 seconds"
85
+ * }
86
+ * }
87
+ * ```
88
+ */
89
+ window?: Input<DurationMinutes>;
90
+ };
91
+ /**
92
+ * [Transform](/docs/components/#transform) how this component creates its underlying
93
+ * resources.
94
+ */
95
+ transform?: {
96
+ /**
97
+ * Transform the Worker resource.
98
+ */
99
+ worker?: Transform<WorkerArgs>;
100
+ /**
101
+ * Transform the Consumer resource.
102
+ */
103
+ consumer?: Transform<cloudflare.QueueConsumerArgs>;
104
+ };
105
+ }
17
106
  /**
18
107
  * The `Queue` component lets you add a [Cloudflare Queue](https://developers.cloudflare.com/queues/) to
19
108
  * your app.
109
+ *
110
+ * @example
111
+ * #### Create a Queue
112
+ *
113
+ * ```ts title="sst.config.ts"
114
+ * const queue = new sst.cloudflare.Queue("MyQueue");
115
+ * ```
116
+ *
117
+ * #### Subscribe to the Queue
118
+ *
119
+ * Create a worker file that exposes a default handler for queue messages:
120
+ *
121
+ * ```ts title="consumer.ts"
122
+ * export default {
123
+ * async queue(batch, env) {
124
+ * for (const message of batch.messages) {
125
+ * console.log("Processing message:", message.body);
126
+ * }
127
+ * },
128
+ * };
129
+ * ```
130
+ *
131
+ * Subscribe to the queue with a consumer worker.
132
+ *
133
+ * ```ts title="sst.config.ts"
134
+ * queue.subscribe("consumer.ts");
135
+ * ```
136
+ *
137
+ * #### Link to the Queue
138
+ *
139
+ * You can link other workers to the queue.
140
+ *
141
+ * ```ts title="sst.config.ts"
142
+ * new sst.cloudflare.Worker("MyWorker", {
143
+ * handler: "producer.ts",
144
+ * link: [queue],
145
+ * url: true,
146
+ * });
147
+ * ```
148
+ *
149
+ * #### Subscribe with full worker props
150
+ *
151
+ * ```ts title="sst.config.ts"
152
+ * const bucket = new sst.cloudflare.Bucket("MyBucket");
153
+ *
154
+ * queue.subscribe({
155
+ * handler: "consumer.ts",
156
+ * link: [bucket],
157
+ * });
158
+ * ```
20
159
  */
21
160
  export declare class Queue extends Component implements Link.Linkable {
22
161
  private queue;
162
+ private isSubscribed;
163
+ private constructorName;
164
+ private constructorArgs?;
165
+ private constructorOpts?;
23
166
  constructor(name: string, args?: QueueArgs, opts?: ComponentResourceOptions);
167
+ /**
168
+ * Subscribe to the queue with a worker.
169
+ *
170
+ * @param subscriber The worker that'll process messages from the queue.
171
+ * @param args Configure the subscription.
172
+ * @param opts Component resource options.
173
+ *
174
+ * @example
175
+ *
176
+ * Subscribe to the queue with a worker file.
177
+ *
178
+ * ```ts title="sst.config.ts"
179
+ * queue.subscribe("consumer.ts");
180
+ * ```
181
+ *
182
+ * Pass in full worker props.
183
+ *
184
+ * ```ts title="sst.config.ts"
185
+ * const bucket = new sst.cloudflare.Bucket("MyBucket");
186
+ *
187
+ * queue.subscribe({
188
+ * handler: "consumer.ts",
189
+ * link: [bucket],
190
+ * });
191
+ * ```
192
+ *
193
+ * Configure batch settings.
194
+ *
195
+ * ```ts title="sst.config.ts"
196
+ * queue.subscribe("consumer.ts", {
197
+ * batch: {
198
+ * size: 10,
199
+ * window: "20 seconds",
200
+ * },
201
+ * });
202
+ * ```
203
+ */
204
+ subscribe(subscriber: Input<string | WorkerArgs>, args?: QueueSubscribeArgs, opts?: ComponentResourceOptions): QueueWorkerSubscriber;
24
205
  getSSTLink(): {
25
206
  properties: {};
26
207
  include: {
27
208
  type: "cloudflare.binding";
28
- binding: "kvNamespaceBindings" | "secretTextBindings" | "serviceBindings" | "plainTextBindings" | "queueBindings" | "r2BucketBindings" | "d1DatabaseBindings";
29
- properties: {
209
+ binding: "aiBindings" | "kvNamespaceBindings" | "secretTextBindings" | "serviceBindings" | "plainTextBindings" | "queueBindings" | "r2BucketBindings" | "d1DatabaseBindings" | "hyperdriveBindings" | "versionMetadataBindings";
210
+ properties: Record<string, never> | {
30
211
  namespaceId: import("../input").Input<string>;
31
212
  } | {
32
213
  text: import("../input").Input<string>;
@@ -40,6 +221,8 @@ export declare class Queue extends Component implements Link.Linkable {
40
221
  bucketName: import("../input").Input<string>;
41
222
  } | {
42
223
  id: import("../input").Input<string>;
224
+ } | {
225
+ id: import("../input").Input<string>;
43
226
  };
44
227
  }[];
45
228
  };
@@ -1 +1 @@
1
- {"version":3,"file":"queue.d.ts","sourceRoot":"","sources":["../../../../../../.sst/platform/src/components/cloudflare/queue.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAC1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,SAAS,EAAa,MAAM,cAAc,CAAC;AAC/D,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAI/B,MAAM,WAAW,SAAS;IACxB;;;OAGG;IACH,SAAS,CAAC,EAAE;QACV;;WAEG;QACH,KAAK,CAAC,EAAE,SAAS,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;KACzC,CAAC;CACH;AAED;;;GAGG;AACH,qBAAa,KAAM,SAAQ,SAAU,YAAW,IAAI,CAAC,QAAQ;IAC3D,OAAO,CAAC,KAAK,CAAmB;gBAEpB,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,SAAS,EAAE,IAAI,CAAC,EAAE,wBAAwB;IAwB3E,UAAU;;;;;;;;;;;;;;;;;;;;;;IAcV;;OAEG;IACH,IAAW,EAAE,yBAEZ;IAED;;OAEG;IACH,IAAW,KAAK;QAEZ;;WAEG;;MAGN;CACF"}
1
+ {"version":3,"file":"queue.d.ts","sourceRoot":"","sources":["../../../../../../.sst/platform/src/components/cloudflare/queue.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AACjE,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,SAAS,EAAa,MAAM,cAAc,CAAC;AAC/D,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAG/B,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAEtC,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAE/D,MAAM,WAAW,SAAS;IACxB;;;;OAIG;IACH,GAAG,CAAC,EAAE;QACJ;;WAEG;QACH,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;QACrB;;;WAGG;QACH,KAAK,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;QACtB;;;WAGG;QACH,UAAU,CAAC,EAAE,KAAK,CAAC,eAAe,CAAC,CAAC;KACrC,CAAC;IACF;;;OAGG;IACH,cAAc,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC/B;;;OAGG;IACH,SAAS,CAAC,EAAE;QACV;;WAEG;QACH,KAAK,CAAC,EAAE,SAAS,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;KACzC,CAAC;CACH;AAED,MAAM,WAAW,kBAAkB;IACjC;;;OAGG;IACH,KAAK,CAAC,EAAE;QACN;;;;;;;;;;;;;;;;;;;;WAoBG;QACH,IAAI,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;QACrB;;;;;;;;;;;;;;WAcG;QACH,MAAM,CAAC,EAAE,KAAK,CAAC,eAAe,CAAC,CAAC;KACjC,CAAC;IACF;;;OAGG;IACH,SAAS,CAAC,EAAE;QACV;;WAEG;QACH,MAAM,CAAC,EAAE,SAAS,CAAC,UAAU,CAAC,CAAC;QAC/B;;WAEG;QACH,QAAQ,CAAC,EAAE,SAAS,CAAC,UAAU,CAAC,iBAAiB,CAAC,CAAC;KACpD,CAAC;CACH;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqDG;AACH,qBAAa,KAAM,SAAQ,SAAU,YAAW,IAAI,CAAC,QAAQ;IAC3D,OAAO,CAAC,KAAK,CAAmB;IAChC,OAAO,CAAC,YAAY,CAAS;IAC7B,OAAO,CAAC,eAAe,CAAS;IAChC,OAAO,CAAC,eAAe,CAAC,CAAY;IACpC,OAAO,CAAC,eAAe,CAAC,CAA2B;gBAEvC,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,SAAS,EAAE,IAAI,CAAC,EAAE,wBAAwB;IA2B3E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAoCG;IACI,SAAS,CACd,UAAU,EAAE,KAAK,CAAC,MAAM,GAAG,UAAU,CAAC,EACtC,IAAI,CAAC,EAAE,kBAAkB,EACzB,IAAI,CAAC,EAAE,wBAAwB;IA2BjC,UAAU;;;;;;;;;;;;;;;;;;;;;;;;IAcV;;OAEG;IACH,IAAW,EAAE,yBAEZ;IAED;;OAEG;IACH,IAAW,KAAK;QAEZ;;WAEG;;MAGN;CACF"}
@@ -1,6 +1,6 @@
1
1
  import { ComponentResourceOptions } from "@pulumi/pulumi";
2
2
  import { Kv, KvArgs } from "./kv.js";
3
- import { Component, Transform } from "../component.js";
3
+ import { Component, Prettify, Transform } from "../component.js";
4
4
  import { Link } from "../link.js";
5
5
  import { Input } from "../input.js";
6
6
  import { Worker } from "./worker.js";
@@ -71,7 +71,7 @@ export interface StaticSiteArgs extends BaseStaticSiteArgs {
71
71
  * ```
72
72
  * @default `Object`
73
73
  */
74
- assets?: Input<BaseStaticSiteAssets & {}>;
74
+ assets?: Prettify<BaseStaticSiteAssets & {}>;
75
75
  /**
76
76
  * Set a custom domain for your static site. Supports domains hosted on Cloudflare.
77
77
  *
@@ -1 +1 @@
1
- {"version":3,"file":"static-site.d.ts","sourceRoot":"","sources":["../../../../../../.sst/platform/src/components/cloudflare/static-site.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,wBAAwB,EAAe,MAAM,gBAAgB,CAAC;AACvE,OAAO,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,SAAS,EAAa,MAAM,iBAAiB,CAAC;AAClE,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAClC,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAGpC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAErC,OAAO,EACL,kBAAkB,EAClB,oBAAoB,EAGrB,MAAM,6BAA6B,CAAC;AAGrC,MAAM,WAAW,cAAe,SAAQ,kBAAkB;IACxD;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,IAAI,CAAC,EAAE,kBAAkB,CAAC,MAAM,CAAC,CAAC;IAClC;;;;;;;;;;;;;;;;OAgBG;IACH,KAAK,CAAC,EAAE,kBAAkB,CAAC,OAAO,CAAC,CAAC;IACpC;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,oBAAoB,GAAG,EAAE,CAAC,CAAC;IAC1C;;;;;;;;;;;;;;;OAeG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACvB;;;OAGG;IACH,SAAS,CAAC,EAAE;QACV;;WAEG;QACH,MAAM,CAAC,EAAE,SAAS,CAAC,MAAM,CAAC,CAAC;KAC5B,CAAC;CACH;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+HG;AACH,qBAAa,UAAW,SAAQ,SAAU,YAAW,IAAI,CAAC,QAAQ;IAChE,OAAO,CAAC,MAAM,CAAK;IACnB,OAAO,CAAC,MAAM,CAAS;gBAGrB,IAAI,EAAE,MAAM,EACZ,IAAI,GAAE,cAAmB,EACzB,IAAI,GAAE,wBAA6B;IAyKrC;;;;;OAKG;IACH,IAAW,GAAG,qCAEb;IAED;;OAEG;IACH,IAAW,KAAK;QAEZ;;WAEG;;QAEH;;WAEG;;MAGN;IAED,gBAAgB;IACT,UAAU;;;;;CAOlB"}
1
+ {"version":3,"file":"static-site.d.ts","sourceRoot":"","sources":["../../../../../../.sst/platform/src/components/cloudflare/static-site.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,wBAAwB,EAAe,MAAM,gBAAgB,CAAC;AACvE,OAAO,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS,EAAa,MAAM,iBAAiB,CAAC;AAC5E,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAClC,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAGpC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAErC,OAAO,EACL,kBAAkB,EAClB,oBAAoB,EAGrB,MAAM,6BAA6B,CAAC;AAGrC,MAAM,WAAW,cAAe,SAAQ,kBAAkB;IACxD;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,IAAI,CAAC,EAAE,kBAAkB,CAAC,MAAM,CAAC,CAAC;IAClC;;;;;;;;;;;;;;;;OAgBG;IACH,KAAK,CAAC,EAAE,kBAAkB,CAAC,OAAO,CAAC,CAAC;IACpC;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,MAAM,CAAC,EAAE,QAAQ,CAAC,oBAAoB,GAAG,EAAE,CAAC,CAAC;IAC7C;;;;;;;;;;;;;;;OAeG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACvB;;;OAGG;IACH,SAAS,CAAC,EAAE;QACV;;WAEG;QACH,MAAM,CAAC,EAAE,SAAS,CAAC,MAAM,CAAC,CAAC;KAC5B,CAAC;CACH;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+HG;AACH,qBAAa,UAAW,SAAQ,SAAU,YAAW,IAAI,CAAC,QAAQ;IAChE,OAAO,CAAC,MAAM,CAAK;IACnB,OAAO,CAAC,MAAM,CAAS;gBAGrB,IAAI,EAAE,MAAM,EACZ,IAAI,GAAE,cAAmB,EACzB,IAAI,GAAE,wBAA6B;IAyKrC;;;;;OAKG;IACH,IAAW,GAAG,qCAEb;IAED;;OAEG;IACH,IAAW,KAAK;QAEZ;;WAEG;;QAEH;;WAEG;;MAGN;IAED,gBAAgB;IACT,UAAU;;;;;CAOlB"}