@sylphx/contract 0.2.0
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/CHANGELOG.md +44 -0
- package/LICENSE +21 -0
- package/README.md +164 -0
- package/dist/endpoint.d.ts +65 -0
- package/dist/endpoint.d.ts.map +1 -0
- package/dist/endpoint.js +22 -0
- package/dist/endpoints/admin-ai-playground.d.ts +93 -0
- package/dist/endpoints/admin-ai-playground.d.ts.map +1 -0
- package/dist/endpoints/admin-ai-playground.js +37 -0
- package/dist/endpoints/admin-anomalies.d.ts +108 -0
- package/dist/endpoints/admin-anomalies.d.ts.map +1 -0
- package/dist/endpoints/admin-anomalies.js +72 -0
- package/dist/endpoints/admin-apm.d.ts +102 -0
- package/dist/endpoints/admin-apm.d.ts.map +1 -0
- package/dist/endpoints/admin-apm.js +70 -0
- package/dist/endpoints/admin-audit.d.ts +714 -0
- package/dist/endpoints/admin-audit.d.ts.map +1 -0
- package/dist/endpoints/admin-audit.js +494 -0
- package/dist/endpoints/admin-billing.d.ts +82 -0
- package/dist/endpoints/admin-billing.d.ts.map +1 -0
- package/dist/endpoints/admin-billing.js +190 -0
- package/dist/endpoints/admin-bootstrap.d.ts +16 -0
- package/dist/endpoints/admin-bootstrap.d.ts.map +1 -0
- package/dist/endpoints/admin-bootstrap.js +28 -0
- package/dist/endpoints/admin-broadcasts.d.ts +105 -0
- package/dist/endpoints/admin-broadcasts.d.ts.map +1 -0
- package/dist/endpoints/admin-broadcasts.js +60 -0
- package/dist/endpoints/admin-builds.d.ts +33 -0
- package/dist/endpoints/admin-builds.d.ts.map +1 -0
- package/dist/endpoints/admin-builds.js +36 -0
- package/dist/endpoints/admin-config.d.ts +180 -0
- package/dist/endpoints/admin-config.d.ts.map +1 -0
- package/dist/endpoints/admin-config.js +108 -0
- package/dist/endpoints/admin-consent.d.ts +123 -0
- package/dist/endpoints/admin-consent.d.ts.map +1 -0
- package/dist/endpoints/admin-consent.js +126 -0
- package/dist/endpoints/admin-env-services.d.ts +28 -0
- package/dist/endpoints/admin-env-services.d.ts.map +1 -0
- package/dist/endpoints/admin-env-services.js +35 -0
- package/dist/endpoints/admin-impersonation.d.ts +105 -0
- package/dist/endpoints/admin-impersonation.d.ts.map +1 -0
- package/dist/endpoints/admin-impersonation.js +88 -0
- package/dist/endpoints/admin-invitations.d.ts +73 -0
- package/dist/endpoints/admin-invitations.d.ts.map +1 -0
- package/dist/endpoints/admin-invitations.js +55 -0
- package/dist/endpoints/admin-jwt-keys.d.ts +75 -0
- package/dist/endpoints/admin-jwt-keys.d.ts.map +1 -0
- package/dist/endpoints/admin-jwt-keys.js +63 -0
- package/dist/endpoints/admin-logs.d.ts +109 -0
- package/dist/endpoints/admin-logs.d.ts.map +1 -0
- package/dist/endpoints/admin-logs.js +78 -0
- package/dist/endpoints/admin-plans.d.ts +63 -0
- package/dist/endpoints/admin-plans.d.ts.map +1 -0
- package/dist/endpoints/admin-plans.js +47 -0
- package/dist/endpoints/admin-project-users.d.ts +148 -0
- package/dist/endpoints/admin-project-users.d.ts.map +1 -0
- package/dist/endpoints/admin-project-users.js +89 -0
- package/dist/endpoints/admin-projects.d.ts +124 -0
- package/dist/endpoints/admin-projects.d.ts.map +1 -0
- package/dist/endpoints/admin-projects.js +74 -0
- package/dist/endpoints/admin-quotas.d.ts +98 -0
- package/dist/endpoints/admin-quotas.d.ts.map +1 -0
- package/dist/endpoints/admin-quotas.js +67 -0
- package/dist/endpoints/admin-rate-limits.d.ts +50 -0
- package/dist/endpoints/admin-rate-limits.d.ts.map +1 -0
- package/dist/endpoints/admin-rate-limits.js +53 -0
- package/dist/endpoints/admin-reconcile.d.ts +28 -0
- package/dist/endpoints/admin-reconcile.d.ts.map +1 -0
- package/dist/endpoints/admin-reconcile.js +33 -0
- package/dist/endpoints/admin-resources.d.ts +51 -0
- package/dist/endpoints/admin-resources.d.ts.map +1 -0
- package/dist/endpoints/admin-resources.js +53 -0
- package/dist/endpoints/admin-secrets.d.ts +41 -0
- package/dist/endpoints/admin-secrets.d.ts.map +1 -0
- package/dist/endpoints/admin-secrets.js +33 -0
- package/dist/endpoints/admin-services.d.ts +29 -0
- package/dist/endpoints/admin-services.d.ts.map +1 -0
- package/dist/endpoints/admin-services.js +35 -0
- package/dist/endpoints/admin-tasks.d.ts +186 -0
- package/dist/endpoints/admin-tasks.d.ts.map +1 -0
- package/dist/endpoints/admin-tasks.js +67 -0
- package/dist/endpoints/admin-tenants.d.ts +26 -0
- package/dist/endpoints/admin-tenants.d.ts.map +1 -0
- package/dist/endpoints/admin-tenants.js +30 -0
- package/dist/endpoints/admin-traces.d.ts +124 -0
- package/dist/endpoints/admin-traces.d.ts.map +1 -0
- package/dist/endpoints/admin-traces.js +59 -0
- package/dist/endpoints/admin-users.d.ts +106 -0
- package/dist/endpoints/admin-users.d.ts.map +1 -0
- package/dist/endpoints/admin-users.js +83 -0
- package/dist/endpoints/admin-webhook-signature-versions.d.ts +59 -0
- package/dist/endpoints/admin-webhook-signature-versions.d.ts.map +1 -0
- package/dist/endpoints/admin-webhook-signature-versions.js +57 -0
- package/dist/endpoints/ai-admin.d.ts +30 -0
- package/dist/endpoints/ai-admin.d.ts.map +1 -0
- package/dist/endpoints/ai-admin.js +59 -0
- package/dist/endpoints/analytics-admin.d.ts +279 -0
- package/dist/endpoints/analytics-admin.d.ts.map +1 -0
- package/dist/endpoints/analytics-admin.js +308 -0
- package/dist/endpoints/analytics.d.ts +58 -0
- package/dist/endpoints/analytics.d.ts.map +1 -0
- package/dist/endpoints/analytics.js +43 -0
- package/dist/endpoints/audit-chain.d.ts +49 -0
- package/dist/endpoints/audit-chain.d.ts.map +1 -0
- package/dist/endpoints/audit-chain.js +29 -0
- package/dist/endpoints/audit.d.ts +50 -0
- package/dist/endpoints/audit.d.ts.map +1 -0
- package/dist/endpoints/audit.js +30 -0
- package/dist/endpoints/auth-admin.d.ts +65 -0
- package/dist/endpoints/auth-admin.d.ts.map +1 -0
- package/dist/endpoints/auth-admin.js +55 -0
- package/dist/endpoints/auth.d.ts +157 -0
- package/dist/endpoints/auth.d.ts.map +1 -0
- package/dist/endpoints/auth.js +214 -0
- package/dist/endpoints/backups.d.ts +51 -0
- package/dist/endpoints/backups.d.ts.map +1 -0
- package/dist/endpoints/backups.js +47 -0
- package/dist/endpoints/billing-console.d.ts +294 -0
- package/dist/endpoints/billing-console.d.ts.map +1 -0
- package/dist/endpoints/billing-console.js +167 -0
- package/dist/endpoints/billing-settings.d.ts +107 -0
- package/dist/endpoints/billing-settings.d.ts.map +1 -0
- package/dist/endpoints/billing-settings.js +117 -0
- package/dist/endpoints/branch-databases.d.ts +75 -0
- package/dist/endpoints/branch-databases.d.ts.map +1 -0
- package/dist/endpoints/branch-databases.js +61 -0
- package/dist/endpoints/challenge.d.ts +62 -0
- package/dist/endpoints/challenge.d.ts.map +1 -0
- package/dist/endpoints/challenge.js +52 -0
- package/dist/endpoints/ci-settings.d.ts +89 -0
- package/dist/endpoints/ci-settings.d.ts.map +1 -0
- package/dist/endpoints/ci-settings.js +78 -0
- package/dist/endpoints/consent-admin.d.ts +134 -0
- package/dist/endpoints/consent-admin.d.ts.map +1 -0
- package/dist/endpoints/consent-admin.js +83 -0
- package/dist/endpoints/databases.d.ts +251 -0
- package/dist/endpoints/databases.d.ts.map +1 -0
- package/dist/endpoints/databases.js +150 -0
- package/dist/endpoints/deployments.d.ts +280 -0
- package/dist/endpoints/deployments.d.ts.map +1 -0
- package/dist/endpoints/deployments.js +205 -0
- package/dist/endpoints/domains.d.ts +356 -0
- package/dist/endpoints/domains.d.ts.map +1 -0
- package/dist/endpoints/domains.js +149 -0
- package/dist/endpoints/edge-deployments.d.ts +92 -0
- package/dist/endpoints/edge-deployments.d.ts.map +1 -0
- package/dist/endpoints/edge-deployments.js +58 -0
- package/dist/endpoints/email-admin.d.ts +415 -0
- package/dist/endpoints/email-admin.d.ts.map +1 -0
- package/dist/endpoints/email-admin.js +253 -0
- package/dist/endpoints/email.d.ts +37 -0
- package/dist/endpoints/email.d.ts.map +1 -0
- package/dist/endpoints/email.js +42 -0
- package/dist/endpoints/engagement-admin.d.ts +98 -0
- package/dist/endpoints/engagement-admin.d.ts.map +1 -0
- package/dist/endpoints/engagement-admin.js +64 -0
- package/dist/endpoints/env-vars.d.ts +66 -0
- package/dist/endpoints/env-vars.d.ts.map +1 -0
- package/dist/endpoints/env-vars.js +47 -0
- package/dist/endpoints/environments.d.ts +456 -0
- package/dist/endpoints/environments.d.ts.map +1 -0
- package/dist/endpoints/environments.js +237 -0
- package/dist/endpoints/experiments.d.ts +500 -0
- package/dist/endpoints/experiments.d.ts.map +1 -0
- package/dist/endpoints/experiments.js +93 -0
- package/dist/endpoints/flags-admin.d.ts +74 -0
- package/dist/endpoints/flags-admin.d.ts.map +1 -0
- package/dist/endpoints/flags-admin.js +84 -0
- package/dist/endpoints/flags.d.ts +23 -0
- package/dist/endpoints/flags.d.ts.map +1 -0
- package/dist/endpoints/flags.js +17 -0
- package/dist/endpoints/github.d.ts +30 -0
- package/dist/endpoints/github.d.ts.map +1 -0
- package/dist/endpoints/github.js +37 -0
- package/dist/endpoints/image-opt.d.ts +43 -0
- package/dist/endpoints/image-opt.d.ts.map +1 -0
- package/dist/endpoints/image-opt.js +44 -0
- package/dist/endpoints/kv-admin.d.ts +58 -0
- package/dist/endpoints/kv-admin.d.ts.map +1 -0
- package/dist/endpoints/kv-admin.js +69 -0
- package/dist/endpoints/kv.d.ts +63 -0
- package/dist/endpoints/kv.d.ts.map +1 -0
- package/dist/endpoints/kv.js +82 -0
- package/dist/endpoints/monitoring-admin.d.ts +204 -0
- package/dist/endpoints/monitoring-admin.d.ts.map +1 -0
- package/dist/endpoints/monitoring-admin.js +119 -0
- package/dist/endpoints/monitoring.d.ts +63 -0
- package/dist/endpoints/monitoring.d.ts.map +1 -0
- package/dist/endpoints/monitoring.js +27 -0
- package/dist/endpoints/newsletter.d.ts +366 -0
- package/dist/endpoints/newsletter.d.ts.map +1 -0
- package/dist/endpoints/newsletter.js +232 -0
- package/dist/endpoints/notifications-admin.d.ts +268 -0
- package/dist/endpoints/notifications-admin.d.ts.map +1 -0
- package/dist/endpoints/notifications-admin.js +172 -0
- package/dist/endpoints/notifications.d.ts +225 -0
- package/dist/endpoints/notifications.d.ts.map +1 -0
- package/dist/endpoints/notifications.js +150 -0
- package/dist/endpoints/oidc.d.ts +67 -0
- package/dist/endpoints/oidc.d.ts.map +1 -0
- package/dist/endpoints/oidc.js +49 -0
- package/dist/endpoints/organizations.d.ts +702 -0
- package/dist/endpoints/organizations.d.ts.map +1 -0
- package/dist/endpoints/organizations.js +460 -0
- package/dist/endpoints/plans.d.ts +136 -0
- package/dist/endpoints/plans.d.ts.map +1 -0
- package/dist/endpoints/plans.js +83 -0
- package/dist/endpoints/privacy.d.ts +131 -0
- package/dist/endpoints/privacy.d.ts.map +1 -0
- package/dist/endpoints/privacy.js +98 -0
- package/dist/endpoints/project-manifest.d.ts +1044 -0
- package/dist/endpoints/project-manifest.d.ts.map +1 -0
- package/dist/endpoints/project-manifest.js +59 -0
- package/dist/endpoints/projects.d.ts +187 -0
- package/dist/endpoints/projects.d.ts.map +1 -0
- package/dist/endpoints/projects.js +58 -0
- package/dist/endpoints/rate-limits.d.ts +83 -0
- package/dist/endpoints/rate-limits.d.ts.map +1 -0
- package/dist/endpoints/rate-limits.js +54 -0
- package/dist/endpoints/realtime-admin.d.ts +42 -0
- package/dist/endpoints/realtime-admin.d.ts.map +1 -0
- package/dist/endpoints/realtime-admin.js +50 -0
- package/dist/endpoints/realtime.d.ts +35 -0
- package/dist/endpoints/realtime.d.ts.map +1 -0
- package/dist/endpoints/realtime.js +39 -0
- package/dist/endpoints/referrals-admin.d.ts +118 -0
- package/dist/endpoints/referrals-admin.d.ts.map +1 -0
- package/dist/endpoints/referrals-admin.js +59 -0
- package/dist/endpoints/refresh.d.ts +19 -0
- package/dist/endpoints/refresh.d.ts.map +1 -0
- package/dist/endpoints/refresh.js +25 -0
- package/dist/endpoints/regions.d.ts +41 -0
- package/dist/endpoints/regions.d.ts.map +1 -0
- package/dist/endpoints/regions.js +43 -0
- package/dist/endpoints/runners.d.ts +55 -0
- package/dist/endpoints/runners.d.ts.map +1 -0
- package/dist/endpoints/runners.js +45 -0
- package/dist/endpoints/saml.d.ts +147 -0
- package/dist/endpoints/saml.d.ts.map +1 -0
- package/dist/endpoints/saml.js +106 -0
- package/dist/endpoints/search.d.ts +62 -0
- package/dist/endpoints/search.d.ts.map +1 -0
- package/dist/endpoints/search.js +40 -0
- package/dist/endpoints/secrets.d.ts +95 -0
- package/dist/endpoints/secrets.d.ts.map +1 -0
- package/dist/endpoints/secrets.js +81 -0
- package/dist/endpoints/security.d.ts +231 -0
- package/dist/endpoints/security.d.ts.map +1 -0
- package/dist/endpoints/security.js +291 -0
- package/dist/endpoints/service-tokens.d.ts +392 -0
- package/dist/endpoints/service-tokens.d.ts.map +1 -0
- package/dist/endpoints/service-tokens.js +125 -0
- package/dist/endpoints/session-replay.d.ts +142 -0
- package/dist/endpoints/session-replay.d.ts.map +1 -0
- package/dist/endpoints/session-replay.js +53 -0
- package/dist/endpoints/storage-admin.d.ts +96 -0
- package/dist/endpoints/storage-admin.d.ts.map +1 -0
- package/dist/endpoints/storage-admin.js +113 -0
- package/dist/endpoints/storage.d.ts +167 -0
- package/dist/endpoints/storage.d.ts.map +1 -0
- package/dist/endpoints/storage.js +117 -0
- package/dist/endpoints/tasks.d.ts +141 -0
- package/dist/endpoints/tasks.d.ts.map +1 -0
- package/dist/endpoints/tasks.js +97 -0
- package/dist/endpoints/users.d.ts +103 -0
- package/dist/endpoints/users.d.ts.map +1 -0
- package/dist/endpoints/users.js +98 -0
- package/dist/endpoints/webhooks.d.ts +201 -0
- package/dist/endpoints/webhooks.d.ts.map +1 -0
- package/dist/endpoints/webhooks.js +120 -0
- package/dist/errors.d.ts +153 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/errors.js +73 -0
- package/dist/index.d.ts +12303 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +390 -0
- package/dist/schemas/_primitives.d.ts +37 -0
- package/dist/schemas/_primitives.d.ts.map +1 -0
- package/dist/schemas/_primitives.js +38 -0
- package/dist/schemas/admin-ai-playground.d.ts +128 -0
- package/dist/schemas/admin-ai-playground.d.ts.map +1 -0
- package/dist/schemas/admin-ai-playground.js +84 -0
- package/dist/schemas/admin-anomalies.d.ts +131 -0
- package/dist/schemas/admin-anomalies.d.ts.map +1 -0
- package/dist/schemas/admin-anomalies.js +106 -0
- package/dist/schemas/admin-apm.d.ts +151 -0
- package/dist/schemas/admin-apm.d.ts.map +1 -0
- package/dist/schemas/admin-apm.js +96 -0
- package/dist/schemas/admin-audit.d.ts +625 -0
- package/dist/schemas/admin-audit.d.ts.map +1 -0
- package/dist/schemas/admin-audit.js +508 -0
- package/dist/schemas/admin-billing.d.ts +73 -0
- package/dist/schemas/admin-billing.d.ts.map +1 -0
- package/dist/schemas/admin-billing.js +60 -0
- package/dist/schemas/admin-bootstrap.d.ts +32 -0
- package/dist/schemas/admin-bootstrap.d.ts.map +1 -0
- package/dist/schemas/admin-bootstrap.js +37 -0
- package/dist/schemas/admin-broadcasts.d.ts +181 -0
- package/dist/schemas/admin-broadcasts.d.ts.map +1 -0
- package/dist/schemas/admin-broadcasts.js +93 -0
- package/dist/schemas/admin-builds.d.ts +108 -0
- package/dist/schemas/admin-builds.d.ts.map +1 -0
- package/dist/schemas/admin-builds.js +127 -0
- package/dist/schemas/admin-config.d.ts +248 -0
- package/dist/schemas/admin-config.d.ts.map +1 -0
- package/dist/schemas/admin-config.js +145 -0
- package/dist/schemas/admin-consent.d.ts +129 -0
- package/dist/schemas/admin-consent.d.ts.map +1 -0
- package/dist/schemas/admin-consent.js +76 -0
- package/dist/schemas/admin-env-services.d.ts +63 -0
- package/dist/schemas/admin-env-services.d.ts.map +1 -0
- package/dist/schemas/admin-env-services.js +81 -0
- package/dist/schemas/admin-impersonation.d.ts +150 -0
- package/dist/schemas/admin-impersonation.d.ts.map +1 -0
- package/dist/schemas/admin-impersonation.js +114 -0
- package/dist/schemas/admin-invitations.d.ts +119 -0
- package/dist/schemas/admin-invitations.d.ts.map +1 -0
- package/dist/schemas/admin-invitations.js +80 -0
- package/dist/schemas/admin-jwt-keys.d.ts +130 -0
- package/dist/schemas/admin-jwt-keys.d.ts.map +1 -0
- package/dist/schemas/admin-jwt-keys.js +83 -0
- package/dist/schemas/admin-logs.d.ts +170 -0
- package/dist/schemas/admin-logs.d.ts.map +1 -0
- package/dist/schemas/admin-logs.js +108 -0
- package/dist/schemas/admin-plans.d.ts +92 -0
- package/dist/schemas/admin-plans.d.ts.map +1 -0
- package/dist/schemas/admin-plans.js +62 -0
- package/dist/schemas/admin-project-users.d.ts +183 -0
- package/dist/schemas/admin-project-users.d.ts.map +1 -0
- package/dist/schemas/admin-project-users.js +108 -0
- package/dist/schemas/admin-projects.d.ts +237 -0
- package/dist/schemas/admin-projects.d.ts.map +1 -0
- package/dist/schemas/admin-projects.js +129 -0
- package/dist/schemas/admin-quotas.d.ts +161 -0
- package/dist/schemas/admin-quotas.d.ts.map +1 -0
- package/dist/schemas/admin-quotas.js +107 -0
- package/dist/schemas/admin-rate-limits.d.ts +90 -0
- package/dist/schemas/admin-rate-limits.d.ts.map +1 -0
- package/dist/schemas/admin-rate-limits.js +72 -0
- package/dist/schemas/admin-reconcile.d.ts +89 -0
- package/dist/schemas/admin-reconcile.d.ts.map +1 -0
- package/dist/schemas/admin-reconcile.js +86 -0
- package/dist/schemas/admin-resources.d.ts +129 -0
- package/dist/schemas/admin-resources.d.ts.map +1 -0
- package/dist/schemas/admin-resources.js +143 -0
- package/dist/schemas/admin-secrets.d.ts +113 -0
- package/dist/schemas/admin-secrets.d.ts.map +1 -0
- package/dist/schemas/admin-secrets.js +94 -0
- package/dist/schemas/admin-services.d.ts +71 -0
- package/dist/schemas/admin-services.d.ts.map +1 -0
- package/dist/schemas/admin-services.js +61 -0
- package/dist/schemas/admin-tasks.d.ts +239 -0
- package/dist/schemas/admin-tasks.d.ts.map +1 -0
- package/dist/schemas/admin-tasks.js +103 -0
- package/dist/schemas/admin-tenants.d.ts +45 -0
- package/dist/schemas/admin-tenants.d.ts.map +1 -0
- package/dist/schemas/admin-tenants.js +54 -0
- package/dist/schemas/admin-traces.d.ts +203 -0
- package/dist/schemas/admin-traces.d.ts.map +1 -0
- package/dist/schemas/admin-traces.js +128 -0
- package/dist/schemas/admin-users.d.ts +158 -0
- package/dist/schemas/admin-users.d.ts.map +1 -0
- package/dist/schemas/admin-users.js +110 -0
- package/dist/schemas/admin-webhook-signature-versions.d.ts +103 -0
- package/dist/schemas/admin-webhook-signature-versions.d.ts.map +1 -0
- package/dist/schemas/admin-webhook-signature-versions.js +73 -0
- package/dist/schemas/ai-admin.d.ts +39 -0
- package/dist/schemas/ai-admin.d.ts.map +1 -0
- package/dist/schemas/ai-admin.js +29 -0
- package/dist/schemas/ai.d.ts +120 -0
- package/dist/schemas/ai.d.ts.map +1 -0
- package/dist/schemas/ai.js +84 -0
- package/dist/schemas/analytics-admin.d.ts +104 -0
- package/dist/schemas/analytics-admin.d.ts.map +1 -0
- package/dist/schemas/analytics-admin.js +61 -0
- package/dist/schemas/analytics.d.ts +118 -0
- package/dist/schemas/analytics.d.ts.map +1 -0
- package/dist/schemas/analytics.js +80 -0
- package/dist/schemas/audit-chain.d.ts +81 -0
- package/dist/schemas/audit-chain.d.ts.map +1 -0
- package/dist/schemas/audit-chain.js +62 -0
- package/dist/schemas/auth-admin.d.ts +55 -0
- package/dist/schemas/auth-admin.d.ts.map +1 -0
- package/dist/schemas/auth-admin.js +48 -0
- package/dist/schemas/auth.d.ts +865 -0
- package/dist/schemas/auth.d.ts.map +1 -0
- package/dist/schemas/auth.js +815 -0
- package/dist/schemas/backups.d.ts +70 -0
- package/dist/schemas/backups.d.ts.map +1 -0
- package/dist/schemas/backups.js +38 -0
- package/dist/schemas/billing-console.d.ts +414 -0
- package/dist/schemas/billing-console.d.ts.map +1 -0
- package/dist/schemas/billing-console.js +298 -0
- package/dist/schemas/billing-settings.d.ts +156 -0
- package/dist/schemas/billing-settings.d.ts.map +1 -0
- package/dist/schemas/billing-settings.js +119 -0
- package/dist/schemas/billing.d.ts +211 -0
- package/dist/schemas/billing.d.ts.map +1 -0
- package/dist/schemas/billing.js +147 -0
- package/dist/schemas/branch-database.d.ts +98 -0
- package/dist/schemas/branch-database.d.ts.map +1 -0
- package/dist/schemas/branch-database.js +68 -0
- package/dist/schemas/challenge.d.ts +104 -0
- package/dist/schemas/challenge.d.ts.map +1 -0
- package/dist/schemas/challenge.js +74 -0
- package/dist/schemas/ci-settings.d.ts +122 -0
- package/dist/schemas/ci-settings.d.ts.map +1 -0
- package/dist/schemas/ci-settings.js +65 -0
- package/dist/schemas/consent-admin.d.ts +187 -0
- package/dist/schemas/consent-admin.d.ts.map +1 -0
- package/dist/schemas/consent-admin.js +114 -0
- package/dist/schemas/consent.d.ts +78 -0
- package/dist/schemas/consent.d.ts.map +1 -0
- package/dist/schemas/consent.js +68 -0
- package/dist/schemas/database.d.ts +104 -0
- package/dist/schemas/database.d.ts.map +1 -0
- package/dist/schemas/database.js +89 -0
- package/dist/schemas/deployment.d.ts +386 -0
- package/dist/schemas/deployment.d.ts.map +1 -0
- package/dist/schemas/deployment.js +282 -0
- package/dist/schemas/domain.d.ts +148 -0
- package/dist/schemas/domain.d.ts.map +1 -0
- package/dist/schemas/domain.js +86 -0
- package/dist/schemas/edge-deployments.d.ts +140 -0
- package/dist/schemas/edge-deployments.d.ts.map +1 -0
- package/dist/schemas/edge-deployments.js +87 -0
- package/dist/schemas/email-admin.d.ts +384 -0
- package/dist/schemas/email-admin.d.ts.map +1 -0
- package/dist/schemas/email-admin.js +313 -0
- package/dist/schemas/email.d.ts +46 -0
- package/dist/schemas/email.d.ts.map +1 -0
- package/dist/schemas/email.js +34 -0
- package/dist/schemas/engagement-admin.d.ts +148 -0
- package/dist/schemas/engagement-admin.d.ts.map +1 -0
- package/dist/schemas/engagement-admin.js +107 -0
- package/dist/schemas/env-var.d.ts +68 -0
- package/dist/schemas/env-var.d.ts.map +1 -0
- package/dist/schemas/env-var.js +52 -0
- package/dist/schemas/environment.d.ts +392 -0
- package/dist/schemas/environment.d.ts.map +1 -0
- package/dist/schemas/environment.js +211 -0
- package/dist/schemas/experiments.d.ts +540 -0
- package/dist/schemas/experiments.d.ts.map +1 -0
- package/dist/schemas/experiments.js +150 -0
- package/dist/schemas/flags-admin.d.ts +112 -0
- package/dist/schemas/flags-admin.d.ts.map +1 -0
- package/dist/schemas/flags-admin.js +84 -0
- package/dist/schemas/flags.d.ts +43 -0
- package/dist/schemas/flags.d.ts.map +1 -0
- package/dist/schemas/flags.js +27 -0
- package/dist/schemas/github.d.ts +34 -0
- package/dist/schemas/github.d.ts.map +1 -0
- package/dist/schemas/github.js +24 -0
- package/dist/schemas/ids.d.ts +39 -0
- package/dist/schemas/ids.d.ts.map +1 -0
- package/dist/schemas/ids.js +26 -0
- package/dist/schemas/image-opt.d.ts +70 -0
- package/dist/schemas/image-opt.d.ts.map +1 -0
- package/dist/schemas/image-opt.js +68 -0
- package/dist/schemas/kv-admin.d.ts +60 -0
- package/dist/schemas/kv-admin.d.ts.map +1 -0
- package/dist/schemas/kv-admin.js +43 -0
- package/dist/schemas/kv.d.ts +79 -0
- package/dist/schemas/kv.d.ts.map +1 -0
- package/dist/schemas/kv.js +54 -0
- package/dist/schemas/monitoring-admin.d.ts +314 -0
- package/dist/schemas/monitoring-admin.d.ts.map +1 -0
- package/dist/schemas/monitoring-admin.js +196 -0
- package/dist/schemas/monitoring.d.ts +143 -0
- package/dist/schemas/monitoring.d.ts.map +1 -0
- package/dist/schemas/monitoring.js +96 -0
- package/dist/schemas/newsletter.d.ts +366 -0
- package/dist/schemas/newsletter.d.ts.map +1 -0
- package/dist/schemas/newsletter.js +245 -0
- package/dist/schemas/notifications-admin.d.ts +337 -0
- package/dist/schemas/notifications-admin.d.ts.map +1 -0
- package/dist/schemas/notifications-admin.js +261 -0
- package/dist/schemas/notifications.d.ts +312 -0
- package/dist/schemas/notifications.d.ts.map +1 -0
- package/dist/schemas/notifications.js +235 -0
- package/dist/schemas/oidc.d.ts +74 -0
- package/dist/schemas/oidc.d.ts.map +1 -0
- package/dist/schemas/oidc.js +46 -0
- package/dist/schemas/organization-billing.d.ts +165 -0
- package/dist/schemas/organization-billing.d.ts.map +1 -0
- package/dist/schemas/organization-billing.js +156 -0
- package/dist/schemas/organization-project-users.d.ts +126 -0
- package/dist/schemas/organization-project-users.d.ts.map +1 -0
- package/dist/schemas/organization-project-users.js +88 -0
- package/dist/schemas/organization-projects.d.ts +129 -0
- package/dist/schemas/organization-projects.d.ts.map +1 -0
- package/dist/schemas/organization-projects.js +119 -0
- package/dist/schemas/organization-referrals.d.ts +129 -0
- package/dist/schemas/organization-referrals.d.ts.map +1 -0
- package/dist/schemas/organization-referrals.js +126 -0
- package/dist/schemas/organization-team.d.ts +123 -0
- package/dist/schemas/organization-team.d.ts.map +1 -0
- package/dist/schemas/organization-team.js +119 -0
- package/dist/schemas/organization.d.ts +210 -0
- package/dist/schemas/organization.d.ts.map +1 -0
- package/dist/schemas/organization.js +169 -0
- package/dist/schemas/plans.d.ts +211 -0
- package/dist/schemas/plans.d.ts.map +1 -0
- package/dist/schemas/plans.js +131 -0
- package/dist/schemas/privacy.d.ts +174 -0
- package/dist/schemas/privacy.d.ts.map +1 -0
- package/dist/schemas/privacy.js +132 -0
- package/dist/schemas/project-manifest.d.ts +1421 -0
- package/dist/schemas/project-manifest.d.ts.map +1 -0
- package/dist/schemas/project-manifest.js +318 -0
- package/dist/schemas/project.d.ts +132 -0
- package/dist/schemas/project.d.ts.map +1 -0
- package/dist/schemas/project.js +76 -0
- package/dist/schemas/realtime-admin.d.ts +51 -0
- package/dist/schemas/realtime-admin.d.ts.map +1 -0
- package/dist/schemas/realtime-admin.js +29 -0
- package/dist/schemas/realtime.d.ts +46 -0
- package/dist/schemas/realtime.d.ts.map +1 -0
- package/dist/schemas/realtime.js +32 -0
- package/dist/schemas/referrals-admin.d.ts +166 -0
- package/dist/schemas/referrals-admin.d.ts.map +1 -0
- package/dist/schemas/referrals-admin.js +123 -0
- package/dist/schemas/referrals.d.ts +148 -0
- package/dist/schemas/referrals.d.ts.map +1 -0
- package/dist/schemas/referrals.js +102 -0
- package/dist/schemas/refresh.d.ts +29 -0
- package/dist/schemas/refresh.d.ts.map +1 -0
- package/dist/schemas/refresh.js +18 -0
- package/dist/schemas/region.d.ts +118 -0
- package/dist/schemas/region.d.ts.map +1 -0
- package/dist/schemas/region.js +86 -0
- package/dist/schemas/resources.d.ts +345 -0
- package/dist/schemas/resources.d.ts.map +1 -0
- package/dist/schemas/resources.js +220 -0
- package/dist/schemas/runners.d.ts +93 -0
- package/dist/schemas/runners.d.ts.map +1 -0
- package/dist/schemas/runners.js +49 -0
- package/dist/schemas/saml.d.ts +254 -0
- package/dist/schemas/saml.d.ts.map +1 -0
- package/dist/schemas/saml.js +159 -0
- package/dist/schemas/search.d.ts +96 -0
- package/dist/schemas/search.d.ts.map +1 -0
- package/dist/schemas/search.js +57 -0
- package/dist/schemas/secret.d.ts +101 -0
- package/dist/schemas/secret.d.ts.map +1 -0
- package/dist/schemas/secret.js +79 -0
- package/dist/schemas/security.d.ts +345 -0
- package/dist/schemas/security.d.ts.map +1 -0
- package/dist/schemas/security.js +248 -0
- package/dist/schemas/service-tokens.d.ts +342 -0
- package/dist/schemas/service-tokens.d.ts.map +1 -0
- package/dist/schemas/service-tokens.js +101 -0
- package/dist/schemas/session-replay.d.ts +285 -0
- package/dist/schemas/session-replay.d.ts.map +1 -0
- package/dist/schemas/session-replay.js +145 -0
- package/dist/schemas/storage-admin.d.ts +351 -0
- package/dist/schemas/storage-admin.d.ts.map +1 -0
- package/dist/schemas/storage-admin.js +197 -0
- package/dist/schemas/storage.d.ts +257 -0
- package/dist/schemas/storage.d.ts.map +1 -0
- package/dist/schemas/storage.js +173 -0
- package/dist/schemas/tasks.d.ts +178 -0
- package/dist/schemas/tasks.d.ts.map +1 -0
- package/dist/schemas/tasks.js +102 -0
- package/dist/schemas/user.d.ts +103 -0
- package/dist/schemas/user.d.ts.map +1 -0
- package/dist/schemas/user.js +79 -0
- package/dist/schemas/webhooks.d.ts +259 -0
- package/dist/schemas/webhooks.d.ts.map +1 -0
- package/dist/schemas/webhooks.js +198 -0
- package/package.json +154 -0
|
@@ -0,0 +1,865 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Auth — BaaS plane primitives. Matches `@sylphx/sdk` `auth.ts` public
|
|
3
|
+
* surface (sign-in, sign-up, session, 2FA).
|
|
4
|
+
*
|
|
5
|
+
* Two layers coexist here (ADR-084):
|
|
6
|
+
*
|
|
7
|
+
* 1. **Lean primitives** (`SignInInput`, `SignUpInput`, `SessionResult`) —
|
|
8
|
+
* the minimal shape a generic OAuth/OIDC consumer needs. Stable;
|
|
9
|
+
* brand-safe; closed.
|
|
10
|
+
*
|
|
11
|
+
* 2. **SDK wire shapes** (`LoginRequest`, `LoginResponse`, `RegisterRequest`,
|
|
12
|
+
* `RegisterResponse`, `AuthTokensResponse`, `TwoFactorVerifyRequest`,
|
|
13
|
+
* `UserFullProfile`) — richer request/response envelopes the REST API
|
|
14
|
+
* actually returns. Mirror the OpenAPI schema previously consumed from
|
|
15
|
+
* `@sylphx/sdk/src/generated/api.d.ts`. Declared as plain `Struct`s with
|
|
16
|
+
* unbranded `Schema.String` ids so the SDK (which hands ids straight to
|
|
17
|
+
* URL builders, cookies, etc.) can accept them without casts.
|
|
18
|
+
*/
|
|
19
|
+
import { Schema } from 'effect';
|
|
20
|
+
/** Tokens issued by `/auth/login` / `/auth/token`. */
|
|
21
|
+
export declare const AuthTokens: Schema.Struct<{
|
|
22
|
+
accessToken: typeof Schema.String;
|
|
23
|
+
refreshToken: Schema.optional<typeof Schema.String>;
|
|
24
|
+
tokenType: Schema.optional<typeof Schema.String>;
|
|
25
|
+
expiresIn: Schema.optional<typeof Schema.Number>;
|
|
26
|
+
}>;
|
|
27
|
+
export type AuthTokens = typeof AuthTokens.Type;
|
|
28
|
+
export declare const SessionUser: Schema.Struct<{
|
|
29
|
+
id: Schema.brand<Schema.filter<typeof Schema.String>, "UserId">;
|
|
30
|
+
email: typeof Schema.String;
|
|
31
|
+
name: Schema.NullOr<typeof Schema.String>;
|
|
32
|
+
image: Schema.NullOr<typeof Schema.String>;
|
|
33
|
+
emailVerified: typeof Schema.Boolean;
|
|
34
|
+
}>;
|
|
35
|
+
export type SessionUser = typeof SessionUser.Type;
|
|
36
|
+
export declare const SignInInput: Schema.Struct<{
|
|
37
|
+
email: typeof Schema.String;
|
|
38
|
+
password: typeof Schema.String;
|
|
39
|
+
}>;
|
|
40
|
+
export type SignInInput = typeof SignInInput.Type;
|
|
41
|
+
/** Success path issues tokens; 2FA path redirects via `requiresTwoFactor`. */
|
|
42
|
+
export declare const SignInResult: Schema.Struct<{
|
|
43
|
+
requiresTwoFactor: Schema.optional<typeof Schema.Boolean>;
|
|
44
|
+
userId: Schema.optional<Schema.brand<Schema.filter<typeof Schema.String>, "UserId">>;
|
|
45
|
+
accessToken: Schema.optional<typeof Schema.String>;
|
|
46
|
+
refreshToken: Schema.optional<typeof Schema.String>;
|
|
47
|
+
tokenType: Schema.optional<typeof Schema.String>;
|
|
48
|
+
expiresIn: Schema.optional<typeof Schema.Number>;
|
|
49
|
+
}>;
|
|
50
|
+
export type SignInResult = typeof SignInResult.Type;
|
|
51
|
+
export declare const SignUpInput: Schema.Struct<{
|
|
52
|
+
email: typeof Schema.String;
|
|
53
|
+
password: typeof Schema.String;
|
|
54
|
+
name: Schema.optional<typeof Schema.String>;
|
|
55
|
+
}>;
|
|
56
|
+
export type SignUpInput = typeof SignUpInput.Type;
|
|
57
|
+
export declare const SignUpResult: Schema.Struct<{
|
|
58
|
+
userId: Schema.brand<Schema.filter<typeof Schema.String>, "UserId">;
|
|
59
|
+
email: typeof Schema.String;
|
|
60
|
+
emailVerified: typeof Schema.Boolean;
|
|
61
|
+
}>;
|
|
62
|
+
export type SignUpResult = typeof SignUpResult.Type;
|
|
63
|
+
export declare const SessionResult: Schema.Struct<{
|
|
64
|
+
user: Schema.NullOr<Schema.Struct<{
|
|
65
|
+
id: Schema.brand<Schema.filter<typeof Schema.String>, "UserId">;
|
|
66
|
+
email: typeof Schema.String;
|
|
67
|
+
name: Schema.NullOr<typeof Schema.String>;
|
|
68
|
+
image: Schema.NullOr<typeof Schema.String>;
|
|
69
|
+
emailVerified: typeof Schema.Boolean;
|
|
70
|
+
}>>;
|
|
71
|
+
}>;
|
|
72
|
+
export type SessionResult = typeof SessionResult.Type;
|
|
73
|
+
/** Minimal user returned inside login/token/register envelopes. */
|
|
74
|
+
export declare const AuthUser: Schema.Struct<{
|
|
75
|
+
id: typeof Schema.String;
|
|
76
|
+
email: typeof Schema.String;
|
|
77
|
+
name: Schema.NullOr<typeof Schema.String>;
|
|
78
|
+
image: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
79
|
+
emailVerified: Schema.optional<typeof Schema.Boolean>;
|
|
80
|
+
role: Schema.optional<typeof Schema.String>;
|
|
81
|
+
createdAt: Schema.optional<typeof Schema.String>;
|
|
82
|
+
}>;
|
|
83
|
+
export type AuthUser = typeof AuthUser.Type;
|
|
84
|
+
/** `POST /auth/login` request body. */
|
|
85
|
+
export declare const LoginRequest: Schema.Struct<{
|
|
86
|
+
email: typeof Schema.String;
|
|
87
|
+
password: typeof Schema.String;
|
|
88
|
+
}>;
|
|
89
|
+
export type LoginRequest = typeof LoginRequest.Type;
|
|
90
|
+
/**
|
|
91
|
+
* `POST /auth/login` response — discriminated on `requiresTwoFactor`.
|
|
92
|
+
*
|
|
93
|
+
* - `true`: caller must finish the 2FA flow via `POST /auth/verify-2fa`
|
|
94
|
+
* using the returned `userId`.
|
|
95
|
+
* - `false` / absent: tokens + user profile are returned directly.
|
|
96
|
+
*/
|
|
97
|
+
export declare const LoginResponse: Schema.Union<[Schema.Struct<{
|
|
98
|
+
requiresTwoFactor: Schema.Literal<[true]>;
|
|
99
|
+
userId: typeof Schema.String;
|
|
100
|
+
email: Schema.optional<typeof Schema.String>;
|
|
101
|
+
}>, Schema.Struct<{
|
|
102
|
+
requiresTwoFactor: Schema.optional<Schema.Literal<[false]>>;
|
|
103
|
+
accessToken: typeof Schema.String;
|
|
104
|
+
refreshToken: Schema.optional<typeof Schema.String>;
|
|
105
|
+
expiresIn: Schema.optional<typeof Schema.Number>;
|
|
106
|
+
user: Schema.optional<Schema.Struct<{
|
|
107
|
+
id: typeof Schema.String;
|
|
108
|
+
email: typeof Schema.String;
|
|
109
|
+
name: Schema.NullOr<typeof Schema.String>;
|
|
110
|
+
image: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
111
|
+
emailVerified: Schema.optional<typeof Schema.Boolean>;
|
|
112
|
+
role: Schema.optional<typeof Schema.String>;
|
|
113
|
+
createdAt: Schema.optional<typeof Schema.String>;
|
|
114
|
+
}>>;
|
|
115
|
+
}>]>;
|
|
116
|
+
export type LoginResponse = typeof LoginResponse.Type;
|
|
117
|
+
/**
|
|
118
|
+
* `POST /auth/register` request body — a superset of `SignUpInput` that
|
|
119
|
+
* accepts caller metadata and an optional invitation token.
|
|
120
|
+
*/
|
|
121
|
+
export declare const RegisterRequest: Schema.Struct<{
|
|
122
|
+
email: typeof Schema.String;
|
|
123
|
+
password: typeof Schema.String;
|
|
124
|
+
name: Schema.optional<typeof Schema.String>;
|
|
125
|
+
metadata: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.Unknown>>;
|
|
126
|
+
invitationToken: Schema.optional<typeof Schema.String>;
|
|
127
|
+
}>;
|
|
128
|
+
export type RegisterRequest = typeof RegisterRequest.Type;
|
|
129
|
+
/** `POST /auth/register` response — email-verification envelope. */
|
|
130
|
+
export declare const RegisterResponse: Schema.Struct<{
|
|
131
|
+
requiresVerification: Schema.optional<typeof Schema.Boolean>;
|
|
132
|
+
message: Schema.optional<typeof Schema.String>;
|
|
133
|
+
user: Schema.Struct<{
|
|
134
|
+
id: typeof Schema.String;
|
|
135
|
+
email: typeof Schema.String;
|
|
136
|
+
name: Schema.NullOr<typeof Schema.String>;
|
|
137
|
+
}>;
|
|
138
|
+
}>;
|
|
139
|
+
export type RegisterResponse = typeof RegisterResponse.Type;
|
|
140
|
+
/**
|
|
141
|
+
* Token-issuing response shared by `/auth/token`, `/auth/verify-2fa`,
|
|
142
|
+
* `/auth/switch-org`. `user` is surfaced for SDK convenience (hydrating the
|
|
143
|
+
* local session immediately after issuance).
|
|
144
|
+
*/
|
|
145
|
+
export declare const AuthTokensResponse: Schema.Struct<{
|
|
146
|
+
accessToken: typeof Schema.String;
|
|
147
|
+
refreshToken: typeof Schema.String;
|
|
148
|
+
expiresIn: Schema.optional<typeof Schema.Number>;
|
|
149
|
+
tokenType: Schema.optional<typeof Schema.String>;
|
|
150
|
+
user: Schema.optional<Schema.Struct<{
|
|
151
|
+
id: typeof Schema.String;
|
|
152
|
+
email: typeof Schema.String;
|
|
153
|
+
name: Schema.NullOr<typeof Schema.String>;
|
|
154
|
+
image: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
155
|
+
emailVerified: Schema.optional<typeof Schema.Boolean>;
|
|
156
|
+
role: Schema.optional<typeof Schema.String>;
|
|
157
|
+
createdAt: Schema.optional<typeof Schema.String>;
|
|
158
|
+
}>>;
|
|
159
|
+
}>;
|
|
160
|
+
export type AuthTokensResponse = typeof AuthTokensResponse.Type;
|
|
161
|
+
/**
|
|
162
|
+
* `POST /auth/verify-2fa` request body.
|
|
163
|
+
*
|
|
164
|
+
* The OpenAPI spec lists `code` only (post-login flow where the server has
|
|
165
|
+
* the user bound to the challenge session). The SDK uses an extended shape
|
|
166
|
+
* including `userId` for the stateless public flow — both are accepted.
|
|
167
|
+
*/
|
|
168
|
+
export declare const TwoFactorVerifyRequest: Schema.Struct<{
|
|
169
|
+
userId: Schema.optional<typeof Schema.String>;
|
|
170
|
+
code: typeof Schema.String;
|
|
171
|
+
}>;
|
|
172
|
+
export type TwoFactorVerifyRequest = typeof TwoFactorVerifyRequest.Type;
|
|
173
|
+
/** `GET /auth/me` response — full profile with verification + timestamps. */
|
|
174
|
+
export declare const UserFullProfile: Schema.Struct<{
|
|
175
|
+
id: typeof Schema.String;
|
|
176
|
+
email: typeof Schema.String;
|
|
177
|
+
name: Schema.NullOr<typeof Schema.String>;
|
|
178
|
+
image: Schema.NullOr<typeof Schema.String>;
|
|
179
|
+
emailVerified: Schema.optional<typeof Schema.Boolean>;
|
|
180
|
+
createdAt: Schema.optional<typeof Schema.String>;
|
|
181
|
+
}>;
|
|
182
|
+
export type UserFullProfile = typeof UserFullProfile.Type;
|
|
183
|
+
/**
|
|
184
|
+
* `POST /auth/device` request body — initiate a device authorization
|
|
185
|
+
* grant per RFC 8628 §3.1.
|
|
186
|
+
*/
|
|
187
|
+
export declare const DeviceInitRequest: Schema.Struct<{
|
|
188
|
+
/**
|
|
189
|
+
* Client identifier — must match a well-known client registered on
|
|
190
|
+
* the BaaS plane. Phase 2a hard-codes `sylphx-cli` as the only
|
|
191
|
+
* allow-listed value; Phase 5.1 replaces the allow-list with the
|
|
192
|
+
* `oauth_clients` DB registry (ADR-086).
|
|
193
|
+
*/
|
|
194
|
+
client_id: typeof Schema.String;
|
|
195
|
+
/**
|
|
196
|
+
* Space- or array-delimited OAuth scopes the client is requesting.
|
|
197
|
+
* Phase 2a accepts any scope shape; Phase 5.1 will validate against
|
|
198
|
+
* the client's registered scope set.
|
|
199
|
+
*/
|
|
200
|
+
scope: Schema.optional<Schema.Array$<typeof Schema.String>>;
|
|
201
|
+
}>;
|
|
202
|
+
export type DeviceInitRequest = typeof DeviceInitRequest.Type;
|
|
203
|
+
/**
|
|
204
|
+
* `POST /auth/device` response — grant issued per RFC 8628 §3.2.
|
|
205
|
+
*
|
|
206
|
+
* `device_code` is the CLI's private reference (opaque bearer);
|
|
207
|
+
* `user_code` is the short human-readable code the user enters on the
|
|
208
|
+
* verification page.
|
|
209
|
+
*/
|
|
210
|
+
export declare const DeviceInitResponse: Schema.Struct<{
|
|
211
|
+
device_code: typeof Schema.String;
|
|
212
|
+
user_code: typeof Schema.String;
|
|
213
|
+
verification_uri: typeof Schema.String;
|
|
214
|
+
verification_uri_complete: typeof Schema.String;
|
|
215
|
+
expires_in: typeof Schema.Number;
|
|
216
|
+
interval: typeof Schema.Number;
|
|
217
|
+
}>;
|
|
218
|
+
export type DeviceInitResponse = typeof DeviceInitResponse.Type;
|
|
219
|
+
/**
|
|
220
|
+
* `GET /auth/device/poll?device_code=…` response.
|
|
221
|
+
*
|
|
222
|
+
* Mirrors the RFC 8628 §3.5 polling token-endpoint response but in a
|
|
223
|
+
* single envelope so the SDK can discriminate on `status` without
|
|
224
|
+
* needing a second round-trip to the RFC 6749 token endpoint. Phase
|
|
225
|
+
* 5.1 will add a strict RFC 6749 `/oauth/token` endpoint that callers
|
|
226
|
+
* MAY hit instead when they prefer the canonical shape.
|
|
227
|
+
*/
|
|
228
|
+
export declare const DevicePollResponse: Schema.Union<[Schema.Struct<{
|
|
229
|
+
status: Schema.Literal<["pending"]>;
|
|
230
|
+
}>, Schema.Struct<{
|
|
231
|
+
status: Schema.Literal<["approved"]>;
|
|
232
|
+
access_token: typeof Schema.String;
|
|
233
|
+
refresh_token: typeof Schema.String;
|
|
234
|
+
token_type: Schema.Literal<["Bearer"]>;
|
|
235
|
+
expires_in: typeof Schema.Number;
|
|
236
|
+
refresh_expires_at: typeof Schema.String;
|
|
237
|
+
}>, Schema.Struct<{
|
|
238
|
+
status: Schema.Literal<["denied"]>;
|
|
239
|
+
}>, Schema.Struct<{
|
|
240
|
+
status: Schema.Literal<["expired"]>;
|
|
241
|
+
}>]>;
|
|
242
|
+
export type DevicePollResponse = typeof DevicePollResponse.Type;
|
|
243
|
+
/**
|
|
244
|
+
* `POST /auth/device/approve` request body — browser leg, user-facing.
|
|
245
|
+
*
|
|
246
|
+
* Called from the Console's verification page after the user clicks
|
|
247
|
+
* Authorize. Cookie-session auth identifies the approving user;
|
|
248
|
+
* `user_code` is the short public code the user typed / confirmed on
|
|
249
|
+
* the verification page.
|
|
250
|
+
*/
|
|
251
|
+
export declare const DeviceApproveRequest: Schema.Struct<{
|
|
252
|
+
user_code: typeof Schema.String;
|
|
253
|
+
}>;
|
|
254
|
+
export type DeviceApproveRequest = typeof DeviceApproveRequest.Type;
|
|
255
|
+
/**
|
|
256
|
+
* `POST /auth/device/approve` response — confirmation envelope.
|
|
257
|
+
* The CLI picks up the tokens on its next `/auth/device/poll` call.
|
|
258
|
+
*/
|
|
259
|
+
export declare const DeviceApproveResponse: Schema.Struct<{
|
|
260
|
+
success: Schema.Literal<[true]>;
|
|
261
|
+
}>;
|
|
262
|
+
export type DeviceApproveResponse = typeof DeviceApproveResponse.Type;
|
|
263
|
+
/**
|
|
264
|
+
* `POST /auth/device/deny` request body — same shape as approve.
|
|
265
|
+
*/
|
|
266
|
+
export declare const DeviceDenyRequest: Schema.Struct<{
|
|
267
|
+
user_code: typeof Schema.String;
|
|
268
|
+
}>;
|
|
269
|
+
export type DeviceDenyRequest = typeof DeviceDenyRequest.Type;
|
|
270
|
+
/**
|
|
271
|
+
* `POST /auth/device/deny` response.
|
|
272
|
+
*/
|
|
273
|
+
export declare const DeviceDenyResponse: Schema.Struct<{
|
|
274
|
+
success: Schema.Literal<[true]>;
|
|
275
|
+
}>;
|
|
276
|
+
export type DeviceDenyResponse = typeof DeviceDenyResponse.Type;
|
|
277
|
+
/**
|
|
278
|
+
* `authorization_code` grant body — RFC 6749 §4.1.3 + RFC 7636.
|
|
279
|
+
*/
|
|
280
|
+
export declare const OAuthTokenAuthorizationCodeRequest: Schema.Struct<{
|
|
281
|
+
grant_type: Schema.Literal<["authorization_code"]>;
|
|
282
|
+
code: typeof Schema.String;
|
|
283
|
+
redirect_uri: typeof Schema.String;
|
|
284
|
+
client_id: typeof Schema.String;
|
|
285
|
+
client_secret: Schema.optional<typeof Schema.String>;
|
|
286
|
+
code_verifier: typeof Schema.String;
|
|
287
|
+
}>;
|
|
288
|
+
/**
|
|
289
|
+
* `refresh_token` grant body — RFC 6749 §6. Rotation is mandatory on the
|
|
290
|
+
* server side; clients simply present their current refresh_token.
|
|
291
|
+
*/
|
|
292
|
+
export declare const OAuthTokenRefreshRequest: Schema.Struct<{
|
|
293
|
+
grant_type: Schema.Literal<["refresh_token"]>;
|
|
294
|
+
refresh_token: typeof Schema.String;
|
|
295
|
+
client_id: typeof Schema.String;
|
|
296
|
+
client_secret: Schema.optional<typeof Schema.String>;
|
|
297
|
+
scope: Schema.optional<typeof Schema.String>;
|
|
298
|
+
}>;
|
|
299
|
+
/**
|
|
300
|
+
* `device_code` grant body — RFC 8628 §3.4. Client auth is registry-driven;
|
|
301
|
+
* public clients present `client_id` only, confidential clients add
|
|
302
|
+
* `client_secret`.
|
|
303
|
+
*/
|
|
304
|
+
export declare const OAuthTokenDeviceCodeRequest: Schema.Struct<{
|
|
305
|
+
grant_type: Schema.Literal<["urn:ietf:params:oauth:grant-type:device_code"]>;
|
|
306
|
+
device_code: typeof Schema.String;
|
|
307
|
+
client_id: typeof Schema.String;
|
|
308
|
+
client_secret: Schema.optional<typeof Schema.String>;
|
|
309
|
+
}>;
|
|
310
|
+
/**
|
|
311
|
+
* `client_credentials` grant body — RFC 6749 §4.4. Confidential clients
|
|
312
|
+
* only; `client_secret` is mandatory.
|
|
313
|
+
*/
|
|
314
|
+
export declare const OAuthTokenClientCredentialsRequest: Schema.Struct<{
|
|
315
|
+
grant_type: Schema.Literal<["client_credentials"]>;
|
|
316
|
+
client_id: typeof Schema.String;
|
|
317
|
+
client_secret: typeof Schema.String;
|
|
318
|
+
scope: Schema.optional<typeof Schema.String>;
|
|
319
|
+
}>;
|
|
320
|
+
/**
|
|
321
|
+
* Union of every token-endpoint request shape. Discriminated by
|
|
322
|
+
* `grant_type` — new grants join the union, never replace an existing
|
|
323
|
+
* variant. Rejected grant types return an RFC 6749 §5.2 error envelope
|
|
324
|
+
* with `error='unsupported_grant_type'`.
|
|
325
|
+
*/
|
|
326
|
+
export declare const OAuthTokenRequest: Schema.Union<[Schema.Struct<{
|
|
327
|
+
grant_type: Schema.Literal<["authorization_code"]>;
|
|
328
|
+
code: typeof Schema.String;
|
|
329
|
+
redirect_uri: typeof Schema.String;
|
|
330
|
+
client_id: typeof Schema.String;
|
|
331
|
+
client_secret: Schema.optional<typeof Schema.String>;
|
|
332
|
+
code_verifier: typeof Schema.String;
|
|
333
|
+
}>, Schema.Struct<{
|
|
334
|
+
grant_type: Schema.Literal<["refresh_token"]>;
|
|
335
|
+
refresh_token: typeof Schema.String;
|
|
336
|
+
client_id: typeof Schema.String;
|
|
337
|
+
client_secret: Schema.optional<typeof Schema.String>;
|
|
338
|
+
scope: Schema.optional<typeof Schema.String>;
|
|
339
|
+
}>, Schema.Struct<{
|
|
340
|
+
grant_type: Schema.Literal<["urn:ietf:params:oauth:grant-type:device_code"]>;
|
|
341
|
+
device_code: typeof Schema.String;
|
|
342
|
+
client_id: typeof Schema.String;
|
|
343
|
+
client_secret: Schema.optional<typeof Schema.String>;
|
|
344
|
+
}>, Schema.Struct<{
|
|
345
|
+
grant_type: Schema.Literal<["client_credentials"]>;
|
|
346
|
+
client_id: typeof Schema.String;
|
|
347
|
+
client_secret: typeof Schema.String;
|
|
348
|
+
scope: Schema.optional<typeof Schema.String>;
|
|
349
|
+
}>]>;
|
|
350
|
+
export type OAuthTokenRequest = typeof OAuthTokenRequest.Type;
|
|
351
|
+
/**
|
|
352
|
+
* Successful `/oauth/token` response carrying access + refresh token pair.
|
|
353
|
+
* Used by `authorization_code`, `refresh_token`, and `device_code` grants.
|
|
354
|
+
*/
|
|
355
|
+
export declare const OAuthTokenResponse: Schema.Struct<{
|
|
356
|
+
access_token: typeof Schema.String;
|
|
357
|
+
token_type: Schema.Literal<["Bearer"]>;
|
|
358
|
+
expires_in: typeof Schema.Number;
|
|
359
|
+
refresh_token: typeof Schema.String;
|
|
360
|
+
scope: typeof Schema.String;
|
|
361
|
+
}>;
|
|
362
|
+
export type OAuthTokenResponse = typeof OAuthTokenResponse.Type;
|
|
363
|
+
/**
|
|
364
|
+
* `client_credentials` success response — RFC 6749 §4.4.3 forbids refresh
|
|
365
|
+
* tokens on this grant, so the envelope is deliberately narrower.
|
|
366
|
+
*/
|
|
367
|
+
export declare const OAuthClientCredentialsResponse: Schema.Struct<{
|
|
368
|
+
access_token: typeof Schema.String;
|
|
369
|
+
token_type: Schema.Literal<["Bearer"]>;
|
|
370
|
+
expires_in: typeof Schema.Number;
|
|
371
|
+
scope: typeof Schema.String;
|
|
372
|
+
}>;
|
|
373
|
+
export type OAuthClientCredentialsResponse = typeof OAuthClientCredentialsResponse.Type;
|
|
374
|
+
/**
|
|
375
|
+
* RFC 6749 §5.2 error codes + RFC 8628 §3.5 polling codes. One closed
|
|
376
|
+
* enumeration — SDK callers pattern-match on this value to choose the
|
|
377
|
+
* next action (retry / abort / re-auth).
|
|
378
|
+
*/
|
|
379
|
+
export declare const OAuthTokenErrorCode: Schema.Literal<["invalid_request", "invalid_client", "invalid_grant", "unauthorized_client", "unsupported_grant_type", "invalid_scope", "authorization_pending", "slow_down", "access_denied", "expired_token"]>;
|
|
380
|
+
export type OAuthTokenErrorCode = typeof OAuthTokenErrorCode.Type;
|
|
381
|
+
/**
|
|
382
|
+
* RFC 6749 §5.2 error envelope. Surfaced with HTTP 400 (or 401 when a
|
|
383
|
+
* Basic auth header was presented with bad credentials).
|
|
384
|
+
*/
|
|
385
|
+
export declare const OAuthTokenErrorResponse: Schema.Struct<{
|
|
386
|
+
error: Schema.Literal<["invalid_request", "invalid_client", "invalid_grant", "unauthorized_client", "unsupported_grant_type", "invalid_scope", "authorization_pending", "slow_down", "access_denied", "expired_token"]>;
|
|
387
|
+
error_description: Schema.optional<typeof Schema.String>;
|
|
388
|
+
error_uri: Schema.optional<typeof Schema.String>;
|
|
389
|
+
}>;
|
|
390
|
+
export type OAuthTokenErrorResponse = typeof OAuthTokenErrorResponse.Type;
|
|
391
|
+
/**
|
|
392
|
+
* `/oauth/revoke` request body — RFC 7009 §2.1.
|
|
393
|
+
*/
|
|
394
|
+
export declare const OAuthRevokeRequest: Schema.Struct<{
|
|
395
|
+
token: typeof Schema.String;
|
|
396
|
+
token_type_hint: Schema.optional<Schema.Literal<["access_token", "refresh_token"]>>;
|
|
397
|
+
client_id: typeof Schema.String;
|
|
398
|
+
client_secret: Schema.optional<typeof Schema.String>;
|
|
399
|
+
}>;
|
|
400
|
+
export type OAuthRevokeRequest = typeof OAuthRevokeRequest.Type;
|
|
401
|
+
/**
|
|
402
|
+
* `/oauth/revoke` success response — per §2.2 an empty body. Modelled as
|
|
403
|
+
* an empty struct so the SDK has a typed `void`-equivalent to await.
|
|
404
|
+
*/
|
|
405
|
+
export declare const OAuthRevokeResponse: Schema.Struct<{}>;
|
|
406
|
+
export type OAuthRevokeResponse = typeof OAuthRevokeResponse.Type;
|
|
407
|
+
/**
|
|
408
|
+
* `/oauth/introspect` request body — RFC 7662 §2.1. Same auth model as
|
|
409
|
+
* `/oauth/revoke` (client_id + optional client_secret, or Basic header).
|
|
410
|
+
*/
|
|
411
|
+
export declare const OAuthIntrospectRequest: Schema.Struct<{
|
|
412
|
+
token: typeof Schema.String;
|
|
413
|
+
token_type_hint: Schema.optional<Schema.Literal<["access_token", "refresh_token"]>>;
|
|
414
|
+
client_id: typeof Schema.String;
|
|
415
|
+
client_secret: Schema.optional<typeof Schema.String>;
|
|
416
|
+
}>;
|
|
417
|
+
export type OAuthIntrospectRequest = typeof OAuthIntrospectRequest.Type;
|
|
418
|
+
/**
|
|
419
|
+
* `/oauth/introspect` response — RFC 7662 §2.2. Only `active` is required.
|
|
420
|
+
* Inactive responses carry ONLY `{ active: false }` per §4; populated
|
|
421
|
+
* responses echo the token's claims (scope, client_id, username, etc.).
|
|
422
|
+
*/
|
|
423
|
+
export declare const OAuthIntrospectResponse: Schema.Struct<{
|
|
424
|
+
active: typeof Schema.Boolean;
|
|
425
|
+
scope: Schema.optional<typeof Schema.String>;
|
|
426
|
+
client_id: Schema.optional<typeof Schema.String>;
|
|
427
|
+
username: Schema.optional<typeof Schema.String>;
|
|
428
|
+
token_type: Schema.optional<Schema.Literal<["Bearer"]>>;
|
|
429
|
+
exp: Schema.optional<typeof Schema.Number>;
|
|
430
|
+
iat: Schema.optional<typeof Schema.Number>;
|
|
431
|
+
nbf: Schema.optional<typeof Schema.Number>;
|
|
432
|
+
sub: Schema.optional<typeof Schema.String>;
|
|
433
|
+
aud: Schema.optional<Schema.Union<[typeof Schema.String, Schema.Array$<typeof Schema.String>]>>;
|
|
434
|
+
iss: Schema.optional<typeof Schema.String>;
|
|
435
|
+
jti: Schema.optional<typeof Schema.String>;
|
|
436
|
+
}>;
|
|
437
|
+
export type OAuthIntrospectResponse = typeof OAuthIntrospectResponse.Type;
|
|
438
|
+
/**
|
|
439
|
+
* A single platform-plane session row as surfaced to the client.
|
|
440
|
+
*
|
|
441
|
+
* `id` is the prefixed TypeID (`sess_*`) — the BaaS route encodes the
|
|
442
|
+
* underlying UUID on the way out. Consumers must pass this back
|
|
443
|
+
* verbatim on the revoke/rename endpoints; the BaaS side accepts both
|
|
444
|
+
* forms via `parseIdOrError` but the canonical wire representation is
|
|
445
|
+
* prefixed.
|
|
446
|
+
*/
|
|
447
|
+
export declare const PlatformSession: Schema.Struct<{
|
|
448
|
+
id: typeof Schema.String;
|
|
449
|
+
name: Schema.NullOr<typeof Schema.String>;
|
|
450
|
+
ipAddress: Schema.NullOr<typeof Schema.String>;
|
|
451
|
+
userAgent: Schema.NullOr<typeof Schema.String>;
|
|
452
|
+
createdAt: typeof Schema.String;
|
|
453
|
+
lastActiveAt: Schema.NullOr<typeof Schema.String>;
|
|
454
|
+
isCurrent: typeof Schema.Boolean;
|
|
455
|
+
}>;
|
|
456
|
+
export type PlatformSession = typeof PlatformSession.Type;
|
|
457
|
+
/**
|
|
458
|
+
* `GET /auth/platform-sessions` — list envelope.
|
|
459
|
+
*
|
|
460
|
+
* Ordering: most-recently-active first (descending `lastActiveAt`).
|
|
461
|
+
* Matches the pre-existing Platform `GetSessionsResult` shape so the
|
|
462
|
+
* migration is a drop-in on the caller side.
|
|
463
|
+
*/
|
|
464
|
+
export declare const PlatformSessionsListResponse: Schema.Struct<{
|
|
465
|
+
sessions: Schema.Array$<Schema.Struct<{
|
|
466
|
+
id: typeof Schema.String;
|
|
467
|
+
name: Schema.NullOr<typeof Schema.String>;
|
|
468
|
+
ipAddress: Schema.NullOr<typeof Schema.String>;
|
|
469
|
+
userAgent: Schema.NullOr<typeof Schema.String>;
|
|
470
|
+
createdAt: typeof Schema.String;
|
|
471
|
+
lastActiveAt: Schema.NullOr<typeof Schema.String>;
|
|
472
|
+
isCurrent: typeof Schema.Boolean;
|
|
473
|
+
}>>;
|
|
474
|
+
}>;
|
|
475
|
+
export type PlatformSessionsListResponse = typeof PlatformSessionsListResponse.Type;
|
|
476
|
+
/**
|
|
477
|
+
* `POST /auth/platform-sessions/revoke` — revoke one session.
|
|
478
|
+
*
|
|
479
|
+
* `sessionId` accepts either the prefixed TypeID (`sess_*`, preferred)
|
|
480
|
+
* or the raw UUID — the BaaS side normalises via `parseIdOrError`.
|
|
481
|
+
*/
|
|
482
|
+
export declare const PlatformSessionRevokeRequest: Schema.Struct<{
|
|
483
|
+
sessionId: typeof Schema.String;
|
|
484
|
+
}>;
|
|
485
|
+
export type PlatformSessionRevokeRequest = typeof PlatformSessionRevokeRequest.Type;
|
|
486
|
+
export declare const PlatformSessionRevokeResponse: Schema.Struct<{
|
|
487
|
+
success: Schema.Literal<[true]>;
|
|
488
|
+
}>;
|
|
489
|
+
export type PlatformSessionRevokeResponse = typeof PlatformSessionRevokeResponse.Type;
|
|
490
|
+
/**
|
|
491
|
+
* `POST /auth/platform-sessions/revoke-other` — revoke every session
|
|
492
|
+
* except the one presenting the current access token.
|
|
493
|
+
*
|
|
494
|
+
* When the token carries no `sid` claim (pure-Bearer CLI/CI flows),
|
|
495
|
+
* every session for the user is revoked — equivalent to `revoke-all`.
|
|
496
|
+
*/
|
|
497
|
+
export declare const PlatformSessionRevokeOtherResponse: Schema.Struct<{
|
|
498
|
+
revokedCount: typeof Schema.Number;
|
|
499
|
+
}>;
|
|
500
|
+
export type PlatformSessionRevokeOtherResponse = typeof PlatformSessionRevokeOtherResponse.Type;
|
|
501
|
+
/**
|
|
502
|
+
* `POST /auth/platform-sessions/revoke-all` — revoke every session for
|
|
503
|
+
* the user, including the caller's own. Used by "sign me out
|
|
504
|
+
* everywhere" after a password change or a compromise scare.
|
|
505
|
+
*/
|
|
506
|
+
export declare const PlatformSessionRevokeAllResponse: Schema.Struct<{
|
|
507
|
+
success: Schema.Literal<[true]>;
|
|
508
|
+
count: typeof Schema.Number;
|
|
509
|
+
}>;
|
|
510
|
+
export type PlatformSessionRevokeAllResponse = typeof PlatformSessionRevokeAllResponse.Type;
|
|
511
|
+
/**
|
|
512
|
+
* `POST /auth/platform-sessions/rename` — update the user-visible
|
|
513
|
+
* device label on a session row.
|
|
514
|
+
*/
|
|
515
|
+
export declare const PlatformSessionRenameRequest: Schema.Struct<{
|
|
516
|
+
sessionId: typeof Schema.String;
|
|
517
|
+
name: typeof Schema.String;
|
|
518
|
+
}>;
|
|
519
|
+
export type PlatformSessionRenameRequest = typeof PlatformSessionRenameRequest.Type;
|
|
520
|
+
export declare const PlatformSessionRenameResponse: Schema.Struct<{
|
|
521
|
+
success: Schema.Literal<[true]>;
|
|
522
|
+
}>;
|
|
523
|
+
export type PlatformSessionRenameResponse = typeof PlatformSessionRenameResponse.Type;
|
|
524
|
+
/**
|
|
525
|
+
* `GET /auth/platform-password/status` — whether the authenticated user
|
|
526
|
+
* has a password set. OAuth-only users return `{ hasPassword: false }`.
|
|
527
|
+
*/
|
|
528
|
+
export declare const PlatformPasswordStatusResponse: Schema.Struct<{
|
|
529
|
+
hasPassword: typeof Schema.Boolean;
|
|
530
|
+
}>;
|
|
531
|
+
export type PlatformPasswordStatusResponse = typeof PlatformPasswordStatusResponse.Type;
|
|
532
|
+
/**
|
|
533
|
+
* `POST /auth/platform-password/set` — initial password for users that
|
|
534
|
+
* don't have one (signed up via OAuth, never set a local password).
|
|
535
|
+
*
|
|
536
|
+
* BaaS enforces the 8-char minimum and the have-i-been-pwned breach check
|
|
537
|
+
* server-side; Platform callers just forward the plaintext.
|
|
538
|
+
*/
|
|
539
|
+
export declare const PlatformPasswordSetRequest: Schema.Struct<{
|
|
540
|
+
password: typeof Schema.String;
|
|
541
|
+
}>;
|
|
542
|
+
export type PlatformPasswordSetRequest = typeof PlatformPasswordSetRequest.Type;
|
|
543
|
+
export declare const PlatformPasswordSetResponse: Schema.Struct<{
|
|
544
|
+
success: Schema.Literal<[true]>;
|
|
545
|
+
}>;
|
|
546
|
+
export type PlatformPasswordSetResponse = typeof PlatformPasswordSetResponse.Type;
|
|
547
|
+
/**
|
|
548
|
+
* `POST /auth/platform-password/change` — change an existing password.
|
|
549
|
+
*
|
|
550
|
+
* `currentPassword` verification happens server-side via
|
|
551
|
+
* `verifyPasswordEffect`; a mismatch returns 401 UNAUTHORIZED. Users
|
|
552
|
+
* that are OAuth-only (no `passwordHash`) receive a 400 so the UI can
|
|
553
|
+
* redirect them to `set`.
|
|
554
|
+
*/
|
|
555
|
+
export declare const PlatformPasswordChangeRequest: Schema.Struct<{
|
|
556
|
+
currentPassword: typeof Schema.String;
|
|
557
|
+
newPassword: typeof Schema.String;
|
|
558
|
+
}>;
|
|
559
|
+
export type PlatformPasswordChangeRequest = typeof PlatformPasswordChangeRequest.Type;
|
|
560
|
+
export declare const PlatformPasswordChangeResponse: Schema.Struct<{
|
|
561
|
+
success: Schema.Literal<[true]>;
|
|
562
|
+
}>;
|
|
563
|
+
export type PlatformPasswordChangeResponse = typeof PlatformPasswordChangeResponse.Type;
|
|
564
|
+
/**
|
|
565
|
+
* `GET /auth/platform-user/export` — GDPR data-portability envelope.
|
|
566
|
+
*
|
|
567
|
+
* Deliberately permissive — the export contains per-project data that
|
|
568
|
+
* varies by customer provisioning (storage files, project memberships,
|
|
569
|
+
* subscription rows). Platform callers pass the whole record through
|
|
570
|
+
* to the user verbatim; the Console renders it as a JSON download.
|
|
571
|
+
*/
|
|
572
|
+
export declare const AuthUserExportResponse: Schema.Record$<typeof Schema.String, typeof Schema.Unknown>;
|
|
573
|
+
export type AuthUserExportResponse = typeof AuthUserExportResponse.Type;
|
|
574
|
+
/**
|
|
575
|
+
* `DELETE /auth/platform-user/account` — GDPR right-to-erasure request.
|
|
576
|
+
*
|
|
577
|
+
* `reason` is optional operator context (`user_request` / `admin_action`
|
|
578
|
+
* / `account_violation`); the BaaS route defaults to `user_request`.
|
|
579
|
+
* Production hardening (WebAuthn step-up challenge) lands in Phase 5.11 —
|
|
580
|
+
* see the handler TODO.
|
|
581
|
+
*/
|
|
582
|
+
export declare const AuthUserDeleteRequest: Schema.Struct<{
|
|
583
|
+
reason: Schema.optional<typeof Schema.String>;
|
|
584
|
+
}>;
|
|
585
|
+
export type AuthUserDeleteRequest = typeof AuthUserDeleteRequest.Type;
|
|
586
|
+
/**
|
|
587
|
+
* `DELETE /auth/platform-user/account` response.
|
|
588
|
+
*
|
|
589
|
+
* `deletedData` is the string list of resource kinds actually erased
|
|
590
|
+
* (sessions, oauthAccounts, projectUsers, storageFiles, …). Mirrors the
|
|
591
|
+
* `UserDeletionResult.deletedData` surface from the core helper but
|
|
592
|
+
* flattened to a string array — the per-kind counts are audit-log
|
|
593
|
+
* payload only.
|
|
594
|
+
*/
|
|
595
|
+
export declare const AuthUserDeleteResponse: Schema.Struct<{
|
|
596
|
+
success: typeof Schema.Boolean;
|
|
597
|
+
deletedData: Schema.Array$<typeof Schema.String>;
|
|
598
|
+
}>;
|
|
599
|
+
export type AuthUserDeleteResponse = typeof AuthUserDeleteResponse.Type;
|
|
600
|
+
/** Scope taxonomy — matches `audit_logs.scope` CHECK on the DB side. */
|
|
601
|
+
export declare const AuditScopeLiteral: Schema.Literal<["platform-ops", "project-ops", "app-events"]>;
|
|
602
|
+
export type AuditScopeLiteral = typeof AuditScopeLiteral.Type;
|
|
603
|
+
/**
|
|
604
|
+
* `GET /audit/query` — filter envelope. All fields optional
|
|
605
|
+
* except `limit` (default 100, max 500). `from` / `to` are ISO-8601 UTC;
|
|
606
|
+
* `cursor` paginates; `scope` narrows to one plane (caller role must
|
|
607
|
+
* include it — see scope enforcement notes above).
|
|
608
|
+
*/
|
|
609
|
+
export declare const PlatformAuditQueryRequest: Schema.Struct<{
|
|
610
|
+
scope: Schema.optional<Schema.Literal<["platform-ops", "project-ops", "app-events"]>>;
|
|
611
|
+
actor: Schema.optional<typeof Schema.String>;
|
|
612
|
+
resourceType: Schema.optional<typeof Schema.String>;
|
|
613
|
+
resourceId: Schema.optional<typeof Schema.String>;
|
|
614
|
+
action: Schema.optional<typeof Schema.String>;
|
|
615
|
+
from: Schema.optional<typeof Schema.String>;
|
|
616
|
+
to: Schema.optional<typeof Schema.String>;
|
|
617
|
+
cursor: Schema.optional<typeof Schema.String>;
|
|
618
|
+
limit: Schema.optional<typeof Schema.Number>;
|
|
619
|
+
}>;
|
|
620
|
+
export type PlatformAuditQueryRequest = typeof PlatformAuditQueryRequest.Type;
|
|
621
|
+
/** One audit row as surfaced to the query client. Hashes are hex-encoded. */
|
|
622
|
+
export declare const PlatformAuditEvent: Schema.Struct<{
|
|
623
|
+
id: typeof Schema.String;
|
|
624
|
+
ts: typeof Schema.String;
|
|
625
|
+
scope: Schema.Literal<["platform-ops", "project-ops", "app-events"]>;
|
|
626
|
+
actor: Schema.NullOr<typeof Schema.String>;
|
|
627
|
+
user: Schema.NullOr<typeof Schema.String>;
|
|
628
|
+
orgId: Schema.NullOr<typeof Schema.String>;
|
|
629
|
+
projectId: Schema.NullOr<typeof Schema.String>;
|
|
630
|
+
resourceType: typeof Schema.String;
|
|
631
|
+
resourceId: Schema.NullOr<typeof Schema.String>;
|
|
632
|
+
action: typeof Schema.String;
|
|
633
|
+
metadata: Schema.NullOr<Schema.Record$<typeof Schema.String, typeof Schema.Unknown>>;
|
|
634
|
+
prevHashHex: Schema.NullOr<typeof Schema.String>;
|
|
635
|
+
rowHashHex: Schema.NullOr<typeof Schema.String>;
|
|
636
|
+
}>;
|
|
637
|
+
export type PlatformAuditEvent = typeof PlatformAuditEvent.Type;
|
|
638
|
+
/**
|
|
639
|
+
* Response envelope — paginated events + chain-verification flag.
|
|
640
|
+
*
|
|
641
|
+
* `chainVerified` is `true` when every returned row's `prev_hash` equals
|
|
642
|
+
* the preceding row's `row_hash` (rows returned in chain order). It MAY
|
|
643
|
+
* be `false` when a range query skips a row (rare; not corruption) —
|
|
644
|
+
* the field is advisory for the client, the ground-truth verifier is
|
|
645
|
+
* `scripts/check-audit-hash-chain.ts --nightly`.
|
|
646
|
+
*/
|
|
647
|
+
export declare const PlatformAuditQueryResponse: Schema.Struct<{
|
|
648
|
+
events: Schema.Array$<Schema.Struct<{
|
|
649
|
+
id: typeof Schema.String;
|
|
650
|
+
ts: typeof Schema.String;
|
|
651
|
+
scope: Schema.Literal<["platform-ops", "project-ops", "app-events"]>;
|
|
652
|
+
actor: Schema.NullOr<typeof Schema.String>;
|
|
653
|
+
user: Schema.NullOr<typeof Schema.String>;
|
|
654
|
+
orgId: Schema.NullOr<typeof Schema.String>;
|
|
655
|
+
projectId: Schema.NullOr<typeof Schema.String>;
|
|
656
|
+
resourceType: typeof Schema.String;
|
|
657
|
+
resourceId: Schema.NullOr<typeof Schema.String>;
|
|
658
|
+
action: typeof Schema.String;
|
|
659
|
+
metadata: Schema.NullOr<Schema.Record$<typeof Schema.String, typeof Schema.Unknown>>;
|
|
660
|
+
prevHashHex: Schema.NullOr<typeof Schema.String>;
|
|
661
|
+
rowHashHex: Schema.NullOr<typeof Schema.String>;
|
|
662
|
+
}>>;
|
|
663
|
+
nextCursor: Schema.NullOr<typeof Schema.String>;
|
|
664
|
+
chainVerified: typeof Schema.Boolean;
|
|
665
|
+
}>;
|
|
666
|
+
export type PlatformAuditQueryResponse = typeof PlatformAuditQueryResponse.Type;
|
|
667
|
+
/** Scope taxonomy — mirrors `RATE_LIMIT_SCOPES` in the Drizzle schema. */
|
|
668
|
+
export declare const RateLimitScopeLiteral: Schema.Literal<["global", "project", "user"]>;
|
|
669
|
+
export type RateLimitScopeLiteral = typeof RateLimitScopeLiteral.Type;
|
|
670
|
+
/** Strategy taxonomy — mirrors `RATE_LIMIT_STRATEGIES`. */
|
|
671
|
+
export declare const RateLimitStrategyLiteral: Schema.Literal<["token-bucket", "sliding-window", "fixed-window"]>;
|
|
672
|
+
export type RateLimitStrategyLiteral = typeof RateLimitStrategyLiteral.Type;
|
|
673
|
+
export declare const PlatformRateLimitStatusRequest: Schema.Struct<{
|
|
674
|
+
scope: Schema.optional<Schema.Literal<["global", "project", "user"]>>;
|
|
675
|
+
scope_id: Schema.optional<typeof Schema.String>;
|
|
676
|
+
namespace: Schema.optional<Schema.filter<typeof Schema.String>>;
|
|
677
|
+
}>;
|
|
678
|
+
export type PlatformRateLimitStatusRequest = typeof PlatformRateLimitStatusRequest.Type;
|
|
679
|
+
export declare const PlatformRateLimitStatusRow: Schema.Struct<{
|
|
680
|
+
namespace: typeof Schema.String;
|
|
681
|
+
scope: Schema.Literal<["global", "project", "user"]>;
|
|
682
|
+
scopeId: Schema.NullOr<typeof Schema.String>;
|
|
683
|
+
strategy: Schema.Literal<["token-bucket", "sliding-window", "fixed-window"]>;
|
|
684
|
+
limit: typeof Schema.Number;
|
|
685
|
+
windowSeconds: typeof Schema.Number;
|
|
686
|
+
burst: Schema.NullOr<typeof Schema.Number>;
|
|
687
|
+
source: Schema.Literal<["default", "global", "project", "user"]>;
|
|
688
|
+
}>;
|
|
689
|
+
export type PlatformRateLimitStatusRow = typeof PlatformRateLimitStatusRow.Type;
|
|
690
|
+
export declare const PlatformRateLimitStatusResponse: Schema.Struct<{
|
|
691
|
+
rows: Schema.Array$<Schema.Struct<{
|
|
692
|
+
namespace: typeof Schema.String;
|
|
693
|
+
scope: Schema.Literal<["global", "project", "user"]>;
|
|
694
|
+
scopeId: Schema.NullOr<typeof Schema.String>;
|
|
695
|
+
strategy: Schema.Literal<["token-bucket", "sliding-window", "fixed-window"]>;
|
|
696
|
+
limit: typeof Schema.Number;
|
|
697
|
+
windowSeconds: typeof Schema.Number;
|
|
698
|
+
burst: Schema.NullOr<typeof Schema.Number>;
|
|
699
|
+
source: Schema.Literal<["default", "global", "project", "user"]>;
|
|
700
|
+
}>>;
|
|
701
|
+
}>;
|
|
702
|
+
export type PlatformRateLimitStatusResponse = typeof PlatformRateLimitStatusResponse.Type;
|
|
703
|
+
export declare const PlatformRateLimitStrategiesListRequest: Schema.Struct<{
|
|
704
|
+
scope: Schema.optional<Schema.Literal<["global", "project", "user"]>>;
|
|
705
|
+
scope_id: Schema.optional<typeof Schema.String>;
|
|
706
|
+
}>;
|
|
707
|
+
export type PlatformRateLimitStrategiesListRequest = typeof PlatformRateLimitStrategiesListRequest.Type;
|
|
708
|
+
export declare const PlatformRateLimitStrategyRow: Schema.Struct<{
|
|
709
|
+
id: typeof Schema.String;
|
|
710
|
+
scope: Schema.Literal<["global", "project", "user"]>;
|
|
711
|
+
scopeId: Schema.NullOr<typeof Schema.String>;
|
|
712
|
+
namespace: typeof Schema.String;
|
|
713
|
+
strategy: Schema.Literal<["token-bucket", "sliding-window", "fixed-window"]>;
|
|
714
|
+
limitCount: typeof Schema.Number;
|
|
715
|
+
windowSeconds: typeof Schema.Number;
|
|
716
|
+
burstCount: Schema.NullOr<typeof Schema.Number>;
|
|
717
|
+
updatedAt: typeof Schema.String;
|
|
718
|
+
updatedBy: Schema.NullOr<typeof Schema.String>;
|
|
719
|
+
}>;
|
|
720
|
+
export type PlatformRateLimitStrategyRow = typeof PlatformRateLimitStrategyRow.Type;
|
|
721
|
+
export declare const PlatformRateLimitStrategiesListResponse: Schema.Struct<{
|
|
722
|
+
strategies: Schema.Array$<Schema.Struct<{
|
|
723
|
+
id: typeof Schema.String;
|
|
724
|
+
scope: Schema.Literal<["global", "project", "user"]>;
|
|
725
|
+
scopeId: Schema.NullOr<typeof Schema.String>;
|
|
726
|
+
namespace: typeof Schema.String;
|
|
727
|
+
strategy: Schema.Literal<["token-bucket", "sliding-window", "fixed-window"]>;
|
|
728
|
+
limitCount: typeof Schema.Number;
|
|
729
|
+
windowSeconds: typeof Schema.Number;
|
|
730
|
+
burstCount: Schema.NullOr<typeof Schema.Number>;
|
|
731
|
+
updatedAt: typeof Schema.String;
|
|
732
|
+
updatedBy: Schema.NullOr<typeof Schema.String>;
|
|
733
|
+
}>>;
|
|
734
|
+
}>;
|
|
735
|
+
export type PlatformRateLimitStrategiesListResponse = typeof PlatformRateLimitStrategiesListResponse.Type;
|
|
736
|
+
export declare const PlatformRateLimitNamespaceParams: Schema.Struct<{
|
|
737
|
+
namespace: Schema.filter<typeof Schema.String>;
|
|
738
|
+
}>;
|
|
739
|
+
export type PlatformRateLimitNamespaceParams = typeof PlatformRateLimitNamespaceParams.Type;
|
|
740
|
+
export declare const PlatformRateLimitStrategyUpsertRequest: Schema.Struct<{
|
|
741
|
+
scope: Schema.Literal<["global", "project", "user"]>;
|
|
742
|
+
scope_id: Schema.optional<typeof Schema.String>;
|
|
743
|
+
strategy: Schema.Literal<["token-bucket", "sliding-window", "fixed-window"]>;
|
|
744
|
+
limit: typeof Schema.Number;
|
|
745
|
+
windowSeconds: typeof Schema.Number;
|
|
746
|
+
burst: Schema.optional<Schema.NullOr<typeof Schema.Number>>;
|
|
747
|
+
}>;
|
|
748
|
+
export type PlatformRateLimitStrategyUpsertRequest = typeof PlatformRateLimitStrategyUpsertRequest.Type;
|
|
749
|
+
export declare const PlatformRateLimitStrategyUpsertResponse: Schema.Struct<{
|
|
750
|
+
strategy: Schema.Struct<{
|
|
751
|
+
id: typeof Schema.String;
|
|
752
|
+
scope: Schema.Literal<["global", "project", "user"]>;
|
|
753
|
+
scopeId: Schema.NullOr<typeof Schema.String>;
|
|
754
|
+
namespace: typeof Schema.String;
|
|
755
|
+
strategy: Schema.Literal<["token-bucket", "sliding-window", "fixed-window"]>;
|
|
756
|
+
limitCount: typeof Schema.Number;
|
|
757
|
+
windowSeconds: typeof Schema.Number;
|
|
758
|
+
burstCount: Schema.NullOr<typeof Schema.Number>;
|
|
759
|
+
updatedAt: typeof Schema.String;
|
|
760
|
+
updatedBy: Schema.NullOr<typeof Schema.String>;
|
|
761
|
+
}>;
|
|
762
|
+
}>;
|
|
763
|
+
export type PlatformRateLimitStrategyUpsertResponse = typeof PlatformRateLimitStrategyUpsertResponse.Type;
|
|
764
|
+
export declare const PlatformRateLimitStrategyDeleteRequest: Schema.Struct<{
|
|
765
|
+
scope: Schema.Literal<["global", "project", "user"]>;
|
|
766
|
+
scope_id: Schema.optional<typeof Schema.String>;
|
|
767
|
+
}>;
|
|
768
|
+
export type PlatformRateLimitStrategyDeleteRequest = typeof PlatformRateLimitStrategyDeleteRequest.Type;
|
|
769
|
+
export declare const PlatformRateLimitStrategyDeleteResponse: Schema.Struct<{
|
|
770
|
+
deleted: typeof Schema.Boolean;
|
|
771
|
+
}>;
|
|
772
|
+
export type PlatformRateLimitStrategyDeleteResponse = typeof PlatformRateLimitStrategyDeleteResponse.Type;
|
|
773
|
+
/**
|
|
774
|
+
* Passkey signup-challenge request. `orgId` binds the ceremony to an org
|
|
775
|
+
* for policy enforcement (device-bound + AAGUID allow-list). Omit for
|
|
776
|
+
* personal signups.
|
|
777
|
+
*/
|
|
778
|
+
export declare const PasskeySignupChallengeRequest: Schema.Struct<{
|
|
779
|
+
email: typeof Schema.String;
|
|
780
|
+
displayName: Schema.optional<typeof Schema.String>;
|
|
781
|
+
orgId: Schema.optional<typeof Schema.String>;
|
|
782
|
+
}>;
|
|
783
|
+
export type PasskeySignupChallengeRequest = typeof PasskeySignupChallengeRequest.Type;
|
|
784
|
+
/**
|
|
785
|
+
* WebAuthn registration options + platform-issued `userHandle`. Caller
|
|
786
|
+
* feeds these to `navigator.credentials.create({ publicKey: options })`
|
|
787
|
+
* and echoes `userHandle` back to /signup-verify.
|
|
788
|
+
*/
|
|
789
|
+
export declare const PasskeySignupChallengeResponse: Schema.Struct<{
|
|
790
|
+
challenge: typeof Schema.String;
|
|
791
|
+
rp: Schema.Struct<{
|
|
792
|
+
name: typeof Schema.String;
|
|
793
|
+
id: Schema.optional<typeof Schema.String>;
|
|
794
|
+
}>;
|
|
795
|
+
user: Schema.Struct<{
|
|
796
|
+
id: typeof Schema.String;
|
|
797
|
+
name: typeof Schema.String;
|
|
798
|
+
displayName: typeof Schema.String;
|
|
799
|
+
}>;
|
|
800
|
+
pubKeyCredParams: Schema.Array$<Schema.Struct<{
|
|
801
|
+
type: Schema.Literal<["public-key"]>;
|
|
802
|
+
alg: typeof Schema.Number;
|
|
803
|
+
}>>;
|
|
804
|
+
timeout: Schema.optional<typeof Schema.Number>;
|
|
805
|
+
attestation: Schema.optional<typeof Schema.String>;
|
|
806
|
+
authenticatorSelection: Schema.optional<Schema.Struct<{
|
|
807
|
+
authenticatorAttachment: Schema.optional<Schema.Literal<["platform", "cross-platform"]>>;
|
|
808
|
+
residentKey: Schema.optional<Schema.Literal<["discouraged", "preferred", "required"]>>;
|
|
809
|
+
userVerification: Schema.optional<Schema.Literal<["discouraged", "preferred", "required"]>>;
|
|
810
|
+
}>>;
|
|
811
|
+
userHandle: typeof Schema.String;
|
|
812
|
+
}>;
|
|
813
|
+
export type PasskeySignupChallengeResponse = typeof PasskeySignupChallengeResponse.Type;
|
|
814
|
+
export declare const PasskeySignupVerifyRequest: Schema.Struct<{
|
|
815
|
+
email: typeof Schema.String;
|
|
816
|
+
userHandle: typeof Schema.String;
|
|
817
|
+
credential: typeof Schema.Unknown;
|
|
818
|
+
deviceName: Schema.optional<typeof Schema.String>;
|
|
819
|
+
}>;
|
|
820
|
+
export type PasskeySignupVerifyRequest = typeof PasskeySignupVerifyRequest.Type;
|
|
821
|
+
export declare const PasskeySignupVerifyResponse: Schema.Struct<{
|
|
822
|
+
accessToken: typeof Schema.String;
|
|
823
|
+
refreshToken: typeof Schema.String;
|
|
824
|
+
expiresIn: typeof Schema.Number;
|
|
825
|
+
user: Schema.Struct<{
|
|
826
|
+
id: typeof Schema.String;
|
|
827
|
+
email: typeof Schema.String;
|
|
828
|
+
name: Schema.NullOr<typeof Schema.String>;
|
|
829
|
+
role: typeof Schema.String;
|
|
830
|
+
}>;
|
|
831
|
+
passkey: Schema.Struct<{
|
|
832
|
+
id: typeof Schema.String;
|
|
833
|
+
authenticatorAttachment: Schema.NullOr<Schema.Literal<["platform", "cross-platform"]>>;
|
|
834
|
+
backupState: Schema.NullOr<typeof Schema.Boolean>;
|
|
835
|
+
aaguid: Schema.NullOr<typeof Schema.String>;
|
|
836
|
+
}>;
|
|
837
|
+
}>;
|
|
838
|
+
export type PasskeySignupVerifyResponse = typeof PasskeySignupVerifyResponse.Type;
|
|
839
|
+
export declare const PasskeyPolicyViolationResponse: Schema.Struct<{
|
|
840
|
+
error: Schema.Literal<["policy_violation"]>;
|
|
841
|
+
code: Schema.Literal<["device_bound_required", "aaguid_not_allowed"]>;
|
|
842
|
+
message: typeof Schema.String;
|
|
843
|
+
}>;
|
|
844
|
+
export type PasskeyPolicyViolationResponse = typeof PasskeyPolicyViolationResponse.Type;
|
|
845
|
+
export declare const PrimaryAuthMethodResponse: Schema.Struct<{
|
|
846
|
+
userId: typeof Schema.String;
|
|
847
|
+
primaryAuthMethod: Schema.Literal<["passkey", "password"]>;
|
|
848
|
+
}>;
|
|
849
|
+
export type PrimaryAuthMethodResponse = typeof PrimaryAuthMethodResponse.Type;
|
|
850
|
+
export declare const OrgAuthPolicy: Schema.Struct<{
|
|
851
|
+
orgId: typeof Schema.String;
|
|
852
|
+
requirePasskeyForSignup: typeof Schema.Boolean;
|
|
853
|
+
requireDeviceBoundPasskeys: typeof Schema.Boolean;
|
|
854
|
+
allowedAaguids: Schema.Array$<typeof Schema.String>;
|
|
855
|
+
updatedAt: typeof Schema.String;
|
|
856
|
+
updatedBy: Schema.NullOr<typeof Schema.String>;
|
|
857
|
+
}>;
|
|
858
|
+
export type OrgAuthPolicy = typeof OrgAuthPolicy.Type;
|
|
859
|
+
export declare const OrgAuthPolicyUpdateRequest: Schema.Struct<{
|
|
860
|
+
requirePasskeyForSignup: Schema.optional<typeof Schema.Boolean>;
|
|
861
|
+
requireDeviceBoundPasskeys: Schema.optional<typeof Schema.Boolean>;
|
|
862
|
+
allowedAaguids: Schema.optional<Schema.Array$<typeof Schema.String>>;
|
|
863
|
+
}>;
|
|
864
|
+
export type OrgAuthPolicyUpdateRequest = typeof OrgAuthPolicyUpdateRequest.Type;
|
|
865
|
+
//# sourceMappingURL=auth.d.ts.map
|