@monorise/sst 3.0.0 → 4.0.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 (576) hide show
  1. package/dist/.sst/platform/src/components/aws/alb.d.ts +280 -0
  2. package/dist/.sst/platform/src/components/aws/alb.d.ts.map +1 -0
  3. package/dist/.sst/platform/src/components/aws/apigateway-websocket-route.d.ts +1 -1
  4. package/dist/.sst/platform/src/components/aws/apigateway-websocket-route.d.ts.map +1 -1
  5. package/dist/.sst/platform/src/components/aws/apigateway-websocket.d.ts +13 -2
  6. package/dist/.sst/platform/src/components/aws/apigateway-websocket.d.ts.map +1 -1
  7. package/dist/.sst/platform/src/components/aws/apigatewayv1-authorizer.d.ts.map +1 -1
  8. package/dist/.sst/platform/src/components/aws/apigatewayv1-lambda-route.d.ts +1 -1
  9. package/dist/.sst/platform/src/components/aws/apigatewayv1-lambda-route.d.ts.map +1 -1
  10. package/dist/.sst/platform/src/components/aws/apigatewayv1.d.ts +93 -83
  11. package/dist/.sst/platform/src/components/aws/apigatewayv1.d.ts.map +1 -1
  12. package/dist/.sst/platform/src/components/aws/apigatewayv2-authorizer.d.ts.map +1 -1
  13. package/dist/.sst/platform/src/components/aws/apigatewayv2-lambda-route.d.ts +1 -1
  14. package/dist/.sst/platform/src/components/aws/apigatewayv2-lambda-route.d.ts.map +1 -1
  15. package/dist/.sst/platform/src/components/aws/apigatewayv2.d.ts +9 -5
  16. package/dist/.sst/platform/src/components/aws/apigatewayv2.d.ts.map +1 -1
  17. package/dist/.sst/platform/src/components/aws/app-sync-data-source.d.ts +1 -1
  18. package/dist/.sst/platform/src/components/aws/app-sync-data-source.d.ts.map +1 -1
  19. package/dist/.sst/platform/src/components/aws/app-sync.d.ts +1 -1
  20. package/dist/.sst/platform/src/components/aws/app-sync.d.ts.map +1 -1
  21. package/dist/.sst/platform/src/components/aws/aurora.d.ts +22 -4
  22. package/dist/.sst/platform/src/components/aws/aurora.d.ts.map +1 -1
  23. package/dist/.sst/platform/src/components/aws/auth-v1.d.ts +1 -1
  24. package/dist/.sst/platform/src/components/aws/auth-v1.d.ts.map +1 -1
  25. package/dist/.sst/platform/src/components/aws/auth.d.ts +38 -3
  26. package/dist/.sst/platform/src/components/aws/auth.d.ts.map +1 -1
  27. package/dist/.sst/platform/src/components/aws/bucket-lambda-subscriber.d.ts +1 -1
  28. package/dist/.sst/platform/src/components/aws/bucket-lambda-subscriber.d.ts.map +1 -1
  29. package/dist/.sst/platform/src/components/aws/bucket-notification.d.ts.map +1 -1
  30. package/dist/.sst/platform/src/components/aws/bucket.d.ts +114 -8
  31. package/dist/.sst/platform/src/components/aws/bucket.d.ts.map +1 -1
  32. package/dist/.sst/platform/src/components/aws/bus-lambda-subscriber.d.ts +3 -2
  33. package/dist/.sst/platform/src/components/aws/bus-lambda-subscriber.d.ts.map +1 -1
  34. package/dist/.sst/platform/src/components/aws/bus.d.ts +34 -3
  35. package/dist/.sst/platform/src/components/aws/bus.d.ts.map +1 -1
  36. package/dist/.sst/platform/src/components/aws/cdn.d.ts +11 -0
  37. package/dist/.sst/platform/src/components/aws/cdn.d.ts.map +1 -1
  38. package/dist/.sst/platform/src/components/aws/cluster.d.ts +60 -4
  39. package/dist/.sst/platform/src/components/aws/cluster.d.ts.map +1 -1
  40. package/dist/.sst/platform/src/components/aws/cognito-identity-pool.d.ts +5 -0
  41. package/dist/.sst/platform/src/components/aws/cognito-identity-pool.d.ts.map +1 -1
  42. package/dist/.sst/platform/src/components/aws/cognito-user-pool-client.d.ts.map +1 -1
  43. package/dist/.sst/platform/src/components/aws/cognito-user-pool.d.ts +104 -0
  44. package/dist/.sst/platform/src/components/aws/cognito-user-pool.d.ts.map +1 -1
  45. package/dist/.sst/platform/src/components/aws/cron-v2.d.ts +325 -0
  46. package/dist/.sst/platform/src/components/aws/cron-v2.d.ts.map +1 -0
  47. package/dist/.sst/platform/src/components/aws/cron.d.ts +15 -6
  48. package/dist/.sst/platform/src/components/aws/cron.d.ts.map +1 -1
  49. package/dist/.sst/platform/src/components/aws/dsql.d.ts +369 -0
  50. package/dist/.sst/platform/src/components/aws/dsql.d.ts.map +1 -0
  51. package/dist/.sst/platform/src/components/aws/dynamo-lambda-subscriber.d.ts +1 -1
  52. package/dist/.sst/platform/src/components/aws/dynamo-lambda-subscriber.d.ts.map +1 -1
  53. package/dist/.sst/platform/src/components/aws/dynamo.d.ts +63 -4
  54. package/dist/.sst/platform/src/components/aws/dynamo.d.ts.map +1 -1
  55. package/dist/.sst/platform/src/components/aws/email.d.ts +6 -1
  56. package/dist/.sst/platform/src/components/aws/email.d.ts.map +1 -1
  57. package/dist/.sst/platform/src/components/aws/fargate.d.ts +129 -4
  58. package/dist/.sst/platform/src/components/aws/fargate.d.ts.map +1 -1
  59. package/dist/.sst/platform/src/components/aws/function.d.ts +122 -24
  60. package/dist/.sst/platform/src/components/aws/function.d.ts.map +1 -1
  61. package/dist/.sst/platform/src/components/aws/helpers/arn.d.ts +16 -0
  62. package/dist/.sst/platform/src/components/aws/helpers/arn.d.ts.map +1 -1
  63. package/dist/.sst/platform/src/components/aws/helpers/container-builder.d.ts.map +1 -1
  64. package/dist/.sst/platform/src/components/aws/helpers/function-builder.d.ts +7 -3
  65. package/dist/.sst/platform/src/components/aws/helpers/function-builder.d.ts.map +1 -1
  66. package/dist/.sst/platform/src/components/aws/helpers/load-balancer.d.ts +9 -0
  67. package/dist/.sst/platform/src/components/aws/helpers/load-balancer.d.ts.map +1 -0
  68. package/dist/.sst/platform/src/components/aws/helpers/provider.d.ts +2 -2
  69. package/dist/.sst/platform/src/components/aws/helpers/provider.d.ts.map +1 -1
  70. package/dist/.sst/platform/src/components/aws/helpers/site-builder.d.ts +1 -1
  71. package/dist/.sst/platform/src/components/aws/helpers/site-builder.d.ts.map +1 -1
  72. package/dist/.sst/platform/src/components/aws/helpers/subscriber.d.ts +1 -1
  73. package/dist/.sst/platform/src/components/aws/helpers/subscriber.d.ts.map +1 -1
  74. package/dist/.sst/platform/src/components/aws/https-redirect.d.ts.map +1 -1
  75. package/dist/.sst/platform/src/components/aws/index.d.ts +4 -0
  76. package/dist/.sst/platform/src/components/aws/index.d.ts.map +1 -1
  77. package/dist/.sst/platform/src/components/aws/kinesis-stream-lambda-subscriber.d.ts.map +1 -1
  78. package/dist/.sst/platform/src/components/aws/kinesis-stream.d.ts +8 -3
  79. package/dist/.sst/platform/src/components/aws/kinesis-stream.d.ts.map +1 -1
  80. package/dist/.sst/platform/src/components/aws/linkable.d.ts +1 -1
  81. package/dist/.sst/platform/src/components/aws/linkable.d.ts.map +1 -1
  82. package/dist/.sst/platform/src/components/aws/mysql.d.ts +34 -5
  83. package/dist/.sst/platform/src/components/aws/mysql.d.ts.map +1 -1
  84. package/dist/.sst/platform/src/components/aws/nextjs.d.ts +39 -5
  85. package/dist/.sst/platform/src/components/aws/nextjs.d.ts.map +1 -1
  86. package/dist/.sst/platform/src/components/aws/nuxt.d.ts.map +1 -1
  87. package/dist/.sst/platform/src/components/aws/open-search.d.ts +16 -5
  88. package/dist/.sst/platform/src/components/aws/open-search.d.ts.map +1 -1
  89. package/dist/.sst/platform/src/components/aws/opencontrol.d.ts +7 -3
  90. package/dist/.sst/platform/src/components/aws/opencontrol.d.ts.map +1 -1
  91. package/dist/.sst/platform/src/components/aws/permission.d.ts +18 -0
  92. package/dist/.sst/platform/src/components/aws/permission.d.ts.map +1 -1
  93. package/dist/.sst/platform/src/components/aws/postgres-v1.d.ts +13 -2
  94. package/dist/.sst/platform/src/components/aws/postgres-v1.d.ts.map +1 -1
  95. package/dist/.sst/platform/src/components/aws/postgres.d.ts +37 -8
  96. package/dist/.sst/platform/src/components/aws/postgres.d.ts.map +1 -1
  97. package/dist/.sst/platform/src/components/aws/queue-lambda-subscriber.d.ts +6 -1
  98. package/dist/.sst/platform/src/components/aws/queue-lambda-subscriber.d.ts.map +1 -1
  99. package/dist/.sst/platform/src/components/aws/queue.d.ts +10 -1
  100. package/dist/.sst/platform/src/components/aws/queue.d.ts.map +1 -1
  101. package/dist/.sst/platform/src/components/aws/realtime-lambda-subscriber.d.ts +1 -1
  102. package/dist/.sst/platform/src/components/aws/realtime-lambda-subscriber.d.ts.map +1 -1
  103. package/dist/.sst/platform/src/components/aws/realtime.d.ts +12 -1
  104. package/dist/.sst/platform/src/components/aws/realtime.d.ts.map +1 -1
  105. package/dist/.sst/platform/src/components/aws/redis-v1.d.ts +10 -0
  106. package/dist/.sst/platform/src/components/aws/redis-v1.d.ts.map +1 -1
  107. package/dist/.sst/platform/src/components/aws/redis.d.ts +14 -0
  108. package/dist/.sst/platform/src/components/aws/redis.d.ts.map +1 -1
  109. package/dist/.sst/platform/src/components/aws/remix.d.ts.map +1 -1
  110. package/dist/.sst/platform/src/components/aws/router.d.ts +501 -15
  111. package/dist/.sst/platform/src/components/aws/router.d.ts.map +1 -1
  112. package/dist/.sst/platform/src/components/aws/service-v1.d.ts.map +1 -1
  113. package/dist/.sst/platform/src/components/aws/service.d.ts +151 -0
  114. package/dist/.sst/platform/src/components/aws/service.d.ts.map +1 -1
  115. package/dist/.sst/platform/src/components/aws/sns-topic-lambda-subscriber.d.ts +1 -1
  116. package/dist/.sst/platform/src/components/aws/sns-topic-lambda-subscriber.d.ts.map +1 -1
  117. package/dist/.sst/platform/src/components/aws/sns-topic.d.ts +6 -1
  118. package/dist/.sst/platform/src/components/aws/sns-topic.d.ts.map +1 -1
  119. package/dist/.sst/platform/src/components/aws/solid-start.d.ts.map +1 -1
  120. package/dist/.sst/platform/src/components/aws/ssr-site.d.ts +204 -13
  121. package/dist/.sst/platform/src/components/aws/ssr-site.d.ts.map +1 -1
  122. package/dist/.sst/platform/src/components/aws/static-site.d.ts +5 -5
  123. package/dist/.sst/platform/src/components/aws/static-site.d.ts.map +1 -1
  124. package/dist/.sst/platform/src/components/aws/step-functions/state.d.ts +35 -1
  125. package/dist/.sst/platform/src/components/aws/step-functions/state.d.ts.map +1 -1
  126. package/dist/.sst/platform/src/components/aws/step-functions/task.d.ts +10 -2
  127. package/dist/.sst/platform/src/components/aws/step-functions/task.d.ts.map +1 -1
  128. package/dist/.sst/platform/src/components/aws/step-functions.d.ts +5 -0
  129. package/dist/.sst/platform/src/components/aws/step-functions.d.ts.map +1 -1
  130. package/dist/.sst/platform/src/components/aws/svelte-kit.d.ts.map +1 -1
  131. package/dist/.sst/platform/src/components/aws/tan-stack-start.d.ts +20 -6
  132. package/dist/.sst/platform/src/components/aws/tan-stack-start.d.ts.map +1 -1
  133. package/dist/.sst/platform/src/components/aws/task.d.ts +35 -15
  134. package/dist/.sst/platform/src/components/aws/task.d.ts.map +1 -1
  135. package/dist/.sst/platform/src/components/aws/vector.d.ts +5 -0
  136. package/dist/.sst/platform/src/components/aws/vector.d.ts.map +1 -1
  137. package/dist/.sst/platform/src/components/aws/vpc.d.ts +51 -4
  138. package/dist/.sst/platform/src/components/aws/vpc.d.ts.map +1 -1
  139. package/dist/.sst/platform/src/components/aws/workflow.d.ts +331 -0
  140. package/dist/.sst/platform/src/components/aws/workflow.d.ts.map +1 -0
  141. package/dist/.sst/platform/src/components/base/base-ssr-site.d.ts +1 -99
  142. package/dist/.sst/platform/src/components/base/base-ssr-site.d.ts.map +1 -1
  143. package/dist/.sst/platform/src/components/base/base-static-site.d.ts.map +1 -1
  144. package/dist/.sst/platform/src/components/cloudflare/ai.d.ts +82 -0
  145. package/dist/.sst/platform/src/components/cloudflare/ai.d.ts.map +1 -0
  146. package/dist/.sst/platform/src/components/cloudflare/binding.d.ts +16 -2
  147. package/dist/.sst/platform/src/components/cloudflare/binding.d.ts.map +1 -1
  148. package/dist/.sst/platform/src/components/cloudflare/bucket.d.ts +8 -4
  149. package/dist/.sst/platform/src/components/cloudflare/bucket.d.ts.map +1 -1
  150. package/dist/.sst/platform/src/components/cloudflare/cron.d.ts +29 -5
  151. package/dist/.sst/platform/src/components/cloudflare/cron.d.ts.map +1 -1
  152. package/dist/.sst/platform/src/components/cloudflare/d1.d.ts +38 -3
  153. package/dist/.sst/platform/src/components/cloudflare/d1.d.ts.map +1 -1
  154. package/dist/.sst/platform/src/components/cloudflare/experimental/astro.d.ts +186 -0
  155. package/dist/.sst/platform/src/components/cloudflare/experimental/astro.d.ts.map +1 -0
  156. package/dist/.sst/platform/src/components/cloudflare/experimental/index.d.ts +4 -0
  157. package/dist/.sst/platform/src/components/cloudflare/experimental/index.d.ts.map +1 -0
  158. package/dist/.sst/platform/src/components/cloudflare/experimental/solid-start.d.ts +171 -0
  159. package/dist/.sst/platform/src/components/cloudflare/experimental/solid-start.d.ts.map +1 -0
  160. package/dist/.sst/platform/src/components/cloudflare/experimental/static-site.d.ts +222 -0
  161. package/dist/.sst/platform/src/components/cloudflare/experimental/static-site.d.ts.map +1 -0
  162. package/dist/.sst/platform/src/components/cloudflare/helpers/fetch.d.ts.map +1 -1
  163. package/dist/.sst/platform/src/components/cloudflare/helpers/worker-builder.d.ts +1 -1
  164. package/dist/.sst/platform/src/components/cloudflare/helpers/worker-builder.d.ts.map +1 -1
  165. package/dist/.sst/platform/src/components/cloudflare/index.d.ts +5 -1
  166. package/dist/.sst/platform/src/components/cloudflare/index.d.ts.map +1 -1
  167. package/dist/.sst/platform/src/components/cloudflare/kv.d.ts +44 -4
  168. package/dist/.sst/platform/src/components/cloudflare/kv.d.ts.map +1 -1
  169. package/dist/.sst/platform/src/components/cloudflare/providers/kv-data.d.ts.map +1 -1
  170. package/dist/.sst/platform/src/components/cloudflare/providers/worker-assets.d.ts +18 -0
  171. package/dist/.sst/platform/src/components/cloudflare/providers/worker-assets.d.ts.map +1 -0
  172. package/dist/.sst/platform/src/components/cloudflare/providers/worker-placement.d.ts +27 -0
  173. package/dist/.sst/platform/src/components/cloudflare/providers/worker-placement.d.ts.map +1 -0
  174. package/dist/.sst/platform/src/components/cloudflare/providers/zone-lookup.d.ts.map +1 -1
  175. package/dist/.sst/platform/src/components/cloudflare/queue-worker-subscriber.d.ts +116 -0
  176. package/dist/.sst/platform/src/components/cloudflare/queue-worker-subscriber.d.ts.map +1 -0
  177. package/dist/.sst/platform/src/components/cloudflare/queue.d.ts +187 -4
  178. package/dist/.sst/platform/src/components/cloudflare/queue.d.ts.map +1 -1
  179. package/dist/.sst/platform/src/components/cloudflare/ssr-site.d.ts +34 -42
  180. package/dist/.sst/platform/src/components/cloudflare/ssr-site.d.ts.map +1 -1
  181. package/dist/.sst/platform/src/components/cloudflare/static-site.d.ts +2 -2
  182. package/dist/.sst/platform/src/components/cloudflare/static-site.d.ts.map +1 -1
  183. package/dist/.sst/platform/src/components/cloudflare/worker.d.ts +66 -10
  184. package/dist/.sst/platform/src/components/cloudflare/worker.d.ts.map +1 -1
  185. package/dist/.sst/platform/src/components/component.d.ts.map +1 -1
  186. package/dist/.sst/platform/src/components/duration.d.ts +4 -1
  187. package/dist/.sst/platform/src/components/duration.d.ts.map +1 -1
  188. package/dist/.sst/platform/src/components/esbuild.d.ts +3 -0
  189. package/dist/.sst/platform/src/components/esbuild.d.ts.map +1 -0
  190. package/dist/.sst/platform/src/components/link.d.ts +2 -2
  191. package/dist/.sst/platform/src/components/link.d.ts.map +1 -1
  192. package/dist/.sst/platform/src/components/linkable.d.ts +32 -2
  193. package/dist/.sst/platform/src/components/linkable.d.ts.map +1 -1
  194. package/dist/.sst/platform/src/components/rpc/rpc.d.ts +1 -0
  195. package/dist/.sst/platform/src/components/rpc/rpc.d.ts.map +1 -1
  196. package/dist/.sst/platform/src/components/secret.d.ts +1 -1
  197. package/dist/.sst/platform/src/components/vercel/dns.d.ts +2 -2
  198. package/dist/.sst/platform/src/config.d.ts +15 -0
  199. package/dist/.sst/platform/src/config.d.ts.map +1 -1
  200. package/dist/.sst/platform/src/util/fs.d.ts +5 -0
  201. package/dist/.sst/platform/src/util/fs.d.ts.map +1 -0
  202. package/dist/.sst/platform/src/util/minify.d.ts +2 -0
  203. package/dist/.sst/platform/src/util/minify.d.ts.map +1 -0
  204. package/dist/components/dashboard.d.ts +2 -0
  205. package/dist/components/dashboard.d.ts.map +1 -0
  206. package/dist/components/monorise-core.d.ts.map +1 -1
  207. package/dist/components/q-function.d.ts +3 -4
  208. package/dist/components/q-function.d.ts.map +1 -1
  209. package/dist/components/single-table.d.ts +2 -1
  210. package/dist/components/single-table.d.ts.map +1 -1
  211. package/dist/index.js +605 -7
  212. package/dist/index.js.map +1 -1
  213. package/dist/tsup.config.d.ts +3 -0
  214. package/dist/tsup.config.d.ts.map +1 -0
  215. package/package.json +4 -4
  216. package/dist/.sst/platform/src/components/aws/analog.js +0 -118
  217. package/dist/.sst/platform/src/components/aws/analog.js.map +0 -1
  218. package/dist/.sst/platform/src/components/aws/apigateway-websocket-route.js +0 -110
  219. package/dist/.sst/platform/src/components/aws/apigateway-websocket-route.js.map +0 -1
  220. package/dist/.sst/platform/src/components/aws/apigateway-websocket.js +0 -409
  221. package/dist/.sst/platform/src/components/aws/apigateway-websocket.js.map +0 -1
  222. package/dist/.sst/platform/src/components/aws/apigatewayv1-api-key.js +0 -55
  223. package/dist/.sst/platform/src/components/aws/apigatewayv1-api-key.js.map +0 -1
  224. package/dist/.sst/platform/src/components/aws/apigatewayv1-authorizer.js +0 -110
  225. package/dist/.sst/platform/src/components/aws/apigatewayv1-authorizer.js.map +0 -1
  226. package/dist/.sst/platform/src/components/aws/apigatewayv1-base-route.js +0 -34
  227. package/dist/.sst/platform/src/components/aws/apigatewayv1-base-route.js.map +0 -1
  228. package/dist/.sst/platform/src/components/aws/apigatewayv1-integration-route.js +0 -49
  229. package/dist/.sst/platform/src/components/aws/apigatewayv1-integration-route.js.map +0 -1
  230. package/dist/.sst/platform/src/components/aws/apigatewayv1-lambda-route.js +0 -85
  231. package/dist/.sst/platform/src/components/aws/apigatewayv1-lambda-route.js.map +0 -1
  232. package/dist/.sst/platform/src/components/aws/apigatewayv1-usage-plan.js +0 -66
  233. package/dist/.sst/platform/src/components/aws/apigatewayv1-usage-plan.js.map +0 -1
  234. package/dist/.sst/platform/src/components/aws/apigatewayv1.js +0 -749
  235. package/dist/.sst/platform/src/components/aws/apigatewayv1.js.map +0 -1
  236. package/dist/.sst/platform/src/components/aws/apigatewayv2-authorizer.js +0 -98
  237. package/dist/.sst/platform/src/components/aws/apigatewayv2-authorizer.js.map +0 -1
  238. package/dist/.sst/platform/src/components/aws/apigatewayv2-base-route.js +0 -28
  239. package/dist/.sst/platform/src/components/aws/apigatewayv2-base-route.js.map +0 -1
  240. package/dist/.sst/platform/src/components/aws/apigatewayv2-lambda-route.js +0 -84
  241. package/dist/.sst/platform/src/components/aws/apigatewayv2-lambda-route.js.map +0 -1
  242. package/dist/.sst/platform/src/components/aws/apigatewayv2-private-route.js +0 -55
  243. package/dist/.sst/platform/src/components/aws/apigatewayv2-private-route.js.map +0 -1
  244. package/dist/.sst/platform/src/components/aws/apigatewayv2-url-route.js +0 -53
  245. package/dist/.sst/platform/src/components/aws/apigatewayv2-url-route.js.map +0 -1
  246. package/dist/.sst/platform/src/components/aws/apigatewayv2.js +0 -648
  247. package/dist/.sst/platform/src/components/aws/apigatewayv2.js.map +0 -1
  248. package/dist/.sst/platform/src/components/aws/app-sync-data-source.js +0 -208
  249. package/dist/.sst/platform/src/components/aws/app-sync-data-source.js.map +0 -1
  250. package/dist/.sst/platform/src/components/aws/app-sync-function.js +0 -52
  251. package/dist/.sst/platform/src/components/aws/app-sync-function.js.map +0 -1
  252. package/dist/.sst/platform/src/components/aws/app-sync-resolver.js +0 -70
  253. package/dist/.sst/platform/src/components/aws/app-sync-resolver.js.map +0 -1
  254. package/dist/.sst/platform/src/components/aws/app-sync.js +0 -330
  255. package/dist/.sst/platform/src/components/aws/app-sync.js.map +0 -1
  256. package/dist/.sst/platform/src/components/aws/astro.js +0 -156
  257. package/dist/.sst/platform/src/components/aws/astro.js.map +0 -1
  258. package/dist/.sst/platform/src/components/aws/aurora.js +0 -678
  259. package/dist/.sst/platform/src/components/aws/aurora.js.map +0 -1
  260. package/dist/.sst/platform/src/components/aws/auth-v1.js +0 -36
  261. package/dist/.sst/platform/src/components/aws/auth-v1.js.map +0 -1
  262. package/dist/.sst/platform/src/components/aws/auth.js +0 -209
  263. package/dist/.sst/platform/src/components/aws/auth.js.map +0 -1
  264. package/dist/.sst/platform/src/components/aws/bucket-lambda-subscriber.js +0 -99
  265. package/dist/.sst/platform/src/components/aws/bucket-lambda-subscriber.js.map +0 -1
  266. package/dist/.sst/platform/src/components/aws/bucket-notification.js +0 -170
  267. package/dist/.sst/platform/src/components/aws/bucket-notification.js.map +0 -1
  268. package/dist/.sst/platform/src/components/aws/bucket-queue-subscriber.js +0 -77
  269. package/dist/.sst/platform/src/components/aws/bucket-queue-subscriber.js.map +0 -1
  270. package/dist/.sst/platform/src/components/aws/bucket-topic-subscriber.js +0 -99
  271. package/dist/.sst/platform/src/components/aws/bucket-topic-subscriber.js.map +0 -1
  272. package/dist/.sst/platform/src/components/aws/bucket.js +0 -754
  273. package/dist/.sst/platform/src/components/aws/bucket.js.map +0 -1
  274. package/dist/.sst/platform/src/components/aws/bus-base-subscriber.js +0 -19
  275. package/dist/.sst/platform/src/components/aws/bus-base-subscriber.js.map +0 -1
  276. package/dist/.sst/platform/src/components/aws/bus-lambda-subscriber.js +0 -81
  277. package/dist/.sst/platform/src/components/aws/bus-lambda-subscriber.js.map +0 -1
  278. package/dist/.sst/platform/src/components/aws/bus-queue-subscriber.js +0 -63
  279. package/dist/.sst/platform/src/components/aws/bus-queue-subscriber.js.map +0 -1
  280. package/dist/.sst/platform/src/components/aws/bus.js +0 -350
  281. package/dist/.sst/platform/src/components/aws/bus.js.map +0 -1
  282. package/dist/.sst/platform/src/components/aws/cdn.js +0 -234
  283. package/dist/.sst/platform/src/components/aws/cdn.js.map +0 -1
  284. package/dist/.sst/platform/src/components/aws/cluster-v1.js +0 -245
  285. package/dist/.sst/platform/src/components/aws/cluster-v1.js.map +0 -1
  286. package/dist/.sst/platform/src/components/aws/cluster.js +0 -321
  287. package/dist/.sst/platform/src/components/aws/cluster.js.map +0 -1
  288. package/dist/.sst/platform/src/components/aws/cognito-identity-pool.js +0 -263
  289. package/dist/.sst/platform/src/components/aws/cognito-identity-pool.js.map +0 -1
  290. package/dist/.sst/platform/src/components/aws/cognito-identity-provider.js +0 -67
  291. package/dist/.sst/platform/src/components/aws/cognito-identity-provider.js.map +0 -1
  292. package/dist/.sst/platform/src/components/aws/cognito-user-pool-client.js +0 -81
  293. package/dist/.sst/platform/src/components/aws/cognito-user-pool-client.js.map +0 -1
  294. package/dist/.sst/platform/src/components/aws/cognito-user-pool.js +0 -368
  295. package/dist/.sst/platform/src/components/aws/cognito-user-pool.js.map +0 -1
  296. package/dist/.sst/platform/src/components/aws/cron.js +0 -200
  297. package/dist/.sst/platform/src/components/aws/cron.js.map +0 -1
  298. package/dist/.sst/platform/src/components/aws/dns-validated-certificate.js +0 -55
  299. package/dist/.sst/platform/src/components/aws/dns-validated-certificate.js.map +0 -1
  300. package/dist/.sst/platform/src/components/aws/dns.js +0 -121
  301. package/dist/.sst/platform/src/components/aws/dns.js.map +0 -1
  302. package/dist/.sst/platform/src/components/aws/dynamo-lambda-subscriber.js +0 -79
  303. package/dist/.sst/platform/src/components/aws/dynamo-lambda-subscriber.js.map +0 -1
  304. package/dist/.sst/platform/src/components/aws/dynamo.js +0 -291
  305. package/dist/.sst/platform/src/components/aws/dynamo.js.map +0 -1
  306. package/dist/.sst/platform/src/components/aws/efs.js +0 -241
  307. package/dist/.sst/platform/src/components/aws/efs.js.map +0 -1
  308. package/dist/.sst/platform/src/components/aws/email.js +0 -276
  309. package/dist/.sst/platform/src/components/aws/email.js.map +0 -1
  310. package/dist/.sst/platform/src/components/aws/fargate.js +0 -434
  311. package/dist/.sst/platform/src/components/aws/fargate.js.map +0 -1
  312. package/dist/.sst/platform/src/components/aws/function.js +0 -1041
  313. package/dist/.sst/platform/src/components/aws/function.js.map +0 -1
  314. package/dist/.sst/platform/src/components/aws/helpers/apigateway-account.js +0 -31
  315. package/dist/.sst/platform/src/components/aws/helpers/apigateway-account.js.map +0 -1
  316. package/dist/.sst/platform/src/components/aws/helpers/apigatewayv2-domain.js +0 -2
  317. package/dist/.sst/platform/src/components/aws/helpers/apigatewayv2-domain.js.map +0 -1
  318. package/dist/.sst/platform/src/components/aws/helpers/arn.js +0 -86
  319. package/dist/.sst/platform/src/components/aws/helpers/arn.js.map +0 -1
  320. package/dist/.sst/platform/src/components/aws/helpers/bootstrap.js +0 -7
  321. package/dist/.sst/platform/src/components/aws/helpers/bootstrap.js.map +0 -1
  322. package/dist/.sst/platform/src/components/aws/helpers/container-builder.js +0 -27
  323. package/dist/.sst/platform/src/components/aws/helpers/container-builder.js.map +0 -1
  324. package/dist/.sst/platform/src/components/aws/helpers/function-builder.js +0 -51
  325. package/dist/.sst/platform/src/components/aws/helpers/function-builder.js.map +0 -1
  326. package/dist/.sst/platform/src/components/aws/helpers/provider.js +0 -34
  327. package/dist/.sst/platform/src/components/aws/helpers/provider.js.map +0 -1
  328. package/dist/.sst/platform/src/components/aws/helpers/quota.d.ts +0 -7
  329. package/dist/.sst/platform/src/components/aws/helpers/quota.d.ts.map +0 -1
  330. package/dist/.sst/platform/src/components/aws/helpers/quota.js +0 -20
  331. package/dist/.sst/platform/src/components/aws/helpers/quota.js.map +0 -1
  332. package/dist/.sst/platform/src/components/aws/helpers/site-builder.js +0 -36
  333. package/dist/.sst/platform/src/components/aws/helpers/site-builder.js.map +0 -1
  334. package/dist/.sst/platform/src/components/aws/helpers/subscriber.js +0 -13
  335. package/dist/.sst/platform/src/components/aws/helpers/subscriber.js.map +0 -1
  336. package/dist/.sst/platform/src/components/aws/https-redirect.js +0 -124
  337. package/dist/.sst/platform/src/components/aws/https-redirect.js.map +0 -1
  338. package/dist/.sst/platform/src/components/aws/iam-edit.js +0 -40
  339. package/dist/.sst/platform/src/components/aws/iam-edit.js.map +0 -1
  340. package/dist/.sst/platform/src/components/aws/index.js +0 -49
  341. package/dist/.sst/platform/src/components/aws/index.js.map +0 -1
  342. package/dist/.sst/platform/src/components/aws/kinesis-stream-lambda-subscriber.js +0 -82
  343. package/dist/.sst/platform/src/components/aws/kinesis-stream-lambda-subscriber.js.map +0 -1
  344. package/dist/.sst/platform/src/components/aws/kinesis-stream.js +0 -134
  345. package/dist/.sst/platform/src/components/aws/kinesis-stream.js.map +0 -1
  346. package/dist/.sst/platform/src/components/aws/linkable.js +0 -25
  347. package/dist/.sst/platform/src/components/aws/linkable.js.map +0 -1
  348. package/dist/.sst/platform/src/components/aws/logging.js +0 -26
  349. package/dist/.sst/platform/src/components/aws/logging.js.map +0 -1
  350. package/dist/.sst/platform/src/components/aws/mysql.js +0 -514
  351. package/dist/.sst/platform/src/components/aws/mysql.js.map +0 -1
  352. package/dist/.sst/platform/src/components/aws/nextjs.js +0 -444
  353. package/dist/.sst/platform/src/components/aws/nextjs.js.map +0 -1
  354. package/dist/.sst/platform/src/components/aws/nuxt.js +0 -113
  355. package/dist/.sst/platform/src/components/aws/nuxt.js.map +0 -1
  356. package/dist/.sst/platform/src/components/aws/open-search.js +0 -365
  357. package/dist/.sst/platform/src/components/aws/open-search.js.map +0 -1
  358. package/dist/.sst/platform/src/components/aws/opencontrol.js +0 -164
  359. package/dist/.sst/platform/src/components/aws/opencontrol.js.map +0 -1
  360. package/dist/.sst/platform/src/components/aws/permission.js +0 -19
  361. package/dist/.sst/platform/src/components/aws/permission.js.map +0 -1
  362. package/dist/.sst/platform/src/components/aws/postgres-v1.js +0 -304
  363. package/dist/.sst/platform/src/components/aws/postgres-v1.js.map +0 -1
  364. package/dist/.sst/platform/src/components/aws/postgres.js +0 -532
  365. package/dist/.sst/platform/src/components/aws/postgres.js.map +0 -1
  366. package/dist/.sst/platform/src/components/aws/providers/bucket-files.js +0 -8
  367. package/dist/.sst/platform/src/components/aws/providers/bucket-files.js.map +0 -1
  368. package/dist/.sst/platform/src/components/aws/providers/distribution-deployment-waiter.js +0 -8
  369. package/dist/.sst/platform/src/components/aws/providers/distribution-deployment-waiter.js.map +0 -1
  370. package/dist/.sst/platform/src/components/aws/providers/distribution-invalidation.js +0 -8
  371. package/dist/.sst/platform/src/components/aws/providers/distribution-invalidation.js.map +0 -1
  372. package/dist/.sst/platform/src/components/aws/providers/function-environment-update.js +0 -18
  373. package/dist/.sst/platform/src/components/aws/providers/function-environment-update.js.map +0 -1
  374. package/dist/.sst/platform/src/components/aws/providers/hosted-zone-lookup.js +0 -8
  375. package/dist/.sst/platform/src/components/aws/providers/hosted-zone-lookup.js.map +0 -1
  376. package/dist/.sst/platform/src/components/aws/providers/kv-keys.js +0 -8
  377. package/dist/.sst/platform/src/components/aws/providers/kv-keys.js.map +0 -1
  378. package/dist/.sst/platform/src/components/aws/providers/kv-routes-update.js +0 -8
  379. package/dist/.sst/platform/src/components/aws/providers/kv-routes-update.js.map +0 -1
  380. package/dist/.sst/platform/src/components/aws/providers/origin-access-control.js +0 -8
  381. package/dist/.sst/platform/src/components/aws/providers/origin-access-control.js.map +0 -1
  382. package/dist/.sst/platform/src/components/aws/providers/rds-role-lookup.js +0 -8
  383. package/dist/.sst/platform/src/components/aws/providers/rds-role-lookup.js.map +0 -1
  384. package/dist/.sst/platform/src/components/aws/providers/vector-table.js +0 -8
  385. package/dist/.sst/platform/src/components/aws/providers/vector-table.js.map +0 -1
  386. package/dist/.sst/platform/src/components/aws/queue-lambda-subscriber.js +0 -81
  387. package/dist/.sst/platform/src/components/aws/queue-lambda-subscriber.js.map +0 -1
  388. package/dist/.sst/platform/src/components/aws/queue.js +0 -322
  389. package/dist/.sst/platform/src/components/aws/queue.js.map +0 -1
  390. package/dist/.sst/platform/src/components/aws/react.js +0 -157
  391. package/dist/.sst/platform/src/components/aws/react.js.map +0 -1
  392. package/dist/.sst/platform/src/components/aws/realtime-lambda-subscriber.js +0 -78
  393. package/dist/.sst/platform/src/components/aws/realtime-lambda-subscriber.js.map +0 -1
  394. package/dist/.sst/platform/src/components/aws/realtime.js +0 -221
  395. package/dist/.sst/platform/src/components/aws/realtime.js.map +0 -1
  396. package/dist/.sst/platform/src/components/aws/redis-v1.js +0 -335
  397. package/dist/.sst/platform/src/components/aws/redis-v1.js.map +0 -1
  398. package/dist/.sst/platform/src/components/aws/redis.js +0 -382
  399. package/dist/.sst/platform/src/components/aws/redis.js.map +0 -1
  400. package/dist/.sst/platform/src/components/aws/remix.js +0 -212
  401. package/dist/.sst/platform/src/components/aws/remix.js.map +0 -1
  402. package/dist/.sst/platform/src/components/aws/router-base-route.js +0 -40
  403. package/dist/.sst/platform/src/components/aws/router-base-route.js.map +0 -1
  404. package/dist/.sst/platform/src/components/aws/router-bucket-route.js +0 -40
  405. package/dist/.sst/platform/src/components/aws/router-bucket-route.js.map +0 -1
  406. package/dist/.sst/platform/src/components/aws/router-url-route.js +0 -51
  407. package/dist/.sst/platform/src/components/aws/router-url-route.js.map +0 -1
  408. package/dist/.sst/platform/src/components/aws/router.js +0 -1156
  409. package/dist/.sst/platform/src/components/aws/router.js.map +0 -1
  410. package/dist/.sst/platform/src/components/aws/service-v1.js +0 -606
  411. package/dist/.sst/platform/src/components/aws/service-v1.js.map +0 -1
  412. package/dist/.sst/platform/src/components/aws/service.js +0 -924
  413. package/dist/.sst/platform/src/components/aws/service.js.map +0 -1
  414. package/dist/.sst/platform/src/components/aws/sns-topic-lambda-subscriber.js +0 -75
  415. package/dist/.sst/platform/src/components/aws/sns-topic-lambda-subscriber.js.map +0 -1
  416. package/dist/.sst/platform/src/components/aws/sns-topic-queue-subscriber.js +0 -59
  417. package/dist/.sst/platform/src/components/aws/sns-topic-queue-subscriber.js.map +0 -1
  418. package/dist/.sst/platform/src/components/aws/sns-topic.js +0 -233
  419. package/dist/.sst/platform/src/components/aws/sns-topic.js.map +0 -1
  420. package/dist/.sst/platform/src/components/aws/solid-start.js +0 -120
  421. package/dist/.sst/platform/src/components/aws/solid-start.js.map +0 -1
  422. package/dist/.sst/platform/src/components/aws/ssr-site.js +0 -792
  423. package/dist/.sst/platform/src/components/aws/ssr-site.js.map +0 -1
  424. package/dist/.sst/platform/src/components/aws/static-site.js +0 -583
  425. package/dist/.sst/platform/src/components/aws/static-site.js.map +0 -1
  426. package/dist/.sst/platform/src/components/aws/step-functions/choice.js +0 -98
  427. package/dist/.sst/platform/src/components/aws/step-functions/choice.js.map +0 -1
  428. package/dist/.sst/platform/src/components/aws/step-functions/fail.js +0 -25
  429. package/dist/.sst/platform/src/components/aws/step-functions/fail.js.map +0 -1
  430. package/dist/.sst/platform/src/components/aws/step-functions/map.js +0 -108
  431. package/dist/.sst/platform/src/components/aws/step-functions/map.js.map +0 -1
  432. package/dist/.sst/platform/src/components/aws/step-functions/parallel.js +0 -129
  433. package/dist/.sst/platform/src/components/aws/step-functions/parallel.js.map +0 -1
  434. package/dist/.sst/platform/src/components/aws/step-functions/pass.js +0 -41
  435. package/dist/.sst/platform/src/components/aws/step-functions/pass.js.map +0 -1
  436. package/dist/.sst/platform/src/components/aws/step-functions/state.js +0 -134
  437. package/dist/.sst/platform/src/components/aws/step-functions/state.js.map +0 -1
  438. package/dist/.sst/platform/src/components/aws/step-functions/succeed.js +0 -25
  439. package/dist/.sst/platform/src/components/aws/step-functions/succeed.js.map +0 -1
  440. package/dist/.sst/platform/src/components/aws/step-functions/task.js +0 -116
  441. package/dist/.sst/platform/src/components/aws/step-functions/task.js.map +0 -1
  442. package/dist/.sst/platform/src/components/aws/step-functions/wait.js +0 -46
  443. package/dist/.sst/platform/src/components/aws/step-functions/wait.js.map +0 -1
  444. package/dist/.sst/platform/src/components/aws/step-functions.js +0 -576
  445. package/dist/.sst/platform/src/components/aws/step-functions.js.map +0 -1
  446. package/dist/.sst/platform/src/components/aws/svelte-kit.js +0 -144
  447. package/dist/.sst/platform/src/components/aws/svelte-kit.js.map +0 -1
  448. package/dist/.sst/platform/src/components/aws/tan-stack-start.js +0 -143
  449. package/dist/.sst/platform/src/components/aws/tan-stack-start.js.map +0 -1
  450. package/dist/.sst/platform/src/components/aws/task.js +0 -311
  451. package/dist/.sst/platform/src/components/aws/task.js.map +0 -1
  452. package/dist/.sst/platform/src/components/aws/vector.js +0 -224
  453. package/dist/.sst/platform/src/components/aws/vector.js.map +0 -1
  454. package/dist/.sst/platform/src/components/aws/vpc-v1.js +0 -355
  455. package/dist/.sst/platform/src/components/aws/vpc-v1.js.map +0 -1
  456. package/dist/.sst/platform/src/components/aws/vpc.js +0 -834
  457. package/dist/.sst/platform/src/components/aws/vpc.js.map +0 -1
  458. package/dist/.sst/platform/src/components/base/base-site.js +0 -47
  459. package/dist/.sst/platform/src/components/base/base-site.js.map +0 -1
  460. package/dist/.sst/platform/src/components/base/base-ssr-site.js +0 -72
  461. package/dist/.sst/platform/src/components/base/base-ssr-site.js.map +0 -1
  462. package/dist/.sst/platform/src/components/base/base-static-site.js +0 -87
  463. package/dist/.sst/platform/src/components/base/base-static-site.js.map +0 -1
  464. package/dist/.sst/platform/src/components/cloudflare/account-id.js +0 -2
  465. package/dist/.sst/platform/src/components/cloudflare/account-id.js.map +0 -1
  466. package/dist/.sst/platform/src/components/cloudflare/auth.js +0 -37
  467. package/dist/.sst/platform/src/components/cloudflare/auth.js.map +0 -1
  468. package/dist/.sst/platform/src/components/cloudflare/binding.js +0 -25
  469. package/dist/.sst/platform/src/components/cloudflare/binding.js.map +0 -1
  470. package/dist/.sst/platform/src/components/cloudflare/bucket.js +0 -98
  471. package/dist/.sst/platform/src/components/cloudflare/bucket.js.map +0 -1
  472. package/dist/.sst/platform/src/components/cloudflare/cron.js +0 -86
  473. package/dist/.sst/platform/src/components/cloudflare/cron.js.map +0 -1
  474. package/dist/.sst/platform/src/components/cloudflare/d1.js +0 -104
  475. package/dist/.sst/platform/src/components/cloudflare/d1.js.map +0 -1
  476. package/dist/.sst/platform/src/components/cloudflare/dns.js +0 -138
  477. package/dist/.sst/platform/src/components/cloudflare/dns.js.map +0 -1
  478. package/dist/.sst/platform/src/components/cloudflare/helpers/fetch.js +0 -39
  479. package/dist/.sst/platform/src/components/cloudflare/helpers/fetch.js.map +0 -1
  480. package/dist/.sst/platform/src/components/cloudflare/helpers/worker-builder.js +0 -25
  481. package/dist/.sst/platform/src/components/cloudflare/helpers/worker-builder.js.map +0 -1
  482. package/dist/.sst/platform/src/components/cloudflare/index.js +0 -13
  483. package/dist/.sst/platform/src/components/cloudflare/index.js.map +0 -1
  484. package/dist/.sst/platform/src/components/cloudflare/kv.js +0 -98
  485. package/dist/.sst/platform/src/components/cloudflare/kv.js.map +0 -1
  486. package/dist/.sst/platform/src/components/cloudflare/providers/dns-record.js +0 -11
  487. package/dist/.sst/platform/src/components/cloudflare/providers/dns-record.js.map +0 -1
  488. package/dist/.sst/platform/src/components/cloudflare/providers/kv-data.js +0 -63
  489. package/dist/.sst/platform/src/components/cloudflare/providers/kv-data.js.map +0 -1
  490. package/dist/.sst/platform/src/components/cloudflare/providers/worker-url.js +0 -83
  491. package/dist/.sst/platform/src/components/cloudflare/providers/worker-url.js.map +0 -1
  492. package/dist/.sst/platform/src/components/cloudflare/providers/zone-lookup.js +0 -54
  493. package/dist/.sst/platform/src/components/cloudflare/providers/zone-lookup.js.map +0 -1
  494. package/dist/.sst/platform/src/components/cloudflare/queue.js +0 -57
  495. package/dist/.sst/platform/src/components/cloudflare/queue.js.map +0 -1
  496. package/dist/.sst/platform/src/components/cloudflare/remix.d.ts +0 -223
  497. package/dist/.sst/platform/src/components/cloudflare/remix.d.ts.map +0 -1
  498. package/dist/.sst/platform/src/components/cloudflare/remix.js +0 -291
  499. package/dist/.sst/platform/src/components/cloudflare/remix.js.map +0 -1
  500. package/dist/.sst/platform/src/components/cloudflare/ssr-site.js +0 -177
  501. package/dist/.sst/platform/src/components/cloudflare/ssr-site.js.map +0 -1
  502. package/dist/.sst/platform/src/components/cloudflare/static-site.js +0 -315
  503. package/dist/.sst/platform/src/components/cloudflare/static-site.js.map +0 -1
  504. package/dist/.sst/platform/src/components/cloudflare/worker.js +0 -326
  505. package/dist/.sst/platform/src/components/cloudflare/worker.js.map +0 -1
  506. package/dist/.sst/platform/src/components/component.js +0 -395
  507. package/dist/.sst/platform/src/components/component.js.map +0 -1
  508. package/dist/.sst/platform/src/components/cpu.js +0 -9
  509. package/dist/.sst/platform/src/components/cpu.js.map +0 -1
  510. package/dist/.sst/platform/src/components/dns.js +0 -7
  511. package/dist/.sst/platform/src/components/dns.js.map +0 -1
  512. package/dist/.sst/platform/src/components/duration.js +0 -19
  513. package/dist/.sst/platform/src/components/duration.js.map +0 -1
  514. package/dist/.sst/platform/src/components/error.js +0 -6
  515. package/dist/.sst/platform/src/components/error.js.map +0 -1
  516. package/dist/.sst/platform/src/components/experimental/dev-command.js +0 -59
  517. package/dist/.sst/platform/src/components/experimental/dev-command.js.map +0 -1
  518. package/dist/.sst/platform/src/components/experimental/index.js +0 -2
  519. package/dist/.sst/platform/src/components/experimental/index.js.map +0 -1
  520. package/dist/.sst/platform/src/components/hint.d.ts +0 -7
  521. package/dist/.sst/platform/src/components/hint.d.ts.map +0 -1
  522. package/dist/.sst/platform/src/components/hint.js +0 -20
  523. package/dist/.sst/platform/src/components/hint.js.map +0 -1
  524. package/dist/.sst/platform/src/components/index.js +0 -16
  525. package/dist/.sst/platform/src/components/index.js.map +0 -1
  526. package/dist/.sst/platform/src/components/input.js +0 -2
  527. package/dist/.sst/platform/src/components/input.js.map +0 -1
  528. package/dist/.sst/platform/src/components/link.js +0 -138
  529. package/dist/.sst/platform/src/components/link.js.map +0 -1
  530. package/dist/.sst/platform/src/components/linkable.js +0 -244
  531. package/dist/.sst/platform/src/components/linkable.js.map +0 -1
  532. package/dist/.sst/platform/src/components/naming.js +0 -58
  533. package/dist/.sst/platform/src/components/naming.js.map +0 -1
  534. package/dist/.sst/platform/src/components/path.js +0 -5
  535. package/dist/.sst/platform/src/components/path.js.map +0 -1
  536. package/dist/.sst/platform/src/components/rpc/rpc.js +0 -120
  537. package/dist/.sst/platform/src/components/rpc/rpc.js.map +0 -1
  538. package/dist/.sst/platform/src/components/secret.js +0 -143
  539. package/dist/.sst/platform/src/components/secret.js.map +0 -1
  540. package/dist/.sst/platform/src/components/size.js +0 -29
  541. package/dist/.sst/platform/src/components/size.js.map +0 -1
  542. package/dist/.sst/platform/src/components/vercel/account-id.js +0 -2
  543. package/dist/.sst/platform/src/components/vercel/account-id.js.map +0 -1
  544. package/dist/.sst/platform/src/components/vercel/dns.js +0 -104
  545. package/dist/.sst/platform/src/components/vercel/dns.js.map +0 -1
  546. package/dist/.sst/platform/src/components/vercel/index.js +0 -3
  547. package/dist/.sst/platform/src/components/vercel/index.js.map +0 -1
  548. package/dist/.sst/platform/src/components/vercel/providers/dns-record.js +0 -8
  549. package/dist/.sst/platform/src/components/vercel/providers/dns-record.js.map +0 -1
  550. package/dist/.sst/platform/src/config.js +0 -5
  551. package/dist/.sst/platform/src/config.js.map +0 -1
  552. package/dist/.sst/platform/src/util/compare-semver.js +0 -24
  553. package/dist/.sst/platform/src/util/compare-semver.js.map +0 -1
  554. package/dist/.sst/platform/src/util/lazy.js +0 -12
  555. package/dist/.sst/platform/src/util/lazy.js.map +0 -1
  556. package/dist/.sst/platform/src/util/path-to-regex.d.ts +0 -128
  557. package/dist/.sst/platform/src/util/path-to-regex.d.ts.map +0 -1
  558. package/dist/.sst/platform/src/util/path-to-regex.js +0 -392
  559. package/dist/.sst/platform/src/util/path-to-regex.js.map +0 -1
  560. package/dist/.sst/platform/src/util/semaphore.js +0 -36
  561. package/dist/.sst/platform/src/util/semaphore.js.map +0 -1
  562. package/dist/.sst/platform/src/util/warn.js +0 -8
  563. package/dist/.sst/platform/src/util/warn.js.map +0 -1
  564. package/dist/components/monorise-core.js +0 -147
  565. package/dist/components/monorise-core.js.map +0 -1
  566. package/dist/components/q-function.js +0 -53
  567. package/dist/components/q-function.js.map +0 -1
  568. package/dist/components/single-table.js +0 -73
  569. package/dist/components/single-table.js.map +0 -1
  570. package/dist/constants/event.js +0 -74
  571. package/dist/constants/event.js.map +0 -1
  572. package/dist/constants/table.js +0 -3
  573. package/dist/constants/table.js.map +0 -1
  574. package/dist/sst.config.js +0 -24
  575. package/dist/sst.config.js.map +0 -1
  576. package/dist/tsconfig.tsbuildinfo +0 -1
