@stacksjs/ts-cloud 0.7.56 → 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,8 @@
|
|
|
1
|
+
export * from './types';
|
|
2
|
+
export * from './posture-store';
|
|
3
|
+
export * from './scanners';
|
|
4
|
+
export * from './artifacts';
|
|
5
|
+
export * from './integration';
|
|
6
|
+
export * from './container-release';
|
|
7
|
+
export { PreDeployScanner, SECRET_PATTERNS, formatScanResults, scanForSecrets } from './pre-deploy-scanner';
|
|
8
|
+
export type { ScanOptions, ScanResult, SecretPattern, SecurityFinding as SecretScanFinding } from './pre-deploy-scanner';
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { ControlPlaneEnvironment, ControlPlaneOrganization, ControlPlaneProject, ControlPlaneStore, JsonValue } from '../control-plane';
|
|
2
|
+
import type { ScanResult } from './pre-deploy-scanner';
|
|
3
|
+
import type { SecurityDeployDecision, SecurityPolicy, SecurityPostureFinding, SecurityScanRun, SecurityScope } from './types';
|
|
4
|
+
import { SecurityPostureStore } from './posture-store';
|
|
5
|
+
export interface SecurityControlPlaneContext {
|
|
6
|
+
store: ControlPlaneStore;
|
|
7
|
+
organization: ControlPlaneOrganization;
|
|
8
|
+
project: ControlPlaneProject;
|
|
9
|
+
environments: Map<string, ControlPlaneEnvironment>;
|
|
10
|
+
}
|
|
11
|
+
export declare function securityScope(context: SecurityControlPlaneContext, environment: string): SecurityScope & {
|
|
12
|
+
projectId: string;
|
|
13
|
+
environmentId: string;
|
|
14
|
+
};
|
|
15
|
+
export declare function ensureDefaultSecurityPolicies(context: SecurityControlPlaneContext, actorId?: string): SecurityPolicy[];
|
|
16
|
+
export declare function recordPreDeploySecretScan(posture: SecurityPostureStore, scope: SecurityScope, result: ScanResult, options?: {
|
|
17
|
+
scannerVersion?: string;
|
|
18
|
+
skipped?: boolean;
|
|
19
|
+
}): {
|
|
20
|
+
run: SecurityScanRun;
|
|
21
|
+
findings: SecurityPostureFinding[];
|
|
22
|
+
};
|
|
23
|
+
export declare function recordSkippedSecretScan(posture: SecurityPostureStore, scope: SecurityScope, reason?: string): {
|
|
24
|
+
run: SecurityScanRun;
|
|
25
|
+
findings: SecurityPostureFinding[];
|
|
26
|
+
};
|
|
27
|
+
export declare function recordDashboardHostPosture(posture: SecurityPostureStore, scope: SecurityScope, data: Record<string, any>): {
|
|
28
|
+
run: SecurityScanRun;
|
|
29
|
+
findings: SecurityPostureFinding[];
|
|
30
|
+
};
|
|
31
|
+
export declare function productionChangeReview(posture: SecurityPostureStore, input: {
|
|
32
|
+
scope: SecurityScope & {
|
|
33
|
+
projectId: string;
|
|
34
|
+
environmentId: string;
|
|
35
|
+
};
|
|
36
|
+
operationId?: string;
|
|
37
|
+
desiredConfigHash?: string;
|
|
38
|
+
}): {
|
|
39
|
+
decision: SecurityDeployDecision;
|
|
40
|
+
summary: JsonValue;
|
|
41
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import type { ControlPlaneStore, JsonValue } from '../control-plane';
|
|
2
|
+
import type { EvaluateSecurityGateInput, RecordSecurityScanInput, ReleaseSecurityArtifact, SecurityDeployDecision, SecurityFindingComment, SecurityPolicy, SecurityPolicyRule, SecurityPostureFinding, SecurityPostureSummary, SecurityScanRun, SecuritySeverity, SecurityWaiver } from './types';
|
|
3
|
+
export declare class SecurityPostureStore {
|
|
4
|
+
private readonly controlPlane;
|
|
5
|
+
private readonly nowFn;
|
|
6
|
+
private readonly idFn;
|
|
7
|
+
constructor(controlPlane: ControlPlaneStore, options?: {
|
|
8
|
+
now?: () => Date;
|
|
9
|
+
id?: () => string;
|
|
10
|
+
});
|
|
11
|
+
private now;
|
|
12
|
+
private run;
|
|
13
|
+
recordScan(input: RecordSecurityScanInput): {
|
|
14
|
+
run: SecurityScanRun;
|
|
15
|
+
findings: SecurityPostureFinding[];
|
|
16
|
+
};
|
|
17
|
+
getScanRun(id: string): SecurityScanRun | undefined;
|
|
18
|
+
listScanRuns(scope: {
|
|
19
|
+
organizationId: string;
|
|
20
|
+
projectId?: string;
|
|
21
|
+
environmentId?: string;
|
|
22
|
+
limit?: number;
|
|
23
|
+
}): SecurityScanRun[];
|
|
24
|
+
getFinding(id: string): SecurityPostureFinding | undefined;
|
|
25
|
+
listFindings(options: {
|
|
26
|
+
organizationId: string;
|
|
27
|
+
projectId?: string;
|
|
28
|
+
environmentId?: string;
|
|
29
|
+
status?: SecurityPostureFinding['status'];
|
|
30
|
+
severity?: SecuritySeverity;
|
|
31
|
+
limit?: number;
|
|
32
|
+
}): SecurityPostureFinding[];
|
|
33
|
+
assignFinding(findingId: string, ownerActorId: string | undefined, actorId?: string): SecurityPostureFinding;
|
|
34
|
+
acknowledgeFinding(findingId: string, actorId?: string): SecurityPostureFinding;
|
|
35
|
+
addComment(input: {
|
|
36
|
+
findingId: string;
|
|
37
|
+
actorId: string;
|
|
38
|
+
body: string;
|
|
39
|
+
referenceUrl?: string;
|
|
40
|
+
}): SecurityFindingComment;
|
|
41
|
+
listComments(findingId: string): SecurityFindingComment[];
|
|
42
|
+
createWaiver(input: {
|
|
43
|
+
findingId: string;
|
|
44
|
+
policyId?: string;
|
|
45
|
+
reason: string;
|
|
46
|
+
referenceUrl?: string;
|
|
47
|
+
expiresAt: string;
|
|
48
|
+
actorId: string;
|
|
49
|
+
}): SecurityWaiver;
|
|
50
|
+
revokeWaiver(id: string, actorId: string): SecurityWaiver;
|
|
51
|
+
getWaiver(id: string): SecurityWaiver | undefined;
|
|
52
|
+
listWaivers(findingId?: string): SecurityWaiver[];
|
|
53
|
+
expireWaivers(): number;
|
|
54
|
+
createPolicy(input: {
|
|
55
|
+
organizationId: string;
|
|
56
|
+
environmentId?: string;
|
|
57
|
+
name: string;
|
|
58
|
+
rules: SecurityPolicyRule[];
|
|
59
|
+
requiredScanners?: string[];
|
|
60
|
+
scannerFailMode: 'open' | 'closed';
|
|
61
|
+
actorId?: string;
|
|
62
|
+
}): SecurityPolicy;
|
|
63
|
+
updatePolicy(id: string, expectedVersion: number, input: {
|
|
64
|
+
name?: string;
|
|
65
|
+
rules?: SecurityPolicyRule[];
|
|
66
|
+
requiredScanners?: string[];
|
|
67
|
+
scannerFailMode?: 'open' | 'closed';
|
|
68
|
+
enabled?: boolean;
|
|
69
|
+
actorId?: string;
|
|
70
|
+
}): SecurityPolicy;
|
|
71
|
+
getPolicy(id: string): SecurityPolicy | undefined;
|
|
72
|
+
listPolicies(organizationId: string): SecurityPolicy[];
|
|
73
|
+
evaluateGate(input: EvaluateSecurityGateInput): SecurityDeployDecision;
|
|
74
|
+
getDecision(id: string): SecurityDeployDecision | undefined;
|
|
75
|
+
listDecisions(environmentId: string, limit?: number): SecurityDeployDecision[];
|
|
76
|
+
addReleaseArtifact(input: Omit<ReleaseSecurityArtifact, 'id' | 'createdAt'>): ReleaseSecurityArtifact;
|
|
77
|
+
listReleaseArtifacts(releaseId: string, includeSensitiveContent?: boolean): ReleaseSecurityArtifact[];
|
|
78
|
+
summary(organizationId: string, projectId?: string, environmentId?: string): SecurityPostureSummary;
|
|
79
|
+
exportPosture(organizationId: string): JsonValue;
|
|
80
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import type { EvaluationResult } from '../aws/iam';
|
|
2
|
+
import type { CallerIdentity } from '../aws/sts';
|
|
3
|
+
import type { JsonValue } from '../control-plane';
|
|
4
|
+
import type { SecurityPostureStore } from './posture-store';
|
|
5
|
+
import type { PreDeployScanner } from './pre-deploy-scanner';
|
|
6
|
+
import type { SecurityCheckStatus, SecurityFindingInput, SecurityScope } from './types';
|
|
7
|
+
export interface SecurityScannerContext extends SecurityScope {
|
|
8
|
+
artifactRoot?: string;
|
|
9
|
+
imageRef?: string;
|
|
10
|
+
signal: AbortSignal;
|
|
11
|
+
}
|
|
12
|
+
export interface SecurityScannerResult {
|
|
13
|
+
status: SecurityCheckStatus;
|
|
14
|
+
findings: SecurityFindingInput[];
|
|
15
|
+
metadata?: JsonValue;
|
|
16
|
+
error?: string;
|
|
17
|
+
}
|
|
18
|
+
export interface SecurityScanner {
|
|
19
|
+
id: string;
|
|
20
|
+
version: string;
|
|
21
|
+
timeoutMs?: number;
|
|
22
|
+
scan: (context: SecurityScannerContext) => Promise<SecurityScannerResult>;
|
|
23
|
+
}
|
|
24
|
+
export interface SecurityScannerRunnerOptions {
|
|
25
|
+
defaultTimeoutMs?: number;
|
|
26
|
+
now?: () => Date;
|
|
27
|
+
}
|
|
28
|
+
export declare class SecurityScannerRunner {
|
|
29
|
+
private readonly posture;
|
|
30
|
+
private readonly defaultTimeoutMs;
|
|
31
|
+
private readonly nowFn;
|
|
32
|
+
constructor(posture: SecurityPostureStore, options?: SecurityScannerRunnerOptions);
|
|
33
|
+
run(scanner: SecurityScanner, scope: Omit<SecurityScannerContext, 'signal'>): Promise<ReturnType<SecurityPostureStore['recordScan']>>;
|
|
34
|
+
runAll(scanners: SecurityScanner[], scope: Omit<SecurityScannerContext, 'signal'>): Promise<Array<ReturnType<SecurityPostureStore['recordScan']>>>;
|
|
35
|
+
}
|
|
36
|
+
export declare class SecretFindingScanner implements SecurityScanner {
|
|
37
|
+
private readonly scanner;
|
|
38
|
+
readonly id = "source-secrets";
|
|
39
|
+
readonly version = "1.0.0";
|
|
40
|
+
readonly timeoutMs = 30000;
|
|
41
|
+
constructor(scanner?: PreDeployScanner);
|
|
42
|
+
scan(context: SecurityScannerContext): Promise<SecurityScannerResult>;
|
|
43
|
+
}
|
|
44
|
+
/** Runs Trivy locally with a deliberately minimal environment and never uploads source or reports. */
|
|
45
|
+
export declare class TrivyImageScanner implements SecurityScanner {
|
|
46
|
+
readonly id = "trivy-image";
|
|
47
|
+
readonly version: string;
|
|
48
|
+
readonly timeoutMs: number;
|
|
49
|
+
constructor(options?: {
|
|
50
|
+
version?: string;
|
|
51
|
+
timeoutMs?: number;
|
|
52
|
+
executable?: string;
|
|
53
|
+
});
|
|
54
|
+
private readonly executable;
|
|
55
|
+
scan(context: SecurityScannerContext): Promise<SecurityScannerResult>;
|
|
56
|
+
}
|
|
57
|
+
export interface AwsCapabilityClient {
|
|
58
|
+
getCallerIdentity: () => Promise<CallerIdentity>;
|
|
59
|
+
simulatePrincipalPolicy: (input: {
|
|
60
|
+
PolicySourceArn: string;
|
|
61
|
+
ActionNames: string[];
|
|
62
|
+
ResourceArns?: string[];
|
|
63
|
+
}) => Promise<{
|
|
64
|
+
EvaluationResults: EvaluationResult[];
|
|
65
|
+
}>;
|
|
66
|
+
}
|
|
67
|
+
/** Validates the actual caller and required IAM actions instead of treating configured credentials as sufficient. */
|
|
68
|
+
export declare class AwsIamCapabilityScanner implements SecurityScanner {
|
|
69
|
+
private readonly actions;
|
|
70
|
+
readonly id = "aws-iam-capabilities";
|
|
71
|
+
readonly version = "1.0.0";
|
|
72
|
+
readonly timeoutMs = 30000;
|
|
73
|
+
private readonly client;
|
|
74
|
+
constructor(actions: string[], options?: {
|
|
75
|
+
region?: string;
|
|
76
|
+
client?: AwsCapabilityClient;
|
|
77
|
+
resourceArns?: string[];
|
|
78
|
+
});
|
|
79
|
+
private readonly resourceArns;
|
|
80
|
+
scan(context: SecurityScannerContext): Promise<SecurityScannerResult>;
|
|
81
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
import type { JsonValue } from '../control-plane';
|
|
2
|
+
export type SecuritySeverity = 'info' | 'low' | 'medium' | 'high' | 'critical';
|
|
3
|
+
export type SecurityCheckStatus = 'passed' | 'failed' | 'skipped' | 'unavailable' | 'unsupported' | 'stale';
|
|
4
|
+
export type SecurityFindingStatus = 'open' | 'acknowledged' | 'resolved' | 'waived';
|
|
5
|
+
export type SecurityPolicyAction = 'block' | 'warn' | 'record';
|
|
6
|
+
export interface SecurityScope {
|
|
7
|
+
organizationId: string;
|
|
8
|
+
projectId?: string;
|
|
9
|
+
environmentId?: string;
|
|
10
|
+
resourceId?: string;
|
|
11
|
+
releaseId?: string;
|
|
12
|
+
}
|
|
13
|
+
export interface SecurityFindingInput extends SecurityScope {
|
|
14
|
+
ruleId: string;
|
|
15
|
+
severity: SecuritySeverity;
|
|
16
|
+
title: string;
|
|
17
|
+
description: string;
|
|
18
|
+
evidence?: JsonValue;
|
|
19
|
+
remediation?: string;
|
|
20
|
+
subject: string;
|
|
21
|
+
fingerprint?: string;
|
|
22
|
+
}
|
|
23
|
+
export interface SecurityPostureFinding extends SecurityScope {
|
|
24
|
+
id: string;
|
|
25
|
+
fingerprint: string;
|
|
26
|
+
scanRunId: string;
|
|
27
|
+
scannerId: string;
|
|
28
|
+
scannerVersion: string;
|
|
29
|
+
ruleId: string;
|
|
30
|
+
severity: SecuritySeverity;
|
|
31
|
+
title: string;
|
|
32
|
+
description: string;
|
|
33
|
+
evidence: JsonValue;
|
|
34
|
+
remediation?: string;
|
|
35
|
+
subject: string;
|
|
36
|
+
status: SecurityFindingStatus;
|
|
37
|
+
ownerActorId?: string;
|
|
38
|
+
recurrenceCount: number;
|
|
39
|
+
firstSeenAt: string;
|
|
40
|
+
lastSeenAt: string;
|
|
41
|
+
resolvedAt?: string;
|
|
42
|
+
updatedAt: string;
|
|
43
|
+
}
|
|
44
|
+
export interface SecurityScanRun extends SecurityScope {
|
|
45
|
+
id: string;
|
|
46
|
+
scannerId: string;
|
|
47
|
+
scannerVersion: string;
|
|
48
|
+
status: SecurityCheckStatus;
|
|
49
|
+
error?: string;
|
|
50
|
+
metadata: JsonValue;
|
|
51
|
+
findingsCount: number;
|
|
52
|
+
startedAt: string;
|
|
53
|
+
completedAt: string;
|
|
54
|
+
durationMs: number;
|
|
55
|
+
}
|
|
56
|
+
export interface RecordSecurityScanInput extends SecurityScope {
|
|
57
|
+
scannerId: string;
|
|
58
|
+
scannerVersion: string;
|
|
59
|
+
status: SecurityCheckStatus;
|
|
60
|
+
findings?: SecurityFindingInput[];
|
|
61
|
+
error?: string;
|
|
62
|
+
metadata?: JsonValue;
|
|
63
|
+
startedAt?: string;
|
|
64
|
+
completedAt?: string;
|
|
65
|
+
durationMs?: number;
|
|
66
|
+
}
|
|
67
|
+
export interface SecurityPolicyRule {
|
|
68
|
+
minimumSeverity: SecuritySeverity;
|
|
69
|
+
action: SecurityPolicyAction;
|
|
70
|
+
scannerId?: string;
|
|
71
|
+
}
|
|
72
|
+
export interface SecurityPolicy {
|
|
73
|
+
id: string;
|
|
74
|
+
organizationId: string;
|
|
75
|
+
environmentId?: string;
|
|
76
|
+
name: string;
|
|
77
|
+
rules: SecurityPolicyRule[];
|
|
78
|
+
requiredScanners: string[];
|
|
79
|
+
scannerFailMode: 'open' | 'closed';
|
|
80
|
+
enabled: boolean;
|
|
81
|
+
version: number;
|
|
82
|
+
createdByActorId?: string;
|
|
83
|
+
createdAt: string;
|
|
84
|
+
updatedAt: string;
|
|
85
|
+
}
|
|
86
|
+
export interface SecurityWaiver {
|
|
87
|
+
id: string;
|
|
88
|
+
findingId: string;
|
|
89
|
+
policyId?: string;
|
|
90
|
+
reason: string;
|
|
91
|
+
referenceUrl?: string;
|
|
92
|
+
createdByActorId: string;
|
|
93
|
+
expiresAt: string;
|
|
94
|
+
revokedAt?: string;
|
|
95
|
+
state: 'active' | 'expired' | 'revoked';
|
|
96
|
+
createdAt: string;
|
|
97
|
+
updatedAt: string;
|
|
98
|
+
}
|
|
99
|
+
export interface SecurityFindingComment {
|
|
100
|
+
id: string;
|
|
101
|
+
findingId: string;
|
|
102
|
+
actorId: string;
|
|
103
|
+
body: string;
|
|
104
|
+
referenceUrl?: string;
|
|
105
|
+
createdAt: string;
|
|
106
|
+
}
|
|
107
|
+
export interface ReleaseSecurityArtifact {
|
|
108
|
+
id: string;
|
|
109
|
+
organizationId: string;
|
|
110
|
+
projectId: string;
|
|
111
|
+
environmentId?: string;
|
|
112
|
+
releaseId: string;
|
|
113
|
+
kind: 'sbom' | 'vulnerability_summary' | 'signature' | 'provenance';
|
|
114
|
+
format: string;
|
|
115
|
+
digest: string;
|
|
116
|
+
summary: JsonValue;
|
|
117
|
+
content?: string;
|
|
118
|
+
sensitive: boolean;
|
|
119
|
+
createdAt: string;
|
|
120
|
+
}
|
|
121
|
+
export interface SecurityDeployDecision {
|
|
122
|
+
id: string;
|
|
123
|
+
organizationId: string;
|
|
124
|
+
projectId: string;
|
|
125
|
+
environmentId: string;
|
|
126
|
+
operationId?: string;
|
|
127
|
+
policyId: string;
|
|
128
|
+
policyVersion: number;
|
|
129
|
+
outcome: 'allow' | 'warn' | 'block';
|
|
130
|
+
scannerVersions: Record<string, string>;
|
|
131
|
+
findingIds: string[];
|
|
132
|
+
waiverIds: string[];
|
|
133
|
+
explanation: string;
|
|
134
|
+
createdAt: string;
|
|
135
|
+
}
|
|
136
|
+
export interface EvaluateSecurityGateInput {
|
|
137
|
+
organizationId: string;
|
|
138
|
+
projectId: string;
|
|
139
|
+
environmentId: string;
|
|
140
|
+
operationId?: string;
|
|
141
|
+
policyId?: string;
|
|
142
|
+
staleAfterMs?: number;
|
|
143
|
+
}
|
|
144
|
+
export interface SecurityPostureSummary {
|
|
145
|
+
open: Record<SecuritySeverity, number>;
|
|
146
|
+
waived: number;
|
|
147
|
+
resolved: number;
|
|
148
|
+
checks: Record<SecurityCheckStatus, number>;
|
|
149
|
+
lastScannedAt?: string;
|
|
150
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { SourceBinding, SourceCredential, SourceDeployKey, SourceRef } from './types';
|
|
2
|
+
export interface GitTransportOptions {
|
|
3
|
+
credential?: SourceCredential;
|
|
4
|
+
deployKey?: SourceDeployKey & {
|
|
5
|
+
privateKey: string;
|
|
6
|
+
};
|
|
7
|
+
executable?: string;
|
|
8
|
+
timeoutMs?: number;
|
|
9
|
+
}
|
|
10
|
+
export interface ClonedSource {
|
|
11
|
+
directory: string;
|
|
12
|
+
commitSha: string;
|
|
13
|
+
}
|
|
14
|
+
export declare function discoverGitRefs(remoteValue: string, options?: GitTransportOptions): Promise<{
|
|
15
|
+
branches: SourceRef[];
|
|
16
|
+
tags: SourceRef[];
|
|
17
|
+
}>;
|
|
18
|
+
/** Clone/fetch is argv-only, timeout-bounded, non-interactive, and never embeds credentials in the remote URL. */
|
|
19
|
+
export declare function cloneSourceBinding(input: {
|
|
20
|
+
remote: string;
|
|
21
|
+
binding: SourceBinding;
|
|
22
|
+
destination: string;
|
|
23
|
+
ref?: string;
|
|
24
|
+
commitSha?: string;
|
|
25
|
+
sparsePaths?: string[];
|
|
26
|
+
}, options?: GitTransportOptions): Promise<ClonedSource>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
import type { SourceCapabilities, SourceCommitStatus, SourceConnection, SourceConnectionTest, SourceCredential, SourceProvider, SourceProviderAdapter, SourceRefPage, SourceRepositoryPage, SourceWebhookRegistration } from './types';
|
|
2
|
+
export declare class SourceProviderError extends Error {
|
|
3
|
+
readonly status?: number | undefined;
|
|
4
|
+
readonly retryAfterSeconds?: number | undefined;
|
|
5
|
+
constructor(message: string, status?: number | undefined, retryAfterSeconds?: number | undefined);
|
|
6
|
+
}
|
|
7
|
+
export interface SourceAdapterOptions {
|
|
8
|
+
fetch?: SourceFetch;
|
|
9
|
+
timeoutMs?: number;
|
|
10
|
+
now?: () => Date;
|
|
11
|
+
}
|
|
12
|
+
export type SourceFetch = (input: string | URL | Request, init?: RequestInit) => Promise<Response>;
|
|
13
|
+
declare abstract class HostedSourceAdapter implements SourceProviderAdapter {
|
|
14
|
+
protected readonly connection: SourceConnection;
|
|
15
|
+
protected readonly credential: SourceCredential | undefined;
|
|
16
|
+
abstract readonly provider: SourceProvider;
|
|
17
|
+
readonly capabilities: SourceCapabilities;
|
|
18
|
+
protected readonly fetchFn: SourceFetch;
|
|
19
|
+
protected readonly timeoutMs: number;
|
|
20
|
+
protected readonly nowFn: () => Date;
|
|
21
|
+
constructor(connection: SourceConnection, credential: SourceCredential | undefined, options?: SourceAdapterOptions);
|
|
22
|
+
protected abstract apiRoot(): string;
|
|
23
|
+
protected abstract authorization(): Promise<Record<string, string>>;
|
|
24
|
+
protected request<T>(path: string, init?: RequestInit): Promise<{
|
|
25
|
+
data: T;
|
|
26
|
+
headers: Headers;
|
|
27
|
+
}>;
|
|
28
|
+
abstract testConnection(): Promise<SourceConnectionTest>;
|
|
29
|
+
abstract listRepositories(input?: {
|
|
30
|
+
cursor?: string;
|
|
31
|
+
search?: string;
|
|
32
|
+
limit?: number;
|
|
33
|
+
}): Promise<SourceRepositoryPage>;
|
|
34
|
+
abstract listBranches(repository: string, input?: {
|
|
35
|
+
cursor?: string;
|
|
36
|
+
limit?: number;
|
|
37
|
+
}): Promise<SourceRefPage>;
|
|
38
|
+
abstract listTags(repository: string, input?: {
|
|
39
|
+
cursor?: string;
|
|
40
|
+
limit?: number;
|
|
41
|
+
}): Promise<SourceRefPage>;
|
|
42
|
+
abstract createWebhook(repository: string, input: {
|
|
43
|
+
url: string;
|
|
44
|
+
secret: string;
|
|
45
|
+
events: string[];
|
|
46
|
+
}): Promise<SourceWebhookRegistration>;
|
|
47
|
+
abstract listWebhooks(repository: string): Promise<SourceWebhookRegistration[]>;
|
|
48
|
+
abstract updateWebhook(repository: string, webhookId: string, input: {
|
|
49
|
+
url: string;
|
|
50
|
+
secret: string;
|
|
51
|
+
events: string[];
|
|
52
|
+
}): Promise<SourceWebhookRegistration>;
|
|
53
|
+
deleteWebhook(repository: string, webhookId: string): Promise<void>;
|
|
54
|
+
abstract setCommitStatus(repository: string, commitSha: string, status: SourceCommitStatus): Promise<void>;
|
|
55
|
+
protected abstract webhookPath(repository: string, webhookId?: string): string;
|
|
56
|
+
}
|
|
57
|
+
export declare class GithubSourceAdapter extends HostedSourceAdapter {
|
|
58
|
+
readonly provider: 'github';
|
|
59
|
+
private installationToken?;
|
|
60
|
+
protected apiRoot(): string;
|
|
61
|
+
protected authorization(): Promise<Record<string, string>>;
|
|
62
|
+
testConnection(): Promise<SourceConnectionTest>;
|
|
63
|
+
listRepositories(input?: {
|
|
64
|
+
cursor?: string;
|
|
65
|
+
search?: string;
|
|
66
|
+
limit?: number;
|
|
67
|
+
}): Promise<SourceRepositoryPage>;
|
|
68
|
+
private refs;
|
|
69
|
+
listBranches(repository: string, input?: {
|
|
70
|
+
cursor?: string;
|
|
71
|
+
limit?: number;
|
|
72
|
+
}): Promise<SourceRefPage>;
|
|
73
|
+
listTags(repository: string, input?: {
|
|
74
|
+
cursor?: string;
|
|
75
|
+
limit?: number;
|
|
76
|
+
}): Promise<SourceRefPage>;
|
|
77
|
+
protected webhookPath(repository: string, webhookId?: string): string;
|
|
78
|
+
private hook;
|
|
79
|
+
createWebhook(repository: string, input: {
|
|
80
|
+
url: string;
|
|
81
|
+
secret: string;
|
|
82
|
+
events: string[];
|
|
83
|
+
}): Promise<SourceWebhookRegistration>;
|
|
84
|
+
listWebhooks(repository: string): Promise<SourceWebhookRegistration[]>;
|
|
85
|
+
updateWebhook(repository: string, webhookId: string, input: {
|
|
86
|
+
url: string;
|
|
87
|
+
secret: string;
|
|
88
|
+
events: string[];
|
|
89
|
+
}): Promise<SourceWebhookRegistration>;
|
|
90
|
+
setCommitStatus(repository: string, commitSha: string, status: SourceCommitStatus): Promise<void>;
|
|
91
|
+
}
|
|
92
|
+
export declare class GitlabSourceAdapter extends HostedSourceAdapter {
|
|
93
|
+
readonly provider: 'gitlab';
|
|
94
|
+
protected apiRoot(): string;
|
|
95
|
+
protected authorization(): Promise<Record<string, string>>;
|
|
96
|
+
testConnection(): Promise<SourceConnectionTest>;
|
|
97
|
+
listRepositories(input?: {
|
|
98
|
+
cursor?: string;
|
|
99
|
+
search?: string;
|
|
100
|
+
limit?: number;
|
|
101
|
+
}): Promise<SourceRepositoryPage>;
|
|
102
|
+
private refs;
|
|
103
|
+
listBranches(repository: string, input?: {
|
|
104
|
+
cursor?: string;
|
|
105
|
+
limit?: number;
|
|
106
|
+
}): Promise<SourceRefPage>;
|
|
107
|
+
listTags(repository: string, input?: {
|
|
108
|
+
cursor?: string;
|
|
109
|
+
limit?: number;
|
|
110
|
+
}): Promise<SourceRefPage>;
|
|
111
|
+
protected webhookPath(repository: string, webhookId?: string): string;
|
|
112
|
+
private hook;
|
|
113
|
+
private body;
|
|
114
|
+
createWebhook(repository: string, input: {
|
|
115
|
+
url: string;
|
|
116
|
+
secret: string;
|
|
117
|
+
events: string[];
|
|
118
|
+
}): Promise<SourceWebhookRegistration>;
|
|
119
|
+
listWebhooks(repository: string): Promise<SourceWebhookRegistration[]>;
|
|
120
|
+
updateWebhook(repository: string, webhookId: string, input: {
|
|
121
|
+
url: string;
|
|
122
|
+
secret: string;
|
|
123
|
+
events: string[];
|
|
124
|
+
}): Promise<SourceWebhookRegistration>;
|
|
125
|
+
setCommitStatus(repository: string, commitSha: string, status: SourceCommitStatus): Promise<void>;
|
|
126
|
+
}
|
|
127
|
+
export declare class BitbucketSourceAdapter extends HostedSourceAdapter {
|
|
128
|
+
readonly provider: 'bitbucket';
|
|
129
|
+
protected apiRoot(): string;
|
|
130
|
+
protected authorization(): Promise<Record<string, string>>;
|
|
131
|
+
testConnection(): Promise<SourceConnectionTest>;
|
|
132
|
+
listRepositories(input?: {
|
|
133
|
+
cursor?: string;
|
|
134
|
+
search?: string;
|
|
135
|
+
limit?: number;
|
|
136
|
+
}): Promise<SourceRepositoryPage>;
|
|
137
|
+
private refs;
|
|
138
|
+
listBranches(repository: string, input?: {
|
|
139
|
+
cursor?: string;
|
|
140
|
+
limit?: number;
|
|
141
|
+
}): Promise<SourceRefPage>;
|
|
142
|
+
listTags(repository: string, input?: {
|
|
143
|
+
cursor?: string;
|
|
144
|
+
limit?: number;
|
|
145
|
+
}): Promise<SourceRefPage>;
|
|
146
|
+
protected webhookPath(repository: string, webhookId?: string): string;
|
|
147
|
+
private hook;
|
|
148
|
+
private body;
|
|
149
|
+
createWebhook(repository: string, input: {
|
|
150
|
+
url: string;
|
|
151
|
+
secret: string;
|
|
152
|
+
events: string[];
|
|
153
|
+
}): Promise<SourceWebhookRegistration>;
|
|
154
|
+
listWebhooks(repository: string): Promise<SourceWebhookRegistration[]>;
|
|
155
|
+
updateWebhook(repository: string, webhookId: string, input: {
|
|
156
|
+
url: string;
|
|
157
|
+
secret: string;
|
|
158
|
+
events: string[];
|
|
159
|
+
}): Promise<SourceWebhookRegistration>;
|
|
160
|
+
setCommitStatus(repository: string, commitSha: string, status: SourceCommitStatus): Promise<void>;
|
|
161
|
+
}
|
|
162
|
+
export declare class GiteaSourceAdapter extends HostedSourceAdapter {
|
|
163
|
+
readonly provider: 'gitea';
|
|
164
|
+
readonly capabilities: SourceCapabilities;
|
|
165
|
+
protected apiRoot(): string;
|
|
166
|
+
protected authorization(): Promise<Record<string, string>>;
|
|
167
|
+
testConnection(): Promise<SourceConnectionTest>;
|
|
168
|
+
listRepositories(input?: {
|
|
169
|
+
cursor?: string;
|
|
170
|
+
search?: string;
|
|
171
|
+
limit?: number;
|
|
172
|
+
}): Promise<SourceRepositoryPage>;
|
|
173
|
+
private refs;
|
|
174
|
+
listBranches(repository: string, input?: {
|
|
175
|
+
cursor?: string;
|
|
176
|
+
limit?: number;
|
|
177
|
+
}): Promise<SourceRefPage>;
|
|
178
|
+
listTags(repository: string, input?: {
|
|
179
|
+
cursor?: string;
|
|
180
|
+
limit?: number;
|
|
181
|
+
}): Promise<SourceRefPage>;
|
|
182
|
+
protected webhookPath(repository: string, webhookId?: string): string;
|
|
183
|
+
private hook;
|
|
184
|
+
private body;
|
|
185
|
+
createWebhook(repository: string, input: {
|
|
186
|
+
url: string;
|
|
187
|
+
secret: string;
|
|
188
|
+
events: string[];
|
|
189
|
+
}): Promise<SourceWebhookRegistration>;
|
|
190
|
+
listWebhooks(repository: string): Promise<SourceWebhookRegistration[]>;
|
|
191
|
+
updateWebhook(repository: string, webhookId: string, input: {
|
|
192
|
+
url: string;
|
|
193
|
+
secret: string;
|
|
194
|
+
events: string[];
|
|
195
|
+
}): Promise<SourceWebhookRegistration>;
|
|
196
|
+
setCommitStatus(repository: string, commitSha: string, status: SourceCommitStatus): Promise<void>;
|
|
197
|
+
}
|
|
198
|
+
export declare function createSourceAdapter(connection: SourceConnection, credential?: SourceCredential, options?: SourceAdapterOptions): SourceProviderAdapter;
|
|
199
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { SourceConnectionStore } from './store';
|
|
2
|
+
import type { SourceRefPage, SourceRepository, SourceWebhook } from './types';
|
|
3
|
+
export declare function testSourceConnection(sources: SourceConnectionStore, connectionId: string, repositoryId?: string): Promise<ReturnType<SourceConnectionStore['updateHealth']>>;
|
|
4
|
+
export declare function syncSourceRepositories(sources: SourceConnectionStore, connectionId: string, input?: {
|
|
5
|
+
search?: string;
|
|
6
|
+
maxPages?: number;
|
|
7
|
+
}): Promise<SourceRepository[]>;
|
|
8
|
+
export declare function listSourceReferences(sources: SourceConnectionStore, input: {
|
|
9
|
+
connectionId: string;
|
|
10
|
+
repository: string;
|
|
11
|
+
repositoryId?: string;
|
|
12
|
+
type: 'branches' | 'tags';
|
|
13
|
+
cursor?: string;
|
|
14
|
+
limit?: number;
|
|
15
|
+
deployKeyId?: string;
|
|
16
|
+
}): Promise<SourceRefPage>;
|
|
17
|
+
export declare function reconcileSourceWebhook(sources: SourceConnectionStore, webhookId: string, baseUrl: string): Promise<SourceWebhook>;
|
|
18
|
+
export declare function removeSourceWebhook(sources: SourceConnectionStore, webhookId: string): Promise<SourceWebhook>;
|