@effect-auth/core 0.1.0-alpha.1 → 0.1.0-alpha.10
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/README.md +728 -72
- package/dist/ApiKey.d.ts +207 -0
- package/dist/ApiKey.d.ts.map +1 -0
- package/dist/ApiKey.js +275 -0
- package/dist/ApiKey.js.map +1 -0
- package/dist/AuditLog.d.ts +275 -1
- package/dist/AuditLog.d.ts.map +1 -1
- package/dist/AuditLog.js +213 -1
- package/dist/AuditLog.js.map +1 -1
- package/dist/AuthConfig.d.ts +42 -0
- package/dist/AuthConfig.d.ts.map +1 -0
- package/dist/AuthConfig.js +43 -0
- package/dist/AuthConfig.js.map +1 -0
- package/dist/AuthFlow.d.ts +462 -36
- package/dist/AuthFlow.d.ts.map +1 -1
- package/dist/AuthFlow.js +657 -5
- package/dist/AuthFlow.js.map +1 -1
- package/dist/AuthKernel.d.ts +3 -0
- package/dist/AuthKernel.d.ts.map +1 -0
- package/dist/AuthKernel.js +9 -0
- package/dist/AuthKernel.js.map +1 -0
- package/dist/Challenge.d.ts +24 -4
- package/dist/Challenge.d.ts.map +1 -1
- package/dist/Challenge.js +167 -1
- package/dist/Challenge.js.map +1 -1
- package/dist/Client.d.ts +378 -0
- package/dist/Client.d.ts.map +1 -0
- package/dist/Client.js +768 -0
- package/dist/Client.js.map +1 -0
- package/dist/Crypto.d.ts +6 -1
- package/dist/Crypto.d.ts.map +1 -1
- package/dist/Crypto.js +62 -1
- package/dist/Crypto.js.map +1 -1
- package/dist/EffectQbSqliteStorage.d.ts +600 -0
- package/dist/EffectQbSqliteStorage.d.ts.map +1 -0
- package/dist/EffectQbSqliteStorage.js +1637 -0
- package/dist/EffectQbSqliteStorage.js.map +1 -0
- package/dist/EmailOtp.d.ts +120 -0
- package/dist/EmailOtp.d.ts.map +1 -0
- package/dist/EmailOtp.js +286 -0
- package/dist/EmailOtp.js.map +1 -0
- package/dist/EmailVerification.d.ts +121 -0
- package/dist/EmailVerification.d.ts.map +1 -0
- package/dist/EmailVerification.js +200 -0
- package/dist/EmailVerification.js.map +1 -0
- package/dist/HttpApi/Api.d.ts +1956 -0
- package/dist/HttpApi/Api.d.ts.map +1 -0
- package/dist/HttpApi/Api.js +2325 -0
- package/dist/HttpApi/Api.js.map +1 -0
- package/dist/HttpApi/Endpoints.d.ts +945 -0
- package/dist/HttpApi/Endpoints.d.ts.map +1 -0
- package/dist/HttpApi/Endpoints.js +373 -0
- package/dist/HttpApi/Endpoints.js.map +1 -0
- package/dist/HttpApi/Errors.d.ts +82 -0
- package/dist/HttpApi/Errors.d.ts.map +1 -0
- package/dist/HttpApi/Errors.js +184 -0
- package/dist/HttpApi/Errors.js.map +1 -0
- package/dist/HttpApi/Schemas.d.ts +1113 -0
- package/dist/HttpApi/Schemas.d.ts.map +1 -0
- package/dist/HttpApi/Schemas.js +734 -0
- package/dist/HttpApi/Schemas.js.map +1 -0
- package/dist/HttpApi/Security.d.ts +159 -0
- package/dist/HttpApi/Security.d.ts.map +1 -0
- package/dist/HttpApi/Security.js +530 -0
- package/dist/HttpApi/Security.js.map +1 -0
- package/dist/HttpApi/Transport.d.ts +65 -0
- package/dist/HttpApi/Transport.d.ts.map +1 -0
- package/dist/HttpApi/Transport.js +311 -0
- package/dist/HttpApi/Transport.js.map +1 -0
- package/dist/HttpApi/index.d.ts +8 -0
- package/dist/HttpApi/index.d.ts.map +1 -0
- package/dist/HttpApi/index.js +7 -0
- package/dist/HttpApi/index.js.map +1 -0
- package/dist/HttpApi.d.ts +2 -0
- package/dist/HttpApi.d.ts.map +1 -0
- package/dist/HttpApi.js +2 -0
- package/dist/HttpApi.js.map +1 -0
- package/dist/Identifiers.d.ts.map +1 -1
- package/dist/Identifiers.js.map +1 -1
- package/dist/Internal.d.ts +7 -0
- package/dist/Internal.d.ts.map +1 -0
- package/dist/Internal.js +12 -0
- package/dist/Internal.js.map +1 -0
- package/dist/Jwt.d.ts +271 -0
- package/dist/Jwt.d.ts.map +1 -0
- package/dist/Jwt.js +512 -0
- package/dist/Jwt.js.map +1 -0
- package/dist/LoginApproval.d.ts +314 -0
- package/dist/LoginApproval.d.ts.map +1 -0
- package/dist/LoginApproval.js +551 -0
- package/dist/LoginApproval.js.map +1 -0
- package/dist/LoginNotification.d.ts +183 -0
- package/dist/LoginNotification.d.ts.map +1 -0
- package/dist/LoginNotification.js +329 -0
- package/dist/LoginNotification.js.map +1 -0
- package/dist/LoginRisk.d.ts +73 -0
- package/dist/LoginRisk.d.ts.map +1 -0
- package/dist/LoginRisk.js +57 -0
- package/dist/LoginRisk.js.map +1 -0
- package/dist/MagicLink.d.ts +85 -0
- package/dist/MagicLink.d.ts.map +1 -0
- package/dist/MagicLink.js +206 -0
- package/dist/MagicLink.js.map +1 -0
- package/dist/Mailer.d.ts +147 -0
- package/dist/Mailer.d.ts.map +1 -0
- package/dist/Mailer.js +208 -0
- package/dist/Mailer.js.map +1 -0
- package/dist/OAuth.d.ts +934 -0
- package/dist/OAuth.d.ts.map +1 -0
- package/dist/OAuth.js +1661 -0
- package/dist/OAuth.js.map +1 -0
- package/dist/Passkey.d.ts +334 -0
- package/dist/Passkey.d.ts.map +1 -0
- package/dist/Passkey.js +422 -0
- package/dist/Passkey.js.map +1 -0
- package/dist/PasskeySimpleWebAuthn.d.ts +11 -0
- package/dist/PasskeySimpleWebAuthn.d.ts.map +1 -0
- package/dist/PasskeySimpleWebAuthn.js +181 -0
- package/dist/PasskeySimpleWebAuthn.js.map +1 -0
- package/dist/Password.d.ts +237 -0
- package/dist/Password.d.ts.map +1 -0
- package/dist/Password.js +641 -0
- package/dist/Password.js.map +1 -0
- package/dist/Policy.d.ts +7 -4
- package/dist/Policy.d.ts.map +1 -1
- package/dist/Policy.js +28 -5
- package/dist/Policy.js.map +1 -1
- package/dist/Privacy.d.ts +15 -0
- package/dist/Privacy.d.ts.map +1 -1
- package/dist/Privacy.js +58 -1
- package/dist/Privacy.js.map +1 -1
- package/dist/RateLimiter.d.ts +104 -0
- package/dist/RateLimiter.d.ts.map +1 -0
- package/dist/RateLimiter.js +118 -0
- package/dist/RateLimiter.js.map +1 -0
- package/dist/RecoveryCode.d.ts +169 -0
- package/dist/RecoveryCode.d.ts.map +1 -0
- package/dist/RecoveryCode.js +299 -0
- package/dist/RecoveryCode.js.map +1 -0
- package/dist/RefreshToken.d.ts +222 -0
- package/dist/RefreshToken.d.ts.map +1 -0
- package/dist/RefreshToken.js +342 -0
- package/dist/RefreshToken.js.map +1 -0
- package/dist/SecurityTimeline.d.ts +72 -0
- package/dist/SecurityTimeline.d.ts.map +1 -0
- package/dist/SecurityTimeline.js +386 -0
- package/dist/SecurityTimeline.js.map +1 -0
- package/dist/Sessions.d.ts +123 -11
- package/dist/Sessions.d.ts.map +1 -1
- package/dist/Sessions.js +534 -1
- package/dist/Sessions.js.map +1 -1
- package/dist/StepUp.d.ts +44 -0
- package/dist/StepUp.d.ts.map +1 -0
- package/dist/StepUp.js +82 -0
- package/dist/StepUp.js.map +1 -0
- package/dist/Storage.d.ts +73 -5
- package/dist/Storage.d.ts.map +1 -1
- package/dist/Storage.js +11 -1
- package/dist/Storage.js.map +1 -1
- package/dist/StorageMigrations.d.ts +13 -1
- package/dist/StorageMigrations.d.ts.map +1 -1
- package/dist/StorageMigrations.js +256 -2
- package/dist/StorageMigrations.js.map +1 -1
- package/dist/Testing.d.ts +9 -1
- package/dist/Testing.d.ts.map +1 -1
- package/dist/Testing.js +30 -2
- package/dist/Testing.js.map +1 -1
- package/dist/Totp.d.ts +220 -0
- package/dist/Totp.d.ts.map +1 -0
- package/dist/Totp.js +477 -0
- package/dist/Totp.js.map +1 -0
- package/dist/TrustedDevice.d.ts +127 -0
- package/dist/TrustedDevice.d.ts.map +1 -0
- package/dist/TrustedDevice.js +252 -0
- package/dist/TrustedDevice.js.map +1 -0
- package/dist/WaitUntil.d.ts.map +1 -1
- package/dist/WaitUntil.js +1 -1
- package/dist/WaitUntil.js.map +1 -1
- package/dist/Webhook.d.ts +72 -0
- package/dist/Webhook.d.ts.map +1 -0
- package/dist/Webhook.js +82 -0
- package/dist/Webhook.js.map +1 -0
- package/dist/alchemy/cloudflare/Email.d.ts +25 -0
- package/dist/alchemy/cloudflare/Email.d.ts.map +1 -0
- package/dist/alchemy/cloudflare/Email.js +117 -0
- package/dist/alchemy/cloudflare/Email.js.map +1 -0
- package/dist/alchemy/cloudflare/RateLimitDurableObject.d.ts +34 -0
- package/dist/alchemy/cloudflare/RateLimitDurableObject.d.ts.map +1 -0
- package/dist/alchemy/cloudflare/RateLimitDurableObject.js +30 -0
- package/dist/alchemy/cloudflare/RateLimitDurableObject.js.map +1 -0
- package/dist/cloudflare/Email.d.ts +25 -0
- package/dist/cloudflare/Email.d.ts.map +1 -0
- package/dist/cloudflare/Email.js +153 -0
- package/dist/cloudflare/Email.js.map +1 -0
- package/dist/cloudflare/RateLimitDurableObject.d.ts +50 -0
- package/dist/cloudflare/RateLimitDurableObject.d.ts.map +1 -0
- package/dist/cloudflare/RateLimitDurableObject.js +51 -0
- package/dist/cloudflare/RateLimitDurableObject.js.map +1 -0
- package/dist/index.d.ts +21 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +21 -0
- package/dist/index.js.map +1 -1
- package/dist/internal/RateLimitDurableObject.d.ts +32 -0
- package/dist/internal/RateLimitDurableObject.d.ts.map +1 -0
- package/dist/internal/RateLimitDurableObject.js +80 -0
- package/dist/internal/RateLimitDurableObject.js.map +1 -0
- package/migrations/0002_auth_password.sql +25 -0
- package/migrations/0003_auth_login_approval_review.sql +22 -0
- package/migrations/0004_auth_trusted_device.sql +12 -0
- package/migrations/0005_auth_passkey.sql +17 -0
- package/migrations/0006_auth_totp_factor.sql +17 -0
- package/migrations/0007_auth_recovery_code.sql +13 -0
- package/migrations/0008_auth_api_key.sql +17 -0
- package/migrations/0009_auth_refresh_token.sql +21 -0
- package/migrations/0010_auth_jwt_revocation.sql +8 -0
- package/migrations/0011_auth_oauth_account.sql +16 -0
- package/migrations/0012_auth_oauth_provider_token_vault.sql +20 -0
- package/migrations/0013_auth_security_timeline.sql +16 -0
- package/package.json +146 -26
- package/dist/D1Kysely.d.ts +0 -40
- package/dist/D1Kysely.d.ts.map +0 -1
- package/dist/D1Kysely.js +0 -75
- package/dist/D1Kysely.js.map +0 -1
- package/dist/KyselyStorage.d.ts +0 -41
- package/dist/KyselyStorage.d.ts.map +0 -1
- package/dist/KyselyStorage.js +0 -176
- package/dist/KyselyStorage.js.map +0 -1
|
@@ -0,0 +1,1956 @@
|
|
|
1
|
+
import { Effect, Layer, Redacted } from "effect";
|
|
2
|
+
import type { Duration, Schema } from "effect";
|
|
3
|
+
import type { HttpServerRequest } from "effect/unstable/http";
|
|
4
|
+
import { HttpServerResponse } from "effect/unstable/http";
|
|
5
|
+
import { HttpApi, HttpApiGroup } from "effect/unstable/httpapi";
|
|
6
|
+
import { ApiKeyId } from "../ApiKey.js";
|
|
7
|
+
import type { ApiKeyCreateForUserInput, ApiKeyManagementRevokeInput, ApiKeyManagementService } from "../ApiKey.js";
|
|
8
|
+
import type { JwtAudience, JwtIssueInput, JwtIssuerService, JwtRevokeJwtIdInput, JwtRevocationService, JwtVerifyInput } from "../Jwt.js";
|
|
9
|
+
import { AuthFlow, AuthFlowState, AuthResult } from "../AuthFlow.js";
|
|
10
|
+
import type { AuthFlowService, AuthFlowStateService, LoginApprovalFinalizeService } from "../AuthFlow.js";
|
|
11
|
+
import { EmailOtpLogin } from "../EmailOtp.js";
|
|
12
|
+
import type { EmailOtpLoginService, EmailOtpStartInput, EmailOtpVerifyInput } from "../EmailOtp.js";
|
|
13
|
+
import { EmailVerification, EmailVerificationFlow } from "../EmailVerification.js";
|
|
14
|
+
import type { EmailVerificationFlowService, EmailVerificationService, EmailVerificationIssueInput, EmailVerificationVerifyInput } from "../EmailVerification.js";
|
|
15
|
+
import type { Email, OAuthProviderId, UnixMillis, UserId } from "../Identifiers.js";
|
|
16
|
+
import { LoginApproval } from "../LoginApproval.js";
|
|
17
|
+
import type { LoginApprovalReviewService, LoginApprovalService, LoginApprovalVerifyInput } from "../LoginApproval.js";
|
|
18
|
+
import type { LoginRequestContext } from "../LoginRisk.js";
|
|
19
|
+
import type { LoginNotificationReportInput, LoginNotificationService } from "../LoginNotification.js";
|
|
20
|
+
import { MagicLinkLogin } from "../MagicLink.js";
|
|
21
|
+
import type { MagicLinkLoginService, MagicLinkStartInput, MagicLinkVerifyInput } from "../MagicLink.js";
|
|
22
|
+
import type { OAuthAccountUnlinkingResolution, OAuthAccountUnlinkingService, OAuthAuthorizationStartInput, OAuthCallbackInput, OAuthClientAuthentication, OAuthCodeVerifier, OAuthLinkConfirmationConfirmInput, OAuthLinkConfirmationInspectInput, OAuthLinkConfirmationService, OAuthLinkConfirmationStartInput, OAuthProviderConfig, OAuthProvidersService, OAuthStateService, ConfirmedOAuthLinkConfirmation, PendingOAuthLinkConfirmation, StartedOAuthAuthorization, StartedOAuthLinkConfirmation } from "../OAuth.js";
|
|
23
|
+
import { PasswordLogin, PasswordManagement, PasswordRegistration, PasswordReset } from "../Password.js";
|
|
24
|
+
import { PasskeyCredentialId } from "../Passkey.js";
|
|
25
|
+
import type { FinishedPasskeyAuthentication, PasskeyAttestation, PasskeyAuthenticationFinishInput, PasskeyAuthenticationStartInput, PasskeyAuthenticatorSelection, PasskeyCredentialManagementService, PasskeyOptionsService, PasskeyPublicKeyCredentialParameters, PasskeyRelyingParty, PasskeyUserVerification, PasskeyVerificationService } from "../Passkey.js";
|
|
26
|
+
import type { PasswordChangeInput, PasswordManagementService, PasswordLoginService, PasswordRegistrationService, PasswordResetService, PasswordResetStartInput, PasswordResetVerifyInput, PasswordSetInput, PasswordSignInInput, PasswordSignUpInput } from "../Password.js";
|
|
27
|
+
import type { RecoveryCodeGenerateForUserInput, RecoveryCodeManagementRevokeInput, RecoveryCodeManagementService, RecoveryCodeVerifyForUserInput } from "../RecoveryCode.js";
|
|
28
|
+
import type { RefreshTokenInfo, RefreshTokenManagementService, RefreshTokenRotateInput } from "../RefreshToken.js";
|
|
29
|
+
import { SessionCookie, Sessions } from "../Sessions.js";
|
|
30
|
+
import type { AuthMethodReference, CurrentSessionShape, SessionClaims, SessionCookieService, SessionCreateInput, SessionsService, ValidatedSession } from "../Sessions.js";
|
|
31
|
+
import { SecurityTimelineStore } from "../SecurityTimeline.js";
|
|
32
|
+
import type { SecurityTimelineEvent, SecurityTimelineStoreService } from "../SecurityTimeline.js";
|
|
33
|
+
import { UserStore } from "../Storage.js";
|
|
34
|
+
import type { UserStoreService } from "../Storage.js";
|
|
35
|
+
import type { TotpAlgorithm, TotpEnrollmentConfirmInput, TotpEnrollmentStartInput, TotpFactorManagementService, TotpFactorManagementRevokeInput, TotpVerifyForUserInput } from "../Totp.js";
|
|
36
|
+
import { TrustedDeviceStore } from "../TrustedDevice.js";
|
|
37
|
+
import type { TrustedDeviceRecord, TrustedDeviceCookieService, TrustedDeviceService, TrustedDeviceStoreService } from "../TrustedDevice.js";
|
|
38
|
+
import { AuthBadRequestError, AuthEmailAlreadyRegisteredError, AuthInternalError, AuthInvalidCredentialsError, AuthPolicyDeniedError, AuthRateLimitedError, AuthSchemaErrorMiddleware, AuthUnauthenticatedError } from "./Errors.js";
|
|
39
|
+
import type { ApiKeyCreateBody, ApiKeyRevokeBody, EmailOtpStartBody, EmailOtpVerifyBody, EmailVerificationStartBody, EmailVerificationVerifyBody, LoginApprovalApproveBody, LoginApprovalFinalizeBody, LoginNotificationReportBody, LoginApprovalReviewStatusBody, JwtIntrospectBody, JwtRevokeBody, MagicLinkStartBody, MagicLinkVerifyBody, MfaOptionsBody, OAuthAccountUnlinkBody, OAuthAccountUnlinkResolutionBody, OAuthAuthorizationCallbackBody, OAuthAuthorizationStartBody, OAuthLinkConfirmationConfirmBody, OAuthLinkConfirmationConfirmedBody, OAuthLinkConfirmationInspectBody, OAuthLinkConfirmationPendingBody, OAuthLinkConfirmationStartBody, OAuthLinkConfirmationStartedBody, PasskeyAuthenticationFinishBody, PasskeyAuthenticationStartBody, PasskeyCredentialRevokeBody, PasskeyMfaStartBody, PasskeyMfaVerifyBody, PasskeyRegistrationFinishBody, PasskeyRegistrationStartBody, PasswordChangeBody, PasswordResetStartBody, PasswordResetVerifyBody, PasswordSetBody, SessionRevokeBody, PasswordSignInBody, PasswordSignUpBody, RecoveryCodeGenerateBody, RecoveryCodeMfaVerifyBody, RecoveryCodeMfaVerifyForFlowBody, RefreshTokenRefreshBody, RecoveryCodeRevokeBody, RecoveryCodeVerifyBody, SecurityTimelineListQuery, StepUpPasskeyStartBody, StepUpPasskeyVerifyBody, StepUpRecoveryCodeVerifyBody, StepUpTotpVerifyBody, TrustedDeviceRevokeBody, TotpEnrollmentConfirmBody, TotpEnrollmentStartBody, TotpFactorRevokeBody, TotpMfaVerifyBody, TotpMfaVerifyForFlowBody, TotpVerifyBody } from "./Schemas.js";
|
|
40
|
+
import { AuthApiRateLimit, AuthOriginCheckMiddleware, AuthRateLimitMiddleware } from "./Security.js";
|
|
41
|
+
import type { AuthApiRateLimitService } from "./Security.js";
|
|
42
|
+
import { AuthHttp } from "./Transport.js";
|
|
43
|
+
import type { AuthHttpService, LoginApprovalPendingCookieService } from "./Transport.js";
|
|
44
|
+
export declare const passwordSignInInput: (payload: Schema.Schema.Type<typeof PasswordSignInBody>, trustedDeviceToken?: Redacted.Redacted<string>, request?: LoginRequestContext) => PasswordSignInInput;
|
|
45
|
+
export declare const passwordSignUpInput: (payload: Schema.Schema.Type<typeof PasswordSignUpBody>, request?: LoginRequestContext) => PasswordSignUpInput;
|
|
46
|
+
export declare const passwordResetStartInput: (payload: Schema.Schema.Type<typeof PasswordResetStartBody>) => PasswordResetStartInput;
|
|
47
|
+
export declare const passwordResetVerifyInput: (payload: Schema.Schema.Type<typeof PasswordResetVerifyBody>) => PasswordResetVerifyInput;
|
|
48
|
+
export declare const passwordSetInput: (userId: UserId, payload: Schema.Schema.Type<typeof PasswordSetBody>) => PasswordSetInput;
|
|
49
|
+
export declare const passwordChangeInput: (userId: UserId, payload: Schema.Schema.Type<typeof PasswordChangeBody>) => PasswordChangeInput;
|
|
50
|
+
export declare const emailVerificationStartInput: (payload: Schema.Schema.Type<typeof EmailVerificationStartBody>) => EmailVerificationIssueInput;
|
|
51
|
+
export declare const emailVerificationVerifyInput: (payload: Schema.Schema.Type<typeof EmailVerificationVerifyBody>) => EmailVerificationVerifyInput;
|
|
52
|
+
export declare const emailOtpStartInput: (payload: Schema.Schema.Type<typeof EmailOtpStartBody>) => EmailOtpStartInput;
|
|
53
|
+
export declare const emailOtpVerifyInput: (payload: Schema.Schema.Type<typeof EmailOtpVerifyBody>, trustedDeviceToken?: Redacted.Redacted<string>, request?: LoginRequestContext) => EmailOtpVerifyInput;
|
|
54
|
+
export declare const magicLinkStartInput: (payload: Schema.Schema.Type<typeof MagicLinkStartBody>) => MagicLinkStartInput;
|
|
55
|
+
export declare const magicLinkVerifyInput: (payload: Schema.Schema.Type<typeof MagicLinkVerifyBody>, trustedDeviceToken?: Redacted.Redacted<string>, request?: LoginRequestContext) => MagicLinkVerifyInput;
|
|
56
|
+
export interface OAuthAuthorizationCodeVerifierStoreInput {
|
|
57
|
+
readonly payload: Schema.Schema.Type<typeof OAuthAuthorizationStartBody>;
|
|
58
|
+
readonly started: StartedOAuthAuthorization;
|
|
59
|
+
}
|
|
60
|
+
export interface OAuthAuthorizationStartHttpOptions {
|
|
61
|
+
readonly ttl?: Duration.Duration;
|
|
62
|
+
readonly storeCodeVerifier?: (input: OAuthAuthorizationCodeVerifierStoreInput) => Effect.Effect<void, unknown>;
|
|
63
|
+
}
|
|
64
|
+
export interface OAuthAuthorizationCallbackHttpOptions {
|
|
65
|
+
readonly provider: OAuthProviderConfig;
|
|
66
|
+
readonly codeVerifier: Redacted.Redacted<OAuthCodeVerifier | string>;
|
|
67
|
+
readonly redirectUri?: string;
|
|
68
|
+
readonly clientAuthentication?: OAuthClientAuthentication;
|
|
69
|
+
readonly tokenParams?: Readonly<Record<string, string>>;
|
|
70
|
+
}
|
|
71
|
+
export type OAuthAuthorizationCallbackFieldValue = string | readonly string[] | null | undefined;
|
|
72
|
+
export interface OAuthAuthorizationCallbackSearchParams {
|
|
73
|
+
readonly get: (name: string) => string | null;
|
|
74
|
+
}
|
|
75
|
+
export type OAuthAuthorizationCallbackFields = OAuthAuthorizationCallbackSearchParams | Readonly<Record<string, OAuthAuthorizationCallbackFieldValue>>;
|
|
76
|
+
export interface OAuthAuthorizationCallbackPayloadInput {
|
|
77
|
+
readonly providerId: OAuthProviderId;
|
|
78
|
+
readonly fields: OAuthAuthorizationCallbackFields;
|
|
79
|
+
}
|
|
80
|
+
export interface OAuthLinkConfirmationStartHttpInput {
|
|
81
|
+
readonly payload: Schema.Schema.Type<typeof OAuthLinkConfirmationStartBody>;
|
|
82
|
+
readonly request?: HttpServerRequest.HttpServerRequest;
|
|
83
|
+
}
|
|
84
|
+
export interface OAuthLinkConfirmationStartedHttpInput extends OAuthLinkConfirmationStartHttpInput {
|
|
85
|
+
readonly started: StartedOAuthLinkConfirmation;
|
|
86
|
+
}
|
|
87
|
+
export interface OAuthLinkConfirmationCurrentUserHttpInput {
|
|
88
|
+
readonly payload: Schema.Schema.Type<typeof OAuthLinkConfirmationConfirmBody>;
|
|
89
|
+
readonly request?: HttpServerRequest.HttpServerRequest;
|
|
90
|
+
}
|
|
91
|
+
export interface OAuthLinkConfirmationAfterConfirmHttpInput extends OAuthLinkConfirmationCurrentUserHttpInput {
|
|
92
|
+
readonly confirmed: ConfirmedOAuthLinkConfirmation;
|
|
93
|
+
}
|
|
94
|
+
export interface OAuthLinkConfirmationStartHttpOptions {
|
|
95
|
+
readonly ttl?: Duration.Duration;
|
|
96
|
+
readonly startInput?: (input: OAuthLinkConfirmationStartHttpInput) => Effect.Effect<OAuthLinkConfirmationStartInput, unknown>;
|
|
97
|
+
readonly onStarted?: (input: OAuthLinkConfirmationStartedHttpInput) => Effect.Effect<void, unknown>;
|
|
98
|
+
}
|
|
99
|
+
export interface OAuthLinkConfirmationConfirmHttpOptions {
|
|
100
|
+
readonly currentUserId?: (input: OAuthLinkConfirmationCurrentUserHttpInput) => Effect.Effect<UserId | undefined, unknown>;
|
|
101
|
+
readonly linkAfterConfirm?: (input: OAuthLinkConfirmationAfterConfirmHttpInput) => Effect.Effect<void, unknown>;
|
|
102
|
+
}
|
|
103
|
+
export declare const oauthAuthorizationStartInput: (payload: Schema.Schema.Type<typeof OAuthAuthorizationStartBody>, provider: OAuthProviderConfig, options?: OAuthAuthorizationStartHttpOptions) => OAuthAuthorizationStartInput;
|
|
104
|
+
export declare const oauthAuthorizationStartedHttpBody: (started: StartedOAuthAuthorization) => {
|
|
105
|
+
redirectUri: string;
|
|
106
|
+
scopes: readonly string[];
|
|
107
|
+
nonce?: import("../OAuth.js").OAuthNonce | undefined;
|
|
108
|
+
providerId: OAuthProviderId;
|
|
109
|
+
authorizationUrl: string;
|
|
110
|
+
state: import("../OAuth.js").OAuthStateToken;
|
|
111
|
+
challengeId: import("../Identifiers.js").ChallengeId;
|
|
112
|
+
expiresAt: UnixMillis;
|
|
113
|
+
codeChallenge: import("../OAuth.js").OAuthCodeChallenge;
|
|
114
|
+
codeChallengeMethod: "S256";
|
|
115
|
+
};
|
|
116
|
+
export declare const oauthLinkConfirmationStartInput: (payload: Schema.Schema.Type<typeof OAuthLinkConfirmationStartBody>, options?: Pick<OAuthLinkConfirmationStartHttpOptions, "ttl">) => Effect.Effect<OAuthLinkConfirmationStartInput, AuthBadRequestError>;
|
|
117
|
+
export declare const oauthLinkConfirmationInspectInput: (payload: Schema.Schema.Type<typeof OAuthLinkConfirmationInspectBody>) => OAuthLinkConfirmationInspectInput;
|
|
118
|
+
export declare const oauthLinkConfirmationConfirmInput: (payload: Schema.Schema.Type<typeof OAuthLinkConfirmationConfirmBody>, currentUserId?: UserId) => OAuthLinkConfirmationConfirmInput;
|
|
119
|
+
export declare const oauthLinkConfirmationStartedHttpBody: (started: StartedOAuthLinkConfirmation) => Schema.Schema.Type<typeof OAuthLinkConfirmationStartedBody>;
|
|
120
|
+
export declare const oauthLinkConfirmationPendingHttpBody: (pending: PendingOAuthLinkConfirmation) => Schema.Schema.Type<typeof OAuthLinkConfirmationPendingBody>;
|
|
121
|
+
export declare const oauthAuthorizationCallbackQueryPayload: (input: OAuthAuthorizationCallbackPayloadInput) => Effect.Effect<Schema.Schema.Type<typeof OAuthAuthorizationCallbackBody>, AuthBadRequestError>;
|
|
122
|
+
export declare const oauthAuthorizationCallbackFormPostPayload: (input: OAuthAuthorizationCallbackPayloadInput) => Effect.Effect<Schema.Schema.Type<typeof OAuthAuthorizationCallbackBody>, AuthBadRequestError>;
|
|
123
|
+
export declare const oauthAuthorizationCallbackInput: (payload: Schema.Schema.Type<typeof OAuthAuthorizationCallbackBody>, options: OAuthAuthorizationCallbackHttpOptions) => Effect.Effect<OAuthCallbackInput, AuthBadRequestError>;
|
|
124
|
+
export interface OAuthAccountUnlinkStepUpHttpInput {
|
|
125
|
+
readonly payload: Schema.Schema.Type<typeof OAuthAccountUnlinkBody>;
|
|
126
|
+
readonly session: ValidatedSession;
|
|
127
|
+
readonly request: HttpServerRequest.HttpServerRequest;
|
|
128
|
+
}
|
|
129
|
+
export interface OAuthAccountUnlinkAfterAllowHttpInput extends OAuthAccountUnlinkStepUpHttpInput {
|
|
130
|
+
readonly decision: Extract<OAuthAccountUnlinkingResolution, {
|
|
131
|
+
readonly type: "allow";
|
|
132
|
+
}>;
|
|
133
|
+
}
|
|
134
|
+
export interface OAuthAccountUnlinkHttpOptions {
|
|
135
|
+
readonly stepUpSatisfied?: (input: OAuthAccountUnlinkStepUpHttpInput) => Effect.Effect<boolean, unknown>;
|
|
136
|
+
readonly unlinkAfterAllow?: (input: OAuthAccountUnlinkAfterAllowHttpInput) => Effect.Effect<void, unknown>;
|
|
137
|
+
}
|
|
138
|
+
export declare const oauthLinkConfirmationConfirmedHttpBody: (confirmed: ConfirmedOAuthLinkConfirmation, options?: {
|
|
139
|
+
readonly linked?: boolean;
|
|
140
|
+
}) => Schema.Schema.Type<typeof OAuthLinkConfirmationConfirmedBody>;
|
|
141
|
+
export declare const oauthAccountUnlinkResolutionHttpBody: (resolution: OAuthAccountUnlinkingResolution, options?: {
|
|
142
|
+
readonly unlinked?: boolean;
|
|
143
|
+
}) => Schema.Schema.Type<typeof OAuthAccountUnlinkResolutionBody>;
|
|
144
|
+
export interface PasskeyRegistrationStartHttpOptions {
|
|
145
|
+
readonly relyingParty: PasskeyRelyingParty;
|
|
146
|
+
readonly timeout?: number;
|
|
147
|
+
readonly pubKeyCredParams?: readonly PasskeyPublicKeyCredentialParameters[];
|
|
148
|
+
readonly authenticatorSelection?: PasskeyAuthenticatorSelection;
|
|
149
|
+
readonly attestation?: PasskeyAttestation;
|
|
150
|
+
}
|
|
151
|
+
export interface PasskeyAuthenticationStartHttpOptions {
|
|
152
|
+
readonly relyingPartyId: string;
|
|
153
|
+
readonly timeout?: number;
|
|
154
|
+
readonly userVerification?: PasskeyUserVerification;
|
|
155
|
+
}
|
|
156
|
+
export interface PasskeyFinishHttpOptions {
|
|
157
|
+
readonly relyingPartyId: string;
|
|
158
|
+
readonly expectedOrigin: string | readonly string[];
|
|
159
|
+
readonly requireUserVerification?: boolean;
|
|
160
|
+
}
|
|
161
|
+
export interface TotpEnrollmentStartHttpOptions {
|
|
162
|
+
readonly issuer: string;
|
|
163
|
+
readonly secretBytes?: number;
|
|
164
|
+
readonly algorithm?: TotpAlgorithm;
|
|
165
|
+
readonly digits?: number;
|
|
166
|
+
readonly period?: number;
|
|
167
|
+
}
|
|
168
|
+
export interface TotpCodeHttpOptions {
|
|
169
|
+
readonly window?: number;
|
|
170
|
+
}
|
|
171
|
+
export interface RecoveryCodeGenerateHttpOptions {
|
|
172
|
+
readonly count?: number;
|
|
173
|
+
readonly length?: number;
|
|
174
|
+
readonly groupSize?: number;
|
|
175
|
+
}
|
|
176
|
+
export declare const passkeyRegistrationStartInput: (payload: Schema.Schema.Type<typeof PasskeyRegistrationStartBody>, options: PasskeyRegistrationStartHttpOptions) => {
|
|
177
|
+
metadata?: {
|
|
178
|
+
readonly [x: string]: unknown;
|
|
179
|
+
} | undefined;
|
|
180
|
+
attestation?: PasskeyAttestation | undefined;
|
|
181
|
+
authenticatorSelection?: PasskeyAuthenticatorSelection | undefined;
|
|
182
|
+
pubKeyCredParams?: readonly PasskeyPublicKeyCredentialParameters[] | undefined;
|
|
183
|
+
timeout?: number | undefined;
|
|
184
|
+
relyingParty: PasskeyRelyingParty;
|
|
185
|
+
userId: string & import("effect/Brand").Brand<"auth/UserId">;
|
|
186
|
+
userName: string;
|
|
187
|
+
userDisplayName: string;
|
|
188
|
+
};
|
|
189
|
+
export declare const passkeyAuthenticationStartInput: (payload: Schema.Schema.Type<typeof PasskeyAuthenticationStartBody>, options: PasskeyAuthenticationStartHttpOptions) => {
|
|
190
|
+
metadata?: {
|
|
191
|
+
readonly [x: string]: unknown;
|
|
192
|
+
} | undefined;
|
|
193
|
+
userVerification?: PasskeyUserVerification | undefined;
|
|
194
|
+
timeout?: number | undefined;
|
|
195
|
+
userId?: (string & import("effect/Brand").Brand<"auth/UserId">) | undefined;
|
|
196
|
+
relyingPartyId: string;
|
|
197
|
+
};
|
|
198
|
+
export declare const passkeyMfaStartInput: (userId: UserId, payload: Schema.Schema.Type<typeof PasskeyMfaStartBody>, options: PasskeyAuthenticationStartHttpOptions) => PasskeyAuthenticationStartInput;
|
|
199
|
+
export declare const passkeyRegistrationFinishInput: (payload: Schema.Schema.Type<typeof PasskeyRegistrationFinishBody>, options: PasskeyFinishHttpOptions) => {
|
|
200
|
+
metadata?: {
|
|
201
|
+
readonly [x: string]: unknown;
|
|
202
|
+
} | undefined;
|
|
203
|
+
requireUserVerification?: boolean | undefined;
|
|
204
|
+
challengeId: string & import("effect/Brand").Brand<"auth/ChallengeId">;
|
|
205
|
+
userId: string & import("effect/Brand").Brand<"auth/UserId">;
|
|
206
|
+
response: {
|
|
207
|
+
readonly id: string;
|
|
208
|
+
readonly type: "public-key";
|
|
209
|
+
readonly response: {
|
|
210
|
+
readonly [x: string]: unknown;
|
|
211
|
+
};
|
|
212
|
+
readonly rawId?: string | undefined;
|
|
213
|
+
readonly authenticatorAttachment?: string | undefined;
|
|
214
|
+
readonly clientExtensionResults?: {
|
|
215
|
+
readonly [x: string]: unknown;
|
|
216
|
+
} | undefined;
|
|
217
|
+
};
|
|
218
|
+
relyingPartyId: string;
|
|
219
|
+
expectedOrigin: string | readonly string[];
|
|
220
|
+
};
|
|
221
|
+
export declare const passkeyAuthenticationFinishInput: (payload: Schema.Schema.Type<typeof PasskeyAuthenticationFinishBody>, options: PasskeyFinishHttpOptions) => {
|
|
222
|
+
metadata?: {
|
|
223
|
+
readonly [x: string]: unknown;
|
|
224
|
+
} | undefined;
|
|
225
|
+
requireUserVerification?: boolean | undefined;
|
|
226
|
+
relyingPartyId: string;
|
|
227
|
+
expectedOrigin: string | readonly string[];
|
|
228
|
+
userId?: (string & import("effect/Brand").Brand<"auth/UserId">) | undefined;
|
|
229
|
+
challengeId: string & import("effect/Brand").Brand<"auth/ChallengeId">;
|
|
230
|
+
response: {
|
|
231
|
+
readonly id: string;
|
|
232
|
+
readonly type: "public-key";
|
|
233
|
+
readonly response: {
|
|
234
|
+
readonly [x: string]: unknown;
|
|
235
|
+
};
|
|
236
|
+
readonly rawId?: string | undefined;
|
|
237
|
+
readonly authenticatorAttachment?: string | undefined;
|
|
238
|
+
readonly clientExtensionResults?: {
|
|
239
|
+
readonly [x: string]: unknown;
|
|
240
|
+
} | undefined;
|
|
241
|
+
};
|
|
242
|
+
};
|
|
243
|
+
export declare const passkeyMfaVerifyInput: (payload: Schema.Schema.Type<typeof PasskeyMfaVerifyBody>, options: PasskeyFinishHttpOptions) => {
|
|
244
|
+
metadata?: {
|
|
245
|
+
readonly [x: string]: unknown;
|
|
246
|
+
} | undefined;
|
|
247
|
+
requireUserVerification?: boolean | undefined;
|
|
248
|
+
relyingPartyId: string;
|
|
249
|
+
expectedOrigin: string | readonly string[];
|
|
250
|
+
userId?: (string & import("effect/Brand").Brand<"auth/UserId">) | undefined;
|
|
251
|
+
challengeId: string & import("effect/Brand").Brand<"auth/ChallengeId">;
|
|
252
|
+
response: {
|
|
253
|
+
readonly id: string;
|
|
254
|
+
readonly type: "public-key";
|
|
255
|
+
readonly response: {
|
|
256
|
+
readonly [x: string]: unknown;
|
|
257
|
+
};
|
|
258
|
+
readonly rawId?: string | undefined;
|
|
259
|
+
readonly authenticatorAttachment?: string | undefined;
|
|
260
|
+
readonly clientExtensionResults?: {
|
|
261
|
+
readonly [x: string]: unknown;
|
|
262
|
+
} | undefined;
|
|
263
|
+
};
|
|
264
|
+
};
|
|
265
|
+
export declare const passkeyCredentialRevokeInput: (userId: UserId, payload: Schema.Schema.Type<typeof PasskeyCredentialRevokeBody>) => {
|
|
266
|
+
reason?: string | undefined;
|
|
267
|
+
userId: UserId;
|
|
268
|
+
credentialId: PasskeyCredentialId;
|
|
269
|
+
};
|
|
270
|
+
export declare const totpEnrollmentStartInput: (userId: UserId, payload: Schema.Schema.Type<typeof TotpEnrollmentStartBody>, options: TotpEnrollmentStartHttpOptions) => TotpEnrollmentStartInput;
|
|
271
|
+
export declare const totpEnrollmentConfirmInput: (userId: UserId, payload: Schema.Schema.Type<typeof TotpEnrollmentConfirmBody>, options?: TotpCodeHttpOptions) => TotpEnrollmentConfirmInput;
|
|
272
|
+
export declare const totpVerifyInput: (userId: UserId, payload: Schema.Schema.Type<typeof TotpVerifyBody>, options?: TotpCodeHttpOptions) => TotpVerifyForUserInput;
|
|
273
|
+
export declare const totpFactorRevokeInput: (userId: UserId, payload: Schema.Schema.Type<typeof TotpFactorRevokeBody>) => TotpFactorManagementRevokeInput;
|
|
274
|
+
export declare const recoveryCodeGenerateInput: (userId: UserId, payload: Schema.Schema.Type<typeof RecoveryCodeGenerateBody>, options?: RecoveryCodeGenerateHttpOptions) => RecoveryCodeGenerateForUserInput;
|
|
275
|
+
export declare const recoveryCodeVerifyInput: (userId: UserId, payload: Schema.Schema.Type<typeof RecoveryCodeVerifyBody>) => RecoveryCodeVerifyForUserInput;
|
|
276
|
+
export declare const recoveryCodeRevokeInput: (userId: UserId, payload: Schema.Schema.Type<typeof RecoveryCodeRevokeBody>) => RecoveryCodeManagementRevokeInput;
|
|
277
|
+
export declare const apiKeyCreateInput: (userId: UserId, payload: Schema.Schema.Type<typeof ApiKeyCreateBody>) => ApiKeyCreateForUserInput;
|
|
278
|
+
export declare const apiKeyRevokeInput: (userId: UserId, payload: Schema.Schema.Type<typeof ApiKeyRevokeBody>) => ApiKeyManagementRevokeInput;
|
|
279
|
+
export interface RefreshTokenRefreshHttpPolicyInput {
|
|
280
|
+
readonly now: UnixMillis;
|
|
281
|
+
}
|
|
282
|
+
export interface RefreshTokenAccessTokenHttpInput extends RefreshTokenRefreshHttpPolicyInput {
|
|
283
|
+
readonly refreshToken: RefreshTokenInfo;
|
|
284
|
+
readonly previousToken: RefreshTokenInfo;
|
|
285
|
+
}
|
|
286
|
+
export interface RefreshTokenRefreshHttpOptions {
|
|
287
|
+
readonly refreshTokenExpiresAt: (input: RefreshTokenRefreshHttpPolicyInput) => UnixMillis;
|
|
288
|
+
readonly accessToken: (input: RefreshTokenAccessTokenHttpInput) => JwtIssueInput;
|
|
289
|
+
}
|
|
290
|
+
export declare const refreshTokenRefreshInput: (payload: Schema.Schema.Type<typeof RefreshTokenRefreshBody>, now: UnixMillis, expiresAt: UnixMillis) => RefreshTokenRotateInput;
|
|
291
|
+
export interface JwtIntrospectionHttpOptions {
|
|
292
|
+
readonly issuer?: string;
|
|
293
|
+
readonly audience?: JwtAudience;
|
|
294
|
+
readonly clockTolerance?: Duration.Duration;
|
|
295
|
+
}
|
|
296
|
+
export declare const jwtIntrospectInput: (payload: Schema.Schema.Type<typeof JwtIntrospectBody>, options?: JwtIntrospectionHttpOptions) => JwtVerifyInput;
|
|
297
|
+
export declare const jwtRevokeInput: (payload: Schema.Schema.Type<typeof JwtRevokeBody>) => JwtRevokeJwtIdInput;
|
|
298
|
+
export declare const totpMfaVerifyInput: (payload: Schema.Schema.Type<typeof TotpMfaVerifyBody>, options?: TotpCodeHttpOptions) => TotpVerifyForUserInput;
|
|
299
|
+
export declare const totpMfaVerifyForFlowInput: (userId: UserId, payload: Schema.Schema.Type<typeof TotpMfaVerifyForFlowBody>, options?: TotpCodeHttpOptions) => TotpVerifyForUserInput;
|
|
300
|
+
export declare const recoveryCodeMfaVerifyInput: (payload: Schema.Schema.Type<typeof RecoveryCodeMfaVerifyBody>) => RecoveryCodeVerifyForUserInput;
|
|
301
|
+
export declare const recoveryCodeMfaVerifyForFlowInput: (userId: UserId, payload: Schema.Schema.Type<typeof RecoveryCodeMfaVerifyForFlowBody>) => RecoveryCodeVerifyForUserInput;
|
|
302
|
+
export declare const stepUpTotpVerifyInput: (userId: UserId, payload: Schema.Schema.Type<typeof StepUpTotpVerifyBody>, options?: TotpCodeHttpOptions) => TotpVerifyForUserInput;
|
|
303
|
+
export declare const stepUpRecoveryCodeVerifyInput: (userId: UserId, payload: Schema.Schema.Type<typeof StepUpRecoveryCodeVerifyBody>) => RecoveryCodeVerifyForUserInput;
|
|
304
|
+
export declare const stepUpPasskeyStartInput: (userId: UserId, payload: Schema.Schema.Type<typeof StepUpPasskeyStartBody>, options: PasskeyAuthenticationStartHttpOptions) => PasskeyAuthenticationStartInput;
|
|
305
|
+
export declare const stepUpPasskeyVerifyInput: (userId: UserId, payload: Schema.Schema.Type<typeof StepUpPasskeyVerifyBody>, options: PasskeyFinishHttpOptions) => PasskeyAuthenticationFinishInput;
|
|
306
|
+
export interface LoginApprovalApproveInput {
|
|
307
|
+
readonly flowId: Schema.Schema.Type<typeof LoginApprovalApproveBody>["flowId"];
|
|
308
|
+
readonly approval: LoginApprovalVerifyInput;
|
|
309
|
+
readonly rememberDevice: boolean;
|
|
310
|
+
}
|
|
311
|
+
export declare const loginApprovalApproveInput: (payload: Schema.Schema.Type<typeof LoginApprovalApproveBody>) => LoginApprovalApproveInput;
|
|
312
|
+
export interface LoginApprovalStatusInput {
|
|
313
|
+
readonly flowId: Schema.Schema.Type<typeof LoginApprovalReviewStatusBody>["flowId"];
|
|
314
|
+
readonly approvalChallengeId: Schema.Schema.Type<typeof LoginApprovalReviewStatusBody>["approvalChallengeId"];
|
|
315
|
+
}
|
|
316
|
+
export declare const loginApprovalStatusInput: (payload: Schema.Schema.Type<typeof LoginApprovalReviewStatusBody>) => LoginApprovalStatusInput;
|
|
317
|
+
export interface LoginApprovalFinalizeHttpInput {
|
|
318
|
+
readonly flowId: Schema.Schema.Type<typeof LoginApprovalFinalizeBody>["flowId"];
|
|
319
|
+
readonly approvalChallengeId: Schema.Schema.Type<typeof LoginApprovalFinalizeBody>["approvalChallengeId"];
|
|
320
|
+
readonly rememberDevice: boolean;
|
|
321
|
+
}
|
|
322
|
+
export declare const loginApprovalFinalizeInput: (payload: Schema.Schema.Type<typeof LoginApprovalFinalizeBody>) => LoginApprovalFinalizeHttpInput;
|
|
323
|
+
export declare const loginNotificationReportInput: (payload: Schema.Schema.Type<typeof LoginNotificationReportBody>) => LoginNotificationReportInput;
|
|
324
|
+
export declare const stepUpAuthenticatedHttpBody: (session: CurrentSessionShape) => {
|
|
325
|
+
mfaVerifiedAt?: UnixMillis | undefined;
|
|
326
|
+
type: "authenticated";
|
|
327
|
+
expiresAt: number;
|
|
328
|
+
aal: import("../Sessions.js").AuthAssuranceLevel;
|
|
329
|
+
amr: readonly AuthMethodReference[];
|
|
330
|
+
} | {
|
|
331
|
+
claims: SessionClaims;
|
|
332
|
+
mfaVerifiedAt?: UnixMillis | undefined;
|
|
333
|
+
type: "authenticated";
|
|
334
|
+
expiresAt: number;
|
|
335
|
+
aal: import("../Sessions.js").AuthAssuranceLevel;
|
|
336
|
+
amr: readonly AuthMethodReference[];
|
|
337
|
+
};
|
|
338
|
+
export type PasswordSignInHandlerRequest = {
|
|
339
|
+
readonly payload: Schema.Schema.Type<typeof PasswordSignInBody>;
|
|
340
|
+
readonly request?: HttpServerRequest.HttpServerRequest;
|
|
341
|
+
};
|
|
342
|
+
export type PasswordSignUpHandlerRequest = {
|
|
343
|
+
readonly payload: Schema.Schema.Type<typeof PasswordSignUpBody>;
|
|
344
|
+
readonly request?: HttpServerRequest.HttpServerRequest;
|
|
345
|
+
};
|
|
346
|
+
export type PasswordResetStartHandlerRequest = {
|
|
347
|
+
readonly payload: Schema.Schema.Type<typeof PasswordResetStartBody>;
|
|
348
|
+
};
|
|
349
|
+
export type PasswordResetVerifyHandlerRequest = {
|
|
350
|
+
readonly payload: Schema.Schema.Type<typeof PasswordResetVerifyBody>;
|
|
351
|
+
};
|
|
352
|
+
export type PasswordSetHandlerRequest = {
|
|
353
|
+
readonly payload: Schema.Schema.Type<typeof PasswordSetBody>;
|
|
354
|
+
readonly request: HttpServerRequest.HttpServerRequest;
|
|
355
|
+
};
|
|
356
|
+
export type PasswordChangeHandlerRequest = {
|
|
357
|
+
readonly payload: Schema.Schema.Type<typeof PasswordChangeBody>;
|
|
358
|
+
readonly request: HttpServerRequest.HttpServerRequest;
|
|
359
|
+
};
|
|
360
|
+
export type SessionHandlerRequest = {
|
|
361
|
+
readonly request: HttpServerRequest.HttpServerRequest;
|
|
362
|
+
};
|
|
363
|
+
export type SessionRevokeHandlerRequest = {
|
|
364
|
+
readonly payload: Schema.Schema.Type<typeof SessionRevokeBody>;
|
|
365
|
+
readonly request: HttpServerRequest.HttpServerRequest;
|
|
366
|
+
};
|
|
367
|
+
export type LoginNotificationReportHandlerRequest = {
|
|
368
|
+
readonly payload: Schema.Schema.Type<typeof LoginNotificationReportBody>;
|
|
369
|
+
};
|
|
370
|
+
export type SecurityTimelineListHandlerRequest = {
|
|
371
|
+
readonly query: Schema.Schema.Type<typeof SecurityTimelineListQuery>;
|
|
372
|
+
readonly request: HttpServerRequest.HttpServerRequest;
|
|
373
|
+
};
|
|
374
|
+
export type TrustedDeviceListHandlerRequest = {
|
|
375
|
+
readonly request: HttpServerRequest.HttpServerRequest;
|
|
376
|
+
};
|
|
377
|
+
export type TrustedDeviceRevokeHandlerRequest = {
|
|
378
|
+
readonly payload: Schema.Schema.Type<typeof TrustedDeviceRevokeBody>;
|
|
379
|
+
readonly request: HttpServerRequest.HttpServerRequest;
|
|
380
|
+
};
|
|
381
|
+
export type EmailVerificationStartHandlerRequest = {
|
|
382
|
+
readonly payload: Schema.Schema.Type<typeof EmailVerificationStartBody>;
|
|
383
|
+
};
|
|
384
|
+
export type EmailVerificationVerifyHandlerRequest = {
|
|
385
|
+
readonly payload: Schema.Schema.Type<typeof EmailVerificationVerifyBody>;
|
|
386
|
+
readonly request: HttpServerRequest.HttpServerRequest;
|
|
387
|
+
};
|
|
388
|
+
export type EmailOtpStartHandlerRequest = {
|
|
389
|
+
readonly payload: Schema.Schema.Type<typeof EmailOtpStartBody>;
|
|
390
|
+
};
|
|
391
|
+
export type EmailOtpVerifyHandlerRequest = {
|
|
392
|
+
readonly payload: Schema.Schema.Type<typeof EmailOtpVerifyBody>;
|
|
393
|
+
readonly request?: HttpServerRequest.HttpServerRequest;
|
|
394
|
+
};
|
|
395
|
+
export type MagicLinkStartHandlerRequest = {
|
|
396
|
+
readonly payload: Schema.Schema.Type<typeof MagicLinkStartBody>;
|
|
397
|
+
};
|
|
398
|
+
export type MagicLinkVerifyHandlerRequest = {
|
|
399
|
+
readonly payload: Schema.Schema.Type<typeof MagicLinkVerifyBody>;
|
|
400
|
+
readonly request?: HttpServerRequest.HttpServerRequest;
|
|
401
|
+
};
|
|
402
|
+
export type OAuthAuthorizationStartHandlerRequest = {
|
|
403
|
+
readonly payload: Schema.Schema.Type<typeof OAuthAuthorizationStartBody>;
|
|
404
|
+
};
|
|
405
|
+
export type OAuthAccountUnlinkHandlerRequest = {
|
|
406
|
+
readonly payload: Schema.Schema.Type<typeof OAuthAccountUnlinkBody>;
|
|
407
|
+
readonly request: HttpServerRequest.HttpServerRequest;
|
|
408
|
+
};
|
|
409
|
+
export type OAuthLinkConfirmationStartHandlerRequest = {
|
|
410
|
+
readonly payload: Schema.Schema.Type<typeof OAuthLinkConfirmationStartBody>;
|
|
411
|
+
readonly request?: HttpServerRequest.HttpServerRequest;
|
|
412
|
+
};
|
|
413
|
+
export type OAuthLinkConfirmationInspectHandlerRequest = {
|
|
414
|
+
readonly payload: Schema.Schema.Type<typeof OAuthLinkConfirmationInspectBody>;
|
|
415
|
+
};
|
|
416
|
+
export type OAuthLinkConfirmationConfirmHandlerRequest = {
|
|
417
|
+
readonly payload: Schema.Schema.Type<typeof OAuthLinkConfirmationConfirmBody>;
|
|
418
|
+
readonly request?: HttpServerRequest.HttpServerRequest;
|
|
419
|
+
};
|
|
420
|
+
export type PasskeyRegistrationStartHandlerRequest = {
|
|
421
|
+
readonly payload: Schema.Schema.Type<typeof PasskeyRegistrationStartBody>;
|
|
422
|
+
};
|
|
423
|
+
export type PasskeyRegistrationFinishHandlerRequest = {
|
|
424
|
+
readonly payload: Schema.Schema.Type<typeof PasskeyRegistrationFinishBody>;
|
|
425
|
+
};
|
|
426
|
+
export type PasskeyAuthenticationStartHandlerRequest = {
|
|
427
|
+
readonly payload: Schema.Schema.Type<typeof PasskeyAuthenticationStartBody>;
|
|
428
|
+
};
|
|
429
|
+
export type PasskeyAuthenticationFinishHandlerRequest = {
|
|
430
|
+
readonly payload: Schema.Schema.Type<typeof PasskeyAuthenticationFinishBody>;
|
|
431
|
+
readonly request?: HttpServerRequest.HttpServerRequest;
|
|
432
|
+
};
|
|
433
|
+
export type PasskeyCredentialListHandlerRequest = {
|
|
434
|
+
readonly request: HttpServerRequest.HttpServerRequest;
|
|
435
|
+
};
|
|
436
|
+
export type PasskeyCredentialRevokeHandlerRequest = {
|
|
437
|
+
readonly payload: Schema.Schema.Type<typeof PasskeyCredentialRevokeBody>;
|
|
438
|
+
readonly request: HttpServerRequest.HttpServerRequest;
|
|
439
|
+
};
|
|
440
|
+
export type TotpEnrollmentStartHandlerRequest = {
|
|
441
|
+
readonly payload: Schema.Schema.Type<typeof TotpEnrollmentStartBody>;
|
|
442
|
+
readonly request: HttpServerRequest.HttpServerRequest;
|
|
443
|
+
};
|
|
444
|
+
export type TotpEnrollmentConfirmHandlerRequest = {
|
|
445
|
+
readonly payload: Schema.Schema.Type<typeof TotpEnrollmentConfirmBody>;
|
|
446
|
+
readonly request: HttpServerRequest.HttpServerRequest;
|
|
447
|
+
};
|
|
448
|
+
export type TotpVerifyHandlerRequest = {
|
|
449
|
+
readonly payload: Schema.Schema.Type<typeof TotpVerifyBody>;
|
|
450
|
+
readonly request: HttpServerRequest.HttpServerRequest;
|
|
451
|
+
};
|
|
452
|
+
export type TotpFactorListHandlerRequest = {
|
|
453
|
+
readonly request: HttpServerRequest.HttpServerRequest;
|
|
454
|
+
};
|
|
455
|
+
export type TotpFactorRevokeHandlerRequest = {
|
|
456
|
+
readonly payload: Schema.Schema.Type<typeof TotpFactorRevokeBody>;
|
|
457
|
+
readonly request: HttpServerRequest.HttpServerRequest;
|
|
458
|
+
};
|
|
459
|
+
export type RecoveryCodeGenerateHandlerRequest = {
|
|
460
|
+
readonly payload: Schema.Schema.Type<typeof RecoveryCodeGenerateBody>;
|
|
461
|
+
readonly request: HttpServerRequest.HttpServerRequest;
|
|
462
|
+
};
|
|
463
|
+
export type RecoveryCodeVerifyHandlerRequest = {
|
|
464
|
+
readonly payload: Schema.Schema.Type<typeof RecoveryCodeVerifyBody>;
|
|
465
|
+
readonly request: HttpServerRequest.HttpServerRequest;
|
|
466
|
+
};
|
|
467
|
+
export type RecoveryCodeListHandlerRequest = {
|
|
468
|
+
readonly request: HttpServerRequest.HttpServerRequest;
|
|
469
|
+
};
|
|
470
|
+
export type RecoveryCodeRevokeHandlerRequest = {
|
|
471
|
+
readonly payload: Schema.Schema.Type<typeof RecoveryCodeRevokeBody>;
|
|
472
|
+
readonly request: HttpServerRequest.HttpServerRequest;
|
|
473
|
+
};
|
|
474
|
+
export type ApiKeyCreateHandlerRequest = {
|
|
475
|
+
readonly payload: Schema.Schema.Type<typeof ApiKeyCreateBody>;
|
|
476
|
+
readonly request: HttpServerRequest.HttpServerRequest;
|
|
477
|
+
};
|
|
478
|
+
export type ApiKeyListHandlerRequest = {
|
|
479
|
+
readonly request: HttpServerRequest.HttpServerRequest;
|
|
480
|
+
};
|
|
481
|
+
export type ApiKeyRevokeHandlerRequest = {
|
|
482
|
+
readonly payload: Schema.Schema.Type<typeof ApiKeyRevokeBody>;
|
|
483
|
+
readonly request: HttpServerRequest.HttpServerRequest;
|
|
484
|
+
};
|
|
485
|
+
export type RefreshTokenRefreshHandlerRequest = {
|
|
486
|
+
readonly payload: Schema.Schema.Type<typeof RefreshTokenRefreshBody>;
|
|
487
|
+
};
|
|
488
|
+
export type JwtIntrospectHandlerRequest = {
|
|
489
|
+
readonly payload: Schema.Schema.Type<typeof JwtIntrospectBody>;
|
|
490
|
+
};
|
|
491
|
+
export type JwtRevokeHandlerRequest = {
|
|
492
|
+
readonly payload: Schema.Schema.Type<typeof JwtRevokeBody>;
|
|
493
|
+
};
|
|
494
|
+
export type TotpMfaVerifyHandlerRequest = {
|
|
495
|
+
readonly payload: Schema.Schema.Type<typeof TotpMfaVerifyBody>;
|
|
496
|
+
};
|
|
497
|
+
export type TotpMfaVerifyForFlowHandlerRequest = {
|
|
498
|
+
readonly payload: Schema.Schema.Type<typeof TotpMfaVerifyForFlowBody>;
|
|
499
|
+
};
|
|
500
|
+
export type MfaOptionsHandlerRequest = {
|
|
501
|
+
readonly payload: Schema.Schema.Type<typeof MfaOptionsBody>;
|
|
502
|
+
};
|
|
503
|
+
export type RecoveryCodeMfaVerifyHandlerRequest = {
|
|
504
|
+
readonly payload: Schema.Schema.Type<typeof RecoveryCodeMfaVerifyBody>;
|
|
505
|
+
};
|
|
506
|
+
export type RecoveryCodeMfaVerifyForFlowHandlerRequest = {
|
|
507
|
+
readonly payload: Schema.Schema.Type<typeof RecoveryCodeMfaVerifyForFlowBody>;
|
|
508
|
+
};
|
|
509
|
+
export type PasskeyMfaStartHandlerRequest = {
|
|
510
|
+
readonly payload: Schema.Schema.Type<typeof PasskeyMfaStartBody>;
|
|
511
|
+
};
|
|
512
|
+
export type PasskeyMfaVerifyHandlerRequest = {
|
|
513
|
+
readonly payload: Schema.Schema.Type<typeof PasskeyMfaVerifyBody>;
|
|
514
|
+
};
|
|
515
|
+
export type StepUpOptionsHandlerRequest = {
|
|
516
|
+
readonly request: HttpServerRequest.HttpServerRequest;
|
|
517
|
+
};
|
|
518
|
+
export type StepUpTotpVerifyHandlerRequest = {
|
|
519
|
+
readonly payload: Schema.Schema.Type<typeof StepUpTotpVerifyBody>;
|
|
520
|
+
readonly request: HttpServerRequest.HttpServerRequest;
|
|
521
|
+
};
|
|
522
|
+
export type StepUpRecoveryCodeVerifyHandlerRequest = {
|
|
523
|
+
readonly payload: Schema.Schema.Type<typeof StepUpRecoveryCodeVerifyBody>;
|
|
524
|
+
readonly request: HttpServerRequest.HttpServerRequest;
|
|
525
|
+
};
|
|
526
|
+
export type StepUpPasskeyStartHandlerRequest = {
|
|
527
|
+
readonly payload: Schema.Schema.Type<typeof StepUpPasskeyStartBody>;
|
|
528
|
+
readonly request: HttpServerRequest.HttpServerRequest;
|
|
529
|
+
};
|
|
530
|
+
export type StepUpPasskeyVerifyHandlerRequest = {
|
|
531
|
+
readonly payload: Schema.Schema.Type<typeof StepUpPasskeyVerifyBody>;
|
|
532
|
+
readonly request: HttpServerRequest.HttpServerRequest;
|
|
533
|
+
};
|
|
534
|
+
export interface PasskeyAuthenticationSessionContext {
|
|
535
|
+
readonly finished: FinishedPasskeyAuthentication;
|
|
536
|
+
readonly payload: Schema.Schema.Type<typeof PasskeyAuthenticationFinishBody>;
|
|
537
|
+
readonly request?: HttpServerRequest.HttpServerRequest;
|
|
538
|
+
}
|
|
539
|
+
export type LoginApprovalApproveHandlerRequest = {
|
|
540
|
+
readonly payload: Schema.Schema.Type<typeof LoginApprovalApproveBody>;
|
|
541
|
+
readonly request: HttpServerRequest.HttpServerRequest;
|
|
542
|
+
};
|
|
543
|
+
export type LoginApprovalStatusHandlerRequest = {
|
|
544
|
+
readonly payload: Schema.Schema.Type<typeof LoginApprovalReviewStatusBody>;
|
|
545
|
+
};
|
|
546
|
+
export type LoginApprovalFinalizeHandlerRequest = {
|
|
547
|
+
readonly payload: Schema.Schema.Type<typeof LoginApprovalFinalizeBody>;
|
|
548
|
+
readonly request: HttpServerRequest.HttpServerRequest;
|
|
549
|
+
};
|
|
550
|
+
export declare const makePasswordSignInHandler: (dependencies: {
|
|
551
|
+
readonly password: PasswordLoginService;
|
|
552
|
+
readonly authHttp: AuthHttpService;
|
|
553
|
+
readonly emailVerificationFlow?: EmailVerificationFlowService;
|
|
554
|
+
readonly authApiRateLimit?: AuthApiRateLimitService;
|
|
555
|
+
readonly trustedDeviceCookie?: TrustedDeviceCookieService;
|
|
556
|
+
}) => (args_0: PasswordSignInHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthRateLimitedError | import("./Transport.js").PasswordSignInHttpError, never>;
|
|
557
|
+
export declare const makePasswordSignUpHandler: (dependencies: {
|
|
558
|
+
readonly registration: PasswordRegistrationService;
|
|
559
|
+
readonly authHttp: AuthHttpService;
|
|
560
|
+
readonly emailVerificationFlow?: EmailVerificationFlowService;
|
|
561
|
+
readonly authApiRateLimit?: AuthApiRateLimitService;
|
|
562
|
+
}) => (args_0: PasswordSignUpHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthRateLimitedError | AuthEmailAlreadyRegisteredError | import("./Transport.js").PasswordSignUpHttpError, never>;
|
|
563
|
+
export declare const makePasswordResetStartHandler: (dependencies: {
|
|
564
|
+
readonly passwordReset: PasswordResetService;
|
|
565
|
+
readonly authApiRateLimit?: AuthApiRateLimitService;
|
|
566
|
+
}) => (args_0: PasswordResetStartHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthRateLimitedError | AuthInternalError, never>;
|
|
567
|
+
export declare const makePasswordResetVerifyHandler: (dependencies: {
|
|
568
|
+
readonly passwordReset: PasswordResetService;
|
|
569
|
+
}) => (args_0: PasswordResetVerifyHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthBadRequestError, never>;
|
|
570
|
+
export declare const makePasswordSetHandler: (dependencies: {
|
|
571
|
+
readonly passwordManagement: PasswordManagementService;
|
|
572
|
+
readonly sessions: SessionsService;
|
|
573
|
+
readonly sessionCookie: SessionCookieService;
|
|
574
|
+
}) => (args_0: PasswordSetHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthBadRequestError | AuthUnauthenticatedError | AuthInternalError, never>;
|
|
575
|
+
export declare const makePasswordChangeHandler: (dependencies: {
|
|
576
|
+
readonly passwordManagement: PasswordManagementService;
|
|
577
|
+
readonly sessions: SessionsService;
|
|
578
|
+
readonly sessionCookie: SessionCookieService;
|
|
579
|
+
}) => (args_0: PasswordChangeHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthBadRequestError | AuthUnauthenticatedError | AuthInternalError, never>;
|
|
580
|
+
export declare const makeCurrentSessionHandler: (dependencies: {
|
|
581
|
+
readonly sessions: SessionsService;
|
|
582
|
+
readonly sessionCookie: SessionCookieService;
|
|
583
|
+
readonly authHttp: AuthHttpService;
|
|
584
|
+
}) => (args_0: SessionHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthUnauthenticatedError | AuthInternalError, never>;
|
|
585
|
+
export declare const makeRefreshSessionHandler: (dependencies: {
|
|
586
|
+
readonly sessions: SessionsService;
|
|
587
|
+
readonly sessionCookie: SessionCookieService;
|
|
588
|
+
readonly authHttp: AuthHttpService;
|
|
589
|
+
}) => (args_0: SessionHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthUnauthenticatedError | AuthInternalError, never>;
|
|
590
|
+
export declare const makeLogoutHandler: (dependencies: {
|
|
591
|
+
readonly sessions: SessionsService;
|
|
592
|
+
readonly sessionCookie: SessionCookieService;
|
|
593
|
+
readonly authHttp: AuthHttpService;
|
|
594
|
+
}) => (args_0: SessionHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthInternalError, never>;
|
|
595
|
+
export declare const makeListSessionsHandler: (dependencies: {
|
|
596
|
+
readonly sessions: SessionsService;
|
|
597
|
+
readonly sessionCookie: SessionCookieService;
|
|
598
|
+
}) => (args_0: SessionHandlerRequest) => Effect.Effect<{
|
|
599
|
+
sessions: {
|
|
600
|
+
metadata?: Readonly<Record<string, unknown>> | undefined;
|
|
601
|
+
longitude?: number | undefined;
|
|
602
|
+
latitude?: number | undefined;
|
|
603
|
+
city?: string | undefined;
|
|
604
|
+
region?: string | undefined;
|
|
605
|
+
country?: string | undefined;
|
|
606
|
+
userAgent?: string | undefined;
|
|
607
|
+
ip?: string | undefined;
|
|
608
|
+
claims?: SessionClaims | undefined;
|
|
609
|
+
current: boolean;
|
|
610
|
+
mfaVerifiedAt?: UnixMillis | undefined;
|
|
611
|
+
expiresAt: UnixMillis;
|
|
612
|
+
aal: import("../Sessions.js").AuthAssuranceLevel;
|
|
613
|
+
amr: readonly AuthMethodReference[];
|
|
614
|
+
lastSeenAt?: UnixMillis | undefined;
|
|
615
|
+
sessionId: import("../Identifiers.js").SessionId;
|
|
616
|
+
userId: UserId;
|
|
617
|
+
createdAt: UnixMillis;
|
|
618
|
+
authTime: UnixMillis;
|
|
619
|
+
}[];
|
|
620
|
+
}, AuthUnauthenticatedError | AuthInternalError, never>;
|
|
621
|
+
export declare const makeRevokeSessionHandler: (dependencies: {
|
|
622
|
+
readonly sessions: SessionsService;
|
|
623
|
+
readonly sessionCookie: SessionCookieService;
|
|
624
|
+
readonly authHttp: AuthHttpService;
|
|
625
|
+
}) => (args_0: SessionRevokeHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthUnauthenticatedError | AuthInternalError, never>;
|
|
626
|
+
export declare const makeRevokeOtherSessionsHandler: (dependencies: {
|
|
627
|
+
readonly sessions: SessionsService;
|
|
628
|
+
readonly sessionCookie: SessionCookieService;
|
|
629
|
+
}) => (args_0: SessionHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthUnauthenticatedError | AuthInternalError, never>;
|
|
630
|
+
export declare const makeLoginNotificationReportHandler: (dependencies: {
|
|
631
|
+
readonly loginNotification?: LoginNotificationService;
|
|
632
|
+
}) => (args_0: LoginNotificationReportHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthBadRequestError | AuthPolicyDeniedError | AuthInternalError, never>;
|
|
633
|
+
export declare const securityTimelineEventHttpBody: (event: SecurityTimelineEvent) => {
|
|
634
|
+
metadata?: Readonly<Record<string, unknown>> | undefined;
|
|
635
|
+
request?: {
|
|
636
|
+
userAgentHash?: import("../Identifiers.js").UserAgentHash | undefined;
|
|
637
|
+
ipHash?: import("../Identifiers.js").IpHash | undefined;
|
|
638
|
+
} | undefined;
|
|
639
|
+
actor?: {
|
|
640
|
+
type: "anonymous";
|
|
641
|
+
} | {
|
|
642
|
+
sessionId?: import("../Identifiers.js").SessionId | undefined;
|
|
643
|
+
type: "user";
|
|
644
|
+
} | undefined;
|
|
645
|
+
eventId: import("../SecurityTimeline.js").SecurityTimelineEventId;
|
|
646
|
+
type: "auth.login.succeeded" | "auth.login.failed" | "auth.session.revoked" | "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.jwt.introspected" | "auth.jwt.revoked";
|
|
647
|
+
category: import("../SecurityTimeline.js").SecurityTimelineEventCategory;
|
|
648
|
+
severity: import("../SecurityTimeline.js").SecurityTimelineEventSeverity;
|
|
649
|
+
occurredAt: UnixMillis;
|
|
650
|
+
summary: string;
|
|
651
|
+
};
|
|
652
|
+
export declare const makeSecurityTimelineListHandler: (dependencies: {
|
|
653
|
+
readonly sessions: SessionsService;
|
|
654
|
+
readonly sessionCookie: SessionCookieService;
|
|
655
|
+
readonly securityTimeline: SecurityTimelineStoreService;
|
|
656
|
+
}) => (args_0: SecurityTimelineListHandlerRequest) => Effect.Effect<{
|
|
657
|
+
events: {
|
|
658
|
+
metadata?: Readonly<Record<string, unknown>> | undefined;
|
|
659
|
+
request?: {
|
|
660
|
+
userAgentHash?: import("../Identifiers.js").UserAgentHash | undefined;
|
|
661
|
+
ipHash?: import("../Identifiers.js").IpHash | undefined;
|
|
662
|
+
} | undefined;
|
|
663
|
+
actor?: {
|
|
664
|
+
type: "anonymous";
|
|
665
|
+
} | {
|
|
666
|
+
sessionId?: import("../Identifiers.js").SessionId | undefined;
|
|
667
|
+
type: "user";
|
|
668
|
+
} | undefined;
|
|
669
|
+
eventId: import("../SecurityTimeline.js").SecurityTimelineEventId;
|
|
670
|
+
type: "auth.login.succeeded" | "auth.login.failed" | "auth.session.revoked" | "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.jwt.introspected" | "auth.jwt.revoked";
|
|
671
|
+
category: import("../SecurityTimeline.js").SecurityTimelineEventCategory;
|
|
672
|
+
severity: import("../SecurityTimeline.js").SecurityTimelineEventSeverity;
|
|
673
|
+
occurredAt: UnixMillis;
|
|
674
|
+
summary: string;
|
|
675
|
+
}[];
|
|
676
|
+
}, AuthUnauthenticatedError | AuthInternalError, never>;
|
|
677
|
+
export declare const trustedDeviceHttpBody: (device: TrustedDeviceRecord) => {
|
|
678
|
+
metadata?: Readonly<Record<string, unknown>> | undefined;
|
|
679
|
+
deviceId: string;
|
|
680
|
+
createdAt: UnixMillis;
|
|
681
|
+
lastSeenAt: UnixMillis;
|
|
682
|
+
expiresAt: UnixMillis;
|
|
683
|
+
};
|
|
684
|
+
export declare const makeTrustedDeviceListHandler: (dependencies: {
|
|
685
|
+
readonly sessions: SessionsService;
|
|
686
|
+
readonly sessionCookie: SessionCookieService;
|
|
687
|
+
readonly trustedDevices: TrustedDeviceStoreService;
|
|
688
|
+
}) => (args_0: TrustedDeviceListHandlerRequest) => Effect.Effect<{
|
|
689
|
+
devices: {
|
|
690
|
+
metadata?: Readonly<Record<string, unknown>> | undefined;
|
|
691
|
+
deviceId: string;
|
|
692
|
+
createdAt: UnixMillis;
|
|
693
|
+
lastSeenAt: UnixMillis;
|
|
694
|
+
expiresAt: UnixMillis;
|
|
695
|
+
}[];
|
|
696
|
+
}, AuthUnauthenticatedError | AuthInternalError, never>;
|
|
697
|
+
export declare const makeTrustedDeviceRevokeHandler: (dependencies: {
|
|
698
|
+
readonly sessions: SessionsService;
|
|
699
|
+
readonly sessionCookie: SessionCookieService;
|
|
700
|
+
readonly trustedDevices: TrustedDeviceStoreService;
|
|
701
|
+
}) => (args_0: TrustedDeviceRevokeHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthUnauthenticatedError | AuthInternalError, never>;
|
|
702
|
+
export declare const makeEmailVerificationStartHandler: (dependencies: {
|
|
703
|
+
readonly emailVerificationFlow: EmailVerificationFlowService;
|
|
704
|
+
readonly authApiRateLimit?: AuthApiRateLimitService;
|
|
705
|
+
}) => (args_0: EmailVerificationStartHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthBadRequestError | AuthRateLimitedError | AuthInternalError, never>;
|
|
706
|
+
export declare const makeEmailVerificationVerifyHandler: (dependencies: {
|
|
707
|
+
readonly emailVerification: EmailVerificationService;
|
|
708
|
+
readonly sessions: SessionsService;
|
|
709
|
+
readonly sessionCookie: SessionCookieService;
|
|
710
|
+
}) => (args_0: EmailVerificationVerifyHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthBadRequestError | AuthInternalError, never>;
|
|
711
|
+
export declare const makeEmailOtpStartHandler: (dependencies: {
|
|
712
|
+
readonly emailOtp: EmailOtpLoginService;
|
|
713
|
+
readonly authApiRateLimit?: AuthApiRateLimitService;
|
|
714
|
+
}) => (args_0: EmailOtpStartHandlerRequest) => Effect.Effect<import("../EmailOtp.js").EmailOtpStarted, AuthRateLimitedError | AuthInternalError, never>;
|
|
715
|
+
export declare const makeEmailOtpVerifyHandler: (dependencies: {
|
|
716
|
+
readonly emailOtp: EmailOtpLoginService;
|
|
717
|
+
readonly authHttp: AuthHttpService;
|
|
718
|
+
readonly trustedDeviceCookie?: TrustedDeviceCookieService;
|
|
719
|
+
}) => (args_0: EmailOtpVerifyHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, import("./Transport.js").PasswordSignInHttpError, never>;
|
|
720
|
+
export declare const makeMagicLinkStartHandler: (dependencies: {
|
|
721
|
+
readonly magicLink: MagicLinkLoginService;
|
|
722
|
+
readonly authApiRateLimit?: AuthApiRateLimitService;
|
|
723
|
+
}) => (args_0: MagicLinkStartHandlerRequest) => Effect.Effect<{
|
|
724
|
+
email: Email;
|
|
725
|
+
expiresAt: UnixMillis;
|
|
726
|
+
}, AuthRateLimitedError | AuthInternalError, never>;
|
|
727
|
+
export declare const makeMagicLinkVerifyHandler: (dependencies: {
|
|
728
|
+
readonly magicLink: MagicLinkLoginService;
|
|
729
|
+
readonly authHttp: AuthHttpService;
|
|
730
|
+
readonly trustedDeviceCookie?: TrustedDeviceCookieService;
|
|
731
|
+
}) => (args_0: MagicLinkVerifyHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, import("./Transport.js").PasswordSignInHttpError, never>;
|
|
732
|
+
export declare const makeOAuthAuthorizationStartHandler: (dependencies: {
|
|
733
|
+
readonly oauthProviders: OAuthProvidersService;
|
|
734
|
+
readonly oauthState: OAuthStateService;
|
|
735
|
+
} & OAuthAuthorizationStartHttpOptions) => (args_0: OAuthAuthorizationStartHandlerRequest) => Effect.Effect<{
|
|
736
|
+
redirectUri: string;
|
|
737
|
+
scopes: readonly string[];
|
|
738
|
+
nonce?: import("../OAuth.js").OAuthNonce | undefined;
|
|
739
|
+
providerId: OAuthProviderId;
|
|
740
|
+
authorizationUrl: string;
|
|
741
|
+
state: import("../OAuth.js").OAuthStateToken;
|
|
742
|
+
challengeId: import("../Identifiers.js").ChallengeId;
|
|
743
|
+
expiresAt: UnixMillis;
|
|
744
|
+
codeChallenge: import("../OAuth.js").OAuthCodeChallenge;
|
|
745
|
+
codeChallengeMethod: "S256";
|
|
746
|
+
}, AuthBadRequestError | AuthInternalError, never>;
|
|
747
|
+
export declare const makeOAuthAccountUnlinkHandler: (dependencies: {
|
|
748
|
+
readonly oauthAccountUnlinking: OAuthAccountUnlinkingService;
|
|
749
|
+
readonly sessions: SessionsService;
|
|
750
|
+
readonly sessionCookie: SessionCookieService;
|
|
751
|
+
} & OAuthAccountUnlinkHttpOptions) => (args_0: OAuthAccountUnlinkHandlerRequest) => Effect.Effect<{
|
|
752
|
+
readonly type: "allow";
|
|
753
|
+
readonly reason: "owned-account";
|
|
754
|
+
readonly account: {
|
|
755
|
+
readonly accountId: string & import("effect/Brand").Brand<"auth/OAuthAccountId">;
|
|
756
|
+
readonly providerId: string & import("effect/Brand").Brand<"auth/OAuthProviderId">;
|
|
757
|
+
readonly providerAccountId: string;
|
|
758
|
+
};
|
|
759
|
+
readonly remainingAccounts: readonly {
|
|
760
|
+
readonly accountId: string & import("effect/Brand").Brand<"auth/OAuthAccountId">;
|
|
761
|
+
readonly providerId: string & import("effect/Brand").Brand<"auth/OAuthProviderId">;
|
|
762
|
+
readonly providerAccountId: string;
|
|
763
|
+
}[];
|
|
764
|
+
readonly unlinked: boolean;
|
|
765
|
+
} | {
|
|
766
|
+
readonly type: "requires-step-up";
|
|
767
|
+
readonly reason: "step-up-required";
|
|
768
|
+
readonly account: {
|
|
769
|
+
readonly accountId: string & import("effect/Brand").Brand<"auth/OAuthAccountId">;
|
|
770
|
+
readonly providerId: string & import("effect/Brand").Brand<"auth/OAuthProviderId">;
|
|
771
|
+
readonly providerAccountId: string;
|
|
772
|
+
};
|
|
773
|
+
readonly remainingAccounts: readonly {
|
|
774
|
+
readonly accountId: string & import("effect/Brand").Brand<"auth/OAuthAccountId">;
|
|
775
|
+
readonly providerId: string & import("effect/Brand").Brand<"auth/OAuthProviderId">;
|
|
776
|
+
readonly providerAccountId: string;
|
|
777
|
+
}[];
|
|
778
|
+
} | {
|
|
779
|
+
readonly type: "deny-not-found";
|
|
780
|
+
readonly reason: "provider-account-not-found";
|
|
781
|
+
readonly providerId: string & import("effect/Brand").Brand<"auth/OAuthProviderId">;
|
|
782
|
+
readonly providerAccountId: string;
|
|
783
|
+
} | {
|
|
784
|
+
readonly type: "deny-not-owner";
|
|
785
|
+
readonly reason: "provider-account-linked-to-different-user";
|
|
786
|
+
readonly providerId: string & import("effect/Brand").Brand<"auth/OAuthProviderId">;
|
|
787
|
+
readonly providerAccountId: string;
|
|
788
|
+
} | {
|
|
789
|
+
readonly type: "deny-last-account";
|
|
790
|
+
readonly reason: "last-linked-account";
|
|
791
|
+
readonly account: {
|
|
792
|
+
readonly accountId: string & import("effect/Brand").Brand<"auth/OAuthAccountId">;
|
|
793
|
+
readonly providerId: string & import("effect/Brand").Brand<"auth/OAuthProviderId">;
|
|
794
|
+
readonly providerAccountId: string;
|
|
795
|
+
};
|
|
796
|
+
}, AuthUnauthenticatedError | AuthInternalError, never>;
|
|
797
|
+
export declare const makeOAuthLinkConfirmationStartHandler: (dependencies: {
|
|
798
|
+
readonly oauthLinkConfirmation: OAuthLinkConfirmationService;
|
|
799
|
+
} & OAuthLinkConfirmationStartHttpOptions) => (args_0: OAuthLinkConfirmationStartHandlerRequest) => Effect.Effect<{
|
|
800
|
+
readonly challengeId: string & import("effect/Brand").Brand<"auth/ChallengeId">;
|
|
801
|
+
readonly userId: string & import("effect/Brand").Brand<"auth/UserId">;
|
|
802
|
+
readonly identity: {
|
|
803
|
+
readonly providerId: string & import("effect/Brand").Brand<"auth/OAuthProviderId">;
|
|
804
|
+
readonly providerAccountId: string;
|
|
805
|
+
readonly email?: (string & import("effect/Brand").Brand<"auth/Email">) | undefined;
|
|
806
|
+
readonly emailVerified?: boolean | undefined;
|
|
807
|
+
};
|
|
808
|
+
readonly reason: string;
|
|
809
|
+
readonly expiresAt: number & import("effect/Brand").Brand<"auth/UnixMillis">;
|
|
810
|
+
}, AuthBadRequestError | AuthUnauthenticatedError | AuthInternalError, never>;
|
|
811
|
+
export declare const makeOAuthLinkConfirmationInspectHandler: (dependencies: {
|
|
812
|
+
readonly oauthLinkConfirmation: OAuthLinkConfirmationService;
|
|
813
|
+
}) => (args_0: OAuthLinkConfirmationInspectHandlerRequest) => Effect.Effect<{
|
|
814
|
+
readonly challengeId: string & import("effect/Brand").Brand<"auth/ChallengeId">;
|
|
815
|
+
readonly userId: string & import("effect/Brand").Brand<"auth/UserId">;
|
|
816
|
+
readonly identity: {
|
|
817
|
+
readonly providerId: string & import("effect/Brand").Brand<"auth/OAuthProviderId">;
|
|
818
|
+
readonly providerAccountId: string;
|
|
819
|
+
readonly email?: (string & import("effect/Brand").Brand<"auth/Email">) | undefined;
|
|
820
|
+
readonly emailVerified?: boolean | undefined;
|
|
821
|
+
};
|
|
822
|
+
readonly reason: string;
|
|
823
|
+
readonly expiresAt: number & import("effect/Brand").Brand<"auth/UnixMillis">;
|
|
824
|
+
}, AuthBadRequestError | AuthInternalError, never>;
|
|
825
|
+
export declare const makeOAuthLinkConfirmationConfirmHandler: (dependencies: {
|
|
826
|
+
readonly oauthLinkConfirmation: OAuthLinkConfirmationService;
|
|
827
|
+
} & OAuthLinkConfirmationConfirmHttpOptions) => (args_0: OAuthLinkConfirmationConfirmHandlerRequest) => Effect.Effect<{
|
|
828
|
+
readonly challengeId: string & import("effect/Brand").Brand<"auth/ChallengeId">;
|
|
829
|
+
readonly userId: string & import("effect/Brand").Brand<"auth/UserId">;
|
|
830
|
+
readonly identity: {
|
|
831
|
+
readonly providerId: string & import("effect/Brand").Brand<"auth/OAuthProviderId">;
|
|
832
|
+
readonly providerAccountId: string;
|
|
833
|
+
readonly email?: (string & import("effect/Brand").Brand<"auth/Email">) | undefined;
|
|
834
|
+
readonly emailVerified?: boolean | undefined;
|
|
835
|
+
};
|
|
836
|
+
readonly reason: string;
|
|
837
|
+
readonly linked: boolean;
|
|
838
|
+
readonly existingAccount?: {
|
|
839
|
+
readonly accountId: string & import("effect/Brand").Brand<"auth/OAuthAccountId">;
|
|
840
|
+
readonly providerId: string & import("effect/Brand").Brand<"auth/OAuthProviderId">;
|
|
841
|
+
readonly providerAccountId: string;
|
|
842
|
+
} | undefined;
|
|
843
|
+
}, AuthBadRequestError | AuthUnauthenticatedError | AuthInternalError, never>;
|
|
844
|
+
export declare const makePasskeyRegistrationStartHandler: (dependencies: {
|
|
845
|
+
readonly passkeyOptions: PasskeyOptionsService;
|
|
846
|
+
} & PasskeyRegistrationStartHttpOptions) => (args_0: PasskeyRegistrationStartHandlerRequest) => Effect.Effect<import("../Passkey.js").StartedPasskeyRegistration, AuthInternalError, never>;
|
|
847
|
+
export declare const makePasskeyRegistrationFinishHandler: (dependencies: {
|
|
848
|
+
readonly passkeyVerification: PasskeyVerificationService;
|
|
849
|
+
} & PasskeyFinishHttpOptions) => (args_0: PasskeyRegistrationFinishHandlerRequest) => Effect.Effect<{
|
|
850
|
+
credentialId: PasskeyCredentialId;
|
|
851
|
+
}, AuthBadRequestError | AuthInternalError, never>;
|
|
852
|
+
export declare const makePasskeyAuthenticationStartHandler: (dependencies: {
|
|
853
|
+
readonly passkeyOptions: PasskeyOptionsService;
|
|
854
|
+
} & PasskeyAuthenticationStartHttpOptions) => (args_0: PasskeyAuthenticationStartHandlerRequest) => Effect.Effect<import("../Passkey.js").StartedPasskeyAuthentication, AuthInternalError, never>;
|
|
855
|
+
export declare const makePasskeyAuthenticationFinishHandler: (dependencies: {
|
|
856
|
+
readonly passkeyVerification: PasskeyVerificationService;
|
|
857
|
+
readonly sessions: SessionsService;
|
|
858
|
+
readonly authHttp: AuthHttpService;
|
|
859
|
+
readonly makeSessionInput: (context: PasskeyAuthenticationSessionContext) => SessionCreateInput;
|
|
860
|
+
} & PasskeyFinishHttpOptions) => (args_0: PasskeyAuthenticationFinishHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthBadRequestError | AuthInternalError, never>;
|
|
861
|
+
export declare const makePasskeyCredentialListHandler: (dependencies: {
|
|
862
|
+
readonly passkeyCredentialManagement: PasskeyCredentialManagementService;
|
|
863
|
+
readonly sessions: SessionsService;
|
|
864
|
+
readonly sessionCookie: SessionCookieService;
|
|
865
|
+
}) => (args_0: PasskeyCredentialListHandlerRequest) => Effect.Effect<{
|
|
866
|
+
credentials: {
|
|
867
|
+
metadata?: Readonly<Record<string, unknown>> | undefined;
|
|
868
|
+
revokedAt?: UnixMillis | undefined;
|
|
869
|
+
lastUsedAt?: UnixMillis | undefined;
|
|
870
|
+
createdAt: UnixMillis;
|
|
871
|
+
backedUp?: boolean | undefined;
|
|
872
|
+
transports?: readonly import("../Passkey.js").PasskeyTransport[] | undefined;
|
|
873
|
+
credentialId: PasskeyCredentialId;
|
|
874
|
+
}[];
|
|
875
|
+
}, AuthUnauthenticatedError | AuthInternalError, never>;
|
|
876
|
+
export declare const makePasskeyCredentialRevokeHandler: (dependencies: {
|
|
877
|
+
readonly passkeyCredentialManagement: PasskeyCredentialManagementService;
|
|
878
|
+
readonly sessions: SessionsService;
|
|
879
|
+
readonly sessionCookie: SessionCookieService;
|
|
880
|
+
}) => (args_0: PasskeyCredentialRevokeHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthBadRequestError | AuthUnauthenticatedError | AuthInternalError, never>;
|
|
881
|
+
export declare const makeTotpEnrollmentStartHandler: (dependencies: {
|
|
882
|
+
readonly totpFactorManagement: TotpFactorManagementService;
|
|
883
|
+
readonly sessions: SessionsService;
|
|
884
|
+
readonly sessionCookie: SessionCookieService;
|
|
885
|
+
} & TotpEnrollmentStartHttpOptions) => (args_0: TotpEnrollmentStartHandlerRequest) => Effect.Effect<{
|
|
886
|
+
factor: {
|
|
887
|
+
metadata?: Readonly<Record<string, unknown>> | undefined;
|
|
888
|
+
revokedAt?: UnixMillis | undefined;
|
|
889
|
+
lastUsedAt?: UnixMillis | undefined;
|
|
890
|
+
confirmedAt?: UnixMillis | undefined;
|
|
891
|
+
factorId: import("../Identifiers.js").CredentialId;
|
|
892
|
+
algorithm: TotpAlgorithm;
|
|
893
|
+
digits: number;
|
|
894
|
+
period: number;
|
|
895
|
+
createdAt: UnixMillis;
|
|
896
|
+
};
|
|
897
|
+
secret: import("../Totp.js").TotpSecret;
|
|
898
|
+
uri: string;
|
|
899
|
+
}, AuthBadRequestError | AuthUnauthenticatedError | AuthInternalError, never>;
|
|
900
|
+
export declare const makeTotpEnrollmentConfirmHandler: (dependencies: {
|
|
901
|
+
readonly totpFactorManagement: TotpFactorManagementService;
|
|
902
|
+
readonly sessions: SessionsService;
|
|
903
|
+
readonly sessionCookie: SessionCookieService;
|
|
904
|
+
} & TotpCodeHttpOptions) => (args_0: TotpEnrollmentConfirmHandlerRequest) => Effect.Effect<{
|
|
905
|
+
metadata?: Readonly<Record<string, unknown>> | undefined;
|
|
906
|
+
revokedAt?: UnixMillis | undefined;
|
|
907
|
+
lastUsedAt?: UnixMillis | undefined;
|
|
908
|
+
confirmedAt?: UnixMillis | undefined;
|
|
909
|
+
factorId: import("../Identifiers.js").CredentialId;
|
|
910
|
+
algorithm: TotpAlgorithm;
|
|
911
|
+
digits: number;
|
|
912
|
+
period: number;
|
|
913
|
+
createdAt: UnixMillis;
|
|
914
|
+
}, AuthBadRequestError | AuthUnauthenticatedError | AuthInternalError, never>;
|
|
915
|
+
export declare const makeTotpVerifyHandler: (dependencies: {
|
|
916
|
+
readonly totpFactorManagement: TotpFactorManagementService;
|
|
917
|
+
readonly sessions: SessionsService;
|
|
918
|
+
readonly sessionCookie: SessionCookieService;
|
|
919
|
+
} & TotpCodeHttpOptions) => (args_0: TotpVerifyHandlerRequest) => Effect.Effect<{
|
|
920
|
+
delta?: number | undefined;
|
|
921
|
+
factor?: {
|
|
922
|
+
metadata?: Readonly<Record<string, unknown>> | undefined;
|
|
923
|
+
revokedAt?: UnixMillis | undefined;
|
|
924
|
+
lastUsedAt?: UnixMillis | undefined;
|
|
925
|
+
confirmedAt?: UnixMillis | undefined;
|
|
926
|
+
factorId: import("../Identifiers.js").CredentialId;
|
|
927
|
+
algorithm: TotpAlgorithm;
|
|
928
|
+
digits: number;
|
|
929
|
+
period: number;
|
|
930
|
+
createdAt: UnixMillis;
|
|
931
|
+
} | undefined;
|
|
932
|
+
valid: boolean;
|
|
933
|
+
}, AuthUnauthenticatedError | AuthInternalError, never>;
|
|
934
|
+
export declare const makeTotpFactorListHandler: (dependencies: {
|
|
935
|
+
readonly totpFactorManagement: TotpFactorManagementService;
|
|
936
|
+
readonly sessions: SessionsService;
|
|
937
|
+
readonly sessionCookie: SessionCookieService;
|
|
938
|
+
}) => (args_0: TotpFactorListHandlerRequest) => Effect.Effect<{
|
|
939
|
+
factors: {
|
|
940
|
+
metadata?: Readonly<Record<string, unknown>> | undefined;
|
|
941
|
+
revokedAt?: UnixMillis | undefined;
|
|
942
|
+
lastUsedAt?: UnixMillis | undefined;
|
|
943
|
+
confirmedAt?: UnixMillis | undefined;
|
|
944
|
+
factorId: import("../Identifiers.js").CredentialId;
|
|
945
|
+
algorithm: TotpAlgorithm;
|
|
946
|
+
digits: number;
|
|
947
|
+
period: number;
|
|
948
|
+
createdAt: UnixMillis;
|
|
949
|
+
}[];
|
|
950
|
+
}, AuthUnauthenticatedError | AuthInternalError, never>;
|
|
951
|
+
export declare const makeTotpFactorRevokeHandler: (dependencies: {
|
|
952
|
+
readonly totpFactorManagement: TotpFactorManagementService;
|
|
953
|
+
readonly sessions: SessionsService;
|
|
954
|
+
readonly sessionCookie: SessionCookieService;
|
|
955
|
+
}) => (args_0: TotpFactorRevokeHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthBadRequestError | AuthUnauthenticatedError | AuthInternalError, never>;
|
|
956
|
+
export declare const makeRecoveryCodeGenerateHandler: (dependencies: {
|
|
957
|
+
readonly recoveryCodeManagement: RecoveryCodeManagementService;
|
|
958
|
+
readonly sessions: SessionsService;
|
|
959
|
+
readonly sessionCookie: SessionCookieService;
|
|
960
|
+
} & RecoveryCodeGenerateHttpOptions) => (args_0: RecoveryCodeGenerateHandlerRequest) => Effect.Effect<{
|
|
961
|
+
codes: import("../RecoveryCode.js").RecoveryCode[];
|
|
962
|
+
records: {
|
|
963
|
+
metadata?: Readonly<Record<string, unknown>> | undefined;
|
|
964
|
+
revokedAt?: UnixMillis | undefined;
|
|
965
|
+
usedAt?: UnixMillis | undefined;
|
|
966
|
+
codeId: import("../Identifiers.js").CredentialId;
|
|
967
|
+
createdAt: UnixMillis;
|
|
968
|
+
}[];
|
|
969
|
+
}, AuthBadRequestError | AuthUnauthenticatedError | AuthInternalError, never>;
|
|
970
|
+
export declare const makeRecoveryCodeVerifyHandler: (dependencies: {
|
|
971
|
+
readonly recoveryCodeManagement: RecoveryCodeManagementService;
|
|
972
|
+
readonly sessions: SessionsService;
|
|
973
|
+
readonly sessionCookie: SessionCookieService;
|
|
974
|
+
}) => (args_0: RecoveryCodeVerifyHandlerRequest) => Effect.Effect<{
|
|
975
|
+
code?: {
|
|
976
|
+
metadata?: Readonly<Record<string, unknown>> | undefined;
|
|
977
|
+
revokedAt?: UnixMillis | undefined;
|
|
978
|
+
usedAt?: UnixMillis | undefined;
|
|
979
|
+
codeId: import("../Identifiers.js").CredentialId;
|
|
980
|
+
createdAt: UnixMillis;
|
|
981
|
+
} | undefined;
|
|
982
|
+
valid: boolean;
|
|
983
|
+
}, AuthUnauthenticatedError | AuthInternalError, never>;
|
|
984
|
+
export declare const makeRecoveryCodeListHandler: (dependencies: {
|
|
985
|
+
readonly recoveryCodeManagement: RecoveryCodeManagementService;
|
|
986
|
+
readonly sessions: SessionsService;
|
|
987
|
+
readonly sessionCookie: SessionCookieService;
|
|
988
|
+
}) => (args_0: RecoveryCodeListHandlerRequest) => Effect.Effect<{
|
|
989
|
+
codes: {
|
|
990
|
+
metadata?: Readonly<Record<string, unknown>> | undefined;
|
|
991
|
+
revokedAt?: UnixMillis | undefined;
|
|
992
|
+
usedAt?: UnixMillis | undefined;
|
|
993
|
+
codeId: import("../Identifiers.js").CredentialId;
|
|
994
|
+
createdAt: UnixMillis;
|
|
995
|
+
}[];
|
|
996
|
+
}, AuthUnauthenticatedError | AuthInternalError, never>;
|
|
997
|
+
export declare const makeRecoveryCodeRevokeHandler: (dependencies: {
|
|
998
|
+
readonly recoveryCodeManagement: RecoveryCodeManagementService;
|
|
999
|
+
readonly sessions: SessionsService;
|
|
1000
|
+
readonly sessionCookie: SessionCookieService;
|
|
1001
|
+
}) => (args_0: RecoveryCodeRevokeHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthBadRequestError | AuthUnauthenticatedError | AuthInternalError, never>;
|
|
1002
|
+
export declare const makeApiKeyCreateHandler: (dependencies: {
|
|
1003
|
+
readonly apiKeyManagement: ApiKeyManagementService;
|
|
1004
|
+
readonly sessions: SessionsService;
|
|
1005
|
+
readonly sessionCookie: SessionCookieService;
|
|
1006
|
+
}) => (args_0: ApiKeyCreateHandlerRequest) => Effect.Effect<{
|
|
1007
|
+
secret: import("../ApiKey.js").ApiKeySecret;
|
|
1008
|
+
key: {
|
|
1009
|
+
metadata?: Readonly<Record<string, unknown>> | undefined;
|
|
1010
|
+
revokedAt?: UnixMillis | undefined;
|
|
1011
|
+
lastUsedAt?: UnixMillis | undefined;
|
|
1012
|
+
expiresAt?: UnixMillis | undefined;
|
|
1013
|
+
keyId: ApiKeyId;
|
|
1014
|
+
prefix: import("../ApiKey.js").ApiKeyPrefix;
|
|
1015
|
+
scopes: readonly string[];
|
|
1016
|
+
createdAt: UnixMillis;
|
|
1017
|
+
};
|
|
1018
|
+
}, AuthBadRequestError | AuthUnauthenticatedError | AuthInternalError, never>;
|
|
1019
|
+
export declare const makeApiKeyListHandler: (dependencies: {
|
|
1020
|
+
readonly apiKeyManagement: ApiKeyManagementService;
|
|
1021
|
+
readonly sessions: SessionsService;
|
|
1022
|
+
readonly sessionCookie: SessionCookieService;
|
|
1023
|
+
}) => (args_0: ApiKeyListHandlerRequest) => Effect.Effect<{
|
|
1024
|
+
keys: {
|
|
1025
|
+
metadata?: Readonly<Record<string, unknown>> | undefined;
|
|
1026
|
+
revokedAt?: UnixMillis | undefined;
|
|
1027
|
+
lastUsedAt?: UnixMillis | undefined;
|
|
1028
|
+
expiresAt?: UnixMillis | undefined;
|
|
1029
|
+
keyId: ApiKeyId;
|
|
1030
|
+
prefix: import("../ApiKey.js").ApiKeyPrefix;
|
|
1031
|
+
scopes: readonly string[];
|
|
1032
|
+
createdAt: UnixMillis;
|
|
1033
|
+
}[];
|
|
1034
|
+
}, AuthUnauthenticatedError | AuthInternalError, never>;
|
|
1035
|
+
export declare const makeApiKeyRevokeHandler: (dependencies: {
|
|
1036
|
+
readonly apiKeyManagement: ApiKeyManagementService;
|
|
1037
|
+
readonly sessions: SessionsService;
|
|
1038
|
+
readonly sessionCookie: SessionCookieService;
|
|
1039
|
+
}) => (args_0: ApiKeyRevokeHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthBadRequestError | AuthUnauthenticatedError | AuthInternalError, never>;
|
|
1040
|
+
export declare const makeRefreshTokenRefreshHandler: (dependencies: {
|
|
1041
|
+
readonly refreshTokenManagement: RefreshTokenManagementService;
|
|
1042
|
+
readonly jwtIssuer: JwtIssuerService;
|
|
1043
|
+
} & RefreshTokenRefreshHttpOptions) => (args_0: RefreshTokenRefreshHandlerRequest) => Effect.Effect<{
|
|
1044
|
+
refreshToken: string;
|
|
1045
|
+
refreshTokenRecord: {
|
|
1046
|
+
metadata?: Readonly<Record<string, unknown>> | undefined;
|
|
1047
|
+
reuseDetectedAt?: UnixMillis | undefined;
|
|
1048
|
+
revokedAt?: UnixMillis | undefined;
|
|
1049
|
+
replacedById?: import("../RefreshToken.js").RefreshTokenId | undefined;
|
|
1050
|
+
rotatedAt?: UnixMillis | undefined;
|
|
1051
|
+
lastUsedAt?: UnixMillis | undefined;
|
|
1052
|
+
tokenId: import("../RefreshToken.js").RefreshTokenId;
|
|
1053
|
+
familyId: import("../RefreshToken.js").RefreshTokenFamilyId;
|
|
1054
|
+
createdAt: UnixMillis;
|
|
1055
|
+
expiresAt: UnixMillis;
|
|
1056
|
+
};
|
|
1057
|
+
accessTokenExpiresAt?: UnixMillis | undefined;
|
|
1058
|
+
accessToken: import("../Jwt.js").JwtToken;
|
|
1059
|
+
}, AuthInvalidCredentialsError | AuthInternalError, never>;
|
|
1060
|
+
export declare const makeJwtIntrospectHandler: (dependencies: {
|
|
1061
|
+
readonly jwtRevocation: JwtRevocationService;
|
|
1062
|
+
} & JwtIntrospectionHttpOptions) => (args_0: JwtIntrospectHandlerRequest) => Effect.Effect<{
|
|
1063
|
+
readonly active: true;
|
|
1064
|
+
readonly header: {
|
|
1065
|
+
readonly typ: "JWT";
|
|
1066
|
+
readonly alg: "HS256" | "RS256" | "ES256" | "EdDSA";
|
|
1067
|
+
readonly kid: string;
|
|
1068
|
+
};
|
|
1069
|
+
readonly claims: {
|
|
1070
|
+
readonly [x: string]: unknown;
|
|
1071
|
+
};
|
|
1072
|
+
readonly key: {
|
|
1073
|
+
readonly keyId: string;
|
|
1074
|
+
readonly alg: "HS256" | "RS256" | "ES256" | "EdDSA";
|
|
1075
|
+
readonly status: "active" | "retired" | "disabled";
|
|
1076
|
+
readonly createdAt?: (number & import("effect/Brand").Brand<"auth/UnixMillis">) | undefined;
|
|
1077
|
+
readonly expiresAt?: (number & import("effect/Brand").Brand<"auth/UnixMillis">) | undefined;
|
|
1078
|
+
readonly metadata?: {
|
|
1079
|
+
readonly [x: string]: unknown;
|
|
1080
|
+
} | undefined;
|
|
1081
|
+
};
|
|
1082
|
+
readonly revoked: false;
|
|
1083
|
+
readonly jwtId?: string | undefined;
|
|
1084
|
+
readonly expiresAt?: (number & import("effect/Brand").Brand<"auth/UnixMillis">) | undefined;
|
|
1085
|
+
} | {
|
|
1086
|
+
readonly active: false;
|
|
1087
|
+
readonly reason: "expired" | "revoked" | "malformed" | "unsupported_alg" | "unknown_key" | "invalid_signature" | "not_yet_valid" | "issuer_mismatch" | "audience_mismatch";
|
|
1088
|
+
readonly jwtId?: string | undefined;
|
|
1089
|
+
readonly expiresAt?: (number & import("effect/Brand").Brand<"auth/UnixMillis">) | undefined;
|
|
1090
|
+
readonly revokedAt?: (number & import("effect/Brand").Brand<"auth/UnixMillis">) | undefined;
|
|
1091
|
+
readonly revokedReason?: string | undefined;
|
|
1092
|
+
}, AuthInternalError, never>;
|
|
1093
|
+
export declare const makeJwtRevokeHandler: (dependencies: {
|
|
1094
|
+
readonly jwtRevocation: JwtRevocationService;
|
|
1095
|
+
}) => (args_0: JwtRevokeHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthBadRequestError | AuthInternalError, never>;
|
|
1096
|
+
export declare const makeMfaOptionsHandler: (dependencies: {
|
|
1097
|
+
readonly authFlowState: AuthFlowStateService;
|
|
1098
|
+
readonly totpFactorManagement?: TotpFactorManagementService;
|
|
1099
|
+
readonly recoveryCodeManagement?: RecoveryCodeManagementService;
|
|
1100
|
+
readonly passkeyCredentialManagement?: PasskeyCredentialManagementService;
|
|
1101
|
+
}) => (args_0: MfaOptionsHandlerRequest) => Effect.Effect<{
|
|
1102
|
+
factors: {
|
|
1103
|
+
readonly type: "totp" | "backup-code" | "passkey";
|
|
1104
|
+
}[];
|
|
1105
|
+
}, AuthBadRequestError | AuthInternalError, never>;
|
|
1106
|
+
export declare const makeTotpMfaVerifyHandler: (dependencies: {
|
|
1107
|
+
readonly totpFactorManagement: TotpFactorManagementService;
|
|
1108
|
+
readonly authFlow: AuthFlowService;
|
|
1109
|
+
readonly authHttp: AuthHttpService;
|
|
1110
|
+
} & TotpCodeHttpOptions) => (args_0: TotpMfaVerifyHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthBadRequestError | AuthInvalidCredentialsError | AuthPolicyDeniedError | AuthInternalError, never>;
|
|
1111
|
+
export declare const makeTotpMfaVerifyForFlowHandler: (dependencies: {
|
|
1112
|
+
readonly totpFactorManagement: TotpFactorManagementService;
|
|
1113
|
+
readonly authFlowState: AuthFlowStateService;
|
|
1114
|
+
readonly authFlow: AuthFlowService;
|
|
1115
|
+
readonly authHttp: AuthHttpService;
|
|
1116
|
+
} & TotpCodeHttpOptions) => (args_0: TotpMfaVerifyForFlowHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthBadRequestError | AuthInvalidCredentialsError | AuthPolicyDeniedError | AuthInternalError, never>;
|
|
1117
|
+
export declare const makeRecoveryCodeMfaVerifyHandler: (dependencies: {
|
|
1118
|
+
readonly recoveryCodeManagement: RecoveryCodeManagementService;
|
|
1119
|
+
readonly authFlow: AuthFlowService;
|
|
1120
|
+
readonly authHttp: AuthHttpService;
|
|
1121
|
+
}) => (args_0: RecoveryCodeMfaVerifyHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthBadRequestError | AuthInvalidCredentialsError | AuthPolicyDeniedError | AuthInternalError, never>;
|
|
1122
|
+
export declare const makeRecoveryCodeMfaVerifyForFlowHandler: (dependencies: {
|
|
1123
|
+
readonly recoveryCodeManagement: RecoveryCodeManagementService;
|
|
1124
|
+
readonly authFlowState: AuthFlowStateService;
|
|
1125
|
+
readonly authFlow: AuthFlowService;
|
|
1126
|
+
readonly authHttp: AuthHttpService;
|
|
1127
|
+
}) => (args_0: RecoveryCodeMfaVerifyForFlowHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthBadRequestError | AuthInvalidCredentialsError | AuthPolicyDeniedError | AuthInternalError, never>;
|
|
1128
|
+
export declare const makePasskeyMfaStartHandler: (dependencies: {
|
|
1129
|
+
readonly passkeyOptions: PasskeyOptionsService;
|
|
1130
|
+
readonly authFlowState: AuthFlowStateService;
|
|
1131
|
+
} & PasskeyAuthenticationStartHttpOptions) => (args_0: PasskeyMfaStartHandlerRequest) => Effect.Effect<import("../Passkey.js").StartedPasskeyAuthentication, AuthBadRequestError | AuthInternalError, never>;
|
|
1132
|
+
export declare const makePasskeyMfaVerifyHandler: (dependencies: {
|
|
1133
|
+
readonly passkeyVerification: PasskeyVerificationService;
|
|
1134
|
+
readonly authFlow: AuthFlowService;
|
|
1135
|
+
readonly authHttp: AuthHttpService;
|
|
1136
|
+
} & PasskeyFinishHttpOptions) => (args_0: PasskeyMfaVerifyHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthBadRequestError | AuthPolicyDeniedError | AuthInternalError, never>;
|
|
1137
|
+
export declare const makeStepUpOptionsHandler: (dependencies: {
|
|
1138
|
+
readonly sessions: SessionsService;
|
|
1139
|
+
readonly sessionCookie: SessionCookieService;
|
|
1140
|
+
readonly totpFactorManagement?: TotpFactorManagementService;
|
|
1141
|
+
readonly recoveryCodeManagement?: RecoveryCodeManagementService;
|
|
1142
|
+
readonly passkeyCredentialManagement?: PasskeyCredentialManagementService;
|
|
1143
|
+
}) => (args_0: StepUpOptionsHandlerRequest) => Effect.Effect<{
|
|
1144
|
+
factors: {
|
|
1145
|
+
readonly type: "totp" | "backup-code" | "passkey";
|
|
1146
|
+
}[];
|
|
1147
|
+
}, AuthUnauthenticatedError | AuthInternalError, never>;
|
|
1148
|
+
export declare const makeStepUpTotpVerifyHandler: (dependencies: {
|
|
1149
|
+
readonly totpFactorManagement: TotpFactorManagementService;
|
|
1150
|
+
readonly sessions: SessionsService;
|
|
1151
|
+
readonly sessionCookie: SessionCookieService;
|
|
1152
|
+
} & TotpCodeHttpOptions) => (args_0: StepUpTotpVerifyHandlerRequest) => Effect.Effect<{
|
|
1153
|
+
mfaVerifiedAt?: UnixMillis | undefined;
|
|
1154
|
+
type: "authenticated";
|
|
1155
|
+
expiresAt: number;
|
|
1156
|
+
aal: import("../Sessions.js").AuthAssuranceLevel;
|
|
1157
|
+
amr: readonly AuthMethodReference[];
|
|
1158
|
+
}, AuthUnauthenticatedError | AuthInvalidCredentialsError | AuthInternalError, never>;
|
|
1159
|
+
export declare const makeStepUpRecoveryCodeVerifyHandler: (dependencies: {
|
|
1160
|
+
readonly recoveryCodeManagement: RecoveryCodeManagementService;
|
|
1161
|
+
readonly sessions: SessionsService;
|
|
1162
|
+
readonly sessionCookie: SessionCookieService;
|
|
1163
|
+
}) => (args_0: StepUpRecoveryCodeVerifyHandlerRequest) => Effect.Effect<{
|
|
1164
|
+
mfaVerifiedAt?: UnixMillis | undefined;
|
|
1165
|
+
type: "authenticated";
|
|
1166
|
+
expiresAt: number;
|
|
1167
|
+
aal: import("../Sessions.js").AuthAssuranceLevel;
|
|
1168
|
+
amr: readonly AuthMethodReference[];
|
|
1169
|
+
}, AuthUnauthenticatedError | AuthInvalidCredentialsError | AuthInternalError, never>;
|
|
1170
|
+
export declare const makeStepUpPasskeyStartHandler: (dependencies: {
|
|
1171
|
+
readonly passkeyOptions: PasskeyOptionsService;
|
|
1172
|
+
readonly sessions: SessionsService;
|
|
1173
|
+
readonly sessionCookie: SessionCookieService;
|
|
1174
|
+
} & PasskeyAuthenticationStartHttpOptions) => (args_0: StepUpPasskeyStartHandlerRequest) => Effect.Effect<import("../Passkey.js").StartedPasskeyAuthentication, AuthBadRequestError | AuthUnauthenticatedError | AuthInternalError, never>;
|
|
1175
|
+
export declare const makeStepUpPasskeyVerifyHandler: (dependencies: {
|
|
1176
|
+
readonly passkeyVerification: PasskeyVerificationService;
|
|
1177
|
+
readonly sessions: SessionsService;
|
|
1178
|
+
readonly sessionCookie: SessionCookieService;
|
|
1179
|
+
} & PasskeyFinishHttpOptions) => (args_0: StepUpPasskeyVerifyHandlerRequest) => Effect.Effect<{
|
|
1180
|
+
mfaVerifiedAt?: UnixMillis | undefined;
|
|
1181
|
+
type: "authenticated";
|
|
1182
|
+
expiresAt: number;
|
|
1183
|
+
aal: import("../Sessions.js").AuthAssuranceLevel;
|
|
1184
|
+
amr: readonly AuthMethodReference[];
|
|
1185
|
+
}, AuthBadRequestError | AuthUnauthenticatedError | AuthPolicyDeniedError | AuthInternalError, never>;
|
|
1186
|
+
export declare const makeLoginApprovalApproveHandler: (dependencies: {
|
|
1187
|
+
readonly loginApproval: LoginApprovalService;
|
|
1188
|
+
readonly authFlowState: AuthFlowStateService;
|
|
1189
|
+
readonly authFlow: AuthFlowService;
|
|
1190
|
+
readonly users: UserStoreService;
|
|
1191
|
+
readonly authHttp: AuthHttpService;
|
|
1192
|
+
readonly loginApprovalPendingCookie: LoginApprovalPendingCookieService;
|
|
1193
|
+
readonly trustedDevice?: TrustedDeviceService;
|
|
1194
|
+
readonly trustedDeviceCookie?: TrustedDeviceCookieService;
|
|
1195
|
+
}) => (args_0: LoginApprovalApproveHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthBadRequestError | AuthPolicyDeniedError | AuthInternalError, never>;
|
|
1196
|
+
export declare const makeLoginApprovalStatusHandler: (dependencies: {
|
|
1197
|
+
readonly loginApprovalReview?: LoginApprovalReviewService;
|
|
1198
|
+
}) => (args_0: LoginApprovalStatusHandlerRequest) => Effect.Effect<{
|
|
1199
|
+
status: import("../LoginApproval.js").LoginApprovalReviewStatus | "expired";
|
|
1200
|
+
expiresAt: UnixMillis;
|
|
1201
|
+
}, AuthBadRequestError | AuthPolicyDeniedError | AuthInternalError, never>;
|
|
1202
|
+
export declare const makeLoginApprovalFinalizeHandler: (dependencies: {
|
|
1203
|
+
readonly loginApprovalFinalize?: LoginApprovalFinalizeService;
|
|
1204
|
+
readonly authHttp: AuthHttpService;
|
|
1205
|
+
readonly loginApprovalPendingCookie: LoginApprovalPendingCookieService;
|
|
1206
|
+
readonly trustedDevice?: TrustedDeviceService;
|
|
1207
|
+
readonly trustedDeviceCookie?: TrustedDeviceCookieService;
|
|
1208
|
+
}) => (args_0: LoginApprovalFinalizeHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthPolicyDeniedError | AuthInternalError, never>;
|
|
1209
|
+
declare const PasswordApi_base: HttpApiGroup.HttpApiGroup<"password", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"signIn", "POST", "/auth/password/sign-in", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
1210
|
+
readonly email: Schema.brand<Schema.String, "auth/Email">;
|
|
1211
|
+
readonly password: Schema.String;
|
|
1212
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Union<readonly [Schema.Struct<{
|
|
1213
|
+
readonly type: Schema.Literal<"authenticated">;
|
|
1214
|
+
readonly expiresAt: Schema.Number;
|
|
1215
|
+
readonly aal: Schema.Literals<readonly ["aal1", "aal2", "aal3"]>;
|
|
1216
|
+
readonly amr: Schema.$Array<Schema.String>;
|
|
1217
|
+
readonly mfaVerifiedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
1218
|
+
readonly claims: Schema.optional<Schema.Struct<{
|
|
1219
|
+
readonly emailVerified: Schema.optional<Schema.Boolean>;
|
|
1220
|
+
readonly requirements: Schema.optional<Schema.$Array<Schema.String>>;
|
|
1221
|
+
}>>;
|
|
1222
|
+
}>, Schema.Struct<{
|
|
1223
|
+
readonly type: Schema.Literal<"requires_mfa">;
|
|
1224
|
+
readonly flowId: Schema.String;
|
|
1225
|
+
readonly factors: Schema.$Array<Schema.Struct<{
|
|
1226
|
+
readonly type: Schema.String;
|
|
1227
|
+
}>>;
|
|
1228
|
+
}>, Schema.Struct<{
|
|
1229
|
+
readonly type: Schema.Literal<"requires_email_verification">;
|
|
1230
|
+
readonly flowId: Schema.String;
|
|
1231
|
+
}>, Schema.Struct<{
|
|
1232
|
+
readonly type: Schema.Literal<"requires_login_approval">;
|
|
1233
|
+
readonly flowId: Schema.String;
|
|
1234
|
+
readonly approvalChallengeId: Schema.String;
|
|
1235
|
+
readonly channel: Schema.String;
|
|
1236
|
+
readonly sessionBinding: Schema.Literals<readonly ["originating-device", "approval-device", "none"]>;
|
|
1237
|
+
readonly sameDeviceRequired: Schema.Boolean;
|
|
1238
|
+
readonly reason: Schema.String;
|
|
1239
|
+
}>, Schema.Struct<{
|
|
1240
|
+
readonly type: Schema.Literal<"requires_passkey_enrollment">;
|
|
1241
|
+
readonly flowId: Schema.String;
|
|
1242
|
+
}>]>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthInvalidCredentialsError | typeof AuthPolicyDeniedError | typeof AuthRateLimitedError | typeof AuthInternalError>, AuthSchemaErrorMiddleware | AuthOriginCheckMiddleware | AuthRateLimitMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"signUp", "POST", "/auth/password/sign-up", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
1243
|
+
readonly email: Schema.brand<Schema.String, "auth/Email">;
|
|
1244
|
+
readonly password: Schema.String;
|
|
1245
|
+
readonly emailVerified: Schema.optional<Schema.Boolean>;
|
|
1246
|
+
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
1247
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Union<readonly [Schema.Struct<{
|
|
1248
|
+
readonly type: Schema.Literal<"authenticated">;
|
|
1249
|
+
readonly expiresAt: Schema.Number;
|
|
1250
|
+
readonly aal: Schema.Literals<readonly ["aal1", "aal2", "aal3"]>;
|
|
1251
|
+
readonly amr: Schema.$Array<Schema.String>;
|
|
1252
|
+
readonly mfaVerifiedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
1253
|
+
readonly claims: Schema.optional<Schema.Struct<{
|
|
1254
|
+
readonly emailVerified: Schema.optional<Schema.Boolean>;
|
|
1255
|
+
readonly requirements: Schema.optional<Schema.$Array<Schema.String>>;
|
|
1256
|
+
}>>;
|
|
1257
|
+
}>, Schema.Struct<{
|
|
1258
|
+
readonly type: Schema.Literal<"requires_mfa">;
|
|
1259
|
+
readonly flowId: Schema.String;
|
|
1260
|
+
readonly factors: Schema.$Array<Schema.Struct<{
|
|
1261
|
+
readonly type: Schema.String;
|
|
1262
|
+
}>>;
|
|
1263
|
+
}>, Schema.Struct<{
|
|
1264
|
+
readonly type: Schema.Literal<"requires_email_verification">;
|
|
1265
|
+
readonly flowId: Schema.String;
|
|
1266
|
+
}>, Schema.Struct<{
|
|
1267
|
+
readonly type: Schema.Literal<"requires_login_approval">;
|
|
1268
|
+
readonly flowId: Schema.String;
|
|
1269
|
+
readonly approvalChallengeId: Schema.String;
|
|
1270
|
+
readonly channel: Schema.String;
|
|
1271
|
+
readonly sessionBinding: Schema.Literals<readonly ["originating-device", "approval-device", "none"]>;
|
|
1272
|
+
readonly sameDeviceRequired: Schema.Boolean;
|
|
1273
|
+
readonly reason: Schema.String;
|
|
1274
|
+
}>, Schema.Struct<{
|
|
1275
|
+
readonly type: Schema.Literal<"requires_passkey_enrollment">;
|
|
1276
|
+
readonly flowId: Schema.String;
|
|
1277
|
+
}>]>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthPolicyDeniedError | typeof AuthRateLimitedError | typeof AuthEmailAlreadyRegisteredError | typeof AuthInternalError>, AuthSchemaErrorMiddleware | AuthOriginCheckMiddleware | AuthRateLimitMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"resetStart", "POST", "/auth/password/reset/start", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
1278
|
+
readonly email: Schema.brand<Schema.String, "auth/Email">;
|
|
1279
|
+
readonly secret: Schema.optional<Schema.String>;
|
|
1280
|
+
readonly locale: Schema.optional<Schema.String>;
|
|
1281
|
+
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
1282
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/unstable/httpapi/HttpApiSchema").NoContent>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthRateLimitedError | typeof AuthInternalError>, AuthSchemaErrorMiddleware | AuthOriginCheckMiddleware | AuthRateLimitMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"resetVerify", "POST", "/auth/password/reset/verify", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
1283
|
+
readonly challengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
|
|
1284
|
+
readonly secret: Schema.String;
|
|
1285
|
+
readonly password: Schema.String;
|
|
1286
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/unstable/httpapi/HttpApiSchema").NoContent>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthRateLimitedError | typeof AuthInternalError>, AuthSchemaErrorMiddleware | AuthOriginCheckMiddleware | AuthRateLimitMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"set", "POST", "/auth/password/set", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
1287
|
+
readonly password: Schema.String;
|
|
1288
|
+
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
1289
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/unstable/httpapi/HttpApiSchema").NoContent>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthInternalError>, AuthSchemaErrorMiddleware | AuthOriginCheckMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"change", "POST", "/auth/password/change", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
1290
|
+
readonly currentPassword: Schema.String;
|
|
1291
|
+
readonly newPassword: Schema.String;
|
|
1292
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/unstable/httpapi/HttpApiSchema").NoContent>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthInternalError>, AuthSchemaErrorMiddleware | AuthOriginCheckMiddleware, never>, false>;
|
|
1293
|
+
export declare class PasswordApi extends PasswordApi_base {
|
|
1294
|
+
}
|
|
1295
|
+
declare const SessionApi_base: HttpApiGroup.HttpApiGroup<"session", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"current", "GET", "/auth/session", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
1296
|
+
readonly type: Schema.Literal<"authenticated">;
|
|
1297
|
+
readonly userId: Schema.String;
|
|
1298
|
+
readonly sessionId: Schema.String;
|
|
1299
|
+
readonly authTime: Schema.Number;
|
|
1300
|
+
readonly expiresAt: Schema.Number;
|
|
1301
|
+
readonly aal: Schema.Literals<readonly ["aal1", "aal2", "aal3"]>;
|
|
1302
|
+
readonly amr: Schema.$Array<Schema.String>;
|
|
1303
|
+
readonly mfaVerifiedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
1304
|
+
readonly claims: Schema.optional<Schema.Struct<{
|
|
1305
|
+
readonly emailVerified: Schema.optional<Schema.Boolean>;
|
|
1306
|
+
readonly requirements: Schema.optional<Schema.$Array<Schema.String>>;
|
|
1307
|
+
}>>;
|
|
1308
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthUnauthenticatedError | typeof AuthInternalError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"list", "GET", "/auth/sessions", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
1309
|
+
readonly sessions: Schema.$Array<Schema.Struct<{
|
|
1310
|
+
readonly sessionId: Schema.brand<Schema.String, "auth/SessionId">;
|
|
1311
|
+
readonly userId: Schema.brand<Schema.String, "auth/UserId">;
|
|
1312
|
+
readonly createdAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
1313
|
+
readonly authTime: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
1314
|
+
readonly lastSeenAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
1315
|
+
readonly expiresAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
1316
|
+
readonly aal: Schema.Literals<readonly ["aal1", "aal2", "aal3"]>;
|
|
1317
|
+
readonly amr: Schema.$Array<Schema.String>;
|
|
1318
|
+
readonly mfaVerifiedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
1319
|
+
readonly current: Schema.Boolean;
|
|
1320
|
+
readonly claims: Schema.optional<Schema.Struct<{
|
|
1321
|
+
readonly emailVerified: Schema.optional<Schema.Boolean>;
|
|
1322
|
+
readonly requirements: Schema.optional<Schema.$Array<Schema.String>>;
|
|
1323
|
+
}>>;
|
|
1324
|
+
readonly ip: Schema.optional<Schema.String>;
|
|
1325
|
+
readonly userAgent: Schema.optional<Schema.String>;
|
|
1326
|
+
readonly country: Schema.optional<Schema.String>;
|
|
1327
|
+
readonly region: Schema.optional<Schema.String>;
|
|
1328
|
+
readonly city: Schema.optional<Schema.String>;
|
|
1329
|
+
readonly latitude: Schema.optional<Schema.Number>;
|
|
1330
|
+
readonly longitude: Schema.optional<Schema.Number>;
|
|
1331
|
+
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
1332
|
+
}>>;
|
|
1333
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthUnauthenticatedError | typeof AuthInternalError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"refresh", "POST", "/auth/session/refresh", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
1334
|
+
readonly type: Schema.Literal<"authenticated">;
|
|
1335
|
+
readonly userId: Schema.String;
|
|
1336
|
+
readonly sessionId: Schema.String;
|
|
1337
|
+
readonly authTime: Schema.Number;
|
|
1338
|
+
readonly expiresAt: Schema.Number;
|
|
1339
|
+
readonly aal: Schema.Literals<readonly ["aal1", "aal2", "aal3"]>;
|
|
1340
|
+
readonly amr: Schema.$Array<Schema.String>;
|
|
1341
|
+
readonly mfaVerifiedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
1342
|
+
readonly claims: Schema.optional<Schema.Struct<{
|
|
1343
|
+
readonly emailVerified: Schema.optional<Schema.Boolean>;
|
|
1344
|
+
readonly requirements: Schema.optional<Schema.$Array<Schema.String>>;
|
|
1345
|
+
}>>;
|
|
1346
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthUnauthenticatedError | typeof AuthInternalError>, AuthOriginCheckMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"logout", "POST", "/auth/logout", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/unstable/httpapi/HttpApiSchema").NoContent>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthInternalError>, AuthOriginCheckMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"revoke", "POST", "/auth/sessions/revoke", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
1347
|
+
readonly sessionId: Schema.brand<Schema.String, "auth/SessionId">;
|
|
1348
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/unstable/httpapi/HttpApiSchema").NoContent>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthUnauthenticatedError | typeof AuthInternalError>, AuthOriginCheckMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"revokeOthers", "POST", "/auth/sessions/revoke-others", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/unstable/httpapi/HttpApiSchema").NoContent>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthUnauthenticatedError | typeof AuthInternalError>, AuthOriginCheckMiddleware, never>, false>;
|
|
1349
|
+
export declare class SessionApi extends SessionApi_base {
|
|
1350
|
+
}
|
|
1351
|
+
declare const EmailVerificationApi_base: HttpApiGroup.HttpApiGroup<"emailVerification", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verify", "POST", "/auth/email-verification/verify", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
1352
|
+
readonly challengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
|
|
1353
|
+
readonly secret: Schema.optional<Schema.String>;
|
|
1354
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/unstable/httpapi/HttpApiSchema").NoContent>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthInternalError>, AuthSchemaErrorMiddleware | AuthOriginCheckMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"start", "POST", "/auth/email-verification/start", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
1355
|
+
readonly userId: Schema.brand<Schema.String, "auth/UserId">;
|
|
1356
|
+
readonly email: Schema.brand<Schema.String, "auth/Email">;
|
|
1357
|
+
readonly secret: Schema.optional<Schema.String>;
|
|
1358
|
+
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
1359
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/unstable/httpapi/HttpApiSchema").NoContent>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthRateLimitedError | typeof AuthInternalError>, AuthSchemaErrorMiddleware | AuthOriginCheckMiddleware | AuthRateLimitMiddleware, never>, false>;
|
|
1360
|
+
export declare class EmailVerificationApi extends EmailVerificationApi_base {
|
|
1361
|
+
}
|
|
1362
|
+
declare const EmailOtpApi_base: HttpApiGroup.HttpApiGroup<"emailOtp", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"start", "POST", "/auth/email-otp/start", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
1363
|
+
readonly email: Schema.brand<Schema.String, "auth/Email">;
|
|
1364
|
+
readonly secret: Schema.optional<Schema.String>;
|
|
1365
|
+
readonly locale: Schema.optional<Schema.String>;
|
|
1366
|
+
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
1367
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
1368
|
+
readonly challengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
|
|
1369
|
+
readonly email: Schema.brand<Schema.String, "auth/Email">;
|
|
1370
|
+
readonly expiresAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
1371
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthRateLimitedError | typeof AuthInternalError>, AuthSchemaErrorMiddleware | AuthOriginCheckMiddleware | AuthRateLimitMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verify", "POST", "/auth/email-otp/verify", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
1372
|
+
readonly challengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
|
|
1373
|
+
readonly secret: Schema.String;
|
|
1374
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Union<readonly [Schema.Struct<{
|
|
1375
|
+
readonly type: Schema.Literal<"authenticated">;
|
|
1376
|
+
readonly expiresAt: Schema.Number;
|
|
1377
|
+
readonly aal: Schema.Literals<readonly ["aal1", "aal2", "aal3"]>;
|
|
1378
|
+
readonly amr: Schema.$Array<Schema.String>;
|
|
1379
|
+
readonly mfaVerifiedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
1380
|
+
readonly claims: Schema.optional<Schema.Struct<{
|
|
1381
|
+
readonly emailVerified: Schema.optional<Schema.Boolean>;
|
|
1382
|
+
readonly requirements: Schema.optional<Schema.$Array<Schema.String>>;
|
|
1383
|
+
}>>;
|
|
1384
|
+
}>, Schema.Struct<{
|
|
1385
|
+
readonly type: Schema.Literal<"requires_mfa">;
|
|
1386
|
+
readonly flowId: Schema.String;
|
|
1387
|
+
readonly factors: Schema.$Array<Schema.Struct<{
|
|
1388
|
+
readonly type: Schema.String;
|
|
1389
|
+
}>>;
|
|
1390
|
+
}>, Schema.Struct<{
|
|
1391
|
+
readonly type: Schema.Literal<"requires_email_verification">;
|
|
1392
|
+
readonly flowId: Schema.String;
|
|
1393
|
+
}>, Schema.Struct<{
|
|
1394
|
+
readonly type: Schema.Literal<"requires_login_approval">;
|
|
1395
|
+
readonly flowId: Schema.String;
|
|
1396
|
+
readonly approvalChallengeId: Schema.String;
|
|
1397
|
+
readonly channel: Schema.String;
|
|
1398
|
+
readonly sessionBinding: Schema.Literals<readonly ["originating-device", "approval-device", "none"]>;
|
|
1399
|
+
readonly sameDeviceRequired: Schema.Boolean;
|
|
1400
|
+
readonly reason: Schema.String;
|
|
1401
|
+
}>, Schema.Struct<{
|
|
1402
|
+
readonly type: Schema.Literal<"requires_passkey_enrollment">;
|
|
1403
|
+
readonly flowId: Schema.String;
|
|
1404
|
+
}>]>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthInvalidCredentialsError | typeof AuthPolicyDeniedError | typeof AuthRateLimitedError | typeof AuthInternalError>, AuthSchemaErrorMiddleware | AuthOriginCheckMiddleware | AuthRateLimitMiddleware, never>, false>;
|
|
1405
|
+
export declare class EmailOtpApi extends EmailOtpApi_base {
|
|
1406
|
+
}
|
|
1407
|
+
declare const MagicLinkApi_base: HttpApiGroup.HttpApiGroup<"magicLink", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"start", "POST", "/auth/magic-link/start", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
1408
|
+
readonly email: Schema.brand<Schema.String, "auth/Email">;
|
|
1409
|
+
readonly secret: Schema.optional<Schema.String>;
|
|
1410
|
+
readonly locale: Schema.optional<Schema.String>;
|
|
1411
|
+
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
1412
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
1413
|
+
readonly email: Schema.brand<Schema.String, "auth/Email">;
|
|
1414
|
+
readonly expiresAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
1415
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthRateLimitedError | typeof AuthInternalError>, AuthSchemaErrorMiddleware | AuthOriginCheckMiddleware | AuthRateLimitMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verify", "POST", "/auth/magic-link/verify", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
1416
|
+
readonly challengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
|
|
1417
|
+
readonly secret: Schema.String;
|
|
1418
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Union<readonly [Schema.Struct<{
|
|
1419
|
+
readonly type: Schema.Literal<"authenticated">;
|
|
1420
|
+
readonly expiresAt: Schema.Number;
|
|
1421
|
+
readonly aal: Schema.Literals<readonly ["aal1", "aal2", "aal3"]>;
|
|
1422
|
+
readonly amr: Schema.$Array<Schema.String>;
|
|
1423
|
+
readonly mfaVerifiedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
1424
|
+
readonly claims: Schema.optional<Schema.Struct<{
|
|
1425
|
+
readonly emailVerified: Schema.optional<Schema.Boolean>;
|
|
1426
|
+
readonly requirements: Schema.optional<Schema.$Array<Schema.String>>;
|
|
1427
|
+
}>>;
|
|
1428
|
+
}>, Schema.Struct<{
|
|
1429
|
+
readonly type: Schema.Literal<"requires_mfa">;
|
|
1430
|
+
readonly flowId: Schema.String;
|
|
1431
|
+
readonly factors: Schema.$Array<Schema.Struct<{
|
|
1432
|
+
readonly type: Schema.String;
|
|
1433
|
+
}>>;
|
|
1434
|
+
}>, Schema.Struct<{
|
|
1435
|
+
readonly type: Schema.Literal<"requires_email_verification">;
|
|
1436
|
+
readonly flowId: Schema.String;
|
|
1437
|
+
}>, Schema.Struct<{
|
|
1438
|
+
readonly type: Schema.Literal<"requires_login_approval">;
|
|
1439
|
+
readonly flowId: Schema.String;
|
|
1440
|
+
readonly approvalChallengeId: Schema.String;
|
|
1441
|
+
readonly channel: Schema.String;
|
|
1442
|
+
readonly sessionBinding: Schema.Literals<readonly ["originating-device", "approval-device", "none"]>;
|
|
1443
|
+
readonly sameDeviceRequired: Schema.Boolean;
|
|
1444
|
+
readonly reason: Schema.String;
|
|
1445
|
+
}>, Schema.Struct<{
|
|
1446
|
+
readonly type: Schema.Literal<"requires_passkey_enrollment">;
|
|
1447
|
+
readonly flowId: Schema.String;
|
|
1448
|
+
}>]>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthInvalidCredentialsError | typeof AuthPolicyDeniedError | typeof AuthRateLimitedError | typeof AuthInternalError>, AuthSchemaErrorMiddleware | AuthOriginCheckMiddleware | AuthRateLimitMiddleware, never>, false>;
|
|
1449
|
+
export declare class MagicLinkApi extends MagicLinkApi_base {
|
|
1450
|
+
}
|
|
1451
|
+
declare const OAuthApi_base: HttpApiGroup.HttpApiGroup<"oauth", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"startAuthorization", "POST", "/auth/oauth/start", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
1452
|
+
readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
|
|
1453
|
+
readonly redirectUri: Schema.optional<Schema.String>;
|
|
1454
|
+
readonly scopes: Schema.optional<Schema.$Array<Schema.String>>;
|
|
1455
|
+
readonly authorizationParams: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
1456
|
+
readonly codeVerifier: Schema.optional<Schema.String>;
|
|
1457
|
+
readonly includeNonce: Schema.optional<Schema.Boolean>;
|
|
1458
|
+
readonly nonce: Schema.optional<Schema.String>;
|
|
1459
|
+
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
1460
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
1461
|
+
readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
|
|
1462
|
+
readonly authorizationUrl: Schema.String;
|
|
1463
|
+
readonly state: Schema.String;
|
|
1464
|
+
readonly challengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
|
|
1465
|
+
readonly expiresAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
1466
|
+
readonly codeChallenge: Schema.String;
|
|
1467
|
+
readonly codeChallengeMethod: Schema.Literal<"S256">;
|
|
1468
|
+
readonly nonce: Schema.optional<Schema.String>;
|
|
1469
|
+
readonly redirectUri: Schema.String;
|
|
1470
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
1471
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthInternalError>, AuthSchemaErrorMiddleware | AuthOriginCheckMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"unlinkAccount", "POST", "/auth/oauth/unlink", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
1472
|
+
readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
|
|
1473
|
+
readonly providerAccountId: Schema.String;
|
|
1474
|
+
readonly reason: Schema.optional<Schema.String>;
|
|
1475
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Union<readonly [Schema.Struct<{
|
|
1476
|
+
readonly type: Schema.Literal<"allow">;
|
|
1477
|
+
readonly reason: Schema.Literal<"owned-account">;
|
|
1478
|
+
readonly account: Schema.Struct<{
|
|
1479
|
+
readonly accountId: Schema.brand<Schema.String, "auth/OAuthAccountId">;
|
|
1480
|
+
readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
|
|
1481
|
+
readonly providerAccountId: Schema.String;
|
|
1482
|
+
}>;
|
|
1483
|
+
readonly remainingAccounts: Schema.$Array<Schema.Struct<{
|
|
1484
|
+
readonly accountId: Schema.brand<Schema.String, "auth/OAuthAccountId">;
|
|
1485
|
+
readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
|
|
1486
|
+
readonly providerAccountId: Schema.String;
|
|
1487
|
+
}>>;
|
|
1488
|
+
readonly unlinked: Schema.Boolean;
|
|
1489
|
+
}>, Schema.Struct<{
|
|
1490
|
+
readonly type: Schema.Literal<"requires-step-up">;
|
|
1491
|
+
readonly reason: Schema.Literal<"step-up-required">;
|
|
1492
|
+
readonly account: Schema.Struct<{
|
|
1493
|
+
readonly accountId: Schema.brand<Schema.String, "auth/OAuthAccountId">;
|
|
1494
|
+
readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
|
|
1495
|
+
readonly providerAccountId: Schema.String;
|
|
1496
|
+
}>;
|
|
1497
|
+
readonly remainingAccounts: Schema.$Array<Schema.Struct<{
|
|
1498
|
+
readonly accountId: Schema.brand<Schema.String, "auth/OAuthAccountId">;
|
|
1499
|
+
readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
|
|
1500
|
+
readonly providerAccountId: Schema.String;
|
|
1501
|
+
}>>;
|
|
1502
|
+
}>, Schema.Struct<{
|
|
1503
|
+
readonly type: Schema.Literal<"deny-not-found">;
|
|
1504
|
+
readonly reason: Schema.Literal<"provider-account-not-found">;
|
|
1505
|
+
readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
|
|
1506
|
+
readonly providerAccountId: Schema.String;
|
|
1507
|
+
}>, Schema.Struct<{
|
|
1508
|
+
readonly type: Schema.Literal<"deny-not-owner">;
|
|
1509
|
+
readonly reason: Schema.Literal<"provider-account-linked-to-different-user">;
|
|
1510
|
+
readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
|
|
1511
|
+
readonly providerAccountId: Schema.String;
|
|
1512
|
+
}>, Schema.Struct<{
|
|
1513
|
+
readonly type: Schema.Literal<"deny-last-account">;
|
|
1514
|
+
readonly reason: Schema.Literal<"last-linked-account">;
|
|
1515
|
+
readonly account: Schema.Struct<{
|
|
1516
|
+
readonly accountId: Schema.brand<Schema.String, "auth/OAuthAccountId">;
|
|
1517
|
+
readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
|
|
1518
|
+
readonly providerAccountId: Schema.String;
|
|
1519
|
+
}>;
|
|
1520
|
+
}>]>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthUnauthenticatedError | typeof AuthInternalError>, AuthSchemaErrorMiddleware | AuthOriginCheckMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"startLinkConfirmation", "POST", "/auth/oauth/link-confirmation/start", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
1521
|
+
readonly userId: Schema.optional<Schema.brand<Schema.String, "auth/UserId">>;
|
|
1522
|
+
readonly identity: Schema.optional<Schema.Struct<{
|
|
1523
|
+
readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
|
|
1524
|
+
readonly providerAccountId: Schema.String;
|
|
1525
|
+
readonly email: Schema.optional<Schema.brand<Schema.String, "auth/Email">>;
|
|
1526
|
+
readonly emailVerified: Schema.optional<Schema.Boolean>;
|
|
1527
|
+
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
1528
|
+
}>>;
|
|
1529
|
+
readonly reason: Schema.optional<Schema.String>;
|
|
1530
|
+
readonly secret: Schema.optional<Schema.String>;
|
|
1531
|
+
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
1532
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
1533
|
+
readonly challengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
|
|
1534
|
+
readonly userId: Schema.brand<Schema.String, "auth/UserId">;
|
|
1535
|
+
readonly identity: Schema.Struct<{
|
|
1536
|
+
readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
|
|
1537
|
+
readonly providerAccountId: Schema.String;
|
|
1538
|
+
readonly email: Schema.optional<Schema.brand<Schema.String, "auth/Email">>;
|
|
1539
|
+
readonly emailVerified: Schema.optional<Schema.Boolean>;
|
|
1540
|
+
}>;
|
|
1541
|
+
readonly reason: Schema.String;
|
|
1542
|
+
readonly expiresAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
1543
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthInternalError>, AuthSchemaErrorMiddleware | AuthOriginCheckMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"inspectLinkConfirmation", "POST", "/auth/oauth/link-confirmation/inspect", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
1544
|
+
readonly challengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
|
|
1545
|
+
readonly secret: Schema.optional<Schema.String>;
|
|
1546
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
1547
|
+
readonly challengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
|
|
1548
|
+
readonly userId: Schema.brand<Schema.String, "auth/UserId">;
|
|
1549
|
+
readonly identity: Schema.Struct<{
|
|
1550
|
+
readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
|
|
1551
|
+
readonly providerAccountId: Schema.String;
|
|
1552
|
+
readonly email: Schema.optional<Schema.brand<Schema.String, "auth/Email">>;
|
|
1553
|
+
readonly emailVerified: Schema.optional<Schema.Boolean>;
|
|
1554
|
+
}>;
|
|
1555
|
+
readonly reason: Schema.String;
|
|
1556
|
+
readonly expiresAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
1557
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthInternalError>, AuthSchemaErrorMiddleware | AuthOriginCheckMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"confirmLinkConfirmation", "POST", "/auth/oauth/link-confirmation/confirm", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
1558
|
+
readonly challengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
|
|
1559
|
+
readonly secret: Schema.optional<Schema.String>;
|
|
1560
|
+
readonly expectedProviderId: Schema.optional<Schema.brand<Schema.String, "auth/OAuthProviderId">>;
|
|
1561
|
+
readonly expectedProviderAccountId: Schema.optional<Schema.String>;
|
|
1562
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
1563
|
+
readonly challengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
|
|
1564
|
+
readonly userId: Schema.brand<Schema.String, "auth/UserId">;
|
|
1565
|
+
readonly identity: Schema.Struct<{
|
|
1566
|
+
readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
|
|
1567
|
+
readonly providerAccountId: Schema.String;
|
|
1568
|
+
readonly email: Schema.optional<Schema.brand<Schema.String, "auth/Email">>;
|
|
1569
|
+
readonly emailVerified: Schema.optional<Schema.Boolean>;
|
|
1570
|
+
}>;
|
|
1571
|
+
readonly reason: Schema.String;
|
|
1572
|
+
readonly existingAccount: Schema.optional<Schema.Struct<{
|
|
1573
|
+
readonly accountId: Schema.brand<Schema.String, "auth/OAuthAccountId">;
|
|
1574
|
+
readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
|
|
1575
|
+
readonly providerAccountId: Schema.String;
|
|
1576
|
+
}>>;
|
|
1577
|
+
readonly linked: Schema.Boolean;
|
|
1578
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthInternalError>, AuthSchemaErrorMiddleware | AuthOriginCheckMiddleware, never>, false>;
|
|
1579
|
+
export declare class OAuthApi extends OAuthApi_base {
|
|
1580
|
+
}
|
|
1581
|
+
declare const LoginApprovalApi_base: HttpApiGroup.HttpApiGroup<"loginApproval", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"approve", "POST", "/auth/login-approval/approve", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
1582
|
+
readonly flowId: Schema.brand<Schema.String, "auth/AuthFlowId">;
|
|
1583
|
+
readonly approvalChallengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
|
|
1584
|
+
readonly secret: Schema.optional<Schema.String>;
|
|
1585
|
+
readonly rememberDevice: Schema.optional<Schema.Boolean>;
|
|
1586
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
1587
|
+
readonly type: Schema.Literal<"authenticated">;
|
|
1588
|
+
readonly expiresAt: Schema.Number;
|
|
1589
|
+
readonly aal: Schema.Literals<readonly ["aal1", "aal2", "aal3"]>;
|
|
1590
|
+
readonly amr: Schema.$Array<Schema.String>;
|
|
1591
|
+
readonly mfaVerifiedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
1592
|
+
readonly claims: Schema.optional<Schema.Struct<{
|
|
1593
|
+
readonly emailVerified: Schema.optional<Schema.Boolean>;
|
|
1594
|
+
readonly requirements: Schema.optional<Schema.$Array<Schema.String>>;
|
|
1595
|
+
}>>;
|
|
1596
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthPolicyDeniedError | typeof AuthInternalError>, AuthSchemaErrorMiddleware | AuthOriginCheckMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"status", "POST", "/auth/login-approval/status", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
1597
|
+
readonly flowId: Schema.brand<Schema.String, "auth/AuthFlowId">;
|
|
1598
|
+
readonly approvalChallengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
|
|
1599
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
1600
|
+
readonly status: Schema.Literals<readonly ["pending", "approved", "denied", "expired"]>;
|
|
1601
|
+
readonly expiresAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
1602
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthPolicyDeniedError | typeof AuthInternalError>, AuthSchemaErrorMiddleware | AuthOriginCheckMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"finalize", "POST", "/auth/login-approval/finalize", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
1603
|
+
readonly flowId: Schema.brand<Schema.String, "auth/AuthFlowId">;
|
|
1604
|
+
readonly approvalChallengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
|
|
1605
|
+
readonly rememberDevice: Schema.optional<Schema.Boolean>;
|
|
1606
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
1607
|
+
readonly type: Schema.Literal<"authenticated">;
|
|
1608
|
+
readonly expiresAt: Schema.Number;
|
|
1609
|
+
readonly aal: Schema.Literals<readonly ["aal1", "aal2", "aal3"]>;
|
|
1610
|
+
readonly amr: Schema.$Array<Schema.String>;
|
|
1611
|
+
readonly mfaVerifiedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
1612
|
+
readonly claims: Schema.optional<Schema.Struct<{
|
|
1613
|
+
readonly emailVerified: Schema.optional<Schema.Boolean>;
|
|
1614
|
+
readonly requirements: Schema.optional<Schema.$Array<Schema.String>>;
|
|
1615
|
+
}>>;
|
|
1616
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthPolicyDeniedError | typeof AuthInternalError>, AuthSchemaErrorMiddleware | AuthOriginCheckMiddleware, never>, false>;
|
|
1617
|
+
export declare class LoginApprovalApi extends LoginApprovalApi_base {
|
|
1618
|
+
}
|
|
1619
|
+
declare const MfaApi_base: HttpApiGroup.HttpApiGroup<"mfa", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"options", "POST", "/auth/mfa/options", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
1620
|
+
readonly flowId: Schema.brand<Schema.String, "auth/AuthFlowId">;
|
|
1621
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
1622
|
+
readonly factors: Schema.$Array<Schema.Struct<{
|
|
1623
|
+
readonly type: Schema.Literals<readonly ["totp", "backup-code", "passkey"]>;
|
|
1624
|
+
}>>;
|
|
1625
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthInternalError>, AuthSchemaErrorMiddleware | AuthOriginCheckMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verifyTotp", "POST", "/auth/mfa/totp/verify", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
1626
|
+
readonly flowId: Schema.brand<Schema.String, "auth/AuthFlowId">;
|
|
1627
|
+
readonly userId: Schema.brand<Schema.String, "auth/UserId">;
|
|
1628
|
+
readonly code: Schema.String;
|
|
1629
|
+
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
1630
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
1631
|
+
readonly type: Schema.Literal<"authenticated">;
|
|
1632
|
+
readonly expiresAt: Schema.Number;
|
|
1633
|
+
readonly aal: Schema.Literals<readonly ["aal1", "aal2", "aal3"]>;
|
|
1634
|
+
readonly amr: Schema.$Array<Schema.String>;
|
|
1635
|
+
readonly mfaVerifiedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
1636
|
+
readonly claims: Schema.optional<Schema.Struct<{
|
|
1637
|
+
readonly emailVerified: Schema.optional<Schema.Boolean>;
|
|
1638
|
+
readonly requirements: Schema.optional<Schema.$Array<Schema.String>>;
|
|
1639
|
+
}>>;
|
|
1640
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthInvalidCredentialsError | typeof AuthPolicyDeniedError | typeof AuthInternalError>, AuthSchemaErrorMiddleware | AuthOriginCheckMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verifyTotpForFlow", "POST", "/auth/mfa/totp/verify-flow", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
1641
|
+
readonly flowId: Schema.brand<Schema.String, "auth/AuthFlowId">;
|
|
1642
|
+
readonly code: Schema.String;
|
|
1643
|
+
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
1644
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
1645
|
+
readonly type: Schema.Literal<"authenticated">;
|
|
1646
|
+
readonly expiresAt: Schema.Number;
|
|
1647
|
+
readonly aal: Schema.Literals<readonly ["aal1", "aal2", "aal3"]>;
|
|
1648
|
+
readonly amr: Schema.$Array<Schema.String>;
|
|
1649
|
+
readonly mfaVerifiedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
1650
|
+
readonly claims: Schema.optional<Schema.Struct<{
|
|
1651
|
+
readonly emailVerified: Schema.optional<Schema.Boolean>;
|
|
1652
|
+
readonly requirements: Schema.optional<Schema.$Array<Schema.String>>;
|
|
1653
|
+
}>>;
|
|
1654
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthInvalidCredentialsError | typeof AuthPolicyDeniedError | typeof AuthInternalError>, AuthSchemaErrorMiddleware | AuthOriginCheckMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verifyRecoveryCode", "POST", "/auth/mfa/recovery-code/verify", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
1655
|
+
readonly flowId: Schema.brand<Schema.String, "auth/AuthFlowId">;
|
|
1656
|
+
readonly userId: Schema.brand<Schema.String, "auth/UserId">;
|
|
1657
|
+
readonly code: Schema.String;
|
|
1658
|
+
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
1659
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
1660
|
+
readonly type: Schema.Literal<"authenticated">;
|
|
1661
|
+
readonly expiresAt: Schema.Number;
|
|
1662
|
+
readonly aal: Schema.Literals<readonly ["aal1", "aal2", "aal3"]>;
|
|
1663
|
+
readonly amr: Schema.$Array<Schema.String>;
|
|
1664
|
+
readonly mfaVerifiedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
1665
|
+
readonly claims: Schema.optional<Schema.Struct<{
|
|
1666
|
+
readonly emailVerified: Schema.optional<Schema.Boolean>;
|
|
1667
|
+
readonly requirements: Schema.optional<Schema.$Array<Schema.String>>;
|
|
1668
|
+
}>>;
|
|
1669
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthInvalidCredentialsError | typeof AuthPolicyDeniedError | typeof AuthInternalError>, AuthSchemaErrorMiddleware | AuthOriginCheckMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verifyRecoveryCodeForFlow", "POST", "/auth/mfa/recovery-code/verify-flow", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
1670
|
+
readonly flowId: Schema.brand<Schema.String, "auth/AuthFlowId">;
|
|
1671
|
+
readonly code: Schema.String;
|
|
1672
|
+
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
1673
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
1674
|
+
readonly type: Schema.Literal<"authenticated">;
|
|
1675
|
+
readonly expiresAt: Schema.Number;
|
|
1676
|
+
readonly aal: Schema.Literals<readonly ["aal1", "aal2", "aal3"]>;
|
|
1677
|
+
readonly amr: Schema.$Array<Schema.String>;
|
|
1678
|
+
readonly mfaVerifiedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
1679
|
+
readonly claims: Schema.optional<Schema.Struct<{
|
|
1680
|
+
readonly emailVerified: Schema.optional<Schema.Boolean>;
|
|
1681
|
+
readonly requirements: Schema.optional<Schema.$Array<Schema.String>>;
|
|
1682
|
+
}>>;
|
|
1683
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthInvalidCredentialsError | typeof AuthPolicyDeniedError | typeof AuthInternalError>, AuthSchemaErrorMiddleware | AuthOriginCheckMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"startPasskey", "POST", "/auth/mfa/passkey/start", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
1684
|
+
readonly flowId: Schema.brand<Schema.String, "auth/AuthFlowId">;
|
|
1685
|
+
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
1686
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
1687
|
+
readonly challengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
|
|
1688
|
+
readonly expiresAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
1689
|
+
readonly publicKey: Schema.Struct<{
|
|
1690
|
+
readonly challenge: Schema.String;
|
|
1691
|
+
readonly rpId: Schema.String;
|
|
1692
|
+
readonly timeout: Schema.optional<Schema.Number>;
|
|
1693
|
+
readonly allowCredentials: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1694
|
+
readonly type: Schema.Literal<"public-key">;
|
|
1695
|
+
readonly id: Schema.String;
|
|
1696
|
+
readonly transports: Schema.optional<Schema.$Array<Schema.String>>;
|
|
1697
|
+
}>>>;
|
|
1698
|
+
readonly userVerification: Schema.optional<Schema.Literals<readonly ["required", "preferred", "discouraged"]>>;
|
|
1699
|
+
}>;
|
|
1700
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthInternalError>, AuthSchemaErrorMiddleware | AuthOriginCheckMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verifyPasskey", "POST", "/auth/mfa/passkey/verify", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
1701
|
+
readonly flowId: Schema.brand<Schema.String, "auth/AuthFlowId">;
|
|
1702
|
+
readonly challengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
|
|
1703
|
+
readonly credential: Schema.Struct<{
|
|
1704
|
+
readonly id: Schema.String;
|
|
1705
|
+
readonly rawId: Schema.optional<Schema.String>;
|
|
1706
|
+
readonly type: Schema.Literal<"public-key">;
|
|
1707
|
+
readonly response: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
1708
|
+
readonly authenticatorAttachment: Schema.optional<Schema.String>;
|
|
1709
|
+
readonly clientExtensionResults: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
1710
|
+
}>;
|
|
1711
|
+
readonly userId: Schema.optional<Schema.brand<Schema.String, "auth/UserId">>;
|
|
1712
|
+
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
1713
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
1714
|
+
readonly type: Schema.Literal<"authenticated">;
|
|
1715
|
+
readonly expiresAt: Schema.Number;
|
|
1716
|
+
readonly aal: Schema.Literals<readonly ["aal1", "aal2", "aal3"]>;
|
|
1717
|
+
readonly amr: Schema.$Array<Schema.String>;
|
|
1718
|
+
readonly mfaVerifiedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
1719
|
+
readonly claims: Schema.optional<Schema.Struct<{
|
|
1720
|
+
readonly emailVerified: Schema.optional<Schema.Boolean>;
|
|
1721
|
+
readonly requirements: Schema.optional<Schema.$Array<Schema.String>>;
|
|
1722
|
+
}>>;
|
|
1723
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthPolicyDeniedError | typeof AuthInternalError>, AuthSchemaErrorMiddleware | AuthOriginCheckMiddleware, never>, false>;
|
|
1724
|
+
export declare class MfaApi extends MfaApi_base {
|
|
1725
|
+
}
|
|
1726
|
+
declare const StepUpApi_base: HttpApiGroup.HttpApiGroup<"stepUp", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"options", "GET", "/auth/step-up/options", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
1727
|
+
readonly factors: Schema.$Array<Schema.Struct<{
|
|
1728
|
+
readonly type: Schema.Literals<readonly ["totp", "backup-code", "passkey"]>;
|
|
1729
|
+
}>>;
|
|
1730
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthUnauthenticatedError | typeof AuthInternalError>, AuthSchemaErrorMiddleware | AuthOriginCheckMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verifyTotp", "POST", "/auth/step-up/totp/verify", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
1731
|
+
readonly code: Schema.String;
|
|
1732
|
+
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
1733
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
1734
|
+
readonly type: Schema.Literal<"authenticated">;
|
|
1735
|
+
readonly expiresAt: Schema.Number;
|
|
1736
|
+
readonly aal: Schema.Literals<readonly ["aal1", "aal2", "aal3"]>;
|
|
1737
|
+
readonly amr: Schema.$Array<Schema.String>;
|
|
1738
|
+
readonly mfaVerifiedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
1739
|
+
readonly claims: Schema.optional<Schema.Struct<{
|
|
1740
|
+
readonly emailVerified: Schema.optional<Schema.Boolean>;
|
|
1741
|
+
readonly requirements: Schema.optional<Schema.$Array<Schema.String>>;
|
|
1742
|
+
}>>;
|
|
1743
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthUnauthenticatedError | typeof AuthInvalidCredentialsError | typeof AuthInternalError>, AuthSchemaErrorMiddleware | AuthOriginCheckMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verifyRecoveryCode", "POST", "/auth/step-up/recovery-code/verify", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
1744
|
+
readonly code: Schema.String;
|
|
1745
|
+
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
1746
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
1747
|
+
readonly type: Schema.Literal<"authenticated">;
|
|
1748
|
+
readonly expiresAt: Schema.Number;
|
|
1749
|
+
readonly aal: Schema.Literals<readonly ["aal1", "aal2", "aal3"]>;
|
|
1750
|
+
readonly amr: Schema.$Array<Schema.String>;
|
|
1751
|
+
readonly mfaVerifiedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
1752
|
+
readonly claims: Schema.optional<Schema.Struct<{
|
|
1753
|
+
readonly emailVerified: Schema.optional<Schema.Boolean>;
|
|
1754
|
+
readonly requirements: Schema.optional<Schema.$Array<Schema.String>>;
|
|
1755
|
+
}>>;
|
|
1756
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthUnauthenticatedError | typeof AuthInvalidCredentialsError | typeof AuthInternalError>, AuthSchemaErrorMiddleware | AuthOriginCheckMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"startPasskey", "POST", "/auth/step-up/passkey/start", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
1757
|
+
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
1758
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
1759
|
+
readonly challengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
|
|
1760
|
+
readonly expiresAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
1761
|
+
readonly publicKey: Schema.Struct<{
|
|
1762
|
+
readonly challenge: Schema.String;
|
|
1763
|
+
readonly rpId: Schema.String;
|
|
1764
|
+
readonly timeout: Schema.optional<Schema.Number>;
|
|
1765
|
+
readonly allowCredentials: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1766
|
+
readonly type: Schema.Literal<"public-key">;
|
|
1767
|
+
readonly id: Schema.String;
|
|
1768
|
+
readonly transports: Schema.optional<Schema.$Array<Schema.String>>;
|
|
1769
|
+
}>>>;
|
|
1770
|
+
readonly userVerification: Schema.optional<Schema.Literals<readonly ["required", "preferred", "discouraged"]>>;
|
|
1771
|
+
}>;
|
|
1772
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthInternalError>, AuthSchemaErrorMiddleware | AuthOriginCheckMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verifyPasskey", "POST", "/auth/step-up/passkey/verify", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
1773
|
+
readonly challengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
|
|
1774
|
+
readonly credential: Schema.Struct<{
|
|
1775
|
+
readonly id: Schema.String;
|
|
1776
|
+
readonly rawId: Schema.optional<Schema.String>;
|
|
1777
|
+
readonly type: Schema.Literal<"public-key">;
|
|
1778
|
+
readonly response: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
1779
|
+
readonly authenticatorAttachment: Schema.optional<Schema.String>;
|
|
1780
|
+
readonly clientExtensionResults: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
1781
|
+
}>;
|
|
1782
|
+
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
1783
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
1784
|
+
readonly type: Schema.Literal<"authenticated">;
|
|
1785
|
+
readonly expiresAt: Schema.Number;
|
|
1786
|
+
readonly aal: Schema.Literals<readonly ["aal1", "aal2", "aal3"]>;
|
|
1787
|
+
readonly amr: Schema.$Array<Schema.String>;
|
|
1788
|
+
readonly mfaVerifiedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
1789
|
+
readonly claims: Schema.optional<Schema.Struct<{
|
|
1790
|
+
readonly emailVerified: Schema.optional<Schema.Boolean>;
|
|
1791
|
+
readonly requirements: Schema.optional<Schema.$Array<Schema.String>>;
|
|
1792
|
+
}>>;
|
|
1793
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthInternalError>, AuthSchemaErrorMiddleware | AuthOriginCheckMiddleware, never>, false>;
|
|
1794
|
+
export declare class StepUpApi extends StepUpApi_base {
|
|
1795
|
+
}
|
|
1796
|
+
declare const ApiKeyApi_base: HttpApiGroup.HttpApiGroup<"apiKey", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"createApiKey", "POST", "/auth/api-keys/", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
1797
|
+
readonly scopes: Schema.optional<Schema.$Array<Schema.String>>;
|
|
1798
|
+
readonly expiresAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
1799
|
+
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
1800
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
1801
|
+
readonly secret: Schema.String;
|
|
1802
|
+
readonly key: Schema.Struct<{
|
|
1803
|
+
readonly keyId: Schema.String;
|
|
1804
|
+
readonly prefix: Schema.String;
|
|
1805
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
1806
|
+
readonly createdAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
1807
|
+
readonly expiresAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
1808
|
+
readonly lastUsedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
1809
|
+
readonly revokedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
1810
|
+
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
1811
|
+
}>;
|
|
1812
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthInternalError>, AuthSchemaErrorMiddleware | AuthOriginCheckMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"listApiKeys", "GET", "/auth/api-keys/", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
1813
|
+
readonly keys: Schema.$Array<Schema.Struct<{
|
|
1814
|
+
readonly keyId: Schema.String;
|
|
1815
|
+
readonly prefix: Schema.String;
|
|
1816
|
+
readonly scopes: Schema.$Array<Schema.String>;
|
|
1817
|
+
readonly createdAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
1818
|
+
readonly expiresAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
1819
|
+
readonly lastUsedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
1820
|
+
readonly revokedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
1821
|
+
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
1822
|
+
}>>;
|
|
1823
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthUnauthenticatedError | typeof AuthInternalError>, AuthSchemaErrorMiddleware | AuthOriginCheckMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"revokeApiKey", "POST", "/auth/api-keys/revoke", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
1824
|
+
readonly keyId: Schema.String;
|
|
1825
|
+
readonly reason: Schema.optional<Schema.String>;
|
|
1826
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/unstable/httpapi/HttpApiSchema").NoContent>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthInternalError>, AuthSchemaErrorMiddleware | AuthOriginCheckMiddleware, never>, false>;
|
|
1827
|
+
export declare class ApiKeyApi extends ApiKeyApi_base {
|
|
1828
|
+
}
|
|
1829
|
+
declare const RefreshTokenApi_base: HttpApiGroup.HttpApiGroup<"refreshToken", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"refresh", "POST", "/auth/token/refresh", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
1830
|
+
readonly refreshToken: Schema.String;
|
|
1831
|
+
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
1832
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
1833
|
+
readonly accessToken: Schema.String;
|
|
1834
|
+
readonly accessTokenExpiresAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
1835
|
+
readonly refreshToken: Schema.String;
|
|
1836
|
+
readonly refreshTokenRecord: Schema.Struct<{
|
|
1837
|
+
readonly tokenId: Schema.String;
|
|
1838
|
+
readonly familyId: Schema.String;
|
|
1839
|
+
readonly createdAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
1840
|
+
readonly expiresAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
1841
|
+
readonly lastUsedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
1842
|
+
readonly rotatedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
1843
|
+
readonly replacedById: Schema.optional<Schema.String>;
|
|
1844
|
+
readonly revokedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
1845
|
+
readonly reuseDetectedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
1846
|
+
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
1847
|
+
}>;
|
|
1848
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthInvalidCredentialsError | typeof AuthInternalError>, AuthSchemaErrorMiddleware, never>, false>;
|
|
1849
|
+
export declare class RefreshTokenApi extends RefreshTokenApi_base {
|
|
1850
|
+
}
|
|
1851
|
+
declare const JwtApi_base: HttpApiGroup.HttpApiGroup<"jwt", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"introspect", "POST", "/auth/jwt/introspect", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
1852
|
+
readonly token: Schema.String;
|
|
1853
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Union<readonly [Schema.Struct<{
|
|
1854
|
+
readonly active: Schema.Literal<true>;
|
|
1855
|
+
readonly header: Schema.Struct<{
|
|
1856
|
+
readonly typ: Schema.Literal<"JWT">;
|
|
1857
|
+
readonly alg: Schema.Literals<readonly ["HS256", "RS256", "ES256", "EdDSA"]>;
|
|
1858
|
+
readonly kid: Schema.String;
|
|
1859
|
+
}>;
|
|
1860
|
+
readonly claims: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
1861
|
+
readonly key: Schema.Struct<{
|
|
1862
|
+
readonly keyId: Schema.String;
|
|
1863
|
+
readonly alg: Schema.Literals<readonly ["HS256", "RS256", "ES256", "EdDSA"]>;
|
|
1864
|
+
readonly status: Schema.Literals<readonly ["active", "retired", "disabled"]>;
|
|
1865
|
+
readonly createdAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
1866
|
+
readonly expiresAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
1867
|
+
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
1868
|
+
}>;
|
|
1869
|
+
readonly jwtId: Schema.optional<Schema.String>;
|
|
1870
|
+
readonly expiresAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
1871
|
+
readonly revoked: Schema.Literal<false>;
|
|
1872
|
+
}>, Schema.Struct<{
|
|
1873
|
+
readonly active: Schema.Literal<false>;
|
|
1874
|
+
readonly reason: Schema.Literals<readonly ["malformed", "unsupported_alg", "unknown_key", "invalid_signature", "expired", "not_yet_valid", "issuer_mismatch", "audience_mismatch", "revoked"]>;
|
|
1875
|
+
readonly jwtId: Schema.optional<Schema.String>;
|
|
1876
|
+
readonly expiresAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
1877
|
+
readonly revokedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
1878
|
+
readonly revokedReason: Schema.optional<Schema.String>;
|
|
1879
|
+
}>]>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthInternalError>, AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"revoke", "POST", "/auth/jwt/revoke", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
1880
|
+
readonly jwtId: Schema.String;
|
|
1881
|
+
readonly expiresAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
1882
|
+
readonly reason: Schema.optional<Schema.String>;
|
|
1883
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/unstable/httpapi/HttpApiSchema").NoContent>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthInternalError>, AuthSchemaErrorMiddleware, never>, false>;
|
|
1884
|
+
export declare class JwtApi extends JwtApi_base {
|
|
1885
|
+
}
|
|
1886
|
+
declare const SecurityApi_base: HttpApiGroup.HttpApiGroup<"security", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"reportLogin", "POST", "/auth/security/login/report", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
1887
|
+
readonly challengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
|
|
1888
|
+
readonly secret: Schema.String;
|
|
1889
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/unstable/httpapi/HttpApiSchema").NoContent>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthPolicyDeniedError | typeof AuthInternalError>, AuthSchemaErrorMiddleware | AuthOriginCheckMiddleware, never>, false>;
|
|
1890
|
+
export declare class SecurityApi extends SecurityApi_base {
|
|
1891
|
+
}
|
|
1892
|
+
declare const SecurityTimelineApi_base: HttpApiGroup.HttpApiGroup<"securityTimeline", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"list", "GET", "/auth/security/timeline", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<Schema.Struct<{
|
|
1893
|
+
readonly limit: Schema.optional<Schema.Number>;
|
|
1894
|
+
readonly beforeOccurredAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
1895
|
+
readonly types: Schema.optional<Schema.$Array<Schema.Literals<readonly ["auth.login.succeeded", "auth.login.failed", "auth.session.revoked", "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.jwt.introspected", "auth.jwt.revoked"]>>>;
|
|
1896
|
+
readonly categories: Schema.optional<Schema.$Array<Schema.Literals<readonly ["api_key", "auth", "jwt", "mfa", "oauth", "policy", "refresh_token", "session"]>>>;
|
|
1897
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
1898
|
+
readonly events: Schema.$Array<Schema.Struct<{
|
|
1899
|
+
readonly eventId: Schema.String;
|
|
1900
|
+
readonly type: Schema.Literals<readonly ["auth.login.succeeded", "auth.login.failed", "auth.session.revoked", "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.jwt.introspected", "auth.jwt.revoked"]>;
|
|
1901
|
+
readonly category: Schema.Literals<readonly ["api_key", "auth", "jwt", "mfa", "oauth", "policy", "refresh_token", "session"]>;
|
|
1902
|
+
readonly severity: Schema.Literals<readonly ["info", "warning", "critical"]>;
|
|
1903
|
+
readonly occurredAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
1904
|
+
readonly summary: Schema.String;
|
|
1905
|
+
readonly actor: Schema.optional<Schema.Union<readonly [Schema.Struct<{
|
|
1906
|
+
readonly type: Schema.Literal<"anonymous">;
|
|
1907
|
+
}>, Schema.Struct<{
|
|
1908
|
+
readonly type: Schema.Literal<"user">;
|
|
1909
|
+
readonly sessionId: Schema.optional<Schema.brand<Schema.String, "auth/SessionId">>;
|
|
1910
|
+
}>]>>;
|
|
1911
|
+
readonly request: Schema.optional<Schema.Struct<{
|
|
1912
|
+
readonly ipHash: Schema.optional<Schema.String>;
|
|
1913
|
+
readonly userAgentHash: Schema.optional<Schema.String>;
|
|
1914
|
+
}>>;
|
|
1915
|
+
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
1916
|
+
}>>;
|
|
1917
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthUnauthenticatedError | typeof AuthInternalError>, AuthSchemaErrorMiddleware | AuthOriginCheckMiddleware, never>, false>;
|
|
1918
|
+
export declare class SecurityTimelineApi extends SecurityTimelineApi_base {
|
|
1919
|
+
}
|
|
1920
|
+
declare const SecurityTimelineHttpApi_base: HttpApi.HttpApi<"SecurityTimelineHttpApi", typeof SecurityTimelineApi>;
|
|
1921
|
+
export declare class SecurityTimelineHttpApi extends SecurityTimelineHttpApi_base {
|
|
1922
|
+
}
|
|
1923
|
+
declare const TrustedDeviceApi_base: HttpApiGroup.HttpApiGroup<"trustedDevice", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"list", "GET", "/auth/trusted-devices/", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
1924
|
+
readonly devices: Schema.$Array<Schema.Struct<{
|
|
1925
|
+
readonly deviceId: Schema.String;
|
|
1926
|
+
readonly createdAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
1927
|
+
readonly lastSeenAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
1928
|
+
readonly expiresAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
1929
|
+
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
1930
|
+
}>>;
|
|
1931
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthUnauthenticatedError | typeof AuthInternalError>, AuthSchemaErrorMiddleware | AuthOriginCheckMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"revoke", "POST", "/auth/trusted-devices/revoke", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
1932
|
+
readonly deviceId: Schema.String;
|
|
1933
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/unstable/httpapi/HttpApiSchema").NoContent>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthInternalError>, AuthSchemaErrorMiddleware | AuthOriginCheckMiddleware, never>, false>;
|
|
1934
|
+
export declare class TrustedDeviceApi extends TrustedDeviceApi_base {
|
|
1935
|
+
}
|
|
1936
|
+
declare const TrustedDeviceHttpApi_base: HttpApi.HttpApi<"TrustedDeviceHttpApi", typeof TrustedDeviceApi>;
|
|
1937
|
+
export declare class TrustedDeviceHttpApi extends TrustedDeviceHttpApi_base {
|
|
1938
|
+
}
|
|
1939
|
+
declare const AuthApi_base: HttpApi.HttpApi<"AuthApi", typeof PasswordApi | typeof SessionApi | typeof EmailVerificationApi | typeof EmailOtpApi | typeof MagicLinkApi | typeof LoginApprovalApi | typeof SecurityApi>;
|
|
1940
|
+
export declare class AuthApi extends AuthApi_base {
|
|
1941
|
+
}
|
|
1942
|
+
export declare const PasswordApiLive: Layer.Layer<HttpApiGroup.ApiGroup<"AuthApi", "password">, never, Sessions | SessionCookie | PasswordLogin | PasswordRegistration | PasswordReset | PasswordManagement | AuthSchemaErrorMiddleware | AuthHttp | EmailVerificationFlow | AuthApiRateLimit | AuthOriginCheckMiddleware | AuthRateLimitMiddleware>;
|
|
1943
|
+
export declare const SessionApiLive: Layer.Layer<HttpApiGroup.ApiGroup<"AuthApi", "session">, never, Sessions | SessionCookie | AuthHttp | AuthOriginCheckMiddleware>;
|
|
1944
|
+
export declare const EmailVerificationApiLive: Layer.Layer<HttpApiGroup.ApiGroup<"AuthApi", "emailVerification">, never, Sessions | SessionCookie | AuthSchemaErrorMiddleware | EmailVerificationFlow | EmailVerification | AuthApiRateLimit | AuthOriginCheckMiddleware | AuthRateLimitMiddleware>;
|
|
1945
|
+
export declare const EmailOtpApiLive: Layer.Layer<HttpApiGroup.ApiGroup<"AuthApi", "emailOtp">, never, EmailOtpLogin | AuthSchemaErrorMiddleware | AuthHttp | AuthApiRateLimit | AuthOriginCheckMiddleware | AuthRateLimitMiddleware>;
|
|
1946
|
+
export declare const MagicLinkApiLive: Layer.Layer<HttpApiGroup.ApiGroup<"AuthApi", "magicLink">, never, MagicLinkLogin | AuthSchemaErrorMiddleware | AuthHttp | AuthApiRateLimit | AuthOriginCheckMiddleware | AuthRateLimitMiddleware>;
|
|
1947
|
+
export declare const LoginApprovalApiLive: Layer.Layer<HttpApiGroup.ApiGroup<"AuthApi", "loginApproval">, never, UserStore | LoginApproval | AuthFlowState | AuthFlow | AuthSchemaErrorMiddleware | AuthHttp | AuthOriginCheckMiddleware>;
|
|
1948
|
+
export declare const SecurityApiLive: Layer.Layer<HttpApiGroup.ApiGroup<"AuthApi", "security">, never, AuthSchemaErrorMiddleware | AuthOriginCheckMiddleware>;
|
|
1949
|
+
export declare const SecurityTimelineApiLive: Layer.Layer<HttpApiGroup.ApiGroup<"SecurityTimelineHttpApi", "securityTimeline">, never, Sessions | SessionCookie | AuthSchemaErrorMiddleware | SecurityTimelineStore | AuthOriginCheckMiddleware>;
|
|
1950
|
+
export declare const SecurityTimelineHttpApiLive: Layer.Layer<never, never, Sessions | SessionCookie | SecurityTimelineStore | import("effect/FileSystem").FileSystem | import("effect/Path").Path | import("effect/unstable/http/Etag").Generator | import("effect/unstable/http/HttpRouter").HttpRouter | import("effect/unstable/http/HttpPlatform").HttpPlatform>;
|
|
1951
|
+
export declare const TrustedDeviceApiLive: Layer.Layer<HttpApiGroup.ApiGroup<"TrustedDeviceHttpApi", "trustedDevice">, never, Sessions | SessionCookie | TrustedDeviceStore | AuthSchemaErrorMiddleware | AuthOriginCheckMiddleware>;
|
|
1952
|
+
export declare const TrustedDeviceHttpApiLive: Layer.Layer<never, never, Sessions | SessionCookie | TrustedDeviceStore | import("effect/FileSystem").FileSystem | import("effect/Path").Path | import("effect/unstable/http/Etag").Generator | import("effect/unstable/http/HttpRouter").HttpRouter | import("effect/unstable/http/HttpPlatform").HttpPlatform>;
|
|
1953
|
+
export declare const AuthHttpApiBareLive: Layer.Layer<never, never, UserStore | Sessions | SessionCookie | LoginApproval | AuthFlowState | AuthFlow | EmailOtpLogin | MagicLinkLogin | PasswordLogin | PasswordRegistration | PasswordReset | PasswordManagement | AuthHttp | EmailVerificationFlow | EmailVerification | import("effect/FileSystem").FileSystem | import("effect/Path").Path | import("effect/unstable/http/Etag").Generator | import("effect/unstable/http/HttpRouter").HttpRouter | import("effect/unstable/http/HttpPlatform").HttpPlatform>;
|
|
1954
|
+
export declare const AuthHttpApiLive: Layer.Layer<never, never, UserStore | Sessions | SessionCookie | LoginApproval | AuthFlowState | AuthFlow | import("../Privacy.js").Privacy | EmailOtpLogin | MagicLinkLogin | PasswordLogin | PasswordRegistration | PasswordReset | PasswordManagement | AuthHttp | EmailVerificationFlow | EmailVerification | import("../RateLimiter.js").RateLimiter | import("effect/FileSystem").FileSystem | import("effect/Path").Path | import("effect/unstable/http/Etag").Generator | import("effect/unstable/http/HttpRouter").HttpRouter | import("effect/unstable/http/HttpPlatform").HttpPlatform>;
|
|
1955
|
+
export { AuthResult };
|
|
1956
|
+
//# sourceMappingURL=Api.d.ts.map
|