@@ -3,9 +3,12 @@ import { Component, Transform } from "../component";
3
3
  import { Link } from "../link";
4
4
  import type { Input } from "../input";
5
5
  import { Cdn, CdnArgs } from "./cdn";
6
- import { cloudfront } from "@pulumi/aws";
6
+ import { cloudfront, cloudwatch, wafv2 } from "@pulumi/aws";
7
7
  import { Bucket } from "./bucket";
8
8
  import { DurationSeconds } from "../duration";
9
+ import { FunctionArn } from "./function.js";
10
+ import { Size } from "../size";
11
+ import { RETENTION } from "./logging";
9
12
  interface InlineUrlRouteArgs extends InlineBaseRouteArgs {
10
13
  /**
11
14
  * The destination URL.
@@ -195,7 +198,7 @@ interface InlineBaseRouteArgs {
195
198
  * url: "https://example.com"
196
199
  * edge: {
197
200
  * viewerRequest: {
198
- * injection: `event.request.headers["x-foo"] = "bar";`
201
+ * injection: `event.request.headers["x-foo"] = { value: "bar" };`
199
202
  * }
200
203
  * }
201
204
  * }
@@ -248,7 +251,7 @@ interface InlineBaseRouteArgs {
248
251
  * url: "https://example.com"
249
252
  * edge: {
250
253
  * viewerResponse: {
251
- * injection: `event.response.headers["x-foo"] = "bar";`
254
+ * injection: `event.response.headers["x-foo"] = { value: "bar" };`
252
255
  * }
253
256
  * }
254
257
  * }
@@ -281,7 +284,7 @@ interface InlineBaseRouteArgs {
281
284
  * url: "https://example.com"
282
285
  * edge: {
283
286
  * viewerResponse: {
284
- * injection: `event.response.headers["x-foo"] = "bar";`
287
+ * injection: `event.response.headers["x-foo"] = { value: "bar" };`
285
288
  * }
286
289
  * }
287
290
  * }
@@ -436,6 +439,221 @@ export interface RouterBucketRouteArgs extends RouteArgs {
436
439
  to: Input<string>;
437
440
  }>;
438
441
  }
442
+ export interface WafLoggingArgs {
443
+ /**
444
+ * Filter which requests are logged.
445
+ *
446
+ * - `"all"` logs every request evaluated by the WAF.
447
+ * - `"blocked"` only logs requests that were blocked.
448
+ *
449
+ * @default `"all"`
450
+ * @example
451
+ * ```js
452
+ * {
453
+ * waf: {
454
+ * logging: {
455
+ * include: "blocked"
456
+ * }
457
+ * }
458
+ * }
459
+ * ```
460
+ */
461
+ include?: Input<"all" | "blocked">;
462
+ /**
463
+ * The duration the WAF logs are kept in CloudWatch.
464
+ *
465
+ * @default `"1 month"`
466
+ * @example
467
+ * ```js
468
+ * {
469
+ * waf: {
470
+ * logging: {
471
+ * retention: "3 months"
472
+ * }
473
+ * }
474
+ * }
475
+ * ```
476
+ */
477
+ retention?: Input<keyof typeof RETENTION>;
478
+ /**
479
+ * Configure which parts of the request are redacted from the logs. Redacted
480
+ * fields are replaced with `REDACTED` in the log output.
481
+ *
482
+ * By default, the query string and the `cookie` and `authorization` headers
483
+ * are redacted since they commonly contain PII or credentials.
484
+ *
485
+ * Set to `false` to disable all redaction.
486
+ *
487
+ * @default `{ queryString: true, headers: ["cookie", "authorization"] }`
488
+ * @example
489
+ *
490
+ * Disable all redaction.
491
+ *
492
+ * ```js
493
+ * {
494
+ * waf: {
495
+ * logging: {
496
+ * redact: false
497
+ * }
498
+ * }
499
+ * }
500
+ * ```
501
+ *
502
+ * Redact everything.
503
+ *
504
+ * ```js
505
+ * {
506
+ * waf: {
507
+ * logging: {
508
+ * redact: {
509
+ * queryString: true,
510
+ * uriPath: true,
511
+ * method: true,
512
+ * headers: ["cookie", "authorization"]
513
+ * }
514
+ * }
515
+ * }
516
+ * }
517
+ * ```
518
+ */
519
+ redact?: Input<false | {
520
+ /**
521
+ * Redact the query string from the logs. The query string is the
522
+ * part of a URL after the `?` and can contain tokens, user IDs,
523
+ * or other sensitive parameters.
524
+ * @default `true`
525
+ */
526
+ queryString?: Input<boolean>;
527
+ /**
528
+ * Redact the URI path from the logs. The URI path identifies the
529
+ * resource being accessed, like `/users/123/profile`.
530
+ * @default `false`
531
+ */
532
+ uriPath?: Input<boolean>;
533
+ /**
534
+ * Redact the HTTP method from the logs (GET, POST, etc.).
535
+ * @default `false`
536
+ */
537
+ method?: Input<boolean>;
538
+ /**
539
+ * A list of header names to redact from the logs. Must be lowercase.
540
+ * @default `["cookie", "authorization"]`
541
+ * @example
542
+ * ```js
543
+ * {
544
+ * headers: ["cookie", "authorization", "x-api-key"]
545
+ * }
546
+ * ```
547
+ */
548
+ headers?: Input<string[]>;
549
+ }>;
550
+ }
551
+ export interface WafArgs {
552
+ /**
553
+ * The rate limit per IP address. Requests from an IP that exceed this limit
554
+ * within a 5-minute window will be blocked.
555
+ *
556
+ * @default `2000`
557
+ * @example
558
+ * ```js
559
+ * {
560
+ * waf: {
561
+ * rateLimitPerIp: 1000
562
+ * }
563
+ * }
564
+ * ```
565
+ */
566
+ rateLimitPerIp?: Input<number>;
567
+ /**
568
+ * Configure which AWS managed rule groups to enable.
569
+ *
570
+ * @default All managed rules enabled
571
+ * @example
572
+ * ```js
573
+ * {
574
+ * waf: {
575
+ * managedRules: {
576
+ * coreRuleSet: true,
577
+ * knownBadInputs: true,
578
+ * sqlInjection: false
579
+ * }
580
+ * }
581
+ * }
582
+ * ```
583
+ */
584
+ managedRules?: Input<{
585
+ /**
586
+ * Enable the AWS Core Rule Set (CRS) which provides protection against common
587
+ * web vulnerabilities.
588
+ * @default `true`
589
+ */
590
+ coreRuleSet?: Input<boolean>;
591
+ /**
592
+ * Enable protection against known bad inputs, including Log4j vulnerabilities.
593
+ * @default `true`
594
+ */
595
+ knownBadInputs?: Input<boolean>;
596
+ /**
597
+ * Enable SQL injection protection.
598
+ * @default `true`
599
+ */
600
+ sqlInjection?: Input<boolean>;
601
+ }>;
602
+ /**
603
+ * Configure WAF logging to CloudWatch. When set to `true`, all WAF-evaluated
604
+ * requests are logged with a 1-month retention. Or pass in an object to
605
+ * customize what is logged, how long logs are retained, and which fields
606
+ * are redacted.
607
+ *
608
+ * :::tip
609
+ * WAF logging is off by default. Enabling it will incur additional
610
+ * [CloudWatch costs](https://aws.amazon.com/cloudwatch/pricing/) depending
611
+ * on log volume.
612
+ * :::
613
+ *
614
+ * @default Logging is disabled
615
+ * @example
616
+ *
617
+ * Enable with defaults.
618
+ *
619
+ * ```js
620
+ * {
621
+ * waf: {
622
+ * logging: true
623
+ * }
624
+ * }
625
+ * ```
626
+ *
627
+ * Only log blocked requests.
628
+ *
629
+ * ```js
630
+ * {
631
+ * waf: {
632
+ * logging: {
633
+ * include: "blocked",
634
+ * retention: "3 months"
635
+ * }
636
+ * }
637
+ * }
638
+ * ```
639
+ *
640
+ * Redact sensitive fields.
641
+ *
642
+ * ```js
643
+ * {
644
+ * waf: {
645
+ * logging: {
646
+ * redact: {
647
+ * queryString: true,
648
+ * headers: ["cookie"]
649
+ * }
650
+ * }
651
+ * }
652
+ * }
653
+ * ```
654
+ */
655
+ logging?: Input<boolean | WafLoggingArgs>;
656
+ }
439
657
  export interface RouterArgs {
440
658
  /**
441
659
  * Set a custom domain for your Router.
@@ -571,7 +789,7 @@ export interface RouterArgs {
571
789
  * url: "https://example.com",
572
790
  * edge: {
573
791
  * viewerRequest: {
574
- * injection: `event.request.headers["x-foo"] = "bar";`
792
+ * injection: `event.request.headers["x-foo"] = { value: "bar" };`
575
793
  * }
576
794
  * }
577
795
  * }
@@ -635,7 +853,7 @@ export interface RouterArgs {
635
853
  * {
636
854
  * edge: {
637
855
  * viewerRequest: {
638
- * injection: `event.request.headers["x-foo"] = "bar";`
856
+ * injection: `event.request.headers["x-foo"] = { value: "bar" };`
639
857
  * }
640
858
  * }
641
859
  * }
@@ -687,7 +905,7 @@ export interface RouterArgs {
687
905
  * {
688
906
  * edge: {
689
907
  * viewerResponse: {
690
- * injection: `event.response.headers["x-foo"] = "bar";`
908
+ * injection: `event.response.headers["x-foo"] = { value: "bar" };`
691
909
  * }
692
910
  * }
693
911
  * }
@@ -786,6 +1004,128 @@ export interface RouterArgs {
786
1004
  */
787
1005
  paths?: Input<Input<string>[]>;
788
1006
  }>;
