@effect-auth/core 0.1.0-alpha.16 → 0.1.0-alpha.18
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/LICENSE +21 -0
- package/README.md +308 -133
- package/dist/AbuseProtection.d.ts +100 -0
- package/dist/AbuseProtection.d.ts.map +1 -0
- package/dist/AbuseProtection.js +71 -0
- package/dist/AbuseProtection.js.map +1 -0
- package/dist/AccessGrant.d.ts +344 -0
- package/dist/AccessGrant.d.ts.map +1 -0
- package/dist/AccessGrant.js +687 -0
- package/dist/AccessGrant.js.map +1 -0
- package/dist/ApiKey.d.ts +0 -12
- package/dist/ApiKey.d.ts.map +1 -1
- package/dist/ApiKey.js +36 -27
- package/dist/ApiKey.js.map +1 -1
- package/dist/Assurance.d.ts +415 -0
- package/dist/Assurance.d.ts.map +1 -0
- package/dist/Assurance.js +764 -0
- package/dist/Assurance.js.map +1 -0
- package/dist/AtomicPlanExecutor.d.ts +28 -0
- package/dist/AtomicPlanExecutor.d.ts.map +1 -0
- package/dist/AtomicPlanExecutor.js +5 -0
- package/dist/AtomicPlanExecutor.js.map +1 -0
- package/dist/AuditLog.d.ts +2314 -52
- package/dist/AuditLog.d.ts.map +1 -1
- package/dist/AuditLog.js +511 -33
- package/dist/AuditLog.js.map +1 -1
- package/dist/AuthFlow.d.ts +128 -38
- package/dist/AuthFlow.d.ts.map +1 -1
- package/dist/AuthFlow.js +611 -263
- package/dist/AuthFlow.js.map +1 -1
- package/dist/AuthRateLimit.d.ts +96 -0
- package/dist/AuthRateLimit.d.ts.map +1 -0
- package/dist/AuthRateLimit.js +212 -0
- package/dist/AuthRateLimit.js.map +1 -0
- package/dist/Challenge.d.ts +0 -3
- package/dist/Challenge.d.ts.map +1 -1
- package/dist/Challenge.js +1 -4
- package/dist/Challenge.js.map +1 -1
- package/dist/Client.d.ts +205 -10
- package/dist/Client.d.ts.map +1 -1
- package/dist/Client.js +397 -16
- package/dist/Client.js.map +1 -1
- package/dist/CloudflareTurnstile.d.ts +28 -0
- package/dist/CloudflareTurnstile.d.ts.map +1 -0
- package/dist/CloudflareTurnstile.js +205 -0
- package/dist/CloudflareTurnstile.js.map +1 -0
- package/dist/Crypto.d.ts +0 -3
- package/dist/Crypto.d.ts.map +1 -1
- package/dist/Crypto.js +1 -4
- package/dist/Crypto.js.map +1 -1
- package/dist/DelegatedAccessStorageMigrations.d.ts +7 -0
- package/dist/DelegatedAccessStorageMigrations.d.ts.map +1 -0
- package/dist/DelegatedAccessStorageMigrations.js +159 -0
- package/dist/DelegatedAccessStorageMigrations.js.map +1 -0
- package/dist/DisposableEmailDomains.d.ts +19 -0
- package/dist/DisposableEmailDomains.d.ts.map +1 -0
- package/dist/DisposableEmailDomains.js +85 -0
- package/dist/DisposableEmailDomains.js.map +1 -0
- package/dist/DomainVerification.d.ts +0 -9
- package/dist/DomainVerification.d.ts.map +1 -1
- package/dist/DomainVerification.js +36 -22
- package/dist/DomainVerification.js.map +1 -1
- package/dist/DrizzleBunSqliteStorage.d.ts +18 -0
- package/dist/DrizzleBunSqliteStorage.d.ts.map +1 -0
- package/dist/DrizzleBunSqliteStorage.js +11 -0
- package/dist/DrizzleBunSqliteStorage.js.map +1 -0
- package/dist/DrizzleD1SqliteStorage.d.ts +4 -4
- package/dist/DrizzleD1SqliteStorage.d.ts.map +1 -1
- package/dist/DrizzleD1SqliteStorage.js +5 -5
- package/dist/DrizzleD1SqliteStorage.js.map +1 -1
- package/dist/DrizzleDurableObjectSqliteStorage.d.ts +19 -0
- package/dist/DrizzleDurableObjectSqliteStorage.d.ts.map +1 -0
- package/dist/DrizzleDurableObjectSqliteStorage.js +14 -0
- package/dist/DrizzleDurableObjectSqliteStorage.js.map +1 -0
- package/dist/DrizzleEffectSqliteStorage.d.ts +13 -4
- package/dist/DrizzleEffectSqliteStorage.d.ts.map +1 -1
- package/dist/DrizzleEffectSqliteStorage.js +71 -4
- package/dist/DrizzleEffectSqliteStorage.js.map +1 -1
- package/dist/DrizzleNodeSqliteStorage.d.ts +18 -0
- package/dist/DrizzleNodeSqliteStorage.d.ts.map +1 -0
- package/dist/DrizzleNodeSqliteStorage.js +11 -0
- package/dist/DrizzleNodeSqliteStorage.js.map +1 -0
- package/dist/DrizzleWasmSqliteStorage.d.ts +23 -0
- package/dist/DrizzleWasmSqliteStorage.d.ts.map +1 -0
- package/dist/DrizzleWasmSqliteStorage.js +15 -0
- package/dist/DrizzleWasmSqliteStorage.js.map +1 -0
- package/dist/EffectQbPostgresDelegatedAccessStorage.d.ts +34 -0
- package/dist/EffectQbPostgresDelegatedAccessStorage.d.ts.map +1 -0
- package/dist/EffectQbPostgresDelegatedAccessStorage.js +499 -0
- package/dist/EffectQbPostgresDelegatedAccessStorage.js.map +1 -0
- package/dist/EffectQbPostgresStorage.d.ts +171 -0
- package/dist/EffectQbPostgresStorage.d.ts.map +1 -0
- package/dist/EffectQbPostgresStorage.js +4280 -0
- package/dist/EffectQbPostgresStorage.js.map +1 -0
- package/dist/EffectQbSqliteDelegatedAccessStorage.d.ts +112 -0
- package/dist/EffectQbSqliteDelegatedAccessStorage.d.ts.map +1 -0
- package/dist/EffectQbSqliteDelegatedAccessStorage.js +602 -0
- package/dist/EffectQbSqliteDelegatedAccessStorage.js.map +1 -0
- package/dist/EffectQbSqliteStorage.d.ts +181 -23
- package/dist/EffectQbSqliteStorage.d.ts.map +1 -1
- package/dist/EffectQbSqliteStorage.js +1728 -135
- package/dist/EffectQbSqliteStorage.js.map +1 -1
- package/dist/EmailAuth.d.ts +65 -0
- package/dist/EmailAuth.d.ts.map +1 -0
- package/dist/EmailAuth.js +171 -0
- package/dist/EmailAuth.js.map +1 -0
- package/dist/EmailIdentityAuth.d.ts +30 -0
- package/dist/EmailIdentityAuth.d.ts.map +1 -0
- package/dist/EmailIdentityAuth.js +142 -0
- package/dist/EmailIdentityAuth.js.map +1 -0
- package/dist/EmailOtp.d.ts +10 -11
- package/dist/EmailOtp.d.ts.map +1 -1
- package/dist/EmailOtp.js +44 -81
- package/dist/EmailOtp.js.map +1 -1
- package/dist/EmailRisk.d.ts +48 -0
- package/dist/EmailRisk.d.ts.map +1 -0
- package/dist/EmailRisk.js +33 -0
- package/dist/EmailRisk.js.map +1 -0
- package/dist/EmailVerification.d.ts +10 -16
- package/dist/EmailVerification.d.ts.map +1 -1
- package/dist/EmailVerification.js +85 -42
- package/dist/EmailVerification.js.map +1 -1
- package/dist/Guard.d.ts +11 -0
- package/dist/Guard.d.ts.map +1 -0
- package/dist/Guard.js +11 -0
- package/dist/Guard.js.map +1 -0
- package/dist/HibpPwnedPasswords.d.ts +56 -0
- package/dist/HibpPwnedPasswords.d.ts.map +1 -0
- package/dist/HibpPwnedPasswords.js +232 -0
- package/dist/HibpPwnedPasswords.js.map +1 -0
- package/dist/HttpApi/AdminPermissionDefinition.d.ts +4 -0
- package/dist/HttpApi/AdminPermissionDefinition.d.ts.map +1 -0
- package/dist/HttpApi/AdminPermissionDefinition.js +4 -0
- package/dist/HttpApi/AdminPermissionDefinition.js.map +1 -0
- package/dist/HttpApi/AdminSecurityTimeline.d.ts +4 -0
- package/dist/HttpApi/AdminSecurityTimeline.d.ts.map +1 -0
- package/dist/HttpApi/AdminSecurityTimeline.js +4 -0
- package/dist/HttpApi/AdminSecurityTimeline.js.map +1 -0
- package/dist/HttpApi/AdminSession.d.ts +4 -0
- package/dist/HttpApi/AdminSession.d.ts.map +1 -0
- package/dist/HttpApi/AdminSession.js +4 -0
- package/dist/HttpApi/AdminSession.js.map +1 -0
- package/dist/HttpApi/AdminTrustedDevice.d.ts +4 -0
- package/dist/HttpApi/AdminTrustedDevice.d.ts.map +1 -0
- package/dist/HttpApi/AdminTrustedDevice.js +4 -0
- package/dist/HttpApi/AdminTrustedDevice.js.map +1 -0
- package/dist/HttpApi/Api.d.ts +879 -877
- package/dist/HttpApi/Api.d.ts.map +1 -1
- package/dist/HttpApi/Api.js +2160 -896
- package/dist/HttpApi/Api.js.map +1 -1
- package/dist/HttpApi/ApiKey.d.ts +4 -0
- package/dist/HttpApi/ApiKey.d.ts.map +1 -0
- package/dist/HttpApi/ApiKey.js +4 -0
- package/dist/HttpApi/ApiKey.js.map +1 -0
- package/dist/HttpApi/Audit.d.ts +6 -0
- package/dist/HttpApi/Audit.d.ts.map +1 -0
- package/dist/HttpApi/Audit.js +10 -0
- package/dist/HttpApi/Audit.js.map +1 -0
- package/dist/HttpApi/ClientApi.d.ts +917 -0
- package/dist/HttpApi/ClientApi.d.ts.map +1 -0
- package/dist/HttpApi/ClientApi.js +101 -0
- package/dist/HttpApi/ClientApi.js.map +1 -0
- package/dist/HttpApi/EmailAuth.d.ts +6 -0
- package/dist/HttpApi/EmailAuth.d.ts.map +1 -0
- package/dist/HttpApi/EmailAuth.js +6 -0
- package/dist/HttpApi/EmailAuth.js.map +1 -0
- package/dist/HttpApi/EmailGuards.d.ts +115 -0
- package/dist/HttpApi/EmailGuards.d.ts.map +1 -0
- package/dist/HttpApi/EmailGuards.js +191 -0
- package/dist/HttpApi/EmailGuards.js.map +1 -0
- package/dist/HttpApi/EmailOtp.d.ts +6 -0
- package/dist/HttpApi/EmailOtp.d.ts.map +1 -0
- package/dist/HttpApi/EmailOtp.js +6 -0
- package/dist/HttpApi/EmailOtp.js.map +1 -0
- package/dist/HttpApi/EmailVerification.d.ts +6 -0
- package/dist/HttpApi/EmailVerification.d.ts.map +1 -0
- package/dist/HttpApi/EmailVerification.js +6 -0
- package/dist/HttpApi/EmailVerification.js.map +1 -0
- package/dist/HttpApi/Endpoints.d.ts +629 -301
- package/dist/HttpApi/Endpoints.d.ts.map +1 -1
- package/dist/HttpApi/Endpoints.js +178 -120
- package/dist/HttpApi/Endpoints.js.map +1 -1
- package/dist/HttpApi/Errors.d.ts +26 -7
- package/dist/HttpApi/Errors.d.ts.map +1 -1
- package/dist/HttpApi/Errors.js +26 -4
- package/dist/HttpApi/Errors.js.map +1 -1
- package/dist/HttpApi/Identity.d.ts +6 -0
- package/dist/HttpApi/Identity.d.ts.map +1 -0
- package/dist/HttpApi/Identity.js +6 -0
- package/dist/HttpApi/Identity.js.map +1 -0
- package/dist/HttpApi/IdentityGuards.d.ts +31 -0
- package/dist/HttpApi/IdentityGuards.d.ts.map +1 -0
- package/dist/HttpApi/IdentityGuards.js +33 -0
- package/dist/HttpApi/IdentityGuards.js.map +1 -0
- package/dist/HttpApi/Jwt.d.ts +4 -0
- package/dist/HttpApi/Jwt.d.ts.map +1 -0
- package/dist/HttpApi/Jwt.js +4 -0
- package/dist/HttpApi/Jwt.js.map +1 -0
- package/dist/HttpApi/JwtDiscovery.d.ts +4 -0
- package/dist/HttpApi/JwtDiscovery.d.ts.map +1 -0
- package/dist/HttpApi/JwtDiscovery.js +4 -0
- package/dist/HttpApi/JwtDiscovery.js.map +1 -0
- package/dist/HttpApi/LoginApproval.d.ts +5 -0
- package/dist/HttpApi/LoginApproval.d.ts.map +1 -0
- package/dist/HttpApi/LoginApproval.js +5 -0
- package/dist/HttpApi/LoginApproval.js.map +1 -0
- package/dist/HttpApi/LoginNotification.d.ts +5 -0
- package/dist/HttpApi/LoginNotification.d.ts.map +1 -0
- package/dist/HttpApi/LoginNotification.js +5 -0
- package/dist/HttpApi/LoginNotification.js.map +1 -0
- package/dist/HttpApi/MagicLink.d.ts +6 -0
- package/dist/HttpApi/MagicLink.d.ts.map +1 -0
- package/dist/HttpApi/MagicLink.js +6 -0
- package/dist/HttpApi/MagicLink.js.map +1 -0
- package/dist/HttpApi/Mfa.d.ts +5 -0
- package/dist/HttpApi/Mfa.d.ts.map +1 -0
- package/dist/HttpApi/Mfa.js +5 -0
- package/dist/HttpApi/Mfa.js.map +1 -0
- package/dist/HttpApi/Middleware.d.ts +14 -0
- package/dist/HttpApi/Middleware.d.ts.map +1 -0
- package/dist/HttpApi/Middleware.js +5 -0
- package/dist/HttpApi/Middleware.js.map +1 -0
- package/dist/HttpApi/OAuth.d.ts +4 -0
- package/dist/HttpApi/OAuth.d.ts.map +1 -0
- package/dist/HttpApi/OAuth.js +4 -0
- package/dist/HttpApi/OAuth.js.map +1 -0
- package/dist/HttpApi/OAuthProviderAuthorization.d.ts +4 -0
- package/dist/HttpApi/OAuthProviderAuthorization.d.ts.map +1 -0
- package/dist/HttpApi/OAuthProviderAuthorization.js +4 -0
- package/dist/HttpApi/OAuthProviderAuthorization.js.map +1 -0
- package/dist/HttpApi/OAuthToken.d.ts +4 -0
- package/dist/HttpApi/OAuthToken.d.ts.map +1 -0
- package/dist/HttpApi/OAuthToken.js +4 -0
- package/dist/HttpApi/OAuthToken.js.map +1 -0
- package/dist/HttpApi/OidcDiscovery.d.ts +4 -0
- package/dist/HttpApi/OidcDiscovery.d.ts.map +1 -0
- package/dist/HttpApi/OidcDiscovery.js +4 -0
- package/dist/HttpApi/OidcDiscovery.js.map +1 -0
- package/dist/HttpApi/Operations/AdminPermissionDefinition.d.ts +28 -0
- package/dist/HttpApi/Operations/AdminPermissionDefinition.d.ts.map +1 -0
- package/dist/HttpApi/Operations/AdminPermissionDefinition.js +5 -0
- package/dist/HttpApi/Operations/AdminPermissionDefinition.js.map +1 -0
- package/dist/HttpApi/Operations/AdminSession.d.ts +16 -0
- package/dist/HttpApi/Operations/AdminSession.d.ts.map +1 -0
- package/dist/HttpApi/Operations/AdminSession.js +5 -0
- package/dist/HttpApi/Operations/AdminSession.js.map +1 -0
- package/dist/HttpApi/Operations/ApiKey.d.ts +16 -0
- package/dist/HttpApi/Operations/ApiKey.d.ts.map +1 -0
- package/dist/HttpApi/Operations/ApiKey.js +5 -0
- package/dist/HttpApi/Operations/ApiKey.js.map +1 -0
- package/dist/HttpApi/Operations/Discovery.d.ts +19 -0
- package/dist/HttpApi/Operations/Discovery.d.ts.map +1 -0
- package/dist/HttpApi/Operations/Discovery.js +7 -0
- package/dist/HttpApi/Operations/Discovery.js.map +1 -0
- package/dist/HttpApi/Operations/EmailAuth.d.ts +12 -0
- package/dist/HttpApi/Operations/EmailAuth.d.ts.map +1 -0
- package/dist/HttpApi/Operations/EmailAuth.js +5 -0
- package/dist/HttpApi/Operations/EmailAuth.js.map +1 -0
- package/dist/HttpApi/Operations/EmailOtp.d.ts +14 -0
- package/dist/HttpApi/Operations/EmailOtp.d.ts.map +1 -0
- package/dist/HttpApi/Operations/EmailOtp.js +5 -0
- package/dist/HttpApi/Operations/EmailOtp.js.map +1 -0
- package/dist/HttpApi/Operations/EmailVerification.d.ts +14 -0
- package/dist/HttpApi/Operations/EmailVerification.d.ts.map +1 -0
- package/dist/HttpApi/Operations/EmailVerification.js +5 -0
- package/dist/HttpApi/Operations/EmailVerification.js.map +1 -0
- package/dist/HttpApi/Operations/HttpOperation.d.ts +4 -0
- package/dist/HttpApi/Operations/HttpOperation.d.ts.map +1 -0
- package/dist/HttpApi/Operations/HttpOperation.js +2 -0
- package/dist/HttpApi/Operations/HttpOperation.js.map +1 -0
- package/dist/HttpApi/Operations/Identity.d.ts +22 -0
- package/dist/HttpApi/Operations/Identity.d.ts.map +1 -0
- package/dist/HttpApi/Operations/Identity.js +5 -0
- package/dist/HttpApi/Operations/Identity.js.map +1 -0
- package/dist/HttpApi/Operations/Jwt.d.ts +14 -0
- package/dist/HttpApi/Operations/Jwt.d.ts.map +1 -0
- package/dist/HttpApi/Operations/Jwt.js +5 -0
- package/dist/HttpApi/Operations/Jwt.js.map +1 -0
- package/dist/HttpApi/Operations/LoginApproval.d.ts +16 -0
- package/dist/HttpApi/Operations/LoginApproval.d.ts.map +1 -0
- package/dist/HttpApi/Operations/LoginApproval.js +5 -0
- package/dist/HttpApi/Operations/LoginApproval.js.map +1 -0
- package/dist/HttpApi/Operations/MagicLink.d.ts +14 -0
- package/dist/HttpApi/Operations/MagicLink.d.ts.map +1 -0
- package/dist/HttpApi/Operations/MagicLink.js +5 -0
- package/dist/HttpApi/Operations/MagicLink.js.map +1 -0
- package/dist/HttpApi/Operations/Mfa.d.ts +24 -0
- package/dist/HttpApi/Operations/Mfa.d.ts.map +1 -0
- package/dist/HttpApi/Operations/Mfa.js +5 -0
- package/dist/HttpApi/Operations/Mfa.js.map +1 -0
- package/dist/HttpApi/Operations/OAuth.d.ts +20 -0
- package/dist/HttpApi/Operations/OAuth.d.ts.map +1 -0
- package/dist/HttpApi/Operations/OAuth.js +5 -0
- package/dist/HttpApi/Operations/OAuth.js.map +1 -0
- package/dist/HttpApi/Operations/OAuthProviderAuthorization.d.ts +12 -0
- package/dist/HttpApi/Operations/OAuthProviderAuthorization.d.ts.map +1 -0
- package/dist/HttpApi/Operations/OAuthProviderAuthorization.js +5 -0
- package/dist/HttpApi/Operations/OAuthProviderAuthorization.js.map +1 -0
- package/dist/HttpApi/Operations/OAuthToken.d.ts +16 -0
- package/dist/HttpApi/Operations/OAuthToken.d.ts.map +1 -0
- package/dist/HttpApi/Operations/OAuthToken.js +5 -0
- package/dist/HttpApi/Operations/OAuthToken.js.map +1 -0
- package/dist/HttpApi/Operations/Passkey.d.ts +22 -0
- package/dist/HttpApi/Operations/Passkey.d.ts.map +1 -0
- package/dist/HttpApi/Operations/Passkey.js +5 -0
- package/dist/HttpApi/Operations/Passkey.js.map +1 -0
- package/dist/HttpApi/Operations/Password.d.ts +22 -0
- package/dist/HttpApi/Operations/Password.d.ts.map +1 -0
- package/dist/HttpApi/Operations/Password.js +5 -0
- package/dist/HttpApi/Operations/Password.js.map +1 -0
- package/dist/HttpApi/Operations/RecoveryCodes.d.ts +20 -0
- package/dist/HttpApi/Operations/RecoveryCodes.d.ts.map +1 -0
- package/dist/HttpApi/Operations/RecoveryCodes.js +5 -0
- package/dist/HttpApi/Operations/RecoveryCodes.js.map +1 -0
- package/dist/HttpApi/Operations/RefreshToken.d.ts +12 -0
- package/dist/HttpApi/Operations/RefreshToken.d.ts.map +1 -0
- package/dist/HttpApi/Operations/RefreshToken.js +5 -0
- package/dist/HttpApi/Operations/RefreshToken.js.map +1 -0
- package/dist/HttpApi/Operations/Security.d.ts +12 -0
- package/dist/HttpApi/Operations/Security.d.ts.map +1 -0
- package/dist/HttpApi/Operations/Security.js +5 -0
- package/dist/HttpApi/Operations/Security.js.map +1 -0
- package/dist/HttpApi/Operations/SecurityTimeline.d.ts +19 -0
- package/dist/HttpApi/Operations/SecurityTimeline.d.ts.map +1 -0
- package/dist/HttpApi/Operations/SecurityTimeline.js +7 -0
- package/dist/HttpApi/Operations/SecurityTimeline.js.map +1 -0
- package/dist/HttpApi/Operations/Session.d.ts +22 -0
- package/dist/HttpApi/Operations/Session.d.ts.map +1 -0
- package/dist/HttpApi/Operations/Session.js +5 -0
- package/dist/HttpApi/Operations/Session.js.map +1 -0
- package/dist/HttpApi/Operations/StepUp.d.ts +22 -0
- package/dist/HttpApi/Operations/StepUp.d.ts.map +1 -0
- package/dist/HttpApi/Operations/StepUp.js +5 -0
- package/dist/HttpApi/Operations/StepUp.js.map +1 -0
- package/dist/HttpApi/Operations/Totp.d.ts +20 -0
- package/dist/HttpApi/Operations/Totp.d.ts.map +1 -0
- package/dist/HttpApi/Operations/Totp.js +5 -0
- package/dist/HttpApi/Operations/Totp.js.map +1 -0
- package/dist/HttpApi/Operations/TrustedDevice.d.ts +23 -0
- package/dist/HttpApi/Operations/TrustedDevice.d.ts.map +1 -0
- package/dist/HttpApi/Operations/TrustedDevice.js +7 -0
- package/dist/HttpApi/Operations/TrustedDevice.js.map +1 -0
- package/dist/HttpApi/Operations/index.d.ts +27 -0
- package/dist/HttpApi/Operations/index.d.ts.map +1 -0
- package/dist/HttpApi/Operations/index.js +27 -0
- package/dist/HttpApi/Operations/index.js.map +1 -0
- package/dist/HttpApi/Passkey.d.ts +5 -0
- package/dist/HttpApi/Passkey.d.ts.map +1 -0
- package/dist/HttpApi/Passkey.js +5 -0
- package/dist/HttpApi/Passkey.js.map +1 -0
- package/dist/HttpApi/Password.d.ts +220 -0
- package/dist/HttpApi/Password.d.ts.map +1 -0
- package/dist/HttpApi/Password.js +237 -0
- package/dist/HttpApi/Password.js.map +1 -0
- package/dist/HttpApi/PasswordContract.d.ts +307 -0
- package/dist/HttpApi/PasswordContract.d.ts.map +1 -0
- package/dist/HttpApi/PasswordContract.js +63 -0
- package/dist/HttpApi/PasswordContract.js.map +1 -0
- package/dist/HttpApi/PasswordGuards.d.ts +82 -0
- package/dist/HttpApi/PasswordGuards.d.ts.map +1 -0
- package/dist/HttpApi/PasswordGuards.js +179 -0
- package/dist/HttpApi/PasswordGuards.js.map +1 -0
- package/dist/HttpApi/RecoveryCodes.d.ts +5 -0
- package/dist/HttpApi/RecoveryCodes.d.ts.map +1 -0
- package/dist/HttpApi/RecoveryCodes.js +5 -0
- package/dist/HttpApi/RecoveryCodes.js.map +1 -0
- package/dist/HttpApi/RefreshToken.d.ts +4 -0
- package/dist/HttpApi/RefreshToken.d.ts.map +1 -0
- package/dist/HttpApi/RefreshToken.js +4 -0
- package/dist/HttpApi/RefreshToken.js.map +1 -0
- package/dist/HttpApi/RequestGuards.d.ts +42 -0
- package/dist/HttpApi/RequestGuards.d.ts.map +1 -0
- package/dist/HttpApi/RequestGuards.js +194 -0
- package/dist/HttpApi/RequestGuards.js.map +1 -0
- package/dist/HttpApi/Schemas.d.ts +361 -84
- package/dist/HttpApi/Schemas.d.ts.map +1 -1
- package/dist/HttpApi/Schemas.js +190 -27
- package/dist/HttpApi/Schemas.js.map +1 -1
- package/dist/HttpApi/Security.d.ts +12 -93
- package/dist/HttpApi/Security.d.ts.map +1 -1
- package/dist/HttpApi/Security.js +65 -356
- package/dist/HttpApi/Security.js.map +1 -1
- package/dist/HttpApi/SecurityTimeline.d.ts +4 -0
- package/dist/HttpApi/SecurityTimeline.d.ts.map +1 -0
- package/dist/HttpApi/SecurityTimeline.js +4 -0
- package/dist/HttpApi/SecurityTimeline.js.map +1 -0
- package/dist/HttpApi/Session.d.ts +5 -0
- package/dist/HttpApi/Session.d.ts.map +1 -0
- package/dist/HttpApi/Session.js +5 -0
- package/dist/HttpApi/Session.js.map +1 -0
- package/dist/HttpApi/SessionGuards.d.ts +15 -0
- package/dist/HttpApi/SessionGuards.d.ts.map +1 -0
- package/dist/HttpApi/SessionGuards.js +37 -0
- package/dist/HttpApi/SessionGuards.js.map +1 -0
- package/dist/HttpApi/StepUp.d.ts +5 -0
- package/dist/HttpApi/StepUp.d.ts.map +1 -0
- package/dist/HttpApi/StepUp.js +5 -0
- package/dist/HttpApi/StepUp.js.map +1 -0
- package/dist/HttpApi/Totp.d.ts +5 -0
- package/dist/HttpApi/Totp.d.ts.map +1 -0
- package/dist/HttpApi/Totp.js +5 -0
- package/dist/HttpApi/Totp.js.map +1 -0
- package/dist/HttpApi/Transport.d.ts +4 -6
- package/dist/HttpApi/Transport.d.ts.map +1 -1
- package/dist/HttpApi/Transport.js +62 -36
- package/dist/HttpApi/Transport.js.map +1 -1
- package/dist/HttpApi/TrustedDevice.d.ts +4 -0
- package/dist/HttpApi/TrustedDevice.d.ts.map +1 -0
- package/dist/HttpApi/TrustedDevice.js +4 -0
- package/dist/HttpApi/TrustedDevice.js.map +1 -0
- package/dist/HttpApi/index.d.ts +9 -3
- package/dist/HttpApi/index.d.ts.map +1 -1
- package/dist/HttpApi/index.js +8 -2
- package/dist/HttpApi/index.js.map +1 -1
- package/dist/Identity.d.ts +138 -0
- package/dist/Identity.d.ts.map +1 -0
- package/dist/Identity.js +105 -0
- package/dist/Identity.js.map +1 -0
- package/dist/IdentityManagement.d.ts +189 -0
- package/dist/IdentityManagement.d.ts.map +1 -0
- package/dist/IdentityManagement.js +317 -0
- package/dist/IdentityManagement.js.map +1 -0
- package/dist/IncidentAction.d.ts +1 -4
- package/dist/IncidentAction.d.ts.map +1 -1
- package/dist/IncidentAction.js +15 -9
- package/dist/IncidentAction.js.map +1 -1
- package/dist/Internal.d.ts +2 -0
- package/dist/Internal.d.ts.map +1 -1
- package/dist/Internal.js +30 -0
- package/dist/Internal.js.map +1 -1
- package/dist/Invitation.d.ts +362 -0
- package/dist/Invitation.d.ts.map +1 -0
- package/dist/Invitation.js +633 -0
- package/dist/Invitation.js.map +1 -0
- package/dist/IpQualityScore.d.ts +38 -0
- package/dist/IpQualityScore.d.ts.map +1 -0
- package/dist/IpQualityScore.js +215 -0
- package/dist/IpQualityScore.js.map +1 -0
- package/dist/Jwt.d.ts +8 -29
- package/dist/Jwt.d.ts.map +1 -1
- package/dist/Jwt.js +67 -56
- package/dist/Jwt.js.map +1 -1
- package/dist/LoginApproval.d.ts +15 -30
- package/dist/LoginApproval.d.ts.map +1 -1
- package/dist/LoginApproval.js +47 -41
- package/dist/LoginApproval.js.map +1 -1
- package/dist/LoginNotification.d.ts +7 -11
- package/dist/LoginNotification.d.ts.map +1 -1
- package/dist/LoginNotification.js +30 -17
- package/dist/LoginNotification.js.map +1 -1
- package/dist/LoginRisk.d.ts +11 -13
- package/dist/LoginRisk.d.ts.map +1 -1
- package/dist/LoginRisk.js +66 -26
- package/dist/LoginRisk.js.map +1 -1
- package/dist/LoginRiskEnrichment.d.ts +145 -0
- package/dist/LoginRiskEnrichment.d.ts.map +1 -0
- package/dist/LoginRiskEnrichment.js +220 -0
- package/dist/LoginRiskEnrichment.js.map +1 -0
- package/dist/MagicLink.d.ts +9 -8
- package/dist/MagicLink.d.ts.map +1 -1
- package/dist/MagicLink.js +40 -73
- package/dist/MagicLink.js.map +1 -1
- package/dist/Mailer.d.ts +19 -12
- package/dist/Mailer.d.ts.map +1 -1
- package/dist/Mailer.js +10 -12
- package/dist/Mailer.js.map +1 -1
- package/dist/OAuth.d.ts +93 -96
- package/dist/OAuth.d.ts.map +1 -1
- package/dist/OAuth.js +404 -217
- package/dist/OAuth.js.map +1 -1
- package/dist/Passkey.d.ts +15 -17
- package/dist/Passkey.d.ts.map +1 -1
- package/dist/Passkey.js +86 -39
- package/dist/Passkey.js.map +1 -1
- package/dist/PasskeyBrowser.d.ts +39 -0
- package/dist/PasskeyBrowser.d.ts.map +1 -0
- package/dist/PasskeyBrowser.js +206 -0
- package/dist/PasskeyBrowser.js.map +1 -0
- package/dist/PasskeySimpleWebAuthn.d.ts.map +1 -1
- package/dist/PasskeySimpleWebAuthn.js +19 -7
- package/dist/PasskeySimpleWebAuthn.js.map +1 -1
- package/dist/Password.d.ts +71 -37
- package/dist/Password.d.ts.map +1 -1
- package/dist/Password.js +295 -81
- package/dist/Password.js.map +1 -1
- package/dist/PasswordRisk.d.ts +63 -0
- package/dist/PasswordRisk.d.ts.map +1 -0
- package/dist/PasswordRisk.js +37 -0
- package/dist/PasswordRisk.js.map +1 -0
- package/dist/Permission.d.ts +308 -0
- package/dist/Permission.d.ts.map +1 -0
- package/dist/Permission.js +827 -0
- package/dist/Permission.js.map +1 -0
- package/dist/Policy.d.ts +31 -18
- package/dist/Policy.d.ts.map +1 -1
- package/dist/Policy.js +58 -14
- package/dist/Policy.js.map +1 -1
- package/dist/PostgresDelegatedAccessStorageMigrations.d.ts +7 -0
- package/dist/PostgresDelegatedAccessStorageMigrations.d.ts.map +1 -0
- package/dist/PostgresDelegatedAccessStorageMigrations.js +119 -0
- package/dist/PostgresDelegatedAccessStorageMigrations.js.map +1 -0
- package/dist/PostgresStorageMigrations.d.ts +15 -0
- package/dist/PostgresStorageMigrations.d.ts.map +1 -0
- package/dist/PostgresStorageMigrations.js +620 -0
- package/dist/PostgresStorageMigrations.js.map +1 -0
- package/dist/Privacy.d.ts +0 -3
- package/dist/Privacy.d.ts.map +1 -1
- package/dist/Privacy.js +2 -5
- package/dist/Privacy.js.map +1 -1
- package/dist/RateLimiter.d.ts +0 -3
- package/dist/RateLimiter.d.ts.map +1 -1
- package/dist/RateLimiter.js +1 -4
- package/dist/RateLimiter.js.map +1 -1
- package/dist/RecoveryCode.d.ts +83 -11
- package/dist/RecoveryCode.d.ts.map +1 -1
- package/dist/RecoveryCode.js +273 -75
- package/dist/RecoveryCode.js.map +1 -1
- package/dist/RecoveryPolicy.d.ts +81 -0
- package/dist/RecoveryPolicy.d.ts.map +1 -0
- package/dist/RecoveryPolicy.js +119 -0
- package/dist/RecoveryPolicy.js.map +1 -0
- package/dist/RefreshToken.d.ts +0 -9
- package/dist/RefreshToken.d.ts.map +1 -1
- package/dist/RefreshToken.js +31 -22
- package/dist/RefreshToken.js.map +1 -1
- package/dist/SecurityTimeline.d.ts +1 -4
- package/dist/SecurityTimeline.d.ts.map +1 -1
- package/dist/SecurityTimeline.js +110 -17
- package/dist/SecurityTimeline.js.map +1 -1
- package/dist/Sessions.d.ts +124 -29
- package/dist/Sessions.d.ts.map +1 -1
- package/dist/Sessions.js +626 -94
- package/dist/Sessions.js.map +1 -1
- package/dist/StepUp.d.ts +132 -11
- package/dist/StepUp.d.ts.map +1 -1
- package/dist/StepUp.js +387 -19
- package/dist/StepUp.js.map +1 -1
- package/dist/Storage.d.ts +89 -23
- package/dist/Storage.d.ts.map +1 -1
- package/dist/Storage.js +10 -12
- package/dist/Storage.js.map +1 -1
- package/dist/StorageMigrations.d.ts +6 -1
- package/dist/StorageMigrations.d.ts.map +1 -1
- package/dist/StorageMigrations.js +224 -0
- package/dist/StorageMigrations.js.map +1 -1
- package/dist/StorageSchemaGenerator.d.ts +486 -0
- package/dist/StorageSchemaGenerator.d.ts.map +1 -0
- package/dist/StorageSchemaGenerator.js +1022 -0
- package/dist/StorageSchemaGenerator.js.map +1 -0
- package/dist/StrongFactor.d.ts +64 -0
- package/dist/StrongFactor.d.ts.map +1 -0
- package/dist/StrongFactor.js +100 -0
- package/dist/StrongFactor.js.map +1 -0
- package/dist/Testing.js +2 -2
- package/dist/Testing.js.map +1 -1
- package/dist/Totp.d.ts +88 -13
- package/dist/Totp.d.ts.map +1 -1
- package/dist/Totp.js +192 -34
- package/dist/Totp.js.map +1 -1
- package/dist/TrustedDevice.d.ts +0 -9
- package/dist/TrustedDevice.d.ts.map +1 -1
- package/dist/TrustedDevice.js +15 -17
- package/dist/TrustedDevice.js.map +1 -1
- package/dist/WaitUntil.d.ts +0 -3
- package/dist/WaitUntil.d.ts.map +1 -1
- package/dist/WaitUntil.js +1 -4
- package/dist/WaitUntil.js.map +1 -1
- package/dist/Webhook.d.ts +42 -12
- package/dist/Webhook.d.ts.map +1 -1
- package/dist/Webhook.js +165 -26
- package/dist/Webhook.js.map +1 -1
- package/dist/alchemy/cloudflare/Email.d.ts.map +1 -1
- package/dist/alchemy/cloudflare/Email.js +9 -4
- package/dist/alchemy/cloudflare/Email.js.map +1 -1
- package/dist/cloudflare/Email.js +1 -1
- package/dist/cloudflare/Email.js.map +1 -1
- package/dist/cloudflare/RequestMetadata.d.ts +49 -0
- package/dist/cloudflare/RequestMetadata.d.ts.map +1 -0
- package/dist/cloudflare/RequestMetadata.js +71 -0
- package/dist/cloudflare/RequestMetadata.js.map +1 -0
- package/dist/index.d.ts +0 -35
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -35
- package/dist/index.js.map +1 -1
- package/dist/internal/AuthFlowFinalizer.d.ts +31 -0
- package/dist/internal/AuthFlowFinalizer.d.ts.map +1 -0
- package/dist/internal/AuthFlowFinalizer.js +182 -0
- package/dist/internal/AuthFlowFinalizer.js.map +1 -0
- package/migrations/0001_auth_storage.sql +1 -0
- package/migrations/0006_auth_totp_factor.sql +1 -0
- package/migrations/0024_auth_permission.sql +39 -0
- package/migrations/0025_auth_permission_definition.sql +19 -0
- package/migrations/0026_auth_user_identity.sql +59 -0
- package/migrations/0027_auth_audit_log_storage_order.sql +46 -0
- package/migrations/0028_auth_oauth_client_secret_key.sql +39 -0
- package/migrations/delegated-access/0001_auth_delegated_access.sql +152 -0
- package/migrations/postgres/0001_auth_core.sql +77 -0
- package/migrations/postgres/0002_auth_security_oauth.sql +65 -0
- package/migrations/postgres/0003_auth_credentials_tokens.sql +43 -0
- package/migrations/postgres/0004_auth_security_history.sql +103 -0
- package/migrations/postgres/0005_auth_webhooks.sql +29 -0
- package/migrations/postgres/0006_auth_domain_timeline.sql +50 -0
- package/migrations/postgres/0007_auth_oauth_clients.sql +85 -0
- package/migrations/postgres/0008_auth_oauth_tokens.sql +63 -0
- package/migrations/postgres/0009_auth_permissions.sql +66 -0
- package/migrations/postgres/delegated-access/0001_auth_delegated_access.sql +112 -0
- package/package.json +301 -2
|
@@ -1,95 +1,131 @@
|
|
|
1
1
|
import { HttpApiEndpoint, HttpApiSchema } from "effect/unstable/httpapi";
|
|
2
|
-
import { AuthBadRequestError,
|
|
3
|
-
export declare const
|
|
4
|
-
readonly
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
readonly
|
|
11
|
-
readonly
|
|
12
|
-
readonly
|
|
13
|
-
readonly
|
|
14
|
-
readonly requirements: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
15
|
-
}>>;
|
|
16
|
-
}>, import("effect/Schema").Struct<{
|
|
17
|
-
readonly type: import("effect/Schema").Literal<"requires_mfa">;
|
|
18
|
-
readonly flowId: import("effect/Schema").String;
|
|
19
|
-
readonly factors: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
20
|
-
readonly type: import("effect/Schema").String;
|
|
21
|
-
}>>;
|
|
22
|
-
}>, import("effect/Schema").Struct<{
|
|
23
|
-
readonly type: import("effect/Schema").Literal<"requires_email_verification">;
|
|
24
|
-
readonly flowId: import("effect/Schema").String;
|
|
25
|
-
}>, import("effect/Schema").Struct<{
|
|
26
|
-
readonly type: import("effect/Schema").Literal<"requires_login_approval">;
|
|
27
|
-
readonly flowId: import("effect/Schema").String;
|
|
28
|
-
readonly approvalChallengeId: import("effect/Schema").String;
|
|
29
|
-
readonly channel: import("effect/Schema").String;
|
|
30
|
-
readonly sessionBinding: import("effect/Schema").Literals<readonly ["originating-device", "approval-device", "none"]>;
|
|
31
|
-
readonly sameDeviceRequired: import("effect/Schema").Boolean;
|
|
32
|
-
readonly reason: import("effect/Schema").String;
|
|
33
|
-
}>, import("effect/Schema").Struct<{
|
|
34
|
-
readonly type: import("effect/Schema").Literal<"requires_passkey_enrollment">;
|
|
35
|
-
readonly flowId: import("effect/Schema").String;
|
|
36
|
-
}>]>>, HttpApiEndpoint.Json<typeof AuthBadRequestError | typeof AuthInvalidCredentialsError | typeof AuthPolicyDeniedError | typeof AuthRateLimitedError | typeof AuthInternalError>, never, never>;
|
|
37
|
-
export declare const passwordSignUpEndpoint: HttpApiEndpoint.HttpApiEndpoint<"signUp", "POST", "/sign-up", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
|
|
38
|
-
readonly email: import("effect/Schema").brand<import("effect/Schema").String, "auth/Email">;
|
|
39
|
-
readonly password: import("effect/Schema").String;
|
|
40
|
-
readonly emailVerified: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
41
|
-
readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
|
|
42
|
-
}>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
43
|
-
readonly type: import("effect/Schema").Literal<"authenticated">;
|
|
44
|
-
readonly expiresAt: import("effect/Schema").Number;
|
|
45
|
-
readonly aal: import("effect/Schema").Literals<readonly ["aal1", "aal2", "aal3"]>;
|
|
46
|
-
readonly amr: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
47
|
-
readonly mfaVerifiedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
|
|
48
|
-
readonly claims: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
49
|
-
readonly emailVerified: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
50
|
-
readonly requirements: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
2
|
+
import { AuthBadRequestError, AuthConflictError, AuthIdentityAlreadyRegisteredError, AuthInternalError, AuthInvalidCredentialsError, AuthNotFoundError, AuthPolicyDeniedError, AuthRateLimitedError, AuthRequestRejectedError, AuthStepUpRequiredError, AuthUnauthenticatedError, OAuthAuthorizationEndpointError, OAuthTokenEndpointError, OAuthTokenIntrospectionEndpointError, OAuthTokenRevocationEndpointError } from "./Errors.js";
|
|
3
|
+
export declare const identityAvailabilityEndpoint: HttpApiEndpoint.HttpApiEndpoint<"availability", "POST", "/availability", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
4
|
+
readonly scope: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
5
|
+
readonly type: import("effect/Schema").Literal<"global">;
|
|
6
|
+
}>, import("effect/Schema").Struct<{
|
|
7
|
+
readonly type: import("effect/Schema").Literal<"tenant">;
|
|
8
|
+
readonly tenantId: import("effect/Schema").String;
|
|
9
|
+
}>]>;
|
|
10
|
+
readonly kind: import("effect/Schema").String;
|
|
11
|
+
readonly value: import("effect/Schema").String;
|
|
12
|
+
readonly botChallenge: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
13
|
+
readonly token: import("effect/Schema").String;
|
|
51
14
|
}>>;
|
|
52
|
-
}
|
|
53
|
-
readonly
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
15
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
16
|
+
readonly available: import("effect/Schema").Boolean;
|
|
17
|
+
}>>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthIdentityAlreadyRegisteredError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
|
|
18
|
+
export declare const identityListEndpoint: HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
19
|
+
readonly identities: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
20
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "auth/IdentityId">;
|
|
21
|
+
readonly scope: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
22
|
+
readonly type: import("effect/Schema").Literal<"global">;
|
|
23
|
+
}>, import("effect/Schema").Struct<{
|
|
24
|
+
readonly type: import("effect/Schema").Literal<"tenant">;
|
|
25
|
+
readonly tenantId: import("effect/Schema").String;
|
|
26
|
+
}>]>;
|
|
27
|
+
readonly kind: import("effect/Schema").String;
|
|
28
|
+
readonly value: import("effect/Schema").String;
|
|
29
|
+
readonly verified: import("effect/Schema").Boolean;
|
|
30
|
+
readonly loginEligible: import("effect/Schema").Boolean;
|
|
31
|
+
readonly isPrimaryLogin: import("effect/Schema").Boolean;
|
|
32
|
+
readonly createdAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
|
|
33
|
+
readonly updatedAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
|
|
57
34
|
}>>;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
readonly
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
readonly
|
|
67
|
-
readonly
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
readonly
|
|
71
|
-
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
readonly
|
|
77
|
-
readonly
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
readonly
|
|
81
|
-
readonly
|
|
82
|
-
readonly
|
|
83
|
-
}>>,
|
|
84
|
-
export declare const
|
|
85
|
-
readonly
|
|
86
|
-
readonly
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
35
|
+
}>>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthIdentityAlreadyRegisteredError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
|
|
36
|
+
export declare const identityAddEndpoint: HttpApiEndpoint.HttpApiEndpoint<"add", "POST", "/add", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
37
|
+
readonly scope: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
38
|
+
readonly type: import("effect/Schema").Literal<"global">;
|
|
39
|
+
}>, import("effect/Schema").Struct<{
|
|
40
|
+
readonly type: import("effect/Schema").Literal<"tenant">;
|
|
41
|
+
readonly tenantId: import("effect/Schema").String;
|
|
42
|
+
}>]>;
|
|
43
|
+
readonly kind: import("effect/Schema").String;
|
|
44
|
+
readonly value: import("effect/Schema").String;
|
|
45
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
46
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "auth/IdentityId">;
|
|
47
|
+
readonly scope: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
48
|
+
readonly type: import("effect/Schema").Literal<"global">;
|
|
49
|
+
}>, import("effect/Schema").Struct<{
|
|
50
|
+
readonly type: import("effect/Schema").Literal<"tenant">;
|
|
51
|
+
readonly tenantId: import("effect/Schema").String;
|
|
52
|
+
}>]>;
|
|
53
|
+
readonly kind: import("effect/Schema").String;
|
|
54
|
+
readonly value: import("effect/Schema").String;
|
|
55
|
+
readonly verified: import("effect/Schema").Boolean;
|
|
56
|
+
readonly loginEligible: import("effect/Schema").Boolean;
|
|
57
|
+
readonly isPrimaryLogin: import("effect/Schema").Boolean;
|
|
58
|
+
readonly createdAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
|
|
59
|
+
readonly updatedAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
|
|
60
|
+
}>>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthIdentityAlreadyRegisteredError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
|
|
61
|
+
export declare const identityReplaceEndpoint: HttpApiEndpoint.HttpApiEndpoint<"replace", "POST", "/replace", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
62
|
+
readonly identityId: import("effect/Schema").brand<import("effect/Schema").String, "auth/IdentityId">;
|
|
63
|
+
readonly expectedUpdatedAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
|
|
64
|
+
readonly scope: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
65
|
+
readonly type: import("effect/Schema").Literal<"global">;
|
|
66
|
+
}>, import("effect/Schema").Struct<{
|
|
67
|
+
readonly type: import("effect/Schema").Literal<"tenant">;
|
|
68
|
+
readonly tenantId: import("effect/Schema").String;
|
|
69
|
+
}>]>;
|
|
70
|
+
readonly kind: import("effect/Schema").String;
|
|
71
|
+
readonly value: import("effect/Schema").String;
|
|
72
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
73
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "auth/IdentityId">;
|
|
74
|
+
readonly scope: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
75
|
+
readonly type: import("effect/Schema").Literal<"global">;
|
|
76
|
+
}>, import("effect/Schema").Struct<{
|
|
77
|
+
readonly type: import("effect/Schema").Literal<"tenant">;
|
|
78
|
+
readonly tenantId: import("effect/Schema").String;
|
|
79
|
+
}>]>;
|
|
80
|
+
readonly kind: import("effect/Schema").String;
|
|
81
|
+
readonly value: import("effect/Schema").String;
|
|
82
|
+
readonly verified: import("effect/Schema").Boolean;
|
|
83
|
+
readonly loginEligible: import("effect/Schema").Boolean;
|
|
84
|
+
readonly isPrimaryLogin: import("effect/Schema").Boolean;
|
|
85
|
+
readonly createdAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
|
|
86
|
+
readonly updatedAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
|
|
87
|
+
}>>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthIdentityAlreadyRegisteredError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
|
|
88
|
+
export declare const identityRevokeEndpoint: HttpApiEndpoint.HttpApiEndpoint<"revoke", "POST", "/revoke", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
89
|
+
readonly identityId: import("effect/Schema").brand<import("effect/Schema").String, "auth/IdentityId">;
|
|
90
|
+
readonly expectedUpdatedAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
|
|
91
|
+
readonly reason: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
92
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
93
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "auth/IdentityId">;
|
|
94
|
+
readonly scope: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
95
|
+
readonly type: import("effect/Schema").Literal<"global">;
|
|
96
|
+
}>, import("effect/Schema").Struct<{
|
|
97
|
+
readonly type: import("effect/Schema").Literal<"tenant">;
|
|
98
|
+
readonly tenantId: import("effect/Schema").String;
|
|
99
|
+
}>]>;
|
|
100
|
+
readonly kind: import("effect/Schema").String;
|
|
101
|
+
readonly value: import("effect/Schema").String;
|
|
102
|
+
readonly verified: import("effect/Schema").Boolean;
|
|
103
|
+
readonly loginEligible: import("effect/Schema").Boolean;
|
|
104
|
+
readonly isPrimaryLogin: import("effect/Schema").Boolean;
|
|
105
|
+
readonly createdAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
|
|
106
|
+
readonly updatedAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
|
|
107
|
+
}>>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthIdentityAlreadyRegisteredError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
|
|
108
|
+
export declare const identityPrimaryEndpoint: HttpApiEndpoint.HttpApiEndpoint<"primary", "POST", "/primary", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
109
|
+
readonly identityId: import("effect/Schema").brand<import("effect/Schema").String, "auth/IdentityId">;
|
|
110
|
+
readonly expectedUpdatedAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
|
|
111
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
112
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "auth/IdentityId">;
|
|
113
|
+
readonly scope: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
114
|
+
readonly type: import("effect/Schema").Literal<"global">;
|
|
115
|
+
}>, import("effect/Schema").Struct<{
|
|
116
|
+
readonly type: import("effect/Schema").Literal<"tenant">;
|
|
117
|
+
readonly tenantId: import("effect/Schema").String;
|
|
118
|
+
}>]>;
|
|
119
|
+
readonly kind: import("effect/Schema").String;
|
|
120
|
+
readonly value: import("effect/Schema").String;
|
|
121
|
+
readonly verified: import("effect/Schema").Boolean;
|
|
122
|
+
readonly loginEligible: import("effect/Schema").Boolean;
|
|
123
|
+
readonly isPrimaryLogin: import("effect/Schema").Boolean;
|
|
124
|
+
readonly createdAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
|
|
125
|
+
readonly updatedAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
|
|
126
|
+
}>>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthIdentityAlreadyRegisteredError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
|
|
127
|
+
export { passwordChangeEndpoint, passwordResetStartEndpoint, passwordResetVerifyEndpoint, passwordSetEndpoint, passwordSignInEndpoint, passwordSignUpEndpoint, } from "./PasswordContract.js";
|
|
128
|
+
export declare const currentSessionEndpoint: HttpApiEndpoint.HttpApiEndpoint<"current", "GET", "/session", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
93
129
|
readonly type: import("effect/Schema").Literal<"authenticated">;
|
|
94
130
|
readonly userId: import("effect/Schema").String;
|
|
95
131
|
readonly sessionId: import("effect/Schema").String;
|
|
@@ -99,11 +135,14 @@ export declare const currentSessionEndpoint: HttpApiEndpoint.HttpApiEndpoint<"cu
|
|
|
99
135
|
readonly amr: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
100
136
|
readonly mfaVerifiedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
|
|
101
137
|
readonly claims: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
102
|
-
readonly
|
|
138
|
+
readonly verifiedIdentityKinds: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
103
139
|
readonly requirements: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
140
|
+
readonly recoveryEnrollment: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
141
|
+
readonly allowed: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
142
|
+
}>>;
|
|
104
143
|
}>>;
|
|
105
|
-
}>>,
|
|
106
|
-
export declare const refreshSessionEndpoint: HttpApiEndpoint.HttpApiEndpoint<"refresh", "POST", "/session/refresh",
|
|
144
|
+
}>>, import("effect/Schema").toCodecJson<typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
|
|
145
|
+
export declare const refreshSessionEndpoint: HttpApiEndpoint.HttpApiEndpoint<"refresh", "POST", "/session/refresh", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
107
146
|
readonly type: import("effect/Schema").Literal<"authenticated">;
|
|
108
147
|
readonly userId: import("effect/Schema").String;
|
|
109
148
|
readonly sessionId: import("effect/Schema").String;
|
|
@@ -113,12 +152,15 @@ export declare const refreshSessionEndpoint: HttpApiEndpoint.HttpApiEndpoint<"re
|
|
|
113
152
|
readonly amr: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
114
153
|
readonly mfaVerifiedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
|
|
115
154
|
readonly claims: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
116
|
-
readonly
|
|
155
|
+
readonly verifiedIdentityKinds: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
117
156
|
readonly requirements: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
157
|
+
readonly recoveryEnrollment: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
158
|
+
readonly allowed: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
159
|
+
}>>;
|
|
118
160
|
}>>;
|
|
119
|
-
}>>,
|
|
120
|
-
export declare const logoutEndpoint: HttpApiEndpoint.HttpApiEndpoint<"logout", "POST", "/logout",
|
|
121
|
-
export declare const listSessionsEndpoint: HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/sessions",
|
|
161
|
+
}>>, import("effect/Schema").toCodecJson<typeof AuthUnauthenticatedError | typeof AuthInternalError>, never, never>;
|
|
162
|
+
export declare const logoutEndpoint: HttpApiEndpoint.HttpApiEndpoint<"logout", "POST", "/logout", never, never, never, never, import("effect/Schema").toCodecJson<HttpApiSchema.NoContent>, import("effect/Schema").toCodecJson<typeof AuthInternalError>, never, never>;
|
|
163
|
+
export declare const listSessionsEndpoint: HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/sessions", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
122
164
|
readonly sessions: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
123
165
|
readonly sessionId: import("effect/Schema").brand<import("effect/Schema").String, "auth/SessionId">;
|
|
124
166
|
readonly userId: import("effect/Schema").brand<import("effect/Schema").String, "auth/UserId">;
|
|
@@ -131,8 +173,11 @@ export declare const listSessionsEndpoint: HttpApiEndpoint.HttpApiEndpoint<"list
|
|
|
131
173
|
readonly mfaVerifiedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
|
|
132
174
|
readonly current: import("effect/Schema").Boolean;
|
|
133
175
|
readonly claims: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
134
|
-
readonly
|
|
176
|
+
readonly verifiedIdentityKinds: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
135
177
|
readonly requirements: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
178
|
+
readonly recoveryEnrollment: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
179
|
+
readonly allowed: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
180
|
+
}>>;
|
|
136
181
|
}>>;
|
|
137
182
|
readonly ip: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
138
183
|
readonly userAgent: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
@@ -143,14 +188,14 @@ export declare const listSessionsEndpoint: HttpApiEndpoint.HttpApiEndpoint<"list
|
|
|
143
188
|
readonly longitude: import("effect/Schema").optional<import("effect/Schema").Number>;
|
|
144
189
|
readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
|
|
145
190
|
}>>;
|
|
146
|
-
}>>,
|
|
147
|
-
export declare const revokeSessionEndpoint: HttpApiEndpoint.HttpApiEndpoint<"revoke", "POST", "/sessions/revoke",
|
|
191
|
+
}>>, import("effect/Schema").toCodecJson<typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
|
|
192
|
+
export declare const revokeSessionEndpoint: HttpApiEndpoint.HttpApiEndpoint<"revoke", "POST", "/sessions/revoke", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
148
193
|
readonly sessionId: import("effect/Schema").brand<import("effect/Schema").String, "auth/SessionId">;
|
|
149
|
-
}>>,
|
|
150
|
-
export declare const revokeOtherSessionsEndpoint: HttpApiEndpoint.HttpApiEndpoint<"revokeOthers", "POST", "/sessions/revoke-others",
|
|
151
|
-
export declare const adminSessionListEndpoint: HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/",
|
|
194
|
+
}>>, never, import("effect/Schema").toCodecJson<HttpApiSchema.NoContent>, import("effect/Schema").toCodecJson<typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
|
|
195
|
+
export declare const revokeOtherSessionsEndpoint: HttpApiEndpoint.HttpApiEndpoint<"revokeOthers", "POST", "/sessions/revoke-others", never, never, never, never, import("effect/Schema").toCodecJson<HttpApiSchema.NoContent>, import("effect/Schema").toCodecJson<typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
|
|
196
|
+
export declare const adminSessionListEndpoint: HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
152
197
|
readonly userId: import("effect/Schema").brand<import("effect/Schema").String, "auth/UserId">;
|
|
153
|
-
}>>,
|
|
198
|
+
}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
154
199
|
readonly sessions: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
155
200
|
readonly sessionId: import("effect/Schema").brand<import("effect/Schema").String, "auth/SessionId">;
|
|
156
201
|
readonly userId: import("effect/Schema").brand<import("effect/Schema").String, "auth/UserId">;
|
|
@@ -169,28 +214,119 @@ export declare const adminSessionListEndpoint: HttpApiEndpoint.HttpApiEndpoint<"
|
|
|
169
214
|
readonly latitude: import("effect/Schema").optional<import("effect/Schema").Number>;
|
|
170
215
|
readonly longitude: import("effect/Schema").optional<import("effect/Schema").Number>;
|
|
171
216
|
}>>;
|
|
172
|
-
}>>,
|
|
173
|
-
export declare const adminSessionRevokeEndpoint: HttpApiEndpoint.HttpApiEndpoint<"revoke", "POST", "/revoke",
|
|
217
|
+
}>>, import("effect/Schema").toCodecJson<typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
|
|
218
|
+
export declare const adminSessionRevokeEndpoint: HttpApiEndpoint.HttpApiEndpoint<"revoke", "POST", "/revoke", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
174
219
|
readonly userId: import("effect/Schema").brand<import("effect/Schema").String, "auth/UserId">;
|
|
175
220
|
readonly sessionId: import("effect/Schema").brand<import("effect/Schema").String, "auth/SessionId">;
|
|
176
|
-
}>>,
|
|
177
|
-
export declare const adminSessionRevokeAllEndpoint: HttpApiEndpoint.HttpApiEndpoint<"revokeAll", "POST", "/revoke-all",
|
|
221
|
+
}>>, never, import("effect/Schema").toCodecJson<HttpApiSchema.NoContent>, import("effect/Schema").toCodecJson<typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
|
|
222
|
+
export declare const adminSessionRevokeAllEndpoint: HttpApiEndpoint.HttpApiEndpoint<"revokeAll", "POST", "/revoke-all", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
178
223
|
readonly userId: import("effect/Schema").brand<import("effect/Schema").String, "auth/UserId">;
|
|
179
|
-
}>>,
|
|
180
|
-
export declare const
|
|
224
|
+
}>>, never, import("effect/Schema").toCodecJson<HttpApiSchema.NoContent>, import("effect/Schema").toCodecJson<typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
|
|
225
|
+
export declare const adminPermissionDefinitionCreateEndpoint: HttpApiEndpoint.HttpApiEndpoint<"create", "POST", "/permission-definitions", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
226
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "auth/PermissionId">;
|
|
227
|
+
readonly description: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
228
|
+
readonly scopeType: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
229
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
230
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "auth/PermissionId">;
|
|
231
|
+
readonly description: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
232
|
+
readonly scopeType: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
233
|
+
readonly createdAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
|
|
234
|
+
readonly updatedAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
|
|
235
|
+
readonly disabledAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
|
|
236
|
+
readonly deletedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
|
|
237
|
+
}>>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthNotFoundError | typeof AuthConflictError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
|
|
238
|
+
export declare const adminPermissionDefinitionGetEndpoint: HttpApiEndpoint.HttpApiEndpoint<"get", "GET", "/permission-definitions/get", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
239
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "auth/PermissionId">;
|
|
240
|
+
}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
241
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "auth/PermissionId">;
|
|
242
|
+
readonly description: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
243
|
+
readonly scopeType: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
244
|
+
readonly createdAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
|
|
245
|
+
readonly updatedAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
|
|
246
|
+
readonly disabledAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
|
|
247
|
+
readonly deletedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
|
|
248
|
+
}>>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthNotFoundError | typeof AuthConflictError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
|
|
249
|
+
export declare const adminPermissionDefinitionListEndpoint: HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/permission-definitions", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
250
|
+
readonly includeDisabled: import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").Boolean, import("effect/Schema").decodeTo<import("effect/Schema").Boolean, import("effect/Schema").Literals<readonly ["true", "false"]>, never, never>]>>;
|
|
251
|
+
readonly includeDeleted: import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").Boolean, import("effect/Schema").decodeTo<import("effect/Schema").Boolean, import("effect/Schema").Literals<readonly ["true", "false"]>, never, never>]>>;
|
|
252
|
+
readonly after: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").String, "auth/PermissionId">>;
|
|
253
|
+
readonly limit: import("effect/Schema").optional<import("effect/Schema").Union<readonly [import("effect/Schema").Number, import("effect/Schema").NumberFromString]>>;
|
|
254
|
+
}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
255
|
+
readonly definitions: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
256
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "auth/PermissionId">;
|
|
257
|
+
readonly description: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
258
|
+
readonly scopeType: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
259
|
+
readonly createdAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
|
|
260
|
+
readonly updatedAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
|
|
261
|
+
readonly disabledAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
|
|
262
|
+
readonly deletedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
|
|
263
|
+
}>>;
|
|
264
|
+
readonly nextAfter: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").String, "auth/PermissionId">>;
|
|
265
|
+
}>>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthNotFoundError | typeof AuthConflictError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
|
|
266
|
+
export declare const adminPermissionDefinitionUpdateEndpoint: HttpApiEndpoint.HttpApiEndpoint<"update", "POST", "/permission-definitions/update", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
267
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "auth/PermissionId">;
|
|
268
|
+
readonly expectedUpdatedAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
|
|
269
|
+
readonly description: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
270
|
+
readonly scopeType: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
271
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
272
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "auth/PermissionId">;
|
|
273
|
+
readonly description: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
274
|
+
readonly scopeType: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
275
|
+
readonly createdAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
|
|
276
|
+
readonly updatedAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
|
|
277
|
+
readonly disabledAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
|
|
278
|
+
readonly deletedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
|
|
279
|
+
}>>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthNotFoundError | typeof AuthConflictError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
|
|
280
|
+
export declare const adminPermissionDefinitionDisableEndpoint: HttpApiEndpoint.HttpApiEndpoint<"disable", "POST", "/permission-definitions/disable", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
281
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "auth/PermissionId">;
|
|
282
|
+
readonly expectedUpdatedAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
|
|
283
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
284
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "auth/PermissionId">;
|
|
285
|
+
readonly description: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
286
|
+
readonly scopeType: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
287
|
+
readonly createdAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
|
|
288
|
+
readonly updatedAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
|
|
289
|
+
readonly disabledAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
|
|
290
|
+
readonly deletedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
|
|
291
|
+
}>>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthNotFoundError | typeof AuthConflictError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
|
|
292
|
+
export declare const adminPermissionDefinitionEnableEndpoint: HttpApiEndpoint.HttpApiEndpoint<"enable", "POST", "/permission-definitions/enable", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
293
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "auth/PermissionId">;
|
|
294
|
+
readonly expectedUpdatedAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
|
|
295
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
296
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "auth/PermissionId">;
|
|
297
|
+
readonly description: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
298
|
+
readonly scopeType: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
299
|
+
readonly createdAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
|
|
300
|
+
readonly updatedAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
|
|
301
|
+
readonly disabledAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
|
|
302
|
+
readonly deletedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
|
|
303
|
+
}>>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthNotFoundError | typeof AuthConflictError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
|
|
304
|
+
export declare const adminPermissionDefinitionDeleteEndpoint: HttpApiEndpoint.HttpApiEndpoint<"delete", "POST", "/permission-definitions/delete", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
305
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "auth/PermissionId">;
|
|
306
|
+
readonly expectedUpdatedAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
|
|
307
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
308
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "auth/PermissionId">;
|
|
309
|
+
readonly description: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
310
|
+
readonly scopeType: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
311
|
+
readonly createdAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
|
|
312
|
+
readonly updatedAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
|
|
313
|
+
readonly disabledAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
|
|
314
|
+
readonly deletedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
|
|
315
|
+
}>>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthNotFoundError | typeof AuthConflictError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
|
|
316
|
+
export declare const loginNotificationReportEndpoint: HttpApiEndpoint.HttpApiEndpoint<"reportLogin", "POST", "/login/report", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
181
317
|
readonly challengeId: import("effect/Schema").brand<import("effect/Schema").String, "auth/ChallengeId">;
|
|
182
318
|
readonly secret: import("effect/Schema").String;
|
|
183
|
-
}>>,
|
|
184
|
-
export declare const securityTimelineListEndpoint: HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/timeline",
|
|
319
|
+
}>>, never, import("effect/Schema").toCodecJson<HttpApiSchema.NoContent>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthPolicyDeniedError | typeof AuthInternalError>, never, never>;
|
|
320
|
+
export declare const securityTimelineListEndpoint: HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/timeline", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
185
321
|
readonly limit: import("effect/Schema").optional<import("effect/Schema").Number>;
|
|
186
322
|
readonly beforeOccurredAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
|
|
187
|
-
readonly types: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Literals<readonly ["auth.login.succeeded", "auth.login.failed", "auth.session.revoked", "auth.risk.assessed", "auth.policy.denied", "auth.oauth.account.linked", "auth.oauth.account.unlinked", "auth.oauth.link_confirmation.started", "auth.oauth.link_confirmation.confirmed", "auth.oauth.provider_token.refreshed", "auth.oauth.provider_token.revoked", "auth.passkey.credential.revoked", "auth.totp.enrollment.started", "auth.totp.factor.confirmed", "auth.totp.factor.verified", "auth.totp.factor.revoked", "auth.recovery_code.generated", "auth.recovery_code.verified", "auth.recovery_code.revoked", "auth.api_key.created", "auth.api_key.verified", "auth.api_key.revoked", "auth.api_key.verification_failed", "auth.refresh_token.issued", "auth.refresh_token.rotated", "auth.refresh_token.reuse_detected", "auth.refresh_token.revoked", "auth.incident_action.executed", "auth.jwt.introspected", "auth.jwt.revoked"]>>>;
|
|
188
|
-
readonly categories: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Literals<readonly ["api_key", "auth", "incident", "jwt", "mfa", "oauth", "policy", "refresh_token", "risk", "session"]>>>;
|
|
189
|
-
}>>,
|
|
323
|
+
readonly types: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Literals<readonly ["auth.login.succeeded", "auth.login.failed", "auth.session.revoked", "auth.session.assurance_changed", "auth.session.step_up_completed", "auth.session.primary_reauthenticated", "auth.session.recovery_remediation.entered", "auth.session.recovery_remediation.completed", "auth.risk.assessed", "auth.policy.denied", "auth.identity.added", "auth.identity.replaced", "auth.identity.revoked", "auth.identity.primary_changed", "auth.oauth.account.linked", "auth.oauth.account.unlinked", "auth.oauth.link_confirmation.started", "auth.oauth.link_confirmation.confirmed", "auth.oauth.provider_token.refreshed", "auth.oauth.provider_token.revoked", "auth.passkey.credential.revoked", "auth.totp.enrollment.started", "auth.totp.factor.confirmed", "auth.totp.factor.verified", "auth.totp.factor.revoked", "auth.recovery_code.generated", "auth.recovery_code.verified", "auth.recovery_code.revoked", "auth.api_key.created", "auth.api_key.verified", "auth.api_key.revoked", "auth.api_key.verification_failed", "auth.refresh_token.issued", "auth.refresh_token.rotated", "auth.refresh_token.reuse_detected", "auth.refresh_token.revoked", "auth.incident_action.executed", "auth.jwt.introspected", "auth.jwt.revoked", "auth.permission_definition.created", "auth.permission_definition.updated", "auth.permission_definition.disabled", "auth.permission_definition.enabled", "auth.permission_definition.deleted", "auth.role_definition.created", "auth.role_definition.updated", "auth.role_definition.disabled", "auth.role_definition.enabled", "auth.role_definition.deleted", "auth.permission.granted", "auth.permission.revoked", "auth.role.granted", "auth.role.revoked", "auth.role_permission.assigned", "auth.role_permission.removed"]>>>;
|
|
324
|
+
readonly categories: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Literals<readonly ["api_key", "auth", "authorization", "identity", "incident", "jwt", "mfa", "oauth", "policy", "refresh_token", "risk", "session"]>>>;
|
|
325
|
+
}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
190
326
|
readonly events: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
191
327
|
readonly eventId: import("effect/Schema").String;
|
|
192
|
-
readonly type: import("effect/Schema").Literals<readonly ["auth.login.succeeded", "auth.login.failed", "auth.session.revoked", "auth.risk.assessed", "auth.policy.denied", "auth.oauth.account.linked", "auth.oauth.account.unlinked", "auth.oauth.link_confirmation.started", "auth.oauth.link_confirmation.confirmed", "auth.oauth.provider_token.refreshed", "auth.oauth.provider_token.revoked", "auth.passkey.credential.revoked", "auth.totp.enrollment.started", "auth.totp.factor.confirmed", "auth.totp.factor.verified", "auth.totp.factor.revoked", "auth.recovery_code.generated", "auth.recovery_code.verified", "auth.recovery_code.revoked", "auth.api_key.created", "auth.api_key.verified", "auth.api_key.revoked", "auth.api_key.verification_failed", "auth.refresh_token.issued", "auth.refresh_token.rotated", "auth.refresh_token.reuse_detected", "auth.refresh_token.revoked", "auth.incident_action.executed", "auth.jwt.introspected", "auth.jwt.revoked"]>;
|
|
193
|
-
readonly category: import("effect/Schema").Literals<readonly ["api_key", "auth", "incident", "jwt", "mfa", "oauth", "policy", "refresh_token", "risk", "session"]>;
|
|
328
|
+
readonly type: import("effect/Schema").Literals<readonly ["auth.login.succeeded", "auth.login.failed", "auth.session.revoked", "auth.session.assurance_changed", "auth.session.step_up_completed", "auth.session.primary_reauthenticated", "auth.session.recovery_remediation.entered", "auth.session.recovery_remediation.completed", "auth.risk.assessed", "auth.policy.denied", "auth.identity.added", "auth.identity.replaced", "auth.identity.revoked", "auth.identity.primary_changed", "auth.oauth.account.linked", "auth.oauth.account.unlinked", "auth.oauth.link_confirmation.started", "auth.oauth.link_confirmation.confirmed", "auth.oauth.provider_token.refreshed", "auth.oauth.provider_token.revoked", "auth.passkey.credential.revoked", "auth.totp.enrollment.started", "auth.totp.factor.confirmed", "auth.totp.factor.verified", "auth.totp.factor.revoked", "auth.recovery_code.generated", "auth.recovery_code.verified", "auth.recovery_code.revoked", "auth.api_key.created", "auth.api_key.verified", "auth.api_key.revoked", "auth.api_key.verification_failed", "auth.refresh_token.issued", "auth.refresh_token.rotated", "auth.refresh_token.reuse_detected", "auth.refresh_token.revoked", "auth.incident_action.executed", "auth.jwt.introspected", "auth.jwt.revoked", "auth.permission_definition.created", "auth.permission_definition.updated", "auth.permission_definition.disabled", "auth.permission_definition.enabled", "auth.permission_definition.deleted", "auth.role_definition.created", "auth.role_definition.updated", "auth.role_definition.disabled", "auth.role_definition.enabled", "auth.role_definition.deleted", "auth.permission.granted", "auth.permission.revoked", "auth.role.granted", "auth.role.revoked", "auth.role_permission.assigned", "auth.role_permission.removed"]>;
|
|
329
|
+
readonly category: import("effect/Schema").Literals<readonly ["api_key", "auth", "authorization", "identity", "incident", "jwt", "mfa", "oauth", "policy", "refresh_token", "risk", "session"]>;
|
|
194
330
|
readonly severity: import("effect/Schema").Literals<readonly ["info", "warning", "critical"]>;
|
|
195
331
|
readonly occurredAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
|
|
196
332
|
readonly summary: import("effect/Schema").String;
|
|
@@ -206,18 +342,18 @@ export declare const securityTimelineListEndpoint: HttpApiEndpoint.HttpApiEndpoi
|
|
|
206
342
|
}>>;
|
|
207
343
|
readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
|
|
208
344
|
}>>;
|
|
209
|
-
}>>,
|
|
210
|
-
export declare const adminSecurityTimelineListEndpoint: HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/timeline",
|
|
345
|
+
}>>, import("effect/Schema").toCodecJson<typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
|
|
346
|
+
export declare const adminSecurityTimelineListEndpoint: HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/timeline", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
211
347
|
readonly userId: import("effect/Schema").brand<import("effect/Schema").String, "auth/UserId">;
|
|
212
348
|
readonly limit: import("effect/Schema").optional<import("effect/Schema").Number>;
|
|
213
349
|
readonly beforeOccurredAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
|
|
214
|
-
readonly types: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Literals<readonly ["auth.login.succeeded", "auth.login.failed", "auth.session.revoked", "auth.risk.assessed", "auth.policy.denied", "auth.oauth.account.linked", "auth.oauth.account.unlinked", "auth.oauth.link_confirmation.started", "auth.oauth.link_confirmation.confirmed", "auth.oauth.provider_token.refreshed", "auth.oauth.provider_token.revoked", "auth.passkey.credential.revoked", "auth.totp.enrollment.started", "auth.totp.factor.confirmed", "auth.totp.factor.verified", "auth.totp.factor.revoked", "auth.recovery_code.generated", "auth.recovery_code.verified", "auth.recovery_code.revoked", "auth.api_key.created", "auth.api_key.verified", "auth.api_key.revoked", "auth.api_key.verification_failed", "auth.refresh_token.issued", "auth.refresh_token.rotated", "auth.refresh_token.reuse_detected", "auth.refresh_token.revoked", "auth.incident_action.executed", "auth.jwt.introspected", "auth.jwt.revoked"]>>>;
|
|
215
|
-
readonly categories: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Literals<readonly ["api_key", "auth", "incident", "jwt", "mfa", "oauth", "policy", "refresh_token", "risk", "session"]>>>;
|
|
216
|
-
}>>,
|
|
350
|
+
readonly types: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Literals<readonly ["auth.login.succeeded", "auth.login.failed", "auth.session.revoked", "auth.session.assurance_changed", "auth.session.step_up_completed", "auth.session.primary_reauthenticated", "auth.session.recovery_remediation.entered", "auth.session.recovery_remediation.completed", "auth.risk.assessed", "auth.policy.denied", "auth.identity.added", "auth.identity.replaced", "auth.identity.revoked", "auth.identity.primary_changed", "auth.oauth.account.linked", "auth.oauth.account.unlinked", "auth.oauth.link_confirmation.started", "auth.oauth.link_confirmation.confirmed", "auth.oauth.provider_token.refreshed", "auth.oauth.provider_token.revoked", "auth.passkey.credential.revoked", "auth.totp.enrollment.started", "auth.totp.factor.confirmed", "auth.totp.factor.verified", "auth.totp.factor.revoked", "auth.recovery_code.generated", "auth.recovery_code.verified", "auth.recovery_code.revoked", "auth.api_key.created", "auth.api_key.verified", "auth.api_key.revoked", "auth.api_key.verification_failed", "auth.refresh_token.issued", "auth.refresh_token.rotated", "auth.refresh_token.reuse_detected", "auth.refresh_token.revoked", "auth.incident_action.executed", "auth.jwt.introspected", "auth.jwt.revoked", "auth.permission_definition.created", "auth.permission_definition.updated", "auth.permission_definition.disabled", "auth.permission_definition.enabled", "auth.permission_definition.deleted", "auth.role_definition.created", "auth.role_definition.updated", "auth.role_definition.disabled", "auth.role_definition.enabled", "auth.role_definition.deleted", "auth.permission.granted", "auth.permission.revoked", "auth.role.granted", "auth.role.revoked", "auth.role_permission.assigned", "auth.role_permission.removed"]>>>;
|
|
351
|
+
readonly categories: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Literals<readonly ["api_key", "auth", "authorization", "identity", "incident", "jwt", "mfa", "oauth", "policy", "refresh_token", "risk", "session"]>>>;
|
|
352
|
+
}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
217
353
|
readonly events: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
218
354
|
readonly eventId: import("effect/Schema").String;
|
|
219
|
-
readonly type: import("effect/Schema").Literals<readonly ["auth.login.succeeded", "auth.login.failed", "auth.session.revoked", "auth.risk.assessed", "auth.policy.denied", "auth.oauth.account.linked", "auth.oauth.account.unlinked", "auth.oauth.link_confirmation.started", "auth.oauth.link_confirmation.confirmed", "auth.oauth.provider_token.refreshed", "auth.oauth.provider_token.revoked", "auth.passkey.credential.revoked", "auth.totp.enrollment.started", "auth.totp.factor.confirmed", "auth.totp.factor.verified", "auth.totp.factor.revoked", "auth.recovery_code.generated", "auth.recovery_code.verified", "auth.recovery_code.revoked", "auth.api_key.created", "auth.api_key.verified", "auth.api_key.revoked", "auth.api_key.verification_failed", "auth.refresh_token.issued", "auth.refresh_token.rotated", "auth.refresh_token.reuse_detected", "auth.refresh_token.revoked", "auth.incident_action.executed", "auth.jwt.introspected", "auth.jwt.revoked"]>;
|
|
220
|
-
readonly category: import("effect/Schema").Literals<readonly ["api_key", "auth", "incident", "jwt", "mfa", "oauth", "policy", "refresh_token", "risk", "session"]>;
|
|
355
|
+
readonly type: import("effect/Schema").Literals<readonly ["auth.login.succeeded", "auth.login.failed", "auth.session.revoked", "auth.session.assurance_changed", "auth.session.step_up_completed", "auth.session.primary_reauthenticated", "auth.session.recovery_remediation.entered", "auth.session.recovery_remediation.completed", "auth.risk.assessed", "auth.policy.denied", "auth.identity.added", "auth.identity.replaced", "auth.identity.revoked", "auth.identity.primary_changed", "auth.oauth.account.linked", "auth.oauth.account.unlinked", "auth.oauth.link_confirmation.started", "auth.oauth.link_confirmation.confirmed", "auth.oauth.provider_token.refreshed", "auth.oauth.provider_token.revoked", "auth.passkey.credential.revoked", "auth.totp.enrollment.started", "auth.totp.factor.confirmed", "auth.totp.factor.verified", "auth.totp.factor.revoked", "auth.recovery_code.generated", "auth.recovery_code.verified", "auth.recovery_code.revoked", "auth.api_key.created", "auth.api_key.verified", "auth.api_key.revoked", "auth.api_key.verification_failed", "auth.refresh_token.issued", "auth.refresh_token.rotated", "auth.refresh_token.reuse_detected", "auth.refresh_token.revoked", "auth.incident_action.executed", "auth.jwt.introspected", "auth.jwt.revoked", "auth.permission_definition.created", "auth.permission_definition.updated", "auth.permission_definition.disabled", "auth.permission_definition.enabled", "auth.permission_definition.deleted", "auth.role_definition.created", "auth.role_definition.updated", "auth.role_definition.disabled", "auth.role_definition.enabled", "auth.role_definition.deleted", "auth.permission.granted", "auth.permission.revoked", "auth.role.granted", "auth.role.revoked", "auth.role_permission.assigned", "auth.role_permission.removed"]>;
|
|
356
|
+
readonly category: import("effect/Schema").Literals<readonly ["api_key", "auth", "authorization", "identity", "incident", "jwt", "mfa", "oauth", "policy", "refresh_token", "risk", "session"]>;
|
|
221
357
|
readonly severity: import("effect/Schema").Literals<readonly ["info", "warning", "critical"]>;
|
|
222
358
|
readonly occurredAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
|
|
223
359
|
readonly summary: import("effect/Schema").String;
|
|
@@ -233,8 +369,8 @@ export declare const adminSecurityTimelineListEndpoint: HttpApiEndpoint.HttpApiE
|
|
|
233
369
|
}>>;
|
|
234
370
|
readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
|
|
235
371
|
}>>;
|
|
236
|
-
}>>,
|
|
237
|
-
export declare const trustedDeviceListEndpoint: HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/",
|
|
372
|
+
}>>, import("effect/Schema").toCodecJson<typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
|
|
373
|
+
export declare const trustedDeviceListEndpoint: HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
238
374
|
readonly devices: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
239
375
|
readonly deviceId: import("effect/Schema").String;
|
|
240
376
|
readonly createdAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
|
|
@@ -242,13 +378,13 @@ export declare const trustedDeviceListEndpoint: HttpApiEndpoint.HttpApiEndpoint<
|
|
|
242
378
|
readonly expiresAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
|
|
243
379
|
readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
|
|
244
380
|
}>>;
|
|
245
|
-
}>>,
|
|
246
|
-
export declare const trustedDeviceRevokeEndpoint: HttpApiEndpoint.HttpApiEndpoint<"revoke", "POST", "/revoke",
|
|
381
|
+
}>>, import("effect/Schema").toCodecJson<typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
|
|
382
|
+
export declare const trustedDeviceRevokeEndpoint: HttpApiEndpoint.HttpApiEndpoint<"revoke", "POST", "/revoke", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
247
383
|
readonly deviceId: import("effect/Schema").String;
|
|
248
|
-
}>>,
|
|
249
|
-
export declare const adminTrustedDeviceListEndpoint: HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/",
|
|
384
|
+
}>>, never, import("effect/Schema").toCodecJson<HttpApiSchema.NoContent>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
|
|
385
|
+
export declare const adminTrustedDeviceListEndpoint: HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
250
386
|
readonly userId: import("effect/Schema").brand<import("effect/Schema").String, "auth/UserId">;
|
|
251
|
-
}>>,
|
|
387
|
+
}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
252
388
|
readonly devices: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
253
389
|
readonly deviceId: import("effect/Schema").String;
|
|
254
390
|
readonly createdAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
|
|
@@ -256,53 +392,83 @@ export declare const adminTrustedDeviceListEndpoint: HttpApiEndpoint.HttpApiEndp
|
|
|
256
392
|
readonly expiresAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
|
|
257
393
|
readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
|
|
258
394
|
}>>;
|
|
259
|
-
}>>,
|
|
260
|
-
export declare const adminTrustedDeviceRevokeEndpoint: HttpApiEndpoint.HttpApiEndpoint<"revoke", "POST", "/revoke",
|
|
395
|
+
}>>, import("effect/Schema").toCodecJson<typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
|
|
396
|
+
export declare const adminTrustedDeviceRevokeEndpoint: HttpApiEndpoint.HttpApiEndpoint<"revoke", "POST", "/revoke", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
261
397
|
readonly userId: import("effect/Schema").brand<import("effect/Schema").String, "auth/UserId">;
|
|
262
398
|
readonly deviceId: import("effect/Schema").String;
|
|
263
|
-
}>>,
|
|
264
|
-
export declare const emailVerificationStartEndpoint: HttpApiEndpoint.HttpApiEndpoint<"start", "POST", "/start",
|
|
265
|
-
readonly
|
|
266
|
-
readonly email: import("effect/Schema").brand<import("effect/Schema").String, "auth/Email">;
|
|
399
|
+
}>>, never, import("effect/Schema").toCodecJson<HttpApiSchema.NoContent>, import("effect/Schema").toCodecJson<typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
|
|
400
|
+
export declare const emailVerificationStartEndpoint: HttpApiEndpoint.HttpApiEndpoint<"start", "POST", "/start", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
401
|
+
readonly identityId: import("effect/Schema").brand<import("effect/Schema").String, "auth/IdentityId">;
|
|
267
402
|
readonly secret: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
268
403
|
readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
|
|
269
|
-
|
|
270
|
-
|
|
404
|
+
readonly botChallenge: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
405
|
+
readonly token: import("effect/Schema").String;
|
|
406
|
+
}>>;
|
|
407
|
+
}>>, never, import("effect/Schema").toCodecJson<HttpApiSchema.NoContent>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
|
|
408
|
+
export declare const emailVerificationVerifyEndpoint: HttpApiEndpoint.HttpApiEndpoint<"verify", "POST", "/verify", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
271
409
|
readonly challengeId: import("effect/Schema").brand<import("effect/Schema").String, "auth/ChallengeId">;
|
|
272
410
|
readonly secret: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
273
|
-
}>>,
|
|
274
|
-
export declare const emailOtpStartEndpoint: HttpApiEndpoint.HttpApiEndpoint<"start", "POST", "/start",
|
|
275
|
-
readonly
|
|
411
|
+
}>>, never, import("effect/Schema").toCodecJson<HttpApiSchema.NoContent>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthInternalError>, never, never>;
|
|
412
|
+
export declare const emailOtpStartEndpoint: HttpApiEndpoint.HttpApiEndpoint<"start", "POST", "/start", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
413
|
+
readonly identity: import("effect/Schema").Struct<{
|
|
414
|
+
readonly scope: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
415
|
+
readonly type: import("effect/Schema").Literal<"global">;
|
|
416
|
+
}>, import("effect/Schema").Struct<{
|
|
417
|
+
readonly type: import("effect/Schema").Literal<"tenant">;
|
|
418
|
+
readonly tenantId: import("effect/Schema").String;
|
|
419
|
+
}>]>;
|
|
420
|
+
readonly kind: import("effect/Schema").String;
|
|
421
|
+
readonly value: import("effect/Schema").String;
|
|
422
|
+
}>;
|
|
276
423
|
readonly secret: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
277
424
|
readonly locale: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
278
425
|
readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
|
|
279
|
-
|
|
426
|
+
readonly botChallenge: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
427
|
+
readonly token: import("effect/Schema").String;
|
|
428
|
+
}>>;
|
|
429
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
280
430
|
readonly challengeId: import("effect/Schema").brand<import("effect/Schema").String, "auth/ChallengeId">;
|
|
281
|
-
readonly
|
|
431
|
+
readonly identity: import("effect/Schema").Struct<{
|
|
432
|
+
readonly scope: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
433
|
+
readonly type: import("effect/Schema").Literal<"global">;
|
|
434
|
+
}>, import("effect/Schema").Struct<{
|
|
435
|
+
readonly type: import("effect/Schema").Literal<"tenant">;
|
|
436
|
+
readonly tenantId: import("effect/Schema").String;
|
|
437
|
+
}>]>;
|
|
438
|
+
readonly kind: import("effect/Schema").String;
|
|
439
|
+
readonly value: import("effect/Schema").String;
|
|
440
|
+
}>;
|
|
282
441
|
readonly expiresAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
|
|
283
|
-
}>>,
|
|
284
|
-
export declare const emailOtpVerifyEndpoint: HttpApiEndpoint.HttpApiEndpoint<"verify", "POST", "/verify",
|
|
442
|
+
}>>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
|
|
443
|
+
export declare const emailOtpVerifyEndpoint: HttpApiEndpoint.HttpApiEndpoint<"verify", "POST", "/verify", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
285
444
|
readonly challengeId: import("effect/Schema").brand<import("effect/Schema").String, "auth/ChallengeId">;
|
|
286
445
|
readonly secret: import("effect/Schema").String;
|
|
287
|
-
|
|
446
|
+
readonly botChallenge: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
447
|
+
readonly token: import("effect/Schema").String;
|
|
448
|
+
}>>;
|
|
449
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
288
450
|
readonly type: import("effect/Schema").Literal<"authenticated">;
|
|
289
451
|
readonly expiresAt: import("effect/Schema").Number;
|
|
290
452
|
readonly aal: import("effect/Schema").Literals<readonly ["aal1", "aal2", "aal3"]>;
|
|
291
453
|
readonly amr: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
292
454
|
readonly mfaVerifiedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
|
|
293
455
|
readonly claims: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
294
|
-
readonly
|
|
456
|
+
readonly verifiedIdentityKinds: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
295
457
|
readonly requirements: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
458
|
+
readonly recoveryEnrollment: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
459
|
+
readonly allowed: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
460
|
+
}>>;
|
|
296
461
|
}>>;
|
|
297
462
|
}>, import("effect/Schema").Struct<{
|
|
298
463
|
readonly type: import("effect/Schema").Literal<"requires_mfa">;
|
|
299
464
|
readonly flowId: import("effect/Schema").String;
|
|
300
465
|
readonly factors: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
301
|
-
readonly type: import("effect/Schema").
|
|
466
|
+
readonly type: import("effect/Schema").Literals<readonly ["totp", "backup-code", "passkey"]>;
|
|
302
467
|
}>>;
|
|
303
468
|
}>, import("effect/Schema").Struct<{
|
|
304
469
|
readonly type: import("effect/Schema").Literal<"requires_email_verification">;
|
|
305
470
|
readonly flowId: import("effect/Schema").String;
|
|
471
|
+
readonly identityId: import("effect/Schema").brand<import("effect/Schema").String, "auth/IdentityId">;
|
|
306
472
|
}>, import("effect/Schema").Struct<{
|
|
307
473
|
readonly type: import("effect/Schema").Literal<"requires_login_approval">;
|
|
308
474
|
readonly flowId: import("effect/Schema").String;
|
|
@@ -314,38 +480,103 @@ export declare const emailOtpVerifyEndpoint: HttpApiEndpoint.HttpApiEndpoint<"ve
|
|
|
314
480
|
}>, import("effect/Schema").Struct<{
|
|
315
481
|
readonly type: import("effect/Schema").Literal<"requires_passkey_enrollment">;
|
|
316
482
|
readonly flowId: import("effect/Schema").String;
|
|
317
|
-
}>]>>,
|
|
318
|
-
export declare const
|
|
319
|
-
readonly
|
|
483
|
+
}>]>>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthInvalidCredentialsError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
|
|
484
|
+
export declare const emailAuthStartEndpoint: HttpApiEndpoint.HttpApiEndpoint<"start", "POST", "/start", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
485
|
+
readonly identity: import("effect/Schema").Struct<{
|
|
486
|
+
readonly scope: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
487
|
+
readonly type: import("effect/Schema").Literal<"global">;
|
|
488
|
+
}>, import("effect/Schema").Struct<{
|
|
489
|
+
readonly type: import("effect/Schema").Literal<"tenant">;
|
|
490
|
+
readonly tenantId: import("effect/Schema").String;
|
|
491
|
+
}>]>;
|
|
492
|
+
readonly kind: import("effect/Schema").String;
|
|
493
|
+
readonly value: import("effect/Schema").String;
|
|
494
|
+
}>;
|
|
495
|
+
readonly emailOtpSecret: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
496
|
+
readonly magicLinkSecret: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
497
|
+
readonly locale: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
498
|
+
readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
|
|
499
|
+
readonly botChallenge: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
500
|
+
readonly token: import("effect/Schema").String;
|
|
501
|
+
}>>;
|
|
502
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
503
|
+
readonly identity: import("effect/Schema").Struct<{
|
|
504
|
+
readonly scope: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
505
|
+
readonly type: import("effect/Schema").Literal<"global">;
|
|
506
|
+
}>, import("effect/Schema").Struct<{
|
|
507
|
+
readonly type: import("effect/Schema").Literal<"tenant">;
|
|
508
|
+
readonly tenantId: import("effect/Schema").String;
|
|
509
|
+
}>]>;
|
|
510
|
+
readonly kind: import("effect/Schema").String;
|
|
511
|
+
readonly value: import("effect/Schema").String;
|
|
512
|
+
}>;
|
|
513
|
+
readonly emailOtp: import("effect/Schema").Struct<{
|
|
514
|
+
readonly challengeId: import("effect/Schema").brand<import("effect/Schema").String, "auth/ChallengeId">;
|
|
515
|
+
readonly expiresAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
|
|
516
|
+
}>;
|
|
517
|
+
readonly magicLink: import("effect/Schema").Struct<{
|
|
518
|
+
readonly expiresAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
|
|
519
|
+
}>;
|
|
520
|
+
}>>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
|
|
521
|
+
export declare const magicLinkStartEndpoint: HttpApiEndpoint.HttpApiEndpoint<"start", "POST", "/start", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
522
|
+
readonly identity: import("effect/Schema").Struct<{
|
|
523
|
+
readonly scope: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
524
|
+
readonly type: import("effect/Schema").Literal<"global">;
|
|
525
|
+
}>, import("effect/Schema").Struct<{
|
|
526
|
+
readonly type: import("effect/Schema").Literal<"tenant">;
|
|
527
|
+
readonly tenantId: import("effect/Schema").String;
|
|
528
|
+
}>]>;
|
|
529
|
+
readonly kind: import("effect/Schema").String;
|
|
530
|
+
readonly value: import("effect/Schema").String;
|
|
531
|
+
}>;
|
|
320
532
|
readonly secret: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
321
533
|
readonly locale: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
322
534
|
readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
|
|
323
|
-
|
|
324
|
-
|
|
535
|
+
readonly botChallenge: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
536
|
+
readonly token: import("effect/Schema").String;
|
|
537
|
+
}>>;
|
|
538
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
539
|
+
readonly identity: import("effect/Schema").Struct<{
|
|
540
|
+
readonly scope: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
541
|
+
readonly type: import("effect/Schema").Literal<"global">;
|
|
542
|
+
}>, import("effect/Schema").Struct<{
|
|
543
|
+
readonly type: import("effect/Schema").Literal<"tenant">;
|
|
544
|
+
readonly tenantId: import("effect/Schema").String;
|
|
545
|
+
}>]>;
|
|
546
|
+
readonly kind: import("effect/Schema").String;
|
|
547
|
+
readonly value: import("effect/Schema").String;
|
|
548
|
+
}>;
|
|
325
549
|
readonly expiresAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
|
|
326
|
-
}>>,
|
|
327
|
-
export declare const magicLinkVerifyEndpoint: HttpApiEndpoint.HttpApiEndpoint<"verify", "POST", "/verify",
|
|
550
|
+
}>>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
|
|
551
|
+
export declare const magicLinkVerifyEndpoint: HttpApiEndpoint.HttpApiEndpoint<"verify", "POST", "/verify", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
328
552
|
readonly challengeId: import("effect/Schema").brand<import("effect/Schema").String, "auth/ChallengeId">;
|
|
329
553
|
readonly secret: import("effect/Schema").String;
|
|
330
|
-
|
|
554
|
+
readonly botChallenge: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
555
|
+
readonly token: import("effect/Schema").String;
|
|
556
|
+
}>>;
|
|
557
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
331
558
|
readonly type: import("effect/Schema").Literal<"authenticated">;
|
|
332
559
|
readonly expiresAt: import("effect/Schema").Number;
|
|
333
560
|
readonly aal: import("effect/Schema").Literals<readonly ["aal1", "aal2", "aal3"]>;
|
|
334
561
|
readonly amr: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
335
562
|
readonly mfaVerifiedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
|
|
336
563
|
readonly claims: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
337
|
-
readonly
|
|
564
|
+
readonly verifiedIdentityKinds: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
338
565
|
readonly requirements: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
566
|
+
readonly recoveryEnrollment: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
567
|
+
readonly allowed: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
568
|
+
}>>;
|
|
339
569
|
}>>;
|
|
340
570
|
}>, import("effect/Schema").Struct<{
|
|
341
571
|
readonly type: import("effect/Schema").Literal<"requires_mfa">;
|
|
342
572
|
readonly flowId: import("effect/Schema").String;
|
|
343
573
|
readonly factors: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
344
|
-
readonly type: import("effect/Schema").
|
|
574
|
+
readonly type: import("effect/Schema").Literals<readonly ["totp", "backup-code", "passkey"]>;
|
|
345
575
|
}>>;
|
|
346
576
|
}>, import("effect/Schema").Struct<{
|
|
347
577
|
readonly type: import("effect/Schema").Literal<"requires_email_verification">;
|
|
348
578
|
readonly flowId: import("effect/Schema").String;
|
|
579
|
+
readonly identityId: import("effect/Schema").brand<import("effect/Schema").String, "auth/IdentityId">;
|
|
349
580
|
}>, import("effect/Schema").Struct<{
|
|
350
581
|
readonly type: import("effect/Schema").Literal<"requires_login_approval">;
|
|
351
582
|
readonly flowId: import("effect/Schema").String;
|
|
@@ -357,8 +588,8 @@ export declare const magicLinkVerifyEndpoint: HttpApiEndpoint.HttpApiEndpoint<"v
|
|
|
357
588
|
}>, import("effect/Schema").Struct<{
|
|
358
589
|
readonly type: import("effect/Schema").Literal<"requires_passkey_enrollment">;
|
|
359
590
|
readonly flowId: import("effect/Schema").String;
|
|
360
|
-
}>]>>,
|
|
361
|
-
export declare const oauthAuthorizationStartEndpoint: HttpApiEndpoint.HttpApiEndpoint<"startAuthorization", "POST", "/start",
|
|
591
|
+
}>]>>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthInvalidCredentialsError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
|
|
592
|
+
export declare const oauthAuthorizationStartEndpoint: HttpApiEndpoint.HttpApiEndpoint<"startAuthorization", "POST", "/start", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
362
593
|
readonly providerId: import("effect/Schema").brand<import("effect/Schema").String, "auth/OAuthProviderId">;
|
|
363
594
|
readonly redirectUri: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
364
595
|
readonly scopes: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
@@ -367,7 +598,7 @@ export declare const oauthAuthorizationStartEndpoint: HttpApiEndpoint.HttpApiEnd
|
|
|
367
598
|
readonly includeNonce: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
368
599
|
readonly nonce: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
369
600
|
readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
|
|
370
|
-
}>>,
|
|
601
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
371
602
|
readonly providerId: import("effect/Schema").brand<import("effect/Schema").String, "auth/OAuthProviderId">;
|
|
372
603
|
readonly authorizationUrl: import("effect/Schema").String;
|
|
373
604
|
readonly state: import("effect/Schema").String;
|
|
@@ -378,8 +609,8 @@ export declare const oauthAuthorizationStartEndpoint: HttpApiEndpoint.HttpApiEnd
|
|
|
378
609
|
readonly nonce: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
379
610
|
readonly redirectUri: import("effect/Schema").String;
|
|
380
611
|
readonly scopes: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
381
|
-
}>>,
|
|
382
|
-
export declare const oauthProviderAuthorizeEndpoint: HttpApiEndpoint.HttpApiEndpoint<"authorize", "GET", "/authorize",
|
|
612
|
+
}>>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthInternalError>, never, never>;
|
|
613
|
+
export declare const oauthProviderAuthorizeEndpoint: HttpApiEndpoint.HttpApiEndpoint<"authorize", "GET", "/authorize", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
383
614
|
readonly response_type: import("effect/Schema").String;
|
|
384
615
|
readonly client_id: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
385
616
|
readonly redirect_uri: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
@@ -387,8 +618,8 @@ export declare const oauthProviderAuthorizeEndpoint: HttpApiEndpoint.HttpApiEndp
|
|
|
387
618
|
readonly state: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
388
619
|
readonly code_challenge: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
389
620
|
readonly code_challenge_method: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
390
|
-
}>>,
|
|
391
|
-
export declare const oauthTokenEndpoint: HttpApiEndpoint.HttpApiEndpoint<"token", "POST", "/token",
|
|
621
|
+
}>>, never, never, import("effect/Schema").toCodecJson<HttpApiSchema.NoContent>, import("effect/Schema").toCodecJson<typeof AuthInternalError | typeof OAuthAuthorizationEndpointError>, never, never>;
|
|
622
|
+
export declare const oauthTokenEndpoint: HttpApiEndpoint.HttpApiEndpoint<"token", "POST", "/token", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
392
623
|
readonly access_token: import("effect/Schema").String;
|
|
393
624
|
readonly token_type: import("effect/Schema").String;
|
|
394
625
|
readonly expires_in: import("effect/Schema").optional<import("effect/Schema").Number>;
|
|
@@ -396,8 +627,8 @@ export declare const oauthTokenEndpoint: HttpApiEndpoint.HttpApiEndpoint<"token"
|
|
|
396
627
|
readonly id_token: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
397
628
|
readonly scope: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
398
629
|
readonly extra: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
|
|
399
|
-
}>>,
|
|
400
|
-
export declare const oauthTokenIntrospectionEndpoint: HttpApiEndpoint.HttpApiEndpoint<"introspect", "POST", "/introspect",
|
|
630
|
+
}>>, import("effect/Schema").toCodecJson<typeof AuthInternalError | typeof OAuthTokenEndpointError>, never, never>;
|
|
631
|
+
export declare const oauthTokenIntrospectionEndpoint: HttpApiEndpoint.HttpApiEndpoint<"introspect", "POST", "/introspect", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
401
632
|
readonly active: import("effect/Schema").Boolean;
|
|
402
633
|
readonly scope: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
403
634
|
readonly client_id: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
@@ -411,13 +642,13 @@ export declare const oauthTokenIntrospectionEndpoint: HttpApiEndpoint.HttpApiEnd
|
|
|
411
642
|
readonly iss: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
412
643
|
readonly jti: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
413
644
|
readonly extra: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
|
|
414
|
-
}>>,
|
|
415
|
-
export declare const oauthTokenRevocationEndpoint: HttpApiEndpoint.HttpApiEndpoint<"revoke", "POST", "/revoke",
|
|
416
|
-
export declare const oauthAccountUnlinkEndpoint: HttpApiEndpoint.HttpApiEndpoint<"unlinkAccount", "POST", "/unlink",
|
|
645
|
+
}>>, import("effect/Schema").toCodecJson<typeof AuthInternalError | typeof OAuthTokenIntrospectionEndpointError>, never, never>;
|
|
646
|
+
export declare const oauthTokenRevocationEndpoint: HttpApiEndpoint.HttpApiEndpoint<"revoke", "POST", "/revoke", never, never, never, never, import("effect/Schema").toCodecJson<HttpApiSchema.NoContent>, import("effect/Schema").toCodecJson<typeof AuthInternalError | typeof OAuthTokenRevocationEndpointError>, never, never>;
|
|
647
|
+
export declare const oauthAccountUnlinkEndpoint: HttpApiEndpoint.HttpApiEndpoint<"unlinkAccount", "POST", "/unlink", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
417
648
|
readonly providerId: import("effect/Schema").brand<import("effect/Schema").String, "auth/OAuthProviderId">;
|
|
418
649
|
readonly providerAccountId: import("effect/Schema").String;
|
|
419
650
|
readonly reason: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
420
|
-
}>>,
|
|
651
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
421
652
|
readonly type: import("effect/Schema").Literal<"allow">;
|
|
422
653
|
readonly reason: import("effect/Schema").Literal<"owned-account">;
|
|
423
654
|
readonly account: import("effect/Schema").Struct<{
|
|
@@ -462,8 +693,8 @@ export declare const oauthAccountUnlinkEndpoint: HttpApiEndpoint.HttpApiEndpoint
|
|
|
462
693
|
readonly providerId: import("effect/Schema").brand<import("effect/Schema").String, "auth/OAuthProviderId">;
|
|
463
694
|
readonly providerAccountId: import("effect/Schema").String;
|
|
464
695
|
}>;
|
|
465
|
-
}>]>>,
|
|
466
|
-
export declare const oauthLinkConfirmationStartEndpoint: HttpApiEndpoint.HttpApiEndpoint<"startLinkConfirmation", "POST", "/link-confirmation/start",
|
|
696
|
+
}>]>>, import("effect/Schema").toCodecJson<typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
|
|
697
|
+
export declare const oauthLinkConfirmationStartEndpoint: HttpApiEndpoint.HttpApiEndpoint<"startLinkConfirmation", "POST", "/link-confirmation/start", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
467
698
|
readonly userId: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").String, "auth/UserId">>;
|
|
468
699
|
readonly identity: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
469
700
|
readonly providerId: import("effect/Schema").brand<import("effect/Schema").String, "auth/OAuthProviderId">;
|
|
@@ -475,7 +706,7 @@ export declare const oauthLinkConfirmationStartEndpoint: HttpApiEndpoint.HttpApi
|
|
|
475
706
|
readonly reason: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
476
707
|
readonly secret: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
477
708
|
readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
|
|
478
|
-
}>>,
|
|
709
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
479
710
|
readonly challengeId: import("effect/Schema").brand<import("effect/Schema").String, "auth/ChallengeId">;
|
|
480
711
|
readonly userId: import("effect/Schema").brand<import("effect/Schema").String, "auth/UserId">;
|
|
481
712
|
readonly identity: import("effect/Schema").Struct<{
|
|
@@ -486,11 +717,11 @@ export declare const oauthLinkConfirmationStartEndpoint: HttpApiEndpoint.HttpApi
|
|
|
486
717
|
}>;
|
|
487
718
|
readonly reason: import("effect/Schema").String;
|
|
488
719
|
readonly expiresAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
|
|
489
|
-
}>>,
|
|
490
|
-
export declare const oauthLinkConfirmationInspectEndpoint: HttpApiEndpoint.HttpApiEndpoint<"inspectLinkConfirmation", "POST", "/link-confirmation/inspect",
|
|
720
|
+
}>>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthInternalError>, never, never>;
|
|
721
|
+
export declare const oauthLinkConfirmationInspectEndpoint: HttpApiEndpoint.HttpApiEndpoint<"inspectLinkConfirmation", "POST", "/link-confirmation/inspect", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
491
722
|
readonly challengeId: import("effect/Schema").brand<import("effect/Schema").String, "auth/ChallengeId">;
|
|
492
723
|
readonly secret: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
493
|
-
}>>,
|
|
724
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
494
725
|
readonly challengeId: import("effect/Schema").brand<import("effect/Schema").String, "auth/ChallengeId">;
|
|
495
726
|
readonly userId: import("effect/Schema").brand<import("effect/Schema").String, "auth/UserId">;
|
|
496
727
|
readonly identity: import("effect/Schema").Struct<{
|
|
@@ -501,13 +732,13 @@ export declare const oauthLinkConfirmationInspectEndpoint: HttpApiEndpoint.HttpA
|
|
|
501
732
|
}>;
|
|
502
733
|
readonly reason: import("effect/Schema").String;
|
|
503
734
|
readonly expiresAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
|
|
504
|
-
}>>,
|
|
505
|
-
export declare const oauthLinkConfirmationConfirmEndpoint: HttpApiEndpoint.HttpApiEndpoint<"confirmLinkConfirmation", "POST", "/link-confirmation/confirm",
|
|
735
|
+
}>>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthInternalError>, never, never>;
|
|
736
|
+
export declare const oauthLinkConfirmationConfirmEndpoint: HttpApiEndpoint.HttpApiEndpoint<"confirmLinkConfirmation", "POST", "/link-confirmation/confirm", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
506
737
|
readonly challengeId: import("effect/Schema").brand<import("effect/Schema").String, "auth/ChallengeId">;
|
|
507
738
|
readonly secret: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
508
739
|
readonly expectedProviderId: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").String, "auth/OAuthProviderId">>;
|
|
509
740
|
readonly expectedProviderAccountId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
510
|
-
}>>,
|
|
741
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
511
742
|
readonly challengeId: import("effect/Schema").brand<import("effect/Schema").String, "auth/ChallengeId">;
|
|
512
743
|
readonly userId: import("effect/Schema").brand<import("effect/Schema").String, "auth/UserId">;
|
|
513
744
|
readonly identity: import("effect/Schema").Struct<{
|
|
@@ -523,13 +754,8 @@ export declare const oauthLinkConfirmationConfirmEndpoint: HttpApiEndpoint.HttpA
|
|
|
523
754
|
readonly providerAccountId: import("effect/Schema").String;
|
|
524
755
|
}>>;
|
|
525
756
|
readonly linked: import("effect/Schema").Boolean;
|
|
526
|
-
}>>,
|
|
527
|
-
export declare const passkeyRegistrationStartEndpoint: HttpApiEndpoint.HttpApiEndpoint<"registerStart", "POST", "/register/start",
|
|
528
|
-
readonly userId: import("effect/Schema").brand<import("effect/Schema").String, "auth/UserId">;
|
|
529
|
-
readonly userName: import("effect/Schema").String;
|
|
530
|
-
readonly userDisplayName: import("effect/Schema").String;
|
|
531
|
-
readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
|
|
532
|
-
}>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
|
|
757
|
+
}>>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthInternalError>, never, never>;
|
|
758
|
+
export declare const passkeyRegistrationStartEndpoint: HttpApiEndpoint.HttpApiEndpoint<"registerStart", "POST", "/register/start", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
533
759
|
readonly challengeId: import("effect/Schema").brand<import("effect/Schema").String, "auth/ChallengeId">;
|
|
534
760
|
readonly expiresAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
|
|
535
761
|
readonly publicKey: import("effect/Schema").Struct<{
|
|
@@ -561,10 +787,9 @@ export declare const passkeyRegistrationStartEndpoint: HttpApiEndpoint.HttpApiEn
|
|
|
561
787
|
}>>;
|
|
562
788
|
readonly attestation: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["none", "indirect", "direct", "enterprise"]>>;
|
|
563
789
|
}>;
|
|
564
|
-
}>>,
|
|
565
|
-
export declare const passkeyRegistrationFinishEndpoint: HttpApiEndpoint.HttpApiEndpoint<"registerFinish", "POST", "/register/finish",
|
|
790
|
+
}>>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
|
|
791
|
+
export declare const passkeyRegistrationFinishEndpoint: HttpApiEndpoint.HttpApiEndpoint<"registerFinish", "POST", "/register/finish", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
566
792
|
readonly challengeId: import("effect/Schema").brand<import("effect/Schema").String, "auth/ChallengeId">;
|
|
567
|
-
readonly userId: import("effect/Schema").brand<import("effect/Schema").String, "auth/UserId">;
|
|
568
793
|
readonly credential: import("effect/Schema").Struct<{
|
|
569
794
|
readonly id: import("effect/Schema").String;
|
|
570
795
|
readonly rawId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
@@ -573,14 +798,13 @@ export declare const passkeyRegistrationFinishEndpoint: HttpApiEndpoint.HttpApiE
|
|
|
573
798
|
readonly authenticatorAttachment: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
574
799
|
readonly clientExtensionResults: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
|
|
575
800
|
}>;
|
|
576
|
-
|
|
577
|
-
}>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
|
|
801
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
578
802
|
readonly credentialId: import("effect/Schema").String;
|
|
579
|
-
}>>,
|
|
580
|
-
export declare const passkeyAuthenticationStartEndpoint: HttpApiEndpoint.HttpApiEndpoint<"authenticateStart", "POST", "/authenticate/start",
|
|
803
|
+
}>>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
|
|
804
|
+
export declare const passkeyAuthenticationStartEndpoint: HttpApiEndpoint.HttpApiEndpoint<"authenticateStart", "POST", "/authenticate/start", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
581
805
|
readonly userId: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").String, "auth/UserId">>;
|
|
582
806
|
readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
|
|
583
|
-
}>>,
|
|
807
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
584
808
|
readonly challengeId: import("effect/Schema").brand<import("effect/Schema").String, "auth/ChallengeId">;
|
|
585
809
|
readonly expiresAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
|
|
586
810
|
readonly publicKey: import("effect/Schema").Struct<{
|
|
@@ -594,8 +818,8 @@ export declare const passkeyAuthenticationStartEndpoint: HttpApiEndpoint.HttpApi
|
|
|
594
818
|
}>>>;
|
|
595
819
|
readonly userVerification: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["required", "preferred", "discouraged"]>>;
|
|
596
820
|
}>;
|
|
597
|
-
}>>,
|
|
598
|
-
export declare const passkeyAuthenticationFinishEndpoint: HttpApiEndpoint.HttpApiEndpoint<"authenticateFinish", "POST", "/authenticate/finish",
|
|
821
|
+
}>>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
|
|
822
|
+
export declare const passkeyAuthenticationFinishEndpoint: HttpApiEndpoint.HttpApiEndpoint<"authenticateFinish", "POST", "/authenticate/finish", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
599
823
|
readonly challengeId: import("effect/Schema").brand<import("effect/Schema").String, "auth/ChallengeId">;
|
|
600
824
|
readonly credential: import("effect/Schema").Struct<{
|
|
601
825
|
readonly id: import("effect/Schema").String;
|
|
@@ -607,18 +831,21 @@ export declare const passkeyAuthenticationFinishEndpoint: HttpApiEndpoint.HttpAp
|
|
|
607
831
|
}>;
|
|
608
832
|
readonly userId: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").String, "auth/UserId">>;
|
|
609
833
|
readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
|
|
610
|
-
}>>,
|
|
834
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
611
835
|
readonly type: import("effect/Schema").Literal<"authenticated">;
|
|
612
836
|
readonly expiresAt: import("effect/Schema").Number;
|
|
613
837
|
readonly aal: import("effect/Schema").Literals<readonly ["aal1", "aal2", "aal3"]>;
|
|
614
838
|
readonly amr: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
615
839
|
readonly mfaVerifiedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
|
|
616
840
|
readonly claims: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
617
|
-
readonly
|
|
841
|
+
readonly verifiedIdentityKinds: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
618
842
|
readonly requirements: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
843
|
+
readonly recoveryEnrollment: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
844
|
+
readonly allowed: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
845
|
+
}>>;
|
|
619
846
|
}>>;
|
|
620
|
-
}>>,
|
|
621
|
-
export declare const passkeyCredentialListEndpoint: HttpApiEndpoint.HttpApiEndpoint<"listCredentials", "GET", "/credentials",
|
|
847
|
+
}>>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
|
|
848
|
+
export declare const passkeyCredentialListEndpoint: HttpApiEndpoint.HttpApiEndpoint<"listCredentials", "GET", "/credentials", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
622
849
|
readonly credentials: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
623
850
|
readonly credentialId: import("effect/Schema").String;
|
|
624
851
|
readonly transports: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
@@ -628,15 +855,15 @@ export declare const passkeyCredentialListEndpoint: HttpApiEndpoint.HttpApiEndpo
|
|
|
628
855
|
readonly revokedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
|
|
629
856
|
readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
|
|
630
857
|
}>>;
|
|
631
|
-
}>>,
|
|
632
|
-
export declare const passkeyCredentialRevokeEndpoint: HttpApiEndpoint.HttpApiEndpoint<"revokeCredential", "POST", "/credentials/revoke",
|
|
858
|
+
}>>, import("effect/Schema").toCodecJson<typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
|
|
859
|
+
export declare const passkeyCredentialRevokeEndpoint: HttpApiEndpoint.HttpApiEndpoint<"revokeCredential", "POST", "/credentials/revoke", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
633
860
|
readonly credentialId: import("effect/Schema").String;
|
|
634
861
|
readonly reason: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
635
|
-
}>>,
|
|
636
|
-
export declare const totpEnrollmentStartEndpoint: HttpApiEndpoint.HttpApiEndpoint<"startEnrollment", "POST", "/enroll/start",
|
|
862
|
+
}>>, never, import("effect/Schema").toCodecJson<HttpApiSchema.NoContent>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
|
|
863
|
+
export declare const totpEnrollmentStartEndpoint: HttpApiEndpoint.HttpApiEndpoint<"startEnrollment", "POST", "/enroll/start", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
637
864
|
readonly accountName: import("effect/Schema").String;
|
|
638
865
|
readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
|
|
639
|
-
}>>,
|
|
866
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
640
867
|
readonly factor: import("effect/Schema").Struct<{
|
|
641
868
|
readonly factorId: import("effect/Schema").brand<import("effect/Schema").String, "auth/CredentialId">;
|
|
642
869
|
readonly algorithm: import("effect/Schema").Literals<readonly ["SHA1", "SHA256", "SHA512"]>;
|
|
@@ -650,12 +877,12 @@ export declare const totpEnrollmentStartEndpoint: HttpApiEndpoint.HttpApiEndpoin
|
|
|
650
877
|
}>;
|
|
651
878
|
readonly secret: import("effect/Schema").String;
|
|
652
879
|
readonly uri: import("effect/Schema").String;
|
|
653
|
-
}>>,
|
|
654
|
-
export declare const totpEnrollmentConfirmEndpoint: HttpApiEndpoint.HttpApiEndpoint<"confirmEnrollment", "POST", "/enroll/confirm",
|
|
880
|
+
}>>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
|
|
881
|
+
export declare const totpEnrollmentConfirmEndpoint: HttpApiEndpoint.HttpApiEndpoint<"confirmEnrollment", "POST", "/enroll/confirm", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
655
882
|
readonly factorId: import("effect/Schema").brand<import("effect/Schema").String, "auth/CredentialId">;
|
|
656
883
|
readonly code: import("effect/Schema").String;
|
|
657
884
|
readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
|
|
658
|
-
}>>,
|
|
885
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
659
886
|
readonly factorId: import("effect/Schema").brand<import("effect/Schema").String, "auth/CredentialId">;
|
|
660
887
|
readonly algorithm: import("effect/Schema").Literals<readonly ["SHA1", "SHA256", "SHA512"]>;
|
|
661
888
|
readonly digits: import("effect/Schema").Number;
|
|
@@ -665,11 +892,11 @@ export declare const totpEnrollmentConfirmEndpoint: HttpApiEndpoint.HttpApiEndpo
|
|
|
665
892
|
readonly lastUsedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
|
|
666
893
|
readonly revokedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
|
|
667
894
|
readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
|
|
668
|
-
}>>,
|
|
669
|
-
export declare const totpVerifyEndpoint: HttpApiEndpoint.HttpApiEndpoint<"verify", "POST", "/verify",
|
|
895
|
+
}>>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
|
|
896
|
+
export declare const totpVerifyEndpoint: HttpApiEndpoint.HttpApiEndpoint<"verify", "POST", "/verify", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
670
897
|
readonly code: import("effect/Schema").String;
|
|
671
898
|
readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
|
|
672
|
-
}>>,
|
|
899
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
673
900
|
readonly valid: import("effect/Schema").Boolean;
|
|
674
901
|
readonly factor: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
675
902
|
readonly factorId: import("effect/Schema").brand<import("effect/Schema").String, "auth/CredentialId">;
|
|
@@ -683,8 +910,9 @@ export declare const totpVerifyEndpoint: HttpApiEndpoint.HttpApiEndpoint<"verify
|
|
|
683
910
|
readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
|
|
684
911
|
}>>;
|
|
685
912
|
readonly delta: import("effect/Schema").optional<import("effect/Schema").Number>;
|
|
686
|
-
|
|
687
|
-
|
|
913
|
+
readonly acceptedCounter: import("effect/Schema").optional<import("effect/Schema").Number>;
|
|
914
|
+
}>>, import("effect/Schema").toCodecJson<typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
|
|
915
|
+
export declare const totpFactorListEndpoint: HttpApiEndpoint.HttpApiEndpoint<"listFactors", "GET", "/factors", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
688
916
|
readonly factors: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
689
917
|
readonly factorId: import("effect/Schema").brand<import("effect/Schema").String, "auth/CredentialId">;
|
|
690
918
|
readonly algorithm: import("effect/Schema").Literals<readonly ["SHA1", "SHA256", "SHA512"]>;
|
|
@@ -696,14 +924,27 @@ export declare const totpFactorListEndpoint: HttpApiEndpoint.HttpApiEndpoint<"li
|
|
|
696
924
|
readonly revokedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
|
|
697
925
|
readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
|
|
698
926
|
}>>;
|
|
699
|
-
}>>,
|
|
700
|
-
export declare const totpFactorRevokeEndpoint: HttpApiEndpoint.HttpApiEndpoint<"revokeFactor", "POST", "/factors/revoke",
|
|
927
|
+
}>>, import("effect/Schema").toCodecJson<typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
|
|
928
|
+
export declare const totpFactorRevokeEndpoint: HttpApiEndpoint.HttpApiEndpoint<"revokeFactor", "POST", "/factors/revoke", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
701
929
|
readonly factorId: import("effect/Schema").brand<import("effect/Schema").String, "auth/CredentialId">;
|
|
702
930
|
readonly reason: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
703
|
-
}>>,
|
|
704
|
-
export declare const recoveryCodeGenerateEndpoint: HttpApiEndpoint.HttpApiEndpoint<"generateRecoveryCodes", "POST", "/generate",
|
|
931
|
+
}>>, never, import("effect/Schema").toCodecJson<HttpApiSchema.NoContent>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
|
|
932
|
+
export declare const recoveryCodeGenerateEndpoint: HttpApiEndpoint.HttpApiEndpoint<"generateRecoveryCodes", "POST", "/generate", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
933
|
+
readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
|
|
934
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
935
|
+
readonly codes: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
936
|
+
readonly records: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
937
|
+
readonly codeId: import("effect/Schema").brand<import("effect/Schema").String, "auth/CredentialId">;
|
|
938
|
+
readonly createdAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
|
|
939
|
+
readonly usedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
|
|
940
|
+
readonly revokedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
|
|
941
|
+
readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
|
|
942
|
+
}>>;
|
|
943
|
+
}>>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
|
|
944
|
+
export declare const recoveryCodeRegenerateEndpoint: HttpApiEndpoint.HttpApiEndpoint<"regenerateRecoveryCodes", "POST", "/regenerate", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
705
945
|
readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
|
|
706
|
-
|
|
946
|
+
readonly revokeReason: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
947
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
707
948
|
readonly codes: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
708
949
|
readonly records: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
709
950
|
readonly codeId: import("effect/Schema").brand<import("effect/Schema").String, "auth/CredentialId">;
|
|
@@ -712,11 +953,11 @@ export declare const recoveryCodeGenerateEndpoint: HttpApiEndpoint.HttpApiEndpoi
|
|
|
712
953
|
readonly revokedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
|
|
713
954
|
readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
|
|
714
955
|
}>>;
|
|
715
|
-
}>>,
|
|
716
|
-
export declare const recoveryCodeVerifyEndpoint: HttpApiEndpoint.HttpApiEndpoint<"verifyRecoveryCode", "POST", "/verify",
|
|
956
|
+
}>>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
|
|
957
|
+
export declare const recoveryCodeVerifyEndpoint: HttpApiEndpoint.HttpApiEndpoint<"verifyRecoveryCode", "POST", "/verify", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
717
958
|
readonly code: import("effect/Schema").String;
|
|
718
959
|
readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
|
|
719
|
-
}>>,
|
|
960
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
720
961
|
readonly valid: import("effect/Schema").Boolean;
|
|
721
962
|
readonly code: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
722
963
|
readonly codeId: import("effect/Schema").brand<import("effect/Schema").String, "auth/CredentialId">;
|
|
@@ -725,8 +966,8 @@ export declare const recoveryCodeVerifyEndpoint: HttpApiEndpoint.HttpApiEndpoint
|
|
|
725
966
|
readonly revokedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
|
|
726
967
|
readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
|
|
727
968
|
}>>;
|
|
728
|
-
}>>,
|
|
729
|
-
export declare const recoveryCodeListEndpoint: HttpApiEndpoint.HttpApiEndpoint<"listRecoveryCodes", "GET", "/codes",
|
|
969
|
+
}>>, import("effect/Schema").toCodecJson<typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
|
|
970
|
+
export declare const recoveryCodeListEndpoint: HttpApiEndpoint.HttpApiEndpoint<"listRecoveryCodes", "GET", "/codes", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
730
971
|
readonly codes: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
731
972
|
readonly codeId: import("effect/Schema").brand<import("effect/Schema").String, "auth/CredentialId">;
|
|
732
973
|
readonly createdAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
|
|
@@ -734,16 +975,16 @@ export declare const recoveryCodeListEndpoint: HttpApiEndpoint.HttpApiEndpoint<"
|
|
|
734
975
|
readonly revokedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
|
|
735
976
|
readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
|
|
736
977
|
}>>;
|
|
737
|
-
}>>,
|
|
738
|
-
export declare const recoveryCodeRevokeEndpoint: HttpApiEndpoint.HttpApiEndpoint<"revokeRecoveryCode", "POST", "/codes/revoke",
|
|
978
|
+
}>>, import("effect/Schema").toCodecJson<typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
|
|
979
|
+
export declare const recoveryCodeRevokeEndpoint: HttpApiEndpoint.HttpApiEndpoint<"revokeRecoveryCode", "POST", "/codes/revoke", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
739
980
|
readonly codeId: import("effect/Schema").brand<import("effect/Schema").String, "auth/CredentialId">;
|
|
740
981
|
readonly reason: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
741
|
-
}>>,
|
|
742
|
-
export declare const apiKeyCreateEndpoint: HttpApiEndpoint.HttpApiEndpoint<"createApiKey", "POST", "/",
|
|
982
|
+
}>>, never, import("effect/Schema").toCodecJson<HttpApiSchema.NoContent>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
|
|
983
|
+
export declare const apiKeyCreateEndpoint: HttpApiEndpoint.HttpApiEndpoint<"createApiKey", "POST", "/", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
743
984
|
readonly scopes: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
744
985
|
readonly expiresAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
|
|
745
986
|
readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
|
|
746
|
-
}>>,
|
|
987
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
747
988
|
readonly secret: import("effect/Schema").String;
|
|
748
989
|
readonly key: import("effect/Schema").Struct<{
|
|
749
990
|
readonly keyId: import("effect/Schema").String;
|
|
@@ -755,8 +996,8 @@ export declare const apiKeyCreateEndpoint: HttpApiEndpoint.HttpApiEndpoint<"crea
|
|
|
755
996
|
readonly revokedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
|
|
756
997
|
readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
|
|
757
998
|
}>;
|
|
758
|
-
}>>,
|
|
759
|
-
export declare const apiKeyListEndpoint: HttpApiEndpoint.HttpApiEndpoint<"listApiKeys", "GET", "/",
|
|
999
|
+
}>>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
|
|
1000
|
+
export declare const apiKeyListEndpoint: HttpApiEndpoint.HttpApiEndpoint<"listApiKeys", "GET", "/", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
760
1001
|
readonly keys: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
761
1002
|
readonly keyId: import("effect/Schema").String;
|
|
762
1003
|
readonly prefix: import("effect/Schema").String;
|
|
@@ -767,15 +1008,15 @@ export declare const apiKeyListEndpoint: HttpApiEndpoint.HttpApiEndpoint<"listAp
|
|
|
767
1008
|
readonly revokedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
|
|
768
1009
|
readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
|
|
769
1010
|
}>>;
|
|
770
|
-
}>>,
|
|
771
|
-
export declare const apiKeyRevokeEndpoint: HttpApiEndpoint.HttpApiEndpoint<"revokeApiKey", "POST", "/revoke",
|
|
1011
|
+
}>>, import("effect/Schema").toCodecJson<typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
|
|
1012
|
+
export declare const apiKeyRevokeEndpoint: HttpApiEndpoint.HttpApiEndpoint<"revokeApiKey", "POST", "/revoke", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
772
1013
|
readonly keyId: import("effect/Schema").String;
|
|
773
1014
|
readonly reason: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
774
|
-
}>>,
|
|
775
|
-
export declare const refreshTokenRefreshEndpoint: HttpApiEndpoint.HttpApiEndpoint<"refresh", "POST", "/refresh",
|
|
1015
|
+
}>>, never, import("effect/Schema").toCodecJson<HttpApiSchema.NoContent>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
|
|
1016
|
+
export declare const refreshTokenRefreshEndpoint: HttpApiEndpoint.HttpApiEndpoint<"refresh", "POST", "/refresh", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
776
1017
|
readonly refreshToken: import("effect/Schema").String;
|
|
777
1018
|
readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
|
|
778
|
-
}>>,
|
|
1019
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
779
1020
|
readonly accessToken: import("effect/Schema").String;
|
|
780
1021
|
readonly accessTokenExpiresAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
|
|
781
1022
|
readonly refreshToken: import("effect/Schema").String;
|
|
@@ -791,10 +1032,10 @@ export declare const refreshTokenRefreshEndpoint: HttpApiEndpoint.HttpApiEndpoin
|
|
|
791
1032
|
readonly reuseDetectedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
|
|
792
1033
|
readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
|
|
793
1034
|
}>;
|
|
794
|
-
}>>,
|
|
795
|
-
export declare const jwtIntrospectEndpoint: HttpApiEndpoint.HttpApiEndpoint<"introspect", "POST", "/introspect",
|
|
1035
|
+
}>>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthInvalidCredentialsError | typeof AuthInternalError>, never, never>;
|
|
1036
|
+
export declare const jwtIntrospectEndpoint: HttpApiEndpoint.HttpApiEndpoint<"introspect", "POST", "/introspect", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
796
1037
|
readonly token: import("effect/Schema").String;
|
|
797
|
-
}>>,
|
|
1038
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
798
1039
|
readonly active: import("effect/Schema").Literal<true>;
|
|
799
1040
|
readonly header: import("effect/Schema").Struct<{
|
|
800
1041
|
readonly typ: import("effect/Schema").Literal<"JWT">;
|
|
@@ -820,11 +1061,11 @@ export declare const jwtIntrospectEndpoint: HttpApiEndpoint.HttpApiEndpoint<"int
|
|
|
820
1061
|
readonly expiresAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
|
|
821
1062
|
readonly revokedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
|
|
822
1063
|
readonly revokedReason: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
823
|
-
}>]>>,
|
|
824
|
-
export declare const jwtJwksEndpoint: HttpApiEndpoint.HttpApiEndpoint<"jwks", "GET", "/jwks.json",
|
|
1064
|
+
}>]>>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthInternalError>, never, never>;
|
|
1065
|
+
export declare const jwtJwksEndpoint: HttpApiEndpoint.HttpApiEndpoint<"jwks", "GET", "/jwks.json", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
825
1066
|
readonly keys: import("effect/Schema").$Array<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
|
|
826
|
-
}>>,
|
|
827
|
-
export declare const oidcDiscoveryMetadataEndpoint: HttpApiEndpoint.HttpApiEndpoint<"openidConfiguration", "GET", "/openid-configuration",
|
|
1067
|
+
}>>, import("effect/Schema").toCodecJson<typeof AuthInternalError>, never, never>;
|
|
1068
|
+
export declare const oidcDiscoveryMetadataEndpoint: HttpApiEndpoint.HttpApiEndpoint<"openidConfiguration", "GET", "/openid-configuration", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
828
1069
|
readonly issuer: import("effect/Schema").String;
|
|
829
1070
|
readonly authorization_endpoint: import("effect/Schema").String;
|
|
830
1071
|
readonly token_endpoint: import("effect/Schema").String;
|
|
@@ -843,85 +1084,129 @@ export declare const oidcDiscoveryMetadataEndpoint: HttpApiEndpoint.HttpApiEndpo
|
|
|
843
1084
|
readonly introspection_endpoint: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
844
1085
|
readonly revocation_endpoint: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
845
1086
|
readonly revocation_endpoint_auth_methods_supported: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
846
|
-
}>>,
|
|
847
|
-
export declare const jwtRevokeEndpoint: HttpApiEndpoint.HttpApiEndpoint<"revoke", "POST", "/revoke",
|
|
1087
|
+
}>>, import("effect/Schema").toCodecJson<typeof AuthInternalError>, never, never>;
|
|
1088
|
+
export declare const jwtRevokeEndpoint: HttpApiEndpoint.HttpApiEndpoint<"revoke", "POST", "/revoke", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
848
1089
|
readonly jwtId: import("effect/Schema").String;
|
|
849
1090
|
readonly expiresAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
|
|
850
1091
|
readonly reason: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
851
|
-
}>>,
|
|
852
|
-
export declare const mfaOptionsEndpoint: HttpApiEndpoint.HttpApiEndpoint<"options", "POST", "/options",
|
|
1092
|
+
}>>, never, import("effect/Schema").toCodecJson<HttpApiSchema.NoContent>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthInternalError>, never, never>;
|
|
1093
|
+
export declare const mfaOptionsEndpoint: HttpApiEndpoint.HttpApiEndpoint<"options", "POST", "/options", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
853
1094
|
readonly flowId: import("effect/Schema").brand<import("effect/Schema").String, "auth/AuthFlowId">;
|
|
854
|
-
}>>,
|
|
1095
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
855
1096
|
readonly factors: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
856
1097
|
readonly type: import("effect/Schema").Literals<readonly ["totp", "backup-code", "passkey"]>;
|
|
857
1098
|
}>>;
|
|
858
|
-
}>>,
|
|
859
|
-
export declare const totpMfaVerifyEndpoint: HttpApiEndpoint.HttpApiEndpoint<"verifyTotp", "POST", "/totp/verify",
|
|
1099
|
+
}>>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
|
|
1100
|
+
export declare const totpMfaVerifyEndpoint: HttpApiEndpoint.HttpApiEndpoint<"verifyTotp", "POST", "/totp/verify", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
860
1101
|
readonly flowId: import("effect/Schema").brand<import("effect/Schema").String, "auth/AuthFlowId">;
|
|
861
1102
|
readonly userId: import("effect/Schema").brand<import("effect/Schema").String, "auth/UserId">;
|
|
862
1103
|
readonly code: import("effect/Schema").String;
|
|
863
1104
|
readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
|
|
864
|
-
}>>,
|
|
1105
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
865
1106
|
readonly type: import("effect/Schema").Literal<"authenticated">;
|
|
866
1107
|
readonly expiresAt: import("effect/Schema").Number;
|
|
867
1108
|
readonly aal: import("effect/Schema").Literals<readonly ["aal1", "aal2", "aal3"]>;
|
|
868
1109
|
readonly amr: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
869
1110
|
readonly mfaVerifiedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
|
|
870
1111
|
readonly claims: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
871
|
-
readonly
|
|
1112
|
+
readonly verifiedIdentityKinds: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
872
1113
|
readonly requirements: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
1114
|
+
readonly recoveryEnrollment: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
1115
|
+
readonly allowed: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
1116
|
+
}>>;
|
|
873
1117
|
}>>;
|
|
874
|
-
}
|
|
875
|
-
|
|
1118
|
+
}>, import("effect/Schema").Struct<{
|
|
1119
|
+
readonly type: import("effect/Schema").Literal<"requires_login_approval">;
|
|
1120
|
+
readonly flowId: import("effect/Schema").String;
|
|
1121
|
+
readonly approvalChallengeId: import("effect/Schema").String;
|
|
1122
|
+
readonly channel: import("effect/Schema").String;
|
|
1123
|
+
readonly sessionBinding: import("effect/Schema").Literals<readonly ["originating-device", "approval-device", "none"]>;
|
|
1124
|
+
readonly sameDeviceRequired: import("effect/Schema").Boolean;
|
|
1125
|
+
readonly reason: import("effect/Schema").String;
|
|
1126
|
+
}>]>>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthInvalidCredentialsError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
|
|
1127
|
+
export declare const totpMfaVerifyForFlowEndpoint: HttpApiEndpoint.HttpApiEndpoint<"verifyTotpForFlow", "POST", "/totp/verify-flow", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
876
1128
|
readonly flowId: import("effect/Schema").brand<import("effect/Schema").String, "auth/AuthFlowId">;
|
|
877
1129
|
readonly code: import("effect/Schema").String;
|
|
878
1130
|
readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
|
|
879
|
-
}>>,
|
|
1131
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
880
1132
|
readonly type: import("effect/Schema").Literal<"authenticated">;
|
|
881
1133
|
readonly expiresAt: import("effect/Schema").Number;
|
|
882
1134
|
readonly aal: import("effect/Schema").Literals<readonly ["aal1", "aal2", "aal3"]>;
|
|
883
1135
|
readonly amr: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
884
1136
|
readonly mfaVerifiedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
|
|
885
1137
|
readonly claims: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
886
|
-
readonly
|
|
1138
|
+
readonly verifiedIdentityKinds: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
887
1139
|
readonly requirements: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
1140
|
+
readonly recoveryEnrollment: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
1141
|
+
readonly allowed: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
1142
|
+
}>>;
|
|
888
1143
|
}>>;
|
|
889
|
-
}
|
|
890
|
-
|
|
1144
|
+
}>, import("effect/Schema").Struct<{
|
|
1145
|
+
readonly type: import("effect/Schema").Literal<"requires_login_approval">;
|
|
1146
|
+
readonly flowId: import("effect/Schema").String;
|
|
1147
|
+
readonly approvalChallengeId: import("effect/Schema").String;
|
|
1148
|
+
readonly channel: import("effect/Schema").String;
|
|
1149
|
+
readonly sessionBinding: import("effect/Schema").Literals<readonly ["originating-device", "approval-device", "none"]>;
|
|
1150
|
+
readonly sameDeviceRequired: import("effect/Schema").Boolean;
|
|
1151
|
+
readonly reason: import("effect/Schema").String;
|
|
1152
|
+
}>]>>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthInvalidCredentialsError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
|
|
1153
|
+
export declare const recoveryCodeMfaVerifyEndpoint: HttpApiEndpoint.HttpApiEndpoint<"verifyRecoveryCode", "POST", "/recovery-code/verify", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
891
1154
|
readonly flowId: import("effect/Schema").brand<import("effect/Schema").String, "auth/AuthFlowId">;
|
|
892
1155
|
readonly userId: import("effect/Schema").brand<import("effect/Schema").String, "auth/UserId">;
|
|
893
1156
|
readonly code: import("effect/Schema").String;
|
|
894
1157
|
readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
|
|
895
|
-
}>>,
|
|
1158
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
896
1159
|
readonly type: import("effect/Schema").Literal<"authenticated">;
|
|
897
1160
|
readonly expiresAt: import("effect/Schema").Number;
|
|
898
1161
|
readonly aal: import("effect/Schema").Literals<readonly ["aal1", "aal2", "aal3"]>;
|
|
899
1162
|
readonly amr: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
900
1163
|
readonly mfaVerifiedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
|
|
901
1164
|
readonly claims: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
902
|
-
readonly
|
|
1165
|
+
readonly verifiedIdentityKinds: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
903
1166
|
readonly requirements: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
1167
|
+
readonly recoveryEnrollment: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
1168
|
+
readonly allowed: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
1169
|
+
}>>;
|
|
904
1170
|
}>>;
|
|
905
|
-
}
|
|
906
|
-
|
|
1171
|
+
}>, import("effect/Schema").Struct<{
|
|
1172
|
+
readonly type: import("effect/Schema").Literal<"requires_login_approval">;
|
|
1173
|
+
readonly flowId: import("effect/Schema").String;
|
|
1174
|
+
readonly approvalChallengeId: import("effect/Schema").String;
|
|
1175
|
+
readonly channel: import("effect/Schema").String;
|
|
1176
|
+
readonly sessionBinding: import("effect/Schema").Literals<readonly ["originating-device", "approval-device", "none"]>;
|
|
1177
|
+
readonly sameDeviceRequired: import("effect/Schema").Boolean;
|
|
1178
|
+
readonly reason: import("effect/Schema").String;
|
|
1179
|
+
}>]>>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthInvalidCredentialsError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
|
|
1180
|
+
export declare const recoveryCodeMfaVerifyForFlowEndpoint: HttpApiEndpoint.HttpApiEndpoint<"verifyRecoveryCodeForFlow", "POST", "/recovery-code/verify-flow", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
907
1181
|
readonly flowId: import("effect/Schema").brand<import("effect/Schema").String, "auth/AuthFlowId">;
|
|
908
1182
|
readonly code: import("effect/Schema").String;
|
|
909
1183
|
readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
|
|
910
|
-
}>>,
|
|
1184
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
911
1185
|
readonly type: import("effect/Schema").Literal<"authenticated">;
|
|
912
1186
|
readonly expiresAt: import("effect/Schema").Number;
|
|
913
1187
|
readonly aal: import("effect/Schema").Literals<readonly ["aal1", "aal2", "aal3"]>;
|
|
914
1188
|
readonly amr: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
915
1189
|
readonly mfaVerifiedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
|
|
916
1190
|
readonly claims: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
917
|
-
readonly
|
|
1191
|
+
readonly verifiedIdentityKinds: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
918
1192
|
readonly requirements: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
1193
|
+
readonly recoveryEnrollment: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
1194
|
+
readonly allowed: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
1195
|
+
}>>;
|
|
919
1196
|
}>>;
|
|
920
|
-
}
|
|
921
|
-
|
|
1197
|
+
}>, import("effect/Schema").Struct<{
|
|
1198
|
+
readonly type: import("effect/Schema").Literal<"requires_login_approval">;
|
|
1199
|
+
readonly flowId: import("effect/Schema").String;
|
|
1200
|
+
readonly approvalChallengeId: import("effect/Schema").String;
|
|
1201
|
+
readonly channel: import("effect/Schema").String;
|
|
1202
|
+
readonly sessionBinding: import("effect/Schema").Literals<readonly ["originating-device", "approval-device", "none"]>;
|
|
1203
|
+
readonly sameDeviceRequired: import("effect/Schema").Boolean;
|
|
1204
|
+
readonly reason: import("effect/Schema").String;
|
|
1205
|
+
}>]>>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthInvalidCredentialsError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
|
|
1206
|
+
export declare const passkeyMfaStartEndpoint: HttpApiEndpoint.HttpApiEndpoint<"startPasskey", "POST", "/passkey/start", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
922
1207
|
readonly flowId: import("effect/Schema").brand<import("effect/Schema").String, "auth/AuthFlowId">;
|
|
923
1208
|
readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
|
|
924
|
-
}>>,
|
|
1209
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
925
1210
|
readonly challengeId: import("effect/Schema").brand<import("effect/Schema").String, "auth/ChallengeId">;
|
|
926
1211
|
readonly expiresAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
|
|
927
1212
|
readonly publicKey: import("effect/Schema").Struct<{
|
|
@@ -935,8 +1220,8 @@ export declare const passkeyMfaStartEndpoint: HttpApiEndpoint.HttpApiEndpoint<"s
|
|
|
935
1220
|
}>>>;
|
|
936
1221
|
readonly userVerification: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["required", "preferred", "discouraged"]>>;
|
|
937
1222
|
}>;
|
|
938
|
-
}>>,
|
|
939
|
-
export declare const passkeyMfaVerifyEndpoint: HttpApiEndpoint.HttpApiEndpoint<"verifyPasskey", "POST", "/passkey/verify",
|
|
1223
|
+
}>>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
|
|
1224
|
+
export declare const passkeyMfaVerifyEndpoint: HttpApiEndpoint.HttpApiEndpoint<"verifyPasskey", "POST", "/passkey/verify", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
940
1225
|
readonly flowId: import("effect/Schema").brand<import("effect/Schema").String, "auth/AuthFlowId">;
|
|
941
1226
|
readonly challengeId: import("effect/Schema").brand<import("effect/Schema").String, "auth/ChallengeId">;
|
|
942
1227
|
readonly credential: import("effect/Schema").Struct<{
|
|
@@ -949,53 +1234,87 @@ export declare const passkeyMfaVerifyEndpoint: HttpApiEndpoint.HttpApiEndpoint<"
|
|
|
949
1234
|
}>;
|
|
950
1235
|
readonly userId: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").String, "auth/UserId">>;
|
|
951
1236
|
readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
|
|
952
|
-
}>>,
|
|
1237
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
953
1238
|
readonly type: import("effect/Schema").Literal<"authenticated">;
|
|
954
1239
|
readonly expiresAt: import("effect/Schema").Number;
|
|
955
1240
|
readonly aal: import("effect/Schema").Literals<readonly ["aal1", "aal2", "aal3"]>;
|
|
956
1241
|
readonly amr: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
957
1242
|
readonly mfaVerifiedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
|
|
958
1243
|
readonly claims: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
959
|
-
readonly
|
|
1244
|
+
readonly verifiedIdentityKinds: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
960
1245
|
readonly requirements: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
1246
|
+
readonly recoveryEnrollment: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
1247
|
+
readonly allowed: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
1248
|
+
}>>;
|
|
961
1249
|
}>>;
|
|
962
|
-
}
|
|
963
|
-
|
|
1250
|
+
}>, import("effect/Schema").Struct<{
|
|
1251
|
+
readonly type: import("effect/Schema").Literal<"requires_login_approval">;
|
|
1252
|
+
readonly flowId: import("effect/Schema").String;
|
|
1253
|
+
readonly approvalChallengeId: import("effect/Schema").String;
|
|
1254
|
+
readonly channel: import("effect/Schema").String;
|
|
1255
|
+
readonly sessionBinding: import("effect/Schema").Literals<readonly ["originating-device", "approval-device", "none"]>;
|
|
1256
|
+
readonly sameDeviceRequired: import("effect/Schema").Boolean;
|
|
1257
|
+
readonly reason: import("effect/Schema").String;
|
|
1258
|
+
}>]>>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
|
|
1259
|
+
export declare const stepUpOptionsEndpoint: HttpApiEndpoint.HttpApiEndpoint<"options", "GET", "/options", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
964
1260
|
readonly factors: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
965
|
-
readonly type: import("effect/Schema").Literals<readonly ["totp", "backup-code", "passkey"]>;
|
|
1261
|
+
readonly type: import("effect/Schema").Literals<readonly ["password", "totp", "backup-code", "passkey"]>;
|
|
966
1262
|
}>>;
|
|
967
|
-
}>>,
|
|
968
|
-
export declare const stepUpTotpVerifyEndpoint: HttpApiEndpoint.HttpApiEndpoint<"verifyTotp", "POST", "/totp/verify",
|
|
1263
|
+
}>>, import("effect/Schema").toCodecJson<typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
|
|
1264
|
+
export declare const stepUpTotpVerifyEndpoint: HttpApiEndpoint.HttpApiEndpoint<"verifyTotp", "POST", "/totp/verify", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
969
1265
|
readonly code: import("effect/Schema").String;
|
|
970
1266
|
readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
|
|
971
|
-
}>>,
|
|
1267
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
972
1268
|
readonly type: import("effect/Schema").Literal<"authenticated">;
|
|
973
1269
|
readonly expiresAt: import("effect/Schema").Number;
|
|
974
1270
|
readonly aal: import("effect/Schema").Literals<readonly ["aal1", "aal2", "aal3"]>;
|
|
975
1271
|
readonly amr: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
976
1272
|
readonly mfaVerifiedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
|
|
977
1273
|
readonly claims: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
978
|
-
readonly
|
|
1274
|
+
readonly verifiedIdentityKinds: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
1275
|
+
readonly requirements: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
1276
|
+
readonly recoveryEnrollment: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
1277
|
+
readonly allowed: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
1278
|
+
}>>;
|
|
1279
|
+
}>>;
|
|
1280
|
+
}>>, import("effect/Schema").toCodecJson<typeof AuthUnauthenticatedError | typeof AuthInvalidCredentialsError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
|
|
1281
|
+
export declare const stepUpPasswordVerifyEndpoint: HttpApiEndpoint.HttpApiEndpoint<"verifyPassword", "POST", "/password/verify", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1282
|
+
readonly password: import("effect/Schema").String;
|
|
1283
|
+
readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
|
|
1284
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1285
|
+
readonly type: import("effect/Schema").Literal<"authenticated">;
|
|
1286
|
+
readonly expiresAt: import("effect/Schema").Number;
|
|
1287
|
+
readonly aal: import("effect/Schema").Literals<readonly ["aal1", "aal2", "aal3"]>;
|
|
1288
|
+
readonly amr: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
1289
|
+
readonly mfaVerifiedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
|
|
1290
|
+
readonly claims: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
1291
|
+
readonly verifiedIdentityKinds: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
979
1292
|
readonly requirements: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
1293
|
+
readonly recoveryEnrollment: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
1294
|
+
readonly allowed: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
1295
|
+
}>>;
|
|
980
1296
|
}>>;
|
|
981
|
-
}>>,
|
|
982
|
-
export declare const stepUpRecoveryCodeVerifyEndpoint: HttpApiEndpoint.HttpApiEndpoint<"verifyRecoveryCode", "POST", "/recovery-code/verify",
|
|
1297
|
+
}>>, import("effect/Schema").toCodecJson<typeof AuthUnauthenticatedError | typeof AuthInvalidCredentialsError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
|
|
1298
|
+
export declare const stepUpRecoveryCodeVerifyEndpoint: HttpApiEndpoint.HttpApiEndpoint<"verifyRecoveryCode", "POST", "/recovery-code/verify", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
983
1299
|
readonly code: import("effect/Schema").String;
|
|
984
1300
|
readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
|
|
985
|
-
}>>,
|
|
1301
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
986
1302
|
readonly type: import("effect/Schema").Literal<"authenticated">;
|
|
987
1303
|
readonly expiresAt: import("effect/Schema").Number;
|
|
988
1304
|
readonly aal: import("effect/Schema").Literals<readonly ["aal1", "aal2", "aal3"]>;
|
|
989
1305
|
readonly amr: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
990
1306
|
readonly mfaVerifiedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
|
|
991
1307
|
readonly claims: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
992
|
-
readonly
|
|
1308
|
+
readonly verifiedIdentityKinds: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
993
1309
|
readonly requirements: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
1310
|
+
readonly recoveryEnrollment: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
1311
|
+
readonly allowed: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
1312
|
+
}>>;
|
|
994
1313
|
}>>;
|
|
995
|
-
}>>,
|
|
996
|
-
export declare const stepUpPasskeyStartEndpoint: HttpApiEndpoint.HttpApiEndpoint<"startPasskey", "POST", "/passkey/start",
|
|
1314
|
+
}>>, import("effect/Schema").toCodecJson<typeof AuthUnauthenticatedError | typeof AuthInvalidCredentialsError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
|
|
1315
|
+
export declare const stepUpPasskeyStartEndpoint: HttpApiEndpoint.HttpApiEndpoint<"startPasskey", "POST", "/passkey/start", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
997
1316
|
readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
|
|
998
|
-
}>>,
|
|
1317
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
999
1318
|
readonly challengeId: import("effect/Schema").brand<import("effect/Schema").String, "auth/ChallengeId">;
|
|
1000
1319
|
readonly expiresAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
|
|
1001
1320
|
readonly publicKey: import("effect/Schema").Struct<{
|
|
@@ -1009,8 +1328,8 @@ export declare const stepUpPasskeyStartEndpoint: HttpApiEndpoint.HttpApiEndpoint
|
|
|
1009
1328
|
}>>>;
|
|
1010
1329
|
readonly userVerification: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["required", "preferred", "discouraged"]>>;
|
|
1011
1330
|
}>;
|
|
1012
|
-
}>>,
|
|
1013
|
-
export declare const stepUpPasskeyVerifyEndpoint: HttpApiEndpoint.HttpApiEndpoint<"verifyPasskey", "POST", "/passkey/verify",
|
|
1331
|
+
}>>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
|
|
1332
|
+
export declare const stepUpPasskeyVerifyEndpoint: HttpApiEndpoint.HttpApiEndpoint<"verifyPasskey", "POST", "/passkey/verify", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1014
1333
|
readonly challengeId: import("effect/Schema").brand<import("effect/Schema").String, "auth/ChallengeId">;
|
|
1015
1334
|
readonly credential: import("effect/Schema").Struct<{
|
|
1016
1335
|
readonly id: import("effect/Schema").String;
|
|
@@ -1021,53 +1340,62 @@ export declare const stepUpPasskeyVerifyEndpoint: HttpApiEndpoint.HttpApiEndpoin
|
|
|
1021
1340
|
readonly clientExtensionResults: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
|
|
1022
1341
|
}>;
|
|
1023
1342
|
readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
|
|
1024
|
-
}>>,
|
|
1343
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1025
1344
|
readonly type: import("effect/Schema").Literal<"authenticated">;
|
|
1026
1345
|
readonly expiresAt: import("effect/Schema").Number;
|
|
1027
1346
|
readonly aal: import("effect/Schema").Literals<readonly ["aal1", "aal2", "aal3"]>;
|
|
1028
1347
|
readonly amr: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
1029
1348
|
readonly mfaVerifiedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
|
|
1030
1349
|
readonly claims: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
1031
|
-
readonly
|
|
1350
|
+
readonly verifiedIdentityKinds: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
1032
1351
|
readonly requirements: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
1352
|
+
readonly recoveryEnrollment: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
1353
|
+
readonly allowed: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
1354
|
+
}>>;
|
|
1033
1355
|
}>>;
|
|
1034
|
-
}>>,
|
|
1035
|
-
export declare const loginApprovalApproveEndpoint: HttpApiEndpoint.HttpApiEndpoint<"approve", "POST", "/approve",
|
|
1356
|
+
}>>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
|
|
1357
|
+
export declare const loginApprovalApproveEndpoint: HttpApiEndpoint.HttpApiEndpoint<"approve", "POST", "/approve", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1036
1358
|
readonly flowId: import("effect/Schema").brand<import("effect/Schema").String, "auth/AuthFlowId">;
|
|
1037
1359
|
readonly approvalChallengeId: import("effect/Schema").brand<import("effect/Schema").String, "auth/ChallengeId">;
|
|
1038
1360
|
readonly secret: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1039
1361
|
readonly rememberDevice: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
1040
|
-
}>>,
|
|
1362
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1041
1363
|
readonly type: import("effect/Schema").Literal<"authenticated">;
|
|
1042
1364
|
readonly expiresAt: import("effect/Schema").Number;
|
|
1043
1365
|
readonly aal: import("effect/Schema").Literals<readonly ["aal1", "aal2", "aal3"]>;
|
|
1044
1366
|
readonly amr: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
1045
1367
|
readonly mfaVerifiedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
|
|
1046
1368
|
readonly claims: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
1047
|
-
readonly
|
|
1369
|
+
readonly verifiedIdentityKinds: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
1048
1370
|
readonly requirements: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
1371
|
+
readonly recoveryEnrollment: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
1372
|
+
readonly allowed: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
1373
|
+
}>>;
|
|
1049
1374
|
}>>;
|
|
1050
|
-
}>>,
|
|
1051
|
-
export declare const loginApprovalStatusEndpoint: HttpApiEndpoint.HttpApiEndpoint<"status", "POST", "/status",
|
|
1375
|
+
}>>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthPolicyDeniedError | typeof AuthInternalError>, never, never>;
|
|
1376
|
+
export declare const loginApprovalStatusEndpoint: HttpApiEndpoint.HttpApiEndpoint<"status", "POST", "/status", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1052
1377
|
readonly flowId: import("effect/Schema").brand<import("effect/Schema").String, "auth/AuthFlowId">;
|
|
1053
1378
|
readonly approvalChallengeId: import("effect/Schema").brand<import("effect/Schema").String, "auth/ChallengeId">;
|
|
1054
|
-
}>>,
|
|
1379
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1055
1380
|
readonly status: import("effect/Schema").Literals<readonly ["pending", "approved", "denied", "expired"]>;
|
|
1056
1381
|
readonly expiresAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
|
|
1057
|
-
}>>,
|
|
1058
|
-
export declare const loginApprovalFinalizeEndpoint: HttpApiEndpoint.HttpApiEndpoint<"finalize", "POST", "/finalize",
|
|
1382
|
+
}>>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthPolicyDeniedError | typeof AuthInternalError>, never, never>;
|
|
1383
|
+
export declare const loginApprovalFinalizeEndpoint: HttpApiEndpoint.HttpApiEndpoint<"finalize", "POST", "/finalize", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1059
1384
|
readonly flowId: import("effect/Schema").brand<import("effect/Schema").String, "auth/AuthFlowId">;
|
|
1060
1385
|
readonly approvalChallengeId: import("effect/Schema").brand<import("effect/Schema").String, "auth/ChallengeId">;
|
|
1061
1386
|
readonly rememberDevice: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
1062
|
-
}>>,
|
|
1387
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1063
1388
|
readonly type: import("effect/Schema").Literal<"authenticated">;
|
|
1064
1389
|
readonly expiresAt: import("effect/Schema").Number;
|
|
1065
1390
|
readonly aal: import("effect/Schema").Literals<readonly ["aal1", "aal2", "aal3"]>;
|
|
1066
1391
|
readonly amr: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
1067
1392
|
readonly mfaVerifiedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
|
|
1068
1393
|
readonly claims: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
1069
|
-
readonly
|
|
1394
|
+
readonly verifiedIdentityKinds: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
1070
1395
|
readonly requirements: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
1396
|
+
readonly recoveryEnrollment: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
1397
|
+
readonly allowed: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
1398
|
+
}>>;
|
|
1071
1399
|
}>>;
|
|
1072
|
-
}>>,
|
|
1400
|
+
}>>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthPolicyDeniedError | typeof AuthInternalError>, never, never>;
|
|
1073
1401
|
//# sourceMappingURL=Endpoints.d.ts.map
|