@effect-auth/core 0.1.0-alpha.16 → 0.1.0-alpha.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +308 -133
- package/dist/AbuseProtection.d.ts +100 -0
- package/dist/AbuseProtection.d.ts.map +1 -0
- package/dist/AbuseProtection.js +71 -0
- package/dist/AbuseProtection.js.map +1 -0
- package/dist/AccessGrant.d.ts +344 -0
- package/dist/AccessGrant.d.ts.map +1 -0
- package/dist/AccessGrant.js +687 -0
- package/dist/AccessGrant.js.map +1 -0
- package/dist/ApiKey.d.ts +0 -12
- package/dist/ApiKey.d.ts.map +1 -1
- package/dist/ApiKey.js +36 -27
- package/dist/ApiKey.js.map +1 -1
- package/dist/Assurance.d.ts +415 -0
- package/dist/Assurance.d.ts.map +1 -0
- package/dist/Assurance.js +764 -0
- package/dist/Assurance.js.map +1 -0
- package/dist/AtomicPlanExecutor.d.ts +28 -0
- package/dist/AtomicPlanExecutor.d.ts.map +1 -0
- package/dist/AtomicPlanExecutor.js +5 -0
- package/dist/AtomicPlanExecutor.js.map +1 -0
- package/dist/AuditLog.d.ts +2314 -52
- package/dist/AuditLog.d.ts.map +1 -1
- package/dist/AuditLog.js +511 -33
- package/dist/AuditLog.js.map +1 -1
- package/dist/AuthFlow.d.ts +128 -38
- package/dist/AuthFlow.d.ts.map +1 -1
- package/dist/AuthFlow.js +611 -263
- package/dist/AuthFlow.js.map +1 -1
- package/dist/AuthRateLimit.d.ts +96 -0
- package/dist/AuthRateLimit.d.ts.map +1 -0
- package/dist/AuthRateLimit.js +212 -0
- package/dist/AuthRateLimit.js.map +1 -0
- package/dist/Challenge.d.ts +0 -3
- package/dist/Challenge.d.ts.map +1 -1
- package/dist/Challenge.js +1 -4
- package/dist/Challenge.js.map +1 -1
- package/dist/Client.d.ts +205 -10
- package/dist/Client.d.ts.map +1 -1
- package/dist/Client.js +397 -16
- package/dist/Client.js.map +1 -1
- package/dist/CloudflareTurnstile.d.ts +28 -0
- package/dist/CloudflareTurnstile.d.ts.map +1 -0
- package/dist/CloudflareTurnstile.js +205 -0
- package/dist/CloudflareTurnstile.js.map +1 -0
- package/dist/Crypto.d.ts +0 -3
- package/dist/Crypto.d.ts.map +1 -1
- package/dist/Crypto.js +1 -4
- package/dist/Crypto.js.map +1 -1
- package/dist/DelegatedAccessStorageMigrations.d.ts +7 -0
- package/dist/DelegatedAccessStorageMigrations.d.ts.map +1 -0
- package/dist/DelegatedAccessStorageMigrations.js +159 -0
- package/dist/DelegatedAccessStorageMigrations.js.map +1 -0
- package/dist/DisposableEmailDomains.d.ts +19 -0
- package/dist/DisposableEmailDomains.d.ts.map +1 -0
- package/dist/DisposableEmailDomains.js +85 -0
- package/dist/DisposableEmailDomains.js.map +1 -0
- package/dist/DomainVerification.d.ts +0 -9
- package/dist/DomainVerification.d.ts.map +1 -1
- package/dist/DomainVerification.js +36 -22
- package/dist/DomainVerification.js.map +1 -1
- package/dist/DrizzleBunSqliteStorage.d.ts +18 -0
- package/dist/DrizzleBunSqliteStorage.d.ts.map +1 -0
- package/dist/DrizzleBunSqliteStorage.js +11 -0
- package/dist/DrizzleBunSqliteStorage.js.map +1 -0
- package/dist/DrizzleD1SqliteStorage.d.ts +4 -4
- package/dist/DrizzleD1SqliteStorage.d.ts.map +1 -1
- package/dist/DrizzleD1SqliteStorage.js +5 -5
- package/dist/DrizzleD1SqliteStorage.js.map +1 -1
- package/dist/DrizzleDurableObjectSqliteStorage.d.ts +19 -0
- package/dist/DrizzleDurableObjectSqliteStorage.d.ts.map +1 -0
- package/dist/DrizzleDurableObjectSqliteStorage.js +14 -0
- package/dist/DrizzleDurableObjectSqliteStorage.js.map +1 -0
- package/dist/DrizzleEffectSqliteStorage.d.ts +13 -4
- package/dist/DrizzleEffectSqliteStorage.d.ts.map +1 -1
- package/dist/DrizzleEffectSqliteStorage.js +71 -4
- package/dist/DrizzleEffectSqliteStorage.js.map +1 -1
- package/dist/DrizzleNodeSqliteStorage.d.ts +18 -0
- package/dist/DrizzleNodeSqliteStorage.d.ts.map +1 -0
- package/dist/DrizzleNodeSqliteStorage.js +11 -0
- package/dist/DrizzleNodeSqliteStorage.js.map +1 -0
- package/dist/DrizzleWasmSqliteStorage.d.ts +23 -0
- package/dist/DrizzleWasmSqliteStorage.d.ts.map +1 -0
- package/dist/DrizzleWasmSqliteStorage.js +15 -0
- package/dist/DrizzleWasmSqliteStorage.js.map +1 -0
- package/dist/EffectQbPostgresDelegatedAccessStorage.d.ts +34 -0
- package/dist/EffectQbPostgresDelegatedAccessStorage.d.ts.map +1 -0
- package/dist/EffectQbPostgresDelegatedAccessStorage.js +499 -0
- package/dist/EffectQbPostgresDelegatedAccessStorage.js.map +1 -0
- package/dist/EffectQbPostgresStorage.d.ts +171 -0
- package/dist/EffectQbPostgresStorage.d.ts.map +1 -0
- package/dist/EffectQbPostgresStorage.js +4280 -0
- package/dist/EffectQbPostgresStorage.js.map +1 -0
- package/dist/EffectQbSqliteDelegatedAccessStorage.d.ts +112 -0
- package/dist/EffectQbSqliteDelegatedAccessStorage.d.ts.map +1 -0
- package/dist/EffectQbSqliteDelegatedAccessStorage.js +602 -0
- package/dist/EffectQbSqliteDelegatedAccessStorage.js.map +1 -0
- package/dist/EffectQbSqliteStorage.d.ts +181 -23
- package/dist/EffectQbSqliteStorage.d.ts.map +1 -1
- package/dist/EffectQbSqliteStorage.js +1728 -135
- package/dist/EffectQbSqliteStorage.js.map +1 -1
- package/dist/EmailAuth.d.ts +65 -0
- package/dist/EmailAuth.d.ts.map +1 -0
- package/dist/EmailAuth.js +171 -0
- package/dist/EmailAuth.js.map +1 -0
- package/dist/EmailIdentityAuth.d.ts +30 -0
- package/dist/EmailIdentityAuth.d.ts.map +1 -0
- package/dist/EmailIdentityAuth.js +142 -0
- package/dist/EmailIdentityAuth.js.map +1 -0
- package/dist/EmailOtp.d.ts +10 -11
- package/dist/EmailOtp.d.ts.map +1 -1
- package/dist/EmailOtp.js +44 -81
- package/dist/EmailOtp.js.map +1 -1
- package/dist/EmailRisk.d.ts +48 -0
- package/dist/EmailRisk.d.ts.map +1 -0
- package/dist/EmailRisk.js +33 -0
- package/dist/EmailRisk.js.map +1 -0
- package/dist/EmailVerification.d.ts +10 -16
- package/dist/EmailVerification.d.ts.map +1 -1
- package/dist/EmailVerification.js +85 -42
- package/dist/EmailVerification.js.map +1 -1
- package/dist/Guard.d.ts +11 -0
- package/dist/Guard.d.ts.map +1 -0
- package/dist/Guard.js +11 -0
- package/dist/Guard.js.map +1 -0
- package/dist/HibpPwnedPasswords.d.ts +56 -0
- package/dist/HibpPwnedPasswords.d.ts.map +1 -0
- package/dist/HibpPwnedPasswords.js +232 -0
- package/dist/HibpPwnedPasswords.js.map +1 -0
- package/dist/HttpApi/AdminPermissionDefinition.d.ts +4 -0
- package/dist/HttpApi/AdminPermissionDefinition.d.ts.map +1 -0
- package/dist/HttpApi/AdminPermissionDefinition.js +4 -0
- package/dist/HttpApi/AdminPermissionDefinition.js.map +1 -0
- package/dist/HttpApi/AdminSecurityTimeline.d.ts +4 -0
- package/dist/HttpApi/AdminSecurityTimeline.d.ts.map +1 -0
- package/dist/HttpApi/AdminSecurityTimeline.js +4 -0
- package/dist/HttpApi/AdminSecurityTimeline.js.map +1 -0
- package/dist/HttpApi/AdminSession.d.ts +4 -0
- package/dist/HttpApi/AdminSession.d.ts.map +1 -0
- package/dist/HttpApi/AdminSession.js +4 -0
- package/dist/HttpApi/AdminSession.js.map +1 -0
- package/dist/HttpApi/AdminTrustedDevice.d.ts +4 -0
- package/dist/HttpApi/AdminTrustedDevice.d.ts.map +1 -0
- package/dist/HttpApi/AdminTrustedDevice.js +4 -0
- package/dist/HttpApi/AdminTrustedDevice.js.map +1 -0
- package/dist/HttpApi/Api.d.ts +879 -877
- package/dist/HttpApi/Api.d.ts.map +1 -1
- package/dist/HttpApi/Api.js +2160 -896
- package/dist/HttpApi/Api.js.map +1 -1
- package/dist/HttpApi/ApiKey.d.ts +4 -0
- package/dist/HttpApi/ApiKey.d.ts.map +1 -0
- package/dist/HttpApi/ApiKey.js +4 -0
- package/dist/HttpApi/ApiKey.js.map +1 -0
- package/dist/HttpApi/Audit.d.ts +6 -0
- package/dist/HttpApi/Audit.d.ts.map +1 -0
- package/dist/HttpApi/Audit.js +10 -0
- package/dist/HttpApi/Audit.js.map +1 -0
- package/dist/HttpApi/ClientApi.d.ts +917 -0
- package/dist/HttpApi/ClientApi.d.ts.map +1 -0
- package/dist/HttpApi/ClientApi.js +101 -0
- package/dist/HttpApi/ClientApi.js.map +1 -0
- package/dist/HttpApi/EmailAuth.d.ts +6 -0
- package/dist/HttpApi/EmailAuth.d.ts.map +1 -0
- package/dist/HttpApi/EmailAuth.js +6 -0
- package/dist/HttpApi/EmailAuth.js.map +1 -0
- package/dist/HttpApi/EmailGuards.d.ts +115 -0
- package/dist/HttpApi/EmailGuards.d.ts.map +1 -0
- package/dist/HttpApi/EmailGuards.js +191 -0
- package/dist/HttpApi/EmailGuards.js.map +1 -0
- package/dist/HttpApi/EmailOtp.d.ts +6 -0
- package/dist/HttpApi/EmailOtp.d.ts.map +1 -0
- package/dist/HttpApi/EmailOtp.js +6 -0
- package/dist/HttpApi/EmailOtp.js.map +1 -0
- package/dist/HttpApi/EmailVerification.d.ts +6 -0
- package/dist/HttpApi/EmailVerification.d.ts.map +1 -0
- package/dist/HttpApi/EmailVerification.js +6 -0
- package/dist/HttpApi/EmailVerification.js.map +1 -0
- package/dist/HttpApi/Endpoints.d.ts +629 -301
- package/dist/HttpApi/Endpoints.d.ts.map +1 -1
- package/dist/HttpApi/Endpoints.js +178 -120
- package/dist/HttpApi/Endpoints.js.map +1 -1
- package/dist/HttpApi/Errors.d.ts +26 -7
- package/dist/HttpApi/Errors.d.ts.map +1 -1
- package/dist/HttpApi/Errors.js +26 -4
- package/dist/HttpApi/Errors.js.map +1 -1
- package/dist/HttpApi/Identity.d.ts +6 -0
- package/dist/HttpApi/Identity.d.ts.map +1 -0
- package/dist/HttpApi/Identity.js +6 -0
- package/dist/HttpApi/Identity.js.map +1 -0
- package/dist/HttpApi/IdentityGuards.d.ts +31 -0
- package/dist/HttpApi/IdentityGuards.d.ts.map +1 -0
- package/dist/HttpApi/IdentityGuards.js +33 -0
- package/dist/HttpApi/IdentityGuards.js.map +1 -0
- package/dist/HttpApi/Jwt.d.ts +4 -0
- package/dist/HttpApi/Jwt.d.ts.map +1 -0
- package/dist/HttpApi/Jwt.js +4 -0
- package/dist/HttpApi/Jwt.js.map +1 -0
- package/dist/HttpApi/JwtDiscovery.d.ts +4 -0
- package/dist/HttpApi/JwtDiscovery.d.ts.map +1 -0
- package/dist/HttpApi/JwtDiscovery.js +4 -0
- package/dist/HttpApi/JwtDiscovery.js.map +1 -0
- package/dist/HttpApi/LoginApproval.d.ts +5 -0
- package/dist/HttpApi/LoginApproval.d.ts.map +1 -0
- package/dist/HttpApi/LoginApproval.js +5 -0
- package/dist/HttpApi/LoginApproval.js.map +1 -0
- package/dist/HttpApi/LoginNotification.d.ts +5 -0
- package/dist/HttpApi/LoginNotification.d.ts.map +1 -0
- package/dist/HttpApi/LoginNotification.js +5 -0
- package/dist/HttpApi/LoginNotification.js.map +1 -0
- package/dist/HttpApi/MagicLink.d.ts +6 -0
- package/dist/HttpApi/MagicLink.d.ts.map +1 -0
- package/dist/HttpApi/MagicLink.js +6 -0
- package/dist/HttpApi/MagicLink.js.map +1 -0
- package/dist/HttpApi/Mfa.d.ts +5 -0
- package/dist/HttpApi/Mfa.d.ts.map +1 -0
- package/dist/HttpApi/Mfa.js +5 -0
- package/dist/HttpApi/Mfa.js.map +1 -0
- package/dist/HttpApi/Middleware.d.ts +14 -0
- package/dist/HttpApi/Middleware.d.ts.map +1 -0
- package/dist/HttpApi/Middleware.js +5 -0
- package/dist/HttpApi/Middleware.js.map +1 -0
- package/dist/HttpApi/OAuth.d.ts +4 -0
- package/dist/HttpApi/OAuth.d.ts.map +1 -0
- package/dist/HttpApi/OAuth.js +4 -0
- package/dist/HttpApi/OAuth.js.map +1 -0
- package/dist/HttpApi/OAuthProviderAuthorization.d.ts +4 -0
- package/dist/HttpApi/OAuthProviderAuthorization.d.ts.map +1 -0
- package/dist/HttpApi/OAuthProviderAuthorization.js +4 -0
- package/dist/HttpApi/OAuthProviderAuthorization.js.map +1 -0
- package/dist/HttpApi/OAuthToken.d.ts +4 -0
- package/dist/HttpApi/OAuthToken.d.ts.map +1 -0
- package/dist/HttpApi/OAuthToken.js +4 -0
- package/dist/HttpApi/OAuthToken.js.map +1 -0
- package/dist/HttpApi/OidcDiscovery.d.ts +4 -0
- package/dist/HttpApi/OidcDiscovery.d.ts.map +1 -0
- package/dist/HttpApi/OidcDiscovery.js +4 -0
- package/dist/HttpApi/OidcDiscovery.js.map +1 -0
- package/dist/HttpApi/Operations/AdminPermissionDefinition.d.ts +28 -0
- package/dist/HttpApi/Operations/AdminPermissionDefinition.d.ts.map +1 -0
- package/dist/HttpApi/Operations/AdminPermissionDefinition.js +5 -0
- package/dist/HttpApi/Operations/AdminPermissionDefinition.js.map +1 -0
- package/dist/HttpApi/Operations/AdminSession.d.ts +16 -0
- package/dist/HttpApi/Operations/AdminSession.d.ts.map +1 -0
- package/dist/HttpApi/Operations/AdminSession.js +5 -0
- package/dist/HttpApi/Operations/AdminSession.js.map +1 -0
- package/dist/HttpApi/Operations/ApiKey.d.ts +16 -0
- package/dist/HttpApi/Operations/ApiKey.d.ts.map +1 -0
- package/dist/HttpApi/Operations/ApiKey.js +5 -0
- package/dist/HttpApi/Operations/ApiKey.js.map +1 -0
- package/dist/HttpApi/Operations/Discovery.d.ts +19 -0
- package/dist/HttpApi/Operations/Discovery.d.ts.map +1 -0
- package/dist/HttpApi/Operations/Discovery.js +7 -0
- package/dist/HttpApi/Operations/Discovery.js.map +1 -0
- package/dist/HttpApi/Operations/EmailAuth.d.ts +12 -0
- package/dist/HttpApi/Operations/EmailAuth.d.ts.map +1 -0
- package/dist/HttpApi/Operations/EmailAuth.js +5 -0
- package/dist/HttpApi/Operations/EmailAuth.js.map +1 -0
- package/dist/HttpApi/Operations/EmailOtp.d.ts +14 -0
- package/dist/HttpApi/Operations/EmailOtp.d.ts.map +1 -0
- package/dist/HttpApi/Operations/EmailOtp.js +5 -0
- package/dist/HttpApi/Operations/EmailOtp.js.map +1 -0
- package/dist/HttpApi/Operations/EmailVerification.d.ts +14 -0
- package/dist/HttpApi/Operations/EmailVerification.d.ts.map +1 -0
- package/dist/HttpApi/Operations/EmailVerification.js +5 -0
- package/dist/HttpApi/Operations/EmailVerification.js.map +1 -0
- package/dist/HttpApi/Operations/HttpOperation.d.ts +4 -0
- package/dist/HttpApi/Operations/HttpOperation.d.ts.map +1 -0
- package/dist/HttpApi/Operations/HttpOperation.js +2 -0
- package/dist/HttpApi/Operations/HttpOperation.js.map +1 -0
- package/dist/HttpApi/Operations/Identity.d.ts +22 -0
- package/dist/HttpApi/Operations/Identity.d.ts.map +1 -0
- package/dist/HttpApi/Operations/Identity.js +5 -0
- package/dist/HttpApi/Operations/Identity.js.map +1 -0
- package/dist/HttpApi/Operations/Jwt.d.ts +14 -0
- package/dist/HttpApi/Operations/Jwt.d.ts.map +1 -0
- package/dist/HttpApi/Operations/Jwt.js +5 -0
- package/dist/HttpApi/Operations/Jwt.js.map +1 -0
- package/dist/HttpApi/Operations/LoginApproval.d.ts +16 -0
- package/dist/HttpApi/Operations/LoginApproval.d.ts.map +1 -0
- package/dist/HttpApi/Operations/LoginApproval.js +5 -0
- package/dist/HttpApi/Operations/LoginApproval.js.map +1 -0
- package/dist/HttpApi/Operations/MagicLink.d.ts +14 -0
- package/dist/HttpApi/Operations/MagicLink.d.ts.map +1 -0
- package/dist/HttpApi/Operations/MagicLink.js +5 -0
- package/dist/HttpApi/Operations/MagicLink.js.map +1 -0
- package/dist/HttpApi/Operations/Mfa.d.ts +24 -0
- package/dist/HttpApi/Operations/Mfa.d.ts.map +1 -0
- package/dist/HttpApi/Operations/Mfa.js +5 -0
- package/dist/HttpApi/Operations/Mfa.js.map +1 -0
- package/dist/HttpApi/Operations/OAuth.d.ts +20 -0
- package/dist/HttpApi/Operations/OAuth.d.ts.map +1 -0
- package/dist/HttpApi/Operations/OAuth.js +5 -0
- package/dist/HttpApi/Operations/OAuth.js.map +1 -0
- package/dist/HttpApi/Operations/OAuthProviderAuthorization.d.ts +12 -0
- package/dist/HttpApi/Operations/OAuthProviderAuthorization.d.ts.map +1 -0
- package/dist/HttpApi/Operations/OAuthProviderAuthorization.js +5 -0
- package/dist/HttpApi/Operations/OAuthProviderAuthorization.js.map +1 -0
- package/dist/HttpApi/Operations/OAuthToken.d.ts +16 -0
- package/dist/HttpApi/Operations/OAuthToken.d.ts.map +1 -0
- package/dist/HttpApi/Operations/OAuthToken.js +5 -0
- package/dist/HttpApi/Operations/OAuthToken.js.map +1 -0
- package/dist/HttpApi/Operations/Passkey.d.ts +22 -0
- package/dist/HttpApi/Operations/Passkey.d.ts.map +1 -0
- package/dist/HttpApi/Operations/Passkey.js +5 -0
- package/dist/HttpApi/Operations/Passkey.js.map +1 -0
- package/dist/HttpApi/Operations/Password.d.ts +22 -0
- package/dist/HttpApi/Operations/Password.d.ts.map +1 -0
- package/dist/HttpApi/Operations/Password.js +5 -0
- package/dist/HttpApi/Operations/Password.js.map +1 -0
- package/dist/HttpApi/Operations/RecoveryCodes.d.ts +20 -0
- package/dist/HttpApi/Operations/RecoveryCodes.d.ts.map +1 -0
- package/dist/HttpApi/Operations/RecoveryCodes.js +5 -0
- package/dist/HttpApi/Operations/RecoveryCodes.js.map +1 -0
- package/dist/HttpApi/Operations/RefreshToken.d.ts +12 -0
- package/dist/HttpApi/Operations/RefreshToken.d.ts.map +1 -0
- package/dist/HttpApi/Operations/RefreshToken.js +5 -0
- package/dist/HttpApi/Operations/RefreshToken.js.map +1 -0
- package/dist/HttpApi/Operations/Security.d.ts +12 -0
- package/dist/HttpApi/Operations/Security.d.ts.map +1 -0
- package/dist/HttpApi/Operations/Security.js +5 -0
- package/dist/HttpApi/Operations/Security.js.map +1 -0
- package/dist/HttpApi/Operations/SecurityTimeline.d.ts +19 -0
- package/dist/HttpApi/Operations/SecurityTimeline.d.ts.map +1 -0
- package/dist/HttpApi/Operations/SecurityTimeline.js +7 -0
- package/dist/HttpApi/Operations/SecurityTimeline.js.map +1 -0
- package/dist/HttpApi/Operations/Session.d.ts +22 -0
- package/dist/HttpApi/Operations/Session.d.ts.map +1 -0
- package/dist/HttpApi/Operations/Session.js +5 -0
- package/dist/HttpApi/Operations/Session.js.map +1 -0
- package/dist/HttpApi/Operations/StepUp.d.ts +22 -0
- package/dist/HttpApi/Operations/StepUp.d.ts.map +1 -0
- package/dist/HttpApi/Operations/StepUp.js +5 -0
- package/dist/HttpApi/Operations/StepUp.js.map +1 -0
- package/dist/HttpApi/Operations/Totp.d.ts +20 -0
- package/dist/HttpApi/Operations/Totp.d.ts.map +1 -0
- package/dist/HttpApi/Operations/Totp.js +5 -0
- package/dist/HttpApi/Operations/Totp.js.map +1 -0
- package/dist/HttpApi/Operations/TrustedDevice.d.ts +23 -0
- package/dist/HttpApi/Operations/TrustedDevice.d.ts.map +1 -0
- package/dist/HttpApi/Operations/TrustedDevice.js +7 -0
- package/dist/HttpApi/Operations/TrustedDevice.js.map +1 -0
- package/dist/HttpApi/Operations/index.d.ts +27 -0
- package/dist/HttpApi/Operations/index.d.ts.map +1 -0
- package/dist/HttpApi/Operations/index.js +27 -0
- package/dist/HttpApi/Operations/index.js.map +1 -0
- package/dist/HttpApi/Passkey.d.ts +5 -0
- package/dist/HttpApi/Passkey.d.ts.map +1 -0
- package/dist/HttpApi/Passkey.js +5 -0
- package/dist/HttpApi/Passkey.js.map +1 -0
- package/dist/HttpApi/Password.d.ts +220 -0
- package/dist/HttpApi/Password.d.ts.map +1 -0
- package/dist/HttpApi/Password.js +237 -0
- package/dist/HttpApi/Password.js.map +1 -0
- package/dist/HttpApi/PasswordContract.d.ts +307 -0
- package/dist/HttpApi/PasswordContract.d.ts.map +1 -0
- package/dist/HttpApi/PasswordContract.js +63 -0
- package/dist/HttpApi/PasswordContract.js.map +1 -0
- package/dist/HttpApi/PasswordGuards.d.ts +82 -0
- package/dist/HttpApi/PasswordGuards.d.ts.map +1 -0
- package/dist/HttpApi/PasswordGuards.js +179 -0
- package/dist/HttpApi/PasswordGuards.js.map +1 -0
- package/dist/HttpApi/RecoveryCodes.d.ts +5 -0
- package/dist/HttpApi/RecoveryCodes.d.ts.map +1 -0
- package/dist/HttpApi/RecoveryCodes.js +5 -0
- package/dist/HttpApi/RecoveryCodes.js.map +1 -0
- package/dist/HttpApi/RefreshToken.d.ts +4 -0
- package/dist/HttpApi/RefreshToken.d.ts.map +1 -0
- package/dist/HttpApi/RefreshToken.js +4 -0
- package/dist/HttpApi/RefreshToken.js.map +1 -0
- package/dist/HttpApi/RequestGuards.d.ts +42 -0
- package/dist/HttpApi/RequestGuards.d.ts.map +1 -0
- package/dist/HttpApi/RequestGuards.js +194 -0
- package/dist/HttpApi/RequestGuards.js.map +1 -0
- package/dist/HttpApi/Schemas.d.ts +361 -84
- package/dist/HttpApi/Schemas.d.ts.map +1 -1
- package/dist/HttpApi/Schemas.js +190 -27
- package/dist/HttpApi/Schemas.js.map +1 -1
- package/dist/HttpApi/Security.d.ts +12 -93
- package/dist/HttpApi/Security.d.ts.map +1 -1
- package/dist/HttpApi/Security.js +65 -356
- package/dist/HttpApi/Security.js.map +1 -1
- package/dist/HttpApi/SecurityTimeline.d.ts +4 -0
- package/dist/HttpApi/SecurityTimeline.d.ts.map +1 -0
- package/dist/HttpApi/SecurityTimeline.js +4 -0
- package/dist/HttpApi/SecurityTimeline.js.map +1 -0
- package/dist/HttpApi/Session.d.ts +5 -0
- package/dist/HttpApi/Session.d.ts.map +1 -0
- package/dist/HttpApi/Session.js +5 -0
- package/dist/HttpApi/Session.js.map +1 -0
- package/dist/HttpApi/SessionGuards.d.ts +15 -0
- package/dist/HttpApi/SessionGuards.d.ts.map +1 -0
- package/dist/HttpApi/SessionGuards.js +37 -0
- package/dist/HttpApi/SessionGuards.js.map +1 -0
- package/dist/HttpApi/StepUp.d.ts +5 -0
- package/dist/HttpApi/StepUp.d.ts.map +1 -0
- package/dist/HttpApi/StepUp.js +5 -0
- package/dist/HttpApi/StepUp.js.map +1 -0
- package/dist/HttpApi/Totp.d.ts +5 -0
- package/dist/HttpApi/Totp.d.ts.map +1 -0
- package/dist/HttpApi/Totp.js +5 -0
- package/dist/HttpApi/Totp.js.map +1 -0
- package/dist/HttpApi/Transport.d.ts +4 -6
- package/dist/HttpApi/Transport.d.ts.map +1 -1
- package/dist/HttpApi/Transport.js +62 -36
- package/dist/HttpApi/Transport.js.map +1 -1
- package/dist/HttpApi/TrustedDevice.d.ts +4 -0
- package/dist/HttpApi/TrustedDevice.d.ts.map +1 -0
- package/dist/HttpApi/TrustedDevice.js +4 -0
- package/dist/HttpApi/TrustedDevice.js.map +1 -0
- package/dist/HttpApi/index.d.ts +9 -3
- package/dist/HttpApi/index.d.ts.map +1 -1
- package/dist/HttpApi/index.js +8 -2
- package/dist/HttpApi/index.js.map +1 -1
- package/dist/Identity.d.ts +138 -0
- package/dist/Identity.d.ts.map +1 -0
- package/dist/Identity.js +105 -0
- package/dist/Identity.js.map +1 -0
- package/dist/IdentityManagement.d.ts +189 -0
- package/dist/IdentityManagement.d.ts.map +1 -0
- package/dist/IdentityManagement.js +317 -0
- package/dist/IdentityManagement.js.map +1 -0
- package/dist/IncidentAction.d.ts +1 -4
- package/dist/IncidentAction.d.ts.map +1 -1
- package/dist/IncidentAction.js +15 -9
- package/dist/IncidentAction.js.map +1 -1
- package/dist/Internal.d.ts +2 -0
- package/dist/Internal.d.ts.map +1 -1
- package/dist/Internal.js +30 -0
- package/dist/Internal.js.map +1 -1
- package/dist/Invitation.d.ts +362 -0
- package/dist/Invitation.d.ts.map +1 -0
- package/dist/Invitation.js +633 -0
- package/dist/Invitation.js.map +1 -0
- package/dist/IpQualityScore.d.ts +38 -0
- package/dist/IpQualityScore.d.ts.map +1 -0
- package/dist/IpQualityScore.js +215 -0
- package/dist/IpQualityScore.js.map +1 -0
- package/dist/Jwt.d.ts +8 -29
- package/dist/Jwt.d.ts.map +1 -1
- package/dist/Jwt.js +67 -56
- package/dist/Jwt.js.map +1 -1
- package/dist/LoginApproval.d.ts +15 -30
- package/dist/LoginApproval.d.ts.map +1 -1
- package/dist/LoginApproval.js +47 -41
- package/dist/LoginApproval.js.map +1 -1
- package/dist/LoginNotification.d.ts +7 -11
- package/dist/LoginNotification.d.ts.map +1 -1
- package/dist/LoginNotification.js +30 -17
- package/dist/LoginNotification.js.map +1 -1
- package/dist/LoginRisk.d.ts +11 -13
- package/dist/LoginRisk.d.ts.map +1 -1
- package/dist/LoginRisk.js +66 -26
- package/dist/LoginRisk.js.map +1 -1
- package/dist/LoginRiskEnrichment.d.ts +145 -0
- package/dist/LoginRiskEnrichment.d.ts.map +1 -0
- package/dist/LoginRiskEnrichment.js +220 -0
- package/dist/LoginRiskEnrichment.js.map +1 -0
- package/dist/MagicLink.d.ts +9 -8
- package/dist/MagicLink.d.ts.map +1 -1
- package/dist/MagicLink.js +40 -73
- package/dist/MagicLink.js.map +1 -1
- package/dist/Mailer.d.ts +19 -12
- package/dist/Mailer.d.ts.map +1 -1
- package/dist/Mailer.js +10 -12
- package/dist/Mailer.js.map +1 -1
- package/dist/OAuth.d.ts +93 -96
- package/dist/OAuth.d.ts.map +1 -1
- package/dist/OAuth.js +404 -217
- package/dist/OAuth.js.map +1 -1
- package/dist/Passkey.d.ts +15 -17
- package/dist/Passkey.d.ts.map +1 -1
- package/dist/Passkey.js +86 -39
- package/dist/Passkey.js.map +1 -1
- package/dist/PasskeyBrowser.d.ts +39 -0
- package/dist/PasskeyBrowser.d.ts.map +1 -0
- package/dist/PasskeyBrowser.js +206 -0
- package/dist/PasskeyBrowser.js.map +1 -0
- package/dist/PasskeySimpleWebAuthn.d.ts.map +1 -1
- package/dist/PasskeySimpleWebAuthn.js +19 -7
- package/dist/PasskeySimpleWebAuthn.js.map +1 -1
- package/dist/Password.d.ts +71 -37
- package/dist/Password.d.ts.map +1 -1
- package/dist/Password.js +295 -81
- package/dist/Password.js.map +1 -1
- package/dist/PasswordRisk.d.ts +63 -0
- package/dist/PasswordRisk.d.ts.map +1 -0
- package/dist/PasswordRisk.js +37 -0
- package/dist/PasswordRisk.js.map +1 -0
- package/dist/Permission.d.ts +308 -0
- package/dist/Permission.d.ts.map +1 -0
- package/dist/Permission.js +827 -0
- package/dist/Permission.js.map +1 -0
- package/dist/Policy.d.ts +31 -18
- package/dist/Policy.d.ts.map +1 -1
- package/dist/Policy.js +58 -14
- package/dist/Policy.js.map +1 -1
- package/dist/PostgresDelegatedAccessStorageMigrations.d.ts +7 -0
- package/dist/PostgresDelegatedAccessStorageMigrations.d.ts.map +1 -0
- package/dist/PostgresDelegatedAccessStorageMigrations.js +119 -0
- package/dist/PostgresDelegatedAccessStorageMigrations.js.map +1 -0
- package/dist/PostgresStorageMigrations.d.ts +15 -0
- package/dist/PostgresStorageMigrations.d.ts.map +1 -0
- package/dist/PostgresStorageMigrations.js +620 -0
- package/dist/PostgresStorageMigrations.js.map +1 -0
- package/dist/Privacy.d.ts +0 -3
- package/dist/Privacy.d.ts.map +1 -1
- package/dist/Privacy.js +2 -5
- package/dist/Privacy.js.map +1 -1
- package/dist/RateLimiter.d.ts +0 -3
- package/dist/RateLimiter.d.ts.map +1 -1
- package/dist/RateLimiter.js +1 -4
- package/dist/RateLimiter.js.map +1 -1
- package/dist/RecoveryCode.d.ts +83 -11
- package/dist/RecoveryCode.d.ts.map +1 -1
- package/dist/RecoveryCode.js +273 -75
- package/dist/RecoveryCode.js.map +1 -1
- package/dist/RecoveryPolicy.d.ts +81 -0
- package/dist/RecoveryPolicy.d.ts.map +1 -0
- package/dist/RecoveryPolicy.js +119 -0
- package/dist/RecoveryPolicy.js.map +1 -0
- package/dist/RefreshToken.d.ts +0 -9
- package/dist/RefreshToken.d.ts.map +1 -1
- package/dist/RefreshToken.js +31 -22
- package/dist/RefreshToken.js.map +1 -1
- package/dist/SecurityTimeline.d.ts +1 -4
- package/dist/SecurityTimeline.d.ts.map +1 -1
- package/dist/SecurityTimeline.js +110 -17
- package/dist/SecurityTimeline.js.map +1 -1
- package/dist/Sessions.d.ts +124 -29
- package/dist/Sessions.d.ts.map +1 -1
- package/dist/Sessions.js +626 -94
- package/dist/Sessions.js.map +1 -1
- package/dist/StepUp.d.ts +132 -11
- package/dist/StepUp.d.ts.map +1 -1
- package/dist/StepUp.js +387 -19
- package/dist/StepUp.js.map +1 -1
- package/dist/Storage.d.ts +89 -23
- package/dist/Storage.d.ts.map +1 -1
- package/dist/Storage.js +10 -12
- package/dist/Storage.js.map +1 -1
- package/dist/StorageMigrations.d.ts +6 -1
- package/dist/StorageMigrations.d.ts.map +1 -1
- package/dist/StorageMigrations.js +224 -0
- package/dist/StorageMigrations.js.map +1 -1
- package/dist/StorageSchemaGenerator.d.ts +486 -0
- package/dist/StorageSchemaGenerator.d.ts.map +1 -0
- package/dist/StorageSchemaGenerator.js +1022 -0
- package/dist/StorageSchemaGenerator.js.map +1 -0
- package/dist/StrongFactor.d.ts +64 -0
- package/dist/StrongFactor.d.ts.map +1 -0
- package/dist/StrongFactor.js +100 -0
- package/dist/StrongFactor.js.map +1 -0
- package/dist/Testing.js +2 -2
- package/dist/Testing.js.map +1 -1
- package/dist/Totp.d.ts +88 -13
- package/dist/Totp.d.ts.map +1 -1
- package/dist/Totp.js +192 -34
- package/dist/Totp.js.map +1 -1
- package/dist/TrustedDevice.d.ts +0 -9
- package/dist/TrustedDevice.d.ts.map +1 -1
- package/dist/TrustedDevice.js +15 -17
- package/dist/TrustedDevice.js.map +1 -1
- package/dist/WaitUntil.d.ts +0 -3
- package/dist/WaitUntil.d.ts.map +1 -1
- package/dist/WaitUntil.js +1 -4
- package/dist/WaitUntil.js.map +1 -1
- package/dist/Webhook.d.ts +42 -12
- package/dist/Webhook.d.ts.map +1 -1
- package/dist/Webhook.js +165 -26
- package/dist/Webhook.js.map +1 -1
- package/dist/alchemy/cloudflare/Email.d.ts.map +1 -1
- package/dist/alchemy/cloudflare/Email.js +9 -4
- package/dist/alchemy/cloudflare/Email.js.map +1 -1
- package/dist/cloudflare/Email.js +1 -1
- package/dist/cloudflare/Email.js.map +1 -1
- package/dist/cloudflare/RequestMetadata.d.ts +49 -0
- package/dist/cloudflare/RequestMetadata.d.ts.map +1 -0
- package/dist/cloudflare/RequestMetadata.js +71 -0
- package/dist/cloudflare/RequestMetadata.js.map +1 -0
- package/dist/index.d.ts +0 -35
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -35
- package/dist/index.js.map +1 -1
- package/dist/internal/AuthFlowFinalizer.d.ts +31 -0
- package/dist/internal/AuthFlowFinalizer.d.ts.map +1 -0
- package/dist/internal/AuthFlowFinalizer.js +182 -0
- package/dist/internal/AuthFlowFinalizer.js.map +1 -0
- package/migrations/0001_auth_storage.sql +1 -0
- package/migrations/0006_auth_totp_factor.sql +1 -0
- package/migrations/0024_auth_permission.sql +39 -0
- package/migrations/0025_auth_permission_definition.sql +19 -0
- package/migrations/0026_auth_user_identity.sql +59 -0
- package/migrations/0027_auth_audit_log_storage_order.sql +46 -0
- package/migrations/0028_auth_oauth_client_secret_key.sql +39 -0
- package/migrations/delegated-access/0001_auth_delegated_access.sql +152 -0
- package/migrations/postgres/0001_auth_core.sql +77 -0
- package/migrations/postgres/0002_auth_security_oauth.sql +65 -0
- package/migrations/postgres/0003_auth_credentials_tokens.sql +43 -0
- package/migrations/postgres/0004_auth_security_history.sql +103 -0
- package/migrations/postgres/0005_auth_webhooks.sql +29 -0
- package/migrations/postgres/0006_auth_domain_timeline.sql +50 -0
- package/migrations/postgres/0007_auth_oauth_clients.sql +85 -0
- package/migrations/postgres/0008_auth_oauth_tokens.sql +63 -0
- package/migrations/postgres/0009_auth_permissions.sql +66 -0
- package/migrations/postgres/delegated-access/0001_auth_delegated_access.sql +112 -0
- package/package.json +301 -2
package/dist/HttpApi/Api.d.ts
CHANGED
|
@@ -1,60 +1,67 @@
|
|
|
1
1
|
import { Context, Effect, Layer, 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
|
|
26
|
+
import type { MagicLinkLoginService } from "../MagicLink.js";
|
|
22
27
|
import type { OAuthAccountUnlinkingResolution, OAuthAccountUnlinkingService, OAuthAuthorizationCodeTokenGrantService, OAuthAuthorizationStartInput, OAuthCallbackInput, OAuthClientCredentialsGrantService, OAuthClientAuthentication, OAuthCodeVerifier, OAuthLinkConfirmationConfirmInput, OAuthLinkConfirmationInspectInput, OAuthLinkConfirmationService, OAuthLinkConfirmationStartInput, OAuthProviderAuthorizationService, OAuthProviderConfig, OAuthProvidersService, OAuthRefreshTokenGrantService, OAuthStateService, OAuthTokenIntrospectionService, OAuthTokenRevocationService, ConfirmedOAuthLinkConfirmation, PendingOAuthLinkConfirmation, StartedOAuthAuthorization, StartedOAuthLinkConfirmation } from "../OAuth.js";
|
|
23
|
-
import { OAuthAuthorizationCodeTokenGrant, OAuthProviderAuthorization } from "../OAuth.js";
|
|
24
|
-
import {
|
|
25
|
-
import { PasskeyCredentialId } from "../Passkey.js";
|
|
28
|
+
import { OAuthAuthorizationCodeTokenGrant, OAuthAccountUnlinking, OAuthProviderAuthorization, OAuthProviders, OAuthLinkConfirmation, OAuthState } from "../OAuth.js";
|
|
29
|
+
import { PasskeyCredentialId, PasskeyCredentialManagement, PasskeyOptions, PasskeyVerification } from "../Passkey.js";
|
|
26
30
|
import type { FinishedPasskeyAuthentication, PasskeyAttestation, PasskeyAuthenticationFinishInput, PasskeyAuthenticationStartInput, PasskeyAuthenticatorSelection, PasskeyCredentialManagementService, PasskeyOptionsService, PasskeyPublicKeyCredentialParameters, PasskeyRelyingParty, PasskeyUserVerification, PasskeyVerificationService } from "../Passkey.js";
|
|
27
|
-
import
|
|
28
|
-
import type {
|
|
31
|
+
import { PasswordHasher } from "../Password.js";
|
|
32
|
+
import type { PasswordHasherService } from "../Password.js";
|
|
33
|
+
import { PermissionAdministration } from "../Permission.js";
|
|
34
|
+
import type { PermissionDefinitionRecord } from "../Permission.js";
|
|
35
|
+
import type { RecoveryCodeGenerateForUserInput, RecoveryCodeRegenerateForUserInput, RecoveryCodeManagementRevokeInput, RecoveryCodeManagementService, RecoveryCodeVerifyForUserInput, RecoveryCodeLoginCommitStoreService } from "../RecoveryCode.js";
|
|
36
|
+
import { RecoveryCodeLoginCommitStore, RecoveryCodeManagement } from "../RecoveryCode.js";
|
|
29
37
|
import type { RefreshTokenInfo, RefreshTokenManagementService, RefreshTokenRotateInput } from "../RefreshToken.js";
|
|
30
|
-
import {
|
|
31
|
-
import type { AuthMethodReference, CurrentSessionShape, SessionClaims, SessionCookieService, SessionCreateInput, SessionInfoShape, SessionsService, ValidatedSession } from "../Sessions.js";
|
|
38
|
+
import { RefreshTokenManagement } from "../RefreshToken.js";
|
|
32
39
|
import { SecurityTimelineStore } from "../SecurityTimeline.js";
|
|
33
40
|
import type { SecurityTimelineEvent, SecurityTimelineStoreService } from "../SecurityTimeline.js";
|
|
34
|
-
import {
|
|
35
|
-
import type {
|
|
36
|
-
import
|
|
41
|
+
import { SessionCookie, Sessions, RecoveryCodeSessionRotation, TotpSessionRotation } from "../Sessions.js";
|
|
42
|
+
import type { CurrentActorShape, CurrentSessionShape, SessionClaims, SessionCookieService, SessionCreateInput, SessionInfoShape, SessionsService, RecoveryCodeSessionRotationService, TotpSessionRotationService, ValidatedSession } from "../Sessions.js";
|
|
43
|
+
import { CredentialStore, IdentityStore, UserStore, VerificationStore } from "../Storage.js";
|
|
44
|
+
import type { CredentialStoreService, IdentityStoreService, UserStoreService, VerificationStoreService } from "../Storage.js";
|
|
45
|
+
import type { StrongFactorRemovalPolicyService } from "../StrongFactor.js";
|
|
46
|
+
import type { TotpAlgorithm, TotpEnrollmentConfirmInput, TotpEnrollmentStartInput, TotpFactorManagementService, TotpFactorManagementRevokeInput, TotpVerifyForUserInput, TotpLoginCommitStoreService } from "../Totp.js";
|
|
47
|
+
import { TotpFactorManagement, TotpLoginCommitStore } from "../Totp.js";
|
|
37
48
|
import { TrustedDeviceStore } from "../TrustedDevice.js";
|
|
38
49
|
import type { TrustedDeviceRecord, TrustedDeviceCookieService, TrustedDeviceService, TrustedDeviceStoreService } from "../TrustedDevice.js";
|
|
39
|
-
import {
|
|
50
|
+
import { EmailAuthHttpApiGroup, EmailOtpHttpApiGroup, EmailVerificationHttpApiGroup, IdentityHttpApiGroup, LoginApprovalHttpApiGroup, MagicLinkHttpApiGroup, MfaHttpApiGroup, PasskeyHttpApiGroup, PasswordHttpApiGroup, RecoveryCodesHttpApiGroup, LoginNotificationHttpApiGroup, SessionHttpApiGroup, StepUpHttpApiGroup, TotpHttpApiGroup } from "./ClientApi.js";
|
|
51
|
+
import type { EmailAuthStartGuardRequest, EmailOtpStartGuardRequest, EmailOtpVerifyGuardRequest, EmailVerificationStartGuardRequest, MagicLinkStartGuardRequest, MagicLinkVerifyGuardRequest } from "./EmailGuards.js";
|
|
52
|
+
import { AuthBadRequestError, AuthConflictError, AuthIdentityAlreadyRegisteredError, AuthInternalError, AuthInvalidCredentialsError, AuthNotFoundError, AuthPolicyDeniedError, AuthSchemaErrorMiddleware, AuthUnauthenticatedError, OAuthAuthorizationEndpointError, OAuthTokenEndpointError, OAuthTokenIntrospectionEndpointError, OAuthTokenRevocationEndpointError } from "./Errors.js";
|
|
53
|
+
import type { IdentityAvailabilityGuardRequest } from "./IdentityGuards.js";
|
|
54
|
+
import { AuthOriginCheckMiddleware } from "./Middleware.js";
|
|
55
|
+
import { AdminSecurityTimelineHttpOperations, AdminPermissionDefinitionHttpOperations, type AdminPermissionDefinitionHttpOperationRequirements, AdminSessionHttpOperations, AdminTrustedDeviceHttpOperations, ApiKeyHttpOperations, EmailAuthHttpOperations, EmailOtpHttpOperations, EmailVerificationHttpOperations, JwtDiscoveryHttpOperations, JwtHttpOperations, LoginApprovalHttpOperations, MagicLinkHttpOperations, MfaHttpOperations, OAuthHttpOperations, OAuthProviderAuthorizationHttpOperations, OAuthTokenHttpOperations, OidcDiscoveryHttpOperations, PasskeyHttpOperations, IdentityHttpOperations, RecoveryCodesHttpOperations, RefreshTokenHttpOperations, LoginNotificationHttpOperations, SecurityTimelineHttpOperations, SessionHttpOperations, StepUpHttpOperations, TotpHttpOperations, TrustedDeviceHttpOperations } from "./Operations/index.js";
|
|
56
|
+
import type { AuthRateLimitGuardRequest } from "./RequestGuards.js";
|
|
40
57
|
import { OAuthProviderAuthorizationQuery } from "./Schemas.js";
|
|
41
|
-
import type { AdminSecurityTimelineListQuery, AdminSessionListQuery, AdminSessionRevokeAllBody, AdminSessionRevokeBody, AdminTrustedDeviceListQuery, AdminTrustedDeviceRevokeBody, ApiKeyCreateBody, ApiKeyRevokeBody,
|
|
42
|
-
import { AuthApiRateLimit, AuthOriginCheckMiddleware, AuthRateLimitMiddleware } from "./Security.js";
|
|
43
|
-
import type { AuthApiRateLimitService } from "./Security.js";
|
|
58
|
+
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, 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
59
|
import { AuthHttp } from "./Transport.js";
|
|
45
60
|
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;
|
|
61
|
+
export { AuthClientProtocolApi, EmailAuthHttpApiGroup, EmailOtpHttpApiGroup, EmailVerificationHttpApiGroup, IdentityHttpApiGroup, LoginApprovalHttpApiGroup, MagicLinkHttpApiGroup, MfaHttpApiGroup, PasskeyHttpApiGroup, PasswordHttpApiGroup, RecoveryCodesHttpApiGroup, LoginNotificationHttpApiGroup, SessionHttpApiGroup, StepUpHttpApiGroup, TotpHttpApiGroup, } from "./ClientApi.js";
|
|
62
|
+
export { makePasswordChangeHandler, makePasswordResetStartHandler, makePasswordResetVerifyHandler, makePasswordSetHandler, makePasswordSignInHandler, makePasswordSignUpHandler, passwordChangeInput, passwordSetInput, PasswordHttpApi, PasswordHttpApiGroupLive, PasswordHttpApiLive, PasswordHttpOperationsLive, } from "./Password.js";
|
|
63
|
+
export type { PasswordChangeHandlerRequest, PasswordResetStartHandlerRequest, PasswordResetVerifyHandlerRequest, PasswordSetHandlerRequest, PasswordSignInHandlerRequest, PasswordSignUpHandlerRequest, } from "./Password.js";
|
|
53
64
|
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
65
|
export interface OAuthAuthorizationCodeVerifierStoreInput {
|
|
59
66
|
readonly payload: Schema.Schema.Type<typeof OAuthAuthorizationStartBody>;
|
|
60
67
|
readonly started: StartedOAuthAuthorization;
|
|
@@ -122,7 +129,7 @@ export declare const oauthAuthorizationStartedHttpBody: (started: StartedOAuthAu
|
|
|
122
129
|
providerId: OAuthProviderId;
|
|
123
130
|
authorizationUrl: string;
|
|
124
131
|
state: import("../OAuth.js").OAuthStateToken;
|
|
125
|
-
challengeId:
|
|
132
|
+
challengeId: ChallengeId;
|
|
126
133
|
expiresAt: UnixMillis;
|
|
127
134
|
codeChallenge: import("../OAuth.js").OAuthCodeChallenge;
|
|
128
135
|
codeChallengeMethod: "S256";
|
|
@@ -175,6 +182,17 @@ export interface PasskeyFinishHttpOptions {
|
|
|
175
182
|
readonly expectedOrigin: string | readonly string[];
|
|
176
183
|
readonly requireUserVerification?: boolean;
|
|
177
184
|
}
|
|
185
|
+
export interface PasskeyRegistrationUser {
|
|
186
|
+
readonly userName: string;
|
|
187
|
+
readonly userDisplayName: string;
|
|
188
|
+
readonly metadata?: Readonly<Record<string, unknown>>;
|
|
189
|
+
}
|
|
190
|
+
export interface PasskeyRegistrationUserResolverInput {
|
|
191
|
+
readonly currentSession: CurrentSessionShape;
|
|
192
|
+
readonly actor?: CurrentActorShape;
|
|
193
|
+
readonly request: HttpServerRequest.HttpServerRequest;
|
|
194
|
+
}
|
|
195
|
+
export type PasskeyRegistrationUserResolver = (input: PasskeyRegistrationUserResolverInput) => Effect.Effect<PasskeyRegistrationUser, AuthBadRequestError | AuthInternalError>;
|
|
178
196
|
export interface TotpEnrollmentStartHttpOptions {
|
|
179
197
|
readonly issuer: string;
|
|
180
198
|
readonly secretBytes?: number;
|
|
@@ -190,18 +208,73 @@ export interface RecoveryCodeGenerateHttpOptions {
|
|
|
190
208
|
readonly length?: number;
|
|
191
209
|
readonly groupSize?: number;
|
|
192
210
|
}
|
|
193
|
-
export
|
|
211
|
+
export interface PasskeyHttpConfigValue {
|
|
212
|
+
readonly relyingParty: PasskeyRelyingParty;
|
|
213
|
+
readonly expectedOrigin: string | readonly string[];
|
|
214
|
+
readonly timeout?: number;
|
|
215
|
+
readonly pubKeyCredParams?: readonly PasskeyPublicKeyCredentialParameters[];
|
|
216
|
+
readonly authenticatorSelection?: PasskeyAuthenticatorSelection;
|
|
217
|
+
readonly attestation?: PasskeyAttestation;
|
|
218
|
+
readonly userVerification?: PasskeyUserVerification;
|
|
219
|
+
readonly requireUserVerification?: boolean;
|
|
220
|
+
}
|
|
221
|
+
declare const PasskeyHttpConfig_base: Context.ServiceClass<PasskeyHttpConfig, "auth/http/config/Passkey", PasskeyHttpConfigValue>;
|
|
222
|
+
export declare class PasskeyHttpConfig extends PasskeyHttpConfig_base {
|
|
223
|
+
}
|
|
224
|
+
export declare namespace PasskeyHttpConfig {
|
|
225
|
+
const make: (config: PasskeyHttpConfigValue) => PasskeyHttpConfigValue;
|
|
226
|
+
}
|
|
227
|
+
export declare const PasskeyHttpConfigLive: (config: PasskeyHttpConfigValue) => Layer.Layer<PasskeyHttpConfig, never, never>;
|
|
228
|
+
export interface TotpHttpConfigValue extends TotpEnrollmentStartHttpOptions, TotpCodeHttpOptions {
|
|
229
|
+
}
|
|
230
|
+
declare const TotpHttpConfig_base: Context.ServiceClass<TotpHttpConfig, "auth/http/config/Totp", TotpHttpConfigValue>;
|
|
231
|
+
export declare class TotpHttpConfig extends TotpHttpConfig_base {
|
|
232
|
+
}
|
|
233
|
+
export declare namespace TotpHttpConfig {
|
|
234
|
+
const make: (config: TotpHttpConfigValue) => TotpHttpConfigValue;
|
|
235
|
+
}
|
|
236
|
+
export declare const TotpHttpConfigLive: (config: TotpHttpConfigValue) => Layer.Layer<TotpHttpConfig, never, never>;
|
|
237
|
+
export declare const RecoveryCodeHttpConfig: Context.Reference<RecoveryCodeGenerateHttpOptions>;
|
|
238
|
+
export declare const RecoveryCodeHttpConfigLive: (config?: RecoveryCodeGenerateHttpOptions) => Layer.Layer<never, never, never>;
|
|
239
|
+
export interface OAuthHttpConfigValue extends OAuthAuthorizationStartHttpOptions, OAuthAccountUnlinkHttpOptions, OAuthLinkConfirmationStartHttpOptions, OAuthLinkConfirmationConfirmHttpOptions {
|
|
240
|
+
}
|
|
241
|
+
export declare const OAuthHttpConfig: Context.Reference<OAuthHttpConfigValue>;
|
|
242
|
+
export declare const OAuthHttpConfigLive: (config?: OAuthHttpConfigValue) => Layer.Layer<never, never, never>;
|
|
243
|
+
export declare const OAuthTokenHttpConfig: Context.Reference<OAuthTokenClientAuthenticationHttpOptions>;
|
|
244
|
+
export declare const OAuthTokenHttpConfigLive: (config?: OAuthTokenClientAuthenticationHttpOptions) => Layer.Layer<never, never, never>;
|
|
245
|
+
declare const RefreshTokenHttpConfig_base: Context.ServiceClass<RefreshTokenHttpConfig, "auth/http/config/RefreshToken", RefreshTokenRefreshHttpOptions>;
|
|
246
|
+
export declare class RefreshTokenHttpConfig extends RefreshTokenHttpConfig_base {
|
|
247
|
+
}
|
|
248
|
+
export declare namespace RefreshTokenHttpConfig {
|
|
249
|
+
const make: (config: RefreshTokenRefreshHttpOptions) => RefreshTokenRefreshHttpOptions;
|
|
250
|
+
}
|
|
251
|
+
export declare const RefreshTokenHttpConfigLive: (config: RefreshTokenRefreshHttpOptions) => Layer.Layer<RefreshTokenHttpConfig, never, never>;
|
|
252
|
+
export declare const JwtHttpConfig: Context.Reference<JwtIntrospectionHttpOptions>;
|
|
253
|
+
export declare const JwtHttpConfigLive: (config?: JwtIntrospectionHttpOptions) => Layer.Layer<never, never, never>;
|
|
254
|
+
export declare const passkeyRegistrationStartHttpOptions: (config: PasskeyHttpConfigValue) => PasskeyRegistrationStartHttpOptions;
|
|
255
|
+
export declare const passkeyAuthenticationStartHttpOptions: (config: PasskeyHttpConfigValue) => PasskeyAuthenticationStartHttpOptions;
|
|
256
|
+
export declare const passkeyFinishHttpOptions: (config: PasskeyHttpConfigValue) => PasskeyFinishHttpOptions;
|
|
257
|
+
export declare const passkeyAuthenticationSessionInput: ({ finished, payload, }: PasskeyAuthenticationSessionContext) => SessionCreateInput;
|
|
258
|
+
export declare const passkeyRegistrationStartInput: (userId: UserId, user: PasskeyRegistrationUser, options: PasskeyRegistrationStartHttpOptions) => {
|
|
259
|
+
metadata?: undefined;
|
|
194
260
|
relyingParty: PasskeyRelyingParty;
|
|
195
|
-
userId:
|
|
261
|
+
userId: UserId;
|
|
262
|
+
userName: string;
|
|
263
|
+
userDisplayName: string;
|
|
264
|
+
timeout?: number | undefined;
|
|
265
|
+
pubKeyCredParams?: readonly PasskeyPublicKeyCredentialParameters[] | undefined;
|
|
266
|
+
authenticatorSelection?: PasskeyAuthenticatorSelection | undefined;
|
|
267
|
+
attestation?: PasskeyAttestation | undefined;
|
|
268
|
+
} | {
|
|
269
|
+
metadata: Readonly<Record<string, unknown>>;
|
|
270
|
+
relyingParty: PasskeyRelyingParty;
|
|
271
|
+
userId: UserId;
|
|
196
272
|
userName: string;
|
|
197
273
|
userDisplayName: string;
|
|
198
274
|
timeout?: number | undefined;
|
|
199
275
|
pubKeyCredParams?: readonly PasskeyPublicKeyCredentialParameters[] | undefined;
|
|
200
276
|
authenticatorSelection?: PasskeyAuthenticatorSelection | undefined;
|
|
201
277
|
attestation?: PasskeyAttestation | undefined;
|
|
202
|
-
metadata?: {
|
|
203
|
-
readonly [x: string]: unknown;
|
|
204
|
-
} | undefined;
|
|
205
278
|
};
|
|
206
279
|
export declare const passkeyAuthenticationStartInput: (payload: Schema.Schema.Type<typeof PasskeyAuthenticationStartBody>, options: PasskeyAuthenticationStartHttpOptions) => {
|
|
207
280
|
relyingPartyId: string;
|
|
@@ -213,9 +286,29 @@ export declare const passkeyAuthenticationStartInput: (payload: Schema.Schema.Ty
|
|
|
213
286
|
} | undefined;
|
|
214
287
|
};
|
|
215
288
|
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) => {
|
|
289
|
+
export declare const passkeyRegistrationFinishInput: (userId: UserId, payload: Schema.Schema.Type<typeof PasskeyRegistrationFinishBody>, user: PasskeyRegistrationUser, options: PasskeyFinishHttpOptions) => {
|
|
290
|
+
metadata?: undefined;
|
|
217
291
|
challengeId: string & import("effect/Brand").Brand<"auth/ChallengeId">;
|
|
218
|
-
userId:
|
|
292
|
+
userId: UserId;
|
|
293
|
+
response: {
|
|
294
|
+
readonly id: string;
|
|
295
|
+
readonly rawId?: string | undefined;
|
|
296
|
+
readonly type: "public-key";
|
|
297
|
+
readonly response: {
|
|
298
|
+
readonly [x: string]: unknown;
|
|
299
|
+
};
|
|
300
|
+
readonly authenticatorAttachment?: string | undefined;
|
|
301
|
+
readonly clientExtensionResults?: {
|
|
302
|
+
readonly [x: string]: unknown;
|
|
303
|
+
} | undefined;
|
|
304
|
+
};
|
|
305
|
+
relyingPartyId: string;
|
|
306
|
+
expectedOrigin: string | readonly string[];
|
|
307
|
+
requireUserVerification?: boolean | undefined;
|
|
308
|
+
} | {
|
|
309
|
+
metadata: Readonly<Record<string, unknown>>;
|
|
310
|
+
challengeId: string & import("effect/Brand").Brand<"auth/ChallengeId">;
|
|
311
|
+
userId: UserId;
|
|
219
312
|
response: {
|
|
220
313
|
readonly id: string;
|
|
221
314
|
readonly rawId?: string | undefined;
|
|
@@ -231,9 +324,6 @@ export declare const passkeyRegistrationFinishInput: (payload: Schema.Schema.Typ
|
|
|
231
324
|
relyingPartyId: string;
|
|
232
325
|
expectedOrigin: string | readonly string[];
|
|
233
326
|
requireUserVerification?: boolean | undefined;
|
|
234
|
-
metadata?: {
|
|
235
|
-
readonly [x: string]: unknown;
|
|
236
|
-
} | undefined;
|
|
237
327
|
};
|
|
238
328
|
export declare const passkeyAuthenticationFinishInput: (payload: Schema.Schema.Type<typeof PasskeyAuthenticationFinishBody>, options: PasskeyFinishHttpOptions) => {
|
|
239
329
|
challengeId: string & import("effect/Brand").Brand<"auth/ChallengeId">;
|
|
@@ -257,7 +347,7 @@ export declare const passkeyAuthenticationFinishInput: (payload: Schema.Schema.T
|
|
|
257
347
|
readonly [x: string]: unknown;
|
|
258
348
|
} | undefined;
|
|
259
349
|
};
|
|
260
|
-
export declare const passkeyMfaVerifyInput: (payload: Schema.Schema.Type<typeof PasskeyMfaVerifyBody>, options: PasskeyFinishHttpOptions) => {
|
|
350
|
+
export declare const passkeyMfaVerifyInput: (payload: Schema.Schema.Type<typeof PasskeyMfaVerifyBody>, options: PasskeyFinishHttpOptions, expectedUserId?: UserId) => {
|
|
261
351
|
challengeId: string & import("effect/Brand").Brand<"auth/ChallengeId">;
|
|
262
352
|
response: {
|
|
263
353
|
readonly id: string;
|
|
@@ -274,7 +364,10 @@ export declare const passkeyMfaVerifyInput: (payload: Schema.Schema.Type<typeof
|
|
|
274
364
|
userId?: (string & import("effect/Brand").Brand<"auth/UserId">) | undefined;
|
|
275
365
|
relyingPartyId: string;
|
|
276
366
|
expectedOrigin: string | readonly string[];
|
|
277
|
-
requireUserVerification
|
|
367
|
+
requireUserVerification: boolean;
|
|
368
|
+
expectedChallengeMetadata: {
|
|
369
|
+
flowId: string & import("effect/Brand").Brand<"auth/AuthFlowId">;
|
|
370
|
+
};
|
|
278
371
|
metadata?: {
|
|
279
372
|
readonly [x: string]: unknown;
|
|
280
373
|
} | undefined;
|
|
@@ -289,6 +382,7 @@ export declare const totpEnrollmentConfirmInput: (userId: UserId, payload: Schem
|
|
|
289
382
|
export declare const totpVerifyInput: (userId: UserId, payload: Schema.Schema.Type<typeof TotpVerifyBody>, options?: TotpCodeHttpOptions) => TotpVerifyForUserInput;
|
|
290
383
|
export declare const totpFactorRevokeInput: (userId: UserId, payload: Schema.Schema.Type<typeof TotpFactorRevokeBody>) => TotpFactorManagementRevokeInput;
|
|
291
384
|
export declare const recoveryCodeGenerateInput: (userId: UserId, payload: Schema.Schema.Type<typeof RecoveryCodeGenerateBody>, options?: RecoveryCodeGenerateHttpOptions) => RecoveryCodeGenerateForUserInput;
|
|
385
|
+
export declare const recoveryCodeRegenerateInput: (userId: UserId, payload: Schema.Schema.Type<typeof RecoveryCodeRegenerateBody>, options?: RecoveryCodeGenerateHttpOptions) => RecoveryCodeRegenerateForUserInput;
|
|
292
386
|
export declare const recoveryCodeVerifyInput: (userId: UserId, payload: Schema.Schema.Type<typeof RecoveryCodeVerifyBody>) => RecoveryCodeVerifyForUserInput;
|
|
293
387
|
export declare const recoveryCodeRevokeInput: (userId: UserId, payload: Schema.Schema.Type<typeof RecoveryCodeRevokeBody>) => RecoveryCodeManagementRevokeInput;
|
|
294
388
|
export declare const apiKeyCreateInput: (userId: UserId, payload: Schema.Schema.Type<typeof ApiKeyCreateBody>) => ApiKeyCreateForUserInput;
|
|
@@ -318,6 +412,12 @@ export declare const totpMfaVerifyForFlowInput: (userId: UserId, payload: Schema
|
|
|
318
412
|
export declare const recoveryCodeMfaVerifyInput: (payload: Schema.Schema.Type<typeof RecoveryCodeMfaVerifyBody>) => RecoveryCodeVerifyForUserInput;
|
|
319
413
|
export declare const recoveryCodeMfaVerifyForFlowInput: (userId: UserId, payload: Schema.Schema.Type<typeof RecoveryCodeMfaVerifyForFlowBody>) => RecoveryCodeVerifyForUserInput;
|
|
320
414
|
export declare const stepUpTotpVerifyInput: (userId: UserId, payload: Schema.Schema.Type<typeof StepUpTotpVerifyBody>, options?: TotpCodeHttpOptions) => TotpVerifyForUserInput;
|
|
415
|
+
export declare const stepUpPasswordVerifyInput: (payload: Schema.Schema.Type<typeof StepUpPasswordVerifyBody>) => {
|
|
416
|
+
password: Redacted.Redacted<string>;
|
|
417
|
+
metadata?: {
|
|
418
|
+
readonly [x: string]: unknown;
|
|
419
|
+
} | undefined;
|
|
420
|
+
};
|
|
321
421
|
export declare const stepUpRecoveryCodeVerifyInput: (userId: UserId, payload: Schema.Schema.Type<typeof StepUpRecoveryCodeVerifyBody>) => RecoveryCodeVerifyForUserInput;
|
|
322
422
|
export declare const stepUpPasskeyStartInput: (userId: UserId, payload: Schema.Schema.Type<typeof StepUpPasskeyStartBody>, options: PasskeyAuthenticationStartHttpOptions) => PasskeyAuthenticationStartInput;
|
|
323
423
|
export declare const stepUpPasskeyVerifyInput: (userId: UserId, payload: Schema.Schema.Type<typeof StepUpPasskeyVerifyBody>, options: PasskeyFinishHttpOptions) => PasskeyAuthenticationFinishInput;
|
|
@@ -346,8 +446,8 @@ export declare const adminSessionHttpBody: (session: SessionInfoShape) => {
|
|
|
346
446
|
authTime: UnixMillis;
|
|
347
447
|
lastSeenAt?: UnixMillis | undefined;
|
|
348
448
|
expiresAt: UnixMillis;
|
|
349
|
-
aal: import("../
|
|
350
|
-
amr: readonly AuthMethodReference[];
|
|
449
|
+
aal: import("../Assurance.js").AssuranceLevel;
|
|
450
|
+
amr: readonly import("../Assurance.js").AuthMethodReference[];
|
|
351
451
|
mfaVerifiedAt?: UnixMillis | undefined;
|
|
352
452
|
ip?: string | undefined;
|
|
353
453
|
userAgent?: string | undefined;
|
|
@@ -360,39 +460,23 @@ export declare const adminSessionHttpBody: (session: SessionInfoShape) => {
|
|
|
360
460
|
export declare const stepUpAuthenticatedHttpBody: (session: CurrentSessionShape) => {
|
|
361
461
|
type: "authenticated";
|
|
362
462
|
expiresAt: number;
|
|
363
|
-
aal: import("../
|
|
364
|
-
amr: readonly AuthMethodReference[];
|
|
463
|
+
aal: import("../Assurance.js").AssuranceLevel;
|
|
464
|
+
amr: readonly import("../Assurance.js").AuthMethodReference[];
|
|
365
465
|
mfaVerifiedAt?: UnixMillis | undefined;
|
|
366
466
|
} | {
|
|
367
467
|
type: "authenticated";
|
|
368
468
|
expiresAt: number;
|
|
369
|
-
aal: import("../
|
|
370
|
-
amr: readonly AuthMethodReference[];
|
|
469
|
+
aal: import("../Assurance.js").AssuranceLevel;
|
|
470
|
+
amr: readonly import("../Assurance.js").AuthMethodReference[];
|
|
371
471
|
mfaVerifiedAt?: UnixMillis | undefined;
|
|
372
472
|
claims: SessionClaims;
|
|
373
473
|
};
|
|
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
|
-
};
|
|
474
|
+
type AuthRateLimitHandlerRequestData = AuthRateLimitGuardRequest;
|
|
475
|
+
export declare const makePasskeyRegistrationUserResolver: (dependencies: {
|
|
476
|
+
readonly users: UserStoreService;
|
|
477
|
+
readonly identities: IdentityStoreService;
|
|
478
|
+
}) => PasskeyRegistrationUserResolver;
|
|
479
|
+
export declare const identityHttpError: (error: IdentityManagementError) => AuthBadRequestError | AuthIdentityAlreadyRegisteredError | AuthInternalError | AuthPolicyDeniedError;
|
|
396
480
|
export type SessionHandlerRequest = {
|
|
397
481
|
readonly request: HttpServerRequest.HttpServerRequest;
|
|
398
482
|
};
|
|
@@ -426,8 +510,39 @@ export interface AdminSessionAuthorizationService {
|
|
|
426
510
|
declare const AdminSessionAuthorization_base: Context.ServiceClass<AdminSessionAuthorization, "auth/AdminSessionAuthorization", AdminSessionAuthorizationService>;
|
|
427
511
|
export declare class AdminSessionAuthorization extends AdminSessionAuthorization_base {
|
|
428
512
|
}
|
|
429
|
-
export
|
|
430
|
-
|
|
513
|
+
export type AdminPermissionDefinitionCreateHandlerRequest = {
|
|
514
|
+
readonly payload: Schema.Schema.Type<typeof AdminPermissionDefinitionCreateBody>;
|
|
515
|
+
readonly request: HttpServerRequest.HttpServerRequest;
|
|
516
|
+
};
|
|
517
|
+
export type AdminPermissionDefinitionGetHandlerRequest = {
|
|
518
|
+
readonly query: Schema.Schema.Type<typeof AdminPermissionDefinitionGetQuery>;
|
|
519
|
+
readonly request: HttpServerRequest.HttpServerRequest;
|
|
520
|
+
};
|
|
521
|
+
export type AdminPermissionDefinitionListHandlerRequest = {
|
|
522
|
+
readonly query: Schema.Schema.Type<typeof AdminPermissionDefinitionListQuery>;
|
|
523
|
+
readonly request: HttpServerRequest.HttpServerRequest;
|
|
524
|
+
};
|
|
525
|
+
export type AdminPermissionDefinitionUpdateHandlerRequest = {
|
|
526
|
+
readonly payload: Schema.Schema.Type<typeof AdminPermissionDefinitionUpdateBody>;
|
|
527
|
+
readonly request: HttpServerRequest.HttpServerRequest;
|
|
528
|
+
};
|
|
529
|
+
export type AdminPermissionDefinitionMutationHandlerRequest = {
|
|
530
|
+
readonly payload: Schema.Schema.Type<typeof AdminPermissionDefinitionMutationBody>;
|
|
531
|
+
readonly request: HttpServerRequest.HttpServerRequest;
|
|
532
|
+
};
|
|
533
|
+
export type AdminPermissionDefinitionAuthorizationAction = "create" | "get" | "list" | "update" | "disable" | "enable" | "delete";
|
|
534
|
+
export interface AdminPermissionDefinitionAuthorizationInput {
|
|
535
|
+
readonly currentSession: CurrentSessionShape;
|
|
536
|
+
readonly action: AdminPermissionDefinitionAuthorizationAction;
|
|
537
|
+
readonly request: HttpServerRequest.HttpServerRequest;
|
|
538
|
+
readonly permissionId?: PermissionId;
|
|
539
|
+
readonly scopeType?: string | null;
|
|
540
|
+
}
|
|
541
|
+
export interface AdminPermissionDefinitionAuthorizationService {
|
|
542
|
+
readonly authorize: (input: AdminPermissionDefinitionAuthorizationInput) => Effect.Effect<void, AuthPolicyDeniedError | AuthInternalError>;
|
|
543
|
+
}
|
|
544
|
+
declare const AdminPermissionDefinitionAuthorization_base: Context.ServiceClass<AdminPermissionDefinitionAuthorization, "auth/AdminPermissionDefinitionAuthorization", AdminPermissionDefinitionAuthorizationService>;
|
|
545
|
+
export declare class AdminPermissionDefinitionAuthorization extends AdminPermissionDefinitionAuthorization_base {
|
|
431
546
|
}
|
|
432
547
|
export type LoginNotificationReportHandlerRequest = {
|
|
433
548
|
readonly payload: Schema.Schema.Type<typeof LoginNotificationReportBody>;
|
|
@@ -451,9 +566,6 @@ export interface AdminSecurityTimelineAuthorizationService {
|
|
|
451
566
|
declare const AdminSecurityTimelineAuthorization_base: Context.ServiceClass<AdminSecurityTimelineAuthorization, "auth/AdminSecurityTimelineAuthorization", AdminSecurityTimelineAuthorizationService>;
|
|
452
567
|
export declare class AdminSecurityTimelineAuthorization extends AdminSecurityTimelineAuthorization_base {
|
|
453
568
|
}
|
|
454
|
-
export declare namespace AdminSecurityTimelineAuthorization {
|
|
455
|
-
const make: (service: AdminSecurityTimelineAuthorizationService) => AdminSecurityTimelineAuthorizationService;
|
|
456
|
-
}
|
|
457
569
|
export type TrustedDeviceListHandlerRequest = {
|
|
458
570
|
readonly request: HttpServerRequest.HttpServerRequest;
|
|
459
571
|
};
|
|
@@ -483,30 +595,16 @@ export interface AdminTrustedDeviceAuthorizationService {
|
|
|
483
595
|
declare const AdminTrustedDeviceAuthorization_base: Context.ServiceClass<AdminTrustedDeviceAuthorization, "auth/AdminTrustedDeviceAuthorization", AdminTrustedDeviceAuthorizationService>;
|
|
484
596
|
export declare class AdminTrustedDeviceAuthorization extends AdminTrustedDeviceAuthorization_base {
|
|
485
597
|
}
|
|
486
|
-
export
|
|
487
|
-
const make: (service: AdminTrustedDeviceAuthorizationService) => AdminTrustedDeviceAuthorizationService;
|
|
488
|
-
}
|
|
489
|
-
export type EmailVerificationStartHandlerRequest = {
|
|
490
|
-
readonly payload: Schema.Schema.Type<typeof EmailVerificationStartBody>;
|
|
491
|
-
};
|
|
598
|
+
export type EmailVerificationStartHandlerRequest = EmailVerificationStartGuardRequest;
|
|
492
599
|
export type EmailVerificationVerifyHandlerRequest = {
|
|
493
600
|
readonly payload: Schema.Schema.Type<typeof EmailVerificationVerifyBody>;
|
|
494
601
|
readonly request: HttpServerRequest.HttpServerRequest;
|
|
495
602
|
};
|
|
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
|
-
};
|
|
603
|
+
export type EmailOtpStartHandlerRequest = EmailOtpStartGuardRequest;
|
|
604
|
+
export type EmailOtpVerifyHandlerRequest = EmailOtpVerifyGuardRequest;
|
|
605
|
+
export type EmailAuthStartHandlerRequest = EmailAuthStartGuardRequest;
|
|
606
|
+
export type MagicLinkStartHandlerRequest = MagicLinkStartGuardRequest;
|
|
607
|
+
export type MagicLinkVerifyHandlerRequest = MagicLinkVerifyGuardRequest;
|
|
510
608
|
export type OAuthAuthorizationStartHandlerRequest = {
|
|
511
609
|
readonly payload: Schema.Schema.Type<typeof OAuthAuthorizationStartBody>;
|
|
512
610
|
};
|
|
@@ -537,16 +635,18 @@ export type OAuthLinkConfirmationConfirmHandlerRequest = {
|
|
|
537
635
|
readonly payload: Schema.Schema.Type<typeof OAuthLinkConfirmationConfirmBody>;
|
|
538
636
|
readonly request?: HttpServerRequest.HttpServerRequest;
|
|
539
637
|
};
|
|
540
|
-
export type PasskeyRegistrationStartHandlerRequest = {
|
|
638
|
+
export type PasskeyRegistrationStartHandlerRequest = AuthRateLimitHandlerRequestData & {
|
|
541
639
|
readonly payload: Schema.Schema.Type<typeof PasskeyRegistrationStartBody>;
|
|
640
|
+
readonly request: HttpServerRequest.HttpServerRequest;
|
|
542
641
|
};
|
|
543
|
-
export type PasskeyRegistrationFinishHandlerRequest = {
|
|
642
|
+
export type PasskeyRegistrationFinishHandlerRequest = AuthRateLimitHandlerRequestData & {
|
|
544
643
|
readonly payload: Schema.Schema.Type<typeof PasskeyRegistrationFinishBody>;
|
|
644
|
+
readonly request: HttpServerRequest.HttpServerRequest;
|
|
545
645
|
};
|
|
546
|
-
export type PasskeyAuthenticationStartHandlerRequest = {
|
|
646
|
+
export type PasskeyAuthenticationStartHandlerRequest = AuthRateLimitHandlerRequestData & {
|
|
547
647
|
readonly payload: Schema.Schema.Type<typeof PasskeyAuthenticationStartBody>;
|
|
548
648
|
};
|
|
549
|
-
export type PasskeyAuthenticationFinishHandlerRequest = {
|
|
649
|
+
export type PasskeyAuthenticationFinishHandlerRequest = AuthRateLimitHandlerRequestData & {
|
|
550
650
|
readonly payload: Schema.Schema.Type<typeof PasskeyAuthenticationFinishBody>;
|
|
551
651
|
readonly request?: HttpServerRequest.HttpServerRequest;
|
|
552
652
|
};
|
|
@@ -580,6 +680,10 @@ export type RecoveryCodeGenerateHandlerRequest = {
|
|
|
580
680
|
readonly payload: Schema.Schema.Type<typeof RecoveryCodeGenerateBody>;
|
|
581
681
|
readonly request: HttpServerRequest.HttpServerRequest;
|
|
582
682
|
};
|
|
683
|
+
export type RecoveryCodeRegenerateHandlerRequest = {
|
|
684
|
+
readonly payload: Schema.Schema.Type<typeof RecoveryCodeRegenerateBody>;
|
|
685
|
+
readonly request: HttpServerRequest.HttpServerRequest;
|
|
686
|
+
};
|
|
583
687
|
export type RecoveryCodeVerifyHandlerRequest = {
|
|
584
688
|
readonly payload: Schema.Schema.Type<typeof RecoveryCodeVerifyBody>;
|
|
585
689
|
readonly request: HttpServerRequest.HttpServerRequest;
|
|
@@ -620,29 +724,26 @@ export interface OidcDiscoveryMetadataService {
|
|
|
620
724
|
declare const OidcDiscoveryMetadata_base: Context.ServiceClass<OidcDiscoveryMetadata, "auth/OidcDiscoveryMetadata", OidcDiscoveryMetadataService>;
|
|
621
725
|
export declare class OidcDiscoveryMetadata extends OidcDiscoveryMetadata_base {
|
|
622
726
|
}
|
|
623
|
-
export declare namespace OidcDiscoveryMetadata {
|
|
624
|
-
const make: (service: OidcDiscoveryMetadataService) => OidcDiscoveryMetadataService;
|
|
625
|
-
}
|
|
626
727
|
export declare const OidcDiscoveryMetadataLive: (metadata: OidcDiscoveryMetadataShape) => Layer.Layer<OidcDiscoveryMetadata, never, never>;
|
|
627
|
-
export type TotpMfaVerifyHandlerRequest = {
|
|
728
|
+
export type TotpMfaVerifyHandlerRequest = AuthRateLimitHandlerRequestData & {
|
|
628
729
|
readonly payload: Schema.Schema.Type<typeof TotpMfaVerifyBody>;
|
|
629
730
|
};
|
|
630
|
-
export type TotpMfaVerifyForFlowHandlerRequest = {
|
|
731
|
+
export type TotpMfaVerifyForFlowHandlerRequest = AuthRateLimitHandlerRequestData & {
|
|
631
732
|
readonly payload: Schema.Schema.Type<typeof TotpMfaVerifyForFlowBody>;
|
|
632
733
|
};
|
|
633
|
-
export type MfaOptionsHandlerRequest = {
|
|
734
|
+
export type MfaOptionsHandlerRequest = AuthRateLimitHandlerRequestData & {
|
|
634
735
|
readonly payload: Schema.Schema.Type<typeof MfaOptionsBody>;
|
|
635
736
|
};
|
|
636
|
-
export type RecoveryCodeMfaVerifyHandlerRequest = {
|
|
737
|
+
export type RecoveryCodeMfaVerifyHandlerRequest = AuthRateLimitHandlerRequestData & {
|
|
637
738
|
readonly payload: Schema.Schema.Type<typeof RecoveryCodeMfaVerifyBody>;
|
|
638
739
|
};
|
|
639
|
-
export type RecoveryCodeMfaVerifyForFlowHandlerRequest = {
|
|
740
|
+
export type RecoveryCodeMfaVerifyForFlowHandlerRequest = AuthRateLimitHandlerRequestData & {
|
|
640
741
|
readonly payload: Schema.Schema.Type<typeof RecoveryCodeMfaVerifyForFlowBody>;
|
|
641
742
|
};
|
|
642
|
-
export type PasskeyMfaStartHandlerRequest = {
|
|
743
|
+
export type PasskeyMfaStartHandlerRequest = AuthRateLimitHandlerRequestData & {
|
|
643
744
|
readonly payload: Schema.Schema.Type<typeof PasskeyMfaStartBody>;
|
|
644
745
|
};
|
|
645
|
-
export type PasskeyMfaVerifyHandlerRequest = {
|
|
746
|
+
export type PasskeyMfaVerifyHandlerRequest = AuthRateLimitHandlerRequestData & {
|
|
646
747
|
readonly payload: Schema.Schema.Type<typeof PasskeyMfaVerifyBody>;
|
|
647
748
|
};
|
|
648
749
|
export type StepUpOptionsHandlerRequest = {
|
|
@@ -652,6 +753,10 @@ export type StepUpTotpVerifyHandlerRequest = {
|
|
|
652
753
|
readonly payload: Schema.Schema.Type<typeof StepUpTotpVerifyBody>;
|
|
653
754
|
readonly request: HttpServerRequest.HttpServerRequest;
|
|
654
755
|
};
|
|
756
|
+
export type StepUpPasswordVerifyHandlerRequest = {
|
|
757
|
+
readonly payload: Schema.Schema.Type<typeof StepUpPasswordVerifyBody>;
|
|
758
|
+
readonly request: HttpServerRequest.HttpServerRequest;
|
|
759
|
+
};
|
|
655
760
|
export type StepUpRecoveryCodeVerifyHandlerRequest = {
|
|
656
761
|
readonly payload: Schema.Schema.Type<typeof StepUpRecoveryCodeVerifyBody>;
|
|
657
762
|
readonly request: HttpServerRequest.HttpServerRequest;
|
|
@@ -680,41 +785,11 @@ export type LoginApprovalFinalizeHandlerRequest = {
|
|
|
680
785
|
readonly payload: Schema.Schema.Type<typeof LoginApprovalFinalizeBody>;
|
|
681
786
|
readonly request: HttpServerRequest.HttpServerRequest;
|
|
682
787
|
};
|
|
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
788
|
export declare const makeCurrentSessionHandler: (dependencies: {
|
|
714
789
|
readonly sessions: SessionsService;
|
|
715
790
|
readonly sessionCookie: SessionCookieService;
|
|
716
791
|
readonly authHttp: AuthHttpService;
|
|
717
|
-
}) => (
|
|
792
|
+
}) => (handlerRequest: SessionHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthInternalError | AuthUnauthenticatedError, never>;
|
|
718
793
|
export declare const makeRefreshSessionHandler: (dependencies: {
|
|
719
794
|
readonly sessions: SessionsService;
|
|
720
795
|
readonly sessionCookie: SessionCookieService;
|
|
@@ -728,7 +803,7 @@ export declare const makeLogoutHandler: (dependencies: {
|
|
|
728
803
|
export declare const makeListSessionsHandler: (dependencies: {
|
|
729
804
|
readonly sessions: SessionsService;
|
|
730
805
|
readonly sessionCookie: SessionCookieService;
|
|
731
|
-
}) => (
|
|
806
|
+
}) => (handlerRequest: SessionHandlerRequest) => Effect.Effect<{
|
|
732
807
|
sessions: {
|
|
733
808
|
sessionId: SessionId;
|
|
734
809
|
userId: UserId;
|
|
@@ -736,8 +811,8 @@ export declare const makeListSessionsHandler: (dependencies: {
|
|
|
736
811
|
authTime: UnixMillis;
|
|
737
812
|
lastSeenAt?: UnixMillis | undefined;
|
|
738
813
|
expiresAt: UnixMillis;
|
|
739
|
-
aal: import("../
|
|
740
|
-
amr: readonly AuthMethodReference[];
|
|
814
|
+
aal: import("../Assurance.js").AssuranceLevel;
|
|
815
|
+
amr: readonly import("../Assurance.js").AuthMethodReference[];
|
|
741
816
|
mfaVerifiedAt?: UnixMillis | undefined;
|
|
742
817
|
current: boolean;
|
|
743
818
|
claims?: SessionClaims | undefined;
|
|
@@ -755,16 +830,16 @@ export declare const makeRevokeSessionHandler: (dependencies: {
|
|
|
755
830
|
readonly sessions: SessionsService;
|
|
756
831
|
readonly sessionCookie: SessionCookieService;
|
|
757
832
|
readonly authHttp: AuthHttpService;
|
|
758
|
-
}) => (
|
|
833
|
+
}) => (handlerRequest: SessionRevokeHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthInternalError | AuthUnauthenticatedError, never>;
|
|
759
834
|
export declare const makeRevokeOtherSessionsHandler: (dependencies: {
|
|
760
835
|
readonly sessions: SessionsService;
|
|
761
836
|
readonly sessionCookie: SessionCookieService;
|
|
762
|
-
}) => (
|
|
837
|
+
}) => (handlerRequest: SessionHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthInternalError | AuthUnauthenticatedError, never>;
|
|
763
838
|
export declare const makeAdminSessionListHandler: (dependencies: {
|
|
764
839
|
readonly sessions: SessionsService;
|
|
765
840
|
readonly sessionCookie: SessionCookieService;
|
|
766
841
|
readonly authorization: AdminSessionAuthorizationService;
|
|
767
|
-
}) => (
|
|
842
|
+
}) => (handlerRequest: AdminSessionListHandlerRequest) => Effect.Effect<{
|
|
768
843
|
sessions: {
|
|
769
844
|
sessionId: SessionId;
|
|
770
845
|
userId: UserId;
|
|
@@ -772,8 +847,8 @@ export declare const makeAdminSessionListHandler: (dependencies: {
|
|
|
772
847
|
authTime: UnixMillis;
|
|
773
848
|
lastSeenAt?: UnixMillis | undefined;
|
|
774
849
|
expiresAt: UnixMillis;
|
|
775
|
-
aal: import("../
|
|
776
|
-
amr: readonly AuthMethodReference[];
|
|
850
|
+
aal: import("../Assurance.js").AssuranceLevel;
|
|
851
|
+
amr: readonly import("../Assurance.js").AuthMethodReference[];
|
|
777
852
|
mfaVerifiedAt?: UnixMillis | undefined;
|
|
778
853
|
ip?: string | undefined;
|
|
779
854
|
userAgent?: string | undefined;
|
|
@@ -788,18 +863,93 @@ export declare const makeAdminSessionRevokeHandler: (dependencies: {
|
|
|
788
863
|
readonly sessions: SessionsService;
|
|
789
864
|
readonly sessionCookie: SessionCookieService;
|
|
790
865
|
readonly authorization: AdminSessionAuthorizationService;
|
|
791
|
-
}) => (
|
|
866
|
+
}) => (handlerRequest: AdminSessionRevokeHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthInternalError | AuthPolicyDeniedError | AuthUnauthenticatedError, never>;
|
|
792
867
|
export declare const makeAdminSessionRevokeAllHandler: (dependencies: {
|
|
793
868
|
readonly sessions: SessionsService;
|
|
794
869
|
readonly sessionCookie: SessionCookieService;
|
|
795
870
|
readonly authorization: AdminSessionAuthorizationService;
|
|
796
|
-
}) => (
|
|
871
|
+
}) => (handlerRequest: AdminSessionRevokeAllHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthInternalError | AuthPolicyDeniedError | AuthUnauthenticatedError, never>;
|
|
872
|
+
export declare const adminPermissionDefinitionHttpBody: (definition: PermissionDefinitionRecord) => {
|
|
873
|
+
id: PermissionId;
|
|
874
|
+
description?: string | undefined;
|
|
875
|
+
scopeType?: string | undefined;
|
|
876
|
+
createdAt: UnixMillis;
|
|
877
|
+
updatedAt: UnixMillis;
|
|
878
|
+
disabledAt?: UnixMillis | undefined;
|
|
879
|
+
deletedAt?: UnixMillis | undefined;
|
|
880
|
+
};
|
|
881
|
+
export declare const adminPermissionDefinitionCreateOperation: (handlerRequest: AdminPermissionDefinitionCreateHandlerRequest) => Effect.Effect<{
|
|
882
|
+
id: PermissionId;
|
|
883
|
+
description?: string | undefined;
|
|
884
|
+
scopeType?: string | undefined;
|
|
885
|
+
createdAt: UnixMillis;
|
|
886
|
+
updatedAt: UnixMillis;
|
|
887
|
+
disabledAt?: UnixMillis | undefined;
|
|
888
|
+
deletedAt?: UnixMillis | undefined;
|
|
889
|
+
}, AuthBadRequestError | AuthConflictError | AuthInternalError | AuthNotFoundError | AuthPolicyDeniedError | AuthUnauthenticatedError, AdminPermissionDefinitionAuthorization | PermissionAdministration | SessionCookie | Sessions>;
|
|
890
|
+
export declare const adminPermissionDefinitionGetOperation: (handlerRequest: AdminPermissionDefinitionGetHandlerRequest) => Effect.Effect<{
|
|
891
|
+
id: PermissionId;
|
|
892
|
+
description?: string | undefined;
|
|
893
|
+
scopeType?: string | undefined;
|
|
894
|
+
createdAt: UnixMillis;
|
|
895
|
+
updatedAt: UnixMillis;
|
|
896
|
+
disabledAt?: UnixMillis | undefined;
|
|
897
|
+
deletedAt?: UnixMillis | undefined;
|
|
898
|
+
}, AuthBadRequestError | AuthConflictError | AuthInternalError | AuthNotFoundError | AuthPolicyDeniedError | AuthUnauthenticatedError, AdminPermissionDefinitionAuthorization | PermissionAdministration | SessionCookie | Sessions>;
|
|
899
|
+
export declare const adminPermissionDefinitionListOperation: (handlerRequest: AdminPermissionDefinitionListHandlerRequest) => Effect.Effect<{
|
|
900
|
+
definitions: {
|
|
901
|
+
id: PermissionId;
|
|
902
|
+
description?: string | undefined;
|
|
903
|
+
scopeType?: string | undefined;
|
|
904
|
+
createdAt: UnixMillis;
|
|
905
|
+
updatedAt: UnixMillis;
|
|
906
|
+
disabledAt?: UnixMillis | undefined;
|
|
907
|
+
deletedAt?: UnixMillis | undefined;
|
|
908
|
+
}[];
|
|
909
|
+
nextAfter?: PermissionId | undefined;
|
|
910
|
+
}, AuthBadRequestError | AuthConflictError | AuthInternalError | AuthNotFoundError | AuthPolicyDeniedError | AuthUnauthenticatedError, AdminPermissionDefinitionAuthorization | PermissionAdministration | SessionCookie | Sessions>;
|
|
911
|
+
export declare const adminPermissionDefinitionUpdateOperation: (handlerRequest: AdminPermissionDefinitionUpdateHandlerRequest) => Effect.Effect<{
|
|
912
|
+
id: PermissionId;
|
|
913
|
+
description?: string | undefined;
|
|
914
|
+
scopeType?: string | undefined;
|
|
915
|
+
createdAt: UnixMillis;
|
|
916
|
+
updatedAt: UnixMillis;
|
|
917
|
+
disabledAt?: UnixMillis | undefined;
|
|
918
|
+
deletedAt?: UnixMillis | undefined;
|
|
919
|
+
}, AuthBadRequestError | AuthConflictError | AuthInternalError | AuthNotFoundError | AuthPolicyDeniedError | AuthUnauthenticatedError, AdminPermissionDefinitionAuthorization | PermissionAdministration | SessionCookie | Sessions>;
|
|
920
|
+
export declare const adminPermissionDefinitionDisableOperation: (handlerRequest: AdminPermissionDefinitionMutationHandlerRequest) => Effect.Effect<{
|
|
921
|
+
id: PermissionId;
|
|
922
|
+
description?: string | undefined;
|
|
923
|
+
scopeType?: string | undefined;
|
|
924
|
+
createdAt: UnixMillis;
|
|
925
|
+
updatedAt: UnixMillis;
|
|
926
|
+
disabledAt?: UnixMillis | undefined;
|
|
927
|
+
deletedAt?: UnixMillis | undefined;
|
|
928
|
+
}, AuthBadRequestError | AuthConflictError | AuthInternalError | AuthNotFoundError | AuthPolicyDeniedError | AuthUnauthenticatedError, AdminPermissionDefinitionAuthorization | PermissionAdministration | SessionCookie | Sessions>;
|
|
929
|
+
export declare const adminPermissionDefinitionEnableOperation: (handlerRequest: AdminPermissionDefinitionMutationHandlerRequest) => Effect.Effect<{
|
|
930
|
+
id: PermissionId;
|
|
931
|
+
description?: string | undefined;
|
|
932
|
+
scopeType?: string | undefined;
|
|
933
|
+
createdAt: UnixMillis;
|
|
934
|
+
updatedAt: UnixMillis;
|
|
935
|
+
disabledAt?: UnixMillis | undefined;
|
|
936
|
+
deletedAt?: UnixMillis | undefined;
|
|
937
|
+
}, AuthBadRequestError | AuthConflictError | AuthInternalError | AuthNotFoundError | AuthPolicyDeniedError | AuthUnauthenticatedError, AdminPermissionDefinitionAuthorization | PermissionAdministration | SessionCookie | Sessions>;
|
|
938
|
+
export declare const adminPermissionDefinitionDeleteOperation: (handlerRequest: AdminPermissionDefinitionMutationHandlerRequest) => Effect.Effect<{
|
|
939
|
+
id: PermissionId;
|
|
940
|
+
description?: string | undefined;
|
|
941
|
+
scopeType?: string | undefined;
|
|
942
|
+
createdAt: UnixMillis;
|
|
943
|
+
updatedAt: UnixMillis;
|
|
944
|
+
disabledAt?: UnixMillis | undefined;
|
|
945
|
+
deletedAt?: UnixMillis | undefined;
|
|
946
|
+
}, AuthBadRequestError | AuthConflictError | AuthInternalError | AuthNotFoundError | AuthPolicyDeniedError | AuthUnauthenticatedError, AdminPermissionDefinitionAuthorization | PermissionAdministration | SessionCookie | Sessions>;
|
|
797
947
|
export declare const makeLoginNotificationReportHandler: (dependencies: {
|
|
798
948
|
readonly loginNotification?: LoginNotificationService;
|
|
799
949
|
}) => (args_0: LoginNotificationReportHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthBadRequestError | AuthInternalError | AuthPolicyDeniedError, never>;
|
|
800
950
|
export declare const securityTimelineEventHttpBody: (event: SecurityTimelineEvent) => {
|
|
801
951
|
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";
|
|
952
|
+
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
953
|
category: import("../SecurityTimeline.js").SecurityTimelineEventCategory;
|
|
804
954
|
severity: import("../SecurityTimeline.js").SecurityTimelineEventSeverity;
|
|
805
955
|
occurredAt: UnixMillis;
|
|
@@ -820,10 +970,10 @@ export declare const makeSecurityTimelineListHandler: (dependencies: {
|
|
|
820
970
|
readonly sessions: SessionsService;
|
|
821
971
|
readonly sessionCookie: SessionCookieService;
|
|
822
972
|
readonly securityTimeline: SecurityTimelineStoreService;
|
|
823
|
-
}) => (
|
|
973
|
+
}) => (handlerRequest: SecurityTimelineListHandlerRequest) => Effect.Effect<{
|
|
824
974
|
events: {
|
|
825
975
|
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";
|
|
976
|
+
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
977
|
category: import("../SecurityTimeline.js").SecurityTimelineEventCategory;
|
|
828
978
|
severity: import("../SecurityTimeline.js").SecurityTimelineEventSeverity;
|
|
829
979
|
occurredAt: UnixMillis;
|
|
@@ -846,10 +996,10 @@ export declare const makeAdminSecurityTimelineListHandler: (dependencies: {
|
|
|
846
996
|
readonly sessionCookie: SessionCookieService;
|
|
847
997
|
readonly securityTimeline: SecurityTimelineStoreService;
|
|
848
998
|
readonly authorization: AdminSecurityTimelineAuthorizationService;
|
|
849
|
-
}) => (
|
|
999
|
+
}) => (handlerRequest: AdminSecurityTimelineListHandlerRequest) => Effect.Effect<{
|
|
850
1000
|
events: {
|
|
851
1001
|
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";
|
|
1002
|
+
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
1003
|
category: import("../SecurityTimeline.js").SecurityTimelineEventCategory;
|
|
854
1004
|
severity: import("../SecurityTimeline.js").SecurityTimelineEventSeverity;
|
|
855
1005
|
occurredAt: UnixMillis;
|
|
@@ -878,7 +1028,7 @@ export declare const makeTrustedDeviceListHandler: (dependencies: {
|
|
|
878
1028
|
readonly sessions: SessionsService;
|
|
879
1029
|
readonly sessionCookie: SessionCookieService;
|
|
880
1030
|
readonly trustedDevices: TrustedDeviceStoreService;
|
|
881
|
-
}) => (
|
|
1031
|
+
}) => (handlerRequest: TrustedDeviceListHandlerRequest) => Effect.Effect<{
|
|
882
1032
|
devices: {
|
|
883
1033
|
deviceId: string;
|
|
884
1034
|
createdAt: UnixMillis;
|
|
@@ -891,13 +1041,13 @@ export declare const makeTrustedDeviceRevokeHandler: (dependencies: {
|
|
|
891
1041
|
readonly sessions: SessionsService;
|
|
892
1042
|
readonly sessionCookie: SessionCookieService;
|
|
893
1043
|
readonly trustedDevices: TrustedDeviceStoreService;
|
|
894
|
-
}) => (
|
|
1044
|
+
}) => (handlerRequest: TrustedDeviceRevokeHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthInternalError | AuthUnauthenticatedError, never>;
|
|
895
1045
|
export declare const makeAdminTrustedDeviceListHandler: (dependencies: {
|
|
896
1046
|
readonly sessions: SessionsService;
|
|
897
1047
|
readonly sessionCookie: SessionCookieService;
|
|
898
1048
|
readonly trustedDevices: TrustedDeviceStoreService;
|
|
899
1049
|
readonly authorization: AdminTrustedDeviceAuthorizationService;
|
|
900
|
-
}) => (
|
|
1050
|
+
}) => (handlerRequest: AdminTrustedDeviceListHandlerRequest) => Effect.Effect<{
|
|
901
1051
|
devices: {
|
|
902
1052
|
deviceId: string;
|
|
903
1053
|
createdAt: UnixMillis;
|
|
@@ -911,11 +1061,10 @@ export declare const makeAdminTrustedDeviceRevokeHandler: (dependencies: {
|
|
|
911
1061
|
readonly sessionCookie: SessionCookieService;
|
|
912
1062
|
readonly trustedDevices: TrustedDeviceStoreService;
|
|
913
1063
|
readonly authorization: AdminTrustedDeviceAuthorizationService;
|
|
914
|
-
}) => (
|
|
1064
|
+
}) => (handlerRequest: AdminTrustedDeviceRevokeHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthInternalError | AuthPolicyDeniedError | AuthUnauthenticatedError, never>;
|
|
915
1065
|
export declare const makeEmailVerificationStartHandler: (dependencies: {
|
|
916
1066
|
readonly emailVerificationFlow: EmailVerificationFlowService;
|
|
917
|
-
|
|
918
|
-
}) => (args_0: EmailVerificationStartHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthBadRequestError | AuthInternalError | AuthRateLimitedError, never>;
|
|
1067
|
+
}) => (handlerRequest: EmailVerificationStartGuardRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthBadRequestError | AuthInternalError | import("./Errors.js").AuthRateLimitedError | import("./Errors.js").AuthRequestRejectedError, AuthRateLimit | IdentityStore>;
|
|
919
1068
|
export declare const makeEmailVerificationVerifyHandler: (dependencies: {
|
|
920
1069
|
readonly emailVerification: EmailVerificationService;
|
|
921
1070
|
readonly sessions: SessionsService;
|
|
@@ -923,25 +1072,64 @@ export declare const makeEmailVerificationVerifyHandler: (dependencies: {
|
|
|
923
1072
|
}) => (args_0: EmailVerificationVerifyHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthBadRequestError | AuthInternalError, never>;
|
|
924
1073
|
export declare const makeEmailOtpStartHandler: (dependencies: {
|
|
925
1074
|
readonly emailOtp: EmailOtpLoginService;
|
|
926
|
-
|
|
927
|
-
|
|
1075
|
+
}) => (handlerRequest: EmailOtpStartGuardRequest) => Effect.Effect<{
|
|
1076
|
+
challengeId: ChallengeId;
|
|
1077
|
+
identity: Schema.Struct.ReadonlySide<{
|
|
1078
|
+
readonly scope: Schema.Union<readonly [Schema.Struct<{
|
|
1079
|
+
readonly type: Schema.Literal<"global">;
|
|
1080
|
+
}>, Schema.Struct<{
|
|
1081
|
+
readonly type: Schema.Literal<"tenant">;
|
|
1082
|
+
readonly tenantId: Schema.String;
|
|
1083
|
+
}>]>;
|
|
1084
|
+
readonly kind: Schema.String;
|
|
1085
|
+
readonly value: Schema.String;
|
|
1086
|
+
}, "Type">;
|
|
1087
|
+
expiresAt: UnixMillis;
|
|
1088
|
+
}, AuthInternalError | import("./Errors.js").AuthRateLimitedError | import("./Errors.js").AuthRequestRejectedError, AuthRateLimit>;
|
|
928
1089
|
export declare const makeEmailOtpVerifyHandler: (dependencies: {
|
|
929
1090
|
readonly emailOtp: EmailOtpLoginService;
|
|
930
1091
|
readonly authHttp: AuthHttpService;
|
|
931
|
-
|
|
932
|
-
|
|
1092
|
+
}) => (handlerRequest: EmailOtpVerifyGuardRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, import("./Errors.js").AuthRateLimitedError | import("./Errors.js").AuthRequestRejectedError | import("./Transport.js").PasswordSignInHttpError, AuthRateLimit>;
|
|
1093
|
+
export declare const makeEmailAuthStartHandler: (dependencies: {
|
|
1094
|
+
readonly emailAuth: EmailAuthService;
|
|
1095
|
+
}) => (handlerRequest: EmailAuthStartGuardRequest) => Effect.Effect<{
|
|
1096
|
+
identity: Schema.Struct.ReadonlySide<{
|
|
1097
|
+
readonly scope: Schema.Union<readonly [Schema.Struct<{
|
|
1098
|
+
readonly type: Schema.Literal<"global">;
|
|
1099
|
+
}>, Schema.Struct<{
|
|
1100
|
+
readonly type: Schema.Literal<"tenant">;
|
|
1101
|
+
readonly tenantId: Schema.String;
|
|
1102
|
+
}>]>;
|
|
1103
|
+
readonly kind: Schema.String;
|
|
1104
|
+
readonly value: Schema.String;
|
|
1105
|
+
}, "Type">;
|
|
1106
|
+
emailOtp: {
|
|
1107
|
+
challengeId: ChallengeId;
|
|
1108
|
+
expiresAt: UnixMillis;
|
|
1109
|
+
};
|
|
1110
|
+
magicLink: {
|
|
1111
|
+
expiresAt: UnixMillis;
|
|
1112
|
+
};
|
|
1113
|
+
}, AuthInternalError | import("./Errors.js").AuthRateLimitedError | import("./Errors.js").AuthRequestRejectedError, AuthRateLimit>;
|
|
933
1114
|
export declare const makeMagicLinkStartHandler: (dependencies: {
|
|
934
1115
|
readonly magicLink: MagicLinkLoginService;
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
1116
|
+
}) => (handlerRequest: MagicLinkStartGuardRequest) => Effect.Effect<{
|
|
1117
|
+
identity: Schema.Struct.ReadonlySide<{
|
|
1118
|
+
readonly scope: Schema.Union<readonly [Schema.Struct<{
|
|
1119
|
+
readonly type: Schema.Literal<"global">;
|
|
1120
|
+
}>, Schema.Struct<{
|
|
1121
|
+
readonly type: Schema.Literal<"tenant">;
|
|
1122
|
+
readonly tenantId: Schema.String;
|
|
1123
|
+
}>]>;
|
|
1124
|
+
readonly kind: Schema.String;
|
|
1125
|
+
readonly value: Schema.String;
|
|
1126
|
+
}, "Type">;
|
|
938
1127
|
expiresAt: UnixMillis;
|
|
939
|
-
}, AuthInternalError | AuthRateLimitedError,
|
|
1128
|
+
}, AuthInternalError | import("./Errors.js").AuthRateLimitedError | import("./Errors.js").AuthRequestRejectedError, AuthRateLimit>;
|
|
940
1129
|
export declare const makeMagicLinkVerifyHandler: (dependencies: {
|
|
941
1130
|
readonly magicLink: MagicLinkLoginService;
|
|
942
1131
|
readonly authHttp: AuthHttpService;
|
|
943
|
-
|
|
944
|
-
}) => (args_0: MagicLinkVerifyHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, import("./Transport.js").PasswordSignInHttpError, never>;
|
|
1132
|
+
}) => (handlerRequest: MagicLinkVerifyGuardRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, import("./Errors.js").AuthRateLimitedError | import("./Errors.js").AuthRequestRejectedError | import("./Transport.js").PasswordSignInHttpError, AuthRateLimit>;
|
|
945
1133
|
export declare const makeOAuthAuthorizationStartHandler: (dependencies: {
|
|
946
1134
|
readonly oauthProviders: OAuthProvidersService;
|
|
947
1135
|
readonly oauthState: OAuthStateService;
|
|
@@ -949,7 +1137,7 @@ export declare const makeOAuthAuthorizationStartHandler: (dependencies: {
|
|
|
949
1137
|
providerId: OAuthProviderId;
|
|
950
1138
|
authorizationUrl: string;
|
|
951
1139
|
state: import("../OAuth.js").OAuthStateToken;
|
|
952
|
-
challengeId:
|
|
1140
|
+
challengeId: ChallengeId;
|
|
953
1141
|
expiresAt: UnixMillis;
|
|
954
1142
|
codeChallenge: import("../OAuth.js").OAuthCodeChallenge;
|
|
955
1143
|
codeChallengeMethod: "S256";
|
|
@@ -1001,7 +1189,7 @@ export declare const makeOAuthAccountUnlinkHandler: (dependencies: {
|
|
|
1001
1189
|
readonly oauthAccountUnlinking: OAuthAccountUnlinkingService;
|
|
1002
1190
|
readonly sessions: SessionsService;
|
|
1003
1191
|
readonly sessionCookie: SessionCookieService;
|
|
1004
|
-
} & OAuthAccountUnlinkHttpOptions) => (
|
|
1192
|
+
} & OAuthAccountUnlinkHttpOptions) => (handlerRequest: OAuthAccountUnlinkHandlerRequest) => Effect.Effect<Schema.Struct.ReadonlySide<{
|
|
1005
1193
|
readonly type: Schema.Literal<"allow">;
|
|
1006
1194
|
readonly reason: Schema.Literal<"owned-account">;
|
|
1007
1195
|
readonly account: Schema.Struct<{
|
|
@@ -1096,26 +1284,111 @@ export declare const makeOAuthLinkConfirmationConfirmHandler: (dependencies: {
|
|
|
1096
1284
|
}, AuthBadRequestError | AuthInternalError | AuthUnauthenticatedError, never>;
|
|
1097
1285
|
export declare const makePasskeyRegistrationStartHandler: (dependencies: {
|
|
1098
1286
|
readonly passkeyOptions: PasskeyOptionsService;
|
|
1099
|
-
|
|
1287
|
+
readonly sessions: SessionsService;
|
|
1288
|
+
readonly sessionCookie: SessionCookieService;
|
|
1289
|
+
readonly resolveUser: PasskeyRegistrationUserResolver;
|
|
1290
|
+
} & PasskeyRegistrationStartHttpOptions) => (handlerRequest: PasskeyRegistrationStartHandlerRequest) => Effect.Effect<import("../Passkey.js").StartedPasskeyRegistration, AuthBadRequestError | AuthInternalError | import("./Errors.js").AuthRateLimitedError | AuthUnauthenticatedError, AuthRateLimit>;
|
|
1100
1291
|
export declare const makePasskeyRegistrationFinishHandler: (dependencies: {
|
|
1101
1292
|
readonly passkeyVerification: PasskeyVerificationService;
|
|
1102
|
-
|
|
1293
|
+
readonly sessions: SessionsService;
|
|
1294
|
+
readonly sessionCookie: SessionCookieService;
|
|
1295
|
+
readonly resolveUser: PasskeyRegistrationUserResolver;
|
|
1296
|
+
} & PasskeyFinishHttpOptions) => (handlerRequest: PasskeyRegistrationFinishHandlerRequest) => Effect.Effect<{
|
|
1103
1297
|
credentialId: PasskeyCredentialId;
|
|
1104
|
-
}, AuthBadRequestError | AuthInternalError,
|
|
1298
|
+
}, AuthBadRequestError | AuthInternalError | import("./Errors.js").AuthRateLimitedError | AuthUnauthenticatedError, AuthRateLimit>;
|
|
1105
1299
|
export declare const makePasskeyAuthenticationStartHandler: (dependencies: {
|
|
1106
1300
|
readonly passkeyOptions: PasskeyOptionsService;
|
|
1107
|
-
} & PasskeyAuthenticationStartHttpOptions) => (
|
|
1301
|
+
} & PasskeyAuthenticationStartHttpOptions) => (handlerRequest: PasskeyAuthenticationStartHandlerRequest) => Effect.Effect<import("../Passkey.js").StartedPasskeyAuthentication, AuthInternalError | import("./Errors.js").AuthRateLimitedError, AuthRateLimit>;
|
|
1108
1302
|
export declare const makePasskeyAuthenticationFinishHandler: (dependencies: {
|
|
1109
1303
|
readonly passkeyVerification: PasskeyVerificationService;
|
|
1110
1304
|
readonly sessions: SessionsService;
|
|
1111
1305
|
readonly authHttp: AuthHttpService;
|
|
1112
1306
|
readonly makeSessionInput: (context: PasskeyAuthenticationSessionContext) => SessionCreateInput;
|
|
1113
|
-
} & PasskeyFinishHttpOptions) => (
|
|
1307
|
+
} & PasskeyFinishHttpOptions) => (handlerRequest: PasskeyAuthenticationFinishHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthBadRequestError | AuthInternalError | import("./Errors.js").AuthRateLimitedError, AuthRateLimit>;
|
|
1308
|
+
type IdentityHandlerDependencies = {
|
|
1309
|
+
readonly identityManagement: IdentityManagementService;
|
|
1310
|
+
readonly sessions: SessionsService;
|
|
1311
|
+
readonly sessionCookie: SessionCookieService;
|
|
1312
|
+
};
|
|
1313
|
+
export declare const makeIdentityAvailabilityHandler: (dependencies: IdentityHandlerDependencies) => (handlerRequest: IdentityAvailabilityGuardRequest) => Effect.Effect<{
|
|
1314
|
+
available: boolean;
|
|
1315
|
+
}, AuthBadRequestError | AuthIdentityAlreadyRegisteredError | AuthInternalError | AuthPolicyDeniedError | import("./Errors.js").AuthRateLimitedError | import("./Errors.js").AuthRequestRejectedError | AuthUnauthenticatedError, AuthRateLimit | SessionCookie | Sessions>;
|
|
1316
|
+
export declare const makeIdentityListHandler: (dependencies: IdentityHandlerDependencies) => (handlerRequest: {
|
|
1317
|
+
readonly request: HttpServerRequest.HttpServerRequest;
|
|
1318
|
+
}) => Effect.Effect<{
|
|
1319
|
+
identities: {
|
|
1320
|
+
id: import("../Identifiers.js").IdentityId;
|
|
1321
|
+
scope: import("../Identity.js").IdentityScope;
|
|
1322
|
+
kind: import("../Identity.js").IdentityKind;
|
|
1323
|
+
value: string;
|
|
1324
|
+
verified: boolean;
|
|
1325
|
+
loginEligible: boolean;
|
|
1326
|
+
isPrimaryLogin: boolean;
|
|
1327
|
+
createdAt: UnixMillis;
|
|
1328
|
+
updatedAt: UnixMillis;
|
|
1329
|
+
}[];
|
|
1330
|
+
}, AuthBadRequestError | AuthIdentityAlreadyRegisteredError | AuthInternalError | AuthPolicyDeniedError | import("./Errors.js").AuthRateLimitedError | AuthUnauthenticatedError, AuthRateLimit>;
|
|
1331
|
+
export declare const makeIdentityAddHandler: (dependencies: IdentityHandlerDependencies) => (request: {
|
|
1332
|
+
readonly payload: Schema.Schema.Type<typeof IdentityAddBody>;
|
|
1333
|
+
readonly request: HttpServerRequest.HttpServerRequest;
|
|
1334
|
+
}) => Effect.Effect<{
|
|
1335
|
+
id: import("../Identifiers.js").IdentityId;
|
|
1336
|
+
scope: import("../Identity.js").IdentityScope;
|
|
1337
|
+
kind: import("../Identity.js").IdentityKind;
|
|
1338
|
+
value: string;
|
|
1339
|
+
verified: boolean;
|
|
1340
|
+
loginEligible: boolean;
|
|
1341
|
+
isPrimaryLogin: boolean;
|
|
1342
|
+
createdAt: UnixMillis;
|
|
1343
|
+
updatedAt: UnixMillis;
|
|
1344
|
+
}, AuthBadRequestError | AuthIdentityAlreadyRegisteredError | AuthInternalError | AuthPolicyDeniedError | import("./Errors.js").AuthRateLimitedError | AuthUnauthenticatedError, AuthRateLimit>;
|
|
1345
|
+
export declare const makeIdentityReplaceHandler: (dependencies: IdentityHandlerDependencies) => (request: {
|
|
1346
|
+
readonly payload: Schema.Schema.Type<typeof IdentityReplaceBody>;
|
|
1347
|
+
readonly request: HttpServerRequest.HttpServerRequest;
|
|
1348
|
+
}) => Effect.Effect<{
|
|
1349
|
+
id: import("../Identifiers.js").IdentityId;
|
|
1350
|
+
scope: import("../Identity.js").IdentityScope;
|
|
1351
|
+
kind: import("../Identity.js").IdentityKind;
|
|
1352
|
+
value: string;
|
|
1353
|
+
verified: boolean;
|
|
1354
|
+
loginEligible: boolean;
|
|
1355
|
+
isPrimaryLogin: boolean;
|
|
1356
|
+
createdAt: UnixMillis;
|
|
1357
|
+
updatedAt: UnixMillis;
|
|
1358
|
+
}, AuthBadRequestError | AuthIdentityAlreadyRegisteredError | AuthInternalError | AuthPolicyDeniedError | import("./Errors.js").AuthRateLimitedError | AuthUnauthenticatedError, AuthRateLimit>;
|
|
1359
|
+
export declare const makeIdentityRevokeHandler: (dependencies: IdentityHandlerDependencies) => (request: {
|
|
1360
|
+
readonly payload: Schema.Schema.Type<typeof IdentityRevokeBody>;
|
|
1361
|
+
readonly request: HttpServerRequest.HttpServerRequest;
|
|
1362
|
+
}) => Effect.Effect<{
|
|
1363
|
+
id: import("../Identifiers.js").IdentityId;
|
|
1364
|
+
scope: import("../Identity.js").IdentityScope;
|
|
1365
|
+
kind: import("../Identity.js").IdentityKind;
|
|
1366
|
+
value: string;
|
|
1367
|
+
verified: boolean;
|
|
1368
|
+
loginEligible: boolean;
|
|
1369
|
+
isPrimaryLogin: boolean;
|
|
1370
|
+
createdAt: UnixMillis;
|
|
1371
|
+
updatedAt: UnixMillis;
|
|
1372
|
+
}, AuthBadRequestError | AuthIdentityAlreadyRegisteredError | AuthInternalError | AuthPolicyDeniedError | import("./Errors.js").AuthRateLimitedError | AuthUnauthenticatedError, AuthRateLimit>;
|
|
1373
|
+
export declare const makeIdentityPrimaryHandler: (dependencies: IdentityHandlerDependencies) => (request: {
|
|
1374
|
+
readonly payload: Schema.Schema.Type<typeof IdentityPrimaryBody>;
|
|
1375
|
+
readonly request: HttpServerRequest.HttpServerRequest;
|
|
1376
|
+
}) => Effect.Effect<{
|
|
1377
|
+
id: import("../Identifiers.js").IdentityId;
|
|
1378
|
+
scope: import("../Identity.js").IdentityScope;
|
|
1379
|
+
kind: import("../Identity.js").IdentityKind;
|
|
1380
|
+
value: string;
|
|
1381
|
+
verified: boolean;
|
|
1382
|
+
loginEligible: boolean;
|
|
1383
|
+
isPrimaryLogin: boolean;
|
|
1384
|
+
createdAt: UnixMillis;
|
|
1385
|
+
updatedAt: UnixMillis;
|
|
1386
|
+
}, AuthBadRequestError | AuthIdentityAlreadyRegisteredError | AuthInternalError | AuthPolicyDeniedError | import("./Errors.js").AuthRateLimitedError | AuthUnauthenticatedError, AuthRateLimit>;
|
|
1114
1387
|
export declare const makePasskeyCredentialListHandler: (dependencies: {
|
|
1115
1388
|
readonly passkeyCredentialManagement: PasskeyCredentialManagementService;
|
|
1116
1389
|
readonly sessions: SessionsService;
|
|
1117
1390
|
readonly sessionCookie: SessionCookieService;
|
|
1118
|
-
}) => (
|
|
1391
|
+
}) => (handlerRequest: PasskeyCredentialListHandlerRequest) => Effect.Effect<{
|
|
1119
1392
|
credentials: {
|
|
1120
1393
|
credentialId: PasskeyCredentialId;
|
|
1121
1394
|
transports?: readonly import("../Passkey.js").PasskeyTransport[] | undefined;
|
|
@@ -1125,19 +1398,20 @@ export declare const makePasskeyCredentialListHandler: (dependencies: {
|
|
|
1125
1398
|
revokedAt?: UnixMillis | undefined;
|
|
1126
1399
|
metadata?: Readonly<Record<string, unknown>> | undefined;
|
|
1127
1400
|
}[];
|
|
1128
|
-
}, AuthInternalError | AuthUnauthenticatedError,
|
|
1401
|
+
}, AuthInternalError | import("./Errors.js").AuthRateLimitedError | AuthUnauthenticatedError, AuthRateLimit>;
|
|
1129
1402
|
export declare const makePasskeyCredentialRevokeHandler: (dependencies: {
|
|
1130
1403
|
readonly passkeyCredentialManagement: PasskeyCredentialManagementService;
|
|
1131
1404
|
readonly sessions: SessionsService;
|
|
1132
1405
|
readonly sessionCookie: SessionCookieService;
|
|
1133
|
-
|
|
1406
|
+
readonly strongFactorRemovalPolicy?: StrongFactorRemovalPolicyService;
|
|
1407
|
+
}) => (handlerRequest: PasskeyCredentialRevokeHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthBadRequestError | AuthInternalError | AuthPolicyDeniedError | import("./Errors.js").AuthRateLimitedError | AuthUnauthenticatedError, AuthRateLimit>;
|
|
1134
1408
|
export declare const makeTotpEnrollmentStartHandler: (dependencies: {
|
|
1135
1409
|
readonly totpFactorManagement: TotpFactorManagementService;
|
|
1136
1410
|
readonly sessions: SessionsService;
|
|
1137
1411
|
readonly sessionCookie: SessionCookieService;
|
|
1138
|
-
} & TotpEnrollmentStartHttpOptions) => (
|
|
1412
|
+
} & TotpEnrollmentStartHttpOptions) => (handlerRequest: TotpEnrollmentStartHandlerRequest) => Effect.Effect<{
|
|
1139
1413
|
factor: {
|
|
1140
|
-
factorId:
|
|
1414
|
+
factorId: CredentialId;
|
|
1141
1415
|
algorithm: TotpAlgorithm;
|
|
1142
1416
|
digits: number;
|
|
1143
1417
|
period: number;
|
|
@@ -1149,13 +1423,13 @@ export declare const makeTotpEnrollmentStartHandler: (dependencies: {
|
|
|
1149
1423
|
};
|
|
1150
1424
|
secret: import("../Totp.js").TotpSecret;
|
|
1151
1425
|
uri: string;
|
|
1152
|
-
}, AuthBadRequestError | AuthInternalError | AuthUnauthenticatedError,
|
|
1426
|
+
}, AuthBadRequestError | AuthInternalError | import("./Errors.js").AuthRateLimitedError | AuthUnauthenticatedError, AuthRateLimit>;
|
|
1153
1427
|
export declare const makeTotpEnrollmentConfirmHandler: (dependencies: {
|
|
1154
1428
|
readonly totpFactorManagement: TotpFactorManagementService;
|
|
1155
1429
|
readonly sessions: SessionsService;
|
|
1156
1430
|
readonly sessionCookie: SessionCookieService;
|
|
1157
|
-
} & TotpCodeHttpOptions) => (
|
|
1158
|
-
factorId:
|
|
1431
|
+
} & TotpCodeHttpOptions) => (handlerRequest: TotpEnrollmentConfirmHandlerRequest) => Effect.Effect<{
|
|
1432
|
+
factorId: CredentialId;
|
|
1159
1433
|
algorithm: TotpAlgorithm;
|
|
1160
1434
|
digits: number;
|
|
1161
1435
|
period: number;
|
|
@@ -1164,15 +1438,15 @@ export declare const makeTotpEnrollmentConfirmHandler: (dependencies: {
|
|
|
1164
1438
|
lastUsedAt?: UnixMillis | undefined;
|
|
1165
1439
|
revokedAt?: UnixMillis | undefined;
|
|
1166
1440
|
metadata?: Readonly<Record<string, unknown>> | undefined;
|
|
1167
|
-
}, AuthBadRequestError | AuthInternalError | AuthUnauthenticatedError,
|
|
1441
|
+
}, AuthBadRequestError | AuthInternalError | import("./Errors.js").AuthRateLimitedError | AuthUnauthenticatedError, AuthRateLimit>;
|
|
1168
1442
|
export declare const makeTotpVerifyHandler: (dependencies: {
|
|
1169
1443
|
readonly totpFactorManagement: TotpFactorManagementService;
|
|
1170
1444
|
readonly sessions: SessionsService;
|
|
1171
1445
|
readonly sessionCookie: SessionCookieService;
|
|
1172
|
-
} & TotpCodeHttpOptions) => (
|
|
1446
|
+
} & TotpCodeHttpOptions) => (handlerRequest: TotpVerifyHandlerRequest) => Effect.Effect<{
|
|
1173
1447
|
valid: boolean;
|
|
1174
1448
|
factor?: {
|
|
1175
|
-
factorId:
|
|
1449
|
+
factorId: CredentialId;
|
|
1176
1450
|
algorithm: TotpAlgorithm;
|
|
1177
1451
|
digits: number;
|
|
1178
1452
|
period: number;
|
|
@@ -1183,14 +1457,15 @@ export declare const makeTotpVerifyHandler: (dependencies: {
|
|
|
1183
1457
|
metadata?: Readonly<Record<string, unknown>> | undefined;
|
|
1184
1458
|
} | undefined;
|
|
1185
1459
|
delta?: number | undefined;
|
|
1186
|
-
|
|
1460
|
+
acceptedCounter?: number | undefined;
|
|
1461
|
+
}, AuthInternalError | import("./Errors.js").AuthRateLimitedError | AuthUnauthenticatedError, AuthRateLimit>;
|
|
1187
1462
|
export declare const makeTotpFactorListHandler: (dependencies: {
|
|
1188
1463
|
readonly totpFactorManagement: TotpFactorManagementService;
|
|
1189
1464
|
readonly sessions: SessionsService;
|
|
1190
1465
|
readonly sessionCookie: SessionCookieService;
|
|
1191
|
-
}) => (
|
|
1466
|
+
}) => (handlerRequest: TotpFactorListHandlerRequest) => Effect.Effect<{
|
|
1192
1467
|
factors: {
|
|
1193
|
-
factorId:
|
|
1468
|
+
factorId: CredentialId;
|
|
1194
1469
|
algorithm: TotpAlgorithm;
|
|
1195
1470
|
digits: number;
|
|
1196
1471
|
period: number;
|
|
@@ -1200,63 +1475,79 @@ export declare const makeTotpFactorListHandler: (dependencies: {
|
|
|
1200
1475
|
revokedAt?: UnixMillis | undefined;
|
|
1201
1476
|
metadata?: Readonly<Record<string, unknown>> | undefined;
|
|
1202
1477
|
}[];
|
|
1203
|
-
}, AuthInternalError | AuthUnauthenticatedError,
|
|
1478
|
+
}, AuthInternalError | import("./Errors.js").AuthRateLimitedError | AuthUnauthenticatedError, AuthRateLimit>;
|
|
1204
1479
|
export declare const makeTotpFactorRevokeHandler: (dependencies: {
|
|
1205
1480
|
readonly totpFactorManagement: TotpFactorManagementService;
|
|
1206
1481
|
readonly sessions: SessionsService;
|
|
1207
1482
|
readonly sessionCookie: SessionCookieService;
|
|
1208
|
-
|
|
1483
|
+
readonly strongFactorRemovalPolicy?: StrongFactorRemovalPolicyService;
|
|
1484
|
+
}) => (handlerRequest: TotpFactorRevokeHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthBadRequestError | AuthInternalError | AuthPolicyDeniedError | import("./Errors.js").AuthRateLimitedError | AuthUnauthenticatedError, AuthRateLimit>;
|
|
1209
1485
|
export declare const makeRecoveryCodeGenerateHandler: (dependencies: {
|
|
1210
1486
|
readonly recoveryCodeManagement: RecoveryCodeManagementService;
|
|
1211
1487
|
readonly sessions: SessionsService;
|
|
1212
1488
|
readonly sessionCookie: SessionCookieService;
|
|
1213
|
-
} & RecoveryCodeGenerateHttpOptions) => (
|
|
1489
|
+
} & RecoveryCodeGenerateHttpOptions) => (handlerRequest: RecoveryCodeGenerateHandlerRequest) => Effect.Effect<{
|
|
1214
1490
|
codes: import("../RecoveryCode.js").RecoveryCode[];
|
|
1215
1491
|
records: {
|
|
1216
|
-
codeId:
|
|
1492
|
+
codeId: CredentialId;
|
|
1217
1493
|
createdAt: UnixMillis;
|
|
1218
1494
|
usedAt?: UnixMillis | undefined;
|
|
1219
1495
|
revokedAt?: UnixMillis | undefined;
|
|
1220
1496
|
metadata?: Readonly<Record<string, unknown>> | undefined;
|
|
1221
1497
|
}[];
|
|
1222
|
-
}, AuthBadRequestError | AuthInternalError | AuthUnauthenticatedError,
|
|
1498
|
+
}, AuthBadRequestError | AuthInternalError | import("./Errors.js").AuthRateLimitedError | AuthUnauthenticatedError, AuthRateLimit>;
|
|
1499
|
+
export declare const makeRecoveryCodeRegenerateHandler: (dependencies: {
|
|
1500
|
+
readonly recoveryCodeManagement: RecoveryCodeManagementService;
|
|
1501
|
+
readonly sessions: SessionsService;
|
|
1502
|
+
readonly sessionCookie: SessionCookieService;
|
|
1503
|
+
} & RecoveryCodeGenerateHttpOptions) => (handlerRequest: RecoveryCodeRegenerateHandlerRequest) => Effect.Effect<{
|
|
1504
|
+
codes: import("../RecoveryCode.js").RecoveryCode[];
|
|
1505
|
+
records: {
|
|
1506
|
+
codeId: CredentialId;
|
|
1507
|
+
createdAt: UnixMillis;
|
|
1508
|
+
usedAt?: UnixMillis | undefined;
|
|
1509
|
+
revokedAt?: UnixMillis | undefined;
|
|
1510
|
+
metadata?: Readonly<Record<string, unknown>> | undefined;
|
|
1511
|
+
}[];
|
|
1512
|
+
}, AuthBadRequestError | AuthInternalError | import("./Errors.js").AuthRateLimitedError | AuthUnauthenticatedError, AuthRateLimit>;
|
|
1223
1513
|
export declare const makeRecoveryCodeVerifyHandler: (dependencies: {
|
|
1224
1514
|
readonly recoveryCodeManagement: RecoveryCodeManagementService;
|
|
1225
1515
|
readonly sessions: SessionsService;
|
|
1226
1516
|
readonly sessionCookie: SessionCookieService;
|
|
1227
|
-
}) => (
|
|
1517
|
+
}) => (handlerRequest: RecoveryCodeVerifyHandlerRequest) => Effect.Effect<{
|
|
1228
1518
|
valid: boolean;
|
|
1229
1519
|
code?: {
|
|
1230
|
-
codeId:
|
|
1520
|
+
codeId: CredentialId;
|
|
1231
1521
|
createdAt: UnixMillis;
|
|
1232
1522
|
usedAt?: UnixMillis | undefined;
|
|
1233
1523
|
revokedAt?: UnixMillis | undefined;
|
|
1234
1524
|
metadata?: Readonly<Record<string, unknown>> | undefined;
|
|
1235
1525
|
} | undefined;
|
|
1236
|
-
}, AuthInternalError | AuthUnauthenticatedError,
|
|
1526
|
+
}, AuthInternalError | import("./Errors.js").AuthRateLimitedError | AuthUnauthenticatedError, AuthRateLimit>;
|
|
1237
1527
|
export declare const makeRecoveryCodeListHandler: (dependencies: {
|
|
1238
1528
|
readonly recoveryCodeManagement: RecoveryCodeManagementService;
|
|
1239
1529
|
readonly sessions: SessionsService;
|
|
1240
1530
|
readonly sessionCookie: SessionCookieService;
|
|
1241
|
-
}) => (
|
|
1531
|
+
}) => (handlerRequest: RecoveryCodeListHandlerRequest) => Effect.Effect<{
|
|
1242
1532
|
codes: {
|
|
1243
|
-
codeId:
|
|
1533
|
+
codeId: CredentialId;
|
|
1244
1534
|
createdAt: UnixMillis;
|
|
1245
1535
|
usedAt?: UnixMillis | undefined;
|
|
1246
1536
|
revokedAt?: UnixMillis | undefined;
|
|
1247
1537
|
metadata?: Readonly<Record<string, unknown>> | undefined;
|
|
1248
1538
|
}[];
|
|
1249
|
-
}, AuthInternalError | AuthUnauthenticatedError,
|
|
1539
|
+
}, AuthInternalError | import("./Errors.js").AuthRateLimitedError | AuthUnauthenticatedError, AuthRateLimit>;
|
|
1250
1540
|
export declare const makeRecoveryCodeRevokeHandler: (dependencies: {
|
|
1251
1541
|
readonly recoveryCodeManagement: RecoveryCodeManagementService;
|
|
1252
1542
|
readonly sessions: SessionsService;
|
|
1253
1543
|
readonly sessionCookie: SessionCookieService;
|
|
1254
|
-
|
|
1544
|
+
readonly strongFactorRemovalPolicy?: StrongFactorRemovalPolicyService;
|
|
1545
|
+
}) => (handlerRequest: RecoveryCodeRevokeHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthBadRequestError | AuthInternalError | AuthPolicyDeniedError | import("./Errors.js").AuthRateLimitedError | AuthUnauthenticatedError, AuthRateLimit>;
|
|
1255
1546
|
export declare const makeApiKeyCreateHandler: (dependencies: {
|
|
1256
1547
|
readonly apiKeyManagement: ApiKeyManagementService;
|
|
1257
1548
|
readonly sessions: SessionsService;
|
|
1258
1549
|
readonly sessionCookie: SessionCookieService;
|
|
1259
|
-
}) => (
|
|
1550
|
+
}) => (handlerRequest: ApiKeyCreateHandlerRequest) => Effect.Effect<{
|
|
1260
1551
|
secret: import("../ApiKey.js").ApiKeySecret;
|
|
1261
1552
|
key: {
|
|
1262
1553
|
keyId: ApiKeyId;
|
|
@@ -1273,7 +1564,7 @@ export declare const makeApiKeyListHandler: (dependencies: {
|
|
|
1273
1564
|
readonly apiKeyManagement: ApiKeyManagementService;
|
|
1274
1565
|
readonly sessions: SessionsService;
|
|
1275
1566
|
readonly sessionCookie: SessionCookieService;
|
|
1276
|
-
}) => (
|
|
1567
|
+
}) => (handlerRequest: ApiKeyListHandlerRequest) => Effect.Effect<{
|
|
1277
1568
|
keys: {
|
|
1278
1569
|
keyId: ApiKeyId;
|
|
1279
1570
|
prefix: import("../ApiKey.js").ApiKeyPrefix;
|
|
@@ -1289,7 +1580,7 @@ export declare const makeApiKeyRevokeHandler: (dependencies: {
|
|
|
1289
1580
|
readonly apiKeyManagement: ApiKeyManagementService;
|
|
1290
1581
|
readonly sessions: SessionsService;
|
|
1291
1582
|
readonly sessionCookie: SessionCookieService;
|
|
1292
|
-
}) => (
|
|
1583
|
+
}) => (handlerRequest: ApiKeyRevokeHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthBadRequestError | AuthInternalError | AuthUnauthenticatedError, never>;
|
|
1293
1584
|
export declare const makeRefreshTokenRefreshHandler: (dependencies: {
|
|
1294
1585
|
readonly refreshTokenManagement: RefreshTokenManagementService;
|
|
1295
1586
|
readonly jwtIssuer: JwtIssuerService;
|
|
@@ -1378,96 +1669,96 @@ export declare const makeMfaOptionsHandler: (dependencies: {
|
|
|
1378
1669
|
readonly totpFactorManagement?: TotpFactorManagementService;
|
|
1379
1670
|
readonly recoveryCodeManagement?: RecoveryCodeManagementService;
|
|
1380
1671
|
readonly passkeyCredentialManagement?: PasskeyCredentialManagementService;
|
|
1381
|
-
}) => (
|
|
1672
|
+
}) => (handlerRequest: MfaOptionsHandlerRequest) => Effect.Effect<{
|
|
1382
1673
|
factors: {
|
|
1383
1674
|
readonly type: "totp" | "backup-code" | "passkey";
|
|
1384
1675
|
}[];
|
|
1385
|
-
}, AuthBadRequestError | AuthInternalError,
|
|
1676
|
+
}, AuthBadRequestError | AuthInternalError | import("./Errors.js").AuthRateLimitedError, AuthRateLimit>;
|
|
1386
1677
|
export declare const makeTotpMfaVerifyHandler: (dependencies: {
|
|
1387
1678
|
readonly totpFactorManagement: TotpFactorManagementService;
|
|
1679
|
+
readonly authFlowState: AuthFlowStateService;
|
|
1388
1680
|
readonly authFlow: AuthFlowService;
|
|
1389
1681
|
readonly authHttp: AuthHttpService;
|
|
1390
|
-
} & TotpCodeHttpOptions) => (
|
|
1682
|
+
} & TotpCodeHttpOptions) => (handlerRequest: TotpMfaVerifyHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthBadRequestError | AuthInternalError | AuthInvalidCredentialsError | AuthPolicyDeniedError | import("./Errors.js").AuthRateLimitedError, AuthRateLimit>;
|
|
1391
1683
|
export declare const makeTotpMfaVerifyForFlowHandler: (dependencies: {
|
|
1392
1684
|
readonly totpFactorManagement: TotpFactorManagementService;
|
|
1393
1685
|
readonly authFlowState: AuthFlowStateService;
|
|
1394
1686
|
readonly authFlow: AuthFlowService;
|
|
1395
1687
|
readonly authHttp: AuthHttpService;
|
|
1396
|
-
|
|
1688
|
+
readonly verificationStore: VerificationStoreService;
|
|
1689
|
+
readonly totpLoginCommitStore: TotpLoginCommitStoreService;
|
|
1690
|
+
readonly users: UserStoreService;
|
|
1691
|
+
} & TotpCodeHttpOptions) => (handlerRequest: TotpMfaVerifyForFlowHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthBadRequestError | AuthInternalError | AuthInvalidCredentialsError | AuthPolicyDeniedError | import("./Errors.js").AuthRateLimitedError, AuthRateLimit>;
|
|
1397
1692
|
export declare const makeRecoveryCodeMfaVerifyHandler: (dependencies: {
|
|
1398
1693
|
readonly recoveryCodeManagement: RecoveryCodeManagementService;
|
|
1694
|
+
readonly authFlowState: AuthFlowStateService;
|
|
1399
1695
|
readonly authFlow: AuthFlowService;
|
|
1400
1696
|
readonly authHttp: AuthHttpService;
|
|
1401
|
-
}) => (
|
|
1697
|
+
}) => (handlerRequest: RecoveryCodeMfaVerifyHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthBadRequestError | AuthInternalError | AuthInvalidCredentialsError | AuthPolicyDeniedError | import("./Errors.js").AuthRateLimitedError, AuthRateLimit>;
|
|
1402
1698
|
export declare const makeRecoveryCodeMfaVerifyForFlowHandler: (dependencies: {
|
|
1403
1699
|
readonly recoveryCodeManagement: RecoveryCodeManagementService;
|
|
1404
1700
|
readonly authFlowState: AuthFlowStateService;
|
|
1405
1701
|
readonly authFlow: AuthFlowService;
|
|
1406
1702
|
readonly authHttp: AuthHttpService;
|
|
1407
|
-
|
|
1703
|
+
readonly verificationStore: VerificationStoreService;
|
|
1704
|
+
readonly recoveryCodeLoginCommitStore: RecoveryCodeLoginCommitStoreService;
|
|
1705
|
+
readonly users: UserStoreService;
|
|
1706
|
+
}) => (handlerRequest: RecoveryCodeMfaVerifyForFlowHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthBadRequestError | AuthInternalError | AuthInvalidCredentialsError | AuthPolicyDeniedError | import("./Errors.js").AuthRateLimitedError, AuthRateLimit>;
|
|
1408
1707
|
export declare const makePasskeyMfaStartHandler: (dependencies: {
|
|
1409
1708
|
readonly passkeyOptions: PasskeyOptionsService;
|
|
1410
1709
|
readonly authFlowState: AuthFlowStateService;
|
|
1411
|
-
} & PasskeyAuthenticationStartHttpOptions) => (
|
|
1710
|
+
} & PasskeyAuthenticationStartHttpOptions) => (handlerRequest: PasskeyMfaStartHandlerRequest) => Effect.Effect<import("../Passkey.js").StartedPasskeyAuthentication, AuthBadRequestError | AuthInternalError | import("./Errors.js").AuthRateLimitedError, AuthRateLimit>;
|
|
1412
1711
|
export declare const makePasskeyMfaVerifyHandler: (dependencies: {
|
|
1413
1712
|
readonly passkeyVerification: PasskeyVerificationService;
|
|
1713
|
+
readonly authFlowState: AuthFlowStateService;
|
|
1414
1714
|
readonly authFlow: AuthFlowService;
|
|
1415
1715
|
readonly authHttp: AuthHttpService;
|
|
1416
|
-
} & PasskeyFinishHttpOptions) => (
|
|
1716
|
+
} & PasskeyFinishHttpOptions) => (handlerRequest: PasskeyMfaVerifyHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthBadRequestError | AuthInternalError | AuthPolicyDeniedError | import("./Errors.js").AuthRateLimitedError, AuthRateLimit>;
|
|
1417
1717
|
export declare const makeStepUpOptionsHandler: (dependencies: {
|
|
1418
1718
|
readonly sessions: SessionsService;
|
|
1419
1719
|
readonly sessionCookie: SessionCookieService;
|
|
1720
|
+
readonly credentials?: CredentialStoreService;
|
|
1420
1721
|
readonly totpFactorManagement?: TotpFactorManagementService;
|
|
1421
1722
|
readonly recoveryCodeManagement?: RecoveryCodeManagementService;
|
|
1422
1723
|
readonly passkeyCredentialManagement?: PasskeyCredentialManagementService;
|
|
1423
|
-
}) => (
|
|
1724
|
+
}) => (handlerRequest: StepUpOptionsHandlerRequest) => Effect.Effect<{
|
|
1424
1725
|
factors: {
|
|
1425
|
-
readonly type: "totp" | "backup-code" | "passkey";
|
|
1726
|
+
readonly type: "password" | "totp" | "backup-code" | "passkey";
|
|
1426
1727
|
}[];
|
|
1427
|
-
}, AuthInternalError | AuthUnauthenticatedError,
|
|
1728
|
+
}, AuthInternalError | import("./Errors.js").AuthRateLimitedError | AuthUnauthenticatedError, AuthRateLimit>;
|
|
1428
1729
|
export declare const makeStepUpTotpVerifyHandler: (dependencies: {
|
|
1429
1730
|
readonly totpFactorManagement: TotpFactorManagementService;
|
|
1430
1731
|
readonly sessions: SessionsService;
|
|
1431
1732
|
readonly sessionCookie: SessionCookieService;
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1733
|
+
readonly totpSessionRotation: TotpSessionRotationService;
|
|
1734
|
+
} & TotpCodeHttpOptions) => (handlerRequest: StepUpTotpVerifyHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthInternalError | AuthInvalidCredentialsError | import("./Errors.js").AuthRateLimitedError | AuthUnauthenticatedError, AuthRateLimit>;
|
|
1735
|
+
export declare const makeStepUpPasswordVerifyHandler: (dependencies: {
|
|
1736
|
+
readonly credentials: CredentialStoreService;
|
|
1737
|
+
readonly hasher: PasswordHasherService;
|
|
1738
|
+
readonly sessions: SessionsService;
|
|
1739
|
+
readonly sessionCookie: SessionCookieService;
|
|
1740
|
+
}) => (handlerRequest: StepUpPasswordVerifyHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthInternalError | AuthInvalidCredentialsError | import("./Errors.js").AuthRateLimitedError | AuthUnauthenticatedError, AuthRateLimit>;
|
|
1439
1741
|
export declare const makeStepUpRecoveryCodeVerifyHandler: (dependencies: {
|
|
1440
1742
|
readonly recoveryCodeManagement: RecoveryCodeManagementService;
|
|
1441
1743
|
readonly sessions: SessionsService;
|
|
1744
|
+
readonly recoveryCodeSessionRotation: RecoveryCodeSessionRotationService;
|
|
1442
1745
|
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>;
|
|
1746
|
+
}) => (handlerRequest: StepUpRecoveryCodeVerifyHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthInternalError | AuthInvalidCredentialsError | import("./Errors.js").AuthRateLimitedError | AuthUnauthenticatedError, AuthRateLimit>;
|
|
1450
1747
|
export declare const makeStepUpPasskeyStartHandler: (dependencies: {
|
|
1451
1748
|
readonly passkeyOptions: PasskeyOptionsService;
|
|
1452
1749
|
readonly sessions: SessionsService;
|
|
1453
1750
|
readonly sessionCookie: SessionCookieService;
|
|
1454
|
-
} & PasskeyAuthenticationStartHttpOptions) => (
|
|
1751
|
+
} & PasskeyAuthenticationStartHttpOptions) => (handlerRequest: StepUpPasskeyStartHandlerRequest) => Effect.Effect<import("../Passkey.js").StartedPasskeyAuthentication, AuthBadRequestError | AuthInternalError | import("./Errors.js").AuthRateLimitedError | AuthUnauthenticatedError, AuthRateLimit>;
|
|
1455
1752
|
export declare const makeStepUpPasskeyVerifyHandler: (dependencies: {
|
|
1456
1753
|
readonly passkeyVerification: PasskeyVerificationService;
|
|
1457
1754
|
readonly sessions: SessionsService;
|
|
1458
1755
|
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>;
|
|
1756
|
+
} & PasskeyFinishHttpOptions) => (handlerRequest: StepUpPasskeyVerifyHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthBadRequestError | AuthInternalError | AuthPolicyDeniedError | import("./Errors.js").AuthRateLimitedError | AuthUnauthenticatedError, AuthRateLimit>;
|
|
1466
1757
|
export declare const makeLoginApprovalApproveHandler: (dependencies: {
|
|
1467
1758
|
readonly loginApproval: LoginApprovalService;
|
|
1468
1759
|
readonly authFlowState: AuthFlowStateService;
|
|
1469
|
-
readonly
|
|
1470
|
-
readonly
|
|
1760
|
+
readonly finalizeAuthFlow: AuthFlowFinalize;
|
|
1761
|
+
readonly identities: IdentityStoreService;
|
|
1471
1762
|
readonly authHttp: AuthHttpService;
|
|
1472
1763
|
readonly loginApprovalPendingCookie: LoginApprovalPendingCookieService;
|
|
1473
1764
|
readonly trustedDevice?: TrustedDeviceService;
|
|
@@ -1486,151 +1777,41 @@ export declare const makeLoginApprovalFinalizeHandler: (dependencies: {
|
|
|
1486
1777
|
readonly trustedDevice?: TrustedDeviceService;
|
|
1487
1778
|
readonly trustedDeviceCookie?: TrustedDeviceCookieService;
|
|
1488
1779
|
}) => (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
|
-
readonly type: Schema.Literal<"requires_mfa">;
|
|
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<{
|
|
1780
|
+
export declare const SessionHttpOperationsLive: Layer.Layer<SessionHttpOperations, never, AuthHttp | SessionCookie | Sessions>;
|
|
1781
|
+
export declare const EmailVerificationHttpOperationsLive: Layer.Layer<EmailVerificationHttpOperations, never, AuthRateLimit | EmailVerification | EmailVerificationFlow | IdentityStore | SessionCookie | Sessions>;
|
|
1782
|
+
export declare const EmailOtpHttpOperationsLive: Layer.Layer<EmailOtpHttpOperations, never, AuthHttp | AuthRateLimit | EmailOtpLogin>;
|
|
1783
|
+
export declare const EmailAuthHttpOperationsLive: Layer.Layer<EmailAuthHttpOperations, never, AuthRateLimit | EmailAuth>;
|
|
1784
|
+
export declare const MagicLinkHttpOperationsLive: Layer.Layer<MagicLinkHttpOperations, never, AuthHttp | AuthRateLimit | MagicLinkLogin>;
|
|
1785
|
+
export declare const PasskeyHttpOperationsLive: Layer.Layer<PasskeyHttpOperations, never, AuthHttp | AuthRateLimit | IdentityStore | PasskeyCredentialManagement | PasskeyHttpConfig | PasskeyOptions | PasskeyVerification | SessionCookie | Sessions | UserStore>;
|
|
1786
|
+
export declare const IdentityHttpOperationsLive: Layer.Layer<IdentityHttpOperations, never, AuthRateLimit | IdentityManagement | SessionCookie | Sessions>;
|
|
1787
|
+
export declare const TotpHttpOperationsLive: Layer.Layer<TotpHttpOperations, never, AuthRateLimit | SessionCookie | Sessions | TotpFactorManagement | TotpHttpConfig>;
|
|
1788
|
+
export declare const RecoveryCodesHttpOperationsLive: Layer.Layer<RecoveryCodesHttpOperations, never, AuthRateLimit | RecoveryCodeManagement | SessionCookie | Sessions>;
|
|
1789
|
+
export declare const MfaHttpOperationsLive: Layer.Layer<MfaHttpOperations, never, AuthFlow | AuthFlowState | AuthHttp | AuthRateLimit | PasskeyCredentialManagement | PasskeyHttpConfig | PasskeyOptions | PasskeyVerification | RecoveryCodeLoginCommitStore | RecoveryCodeManagement | TotpFactorManagement | TotpHttpConfig | TotpLoginCommitStore | UserStore | VerificationStore>;
|
|
1790
|
+
export declare const StepUpHttpOperationsLive: Layer.Layer<StepUpHttpOperations, never, AuthRateLimit | CredentialStore | PasskeyCredentialManagement | PasskeyHttpConfig | PasskeyOptions | PasskeyVerification | PasswordHasher | RecoveryCodeManagement | RecoveryCodeSessionRotation | SessionCookie | Sessions | TotpFactorManagement | TotpHttpConfig | TotpSessionRotation>;
|
|
1791
|
+
export declare const AdminSessionHttpOperationsLive: Layer.Layer<AdminSessionHttpOperations, never, AdminSessionAuthorization | SessionCookie | Sessions>;
|
|
1792
|
+
export declare const AdminPermissionDefinitionHttpOperationsLive: Layer.Layer<AdminPermissionDefinitionHttpOperations, never, never>;
|
|
1793
|
+
export declare const LoginNotificationHttpOperationsLive: Layer.Layer<LoginNotificationHttpOperations, never, never>;
|
|
1794
|
+
export declare const SecurityTimelineHttpOperationsLive: Layer.Layer<SecurityTimelineHttpOperations, never, SecurityTimelineStore | SessionCookie | Sessions>;
|
|
1795
|
+
export declare const AdminSecurityTimelineHttpOperationsLive: Layer.Layer<AdminSecurityTimelineHttpOperations, never, AdminSecurityTimelineAuthorization | SecurityTimelineStore | SessionCookie | Sessions>;
|
|
1796
|
+
export declare const TrustedDeviceHttpOperationsLive: Layer.Layer<TrustedDeviceHttpOperations, never, SessionCookie | Sessions | TrustedDeviceStore>;
|
|
1797
|
+
export declare const AdminTrustedDeviceHttpOperationsLive: Layer.Layer<AdminTrustedDeviceHttpOperations, never, AdminTrustedDeviceAuthorization | SessionCookie | Sessions | TrustedDeviceStore>;
|
|
1798
|
+
export declare const OAuthHttpOperationsLive: Layer.Layer<OAuthHttpOperations, never, OAuthAccountUnlinking | OAuthLinkConfirmation | OAuthProviders | OAuthState | SessionCookie | Sessions>;
|
|
1799
|
+
export declare const OAuthProviderAuthorizationHttpOperationsLive: Layer.Layer<OAuthProviderAuthorizationHttpOperations, never, OAuthProviderAuthorization>;
|
|
1800
|
+
export declare const OAuthTokenHttpOperationsLive: Layer.Layer<OAuthTokenHttpOperations, never, OAuthAuthorizationCodeTokenGrant>;
|
|
1801
|
+
export declare const LoginApprovalHttpOperationsLive: Layer.Layer<LoginApprovalHttpOperations, never, AuthFlowState | AuthHttp | IdentityStore | LoginApproval | Sessions>;
|
|
1802
|
+
export declare const ApiKeyHttpOperationsLive: Layer.Layer<ApiKeyHttpOperations, never, ApiKeyManagement | SessionCookie | Sessions>;
|
|
1803
|
+
export declare const RefreshTokenHttpOperationsLive: Layer.Layer<RefreshTokenHttpOperations, never, JwtIssuer | RefreshTokenHttpConfig | RefreshTokenManagement>;
|
|
1804
|
+
export declare const JwtHttpOperationsLive: Layer.Layer<JwtHttpOperations, never, JwtRevocation>;
|
|
1805
|
+
export declare const JwtDiscoveryHttpOperationsLive: Layer.Layer<JwtDiscoveryHttpOperations, never, Jwks>;
|
|
1806
|
+
export declare const OidcDiscoveryHttpOperationsLive: Layer.Layer<OidcDiscoveryHttpOperations, never, OidcDiscoveryMetadata>;
|
|
1807
|
+
declare const AdminSessionHttpApiGroup_base: HttpApiGroup.HttpApiGroup<"adminSession", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"revoke", "POST", "/auth/admin/sessions/revoke", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
1808
|
+
readonly userId: Schema.brand<Schema.String, "auth/UserId">;
|
|
1627
1809
|
readonly sessionId: Schema.brand<Schema.String, "auth/SessionId">;
|
|
1628
|
-
}>>, import("effect/unstable/httpapi/
|
|
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<{
|
|
1810
|
+
}>>, 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<{
|
|
1632
1811
|
readonly userId: Schema.brand<Schema.String, "auth/UserId">;
|
|
1633
|
-
}>>, import("effect/unstable/httpapi/
|
|
1812
|
+
}>>, 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<"list", "GET", "/auth/admin/sessions/", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
1813
|
+
readonly userId: Schema.brand<Schema.String, "auth/UserId">;
|
|
1814
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
1634
1815
|
readonly sessions: Schema.$Array<Schema.Struct<{
|
|
1635
1816
|
readonly sessionId: Schema.brand<Schema.String, "auth/SessionId">;
|
|
1636
1817
|
readonly userId: Schema.brand<Schema.String, "auth/UserId">;
|
|
@@ -1649,118 +1830,118 @@ declare const AdminSessionApi_base: HttpApiGroup.HttpApiGroup<"adminSession", im
|
|
|
1649
1830
|
readonly latitude: Schema.optional<Schema.Number>;
|
|
1650
1831
|
readonly longitude: Schema.optional<Schema.Number>;
|
|
1651
1832
|
}>>;
|
|
1652
|
-
}>>,
|
|
1653
|
-
|
|
1654
|
-
readonly sessionId: Schema.brand<Schema.String, "auth/SessionId">;
|
|
1655
|
-
}>>, 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 AuthPolicyDeniedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"revokeAll", "POST", "/auth/admin/sessions/revoke-all", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
1656
|
-
readonly userId: Schema.brand<Schema.String, "auth/UserId">;
|
|
1657
|
-
}>>, 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 AuthPolicyDeniedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never>, false>;
|
|
1658
|
-
export declare class AdminSessionApi extends AdminSessionApi_base {
|
|
1833
|
+
}>>, 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>;
|
|
1834
|
+
export declare class AdminSessionHttpApiGroup extends AdminSessionHttpApiGroup_base {
|
|
1659
1835
|
}
|
|
1660
|
-
declare const AdminSessionHttpApi_base: HttpApi.HttpApi<"AdminSessionHttpApi", typeof
|
|
1836
|
+
declare const AdminSessionHttpApi_base: HttpApi.HttpApi<"AdminSessionHttpApi", typeof AdminSessionHttpApiGroup>;
|
|
1661
1837
|
export declare class AdminSessionHttpApi extends AdminSessionHttpApi_base {
|
|
1662
1838
|
}
|
|
1663
|
-
declare const
|
|
1664
|
-
readonly
|
|
1665
|
-
readonly
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
readonly
|
|
1669
|
-
readonly
|
|
1670
|
-
readonly
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
readonly
|
|
1677
|
-
readonly
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
readonly
|
|
1681
|
-
readonly
|
|
1682
|
-
readonly
|
|
1683
|
-
|
|
1684
|
-
readonly
|
|
1685
|
-
readonly
|
|
1686
|
-
}>>, import("
|
|
1687
|
-
readonly
|
|
1688
|
-
readonly
|
|
1689
|
-
|
|
1690
|
-
readonly
|
|
1691
|
-
readonly
|
|
1692
|
-
readonly
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
readonly
|
|
1699
|
-
readonly
|
|
1700
|
-
|
|
1839
|
+
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<{
|
|
1840
|
+
readonly id: Schema.brand<Schema.String, "auth/PermissionId">;
|
|
1841
|
+
readonly description: Schema.optional<Schema.String>;
|
|
1842
|
+
readonly scopeType: Schema.optional<Schema.String>;
|
|
1843
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
1844
|
+
readonly id: Schema.brand<Schema.String, "auth/PermissionId">;
|
|
1845
|
+
readonly description: Schema.optional<Schema.String>;
|
|
1846
|
+
readonly scopeType: Schema.optional<Schema.String>;
|
|
1847
|
+
readonly createdAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
1848
|
+
readonly updatedAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
1849
|
+
readonly disabledAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
1850
|
+
readonly deletedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
1851
|
+
}>>, 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<{
|
|
1852
|
+
readonly id: Schema.brand<Schema.String, "auth/PermissionId">;
|
|
1853
|
+
readonly expectedUpdatedAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
1854
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
1855
|
+
readonly id: Schema.brand<Schema.String, "auth/PermissionId">;
|
|
1856
|
+
readonly description: Schema.optional<Schema.String>;
|
|
1857
|
+
readonly scopeType: Schema.optional<Schema.String>;
|
|
1858
|
+
readonly createdAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
1859
|
+
readonly updatedAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
1860
|
+
readonly disabledAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
1861
|
+
readonly deletedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
1862
|
+
}>>, 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<{
|
|
1863
|
+
readonly id: Schema.brand<Schema.String, "auth/PermissionId">;
|
|
1864
|
+
readonly expectedUpdatedAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
1865
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
1866
|
+
readonly id: Schema.brand<Schema.String, "auth/PermissionId">;
|
|
1867
|
+
readonly description: Schema.optional<Schema.String>;
|
|
1868
|
+
readonly scopeType: Schema.optional<Schema.String>;
|
|
1869
|
+
readonly createdAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
1870
|
+
readonly updatedAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
1871
|
+
readonly disabledAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
1872
|
+
readonly deletedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
1873
|
+
}>>, 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<{
|
|
1874
|
+
readonly id: Schema.brand<Schema.String, "auth/PermissionId">;
|
|
1875
|
+
readonly expectedUpdatedAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
1876
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
1877
|
+
readonly id: Schema.brand<Schema.String, "auth/PermissionId">;
|
|
1878
|
+
readonly description: Schema.optional<Schema.String>;
|
|
1879
|
+
readonly scopeType: Schema.optional<Schema.String>;
|
|
1880
|
+
readonly createdAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
1881
|
+
readonly updatedAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
1882
|
+
readonly disabledAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
1883
|
+
readonly deletedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
1884
|
+
}>>, 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<{
|
|
1885
|
+
readonly id: Schema.brand<Schema.String, "auth/PermissionId">;
|
|
1886
|
+
readonly expectedUpdatedAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
1887
|
+
readonly description: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
1888
|
+
readonly scopeType: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
1889
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
1890
|
+
readonly id: Schema.brand<Schema.String, "auth/PermissionId">;
|
|
1891
|
+
readonly description: Schema.optional<Schema.String>;
|
|
1892
|
+
readonly scopeType: Schema.optional<Schema.String>;
|
|
1893
|
+
readonly createdAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
1894
|
+
readonly updatedAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
1895
|
+
readonly disabledAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
1896
|
+
readonly deletedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
1897
|
+
}>>, 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<{
|
|
1898
|
+
readonly id: Schema.brand<Schema.String, "auth/PermissionId">;
|
|
1899
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
1900
|
+
readonly id: Schema.brand<Schema.String, "auth/PermissionId">;
|
|
1901
|
+
readonly description: Schema.optional<Schema.String>;
|
|
1902
|
+
readonly scopeType: Schema.optional<Schema.String>;
|
|
1903
|
+
readonly createdAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
1904
|
+
readonly updatedAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
1905
|
+
readonly disabledAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
1906
|
+
readonly deletedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
1907
|
+
}>>, 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<{
|
|
1908
|
+
readonly includeDisabled: Schema.optional<Schema.Union<readonly [Schema.Boolean, Schema.decodeTo<Schema.Boolean, Schema.Literals<readonly ["true", "false"]>, never, never>]>>;
|
|
1909
|
+
readonly includeDeleted: Schema.optional<Schema.Union<readonly [Schema.Boolean, Schema.decodeTo<Schema.Boolean, Schema.Literals<readonly ["true", "false"]>, never, never>]>>;
|
|
1910
|
+
readonly after: Schema.optional<Schema.brand<Schema.String, "auth/PermissionId">>;
|
|
1911
|
+
readonly limit: Schema.optional<Schema.Union<readonly [Schema.Number, Schema.NumberFromString]>>;
|
|
1912
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
1913
|
+
readonly definitions: Schema.$Array<Schema.Struct<{
|
|
1914
|
+
readonly id: Schema.brand<Schema.String, "auth/PermissionId">;
|
|
1915
|
+
readonly description: Schema.optional<Schema.String>;
|
|
1916
|
+
readonly scopeType: Schema.optional<Schema.String>;
|
|
1917
|
+
readonly createdAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
1918
|
+
readonly updatedAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
1919
|
+
readonly disabledAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
1920
|
+
readonly deletedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
1701
1921
|
}>>;
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
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;
|
|
1712
|
-
readonly reason: Schema.String;
|
|
1713
|
-
}>, Schema.Struct<{
|
|
1714
|
-
readonly type: Schema.Literal<"requires_passkey_enrollment">;
|
|
1715
|
-
readonly flowId: Schema.String;
|
|
1716
|
-
}>]>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthInvalidCredentialsError | typeof AuthPolicyDeniedError | typeof AuthRateLimitedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthRateLimitMiddleware | AuthSchemaErrorMiddleware, never>, false>;
|
|
1717
|
-
export declare class EmailOtpApi extends EmailOtpApi_base {
|
|
1922
|
+
readonly nextAfter: Schema.optional<Schema.brand<Schema.String, "auth/PermissionId">>;
|
|
1923
|
+
}>>, 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>;
|
|
1924
|
+
export declare class AdminPermissionDefinitionHttpApiGroup extends AdminPermissionDefinitionHttpApiGroup_base {
|
|
1718
1925
|
}
|
|
1719
|
-
declare const
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
}
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
}
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Union<readonly [Schema.Struct<{
|
|
1731
|
-
readonly type: Schema.Literal<"authenticated">;
|
|
1732
|
-
readonly expiresAt: Schema.Number;
|
|
1733
|
-
readonly aal: Schema.Literals<readonly ["aal1", "aal2", "aal3"]>;
|
|
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<{
|
|
1737
|
-
readonly emailVerified: Schema.optional<Schema.Boolean>;
|
|
1738
|
-
readonly requirements: Schema.optional<Schema.$Array<Schema.String>>;
|
|
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;
|
|
1756
|
-
readonly reason: Schema.String;
|
|
1757
|
-
}>, Schema.Struct<{
|
|
1758
|
-
readonly type: Schema.Literal<"requires_passkey_enrollment">;
|
|
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 {
|
|
1926
|
+
declare const AdminPermissionDefinitionHttpApi_base: HttpApi.HttpApi<"AdminPermissionDefinitionHttpApi", typeof AdminPermissionDefinitionHttpApiGroup>;
|
|
1927
|
+
export declare class AdminPermissionDefinitionHttpApi extends AdminPermissionDefinitionHttpApi_base {
|
|
1928
|
+
}
|
|
1929
|
+
declare const EmailAuthHttpApi_base: HttpApi.HttpApi<"EmailAuthHttpApi", typeof EmailAuthHttpApiGroup>;
|
|
1930
|
+
export declare class EmailAuthHttpApi extends EmailAuthHttpApi_base {
|
|
1931
|
+
}
|
|
1932
|
+
declare const PasskeyHttpApi_base: HttpApi.HttpApi<"PasskeyHttpApi", typeof PasskeyHttpApiGroup>;
|
|
1933
|
+
export declare class PasskeyHttpApi extends PasskeyHttpApi_base {
|
|
1934
|
+
}
|
|
1935
|
+
declare const IdentityHttpApi_base: HttpApi.HttpApi<"IdentityHttpApi", typeof IdentityHttpApiGroup>;
|
|
1936
|
+
export declare class IdentityHttpApi extends IdentityHttpApi_base {
|
|
1762
1937
|
}
|
|
1763
|
-
declare const
|
|
1938
|
+
declare const TotpHttpApi_base: HttpApi.HttpApi<"TotpHttpApi", typeof TotpHttpApiGroup>;
|
|
1939
|
+
export declare class TotpHttpApi extends TotpHttpApi_base {
|
|
1940
|
+
}
|
|
1941
|
+
declare const RecoveryCodesHttpApi_base: HttpApi.HttpApi<"RecoveryCodesHttpApi", typeof RecoveryCodesHttpApiGroup>;
|
|
1942
|
+
export declare class RecoveryCodesHttpApi extends RecoveryCodesHttpApi_base {
|
|
1943
|
+
}
|
|
1944
|
+
declare const OAuthHttpApiGroup_base: HttpApiGroup.HttpApiGroup<"oauth", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"startAuthorization", "POST", "/auth/oauth/start", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
1764
1945
|
readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
|
|
1765
1946
|
readonly redirectUri: Schema.optional<Schema.String>;
|
|
1766
1947
|
readonly scopes: Schema.optional<Schema.$Array<Schema.String>>;
|
|
@@ -1769,7 +1950,7 @@ declare const OAuthApi_base: HttpApiGroup.HttpApiGroup<"oauth", import("effect/u
|
|
|
1769
1950
|
readonly includeNonce: Schema.optional<Schema.Boolean>;
|
|
1770
1951
|
readonly nonce: Schema.optional<Schema.String>;
|
|
1771
1952
|
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
1772
|
-
}>>,
|
|
1953
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
1773
1954
|
readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
|
|
1774
1955
|
readonly authorizationUrl: Schema.String;
|
|
1775
1956
|
readonly state: Schema.String;
|
|
@@ -1780,59 +1961,10 @@ declare const OAuthApi_base: HttpApiGroup.HttpApiGroup<"oauth", import("effect/u
|
|
|
1780
1961
|
readonly nonce: Schema.optional<Schema.String>;
|
|
1781
1962
|
readonly redirectUri: Schema.String;
|
|
1782
1963
|
readonly scopes: Schema.$Array<Schema.String>;
|
|
1783
|
-
}>>,
|
|
1784
|
-
readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
|
|
1785
|
-
readonly providerAccountId: Schema.String;
|
|
1786
|
-
readonly reason: Schema.optional<Schema.String>;
|
|
1787
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Union<readonly [Schema.Struct<{
|
|
1788
|
-
readonly type: Schema.Literal<"allow">;
|
|
1789
|
-
readonly reason: Schema.Literal<"owned-account">;
|
|
1790
|
-
readonly account: Schema.Struct<{
|
|
1791
|
-
readonly accountId: Schema.brand<Schema.String, "auth/OAuthAccountId">;
|
|
1792
|
-
readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
|
|
1793
|
-
readonly providerAccountId: Schema.String;
|
|
1794
|
-
}>;
|
|
1795
|
-
readonly remainingAccounts: Schema.$Array<Schema.Struct<{
|
|
1796
|
-
readonly accountId: Schema.brand<Schema.String, "auth/OAuthAccountId">;
|
|
1797
|
-
readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
|
|
1798
|
-
readonly providerAccountId: Schema.String;
|
|
1799
|
-
}>>;
|
|
1800
|
-
readonly unlinked: Schema.Boolean;
|
|
1801
|
-
}>, Schema.Struct<{
|
|
1802
|
-
readonly type: Schema.Literal<"requires-step-up">;
|
|
1803
|
-
readonly reason: Schema.Literal<"step-up-required">;
|
|
1804
|
-
readonly account: Schema.Struct<{
|
|
1805
|
-
readonly accountId: Schema.brand<Schema.String, "auth/OAuthAccountId">;
|
|
1806
|
-
readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
|
|
1807
|
-
readonly providerAccountId: Schema.String;
|
|
1808
|
-
}>;
|
|
1809
|
-
readonly remainingAccounts: Schema.$Array<Schema.Struct<{
|
|
1810
|
-
readonly accountId: Schema.brand<Schema.String, "auth/OAuthAccountId">;
|
|
1811
|
-
readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
|
|
1812
|
-
readonly providerAccountId: Schema.String;
|
|
1813
|
-
}>>;
|
|
1814
|
-
}>, Schema.Struct<{
|
|
1815
|
-
readonly type: Schema.Literal<"deny-not-found">;
|
|
1816
|
-
readonly reason: Schema.Literal<"provider-account-not-found">;
|
|
1817
|
-
readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
|
|
1818
|
-
readonly providerAccountId: Schema.String;
|
|
1819
|
-
}>, Schema.Struct<{
|
|
1820
|
-
readonly type: Schema.Literal<"deny-not-owner">;
|
|
1821
|
-
readonly reason: Schema.Literal<"provider-account-linked-to-different-user">;
|
|
1822
|
-
readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
|
|
1823
|
-
readonly providerAccountId: Schema.String;
|
|
1824
|
-
}>, Schema.Struct<{
|
|
1825
|
-
readonly type: Schema.Literal<"deny-last-account">;
|
|
1826
|
-
readonly reason: Schema.Literal<"last-linked-account">;
|
|
1827
|
-
readonly account: Schema.Struct<{
|
|
1828
|
-
readonly accountId: Schema.brand<Schema.String, "auth/OAuthAccountId">;
|
|
1829
|
-
readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
|
|
1830
|
-
readonly providerAccountId: Schema.String;
|
|
1831
|
-
}>;
|
|
1832
|
-
}>]>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthUnauthenticatedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"inspectLinkConfirmation", "POST", "/auth/oauth/link-confirmation/inspect", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
1964
|
+
}>>, Schema.toCodecJson<typeof AuthBadRequestError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"inspectLinkConfirmation", "POST", "/auth/oauth/link-confirmation/inspect", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
1833
1965
|
readonly challengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
|
|
1834
1966
|
readonly secret: Schema.optional<Schema.String>;
|
|
1835
|
-
}>>,
|
|
1967
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
1836
1968
|
readonly challengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
|
|
1837
1969
|
readonly userId: Schema.brand<Schema.String, "auth/UserId">;
|
|
1838
1970
|
readonly identity: Schema.Struct<{
|
|
@@ -1843,7 +1975,7 @@ declare const OAuthApi_base: HttpApiGroup.HttpApiGroup<"oauth", import("effect/u
|
|
|
1843
1975
|
}>;
|
|
1844
1976
|
readonly reason: Schema.String;
|
|
1845
1977
|
readonly expiresAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
1846
|
-
}>>,
|
|
1978
|
+
}>>, Schema.toCodecJson<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"startLinkConfirmation", "POST", "/auth/oauth/link-confirmation/start", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
1847
1979
|
readonly userId: Schema.optional<Schema.brand<Schema.String, "auth/UserId">>;
|
|
1848
1980
|
readonly identity: Schema.optional<Schema.Struct<{
|
|
1849
1981
|
readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
|
|
@@ -1855,7 +1987,7 @@ declare const OAuthApi_base: HttpApiGroup.HttpApiGroup<"oauth", import("effect/u
|
|
|
1855
1987
|
readonly reason: Schema.optional<Schema.String>;
|
|
1856
1988
|
readonly secret: Schema.optional<Schema.String>;
|
|
1857
1989
|
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
1858
|
-
}>>,
|
|
1990
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
1859
1991
|
readonly challengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
|
|
1860
1992
|
readonly userId: Schema.brand<Schema.String, "auth/UserId">;
|
|
1861
1993
|
readonly identity: Schema.Struct<{
|
|
@@ -1866,12 +1998,12 @@ declare const OAuthApi_base: HttpApiGroup.HttpApiGroup<"oauth", import("effect/u
|
|
|
1866
1998
|
}>;
|
|
1867
1999
|
readonly reason: Schema.String;
|
|
1868
2000
|
readonly expiresAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
1869
|
-
}>>,
|
|
2001
|
+
}>>, Schema.toCodecJson<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"confirmLinkConfirmation", "POST", "/auth/oauth/link-confirmation/confirm", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
1870
2002
|
readonly challengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
|
|
1871
2003
|
readonly secret: Schema.optional<Schema.String>;
|
|
1872
2004
|
readonly expectedProviderId: Schema.optional<Schema.brand<Schema.String, "auth/OAuthProviderId">>;
|
|
1873
2005
|
readonly expectedProviderAccountId: Schema.optional<Schema.String>;
|
|
1874
|
-
}>>,
|
|
2006
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
1875
2007
|
readonly challengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
|
|
1876
2008
|
readonly userId: Schema.brand<Schema.String, "auth/UserId">;
|
|
1877
2009
|
readonly identity: Schema.Struct<{
|
|
@@ -1887,10 +2019,62 @@ declare const OAuthApi_base: HttpApiGroup.HttpApiGroup<"oauth", import("effect/u
|
|
|
1887
2019
|
readonly providerAccountId: Schema.String;
|
|
1888
2020
|
}>>;
|
|
1889
2021
|
readonly linked: Schema.Boolean;
|
|
1890
|
-
}>>,
|
|
1891
|
-
|
|
2022
|
+
}>>, 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<{
|
|
2023
|
+
readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
|
|
2024
|
+
readonly providerAccountId: Schema.String;
|
|
2025
|
+
readonly reason: Schema.optional<Schema.String>;
|
|
2026
|
+
}>>, never, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
|
|
2027
|
+
readonly type: Schema.Literal<"allow">;
|
|
2028
|
+
readonly reason: Schema.Literal<"owned-account">;
|
|
2029
|
+
readonly account: Schema.Struct<{
|
|
2030
|
+
readonly accountId: Schema.brand<Schema.String, "auth/OAuthAccountId">;
|
|
2031
|
+
readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
|
|
2032
|
+
readonly providerAccountId: Schema.String;
|
|
2033
|
+
}>;
|
|
2034
|
+
readonly remainingAccounts: Schema.$Array<Schema.Struct<{
|
|
2035
|
+
readonly accountId: Schema.brand<Schema.String, "auth/OAuthAccountId">;
|
|
2036
|
+
readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
|
|
2037
|
+
readonly providerAccountId: Schema.String;
|
|
2038
|
+
}>>;
|
|
2039
|
+
readonly unlinked: Schema.Boolean;
|
|
2040
|
+
}>, Schema.Struct<{
|
|
2041
|
+
readonly type: Schema.Literal<"requires-step-up">;
|
|
2042
|
+
readonly reason: Schema.Literal<"step-up-required">;
|
|
2043
|
+
readonly account: Schema.Struct<{
|
|
2044
|
+
readonly accountId: Schema.brand<Schema.String, "auth/OAuthAccountId">;
|
|
2045
|
+
readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
|
|
2046
|
+
readonly providerAccountId: Schema.String;
|
|
2047
|
+
}>;
|
|
2048
|
+
readonly remainingAccounts: Schema.$Array<Schema.Struct<{
|
|
2049
|
+
readonly accountId: Schema.brand<Schema.String, "auth/OAuthAccountId">;
|
|
2050
|
+
readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
|
|
2051
|
+
readonly providerAccountId: Schema.String;
|
|
2052
|
+
}>>;
|
|
2053
|
+
}>, Schema.Struct<{
|
|
2054
|
+
readonly type: Schema.Literal<"deny-not-found">;
|
|
2055
|
+
readonly reason: Schema.Literal<"provider-account-not-found">;
|
|
2056
|
+
readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
|
|
2057
|
+
readonly providerAccountId: Schema.String;
|
|
2058
|
+
}>, Schema.Struct<{
|
|
2059
|
+
readonly type: Schema.Literal<"deny-not-owner">;
|
|
2060
|
+
readonly reason: Schema.Literal<"provider-account-linked-to-different-user">;
|
|
2061
|
+
readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
|
|
2062
|
+
readonly providerAccountId: Schema.String;
|
|
2063
|
+
}>, Schema.Struct<{
|
|
2064
|
+
readonly type: Schema.Literal<"deny-last-account">;
|
|
2065
|
+
readonly reason: Schema.Literal<"last-linked-account">;
|
|
2066
|
+
readonly account: Schema.Struct<{
|
|
2067
|
+
readonly accountId: Schema.brand<Schema.String, "auth/OAuthAccountId">;
|
|
2068
|
+
readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
|
|
2069
|
+
readonly providerAccountId: Schema.String;
|
|
2070
|
+
}>;
|
|
2071
|
+
}>]>>, 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>;
|
|
2072
|
+
export declare class OAuthHttpApiGroup extends OAuthHttpApiGroup_base {
|
|
2073
|
+
}
|
|
2074
|
+
declare const OAuthHttpApi_base: HttpApi.HttpApi<"OAuthHttpApi", typeof OAuthHttpApiGroup>;
|
|
2075
|
+
export declare class OAuthHttpApi extends OAuthHttpApi_base {
|
|
1892
2076
|
}
|
|
1893
|
-
declare const
|
|
2077
|
+
declare const OAuthTokenHttpApiGroup_base: HttpApiGroup.HttpApiGroup<"oauthToken", 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> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"token", "POST", "/auth/oauth/token", never, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
1894
2078
|
readonly access_token: Schema.String;
|
|
1895
2079
|
readonly token_type: Schema.String;
|
|
1896
2080
|
readonly expires_in: Schema.optional<Schema.Number>;
|
|
@@ -1898,7 +2082,7 @@ declare const OAuthTokenApi_base: HttpApiGroup.HttpApiGroup<"oauthToken", import
|
|
|
1898
2082
|
readonly id_token: Schema.optional<Schema.String>;
|
|
1899
2083
|
readonly scope: Schema.optional<Schema.String>;
|
|
1900
2084
|
readonly extra: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
1901
|
-
}>>,
|
|
2085
|
+
}>>, Schema.toCodecJson<typeof AuthInternalError | typeof OAuthTokenEndpointError>, AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"introspect", "POST", "/auth/oauth/introspect", never, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
1902
2086
|
readonly active: Schema.Boolean;
|
|
1903
2087
|
readonly scope: Schema.optional<Schema.String>;
|
|
1904
2088
|
readonly client_id: Schema.optional<Schema.String>;
|
|
@@ -1912,13 +2096,13 @@ declare const OAuthTokenApi_base: HttpApiGroup.HttpApiGroup<"oauthToken", import
|
|
|
1912
2096
|
readonly iss: Schema.optional<Schema.String>;
|
|
1913
2097
|
readonly jti: Schema.optional<Schema.String>;
|
|
1914
2098
|
readonly extra: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
1915
|
-
}>>,
|
|
1916
|
-
export declare class
|
|
2099
|
+
}>>, Schema.toCodecJson<typeof AuthInternalError | typeof OAuthTokenIntrospectionEndpointError>, AuthSchemaErrorMiddleware, never>, false>;
|
|
2100
|
+
export declare class OAuthTokenHttpApiGroup extends OAuthTokenHttpApiGroup_base {
|
|
1917
2101
|
}
|
|
1918
|
-
declare const OAuthTokenHttpApi_base: HttpApi.HttpApi<"OAuthTokenHttpApi", typeof
|
|
2102
|
+
declare const OAuthTokenHttpApi_base: HttpApi.HttpApi<"OAuthTokenHttpApi", typeof OAuthTokenHttpApiGroup>;
|
|
1919
2103
|
export declare class OAuthTokenHttpApi extends OAuthTokenHttpApi_base {
|
|
1920
2104
|
}
|
|
1921
|
-
declare const
|
|
2105
|
+
declare const OAuthProviderAuthorizationHttpApiGroup_base: HttpApiGroup.HttpApiGroup<"oauthProviderAuthorization", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"authorize", "GET", "/auth/oauth/authorize", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
1922
2106
|
readonly response_type: Schema.String;
|
|
1923
2107
|
readonly client_id: Schema.optional<Schema.String>;
|
|
1924
2108
|
readonly redirect_uri: Schema.optional<Schema.String>;
|
|
@@ -1926,229 +2110,28 @@ declare const OAuthProviderAuthorizationApi_base: HttpApiGroup.HttpApiGroup<"oau
|
|
|
1926
2110
|
readonly state: Schema.optional<Schema.String>;
|
|
1927
2111
|
readonly code_challenge: Schema.optional<Schema.String>;
|
|
1928
2112
|
readonly code_challenge_method: Schema.optional<Schema.String>;
|
|
1929
|
-
}>>,
|
|
1930
|
-
export declare class
|
|
2113
|
+
}>>, never, never, Schema.toCodecJson<import("effect/unstable/httpapi/HttpApiSchema").NoContent>, Schema.toCodecJson<typeof AuthInternalError | typeof OAuthAuthorizationEndpointError>, AuthSchemaErrorMiddleware, never>, false>;
|
|
2114
|
+
export declare class OAuthProviderAuthorizationHttpApiGroup extends OAuthProviderAuthorizationHttpApiGroup_base {
|
|
1931
2115
|
}
|
|
1932
|
-
declare const OAuthProviderAuthorizationHttpApi_base: HttpApi.HttpApi<"OAuthProviderAuthorizationHttpApi", typeof
|
|
2116
|
+
declare const OAuthProviderAuthorizationHttpApi_base: HttpApi.HttpApi<"OAuthProviderAuthorizationHttpApi", typeof OAuthProviderAuthorizationHttpApiGroup>;
|
|
1933
2117
|
export declare class OAuthProviderAuthorizationHttpApi extends OAuthProviderAuthorizationHttpApi_base {
|
|
1934
2118
|
}
|
|
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 {
|
|
2119
|
+
declare const MfaHttpApi_base: HttpApi.HttpApi<"MfaHttpApi", typeof MfaHttpApiGroup>;
|
|
2120
|
+
export declare class MfaHttpApi extends MfaHttpApi_base {
|
|
1972
2121
|
}
|
|
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 {
|
|
2122
|
+
declare const StepUpHttpApi_base: HttpApi.HttpApi<"StepUpHttpApi", typeof StepUpHttpApiGroup>;
|
|
2123
|
+
export declare class StepUpHttpApi extends StepUpHttpApi_base {
|
|
2079
2124
|
}
|
|
2080
|
-
declare const
|
|
2081
|
-
readonly
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
readonly
|
|
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
|
-
}>;
|
|
2125
|
+
declare const ApiKeyHttpApiGroup_base: HttpApiGroup.HttpApiGroup<"apiKey", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"revokeApiKey", "POST", "/auth/api-keys/revoke", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
2126
|
+
readonly keyId: Schema.String;
|
|
2127
|
+
readonly reason: Schema.optional<Schema.String>;
|
|
2128
|
+
}>>, 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> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"createApiKey", "POST", "/auth/api-keys/", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
2129
|
+
readonly scopes: Schema.optional<Schema.$Array<Schema.String>>;
|
|
2130
|
+
readonly expiresAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
2136
2131
|
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<{
|
|
2132
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
2133
|
+
readonly secret: Schema.String;
|
|
2134
|
+
readonly key: Schema.Struct<{
|
|
2152
2135
|
readonly keyId: Schema.String;
|
|
2153
2136
|
readonly prefix: Schema.String;
|
|
2154
2137
|
readonly scopes: Schema.$Array<Schema.String>;
|
|
@@ -2157,17 +2140,9 @@ declare const ApiKeyApi_base: HttpApiGroup.HttpApiGroup<"apiKey", import("effect
|
|
|
2157
2140
|
readonly lastUsedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
2158
2141
|
readonly revokedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
2159
2142
|
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<{
|
|
2143
|
+
}>;
|
|
2144
|
+
}>>, 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<{
|
|
2145
|
+
readonly keys: Schema.$Array<Schema.Struct<{
|
|
2171
2146
|
readonly keyId: Schema.String;
|
|
2172
2147
|
readonly prefix: Schema.String;
|
|
2173
2148
|
readonly scopes: Schema.$Array<Schema.String>;
|
|
@@ -2176,14 +2151,17 @@ declare const ApiKeyApi_base: HttpApiGroup.HttpApiGroup<"apiKey", import("effect
|
|
|
2176
2151
|
readonly lastUsedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
2177
2152
|
readonly revokedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
2178
2153
|
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
2179
|
-
}
|
|
2180
|
-
}>>, import("
|
|
2181
|
-
export declare class
|
|
2154
|
+
}>>;
|
|
2155
|
+
}>>, 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>;
|
|
2156
|
+
export declare class ApiKeyHttpApiGroup extends ApiKeyHttpApiGroup_base {
|
|
2182
2157
|
}
|
|
2183
|
-
declare const
|
|
2158
|
+
declare const ApiKeyHttpApi_base: HttpApi.HttpApi<"ApiKeyHttpApi", typeof ApiKeyHttpApiGroup>;
|
|
2159
|
+
export declare class ApiKeyHttpApi extends ApiKeyHttpApi_base {
|
|
2160
|
+
}
|
|
2161
|
+
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
2162
|
readonly refreshToken: Schema.String;
|
|
2185
2163
|
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
2186
|
-
}>>,
|
|
2164
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
2187
2165
|
readonly accessToken: Schema.String;
|
|
2188
2166
|
readonly accessTokenExpiresAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
2189
2167
|
readonly refreshToken: Schema.String;
|
|
@@ -2199,16 +2177,19 @@ declare const RefreshTokenApi_base: HttpApiGroup.HttpApiGroup<"refreshToken", im
|
|
|
2199
2177
|
readonly reuseDetectedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
2200
2178
|
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
2201
2179
|
}>;
|
|
2202
|
-
}>>,
|
|
2203
|
-
export declare class
|
|
2180
|
+
}>>, Schema.toCodecJson<typeof AuthBadRequestError | typeof AuthInvalidCredentialsError | typeof AuthInternalError>, AuthSchemaErrorMiddleware, never>, false>;
|
|
2181
|
+
export declare class RefreshTokenHttpApiGroup extends RefreshTokenHttpApiGroup_base {
|
|
2182
|
+
}
|
|
2183
|
+
declare const RefreshTokenHttpApi_base: HttpApi.HttpApi<"RefreshTokenHttpApi", typeof RefreshTokenHttpApiGroup>;
|
|
2184
|
+
export declare class RefreshTokenHttpApi extends RefreshTokenHttpApi_base {
|
|
2204
2185
|
}
|
|
2205
|
-
declare const
|
|
2186
|
+
declare const JwtHttpApiGroup_base: HttpApiGroup.HttpApiGroup<"jwt", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"revoke", "POST", "/auth/jwt/revoke", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
2206
2187
|
readonly jwtId: Schema.String;
|
|
2207
2188
|
readonly expiresAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
2208
2189
|
readonly reason: Schema.optional<Schema.String>;
|
|
2209
|
-
}>>,
|
|
2190
|
+
}>>, never, Schema.toCodecJson<import("effect/unstable/httpapi/HttpApiSchema").NoContent>, Schema.toCodecJson<typeof AuthBadRequestError | typeof AuthInternalError>, AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"introspect", "POST", "/auth/jwt/introspect", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
2210
2191
|
readonly token: Schema.String;
|
|
2211
|
-
}>>,
|
|
2192
|
+
}>>, never, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
|
|
2212
2193
|
readonly active: Schema.Literal<true>;
|
|
2213
2194
|
readonly header: Schema.Struct<{
|
|
2214
2195
|
readonly typ: Schema.Literal<"JWT">;
|
|
@@ -2234,18 +2215,21 @@ declare const JwtApi_base: HttpApiGroup.HttpApiGroup<"jwt", import("effect/unsta
|
|
|
2234
2215
|
readonly expiresAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
2235
2216
|
readonly revokedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
2236
2217
|
readonly revokedReason: Schema.optional<Schema.String>;
|
|
2237
|
-
}>]>>,
|
|
2238
|
-
export declare class
|
|
2218
|
+
}>]>>, Schema.toCodecJson<typeof AuthBadRequestError | typeof AuthInternalError>, AuthSchemaErrorMiddleware, never>, false>;
|
|
2219
|
+
export declare class JwtHttpApiGroup extends JwtHttpApiGroup_base {
|
|
2239
2220
|
}
|
|
2240
|
-
declare const
|
|
2221
|
+
declare const JwtHttpApi_base: HttpApi.HttpApi<"JwtHttpApi", typeof JwtHttpApiGroup>;
|
|
2222
|
+
export declare class JwtHttpApi extends JwtHttpApi_base {
|
|
2223
|
+
}
|
|
2224
|
+
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
2225
|
readonly keys: Schema.$Array<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
2242
|
-
}>>,
|
|
2243
|
-
export declare class
|
|
2226
|
+
}>>, Schema.toCodecJson<typeof AuthInternalError>, AuthSchemaErrorMiddleware, never>, false>;
|
|
2227
|
+
export declare class JwtDiscoveryHttpApiGroup extends JwtDiscoveryHttpApiGroup_base {
|
|
2244
2228
|
}
|
|
2245
|
-
declare const JwtDiscoveryHttpApi_base: HttpApi.HttpApi<"JwtDiscoveryHttpApi", typeof
|
|
2229
|
+
declare const JwtDiscoveryHttpApi_base: HttpApi.HttpApi<"JwtDiscoveryHttpApi", typeof JwtDiscoveryHttpApiGroup>;
|
|
2246
2230
|
export declare class JwtDiscoveryHttpApi extends JwtDiscoveryHttpApi_base {
|
|
2247
2231
|
}
|
|
2248
|
-
declare const
|
|
2232
|
+
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
2233
|
readonly issuer: Schema.String;
|
|
2250
2234
|
readonly authorization_endpoint: Schema.String;
|
|
2251
2235
|
readonly token_endpoint: Schema.String;
|
|
@@ -2264,28 +2248,22 @@ declare const OidcDiscoveryApi_base: HttpApiGroup.HttpApiGroup<"oidcDiscovery",
|
|
|
2264
2248
|
readonly introspection_endpoint: Schema.optional<Schema.String>;
|
|
2265
2249
|
readonly revocation_endpoint: Schema.optional<Schema.String>;
|
|
2266
2250
|
readonly revocation_endpoint_auth_methods_supported: Schema.optional<Schema.$Array<Schema.String>>;
|
|
2267
|
-
}>>,
|
|
2268
|
-
export declare class
|
|
2251
|
+
}>>, Schema.toCodecJson<typeof AuthInternalError>, AuthSchemaErrorMiddleware, never>, false>;
|
|
2252
|
+
export declare class OidcDiscoveryHttpApiGroup extends OidcDiscoveryHttpApiGroup_base {
|
|
2269
2253
|
}
|
|
2270
|
-
declare const OidcDiscoveryHttpApi_base: HttpApi.HttpApi<"OidcDiscoveryHttpApi", typeof
|
|
2254
|
+
declare const OidcDiscoveryHttpApi_base: HttpApi.HttpApi<"OidcDiscoveryHttpApi", typeof OidcDiscoveryHttpApiGroup>;
|
|
2271
2255
|
export declare class OidcDiscoveryHttpApi extends OidcDiscoveryHttpApi_base {
|
|
2272
2256
|
}
|
|
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<{
|
|
2257
|
+
declare const SecurityTimelineHttpApiGroup_base: HttpApiGroup.HttpApiGroup<"securityTimeline", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"list", "GET", "/auth/security/timeline", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
2280
2258
|
readonly limit: Schema.optional<Schema.Number>;
|
|
2281
2259
|
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
|
-
}>>,
|
|
2260
|
+
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"]>>>;
|
|
2261
|
+
readonly categories: Schema.optional<Schema.$Array<Schema.Literals<readonly ["api_key", "auth", "authorization", "identity", "incident", "jwt", "mfa", "oauth", "policy", "refresh_token", "risk", "session"]>>>;
|
|
2262
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
2285
2263
|
readonly events: Schema.$Array<Schema.Struct<{
|
|
2286
2264
|
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"]>;
|
|
2265
|
+
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"]>;
|
|
2266
|
+
readonly category: Schema.Literals<readonly ["api_key", "auth", "authorization", "identity", "incident", "jwt", "mfa", "oauth", "policy", "refresh_token", "risk", "session"]>;
|
|
2289
2267
|
readonly severity: Schema.Literals<readonly ["info", "warning", "critical"]>;
|
|
2290
2268
|
readonly occurredAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
2291
2269
|
readonly summary: Schema.String;
|
|
@@ -2301,23 +2279,23 @@ declare const SecurityTimelineApi_base: HttpApiGroup.HttpApiGroup<"securityTimel
|
|
|
2301
2279
|
}>>;
|
|
2302
2280
|
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
2303
2281
|
}>>;
|
|
2304
|
-
}>>, import("
|
|
2305
|
-
export declare class
|
|
2282
|
+
}>>, 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>;
|
|
2283
|
+
export declare class SecurityTimelineHttpApiGroup extends SecurityTimelineHttpApiGroup_base {
|
|
2306
2284
|
}
|
|
2307
|
-
declare const SecurityTimelineHttpApi_base: HttpApi.HttpApi<"SecurityTimelineHttpApi", typeof
|
|
2285
|
+
declare const SecurityTimelineHttpApi_base: HttpApi.HttpApi<"SecurityTimelineHttpApi", typeof SecurityTimelineHttpApiGroup>;
|
|
2308
2286
|
export declare class SecurityTimelineHttpApi extends SecurityTimelineHttpApi_base {
|
|
2309
2287
|
}
|
|
2310
|
-
declare const
|
|
2288
|
+
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
2289
|
readonly userId: Schema.brand<Schema.String, "auth/UserId">;
|
|
2312
2290
|
readonly limit: Schema.optional<Schema.Number>;
|
|
2313
2291
|
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
|
-
}>>,
|
|
2292
|
+
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"]>>>;
|
|
2293
|
+
readonly categories: Schema.optional<Schema.$Array<Schema.Literals<readonly ["api_key", "auth", "authorization", "identity", "incident", "jwt", "mfa", "oauth", "policy", "refresh_token", "risk", "session"]>>>;
|
|
2294
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
2317
2295
|
readonly events: Schema.$Array<Schema.Struct<{
|
|
2318
2296
|
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"]>;
|
|
2297
|
+
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"]>;
|
|
2298
|
+
readonly category: Schema.Literals<readonly ["api_key", "auth", "authorization", "identity", "incident", "jwt", "mfa", "oauth", "policy", "refresh_token", "risk", "session"]>;
|
|
2321
2299
|
readonly severity: Schema.Literals<readonly ["info", "warning", "critical"]>;
|
|
2322
2300
|
readonly occurredAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
2323
2301
|
readonly summary: Schema.String;
|
|
@@ -2333,13 +2311,15 @@ declare const AdminSecurityTimelineApi_base: HttpApiGroup.HttpApiGroup<"adminSec
|
|
|
2333
2311
|
}>>;
|
|
2334
2312
|
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
2335
2313
|
}>>;
|
|
2336
|
-
}>>, import("
|
|
2337
|
-
export declare class
|
|
2314
|
+
}>>, 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>;
|
|
2315
|
+
export declare class AdminSecurityTimelineHttpApiGroup extends AdminSecurityTimelineHttpApiGroup_base {
|
|
2338
2316
|
}
|
|
2339
|
-
declare const AdminSecurityTimelineHttpApi_base: HttpApi.HttpApi<"AdminSecurityTimelineHttpApi", typeof
|
|
2317
|
+
declare const AdminSecurityTimelineHttpApi_base: HttpApi.HttpApi<"AdminSecurityTimelineHttpApi", typeof AdminSecurityTimelineHttpApiGroup>;
|
|
2340
2318
|
export declare class AdminSecurityTimelineHttpApi extends AdminSecurityTimelineHttpApi_base {
|
|
2341
2319
|
}
|
|
2342
|
-
declare const
|
|
2320
|
+
declare const TrustedDeviceHttpApiGroup_base: HttpApiGroup.HttpApiGroup<"trustedDevice", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"revoke", "POST", "/auth/trusted-devices/revoke", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
2321
|
+
readonly deviceId: Schema.String;
|
|
2322
|
+
}>>, 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> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"list", "GET", "/auth/trusted-devices/", never, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
2343
2323
|
readonly devices: Schema.$Array<Schema.Struct<{
|
|
2344
2324
|
readonly deviceId: Schema.String;
|
|
2345
2325
|
readonly createdAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
@@ -2347,17 +2327,18 @@ declare const TrustedDeviceApi_base: HttpApiGroup.HttpApiGroup<"trustedDevice",
|
|
|
2347
2327
|
readonly expiresAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
2348
2328
|
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
2349
2329
|
}>>;
|
|
2350
|
-
}>>,
|
|
2351
|
-
|
|
2352
|
-
}>>, 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>, false>;
|
|
2353
|
-
export declare class TrustedDeviceApi extends TrustedDeviceApi_base {
|
|
2330
|
+
}>>, 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>;
|
|
2331
|
+
export declare class TrustedDeviceHttpApiGroup extends TrustedDeviceHttpApiGroup_base {
|
|
2354
2332
|
}
|
|
2355
|
-
declare const TrustedDeviceHttpApi_base: HttpApi.HttpApi<"TrustedDeviceHttpApi", typeof
|
|
2333
|
+
declare const TrustedDeviceHttpApi_base: HttpApi.HttpApi<"TrustedDeviceHttpApi", typeof TrustedDeviceHttpApiGroup>;
|
|
2356
2334
|
export declare class TrustedDeviceHttpApi extends TrustedDeviceHttpApi_base {
|
|
2357
2335
|
}
|
|
2358
|
-
declare const
|
|
2336
|
+
declare const AdminTrustedDeviceHttpApiGroup_base: HttpApiGroup.HttpApiGroup<"adminTrustedDevice", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"revoke", "POST", "/auth/admin/trusted-devices/revoke", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
2359
2337
|
readonly userId: Schema.brand<Schema.String, "auth/UserId">;
|
|
2360
|
-
|
|
2338
|
+
readonly deviceId: Schema.String;
|
|
2339
|
+
}>>, 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<"list", "GET", "/auth/admin/trusted-devices/", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
2340
|
+
readonly userId: Schema.brand<Schema.String, "auth/UserId">;
|
|
2341
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
2361
2342
|
readonly devices: Schema.$Array<Schema.Struct<{
|
|
2362
2343
|
readonly deviceId: Schema.String;
|
|
2363
2344
|
readonly createdAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
@@ -2365,44 +2346,65 @@ declare const AdminTrustedDeviceApi_base: HttpApiGroup.HttpApiGroup<"adminTruste
|
|
|
2365
2346
|
readonly expiresAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
2366
2347
|
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
2367
2348
|
}>>;
|
|
2368
|
-
}>>,
|
|
2369
|
-
|
|
2370
|
-
readonly deviceId: Schema.String;
|
|
2371
|
-
}>>, 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 AuthPolicyDeniedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never>, false>;
|
|
2372
|
-
export declare class AdminTrustedDeviceApi extends AdminTrustedDeviceApi_base {
|
|
2349
|
+
}>>, 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>;
|
|
2350
|
+
export declare class AdminTrustedDeviceHttpApiGroup extends AdminTrustedDeviceHttpApiGroup_base {
|
|
2373
2351
|
}
|
|
2374
|
-
declare const AdminTrustedDeviceHttpApi_base: HttpApi.HttpApi<"AdminTrustedDeviceHttpApi", typeof
|
|
2352
|
+
declare const AdminTrustedDeviceHttpApi_base: HttpApi.HttpApi<"AdminTrustedDeviceHttpApi", typeof AdminTrustedDeviceHttpApiGroup>;
|
|
2375
2353
|
export declare class AdminTrustedDeviceHttpApi extends AdminTrustedDeviceHttpApi_base {
|
|
2376
2354
|
}
|
|
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
|
|
2355
|
+
declare const CoreAuthHttpApi_base: HttpApi.HttpApi<"AuthApi", typeof PasswordHttpApiGroup | typeof SessionHttpApiGroup | typeof EmailVerificationHttpApiGroup | typeof EmailOtpHttpApiGroup | typeof MagicLinkHttpApiGroup | typeof LoginApprovalHttpApiGroup | typeof LoginNotificationHttpApiGroup>;
|
|
2356
|
+
export declare class CoreAuthHttpApi extends CoreAuthHttpApi_base {
|
|
2357
|
+
}
|
|
2358
|
+
export declare const CoreAuthPasswordGroupLive: Layer.Layer<HttpApiGroup.Service<"AuthApi", "password">, never, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware | import("./Password.js").PasswordHttpOperations>;
|
|
2359
|
+
export declare const CoreAuthSessionGroupLive: Layer.Layer<HttpApiGroup.Service<"AuthApi", "session">, never, AuthOriginCheckMiddleware | SessionHttpOperations>;
|
|
2360
|
+
export declare const CoreAuthEmailVerificationGroupLive: Layer.Layer<HttpApiGroup.Service<"AuthApi", "emailVerification">, never, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware | EmailVerificationHttpOperations>;
|
|
2361
|
+
export declare const CoreAuthEmailOtpGroupLive: Layer.Layer<HttpApiGroup.Service<"AuthApi", "emailOtp">, never, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware | EmailOtpHttpOperations>;
|
|
2362
|
+
export declare const EmailAuthHttpApiGroupLive: Layer.Layer<HttpApiGroup.Service<"EmailAuthHttpApi", "emailAuth">, never, EmailAuthHttpOperations | (AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware)>;
|
|
2363
|
+
export declare const CoreAuthMagicLinkGroupLive: Layer.Layer<HttpApiGroup.Service<"AuthApi", "magicLink">, never, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware | MagicLinkHttpOperations>;
|
|
2364
|
+
export declare const PasskeyHttpApiGroupLive: Layer.Layer<HttpApiGroup.Service<"PasskeyHttpApi", "passkey">, never, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware | PasskeyHttpOperations>;
|
|
2365
|
+
export declare const IdentityHttpApiGroupLive: Layer.Layer<HttpApiGroup.Service<"IdentityHttpApi", "identity">, never, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware | IdentityHttpOperations>;
|
|
2366
|
+
export declare const TotpHttpApiGroupLive: Layer.Layer<HttpApiGroup.Service<"TotpHttpApi", "totp">, never, TotpHttpOperations | (AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware)>;
|
|
2367
|
+
export declare const RecoveryCodesHttpApiGroupLive: Layer.Layer<HttpApiGroup.Service<"RecoveryCodesHttpApi", "recoveryCodes">, never, RecoveryCodesHttpOperations | (AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware)>;
|
|
2368
|
+
export declare const MfaHttpApiGroupLive: Layer.Layer<HttpApiGroup.Service<"MfaHttpApi", "mfa">, never, MfaHttpOperations | (AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware)>;
|
|
2369
|
+
export declare const StepUpHttpApiGroupLive: Layer.Layer<HttpApiGroup.Service<"StepUpHttpApi", "stepUp">, never, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware | StepUpHttpOperations>;
|
|
2370
|
+
export declare const OAuthHttpApiGroupLive: Layer.Layer<HttpApiGroup.Service<"OAuthHttpApi", "oauth">, never, OAuthHttpOperations | (AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware)>;
|
|
2371
|
+
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>;
|
|
2372
|
+
export declare const ApiKeyHttpApiGroupLive: Layer.Layer<HttpApiGroup.Service<"ApiKeyHttpApi", "apiKey">, never, ApiKeyHttpOperations | (AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware)>;
|
|
2373
|
+
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>;
|
|
2374
|
+
export declare const RefreshTokenHttpApiGroupLive: Layer.Layer<HttpApiGroup.Service<"RefreshTokenHttpApi", "refreshToken">, never, AuthSchemaErrorMiddleware | RefreshTokenHttpOperations>;
|
|
2375
|
+
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>;
|
|
2376
|
+
export declare const JwtHttpApiGroupLive: Layer.Layer<HttpApiGroup.Service<"JwtHttpApi", "jwt">, never, AuthSchemaErrorMiddleware | JwtHttpOperations>;
|
|
2377
|
+
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>;
|
|
2378
|
+
export declare const AdminSessionHttpApiGroupLive: Layer.Layer<HttpApiGroup.Service<"AdminSessionHttpApi", "adminSession">, never, AdminSessionHttpOperations | (AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware)>;
|
|
2379
|
+
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>;
|
|
2380
|
+
export declare const AdminPermissionDefinitionHttpApiGroupLive: Layer.Layer<HttpApiGroup.Service<"AdminPermissionDefinitionHttpApi", "adminPermissionDefinition">, never, AdminPermissionDefinitionHttpOperations | (AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware)>;
|
|
2381
|
+
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>;
|
|
2382
|
+
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>;
|
|
2383
|
+
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>;
|
|
2384
|
+
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>;
|
|
2385
|
+
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>;
|
|
2386
|
+
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>;
|
|
2387
|
+
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>;
|
|
2388
|
+
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>;
|
|
2389
|
+
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>;
|
|
2390
|
+
export declare const CoreAuthLoginApprovalGroupLive: Layer.Layer<HttpApiGroup.Service<"AuthApi", "loginApproval">, never, LoginApprovalHttpOperations | (AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware)>;
|
|
2391
|
+
export declare const CoreAuthLoginNotificationGroupLive: Layer.Layer<HttpApiGroup.Service<"AuthApi", "security">, never, LoginNotificationHttpOperations | (AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware)>;
|
|
2392
|
+
export declare const SecurityTimelineHttpApiGroupLive: Layer.Layer<HttpApiGroup.Service<"SecurityTimelineHttpApi", "securityTimeline">, never, SecurityTimelineHttpOperations | (AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware)>;
|
|
2393
|
+
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>;
|
|
2394
|
+
export declare const OAuthProviderAuthorizationHttpApiGroupLive: Layer.Layer<HttpApiGroup.Service<"OAuthProviderAuthorizationHttpApi", "oauthProviderAuthorization">, never, AuthSchemaErrorMiddleware | OAuthProviderAuthorizationHttpOperations>;
|
|
2395
|
+
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>;
|
|
2396
|
+
export declare const OAuthTokenHttpApiGroupLive: Layer.Layer<HttpApiGroup.Service<"OAuthTokenHttpApi", "oauthToken">, never, AuthSchemaErrorMiddleware | OAuthTokenHttpOperations>;
|
|
2397
|
+
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 | OAuthAuthorizationCodeTokenGrant | import("effect/Path").Path>;
|
|
2398
|
+
export declare const JwtDiscoveryHttpApiGroupLive: Layer.Layer<HttpApiGroup.Service<"JwtDiscoveryHttpApi", "jwtDiscovery">, never, AuthSchemaErrorMiddleware | JwtDiscoveryHttpOperations>;
|
|
2399
|
+
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>;
|
|
2400
|
+
export declare const OidcDiscoveryHttpApiGroupLive: Layer.Layer<HttpApiGroup.Service<"OidcDiscoveryHttpApi", "oidcDiscovery">, never, AuthSchemaErrorMiddleware | OidcDiscoveryHttpOperations>;
|
|
2401
|
+
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>;
|
|
2402
|
+
export declare const AdminSecurityTimelineHttpApiGroupLive: Layer.Layer<HttpApiGroup.Service<"AdminSecurityTimelineHttpApi", "adminSecurityTimeline">, never, AdminSecurityTimelineHttpOperations | (AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware)>;
|
|
2403
|
+
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>;
|
|
2404
|
+
export declare const TrustedDeviceHttpApiGroupLive: Layer.Layer<HttpApiGroup.Service<"TrustedDeviceHttpApi", "trustedDevice">, never, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware | TrustedDeviceHttpOperations>;
|
|
2405
|
+
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>;
|
|
2406
|
+
export declare const AdminTrustedDeviceHttpApiGroupLive: Layer.Layer<HttpApiGroup.Service<"AdminTrustedDeviceHttpApi", "adminTrustedDevice">, never, AdminTrustedDeviceHttpOperations | AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware>;
|
|
2407
|
+
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>;
|
|
2408
|
+
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
2409
|
export { AuthResult };
|
|
2408
2410
|
//# sourceMappingURL=Api.d.ts.map
|