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.
- package/dist/base/index.d.ts +254 -0
- package/dist/base/index.js +44 -0
- package/dist/base/index.js.map +1 -0
- package/dist/cli/cli.d.ts +1 -0
- package/dist/cli/cli.js +461 -0
- package/dist/cli/cli.js.map +1 -0
- package/dist/core/index.d.ts +4767 -0
- package/dist/core/index.js +7941 -0
- package/dist/core/index.js.map +1 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.js +11 -0
- package/dist/react/actions/app.action.d.ts +46 -0
- package/dist/react/actions/app.action.d.ts.map +1 -0
- package/dist/react/actions/auth.action.d.ts +24 -0
- package/dist/react/actions/auth.action.d.ts.map +1 -0
- package/dist/react/actions/config.action.d.ts +10 -0
- package/dist/react/actions/config.action.d.ts.map +1 -0
- package/dist/react/actions/core.action.d.ts +219 -0
- package/dist/react/actions/core.action.d.ts.map +1 -0
- package/dist/react/index.d.ts +1093 -0
- package/dist/react/index.d.ts.map +1 -0
- package/dist/react/index.js +2344 -0
- package/dist/react/index.js.map +1 -0
- package/dist/react/lib/api.d.ts +38 -0
- package/dist/react/lib/api.d.ts.map +1 -0
- package/dist/react/lib/constant.d.ts +2 -0
- package/dist/react/lib/constant.d.ts.map +1 -0
- package/dist/react/lib/entity.d.ts +10 -0
- package/dist/react/lib/entity.d.ts.map +1 -0
- package/dist/react/lib/utils.d.ts +10 -0
- package/dist/react/lib/utils.d.ts.map +1 -0
- package/dist/react/services/auth.service.d.ts +21 -0
- package/dist/react/services/auth.service.d.ts.map +1 -0
- package/dist/react/services/core.service.d.ts +76 -0
- package/dist/react/services/core.service.d.ts.map +1 -0
- package/dist/react/services/filestore.service.d.ts +22 -0
- package/dist/react/services/filestore.service.d.ts.map +1 -0
- package/dist/react/store/monorise.store.d.ts +169 -0
- package/dist/react/store/monorise.store.d.ts.map +1 -0
- package/dist/react/tsup.config.d.ts +3 -0
- package/dist/react/tsup.config.d.ts.map +1 -0
- package/dist/react/types/api.type.d.ts +30 -0
- package/dist/react/types/api.type.d.ts.map +1 -0
- package/dist/react/types/axios.type.d.ts +13 -0
- package/dist/react/types/axios.type.d.ts.map +1 -0
- package/dist/react/types/monorise.type.d.ts +8 -0
- package/dist/react/types/monorise.type.d.ts.map +1 -0
- package/dist/react/types/mutual.type.d.ts +21 -0
- package/dist/react/types/mutual.type.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/analog.d.ts +423 -0
- package/dist/sst/.sst/platform/src/components/aws/analog.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/apigateway-websocket-route.d.ts +74 -0
- package/dist/sst/.sst/platform/src/components/aws/apigateway-websocket-route.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/apigateway-websocket.d.ts +542 -0
- package/dist/sst/.sst/platform/src/components/aws/apigateway-websocket.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv1-api-key.d.ts +48 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv1-api-key.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv1-authorizer.d.ts +55 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv1-authorizer.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv1-base-route.d.ts +36 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv1-base-route.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv1-integration-route.d.ts +39 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv1-integration-route.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv1-lambda-route.d.ts +53 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv1-lambda-route.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv1-usage-plan.d.ts +53 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv1-usage-plan.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv1.d.ts +1002 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv1.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv2-authorizer.d.ts +54 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv2-authorizer.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv2-base-route.d.ts +28 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv2-base-route.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv2-lambda-route.d.ts +59 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv2-lambda-route.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv2-private-route.d.ts +54 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv2-private-route.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv2-url-route.d.ts +44 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv2-url-route.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv2.d.ts +931 -0
- package/dist/sst/.sst/platform/src/components/aws/apigatewayv2.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/app-sync-data-source.d.ts +52 -0
- package/dist/sst/.sst/platform/src/components/aws/app-sync-data-source.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/app-sync-function.d.ts +33 -0
- package/dist/sst/.sst/platform/src/components/aws/app-sync-function.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/app-sync-resolver.d.ts +41 -0
- package/dist/sst/.sst/platform/src/components/aws/app-sync-resolver.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/app-sync.d.ts +638 -0
- package/dist/sst/.sst/platform/src/components/aws/app-sync.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/astro.d.ts +421 -0
- package/dist/sst/.sst/platform/src/components/aws/astro.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/aurora.d.ts +702 -0
- package/dist/sst/.sst/platform/src/components/aws/aurora.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/auth-v1.d.ts +26 -0
- package/dist/sst/.sst/platform/src/components/aws/auth-v1.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/auth.d.ts +295 -0
- package/dist/sst/.sst/platform/src/components/aws/auth.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/bucket-lambda-subscriber.d.ts +61 -0
- package/dist/sst/.sst/platform/src/components/aws/bucket-lambda-subscriber.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/bucket-notification.d.ts +47 -0
- package/dist/sst/.sst/platform/src/components/aws/bucket-notification.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/bucket-queue-subscriber.d.ts +55 -0
- package/dist/sst/.sst/platform/src/components/aws/bucket-queue-subscriber.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/bucket-topic-subscriber.d.ts +55 -0
- package/dist/sst/.sst/platform/src/components/aws/bucket-topic-subscriber.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/bucket.d.ts +1216 -0
- package/dist/sst/.sst/platform/src/components/aws/bucket.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/bus-base-subscriber.d.ts +20 -0
- package/dist/sst/.sst/platform/src/components/aws/bus-base-subscriber.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/bus-lambda-subscriber.d.ts +49 -0
- package/dist/sst/.sst/platform/src/components/aws/bus-lambda-subscriber.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/bus-queue-subscriber.d.ts +44 -0
- package/dist/sst/.sst/platform/src/components/aws/bus-queue-subscriber.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/bus.d.ts +403 -0
- package/dist/sst/.sst/platform/src/components/aws/bus.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/cdn.d.ts +299 -0
- package/dist/sst/.sst/platform/src/components/aws/cdn.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/cluster-v1.d.ts +882 -0
- package/dist/sst/.sst/platform/src/components/aws/cluster-v1.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/cluster.d.ts +306 -0
- package/dist/sst/.sst/platform/src/components/aws/cluster.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/cognito-identity-pool.d.ts +194 -0
- package/dist/sst/.sst/platform/src/components/aws/cognito-identity-pool.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/cognito-identity-provider.d.ts +38 -0
- package/dist/sst/.sst/platform/src/components/aws/cognito-identity-provider.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/cognito-user-pool-client.d.ts +50 -0
- package/dist/sst/.sst/platform/src/components/aws/cognito-user-pool-client.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/cognito-user-pool.d.ts +603 -0
- package/dist/sst/.sst/platform/src/components/aws/cognito-user-pool.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/cron.d.ts +250 -0
- package/dist/sst/.sst/platform/src/components/aws/cron.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/dns-validated-certificate.d.ts +27 -0
- package/dist/sst/.sst/platform/src/components/aws/dns-validated-certificate.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/dns.d.ts +94 -0
- package/dist/sst/.sst/platform/src/components/aws/dns.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/dynamo-lambda-subscriber.d.ts +55 -0
- package/dist/sst/.sst/platform/src/components/aws/dynamo-lambda-subscriber.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/dynamo.d.ts +568 -0
- package/dist/sst/.sst/platform/src/components/aws/dynamo.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/efs.d.ts +217 -0
- package/dist/sst/.sst/platform/src/components/aws/efs.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/email.d.ts +291 -0
- package/dist/sst/.sst/platform/src/components/aws/email.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/fargate.d.ts +803 -0
- package/dist/sst/.sst/platform/src/components/aws/fargate.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/function.d.ts +1629 -0
- package/dist/sst/.sst/platform/src/components/aws/function.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/helpers/apigateway-account.d.ts +3 -0
- package/dist/sst/.sst/platform/src/components/aws/helpers/apigateway-account.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/helpers/apigatewayv2-domain.d.ts +144 -0
- package/dist/sst/.sst/platform/src/components/aws/helpers/apigatewayv2-domain.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/helpers/arn.d.ts +40 -0
- package/dist/sst/.sst/platform/src/components/aws/helpers/arn.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/helpers/bootstrap.d.ts +13 -0
- package/dist/sst/.sst/platform/src/components/aws/helpers/bootstrap.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/helpers/container-builder.d.ts +4 -0
- package/dist/sst/.sst/platform/src/components/aws/helpers/container-builder.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/helpers/function-builder.d.ts +10 -0
- package/dist/sst/.sst/platform/src/components/aws/helpers/function-builder.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/helpers/provider.d.ts +3 -0
- package/dist/sst/.sst/platform/src/components/aws/helpers/provider.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/helpers/quota.d.ts +7 -0
- package/dist/sst/.sst/platform/src/components/aws/helpers/quota.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/helpers/site-builder.d.ts +4 -0
- package/dist/sst/.sst/platform/src/components/aws/helpers/site-builder.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/helpers/subscriber.d.ts +6 -0
- package/dist/sst/.sst/platform/src/components/aws/helpers/subscriber.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/https-redirect.d.ts +38 -0
- package/dist/sst/.sst/platform/src/components/aws/https-redirect.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/iam-edit.d.ts +39 -0
- package/dist/sst/.sst/platform/src/components/aws/iam-edit.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/index.d.ts +48 -0
- package/dist/sst/.sst/platform/src/components/aws/index.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/kinesis-stream-lambda-subscriber.d.ts +48 -0
- package/dist/sst/.sst/platform/src/components/aws/kinesis-stream-lambda-subscriber.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/kinesis-stream.d.ts +249 -0
- package/dist/sst/.sst/platform/src/components/aws/kinesis-stream.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/linkable.d.ts +17 -0
- package/dist/sst/.sst/platform/src/components/aws/linkable.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/logging.d.ts +26 -0
- package/dist/sst/.sst/platform/src/components/aws/logging.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/mysql.d.ts +496 -0
- package/dist/sst/.sst/platform/src/components/aws/mysql.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/nextjs.d.ts +517 -0
- package/dist/sst/.sst/platform/src/components/aws/nextjs.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/nuxt.d.ts +495 -0
- package/dist/sst/.sst/platform/src/components/aws/nuxt.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/open-search.d.ts +295 -0
- package/dist/sst/.sst/platform/src/components/aws/open-search.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/opencontrol.d.ts +165 -0
- package/dist/sst/.sst/platform/src/components/aws/opencontrol.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/permission.d.ts +40 -0
- package/dist/sst/.sst/platform/src/components/aws/permission.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/postgres-v1.d.ts +317 -0
- package/dist/sst/.sst/platform/src/components/aws/postgres-v1.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/postgres.d.ts +500 -0
- package/dist/sst/.sst/platform/src/components/aws/postgres.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/providers/bucket-files.d.ts +18 -0
- package/dist/sst/.sst/platform/src/components/aws/providers/bucket-files.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/providers/distribution-deployment-waiter.d.ts +13 -0
- package/dist/sst/.sst/platform/src/components/aws/providers/distribution-deployment-waiter.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/providers/distribution-invalidation.d.ts +11 -0
- package/dist/sst/.sst/platform/src/components/aws/providers/distribution-invalidation.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/providers/function-environment-update.d.ts +29 -0
- package/dist/sst/.sst/platform/src/components/aws/providers/function-environment-update.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/providers/hosted-zone-lookup.d.ts +11 -0
- package/dist/sst/.sst/platform/src/components/aws/providers/hosted-zone-lookup.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/providers/kv-keys.d.ts +11 -0
- package/dist/sst/.sst/platform/src/components/aws/providers/kv-keys.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/providers/kv-routes-update.d.ts +11 -0
- package/dist/sst/.sst/platform/src/components/aws/providers/kv-routes-update.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/providers/origin-access-control.d.ts +8 -0
- package/dist/sst/.sst/platform/src/components/aws/providers/origin-access-control.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/providers/rds-role-lookup.d.ts +8 -0
- package/dist/sst/.sst/platform/src/components/aws/providers/rds-role-lookup.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/providers/vector-table.d.ts +12 -0
- package/dist/sst/.sst/platform/src/components/aws/providers/vector-table.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/queue-lambda-subscriber.d.ts +48 -0
- package/dist/sst/.sst/platform/src/components/aws/queue-lambda-subscriber.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/queue.d.ts +485 -0
- package/dist/sst/.sst/platform/src/components/aws/queue.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/react.d.ts +416 -0
- package/dist/sst/.sst/platform/src/components/aws/react.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/realtime-lambda-subscriber.d.ts +53 -0
- package/dist/sst/.sst/platform/src/components/aws/realtime-lambda-subscriber.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/realtime.d.ts +232 -0
- package/dist/sst/.sst/platform/src/components/aws/realtime.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/redis-v1.d.ts +338 -0
- package/dist/sst/.sst/platform/src/components/aws/redis-v1.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/redis.d.ts +364 -0
- package/dist/sst/.sst/platform/src/components/aws/redis.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/remix.d.ts +423 -0
- package/dist/sst/.sst/platform/src/components/aws/remix.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/router-base-route.d.ts +28 -0
- package/dist/sst/.sst/platform/src/components/aws/router-base-route.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/router-bucket-route.d.ts +29 -0
- package/dist/sst/.sst/platform/src/components/aws/router-bucket-route.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/router-url-route.d.ts +28 -0
- package/dist/sst/.sst/platform/src/components/aws/router-url-route.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/router.d.ts +1272 -0
- package/dist/sst/.sst/platform/src/components/aws/router.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/service-v1.d.ts +78 -0
- package/dist/sst/.sst/platform/src/components/aws/service-v1.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/service.d.ts +1625 -0
- package/dist/sst/.sst/platform/src/components/aws/service.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/sns-topic-lambda-subscriber.d.ts +53 -0
- package/dist/sst/.sst/platform/src/components/aws/sns-topic-lambda-subscriber.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/sns-topic-queue-subscriber.d.ts +55 -0
- package/dist/sst/.sst/platform/src/components/aws/sns-topic-queue-subscriber.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/sns-topic.d.ts +389 -0
- package/dist/sst/.sst/platform/src/components/aws/sns-topic.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/solid-start.d.ts +414 -0
- package/dist/sst/.sst/platform/src/components/aws/solid-start.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/ssr-site.d.ts +685 -0
- package/dist/sst/.sst/platform/src/components/aws/ssr-site.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/static-site.d.ts +736 -0
- package/dist/sst/.sst/platform/src/components/aws/static-site.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/step-functions/choice.d.ts +73 -0
- package/dist/sst/.sst/platform/src/components/aws/step-functions/choice.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/step-functions/fail.d.ts +63 -0
- package/dist/sst/.sst/platform/src/components/aws/step-functions/fail.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/step-functions/map.d.ts +236 -0
- package/dist/sst/.sst/platform/src/components/aws/step-functions/map.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/step-functions/parallel.d.ts +127 -0
- package/dist/sst/.sst/platform/src/components/aws/step-functions/parallel.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/step-functions/pass.d.ts +39 -0
- package/dist/sst/.sst/platform/src/components/aws/step-functions/pass.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/step-functions/state.d.ts +231 -0
- package/dist/sst/.sst/platform/src/components/aws/step-functions/state.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/step-functions/succeed.d.ts +26 -0
- package/dist/sst/.sst/platform/src/components/aws/step-functions/succeed.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/step-functions/task.d.ts +477 -0
- package/dist/sst/.sst/platform/src/components/aws/step-functions/task.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/step-functions/wait.d.ts +91 -0
- package/dist/sst/.sst/platform/src/components/aws/step-functions/wait.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/step-functions.d.ts +473 -0
- package/dist/sst/.sst/platform/src/components/aws/step-functions.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/svelte-kit.d.ts +417 -0
- package/dist/sst/.sst/platform/src/components/aws/svelte-kit.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/tan-stack-start.d.ts +354 -0
- package/dist/sst/.sst/platform/src/components/aws/tan-stack-start.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/task.d.ts +322 -0
- package/dist/sst/.sst/platform/src/components/aws/task.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/vector.d.ts +150 -0
- package/dist/sst/.sst/platform/src/components/aws/vector.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/vpc-v1.d.ts +208 -0
- package/dist/sst/.sst/platform/src/components/aws/vpc-v1.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/aws/vpc.d.ts +444 -0
- package/dist/sst/.sst/platform/src/components/aws/vpc.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/base/base-site.d.ts +53 -0
- package/dist/sst/.sst/platform/src/components/base/base-site.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/base/base-ssr-site.d.ts +13 -0
- package/dist/sst/.sst/platform/src/components/base/base-ssr-site.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/base/base-static-site.d.ts +199 -0
- package/dist/sst/.sst/platform/src/components/base/base-static-site.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/account-id.d.ts +2 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/account-id.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/auth.d.ts +22 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/auth.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/binding.d.ts +69 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/binding.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/bucket.d.ts +103 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/bucket.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/cron.d.ts +121 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/cron.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/d1.d.ts +107 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/d1.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/dns.d.ts +94 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/dns.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/experimental/astro.d.ts +186 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/experimental/astro.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/experimental/index.d.ts +4 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/experimental/index.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/experimental/solid-start.d.ts +171 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/experimental/solid-start.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/experimental/static-site.d.ts +222 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/experimental/static-site.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/helpers/fetch.d.ts +19 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/helpers/fetch.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/helpers/worker-builder.d.ts +10 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/helpers/worker-builder.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/index.d.ts +16 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/index.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/kv.d.ts +107 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/kv.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/providers/dns-record.d.ts +20 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/providers/dns-record.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/providers/kv-data.d.ts +23 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/providers/kv-data.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/providers/worker-assets.d.ts +18 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/providers/worker-assets.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/providers/worker-url.d.ts +22 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/providers/worker-url.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/providers/zone-lookup.d.ts +22 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/providers/zone-lookup.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/queue.d.ts +60 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/queue.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/ssr-site.d.ts +51 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/ssr-site.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/static-site.d.ts +262 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/static-site.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/worker.d.ts +295 -0
- package/dist/sst/.sst/platform/src/components/cloudflare/worker.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/component.d.ts +37 -0
- package/dist/sst/.sst/platform/src/components/component.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/cpu.d.ts +3 -0
- package/dist/sst/.sst/platform/src/components/cpu.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/dns.d.ts +59 -0
- package/dist/sst/.sst/platform/src/components/dns.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/duration.d.ts +7 -0
- package/dist/sst/.sst/platform/src/components/duration.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/error.d.ts +4 -0
- package/dist/sst/.sst/platform/src/components/error.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/experimental/dev-command.d.ts +99 -0
- package/dist/sst/.sst/platform/src/components/experimental/dev-command.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/experimental/index.d.ts +2 -0
- package/dist/sst/.sst/platform/src/components/experimental/index.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/index.d.ts +16 -0
- package/dist/sst/.sst/platform/src/components/index.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/input.d.ts +3 -0
- package/dist/sst/.sst/platform/src/components/input.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/link.d.ts +41 -0
- package/dist/sst/.sst/platform/src/components/link.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/linkable.d.ts +271 -0
- package/dist/sst/.sst/platform/src/components/linkable.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/naming.d.ts +7 -0
- package/dist/sst/.sst/platform/src/components/naming.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/path.d.ts +2 -0
- package/dist/sst/.sst/platform/src/components/path.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/rpc/rpc.d.ts +19 -0
- package/dist/sst/.sst/platform/src/components/rpc/rpc.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/secret.d.ts +125 -0
- package/dist/sst/.sst/platform/src/components/secret.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/size.d.ts +5 -0
- package/dist/sst/.sst/platform/src/components/size.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/vercel/account-id.d.ts +2 -0
- package/dist/sst/.sst/platform/src/components/vercel/account-id.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/vercel/dns.d.ts +73 -0
- package/dist/sst/.sst/platform/src/components/vercel/dns.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/vercel/index.d.ts +3 -0
- package/dist/sst/.sst/platform/src/components/vercel/index.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/components/vercel/providers/dns-record.d.ts +14 -0
- package/dist/sst/.sst/platform/src/components/vercel/providers/dns-record.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/config.d.ts +1258 -0
- package/dist/sst/.sst/platform/src/config.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/util/compare-semver.d.ts +4 -0
- package/dist/sst/.sst/platform/src/util/compare-semver.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/util/fs.d.ts +5 -0
- package/dist/sst/.sst/platform/src/util/fs.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/util/lazy.d.ts +2 -0
- package/dist/sst/.sst/platform/src/util/lazy.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/util/semaphore.d.ts +9 -0
- package/dist/sst/.sst/platform/src/util/semaphore.d.ts.map +1 -0
- package/dist/sst/.sst/platform/src/util/warn.d.ts +2 -0
- package/dist/sst/.sst/platform/src/util/warn.d.ts.map +1 -0
- package/dist/sst/components/dashboard.d.ts +2 -0
- package/dist/sst/components/dashboard.d.ts.map +1 -0
- package/dist/sst/components/monorise-core.d.ts +18 -0
- package/dist/sst/components/monorise-core.d.ts.map +1 -0
- package/dist/sst/components/q-function.d.ts +17 -0
- package/dist/sst/components/q-function.d.ts.map +1 -0
- package/dist/sst/components/single-table.d.ts +14 -0
- package/dist/sst/components/single-table.d.ts.map +1 -0
- package/dist/sst/constants/event.d.ts +73 -0
- package/dist/sst/constants/event.d.ts.map +1 -0
- package/dist/sst/constants/table.d.ts +3 -0
- package/dist/sst/constants/table.d.ts.map +1 -0
- package/dist/sst/index.d.ts +11 -0
- package/dist/sst/index.d.ts.map +1 -0
- package/dist/sst/index.js +609 -0
- package/dist/sst/index.js.map +1 -0
- package/dist/sst/sst.config.d.ts +3 -0
- package/dist/sst/sst.config.d.ts.map +1 -0
- package/dist/sst/tsup.config.d.ts +3 -0
- package/dist/sst/tsup.config.d.ts.map +1 -0
- package/package.json +83 -0
|
@@ -0,0 +1,262 @@
|
|
|
1
|
+
import { ComponentResourceOptions } from "@pulumi/pulumi";
|
|
2
|
+
import { Kv, KvArgs } from "./kv.js";
|
|
3
|
+
import { Component, Transform } from "../component.js";
|
|
4
|
+
import { Link } from "../link.js";
|
|
5
|
+
import { Input } from "../input.js";
|
|
6
|
+
import { Worker } from "./worker.js";
|
|
7
|
+
import { BaseStaticSiteArgs, BaseStaticSiteAssets } from "../base/base-static-site.js";
|
|
8
|
+
export interface StaticSiteArgs extends BaseStaticSiteArgs {
|
|
9
|
+
/**
|
|
10
|
+
* Path to the directory where your static site is located. By default this assumes your static site is in the root of your SST app.
|
|
11
|
+
*
|
|
12
|
+
* This directory will be uploaded to KV. The path is relative to your `sst.config.ts`.
|
|
13
|
+
*
|
|
14
|
+
* :::note
|
|
15
|
+
* If the `build` options are specified, `build.output` will be uploaded to KV instead.
|
|
16
|
+
* :::
|
|
17
|
+
*
|
|
18
|
+
* If you are using a static site generator, like Vite, you'll need to configure the `build` options. When these are set, the `build.output` directory will be uploaded to KV instead.
|
|
19
|
+
*
|
|
20
|
+
* @default `"."`
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
*
|
|
24
|
+
* Change where your static site is located.
|
|
25
|
+
*
|
|
26
|
+
* ```js
|
|
27
|
+
* {
|
|
28
|
+
* path: "packages/web"
|
|
29
|
+
* }
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
path?: BaseStaticSiteArgs["path"];
|
|
33
|
+
/**
|
|
34
|
+
* Configure if your static site needs to be built. This is useful if you are using a static site generator.
|
|
35
|
+
*
|
|
36
|
+
* The `build.output` directory will be uploaded to KV instead.
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* For a Vite project using npm this might look like this.
|
|
40
|
+
*
|
|
41
|
+
* ```js
|
|
42
|
+
* {
|
|
43
|
+
* build: {
|
|
44
|
+
* command: "npm run build",
|
|
45
|
+
* output: "dist"
|
|
46
|
+
* }
|
|
47
|
+
* }
|
|
48
|
+
* ```
|
|
49
|
+
*/
|
|
50
|
+
build?: BaseStaticSiteArgs["build"];
|
|
51
|
+
/**
|
|
52
|
+
* Configure how the static site's assets are uploaded to KV.
|
|
53
|
+
*
|
|
54
|
+
* By default, this is set to the following. Read more about these options below.
|
|
55
|
+
* ```js
|
|
56
|
+
* {
|
|
57
|
+
* assets: {
|
|
58
|
+
* textEncoding: "utf-8",
|
|
59
|
+
* fileOptions: [
|
|
60
|
+
* {
|
|
61
|
+
* files: ["**\/*.css", "**\/*.js"],
|
|
62
|
+
* cacheControl: "max-age=31536000,public,immutable"
|
|
63
|
+
* },
|
|
64
|
+
* {
|
|
65
|
+
* files: "**\/*.html",
|
|
66
|
+
* cacheControl: "max-age=0,no-cache,no-store,must-revalidate"
|
|
67
|
+
* }
|
|
68
|
+
* ]
|
|
69
|
+
* }
|
|
70
|
+
* }
|
|
71
|
+
* ```
|
|
72
|
+
* @default `Object`
|
|
73
|
+
*/
|
|
74
|
+
assets?: Input<BaseStaticSiteAssets & {}>;
|
|
75
|
+
/**
|
|
76
|
+
* Set a custom domain for your static site. Supports domains hosted on Cloudflare.
|
|
77
|
+
*
|
|
78
|
+
* :::tip
|
|
79
|
+
* You can migrate an externally hosted domain to Cloudflare by
|
|
80
|
+
* [following this guide](https://developers.cloudflare.com/dns/zone-setups/full-setup/setup/).
|
|
81
|
+
* :::
|
|
82
|
+
*
|
|
83
|
+
* @example
|
|
84
|
+
*
|
|
85
|
+
* ```js
|
|
86
|
+
* {
|
|
87
|
+
* domain: "domain.com"
|
|
88
|
+
* }
|
|
89
|
+
* ```
|
|
90
|
+
*/
|
|
91
|
+
domain?: Input<string>;
|
|
92
|
+
/**
|
|
93
|
+
* [Transform](/docs/components#transform) how this component creates its underlying
|
|
94
|
+
* resources.
|
|
95
|
+
*/
|
|
96
|
+
transform?: {
|
|
97
|
+
/**
|
|
98
|
+
* Transform the Kv resource used for uploading the assets.
|
|
99
|
+
*/
|
|
100
|
+
assets?: Transform<KvArgs>;
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* The `StaticSite` component lets you deploy a static website to Cloudflare. It uses [Cloudflare KV storage](https://developers.cloudflare.com/kv/) to store your files and [Cloudflare Workers](https://developers.cloudflare.com/workers/) to serve them.
|
|
105
|
+
*
|
|
106
|
+
* It can also `build` your site by running your static site generator, like [Vite](https://vitejs.dev) and uploading the build output to Cloudflare KV.
|
|
107
|
+
*
|
|
108
|
+
* @example
|
|
109
|
+
*
|
|
110
|
+
* #### Minimal example
|
|
111
|
+
*
|
|
112
|
+
* Simply uploads the current directory as a static site.
|
|
113
|
+
*
|
|
114
|
+
* ```js
|
|
115
|
+
* new sst.aws.StaticSite("MyWeb");
|
|
116
|
+
* ```
|
|
117
|
+
*
|
|
118
|
+
* #### Change the path
|
|
119
|
+
*
|
|
120
|
+
* Change the `path` that should be uploaded.
|
|
121
|
+
*
|
|
122
|
+
* ```js
|
|
123
|
+
* new sst.aws.StaticSite("MyWeb", {
|
|
124
|
+
* path: "path/to/site"
|
|
125
|
+
* });
|
|
126
|
+
* ```
|
|
127
|
+
*
|
|
128
|
+
* #### Deploy a Vite SPA
|
|
129
|
+
*
|
|
130
|
+
* Use [Vite](https://vitejs.dev) to deploy a React/Vue/Svelte/etc. SPA by specifying the `build` config.
|
|
131
|
+
*
|
|
132
|
+
* ```js
|
|
133
|
+
* new sst.aws.StaticSite("MyWeb", {
|
|
134
|
+
* build: {
|
|
135
|
+
* command: "npm run build",
|
|
136
|
+
* output: "dist"
|
|
137
|
+
* }
|
|
138
|
+
* });
|
|
139
|
+
* ```
|
|
140
|
+
*
|
|
141
|
+
* #### Deploy a Jekyll site
|
|
142
|
+
*
|
|
143
|
+
* Use [Jekyll](https://jekyllrb.com) to deploy a static site.
|
|
144
|
+
*
|
|
145
|
+
* ```js
|
|
146
|
+
* new sst.aws.StaticSite("MyWeb", {
|
|
147
|
+
* errorPage: "404.html",
|
|
148
|
+
* build: {
|
|
149
|
+
* command: "bundle exec jekyll build",
|
|
150
|
+
* output: "_site"
|
|
151
|
+
* }
|
|
152
|
+
* });
|
|
153
|
+
* ```
|
|
154
|
+
*
|
|
155
|
+
* #### Deploy a Gatsby site
|
|
156
|
+
*
|
|
157
|
+
* Use [Gatsby](https://www.gatsbyjs.com) to deploy a static site.
|
|
158
|
+
*
|
|
159
|
+
* ```js
|
|
160
|
+
* new sst.aws.StaticSite("MyWeb", {
|
|
161
|
+
* errorPage: "404.html",
|
|
162
|
+
* build: {
|
|
163
|
+
* command: "npm run build",
|
|
164
|
+
* output: "public"
|
|
165
|
+
* }
|
|
166
|
+
* });
|
|
167
|
+
* ```
|
|
168
|
+
*
|
|
169
|
+
* #### Deploy an Angular SPA
|
|
170
|
+
*
|
|
171
|
+
* Use [Angular](https://angular.dev) to deploy a SPA.
|
|
172
|
+
*
|
|
173
|
+
* ```js
|
|
174
|
+
* new sst.aws.StaticSite("MyWeb", {
|
|
175
|
+
* build: {
|
|
176
|
+
* command: "ng build --output-path dist",
|
|
177
|
+
* output: "dist"
|
|
178
|
+
* }
|
|
179
|
+
* });
|
|
180
|
+
* ```
|
|
181
|
+
*
|
|
182
|
+
* #### Add a custom domain
|
|
183
|
+
*
|
|
184
|
+
* Set a custom domain for your site.
|
|
185
|
+
*
|
|
186
|
+
* ```js {2}
|
|
187
|
+
* new sst.aws.StaticSite("MyWeb", {
|
|
188
|
+
* domain: "my-app.com"
|
|
189
|
+
* });
|
|
190
|
+
* ```
|
|
191
|
+
*
|
|
192
|
+
* #### Redirect www to apex domain
|
|
193
|
+
*
|
|
194
|
+
* Redirect `www.my-app.com` to `my-app.com`.
|
|
195
|
+
*
|
|
196
|
+
* ```js {4}
|
|
197
|
+
* new sst.aws.StaticSite("MyWeb", {
|
|
198
|
+
* domain: {
|
|
199
|
+
* name: "my-app.com",
|
|
200
|
+
* redirects: ["www.my-app.com"]
|
|
201
|
+
* }
|
|
202
|
+
* });
|
|
203
|
+
* ```
|
|
204
|
+
*
|
|
205
|
+
* #### Set environment variables
|
|
206
|
+
*
|
|
207
|
+
* Set `environment` variables for the build process of your static site. These will be used locally and on deploy.
|
|
208
|
+
*
|
|
209
|
+
* :::tip
|
|
210
|
+
* For Vite, the types for the environment variables are also generated. This can be configured through the `vite` prop.
|
|
211
|
+
* :::
|
|
212
|
+
*
|
|
213
|
+
* For some static site generators like Vite, [environment variables](https://vitejs.dev/guide/env-and-mode) prefixed with `VITE_` can be accessed in the browser.
|
|
214
|
+
*
|
|
215
|
+
* ```ts {5-7}
|
|
216
|
+
* const bucket = new sst.aws.Bucket("MyBucket");
|
|
217
|
+
*
|
|
218
|
+
* new sst.aws.StaticSite("MyWeb", {
|
|
219
|
+
* environment: {
|
|
220
|
+
* BUCKET_NAME: bucket.name,
|
|
221
|
+
* // Accessible in the browser
|
|
222
|
+
* VITE_STRIPE_PUBLISHABLE_KEY: "pk_test_123"
|
|
223
|
+
* },
|
|
224
|
+
* build: {
|
|
225
|
+
* command: "npm run build",
|
|
226
|
+
* output: "dist"
|
|
227
|
+
* }
|
|
228
|
+
* });
|
|
229
|
+
* ```
|
|
230
|
+
*/
|
|
231
|
+
export declare class StaticSite extends Component implements Link.Linkable {
|
|
232
|
+
private assets;
|
|
233
|
+
private router;
|
|
234
|
+
constructor(name: string, args?: StaticSiteArgs, opts?: ComponentResourceOptions);
|
|
235
|
+
/**
|
|
236
|
+
* The URL of the website.
|
|
237
|
+
*
|
|
238
|
+
* If the `domain` is set, this is the URL with the custom domain.
|
|
239
|
+
* Otherwise, it's the auto-generated worker URL.
|
|
240
|
+
*/
|
|
241
|
+
get url(): $util.Output<string | undefined>;
|
|
242
|
+
/**
|
|
243
|
+
* The underlying [resources](/docs/components/#nodes) this component creates.
|
|
244
|
+
*/
|
|
245
|
+
get nodes(): {
|
|
246
|
+
/**
|
|
247
|
+
* The KV namespace that stores the assets.
|
|
248
|
+
*/
|
|
249
|
+
assets: Kv;
|
|
250
|
+
/**
|
|
251
|
+
* The worker that serves the requests.
|
|
252
|
+
*/
|
|
253
|
+
router: Worker;
|
|
254
|
+
};
|
|
255
|
+
/** @internal */
|
|
256
|
+
getSSTLink(): {
|
|
257
|
+
properties: {
|
|
258
|
+
url: $util.Output<string | undefined>;
|
|
259
|
+
};
|
|
260
|
+
};
|
|
261
|
+
}
|
|
262
|
+
//# sourceMappingURL=static-site.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"static-site.d.ts","sourceRoot":"","sources":["../../../../../../.sst/platform/src/components/cloudflare/static-site.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,wBAAwB,EAAe,MAAM,gBAAgB,CAAC;AACvE,OAAO,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,SAAS,EAAa,MAAM,iBAAiB,CAAC;AAClE,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAClC,OAA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ComponentResourceOptions } from "@pulumi/pulumi";
|
|
2
|
+
import * as cf from "@pulumi/cloudflare";
|
|
3
|
+
import type { Loader, BuildOptions } from "esbuild";
|
|
4
|
+
import { Component, Transform } from "../component";
|
|
5
|
+
import { Link } from "../link.js";
|
|
6
|
+
import type { Input } from "../input.js";
|
|
7
|
+
export interface WorkerArgs {
|
|
8
|
+
/**
|
|
9
|
+
* Path to the handler file for the worker.
|
|
10
|
+
*
|
|
11
|
+
* The handler path is relative to the root your repo or the `sst.config.ts`.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
*
|
|
15
|
+
* ```js
|
|
16
|
+
* {
|
|
17
|
+
* handler: "packages/functions/src/worker.ts"
|
|
18
|
+
* }
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
handler: Input<string>;
|
|
22
|
+
/**
|
|
23
|
+
* Enable a dedicated endpoint for your Worker.
|
|
24
|
+
* @default `false`
|
|
25
|
+
*/
|
|
26
|
+
url?: Input<boolean>;
|
|
27
|
+
/**
|
|
28
|
+
* Set a custom domain for your Worker. Supports domains hosted on Cloudflare.
|
|
29
|
+
*
|
|
30
|
+
* :::tip
|
|
31
|
+
* You can migrate an externally hosted domain to Cloudflare by
|
|
32
|
+
* [following this guide](https://developers.cloudflare.com/dns/zone-setups/full-setup/setup/).
|
|
33
|
+
* :::
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
*
|
|
37
|
+
* ```js
|
|
38
|
+
* {
|
|
39
|
+
* domain: "domain.com"
|
|
40
|
+
* }
|
|
41
|
+
* ```
|
|
42
|
+
*/
|
|
43
|
+
domain?: Input<string>;
|
|
44
|
+
/**
|
|
45
|
+
* Configure how your function is bundled.
|
|
46
|
+
*
|
|
47
|
+
* SST bundles your worker code using [esbuild](https://esbuild.github.io/). This tree shakes your code to only include what's used.
|
|
48
|
+
*/
|
|
49
|
+
build?: Input<{
|
|
50
|
+
/**
|
|
51
|
+
* Configure additional esbuild loaders for other file extensions. This is useful
|
|
52
|
+
* when your code is importing non-JS files like `.png`, `.css`, etc.
|
|
53
|
+
*
|
|
54
|
+
* @example
|
|
55
|
+
* ```js
|
|
56
|
+
* {
|
|
57
|
+
* build: {
|
|
58
|
+
* loader: {
|
|
59
|
+
* ".png": "file"
|
|
60
|
+
* }
|
|
61
|
+
* }
|
|
62
|
+
* }
|
|
63
|
+
* ```
|
|
64
|
+
*/
|
|
65
|
+
loader?: Input<Record<string, Loader>>;
|
|
66
|
+
/**
|
|
67
|
+
* Use this to insert a string at the beginning of the generated JS file.
|
|
68
|
+
*
|
|
69
|
+
* @example
|
|
70
|
+
* ```js
|
|
71
|
+
* {
|
|
72
|
+
* build: {
|
|
73
|
+
* banner: "console.log('Function starting')"
|
|
74
|
+
* }
|
|
75
|
+
* }
|
|
76
|
+
* ```
|
|
77
|
+
*/
|
|
78
|
+
banner?: Input<string>;
|
|
79
|
+
/**
|
|
80
|
+
* This allows you to customize esbuild config that is used.
|
|
81
|
+
*
|
|
82
|
+
* :::tip
|
|
83
|
+
* Check out the _JS tab_ in the code snippets in the esbuild docs for the
|
|
84
|
+
* [`BuildOptions`](https://esbuild.github.io/api/#build).
|
|
85
|
+
* :::
|
|
86
|
+
*
|
|
87
|
+
*/
|
|
88
|
+
esbuild?: Input<BuildOptions>;
|
|
89
|
+
/**
|
|
90
|
+
* Disable if the worker code should be minified when bundled.
|
|
91
|
+
*
|
|
92
|
+
* @default `true`
|
|
93
|
+
*
|
|
94
|
+
* @example
|
|
95
|
+
* ```js
|
|
96
|
+
* {
|
|
97
|
+
* build: {
|
|
98
|
+
* minify: false
|
|
99
|
+
* }
|
|
100
|
+
* }
|
|
101
|
+
* ```
|
|
102
|
+
*/
|
|
103
|
+
minify?: Input<boolean>;
|
|
104
|
+
}>;
|
|
105
|
+
/**
|
|
106
|
+
* [Link resources](/docs/linking/) to your worker. This will:
|
|
107
|
+
*
|
|
108
|
+
* 1. Handle the credentials needed to access the resources.
|
|
109
|
+
* 2. Allow you to access it in your site using the [SDK](/docs/reference/sdk/).
|
|
110
|
+
*
|
|
111
|
+
* @example
|
|
112
|
+
*
|
|
113
|
+
* Takes a list of components to link to the function.
|
|
114
|
+
*
|
|
115
|
+
* ```js
|
|
116
|
+
* {
|
|
117
|
+
* link: [bucket, stripeKey]
|
|
118
|
+
* }
|
|
119
|
+
* ```
|
|
120
|
+
*/
|
|
121
|
+
link?: Input<any[]>;
|
|
122
|
+
/**
|
|
123
|
+
* Key-value pairs that are set as [Worker environment variables](https://developers.cloudflare.com/workers/configuration/environment-variables/).
|
|
124
|
+
*
|
|
125
|
+
* They can be accessed in your worker through `env.<key>`.
|
|
126
|
+
*
|
|
127
|
+
* @example
|
|
128
|
+
*
|
|
129
|
+
* ```js
|
|
130
|
+
* {
|
|
131
|
+
* environment: {
|
|
132
|
+
* DEBUG: "true"
|
|
133
|
+
* }
|
|
134
|
+
* }
|
|
135
|
+
* ```
|
|
136
|
+
*/
|
|
137
|
+
environment?: Input<Record<string, Input<string>>>;
|
|
138
|
+
/**
|
|
139
|
+
* Upload [static assets](https://developers.cloudflare.com/workers/static-assets/) as
|
|
140
|
+
* part of the worker.
|
|
141
|
+
*
|
|
142
|
+
* You can directly fetch and serve assets within your Worker code via the [assets
|
|
143
|
+
* binding](https://developers.cloudflare.com/workers/static-assets/binding/#binding).
|
|
144
|
+
*
|
|
145
|
+
* @example
|
|
146
|
+
* ```js
|
|
147
|
+
* {
|
|
148
|
+
* assets: {
|
|
149
|
+
* directory: "./dist"
|
|
150
|
+
* }
|
|
151
|
+
* }
|
|
152
|
+
* ```
|
|
153
|
+
*/
|
|
154
|
+
assets?: Input<{
|
|
155
|
+
/**
|
|
156
|
+
* The directory containing the assets.
|
|
157
|
+
*/
|
|
158
|
+
directory: Input<string>;
|
|
159
|
+
}>;
|
|
160
|
+
/**
|
|
161
|
+
* [Transform](/docs/components/#transform) how this component creates its underlying
|
|
162
|
+
* resources.
|
|
163
|
+
*/
|
|
164
|
+
transform?: {
|
|
165
|
+
/**
|
|
166
|
+
* Transform the Worker resource.
|
|
167
|
+
*/
|
|
168
|
+
worker?: Transform<cf.WorkersScriptArgs>;
|
|
169
|
+
};
|
|
170
|
+
/**
|
|
171
|
+
* @internal
|
|
172
|
+
* Placehodler for future feature.
|
|
173
|
+
*/
|
|
174
|
+
dev?: boolean;
|
|
175
|
+
}
|
|
176
|
+
/**
|
|
177
|
+
* The `Worker` component lets you create a Cloudflare Worker.
|
|
178
|
+
*
|
|
179
|
+
* @example
|
|
180
|
+
*
|
|
181
|
+
* #### Minimal example
|
|
182
|
+
*
|
|
183
|
+
* ```ts title="sst.config.ts"
|
|
184
|
+
* new sst.cloudflare.Worker("MyWorker", {
|
|
185
|
+
* handler: "src/worker.handler"
|
|
186
|
+
* });
|
|
187
|
+
* ```
|
|
188
|
+
*
|
|
189
|
+
* #### Link resources
|
|
190
|
+
*
|
|
191
|
+
* [Link resources](/docs/linking/) to the Worker. This will handle the credentials
|
|
192
|
+
* and allow you to access it in your handler.
|
|
193
|
+
*
|
|
194
|
+
* ```ts {5} title="sst.config.ts"
|
|
195
|
+
* const bucket = new sst.aws.Bucket("MyBucket");
|
|
196
|
+
*
|
|
197
|
+
* new sst.cloudflare.Worker("MyWorker", {
|
|
198
|
+
* handler: "src/worker.handler",
|
|
199
|
+
* link: [bucket]
|
|
200
|
+
* });
|
|
201
|
+
* ```
|
|
202
|
+
*
|
|
203
|
+
* You can use the [SDK](/docs/reference/sdk/) to access the linked resources
|
|
204
|
+
* in your handler.
|
|
205
|
+
*
|
|
206
|
+
* ```ts title="src/worker.ts" {3}
|
|
207
|
+
* import { Resource } from "sst";
|
|
208
|
+
*
|
|
209
|
+
* console.log(Resource.MyBucket.name);
|
|
210
|
+
* ```
|
|
211
|
+
*
|
|
212
|
+
* #### Enable URLs
|
|
213
|
+
*
|
|
214
|
+
* Enable worker URLs to invoke the worker over HTTP.
|
|
215
|
+
*
|
|
216
|
+
* ```ts {3} title="sst.config.ts"
|
|
217
|
+
* new sst.cloudflare.Worker("MyWorker", {
|
|
218
|
+
* handler: "src/worker.handler",
|
|
219
|
+
* url: true
|
|
220
|
+
* });
|
|
221
|
+
* ```
|
|
222
|
+
*
|
|
223
|
+
* #### Bundling
|
|
224
|
+
*
|
|
225
|
+
* Customize how SST uses [esbuild](https://esbuild.github.io/) to bundle your worker code with the `build` property.
|
|
226
|
+
*
|
|
227
|
+
* ```ts title="sst.config.ts" {3-5}
|
|
228
|
+
* new sst.cloudflare.Worker("MyWorker", {
|
|
229
|
+
* handler: "src/worker.handler",
|
|
230
|
+
* build: {
|
|
231
|
+
* install: ["pg"]
|
|
232
|
+
* }
|
|
233
|
+
* });
|
|
234
|
+
* ```
|
|
235
|
+
*/
|
|
236
|
+
export declare class Worker extends Component implements Link.Linkable {
|
|
237
|
+
private script;
|
|
238
|
+
private workerUrl;
|
|
239
|
+
private workerDomain?;
|
|
240
|
+
constructor(name: string, args: WorkerArgs, opts?: ComponentResourceOptions);
|
|
241
|
+
/**
|
|
242
|
+
* The Worker URL if `url` is enabled.
|
|
243
|
+
*/
|
|
244
|
+
get url(): $util.Output<string | undefined>;
|
|
245
|
+
/**
|
|
246
|
+
* The underlying [resources](/docs/components/#nodes) this component creates.
|
|
247
|
+
*/
|
|
248
|
+
get nodes(): {
|
|
249
|
+
/**
|
|
250
|
+
* The Cloudflare Worker script.
|
|
251
|
+
*/
|
|
252
|
+
worker: import("@pulumi/cloudflare/workersScript").WorkersScript;
|
|
253
|
+
};
|
|
254
|
+
/**
|
|
255
|
+
* When you link a worker, say WorkerA, to another worker, WorkerB; it automatically creates
|
|
256
|
+
* a service binding between the workers. It allows WorkerA to call WorkerB without going
|
|
257
|
+
* through a publicly-accessible URL.
|
|
258
|
+
*
|
|
259
|
+
* @example
|
|
260
|
+
* ```ts title="index.ts" {3}
|
|
261
|
+
* import { Resource } from "sst";
|
|
262
|
+
*
|
|
263
|
+
* await Resource.WorkerB.fetch(request);
|
|
264
|
+
* ```
|
|
265
|
+
*
|
|
266
|
+
* Read more about [binding Workers](https://developers.cloudflare.com/workers/runtime-apis/bindings/service-bindings/).
|
|
267
|
+
*
|
|
268
|
+
* @internal
|
|
269
|
+
*/
|
|
270
|
+
getSSTLink(): {
|
|
271
|
+
properties: {
|
|
272
|
+
url: $util.Output<string | undefined>;
|
|
273
|
+
};
|
|
274
|
+
include: {
|
|
275
|
+
type: "cloudflare.binding";
|
|
276
|
+
binding: "kvNamespaceBindings" | "secretTextBindings" | "serviceBindings" | "plainTextBindings" | "queueBindings" | "r2BucketBindings" | "d1DatabaseBindings";
|
|
277
|
+
properties: {
|
|
278
|
+
namespaceId: Input<string>;
|
|
279
|
+
} | {
|
|
280
|
+
text: Input<string>;
|
|
281
|
+
} | {
|
|
282
|
+
service: Input<string>;
|
|
283
|
+
} | {
|
|
284
|
+
text: Input<string>;
|
|
285
|
+
} | {
|
|
286
|
+
queueName: Input<string>;
|
|
287
|
+
} | {
|
|
288
|
+
bucketName: Input<string>;
|
|
289
|
+
} | {
|
|
290
|
+
id: Input<string>;
|
|
291
|
+
};
|
|
292
|
+
}[];
|
|
293
|
+
};
|
|
294
|
+
}
|
|
295
|
+
//# sourceMappingURL=worker.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"worker.d.ts","sourceRoot":"","sources":["../../../../../../.sst/platform/src/components/cloudflare/worker.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,wBAAwB,EAKzB,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EAAE,MAAM,oBAAoB,CAAC;AACzC,OAAO,KAAK,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,SAAS,EAAa,MAAM,cAAc,CAAC;AAE/D,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAClC,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAczC,MAAM,WAAW,UAAU;IACzB;;;;;;;;;;;;OAYG;IACH,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a,MAAO,SAAQ,SAAU,YAAW,IAAI,CAAC,QAAQ;IAC5D,OAAO,CAAC,MAAM,CAAmB;IACjC,OAAO,CAAC,SAAS,CAAY;IAC7B,OAAO,CAAC,YAAY,CAAC,CAAkB;gBAE3B,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,CAAC,EAAE,wBAAwB;IAoS3E;;OAEG;IACH,IAAW,GAAG,qCAIb;IAED;;OAEG;IACH,IAAW,KAAK;QAEZ;;WAEG;;MAGN;IAED;;;;;;;;;;;;;;;OAeG;IACH,UAAU;;;;;;;;;;;;;;;;;;;;;;;;CAeX"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { ComponentResource, ComponentResourceOptions, Inputs, asset as pulumiAsset, Input, Output } from "@pulumi/pulumi";
|
|
2
|
+
export declare const outputId = "Calling [toString] on an [Output<T>] is not supported.\n\nTo get the value of an Output<T> as an Output<string> consider either:\n1: o.apply(v => `prefix${v}suffix`)\n2: pulumi.interpolate `prefix${v}suffix`\n\nSee https://www.pulumi.com/docs/concepts/inputs-outputs for more details.\nThis function may throw in a future version of @pulumi/pulumi.";
|
|
3
|
+
/**
|
|
4
|
+
* Helper type to inline nested types
|
|
5
|
+
*/
|
|
6
|
+
export type Prettify<T> = {
|
|
7
|
+
[K in keyof T]: T[K];
|
|
8
|
+
} & {};
|
|
9
|
+
export type Transform<T> = Partial<T> | ((args: T, opts: $util.CustomResourceOptions, name: string) => undefined);
|
|
10
|
+
export declare function transform<T extends object>(transform: Transform<T> | undefined, name: string, args: T, opts: $util.CustomResourceOptions): readonly [string, T, $util.CustomResourceOptions];
|
|
11
|
+
export declare class Component extends ComponentResource {
|
|
12
|
+
private componentType;
|
|
13
|
+
private componentName;
|
|
14
|
+
constructor(type: string, name: string, args?: Inputs, opts?: ComponentResourceOptions);
|
|
15
|
+
/** @internal */
|
|
16
|
+
protected registerVersion(input: {
|
|
17
|
+
new: number;
|
|
18
|
+
old?: number;
|
|
19
|
+
message?: string;
|
|
20
|
+
forceUpgrade?: `v${number}`;
|
|
21
|
+
}): void;
|
|
22
|
+
}
|
|
23
|
+
export declare function $transform<T, Args, Options>(resource: {
|
|
24
|
+
new (name: string, args: Args, opts?: Options): T;
|
|
25
|
+
}, cb: (args: Args, opts: Options, name: string) => void): void;
|
|
26
|
+
export declare function $asset(assetPath: string): pulumiAsset.FileArchive | pulumiAsset.FileAsset;
|
|
27
|
+
export declare function $lazy<T>(fn: () => T): Output<$util.Unwrap<T>>;
|
|
28
|
+
export declare function $print(...msg: Input<any>[]): $util.OutputInstance<void>;
|
|
29
|
+
export declare class Version extends ComponentResource {
|
|
30
|
+
constructor(target: string, version: number, opts: ComponentResourceOptions);
|
|
31
|
+
}
|
|
32
|
+
export type ComponentVersion = {
|
|
33
|
+
major: number;
|
|
34
|
+
minor: number;
|
|
35
|
+
};
|
|
36
|
+
export declare function parseComponentVersion(version: string): ComponentVersion;
|
|
37
|
+
//# sourceMappingURL=component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../../../../.sst/platform/src/components/component.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,wBAAwB,EACxB,MAAM,EAGN,KAAK,IAAI,WAAW,EACpB,KAAK,EAEL,MAAM,EACP,MAAM,gBAAgB,CAAC;AASxB,eAAO,MAAM,QAAQ,iWAC2U,CAAC;AAEjW;;GAEG;AACH,MAAM,MAAM,QAAQ,CAAC,CAAC,IAAI;KACvB,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACrB,GAAG,EAAE,CAAC;AAEP,MAAM,MAAM,SAAS,CAAC,CAAC,IACnB,OAAO,CAAC,CAAC,CAAC,GACV,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,CAAC,qBAAqB,EAAE,IAAI,EAAE,MAAM,KAAK,SAAS,CAAC,CAAC;AAE9E,wBAA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ED,MAAM,MAAM,gBAAgB,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAChE,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,MAAM,GAAG,gBAAgB,CAGvE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cpu.d.ts","sourceRoot":"","sources":["../../../../../.sst/platform/src/components/cpu.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,GAAG,GAAG,GAAG,MAAM,IAAI,MAAM,EAAE,CAAC;AAExC,wBAAgB,QAAQ,CAAC,GAAG,EAAE,GAAG,UAOhC"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The DNS Adapter lets you manage DNS records for domains hosted on different providers.
|
|
3
|
+
*
|
|
4
|
+
* @packageDocumentation
|
|
5
|
+
*/
|
|
6
|
+
import { ComponentResourceOptions, Output, Resource } from "@pulumi/pulumi";
|
|
7
|
+
import { Input } from "./input";
|
|
8
|
+
export interface Record {
|
|
9
|
+
/**
|
|
10
|
+
* The name of the record.
|
|
11
|
+
*/
|
|
12
|
+
name: Input<string>;
|
|
13
|
+
/**
|
|
14
|
+
* The type of the record.
|
|
15
|
+
*/
|
|
16
|
+
type: Input<string>;
|
|
17
|
+
/**
|
|
18
|
+
* The value of the record.
|
|
19
|
+
*/
|
|
20
|
+
value: Input<string>;
|
|
21
|
+
}
|
|
22
|
+
export interface AliasRecord {
|
|
23
|
+
/**
|
|
24
|
+
* The name of the record.
|
|
25
|
+
*/
|
|
26
|
+
name: Input<string>;
|
|
27
|
+
/**
|
|
28
|
+
* The domain name for the alias target.
|
|
29
|
+
*/
|
|
30
|
+
aliasName: Input<string>;
|
|
31
|
+
/**
|
|
32
|
+
* The Route 53 hosted zone ID for the alias target.
|
|
33
|
+
*/
|
|
34
|
+
aliasZone: Input<string>;
|
|
35
|
+
}
|
|
36
|
+
type CreateRecord = (namePrefix: string, record: Record, opts: ComponentResourceOptions) => Output<Resource>;
|
|
37
|
+
type CreateAliasRecord = (namePrefix: string, record: AliasRecord, opts: ComponentResourceOptions) => Output<Resource> | Output<Resource>[];
|
|
38
|
+
type CreateCaaRecord = (namePrefix: string, recordName: string, opts: ComponentResourceOptions) => Resource[] | Output<Resource>[] | undefined;
|
|
39
|
+
type AwsDns = {
|
|
40
|
+
provider: "aws";
|
|
41
|
+
createRecord: CreateRecord;
|
|
42
|
+
createAlias: CreateAliasRecord;
|
|
43
|
+
createCaa: CreateCaaRecord;
|
|
44
|
+
};
|
|
45
|
+
type CloudflareDns = {
|
|
46
|
+
provider: "cloudflare";
|
|
47
|
+
createRecord: CreateRecord;
|
|
48
|
+
createAlias: CreateAliasRecord;
|
|
49
|
+
createCaa: CreateCaaRecord;
|
|
50
|
+
};
|
|
51
|
+
type VercelDns = {
|
|
52
|
+
provider: "vercel";
|
|
53
|
+
createRecord: CreateRecord;
|
|
54
|
+
createAlias: CreateAliasRecord;
|
|
55
|
+
createCaa: CreateCaaRecord;
|
|
56
|
+
};
|
|
57
|
+
export type Dns = AwsDns | CloudflareDns | VercelDns;
|
|
58
|
+
export {};
|
|
59
|
+
//# sourceMappingURL=dns.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dns.d.ts","sourceRoot":"","sources":["../../../../../.sst/platform/src/components/dns.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,wBAAwB,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC5E,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,MAAM,WAAW,MAAM;IACrB;;OAEG;IACH,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACpB;;OAEG;IACH,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACpB;;OAEG;IACH,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACtB;AAED,MAAM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AG,SAAS,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export type Duration = `${number} ${"second" | "seconds" | "minute" | "minutes" | "hour" | "hours" | "day" | "days"}`;
|
|
2
|
+
export type DurationSeconds = `${number} ${"second" | "seconds"}`;
|
|
3
|
+
export type DurationMinutes = `${number} ${"second" | "seconds" | "minute" | "minutes"}`;
|
|
4
|
+
export type DurationHours = `${number} ${"second" | "seconds" | "minute" | "minutes" | "hour" | "hours"}`;
|
|
5
|
+
export type DurationDays = `${number} ${"day" | "days"}`;
|
|
6
|
+
export declare function toSeconds(duration: Duration | DurationMinutes | DurationSeconds | DurationDays): number;
|
|
7
|
+
//# sourceMappingURL=duration.d.ts.map
|