monorise 0.0.1

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 (416) hide show
  1. package/dist/base/index.d.ts +254 -0
  2. package/dist/base/index.js +44 -0
  3. package/dist/base/index.js.map +1 -0
  4. package/dist/cli/cli.d.ts +1 -0
  5. package/dist/cli/cli.js +461 -0
  6. package/dist/cli/cli.js.map +1 -0
  7. package/dist/core/index.d.ts +4767 -0
  8. package/dist/core/index.js +7941 -0
  9. package/dist/core/index.js.map +1 -0
  10. package/dist/index.d.ts +11 -0
  11. package/dist/index.js +11 -0
  12. package/dist/react/actions/app.action.d.ts +46 -0
  13. package/dist/react/actions/app.action.d.ts.map +1 -0
  14. package/dist/react/actions/auth.action.d.ts +24 -0
  15. package/dist/react/actions/auth.action.d.ts.map +1 -0
  16. package/dist/react/actions/config.action.d.ts +10 -0
  17. package/dist/react/actions/config.action.d.ts.map +1 -0
  18. package/dist/react/actions/core.action.d.ts +219 -0
  19. package/dist/react/actions/core.action.d.ts.map +1 -0
  20. package/dist/react/index.d.ts +1093 -0
  21. package/dist/react/index.d.ts.map +1 -0
  22. package/dist/react/index.js +2344 -0
  23. package/dist/react/index.js.map +1 -0
  24. package/dist/react/lib/api.d.ts +38 -0
  25. package/dist/react/lib/api.d.ts.map +1 -0
  26. package/dist/react/lib/constant.d.ts +2 -0
  27. package/dist/react/lib/constant.d.ts.map +1 -0
  28. package/dist/react/lib/entity.d.ts +10 -0
  29. package/dist/react/lib/entity.d.ts.map +1 -0
  30. package/dist/react/lib/utils.d.ts +10 -0
  31. package/dist/react/lib/utils.d.ts.map +1 -0
  32. package/dist/react/services/auth.service.d.ts +21 -0
  33. package/dist/react/services/auth.service.d.ts.map +1 -0
  34. package/dist/react/services/core.service.d.ts +76 -0
  35. package/dist/react/services/core.service.d.ts.map +1 -0
  36. package/dist/react/services/filestore.service.d.ts +22 -0
  37. package/dist/react/services/filestore.service.d.ts.map +1 -0
  38. package/dist/react/store/monorise.store.d.ts +169 -0
  39. package/dist/react/store/monorise.store.d.ts.map +1 -0
  40. package/dist/react/tsup.config.d.ts +3 -0
  41. package/dist/react/tsup.config.d.ts.map +1 -0
  42. package/dist/react/types/api.type.d.ts +30 -0
  43. package/dist/react/types/api.type.d.ts.map +1 -0
  44. package/dist/react/types/axios.type.d.ts +13 -0
  45. package/dist/react/types/axios.type.d.ts.map +1 -0
  46. package/dist/react/types/monorise.type.d.ts +8 -0
  47. package/dist/react/types/monorise.type.d.ts.map +1 -0
  48. package/dist/react/types/mutual.type.d.ts +21 -0
  49. package/dist/react/types/mutual.type.d.ts.map +1 -0
  50. package/dist/sst/.sst/platform/src/components/aws/analog.d.ts +423 -0
  51. package/dist/sst/.sst/platform/src/components/aws/analog.d.ts.map +1 -0
  52. package/dist/sst/.sst/platform/src/components/aws/apigateway-websocket-route.d.ts +74 -0
  53. package/dist/sst/.sst/platform/src/components/aws/apigateway-websocket-route.d.ts.map +1 -0
  54. package/dist/sst/.sst/platform/src/components/aws/apigateway-websocket.d.ts +542 -0
  55. package/dist/sst/.sst/platform/src/components/aws/apigateway-websocket.d.ts.map +1 -0
  56. package/dist/sst/.sst/platform/src/components/aws/apigatewayv1-api-key.d.ts +48 -0
  57. package/dist/sst/.sst/platform/src/components/aws/apigatewayv1-api-key.d.ts.map +1 -0
  58. package/dist/sst/.sst/platform/src/components/aws/apigatewayv1-authorizer.d.ts +55 -0
  59. package/dist/sst/.sst/platform/src/components/aws/apigatewayv1-authorizer.d.ts.map +1 -0
  60. package/dist/sst/.sst/platform/src/components/aws/apigatewayv1-base-route.d.ts +36 -0
  61. package/dist/sst/.sst/platform/src/components/aws/apigatewayv1-base-route.d.ts.map +1 -0
  62. package/dist/sst/.sst/platform/src/components/aws/apigatewayv1-integration-route.d.ts +39 -0
  63. package/dist/sst/.sst/platform/src/components/aws/apigatewayv1-integration-route.d.ts.map +1 -0
  64. package/dist/sst/.sst/platform/src/components/aws/apigatewayv1-lambda-route.d.ts +53 -0
  65. package/dist/sst/.sst/platform/src/components/aws/apigatewayv1-lambda-route.d.ts.map +1 -0
  66. package/dist/sst/.sst/platform/src/components/aws/apigatewayv1-usage-plan.d.ts +53 -0
  67. package/dist/sst/.sst/platform/src/components/aws/apigatewayv1-usage-plan.d.ts.map +1 -0
  68. package/dist/sst/.sst/platform/src/components/aws/apigatewayv1.d.ts +1002 -0
  69. package/dist/sst/.sst/platform/src/components/aws/apigatewayv1.d.ts.map +1 -0
  70. package/dist/sst/.sst/platform/src/components/aws/apigatewayv2-authorizer.d.ts +54 -0
  71. package/dist/sst/.sst/platform/src/components/aws/apigatewayv2-authorizer.d.ts.map +1 -0
  72. package/dist/sst/.sst/platform/src/components/aws/apigatewayv2-base-route.d.ts +28 -0
  73. package/dist/sst/.sst/platform/src/components/aws/apigatewayv2-base-route.d.ts.map +1 -0
  74. package/dist/sst/.sst/platform/src/components/aws/apigatewayv2-lambda-route.d.ts +59 -0
  75. package/dist/sst/.sst/platform/src/components/aws/apigatewayv2-lambda-route.d.ts.map +1 -0
  76. package/dist/sst/.sst/platform/src/components/aws/apigatewayv2-private-route.d.ts +54 -0
  77. package/dist/sst/.sst/platform/src/components/aws/apigatewayv2-private-route.d.ts.map +1 -0
  78. package/dist/sst/.sst/platform/src/components/aws/apigatewayv2-url-route.d.ts +44 -0
  79. package/dist/sst/.sst/platform/src/components/aws/apigatewayv2-url-route.d.ts.map +1 -0
  80. package/dist/sst/.sst/platform/src/components/aws/apigatewayv2.d.ts +931 -0
  81. package/dist/sst/.sst/platform/src/components/aws/apigatewayv2.d.ts.map +1 -0
  82. package/dist/sst/.sst/platform/src/components/aws/app-sync-data-source.d.ts +52 -0
  83. package/dist/sst/.sst/platform/src/components/aws/app-sync-data-source.d.ts.map +1 -0
  84. package/dist/sst/.sst/platform/src/components/aws/app-sync-function.d.ts +33 -0
  85. package/dist/sst/.sst/platform/src/components/aws/app-sync-function.d.ts.map +1 -0
  86. package/dist/sst/.sst/platform/src/components/aws/app-sync-resolver.d.ts +41 -0
  87. package/dist/sst/.sst/platform/src/components/aws/app-sync-resolver.d.ts.map +1 -0
  88. package/dist/sst/.sst/platform/src/components/aws/app-sync.d.ts +638 -0
  89. package/dist/sst/.sst/platform/src/components/aws/app-sync.d.ts.map +1 -0
  90. package/dist/sst/.sst/platform/src/components/aws/astro.d.ts +421 -0
  91. package/dist/sst/.sst/platform/src/components/aws/astro.d.ts.map +1 -0
  92. package/dist/sst/.sst/platform/src/components/aws/aurora.d.ts +702 -0
  93. package/dist/sst/.sst/platform/src/components/aws/aurora.d.ts.map +1 -0
  94. package/dist/sst/.sst/platform/src/components/aws/auth-v1.d.ts +26 -0
  95. package/dist/sst/.sst/platform/src/components/aws/auth-v1.d.ts.map +1 -0
  96. package/dist/sst/.sst/platform/src/components/aws/auth.d.ts +295 -0
  97. package/dist/sst/.sst/platform/src/components/aws/auth.d.ts.map +1 -0
  98. package/dist/sst/.sst/platform/src/components/aws/bucket-lambda-subscriber.d.ts +61 -0
  99. package/dist/sst/.sst/platform/src/components/aws/bucket-lambda-subscriber.d.ts.map +1 -0
  100. package/dist/sst/.sst/platform/src/components/aws/bucket-notification.d.ts +47 -0
  101. package/dist/sst/.sst/platform/src/components/aws/bucket-notification.d.ts.map +1 -0
  102. package/dist/sst/.sst/platform/src/components/aws/bucket-queue-subscriber.d.ts +55 -0
  103. package/dist/sst/.sst/platform/src/components/aws/bucket-queue-subscriber.d.ts.map +1 -0
  104. package/dist/sst/.sst/platform/src/components/aws/bucket-topic-subscriber.d.ts +55 -0
  105. package/dist/sst/.sst/platform/src/components/aws/bucket-topic-subscriber.d.ts.map +1 -0
  106. package/dist/sst/.sst/platform/src/components/aws/bucket.d.ts +1216 -0
  107. package/dist/sst/.sst/platform/src/components/aws/bucket.d.ts.map +1 -0
  108. package/dist/sst/.sst/platform/src/components/aws/bus-base-subscriber.d.ts +20 -0
  109. package/dist/sst/.sst/platform/src/components/aws/bus-base-subscriber.d.ts.map +1 -0
  110. package/dist/sst/.sst/platform/src/components/aws/bus-lambda-subscriber.d.ts +49 -0
  111. package/dist/sst/.sst/platform/src/components/aws/bus-lambda-subscriber.d.ts.map +1 -0
  112. package/dist/sst/.sst/platform/src/components/aws/bus-queue-subscriber.d.ts +44 -0
  113. package/dist/sst/.sst/platform/src/components/aws/bus-queue-subscriber.d.ts.map +1 -0
  114. package/dist/sst/.sst/platform/src/components/aws/bus.d.ts +403 -0
  115. package/dist/sst/.sst/platform/src/components/aws/bus.d.ts.map +1 -0
  116. package/dist/sst/.sst/platform/src/components/aws/cdn.d.ts +299 -0
  117. package/dist/sst/.sst/platform/src/components/aws/cdn.d.ts.map +1 -0
  118. package/dist/sst/.sst/platform/src/components/aws/cluster-v1.d.ts +882 -0
  119. package/dist/sst/.sst/platform/src/components/aws/cluster-v1.d.ts.map +1 -0
  120. package/dist/sst/.sst/platform/src/components/aws/cluster.d.ts +306 -0
  121. package/dist/sst/.sst/platform/src/components/aws/cluster.d.ts.map +1 -0
  122. package/dist/sst/.sst/platform/src/components/aws/cognito-identity-pool.d.ts +194 -0
  123. package/dist/sst/.sst/platform/src/components/aws/cognito-identity-pool.d.ts.map +1 -0
  124. package/dist/sst/.sst/platform/src/components/aws/cognito-identity-provider.d.ts +38 -0
  125. package/dist/sst/.sst/platform/src/components/aws/cognito-identity-provider.d.ts.map +1 -0
  126. package/dist/sst/.sst/platform/src/components/aws/cognito-user-pool-client.d.ts +50 -0
  127. package/dist/sst/.sst/platform/src/components/aws/cognito-user-pool-client.d.ts.map +1 -0
  128. package/dist/sst/.sst/platform/src/components/aws/cognito-user-pool.d.ts +603 -0
  129. package/dist/sst/.sst/platform/src/components/aws/cognito-user-pool.d.ts.map +1 -0
  130. package/dist/sst/.sst/platform/src/components/aws/cron.d.ts +250 -0
  131. package/dist/sst/.sst/platform/src/components/aws/cron.d.ts.map +1 -0
  132. package/dist/sst/.sst/platform/src/components/aws/dns-validated-certificate.d.ts +27 -0
  133. package/dist/sst/.sst/platform/src/components/aws/dns-validated-certificate.d.ts.map +1 -0
  134. package/dist/sst/.sst/platform/src/components/aws/dns.d.ts +94 -0
  135. package/dist/sst/.sst/platform/src/components/aws/dns.d.ts.map +1 -0
  136. package/dist/sst/.sst/platform/src/components/aws/dynamo-lambda-subscriber.d.ts +55 -0
  137. package/dist/sst/.sst/platform/src/components/aws/dynamo-lambda-subscriber.d.ts.map +1 -0
  138. package/dist/sst/.sst/platform/src/components/aws/dynamo.d.ts +568 -0
  139. package/dist/sst/.sst/platform/src/components/aws/dynamo.d.ts.map +1 -0
  140. package/dist/sst/.sst/platform/src/components/aws/efs.d.ts +217 -0
  141. package/dist/sst/.sst/platform/src/components/aws/efs.d.ts.map +1 -0
  142. package/dist/sst/.sst/platform/src/components/aws/email.d.ts +291 -0
  143. package/dist/sst/.sst/platform/src/components/aws/email.d.ts.map +1 -0
  144. package/dist/sst/.sst/platform/src/components/aws/fargate.d.ts +803 -0
  145. package/dist/sst/.sst/platform/src/components/aws/fargate.d.ts.map +1 -0
  146. package/dist/sst/.sst/platform/src/components/aws/function.d.ts +1629 -0
  147. package/dist/sst/.sst/platform/src/components/aws/function.d.ts.map +1 -0
  148. package/dist/sst/.sst/platform/src/components/aws/helpers/apigateway-account.d.ts +3 -0
  149. package/dist/sst/.sst/platform/src/components/aws/helpers/apigateway-account.d.ts.map +1 -0
  150. package/dist/sst/.sst/platform/src/components/aws/helpers/apigatewayv2-domain.d.ts +144 -0
  151. package/dist/sst/.sst/platform/src/components/aws/helpers/apigatewayv2-domain.d.ts.map +1 -0
  152. package/dist/sst/.sst/platform/src/components/aws/helpers/arn.d.ts +40 -0
  153. package/dist/sst/.sst/platform/src/components/aws/helpers/arn.d.ts.map +1 -0
  154. package/dist/sst/.sst/platform/src/components/aws/helpers/bootstrap.d.ts +13 -0
  155. package/dist/sst/.sst/platform/src/components/aws/helpers/bootstrap.d.ts.map +1 -0
  156. package/dist/sst/.sst/platform/src/components/aws/helpers/container-builder.d.ts +4 -0
  157. package/dist/sst/.sst/platform/src/components/aws/helpers/container-builder.d.ts.map +1 -0
  158. package/dist/sst/.sst/platform/src/components/aws/helpers/function-builder.d.ts +10 -0
  159. package/dist/sst/.sst/platform/src/components/aws/helpers/function-builder.d.ts.map +1 -0
  160. package/dist/sst/.sst/platform/src/components/aws/helpers/provider.d.ts +3 -0
  161. package/dist/sst/.sst/platform/src/components/aws/helpers/provider.d.ts.map +1 -0
  162. package/dist/sst/.sst/platform/src/components/aws/helpers/quota.d.ts +7 -0
  163. package/dist/sst/.sst/platform/src/components/aws/helpers/quota.d.ts.map +1 -0
  164. package/dist/sst/.sst/platform/src/components/aws/helpers/site-builder.d.ts +4 -0
  165. package/dist/sst/.sst/platform/src/components/aws/helpers/site-builder.d.ts.map +1 -0
  166. package/dist/sst/.sst/platform/src/components/aws/helpers/subscriber.d.ts +6 -0
  167. package/dist/sst/.sst/platform/src/components/aws/helpers/subscriber.d.ts.map +1 -0
  168. package/dist/sst/.sst/platform/src/components/aws/https-redirect.d.ts +38 -0
  169. package/dist/sst/.sst/platform/src/components/aws/https-redirect.d.ts.map +1 -0
  170. package/dist/sst/.sst/platform/src/components/aws/iam-edit.d.ts +39 -0
  171. package/dist/sst/.sst/platform/src/components/aws/iam-edit.d.ts.map +1 -0
  172. package/dist/sst/.sst/platform/src/components/aws/index.d.ts +48 -0
  173. package/dist/sst/.sst/platform/src/components/aws/index.d.ts.map +1 -0
  174. package/dist/sst/.sst/platform/src/components/aws/kinesis-stream-lambda-subscriber.d.ts +48 -0
  175. package/dist/sst/.sst/platform/src/components/aws/kinesis-stream-lambda-subscriber.d.ts.map +1 -0
  176. package/dist/sst/.sst/platform/src/components/aws/kinesis-stream.d.ts +249 -0
  177. package/dist/sst/.sst/platform/src/components/aws/kinesis-stream.d.ts.map +1 -0
  178. package/dist/sst/.sst/platform/src/components/aws/linkable.d.ts +17 -0
  179. package/dist/sst/.sst/platform/src/components/aws/linkable.d.ts.map +1 -0
  180. package/dist/sst/.sst/platform/src/components/aws/logging.d.ts +26 -0
  181. package/dist/sst/.sst/platform/src/components/aws/logging.d.ts.map +1 -0
  182. package/dist/sst/.sst/platform/src/components/aws/mysql.d.ts +496 -0
  183. package/dist/sst/.sst/platform/src/components/aws/mysql.d.ts.map +1 -0
  184. package/dist/sst/.sst/platform/src/components/aws/nextjs.d.ts +517 -0
  185. package/dist/sst/.sst/platform/src/components/aws/nextjs.d.ts.map +1 -0
  186. package/dist/sst/.sst/platform/src/components/aws/nuxt.d.ts +495 -0
  187. package/dist/sst/.sst/platform/src/components/aws/nuxt.d.ts.map +1 -0
  188. package/dist/sst/.sst/platform/src/components/aws/open-search.d.ts +295 -0
  189. package/dist/sst/.sst/platform/src/components/aws/open-search.d.ts.map +1 -0
  190. package/dist/sst/.sst/platform/src/components/aws/opencontrol.d.ts +165 -0
  191. package/dist/sst/.sst/platform/src/components/aws/opencontrol.d.ts.map +1 -0
  192. package/dist/sst/.sst/platform/src/components/aws/permission.d.ts +40 -0
  193. package/dist/sst/.sst/platform/src/components/aws/permission.d.ts.map +1 -0
  194. package/dist/sst/.sst/platform/src/components/aws/postgres-v1.d.ts +317 -0
  195. package/dist/sst/.sst/platform/src/components/aws/postgres-v1.d.ts.map +1 -0
  196. package/dist/sst/.sst/platform/src/components/aws/postgres.d.ts +500 -0
  197. package/dist/sst/.sst/platform/src/components/aws/postgres.d.ts.map +1 -0
  198. package/dist/sst/.sst/platform/src/components/aws/providers/bucket-files.d.ts +18 -0
  199. package/dist/sst/.sst/platform/src/components/aws/providers/bucket-files.d.ts.map +1 -0
  200. package/dist/sst/.sst/platform/src/components/aws/providers/distribution-deployment-waiter.d.ts +13 -0
  201. package/dist/sst/.sst/platform/src/components/aws/providers/distribution-deployment-waiter.d.ts.map +1 -0
  202. package/dist/sst/.sst/platform/src/components/aws/providers/distribution-invalidation.d.ts +11 -0
  203. package/dist/sst/.sst/platform/src/components/aws/providers/distribution-invalidation.d.ts.map +1 -0
  204. package/dist/sst/.sst/platform/src/components/aws/providers/function-environment-update.d.ts +29 -0
  205. package/dist/sst/.sst/platform/src/components/aws/providers/function-environment-update.d.ts.map +1 -0
  206. package/dist/sst/.sst/platform/src/components/aws/providers/hosted-zone-lookup.d.ts +11 -0
  207. package/dist/sst/.sst/platform/src/components/aws/providers/hosted-zone-lookup.d.ts.map +1 -0
  208. package/dist/sst/.sst/platform/src/components/aws/providers/kv-keys.d.ts +11 -0
  209. package/dist/sst/.sst/platform/src/components/aws/providers/kv-keys.d.ts.map +1 -0
  210. package/dist/sst/.sst/platform/src/components/aws/providers/kv-routes-update.d.ts +11 -0
  211. package/dist/sst/.sst/platform/src/components/aws/providers/kv-routes-update.d.ts.map +1 -0
  212. package/dist/sst/.sst/platform/src/components/aws/providers/origin-access-control.d.ts +8 -0
  213. package/dist/sst/.sst/platform/src/components/aws/providers/origin-access-control.d.ts.map +1 -0
  214. package/dist/sst/.sst/platform/src/components/aws/providers/rds-role-lookup.d.ts +8 -0
  215. package/dist/sst/.sst/platform/src/components/aws/providers/rds-role-lookup.d.ts.map +1 -0
  216. package/dist/sst/.sst/platform/src/components/aws/providers/vector-table.d.ts +12 -0
  217. package/dist/sst/.sst/platform/src/components/aws/providers/vector-table.d.ts.map +1 -0
  218. package/dist/sst/.sst/platform/src/components/aws/queue-lambda-subscriber.d.ts +48 -0
  219. package/dist/sst/.sst/platform/src/components/aws/queue-lambda-subscriber.d.ts.map +1 -0
  220. package/dist/sst/.sst/platform/src/components/aws/queue.d.ts +485 -0
  221. package/dist/sst/.sst/platform/src/components/aws/queue.d.ts.map +1 -0
  222. package/dist/sst/.sst/platform/src/components/aws/react.d.ts +416 -0
  223. package/dist/sst/.sst/platform/src/components/aws/react.d.ts.map +1 -0
  224. package/dist/sst/.sst/platform/src/components/aws/realtime-lambda-subscriber.d.ts +53 -0
  225. package/dist/sst/.sst/platform/src/components/aws/realtime-lambda-subscriber.d.ts.map +1 -0
  226. package/dist/sst/.sst/platform/src/components/aws/realtime.d.ts +232 -0
  227. package/dist/sst/.sst/platform/src/components/aws/realtime.d.ts.map +1 -0
  228. package/dist/sst/.sst/platform/src/components/aws/redis-v1.d.ts +338 -0
  229. package/dist/sst/.sst/platform/src/components/aws/redis-v1.d.ts.map +1 -0
  230. package/dist/sst/.sst/platform/src/components/aws/redis.d.ts +364 -0
  231. package/dist/sst/.sst/platform/src/components/aws/redis.d.ts.map +1 -0
  232. package/dist/sst/.sst/platform/src/components/aws/remix.d.ts +423 -0
  233. package/dist/sst/.sst/platform/src/components/aws/remix.d.ts.map +1 -0
  234. package/dist/sst/.sst/platform/src/components/aws/router-base-route.d.ts +28 -0
  235. package/dist/sst/.sst/platform/src/components/aws/router-base-route.d.ts.map +1 -0
  236. package/dist/sst/.sst/platform/src/components/aws/router-bucket-route.d.ts +29 -0
  237. package/dist/sst/.sst/platform/src/components/aws/router-bucket-route.d.ts.map +1 -0
  238. package/dist/sst/.sst/platform/src/components/aws/router-url-route.d.ts +28 -0
  239. package/dist/sst/.sst/platform/src/components/aws/router-url-route.d.ts.map +1 -0
  240. package/dist/sst/.sst/platform/src/components/aws/router.d.ts +1272 -0
  241. package/dist/sst/.sst/platform/src/components/aws/router.d.ts.map +1 -0
  242. package/dist/sst/.sst/platform/src/components/aws/service-v1.d.ts +78 -0
  243. package/dist/sst/.sst/platform/src/components/aws/service-v1.d.ts.map +1 -0
  244. package/dist/sst/.sst/platform/src/components/aws/service.d.ts +1625 -0
  245. package/dist/sst/.sst/platform/src/components/aws/service.d.ts.map +1 -0
  246. package/dist/sst/.sst/platform/src/components/aws/sns-topic-lambda-subscriber.d.ts +53 -0
  247. package/dist/sst/.sst/platform/src/components/aws/sns-topic-lambda-subscriber.d.ts.map +1 -0
  248. package/dist/sst/.sst/platform/src/components/aws/sns-topic-queue-subscriber.d.ts +55 -0
  249. package/dist/sst/.sst/platform/src/components/aws/sns-topic-queue-subscriber.d.ts.map +1 -0
  250. package/dist/sst/.sst/platform/src/components/aws/sns-topic.d.ts +389 -0
  251. package/dist/sst/.sst/platform/src/components/aws/sns-topic.d.ts.map +1 -0
  252. package/dist/sst/.sst/platform/src/components/aws/solid-start.d.ts +414 -0
  253. package/dist/sst/.sst/platform/src/components/aws/solid-start.d.ts.map +1 -0
  254. package/dist/sst/.sst/platform/src/components/aws/ssr-site.d.ts +685 -0
  255. package/dist/sst/.sst/platform/src/components/aws/ssr-site.d.ts.map +1 -0
  256. package/dist/sst/.sst/platform/src/components/aws/static-site.d.ts +736 -0
  257. package/dist/sst/.sst/platform/src/components/aws/static-site.d.ts.map +1 -0
  258. package/dist/sst/.sst/platform/src/components/aws/step-functions/choice.d.ts +73 -0
  259. package/dist/sst/.sst/platform/src/components/aws/step-functions/choice.d.ts.map +1 -0
  260. package/dist/sst/.sst/platform/src/components/aws/step-functions/fail.d.ts +63 -0
  261. package/dist/sst/.sst/platform/src/components/aws/step-functions/fail.d.ts.map +1 -0
  262. package/dist/sst/.sst/platform/src/components/aws/step-functions/map.d.ts +236 -0
  263. package/dist/sst/.sst/platform/src/components/aws/step-functions/map.d.ts.map +1 -0
  264. package/dist/sst/.sst/platform/src/components/aws/step-functions/parallel.d.ts +127 -0
  265. package/dist/sst/.sst/platform/src/components/aws/step-functions/parallel.d.ts.map +1 -0
  266. package/dist/sst/.sst/platform/src/components/aws/step-functions/pass.d.ts +39 -0
  267. package/dist/sst/.sst/platform/src/components/aws/step-functions/pass.d.ts.map +1 -0
  268. package/dist/sst/.sst/platform/src/components/aws/step-functions/state.d.ts +231 -0
  269. package/dist/sst/.sst/platform/src/components/aws/step-functions/state.d.ts.map +1 -0
  270. package/dist/sst/.sst/platform/src/components/aws/step-functions/succeed.d.ts +26 -0
  271. package/dist/sst/.sst/platform/src/components/aws/step-functions/succeed.d.ts.map +1 -0
  272. package/dist/sst/.sst/platform/src/components/aws/step-functions/task.d.ts +477 -0
  273. package/dist/sst/.sst/platform/src/components/aws/step-functions/task.d.ts.map +1 -0
  274. package/dist/sst/.sst/platform/src/components/aws/step-functions/wait.d.ts +91 -0
  275. package/dist/sst/.sst/platform/src/components/aws/step-functions/wait.d.ts.map +1 -0
  276. package/dist/sst/.sst/platform/src/components/aws/step-functions.d.ts +473 -0
  277. package/dist/sst/.sst/platform/src/components/aws/step-functions.d.ts.map +1 -0
  278. package/dist/sst/.sst/platform/src/components/aws/svelte-kit.d.ts +417 -0
  279. package/dist/sst/.sst/platform/src/components/aws/svelte-kit.d.ts.map +1 -0
  280. package/dist/sst/.sst/platform/src/components/aws/tan-stack-start.d.ts +354 -0
  281. package/dist/sst/.sst/platform/src/components/aws/tan-stack-start.d.ts.map +1 -0
  282. package/dist/sst/.sst/platform/src/components/aws/task.d.ts +322 -0
  283. package/dist/sst/.sst/platform/src/components/aws/task.d.ts.map +1 -0
  284. package/dist/sst/.sst/platform/src/components/aws/vector.d.ts +150 -0
  285. package/dist/sst/.sst/platform/src/components/aws/vector.d.ts.map +1 -0
  286. package/dist/sst/.sst/platform/src/components/aws/vpc-v1.d.ts +208 -0
  287. package/dist/sst/.sst/platform/src/components/aws/vpc-v1.d.ts.map +1 -0
  288. package/dist/sst/.sst/platform/src/components/aws/vpc.d.ts +444 -0
  289. package/dist/sst/.sst/platform/src/components/aws/vpc.d.ts.map +1 -0
  290. package/dist/sst/.sst/platform/src/components/base/base-site.d.ts +53 -0
  291. package/dist/sst/.sst/platform/src/components/base/base-site.d.ts.map +1 -0
  292. package/dist/sst/.sst/platform/src/components/base/base-ssr-site.d.ts +13 -0
  293. package/dist/sst/.sst/platform/src/components/base/base-ssr-site.d.ts.map +1 -0
  294. package/dist/sst/.sst/platform/src/components/base/base-static-site.d.ts +199 -0
  295. package/dist/sst/.sst/platform/src/components/base/base-static-site.d.ts.map +1 -0
  296. package/dist/sst/.sst/platform/src/components/cloudflare/account-id.d.ts +2 -0
  297. package/dist/sst/.sst/platform/src/components/cloudflare/account-id.d.ts.map +1 -0
  298. package/dist/sst/.sst/platform/src/components/cloudflare/auth.d.ts +22 -0
  299. package/dist/sst/.sst/platform/src/components/cloudflare/auth.d.ts.map +1 -0
  300. package/dist/sst/.sst/platform/src/components/cloudflare/binding.d.ts +69 -0
  301. package/dist/sst/.sst/platform/src/components/cloudflare/binding.d.ts.map +1 -0
  302. package/dist/sst/.sst/platform/src/components/cloudflare/bucket.d.ts +103 -0
  303. package/dist/sst/.sst/platform/src/components/cloudflare/bucket.d.ts.map +1 -0
  304. package/dist/sst/.sst/platform/src/components/cloudflare/cron.d.ts +121 -0
  305. package/dist/sst/.sst/platform/src/components/cloudflare/cron.d.ts.map +1 -0
  306. package/dist/sst/.sst/platform/src/components/cloudflare/d1.d.ts +107 -0
  307. package/dist/sst/.sst/platform/src/components/cloudflare/d1.d.ts.map +1 -0
  308. package/dist/sst/.sst/platform/src/components/cloudflare/dns.d.ts +94 -0
  309. package/dist/sst/.sst/platform/src/components/cloudflare/dns.d.ts.map +1 -0
  310. package/dist/sst/.sst/platform/src/components/cloudflare/experimental/astro.d.ts +186 -0
  311. package/dist/sst/.sst/platform/src/components/cloudflare/experimental/astro.d.ts.map +1 -0
  312. package/dist/sst/.sst/platform/src/components/cloudflare/experimental/index.d.ts +4 -0
  313. package/dist/sst/.sst/platform/src/components/cloudflare/experimental/index.d.ts.map +1 -0
  314. package/dist/sst/.sst/platform/src/components/cloudflare/experimental/solid-start.d.ts +171 -0
  315. package/dist/sst/.sst/platform/src/components/cloudflare/experimental/solid-start.d.ts.map +1 -0
  316. package/dist/sst/.sst/platform/src/components/cloudflare/experimental/static-site.d.ts +222 -0
  317. package/dist/sst/.sst/platform/src/components/cloudflare/experimental/static-site.d.ts.map +1 -0
  318. package/dist/sst/.sst/platform/src/components/cloudflare/helpers/fetch.d.ts +19 -0
  319. package/dist/sst/.sst/platform/src/components/cloudflare/helpers/fetch.d.ts.map +1 -0
  320. package/dist/sst/.sst/platform/src/components/cloudflare/helpers/worker-builder.d.ts +10 -0
  321. package/dist/sst/.sst/platform/src/components/cloudflare/helpers/worker-builder.d.ts.map +1 -0
  322. package/dist/sst/.sst/platform/src/components/cloudflare/index.d.ts +16 -0
  323. package/dist/sst/.sst/platform/src/components/cloudflare/index.d.ts.map +1 -0
  324. package/dist/sst/.sst/platform/src/components/cloudflare/kv.d.ts +107 -0
  325. package/dist/sst/.sst/platform/src/components/cloudflare/kv.d.ts.map +1 -0
  326. package/dist/sst/.sst/platform/src/components/cloudflare/providers/dns-record.d.ts +20 -0
  327. package/dist/sst/.sst/platform/src/components/cloudflare/providers/dns-record.d.ts.map +1 -0
  328. package/dist/sst/.sst/platform/src/components/cloudflare/providers/kv-data.d.ts +23 -0
  329. package/dist/sst/.sst/platform/src/components/cloudflare/providers/kv-data.d.ts.map +1 -0
  330. package/dist/sst/.sst/platform/src/components/cloudflare/providers/worker-assets.d.ts +18 -0
  331. package/dist/sst/.sst/platform/src/components/cloudflare/providers/worker-assets.d.ts.map +1 -0
  332. package/dist/sst/.sst/platform/src/components/cloudflare/providers/worker-url.d.ts +22 -0
  333. package/dist/sst/.sst/platform/src/components/cloudflare/providers/worker-url.d.ts.map +1 -0
  334. package/dist/sst/.sst/platform/src/components/cloudflare/providers/zone-lookup.d.ts +22 -0
  335. package/dist/sst/.sst/platform/src/components/cloudflare/providers/zone-lookup.d.ts.map +1 -0
  336. package/dist/sst/.sst/platform/src/components/cloudflare/queue.d.ts +60 -0
  337. package/dist/sst/.sst/platform/src/components/cloudflare/queue.d.ts.map +1 -0
  338. package/dist/sst/.sst/platform/src/components/cloudflare/ssr-site.d.ts +51 -0
  339. package/dist/sst/.sst/platform/src/components/cloudflare/ssr-site.d.ts.map +1 -0
  340. package/dist/sst/.sst/platform/src/components/cloudflare/static-site.d.ts +262 -0
  341. package/dist/sst/.sst/platform/src/components/cloudflare/static-site.d.ts.map +1 -0
  342. package/dist/sst/.sst/platform/src/components/cloudflare/worker.d.ts +295 -0
  343. package/dist/sst/.sst/platform/src/components/cloudflare/worker.d.ts.map +1 -0
  344. package/dist/sst/.sst/platform/src/components/component.d.ts +37 -0
  345. package/dist/sst/.sst/platform/src/components/component.d.ts.map +1 -0
  346. package/dist/sst/.sst/platform/src/components/cpu.d.ts +3 -0
  347. package/dist/sst/.sst/platform/src/components/cpu.d.ts.map +1 -0
  348. package/dist/sst/.sst/platform/src/components/dns.d.ts +59 -0
  349. package/dist/sst/.sst/platform/src/components/dns.d.ts.map +1 -0
  350. package/dist/sst/.sst/platform/src/components/duration.d.ts +7 -0
  351. package/dist/sst/.sst/platform/src/components/duration.d.ts.map +1 -0
  352. package/dist/sst/.sst/platform/src/components/error.d.ts +4 -0
  353. package/dist/sst/.sst/platform/src/components/error.d.ts.map +1 -0
  354. package/dist/sst/.sst/platform/src/components/experimental/dev-command.d.ts +99 -0
  355. package/dist/sst/.sst/platform/src/components/experimental/dev-command.d.ts.map +1 -0
  356. package/dist/sst/.sst/platform/src/components/experimental/index.d.ts +2 -0
  357. package/dist/sst/.sst/platform/src/components/experimental/index.d.ts.map +1 -0
  358. package/dist/sst/.sst/platform/src/components/index.d.ts +16 -0
  359. package/dist/sst/.sst/platform/src/components/index.d.ts.map +1 -0
  360. package/dist/sst/.sst/platform/src/components/input.d.ts +3 -0
  361. package/dist/sst/.sst/platform/src/components/input.d.ts.map +1 -0
  362. package/dist/sst/.sst/platform/src/components/link.d.ts +41 -0
  363. package/dist/sst/.sst/platform/src/components/link.d.ts.map +1 -0
  364. package/dist/sst/.sst/platform/src/components/linkable.d.ts +271 -0
  365. package/dist/sst/.sst/platform/src/components/linkable.d.ts.map +1 -0
  366. package/dist/sst/.sst/platform/src/components/naming.d.ts +7 -0
  367. package/dist/sst/.sst/platform/src/components/naming.d.ts.map +1 -0
  368. package/dist/sst/.sst/platform/src/components/path.d.ts +2 -0
  369. package/dist/sst/.sst/platform/src/components/path.d.ts.map +1 -0
  370. package/dist/sst/.sst/platform/src/components/rpc/rpc.d.ts +19 -0
  371. package/dist/sst/.sst/platform/src/components/rpc/rpc.d.ts.map +1 -0
  372. package/dist/sst/.sst/platform/src/components/secret.d.ts +125 -0
  373. package/dist/sst/.sst/platform/src/components/secret.d.ts.map +1 -0
  374. package/dist/sst/.sst/platform/src/components/size.d.ts +5 -0
  375. package/dist/sst/.sst/platform/src/components/size.d.ts.map +1 -0
  376. package/dist/sst/.sst/platform/src/components/vercel/account-id.d.ts +2 -0
  377. package/dist/sst/.sst/platform/src/components/vercel/account-id.d.ts.map +1 -0
  378. package/dist/sst/.sst/platform/src/components/vercel/dns.d.ts +73 -0
  379. package/dist/sst/.sst/platform/src/components/vercel/dns.d.ts.map +1 -0
  380. package/dist/sst/.sst/platform/src/components/vercel/index.d.ts +3 -0
  381. package/dist/sst/.sst/platform/src/components/vercel/index.d.ts.map +1 -0
  382. package/dist/sst/.sst/platform/src/components/vercel/providers/dns-record.d.ts +14 -0
  383. package/dist/sst/.sst/platform/src/components/vercel/providers/dns-record.d.ts.map +1 -0
  384. package/dist/sst/.sst/platform/src/config.d.ts +1258 -0
  385. package/dist/sst/.sst/platform/src/config.d.ts.map +1 -0
  386. package/dist/sst/.sst/platform/src/util/compare-semver.d.ts +4 -0
  387. package/dist/sst/.sst/platform/src/util/compare-semver.d.ts.map +1 -0
  388. package/dist/sst/.sst/platform/src/util/fs.d.ts +5 -0
  389. package/dist/sst/.sst/platform/src/util/fs.d.ts.map +1 -0
  390. package/dist/sst/.sst/platform/src/util/lazy.d.ts +2 -0
  391. package/dist/sst/.sst/platform/src/util/lazy.d.ts.map +1 -0
  392. package/dist/sst/.sst/platform/src/util/semaphore.d.ts +9 -0
  393. package/dist/sst/.sst/platform/src/util/semaphore.d.ts.map +1 -0
  394. package/dist/sst/.sst/platform/src/util/warn.d.ts +2 -0
  395. package/dist/sst/.sst/platform/src/util/warn.d.ts.map +1 -0
  396. package/dist/sst/components/dashboard.d.ts +2 -0
  397. package/dist/sst/components/dashboard.d.ts.map +1 -0
  398. package/dist/sst/components/monorise-core.d.ts +18 -0
  399. package/dist/sst/components/monorise-core.d.ts.map +1 -0
  400. package/dist/sst/components/q-function.d.ts +17 -0
  401. package/dist/sst/components/q-function.d.ts.map +1 -0
  402. package/dist/sst/components/single-table.d.ts +14 -0
  403. package/dist/sst/components/single-table.d.ts.map +1 -0
  404. package/dist/sst/constants/event.d.ts +73 -0
  405. package/dist/sst/constants/event.d.ts.map +1 -0
  406. package/dist/sst/constants/table.d.ts +3 -0
  407. package/dist/sst/constants/table.d.ts.map +1 -0
  408. package/dist/sst/index.d.ts +11 -0
  409. package/dist/sst/index.d.ts.map +1 -0
  410. package/dist/sst/index.js +609 -0
  411. package/dist/sst/index.js.map +1 -0
  412. package/dist/sst/sst.config.d.ts +3 -0
  413. package/dist/sst/sst.config.d.ts.map +1 -0
  414. package/dist/sst/tsup.config.d.ts +3 -0
  415. package/dist/sst/tsup.config.d.ts.map +1 -0
  416. package/package.json +83 -0