1007
+ /**
1008
+ * Configure Lambda function URL protection through CloudFront Origin Access Control.
1009
+ *
1010
+ * When set, all Functions and SSR sites routing through this Router automatically
1011
+ * inherit the protection mode.
1012
+ *
1013
+ * @default `"none"`
1014
+ *
1015
+ * The available options are:
1016
+ * - `"none"`: Lambda URLs are publicly accessible.
1017
+ * - `"oac"`: Lambda URLs protected by CloudFront Origin Access Control. Requires
1018
+ * manual `x-amz-content-sha256` header for POST requests.
1019
+ * - `"oac-with-edge-signing"`: Full protection with automatic header signing via
1020
+ * Lambda@Edge. Works with external webhooks and callbacks. Higher cost and latency
1021
+ * but works out of the box.
1022
+ *
1023
+ * :::note
1024
+ * Switching from `"none"` to `"oac"` or `"oac-with-edge-signing"` may cause brief
1025
+ * 403 errors (~10-60s) during deployment while CloudFront edge nodes pick up the new
1026
+ * signing configuration. For zero-disruption upgrades, set `protection` when first
1027
+ * creating the Router.
1028
+ * :::
1029
+ *
1030
+ * :::note
1031
+ * When using `"oac-with-edge-signing"`, request bodies are limited to 1MB due to
1032
+ * Lambda@Edge payload limits. For file uploads larger than 1MB, consider using
1033
+ * presigned S3 URLs or the `"oac"` mode with manual header signing.
1034
+ * :::
1035
+ *
1036
+ * :::note
1037
+ * When removing a stage that uses `"oac-with-edge-signing"`, deletion may take
1038
+ * 5-10 minutes while AWS removes the Lambda@Edge replicated functions from all
1039
+ * edge locations.
1040
+ * :::
1041
+ *
1042
+ * @example
1043
+ * ```js
1044
+ * {
1045
+ * protection: "oac"
1046
+ * }
1047
+ * ```
1048
+ *
1049
+ * @example
1050
+ * ```js
1051
+ * {
1052
+ * protection: "oac-with-edge-signing"
1053
+ * }
1054
+ * ```
1055
+ *
1056
+ * @example
1057
+ * ```js
1058
+ * // Custom Lambda@Edge configuration
1059
+ * {
1060
+ * protection: {
1061
+ * mode: "oac-with-edge-signing",
1062
+ * edgeFunction: {
1063
+ * memory: "256 MB",
1064
+ * timeout: "10 seconds"
1065
+ * }
1066
+ * }
1067
+ * }
1068
+ * ```
1069
+ */
1070
+ protection?: Input<"none" | "oac" | "oac-with-edge-signing" | {
1071
+ mode: "oac-with-edge-signing";
1072
+ edgeFunction?: {
1073
+ /**
1074
+ * Custom Lambda@Edge function ARN to use for request signing.
1075
+ * If provided, this function will be used instead of creating a new one.
1076
+ * Must be a qualified ARN (with version) and deployed in us-east-1.
1077
+ */
1078
+ arn?: Input<FunctionArn>;
1079
+ /**
1080
+ * Memory size for the auto-created Lambda@Edge function.
1081
+ * Only used when arn is not provided.
1082
+ * @default `"128 MB"`
1083
+ */
1084
+ memory?: Input<Size>;
1085
+ /**
1086
+ * Timeout for the auto-created Lambda@Edge function.
1087
+ * Only used when arn is not provided.
1088
+ * @default `"5 seconds"`
1089
+ */
1090
+ timeout?: Input<DurationSeconds>;
1091
+ };
1092
+ }>;
1093
+ /**
1094
+ * Enable AWS WAF (Web Application Firewall) to protect your Router from common
1095
+ * web exploits and bots.
1096
+ *
1097
+ * :::tip
1098
+ * WAF provides protection against SQL injection, cross-site scripting (XSS),
1099
+ * and other common attacks.
1100
+ * :::
1101
+ *
1102
+ * @default WAF is disabled
1103
+ * @example
1104
+ *
1105
+ * Enable with sensible defaults.
1106
+ *
1107
+ * ```js
1108
+ * {
1109
+ * waf: true
1110
+ * }
1111
+ * ```
1112
+ *
1113
+ * Or customize the configuration.
1114
+ *
1115
+ * ```js
1116
+ * {
1117
+ * waf: {
1118
+ * rateLimitPerIp: 1000,
1119
+ * managedRules: {
1120
+ * coreRuleSet: true,
1121
+ * knownBadInputs: true,
1122
+ * sqlInjection: true
1123
+ * }
1124
+ * }
1125
+ * }
1126
+ * ```
1127
+ */
1128
+ waf?: Input<boolean | WafArgs>;
789
1129
  /**
790
1130
  * [Transform](/docs/components#transform) how this component creates its underlying
791
1131
  * resources.
@@ -799,6 +1139,18 @@ export interface RouterArgs {
799
1139
  * Transform the CloudFront CDN resource.
800
1140
  */
