@monorise/sst 1.0.0-dev.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.sst/platform/src/components/aws/analog.d.ts +423 -0
- package/dist/.sst/platform/src/components/aws/analog.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/analog.js +118 -0
- package/dist/.sst/platform/src/components/aws/analog.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/apigateway-websocket-route.d.ts +74 -0
- package/dist/.sst/platform/src/components/aws/apigateway-websocket-route.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/apigateway-websocket-route.js +110 -0
- package/dist/.sst/platform/src/components/aws/apigateway-websocket-route.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/apigateway-websocket.d.ts +542 -0
- package/dist/.sst/platform/src/components/aws/apigateway-websocket.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/apigateway-websocket.js +409 -0
- package/dist/.sst/platform/src/components/aws/apigateway-websocket.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv1-api-key.d.ts +48 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv1-api-key.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv1-api-key.js +55 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv1-api-key.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv1-authorizer.d.ts +55 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv1-authorizer.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv1-authorizer.js +110 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv1-authorizer.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv1-base-route.d.ts +36 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv1-base-route.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv1-base-route.js +34 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv1-base-route.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv1-integration-route.d.ts +39 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv1-integration-route.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv1-integration-route.js +49 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv1-integration-route.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv1-lambda-route.d.ts +53 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv1-lambda-route.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv1-lambda-route.js +85 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv1-lambda-route.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv1-usage-plan.d.ts +53 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv1-usage-plan.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv1-usage-plan.js +66 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv1-usage-plan.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv1.d.ts +1002 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv1.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv1.js +749 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv1.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv2-authorizer.d.ts +54 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv2-authorizer.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv2-authorizer.js +98 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv2-authorizer.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv2-base-route.d.ts +28 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv2-base-route.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv2-base-route.js +28 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv2-base-route.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv2-lambda-route.d.ts +59 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv2-lambda-route.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv2-lambda-route.js +84 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv2-lambda-route.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv2-private-route.d.ts +54 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv2-private-route.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv2-private-route.js +55 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv2-private-route.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv2-url-route.d.ts +44 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv2-url-route.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv2-url-route.js +53 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv2-url-route.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv2.d.ts +933 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv2.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv2.js +648 -0
- package/dist/.sst/platform/src/components/aws/apigatewayv2.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/app-sync-data-source.d.ts +52 -0
- package/dist/.sst/platform/src/components/aws/app-sync-data-source.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/app-sync-data-source.js +208 -0
- package/dist/.sst/platform/src/components/aws/app-sync-data-source.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/app-sync-function.d.ts +33 -0
- package/dist/.sst/platform/src/components/aws/app-sync-function.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/app-sync-function.js +52 -0
- package/dist/.sst/platform/src/components/aws/app-sync-function.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/app-sync-resolver.d.ts +41 -0
- package/dist/.sst/platform/src/components/aws/app-sync-resolver.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/app-sync-resolver.js +70 -0
- package/dist/.sst/platform/src/components/aws/app-sync-resolver.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/app-sync.d.ts +638 -0
- package/dist/.sst/platform/src/components/aws/app-sync.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/app-sync.js +330 -0
- package/dist/.sst/platform/src/components/aws/app-sync.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/astro.d.ts +421 -0
- package/dist/.sst/platform/src/components/aws/astro.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/astro.js +156 -0
- package/dist/.sst/platform/src/components/aws/astro.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/aurora.d.ts +702 -0
- package/dist/.sst/platform/src/components/aws/aurora.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/aurora.js +678 -0
- package/dist/.sst/platform/src/components/aws/aurora.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/auth-v1.d.ts +26 -0
- package/dist/.sst/platform/src/components/aws/auth-v1.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/auth-v1.js +36 -0
- package/dist/.sst/platform/src/components/aws/auth-v1.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/auth.d.ts +260 -0
- package/dist/.sst/platform/src/components/aws/auth.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/auth.js +209 -0
- package/dist/.sst/platform/src/components/aws/auth.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/bucket-lambda-subscriber.d.ts +61 -0
- package/dist/.sst/platform/src/components/aws/bucket-lambda-subscriber.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/bucket-lambda-subscriber.js +99 -0
- package/dist/.sst/platform/src/components/aws/bucket-lambda-subscriber.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/bucket-notification.d.ts +47 -0
- package/dist/.sst/platform/src/components/aws/bucket-notification.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/bucket-notification.js +170 -0
- package/dist/.sst/platform/src/components/aws/bucket-notification.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/bucket-queue-subscriber.d.ts +55 -0
- package/dist/.sst/platform/src/components/aws/bucket-queue-subscriber.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/bucket-queue-subscriber.js +77 -0
- package/dist/.sst/platform/src/components/aws/bucket-queue-subscriber.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/bucket-topic-subscriber.d.ts +55 -0
- package/dist/.sst/platform/src/components/aws/bucket-topic-subscriber.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/bucket-topic-subscriber.js +99 -0
- package/dist/.sst/platform/src/components/aws/bucket-topic-subscriber.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/bucket.d.ts +1115 -0
- package/dist/.sst/platform/src/components/aws/bucket.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/bucket.js +754 -0
- package/dist/.sst/platform/src/components/aws/bucket.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/bus-base-subscriber.d.ts +20 -0
- package/dist/.sst/platform/src/components/aws/bus-base-subscriber.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/bus-base-subscriber.js +19 -0
- package/dist/.sst/platform/src/components/aws/bus-base-subscriber.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/bus-lambda-subscriber.d.ts +49 -0
- package/dist/.sst/platform/src/components/aws/bus-lambda-subscriber.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/bus-lambda-subscriber.js +81 -0
- package/dist/.sst/platform/src/components/aws/bus-lambda-subscriber.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/bus-queue-subscriber.d.ts +44 -0
- package/dist/.sst/platform/src/components/aws/bus-queue-subscriber.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/bus-queue-subscriber.js +63 -0
- package/dist/.sst/platform/src/components/aws/bus-queue-subscriber.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/bus.d.ts +403 -0
- package/dist/.sst/platform/src/components/aws/bus.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/bus.js +350 -0
- package/dist/.sst/platform/src/components/aws/bus.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/cdn.d.ts +299 -0
- package/dist/.sst/platform/src/components/aws/cdn.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/cdn.js +234 -0
- package/dist/.sst/platform/src/components/aws/cdn.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/cluster-v1.d.ts +882 -0
- package/dist/.sst/platform/src/components/aws/cluster-v1.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/cluster-v1.js +245 -0
- package/dist/.sst/platform/src/components/aws/cluster-v1.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/cluster.d.ts +308 -0
- package/dist/.sst/platform/src/components/aws/cluster.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/cluster.js +321 -0
- package/dist/.sst/platform/src/components/aws/cluster.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/cognito-identity-pool.d.ts +194 -0
- package/dist/.sst/platform/src/components/aws/cognito-identity-pool.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/cognito-identity-pool.js +263 -0
- package/dist/.sst/platform/src/components/aws/cognito-identity-pool.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/cognito-identity-provider.d.ts +38 -0
- package/dist/.sst/platform/src/components/aws/cognito-identity-provider.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/cognito-identity-provider.js +67 -0
- package/dist/.sst/platform/src/components/aws/cognito-identity-provider.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/cognito-user-pool-client.d.ts +50 -0
- package/dist/.sst/platform/src/components/aws/cognito-user-pool-client.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/cognito-user-pool-client.js +81 -0
- package/dist/.sst/platform/src/components/aws/cognito-user-pool-client.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/cognito-user-pool.d.ts +599 -0
- package/dist/.sst/platform/src/components/aws/cognito-user-pool.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/cognito-user-pool.js +368 -0
- package/dist/.sst/platform/src/components/aws/cognito-user-pool.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/cron.d.ts +250 -0
- package/dist/.sst/platform/src/components/aws/cron.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/cron.js +200 -0
- package/dist/.sst/platform/src/components/aws/cron.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/dns-validated-certificate.d.ts +27 -0
- package/dist/.sst/platform/src/components/aws/dns-validated-certificate.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/dns-validated-certificate.js +55 -0
- package/dist/.sst/platform/src/components/aws/dns-validated-certificate.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/dns.d.ts +94 -0
- package/dist/.sst/platform/src/components/aws/dns.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/dns.js +121 -0
- package/dist/.sst/platform/src/components/aws/dns.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/dynamo-lambda-subscriber.d.ts +55 -0
- package/dist/.sst/platform/src/components/aws/dynamo-lambda-subscriber.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/dynamo-lambda-subscriber.js +79 -0
- package/dist/.sst/platform/src/components/aws/dynamo-lambda-subscriber.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/dynamo.d.ts +569 -0
- package/dist/.sst/platform/src/components/aws/dynamo.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/dynamo.js +291 -0
- package/dist/.sst/platform/src/components/aws/dynamo.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/efs.d.ts +217 -0
- package/dist/.sst/platform/src/components/aws/efs.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/efs.js +241 -0
- package/dist/.sst/platform/src/components/aws/efs.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/email.d.ts +291 -0
- package/dist/.sst/platform/src/components/aws/email.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/email.js +276 -0
- package/dist/.sst/platform/src/components/aws/email.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/fargate.d.ts +769 -0
- package/dist/.sst/platform/src/components/aws/fargate.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/fargate.js +434 -0
- package/dist/.sst/platform/src/components/aws/fargate.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/function.d.ts +1631 -0
- package/dist/.sst/platform/src/components/aws/function.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/function.js +1041 -0
- package/dist/.sst/platform/src/components/aws/function.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/helpers/apigateway-account.d.ts +3 -0
- package/dist/.sst/platform/src/components/aws/helpers/apigateway-account.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/helpers/apigateway-account.js +31 -0
- package/dist/.sst/platform/src/components/aws/helpers/apigateway-account.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/helpers/apigatewayv2-domain.d.ts +144 -0
- package/dist/.sst/platform/src/components/aws/helpers/apigatewayv2-domain.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/helpers/apigatewayv2-domain.js +2 -0
- package/dist/.sst/platform/src/components/aws/helpers/apigatewayv2-domain.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/helpers/arn.d.ts +35 -0
- package/dist/.sst/platform/src/components/aws/helpers/arn.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/helpers/arn.js +86 -0
- package/dist/.sst/platform/src/components/aws/helpers/arn.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/helpers/bootstrap.d.ts +13 -0
- package/dist/.sst/platform/src/components/aws/helpers/bootstrap.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/helpers/bootstrap.js +7 -0
- package/dist/.sst/platform/src/components/aws/helpers/bootstrap.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/helpers/container-builder.d.ts +4 -0
- package/dist/.sst/platform/src/components/aws/helpers/container-builder.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/helpers/container-builder.js +27 -0
- package/dist/.sst/platform/src/components/aws/helpers/container-builder.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/helpers/function-builder.d.ts +10 -0
- package/dist/.sst/platform/src/components/aws/helpers/function-builder.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/helpers/function-builder.js +51 -0
- package/dist/.sst/platform/src/components/aws/helpers/function-builder.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/helpers/provider.d.ts +3 -0
- package/dist/.sst/platform/src/components/aws/helpers/provider.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/helpers/provider.js +34 -0
- package/dist/.sst/platform/src/components/aws/helpers/provider.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/helpers/quota.d.ts +7 -0
- package/dist/.sst/platform/src/components/aws/helpers/quota.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/helpers/quota.js +20 -0
- package/dist/.sst/platform/src/components/aws/helpers/quota.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/helpers/site-builder.d.ts +4 -0
- package/dist/.sst/platform/src/components/aws/helpers/site-builder.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/helpers/site-builder.js +36 -0
- package/dist/.sst/platform/src/components/aws/helpers/site-builder.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/helpers/subscriber.d.ts +6 -0
- package/dist/.sst/platform/src/components/aws/helpers/subscriber.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/helpers/subscriber.js +13 -0
- package/dist/.sst/platform/src/components/aws/helpers/subscriber.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/https-redirect.d.ts +38 -0
- package/dist/.sst/platform/src/components/aws/https-redirect.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/https-redirect.js +124 -0
- package/dist/.sst/platform/src/components/aws/https-redirect.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/iam-edit.d.ts +39 -0
- package/dist/.sst/platform/src/components/aws/iam-edit.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/iam-edit.js +40 -0
- package/dist/.sst/platform/src/components/aws/iam-edit.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/index.d.ts +48 -0
- package/dist/.sst/platform/src/components/aws/index.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/index.js +49 -0
- package/dist/.sst/platform/src/components/aws/index.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/kinesis-stream-lambda-subscriber.d.ts +48 -0
- package/dist/.sst/platform/src/components/aws/kinesis-stream-lambda-subscriber.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/kinesis-stream-lambda-subscriber.js +82 -0
- package/dist/.sst/platform/src/components/aws/kinesis-stream-lambda-subscriber.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/kinesis-stream.d.ts +249 -0
- package/dist/.sst/platform/src/components/aws/kinesis-stream.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/kinesis-stream.js +134 -0
- package/dist/.sst/platform/src/components/aws/kinesis-stream.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/linkable.d.ts +17 -0
- package/dist/.sst/platform/src/components/aws/linkable.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/linkable.js +25 -0
- package/dist/.sst/platform/src/components/aws/linkable.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/logging.d.ts +26 -0
- package/dist/.sst/platform/src/components/aws/logging.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/logging.js +26 -0
- package/dist/.sst/platform/src/components/aws/logging.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/mysql.d.ts +496 -0
- package/dist/.sst/platform/src/components/aws/mysql.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/mysql.js +514 -0
- package/dist/.sst/platform/src/components/aws/mysql.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/nextjs.d.ts +517 -0
- package/dist/.sst/platform/src/components/aws/nextjs.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/nextjs.js +444 -0
- package/dist/.sst/platform/src/components/aws/nextjs.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/nuxt.d.ts +495 -0
- package/dist/.sst/platform/src/components/aws/nuxt.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/nuxt.js +113 -0
- package/dist/.sst/platform/src/components/aws/nuxt.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/open-search.d.ts +295 -0
- package/dist/.sst/platform/src/components/aws/open-search.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/open-search.js +365 -0
- package/dist/.sst/platform/src/components/aws/open-search.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/opencontrol.d.ts +165 -0
- package/dist/.sst/platform/src/components/aws/opencontrol.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/opencontrol.js +164 -0
- package/dist/.sst/platform/src/components/aws/opencontrol.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/permission.d.ts +27 -0
- package/dist/.sst/platform/src/components/aws/permission.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/permission.js +19 -0
- package/dist/.sst/platform/src/components/aws/permission.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/postgres-v1.d.ts +317 -0
- package/dist/.sst/platform/src/components/aws/postgres-v1.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/postgres-v1.js +304 -0
- package/dist/.sst/platform/src/components/aws/postgres-v1.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/postgres.d.ts +500 -0
- package/dist/.sst/platform/src/components/aws/postgres.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/postgres.js +532 -0
- package/dist/.sst/platform/src/components/aws/postgres.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/providers/bucket-files.d.ts +18 -0
- package/dist/.sst/platform/src/components/aws/providers/bucket-files.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/providers/bucket-files.js +8 -0
- package/dist/.sst/platform/src/components/aws/providers/bucket-files.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/providers/distribution-deployment-waiter.d.ts +13 -0
- package/dist/.sst/platform/src/components/aws/providers/distribution-deployment-waiter.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/providers/distribution-deployment-waiter.js +8 -0
- package/dist/.sst/platform/src/components/aws/providers/distribution-deployment-waiter.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/providers/distribution-invalidation.d.ts +11 -0
- package/dist/.sst/platform/src/components/aws/providers/distribution-invalidation.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/providers/distribution-invalidation.js +8 -0
- package/dist/.sst/platform/src/components/aws/providers/distribution-invalidation.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/providers/function-environment-update.d.ts +29 -0
- package/dist/.sst/platform/src/components/aws/providers/function-environment-update.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/providers/function-environment-update.js +18 -0
- package/dist/.sst/platform/src/components/aws/providers/function-environment-update.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/providers/hosted-zone-lookup.d.ts +11 -0
- package/dist/.sst/platform/src/components/aws/providers/hosted-zone-lookup.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/providers/hosted-zone-lookup.js +8 -0
- package/dist/.sst/platform/src/components/aws/providers/hosted-zone-lookup.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/providers/kv-keys.d.ts +11 -0
- package/dist/.sst/platform/src/components/aws/providers/kv-keys.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/providers/kv-keys.js +8 -0
- package/dist/.sst/platform/src/components/aws/providers/kv-keys.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/providers/kv-routes-update.d.ts +11 -0
- package/dist/.sst/platform/src/components/aws/providers/kv-routes-update.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/providers/kv-routes-update.js +8 -0
- package/dist/.sst/platform/src/components/aws/providers/kv-routes-update.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/providers/origin-access-control.d.ts +8 -0
- package/dist/.sst/platform/src/components/aws/providers/origin-access-control.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/providers/origin-access-control.js +8 -0
- package/dist/.sst/platform/src/components/aws/providers/origin-access-control.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/providers/rds-role-lookup.d.ts +8 -0
- package/dist/.sst/platform/src/components/aws/providers/rds-role-lookup.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/providers/rds-role-lookup.js +8 -0
- package/dist/.sst/platform/src/components/aws/providers/rds-role-lookup.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/providers/vector-table.d.ts +12 -0
- package/dist/.sst/platform/src/components/aws/providers/vector-table.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/providers/vector-table.js +8 -0
- package/dist/.sst/platform/src/components/aws/providers/vector-table.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/queue-lambda-subscriber.d.ts +48 -0
- package/dist/.sst/platform/src/components/aws/queue-lambda-subscriber.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/queue-lambda-subscriber.js +81 -0
- package/dist/.sst/platform/src/components/aws/queue-lambda-subscriber.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/queue.d.ts +485 -0
- package/dist/.sst/platform/src/components/aws/queue.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/queue.js +322 -0
- package/dist/.sst/platform/src/components/aws/queue.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/react.d.ts +416 -0
- package/dist/.sst/platform/src/components/aws/react.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/react.js +157 -0
- package/dist/.sst/platform/src/components/aws/react.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/realtime-lambda-subscriber.d.ts +53 -0
- package/dist/.sst/platform/src/components/aws/realtime-lambda-subscriber.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/realtime-lambda-subscriber.js +78 -0
- package/dist/.sst/platform/src/components/aws/realtime-lambda-subscriber.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/realtime.d.ts +226 -0
- package/dist/.sst/platform/src/components/aws/realtime.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/realtime.js +221 -0
- package/dist/.sst/platform/src/components/aws/realtime.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/redis-v1.d.ts +338 -0
- package/dist/.sst/platform/src/components/aws/redis-v1.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/redis-v1.js +335 -0
- package/dist/.sst/platform/src/components/aws/redis-v1.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/redis.d.ts +364 -0
- package/dist/.sst/platform/src/components/aws/redis.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/redis.js +382 -0
- package/dist/.sst/platform/src/components/aws/redis.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/remix.d.ts +423 -0
- package/dist/.sst/platform/src/components/aws/remix.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/remix.js +212 -0
- package/dist/.sst/platform/src/components/aws/remix.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/router-base-route.d.ts +28 -0
- package/dist/.sst/platform/src/components/aws/router-base-route.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/router-base-route.js +40 -0
- package/dist/.sst/platform/src/components/aws/router-base-route.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/router-bucket-route.d.ts +29 -0
- package/dist/.sst/platform/src/components/aws/router-bucket-route.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/router-bucket-route.js +40 -0
- package/dist/.sst/platform/src/components/aws/router-bucket-route.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/router-url-route.d.ts +28 -0
- package/dist/.sst/platform/src/components/aws/router-url-route.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/router-url-route.js +51 -0
- package/dist/.sst/platform/src/components/aws/router-url-route.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/router.d.ts +1266 -0
- package/dist/.sst/platform/src/components/aws/router.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/router.js +1156 -0
- package/dist/.sst/platform/src/components/aws/router.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/service-v1.d.ts +78 -0
- package/dist/.sst/platform/src/components/aws/service-v1.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/service-v1.js +606 -0
- package/dist/.sst/platform/src/components/aws/service-v1.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/service.d.ts +1599 -0
- package/dist/.sst/platform/src/components/aws/service.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/service.js +924 -0
- package/dist/.sst/platform/src/components/aws/service.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/sns-topic-lambda-subscriber.d.ts +53 -0
- package/dist/.sst/platform/src/components/aws/sns-topic-lambda-subscriber.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/sns-topic-lambda-subscriber.js +75 -0
- package/dist/.sst/platform/src/components/aws/sns-topic-lambda-subscriber.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/sns-topic-queue-subscriber.d.ts +55 -0
- package/dist/.sst/platform/src/components/aws/sns-topic-queue-subscriber.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/sns-topic-queue-subscriber.js +59 -0
- package/dist/.sst/platform/src/components/aws/sns-topic-queue-subscriber.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/sns-topic.d.ts +389 -0
- package/dist/.sst/platform/src/components/aws/sns-topic.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/sns-topic.js +233 -0
- package/dist/.sst/platform/src/components/aws/sns-topic.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/solid-start.d.ts +414 -0
- package/dist/.sst/platform/src/components/aws/solid-start.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/solid-start.js +120 -0
- package/dist/.sst/platform/src/components/aws/solid-start.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/ssr-site.d.ts +494 -0
- package/dist/.sst/platform/src/components/aws/ssr-site.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/ssr-site.js +792 -0
- package/dist/.sst/platform/src/components/aws/ssr-site.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/static-site.d.ts +736 -0
- package/dist/.sst/platform/src/components/aws/static-site.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/static-site.js +583 -0
- package/dist/.sst/platform/src/components/aws/static-site.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/step-functions/choice.d.ts +73 -0
- package/dist/.sst/platform/src/components/aws/step-functions/choice.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/step-functions/choice.js +98 -0
- package/dist/.sst/platform/src/components/aws/step-functions/choice.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/step-functions/fail.d.ts +63 -0
- package/dist/.sst/platform/src/components/aws/step-functions/fail.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/step-functions/fail.js +25 -0
- package/dist/.sst/platform/src/components/aws/step-functions/fail.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/step-functions/map.d.ts +236 -0
- package/dist/.sst/platform/src/components/aws/step-functions/map.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/step-functions/map.js +108 -0
- package/dist/.sst/platform/src/components/aws/step-functions/map.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/step-functions/parallel.d.ts +127 -0
- package/dist/.sst/platform/src/components/aws/step-functions/parallel.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/step-functions/parallel.js +129 -0
- package/dist/.sst/platform/src/components/aws/step-functions/parallel.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/step-functions/pass.d.ts +39 -0
- package/dist/.sst/platform/src/components/aws/step-functions/pass.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/step-functions/pass.js +41 -0
- package/dist/.sst/platform/src/components/aws/step-functions/pass.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/step-functions/state.d.ts +197 -0
- package/dist/.sst/platform/src/components/aws/step-functions/state.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/step-functions/state.js +134 -0
- package/dist/.sst/platform/src/components/aws/step-functions/state.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/step-functions/succeed.d.ts +26 -0
- package/dist/.sst/platform/src/components/aws/step-functions/succeed.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/step-functions/succeed.js +25 -0
- package/dist/.sst/platform/src/components/aws/step-functions/succeed.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/step-functions/task.d.ts +477 -0
- package/dist/.sst/platform/src/components/aws/step-functions/task.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/step-functions/task.js +116 -0
- package/dist/.sst/platform/src/components/aws/step-functions/task.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/step-functions/wait.d.ts +91 -0
- package/dist/.sst/platform/src/components/aws/step-functions/wait.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/step-functions/wait.js +46 -0
- package/dist/.sst/platform/src/components/aws/step-functions/wait.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/step-functions.d.ts +473 -0
- package/dist/.sst/platform/src/components/aws/step-functions.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/step-functions.js +576 -0
- package/dist/.sst/platform/src/components/aws/step-functions.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/svelte-kit.d.ts +417 -0
- package/dist/.sst/platform/src/components/aws/svelte-kit.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/svelte-kit.js +144 -0
- package/dist/.sst/platform/src/components/aws/svelte-kit.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/tan-stack-start.d.ts +354 -0
- package/dist/.sst/platform/src/components/aws/tan-stack-start.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/tan-stack-start.js +143 -0
- package/dist/.sst/platform/src/components/aws/tan-stack-start.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/task.d.ts +322 -0
- package/dist/.sst/platform/src/components/aws/task.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/task.js +311 -0
- package/dist/.sst/platform/src/components/aws/task.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/vector.d.ts +150 -0
- package/dist/.sst/platform/src/components/aws/vector.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/vector.js +224 -0
- package/dist/.sst/platform/src/components/aws/vector.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/vpc-v1.d.ts +208 -0
- package/dist/.sst/platform/src/components/aws/vpc-v1.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/vpc-v1.js +355 -0
- package/dist/.sst/platform/src/components/aws/vpc-v1.js.map +1 -0
- package/dist/.sst/platform/src/components/aws/vpc.d.ts +444 -0
- package/dist/.sst/platform/src/components/aws/vpc.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/aws/vpc.js +834 -0
- package/dist/.sst/platform/src/components/aws/vpc.js.map +1 -0
- package/dist/.sst/platform/src/components/base/base-site.d.ts +53 -0
- package/dist/.sst/platform/src/components/base/base-site.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/base/base-site.js +47 -0
- package/dist/.sst/platform/src/components/base/base-site.js.map +1 -0
- package/dist/.sst/platform/src/components/base/base-ssr-site.d.ts +111 -0
- package/dist/.sst/platform/src/components/base/base-ssr-site.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/base/base-ssr-site.js +72 -0
- package/dist/.sst/platform/src/components/base/base-ssr-site.js.map +1 -0
- package/dist/.sst/platform/src/components/base/base-static-site.d.ts +199 -0
- package/dist/.sst/platform/src/components/base/base-static-site.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/base/base-static-site.js +87 -0
- package/dist/.sst/platform/src/components/base/base-static-site.js.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/account-id.d.ts +2 -0
- package/dist/.sst/platform/src/components/cloudflare/account-id.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/account-id.js +2 -0
- package/dist/.sst/platform/src/components/cloudflare/account-id.js.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/auth.d.ts +22 -0
- package/dist/.sst/platform/src/components/cloudflare/auth.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/auth.js +37 -0
- package/dist/.sst/platform/src/components/cloudflare/auth.js.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/binding.d.ts +69 -0
- package/dist/.sst/platform/src/components/cloudflare/binding.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/binding.js +25 -0
- package/dist/.sst/platform/src/components/cloudflare/binding.js.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/bucket.d.ts +101 -0
- package/dist/.sst/platform/src/components/cloudflare/bucket.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/bucket.js +98 -0
- package/dist/.sst/platform/src/components/cloudflare/bucket.js.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/cron.d.ts +121 -0
- package/dist/.sst/platform/src/components/cloudflare/cron.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/cron.js +86 -0
- package/dist/.sst/platform/src/components/cloudflare/cron.js.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/d1.d.ts +107 -0
- package/dist/.sst/platform/src/components/cloudflare/d1.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/d1.js +104 -0
- package/dist/.sst/platform/src/components/cloudflare/d1.js.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/dns.d.ts +94 -0
- package/dist/.sst/platform/src/components/cloudflare/dns.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/dns.js +138 -0
- package/dist/.sst/platform/src/components/cloudflare/dns.js.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/helpers/fetch.d.ts +19 -0
- package/dist/.sst/platform/src/components/cloudflare/helpers/fetch.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/helpers/fetch.js +39 -0
- package/dist/.sst/platform/src/components/cloudflare/helpers/fetch.js.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/helpers/worker-builder.d.ts +10 -0
- package/dist/.sst/platform/src/components/cloudflare/helpers/worker-builder.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/helpers/worker-builder.js +25 -0
- package/dist/.sst/platform/src/components/cloudflare/helpers/worker-builder.js.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/index.d.ts +13 -0
- package/dist/.sst/platform/src/components/cloudflare/index.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/index.js +13 -0
- package/dist/.sst/platform/src/components/cloudflare/index.js.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/kv.d.ts +101 -0
- package/dist/.sst/platform/src/components/cloudflare/kv.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/kv.js +98 -0
- package/dist/.sst/platform/src/components/cloudflare/kv.js.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/providers/dns-record.d.ts +20 -0
- package/dist/.sst/platform/src/components/cloudflare/providers/dns-record.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/providers/dns-record.js +11 -0
- package/dist/.sst/platform/src/components/cloudflare/providers/dns-record.js.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/providers/kv-data.d.ts +23 -0
- package/dist/.sst/platform/src/components/cloudflare/providers/kv-data.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/providers/kv-data.js +63 -0
- package/dist/.sst/platform/src/components/cloudflare/providers/kv-data.js.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/providers/worker-url.d.ts +22 -0
- package/dist/.sst/platform/src/components/cloudflare/providers/worker-url.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/providers/worker-url.js +83 -0
- package/dist/.sst/platform/src/components/cloudflare/providers/worker-url.js.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/providers/zone-lookup.d.ts +22 -0
- package/dist/.sst/platform/src/components/cloudflare/providers/zone-lookup.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/providers/zone-lookup.js +54 -0
- package/dist/.sst/platform/src/components/cloudflare/providers/zone-lookup.js.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/queue.d.ts +60 -0
- package/dist/.sst/platform/src/components/cloudflare/queue.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/queue.js +57 -0
- package/dist/.sst/platform/src/components/cloudflare/queue.js.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/remix.d.ts +223 -0
- package/dist/.sst/platform/src/components/cloudflare/remix.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/remix.js +291 -0
- package/dist/.sst/platform/src/components/cloudflare/remix.js.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/ssr-site.d.ts +59 -0
- package/dist/.sst/platform/src/components/cloudflare/ssr-site.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/ssr-site.js +177 -0
- package/dist/.sst/platform/src/components/cloudflare/ssr-site.js.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/static-site.d.ts +262 -0
- package/dist/.sst/platform/src/components/cloudflare/static-site.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/static-site.js +315 -0
- package/dist/.sst/platform/src/components/cloudflare/static-site.js.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/worker.d.ts +273 -0
- package/dist/.sst/platform/src/components/cloudflare/worker.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/cloudflare/worker.js +326 -0
- package/dist/.sst/platform/src/components/cloudflare/worker.js.map +1 -0
- package/dist/.sst/platform/src/components/component.d.ts +37 -0
- package/dist/.sst/platform/src/components/component.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/component.js +395 -0
- package/dist/.sst/platform/src/components/component.js.map +1 -0
- package/dist/.sst/platform/src/components/cpu.d.ts +3 -0
- package/dist/.sst/platform/src/components/cpu.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/cpu.js +9 -0
- package/dist/.sst/platform/src/components/cpu.js.map +1 -0
- package/dist/.sst/platform/src/components/dns.d.ts +59 -0
- package/dist/.sst/platform/src/components/dns.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/dns.js +7 -0
- package/dist/.sst/platform/src/components/dns.js.map +1 -0
- package/dist/.sst/platform/src/components/duration.d.ts +6 -0
- package/dist/.sst/platform/src/components/duration.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/duration.js +19 -0
- package/dist/.sst/platform/src/components/duration.js.map +1 -0
- package/dist/.sst/platform/src/components/error.d.ts +4 -0
- package/dist/.sst/platform/src/components/error.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/error.js +6 -0
- package/dist/.sst/platform/src/components/error.js.map +1 -0
- package/dist/.sst/platform/src/components/experimental/dev-command.d.ts +99 -0
- package/dist/.sst/platform/src/components/experimental/dev-command.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/experimental/dev-command.js +59 -0
- package/dist/.sst/platform/src/components/experimental/dev-command.js.map +1 -0
- package/dist/.sst/platform/src/components/experimental/index.d.ts +2 -0
- package/dist/.sst/platform/src/components/experimental/index.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/experimental/index.js +2 -0
- package/dist/.sst/platform/src/components/experimental/index.js.map +1 -0
- package/dist/.sst/platform/src/components/hint.d.ts +7 -0
- package/dist/.sst/platform/src/components/hint.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/hint.js +20 -0
- package/dist/.sst/platform/src/components/hint.js.map +1 -0
- package/dist/.sst/platform/src/components/index.d.ts +16 -0
- package/dist/.sst/platform/src/components/index.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/index.js +16 -0
- package/dist/.sst/platform/src/components/index.js.map +1 -0
- package/dist/.sst/platform/src/components/input.d.ts +3 -0
- package/dist/.sst/platform/src/components/input.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/input.js +2 -0
- package/dist/.sst/platform/src/components/input.js.map +1 -0
- package/dist/.sst/platform/src/components/link.d.ts +41 -0
- package/dist/.sst/platform/src/components/link.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/link.js +138 -0
- package/dist/.sst/platform/src/components/link.js.map +1 -0
- package/dist/.sst/platform/src/components/linkable.d.ts +271 -0
- package/dist/.sst/platform/src/components/linkable.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/linkable.js +244 -0
- package/dist/.sst/platform/src/components/linkable.js.map +1 -0
- package/dist/.sst/platform/src/components/naming.d.ts +7 -0
- package/dist/.sst/platform/src/components/naming.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/naming.js +58 -0
- package/dist/.sst/platform/src/components/naming.js.map +1 -0
- package/dist/.sst/platform/src/components/path.d.ts +2 -0
- package/dist/.sst/platform/src/components/path.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/path.js +5 -0
- package/dist/.sst/platform/src/components/path.js.map +1 -0
- package/dist/.sst/platform/src/components/rpc/rpc.d.ts +18 -0
- package/dist/.sst/platform/src/components/rpc/rpc.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/rpc/rpc.js +120 -0
- package/dist/.sst/platform/src/components/rpc/rpc.js.map +1 -0
- package/dist/.sst/platform/src/components/secret.d.ts +125 -0
- package/dist/.sst/platform/src/components/secret.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/secret.js +143 -0
- package/dist/.sst/platform/src/components/secret.js.map +1 -0
- package/dist/.sst/platform/src/components/size.d.ts +5 -0
- package/dist/.sst/platform/src/components/size.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/size.js +29 -0
- package/dist/.sst/platform/src/components/size.js.map +1 -0
- package/dist/.sst/platform/src/components/vercel/account-id.d.ts +2 -0
- package/dist/.sst/platform/src/components/vercel/account-id.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/vercel/account-id.js +2 -0
- package/dist/.sst/platform/src/components/vercel/account-id.js.map +1 -0
- package/dist/.sst/platform/src/components/vercel/dns.d.ts +73 -0
- package/dist/.sst/platform/src/components/vercel/dns.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/vercel/dns.js +104 -0
- package/dist/.sst/platform/src/components/vercel/dns.js.map +1 -0
- package/dist/.sst/platform/src/components/vercel/index.d.ts +3 -0
- package/dist/.sst/platform/src/components/vercel/index.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/vercel/index.js +3 -0
- package/dist/.sst/platform/src/components/vercel/index.js.map +1 -0
- package/dist/.sst/platform/src/components/vercel/providers/dns-record.d.ts +14 -0
- package/dist/.sst/platform/src/components/vercel/providers/dns-record.d.ts.map +1 -0
- package/dist/.sst/platform/src/components/vercel/providers/dns-record.js +8 -0
- package/dist/.sst/platform/src/components/vercel/providers/dns-record.js.map +1 -0
- package/dist/.sst/platform/src/config.d.ts +1243 -0
- package/dist/.sst/platform/src/config.d.ts.map +1 -0
- package/dist/.sst/platform/src/config.js +5 -0
- package/dist/.sst/platform/src/config.js.map +1 -0
- package/dist/.sst/platform/src/util/compare-semver.d.ts +4 -0
- package/dist/.sst/platform/src/util/compare-semver.d.ts.map +1 -0
- package/dist/.sst/platform/src/util/compare-semver.js +24 -0
- package/dist/.sst/platform/src/util/compare-semver.js.map +1 -0
- package/dist/.sst/platform/src/util/lazy.d.ts +2 -0
- package/dist/.sst/platform/src/util/lazy.d.ts.map +1 -0
- package/dist/.sst/platform/src/util/lazy.js +12 -0
- package/dist/.sst/platform/src/util/lazy.js.map +1 -0
- package/dist/.sst/platform/src/util/path-to-regex.d.ts +128 -0
- package/dist/.sst/platform/src/util/path-to-regex.d.ts.map +1 -0
- package/dist/.sst/platform/src/util/path-to-regex.js +392 -0
- package/dist/.sst/platform/src/util/path-to-regex.js.map +1 -0
- package/dist/.sst/platform/src/util/semaphore.d.ts +9 -0
- package/dist/.sst/platform/src/util/semaphore.d.ts.map +1 -0
- package/dist/.sst/platform/src/util/semaphore.js +36 -0
- package/dist/.sst/platform/src/util/semaphore.js.map +1 -0
- package/dist/.sst/platform/src/util/warn.d.ts +2 -0
- package/dist/.sst/platform/src/util/warn.d.ts.map +1 -0
- package/dist/.sst/platform/src/util/warn.js +8 -0
- package/dist/.sst/platform/src/util/warn.js.map +1 -0
- package/dist/components/monorise-core.d.ts +17 -0
- package/dist/components/monorise-core.d.ts.map +1 -0
- package/dist/components/monorise-core.js +134 -0
- package/dist/components/monorise-core.js.map +1 -0
- package/dist/components/q-function.d.ts +17 -0
- package/dist/components/q-function.d.ts.map +1 -0
- package/dist/components/q-function.js +53 -0
- package/dist/components/q-function.js.map +1 -0
- package/dist/components/single-table.d.ts +12 -0
- package/dist/components/single-table.d.ts.map +1 -0
- package/dist/components/single-table.js +71 -0
- package/dist/components/single-table.js.map +1 -0
- package/dist/constants/event.d.ts +73 -0
- package/dist/constants/event.d.ts.map +1 -0
- package/dist/constants/event.js +74 -0
- package/dist/constants/event.js.map +1 -0
- package/dist/constants/table.d.ts +3 -0
- package/dist/constants/table.d.ts.map +1 -0
- package/dist/constants/table.js +3 -0
- package/dist/constants/table.js.map +1 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +11 -0
- package/dist/index.js.map +1 -0
- package/dist/sst.config.d.ts +3 -0
- package/dist/sst.config.d.ts.map +1 -0
- package/dist/sst.config.js +24 -0
- package/dist/sst.config.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +25 -0
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import { Input } from "../../input";
|
|
2
|
+
import { CatchArgs, Failable, Nextable, RetryArgs, State, StateArgs } from "./state";
|
|
3
|
+
export interface ParallelArgs extends StateArgs {
|
|
4
|
+
/**
|
|
5
|
+
* The arguments to be passed to the APIs of the connected resources. Values can
|
|
6
|
+
* include outputs from other resources and JSONata expressions.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
*
|
|
10
|
+
* ```ts
|
|
11
|
+
* {
|
|
12
|
+
* arguments: {
|
|
13
|
+
* product: "{% $states.input.order.product %}",
|
|
14
|
+
* url: api.url,
|
|
15
|
+
* count: 32
|
|
16
|
+
* }
|
|
17
|
+
* }
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
arguments?: Input<Record<string, Input<any>>>;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* The `Parallel` state is internally used by the `StepFunctions` component to add a [Parallel
|
|
24
|
+
* workflow state](https://docs.aws.amazon.com/step-functions/latest/dg/state-parallel.html)
|
|
25
|
+
* to a state machine.
|
|
26
|
+
*
|
|
27
|
+
* :::note
|
|
28
|
+
* This component is not intended to be created directly.
|
|
29
|
+
* :::
|
|
30
|
+
*
|
|
31
|
+
* You'll find this component returned by the `parallel` method of the `StepFunctions` component.
|
|
32
|
+
*/
|
|
33
|
+
export declare class Parallel extends State implements Nextable, Failable {
|
|
34
|
+
protected args: ParallelArgs;
|
|
35
|
+
private branches;
|
|
36
|
+
constructor(args: ParallelArgs);
|
|
37
|
+
/**
|
|
38
|
+
* Add a branch state to the `Parallel` state. Each branch runs concurrently.
|
|
39
|
+
*
|
|
40
|
+
* @param branch The state to add as a branch.
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
*
|
|
44
|
+
* ```ts title="sst.config.ts"
|
|
45
|
+
* const parallel = sst.aws.StepFunctions.parallel({ name: "Parallel" });
|
|
46
|
+
*
|
|
47
|
+
* parallel.branch(processorA);
|
|
48
|
+
* parallel.branch(processorB);
|
|
49
|
+
* ```
|
|
50
|
+
*/
|
|
51
|
+
branch(branch: State): this;
|
|
52
|
+
/**
|
|
53
|
+
* Add a next state to the `Parallel` state. If all branches complete successfully,
|
|
54
|
+
* this'll continue execution to the given `state`.
|
|
55
|
+
*
|
|
56
|
+
* @param state The state to transition to.
|
|
57
|
+
*
|
|
58
|
+
* @example
|
|
59
|
+
*
|
|
60
|
+
* ```ts title="sst.config.ts"
|
|
61
|
+
* sst.aws.StepFunctions.parallel({
|
|
62
|
+
* // ...
|
|
63
|
+
* })
|
|
64
|
+
* .next(state);
|
|
65
|
+
* ```
|
|
66
|
+
*/
|
|
67
|
+
next<T extends State>(state: T): T;
|
|
68
|
+
/**
|
|
69
|
+
* Add a retry behavior to the `Parallel` state. If the state fails with any of the
|
|
70
|
+
* specified errors, retry execution using the specified parameters.
|
|
71
|
+
*
|
|
72
|
+
* @param args Properties to define the retry behavior.
|
|
73
|
+
*
|
|
74
|
+
* @example
|
|
75
|
+
*
|
|
76
|
+
* This defaults to.
|
|
77
|
+
*
|
|
78
|
+
* ```ts title="sst.config.ts" {5-8}
|
|
79
|
+
* sst.aws.StepFunctions.parallel({
|
|
80
|
+
* // ...
|
|
81
|
+
* })
|
|
82
|
+
* .retry({
|
|
83
|
+
* errors: ["States.ALL"],
|
|
84
|
+
* interval: "1 second",
|
|
85
|
+
* maxAttempts: 3,
|
|
86
|
+
* backoffRate: 2
|
|
87
|
+
* });
|
|
88
|
+
* ```
|
|
89
|
+
*/
|
|
90
|
+
retry(args?: RetryArgs): this;
|
|
91
|
+
/**
|
|
92
|
+
* Add a catch behavior to the `Parallel` state. So if the state fails with any
|
|
93
|
+
* of the specified errors, it'll continue execution to the given `state`.
|
|
94
|
+
*
|
|
95
|
+
* @param state The state to transition to on error.
|
|
96
|
+
* @param args Properties to customize error handling.
|
|
97
|
+
*
|
|
98
|
+
* @example
|
|
99
|
+
*
|
|
100
|
+
* This defaults to.
|
|
101
|
+
*
|
|
102
|
+
* ```ts title="sst.config.ts" {5}
|
|
103
|
+
* sst.aws.StepFunctions.parallel({
|
|
104
|
+
* // ...
|
|
105
|
+
* })
|
|
106
|
+
* .catch({
|
|
107
|
+
* errors: ["States.ALL"]
|
|
108
|
+
* });
|
|
109
|
+
* ```
|
|
110
|
+
*/
|
|
111
|
+
catch(state: State, args?: CatchArgs): this;
|
|
112
|
+
/**
|
|
113
|
+
* @internal
|
|
114
|
+
*/
|
|
115
|
+
getPermissions(): sst.aws.FunctionPermissionArgs[];
|
|
116
|
+
/**
|
|
117
|
+
* Serialize the state into JSON state definition.
|
|
118
|
+
*/
|
|
119
|
+
protected toJSON(): {
|
|
120
|
+
Type: string;
|
|
121
|
+
Branches: {
|
|
122
|
+
StartAt: string;
|
|
123
|
+
States: Record<string, any>;
|
|
124
|
+
}[];
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
//# sourceMappingURL=parallel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parallel.d.ts","sourceRoot":"","sources":["../../../../../../../.sst/platform/src/components/aws/step-functions/parallel.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EACL,SAAS,EACT,QAAQ,EACR,QAAQ,EACR,SAAS,EACT,KAAK,EACL,SAAS,EACV,MAAM,SAAS,CAAC;AAEjB,MAAM,WAAW,YAAa,SAAQ,SAAS;IAC7C;;;;;;;;;;;;;;;OAeG;IACH,SAAS,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAC/C;AAED;;;;;;;;;;GAUG;AACH,qBAAa,QAAS,SAAQ,KAAM,YAAW,QAAQ,EAAE,QAAQ;IAGnD,SAAS,CAAC,IAAI,EAAE,YAAY;IAFxC,OAAO,CAAC,QAAQ,CAAe;gBAET,IAAI,EAAE,YAAY;IAIxC;;;;;;;;;;;;;OAaG;IACI,MAAM,CAAC,MAAM,EAAE,KAAK;IAO3B;;;;;;;;;;;;;;OAcG;IACI,IAAI,CAAC,CAAC,SAAS,KAAK,EAAE,KAAK,EAAE,CAAC,GAAG,CAAC;IAIzC;;;;;;;;;;;;;;;;;;;;;OAqBG;IACI,KAAK,CAAC,IAAI,CAAC,EAAE,SAAS;IAI7B;;;;;;;;;;;;;;;;;;;OAmBG;IACI,KAAK,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,GAAE,SAAc;IAI/C;;OAEG;IACI,cAAc;IAOrB;;OAEG;IACH,SAAS,CAAC,MAAM;;;;;;;CAkBjB"}
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import { State, } from "./state";
|
|
2
|
+
/**
|
|
3
|
+
* The `Parallel` state is internally used by the `StepFunctions` component to add a [Parallel
|
|
4
|
+
* workflow state](https://docs.aws.amazon.com/step-functions/latest/dg/state-parallel.html)
|
|
5
|
+
* to a state machine.
|
|
6
|
+
*
|
|
7
|
+
* :::note
|
|
8
|
+
* This component is not intended to be created directly.
|
|
9
|
+
* :::
|
|
10
|
+
*
|
|
11
|
+
* You'll find this component returned by the `parallel` method of the `StepFunctions` component.
|
|
12
|
+
*/
|
|
13
|
+
export class Parallel extends State {
|
|
14
|
+
constructor(args) {
|
|
15
|
+
super(args);
|
|
16
|
+
this.args = args;
|
|
17
|
+
this.branches = [];
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Add a branch state to the `Parallel` state. Each branch runs concurrently.
|
|
21
|
+
*
|
|
22
|
+
* @param branch The state to add as a branch.
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
*
|
|
26
|
+
* ```ts title="sst.config.ts"
|
|
27
|
+
* const parallel = sst.aws.StepFunctions.parallel({ name: "Parallel" });
|
|
28
|
+
*
|
|
29
|
+
* parallel.branch(processorA);
|
|
30
|
+
* parallel.branch(processorB);
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
33
|
+
branch(branch) {
|
|
34
|
+
const head = branch.getHead();
|
|
35
|
+
this.branches.push(head);
|
|
36
|
+
this.addChildGraph(head);
|
|
37
|
+
return this;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Add a next state to the `Parallel` state. If all branches complete successfully,
|
|
41
|
+
* this'll continue execution to the given `state`.
|
|
42
|
+
*
|
|
43
|
+
* @param state The state to transition to.
|
|
44
|
+
*
|
|
45
|
+
* @example
|
|
46
|
+
*
|
|
47
|
+
* ```ts title="sst.config.ts"
|
|
48
|
+
* sst.aws.StepFunctions.parallel({
|
|
49
|
+
* // ...
|
|
50
|
+
* })
|
|
51
|
+
* .next(state);
|
|
52
|
+
* ```
|
|
53
|
+
*/
|
|
54
|
+
next(state) {
|
|
55
|
+
return this.addNext(state);
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Add a retry behavior to the `Parallel` state. If the state fails with any of the
|
|
59
|
+
* specified errors, retry execution using the specified parameters.
|
|
60
|
+
*
|
|
61
|
+
* @param args Properties to define the retry behavior.
|
|
62
|
+
*
|
|
63
|
+
* @example
|
|
64
|
+
*
|
|
65
|
+
* This defaults to.
|
|
66
|
+
*
|
|
67
|
+
* ```ts title="sst.config.ts" {5-8}
|
|
68
|
+
* sst.aws.StepFunctions.parallel({
|
|
69
|
+
* // ...
|
|
70
|
+
* })
|
|
71
|
+
* .retry({
|
|
72
|
+
* errors: ["States.ALL"],
|
|
73
|
+
* interval: "1 second",
|
|
74
|
+
* maxAttempts: 3,
|
|
75
|
+
* backoffRate: 2
|
|
76
|
+
* });
|
|
77
|
+
* ```
|
|
78
|
+
*/
|
|
79
|
+
retry(args) {
|
|
80
|
+
return this.addRetry(args);
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Add a catch behavior to the `Parallel` state. So if the state fails with any
|
|
84
|
+
* of the specified errors, it'll continue execution to the given `state`.
|
|
85
|
+
*
|
|
86
|
+
* @param state The state to transition to on error.
|
|
87
|
+
* @param args Properties to customize error handling.
|
|
88
|
+
*
|
|
89
|
+
* @example
|
|
90
|
+
*
|
|
91
|
+
* This defaults to.
|
|
92
|
+
*
|
|
93
|
+
* ```ts title="sst.config.ts" {5}
|
|
94
|
+
* sst.aws.StepFunctions.parallel({
|
|
95
|
+
* // ...
|
|
96
|
+
* })
|
|
97
|
+
* .catch({
|
|
98
|
+
* errors: ["States.ALL"]
|
|
99
|
+
* });
|
|
100
|
+
* ```
|
|
101
|
+
*/
|
|
102
|
+
catch(state, args = {}) {
|
|
103
|
+
return this.addCatch(state, args);
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* @internal
|
|
107
|
+
*/
|
|
108
|
+
getPermissions() {
|
|
109
|
+
return [
|
|
110
|
+
...this.branches.flatMap((b) => b.getPermissions()),
|
|
111
|
+
...super.getPermissions(),
|
|
112
|
+
];
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* Serialize the state into JSON state definition.
|
|
116
|
+
*/
|
|
117
|
+
toJSON() {
|
|
118
|
+
if (this.branches.length === 0) {
|
|
119
|
+
throw new Error(`The "${this.name}" Parallel state must have at least one branch.`);
|
|
120
|
+
}
|
|
121
|
+
return Object.assign({ Type: "Parallel", Branches: this.branches.map((b) => {
|
|
122
|
+
return {
|
|
123
|
+
StartAt: b.name,
|
|
124
|
+
States: b.serialize(),
|
|
125
|
+
};
|
|
126
|
+
}) }, super.toJSON());
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
//# sourceMappingURL=parallel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parallel.js","sourceRoot":"","sources":["../../../../../../../.sst/platform/src/components/aws/step-functions/parallel.ts"],"names":[],"mappings":"AACA,OAAO,EAKL,KAAK,GAEN,MAAM,SAAS,CAAC;AAsBjB;;;;;;;;;;GAUG;AACH,MAAM,OAAO,QAAS,SAAQ,KAAK;IAGjC,YAAsB,IAAkB;QACtC,KAAK,CAAC,IAAI,CAAC,CAAC;QADQ,SAAI,GAAJ,IAAI,CAAc;QAFhC,aAAQ,GAAY,EAAE,CAAC;IAI/B,CAAC;IAED;;;;;;;;;;;;;OAaG;IACI,MAAM,CAAC,MAAa;QACzB,MAAM,IAAI,GAAG,MAAM,CAAC,OAAO,EAAE,CAAC;QAC9B,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACzB,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;QACzB,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACI,IAAI,CAAkB,KAAQ;QACnC,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IAC7B,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;OAqBG;IACI,KAAK,CAAC,IAAgB;QAC3B,OAAO,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IAC7B,CAAC;IAED;;;;;;;;;;;;;;;;;;;OAmBG;IACI,KAAK,CAAC,KAAY,EAAE,OAAkB,EAAE;QAC7C,OAAO,IAAI,CAAC,QAAQ,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;IACpC,CAAC;IAED;;OAEG;IACI,cAAc;QACnB,OAAO;YACL,GAAG,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,cAAc,EAAE,CAAC;YACnD,GAAG,KAAK,CAAC,cAAc,EAAE;SAC1B,CAAC;IACJ,CAAC;IAED;;OAEG;IACO,MAAM;QACd,IAAI,IAAI,CAAC,QAAQ,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YAC/B,MAAM,IAAI,KAAK,CACb,QAAQ,IAAI,CAAC,IAAI,iDAAiD,CACnE,CAAC;QACJ,CAAC;QAED,uBACE,IAAI,EAAE,UAAU,EAChB,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE;gBAChC,OAAO;oBACL,OAAO,EAAE,CAAC,CAAC,IAAI;oBACf,MAAM,EAAE,CAAC,CAAC,SAAS,EAAE;iBACtB,CAAC;YACJ,CAAC,CAAC,IACC,KAAK,CAAC,MAAM,EAAE,EACjB;IACJ,CAAC;CACF"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { Nextable, State, StateArgs } from "./state";
|
|
2
|
+
export interface PassArgs extends StateArgs {
|
|
3
|
+
}
|
|
4
|
+
/**
|
|
5
|
+
* The `Pass` state is internally used by the `StepFunctions` component to add a [Pass
|
|
6
|
+
* workflow state](https://docs.aws.amazon.com/step-functions/latest/dg/state-pass.html)
|
|
7
|
+
* to a state machine.
|
|
8
|
+
*
|
|
9
|
+
* :::note
|
|
10
|
+
* This component is not intended to be created directly.
|
|
11
|
+
* :::
|
|
12
|
+
*
|
|
13
|
+
* You'll find this component returned by the `pass` method of the `StepFunctions` component.
|
|
14
|
+
*/
|
|
15
|
+
export declare class Pass extends State implements Nextable {
|
|
16
|
+
protected args: PassArgs;
|
|
17
|
+
constructor(args: PassArgs);
|
|
18
|
+
/**
|
|
19
|
+
* Add a next state to the `Pass` state. After this state completes, it'll
|
|
20
|
+
* transition to the given `state`.
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
*
|
|
24
|
+
* ```ts title="sst.config.ts"
|
|
25
|
+
* sst.aws.StepFunctions.pass({
|
|
26
|
+
* // ...
|
|
27
|
+
* })
|
|
28
|
+
* .next(state);
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
next<T extends State>(state: T): T;
|
|
32
|
+
/**
|
|
33
|
+
* Serialize the state into JSON state definition.
|
|
34
|
+
*/
|
|
35
|
+
protected toJSON(): {
|
|
36
|
+
Type: string;
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
//# sourceMappingURL=pass.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pass.d.ts","sourceRoot":"","sources":["../../../../../../../.sst/platform/src/components/aws/step-functions/pass.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAErD,MAAM,WAAW,QAAS,SAAQ,SAAS;CAAI;AAE/C;;;;;;;;;;GAUG;AACH,qBAAa,IAAK,SAAQ,KAAM,YAAW,QAAQ;IACrC,SAAS,CAAC,IAAI,EAAE,QAAQ;gBAAd,IAAI,EAAE,QAAQ;IAIpC;;;;;;;;;;;;OAYG;IACI,IAAI,CAAC,CAAC,SAAS,KAAK,EAAE,KAAK,EAAE,CAAC,GAAG,CAAC;IAIzC;;OAEG;IACH,SAAS,CAAC,MAAM;;;CAMjB"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { State } from "./state";
|
|
2
|
+
/**
|
|
3
|
+
* The `Pass` state is internally used by the `StepFunctions` component to add a [Pass
|
|
4
|
+
* workflow state](https://docs.aws.amazon.com/step-functions/latest/dg/state-pass.html)
|
|
5
|
+
* to a state machine.
|
|
6
|
+
*
|
|
7
|
+
* :::note
|
|
8
|
+
* This component is not intended to be created directly.
|
|
9
|
+
* :::
|
|
10
|
+
*
|
|
11
|
+
* You'll find this component returned by the `pass` method of the `StepFunctions` component.
|
|
12
|
+
*/
|
|
13
|
+
export class Pass extends State {
|
|
14
|
+
constructor(args) {
|
|
15
|
+
super(args);
|
|
16
|
+
this.args = args;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Add a next state to the `Pass` state. After this state completes, it'll
|
|
20
|
+
* transition to the given `state`.
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
*
|
|
24
|
+
* ```ts title="sst.config.ts"
|
|
25
|
+
* sst.aws.StepFunctions.pass({
|
|
26
|
+
* // ...
|
|
27
|
+
* })
|
|
28
|
+
* .next(state);
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
next(state) {
|
|
32
|
+
return this.addNext(state);
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Serialize the state into JSON state definition.
|
|
36
|
+
*/
|
|
37
|
+
toJSON() {
|
|
38
|
+
return Object.assign({ Type: "Pass" }, super.toJSON());
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
//# sourceMappingURL=pass.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pass.js","sourceRoot":"","sources":["../../../../../../../.sst/platform/src/components/aws/step-functions/pass.ts"],"names":[],"mappings":"AACA,OAAO,EAAY,KAAK,EAAa,MAAM,SAAS,CAAC;AAIrD;;;;;;;;;;GAUG;AACH,MAAM,OAAO,IAAK,SAAQ,KAAK;IAC7B,YAAsB,IAAc;QAClC,KAAK,CAAC,IAAI,CAAC,CAAC;QADQ,SAAI,GAAJ,IAAI,CAAU;IAEpC,CAAC;IAED;;;;;;;;;;;;OAYG;IACI,IAAI,CAAkB,KAAQ;QACnC,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IAC7B,CAAC;IAED;;OAEG;IACO,MAAM;QACd,uBACE,IAAI,EAAE,MAAM,IACT,KAAK,CAAC,MAAM,EAAE,EACjB;IACJ,CAAC;CACF"}
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
import { Duration } from "../../duration";
|
|
2
|
+
import { Input } from "../../input";
|
|
3
|
+
import { FunctionPermissionArgs } from "../function";
|
|
4
|
+
export type JSONata = `{% ${string} %}`;
|
|
5
|
+
export declare function isJSONata(value: string): boolean;
|
|
6
|
+
/**
|
|
7
|
+
* @internal
|
|
8
|
+
*/
|
|
9
|
+
export interface Nextable {
|
|
10
|
+
next: (state: State) => State;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* @internal
|
|
14
|
+
*/
|
|
15
|
+
export interface Failable {
|
|
16
|
+
retry: (props?: RetryArgs) => State;
|
|
17
|
+
catch: (state: State, props?: CatchArgs) => State;
|
|
18
|
+
}
|
|
19
|
+
export interface RetryArgs {
|
|
20
|
+
/**
|
|
21
|
+
* A list of errors that are being retried. By default, this retries all errors.
|
|
22
|
+
*
|
|
23
|
+
* @default `["States.ALL"]`
|
|
24
|
+
*/
|
|
25
|
+
errors?: string[];
|
|
26
|
+
/**
|
|
27
|
+
* The amount of time to wait before the first retry attempt. The maximum value is
|
|
28
|
+
* `99999999 seconds`.
|
|
29
|
+
*
|
|
30
|
+
* Following attempts will retry based on the `backoffRate` multiplier.
|
|
31
|
+
*
|
|
32
|
+
* @default `"1 second"`
|
|
33
|
+
*/
|
|
34
|
+
interval?: Duration;
|
|
35
|
+
/**
|
|
36
|
+
* The maximum number of retries before it falls back to the normal error handling.
|
|
37
|
+
*
|
|
38
|
+
* A value of `0` means the error won't be retried. The maximum value is
|
|
39
|
+
* `99999999`.
|
|
40
|
+
*
|
|
41
|
+
* @default `3`
|
|
42
|
+
*/
|
|
43
|
+
maxAttempts?: number;
|
|
44
|
+
/**
|
|
45
|
+
* The backoff rate. This is a multiplier that increases the interval between
|
|
46
|
+
* retries.
|
|
47
|
+
*
|
|
48
|
+
* For example, if the interval is `1 second` and the backoff rate is `2`, the
|
|
49
|
+
* first retry will happen after `1 second`, and the second retry will happen
|
|
50
|
+
* after `2 * 1 second = 2 seconds`.
|
|
51
|
+
*
|
|
52
|
+
* @default `2`
|
|
53
|
+
*/
|
|
54
|
+
backoffRate?: number;
|
|
55
|
+
}
|
|
56
|
+
export interface CatchArgs {
|
|
57
|
+
/**
|
|
58
|
+
* A list of errors that are being caught. By default, this catches all errors.
|
|
59
|
+
*
|
|
60
|
+
* @default `["States.ALL"]`
|
|
61
|
+
*/
|
|
62
|
+
errors?: string[];
|
|
63
|
+
}
|
|
64
|
+
export interface StateArgs {
|
|
65
|
+
/**
|
|
66
|
+
* The name of the state. This needs to be unique within the state machine.
|
|
67
|
+
*/
|
|
68
|
+
name: string;
|
|
69
|
+
/**
|
|
70
|
+
* Optionally add a comment that describes the state.
|
|
71
|
+
* @internal
|
|
72
|
+
*/
|
|
73
|
+
comment?: Input<string>;
|
|
74
|
+
/**
|
|
75
|
+
* Transform the output of the state. When specified, the value overrides the
|
|
76
|
+
* default output from the state.
|
|
77
|
+
*
|
|
78
|
+
* This takes any JSON value; object, array, string, number, boolean, null.
|
|
79
|
+
*
|
|
80
|
+
* ```ts
|
|
81
|
+
* {
|
|
82
|
+
* output: {
|
|
83
|
+
* charged: true
|
|
84
|
+
* }
|
|
85
|
+
* }
|
|
86
|
+
* ```
|
|
87
|
+
*
|
|
88
|
+
* Or, you can pass in a JSONata expression.
|
|
89
|
+
*
|
|
90
|
+
* ```ts
|
|
91
|
+
* {
|
|
92
|
+
* output: {
|
|
93
|
+
* product: "{% $states.input.product %}"
|
|
94
|
+
* }
|
|
95
|
+
* }
|
|
96
|
+
* ```
|
|
97
|
+
*
|
|
98
|
+
* Learn more about [transforming data with JSONata](https://docs.aws.amazon.com/step-functions/latest/dg/transforming-data.html).
|
|
99
|
+
*/
|
|
100
|
+
output?: Input<JSONata | Record<string, any>>;
|
|
101
|
+
/**
|
|
102
|
+
* Store variables that can be accessed by any state later in the workflow,
|
|
103
|
+
* instead of passing it through each state.
|
|
104
|
+
*
|
|
105
|
+
* This takes a set of key/value pairs. Where the key is the name of the variable
|
|
106
|
+
* that can be accessed by any subsequent state.
|
|
107
|
+
*
|
|
108
|
+
* @example
|
|
109
|
+
*
|
|
110
|
+
* The value can be any JSON value; object, array, string, number, boolean, null.
|
|
111
|
+
*
|
|
112
|
+
* ```ts
|
|
113
|
+
* {
|
|
114
|
+
* assign: {
|
|
115
|
+
* productName: "product1",
|
|
116
|
+
* count: 42,
|
|
117
|
+
* available: true
|
|
118
|
+
* }
|
|
119
|
+
* }
|
|
120
|
+
* ```
|
|
121
|
+
*
|
|
122
|
+
* Or, you can pass in a JSONata expression.
|
|
123
|
+
*
|
|
124
|
+
* ```ts
|
|
125
|
+
* {
|
|
126
|
+
* assign: {
|
|
127
|
+
* product: "{% $states.input.order.product %}",
|
|
128
|
+
* currentPrice: "{% $states.result.Payload.current_price %}"
|
|
129
|
+
* }
|
|
130
|
+
* }
|
|
131
|
+
* ```
|
|
132
|
+
*
|
|
133
|
+
* Learn more about [passing data between states with variables](https://docs.aws.amazon.com/step-functions/latest/dg/workflow-variables.html).
|
|
134
|
+
*/
|
|
135
|
+
assign?: Record<string, any>;
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* The `State` class is the base class for all states in `StepFunctions` state
|
|
139
|
+
* machine.
|
|
140
|
+
*
|
|
141
|
+
* :::note
|
|
142
|
+
* This component is not intended to be created directly.
|
|
143
|
+
* :::
|
|
144
|
+
*
|
|
145
|
+
* This is used for reference only.
|
|
146
|
+
*/
|
|
147
|
+
export declare abstract class State {
|
|
148
|
+
protected args: StateArgs;
|
|
149
|
+
protected _parentGraphState?: State;
|
|
150
|
+
protected _childGraphStates: State[];
|
|
151
|
+
protected _prevState?: State;
|
|
152
|
+
protected _nextState?: State;
|
|
153
|
+
protected _retries?: RetryArgs[];
|
|
154
|
+
protected _catches?: {
|
|
155
|
+
next: State;
|
|
156
|
+
props: CatchArgs;
|
|
157
|
+
}[];
|
|
158
|
+
constructor(args: StateArgs);
|
|
159
|
+
protected addChildGraph<T extends State>(state: T): T;
|
|
160
|
+
protected addNext<T extends State>(state: T): T;
|
|
161
|
+
protected addRetry(args?: RetryArgs): this;
|
|
162
|
+
protected addCatch(state: State, args?: CatchArgs): this;
|
|
163
|
+
/**
|
|
164
|
+
* @internal
|
|
165
|
+
*/
|
|
166
|
+
get name(): string;
|
|
167
|
+
/**
|
|
168
|
+
* @internal
|
|
169
|
+
*/
|
|
170
|
+
getRoot(): State;
|
|
171
|
+
/**
|
|
172
|
+
* @internal
|
|
173
|
+
*/
|
|
174
|
+
getHead(): State;
|
|
175
|
+
/**
|
|
176
|
+
* Assert that the state name is unique.
|
|
177
|
+
* @internal
|
|
178
|
+
*/
|
|
179
|
+
assertStateNameUnique(states?: Map<string, State>): void;
|
|
180
|
+
/**
|
|
181
|
+
* Assert that the state is not reused.
|
|
182
|
+
* @internal
|
|
183
|
+
*/
|
|
184
|
+
assertStateNotReused(states?: Map<State, string>, graphId?: string): void;
|
|
185
|
+
/**
|
|
186
|
+
* Get the permissions required for the state.
|
|
187
|
+
* @internal
|
|
188
|
+
*/
|
|
189
|
+
getPermissions(): FunctionPermissionArgs[];
|
|
190
|
+
/**
|
|
191
|
+
* Serialize the state into JSON state definition.
|
|
192
|
+
* @internal
|
|
193
|
+
*/
|
|
194
|
+
serialize(): Record<string, any>;
|
|
195
|
+
protected toJSON(): Record<string, any>;
|
|
196
|
+
}
|
|
197
|
+
//# sourceMappingURL=state.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"state.d.ts","sourceRoot":"","sources":["../../../../../../../.sst/platform/src/components/aws/step-functions/state.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAa,MAAM,gBAAgB,CAAC;AACrD,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAErD,MAAM,MAAM,OAAO,GAAG,MAAM,MAAM,KAAK,CAAC;AAExC,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,WAEtC;AAmBD;;GAEG;AACH,MAAM,WAAW,QAAQ;IACvB,IAAI,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,KAAK,CAAC;CAC/B;AAED;;GAEG;AACH,MAAM,WAAW,QAAQ;IACvB,KAAK,EAAE,CAAC,KAAK,CAAC,EAAE,SAAS,KAAK,KAAK,CAAC;IACpC,KAAK,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,EAAE,SAAS,KAAK,KAAK,CAAC;CACnD;AAED,MAAM,WAAW,SAAS;IACxB;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB;;;;;;;OAOG;IACH,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB;;;;;;;OAOG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;;;;;;OASG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,SAAS;IACxB;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;CACnB;AAED,MAAM,WAAW,SAAS;IACxB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACxB;;;;;;;;;;;;;;;;;;;;;;;;;OAyBG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,OAAO,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CAAC;IAC9C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAiCG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAC9B;AAED;;;;;;;;;GASG;AACH,8BAAsB,KAAK;IAQb,SAAS,CAAC,IAAI,EAAE,SAAS;IAPrC,SAAS,CAAC,iBAAiB,CAAC,EAAE,KAAK,CAAC;IACpC,SAAS,CAAC,iBAAiB,EAAE,KAAK,EAAE,CAAM;IAC1C,SAAS,CAAC,UAAU,CAAC,EAAE,KAAK,CAAC;IAC7B,SAAS,CAAC,UAAU,CAAC,EAAE,KAAK,CAAC;IAC7B,SAAS,CAAC,QAAQ,CAAC,EAAE,SAAS,EAAE,CAAC;IACjC,SAAS,CAAC,QAAQ,CAAC,EAAE;QAAE,IAAI,EAAE,KAAK,CAAC;QAAC,KAAK,EAAE,SAAS,CAAA;KAAE,EAAE,CAAC;gBAEnC,IAAI,EAAE,SAAS;IAErC,SAAS,CAAC,aAAa,CAAC,CAAC,SAAS,KAAK,EAAE,KAAK,EAAE,CAAC,GAAG,CAAC;IAWrD,SAAS,CAAC,OAAO,CAAC,CAAC,SAAS,KAAK,EAAE,KAAK,EAAE,CAAC,GAAG,CAAC;IAW/C,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,SAAS;IAYnC,SAAS,CAAC,QAAQ,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,GAAE,SAAc;IAWrD;;OAEG;IACH,IAAW,IAAI,WAEd;IAED;;OAEG;IACI,OAAO,IAAI,KAAK;IAMvB;;OAEG;IACI,OAAO,IAAI,KAAK;IAIvB;;;OAGG;IACI,qBAAqB,CAAC,MAAM,GAAE,GAAG,CAAC,MAAM,EAAE,KAAK,CAAa;IAcnE;;;OAGG;IACI,oBAAoB,CACzB,MAAM,GAAE,GAAG,CAAC,KAAK,EAAE,MAAM,CAAa,EACtC,OAAO,GAAE,MAAe;IAkB1B;;;OAGG;IACI,cAAc,IAAI,sBAAsB,EAAE;IAOjD;;;OAGG;IACI,SAAS,IAAI,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IAWvC,SAAS,CAAC,MAAM,IAAI,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;CAmBxC"}
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import { randomBytes } from "crypto";
|
|
2
|
+
import { toSeconds } from "../../duration";
|
|
3
|
+
export function isJSONata(value) {
|
|
4
|
+
return value.startsWith("{%") && value.endsWith("%}");
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* The `State` class is the base class for all states in `StepFunctions` state
|
|
8
|
+
* machine.
|
|
9
|
+
*
|
|
10
|
+
* :::note
|
|
11
|
+
* This component is not intended to be created directly.
|
|
12
|
+
* :::
|
|
13
|
+
*
|
|
14
|
+
* This is used for reference only.
|
|
15
|
+
*/
|
|
16
|
+
export class State {
|
|
17
|
+
constructor(args) {
|
|
18
|
+
this.args = args;
|
|
19
|
+
this._childGraphStates = []; // only used for Parallel, Map
|
|
20
|
+
}
|
|
21
|
+
addChildGraph(state) {
|
|
22
|
+
if (state._parentGraphState)
|
|
23
|
+
throw new Error(`Cannot reuse the "${state.name}" state. States cannot be reused in Map or Parallel branches.`);
|
|
24
|
+
this._childGraphStates.push(state);
|
|
25
|
+
state._parentGraphState = this;
|
|
26
|
+
return state;
|
|
27
|
+
}
|
|
28
|
+
addNext(state) {
|
|
29
|
+
if (this._nextState)
|
|
30
|
+
throw new Error(`The "${this.name}" state already has a next state. States cannot have multiple next states.`);
|
|
31
|
+
this._nextState = state;
|
|
32
|
+
state._prevState = this;
|
|
33
|
+
return state;
|
|
34
|
+
}
|
|
35
|
+
addRetry(args) {
|
|
36
|
+
this._retries = this._retries || [];
|
|
37
|
+
this._retries.push(Object.assign({ errors: ["States.ALL"], backoffRate: 2, interval: "1 second", maxAttempts: 3 }, args));
|
|
38
|
+
return this;
|
|
39
|
+
}
|
|
40
|
+
addCatch(state, args = {}) {
|
|
41
|
+
var _a;
|
|
42
|
+
this._catches = this._catches || [];
|
|
43
|
+
this._catches.push({
|
|
44
|
+
next: state.getHead(),
|
|
45
|
+
props: {
|
|
46
|
+
errors: (_a = args.errors) !== null && _a !== void 0 ? _a : ["States.ALL"],
|
|
47
|
+
},
|
|
48
|
+
});
|
|
49
|
+
return this;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* @internal
|
|
53
|
+
*/
|
|
54
|
+
get name() {
|
|
55
|
+
return this.args.name;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* @internal
|
|
59
|
+
*/
|
|
60
|
+
getRoot() {
|
|
61
|
+
var _a, _b, _c, _d;
|
|
62
|
+
return ((_d = (_b = (_a = this._prevState) === null || _a === void 0 ? void 0 : _a.getRoot()) !== null && _b !== void 0 ? _b : (_c = this._parentGraphState) === null || _c === void 0 ? void 0 : _c.getRoot()) !== null && _d !== void 0 ? _d : this);
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* @internal
|
|
66
|
+
*/
|
|
67
|
+
getHead() {
|
|
68
|
+
var _a, _b;
|
|
69
|
+
return (_b = (_a = this._prevState) === null || _a === void 0 ? void 0 : _a.getHead()) !== null && _b !== void 0 ? _b : this;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Assert that the state name is unique.
|
|
73
|
+
* @internal
|
|
74
|
+
*/
|
|
75
|
+
assertStateNameUnique(states = new Map()) {
|
|
76
|
+
var _a, _b;
|
|
77
|
+
const existing = states.get(this.name);
|
|
78
|
+
if (existing && existing !== this)
|
|
79
|
+
throw new Error(`Multiple states with the same name "${this.name}". State names must be unique.`);
|
|
80
|
+
states.set(this.name, this);
|
|
81
|
+
(_a = this._nextState) === null || _a === void 0 ? void 0 : _a.assertStateNameUnique(states);
|
|
82
|
+
(_b = this._catches) === null || _b === void 0 ? void 0 : _b.forEach((c) => c.next.assertStateNameUnique(states));
|
|
83
|
+
this._childGraphStates.forEach((c) => c.assertStateNameUnique(states));
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Assert that the state is not reused.
|
|
87
|
+
* @internal
|
|
88
|
+
*/
|
|
89
|
+
assertStateNotReused(states = new Map(), graphId = "main") {
|
|
90
|
+
var _a, _b;
|
|
91
|
+
const existing = states.get(this);
|
|
92
|
+
if (existing && existing !== graphId)
|
|
93
|
+
throw new Error(`Cannot reuse the "${this.name}" state. States cannot be reused in Map or Parallel branches.`);
|
|
94
|
+
states.set(this, graphId);
|
|
95
|
+
(_a = this._nextState) === null || _a === void 0 ? void 0 : _a.assertStateNotReused(states, graphId);
|
|
96
|
+
(_b = this._catches) === null || _b === void 0 ? void 0 : _b.forEach((c) => c.next.assertStateNotReused(states, graphId));
|
|
97
|
+
this._childGraphStates.forEach((c) => {
|
|
98
|
+
const childGraphId = randomBytes(16).toString("hex");
|
|
99
|
+
c.assertStateNotReused(states, childGraphId);
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* Get the permissions required for the state.
|
|
104
|
+
* @internal
|
|
105
|
+
*/
|
|
106
|
+
getPermissions() {
|
|
107
|
+
var _a;
|
|
108
|
+
return [
|
|
109
|
+
...(((_a = this._nextState) === null || _a === void 0 ? void 0 : _a.getPermissions()) || []),
|
|
110
|
+
...(this._catches || []).flatMap((c) => c.next.getPermissions()),
|
|
111
|
+
];
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* Serialize the state into JSON state definition.
|
|
115
|
+
* @internal
|
|
116
|
+
*/
|
|
117
|
+
serialize() {
|
|
118
|
+
var _a, _b;
|
|
119
|
+
return Object.assign(Object.assign({ [this.name]: this.toJSON() }, (_a = this._nextState) === null || _a === void 0 ? void 0 : _a.serialize()), (_b = this._catches) === null || _b === void 0 ? void 0 : _b.reduce((acc, c) => (Object.assign(Object.assign({}, acc), c.next.serialize())), {}));
|
|
120
|
+
}
|
|
121
|
+
toJSON() {
|
|
122
|
+
var _a, _b;
|
|
123
|
+
return Object.assign(Object.assign({ QueryLanguage: "JSONata", Comment: this.args.comment, Output: this.args.output, Assign: this.args.assign }, (this._nextState ? { Next: this._nextState.name } : { End: true })), { Retry: (_a = this._retries) === null || _a === void 0 ? void 0 : _a.map((r) => ({
|
|
124
|
+
ErrorEquals: r.errors,
|
|
125
|
+
IntervalSeconds: toSeconds(r.interval),
|
|
126
|
+
MaxAttempts: r.maxAttempts,
|
|
127
|
+
BackoffRate: r.backoffRate,
|
|
128
|
+
})), Catch: (_b = this._catches) === null || _b === void 0 ? void 0 : _b.map((c) => ({
|
|
129
|
+
ErrorEquals: c.props.errors,
|
|
130
|
+
Next: c.next.name,
|
|
131
|
+
})) });
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
//# sourceMappingURL=state.js.map
|