@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
package/dist/HttpApi/Api.d.ts
CHANGED
|
@@ -1,60 +1,68 @@
|
|
|
1
|
-
import { Context, Effect, Layer, Redacted } from "effect";
|
|
1
|
+
import { Context, Effect, Layer, Option, Redacted } from "effect";
|
|
2
2
|
import type { Duration, Schema } from "effect";
|
|
3
|
-
import { HttpServerRequest, HttpServerResponse } from "effect/unstable/http";
|
|
3
|
+
import { HttpRouter, HttpServerRequest, HttpServerResponse } from "effect/unstable/http";
|
|
4
4
|
import { HttpApi, HttpApiGroup } from "effect/unstable/httpapi";
|
|
5
|
-
import { ApiKeyId } from "../ApiKey.js";
|
|
5
|
+
import { ApiKeyId, ApiKeyManagement } from "../ApiKey.js";
|
|
6
6
|
import type { ApiKeyCreateForUserInput, ApiKeyManagementRevokeInput, ApiKeyManagementService } from "../ApiKey.js";
|
|
7
|
-
import type { JwksDocument, JwksService, JwtAudience, JwtIssueInput, JwtIssuerService, JwtRevokeJwtIdInput, JwtRevocationService, JwtVerifyInput } from "../Jwt.js";
|
|
8
|
-
import { Jwks } from "../Jwt.js";
|
|
9
7
|
import { AuthFlow, AuthFlowState, AuthResult } from "../AuthFlow.js";
|
|
10
|
-
import type { AuthFlowService, AuthFlowStateService, LoginApprovalFinalizeService } from "../AuthFlow.js";
|
|
8
|
+
import type { AuthFlowService, AuthFlowFinalize, AuthFlowStateService, LoginApprovalFinalizeService } from "../AuthFlow.js";
|
|
9
|
+
import { AuthRateLimit } from "../AuthRateLimit.js";
|
|
10
|
+
import { EmailAuth } from "../EmailAuth.js";
|
|
11
|
+
import type { EmailAuthService } from "../EmailAuth.js";
|
|
11
12
|
import { EmailOtpLogin } from "../EmailOtp.js";
|
|
12
|
-
import type { EmailOtpLoginService
|
|
13
|
+
import type { EmailOtpLoginService } from "../EmailOtp.js";
|
|
13
14
|
import { EmailVerification, EmailVerificationFlow } from "../EmailVerification.js";
|
|
14
|
-
import type { EmailVerificationFlowService, EmailVerificationService,
|
|
15
|
-
import type {
|
|
15
|
+
import type { EmailVerificationFlowService, EmailVerificationService, EmailVerificationVerifyInput } from "../EmailVerification.js";
|
|
16
|
+
import type { OAuthClientId, OAuthProviderId, PermissionId, SessionId, UnixMillis, UserId } from "../Identifiers.js";
|
|
17
|
+
import { ChallengeId, CredentialId } from "../Identifiers.js";
|
|
18
|
+
import { IdentityManagement } from "../IdentityManagement.js";
|
|
19
|
+
import type { IdentityManagementError, IdentityManagementService } from "../IdentityManagement.js";
|
|
20
|
+
import type { JwksDocument, JwksService, JwtAudience, JwtIssueInput, JwtIssuerService, JwtRevokeJwtIdInput, JwtRevocationService, JwtVerifyInput } from "../Jwt.js";
|
|
21
|
+
import { Jwks, JwtIssuer, JwtRevocation } from "../Jwt.js";
|
|
16
22
|
import { LoginApproval } from "../LoginApproval.js";
|
|
17
23
|
import type { LoginApprovalReviewService, LoginApprovalService, LoginApprovalVerifyInput } from "../LoginApproval.js";
|
|
18
|
-
import type { LoginRequestContext } from "../LoginRisk.js";
|
|
19
24
|
import type { LoginNotificationReportInput, LoginNotificationService } from "../LoginNotification.js";
|
|
20
25
|
import { MagicLinkLogin } from "../MagicLink.js";
|
|
21
|
-
import type { MagicLinkLoginService
|
|
22
|
-
import type { OAuthAccountUnlinkingResolution, OAuthAccountUnlinkingService,
|
|
23
|
-
import { OAuthAuthorizationCodeTokenGrant, OAuthProviderAuthorization } from "../OAuth.js";
|
|
24
|
-
import {
|
|
25
|
-
import { PasskeyCredentialId } from "../Passkey.js";
|
|
26
|
+
import type { MagicLinkLoginService } from "../MagicLink.js";
|
|
27
|
+
import type { OAuthAccountUnlinkingResolution, OAuthAccountUnlinkingService, OAuthAuthorizationStartInput, OAuthCallbackInput, OAuthClientAuthentication, OAuthCodeVerifier, OAuthLinkConfirmationConfirmInput, OAuthLinkConfirmationInspectInput, OAuthLinkConfirmationService, OAuthLinkConfirmationStartInput, OAuthProviderAuthorizationService, OAuthProviderConfig, OAuthProvidersService, OAuthStateService, OAuthTokenIntrospectionService, OAuthTokenRevocationService, ConfirmedOAuthLinkConfirmation, PendingOAuthLinkConfirmation, StartedOAuthAuthorization, StartedOAuthLinkConfirmation } from "../OAuth.js";
|
|
28
|
+
import { OAuthAuthorizationCodeTokenGrant, OAuthAccountUnlinking, OAuthClientCredentialsGrant, OAuthProviderAuthorization, OAuthProviders, OAuthRefreshTokenGrant, OAuthTokenIntrospection, OAuthTokenRevocation, OAuthLinkConfirmation, OAuthState } from "../OAuth.js";
|
|
29
|
+
import { OAuthDeviceCodeTokenGrant } from "../OAuthDeviceAuthorization.js";
|
|
30
|
+
import { PasskeyCredentialId, PasskeyCredentialManagement, PasskeyOptions, PasskeyVerification } from "../Passkey.js";
|
|
26
31
|
import type { FinishedPasskeyAuthentication, PasskeyAttestation, PasskeyAuthenticationFinishInput, PasskeyAuthenticationStartInput, PasskeyAuthenticatorSelection, PasskeyCredentialManagementService, PasskeyOptionsService, PasskeyPublicKeyCredentialParameters, PasskeyRelyingParty, PasskeyUserVerification, PasskeyVerificationService } from "../Passkey.js";
|
|
27
|
-
import
|
|
28
|
-
import type {
|
|
32
|
+
import { PasswordHasher } from "../Password.js";
|
|
33
|
+
import type { PasswordHasherService } from "../Password.js";
|
|
34
|
+
import { PermissionAdministration } from "../Permission.js";
|
|
35
|
+
import type { PermissionDefinitionRecord } from "../Permission.js";
|
|
36
|
+
import type { RecoveryCodeGenerateForUserInput, RecoveryCodeRegenerateForUserInput, RecoveryCodeManagementRevokeInput, RecoveryCodeManagementService, RecoveryCodeVerifyForUserInput, RecoveryCodeLoginCommitStoreService } from "../RecoveryCode.js";
|
|
37
|
+
import { RecoveryCodeLoginCommitStore, RecoveryCodeManagement } from "../RecoveryCode.js";
|
|
29
38
|
import type { RefreshTokenInfo, RefreshTokenManagementService, RefreshTokenRotateInput } from "../RefreshToken.js";
|
|
30
|
-
import {
|
|
31
|
-
import type { AuthMethodReference, CurrentSessionShape, SessionClaims, SessionCookieService, SessionCreateInput, SessionInfoShape, SessionsService, ValidatedSession } from "../Sessions.js";
|
|
39
|
+
import { RefreshTokenManagement } from "../RefreshToken.js";
|
|
32
40
|
import { SecurityTimelineStore } from "../SecurityTimeline.js";
|
|
33
41
|
import type { SecurityTimelineEvent, SecurityTimelineStoreService } from "../SecurityTimeline.js";
|
|
34
|
-
import {
|
|
35
|
-
import type {
|
|
36
|
-
import
|
|
42
|
+
import { SessionCookie, Sessions, RecoveryCodeSessionRotation, TotpSessionRotation } from "../Sessions.js";
|
|
43
|
+
import type { CurrentActorShape, CurrentSessionShape, SessionClaims, SessionCookieService, SessionCreateInput, SessionInfoShape, SessionsService, RecoveryCodeSessionRotationService, TotpSessionRotationService, ValidatedSession } from "../Sessions.js";
|
|
44
|
+
import { CredentialStore, IdentityStore, UserStore, VerificationStore } from "../Storage.js";
|
|
45
|
+
import type { CredentialStoreService, IdentityStoreService, UserStoreService, VerificationStoreService } from "../Storage.js";
|
|
46
|
+
import type { StrongFactorRemovalPolicyService } from "../StrongFactor.js";
|
|
47
|
+
import type { TotpAlgorithm, TotpEnrollmentConfirmInput, TotpEnrollmentStartInput, TotpFactorManagementService, TotpFactorManagementRevokeInput, TotpVerifyForUserInput, TotpLoginCommitStoreService } from "../Totp.js";
|
|
48
|
+
import { TotpFactorManagement, TotpLoginCommitStore } from "../Totp.js";
|
|
37
49
|
import { TrustedDeviceStore } from "../TrustedDevice.js";
|
|
38
50
|
import type { TrustedDeviceRecord, TrustedDeviceCookieService, TrustedDeviceService, TrustedDeviceStoreService } from "../TrustedDevice.js";
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import
|
|
42
|
-
import {
|
|
43
|
-
import
|
|
51
|
+
import { EmailAuthHttpApiGroup, EmailOtpHttpApiGroup, EmailVerificationHttpApiGroup, IdentityHttpApiGroup, LoginApprovalHttpApiGroup, MagicLinkHttpApiGroup, MfaHttpApiGroup, PasskeyHttpApiGroup, PasswordHttpApiGroup, RecoveryCodesHttpApiGroup, LoginNotificationHttpApiGroup, SessionHttpApiGroup, StepUpHttpApiGroup, TotpHttpApiGroup } from "./ClientApi.js";
|
|
52
|
+
import type { EmailAuthStartGuardRequest, EmailOtpStartGuardRequest, EmailOtpVerifyGuardRequest, EmailVerificationStartGuardRequest, MagicLinkStartGuardRequest, MagicLinkVerifyGuardRequest } from "./EmailGuards.js";
|
|
53
|
+
import { AuthBadRequestError, AuthConflictError, AuthIdentityAlreadyRegisteredError, AuthInternalError, AuthInvalidCredentialsError, AuthNotFoundError, AuthPolicyDeniedError, AuthSchemaErrorMiddleware, AuthUnauthenticatedError, OAuthAuthorizationEndpointError, OAuthTokenEndpointError, OAuthTokenIntrospectionEndpointError, OAuthTokenRevocationEndpointError } from "./Errors.js";
|
|
54
|
+
import type { IdentityAvailabilityGuardRequest } from "./IdentityGuards.js";
|
|
55
|
+
import { AuthOriginCheckMiddleware, OAuthNoStoreMiddleware } from "./Middleware.js";
|
|
56
|
+
import { AdminSecurityTimelineHttpOperations, AdminPermissionDefinitionHttpOperations, type AdminPermissionDefinitionHttpOperationRequirements, AdminSessionHttpOperations, AdminTrustedDeviceHttpOperations, ApiKeyHttpOperations, EmailAuthHttpOperations, EmailOtpHttpOperations, EmailVerificationHttpOperations, JwtDiscoveryHttpOperations, JwtHttpOperations, LoginApprovalHttpOperations, MagicLinkHttpOperations, MfaHttpOperations, OAuthHttpOperations, OAuthProviderAuthorizationHttpOperations, OAuthTokenHttpOperations, OAuthTokenIntrospectionHttpOperations, OAuthTokenRevocationHttpOperations, OidcDiscoveryHttpOperations, PasskeyHttpOperations, IdentityHttpOperations, RecoveryCodesHttpOperations, RefreshTokenHttpOperations, LoginNotificationHttpOperations, SecurityTimelineHttpOperations, SessionHttpOperations, StepUpHttpOperations, TotpHttpOperations, TrustedDeviceHttpOperations } from "./Operations/index.js";
|
|
57
|
+
import type { AuthRateLimitGuardRequest } from "./RequestGuards.js";
|
|
58
|
+
import { OAuthProviderAuthorizationQuery, OAuthTokenRequestBody } from "./Schemas.js";
|
|
59
|
+
import type { AdminSecurityTimelineListQuery, AdminPermissionDefinitionCreateBody, AdminPermissionDefinitionGetQuery, AdminPermissionDefinitionListQuery, AdminPermissionDefinitionMutationBody, AdminPermissionDefinitionUpdateBody, AdminSessionListQuery, AdminSessionRevokeAllBody, AdminSessionRevokeBody, AdminTrustedDeviceListQuery, AdminTrustedDeviceRevokeBody, ApiKeyCreateBody, ApiKeyRevokeBody, EmailVerificationVerifyBody, LoginApprovalApproveBody, LoginApprovalFinalizeBody, LoginNotificationReportBody, LoginApprovalReviewStatusBody, JwtIntrospectBody, JwtJwksBody, JwtRevokeBody, MfaOptionsBody, OAuthAccountUnlinkBody, OAuthAccountUnlinkResolutionBody, OAuthAuthorizationCallbackBody, OAuthAuthorizationStartBody, OAuthLinkConfirmationConfirmBody, OAuthLinkConfirmationConfirmedBody, OAuthLinkConfirmationInspectBody, OAuthLinkConfirmationPendingBody, OAuthLinkConfirmationStartBody, OAuthLinkConfirmationStartedBody, OAuthTokenResponseBody, OidcDiscoveryMetadataBody, PasskeyAuthenticationFinishBody, PasskeyAuthenticationStartBody, PasskeyCredentialRevokeBody, PasskeyMfaStartBody, PasskeyMfaVerifyBody, PasskeyRegistrationFinishBody, PasskeyRegistrationStartBody, IdentityAddBody, IdentityPrimaryBody, IdentityReplaceBody, IdentityRevokeBody, SessionRevokeBody, RecoveryCodeGenerateBody, RecoveryCodeRegenerateBody, RecoveryCodeMfaVerifyBody, RecoveryCodeMfaVerifyForFlowBody, RefreshTokenRefreshBody, RecoveryCodeRevokeBody, RecoveryCodeVerifyBody, SecurityTimelineListQuery, StepUpPasskeyStartBody, StepUpPasskeyVerifyBody, StepUpPasswordVerifyBody, StepUpRecoveryCodeVerifyBody, StepUpTotpVerifyBody, TrustedDeviceRevokeBody, TotpEnrollmentConfirmBody, TotpEnrollmentStartBody, TotpFactorRevokeBody, TotpMfaVerifyBody, TotpMfaVerifyForFlowBody, TotpVerifyBody } from "./Schemas.js";
|
|
44
60
|
import { AuthHttp } from "./Transport.js";
|
|
45
61
|
import type { AuthHttpService, LoginApprovalPendingCookieService } from "./Transport.js";
|
|
46
|
-
export
|
|
47
|
-
export
|
|
48
|
-
export
|
|
49
|
-
export declare const passwordResetVerifyInput: (payload: Schema.Schema.Type<typeof PasswordResetVerifyBody>) => PasswordResetVerifyInput;
|
|
50
|
-
export declare const passwordSetInput: (userId: UserId, payload: Schema.Schema.Type<typeof PasswordSetBody>) => PasswordSetInput;
|
|
51
|
-
export declare const passwordChangeInput: (userId: UserId, payload: Schema.Schema.Type<typeof PasswordChangeBody>) => PasswordChangeInput;
|
|
52
|
-
export declare const emailVerificationStartInput: (payload: Schema.Schema.Type<typeof EmailVerificationStartBody>) => EmailVerificationIssueInput;
|
|
62
|
+
export { AuthClientProtocolApi, EmailAuthHttpApiGroup, EmailOtpHttpApiGroup, EmailVerificationHttpApiGroup, IdentityHttpApiGroup, LoginApprovalHttpApiGroup, MagicLinkHttpApiGroup, MfaHttpApiGroup, PasskeyHttpApiGroup, PasswordHttpApiGroup, RecoveryCodesHttpApiGroup, LoginNotificationHttpApiGroup, SessionHttpApiGroup, StepUpHttpApiGroup, TotpHttpApiGroup, } from "./ClientApi.js";
|
|
63
|
+
export { makePasswordChangeHandler, makePasswordResetStartHandler, makePasswordResetVerifyHandler, makePasswordSetHandler, makePasswordSignInHandler, makePasswordSignUpHandler, passwordChangeInput, passwordSetInput, PasswordHttpApi, PasswordHttpApiGroupLive, PasswordHttpApiLive, PasswordHttpOperationsLive, } from "./Password.js";
|
|
64
|
+
export type { PasswordChangeHandlerRequest, PasswordResetStartHandlerRequest, PasswordResetVerifyHandlerRequest, PasswordSetHandlerRequest, PasswordSignInHandlerRequest, PasswordSignUpHandlerRequest, } from "./Password.js";
|
|
53
65
|
export declare const emailVerificationVerifyInput: (payload: Schema.Schema.Type<typeof EmailVerificationVerifyBody>) => EmailVerificationVerifyInput;
|
|
54
|
-
export declare const emailOtpStartInput: (payload: Schema.Schema.Type<typeof EmailOtpStartBody>) => EmailOtpStartInput;
|
|
55
|
-
export declare const emailOtpVerifyInput: (payload: Schema.Schema.Type<typeof EmailOtpVerifyBody>, trustedDeviceToken?: Redacted.Redacted<string>, request?: LoginRequestContext) => EmailOtpVerifyInput;
|
|
56
|
-
export declare const magicLinkStartInput: (payload: Schema.Schema.Type<typeof MagicLinkStartBody>) => MagicLinkStartInput;
|
|
57
|
-
export declare const magicLinkVerifyInput: (payload: Schema.Schema.Type<typeof MagicLinkVerifyBody>, trustedDeviceToken?: Redacted.Redacted<string>, request?: LoginRequestContext) => MagicLinkVerifyInput;
|
|
58
66
|
export interface OAuthAuthorizationCodeVerifierStoreInput {
|
|
59
67
|
readonly payload: Schema.Schema.Type<typeof OAuthAuthorizationStartBody>;
|
|
60
68
|
readonly started: StartedOAuthAuthorization;
|
|
@@ -79,7 +87,7 @@ export interface OAuthTokenClientAuthenticationInput {
|
|
|
79
87
|
export interface OAuthTokenClientAuthenticationHttpOptions {
|
|
80
88
|
readonly authenticateClient?: (input: OAuthTokenClientAuthenticationInput) => Effect.Effect<boolean, unknown>;
|
|
81
89
|
}
|
|
82
|
-
export interface
|
|
90
|
+
export interface OAuthTokenHttpOptions extends OAuthTokenClientAuthenticationHttpOptions {
|
|
83
91
|
}
|
|
84
92
|
export interface OAuthTokenRevocationHttpOptions extends OAuthTokenClientAuthenticationHttpOptions {
|
|
85
93
|
}
|
|
@@ -122,7 +130,7 @@ export declare const oauthAuthorizationStartedHttpBody: (started: StartedOAuthAu
|
|
|
122
130
|
providerId: OAuthProviderId;
|
|
123
131
|
authorizationUrl: string;
|
|
124
132
|
state: import("../OAuth.js").OAuthStateToken;
|
|
125
|
-
challengeId:
|
|
133
|
+
challengeId: ChallengeId;
|
|
126
134
|
expiresAt: UnixMillis;
|
|
127
135
|
codeChallenge: import("../OAuth.js").OAuthCodeChallenge;
|
|
128
136
|
codeChallengeMethod: "S256";
|
|
@@ -138,6 +146,40 @@ export declare const oauthLinkConfirmationPendingHttpBody: (pending: PendingOAut
|
|
|
138
146
|
export declare const oauthAuthorizationCallbackQueryPayload: (input: OAuthAuthorizationCallbackPayloadInput) => Effect.Effect<Schema.Schema.Type<typeof OAuthAuthorizationCallbackBody>, AuthBadRequestError>;
|
|
139
147
|
export declare const oauthAuthorizationCallbackFormPostPayload: (input: OAuthAuthorizationCallbackPayloadInput) => Effect.Effect<Schema.Schema.Type<typeof OAuthAuthorizationCallbackBody>, AuthBadRequestError>;
|
|
140
148
|
export declare const oauthAuthorizationCallbackInput: (payload: Schema.Schema.Type<typeof OAuthAuthorizationCallbackBody>, options: OAuthAuthorizationCallbackHttpOptions) => Effect.Effect<OAuthCallbackInput, AuthBadRequestError>;
|
|
149
|
+
export interface OAuthTokenGrantHandlerInput {
|
|
150
|
+
readonly payload: Schema.Schema.Type<typeof OAuthTokenRequestBody>;
|
|
151
|
+
readonly clientId?: OAuthClientId;
|
|
152
|
+
readonly clientAuthenticated: boolean;
|
|
153
|
+
}
|
|
154
|
+
export type OAuthTokenGrantHandler = (input: OAuthTokenGrantHandlerInput) => Effect.Effect<Schema.Schema.Type<typeof OAuthTokenResponseBody>, OAuthTokenEndpointError | AuthInternalError>;
|
|
155
|
+
export interface OAuthTokenGrantRegistration {
|
|
156
|
+
readonly grantType: string;
|
|
157
|
+
readonly exchange: OAuthTokenGrantHandler;
|
|
158
|
+
}
|
|
159
|
+
declare const OAuthTokenGrantRegistryDuplicateError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
160
|
+
readonly _tag: "OAuthTokenGrantRegistryDuplicateError";
|
|
161
|
+
} & Readonly<A>;
|
|
162
|
+
export declare class OAuthTokenGrantRegistryDuplicateError extends OAuthTokenGrantRegistryDuplicateError_base<{
|
|
163
|
+
readonly grantType: string;
|
|
164
|
+
}> {
|
|
165
|
+
}
|
|
166
|
+
export interface OAuthTokenGrantRegistryService {
|
|
167
|
+
readonly get: (grantType: string) => Option.Option<OAuthTokenGrantRegistration>;
|
|
168
|
+
}
|
|
169
|
+
declare const OAuthTokenGrantRegistry_base: Context.ServiceClass<OAuthTokenGrantRegistry, "auth/HttpApi/OAuthTokenGrantRegistry", OAuthTokenGrantRegistryService>;
|
|
170
|
+
export declare class OAuthTokenGrantRegistry extends OAuthTokenGrantRegistry_base {
|
|
171
|
+
}
|
|
172
|
+
export declare namespace OAuthTokenGrantRegistry {
|
|
173
|
+
const make: (registrations: readonly OAuthTokenGrantRegistration[]) => Effect.Effect<OAuthTokenGrantRegistryService, OAuthTokenGrantRegistryDuplicateError>;
|
|
174
|
+
}
|
|
175
|
+
type OAuthTokenRegistrationEffect = Effect.Effect<OAuthTokenGrantRegistration, unknown, unknown>;
|
|
176
|
+
type OAuthTokenRegistrationError<T> = T extends Effect.Effect<unknown, infer E, unknown> ? E : never;
|
|
177
|
+
type OAuthTokenRegistrationContext<T> = T extends Effect.Effect<unknown, unknown, infer R> ? R : never;
|
|
178
|
+
export declare const OAuthTokenGrantRegistryLive: <const Registrations extends readonly OAuthTokenRegistrationEffect[]>(...registrations: Registrations) => Layer.Layer<OAuthTokenGrantRegistry, OAuthTokenGrantRegistryDuplicateError | OAuthTokenRegistrationError<Registrations[number]>, OAuthTokenRegistrationContext<Registrations[number]>>;
|
|
179
|
+
export declare const oauthAuthorizationCodeTokenGrantRegistration: Effect.Effect<OAuthTokenGrantRegistration, never, OAuthAuthorizationCodeTokenGrant>;
|
|
180
|
+
export declare const oauthRefreshTokenGrantRegistration: Effect.Effect<OAuthTokenGrantRegistration, never, OAuthRefreshTokenGrant>;
|
|
181
|
+
export declare const oauthClientCredentialsGrantRegistration: Effect.Effect<OAuthTokenGrantRegistration, never, OAuthClientCredentialsGrant>;
|
|
182
|
+
export declare const oauthDeviceCodeTokenGrantRegistration: Effect.Effect<OAuthTokenGrantRegistration, never, OAuthDeviceCodeTokenGrant>;
|
|
141
183
|
export interface OAuthAccountUnlinkStepUpHttpInput {
|
|
142
184
|
readonly payload: Schema.Schema.Type<typeof OAuthAccountUnlinkBody>;
|
|
143
185
|
readonly session: ValidatedSession;
|
|
@@ -175,6 +217,17 @@ export interface PasskeyFinishHttpOptions {
|
|
|
175
217
|
readonly expectedOrigin: string | readonly string[];
|
|
176
218
|
readonly requireUserVerification?: boolean;
|
|
177
219
|
}
|
|
220
|
+
export interface PasskeyRegistrationUser {
|
|
221
|
+
readonly userName: string;
|
|
222
|
+
readonly userDisplayName: string;
|
|
223
|
+
readonly metadata?: Readonly<Record<string, unknown>>;
|
|
224
|
+
}
|
|
225
|
+
export interface PasskeyRegistrationUserResolverInput {
|
|
226
|
+
readonly currentSession: CurrentSessionShape;
|
|
227
|
+
readonly actor?: CurrentActorShape;
|
|
228
|
+
readonly request: HttpServerRequest.HttpServerRequest;
|
|
229
|
+
}
|
|
230
|
+
export type PasskeyRegistrationUserResolver = (input: PasskeyRegistrationUserResolverInput) => Effect.Effect<PasskeyRegistrationUser, AuthBadRequestError | AuthInternalError>;
|
|
178
231
|
export interface TotpEnrollmentStartHttpOptions {
|
|
179
232
|
readonly issuer: string;
|
|
180
233
|
readonly secretBytes?: number;
|
|
@@ -190,18 +243,73 @@ export interface RecoveryCodeGenerateHttpOptions {
|
|
|
190
243
|
readonly length?: number;
|
|
191
244
|
readonly groupSize?: number;
|
|
192
245
|
}
|
|
193
|
-
export
|
|
246
|
+
export interface PasskeyHttpConfigValue {
|
|
247
|
+
readonly relyingParty: PasskeyRelyingParty;
|
|
248
|
+
readonly expectedOrigin: string | readonly string[];
|
|
249
|
+
readonly timeout?: number;
|
|
250
|
+
readonly pubKeyCredParams?: readonly PasskeyPublicKeyCredentialParameters[];
|
|
251
|
+
readonly authenticatorSelection?: PasskeyAuthenticatorSelection;
|
|
252
|
+
readonly attestation?: PasskeyAttestation;
|
|
253
|
+
readonly userVerification?: PasskeyUserVerification;
|
|
254
|
+
readonly requireUserVerification?: boolean;
|
|
255
|
+
}
|
|
256
|
+
declare const PasskeyHttpConfig_base: Context.ServiceClass<PasskeyHttpConfig, "auth/http/config/Passkey", PasskeyHttpConfigValue>;
|
|
257
|
+
export declare class PasskeyHttpConfig extends PasskeyHttpConfig_base {
|
|
258
|
+
}
|
|
259
|
+
export declare namespace PasskeyHttpConfig {
|
|
260
|
+
const make: (config: PasskeyHttpConfigValue) => PasskeyHttpConfigValue;
|
|
261
|
+
}
|
|
262
|
+
export declare const PasskeyHttpConfigLive: (config: PasskeyHttpConfigValue) => Layer.Layer<PasskeyHttpConfig, never, never>;
|
|
263
|
+
export interface TotpHttpConfigValue extends TotpEnrollmentStartHttpOptions, TotpCodeHttpOptions {
|
|
264
|
+
}
|
|
265
|
+
declare const TotpHttpConfig_base: Context.ServiceClass<TotpHttpConfig, "auth/http/config/Totp", TotpHttpConfigValue>;
|
|
266
|
+
export declare class TotpHttpConfig extends TotpHttpConfig_base {
|
|
267
|
+
}
|
|
268
|
+
export declare namespace TotpHttpConfig {
|
|
269
|
+
const make: (config: TotpHttpConfigValue) => TotpHttpConfigValue;
|
|
270
|
+
}
|
|
271
|
+
export declare const TotpHttpConfigLive: (config: TotpHttpConfigValue) => Layer.Layer<TotpHttpConfig, never, never>;
|
|
272
|
+
export declare const RecoveryCodeHttpConfig: Context.Reference<RecoveryCodeGenerateHttpOptions>;
|
|
273
|
+
export declare const RecoveryCodeHttpConfigLive: (config?: RecoveryCodeGenerateHttpOptions) => Layer.Layer<never, never, never>;
|
|
274
|
+
export interface OAuthHttpConfigValue extends OAuthAuthorizationStartHttpOptions, OAuthAccountUnlinkHttpOptions, OAuthLinkConfirmationStartHttpOptions, OAuthLinkConfirmationConfirmHttpOptions {
|
|
275
|
+
}
|
|
276
|
+
export declare const OAuthHttpConfig: Context.Reference<OAuthHttpConfigValue>;
|
|
277
|
+
export declare const OAuthHttpConfigLive: (config?: OAuthHttpConfigValue) => Layer.Layer<never, never, never>;
|
|
278
|
+
export declare const OAuthTokenHttpConfig: Context.Reference<OAuthTokenClientAuthenticationHttpOptions>;
|
|
279
|
+
export declare const OAuthTokenHttpConfigLive: (config?: OAuthTokenClientAuthenticationHttpOptions) => Layer.Layer<never, never, never>;
|
|
280
|
+
declare const RefreshTokenHttpConfig_base: Context.ServiceClass<RefreshTokenHttpConfig, "auth/http/config/RefreshToken", RefreshTokenRefreshHttpOptions>;
|
|
281
|
+
export declare class RefreshTokenHttpConfig extends RefreshTokenHttpConfig_base {
|
|
282
|
+
}
|
|
283
|
+
export declare namespace RefreshTokenHttpConfig {
|
|
284
|
+
const make: (config: RefreshTokenRefreshHttpOptions) => RefreshTokenRefreshHttpOptions;
|
|
285
|
+
}
|
|
286
|
+
export declare const RefreshTokenHttpConfigLive: (config: RefreshTokenRefreshHttpOptions) => Layer.Layer<RefreshTokenHttpConfig, never, never>;
|
|
287
|
+
export declare const JwtHttpConfig: Context.Reference<JwtIntrospectionHttpOptions>;
|
|
288
|
+
export declare const JwtHttpConfigLive: (config?: JwtIntrospectionHttpOptions) => Layer.Layer<never, never, never>;
|
|
289
|
+
export declare const passkeyRegistrationStartHttpOptions: (config: PasskeyHttpConfigValue) => PasskeyRegistrationStartHttpOptions;
|
|
290
|
+
export declare const passkeyAuthenticationStartHttpOptions: (config: PasskeyHttpConfigValue) => PasskeyAuthenticationStartHttpOptions;
|
|
291
|
+
export declare const passkeyFinishHttpOptions: (config: PasskeyHttpConfigValue) => PasskeyFinishHttpOptions;
|
|
292
|
+
export declare const passkeyAuthenticationSessionInput: ({ finished, payload, }: PasskeyAuthenticationSessionContext) => SessionCreateInput;
|
|
293
|
+
export declare const passkeyRegistrationStartInput: (userId: UserId, user: PasskeyRegistrationUser, options: PasskeyRegistrationStartHttpOptions) => {
|
|
294
|
+
metadata?: undefined;
|
|
194
295
|
relyingParty: PasskeyRelyingParty;
|
|
195
|
-
userId:
|
|
296
|
+
userId: UserId;
|
|
297
|
+
userName: string;
|
|
298
|
+
userDisplayName: string;
|
|
299
|
+
timeout?: number | undefined;
|
|
300
|
+
pubKeyCredParams?: readonly PasskeyPublicKeyCredentialParameters[] | undefined;
|
|
301
|
+
authenticatorSelection?: PasskeyAuthenticatorSelection | undefined;
|
|
302
|
+
attestation?: PasskeyAttestation | undefined;
|
|
303
|
+
} | {
|
|
304
|
+
metadata: Readonly<Record<string, unknown>>;
|
|
305
|
+
relyingParty: PasskeyRelyingParty;
|
|
306
|
+
userId: UserId;
|
|
196
307
|
userName: string;
|
|
197
308
|
userDisplayName: string;
|
|
198
309
|
timeout?: number | undefined;
|
|
199
310
|
pubKeyCredParams?: readonly PasskeyPublicKeyCredentialParameters[] | undefined;
|
|
200
311
|
authenticatorSelection?: PasskeyAuthenticatorSelection | undefined;
|
|
201
312
|
attestation?: PasskeyAttestation | undefined;
|
|
202
|
-
metadata?: {
|
|
203
|
-
readonly [x: string]: unknown;
|
|
204
|
-
} | undefined;
|
|
205
313
|
};
|
|
206
314
|
export declare const passkeyAuthenticationStartInput: (payload: Schema.Schema.Type<typeof PasskeyAuthenticationStartBody>, options: PasskeyAuthenticationStartHttpOptions) => {
|
|
207
315
|
relyingPartyId: string;
|
|
@@ -213,9 +321,29 @@ export declare const passkeyAuthenticationStartInput: (payload: Schema.Schema.Ty
|
|
|
213
321
|
} | undefined;
|
|
214
322
|
};
|
|
215
323
|
export declare const passkeyMfaStartInput: (userId: UserId, payload: Schema.Schema.Type<typeof PasskeyMfaStartBody>, options: PasskeyAuthenticationStartHttpOptions) => PasskeyAuthenticationStartInput;
|
|
216
|
-
export declare const passkeyRegistrationFinishInput: (payload: Schema.Schema.Type<typeof PasskeyRegistrationFinishBody>, options: PasskeyFinishHttpOptions) => {
|
|
324
|
+
export declare const passkeyRegistrationFinishInput: (userId: UserId, payload: Schema.Schema.Type<typeof PasskeyRegistrationFinishBody>, user: PasskeyRegistrationUser, options: PasskeyFinishHttpOptions) => {
|
|
325
|
+
metadata?: undefined;
|
|
217
326
|
challengeId: string & import("effect/Brand").Brand<"auth/ChallengeId">;
|
|
218
|
-
userId:
|
|
327
|
+
userId: UserId;
|
|
328
|
+
response: {
|
|
329
|
+
readonly id: string;
|
|
330
|
+
readonly rawId?: string | undefined;
|
|
331
|
+
readonly type: "public-key";
|
|
332
|
+
readonly response: {
|
|
333
|
+
readonly [x: string]: unknown;
|
|
334
|
+
};
|
|
335
|
+
readonly authenticatorAttachment?: string | undefined;
|
|
336
|
+
readonly clientExtensionResults?: {
|
|
337
|
+
readonly [x: string]: unknown;
|
|
338
|
+
} | undefined;
|
|
339
|
+
};
|
|
340
|
+
relyingPartyId: string;
|
|
341
|
+
expectedOrigin: string | readonly string[];
|
|
342
|
+
requireUserVerification?: boolean | undefined;
|
|
343
|
+
} | {
|
|
344
|
+
metadata: Readonly<Record<string, unknown>>;
|
|
345
|
+
challengeId: string & import("effect/Brand").Brand<"auth/ChallengeId">;
|
|
346
|
+
userId: UserId;
|
|
219
347
|
response: {
|
|
220
348
|
readonly id: string;
|
|
221
349
|
readonly rawId?: string | undefined;
|
|
@@ -231,9 +359,6 @@ export declare const passkeyRegistrationFinishInput: (payload: Schema.Schema.Typ
|
|
|
231
359
|
relyingPartyId: string;
|
|
232
360
|
expectedOrigin: string | readonly string[];
|
|
233
361
|
requireUserVerification?: boolean | undefined;
|
|
234
|
-
metadata?: {
|
|
235
|
-
readonly [x: string]: unknown;
|
|
236
|
-
} | undefined;
|
|
237
362
|
};
|
|
238
363
|
export declare const passkeyAuthenticationFinishInput: (payload: Schema.Schema.Type<typeof PasskeyAuthenticationFinishBody>, options: PasskeyFinishHttpOptions) => {
|
|
239
364
|
challengeId: string & import("effect/Brand").Brand<"auth/ChallengeId">;
|
|
@@ -257,7 +382,7 @@ export declare const passkeyAuthenticationFinishInput: (payload: Schema.Schema.T
|
|
|
257
382
|
readonly [x: string]: unknown;
|
|
258
383
|
} | undefined;
|
|
259
384
|
};
|
|
260
|
-
export declare const passkeyMfaVerifyInput: (payload: Schema.Schema.Type<typeof PasskeyMfaVerifyBody>, options: PasskeyFinishHttpOptions) => {
|
|
385
|
+
export declare const passkeyMfaVerifyInput: (payload: Schema.Schema.Type<typeof PasskeyMfaVerifyBody>, options: PasskeyFinishHttpOptions, expectedUserId?: UserId) => {
|
|
261
386
|
challengeId: string & import("effect/Brand").Brand<"auth/ChallengeId">;
|
|
262
387
|
response: {
|
|
263
388
|
readonly id: string;
|
|
@@ -274,7 +399,10 @@ export declare const passkeyMfaVerifyInput: (payload: Schema.Schema.Type<typeof
|
|
|
274
399
|
userId?: (string & import("effect/Brand").Brand<"auth/UserId">) | undefined;
|
|
275
400
|
relyingPartyId: string;
|
|
276
401
|
expectedOrigin: string | readonly string[];
|
|
277
|
-
requireUserVerification
|
|
402
|
+
requireUserVerification: boolean;
|
|
403
|
+
expectedChallengeMetadata: {
|
|
404
|
+
flowId: string & import("effect/Brand").Brand<"auth/AuthFlowId">;
|
|
405
|
+
};
|
|
278
406
|
metadata?: {
|
|
279
407
|
readonly [x: string]: unknown;
|
|
280
408
|
} | undefined;
|
|
@@ -289,6 +417,7 @@ export declare const totpEnrollmentConfirmInput: (userId: UserId, payload: Schem
|
|
|
289
417
|
export declare const totpVerifyInput: (userId: UserId, payload: Schema.Schema.Type<typeof TotpVerifyBody>, options?: TotpCodeHttpOptions) => TotpVerifyForUserInput;
|
|
290
418
|
export declare const totpFactorRevokeInput: (userId: UserId, payload: Schema.Schema.Type<typeof TotpFactorRevokeBody>) => TotpFactorManagementRevokeInput;
|
|
291
419
|
export declare const recoveryCodeGenerateInput: (userId: UserId, payload: Schema.Schema.Type<typeof RecoveryCodeGenerateBody>, options?: RecoveryCodeGenerateHttpOptions) => RecoveryCodeGenerateForUserInput;
|
|
420
|
+
export declare const recoveryCodeRegenerateInput: (userId: UserId, payload: Schema.Schema.Type<typeof RecoveryCodeRegenerateBody>, options?: RecoveryCodeGenerateHttpOptions) => RecoveryCodeRegenerateForUserInput;
|
|
292
421
|
export declare const recoveryCodeVerifyInput: (userId: UserId, payload: Schema.Schema.Type<typeof RecoveryCodeVerifyBody>) => RecoveryCodeVerifyForUserInput;
|
|
293
422
|
export declare const recoveryCodeRevokeInput: (userId: UserId, payload: Schema.Schema.Type<typeof RecoveryCodeRevokeBody>) => RecoveryCodeManagementRevokeInput;
|
|
294
423
|
export declare const apiKeyCreateInput: (userId: UserId, payload: Schema.Schema.Type<typeof ApiKeyCreateBody>) => ApiKeyCreateForUserInput;
|
|
@@ -318,6 +447,12 @@ export declare const totpMfaVerifyForFlowInput: (userId: UserId, payload: Schema
|
|
|
318
447
|
export declare const recoveryCodeMfaVerifyInput: (payload: Schema.Schema.Type<typeof RecoveryCodeMfaVerifyBody>) => RecoveryCodeVerifyForUserInput;
|
|
319
448
|
export declare const recoveryCodeMfaVerifyForFlowInput: (userId: UserId, payload: Schema.Schema.Type<typeof RecoveryCodeMfaVerifyForFlowBody>) => RecoveryCodeVerifyForUserInput;
|
|
320
449
|
export declare const stepUpTotpVerifyInput: (userId: UserId, payload: Schema.Schema.Type<typeof StepUpTotpVerifyBody>, options?: TotpCodeHttpOptions) => TotpVerifyForUserInput;
|
|
450
|
+
export declare const stepUpPasswordVerifyInput: (payload: Schema.Schema.Type<typeof StepUpPasswordVerifyBody>) => {
|
|
451
|
+
password: Redacted.Redacted<string>;
|
|
452
|
+
metadata?: {
|
|
453
|
+
readonly [x: string]: unknown;
|
|
454
|
+
} | undefined;
|
|
455
|
+
};
|
|
321
456
|
export declare const stepUpRecoveryCodeVerifyInput: (userId: UserId, payload: Schema.Schema.Type<typeof StepUpRecoveryCodeVerifyBody>) => RecoveryCodeVerifyForUserInput;
|
|
322
457
|
export declare const stepUpPasskeyStartInput: (userId: UserId, payload: Schema.Schema.Type<typeof StepUpPasskeyStartBody>, options: PasskeyAuthenticationStartHttpOptions) => PasskeyAuthenticationStartInput;
|
|
323
458
|
export declare const stepUpPasskeyVerifyInput: (userId: UserId, payload: Schema.Schema.Type<typeof StepUpPasskeyVerifyBody>, options: PasskeyFinishHttpOptions) => PasskeyAuthenticationFinishInput;
|
|
@@ -346,8 +481,8 @@ export declare const adminSessionHttpBody: (session: SessionInfoShape) => {
|
|
|
346
481
|
authTime: UnixMillis;
|
|
347
482
|
lastSeenAt?: UnixMillis | undefined;
|
|
348
483
|
expiresAt: UnixMillis;
|
|
349
|
-
aal: import("../
|
|
350
|
-
amr: readonly AuthMethodReference[];
|
|
484
|
+
aal: import("../Assurance.js").AssuranceLevel;
|
|
485
|
+
amr: readonly import("../Assurance.js").AuthMethodReference[];
|
|
351
486
|
mfaVerifiedAt?: UnixMillis | undefined;
|
|
352
487
|
ip?: string | undefined;
|
|
353
488
|
userAgent?: string | undefined;
|
|
@@ -360,39 +495,23 @@ export declare const adminSessionHttpBody: (session: SessionInfoShape) => {
|
|
|
360
495
|
export declare const stepUpAuthenticatedHttpBody: (session: CurrentSessionShape) => {
|
|
361
496
|
type: "authenticated";
|
|
362
497
|
expiresAt: number;
|
|
363
|
-
aal: import("../
|
|
364
|
-
amr: readonly AuthMethodReference[];
|
|
498
|
+
aal: import("../Assurance.js").AssuranceLevel;
|
|
499
|
+
amr: readonly import("../Assurance.js").AuthMethodReference[];
|
|
365
500
|
mfaVerifiedAt?: UnixMillis | undefined;
|
|
366
501
|
} | {
|
|
367
502
|
type: "authenticated";
|
|
368
503
|
expiresAt: number;
|
|
369
|
-
aal: import("../
|
|
370
|
-
amr: readonly AuthMethodReference[];
|
|
504
|
+
aal: import("../Assurance.js").AssuranceLevel;
|
|
505
|
+
amr: readonly import("../Assurance.js").AuthMethodReference[];
|
|
371
506
|
mfaVerifiedAt?: UnixMillis | undefined;
|
|
372
507
|
claims: SessionClaims;
|
|
373
508
|
};
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
readonly
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
readonly request?: HttpServerRequest.HttpServerRequest;
|
|
381
|
-
};
|
|
382
|
-
export type PasswordResetStartHandlerRequest = {
|
|
383
|
-
readonly payload: Schema.Schema.Type<typeof PasswordResetStartBody>;
|
|
384
|
-
};
|
|
385
|
-
export type PasswordResetVerifyHandlerRequest = {
|
|
386
|
-
readonly payload: Schema.Schema.Type<typeof PasswordResetVerifyBody>;
|
|
387
|
-
};
|
|
388
|
-
export type PasswordSetHandlerRequest = {
|
|
389
|
-
readonly payload: Schema.Schema.Type<typeof PasswordSetBody>;
|
|
390
|
-
readonly request: HttpServerRequest.HttpServerRequest;
|
|
391
|
-
};
|
|
392
|
-
export type PasswordChangeHandlerRequest = {
|
|
393
|
-
readonly payload: Schema.Schema.Type<typeof PasswordChangeBody>;
|
|
394
|
-
readonly request: HttpServerRequest.HttpServerRequest;
|
|
395
|
-
};
|
|
509
|
+
type AuthRateLimitHandlerRequestData = AuthRateLimitGuardRequest;
|
|
510
|
+
export declare const makePasskeyRegistrationUserResolver: (dependencies: {
|
|
511
|
+
readonly users: UserStoreService;
|
|
512
|
+
readonly identities: IdentityStoreService;
|
|
513
|
+
}) => PasskeyRegistrationUserResolver;
|
|
514
|
+
export declare const identityHttpError: (error: IdentityManagementError) => AuthBadRequestError | AuthIdentityAlreadyRegisteredError | AuthInternalError | AuthPolicyDeniedError;
|
|
396
515
|
export type SessionHandlerRequest = {
|
|
397
516
|
readonly request: HttpServerRequest.HttpServerRequest;
|
|
398
517
|
};
|
|
@@ -426,8 +545,39 @@ export interface AdminSessionAuthorizationService {
|
|
|
426
545
|
declare const AdminSessionAuthorization_base: Context.ServiceClass<AdminSessionAuthorization, "auth/AdminSessionAuthorization", AdminSessionAuthorizationService>;
|
|
427
546
|
export declare class AdminSessionAuthorization extends AdminSessionAuthorization_base {
|
|
428
547
|
}
|
|
429
|
-
export
|
|
430
|
-
|
|
548
|
+
export type AdminPermissionDefinitionCreateHandlerRequest = {
|
|
549
|
+
readonly payload: Schema.Schema.Type<typeof AdminPermissionDefinitionCreateBody>;
|
|
550
|
+
readonly request: HttpServerRequest.HttpServerRequest;
|
|
551
|
+
};
|
|
552
|
+
export type AdminPermissionDefinitionGetHandlerRequest = {
|
|
553
|
+
readonly query: Schema.Schema.Type<typeof AdminPermissionDefinitionGetQuery>;
|
|
554
|
+
readonly request: HttpServerRequest.HttpServerRequest;
|
|
555
|
+
};
|
|
556
|
+
export type AdminPermissionDefinitionListHandlerRequest = {
|
|
557
|
+
readonly query: Schema.Schema.Type<typeof AdminPermissionDefinitionListQuery>;
|
|
558
|
+
readonly request: HttpServerRequest.HttpServerRequest;
|
|
559
|
+
};
|
|
560
|
+
export type AdminPermissionDefinitionUpdateHandlerRequest = {
|
|
561
|
+
readonly payload: Schema.Schema.Type<typeof AdminPermissionDefinitionUpdateBody>;
|
|
562
|
+
readonly request: HttpServerRequest.HttpServerRequest;
|
|
563
|
+
};
|
|
564
|
+
export type AdminPermissionDefinitionMutationHandlerRequest = {
|
|
565
|
+
readonly payload: Schema.Schema.Type<typeof AdminPermissionDefinitionMutationBody>;
|
|
566
|
+
readonly request: HttpServerRequest.HttpServerRequest;
|
|
567
|
+
};
|
|
568
|
+
export type AdminPermissionDefinitionAuthorizationAction = "create" | "get" | "list" | "update" | "disable" | "enable" | "delete";
|
|
569
|
+
export interface AdminPermissionDefinitionAuthorizationInput {
|
|
570
|
+
readonly currentSession: CurrentSessionShape;
|
|
571
|
+
readonly action: AdminPermissionDefinitionAuthorizationAction;
|
|
572
|
+
readonly request: HttpServerRequest.HttpServerRequest;
|
|
573
|
+
readonly permissionId?: PermissionId;
|
|
574
|
+
readonly scopeType?: string | null;
|
|
575
|
+
}
|
|
576
|
+
export interface AdminPermissionDefinitionAuthorizationService {
|
|
577
|
+
readonly authorize: (input: AdminPermissionDefinitionAuthorizationInput) => Effect.Effect<void, AuthPolicyDeniedError | AuthInternalError>;
|
|
578
|
+
}
|
|
579
|
+
declare const AdminPermissionDefinitionAuthorization_base: Context.ServiceClass<AdminPermissionDefinitionAuthorization, "auth/AdminPermissionDefinitionAuthorization", AdminPermissionDefinitionAuthorizationService>;
|
|
580
|
+
export declare class AdminPermissionDefinitionAuthorization extends AdminPermissionDefinitionAuthorization_base {
|
|
431
581
|
}
|
|
432
582
|
export type LoginNotificationReportHandlerRequest = {
|
|
433
583
|
readonly payload: Schema.Schema.Type<typeof LoginNotificationReportBody>;
|
|
@@ -451,9 +601,6 @@ export interface AdminSecurityTimelineAuthorizationService {
|
|
|
451
601
|
declare const AdminSecurityTimelineAuthorization_base: Context.ServiceClass<AdminSecurityTimelineAuthorization, "auth/AdminSecurityTimelineAuthorization", AdminSecurityTimelineAuthorizationService>;
|
|
452
602
|
export declare class AdminSecurityTimelineAuthorization extends AdminSecurityTimelineAuthorization_base {
|
|
453
603
|
}
|
|
454
|
-
export declare namespace AdminSecurityTimelineAuthorization {
|
|
455
|
-
const make: (service: AdminSecurityTimelineAuthorizationService) => AdminSecurityTimelineAuthorizationService;
|
|
456
|
-
}
|
|
457
604
|
export type TrustedDeviceListHandlerRequest = {
|
|
458
605
|
readonly request: HttpServerRequest.HttpServerRequest;
|
|
459
606
|
};
|
|
@@ -483,30 +630,16 @@ export interface AdminTrustedDeviceAuthorizationService {
|
|
|
483
630
|
declare const AdminTrustedDeviceAuthorization_base: Context.ServiceClass<AdminTrustedDeviceAuthorization, "auth/AdminTrustedDeviceAuthorization", AdminTrustedDeviceAuthorizationService>;
|
|
484
631
|
export declare class AdminTrustedDeviceAuthorization extends AdminTrustedDeviceAuthorization_base {
|
|
485
632
|
}
|
|
486
|
-
export
|
|
487
|
-
const make: (service: AdminTrustedDeviceAuthorizationService) => AdminTrustedDeviceAuthorizationService;
|
|
488
|
-
}
|
|
489
|
-
export type EmailVerificationStartHandlerRequest = {
|
|
490
|
-
readonly payload: Schema.Schema.Type<typeof EmailVerificationStartBody>;
|
|
491
|
-
};
|
|
633
|
+
export type EmailVerificationStartHandlerRequest = EmailVerificationStartGuardRequest;
|
|
492
634
|
export type EmailVerificationVerifyHandlerRequest = {
|
|
493
635
|
readonly payload: Schema.Schema.Type<typeof EmailVerificationVerifyBody>;
|
|
494
636
|
readonly request: HttpServerRequest.HttpServerRequest;
|
|
495
637
|
};
|
|
496
|
-
export type EmailOtpStartHandlerRequest =
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
export type
|
|
500
|
-
|
|
501
|
-
readonly request?: HttpServerRequest.HttpServerRequest;
|
|
502
|
-
};
|
|
503
|
-
export type MagicLinkStartHandlerRequest = {
|
|
504
|
-
readonly payload: Schema.Schema.Type<typeof MagicLinkStartBody>;
|
|
505
|
-
};
|
|
506
|
-
export type MagicLinkVerifyHandlerRequest = {
|
|
507
|
-
readonly payload: Schema.Schema.Type<typeof MagicLinkVerifyBody>;
|
|
508
|
-
readonly request?: HttpServerRequest.HttpServerRequest;
|
|
509
|
-
};
|
|
638
|
+
export type EmailOtpStartHandlerRequest = EmailOtpStartGuardRequest;
|
|
639
|
+
export type EmailOtpVerifyHandlerRequest = EmailOtpVerifyGuardRequest;
|
|
640
|
+
export type EmailAuthStartHandlerRequest = EmailAuthStartGuardRequest;
|
|
641
|
+
export type MagicLinkStartHandlerRequest = MagicLinkStartGuardRequest;
|
|
642
|
+
export type MagicLinkVerifyHandlerRequest = MagicLinkVerifyGuardRequest;
|
|
510
643
|
export type OAuthAuthorizationStartHandlerRequest = {
|
|
511
644
|
readonly payload: Schema.Schema.Type<typeof OAuthAuthorizationStartBody>;
|
|
512
645
|
};
|
|
@@ -537,16 +670,18 @@ export type OAuthLinkConfirmationConfirmHandlerRequest = {
|
|
|
537
670
|
readonly payload: Schema.Schema.Type<typeof OAuthLinkConfirmationConfirmBody>;
|
|
538
671
|
readonly request?: HttpServerRequest.HttpServerRequest;
|
|
539
672
|
};
|
|
540
|
-
export type PasskeyRegistrationStartHandlerRequest = {
|
|
673
|
+
export type PasskeyRegistrationStartHandlerRequest = AuthRateLimitHandlerRequestData & {
|
|
541
674
|
readonly payload: Schema.Schema.Type<typeof PasskeyRegistrationStartBody>;
|
|
675
|
+
readonly request: HttpServerRequest.HttpServerRequest;
|
|
542
676
|
};
|
|
543
|
-
export type PasskeyRegistrationFinishHandlerRequest = {
|
|
677
|
+
export type PasskeyRegistrationFinishHandlerRequest = AuthRateLimitHandlerRequestData & {
|
|
544
678
|
readonly payload: Schema.Schema.Type<typeof PasskeyRegistrationFinishBody>;
|
|
679
|
+
readonly request: HttpServerRequest.HttpServerRequest;
|
|
545
680
|
};
|
|
546
|
-
export type PasskeyAuthenticationStartHandlerRequest = {
|
|
681
|
+
export type PasskeyAuthenticationStartHandlerRequest = AuthRateLimitHandlerRequestData & {
|
|
547
682
|
readonly payload: Schema.Schema.Type<typeof PasskeyAuthenticationStartBody>;
|
|
548
683
|
};
|
|
549
|
-
export type PasskeyAuthenticationFinishHandlerRequest = {
|
|
684
|
+
export type PasskeyAuthenticationFinishHandlerRequest = AuthRateLimitHandlerRequestData & {
|
|
550
685
|
readonly payload: Schema.Schema.Type<typeof PasskeyAuthenticationFinishBody>;
|
|
551
686
|
readonly request?: HttpServerRequest.HttpServerRequest;
|
|
552
687
|
};
|
|
@@ -580,6 +715,10 @@ export type RecoveryCodeGenerateHandlerRequest = {
|
|
|
580
715
|
readonly payload: Schema.Schema.Type<typeof RecoveryCodeGenerateBody>;
|
|
581
716
|
readonly request: HttpServerRequest.HttpServerRequest;
|
|
582
717
|
};
|
|
718
|
+
export type RecoveryCodeRegenerateHandlerRequest = {
|
|
719
|
+
readonly payload: Schema.Schema.Type<typeof RecoveryCodeRegenerateBody>;
|
|
720
|
+
readonly request: HttpServerRequest.HttpServerRequest;
|
|
721
|
+
};
|
|
583
722
|
export type RecoveryCodeVerifyHandlerRequest = {
|
|
584
723
|
readonly payload: Schema.Schema.Type<typeof RecoveryCodeVerifyBody>;
|
|
585
724
|
readonly request: HttpServerRequest.HttpServerRequest;
|
|
@@ -620,29 +759,26 @@ export interface OidcDiscoveryMetadataService {
|
|
|
620
759
|
declare const OidcDiscoveryMetadata_base: Context.ServiceClass<OidcDiscoveryMetadata, "auth/OidcDiscoveryMetadata", OidcDiscoveryMetadataService>;
|
|
621
760
|
export declare class OidcDiscoveryMetadata extends OidcDiscoveryMetadata_base {
|
|
622
761
|
}
|
|
623
|
-
export declare namespace OidcDiscoveryMetadata {
|
|
624
|
-
const make: (service: OidcDiscoveryMetadataService) => OidcDiscoveryMetadataService;
|
|
625
|
-
}
|
|
626
762
|
export declare const OidcDiscoveryMetadataLive: (metadata: OidcDiscoveryMetadataShape) => Layer.Layer<OidcDiscoveryMetadata, never, never>;
|
|
627
|
-
export type TotpMfaVerifyHandlerRequest = {
|
|
763
|
+
export type TotpMfaVerifyHandlerRequest = AuthRateLimitHandlerRequestData & {
|
|
628
764
|
readonly payload: Schema.Schema.Type<typeof TotpMfaVerifyBody>;
|
|
629
765
|
};
|
|
630
|
-
export type TotpMfaVerifyForFlowHandlerRequest = {
|
|
766
|
+
export type TotpMfaVerifyForFlowHandlerRequest = AuthRateLimitHandlerRequestData & {
|
|
631
767
|
readonly payload: Schema.Schema.Type<typeof TotpMfaVerifyForFlowBody>;
|
|
632
768
|
};
|
|
633
|
-
export type MfaOptionsHandlerRequest = {
|
|
769
|
+
export type MfaOptionsHandlerRequest = AuthRateLimitHandlerRequestData & {
|
|
634
770
|
readonly payload: Schema.Schema.Type<typeof MfaOptionsBody>;
|
|
635
771
|
};
|
|
636
|
-
export type RecoveryCodeMfaVerifyHandlerRequest = {
|
|
772
|
+
export type RecoveryCodeMfaVerifyHandlerRequest = AuthRateLimitHandlerRequestData & {
|
|
637
773
|
readonly payload: Schema.Schema.Type<typeof RecoveryCodeMfaVerifyBody>;
|
|
638
774
|
};
|
|
639
|
-
export type RecoveryCodeMfaVerifyForFlowHandlerRequest = {
|
|
775
|
+
export type RecoveryCodeMfaVerifyForFlowHandlerRequest = AuthRateLimitHandlerRequestData & {
|
|
640
776
|
readonly payload: Schema.Schema.Type<typeof RecoveryCodeMfaVerifyForFlowBody>;
|
|
641
777
|
};
|
|
642
|
-
export type PasskeyMfaStartHandlerRequest = {
|
|
778
|
+
export type PasskeyMfaStartHandlerRequest = AuthRateLimitHandlerRequestData & {
|
|
643
779
|
readonly payload: Schema.Schema.Type<typeof PasskeyMfaStartBody>;
|
|
644
780
|
};
|
|
645
|
-
export type PasskeyMfaVerifyHandlerRequest = {
|
|
781
|
+
export type PasskeyMfaVerifyHandlerRequest = AuthRateLimitHandlerRequestData & {
|
|
646
782
|
readonly payload: Schema.Schema.Type<typeof PasskeyMfaVerifyBody>;
|
|
647
783
|
};
|
|
648
784
|
export type StepUpOptionsHandlerRequest = {
|
|
@@ -652,6 +788,10 @@ export type StepUpTotpVerifyHandlerRequest = {
|
|
|
652
788
|
readonly payload: Schema.Schema.Type<typeof StepUpTotpVerifyBody>;
|
|
653
789
|
readonly request: HttpServerRequest.HttpServerRequest;
|
|
654
790
|
};
|
|
791
|
+
export type StepUpPasswordVerifyHandlerRequest = {
|
|
792
|
+
readonly payload: Schema.Schema.Type<typeof StepUpPasswordVerifyBody>;
|
|
793
|
+
readonly request: HttpServerRequest.HttpServerRequest;
|
|
794
|
+
};
|
|
655
795
|
export type StepUpRecoveryCodeVerifyHandlerRequest = {
|
|
656
796
|
readonly payload: Schema.Schema.Type<typeof StepUpRecoveryCodeVerifyBody>;
|
|
657
797
|
readonly request: HttpServerRequest.HttpServerRequest;
|
|
@@ -680,41 +820,11 @@ export type LoginApprovalFinalizeHandlerRequest = {
|
|
|
680
820
|
readonly payload: Schema.Schema.Type<typeof LoginApprovalFinalizeBody>;
|
|
681
821
|
readonly request: HttpServerRequest.HttpServerRequest;
|
|
682
822
|
};
|
|
683
|
-
export declare const makePasswordSignInHandler: (dependencies: {
|
|
684
|
-
readonly password: PasswordLoginService;
|
|
685
|
-
readonly authHttp: AuthHttpService;
|
|
686
|
-
readonly emailVerificationFlow?: EmailVerificationFlowService;
|
|
687
|
-
readonly authApiRateLimit?: AuthApiRateLimitService;
|
|
688
|
-
readonly trustedDeviceCookie?: TrustedDeviceCookieService;
|
|
689
|
-
}) => (args_0: PasswordSignInHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthRateLimitedError | import("./Transport.js").PasswordSignInHttpError, never>;
|
|
690
|
-
export declare const makePasswordSignUpHandler: (dependencies: {
|
|
691
|
-
readonly registration: PasswordRegistrationService;
|
|
692
|
-
readonly authHttp: AuthHttpService;
|
|
693
|
-
readonly emailVerificationFlow?: EmailVerificationFlowService;
|
|
694
|
-
readonly authApiRateLimit?: AuthApiRateLimitService;
|
|
695
|
-
}) => (args_0: PasswordSignUpHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthEmailAlreadyRegisteredError | AuthRateLimitedError | import("./Transport.js").PasswordSignUpHttpError, never>;
|
|
696
|
-
export declare const makePasswordResetStartHandler: (dependencies: {
|
|
697
|
-
readonly passwordReset: PasswordResetService;
|
|
698
|
-
readonly authApiRateLimit?: AuthApiRateLimitService;
|
|
699
|
-
}) => (args_0: PasswordResetStartHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthInternalError | AuthRateLimitedError, never>;
|
|
700
|
-
export declare const makePasswordResetVerifyHandler: (dependencies: {
|
|
701
|
-
readonly passwordReset: PasswordResetService;
|
|
702
|
-
}) => (args_0: PasswordResetVerifyHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthBadRequestError, never>;
|
|
703
|
-
export declare const makePasswordSetHandler: (dependencies: {
|
|
704
|
-
readonly passwordManagement: PasswordManagementService;
|
|
705
|
-
readonly sessions: SessionsService;
|
|
706
|
-
readonly sessionCookie: SessionCookieService;
|
|
707
|
-
}) => (args_0: PasswordSetHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthBadRequestError | AuthInternalError | AuthUnauthenticatedError, never>;
|
|
708
|
-
export declare const makePasswordChangeHandler: (dependencies: {
|
|
709
|
-
readonly passwordManagement: PasswordManagementService;
|
|
710
|
-
readonly sessions: SessionsService;
|
|
711
|
-
readonly sessionCookie: SessionCookieService;
|
|
712
|
-
}) => (args_0: PasswordChangeHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthBadRequestError | AuthInternalError | AuthUnauthenticatedError, never>;
|
|
713
823
|
export declare const makeCurrentSessionHandler: (dependencies: {
|
|
714
824
|
readonly sessions: SessionsService;
|
|
715
825
|
readonly sessionCookie: SessionCookieService;
|
|
716
826
|
readonly authHttp: AuthHttpService;
|
|
717
|
-
}) => (
|
|
827
|
+
}) => (handlerRequest: SessionHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthInternalError | AuthUnauthenticatedError, never>;
|
|
718
828
|
export declare const makeRefreshSessionHandler: (dependencies: {
|
|
719
829
|
readonly sessions: SessionsService;
|
|
720
830
|
readonly sessionCookie: SessionCookieService;
|
|
@@ -728,7 +838,7 @@ export declare const makeLogoutHandler: (dependencies: {
|
|
|
728
838
|
export declare const makeListSessionsHandler: (dependencies: {
|
|
729
839
|
readonly sessions: SessionsService;
|
|
730
840
|
readonly sessionCookie: SessionCookieService;
|
|
731
|
-
}) => (
|
|
841
|
+
}) => (handlerRequest: SessionHandlerRequest) => Effect.Effect<{
|
|
732
842
|
sessions: {
|
|
733
843
|
sessionId: SessionId;
|
|
734
844
|
userId: UserId;
|
|
@@ -736,8 +846,8 @@ export declare const makeListSessionsHandler: (dependencies: {
|
|
|
736
846
|
authTime: UnixMillis;
|
|
737
847
|
lastSeenAt?: UnixMillis | undefined;
|
|
738
848
|
expiresAt: UnixMillis;
|
|
739
|
-
aal: import("../
|
|
740
|
-
amr: readonly AuthMethodReference[];
|
|
849
|
+
aal: import("../Assurance.js").AssuranceLevel;
|
|
850
|
+
amr: readonly import("../Assurance.js").AuthMethodReference[];
|
|
741
851
|
mfaVerifiedAt?: UnixMillis | undefined;
|
|
742
852
|
current: boolean;
|
|
743
853
|
claims?: SessionClaims | undefined;
|
|
@@ -755,16 +865,16 @@ export declare const makeRevokeSessionHandler: (dependencies: {
|
|
|
755
865
|
readonly sessions: SessionsService;
|
|
756
866
|
readonly sessionCookie: SessionCookieService;
|
|
757
867
|
readonly authHttp: AuthHttpService;
|
|
758
|
-
}) => (
|
|
868
|
+
}) => (handlerRequest: SessionRevokeHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthInternalError | AuthUnauthenticatedError, never>;
|
|
759
869
|
export declare const makeRevokeOtherSessionsHandler: (dependencies: {
|
|
760
870
|
readonly sessions: SessionsService;
|
|
761
871
|
readonly sessionCookie: SessionCookieService;
|
|
762
|
-
}) => (
|
|
872
|
+
}) => (handlerRequest: SessionHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthInternalError | AuthUnauthenticatedError, never>;
|
|
763
873
|
export declare const makeAdminSessionListHandler: (dependencies: {
|
|
764
874
|
readonly sessions: SessionsService;
|
|
765
875
|
readonly sessionCookie: SessionCookieService;
|
|
766
876
|
readonly authorization: AdminSessionAuthorizationService;
|
|
767
|
-
}) => (
|
|
877
|
+
}) => (handlerRequest: AdminSessionListHandlerRequest) => Effect.Effect<{
|
|
768
878
|
sessions: {
|
|
769
879
|
sessionId: SessionId;
|
|
770
880
|
userId: UserId;
|
|
@@ -772,8 +882,8 @@ export declare const makeAdminSessionListHandler: (dependencies: {
|
|
|
772
882
|
authTime: UnixMillis;
|
|
773
883
|
lastSeenAt?: UnixMillis | undefined;
|
|
774
884
|
expiresAt: UnixMillis;
|
|
775
|
-
aal: import("../
|
|
776
|
-
amr: readonly AuthMethodReference[];
|
|
885
|
+
aal: import("../Assurance.js").AssuranceLevel;
|
|
886
|
+
amr: readonly import("../Assurance.js").AuthMethodReference[];
|
|
777
887
|
mfaVerifiedAt?: UnixMillis | undefined;
|
|
778
888
|
ip?: string | undefined;
|
|
779
889
|
userAgent?: string | undefined;
|
|
@@ -788,18 +898,93 @@ export declare const makeAdminSessionRevokeHandler: (dependencies: {
|
|
|
788
898
|
readonly sessions: SessionsService;
|
|
789
899
|
readonly sessionCookie: SessionCookieService;
|
|
790
900
|
readonly authorization: AdminSessionAuthorizationService;
|
|
791
|
-
}) => (
|
|
901
|
+
}) => (handlerRequest: AdminSessionRevokeHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthInternalError | AuthPolicyDeniedError | AuthUnauthenticatedError, never>;
|
|
792
902
|
export declare const makeAdminSessionRevokeAllHandler: (dependencies: {
|
|
793
903
|
readonly sessions: SessionsService;
|
|
794
904
|
readonly sessionCookie: SessionCookieService;
|
|
795
905
|
readonly authorization: AdminSessionAuthorizationService;
|
|
796
|
-
}) => (
|
|
906
|
+
}) => (handlerRequest: AdminSessionRevokeAllHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthInternalError | AuthPolicyDeniedError | AuthUnauthenticatedError, never>;
|
|
907
|
+
export declare const adminPermissionDefinitionHttpBody: (definition: PermissionDefinitionRecord) => {
|
|
908
|
+
id: PermissionId;
|
|
909
|
+
description?: string | undefined;
|
|
910
|
+
scopeType?: string | undefined;
|
|
911
|
+
createdAt: UnixMillis;
|
|
912
|
+
updatedAt: UnixMillis;
|
|
913
|
+
disabledAt?: UnixMillis | undefined;
|
|
914
|
+
deletedAt?: UnixMillis | undefined;
|
|
915
|
+
};
|
|
916
|
+
export declare const adminPermissionDefinitionCreateOperation: (handlerRequest: AdminPermissionDefinitionCreateHandlerRequest) => Effect.Effect<{
|
|
917
|
+
id: PermissionId;
|
|
918
|
+
description?: string | undefined;
|
|
919
|
+
scopeType?: string | undefined;
|
|
920
|
+
createdAt: UnixMillis;
|
|
921
|
+
updatedAt: UnixMillis;
|
|
922
|
+
disabledAt?: UnixMillis | undefined;
|
|
923
|
+
deletedAt?: UnixMillis | undefined;
|
|
924
|
+
}, AuthBadRequestError | AuthConflictError | AuthInternalError | AuthNotFoundError | AuthPolicyDeniedError | AuthUnauthenticatedError, AdminPermissionDefinitionAuthorization | PermissionAdministration | SessionCookie | Sessions>;
|
|
925
|
+
export declare const adminPermissionDefinitionGetOperation: (handlerRequest: AdminPermissionDefinitionGetHandlerRequest) => Effect.Effect<{
|
|
926
|
+
id: PermissionId;
|
|
927
|
+
description?: string | undefined;
|
|
928
|
+
scopeType?: string | undefined;
|
|
929
|
+
createdAt: UnixMillis;
|
|
930
|
+
updatedAt: UnixMillis;
|
|
931
|
+
disabledAt?: UnixMillis | undefined;
|
|
932
|
+
deletedAt?: UnixMillis | undefined;
|
|
933
|
+
}, AuthBadRequestError | AuthConflictError | AuthInternalError | AuthNotFoundError | AuthPolicyDeniedError | AuthUnauthenticatedError, AdminPermissionDefinitionAuthorization | PermissionAdministration | SessionCookie | Sessions>;
|
|
934
|
+
export declare const adminPermissionDefinitionListOperation: (handlerRequest: AdminPermissionDefinitionListHandlerRequest) => Effect.Effect<{
|
|
935
|
+
definitions: {
|
|
936
|
+
id: PermissionId;
|
|
937
|
+
description?: string | undefined;
|
|
938
|
+
scopeType?: string | undefined;
|
|
939
|
+
createdAt: UnixMillis;
|
|
940
|
+
updatedAt: UnixMillis;
|
|
941
|
+
disabledAt?: UnixMillis | undefined;
|
|
942
|
+
deletedAt?: UnixMillis | undefined;
|
|
943
|
+
}[];
|
|
944
|
+
nextAfter?: PermissionId | undefined;
|
|
945
|
+
}, AuthBadRequestError | AuthConflictError | AuthInternalError | AuthNotFoundError | AuthPolicyDeniedError | AuthUnauthenticatedError, AdminPermissionDefinitionAuthorization | PermissionAdministration | SessionCookie | Sessions>;
|
|
946
|
+
export declare const adminPermissionDefinitionUpdateOperation: (handlerRequest: AdminPermissionDefinitionUpdateHandlerRequest) => Effect.Effect<{
|
|
947
|
+
id: PermissionId;
|
|
948
|
+
description?: string | undefined;
|
|
949
|
+
scopeType?: string | undefined;
|
|
950
|
+
createdAt: UnixMillis;
|
|
951
|
+
updatedAt: UnixMillis;
|
|
952
|
+
disabledAt?: UnixMillis | undefined;
|
|
953
|
+
deletedAt?: UnixMillis | undefined;
|
|
954
|
+
}, AuthBadRequestError | AuthConflictError | AuthInternalError | AuthNotFoundError | AuthPolicyDeniedError | AuthUnauthenticatedError, AdminPermissionDefinitionAuthorization | PermissionAdministration | SessionCookie | Sessions>;
|
|
955
|
+
export declare const adminPermissionDefinitionDisableOperation: (handlerRequest: AdminPermissionDefinitionMutationHandlerRequest) => Effect.Effect<{
|
|
956
|
+
id: PermissionId;
|
|
957
|
+
description?: string | undefined;
|
|
958
|
+
scopeType?: string | undefined;
|
|
959
|
+
createdAt: UnixMillis;
|
|
960
|
+
updatedAt: UnixMillis;
|
|
961
|
+
disabledAt?: UnixMillis | undefined;
|
|
962
|
+
deletedAt?: UnixMillis | undefined;
|
|
963
|
+
}, AuthBadRequestError | AuthConflictError | AuthInternalError | AuthNotFoundError | AuthPolicyDeniedError | AuthUnauthenticatedError, AdminPermissionDefinitionAuthorization | PermissionAdministration | SessionCookie | Sessions>;
|
|
964
|
+
export declare const adminPermissionDefinitionEnableOperation: (handlerRequest: AdminPermissionDefinitionMutationHandlerRequest) => Effect.Effect<{
|
|
965
|
+
id: PermissionId;
|
|
966
|
+
description?: string | undefined;
|
|
967
|
+
scopeType?: string | undefined;
|
|
968
|
+
createdAt: UnixMillis;
|
|
969
|
+
updatedAt: UnixMillis;
|
|
970
|
+
disabledAt?: UnixMillis | undefined;
|
|
971
|
+
deletedAt?: UnixMillis | undefined;
|
|
972
|
+
}, AuthBadRequestError | AuthConflictError | AuthInternalError | AuthNotFoundError | AuthPolicyDeniedError | AuthUnauthenticatedError, AdminPermissionDefinitionAuthorization | PermissionAdministration | SessionCookie | Sessions>;
|
|
973
|
+
export declare const adminPermissionDefinitionDeleteOperation: (handlerRequest: AdminPermissionDefinitionMutationHandlerRequest) => Effect.Effect<{
|
|
974
|
+
id: PermissionId;
|
|
975
|
+
description?: string | undefined;
|
|
976
|
+
scopeType?: string | undefined;
|
|
977
|
+
createdAt: UnixMillis;
|
|
978
|
+
updatedAt: UnixMillis;
|
|
979
|
+
disabledAt?: UnixMillis | undefined;
|
|
980
|
+
deletedAt?: UnixMillis | undefined;
|
|
981
|
+
}, AuthBadRequestError | AuthConflictError | AuthInternalError | AuthNotFoundError | AuthPolicyDeniedError | AuthUnauthenticatedError, AdminPermissionDefinitionAuthorization | PermissionAdministration | SessionCookie | Sessions>;
|
|
797
982
|
export declare const makeLoginNotificationReportHandler: (dependencies: {
|
|
798
983
|
readonly loginNotification?: LoginNotificationService;
|
|
799
984
|
}) => (args_0: LoginNotificationReportHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthBadRequestError | AuthInternalError | AuthPolicyDeniedError, never>;
|
|
800
985
|
export declare const securityTimelineEventHttpBody: (event: SecurityTimelineEvent) => {
|
|
801
986
|
eventId: import("../SecurityTimeline.js").SecurityTimelineEventId;
|
|
802
|
-
type: "auth.api_key.created" | "auth.api_key.revoked" | "auth.api_key.verification_failed" | "auth.api_key.verified" | "auth.incident_action.executed" | "auth.jwt.introspected" | "auth.jwt.revoked" | "auth.login.failed" | "auth.login.succeeded" | "auth.oauth.account.linked" | "auth.oauth.account.unlinked" | "auth.oauth.link_confirmation.confirmed" | "auth.oauth.link_confirmation.started" | "auth.oauth.provider_token.refreshed" | "auth.oauth.provider_token.revoked" | "auth.passkey.credential.revoked" | "auth.policy.denied" | "auth.recovery_code.generated" | "auth.recovery_code.revoked" | "auth.recovery_code.verified" | "auth.refresh_token.issued" | "auth.refresh_token.reuse_detected" | "auth.refresh_token.revoked" | "auth.refresh_token.rotated" | "auth.risk.assessed" | "auth.session.revoked" | "auth.totp.enrollment.started" | "auth.totp.factor.confirmed" | "auth.totp.factor.revoked" | "auth.totp.factor.verified";
|
|
987
|
+
type: "auth.api_key.created" | "auth.api_key.revoked" | "auth.api_key.verification_failed" | "auth.api_key.verified" | "auth.identity.added" | "auth.identity.primary_changed" | "auth.identity.replaced" | "auth.identity.revoked" | "auth.incident_action.executed" | "auth.jwt.introspected" | "auth.jwt.revoked" | "auth.login.failed" | "auth.login.succeeded" | "auth.oauth.account.linked" | "auth.oauth.account.unlinked" | "auth.oauth.link_confirmation.confirmed" | "auth.oauth.link_confirmation.started" | "auth.oauth.provider_token.refreshed" | "auth.oauth.provider_token.revoked" | "auth.passkey.credential.revoked" | "auth.permission.granted" | "auth.permission.revoked" | "auth.permission_definition.created" | "auth.permission_definition.deleted" | "auth.permission_definition.disabled" | "auth.permission_definition.enabled" | "auth.permission_definition.updated" | "auth.policy.denied" | "auth.recovery_code.generated" | "auth.recovery_code.revoked" | "auth.recovery_code.verified" | "auth.refresh_token.issued" | "auth.refresh_token.reuse_detected" | "auth.refresh_token.revoked" | "auth.refresh_token.rotated" | "auth.risk.assessed" | "auth.role.granted" | "auth.role.revoked" | "auth.role_definition.created" | "auth.role_definition.deleted" | "auth.role_definition.disabled" | "auth.role_definition.enabled" | "auth.role_definition.updated" | "auth.role_permission.assigned" | "auth.role_permission.removed" | "auth.session.assurance_changed" | "auth.session.primary_reauthenticated" | "auth.session.recovery_remediation.completed" | "auth.session.recovery_remediation.entered" | "auth.session.revoked" | "auth.session.step_up_completed" | "auth.totp.enrollment.started" | "auth.totp.factor.confirmed" | "auth.totp.factor.revoked" | "auth.totp.factor.verified";
|
|
803
988
|
category: import("../SecurityTimeline.js").SecurityTimelineEventCategory;
|
|
804
989
|
severity: import("../SecurityTimeline.js").SecurityTimelineEventSeverity;
|
|
805
990
|
occurredAt: UnixMillis;
|
|
@@ -820,10 +1005,10 @@ export declare const makeSecurityTimelineListHandler: (dependencies: {
|
|
|
820
1005
|
readonly sessions: SessionsService;
|
|
821
1006
|
readonly sessionCookie: SessionCookieService;
|
|
822
1007
|
readonly securityTimeline: SecurityTimelineStoreService;
|
|
823
|
-
}) => (
|
|
1008
|
+
}) => (handlerRequest: SecurityTimelineListHandlerRequest) => Effect.Effect<{
|
|
824
1009
|
events: {
|
|
825
1010
|
eventId: import("../SecurityTimeline.js").SecurityTimelineEventId;
|
|
826
|
-
type: "auth.api_key.created" | "auth.api_key.revoked" | "auth.api_key.verification_failed" | "auth.api_key.verified" | "auth.incident_action.executed" | "auth.jwt.introspected" | "auth.jwt.revoked" | "auth.login.failed" | "auth.login.succeeded" | "auth.oauth.account.linked" | "auth.oauth.account.unlinked" | "auth.oauth.link_confirmation.confirmed" | "auth.oauth.link_confirmation.started" | "auth.oauth.provider_token.refreshed" | "auth.oauth.provider_token.revoked" | "auth.passkey.credential.revoked" | "auth.policy.denied" | "auth.recovery_code.generated" | "auth.recovery_code.revoked" | "auth.recovery_code.verified" | "auth.refresh_token.issued" | "auth.refresh_token.reuse_detected" | "auth.refresh_token.revoked" | "auth.refresh_token.rotated" | "auth.risk.assessed" | "auth.session.revoked" | "auth.totp.enrollment.started" | "auth.totp.factor.confirmed" | "auth.totp.factor.revoked" | "auth.totp.factor.verified";
|
|
1011
|
+
type: "auth.api_key.created" | "auth.api_key.revoked" | "auth.api_key.verification_failed" | "auth.api_key.verified" | "auth.identity.added" | "auth.identity.primary_changed" | "auth.identity.replaced" | "auth.identity.revoked" | "auth.incident_action.executed" | "auth.jwt.introspected" | "auth.jwt.revoked" | "auth.login.failed" | "auth.login.succeeded" | "auth.oauth.account.linked" | "auth.oauth.account.unlinked" | "auth.oauth.link_confirmation.confirmed" | "auth.oauth.link_confirmation.started" | "auth.oauth.provider_token.refreshed" | "auth.oauth.provider_token.revoked" | "auth.passkey.credential.revoked" | "auth.permission.granted" | "auth.permission.revoked" | "auth.permission_definition.created" | "auth.permission_definition.deleted" | "auth.permission_definition.disabled" | "auth.permission_definition.enabled" | "auth.permission_definition.updated" | "auth.policy.denied" | "auth.recovery_code.generated" | "auth.recovery_code.revoked" | "auth.recovery_code.verified" | "auth.refresh_token.issued" | "auth.refresh_token.reuse_detected" | "auth.refresh_token.revoked" | "auth.refresh_token.rotated" | "auth.risk.assessed" | "auth.role.granted" | "auth.role.revoked" | "auth.role_definition.created" | "auth.role_definition.deleted" | "auth.role_definition.disabled" | "auth.role_definition.enabled" | "auth.role_definition.updated" | "auth.role_permission.assigned" | "auth.role_permission.removed" | "auth.session.assurance_changed" | "auth.session.primary_reauthenticated" | "auth.session.recovery_remediation.completed" | "auth.session.recovery_remediation.entered" | "auth.session.revoked" | "auth.session.step_up_completed" | "auth.totp.enrollment.started" | "auth.totp.factor.confirmed" | "auth.totp.factor.revoked" | "auth.totp.factor.verified";
|
|
827
1012
|
category: import("../SecurityTimeline.js").SecurityTimelineEventCategory;
|
|
828
1013
|
severity: import("../SecurityTimeline.js").SecurityTimelineEventSeverity;
|
|
829
1014
|
occurredAt: UnixMillis;
|
|
@@ -846,10 +1031,10 @@ export declare const makeAdminSecurityTimelineListHandler: (dependencies: {
|
|
|
846
1031
|
readonly sessionCookie: SessionCookieService;
|
|
847
1032
|
readonly securityTimeline: SecurityTimelineStoreService;
|
|
848
1033
|
readonly authorization: AdminSecurityTimelineAuthorizationService;
|
|
849
|
-
}) => (
|
|
1034
|
+
}) => (handlerRequest: AdminSecurityTimelineListHandlerRequest) => Effect.Effect<{
|
|
850
1035
|
events: {
|
|
851
1036
|
eventId: import("../SecurityTimeline.js").SecurityTimelineEventId;
|
|
852
|
-
type: "auth.api_key.created" | "auth.api_key.revoked" | "auth.api_key.verification_failed" | "auth.api_key.verified" | "auth.incident_action.executed" | "auth.jwt.introspected" | "auth.jwt.revoked" | "auth.login.failed" | "auth.login.succeeded" | "auth.oauth.account.linked" | "auth.oauth.account.unlinked" | "auth.oauth.link_confirmation.confirmed" | "auth.oauth.link_confirmation.started" | "auth.oauth.provider_token.refreshed" | "auth.oauth.provider_token.revoked" | "auth.passkey.credential.revoked" | "auth.policy.denied" | "auth.recovery_code.generated" | "auth.recovery_code.revoked" | "auth.recovery_code.verified" | "auth.refresh_token.issued" | "auth.refresh_token.reuse_detected" | "auth.refresh_token.revoked" | "auth.refresh_token.rotated" | "auth.risk.assessed" | "auth.session.revoked" | "auth.totp.enrollment.started" | "auth.totp.factor.confirmed" | "auth.totp.factor.revoked" | "auth.totp.factor.verified";
|
|
1037
|
+
type: "auth.api_key.created" | "auth.api_key.revoked" | "auth.api_key.verification_failed" | "auth.api_key.verified" | "auth.identity.added" | "auth.identity.primary_changed" | "auth.identity.replaced" | "auth.identity.revoked" | "auth.incident_action.executed" | "auth.jwt.introspected" | "auth.jwt.revoked" | "auth.login.failed" | "auth.login.succeeded" | "auth.oauth.account.linked" | "auth.oauth.account.unlinked" | "auth.oauth.link_confirmation.confirmed" | "auth.oauth.link_confirmation.started" | "auth.oauth.provider_token.refreshed" | "auth.oauth.provider_token.revoked" | "auth.passkey.credential.revoked" | "auth.permission.granted" | "auth.permission.revoked" | "auth.permission_definition.created" | "auth.permission_definition.deleted" | "auth.permission_definition.disabled" | "auth.permission_definition.enabled" | "auth.permission_definition.updated" | "auth.policy.denied" | "auth.recovery_code.generated" | "auth.recovery_code.revoked" | "auth.recovery_code.verified" | "auth.refresh_token.issued" | "auth.refresh_token.reuse_detected" | "auth.refresh_token.revoked" | "auth.refresh_token.rotated" | "auth.risk.assessed" | "auth.role.granted" | "auth.role.revoked" | "auth.role_definition.created" | "auth.role_definition.deleted" | "auth.role_definition.disabled" | "auth.role_definition.enabled" | "auth.role_definition.updated" | "auth.role_permission.assigned" | "auth.role_permission.removed" | "auth.session.assurance_changed" | "auth.session.primary_reauthenticated" | "auth.session.recovery_remediation.completed" | "auth.session.recovery_remediation.entered" | "auth.session.revoked" | "auth.session.step_up_completed" | "auth.totp.enrollment.started" | "auth.totp.factor.confirmed" | "auth.totp.factor.revoked" | "auth.totp.factor.verified";
|
|
853
1038
|
category: import("../SecurityTimeline.js").SecurityTimelineEventCategory;
|
|
854
1039
|
severity: import("../SecurityTimeline.js").SecurityTimelineEventSeverity;
|
|
855
1040
|
occurredAt: UnixMillis;
|
|
@@ -878,7 +1063,7 @@ export declare const makeTrustedDeviceListHandler: (dependencies: {
|
|
|
878
1063
|
readonly sessions: SessionsService;
|
|
879
1064
|
readonly sessionCookie: SessionCookieService;
|
|
880
1065
|
readonly trustedDevices: TrustedDeviceStoreService;
|
|
881
|
-
}) => (
|
|
1066
|
+
}) => (handlerRequest: TrustedDeviceListHandlerRequest) => Effect.Effect<{
|
|
882
1067
|
devices: {
|
|
883
1068
|
deviceId: string;
|
|
884
1069
|
createdAt: UnixMillis;
|
|
@@ -891,13 +1076,13 @@ export declare const makeTrustedDeviceRevokeHandler: (dependencies: {
|
|
|
891
1076
|
readonly sessions: SessionsService;
|
|
892
1077
|
readonly sessionCookie: SessionCookieService;
|
|
893
1078
|
readonly trustedDevices: TrustedDeviceStoreService;
|
|
894
|
-
}) => (
|
|
1079
|
+
}) => (handlerRequest: TrustedDeviceRevokeHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthInternalError | AuthUnauthenticatedError, never>;
|
|
895
1080
|
export declare const makeAdminTrustedDeviceListHandler: (dependencies: {
|
|
896
1081
|
readonly sessions: SessionsService;
|
|
897
1082
|
readonly sessionCookie: SessionCookieService;
|
|
898
1083
|
readonly trustedDevices: TrustedDeviceStoreService;
|
|
899
1084
|
readonly authorization: AdminTrustedDeviceAuthorizationService;
|
|
900
|
-
}) => (
|
|
1085
|
+
}) => (handlerRequest: AdminTrustedDeviceListHandlerRequest) => Effect.Effect<{
|
|
901
1086
|
devices: {
|
|
902
1087
|
deviceId: string;
|
|
903
1088
|
createdAt: UnixMillis;
|
|
@@ -911,11 +1096,10 @@ export declare const makeAdminTrustedDeviceRevokeHandler: (dependencies: {
|
|
|
911
1096
|
readonly sessionCookie: SessionCookieService;
|
|
912
1097
|
readonly trustedDevices: TrustedDeviceStoreService;
|
|
913
1098
|
readonly authorization: AdminTrustedDeviceAuthorizationService;
|
|
914
|
-
}) => (
|
|
1099
|
+
}) => (handlerRequest: AdminTrustedDeviceRevokeHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthInternalError | AuthPolicyDeniedError | AuthUnauthenticatedError, never>;
|
|
915
1100
|
export declare const makeEmailVerificationStartHandler: (dependencies: {
|
|
916
1101
|
readonly emailVerificationFlow: EmailVerificationFlowService;
|
|
917
|
-
|
|
918
|
-
}) => (args_0: EmailVerificationStartHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthBadRequestError | AuthInternalError | AuthRateLimitedError, never>;
|
|
1102
|
+
}) => (handlerRequest: EmailVerificationStartGuardRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthBadRequestError | AuthInternalError | import("./Errors.js").AuthRateLimitedError | import("./Errors.js").AuthRequestRejectedError, AuthRateLimit | IdentityStore>;
|
|
919
1103
|
export declare const makeEmailVerificationVerifyHandler: (dependencies: {
|
|
920
1104
|
readonly emailVerification: EmailVerificationService;
|
|
921
1105
|
readonly sessions: SessionsService;
|
|
@@ -923,25 +1107,64 @@ export declare const makeEmailVerificationVerifyHandler: (dependencies: {
|
|
|
923
1107
|
}) => (args_0: EmailVerificationVerifyHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthBadRequestError | AuthInternalError, never>;
|
|
924
1108
|
export declare const makeEmailOtpStartHandler: (dependencies: {
|
|
925
1109
|
readonly emailOtp: EmailOtpLoginService;
|
|
926
|
-
|
|
927
|
-
|
|
1110
|
+
}) => (handlerRequest: EmailOtpStartGuardRequest) => Effect.Effect<{
|
|
1111
|
+
challengeId: ChallengeId;
|
|
1112
|
+
identity: Schema.Struct.ReadonlySide<{
|
|
1113
|
+
readonly scope: Schema.Union<readonly [Schema.Struct<{
|
|
1114
|
+
readonly type: Schema.Literal<"global">;
|
|
1115
|
+
}>, Schema.Struct<{
|
|
1116
|
+
readonly type: Schema.Literal<"tenant">;
|
|
1117
|
+
readonly tenantId: Schema.String;
|
|
1118
|
+
}>]>;
|
|
1119
|
+
readonly kind: Schema.String;
|
|
1120
|
+
readonly value: Schema.String;
|
|
1121
|
+
}, "Type">;
|
|
1122
|
+
expiresAt: UnixMillis;
|
|
1123
|
+
}, AuthInternalError | import("./Errors.js").AuthRateLimitedError | import("./Errors.js").AuthRequestRejectedError, AuthRateLimit>;
|
|
928
1124
|
export declare const makeEmailOtpVerifyHandler: (dependencies: {
|
|
929
1125
|
readonly emailOtp: EmailOtpLoginService;
|
|
930
1126
|
readonly authHttp: AuthHttpService;
|
|
931
|
-
|
|
932
|
-
|
|
1127
|
+
}) => (handlerRequest: EmailOtpVerifyGuardRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, import("./Errors.js").AuthRateLimitedError | import("./Errors.js").AuthRequestRejectedError | import("./Transport.js").PasswordSignInHttpError, AuthRateLimit>;
|
|
1128
|
+
export declare const makeEmailAuthStartHandler: (dependencies: {
|
|
1129
|
+
readonly emailAuth: EmailAuthService;
|
|
1130
|
+
}) => (handlerRequest: EmailAuthStartGuardRequest) => Effect.Effect<{
|
|
1131
|
+
identity: Schema.Struct.ReadonlySide<{
|
|
1132
|
+
readonly scope: Schema.Union<readonly [Schema.Struct<{
|
|
1133
|
+
readonly type: Schema.Literal<"global">;
|
|
1134
|
+
}>, Schema.Struct<{
|
|
1135
|
+
readonly type: Schema.Literal<"tenant">;
|
|
1136
|
+
readonly tenantId: Schema.String;
|
|
1137
|
+
}>]>;
|
|
1138
|
+
readonly kind: Schema.String;
|
|
1139
|
+
readonly value: Schema.String;
|
|
1140
|
+
}, "Type">;
|
|
1141
|
+
emailOtp: {
|
|
1142
|
+
challengeId: ChallengeId;
|
|
1143
|
+
expiresAt: UnixMillis;
|
|
1144
|
+
};
|
|
1145
|
+
magicLink: {
|
|
1146
|
+
expiresAt: UnixMillis;
|
|
1147
|
+
};
|
|
1148
|
+
}, AuthInternalError | import("./Errors.js").AuthRateLimitedError | import("./Errors.js").AuthRequestRejectedError, AuthRateLimit>;
|
|
933
1149
|
export declare const makeMagicLinkStartHandler: (dependencies: {
|
|
934
1150
|
readonly magicLink: MagicLinkLoginService;
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
1151
|
+
}) => (handlerRequest: MagicLinkStartGuardRequest) => Effect.Effect<{
|
|
1152
|
+
identity: Schema.Struct.ReadonlySide<{
|
|
1153
|
+
readonly scope: Schema.Union<readonly [Schema.Struct<{
|
|
1154
|
+
readonly type: Schema.Literal<"global">;
|
|
1155
|
+
}>, Schema.Struct<{
|
|
1156
|
+
readonly type: Schema.Literal<"tenant">;
|
|
1157
|
+
readonly tenantId: Schema.String;
|
|
1158
|
+
}>]>;
|
|
1159
|
+
readonly kind: Schema.String;
|
|
1160
|
+
readonly value: Schema.String;
|
|
1161
|
+
}, "Type">;
|
|
938
1162
|
expiresAt: UnixMillis;
|
|
939
|
-
}, AuthInternalError | AuthRateLimitedError,
|
|
1163
|
+
}, AuthInternalError | import("./Errors.js").AuthRateLimitedError | import("./Errors.js").AuthRequestRejectedError, AuthRateLimit>;
|
|
940
1164
|
export declare const makeMagicLinkVerifyHandler: (dependencies: {
|
|
941
1165
|
readonly magicLink: MagicLinkLoginService;
|
|
942
1166
|
readonly authHttp: AuthHttpService;
|
|
943
|
-
|
|
944
|
-
}) => (args_0: MagicLinkVerifyHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, import("./Transport.js").PasswordSignInHttpError, never>;
|
|
1167
|
+
}) => (handlerRequest: MagicLinkVerifyGuardRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, import("./Errors.js").AuthRateLimitedError | import("./Errors.js").AuthRequestRejectedError | import("./Transport.js").PasswordSignInHttpError, AuthRateLimit>;
|
|
945
1168
|
export declare const makeOAuthAuthorizationStartHandler: (dependencies: {
|
|
946
1169
|
readonly oauthProviders: OAuthProvidersService;
|
|
947
1170
|
readonly oauthState: OAuthStateService;
|
|
@@ -949,7 +1172,7 @@ export declare const makeOAuthAuthorizationStartHandler: (dependencies: {
|
|
|
949
1172
|
providerId: OAuthProviderId;
|
|
950
1173
|
authorizationUrl: string;
|
|
951
1174
|
state: import("../OAuth.js").OAuthStateToken;
|
|
952
|
-
challengeId:
|
|
1175
|
+
challengeId: ChallengeId;
|
|
953
1176
|
expiresAt: UnixMillis;
|
|
954
1177
|
codeChallenge: import("../OAuth.js").OAuthCodeChallenge;
|
|
955
1178
|
codeChallengeMethod: "S256";
|
|
@@ -960,11 +1183,9 @@ export declare const makeOAuthAuthorizationStartHandler: (dependencies: {
|
|
|
960
1183
|
export declare const makeOAuthProviderAuthorizationHandler: (dependencies: {
|
|
961
1184
|
readonly authorization: OAuthProviderAuthorizationService;
|
|
962
1185
|
}) => (args_0: OAuthProviderAuthorizationHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthInternalError | OAuthAuthorizationEndpointError, never>;
|
|
963
|
-
export declare const
|
|
964
|
-
readonly
|
|
965
|
-
|
|
966
|
-
readonly clientCredentialsGrant?: OAuthClientCredentialsGrantService;
|
|
967
|
-
} & OAuthAuthorizationCodeTokenHttpOptions) => (args_0: OAuthTokenHandlerRequest) => Effect.Effect<{
|
|
1186
|
+
export declare const makeOAuthTokenHandler: (dependencies: {
|
|
1187
|
+
readonly registry: OAuthTokenGrantRegistryService;
|
|
1188
|
+
} & OAuthTokenHttpOptions) => (args_0: OAuthTokenHandlerRequest) => Effect.Effect<{
|
|
968
1189
|
readonly access_token: string;
|
|
969
1190
|
readonly token_type: string;
|
|
970
1191
|
readonly expires_in?: number | undefined;
|
|
@@ -1001,7 +1222,7 @@ export declare const makeOAuthAccountUnlinkHandler: (dependencies: {
|
|
|
1001
1222
|
readonly oauthAccountUnlinking: OAuthAccountUnlinkingService;
|
|
1002
1223
|
readonly sessions: SessionsService;
|
|
1003
1224
|
readonly sessionCookie: SessionCookieService;
|
|
1004
|
-
} & OAuthAccountUnlinkHttpOptions) => (
|
|
1225
|
+
} & OAuthAccountUnlinkHttpOptions) => (handlerRequest: OAuthAccountUnlinkHandlerRequest) => Effect.Effect<Schema.Struct.ReadonlySide<{
|
|
1005
1226
|
readonly type: Schema.Literal<"allow">;
|
|
1006
1227
|
readonly reason: Schema.Literal<"owned-account">;
|
|
1007
1228
|
readonly account: Schema.Struct<{
|
|
@@ -1096,26 +1317,111 @@ export declare const makeOAuthLinkConfirmationConfirmHandler: (dependencies: {
|
|
|
1096
1317
|
}, AuthBadRequestError | AuthInternalError | AuthUnauthenticatedError, never>;
|
|
1097
1318
|
export declare const makePasskeyRegistrationStartHandler: (dependencies: {
|
|
1098
1319
|
readonly passkeyOptions: PasskeyOptionsService;
|
|
1099
|
-
|
|
1320
|
+
readonly sessions: SessionsService;
|
|
1321
|
+
readonly sessionCookie: SessionCookieService;
|
|
1322
|
+
readonly resolveUser: PasskeyRegistrationUserResolver;
|
|
1323
|
+
} & PasskeyRegistrationStartHttpOptions) => (handlerRequest: PasskeyRegistrationStartHandlerRequest) => Effect.Effect<import("../Passkey.js").StartedPasskeyRegistration, AuthBadRequestError | AuthInternalError | import("./Errors.js").AuthRateLimitedError | AuthUnauthenticatedError, AuthRateLimit>;
|
|
1100
1324
|
export declare const makePasskeyRegistrationFinishHandler: (dependencies: {
|
|
1101
1325
|
readonly passkeyVerification: PasskeyVerificationService;
|
|
1102
|
-
|
|
1326
|
+
readonly sessions: SessionsService;
|
|
1327
|
+
readonly sessionCookie: SessionCookieService;
|
|
1328
|
+
readonly resolveUser: PasskeyRegistrationUserResolver;
|
|
1329
|
+
} & PasskeyFinishHttpOptions) => (handlerRequest: PasskeyRegistrationFinishHandlerRequest) => Effect.Effect<{
|
|
1103
1330
|
credentialId: PasskeyCredentialId;
|
|
1104
|
-
}, AuthBadRequestError | AuthInternalError,
|
|
1331
|
+
}, AuthBadRequestError | AuthInternalError | import("./Errors.js").AuthRateLimitedError | AuthUnauthenticatedError, AuthRateLimit>;
|
|
1105
1332
|
export declare const makePasskeyAuthenticationStartHandler: (dependencies: {
|
|
1106
1333
|
readonly passkeyOptions: PasskeyOptionsService;
|
|
1107
|
-
} & PasskeyAuthenticationStartHttpOptions) => (
|
|
1334
|
+
} & PasskeyAuthenticationStartHttpOptions) => (handlerRequest: PasskeyAuthenticationStartHandlerRequest) => Effect.Effect<import("../Passkey.js").StartedPasskeyAuthentication, AuthInternalError | import("./Errors.js").AuthRateLimitedError, AuthRateLimit>;
|
|
1108
1335
|
export declare const makePasskeyAuthenticationFinishHandler: (dependencies: {
|
|
1109
1336
|
readonly passkeyVerification: PasskeyVerificationService;
|
|
1110
1337
|
readonly sessions: SessionsService;
|
|
1111
1338
|
readonly authHttp: AuthHttpService;
|
|
1112
1339
|
readonly makeSessionInput: (context: PasskeyAuthenticationSessionContext) => SessionCreateInput;
|
|
1113
|
-
} & PasskeyFinishHttpOptions) => (
|
|
1340
|
+
} & PasskeyFinishHttpOptions) => (handlerRequest: PasskeyAuthenticationFinishHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthBadRequestError | AuthInternalError | import("./Errors.js").AuthRateLimitedError, AuthRateLimit>;
|
|
1341
|
+
type IdentityHandlerDependencies = {
|
|
1342
|
+
readonly identityManagement: IdentityManagementService;
|
|
1343
|
+
readonly sessions: SessionsService;
|
|
1344
|
+
readonly sessionCookie: SessionCookieService;
|
|
1345
|
+
};
|
|
1346
|
+
export declare const makeIdentityAvailabilityHandler: (dependencies: IdentityHandlerDependencies) => (handlerRequest: IdentityAvailabilityGuardRequest) => Effect.Effect<{
|
|
1347
|
+
available: boolean;
|
|
1348
|
+
}, AuthBadRequestError | AuthIdentityAlreadyRegisteredError | AuthInternalError | AuthPolicyDeniedError | import("./Errors.js").AuthRateLimitedError | import("./Errors.js").AuthRequestRejectedError | AuthUnauthenticatedError, AuthRateLimit | SessionCookie | Sessions>;
|
|
1349
|
+
export declare const makeIdentityListHandler: (dependencies: IdentityHandlerDependencies) => (handlerRequest: {
|
|
1350
|
+
readonly request: HttpServerRequest.HttpServerRequest;
|
|
1351
|
+
}) => Effect.Effect<{
|
|
1352
|
+
identities: {
|
|
1353
|
+
id: import("../Identifiers.js").IdentityId;
|
|
1354
|
+
scope: import("../Identity.js").IdentityScope;
|
|
1355
|
+
kind: import("../Identity.js").IdentityKind;
|
|
1356
|
+
value: string;
|
|
1357
|
+
verified: boolean;
|
|
1358
|
+
loginEligible: boolean;
|
|
1359
|
+
isPrimaryLogin: boolean;
|
|
1360
|
+
createdAt: UnixMillis;
|
|
1361
|
+
updatedAt: UnixMillis;
|
|
1362
|
+
}[];
|
|
1363
|
+
}, AuthBadRequestError | AuthIdentityAlreadyRegisteredError | AuthInternalError | AuthPolicyDeniedError | import("./Errors.js").AuthRateLimitedError | AuthUnauthenticatedError, AuthRateLimit>;
|
|
1364
|
+
export declare const makeIdentityAddHandler: (dependencies: IdentityHandlerDependencies) => (request: {
|
|
1365
|
+
readonly payload: Schema.Schema.Type<typeof IdentityAddBody>;
|
|
1366
|
+
readonly request: HttpServerRequest.HttpServerRequest;
|
|
1367
|
+
}) => Effect.Effect<{
|
|
1368
|
+
id: import("../Identifiers.js").IdentityId;
|
|
1369
|
+
scope: import("../Identity.js").IdentityScope;
|
|
1370
|
+
kind: import("../Identity.js").IdentityKind;
|
|
1371
|
+
value: string;
|
|
1372
|
+
verified: boolean;
|
|
1373
|
+
loginEligible: boolean;
|
|
1374
|
+
isPrimaryLogin: boolean;
|
|
1375
|
+
createdAt: UnixMillis;
|
|
1376
|
+
updatedAt: UnixMillis;
|
|
1377
|
+
}, AuthBadRequestError | AuthIdentityAlreadyRegisteredError | AuthInternalError | AuthPolicyDeniedError | import("./Errors.js").AuthRateLimitedError | AuthUnauthenticatedError, AuthRateLimit>;
|
|
1378
|
+
export declare const makeIdentityReplaceHandler: (dependencies: IdentityHandlerDependencies) => (request: {
|
|
1379
|
+
readonly payload: Schema.Schema.Type<typeof IdentityReplaceBody>;
|
|
1380
|
+
readonly request: HttpServerRequest.HttpServerRequest;
|
|
1381
|
+
}) => Effect.Effect<{
|
|
1382
|
+
id: import("../Identifiers.js").IdentityId;
|
|
1383
|
+
scope: import("../Identity.js").IdentityScope;
|
|
1384
|
+
kind: import("../Identity.js").IdentityKind;
|
|
1385
|
+
value: string;
|
|
1386
|
+
verified: boolean;
|
|
1387
|
+
loginEligible: boolean;
|
|
1388
|
+
isPrimaryLogin: boolean;
|
|
1389
|
+
createdAt: UnixMillis;
|
|
1390
|
+
updatedAt: UnixMillis;
|
|
1391
|
+
}, AuthBadRequestError | AuthIdentityAlreadyRegisteredError | AuthInternalError | AuthPolicyDeniedError | import("./Errors.js").AuthRateLimitedError | AuthUnauthenticatedError, AuthRateLimit>;
|
|
1392
|
+
export declare const makeIdentityRevokeHandler: (dependencies: IdentityHandlerDependencies) => (request: {
|
|
1393
|
+
readonly payload: Schema.Schema.Type<typeof IdentityRevokeBody>;
|
|
1394
|
+
readonly request: HttpServerRequest.HttpServerRequest;
|
|
1395
|
+
}) => Effect.Effect<{
|
|
1396
|
+
id: import("../Identifiers.js").IdentityId;
|
|
1397
|
+
scope: import("../Identity.js").IdentityScope;
|
|
1398
|
+
kind: import("../Identity.js").IdentityKind;
|
|
1399
|
+
value: string;
|
|
1400
|
+
verified: boolean;
|
|
1401
|
+
loginEligible: boolean;
|
|
1402
|
+
isPrimaryLogin: boolean;
|
|
1403
|
+
createdAt: UnixMillis;
|
|
1404
|
+
updatedAt: UnixMillis;
|
|
1405
|
+
}, AuthBadRequestError | AuthIdentityAlreadyRegisteredError | AuthInternalError | AuthPolicyDeniedError | import("./Errors.js").AuthRateLimitedError | AuthUnauthenticatedError, AuthRateLimit>;
|
|
1406
|
+
export declare const makeIdentityPrimaryHandler: (dependencies: IdentityHandlerDependencies) => (request: {
|
|
1407
|
+
readonly payload: Schema.Schema.Type<typeof IdentityPrimaryBody>;
|
|
1408
|
+
readonly request: HttpServerRequest.HttpServerRequest;
|
|
1409
|
+
}) => Effect.Effect<{
|
|
1410
|
+
id: import("../Identifiers.js").IdentityId;
|
|
1411
|
+
scope: import("../Identity.js").IdentityScope;
|
|
1412
|
+
kind: import("../Identity.js").IdentityKind;
|
|
1413
|
+
value: string;
|
|
1414
|
+
verified: boolean;
|
|
1415
|
+
loginEligible: boolean;
|
|
1416
|
+
isPrimaryLogin: boolean;
|
|
1417
|
+
createdAt: UnixMillis;
|
|
1418
|
+
updatedAt: UnixMillis;
|
|
1419
|
+
}, AuthBadRequestError | AuthIdentityAlreadyRegisteredError | AuthInternalError | AuthPolicyDeniedError | import("./Errors.js").AuthRateLimitedError | AuthUnauthenticatedError, AuthRateLimit>;
|
|
1114
1420
|
export declare const makePasskeyCredentialListHandler: (dependencies: {
|
|
1115
1421
|
readonly passkeyCredentialManagement: PasskeyCredentialManagementService;
|
|
1116
1422
|
readonly sessions: SessionsService;
|
|
1117
1423
|
readonly sessionCookie: SessionCookieService;
|
|
1118
|
-
}) => (
|
|
1424
|
+
}) => (handlerRequest: PasskeyCredentialListHandlerRequest) => Effect.Effect<{
|
|
1119
1425
|
credentials: {
|
|
1120
1426
|
credentialId: PasskeyCredentialId;
|
|
1121
1427
|
transports?: readonly import("../Passkey.js").PasskeyTransport[] | undefined;
|
|
@@ -1125,19 +1431,20 @@ export declare const makePasskeyCredentialListHandler: (dependencies: {
|
|
|
1125
1431
|
revokedAt?: UnixMillis | undefined;
|
|
1126
1432
|
metadata?: Readonly<Record<string, unknown>> | undefined;
|
|
1127
1433
|
}[];
|
|
1128
|
-
}, AuthInternalError | AuthUnauthenticatedError,
|
|
1434
|
+
}, AuthInternalError | import("./Errors.js").AuthRateLimitedError | AuthUnauthenticatedError, AuthRateLimit>;
|
|
1129
1435
|
export declare const makePasskeyCredentialRevokeHandler: (dependencies: {
|
|
1130
1436
|
readonly passkeyCredentialManagement: PasskeyCredentialManagementService;
|
|
1131
1437
|
readonly sessions: SessionsService;
|
|
1132
1438
|
readonly sessionCookie: SessionCookieService;
|
|
1133
|
-
|
|
1439
|
+
readonly strongFactorRemovalPolicy?: StrongFactorRemovalPolicyService;
|
|
1440
|
+
}) => (handlerRequest: PasskeyCredentialRevokeHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthBadRequestError | AuthInternalError | AuthPolicyDeniedError | import("./Errors.js").AuthRateLimitedError | AuthUnauthenticatedError, AuthRateLimit>;
|
|
1134
1441
|
export declare const makeTotpEnrollmentStartHandler: (dependencies: {
|
|
1135
1442
|
readonly totpFactorManagement: TotpFactorManagementService;
|
|
1136
1443
|
readonly sessions: SessionsService;
|
|
1137
1444
|
readonly sessionCookie: SessionCookieService;
|
|
1138
|
-
} & TotpEnrollmentStartHttpOptions) => (
|
|
1445
|
+
} & TotpEnrollmentStartHttpOptions) => (handlerRequest: TotpEnrollmentStartHandlerRequest) => Effect.Effect<{
|
|
1139
1446
|
factor: {
|
|
1140
|
-
factorId:
|
|
1447
|
+
factorId: CredentialId;
|
|
1141
1448
|
algorithm: TotpAlgorithm;
|
|
1142
1449
|
digits: number;
|
|
1143
1450
|
period: number;
|
|
@@ -1149,13 +1456,13 @@ export declare const makeTotpEnrollmentStartHandler: (dependencies: {
|
|
|
1149
1456
|
};
|
|
1150
1457
|
secret: import("../Totp.js").TotpSecret;
|
|
1151
1458
|
uri: string;
|
|
1152
|
-
}, AuthBadRequestError | AuthInternalError | AuthUnauthenticatedError,
|
|
1459
|
+
}, AuthBadRequestError | AuthInternalError | import("./Errors.js").AuthRateLimitedError | AuthUnauthenticatedError, AuthRateLimit>;
|
|
1153
1460
|
export declare const makeTotpEnrollmentConfirmHandler: (dependencies: {
|
|
1154
1461
|
readonly totpFactorManagement: TotpFactorManagementService;
|
|
1155
1462
|
readonly sessions: SessionsService;
|
|
1156
1463
|
readonly sessionCookie: SessionCookieService;
|
|
1157
|
-
} & TotpCodeHttpOptions) => (
|
|
1158
|
-
factorId:
|
|
1464
|
+
} & TotpCodeHttpOptions) => (handlerRequest: TotpEnrollmentConfirmHandlerRequest) => Effect.Effect<{
|
|
1465
|
+
factorId: CredentialId;
|
|
1159
1466
|
algorithm: TotpAlgorithm;
|
|
1160
1467
|
digits: number;
|
|
1161
1468
|
period: number;
|
|
@@ -1164,15 +1471,15 @@ export declare const makeTotpEnrollmentConfirmHandler: (dependencies: {
|
|
|
1164
1471
|
lastUsedAt?: UnixMillis | undefined;
|
|
1165
1472
|
revokedAt?: UnixMillis | undefined;
|
|
1166
1473
|
metadata?: Readonly<Record<string, unknown>> | undefined;
|
|
1167
|
-
}, AuthBadRequestError | AuthInternalError | AuthUnauthenticatedError,
|
|
1474
|
+
}, AuthBadRequestError | AuthInternalError | import("./Errors.js").AuthRateLimitedError | AuthUnauthenticatedError, AuthRateLimit>;
|
|
1168
1475
|
export declare const makeTotpVerifyHandler: (dependencies: {
|
|
1169
1476
|
readonly totpFactorManagement: TotpFactorManagementService;
|
|
1170
1477
|
readonly sessions: SessionsService;
|
|
1171
1478
|
readonly sessionCookie: SessionCookieService;
|
|
1172
|
-
} & TotpCodeHttpOptions) => (
|
|
1479
|
+
} & TotpCodeHttpOptions) => (handlerRequest: TotpVerifyHandlerRequest) => Effect.Effect<{
|
|
1173
1480
|
valid: boolean;
|
|
1174
1481
|
factor?: {
|
|
1175
|
-
factorId:
|
|
1482
|
+
factorId: CredentialId;
|
|
1176
1483
|
algorithm: TotpAlgorithm;
|
|
1177
1484
|
digits: number;
|
|
1178
1485
|
period: number;
|
|
@@ -1183,14 +1490,15 @@ export declare const makeTotpVerifyHandler: (dependencies: {
|
|
|
1183
1490
|
metadata?: Readonly<Record<string, unknown>> | undefined;
|
|
1184
1491
|
} | undefined;
|
|
1185
1492
|
delta?: number | undefined;
|
|
1186
|
-
|
|
1493
|
+
acceptedCounter?: number | undefined;
|
|
1494
|
+
}, AuthInternalError | import("./Errors.js").AuthRateLimitedError | AuthUnauthenticatedError, AuthRateLimit>;
|
|
1187
1495
|
export declare const makeTotpFactorListHandler: (dependencies: {
|
|
1188
1496
|
readonly totpFactorManagement: TotpFactorManagementService;
|
|
1189
1497
|
readonly sessions: SessionsService;
|
|
1190
1498
|
readonly sessionCookie: SessionCookieService;
|
|
1191
|
-
}) => (
|
|
1499
|
+
}) => (handlerRequest: TotpFactorListHandlerRequest) => Effect.Effect<{
|
|
1192
1500
|
factors: {
|
|
1193
|
-
factorId:
|
|
1501
|
+
factorId: CredentialId;
|
|
1194
1502
|
algorithm: TotpAlgorithm;
|
|
1195
1503
|
digits: number;
|
|
1196
1504
|
period: number;
|
|
@@ -1200,63 +1508,79 @@ export declare const makeTotpFactorListHandler: (dependencies: {
|
|
|
1200
1508
|
revokedAt?: UnixMillis | undefined;
|
|
1201
1509
|
metadata?: Readonly<Record<string, unknown>> | undefined;
|
|
1202
1510
|
}[];
|
|
1203
|
-
}, AuthInternalError | AuthUnauthenticatedError,
|
|
1511
|
+
}, AuthInternalError | import("./Errors.js").AuthRateLimitedError | AuthUnauthenticatedError, AuthRateLimit>;
|
|
1204
1512
|
export declare const makeTotpFactorRevokeHandler: (dependencies: {
|
|
1205
1513
|
readonly totpFactorManagement: TotpFactorManagementService;
|
|
1206
1514
|
readonly sessions: SessionsService;
|
|
1207
1515
|
readonly sessionCookie: SessionCookieService;
|
|
1208
|
-
|
|
1516
|
+
readonly strongFactorRemovalPolicy?: StrongFactorRemovalPolicyService;
|
|
1517
|
+
}) => (handlerRequest: TotpFactorRevokeHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthBadRequestError | AuthInternalError | AuthPolicyDeniedError | import("./Errors.js").AuthRateLimitedError | AuthUnauthenticatedError, AuthRateLimit>;
|
|
1209
1518
|
export declare const makeRecoveryCodeGenerateHandler: (dependencies: {
|
|
1210
1519
|
readonly recoveryCodeManagement: RecoveryCodeManagementService;
|
|
1211
1520
|
readonly sessions: SessionsService;
|
|
1212
1521
|
readonly sessionCookie: SessionCookieService;
|
|
1213
|
-
} & RecoveryCodeGenerateHttpOptions) => (
|
|
1522
|
+
} & RecoveryCodeGenerateHttpOptions) => (handlerRequest: RecoveryCodeGenerateHandlerRequest) => Effect.Effect<{
|
|
1214
1523
|
codes: import("../RecoveryCode.js").RecoveryCode[];
|
|
1215
1524
|
records: {
|
|
1216
|
-
codeId:
|
|
1525
|
+
codeId: CredentialId;
|
|
1217
1526
|
createdAt: UnixMillis;
|
|
1218
1527
|
usedAt?: UnixMillis | undefined;
|
|
1219
1528
|
revokedAt?: UnixMillis | undefined;
|
|
1220
1529
|
metadata?: Readonly<Record<string, unknown>> | undefined;
|
|
1221
1530
|
}[];
|
|
1222
|
-
}, AuthBadRequestError | AuthInternalError | AuthUnauthenticatedError,
|
|
1531
|
+
}, AuthBadRequestError | AuthInternalError | import("./Errors.js").AuthRateLimitedError | AuthUnauthenticatedError, AuthRateLimit>;
|
|
1532
|
+
export declare const makeRecoveryCodeRegenerateHandler: (dependencies: {
|
|
1533
|
+
readonly recoveryCodeManagement: RecoveryCodeManagementService;
|
|
1534
|
+
readonly sessions: SessionsService;
|
|
1535
|
+
readonly sessionCookie: SessionCookieService;
|
|
1536
|
+
} & RecoveryCodeGenerateHttpOptions) => (handlerRequest: RecoveryCodeRegenerateHandlerRequest) => Effect.Effect<{
|
|
1537
|
+
codes: import("../RecoveryCode.js").RecoveryCode[];
|
|
1538
|
+
records: {
|
|
1539
|
+
codeId: CredentialId;
|
|
1540
|
+
createdAt: UnixMillis;
|
|
1541
|
+
usedAt?: UnixMillis | undefined;
|
|
1542
|
+
revokedAt?: UnixMillis | undefined;
|
|
1543
|
+
metadata?: Readonly<Record<string, unknown>> | undefined;
|
|
1544
|
+
}[];
|
|
1545
|
+
}, AuthBadRequestError | AuthInternalError | import("./Errors.js").AuthRateLimitedError | AuthUnauthenticatedError, AuthRateLimit>;
|
|
1223
1546
|
export declare const makeRecoveryCodeVerifyHandler: (dependencies: {
|
|
1224
1547
|
readonly recoveryCodeManagement: RecoveryCodeManagementService;
|
|
1225
1548
|
readonly sessions: SessionsService;
|
|
1226
1549
|
readonly sessionCookie: SessionCookieService;
|
|
1227
|
-
}) => (
|
|
1550
|
+
}) => (handlerRequest: RecoveryCodeVerifyHandlerRequest) => Effect.Effect<{
|
|
1228
1551
|
valid: boolean;
|
|
1229
1552
|
code?: {
|
|
1230
|
-
codeId:
|
|
1553
|
+
codeId: CredentialId;
|
|
1231
1554
|
createdAt: UnixMillis;
|
|
1232
1555
|
usedAt?: UnixMillis | undefined;
|
|
1233
1556
|
revokedAt?: UnixMillis | undefined;
|
|
1234
1557
|
metadata?: Readonly<Record<string, unknown>> | undefined;
|
|
1235
1558
|
} | undefined;
|
|
1236
|
-
}, AuthInternalError | AuthUnauthenticatedError,
|
|
1559
|
+
}, AuthInternalError | import("./Errors.js").AuthRateLimitedError | AuthUnauthenticatedError, AuthRateLimit>;
|
|
1237
1560
|
export declare const makeRecoveryCodeListHandler: (dependencies: {
|
|
1238
1561
|
readonly recoveryCodeManagement: RecoveryCodeManagementService;
|
|
1239
1562
|
readonly sessions: SessionsService;
|
|
1240
1563
|
readonly sessionCookie: SessionCookieService;
|
|
1241
|
-
}) => (
|
|
1564
|
+
}) => (handlerRequest: RecoveryCodeListHandlerRequest) => Effect.Effect<{
|
|
1242
1565
|
codes: {
|
|
1243
|
-
codeId:
|
|
1566
|
+
codeId: CredentialId;
|
|
1244
1567
|
createdAt: UnixMillis;
|
|
1245
1568
|
usedAt?: UnixMillis | undefined;
|
|
1246
1569
|
revokedAt?: UnixMillis | undefined;
|
|
1247
1570
|
metadata?: Readonly<Record<string, unknown>> | undefined;
|
|
1248
1571
|
}[];
|
|
1249
|
-
}, AuthInternalError | AuthUnauthenticatedError,
|
|
1572
|
+
}, AuthInternalError | import("./Errors.js").AuthRateLimitedError | AuthUnauthenticatedError, AuthRateLimit>;
|
|
1250
1573
|
export declare const makeRecoveryCodeRevokeHandler: (dependencies: {
|
|
1251
1574
|
readonly recoveryCodeManagement: RecoveryCodeManagementService;
|
|
1252
1575
|
readonly sessions: SessionsService;
|
|
1253
1576
|
readonly sessionCookie: SessionCookieService;
|
|
1254
|
-
|
|
1577
|
+
readonly strongFactorRemovalPolicy?: StrongFactorRemovalPolicyService;
|
|
1578
|
+
}) => (handlerRequest: RecoveryCodeRevokeHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthBadRequestError | AuthInternalError | AuthPolicyDeniedError | import("./Errors.js").AuthRateLimitedError | AuthUnauthenticatedError, AuthRateLimit>;
|
|
1255
1579
|
export declare const makeApiKeyCreateHandler: (dependencies: {
|
|
1256
1580
|
readonly apiKeyManagement: ApiKeyManagementService;
|
|
1257
1581
|
readonly sessions: SessionsService;
|
|
1258
1582
|
readonly sessionCookie: SessionCookieService;
|
|
1259
|
-
}) => (
|
|
1583
|
+
}) => (handlerRequest: ApiKeyCreateHandlerRequest) => Effect.Effect<{
|
|
1260
1584
|
secret: import("../ApiKey.js").ApiKeySecret;
|
|
1261
1585
|
key: {
|
|
1262
1586
|
keyId: ApiKeyId;
|
|
@@ -1273,7 +1597,7 @@ export declare const makeApiKeyListHandler: (dependencies: {
|
|
|
1273
1597
|
readonly apiKeyManagement: ApiKeyManagementService;
|
|
1274
1598
|
readonly sessions: SessionsService;
|
|
1275
1599
|
readonly sessionCookie: SessionCookieService;
|
|
1276
|
-
}) => (
|
|
1600
|
+
}) => (handlerRequest: ApiKeyListHandlerRequest) => Effect.Effect<{
|
|
1277
1601
|
keys: {
|
|
1278
1602
|
keyId: ApiKeyId;
|
|
1279
1603
|
prefix: import("../ApiKey.js").ApiKeyPrefix;
|
|
@@ -1289,7 +1613,7 @@ export declare const makeApiKeyRevokeHandler: (dependencies: {
|
|
|
1289
1613
|
readonly apiKeyManagement: ApiKeyManagementService;
|
|
1290
1614
|
readonly sessions: SessionsService;
|
|
1291
1615
|
readonly sessionCookie: SessionCookieService;
|
|
1292
|
-
}) => (
|
|
1616
|
+
}) => (handlerRequest: ApiKeyRevokeHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthBadRequestError | AuthInternalError | AuthUnauthenticatedError, never>;
|
|
1293
1617
|
export declare const makeRefreshTokenRefreshHandler: (dependencies: {
|
|
1294
1618
|
readonly refreshTokenManagement: RefreshTokenManagementService;
|
|
1295
1619
|
readonly jwtIssuer: JwtIssuerService;
|
|
@@ -1357,6 +1681,7 @@ export declare const makeOidcDiscoveryMetadataHandler: (dependencies: {
|
|
|
1357
1681
|
readonly issuer: string;
|
|
1358
1682
|
readonly authorization_endpoint: string;
|
|
1359
1683
|
readonly token_endpoint: string;
|
|
1684
|
+
readonly device_authorization_endpoint?: string | undefined;
|
|
1360
1685
|
readonly jwks_uri: string;
|
|
1361
1686
|
readonly response_types_supported: readonly string[];
|
|
1362
1687
|
readonly subject_types_supported: readonly string[];
|
|
@@ -1378,96 +1703,96 @@ export declare const makeMfaOptionsHandler: (dependencies: {
|
|
|
1378
1703
|
readonly totpFactorManagement?: TotpFactorManagementService;
|
|
1379
1704
|
readonly recoveryCodeManagement?: RecoveryCodeManagementService;
|
|
1380
1705
|
readonly passkeyCredentialManagement?: PasskeyCredentialManagementService;
|
|
1381
|
-
}) => (
|
|
1706
|
+
}) => (handlerRequest: MfaOptionsHandlerRequest) => Effect.Effect<{
|
|
1382
1707
|
factors: {
|
|
1383
1708
|
readonly type: "totp" | "backup-code" | "passkey";
|
|
1384
1709
|
}[];
|
|
1385
|
-
}, AuthBadRequestError | AuthInternalError,
|
|
1710
|
+
}, AuthBadRequestError | AuthInternalError | import("./Errors.js").AuthRateLimitedError, AuthRateLimit>;
|
|
1386
1711
|
export declare const makeTotpMfaVerifyHandler: (dependencies: {
|
|
1387
1712
|
readonly totpFactorManagement: TotpFactorManagementService;
|
|
1713
|
+
readonly authFlowState: AuthFlowStateService;
|
|
1388
1714
|
readonly authFlow: AuthFlowService;
|
|
1389
1715
|
readonly authHttp: AuthHttpService;
|
|
1390
|
-
} & TotpCodeHttpOptions) => (
|
|
1716
|
+
} & TotpCodeHttpOptions) => (handlerRequest: TotpMfaVerifyHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthBadRequestError | AuthInternalError | AuthInvalidCredentialsError | AuthPolicyDeniedError | import("./Errors.js").AuthRateLimitedError, AuthRateLimit>;
|
|
1391
1717
|
export declare const makeTotpMfaVerifyForFlowHandler: (dependencies: {
|
|
1392
1718
|
readonly totpFactorManagement: TotpFactorManagementService;
|
|
1393
1719
|
readonly authFlowState: AuthFlowStateService;
|
|
1394
1720
|
readonly authFlow: AuthFlowService;
|
|
1395
1721
|
readonly authHttp: AuthHttpService;
|
|
1396
|
-
|
|
1722
|
+
readonly verificationStore: VerificationStoreService;
|
|
1723
|
+
readonly totpLoginCommitStore: TotpLoginCommitStoreService;
|
|
1724
|
+
readonly users: UserStoreService;
|
|
1725
|
+
} & TotpCodeHttpOptions) => (handlerRequest: TotpMfaVerifyForFlowHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthBadRequestError | AuthInternalError | AuthInvalidCredentialsError | AuthPolicyDeniedError | import("./Errors.js").AuthRateLimitedError, AuthRateLimit>;
|
|
1397
1726
|
export declare const makeRecoveryCodeMfaVerifyHandler: (dependencies: {
|
|
1398
1727
|
readonly recoveryCodeManagement: RecoveryCodeManagementService;
|
|
1728
|
+
readonly authFlowState: AuthFlowStateService;
|
|
1399
1729
|
readonly authFlow: AuthFlowService;
|
|
1400
1730
|
readonly authHttp: AuthHttpService;
|
|
1401
|
-
}) => (
|
|
1731
|
+
}) => (handlerRequest: RecoveryCodeMfaVerifyHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthBadRequestError | AuthInternalError | AuthInvalidCredentialsError | AuthPolicyDeniedError | import("./Errors.js").AuthRateLimitedError, AuthRateLimit>;
|
|
1402
1732
|
export declare const makeRecoveryCodeMfaVerifyForFlowHandler: (dependencies: {
|
|
1403
1733
|
readonly recoveryCodeManagement: RecoveryCodeManagementService;
|
|
1404
1734
|
readonly authFlowState: AuthFlowStateService;
|
|
1405
1735
|
readonly authFlow: AuthFlowService;
|
|
1406
1736
|
readonly authHttp: AuthHttpService;
|
|
1407
|
-
|
|
1737
|
+
readonly verificationStore: VerificationStoreService;
|
|
1738
|
+
readonly recoveryCodeLoginCommitStore: RecoveryCodeLoginCommitStoreService;
|
|
1739
|
+
readonly users: UserStoreService;
|
|
1740
|
+
}) => (handlerRequest: RecoveryCodeMfaVerifyForFlowHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthBadRequestError | AuthInternalError | AuthInvalidCredentialsError | AuthPolicyDeniedError | import("./Errors.js").AuthRateLimitedError, AuthRateLimit>;
|
|
1408
1741
|
export declare const makePasskeyMfaStartHandler: (dependencies: {
|
|
1409
1742
|
readonly passkeyOptions: PasskeyOptionsService;
|
|
1410
1743
|
readonly authFlowState: AuthFlowStateService;
|
|
1411
|
-
} & PasskeyAuthenticationStartHttpOptions) => (
|
|
1744
|
+
} & PasskeyAuthenticationStartHttpOptions) => (handlerRequest: PasskeyMfaStartHandlerRequest) => Effect.Effect<import("../Passkey.js").StartedPasskeyAuthentication, AuthBadRequestError | AuthInternalError | import("./Errors.js").AuthRateLimitedError, AuthRateLimit>;
|
|
1412
1745
|
export declare const makePasskeyMfaVerifyHandler: (dependencies: {
|
|
1413
1746
|
readonly passkeyVerification: PasskeyVerificationService;
|
|
1747
|
+
readonly authFlowState: AuthFlowStateService;
|
|
1414
1748
|
readonly authFlow: AuthFlowService;
|
|
1415
1749
|
readonly authHttp: AuthHttpService;
|
|
1416
|
-
} & PasskeyFinishHttpOptions) => (
|
|
1750
|
+
} & PasskeyFinishHttpOptions) => (handlerRequest: PasskeyMfaVerifyHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthBadRequestError | AuthInternalError | AuthPolicyDeniedError | import("./Errors.js").AuthRateLimitedError, AuthRateLimit>;
|
|
1417
1751
|
export declare const makeStepUpOptionsHandler: (dependencies: {
|
|
1418
1752
|
readonly sessions: SessionsService;
|
|
1419
1753
|
readonly sessionCookie: SessionCookieService;
|
|
1754
|
+
readonly credentials?: CredentialStoreService;
|
|
1420
1755
|
readonly totpFactorManagement?: TotpFactorManagementService;
|
|
1421
1756
|
readonly recoveryCodeManagement?: RecoveryCodeManagementService;
|
|
1422
1757
|
readonly passkeyCredentialManagement?: PasskeyCredentialManagementService;
|
|
1423
|
-
}) => (
|
|
1758
|
+
}) => (handlerRequest: StepUpOptionsHandlerRequest) => Effect.Effect<{
|
|
1424
1759
|
factors: {
|
|
1425
|
-
readonly type: "totp" | "backup-code" | "passkey";
|
|
1760
|
+
readonly type: "password" | "totp" | "backup-code" | "passkey";
|
|
1426
1761
|
}[];
|
|
1427
|
-
}, AuthInternalError | AuthUnauthenticatedError,
|
|
1762
|
+
}, AuthInternalError | import("./Errors.js").AuthRateLimitedError | AuthUnauthenticatedError, AuthRateLimit>;
|
|
1428
1763
|
export declare const makeStepUpTotpVerifyHandler: (dependencies: {
|
|
1429
1764
|
readonly totpFactorManagement: TotpFactorManagementService;
|
|
1430
1765
|
readonly sessions: SessionsService;
|
|
1431
1766
|
readonly sessionCookie: SessionCookieService;
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1767
|
+
readonly totpSessionRotation: TotpSessionRotationService;
|
|
1768
|
+
} & TotpCodeHttpOptions) => (handlerRequest: StepUpTotpVerifyHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthInternalError | AuthInvalidCredentialsError | import("./Errors.js").AuthRateLimitedError | AuthUnauthenticatedError, AuthRateLimit>;
|
|
1769
|
+
export declare const makeStepUpPasswordVerifyHandler: (dependencies: {
|
|
1770
|
+
readonly credentials: CredentialStoreService;
|
|
1771
|
+
readonly hasher: PasswordHasherService;
|
|
1772
|
+
readonly sessions: SessionsService;
|
|
1773
|
+
readonly sessionCookie: SessionCookieService;
|
|
1774
|
+
}) => (handlerRequest: StepUpPasswordVerifyHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthInternalError | AuthInvalidCredentialsError | import("./Errors.js").AuthRateLimitedError | AuthUnauthenticatedError, AuthRateLimit>;
|
|
1439
1775
|
export declare const makeStepUpRecoveryCodeVerifyHandler: (dependencies: {
|
|
1440
1776
|
readonly recoveryCodeManagement: RecoveryCodeManagementService;
|
|
1441
1777
|
readonly sessions: SessionsService;
|
|
1778
|
+
readonly recoveryCodeSessionRotation: RecoveryCodeSessionRotationService;
|
|
1442
1779
|
readonly sessionCookie: SessionCookieService;
|
|
1443
|
-
}) => (
|
|
1444
|
-
type: "authenticated";
|
|
1445
|
-
expiresAt: number;
|
|
1446
|
-
aal: import("../Sessions.js").AuthAssuranceLevel;
|
|
1447
|
-
amr: readonly AuthMethodReference[];
|
|
1448
|
-
mfaVerifiedAt?: UnixMillis | undefined;
|
|
1449
|
-
}, AuthInternalError | AuthInvalidCredentialsError | AuthUnauthenticatedError, never>;
|
|
1780
|
+
}) => (handlerRequest: StepUpRecoveryCodeVerifyHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthInternalError | AuthInvalidCredentialsError | import("./Errors.js").AuthRateLimitedError | AuthUnauthenticatedError, AuthRateLimit>;
|
|
1450
1781
|
export declare const makeStepUpPasskeyStartHandler: (dependencies: {
|
|
1451
1782
|
readonly passkeyOptions: PasskeyOptionsService;
|
|
1452
1783
|
readonly sessions: SessionsService;
|
|
1453
1784
|
readonly sessionCookie: SessionCookieService;
|
|
1454
|
-
} & PasskeyAuthenticationStartHttpOptions) => (
|
|
1785
|
+
} & PasskeyAuthenticationStartHttpOptions) => (handlerRequest: StepUpPasskeyStartHandlerRequest) => Effect.Effect<import("../Passkey.js").StartedPasskeyAuthentication, AuthBadRequestError | AuthInternalError | import("./Errors.js").AuthRateLimitedError | AuthUnauthenticatedError, AuthRateLimit>;
|
|
1455
1786
|
export declare const makeStepUpPasskeyVerifyHandler: (dependencies: {
|
|
1456
1787
|
readonly passkeyVerification: PasskeyVerificationService;
|
|
1457
1788
|
readonly sessions: SessionsService;
|
|
1458
1789
|
readonly sessionCookie: SessionCookieService;
|
|
1459
|
-
} & PasskeyFinishHttpOptions) => (
|
|
1460
|
-
type: "authenticated";
|
|
1461
|
-
expiresAt: number;
|
|
1462
|
-
aal: import("../Sessions.js").AuthAssuranceLevel;
|
|
1463
|
-
amr: readonly AuthMethodReference[];
|
|
1464
|
-
mfaVerifiedAt?: UnixMillis | undefined;
|
|
1465
|
-
}, AuthBadRequestError | AuthInternalError | AuthPolicyDeniedError | AuthUnauthenticatedError, never>;
|
|
1790
|
+
} & PasskeyFinishHttpOptions) => (handlerRequest: StepUpPasskeyVerifyHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthBadRequestError | AuthInternalError | AuthPolicyDeniedError | import("./Errors.js").AuthRateLimitedError | AuthUnauthenticatedError, AuthRateLimit>;
|
|
1466
1791
|
export declare const makeLoginApprovalApproveHandler: (dependencies: {
|
|
1467
1792
|
readonly loginApproval: LoginApprovalService;
|
|
1468
1793
|
readonly authFlowState: AuthFlowStateService;
|
|
1469
|
-
readonly
|
|
1470
|
-
readonly
|
|
1794
|
+
readonly finalizeAuthFlow: AuthFlowFinalize;
|
|
1795
|
+
readonly identities: IdentityStoreService;
|
|
1471
1796
|
readonly authHttp: AuthHttpService;
|
|
1472
1797
|
readonly loginApprovalPendingCookie: LoginApprovalPendingCookieService;
|
|
1473
1798
|
readonly trustedDevice?: TrustedDeviceService;
|
|
@@ -1486,151 +1811,38 @@ export declare const makeLoginApprovalFinalizeHandler: (dependencies: {
|
|
|
1486
1811
|
readonly trustedDevice?: TrustedDeviceService;
|
|
1487
1812
|
readonly trustedDeviceCookie?: TrustedDeviceCookieService;
|
|
1488
1813
|
}) => (args_0: LoginApprovalFinalizeHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthInternalError | AuthPolicyDeniedError, never>;
|
|
1489
|
-
declare const
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
readonly flowId: Schema.String;
|
|
1520
|
-
readonly factors: Schema.$Array<Schema.Struct<{
|
|
1521
|
-
readonly type: Schema.String;
|
|
1522
|
-
}>>;
|
|
1523
|
-
}>, Schema.Struct<{
|
|
1524
|
-
readonly type: Schema.Literal<"requires_email_verification">;
|
|
1525
|
-
readonly flowId: Schema.String;
|
|
1526
|
-
}>, Schema.Struct<{
|
|
1527
|
-
readonly type: Schema.Literal<"requires_login_approval">;
|
|
1528
|
-
readonly flowId: Schema.String;
|
|
1529
|
-
readonly approvalChallengeId: Schema.String;
|
|
1530
|
-
readonly channel: Schema.String;
|
|
1531
|
-
readonly sessionBinding: Schema.Literals<readonly ["originating-device", "approval-device", "none"]>;
|
|
1532
|
-
readonly sameDeviceRequired: Schema.Boolean;
|
|
1533
|
-
readonly reason: Schema.String;
|
|
1534
|
-
}>, Schema.Struct<{
|
|
1535
|
-
readonly type: Schema.Literal<"requires_passkey_enrollment">;
|
|
1536
|
-
readonly flowId: Schema.String;
|
|
1537
|
-
}>]>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthInvalidCredentialsError | typeof AuthPolicyDeniedError | typeof AuthRateLimitedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthRateLimitMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"signUp", "POST", "/auth/password/sign-up", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
1538
|
-
readonly email: Schema.brand<Schema.String, "auth/Email">;
|
|
1539
|
-
readonly password: Schema.String;
|
|
1540
|
-
readonly emailVerified: Schema.optional<Schema.Boolean>;
|
|
1541
|
-
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
1542
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Union<readonly [Schema.Struct<{
|
|
1543
|
-
readonly type: Schema.Literal<"authenticated">;
|
|
1544
|
-
readonly expiresAt: Schema.Number;
|
|
1545
|
-
readonly aal: Schema.Literals<readonly ["aal1", "aal2", "aal3"]>;
|
|
1546
|
-
readonly amr: Schema.$Array<Schema.String>;
|
|
1547
|
-
readonly mfaVerifiedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
1548
|
-
readonly claims: Schema.optional<Schema.Struct<{
|
|
1549
|
-
readonly emailVerified: Schema.optional<Schema.Boolean>;
|
|
1550
|
-
readonly requirements: Schema.optional<Schema.$Array<Schema.String>>;
|
|
1551
|
-
}>>;
|
|
1552
|
-
}>, Schema.Struct<{
|
|
1553
|
-
readonly type: Schema.Literal<"requires_mfa">;
|
|
1554
|
-
readonly flowId: Schema.String;
|
|
1555
|
-
readonly factors: Schema.$Array<Schema.Struct<{
|
|
1556
|
-
readonly type: Schema.String;
|
|
1557
|
-
}>>;
|
|
1558
|
-
}>, Schema.Struct<{
|
|
1559
|
-
readonly type: Schema.Literal<"requires_email_verification">;
|
|
1560
|
-
readonly flowId: Schema.String;
|
|
1561
|
-
}>, Schema.Struct<{
|
|
1562
|
-
readonly type: Schema.Literal<"requires_login_approval">;
|
|
1563
|
-
readonly flowId: Schema.String;
|
|
1564
|
-
readonly approvalChallengeId: Schema.String;
|
|
1565
|
-
readonly channel: Schema.String;
|
|
1566
|
-
readonly sessionBinding: Schema.Literals<readonly ["originating-device", "approval-device", "none"]>;
|
|
1567
|
-
readonly sameDeviceRequired: Schema.Boolean;
|
|
1568
|
-
readonly reason: Schema.String;
|
|
1569
|
-
}>, Schema.Struct<{
|
|
1570
|
-
readonly type: Schema.Literal<"requires_passkey_enrollment">;
|
|
1571
|
-
readonly flowId: Schema.String;
|
|
1572
|
-
}>]>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthPolicyDeniedError | typeof AuthRateLimitedError | typeof AuthEmailAlreadyRegisteredError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthRateLimitMiddleware | AuthSchemaErrorMiddleware, never>, false>;
|
|
1573
|
-
export declare class PasswordApi extends PasswordApi_base {
|
|
1574
|
-
}
|
|
1575
|
-
declare const SessionApi_base: HttpApiGroup.HttpApiGroup<"session", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"current", "GET", "/auth/session", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
1576
|
-
readonly type: Schema.Literal<"authenticated">;
|
|
1577
|
-
readonly userId: Schema.String;
|
|
1578
|
-
readonly sessionId: Schema.String;
|
|
1579
|
-
readonly authTime: Schema.Number;
|
|
1580
|
-
readonly expiresAt: Schema.Number;
|
|
1581
|
-
readonly aal: Schema.Literals<readonly ["aal1", "aal2", "aal3"]>;
|
|
1582
|
-
readonly amr: Schema.$Array<Schema.String>;
|
|
1583
|
-
readonly mfaVerifiedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
1584
|
-
readonly claims: Schema.optional<Schema.Struct<{
|
|
1585
|
-
readonly emailVerified: Schema.optional<Schema.Boolean>;
|
|
1586
|
-
readonly requirements: Schema.optional<Schema.$Array<Schema.String>>;
|
|
1587
|
-
}>>;
|
|
1588
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthUnauthenticatedError | typeof AuthInternalError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"list", "GET", "/auth/sessions", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
1589
|
-
readonly sessions: Schema.$Array<Schema.Struct<{
|
|
1590
|
-
readonly sessionId: Schema.brand<Schema.String, "auth/SessionId">;
|
|
1591
|
-
readonly userId: Schema.brand<Schema.String, "auth/UserId">;
|
|
1592
|
-
readonly createdAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
1593
|
-
readonly authTime: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
1594
|
-
readonly lastSeenAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
1595
|
-
readonly expiresAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
1596
|
-
readonly aal: Schema.Literals<readonly ["aal1", "aal2", "aal3"]>;
|
|
1597
|
-
readonly amr: Schema.$Array<Schema.String>;
|
|
1598
|
-
readonly mfaVerifiedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
1599
|
-
readonly current: Schema.Boolean;
|
|
1600
|
-
readonly claims: Schema.optional<Schema.Struct<{
|
|
1601
|
-
readonly emailVerified: Schema.optional<Schema.Boolean>;
|
|
1602
|
-
readonly requirements: Schema.optional<Schema.$Array<Schema.String>>;
|
|
1603
|
-
}>>;
|
|
1604
|
-
readonly ip: Schema.optional<Schema.String>;
|
|
1605
|
-
readonly userAgent: Schema.optional<Schema.String>;
|
|
1606
|
-
readonly country: Schema.optional<Schema.String>;
|
|
1607
|
-
readonly region: Schema.optional<Schema.String>;
|
|
1608
|
-
readonly city: Schema.optional<Schema.String>;
|
|
1609
|
-
readonly latitude: Schema.optional<Schema.Number>;
|
|
1610
|
-
readonly longitude: Schema.optional<Schema.Number>;
|
|
1611
|
-
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
1612
|
-
}>>;
|
|
1613
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthUnauthenticatedError | typeof AuthInternalError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"logout", "POST", "/auth/logout", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/unstable/httpapi/HttpApiSchema").NoContent>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthInternalError>, AuthOriginCheckMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"refresh", "POST", "/auth/session/refresh", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
1614
|
-
readonly type: Schema.Literal<"authenticated">;
|
|
1615
|
-
readonly userId: Schema.String;
|
|
1616
|
-
readonly sessionId: Schema.String;
|
|
1617
|
-
readonly authTime: Schema.Number;
|
|
1618
|
-
readonly expiresAt: Schema.Number;
|
|
1619
|
-
readonly aal: Schema.Literals<readonly ["aal1", "aal2", "aal3"]>;
|
|
1620
|
-
readonly amr: Schema.$Array<Schema.String>;
|
|
1621
|
-
readonly mfaVerifiedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
1622
|
-
readonly claims: Schema.optional<Schema.Struct<{
|
|
1623
|
-
readonly emailVerified: Schema.optional<Schema.Boolean>;
|
|
1624
|
-
readonly requirements: Schema.optional<Schema.$Array<Schema.String>>;
|
|
1625
|
-
}>>;
|
|
1626
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthUnauthenticatedError | typeof AuthInternalError>, AuthOriginCheckMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"revoke", "POST", "/auth/sessions/revoke", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
1627
|
-
readonly sessionId: Schema.brand<Schema.String, "auth/SessionId">;
|
|
1628
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/unstable/httpapi/HttpApiSchema").NoContent>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthUnauthenticatedError | typeof AuthInternalError>, AuthOriginCheckMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"revokeOthers", "POST", "/auth/sessions/revoke-others", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/unstable/httpapi/HttpApiSchema").NoContent>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthUnauthenticatedError | typeof AuthInternalError>, AuthOriginCheckMiddleware, never>, false>;
|
|
1629
|
-
export declare class SessionApi extends SessionApi_base {
|
|
1630
|
-
}
|
|
1631
|
-
declare const AdminSessionApi_base: HttpApiGroup.HttpApiGroup<"adminSession", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"list", "GET", "/auth/admin/sessions/", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<Schema.Struct<{
|
|
1814
|
+
export declare const SessionHttpOperationsLive: Layer.Layer<SessionHttpOperations, never, AuthHttp | SessionCookie | Sessions>;
|
|
1815
|
+
export declare const EmailVerificationHttpOperationsLive: Layer.Layer<EmailVerificationHttpOperations, never, AuthRateLimit | EmailVerification | EmailVerificationFlow | IdentityStore | SessionCookie | Sessions>;
|
|
1816
|
+
export declare const EmailOtpHttpOperationsLive: Layer.Layer<EmailOtpHttpOperations, never, AuthHttp | AuthRateLimit | EmailOtpLogin>;
|
|
1817
|
+
export declare const EmailAuthHttpOperationsLive: Layer.Layer<EmailAuthHttpOperations, never, AuthRateLimit | EmailAuth>;
|
|
1818
|
+
export declare const MagicLinkHttpOperationsLive: Layer.Layer<MagicLinkHttpOperations, never, AuthHttp | AuthRateLimit | MagicLinkLogin>;
|
|
1819
|
+
export declare const PasskeyHttpOperationsLive: Layer.Layer<PasskeyHttpOperations, never, AuthHttp | AuthRateLimit | IdentityStore | PasskeyCredentialManagement | PasskeyHttpConfig | PasskeyOptions | PasskeyVerification | SessionCookie | Sessions | UserStore>;
|
|
1820
|
+
export declare const IdentityHttpOperationsLive: Layer.Layer<IdentityHttpOperations, never, AuthRateLimit | IdentityManagement | SessionCookie | Sessions>;
|
|
1821
|
+
export declare const TotpHttpOperationsLive: Layer.Layer<TotpHttpOperations, never, AuthRateLimit | SessionCookie | Sessions | TotpFactorManagement | TotpHttpConfig>;
|
|
1822
|
+
export declare const RecoveryCodesHttpOperationsLive: Layer.Layer<RecoveryCodesHttpOperations, never, AuthRateLimit | RecoveryCodeManagement | SessionCookie | Sessions>;
|
|
1823
|
+
export declare const MfaHttpOperationsLive: Layer.Layer<MfaHttpOperations, never, AuthFlow | AuthFlowState | AuthHttp | AuthRateLimit | PasskeyCredentialManagement | PasskeyHttpConfig | PasskeyOptions | PasskeyVerification | RecoveryCodeLoginCommitStore | RecoveryCodeManagement | TotpFactorManagement | TotpHttpConfig | TotpLoginCommitStore | UserStore | VerificationStore>;
|
|
1824
|
+
export declare const StepUpHttpOperationsLive: Layer.Layer<StepUpHttpOperations, never, AuthRateLimit | CredentialStore | PasskeyCredentialManagement | PasskeyHttpConfig | PasskeyOptions | PasskeyVerification | PasswordHasher | RecoveryCodeManagement | RecoveryCodeSessionRotation | SessionCookie | Sessions | TotpFactorManagement | TotpHttpConfig | TotpSessionRotation>;
|
|
1825
|
+
export declare const AdminSessionHttpOperationsLive: Layer.Layer<AdminSessionHttpOperations, never, AdminSessionAuthorization | SessionCookie | Sessions>;
|
|
1826
|
+
export declare const AdminPermissionDefinitionHttpOperationsLive: Layer.Layer<AdminPermissionDefinitionHttpOperations, never, never>;
|
|
1827
|
+
export declare const LoginNotificationHttpOperationsLive: Layer.Layer<LoginNotificationHttpOperations, never, never>;
|
|
1828
|
+
export declare const SecurityTimelineHttpOperationsLive: Layer.Layer<SecurityTimelineHttpOperations, never, SecurityTimelineStore | SessionCookie | Sessions>;
|
|
1829
|
+
export declare const AdminSecurityTimelineHttpOperationsLive: Layer.Layer<AdminSecurityTimelineHttpOperations, never, AdminSecurityTimelineAuthorization | SecurityTimelineStore | SessionCookie | Sessions>;
|
|
1830
|
+
export declare const TrustedDeviceHttpOperationsLive: Layer.Layer<TrustedDeviceHttpOperations, never, SessionCookie | Sessions | TrustedDeviceStore>;
|
|
1831
|
+
export declare const AdminTrustedDeviceHttpOperationsLive: Layer.Layer<AdminTrustedDeviceHttpOperations, never, AdminTrustedDeviceAuthorization | SessionCookie | Sessions | TrustedDeviceStore>;
|
|
1832
|
+
export declare const OAuthHttpOperationsLive: Layer.Layer<OAuthHttpOperations, never, OAuthAccountUnlinking | OAuthLinkConfirmation | OAuthProviders | OAuthState | SessionCookie | Sessions>;
|
|
1833
|
+
export declare const OAuthProviderAuthorizationHttpOperationsLive: Layer.Layer<OAuthProviderAuthorizationHttpOperations, never, OAuthProviderAuthorization>;
|
|
1834
|
+
export declare const OAuthTokenHttpOperationsLive: Layer.Layer<OAuthTokenHttpOperations, never, OAuthTokenGrantRegistry>;
|
|
1835
|
+
export declare const OAuthTokenIntrospectionHttpOperationsLive: Layer.Layer<OAuthTokenIntrospectionHttpOperations, never, OAuthTokenIntrospection>;
|
|
1836
|
+
export declare const OAuthTokenRevocationHttpOperationsLive: Layer.Layer<OAuthTokenRevocationHttpOperations, never, OAuthTokenRevocation>;
|
|
1837
|
+
export declare const LoginApprovalHttpOperationsLive: Layer.Layer<LoginApprovalHttpOperations, never, AuthFlowState | AuthHttp | IdentityStore | LoginApproval | Sessions>;
|
|
1838
|
+
export declare const ApiKeyHttpOperationsLive: Layer.Layer<ApiKeyHttpOperations, never, ApiKeyManagement | SessionCookie | Sessions>;
|
|
1839
|
+
export declare const RefreshTokenHttpOperationsLive: Layer.Layer<RefreshTokenHttpOperations, never, JwtIssuer | RefreshTokenHttpConfig | RefreshTokenManagement>;
|
|
1840
|
+
export declare const JwtHttpOperationsLive: Layer.Layer<JwtHttpOperations, never, JwtRevocation>;
|
|
1841
|
+
export declare const JwtDiscoveryHttpOperationsLive: Layer.Layer<JwtDiscoveryHttpOperations, never, Jwks>;
|
|
1842
|
+
export declare const OidcDiscoveryHttpOperationsLive: Layer.Layer<OidcDiscoveryHttpOperations, never, OidcDiscoveryMetadata>;
|
|
1843
|
+
declare const AdminSessionHttpApiGroup_base: HttpApiGroup.HttpApiGroup<"adminSession", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"list", "GET", "/auth/admin/sessions/", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
1632
1844
|
readonly userId: Schema.brand<Schema.String, "auth/UserId">;
|
|
1633
|
-
}>>,
|
|
1845
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
1634
1846
|
readonly sessions: Schema.$Array<Schema.Struct<{
|
|
1635
1847
|
readonly sessionId: Schema.brand<Schema.String, "auth/SessionId">;
|
|
1636
1848
|
readonly userId: Schema.brand<Schema.String, "auth/UserId">;
|
|
@@ -1649,118 +1861,158 @@ declare const AdminSessionApi_base: HttpApiGroup.HttpApiGroup<"adminSession", im
|
|
|
1649
1861
|
readonly latitude: Schema.optional<Schema.Number>;
|
|
1650
1862
|
readonly longitude: Schema.optional<Schema.Number>;
|
|
1651
1863
|
}>>;
|
|
1652
|
-
}>>, import("
|
|
1864
|
+
}>>, Schema.toCodecJson<typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthRequestRejectedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"revoke", "POST", "/auth/admin/sessions/revoke", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
1653
1865
|
readonly userId: Schema.brand<Schema.String, "auth/UserId">;
|
|
1654
1866
|
readonly sessionId: Schema.brand<Schema.String, "auth/SessionId">;
|
|
1655
|
-
}>>, import("effect/unstable/httpapi/
|
|
1867
|
+
}>>, never, Schema.toCodecJson<import("effect/unstable/httpapi/HttpApiSchema").NoContent>, Schema.toCodecJson<typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthRequestRejectedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"revokeAll", "POST", "/auth/admin/sessions/revoke-all", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
1656
1868
|
readonly userId: Schema.brand<Schema.String, "auth/UserId">;
|
|
1657
|
-
}>>, import("effect/unstable/httpapi/
|
|
1658
|
-
export declare class
|
|
1869
|
+
}>>, never, Schema.toCodecJson<import("effect/unstable/httpapi/HttpApiSchema").NoContent>, Schema.toCodecJson<typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthRequestRejectedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never>, false>;
|
|
1870
|
+
export declare class AdminSessionHttpApiGroup extends AdminSessionHttpApiGroup_base {
|
|
1659
1871
|
}
|
|
1660
|
-
declare const AdminSessionHttpApi_base: HttpApi.HttpApi<"AdminSessionHttpApi", typeof
|
|
1872
|
+
declare const AdminSessionHttpApi_base: HttpApi.HttpApi<"AdminSessionHttpApi", typeof AdminSessionHttpApiGroup>;
|
|
1661
1873
|
export declare class AdminSessionHttpApi extends AdminSessionHttpApi_base {
|
|
1662
1874
|
}
|
|
1663
|
-
declare const
|
|
1875
|
+
declare const AdminPermissionDefinitionHttpApiGroup_base: HttpApiGroup.HttpApiGroup<"adminPermissionDefinition", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"create", "POST", "/auth/admin/permission-definitions", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
1876
|
+
readonly id: Schema.brand<Schema.String, "auth/PermissionId">;
|
|
1877
|
+
readonly description: Schema.optional<Schema.String>;
|
|
1878
|
+
readonly scopeType: Schema.optional<Schema.String>;
|
|
1879
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
1880
|
+
readonly id: Schema.brand<Schema.String, "auth/PermissionId">;
|
|
1881
|
+
readonly description: Schema.optional<Schema.String>;
|
|
1882
|
+
readonly scopeType: Schema.optional<Schema.String>;
|
|
1883
|
+
readonly createdAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
1884
|
+
readonly updatedAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
1885
|
+
readonly disabledAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
1886
|
+
readonly deletedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
1887
|
+
}>>, Schema.toCodecJson<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof AuthNotFoundError | typeof AuthConflictError | typeof import("./Errors.js").AuthRequestRejectedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"delete", "POST", "/auth/admin/permission-definitions/delete", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
1888
|
+
readonly id: Schema.brand<Schema.String, "auth/PermissionId">;
|
|
1889
|
+
readonly expectedUpdatedAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
1890
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
1891
|
+
readonly id: Schema.brand<Schema.String, "auth/PermissionId">;
|
|
1892
|
+
readonly description: Schema.optional<Schema.String>;
|
|
1893
|
+
readonly scopeType: Schema.optional<Schema.String>;
|
|
1894
|
+
readonly createdAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
1895
|
+
readonly updatedAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
1896
|
+
readonly disabledAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
1897
|
+
readonly deletedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
1898
|
+
}>>, Schema.toCodecJson<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof AuthNotFoundError | typeof AuthConflictError | typeof import("./Errors.js").AuthRequestRejectedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"disable", "POST", "/auth/admin/permission-definitions/disable", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
1899
|
+
readonly id: Schema.brand<Schema.String, "auth/PermissionId">;
|
|
1900
|
+
readonly expectedUpdatedAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
1901
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
1902
|
+
readonly id: Schema.brand<Schema.String, "auth/PermissionId">;
|
|
1903
|
+
readonly description: Schema.optional<Schema.String>;
|
|
1904
|
+
readonly scopeType: Schema.optional<Schema.String>;
|
|
1905
|
+
readonly createdAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
1906
|
+
readonly updatedAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
1907
|
+
readonly disabledAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
1908
|
+
readonly deletedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
1909
|
+
}>>, Schema.toCodecJson<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof AuthNotFoundError | typeof AuthConflictError | typeof import("./Errors.js").AuthRequestRejectedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"enable", "POST", "/auth/admin/permission-definitions/enable", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
1910
|
+
readonly id: Schema.brand<Schema.String, "auth/PermissionId">;
|
|
1911
|
+
readonly expectedUpdatedAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
1912
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
1913
|
+
readonly id: Schema.brand<Schema.String, "auth/PermissionId">;
|
|
1914
|
+
readonly description: Schema.optional<Schema.String>;
|
|
1915
|
+
readonly scopeType: Schema.optional<Schema.String>;
|
|
1916
|
+
readonly createdAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
1917
|
+
readonly updatedAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
1918
|
+
readonly disabledAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
1919
|
+
readonly deletedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
1920
|
+
}>>, Schema.toCodecJson<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof AuthNotFoundError | typeof AuthConflictError | typeof import("./Errors.js").AuthRequestRejectedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"get", "GET", "/auth/admin/permission-definitions/get", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
1921
|
+
readonly id: Schema.brand<Schema.String, "auth/PermissionId">;
|
|
1922
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
1923
|
+
readonly id: Schema.brand<Schema.String, "auth/PermissionId">;
|
|
1924
|
+
readonly description: Schema.optional<Schema.String>;
|
|
1925
|
+
readonly scopeType: Schema.optional<Schema.String>;
|
|
1926
|
+
readonly createdAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
1927
|
+
readonly updatedAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
1928
|
+
readonly disabledAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
1929
|
+
readonly deletedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
1930
|
+
}>>, Schema.toCodecJson<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof AuthNotFoundError | typeof AuthConflictError | typeof import("./Errors.js").AuthRequestRejectedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"list", "GET", "/auth/admin/permission-definitions", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
1931
|
+
readonly includeDisabled: Schema.optional<Schema.Union<readonly [Schema.Boolean, Schema.decodeTo<Schema.Boolean, Schema.Literals<readonly ["true", "false"]>, never, never>]>>;
|
|
1932
|
+
readonly includeDeleted: Schema.optional<Schema.Union<readonly [Schema.Boolean, Schema.decodeTo<Schema.Boolean, Schema.Literals<readonly ["true", "false"]>, never, never>]>>;
|
|
1933
|
+
readonly after: Schema.optional<Schema.brand<Schema.String, "auth/PermissionId">>;
|
|
1934
|
+
readonly limit: Schema.optional<Schema.Union<readonly [Schema.Number, Schema.NumberFromString]>>;
|
|
1935
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
1936
|
+
readonly definitions: Schema.$Array<Schema.Struct<{
|
|
1937
|
+
readonly id: Schema.brand<Schema.String, "auth/PermissionId">;
|
|
1938
|
+
readonly description: Schema.optional<Schema.String>;
|
|
1939
|
+
readonly scopeType: Schema.optional<Schema.String>;
|
|
1940
|
+
readonly createdAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
1941
|
+
readonly updatedAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
1942
|
+
readonly disabledAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
1943
|
+
readonly deletedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
1944
|
+
}>>;
|
|
1945
|
+
readonly nextAfter: Schema.optional<Schema.brand<Schema.String, "auth/PermissionId">>;
|
|
1946
|
+
}>>, Schema.toCodecJson<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof AuthNotFoundError | typeof AuthConflictError | typeof import("./Errors.js").AuthRequestRejectedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"update", "POST", "/auth/admin/permission-definitions/update", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
1947
|
+
readonly id: Schema.brand<Schema.String, "auth/PermissionId">;
|
|
1948
|
+
readonly expectedUpdatedAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
1949
|
+
readonly description: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
1950
|
+
readonly scopeType: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
1951
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
1952
|
+
readonly id: Schema.brand<Schema.String, "auth/PermissionId">;
|
|
1953
|
+
readonly description: Schema.optional<Schema.String>;
|
|
1954
|
+
readonly scopeType: Schema.optional<Schema.String>;
|
|
1955
|
+
readonly createdAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
1956
|
+
readonly updatedAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
1957
|
+
readonly disabledAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
1958
|
+
readonly deletedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
1959
|
+
}>>, Schema.toCodecJson<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof AuthNotFoundError | typeof AuthConflictError | typeof import("./Errors.js").AuthRequestRejectedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never>, false>;
|
|
1960
|
+
export declare class AdminPermissionDefinitionHttpApiGroup extends AdminPermissionDefinitionHttpApiGroup_base {
|
|
1961
|
+
}
|
|
1962
|
+
declare const AdminPermissionDefinitionHttpApi_base: HttpApi.HttpApi<"AdminPermissionDefinitionHttpApi", typeof AdminPermissionDefinitionHttpApiGroup>;
|
|
1963
|
+
export declare class AdminPermissionDefinitionHttpApi extends AdminPermissionDefinitionHttpApi_base {
|
|
1964
|
+
}
|
|
1965
|
+
declare const EmailAuthHttpApi_base: HttpApi.HttpApi<"EmailAuthHttpApi", typeof EmailAuthHttpApiGroup>;
|
|
1966
|
+
export declare class EmailAuthHttpApi extends EmailAuthHttpApi_base {
|
|
1967
|
+
}
|
|
1968
|
+
declare const PasskeyHttpApi_base: HttpApi.HttpApi<"PasskeyHttpApi", typeof PasskeyHttpApiGroup>;
|
|
1969
|
+
export declare class PasskeyHttpApi extends PasskeyHttpApi_base {
|
|
1970
|
+
}
|
|
1971
|
+
declare const IdentityHttpApi_base: HttpApi.HttpApi<"IdentityHttpApi", typeof IdentityHttpApiGroup>;
|
|
1972
|
+
export declare class IdentityHttpApi extends IdentityHttpApi_base {
|
|
1973
|
+
}
|
|
1974
|
+
declare const TotpHttpApi_base: HttpApi.HttpApi<"TotpHttpApi", typeof TotpHttpApiGroup>;
|
|
1975
|
+
export declare class TotpHttpApi extends TotpHttpApi_base {
|
|
1976
|
+
}
|
|
1977
|
+
declare const RecoveryCodesHttpApi_base: HttpApi.HttpApi<"RecoveryCodesHttpApi", typeof RecoveryCodesHttpApiGroup>;
|
|
1978
|
+
export declare class RecoveryCodesHttpApi extends RecoveryCodesHttpApi_base {
|
|
1979
|
+
}
|
|
1980
|
+
declare const OAuthHttpApiGroup_base: HttpApiGroup.HttpApiGroup<"oauth", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"confirmLinkConfirmation", "POST", "/auth/oauth/link-confirmation/confirm", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
1664
1981
|
readonly challengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
|
|
1665
1982
|
readonly secret: Schema.optional<Schema.String>;
|
|
1666
|
-
|
|
1667
|
-
readonly
|
|
1668
|
-
|
|
1669
|
-
readonly secret: Schema.optional<Schema.String>;
|
|
1670
|
-
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
1671
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/unstable/httpapi/HttpApiSchema").NoContent>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthRateLimitedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthRateLimitMiddleware | AuthSchemaErrorMiddleware, never>, false>;
|
|
1672
|
-
export declare class EmailVerificationApi extends EmailVerificationApi_base {
|
|
1673
|
-
}
|
|
1674
|
-
declare const EmailOtpApi_base: HttpApiGroup.HttpApiGroup<"emailOtp", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"start", "POST", "/auth/email-otp/start", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
1675
|
-
readonly email: Schema.brand<Schema.String, "auth/Email">;
|
|
1676
|
-
readonly secret: Schema.optional<Schema.String>;
|
|
1677
|
-
readonly locale: Schema.optional<Schema.String>;
|
|
1678
|
-
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
1679
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
1680
|
-
readonly challengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
|
|
1681
|
-
readonly email: Schema.brand<Schema.String, "auth/Email">;
|
|
1682
|
-
readonly expiresAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
1683
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthRateLimitedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthRateLimitMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verify", "POST", "/auth/email-otp/verify", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
1983
|
+
readonly expectedProviderId: Schema.optional<Schema.brand<Schema.String, "auth/OAuthProviderId">>;
|
|
1984
|
+
readonly expectedProviderAccountId: Schema.optional<Schema.String>;
|
|
1985
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
1684
1986
|
readonly challengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
|
|
1685
|
-
readonly
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
readonly amr: Schema.$Array<Schema.String>;
|
|
1691
|
-
readonly mfaVerifiedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
1692
|
-
readonly claims: Schema.optional<Schema.Struct<{
|
|
1987
|
+
readonly userId: Schema.brand<Schema.String, "auth/UserId">;
|
|
1988
|
+
readonly identity: Schema.Struct<{
|
|
1989
|
+
readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
|
|
1990
|
+
readonly providerAccountId: Schema.String;
|
|
1991
|
+
readonly email: Schema.optional<Schema.brand<Schema.String, "auth/Email">>;
|
|
1693
1992
|
readonly emailVerified: Schema.optional<Schema.Boolean>;
|
|
1694
|
-
|
|
1695
|
-
}>>;
|
|
1696
|
-
}>, Schema.Struct<{
|
|
1697
|
-
readonly type: Schema.Literal<"requires_mfa">;
|
|
1698
|
-
readonly flowId: Schema.String;
|
|
1699
|
-
readonly factors: Schema.$Array<Schema.Struct<{
|
|
1700
|
-
readonly type: Schema.String;
|
|
1701
|
-
}>>;
|
|
1702
|
-
}>, Schema.Struct<{
|
|
1703
|
-
readonly type: Schema.Literal<"requires_email_verification">;
|
|
1704
|
-
readonly flowId: Schema.String;
|
|
1705
|
-
}>, Schema.Struct<{
|
|
1706
|
-
readonly type: Schema.Literal<"requires_login_approval">;
|
|
1707
|
-
readonly flowId: Schema.String;
|
|
1708
|
-
readonly approvalChallengeId: Schema.String;
|
|
1709
|
-
readonly channel: Schema.String;
|
|
1710
|
-
readonly sessionBinding: Schema.Literals<readonly ["originating-device", "approval-device", "none"]>;
|
|
1711
|
-
readonly sameDeviceRequired: Schema.Boolean;
|
|
1993
|
+
}>;
|
|
1712
1994
|
readonly reason: Schema.String;
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
readonly
|
|
1995
|
+
readonly existingAccount: Schema.optional<Schema.Struct<{
|
|
1996
|
+
readonly accountId: Schema.brand<Schema.String, "auth/OAuthAccountId">;
|
|
1997
|
+
readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
|
|
1998
|
+
readonly providerAccountId: Schema.String;
|
|
1999
|
+
}>>;
|
|
2000
|
+
readonly linked: Schema.Boolean;
|
|
2001
|
+
}>>, Schema.toCodecJson<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"inspectLinkConfirmation", "POST", "/auth/oauth/link-confirmation/inspect", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
2002
|
+
readonly challengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
|
|
1721
2003
|
readonly secret: Schema.optional<Schema.String>;
|
|
1722
|
-
|
|
1723
|
-
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
1724
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
1725
|
-
readonly email: Schema.brand<Schema.String, "auth/Email">;
|
|
1726
|
-
readonly expiresAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
1727
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthRateLimitedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthRateLimitMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verify", "POST", "/auth/magic-link/verify", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
2004
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
1728
2005
|
readonly challengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
|
|
1729
|
-
readonly
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
readonly amr: Schema.$Array<Schema.String>;
|
|
1735
|
-
readonly mfaVerifiedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
1736
|
-
readonly claims: Schema.optional<Schema.Struct<{
|
|
2006
|
+
readonly userId: Schema.brand<Schema.String, "auth/UserId">;
|
|
2007
|
+
readonly identity: Schema.Struct<{
|
|
2008
|
+
readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
|
|
2009
|
+
readonly providerAccountId: Schema.String;
|
|
2010
|
+
readonly email: Schema.optional<Schema.brand<Schema.String, "auth/Email">>;
|
|
1737
2011
|
readonly emailVerified: Schema.optional<Schema.Boolean>;
|
|
1738
|
-
|
|
1739
|
-
}>>;
|
|
1740
|
-
}>, Schema.Struct<{
|
|
1741
|
-
readonly type: Schema.Literal<"requires_mfa">;
|
|
1742
|
-
readonly flowId: Schema.String;
|
|
1743
|
-
readonly factors: Schema.$Array<Schema.Struct<{
|
|
1744
|
-
readonly type: Schema.String;
|
|
1745
|
-
}>>;
|
|
1746
|
-
}>, Schema.Struct<{
|
|
1747
|
-
readonly type: Schema.Literal<"requires_email_verification">;
|
|
1748
|
-
readonly flowId: Schema.String;
|
|
1749
|
-
}>, Schema.Struct<{
|
|
1750
|
-
readonly type: Schema.Literal<"requires_login_approval">;
|
|
1751
|
-
readonly flowId: Schema.String;
|
|
1752
|
-
readonly approvalChallengeId: Schema.String;
|
|
1753
|
-
readonly channel: Schema.String;
|
|
1754
|
-
readonly sessionBinding: Schema.Literals<readonly ["originating-device", "approval-device", "none"]>;
|
|
1755
|
-
readonly sameDeviceRequired: Schema.Boolean;
|
|
2012
|
+
}>;
|
|
1756
2013
|
readonly reason: Schema.String;
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
readonly flowId: Schema.String;
|
|
1760
|
-
}>]>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthInvalidCredentialsError | typeof AuthPolicyDeniedError | typeof AuthRateLimitedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthRateLimitMiddleware | AuthSchemaErrorMiddleware, never>, false>;
|
|
1761
|
-
export declare class MagicLinkApi extends MagicLinkApi_base {
|
|
1762
|
-
}
|
|
1763
|
-
declare const OAuthApi_base: HttpApiGroup.HttpApiGroup<"oauth", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"startAuthorization", "POST", "/auth/oauth/start", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
2014
|
+
readonly expiresAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
2015
|
+
}>>, Schema.toCodecJson<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"startAuthorization", "POST", "/auth/oauth/start", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
1764
2016
|
readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
|
|
1765
2017
|
readonly redirectUri: Schema.optional<Schema.String>;
|
|
1766
2018
|
readonly scopes: Schema.optional<Schema.$Array<Schema.String>>;
|
|
@@ -1769,7 +2021,7 @@ declare const OAuthApi_base: HttpApiGroup.HttpApiGroup<"oauth", import("effect/u
|
|
|
1769
2021
|
readonly includeNonce: Schema.optional<Schema.Boolean>;
|
|
1770
2022
|
readonly nonce: Schema.optional<Schema.String>;
|
|
1771
2023
|
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
1772
|
-
}>>,
|
|
2024
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
1773
2025
|
readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
|
|
1774
2026
|
readonly authorizationUrl: Schema.String;
|
|
1775
2027
|
readonly state: Schema.String;
|
|
@@ -1780,11 +2032,34 @@ declare const OAuthApi_base: HttpApiGroup.HttpApiGroup<"oauth", import("effect/u
|
|
|
1780
2032
|
readonly nonce: Schema.optional<Schema.String>;
|
|
1781
2033
|
readonly redirectUri: Schema.String;
|
|
1782
2034
|
readonly scopes: Schema.$Array<Schema.String>;
|
|
1783
|
-
}>>,
|
|
2035
|
+
}>>, Schema.toCodecJson<typeof AuthBadRequestError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"startLinkConfirmation", "POST", "/auth/oauth/link-confirmation/start", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
2036
|
+
readonly userId: Schema.optional<Schema.brand<Schema.String, "auth/UserId">>;
|
|
2037
|
+
readonly identity: Schema.optional<Schema.Struct<{
|
|
2038
|
+
readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
|
|
2039
|
+
readonly providerAccountId: Schema.String;
|
|
2040
|
+
readonly email: Schema.optional<Schema.brand<Schema.String, "auth/Email">>;
|
|
2041
|
+
readonly emailVerified: Schema.optional<Schema.Boolean>;
|
|
2042
|
+
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
2043
|
+
}>>;
|
|
2044
|
+
readonly reason: Schema.optional<Schema.String>;
|
|
2045
|
+
readonly secret: Schema.optional<Schema.String>;
|
|
2046
|
+
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
2047
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
2048
|
+
readonly challengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
|
|
2049
|
+
readonly userId: Schema.brand<Schema.String, "auth/UserId">;
|
|
2050
|
+
readonly identity: Schema.Struct<{
|
|
2051
|
+
readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
|
|
2052
|
+
readonly providerAccountId: Schema.String;
|
|
2053
|
+
readonly email: Schema.optional<Schema.brand<Schema.String, "auth/Email">>;
|
|
2054
|
+
readonly emailVerified: Schema.optional<Schema.Boolean>;
|
|
2055
|
+
}>;
|
|
2056
|
+
readonly reason: Schema.String;
|
|
2057
|
+
readonly expiresAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
2058
|
+
}>>, Schema.toCodecJson<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"unlinkAccount", "POST", "/auth/oauth/unlink", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
1784
2059
|
readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
|
|
1785
2060
|
readonly providerAccountId: Schema.String;
|
|
1786
2061
|
readonly reason: Schema.optional<Schema.String>;
|
|
1787
|
-
}>>,
|
|
2062
|
+
}>>, never, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
|
|
1788
2063
|
readonly type: Schema.Literal<"allow">;
|
|
1789
2064
|
readonly reason: Schema.Literal<"owned-account">;
|
|
1790
2065
|
readonly account: Schema.Struct<{
|
|
@@ -1829,68 +2104,13 @@ declare const OAuthApi_base: HttpApiGroup.HttpApiGroup<"oauth", import("effect/u
|
|
|
1829
2104
|
readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
|
|
1830
2105
|
readonly providerAccountId: Schema.String;
|
|
1831
2106
|
}>;
|
|
1832
|
-
}>]>>,
|
|
1833
|
-
|
|
1834
|
-
readonly secret: Schema.optional<Schema.String>;
|
|
1835
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
1836
|
-
readonly challengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
|
|
1837
|
-
readonly userId: Schema.brand<Schema.String, "auth/UserId">;
|
|
1838
|
-
readonly identity: Schema.Struct<{
|
|
1839
|
-
readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
|
|
1840
|
-
readonly providerAccountId: Schema.String;
|
|
1841
|
-
readonly email: Schema.optional<Schema.brand<Schema.String, "auth/Email">>;
|
|
1842
|
-
readonly emailVerified: Schema.optional<Schema.Boolean>;
|
|
1843
|
-
}>;
|
|
1844
|
-
readonly reason: Schema.String;
|
|
1845
|
-
readonly expiresAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
1846
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"startLinkConfirmation", "POST", "/auth/oauth/link-confirmation/start", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
1847
|
-
readonly userId: Schema.optional<Schema.brand<Schema.String, "auth/UserId">>;
|
|
1848
|
-
readonly identity: Schema.optional<Schema.Struct<{
|
|
1849
|
-
readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
|
|
1850
|
-
readonly providerAccountId: Schema.String;
|
|
1851
|
-
readonly email: Schema.optional<Schema.brand<Schema.String, "auth/Email">>;
|
|
1852
|
-
readonly emailVerified: Schema.optional<Schema.Boolean>;
|
|
1853
|
-
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
1854
|
-
}>>;
|
|
1855
|
-
readonly reason: Schema.optional<Schema.String>;
|
|
1856
|
-
readonly secret: Schema.optional<Schema.String>;
|
|
1857
|
-
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
1858
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
1859
|
-
readonly challengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
|
|
1860
|
-
readonly userId: Schema.brand<Schema.String, "auth/UserId">;
|
|
1861
|
-
readonly identity: Schema.Struct<{
|
|
1862
|
-
readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
|
|
1863
|
-
readonly providerAccountId: Schema.String;
|
|
1864
|
-
readonly email: Schema.optional<Schema.brand<Schema.String, "auth/Email">>;
|
|
1865
|
-
readonly emailVerified: Schema.optional<Schema.Boolean>;
|
|
1866
|
-
}>;
|
|
1867
|
-
readonly reason: Schema.String;
|
|
1868
|
-
readonly expiresAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
1869
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"confirmLinkConfirmation", "POST", "/auth/oauth/link-confirmation/confirm", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
1870
|
-
readonly challengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
|
|
1871
|
-
readonly secret: Schema.optional<Schema.String>;
|
|
1872
|
-
readonly expectedProviderId: Schema.optional<Schema.brand<Schema.String, "auth/OAuthProviderId">>;
|
|
1873
|
-
readonly expectedProviderAccountId: Schema.optional<Schema.String>;
|
|
1874
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
1875
|
-
readonly challengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
|
|
1876
|
-
readonly userId: Schema.brand<Schema.String, "auth/UserId">;
|
|
1877
|
-
readonly identity: Schema.Struct<{
|
|
1878
|
-
readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
|
|
1879
|
-
readonly providerAccountId: Schema.String;
|
|
1880
|
-
readonly email: Schema.optional<Schema.brand<Schema.String, "auth/Email">>;
|
|
1881
|
-
readonly emailVerified: Schema.optional<Schema.Boolean>;
|
|
1882
|
-
}>;
|
|
1883
|
-
readonly reason: Schema.String;
|
|
1884
|
-
readonly existingAccount: Schema.optional<Schema.Struct<{
|
|
1885
|
-
readonly accountId: Schema.brand<Schema.String, "auth/OAuthAccountId">;
|
|
1886
|
-
readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
|
|
1887
|
-
readonly providerAccountId: Schema.String;
|
|
1888
|
-
}>>;
|
|
1889
|
-
readonly linked: Schema.Boolean;
|
|
1890
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never>, false>;
|
|
1891
|
-
export declare class OAuthApi extends OAuthApi_base {
|
|
2107
|
+
}>]>>, Schema.toCodecJson<typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthRequestRejectedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never>, false>;
|
|
2108
|
+
export declare class OAuthHttpApiGroup extends OAuthHttpApiGroup_base {
|
|
1892
2109
|
}
|
|
1893
|
-
declare const
|
|
2110
|
+
declare const OAuthHttpApi_base: HttpApi.HttpApi<"OAuthHttpApi", typeof OAuthHttpApiGroup>;
|
|
2111
|
+
export declare class OAuthHttpApi extends OAuthHttpApi_base {
|
|
2112
|
+
}
|
|
2113
|
+
declare const OAuthTokenHttpApiGroup_base: HttpApiGroup.HttpApiGroup<"oauthToken", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"token", "POST", "/auth/oauth/token", never, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
1894
2114
|
readonly access_token: Schema.String;
|
|
1895
2115
|
readonly token_type: Schema.String;
|
|
1896
2116
|
readonly expires_in: Schema.optional<Schema.Number>;
|
|
@@ -1898,7 +2118,13 @@ declare const OAuthTokenApi_base: HttpApiGroup.HttpApiGroup<"oauthToken", import
|
|
|
1898
2118
|
readonly id_token: Schema.optional<Schema.String>;
|
|
1899
2119
|
readonly scope: Schema.optional<Schema.String>;
|
|
1900
2120
|
readonly extra: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
1901
|
-
}>>,
|
|
2121
|
+
}>>, Schema.toCodecJson<typeof AuthInternalError | typeof OAuthTokenEndpointError>, AuthSchemaErrorMiddleware | OAuthNoStoreMiddleware, never>, false>;
|
|
2122
|
+
export declare class OAuthTokenHttpApiGroup extends OAuthTokenHttpApiGroup_base {
|
|
2123
|
+
}
|
|
2124
|
+
declare const OAuthTokenHttpApi_base: HttpApi.HttpApi<"OAuthTokenHttpApi", typeof OAuthTokenHttpApiGroup>;
|
|
2125
|
+
export declare class OAuthTokenHttpApi extends OAuthTokenHttpApi_base {
|
|
2126
|
+
}
|
|
2127
|
+
declare const OAuthTokenIntrospectionHttpApiGroup_base: HttpApiGroup.HttpApiGroup<"oauthTokenIntrospection", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"introspect", "POST", "/auth/oauth/introspect", never, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
1902
2128
|
readonly active: Schema.Boolean;
|
|
1903
2129
|
readonly scope: Schema.optional<Schema.String>;
|
|
1904
2130
|
readonly client_id: Schema.optional<Schema.String>;
|
|
@@ -1912,13 +2138,19 @@ declare const OAuthTokenApi_base: HttpApiGroup.HttpApiGroup<"oauthToken", import
|
|
|
1912
2138
|
readonly iss: Schema.optional<Schema.String>;
|
|
1913
2139
|
readonly jti: Schema.optional<Schema.String>;
|
|
1914
2140
|
readonly extra: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
1915
|
-
}>>,
|
|
1916
|
-
export declare class
|
|
2141
|
+
}>>, Schema.toCodecJson<typeof AuthInternalError | typeof OAuthTokenIntrospectionEndpointError>, AuthSchemaErrorMiddleware, never>, false>;
|
|
2142
|
+
export declare class OAuthTokenIntrospectionHttpApiGroup extends OAuthTokenIntrospectionHttpApiGroup_base {
|
|
1917
2143
|
}
|
|
1918
|
-
declare const
|
|
1919
|
-
export declare class
|
|
2144
|
+
declare const OAuthTokenIntrospectionHttpApi_base: HttpApi.HttpApi<"OAuthTokenIntrospectionHttpApi", typeof OAuthTokenIntrospectionHttpApiGroup>;
|
|
2145
|
+
export declare class OAuthTokenIntrospectionHttpApi extends OAuthTokenIntrospectionHttpApi_base {
|
|
2146
|
+
}
|
|
2147
|
+
declare const OAuthTokenRevocationHttpApiGroup_base: HttpApiGroup.HttpApiGroup<"oauthTokenRevocation", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"revoke", "POST", "/auth/oauth/revoke", never, never, never, never, Schema.toCodecJson<import("effect/unstable/httpapi/HttpApiSchema").NoContent>, Schema.toCodecJson<typeof AuthInternalError | typeof OAuthTokenRevocationEndpointError>, AuthSchemaErrorMiddleware, never>, false>;
|
|
2148
|
+
export declare class OAuthTokenRevocationHttpApiGroup extends OAuthTokenRevocationHttpApiGroup_base {
|
|
2149
|
+
}
|
|
2150
|
+
declare const OAuthTokenRevocationHttpApi_base: HttpApi.HttpApi<"OAuthTokenRevocationHttpApi", typeof OAuthTokenRevocationHttpApiGroup>;
|
|
2151
|
+
export declare class OAuthTokenRevocationHttpApi extends OAuthTokenRevocationHttpApi_base {
|
|
1920
2152
|
}
|
|
1921
|
-
declare const
|
|
2153
|
+
declare const OAuthProviderAuthorizationHttpApiGroup_base: HttpApiGroup.HttpApiGroup<"oauthProviderAuthorization", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"authorize", "GET", "/auth/oauth/authorize", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
1922
2154
|
readonly response_type: Schema.String;
|
|
1923
2155
|
readonly client_id: Schema.optional<Schema.String>;
|
|
1924
2156
|
readonly redirect_uri: Schema.optional<Schema.String>;
|
|
@@ -1926,229 +2158,25 @@ declare const OAuthProviderAuthorizationApi_base: HttpApiGroup.HttpApiGroup<"oau
|
|
|
1926
2158
|
readonly state: Schema.optional<Schema.String>;
|
|
1927
2159
|
readonly code_challenge: Schema.optional<Schema.String>;
|
|
1928
2160
|
readonly code_challenge_method: Schema.optional<Schema.String>;
|
|
1929
|
-
}>>,
|
|
1930
|
-
export declare class
|
|
2161
|
+
}>>, never, never, Schema.toCodecJson<import("effect/unstable/httpapi/HttpApiSchema").NoContent>, Schema.toCodecJson<typeof AuthInternalError | typeof OAuthAuthorizationEndpointError>, AuthSchemaErrorMiddleware, never>, false>;
|
|
2162
|
+
export declare class OAuthProviderAuthorizationHttpApiGroup extends OAuthProviderAuthorizationHttpApiGroup_base {
|
|
1931
2163
|
}
|
|
1932
|
-
declare const OAuthProviderAuthorizationHttpApi_base: HttpApi.HttpApi<"OAuthProviderAuthorizationHttpApi", typeof
|
|
2164
|
+
declare const OAuthProviderAuthorizationHttpApi_base: HttpApi.HttpApi<"OAuthProviderAuthorizationHttpApi", typeof OAuthProviderAuthorizationHttpApiGroup>;
|
|
1933
2165
|
export declare class OAuthProviderAuthorizationHttpApi extends OAuthProviderAuthorizationHttpApi_base {
|
|
1934
2166
|
}
|
|
1935
|
-
declare const
|
|
1936
|
-
|
|
1937
|
-
readonly approvalChallengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
|
|
1938
|
-
readonly secret: Schema.optional<Schema.String>;
|
|
1939
|
-
readonly rememberDevice: Schema.optional<Schema.Boolean>;
|
|
1940
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
1941
|
-
readonly type: Schema.Literal<"authenticated">;
|
|
1942
|
-
readonly expiresAt: Schema.Number;
|
|
1943
|
-
readonly aal: Schema.Literals<readonly ["aal1", "aal2", "aal3"]>;
|
|
1944
|
-
readonly amr: Schema.$Array<Schema.String>;
|
|
1945
|
-
readonly mfaVerifiedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
1946
|
-
readonly claims: Schema.optional<Schema.Struct<{
|
|
1947
|
-
readonly emailVerified: Schema.optional<Schema.Boolean>;
|
|
1948
|
-
readonly requirements: Schema.optional<Schema.$Array<Schema.String>>;
|
|
1949
|
-
}>>;
|
|
1950
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthPolicyDeniedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"finalize", "POST", "/auth/login-approval/finalize", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
1951
|
-
readonly flowId: Schema.brand<Schema.String, "auth/AuthFlowId">;
|
|
1952
|
-
readonly approvalChallengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
|
|
1953
|
-
readonly rememberDevice: Schema.optional<Schema.Boolean>;
|
|
1954
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
1955
|
-
readonly type: Schema.Literal<"authenticated">;
|
|
1956
|
-
readonly expiresAt: Schema.Number;
|
|
1957
|
-
readonly aal: Schema.Literals<readonly ["aal1", "aal2", "aal3"]>;
|
|
1958
|
-
readonly amr: Schema.$Array<Schema.String>;
|
|
1959
|
-
readonly mfaVerifiedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
1960
|
-
readonly claims: Schema.optional<Schema.Struct<{
|
|
1961
|
-
readonly emailVerified: Schema.optional<Schema.Boolean>;
|
|
1962
|
-
readonly requirements: Schema.optional<Schema.$Array<Schema.String>>;
|
|
1963
|
-
}>>;
|
|
1964
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthPolicyDeniedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"status", "POST", "/auth/login-approval/status", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
1965
|
-
readonly flowId: Schema.brand<Schema.String, "auth/AuthFlowId">;
|
|
1966
|
-
readonly approvalChallengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
|
|
1967
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
1968
|
-
readonly status: Schema.Literals<readonly ["pending", "approved", "denied", "expired"]>;
|
|
1969
|
-
readonly expiresAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
1970
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthPolicyDeniedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never>, false>;
|
|
1971
|
-
export declare class LoginApprovalApi extends LoginApprovalApi_base {
|
|
2167
|
+
declare const MfaHttpApi_base: HttpApi.HttpApi<"MfaHttpApi", typeof MfaHttpApiGroup>;
|
|
2168
|
+
export declare class MfaHttpApi extends MfaHttpApi_base {
|
|
1972
2169
|
}
|
|
1973
|
-
declare const
|
|
1974
|
-
|
|
1975
|
-
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
1976
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
1977
|
-
readonly challengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
|
|
1978
|
-
readonly expiresAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
1979
|
-
readonly publicKey: Schema.Struct<{
|
|
1980
|
-
readonly challenge: Schema.String;
|
|
1981
|
-
readonly rpId: Schema.String;
|
|
1982
|
-
readonly timeout: Schema.optional<Schema.Number>;
|
|
1983
|
-
readonly allowCredentials: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1984
|
-
readonly type: Schema.Literal<"public-key">;
|
|
1985
|
-
readonly id: Schema.String;
|
|
1986
|
-
readonly transports: Schema.optional<Schema.$Array<Schema.String>>;
|
|
1987
|
-
}>>>;
|
|
1988
|
-
readonly userVerification: Schema.optional<Schema.Literals<readonly ["required", "preferred", "discouraged"]>>;
|
|
1989
|
-
}>;
|
|
1990
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"options", "POST", "/auth/mfa/options", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
1991
|
-
readonly flowId: Schema.brand<Schema.String, "auth/AuthFlowId">;
|
|
1992
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
1993
|
-
readonly factors: Schema.$Array<Schema.Struct<{
|
|
1994
|
-
readonly type: Schema.Literals<readonly ["totp", "backup-code", "passkey"]>;
|
|
1995
|
-
}>>;
|
|
1996
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verifyPasskey", "POST", "/auth/mfa/passkey/verify", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
1997
|
-
readonly flowId: Schema.brand<Schema.String, "auth/AuthFlowId">;
|
|
1998
|
-
readonly challengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
|
|
1999
|
-
readonly credential: Schema.Struct<{
|
|
2000
|
-
readonly id: Schema.String;
|
|
2001
|
-
readonly rawId: Schema.optional<Schema.String>;
|
|
2002
|
-
readonly type: Schema.Literal<"public-key">;
|
|
2003
|
-
readonly response: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
2004
|
-
readonly authenticatorAttachment: Schema.optional<Schema.String>;
|
|
2005
|
-
readonly clientExtensionResults: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
2006
|
-
}>;
|
|
2007
|
-
readonly userId: Schema.optional<Schema.brand<Schema.String, "auth/UserId">>;
|
|
2008
|
-
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
2009
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
2010
|
-
readonly type: Schema.Literal<"authenticated">;
|
|
2011
|
-
readonly expiresAt: Schema.Number;
|
|
2012
|
-
readonly aal: Schema.Literals<readonly ["aal1", "aal2", "aal3"]>;
|
|
2013
|
-
readonly amr: Schema.$Array<Schema.String>;
|
|
2014
|
-
readonly mfaVerifiedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
2015
|
-
readonly claims: Schema.optional<Schema.Struct<{
|
|
2016
|
-
readonly emailVerified: Schema.optional<Schema.Boolean>;
|
|
2017
|
-
readonly requirements: Schema.optional<Schema.$Array<Schema.String>>;
|
|
2018
|
-
}>>;
|
|
2019
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthPolicyDeniedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verifyRecoveryCode", "POST", "/auth/mfa/recovery-code/verify", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
2020
|
-
readonly flowId: Schema.brand<Schema.String, "auth/AuthFlowId">;
|
|
2021
|
-
readonly userId: Schema.brand<Schema.String, "auth/UserId">;
|
|
2022
|
-
readonly code: Schema.String;
|
|
2023
|
-
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
2024
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
2025
|
-
readonly type: Schema.Literal<"authenticated">;
|
|
2026
|
-
readonly expiresAt: Schema.Number;
|
|
2027
|
-
readonly aal: Schema.Literals<readonly ["aal1", "aal2", "aal3"]>;
|
|
2028
|
-
readonly amr: Schema.$Array<Schema.String>;
|
|
2029
|
-
readonly mfaVerifiedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
2030
|
-
readonly claims: Schema.optional<Schema.Struct<{
|
|
2031
|
-
readonly emailVerified: Schema.optional<Schema.Boolean>;
|
|
2032
|
-
readonly requirements: Schema.optional<Schema.$Array<Schema.String>>;
|
|
2033
|
-
}>>;
|
|
2034
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthInvalidCredentialsError | typeof AuthPolicyDeniedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verifyRecoveryCodeForFlow", "POST", "/auth/mfa/recovery-code/verify-flow", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
2035
|
-
readonly flowId: Schema.brand<Schema.String, "auth/AuthFlowId">;
|
|
2036
|
-
readonly code: Schema.String;
|
|
2037
|
-
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
2038
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
2039
|
-
readonly type: Schema.Literal<"authenticated">;
|
|
2040
|
-
readonly expiresAt: Schema.Number;
|
|
2041
|
-
readonly aal: Schema.Literals<readonly ["aal1", "aal2", "aal3"]>;
|
|
2042
|
-
readonly amr: Schema.$Array<Schema.String>;
|
|
2043
|
-
readonly mfaVerifiedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
2044
|
-
readonly claims: Schema.optional<Schema.Struct<{
|
|
2045
|
-
readonly emailVerified: Schema.optional<Schema.Boolean>;
|
|
2046
|
-
readonly requirements: Schema.optional<Schema.$Array<Schema.String>>;
|
|
2047
|
-
}>>;
|
|
2048
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthInvalidCredentialsError | typeof AuthPolicyDeniedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verifyTotp", "POST", "/auth/mfa/totp/verify", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
2049
|
-
readonly flowId: Schema.brand<Schema.String, "auth/AuthFlowId">;
|
|
2050
|
-
readonly userId: Schema.brand<Schema.String, "auth/UserId">;
|
|
2051
|
-
readonly code: Schema.String;
|
|
2052
|
-
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
2053
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
2054
|
-
readonly type: Schema.Literal<"authenticated">;
|
|
2055
|
-
readonly expiresAt: Schema.Number;
|
|
2056
|
-
readonly aal: Schema.Literals<readonly ["aal1", "aal2", "aal3"]>;
|
|
2057
|
-
readonly amr: Schema.$Array<Schema.String>;
|
|
2058
|
-
readonly mfaVerifiedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
2059
|
-
readonly claims: Schema.optional<Schema.Struct<{
|
|
2060
|
-
readonly emailVerified: Schema.optional<Schema.Boolean>;
|
|
2061
|
-
readonly requirements: Schema.optional<Schema.$Array<Schema.String>>;
|
|
2062
|
-
}>>;
|
|
2063
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthInvalidCredentialsError | typeof AuthPolicyDeniedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verifyTotpForFlow", "POST", "/auth/mfa/totp/verify-flow", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
2064
|
-
readonly flowId: Schema.brand<Schema.String, "auth/AuthFlowId">;
|
|
2065
|
-
readonly code: Schema.String;
|
|
2066
|
-
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
2067
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
2068
|
-
readonly type: Schema.Literal<"authenticated">;
|
|
2069
|
-
readonly expiresAt: Schema.Number;
|
|
2070
|
-
readonly aal: Schema.Literals<readonly ["aal1", "aal2", "aal3"]>;
|
|
2071
|
-
readonly amr: Schema.$Array<Schema.String>;
|
|
2072
|
-
readonly mfaVerifiedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
2073
|
-
readonly claims: Schema.optional<Schema.Struct<{
|
|
2074
|
-
readonly emailVerified: Schema.optional<Schema.Boolean>;
|
|
2075
|
-
readonly requirements: Schema.optional<Schema.$Array<Schema.String>>;
|
|
2076
|
-
}>>;
|
|
2077
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthInvalidCredentialsError | typeof AuthPolicyDeniedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never>, false>;
|
|
2078
|
-
export declare class MfaApi extends MfaApi_base {
|
|
2170
|
+
declare const StepUpHttpApi_base: HttpApi.HttpApi<"StepUpHttpApi", typeof StepUpHttpApiGroup>;
|
|
2171
|
+
export declare class StepUpHttpApi extends StepUpHttpApi_base {
|
|
2079
2172
|
}
|
|
2080
|
-
declare const
|
|
2081
|
-
readonly
|
|
2082
|
-
|
|
2083
|
-
}>>;
|
|
2084
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthUnauthenticatedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"startPasskey", "POST", "/auth/step-up/passkey/start", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
2085
|
-
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
2086
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
2087
|
-
readonly challengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
|
|
2088
|
-
readonly expiresAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
2089
|
-
readonly publicKey: Schema.Struct<{
|
|
2090
|
-
readonly challenge: Schema.String;
|
|
2091
|
-
readonly rpId: Schema.String;
|
|
2092
|
-
readonly timeout: Schema.optional<Schema.Number>;
|
|
2093
|
-
readonly allowCredentials: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
2094
|
-
readonly type: Schema.Literal<"public-key">;
|
|
2095
|
-
readonly id: Schema.String;
|
|
2096
|
-
readonly transports: Schema.optional<Schema.$Array<Schema.String>>;
|
|
2097
|
-
}>>>;
|
|
2098
|
-
readonly userVerification: Schema.optional<Schema.Literals<readonly ["required", "preferred", "discouraged"]>>;
|
|
2099
|
-
}>;
|
|
2100
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verifyRecoveryCode", "POST", "/auth/step-up/recovery-code/verify", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
2101
|
-
readonly code: Schema.String;
|
|
2102
|
-
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
2103
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
2104
|
-
readonly type: Schema.Literal<"authenticated">;
|
|
2105
|
-
readonly expiresAt: Schema.Number;
|
|
2106
|
-
readonly aal: Schema.Literals<readonly ["aal1", "aal2", "aal3"]>;
|
|
2107
|
-
readonly amr: Schema.$Array<Schema.String>;
|
|
2108
|
-
readonly mfaVerifiedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
2109
|
-
readonly claims: Schema.optional<Schema.Struct<{
|
|
2110
|
-
readonly emailVerified: Schema.optional<Schema.Boolean>;
|
|
2111
|
-
readonly requirements: Schema.optional<Schema.$Array<Schema.String>>;
|
|
2112
|
-
}>>;
|
|
2113
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthUnauthenticatedError | typeof AuthInvalidCredentialsError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verifyTotp", "POST", "/auth/step-up/totp/verify", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
2114
|
-
readonly code: Schema.String;
|
|
2115
|
-
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
2116
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
2117
|
-
readonly type: Schema.Literal<"authenticated">;
|
|
2118
|
-
readonly expiresAt: Schema.Number;
|
|
2119
|
-
readonly aal: Schema.Literals<readonly ["aal1", "aal2", "aal3"]>;
|
|
2120
|
-
readonly amr: Schema.$Array<Schema.String>;
|
|
2121
|
-
readonly mfaVerifiedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
2122
|
-
readonly claims: Schema.optional<Schema.Struct<{
|
|
2123
|
-
readonly emailVerified: Schema.optional<Schema.Boolean>;
|
|
2124
|
-
readonly requirements: Schema.optional<Schema.$Array<Schema.String>>;
|
|
2125
|
-
}>>;
|
|
2126
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthUnauthenticatedError | typeof AuthInvalidCredentialsError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verifyPasskey", "POST", "/auth/step-up/passkey/verify", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
2127
|
-
readonly challengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
|
|
2128
|
-
readonly credential: Schema.Struct<{
|
|
2129
|
-
readonly id: Schema.String;
|
|
2130
|
-
readonly rawId: Schema.optional<Schema.String>;
|
|
2131
|
-
readonly type: Schema.Literal<"public-key">;
|
|
2132
|
-
readonly response: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
2133
|
-
readonly authenticatorAttachment: Schema.optional<Schema.String>;
|
|
2134
|
-
readonly clientExtensionResults: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
2135
|
-
}>;
|
|
2173
|
+
declare const ApiKeyHttpApiGroup_base: HttpApiGroup.HttpApiGroup<"apiKey", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"createApiKey", "POST", "/auth/api-keys/", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
2174
|
+
readonly scopes: Schema.optional<Schema.$Array<Schema.String>>;
|
|
2175
|
+
readonly expiresAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
2136
2176
|
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
2137
|
-
}>>,
|
|
2138
|
-
readonly
|
|
2139
|
-
readonly
|
|
2140
|
-
readonly aal: Schema.Literals<readonly ["aal1", "aal2", "aal3"]>;
|
|
2141
|
-
readonly amr: Schema.$Array<Schema.String>;
|
|
2142
|
-
readonly mfaVerifiedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
2143
|
-
readonly claims: Schema.optional<Schema.Struct<{
|
|
2144
|
-
readonly emailVerified: Schema.optional<Schema.Boolean>;
|
|
2145
|
-
readonly requirements: Schema.optional<Schema.$Array<Schema.String>>;
|
|
2146
|
-
}>>;
|
|
2147
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never>, false>;
|
|
2148
|
-
export declare class StepUpApi extends StepUpApi_base {
|
|
2149
|
-
}
|
|
2150
|
-
declare const ApiKeyApi_base: HttpApiGroup.HttpApiGroup<"apiKey", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"listApiKeys", "GET", "/auth/api-keys/", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
2151
|
-
readonly keys: Schema.$Array<Schema.Struct<{
|
|
2177
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
2178
|
+
readonly secret: Schema.String;
|
|
2179
|
+
readonly key: Schema.Struct<{
|
|
2152
2180
|
readonly keyId: Schema.String;
|
|
2153
2181
|
readonly prefix: Schema.String;
|
|
2154
2182
|
readonly scopes: Schema.$Array<Schema.String>;
|
|
@@ -2157,17 +2185,9 @@ declare const ApiKeyApi_base: HttpApiGroup.HttpApiGroup<"apiKey", import("effect
|
|
|
2157
2185
|
readonly lastUsedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
2158
2186
|
readonly revokedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
2159
2187
|
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
2160
|
-
}
|
|
2161
|
-
}>>, import("
|
|
2162
|
-
readonly
|
|
2163
|
-
readonly reason: Schema.optional<Schema.String>;
|
|
2164
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/unstable/httpapi/HttpApiSchema").NoContent>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"createApiKey", "POST", "/auth/api-keys/", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
2165
|
-
readonly scopes: Schema.optional<Schema.$Array<Schema.String>>;
|
|
2166
|
-
readonly expiresAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
2167
|
-
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
2168
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
2169
|
-
readonly secret: Schema.String;
|
|
2170
|
-
readonly key: Schema.Struct<{
|
|
2188
|
+
}>;
|
|
2189
|
+
}>>, Schema.toCodecJson<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthRequestRejectedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"listApiKeys", "GET", "/auth/api-keys/", never, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
2190
|
+
readonly keys: Schema.$Array<Schema.Struct<{
|
|
2171
2191
|
readonly keyId: Schema.String;
|
|
2172
2192
|
readonly prefix: Schema.String;
|
|
2173
2193
|
readonly scopes: Schema.$Array<Schema.String>;
|
|
@@ -2176,14 +2196,20 @@ declare const ApiKeyApi_base: HttpApiGroup.HttpApiGroup<"apiKey", import("effect
|
|
|
2176
2196
|
readonly lastUsedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
2177
2197
|
readonly revokedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
2178
2198
|
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
2179
|
-
}
|
|
2180
|
-
}>>, import("
|
|
2181
|
-
|
|
2199
|
+
}>>;
|
|
2200
|
+
}>>, Schema.toCodecJson<typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthRequestRejectedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"revokeApiKey", "POST", "/auth/api-keys/revoke", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
2201
|
+
readonly keyId: Schema.String;
|
|
2202
|
+
readonly reason: Schema.optional<Schema.String>;
|
|
2203
|
+
}>>, never, Schema.toCodecJson<import("effect/unstable/httpapi/HttpApiSchema").NoContent>, Schema.toCodecJson<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthRequestRejectedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never>, false>;
|
|
2204
|
+
export declare class ApiKeyHttpApiGroup extends ApiKeyHttpApiGroup_base {
|
|
2205
|
+
}
|
|
2206
|
+
declare const ApiKeyHttpApi_base: HttpApi.HttpApi<"ApiKeyHttpApi", typeof ApiKeyHttpApiGroup>;
|
|
2207
|
+
export declare class ApiKeyHttpApi extends ApiKeyHttpApi_base {
|
|
2182
2208
|
}
|
|
2183
|
-
declare const
|
|
2209
|
+
declare const RefreshTokenHttpApiGroup_base: HttpApiGroup.HttpApiGroup<"refreshToken", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"refresh", "POST", "/auth/token/refresh", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
2184
2210
|
readonly refreshToken: Schema.String;
|
|
2185
2211
|
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
2186
|
-
}>>,
|
|
2212
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
2187
2213
|
readonly accessToken: Schema.String;
|
|
2188
2214
|
readonly accessTokenExpiresAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
2189
2215
|
readonly refreshToken: Schema.String;
|
|
@@ -2199,16 +2225,15 @@ declare const RefreshTokenApi_base: HttpApiGroup.HttpApiGroup<"refreshToken", im
|
|
|
2199
2225
|
readonly reuseDetectedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
2200
2226
|
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
2201
2227
|
}>;
|
|
2202
|
-
}>>,
|
|
2203
|
-
export declare class
|
|
2228
|
+
}>>, Schema.toCodecJson<typeof AuthBadRequestError | typeof AuthInvalidCredentialsError | typeof AuthInternalError>, AuthSchemaErrorMiddleware, never>, false>;
|
|
2229
|
+
export declare class RefreshTokenHttpApiGroup extends RefreshTokenHttpApiGroup_base {
|
|
2204
2230
|
}
|
|
2205
|
-
declare const
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/unstable/httpapi/HttpApiSchema").NoContent>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthInternalError>, AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"introspect", "POST", "/auth/jwt/introspect", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
2231
|
+
declare const RefreshTokenHttpApi_base: HttpApi.HttpApi<"RefreshTokenHttpApi", typeof RefreshTokenHttpApiGroup>;
|
|
2232
|
+
export declare class RefreshTokenHttpApi extends RefreshTokenHttpApi_base {
|
|
2233
|
+
}
|
|
2234
|
+
declare const JwtHttpApiGroup_base: HttpApiGroup.HttpApiGroup<"jwt", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"introspect", "POST", "/auth/jwt/introspect", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
2210
2235
|
readonly token: Schema.String;
|
|
2211
|
-
}>>,
|
|
2236
|
+
}>>, never, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
|
|
2212
2237
|
readonly active: Schema.Literal<true>;
|
|
2213
2238
|
readonly header: Schema.Struct<{
|
|
2214
2239
|
readonly typ: Schema.Literal<"JWT">;
|
|
@@ -2234,21 +2259,29 @@ declare const JwtApi_base: HttpApiGroup.HttpApiGroup<"jwt", import("effect/unsta
|
|
|
2234
2259
|
readonly expiresAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
2235
2260
|
readonly revokedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
2236
2261
|
readonly revokedReason: Schema.optional<Schema.String>;
|
|
2237
|
-
}>]>>, import("effect/unstable/httpapi/HttpApiEndpoint").
|
|
2238
|
-
|
|
2262
|
+
}>]>>, Schema.toCodecJson<typeof AuthBadRequestError | typeof AuthInternalError>, AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"revoke", "POST", "/auth/jwt/revoke", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
2263
|
+
readonly jwtId: Schema.String;
|
|
2264
|
+
readonly expiresAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
2265
|
+
readonly reason: Schema.optional<Schema.String>;
|
|
2266
|
+
}>>, never, Schema.toCodecJson<import("effect/unstable/httpapi/HttpApiSchema").NoContent>, Schema.toCodecJson<typeof AuthBadRequestError | typeof AuthInternalError>, AuthSchemaErrorMiddleware, never>, false>;
|
|
2267
|
+
export declare class JwtHttpApiGroup extends JwtHttpApiGroup_base {
|
|
2268
|
+
}
|
|
2269
|
+
declare const JwtHttpApi_base: HttpApi.HttpApi<"JwtHttpApi", typeof JwtHttpApiGroup>;
|
|
2270
|
+
export declare class JwtHttpApi extends JwtHttpApi_base {
|
|
2239
2271
|
}
|
|
2240
|
-
declare const
|
|
2272
|
+
declare const JwtDiscoveryHttpApiGroup_base: HttpApiGroup.HttpApiGroup<"jwtDiscovery", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"jwks", "GET", "/.well-known/jwks.json", never, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
2241
2273
|
readonly keys: Schema.$Array<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
2242
|
-
}>>,
|
|
2243
|
-
export declare class
|
|
2274
|
+
}>>, Schema.toCodecJson<typeof AuthInternalError>, AuthSchemaErrorMiddleware, never>, false>;
|
|
2275
|
+
export declare class JwtDiscoveryHttpApiGroup extends JwtDiscoveryHttpApiGroup_base {
|
|
2244
2276
|
}
|
|
2245
|
-
declare const JwtDiscoveryHttpApi_base: HttpApi.HttpApi<"JwtDiscoveryHttpApi", typeof
|
|
2277
|
+
declare const JwtDiscoveryHttpApi_base: HttpApi.HttpApi<"JwtDiscoveryHttpApi", typeof JwtDiscoveryHttpApiGroup>;
|
|
2246
2278
|
export declare class JwtDiscoveryHttpApi extends JwtDiscoveryHttpApi_base {
|
|
2247
2279
|
}
|
|
2248
|
-
declare const
|
|
2280
|
+
declare const OidcDiscoveryHttpApiGroup_base: HttpApiGroup.HttpApiGroup<"oidcDiscovery", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"openidConfiguration", "GET", "/.well-known/openid-configuration", never, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
2249
2281
|
readonly issuer: Schema.String;
|
|
2250
2282
|
readonly authorization_endpoint: Schema.String;
|
|
2251
2283
|
readonly token_endpoint: Schema.String;
|
|
2284
|
+
readonly device_authorization_endpoint: Schema.optional<Schema.String>;
|
|
2252
2285
|
readonly jwks_uri: Schema.String;
|
|
2253
2286
|
readonly response_types_supported: Schema.$Array<Schema.String>;
|
|
2254
2287
|
readonly subject_types_supported: Schema.$Array<Schema.String>;
|
|
@@ -2264,28 +2297,22 @@ declare const OidcDiscoveryApi_base: HttpApiGroup.HttpApiGroup<"oidcDiscovery",
|
|
|
2264
2297
|
readonly introspection_endpoint: Schema.optional<Schema.String>;
|
|
2265
2298
|
readonly revocation_endpoint: Schema.optional<Schema.String>;
|
|
2266
2299
|
readonly revocation_endpoint_auth_methods_supported: Schema.optional<Schema.$Array<Schema.String>>;
|
|
2267
|
-
}>>,
|
|
2268
|
-
export declare class
|
|
2300
|
+
}>>, Schema.toCodecJson<typeof AuthInternalError>, AuthSchemaErrorMiddleware, never>, false>;
|
|
2301
|
+
export declare class OidcDiscoveryHttpApiGroup extends OidcDiscoveryHttpApiGroup_base {
|
|
2269
2302
|
}
|
|
2270
|
-
declare const OidcDiscoveryHttpApi_base: HttpApi.HttpApi<"OidcDiscoveryHttpApi", typeof
|
|
2303
|
+
declare const OidcDiscoveryHttpApi_base: HttpApi.HttpApi<"OidcDiscoveryHttpApi", typeof OidcDiscoveryHttpApiGroup>;
|
|
2271
2304
|
export declare class OidcDiscoveryHttpApi extends OidcDiscoveryHttpApi_base {
|
|
2272
2305
|
}
|
|
2273
|
-
declare const
|
|
2274
|
-
readonly challengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
|
|
2275
|
-
readonly secret: Schema.String;
|
|
2276
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/unstable/httpapi/HttpApiSchema").NoContent>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthPolicyDeniedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never>, false>;
|
|
2277
|
-
export declare class SecurityApi extends SecurityApi_base {
|
|
2278
|
-
}
|
|
2279
|
-
declare const SecurityTimelineApi_base: HttpApiGroup.HttpApiGroup<"securityTimeline", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"list", "GET", "/auth/security/timeline", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<Schema.Struct<{
|
|
2306
|
+
declare const SecurityTimelineHttpApiGroup_base: HttpApiGroup.HttpApiGroup<"securityTimeline", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"list", "GET", "/auth/security/timeline", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
2280
2307
|
readonly limit: Schema.optional<Schema.Number>;
|
|
2281
2308
|
readonly beforeOccurredAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
2282
|
-
readonly types: Schema.optional<Schema.$Array<Schema.Literals<readonly ["auth.login.succeeded", "auth.login.failed", "auth.session.revoked", "auth.risk.assessed", "auth.policy.denied", "auth.oauth.account.linked", "auth.oauth.account.unlinked", "auth.oauth.link_confirmation.started", "auth.oauth.link_confirmation.confirmed", "auth.oauth.provider_token.refreshed", "auth.oauth.provider_token.revoked", "auth.passkey.credential.revoked", "auth.totp.enrollment.started", "auth.totp.factor.confirmed", "auth.totp.factor.verified", "auth.totp.factor.revoked", "auth.recovery_code.generated", "auth.recovery_code.verified", "auth.recovery_code.revoked", "auth.api_key.created", "auth.api_key.verified", "auth.api_key.revoked", "auth.api_key.verification_failed", "auth.refresh_token.issued", "auth.refresh_token.rotated", "auth.refresh_token.reuse_detected", "auth.refresh_token.revoked", "auth.incident_action.executed", "auth.jwt.introspected", "auth.jwt.revoked"]>>>;
|
|
2283
|
-
readonly categories: Schema.optional<Schema.$Array<Schema.Literals<readonly ["api_key", "auth", "incident", "jwt", "mfa", "oauth", "policy", "refresh_token", "risk", "session"]>>>;
|
|
2284
|
-
}>>,
|
|
2309
|
+
readonly types: Schema.optional<Schema.$Array<Schema.Literals<readonly ["auth.login.succeeded", "auth.login.failed", "auth.session.revoked", "auth.session.assurance_changed", "auth.session.step_up_completed", "auth.session.primary_reauthenticated", "auth.session.recovery_remediation.entered", "auth.session.recovery_remediation.completed", "auth.risk.assessed", "auth.policy.denied", "auth.identity.added", "auth.identity.replaced", "auth.identity.revoked", "auth.identity.primary_changed", "auth.oauth.account.linked", "auth.oauth.account.unlinked", "auth.oauth.link_confirmation.started", "auth.oauth.link_confirmation.confirmed", "auth.oauth.provider_token.refreshed", "auth.oauth.provider_token.revoked", "auth.passkey.credential.revoked", "auth.totp.enrollment.started", "auth.totp.factor.confirmed", "auth.totp.factor.verified", "auth.totp.factor.revoked", "auth.recovery_code.generated", "auth.recovery_code.verified", "auth.recovery_code.revoked", "auth.api_key.created", "auth.api_key.verified", "auth.api_key.revoked", "auth.api_key.verification_failed", "auth.refresh_token.issued", "auth.refresh_token.rotated", "auth.refresh_token.reuse_detected", "auth.refresh_token.revoked", "auth.incident_action.executed", "auth.jwt.introspected", "auth.jwt.revoked", "auth.permission_definition.created", "auth.permission_definition.updated", "auth.permission_definition.disabled", "auth.permission_definition.enabled", "auth.permission_definition.deleted", "auth.role_definition.created", "auth.role_definition.updated", "auth.role_definition.disabled", "auth.role_definition.enabled", "auth.role_definition.deleted", "auth.permission.granted", "auth.permission.revoked", "auth.role.granted", "auth.role.revoked", "auth.role_permission.assigned", "auth.role_permission.removed"]>>>;
|
|
2310
|
+
readonly categories: Schema.optional<Schema.$Array<Schema.Literals<readonly ["api_key", "auth", "authorization", "identity", "incident", "jwt", "mfa", "oauth", "policy", "refresh_token", "risk", "session"]>>>;
|
|
2311
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
2285
2312
|
readonly events: Schema.$Array<Schema.Struct<{
|
|
2286
2313
|
readonly eventId: Schema.String;
|
|
2287
|
-
readonly type: Schema.Literals<readonly ["auth.login.succeeded", "auth.login.failed", "auth.session.revoked", "auth.risk.assessed", "auth.policy.denied", "auth.oauth.account.linked", "auth.oauth.account.unlinked", "auth.oauth.link_confirmation.started", "auth.oauth.link_confirmation.confirmed", "auth.oauth.provider_token.refreshed", "auth.oauth.provider_token.revoked", "auth.passkey.credential.revoked", "auth.totp.enrollment.started", "auth.totp.factor.confirmed", "auth.totp.factor.verified", "auth.totp.factor.revoked", "auth.recovery_code.generated", "auth.recovery_code.verified", "auth.recovery_code.revoked", "auth.api_key.created", "auth.api_key.verified", "auth.api_key.revoked", "auth.api_key.verification_failed", "auth.refresh_token.issued", "auth.refresh_token.rotated", "auth.refresh_token.reuse_detected", "auth.refresh_token.revoked", "auth.incident_action.executed", "auth.jwt.introspected", "auth.jwt.revoked"]>;
|
|
2288
|
-
readonly category: Schema.Literals<readonly ["api_key", "auth", "incident", "jwt", "mfa", "oauth", "policy", "refresh_token", "risk", "session"]>;
|
|
2314
|
+
readonly type: Schema.Literals<readonly ["auth.login.succeeded", "auth.login.failed", "auth.session.revoked", "auth.session.assurance_changed", "auth.session.step_up_completed", "auth.session.primary_reauthenticated", "auth.session.recovery_remediation.entered", "auth.session.recovery_remediation.completed", "auth.risk.assessed", "auth.policy.denied", "auth.identity.added", "auth.identity.replaced", "auth.identity.revoked", "auth.identity.primary_changed", "auth.oauth.account.linked", "auth.oauth.account.unlinked", "auth.oauth.link_confirmation.started", "auth.oauth.link_confirmation.confirmed", "auth.oauth.provider_token.refreshed", "auth.oauth.provider_token.revoked", "auth.passkey.credential.revoked", "auth.totp.enrollment.started", "auth.totp.factor.confirmed", "auth.totp.factor.verified", "auth.totp.factor.revoked", "auth.recovery_code.generated", "auth.recovery_code.verified", "auth.recovery_code.revoked", "auth.api_key.created", "auth.api_key.verified", "auth.api_key.revoked", "auth.api_key.verification_failed", "auth.refresh_token.issued", "auth.refresh_token.rotated", "auth.refresh_token.reuse_detected", "auth.refresh_token.revoked", "auth.incident_action.executed", "auth.jwt.introspected", "auth.jwt.revoked", "auth.permission_definition.created", "auth.permission_definition.updated", "auth.permission_definition.disabled", "auth.permission_definition.enabled", "auth.permission_definition.deleted", "auth.role_definition.created", "auth.role_definition.updated", "auth.role_definition.disabled", "auth.role_definition.enabled", "auth.role_definition.deleted", "auth.permission.granted", "auth.permission.revoked", "auth.role.granted", "auth.role.revoked", "auth.role_permission.assigned", "auth.role_permission.removed"]>;
|
|
2315
|
+
readonly category: Schema.Literals<readonly ["api_key", "auth", "authorization", "identity", "incident", "jwt", "mfa", "oauth", "policy", "refresh_token", "risk", "session"]>;
|
|
2289
2316
|
readonly severity: Schema.Literals<readonly ["info", "warning", "critical"]>;
|
|
2290
2317
|
readonly occurredAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
2291
2318
|
readonly summary: Schema.String;
|
|
@@ -2301,23 +2328,23 @@ declare const SecurityTimelineApi_base: HttpApiGroup.HttpApiGroup<"securityTimel
|
|
|
2301
2328
|
}>>;
|
|
2302
2329
|
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
2303
2330
|
}>>;
|
|
2304
|
-
}>>, import("
|
|
2305
|
-
export declare class
|
|
2331
|
+
}>>, Schema.toCodecJson<typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthRequestRejectedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never>, false>;
|
|
2332
|
+
export declare class SecurityTimelineHttpApiGroup extends SecurityTimelineHttpApiGroup_base {
|
|
2306
2333
|
}
|
|
2307
|
-
declare const SecurityTimelineHttpApi_base: HttpApi.HttpApi<"SecurityTimelineHttpApi", typeof
|
|
2334
|
+
declare const SecurityTimelineHttpApi_base: HttpApi.HttpApi<"SecurityTimelineHttpApi", typeof SecurityTimelineHttpApiGroup>;
|
|
2308
2335
|
export declare class SecurityTimelineHttpApi extends SecurityTimelineHttpApi_base {
|
|
2309
2336
|
}
|
|
2310
|
-
declare const
|
|
2337
|
+
declare const AdminSecurityTimelineHttpApiGroup_base: HttpApiGroup.HttpApiGroup<"adminSecurityTimeline", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"list", "GET", "/auth/admin/security/timeline", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
2311
2338
|
readonly userId: Schema.brand<Schema.String, "auth/UserId">;
|
|
2312
2339
|
readonly limit: Schema.optional<Schema.Number>;
|
|
2313
2340
|
readonly beforeOccurredAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
2314
|
-
readonly types: Schema.optional<Schema.$Array<Schema.Literals<readonly ["auth.login.succeeded", "auth.login.failed", "auth.session.revoked", "auth.risk.assessed", "auth.policy.denied", "auth.oauth.account.linked", "auth.oauth.account.unlinked", "auth.oauth.link_confirmation.started", "auth.oauth.link_confirmation.confirmed", "auth.oauth.provider_token.refreshed", "auth.oauth.provider_token.revoked", "auth.passkey.credential.revoked", "auth.totp.enrollment.started", "auth.totp.factor.confirmed", "auth.totp.factor.verified", "auth.totp.factor.revoked", "auth.recovery_code.generated", "auth.recovery_code.verified", "auth.recovery_code.revoked", "auth.api_key.created", "auth.api_key.verified", "auth.api_key.revoked", "auth.api_key.verification_failed", "auth.refresh_token.issued", "auth.refresh_token.rotated", "auth.refresh_token.reuse_detected", "auth.refresh_token.revoked", "auth.incident_action.executed", "auth.jwt.introspected", "auth.jwt.revoked"]>>>;
|
|
2315
|
-
readonly categories: Schema.optional<Schema.$Array<Schema.Literals<readonly ["api_key", "auth", "incident", "jwt", "mfa", "oauth", "policy", "refresh_token", "risk", "session"]>>>;
|
|
2316
|
-
}>>,
|
|
2341
|
+
readonly types: Schema.optional<Schema.$Array<Schema.Literals<readonly ["auth.login.succeeded", "auth.login.failed", "auth.session.revoked", "auth.session.assurance_changed", "auth.session.step_up_completed", "auth.session.primary_reauthenticated", "auth.session.recovery_remediation.entered", "auth.session.recovery_remediation.completed", "auth.risk.assessed", "auth.policy.denied", "auth.identity.added", "auth.identity.replaced", "auth.identity.revoked", "auth.identity.primary_changed", "auth.oauth.account.linked", "auth.oauth.account.unlinked", "auth.oauth.link_confirmation.started", "auth.oauth.link_confirmation.confirmed", "auth.oauth.provider_token.refreshed", "auth.oauth.provider_token.revoked", "auth.passkey.credential.revoked", "auth.totp.enrollment.started", "auth.totp.factor.confirmed", "auth.totp.factor.verified", "auth.totp.factor.revoked", "auth.recovery_code.generated", "auth.recovery_code.verified", "auth.recovery_code.revoked", "auth.api_key.created", "auth.api_key.verified", "auth.api_key.revoked", "auth.api_key.verification_failed", "auth.refresh_token.issued", "auth.refresh_token.rotated", "auth.refresh_token.reuse_detected", "auth.refresh_token.revoked", "auth.incident_action.executed", "auth.jwt.introspected", "auth.jwt.revoked", "auth.permission_definition.created", "auth.permission_definition.updated", "auth.permission_definition.disabled", "auth.permission_definition.enabled", "auth.permission_definition.deleted", "auth.role_definition.created", "auth.role_definition.updated", "auth.role_definition.disabled", "auth.role_definition.enabled", "auth.role_definition.deleted", "auth.permission.granted", "auth.permission.revoked", "auth.role.granted", "auth.role.revoked", "auth.role_permission.assigned", "auth.role_permission.removed"]>>>;
|
|
2342
|
+
readonly categories: Schema.optional<Schema.$Array<Schema.Literals<readonly ["api_key", "auth", "authorization", "identity", "incident", "jwt", "mfa", "oauth", "policy", "refresh_token", "risk", "session"]>>>;
|
|
2343
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
2317
2344
|
readonly events: Schema.$Array<Schema.Struct<{
|
|
2318
2345
|
readonly eventId: Schema.String;
|
|
2319
|
-
readonly type: Schema.Literals<readonly ["auth.login.succeeded", "auth.login.failed", "auth.session.revoked", "auth.risk.assessed", "auth.policy.denied", "auth.oauth.account.linked", "auth.oauth.account.unlinked", "auth.oauth.link_confirmation.started", "auth.oauth.link_confirmation.confirmed", "auth.oauth.provider_token.refreshed", "auth.oauth.provider_token.revoked", "auth.passkey.credential.revoked", "auth.totp.enrollment.started", "auth.totp.factor.confirmed", "auth.totp.factor.verified", "auth.totp.factor.revoked", "auth.recovery_code.generated", "auth.recovery_code.verified", "auth.recovery_code.revoked", "auth.api_key.created", "auth.api_key.verified", "auth.api_key.revoked", "auth.api_key.verification_failed", "auth.refresh_token.issued", "auth.refresh_token.rotated", "auth.refresh_token.reuse_detected", "auth.refresh_token.revoked", "auth.incident_action.executed", "auth.jwt.introspected", "auth.jwt.revoked"]>;
|
|
2320
|
-
readonly category: Schema.Literals<readonly ["api_key", "auth", "incident", "jwt", "mfa", "oauth", "policy", "refresh_token", "risk", "session"]>;
|
|
2346
|
+
readonly type: Schema.Literals<readonly ["auth.login.succeeded", "auth.login.failed", "auth.session.revoked", "auth.session.assurance_changed", "auth.session.step_up_completed", "auth.session.primary_reauthenticated", "auth.session.recovery_remediation.entered", "auth.session.recovery_remediation.completed", "auth.risk.assessed", "auth.policy.denied", "auth.identity.added", "auth.identity.replaced", "auth.identity.revoked", "auth.identity.primary_changed", "auth.oauth.account.linked", "auth.oauth.account.unlinked", "auth.oauth.link_confirmation.started", "auth.oauth.link_confirmation.confirmed", "auth.oauth.provider_token.refreshed", "auth.oauth.provider_token.revoked", "auth.passkey.credential.revoked", "auth.totp.enrollment.started", "auth.totp.factor.confirmed", "auth.totp.factor.verified", "auth.totp.factor.revoked", "auth.recovery_code.generated", "auth.recovery_code.verified", "auth.recovery_code.revoked", "auth.api_key.created", "auth.api_key.verified", "auth.api_key.revoked", "auth.api_key.verification_failed", "auth.refresh_token.issued", "auth.refresh_token.rotated", "auth.refresh_token.reuse_detected", "auth.refresh_token.revoked", "auth.incident_action.executed", "auth.jwt.introspected", "auth.jwt.revoked", "auth.permission_definition.created", "auth.permission_definition.updated", "auth.permission_definition.disabled", "auth.permission_definition.enabled", "auth.permission_definition.deleted", "auth.role_definition.created", "auth.role_definition.updated", "auth.role_definition.disabled", "auth.role_definition.enabled", "auth.role_definition.deleted", "auth.permission.granted", "auth.permission.revoked", "auth.role.granted", "auth.role.revoked", "auth.role_permission.assigned", "auth.role_permission.removed"]>;
|
|
2347
|
+
readonly category: Schema.Literals<readonly ["api_key", "auth", "authorization", "identity", "incident", "jwt", "mfa", "oauth", "policy", "refresh_token", "risk", "session"]>;
|
|
2321
2348
|
readonly severity: Schema.Literals<readonly ["info", "warning", "critical"]>;
|
|
2322
2349
|
readonly occurredAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
2323
2350
|
readonly summary: Schema.String;
|
|
@@ -2333,13 +2360,13 @@ declare const AdminSecurityTimelineApi_base: HttpApiGroup.HttpApiGroup<"adminSec
|
|
|
2333
2360
|
}>>;
|
|
2334
2361
|
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
2335
2362
|
}>>;
|
|
2336
|
-
}>>, import("
|
|
2337
|
-
export declare class
|
|
2363
|
+
}>>, Schema.toCodecJson<typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthRequestRejectedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never>, false>;
|
|
2364
|
+
export declare class AdminSecurityTimelineHttpApiGroup extends AdminSecurityTimelineHttpApiGroup_base {
|
|
2338
2365
|
}
|
|
2339
|
-
declare const AdminSecurityTimelineHttpApi_base: HttpApi.HttpApi<"AdminSecurityTimelineHttpApi", typeof
|
|
2366
|
+
declare const AdminSecurityTimelineHttpApi_base: HttpApi.HttpApi<"AdminSecurityTimelineHttpApi", typeof AdminSecurityTimelineHttpApiGroup>;
|
|
2340
2367
|
export declare class AdminSecurityTimelineHttpApi extends AdminSecurityTimelineHttpApi_base {
|
|
2341
2368
|
}
|
|
2342
|
-
declare const
|
|
2369
|
+
declare const TrustedDeviceHttpApiGroup_base: HttpApiGroup.HttpApiGroup<"trustedDevice", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"list", "GET", "/auth/trusted-devices/", never, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
2343
2370
|
readonly devices: Schema.$Array<Schema.Struct<{
|
|
2344
2371
|
readonly deviceId: Schema.String;
|
|
2345
2372
|
readonly createdAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
@@ -2347,17 +2374,17 @@ declare const TrustedDeviceApi_base: HttpApiGroup.HttpApiGroup<"trustedDevice",
|
|
|
2347
2374
|
readonly expiresAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
2348
2375
|
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
2349
2376
|
}>>;
|
|
2350
|
-
}>>, import("
|
|
2377
|
+
}>>, Schema.toCodecJson<typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthRequestRejectedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"revoke", "POST", "/auth/trusted-devices/revoke", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
2351
2378
|
readonly deviceId: Schema.String;
|
|
2352
|
-
}>>, import("effect/unstable/httpapi/
|
|
2353
|
-
export declare class
|
|
2379
|
+
}>>, never, Schema.toCodecJson<import("effect/unstable/httpapi/HttpApiSchema").NoContent>, Schema.toCodecJson<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthRequestRejectedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never>, false>;
|
|
2380
|
+
export declare class TrustedDeviceHttpApiGroup extends TrustedDeviceHttpApiGroup_base {
|
|
2354
2381
|
}
|
|
2355
|
-
declare const TrustedDeviceHttpApi_base: HttpApi.HttpApi<"TrustedDeviceHttpApi", typeof
|
|
2382
|
+
declare const TrustedDeviceHttpApi_base: HttpApi.HttpApi<"TrustedDeviceHttpApi", typeof TrustedDeviceHttpApiGroup>;
|
|
2356
2383
|
export declare class TrustedDeviceHttpApi extends TrustedDeviceHttpApi_base {
|
|
2357
2384
|
}
|
|
2358
|
-
declare const
|
|
2385
|
+
declare const AdminTrustedDeviceHttpApiGroup_base: HttpApiGroup.HttpApiGroup<"adminTrustedDevice", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"list", "GET", "/auth/admin/trusted-devices/", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
2359
2386
|
readonly userId: Schema.brand<Schema.String, "auth/UserId">;
|
|
2360
|
-
}>>,
|
|
2387
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
2361
2388
|
readonly devices: Schema.$Array<Schema.Struct<{
|
|
2362
2389
|
readonly deviceId: Schema.String;
|
|
2363
2390
|
readonly createdAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
@@ -2365,44 +2392,72 @@ declare const AdminTrustedDeviceApi_base: HttpApiGroup.HttpApiGroup<"adminTruste
|
|
|
2365
2392
|
readonly expiresAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
2366
2393
|
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
2367
2394
|
}>>;
|
|
2368
|
-
}>>, import("
|
|
2395
|
+
}>>, Schema.toCodecJson<typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthRequestRejectedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"revoke", "POST", "/auth/admin/trusted-devices/revoke", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
2369
2396
|
readonly userId: Schema.brand<Schema.String, "auth/UserId">;
|
|
2370
2397
|
readonly deviceId: Schema.String;
|
|
2371
|
-
}>>, import("effect/unstable/httpapi/
|
|
2372
|
-
export declare class
|
|
2398
|
+
}>>, never, Schema.toCodecJson<import("effect/unstable/httpapi/HttpApiSchema").NoContent>, Schema.toCodecJson<typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthRequestRejectedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never>, false>;
|
|
2399
|
+
export declare class AdminTrustedDeviceHttpApiGroup extends AdminTrustedDeviceHttpApiGroup_base {
|
|
2373
2400
|
}
|
|
2374
|
-
declare const AdminTrustedDeviceHttpApi_base: HttpApi.HttpApi<"AdminTrustedDeviceHttpApi", typeof
|
|
2401
|
+
declare const AdminTrustedDeviceHttpApi_base: HttpApi.HttpApi<"AdminTrustedDeviceHttpApi", typeof AdminTrustedDeviceHttpApiGroup>;
|
|
2375
2402
|
export declare class AdminTrustedDeviceHttpApi extends AdminTrustedDeviceHttpApi_base {
|
|
2376
2403
|
}
|
|
2377
|
-
declare const
|
|
2378
|
-
export declare class
|
|
2379
|
-
}
|
|
2380
|
-
export declare const
|
|
2381
|
-
export declare const
|
|
2382
|
-
export declare const
|
|
2383
|
-
export declare const
|
|
2384
|
-
export declare const
|
|
2385
|
-
export declare const
|
|
2386
|
-
export declare const
|
|
2387
|
-
export declare const
|
|
2388
|
-
export declare const
|
|
2389
|
-
export declare const
|
|
2390
|
-
export declare const
|
|
2391
|
-
export declare const
|
|
2392
|
-
export declare const
|
|
2393
|
-
export declare const
|
|
2394
|
-
export declare const
|
|
2395
|
-
export declare const
|
|
2396
|
-
export declare const
|
|
2397
|
-
export declare const
|
|
2398
|
-
export declare const
|
|
2399
|
-
export declare const
|
|
2400
|
-
export declare const
|
|
2401
|
-
export declare const
|
|
2402
|
-
export declare const
|
|
2403
|
-
export declare const
|
|
2404
|
-
export declare const
|
|
2405
|
-
export declare const
|
|
2406
|
-
export declare const
|
|
2404
|
+
declare const CoreAuthHttpApi_base: HttpApi.HttpApi<"AuthApi", typeof PasswordHttpApiGroup | typeof SessionHttpApiGroup | typeof EmailVerificationHttpApiGroup | typeof EmailOtpHttpApiGroup | typeof MagicLinkHttpApiGroup | typeof LoginApprovalHttpApiGroup | typeof LoginNotificationHttpApiGroup>;
|
|
2405
|
+
export declare class CoreAuthHttpApi extends CoreAuthHttpApi_base {
|
|
2406
|
+
}
|
|
2407
|
+
export declare const CoreAuthPasswordGroupLive: Layer.Layer<HttpApiGroup.Service<"AuthApi", "password">, never, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware | import("./Password.js").PasswordHttpOperations>;
|
|
2408
|
+
export declare const CoreAuthSessionGroupLive: Layer.Layer<HttpApiGroup.Service<"AuthApi", "session">, never, AuthOriginCheckMiddleware | SessionHttpOperations>;
|
|
2409
|
+
export declare const CoreAuthEmailVerificationGroupLive: Layer.Layer<HttpApiGroup.Service<"AuthApi", "emailVerification">, never, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware | EmailVerificationHttpOperations>;
|
|
2410
|
+
export declare const CoreAuthEmailOtpGroupLive: Layer.Layer<HttpApiGroup.Service<"AuthApi", "emailOtp">, never, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware | EmailOtpHttpOperations>;
|
|
2411
|
+
export declare const EmailAuthHttpApiGroupLive: Layer.Layer<HttpApiGroup.Service<"EmailAuthHttpApi", "emailAuth">, never, EmailAuthHttpOperations | (AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware)>;
|
|
2412
|
+
export declare const CoreAuthMagicLinkGroupLive: Layer.Layer<HttpApiGroup.Service<"AuthApi", "magicLink">, never, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware | MagicLinkHttpOperations>;
|
|
2413
|
+
export declare const PasskeyHttpApiGroupLive: Layer.Layer<HttpApiGroup.Service<"PasskeyHttpApi", "passkey">, never, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware | PasskeyHttpOperations>;
|
|
2414
|
+
export declare const IdentityHttpApiGroupLive: Layer.Layer<HttpApiGroup.Service<"IdentityHttpApi", "identity">, never, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware | IdentityHttpOperations>;
|
|
2415
|
+
export declare const TotpHttpApiGroupLive: Layer.Layer<HttpApiGroup.Service<"TotpHttpApi", "totp">, never, TotpHttpOperations | (AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware)>;
|
|
2416
|
+
export declare const RecoveryCodesHttpApiGroupLive: Layer.Layer<HttpApiGroup.Service<"RecoveryCodesHttpApi", "recoveryCodes">, never, RecoveryCodesHttpOperations | (AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware)>;
|
|
2417
|
+
export declare const MfaHttpApiGroupLive: Layer.Layer<HttpApiGroup.Service<"MfaHttpApi", "mfa">, never, MfaHttpOperations | (AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware)>;
|
|
2418
|
+
export declare const StepUpHttpApiGroupLive: Layer.Layer<HttpApiGroup.Service<"StepUpHttpApi", "stepUp">, never, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware | StepUpHttpOperations>;
|
|
2419
|
+
export declare const OAuthHttpApiGroupLive: Layer.Layer<HttpApiGroup.Service<"OAuthHttpApi", "oauth">, never, OAuthHttpOperations | (AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware)>;
|
|
2420
|
+
export declare const OAuthHttpApiLive: Layer.Layer<never, never, import("effect/FileSystem").FileSystem | import("effect/unstable/http/Etag").Generator | import("effect/unstable/http/HttpPlatform").HttpPlatform | HttpRouter.HttpRouter | OAuthAccountUnlinking | OAuthLinkConfirmation | OAuthProviders | OAuthState | import("effect/Path").Path | SessionCookie | Sessions>;
|
|
2421
|
+
export declare const ApiKeyHttpApiGroupLive: Layer.Layer<HttpApiGroup.Service<"ApiKeyHttpApi", "apiKey">, never, ApiKeyHttpOperations | (AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware)>;
|
|
2422
|
+
export declare const ApiKeyHttpApiLive: Layer.Layer<never, never, ApiKeyManagement | import("effect/FileSystem").FileSystem | import("effect/unstable/http/Etag").Generator | import("effect/unstable/http/HttpPlatform").HttpPlatform | HttpRouter.HttpRouter | import("effect/Path").Path | SessionCookie | Sessions>;
|
|
2423
|
+
export declare const RefreshTokenHttpApiGroupLive: Layer.Layer<HttpApiGroup.Service<"RefreshTokenHttpApi", "refreshToken">, never, AuthSchemaErrorMiddleware | RefreshTokenHttpOperations>;
|
|
2424
|
+
export declare const RefreshTokenHttpApiLive: Layer.Layer<never, never, import("effect/FileSystem").FileSystem | import("effect/unstable/http/Etag").Generator | import("effect/unstable/http/HttpPlatform").HttpPlatform | HttpRouter.HttpRouter | JwtIssuer | import("effect/Path").Path | RefreshTokenHttpConfig | RefreshTokenManagement>;
|
|
2425
|
+
export declare const JwtHttpApiGroupLive: Layer.Layer<HttpApiGroup.Service<"JwtHttpApi", "jwt">, never, AuthSchemaErrorMiddleware | JwtHttpOperations>;
|
|
2426
|
+
export declare const JwtHttpApiLive: Layer.Layer<never, never, import("effect/FileSystem").FileSystem | import("effect/unstable/http/Etag").Generator | import("effect/unstable/http/HttpPlatform").HttpPlatform | HttpRouter.HttpRouter | JwtRevocation | import("effect/Path").Path>;
|
|
2427
|
+
export declare const AdminSessionHttpApiGroupLive: Layer.Layer<HttpApiGroup.Service<"AdminSessionHttpApi", "adminSession">, never, AdminSessionHttpOperations | (AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware)>;
|
|
2428
|
+
export declare const AdminSessionHttpApiLive: Layer.Layer<never, never, AdminSessionAuthorization | import("effect/FileSystem").FileSystem | import("effect/unstable/http/Etag").Generator | import("effect/unstable/http/HttpPlatform").HttpPlatform | HttpRouter.HttpRouter | import("effect/Path").Path | SessionCookie | Sessions>;
|
|
2429
|
+
export declare const AdminPermissionDefinitionHttpApiGroupLive: Layer.Layer<HttpApiGroup.Service<"AdminPermissionDefinitionHttpApi", "adminPermissionDefinition">, never, AdminPermissionDefinitionHttpOperations | (AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware)>;
|
|
2430
|
+
export declare const AdminPermissionDefinitionHttpRequirementsLive: Layer.Layer<HttpRouter.Request<"GlobalRequires", AdminPermissionDefinitionAuthorization> | HttpRouter.Request<"GlobalRequires", PermissionAdministration> | HttpRouter.Request<"GlobalRequires", SessionCookie> | HttpRouter.Request<"GlobalRequires", Sessions> | HttpRouter.Request<"Requires", AdminPermissionDefinitionAuthorization> | HttpRouter.Request<"Requires", PermissionAdministration> | HttpRouter.Request<"Requires", SessionCookie> | HttpRouter.Request<"Requires", Sessions>, never, HttpRouter.HttpRouter | AdminPermissionDefinitionHttpOperationRequirements>;
|
|
2431
|
+
export declare const AdminPermissionDefinitionHttpApiLive: Layer.Layer<HttpRouter.Request<"GlobalRequires", AdminPermissionDefinitionAuthorization> | HttpRouter.Request<"GlobalRequires", PermissionAdministration> | HttpRouter.Request<"GlobalRequires", SessionCookie> | HttpRouter.Request<"GlobalRequires", Sessions> | HttpRouter.Request<"Requires", AdminPermissionDefinitionAuthorization> | HttpRouter.Request<"Requires", PermissionAdministration> | HttpRouter.Request<"Requires", SessionCookie> | HttpRouter.Request<"Requires", Sessions>, never, import("effect/FileSystem").FileSystem | import("effect/unstable/http/Etag").Generator | import("effect/unstable/http/HttpPlatform").HttpPlatform | HttpRouter.HttpRouter | import("effect/Path").Path | AdminPermissionDefinitionHttpOperationRequirements>;
|
|
2432
|
+
export declare const EmailAuthHttpApiLive: Layer.Layer<never, never, AuthRateLimit | EmailAuth | import("effect/FileSystem").FileSystem | import("effect/unstable/http/Etag").Generator | import("effect/unstable/http/HttpPlatform").HttpPlatform | HttpRouter.HttpRouter | import("effect/Path").Path>;
|
|
2433
|
+
export declare const PasskeyHttpApiLive: Layer.Layer<never, never, AuthHttp | AuthRateLimit | import("effect/FileSystem").FileSystem | import("effect/unstable/http/Etag").Generator | import("effect/unstable/http/HttpPlatform").HttpPlatform | HttpRouter.HttpRouter | IdentityStore | PasskeyCredentialManagement | PasskeyHttpConfig | PasskeyOptions | PasskeyVerification | import("effect/Path").Path | SessionCookie | Sessions | UserStore>;
|
|
2434
|
+
export declare const IdentityHttpApiLive: Layer.Layer<never, never, AuthRateLimit | import("effect/FileSystem").FileSystem | import("effect/unstable/http/Etag").Generator | import("effect/unstable/http/HttpPlatform").HttpPlatform | HttpRouter.HttpRouter | IdentityManagement | import("effect/Path").Path | SessionCookie | Sessions>;
|
|
2435
|
+
export declare const TotpHttpApiLive: Layer.Layer<never, never, AuthRateLimit | import("effect/FileSystem").FileSystem | import("effect/unstable/http/Etag").Generator | import("effect/unstable/http/HttpPlatform").HttpPlatform | HttpRouter.HttpRouter | import("effect/Path").Path | SessionCookie | Sessions | TotpFactorManagement | TotpHttpConfig>;
|
|
2436
|
+
export declare const RecoveryCodesHttpApiLive: Layer.Layer<never, never, AuthRateLimit | import("effect/FileSystem").FileSystem | import("effect/unstable/http/Etag").Generator | import("effect/unstable/http/HttpPlatform").HttpPlatform | HttpRouter.HttpRouter | import("effect/Path").Path | RecoveryCodeManagement | SessionCookie | Sessions>;
|
|
2437
|
+
export declare const MfaHttpApiLive: Layer.Layer<never, never, AuthFlow | AuthFlowState | AuthHttp | AuthRateLimit | import("effect/FileSystem").FileSystem | import("effect/unstable/http/Etag").Generator | import("effect/unstable/http/HttpPlatform").HttpPlatform | HttpRouter.HttpRouter | PasskeyCredentialManagement | PasskeyHttpConfig | PasskeyOptions | PasskeyVerification | import("effect/Path").Path | RecoveryCodeLoginCommitStore | RecoveryCodeManagement | TotpFactorManagement | TotpHttpConfig | TotpLoginCommitStore | UserStore | VerificationStore>;
|
|
2438
|
+
export declare const StepUpHttpApiLive: Layer.Layer<never, never, AuthRateLimit | CredentialStore | import("effect/FileSystem").FileSystem | import("effect/unstable/http/Etag").Generator | import("effect/unstable/http/HttpPlatform").HttpPlatform | HttpRouter.HttpRouter | PasskeyCredentialManagement | PasskeyHttpConfig | PasskeyOptions | PasskeyVerification | PasswordHasher | import("effect/Path").Path | RecoveryCodeManagement | RecoveryCodeSessionRotation | SessionCookie | Sessions | TotpFactorManagement | TotpHttpConfig | TotpSessionRotation>;
|
|
2439
|
+
export declare const CoreAuthLoginApprovalGroupLive: Layer.Layer<HttpApiGroup.Service<"AuthApi", "loginApproval">, never, LoginApprovalHttpOperations | (AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware)>;
|
|
2440
|
+
export declare const CoreAuthLoginNotificationGroupLive: Layer.Layer<HttpApiGroup.Service<"AuthApi", "security">, never, LoginNotificationHttpOperations | (AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware)>;
|
|
2441
|
+
export declare const SecurityTimelineHttpApiGroupLive: Layer.Layer<HttpApiGroup.Service<"SecurityTimelineHttpApi", "securityTimeline">, never, SecurityTimelineHttpOperations | (AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware)>;
|
|
2442
|
+
export declare const SecurityTimelineHttpApiLive: Layer.Layer<never, never, import("effect/FileSystem").FileSystem | import("effect/unstable/http/Etag").Generator | import("effect/unstable/http/HttpPlatform").HttpPlatform | HttpRouter.HttpRouter | import("effect/Path").Path | SecurityTimelineStore | SessionCookie | Sessions>;
|
|
2443
|
+
export declare const OAuthProviderAuthorizationHttpApiGroupLive: Layer.Layer<HttpApiGroup.Service<"OAuthProviderAuthorizationHttpApi", "oauthProviderAuthorization">, never, AuthSchemaErrorMiddleware | OAuthProviderAuthorizationHttpOperations>;
|
|
2444
|
+
export declare const OAuthProviderAuthorizationHttpApiLive: Layer.Layer<never, never, import("effect/FileSystem").FileSystem | import("effect/unstable/http/Etag").Generator | import("effect/unstable/http/HttpPlatform").HttpPlatform | HttpRouter.HttpRouter | OAuthProviderAuthorization | import("effect/Path").Path>;
|
|
2445
|
+
export declare const OAuthTokenHttpApiGroupLive: Layer.Layer<HttpApiGroup.Service<"OAuthTokenHttpApi", "oauthToken">, never, OAuthTokenHttpOperations | (AuthSchemaErrorMiddleware | OAuthNoStoreMiddleware)>;
|
|
2446
|
+
export declare const OAuthTokenHttpApiLive: Layer.Layer<never, never, import("effect/FileSystem").FileSystem | import("effect/unstable/http/Etag").Generator | import("effect/unstable/http/HttpPlatform").HttpPlatform | HttpRouter.HttpRouter | OAuthTokenGrantRegistry | import("effect/Path").Path>;
|
|
2447
|
+
export declare const OAuthTokenIntrospectionHttpApiGroupLive: Layer.Layer<HttpApiGroup.Service<"OAuthTokenIntrospectionHttpApi", "oauthTokenIntrospection">, never, AuthSchemaErrorMiddleware | OAuthTokenIntrospectionHttpOperations>;
|
|
2448
|
+
export declare const OAuthTokenIntrospectionHttpApiLive: Layer.Layer<never, never, import("effect/FileSystem").FileSystem | import("effect/unstable/http/Etag").Generator | import("effect/unstable/http/HttpPlatform").HttpPlatform | HttpRouter.HttpRouter | OAuthTokenIntrospection | import("effect/Path").Path>;
|
|
2449
|
+
export declare const OAuthTokenRevocationHttpApiGroupLive: Layer.Layer<HttpApiGroup.Service<"OAuthTokenRevocationHttpApi", "oauthTokenRevocation">, never, AuthSchemaErrorMiddleware | OAuthTokenRevocationHttpOperations>;
|
|
2450
|
+
export declare const OAuthTokenRevocationHttpApiLive: Layer.Layer<never, never, import("effect/FileSystem").FileSystem | import("effect/unstable/http/Etag").Generator | import("effect/unstable/http/HttpPlatform").HttpPlatform | HttpRouter.HttpRouter | OAuthTokenRevocation | import("effect/Path").Path>;
|
|
2451
|
+
export declare const JwtDiscoveryHttpApiGroupLive: Layer.Layer<HttpApiGroup.Service<"JwtDiscoveryHttpApi", "jwtDiscovery">, never, AuthSchemaErrorMiddleware | JwtDiscoveryHttpOperations>;
|
|
2452
|
+
export declare const JwtDiscoveryHttpApiLive: Layer.Layer<never, never, import("effect/FileSystem").FileSystem | import("effect/unstable/http/Etag").Generator | import("effect/unstable/http/HttpPlatform").HttpPlatform | HttpRouter.HttpRouter | Jwks | import("effect/Path").Path>;
|
|
2453
|
+
export declare const OidcDiscoveryHttpApiGroupLive: Layer.Layer<HttpApiGroup.Service<"OidcDiscoveryHttpApi", "oidcDiscovery">, never, AuthSchemaErrorMiddleware | OidcDiscoveryHttpOperations>;
|
|
2454
|
+
export declare const OidcDiscoveryHttpApiLive: Layer.Layer<never, never, import("effect/FileSystem").FileSystem | import("effect/unstable/http/Etag").Generator | import("effect/unstable/http/HttpPlatform").HttpPlatform | HttpRouter.HttpRouter | OidcDiscoveryMetadata | import("effect/Path").Path>;
|
|
2455
|
+
export declare const AdminSecurityTimelineHttpApiGroupLive: Layer.Layer<HttpApiGroup.Service<"AdminSecurityTimelineHttpApi", "adminSecurityTimeline">, never, AdminSecurityTimelineHttpOperations | (AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware)>;
|
|
2456
|
+
export declare const AdminSecurityTimelineHttpApiLive: Layer.Layer<never, never, AdminSecurityTimelineAuthorization | import("effect/FileSystem").FileSystem | import("effect/unstable/http/Etag").Generator | import("effect/unstable/http/HttpPlatform").HttpPlatform | HttpRouter.HttpRouter | import("effect/Path").Path | SecurityTimelineStore | SessionCookie | Sessions>;
|
|
2457
|
+
export declare const TrustedDeviceHttpApiGroupLive: Layer.Layer<HttpApiGroup.Service<"TrustedDeviceHttpApi", "trustedDevice">, never, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware | TrustedDeviceHttpOperations>;
|
|
2458
|
+
export declare const TrustedDeviceHttpApiLive: Layer.Layer<never, never, import("effect/FileSystem").FileSystem | import("effect/unstable/http/Etag").Generator | import("effect/unstable/http/HttpPlatform").HttpPlatform | HttpRouter.HttpRouter | import("effect/Path").Path | SessionCookie | Sessions | TrustedDeviceStore>;
|
|
2459
|
+
export declare const AdminTrustedDeviceHttpApiGroupLive: Layer.Layer<HttpApiGroup.Service<"AdminTrustedDeviceHttpApi", "adminTrustedDevice">, never, AdminTrustedDeviceHttpOperations | AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware>;
|
|
2460
|
+
export declare const AdminTrustedDeviceHttpApiLive: Layer.Layer<never, never, AdminTrustedDeviceAuthorization | import("effect/FileSystem").FileSystem | import("effect/unstable/http/Etag").Generator | import("effect/unstable/http/HttpPlatform").HttpPlatform | HttpRouter.HttpRouter | import("effect/Path").Path | SessionCookie | Sessions | TrustedDeviceStore>;
|
|
2461
|
+
export declare const CoreAuthHttpApiLive: Layer.Layer<never, never, AuthFlowState | AuthHttp | AuthRateLimit | EmailOtpLogin | EmailVerification | EmailVerificationFlow | import("effect/FileSystem").FileSystem | import("effect/unstable/http/Etag").Generator | import("effect/unstable/http/HttpPlatform").HttpPlatform | HttpRouter.HttpRouter | IdentityStore | LoginApproval | MagicLinkLogin | import("../Password.js").PasswordLogin | import("../Password.js").PasswordManagement | import("../Password.js").PasswordRegistration | import("../Password.js").PasswordReset | import("effect/Path").Path | SessionCookie | Sessions>;
|
|
2407
2462
|
export { AuthResult };
|
|
2408
2463
|
//# sourceMappingURL=Api.d.ts.map
|