801
1141
  cdn?: Transform<CdnArgs>;
1142
+ /**
1143
+ * Transform the WAF WebACL resource.
1144
+ */
1145
+ waf?: Transform<wafv2.WebAclArgs>;
1146
+ /**
1147
+ * Transform the CloudWatch LogGroup resource used for WAF logs.
1148
+ */
1149
+ wafLogGroup?: Transform<cloudwatch.LogGroupArgs>;
1150
+ /**
1151
+ * Transform the WAF WebACL logging configuration resource.
1152
+ */
1153
+ wafLogging?: Transform<wafv2.WebAclLoggingConfigurationArgs>;
802
1154
  };
803
1155
  /**
804
1156
  * @internal
@@ -969,6 +1321,7 @@ export declare class Router extends Component implements Link.Linkable {
969
1321
  private kvStoreArn?;
970
1322
  private kvNamespace?;
971
1323
  private hasInlineRoutes;
1324
+ private _protectionMode;
972
1325
  constructor(name: string, args?: RouterArgs, opts?: ComponentResourceOptions);
973
1326
  /**
974
1327
  * The ID of the Router distribution.
@@ -987,6 +1340,10 @@ export declare class Router extends Component implements Link.Linkable {
987
1340
  get _kvNamespace(): Output<string> | undefined;
988
1341
  /** @internal */
