@effect-auth/core 0.1.0-alpha.15 → 0.1.0-alpha.16
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 +27 -1
- package/dist/ApiKey.d.ts +2 -2
- package/dist/ApiKey.d.ts.map +1 -1
- package/dist/AuditLog.d.ts.map +1 -1
- package/dist/AuditLog.js.map +1 -1
- package/dist/AuthConfig.d.ts.map +1 -1
- package/dist/AuthConfig.js.map +1 -1
- package/dist/AuthFlow.d.ts +205 -189
- package/dist/AuthFlow.d.ts.map +1 -1
- package/dist/AuthFlow.js.map +1 -1
- package/dist/AuthKernel.d.ts +1 -1
- package/dist/Challenge.d.ts.map +1 -1
- package/dist/Client.d.ts.map +1 -1
- package/dist/Client.js.map +1 -1
- package/dist/Crypto.d.ts.map +1 -1
- package/dist/Crypto.js +4 -3
- package/dist/Crypto.js.map +1 -1
- package/dist/DomainVerification.d.ts.map +1 -1
- package/dist/DomainVerification.js.map +1 -1
- package/dist/DrizzleD1SqliteStorage.d.ts +28 -0
- package/dist/DrizzleD1SqliteStorage.d.ts.map +1 -0
- package/dist/DrizzleD1SqliteStorage.js +10 -0
- package/dist/DrizzleD1SqliteStorage.js.map +1 -0
- package/dist/DrizzleEffectSqliteStorage.d.ts +22 -0
- package/dist/DrizzleEffectSqliteStorage.d.ts.map +1 -0
- package/dist/DrizzleEffectSqliteStorage.js +41 -0
- package/dist/DrizzleEffectSqliteStorage.js.map +1 -0
- package/dist/EffectQbSqliteStorage.d.ts +5 -6
- package/dist/EffectQbSqliteStorage.d.ts.map +1 -1
- package/dist/EffectQbSqliteStorage.js +3 -2
- package/dist/EffectQbSqliteStorage.js.map +1 -1
- package/dist/EmailOtp.d.ts +2 -2
- package/dist/EmailOtp.d.ts.map +1 -1
- package/dist/EmailVerification.d.ts +2 -2
- package/dist/EmailVerification.d.ts.map +1 -1
- package/dist/HttpApi/Api.d.ts +472 -474
- package/dist/HttpApi/Api.d.ts.map +1 -1
- package/dist/HttpApi/Api.js.map +1 -1
- package/dist/HttpApi/Errors.js.map +1 -1
- package/dist/HttpApi/Security.d.ts.map +1 -1
- package/dist/HttpApi/Security.js.map +1 -1
- package/dist/HttpApi/Transport.d.ts.map +1 -1
- package/dist/HttpApi/Transport.js.map +1 -1
- package/dist/IncidentAction.d.ts.map +1 -1
- package/dist/Internal.d.ts.map +1 -1
- package/dist/Jwt.d.ts +3 -3
- package/dist/Jwt.d.ts.map +1 -1
- package/dist/Jwt.js +5 -4
- package/dist/Jwt.js.map +1 -1
- package/dist/LoginApproval.d.ts +1 -1
- package/dist/LoginApproval.d.ts.map +1 -1
- package/dist/LoginApproval.js.map +1 -1
- package/dist/LoginNotification.d.ts +1 -1
- package/dist/LoginNotification.d.ts.map +1 -1
- package/dist/LoginNotification.js.map +1 -1
- package/dist/LoginRisk.d.ts.map +1 -1
- package/dist/LoginRisk.js.map +1 -1
- package/dist/MachineAuth.d.ts.map +1 -1
- package/dist/MachineAuth.js.map +1 -1
- package/dist/MagicLink.d.ts +2 -2
- package/dist/MagicLink.d.ts.map +1 -1
- package/dist/Mailer.d.ts +1 -1
- package/dist/Mailer.d.ts.map +1 -1
- package/dist/Mailer.js.map +1 -1
- package/dist/OAuth.d.ts +7 -7
- package/dist/OAuth.d.ts.map +1 -1
- package/dist/OAuth.js.map +1 -1
- package/dist/Passkey.d.ts +3 -3
- package/dist/Passkey.d.ts.map +1 -1
- package/dist/PasskeySimpleWebAuthn.d.ts.map +1 -1
- package/dist/PasskeySimpleWebAuthn.js.map +1 -1
- package/dist/Password.d.ts +6 -6
- package/dist/Password.d.ts.map +1 -1
- package/dist/Password.js +1 -1
- package/dist/Password.js.map +1 -1
- package/dist/Policy.d.ts.map +1 -1
- package/dist/Policy.js.map +1 -1
- package/dist/Privacy.d.ts.map +1 -1
- package/dist/RateLimiter.d.ts.map +1 -1
- package/dist/RecoveryCode.d.ts +1 -1
- package/dist/RecoveryCode.d.ts.map +1 -1
- package/dist/RefreshToken.d.ts +1 -1
- package/dist/RefreshToken.d.ts.map +1 -1
- package/dist/Retention.d.ts.map +1 -1
- package/dist/Retention.js.map +1 -1
- package/dist/SecurityTimeline.d.ts.map +1 -1
- package/dist/SecurityTimeline.js.map +1 -1
- package/dist/Sessions.d.ts.map +1 -1
- package/dist/Sessions.js.map +1 -1
- package/dist/StepUp.d.ts.map +1 -1
- package/dist/Storage.d.ts.map +1 -1
- package/dist/Testing.d.ts +1 -1
- package/dist/Totp.d.ts.map +1 -1
- package/dist/Totp.js +2 -2
- package/dist/Totp.js.map +1 -1
- package/dist/TrustedDevice.d.ts.map +1 -1
- package/dist/TrustedDevice.js.map +1 -1
- package/dist/WaitUntil.d.ts.map +1 -1
- package/dist/Webhook.d.ts.map +1 -1
- package/dist/Webhook.js.map +1 -1
- package/dist/alchemy/cloudflare/Email.d.ts +4 -4
- package/dist/alchemy/cloudflare/Email.d.ts.map +1 -1
- package/dist/alchemy/cloudflare/Email.js +1 -1
- package/dist/alchemy/cloudflare/Email.js.map +1 -1
- package/dist/alchemy/cloudflare/RateLimitDurableObject.d.ts +4 -4
- package/dist/alchemy/cloudflare/RateLimitDurableObject.d.ts.map +1 -1
- package/dist/alchemy/cloudflare/RateLimitDurableObject.js +5 -4
- package/dist/alchemy/cloudflare/RateLimitDurableObject.js.map +1 -1
- package/dist/cloudflare/Email.d.ts.map +1 -1
- package/dist/cloudflare/RateLimitDurableObject.d.ts +6 -5
- package/dist/cloudflare/RateLimitDurableObject.d.ts.map +1 -1
- package/dist/cloudflare/RateLimitDurableObject.js.map +1 -1
- package/dist/internal/RateLimitDurableObject.d.ts.map +1 -1
- package/dist/internal/RateLimitDurableObject.js +3 -0
- package/dist/internal/RateLimitDurableObject.js.map +1 -1
- package/package.json +10 -2
package/dist/HttpApi/Api.d.ts
CHANGED
|
@@ -119,9 +119,6 @@ export interface OAuthLinkConfirmationConfirmHttpOptions {
|
|
|
119
119
|
}
|
|
120
120
|
export declare const oauthAuthorizationStartInput: (payload: Schema.Schema.Type<typeof OAuthAuthorizationStartBody>, provider: OAuthProviderConfig, options?: OAuthAuthorizationStartHttpOptions) => OAuthAuthorizationStartInput;
|
|
121
121
|
export declare const oauthAuthorizationStartedHttpBody: (started: StartedOAuthAuthorization) => {
|
|
122
|
-
redirectUri: string;
|
|
123
|
-
scopes: readonly string[];
|
|
124
|
-
nonce?: import("../OAuth.js").OAuthNonce | undefined;
|
|
125
122
|
providerId: OAuthProviderId;
|
|
126
123
|
authorizationUrl: string;
|
|
127
124
|
state: import("../OAuth.js").OAuthStateToken;
|
|
@@ -129,6 +126,9 @@ export declare const oauthAuthorizationStartedHttpBody: (started: StartedOAuthAu
|
|
|
129
126
|
expiresAt: UnixMillis;
|
|
130
127
|
codeChallenge: import("../OAuth.js").OAuthCodeChallenge;
|
|
131
128
|
codeChallengeMethod: "S256";
|
|
129
|
+
nonce?: import("../OAuth.js").OAuthNonce | undefined;
|
|
130
|
+
redirectUri: string;
|
|
131
|
+
scopes: readonly string[];
|
|
132
132
|
};
|
|
133
133
|
export declare const oauthLinkConfirmationStartInput: (payload: Schema.Schema.Type<typeof OAuthLinkConfirmationStartBody>, options?: Pick<OAuthLinkConfirmationStartHttpOptions, "ttl">) => Effect.Effect<OAuthLinkConfirmationStartInput, AuthBadRequestError>;
|
|
134
134
|
export declare const oauthLinkConfirmationInspectInput: (payload: Schema.Schema.Type<typeof OAuthLinkConfirmationInspectBody>) => OAuthLinkConfirmationInspectInput;
|
|
@@ -191,42 +191,38 @@ export interface RecoveryCodeGenerateHttpOptions {
|
|
|
191
191
|
readonly groupSize?: number;
|
|
192
192
|
}
|
|
193
193
|
export declare const passkeyRegistrationStartInput: (payload: Schema.Schema.Type<typeof PasskeyRegistrationStartBody>, options: PasskeyRegistrationStartHttpOptions) => {
|
|
194
|
-
metadata?: {
|
|
195
|
-
readonly [x: string]: unknown;
|
|
196
|
-
} | undefined;
|
|
197
|
-
attestation?: PasskeyAttestation | undefined;
|
|
198
|
-
authenticatorSelection?: PasskeyAuthenticatorSelection | undefined;
|
|
199
|
-
pubKeyCredParams?: readonly PasskeyPublicKeyCredentialParameters[] | undefined;
|
|
200
|
-
timeout?: number | undefined;
|
|
201
194
|
relyingParty: PasskeyRelyingParty;
|
|
202
195
|
userId: string & import("effect/Brand").Brand<"auth/UserId">;
|
|
203
196
|
userName: string;
|
|
204
197
|
userDisplayName: string;
|
|
198
|
+
timeout?: number | undefined;
|
|
199
|
+
pubKeyCredParams?: readonly PasskeyPublicKeyCredentialParameters[] | undefined;
|
|
200
|
+
authenticatorSelection?: PasskeyAuthenticatorSelection | undefined;
|
|
201
|
+
attestation?: PasskeyAttestation | undefined;
|
|
202
|
+
metadata?: {
|
|
203
|
+
readonly [x: string]: unknown;
|
|
204
|
+
} | undefined;
|
|
205
205
|
};
|
|
206
206
|
export declare const passkeyAuthenticationStartInput: (payload: Schema.Schema.Type<typeof PasskeyAuthenticationStartBody>, options: PasskeyAuthenticationStartHttpOptions) => {
|
|
207
|
+
relyingPartyId: string;
|
|
208
|
+
userId?: (string & import("effect/Brand").Brand<"auth/UserId">) | undefined;
|
|
209
|
+
timeout?: number | undefined;
|
|
210
|
+
userVerification?: PasskeyUserVerification | undefined;
|
|
207
211
|
metadata?: {
|
|
208
212
|
readonly [x: string]: unknown;
|
|
209
213
|
} | undefined;
|
|
210
|
-
userVerification?: PasskeyUserVerification | undefined;
|
|
211
|
-
timeout?: number | undefined;
|
|
212
|
-
userId?: (string & import("effect/Brand").Brand<"auth/UserId">) | undefined;
|
|
213
|
-
relyingPartyId: string;
|
|
214
214
|
};
|
|
215
215
|
export declare const passkeyMfaStartInput: (userId: UserId, payload: Schema.Schema.Type<typeof PasskeyMfaStartBody>, options: PasskeyAuthenticationStartHttpOptions) => PasskeyAuthenticationStartInput;
|
|
216
216
|
export declare const passkeyRegistrationFinishInput: (payload: Schema.Schema.Type<typeof PasskeyRegistrationFinishBody>, options: PasskeyFinishHttpOptions) => {
|
|
217
|
-
metadata?: {
|
|
218
|
-
readonly [x: string]: unknown;
|
|
219
|
-
} | undefined;
|
|
220
|
-
requireUserVerification?: boolean | undefined;
|
|
221
217
|
challengeId: string & import("effect/Brand").Brand<"auth/ChallengeId">;
|
|
222
218
|
userId: string & import("effect/Brand").Brand<"auth/UserId">;
|
|
223
219
|
response: {
|
|
224
220
|
readonly id: string;
|
|
221
|
+
readonly rawId?: string | undefined;
|
|
225
222
|
readonly type: "public-key";
|
|
226
223
|
readonly response: {
|
|
227
224
|
readonly [x: string]: unknown;
|
|
228
225
|
};
|
|
229
|
-
readonly rawId?: string | undefined;
|
|
230
226
|
readonly authenticatorAttachment?: string | undefined;
|
|
231
227
|
readonly clientExtensionResults?: {
|
|
232
228
|
readonly [x: string]: unknown;
|
|
@@ -234,55 +230,59 @@ export declare const passkeyRegistrationFinishInput: (payload: Schema.Schema.Typ
|
|
|
234
230
|
};
|
|
235
231
|
relyingPartyId: string;
|
|
236
232
|
expectedOrigin: string | readonly string[];
|
|
237
|
-
|
|
238
|
-
export declare const passkeyAuthenticationFinishInput: (payload: Schema.Schema.Type<typeof PasskeyAuthenticationFinishBody>, options: PasskeyFinishHttpOptions) => {
|
|
233
|
+
requireUserVerification?: boolean | undefined;
|
|
239
234
|
metadata?: {
|
|
240
235
|
readonly [x: string]: unknown;
|
|
241
236
|
} | undefined;
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
expectedOrigin: string | readonly string[];
|
|
245
|
-
userId?: (string & import("effect/Brand").Brand<"auth/UserId">) | undefined;
|
|
237
|
+
};
|
|
238
|
+
export declare const passkeyAuthenticationFinishInput: (payload: Schema.Schema.Type<typeof PasskeyAuthenticationFinishBody>, options: PasskeyFinishHttpOptions) => {
|
|
246
239
|
challengeId: string & import("effect/Brand").Brand<"auth/ChallengeId">;
|
|
247
240
|
response: {
|
|
248
241
|
readonly id: string;
|
|
242
|
+
readonly rawId?: string | undefined;
|
|
249
243
|
readonly type: "public-key";
|
|
250
244
|
readonly response: {
|
|
251
245
|
readonly [x: string]: unknown;
|
|
252
246
|
};
|
|
253
|
-
readonly rawId?: string | undefined;
|
|
254
247
|
readonly authenticatorAttachment?: string | undefined;
|
|
255
248
|
readonly clientExtensionResults?: {
|
|
256
249
|
readonly [x: string]: unknown;
|
|
257
250
|
} | undefined;
|
|
258
251
|
};
|
|
259
|
-
|
|
260
|
-
|
|
252
|
+
userId?: (string & import("effect/Brand").Brand<"auth/UserId">) | undefined;
|
|
253
|
+
relyingPartyId: string;
|
|
254
|
+
expectedOrigin: string | readonly string[];
|
|
255
|
+
requireUserVerification?: boolean | undefined;
|
|
261
256
|
metadata?: {
|
|
262
257
|
readonly [x: string]: unknown;
|
|
263
258
|
} | undefined;
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
expectedOrigin: string | readonly string[];
|
|
267
|
-
userId?: (string & import("effect/Brand").Brand<"auth/UserId">) | undefined;
|
|
259
|
+
};
|
|
260
|
+
export declare const passkeyMfaVerifyInput: (payload: Schema.Schema.Type<typeof PasskeyMfaVerifyBody>, options: PasskeyFinishHttpOptions) => {
|
|
268
261
|
challengeId: string & import("effect/Brand").Brand<"auth/ChallengeId">;
|
|
269
262
|
response: {
|
|
270
263
|
readonly id: string;
|
|
264
|
+
readonly rawId?: string | undefined;
|
|
271
265
|
readonly type: "public-key";
|
|
272
266
|
readonly response: {
|
|
273
267
|
readonly [x: string]: unknown;
|
|
274
268
|
};
|
|
275
|
-
readonly rawId?: string | undefined;
|
|
276
269
|
readonly authenticatorAttachment?: string | undefined;
|
|
277
270
|
readonly clientExtensionResults?: {
|
|
278
271
|
readonly [x: string]: unknown;
|
|
279
272
|
} | undefined;
|
|
280
273
|
};
|
|
274
|
+
userId?: (string & import("effect/Brand").Brand<"auth/UserId">) | undefined;
|
|
275
|
+
relyingPartyId: string;
|
|
276
|
+
expectedOrigin: string | readonly string[];
|
|
277
|
+
requireUserVerification?: boolean | undefined;
|
|
278
|
+
metadata?: {
|
|
279
|
+
readonly [x: string]: unknown;
|
|
280
|
+
} | undefined;
|
|
281
281
|
};
|
|
282
282
|
export declare const passkeyCredentialRevokeInput: (userId: UserId, payload: Schema.Schema.Type<typeof PasskeyCredentialRevokeBody>) => {
|
|
283
|
-
reason?: string | undefined;
|
|
284
283
|
userId: UserId;
|
|
285
284
|
credentialId: PasskeyCredentialId;
|
|
285
|
+
reason?: string | undefined;
|
|
286
286
|
};
|
|
287
287
|
export declare const totpEnrollmentStartInput: (userId: UserId, payload: Schema.Schema.Type<typeof TotpEnrollmentStartBody>, options: TotpEnrollmentStartHttpOptions) => TotpEnrollmentStartInput;
|
|
288
288
|
export declare const totpEnrollmentConfirmInput: (userId: UserId, payload: Schema.Schema.Type<typeof TotpEnrollmentConfirmBody>, options?: TotpCodeHttpOptions) => TotpEnrollmentConfirmInput;
|
|
@@ -340,36 +340,36 @@ export interface LoginApprovalFinalizeHttpInput {
|
|
|
340
340
|
export declare const loginApprovalFinalizeInput: (payload: Schema.Schema.Type<typeof LoginApprovalFinalizeBody>) => LoginApprovalFinalizeHttpInput;
|
|
341
341
|
export declare const loginNotificationReportInput: (payload: Schema.Schema.Type<typeof LoginNotificationReportBody>) => LoginNotificationReportInput;
|
|
342
342
|
export declare const adminSessionHttpBody: (session: SessionInfoShape) => {
|
|
343
|
-
longitude?: number | undefined;
|
|
344
|
-
latitude?: number | undefined;
|
|
345
|
-
city?: string | undefined;
|
|
346
|
-
region?: string | undefined;
|
|
347
|
-
country?: string | undefined;
|
|
348
|
-
userAgent?: string | undefined;
|
|
349
|
-
ip?: string | undefined;
|
|
350
|
-
mfaVerifiedAt?: UnixMillis | undefined;
|
|
351
|
-
expiresAt: UnixMillis;
|
|
352
|
-
aal: import("../Sessions.js").AuthAssuranceLevel;
|
|
353
|
-
amr: readonly AuthMethodReference[];
|
|
354
|
-
lastSeenAt?: UnixMillis | undefined;
|
|
355
343
|
sessionId: SessionId;
|
|
356
344
|
userId: UserId;
|
|
357
345
|
createdAt: UnixMillis;
|
|
358
346
|
authTime: UnixMillis;
|
|
347
|
+
lastSeenAt?: UnixMillis | undefined;
|
|
348
|
+
expiresAt: UnixMillis;
|
|
349
|
+
aal: import("../Sessions.js").AuthAssuranceLevel;
|
|
350
|
+
amr: readonly AuthMethodReference[];
|
|
351
|
+
mfaVerifiedAt?: UnixMillis | undefined;
|
|
352
|
+
ip?: string | undefined;
|
|
353
|
+
userAgent?: string | undefined;
|
|
354
|
+
country?: string | undefined;
|
|
355
|
+
region?: string | undefined;
|
|
356
|
+
city?: string | undefined;
|
|
357
|
+
latitude?: number | undefined;
|
|
358
|
+
longitude?: number | undefined;
|
|
359
359
|
};
|
|
360
360
|
export declare const stepUpAuthenticatedHttpBody: (session: CurrentSessionShape) => {
|
|
361
|
-
mfaVerifiedAt?: UnixMillis | undefined;
|
|
362
361
|
type: "authenticated";
|
|
363
362
|
expiresAt: number;
|
|
364
363
|
aal: import("../Sessions.js").AuthAssuranceLevel;
|
|
365
364
|
amr: readonly AuthMethodReference[];
|
|
366
|
-
} | {
|
|
367
|
-
claims: SessionClaims;
|
|
368
365
|
mfaVerifiedAt?: UnixMillis | undefined;
|
|
366
|
+
} | {
|
|
369
367
|
type: "authenticated";
|
|
370
368
|
expiresAt: number;
|
|
371
369
|
aal: import("../Sessions.js").AuthAssuranceLevel;
|
|
372
370
|
amr: readonly AuthMethodReference[];
|
|
371
|
+
mfaVerifiedAt?: UnixMillis | undefined;
|
|
372
|
+
claims: SessionClaims;
|
|
373
373
|
};
|
|
374
374
|
export type PasswordSignInHandlerRequest = {
|
|
375
375
|
readonly payload: Schema.Schema.Type<typeof PasswordSignInBody>;
|
|
@@ -692,11 +692,11 @@ export declare const makePasswordSignUpHandler: (dependencies: {
|
|
|
692
692
|
readonly authHttp: AuthHttpService;
|
|
693
693
|
readonly emailVerificationFlow?: EmailVerificationFlowService;
|
|
694
694
|
readonly authApiRateLimit?: AuthApiRateLimitService;
|
|
695
|
-
}) => (args_0: PasswordSignUpHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse,
|
|
695
|
+
}) => (args_0: PasswordSignUpHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthEmailAlreadyRegisteredError | AuthRateLimitedError | import("./Transport.js").PasswordSignUpHttpError, never>;
|
|
696
696
|
export declare const makePasswordResetStartHandler: (dependencies: {
|
|
697
697
|
readonly passwordReset: PasswordResetService;
|
|
698
698
|
readonly authApiRateLimit?: AuthApiRateLimitService;
|
|
699
|
-
}) => (args_0: PasswordResetStartHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse,
|
|
699
|
+
}) => (args_0: PasswordResetStartHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthInternalError | AuthRateLimitedError, never>;
|
|
700
700
|
export declare const makePasswordResetVerifyHandler: (dependencies: {
|
|
701
701
|
readonly passwordReset: PasswordResetService;
|
|
702
702
|
}) => (args_0: PasswordResetVerifyHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthBadRequestError, never>;
|
|
@@ -704,22 +704,22 @@ export declare const makePasswordSetHandler: (dependencies: {
|
|
|
704
704
|
readonly passwordManagement: PasswordManagementService;
|
|
705
705
|
readonly sessions: SessionsService;
|
|
706
706
|
readonly sessionCookie: SessionCookieService;
|
|
707
|
-
}) => (args_0: PasswordSetHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthBadRequestError |
|
|
707
|
+
}) => (args_0: PasswordSetHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthBadRequestError | AuthInternalError | AuthUnauthenticatedError, never>;
|
|
708
708
|
export declare const makePasswordChangeHandler: (dependencies: {
|
|
709
709
|
readonly passwordManagement: PasswordManagementService;
|
|
710
710
|
readonly sessions: SessionsService;
|
|
711
711
|
readonly sessionCookie: SessionCookieService;
|
|
712
|
-
}) => (args_0: PasswordChangeHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthBadRequestError |
|
|
712
|
+
}) => (args_0: PasswordChangeHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthBadRequestError | AuthInternalError | AuthUnauthenticatedError, never>;
|
|
713
713
|
export declare const makeCurrentSessionHandler: (dependencies: {
|
|
714
714
|
readonly sessions: SessionsService;
|
|
715
715
|
readonly sessionCookie: SessionCookieService;
|
|
716
716
|
readonly authHttp: AuthHttpService;
|
|
717
|
-
}) => (args_0: SessionHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse,
|
|
717
|
+
}) => (args_0: SessionHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthInternalError | AuthUnauthenticatedError, never>;
|
|
718
718
|
export declare const makeRefreshSessionHandler: (dependencies: {
|
|
719
719
|
readonly sessions: SessionsService;
|
|
720
720
|
readonly sessionCookie: SessionCookieService;
|
|
721
721
|
readonly authHttp: AuthHttpService;
|
|
722
|
-
}) => (args_0: SessionHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse,
|
|
722
|
+
}) => (args_0: SessionHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthInternalError | AuthUnauthenticatedError, never>;
|
|
723
723
|
export declare const makeLogoutHandler: (dependencies: {
|
|
724
724
|
readonly sessions: SessionsService;
|
|
725
725
|
readonly sessionCookie: SessionCookieService;
|
|
@@ -730,91 +730,91 @@ export declare const makeListSessionsHandler: (dependencies: {
|
|
|
730
730
|
readonly sessionCookie: SessionCookieService;
|
|
731
731
|
}) => (args_0: SessionHandlerRequest) => Effect.Effect<{
|
|
732
732
|
sessions: {
|
|
733
|
-
metadata?: Readonly<Record<string, unknown>> | undefined;
|
|
734
|
-
longitude?: number | undefined;
|
|
735
|
-
latitude?: number | undefined;
|
|
736
|
-
city?: string | undefined;
|
|
737
|
-
region?: string | undefined;
|
|
738
|
-
country?: string | undefined;
|
|
739
|
-
userAgent?: string | undefined;
|
|
740
|
-
ip?: string | undefined;
|
|
741
|
-
claims?: SessionClaims | undefined;
|
|
742
|
-
current: boolean;
|
|
743
|
-
mfaVerifiedAt?: UnixMillis | undefined;
|
|
744
|
-
expiresAt: UnixMillis;
|
|
745
|
-
aal: import("../Sessions.js").AuthAssuranceLevel;
|
|
746
|
-
amr: readonly AuthMethodReference[];
|
|
747
|
-
lastSeenAt?: UnixMillis | undefined;
|
|
748
733
|
sessionId: SessionId;
|
|
749
734
|
userId: UserId;
|
|
750
735
|
createdAt: UnixMillis;
|
|
751
736
|
authTime: UnixMillis;
|
|
737
|
+
lastSeenAt?: UnixMillis | undefined;
|
|
738
|
+
expiresAt: UnixMillis;
|
|
739
|
+
aal: import("../Sessions.js").AuthAssuranceLevel;
|
|
740
|
+
amr: readonly AuthMethodReference[];
|
|
741
|
+
mfaVerifiedAt?: UnixMillis | undefined;
|
|
742
|
+
current: boolean;
|
|
743
|
+
claims?: SessionClaims | undefined;
|
|
744
|
+
ip?: string | undefined;
|
|
745
|
+
userAgent?: string | undefined;
|
|
746
|
+
country?: string | undefined;
|
|
747
|
+
region?: string | undefined;
|
|
748
|
+
city?: string | undefined;
|
|
749
|
+
latitude?: number | undefined;
|
|
750
|
+
longitude?: number | undefined;
|
|
751
|
+
metadata?: Readonly<Record<string, unknown>> | undefined;
|
|
752
752
|
}[];
|
|
753
|
-
},
|
|
753
|
+
}, AuthInternalError | AuthUnauthenticatedError, never>;
|
|
754
754
|
export declare const makeRevokeSessionHandler: (dependencies: {
|
|
755
755
|
readonly sessions: SessionsService;
|
|
756
756
|
readonly sessionCookie: SessionCookieService;
|
|
757
757
|
readonly authHttp: AuthHttpService;
|
|
758
|
-
}) => (args_0: SessionRevokeHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse,
|
|
758
|
+
}) => (args_0: SessionRevokeHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthInternalError | AuthUnauthenticatedError, never>;
|
|
759
759
|
export declare const makeRevokeOtherSessionsHandler: (dependencies: {
|
|
760
760
|
readonly sessions: SessionsService;
|
|
761
761
|
readonly sessionCookie: SessionCookieService;
|
|
762
|
-
}) => (args_0: SessionHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse,
|
|
762
|
+
}) => (args_0: SessionHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthInternalError | AuthUnauthenticatedError, never>;
|
|
763
763
|
export declare const makeAdminSessionListHandler: (dependencies: {
|
|
764
764
|
readonly sessions: SessionsService;
|
|
765
765
|
readonly sessionCookie: SessionCookieService;
|
|
766
766
|
readonly authorization: AdminSessionAuthorizationService;
|
|
767
767
|
}) => (args_0: AdminSessionListHandlerRequest) => Effect.Effect<{
|
|
768
768
|
sessions: {
|
|
769
|
-
longitude?: number | undefined;
|
|
770
|
-
latitude?: number | undefined;
|
|
771
|
-
city?: string | undefined;
|
|
772
|
-
region?: string | undefined;
|
|
773
|
-
country?: string | undefined;
|
|
774
|
-
userAgent?: string | undefined;
|
|
775
|
-
ip?: string | undefined;
|
|
776
|
-
mfaVerifiedAt?: UnixMillis | undefined;
|
|
777
|
-
expiresAt: UnixMillis;
|
|
778
|
-
aal: import("../Sessions.js").AuthAssuranceLevel;
|
|
779
|
-
amr: readonly AuthMethodReference[];
|
|
780
|
-
lastSeenAt?: UnixMillis | undefined;
|
|
781
769
|
sessionId: SessionId;
|
|
782
770
|
userId: UserId;
|
|
783
771
|
createdAt: UnixMillis;
|
|
784
772
|
authTime: UnixMillis;
|
|
773
|
+
lastSeenAt?: UnixMillis | undefined;
|
|
774
|
+
expiresAt: UnixMillis;
|
|
775
|
+
aal: import("../Sessions.js").AuthAssuranceLevel;
|
|
776
|
+
amr: readonly AuthMethodReference[];
|
|
777
|
+
mfaVerifiedAt?: UnixMillis | undefined;
|
|
778
|
+
ip?: string | undefined;
|
|
779
|
+
userAgent?: string | undefined;
|
|
780
|
+
country?: string | undefined;
|
|
781
|
+
region?: string | undefined;
|
|
782
|
+
city?: string | undefined;
|
|
783
|
+
latitude?: number | undefined;
|
|
784
|
+
longitude?: number | undefined;
|
|
785
785
|
}[];
|
|
786
|
-
},
|
|
786
|
+
}, AuthInternalError | AuthPolicyDeniedError | AuthUnauthenticatedError, never>;
|
|
787
787
|
export declare const makeAdminSessionRevokeHandler: (dependencies: {
|
|
788
788
|
readonly sessions: SessionsService;
|
|
789
789
|
readonly sessionCookie: SessionCookieService;
|
|
790
790
|
readonly authorization: AdminSessionAuthorizationService;
|
|
791
|
-
}) => (args_0: AdminSessionRevokeHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse,
|
|
791
|
+
}) => (args_0: AdminSessionRevokeHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthInternalError | AuthPolicyDeniedError | AuthUnauthenticatedError, never>;
|
|
792
792
|
export declare const makeAdminSessionRevokeAllHandler: (dependencies: {
|
|
793
793
|
readonly sessions: SessionsService;
|
|
794
794
|
readonly sessionCookie: SessionCookieService;
|
|
795
795
|
readonly authorization: AdminSessionAuthorizationService;
|
|
796
|
-
}) => (args_0: AdminSessionRevokeAllHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse,
|
|
796
|
+
}) => (args_0: AdminSessionRevokeAllHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthInternalError | AuthPolicyDeniedError | AuthUnauthenticatedError, never>;
|
|
797
797
|
export declare const makeLoginNotificationReportHandler: (dependencies: {
|
|
798
798
|
readonly loginNotification?: LoginNotificationService;
|
|
799
|
-
}) => (args_0: LoginNotificationReportHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthBadRequestError |
|
|
799
|
+
}) => (args_0: LoginNotificationReportHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthBadRequestError | AuthInternalError | AuthPolicyDeniedError, never>;
|
|
800
800
|
export declare const securityTimelineEventHttpBody: (event: SecurityTimelineEvent) => {
|
|
801
|
-
metadata?: Readonly<Record<string, unknown>> | undefined;
|
|
802
|
-
request?: {
|
|
803
|
-
userAgentHash?: import("../Identifiers.js").UserAgentHash | undefined;
|
|
804
|
-
ipHash?: import("../Identifiers.js").IpHash | undefined;
|
|
805
|
-
} | undefined;
|
|
806
|
-
actor?: {
|
|
807
|
-
type: "anonymous";
|
|
808
|
-
} | {
|
|
809
|
-
sessionId?: SessionId | undefined;
|
|
810
|
-
type: "user";
|
|
811
|
-
} | undefined;
|
|
812
801
|
eventId: import("../SecurityTimeline.js").SecurityTimelineEventId;
|
|
813
|
-
type: "auth.
|
|
802
|
+
type: "auth.api_key.created" | "auth.api_key.revoked" | "auth.api_key.verification_failed" | "auth.api_key.verified" | "auth.incident_action.executed" | "auth.jwt.introspected" | "auth.jwt.revoked" | "auth.login.failed" | "auth.login.succeeded" | "auth.oauth.account.linked" | "auth.oauth.account.unlinked" | "auth.oauth.link_confirmation.confirmed" | "auth.oauth.link_confirmation.started" | "auth.oauth.provider_token.refreshed" | "auth.oauth.provider_token.revoked" | "auth.passkey.credential.revoked" | "auth.policy.denied" | "auth.recovery_code.generated" | "auth.recovery_code.revoked" | "auth.recovery_code.verified" | "auth.refresh_token.issued" | "auth.refresh_token.reuse_detected" | "auth.refresh_token.revoked" | "auth.refresh_token.rotated" | "auth.risk.assessed" | "auth.session.revoked" | "auth.totp.enrollment.started" | "auth.totp.factor.confirmed" | "auth.totp.factor.revoked" | "auth.totp.factor.verified";
|
|
814
803
|
category: import("../SecurityTimeline.js").SecurityTimelineEventCategory;
|
|
815
804
|
severity: import("../SecurityTimeline.js").SecurityTimelineEventSeverity;
|
|
816
805
|
occurredAt: UnixMillis;
|
|
817
806
|
summary: string;
|
|
807
|
+
actor?: {
|
|
808
|
+
type: "anonymous";
|
|
809
|
+
} | {
|
|
810
|
+
type: "user";
|
|
811
|
+
sessionId?: SessionId | undefined;
|
|
812
|
+
} | undefined;
|
|
813
|
+
request?: {
|
|
814
|
+
ipHash?: import("../Identifiers.js").IpHash | undefined;
|
|
815
|
+
userAgentHash?: import("../Identifiers.js").UserAgentHash | undefined;
|
|
816
|
+
} | undefined;
|
|
817
|
+
metadata?: Readonly<Record<string, unknown>> | undefined;
|
|
818
818
|
};
|
|
819
819
|
export declare const makeSecurityTimelineListHandler: (dependencies: {
|
|
820
820
|
readonly sessions: SessionsService;
|
|
@@ -822,25 +822,25 @@ export declare const makeSecurityTimelineListHandler: (dependencies: {
|
|
|
822
822
|
readonly securityTimeline: SecurityTimelineStoreService;
|
|
823
823
|
}) => (args_0: SecurityTimelineListHandlerRequest) => Effect.Effect<{
|
|
824
824
|
events: {
|
|
825
|
-
metadata?: Readonly<Record<string, unknown>> | undefined;
|
|
826
|
-
request?: {
|
|
827
|
-
userAgentHash?: import("../Identifiers.js").UserAgentHash | undefined;
|
|
828
|
-
ipHash?: import("../Identifiers.js").IpHash | undefined;
|
|
829
|
-
} | undefined;
|
|
830
|
-
actor?: {
|
|
831
|
-
type: "anonymous";
|
|
832
|
-
} | {
|
|
833
|
-
sessionId?: SessionId | undefined;
|
|
834
|
-
type: "user";
|
|
835
|
-
} | undefined;
|
|
836
825
|
eventId: import("../SecurityTimeline.js").SecurityTimelineEventId;
|
|
837
|
-
type: "auth.
|
|
826
|
+
type: "auth.api_key.created" | "auth.api_key.revoked" | "auth.api_key.verification_failed" | "auth.api_key.verified" | "auth.incident_action.executed" | "auth.jwt.introspected" | "auth.jwt.revoked" | "auth.login.failed" | "auth.login.succeeded" | "auth.oauth.account.linked" | "auth.oauth.account.unlinked" | "auth.oauth.link_confirmation.confirmed" | "auth.oauth.link_confirmation.started" | "auth.oauth.provider_token.refreshed" | "auth.oauth.provider_token.revoked" | "auth.passkey.credential.revoked" | "auth.policy.denied" | "auth.recovery_code.generated" | "auth.recovery_code.revoked" | "auth.recovery_code.verified" | "auth.refresh_token.issued" | "auth.refresh_token.reuse_detected" | "auth.refresh_token.revoked" | "auth.refresh_token.rotated" | "auth.risk.assessed" | "auth.session.revoked" | "auth.totp.enrollment.started" | "auth.totp.factor.confirmed" | "auth.totp.factor.revoked" | "auth.totp.factor.verified";
|
|
838
827
|
category: import("../SecurityTimeline.js").SecurityTimelineEventCategory;
|
|
839
828
|
severity: import("../SecurityTimeline.js").SecurityTimelineEventSeverity;
|
|
840
829
|
occurredAt: UnixMillis;
|
|
841
830
|
summary: string;
|
|
831
|
+
actor?: {
|
|
832
|
+
type: "anonymous";
|
|
833
|
+
} | {
|
|
834
|
+
type: "user";
|
|
835
|
+
sessionId?: SessionId | undefined;
|
|
836
|
+
} | undefined;
|
|
837
|
+
request?: {
|
|
838
|
+
ipHash?: import("../Identifiers.js").IpHash | undefined;
|
|
839
|
+
userAgentHash?: import("../Identifiers.js").UserAgentHash | undefined;
|
|
840
|
+
} | undefined;
|
|
841
|
+
metadata?: Readonly<Record<string, unknown>> | undefined;
|
|
842
842
|
}[];
|
|
843
|
-
},
|
|
843
|
+
}, AuthInternalError | AuthUnauthenticatedError, never>;
|
|
844
844
|
export declare const makeAdminSecurityTimelineListHandler: (dependencies: {
|
|
845
845
|
readonly sessions: SessionsService;
|
|
846
846
|
readonly sessionCookie: SessionCookieService;
|
|
@@ -848,31 +848,31 @@ export declare const makeAdminSecurityTimelineListHandler: (dependencies: {
|
|
|
848
848
|
readonly authorization: AdminSecurityTimelineAuthorizationService;
|
|
849
849
|
}) => (args_0: AdminSecurityTimelineListHandlerRequest) => Effect.Effect<{
|
|
850
850
|
events: {
|
|
851
|
-
metadata?: Readonly<Record<string, unknown>> | undefined;
|
|
852
|
-
request?: {
|
|
853
|
-
userAgentHash?: import("../Identifiers.js").UserAgentHash | undefined;
|
|
854
|
-
ipHash?: import("../Identifiers.js").IpHash | undefined;
|
|
855
|
-
} | undefined;
|
|
856
|
-
actor?: {
|
|
857
|
-
type: "anonymous";
|
|
858
|
-
} | {
|
|
859
|
-
sessionId?: SessionId | undefined;
|
|
860
|
-
type: "user";
|
|
861
|
-
} | undefined;
|
|
862
851
|
eventId: import("../SecurityTimeline.js").SecurityTimelineEventId;
|
|
863
|
-
type: "auth.
|
|
852
|
+
type: "auth.api_key.created" | "auth.api_key.revoked" | "auth.api_key.verification_failed" | "auth.api_key.verified" | "auth.incident_action.executed" | "auth.jwt.introspected" | "auth.jwt.revoked" | "auth.login.failed" | "auth.login.succeeded" | "auth.oauth.account.linked" | "auth.oauth.account.unlinked" | "auth.oauth.link_confirmation.confirmed" | "auth.oauth.link_confirmation.started" | "auth.oauth.provider_token.refreshed" | "auth.oauth.provider_token.revoked" | "auth.passkey.credential.revoked" | "auth.policy.denied" | "auth.recovery_code.generated" | "auth.recovery_code.revoked" | "auth.recovery_code.verified" | "auth.refresh_token.issued" | "auth.refresh_token.reuse_detected" | "auth.refresh_token.revoked" | "auth.refresh_token.rotated" | "auth.risk.assessed" | "auth.session.revoked" | "auth.totp.enrollment.started" | "auth.totp.factor.confirmed" | "auth.totp.factor.revoked" | "auth.totp.factor.verified";
|
|
864
853
|
category: import("../SecurityTimeline.js").SecurityTimelineEventCategory;
|
|
865
854
|
severity: import("../SecurityTimeline.js").SecurityTimelineEventSeverity;
|
|
866
855
|
occurredAt: UnixMillis;
|
|
867
856
|
summary: string;
|
|
857
|
+
actor?: {
|
|
858
|
+
type: "anonymous";
|
|
859
|
+
} | {
|
|
860
|
+
type: "user";
|
|
861
|
+
sessionId?: SessionId | undefined;
|
|
862
|
+
} | undefined;
|
|
863
|
+
request?: {
|
|
864
|
+
ipHash?: import("../Identifiers.js").IpHash | undefined;
|
|
865
|
+
userAgentHash?: import("../Identifiers.js").UserAgentHash | undefined;
|
|
866
|
+
} | undefined;
|
|
867
|
+
metadata?: Readonly<Record<string, unknown>> | undefined;
|
|
868
868
|
}[];
|
|
869
|
-
},
|
|
869
|
+
}, AuthInternalError | AuthPolicyDeniedError | AuthUnauthenticatedError, never>;
|
|
870
870
|
export declare const trustedDeviceHttpBody: (device: TrustedDeviceRecord) => {
|
|
871
|
-
metadata?: Readonly<Record<string, unknown>> | undefined;
|
|
872
871
|
deviceId: string;
|
|
873
872
|
createdAt: UnixMillis;
|
|
874
873
|
lastSeenAt: UnixMillis;
|
|
875
874
|
expiresAt: UnixMillis;
|
|
875
|
+
metadata?: Readonly<Record<string, unknown>> | undefined;
|
|
876
876
|
};
|
|
877
877
|
export declare const makeTrustedDeviceListHandler: (dependencies: {
|
|
878
878
|
readonly sessions: SessionsService;
|
|
@@ -880,18 +880,18 @@ export declare const makeTrustedDeviceListHandler: (dependencies: {
|
|
|
880
880
|
readonly trustedDevices: TrustedDeviceStoreService;
|
|
881
881
|
}) => (args_0: TrustedDeviceListHandlerRequest) => Effect.Effect<{
|
|
882
882
|
devices: {
|
|
883
|
-
metadata?: Readonly<Record<string, unknown>> | undefined;
|
|
884
883
|
deviceId: string;
|
|
885
884
|
createdAt: UnixMillis;
|
|
886
885
|
lastSeenAt: UnixMillis;
|
|
887
886
|
expiresAt: UnixMillis;
|
|
887
|
+
metadata?: Readonly<Record<string, unknown>> | undefined;
|
|
888
888
|
}[];
|
|
889
|
-
},
|
|
889
|
+
}, AuthInternalError | AuthUnauthenticatedError, never>;
|
|
890
890
|
export declare const makeTrustedDeviceRevokeHandler: (dependencies: {
|
|
891
891
|
readonly sessions: SessionsService;
|
|
892
892
|
readonly sessionCookie: SessionCookieService;
|
|
893
893
|
readonly trustedDevices: TrustedDeviceStoreService;
|
|
894
|
-
}) => (args_0: TrustedDeviceRevokeHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse,
|
|
894
|
+
}) => (args_0: TrustedDeviceRevokeHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthInternalError | AuthUnauthenticatedError, never>;
|
|
895
895
|
export declare const makeAdminTrustedDeviceListHandler: (dependencies: {
|
|
896
896
|
readonly sessions: SessionsService;
|
|
897
897
|
readonly sessionCookie: SessionCookieService;
|
|
@@ -899,23 +899,23 @@ export declare const makeAdminTrustedDeviceListHandler: (dependencies: {
|
|
|
899
899
|
readonly authorization: AdminTrustedDeviceAuthorizationService;
|
|
900
900
|
}) => (args_0: AdminTrustedDeviceListHandlerRequest) => Effect.Effect<{
|
|
901
901
|
devices: {
|
|
902
|
-
metadata?: Readonly<Record<string, unknown>> | undefined;
|
|
903
902
|
deviceId: string;
|
|
904
903
|
createdAt: UnixMillis;
|
|
905
904
|
lastSeenAt: UnixMillis;
|
|
906
905
|
expiresAt: UnixMillis;
|
|
906
|
+
metadata?: Readonly<Record<string, unknown>> | undefined;
|
|
907
907
|
}[];
|
|
908
|
-
},
|
|
908
|
+
}, AuthInternalError | AuthPolicyDeniedError | AuthUnauthenticatedError, never>;
|
|
909
909
|
export declare const makeAdminTrustedDeviceRevokeHandler: (dependencies: {
|
|
910
910
|
readonly sessions: SessionsService;
|
|
911
911
|
readonly sessionCookie: SessionCookieService;
|
|
912
912
|
readonly trustedDevices: TrustedDeviceStoreService;
|
|
913
913
|
readonly authorization: AdminTrustedDeviceAuthorizationService;
|
|
914
|
-
}) => (args_0: AdminTrustedDeviceRevokeHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse,
|
|
914
|
+
}) => (args_0: AdminTrustedDeviceRevokeHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthInternalError | AuthPolicyDeniedError | AuthUnauthenticatedError, never>;
|
|
915
915
|
export declare const makeEmailVerificationStartHandler: (dependencies: {
|
|
916
916
|
readonly emailVerificationFlow: EmailVerificationFlowService;
|
|
917
917
|
readonly authApiRateLimit?: AuthApiRateLimitService;
|
|
918
|
-
}) => (args_0: EmailVerificationStartHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthBadRequestError |
|
|
918
|
+
}) => (args_0: EmailVerificationStartHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthBadRequestError | AuthInternalError | AuthRateLimitedError, never>;
|
|
919
919
|
export declare const makeEmailVerificationVerifyHandler: (dependencies: {
|
|
920
920
|
readonly emailVerification: EmailVerificationService;
|
|
921
921
|
readonly sessions: SessionsService;
|
|
@@ -924,7 +924,7 @@ export declare const makeEmailVerificationVerifyHandler: (dependencies: {
|
|
|
924
924
|
export declare const makeEmailOtpStartHandler: (dependencies: {
|
|
925
925
|
readonly emailOtp: EmailOtpLoginService;
|
|
926
926
|
readonly authApiRateLimit?: AuthApiRateLimitService;
|
|
927
|
-
}) => (args_0: EmailOtpStartHandlerRequest) => Effect.Effect<import("../EmailOtp.js").EmailOtpStarted,
|
|
927
|
+
}) => (args_0: EmailOtpStartHandlerRequest) => Effect.Effect<import("../EmailOtp.js").EmailOtpStarted, AuthInternalError | AuthRateLimitedError, never>;
|
|
928
928
|
export declare const makeEmailOtpVerifyHandler: (dependencies: {
|
|
929
929
|
readonly emailOtp: EmailOtpLoginService;
|
|
930
930
|
readonly authHttp: AuthHttpService;
|
|
@@ -936,7 +936,7 @@ export declare const makeMagicLinkStartHandler: (dependencies: {
|
|
|
936
936
|
}) => (args_0: MagicLinkStartHandlerRequest) => Effect.Effect<{
|
|
937
937
|
email: Email;
|
|
938
938
|
expiresAt: UnixMillis;
|
|
939
|
-
},
|
|
939
|
+
}, AuthInternalError | AuthRateLimitedError, never>;
|
|
940
940
|
export declare const makeMagicLinkVerifyHandler: (dependencies: {
|
|
941
941
|
readonly magicLink: MagicLinkLoginService;
|
|
942
942
|
readonly authHttp: AuthHttpService;
|
|
@@ -946,9 +946,6 @@ export declare const makeOAuthAuthorizationStartHandler: (dependencies: {
|
|
|
946
946
|
readonly oauthProviders: OAuthProvidersService;
|
|
947
947
|
readonly oauthState: OAuthStateService;
|
|
948
948
|
} & OAuthAuthorizationStartHttpOptions) => (args_0: OAuthAuthorizationStartHandlerRequest) => Effect.Effect<{
|
|
949
|
-
redirectUri: string;
|
|
950
|
-
scopes: readonly string[];
|
|
951
|
-
nonce?: import("../OAuth.js").OAuthNonce | undefined;
|
|
952
949
|
providerId: OAuthProviderId;
|
|
953
950
|
authorizationUrl: string;
|
|
954
951
|
state: import("../OAuth.js").OAuthStateToken;
|
|
@@ -956,6 +953,9 @@ export declare const makeOAuthAuthorizationStartHandler: (dependencies: {
|
|
|
956
953
|
expiresAt: UnixMillis;
|
|
957
954
|
codeChallenge: import("../OAuth.js").OAuthCodeChallenge;
|
|
958
955
|
codeChallengeMethod: "S256";
|
|
956
|
+
nonce?: import("../OAuth.js").OAuthNonce | undefined;
|
|
957
|
+
redirectUri: string;
|
|
958
|
+
scopes: readonly string[];
|
|
959
959
|
}, AuthBadRequestError | AuthInternalError, never>;
|
|
960
960
|
export declare const makeOAuthProviderAuthorizationHandler: (dependencies: {
|
|
961
961
|
readonly authorization: OAuthProviderAuthorizationService;
|
|
@@ -1001,80 +1001,80 @@ export declare const makeOAuthAccountUnlinkHandler: (dependencies: {
|
|
|
1001
1001
|
readonly oauthAccountUnlinking: OAuthAccountUnlinkingService;
|
|
1002
1002
|
readonly sessions: SessionsService;
|
|
1003
1003
|
readonly sessionCookie: SessionCookieService;
|
|
1004
|
-
} & OAuthAccountUnlinkHttpOptions) => (args_0: OAuthAccountUnlinkHandlerRequest) => Effect.Effect<{
|
|
1005
|
-
readonly type: "allow"
|
|
1006
|
-
readonly reason: "owned-account"
|
|
1007
|
-
readonly account: {
|
|
1008
|
-
readonly accountId:
|
|
1009
|
-
readonly providerId:
|
|
1010
|
-
readonly providerAccountId:
|
|
1011
|
-
}
|
|
1012
|
-
readonly remainingAccounts:
|
|
1013
|
-
readonly accountId:
|
|
1014
|
-
readonly providerId:
|
|
1015
|
-
readonly providerAccountId:
|
|
1016
|
-
}
|
|
1017
|
-
readonly unlinked:
|
|
1018
|
-
} | {
|
|
1019
|
-
readonly type: "requires-step-up"
|
|
1020
|
-
readonly reason: "step-up-required"
|
|
1021
|
-
readonly account: {
|
|
1022
|
-
readonly accountId:
|
|
1023
|
-
readonly providerId:
|
|
1024
|
-
readonly providerAccountId:
|
|
1025
|
-
}
|
|
1026
|
-
readonly remainingAccounts:
|
|
1027
|
-
readonly accountId:
|
|
1028
|
-
readonly providerId:
|
|
1029
|
-
readonly providerAccountId:
|
|
1030
|
-
}
|
|
1031
|
-
} | {
|
|
1032
|
-
readonly type: "deny-not-found"
|
|
1033
|
-
readonly reason: "provider-account-not-found"
|
|
1034
|
-
readonly providerId:
|
|
1035
|
-
readonly providerAccountId:
|
|
1036
|
-
} | {
|
|
1037
|
-
readonly type: "deny-not-owner"
|
|
1038
|
-
readonly reason: "provider-account-linked-to-different-user"
|
|
1039
|
-
readonly providerId:
|
|
1040
|
-
readonly providerAccountId:
|
|
1041
|
-
} | {
|
|
1042
|
-
readonly type: "deny-last-account"
|
|
1043
|
-
readonly reason: "last-linked-account"
|
|
1044
|
-
readonly account: {
|
|
1045
|
-
readonly accountId:
|
|
1046
|
-
readonly providerId:
|
|
1047
|
-
readonly providerAccountId:
|
|
1048
|
-
}
|
|
1049
|
-
},
|
|
1004
|
+
} & OAuthAccountUnlinkHttpOptions) => (args_0: OAuthAccountUnlinkHandlerRequest) => Effect.Effect<Schema.Struct.ReadonlySide<{
|
|
1005
|
+
readonly type: Schema.Literal<"allow">;
|
|
1006
|
+
readonly reason: Schema.Literal<"owned-account">;
|
|
1007
|
+
readonly account: Schema.Struct<{
|
|
1008
|
+
readonly accountId: Schema.brand<Schema.String, "auth/OAuthAccountId">;
|
|
1009
|
+
readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
|
|
1010
|
+
readonly providerAccountId: Schema.String;
|
|
1011
|
+
}>;
|
|
1012
|
+
readonly remainingAccounts: Schema.$Array<Schema.Struct<{
|
|
1013
|
+
readonly accountId: Schema.brand<Schema.String, "auth/OAuthAccountId">;
|
|
1014
|
+
readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
|
|
1015
|
+
readonly providerAccountId: Schema.String;
|
|
1016
|
+
}>>;
|
|
1017
|
+
readonly unlinked: Schema.Boolean;
|
|
1018
|
+
}, "Type"> | Schema.Struct.ReadonlySide<{
|
|
1019
|
+
readonly type: Schema.Literal<"requires-step-up">;
|
|
1020
|
+
readonly reason: Schema.Literal<"step-up-required">;
|
|
1021
|
+
readonly account: Schema.Struct<{
|
|
1022
|
+
readonly accountId: Schema.brand<Schema.String, "auth/OAuthAccountId">;
|
|
1023
|
+
readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
|
|
1024
|
+
readonly providerAccountId: Schema.String;
|
|
1025
|
+
}>;
|
|
1026
|
+
readonly remainingAccounts: Schema.$Array<Schema.Struct<{
|
|
1027
|
+
readonly accountId: Schema.brand<Schema.String, "auth/OAuthAccountId">;
|
|
1028
|
+
readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
|
|
1029
|
+
readonly providerAccountId: Schema.String;
|
|
1030
|
+
}>>;
|
|
1031
|
+
}, "Type"> | Schema.Struct.ReadonlySide<{
|
|
1032
|
+
readonly type: Schema.Literal<"deny-not-found">;
|
|
1033
|
+
readonly reason: Schema.Literal<"provider-account-not-found">;
|
|
1034
|
+
readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
|
|
1035
|
+
readonly providerAccountId: Schema.String;
|
|
1036
|
+
}, "Type"> | Schema.Struct.ReadonlySide<{
|
|
1037
|
+
readonly type: Schema.Literal<"deny-not-owner">;
|
|
1038
|
+
readonly reason: Schema.Literal<"provider-account-linked-to-different-user">;
|
|
1039
|
+
readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
|
|
1040
|
+
readonly providerAccountId: Schema.String;
|
|
1041
|
+
}, "Type"> | Schema.Struct.ReadonlySide<{
|
|
1042
|
+
readonly type: Schema.Literal<"deny-last-account">;
|
|
1043
|
+
readonly reason: Schema.Literal<"last-linked-account">;
|
|
1044
|
+
readonly account: Schema.Struct<{
|
|
1045
|
+
readonly accountId: Schema.brand<Schema.String, "auth/OAuthAccountId">;
|
|
1046
|
+
readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
|
|
1047
|
+
readonly providerAccountId: Schema.String;
|
|
1048
|
+
}>;
|
|
1049
|
+
}, "Type">, AuthInternalError | AuthUnauthenticatedError, never>;
|
|
1050
1050
|
export declare const makeOAuthLinkConfirmationStartHandler: (dependencies: {
|
|
1051
1051
|
readonly oauthLinkConfirmation: OAuthLinkConfirmationService;
|
|
1052
|
-
} & OAuthLinkConfirmationStartHttpOptions) => (args_0: OAuthLinkConfirmationStartHandlerRequest) => Effect.Effect<{
|
|
1053
|
-
readonly challengeId:
|
|
1054
|
-
readonly userId:
|
|
1055
|
-
readonly identity: {
|
|
1056
|
-
readonly providerId:
|
|
1057
|
-
readonly providerAccountId:
|
|
1058
|
-
readonly email
|
|
1059
|
-
readonly emailVerified
|
|
1060
|
-
}
|
|
1061
|
-
readonly reason:
|
|
1062
|
-
readonly expiresAt:
|
|
1063
|
-
}, AuthBadRequestError |
|
|
1052
|
+
} & OAuthLinkConfirmationStartHttpOptions) => (args_0: OAuthLinkConfirmationStartHandlerRequest) => Effect.Effect<Schema.Struct.ReadonlySide<{
|
|
1053
|
+
readonly challengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
|
|
1054
|
+
readonly userId: Schema.brand<Schema.String, "auth/UserId">;
|
|
1055
|
+
readonly identity: Schema.Struct<{
|
|
1056
|
+
readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
|
|
1057
|
+
readonly providerAccountId: Schema.String;
|
|
1058
|
+
readonly email: Schema.optional<Schema.brand<Schema.String, "auth/Email">>;
|
|
1059
|
+
readonly emailVerified: Schema.optional<Schema.Boolean>;
|
|
1060
|
+
}>;
|
|
1061
|
+
readonly reason: Schema.String;
|
|
1062
|
+
readonly expiresAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
1063
|
+
}, "Type">, AuthBadRequestError | AuthInternalError | AuthUnauthenticatedError, never>;
|
|
1064
1064
|
export declare const makeOAuthLinkConfirmationInspectHandler: (dependencies: {
|
|
1065
1065
|
readonly oauthLinkConfirmation: OAuthLinkConfirmationService;
|
|
1066
|
-
}) => (args_0: OAuthLinkConfirmationInspectHandlerRequest) => Effect.Effect<{
|
|
1067
|
-
readonly challengeId:
|
|
1068
|
-
readonly userId:
|
|
1069
|
-
readonly identity: {
|
|
1070
|
-
readonly providerId:
|
|
1071
|
-
readonly providerAccountId:
|
|
1072
|
-
readonly email
|
|
1073
|
-
readonly emailVerified
|
|
1074
|
-
}
|
|
1075
|
-
readonly reason:
|
|
1076
|
-
readonly expiresAt:
|
|
1077
|
-
}, AuthBadRequestError | AuthInternalError, never>;
|
|
1066
|
+
}) => (args_0: OAuthLinkConfirmationInspectHandlerRequest) => Effect.Effect<Schema.Struct.ReadonlySide<{
|
|
1067
|
+
readonly challengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
|
|
1068
|
+
readonly userId: Schema.brand<Schema.String, "auth/UserId">;
|
|
1069
|
+
readonly identity: Schema.Struct<{
|
|
1070
|
+
readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
|
|
1071
|
+
readonly providerAccountId: Schema.String;
|
|
1072
|
+
readonly email: Schema.optional<Schema.brand<Schema.String, "auth/Email">>;
|
|
1073
|
+
readonly emailVerified: Schema.optional<Schema.Boolean>;
|
|
1074
|
+
}>;
|
|
1075
|
+
readonly reason: Schema.String;
|
|
1076
|
+
readonly expiresAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
1077
|
+
}, "Type">, AuthBadRequestError | AuthInternalError, never>;
|
|
1078
1078
|
export declare const makeOAuthLinkConfirmationConfirmHandler: (dependencies: {
|
|
1079
1079
|
readonly oauthLinkConfirmation: OAuthLinkConfirmationService;
|
|
1080
1080
|
} & OAuthLinkConfirmationConfirmHttpOptions) => (args_0: OAuthLinkConfirmationConfirmHandlerRequest) => Effect.Effect<{
|
|
@@ -1087,13 +1087,13 @@ export declare const makeOAuthLinkConfirmationConfirmHandler: (dependencies: {
|
|
|
1087
1087
|
readonly emailVerified?: boolean | undefined;
|
|
1088
1088
|
};
|
|
1089
1089
|
readonly reason: string;
|
|
1090
|
+
readonly existingAccount?: Schema.Struct.ReadonlySide<{
|
|
1091
|
+
readonly accountId: Schema.brand<Schema.String, "auth/OAuthAccountId">;
|
|
1092
|
+
readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
|
|
1093
|
+
readonly providerAccountId: Schema.String;
|
|
1094
|
+
}, "Type"> | undefined;
|
|
1090
1095
|
readonly linked: boolean;
|
|
1091
|
-
|
|
1092
|
-
readonly accountId: string & import("effect/Brand").Brand<"auth/OAuthAccountId">;
|
|
1093
|
-
readonly providerId: string & import("effect/Brand").Brand<"auth/OAuthProviderId">;
|
|
1094
|
-
readonly providerAccountId: string;
|
|
1095
|
-
} | undefined;
|
|
1096
|
-
}, AuthBadRequestError | AuthUnauthenticatedError | AuthInternalError, never>;
|
|
1096
|
+
}, AuthBadRequestError | AuthInternalError | AuthUnauthenticatedError, never>;
|
|
1097
1097
|
export declare const makePasskeyRegistrationStartHandler: (dependencies: {
|
|
1098
1098
|
readonly passkeyOptions: PasskeyOptionsService;
|
|
1099
1099
|
} & PasskeyRegistrationStartHttpOptions) => (args_0: PasskeyRegistrationStartHandlerRequest) => Effect.Effect<import("../Passkey.js").StartedPasskeyRegistration, AuthInternalError, never>;
|
|
@@ -1117,95 +1117,95 @@ export declare const makePasskeyCredentialListHandler: (dependencies: {
|
|
|
1117
1117
|
readonly sessionCookie: SessionCookieService;
|
|
1118
1118
|
}) => (args_0: PasskeyCredentialListHandlerRequest) => Effect.Effect<{
|
|
1119
1119
|
credentials: {
|
|
1120
|
-
metadata?: Readonly<Record<string, unknown>> | undefined;
|
|
1121
|
-
revokedAt?: UnixMillis | undefined;
|
|
1122
|
-
lastUsedAt?: UnixMillis | undefined;
|
|
1123
|
-
createdAt: UnixMillis;
|
|
1124
|
-
backedUp?: boolean | undefined;
|
|
1125
|
-
transports?: readonly import("../Passkey.js").PasskeyTransport[] | undefined;
|
|
1126
1120
|
credentialId: PasskeyCredentialId;
|
|
1121
|
+
transports?: readonly import("../Passkey.js").PasskeyTransport[] | undefined;
|
|
1122
|
+
backedUp?: boolean | undefined;
|
|
1123
|
+
createdAt: UnixMillis;
|
|
1124
|
+
lastUsedAt?: UnixMillis | undefined;
|
|
1125
|
+
revokedAt?: UnixMillis | undefined;
|
|
1126
|
+
metadata?: Readonly<Record<string, unknown>> | undefined;
|
|
1127
1127
|
}[];
|
|
1128
|
-
},
|
|
1128
|
+
}, AuthInternalError | AuthUnauthenticatedError, never>;
|
|
1129
1129
|
export declare const makePasskeyCredentialRevokeHandler: (dependencies: {
|
|
1130
1130
|
readonly passkeyCredentialManagement: PasskeyCredentialManagementService;
|
|
1131
1131
|
readonly sessions: SessionsService;
|
|
1132
1132
|
readonly sessionCookie: SessionCookieService;
|
|
1133
|
-
}) => (args_0: PasskeyCredentialRevokeHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthBadRequestError |
|
|
1133
|
+
}) => (args_0: PasskeyCredentialRevokeHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthBadRequestError | AuthInternalError | AuthUnauthenticatedError, never>;
|
|
1134
1134
|
export declare const makeTotpEnrollmentStartHandler: (dependencies: {
|
|
1135
1135
|
readonly totpFactorManagement: TotpFactorManagementService;
|
|
1136
1136
|
readonly sessions: SessionsService;
|
|
1137
1137
|
readonly sessionCookie: SessionCookieService;
|
|
1138
1138
|
} & TotpEnrollmentStartHttpOptions) => (args_0: TotpEnrollmentStartHandlerRequest) => Effect.Effect<{
|
|
1139
1139
|
factor: {
|
|
1140
|
-
metadata?: Readonly<Record<string, unknown>> | undefined;
|
|
1141
|
-
revokedAt?: UnixMillis | undefined;
|
|
1142
|
-
lastUsedAt?: UnixMillis | undefined;
|
|
1143
|
-
confirmedAt?: UnixMillis | undefined;
|
|
1144
1140
|
factorId: import("../Identifiers.js").CredentialId;
|
|
1145
1141
|
algorithm: TotpAlgorithm;
|
|
1146
1142
|
digits: number;
|
|
1147
1143
|
period: number;
|
|
1148
1144
|
createdAt: UnixMillis;
|
|
1145
|
+
confirmedAt?: UnixMillis | undefined;
|
|
1146
|
+
lastUsedAt?: UnixMillis | undefined;
|
|
1147
|
+
revokedAt?: UnixMillis | undefined;
|
|
1148
|
+
metadata?: Readonly<Record<string, unknown>> | undefined;
|
|
1149
1149
|
};
|
|
1150
1150
|
secret: import("../Totp.js").TotpSecret;
|
|
1151
1151
|
uri: string;
|
|
1152
|
-
}, AuthBadRequestError |
|
|
1152
|
+
}, AuthBadRequestError | AuthInternalError | AuthUnauthenticatedError, never>;
|
|
1153
1153
|
export declare const makeTotpEnrollmentConfirmHandler: (dependencies: {
|
|
1154
1154
|
readonly totpFactorManagement: TotpFactorManagementService;
|
|
1155
1155
|
readonly sessions: SessionsService;
|
|
1156
1156
|
readonly sessionCookie: SessionCookieService;
|
|
1157
1157
|
} & TotpCodeHttpOptions) => (args_0: TotpEnrollmentConfirmHandlerRequest) => Effect.Effect<{
|
|
1158
|
-
metadata?: Readonly<Record<string, unknown>> | undefined;
|
|
1159
|
-
revokedAt?: UnixMillis | undefined;
|
|
1160
|
-
lastUsedAt?: UnixMillis | undefined;
|
|
1161
|
-
confirmedAt?: UnixMillis | undefined;
|
|
1162
1158
|
factorId: import("../Identifiers.js").CredentialId;
|
|
1163
1159
|
algorithm: TotpAlgorithm;
|
|
1164
1160
|
digits: number;
|
|
1165
1161
|
period: number;
|
|
1166
1162
|
createdAt: UnixMillis;
|
|
1167
|
-
|
|
1163
|
+
confirmedAt?: UnixMillis | undefined;
|
|
1164
|
+
lastUsedAt?: UnixMillis | undefined;
|
|
1165
|
+
revokedAt?: UnixMillis | undefined;
|
|
1166
|
+
metadata?: Readonly<Record<string, unknown>> | undefined;
|
|
1167
|
+
}, AuthBadRequestError | AuthInternalError | AuthUnauthenticatedError, never>;
|
|
1168
1168
|
export declare const makeTotpVerifyHandler: (dependencies: {
|
|
1169
1169
|
readonly totpFactorManagement: TotpFactorManagementService;
|
|
1170
1170
|
readonly sessions: SessionsService;
|
|
1171
1171
|
readonly sessionCookie: SessionCookieService;
|
|
1172
1172
|
} & TotpCodeHttpOptions) => (args_0: TotpVerifyHandlerRequest) => Effect.Effect<{
|
|
1173
|
-
|
|
1173
|
+
valid: boolean;
|
|
1174
1174
|
factor?: {
|
|
1175
|
-
metadata?: Readonly<Record<string, unknown>> | undefined;
|
|
1176
|
-
revokedAt?: UnixMillis | undefined;
|
|
1177
|
-
lastUsedAt?: UnixMillis | undefined;
|
|
1178
|
-
confirmedAt?: UnixMillis | undefined;
|
|
1179
1175
|
factorId: import("../Identifiers.js").CredentialId;
|
|
1180
1176
|
algorithm: TotpAlgorithm;
|
|
1181
1177
|
digits: number;
|
|
1182
1178
|
period: number;
|
|
1183
1179
|
createdAt: UnixMillis;
|
|
1180
|
+
confirmedAt?: UnixMillis | undefined;
|
|
1181
|
+
lastUsedAt?: UnixMillis | undefined;
|
|
1182
|
+
revokedAt?: UnixMillis | undefined;
|
|
1183
|
+
metadata?: Readonly<Record<string, unknown>> | undefined;
|
|
1184
1184
|
} | undefined;
|
|
1185
|
-
|
|
1186
|
-
},
|
|
1185
|
+
delta?: number | undefined;
|
|
1186
|
+
}, AuthInternalError | AuthUnauthenticatedError, never>;
|
|
1187
1187
|
export declare const makeTotpFactorListHandler: (dependencies: {
|
|
1188
1188
|
readonly totpFactorManagement: TotpFactorManagementService;
|
|
1189
1189
|
readonly sessions: SessionsService;
|
|
1190
1190
|
readonly sessionCookie: SessionCookieService;
|
|
1191
1191
|
}) => (args_0: TotpFactorListHandlerRequest) => Effect.Effect<{
|
|
1192
1192
|
factors: {
|
|
1193
|
-
metadata?: Readonly<Record<string, unknown>> | undefined;
|
|
1194
|
-
revokedAt?: UnixMillis | undefined;
|
|
1195
|
-
lastUsedAt?: UnixMillis | undefined;
|
|
1196
|
-
confirmedAt?: UnixMillis | undefined;
|
|
1197
1193
|
factorId: import("../Identifiers.js").CredentialId;
|
|
1198
1194
|
algorithm: TotpAlgorithm;
|
|
1199
1195
|
digits: number;
|
|
1200
1196
|
period: number;
|
|
1201
1197
|
createdAt: UnixMillis;
|
|
1198
|
+
confirmedAt?: UnixMillis | undefined;
|
|
1199
|
+
lastUsedAt?: UnixMillis | undefined;
|
|
1200
|
+
revokedAt?: UnixMillis | undefined;
|
|
1201
|
+
metadata?: Readonly<Record<string, unknown>> | undefined;
|
|
1202
1202
|
}[];
|
|
1203
|
-
},
|
|
1203
|
+
}, AuthInternalError | AuthUnauthenticatedError, never>;
|
|
1204
1204
|
export declare const makeTotpFactorRevokeHandler: (dependencies: {
|
|
1205
1205
|
readonly totpFactorManagement: TotpFactorManagementService;
|
|
1206
1206
|
readonly sessions: SessionsService;
|
|
1207
1207
|
readonly sessionCookie: SessionCookieService;
|
|
1208
|
-
}) => (args_0: TotpFactorRevokeHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthBadRequestError |
|
|
1208
|
+
}) => (args_0: TotpFactorRevokeHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthBadRequestError | AuthInternalError | AuthUnauthenticatedError, never>;
|
|
1209
1209
|
export declare const makeRecoveryCodeGenerateHandler: (dependencies: {
|
|
1210
1210
|
readonly recoveryCodeManagement: RecoveryCodeManagementService;
|
|
1211
1211
|
readonly sessions: SessionsService;
|
|
@@ -1213,45 +1213,45 @@ export declare const makeRecoveryCodeGenerateHandler: (dependencies: {
|
|
|
1213
1213
|
} & RecoveryCodeGenerateHttpOptions) => (args_0: RecoveryCodeGenerateHandlerRequest) => Effect.Effect<{
|
|
1214
1214
|
codes: import("../RecoveryCode.js").RecoveryCode[];
|
|
1215
1215
|
records: {
|
|
1216
|
-
metadata?: Readonly<Record<string, unknown>> | undefined;
|
|
1217
|
-
revokedAt?: UnixMillis | undefined;
|
|
1218
|
-
usedAt?: UnixMillis | undefined;
|
|
1219
1216
|
codeId: import("../Identifiers.js").CredentialId;
|
|
1220
1217
|
createdAt: UnixMillis;
|
|
1218
|
+
usedAt?: UnixMillis | undefined;
|
|
1219
|
+
revokedAt?: UnixMillis | undefined;
|
|
1220
|
+
metadata?: Readonly<Record<string, unknown>> | undefined;
|
|
1221
1221
|
}[];
|
|
1222
|
-
}, AuthBadRequestError |
|
|
1222
|
+
}, AuthBadRequestError | AuthInternalError | AuthUnauthenticatedError, never>;
|
|
1223
1223
|
export declare const makeRecoveryCodeVerifyHandler: (dependencies: {
|
|
1224
1224
|
readonly recoveryCodeManagement: RecoveryCodeManagementService;
|
|
1225
1225
|
readonly sessions: SessionsService;
|
|
1226
1226
|
readonly sessionCookie: SessionCookieService;
|
|
1227
1227
|
}) => (args_0: RecoveryCodeVerifyHandlerRequest) => Effect.Effect<{
|
|
1228
|
+
valid: boolean;
|
|
1228
1229
|
code?: {
|
|
1229
|
-
metadata?: Readonly<Record<string, unknown>> | undefined;
|
|
1230
|
-
revokedAt?: UnixMillis | undefined;
|
|
1231
|
-
usedAt?: UnixMillis | undefined;
|
|
1232
1230
|
codeId: import("../Identifiers.js").CredentialId;
|
|
1233
1231
|
createdAt: UnixMillis;
|
|
1232
|
+
usedAt?: UnixMillis | undefined;
|
|
1233
|
+
revokedAt?: UnixMillis | undefined;
|
|
1234
|
+
metadata?: Readonly<Record<string, unknown>> | undefined;
|
|
1234
1235
|
} | undefined;
|
|
1235
|
-
|
|
1236
|
-
}, AuthUnauthenticatedError | AuthInternalError, never>;
|
|
1236
|
+
}, AuthInternalError | AuthUnauthenticatedError, never>;
|
|
1237
1237
|
export declare const makeRecoveryCodeListHandler: (dependencies: {
|
|
1238
1238
|
readonly recoveryCodeManagement: RecoveryCodeManagementService;
|
|
1239
1239
|
readonly sessions: SessionsService;
|
|
1240
1240
|
readonly sessionCookie: SessionCookieService;
|
|
1241
1241
|
}) => (args_0: RecoveryCodeListHandlerRequest) => Effect.Effect<{
|
|
1242
1242
|
codes: {
|
|
1243
|
-
metadata?: Readonly<Record<string, unknown>> | undefined;
|
|
1244
|
-
revokedAt?: UnixMillis | undefined;
|
|
1245
|
-
usedAt?: UnixMillis | undefined;
|
|
1246
1243
|
codeId: import("../Identifiers.js").CredentialId;
|
|
1247
1244
|
createdAt: UnixMillis;
|
|
1245
|
+
usedAt?: UnixMillis | undefined;
|
|
1246
|
+
revokedAt?: UnixMillis | undefined;
|
|
1247
|
+
metadata?: Readonly<Record<string, unknown>> | undefined;
|
|
1248
1248
|
}[];
|
|
1249
|
-
},
|
|
1249
|
+
}, AuthInternalError | AuthUnauthenticatedError, never>;
|
|
1250
1250
|
export declare const makeRecoveryCodeRevokeHandler: (dependencies: {
|
|
1251
1251
|
readonly recoveryCodeManagement: RecoveryCodeManagementService;
|
|
1252
1252
|
readonly sessions: SessionsService;
|
|
1253
1253
|
readonly sessionCookie: SessionCookieService;
|
|
1254
|
-
}) => (args_0: RecoveryCodeRevokeHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthBadRequestError |
|
|
1254
|
+
}) => (args_0: RecoveryCodeRevokeHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthBadRequestError | AuthInternalError | AuthUnauthenticatedError, never>;
|
|
1255
1255
|
export declare const makeApiKeyCreateHandler: (dependencies: {
|
|
1256
1256
|
readonly apiKeyManagement: ApiKeyManagementService;
|
|
1257
1257
|
readonly sessions: SessionsService;
|
|
@@ -1259,85 +1259,85 @@ export declare const makeApiKeyCreateHandler: (dependencies: {
|
|
|
1259
1259
|
}) => (args_0: ApiKeyCreateHandlerRequest) => Effect.Effect<{
|
|
1260
1260
|
secret: import("../ApiKey.js").ApiKeySecret;
|
|
1261
1261
|
key: {
|
|
1262
|
-
metadata?: Readonly<Record<string, unknown>> | undefined;
|
|
1263
|
-
revokedAt?: UnixMillis | undefined;
|
|
1264
|
-
lastUsedAt?: UnixMillis | undefined;
|
|
1265
|
-
expiresAt?: UnixMillis | undefined;
|
|
1266
1262
|
keyId: ApiKeyId;
|
|
1267
1263
|
prefix: import("../ApiKey.js").ApiKeyPrefix;
|
|
1268
1264
|
scopes: readonly string[];
|
|
1269
1265
|
createdAt: UnixMillis;
|
|
1266
|
+
expiresAt?: UnixMillis | undefined;
|
|
1267
|
+
lastUsedAt?: UnixMillis | undefined;
|
|
1268
|
+
revokedAt?: UnixMillis | undefined;
|
|
1269
|
+
metadata?: Readonly<Record<string, unknown>> | undefined;
|
|
1270
1270
|
};
|
|
1271
|
-
}, AuthBadRequestError |
|
|
1271
|
+
}, AuthBadRequestError | AuthInternalError | AuthUnauthenticatedError, never>;
|
|
1272
1272
|
export declare const makeApiKeyListHandler: (dependencies: {
|
|
1273
1273
|
readonly apiKeyManagement: ApiKeyManagementService;
|
|
1274
1274
|
readonly sessions: SessionsService;
|
|
1275
1275
|
readonly sessionCookie: SessionCookieService;
|
|
1276
1276
|
}) => (args_0: ApiKeyListHandlerRequest) => Effect.Effect<{
|
|
1277
1277
|
keys: {
|
|
1278
|
-
metadata?: Readonly<Record<string, unknown>> | undefined;
|
|
1279
|
-
revokedAt?: UnixMillis | undefined;
|
|
1280
|
-
lastUsedAt?: UnixMillis | undefined;
|
|
1281
|
-
expiresAt?: UnixMillis | undefined;
|
|
1282
1278
|
keyId: ApiKeyId;
|
|
1283
1279
|
prefix: import("../ApiKey.js").ApiKeyPrefix;
|
|
1284
1280
|
scopes: readonly string[];
|
|
1285
1281
|
createdAt: UnixMillis;
|
|
1282
|
+
expiresAt?: UnixMillis | undefined;
|
|
1283
|
+
lastUsedAt?: UnixMillis | undefined;
|
|
1284
|
+
revokedAt?: UnixMillis | undefined;
|
|
1285
|
+
metadata?: Readonly<Record<string, unknown>> | undefined;
|
|
1286
1286
|
}[];
|
|
1287
|
-
},
|
|
1287
|
+
}, AuthInternalError | AuthUnauthenticatedError, never>;
|
|
1288
1288
|
export declare const makeApiKeyRevokeHandler: (dependencies: {
|
|
1289
1289
|
readonly apiKeyManagement: ApiKeyManagementService;
|
|
1290
1290
|
readonly sessions: SessionsService;
|
|
1291
1291
|
readonly sessionCookie: SessionCookieService;
|
|
1292
|
-
}) => (args_0: ApiKeyRevokeHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthBadRequestError |
|
|
1292
|
+
}) => (args_0: ApiKeyRevokeHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthBadRequestError | AuthInternalError | AuthUnauthenticatedError, never>;
|
|
1293
1293
|
export declare const makeRefreshTokenRefreshHandler: (dependencies: {
|
|
1294
1294
|
readonly refreshTokenManagement: RefreshTokenManagementService;
|
|
1295
1295
|
readonly jwtIssuer: JwtIssuerService;
|
|
1296
1296
|
} & RefreshTokenRefreshHttpOptions) => (args_0: RefreshTokenRefreshHandlerRequest) => Effect.Effect<{
|
|
1297
|
+
accessToken: import("../Jwt.js").JwtToken;
|
|
1298
|
+
accessTokenExpiresAt?: UnixMillis | undefined;
|
|
1297
1299
|
refreshToken: string;
|
|
1298
1300
|
refreshTokenRecord: {
|
|
1299
|
-
metadata?: Readonly<Record<string, unknown>> | undefined;
|
|
1300
|
-
reuseDetectedAt?: UnixMillis | undefined;
|
|
1301
|
-
revokedAt?: UnixMillis | undefined;
|
|
1302
|
-
replacedById?: import("../RefreshToken.js").RefreshTokenId | undefined;
|
|
1303
|
-
rotatedAt?: UnixMillis | undefined;
|
|
1304
|
-
lastUsedAt?: UnixMillis | undefined;
|
|
1305
1301
|
tokenId: import("../RefreshToken.js").RefreshTokenId;
|
|
1306
1302
|
familyId: import("../RefreshToken.js").RefreshTokenFamilyId;
|
|
1307
1303
|
createdAt: UnixMillis;
|
|
1308
1304
|
expiresAt: UnixMillis;
|
|
1305
|
+
lastUsedAt?: UnixMillis | undefined;
|
|
1306
|
+
rotatedAt?: UnixMillis | undefined;
|
|
1307
|
+
replacedById?: import("../RefreshToken.js").RefreshTokenId | undefined;
|
|
1308
|
+
revokedAt?: UnixMillis | undefined;
|
|
1309
|
+
reuseDetectedAt?: UnixMillis | undefined;
|
|
1310
|
+
metadata?: Readonly<Record<string, unknown>> | undefined;
|
|
1309
1311
|
};
|
|
1310
|
-
|
|
1311
|
-
accessToken: import("../Jwt.js").JwtToken;
|
|
1312
|
-
}, AuthInvalidCredentialsError | AuthInternalError, never>;
|
|
1312
|
+
}, AuthInternalError | AuthInvalidCredentialsError, never>;
|
|
1313
1313
|
export declare const makeJwtIntrospectHandler: (dependencies: {
|
|
1314
1314
|
readonly jwtRevocation: JwtRevocationService;
|
|
1315
1315
|
} & JwtIntrospectionHttpOptions) => (args_0: JwtIntrospectHandlerRequest) => Effect.Effect<{
|
|
1316
1316
|
readonly active: true;
|
|
1317
|
-
readonly header: {
|
|
1318
|
-
readonly typ: "JWT"
|
|
1319
|
-
readonly alg: "HS256"
|
|
1320
|
-
readonly kid:
|
|
1321
|
-
}
|
|
1317
|
+
readonly header: Schema.Struct.ReadonlySide<{
|
|
1318
|
+
readonly typ: Schema.Literal<"JWT">;
|
|
1319
|
+
readonly alg: Schema.Literals<readonly ["HS256", "RS256", "ES256", "EdDSA"]>;
|
|
1320
|
+
readonly kid: Schema.String;
|
|
1321
|
+
}, "Type">;
|
|
1322
1322
|
readonly claims: {
|
|
1323
1323
|
readonly [x: string]: unknown;
|
|
1324
1324
|
};
|
|
1325
1325
|
readonly key: {
|
|
1326
1326
|
readonly keyId: string;
|
|
1327
|
-
readonly alg: "
|
|
1328
|
-
readonly status: "active" | "
|
|
1327
|
+
readonly alg: "ES256" | "EdDSA" | "HS256" | "RS256";
|
|
1328
|
+
readonly status: "active" | "disabled" | "retired";
|
|
1329
1329
|
readonly createdAt?: (number & import("effect/Brand").Brand<"auth/UnixMillis">) | undefined;
|
|
1330
1330
|
readonly expiresAt?: (number & import("effect/Brand").Brand<"auth/UnixMillis">) | undefined;
|
|
1331
1331
|
readonly metadata?: {
|
|
1332
1332
|
readonly [x: string]: unknown;
|
|
1333
1333
|
} | undefined;
|
|
1334
1334
|
};
|
|
1335
|
-
readonly revoked: false;
|
|
1336
1335
|
readonly jwtId?: string | undefined;
|
|
1337
1336
|
readonly expiresAt?: (number & import("effect/Brand").Brand<"auth/UnixMillis">) | undefined;
|
|
1337
|
+
readonly revoked: false;
|
|
1338
1338
|
} | {
|
|
1339
1339
|
readonly active: false;
|
|
1340
|
-
readonly reason: "
|
|
1340
|
+
readonly reason: "audience_mismatch" | "expired" | "invalid_signature" | "issuer_mismatch" | "malformed" | "not_yet_valid" | "revoked" | "unknown_key" | "unsupported_alg";
|
|
1341
1341
|
readonly jwtId?: string | undefined;
|
|
1342
1342
|
readonly expiresAt?: (number & import("effect/Brand").Brand<"auth/UnixMillis">) | undefined;
|
|
1343
1343
|
readonly revokedAt?: (number & import("effect/Brand").Brand<"auth/UnixMillis">) | undefined;
|
|
@@ -1348,11 +1348,9 @@ export declare const makeJwtRevokeHandler: (dependencies: {
|
|
|
1348
1348
|
}) => (args_0: JwtRevokeHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthBadRequestError | AuthInternalError, never>;
|
|
1349
1349
|
export declare const makeJwtJwksHandler: (dependencies: {
|
|
1350
1350
|
readonly jwks: JwksService;
|
|
1351
|
-
}) => (_: JwtJwksHandlerRequest) => Effect.Effect<{
|
|
1352
|
-
readonly keys:
|
|
1353
|
-
|
|
1354
|
-
}[];
|
|
1355
|
-
}, AuthInternalError, never>;
|
|
1351
|
+
}) => (_: JwtJwksHandlerRequest) => Effect.Effect<Schema.Struct.ReadonlySide<{
|
|
1352
|
+
readonly keys: Schema.$Array<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
1353
|
+
}, "Type">, AuthInternalError, never>;
|
|
1356
1354
|
export declare const makeOidcDiscoveryMetadataHandler: (dependencies: {
|
|
1357
1355
|
readonly metadata: OidcDiscoveryMetadataService;
|
|
1358
1356
|
}) => (_: OidcDiscoveryMetadataHandlerRequest) => Effect.Effect<{
|
|
@@ -1389,24 +1387,24 @@ export declare const makeTotpMfaVerifyHandler: (dependencies: {
|
|
|
1389
1387
|
readonly totpFactorManagement: TotpFactorManagementService;
|
|
1390
1388
|
readonly authFlow: AuthFlowService;
|
|
1391
1389
|
readonly authHttp: AuthHttpService;
|
|
1392
|
-
} & TotpCodeHttpOptions) => (args_0: TotpMfaVerifyHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthBadRequestError |
|
|
1390
|
+
} & TotpCodeHttpOptions) => (args_0: TotpMfaVerifyHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthBadRequestError | AuthInternalError | AuthInvalidCredentialsError | AuthPolicyDeniedError, never>;
|
|
1393
1391
|
export declare const makeTotpMfaVerifyForFlowHandler: (dependencies: {
|
|
1394
1392
|
readonly totpFactorManagement: TotpFactorManagementService;
|
|
1395
1393
|
readonly authFlowState: AuthFlowStateService;
|
|
1396
1394
|
readonly authFlow: AuthFlowService;
|
|
1397
1395
|
readonly authHttp: AuthHttpService;
|
|
1398
|
-
} & TotpCodeHttpOptions) => (args_0: TotpMfaVerifyForFlowHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthBadRequestError |
|
|
1396
|
+
} & TotpCodeHttpOptions) => (args_0: TotpMfaVerifyForFlowHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthBadRequestError | AuthInternalError | AuthInvalidCredentialsError | AuthPolicyDeniedError, never>;
|
|
1399
1397
|
export declare const makeRecoveryCodeMfaVerifyHandler: (dependencies: {
|
|
1400
1398
|
readonly recoveryCodeManagement: RecoveryCodeManagementService;
|
|
1401
1399
|
readonly authFlow: AuthFlowService;
|
|
1402
1400
|
readonly authHttp: AuthHttpService;
|
|
1403
|
-
}) => (args_0: RecoveryCodeMfaVerifyHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthBadRequestError |
|
|
1401
|
+
}) => (args_0: RecoveryCodeMfaVerifyHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthBadRequestError | AuthInternalError | AuthInvalidCredentialsError | AuthPolicyDeniedError, never>;
|
|
1404
1402
|
export declare const makeRecoveryCodeMfaVerifyForFlowHandler: (dependencies: {
|
|
1405
1403
|
readonly recoveryCodeManagement: RecoveryCodeManagementService;
|
|
1406
1404
|
readonly authFlowState: AuthFlowStateService;
|
|
1407
1405
|
readonly authFlow: AuthFlowService;
|
|
1408
1406
|
readonly authHttp: AuthHttpService;
|
|
1409
|
-
}) => (args_0: RecoveryCodeMfaVerifyForFlowHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthBadRequestError |
|
|
1407
|
+
}) => (args_0: RecoveryCodeMfaVerifyForFlowHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthBadRequestError | AuthInternalError | AuthInvalidCredentialsError | AuthPolicyDeniedError, never>;
|
|
1410
1408
|
export declare const makePasskeyMfaStartHandler: (dependencies: {
|
|
1411
1409
|
readonly passkeyOptions: PasskeyOptionsService;
|
|
1412
1410
|
readonly authFlowState: AuthFlowStateService;
|
|
@@ -1415,7 +1413,7 @@ export declare const makePasskeyMfaVerifyHandler: (dependencies: {
|
|
|
1415
1413
|
readonly passkeyVerification: PasskeyVerificationService;
|
|
1416
1414
|
readonly authFlow: AuthFlowService;
|
|
1417
1415
|
readonly authHttp: AuthHttpService;
|
|
1418
|
-
} & PasskeyFinishHttpOptions) => (args_0: PasskeyMfaVerifyHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthBadRequestError |
|
|
1416
|
+
} & PasskeyFinishHttpOptions) => (args_0: PasskeyMfaVerifyHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthBadRequestError | AuthInternalError | AuthPolicyDeniedError, never>;
|
|
1419
1417
|
export declare const makeStepUpOptionsHandler: (dependencies: {
|
|
1420
1418
|
readonly sessions: SessionsService;
|
|
1421
1419
|
readonly sessionCookie: SessionCookieService;
|
|
@@ -1426,45 +1424,45 @@ export declare const makeStepUpOptionsHandler: (dependencies: {
|
|
|
1426
1424
|
factors: {
|
|
1427
1425
|
readonly type: "totp" | "backup-code" | "passkey";
|
|
1428
1426
|
}[];
|
|
1429
|
-
},
|
|
1427
|
+
}, AuthInternalError | AuthUnauthenticatedError, never>;
|
|
1430
1428
|
export declare const makeStepUpTotpVerifyHandler: (dependencies: {
|
|
1431
1429
|
readonly totpFactorManagement: TotpFactorManagementService;
|
|
1432
1430
|
readonly sessions: SessionsService;
|
|
1433
1431
|
readonly sessionCookie: SessionCookieService;
|
|
1434
1432
|
} & TotpCodeHttpOptions) => (args_0: StepUpTotpVerifyHandlerRequest) => Effect.Effect<{
|
|
1435
|
-
mfaVerifiedAt?: UnixMillis | undefined;
|
|
1436
1433
|
type: "authenticated";
|
|
1437
1434
|
expiresAt: number;
|
|
1438
1435
|
aal: import("../Sessions.js").AuthAssuranceLevel;
|
|
1439
1436
|
amr: readonly AuthMethodReference[];
|
|
1440
|
-
|
|
1437
|
+
mfaVerifiedAt?: UnixMillis | undefined;
|
|
1438
|
+
}, AuthInternalError | AuthInvalidCredentialsError | AuthUnauthenticatedError, never>;
|
|
1441
1439
|
export declare const makeStepUpRecoveryCodeVerifyHandler: (dependencies: {
|
|
1442
1440
|
readonly recoveryCodeManagement: RecoveryCodeManagementService;
|
|
1443
1441
|
readonly sessions: SessionsService;
|
|
1444
1442
|
readonly sessionCookie: SessionCookieService;
|
|
1445
1443
|
}) => (args_0: StepUpRecoveryCodeVerifyHandlerRequest) => Effect.Effect<{
|
|
1446
|
-
mfaVerifiedAt?: UnixMillis | undefined;
|
|
1447
1444
|
type: "authenticated";
|
|
1448
1445
|
expiresAt: number;
|
|
1449
1446
|
aal: import("../Sessions.js").AuthAssuranceLevel;
|
|
1450
1447
|
amr: readonly AuthMethodReference[];
|
|
1451
|
-
|
|
1448
|
+
mfaVerifiedAt?: UnixMillis | undefined;
|
|
1449
|
+
}, AuthInternalError | AuthInvalidCredentialsError | AuthUnauthenticatedError, never>;
|
|
1452
1450
|
export declare const makeStepUpPasskeyStartHandler: (dependencies: {
|
|
1453
1451
|
readonly passkeyOptions: PasskeyOptionsService;
|
|
1454
1452
|
readonly sessions: SessionsService;
|
|
1455
1453
|
readonly sessionCookie: SessionCookieService;
|
|
1456
|
-
} & PasskeyAuthenticationStartHttpOptions) => (args_0: StepUpPasskeyStartHandlerRequest) => Effect.Effect<import("../Passkey.js").StartedPasskeyAuthentication, AuthBadRequestError |
|
|
1454
|
+
} & PasskeyAuthenticationStartHttpOptions) => (args_0: StepUpPasskeyStartHandlerRequest) => Effect.Effect<import("../Passkey.js").StartedPasskeyAuthentication, AuthBadRequestError | AuthInternalError | AuthUnauthenticatedError, never>;
|
|
1457
1455
|
export declare const makeStepUpPasskeyVerifyHandler: (dependencies: {
|
|
1458
1456
|
readonly passkeyVerification: PasskeyVerificationService;
|
|
1459
1457
|
readonly sessions: SessionsService;
|
|
1460
1458
|
readonly sessionCookie: SessionCookieService;
|
|
1461
1459
|
} & PasskeyFinishHttpOptions) => (args_0: StepUpPasskeyVerifyHandlerRequest) => Effect.Effect<{
|
|
1462
|
-
mfaVerifiedAt?: UnixMillis | undefined;
|
|
1463
1460
|
type: "authenticated";
|
|
1464
1461
|
expiresAt: number;
|
|
1465
1462
|
aal: import("../Sessions.js").AuthAssuranceLevel;
|
|
1466
1463
|
amr: readonly AuthMethodReference[];
|
|
1467
|
-
|
|
1464
|
+
mfaVerifiedAt?: UnixMillis | undefined;
|
|
1465
|
+
}, AuthBadRequestError | AuthInternalError | AuthPolicyDeniedError | AuthUnauthenticatedError, never>;
|
|
1468
1466
|
export declare const makeLoginApprovalApproveHandler: (dependencies: {
|
|
1469
1467
|
readonly loginApproval: LoginApprovalService;
|
|
1470
1468
|
readonly authFlowState: AuthFlowStateService;
|
|
@@ -1474,21 +1472,36 @@ export declare const makeLoginApprovalApproveHandler: (dependencies: {
|
|
|
1474
1472
|
readonly loginApprovalPendingCookie: LoginApprovalPendingCookieService;
|
|
1475
1473
|
readonly trustedDevice?: TrustedDeviceService;
|
|
1476
1474
|
readonly trustedDeviceCookie?: TrustedDeviceCookieService;
|
|
1477
|
-
}) => (args_0: LoginApprovalApproveHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthBadRequestError |
|
|
1475
|
+
}) => (args_0: LoginApprovalApproveHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthBadRequestError | AuthInternalError | AuthPolicyDeniedError, never>;
|
|
1478
1476
|
export declare const makeLoginApprovalStatusHandler: (dependencies: {
|
|
1479
1477
|
readonly loginApprovalReview?: LoginApprovalReviewService;
|
|
1480
1478
|
}) => (args_0: LoginApprovalStatusHandlerRequest) => Effect.Effect<{
|
|
1481
1479
|
status: "expired" | import("../LoginApproval.js").LoginApprovalReviewStatus;
|
|
1482
1480
|
expiresAt: UnixMillis;
|
|
1483
|
-
}, AuthBadRequestError |
|
|
1481
|
+
}, AuthBadRequestError | AuthInternalError | AuthPolicyDeniedError, never>;
|
|
1484
1482
|
export declare const makeLoginApprovalFinalizeHandler: (dependencies: {
|
|
1485
1483
|
readonly loginApprovalFinalize?: LoginApprovalFinalizeService;
|
|
1486
1484
|
readonly authHttp: AuthHttpService;
|
|
1487
1485
|
readonly loginApprovalPendingCookie: LoginApprovalPendingCookieService;
|
|
1488
1486
|
readonly trustedDevice?: TrustedDeviceService;
|
|
1489
1487
|
readonly trustedDeviceCookie?: TrustedDeviceCookieService;
|
|
1490
|
-
}) => (args_0: LoginApprovalFinalizeHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse,
|
|
1491
|
-
declare const PasswordApi_base: HttpApiGroup.HttpApiGroup<"password", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"
|
|
1488
|
+
}) => (args_0: LoginApprovalFinalizeHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthInternalError | AuthPolicyDeniedError, never>;
|
|
1489
|
+
declare const PasswordApi_base: HttpApiGroup.HttpApiGroup<"password", 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<{
|
|
1490
|
+
readonly currentPassword: Schema.String;
|
|
1491
|
+
readonly newPassword: Schema.String;
|
|
1492
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/unstable/httpapi/HttpApiSchema").NoContent>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"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<{
|
|
1493
|
+
readonly password: Schema.String;
|
|
1494
|
+
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
1495
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/unstable/httpapi/HttpApiSchema").NoContent>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"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<{
|
|
1496
|
+
readonly email: Schema.brand<Schema.String, "auth/Email">;
|
|
1497
|
+
readonly secret: Schema.optional<Schema.String>;
|
|
1498
|
+
readonly locale: Schema.optional<Schema.String>;
|
|
1499
|
+
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
1500
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/unstable/httpapi/HttpApiSchema").NoContent>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthRateLimitedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthRateLimitMiddleware | AuthSchemaErrorMiddleware, never> | 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<{
|
|
1501
|
+
readonly challengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
|
|
1502
|
+
readonly secret: Schema.String;
|
|
1503
|
+
readonly password: Schema.String;
|
|
1504
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/unstable/httpapi/HttpApiSchema").NoContent>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthRateLimitedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthRateLimitMiddleware | AuthSchemaErrorMiddleware, never> | 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<{
|
|
1492
1505
|
readonly email: Schema.brand<Schema.String, "auth/Email">;
|
|
1493
1506
|
readonly password: Schema.String;
|
|
1494
1507
|
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Union<readonly [Schema.Struct<{
|
|
@@ -1521,7 +1534,7 @@ declare const PasswordApi_base: HttpApiGroup.HttpApiGroup<"password", import("ef
|
|
|
1521
1534
|
}>, Schema.Struct<{
|
|
1522
1535
|
readonly type: Schema.Literal<"requires_passkey_enrollment">;
|
|
1523
1536
|
readonly flowId: Schema.String;
|
|
1524
|
-
}>]>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthInvalidCredentialsError | typeof AuthPolicyDeniedError | typeof AuthRateLimitedError | typeof AuthInternalError>,
|
|
1537
|
+
}>]>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthInvalidCredentialsError | typeof AuthPolicyDeniedError | typeof AuthRateLimitedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthRateLimitMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"signUp", "POST", "/auth/password/sign-up", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
1525
1538
|
readonly email: Schema.brand<Schema.String, "auth/Email">;
|
|
1526
1539
|
readonly password: Schema.String;
|
|
1527
1540
|
readonly emailVerified: Schema.optional<Schema.Boolean>;
|
|
@@ -1556,22 +1569,7 @@ declare const PasswordApi_base: HttpApiGroup.HttpApiGroup<"password", import("ef
|
|
|
1556
1569
|
}>, Schema.Struct<{
|
|
1557
1570
|
readonly type: Schema.Literal<"requires_passkey_enrollment">;
|
|
1558
1571
|
readonly flowId: Schema.String;
|
|
1559
|
-
}>]>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthPolicyDeniedError | typeof AuthRateLimitedError | typeof AuthEmailAlreadyRegisteredError | typeof AuthInternalError>,
|
|
1560
|
-
readonly email: Schema.brand<Schema.String, "auth/Email">;
|
|
1561
|
-
readonly secret: Schema.optional<Schema.String>;
|
|
1562
|
-
readonly locale: Schema.optional<Schema.String>;
|
|
1563
|
-
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
1564
|
-
}>>, 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<{
|
|
1565
|
-
readonly challengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
|
|
1566
|
-
readonly secret: Schema.String;
|
|
1567
|
-
readonly password: Schema.String;
|
|
1568
|
-
}>>, 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<{
|
|
1569
|
-
readonly password: Schema.String;
|
|
1570
|
-
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
1571
|
-
}>>, 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<{
|
|
1572
|
-
readonly currentPassword: Schema.String;
|
|
1573
|
-
readonly newPassword: Schema.String;
|
|
1574
|
-
}>>, 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>;
|
|
1572
|
+
}>]>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthPolicyDeniedError | typeof AuthRateLimitedError | typeof AuthEmailAlreadyRegisteredError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthRateLimitMiddleware | AuthSchemaErrorMiddleware, never>, false>;
|
|
1575
1573
|
export declare class PasswordApi extends PasswordApi_base {
|
|
1576
1574
|
}
|
|
1577
1575
|
declare const SessionApi_base: HttpApiGroup.HttpApiGroup<"session", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"current", "GET", "/auth/session", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
@@ -1612,7 +1610,7 @@ declare const SessionApi_base: HttpApiGroup.HttpApiGroup<"session", import("effe
|
|
|
1612
1610
|
readonly longitude: Schema.optional<Schema.Number>;
|
|
1613
1611
|
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
1614
1612
|
}>>;
|
|
1615
|
-
}>>, 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<{
|
|
1613
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthUnauthenticatedError | typeof AuthInternalError>, never, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"logout", "POST", "/auth/logout", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/unstable/httpapi/HttpApiSchema").NoContent>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthInternalError>, AuthOriginCheckMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"refresh", "POST", "/auth/session/refresh", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
1616
1614
|
readonly type: Schema.Literal<"authenticated">;
|
|
1617
1615
|
readonly userId: Schema.String;
|
|
1618
1616
|
readonly sessionId: Schema.String;
|
|
@@ -1625,7 +1623,7 @@ declare const SessionApi_base: HttpApiGroup.HttpApiGroup<"session", import("effe
|
|
|
1625
1623
|
readonly emailVerified: Schema.optional<Schema.Boolean>;
|
|
1626
1624
|
readonly requirements: Schema.optional<Schema.$Array<Schema.String>>;
|
|
1627
1625
|
}>>;
|
|
1628
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthUnauthenticatedError | typeof AuthInternalError>, AuthOriginCheckMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"
|
|
1626
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthUnauthenticatedError | typeof AuthInternalError>, AuthOriginCheckMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"revoke", "POST", "/auth/sessions/revoke", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
1629
1627
|
readonly sessionId: Schema.brand<Schema.String, "auth/SessionId">;
|
|
1630
1628
|
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/unstable/httpapi/HttpApiSchema").NoContent>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthUnauthenticatedError | typeof AuthInternalError>, AuthOriginCheckMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"revokeOthers", "POST", "/auth/sessions/revoke-others", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/unstable/httpapi/HttpApiSchema").NoContent>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthUnauthenticatedError | typeof AuthInternalError>, AuthOriginCheckMiddleware, never>, false>;
|
|
1631
1629
|
export declare class SessionApi extends SessionApi_base {
|
|
@@ -1651,12 +1649,12 @@ declare const AdminSessionApi_base: HttpApiGroup.HttpApiGroup<"adminSession", im
|
|
|
1651
1649
|
readonly latitude: Schema.optional<Schema.Number>;
|
|
1652
1650
|
readonly longitude: Schema.optional<Schema.Number>;
|
|
1653
1651
|
}>>;
|
|
1654
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthInternalError>,
|
|
1652
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"revoke", "POST", "/auth/admin/sessions/revoke", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
1655
1653
|
readonly userId: Schema.brand<Schema.String, "auth/UserId">;
|
|
1656
1654
|
readonly sessionId: Schema.brand<Schema.String, "auth/SessionId">;
|
|
1657
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/unstable/httpapi/HttpApiSchema").NoContent>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthInternalError>,
|
|
1655
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/unstable/httpapi/HttpApiSchema").NoContent>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"revokeAll", "POST", "/auth/admin/sessions/revoke-all", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
1658
1656
|
readonly userId: Schema.brand<Schema.String, "auth/UserId">;
|
|
1659
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/unstable/httpapi/HttpApiSchema").NoContent>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthInternalError>,
|
|
1657
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/unstable/httpapi/HttpApiSchema").NoContent>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never>, false>;
|
|
1660
1658
|
export declare class AdminSessionApi extends AdminSessionApi_base {
|
|
1661
1659
|
}
|
|
1662
1660
|
declare const AdminSessionHttpApi_base: HttpApi.HttpApi<"AdminSessionHttpApi", typeof AdminSessionApi>;
|
|
@@ -1665,12 +1663,12 @@ export declare class AdminSessionHttpApi extends AdminSessionHttpApi_base {
|
|
|
1665
1663
|
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<{
|
|
1666
1664
|
readonly challengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
|
|
1667
1665
|
readonly secret: Schema.optional<Schema.String>;
|
|
1668
|
-
}>>, 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>,
|
|
1666
|
+
}>>, 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>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, 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<{
|
|
1669
1667
|
readonly userId: Schema.brand<Schema.String, "auth/UserId">;
|
|
1670
1668
|
readonly email: Schema.brand<Schema.String, "auth/Email">;
|
|
1671
1669
|
readonly secret: Schema.optional<Schema.String>;
|
|
1672
1670
|
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
1673
|
-
}>>, 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>,
|
|
1671
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/unstable/httpapi/HttpApiSchema").NoContent>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthRateLimitedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthRateLimitMiddleware | AuthSchemaErrorMiddleware, never>, false>;
|
|
1674
1672
|
export declare class EmailVerificationApi extends EmailVerificationApi_base {
|
|
1675
1673
|
}
|
|
1676
1674
|
declare const EmailOtpApi_base: HttpApiGroup.HttpApiGroup<"emailOtp", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"start", "POST", "/auth/email-otp/start", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
@@ -1682,7 +1680,7 @@ declare const EmailOtpApi_base: HttpApiGroup.HttpApiGroup<"emailOtp", import("ef
|
|
|
1682
1680
|
readonly challengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
|
|
1683
1681
|
readonly email: Schema.brand<Schema.String, "auth/Email">;
|
|
1684
1682
|
readonly expiresAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
1685
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthRateLimitedError | typeof AuthInternalError>,
|
|
1683
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthRateLimitedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthRateLimitMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verify", "POST", "/auth/email-otp/verify", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
1686
1684
|
readonly challengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
|
|
1687
1685
|
readonly secret: Schema.String;
|
|
1688
1686
|
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Union<readonly [Schema.Struct<{
|
|
@@ -1715,7 +1713,7 @@ declare const EmailOtpApi_base: HttpApiGroup.HttpApiGroup<"emailOtp", import("ef
|
|
|
1715
1713
|
}>, Schema.Struct<{
|
|
1716
1714
|
readonly type: Schema.Literal<"requires_passkey_enrollment">;
|
|
1717
1715
|
readonly flowId: Schema.String;
|
|
1718
|
-
}>]>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthInvalidCredentialsError | typeof AuthPolicyDeniedError | typeof AuthRateLimitedError | typeof AuthInternalError>,
|
|
1716
|
+
}>]>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthInvalidCredentialsError | typeof AuthPolicyDeniedError | typeof AuthRateLimitedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthRateLimitMiddleware | AuthSchemaErrorMiddleware, never>, false>;
|
|
1719
1717
|
export declare class EmailOtpApi extends EmailOtpApi_base {
|
|
1720
1718
|
}
|
|
1721
1719
|
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<{
|
|
@@ -1726,7 +1724,7 @@ declare const MagicLinkApi_base: HttpApiGroup.HttpApiGroup<"magicLink", import("
|
|
|
1726
1724
|
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
1727
1725
|
readonly email: Schema.brand<Schema.String, "auth/Email">;
|
|
1728
1726
|
readonly expiresAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
1729
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthRateLimitedError | typeof AuthInternalError>,
|
|
1727
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthRateLimitedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthRateLimitMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verify", "POST", "/auth/magic-link/verify", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
1730
1728
|
readonly challengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
|
|
1731
1729
|
readonly secret: Schema.String;
|
|
1732
1730
|
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Union<readonly [Schema.Struct<{
|
|
@@ -1759,7 +1757,7 @@ declare const MagicLinkApi_base: HttpApiGroup.HttpApiGroup<"magicLink", import("
|
|
|
1759
1757
|
}>, Schema.Struct<{
|
|
1760
1758
|
readonly type: Schema.Literal<"requires_passkey_enrollment">;
|
|
1761
1759
|
readonly flowId: Schema.String;
|
|
1762
|
-
}>]>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthInvalidCredentialsError | typeof AuthPolicyDeniedError | typeof AuthRateLimitedError | typeof AuthInternalError>,
|
|
1760
|
+
}>]>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthInvalidCredentialsError | typeof AuthPolicyDeniedError | typeof AuthRateLimitedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthRateLimitMiddleware | AuthSchemaErrorMiddleware, never>, false>;
|
|
1763
1761
|
export declare class MagicLinkApi extends MagicLinkApi_base {
|
|
1764
1762
|
}
|
|
1765
1763
|
declare const OAuthApi_base: HttpApiGroup.HttpApiGroup<"oauth", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"startAuthorization", "POST", "/auth/oauth/start", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
@@ -1782,7 +1780,7 @@ declare const OAuthApi_base: HttpApiGroup.HttpApiGroup<"oauth", import("effect/u
|
|
|
1782
1780
|
readonly nonce: Schema.optional<Schema.String>;
|
|
1783
1781
|
readonly redirectUri: Schema.String;
|
|
1784
1782
|
readonly scopes: Schema.$Array<Schema.String>;
|
|
1785
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthInternalError>,
|
|
1783
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, 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<{
|
|
1786
1784
|
readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
|
|
1787
1785
|
readonly providerAccountId: Schema.String;
|
|
1788
1786
|
readonly reason: Schema.optional<Schema.String>;
|
|
@@ -1831,18 +1829,9 @@ declare const OAuthApi_base: HttpApiGroup.HttpApiGroup<"oauth", import("effect/u
|
|
|
1831
1829
|
readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
|
|
1832
1830
|
readonly providerAccountId: Schema.String;
|
|
1833
1831
|
}>;
|
|
1834
|
-
}>]>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthUnauthenticatedError | typeof AuthInternalError>,
|
|
1835
|
-
readonly
|
|
1836
|
-
readonly identity: Schema.optional<Schema.Struct<{
|
|
1837
|
-
readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
|
|
1838
|
-
readonly providerAccountId: Schema.String;
|
|
1839
|
-
readonly email: Schema.optional<Schema.brand<Schema.String, "auth/Email">>;
|
|
1840
|
-
readonly emailVerified: Schema.optional<Schema.Boolean>;
|
|
1841
|
-
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
1842
|
-
}>>;
|
|
1843
|
-
readonly reason: Schema.optional<Schema.String>;
|
|
1832
|
+
}>]>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthUnauthenticatedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"inspectLinkConfirmation", "POST", "/auth/oauth/link-confirmation/inspect", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
1833
|
+
readonly challengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
|
|
1844
1834
|
readonly secret: Schema.optional<Schema.String>;
|
|
1845
|
-
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
1846
1835
|
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
1847
1836
|
readonly challengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
|
|
1848
1837
|
readonly userId: Schema.brand<Schema.String, "auth/UserId">;
|
|
@@ -1854,9 +1843,18 @@ declare const OAuthApi_base: HttpApiGroup.HttpApiGroup<"oauth", import("effect/u
|
|
|
1854
1843
|
}>;
|
|
1855
1844
|
readonly reason: Schema.String;
|
|
1856
1845
|
readonly expiresAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
1857
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthInternalError>,
|
|
1858
|
-
readonly
|
|
1846
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"startLinkConfirmation", "POST", "/auth/oauth/link-confirmation/start", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
1847
|
+
readonly userId: Schema.optional<Schema.brand<Schema.String, "auth/UserId">>;
|
|
1848
|
+
readonly identity: Schema.optional<Schema.Struct<{
|
|
1849
|
+
readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
|
|
1850
|
+
readonly providerAccountId: Schema.String;
|
|
1851
|
+
readonly email: Schema.optional<Schema.brand<Schema.String, "auth/Email">>;
|
|
1852
|
+
readonly emailVerified: Schema.optional<Schema.Boolean>;
|
|
1853
|
+
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
1854
|
+
}>>;
|
|
1855
|
+
readonly reason: Schema.optional<Schema.String>;
|
|
1859
1856
|
readonly secret: Schema.optional<Schema.String>;
|
|
1857
|
+
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
1860
1858
|
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
1861
1859
|
readonly challengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
|
|
1862
1860
|
readonly userId: Schema.brand<Schema.String, "auth/UserId">;
|
|
@@ -1868,7 +1866,7 @@ declare const OAuthApi_base: HttpApiGroup.HttpApiGroup<"oauth", import("effect/u
|
|
|
1868
1866
|
}>;
|
|
1869
1867
|
readonly reason: Schema.String;
|
|
1870
1868
|
readonly expiresAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
1871
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthInternalError>,
|
|
1869
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"confirmLinkConfirmation", "POST", "/auth/oauth/link-confirmation/confirm", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
1872
1870
|
readonly challengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
|
|
1873
1871
|
readonly secret: Schema.optional<Schema.String>;
|
|
1874
1872
|
readonly expectedProviderId: Schema.optional<Schema.brand<Schema.String, "auth/OAuthProviderId">>;
|
|
@@ -1889,7 +1887,7 @@ declare const OAuthApi_base: HttpApiGroup.HttpApiGroup<"oauth", import("effect/u
|
|
|
1889
1887
|
readonly providerAccountId: Schema.String;
|
|
1890
1888
|
}>>;
|
|
1891
1889
|
readonly linked: Schema.Boolean;
|
|
1892
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthInternalError>,
|
|
1890
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never>, false>;
|
|
1893
1891
|
export declare class OAuthApi extends OAuthApi_base {
|
|
1894
1892
|
}
|
|
1895
1893
|
declare const OAuthTokenApi_base: HttpApiGroup.HttpApiGroup<"oauthToken", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"token", "POST", "/auth/oauth/token", 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<{
|
|
@@ -1900,7 +1898,7 @@ declare const OAuthTokenApi_base: HttpApiGroup.HttpApiGroup<"oauthToken", import
|
|
|
1900
1898
|
readonly id_token: Schema.optional<Schema.String>;
|
|
1901
1899
|
readonly scope: Schema.optional<Schema.String>;
|
|
1902
1900
|
readonly extra: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
1903
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthInternalError | typeof OAuthTokenEndpointError>, AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"introspect", "POST", "/auth/oauth/introspect", 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<{
|
|
1901
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthInternalError | typeof OAuthTokenEndpointError>, AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"revoke", "POST", "/auth/oauth/revoke", 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 | typeof OAuthTokenRevocationEndpointError>, AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"introspect", "POST", "/auth/oauth/introspect", 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<{
|
|
1904
1902
|
readonly active: Schema.Boolean;
|
|
1905
1903
|
readonly scope: Schema.optional<Schema.String>;
|
|
1906
1904
|
readonly client_id: Schema.optional<Schema.String>;
|
|
@@ -1914,7 +1912,7 @@ declare const OAuthTokenApi_base: HttpApiGroup.HttpApiGroup<"oauthToken", import
|
|
|
1914
1912
|
readonly iss: Schema.optional<Schema.String>;
|
|
1915
1913
|
readonly jti: Schema.optional<Schema.String>;
|
|
1916
1914
|
readonly extra: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
1917
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthInternalError | typeof OAuthTokenIntrospectionEndpointError>, AuthSchemaErrorMiddleware, never
|
|
1915
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthInternalError | typeof OAuthTokenIntrospectionEndpointError>, AuthSchemaErrorMiddleware, never>, false>;
|
|
1918
1916
|
export declare class OAuthTokenApi extends OAuthTokenApi_base {
|
|
1919
1917
|
}
|
|
1920
1918
|
declare const OAuthTokenHttpApi_base: HttpApi.HttpApi<"OAuthTokenHttpApi", typeof OAuthTokenApi>;
|
|
@@ -1949,13 +1947,7 @@ declare const LoginApprovalApi_base: HttpApiGroup.HttpApiGroup<"loginApproval",
|
|
|
1949
1947
|
readonly emailVerified: Schema.optional<Schema.Boolean>;
|
|
1950
1948
|
readonly requirements: Schema.optional<Schema.$Array<Schema.String>>;
|
|
1951
1949
|
}>>;
|
|
1952
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthPolicyDeniedError | typeof AuthInternalError>,
|
|
1953
|
-
readonly flowId: Schema.brand<Schema.String, "auth/AuthFlowId">;
|
|
1954
|
-
readonly approvalChallengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
|
|
1955
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
1956
|
-
readonly status: Schema.Literals<readonly ["pending", "approved", "denied", "expired"]>;
|
|
1957
|
-
readonly expiresAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
1958
|
-
}>>, 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<{
|
|
1950
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthPolicyDeniedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"finalize", "POST", "/auth/login-approval/finalize", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
1959
1951
|
readonly flowId: Schema.brand<Schema.String, "auth/AuthFlowId">;
|
|
1960
1952
|
readonly approvalChallengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
|
|
1961
1953
|
readonly rememberDevice: Schema.optional<Schema.Boolean>;
|
|
@@ -1969,19 +1961,50 @@ declare const LoginApprovalApi_base: HttpApiGroup.HttpApiGroup<"loginApproval",
|
|
|
1969
1961
|
readonly emailVerified: Schema.optional<Schema.Boolean>;
|
|
1970
1962
|
readonly requirements: Schema.optional<Schema.$Array<Schema.String>>;
|
|
1971
1963
|
}>>;
|
|
1972
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthPolicyDeniedError | typeof AuthInternalError>, AuthSchemaErrorMiddleware |
|
|
1964
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthPolicyDeniedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"status", "POST", "/auth/login-approval/status", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
1965
|
+
readonly flowId: Schema.brand<Schema.String, "auth/AuthFlowId">;
|
|
1966
|
+
readonly approvalChallengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
|
|
1967
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
1968
|
+
readonly status: Schema.Literals<readonly ["pending", "approved", "denied", "expired"]>;
|
|
1969
|
+
readonly expiresAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
1970
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthPolicyDeniedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never>, false>;
|
|
1973
1971
|
export declare class LoginApprovalApi extends LoginApprovalApi_base {
|
|
1974
1972
|
}
|
|
1975
|
-
declare const MfaApi_base: HttpApiGroup.HttpApiGroup<"mfa", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"
|
|
1973
|
+
declare const MfaApi_base: HttpApiGroup.HttpApiGroup<"mfa", 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<{
|
|
1974
|
+
readonly flowId: Schema.brand<Schema.String, "auth/AuthFlowId">;
|
|
1975
|
+
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
1976
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
1977
|
+
readonly challengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
|
|
1978
|
+
readonly expiresAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
1979
|
+
readonly publicKey: Schema.Struct<{
|
|
1980
|
+
readonly challenge: Schema.String;
|
|
1981
|
+
readonly rpId: Schema.String;
|
|
1982
|
+
readonly timeout: Schema.optional<Schema.Number>;
|
|
1983
|
+
readonly allowCredentials: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1984
|
+
readonly type: Schema.Literal<"public-key">;
|
|
1985
|
+
readonly id: Schema.String;
|
|
1986
|
+
readonly transports: Schema.optional<Schema.$Array<Schema.String>>;
|
|
1987
|
+
}>>>;
|
|
1988
|
+
readonly userVerification: Schema.optional<Schema.Literals<readonly ["required", "preferred", "discouraged"]>>;
|
|
1989
|
+
}>;
|
|
1990
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"options", "POST", "/auth/mfa/options", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
1976
1991
|
readonly flowId: Schema.brand<Schema.String, "auth/AuthFlowId">;
|
|
1977
1992
|
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
1978
1993
|
readonly factors: Schema.$Array<Schema.Struct<{
|
|
1979
1994
|
readonly type: Schema.Literals<readonly ["totp", "backup-code", "passkey"]>;
|
|
1980
1995
|
}>>;
|
|
1981
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthInternalError>,
|
|
1996
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verifyPasskey", "POST", "/auth/mfa/passkey/verify", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
1982
1997
|
readonly flowId: Schema.brand<Schema.String, "auth/AuthFlowId">;
|
|
1983
|
-
readonly
|
|
1984
|
-
readonly
|
|
1998
|
+
readonly challengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
|
|
1999
|
+
readonly credential: Schema.Struct<{
|
|
2000
|
+
readonly id: Schema.String;
|
|
2001
|
+
readonly rawId: Schema.optional<Schema.String>;
|
|
2002
|
+
readonly type: Schema.Literal<"public-key">;
|
|
2003
|
+
readonly response: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
2004
|
+
readonly authenticatorAttachment: Schema.optional<Schema.String>;
|
|
2005
|
+
readonly clientExtensionResults: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
2006
|
+
}>;
|
|
2007
|
+
readonly userId: Schema.optional<Schema.brand<Schema.String, "auth/UserId">>;
|
|
1985
2008
|
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
1986
2009
|
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
1987
2010
|
readonly type: Schema.Literal<"authenticated">;
|
|
@@ -1993,8 +2016,9 @@ declare const MfaApi_base: HttpApiGroup.HttpApiGroup<"mfa", import("effect/unsta
|
|
|
1993
2016
|
readonly emailVerified: Schema.optional<Schema.Boolean>;
|
|
1994
2017
|
readonly requirements: Schema.optional<Schema.$Array<Schema.String>>;
|
|
1995
2018
|
}>>;
|
|
1996
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof
|
|
2019
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthPolicyDeniedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verifyRecoveryCode", "POST", "/auth/mfa/recovery-code/verify", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
1997
2020
|
readonly flowId: Schema.brand<Schema.String, "auth/AuthFlowId">;
|
|
2021
|
+
readonly userId: Schema.brand<Schema.String, "auth/UserId">;
|
|
1998
2022
|
readonly code: Schema.String;
|
|
1999
2023
|
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
2000
2024
|
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
@@ -2007,9 +2031,8 @@ declare const MfaApi_base: HttpApiGroup.HttpApiGroup<"mfa", import("effect/unsta
|
|
|
2007
2031
|
readonly emailVerified: Schema.optional<Schema.Boolean>;
|
|
2008
2032
|
readonly requirements: Schema.optional<Schema.$Array<Schema.String>>;
|
|
2009
2033
|
}>>;
|
|
2010
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthInvalidCredentialsError | typeof AuthPolicyDeniedError | typeof AuthInternalError>,
|
|
2034
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthInvalidCredentialsError | typeof AuthPolicyDeniedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verifyRecoveryCodeForFlow", "POST", "/auth/mfa/recovery-code/verify-flow", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
2011
2035
|
readonly flowId: Schema.brand<Schema.String, "auth/AuthFlowId">;
|
|
2012
|
-
readonly userId: Schema.brand<Schema.String, "auth/UserId">;
|
|
2013
2036
|
readonly code: Schema.String;
|
|
2014
2037
|
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
2015
2038
|
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
@@ -2022,8 +2045,9 @@ declare const MfaApi_base: HttpApiGroup.HttpApiGroup<"mfa", import("effect/unsta
|
|
|
2022
2045
|
readonly emailVerified: Schema.optional<Schema.Boolean>;
|
|
2023
2046
|
readonly requirements: Schema.optional<Schema.$Array<Schema.String>>;
|
|
2024
2047
|
}>>;
|
|
2025
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthInvalidCredentialsError | typeof AuthPolicyDeniedError | typeof AuthInternalError>,
|
|
2048
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthInvalidCredentialsError | typeof AuthPolicyDeniedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verifyTotp", "POST", "/auth/mfa/totp/verify", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
2026
2049
|
readonly flowId: Schema.brand<Schema.String, "auth/AuthFlowId">;
|
|
2050
|
+
readonly userId: Schema.brand<Schema.String, "auth/UserId">;
|
|
2027
2051
|
readonly code: Schema.String;
|
|
2028
2052
|
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
2029
2053
|
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
@@ -2036,35 +2060,9 @@ declare const MfaApi_base: HttpApiGroup.HttpApiGroup<"mfa", import("effect/unsta
|
|
|
2036
2060
|
readonly emailVerified: Schema.optional<Schema.Boolean>;
|
|
2037
2061
|
readonly requirements: Schema.optional<Schema.$Array<Schema.String>>;
|
|
2038
2062
|
}>>;
|
|
2039
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthInvalidCredentialsError | typeof AuthPolicyDeniedError | typeof AuthInternalError>,
|
|
2040
|
-
readonly flowId: Schema.brand<Schema.String, "auth/AuthFlowId">;
|
|
2041
|
-
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
2042
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
2043
|
-
readonly challengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
|
|
2044
|
-
readonly expiresAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
2045
|
-
readonly publicKey: Schema.Struct<{
|
|
2046
|
-
readonly challenge: Schema.String;
|
|
2047
|
-
readonly rpId: Schema.String;
|
|
2048
|
-
readonly timeout: Schema.optional<Schema.Number>;
|
|
2049
|
-
readonly allowCredentials: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
2050
|
-
readonly type: Schema.Literal<"public-key">;
|
|
2051
|
-
readonly id: Schema.String;
|
|
2052
|
-
readonly transports: Schema.optional<Schema.$Array<Schema.String>>;
|
|
2053
|
-
}>>>;
|
|
2054
|
-
readonly userVerification: Schema.optional<Schema.Literals<readonly ["required", "preferred", "discouraged"]>>;
|
|
2055
|
-
}>;
|
|
2056
|
-
}>>, 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<{
|
|
2063
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthInvalidCredentialsError | typeof AuthPolicyDeniedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verifyTotpForFlow", "POST", "/auth/mfa/totp/verify-flow", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
2057
2064
|
readonly flowId: Schema.brand<Schema.String, "auth/AuthFlowId">;
|
|
2058
|
-
readonly
|
|
2059
|
-
readonly credential: Schema.Struct<{
|
|
2060
|
-
readonly id: Schema.String;
|
|
2061
|
-
readonly rawId: Schema.optional<Schema.String>;
|
|
2062
|
-
readonly type: Schema.Literal<"public-key">;
|
|
2063
|
-
readonly response: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
2064
|
-
readonly authenticatorAttachment: Schema.optional<Schema.String>;
|
|
2065
|
-
readonly clientExtensionResults: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
2066
|
-
}>;
|
|
2067
|
-
readonly userId: Schema.optional<Schema.brand<Schema.String, "auth/UserId">>;
|
|
2065
|
+
readonly code: Schema.String;
|
|
2068
2066
|
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
2069
2067
|
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
2070
2068
|
readonly type: Schema.Literal<"authenticated">;
|
|
@@ -2076,14 +2074,30 @@ declare const MfaApi_base: HttpApiGroup.HttpApiGroup<"mfa", import("effect/unsta
|
|
|
2076
2074
|
readonly emailVerified: Schema.optional<Schema.Boolean>;
|
|
2077
2075
|
readonly requirements: Schema.optional<Schema.$Array<Schema.String>>;
|
|
2078
2076
|
}>>;
|
|
2079
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthPolicyDeniedError | typeof AuthInternalError>,
|
|
2077
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthInvalidCredentialsError | typeof AuthPolicyDeniedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never>, false>;
|
|
2080
2078
|
export declare class MfaApi extends MfaApi_base {
|
|
2081
2079
|
}
|
|
2082
2080
|
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<{
|
|
2083
2081
|
readonly factors: Schema.$Array<Schema.Struct<{
|
|
2084
2082
|
readonly type: Schema.Literals<readonly ["totp", "backup-code", "passkey"]>;
|
|
2085
2083
|
}>>;
|
|
2086
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthUnauthenticatedError | typeof AuthInternalError>,
|
|
2084
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthUnauthenticatedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"startPasskey", "POST", "/auth/step-up/passkey/start", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
2085
|
+
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
2086
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
2087
|
+
readonly challengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
|
|
2088
|
+
readonly expiresAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
2089
|
+
readonly publicKey: Schema.Struct<{
|
|
2090
|
+
readonly challenge: Schema.String;
|
|
2091
|
+
readonly rpId: Schema.String;
|
|
2092
|
+
readonly timeout: Schema.optional<Schema.Number>;
|
|
2093
|
+
readonly allowCredentials: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
2094
|
+
readonly type: Schema.Literal<"public-key">;
|
|
2095
|
+
readonly id: Schema.String;
|
|
2096
|
+
readonly transports: Schema.optional<Schema.$Array<Schema.String>>;
|
|
2097
|
+
}>>>;
|
|
2098
|
+
readonly userVerification: Schema.optional<Schema.Literals<readonly ["required", "preferred", "discouraged"]>>;
|
|
2099
|
+
}>;
|
|
2100
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verifyRecoveryCode", "POST", "/auth/step-up/recovery-code/verify", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
2087
2101
|
readonly code: Schema.String;
|
|
2088
2102
|
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
2089
2103
|
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
@@ -2096,7 +2110,7 @@ declare const StepUpApi_base: HttpApiGroup.HttpApiGroup<"stepUp", import("effect
|
|
|
2096
2110
|
readonly emailVerified: Schema.optional<Schema.Boolean>;
|
|
2097
2111
|
readonly requirements: Schema.optional<Schema.$Array<Schema.String>>;
|
|
2098
2112
|
}>>;
|
|
2099
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthUnauthenticatedError | typeof AuthInvalidCredentialsError | typeof AuthInternalError>,
|
|
2113
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthUnauthenticatedError | typeof AuthInvalidCredentialsError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verifyTotp", "POST", "/auth/step-up/totp/verify", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
2100
2114
|
readonly code: Schema.String;
|
|
2101
2115
|
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
2102
2116
|
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
@@ -2109,23 +2123,7 @@ declare const StepUpApi_base: HttpApiGroup.HttpApiGroup<"stepUp", import("effect
|
|
|
2109
2123
|
readonly emailVerified: Schema.optional<Schema.Boolean>;
|
|
2110
2124
|
readonly requirements: Schema.optional<Schema.$Array<Schema.String>>;
|
|
2111
2125
|
}>>;
|
|
2112
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthUnauthenticatedError | typeof AuthInvalidCredentialsError | typeof AuthInternalError>,
|
|
2113
|
-
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
2114
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
2115
|
-
readonly challengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
|
|
2116
|
-
readonly expiresAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
2117
|
-
readonly publicKey: Schema.Struct<{
|
|
2118
|
-
readonly challenge: Schema.String;
|
|
2119
|
-
readonly rpId: Schema.String;
|
|
2120
|
-
readonly timeout: Schema.optional<Schema.Number>;
|
|
2121
|
-
readonly allowCredentials: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
2122
|
-
readonly type: Schema.Literal<"public-key">;
|
|
2123
|
-
readonly id: Schema.String;
|
|
2124
|
-
readonly transports: Schema.optional<Schema.$Array<Schema.String>>;
|
|
2125
|
-
}>>>;
|
|
2126
|
-
readonly userVerification: Schema.optional<Schema.Literals<readonly ["required", "preferred", "discouraged"]>>;
|
|
2127
|
-
}>;
|
|
2128
|
-
}>>, 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<{
|
|
2126
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthUnauthenticatedError | typeof AuthInvalidCredentialsError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verifyPasskey", "POST", "/auth/step-up/passkey/verify", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
2129
2127
|
readonly challengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
|
|
2130
2128
|
readonly credential: Schema.Struct<{
|
|
2131
2129
|
readonly id: Schema.String;
|
|
@@ -2146,16 +2144,11 @@ declare const StepUpApi_base: HttpApiGroup.HttpApiGroup<"stepUp", import("effect
|
|
|
2146
2144
|
readonly emailVerified: Schema.optional<Schema.Boolean>;
|
|
2147
2145
|
readonly requirements: Schema.optional<Schema.$Array<Schema.String>>;
|
|
2148
2146
|
}>>;
|
|
2149
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthInternalError>,
|
|
2147
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never>, false>;
|
|
2150
2148
|
export declare class StepUpApi extends StepUpApi_base {
|
|
2151
2149
|
}
|
|
2152
|
-
declare const ApiKeyApi_base: HttpApiGroup.HttpApiGroup<"apiKey", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"
|
|
2153
|
-
readonly
|
|
2154
|
-
readonly expiresAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
2155
|
-
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
2156
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
2157
|
-
readonly secret: Schema.String;
|
|
2158
|
-
readonly key: Schema.Struct<{
|
|
2150
|
+
declare const ApiKeyApi_base: HttpApiGroup.HttpApiGroup<"apiKey", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"listApiKeys", "GET", "/auth/api-keys/", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
2151
|
+
readonly keys: Schema.$Array<Schema.Struct<{
|
|
2159
2152
|
readonly keyId: Schema.String;
|
|
2160
2153
|
readonly prefix: Schema.String;
|
|
2161
2154
|
readonly scopes: Schema.$Array<Schema.String>;
|
|
@@ -2164,9 +2157,17 @@ declare const ApiKeyApi_base: HttpApiGroup.HttpApiGroup<"apiKey", import("effect
|
|
|
2164
2157
|
readonly lastUsedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
2165
2158
|
readonly revokedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
2166
2159
|
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
2167
|
-
}
|
|
2168
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof
|
|
2169
|
-
readonly
|
|
2160
|
+
}>>;
|
|
2161
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthUnauthenticatedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, 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<{
|
|
2162
|
+
readonly keyId: Schema.String;
|
|
2163
|
+
readonly reason: Schema.optional<Schema.String>;
|
|
2164
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/unstable/httpapi/HttpApiSchema").NoContent>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"createApiKey", "POST", "/auth/api-keys/", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
2165
|
+
readonly scopes: Schema.optional<Schema.$Array<Schema.String>>;
|
|
2166
|
+
readonly expiresAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
2167
|
+
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
2168
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
2169
|
+
readonly secret: Schema.String;
|
|
2170
|
+
readonly key: Schema.Struct<{
|
|
2170
2171
|
readonly keyId: Schema.String;
|
|
2171
2172
|
readonly prefix: Schema.String;
|
|
2172
2173
|
readonly scopes: Schema.$Array<Schema.String>;
|
|
@@ -2175,11 +2176,8 @@ declare const ApiKeyApi_base: HttpApiGroup.HttpApiGroup<"apiKey", import("effect
|
|
|
2175
2176
|
readonly lastUsedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
2176
2177
|
readonly revokedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
2177
2178
|
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
2178
|
-
}
|
|
2179
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthUnauthenticatedError | typeof AuthInternalError>,
|
|
2180
|
-
readonly keyId: Schema.String;
|
|
2181
|
-
readonly reason: Schema.optional<Schema.String>;
|
|
2182
|
-
}>>, 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>;
|
|
2179
|
+
}>;
|
|
2180
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never>, false>;
|
|
2183
2181
|
export declare class ApiKeyApi extends ApiKeyApi_base {
|
|
2184
2182
|
}
|
|
2185
2183
|
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<{
|
|
@@ -2204,7 +2202,11 @@ declare const RefreshTokenApi_base: HttpApiGroup.HttpApiGroup<"refreshToken", im
|
|
|
2204
2202
|
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthInvalidCredentialsError | typeof AuthInternalError>, AuthSchemaErrorMiddleware, never>, false>;
|
|
2205
2203
|
export declare class RefreshTokenApi extends RefreshTokenApi_base {
|
|
2206
2204
|
}
|
|
2207
|
-
declare const JwtApi_base: HttpApiGroup.HttpApiGroup<"jwt", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"
|
|
2205
|
+
declare const JwtApi_base: HttpApiGroup.HttpApiGroup<"jwt", 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<{
|
|
2206
|
+
readonly jwtId: Schema.String;
|
|
2207
|
+
readonly expiresAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
2208
|
+
readonly reason: Schema.optional<Schema.String>;
|
|
2209
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/unstable/httpapi/HttpApiSchema").NoContent>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthInternalError>, AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"introspect", "POST", "/auth/jwt/introspect", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Struct<{
|
|
2208
2210
|
readonly token: Schema.String;
|
|
2209
2211
|
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<Schema.Union<readonly [Schema.Struct<{
|
|
2210
2212
|
readonly active: Schema.Literal<true>;
|
|
@@ -2232,11 +2234,7 @@ declare const JwtApi_base: HttpApiGroup.HttpApiGroup<"jwt", import("effect/unsta
|
|
|
2232
2234
|
readonly expiresAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
2233
2235
|
readonly revokedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
2234
2236
|
readonly revokedReason: Schema.optional<Schema.String>;
|
|
2235
|
-
}>]>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthInternalError>, AuthSchemaErrorMiddleware, never
|
|
2236
|
-
readonly jwtId: Schema.String;
|
|
2237
|
-
readonly expiresAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
2238
|
-
readonly reason: Schema.optional<Schema.String>;
|
|
2239
|
-
}>>, 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>;
|
|
2237
|
+
}>]>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthInternalError>, AuthSchemaErrorMiddleware, never>, false>;
|
|
2240
2238
|
export declare class JwtApi extends JwtApi_base {
|
|
2241
2239
|
}
|
|
2242
2240
|
declare const JwtDiscoveryApi_base: HttpApiGroup.HttpApiGroup<"jwtDiscovery", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"jwks", "GET", "/.well-known/jwks.json", 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<{
|
|
@@ -2275,7 +2273,7 @@ export declare class OidcDiscoveryHttpApi extends OidcDiscoveryHttpApi_base {
|
|
|
2275
2273
|
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<{
|
|
2276
2274
|
readonly challengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
|
|
2277
2275
|
readonly secret: Schema.String;
|
|
2278
|
-
}>>, 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>,
|
|
2276
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/unstable/httpapi/HttpApiSchema").NoContent>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthPolicyDeniedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never>, false>;
|
|
2279
2277
|
export declare class SecurityApi extends SecurityApi_base {
|
|
2280
2278
|
}
|
|
2281
2279
|
declare const SecurityTimelineApi_base: HttpApiGroup.HttpApiGroup<"securityTimeline", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"list", "GET", "/auth/security/timeline", import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<Schema.Struct<{
|
|
@@ -2303,7 +2301,7 @@ declare const SecurityTimelineApi_base: HttpApiGroup.HttpApiGroup<"securityTimel
|
|
|
2303
2301
|
}>>;
|
|
2304
2302
|
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
2305
2303
|
}>>;
|
|
2306
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthUnauthenticatedError | typeof AuthInternalError>,
|
|
2304
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthUnauthenticatedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never>, false>;
|
|
2307
2305
|
export declare class SecurityTimelineApi extends SecurityTimelineApi_base {
|
|
2308
2306
|
}
|
|
2309
2307
|
declare const SecurityTimelineHttpApi_base: HttpApi.HttpApi<"SecurityTimelineHttpApi", typeof SecurityTimelineApi>;
|
|
@@ -2335,7 +2333,7 @@ declare const AdminSecurityTimelineApi_base: HttpApiGroup.HttpApiGroup<"adminSec
|
|
|
2335
2333
|
}>>;
|
|
2336
2334
|
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
2337
2335
|
}>>;
|
|
2338
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthInternalError>,
|
|
2336
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never>, false>;
|
|
2339
2337
|
export declare class AdminSecurityTimelineApi extends AdminSecurityTimelineApi_base {
|
|
2340
2338
|
}
|
|
2341
2339
|
declare const AdminSecurityTimelineHttpApi_base: HttpApi.HttpApi<"AdminSecurityTimelineHttpApi", typeof AdminSecurityTimelineApi>;
|
|
@@ -2349,9 +2347,9 @@ declare const TrustedDeviceApi_base: HttpApiGroup.HttpApiGroup<"trustedDevice",
|
|
|
2349
2347
|
readonly expiresAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
2350
2348
|
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
2351
2349
|
}>>;
|
|
2352
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthUnauthenticatedError | typeof AuthInternalError>,
|
|
2350
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthUnauthenticatedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, 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<{
|
|
2353
2351
|
readonly deviceId: Schema.String;
|
|
2354
|
-
}>>, 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>,
|
|
2352
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/unstable/httpapi/HttpApiSchema").NoContent>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never>, false>;
|
|
2355
2353
|
export declare class TrustedDeviceApi extends TrustedDeviceApi_base {
|
|
2356
2354
|
}
|
|
2357
2355
|
declare const TrustedDeviceHttpApi_base: HttpApi.HttpApi<"TrustedDeviceHttpApi", typeof TrustedDeviceApi>;
|
|
@@ -2367,10 +2365,10 @@ declare const AdminTrustedDeviceApi_base: HttpApiGroup.HttpApiGroup<"adminTruste
|
|
|
2367
2365
|
readonly expiresAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
2368
2366
|
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
2369
2367
|
}>>;
|
|
2370
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthInternalError>,
|
|
2368
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"revoke", "POST", "/auth/admin/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<{
|
|
2371
2369
|
readonly userId: Schema.brand<Schema.String, "auth/UserId">;
|
|
2372
2370
|
readonly deviceId: Schema.String;
|
|
2373
|
-
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/unstable/httpapi/HttpApiSchema").NoContent>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthInternalError>,
|
|
2371
|
+
}>>, import("effect/unstable/httpapi/HttpApiEndpoint").StringTree<never>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<import("effect/unstable/httpapi/HttpApiSchema").NoContent>, import("effect/unstable/httpapi/HttpApiEndpoint").Json<typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never>, false>;
|
|
2374
2372
|
export declare class AdminTrustedDeviceApi extends AdminTrustedDeviceApi_base {
|
|
2375
2373
|
}
|
|
2376
2374
|
declare const AdminTrustedDeviceHttpApi_base: HttpApi.HttpApi<"AdminTrustedDeviceHttpApi", typeof AdminTrustedDeviceApi>;
|
|
@@ -2379,32 +2377,32 @@ export declare class AdminTrustedDeviceHttpApi extends AdminTrustedDeviceHttpApi
|
|
|
2379
2377
|
declare const AuthApi_base: HttpApi.HttpApi<"AuthApi", typeof PasswordApi | typeof SessionApi | typeof EmailVerificationApi | typeof EmailOtpApi | typeof MagicLinkApi | typeof LoginApprovalApi | typeof SecurityApi>;
|
|
2380
2378
|
export declare class AuthApi extends AuthApi_base {
|
|
2381
2379
|
}
|
|
2382
|
-
export declare const PasswordApiLive: Layer.Layer<HttpApiGroup.ApiGroup<"AuthApi", "password">, never,
|
|
2383
|
-
export declare const SessionApiLive: Layer.Layer<HttpApiGroup.ApiGroup<"AuthApi", "session">, never,
|
|
2384
|
-
export declare const AdminSessionApiLive: Layer.Layer<HttpApiGroup.ApiGroup<"AdminSessionHttpApi", "adminSession">, never,
|
|
2385
|
-
export declare const AdminSessionHttpApiLive: Layer.Layer<never, never,
|
|
2386
|
-
export declare const EmailVerificationApiLive: Layer.Layer<HttpApiGroup.ApiGroup<"AuthApi", "emailVerification">, never,
|
|
2387
|
-
export declare const EmailOtpApiLive: Layer.Layer<HttpApiGroup.ApiGroup<"AuthApi", "emailOtp">, never,
|
|
2388
|
-
export declare const MagicLinkApiLive: Layer.Layer<HttpApiGroup.ApiGroup<"AuthApi", "magicLink">, never,
|
|
2389
|
-
export declare const LoginApprovalApiLive: Layer.Layer<HttpApiGroup.ApiGroup<"AuthApi", "loginApproval">, never,
|
|
2390
|
-
export declare const SecurityApiLive: Layer.Layer<HttpApiGroup.ApiGroup<"AuthApi", "security">, never,
|
|
2391
|
-
export declare const SecurityTimelineApiLive: Layer.Layer<HttpApiGroup.ApiGroup<"SecurityTimelineHttpApi", "securityTimeline">, never,
|
|
2392
|
-
export declare const SecurityTimelineHttpApiLive: Layer.Layer<never, never,
|
|
2380
|
+
export declare const PasswordApiLive: Layer.Layer<HttpApiGroup.ApiGroup<"AuthApi", "password">, never, AuthApiRateLimit | AuthHttp | AuthOriginCheckMiddleware | AuthRateLimitMiddleware | AuthSchemaErrorMiddleware | EmailVerificationFlow | PasswordLogin | PasswordManagement | PasswordRegistration | PasswordReset | SessionCookie | Sessions>;
|
|
2381
|
+
export declare const SessionApiLive: Layer.Layer<HttpApiGroup.ApiGroup<"AuthApi", "session">, never, AuthHttp | AuthOriginCheckMiddleware | SessionCookie | Sessions>;
|
|
2382
|
+
export declare const AdminSessionApiLive: Layer.Layer<HttpApiGroup.ApiGroup<"AdminSessionHttpApi", "adminSession">, never, AdminSessionAuthorization | AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware | SessionCookie | Sessions>;
|
|
2383
|
+
export declare const AdminSessionHttpApiLive: Layer.Layer<never, never, AdminSessionAuthorization | import("effect/FileSystem").FileSystem | import("effect/unstable/http/Etag").Generator | import("effect/unstable/http/HttpPlatform").HttpPlatform | import("effect/unstable/http/HttpRouter").HttpRouter | import("effect/Path").Path | SessionCookie | Sessions>;
|
|
2384
|
+
export declare const EmailVerificationApiLive: Layer.Layer<HttpApiGroup.ApiGroup<"AuthApi", "emailVerification">, never, AuthApiRateLimit | AuthOriginCheckMiddleware | AuthRateLimitMiddleware | AuthSchemaErrorMiddleware | EmailVerification | EmailVerificationFlow | SessionCookie | Sessions>;
|
|
2385
|
+
export declare const EmailOtpApiLive: Layer.Layer<HttpApiGroup.ApiGroup<"AuthApi", "emailOtp">, never, AuthApiRateLimit | AuthHttp | AuthOriginCheckMiddleware | AuthRateLimitMiddleware | AuthSchemaErrorMiddleware | EmailOtpLogin>;
|
|
2386
|
+
export declare const MagicLinkApiLive: Layer.Layer<HttpApiGroup.ApiGroup<"AuthApi", "magicLink">, never, AuthApiRateLimit | AuthHttp | AuthOriginCheckMiddleware | AuthRateLimitMiddleware | AuthSchemaErrorMiddleware | MagicLinkLogin>;
|
|
2387
|
+
export declare const LoginApprovalApiLive: Layer.Layer<HttpApiGroup.ApiGroup<"AuthApi", "loginApproval">, never, AuthFlow | AuthFlowState | AuthHttp | AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware | LoginApproval | UserStore>;
|
|
2388
|
+
export declare const SecurityApiLive: Layer.Layer<HttpApiGroup.ApiGroup<"AuthApi", "security">, never, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware>;
|
|
2389
|
+
export declare const SecurityTimelineApiLive: Layer.Layer<HttpApiGroup.ApiGroup<"SecurityTimelineHttpApi", "securityTimeline">, never, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware | SecurityTimelineStore | SessionCookie | Sessions>;
|
|
2390
|
+
export declare const SecurityTimelineHttpApiLive: Layer.Layer<never, never, import("effect/FileSystem").FileSystem | import("effect/unstable/http/Etag").Generator | import("effect/unstable/http/HttpPlatform").HttpPlatform | import("effect/unstable/http/HttpRouter").HttpRouter | import("effect/Path").Path | SecurityTimelineStore | SessionCookie | Sessions>;
|
|
2393
2391
|
export declare const OAuthProviderAuthorizationApiLive: Layer.Layer<HttpApiGroup.ApiGroup<"OAuthProviderAuthorizationHttpApi", "oauthProviderAuthorization">, never, AuthSchemaErrorMiddleware | OAuthProviderAuthorization>;
|
|
2394
|
-
export declare const OAuthProviderAuthorizationHttpApiLive: Layer.Layer<never, never,
|
|
2392
|
+
export declare const OAuthProviderAuthorizationHttpApiLive: Layer.Layer<never, never, import("effect/FileSystem").FileSystem | import("effect/unstable/http/Etag").Generator | import("effect/unstable/http/HttpPlatform").HttpPlatform | import("effect/unstable/http/HttpRouter").HttpRouter | OAuthProviderAuthorization | import("effect/Path").Path>;
|
|
2395
2393
|
export declare const OAuthTokenApiLive: Layer.Layer<HttpApiGroup.ApiGroup<"OAuthTokenHttpApi", "oauthToken">, never, AuthSchemaErrorMiddleware | OAuthAuthorizationCodeTokenGrant>;
|
|
2396
|
-
export declare const OAuthTokenHttpApiLive: Layer.Layer<never, never,
|
|
2394
|
+
export declare const OAuthTokenHttpApiLive: Layer.Layer<never, never, import("effect/FileSystem").FileSystem | import("effect/unstable/http/Etag").Generator | import("effect/unstable/http/HttpPlatform").HttpPlatform | import("effect/unstable/http/HttpRouter").HttpRouter | OAuthAuthorizationCodeTokenGrant | import("effect/Path").Path>;
|
|
2397
2395
|
export declare const JwtDiscoveryApiLive: Layer.Layer<HttpApiGroup.ApiGroup<"JwtDiscoveryHttpApi", "jwtDiscovery">, never, AuthSchemaErrorMiddleware | Jwks>;
|
|
2398
|
-
export declare const JwtDiscoveryHttpApiLive: Layer.Layer<never, never,
|
|
2396
|
+
export declare const JwtDiscoveryHttpApiLive: Layer.Layer<never, never, import("effect/FileSystem").FileSystem | import("effect/unstable/http/Etag").Generator | import("effect/unstable/http/HttpPlatform").HttpPlatform | import("effect/unstable/http/HttpRouter").HttpRouter | Jwks | import("effect/Path").Path>;
|
|
2399
2397
|
export declare const OidcDiscoveryApiLive: Layer.Layer<HttpApiGroup.ApiGroup<"OidcDiscoveryHttpApi", "oidcDiscovery">, never, AuthSchemaErrorMiddleware | OidcDiscoveryMetadata>;
|
|
2400
|
-
export declare const OidcDiscoveryHttpApiLive: Layer.Layer<never, never, import("effect/FileSystem").FileSystem | import("effect/
|
|
2401
|
-
export declare const AdminSecurityTimelineApiLive: Layer.Layer<HttpApiGroup.ApiGroup<"AdminSecurityTimelineHttpApi", "adminSecurityTimeline">, never,
|
|
2402
|
-
export declare const AdminSecurityTimelineHttpApiLive: Layer.Layer<never, never,
|
|
2403
|
-
export declare const TrustedDeviceApiLive: Layer.Layer<HttpApiGroup.ApiGroup<"TrustedDeviceHttpApi", "trustedDevice">, never,
|
|
2404
|
-
export declare const TrustedDeviceHttpApiLive: Layer.Layer<never, never,
|
|
2405
|
-
export declare const AdminTrustedDeviceApiLive: Layer.Layer<HttpApiGroup.ApiGroup<"AdminTrustedDeviceHttpApi", "adminTrustedDevice">, never,
|
|
2406
|
-
export declare const AdminTrustedDeviceHttpApiLive: Layer.Layer<never, never,
|
|
2407
|
-
export declare const AuthHttpApiBareLive: Layer.Layer<never, never,
|
|
2408
|
-
export declare const AuthHttpApiLive: Layer.Layer<never, never,
|
|
2398
|
+
export declare const OidcDiscoveryHttpApiLive: Layer.Layer<never, never, import("effect/FileSystem").FileSystem | import("effect/unstable/http/Etag").Generator | import("effect/unstable/http/HttpPlatform").HttpPlatform | import("effect/unstable/http/HttpRouter").HttpRouter | OidcDiscoveryMetadata | import("effect/Path").Path>;
|
|
2399
|
+
export declare const AdminSecurityTimelineApiLive: Layer.Layer<HttpApiGroup.ApiGroup<"AdminSecurityTimelineHttpApi", "adminSecurityTimeline">, never, AdminSecurityTimelineAuthorization | AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware | SecurityTimelineStore | SessionCookie | Sessions>;
|
|
2400
|
+
export declare const AdminSecurityTimelineHttpApiLive: Layer.Layer<never, never, AdminSecurityTimelineAuthorization | import("effect/FileSystem").FileSystem | import("effect/unstable/http/Etag").Generator | import("effect/unstable/http/HttpPlatform").HttpPlatform | import("effect/unstable/http/HttpRouter").HttpRouter | import("effect/Path").Path | SecurityTimelineStore | SessionCookie | Sessions>;
|
|
2401
|
+
export declare const TrustedDeviceApiLive: Layer.Layer<HttpApiGroup.ApiGroup<"TrustedDeviceHttpApi", "trustedDevice">, never, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware | SessionCookie | Sessions | TrustedDeviceStore>;
|
|
2402
|
+
export declare const TrustedDeviceHttpApiLive: Layer.Layer<never, never, import("effect/FileSystem").FileSystem | import("effect/unstable/http/Etag").Generator | import("effect/unstable/http/HttpPlatform").HttpPlatform | import("effect/unstable/http/HttpRouter").HttpRouter | import("effect/Path").Path | SessionCookie | Sessions | TrustedDeviceStore>;
|
|
2403
|
+
export declare const AdminTrustedDeviceApiLive: Layer.Layer<HttpApiGroup.ApiGroup<"AdminTrustedDeviceHttpApi", "adminTrustedDevice">, never, AdminTrustedDeviceAuthorization | AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware | SessionCookie | Sessions | TrustedDeviceStore>;
|
|
2404
|
+
export declare const AdminTrustedDeviceHttpApiLive: Layer.Layer<never, never, AdminTrustedDeviceAuthorization | import("effect/FileSystem").FileSystem | import("effect/unstable/http/Etag").Generator | import("effect/unstable/http/HttpPlatform").HttpPlatform | import("effect/unstable/http/HttpRouter").HttpRouter | import("effect/Path").Path | SessionCookie | Sessions | TrustedDeviceStore>;
|
|
2405
|
+
export declare const AuthHttpApiBareLive: Layer.Layer<never, never, AuthFlow | AuthFlowState | AuthHttp | EmailOtpLogin | EmailVerification | EmailVerificationFlow | import("effect/FileSystem").FileSystem | import("effect/unstable/http/Etag").Generator | import("effect/unstable/http/HttpPlatform").HttpPlatform | import("effect/unstable/http/HttpRouter").HttpRouter | LoginApproval | MagicLinkLogin | PasswordLogin | PasswordManagement | PasswordRegistration | PasswordReset | import("effect/Path").Path | SessionCookie | Sessions | UserStore>;
|
|
2406
|
+
export declare const AuthHttpApiLive: Layer.Layer<never, never, AuthFlow | AuthFlowState | AuthHttp | EmailOtpLogin | EmailVerification | EmailVerificationFlow | import("effect/FileSystem").FileSystem | import("effect/unstable/http/Etag").Generator | import("effect/unstable/http/HttpPlatform").HttpPlatform | import("effect/unstable/http/HttpRouter").HttpRouter | LoginApproval | MagicLinkLogin | PasswordLogin | PasswordManagement | PasswordRegistration | PasswordReset | import("effect/Path").Path | import("../Privacy.js").Privacy | import("../RateLimiter.js").RateLimiter | SessionCookie | Sessions | UserStore>;
|
|
2409
2407
|
export { AuthResult };
|
|
2410
2408
|
//# sourceMappingURL=Api.d.ts.map
|