@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,268 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Notifications Admin endpoints — Console-plane admin / broadcast /
|
|
3
|
+
* subscription management for web push, mobile push, and in-app messages.
|
|
4
|
+
* Distinct from BaaS `notificationsEndpoints` (register/unregister/send/
|
|
5
|
+
* preferences) served by the runtime.
|
|
6
|
+
*
|
|
7
|
+
* Production mount: `/notifications/*` (see
|
|
8
|
+
* `apps/api/src/server/platform/app.ts`). All operations are
|
|
9
|
+
* `plane: 'management'` — they require an authenticated Console user with
|
|
10
|
+
* project access or (for the cross-project push admin paths) super-admin
|
|
11
|
+
* role; the BaaS plane's per-user push registration lives under a different
|
|
12
|
+
* endpoint group.
|
|
13
|
+
*/
|
|
14
|
+
export declare const notificationsAdminEndpoints: {
|
|
15
|
+
readonly pushConfig: import("../endpoint.js").Endpoint<"GET", "/notifications/push/config", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
16
|
+
configured: typeof import("effect/Schema").Boolean;
|
|
17
|
+
}>>;
|
|
18
|
+
readonly sendPush: import("../endpoint.js").Endpoint<"POST", "/notifications/push/send", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
19
|
+
projectId: typeof import("effect/Schema").String;
|
|
20
|
+
userId: typeof import("effect/Schema").String;
|
|
21
|
+
title: typeof import("effect/Schema").String;
|
|
22
|
+
body: typeof import("effect/Schema").String;
|
|
23
|
+
icon: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
24
|
+
url: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
25
|
+
}>, import("effect/Schema").Struct<{
|
|
26
|
+
success: typeof import("effect/Schema").Boolean;
|
|
27
|
+
sentTo: typeof import("effect/Schema").Number;
|
|
28
|
+
expired: typeof import("effect/Schema").Number;
|
|
29
|
+
}>>;
|
|
30
|
+
readonly broadcastPush: import("../endpoint.js").Endpoint<"POST", "/notifications/push/broadcast", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
31
|
+
projectId: typeof import("effect/Schema").String;
|
|
32
|
+
title: typeof import("effect/Schema").String;
|
|
33
|
+
body: typeof import("effect/Schema").String;
|
|
34
|
+
icon: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
35
|
+
url: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
36
|
+
}>, import("effect/Schema").Struct<{
|
|
37
|
+
success: typeof import("effect/Schema").Boolean;
|
|
38
|
+
sentTo: typeof import("effect/Schema").Number;
|
|
39
|
+
expired: typeof import("effect/Schema").Number;
|
|
40
|
+
totalUsers: typeof import("effect/Schema").Number;
|
|
41
|
+
}>>;
|
|
42
|
+
readonly pushStats: import("../endpoint.js").Endpoint<"GET", "/notifications/push/stats", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
43
|
+
projectId: typeof import("effect/Schema").String;
|
|
44
|
+
days: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
45
|
+
}>, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
46
|
+
subscriptions: import("effect/Schema").Struct<{
|
|
47
|
+
total: typeof import("effect/Schema").Number;
|
|
48
|
+
activeUsers: typeof import("effect/Schema").Number;
|
|
49
|
+
activeApps: import("effect/Schema").optional<typeof import("effect/Schema").Number>;
|
|
50
|
+
avgPerUser: import("effect/Schema").optional<typeof import("effect/Schema").Number>;
|
|
51
|
+
}>;
|
|
52
|
+
delivery: import("effect/Schema").Struct<{
|
|
53
|
+
total: typeof import("effect/Schema").Number;
|
|
54
|
+
successful: typeof import("effect/Schema").Number;
|
|
55
|
+
failed: typeof import("effect/Schema").Number;
|
|
56
|
+
successRate: typeof import("effect/Schema").Number;
|
|
57
|
+
}>;
|
|
58
|
+
growth: import("effect/Schema").optional<import("effect/Schema").Array$<import("effect/Schema").Struct<{
|
|
59
|
+
date: typeof import("effect/Schema").String;
|
|
60
|
+
count: typeof import("effect/Schema").Number;
|
|
61
|
+
}>>>;
|
|
62
|
+
period: import("effect/Schema").Struct<{
|
|
63
|
+
days: typeof import("effect/Schema").Number;
|
|
64
|
+
since: typeof import("effect/Schema").String;
|
|
65
|
+
}>;
|
|
66
|
+
}>>;
|
|
67
|
+
readonly listSubscriptions: import("../endpoint.js").Endpoint<"GET", "/notifications/push/subscriptions", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
68
|
+
projectId: typeof import("effect/Schema").String;
|
|
69
|
+
userId: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
70
|
+
limit: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
71
|
+
offset: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
72
|
+
}>, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
73
|
+
subscriptions: import("effect/Schema").Array$<import("effect/Schema").Struct<{
|
|
74
|
+
id: typeof import("effect/Schema").String;
|
|
75
|
+
projectId: typeof import("effect/Schema").String;
|
|
76
|
+
app: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
77
|
+
id: typeof import("effect/Schema").String;
|
|
78
|
+
name: typeof import("effect/Schema").String;
|
|
79
|
+
slug: typeof import("effect/Schema").String;
|
|
80
|
+
}>>>;
|
|
81
|
+
userId: typeof import("effect/Schema").String;
|
|
82
|
+
endpoint: typeof import("effect/Schema").String;
|
|
83
|
+
createdAt: typeof import("effect/Schema").String;
|
|
84
|
+
}>>;
|
|
85
|
+
total: typeof import("effect/Schema").Number;
|
|
86
|
+
limit: typeof import("effect/Schema").Number;
|
|
87
|
+
offset: typeof import("effect/Schema").Number;
|
|
88
|
+
}>>;
|
|
89
|
+
readonly removeSubscriptions: import("../endpoint.js").Endpoint<"POST", "/notifications/push/subscriptions/remove", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
90
|
+
userId: typeof import("effect/Schema").String;
|
|
91
|
+
projectId: typeof import("effect/Schema").String;
|
|
92
|
+
}>, import("effect/Schema").Struct<{
|
|
93
|
+
success: typeof import("effect/Schema").Boolean;
|
|
94
|
+
removedCount: typeof import("effect/Schema").Number;
|
|
95
|
+
}>>;
|
|
96
|
+
readonly mobileConfig: import("../endpoint.js").Endpoint<"GET", "/notifications/mobile/config", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
97
|
+
projectId: typeof import("effect/Schema").String;
|
|
98
|
+
}>, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
99
|
+
ios: typeof import("effect/Schema").Boolean;
|
|
100
|
+
android: typeof import("effect/Schema").Boolean;
|
|
101
|
+
anyConfigured: typeof import("effect/Schema").Boolean;
|
|
102
|
+
}>>;
|
|
103
|
+
readonly sendMobilePush: import("../endpoint.js").Endpoint<"POST", "/notifications/mobile/send", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
104
|
+
projectId: typeof import("effect/Schema").String;
|
|
105
|
+
userId: typeof import("effect/Schema").String;
|
|
106
|
+
title: typeof import("effect/Schema").String;
|
|
107
|
+
body: typeof import("effect/Schema").String;
|
|
108
|
+
badge: import("effect/Schema").optional<typeof import("effect/Schema").Number>;
|
|
109
|
+
sound: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
110
|
+
data: import("effect/Schema").optional<import("effect/Schema").Record$<typeof import("effect/Schema").String, typeof import("effect/Schema").Unknown>>;
|
|
111
|
+
platforms: import("effect/Schema").optional<import("effect/Schema").Array$<import("effect/Schema").Literal<["ios", "android"]>>>;
|
|
112
|
+
}>, import("effect/Schema").Struct<{
|
|
113
|
+
success: typeof import("effect/Schema").Boolean;
|
|
114
|
+
sentTo: typeof import("effect/Schema").Number;
|
|
115
|
+
failed: typeof import("effect/Schema").Number;
|
|
116
|
+
invalidTokens: import("effect/Schema").optional<typeof import("effect/Schema").Number>;
|
|
117
|
+
usersWithDevices: import("effect/Schema").optional<typeof import("effect/Schema").Number>;
|
|
118
|
+
totalUsers: import("effect/Schema").optional<typeof import("effect/Schema").Number>;
|
|
119
|
+
}>>;
|
|
120
|
+
readonly broadcastMobilePush: import("../endpoint.js").Endpoint<"POST", "/notifications/mobile/broadcast", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
121
|
+
projectId: typeof import("effect/Schema").String;
|
|
122
|
+
title: typeof import("effect/Schema").String;
|
|
123
|
+
body: typeof import("effect/Schema").String;
|
|
124
|
+
badge: import("effect/Schema").optional<typeof import("effect/Schema").Number>;
|
|
125
|
+
sound: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
126
|
+
data: import("effect/Schema").optional<import("effect/Schema").Record$<typeof import("effect/Schema").String, typeof import("effect/Schema").Unknown>>;
|
|
127
|
+
platforms: import("effect/Schema").optional<import("effect/Schema").Array$<import("effect/Schema").Literal<["ios", "android"]>>>;
|
|
128
|
+
}>, import("effect/Schema").Struct<{
|
|
129
|
+
success: typeof import("effect/Schema").Boolean;
|
|
130
|
+
sentTo: typeof import("effect/Schema").Number;
|
|
131
|
+
failed: typeof import("effect/Schema").Number;
|
|
132
|
+
invalidTokens: import("effect/Schema").optional<typeof import("effect/Schema").Number>;
|
|
133
|
+
usersWithDevices: import("effect/Schema").optional<typeof import("effect/Schema").Number>;
|
|
134
|
+
totalUsers: import("effect/Schema").optional<typeof import("effect/Schema").Number>;
|
|
135
|
+
}>>;
|
|
136
|
+
readonly mobileStats: import("../endpoint.js").Endpoint<"GET", "/notifications/mobile/stats", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
137
|
+
projectId: typeof import("effect/Schema").String;
|
|
138
|
+
days: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
139
|
+
}>, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
140
|
+
devices: import("effect/Schema").Struct<{
|
|
141
|
+
total: typeof import("effect/Schema").Number;
|
|
142
|
+
active: typeof import("effect/Schema").Number;
|
|
143
|
+
inactive: typeof import("effect/Schema").Number;
|
|
144
|
+
ios: typeof import("effect/Schema").Number;
|
|
145
|
+
android: typeof import("effect/Schema").Number;
|
|
146
|
+
uniqueUsers: typeof import("effect/Schema").Number;
|
|
147
|
+
}>;
|
|
148
|
+
period: import("effect/Schema").Struct<{
|
|
149
|
+
days: typeof import("effect/Schema").Number;
|
|
150
|
+
since: typeof import("effect/Schema").String;
|
|
151
|
+
}>;
|
|
152
|
+
}>>;
|
|
153
|
+
readonly mobilePreferences: import("../endpoint.js").Endpoint<"GET", "/notifications/mobile/preferences", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
154
|
+
projectId: typeof import("effect/Schema").String;
|
|
155
|
+
userId: typeof import("effect/Schema").String;
|
|
156
|
+
}>, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
157
|
+
enabled: typeof import("effect/Schema").Boolean;
|
|
158
|
+
devices: import("effect/Schema").Array$<import("effect/Schema").Struct<{
|
|
159
|
+
id: typeof import("effect/Schema").String;
|
|
160
|
+
platform: import("effect/Schema").Literal<["ios", "android"]>;
|
|
161
|
+
name: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
|
|
162
|
+
registeredAt: typeof import("effect/Schema").String;
|
|
163
|
+
lastUsedAt: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
|
|
164
|
+
}>>;
|
|
165
|
+
}>>;
|
|
166
|
+
readonly sendInApp: import("../endpoint.js").Endpoint<"POST", "/notifications/in-app/send", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
167
|
+
type: import("effect/Schema").optional<import("effect/Schema").Literal<["info", "success", "warning", "error", "promotion"]>>;
|
|
168
|
+
priority: import("effect/Schema").optional<import("effect/Schema").Literal<["low", "medium", "high", "urgent"]>>;
|
|
169
|
+
title: typeof import("effect/Schema").String;
|
|
170
|
+
body: typeof import("effect/Schema").String;
|
|
171
|
+
icon: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
172
|
+
imageUrl: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
173
|
+
actionText: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
174
|
+
actionUrl: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
175
|
+
secondaryActionText: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
176
|
+
secondaryActionUrl: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
177
|
+
topic: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
178
|
+
metadata: import("effect/Schema").optional<import("effect/Schema").Record$<typeof import("effect/Schema").String, typeof import("effect/Schema").Unknown>>;
|
|
179
|
+
expiresAt: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
180
|
+
projectId: typeof import("effect/Schema").String;
|
|
181
|
+
userId: typeof import("effect/Schema").String;
|
|
182
|
+
}>, import("effect/Schema").Struct<{
|
|
183
|
+
success: typeof import("effect/Schema").Boolean;
|
|
184
|
+
messageId: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
185
|
+
sentCount: import("effect/Schema").optional<typeof import("effect/Schema").Number>;
|
|
186
|
+
}>>;
|
|
187
|
+
readonly sendInAppBatch: import("../endpoint.js").Endpoint<"POST", "/notifications/in-app/send-batch", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
188
|
+
type: import("effect/Schema").optional<import("effect/Schema").Literal<["info", "success", "warning", "error", "promotion"]>>;
|
|
189
|
+
priority: import("effect/Schema").optional<import("effect/Schema").Literal<["low", "medium", "high", "urgent"]>>;
|
|
190
|
+
title: typeof import("effect/Schema").String;
|
|
191
|
+
body: typeof import("effect/Schema").String;
|
|
192
|
+
icon: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
193
|
+
imageUrl: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
194
|
+
actionText: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
195
|
+
actionUrl: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
196
|
+
secondaryActionText: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
197
|
+
secondaryActionUrl: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
198
|
+
topic: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
199
|
+
metadata: import("effect/Schema").optional<import("effect/Schema").Record$<typeof import("effect/Schema").String, typeof import("effect/Schema").Unknown>>;
|
|
200
|
+
expiresAt: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
201
|
+
projectId: typeof import("effect/Schema").String;
|
|
202
|
+
userIds: import("effect/Schema").Array$<typeof import("effect/Schema").String>;
|
|
203
|
+
}>, import("effect/Schema").Struct<{
|
|
204
|
+
success: typeof import("effect/Schema").Boolean;
|
|
205
|
+
messageId: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
206
|
+
sentCount: import("effect/Schema").optional<typeof import("effect/Schema").Number>;
|
|
207
|
+
}>>;
|
|
208
|
+
readonly broadcastInApp: import("../endpoint.js").Endpoint<"POST", "/notifications/in-app/broadcast", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
209
|
+
projectId: typeof import("effect/Schema").String;
|
|
210
|
+
type: import("effect/Schema").optional<import("effect/Schema").Literal<["info", "success", "warning", "error", "promotion"]>>;
|
|
211
|
+
priority: import("effect/Schema").optional<import("effect/Schema").Literal<["low", "medium", "high", "urgent"]>>;
|
|
212
|
+
title: typeof import("effect/Schema").String;
|
|
213
|
+
body: typeof import("effect/Schema").String;
|
|
214
|
+
icon: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
215
|
+
imageUrl: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
216
|
+
actionText: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
217
|
+
actionUrl: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
218
|
+
topic: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
219
|
+
expiresAt: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
220
|
+
}>, import("effect/Schema").Struct<{
|
|
221
|
+
success: typeof import("effect/Schema").Boolean;
|
|
222
|
+
messageId: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
223
|
+
sentCount: import("effect/Schema").optional<typeof import("effect/Schema").Number>;
|
|
224
|
+
}>>;
|
|
225
|
+
readonly listInAppMessages: import("../endpoint.js").Endpoint<"GET", "/notifications/in-app/messages", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
226
|
+
projectId: typeof import("effect/Schema").String;
|
|
227
|
+
userId: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
228
|
+
type: import("effect/Schema").optional<import("effect/Schema").Literal<["info", "success", "warning", "error", "promotion"]>>;
|
|
229
|
+
unreadOnly: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
230
|
+
limit: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
231
|
+
offset: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
232
|
+
}>, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
233
|
+
messages: import("effect/Schema").Array$<import("effect/Schema").Struct<{
|
|
234
|
+
id: typeof import("effect/Schema").String;
|
|
235
|
+
type: import("effect/Schema").Literal<["info", "success", "warning", "error", "promotion"]>;
|
|
236
|
+
priority: import("effect/Schema").Literal<["low", "medium", "high", "urgent"]>;
|
|
237
|
+
title: typeof import("effect/Schema").String;
|
|
238
|
+
body: typeof import("effect/Schema").String;
|
|
239
|
+
icon: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
|
|
240
|
+
imageUrl: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
|
|
241
|
+
actionText: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
|
|
242
|
+
actionUrl: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
|
|
243
|
+
secondaryActionText: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
|
|
244
|
+
secondaryActionUrl: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
|
|
245
|
+
metadata: import("effect/Schema").NullOr<import("effect/Schema").Record$<typeof import("effect/Schema").String, typeof import("effect/Schema").Unknown>>;
|
|
246
|
+
topic: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
|
|
247
|
+
isRead: typeof import("effect/Schema").Boolean;
|
|
248
|
+
isDismissed: typeof import("effect/Schema").Boolean;
|
|
249
|
+
readAt: import("effect/Schema").NullOr<typeof import("effect/Schema").String>;
|
|
250
|
+
createdAt: typeof import("effect/Schema").String;
|
|
251
|
+
}>>;
|
|
252
|
+
total: typeof import("effect/Schema").Number;
|
|
253
|
+
}>>;
|
|
254
|
+
readonly inAppStats: import("../endpoint.js").Endpoint<"GET", "/notifications/in-app/stats", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
255
|
+
projectId: typeof import("effect/Schema").String;
|
|
256
|
+
}>, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
257
|
+
total: typeof import("effect/Schema").Number;
|
|
258
|
+
unread: typeof import("effect/Schema").Number;
|
|
259
|
+
byType: import("effect/Schema").Record$<typeof import("effect/Schema").String, typeof import("effect/Schema").Number>;
|
|
260
|
+
byPriority: import("effect/Schema").Record$<typeof import("effect/Schema").String, typeof import("effect/Schema").Number>;
|
|
261
|
+
}>>;
|
|
262
|
+
readonly archiveInApp: import("../endpoint.js").Endpoint<"POST", "/notifications/in-app/archive", import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Schema.AnyNoContext | undefined, import("effect/Schema").Struct<{
|
|
263
|
+
messageId: typeof import("effect/Schema").String;
|
|
264
|
+
}>, import("effect/Schema").Struct<{
|
|
265
|
+
success: typeof import("effect/Schema").Boolean;
|
|
266
|
+
}>>;
|
|
267
|
+
};
|
|
268
|
+
//# sourceMappingURL=notifications-admin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notifications-admin.d.ts","sourceRoot":"","sources":["../../src/endpoints/notifications-admin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAmCH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8J9B,CAAA"}
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Notifications Admin endpoints — Console-plane admin / broadcast /
|
|
3
|
+
* subscription management for web push, mobile push, and in-app messages.
|
|
4
|
+
* Distinct from BaaS `notificationsEndpoints` (register/unregister/send/
|
|
5
|
+
* preferences) served by the runtime.
|
|
6
|
+
*
|
|
7
|
+
* Production mount: `/notifications/*` (see
|
|
8
|
+
* `apps/api/src/server/platform/app.ts`). All operations are
|
|
9
|
+
* `plane: 'management'` — they require an authenticated Console user with
|
|
10
|
+
* project access or (for the cross-project push admin paths) super-admin
|
|
11
|
+
* role; the BaaS plane's per-user push registration lives under a different
|
|
12
|
+
* endpoint group.
|
|
13
|
+
*/
|
|
14
|
+
import { defineEndpoint } from '../endpoint.js';
|
|
15
|
+
import { ArchiveMessageInput, ArchiveMessageResult, BroadcastInAppInput, BroadcastMobilePushInput, BroadcastPushInput, BroadcastPushResult, InAppStatsQuery, InAppStatsResult, ListInAppMessagesQuery, ListInAppMessagesResult, ListSubscriptionsQuery, ListSubscriptionsResult, MobileConfigQuery, MobileConfigResult, MobilePreferencesQuery, MobilePreferencesResult, MobileStatsResult, PushConfigResult, PushStatsQuery, PushStatsResult, RemoveSubscriptionsResult, RemoveUserSubscriptionsInput, SendInAppResult, SendInAppToUserInput, SendInAppToUsersInput, SendMobilePushInput, SendMobilePushResult, SendPushResult, SendPushToUserInput, } from '../schemas/notifications-admin.js';
|
|
16
|
+
export const notificationsAdminEndpoints = {
|
|
17
|
+
// ── Web push ───────────────────────────────────────────────────────────
|
|
18
|
+
pushConfig: defineEndpoint({
|
|
19
|
+
method: 'GET',
|
|
20
|
+
path: '/notifications/push/config',
|
|
21
|
+
response: PushConfigResult,
|
|
22
|
+
plane: 'management',
|
|
23
|
+
summary: 'Check VAPID web push configuration',
|
|
24
|
+
tags: ['notifications-admin'],
|
|
25
|
+
}),
|
|
26
|
+
sendPush: defineEndpoint({
|
|
27
|
+
method: 'POST',
|
|
28
|
+
path: '/notifications/push/send',
|
|
29
|
+
body: SendPushToUserInput,
|
|
30
|
+
response: SendPushResult,
|
|
31
|
+
plane: 'admin',
|
|
32
|
+
summary: 'Admin send web push to a user (super-admin only)',
|
|
33
|
+
tags: ['notifications-admin'],
|
|
34
|
+
}),
|
|
35
|
+
broadcastPush: defineEndpoint({
|
|
36
|
+
method: 'POST',
|
|
37
|
+
path: '/notifications/push/broadcast',
|
|
38
|
+
body: BroadcastPushInput,
|
|
39
|
+
response: BroadcastPushResult,
|
|
40
|
+
plane: 'admin',
|
|
41
|
+
summary: 'Admin broadcast web push notification (super-admin only)',
|
|
42
|
+
tags: ['notifications-admin'],
|
|
43
|
+
}),
|
|
44
|
+
pushStats: defineEndpoint({
|
|
45
|
+
method: 'GET',
|
|
46
|
+
path: '/notifications/push/stats',
|
|
47
|
+
query: PushStatsQuery,
|
|
48
|
+
response: PushStatsResult,
|
|
49
|
+
plane: 'admin',
|
|
50
|
+
summary: 'Admin: per-project web push statistics (super-admin only)',
|
|
51
|
+
tags: ['notifications-admin'],
|
|
52
|
+
}),
|
|
53
|
+
listSubscriptions: defineEndpoint({
|
|
54
|
+
method: 'GET',
|
|
55
|
+
path: '/notifications/push/subscriptions',
|
|
56
|
+
query: ListSubscriptionsQuery,
|
|
57
|
+
response: ListSubscriptionsResult,
|
|
58
|
+
plane: 'admin',
|
|
59
|
+
summary: 'Admin: list push subscriptions (super-admin only)',
|
|
60
|
+
tags: ['notifications-admin'],
|
|
61
|
+
}),
|
|
62
|
+
removeSubscriptions: defineEndpoint({
|
|
63
|
+
method: 'POST',
|
|
64
|
+
path: '/notifications/push/subscriptions/remove',
|
|
65
|
+
body: RemoveUserSubscriptionsInput,
|
|
66
|
+
response: RemoveSubscriptionsResult,
|
|
67
|
+
plane: 'admin',
|
|
68
|
+
summary: 'Admin: remove user push subscriptions (super-admin only)',
|
|
69
|
+
tags: ['notifications-admin'],
|
|
70
|
+
}),
|
|
71
|
+
// ── Mobile push ────────────────────────────────────────────────────────
|
|
72
|
+
mobileConfig: defineEndpoint({
|
|
73
|
+
method: 'GET',
|
|
74
|
+
path: '/notifications/mobile/config',
|
|
75
|
+
query: MobileConfigQuery,
|
|
76
|
+
response: MobileConfigResult,
|
|
77
|
+
plane: 'management',
|
|
78
|
+
summary: 'Check APNs/FCM mobile push configuration',
|
|
79
|
+
tags: ['notifications-admin'],
|
|
80
|
+
}),
|
|
81
|
+
sendMobilePush: defineEndpoint({
|
|
82
|
+
method: 'POST',
|
|
83
|
+
path: '/notifications/mobile/send',
|
|
84
|
+
body: SendMobilePushInput,
|
|
85
|
+
response: SendMobilePushResult,
|
|
86
|
+
plane: 'management',
|
|
87
|
+
summary: 'Send mobile push to a user via APNs/FCM',
|
|
88
|
+
tags: ['notifications-admin'],
|
|
89
|
+
}),
|
|
90
|
+
broadcastMobilePush: defineEndpoint({
|
|
91
|
+
method: 'POST',
|
|
92
|
+
path: '/notifications/mobile/broadcast',
|
|
93
|
+
body: BroadcastMobilePushInput,
|
|
94
|
+
response: SendMobilePushResult,
|
|
95
|
+
plane: 'management',
|
|
96
|
+
summary: 'Broadcast mobile push to all users of a project',
|
|
97
|
+
tags: ['notifications-admin'],
|
|
98
|
+
}),
|
|
99
|
+
mobileStats: defineEndpoint({
|
|
100
|
+
method: 'GET',
|
|
101
|
+
path: '/notifications/mobile/stats',
|
|
102
|
+
query: PushStatsQuery,
|
|
103
|
+
response: MobileStatsResult,
|
|
104
|
+
plane: 'management',
|
|
105
|
+
summary: 'Mobile device token statistics for a project',
|
|
106
|
+
tags: ['notifications-admin'],
|
|
107
|
+
}),
|
|
108
|
+
mobilePreferences: defineEndpoint({
|
|
109
|
+
method: 'GET',
|
|
110
|
+
path: '/notifications/mobile/preferences',
|
|
111
|
+
query: MobilePreferencesQuery,
|
|
112
|
+
response: MobilePreferencesResult,
|
|
113
|
+
plane: 'management',
|
|
114
|
+
summary: 'Get mobile push preferences + devices for a user',
|
|
115
|
+
tags: ['notifications-admin'],
|
|
116
|
+
}),
|
|
117
|
+
// ── In-app messages ────────────────────────────────────────────────────
|
|
118
|
+
sendInApp: defineEndpoint({
|
|
119
|
+
method: 'POST',
|
|
120
|
+
path: '/notifications/in-app/send',
|
|
121
|
+
body: SendInAppToUserInput,
|
|
122
|
+
response: SendInAppResult,
|
|
123
|
+
plane: 'management',
|
|
124
|
+
summary: 'Send in-app message to a user',
|
|
125
|
+
tags: ['notifications-admin'],
|
|
126
|
+
}),
|
|
127
|
+
sendInAppBatch: defineEndpoint({
|
|
128
|
+
method: 'POST',
|
|
129
|
+
path: '/notifications/in-app/send-batch',
|
|
130
|
+
body: SendInAppToUsersInput,
|
|
131
|
+
response: SendInAppResult,
|
|
132
|
+
plane: 'management',
|
|
133
|
+
summary: 'Send in-app message to multiple users (max 1000)',
|
|
134
|
+
tags: ['notifications-admin'],
|
|
135
|
+
}),
|
|
136
|
+
broadcastInApp: defineEndpoint({
|
|
137
|
+
method: 'POST',
|
|
138
|
+
path: '/notifications/in-app/broadcast',
|
|
139
|
+
body: BroadcastInAppInput,
|
|
140
|
+
response: SendInAppResult,
|
|
141
|
+
plane: 'management',
|
|
142
|
+
summary: 'Broadcast in-app message to all users of a project',
|
|
143
|
+
tags: ['notifications-admin'],
|
|
144
|
+
}),
|
|
145
|
+
listInAppMessages: defineEndpoint({
|
|
146
|
+
method: 'GET',
|
|
147
|
+
path: '/notifications/in-app/messages',
|
|
148
|
+
query: ListInAppMessagesQuery,
|
|
149
|
+
response: ListInAppMessagesResult,
|
|
150
|
+
plane: 'management',
|
|
151
|
+
summary: 'List in-app messages for a project',
|
|
152
|
+
tags: ['notifications-admin'],
|
|
153
|
+
}),
|
|
154
|
+
inAppStats: defineEndpoint({
|
|
155
|
+
method: 'GET',
|
|
156
|
+
path: '/notifications/in-app/stats',
|
|
157
|
+
query: InAppStatsQuery,
|
|
158
|
+
response: InAppStatsResult,
|
|
159
|
+
plane: 'management',
|
|
160
|
+
summary: 'Statistics for in-app messages in a project',
|
|
161
|
+
tags: ['notifications-admin'],
|
|
162
|
+
}),
|
|
163
|
+
archiveInApp: defineEndpoint({
|
|
164
|
+
method: 'POST',
|
|
165
|
+
path: '/notifications/in-app/archive',
|
|
166
|
+
body: ArchiveMessageInput,
|
|
167
|
+
response: ArchiveMessageResult,
|
|
168
|
+
plane: 'management',
|
|
169
|
+
summary: 'Archive (soft delete) an in-app message',
|
|
170
|
+
tags: ['notifications-admin'],
|
|
171
|
+
}),
|
|
172
|
+
};
|