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,295 @@
|
|
|
1
|
+
import { ComponentResourceOptions, Output } from "@pulumi/pulumi";
|
|
2
|
+
import { Component, Transform } from "../component";
|
|
3
|
+
import { Link } from "../link";
|
|
4
|
+
import { Input } from "../input.js";
|
|
5
|
+
import { opensearch } from "@pulumi/aws";
|
|
6
|
+
import { SizeGbTb } from "../size";
|
|
7
|
+
export interface OpenSearchArgs {
|
|
8
|
+
/**
|
|
9
|
+
* The OpenSearch engine version. Check out the [available versions](https://docs.aws.amazon.com/opensearch-service/latest/developerguide/what-is.html#choosing-version).
|
|
10
|
+
* @default `"OpenSearch_2.17"`
|
|
11
|
+
* @example
|
|
12
|
+
* ```js
|
|
13
|
+
* {
|
|
14
|
+
* version: "OpenSearch_2.5"
|
|
15
|
+
* }
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
version?: Input<string>;
|
|
19
|
+
/**
|
|
20
|
+
* The username of the master user.
|
|
21
|
+
*
|
|
22
|
+
* :::caution
|
|
23
|
+
* Changing the username will cause the domain to be destroyed and recreated.
|
|
24
|
+
* :::
|
|
25
|
+
*
|
|
26
|
+
* @default `"admin"`
|
|
27
|
+
* @example
|
|
28
|
+
* ```js
|
|
29
|
+
* {
|
|
30
|
+
* username: "admin"
|
|
31
|
+
* }
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
username?: Input<string>;
|
|
35
|
+
/**
|
|
36
|
+
* The password of the master user.
|
|
37
|
+
* @default A random password is generated.
|
|
38
|
+
* @example
|
|
39
|
+
* ```js
|
|
40
|
+
* {
|
|
41
|
+
* password: "^Passw0rd^"
|
|
42
|
+
* }
|
|
43
|
+
* ```
|
|
44
|
+
*
|
|
45
|
+
* Use [Secrets](/docs/component/secret) to manage the password.
|
|
46
|
+
* ```js
|
|
47
|
+
* {
|
|
48
|
+
* password: new sst.Secret("MyDomainPassword").value
|
|
49
|
+
* }
|
|
50
|
+
* ```
|
|
51
|
+
*/
|
|
52
|
+
password?: Input<string>;
|
|
53
|
+
/**
|
|
54
|
+
* The type of instance to use for the domain. Check out the [supported instance types](https://docs.aws.amazon.com/opensearch-service/latest/developerguide/supported-instance-types.html).
|
|
55
|
+
*
|
|
56
|
+
* @default `"t3.small"`
|
|
57
|
+
* @example
|
|
58
|
+
* ```js
|
|
59
|
+
* {
|
|
60
|
+
* instance: "m6g.large"
|
|
61
|
+
* }
|
|
62
|
+
* ```
|
|
63
|
+
*/
|
|
64
|
+
instance?: Input<string>;
|
|
65
|
+
/**
|
|
66
|
+
* The storage limit for the domain.
|
|
67
|
+
*
|
|
68
|
+
* @default `"10 GB"`
|
|
69
|
+
* @example
|
|
70
|
+
* ```js
|
|
71
|
+
* {
|
|
72
|
+
* storage: "100 GB"
|
|
73
|
+
* }
|
|
74
|
+
* ```
|
|
75
|
+
*/
|
|
76
|
+
storage?: Input<SizeGbTb>;
|
|
77
|
+
/**
|
|
78
|
+
* Configure how this component works in `sst dev`.
|
|
79
|
+
*
|
|
80
|
+
* By default, your OpenSearch domain is deployed in `sst dev`. But if you want to
|
|
81
|
+
* instead connect to a locally running OpenSearch, you can configure the `dev` prop.
|
|
82
|
+
*
|
|
83
|
+
* :::note
|
|
84
|
+
* By default, this creates a new OpenSearch domain even in `sst dev`.
|
|
85
|
+
* :::
|
|
86
|
+
*
|
|
87
|
+
* This will skip deploying an OpenSearch domain and link to the locally running
|
|
88
|
+
* OpenSearch process instead.
|
|
89
|
+
*
|
|
90
|
+
* @example
|
|
91
|
+
*
|
|
92
|
+
* Setting the `dev` prop also means that any linked resources will connect to the right
|
|
93
|
+
* instance both in `sst dev` and `sst deploy`.
|
|
94
|
+
*
|
|
95
|
+
* ```ts
|
|
96
|
+
* {
|
|
97
|
+
* dev: {
|
|
98
|
+
* username: "admin",
|
|
99
|
+
* password: "Passw0rd!",
|
|
100
|
+
* url: "http://localhost:9200"
|
|
101
|
+
* }
|
|
102
|
+
* }
|
|
103
|
+
* ```
|
|
104
|
+
*/
|
|
105
|
+
dev?: {
|
|
106
|
+
/**
|
|
107
|
+
* The URL of the local OpenSearch to connect to when running in dev.
|
|
108
|
+
* @default `"http://localhost:9200"`
|
|
109
|
+
*/
|
|
110
|
+
url?: Input<string>;
|
|
111
|
+
/**
|
|
112
|
+
* The username of the local OpenSearch to connect to when running in dev.
|
|
113
|
+
* @default Inherit from the top-level [`username`](#username).
|
|
114
|
+
*/
|
|
115
|
+
username?: Input<string>;
|
|
116
|
+
/**
|
|
117
|
+
* The password of the local OpenSearch to connect to when running in dev.
|
|
118
|
+
* @default Inherit from the top-level [`password`](#password).
|
|
119
|
+
*/
|
|
120
|
+
password?: Input<string>;
|
|
121
|
+
};
|
|
122
|
+
/**
|
|
123
|
+
* [Transform](/docs/components#transform) how this component creates its underlying
|
|
124
|
+
* resources.
|
|
125
|
+
*/
|
|
126
|
+
transform?: {
|
|
127
|
+
/**
|
|
128
|
+
* Transform the OpenSearch domain.
|
|
129
|
+
*/
|
|
130
|
+
domain?: Transform<opensearch.DomainArgs>;
|
|
131
|
+
/**
|
|
132
|
+
* Transform the OpenSearch domain policy.
|
|
133
|
+
*/
|
|
134
|
+
policy?: Transform<opensearch.DomainPolicyArgs>;
|
|
135
|
+
};
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* The `OpenSearch` component lets you add a deployed instance of OpenSearch, or an
|
|
139
|
+
* OpenSearch _domain_ to your app using [Amazon OpenSearch Service](https://docs.aws.amazon.com/opensearch-service/latest/developerguide/what-is.html).
|
|
140
|
+
*
|
|
141
|
+
* @example
|
|
142
|
+
*
|
|
143
|
+
* #### Create the instance
|
|
144
|
+
*
|
|
145
|
+
* ```js title="sst.config.ts"
|
|
146
|
+
* const search = new sst.aws.OpenSearch("MySearch");
|
|
147
|
+
* ```
|
|
148
|
+
*
|
|
149
|
+
* #### Link to a resource
|
|
150
|
+
*
|
|
151
|
+
* You can link your instance to other resources, like a function or your Next.js app.
|
|
152
|
+
*
|
|
153
|
+
* ```ts title="sst.config.ts"
|
|
154
|
+
* new sst.aws.Nextjs("MyWeb", {
|
|
155
|
+
* link: [search]
|
|
156
|
+
* });
|
|
157
|
+
* ```
|
|
158
|
+
*
|
|
159
|
+
* Once linked, you can connect to it from your function code.
|
|
160
|
+
*
|
|
161
|
+
* ```ts title="app/page.tsx" {1,5-9}
|
|
162
|
+
* import { Resource } from "sst";
|
|
163
|
+
* import { Client } from "@opensearch-project/opensearch";
|
|
164
|
+
*
|
|
165
|
+
* const client = new Client({
|
|
166
|
+
* node: Resource.MySearch.url,
|
|
167
|
+
* auth: {
|
|
168
|
+
* username: Resource.MySearch.username,
|
|
169
|
+
* password: Resource.MySearch.password
|
|
170
|
+
* }
|
|
171
|
+
* });
|
|
172
|
+
*
|
|
173
|
+
* // Add a document
|
|
174
|
+
* await client.index({
|
|
175
|
+
* index: "my-index",
|
|
176
|
+
* body: { message: "Hello world!" }
|
|
177
|
+
* });
|
|
178
|
+
*
|
|
179
|
+
* // Search for documents
|
|
180
|
+
* const result = await client.search({
|
|
181
|
+
* index: "my-index",
|
|
182
|
+
* body: { query: { match: { message: "world" } } }
|
|
183
|
+
* });
|
|
184
|
+
* ```
|
|
185
|
+
*
|
|
186
|
+
* #### Running locally
|
|
187
|
+
*
|
|
188
|
+
* By default, your OpenSearch domain is deployed in `sst dev`. But let's say you are
|
|
189
|
+
* running OpenSearch locally.
|
|
190
|
+
*
|
|
191
|
+
* ```bash
|
|
192
|
+
* docker run \
|
|
193
|
+
* --rm \
|
|
194
|
+
* -p 9200:9200 \
|
|
195
|
+
* -v $(pwd)/.sst/storage/opensearch:/usr/share/opensearch/data \
|
|
196
|
+
* -e discovery.type=single-node \
|
|
197
|
+
* -e plugins.security.disabled=true \
|
|
198
|
+
* -e OPENSEARCH_INITIAL_ADMIN_PASSWORD=^Passw0rd^ \
|
|
199
|
+
* opensearchproject/opensearch:2.17.0
|
|
200
|
+
* ```
|
|
201
|
+
*
|
|
202
|
+
* You can connect to it in `sst dev` by configuring the `dev` prop.
|
|
203
|
+
*
|
|
204
|
+
* ```ts title="sst.config.ts" {3-5}
|
|
205
|
+
* const opensearch = new sst.aws.OpenSearch("MyOpenSearch", {
|
|
206
|
+
* dev: {
|
|
207
|
+
* url: "http://localhost:9200",
|
|
208
|
+
* username: "admin",
|
|
209
|
+
* password: "^Passw0rd^"
|
|
210
|
+
* }
|
|
211
|
+
* });
|
|
212
|
+
* ```
|
|
213
|
+
*
|
|
214
|
+
* This will skip deploying an OpenSearch domain and link to the locally running
|
|
215
|
+
* OpenSearch process instead.
|
|
216
|
+
*
|
|
217
|
+
* ---
|
|
218
|
+
*
|
|
219
|
+
* ### Cost
|
|
220
|
+
*
|
|
221
|
+
* By default this component uses a _Single-AZ Deployment_, _On-Demand Instances_ of a
|
|
222
|
+
* `t3.small.search` at $0.036 per hour. And 10GB of _General Purpose gp3 Storage_
|
|
223
|
+
* at $0.122 per GB per month.
|
|
224
|
+
*
|
|
225
|
+
* That works out to $0.036 x 24 x 30 + $0.122 x 10 or **$27 per month**. Adjust this for
|
|
226
|
+
* the `instance` type and the `storage` you are using.
|
|
227
|
+
*
|
|
228
|
+
* The above are rough estimates for _us-east-1_, check out the [OpenSearch Service pricing](https://aws.amazon.com/opensearch-service/pricing/)
|
|
229
|
+
* for more details.
|
|
230
|
+
*/
|
|
231
|
+
export declare class OpenSearch extends Component implements Link.Linkable {
|
|
232
|
+
private domain?;
|
|
233
|
+
private _username?;
|
|
234
|
+
private _password?;
|
|
235
|
+
private dev?;
|
|
236
|
+
constructor(name: string, args?: OpenSearchArgs, opts?: ComponentResourceOptions);
|
|
237
|
+
/**
|
|
238
|
+
* The ID of the OpenSearch component.
|
|
239
|
+
*/
|
|
240
|
+
get id(): Output<string>;
|
|
241
|
+
/** The username of the master user. */
|
|
242
|
+
get username(): Output<string>;
|
|
243
|
+
/** The password of the master user. */
|
|
244
|
+
get password(): Output<string>;
|
|
245
|
+
/**
|
|
246
|
+
* The endpoint of the domain.
|
|
247
|
+
*/
|
|
248
|
+
get url(): Output<string>;
|
|
249
|
+
get nodes(): {
|
|
250
|
+
domain: import("@pulumi/aws/opensearch/domain").Domain | undefined;
|
|
251
|
+
};
|
|
252
|
+
/** @internal */
|
|
253
|
+
getSSTLink(): {
|
|
254
|
+
properties: {
|
|
255
|
+
username: Output<string>;
|
|
256
|
+
password: Output<string>;
|
|
257
|
+
url: Output<string>;
|
|
258
|
+
};
|
|
259
|
+
};
|
|
260
|
+
/**
|
|
261
|
+
* Reference an existing OpenSearch domain with the given name. This is useful when you
|
|
262
|
+
* create a domain in one stage and want to share it in another. It avoids
|
|
263
|
+
* having to create a new domain in the other stage.
|
|
264
|
+
*
|
|
265
|
+
* :::tip
|
|
266
|
+
* You can use the `static get` method to share OpenSearch domains across stages.
|
|
267
|
+
* :::
|
|
268
|
+
*
|
|
269
|
+
* @param name The name of the component.
|
|
270
|
+
* @param id The ID of the existing OpenSearch component.
|
|
271
|
+
* @param opts? Resource options.
|
|
272
|
+
*
|
|
273
|
+
* @example
|
|
274
|
+
* Imagine you create a domain in the `dev` stage. And in your personal stage `frank`,
|
|
275
|
+
* instead of creating a new domain, you want to share the same domain from `dev`.
|
|
276
|
+
*
|
|
277
|
+
* ```ts title="sst.config.ts"
|
|
278
|
+
* const search = $app.stage === "frank"
|
|
279
|
+
* ? sst.aws.OpenSearch.get("MyOpenSearch", "app-dev-myopensearch-efsmkrbt")
|
|
280
|
+
* : new sst.aws.OpenSearch("MyOpenSearch");
|
|
281
|
+
* ```
|
|
282
|
+
*
|
|
283
|
+
* Here `app-dev-myopensearch-efsmkrbt` is the
|
|
284
|
+
* ID of the OpenSearch component created in the `dev` stage.
|
|
285
|
+
* You can find this by outputting the ID in the `dev` stage.
|
|
286
|
+
*
|
|
287
|
+
* ```ts title="sst.config.ts"
|
|
288
|
+
* return {
|
|
289
|
+
* id: search.id
|
|
290
|
+
* };
|
|
291
|
+
* ```
|
|
292
|
+
*/
|
|
293
|
+
static get(name: string, id: Input<string>, opts?: ComponentResourceOptions): OpenSearch;
|
|
294
|
+
}
|
|
295
|
+
//# sourceMappingURL=open-search.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"open-search.d.ts","sourceRoot":"","sources":["../../../../../../.sst/platform/src/components/aws/open-search.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,wBAAwB,EAGxB,MAAM,EAEP,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAU,SAAS,EAAE,SAAS,EAAa,MAAM,cAAc,CAAC;AACvE,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAC/B,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAO,UAAU,EAAkB,MAAM,aAAa,CAAC;AAG9D,OAAO,EAAE,QAAQ,EAAS,MAAM,SAAS,CAAC;AAG1C,MAAM,WAAW,cAAc;IAC7B;;;;;;;;;OASG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACxB;;;;;;;;;;;;;;OAcG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACzB;;;;;;;;;;;;;;;;OAgBG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACzB;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACzB;;;;;;;;;;OAUG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC;IAC1B;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2BG;IACH,GAAG,CAAC,EAAE;QACJ;;;WAGG;QACH,GAAG,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;QACpB;;;WAGG;QACH,QAAQ,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;QACzB;;;WAGG;QACH,QAAQ,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;KAC1B,CAAC;IACF;;;OAGG;IACH,SAAS,CAAC,EAAE;QACV;;WAEG;QACH,MAAM,CAAC,EAAE,SAAS,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC;QAC1C;;WAEG;QACH,MAAM,CAAC,EAAE,SAAS,CAAC,UAAU,CAAC,gBAAgB,CAAC,CAAC;KACjD,CAAC;CACH;AAOD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6FG;AACH,qBAAa,UAAW,SAAQ,SAAU,YAAW,IAAI,CAAC,QAAQ;IAChE,OAAO,CAAC,MAAM,CAAC,CAAoB;IACnC,OAAO,CAAC,SAAS,CAAC,CAAiB;IACnC,OAAO,CAAC,SAAS,CAAC,CAAiB;IACnC,OAAO,CAAC,GAAG,CAAC,CAKV;gBAGA,IAAI,EAAE,MAAM,EACZ,IAAI,GAAE,cAAmB,EACzB,IAAI,GAAE,wBAA6B;IA2OrC;;OAEG;IACH,IAAW,EAAE,mBAGZ;IAED,uCAAuC;IACvC,IAAW,QAAQ,mBAGlB;IAED,uCAAuC;IACvC,IAAW,QAAQ,mBAGlB;IAED;;OAEG;IACH,IAAW,GAAG,mBAGb;IAED,IAAW,KAAK;;MAIf;IAED,gBAAgB;IACT,UAAU;;;;;;;IAUjB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAgCG;WACW,GAAG,CACf,IAAI,EAAE,MAAM,EACZ,EAAE,EAAE,KAAK,CAAC,MAAM,CAAC,EACjB,IAAI,CAAC,EAAE,wBAAwB;CAWlC"}
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
import { ComponentResourceOptions, Output } from "@pulumi/pulumi";
|
|
2
|
+
import { Component } from "../component";
|
|
3
|
+
import { FunctionArgs, Function } from ".";
|
|
4
|
+
import { Input } from "../input";
|
|
5
|
+
export interface OpenControlArgs {
|
|
6
|
+
/**
|
|
7
|
+
* The function that's running your OpenControl server.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```js
|
|
11
|
+
* {
|
|
12
|
+
* server: "src/server.handler"
|
|
13
|
+
* }
|
|
14
|
+
* ```
|
|
15
|
+
*
|
|
16
|
+
* You can also pass in the full `FunctionArgs`.
|
|
17
|
+
*
|
|
18
|
+
* ```js
|
|
19
|
+
* {
|
|
20
|
+
* server: {
|
|
21
|
+
* handler: "src/server.handler",
|
|
22
|
+
* link: [table]
|
|
23
|
+
* }
|
|
24
|
+
* }
|
|
25
|
+
* ```
|
|
26
|
+
*
|
|
27
|
+
* Since the `server` function is a Hono app, you want to export it with the Lambda adapter.
|
|
28
|
+
*
|
|
29
|
+
* ```ts title="src/server.ts"
|
|
30
|
+
* import { handle } from "hono/aws-lambda";
|
|
31
|
+
* import { create } from "opencontrol";
|
|
32
|
+
*
|
|
33
|
+
* const app = create({
|
|
34
|
+
* // ...
|
|
35
|
+
* });
|
|
36
|
+
*
|
|
37
|
+
* export const handler = handle(app);
|
|
38
|
+
* ```
|
|
39
|
+
*
|
|
40
|
+
* Learn more in the [OpenControl docs](https://opencontrol.ai) on how to
|
|
41
|
+
* configure the `server` function.
|
|
42
|
+
*/
|
|
43
|
+
server: Input<string | FunctionArgs>;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* The `OpenControl` component lets you deploy your
|
|
47
|
+
* [OpenControl](https://opencontrol.ai) server to
|
|
48
|
+
* [AWS Lambda](https://aws.amazon.com/lambda/).
|
|
49
|
+
*
|
|
50
|
+
* :::note
|
|
51
|
+
* OpenControl is currently in beta.
|
|
52
|
+
* :::
|
|
53
|
+
*
|
|
54
|
+
* @example
|
|
55
|
+
*
|
|
56
|
+
* #### Create an OpenControl server
|
|
57
|
+
*
|
|
58
|
+
* ```ts title="sst.config.ts"
|
|
59
|
+
* const server = new sst.aws.OpenControl("MyServer", {
|
|
60
|
+
* server: "src/server.handler"
|
|
61
|
+
* });
|
|
62
|
+
* ```
|
|
63
|
+
*
|
|
64
|
+
* #### Link your AI API keys
|
|
65
|
+
*
|
|
66
|
+
* ```ts title="sst.config.ts" {6}
|
|
67
|
+
* const anthropicKey = new sst.Secret("AnthropicKey");
|
|
68
|
+
*
|
|
69
|
+
* const server = new sst.aws.OpenControl("MyServer", {
|
|
70
|
+
* server: {
|
|
71
|
+
* handler: "src/server.handler",
|
|
72
|
+
* link: [anthropicKey]
|
|
73
|
+
* }
|
|
74
|
+
* });
|
|
75
|
+
* ```
|
|
76
|
+
*
|
|
77
|
+
* #### Link your resources
|
|
78
|
+
*
|
|
79
|
+
* If your tools are need access to specific resources, you can link them to the
|
|
80
|
+
* OpenControl server.
|
|
81
|
+
*
|
|
82
|
+
* ```ts title="sst.config.ts" {6}
|
|
83
|
+
* const bucket = new sst.aws.Bucket("MyBucket");
|
|
84
|
+
*
|
|
85
|
+
* new sst.aws.OpenControl("MyServer", {
|
|
86
|
+
* server: {
|
|
87
|
+
* handler: "src/server.handler",
|
|
88
|
+
* link: [bucket]
|
|
89
|
+
* }
|
|
90
|
+
* });
|
|
91
|
+
* ```
|
|
92
|
+
*
|
|
93
|
+
* #### Give AWS permissions
|
|
94
|
+
*
|
|
95
|
+
* If you are using the AWS tool within OpenControl, you will need to give
|
|
96
|
+
* your OpenControl server permissions to access your AWS account.
|
|
97
|
+
*
|
|
98
|
+
* ```ts title="sst.config.ts" {4-6}
|
|
99
|
+
* new sst.aws.OpenControl("OpenControl", {
|
|
100
|
+
* server: {
|
|
101
|
+
* handler: "src/server.handler",
|
|
102
|
+
* policies: $dev
|
|
103
|
+
* ? ["arn:aws:iam::aws:policy/AdministratorAccess"]
|
|
104
|
+
* : ["arn:aws:iam::aws:policy/ReadOnlyAccess"]
|
|
105
|
+
* }
|
|
106
|
+
* });
|
|
107
|
+
* ```
|
|
108
|
+
*
|
|
109
|
+
* Here we are giving it admin access in dev but read-only access in prod.
|
|
110
|
+
*
|
|
111
|
+
* #### Define your server
|
|
112
|
+
*
|
|
113
|
+
* Your `server` function might look like this.
|
|
114
|
+
*
|
|
115
|
+
* ```ts title="src/server.ts"
|
|
116
|
+
* import { Resource } from "sst";
|
|
117
|
+
* import { create } from "opencontrol";
|
|
118
|
+
* import { tool } from "opencontrol/tool";
|
|
119
|
+
* import { handle } from "hono/aws-lambda";
|
|
120
|
+
* import { createAnthropic } from "@ai-sdk/anthropic";
|
|
121
|
+
*
|
|
122
|
+
* const myTool = tool({
|
|
123
|
+
* name: "my_tool",
|
|
124
|
+
* description: "Get the most popular greeting",
|
|
125
|
+
* async run() {
|
|
126
|
+
* return "Hello, world!";
|
|
127
|
+
* }
|
|
128
|
+
* });
|
|
129
|
+
*
|
|
130
|
+
* const app = create({
|
|
131
|
+
* model: createAnthropic({
|
|
132
|
+
* apiKey: Resource.AnthropicKey.value,
|
|
133
|
+
* })("claude-3-7-sonnet-20250219"),
|
|
134
|
+
* tools: [myTool],
|
|
135
|
+
* });
|
|
136
|
+
*
|
|
137
|
+
* export const handler = handle(app);
|
|
138
|
+
* ```
|
|
139
|
+
*
|
|
140
|
+
* Learn more in the [OpenControl docs](https://opencontrol.ai) on how to configure
|
|
141
|
+
* the `server` function.
|
|
142
|
+
*/
|
|
143
|
+
export declare class OpenControl extends Component {
|
|
144
|
+
private readonly _server;
|
|
145
|
+
private readonly _key;
|
|
146
|
+
constructor(name: string, args: OpenControlArgs, opts?: ComponentResourceOptions);
|
|
147
|
+
/**
|
|
148
|
+
* The URL of the OpenControl server.
|
|
149
|
+
*/
|
|
150
|
+
get url(): Output<string>;
|
|
151
|
+
/**
|
|
152
|
+
* The password for the OpenControl server.
|
|
153
|
+
*/
|
|
154
|
+
get password(): Output<string>;
|
|
155
|
+
/**
|
|
156
|
+
* The underlying [resources](/docs/components/#nodes) this component creates.
|
|
157
|
+
*/
|
|
158
|
+
get nodes(): {
|
|
159
|
+
/**
|
|
160
|
+
* The Function component for the server.
|
|
161
|
+
*/
|
|
162
|
+
server: Output<Function>;
|
|
163
|
+
};
|
|
164
|
+
}
|
|
165
|
+
//# sourceMappingURL=opencontrol.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"opencontrol.d.ts","sourceRoot":"","sources":["../../../../../../.sst/platform/src/components/aws/opencontrol.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,wBAAwB,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAEvE,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,GAAG,CAAC;AAE3C,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEjC,MAAM,WAAW,eAAe;IAC9B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAoCG;IACH,MAAM,EAAE,KAAK,CAAC,MAAM,GAAG,YAAY,CAAC,CAAC;CACtC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiGG;AACH,qBAAa,WAAY,SAAQ,SAAS;IACxC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAmB;IAC3C,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAiB;gBAGpC,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,eAAe,EACrB,IAAI,CAAC,EAAE,wBAAwB;IAiDjC;;OAEG;IACH,IAAW,GAAG,mBAEb;IAED;;OAEG;IACH,IAAW,QAAQ,mBAElB;IAED;;OAEG;IACH,IAAW,KAAK;QAEZ;;WAEG;;MAGN;CACF"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The AWS Permission Linkable helper is used to define the AWS permissions included with the
|
|
3
|
+
* [`sst.Linkable`](/docs/component/linkable/) component.
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
*
|
|
7
|
+
* ```ts
|
|
8
|
+
* sst.aws.permission({
|
|
9
|
+
* actions: ["lambda:InvokeFunction"],
|
|
10
|
+
* resources: ["*"]
|
|
11
|
+
* })
|
|
12
|
+
* ```
|
|
13
|
+
*
|
|
14
|
+
* @packageDocumentation
|
|
15
|
+
*/
|
|
16
|
+
import { Prettify } from "../component.js";
|
|
17
|
+
import { FunctionPermissionArgs } from "./function.js";
|
|
18
|
+
export interface InputArgs extends Prettify<FunctionPermissionArgs> {
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* The AWS Permission Linkable helper is used to define the AWS permissions included with the
|
|
22
|
+
* [`sst.Linkable`](/docs/component/linkable/) component.
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
*
|
|
26
|
+
* ```ts
|
|
27
|
+
* sst.aws.permission({
|
|
28
|
+
* actions: ["lambda:InvokeFunction"],
|
|
29
|
+
* resources: ["*"]
|
|
30
|
+
* })
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
33
|
+
export declare function permission(input: InputArgs): {
|
|
34
|
+
effect?: "allow" | "deny" | undefined;
|
|
35
|
+
actions: string[];
|
|
36
|
+
resources: import("../input.js").Input<import("../input.js").Input<string>[]>;
|
|
37
|
+
type: "aws.permission";
|
|
38
|
+
};
|
|
39
|
+
export type Permission = ReturnType<typeof permission>;
|
|
40
|
+
//# sourceMappingURL=permission.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"permission.d.ts","sourceRoot":"","sources":["../../../../../../.sst/platform/src/components/aws/permission.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAC;AAEvD,MAAM,WAAW,SAAU,SAAQ,QAAQ,CAAC,sBAAsB,CAAC;CAAG;AAEtE;;;;;;;;;;;;GAYG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,SAAS;;;;;EAK1C;AAED,MAAM,MAAM,UAAU,GAAG,UAAU,CAAC,OAAO,UAAU,CAAC,CAAC"}
|