@@ -0,0 +1,603 @@
1
+ import { ComponentResourceOptions, Output } from "@pulumi/pulumi";
2
+ import { Component, Prettify, Transform } from "../component";
3
+ import { Input } from "../input";
4
+ import { Link } from "../link";
5
+ import { CognitoIdentityProvider } from "./cognito-identity-provider";
6
+ import { CognitoUserPoolClient } from "./cognito-user-pool-client";
7
+ import { FunctionArgs, FunctionArn } from "./function.js";
8
+ import { cognito } from "@pulumi/aws";
9
+ interface Triggers {
10
+ /**
11
+ * The ARN of the AWS KMS key used for encryption.
12
+ *
13
+ * When `customEmailSender` or `customSmsSender` are configured, Cognito encrypts the
14
+ * verification code and temporary passwords before sending them to your Lambda functions.
15
+ */
16
+ kmsKey?: Input<string>;
17
+ /**
18
+ * Triggered after the user successfully responds to the previous challenge, and a new
19
+ * challenge needs to be created.
20
+ *
21
+ * Takes the handler path, the function args, or a function ARN.
22
+ */
23
+ createAuthChallenge?: Input<string | FunctionArgs | FunctionArn>;
24
+ /**
25
+ * Triggered during events like user sign-up, password recovery, email/phone number
26
+ * verification, and when an admin creates a user. Use this trigger to customize the
27
+ * email provider.
28
+ *
29
+ * Takes the handler path, the function args, or a function ARN.
30
+ */
31
+ customEmailSender?: Input<string | FunctionArgs | FunctionArn>;
32
+ /**
33
+ * Triggered during events like user sign-up, password recovery, email/phone number
34
+ * verification, and when an admin creates a user. Use this trigger to customize the
35
+ * message that is sent to your users.
36
+ *
37
+ * Takes the handler path, the function args, or a function ARN.
38
+ */
39
+ customMessage?: Input<string | FunctionArgs | FunctionArn>;
40
+ /**
41
+ * Triggered when an SMS message needs to be sent, such as for MFA or verification codes.
42
+ * Use this trigger to customize the SMS provider.
43
+ *
44
+ * Takes the handler path, the function args, or a function ARN.
45
+ */
46
+ customSmsSender?: Input<string | FunctionArgs | FunctionArn>;
47
+ /**
48
+ * Triggered after each challenge response to determine the next action. Evaluates whether the
49
+ * user has completed the authentication process or if additional challenges are needed.
50
+ * ARN of the lambda function to name a custom challenge.
51
+ *
52
+ * Takes the handler path, the function args, or a function ARN.
53
+ */
54
+ defineAuthChallenge?: Input<string | FunctionArgs | FunctionArn>;
55
+ /**
56
+ * Triggered after a successful authentication event. Use this to perform custom actions,
57
+ * such as logging or modifying user attributes, after the user is authenticated.
58
+ *
59
+ * Takes the handler path, the function args, or a function ARN.
60
+ */
61
+ postAuthentication?: Input<string | FunctionArgs | FunctionArn>;
62
+ /**
63
+ * Triggered after a user is successfully confirmed; sign-up or email/phone number
64
+ * verification. Use this to perform additional actions, like sending a welcome email or
65
+ * initializing user data, after user confirmation.
66
+ *
67
+ * Takes the handler path, the function args, or a function ARN.
68
+ */
69
+ postConfirmation?: Input<string | FunctionArgs | FunctionArn>;
70
+ /**
71
+ * Triggered before the authentication process begins. Use this to implement custom
72
+ * validation or checks (like checking if the user is banned) before continuing
73
+ * authentication.
74
+ *
75
+ * Takes the handler path, the function args, or a function ARN.
76
+ */
77
+ preAuthentication?: Input<string | FunctionArgs | FunctionArn>;
78
+ /**
79
+ * Triggered before the user sign-up process completes. Use this to perform custom
80
+ * validation, auto-confirm users, or auto-verify attributes based on custom logic.
81
+ *
82
+ * Takes the handler path, the function args, or a function ARN.
83
+ */
84
+ preSignUp?: Input<string | FunctionArgs | FunctionArn>;
85
+ /**
86
+ * Triggered before tokens are generated in the authentication process. Use this to
87
+ * customize or add claims to the tokens that will be generated and returned to the user.
88
+ *
89
+ * Takes the handler path, the function args, or a function ARN.
90
+ */
91
+ preTokenGeneration?: Input<string | FunctionArgs | FunctionArn>;
92
+ /**
93
+ * The version of the preTokenGeneration trigger to use. Higher versions have access to
94
+ * more information that support new features.
95
+ * @default `"v1"`
96
+ */
97
+ preTokenGenerationVersion?: "v1" | "v2";
98
+ /**
99
+ * Triggered when a user attempts to sign in but does not exist in the current user pool.
100
+ * Use this to import and validate users from an existing user directory into the
101
+ * Cognito User Pool during sign-in.
102
+ *
103
+ * Takes the handler path, the function args, or a function ARN.
104
+ */
105
+ userMigration?: Input<string | FunctionArgs | FunctionArn>;
106
+ /**
107
+ * Triggered after the user responds to a custom authentication challenge. Use this to
108
+ * verify the user's response to the challenge and determine whether to continue
109
+ * authenticating the user.
110
+ *
111
+ * Takes the handler path, the function args, or a function ARN.
112
+ */
113
+ verifyAuthChallengeResponse?: Input<string | FunctionArgs | FunctionArn>;
114
+ }
115
+ export interface CognitoUserPoolArgs {
116
+ /**
117
+ * Configure the different ways a user can sign in besides using their username.
118
+ *
119
+ * :::note
120
+ * You cannot change the aliases property once the User Pool has been created.
121
+ * Learn more about [aliases](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-settings-attributes.html#user-pool-settings-aliases).
122
+ * :::
123
+ *
124
+ * @default User can only sign in with their username.
125
+ * @example
126
+ *
127
+ * ```ts
128
+ * {
129
+ * aliases: ["email"]
130
+ * }
131
+ * ```
132
+ */
133
+ aliases?: Input<Input<"email" | "phone" | "preferred_username">[]>;
134
+ /**
135
+ * Allow users to be able to sign up and sign in with an email addresses or phone number
136
+ * as their username.
137
+ *
138
+ * :::note
139
+ * You cannot change the usernames property once the User Pool has been created.
140
+ * Learn more about [aliases](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-settings-attributes.html#user-pool-settings-aliases).
141
+ * :::
142
+ *
143
+ * @default User can only sign in with their username.
144
+ * @example
145
+ *
146
+ * ```ts
147
+ * {
148
+ * usernames: ["email"]
149
+ * }
150
+ * ```
151
+ */
152
+ usernames?: Input<Input<"email" | "phone">[]>;
153
+ /**
154
+ * Enable advanced security features.
155
+ *
156
+ * Learn more about [advanced security](https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pool-settings-advanced-security.html).
157
+ *
158
+ * @default Advanced security is disabled.
159
+ * @example
160
+ *
161
+ * ```ts
162
+ * {
163
+ * advancedSecurity: "enforced"
164
+ * }
165
+ * ```
166
+ */
167
+ advancedSecurity?: Input<"audit" | "enforced">;
168
+ /**
169
+ * Configure the multi-factor authentication (MFA) settings for the User Pool.
170
+ *
171
+ * If you enable MFA using `on` or `optional`, you need to configure either `sms` or
172
+ * `softwareToken` as well.
173
+ *
174
+ * @default MFA is disabled.
175
+ * @example
176
+ *
177
+ * ```ts
178
+ * {
179
+ * mfa: "on"
180
+ * }
181
+ * ```
182
+ */
183
+ mfa?: Input<"on" | "optional">;
184
+ /**
185
+ * Configure the SMS settings for the User Pool.
186
+ *
187
+ * @default No SMS settings.
188
+ * @example
189
+ *
190
+ * ```ts
191
+ * {
192
+ * sms: {
193
+ * externalId: "1234567890",
194
+ * snsCallerArn: "arn:aws:iam::1234567890:role/CognitoSnsCaller",
195
+ * snsRegion: "us-east-1",
196
+ * }
197
+ * }
198
+ * ```
199
+ */
200
+ sms?: Input<{
201
+ /**
202
+ * The external ID used in IAM role trust relationships.
203
+ *
204
+ * Learn more about [external IDs](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_common-scenarios_third-party.html).
205
+ */
206
+ externalId: Input<string>;
207
+ /**
208
+ * The ARN of the IAM role that Amazon Cognito can assume to access the Amazon SNS
209
+ *
210
+ */
211
+ snsCallerArn: Input<string>;
212
+ /**
213
+ * The AWS Region that Amazon Cognito uses to send SMS messages.
214
+ */
215
+ snsRegion?: Input<string>;
216
+ }>;
217
+ /**
218
+ * The message template for SMS messages sent to users who are being authenticated.
219
+ *
220
+ * The template must include the `{####}` placeholder, which will be replaced with the
221
+ * verification code.
222
+ *
223
+ * @default The default message template.
224
+ * @example
225
+ *
226
+ * ```ts
227
+ * {
228
+ * smsAuthenticationMessage: "Your authentication code is {####}"
229
+ * }
230
+ * ```
231
+ */
232
+ smsAuthenticationMessage?: Input<string>;
233
+ /**
234
+ * Configure the verification message sent to users who are being authenticated.
235
+ */
236
+ verify?: Input<{
237
+ /**
238
+ * Subject line for Email messages sent to users who are being authenticated.
239
+ *
240
+ * @default `"Verify your new account"`
241
+ * @example
242
+ *
243
+ * ```ts
244
+ * {
245
+ * verify: {
246
+ * emailSubject: "Verify your new Awesome account"
247
+ * }
248
+ * }
249
+ * ```
250
+ */
251
+ emailSubject?: Input<string>;
252
+ /**
253
+ * The template for email messages sent to users who are being authenticated.
254
+ *
255
+ * The template must include the `{####}` placeholder, which will be replaced with the
256
+ * verification code.
257
+ *
258
+ * @default `"The verification code to your new account is {####}"`
259
+ * @example
260
+ *
261
+ * ```ts
262
+ * {
263
+ * verify: {
264
+ * emailMessage: "The verification code to your new Awesome account is {####}"
265
+ * }
266
+ * }
267
+ * ```
268
+ */
269
+ emailMessage?: Input<string>;
270
+ /**
271
+ * The template for SMS messages sent to users who are being authenticated.
272
+ *
273
+ * The template must include the `{####}` placeholder, which will be replaced with the
274
+ * verification code.
275
+ *
276
+ * @default `"The verification code to your new account is {####}"`
277
+ * @example
278
+ *
279
+ * ```ts
280
+ * {
281
+ * verify: {
282
+ * smsMessage: "The verification code to your new Awesome account is {####}"
283
+ * }
284
+ * }
285
+ * ```
286
+ */
287
+ smsMessage?: Input<string>;
288
+ }>;
289
+ /**
290
+ * Enable software token MFA for the User Pool.
291
+ *
292
+ * @default `false`
293
+ * @example
294
+ *
295
+ * ```ts
296
+ * {
297
+ * softwareToken: true
298
+ * }
299
+ * ```
300
+ */
301
+ softwareToken?: Input<boolean>;
302
+ /**
303
+ * Configure triggers for this User Pool
304
+ * @default No triggers
305
+ * @example
306
+ *
307
+ * ```js
308
+ * {
309
+ * triggers: {
310
+ * preAuthentication: "src/preAuthentication.handler",
311
+ * postAuthentication: "src/postAuthentication.handler"
312
+ * }
313
+ * }
314
+ * ```
315
+ */
316
+ triggers?: Input<Prettify<Triggers>>;
317
+ /**
318
+ * [Transform](/docs/components#transform) how this component creates its underlying
319
+ * resources.
320
+ */
321
+ transform?: {
322
+ /**
323
+ * Transform the Cognito User Pool resource.
324
+ */
325
+ userPool?: Transform<cognito.UserPoolArgs>;
326
+ };
327
+ }
328
+ export interface CognitoIdentityProviderArgs {
329
+ /**
330
+ * The type of identity provider.
331
+ */
332
+ type: Input<"oidc" | "saml" | "google" | "facebook" | "apple" | "amazon">;
333
+ /**
334
+ * Configure the identity provider details, including the scopes, URLs, and identifiers.
335
+ *
336
+ * ```ts
337
+ * {
338
+ * authorize_scopes: "email profile",
339
+ * client_id: "your-client-id",
340
+ * client_secret: "your-client-secret"
341
+ * }
342
+ * ```
343
+ */
344
+ details: Input<Record<string, Input<string>>>;
345
+ /**
346
+ * Define a mapping between identity provider attributes and user pool attributes.
347
+ *
348
+ * ```ts
349
+ * {
350
+ * email: "email",
351
+ * username: "sub"
352
+ * }
353
+ * ```
354
+ */
355
+ attributes?: Input<Record<string, Input<string>>>;
356
+ /**
357
+ * [Transform](/docs/components#transform) how this component creates its underlying
358
+ * resources.
359
+ */
360
+ transform?: {
361
+ /**
362
+ * Transform the Cognito identity provider resource.
363
+ */
364
+ identityProvider?: Transform<cognito.IdentityProviderArgs>;
365
+ };
366
+ }
367
+ export interface CognitoUserPoolClientArgs {
368
+ /**
369
+ * A list of identity providers that are supported for this client.
370
+ * @default `["COGNITO"]`
371
+ * @example
372
+ *
373
+ * :::tip
374
+ * Reference federated identity providers using their `providerName` property.
375
+ * :::
376
+ *
377
+ * If you are using a federated identity provider.
378
+ *
379
+ * ```js title="sst.config.ts"
380
+ * const provider = userPool.addIdentityProvider("MyProvider", {
381
+ * type: "oidc",
382
+ * details: {
383
+ * authorize_scopes: "email profile",
384
+ * client_id: "your-client-id",
385
+ * client_secret: "your-client-secret"
386
+ * },
387
+ * });
388
+ * ```
389
+ *
390
+ * Make sure to pass in `provider.providerName` instead of hardcoding it to `"MyProvider"`.
391
+ *
392
+ * ```ts title="sst.config.ts" {2}
393
+ * userPool.addClient("Web", {
394
+ * providers: [provider.providerName]
395
+ * });
396
+ * ```
397
+ *
398
+ * This ensures the client is created after the provider.
399
+ */
400
+ providers?: Input<Input<string>[]>;
401
+ /**
402
+ * List of allowed callback URLs for the identity providers.
403
+ */
404
+ callbackUrls?: Input<Input<string>[]>;
405
+ /**
406
+ * [Transform](/docs/components#transform) how this component creates its underlying
407
+ * resources.
408
+ */
409
+ transform?: {
410
+ /**
411
+ * Transform the Cognito User Pool client resource.
412
+ */
413
+ client?: Transform<cognito.UserPoolClientArgs>;
414
+ };
415
+ }
416
+ /**
417
+ * The `CognitoUserPool` component lets you add a [Amazon Cognito User Pool](https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools.html) to your app.
418
+ *
419
+ * #### Create the user pool
420
+ *
421
+ * ```ts title="sst.config.ts"
422
+ * const userPool = new sst.aws.CognitoUserPool("MyUserPool");
423
+ * ```
424
+ *
425
+ * #### Login using email
426
+ *
427
+ * ```ts title="sst.config.ts"
428
+ * new sst.aws.CognitoUserPool("MyUserPool", {
429
+ * usernames: ["email"]
430
+ * });
431
+ * ```
432
+ *
433
+ * #### Configure triggers
434
+ *
435
+ * ```ts title="sst.config.ts"
436
+ * new sst.aws.CognitoUserPool("MyUserPool", {
437
+ * triggers: {
438
+ * preAuthentication: "src/preAuthentication.handler",
439
+ * postAuthentication: "src/postAuthentication.handler",
440
+ * },
441
+ * });
442
+ * ```
443
+ *
444
+ * #### Add Google identity provider
445
+ *
446
+ * ```ts title="sst.config.ts"
447
+ * const GoogleClientId = new sst.Secret("GOOGLE_CLIENT_ID");
448
+ * const GoogleClientSecret = new sst.Secret("GOOGLE_CLIENT_SECRET");
449
+ *
450
+ * userPool.addIdentityProvider({
451
+ * type: "google",
452
+ * details: {
453
+ * authorize_scopes: "email profile",
454
+ * client_id: GoogleClientId.value,
455
+ * client_secret: GoogleClientSecret.value,
456
+ * },
457
+ * attributes: {
458
+ * email: "email",
459
+ * name: "name",
460
+ * username: "sub",
461
+ * },
462
+ * });
463
+ * ```
464
+ *
465
+ * #### Add a client
466
+ *
467
+ * ```ts title="sst.config.ts"
468
+ * userPool.addClient("Web");
469
+ * ```
470
+ */
471
+ export declare class CognitoUserPool extends Component implements Link.Linkable {
472
+ private constructorOpts;
473
+ private userPool;
474
+ constructor(name: string, args?: CognitoUserPoolArgs, opts?: ComponentResourceOptions);
475
+ /**
476
+ * The Cognito User Pool ID.
477
+ */
478
+ get id(): Output<string>;
479
+ /**
480
+ * The Cognito User Pool ARN.
481
+ */
482
+ get arn(): Output<string>;
483
+ /**
484
+ * The underlying [resources](/docs/components/#nodes) this component creates.
485
+ */
486
+ get nodes(): {
487
+ /**
488
+ * The Amazon Cognito User Pool.
489
+ */
490
+ userPool: Output<import("@pulumi/aws/cognito/userPool").UserPool>;
491
+ };
492
+ /**
493
+ * Add a client to the User Pool.
494
+ *
495
+ * @param name Name of the client.
496
+ * @param args Configure the client.
497
+ * @param opts? Resource options.
498
+ *
499
+ * @example
500
+ *
501
+ * ```ts
502
+ * userPool.addClient("Web");
503
+ * ```
504
+ */
505
+ addClient(name: string, args?: CognitoUserPoolClientArgs): CognitoUserPoolClient;
506
+ /**
507
+ * Add a federated identity provider to the User Pool.
508
+ *
509
+ * @param name Name of the identity provider.
510
+ * @param args Configure the identity provider.
511
+ *
512
+ * @example
513
+ *
514
+ * For example, add a GitHub (OIDC) identity provider.
515
+ *
516
+ * ```ts title="sst.config.ts"
517
+ * const GithubClientId = new sst.Secret("GITHUB_CLIENT_ID");
518
+ * const GithubClientSecret = new sst.Secret("GITHUB_CLIENT_SECRET");
519
+ *
520
+ * userPool.addIdentityProvider("GitHub", {
521
+ * type: "oidc",
522
+ * details: {
523
+ * authorize_scopes: "read:user user:email",
524
+ * client_id: GithubClientId.value,
525
+ * client_secret: GithubClientSecret.value,
526
+ * oidc_issuer: "https://github.com/",
527
+ * },
528
+ * attributes: {
529
+ * email: "email",
530
+ * username: "sub",
531
+ * },
532
+ * });
533
+ * ```
534
+ *
535
+ * Or add a Google identity provider.
536
+ *
537
+ * ```ts title="sst.config.ts"
538
+ * const GoogleClientId = new sst.Secret("GOOGLE_CLIENT_ID");
539
+ * const GoogleClientSecret = new sst.Secret("GOOGLE_CLIENT_SECRET");
540
+ *
541
+ * userPool.addIdentityProvider("Google", {
542
+ * type: "google",
543
+ * details: {
544
+ * authorize_scopes: "email profile",
545
+ * client_id: GoogleClientId.value,
546
+ * client_secret: GoogleClientSecret.value,
547
+ * },
548
+ * attributes: {
549
+ * email: "email",
550
+ * name: "name",
551
+ * username: "sub",
552
+ * },
553
+ * });
554
+ * ```
555
+ */
556
+ addIdentityProvider(name: string, args: CognitoIdentityProviderArgs): CognitoIdentityProvider;
557
+ /** @internal */
558
+ getSSTLink(): {
559
+ properties: {
560
+ id: Output<string>;
561
+ };
562
+ include: {
563
+ effect?: "allow" | "deny" | undefined;
564
+ actions: string[];
565
+ resources: Input<Input<string>[]>;
566
+ type: "aws.permission";
567
+ }[];
568
+ };
569
+ /**
570
+ * Reference an existing User Pool with the given ID. This is useful when you
571
+ * create a User Pool in one stage and want to share it in another. It avoids having to
572
+ * create a new User Pool in the other stage.
573
+ *
574
+ * :::tip
575
+ * You can use the `static get` method to share User Pools across stages.
576
+ * :::
577
+ *
578
+ * @param name The name of the component.
579
+ * @param userPoolID The ID of the existing User Pool.
580
+ *
581
+ * @example
582
+ * Imagine you create a User Pool in the `dev` stage. And in your personal stage `frank`,
583
+ * instead of creating a new pool, you want to share the same pool from `dev`.
584
+ *
585
+ * ```ts title="sst.config.ts"
586
+ * const userPool = $app.stage === "frank"
587
+ * ? sst.aws.CognitoUserPool.get("MyUserPool", "us-east-1_gcF5PjhQK")
588
+ * : new sst.aws.CognitoUserPool("MyUserPool");
589
+ * ```
590
+ *
591
+ * Here `us-east-1_gcF5PjhQK` is the ID of the User Pool created in the `dev` stage.
592
+ * You can find this by outputting the User Pool ID in the `dev` stage.
593
+ *
594
+ * ```ts title="sst.config.ts"
595
+ * return {
596
+ * userPool: userPool.id
597
+ * };
598
+ * ```
599
+ */
600
+ static get(name: string, userPoolID: Input<string>, opts?: ComponentResourceOptions): CognitoUserPool;
601
+ }
602
+ export {};
603
+ //# sourceMappingURL=cognito-user-pool.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cognito-user-pool.d.ts","sourceRoot":"","sources":["../../../../../../.sst/platform/src/components/aws/cognito-user-pool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,EAAe,MAAM,gBAAgB,CAAC;AAC/E,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS,EAAa,MAAM,cAAc,CAAC;AACzE,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAC/B,OAAO,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AACtE,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAY,YAAY,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAEpE,OAAO,EAAE,OAAO,EAAU,MAAM,aAAa,CAAC;AAI9C,UAAU,QAAQ;IAChB;;;;;OAKG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACvB;;;;;OAKG;IACH,mBAAmB,CAAC,EAAE,KAAK,CAAC,MAAM,GAAG,YAAY,GAAG,WAAW,CAAC,CAAC;IACjE;;;;;;OAMG;IACH,iBAAiB,CAAC,EAAE,KAAK,CAAC,MAAM,GAAG,YAAY,GAAG,WAAW,CAAC,CAAC;IAC/D;;;;;;OAMG;IACH,aAAa,CAAC,EAAE,KAAK,CAAC,MAAM,GAAG,YAAY,GAAG,WAAW,CAAC,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