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,473 @@
|
|
|
1
|
+
import { ComponentResourceOptions } from "@pulumi/pulumi";
|
|
2
|
+
import { Component, Transform } from "../component";
|
|
3
|
+
import { cloudwatch, sfn } from "@pulumi/aws";
|
|
4
|
+
import { Link } from "../link";
|
|
5
|
+
import { State } from "./step-functions/state";
|
|
6
|
+
import { Choice, ChoiceArgs } from "./step-functions/choice";
|
|
7
|
+
import { Fail, FailArgs } from "./step-functions/fail";
|
|
8
|
+
import { Map, MapArgs } from "./step-functions/map";
|
|
9
|
+
import { Parallel, ParallelArgs } from "./step-functions/parallel";
|
|
10
|
+
import { Pass, PassArgs } from "./step-functions/pass";
|
|
11
|
+
import { Succeed, SucceedArgs } from "./step-functions/succeed";
|
|
12
|
+
import { Task, TaskArgs, LambdaInvokeArgs, SnsPublishArgs, SqsSendMessageArgs, EcsRunTaskArgs, EventBridgePutEventsArgs } from "./step-functions/task";
|
|
13
|
+
import { Wait, WaitArgs } from "./step-functions/wait";
|
|
14
|
+
import { Input } from "../input";
|
|
15
|
+
import { RETENTION } from "./logging";
|
|
16
|
+
export interface StepFunctionsArgs {
|
|
17
|
+
/**
|
|
18
|
+
* The type of state machine workflow to create.
|
|
19
|
+
*
|
|
20
|
+
* :::caution
|
|
21
|
+
* Changing the type of the state machine workflow will cause the state machine
|
|
22
|
+
* to be destroyed and recreated.
|
|
23
|
+
* :::
|
|
24
|
+
*
|
|
25
|
+
* The `standard` workflow is the default and is meant for long running workflows.
|
|
26
|
+
* The `express` workflow is meant for workflows shorter than 5 minutes.
|
|
27
|
+
*
|
|
28
|
+
* This is because the `express` workflow is run in a single Lambda function. As a
|
|
29
|
+
* result, it's faster and cheaper to run. So if your workflow are short, the
|
|
30
|
+
* `express` workflow is recommended.
|
|
31
|
+
*
|
|
32
|
+
* @default `"standard"`
|
|
33
|
+
* @example
|
|
34
|
+
* ```js
|
|
35
|
+
* {
|
|
36
|
+
* type: "express"
|
|
37
|
+
* }
|
|
38
|
+
* ```
|
|
39
|
+
*/
|
|
40
|
+
type?: Input<"standard" | "express">;
|
|
41
|
+
/**
|
|
42
|
+
* The definition of the state machine. It takes a chain of `State` objects.
|
|
43
|
+
*
|
|
44
|
+
* @example
|
|
45
|
+
*
|
|
46
|
+
* ```ts title="sst.config.ts"
|
|
47
|
+
* const foo = sst.aws.StepFunctions.pass({ name: "Foo" });
|
|
48
|
+
* const bar = sst.aws.StepFunctions.succeed({ name: "Bar" });
|
|
49
|
+
*
|
|
50
|
+
* new sst.aws.StepFunctions("MyStateMachine", {
|
|
51
|
+
* definition: foo.next(bar)
|
|
52
|
+
* });
|
|
53
|
+
* ```
|
|
54
|
+
*/
|
|
55
|
+
definition: State;
|
|
56
|
+
/**
|
|
57
|
+
* Configure the execution logs in CloudWatch. Or pass in `false` to disable writing logs.
|
|
58
|
+
* @default `{retention: "1 month", level: "error", includeData: false}`
|
|
59
|
+
* @example
|
|
60
|
+
* ```js
|
|
61
|
+
* {
|
|
62
|
+
* logging: false
|
|
63
|
+
* }
|
|
64
|
+
* ```
|
|
65
|
+
*/
|
|
66
|
+
logging?: Input<false | {
|
|
67
|
+
/**
|
|
68
|
+
* The duration the logs are kept in CloudWatch.
|
|
69
|
+
*
|
|
70
|
+
* @default `1 month`
|
|
71
|
+
* @example
|
|
72
|
+
* ```js
|
|
73
|
+
* {
|
|
74
|
+
* logging: {
|
|
75
|
+
* retention: "forever"
|
|
76
|
+
* }
|
|
77
|
+
* }
|
|
78
|
+
* ```
|
|
79
|
+
*/
|
|
80
|
+
retention?: Input<keyof typeof RETENTION>;
|
|
81
|
+
/**
|
|
82
|
+
* Specify whether execution data is included in the logs.
|
|
83
|
+
*
|
|
84
|
+
* @default `false`
|
|
85
|
+
* @example
|
|
86
|
+
* ```js
|
|
87
|
+
* {
|
|
88
|
+
* logging: {
|
|
89
|
+
* includeData: true
|
|
90
|
+
* }
|
|
91
|
+
* }
|
|
92
|
+
* ```
|
|
93
|
+
*/
|
|
94
|
+
includeData?: Input<boolean>;
|
|
95
|
+
/**
|
|
96
|
+
* Specify the type of execution events that are logged. Read more about the
|
|
97
|
+
* [Step Functions log level](https://docs.aws.amazon.com/step-functions/latest/dg/cw-logs.html#cloudwatch-log-level).
|
|
98
|
+
*
|
|
99
|
+
* @default `"error"`
|
|
100
|
+
* @example
|
|
101
|
+
* ```js
|
|
102
|
+
* {
|
|
103
|
+
* logging: {
|
|
104
|
+
* level: "all"
|
|
105
|
+
* }
|
|
106
|
+
* }
|
|
107
|
+
* ```
|
|
108
|
+
*/
|
|
109
|
+
level?: Input<"all" | "error" | "fatal">;
|
|
110
|
+
}>;
|
|
111
|
+
/**
|
|
112
|
+
* [Transform](/docs/components#transform) how this component creates its underlying resources.
|
|
113
|
+
*/
|
|
114
|
+
transform?: {
|
|
115
|
+
/**
|
|
116
|
+
* Transform the Step Functions StateMachine resource.
|
|
117
|
+
*/
|
|
118
|
+
stateMachine?: Transform<sfn.StateMachineArgs>;
|
|
119
|
+
/**
|
|
120
|
+
* Transform the Step Functions LogGroup resource.
|
|
121
|
+
*/
|
|
122
|
+
logGroup?: Transform<cloudwatch.LogGroupArgs>;
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* The `StepFunctions` component lets you add state machines to your app
|
|
127
|
+
* using [AWS Step Functions](https://docs.aws.amazon.com/step-functions/latest/dg/welcome.html).
|
|
128
|
+
*
|
|
129
|
+
* :::note
|
|
130
|
+
* This component is currently in beta. Please [report any issues](https://github.com/sst/sst/issues) you find.
|
|
131
|
+
* :::
|
|
132
|
+
*
|
|
133
|
+
* You define your state machine using a collection of states. Where each state
|
|
134
|
+
* needs a unique name. It uses [JSONata](https://jsonata.org) for transforming
|
|
135
|
+
* data between states.
|
|
136
|
+
*
|
|
137
|
+
* @example
|
|
138
|
+
* #### Minimal example
|
|
139
|
+
*
|
|
140
|
+
* The state machine definition is compiled into JSON and passed to AWS.
|
|
141
|
+
*
|
|
142
|
+
* ```ts title="sst.config.ts"
|
|
143
|
+
* const foo = sst.aws.StepFunctions.pass({ name: "Foo" });
|
|
144
|
+
* const bar = sst.aws.StepFunctions.succeed({ name: "Bar" });
|
|
145
|
+
*
|
|
146
|
+
* const definition = foo.next(bar);
|
|
147
|
+
*
|
|
148
|
+
* new sst.aws.StepFunctions("MyStateMachine", {
|
|
149
|
+
* definition
|
|
150
|
+
* });
|
|
151
|
+
* ```
|
|
152
|
+
*
|
|
153
|
+
* #### Invoking a Lambda function
|
|
154
|
+
*
|
|
155
|
+
* Create a function and invoke it from a state machine.
|
|
156
|
+
*
|
|
157
|
+
* ```ts title="sst.config.ts" {5-8,12}
|
|
158
|
+
* const myFunction = new sst.aws.Function("MyFunction", {
|
|
159
|
+
* handler: "src/index.handler"
|
|
160
|
+
* });
|
|
161
|
+
*
|
|
162
|
+
* const invoke = sst.aws.StepFunctions.lambdaInvoke({
|
|
163
|
+
* name: "InvokeMyFunction",
|
|
164
|
+
* function: myFunction
|
|
165
|
+
* });
|
|
166
|
+
* const done = sst.aws.StepFunctions.succeed({ name: "Done" });
|
|
167
|
+
*
|
|
168
|
+
* new sst.aws.StepFunctions("MyStateMachine", {
|
|
169
|
+
* definition: invoke.next(done)
|
|
170
|
+
* });
|
|
171
|
+
* ```
|
|
172
|
+
*
|
|
173
|
+
* #### Use the express workflow
|
|
174
|
+
*
|
|
175
|
+
* ```ts title="sst.config.ts" {5}
|
|
176
|
+
* const foo = sst.aws.StepFunctions.pass({ name: "Foo" });
|
|
177
|
+
* const bar = sst.aws.StepFunctions.succeed({ name: "Bar" });
|
|
178
|
+
*
|
|
179
|
+
* new sst.aws.StepFunctions("MyStateMachine", {
|
|
180
|
+
* type: "express",
|
|
181
|
+
* definition: foo.next(bar)
|
|
182
|
+
* });
|
|
183
|
+
* ```
|
|
184
|
+
*/
|
|
185
|
+
export declare class StepFunctions extends Component implements Link.Linkable {
|
|
186
|
+
private stateMachine;
|
|
187
|
+
constructor(name: string, args: StepFunctionsArgs, opts?: ComponentResourceOptions);
|
|
188
|
+
/**
|
|
189
|
+
* The State Machine ARN.
|
|
190
|
+
*/
|
|
191
|
+
get arn(): $util.Output<string>;
|
|
192
|
+
/**
|
|
193
|
+
* The underlying [resources](/docs/components/#nodes) this component creates.
|
|
194
|
+
*/
|
|
195
|
+
get nodes(): {
|
|
196
|
+
/**
|
|
197
|
+
* The Step Function State Machine resource.
|
|
198
|
+
*/
|
|
199
|
+
stateMachine: import("@pulumi/aws/sfn/stateMachine").StateMachine;
|
|
200
|
+
};
|
|
201
|
+
/**
|
|
202
|
+
* A `Choice` state is used to conditionally continue to different states based
|
|
203
|
+
* on the matched condition.
|
|
204
|
+
*
|
|
205
|
+
* @example
|
|
206
|
+
* ```ts title="sst.config.ts"
|
|
207
|
+
* const processPayment = sst.aws.StepFunctions.choice({ name: "ProcessPayment" });
|
|
208
|
+
*
|
|
209
|
+
* const makePayment = sst.aws.StepFunctions.lambdaInvoke({ name: "MakePayment" });
|
|
210
|
+
* const sendReceipt = sst.aws.StepFunctions.lambdaInvoke({ name: "SendReceipt" });
|
|
211
|
+
* const failure = sst.aws.StepFunctions.fail({ name: "Failure" });
|
|
212
|
+
*
|
|
213
|
+
* processPayment.when("{% $states.input.status === 'unpaid' %}", makePayment);
|
|
214
|
+
* processPayment.when("{% $states.input.status === 'paid' %}", sendReceipt);
|
|
215
|
+
* processPayment.otherwise(failure);
|
|
216
|
+
* ```
|
|
217
|
+
*/
|
|
218
|
+
static choice(args: ChoiceArgs): Choice;
|
|
219
|
+
/**
|
|
220
|
+
* A `Fail` state is used to fail the execution of a state machine.
|
|
221
|
+
*
|
|
222
|
+
* @example
|
|
223
|
+
* ```ts title="sst.config.ts"
|
|
224
|
+
* sst.aws.StepFunctions.fail({ name: "Failure" });
|
|
225
|
+
* ```
|
|
226
|
+
*/
|
|
227
|
+
static fail(args: FailArgs): Fail;
|
|
228
|
+
/**
|
|
229
|
+
* A `Map` state is used to iterate over a list of items and execute a task for
|
|
230
|
+
* each item.
|
|
231
|
+
*
|
|
232
|
+
* @example
|
|
233
|
+
* ```ts title="sst.config.ts"
|
|
234
|
+
* const processor = sst.aws.StepFunctions.lambdaInvoke({
|
|
235
|
+
* name: "Processor",
|
|
236
|
+
* function: "src/processor.handler"
|
|
237
|
+
* });
|
|
238
|
+
*
|
|
239
|
+
* sst.aws.StepFunctions.map({
|
|
240
|
+
* processor,
|
|
241
|
+
* name: "Map",
|
|
242
|
+
* items: "{% $states.input.items %}"
|
|
243
|
+
* });
|
|
244
|
+
* ```
|
|
245
|
+
*/
|
|
246
|
+
static map(args: MapArgs): Map;
|
|
247
|
+
/**
|
|
248
|
+
* A `Parallel` state is used to execute multiple branches of a state in parallel.
|
|
249
|
+
*
|
|
250
|
+
* @example
|
|
251
|
+
* ```ts title="sst.config.ts"
|
|
252
|
+
* const processorA = sst.aws.StepFunctions.lambdaInvoke({
|
|
253
|
+
* name: "ProcessorA",
|
|
254
|
+
* function: "src/processorA.handler"
|
|
255
|
+
* });
|
|
256
|
+
*
|
|
257
|
+
* const processorB = sst.aws.StepFunctions.lambdaInvoke({
|
|
258
|
+
* name: "ProcessorB",
|
|
259
|
+
* function: "src/processorB.handler"
|
|
260
|
+
* });
|
|
261
|
+
*
|
|
262
|
+
* const parallel = sst.aws.StepFunctions.parallel({ name: "Parallel" });
|
|
263
|
+
*
|
|
264
|
+
* parallel.branch(processorA);
|
|
265
|
+
* parallel.branch(processorB);
|
|
266
|
+
* ```
|
|
267
|
+
*/
|
|
268
|
+
static parallel(args: ParallelArgs): Parallel;
|
|
269
|
+
/**
|
|
270
|
+
* A `Pass` state is used to pass the input to the next state. It's useful for
|
|
271
|
+
* transforming the input before passing it along.
|
|
272
|
+
*
|
|
273
|
+
* @example
|
|
274
|
+
* ```ts title="sst.config.ts"
|
|
275
|
+
* sst.aws.StepFunctions.pass({
|
|
276
|
+
* name: "Pass",
|
|
277
|
+
* output: "{% $states.input.message %}"
|
|
278
|
+
* });
|
|
279
|
+
* ```
|
|
280
|
+
*/
|
|
281
|
+
static pass(args: PassArgs): Pass;
|
|
282
|
+
/**
|
|
283
|
+
* A `Succeed` state is used to indicate that the execution of a state machine
|
|
284
|
+
* has succeeded.
|
|
285
|
+
*
|
|
286
|
+
* @example
|
|
287
|
+
* ```ts title="sst.config.ts"
|
|
288
|
+
* sst.aws.StepFunctions.succeed({ name: "Succeed" });
|
|
289
|
+
* ```
|
|
290
|
+
*/
|
|
291
|
+
static succeed(args: SucceedArgs): Succeed;
|
|
292
|
+
/**
|
|
293
|
+
* A `Wait` state is used to wait for a specific amount of time before continuing
|
|
294
|
+
* to the next state.
|
|
295
|
+
*
|
|
296
|
+
* @example
|
|
297
|
+
*
|
|
298
|
+
* For example, wait for 10 seconds before continuing to the next state.
|
|
299
|
+
*
|
|
300
|
+
* ```ts title="sst.config.ts"
|
|
301
|
+
* sst.aws.StepFunctions.wait({
|
|
302
|
+
* name: "Wait",
|
|
303
|
+
* time: 10
|
|
304
|
+
* });
|
|
305
|
+
* ```
|
|
306
|
+
*
|
|
307
|
+
* Alternatively, you can wait until a specific timestamp.
|
|
308
|
+
*
|
|
309
|
+
* ```ts title="sst.config.ts"
|
|
310
|
+
* sst.aws.StepFunctions.wait({
|
|
311
|
+
* name: "Wait",
|
|
312
|
+
* timestamp: "2026-01-01T00:00:00Z"
|
|
313
|
+
* });
|
|
314
|
+
* ```
|
|
315
|
+
*/
|
|
316
|
+
static wait(args: WaitArgs): Wait;
|
|
317
|
+
/**
|
|
318
|
+
* A `Task` state can be used to make calls to AWS resources. We created a few
|
|
319
|
+
* convenience methods for common tasks like:
|
|
320
|
+
*
|
|
321
|
+
* - `sst.aws.StepFunctions.lambdaInvoke` to invoke a Lambda function.
|
|
322
|
+
* - `sst.aws.StepFunctions.ecsRunTask` to run an ECS task.
|
|
323
|
+
* - `sst.aws.StepFunctions.eventBridgePutEvents` to send custom events to
|
|
324
|
+
* EventBridge.
|
|
325
|
+
*
|
|
326
|
+
* For everything else, you can use the `Task` state.
|
|
327
|
+
*
|
|
328
|
+
* @example
|
|
329
|
+
*
|
|
330
|
+
* For example, to start an AWS CodeBuild build.
|
|
331
|
+
*
|
|
332
|
+
* ```ts title="sst.config.ts"
|
|
333
|
+
* sst.aws.StepFunctions.task({
|
|
334
|
+
* name: "Task",
|
|
335
|
+
* resource: "arn:aws:states:::codebuild:startBuild",
|
|
336
|
+
* arguments: {
|
|
337
|
+
* projectName: "my-codebuild-project"
|
|
338
|
+
* },
|
|
339
|
+
* permissions: [
|
|
340
|
+
* {
|
|
341
|
+
* actions: ["codebuild:StartBuild"],
|
|
342
|
+
* resources: ["*"]
|
|
343
|
+
* }
|
|
344
|
+
* ]
|
|
345
|
+
* });
|
|
346
|
+
* ```
|
|
347
|
+
*/
|
|
348
|
+
static task(args: TaskArgs): Task;
|
|
349
|
+
/**
|
|
350
|
+
* Create a `Task` state that invokes a Lambda function. [Learn more](https://docs.aws.amazon.com/lambda/latest/api/API_Invoke.html).
|
|
351
|
+
*
|
|
352
|
+
* @example
|
|
353
|
+
* ```ts title="sst.config.ts"
|
|
354
|
+
* sst.aws.StepFunctions.lambdaInvoke({
|
|
355
|
+
* name: "LambdaInvoke",
|
|
356
|
+
* function: "src/index.handler"
|
|
357
|
+
* });
|
|
358
|
+
* ```
|
|
359
|
+
*
|
|
360
|
+
* Customize the function.
|
|
361
|
+
*
|
|
362
|
+
* ```ts title="sst.config.ts"
|
|
363
|
+
* sst.aws.StepFunctions.lambdaInvoke({
|
|
364
|
+
* name: "LambdaInvoke",
|
|
365
|
+
* function: {
|
|
366
|
+
* handler: "src/index.handler"
|
|
367
|
+
* timeout: "60 seconds",
|
|
368
|
+
* }
|
|
369
|
+
* });
|
|
370
|
+
* ```
|
|
371
|
+
*
|
|
372
|
+
* Pass in an existing `Function` component.
|
|
373
|
+
*
|
|
374
|
+
* ```ts title="sst.config.ts"
|
|
375
|
+
* const myLambda = new sst.aws.Function("MyLambda", {
|
|
376
|
+
* handler: "src/index.handler"
|
|
377
|
+
* });
|
|
378
|
+
*
|
|
379
|
+
* sst.aws.StepFunctions.lambdaInvoke({
|
|
380
|
+
* name: "LambdaInvoke",
|
|
381
|
+
* function: myLambda
|
|
382
|
+
* });
|
|
383
|
+
* ```
|
|
384
|
+
*
|
|
385
|
+
* Or pass in the ARN of an existing Lambda function.
|
|
386
|
+
*
|
|
387
|
+
* ```ts title="sst.config.ts"
|
|
388
|
+
* sst.aws.StepFunctions.lambdaInvoke({
|
|
389
|
+
* name: "LambdaInvoke",
|
|
390
|
+
* function: "arn:aws:lambda:us-east-1:123456789012:function:my-function"
|
|
391
|
+
* });
|
|
392
|
+
* ```
|
|
393
|
+
*/
|
|
394
|
+
static lambdaInvoke(args: LambdaInvokeArgs): Task;
|
|
395
|
+
/**
|
|
396
|
+
* Create a `Task` state that publishes a message to an SNS topic. [Learn more](https://docs.aws.amazon.com/sns/latest/api/API_Publish.html).
|
|
397
|
+
*
|
|
398
|
+
* @example
|
|
399
|
+
* ```ts title="sst.config.ts"
|
|
400
|
+
* const myTopic = new sst.aws.SnsTopic("MyTopic");
|
|
401
|
+
*
|
|
402
|
+
* sst.aws.StepFunctions.snsPublish({
|
|
403
|
+
* name: "SnsPublish",
|
|
404
|
+
* topic: myTopic,
|
|
405
|
+
* message: "Hello, world!"
|
|
406
|
+
* });
|
|
407
|
+
* ```
|
|
408
|
+
*/
|
|
409
|
+
static snsPublish(args: SnsPublishArgs): Task;
|
|
410
|
+
/**
|
|
411
|
+
* Create a `Task` state that sends a message to an SQS queue. [Learn more](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/APIReference/API_SendMessage.html).
|
|
412
|
+
*
|
|
413
|
+
* @example
|
|
414
|
+
* ```ts title="sst.config.ts"
|
|
415
|
+
* const myQueue = new sst.aws.Queue("MyQueue");
|
|
416
|
+
*
|
|
417
|
+
* sst.aws.StepFunctions.sqsSendMessage({
|
|
418
|
+
* name: "SqsSendMessage",
|
|
419
|
+
* queue: myQueue,
|
|
420
|
+
* messageBody: "Hello, world!"
|
|
421
|
+
* });
|
|
422
|
+
* ```
|
|
423
|
+
*/
|
|
424
|
+
static sqsSendMessage(args: SqsSendMessageArgs): Task;
|
|
425
|
+
/**
|
|
426
|
+
* Create a `Task` state that runs an ECS task using the [`Task`](/docs/component/aws/task) component. [Learn more](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_RunTask.html).
|
|
427
|
+
*
|
|
428
|
+
* @example
|
|
429
|
+
* ```ts title="sst.config.ts"
|
|
430
|
+
* const myCluster = new sst.aws.Cluster("MyCluster");
|
|
431
|
+
* const myTask = new sst.aws.Task("MyTask", { cluster: myCluster });
|
|
432
|
+
*
|
|
433
|
+
* sst.aws.StepFunctions.ecsRunTask({
|
|
434
|
+
* name: "RunTask",
|
|
435
|
+
* task: myTask
|
|
436
|
+
* });
|
|
437
|
+
* ```
|
|
438
|
+
*/
|
|
439
|
+
static ecsRunTask(args: EcsRunTaskArgs): Task;
|
|
440
|
+
/**
|
|
441
|
+
* Create a `Task` state that sends custom events to one or more EventBridge buses
|
|
442
|
+
* using the [`Bus`](/docs/component/aws/bus) component. [Learn more](https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_PutEvents.html).
|
|
443
|
+
*
|
|
444
|
+
* @example
|
|
445
|
+
* ```ts title="sst.config.ts"
|
|
446
|
+
* const myBus = new sst.aws.EventBus("MyBus");
|
|
447
|
+
*
|
|
448
|
+
* sst.aws.StepFunctions.eventBridgePutEvents({
|
|
449
|
+
* name: "EventBridgePutEvents",
|
|
450
|
+
* events: [
|
|
451
|
+
* {
|
|
452
|
+
* bus: myBus,
|
|
453
|
+
* source: "my-source"
|
|
454
|
+
* }
|
|
455
|
+
* ]
|
|
456
|
+
* });
|
|
457
|
+
* ```
|
|
458
|
+
*/
|
|
459
|
+
static eventBridgePutEvents(args: EventBridgePutEventsArgs): Task;
|
|
460
|
+
/** @internal */
|
|
461
|
+
getSSTLink(): {
|
|
462
|
+
properties: {
|
|
463
|
+
arn: $util.Output<string>;
|
|
464
|
+
};
|
|
465
|
+
include: {
|
|
466
|
+
effect?: "allow" | "deny" | undefined;
|
|
467
|
+
actions: string[];
|
|
468
|
+
resources: Input<Input<string>[]>;
|
|
469
|
+
type: "aws.permission";
|
|
470
|
+
}[];
|
|
471
|
+
};
|
|
472
|
+
}
|
|
473
|
+
//# sourceMappingURL=step-functions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"step-functions.d.ts","sourceRoot":"","sources":["../../../../../../.sst/platform/src/components/aws/step-functions.ts"],"names":[],"mappings":"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"}
|