@stacksjs/ts-cloud 0.7.56 → 0.7.58
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/alerts/alerts.test.d.ts +1 -0
- package/dist/alerts/delivery.d.ts +45 -0
- package/dist/alerts/evaluator.d.ts +12 -0
- package/dist/alerts/health.d.ts +34 -0
- package/dist/alerts/index.d.ts +6 -0
- package/dist/alerts/model.d.ts +170 -0
- package/dist/alerts/store.d.ts +90 -0
- package/dist/alerts/telemetry.d.ts +3 -0
- package/dist/api/client.d.ts +197 -0
- package/dist/api/handler.d.ts +18 -0
- package/dist/api/handler.test.d.ts +1 -0
- package/dist/api/index.d.ts +6 -0
- package/dist/api/openapi.d.ts +2 -0
- package/dist/api/service.d.ts +28 -0
- package/dist/api/types.d.ts +119 -0
- package/dist/auth/encryption.d.ts +3 -0
- package/dist/auth/index.d.ts +8 -0
- package/dist/auth/mailer.d.ts +9 -0
- package/dist/auth/oidc.d.ts +36 -0
- package/dist/auth/oidc.test.d.ts +1 -0
- package/dist/auth/store.d.ts +121 -0
- package/dist/auth/store.test.d.ts +1 -0
- package/dist/auth/totp.d.ts +11 -0
- package/dist/auth/totp.test.d.ts +1 -0
- package/dist/auth/types.d.ts +138 -0
- package/dist/automation/index.d.ts +2 -0
- package/dist/automation/store.d.ts +46 -0
- package/dist/automation/store.test.d.ts +1 -0
- package/dist/automation/types.d.ts +66 -0
- package/dist/aws/acm.d.ts +0 -4
- package/dist/aws/application-autoscaling.d.ts +0 -5
- package/dist/aws/backup.d.ts +42 -0
- package/dist/aws/bedrock.d.ts +0 -5
- package/dist/aws/client.d.ts +3 -6
- package/dist/aws/cloudformation.d.ts +0 -4
- package/dist/aws/cloudfront-media.test.d.ts +1 -0
- package/dist/aws/cloudfront-origin.test.d.ts +1 -0
- package/dist/aws/cloudfront.d.ts +87 -3
- package/dist/aws/cloudwatch-logs.d.ts +2 -4
- package/dist/aws/cloudwatch.d.ts +1 -1
- package/dist/aws/comprehend.d.ts +0 -5
- package/dist/aws/connect.d.ts +0 -4
- package/dist/aws/cost-explorer-cache.d.ts +1 -15
- package/dist/aws/cost-explorer.d.ts +18 -9
- package/dist/aws/cost-explorer.test.d.ts +1 -0
- package/dist/aws/dynamodb.d.ts +0 -4
- package/dist/aws/ec2.d.ts +0 -4
- package/dist/aws/ecr.d.ts +0 -4
- package/dist/aws/ecs.d.ts +17 -7
- package/dist/aws/efs.d.ts +0 -4
- package/dist/aws/elasticache.d.ts +0 -4
- package/dist/aws/elbv2.d.ts +0 -7
- package/dist/aws/email.d.ts +0 -10
- package/dist/aws/eventbridge.d.ts +0 -4
- package/dist/aws/iam.d.ts +1 -5
- package/dist/aws/imap-server.d.ts +0 -7
- package/dist/aws/index.d.ts +4 -3
- package/dist/aws/index.js +31 -31
- package/dist/aws/kendra.d.ts +0 -5
- package/dist/aws/lambda.d.ts +3 -5
- package/dist/aws/opensearch.d.ts +0 -4
- package/dist/aws/personalize.d.ts +0 -5
- package/dist/aws/polly.d.ts +0 -5
- package/dist/aws/rds.d.ts +59 -4
- package/dist/aws/rekognition.d.ts +0 -5
- package/dist/aws/route53-domains.d.ts +0 -4
- package/dist/aws/route53.d.ts +0 -4
- package/dist/aws/s3.d.ts +10 -6
- package/dist/aws/scheduler.d.ts +0 -4
- package/dist/aws/secrets-manager.d.ts +0 -4
- package/dist/aws/setup-sms.d.ts +0 -14
- package/dist/aws/sms.d.ts +0 -10
- package/dist/aws/smtp-server.d.ts +0 -11
- package/dist/aws/sns.d.ts +0 -4
- package/dist/aws/sqs.d.ts +0 -4
- package/dist/aws/ssm.d.ts +0 -4
- package/dist/aws/sts.d.ts +0 -4
- package/dist/aws/support.d.ts +0 -4
- package/dist/aws/textract.d.ts +0 -5
- package/dist/aws/transcribe.d.ts +0 -4
- package/dist/aws/translate.d.ts +0 -5
- package/dist/aws/voice.d.ts +0 -11
- package/dist/aws/xray.d.ts +1 -0
- package/dist/backups/aws-database-source.d.ts +19 -0
- package/dist/backups/aws-database-source.test.d.ts +1 -0
- package/dist/backups/aws-infrastructure-source.d.ts +43 -0
- package/dist/backups/aws-infrastructure-source.test.d.ts +1 -0
- package/dist/backups/control-plane-source.d.ts +16 -0
- package/dist/backups/control-plane-source.test.d.ts +1 -0
- package/dist/backups/docker-volume-source.d.ts +31 -0
- package/dist/backups/docker-volume-source.test.d.ts +1 -0
- package/dist/backups/filesystem-source.d.ts +34 -0
- package/dist/backups/filesystem-source.test.d.ts +1 -0
- package/dist/backups/index.d.ts +10 -0
- package/dist/backups/logical-database-source.d.ts +16 -0
- package/dist/backups/logical-database-source.test.d.ts +1 -0
- package/dist/backups/model.d.ts +121 -0
- package/dist/backups/s3-destination.d.ts +85 -0
- package/dist/backups/s3-destination.test.d.ts +1 -0
- package/dist/backups/service.d.ts +80 -0
- package/dist/backups/service.test.d.ts +1 -0
- package/dist/backups/store.d.ts +30 -0
- package/dist/backups/store.test.d.ts +1 -0
- package/dist/bin/cli.js +3360 -1802
- package/dist/{chunk-tjjgajbh.js → chunk-01d86gt1.js} +301 -9
- package/dist/{chunk-73vcqg6z.js → chunk-0z43x8re.js} +7 -7
- package/dist/{chunk-tnztxpcb.js → chunk-32e7ya18.js} +61 -49
- package/dist/{chunk-qpj3edwz.js → chunk-4cjrg98a.js} +3 -7
- package/dist/{chunk-hsk6fe6x.js → chunk-50jpda9q.js} +2 -2
- package/dist/{chunk-93hjhs78.js → chunk-703nkybg.js} +1 -1
- package/dist/{chunk-d5vqwj8s.js → chunk-9m6b4m74.js} +755 -720
- package/dist/chunk-e05phx5f.js +10 -0
- package/dist/{chunk-f29w04w5.js → chunk-exbcsab2.js} +10 -4
- package/dist/{chunk-eq08r166.js → chunk-f55nkpvb.js} +2 -2
- package/dist/{chunk-3bfv1z4v.js → chunk-fv1bj3yt.js} +63 -56
- package/dist/chunk-fw3q88wk.js +48641 -0
- package/dist/{chunk-3knnr7wh.js → chunk-he9a874b.js} +170 -2
- package/dist/{chunk-zn0nxxa8.js → chunk-hpv68b4a.js} +1070 -1070
- package/dist/chunk-k114qwg9.js +12 -0
- package/dist/{chunk-r16e02bc.js → chunk-vdk53yyq.js} +3900 -4101
- package/dist/{chunk-jp2a8yad.js → chunk-vvkd46k1.js} +15 -13
- package/dist/{chunk-vd87cpvn.js → chunk-wj3s95p9.js} +62 -46
- package/dist/{chunk-mj1tmhte.js → chunk-x9s0cqfx.js} +1 -1
- package/dist/{chunk-3rsfns7x.js → chunk-ybcz6sxc.js} +2048 -387
- package/dist/{chunk-arsh1g5h.js → chunk-zqtpg06c.js} +14 -11
- package/dist/compose/index.d.ts +6 -0
- package/dist/compose/parser.d.ts +13 -0
- package/dist/compose/parser.test.d.ts +1 -0
- package/dist/compose/runtime.d.ts +10 -0
- package/dist/compose/service.d.ts +18 -0
- package/dist/compose/store.d.ts +59 -0
- package/dist/compose/store.test.d.ts +1 -0
- package/dist/compose/templates.d.ts +17 -0
- package/dist/compose/types.d.ts +164 -0
- package/dist/configuration/backends.d.ts +66 -0
- package/dist/configuration/backends.test.d.ts +1 -0
- package/dist/configuration/dotenv.d.ts +14 -0
- package/dist/configuration/dotenv.test.d.ts +1 -0
- package/dist/configuration/index.d.ts +6 -0
- package/dist/configuration/migrate.d.ts +10 -0
- package/dist/configuration/migrate.test.d.ts +1 -0
- package/dist/configuration/model.d.ts +50 -0
- package/dist/configuration/service.d.ts +144 -0
- package/dist/configuration/service.test.d.ts +1 -0
- package/dist/configuration/store.d.ts +33 -0
- package/dist/configuration/store.test.d.ts +1 -0
- package/dist/control-plane/authorization.d.ts +24 -0
- package/dist/control-plane/authorization.test.d.ts +1 -0
- package/dist/control-plane/index.d.ts +8 -0
- package/dist/control-plane/migrations.d.ts +7 -0
- package/dist/control-plane/search.d.ts +25 -0
- package/dist/control-plane/store.d.ts +117 -0
- package/dist/control-plane/store.test.d.ts +1 -0
- package/dist/control-plane/types.d.ts +381 -0
- package/dist/cost/reporting.d.ts +24 -0
- package/dist/cost/reporting.test.d.ts +1 -0
- package/dist/cost/resource-inventory.d.ts +32 -0
- package/dist/cost/resource-inventory.test.d.ts +1 -0
- package/dist/cost/resource-optimization.d.ts +59 -0
- package/dist/cost/resource-optimization.test.d.ts +1 -0
- package/dist/data-services/adapters.d.ts +39 -0
- package/dist/data-services/aws-transports.d.ts +29 -0
- package/dist/data-services/aws-transports.test.d.ts +1 -0
- package/dist/data-services/capabilities.d.ts +2 -0
- package/dist/data-services/data-services.test.d.ts +1 -0
- package/dist/data-services/docker-transport.d.ts +55 -0
- package/dist/data-services/docker-transport.test.d.ts +1 -0
- package/dist/data-services/index.d.ts +8 -0
- package/dist/data-services/model.d.ts +79 -0
- package/dist/data-services/secrets.d.ts +13 -0
- package/dist/data-services/secrets.test.d.ts +1 -0
- package/dist/data-services/service.d.ts +51 -0
- package/dist/data-services/store.d.ts +17 -0
- package/dist/deploy/container-image.d.ts +28 -0
- package/dist/deploy/container-image.test.d.ts +1 -0
- package/dist/deploy/dashboard-audit.test.d.ts +1 -0
- package/dist/deploy/dashboard-auth.d.ts +4 -23
- package/dist/deploy/dashboard-backups.integration.test.d.ts +1 -0
- package/dist/deploy/dashboard-configuration.integration.test.d.ts +1 -0
- package/dist/deploy/dashboard-control-plane.d.ts +37 -0
- package/dist/deploy/dashboard-control-plane.test.d.ts +1 -0
- package/dist/deploy/dashboard-data-services.integration.test.d.ts +1 -0
- package/dist/deploy/dashboard-environment-scope.test.d.ts +1 -0
- package/dist/deploy/dashboard-guard.d.ts +12 -0
- package/dist/deploy/dashboard-guard.test.d.ts +1 -0
- package/dist/deploy/dashboard-identities.d.ts +15 -0
- package/dist/deploy/dashboard-identities.test.d.ts +1 -0
- package/dist/deploy/dashboard-jobs.integration.test.d.ts +1 -0
- package/dist/deploy/dashboard-login-page.d.ts +5 -5
- package/dist/deploy/dashboard-login-page.test.d.ts +1 -0
- package/dist/deploy/dashboard-oidc.integration.test.d.ts +1 -0
- package/dist/deploy/dashboard-onboarding.integration.test.d.ts +1 -0
- package/dist/deploy/dashboard-policy.d.ts +4 -2
- package/dist/deploy/dashboard-queue-worker.integration.test.d.ts +1 -0
- package/dist/deploy/dashboard-release.integration.test.d.ts +1 -0
- package/dist/deploy/dashboard-route-manifest.d.ts +14 -0
- package/dist/deploy/dashboard-route-manifest.test.d.ts +1 -0
- package/dist/deploy/dashboard-security.integration.test.d.ts +1 -0
- package/dist/deploy/dashboard-session.d.ts +3 -14
- package/dist/deploy/dashboard-source.integration.test.d.ts +1 -0
- package/dist/deploy/dashboard-users.d.ts +3 -0
- package/dist/deploy/fullstack-container.d.ts +87 -0
- package/dist/deploy/fullstack-container.test.d.ts +1 -0
- package/dist/deploy/index.d.ts +7 -2
- package/dist/deploy/index.js +65 -25
- package/dist/deploy/local-dashboard-server.d.ts +30 -0
- package/dist/deploy/quick-deploy.d.ts +1 -1
- package/dist/deploy/serverless-operations.d.ts +1 -0
- package/dist/deploy/site-target.d.ts +16 -0
- package/dist/deploy/static-api-origin.d.ts +107 -0
- package/dist/deploy/static-api-origin.test.d.ts +1 -0
- package/dist/deploy/static-site-helper.d.ts +0 -16
- package/dist/deploy/telemetry-access.d.ts +5 -0
- package/dist/deploy/telemetry-access.test.d.ts +1 -0
- package/dist/deploy/telemetry-collection.d.ts +44 -0
- package/dist/deploy/telemetry-collection.test.d.ts +1 -0
- package/dist/dns/index.js +3 -3
- package/dist/dns/route53-adapter.d.ts +1 -1
- package/dist/drivers/hetzner/cloud-init.d.ts +1 -1
- package/dist/drivers/index.d.ts +2 -2
- package/dist/drivers/index.js +6 -6
- package/dist/drivers/shared/notifications.d.ts +1 -1
- package/dist/drivers/shared/rpx-gateway.d.ts +1 -0
- package/dist/fleet/fleet.test.d.ts +1 -0
- package/dist/fleet/index.d.ts +144 -0
- package/dist/fleet/queue.d.ts +3 -0
- package/dist/fleet/ssh-driver.d.ts +34 -0
- package/dist/index.d.ts +28 -4
- package/dist/index.js +1132 -424
- package/dist/jobs/adapters.d.ts +23 -0
- package/dist/jobs/index.d.ts +7 -0
- package/dist/jobs/jobs.test.d.ts +1 -0
- package/dist/jobs/model.d.ts +100 -0
- package/dist/jobs/provider-adapters.d.ts +49 -0
- package/dist/jobs/reconcile.d.ts +19 -0
- package/dist/jobs/schedule.d.ts +9 -0
- package/dist/jobs/service.d.ts +30 -0
- package/dist/jobs/store.d.ts +48 -0
- package/dist/maintenance/drivers.d.ts +117 -0
- package/dist/maintenance/index.d.ts +6 -0
- package/dist/maintenance/maintenance.test.d.ts +1 -0
- package/dist/maintenance/manifest.d.ts +15 -0
- package/dist/maintenance/queue.d.ts +9 -0
- package/dist/maintenance/service.d.ts +31 -0
- package/dist/maintenance/store.d.ts +84 -0
- package/dist/maintenance/types.d.ts +192 -0
- package/dist/media.d.ts +62 -0
- package/dist/media.test.d.ts +1 -0
- package/dist/object-storage/index.d.ts +0 -24
- package/dist/onboarding/archive.d.ts +12 -0
- package/dist/onboarding/artifact-store.d.ts +22 -0
- package/dist/onboarding/detection.d.ts +8 -0
- package/dist/onboarding/index.d.ts +9 -0
- package/dist/onboarding/migrations.d.ts +3 -0
- package/dist/onboarding/onboarding.test.d.ts +1 -0
- package/dist/onboarding/plan.d.ts +3 -0
- package/dist/onboarding/registry.d.ts +41 -0
- package/dist/onboarding/service.d.ts +16 -0
- package/dist/onboarding/store.d.ts +30 -0
- package/dist/onboarding/types.d.ts +204 -0
- package/dist/placement/builds.d.ts +20 -0
- package/dist/placement/drivers.d.ts +54 -0
- package/dist/placement/index.d.ts +6 -0
- package/dist/placement/placement.test.d.ts +1 -0
- package/dist/placement/queue.d.ts +4 -0
- package/dist/placement/service.d.ts +34 -0
- package/dist/placement/store.d.ts +49 -0
- package/dist/placement/types.d.ts +109 -0
- package/dist/preview/index.d.ts +3 -0
- package/dist/preview/service.d.ts +45 -0
- package/dist/preview/service.test.d.ts +1 -0
- package/dist/preview/store.d.ts +47 -0
- package/dist/preview/store.test.d.ts +1 -0
- package/dist/preview/types.d.ts +99 -0
- package/dist/push/apns.d.ts +0 -26
- package/dist/push/fcm.d.ts +0 -23
- package/dist/push/index.d.ts +2 -2
- package/dist/push/index.js +1 -1
- package/dist/queue/deployment-handlers.d.ts +27 -0
- package/dist/queue/deployment-handlers.test.d.ts +1 -0
- package/dist/queue/index.d.ts +4 -0
- package/dist/queue/queue.d.ts +57 -0
- package/dist/queue/queue.test.d.ts +1 -0
- package/dist/queue/types.d.ts +93 -0
- package/dist/queue/worker.d.ts +32 -0
- package/dist/queue/worker.test.d.ts +1 -0
- package/dist/regions/drivers.d.ts +139 -0
- package/dist/regions/index.d.ts +5 -0
- package/dist/regions/queue.d.ts +4 -0
- package/dist/regions/regions.test.d.ts +1 -0
- package/dist/regions/service.d.ts +23 -0
- package/dist/regions/store.d.ts +41 -0
- package/dist/regions/types.d.ts +132 -0
- package/dist/release/index.d.ts +6 -0
- package/dist/release/queue.d.ts +15 -0
- package/dist/release/queue.test.d.ts +1 -0
- package/dist/release/runtime.d.ts +35 -0
- package/dist/release/runtime.test.d.ts +1 -0
- package/dist/release/service.d.ts +28 -0
- package/dist/release/store.d.ts +88 -0
- package/dist/release/store.test.d.ts +1 -0
- package/dist/release/strategy.d.ts +8 -0
- package/dist/release/types.d.ts +103 -0
- package/dist/runtime/adapters/aws.d.ts +5 -0
- package/dist/runtime/adapters/docker.d.ts +53 -0
- package/dist/runtime/adapters/systemd.d.ts +26 -0
- package/dist/runtime/index.d.ts +9 -0
- package/dist/runtime/inventory.d.ts +6 -0
- package/dist/runtime/model.d.ts +130 -0
- package/dist/runtime/normalize.d.ts +5 -0
- package/dist/runtime/operations.d.ts +113 -0
- package/dist/runtime/service.d.ts +32 -0
- package/dist/runtime/streams.d.ts +49 -0
- package/dist/security/artifacts.d.ts +105 -0
- package/dist/security/artifacts.test.d.ts +1 -0
- package/dist/security/container-release.d.ts +35 -0
- package/dist/security/container-release.test.d.ts +1 -0
- package/dist/security/index.d.ts +8 -0
- package/dist/security/integration.d.ts +41 -0
- package/dist/security/integration.test.d.ts +1 -0
- package/dist/security/posture-store.d.ts +80 -0
- package/dist/security/posture-store.test.d.ts +1 -0
- package/dist/security/pre-deploy-scanner.d.ts +0 -4
- package/dist/security/scanners.d.ts +81 -0
- package/dist/security/scanners.test.d.ts +1 -0
- package/dist/security/types.d.ts +150 -0
- package/dist/source/git-workspace.d.ts +26 -0
- package/dist/source/git-workspace.test.d.ts +1 -0
- package/dist/source/index.d.ts +6 -0
- package/dist/source/providers.d.ts +199 -0
- package/dist/source/providers.test.d.ts +1 -0
- package/dist/source/service.d.ts +18 -0
- package/dist/source/store.d.ts +149 -0
- package/dist/source/store.test.d.ts +1 -0
- package/dist/source/types.d.ts +191 -0
- package/dist/source/webhooks.d.ts +33 -0
- package/dist/source/webhooks.test.d.ts +1 -0
- package/dist/ssl/acme-client.d.ts +0 -6
- package/dist/storage/compose.d.ts +4 -0
- package/dist/storage/compose.test.d.ts +1 -0
- package/dist/storage/drivers.d.ts +107 -0
- package/dist/storage/drivers.test.d.ts +1 -0
- package/dist/storage/index.d.ts +5 -0
- package/dist/storage/model.d.ts +112 -0
- package/dist/storage/service.d.ts +95 -0
- package/dist/storage/storage.test.d.ts +1 -0
- package/dist/storage/store.d.ts +40 -0
- package/dist/telemetry/correlation.test.d.ts +1 -0
- package/dist/telemetry/index.d.ts +4 -0
- package/dist/telemetry/model.d.ts +145 -0
- package/dist/telemetry/policy.d.ts +8 -0
- package/dist/telemetry/policy.test.d.ts +1 -0
- package/dist/telemetry/redaction.d.ts +9 -0
- package/dist/telemetry/store.d.ts +34 -0
- package/dist/telemetry/store.test.d.ts +1 -0
- package/dist/ui/404.html +1506 -17
- package/dist/ui/accept-invitation.html +1163 -0
- package/dist/ui/{server/backups.html → access-denied.html} +344 -55
- package/dist/ui/account/automation.html +1669 -0
- package/dist/ui/account/security.html +1646 -0
- package/dist/ui/applications/compose.html +1590 -0
- package/dist/ui/applications/new.html +1868 -0
- package/dist/ui/data/backups.html +1757 -0
- package/dist/ui/data/services.html +1723 -0
- package/dist/ui/data/volumes.html +1639 -0
- package/dist/ui/index.html +392 -29
- package/dist/ui/integrations.html +1865 -0
- package/dist/ui/operations/alerts.html +1610 -0
- package/dist/ui/operations/configuration.html +1746 -0
- package/dist/ui/operations/jobs.html +1709 -0
- package/dist/ui/operations/maintenance.html +1540 -0
- package/dist/ui/operations/observability.html +1742 -0
- package/dist/ui/{serverless/scheduler.html → operations/previews.html} +447 -46
- package/dist/ui/operations/queue.html +1615 -0
- package/dist/ui/{server/workers.html → operations/regions.html} +413 -49
- package/dist/ui/operations/releases.html +1596 -0
- package/dist/ui/operations/workloads.html +1775 -0
- package/dist/ui/security.html +1767 -0
- package/dist/ui/server/actions.html +446 -57
- package/dist/ui/server/activity.html +346 -1
- package/dist/ui/server/capacity.html +1542 -0
- package/dist/ui/server/database.html +443 -36
- package/dist/ui/server/deployments.html +439 -53
- package/dist/ui/server/diagnostics.html +346 -1
- package/dist/ui/server/firewall.html +476 -50
- package/dist/ui/server/fleet.html +1577 -0
- package/dist/ui/server/logs.html +389 -25
- package/dist/ui/server/metrics.html +346 -1
- package/dist/ui/server/security.html +346 -1
- package/dist/ui/server/services.html +421 -46
- package/dist/ui/server/sites.html +476 -95
- package/dist/ui/server/ssh-keys.html +476 -46
- package/dist/ui/server/team.html +700 -77
- package/dist/ui/server/terminal.html +444 -54
- package/dist/ui/serverless/alarms.html +430 -42
- package/dist/ui/serverless/assets.html +421 -46
- package/dist/ui/serverless/cost.html +346 -1
- package/dist/ui/serverless/data.html +422 -47
- package/dist/ui/serverless/deployments.html +421 -46
- package/dist/ui/serverless/firewall.html +346 -1
- package/dist/ui/serverless/functions.html +423 -48
- package/dist/ui/serverless/logs.html +389 -25
- package/dist/ui/serverless/metrics.html +346 -1
- package/dist/ui/serverless/queues.html +448 -62
- package/dist/ui/serverless/secrets.html +448 -42
- package/dist/ui/serverless/traces.html +350 -5
- package/dist/ui/serverless.html +434 -58
- package/dist/ui-src/pages/404.stx +18 -0
- package/dist/ui-src/pages/accept-invitation.stx +50 -0
- package/dist/ui-src/pages/access-denied.stx +18 -0
- package/dist/ui-src/pages/account/automation.stx +187 -0
- package/dist/ui-src/pages/account/security.stx +249 -0
- package/dist/ui-src/pages/applications/compose.stx +38 -0
- package/dist/ui-src/pages/applications/new.stx +76 -0
- package/dist/ui-src/pages/data/backups.stx +214 -0
- package/dist/ui-src/pages/data/services.stx +257 -0
- package/dist/ui-src/pages/data/volumes.stx +40 -0
- package/dist/ui-src/pages/index.stx +24 -10
- package/dist/ui-src/pages/integrations.stx +186 -0
- package/dist/ui-src/pages/operations/alerts.stx +40 -0
- package/dist/ui-src/pages/operations/configuration.stx +164 -0
- package/dist/ui-src/pages/operations/jobs.stx +238 -0
- package/dist/ui-src/pages/operations/maintenance.stx +15 -0
- package/dist/ui-src/pages/operations/observability.stx +76 -0
- package/dist/ui-src/pages/operations/previews.stx +62 -0
- package/dist/ui-src/pages/operations/queue.stx +158 -0
- package/dist/ui-src/pages/operations/regions.stx +12 -0
- package/dist/ui-src/pages/operations/releases.stx +39 -0
- package/dist/ui-src/pages/operations/workloads.stx +151 -0
- package/dist/ui-src/pages/partials/head.stx +148 -15
- package/dist/ui-src/pages/partials/nav.stx +491 -74
- package/dist/ui-src/pages/partials/op-confirm.stx +6 -6
- package/dist/ui-src/pages/security.stx +264 -0
- package/dist/ui-src/pages/server/actions.stx +17 -26
- package/dist/ui-src/pages/server/capacity.stx +16 -0
- package/dist/ui-src/pages/server/database.stx +31 -16
- package/dist/ui-src/pages/server/deployments.stx +28 -30
- package/dist/ui-src/pages/server/firewall.stx +25 -30
- package/dist/ui-src/pages/server/fleet.stx +10 -0
- package/dist/ui-src/pages/server/logs.stx +11 -9
- package/dist/ui-src/pages/server/metrics.stx +8 -16
- package/dist/ui-src/pages/server/services.stx +19 -28
- package/dist/ui-src/pages/server/sites.stx +75 -72
- package/dist/ui-src/pages/server/ssh-keys.stx +24 -30
- package/dist/ui-src/pages/server/team.stx +286 -149
- package/dist/ui-src/pages/server/terminal.stx +6 -28
- package/dist/ui-src/pages/serverless/alarms.stx +17 -31
- package/dist/ui-src/pages/serverless/assets.stx +13 -22
- package/dist/ui-src/pages/serverless/cost.stx +15 -3
- package/dist/ui-src/pages/serverless/data.stx +12 -25
- package/dist/ui-src/pages/serverless/deployments.stx +14 -23
- package/dist/ui-src/pages/serverless/firewall.stx +5 -1
- package/dist/ui-src/pages/serverless/functions.stx +20 -26
- package/dist/ui-src/pages/serverless/logs.stx +11 -10
- package/dist/ui-src/pages/serverless/metrics.stx +18 -17
- package/dist/ui-src/pages/serverless/queues.stx +34 -42
- package/dist/ui-src/pages/serverless/secrets.stx +31 -34
- package/dist/ui-src/pages/serverless/traces.stx +2 -6
- package/dist/ui-src/pages/serverless.stx +40 -74
- package/package.json +11 -11
- package/dist/chunk-b17vf1g1.js +0 -13787
- package/dist/chunk-b82pbxyp.js +0 -1572
- package/dist/chunk-pqfzdg68.js +0 -12
- package/dist/chunk-z58fqnjm.js +0 -10
- package/dist/ui-src/pages/server/backups.stx +0 -91
- package/dist/ui-src/pages/server/workers.stx +0 -99
- package/dist/ui-src/pages/serverless/scheduler.stx +0 -89
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import type { ControlPlaneId, JsonValue } from '../control-plane';
|
|
2
|
+
import type { ApplicationDraftInput, ApplicationDraftRecord, ApplicationPlan, DetectionCandidate, DetectionFile, RegistryConnection } from '../onboarding';
|
|
3
|
+
import type { OperationJob, OperationLogEntry, QueueConcurrencyLimits } from '../queue';
|
|
4
|
+
export interface ApiErrorEnvelope {
|
|
5
|
+
error: {
|
|
6
|
+
code: string;
|
|
7
|
+
message: string;
|
|
8
|
+
requestId: string;
|
|
9
|
+
details?: JsonValue;
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
export interface ApiPage<T> {
|
|
13
|
+
data: T[];
|
|
14
|
+
page: {
|
|
15
|
+
nextCursor?: string;
|
|
16
|
+
hasMore: boolean;
|
|
17
|
+
};
|
|
18
|
+
requestId: string;
|
|
19
|
+
}
|
|
20
|
+
export interface ApiDeploymentRequest {
|
|
21
|
+
projectId: ControlPlaneId;
|
|
22
|
+
environmentId: ControlPlaneId;
|
|
23
|
+
serviceId?: ControlPlaneId;
|
|
24
|
+
action?: 'deploy' | 'rollback';
|
|
25
|
+
revision?: string;
|
|
26
|
+
}
|
|
27
|
+
export interface ApiOperationResponse {
|
|
28
|
+
operation: {
|
|
29
|
+
id: ControlPlaneId;
|
|
30
|
+
state: string;
|
|
31
|
+
kind: string;
|
|
32
|
+
projectId?: ControlPlaneId;
|
|
33
|
+
environmentId?: ControlPlaneId;
|
|
34
|
+
resourceId?: ControlPlaneId;
|
|
35
|
+
correlationId: string;
|
|
36
|
+
createdAt: string;
|
|
37
|
+
};
|
|
38
|
+
idempotentReplay: boolean;
|
|
39
|
+
requestId: string;
|
|
40
|
+
}
|
|
41
|
+
export interface ApiApplicationDetectionRequest {
|
|
42
|
+
files: DetectionFile[];
|
|
43
|
+
}
|
|
44
|
+
export interface ApiApplicationDetectionResponse {
|
|
45
|
+
candidates: DetectionCandidate[];
|
|
46
|
+
requestId: string;
|
|
47
|
+
}
|
|
48
|
+
export interface ApiApplicationPlanRequest {
|
|
49
|
+
draft: ApplicationDraftInput;
|
|
50
|
+
suppliedSecretNames?: string[];
|
|
51
|
+
}
|
|
52
|
+
export interface ApiApplicationPlanResponse {
|
|
53
|
+
plan: ApplicationPlan;
|
|
54
|
+
requestId: string;
|
|
55
|
+
}
|
|
56
|
+
export interface ApiApplicationDraftCreateRequest {
|
|
57
|
+
projectId: ControlPlaneId;
|
|
58
|
+
name?: string;
|
|
59
|
+
draft: ApplicationDraftInput;
|
|
60
|
+
step?: ApplicationDraftRecord['step'];
|
|
61
|
+
suppliedSecretNames?: string[];
|
|
62
|
+
}
|
|
63
|
+
export interface ApiApplicationDraftUpdateRequest {
|
|
64
|
+
id: ControlPlaneId;
|
|
65
|
+
version: number;
|
|
66
|
+
draft: ApplicationDraftInput;
|
|
67
|
+
step: ApplicationDraftRecord['step'];
|
|
68
|
+
suppliedSecretNames?: string[];
|
|
69
|
+
}
|
|
70
|
+
export interface ApiApplicationCreateRequest {
|
|
71
|
+
draftId: ControlPlaneId;
|
|
72
|
+
version: number;
|
|
73
|
+
confirmEnvironment: string;
|
|
74
|
+
}
|
|
75
|
+
export interface ApiApplicationCreateResponse {
|
|
76
|
+
resource: Record<string, unknown>;
|
|
77
|
+
operation: ApiOperationResponse['operation'];
|
|
78
|
+
plan: ApplicationPlan;
|
|
79
|
+
idempotentReplay: boolean;
|
|
80
|
+
requestId: string;
|
|
81
|
+
}
|
|
82
|
+
export interface ApiRegistryConnectionCreateRequest {
|
|
83
|
+
provider: RegistryConnection['provider'];
|
|
84
|
+
name: string;
|
|
85
|
+
host: string;
|
|
86
|
+
username?: string;
|
|
87
|
+
password?: string;
|
|
88
|
+
token?: string;
|
|
89
|
+
credentialExpiresAt?: string;
|
|
90
|
+
}
|
|
91
|
+
export type ApiRegistryConnectionUpdateRequest = {
|
|
92
|
+
id: ControlPlaneId;
|
|
93
|
+
action: 'test';
|
|
94
|
+
image?: string;
|
|
95
|
+
} | {
|
|
96
|
+
id: ControlPlaneId;
|
|
97
|
+
action: 'rotate';
|
|
98
|
+
username?: string;
|
|
99
|
+
password?: string;
|
|
100
|
+
token?: string;
|
|
101
|
+
expiresAt?: string;
|
|
102
|
+
};
|
|
103
|
+
export type ApiQueueOperation = ApiOperationResponse['operation'] & {
|
|
104
|
+
queue: OperationJob;
|
|
105
|
+
approximatePosition?: {
|
|
106
|
+
ahead: number;
|
|
107
|
+
precision: 'bounded';
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
export interface ApiOperationLogsResponse {
|
|
111
|
+
data: OperationLogEntry[];
|
|
112
|
+
cursor: number;
|
|
113
|
+
hasMore: boolean;
|
|
114
|
+
requestId: string;
|
|
115
|
+
}
|
|
116
|
+
export interface ApiQueueSettingsResponse {
|
|
117
|
+
concurrency: QueueConcurrencyLimits;
|
|
118
|
+
requestId: string;
|
|
119
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { AUTH_ACTION_TOKEN_TTL_MS, AUTH_MFA_CHALLENGE_TTL_MS, AUTH_OIDC_TRANSACTION_TTL_MS, AUTH_SESSION_ABSOLUTE_TTL_MS, AUTH_SESSION_IDLE_TTL_MS, AuthenticationStore, } from './store';
|
|
2
|
+
export * from './types';
|
|
3
|
+
export { sendAuthenticationEmail } from './mailer';
|
|
4
|
+
export type { AuthenticationEmail } from './mailer';
|
|
5
|
+
export { AUTH_ENCRYPTION_KEY_FILE, resolveAuthEncryptionKey } from './encryption';
|
|
6
|
+
export { decodeBase32, encodeBase32, hotp, matchTotpCounter, totp, totpUri, verifyTotp } from './totp';
|
|
7
|
+
export { beginOidcAuthorization, completeOidcAuthorization, discoverOidcProvider, sanitizeOidcReturnPath } from './oidc';
|
|
8
|
+
export type { OidcDiscoveryDocument, OidcFetch, VerifiedOidcIdentity } from './oidc';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { CloudConfig } from '@ts-cloud/core';
|
|
2
|
+
export interface AuthenticationEmail {
|
|
3
|
+
to: string;
|
|
4
|
+
subject: string;
|
|
5
|
+
text: string;
|
|
6
|
+
html?: string;
|
|
7
|
+
}
|
|
8
|
+
/** Deliver authentication mail through ts-cloud's existing SES client. */
|
|
9
|
+
export declare function sendAuthenticationEmail(config: CloudConfig, message: AuthenticationEmail): Promise<boolean>;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { AuthenticationStore } from './store';
|
|
2
|
+
import type { AuthOidcProvider } from './types';
|
|
3
|
+
export interface OidcDiscoveryDocument {
|
|
4
|
+
issuer: string;
|
|
5
|
+
authorization_endpoint: string;
|
|
6
|
+
token_endpoint: string;
|
|
7
|
+
jwks_uri: string;
|
|
8
|
+
response_types_supported?: string[];
|
|
9
|
+
id_token_signing_alg_values_supported?: string[];
|
|
10
|
+
code_challenge_methods_supported?: string[];
|
|
11
|
+
token_endpoint_auth_methods_supported?: string[];
|
|
12
|
+
}
|
|
13
|
+
export interface VerifiedOidcIdentity {
|
|
14
|
+
provider: AuthOidcProvider;
|
|
15
|
+
subject: string;
|
|
16
|
+
email: string;
|
|
17
|
+
name?: string;
|
|
18
|
+
claims: Record<string, unknown>;
|
|
19
|
+
}
|
|
20
|
+
export type OidcFetch = (input: string | URL | Request, init?: RequestInit) => Promise<Response>;
|
|
21
|
+
export declare function sanitizeOidcReturnPath(value: string | undefined): string;
|
|
22
|
+
export declare function discoverOidcProvider(provider: AuthOidcProvider, fetchFn?: OidcFetch): Promise<OidcDiscoveryDocument>;
|
|
23
|
+
export declare function beginOidcAuthorization(auth: AuthenticationStore, providerSlug: string, origin: string, returnPath?: string, fetchFn?: OidcFetch): Promise<{
|
|
24
|
+
authorizationUrl: string;
|
|
25
|
+
expiresAt: string;
|
|
26
|
+
}>;
|
|
27
|
+
export declare function completeOidcAuthorization(auth: AuthenticationStore, input: {
|
|
28
|
+
providerSlug: string;
|
|
29
|
+
state: string;
|
|
30
|
+
code: string;
|
|
31
|
+
origin: string;
|
|
32
|
+
now?: Date;
|
|
33
|
+
}, fetchFn?: OidcFetch): Promise<{
|
|
34
|
+
identity: VerifiedOidcIdentity;
|
|
35
|
+
returnPath: string;
|
|
36
|
+
}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import type { ControlPlaneStore } from '../control-plane/store';
|
|
2
|
+
import type { JsonValue } from '../control-plane/types';
|
|
3
|
+
import type { AuthActionToken, AuthActionTokenType, AuthenticationStoreOptions, AuthIdentity, AuthMfaChallenge, AuthMfaFactor, AuthOidcProvider, AuthOidcSubject, AuthOidcTransaction, AuthSession, CreateAuthIdentityInput, CreateAuthSessionInput, UpsertAuthOidcProviderInput } from './types';
|
|
4
|
+
export declare const AUTH_SESSION_IDLE_TTL_MS: number;
|
|
5
|
+
export declare const AUTH_SESSION_ABSOLUTE_TTL_MS: number;
|
|
6
|
+
export declare const AUTH_ACTION_TOKEN_TTL_MS: number;
|
|
7
|
+
export declare const AUTH_MFA_CHALLENGE_TTL_MS: number;
|
|
8
|
+
export declare const AUTH_OIDC_TRANSACTION_TTL_MS: number;
|
|
9
|
+
export declare class AuthenticationStore {
|
|
10
|
+
private readonly controlPlane;
|
|
11
|
+
private readonly nowFn;
|
|
12
|
+
private readonly idFn;
|
|
13
|
+
private readonly encryptionKey?;
|
|
14
|
+
constructor(controlPlane: ControlPlaneStore, options?: AuthenticationStoreOptions);
|
|
15
|
+
private now;
|
|
16
|
+
private run;
|
|
17
|
+
private encrypt;
|
|
18
|
+
private decrypt;
|
|
19
|
+
createIdentity(input: CreateAuthIdentityInput): AuthIdentity;
|
|
20
|
+
getIdentity(id: string): AuthIdentity | undefined;
|
|
21
|
+
getIdentityByActor(actorId: string): AuthIdentity | undefined;
|
|
22
|
+
getIdentityByUsername(username: string): AuthIdentity | undefined;
|
|
23
|
+
getIdentityByEmail(email: string): AuthIdentity | undefined;
|
|
24
|
+
listIdentities(): AuthIdentity[];
|
|
25
|
+
updatePassword(identityId: string, passwordHash: string, options?: {
|
|
26
|
+
requiresUpgrade?: boolean;
|
|
27
|
+
revokeSessions?: boolean;
|
|
28
|
+
}): AuthIdentity;
|
|
29
|
+
/** Upgrade password-hash parameters without treating it as a credential change. */
|
|
30
|
+
rehashPassword(identityId: string, passwordHash: string): AuthIdentity;
|
|
31
|
+
setVerifiedEmail(identityId: string, email: string): AuthIdentity;
|
|
32
|
+
recordLogin(identityId: string): AuthIdentity;
|
|
33
|
+
setDisabled(identityId: string, disabled: boolean): AuthIdentity;
|
|
34
|
+
createActionToken(identityId: string, type: AuthActionTokenType, options?: {
|
|
35
|
+
ttlMs?: number;
|
|
36
|
+
metadata?: JsonValue;
|
|
37
|
+
}): {
|
|
38
|
+
actionToken: AuthActionToken;
|
|
39
|
+
token: string;
|
|
40
|
+
};
|
|
41
|
+
getActionToken(id: string): AuthActionToken | undefined;
|
|
42
|
+
consumeActionToken(token: string, type: AuthActionTokenType): AuthActionToken;
|
|
43
|
+
revokeActionTokens(identityId: string, type: AuthActionTokenType): number;
|
|
44
|
+
createSession(input: CreateAuthSessionInput): {
|
|
45
|
+
session: AuthSession;
|
|
46
|
+
token: string;
|
|
47
|
+
};
|
|
48
|
+
getSession(id: string): AuthSession | undefined;
|
|
49
|
+
verifySessionToken(token: string): {
|
|
50
|
+
identity: AuthIdentity;
|
|
51
|
+
session: AuthSession;
|
|
52
|
+
} | undefined;
|
|
53
|
+
listSessions(identityId: string, options?: {
|
|
54
|
+
includeInactive?: boolean;
|
|
55
|
+
}): AuthSession[];
|
|
56
|
+
revokeSession(identityId: string, sessionId: string): boolean;
|
|
57
|
+
revokeOtherSessions(identityId: string, currentSessionId: string): number;
|
|
58
|
+
getMfaFactor(identityId: string): AuthMfaFactor | undefined;
|
|
59
|
+
beginTotpEnrollment(identityId: string, options?: {
|
|
60
|
+
label?: string;
|
|
61
|
+
issuer?: string;
|
|
62
|
+
}): {
|
|
63
|
+
factor: AuthMfaFactor;
|
|
64
|
+
secret: string;
|
|
65
|
+
uri: string;
|
|
66
|
+
};
|
|
67
|
+
verifyTotpEnrollment(identityId: string, code: string): {
|
|
68
|
+
factor: AuthMfaFactor;
|
|
69
|
+
recoveryCodes: string[];
|
|
70
|
+
};
|
|
71
|
+
verifyMfaCode(identityId: string, code: string, options?: {
|
|
72
|
+
consumeRecovery?: boolean;
|
|
73
|
+
}): {
|
|
74
|
+
valid: boolean;
|
|
75
|
+
method?: 'totp' | 'recovery';
|
|
76
|
+
};
|
|
77
|
+
remainingRecoveryCodes(identityId: string): number;
|
|
78
|
+
disableMfa(identityId: string): void;
|
|
79
|
+
createMfaChallenge(identityId: string, purpose: AuthMfaChallenge['purpose']): {
|
|
80
|
+
challenge: AuthMfaChallenge;
|
|
81
|
+
token: string;
|
|
82
|
+
};
|
|
83
|
+
getMfaChallenge(id: string): AuthMfaChallenge | undefined;
|
|
84
|
+
inspectMfaChallengeToken(token: string, purpose: AuthMfaChallenge['purpose']): AuthMfaChallenge | undefined;
|
|
85
|
+
completeMfaChallenge(token: string, code: string, purpose: AuthMfaChallenge['purpose']): {
|
|
86
|
+
identity: AuthIdentity;
|
|
87
|
+
challenge: AuthMfaChallenge;
|
|
88
|
+
method: 'totp' | 'recovery';
|
|
89
|
+
};
|
|
90
|
+
markSessionStepUp(sessionId: string, mfa?: boolean): AuthSession;
|
|
91
|
+
isRecentlyAuthenticated(session: AuthSession, maxAgeMs?: number): boolean;
|
|
92
|
+
upsertOidcProvider(input: UpsertAuthOidcProviderInput): AuthOidcProvider;
|
|
93
|
+
getOidcProvider(id: string): AuthOidcProvider | undefined;
|
|
94
|
+
getOidcProviderBySlug(slug: string): AuthOidcProvider | undefined;
|
|
95
|
+
listOidcProviders(organizationId?: string, options?: {
|
|
96
|
+
includeDisabled?: boolean;
|
|
97
|
+
}): AuthOidcProvider[];
|
|
98
|
+
setOidcProviderEnabled(providerId: string, enabled: boolean): AuthOidcProvider;
|
|
99
|
+
getOidcProviderCredentials(providerId: string): {
|
|
100
|
+
provider: AuthOidcProvider;
|
|
101
|
+
clientSecret: string;
|
|
102
|
+
};
|
|
103
|
+
beginOidcTransaction(providerId: string, redirectUri: string, returnPath: string): {
|
|
104
|
+
transaction: AuthOidcTransaction;
|
|
105
|
+
state: string;
|
|
106
|
+
nonce: string;
|
|
107
|
+
verifier: string;
|
|
108
|
+
};
|
|
109
|
+
getOidcTransaction(id: string): AuthOidcTransaction | undefined;
|
|
110
|
+
consumeOidcTransaction(providerId: string, state: string): {
|
|
111
|
+
transaction: AuthOidcTransaction;
|
|
112
|
+
nonce: string;
|
|
113
|
+
verifier: string;
|
|
114
|
+
};
|
|
115
|
+
getOidcSubject(providerId: string, subject: string): AuthOidcSubject | undefined;
|
|
116
|
+
linkOidcSubject(providerId: string, identityId: string, subject: string, email: string): AuthOidcSubject;
|
|
117
|
+
purgeExpired(): {
|
|
118
|
+
actionTokens: number;
|
|
119
|
+
sessions: number;
|
|
120
|
+
};
|
|
121
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare function encodeBase32(value: Uint8Array): string;
|
|
2
|
+
export declare function decodeBase32(value: string): Buffer;
|
|
3
|
+
export declare function hotp(secret: string, counter: number, digits?: number): string;
|
|
4
|
+
export declare function totp(secret: string, timeMs?: number, stepSeconds?: number): string;
|
|
5
|
+
export declare function verifyTotp(secret: string, code: string, timeMs?: number, window?: number): boolean;
|
|
6
|
+
export declare function matchTotpCounter(secret: string, code: string, timeMs?: number, window?: number): number | undefined;
|
|
7
|
+
export declare function totpUri(input: {
|
|
8
|
+
secret: string;
|
|
9
|
+
account: string;
|
|
10
|
+
issuer?: string;
|
|
11
|
+
}): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import type { ControlPlaneId, JsonValue } from '../control-plane/types';
|
|
2
|
+
export type AuthActionTokenType = 'activation' | 'password_reset' | 'email_verification';
|
|
3
|
+
export type AuthMethod = 'local' | 'oidc';
|
|
4
|
+
export interface AuthIdentity {
|
|
5
|
+
id: ControlPlaneId;
|
|
6
|
+
actorId: ControlPlaneId;
|
|
7
|
+
username: string;
|
|
8
|
+
email?: string;
|
|
9
|
+
emailVerifiedAt?: string;
|
|
10
|
+
passwordHash: string;
|
|
11
|
+
credentialVersion: number;
|
|
12
|
+
requiresPasswordUpgrade: boolean;
|
|
13
|
+
disabledAt?: string;
|
|
14
|
+
lastLoginAt?: string;
|
|
15
|
+
createdAt: string;
|
|
16
|
+
updatedAt: string;
|
|
17
|
+
}
|
|
18
|
+
export interface AuthActionToken {
|
|
19
|
+
id: ControlPlaneId;
|
|
20
|
+
identityId: ControlPlaneId;
|
|
21
|
+
type: AuthActionTokenType;
|
|
22
|
+
metadata: JsonValue;
|
|
23
|
+
expiresAt: string;
|
|
24
|
+
consumedAt?: string;
|
|
25
|
+
createdAt: string;
|
|
26
|
+
state: 'pending' | 'consumed' | 'expired';
|
|
27
|
+
}
|
|
28
|
+
export interface AuthSession {
|
|
29
|
+
id: ControlPlaneId;
|
|
30
|
+
identityId: ControlPlaneId;
|
|
31
|
+
credentialVersion: number;
|
|
32
|
+
authMethod: AuthMethod;
|
|
33
|
+
userAgent?: string;
|
|
34
|
+
networkHint?: string;
|
|
35
|
+
createdAt: string;
|
|
36
|
+
lastUsedAt: string;
|
|
37
|
+
idleExpiresAt: string;
|
|
38
|
+
absoluteExpiresAt: string;
|
|
39
|
+
recentAuthAt: string;
|
|
40
|
+
mfaAt?: string;
|
|
41
|
+
revokedAt?: string;
|
|
42
|
+
state: 'active' | 'revoked' | 'expired';
|
|
43
|
+
}
|
|
44
|
+
export interface CreateAuthIdentityInput {
|
|
45
|
+
id?: ControlPlaneId;
|
|
46
|
+
actorId: ControlPlaneId;
|
|
47
|
+
username: string;
|
|
48
|
+
email?: string;
|
|
49
|
+
emailVerified?: boolean;
|
|
50
|
+
passwordHash: string;
|
|
51
|
+
requiresPasswordUpgrade?: boolean;
|
|
52
|
+
}
|
|
53
|
+
export interface CreateAuthSessionInput {
|
|
54
|
+
identityId: ControlPlaneId;
|
|
55
|
+
authMethod?: AuthMethod;
|
|
56
|
+
userAgent?: string;
|
|
57
|
+
networkHint?: string;
|
|
58
|
+
idleTtlMs?: number;
|
|
59
|
+
absoluteTtlMs?: number;
|
|
60
|
+
recentAuthAt?: string;
|
|
61
|
+
mfaAt?: string;
|
|
62
|
+
}
|
|
63
|
+
export interface AuthenticationStoreOptions {
|
|
64
|
+
now?: () => Date;
|
|
65
|
+
id?: () => string;
|
|
66
|
+
/** Secret used to encrypt MFA seeds at rest. MFA methods require it. */
|
|
67
|
+
encryptionKey?: string;
|
|
68
|
+
}
|
|
69
|
+
export type AuthOidcRole = 'admin' | 'deployer' | 'operator' | 'viewer' | 'auditor';
|
|
70
|
+
export interface AuthOidcProvider {
|
|
71
|
+
id: ControlPlaneId;
|
|
72
|
+
organizationId: ControlPlaneId;
|
|
73
|
+
slug: string;
|
|
74
|
+
name: string;
|
|
75
|
+
issuer: string;
|
|
76
|
+
clientId: string;
|
|
77
|
+
hasClientSecret: boolean;
|
|
78
|
+
scopes: string[];
|
|
79
|
+
allowedDomains: string[];
|
|
80
|
+
defaultRole: AuthOidcRole;
|
|
81
|
+
enabled: boolean;
|
|
82
|
+
enforceSso: boolean;
|
|
83
|
+
createdAt: string;
|
|
84
|
+
updatedAt: string;
|
|
85
|
+
}
|
|
86
|
+
export interface UpsertAuthOidcProviderInput {
|
|
87
|
+
id?: ControlPlaneId;
|
|
88
|
+
organizationId: ControlPlaneId;
|
|
89
|
+
slug: string;
|
|
90
|
+
name: string;
|
|
91
|
+
issuer: string;
|
|
92
|
+
clientId: string;
|
|
93
|
+
clientSecret?: string;
|
|
94
|
+
scopes?: string[];
|
|
95
|
+
allowedDomains: string[];
|
|
96
|
+
defaultRole?: AuthOidcRole;
|
|
97
|
+
enabled?: boolean;
|
|
98
|
+
enforceSso?: boolean;
|
|
99
|
+
}
|
|
100
|
+
export interface AuthOidcTransaction {
|
|
101
|
+
id: ControlPlaneId;
|
|
102
|
+
providerId: ControlPlaneId;
|
|
103
|
+
redirectUri: string;
|
|
104
|
+
returnPath: string;
|
|
105
|
+
expiresAt: string;
|
|
106
|
+
consumedAt?: string;
|
|
107
|
+
createdAt: string;
|
|
108
|
+
state: 'pending' | 'consumed' | 'expired';
|
|
109
|
+
}
|
|
110
|
+
export interface AuthOidcSubject {
|
|
111
|
+
id: ControlPlaneId;
|
|
112
|
+
providerId: ControlPlaneId;
|
|
113
|
+
identityId: ControlPlaneId;
|
|
114
|
+
subject: string;
|
|
115
|
+
email: string;
|
|
116
|
+
linkedAt: string;
|
|
117
|
+
lastLoginAt: string;
|
|
118
|
+
}
|
|
119
|
+
export interface AuthMfaFactor {
|
|
120
|
+
id: ControlPlaneId;
|
|
121
|
+
identityId: ControlPlaneId;
|
|
122
|
+
type: 'totp';
|
|
123
|
+
label: string;
|
|
124
|
+
createdAt: string;
|
|
125
|
+
verifiedAt?: string;
|
|
126
|
+
disabledAt?: string;
|
|
127
|
+
state: 'pending' | 'active' | 'disabled';
|
|
128
|
+
}
|
|
129
|
+
export interface AuthMfaChallenge {
|
|
130
|
+
id: ControlPlaneId;
|
|
131
|
+
identityId: ControlPlaneId;
|
|
132
|
+
purpose: 'login' | 'step_up';
|
|
133
|
+
attempts: number;
|
|
134
|
+
expiresAt: string;
|
|
135
|
+
consumedAt?: string;
|
|
136
|
+
createdAt: string;
|
|
137
|
+
state: 'pending' | 'consumed' | 'expired' | 'locked';
|
|
138
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import type { ControlPlaneStore } from '../control-plane';
|
|
2
|
+
import type { ApiIdempotencyRecord, ApiToken, ApiTokenPrincipal, CreateApiTokenInput, CreateServiceAccountInput, ServiceAccount } from './types';
|
|
3
|
+
export declare const API_TOKEN_DEFAULT_TTL_MS: number;
|
|
4
|
+
export declare const API_TOKEN_MAX_TTL_MS: number;
|
|
5
|
+
export declare const API_IDEMPOTENCY_TTL_MS: number;
|
|
6
|
+
export declare class AutomationIdentityStore {
|
|
7
|
+
private readonly controlPlane;
|
|
8
|
+
private readonly nowFn;
|
|
9
|
+
private readonly idFn;
|
|
10
|
+
constructor(controlPlane: ControlPlaneStore, options?: {
|
|
11
|
+
now?: () => Date;
|
|
12
|
+
id?: () => string;
|
|
13
|
+
});
|
|
14
|
+
private now;
|
|
15
|
+
private run;
|
|
16
|
+
createServiceAccount(input: CreateServiceAccountInput): {
|
|
17
|
+
serviceAccount: ServiceAccount;
|
|
18
|
+
membership: ApiTokenPrincipal['membership'];
|
|
19
|
+
};
|
|
20
|
+
getServiceAccount(id: string): ServiceAccount | undefined;
|
|
21
|
+
getServiceAccountBySlug(organizationId: string, slug: string): ServiceAccount | undefined;
|
|
22
|
+
listServiceAccounts(organizationId: string, options?: {
|
|
23
|
+
includeDisabled?: boolean;
|
|
24
|
+
}): ServiceAccount[];
|
|
25
|
+
disableServiceAccount(id: string, actorId?: string): ServiceAccount;
|
|
26
|
+
createToken(input: CreateApiTokenInput): {
|
|
27
|
+
token: ApiToken;
|
|
28
|
+
secret: string;
|
|
29
|
+
};
|
|
30
|
+
getToken(id: string): ApiToken | undefined;
|
|
31
|
+
listTokens(serviceAccountId: string, options?: {
|
|
32
|
+
includeInactive?: boolean;
|
|
33
|
+
}): ApiToken[];
|
|
34
|
+
verifyToken(secret: string, networkHint?: string): ApiTokenPrincipal | undefined;
|
|
35
|
+
rotateToken(tokenId: string, createdByActorId?: string): {
|
|
36
|
+
token: ApiToken;
|
|
37
|
+
secret: string;
|
|
38
|
+
};
|
|
39
|
+
revokeToken(tokenId: string, actorId?: string): ApiToken;
|
|
40
|
+
getIdempotency(tokenId: string, key: string): ApiIdempotencyRecord | undefined;
|
|
41
|
+
saveIdempotency(input: Omit<ApiIdempotencyRecord, 'id' | 'createdAt' | 'expiresAt'>): ApiIdempotencyRecord;
|
|
42
|
+
purgeExpired(): {
|
|
43
|
+
tokens: number;
|
|
44
|
+
idempotency: number;
|
|
45
|
+
};
|
|
46
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import type { AuthorizationCapability, AuthorizationScope, ControlPlaneActor, ControlPlaneId, OrganizationMembership, OrganizationRoleTemplate } from '../control-plane';
|
|
2
|
+
export interface ServiceAccount {
|
|
3
|
+
id: ControlPlaneId;
|
|
4
|
+
organizationId: ControlPlaneId;
|
|
5
|
+
actorId: ControlPlaneId;
|
|
6
|
+
slug: string;
|
|
7
|
+
name: string;
|
|
8
|
+
description?: string;
|
|
9
|
+
createdByActorId?: ControlPlaneId;
|
|
10
|
+
disabledAt?: string;
|
|
11
|
+
createdAt: string;
|
|
12
|
+
updatedAt: string;
|
|
13
|
+
state: 'active' | 'disabled';
|
|
14
|
+
}
|
|
15
|
+
export interface ApiToken {
|
|
16
|
+
id: ControlPlaneId;
|
|
17
|
+
serviceAccountId: ControlPlaneId;
|
|
18
|
+
name: string;
|
|
19
|
+
prefix: string;
|
|
20
|
+
capabilities: AuthorizationCapability[];
|
|
21
|
+
scope: AuthorizationScope;
|
|
22
|
+
expiresAt: string;
|
|
23
|
+
lastUsedAt?: string;
|
|
24
|
+
lastNetworkHint?: string;
|
|
25
|
+
revokedAt?: string;
|
|
26
|
+
rotatedFromTokenId?: string;
|
|
27
|
+
createdByActorId?: ControlPlaneId;
|
|
28
|
+
createdAt: string;
|
|
29
|
+
updatedAt: string;
|
|
30
|
+
state: 'active' | 'expired' | 'revoked';
|
|
31
|
+
}
|
|
32
|
+
export interface CreateServiceAccountInput {
|
|
33
|
+
organizationId: ControlPlaneId;
|
|
34
|
+
slug: string;
|
|
35
|
+
name: string;
|
|
36
|
+
description?: string;
|
|
37
|
+
roleTemplate: Exclude<OrganizationRoleTemplate, 'owner'>;
|
|
38
|
+
scope?: AuthorizationScope;
|
|
39
|
+
createdByActorId?: ControlPlaneId;
|
|
40
|
+
}
|
|
41
|
+
export interface CreateApiTokenInput {
|
|
42
|
+
serviceAccountId: ControlPlaneId;
|
|
43
|
+
name: string;
|
|
44
|
+
capabilities: AuthorizationCapability[];
|
|
45
|
+
scope?: AuthorizationScope;
|
|
46
|
+
expiresAt?: string;
|
|
47
|
+
createdByActorId?: ControlPlaneId;
|
|
48
|
+
rotatedFromTokenId?: ControlPlaneId;
|
|
49
|
+
}
|
|
50
|
+
export interface ApiTokenPrincipal {
|
|
51
|
+
serviceAccount: ServiceAccount;
|
|
52
|
+
token: ApiToken;
|
|
53
|
+
actor: ControlPlaneActor;
|
|
54
|
+
membership: OrganizationMembership;
|
|
55
|
+
}
|
|
56
|
+
export interface ApiIdempotencyRecord {
|
|
57
|
+
id: ControlPlaneId;
|
|
58
|
+
tokenId: ControlPlaneId;
|
|
59
|
+
key: string;
|
|
60
|
+
requestHash: string;
|
|
61
|
+
operationId?: ControlPlaneId;
|
|
62
|
+
responseStatus: number;
|
|
63
|
+
responseBody: unknown;
|
|
64
|
+
expiresAt: string;
|
|
65
|
+
createdAt: string;
|
|
66
|
+
}
|
package/dist/aws/acm.d.ts
CHANGED
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* AWS Application Auto Scaling Client
|
|
3
|
-
* Supports auto-scaling for ECS services, DynamoDB tables, and other AWS resources
|
|
4
|
-
* Direct API calls without AWS CLI dependency
|
|
5
|
-
*/
|
|
6
1
|
export type ScalableDimension = 'ecs:service:DesiredCount' | 'dynamodb:table:ReadCapacityUnits' | 'dynamodb:table:WriteCapacityUnits' | 'dynamodb:index:ReadCapacityUnits' | 'dynamodb:index:WriteCapacityUnits' | 'rds:cluster:ReadReplicaCount' | 'lambda:function:ProvisionedConcurrency' | 'elasticache:replication-group:NodeGroups' | 'elasticache:replication-group:Replicas';
|
|
7
2
|
export type ServiceNamespace = 'ecs' | 'dynamodb' | 'rds' | 'lambda' | 'elasticache' | 'custom-resource' | 'comprehend' | 'kafka' | 'sagemaker';
|
|
8
3
|
export type MetricType = 'ECSServiceAverageCPUUtilization' | 'ECSServiceAverageMemoryUtilization' | 'ALBRequestCountPerTarget' | 'DynamoDBReadCapacityUtilization' | 'DynamoDBWriteCapacityUtilization' | 'RDSReaderAverageCPUUtilization' | 'RDSReaderAverageDatabaseConnections' | 'EC2SpotFleetRequestAverageCPUUtilization' | 'EC2SpotFleetRequestAverageNetworkIn' | 'EC2SpotFleetRequestAverageNetworkOut' | 'SageMakerVariantInvocationsPerInstance' | 'SageMakerVariantProvisionedConcurrencyUtilization' | 'ElastiCachePrimaryEngineCPUUtilization' | 'ElastiCacheReplicaEngineCPUUtilization' | 'ElastiCacheDatabaseMemoryUsageCountedForEvictPercentage' | 'LambdaProvisionedConcurrencyUtilization' | 'CassandraReadCapacityUtilization' | 'CassandraWriteCapacityUtilization';
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { AWSClient } from './client';
|
|
2
|
+
export interface AwsBackupJob {
|
|
3
|
+
BackupJobId?: string;
|
|
4
|
+
State?: string;
|
|
5
|
+
StatusMessage?: string;
|
|
6
|
+
RecoveryPointArn?: string;
|
|
7
|
+
BackupSizeInBytes?: number;
|
|
8
|
+
ResourceArn?: string;
|
|
9
|
+
BackupVaultName?: string;
|
|
10
|
+
}
|
|
11
|
+
export interface AwsRestoreJob {
|
|
12
|
+
RestoreJobId?: string;
|
|
13
|
+
Status?: string;
|
|
14
|
+
StatusMessage?: string;
|
|
15
|
+
CreatedResourceArn?: string;
|
|
16
|
+
RecoveryPointArn?: string;
|
|
17
|
+
}
|
|
18
|
+
export declare class AwsBackupClient {
|
|
19
|
+
private readonly region;
|
|
20
|
+
private readonly client;
|
|
21
|
+
constructor(region?: string, client?: AWSClient);
|
|
22
|
+
private request;
|
|
23
|
+
startBackupJob(input: {
|
|
24
|
+
BackupVaultName: string;
|
|
25
|
+
ResourceArn: string;
|
|
26
|
+
IamRoleArn: string;
|
|
27
|
+
IdempotencyToken: string;
|
|
28
|
+
}): Promise<{
|
|
29
|
+
BackupJobId: string;
|
|
30
|
+
}>;
|
|
31
|
+
describeBackupJob(BackupJobId: string): Promise<AwsBackupJob>;
|
|
32
|
+
startRestoreJob(input: {
|
|
33
|
+
RecoveryPointArn: string;
|
|
34
|
+
IamRoleArn: string;
|
|
35
|
+
Metadata: Record<string, string>;
|
|
36
|
+
IdempotencyToken: string;
|
|
37
|
+
}): Promise<{
|
|
38
|
+
RestoreJobId: string;
|
|
39
|
+
}>;
|
|
40
|
+
describeRestoreJob(RestoreJobId: string): Promise<AwsRestoreJob>;
|
|
41
|
+
deleteRecoveryPoint(BackupVaultName: string, RecoveryPointArn: string): Promise<void>;
|
|
42
|
+
}
|
package/dist/aws/bedrock.d.ts
CHANGED
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* AWS Bedrock Client
|
|
3
|
-
* Direct API calls for Bedrock AI model invocations and management
|
|
4
|
-
* No external SDK dependencies - implements AWS Signature V4 directly
|
|
5
|
-
*/
|
|
6
1
|
export interface BedrockMessage {
|
|
7
2
|
role: 'user' | 'assistant';
|
|
8
3
|
content: string | BedrockContentBlock[];
|