989
1342
  get _hasInlineRoutes(): $util.OutputInstance<boolean>;
1343
+ /** @internal */
1344
+ get _protection(): Output<ProtectionConfig>;
1345
+ /** @internal */
1346
+ get _distributionArn(): Output<string>;
990
1347
  /**
991
1348
  * The underlying [resources](/docs/components/#nodes) this component creates.
992
1349
  */
@@ -999,7 +1356,7 @@ export declare class Router extends Component implements Link.Linkable {
999
1356
  /**
1000
1357
  * Add a route to a destination URL.
1001
1358
  *
1002
- * @param pattern The path pattern to match for this route.
1359
+ * @param pattern The path prefix to match for this route.
1003
1360
  * @param url The destination URL to route matching requests to.
1004
1361
  * @param args Configure the route.
1005
1362
  *
@@ -1007,11 +1364,11 @@ export declare class Router extends Component implements Link.Linkable {
1007
1364
  *
1008
1365
  * You can match a route based on:
1009
1366
  *
1010
- * - A path like `/api`
1367
+ * - A path prefix like `/api`
1011
1368
  * - A domain pattern like `api.example.com`
1012
1369
  * - A combined pattern like `dev.example.com/api`
1013
1370
  *
1014
- * For example, to match a path.
1371
+ * For example, to match a path prefix.
1015
1372
  *
1016
1373
  * ```ts title="sst.config.ts"
1017
1374
  * router.route("/api", "https://api.example.com");
@@ -1047,7 +1404,7 @@ export declare class Router extends Component implements Link.Linkable {
1047
1404
  /**
1048
1405
  * Add a route to an S3 bucket.
1049
1406
  *
1050
- * @param pattern The path pattern to match for this route.
1407
+ * @param pattern The path prefix to match for this route.
1051
1408
  * @param bucket The S3 bucket to route matching requests to.
1052
1409
  * @param args Configure the route.
1053
1410
  *
@@ -1063,11 +1420,11 @@ export declare class Router extends Component implements Link.Linkable {
1063
1420
  *
1064
1421
  * You can match a pattern and route to it based on:
1065
1422
  *
1066
- * - A path like `/api`
1423
+ * - A path prefix like `/api`
1067
1424
  * - A domain pattern like `api.example.com`
1068
1425
  * - A combined pattern like `dev.example.com/api`
1069
1426
  *
1070
- * For example, to match a path.
1427
+ * For example, to match a path prefix.
1071
1428
  *
1072
1429
  * ```ts title="sst.config.ts"
1073
1430
  * router.routeBucket("/files", bucket);
@@ -1103,7 +1460,7 @@ export declare class Router extends Component implements Link.Linkable {
1103
1460
  /**
1104
1461
  * Add a route to a frontend or static site.
1105
1462
  *
1106
- * @param pattern The path pattern to match for this route.
1463
+ * @param pattern The path prefix to match for this route.
1107
1464
  * @param site The frontend or static site to route matching requests to.
1108
1465
  *
1109
1466
  * @deprecated The `routeSite` function has been deprecated. Set the `route` on the
@@ -1155,10 +1512,11 @@ export declare class Router extends Component implements Link.Linkable {
1155
1512
  static get(name: string, distributionID: Input<string>, opts?: ComponentResourceOptions): Router;
1156
1513
  }
1157
1514
  export declare const CF_BLOCK_CLOUDFRONT_URL_INJECTION = "\nif (event.request.headers.host.value.includes('cloudfront.net')) {\n return {\n statusCode: 403,\n statusDescription: 'Forbidden',\n body: {\n encoding: \"text\",\n data: '<html><head><title>403 Forbidden</title></head><body><center><h1>403 Forbidden</h1></center></body></html>'\n }\n };\n}";
1158
- export declare const CF_ROUTER_INJECTION = "\nasync function routeSite(kvNamespace, metadata) {\n const baselessUri = metadata.base\n ? event.request.uri.replace(metadata.base, \"\")\n : event.request.uri;\n\n // Route to S3 files\n try {\n // check using baselessUri b/c files are stored in the root\n const u = decodeURIComponent(baselessUri);\n const postfixes = u.endsWith(\"/\")\n ? [\"index.html\"]\n : [\"\", \".html\", \"/index.html\"];\n const v = await Promise.any(postfixes.map(p => cf.kvs().get(kvNamespace + \":\" + u + p).then(v => p)));\n // files are stored in a subdirectory, add it to the request uri\n event.request.uri = metadata.s3.dir + event.request.uri + v;\n setS3Origin(metadata.s3.domain);\n return;\n } catch (e) {}\n\n // Route to S3 routes\n if (metadata.s3 && metadata.s3.routes) {\n for (var i=0, l=metadata.s3.routes.length; i<l; i++) {\n const route = metadata.s3.routes[i];\n if (baselessUri.startsWith(route)) {\n event.request.uri = metadata.s3.dir + event.request.uri;\n // uri ends with /, ie. /usage/ -> /usage/index.html\n if (event.request.uri.endsWith(\"/\")) {\n event.request.uri += \"index.html\";\n }\n // uri ends with non-file, ie. /usage -> /usage/index.html\n else if (!event.request.uri.split(\"/\").pop().includes(\".\")) {\n event.request.uri += \"/index.html\";\n }\n setS3Origin(metadata.s3.domain);\n return;\n }\n }\n }\n\n // Route to S3 custom 404 (no servers)\n if (metadata.custom404) {\n event.request.uri = metadata.s3.dir + (metadata.base ? metadata.base : \"\") + metadata.custom404;\n setS3Origin(metadata.s3.domain);\n return;\n }\n\n // Route to image optimizer\n if (metadata.image && baselessUri.startsWith(metadata.image.route)) {\n setUrlOrigin(metadata.image.host);\n return;\n }\n\n // Route to servers\n if (metadata.servers){\n event.request.headers[\"x-forwarded-host\"] = event.request.headers.host;\n \n for (var key in event.request.querystring) {\n if (key.includes(\"/\")) {\n event.request.querystring[encodeURIComponent(key)] = event.request.querystring[key];\n delete event.request.querystring[key];\n }\n }\n setNextjsGeoHeaders();\n setNextjsCacheKey();\n setUrlOrigin(findNearestServer(metadata.servers), metadata.origin);\n }\n\n function setNextjsGeoHeaders() {\n \n if(event.request.headers[\"cloudfront-viewer-city\"]) {\n event.request.headers[\"x-open-next-city\"] = event.request.headers[\"cloudfront-viewer-city\"];\n }\n if(event.request.headers[\"cloudfront-viewer-country\"]) {\n event.request.headers[\"x-open-next-country\"] = event.request.headers[\"cloudfront-viewer-country\"];\n }\n if(event.request.headers[\"cloudfront-viewer-region\"]) {\n event.request.headers[\"x-open-next-region\"] = event.request.headers[\"cloudfront-viewer-region\"];\n }\n if(event.request.headers[\"cloudfront-viewer-latitude\"]) {\n event.request.headers[\"x-open-next-latitude\"] = event.request.headers[\"cloudfront-viewer-latitude\"];\n }\n if(event.request.headers[\"cloudfront-viewer-longitude\"]) {\n event.request.headers[\"x-open-next-longitude\"] = event.request.headers[\"cloudfront-viewer-longitude\"];\n }\n }\n\n function setNextjsCacheKey() {\n \n var cacheKey = \"\";\n if (event.request.uri.startsWith(\"/_next/image\")) {\n cacheKey = getHeader(\"accept\");\n } else {\n cacheKey =\n getHeader(\"rsc\") +\n getHeader(\"next-router-prefetch\") +\n getHeader(\"next-router-state-tree\") +\n getHeader(\"next-url\") +\n getHeader(\"x-prerender-revalidate\");\n }\n if (event.request.cookies[\"__prerender_bypass\"]) {\n cacheKey += event.request.cookies[\"__prerender_bypass\"]\n ? event.request.cookies[\"__prerender_bypass\"].value\n : \"\";\n }\n var crypto = require(\"crypto\");\n var hashedKey = crypto.createHash(\"md5\").update(cacheKey).digest(\"hex\");\n event.request.headers[\"x-open-next-cache-key\"] = { value: hashedKey };\n }\n\n function getHeader(key) {\n var header = event.request.headers[key];\n if (header) {\n if (header.multiValue) {\n return header.multiValue.map((header) => header.value).join(\",\");\n }\n if (header.value) {\n return header.value;\n }\n }\n return \"\";\n }\n\n function findNearestServer(servers) {\n if (servers.length === 1) return servers[0][0];\n\n const h = event.request.headers;\n const lat = h[\"cloudfront-viewer-latitude\"] && h[\"cloudfront-viewer-latitude\"].value;\n const lon = h[\"cloudfront-viewer-longitude\"] && h[\"cloudfront-viewer-longitude\"].value;\n if (!lat || !lon) return servers[0][0];\n\n return servers\n .map((s) => ({\n distance: haversineDistance(lat, lon, s[1], s[2]),\n host: s[0],\n }))\n .sort((a, b) => a.distance - b.distance)[0]\n .host;\n }\n\n function haversineDistance(lat1, lon1, lat2, lon2) {\n const toRad = angle => angle * Math.PI / 180;\n const radLat1 = toRad(lat1);\n const radLat2 = toRad(lat2);\n const dLat = toRad(lat2 - lat1);\n const dLon = toRad(lon2 - lon1);\n const a = Math.sin(dLat / 2) ** 2 + Math.cos(radLat1) * Math.cos(radLat2) * Math.sin(dLon / 2) ** 2;\n return 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1 - a));\n }\n}\n\nfunction setUrlOrigin(urlHost, override) {\n event.request.headers[\"x-forwarded-host\"] = event.request.headers.host;\n const origin = {\n domainName: urlHost,\n customOriginConfig: {\n port: 443,\n protocol: \"https\",\n sslProtocols: [\"TLSv1.2\"],\n },\n originAccessControlConfig: {\n enabled: false,\n }\n };\n override = override ?? {};\n if (override.protocol === \"http\") {\n delete origin.customOriginConfig;\n }\n if (override.connectionAttempts) {\n origin.connectionAttempts = override.connectionAttempts;\n }\n if (override.timeouts) {\n origin.timeouts = override.timeouts;\n }\n cf.updateRequestOrigin(origin);\n}\n\nfunction setS3Origin(s3Domain, override) {\n delete event.request.headers[\"Cookies\"];\n delete event.request.headers[\"cookies\"];\n delete event.request.cookies;\n\n const origin = {\n domainName: s3Domain,\n originAccessControlConfig: {\n enabled: true,\n signingBehavior: \"always\",\n signingProtocol: \"sigv4\",\n originType: \"s3\",\n }\n };\n override = override ?? {};\n if (override.connectionAttempts) {\n origin.connectionAttempts = override.connectionAttempts;\n }\n if (override.timeouts) {\n origin.timeouts = override.timeouts;\n }\n cf.updateRequestOrigin(origin);\n}";
1515
+ export declare const CF_ROUTER_INJECTION: string;
1159
1516
  export type KV_SITE_METADATA = {
1160
1517
  base?: string;
1161
1518
  custom404?: string;
1519
+ errorResponseCode?: number;
1162
1520
  s3: {
1163
1521
  domain: string;
1164
1522
  dir: string;
@@ -1167,12 +1525,32 @@ export type KV_SITE_METADATA = {
1167
1525
  image?: {
1168
1526
  host: string;
1169
1527
  route: string;
1528
+ originAccessControlConfig?: {
1529
+ enabled: boolean;
1530
+ signingBehavior: string;
1531
+ signingProtocol: string;
1532
+ originType: string;
1533
+ };
1170
1534
  };
1171
1535
  servers?: [string, number, number][];
1172
1536
  origin?: {
1173
1537
  timeouts: {
1174
1538
  readTimeout: number;
1175
1539
  };
1540
+ originAccessControlConfig?: {
1541
+ enabled: boolean;
1542
+ signingBehavior: string;
1543
+ signingProtocol: string;
1544
+ originType: string;
1545
+ };
1546
+ };
1547
+ };
1548
+ export type ProtectionConfig = {
1549
+ mode: "none" | "oac" | "oac-with-edge-signing";
1550
+ edgeFunction?: {
1551
+ arn?: string;
1552
+ memory?: Size;
1553
+ timeout?: DurationSeconds;
1176
1554
  };
1177
1555
  };
1178
1556
  export type RouterRouteArgs = {
@@ -1248,6 +1626,98 @@ export type RouterRouteArgs = {
1248
1626
  * ```
1249
1627
  */
1250
1628
  path?: Input<string>;
1629
+ /**
1630
+ * Rewrite the request path.
1631
+ *
1632
+ * @example
1633
+ *
1634
+ * If the route path is `/api/*` and a request comes in for `/api/users/profile`,
1635
+ * the request path the destination sees is `/api/users/profile`.
1636
+ *
1637
+ * If you want to serve the route from the root, you can rewrite the request
1638
+ * path to `/users/profile`.
1639
+ *
1640
+ * ```js
1641
+ * router: {
1642
+ * instance: router,
1643
+ * path: "/api",
1644
+ * rewrite: {
1645
+ * regex: "^/api/(.*)$",
1646
+ * to: "/$1"
1647
+ * }
1648
+ * }
1649
+ * ```
1650
+ */
1651
+ rewrite?: Input<{
1652
+ /**
1653
+ * The regex to match the request path.
1654
+ */
1655
+ regex: Input<string>;
1656
+ /**
1657
+ * The replacement for the matched path.
1658
+ */
1659
+ to: Input<string>;
1660
+ }>;
1661
+ /**
1662
+ * The number of seconds that CloudFront waits for a response after routing a
1663
+ * request to the destination. Must be between 1 and 60 seconds.
1664
+ *
1665
+ * When compared to the `connectionTimeout`, this is the total time for the
1666
+ * request.
1667
+ *
1668
+ * @default `"20 seconds"`
1669
+ * @example
1670
+ * ```js
1671
+ * router: {
1672
+ * instance: router,
1673
+ * readTimeout: "60 seconds"
1674
+ * }
1675
+ * ```
1676
+ */
1677
+ readTimeout?: Input<DurationSeconds>;
1678
+ /**
1679
+ * The number of seconds that CloudFront should try to maintain the connection
1680
+ * to the destination after receiving the last packet of the response. Must be
1681
+ * between 1 and 60 seconds.
1682
+ *
1683
+ * @default `"5 seconds"`
1684
+ * @example
1685
+ * ```js
1686
+ * router: {
1687
+ * instance: router,
1688
+ * keepAliveTimeout: "10 seconds"
1689
+ * }
1690
+ * ```
1691
+ */
1692
+ keepAliveTimeout?: Input<DurationSeconds>;
1693
+ /**
1694
+ * The number of seconds that CloudFront waits before timing out and closing the
1695
+ * connection to the origin. Must be between 1 and 10 seconds.
1696
+ *
1697
+ * @default `"10 seconds"`
1698
+ * @example
1699
+ * ```js
1700
+ * router: {
1701
+ * instance: router,
1702
+ * connectionTimeout: "3 seconds"
1703
+ * }
1704
+ * ```
1705
+ */
1706
+ connectionTimeout?: Input<DurationSeconds>;
1707
+ /**
1708
+ * The number of times that CloudFront attempts to connect to the origin. Must be
1709
+ * between 1 and 3.
1710
+ *
1711
+ * @default `3`
1712
+ * @example
1713
+ * ```js
1714
+ * router: {
1715
+ * instance: router,
1716
+ * connectionAttempts: 1
1717
+ * }
1718
+ * ```
1719
+ */
1720
+ connectionAttempts?: Input<number>;
1251
1721
  };
1252
1722
  export type RouterRouteArgsDeprecated = {
1253
1723
  router: Input<Router>;
@@ -1261,6 +1731,22 @@ export declare function normalizeRouteArgs(route?: Input<RouterRouteArgs>, route
1261
1731
  routerUrl: Output<string>;
1262
1732
  routerKvNamespace: Output<string>;
1263
1733
  routerKvStoreArn: Output<string>;
1734
+ routerProtection: Output<ProtectionConfig>;
1735
+ routerDistributionArn: Output<string>;
1736
+ rewrite: $util.UnwrappedObject<{
1737
+ /**
1738
+ * The regex to match the request path.
1739
+ */
1740
+ regex: Input<string>;
1741
+ /**
1742
+ * The replacement for the matched path.
1743
+ */
1744
+ to: Input<string>;
1745
+ }> | undefined;
1746
+ readTimeout: `${number} second` | `${number} seconds` | undefined;
1747
+ keepAliveTimeout: `${number} second` | `${number} seconds` | undefined;
1748
+ connectionTimeout: `${number} second` | `${number} seconds` | undefined;
1749
+ connectionAttempts: number | undefined;
1264
1750
  }> | undefined;
1265
1751
  export {};
1266
1752
  //# sourceMappingURL=router.d.ts.map