@effect-auth/core 0.1.0-alpha.16 → 0.1.0-alpha.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +307 -133
- package/dist/AbuseProtection.d.ts +100 -0
- package/dist/AbuseProtection.d.ts.map +1 -0
- package/dist/AbuseProtection.js +71 -0
- package/dist/AbuseProtection.js.map +1 -0
- package/dist/AccessGrant.d.ts +344 -0
- package/dist/AccessGrant.d.ts.map +1 -0
- package/dist/AccessGrant.js +687 -0
- package/dist/AccessGrant.js.map +1 -0
- package/dist/ApiKey.d.ts +0 -12
- package/dist/ApiKey.d.ts.map +1 -1
- package/dist/ApiKey.js +36 -27
- package/dist/ApiKey.js.map +1 -1
- package/dist/Assurance.d.ts +415 -0
- package/dist/Assurance.d.ts.map +1 -0
- package/dist/Assurance.js +764 -0
- package/dist/Assurance.js.map +1 -0
- package/dist/AtomicPlanExecutor.d.ts +28 -0
- package/dist/AtomicPlanExecutor.d.ts.map +1 -0
- package/dist/AtomicPlanExecutor.js +5 -0
- package/dist/AtomicPlanExecutor.js.map +1 -0
- package/dist/AuditLog.d.ts +2314 -52
- package/dist/AuditLog.d.ts.map +1 -1
- package/dist/AuditLog.js +511 -33
- package/dist/AuditLog.js.map +1 -1
- package/dist/AuthFlow.d.ts +128 -38
- package/dist/AuthFlow.d.ts.map +1 -1
- package/dist/AuthFlow.js +611 -263
- package/dist/AuthFlow.js.map +1 -1
- package/dist/AuthRateLimit.d.ts +96 -0
- package/dist/AuthRateLimit.d.ts.map +1 -0
- package/dist/AuthRateLimit.js +212 -0
- package/dist/AuthRateLimit.js.map +1 -0
- package/dist/Challenge.d.ts +0 -3
- package/dist/Challenge.d.ts.map +1 -1
- package/dist/Challenge.js +1 -4
- package/dist/Challenge.js.map +1 -1
- package/dist/Client.d.ts +205 -10
- package/dist/Client.d.ts.map +1 -1
- package/dist/Client.js +397 -16
- package/dist/Client.js.map +1 -1
- package/dist/CloudflareTurnstile.d.ts +28 -0
- package/dist/CloudflareTurnstile.d.ts.map +1 -0
- package/dist/CloudflareTurnstile.js +205 -0
- package/dist/CloudflareTurnstile.js.map +1 -0
- package/dist/Crypto.d.ts +0 -3
- package/dist/Crypto.d.ts.map +1 -1
- package/dist/Crypto.js +1 -4
- package/dist/Crypto.js.map +1 -1
- package/dist/DelegatedAccessStorageMigrations.d.ts +7 -0
- package/dist/DelegatedAccessStorageMigrations.d.ts.map +1 -0
- package/dist/DelegatedAccessStorageMigrations.js +159 -0
- package/dist/DelegatedAccessStorageMigrations.js.map +1 -0
- package/dist/DevEmail.d.ts +44 -0
- package/dist/DevEmail.d.ts.map +1 -0
- package/dist/DevEmail.js +115 -0
- package/dist/DevEmail.js.map +1 -0
- package/dist/DevelopmentSeed.d.ts +47 -0
- package/dist/DevelopmentSeed.d.ts.map +1 -0
- package/dist/DevelopmentSeed.js +337 -0
- package/dist/DevelopmentSeed.js.map +1 -0
- package/dist/DisposableEmailDomains.d.ts +19 -0
- package/dist/DisposableEmailDomains.d.ts.map +1 -0
- package/dist/DisposableEmailDomains.js +85 -0
- package/dist/DisposableEmailDomains.js.map +1 -0
- package/dist/DomainVerification.d.ts +0 -9
- package/dist/DomainVerification.d.ts.map +1 -1
- package/dist/DomainVerification.js +36 -22
- package/dist/DomainVerification.js.map +1 -1
- package/dist/DrizzleBunSqliteStorage.d.ts +18 -0
- package/dist/DrizzleBunSqliteStorage.d.ts.map +1 -0
- package/dist/DrizzleBunSqliteStorage.js +11 -0
- package/dist/DrizzleBunSqliteStorage.js.map +1 -0
- package/dist/DrizzleD1SqliteStorage.d.ts +4 -4
- package/dist/DrizzleD1SqliteStorage.d.ts.map +1 -1
- package/dist/DrizzleD1SqliteStorage.js +5 -5
- package/dist/DrizzleD1SqliteStorage.js.map +1 -1
- package/dist/DrizzleEffectSqliteStorage.d.ts +13 -4
- package/dist/DrizzleEffectSqliteStorage.d.ts.map +1 -1
- package/dist/DrizzleEffectSqliteStorage.js +71 -4
- package/dist/DrizzleEffectSqliteStorage.js.map +1 -1
- package/dist/DrizzleNodeSqliteStorage.d.ts +18 -0
- package/dist/DrizzleNodeSqliteStorage.d.ts.map +1 -0
- package/dist/DrizzleNodeSqliteStorage.js +11 -0
- package/dist/DrizzleNodeSqliteStorage.js.map +1 -0
- package/dist/DrizzlePostgresStorage.d.ts +26 -0
- package/dist/DrizzlePostgresStorage.d.ts.map +1 -0
- package/dist/DrizzlePostgresStorage.js +14 -0
- package/dist/DrizzlePostgresStorage.js.map +1 -0
- package/dist/EffectQbPostgresDelegatedAccessStorage.d.ts +34 -0
- package/dist/EffectQbPostgresDelegatedAccessStorage.d.ts.map +1 -0
- package/dist/EffectQbPostgresDelegatedAccessStorage.js +499 -0
- package/dist/EffectQbPostgresDelegatedAccessStorage.js.map +1 -0
- package/dist/EffectQbPostgresStorage.d.ts +178 -0
- package/dist/EffectQbPostgresStorage.d.ts.map +1 -0
- package/dist/EffectQbPostgresStorage.js +4637 -0
- package/dist/EffectQbPostgresStorage.js.map +1 -0
- package/dist/EffectQbSqliteDelegatedAccessStorage.d.ts +112 -0
- package/dist/EffectQbSqliteDelegatedAccessStorage.d.ts.map +1 -0
- package/dist/EffectQbSqliteDelegatedAccessStorage.js +602 -0
- package/dist/EffectQbSqliteDelegatedAccessStorage.js.map +1 -0
- package/dist/EffectQbSqliteStorage.d.ts +221 -23
- package/dist/EffectQbSqliteStorage.d.ts.map +1 -1
- package/dist/EffectQbSqliteStorage.js +2064 -135
- package/dist/EffectQbSqliteStorage.js.map +1 -1
- package/dist/EmailAuth.d.ts +65 -0
- package/dist/EmailAuth.d.ts.map +1 -0
- package/dist/EmailAuth.js +171 -0
- package/dist/EmailAuth.js.map +1 -0
- package/dist/EmailIdentityAuth.d.ts +30 -0
- package/dist/EmailIdentityAuth.d.ts.map +1 -0
- package/dist/EmailIdentityAuth.js +142 -0
- package/dist/EmailIdentityAuth.js.map +1 -0
- package/dist/EmailOtp.d.ts +10 -11
- package/dist/EmailOtp.d.ts.map +1 -1
- package/dist/EmailOtp.js +44 -81
- package/dist/EmailOtp.js.map +1 -1
- package/dist/EmailRisk.d.ts +48 -0
- package/dist/EmailRisk.d.ts.map +1 -0
- package/dist/EmailRisk.js +33 -0
- package/dist/EmailRisk.js.map +1 -0
- package/dist/EmailVerification.d.ts +10 -16
- package/dist/EmailVerification.d.ts.map +1 -1
- package/dist/EmailVerification.js +85 -42
- package/dist/EmailVerification.js.map +1 -1
- package/dist/Guard.d.ts +11 -0
- package/dist/Guard.d.ts.map +1 -0
- package/dist/Guard.js +11 -0
- package/dist/Guard.js.map +1 -0
- package/dist/HibpPwnedPasswords.d.ts +56 -0
- package/dist/HibpPwnedPasswords.d.ts.map +1 -0
- package/dist/HibpPwnedPasswords.js +232 -0
- package/dist/HibpPwnedPasswords.js.map +1 -0
- package/dist/HttpApi/AdminPermissionDefinition.d.ts +4 -0
- package/dist/HttpApi/AdminPermissionDefinition.d.ts.map +1 -0
- package/dist/HttpApi/AdminPermissionDefinition.js +4 -0
- package/dist/HttpApi/AdminPermissionDefinition.js.map +1 -0
- package/dist/HttpApi/AdminSecurityTimeline.d.ts +4 -0
- package/dist/HttpApi/AdminSecurityTimeline.d.ts.map +1 -0
- package/dist/HttpApi/AdminSecurityTimeline.js +4 -0
- package/dist/HttpApi/AdminSecurityTimeline.js.map +1 -0
- package/dist/HttpApi/AdminSession.d.ts +4 -0
- package/dist/HttpApi/AdminSession.d.ts.map +1 -0
- package/dist/HttpApi/AdminSession.js +4 -0
- package/dist/HttpApi/AdminSession.js.map +1 -0
- package/dist/HttpApi/AdminTrustedDevice.d.ts +4 -0
- package/dist/HttpApi/AdminTrustedDevice.d.ts.map +1 -0
- package/dist/HttpApi/AdminTrustedDevice.js +4 -0
- package/dist/HttpApi/AdminTrustedDevice.js.map +1 -0
- package/dist/HttpApi/Api.d.ts +939 -884
- package/dist/HttpApi/Api.d.ts.map +1 -1
- package/dist/HttpApi/Api.js +2254 -940
- package/dist/HttpApi/Api.js.map +1 -1
- package/dist/HttpApi/ApiKey.d.ts +4 -0
- package/dist/HttpApi/ApiKey.d.ts.map +1 -0
- package/dist/HttpApi/ApiKey.js +4 -0
- package/dist/HttpApi/ApiKey.js.map +1 -0
- package/dist/HttpApi/Audit.d.ts +6 -0
- package/dist/HttpApi/Audit.d.ts.map +1 -0
- package/dist/HttpApi/Audit.js +10 -0
- package/dist/HttpApi/Audit.js.map +1 -0
- package/dist/HttpApi/ClientApi.d.ts +917 -0
- package/dist/HttpApi/ClientApi.d.ts.map +1 -0
- package/dist/HttpApi/ClientApi.js +101 -0
- package/dist/HttpApi/ClientApi.js.map +1 -0
- package/dist/HttpApi/EmailAuth.d.ts +6 -0
- package/dist/HttpApi/EmailAuth.d.ts.map +1 -0
- package/dist/HttpApi/EmailAuth.js +6 -0
- package/dist/HttpApi/EmailAuth.js.map +1 -0
- package/dist/HttpApi/EmailGuards.d.ts +115 -0
- package/dist/HttpApi/EmailGuards.d.ts.map +1 -0
- package/dist/HttpApi/EmailGuards.js +191 -0
- package/dist/HttpApi/EmailGuards.js.map +1 -0
- package/dist/HttpApi/EmailOtp.d.ts +6 -0
- package/dist/HttpApi/EmailOtp.d.ts.map +1 -0
- package/dist/HttpApi/EmailOtp.js +6 -0
- package/dist/HttpApi/EmailOtp.js.map +1 -0
- package/dist/HttpApi/EmailVerification.d.ts +6 -0
- package/dist/HttpApi/EmailVerification.d.ts.map +1 -0
- package/dist/HttpApi/EmailVerification.js +6 -0
- package/dist/HttpApi/EmailVerification.js.map +1 -0
- package/dist/HttpApi/Endpoints.d.ts +661 -301
- package/dist/HttpApi/Endpoints.d.ts.map +1 -1
- package/dist/HttpApi/Endpoints.js +207 -120
- package/dist/HttpApi/Endpoints.js.map +1 -1
- package/dist/HttpApi/Errors.d.ts +37 -10
- package/dist/HttpApi/Errors.d.ts.map +1 -1
- package/dist/HttpApi/Errors.js +42 -4
- package/dist/HttpApi/Errors.js.map +1 -1
- package/dist/HttpApi/Identity.d.ts +6 -0
- package/dist/HttpApi/Identity.d.ts.map +1 -0
- package/dist/HttpApi/Identity.js +6 -0
- package/dist/HttpApi/Identity.js.map +1 -0
- package/dist/HttpApi/IdentityGuards.d.ts +31 -0
- package/dist/HttpApi/IdentityGuards.d.ts.map +1 -0
- package/dist/HttpApi/IdentityGuards.js +33 -0
- package/dist/HttpApi/IdentityGuards.js.map +1 -0
- package/dist/HttpApi/Jwt.d.ts +4 -0
- package/dist/HttpApi/Jwt.d.ts.map +1 -0
- package/dist/HttpApi/Jwt.js +4 -0
- package/dist/HttpApi/Jwt.js.map +1 -0
- package/dist/HttpApi/JwtDiscovery.d.ts +4 -0
- package/dist/HttpApi/JwtDiscovery.d.ts.map +1 -0
- package/dist/HttpApi/JwtDiscovery.js +4 -0
- package/dist/HttpApi/JwtDiscovery.js.map +1 -0
- package/dist/HttpApi/LoginApproval.d.ts +5 -0
- package/dist/HttpApi/LoginApproval.d.ts.map +1 -0
- package/dist/HttpApi/LoginApproval.js +5 -0
- package/dist/HttpApi/LoginApproval.js.map +1 -0
- package/dist/HttpApi/LoginNotification.d.ts +5 -0
- package/dist/HttpApi/LoginNotification.d.ts.map +1 -0
- package/dist/HttpApi/LoginNotification.js +5 -0
- package/dist/HttpApi/LoginNotification.js.map +1 -0
- package/dist/HttpApi/MagicLink.d.ts +6 -0
- package/dist/HttpApi/MagicLink.d.ts.map +1 -0
- package/dist/HttpApi/MagicLink.js +6 -0
- package/dist/HttpApi/MagicLink.js.map +1 -0
- package/dist/HttpApi/Mfa.d.ts +5 -0
- package/dist/HttpApi/Mfa.d.ts.map +1 -0
- package/dist/HttpApi/Mfa.js +5 -0
- package/dist/HttpApi/Mfa.js.map +1 -0
- package/dist/HttpApi/Middleware.d.ts +26 -0
- package/dist/HttpApi/Middleware.d.ts.map +1 -0
- package/dist/HttpApi/Middleware.js +13 -0
- package/dist/HttpApi/Middleware.js.map +1 -0
- package/dist/HttpApi/OAuth.d.ts +4 -0
- package/dist/HttpApi/OAuth.d.ts.map +1 -0
- package/dist/HttpApi/OAuth.js +4 -0
- package/dist/HttpApi/OAuth.js.map +1 -0
- package/dist/HttpApi/OAuthDeviceAuthorization.d.ts +106 -0
- package/dist/HttpApi/OAuthDeviceAuthorization.d.ts.map +1 -0
- package/dist/HttpApi/OAuthDeviceAuthorization.js +415 -0
- package/dist/HttpApi/OAuthDeviceAuthorization.js.map +1 -0
- package/dist/HttpApi/OAuthProviderAuthorization.d.ts +4 -0
- package/dist/HttpApi/OAuthProviderAuthorization.d.ts.map +1 -0
- package/dist/HttpApi/OAuthProviderAuthorization.js +4 -0
- package/dist/HttpApi/OAuthProviderAuthorization.js.map +1 -0
- package/dist/HttpApi/OAuthToken.d.ts +4 -0
- package/dist/HttpApi/OAuthToken.d.ts.map +1 -0
- package/dist/HttpApi/OAuthToken.js +4 -0
- package/dist/HttpApi/OAuthToken.js.map +1 -0
- package/dist/HttpApi/OidcDiscovery.d.ts +4 -0
- package/dist/HttpApi/OidcDiscovery.d.ts.map +1 -0
- package/dist/HttpApi/OidcDiscovery.js +4 -0
- package/dist/HttpApi/OidcDiscovery.js.map +1 -0
- package/dist/HttpApi/Operations/AdminPermissionDefinition.d.ts +28 -0
- package/dist/HttpApi/Operations/AdminPermissionDefinition.d.ts.map +1 -0
- package/dist/HttpApi/Operations/AdminPermissionDefinition.js +5 -0
- package/dist/HttpApi/Operations/AdminPermissionDefinition.js.map +1 -0
- package/dist/HttpApi/Operations/AdminSession.d.ts +16 -0
- package/dist/HttpApi/Operations/AdminSession.d.ts.map +1 -0
- package/dist/HttpApi/Operations/AdminSession.js +5 -0
- package/dist/HttpApi/Operations/AdminSession.js.map +1 -0
- package/dist/HttpApi/Operations/ApiKey.d.ts +16 -0
- package/dist/HttpApi/Operations/ApiKey.d.ts.map +1 -0
- package/dist/HttpApi/Operations/ApiKey.js +5 -0
- package/dist/HttpApi/Operations/ApiKey.js.map +1 -0
- package/dist/HttpApi/Operations/Discovery.d.ts +19 -0
- package/dist/HttpApi/Operations/Discovery.d.ts.map +1 -0
- package/dist/HttpApi/Operations/Discovery.js +7 -0
- package/dist/HttpApi/Operations/Discovery.js.map +1 -0
- package/dist/HttpApi/Operations/EmailAuth.d.ts +12 -0
- package/dist/HttpApi/Operations/EmailAuth.d.ts.map +1 -0
- package/dist/HttpApi/Operations/EmailAuth.js +5 -0
- package/dist/HttpApi/Operations/EmailAuth.js.map +1 -0
- package/dist/HttpApi/Operations/EmailOtp.d.ts +14 -0
- package/dist/HttpApi/Operations/EmailOtp.d.ts.map +1 -0
- package/dist/HttpApi/Operations/EmailOtp.js +5 -0
- package/dist/HttpApi/Operations/EmailOtp.js.map +1 -0
- package/dist/HttpApi/Operations/EmailVerification.d.ts +14 -0
- package/dist/HttpApi/Operations/EmailVerification.d.ts.map +1 -0
- package/dist/HttpApi/Operations/EmailVerification.js +5 -0
- package/dist/HttpApi/Operations/EmailVerification.js.map +1 -0
- package/dist/HttpApi/Operations/HttpOperation.d.ts +4 -0
- package/dist/HttpApi/Operations/HttpOperation.d.ts.map +1 -0
- package/dist/HttpApi/Operations/HttpOperation.js +2 -0
- package/dist/HttpApi/Operations/HttpOperation.js.map +1 -0
- package/dist/HttpApi/Operations/Identity.d.ts +22 -0
- package/dist/HttpApi/Operations/Identity.d.ts.map +1 -0
- package/dist/HttpApi/Operations/Identity.js +5 -0
- package/dist/HttpApi/Operations/Identity.js.map +1 -0
- package/dist/HttpApi/Operations/Jwt.d.ts +14 -0
- package/dist/HttpApi/Operations/Jwt.d.ts.map +1 -0
- package/dist/HttpApi/Operations/Jwt.js +5 -0
- package/dist/HttpApi/Operations/Jwt.js.map +1 -0
- package/dist/HttpApi/Operations/LoginApproval.d.ts +16 -0
- package/dist/HttpApi/Operations/LoginApproval.d.ts.map +1 -0
- package/dist/HttpApi/Operations/LoginApproval.js +5 -0
- package/dist/HttpApi/Operations/LoginApproval.js.map +1 -0
- package/dist/HttpApi/Operations/MagicLink.d.ts +14 -0
- package/dist/HttpApi/Operations/MagicLink.d.ts.map +1 -0
- package/dist/HttpApi/Operations/MagicLink.js +5 -0
- package/dist/HttpApi/Operations/MagicLink.js.map +1 -0
- package/dist/HttpApi/Operations/Mfa.d.ts +24 -0
- package/dist/HttpApi/Operations/Mfa.d.ts.map +1 -0
- package/dist/HttpApi/Operations/Mfa.js +5 -0
- package/dist/HttpApi/Operations/Mfa.js.map +1 -0
- package/dist/HttpApi/Operations/OAuth.d.ts +20 -0
- package/dist/HttpApi/Operations/OAuth.d.ts.map +1 -0
- package/dist/HttpApi/Operations/OAuth.js +5 -0
- package/dist/HttpApi/Operations/OAuth.js.map +1 -0
- package/dist/HttpApi/Operations/OAuthDeviceAuthorization.d.ts +23 -0
- package/dist/HttpApi/Operations/OAuthDeviceAuthorization.d.ts.map +1 -0
- package/dist/HttpApi/Operations/OAuthDeviceAuthorization.js +7 -0
- package/dist/HttpApi/Operations/OAuthDeviceAuthorization.js.map +1 -0
- package/dist/HttpApi/Operations/OAuthProviderAuthorization.d.ts +12 -0
- package/dist/HttpApi/Operations/OAuthProviderAuthorization.d.ts.map +1 -0
- package/dist/HttpApi/Operations/OAuthProviderAuthorization.js +5 -0
- package/dist/HttpApi/Operations/OAuthProviderAuthorization.js.map +1 -0
- package/dist/HttpApi/Operations/OAuthToken.d.ts +26 -0
- package/dist/HttpApi/Operations/OAuthToken.d.ts.map +1 -0
- package/dist/HttpApi/Operations/OAuthToken.js +9 -0
- package/dist/HttpApi/Operations/OAuthToken.js.map +1 -0
- package/dist/HttpApi/Operations/Passkey.d.ts +22 -0
- package/dist/HttpApi/Operations/Passkey.d.ts.map +1 -0
- package/dist/HttpApi/Operations/Passkey.js +5 -0
- package/dist/HttpApi/Operations/Passkey.js.map +1 -0
- package/dist/HttpApi/Operations/Password.d.ts +22 -0
- package/dist/HttpApi/Operations/Password.d.ts.map +1 -0
- package/dist/HttpApi/Operations/Password.js +5 -0
- package/dist/HttpApi/Operations/Password.js.map +1 -0
- package/dist/HttpApi/Operations/RecoveryCodes.d.ts +20 -0
- package/dist/HttpApi/Operations/RecoveryCodes.d.ts.map +1 -0
- package/dist/HttpApi/Operations/RecoveryCodes.js +5 -0
- package/dist/HttpApi/Operations/RecoveryCodes.js.map +1 -0
- package/dist/HttpApi/Operations/RefreshToken.d.ts +12 -0
- package/dist/HttpApi/Operations/RefreshToken.d.ts.map +1 -0
- package/dist/HttpApi/Operations/RefreshToken.js +5 -0
- package/dist/HttpApi/Operations/RefreshToken.js.map +1 -0
- package/dist/HttpApi/Operations/Security.d.ts +12 -0
- package/dist/HttpApi/Operations/Security.d.ts.map +1 -0
- package/dist/HttpApi/Operations/Security.js +5 -0
- package/dist/HttpApi/Operations/Security.js.map +1 -0
- package/dist/HttpApi/Operations/SecurityTimeline.d.ts +19 -0
- package/dist/HttpApi/Operations/SecurityTimeline.d.ts.map +1 -0
- package/dist/HttpApi/Operations/SecurityTimeline.js +7 -0
- package/dist/HttpApi/Operations/SecurityTimeline.js.map +1 -0
- package/dist/HttpApi/Operations/Session.d.ts +22 -0
- package/dist/HttpApi/Operations/Session.d.ts.map +1 -0
- package/dist/HttpApi/Operations/Session.js +5 -0
- package/dist/HttpApi/Operations/Session.js.map +1 -0
- package/dist/HttpApi/Operations/StepUp.d.ts +22 -0
- package/dist/HttpApi/Operations/StepUp.d.ts.map +1 -0
- package/dist/HttpApi/Operations/StepUp.js +5 -0
- package/dist/HttpApi/Operations/StepUp.js.map +1 -0
- package/dist/HttpApi/Operations/Totp.d.ts +20 -0
- package/dist/HttpApi/Operations/Totp.d.ts.map +1 -0
- package/dist/HttpApi/Operations/Totp.js +5 -0
- package/dist/HttpApi/Operations/Totp.js.map +1 -0
- package/dist/HttpApi/Operations/TrustedDevice.d.ts +23 -0
- package/dist/HttpApi/Operations/TrustedDevice.d.ts.map +1 -0
- package/dist/HttpApi/Operations/TrustedDevice.js +7 -0
- package/dist/HttpApi/Operations/TrustedDevice.js.map +1 -0
- package/dist/HttpApi/Operations/index.d.ts +28 -0
- package/dist/HttpApi/Operations/index.d.ts.map +1 -0
- package/dist/HttpApi/Operations/index.js +28 -0
- package/dist/HttpApi/Operations/index.js.map +1 -0
- package/dist/HttpApi/Passkey.d.ts +5 -0
- package/dist/HttpApi/Passkey.d.ts.map +1 -0
- package/dist/HttpApi/Passkey.js +5 -0
- package/dist/HttpApi/Passkey.js.map +1 -0
- package/dist/HttpApi/Password.d.ts +220 -0
- package/dist/HttpApi/Password.d.ts.map +1 -0
- package/dist/HttpApi/Password.js +237 -0
- package/dist/HttpApi/Password.js.map +1 -0
- package/dist/HttpApi/PasswordContract.d.ts +307 -0
- package/dist/HttpApi/PasswordContract.d.ts.map +1 -0
- package/dist/HttpApi/PasswordContract.js +63 -0
- package/dist/HttpApi/PasswordContract.js.map +1 -0
- package/dist/HttpApi/PasswordGuards.d.ts +82 -0
- package/dist/HttpApi/PasswordGuards.d.ts.map +1 -0
- package/dist/HttpApi/PasswordGuards.js +179 -0
- package/dist/HttpApi/PasswordGuards.js.map +1 -0
- package/dist/HttpApi/RecoveryCodes.d.ts +5 -0
- package/dist/HttpApi/RecoveryCodes.d.ts.map +1 -0
- package/dist/HttpApi/RecoveryCodes.js +5 -0
- package/dist/HttpApi/RecoveryCodes.js.map +1 -0
- package/dist/HttpApi/RefreshToken.d.ts +4 -0
- package/dist/HttpApi/RefreshToken.d.ts.map +1 -0
- package/dist/HttpApi/RefreshToken.js +4 -0
- package/dist/HttpApi/RefreshToken.js.map +1 -0
- package/dist/HttpApi/RequestGuards.d.ts +42 -0
- package/dist/HttpApi/RequestGuards.d.ts.map +1 -0
- package/dist/HttpApi/RequestGuards.js +194 -0
- package/dist/HttpApi/RequestGuards.js.map +1 -0
- package/dist/HttpApi/Schemas.d.ts +399 -84
- package/dist/HttpApi/Schemas.d.ts.map +1 -1
- package/dist/HttpApi/Schemas.js +225 -27
- package/dist/HttpApi/Schemas.js.map +1 -1
- package/dist/HttpApi/Security.d.ts +12 -93
- package/dist/HttpApi/Security.d.ts.map +1 -1
- package/dist/HttpApi/Security.js +65 -356
- package/dist/HttpApi/Security.js.map +1 -1
- package/dist/HttpApi/SecurityTimeline.d.ts +4 -0
- package/dist/HttpApi/SecurityTimeline.d.ts.map +1 -0
- package/dist/HttpApi/SecurityTimeline.js +4 -0
- package/dist/HttpApi/SecurityTimeline.js.map +1 -0
- package/dist/HttpApi/Session.d.ts +5 -0
- package/dist/HttpApi/Session.d.ts.map +1 -0
- package/dist/HttpApi/Session.js +5 -0
- package/dist/HttpApi/Session.js.map +1 -0
- package/dist/HttpApi/SessionGuards.d.ts +15 -0
- package/dist/HttpApi/SessionGuards.d.ts.map +1 -0
- package/dist/HttpApi/SessionGuards.js +37 -0
- package/dist/HttpApi/SessionGuards.js.map +1 -0
- package/dist/HttpApi/StepUp.d.ts +5 -0
- package/dist/HttpApi/StepUp.d.ts.map +1 -0
- package/dist/HttpApi/StepUp.js +5 -0
- package/dist/HttpApi/StepUp.js.map +1 -0
- package/dist/HttpApi/Totp.d.ts +5 -0
- package/dist/HttpApi/Totp.d.ts.map +1 -0
- package/dist/HttpApi/Totp.js +5 -0
- package/dist/HttpApi/Totp.js.map +1 -0
- package/dist/HttpApi/Transport.d.ts +4 -6
- package/dist/HttpApi/Transport.d.ts.map +1 -1
- package/dist/HttpApi/Transport.js +62 -36
- package/dist/HttpApi/Transport.js.map +1 -1
- package/dist/HttpApi/TrustedDevice.d.ts +4 -0
- package/dist/HttpApi/TrustedDevice.d.ts.map +1 -0
- package/dist/HttpApi/TrustedDevice.js +4 -0
- package/dist/HttpApi/TrustedDevice.js.map +1 -0
- package/dist/HttpApi/index.d.ts +11 -3
- package/dist/HttpApi/index.d.ts.map +1 -1
- package/dist/HttpApi/index.js +10 -2
- package/dist/HttpApi/index.js.map +1 -1
- package/dist/Identity.d.ts +138 -0
- package/dist/Identity.d.ts.map +1 -0
- package/dist/Identity.js +105 -0
- package/dist/Identity.js.map +1 -0
- package/dist/IdentityManagement.d.ts +189 -0
- package/dist/IdentityManagement.d.ts.map +1 -0
- package/dist/IdentityManagement.js +317 -0
- package/dist/IdentityManagement.js.map +1 -0
- package/dist/IncidentAction.d.ts +1 -4
- package/dist/IncidentAction.d.ts.map +1 -1
- package/dist/IncidentAction.js +15 -9
- package/dist/IncidentAction.js.map +1 -1
- package/dist/Internal.d.ts +2 -0
- package/dist/Internal.d.ts.map +1 -1
- package/dist/Internal.js +30 -0
- package/dist/Internal.js.map +1 -1
- package/dist/Invitation.d.ts +362 -0
- package/dist/Invitation.d.ts.map +1 -0
- package/dist/Invitation.js +633 -0
- package/dist/Invitation.js.map +1 -0
- package/dist/IpQualityScore.d.ts +38 -0
- package/dist/IpQualityScore.d.ts.map +1 -0
- package/dist/IpQualityScore.js +215 -0
- package/dist/IpQualityScore.js.map +1 -0
- package/dist/Jwt.d.ts +8 -29
- package/dist/Jwt.d.ts.map +1 -1
- package/dist/Jwt.js +67 -56
- package/dist/Jwt.js.map +1 -1
- package/dist/LoginApproval.d.ts +15 -30
- package/dist/LoginApproval.d.ts.map +1 -1
- package/dist/LoginApproval.js +47 -41
- package/dist/LoginApproval.js.map +1 -1
- package/dist/LoginNotification.d.ts +7 -11
- package/dist/LoginNotification.d.ts.map +1 -1
- package/dist/LoginNotification.js +30 -17
- package/dist/LoginNotification.js.map +1 -1
- package/dist/LoginRisk.d.ts +11 -13
- package/dist/LoginRisk.d.ts.map +1 -1
- package/dist/LoginRisk.js +66 -26
- package/dist/LoginRisk.js.map +1 -1
- package/dist/LoginRiskEnrichment.d.ts +145 -0
- package/dist/LoginRiskEnrichment.d.ts.map +1 -0
- package/dist/LoginRiskEnrichment.js +220 -0
- package/dist/LoginRiskEnrichment.js.map +1 -0
- package/dist/MagicLink.d.ts +9 -8
- package/dist/MagicLink.d.ts.map +1 -1
- package/dist/MagicLink.js +40 -73
- package/dist/MagicLink.js.map +1 -1
- package/dist/Mailer.d.ts +19 -12
- package/dist/Mailer.d.ts.map +1 -1
- package/dist/Mailer.js +10 -12
- package/dist/Mailer.js.map +1 -1
- package/dist/OAuth.d.ts +138 -96
- package/dist/OAuth.d.ts.map +1 -1
- package/dist/OAuth.js +522 -221
- package/dist/OAuth.js.map +1 -1
- package/dist/OAuthDeviceAuthorization.d.ts +378 -0
- package/dist/OAuthDeviceAuthorization.d.ts.map +1 -0
- package/dist/OAuthDeviceAuthorization.js +860 -0
- package/dist/OAuthDeviceAuthorization.js.map +1 -0
- package/dist/OAuthDeviceClient.d.ts +76 -0
- package/dist/OAuthDeviceClient.d.ts.map +1 -0
- package/dist/OAuthDeviceClient.js +362 -0
- package/dist/OAuthDeviceClient.js.map +1 -0
- package/dist/Passkey.d.ts +15 -17
- package/dist/Passkey.d.ts.map +1 -1
- package/dist/Passkey.js +86 -39
- package/dist/Passkey.js.map +1 -1
- package/dist/PasskeyBrowser.d.ts +39 -0
- package/dist/PasskeyBrowser.d.ts.map +1 -0
- package/dist/PasskeyBrowser.js +206 -0
- package/dist/PasskeyBrowser.js.map +1 -0
- package/dist/PasskeySimpleWebAuthn.d.ts.map +1 -1
- package/dist/PasskeySimpleWebAuthn.js +19 -7
- package/dist/PasskeySimpleWebAuthn.js.map +1 -1
- package/dist/Password.d.ts +71 -37
- package/dist/Password.d.ts.map +1 -1
- package/dist/Password.js +295 -81
- package/dist/Password.js.map +1 -1
- package/dist/PasswordRisk.d.ts +63 -0
- package/dist/PasswordRisk.d.ts.map +1 -0
- package/dist/PasswordRisk.js +37 -0
- package/dist/PasswordRisk.js.map +1 -0
- package/dist/Permission.d.ts +308 -0
- package/dist/Permission.d.ts.map +1 -0
- package/dist/Permission.js +827 -0
- package/dist/Permission.js.map +1 -0
- package/dist/Policy.d.ts +31 -18
- package/dist/Policy.d.ts.map +1 -1
- package/dist/Policy.js +58 -14
- package/dist/Policy.js.map +1 -1
- package/dist/PostgresDelegatedAccessStorageMigrations.d.ts +7 -0
- package/dist/PostgresDelegatedAccessStorageMigrations.d.ts.map +1 -0
- package/dist/PostgresDelegatedAccessStorageMigrations.js +119 -0
- package/dist/PostgresDelegatedAccessStorageMigrations.js.map +1 -0
- package/dist/PostgresStorageMigrations.d.ts +16 -0
- package/dist/PostgresStorageMigrations.d.ts.map +1 -0
- package/dist/PostgresStorageMigrations.js +674 -0
- package/dist/PostgresStorageMigrations.js.map +1 -0
- package/dist/Privacy.d.ts +0 -3
- package/dist/Privacy.d.ts.map +1 -1
- package/dist/Privacy.js +2 -5
- package/dist/Privacy.js.map +1 -1
- package/dist/RateLimiter.d.ts +0 -3
- package/dist/RateLimiter.d.ts.map +1 -1
- package/dist/RateLimiter.js +1 -4
- package/dist/RateLimiter.js.map +1 -1
- package/dist/RecoveryCode.d.ts +83 -11
- package/dist/RecoveryCode.d.ts.map +1 -1
- package/dist/RecoveryCode.js +273 -75
- package/dist/RecoveryCode.js.map +1 -1
- package/dist/RecoveryPolicy.d.ts +81 -0
- package/dist/RecoveryPolicy.d.ts.map +1 -0
- package/dist/RecoveryPolicy.js +119 -0
- package/dist/RecoveryPolicy.js.map +1 -0
- package/dist/RefreshToken.d.ts +0 -9
- package/dist/RefreshToken.d.ts.map +1 -1
- package/dist/RefreshToken.js +31 -22
- package/dist/RefreshToken.js.map +1 -1
- package/dist/Retention.d.ts +6 -1
- package/dist/Retention.d.ts.map +1 -1
- package/dist/Retention.js +49 -12
- package/dist/Retention.js.map +1 -1
- package/dist/SecurityTimeline.d.ts +1 -4
- package/dist/SecurityTimeline.d.ts.map +1 -1
- package/dist/SecurityTimeline.js +110 -17
- package/dist/SecurityTimeline.js.map +1 -1
- package/dist/Sessions.d.ts +124 -29
- package/dist/Sessions.d.ts.map +1 -1
- package/dist/Sessions.js +626 -94
- package/dist/Sessions.js.map +1 -1
- package/dist/SqliteStorageSchemaData.d.ts +2 -0
- package/dist/SqliteStorageSchemaData.d.ts.map +1 -0
- package/dist/SqliteStorageSchemaData.js +508 -0
- package/dist/SqliteStorageSchemaData.js.map +1 -0
- package/dist/StepUp.d.ts +132 -11
- package/dist/StepUp.d.ts.map +1 -1
- package/dist/StepUp.js +387 -19
- package/dist/StepUp.js.map +1 -1
- package/dist/Storage.d.ts +89 -23
- package/dist/Storage.d.ts.map +1 -1
- package/dist/Storage.js +10 -12
- package/dist/Storage.js.map +1 -1
- package/dist/StorageMigrations.d.ts +7 -1
- package/dist/StorageMigrations.d.ts.map +1 -1
- package/dist/StorageMigrations.js +256 -0
- package/dist/StorageMigrations.js.map +1 -1
- package/dist/StorageSchemaGenerator.d.ts +544 -0
- package/dist/StorageSchemaGenerator.d.ts.map +1 -0
- package/dist/StorageSchemaGenerator.js +1418 -0
- package/dist/StorageSchemaGenerator.js.map +1 -0
- package/dist/StrongFactor.d.ts +64 -0
- package/dist/StrongFactor.d.ts.map +1 -0
- package/dist/StrongFactor.js +100 -0
- package/dist/StrongFactor.js.map +1 -0
- package/dist/Testing.js +2 -2
- package/dist/Testing.js.map +1 -1
- package/dist/Totp.d.ts +88 -13
- package/dist/Totp.d.ts.map +1 -1
- package/dist/Totp.js +192 -34
- package/dist/Totp.js.map +1 -1
- package/dist/TrustedDevice.d.ts +0 -9
- package/dist/TrustedDevice.d.ts.map +1 -1
- package/dist/TrustedDevice.js +15 -17
- package/dist/TrustedDevice.js.map +1 -1
- package/dist/WaitUntil.d.ts +0 -3
- package/dist/WaitUntil.d.ts.map +1 -1
- package/dist/WaitUntil.js +1 -4
- package/dist/WaitUntil.js.map +1 -1
- package/dist/Webhook.d.ts +42 -12
- package/dist/Webhook.d.ts.map +1 -1
- package/dist/Webhook.js +165 -26
- package/dist/Webhook.js.map +1 -1
- package/dist/alchemy/cloudflare/Email.d.ts.map +1 -1
- package/dist/alchemy/cloudflare/Email.js +9 -4
- package/dist/alchemy/cloudflare/Email.js.map +1 -1
- package/dist/cloudflare/Email.js +1 -1
- package/dist/cloudflare/Email.js.map +1 -1
- package/dist/cloudflare/RequestMetadata.d.ts +49 -0
- package/dist/cloudflare/RequestMetadata.d.ts.map +1 -0
- package/dist/cloudflare/RequestMetadata.js +71 -0
- package/dist/cloudflare/RequestMetadata.js.map +1 -0
- package/dist/index.d.ts +0 -35
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -35
- package/dist/index.js.map +1 -1
- package/dist/internal/AuthFlowFinalizer.d.ts +31 -0
- package/dist/internal/AuthFlowFinalizer.d.ts.map +1 -0
- package/dist/internal/AuthFlowFinalizer.js +182 -0
- package/dist/internal/AuthFlowFinalizer.js.map +1 -0
- package/migrations/0001_auth_storage.sql +1 -0
- package/migrations/0006_auth_totp_factor.sql +1 -0
- package/migrations/0024_auth_permission.sql +39 -0
- package/migrations/0025_auth_permission_definition.sql +19 -0
- package/migrations/0026_auth_user_identity.sql +59 -0
- package/migrations/0027_auth_audit_log_storage_order.sql +46 -0
- package/migrations/0028_auth_oauth_client_secret_key.sql +39 -0
- package/migrations/0029_auth_oauth_device_authorization.sql +28 -0
- package/migrations/delegated-access/0001_auth_delegated_access.sql +152 -0
- package/migrations/postgres/0001_auth_core.sql +77 -0
- package/migrations/postgres/0002_auth_security_oauth.sql +65 -0
- package/migrations/postgres/0003_auth_credentials_tokens.sql +43 -0
- package/migrations/postgres/0004_auth_security_history.sql +103 -0
- package/migrations/postgres/0005_auth_webhooks.sql +29 -0
- package/migrations/postgres/0006_auth_domain_timeline.sql +50 -0
- package/migrations/postgres/0007_auth_oauth_clients.sql +85 -0
- package/migrations/postgres/0008_auth_oauth_tokens.sql +63 -0
- package/migrations/postgres/0009_auth_permissions.sql +66 -0
- package/migrations/postgres/0010_auth_oauth_device_authorization.sql +50 -0
- package/migrations/postgres/delegated-access/0001_auth_delegated_access.sql +112 -0
- package/package.json +309 -2
package/dist/OAuth.d.ts
CHANGED
|
@@ -5,7 +5,9 @@ import type { ChallengeService } from "./Challenge.js";
|
|
|
5
5
|
import { Crypto } from "./Crypto.js";
|
|
6
6
|
import type { CryptoService } from "./Crypto.js";
|
|
7
7
|
import { ChallengeId, Email, OAuthAccountId, OAuthClientId, OAuthProviderId, UnixMillis, UserId } from "./Identifiers.js";
|
|
8
|
+
import type { NewUserIdentityRow, UserIdentityRow } from "./Identity.js";
|
|
8
9
|
import { JwtError, JwtVerifier, type JwksDocument, type JwtAudience, type JwtAlgorithm, type JwtClaims, type JwtHeader, type JwtKeyInfo, type JwtKeysService, type JwtVerifierService, type JwtVerificationFailureReason } from "./Jwt.js";
|
|
10
|
+
import type { IdentityStoreService, NewUserRow, UserRow } from "./Storage.js";
|
|
9
11
|
export type OAuthStateToken = Brand.Branded<string, "auth/OAuthStateToken">;
|
|
10
12
|
export declare const OAuthStateToken: Brand.Constructor<OAuthStateToken>;
|
|
11
13
|
export type OAuthCodeVerifier = Brand.Branded<string, "auth/OAuthCodeVerifier">;
|
|
@@ -177,7 +179,7 @@ export interface OAuthProvidersService {
|
|
|
177
179
|
}
|
|
178
180
|
export type OAuthClientType = "public" | "confidential";
|
|
179
181
|
export type OAuthClientStatus = "active" | "disabled";
|
|
180
|
-
export type OAuthClientGrantType = "authorization_code" | "refresh_token" | "client_credentials";
|
|
182
|
+
export type OAuthClientGrantType = "authorization_code" | "refresh_token" | "client_credentials" | "urn:ietf:params:oauth:grant-type:device_code";
|
|
181
183
|
export type OAuthClientResponseType = "code";
|
|
182
184
|
export type OAuthClientSecretAuthenticationMethod = "client_secret_basic" | "client_secret_post";
|
|
183
185
|
export type OAuthClientSecretPrefix = Brand.Branded<string, "auth/OAuthClientSecretPrefix">;
|
|
@@ -234,9 +236,6 @@ export interface OAuthClientRegistryService {
|
|
|
234
236
|
declare const OAuthClientRegistry_base: Context.ServiceClass<OAuthClientRegistry, "auth/OAuthClientRegistry", OAuthClientRegistryService>;
|
|
235
237
|
export declare class OAuthClientRegistry extends OAuthClientRegistry_base {
|
|
236
238
|
}
|
|
237
|
-
export declare namespace OAuthClientRegistry {
|
|
238
|
-
const make: (service: OAuthClientRegistryService) => OAuthClientRegistryService;
|
|
239
|
-
}
|
|
240
239
|
export interface OAuthClientStoreListInput {
|
|
241
240
|
readonly includeDisabled?: boolean;
|
|
242
241
|
}
|
|
@@ -259,9 +258,6 @@ export interface OAuthClientStoreService {
|
|
|
259
258
|
declare const OAuthClientStore_base: Context.ServiceClass<OAuthClientStore, "auth/OAuthClientStore", OAuthClientStoreService>;
|
|
260
259
|
export declare class OAuthClientStore extends OAuthClientStore_base {
|
|
261
260
|
}
|
|
262
|
-
export declare namespace OAuthClientStore {
|
|
263
|
-
const make: (service: OAuthClientStoreService) => OAuthClientStoreService;
|
|
264
|
-
}
|
|
265
261
|
export interface OAuthConsentRecord {
|
|
266
262
|
readonly userId: UserId;
|
|
267
263
|
readonly clientId: OAuthClientId;
|
|
@@ -317,9 +313,6 @@ export interface OAuthConsentStoreService {
|
|
|
317
313
|
declare const OAuthConsentStore_base: Context.ServiceClass<OAuthConsentStore, "auth/OAuthConsentStore", OAuthConsentStoreService>;
|
|
318
314
|
export declare class OAuthConsentStore extends OAuthConsentStore_base {
|
|
319
315
|
}
|
|
320
|
-
export declare namespace OAuthConsentStore {
|
|
321
|
-
const make: (service: OAuthConsentStoreService) => OAuthConsentStoreService;
|
|
322
|
-
}
|
|
323
316
|
export type OAuthClientSecretOperation = "generate" | "parse" | "hash" | "verify";
|
|
324
317
|
declare const OAuthClientSecretError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
325
318
|
readonly _tag: "OAuthClientSecretError";
|
|
@@ -353,9 +346,6 @@ export interface OAuthClientSecretsService {
|
|
|
353
346
|
declare const OAuthClientSecrets_base: Context.ServiceClass<OAuthClientSecrets, "auth/OAuthClientSecrets", OAuthClientSecretsService>;
|
|
354
347
|
export declare class OAuthClientSecrets extends OAuthClientSecrets_base {
|
|
355
348
|
}
|
|
356
|
-
export declare namespace OAuthClientSecrets {
|
|
357
|
-
const make: (service: OAuthClientSecretsService) => OAuthClientSecretsService;
|
|
358
|
-
}
|
|
359
349
|
export interface OAuthClientSecretsDependencies {
|
|
360
350
|
readonly crypto: CryptoService;
|
|
361
351
|
}
|
|
@@ -401,9 +391,6 @@ export interface OAuthClientSecretStoreService {
|
|
|
401
391
|
declare const OAuthClientSecretStore_base: Context.ServiceClass<OAuthClientSecretStore, "auth/OAuthClientSecretStore", OAuthClientSecretStoreService>;
|
|
402
392
|
export declare class OAuthClientSecretStore extends OAuthClientSecretStore_base {
|
|
403
393
|
}
|
|
404
|
-
export declare namespace OAuthClientSecretStore {
|
|
405
|
-
const make: (service: OAuthClientSecretStoreService) => OAuthClientSecretStoreService;
|
|
406
|
-
}
|
|
407
394
|
export interface OAuthClientSecretAuthenticateClientInput {
|
|
408
395
|
readonly clientId: OAuthClientId;
|
|
409
396
|
readonly method: OAuthClientSecretAuthenticationMethod;
|
|
@@ -427,9 +414,6 @@ export interface OAuthClientSecretVerificationService {
|
|
|
427
414
|
declare const OAuthClientSecretVerification_base: Context.ServiceClass<OAuthClientSecretVerification, "auth/OAuthClientSecretVerification", OAuthClientSecretVerificationService>;
|
|
428
415
|
export declare class OAuthClientSecretVerification extends OAuthClientSecretVerification_base {
|
|
429
416
|
}
|
|
430
|
-
export declare namespace OAuthClientSecretVerification {
|
|
431
|
-
const make: (service: OAuthClientSecretVerificationService) => OAuthClientSecretVerificationService;
|
|
432
|
-
}
|
|
433
417
|
export interface OAuthClientSecretVerificationDependencies {
|
|
434
418
|
readonly clientSecrets: OAuthClientSecretsService;
|
|
435
419
|
readonly secretStore: OAuthClientSecretStoreService;
|
|
@@ -532,9 +516,6 @@ export interface OAuthAuthorizationCodeStoreService {
|
|
|
532
516
|
declare const OAuthAuthorizationCodeStore_base: Context.ServiceClass<OAuthAuthorizationCodeStore, "auth/OAuthAuthorizationCodeStore", OAuthAuthorizationCodeStoreService>;
|
|
533
517
|
export declare class OAuthAuthorizationCodeStore extends OAuthAuthorizationCodeStore_base {
|
|
534
518
|
}
|
|
535
|
-
export declare namespace OAuthAuthorizationCodeStore {
|
|
536
|
-
const make: (service: OAuthAuthorizationCodeStoreService) => OAuthAuthorizationCodeStoreService;
|
|
537
|
-
}
|
|
538
519
|
export type OAuthAuthorizationCodeGrantOperation = "issue" | "consume";
|
|
539
520
|
declare const OAuthAuthorizationCodeGrantError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
540
521
|
readonly _tag: "OAuthAuthorizationCodeGrantError";
|
|
@@ -552,9 +533,6 @@ export interface OAuthAuthorizationCodeGrantService {
|
|
|
552
533
|
declare const OAuthAuthorizationCodeGrant_base: Context.ServiceClass<OAuthAuthorizationCodeGrant, "auth/OAuthAuthorizationCodeGrant", OAuthAuthorizationCodeGrantService>;
|
|
553
534
|
export declare class OAuthAuthorizationCodeGrant extends OAuthAuthorizationCodeGrant_base {
|
|
554
535
|
}
|
|
555
|
-
export declare namespace OAuthAuthorizationCodeGrant {
|
|
556
|
-
const make: (service: OAuthAuthorizationCodeGrantService) => OAuthAuthorizationCodeGrantService;
|
|
557
|
-
}
|
|
558
536
|
export interface OAuthAuthorizationCodeTokenIssueInput {
|
|
559
537
|
readonly client: OAuthClientRecord;
|
|
560
538
|
readonly code: OAuthConsumedAuthorizationCode;
|
|
@@ -576,9 +554,6 @@ export interface OAuthAuthorizationCodeTokenIssuerService {
|
|
|
576
554
|
declare const OAuthAuthorizationCodeTokenIssuer_base: Context.ServiceClass<OAuthAuthorizationCodeTokenIssuer, "auth/OAuthAuthorizationCodeTokenIssuer", OAuthAuthorizationCodeTokenIssuerService>;
|
|
577
555
|
export declare class OAuthAuthorizationCodeTokenIssuer extends OAuthAuthorizationCodeTokenIssuer_base {
|
|
578
556
|
}
|
|
579
|
-
export declare namespace OAuthAuthorizationCodeTokenIssuer {
|
|
580
|
-
const make: (service: OAuthAuthorizationCodeTokenIssuerService) => OAuthAuthorizationCodeTokenIssuerService;
|
|
581
|
-
}
|
|
582
557
|
export interface OAuthAuthorizationCodeTokenGrantInput {
|
|
583
558
|
readonly grantType: string;
|
|
584
559
|
readonly code?: Redacted.Redacted<OAuthAuthorizationCode | string>;
|
|
@@ -614,9 +589,6 @@ export interface OAuthAuthorizationCodeTokenGrantService {
|
|
|
614
589
|
declare const OAuthAuthorizationCodeTokenGrant_base: Context.ServiceClass<OAuthAuthorizationCodeTokenGrant, "auth/OAuthAuthorizationCodeTokenGrant", OAuthAuthorizationCodeTokenGrantService>;
|
|
615
590
|
export declare class OAuthAuthorizationCodeTokenGrant extends OAuthAuthorizationCodeTokenGrant_base {
|
|
616
591
|
}
|
|
617
|
-
export declare namespace OAuthAuthorizationCodeTokenGrant {
|
|
618
|
-
const make: (service: OAuthAuthorizationCodeTokenGrantService) => OAuthAuthorizationCodeTokenGrantService;
|
|
619
|
-
}
|
|
620
592
|
export interface OAuthRefreshTokenIssueInput {
|
|
621
593
|
readonly client: OAuthClientRecord;
|
|
622
594
|
readonly refreshToken: Redacted.Redacted<OAuthRefreshToken | string>;
|
|
@@ -647,9 +619,6 @@ export interface OAuthRefreshTokenIssuerService {
|
|
|
647
619
|
declare const OAuthRefreshTokenIssuer_base: Context.ServiceClass<OAuthRefreshTokenIssuer, "auth/OAuthRefreshTokenIssuer", OAuthRefreshTokenIssuerService>;
|
|
648
620
|
export declare class OAuthRefreshTokenIssuer extends OAuthRefreshTokenIssuer_base {
|
|
649
621
|
}
|
|
650
|
-
export declare namespace OAuthRefreshTokenIssuer {
|
|
651
|
-
const make: (service: OAuthRefreshTokenIssuerService) => OAuthRefreshTokenIssuerService;
|
|
652
|
-
}
|
|
653
622
|
export interface OAuthRefreshTokenGrantInput {
|
|
654
623
|
readonly grantType: string;
|
|
655
624
|
readonly refreshToken?: Redacted.Redacted<OAuthRefreshToken | string>;
|
|
@@ -683,9 +652,6 @@ export interface OAuthRefreshTokenGrantService {
|
|
|
683
652
|
declare const OAuthRefreshTokenGrant_base: Context.ServiceClass<OAuthRefreshTokenGrant, "auth/OAuthRefreshTokenGrant", OAuthRefreshTokenGrantService>;
|
|
684
653
|
export declare class OAuthRefreshTokenGrant extends OAuthRefreshTokenGrant_base {
|
|
685
654
|
}
|
|
686
|
-
export declare namespace OAuthRefreshTokenGrant {
|
|
687
|
-
const make: (service: OAuthRefreshTokenGrantService) => OAuthRefreshTokenGrantService;
|
|
688
|
-
}
|
|
689
655
|
export interface OAuthClientCredentialsTokenIssueInput {
|
|
690
656
|
readonly client: OAuthClientRecord;
|
|
691
657
|
readonly scopes?: readonly string[];
|
|
@@ -715,9 +681,6 @@ export interface OAuthClientCredentialsTokenIssuerService {
|
|
|
715
681
|
declare const OAuthClientCredentialsTokenIssuer_base: Context.ServiceClass<OAuthClientCredentialsTokenIssuer, "auth/OAuthClientCredentialsTokenIssuer", OAuthClientCredentialsTokenIssuerService>;
|
|
716
682
|
export declare class OAuthClientCredentialsTokenIssuer extends OAuthClientCredentialsTokenIssuer_base {
|
|
717
683
|
}
|
|
718
|
-
export declare namespace OAuthClientCredentialsTokenIssuer {
|
|
719
|
-
const make: (service: OAuthClientCredentialsTokenIssuerService) => OAuthClientCredentialsTokenIssuerService;
|
|
720
|
-
}
|
|
721
684
|
export interface OAuthClientCredentialsGrantInput {
|
|
722
685
|
readonly grantType: string;
|
|
723
686
|
readonly clientId?: OAuthClientId | string;
|
|
@@ -750,9 +713,6 @@ export interface OAuthClientCredentialsGrantService {
|
|
|
750
713
|
declare const OAuthClientCredentialsGrant_base: Context.ServiceClass<OAuthClientCredentialsGrant, "auth/OAuthClientCredentialsGrant", OAuthClientCredentialsGrantService>;
|
|
751
714
|
export declare class OAuthClientCredentialsGrant extends OAuthClientCredentialsGrant_base {
|
|
752
715
|
}
|
|
753
|
-
export declare namespace OAuthClientCredentialsGrant {
|
|
754
|
-
const make: (service: OAuthClientCredentialsGrantService) => OAuthClientCredentialsGrantService;
|
|
755
|
-
}
|
|
756
716
|
export interface OAuthTokenRevokeInput {
|
|
757
717
|
readonly client: OAuthClientRecord;
|
|
758
718
|
readonly token: Redacted.Redacted<OAuthAccessToken | OAuthRefreshToken | string>;
|
|
@@ -775,9 +735,6 @@ export interface OAuthTokenRevokerService {
|
|
|
775
735
|
declare const OAuthTokenRevoker_base: Context.ServiceClass<OAuthTokenRevoker, "auth/OAuthTokenRevoker", OAuthTokenRevokerService>;
|
|
776
736
|
export declare class OAuthTokenRevoker extends OAuthTokenRevoker_base {
|
|
777
737
|
}
|
|
778
|
-
export declare namespace OAuthTokenRevoker {
|
|
779
|
-
const make: (service: OAuthTokenRevokerService) => OAuthTokenRevokerService;
|
|
780
|
-
}
|
|
781
738
|
export interface OAuthTokenRevocationRequestInput {
|
|
782
739
|
readonly token?: Redacted.Redacted<OAuthAccessToken | OAuthRefreshToken | string>;
|
|
783
740
|
readonly tokenTypeHint?: OAuthTokenRevocationHint | string;
|
|
@@ -809,9 +766,6 @@ export interface OAuthTokenRevocationService {
|
|
|
809
766
|
declare const OAuthTokenRevocation_base: Context.ServiceClass<OAuthTokenRevocation, "auth/OAuthTokenRevocation", OAuthTokenRevocationService>;
|
|
810
767
|
export declare class OAuthTokenRevocation extends OAuthTokenRevocation_base {
|
|
811
768
|
}
|
|
812
|
-
export declare namespace OAuthTokenRevocation {
|
|
813
|
-
const make: (service: OAuthTokenRevocationService) => OAuthTokenRevocationService;
|
|
814
|
-
}
|
|
815
769
|
export interface OAuthTokenIntrospectInput {
|
|
816
770
|
readonly client: OAuthClientRecord;
|
|
817
771
|
readonly token: Redacted.Redacted<OAuthAccessToken | OAuthRefreshToken | string>;
|
|
@@ -851,9 +805,6 @@ export interface OAuthTokenIntrospectorService {
|
|
|
851
805
|
declare const OAuthTokenIntrospector_base: Context.ServiceClass<OAuthTokenIntrospector, "auth/OAuthTokenIntrospector", OAuthTokenIntrospectorService>;
|
|
852
806
|
export declare class OAuthTokenIntrospector extends OAuthTokenIntrospector_base {
|
|
853
807
|
}
|
|
854
|
-
export declare namespace OAuthTokenIntrospector {
|
|
855
|
-
const make: (service: OAuthTokenIntrospectorService) => OAuthTokenIntrospectorService;
|
|
856
|
-
}
|
|
857
808
|
export interface OAuthTokenIntrospectionRequestInput {
|
|
858
809
|
readonly token?: Redacted.Redacted<OAuthAccessToken | OAuthRefreshToken | string>;
|
|
859
810
|
readonly tokenTypeHint?: string;
|
|
@@ -886,9 +837,6 @@ export interface OAuthTokenIntrospectionService {
|
|
|
886
837
|
declare const OAuthTokenIntrospection_base: Context.ServiceClass<OAuthTokenIntrospection, "auth/OAuthTokenIntrospection", OAuthTokenIntrospectionService>;
|
|
887
838
|
export declare class OAuthTokenIntrospection extends OAuthTokenIntrospection_base {
|
|
888
839
|
}
|
|
889
|
-
export declare namespace OAuthTokenIntrospection {
|
|
890
|
-
const make: (service: OAuthTokenIntrospectionService) => OAuthTokenIntrospectionService;
|
|
891
|
-
}
|
|
892
840
|
export interface OAuthProviderAuthorizationInput {
|
|
893
841
|
readonly responseType: string;
|
|
894
842
|
readonly clientId?: OAuthClientId | string;
|
|
@@ -932,9 +880,6 @@ export interface OAuthProviderAuthorizationPolicyService {
|
|
|
932
880
|
declare const OAuthProviderAuthorizationPolicy_base: Context.ServiceClass<OAuthProviderAuthorizationPolicy, "auth/OAuthProviderAuthorizationPolicy", OAuthProviderAuthorizationPolicyService>;
|
|
933
881
|
export declare class OAuthProviderAuthorizationPolicy extends OAuthProviderAuthorizationPolicy_base {
|
|
934
882
|
}
|
|
935
|
-
export declare namespace OAuthProviderAuthorizationPolicy {
|
|
936
|
-
const make: (service: OAuthProviderAuthorizationPolicyService) => OAuthProviderAuthorizationPolicyService;
|
|
937
|
-
}
|
|
938
883
|
export type OAuthProviderAuthorizationResult = {
|
|
939
884
|
readonly valid: true;
|
|
940
885
|
readonly client: OAuthClientRecord;
|
|
@@ -965,9 +910,6 @@ export interface OAuthProviderAuthorizationService {
|
|
|
965
910
|
declare const OAuthProviderAuthorization_base: Context.ServiceClass<OAuthProviderAuthorization, "auth/OAuthProviderAuthorization", OAuthProviderAuthorizationService>;
|
|
966
911
|
export declare class OAuthProviderAuthorization extends OAuthProviderAuthorization_base {
|
|
967
912
|
}
|
|
968
|
-
export declare namespace OAuthProviderAuthorization {
|
|
969
|
-
const make: (service: OAuthProviderAuthorizationService) => OAuthProviderAuthorizationService;
|
|
970
|
-
}
|
|
971
913
|
export type OAuthClientAuthentication = {
|
|
972
914
|
readonly method: "none";
|
|
973
915
|
} | {
|
|
@@ -1099,8 +1041,47 @@ export interface OAuthProviderModeTokenStoreService {
|
|
|
1099
1041
|
declare const OAuthProviderModeTokenStore_base: Context.ServiceClass<OAuthProviderModeTokenStore, "auth/OAuthProviderModeTokenStore", OAuthProviderModeTokenStoreService>;
|
|
1100
1042
|
export declare class OAuthProviderModeTokenStore extends OAuthProviderModeTokenStore_base {
|
|
1101
1043
|
}
|
|
1102
|
-
export
|
|
1103
|
-
|
|
1044
|
+
export interface OAuthProviderModeAccessTokenVerifyInput {
|
|
1045
|
+
readonly accessToken: Redacted.Redacted<OAuthAccessToken | string>;
|
|
1046
|
+
readonly requiredScopes?: readonly string[];
|
|
1047
|
+
readonly issuer?: string;
|
|
1048
|
+
/** Every required audience must be present in the token record audience. */
|
|
1049
|
+
readonly audience?: string | readonly string[];
|
|
1050
|
+
readonly now?: UnixMillis;
|
|
1051
|
+
}
|
|
1052
|
+
export type OAuthProviderModeAccessTokenVerificationFailureReason = "unknown_token" | "wrong_token_type" | "expired" | "revoked" | "rotated" | "unknown_client" | "disabled_client" | "issuer_mismatch" | "audience_mismatch" | "missing_scope";
|
|
1053
|
+
export type OAuthProviderModeActiveAccessTokenRecord = Omit<OAuthProviderModeTokenRecord, "tokenHash" | "tokenType" | "revokedAt" | "revocationReason" | "rotatedAt" | "replacedByTokenHash"> & {
|
|
1054
|
+
readonly tokenType: "access_token";
|
|
1055
|
+
};
|
|
1056
|
+
export type OAuthProviderModeAccessTokenVerificationResult = {
|
|
1057
|
+
readonly valid: true;
|
|
1058
|
+
readonly record: OAuthProviderModeActiveAccessTokenRecord;
|
|
1059
|
+
readonly client: OAuthClientRecord;
|
|
1060
|
+
readonly subject: string;
|
|
1061
|
+
readonly scopes: readonly string[];
|
|
1062
|
+
} | {
|
|
1063
|
+
readonly valid: false;
|
|
1064
|
+
readonly reason: OAuthProviderModeAccessTokenVerificationFailureReason;
|
|
1065
|
+
};
|
|
1066
|
+
export type OAuthProviderModeAccessTokenVerifierOperation = "verify";
|
|
1067
|
+
declare const OAuthProviderModeAccessTokenVerifierError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
1068
|
+
readonly _tag: "OAuthProviderModeAccessTokenVerifierError";
|
|
1069
|
+
} & Readonly<A>;
|
|
1070
|
+
export declare class OAuthProviderModeAccessTokenVerifierError extends OAuthProviderModeAccessTokenVerifierError_base<{
|
|
1071
|
+
readonly operation: OAuthProviderModeAccessTokenVerifierOperation;
|
|
1072
|
+
readonly message: string;
|
|
1073
|
+
}> {
|
|
1074
|
+
}
|
|
1075
|
+
export interface OAuthProviderModeAccessTokenVerifierService {
|
|
1076
|
+
readonly verify: (input: OAuthProviderModeAccessTokenVerifyInput) => Effect.Effect<OAuthProviderModeAccessTokenVerificationResult, OAuthProviderModeAccessTokenVerifierError>;
|
|
1077
|
+
}
|
|
1078
|
+
declare const OAuthProviderModeAccessTokenVerifier_base: Context.ServiceClass<OAuthProviderModeAccessTokenVerifier, "auth/OAuthProviderModeAccessTokenVerifier", OAuthProviderModeAccessTokenVerifierService>;
|
|
1079
|
+
export declare class OAuthProviderModeAccessTokenVerifier extends OAuthProviderModeAccessTokenVerifier_base {
|
|
1080
|
+
}
|
|
1081
|
+
export interface OAuthProviderModeAccessTokenVerifierDependencies {
|
|
1082
|
+
readonly crypto: CryptoService;
|
|
1083
|
+
readonly tokenStore: OAuthProviderModeTokenStoreService;
|
|
1084
|
+
readonly clients: OAuthClientRegistryService;
|
|
1104
1085
|
}
|
|
1105
1086
|
export interface OAuthProviderTokenVaultRecord {
|
|
1106
1087
|
readonly accountId: OAuthAccountId;
|
|
@@ -1152,9 +1133,6 @@ export interface OAuthProviderTokenVaultService {
|
|
|
1152
1133
|
declare const OAuthProviderTokenVault_base: Context.ServiceClass<OAuthProviderTokenVault, "auth/OAuthProviderTokenVault", OAuthProviderTokenVaultService>;
|
|
1153
1134
|
export declare class OAuthProviderTokenVault extends OAuthProviderTokenVault_base {
|
|
1154
1135
|
}
|
|
1155
|
-
export declare namespace OAuthProviderTokenVault {
|
|
1156
|
-
const make: (service: OAuthProviderTokenVaultService) => OAuthProviderTokenVaultService;
|
|
1157
|
-
}
|
|
1158
1136
|
export interface OAuthProviderTokenLifecycleStoreInput {
|
|
1159
1137
|
readonly accountId: OAuthAccountId;
|
|
1160
1138
|
readonly userId: UserId;
|
|
@@ -1221,9 +1199,6 @@ export interface OAuthProviderTokenLifecycleService {
|
|
|
1221
1199
|
declare const OAuthProviderTokenLifecycle_base: Context.ServiceClass<OAuthProviderTokenLifecycle, "auth/OAuthProviderTokenLifecycle", OAuthProviderTokenLifecycleService>;
|
|
1222
1200
|
export declare class OAuthProviderTokenLifecycle extends OAuthProviderTokenLifecycle_base {
|
|
1223
1201
|
}
|
|
1224
|
-
export declare namespace OAuthProviderTokenLifecycle {
|
|
1225
|
-
const make: (service: OAuthProviderTokenLifecycleService) => OAuthProviderTokenLifecycleService;
|
|
1226
|
-
}
|
|
1227
1202
|
export interface OAuthProviderTokenLifecycleDependencies {
|
|
1228
1203
|
readonly tokenVault: OAuthProviderTokenVaultService;
|
|
1229
1204
|
readonly encryptToken: (token: Redacted.Redacted<string>) => Effect.Effect<Redacted.Redacted<string>, unknown>;
|
|
@@ -1326,9 +1301,6 @@ export interface OidcIdTokenVerifierService {
|
|
|
1326
1301
|
declare const OidcIdTokenVerifier_base: Context.ServiceClass<OidcIdTokenVerifier, "auth/OidcIdTokenVerifier", OidcIdTokenVerifierService>;
|
|
1327
1302
|
export declare class OidcIdTokenVerifier extends OidcIdTokenVerifier_base {
|
|
1328
1303
|
}
|
|
1329
|
-
export declare namespace OidcIdTokenVerifier {
|
|
1330
|
-
const make: (service: OidcIdTokenVerifierService) => OidcIdTokenVerifierService;
|
|
1331
|
-
}
|
|
1332
1304
|
export interface OidcIdTokenVerifierDependencies {
|
|
1333
1305
|
readonly jwtVerifier: JwtVerifierService;
|
|
1334
1306
|
}
|
|
@@ -1367,9 +1339,6 @@ export interface OAuthProfileNormalizerService {
|
|
|
1367
1339
|
declare const OAuthProfileNormalizer_base: Context.ServiceClass<OAuthProfileNormalizer, "auth/OAuthProfileNormalizer", OAuthProfileNormalizerService>;
|
|
1368
1340
|
export declare class OAuthProfileNormalizer extends OAuthProfileNormalizer_base {
|
|
1369
1341
|
}
|
|
1370
|
-
export declare namespace OAuthProfileNormalizer {
|
|
1371
|
-
const make: (service: OAuthProfileNormalizerService) => OAuthProfileNormalizerService;
|
|
1372
|
-
}
|
|
1373
1342
|
export type OAuthTokenExchangeOperation = "token-request" | "refresh-token-request" | "revocation-request" | "decode-token-response" | "exchange-code";
|
|
1374
1343
|
declare const OAuthTokenExchangeError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
1375
1344
|
readonly _tag: "OAuthTokenExchangeError";
|
|
@@ -1386,18 +1355,12 @@ export interface OAuthTokenExchangeService {
|
|
|
1386
1355
|
declare const OAuthTokenExchange_base: Context.ServiceClass<OAuthTokenExchange, "auth/OAuthTokenExchange", OAuthTokenExchangeService>;
|
|
1387
1356
|
export declare class OAuthTokenExchange extends OAuthTokenExchange_base {
|
|
1388
1357
|
}
|
|
1389
|
-
export declare namespace OAuthTokenExchange {
|
|
1390
|
-
const make: (service: OAuthTokenExchangeService) => OAuthTokenExchangeService;
|
|
1391
|
-
}
|
|
1392
1358
|
export interface OAuthTokenExchangeDependencies {
|
|
1393
1359
|
readonly request: (request: OAuthTokenRequest) => Effect.Effect<unknown, OAuthTokenExchangeError>;
|
|
1394
1360
|
}
|
|
1395
1361
|
declare const OAuthProviders_base: Context.ServiceClass<OAuthProviders, "auth/OAuthProviders", OAuthProvidersService>;
|
|
1396
1362
|
export declare class OAuthProviders extends OAuthProviders_base {
|
|
1397
1363
|
}
|
|
1398
|
-
export declare namespace OAuthProviders {
|
|
1399
|
-
const make: (service: OAuthProvidersService) => OAuthProvidersService;
|
|
1400
|
-
}
|
|
1401
1364
|
export interface OAuthPkce {
|
|
1402
1365
|
readonly codeVerifier: Redacted.Redacted<OAuthCodeVerifier>;
|
|
1403
1366
|
readonly codeChallenge: OAuthCodeChallenge;
|
|
@@ -1473,9 +1436,6 @@ export interface OAuthStateService {
|
|
|
1473
1436
|
declare const OAuthState_base: Context.ServiceClass<OAuthState, "auth/OAuthState", OAuthStateService>;
|
|
1474
1437
|
export declare class OAuthState extends OAuthState_base {
|
|
1475
1438
|
}
|
|
1476
|
-
export declare namespace OAuthState {
|
|
1477
|
-
const make: (service: OAuthStateService) => OAuthStateService;
|
|
1478
|
-
}
|
|
1479
1439
|
export interface OAuthAccountRecord {
|
|
1480
1440
|
readonly id: OAuthAccountId;
|
|
1481
1441
|
readonly providerId: OAuthProviderId;
|
|
@@ -1527,12 +1487,41 @@ export interface OAuthAccountStoreService {
|
|
|
1527
1487
|
readonly listByUser: (input: OAuthAccountListByUserInput) => Effect.Effect<readonly OAuthAccountRecord[], OAuthAccountStoreError>;
|
|
1528
1488
|
readonly unlink: (input: OAuthAccountUnlinkInput) => Effect.Effect<OptionTypes.Option<OAuthAccountRecord>, OAuthAccountStoreError>;
|
|
1529
1489
|
}
|
|
1490
|
+
export type OAuthIdentityBridgeConflictReason = "user-id" | "identity-id" | "identity-value" | "oauth-account-id" | "provider-account";
|
|
1491
|
+
declare const OAuthIdentityBridgeConflictError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
1492
|
+
readonly _tag: "OAuthIdentityBridgeConflictError";
|
|
1493
|
+
} & Readonly<A>;
|
|
1494
|
+
export declare class OAuthIdentityBridgeConflictError extends OAuthIdentityBridgeConflictError_base<{
|
|
1495
|
+
readonly reason: OAuthIdentityBridgeConflictReason;
|
|
1496
|
+
}> {
|
|
1497
|
+
}
|
|
1498
|
+
declare const OAuthIdentityBridgeStoreError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
1499
|
+
readonly _tag: "OAuthIdentityBridgeStoreError";
|
|
1500
|
+
} & Readonly<A>;
|
|
1501
|
+
export declare class OAuthIdentityBridgeStoreError extends OAuthIdentityBridgeStoreError_base<{
|
|
1502
|
+
readonly message: string;
|
|
1503
|
+
readonly cause?: unknown;
|
|
1504
|
+
}> {
|
|
1505
|
+
}
|
|
1506
|
+
export interface OAuthIdentityBridgeCreateInput {
|
|
1507
|
+
readonly user: NewUserRow;
|
|
1508
|
+
readonly identity?: NewUserIdentityRow;
|
|
1509
|
+
readonly account: OAuthAccountRecord;
|
|
1510
|
+
}
|
|
1511
|
+
export interface OAuthIdentityBridgeCreateResult {
|
|
1512
|
+
readonly user: UserRow;
|
|
1513
|
+
readonly identity?: UserIdentityRow;
|
|
1514
|
+
readonly account: OAuthAccountRecord;
|
|
1515
|
+
}
|
|
1516
|
+
export interface OAuthIdentityBridgeStoreService {
|
|
1517
|
+
readonly create: (input: OAuthIdentityBridgeCreateInput) => Effect.Effect<OAuthIdentityBridgeCreateResult, OAuthIdentityBridgeConflictError | OAuthIdentityBridgeStoreError>;
|
|
1518
|
+
}
|
|
1519
|
+
declare const OAuthIdentityBridgeStore_base: Context.ServiceClass<OAuthIdentityBridgeStore, "auth/OAuthIdentityBridgeStore", OAuthIdentityBridgeStoreService>;
|
|
1520
|
+
export declare class OAuthIdentityBridgeStore extends OAuthIdentityBridgeStore_base {
|
|
1521
|
+
}
|
|
1530
1522
|
declare const OAuthAccountStore_base: Context.ServiceClass<OAuthAccountStore, "auth/OAuthAccountStore", OAuthAccountStoreService>;
|
|
1531
1523
|
export declare class OAuthAccountStore extends OAuthAccountStore_base {
|
|
1532
1524
|
}
|
|
1533
|
-
export declare namespace OAuthAccountStore {
|
|
1534
|
-
const make: (service: OAuthAccountStoreService) => OAuthAccountStoreService;
|
|
1535
|
-
}
|
|
1536
1525
|
export interface OAuthAccountLinkingResolveInput {
|
|
1537
1526
|
readonly identity: VerifiedOAuthIdentity;
|
|
1538
1527
|
readonly currentUserId?: UserId;
|
|
@@ -1576,15 +1565,69 @@ export interface OAuthAccountLinkingService {
|
|
|
1576
1565
|
declare const OAuthAccountLinking_base: Context.ServiceClass<OAuthAccountLinking, "auth/OAuthAccountLinking", OAuthAccountLinkingService>;
|
|
1577
1566
|
export declare class OAuthAccountLinking extends OAuthAccountLinking_base {
|
|
1578
1567
|
}
|
|
1579
|
-
export declare namespace OAuthAccountLinking {
|
|
1580
|
-
const make: (service: OAuthAccountLinkingService) => OAuthAccountLinkingService;
|
|
1581
|
-
}
|
|
1582
1568
|
export interface OAuthAccountLinkingPolicyOptions {
|
|
1583
1569
|
readonly autoLinkVerifiedEmail?: boolean;
|
|
1584
1570
|
}
|
|
1585
1571
|
export interface OAuthAccountLinkingPolicyDependencies extends OAuthAccountLinkingPolicyOptions {
|
|
1586
1572
|
readonly accounts: OAuthAccountStoreService;
|
|
1587
1573
|
}
|
|
1574
|
+
export interface OAuthIdentityBridgePolicyInput {
|
|
1575
|
+
readonly identity: VerifiedOAuthIdentity;
|
|
1576
|
+
readonly currentUserId?: UserId;
|
|
1577
|
+
}
|
|
1578
|
+
export type OAuthIdentityBridgePolicyDecision = {
|
|
1579
|
+
readonly type: "allow";
|
|
1580
|
+
readonly createUser: boolean;
|
|
1581
|
+
readonly trustVerifiedEmail?: boolean;
|
|
1582
|
+
readonly createEmailIdentity?: boolean;
|
|
1583
|
+
} | {
|
|
1584
|
+
readonly type: "deny";
|
|
1585
|
+
readonly reason: string;
|
|
1586
|
+
};
|
|
1587
|
+
export interface OAuthIdentityBridgePolicyService {
|
|
1588
|
+
readonly decide: (input: OAuthIdentityBridgePolicyInput) => Effect.Effect<OAuthIdentityBridgePolicyDecision, OAuthIdentityBridgeError>;
|
|
1589
|
+
}
|
|
1590
|
+
declare const OAuthIdentityBridgePolicy_base: Context.ServiceClass<OAuthIdentityBridgePolicy, "auth/OAuthIdentityBridgePolicy", OAuthIdentityBridgePolicyService>;
|
|
1591
|
+
export declare class OAuthIdentityBridgePolicy extends OAuthIdentityBridgePolicy_base {
|
|
1592
|
+
}
|
|
1593
|
+
export interface OAuthIdentityBridgeResolveInput {
|
|
1594
|
+
readonly identity: VerifiedOAuthIdentity;
|
|
1595
|
+
readonly currentUserId?: UserId;
|
|
1596
|
+
readonly makeUser: () => NewUserRow;
|
|
1597
|
+
readonly makeAccount: (userId: UserId) => OAuthAccountRecord;
|
|
1598
|
+
readonly makeEmailIdentity: (userId: UserId, email: Email, normalizedEmail: Email) => NewUserIdentityRow;
|
|
1599
|
+
}
|
|
1600
|
+
export type OAuthIdentityBridgeResolution = OAuthAccountLinkingResolution | {
|
|
1601
|
+
readonly type: "created";
|
|
1602
|
+
readonly reason: "new-provider-account";
|
|
1603
|
+
readonly user: UserRow;
|
|
1604
|
+
readonly identity?: UserIdentityRow;
|
|
1605
|
+
readonly account: OAuthAccountRecord;
|
|
1606
|
+
} | {
|
|
1607
|
+
readonly type: "deny";
|
|
1608
|
+
readonly reason: string;
|
|
1609
|
+
readonly identity: VerifiedOAuthIdentity;
|
|
1610
|
+
};
|
|
1611
|
+
declare const OAuthIdentityBridgeError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
1612
|
+
readonly _tag: "OAuthIdentityBridgeError";
|
|
1613
|
+
} & Readonly<A>;
|
|
1614
|
+
export declare class OAuthIdentityBridgeError extends OAuthIdentityBridgeError_base<{
|
|
1615
|
+
readonly message: string;
|
|
1616
|
+
readonly cause?: unknown;
|
|
1617
|
+
}> {
|
|
1618
|
+
}
|
|
1619
|
+
export interface OAuthIdentityBridgeService {
|
|
1620
|
+
readonly resolve: (input: OAuthIdentityBridgeResolveInput) => Effect.Effect<OAuthIdentityBridgeResolution, OAuthIdentityBridgeError>;
|
|
1621
|
+
}
|
|
1622
|
+
declare const OAuthIdentityBridge_base: Context.ServiceClass<OAuthIdentityBridge, "auth/OAuthIdentityBridge", OAuthIdentityBridgeService>;
|
|
1623
|
+
export declare class OAuthIdentityBridge extends OAuthIdentityBridge_base {
|
|
1624
|
+
}
|
|
1625
|
+
export interface OAuthIdentityBridgeDependencies {
|
|
1626
|
+
readonly linking: OAuthAccountLinkingService;
|
|
1627
|
+
readonly identities: IdentityStoreService;
|
|
1628
|
+
readonly store: OAuthIdentityBridgeStoreService;
|
|
1629
|
+
readonly policy: OAuthIdentityBridgePolicyService;
|
|
1630
|
+
}
|
|
1588
1631
|
export interface OAuthAccountUnlinkingResolveInput {
|
|
1589
1632
|
readonly userId: UserId;
|
|
1590
1633
|
readonly providerId: OAuthProviderId;
|
|
@@ -1636,9 +1679,6 @@ export interface OAuthAccountUnlinkingService {
|
|
|
1636
1679
|
declare const OAuthAccountUnlinking_base: Context.ServiceClass<OAuthAccountUnlinking, "auth/OAuthAccountUnlinking", OAuthAccountUnlinkingService>;
|
|
1637
1680
|
export declare class OAuthAccountUnlinking extends OAuthAccountUnlinking_base {
|
|
1638
1681
|
}
|
|
1639
|
-
export declare namespace OAuthAccountUnlinking {
|
|
1640
|
-
const make: (service: OAuthAccountUnlinkingService) => OAuthAccountUnlinkingService;
|
|
1641
|
-
}
|
|
1642
1682
|
export interface OAuthAccountUnlinkingPolicyOptions {
|
|
1643
1683
|
readonly allowLastAccount?: boolean;
|
|
1644
1684
|
readonly requireStepUp?: boolean;
|
|
@@ -1709,9 +1749,6 @@ export interface OAuthLinkConfirmationService {
|
|
|
1709
1749
|
declare const OAuthLinkConfirmation_base: Context.ServiceClass<OAuthLinkConfirmation, "auth/OAuthLinkConfirmation", OAuthLinkConfirmationService>;
|
|
1710
1750
|
export declare class OAuthLinkConfirmation extends OAuthLinkConfirmation_base {
|
|
1711
1751
|
}
|
|
1712
|
-
export declare namespace OAuthLinkConfirmation {
|
|
1713
|
-
const make: (service: OAuthLinkConfirmationService) => OAuthLinkConfirmationService;
|
|
1714
|
-
}
|
|
1715
1752
|
export interface OAuthLinkConfirmationDependencies {
|
|
1716
1753
|
readonly challenge: ChallengeService;
|
|
1717
1754
|
readonly accounts: OAuthAccountStoreService;
|
|
@@ -1825,6 +1862,8 @@ export declare const revokeOAuthProviderTokens: (input: OAuthProviderTokenLifecy
|
|
|
1825
1862
|
export declare const completeOAuthCallback: (input: OAuthCallbackInput) => Effect.Effect<OAuthCallbackResult, OAuthStateError | OAuthTokenExchangeError, OAuthState | OAuthTokenExchange>;
|
|
1826
1863
|
export declare const makeOAuthAccountLinkingPolicy: (dependencies: OAuthAccountLinkingPolicyDependencies) => OAuthAccountLinkingService;
|
|
1827
1864
|
export declare const resolveOAuthAccountLinking: (input: OAuthAccountLinkingResolveInput) => Effect.Effect<OAuthAccountLinkingResolution, OAuthAccountLinkingError, OAuthAccountLinking>;
|
|
1865
|
+
export declare const makeOAuthIdentityBridge: (dependencies: OAuthIdentityBridgeDependencies) => OAuthIdentityBridgeService;
|
|
1866
|
+
export declare const resolveOAuthIdentityBridge: (input: OAuthIdentityBridgeResolveInput) => Effect.Effect<OAuthIdentityBridgeResolution, OAuthIdentityBridgeError, OAuthIdentityBridge>;
|
|
1828
1867
|
export declare const makeOAuthAccountUnlinkingPolicy: (dependencies: OAuthAccountUnlinkingPolicyDependencies) => OAuthAccountUnlinkingService;
|
|
1829
1868
|
export declare const resolveOAuthAccountUnlinking: (input: OAuthAccountUnlinkingResolveInput) => Effect.Effect<OAuthAccountUnlinkingResolution, OAuthAccountUnlinkingError, OAuthAccountUnlinking>;
|
|
1830
1869
|
export declare const makeOAuthLinkConfirmation: (dependencies: OAuthLinkConfirmationDependencies) => OAuthLinkConfirmationService;
|
|
@@ -1836,6 +1875,7 @@ export declare const makeOAuthAuthorizationCodeTokenGrant: (dependencies: OAuthA
|
|
|
1836
1875
|
export declare const makeOAuthRefreshTokenGrant: (dependencies: OAuthRefreshTokenGrantDependencies) => OAuthRefreshTokenGrantService;
|
|
1837
1876
|
export declare const makeOAuthClientCredentialsGrant: (dependencies: OAuthClientCredentialsGrantDependencies) => OAuthClientCredentialsGrantService;
|
|
1838
1877
|
export declare const makeOAuthProviderModeOpaqueTokenIssuer: (dependencies: OAuthProviderModeOpaqueTokenIssuerDependencies) => OAuthProviderModeOpaqueTokenIssuerServices;
|
|
1878
|
+
export declare const makeOAuthProviderModeAccessTokenVerifier: (dependencies: OAuthProviderModeAccessTokenVerifierDependencies) => OAuthProviderModeAccessTokenVerifierService;
|
|
1839
1879
|
export declare const makeOAuthClientSecretVerification: (dependencies: OAuthClientSecretVerificationDependencies) => OAuthClientSecretVerificationService;
|
|
1840
1880
|
export declare const makeOAuthTokenRevocation: (dependencies: OAuthTokenRevocationDependencies) => OAuthTokenRevocationService;
|
|
1841
1881
|
export declare const makeOAuthTokenIntrospection: (dependencies: OAuthTokenIntrospectionDependencies) => OAuthTokenIntrospectionService;
|
|
@@ -1847,6 +1887,7 @@ export declare const exchangeOAuthRefreshToken: (input: OAuthRefreshTokenGrantIn
|
|
|
1847
1887
|
export declare const exchangeOAuthClientCredentialsToken: (input: OAuthClientCredentialsGrantInput) => Effect.Effect<OAuthClientCredentialsGrantResult, OAuthClientCredentialsGrantError, OAuthClientCredentialsGrant>;
|
|
1848
1888
|
export declare const revokeOAuthToken: (input: OAuthTokenRevocationRequestInput) => Effect.Effect<OAuthTokenRevocationResult, OAuthTokenRevocationError, OAuthTokenRevocation>;
|
|
1849
1889
|
export declare const introspectOAuthToken: (input: OAuthTokenIntrospectionRequestInput) => Effect.Effect<OAuthTokenIntrospectionResult, OAuthTokenIntrospectionError, OAuthTokenIntrospection>;
|
|
1890
|
+
export declare const verifyOAuthProviderModeAccessToken: (input: OAuthProviderModeAccessTokenVerifyInput) => Effect.Effect<OAuthProviderModeAccessTokenVerificationResult, OAuthProviderModeAccessTokenVerifierError, OAuthProviderModeAccessTokenVerifier>;
|
|
1850
1891
|
export declare const authorizeOAuthProviderAuthorization: (input: OAuthProviderAuthorizationInput) => Effect.Effect<OAuthProviderAuthorizationResult, OAuthProviderAuthorizationError, OAuthProviderAuthorization>;
|
|
1851
1892
|
export declare const makeOAuthPkce: (input?: OAuthPkceInput) => Effect.Effect<OAuthPkce, OAuthStateError, Crypto>;
|
|
1852
1893
|
export declare const makeOAuthState: (dependencies: OAuthStateDependencies) => OAuthStateService;
|
|
@@ -1856,6 +1897,7 @@ export declare const OAuthAuthorizationCodeTokenGrantLive: Layer.Layer<OAuthAuth
|
|
|
1856
1897
|
export declare const OAuthRefreshTokenGrantLive: Layer.Layer<OAuthRefreshTokenGrant, never, OAuthClientRegistry | OAuthRefreshTokenIssuer>;
|
|
1857
1898
|
export declare const OAuthClientCredentialsGrantLive: Layer.Layer<OAuthClientCredentialsGrant, never, OAuthClientCredentialsTokenIssuer | OAuthClientRegistry>;
|
|
1858
1899
|
export declare const OAuthProviderModeOpaqueTokenIssuerLive: (options?: OAuthProviderModeOpaqueTokenIssuerLiveOptions) => Layer.Layer<OAuthAuthorizationCodeTokenIssuer | OAuthClientCredentialsTokenIssuer | OAuthRefreshTokenIssuer, never, Crypto | OAuthProviderModeTokenStore>;
|
|
1900
|
+
export declare const OAuthProviderModeAccessTokenVerifierLive: Layer.Layer<OAuthProviderModeAccessTokenVerifier, never, Crypto | OAuthClientRegistry | OAuthProviderModeTokenStore>;
|
|
1859
1901
|
export declare const OAuthTokenRevocationLive: Layer.Layer<OAuthTokenRevocation, never, OAuthClientRegistry | OAuthTokenRevoker>;
|
|
1860
1902
|
export declare const OAuthTokenIntrospectionLive: Layer.Layer<OAuthTokenIntrospection, never, OAuthClientRegistry | OAuthTokenIntrospector>;
|
|
1861
1903
|
export declare const OAuthProviderAuthorizationLive: Layer.Layer<OAuthProviderAuthorization, never, OAuthAuthorizationCodeGrant | OAuthClientRegistry | OAuthProviderAuthorizationPolicy>;
|