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