@effect-auth/core 0.1.0-alpha.16 → 0.1.0-alpha.19
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 +307 -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/DevEmail.d.ts +44 -0
- package/dist/DevEmail.d.ts.map +1 -0
- package/dist/DevEmail.js +115 -0
- package/dist/DevEmail.js.map +1 -0
- package/dist/DevelopmentSeed.d.ts +47 -0
- package/dist/DevelopmentSeed.d.ts.map +1 -0
- package/dist/DevelopmentSeed.js +337 -0
- package/dist/DevelopmentSeed.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/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/DrizzlePostgresStorage.d.ts +26 -0
- package/dist/DrizzlePostgresStorage.d.ts.map +1 -0
- package/dist/DrizzlePostgresStorage.js +14 -0
- package/dist/DrizzlePostgresStorage.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 +178 -0
- package/dist/EffectQbPostgresStorage.d.ts.map +1 -0
- package/dist/EffectQbPostgresStorage.js +4637 -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 +221 -23
- package/dist/EffectQbSqliteStorage.d.ts.map +1 -1
- package/dist/EffectQbSqliteStorage.js +2064 -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 +939 -884
- package/dist/HttpApi/Api.d.ts.map +1 -1
- package/dist/HttpApi/Api.js +2254 -940
- 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 +661 -301
- package/dist/HttpApi/Endpoints.d.ts.map +1 -1
- package/dist/HttpApi/Endpoints.js +207 -120
- package/dist/HttpApi/Endpoints.js.map +1 -1
- package/dist/HttpApi/Errors.d.ts +37 -10
- package/dist/HttpApi/Errors.d.ts.map +1 -1
- package/dist/HttpApi/Errors.js +42 -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 +26 -0
- package/dist/HttpApi/Middleware.d.ts.map +1 -0
- package/dist/HttpApi/Middleware.js +13 -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/OAuthDeviceAuthorization.d.ts +106 -0
- package/dist/HttpApi/OAuthDeviceAuthorization.d.ts.map +1 -0
- package/dist/HttpApi/OAuthDeviceAuthorization.js +415 -0
- package/dist/HttpApi/OAuthDeviceAuthorization.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/OAuthDeviceAuthorization.d.ts +23 -0
- package/dist/HttpApi/Operations/OAuthDeviceAuthorization.d.ts.map +1 -0
- package/dist/HttpApi/Operations/OAuthDeviceAuthorization.js +7 -0
- package/dist/HttpApi/Operations/OAuthDeviceAuthorization.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 +26 -0
- package/dist/HttpApi/Operations/OAuthToken.d.ts.map +1 -0
- package/dist/HttpApi/Operations/OAuthToken.js +9 -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 +28 -0
- package/dist/HttpApi/Operations/index.d.ts.map +1 -0
- package/dist/HttpApi/Operations/index.js +28 -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 +399 -84
- package/dist/HttpApi/Schemas.d.ts.map +1 -1
- package/dist/HttpApi/Schemas.js +225 -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 +11 -3
- package/dist/HttpApi/index.d.ts.map +1 -1
- package/dist/HttpApi/index.js +10 -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 +138 -96
- package/dist/OAuth.d.ts.map +1 -1
- package/dist/OAuth.js +522 -221
- package/dist/OAuth.js.map +1 -1
- package/dist/OAuthDeviceAuthorization.d.ts +378 -0
- package/dist/OAuthDeviceAuthorization.d.ts.map +1 -0
- package/dist/OAuthDeviceAuthorization.js +860 -0
- package/dist/OAuthDeviceAuthorization.js.map +1 -0
- package/dist/OAuthDeviceClient.d.ts +76 -0
- package/dist/OAuthDeviceClient.d.ts.map +1 -0
- package/dist/OAuthDeviceClient.js +362 -0
- package/dist/OAuthDeviceClient.js.map +1 -0
- 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 +16 -0
- package/dist/PostgresStorageMigrations.d.ts.map +1 -0
- package/dist/PostgresStorageMigrations.js +674 -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/Retention.d.ts +6 -1
- package/dist/Retention.d.ts.map +1 -1
- package/dist/Retention.js +49 -12
- package/dist/Retention.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/SqliteStorageSchemaData.d.ts +2 -0
- package/dist/SqliteStorageSchemaData.d.ts.map +1 -0
- package/dist/SqliteStorageSchemaData.js +508 -0
- package/dist/SqliteStorageSchemaData.js.map +1 -0
- 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 +7 -1
- package/dist/StorageMigrations.d.ts.map +1 -1
- package/dist/StorageMigrations.js +256 -0
- package/dist/StorageMigrations.js.map +1 -1
- package/dist/StorageSchemaGenerator.d.ts +544 -0
- package/dist/StorageSchemaGenerator.d.ts.map +1 -0
- package/dist/StorageSchemaGenerator.js +1418 -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/0029_auth_oauth_device_authorization.sql +28 -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/0010_auth_oauth_device_authorization.sql +50 -0
- package/migrations/postgres/delegated-access/0001_auth_delegated_access.sql +112 -0
- package/package.json +309 -2
|
@@ -0,0 +1,917 @@
|
|
|
1
|
+
import { HttpApi, HttpApiGroup } from "effect/unstable/httpapi";
|
|
2
|
+
import { AuthSchemaErrorMiddleware } from "./Errors.js";
|
|
3
|
+
import { AuthOriginCheckMiddleware } from "./Middleware.js";
|
|
4
|
+
import { PasswordHttpApiGroup } from "./PasswordContract.js";
|
|
5
|
+
export { PasswordHttpApiGroup } from "./PasswordContract.js";
|
|
6
|
+
declare const SessionHttpApiGroup_base: HttpApiGroup.HttpApiGroup<"session", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"current", "GET", "/auth/session", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
7
|
+
readonly type: import("effect/Schema").Literal<"authenticated">;
|
|
8
|
+
readonly userId: import("effect/Schema").String;
|
|
9
|
+
readonly sessionId: import("effect/Schema").String;
|
|
10
|
+
readonly authTime: import("effect/Schema").Number;
|
|
11
|
+
readonly expiresAt: import("effect/Schema").Number;
|
|
12
|
+
readonly aal: import("effect/Schema").Literals<readonly ["aal1", "aal2", "aal3"]>;
|
|
13
|
+
readonly amr: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
14
|
+
readonly mfaVerifiedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
|
|
15
|
+
readonly claims: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
16
|
+
readonly verifiedIdentityKinds: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
17
|
+
readonly requirements: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
18
|
+
readonly recoveryEnrollment: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
19
|
+
readonly allowed: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
20
|
+
}>>;
|
|
21
|
+
}>>;
|
|
22
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./Errors.js").AuthUnauthenticatedError | typeof import("./Errors.js").AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthRequestRejectedError | typeof import("./Errors.js").AuthInternalError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"list", "GET", "/auth/sessions", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
23
|
+
readonly sessions: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
24
|
+
readonly sessionId: import("effect/Schema").brand<import("effect/Schema").String, "auth/SessionId">;
|
|
25
|
+
readonly userId: import("effect/Schema").brand<import("effect/Schema").String, "auth/UserId">;
|
|
26
|
+
readonly createdAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
|
|
27
|
+
readonly authTime: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
|
|
28
|
+
readonly lastSeenAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
|
|
29
|
+
readonly expiresAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
|
|
30
|
+
readonly aal: import("effect/Schema").Literals<readonly ["aal1", "aal2", "aal3"]>;
|
|
31
|
+
readonly amr: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
32
|
+
readonly mfaVerifiedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
|
|
33
|
+
readonly current: import("effect/Schema").Boolean;
|
|
34
|
+
readonly claims: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
35
|
+
readonly verifiedIdentityKinds: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
36
|
+
readonly requirements: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
37
|
+
readonly recoveryEnrollment: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
38
|
+
readonly allowed: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
39
|
+
}>>;
|
|
40
|
+
}>>;
|
|
41
|
+
readonly ip: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
42
|
+
readonly userAgent: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
43
|
+
readonly country: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
44
|
+
readonly region: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
45
|
+
readonly city: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
46
|
+
readonly latitude: import("effect/Schema").optional<import("effect/Schema").Number>;
|
|
47
|
+
readonly longitude: import("effect/Schema").optional<import("effect/Schema").Number>;
|
|
48
|
+
readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
|
|
49
|
+
}>>;
|
|
50
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./Errors.js").AuthUnauthenticatedError | typeof import("./Errors.js").AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthRequestRejectedError | typeof import("./Errors.js").AuthInternalError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"logout", "POST", "/auth/logout", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/unstable/httpapi/HttpApiSchema").NoContent>, import("effect/Schema").toCodecJson<typeof import("./Errors.js").AuthInternalError>, AuthOriginCheckMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"refresh", "POST", "/auth/session/refresh", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
51
|
+
readonly type: import("effect/Schema").Literal<"authenticated">;
|
|
52
|
+
readonly userId: import("effect/Schema").String;
|
|
53
|
+
readonly sessionId: import("effect/Schema").String;
|
|
54
|
+
readonly authTime: import("effect/Schema").Number;
|
|
55
|
+
readonly expiresAt: import("effect/Schema").Number;
|
|
56
|
+
readonly aal: import("effect/Schema").Literals<readonly ["aal1", "aal2", "aal3"]>;
|
|
57
|
+
readonly amr: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
58
|
+
readonly mfaVerifiedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
|
|
59
|
+
readonly claims: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
60
|
+
readonly verifiedIdentityKinds: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
61
|
+
readonly requirements: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
62
|
+
readonly recoveryEnrollment: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
63
|
+
readonly allowed: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
64
|
+
}>>;
|
|
65
|
+
}>>;
|
|
66
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./Errors.js").AuthUnauthenticatedError | typeof import("./Errors.js").AuthInternalError>, AuthOriginCheckMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"revoke", "POST", "/auth/sessions/revoke", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
67
|
+
readonly sessionId: import("effect/Schema").brand<import("effect/Schema").String, "auth/SessionId">;
|
|
68
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/unstable/httpapi/HttpApiSchema").NoContent>, import("effect/Schema").toCodecJson<typeof import("./Errors.js").AuthUnauthenticatedError | typeof import("./Errors.js").AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthRequestRejectedError | typeof import("./Errors.js").AuthInternalError>, AuthOriginCheckMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"revokeOthers", "POST", "/auth/sessions/revoke-others", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/unstable/httpapi/HttpApiSchema").NoContent>, import("effect/Schema").toCodecJson<typeof import("./Errors.js").AuthUnauthenticatedError | typeof import("./Errors.js").AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthRequestRejectedError | typeof import("./Errors.js").AuthInternalError>, AuthOriginCheckMiddleware, never>, false>;
|
|
69
|
+
export declare class SessionHttpApiGroup extends SessionHttpApiGroup_base {
|
|
70
|
+
}
|
|
71
|
+
declare const EmailVerificationHttpApiGroup_base: HttpApiGroup.HttpApiGroup<"emailVerification", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"start", "POST", "/auth/email-verification/start", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
72
|
+
readonly identityId: import("effect/Schema").brand<import("effect/Schema").String, "auth/IdentityId">;
|
|
73
|
+
readonly secret: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
74
|
+
readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
|
|
75
|
+
readonly botChallenge: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
76
|
+
readonly token: import("effect/Schema").String;
|
|
77
|
+
}>>;
|
|
78
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/unstable/httpapi/HttpApiSchema").NoContent>, import("effect/Schema").toCodecJson<typeof import("./Errors.js").AuthBadRequestError | typeof import("./Errors.js").AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthRequestRejectedError | typeof import("./Errors.js").AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verify", "POST", "/auth/email-verification/verify", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
79
|
+
readonly challengeId: import("effect/Schema").brand<import("effect/Schema").String, "auth/ChallengeId">;
|
|
80
|
+
readonly secret: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
81
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/unstable/httpapi/HttpApiSchema").NoContent>, import("effect/Schema").toCodecJson<typeof import("./Errors.js").AuthBadRequestError | typeof import("./Errors.js").AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never>, false>;
|
|
82
|
+
export declare class EmailVerificationHttpApiGroup extends EmailVerificationHttpApiGroup_base {
|
|
83
|
+
}
|
|
84
|
+
declare const EmailOtpHttpApiGroup_base: HttpApiGroup.HttpApiGroup<"emailOtp", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"start", "POST", "/auth/email-otp/start", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
85
|
+
readonly identity: import("effect/Schema").Struct<{
|
|
86
|
+
readonly scope: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
87
|
+
readonly type: import("effect/Schema").Literal<"global">;
|
|
88
|
+
}>, import("effect/Schema").Struct<{
|
|
89
|
+
readonly type: import("effect/Schema").Literal<"tenant">;
|
|
90
|
+
readonly tenantId: import("effect/Schema").String;
|
|
91
|
+
}>]>;
|
|
92
|
+
readonly kind: import("effect/Schema").String;
|
|
93
|
+
readonly value: import("effect/Schema").String;
|
|
94
|
+
}>;
|
|
95
|
+
readonly secret: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
96
|
+
readonly locale: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
97
|
+
readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
|
|
98
|
+
readonly botChallenge: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
99
|
+
readonly token: import("effect/Schema").String;
|
|
100
|
+
}>>;
|
|
101
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
102
|
+
readonly challengeId: import("effect/Schema").brand<import("effect/Schema").String, "auth/ChallengeId">;
|
|
103
|
+
readonly identity: import("effect/Schema").Struct<{
|
|
104
|
+
readonly scope: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
105
|
+
readonly type: import("effect/Schema").Literal<"global">;
|
|
106
|
+
}>, import("effect/Schema").Struct<{
|
|
107
|
+
readonly type: import("effect/Schema").Literal<"tenant">;
|
|
108
|
+
readonly tenantId: import("effect/Schema").String;
|
|
109
|
+
}>]>;
|
|
110
|
+
readonly kind: import("effect/Schema").String;
|
|
111
|
+
readonly value: import("effect/Schema").String;
|
|
112
|
+
}>;
|
|
113
|
+
readonly expiresAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
|
|
114
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./Errors.js").AuthBadRequestError | typeof import("./Errors.js").AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthRequestRejectedError | typeof import("./Errors.js").AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verify", "POST", "/auth/email-otp/verify", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
115
|
+
readonly challengeId: import("effect/Schema").brand<import("effect/Schema").String, "auth/ChallengeId">;
|
|
116
|
+
readonly secret: import("effect/Schema").String;
|
|
117
|
+
readonly botChallenge: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
118
|
+
readonly token: import("effect/Schema").String;
|
|
119
|
+
}>>;
|
|
120
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
121
|
+
readonly type: import("effect/Schema").Literal<"authenticated">;
|
|
122
|
+
readonly expiresAt: import("effect/Schema").Number;
|
|
123
|
+
readonly aal: import("effect/Schema").Literals<readonly ["aal1", "aal2", "aal3"]>;
|
|
124
|
+
readonly amr: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
125
|
+
readonly mfaVerifiedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
|
|
126
|
+
readonly claims: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
127
|
+
readonly verifiedIdentityKinds: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
128
|
+
readonly requirements: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
129
|
+
readonly recoveryEnrollment: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
130
|
+
readonly allowed: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
131
|
+
}>>;
|
|
132
|
+
}>>;
|
|
133
|
+
}>, import("effect/Schema").Struct<{
|
|
134
|
+
readonly type: import("effect/Schema").Literal<"requires_mfa">;
|
|
135
|
+
readonly flowId: import("effect/Schema").String;
|
|
136
|
+
readonly factors: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
137
|
+
readonly type: import("effect/Schema").Literals<readonly ["totp", "backup-code", "passkey"]>;
|
|
138
|
+
}>>;
|
|
139
|
+
}>, import("effect/Schema").Struct<{
|
|
140
|
+
readonly type: import("effect/Schema").Literal<"requires_email_verification">;
|
|
141
|
+
readonly flowId: import("effect/Schema").String;
|
|
142
|
+
readonly identityId: import("effect/Schema").brand<import("effect/Schema").String, "auth/IdentityId">;
|
|
143
|
+
}>, import("effect/Schema").Struct<{
|
|
144
|
+
readonly type: import("effect/Schema").Literal<"requires_login_approval">;
|
|
145
|
+
readonly flowId: import("effect/Schema").String;
|
|
146
|
+
readonly approvalChallengeId: import("effect/Schema").String;
|
|
147
|
+
readonly channel: import("effect/Schema").String;
|
|
148
|
+
readonly sessionBinding: import("effect/Schema").Literals<readonly ["originating-device", "approval-device", "none"]>;
|
|
149
|
+
readonly sameDeviceRequired: import("effect/Schema").Boolean;
|
|
150
|
+
readonly reason: import("effect/Schema").String;
|
|
151
|
+
}>, import("effect/Schema").Struct<{
|
|
152
|
+
readonly type: import("effect/Schema").Literal<"requires_passkey_enrollment">;
|
|
153
|
+
readonly flowId: import("effect/Schema").String;
|
|
154
|
+
}>]>>, import("effect/Schema").toCodecJson<typeof import("./Errors.js").AuthBadRequestError | typeof import("./Errors.js").AuthInvalidCredentialsError | typeof import("./Errors.js").AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthRequestRejectedError | typeof import("./Errors.js").AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never>, false>;
|
|
155
|
+
export declare class EmailOtpHttpApiGroup extends EmailOtpHttpApiGroup_base {
|
|
156
|
+
}
|
|
157
|
+
declare const EmailAuthHttpApiGroup_base: HttpApiGroup.HttpApiGroup<"emailAuth", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"start", "POST", "/auth/email/start", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
158
|
+
readonly identity: import("effect/Schema").Struct<{
|
|
159
|
+
readonly scope: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
160
|
+
readonly type: import("effect/Schema").Literal<"global">;
|
|
161
|
+
}>, import("effect/Schema").Struct<{
|
|
162
|
+
readonly type: import("effect/Schema").Literal<"tenant">;
|
|
163
|
+
readonly tenantId: import("effect/Schema").String;
|
|
164
|
+
}>]>;
|
|
165
|
+
readonly kind: import("effect/Schema").String;
|
|
166
|
+
readonly value: import("effect/Schema").String;
|
|
167
|
+
}>;
|
|
168
|
+
readonly emailOtpSecret: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
169
|
+
readonly magicLinkSecret: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
170
|
+
readonly locale: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
171
|
+
readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
|
|
172
|
+
readonly botChallenge: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
173
|
+
readonly token: import("effect/Schema").String;
|
|
174
|
+
}>>;
|
|
175
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
176
|
+
readonly identity: import("effect/Schema").Struct<{
|
|
177
|
+
readonly scope: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
178
|
+
readonly type: import("effect/Schema").Literal<"global">;
|
|
179
|
+
}>, import("effect/Schema").Struct<{
|
|
180
|
+
readonly type: import("effect/Schema").Literal<"tenant">;
|
|
181
|
+
readonly tenantId: import("effect/Schema").String;
|
|
182
|
+
}>]>;
|
|
183
|
+
readonly kind: import("effect/Schema").String;
|
|
184
|
+
readonly value: import("effect/Schema").String;
|
|
185
|
+
}>;
|
|
186
|
+
readonly emailOtp: import("effect/Schema").Struct<{
|
|
187
|
+
readonly challengeId: import("effect/Schema").brand<import("effect/Schema").String, "auth/ChallengeId">;
|
|
188
|
+
readonly expiresAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
|
|
189
|
+
}>;
|
|
190
|
+
readonly magicLink: import("effect/Schema").Struct<{
|
|
191
|
+
readonly expiresAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
|
|
192
|
+
}>;
|
|
193
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./Errors.js").AuthBadRequestError | typeof import("./Errors.js").AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthRequestRejectedError | typeof import("./Errors.js").AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never>, false>;
|
|
194
|
+
export declare class EmailAuthHttpApiGroup extends EmailAuthHttpApiGroup_base {
|
|
195
|
+
}
|
|
196
|
+
declare const MagicLinkHttpApiGroup_base: HttpApiGroup.HttpApiGroup<"magicLink", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"start", "POST", "/auth/magic-link/start", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
197
|
+
readonly identity: import("effect/Schema").Struct<{
|
|
198
|
+
readonly scope: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
199
|
+
readonly type: import("effect/Schema").Literal<"global">;
|
|
200
|
+
}>, import("effect/Schema").Struct<{
|
|
201
|
+
readonly type: import("effect/Schema").Literal<"tenant">;
|
|
202
|
+
readonly tenantId: import("effect/Schema").String;
|
|
203
|
+
}>]>;
|
|
204
|
+
readonly kind: import("effect/Schema").String;
|
|
205
|
+
readonly value: import("effect/Schema").String;
|
|
206
|
+
}>;
|
|
207
|
+
readonly secret: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
208
|
+
readonly locale: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
209
|
+
readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
|
|
210
|
+
readonly botChallenge: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
211
|
+
readonly token: import("effect/Schema").String;
|
|
212
|
+
}>>;
|
|
213
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
214
|
+
readonly identity: import("effect/Schema").Struct<{
|
|
215
|
+
readonly scope: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
216
|
+
readonly type: import("effect/Schema").Literal<"global">;
|
|
217
|
+
}>, import("effect/Schema").Struct<{
|
|
218
|
+
readonly type: import("effect/Schema").Literal<"tenant">;
|
|
219
|
+
readonly tenantId: import("effect/Schema").String;
|
|
220
|
+
}>]>;
|
|
221
|
+
readonly kind: import("effect/Schema").String;
|
|
222
|
+
readonly value: import("effect/Schema").String;
|
|
223
|
+
}>;
|
|
224
|
+
readonly expiresAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
|
|
225
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./Errors.js").AuthBadRequestError | typeof import("./Errors.js").AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthRequestRejectedError | typeof import("./Errors.js").AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verify", "POST", "/auth/magic-link/verify", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
226
|
+
readonly challengeId: import("effect/Schema").brand<import("effect/Schema").String, "auth/ChallengeId">;
|
|
227
|
+
readonly secret: import("effect/Schema").String;
|
|
228
|
+
readonly botChallenge: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
229
|
+
readonly token: import("effect/Schema").String;
|
|
230
|
+
}>>;
|
|
231
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
232
|
+
readonly type: import("effect/Schema").Literal<"authenticated">;
|
|
233
|
+
readonly expiresAt: import("effect/Schema").Number;
|
|
234
|
+
readonly aal: import("effect/Schema").Literals<readonly ["aal1", "aal2", "aal3"]>;
|
|
235
|
+
readonly amr: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
236
|
+
readonly mfaVerifiedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
|
|
237
|
+
readonly claims: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
238
|
+
readonly verifiedIdentityKinds: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
239
|
+
readonly requirements: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
240
|
+
readonly recoveryEnrollment: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
241
|
+
readonly allowed: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
242
|
+
}>>;
|
|
243
|
+
}>>;
|
|
244
|
+
}>, import("effect/Schema").Struct<{
|
|
245
|
+
readonly type: import("effect/Schema").Literal<"requires_mfa">;
|
|
246
|
+
readonly flowId: import("effect/Schema").String;
|
|
247
|
+
readonly factors: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
248
|
+
readonly type: import("effect/Schema").Literals<readonly ["totp", "backup-code", "passkey"]>;
|
|
249
|
+
}>>;
|
|
250
|
+
}>, import("effect/Schema").Struct<{
|
|
251
|
+
readonly type: import("effect/Schema").Literal<"requires_email_verification">;
|
|
252
|
+
readonly flowId: import("effect/Schema").String;
|
|
253
|
+
readonly identityId: import("effect/Schema").brand<import("effect/Schema").String, "auth/IdentityId">;
|
|
254
|
+
}>, import("effect/Schema").Struct<{
|
|
255
|
+
readonly type: import("effect/Schema").Literal<"requires_login_approval">;
|
|
256
|
+
readonly flowId: import("effect/Schema").String;
|
|
257
|
+
readonly approvalChallengeId: import("effect/Schema").String;
|
|
258
|
+
readonly channel: import("effect/Schema").String;
|
|
259
|
+
readonly sessionBinding: import("effect/Schema").Literals<readonly ["originating-device", "approval-device", "none"]>;
|
|
260
|
+
readonly sameDeviceRequired: import("effect/Schema").Boolean;
|
|
261
|
+
readonly reason: import("effect/Schema").String;
|
|
262
|
+
}>, import("effect/Schema").Struct<{
|
|
263
|
+
readonly type: import("effect/Schema").Literal<"requires_passkey_enrollment">;
|
|
264
|
+
readonly flowId: import("effect/Schema").String;
|
|
265
|
+
}>]>>, import("effect/Schema").toCodecJson<typeof import("./Errors.js").AuthBadRequestError | typeof import("./Errors.js").AuthInvalidCredentialsError | typeof import("./Errors.js").AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthRequestRejectedError | typeof import("./Errors.js").AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never>, false>;
|
|
266
|
+
export declare class MagicLinkHttpApiGroup extends MagicLinkHttpApiGroup_base {
|
|
267
|
+
}
|
|
268
|
+
declare const PasskeyHttpApiGroup_base: HttpApiGroup.HttpApiGroup<"passkey", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"authenticateFinish", "POST", "/auth/passkey/authenticate/finish", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
269
|
+
readonly challengeId: import("effect/Schema").brand<import("effect/Schema").String, "auth/ChallengeId">;
|
|
270
|
+
readonly credential: import("effect/Schema").Struct<{
|
|
271
|
+
readonly id: import("effect/Schema").String;
|
|
272
|
+
readonly rawId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
273
|
+
readonly type: import("effect/Schema").Literal<"public-key">;
|
|
274
|
+
readonly response: import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>;
|
|
275
|
+
readonly authenticatorAttachment: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
276
|
+
readonly clientExtensionResults: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
|
|
277
|
+
}>;
|
|
278
|
+
readonly userId: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").String, "auth/UserId">>;
|
|
279
|
+
readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
|
|
280
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
281
|
+
readonly type: import("effect/Schema").Literal<"authenticated">;
|
|
282
|
+
readonly expiresAt: import("effect/Schema").Number;
|
|
283
|
+
readonly aal: import("effect/Schema").Literals<readonly ["aal1", "aal2", "aal3"]>;
|
|
284
|
+
readonly amr: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
285
|
+
readonly mfaVerifiedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
|
|
286
|
+
readonly claims: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
287
|
+
readonly verifiedIdentityKinds: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
288
|
+
readonly requirements: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
289
|
+
readonly recoveryEnrollment: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
290
|
+
readonly allowed: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
291
|
+
}>>;
|
|
292
|
+
}>>;
|
|
293
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./Errors.js").AuthBadRequestError | typeof import("./Errors.js").AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthRequestRejectedError | typeof import("./Errors.js").AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"authenticateStart", "POST", "/auth/passkey/authenticate/start", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
294
|
+
readonly userId: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").String, "auth/UserId">>;
|
|
295
|
+
readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
|
|
296
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
297
|
+
readonly challengeId: import("effect/Schema").brand<import("effect/Schema").String, "auth/ChallengeId">;
|
|
298
|
+
readonly expiresAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
|
|
299
|
+
readonly publicKey: import("effect/Schema").Struct<{
|
|
300
|
+
readonly challenge: import("effect/Schema").String;
|
|
301
|
+
readonly rpId: import("effect/Schema").String;
|
|
302
|
+
readonly timeout: import("effect/Schema").optional<import("effect/Schema").Number>;
|
|
303
|
+
readonly allowCredentials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
304
|
+
readonly type: import("effect/Schema").Literal<"public-key">;
|
|
305
|
+
readonly id: import("effect/Schema").String;
|
|
306
|
+
readonly transports: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
307
|
+
}>>>;
|
|
308
|
+
readonly userVerification: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["required", "preferred", "discouraged"]>>;
|
|
309
|
+
}>;
|
|
310
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./Errors.js").AuthBadRequestError | typeof import("./Errors.js").AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthRequestRejectedError | typeof import("./Errors.js").AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"listCredentials", "GET", "/auth/passkey/credentials", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
311
|
+
readonly credentials: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
312
|
+
readonly credentialId: import("effect/Schema").String;
|
|
313
|
+
readonly transports: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
314
|
+
readonly backedUp: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
315
|
+
readonly createdAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
|
|
316
|
+
readonly lastUsedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
|
|
317
|
+
readonly revokedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
|
|
318
|
+
readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
|
|
319
|
+
}>>;
|
|
320
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./Errors.js").AuthUnauthenticatedError | typeof import("./Errors.js").AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthRequestRejectedError | typeof import("./Errors.js").AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"registerFinish", "POST", "/auth/passkey/register/finish", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
321
|
+
readonly challengeId: import("effect/Schema").brand<import("effect/Schema").String, "auth/ChallengeId">;
|
|
322
|
+
readonly credential: import("effect/Schema").Struct<{
|
|
323
|
+
readonly id: import("effect/Schema").String;
|
|
324
|
+
readonly rawId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
325
|
+
readonly type: import("effect/Schema").Literal<"public-key">;
|
|
326
|
+
readonly response: import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>;
|
|
327
|
+
readonly authenticatorAttachment: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
328
|
+
readonly clientExtensionResults: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
|
|
329
|
+
}>;
|
|
330
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
331
|
+
readonly credentialId: import("effect/Schema").String;
|
|
332
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./Errors.js").AuthBadRequestError | typeof import("./Errors.js").AuthUnauthenticatedError | typeof import("./Errors.js").AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthRequestRejectedError | typeof import("./Errors.js").AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"registerStart", "POST", "/auth/passkey/register/start", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
333
|
+
readonly challengeId: import("effect/Schema").brand<import("effect/Schema").String, "auth/ChallengeId">;
|
|
334
|
+
readonly expiresAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
|
|
335
|
+
readonly publicKey: import("effect/Schema").Struct<{
|
|
336
|
+
readonly challenge: import("effect/Schema").String;
|
|
337
|
+
readonly rp: import("effect/Schema").Struct<{
|
|
338
|
+
readonly id: import("effect/Schema").String;
|
|
339
|
+
readonly name: import("effect/Schema").String;
|
|
340
|
+
}>;
|
|
341
|
+
readonly user: import("effect/Schema").Struct<{
|
|
342
|
+
readonly id: import("effect/Schema").String;
|
|
343
|
+
readonly name: import("effect/Schema").String;
|
|
344
|
+
readonly displayName: import("effect/Schema").String;
|
|
345
|
+
}>;
|
|
346
|
+
readonly pubKeyCredParams: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
347
|
+
readonly type: import("effect/Schema").Literal<"public-key">;
|
|
348
|
+
readonly alg: import("effect/Schema").Number;
|
|
349
|
+
}>>;
|
|
350
|
+
readonly timeout: import("effect/Schema").optional<import("effect/Schema").Number>;
|
|
351
|
+
readonly excludeCredentials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
352
|
+
readonly type: import("effect/Schema").Literal<"public-key">;
|
|
353
|
+
readonly id: import("effect/Schema").String;
|
|
354
|
+
readonly transports: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
355
|
+
}>>>;
|
|
356
|
+
readonly authenticatorSelection: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
357
|
+
readonly authenticatorAttachment: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["platform", "cross-platform"]>>;
|
|
358
|
+
readonly residentKey: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["discouraged", "preferred", "required"]>>;
|
|
359
|
+
readonly requireResidentKey: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
360
|
+
readonly userVerification: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["required", "preferred", "discouraged"]>>;
|
|
361
|
+
}>>;
|
|
362
|
+
readonly attestation: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["none", "indirect", "direct", "enterprise"]>>;
|
|
363
|
+
}>;
|
|
364
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./Errors.js").AuthBadRequestError | typeof import("./Errors.js").AuthUnauthenticatedError | typeof import("./Errors.js").AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthRequestRejectedError | typeof import("./Errors.js").AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"revokeCredential", "POST", "/auth/passkey/credentials/revoke", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
365
|
+
readonly credentialId: import("effect/Schema").String;
|
|
366
|
+
readonly reason: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
367
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/unstable/httpapi/HttpApiSchema").NoContent>, import("effect/Schema").toCodecJson<typeof import("./Errors.js").AuthBadRequestError | typeof import("./Errors.js").AuthUnauthenticatedError | typeof import("./Errors.js").AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthRequestRejectedError | typeof import("./Errors.js").AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never>, false>;
|
|
368
|
+
export declare class PasskeyHttpApiGroup extends PasskeyHttpApiGroup_base {
|
|
369
|
+
}
|
|
370
|
+
declare const IdentityHttpApiGroup_base: HttpApiGroup.HttpApiGroup<"identity", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"add", "POST", "/auth/identities/add", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
371
|
+
readonly scope: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
372
|
+
readonly type: import("effect/Schema").Literal<"global">;
|
|
373
|
+
}>, import("effect/Schema").Struct<{
|
|
374
|
+
readonly type: import("effect/Schema").Literal<"tenant">;
|
|
375
|
+
readonly tenantId: import("effect/Schema").String;
|
|
376
|
+
}>]>;
|
|
377
|
+
readonly kind: import("effect/Schema").String;
|
|
378
|
+
readonly value: import("effect/Schema").String;
|
|
379
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
380
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "auth/IdentityId">;
|
|
381
|
+
readonly scope: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
382
|
+
readonly type: import("effect/Schema").Literal<"global">;
|
|
383
|
+
}>, import("effect/Schema").Struct<{
|
|
384
|
+
readonly type: import("effect/Schema").Literal<"tenant">;
|
|
385
|
+
readonly tenantId: import("effect/Schema").String;
|
|
386
|
+
}>]>;
|
|
387
|
+
readonly kind: import("effect/Schema").String;
|
|
388
|
+
readonly value: import("effect/Schema").String;
|
|
389
|
+
readonly verified: import("effect/Schema").Boolean;
|
|
390
|
+
readonly loginEligible: import("effect/Schema").Boolean;
|
|
391
|
+
readonly isPrimaryLogin: import("effect/Schema").Boolean;
|
|
392
|
+
readonly createdAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
|
|
393
|
+
readonly updatedAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
|
|
394
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./Errors.js").AuthBadRequestError | typeof import("./Errors.js").AuthUnauthenticatedError | typeof import("./Errors.js").AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthIdentityAlreadyRegisteredError | typeof import("./Errors.js").AuthRequestRejectedError | typeof import("./Errors.js").AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"availability", "POST", "/auth/identities/availability", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
395
|
+
readonly scope: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
396
|
+
readonly type: import("effect/Schema").Literal<"global">;
|
|
397
|
+
}>, import("effect/Schema").Struct<{
|
|
398
|
+
readonly type: import("effect/Schema").Literal<"tenant">;
|
|
399
|
+
readonly tenantId: import("effect/Schema").String;
|
|
400
|
+
}>]>;
|
|
401
|
+
readonly kind: import("effect/Schema").String;
|
|
402
|
+
readonly value: import("effect/Schema").String;
|
|
403
|
+
readonly botChallenge: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
404
|
+
readonly token: import("effect/Schema").String;
|
|
405
|
+
}>>;
|
|
406
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
407
|
+
readonly available: import("effect/Schema").Boolean;
|
|
408
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./Errors.js").AuthBadRequestError | typeof import("./Errors.js").AuthUnauthenticatedError | typeof import("./Errors.js").AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthIdentityAlreadyRegisteredError | typeof import("./Errors.js").AuthRequestRejectedError | typeof import("./Errors.js").AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"list", "GET", "/auth/identities/", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
409
|
+
readonly identities: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
410
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "auth/IdentityId">;
|
|
411
|
+
readonly scope: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
412
|
+
readonly type: import("effect/Schema").Literal<"global">;
|
|
413
|
+
}>, import("effect/Schema").Struct<{
|
|
414
|
+
readonly type: import("effect/Schema").Literal<"tenant">;
|
|
415
|
+
readonly tenantId: import("effect/Schema").String;
|
|
416
|
+
}>]>;
|
|
417
|
+
readonly kind: import("effect/Schema").String;
|
|
418
|
+
readonly value: import("effect/Schema").String;
|
|
419
|
+
readonly verified: import("effect/Schema").Boolean;
|
|
420
|
+
readonly loginEligible: import("effect/Schema").Boolean;
|
|
421
|
+
readonly isPrimaryLogin: import("effect/Schema").Boolean;
|
|
422
|
+
readonly createdAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
|
|
423
|
+
readonly updatedAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
|
|
424
|
+
}>>;
|
|
425
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./Errors.js").AuthBadRequestError | typeof import("./Errors.js").AuthUnauthenticatedError | typeof import("./Errors.js").AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthIdentityAlreadyRegisteredError | typeof import("./Errors.js").AuthRequestRejectedError | typeof import("./Errors.js").AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"primary", "POST", "/auth/identities/primary", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
426
|
+
readonly identityId: import("effect/Schema").brand<import("effect/Schema").String, "auth/IdentityId">;
|
|
427
|
+
readonly expectedUpdatedAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
|
|
428
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
429
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "auth/IdentityId">;
|
|
430
|
+
readonly scope: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
431
|
+
readonly type: import("effect/Schema").Literal<"global">;
|
|
432
|
+
}>, import("effect/Schema").Struct<{
|
|
433
|
+
readonly type: import("effect/Schema").Literal<"tenant">;
|
|
434
|
+
readonly tenantId: import("effect/Schema").String;
|
|
435
|
+
}>]>;
|
|
436
|
+
readonly kind: import("effect/Schema").String;
|
|
437
|
+
readonly value: import("effect/Schema").String;
|
|
438
|
+
readonly verified: import("effect/Schema").Boolean;
|
|
439
|
+
readonly loginEligible: import("effect/Schema").Boolean;
|
|
440
|
+
readonly isPrimaryLogin: import("effect/Schema").Boolean;
|
|
441
|
+
readonly createdAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
|
|
442
|
+
readonly updatedAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
|
|
443
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./Errors.js").AuthBadRequestError | typeof import("./Errors.js").AuthUnauthenticatedError | typeof import("./Errors.js").AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthIdentityAlreadyRegisteredError | typeof import("./Errors.js").AuthRequestRejectedError | typeof import("./Errors.js").AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"replace", "POST", "/auth/identities/replace", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
444
|
+
readonly identityId: import("effect/Schema").brand<import("effect/Schema").String, "auth/IdentityId">;
|
|
445
|
+
readonly expectedUpdatedAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
|
|
446
|
+
readonly scope: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
447
|
+
readonly type: import("effect/Schema").Literal<"global">;
|
|
448
|
+
}>, import("effect/Schema").Struct<{
|
|
449
|
+
readonly type: import("effect/Schema").Literal<"tenant">;
|
|
450
|
+
readonly tenantId: import("effect/Schema").String;
|
|
451
|
+
}>]>;
|
|
452
|
+
readonly kind: import("effect/Schema").String;
|
|
453
|
+
readonly value: import("effect/Schema").String;
|
|
454
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
455
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "auth/IdentityId">;
|
|
456
|
+
readonly scope: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
457
|
+
readonly type: import("effect/Schema").Literal<"global">;
|
|
458
|
+
}>, import("effect/Schema").Struct<{
|
|
459
|
+
readonly type: import("effect/Schema").Literal<"tenant">;
|
|
460
|
+
readonly tenantId: import("effect/Schema").String;
|
|
461
|
+
}>]>;
|
|
462
|
+
readonly kind: import("effect/Schema").String;
|
|
463
|
+
readonly value: import("effect/Schema").String;
|
|
464
|
+
readonly verified: import("effect/Schema").Boolean;
|
|
465
|
+
readonly loginEligible: import("effect/Schema").Boolean;
|
|
466
|
+
readonly isPrimaryLogin: import("effect/Schema").Boolean;
|
|
467
|
+
readonly createdAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
|
|
468
|
+
readonly updatedAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
|
|
469
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./Errors.js").AuthBadRequestError | typeof import("./Errors.js").AuthUnauthenticatedError | typeof import("./Errors.js").AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthIdentityAlreadyRegisteredError | typeof import("./Errors.js").AuthRequestRejectedError | typeof import("./Errors.js").AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"revoke", "POST", "/auth/identities/revoke", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
470
|
+
readonly identityId: import("effect/Schema").brand<import("effect/Schema").String, "auth/IdentityId">;
|
|
471
|
+
readonly expectedUpdatedAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
|
|
472
|
+
readonly reason: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
473
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
474
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "auth/IdentityId">;
|
|
475
|
+
readonly scope: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
476
|
+
readonly type: import("effect/Schema").Literal<"global">;
|
|
477
|
+
}>, import("effect/Schema").Struct<{
|
|
478
|
+
readonly type: import("effect/Schema").Literal<"tenant">;
|
|
479
|
+
readonly tenantId: import("effect/Schema").String;
|
|
480
|
+
}>]>;
|
|
481
|
+
readonly kind: import("effect/Schema").String;
|
|
482
|
+
readonly value: import("effect/Schema").String;
|
|
483
|
+
readonly verified: import("effect/Schema").Boolean;
|
|
484
|
+
readonly loginEligible: import("effect/Schema").Boolean;
|
|
485
|
+
readonly isPrimaryLogin: import("effect/Schema").Boolean;
|
|
486
|
+
readonly createdAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
|
|
487
|
+
readonly updatedAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
|
|
488
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./Errors.js").AuthBadRequestError | typeof import("./Errors.js").AuthUnauthenticatedError | typeof import("./Errors.js").AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthIdentityAlreadyRegisteredError | typeof import("./Errors.js").AuthRequestRejectedError | typeof import("./Errors.js").AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never>, false>;
|
|
489
|
+
export declare class IdentityHttpApiGroup extends IdentityHttpApiGroup_base {
|
|
490
|
+
}
|
|
491
|
+
declare const TotpHttpApiGroup_base: HttpApiGroup.HttpApiGroup<"totp", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"confirmEnrollment", "POST", "/auth/totp/enroll/confirm", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
492
|
+
readonly factorId: import("effect/Schema").brand<import("effect/Schema").String, "auth/CredentialId">;
|
|
493
|
+
readonly code: import("effect/Schema").String;
|
|
494
|
+
readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
|
|
495
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
496
|
+
readonly factorId: import("effect/Schema").brand<import("effect/Schema").String, "auth/CredentialId">;
|
|
497
|
+
readonly algorithm: import("effect/Schema").Literals<readonly ["SHA1", "SHA256", "SHA512"]>;
|
|
498
|
+
readonly digits: import("effect/Schema").Number;
|
|
499
|
+
readonly period: import("effect/Schema").Number;
|
|
500
|
+
readonly createdAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
|
|
501
|
+
readonly confirmedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
|
|
502
|
+
readonly lastUsedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
|
|
503
|
+
readonly revokedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
|
|
504
|
+
readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
|
|
505
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./Errors.js").AuthBadRequestError | typeof import("./Errors.js").AuthUnauthenticatedError | typeof import("./Errors.js").AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthRequestRejectedError | typeof import("./Errors.js").AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"listFactors", "GET", "/auth/totp/factors", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
506
|
+
readonly factors: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
507
|
+
readonly factorId: import("effect/Schema").brand<import("effect/Schema").String, "auth/CredentialId">;
|
|
508
|
+
readonly algorithm: import("effect/Schema").Literals<readonly ["SHA1", "SHA256", "SHA512"]>;
|
|
509
|
+
readonly digits: import("effect/Schema").Number;
|
|
510
|
+
readonly period: import("effect/Schema").Number;
|
|
511
|
+
readonly createdAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
|
|
512
|
+
readonly confirmedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
|
|
513
|
+
readonly lastUsedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
|
|
514
|
+
readonly revokedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
|
|
515
|
+
readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
|
|
516
|
+
}>>;
|
|
517
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./Errors.js").AuthUnauthenticatedError | typeof import("./Errors.js").AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthRequestRejectedError | typeof import("./Errors.js").AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"revokeFactor", "POST", "/auth/totp/factors/revoke", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
518
|
+
readonly factorId: import("effect/Schema").brand<import("effect/Schema").String, "auth/CredentialId">;
|
|
519
|
+
readonly reason: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
520
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/unstable/httpapi/HttpApiSchema").NoContent>, import("effect/Schema").toCodecJson<typeof import("./Errors.js").AuthBadRequestError | typeof import("./Errors.js").AuthUnauthenticatedError | typeof import("./Errors.js").AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthRequestRejectedError | typeof import("./Errors.js").AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"startEnrollment", "POST", "/auth/totp/enroll/start", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
521
|
+
readonly accountName: import("effect/Schema").String;
|
|
522
|
+
readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
|
|
523
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
524
|
+
readonly factor: import("effect/Schema").Struct<{
|
|
525
|
+
readonly factorId: import("effect/Schema").brand<import("effect/Schema").String, "auth/CredentialId">;
|
|
526
|
+
readonly algorithm: import("effect/Schema").Literals<readonly ["SHA1", "SHA256", "SHA512"]>;
|
|
527
|
+
readonly digits: import("effect/Schema").Number;
|
|
528
|
+
readonly period: import("effect/Schema").Number;
|
|
529
|
+
readonly createdAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
|
|
530
|
+
readonly confirmedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
|
|
531
|
+
readonly lastUsedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
|
|
532
|
+
readonly revokedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
|
|
533
|
+
readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
|
|
534
|
+
}>;
|
|
535
|
+
readonly secret: import("effect/Schema").String;
|
|
536
|
+
readonly uri: import("effect/Schema").String;
|
|
537
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./Errors.js").AuthBadRequestError | typeof import("./Errors.js").AuthUnauthenticatedError | typeof import("./Errors.js").AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthRequestRejectedError | typeof import("./Errors.js").AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verify", "POST", "/auth/totp/verify", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
538
|
+
readonly code: import("effect/Schema").String;
|
|
539
|
+
readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
|
|
540
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
541
|
+
readonly valid: import("effect/Schema").Boolean;
|
|
542
|
+
readonly factor: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
543
|
+
readonly factorId: import("effect/Schema").brand<import("effect/Schema").String, "auth/CredentialId">;
|
|
544
|
+
readonly algorithm: import("effect/Schema").Literals<readonly ["SHA1", "SHA256", "SHA512"]>;
|
|
545
|
+
readonly digits: import("effect/Schema").Number;
|
|
546
|
+
readonly period: import("effect/Schema").Number;
|
|
547
|
+
readonly createdAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
|
|
548
|
+
readonly confirmedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
|
|
549
|
+
readonly lastUsedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
|
|
550
|
+
readonly revokedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
|
|
551
|
+
readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
|
|
552
|
+
}>>;
|
|
553
|
+
readonly delta: import("effect/Schema").optional<import("effect/Schema").Number>;
|
|
554
|
+
readonly acceptedCounter: import("effect/Schema").optional<import("effect/Schema").Number>;
|
|
555
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./Errors.js").AuthUnauthenticatedError | typeof import("./Errors.js").AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthRequestRejectedError | typeof import("./Errors.js").AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never>, false>;
|
|
556
|
+
export declare class TotpHttpApiGroup extends TotpHttpApiGroup_base {
|
|
557
|
+
}
|
|
558
|
+
declare const RecoveryCodesHttpApiGroup_base: HttpApiGroup.HttpApiGroup<"recoveryCodes", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"generateRecoveryCodes", "POST", "/auth/recovery-codes/generate", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
559
|
+
readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
|
|
560
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
561
|
+
readonly codes: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
562
|
+
readonly records: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
563
|
+
readonly codeId: import("effect/Schema").brand<import("effect/Schema").String, "auth/CredentialId">;
|
|
564
|
+
readonly createdAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
|
|
565
|
+
readonly usedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
|
|
566
|
+
readonly revokedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
|
|
567
|
+
readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
|
|
568
|
+
}>>;
|
|
569
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./Errors.js").AuthBadRequestError | typeof import("./Errors.js").AuthUnauthenticatedError | typeof import("./Errors.js").AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthRequestRejectedError | typeof import("./Errors.js").AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"listRecoveryCodes", "GET", "/auth/recovery-codes/codes", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
570
|
+
readonly codes: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
571
|
+
readonly codeId: import("effect/Schema").brand<import("effect/Schema").String, "auth/CredentialId">;
|
|
572
|
+
readonly createdAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
|
|
573
|
+
readonly usedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
|
|
574
|
+
readonly revokedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
|
|
575
|
+
readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
|
|
576
|
+
}>>;
|
|
577
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./Errors.js").AuthUnauthenticatedError | typeof import("./Errors.js").AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthRequestRejectedError | typeof import("./Errors.js").AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"regenerateRecoveryCodes", "POST", "/auth/recovery-codes/regenerate", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
578
|
+
readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
|
|
579
|
+
readonly revokeReason: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
580
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
581
|
+
readonly codes: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
582
|
+
readonly records: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
583
|
+
readonly codeId: import("effect/Schema").brand<import("effect/Schema").String, "auth/CredentialId">;
|
|
584
|
+
readonly createdAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
|
|
585
|
+
readonly usedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
|
|
586
|
+
readonly revokedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
|
|
587
|
+
readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
|
|
588
|
+
}>>;
|
|
589
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./Errors.js").AuthBadRequestError | typeof import("./Errors.js").AuthUnauthenticatedError | typeof import("./Errors.js").AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthRequestRejectedError | typeof import("./Errors.js").AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"revokeRecoveryCode", "POST", "/auth/recovery-codes/codes/revoke", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
590
|
+
readonly codeId: import("effect/Schema").brand<import("effect/Schema").String, "auth/CredentialId">;
|
|
591
|
+
readonly reason: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
592
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/unstable/httpapi/HttpApiSchema").NoContent>, import("effect/Schema").toCodecJson<typeof import("./Errors.js").AuthBadRequestError | typeof import("./Errors.js").AuthUnauthenticatedError | typeof import("./Errors.js").AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthRequestRejectedError | typeof import("./Errors.js").AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verifyRecoveryCode", "POST", "/auth/recovery-codes/verify", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
593
|
+
readonly code: import("effect/Schema").String;
|
|
594
|
+
readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
|
|
595
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
596
|
+
readonly valid: import("effect/Schema").Boolean;
|
|
597
|
+
readonly code: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
598
|
+
readonly codeId: import("effect/Schema").brand<import("effect/Schema").String, "auth/CredentialId">;
|
|
599
|
+
readonly createdAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
|
|
600
|
+
readonly usedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
|
|
601
|
+
readonly revokedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
|
|
602
|
+
readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
|
|
603
|
+
}>>;
|
|
604
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./Errors.js").AuthUnauthenticatedError | typeof import("./Errors.js").AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthRequestRejectedError | typeof import("./Errors.js").AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never>, false>;
|
|
605
|
+
export declare class RecoveryCodesHttpApiGroup extends RecoveryCodesHttpApiGroup_base {
|
|
606
|
+
}
|
|
607
|
+
declare const LoginApprovalHttpApiGroup_base: HttpApiGroup.HttpApiGroup<"loginApproval", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"approve", "POST", "/auth/login-approval/approve", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
608
|
+
readonly flowId: import("effect/Schema").brand<import("effect/Schema").String, "auth/AuthFlowId">;
|
|
609
|
+
readonly approvalChallengeId: import("effect/Schema").brand<import("effect/Schema").String, "auth/ChallengeId">;
|
|
610
|
+
readonly secret: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
611
|
+
readonly rememberDevice: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
612
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
613
|
+
readonly type: import("effect/Schema").Literal<"authenticated">;
|
|
614
|
+
readonly expiresAt: import("effect/Schema").Number;
|
|
615
|
+
readonly aal: import("effect/Schema").Literals<readonly ["aal1", "aal2", "aal3"]>;
|
|
616
|
+
readonly amr: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
617
|
+
readonly mfaVerifiedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
|
|
618
|
+
readonly claims: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
619
|
+
readonly verifiedIdentityKinds: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
620
|
+
readonly requirements: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
621
|
+
readonly recoveryEnrollment: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
622
|
+
readonly allowed: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
623
|
+
}>>;
|
|
624
|
+
}>>;
|
|
625
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./Errors.js").AuthBadRequestError | typeof import("./Errors.js").AuthPolicyDeniedError | typeof import("./Errors.js").AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"finalize", "POST", "/auth/login-approval/finalize", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
626
|
+
readonly flowId: import("effect/Schema").brand<import("effect/Schema").String, "auth/AuthFlowId">;
|
|
627
|
+
readonly approvalChallengeId: import("effect/Schema").brand<import("effect/Schema").String, "auth/ChallengeId">;
|
|
628
|
+
readonly rememberDevice: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
629
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
630
|
+
readonly type: import("effect/Schema").Literal<"authenticated">;
|
|
631
|
+
readonly expiresAt: import("effect/Schema").Number;
|
|
632
|
+
readonly aal: import("effect/Schema").Literals<readonly ["aal1", "aal2", "aal3"]>;
|
|
633
|
+
readonly amr: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
634
|
+
readonly mfaVerifiedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
|
|
635
|
+
readonly claims: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
636
|
+
readonly verifiedIdentityKinds: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
637
|
+
readonly requirements: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
638
|
+
readonly recoveryEnrollment: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
639
|
+
readonly allowed: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
640
|
+
}>>;
|
|
641
|
+
}>>;
|
|
642
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./Errors.js").AuthBadRequestError | typeof import("./Errors.js").AuthPolicyDeniedError | typeof import("./Errors.js").AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"status", "POST", "/auth/login-approval/status", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
643
|
+
readonly flowId: import("effect/Schema").brand<import("effect/Schema").String, "auth/AuthFlowId">;
|
|
644
|
+
readonly approvalChallengeId: import("effect/Schema").brand<import("effect/Schema").String, "auth/ChallengeId">;
|
|
645
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
646
|
+
readonly status: import("effect/Schema").Literals<readonly ["pending", "approved", "denied", "expired"]>;
|
|
647
|
+
readonly expiresAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
|
|
648
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./Errors.js").AuthBadRequestError | typeof import("./Errors.js").AuthPolicyDeniedError | typeof import("./Errors.js").AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never>, false>;
|
|
649
|
+
export declare class LoginApprovalHttpApiGroup extends LoginApprovalHttpApiGroup_base {
|
|
650
|
+
}
|
|
651
|
+
declare const MfaHttpApiGroup_base: HttpApiGroup.HttpApiGroup<"mfa", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"options", "POST", "/auth/mfa/options", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
652
|
+
readonly flowId: import("effect/Schema").brand<import("effect/Schema").String, "auth/AuthFlowId">;
|
|
653
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
654
|
+
readonly factors: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
655
|
+
readonly type: import("effect/Schema").Literals<readonly ["totp", "backup-code", "passkey"]>;
|
|
656
|
+
}>>;
|
|
657
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./Errors.js").AuthBadRequestError | typeof import("./Errors.js").AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthRequestRejectedError | typeof import("./Errors.js").AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"startPasskey", "POST", "/auth/mfa/passkey/start", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
658
|
+
readonly flowId: import("effect/Schema").brand<import("effect/Schema").String, "auth/AuthFlowId">;
|
|
659
|
+
readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
|
|
660
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
661
|
+
readonly challengeId: import("effect/Schema").brand<import("effect/Schema").String, "auth/ChallengeId">;
|
|
662
|
+
readonly expiresAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
|
|
663
|
+
readonly publicKey: import("effect/Schema").Struct<{
|
|
664
|
+
readonly challenge: import("effect/Schema").String;
|
|
665
|
+
readonly rpId: import("effect/Schema").String;
|
|
666
|
+
readonly timeout: import("effect/Schema").optional<import("effect/Schema").Number>;
|
|
667
|
+
readonly allowCredentials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
668
|
+
readonly type: import("effect/Schema").Literal<"public-key">;
|
|
669
|
+
readonly id: import("effect/Schema").String;
|
|
670
|
+
readonly transports: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
671
|
+
}>>>;
|
|
672
|
+
readonly userVerification: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["required", "preferred", "discouraged"]>>;
|
|
673
|
+
}>;
|
|
674
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./Errors.js").AuthBadRequestError | typeof import("./Errors.js").AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthRequestRejectedError | typeof import("./Errors.js").AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verifyPasskey", "POST", "/auth/mfa/passkey/verify", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
675
|
+
readonly flowId: import("effect/Schema").brand<import("effect/Schema").String, "auth/AuthFlowId">;
|
|
676
|
+
readonly challengeId: import("effect/Schema").brand<import("effect/Schema").String, "auth/ChallengeId">;
|
|
677
|
+
readonly credential: import("effect/Schema").Struct<{
|
|
678
|
+
readonly id: import("effect/Schema").String;
|
|
679
|
+
readonly rawId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
680
|
+
readonly type: import("effect/Schema").Literal<"public-key">;
|
|
681
|
+
readonly response: import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>;
|
|
682
|
+
readonly authenticatorAttachment: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
683
|
+
readonly clientExtensionResults: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
|
|
684
|
+
}>;
|
|
685
|
+
readonly userId: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").String, "auth/UserId">>;
|
|
686
|
+
readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
|
|
687
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
688
|
+
readonly type: import("effect/Schema").Literal<"authenticated">;
|
|
689
|
+
readonly expiresAt: import("effect/Schema").Number;
|
|
690
|
+
readonly aal: import("effect/Schema").Literals<readonly ["aal1", "aal2", "aal3"]>;
|
|
691
|
+
readonly amr: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
692
|
+
readonly mfaVerifiedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
|
|
693
|
+
readonly claims: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
694
|
+
readonly verifiedIdentityKinds: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
695
|
+
readonly requirements: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
696
|
+
readonly recoveryEnrollment: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
697
|
+
readonly allowed: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
698
|
+
}>>;
|
|
699
|
+
}>>;
|
|
700
|
+
}>, import("effect/Schema").Struct<{
|
|
701
|
+
readonly type: import("effect/Schema").Literal<"requires_login_approval">;
|
|
702
|
+
readonly flowId: import("effect/Schema").String;
|
|
703
|
+
readonly approvalChallengeId: import("effect/Schema").String;
|
|
704
|
+
readonly channel: import("effect/Schema").String;
|
|
705
|
+
readonly sessionBinding: import("effect/Schema").Literals<readonly ["originating-device", "approval-device", "none"]>;
|
|
706
|
+
readonly sameDeviceRequired: import("effect/Schema").Boolean;
|
|
707
|
+
readonly reason: import("effect/Schema").String;
|
|
708
|
+
}>]>>, import("effect/Schema").toCodecJson<typeof import("./Errors.js").AuthBadRequestError | typeof import("./Errors.js").AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthRequestRejectedError | typeof import("./Errors.js").AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verifyRecoveryCode", "POST", "/auth/mfa/recovery-code/verify", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
709
|
+
readonly flowId: import("effect/Schema").brand<import("effect/Schema").String, "auth/AuthFlowId">;
|
|
710
|
+
readonly userId: import("effect/Schema").brand<import("effect/Schema").String, "auth/UserId">;
|
|
711
|
+
readonly code: import("effect/Schema").String;
|
|
712
|
+
readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
|
|
713
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
714
|
+
readonly type: import("effect/Schema").Literal<"authenticated">;
|
|
715
|
+
readonly expiresAt: import("effect/Schema").Number;
|
|
716
|
+
readonly aal: import("effect/Schema").Literals<readonly ["aal1", "aal2", "aal3"]>;
|
|
717
|
+
readonly amr: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
718
|
+
readonly mfaVerifiedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
|
|
719
|
+
readonly claims: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
720
|
+
readonly verifiedIdentityKinds: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
721
|
+
readonly requirements: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
722
|
+
readonly recoveryEnrollment: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
723
|
+
readonly allowed: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
724
|
+
}>>;
|
|
725
|
+
}>>;
|
|
726
|
+
}>, import("effect/Schema").Struct<{
|
|
727
|
+
readonly type: import("effect/Schema").Literal<"requires_login_approval">;
|
|
728
|
+
readonly flowId: import("effect/Schema").String;
|
|
729
|
+
readonly approvalChallengeId: import("effect/Schema").String;
|
|
730
|
+
readonly channel: import("effect/Schema").String;
|
|
731
|
+
readonly sessionBinding: import("effect/Schema").Literals<readonly ["originating-device", "approval-device", "none"]>;
|
|
732
|
+
readonly sameDeviceRequired: import("effect/Schema").Boolean;
|
|
733
|
+
readonly reason: import("effect/Schema").String;
|
|
734
|
+
}>]>>, import("effect/Schema").toCodecJson<typeof import("./Errors.js").AuthBadRequestError | typeof import("./Errors.js").AuthInvalidCredentialsError | typeof import("./Errors.js").AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthRequestRejectedError | typeof import("./Errors.js").AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verifyRecoveryCodeForFlow", "POST", "/auth/mfa/recovery-code/verify-flow", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
735
|
+
readonly flowId: import("effect/Schema").brand<import("effect/Schema").String, "auth/AuthFlowId">;
|
|
736
|
+
readonly code: import("effect/Schema").String;
|
|
737
|
+
readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
|
|
738
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
739
|
+
readonly type: import("effect/Schema").Literal<"authenticated">;
|
|
740
|
+
readonly expiresAt: import("effect/Schema").Number;
|
|
741
|
+
readonly aal: import("effect/Schema").Literals<readonly ["aal1", "aal2", "aal3"]>;
|
|
742
|
+
readonly amr: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
743
|
+
readonly mfaVerifiedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
|
|
744
|
+
readonly claims: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
745
|
+
readonly verifiedIdentityKinds: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
746
|
+
readonly requirements: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
747
|
+
readonly recoveryEnrollment: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
748
|
+
readonly allowed: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
749
|
+
}>>;
|
|
750
|
+
}>>;
|
|
751
|
+
}>, import("effect/Schema").Struct<{
|
|
752
|
+
readonly type: import("effect/Schema").Literal<"requires_login_approval">;
|
|
753
|
+
readonly flowId: import("effect/Schema").String;
|
|
754
|
+
readonly approvalChallengeId: import("effect/Schema").String;
|
|
755
|
+
readonly channel: import("effect/Schema").String;
|
|
756
|
+
readonly sessionBinding: import("effect/Schema").Literals<readonly ["originating-device", "approval-device", "none"]>;
|
|
757
|
+
readonly sameDeviceRequired: import("effect/Schema").Boolean;
|
|
758
|
+
readonly reason: import("effect/Schema").String;
|
|
759
|
+
}>]>>, import("effect/Schema").toCodecJson<typeof import("./Errors.js").AuthBadRequestError | typeof import("./Errors.js").AuthInvalidCredentialsError | typeof import("./Errors.js").AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthRequestRejectedError | typeof import("./Errors.js").AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verifyTotp", "POST", "/auth/mfa/totp/verify", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
760
|
+
readonly flowId: import("effect/Schema").brand<import("effect/Schema").String, "auth/AuthFlowId">;
|
|
761
|
+
readonly userId: import("effect/Schema").brand<import("effect/Schema").String, "auth/UserId">;
|
|
762
|
+
readonly code: import("effect/Schema").String;
|
|
763
|
+
readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
|
|
764
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
765
|
+
readonly type: import("effect/Schema").Literal<"authenticated">;
|
|
766
|
+
readonly expiresAt: import("effect/Schema").Number;
|
|
767
|
+
readonly aal: import("effect/Schema").Literals<readonly ["aal1", "aal2", "aal3"]>;
|
|
768
|
+
readonly amr: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
769
|
+
readonly mfaVerifiedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
|
|
770
|
+
readonly claims: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
771
|
+
readonly verifiedIdentityKinds: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
772
|
+
readonly requirements: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
773
|
+
readonly recoveryEnrollment: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
774
|
+
readonly allowed: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
775
|
+
}>>;
|
|
776
|
+
}>>;
|
|
777
|
+
}>, import("effect/Schema").Struct<{
|
|
778
|
+
readonly type: import("effect/Schema").Literal<"requires_login_approval">;
|
|
779
|
+
readonly flowId: import("effect/Schema").String;
|
|
780
|
+
readonly approvalChallengeId: import("effect/Schema").String;
|
|
781
|
+
readonly channel: import("effect/Schema").String;
|
|
782
|
+
readonly sessionBinding: import("effect/Schema").Literals<readonly ["originating-device", "approval-device", "none"]>;
|
|
783
|
+
readonly sameDeviceRequired: import("effect/Schema").Boolean;
|
|
784
|
+
readonly reason: import("effect/Schema").String;
|
|
785
|
+
}>]>>, import("effect/Schema").toCodecJson<typeof import("./Errors.js").AuthBadRequestError | typeof import("./Errors.js").AuthInvalidCredentialsError | typeof import("./Errors.js").AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthRequestRejectedError | typeof import("./Errors.js").AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verifyTotpForFlow", "POST", "/auth/mfa/totp/verify-flow", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
786
|
+
readonly flowId: import("effect/Schema").brand<import("effect/Schema").String, "auth/AuthFlowId">;
|
|
787
|
+
readonly code: import("effect/Schema").String;
|
|
788
|
+
readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
|
|
789
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
790
|
+
readonly type: import("effect/Schema").Literal<"authenticated">;
|
|
791
|
+
readonly expiresAt: import("effect/Schema").Number;
|
|
792
|
+
readonly aal: import("effect/Schema").Literals<readonly ["aal1", "aal2", "aal3"]>;
|
|
793
|
+
readonly amr: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
794
|
+
readonly mfaVerifiedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
|
|
795
|
+
readonly claims: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
796
|
+
readonly verifiedIdentityKinds: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
797
|
+
readonly requirements: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
798
|
+
readonly recoveryEnrollment: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
799
|
+
readonly allowed: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
800
|
+
}>>;
|
|
801
|
+
}>>;
|
|
802
|
+
}>, import("effect/Schema").Struct<{
|
|
803
|
+
readonly type: import("effect/Schema").Literal<"requires_login_approval">;
|
|
804
|
+
readonly flowId: import("effect/Schema").String;
|
|
805
|
+
readonly approvalChallengeId: import("effect/Schema").String;
|
|
806
|
+
readonly channel: import("effect/Schema").String;
|
|
807
|
+
readonly sessionBinding: import("effect/Schema").Literals<readonly ["originating-device", "approval-device", "none"]>;
|
|
808
|
+
readonly sameDeviceRequired: import("effect/Schema").Boolean;
|
|
809
|
+
readonly reason: import("effect/Schema").String;
|
|
810
|
+
}>]>>, import("effect/Schema").toCodecJson<typeof import("./Errors.js").AuthBadRequestError | typeof import("./Errors.js").AuthInvalidCredentialsError | typeof import("./Errors.js").AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthRequestRejectedError | typeof import("./Errors.js").AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never>, false>;
|
|
811
|
+
export declare class MfaHttpApiGroup extends MfaHttpApiGroup_base {
|
|
812
|
+
}
|
|
813
|
+
declare const StepUpHttpApiGroup_base: HttpApiGroup.HttpApiGroup<"stepUp", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"options", "GET", "/auth/step-up/options", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
814
|
+
readonly factors: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
815
|
+
readonly type: import("effect/Schema").Literals<readonly ["password", "totp", "backup-code", "passkey"]>;
|
|
816
|
+
}>>;
|
|
817
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./Errors.js").AuthUnauthenticatedError | typeof import("./Errors.js").AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthRequestRejectedError | typeof import("./Errors.js").AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"startPasskey", "POST", "/auth/step-up/passkey/start", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
818
|
+
readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
|
|
819
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
820
|
+
readonly challengeId: import("effect/Schema").brand<import("effect/Schema").String, "auth/ChallengeId">;
|
|
821
|
+
readonly expiresAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
|
|
822
|
+
readonly publicKey: import("effect/Schema").Struct<{
|
|
823
|
+
readonly challenge: import("effect/Schema").String;
|
|
824
|
+
readonly rpId: import("effect/Schema").String;
|
|
825
|
+
readonly timeout: import("effect/Schema").optional<import("effect/Schema").Number>;
|
|
826
|
+
readonly allowCredentials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
827
|
+
readonly type: import("effect/Schema").Literal<"public-key">;
|
|
828
|
+
readonly id: import("effect/Schema").String;
|
|
829
|
+
readonly transports: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
830
|
+
}>>>;
|
|
831
|
+
readonly userVerification: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["required", "preferred", "discouraged"]>>;
|
|
832
|
+
}>;
|
|
833
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./Errors.js").AuthBadRequestError | typeof import("./Errors.js").AuthUnauthenticatedError | typeof import("./Errors.js").AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthRequestRejectedError | typeof import("./Errors.js").AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verifyPasskey", "POST", "/auth/step-up/passkey/verify", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
834
|
+
readonly challengeId: import("effect/Schema").brand<import("effect/Schema").String, "auth/ChallengeId">;
|
|
835
|
+
readonly credential: import("effect/Schema").Struct<{
|
|
836
|
+
readonly id: import("effect/Schema").String;
|
|
837
|
+
readonly rawId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
838
|
+
readonly type: import("effect/Schema").Literal<"public-key">;
|
|
839
|
+
readonly response: import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>;
|
|
840
|
+
readonly authenticatorAttachment: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
841
|
+
readonly clientExtensionResults: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
|
|
842
|
+
}>;
|
|
843
|
+
readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
|
|
844
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
845
|
+
readonly type: import("effect/Schema").Literal<"authenticated">;
|
|
846
|
+
readonly expiresAt: import("effect/Schema").Number;
|
|
847
|
+
readonly aal: import("effect/Schema").Literals<readonly ["aal1", "aal2", "aal3"]>;
|
|
848
|
+
readonly amr: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
849
|
+
readonly mfaVerifiedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
|
|
850
|
+
readonly claims: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
851
|
+
readonly verifiedIdentityKinds: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
852
|
+
readonly requirements: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
853
|
+
readonly recoveryEnrollment: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
854
|
+
readonly allowed: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
855
|
+
}>>;
|
|
856
|
+
}>>;
|
|
857
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./Errors.js").AuthBadRequestError | typeof import("./Errors.js").AuthUnauthenticatedError | typeof import("./Errors.js").AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthRequestRejectedError | typeof import("./Errors.js").AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verifyPassword", "POST", "/auth/step-up/password/verify", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
858
|
+
readonly password: import("effect/Schema").String;
|
|
859
|
+
readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
|
|
860
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
861
|
+
readonly type: import("effect/Schema").Literal<"authenticated">;
|
|
862
|
+
readonly expiresAt: import("effect/Schema").Number;
|
|
863
|
+
readonly aal: import("effect/Schema").Literals<readonly ["aal1", "aal2", "aal3"]>;
|
|
864
|
+
readonly amr: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
865
|
+
readonly mfaVerifiedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
|
|
866
|
+
readonly claims: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
867
|
+
readonly verifiedIdentityKinds: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
868
|
+
readonly requirements: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
869
|
+
readonly recoveryEnrollment: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
870
|
+
readonly allowed: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
871
|
+
}>>;
|
|
872
|
+
}>>;
|
|
873
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./Errors.js").AuthUnauthenticatedError | typeof import("./Errors.js").AuthInvalidCredentialsError | typeof import("./Errors.js").AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthRequestRejectedError | typeof import("./Errors.js").AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verifyRecoveryCode", "POST", "/auth/step-up/recovery-code/verify", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
874
|
+
readonly code: import("effect/Schema").String;
|
|
875
|
+
readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
|
|
876
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
877
|
+
readonly type: import("effect/Schema").Literal<"authenticated">;
|
|
878
|
+
readonly expiresAt: import("effect/Schema").Number;
|
|
879
|
+
readonly aal: import("effect/Schema").Literals<readonly ["aal1", "aal2", "aal3"]>;
|
|
880
|
+
readonly amr: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
881
|
+
readonly mfaVerifiedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
|
|
882
|
+
readonly claims: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
883
|
+
readonly verifiedIdentityKinds: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
884
|
+
readonly requirements: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
885
|
+
readonly recoveryEnrollment: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
886
|
+
readonly allowed: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
887
|
+
}>>;
|
|
888
|
+
}>>;
|
|
889
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./Errors.js").AuthUnauthenticatedError | typeof import("./Errors.js").AuthInvalidCredentialsError | typeof import("./Errors.js").AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthRequestRejectedError | typeof import("./Errors.js").AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verifyTotp", "POST", "/auth/step-up/totp/verify", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
890
|
+
readonly code: import("effect/Schema").String;
|
|
891
|
+
readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
|
|
892
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
893
|
+
readonly type: import("effect/Schema").Literal<"authenticated">;
|
|
894
|
+
readonly expiresAt: import("effect/Schema").Number;
|
|
895
|
+
readonly aal: import("effect/Schema").Literals<readonly ["aal1", "aal2", "aal3"]>;
|
|
896
|
+
readonly amr: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
897
|
+
readonly mfaVerifiedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
|
|
898
|
+
readonly claims: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
899
|
+
readonly verifiedIdentityKinds: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
900
|
+
readonly requirements: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
901
|
+
readonly recoveryEnrollment: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
902
|
+
readonly allowed: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
903
|
+
}>>;
|
|
904
|
+
}>>;
|
|
905
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./Errors.js").AuthUnauthenticatedError | typeof import("./Errors.js").AuthInvalidCredentialsError | typeof import("./Errors.js").AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthRequestRejectedError | typeof import("./Errors.js").AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never>, false>;
|
|
906
|
+
export declare class StepUpHttpApiGroup extends StepUpHttpApiGroup_base {
|
|
907
|
+
}
|
|
908
|
+
declare const LoginNotificationHttpApiGroup_base: HttpApiGroup.HttpApiGroup<"security", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"reportLogin", "POST", "/auth/security/login/report", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
909
|
+
readonly challengeId: import("effect/Schema").brand<import("effect/Schema").String, "auth/ChallengeId">;
|
|
910
|
+
readonly secret: import("effect/Schema").String;
|
|
911
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/unstable/httpapi/HttpApiSchema").NoContent>, import("effect/Schema").toCodecJson<typeof import("./Errors.js").AuthBadRequestError | typeof import("./Errors.js").AuthPolicyDeniedError | typeof import("./Errors.js").AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never>, false>;
|
|
912
|
+
export declare class LoginNotificationHttpApiGroup extends LoginNotificationHttpApiGroup_base {
|
|
913
|
+
}
|
|
914
|
+
declare const AuthClientProtocolApi_base: HttpApi.HttpApi<"AuthClientApi", typeof PasswordHttpApiGroup | typeof SessionHttpApiGroup | typeof EmailVerificationHttpApiGroup | typeof EmailOtpHttpApiGroup | typeof EmailAuthHttpApiGroup | typeof MagicLinkHttpApiGroup | typeof PasskeyHttpApiGroup | typeof IdentityHttpApiGroup | typeof TotpHttpApiGroup | typeof RecoveryCodesHttpApiGroup | typeof LoginApprovalHttpApiGroup | typeof MfaHttpApiGroup | typeof StepUpHttpApiGroup | typeof LoginNotificationHttpApiGroup>;
|
|
915
|
+
export declare class AuthClientProtocolApi extends AuthClientProtocolApi_base {
|
|
916
|
+
}
|
|
917
|
+
//# sourceMappingURL=ClientApi.d.ts.map
|