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 @@
|
|
|
1
|
+
{"version":3,"file":"duration.d.ts","sourceRoot":"","sources":["../../../../../.sst/platform/src/components/duration.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,QAAQ,GAAG,GAAG,MAAM,IAC5B,QAAQ,GACR,SAAS,GACT,QAAQ,GACR,SAAS,GACT,MAAM,GACN,OAAO,GACP,KAAK,GACL,MAAM,EAAE,CAAC;AAEb,MAAM,MAAM,eAAe,GAAG,GAAG,MAAM,IAAI,QAAQ,GAAG,SAAS,EAAE,CAAC;AAElE,MAAM,MAAM,eAAe,GAAG,GAAG,MAAM,IACnC,QAAQ,GACR,SAAS,GACT,QAAQ,GACR,SAAS,EAAE,CAAC;AAEhB,MAAM,MAAM,aAAa,GAAG,GAAG,MAAM,IACjC,QAAQ,GACR,SAAS,GACT,QAAQ,GACR,SAAS,GACT,MAAM,GACN,OAAO,EAAE,CAAC;AAEd,MAAM,MAAM,YAAY,GAAG,GAAG,MAAM,IAAI,KAAK,GAAG,MAAM,EAAE,CAAC;AAEzD,wBAAgB,SAAS,CACvB,QAAQ,EAAE,QAAQ,GAAG,eAAe,GAAG,eAAe,GAAG,YAAY,UAgBtE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"error.d.ts","sourceRoot":"","sources":["../../../../../.sst/platform/src/components/error.ts"],"names":[],"mappings":"AAAA,qBAAa,YAAa,SAAQ,KAAK;gBACzB,GAAG,OAAO,EAAE,MAAM,EAAE;CAGjC"}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { ComponentResourceOptions } from "@pulumi/pulumi";
|
|
2
|
+
import { Component } from "../component";
|
|
3
|
+
import { Input } from "../input";
|
|
4
|
+
export interface DevCommandArgs {
|
|
5
|
+
dev?: {
|
|
6
|
+
/**
|
|
7
|
+
* The command that `sst dev` runs to start this in dev mode.
|
|
8
|
+
* @default `"npm run dev"`
|
|
9
|
+
*/
|
|
10
|
+
command?: Input<string>;
|
|
11
|
+
/**
|
|
12
|
+
* Configure if you want to automatically start this when `sst dev` starts. You can still
|
|
13
|
+
* start it manually later.
|
|
14
|
+
* @default `true`
|
|
15
|
+
*/
|
|
16
|
+
autostart?: Input<boolean>;
|
|
17
|
+
/**
|
|
18
|
+
* Change the directory from where the `command` is run.
|
|
19
|
+
* @default The project root.
|
|
20
|
+
*/
|
|
21
|
+
directory?: Input<string>;
|
|
22
|
+
/**
|
|
23
|
+
* The title of the tab in the multiplexer.
|
|
24
|
+
*
|
|
25
|
+
* @default The name of the component.
|
|
26
|
+
*/
|
|
27
|
+
title?: Input<string>;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* [Link resources](/docs/linking/) to your command. This will allow you to access it in your
|
|
31
|
+
* command using the [SDK](/docs/reference/sdk/).
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
*
|
|
35
|
+
* Takes a list of resources to link.
|
|
36
|
+
*
|
|
37
|
+
* ```js
|
|
38
|
+
* {
|
|
39
|
+
* link: [bucket, stripeKey]
|
|
40
|
+
* }
|
|
41
|
+
* ```
|
|
42
|
+
*/
|
|
43
|
+
link?: Input<any[]>;
|
|
44
|
+
/**
|
|
45
|
+
* Set environment variables for this command.
|
|
46
|
+
*
|
|
47
|
+
* @example
|
|
48
|
+
* ```js
|
|
49
|
+
* {
|
|
50
|
+
* environment: {
|
|
51
|
+
* API_URL: api.url,
|
|
52
|
+
* STRIPE_PUBLISHABLE_KEY: "pk_test_123"
|
|
53
|
+
* }
|
|
54
|
+
* }
|
|
55
|
+
* ```
|
|
56
|
+
*/
|
|
57
|
+
environment?: Input<Record<string, Input<string>>>;
|
|
58
|
+
/**
|
|
59
|
+
* @internal
|
|
60
|
+
*/
|
|
61
|
+
aws?: {
|
|
62
|
+
role: Input<string>;
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* The `DevCommand` lets you run a command in a separate pane when you run `sst dev`.
|
|
67
|
+
*
|
|
68
|
+
* :::note
|
|
69
|
+
* This is an experimental feature and the API may change in the future.
|
|
70
|
+
* :::
|
|
71
|
+
*
|
|
72
|
+
* The `sst dev` CLI starts a multiplexer with panes for separate processes. This component allows you to add a process to it.
|
|
73
|
+
*
|
|
74
|
+
* :::tip
|
|
75
|
+
* This component does not do anything on deploy.
|
|
76
|
+
* :::
|
|
77
|
+
*
|
|
78
|
+
* This component only works in `sst dev`. It does not do anything in `sst deploy`.
|
|
79
|
+
*
|
|
80
|
+
* #### Example
|
|
81
|
+
*
|
|
82
|
+
* For example, you can use this to run Drizzle Studio locally.
|
|
83
|
+
*
|
|
84
|
+
* ```ts title="sst.config.ts"
|
|
85
|
+
* new sst.x.DevCommand("Studio", {
|
|
86
|
+
* link: [rds],
|
|
87
|
+
* dev: {
|
|
88
|
+
* autostart: true,
|
|
89
|
+
* command: "npx drizzle-kit studio",
|
|
90
|
+
* },
|
|
91
|
+
* });
|
|
92
|
+
* ```
|
|
93
|
+
*
|
|
94
|
+
* Here `npx drizzle-kit studio` will be run in `sst dev` and will show up under the **Studio** tab. It'll also have access to the links from `rds`.
|
|
95
|
+
*/
|
|
96
|
+
export declare class DevCommand extends Component {
|
|
97
|
+
constructor(name: string, args: DevCommandArgs, opts?: ComponentResourceOptions);
|
|
98
|
+
}
|
|
99
|
+
//# sourceMappingURL=dev-command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dev-command.d.ts","sourceRoot":"","sources":["../../../../../../.sst/platform/src/components/experimental/dev-command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAU,MAAM,gBAAgB,CAAC;AAClE,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEjC,MAAM,WAAW,cAAc;IAC7B,GAAG,CAAC,EAAE;QACJ;;;WAGG;QACH,OAAO,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;QACxB;;;;WAIG;QACH,SAAS,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;QAC3B;;;WAGG;QACH,SAAS,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;QAC1B;;;;WAIG;QACH,KAAK,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;KACvB,CAAC;IACF;;;;;;;;;;;;;OAaG;IACH,IAAI,CAAC,EAAE,KAAK,CAAC,GAAG,EAAE,CAAC,CAAC;IACpB;;;;;;;;;;;;OAYG;IACH,WAAW,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;IACnD;;OAEG;IACH,GAAG,CAAC,EAAE;QACJ,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;KACrB,CAAC;CACH;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,qBAAa,UAAW,SAAQ,SAAS;gBAErC,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,cAAc,EACpB,IAAI,CAAC,EAAE,wBAAwB;CAoBlC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../.sst/platform/src/components/experimental/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export * as aws from "./aws/index.js";
|
|
2
|
+
export * as cloudflare from "./cloudflare/index.js";
|
|
3
|
+
export * as vercel from "./vercel/index.js";
|
|
4
|
+
export * from "./secret.js";
|
|
5
|
+
export * from "./linkable.js";
|
|
6
|
+
/**
|
|
7
|
+
* experimental packages, you may be fired for using
|
|
8
|
+
*/
|
|
9
|
+
export * as x from "./experimental/index.js";
|
|
10
|
+
import { Link } from "./link.js";
|
|
11
|
+
/**
|
|
12
|
+
* @deprecated
|
|
13
|
+
* Use sst.Linkable.wrap instead.
|
|
14
|
+
*/
|
|
15
|
+
export declare const linkable: typeof Link.linkable;
|
|
16
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../.sst/platform/src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,gBAAgB,CAAC;AACtC,OAAO,KAAK,UAAU,MAAM,uBAAuB,CAAC;AACpD,OAAO,KAAK,MAAM,MAAM,mBAAmB,CAAC;AAC5C,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B;;GAEG;AACH,OAAO,KAAK,CAAC,MAAM,yBAAyB,CAAC;AAE7C,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC;;;GAGG;AACH,eAAO,MAAM,QAAQ,sBAAgB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../../../../.sst/platform/src/components/input.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,IAAI,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC3D,MAAM,MAAM,KAAK,CAAC,CAAC,IAAI,WAAW,CAAC,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { Input, Output, ComponentResource } from "@pulumi/pulumi";
|
|
2
|
+
export declare namespace Link {
|
|
3
|
+
interface Definition<Properties extends Record<string, any> = Record<string, any>> {
|
|
4
|
+
properties: Properties;
|
|
5
|
+
include?: {
|
|
6
|
+
type: string;
|
|
7
|
+
[key: string]: any;
|
|
8
|
+
}[];
|
|
9
|
+
}
|
|
10
|
+
class Ref extends ComponentResource {
|
|
11
|
+
constructor(target: string, type: string, properties: any, include?: any);
|
|
12
|
+
}
|
|
13
|
+
function reset(): void;
|
|
14
|
+
interface Linkable {
|
|
15
|
+
urn: Output<string>;
|
|
16
|
+
getSSTLink(): Definition;
|
|
17
|
+
}
|
|
18
|
+
function isLinkable(obj: any): obj is Linkable;
|
|
19
|
+
function build(links: any[]): Output<{
|
|
20
|
+
name: string;
|
|
21
|
+
properties: {
|
|
22
|
+
type: string | undefined;
|
|
23
|
+
};
|
|
24
|
+
}>[];
|
|
25
|
+
function getProperties(links?: Input<any[]>): Output<{
|
|
26
|
+
[k: string]: {
|
|
27
|
+
type: string | undefined;
|
|
28
|
+
};
|
|
29
|
+
}>;
|
|
30
|
+
function propertiesToEnv(properties: ReturnType<typeof getProperties>): Output<{
|
|
31
|
+
[k: string]: string;
|
|
32
|
+
}>;
|
|
33
|
+
function getInclude<T>(type: string, input?: Input<any[]>): Output<T[]>;
|
|
34
|
+
/** @deprecated
|
|
35
|
+
* Use sst.Linkable.wrap instead.
|
|
36
|
+
*/
|
|
37
|
+
function linkable<T>(obj: {
|
|
38
|
+
new (...args: any[]): T;
|
|
39
|
+
}, cb: (resource: T) => Definition): void;
|
|
40
|
+
}
|
|
41
|
+
//# sourceMappingURL=link.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"link.d.ts","sourceRoot":"","sources":["../../../../../.sst/platform/src/components/link.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,EACL,MAAM,EAIN,iBAAiB,EAClB,MAAM,gBAAgB,CAAC;AAIxB,yBAAc,IAAI,CAAC;IACjB,UAAiB,UAAU,CACzB,UAAU,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;QAE5D,UAAU,EAAE,UAAU,CAAC;QACvB,OAAO,CAAC,EAAE;YACR,IAAI,EAAE,MAAM,CAAC;YACb,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;SACpB,EAAE,CAAC;KACL;IAED,MAAa,GAAI,SAAQ,iBAAiB;oBAC5B,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,GAAG,EAAE,OAAO,CAAC,EAAE,GAAG;KAmBzE;IAED,SAAgB,KAAK,SA8CpB;IAED,UAAiB,QAAQ;QACvB,GAAG,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC;QACpB,UAAU,IAAI,UAAU,CAAC;KAC1B;IAED,SAAgB,UAAU,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,QAAQ,CAEpD;IAED,SAAgB,KAAK,CAAC,KAAK,EAAE,GAAG,EAAE;;;;;SAoBjC;IAED,SAAgB,aAAa,CAAC,KAAK,CAAC,EAAE,KAAK,CAAC,GAAG,EAAE,CAAC;;;;OA6BjD;IAED,SAAgB,eAAe,CAC7B,UAAU,EAAE,UAAU,CAAC,OAAO,aAAa,CAAC;;OAc7C;IAED,SAAgB,UAAU,CAAC,CAAC,EAC1B,IAAI,EAAE,MAAM,EACZ,KAAK,CAAC,EAAE,KAAK,CAAC,GAAG,EAAE,CAAC,GACnB,MAAM,CAAC,CAAC,EAAE,CAAC,CAQb;IAED;;OAEG;IACH,SAAgB,QAAQ,CAAC,CAAC,EACxB,GAAG,EAAE;QAAE,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,CAAC,CAAA;KAAE,EAChC,EAAE,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,UAAU,QAMhC;CACF"}
|
|
@@ -0,0 +1,271 @@
|
|
|
1
|
+
import { Link } from "./link";
|
|
2
|
+
import { Component } from "./component";
|
|
3
|
+
import { Input } from "./input";
|
|
4
|
+
export interface Definition<Properties extends Record<string, any> = Record<string, any>> {
|
|
5
|
+
/**
|
|
6
|
+
* Define values that the linked resource can access at runtime. These can be outputs
|
|
7
|
+
* from other resources or constants.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```ts
|
|
11
|
+
* {
|
|
12
|
+
* properties: { foo: "bar" }
|
|
13
|
+
* }
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
properties: Properties;
|
|
17
|
+
/**
|
|
18
|
+
* Include AWS permissions or Cloudflare bindings for the linkable resource. The linked
|
|
19
|
+
* resource will have these permissions or bindings.
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* Include AWS permissions.
|
|
23
|
+
*
|
|
24
|
+
* ```ts
|
|
25
|
+
* {
|
|
26
|
+
* include: [
|
|
27
|
+
* sst.aws.permission({
|
|
28
|
+
* actions: ["lambda:InvokeFunction"],
|
|
29
|
+
* resources: ["*"]
|
|
30
|
+
* })
|
|
31
|
+
* ]
|
|
32
|
+
* }
|
|
33
|
+
* ```
|
|
34
|
+
*
|
|
35
|
+
* Include Cloudflare bindings.
|
|
36
|
+
*
|
|
37
|
+
* ```ts
|
|
38
|
+
* {
|
|
39
|
+
* include: [
|
|
40
|
+
* sst.cloudflare.binding({
|
|
41
|
+
* type: "r2BucketBindings",
|
|
42
|
+
* properties: {
|
|
43
|
+
* bucketName: "my-bucket"
|
|
44
|
+
* }
|
|
45
|
+
* })
|
|
46
|
+
* ]
|
|
47
|
+
* }
|
|
48
|
+
* ```
|
|
49
|
+
*/
|
|
50
|
+
include?: {
|
|
51
|
+
type: string;
|
|
52
|
+
[key: string]: any;
|
|
53
|
+
}[];
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* The `Linkable` component and the `Linkable.wrap` method lets you link any resources in your
|
|
57
|
+
* app; not just the built-in SST components. It also lets you modify the links SST creates.
|
|
58
|
+
*
|
|
59
|
+
* @example
|
|
60
|
+
*
|
|
61
|
+
* #### Linking any value
|
|
62
|
+
*
|
|
63
|
+
* The `Linkable` component takes a list of properties that you want to link. These can be
|
|
64
|
+
* outputs from other resources or constants.
|
|
65
|
+
*
|
|
66
|
+
* ```ts title="sst.config.ts"
|
|
67
|
+
* new sst.Linkable("MyLinkable", {
|
|
68
|
+
* properties: { foo: "bar" }
|
|
69
|
+
* });
|
|
70
|
+
* ```
|
|
71
|
+
*
|
|
72
|
+
* You can also use this to combine multiple resources into a single linkable resource. And
|
|
73
|
+
* optionally include permissions or bindings for the linked resource.
|
|
74
|
+
*
|
|
75
|
+
* ```ts title="sst.config.ts"
|
|
76
|
+
* const bucketA = new sst.aws.Bucket("MyBucketA");
|
|
77
|
+
* const bucketB = new sst.aws.Bucket("MyBucketB");
|
|
78
|
+
*
|
|
79
|
+
* const storage = new sst.Linkable("MyStorage", {
|
|
80
|
+
* properties: {
|
|
81
|
+
* foo: "bar",
|
|
82
|
+
* bucketA: bucketA.name,
|
|
83
|
+
* bucketB: bucketB.name
|
|
84
|
+
* },
|
|
85
|
+
* include: [
|
|
86
|
+
* sst.aws.permission({
|
|
87
|
+
* actions: ["s3:*"],
|
|
88
|
+
* resources: [bucketA.arn, bucketB.arn]
|
|
89
|
+
* })
|
|
90
|
+
* ]
|
|
91
|
+
* });
|
|
92
|
+
* ```
|
|
93
|
+
*
|
|
94
|
+
* You can now link this resource to your frontend or a function.
|
|
95
|
+
*
|
|
96
|
+
* ```ts title="sst.config.ts" {3}
|
|
97
|
+
* new sst.aws.Function("MyApi", {
|
|
98
|
+
* handler: "src/lambda.handler",
|
|
99
|
+
* link: [storage]
|
|
100
|
+
* });
|
|
101
|
+
* ```
|
|
102
|
+
*
|
|
103
|
+
* Then use the [SDK](/docs/reference/sdk/) to access it at runtime.
|
|
104
|
+
*
|
|
105
|
+
* ```js title="src/lambda.ts"
|
|
106
|
+
* import { Resource } from "sst";
|
|
107
|
+
*
|
|
108
|
+
* console.log(Resource.MyStorage.bucketA);
|
|
109
|
+
* ```
|
|
110
|
+
*
|
|
111
|
+
* #### Linking any resource
|
|
112
|
+
*
|
|
113
|
+
* You can also wrap any Pulumi Resource class to make it linkable.
|
|
114
|
+
*
|
|
115
|
+
* ```ts title="sst.config.ts"
|
|
116
|
+
* sst.Linkable.wrap(aws.dynamodb.Table, (table) => ({
|
|
117
|
+
* properties: { tableName: table.name },
|
|
118
|
+
* include: [
|
|
119
|
+
* sst.aws.permission({
|
|
120
|
+
* actions: ["dynamodb:*"],
|
|
121
|
+
* resources: [table.arn]
|
|
122
|
+
* })
|
|
123
|
+
* ]
|
|
124
|
+
* }));
|
|
125
|
+
* ```
|
|
126
|
+
*
|
|
127
|
+
* Now you create an instance of `aws.dynamodb.Table` and link it in your app like any other SST
|
|
128
|
+
* component.
|
|
129
|
+
*
|
|
130
|
+
* ```ts title="sst.config.ts" {7}
|
|
131
|
+
* const table = new aws.dynamodb.Table("MyTable", {
|
|
132
|
+
* attributes: [{ name: "id", type: "S" }],
|
|
133
|
+
* hashKey: "id"
|
|
134
|
+
* });
|
|
135
|
+
*
|
|
136
|
+
* new sst.aws.Nextjs("MyWeb", {
|
|
137
|
+
* link: [table]
|
|
138
|
+
* });
|
|
139
|
+
* ```
|
|
140
|
+
*
|
|
141
|
+
* And use the [SDK](/docs/reference/sdk/) to access it at runtime.
|
|
142
|
+
*
|
|
143
|
+
* ```js title="app/page.tsx"
|
|
144
|
+
* import { Resource } from "sst";
|
|
145
|
+
*
|
|
146
|
+
* console.log(Resource.MyTable.tableName);
|
|
147
|
+
* ```
|
|
148
|
+
*
|
|
149
|
+
* Your function will also have the permissions defined above.
|
|
150
|
+
*
|
|
151
|
+
* #### Modify built-in links
|
|
152
|
+
*
|
|
153
|
+
* You can also modify how SST creates links. For example, you might want to change the
|
|
154
|
+
* permissions of a linkable resource.
|
|
155
|
+
*
|
|
156
|
+
* ```ts title="sst.config.ts" "sst.aws.Bucket"
|
|
157
|
+
* sst.Linkable.wrap(sst.aws.Bucket, (bucket) => ({
|
|
158
|
+
* properties: { name: bucket.name },
|
|
159
|
+
* include: [
|
|
160
|
+
* sst.aws.permission({
|
|
161
|
+
* actions: ["s3:GetObject"],
|
|
162
|
+
* resources: [bucket.arn]
|
|
163
|
+
* })
|
|
164
|
+
* ]
|
|
165
|
+
* }));
|
|
166
|
+
* ```
|
|
167
|
+
*
|
|
168
|
+
* This overrides the built-in link and lets you create your own.
|
|
169
|
+
*/
|
|
170
|
+
export declare class Linkable<T extends Record<string, any>> extends Component implements Link.Linkable {
|
|
171
|
+
private _name;
|
|
172
|
+
private _definition;
|
|
173
|
+
static wrappedResources: Set<string>;
|
|
174
|
+
constructor(name: string, definition: Definition<T>);
|
|
175
|
+
get name(): $util.Output<string>;
|
|
176
|
+
get properties(): T;
|
|
177
|
+
/** @internal */
|
|
178
|
+
getSSTLink(): Definition<T>;
|
|
179
|
+
/**
|
|
180
|
+
* Wrap any resource class to make it linkable. Behind the scenes this modifies the
|
|
181
|
+
* prototype of the given class.
|
|
182
|
+
*
|
|
183
|
+
* :::tip
|
|
184
|
+
* Use `Linkable.wrap` to make any resource linkable.
|
|
185
|
+
* :::
|
|
186
|
+
*
|
|
187
|
+
* @param cls The resource class to wrap.
|
|
188
|
+
* @param cb A callback that returns the definition for the linkable resource.
|
|
189
|
+
*
|
|
190
|
+
* @example
|
|
191
|
+
*
|
|
192
|
+
* Here we are wrapping the [`aws.dynamodb.Table`](https://www.pulumi.com/registry/packages/aws/api-docs/dynamodb/table/)
|
|
193
|
+
* class to make it linkable.
|
|
194
|
+
*
|
|
195
|
+
* ```ts title="sst.config.ts"
|
|
196
|
+
* Linkable.wrap(aws.dynamodb.Table, (table) => ({
|
|
197
|
+
* properties: { tableName: table.name },
|
|
198
|
+
* include: [
|
|
199
|
+
* sst.aws.permission({
|
|
200
|
+
* actions: ["dynamodb:*"],
|
|
201
|
+
* resources: [table.arn]
|
|
202
|
+
* })
|
|
203
|
+
* ]
|
|
204
|
+
* }));
|
|
205
|
+
* ```
|
|
206
|
+
*
|
|
207
|
+
* It's defining the properties that we want made accessible at runtime and the permissions
|
|
208
|
+
* that the linked resource should have.
|
|
209
|
+
*
|
|
210
|
+
* Now you can link any `aws.dynamodb.Table` instances in your app just like any other SST
|
|
211
|
+
* component.
|
|
212
|
+
*
|
|
213
|
+
* ```ts title="sst.config.ts" {7}
|
|
214
|
+
* const table = new aws.dynamodb.Table("MyTable", {
|
|
215
|
+
* attributes: [{ name: "id", type: "S" }],
|
|
216
|
+
* hashKey: "id",
|
|
217
|
+
* });
|
|
218
|
+
*
|
|
219
|
+
* new sst.aws.Nextjs("MyWeb", {
|
|
220
|
+
* link: [table]
|
|
221
|
+
* });
|
|
222
|
+
* ```
|
|
223
|
+
*
|
|
224
|
+
* Since this applies to any resource, you can also use it to wrap SST components and modify
|
|
225
|
+
* how they are linked.
|
|
226
|
+
*
|
|
227
|
+
* ```ts title="sst.config.ts" "sst.aws.Bucket"
|
|
228
|
+
* sst.Linkable.wrap(sst.aws.Bucket, (bucket) => ({
|
|
229
|
+
* properties: { name: bucket.name },
|
|
230
|
+
* include: [
|
|
231
|
+
* sst.aws.permission({
|
|
232
|
+
* actions: ["s3:GetObject"],
|
|
233
|
+
* resources: [bucket.arn]
|
|
234
|
+
* })
|
|
235
|
+
* ]
|
|
236
|
+
* }));
|
|
237
|
+
* ```
|
|
238
|
+
*
|
|
239
|
+
* This overrides the built-in link and lets you create your own.
|
|
240
|
+
*
|
|
241
|
+
* :::tip
|
|
242
|
+
* You can modify the permissions granted by a linked resource.
|
|
243
|
+
* :::
|
|
244
|
+
*
|
|
245
|
+
* In the above example, we're modifying the permissions to access a linked `sst.aws.Bucket`
|
|
246
|
+
* in our app.
|
|
247
|
+
*/
|
|
248
|
+
static wrap<Resource>(cls: {
|
|
249
|
+
new (...args: any[]): Resource;
|
|
250
|
+
}, cb: (resource: Resource) => Definition): void;
|
|
251
|
+
}
|
|
252
|
+
/**
|
|
253
|
+
* @deprecated
|
|
254
|
+
* Use sst.Linkable instead.
|
|
255
|
+
*/
|
|
256
|
+
export declare class Resource extends Component implements Link.Linkable {
|
|
257
|
+
private _properties;
|
|
258
|
+
private _name;
|
|
259
|
+
constructor(name: string, properties: any);
|
|
260
|
+
get name(): $util.Output<string>;
|
|
261
|
+
get properties(): any;
|
|
262
|
+
/** @internal */
|
|
263
|
+
getSSTLink(): {
|
|
264
|
+
properties: any;
|
|
265
|
+
};
|
|
266
|
+
}
|
|
267
|
+
export declare function env(env: Record<string, Input<string>>): {
|
|
268
|
+
type: "environment";
|
|
269
|
+
env: Record<string, Input<string>>;
|
|
270
|
+
};
|
|
271
|
+
//# sourceMappingURL=linkable.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"linkable.d.ts","sourceRoot":"","sources":["../../../../../.sst/platform/src/components/linkable.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,MAAM,WAAW,UAAU,CACzB,UAAU,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IAE5D;;;;;;;;;;OAUG;IACH,UAAU,EAAE,UAAU,CAAC;IACvB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAgCG;IACH,OAAO,CAAC,EAAE;QACR,IAAI,EAAE,MAAM,CAAC;QACb,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;KACpB,EAAE,CAAC;CACL;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkHG;AACH,qBAAa,QAAQ,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CACjD,SAAQ,SACR,YAAW,IAAI,CAAC,QAAQ;IAExB,OAAO,CAAC,KAAK,CAAS;IACtB,OAAO,CAAC,WAAW,CAAgB;IAEnC,OAAc,gBAAgB,cAAqB;gBAEvC,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,UAAU,CAAC,CAAC,CAAC;IAMnD,IAAW,IAAI,yBAEd;IAED,IAAW,UAAU,MAEpB;IAED,gBAAgB;IACT,UAAU;IAIjB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAoEG;WACW,IAAI,CAAC,QAAQ,EACzB,GAAG,EAAE;QAAE,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,QAAQ,CAAA;KAAE,EACvC,EAAE,EAAE,CAAC,QAAQ,EAAE,QAAQ,KAAK,UAAU;CASzC;AAED;;;GAGG;AACH,qBAAa,QAAS,SAAQ,SAAU,YAAW,IAAI,CAAC,QAAQ;IAC9D,OAAO,CAAC,WAAW,CAAM;IACzB,OAAO,CAAC,KAAK,CAAS;gBAEV,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,GAAG;IAczC,IAAW,IAAI,yBAEd;IAED,IAAW,UAAU,QAEpB;IAED,gBAAgB;IACT,UAAU;;;CAKlB;AAED,wBAAgB,GAAG,CAAC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;;;EAKrD"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare function logicalName(name: string): string;
|
|
2
|
+
export declare function physicalName(max: number, name: string, suffix?: string): string;
|
|
3
|
+
export declare function prefixName(max: number, name: string): string;
|
|
4
|
+
export declare function hashNumberToPrettyString(number: number, length: number): string;
|
|
5
|
+
export declare function hashStringToPrettyString(str: string, length: number): string;
|
|
6
|
+
export declare const PRETTY_CHARS = "abcdefhkmnorstuvwxz";
|
|
7
|
+
//# sourceMappingURL=naming.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"naming.d.ts","sourceRoot":"","sources":["../../../../../.sst/platform/src/components/naming.ts"],"names":[],"mappings":"AAEA,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,UAGvC;AAED,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,GAAE,MAAW,UAa1E;AAED,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,UAwBnD;AAED,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,UAetE;AAED,wBAAgB,wBAAwB,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,UAKnE;AAED,eAAO,MAAM,YAAY,wBAAwB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"path.d.ts","sourceRoot":"","sources":["../../../../../.sst/platform/src/components/path.ts"],"names":[],"mappings":"AAEA,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,UAEhC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { dynamic } from "@pulumi/pulumi";
|
|
2
|
+
export declare namespace rpc {
|
|
3
|
+
class MethodNotFoundError extends Error {
|
|
4
|
+
method: string;
|
|
5
|
+
constructor(method: string);
|
|
6
|
+
}
|
|
7
|
+
function call<T = any>(method: string, args: any): Promise<T>;
|
|
8
|
+
class Provider implements dynamic.ResourceProvider {
|
|
9
|
+
private type;
|
|
10
|
+
constructor(type: string);
|
|
11
|
+
private name;
|
|
12
|
+
create(inputs: any): Promise<dynamic.CreateResult<any>>;
|
|
13
|
+
delete(id: string, outs: any): Promise<void>;
|
|
14
|
+
update(id: string, olds: any, news: any): Promise<any>;
|
|
15
|
+
read(id: string, props: any): Promise<dynamic.ReadResult>;
|
|
16
|
+
diff(id: string, olds: any, news: any): Promise<dynamic.DiffResult>;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=rpc.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rpc.d.ts","sourceRoot":"","sources":["../../../../../../.sst/platform/src/components/rpc/rpc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAGzC,yBAAc,GAAG,CAAC;IAChB,MAAa,mBAAoB,SAAQ,KAAK;QACzB,MAAM,EAAE,MAAM;oBAAd,MAAM,EAAE,MAAM;KAGlC;IACD,SAAsB,IAAI,CAAC,CAAC,GAAG,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,cA0D5D;IAED,MAAa,QAAS,YAAW,OAAO,CAAC,gBAAgB;QAC3C,OAAO,CAAC,IAAI;oBAAJ,IAAI,EAAE,MAAM;QAChC,OAAO,CAAC,IAAI;QAGN,MAAM,CAAC,MAAM,EAAE,GAAG;QAIlB,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,GAAG,OAAO,CAAC,IAAI,CAAC;QAO5C,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG;QAUvC,IAAI,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,GAAG,OAAO,CAAC,OAAO,CAAC,UAAU,CAAC;QAOzD,IAAI,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,GAAG,OAAO,CAAC,OAAO,CAAC,UAAU,CAAC;KAM1E;CACF"}
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import { VisibleError } from "./error";
|
|
2
|
+
import { Output } from "@pulumi/pulumi";
|
|
3
|
+
import { Link } from "./link";
|
|
4
|
+
import { Component } from "./component";
|
|
5
|
+
import { Input } from "./input";
|
|
6
|
+
export declare class SecretMissingError extends VisibleError {
|
|
7
|
+
readonly secretName: string;
|
|
8
|
+
constructor(secretName: string);
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* The `Secret` component lets you create secrets in your app.
|
|
12
|
+
*
|
|
13
|
+
* <VideoAside title="Watch a video on how secrets work" href="https://youtu.be/7tW2L3P6LKw" />
|
|
14
|
+
*
|
|
15
|
+
* Secrets are encrypted and stored in an S3 Bucket in your AWS account. If used in
|
|
16
|
+
* your app config, they'll be encrypted in your state file as well. If used in
|
|
17
|
+
* your function code, they are encrypted and included in the bundle. They are
|
|
18
|
+
* then decrypted synchronously when your function starts up by the SST SDK.
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
*
|
|
22
|
+
* #### Create a secret
|
|
23
|
+
*
|
|
24
|
+
* The name of a secret follows the same rules as a component name. It must start with a capital letter and contain only letters and numbers.
|
|
25
|
+
*
|
|
26
|
+
* :::note
|
|
27
|
+
* Secret names must start with a capital letter and contain only letters and numbers.
|
|
28
|
+
* :::
|
|
29
|
+
*
|
|
30
|
+
* ```ts title="sst.config.ts"
|
|
31
|
+
* const secret = new sst.Secret("MySecret");
|
|
32
|
+
* ```
|
|
33
|
+
*
|
|
34
|
+
* #### Set a placeholder
|
|
35
|
+
*
|
|
36
|
+
* You can optionally set a `placeholder`.
|
|
37
|
+
*
|
|
38
|
+
* :::tip
|
|
39
|
+
* Useful for cases where you might use a secret for values that aren't sensitive, so you can just set them in code.
|
|
40
|
+
* :::
|
|
41
|
+
*
|
|
42
|
+
* ```ts title="sst.config.ts"
|
|
43
|
+
* const secret = new sst.Secret("MySecret", "my-secret-placeholder-value");
|
|
44
|
+
* ```
|
|
45
|
+
*
|
|
46
|
+
* #### Set the value of the secret
|
|
47
|
+
*
|
|
48
|
+
* You can then set the value of a secret using the [CLI](/docs/reference/cli/).
|
|
49
|
+
*
|
|
50
|
+
* ```sh title="Terminal"
|
|
51
|
+
* sst secret set MySecret my-secret-value
|
|
52
|
+
* ```
|
|
53
|
+
*
|
|
54
|
+
* :::note
|
|
55
|
+
* If you are not running `sst dev`, you'll need to `sst deploy` to apply the secret.
|
|
56
|
+
* :::
|
|
57
|
+
*
|
|
58
|
+
* #### Set a fallback for the secret
|
|
59
|
+
*
|
|
60
|
+
* You can set a _fallback_ value for the secret with the `--fallback` flag. If the secret is
|
|
61
|
+
* not set for a stage, it'll use the fallback value instead.
|
|
62
|
+
*
|
|
63
|
+
* ```sh title="Terminal"
|
|
64
|
+
* sst secret set MySecret my-fallback-value --fallback
|
|
65
|
+
* ```
|
|
66
|
+
*
|
|
67
|
+
* This is useful for PR environments that are auto-deployed.
|
|
68
|
+
*
|
|
69
|
+
* #### Use the secret in your app config
|
|
70
|
+
*
|
|
71
|
+
* You can now use the secret in your app config.
|
|
72
|
+
*
|
|
73
|
+
* ```ts title="sst.config.ts"
|
|
74
|
+
* console.log(mySecret.value);
|
|
75
|
+
* ```
|
|
76
|
+
*
|
|
77
|
+
* This is an [Output](/docs/components#outputs) that can be used as an Input to other components.
|
|
78
|
+
*
|
|
79
|
+
* #### Link the secret to a resource
|
|
80
|
+
*
|
|
81
|
+
* You can link the secret to other resources, like a function or your Next.js app.
|
|
82
|
+
*
|
|
83
|
+
* ```ts title="sst.config.ts"
|
|
84
|
+
* new sst.aws.Nextjs("MyWeb", {
|
|
85
|
+
* link: [secret]
|
|
86
|
+
* });
|
|
87
|
+
* ```
|
|
88
|
+
*
|
|
89
|
+
* Once linked, you can use the secret in your function code.
|
|
90
|
+
*
|
|
91
|
+
* ```ts title="app/page.tsx"
|
|
92
|
+
* import { Resource } from "sst";
|
|
93
|
+
*
|
|
94
|
+
* console.log(Resource.MySecret.value);
|
|
95
|
+
* ```
|
|
96
|
+
*/
|
|
97
|
+
export declare class Secret extends Component implements Link.Linkable {
|
|
98
|
+
private _value;
|
|
99
|
+
private _name;
|
|
100
|
+
private _placeholder?;
|
|
101
|
+
/**
|
|
102
|
+
* @param placeholder A placeholder value of the secret. This can be useful for cases where you might not be storing sensitive values.
|
|
103
|
+
|
|
104
|
+
*/
|
|
105
|
+
constructor(name: string, placeholder?: Input<string>);
|
|
106
|
+
/**
|
|
107
|
+
* The name of the secret.
|
|
108
|
+
*/
|
|
109
|
+
get name(): Output<string>;
|
|
110
|
+
/**
|
|
111
|
+
* The value of the secret. It'll be `undefined` if the secret has not been set through the CLI or if the `placeholder` hasn't been set.
|
|
112
|
+
*/
|
|
113
|
+
get value(): Output<string>;
|
|
114
|
+
/**
|
|
115
|
+
* The placeholder value of the secret.
|
|
116
|
+
*/
|
|
117
|
+
get placeholder(): Output<string> | undefined;
|
|
118
|
+
/** @internal */
|
|
119
|
+
getSSTLink(): {
|
|
120
|
+
properties: {
|
|
121
|
+
value: Output<string>;
|
|
122
|
+
};
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
//# sourceMappingURL=secret.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"secret.d.ts","sourceRoot":"","sources":["../../../../../.sst/platform/src/components/secret.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,MAAM,EAAkB,MAAM,gBAAgB,CAAC;AACxD,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,SAAS,EAAY,MAAM,aAAa,CAAC;AAClD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,qBAAa,kBAAmB,SAAQ,YAAY;aACtB,UAAU,EAAE,MAAM;gBAAlB,UAAU,EAAE,MAAM;CAK/C;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsFG;AACH,qBAAa,MAAO,SAAQ,SAAU,YAAW,IAAI,CAAC,QAAQ;IAC5D,OAAO,CAAC,MAAM,CAAiB;IAC/B,OAAO,CAAC,KAAK,CAAS;IACtB,OAAO,CAAC,YAAY,CAAC,CAAiB;IAEtC;;;OAGG;gBACS,IAAI,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC;IAqBrD;;OAEG;IACH,IAAW,IAAI,mBAEd;IAED;;OAEG;IACH,IAAW,KAAK,mBAEf;IAED;;OAEG;IACH,IAAW,WAAW,+BAErB;IAED,gBAAgB;IACT,UAAU;;;;;CAOlB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"size.d.ts","sourceRoot":"","sources":["../../../../../.sst/platform/src/components/size.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,IAAI,GAAG,GAAG,MAAM,IAAI,IAAI,GAAG,IAAI,EAAE,CAAC;AAC9C,MAAM,MAAM,QAAQ,GAAG,GAAG,MAAM,IAAI,IAAI,GAAG,IAAI,EAAE,CAAC;AAElD,wBAAgB,KAAK,CAAC,IAAI,EAAE,IAAI,GAAG,QAAQ,UAW1C;AAED,wBAAgB,KAAK,CAAC,IAAI,EAAE,IAAI,GAAG,QAAQ,UAW1C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"account-id.d.ts","sourceRoot":"","sources":["../../../../../../.sst/platform/src/components/vercel/account-id.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,QAA8B,CAAC"}
|