@stacksjs/ts-cloud 0.7.55 → 0.7.57
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 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type { Alert, NotificationChannel, NotificationDelivery, NotificationRoute } from './model';
|
|
2
|
+
import { AlertStore } from './store';
|
|
3
|
+
export type NotificationFetch = (input: string, init: {
|
|
4
|
+
method: string;
|
|
5
|
+
headers: Record<string, string>;
|
|
6
|
+
body: string;
|
|
7
|
+
signal?: AbortSignal;
|
|
8
|
+
}) => Promise<{
|
|
9
|
+
ok: boolean;
|
|
10
|
+
status: number;
|
|
11
|
+
}>;
|
|
12
|
+
export type NotificationEmail = (input: {
|
|
13
|
+
to: string | string[];
|
|
14
|
+
from?: string;
|
|
15
|
+
subject: string;
|
|
16
|
+
text: string;
|
|
17
|
+
}) => Promise<unknown>;
|
|
18
|
+
export declare function isQuietHours(route: NotificationRoute, at: Date): boolean;
|
|
19
|
+
export declare class NotificationRouter {
|
|
20
|
+
private readonly store;
|
|
21
|
+
private readonly options;
|
|
22
|
+
private readonly fetchImpl;
|
|
23
|
+
constructor(store: AlertStore, options?: {
|
|
24
|
+
fetchImpl?: NotificationFetch;
|
|
25
|
+
emailImpl?: NotificationEmail;
|
|
26
|
+
now?: () => Date;
|
|
27
|
+
});
|
|
28
|
+
private now;
|
|
29
|
+
preview(organizationId: string, alert: Alert, eventType: string): Array<{
|
|
30
|
+
route: NotificationRoute;
|
|
31
|
+
channels: NotificationChannel[];
|
|
32
|
+
quiet: boolean;
|
|
33
|
+
}>;
|
|
34
|
+
enqueue(organizationId: string, alert: Alert, eventType: 'firing' | 'resolved' | 'reminder' | 'escalation'): NotificationDelivery[];
|
|
35
|
+
enqueueRemindersAndEscalations(organizationId: string, alerts: Alert[]): NotificationDelivery[];
|
|
36
|
+
private send;
|
|
37
|
+
deliver(id: string): Promise<NotificationDelivery>;
|
|
38
|
+
deliverAll(deliveries: NotificationDelivery[]): Promise<NotificationDelivery[]>;
|
|
39
|
+
retryDue(): Promise<NotificationDelivery[]>;
|
|
40
|
+
testChannel(id: string): Promise<{
|
|
41
|
+
ok: boolean;
|
|
42
|
+
status?: number;
|
|
43
|
+
error?: string;
|
|
44
|
+
}>;
|
|
45
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Alert, AlertRule, AlertSample } from './model';
|
|
2
|
+
import { AlertStore } from './store';
|
|
3
|
+
export interface AlertEvaluation {
|
|
4
|
+
alert?: Alert;
|
|
5
|
+
transition: 'ignored' | 'pending' | 'firing' | 'updated' | 'resolved' | 'silenced';
|
|
6
|
+
notify: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare class AlertEvaluator {
|
|
9
|
+
private readonly store;
|
|
10
|
+
constructor(store: AlertStore);
|
|
11
|
+
evaluate(rule: AlertRule, sample: AlertSample): AlertEvaluation;
|
|
12
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { AlertEvaluation } from './evaluator';
|
|
2
|
+
import type { HealthCheck, HealthResult } from './model';
|
|
3
|
+
import { AlertStore } from './store';
|
|
4
|
+
type FetchLike = (input: string, init: {
|
|
5
|
+
method: string;
|
|
6
|
+
headers?: Record<string, string>;
|
|
7
|
+
signal: AbortSignal;
|
|
8
|
+
redirect: 'manual';
|
|
9
|
+
}) => Promise<Response>;
|
|
10
|
+
type CommandLike = (command: string[], timeoutMs: number) => Promise<{
|
|
11
|
+
exitCode: number;
|
|
12
|
+
stdout: string;
|
|
13
|
+
stderr: string;
|
|
14
|
+
}>;
|
|
15
|
+
export declare class HealthCheckRunner {
|
|
16
|
+
private readonly store;
|
|
17
|
+
private readonly options;
|
|
18
|
+
constructor(store: AlertStore, options?: {
|
|
19
|
+
fetchImpl?: FetchLike;
|
|
20
|
+
commandImpl?: CommandLike;
|
|
21
|
+
lookupImpl?: (hostname: string) => Promise<unknown>;
|
|
22
|
+
now?: () => Date;
|
|
23
|
+
agent?: string;
|
|
24
|
+
region?: string;
|
|
25
|
+
});
|
|
26
|
+
private now;
|
|
27
|
+
probe(check: HealthCheck): Promise<Omit<HealthResult, 'id'>>;
|
|
28
|
+
run(check: HealthCheck): Promise<HealthResult>;
|
|
29
|
+
runAndEvaluate(check: HealthCheck): Promise<{
|
|
30
|
+
result: HealthResult;
|
|
31
|
+
evaluations: AlertEvaluation[];
|
|
32
|
+
}>;
|
|
33
|
+
}
|
|
34
|
+
export {};
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
import type { JsonValue } from '../control-plane';
|
|
2
|
+
export type HealthCheckKind = 'http' | 'tcp' | 'command';
|
|
3
|
+
export type HealthStatus = 'healthy' | 'unhealthy' | 'no_data';
|
|
4
|
+
export type AlertState = 'pending' | 'firing' | 'resolved' | 'silenced';
|
|
5
|
+
export type AlertSeverity = 'info' | 'warning' | 'critical';
|
|
6
|
+
export type NotificationChannelKind = 'slack' | 'discord' | 'teams' | 'telegram' | 'email' | 'webhook';
|
|
7
|
+
export interface HealthCheck {
|
|
8
|
+
id: string;
|
|
9
|
+
projectId: string;
|
|
10
|
+
environmentId?: string;
|
|
11
|
+
resourceId?: string;
|
|
12
|
+
name: string;
|
|
13
|
+
kind: HealthCheckKind;
|
|
14
|
+
target: string;
|
|
15
|
+
config: {
|
|
16
|
+
method?: string;
|
|
17
|
+
path?: string;
|
|
18
|
+
port?: number;
|
|
19
|
+
command?: string[];
|
|
20
|
+
expectedStatuses?: number[];
|
|
21
|
+
expectedBody?: string;
|
|
22
|
+
headers?: Record<string, string>;
|
|
23
|
+
};
|
|
24
|
+
intervalSeconds: number;
|
|
25
|
+
timeoutSeconds: number;
|
|
26
|
+
failureThreshold: number;
|
|
27
|
+
recoveryThreshold: number;
|
|
28
|
+
regions: string[];
|
|
29
|
+
enabled: boolean;
|
|
30
|
+
version: number;
|
|
31
|
+
createdAt: string;
|
|
32
|
+
updatedAt: string;
|
|
33
|
+
}
|
|
34
|
+
export interface HealthResult {
|
|
35
|
+
id: string;
|
|
36
|
+
checkId: string;
|
|
37
|
+
status: HealthStatus;
|
|
38
|
+
agent: string;
|
|
39
|
+
region?: string;
|
|
40
|
+
statusCode?: number;
|
|
41
|
+
message?: string;
|
|
42
|
+
timings: {
|
|
43
|
+
dnsMs?: number;
|
|
44
|
+
connectMs?: number;
|
|
45
|
+
tlsMs?: number;
|
|
46
|
+
ttfbMs?: number;
|
|
47
|
+
totalMs?: number;
|
|
48
|
+
};
|
|
49
|
+
checkedAt: string;
|
|
50
|
+
}
|
|
51
|
+
export interface AlertRule {
|
|
52
|
+
id: string;
|
|
53
|
+
projectId: string;
|
|
54
|
+
environmentId?: string;
|
|
55
|
+
resourceId?: string;
|
|
56
|
+
healthCheckId?: string;
|
|
57
|
+
name: string;
|
|
58
|
+
signal: string;
|
|
59
|
+
operator: 'gt' | 'gte' | 'lt' | 'lte' | 'eq' | 'unhealthy';
|
|
60
|
+
threshold?: number;
|
|
61
|
+
recoveryThreshold?: number;
|
|
62
|
+
windowMs: number;
|
|
63
|
+
consecutive: number;
|
|
64
|
+
recoveryConsecutive: number;
|
|
65
|
+
noDataPolicy: 'ignore' | 'pending' | 'firing';
|
|
66
|
+
severity: AlertSeverity;
|
|
67
|
+
groupBy: string[];
|
|
68
|
+
labels: Record<string, JsonValue>;
|
|
69
|
+
enabled: boolean;
|
|
70
|
+
version: number;
|
|
71
|
+
createdAt: string;
|
|
72
|
+
updatedAt: string;
|
|
73
|
+
}
|
|
74
|
+
export interface Alert {
|
|
75
|
+
id: string;
|
|
76
|
+
ruleId: string;
|
|
77
|
+
projectId: string;
|
|
78
|
+
environmentId?: string;
|
|
79
|
+
resourceId?: string;
|
|
80
|
+
dedupKey: string;
|
|
81
|
+
groupKey: string;
|
|
82
|
+
state: AlertState;
|
|
83
|
+
severity: AlertSeverity;
|
|
84
|
+
title: string;
|
|
85
|
+
evidence: Record<string, JsonValue>;
|
|
86
|
+
failureCount: number;
|
|
87
|
+
recoveryCount: number;
|
|
88
|
+
occurrenceCount: number;
|
|
89
|
+
ownerActorId?: string;
|
|
90
|
+
acknowledgedByActorId?: string;
|
|
91
|
+
acknowledgedAt?: string;
|
|
92
|
+
firstSeenAt: string;
|
|
93
|
+
lastSeenAt: string;
|
|
94
|
+
firingAt?: string;
|
|
95
|
+
resolvedAt?: string;
|
|
96
|
+
silencedUntil?: string;
|
|
97
|
+
updatedAt: string;
|
|
98
|
+
}
|
|
99
|
+
export interface AlertSample {
|
|
100
|
+
status?: HealthStatus;
|
|
101
|
+
value?: number;
|
|
102
|
+
timestamp: string;
|
|
103
|
+
group?: Record<string, string>;
|
|
104
|
+
evidence?: Record<string, unknown>;
|
|
105
|
+
}
|
|
106
|
+
export interface NotificationChannel {
|
|
107
|
+
id: string;
|
|
108
|
+
organizationId: string;
|
|
109
|
+
name: string;
|
|
110
|
+
kind: NotificationChannelKind;
|
|
111
|
+
config: Record<string, JsonValue>;
|
|
112
|
+
credentialFingerprint?: string;
|
|
113
|
+
hasCredential: boolean;
|
|
114
|
+
status: 'active' | 'paused' | 'failing' | 'disabled';
|
|
115
|
+
version: number;
|
|
116
|
+
lastTestedAt?: string;
|
|
117
|
+
lastError?: string;
|
|
118
|
+
createdAt: string;
|
|
119
|
+
updatedAt: string;
|
|
120
|
+
}
|
|
121
|
+
export interface NotificationRoute {
|
|
122
|
+
id: string;
|
|
123
|
+
organizationId: string;
|
|
124
|
+
name: string;
|
|
125
|
+
priority: number;
|
|
126
|
+
matcher: {
|
|
127
|
+
projectIds?: string[];
|
|
128
|
+
environmentIds?: string[];
|
|
129
|
+
resourceIds?: string[];
|
|
130
|
+
severities?: AlertSeverity[];
|
|
131
|
+
eventTypes?: string[];
|
|
132
|
+
};
|
|
133
|
+
channelIds: string[];
|
|
134
|
+
quietHours?: {
|
|
135
|
+
timezone: string;
|
|
136
|
+
start: string;
|
|
137
|
+
end: string;
|
|
138
|
+
weekdays?: number[];
|
|
139
|
+
};
|
|
140
|
+
groupWaitSeconds: number;
|
|
141
|
+
reminderSeconds?: number;
|
|
142
|
+
escalation: Array<{
|
|
143
|
+
afterSeconds: number;
|
|
144
|
+
channelIds: string[];
|
|
145
|
+
}>;
|
|
146
|
+
template?: string;
|
|
147
|
+
rateLimitPerMinute: number;
|
|
148
|
+
enabled: boolean;
|
|
149
|
+
version: number;
|
|
150
|
+
createdAt: string;
|
|
151
|
+
updatedAt: string;
|
|
152
|
+
}
|
|
153
|
+
export interface NotificationDelivery {
|
|
154
|
+
id: string;
|
|
155
|
+
alertId?: string;
|
|
156
|
+
channelId: string;
|
|
157
|
+
routeId?: string;
|
|
158
|
+
eventType: string;
|
|
159
|
+
idempotencyKey: string;
|
|
160
|
+
state: 'pending' | 'delivered' | 'retrying' | 'failed' | 'dead';
|
|
161
|
+
attempt: number;
|
|
162
|
+
maxAttempts: number;
|
|
163
|
+
nextAttemptAt?: string;
|
|
164
|
+
responseStatus?: number;
|
|
165
|
+
error?: string;
|
|
166
|
+
payload: Record<string, JsonValue>;
|
|
167
|
+
createdAt: string;
|
|
168
|
+
updatedAt: string;
|
|
169
|
+
deliveredAt?: string;
|
|
170
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import type { ControlPlaneStore, JsonValue } from '../control-plane';
|
|
2
|
+
import type { Alert, AlertRule, HealthCheck, HealthResult, NotificationChannel, NotificationDelivery, NotificationRoute } from './model';
|
|
3
|
+
export declare class AlertStore {
|
|
4
|
+
readonly controlPlane: ControlPlaneStore;
|
|
5
|
+
private readonly options;
|
|
6
|
+
private readonly key;
|
|
7
|
+
constructor(controlPlane: ControlPlaneStore, options: {
|
|
8
|
+
now?: () => Date;
|
|
9
|
+
encryptionKey: string;
|
|
10
|
+
});
|
|
11
|
+
now(): string;
|
|
12
|
+
private encrypt;
|
|
13
|
+
private decrypt;
|
|
14
|
+
createHealthCheck(input: Omit<HealthCheck, 'id' | 'version' | 'createdAt' | 'updatedAt'>): HealthCheck;
|
|
15
|
+
getHealthCheck(id: string): HealthCheck | undefined;
|
|
16
|
+
listHealthChecks(projectId: string, environmentId?: string): HealthCheck[];
|
|
17
|
+
setHealthCheckEnabled(id: string, enabled: boolean): HealthCheck;
|
|
18
|
+
appendHealthResult(input: Omit<HealthResult, 'id'>): HealthResult;
|
|
19
|
+
listHealthResults(checkId: string, limit?: number): HealthResult[];
|
|
20
|
+
createRule(input: Omit<AlertRule, 'id' | 'version' | 'createdAt' | 'updatedAt'>): AlertRule;
|
|
21
|
+
getRule(id: string): AlertRule | undefined;
|
|
22
|
+
listRules(projectId: string, environmentId?: string): AlertRule[];
|
|
23
|
+
setRuleEnabled(id: string, enabled: boolean): AlertRule;
|
|
24
|
+
getAlertByDedup(dedupKey: string): Alert | undefined;
|
|
25
|
+
getAlert(id: string): Alert | undefined;
|
|
26
|
+
listAlerts(projectId: string, input?: {
|
|
27
|
+
environmentId?: string;
|
|
28
|
+
states?: string[];
|
|
29
|
+
limit?: number;
|
|
30
|
+
}): Alert[];
|
|
31
|
+
saveAlert(value: Alert, eventType: string, actorId?: string): Alert;
|
|
32
|
+
acknowledge(id: string, actorId: string): Alert;
|
|
33
|
+
assign(id: string, ownerActorId: string | undefined, actorId?: string): Alert;
|
|
34
|
+
silenceAlert(id: string, until: string, actorId?: string): Alert;
|
|
35
|
+
createSilence(input: {
|
|
36
|
+
projectId: string;
|
|
37
|
+
environmentId?: string;
|
|
38
|
+
resourceId?: string;
|
|
39
|
+
matcher?: Record<string, unknown>;
|
|
40
|
+
reason: string;
|
|
41
|
+
startsAt: string;
|
|
42
|
+
endsAt: string;
|
|
43
|
+
timezone: string;
|
|
44
|
+
actorId?: string;
|
|
45
|
+
}): string;
|
|
46
|
+
isSilenced(rule: AlertRule, group: Record<string, string>, at: string): boolean;
|
|
47
|
+
createChannel(input: {
|
|
48
|
+
organizationId: string;
|
|
49
|
+
name: string;
|
|
50
|
+
kind: NotificationChannel['kind'];
|
|
51
|
+
config?: Record<string, unknown>;
|
|
52
|
+
credential?: string;
|
|
53
|
+
actorId?: string;
|
|
54
|
+
}): NotificationChannel;
|
|
55
|
+
getChannel(id: string): NotificationChannel | undefined;
|
|
56
|
+
channelCredential(id: string): string | undefined;
|
|
57
|
+
listChannels(organizationId: string): NotificationChannel[];
|
|
58
|
+
rotateChannel(id: string, credential: string): NotificationChannel;
|
|
59
|
+
setChannelStatus(id: string, status: NotificationChannel['status'], error?: string): NotificationChannel;
|
|
60
|
+
markChannelTest(id: string, ok: boolean, error?: string): NotificationChannel;
|
|
61
|
+
createRoute(input: Omit<NotificationRoute, 'id' | 'version' | 'createdAt' | 'updatedAt'>): NotificationRoute;
|
|
62
|
+
getRoute(id: string): NotificationRoute | undefined;
|
|
63
|
+
listRoutes(organizationId: string): NotificationRoute[];
|
|
64
|
+
countRouteDeliveries(routeId: string, since: string): number;
|
|
65
|
+
setRouteEnabled(id: string, enabled: boolean): NotificationRoute;
|
|
66
|
+
createDelivery(input: {
|
|
67
|
+
alertId?: string;
|
|
68
|
+
channelId: string;
|
|
69
|
+
routeId?: string;
|
|
70
|
+
eventType: string;
|
|
71
|
+
idempotencyKey: string;
|
|
72
|
+
payload: Record<string, JsonValue>;
|
|
73
|
+
maxAttempts?: number;
|
|
74
|
+
nextAttemptAt?: string;
|
|
75
|
+
}): NotificationDelivery;
|
|
76
|
+
getDelivery(id: string): NotificationDelivery | undefined;
|
|
77
|
+
listDeliveries(input?: {
|
|
78
|
+
alertId?: string;
|
|
79
|
+
states?: string[];
|
|
80
|
+
limit?: number;
|
|
81
|
+
}): NotificationDelivery[];
|
|
82
|
+
updateDelivery(id: string, input: {
|
|
83
|
+
state: NotificationDelivery['state'];
|
|
84
|
+
attempt: number;
|
|
85
|
+
nextAttemptAt?: string;
|
|
86
|
+
responseStatus?: number;
|
|
87
|
+
error?: string;
|
|
88
|
+
deliveredAt?: string;
|
|
89
|
+
}): NotificationDelivery;
|
|
90
|
+
}
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
import type { ComposeApplicationRecord, ComposeParseResult, ComposeServiceState, ComposeTemplate } from '../compose';
|
|
2
|
+
import type { ApplicationArtifactRecord, ApplicationDraftRecord, RegistryConnection } from '../onboarding';
|
|
3
|
+
import type { CreatePreviewDefinitionInput, PreviewDefinition, PreviewInstance } from '../preview';
|
|
4
|
+
import type { QueueConcurrencyLimits } from '../queue';
|
|
5
|
+
import type { ReleaseArtifact, ReleaseDeployableKind, ReleaseRecord, ReleaseStrategy, ReleaseStrategyCapability, ReleaseTransition } from '../release';
|
|
6
|
+
import type { ApiApplicationCreateRequest, ApiApplicationCreateResponse, ApiApplicationDetectionRequest, ApiApplicationDetectionResponse, ApiApplicationDraftCreateRequest, ApiApplicationDraftUpdateRequest, ApiApplicationPlanRequest, ApiApplicationPlanResponse, ApiDeploymentRequest, ApiOperationLogsResponse, ApiOperationResponse, ApiPage, ApiQueueOperation, ApiQueueSettingsResponse, ApiRegistryConnectionCreateRequest, ApiRegistryConnectionUpdateRequest } from './types';
|
|
7
|
+
export interface TsCloudClientOptions {
|
|
8
|
+
baseUrl: string;
|
|
9
|
+
token: string;
|
|
10
|
+
fetch?: typeof globalThis.fetch;
|
|
11
|
+
}
|
|
12
|
+
export declare class TsCloudApiError extends Error {
|
|
13
|
+
readonly status: number;
|
|
14
|
+
readonly code: string;
|
|
15
|
+
readonly requestId?: string | undefined;
|
|
16
|
+
constructor(status: number, code: string, message: string, requestId?: string | undefined);
|
|
17
|
+
}
|
|
18
|
+
export declare class TsCloudClient {
|
|
19
|
+
private readonly options;
|
|
20
|
+
private readonly baseUrl;
|
|
21
|
+
private readonly fetchFn;
|
|
22
|
+
constructor(options: TsCloudClientOptions);
|
|
23
|
+
private request;
|
|
24
|
+
listProjects(options?: {
|
|
25
|
+
limit?: number;
|
|
26
|
+
cursor?: string;
|
|
27
|
+
}): Promise<ApiPage<Record<string, unknown>>>;
|
|
28
|
+
listEnvironments(projectId: string, options?: {
|
|
29
|
+
limit?: number;
|
|
30
|
+
cursor?: string;
|
|
31
|
+
}): Promise<ApiPage<Record<string, unknown>>>;
|
|
32
|
+
listServices(projectId: string, environmentId?: string): Promise<ApiPage<Record<string, unknown>>>;
|
|
33
|
+
listOperations(projectId?: string): Promise<ApiPage<Record<string, unknown>>>;
|
|
34
|
+
listComposeTemplates(): Promise<ApiPage<ComposeTemplate>>;
|
|
35
|
+
listComposeApplications(projectId: string, environmentId?: string): Promise<ApiPage<ComposeApplicationRecord & {
|
|
36
|
+
services: ComposeServiceState[];
|
|
37
|
+
}>>;
|
|
38
|
+
previewCompose(input: {
|
|
39
|
+
source: string;
|
|
40
|
+
name: string;
|
|
41
|
+
slug?: string;
|
|
42
|
+
projectId: string;
|
|
43
|
+
environmentId: string;
|
|
44
|
+
}): Promise<{
|
|
45
|
+
result: ComposeParseResult;
|
|
46
|
+
requestId: string;
|
|
47
|
+
}>;
|
|
48
|
+
createComposeApplication(input: {
|
|
49
|
+
source?: string;
|
|
50
|
+
templateId?: string;
|
|
51
|
+
templateVersion?: string;
|
|
52
|
+
inputs?: Record<string, string>;
|
|
53
|
+
name: string;
|
|
54
|
+
slug?: string;
|
|
55
|
+
projectId: string;
|
|
56
|
+
environmentId: string;
|
|
57
|
+
}): Promise<{
|
|
58
|
+
application: ComposeApplicationRecord;
|
|
59
|
+
diagnostics: ComposeParseResult['diagnostics'];
|
|
60
|
+
requestId: string;
|
|
61
|
+
}>;
|
|
62
|
+
composeServices(applicationId: string): Promise<{
|
|
63
|
+
application: ComposeApplicationRecord;
|
|
64
|
+
services: ComposeServiceState[];
|
|
65
|
+
requestId: string;
|
|
66
|
+
}>;
|
|
67
|
+
composeAction(applicationId: string, action: 'deploy' | 'redeploy' | 'start' | 'stop' | 'scale' | 'delete', input?: {
|
|
68
|
+
service?: string;
|
|
69
|
+
replicas?: number;
|
|
70
|
+
removeVolumes?: boolean;
|
|
71
|
+
confirm?: string;
|
|
72
|
+
}): Promise<ApiOperationResponse>;
|
|
73
|
+
releaseCapabilities(kind: ReleaseDeployableKind, input?: {
|
|
74
|
+
health?: boolean;
|
|
75
|
+
replicas?: number;
|
|
76
|
+
}): Promise<{
|
|
77
|
+
capabilities: ReleaseStrategyCapability[];
|
|
78
|
+
requestId: string;
|
|
79
|
+
}>;
|
|
80
|
+
listReleases(projectId: string, input?: {
|
|
81
|
+
environmentId?: string;
|
|
82
|
+
resourceId?: string;
|
|
83
|
+
}): Promise<ApiPage<ReleaseRecord & {
|
|
84
|
+
artifact: ReleaseArtifact;
|
|
85
|
+
transitions: ReleaseTransition[];
|
|
86
|
+
}>>;
|
|
87
|
+
createReleaseArtifact(input: {
|
|
88
|
+
digest: string;
|
|
89
|
+
kind: ReleaseDeployableKind;
|
|
90
|
+
uri: string;
|
|
91
|
+
size: number;
|
|
92
|
+
mediaType?: string;
|
|
93
|
+
provenance?: unknown;
|
|
94
|
+
attestation?: unknown;
|
|
95
|
+
}): Promise<{
|
|
96
|
+
artifact: ReleaseArtifact;
|
|
97
|
+
requestId: string;
|
|
98
|
+
}>;
|
|
99
|
+
createRelease(input: {
|
|
100
|
+
projectId: string;
|
|
101
|
+
environmentId: string;
|
|
102
|
+
resourceId: string;
|
|
103
|
+
artifactId: string;
|
|
104
|
+
kind: ReleaseDeployableKind;
|
|
105
|
+
sourceSha?: string;
|
|
106
|
+
config?: unknown;
|
|
107
|
+
manifest?: unknown;
|
|
108
|
+
strategy: ReleaseStrategy;
|
|
109
|
+
healthGate?: unknown;
|
|
110
|
+
approvalRequired?: boolean;
|
|
111
|
+
}): Promise<{
|
|
112
|
+
release: ReleaseRecord;
|
|
113
|
+
requestId: string;
|
|
114
|
+
}>;
|
|
115
|
+
releaseAction(releaseId: string, action: 'promote' | 'approve' | 'activate' | 'rollback' | 'health' | 'pin', input?: Record<string, unknown>): Promise<Record<string, unknown>>;
|
|
116
|
+
createDeployment(input: ApiDeploymentRequest, idempotencyKey: string): Promise<ApiOperationResponse>;
|
|
117
|
+
detectApplication(input: ApiApplicationDetectionRequest): Promise<ApiApplicationDetectionResponse>;
|
|
118
|
+
planApplication(input: ApiApplicationPlanRequest): Promise<ApiApplicationPlanResponse>;
|
|
119
|
+
listApplicationDrafts(projectId: string): Promise<ApiPage<ApplicationDraftRecord>>;
|
|
120
|
+
createApplicationDraft(input: ApiApplicationDraftCreateRequest): Promise<{
|
|
121
|
+
draft: ApplicationDraftRecord;
|
|
122
|
+
requestId: string;
|
|
123
|
+
}>;
|
|
124
|
+
updateApplicationDraft(input: ApiApplicationDraftUpdateRequest): Promise<{
|
|
125
|
+
draft: ApplicationDraftRecord;
|
|
126
|
+
requestId: string;
|
|
127
|
+
}>;
|
|
128
|
+
createApplication(input: ApiApplicationCreateRequest, idempotencyKey: string): Promise<ApiApplicationCreateResponse>;
|
|
129
|
+
uploadApplicationArtifact(projectId: string, filename: string, body: Blob | ArrayBuffer): Promise<{
|
|
130
|
+
artifact: ApplicationArtifactRecord;
|
|
131
|
+
requestId: string;
|
|
132
|
+
}>;
|
|
133
|
+
listRegistryConnections(): Promise<ApiPage<RegistryConnection>>;
|
|
134
|
+
createRegistryConnection(input: ApiRegistryConnectionCreateRequest): Promise<{
|
|
135
|
+
registry: RegistryConnection;
|
|
136
|
+
requestId: string;
|
|
137
|
+
}>;
|
|
138
|
+
updateRegistryConnection(input: ApiRegistryConnectionUpdateRequest): Promise<{
|
|
139
|
+
registry: RegistryConnection;
|
|
140
|
+
requestId: string;
|
|
141
|
+
}>;
|
|
142
|
+
disconnectRegistryConnection(id: string): Promise<{
|
|
143
|
+
registry: RegistryConnection;
|
|
144
|
+
requestId: string;
|
|
145
|
+
}>;
|
|
146
|
+
listQueue(input?: {
|
|
147
|
+
projectId?: string;
|
|
148
|
+
state?: string;
|
|
149
|
+
limit?: number;
|
|
150
|
+
cursor?: string;
|
|
151
|
+
}): Promise<ApiPage<ApiQueueOperation>>;
|
|
152
|
+
operationLogs(operationId: string, input?: {
|
|
153
|
+
after?: number;
|
|
154
|
+
limit?: number;
|
|
155
|
+
}): Promise<ApiOperationLogsResponse>;
|
|
156
|
+
streamOperationLogs(operationId: string, after?: number): Promise<Response>;
|
|
157
|
+
cancelOperation(operationId: string): Promise<{
|
|
158
|
+
operation: ApiOperationResponse['operation'];
|
|
159
|
+
requestId: string;
|
|
160
|
+
}>;
|
|
161
|
+
retryOperation(operationId: string, errorClass: string, delayMs?: number): Promise<{
|
|
162
|
+
operation: ApiOperationResponse['operation'];
|
|
163
|
+
requestId: string;
|
|
164
|
+
}>;
|
|
165
|
+
queueSettings(): Promise<ApiQueueSettingsResponse>;
|
|
166
|
+
updateQueueSettings(concurrency: Partial<QueueConcurrencyLimits>): Promise<ApiQueueSettingsResponse>;
|
|
167
|
+
listPreviews(projectId?: string): Promise<ApiPage<PreviewInstance>>;
|
|
168
|
+
listPreviewDefinitions(projectId: string): Promise<ApiPage<PreviewDefinition>>;
|
|
169
|
+
createPreviewDefinition(input: CreatePreviewDefinitionInput): Promise<{
|
|
170
|
+
definition: PreviewDefinition;
|
|
171
|
+
requestId: string;
|
|
172
|
+
}>;
|
|
173
|
+
createPreview(input: {
|
|
174
|
+
definitionId: string;
|
|
175
|
+
repository?: string;
|
|
176
|
+
branch: string;
|
|
177
|
+
pullRequestNumber?: number;
|
|
178
|
+
fork?: boolean;
|
|
179
|
+
commitSha: string;
|
|
180
|
+
}): Promise<{
|
|
181
|
+
preview: PreviewInstance;
|
|
182
|
+
operation: ApiOperationResponse['operation'];
|
|
183
|
+
requestId: string;
|
|
184
|
+
}>;
|
|
185
|
+
destroyPreview(previewId: string, confirm: string): Promise<{
|
|
186
|
+
operation: ApiOperationResponse['operation'];
|
|
187
|
+
requestId: string;
|
|
188
|
+
}>;
|
|
189
|
+
extendPreview(previewId: string, hours: number): Promise<{
|
|
190
|
+
preview: PreviewInstance;
|
|
191
|
+
requestId: string;
|
|
192
|
+
}>;
|
|
193
|
+
rebuildPreview(previewId: string): Promise<{
|
|
194
|
+
operation: ApiOperationResponse['operation'];
|
|
195
|
+
requestId: string;
|
|
196
|
+
}>;
|
|
197
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { AutomationIdentityStore } from '../automation';
|
|
2
|
+
import type { ControlPlaneStore } from '../control-plane';
|
|
3
|
+
import type { ApplicationArtifactStore, ApplicationDraftStore, RegistryConnectionStore } from '../onboarding';
|
|
4
|
+
import type { SourceConnectionStore } from '../source';
|
|
5
|
+
interface ApiV1HandlerOptions {
|
|
6
|
+
controlPlane: ControlPlaneStore;
|
|
7
|
+
identities: AutomationIdentityStore;
|
|
8
|
+
sources?: SourceConnectionStore;
|
|
9
|
+
applications?: {
|
|
10
|
+
drafts: ApplicationDraftStore;
|
|
11
|
+
artifacts?: ApplicationArtifactStore;
|
|
12
|
+
registries: RegistryConnectionStore;
|
|
13
|
+
};
|
|
14
|
+
now?: () => Date;
|
|
15
|
+
rateLimit?: number;
|
|
16
|
+
}
|
|
17
|
+
export declare function createApiV1Handler(options: ApiV1HandlerOptions): (request: Request, networkHint?: string) => Promise<Response | undefined>;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { TsCloudApiError, TsCloudClient } from './client';
|
|
2
|
+
export type { TsCloudClientOptions } from './client';
|
|
3
|
+
export { createApiV1Handler } from './handler';
|
|
4
|
+
export { API_VERSION, openApiDocument } from './openapi';
|
|
5
|
+
export { ApiServiceError, AutomationApiService, requestHash } from './service';
|
|
6
|
+
export * from './types';
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { ApiTokenPrincipal, AutomationIdentityStore } from '../automation';
|
|
2
|
+
import type { AuthorizationCapability, AuthorizationScope, AuthorizationTarget, ControlPlaneOperation, ControlPlaneStore } from '../control-plane';
|
|
3
|
+
import type { ApiDeploymentRequest } from './types';
|
|
4
|
+
export declare class ApiServiceError extends Error {
|
|
5
|
+
readonly code: string;
|
|
6
|
+
readonly status: number;
|
|
7
|
+
readonly details?: Record<string, unknown> | undefined;
|
|
8
|
+
constructor(code: string, message: string, status: number, details?: Record<string, unknown> | undefined);
|
|
9
|
+
}
|
|
10
|
+
export declare function requestHash(method: string, pathname: string, body: unknown): string;
|
|
11
|
+
export declare class AutomationApiService {
|
|
12
|
+
private readonly controlPlane;
|
|
13
|
+
private readonly identities;
|
|
14
|
+
private readonly queue;
|
|
15
|
+
constructor(controlPlane: ControlPlaneStore, identities: AutomationIdentityStore);
|
|
16
|
+
target(principal: ApiTokenPrincipal, requested: AuthorizationScope): AuthorizationTarget;
|
|
17
|
+
authorize(principal: ApiTokenPrincipal, capability: AuthorizationCapability, requested: AuthorizationScope): AuthorizationTarget;
|
|
18
|
+
listProjects(principal: ApiTokenPrincipal): Array<Record<string, unknown>>;
|
|
19
|
+
listEnvironments(principal: ApiTokenPrincipal, projectId: string): Array<Record<string, unknown>>;
|
|
20
|
+
listServices(principal: ApiTokenPrincipal, projectId: string, environmentId?: string): Array<Record<string, unknown>>;
|
|
21
|
+
listOperations(principal: ApiTokenPrincipal, projectId?: string): Array<Record<string, unknown>>;
|
|
22
|
+
listEvents(principal: ApiTokenPrincipal, projectId?: string, afterSequence?: number): Array<Record<string, unknown>>;
|
|
23
|
+
createDeployment(principal: ApiTokenPrincipal, input: ApiDeploymentRequest, idempotencyKey: string): {
|
|
24
|
+
operation: Record<string, unknown>;
|
|
25
|
+
replay: boolean;
|
|
26
|
+
};
|
|
27
|
+
operation(operation: ControlPlaneOperation): Record<string, unknown>;
|
|
28
|
+
}
|