@effect-auth/core 0.1.0-alpha.18 → 0.1.0-alpha.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -5
- package/dist/DevEmail.d.ts +44 -0
- package/dist/DevEmail.d.ts.map +1 -0
- package/dist/DevEmail.js +115 -0
- package/dist/DevEmail.js.map +1 -0
- package/dist/DevelopmentSeed.d.ts +47 -0
- package/dist/DevelopmentSeed.d.ts.map +1 -0
- package/dist/DevelopmentSeed.js +337 -0
- package/dist/DevelopmentSeed.js.map +1 -0
- package/dist/DrizzleBunSqliteStorage.d.ts +1 -1
- package/dist/DrizzleBunSqliteStorage.d.ts.map +1 -1
- package/dist/DrizzleD1SqliteStorage.d.ts +1 -1
- package/dist/DrizzleD1SqliteStorage.d.ts.map +1 -1
- package/dist/DrizzleEffectSqliteStorage.d.ts +1 -1
- package/dist/DrizzleEffectSqliteStorage.d.ts.map +1 -1
- package/dist/DrizzleNodeSqliteStorage.d.ts +1 -1
- package/dist/DrizzleNodeSqliteStorage.d.ts.map +1 -1
- package/dist/DrizzlePostgresStorage.d.ts +26 -0
- package/dist/DrizzlePostgresStorage.d.ts.map +1 -0
- package/dist/DrizzlePostgresStorage.js +14 -0
- package/dist/DrizzlePostgresStorage.js.map +1 -0
- package/dist/EffectQbPostgresStorage.d.ts +8 -1
- package/dist/EffectQbPostgresStorage.d.ts.map +1 -1
- package/dist/EffectQbPostgresStorage.js +359 -2
- package/dist/EffectQbPostgresStorage.js.map +1 -1
- package/dist/EffectQbSqliteStorage.d.ts +42 -2
- package/dist/EffectQbSqliteStorage.d.ts.map +1 -1
- package/dist/EffectQbSqliteStorage.js +337 -1
- package/dist/EffectQbSqliteStorage.js.map +1 -1
- package/dist/HttpApi/Api.d.ts +151 -98
- package/dist/HttpApi/Api.d.ts.map +1 -1
- package/dist/HttpApi/Api.js +122 -72
- package/dist/HttpApi/Api.js.map +1 -1
- package/dist/HttpApi/ClientApi.d.ts +136 -136
- package/dist/HttpApi/Endpoints.d.ts +33 -1
- package/dist/HttpApi/Endpoints.d.ts.map +1 -1
- package/dist/HttpApi/Endpoints.js +31 -2
- package/dist/HttpApi/Endpoints.js.map +1 -1
- package/dist/HttpApi/Errors.d.ts +11 -3
- package/dist/HttpApi/Errors.d.ts.map +1 -1
- package/dist/HttpApi/Errors.js +16 -0
- package/dist/HttpApi/Errors.js.map +1 -1
- package/dist/HttpApi/Middleware.d.ts +12 -0
- package/dist/HttpApi/Middleware.d.ts.map +1 -1
- package/dist/HttpApi/Middleware.js +8 -0
- package/dist/HttpApi/Middleware.js.map +1 -1
- package/dist/HttpApi/OAuthDeviceAuthorization.d.ts +106 -0
- package/dist/HttpApi/OAuthDeviceAuthorization.d.ts.map +1 -0
- package/dist/HttpApi/OAuthDeviceAuthorization.js +415 -0
- package/dist/HttpApi/OAuthDeviceAuthorization.js.map +1 -0
- package/dist/HttpApi/OAuthToken.d.ts +1 -1
- package/dist/HttpApi/OAuthToken.d.ts.map +1 -1
- package/dist/HttpApi/OAuthToken.js +1 -1
- package/dist/HttpApi/OAuthToken.js.map +1 -1
- package/dist/HttpApi/Operations/OAuthDeviceAuthorization.d.ts +23 -0
- package/dist/HttpApi/Operations/OAuthDeviceAuthorization.d.ts.map +1 -0
- package/dist/HttpApi/Operations/OAuthDeviceAuthorization.js +7 -0
- package/dist/HttpApi/Operations/OAuthDeviceAuthorization.js.map +1 -0
- package/dist/HttpApi/Operations/OAuthToken.d.ts +10 -0
- package/dist/HttpApi/Operations/OAuthToken.d.ts.map +1 -1
- package/dist/HttpApi/Operations/OAuthToken.js +4 -0
- package/dist/HttpApi/Operations/OAuthToken.js.map +1 -1
- package/dist/HttpApi/Operations/index.d.ts +1 -0
- package/dist/HttpApi/Operations/index.d.ts.map +1 -1
- package/dist/HttpApi/Operations/index.js +1 -0
- package/dist/HttpApi/Operations/index.js.map +1 -1
- package/dist/HttpApi/PasswordContract.d.ts +9 -9
- package/dist/HttpApi/Schemas.d.ts +38 -0
- package/dist/HttpApi/Schemas.d.ts.map +1 -1
- package/dist/HttpApi/Schemas.js +36 -1
- package/dist/HttpApi/Schemas.js.map +1 -1
- package/dist/HttpApi/index.d.ts +3 -1
- package/dist/HttpApi/index.d.ts.map +1 -1
- package/dist/HttpApi/index.js +3 -1
- package/dist/HttpApi/index.js.map +1 -1
- package/dist/OAuth.d.ts +46 -1
- package/dist/OAuth.d.ts.map +1 -1
- package/dist/OAuth.js +118 -4
- package/dist/OAuth.js.map +1 -1
- package/dist/OAuthDeviceAuthorization.d.ts +378 -0
- package/dist/OAuthDeviceAuthorization.d.ts.map +1 -0
- package/dist/OAuthDeviceAuthorization.js +860 -0
- package/dist/OAuthDeviceAuthorization.js.map +1 -0
- package/dist/OAuthDeviceClient.d.ts +76 -0
- package/dist/OAuthDeviceClient.d.ts.map +1 -0
- package/dist/OAuthDeviceClient.js +362 -0
- package/dist/OAuthDeviceClient.js.map +1 -0
- package/dist/PostgresStorageMigrations.d.ts +2 -1
- package/dist/PostgresStorageMigrations.d.ts.map +1 -1
- package/dist/PostgresStorageMigrations.js +54 -0
- package/dist/PostgresStorageMigrations.js.map +1 -1
- package/dist/Retention.d.ts +6 -1
- package/dist/Retention.d.ts.map +1 -1
- package/dist/Retention.js +49 -12
- package/dist/Retention.js.map +1 -1
- package/dist/SqliteStorageSchemaData.d.ts +2 -0
- package/dist/SqliteStorageSchemaData.d.ts.map +1 -0
- package/dist/SqliteStorageSchemaData.js +508 -0
- package/dist/SqliteStorageSchemaData.js.map +1 -0
- package/dist/StorageMigrations.d.ts +2 -1
- package/dist/StorageMigrations.d.ts.map +1 -1
- package/dist/StorageMigrations.js +32 -0
- package/dist/StorageMigrations.js.map +1 -1
- package/dist/StorageSchemaGenerator.d.ts +70 -12
- package/dist/StorageSchemaGenerator.d.ts.map +1 -1
- package/dist/StorageSchemaGenerator.js +478 -82
- package/dist/StorageSchemaGenerator.js.map +1 -1
- package/migrations/0029_auth_oauth_device_authorization.sql +28 -0
- package/migrations/postgres/0010_auth_oauth_device_authorization.sql +50 -0
- package/package.json +24 -16
- package/dist/DrizzleDurableObjectSqliteStorage.d.ts +0 -19
- package/dist/DrizzleDurableObjectSqliteStorage.d.ts.map +0 -1
- package/dist/DrizzleDurableObjectSqliteStorage.js +0 -14
- package/dist/DrizzleDurableObjectSqliteStorage.js.map +0 -1
- package/dist/DrizzleWasmSqliteStorage.d.ts +0 -23
- package/dist/DrizzleWasmSqliteStorage.d.ts.map +0 -1
- package/dist/DrizzleWasmSqliteStorage.js +0 -15
- package/dist/DrizzleWasmSqliteStorage.js.map +0 -1
|
@@ -265,42 +265,32 @@ declare const MagicLinkHttpApiGroup_base: HttpApiGroup.HttpApiGroup<"magicLink",
|
|
|
265
265
|
}>]>>, import("effect/Schema").toCodecJson<typeof import("./Errors.js").AuthBadRequestError | typeof import("./Errors.js").AuthInvalidCredentialsError | typeof import("./Errors.js").AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthRequestRejectedError | typeof import("./Errors.js").AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never>, false>;
|
|
266
266
|
export declare class MagicLinkHttpApiGroup extends MagicLinkHttpApiGroup_base {
|
|
267
267
|
}
|
|
268
|
-
declare const PasskeyHttpApiGroup_base: HttpApiGroup.HttpApiGroup<"passkey", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"
|
|
269
|
-
readonly credentialId: import("effect/Schema").String;
|
|
270
|
-
readonly reason: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
271
|
-
}>>, never, import("effect/Schema").toCodecJson<import("effect/unstable/httpapi/HttpApiSchema").NoContent>, import("effect/Schema").toCodecJson<typeof import("./Errors.js").AuthBadRequestError | typeof import("./Errors.js").AuthUnauthenticatedError | typeof import("./Errors.js").AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthRequestRejectedError | typeof import("./Errors.js").AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"registerStart", "POST", "/auth/passkey/register/start", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
268
|
+
declare const PasskeyHttpApiGroup_base: HttpApiGroup.HttpApiGroup<"passkey", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"authenticateFinish", "POST", "/auth/passkey/authenticate/finish", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
272
269
|
readonly challengeId: import("effect/Schema").brand<import("effect/Schema").String, "auth/ChallengeId">;
|
|
273
|
-
readonly
|
|
274
|
-
|
|
275
|
-
readonly
|
|
276
|
-
readonly
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
readonly user: import("effect/Schema").Struct<{
|
|
281
|
-
readonly id: import("effect/Schema").String;
|
|
282
|
-
readonly name: import("effect/Schema").String;
|
|
283
|
-
readonly displayName: import("effect/Schema").String;
|
|
284
|
-
}>;
|
|
285
|
-
readonly pubKeyCredParams: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
286
|
-
readonly type: import("effect/Schema").Literal<"public-key">;
|
|
287
|
-
readonly alg: import("effect/Schema").Number;
|
|
288
|
-
}>>;
|
|
289
|
-
readonly timeout: import("effect/Schema").optional<import("effect/Schema").Number>;
|
|
290
|
-
readonly excludeCredentials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
291
|
-
readonly type: import("effect/Schema").Literal<"public-key">;
|
|
292
|
-
readonly id: import("effect/Schema").String;
|
|
293
|
-
readonly transports: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
294
|
-
}>>>;
|
|
295
|
-
readonly authenticatorSelection: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
296
|
-
readonly authenticatorAttachment: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["platform", "cross-platform"]>>;
|
|
297
|
-
readonly residentKey: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["discouraged", "preferred", "required"]>>;
|
|
298
|
-
readonly requireResidentKey: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
299
|
-
readonly userVerification: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["required", "preferred", "discouraged"]>>;
|
|
300
|
-
}>>;
|
|
301
|
-
readonly attestation: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["none", "indirect", "direct", "enterprise"]>>;
|
|
270
|
+
readonly credential: import("effect/Schema").Struct<{
|
|
271
|
+
readonly id: import("effect/Schema").String;
|
|
272
|
+
readonly rawId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
273
|
+
readonly type: import("effect/Schema").Literal<"public-key">;
|
|
274
|
+
readonly response: import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>;
|
|
275
|
+
readonly authenticatorAttachment: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
276
|
+
readonly clientExtensionResults: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
|
|
302
277
|
}>;
|
|
303
|
-
|
|
278
|
+
readonly userId: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").String, "auth/UserId">>;
|
|
279
|
+
readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
|
|
280
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
281
|
+
readonly type: import("effect/Schema").Literal<"authenticated">;
|
|
282
|
+
readonly expiresAt: import("effect/Schema").Number;
|
|
283
|
+
readonly aal: import("effect/Schema").Literals<readonly ["aal1", "aal2", "aal3"]>;
|
|
284
|
+
readonly amr: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
285
|
+
readonly mfaVerifiedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
|
|
286
|
+
readonly claims: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
287
|
+
readonly verifiedIdentityKinds: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
288
|
+
readonly requirements: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
289
|
+
readonly recoveryEnrollment: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
290
|
+
readonly allowed: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
291
|
+
}>>;
|
|
292
|
+
}>>;
|
|
293
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./Errors.js").AuthBadRequestError | typeof import("./Errors.js").AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthRequestRejectedError | typeof import("./Errors.js").AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"authenticateStart", "POST", "/auth/passkey/authenticate/start", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
304
294
|
readonly userId: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").String, "auth/UserId">>;
|
|
305
295
|
readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
|
|
306
296
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
@@ -317,19 +307,7 @@ declare const PasskeyHttpApiGroup_base: HttpApiGroup.HttpApiGroup<"passkey", imp
|
|
|
317
307
|
}>>>;
|
|
318
308
|
readonly userVerification: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["required", "preferred", "discouraged"]>>;
|
|
319
309
|
}>;
|
|
320
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./Errors.js").AuthBadRequestError | typeof import("./Errors.js").AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthRequestRejectedError | typeof import("./Errors.js").AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"
|
|
321
|
-
readonly challengeId: import("effect/Schema").brand<import("effect/Schema").String, "auth/ChallengeId">;
|
|
322
|
-
readonly credential: import("effect/Schema").Struct<{
|
|
323
|
-
readonly id: import("effect/Schema").String;
|
|
324
|
-
readonly rawId: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
325
|
-
readonly type: import("effect/Schema").Literal<"public-key">;
|
|
326
|
-
readonly response: import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>;
|
|
327
|
-
readonly authenticatorAttachment: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
328
|
-
readonly clientExtensionResults: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
|
|
329
|
-
}>;
|
|
330
|
-
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
331
|
-
readonly credentialId: import("effect/Schema").String;
|
|
332
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./Errors.js").AuthBadRequestError | typeof import("./Errors.js").AuthUnauthenticatedError | typeof import("./Errors.js").AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthRequestRejectedError | typeof import("./Errors.js").AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"listCredentials", "GET", "/auth/passkey/credentials", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
310
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./Errors.js").AuthBadRequestError | typeof import("./Errors.js").AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthRequestRejectedError | typeof import("./Errors.js").AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"listCredentials", "GET", "/auth/passkey/credentials", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
333
311
|
readonly credentials: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
334
312
|
readonly credentialId: import("effect/Schema").String;
|
|
335
313
|
readonly transports: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
@@ -339,7 +317,7 @@ declare const PasskeyHttpApiGroup_base: HttpApiGroup.HttpApiGroup<"passkey", imp
|
|
|
339
317
|
readonly revokedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
|
|
340
318
|
readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
|
|
341
319
|
}>>;
|
|
342
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./Errors.js").AuthUnauthenticatedError | typeof import("./Errors.js").AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthRequestRejectedError | typeof import("./Errors.js").AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"
|
|
320
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./Errors.js").AuthUnauthenticatedError | typeof import("./Errors.js").AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthRequestRejectedError | typeof import("./Errors.js").AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"registerFinish", "POST", "/auth/passkey/register/finish", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
343
321
|
readonly challengeId: import("effect/Schema").brand<import("effect/Schema").String, "auth/ChallengeId">;
|
|
344
322
|
readonly credential: import("effect/Schema").Struct<{
|
|
345
323
|
readonly id: import("effect/Schema").String;
|
|
@@ -349,25 +327,47 @@ declare const PasskeyHttpApiGroup_base: HttpApiGroup.HttpApiGroup<"passkey", imp
|
|
|
349
327
|
readonly authenticatorAttachment: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
350
328
|
readonly clientExtensionResults: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
|
|
351
329
|
}>;
|
|
352
|
-
readonly userId: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").String, "auth/UserId">>;
|
|
353
|
-
readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
|
|
354
330
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
355
|
-
readonly
|
|
356
|
-
|
|
357
|
-
readonly
|
|
358
|
-
readonly
|
|
359
|
-
readonly
|
|
360
|
-
|
|
361
|
-
readonly
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
331
|
+
readonly credentialId: import("effect/Schema").String;
|
|
332
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./Errors.js").AuthBadRequestError | typeof import("./Errors.js").AuthUnauthenticatedError | typeof import("./Errors.js").AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthRequestRejectedError | typeof import("./Errors.js").AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"registerStart", "POST", "/auth/passkey/register/start", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
333
|
+
readonly challengeId: import("effect/Schema").brand<import("effect/Schema").String, "auth/ChallengeId">;
|
|
334
|
+
readonly expiresAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
|
|
335
|
+
readonly publicKey: import("effect/Schema").Struct<{
|
|
336
|
+
readonly challenge: import("effect/Schema").String;
|
|
337
|
+
readonly rp: import("effect/Schema").Struct<{
|
|
338
|
+
readonly id: import("effect/Schema").String;
|
|
339
|
+
readonly name: import("effect/Schema").String;
|
|
340
|
+
}>;
|
|
341
|
+
readonly user: import("effect/Schema").Struct<{
|
|
342
|
+
readonly id: import("effect/Schema").String;
|
|
343
|
+
readonly name: import("effect/Schema").String;
|
|
344
|
+
readonly displayName: import("effect/Schema").String;
|
|
345
|
+
}>;
|
|
346
|
+
readonly pubKeyCredParams: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
347
|
+
readonly type: import("effect/Schema").Literal<"public-key">;
|
|
348
|
+
readonly alg: import("effect/Schema").Number;
|
|
365
349
|
}>>;
|
|
366
|
-
|
|
367
|
-
|
|
350
|
+
readonly timeout: import("effect/Schema").optional<import("effect/Schema").Number>;
|
|
351
|
+
readonly excludeCredentials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
352
|
+
readonly type: import("effect/Schema").Literal<"public-key">;
|
|
353
|
+
readonly id: import("effect/Schema").String;
|
|
354
|
+
readonly transports: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
355
|
+
}>>>;
|
|
356
|
+
readonly authenticatorSelection: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
357
|
+
readonly authenticatorAttachment: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["platform", "cross-platform"]>>;
|
|
358
|
+
readonly residentKey: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["discouraged", "preferred", "required"]>>;
|
|
359
|
+
readonly requireResidentKey: import("effect/Schema").optional<import("effect/Schema").Boolean>;
|
|
360
|
+
readonly userVerification: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["required", "preferred", "discouraged"]>>;
|
|
361
|
+
}>>;
|
|
362
|
+
readonly attestation: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["none", "indirect", "direct", "enterprise"]>>;
|
|
363
|
+
}>;
|
|
364
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./Errors.js").AuthBadRequestError | typeof import("./Errors.js").AuthUnauthenticatedError | typeof import("./Errors.js").AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthRequestRejectedError | typeof import("./Errors.js").AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"revokeCredential", "POST", "/auth/passkey/credentials/revoke", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
365
|
+
readonly credentialId: import("effect/Schema").String;
|
|
366
|
+
readonly reason: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
367
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/unstable/httpapi/HttpApiSchema").NoContent>, import("effect/Schema").toCodecJson<typeof import("./Errors.js").AuthBadRequestError | typeof import("./Errors.js").AuthUnauthenticatedError | typeof import("./Errors.js").AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthRequestRejectedError | typeof import("./Errors.js").AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never>, false>;
|
|
368
368
|
export declare class PasskeyHttpApiGroup extends PasskeyHttpApiGroup_base {
|
|
369
369
|
}
|
|
370
|
-
declare const IdentityHttpApiGroup_base: HttpApiGroup.HttpApiGroup<"identity", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"
|
|
370
|
+
declare const IdentityHttpApiGroup_base: HttpApiGroup.HttpApiGroup<"identity", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"add", "POST", "/auth/identities/add", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
371
371
|
readonly scope: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
372
372
|
readonly type: import("effect/Schema").Literal<"global">;
|
|
373
373
|
}>, import("effect/Schema").Struct<{
|
|
@@ -376,12 +376,8 @@ declare const IdentityHttpApiGroup_base: HttpApiGroup.HttpApiGroup<"identity", i
|
|
|
376
376
|
}>]>;
|
|
377
377
|
readonly kind: import("effect/Schema").String;
|
|
378
378
|
readonly value: import("effect/Schema").String;
|
|
379
|
-
readonly botChallenge: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
380
|
-
readonly token: import("effect/Schema").String;
|
|
381
|
-
}>>;
|
|
382
379
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
383
|
-
readonly
|
|
384
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./Errors.js").AuthBadRequestError | typeof import("./Errors.js").AuthUnauthenticatedError | typeof import("./Errors.js").AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthIdentityAlreadyRegisteredError | typeof import("./Errors.js").AuthRequestRejectedError | typeof import("./Errors.js").AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"add", "POST", "/auth/identities/add", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
380
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "auth/IdentityId">;
|
|
385
381
|
readonly scope: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
386
382
|
readonly type: import("effect/Schema").Literal<"global">;
|
|
387
383
|
}>, import("effect/Schema").Struct<{
|
|
@@ -390,8 +386,12 @@ declare const IdentityHttpApiGroup_base: HttpApiGroup.HttpApiGroup<"identity", i
|
|
|
390
386
|
}>]>;
|
|
391
387
|
readonly kind: import("effect/Schema").String;
|
|
392
388
|
readonly value: import("effect/Schema").String;
|
|
393
|
-
|
|
394
|
-
readonly
|
|
389
|
+
readonly verified: import("effect/Schema").Boolean;
|
|
390
|
+
readonly loginEligible: import("effect/Schema").Boolean;
|
|
391
|
+
readonly isPrimaryLogin: import("effect/Schema").Boolean;
|
|
392
|
+
readonly createdAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
|
|
393
|
+
readonly updatedAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
|
|
394
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./Errors.js").AuthBadRequestError | typeof import("./Errors.js").AuthUnauthenticatedError | typeof import("./Errors.js").AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthIdentityAlreadyRegisteredError | typeof import("./Errors.js").AuthRequestRejectedError | typeof import("./Errors.js").AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"availability", "POST", "/auth/identities/availability", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
395
395
|
readonly scope: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
396
396
|
readonly type: import("effect/Schema").Literal<"global">;
|
|
397
397
|
}>, import("effect/Schema").Struct<{
|
|
@@ -400,11 +400,28 @@ declare const IdentityHttpApiGroup_base: HttpApiGroup.HttpApiGroup<"identity", i
|
|
|
400
400
|
}>]>;
|
|
401
401
|
readonly kind: import("effect/Schema").String;
|
|
402
402
|
readonly value: import("effect/Schema").String;
|
|
403
|
-
readonly
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
readonly
|
|
403
|
+
readonly botChallenge: import("effect/Schema").optional<import("effect/Schema").Struct<{
|
|
404
|
+
readonly token: import("effect/Schema").String;
|
|
405
|
+
}>>;
|
|
406
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
407
|
+
readonly available: import("effect/Schema").Boolean;
|
|
408
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./Errors.js").AuthBadRequestError | typeof import("./Errors.js").AuthUnauthenticatedError | typeof import("./Errors.js").AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthIdentityAlreadyRegisteredError | typeof import("./Errors.js").AuthRequestRejectedError | typeof import("./Errors.js").AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"list", "GET", "/auth/identities/", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
409
|
+
readonly identities: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
410
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "auth/IdentityId">;
|
|
411
|
+
readonly scope: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
412
|
+
readonly type: import("effect/Schema").Literal<"global">;
|
|
413
|
+
}>, import("effect/Schema").Struct<{
|
|
414
|
+
readonly type: import("effect/Schema").Literal<"tenant">;
|
|
415
|
+
readonly tenantId: import("effect/Schema").String;
|
|
416
|
+
}>]>;
|
|
417
|
+
readonly kind: import("effect/Schema").String;
|
|
418
|
+
readonly value: import("effect/Schema").String;
|
|
419
|
+
readonly verified: import("effect/Schema").Boolean;
|
|
420
|
+
readonly loginEligible: import("effect/Schema").Boolean;
|
|
421
|
+
readonly isPrimaryLogin: import("effect/Schema").Boolean;
|
|
422
|
+
readonly createdAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
|
|
423
|
+
readonly updatedAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
|
|
424
|
+
}>>;
|
|
408
425
|
}>>, import("effect/Schema").toCodecJson<typeof import("./Errors.js").AuthBadRequestError | typeof import("./Errors.js").AuthUnauthenticatedError | typeof import("./Errors.js").AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthIdentityAlreadyRegisteredError | typeof import("./Errors.js").AuthRequestRejectedError | typeof import("./Errors.js").AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"primary", "POST", "/auth/identities/primary", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
409
426
|
readonly identityId: import("effect/Schema").brand<import("effect/Schema").String, "auth/IdentityId">;
|
|
410
427
|
readonly expectedUpdatedAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
|
|
@@ -468,30 +485,10 @@ declare const IdentityHttpApiGroup_base: HttpApiGroup.HttpApiGroup<"identity", i
|
|
|
468
485
|
readonly isPrimaryLogin: import("effect/Schema").Boolean;
|
|
469
486
|
readonly createdAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
|
|
470
487
|
readonly updatedAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
|
|
471
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./Errors.js").AuthBadRequestError | typeof import("./Errors.js").AuthUnauthenticatedError | typeof import("./Errors.js").AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthIdentityAlreadyRegisteredError | typeof import("./Errors.js").AuthRequestRejectedError | typeof import("./Errors.js").AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"list", "GET", "/auth/identities/", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
472
|
-
readonly identities: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
473
|
-
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "auth/IdentityId">;
|
|
474
|
-
readonly scope: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
475
|
-
readonly type: import("effect/Schema").Literal<"global">;
|
|
476
|
-
}>, import("effect/Schema").Struct<{
|
|
477
|
-
readonly type: import("effect/Schema").Literal<"tenant">;
|
|
478
|
-
readonly tenantId: import("effect/Schema").String;
|
|
479
|
-
}>]>;
|
|
480
|
-
readonly kind: import("effect/Schema").String;
|
|
481
|
-
readonly value: import("effect/Schema").String;
|
|
482
|
-
readonly verified: import("effect/Schema").Boolean;
|
|
483
|
-
readonly loginEligible: import("effect/Schema").Boolean;
|
|
484
|
-
readonly isPrimaryLogin: import("effect/Schema").Boolean;
|
|
485
|
-
readonly createdAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
|
|
486
|
-
readonly updatedAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
|
|
487
|
-
}>>;
|
|
488
488
|
}>>, import("effect/Schema").toCodecJson<typeof import("./Errors.js").AuthBadRequestError | typeof import("./Errors.js").AuthUnauthenticatedError | typeof import("./Errors.js").AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthIdentityAlreadyRegisteredError | typeof import("./Errors.js").AuthRequestRejectedError | typeof import("./Errors.js").AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never>, false>;
|
|
489
489
|
export declare class IdentityHttpApiGroup extends IdentityHttpApiGroup_base {
|
|
490
490
|
}
|
|
491
|
-
declare const TotpHttpApiGroup_base: HttpApiGroup.HttpApiGroup<"totp", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"
|
|
492
|
-
readonly factorId: import("effect/Schema").brand<import("effect/Schema").String, "auth/CredentialId">;
|
|
493
|
-
readonly reason: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
494
|
-
}>>, never, import("effect/Schema").toCodecJson<import("effect/unstable/httpapi/HttpApiSchema").NoContent>, import("effect/Schema").toCodecJson<typeof import("./Errors.js").AuthBadRequestError | typeof import("./Errors.js").AuthUnauthenticatedError | typeof import("./Errors.js").AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthRequestRejectedError | typeof import("./Errors.js").AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"confirmEnrollment", "POST", "/auth/totp/enroll/confirm", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
491
|
+
declare const TotpHttpApiGroup_base: HttpApiGroup.HttpApiGroup<"totp", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"confirmEnrollment", "POST", "/auth/totp/enroll/confirm", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
495
492
|
readonly factorId: import("effect/Schema").brand<import("effect/Schema").String, "auth/CredentialId">;
|
|
496
493
|
readonly code: import("effect/Schema").String;
|
|
497
494
|
readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
|
|
@@ -505,7 +502,22 @@ declare const TotpHttpApiGroup_base: HttpApiGroup.HttpApiGroup<"totp", import("e
|
|
|
505
502
|
readonly lastUsedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
|
|
506
503
|
readonly revokedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
|
|
507
504
|
readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
|
|
508
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./Errors.js").AuthBadRequestError | typeof import("./Errors.js").AuthUnauthenticatedError | typeof import("./Errors.js").AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthRequestRejectedError | typeof import("./Errors.js").AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"
|
|
505
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./Errors.js").AuthBadRequestError | typeof import("./Errors.js").AuthUnauthenticatedError | typeof import("./Errors.js").AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthRequestRejectedError | typeof import("./Errors.js").AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"listFactors", "GET", "/auth/totp/factors", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
506
|
+
readonly factors: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
507
|
+
readonly factorId: import("effect/Schema").brand<import("effect/Schema").String, "auth/CredentialId">;
|
|
508
|
+
readonly algorithm: import("effect/Schema").Literals<readonly ["SHA1", "SHA256", "SHA512"]>;
|
|
509
|
+
readonly digits: import("effect/Schema").Number;
|
|
510
|
+
readonly period: import("effect/Schema").Number;
|
|
511
|
+
readonly createdAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
|
|
512
|
+
readonly confirmedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
|
|
513
|
+
readonly lastUsedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
|
|
514
|
+
readonly revokedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
|
|
515
|
+
readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
|
|
516
|
+
}>>;
|
|
517
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./Errors.js").AuthUnauthenticatedError | typeof import("./Errors.js").AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthRequestRejectedError | typeof import("./Errors.js").AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"revokeFactor", "POST", "/auth/totp/factors/revoke", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
518
|
+
readonly factorId: import("effect/Schema").brand<import("effect/Schema").String, "auth/CredentialId">;
|
|
519
|
+
readonly reason: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
520
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/unstable/httpapi/HttpApiSchema").NoContent>, import("effect/Schema").toCodecJson<typeof import("./Errors.js").AuthBadRequestError | typeof import("./Errors.js").AuthUnauthenticatedError | typeof import("./Errors.js").AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthRequestRejectedError | typeof import("./Errors.js").AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"startEnrollment", "POST", "/auth/totp/enroll/start", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
509
521
|
readonly accountName: import("effect/Schema").String;
|
|
510
522
|
readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
|
|
511
523
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
@@ -540,25 +552,10 @@ declare const TotpHttpApiGroup_base: HttpApiGroup.HttpApiGroup<"totp", import("e
|
|
|
540
552
|
}>>;
|
|
541
553
|
readonly delta: import("effect/Schema").optional<import("effect/Schema").Number>;
|
|
542
554
|
readonly acceptedCounter: import("effect/Schema").optional<import("effect/Schema").Number>;
|
|
543
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./Errors.js").AuthUnauthenticatedError | typeof import("./Errors.js").AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthRequestRejectedError | typeof import("./Errors.js").AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"listFactors", "GET", "/auth/totp/factors", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
544
|
-
readonly factors: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
545
|
-
readonly factorId: import("effect/Schema").brand<import("effect/Schema").String, "auth/CredentialId">;
|
|
546
|
-
readonly algorithm: import("effect/Schema").Literals<readonly ["SHA1", "SHA256", "SHA512"]>;
|
|
547
|
-
readonly digits: import("effect/Schema").Number;
|
|
548
|
-
readonly period: import("effect/Schema").Number;
|
|
549
|
-
readonly createdAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
|
|
550
|
-
readonly confirmedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
|
|
551
|
-
readonly lastUsedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
|
|
552
|
-
readonly revokedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
|
|
553
|
-
readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
|
|
554
|
-
}>>;
|
|
555
555
|
}>>, import("effect/Schema").toCodecJson<typeof import("./Errors.js").AuthUnauthenticatedError | typeof import("./Errors.js").AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthRequestRejectedError | typeof import("./Errors.js").AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never>, false>;
|
|
556
556
|
export declare class TotpHttpApiGroup extends TotpHttpApiGroup_base {
|
|
557
557
|
}
|
|
558
|
-
declare const RecoveryCodesHttpApiGroup_base: HttpApiGroup.HttpApiGroup<"recoveryCodes", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"
|
|
559
|
-
readonly codeId: import("effect/Schema").brand<import("effect/Schema").String, "auth/CredentialId">;
|
|
560
|
-
readonly reason: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
561
|
-
}>>, never, import("effect/Schema").toCodecJson<import("effect/unstable/httpapi/HttpApiSchema").NoContent>, import("effect/Schema").toCodecJson<typeof import("./Errors.js").AuthBadRequestError | typeof import("./Errors.js").AuthUnauthenticatedError | typeof import("./Errors.js").AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthRequestRejectedError | typeof import("./Errors.js").AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"generateRecoveryCodes", "POST", "/auth/recovery-codes/generate", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
558
|
+
declare const RecoveryCodesHttpApiGroup_base: HttpApiGroup.HttpApiGroup<"recoveryCodes", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"generateRecoveryCodes", "POST", "/auth/recovery-codes/generate", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
562
559
|
readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
|
|
563
560
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
564
561
|
readonly codes: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
@@ -569,7 +566,15 @@ declare const RecoveryCodesHttpApiGroup_base: HttpApiGroup.HttpApiGroup<"recover
|
|
|
569
566
|
readonly revokedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
|
|
570
567
|
readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
|
|
571
568
|
}>>;
|
|
572
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./Errors.js").AuthBadRequestError | typeof import("./Errors.js").AuthUnauthenticatedError | typeof import("./Errors.js").AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthRequestRejectedError | typeof import("./Errors.js").AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"
|
|
569
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./Errors.js").AuthBadRequestError | typeof import("./Errors.js").AuthUnauthenticatedError | typeof import("./Errors.js").AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthRequestRejectedError | typeof import("./Errors.js").AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"listRecoveryCodes", "GET", "/auth/recovery-codes/codes", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
570
|
+
readonly codes: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
571
|
+
readonly codeId: import("effect/Schema").brand<import("effect/Schema").String, "auth/CredentialId">;
|
|
572
|
+
readonly createdAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
|
|
573
|
+
readonly usedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
|
|
574
|
+
readonly revokedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
|
|
575
|
+
readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
|
|
576
|
+
}>>;
|
|
577
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./Errors.js").AuthUnauthenticatedError | typeof import("./Errors.js").AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthRequestRejectedError | typeof import("./Errors.js").AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"regenerateRecoveryCodes", "POST", "/auth/recovery-codes/regenerate", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
573
578
|
readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
|
|
574
579
|
readonly revokeReason: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
575
580
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
@@ -581,7 +586,10 @@ declare const RecoveryCodesHttpApiGroup_base: HttpApiGroup.HttpApiGroup<"recover
|
|
|
581
586
|
readonly revokedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
|
|
582
587
|
readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
|
|
583
588
|
}>>;
|
|
584
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./Errors.js").AuthBadRequestError | typeof import("./Errors.js").AuthUnauthenticatedError | typeof import("./Errors.js").AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthRequestRejectedError | typeof import("./Errors.js").AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"
|
|
589
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./Errors.js").AuthBadRequestError | typeof import("./Errors.js").AuthUnauthenticatedError | typeof import("./Errors.js").AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthRequestRejectedError | typeof import("./Errors.js").AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"revokeRecoveryCode", "POST", "/auth/recovery-codes/codes/revoke", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
590
|
+
readonly codeId: import("effect/Schema").brand<import("effect/Schema").String, "auth/CredentialId">;
|
|
591
|
+
readonly reason: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
592
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/unstable/httpapi/HttpApiSchema").NoContent>, import("effect/Schema").toCodecJson<typeof import("./Errors.js").AuthBadRequestError | typeof import("./Errors.js").AuthUnauthenticatedError | typeof import("./Errors.js").AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthRequestRejectedError | typeof import("./Errors.js").AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verifyRecoveryCode", "POST", "/auth/recovery-codes/verify", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
585
593
|
readonly code: import("effect/Schema").String;
|
|
586
594
|
readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
|
|
587
595
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
@@ -593,14 +601,6 @@ declare const RecoveryCodesHttpApiGroup_base: HttpApiGroup.HttpApiGroup<"recover
|
|
|
593
601
|
readonly revokedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
|
|
594
602
|
readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
|
|
595
603
|
}>>;
|
|
596
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./Errors.js").AuthUnauthenticatedError | typeof import("./Errors.js").AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthRequestRejectedError | typeof import("./Errors.js").AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"listRecoveryCodes", "GET", "/auth/recovery-codes/codes", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
597
|
-
readonly codes: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
598
|
-
readonly codeId: import("effect/Schema").brand<import("effect/Schema").String, "auth/CredentialId">;
|
|
599
|
-
readonly createdAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
|
|
600
|
-
readonly usedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
|
|
601
|
-
readonly revokedAt: import("effect/Schema").optional<import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">>;
|
|
602
|
-
readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
|
|
603
|
-
}>>;
|
|
604
604
|
}>>, import("effect/Schema").toCodecJson<typeof import("./Errors.js").AuthUnauthenticatedError | typeof import("./Errors.js").AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthRequestRejectedError | typeof import("./Errors.js").AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never>, false>;
|
|
605
605
|
export declare class RecoveryCodesHttpApiGroup extends RecoveryCodesHttpApiGroup_base {
|
|
606
606
|
}
|
|
@@ -648,7 +648,13 @@ declare const LoginApprovalHttpApiGroup_base: HttpApiGroup.HttpApiGroup<"loginAp
|
|
|
648
648
|
}>>, import("effect/Schema").toCodecJson<typeof import("./Errors.js").AuthBadRequestError | typeof import("./Errors.js").AuthPolicyDeniedError | typeof import("./Errors.js").AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never>, false>;
|
|
649
649
|
export declare class LoginApprovalHttpApiGroup extends LoginApprovalHttpApiGroup_base {
|
|
650
650
|
}
|
|
651
|
-
declare const MfaHttpApiGroup_base: HttpApiGroup.HttpApiGroup<"mfa", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"
|
|
651
|
+
declare const MfaHttpApiGroup_base: HttpApiGroup.HttpApiGroup<"mfa", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"options", "POST", "/auth/mfa/options", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
652
|
+
readonly flowId: import("effect/Schema").brand<import("effect/Schema").String, "auth/AuthFlowId">;
|
|
653
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
654
|
+
readonly factors: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
655
|
+
readonly type: import("effect/Schema").Literals<readonly ["totp", "backup-code", "passkey"]>;
|
|
656
|
+
}>>;
|
|
657
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./Errors.js").AuthBadRequestError | typeof import("./Errors.js").AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthRequestRejectedError | typeof import("./Errors.js").AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"startPasskey", "POST", "/auth/mfa/passkey/start", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
652
658
|
readonly flowId: import("effect/Schema").brand<import("effect/Schema").String, "auth/AuthFlowId">;
|
|
653
659
|
readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
|
|
654
660
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
@@ -665,12 +671,6 @@ declare const MfaHttpApiGroup_base: HttpApiGroup.HttpApiGroup<"mfa", import("eff
|
|
|
665
671
|
}>>>;
|
|
666
672
|
readonly userVerification: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["required", "preferred", "discouraged"]>>;
|
|
667
673
|
}>;
|
|
668
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./Errors.js").AuthBadRequestError | typeof import("./Errors.js").AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthRequestRejectedError | typeof import("./Errors.js").AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"options", "POST", "/auth/mfa/options", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
669
|
-
readonly flowId: import("effect/Schema").brand<import("effect/Schema").String, "auth/AuthFlowId">;
|
|
670
|
-
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
671
|
-
readonly factors: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
672
|
-
readonly type: import("effect/Schema").Literals<readonly ["totp", "backup-code", "passkey"]>;
|
|
673
|
-
}>>;
|
|
674
674
|
}>>, import("effect/Schema").toCodecJson<typeof import("./Errors.js").AuthBadRequestError | typeof import("./Errors.js").AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthRequestRejectedError | typeof import("./Errors.js").AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verifyPasskey", "POST", "/auth/mfa/passkey/verify", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
675
675
|
readonly flowId: import("effect/Schema").brand<import("effect/Schema").String, "auth/AuthFlowId">;
|
|
676
676
|
readonly challengeId: import("effect/Schema").brand<import("effect/Schema").String, "auth/ChallengeId">;
|
|
@@ -810,7 +810,11 @@ declare const MfaHttpApiGroup_base: HttpApiGroup.HttpApiGroup<"mfa", import("eff
|
|
|
810
810
|
}>]>>, import("effect/Schema").toCodecJson<typeof import("./Errors.js").AuthBadRequestError | typeof import("./Errors.js").AuthInvalidCredentialsError | typeof import("./Errors.js").AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthRequestRejectedError | typeof import("./Errors.js").AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never>, false>;
|
|
811
811
|
export declare class MfaHttpApiGroup extends MfaHttpApiGroup_base {
|
|
812
812
|
}
|
|
813
|
-
declare const StepUpHttpApiGroup_base: HttpApiGroup.HttpApiGroup<"stepUp", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"
|
|
813
|
+
declare const StepUpHttpApiGroup_base: HttpApiGroup.HttpApiGroup<"stepUp", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"options", "GET", "/auth/step-up/options", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
814
|
+
readonly factors: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
815
|
+
readonly type: import("effect/Schema").Literals<readonly ["password", "totp", "backup-code", "passkey"]>;
|
|
816
|
+
}>>;
|
|
817
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./Errors.js").AuthUnauthenticatedError | typeof import("./Errors.js").AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthRequestRejectedError | typeof import("./Errors.js").AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"startPasskey", "POST", "/auth/step-up/passkey/start", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
814
818
|
readonly metadata: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
|
|
815
819
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
816
820
|
readonly challengeId: import("effect/Schema").brand<import("effect/Schema").String, "auth/ChallengeId">;
|
|
@@ -826,11 +830,7 @@ declare const StepUpHttpApiGroup_base: HttpApiGroup.HttpApiGroup<"stepUp", impor
|
|
|
826
830
|
}>>>;
|
|
827
831
|
readonly userVerification: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["required", "preferred", "discouraged"]>>;
|
|
828
832
|
}>;
|
|
829
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./Errors.js").AuthBadRequestError | typeof import("./Errors.js").AuthUnauthenticatedError | typeof import("./Errors.js").AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthRequestRejectedError | typeof import("./Errors.js").AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"
|
|
830
|
-
readonly factors: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
831
|
-
readonly type: import("effect/Schema").Literals<readonly ["password", "totp", "backup-code", "passkey"]>;
|
|
832
|
-
}>>;
|
|
833
|
-
}>>, import("effect/Schema").toCodecJson<typeof import("./Errors.js").AuthUnauthenticatedError | typeof import("./Errors.js").AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthRequestRejectedError | typeof import("./Errors.js").AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verifyPasskey", "POST", "/auth/step-up/passkey/verify", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
833
|
+
}>>, import("effect/Schema").toCodecJson<typeof import("./Errors.js").AuthBadRequestError | typeof import("./Errors.js").AuthUnauthenticatedError | typeof import("./Errors.js").AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthRequestRejectedError | typeof import("./Errors.js").AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"verifyPasskey", "POST", "/auth/step-up/passkey/verify", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
834
834
|
readonly challengeId: import("effect/Schema").brand<import("effect/Schema").String, "auth/ChallengeId">;
|
|
835
835
|
readonly credential: import("effect/Schema").Struct<{
|
|
836
836
|
readonly id: import("effect/Schema").String;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HttpApiEndpoint, HttpApiSchema } from "effect/unstable/httpapi";
|
|
2
|
-
import { AuthBadRequestError, AuthConflictError, AuthIdentityAlreadyRegisteredError, AuthInternalError, AuthInvalidCredentialsError, AuthNotFoundError, AuthPolicyDeniedError, AuthRateLimitedError, AuthRequestRejectedError, AuthStepUpRequiredError, AuthUnauthenticatedError, OAuthAuthorizationEndpointError, OAuthTokenEndpointError, OAuthTokenIntrospectionEndpointError, OAuthTokenRevocationEndpointError } from "./Errors.js";
|
|
2
|
+
import { AuthBadRequestError, AuthConflictError, AuthIdentityAlreadyRegisteredError, AuthInternalError, AuthInvalidCredentialsError, AuthNotFoundError, AuthPolicyDeniedError, AuthRateLimitedError, AuthRequestRejectedError, AuthStepUpRequiredError, AuthUnauthenticatedError, OAuthAuthorizationEndpointError, OAuthDeviceAuthorizationEndpointError, OAuthTokenEndpointError, OAuthTokenIntrospectionEndpointError, OAuthTokenRevocationEndpointError } from "./Errors.js";
|
|
3
3
|
export declare const identityAvailabilityEndpoint: HttpApiEndpoint.HttpApiEndpoint<"availability", "POST", "/availability", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
4
4
|
readonly scope: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
5
5
|
readonly type: import("effect/Schema").Literal<"global">;
|
|
@@ -628,6 +628,37 @@ export declare const oauthTokenEndpoint: HttpApiEndpoint.HttpApiEndpoint<"token"
|
|
|
628
628
|
readonly scope: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
629
629
|
readonly extra: import("effect/Schema").optional<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>;
|
|
630
630
|
}>>, import("effect/Schema").toCodecJson<typeof AuthInternalError | typeof OAuthTokenEndpointError>, never, never>;
|
|
631
|
+
export declare const oauthDeviceAuthorizationEndpoint: HttpApiEndpoint.HttpApiEndpoint<"authorizeDevice", "POST", "/device_authorization", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
632
|
+
readonly device_code: import("effect/Schema").String;
|
|
633
|
+
readonly user_code: import("effect/Schema").String;
|
|
634
|
+
readonly verification_uri: import("effect/Schema").String;
|
|
635
|
+
readonly verification_uri_complete: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
636
|
+
readonly expires_in: import("effect/Schema").Number;
|
|
637
|
+
readonly interval: import("effect/Schema").Number;
|
|
638
|
+
}>>, import("effect/Schema").toCodecJson<typeof OAuthDeviceAuthorizationEndpointError>, never, never>;
|
|
639
|
+
export declare const oauthDeviceAuthorizationInspectEndpoint: HttpApiEndpoint.HttpApiEndpoint<"inspect", "POST", "/inspect", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
640
|
+
readonly userCode: import("effect/Schema").String;
|
|
641
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
642
|
+
readonly authorizationId: import("effect/Schema").String;
|
|
643
|
+
readonly client: import("effect/Schema").Struct<{
|
|
644
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "auth/OAuthClientId">;
|
|
645
|
+
readonly name: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
646
|
+
}>;
|
|
647
|
+
readonly requestedScopes: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
648
|
+
readonly expiresAt: import("effect/Schema").brand<import("effect/Schema").Number, "auth/UnixMillis">;
|
|
649
|
+
readonly userCode: import("effect/Schema").String;
|
|
650
|
+
}>>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthConflictError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
|
|
651
|
+
export declare const oauthDeviceAuthorizationApproveEndpoint: HttpApiEndpoint.HttpApiEndpoint<"approve", "POST", "/approve", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
652
|
+
readonly authorizationId: import("effect/Schema").String;
|
|
653
|
+
readonly scopes: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
|
|
654
|
+
readonly userId: import("effect/Schema").optional<import("effect/Schema").Never>;
|
|
655
|
+
readonly subject: import("effect/Schema").optional<import("effect/Schema").Never>;
|
|
656
|
+
}>>, never, import("effect/Schema").toCodecJson<HttpApiSchema.NoContent>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthConflictError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
|
|
657
|
+
export declare const oauthDeviceAuthorizationDenyEndpoint: HttpApiEndpoint.HttpApiEndpoint<"deny", "POST", "/deny", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
658
|
+
readonly authorizationId: import("effect/Schema").String;
|
|
659
|
+
readonly userId: import("effect/Schema").optional<import("effect/Schema").Never>;
|
|
660
|
+
readonly subject: import("effect/Schema").optional<import("effect/Schema").Never>;
|
|
661
|
+
}>>, never, import("effect/Schema").toCodecJson<HttpApiSchema.NoContent>, import("effect/Schema").toCodecJson<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof AuthStepUpRequiredError | typeof AuthRateLimitedError | typeof AuthConflictError | typeof AuthRequestRejectedError | typeof AuthInternalError>, never, never>;
|
|
631
662
|
export declare const oauthTokenIntrospectionEndpoint: HttpApiEndpoint.HttpApiEndpoint<"introspect", "POST", "/introspect", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
632
663
|
readonly active: import("effect/Schema").Boolean;
|
|
633
664
|
readonly scope: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
@@ -1069,6 +1100,7 @@ export declare const oidcDiscoveryMetadataEndpoint: HttpApiEndpoint.HttpApiEndpo
|
|
|
1069
1100
|
readonly issuer: import("effect/Schema").String;
|
|
1070
1101
|
readonly authorization_endpoint: import("effect/Schema").String;
|
|
1071
1102
|
readonly token_endpoint: import("effect/Schema").String;
|
|
1103
|
+
readonly device_authorization_endpoint: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1072
1104
|
readonly jwks_uri: import("effect/Schema").String;
|
|
1073
1105
|
readonly response_types_supported: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
1074
1106
|
readonly subject_types_supported: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Endpoints.d.ts","sourceRoot":"","sources":["../../src/HttpApi/Endpoints.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAEzE,OAAO,EACL,mBAAmB,EACnB,iBAAiB,EACjB,kCAAkC,EAClC,iBAAiB,EACjB,2BAA2B,EAC3B,iBAAiB,EACjB,qBAAqB,EACrB,oBAAoB,EACpB,wBAAwB,EACxB,uBAAuB,EACvB,wBAAwB,EACxB,+BAA+B,EAC/B,uBAAuB,EACvB,oCAAoC,EACpC,iCAAiC,EAClC,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"Endpoints.d.ts","sourceRoot":"","sources":["../../src/HttpApi/Endpoints.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAEzE,OAAO,EACL,mBAAmB,EACnB,iBAAiB,EACjB,kCAAkC,EAClC,iBAAiB,EACjB,2BAA2B,EAC3B,iBAAiB,EACjB,qBAAqB,EACrB,oBAAoB,EACpB,wBAAwB,EACxB,uBAAuB,EACvB,wBAAwB,EACxB,+BAA+B,EAC/B,qCAA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