@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
package/dist/HttpApi/Api.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Context, Effect, Layer, Redacted } from "effect";
|
|
1
|
+
import { Context, Effect, Layer, Option, Redacted } from "effect";
|
|
2
2
|
import type { Duration, Schema } from "effect";
|
|
3
3
|
import { HttpRouter, HttpServerRequest, HttpServerResponse } from "effect/unstable/http";
|
|
4
4
|
import { HttpApi, HttpApiGroup } from "effect/unstable/httpapi";
|
|
@@ -24,8 +24,9 @@ import type { LoginApprovalReviewService, LoginApprovalService, LoginApprovalVer
|
|
|
24
24
|
import type { LoginNotificationReportInput, LoginNotificationService } from "../LoginNotification.js";
|
|
25
25
|
import { MagicLinkLogin } from "../MagicLink.js";
|
|
26
26
|
import type { MagicLinkLoginService } from "../MagicLink.js";
|
|
27
|
-
import type { OAuthAccountUnlinkingResolution, OAuthAccountUnlinkingService,
|
|
28
|
-
import { OAuthAuthorizationCodeTokenGrant, OAuthAccountUnlinking, OAuthProviderAuthorization, OAuthProviders, OAuthLinkConfirmation, OAuthState } from "../OAuth.js";
|
|
27
|
+
import type { OAuthAccountUnlinkingResolution, OAuthAccountUnlinkingService, OAuthAuthorizationStartInput, OAuthCallbackInput, OAuthClientAuthentication, OAuthCodeVerifier, OAuthLinkConfirmationConfirmInput, OAuthLinkConfirmationInspectInput, OAuthLinkConfirmationService, OAuthLinkConfirmationStartInput, OAuthProviderAuthorizationService, OAuthProviderConfig, OAuthProvidersService, OAuthStateService, OAuthTokenIntrospectionService, OAuthTokenRevocationService, ConfirmedOAuthLinkConfirmation, PendingOAuthLinkConfirmation, StartedOAuthAuthorization, StartedOAuthLinkConfirmation } from "../OAuth.js";
|
|
28
|
+
import { OAuthAuthorizationCodeTokenGrant, OAuthAccountUnlinking, OAuthClientCredentialsGrant, OAuthProviderAuthorization, OAuthProviders, OAuthRefreshTokenGrant, OAuthTokenIntrospection, OAuthTokenRevocation, OAuthLinkConfirmation, OAuthState } from "../OAuth.js";
|
|
29
|
+
import { OAuthDeviceCodeTokenGrant } from "../OAuthDeviceAuthorization.js";
|
|
29
30
|
import { PasskeyCredentialId, PasskeyCredentialManagement, PasskeyOptions, PasskeyVerification } from "../Passkey.js";
|
|
30
31
|
import type { FinishedPasskeyAuthentication, PasskeyAttestation, PasskeyAuthenticationFinishInput, PasskeyAuthenticationStartInput, PasskeyAuthenticatorSelection, PasskeyCredentialManagementService, PasskeyOptionsService, PasskeyPublicKeyCredentialParameters, PasskeyRelyingParty, PasskeyUserVerification, PasskeyVerificationService } from "../Passkey.js";
|
|
31
32
|
import { PasswordHasher } from "../Password.js";
|
|
@@ -51,11 +52,11 @@ import { EmailAuthHttpApiGroup, EmailOtpHttpApiGroup, EmailVerificationHttpApiGr
|
|
|
51
52
|
import type { EmailAuthStartGuardRequest, EmailOtpStartGuardRequest, EmailOtpVerifyGuardRequest, EmailVerificationStartGuardRequest, MagicLinkStartGuardRequest, MagicLinkVerifyGuardRequest } from "./EmailGuards.js";
|
|
52
53
|
import { AuthBadRequestError, AuthConflictError, AuthIdentityAlreadyRegisteredError, AuthInternalError, AuthInvalidCredentialsError, AuthNotFoundError, AuthPolicyDeniedError, AuthSchemaErrorMiddleware, AuthUnauthenticatedError, OAuthAuthorizationEndpointError, OAuthTokenEndpointError, OAuthTokenIntrospectionEndpointError, OAuthTokenRevocationEndpointError } from "./Errors.js";
|
|
53
54
|
import type { IdentityAvailabilityGuardRequest } from "./IdentityGuards.js";
|
|
54
|
-
import { AuthOriginCheckMiddleware } from "./Middleware.js";
|
|
55
|
-
import { AdminSecurityTimelineHttpOperations, AdminPermissionDefinitionHttpOperations, type AdminPermissionDefinitionHttpOperationRequirements, AdminSessionHttpOperations, AdminTrustedDeviceHttpOperations, ApiKeyHttpOperations, EmailAuthHttpOperations, EmailOtpHttpOperations, EmailVerificationHttpOperations, JwtDiscoveryHttpOperations, JwtHttpOperations, LoginApprovalHttpOperations, MagicLinkHttpOperations, MfaHttpOperations, OAuthHttpOperations, OAuthProviderAuthorizationHttpOperations, OAuthTokenHttpOperations, OidcDiscoveryHttpOperations, PasskeyHttpOperations, IdentityHttpOperations, RecoveryCodesHttpOperations, RefreshTokenHttpOperations, LoginNotificationHttpOperations, SecurityTimelineHttpOperations, SessionHttpOperations, StepUpHttpOperations, TotpHttpOperations, TrustedDeviceHttpOperations } from "./Operations/index.js";
|
|
55
|
+
import { AuthOriginCheckMiddleware, OAuthNoStoreMiddleware } from "./Middleware.js";
|
|
56
|
+
import { AdminSecurityTimelineHttpOperations, AdminPermissionDefinitionHttpOperations, type AdminPermissionDefinitionHttpOperationRequirements, AdminSessionHttpOperations, AdminTrustedDeviceHttpOperations, ApiKeyHttpOperations, EmailAuthHttpOperations, EmailOtpHttpOperations, EmailVerificationHttpOperations, JwtDiscoveryHttpOperations, JwtHttpOperations, LoginApprovalHttpOperations, MagicLinkHttpOperations, MfaHttpOperations, OAuthHttpOperations, OAuthProviderAuthorizationHttpOperations, OAuthTokenHttpOperations, OAuthTokenIntrospectionHttpOperations, OAuthTokenRevocationHttpOperations, OidcDiscoveryHttpOperations, PasskeyHttpOperations, IdentityHttpOperations, RecoveryCodesHttpOperations, RefreshTokenHttpOperations, LoginNotificationHttpOperations, SecurityTimelineHttpOperations, SessionHttpOperations, StepUpHttpOperations, TotpHttpOperations, TrustedDeviceHttpOperations } from "./Operations/index.js";
|
|
56
57
|
import type { AuthRateLimitGuardRequest } from "./RequestGuards.js";
|
|
57
|
-
import { OAuthProviderAuthorizationQuery } from "./Schemas.js";
|
|
58
|
-
import type { AdminSecurityTimelineListQuery, AdminPermissionDefinitionCreateBody, AdminPermissionDefinitionGetQuery, AdminPermissionDefinitionListQuery, AdminPermissionDefinitionMutationBody, AdminPermissionDefinitionUpdateBody, AdminSessionListQuery, AdminSessionRevokeAllBody, AdminSessionRevokeBody, AdminTrustedDeviceListQuery, AdminTrustedDeviceRevokeBody, ApiKeyCreateBody, ApiKeyRevokeBody, EmailVerificationVerifyBody, LoginApprovalApproveBody, LoginApprovalFinalizeBody, LoginNotificationReportBody, LoginApprovalReviewStatusBody, JwtIntrospectBody, JwtJwksBody, JwtRevokeBody, MfaOptionsBody, OAuthAccountUnlinkBody, OAuthAccountUnlinkResolutionBody, OAuthAuthorizationCallbackBody, OAuthAuthorizationStartBody, OAuthLinkConfirmationConfirmBody, OAuthLinkConfirmationConfirmedBody, OAuthLinkConfirmationInspectBody, OAuthLinkConfirmationPendingBody, OAuthLinkConfirmationStartBody, OAuthLinkConfirmationStartedBody, OidcDiscoveryMetadataBody, PasskeyAuthenticationFinishBody, PasskeyAuthenticationStartBody, PasskeyCredentialRevokeBody, PasskeyMfaStartBody, PasskeyMfaVerifyBody, PasskeyRegistrationFinishBody, PasskeyRegistrationStartBody, IdentityAddBody, IdentityPrimaryBody, IdentityReplaceBody, IdentityRevokeBody, SessionRevokeBody, RecoveryCodeGenerateBody, RecoveryCodeRegenerateBody, RecoveryCodeMfaVerifyBody, RecoveryCodeMfaVerifyForFlowBody, RefreshTokenRefreshBody, RecoveryCodeRevokeBody, RecoveryCodeVerifyBody, SecurityTimelineListQuery, StepUpPasskeyStartBody, StepUpPasskeyVerifyBody, StepUpPasswordVerifyBody, StepUpRecoveryCodeVerifyBody, StepUpTotpVerifyBody, TrustedDeviceRevokeBody, TotpEnrollmentConfirmBody, TotpEnrollmentStartBody, TotpFactorRevokeBody, TotpMfaVerifyBody, TotpMfaVerifyForFlowBody, TotpVerifyBody } from "./Schemas.js";
|
|
58
|
+
import { OAuthProviderAuthorizationQuery, OAuthTokenRequestBody } from "./Schemas.js";
|
|
59
|
+
import type { AdminSecurityTimelineListQuery, AdminPermissionDefinitionCreateBody, AdminPermissionDefinitionGetQuery, AdminPermissionDefinitionListQuery, AdminPermissionDefinitionMutationBody, AdminPermissionDefinitionUpdateBody, AdminSessionListQuery, AdminSessionRevokeAllBody, AdminSessionRevokeBody, AdminTrustedDeviceListQuery, AdminTrustedDeviceRevokeBody, ApiKeyCreateBody, ApiKeyRevokeBody, EmailVerificationVerifyBody, LoginApprovalApproveBody, LoginApprovalFinalizeBody, LoginNotificationReportBody, LoginApprovalReviewStatusBody, JwtIntrospectBody, JwtJwksBody, JwtRevokeBody, MfaOptionsBody, OAuthAccountUnlinkBody, OAuthAccountUnlinkResolutionBody, OAuthAuthorizationCallbackBody, OAuthAuthorizationStartBody, OAuthLinkConfirmationConfirmBody, OAuthLinkConfirmationConfirmedBody, OAuthLinkConfirmationInspectBody, OAuthLinkConfirmationPendingBody, OAuthLinkConfirmationStartBody, OAuthLinkConfirmationStartedBody, OAuthTokenResponseBody, OidcDiscoveryMetadataBody, PasskeyAuthenticationFinishBody, PasskeyAuthenticationStartBody, PasskeyCredentialRevokeBody, PasskeyMfaStartBody, PasskeyMfaVerifyBody, PasskeyRegistrationFinishBody, PasskeyRegistrationStartBody, IdentityAddBody, IdentityPrimaryBody, IdentityReplaceBody, IdentityRevokeBody, SessionRevokeBody, RecoveryCodeGenerateBody, RecoveryCodeRegenerateBody, RecoveryCodeMfaVerifyBody, RecoveryCodeMfaVerifyForFlowBody, RefreshTokenRefreshBody, RecoveryCodeRevokeBody, RecoveryCodeVerifyBody, SecurityTimelineListQuery, StepUpPasskeyStartBody, StepUpPasskeyVerifyBody, StepUpPasswordVerifyBody, StepUpRecoveryCodeVerifyBody, StepUpTotpVerifyBody, TrustedDeviceRevokeBody, TotpEnrollmentConfirmBody, TotpEnrollmentStartBody, TotpFactorRevokeBody, TotpMfaVerifyBody, TotpMfaVerifyForFlowBody, TotpVerifyBody } from "./Schemas.js";
|
|
59
60
|
import { AuthHttp } from "./Transport.js";
|
|
60
61
|
import type { AuthHttpService, LoginApprovalPendingCookieService } from "./Transport.js";
|
|
61
62
|
export { AuthClientProtocolApi, EmailAuthHttpApiGroup, EmailOtpHttpApiGroup, EmailVerificationHttpApiGroup, IdentityHttpApiGroup, LoginApprovalHttpApiGroup, MagicLinkHttpApiGroup, MfaHttpApiGroup, PasskeyHttpApiGroup, PasswordHttpApiGroup, RecoveryCodesHttpApiGroup, LoginNotificationHttpApiGroup, SessionHttpApiGroup, StepUpHttpApiGroup, TotpHttpApiGroup, } from "./ClientApi.js";
|
|
@@ -86,7 +87,7 @@ export interface OAuthTokenClientAuthenticationInput {
|
|
|
86
87
|
export interface OAuthTokenClientAuthenticationHttpOptions {
|
|
87
88
|
readonly authenticateClient?: (input: OAuthTokenClientAuthenticationInput) => Effect.Effect<boolean, unknown>;
|
|
88
89
|
}
|
|
89
|
-
export interface
|
|
90
|
+
export interface OAuthTokenHttpOptions extends OAuthTokenClientAuthenticationHttpOptions {
|
|
90
91
|
}
|
|
91
92
|
export interface OAuthTokenRevocationHttpOptions extends OAuthTokenClientAuthenticationHttpOptions {
|
|
92
93
|
}
|
|
@@ -145,6 +146,40 @@ export declare const oauthLinkConfirmationPendingHttpBody: (pending: PendingOAut
|
|
|
145
146
|
export declare const oauthAuthorizationCallbackQueryPayload: (input: OAuthAuthorizationCallbackPayloadInput) => Effect.Effect<Schema.Schema.Type<typeof OAuthAuthorizationCallbackBody>, AuthBadRequestError>;
|
|
146
147
|
export declare const oauthAuthorizationCallbackFormPostPayload: (input: OAuthAuthorizationCallbackPayloadInput) => Effect.Effect<Schema.Schema.Type<typeof OAuthAuthorizationCallbackBody>, AuthBadRequestError>;
|
|
147
148
|
export declare const oauthAuthorizationCallbackInput: (payload: Schema.Schema.Type<typeof OAuthAuthorizationCallbackBody>, options: OAuthAuthorizationCallbackHttpOptions) => Effect.Effect<OAuthCallbackInput, AuthBadRequestError>;
|
|
149
|
+
export interface OAuthTokenGrantHandlerInput {
|
|
150
|
+
readonly payload: Schema.Schema.Type<typeof OAuthTokenRequestBody>;
|
|
151
|
+
readonly clientId?: OAuthClientId;
|
|
152
|
+
readonly clientAuthenticated: boolean;
|
|
153
|
+
}
|
|
154
|
+
export type OAuthTokenGrantHandler = (input: OAuthTokenGrantHandlerInput) => Effect.Effect<Schema.Schema.Type<typeof OAuthTokenResponseBody>, OAuthTokenEndpointError | AuthInternalError>;
|
|
155
|
+
export interface OAuthTokenGrantRegistration {
|
|
156
|
+
readonly grantType: string;
|
|
157
|
+
readonly exchange: OAuthTokenGrantHandler;
|
|
158
|
+
}
|
|
159
|
+
declare const OAuthTokenGrantRegistryDuplicateError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
160
|
+
readonly _tag: "OAuthTokenGrantRegistryDuplicateError";
|
|
161
|
+
} & Readonly<A>;
|
|
162
|
+
export declare class OAuthTokenGrantRegistryDuplicateError extends OAuthTokenGrantRegistryDuplicateError_base<{
|
|
163
|
+
readonly grantType: string;
|
|
164
|
+
}> {
|
|
165
|
+
}
|
|
166
|
+
export interface OAuthTokenGrantRegistryService {
|
|
167
|
+
readonly get: (grantType: string) => Option.Option<OAuthTokenGrantRegistration>;
|
|
168
|
+
}
|
|
169
|
+
declare const OAuthTokenGrantRegistry_base: Context.ServiceClass<OAuthTokenGrantRegistry, "auth/HttpApi/OAuthTokenGrantRegistry", OAuthTokenGrantRegistryService>;
|
|
170
|
+
export declare class OAuthTokenGrantRegistry extends OAuthTokenGrantRegistry_base {
|
|
171
|
+
}
|
|
172
|
+
export declare namespace OAuthTokenGrantRegistry {
|
|
173
|
+
const make: (registrations: readonly OAuthTokenGrantRegistration[]) => Effect.Effect<OAuthTokenGrantRegistryService, OAuthTokenGrantRegistryDuplicateError>;
|
|
174
|
+
}
|
|
175
|
+
type OAuthTokenRegistrationEffect = Effect.Effect<OAuthTokenGrantRegistration, unknown, unknown>;
|
|
176
|
+
type OAuthTokenRegistrationError<T> = T extends Effect.Effect<unknown, infer E, unknown> ? E : never;
|
|
177
|
+
type OAuthTokenRegistrationContext<T> = T extends Effect.Effect<unknown, unknown, infer R> ? R : never;
|
|
178
|
+
export declare const OAuthTokenGrantRegistryLive: <const Registrations extends readonly OAuthTokenRegistrationEffect[]>(...registrations: Registrations) => Layer.Layer<OAuthTokenGrantRegistry, OAuthTokenGrantRegistryDuplicateError | OAuthTokenRegistrationError<Registrations[number]>, OAuthTokenRegistrationContext<Registrations[number]>>;
|
|
179
|
+
export declare const oauthAuthorizationCodeTokenGrantRegistration: Effect.Effect<OAuthTokenGrantRegistration, never, OAuthAuthorizationCodeTokenGrant>;
|
|
180
|
+
export declare const oauthRefreshTokenGrantRegistration: Effect.Effect<OAuthTokenGrantRegistration, never, OAuthRefreshTokenGrant>;
|
|
181
|
+
export declare const oauthClientCredentialsGrantRegistration: Effect.Effect<OAuthTokenGrantRegistration, never, OAuthClientCredentialsGrant>;
|
|
182
|
+
export declare const oauthDeviceCodeTokenGrantRegistration: Effect.Effect<OAuthTokenGrantRegistration, never, OAuthDeviceCodeTokenGrant>;
|
|
148
183
|
export interface OAuthAccountUnlinkStepUpHttpInput {
|
|
149
184
|
readonly payload: Schema.Schema.Type<typeof OAuthAccountUnlinkBody>;
|
|
150
185
|
readonly session: ValidatedSession;
|
|
@@ -1148,11 +1183,9 @@ export declare const makeOAuthAuthorizationStartHandler: (dependencies: {
|
|
|
1148
1183
|
export declare const makeOAuthProviderAuthorizationHandler: (dependencies: {
|
|
1149
1184
|
readonly authorization: OAuthProviderAuthorizationService;
|
|
1150
1185
|
}) => (args_0: OAuthProviderAuthorizationHandlerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, AuthInternalError | OAuthAuthorizationEndpointError, never>;
|
|
1151
|
-
export declare const
|
|
1152
|
-
readonly
|
|
1153
|
-
|
|
1154
|
-
readonly clientCredentialsGrant?: OAuthClientCredentialsGrantService;
|
|
1155
|
-
} & OAuthAuthorizationCodeTokenHttpOptions) => (args_0: OAuthTokenHandlerRequest) => Effect.Effect<{
|
|
1186
|
+
export declare const makeOAuthTokenHandler: (dependencies: {
|
|
1187
|
+
readonly registry: OAuthTokenGrantRegistryService;
|
|
1188
|
+
} & OAuthTokenHttpOptions) => (args_0: OAuthTokenHandlerRequest) => Effect.Effect<{
|
|
1156
1189
|
readonly access_token: string;
|
|
1157
1190
|
readonly token_type: string;
|
|
1158
1191
|
readonly expires_in?: number | undefined;
|
|
@@ -1648,6 +1681,7 @@ export declare const makeOidcDiscoveryMetadataHandler: (dependencies: {
|
|
|
1648
1681
|
readonly issuer: string;
|
|
1649
1682
|
readonly authorization_endpoint: string;
|
|
1650
1683
|
readonly token_endpoint: string;
|
|
1684
|
+
readonly device_authorization_endpoint?: string | undefined;
|
|
1651
1685
|
readonly jwks_uri: string;
|
|
1652
1686
|
readonly response_types_supported: readonly string[];
|
|
1653
1687
|
readonly subject_types_supported: readonly string[];
|
|
@@ -1797,19 +1831,16 @@ export declare const TrustedDeviceHttpOperationsLive: Layer.Layer<TrustedDeviceH
|
|
|
1797
1831
|
export declare const AdminTrustedDeviceHttpOperationsLive: Layer.Layer<AdminTrustedDeviceHttpOperations, never, AdminTrustedDeviceAuthorization | SessionCookie | Sessions | TrustedDeviceStore>;
|
|
1798
1832
|
export declare const OAuthHttpOperationsLive: Layer.Layer<OAuthHttpOperations, never, OAuthAccountUnlinking | OAuthLinkConfirmation | OAuthProviders | OAuthState | SessionCookie | Sessions>;
|
|
1799
1833
|
export declare const OAuthProviderAuthorizationHttpOperationsLive: Layer.Layer<OAuthProviderAuthorizationHttpOperations, never, OAuthProviderAuthorization>;
|
|
1800
|
-
export declare const OAuthTokenHttpOperationsLive: Layer.Layer<OAuthTokenHttpOperations, never,
|
|
1834
|
+
export declare const OAuthTokenHttpOperationsLive: Layer.Layer<OAuthTokenHttpOperations, never, OAuthTokenGrantRegistry>;
|
|
1835
|
+
export declare const OAuthTokenIntrospectionHttpOperationsLive: Layer.Layer<OAuthTokenIntrospectionHttpOperations, never, OAuthTokenIntrospection>;
|
|
1836
|
+
export declare const OAuthTokenRevocationHttpOperationsLive: Layer.Layer<OAuthTokenRevocationHttpOperations, never, OAuthTokenRevocation>;
|
|
1801
1837
|
export declare const LoginApprovalHttpOperationsLive: Layer.Layer<LoginApprovalHttpOperations, never, AuthFlowState | AuthHttp | IdentityStore | LoginApproval | Sessions>;
|
|
1802
1838
|
export declare const ApiKeyHttpOperationsLive: Layer.Layer<ApiKeyHttpOperations, never, ApiKeyManagement | SessionCookie | Sessions>;
|
|
1803
1839
|
export declare const RefreshTokenHttpOperationsLive: Layer.Layer<RefreshTokenHttpOperations, never, JwtIssuer | RefreshTokenHttpConfig | RefreshTokenManagement>;
|
|
1804
1840
|
export declare const JwtHttpOperationsLive: Layer.Layer<JwtHttpOperations, never, JwtRevocation>;
|
|
1805
1841
|
export declare const JwtDiscoveryHttpOperationsLive: Layer.Layer<JwtDiscoveryHttpOperations, never, Jwks>;
|
|
1806
1842
|
export declare const OidcDiscoveryHttpOperationsLive: Layer.Layer<OidcDiscoveryHttpOperations, never, OidcDiscoveryMetadata>;
|
|
1807
|
-
declare const AdminSessionHttpApiGroup_base: HttpApiGroup.HttpApiGroup<"adminSession", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"
|
|
1808
|
-
readonly userId: Schema.brand<Schema.String, "auth/UserId">;
|
|
1809
|
-
readonly sessionId: Schema.brand<Schema.String, "auth/SessionId">;
|
|
1810
|
-
}>>, never, Schema.toCodecJson<import("effect/unstable/httpapi/HttpApiSchema").NoContent>, Schema.toCodecJson<typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthRequestRejectedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"revokeAll", "POST", "/auth/admin/sessions/revoke-all", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
1811
|
-
readonly userId: Schema.brand<Schema.String, "auth/UserId">;
|
|
1812
|
-
}>>, never, Schema.toCodecJson<import("effect/unstable/httpapi/HttpApiSchema").NoContent>, Schema.toCodecJson<typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthRequestRejectedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"list", "GET", "/auth/admin/sessions/", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
1843
|
+
declare const AdminSessionHttpApiGroup_base: HttpApiGroup.HttpApiGroup<"adminSession", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"list", "GET", "/auth/admin/sessions/", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
1813
1844
|
readonly userId: Schema.brand<Schema.String, "auth/UserId">;
|
|
1814
1845
|
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
1815
1846
|
readonly sessions: Schema.$Array<Schema.Struct<{
|
|
@@ -1830,7 +1861,12 @@ declare const AdminSessionHttpApiGroup_base: HttpApiGroup.HttpApiGroup<"adminSes
|
|
|
1830
1861
|
readonly latitude: Schema.optional<Schema.Number>;
|
|
1831
1862
|
readonly longitude: Schema.optional<Schema.Number>;
|
|
1832
1863
|
}>>;
|
|
1833
|
-
}>>, Schema.toCodecJson<typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthRequestRejectedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never
|
|
1864
|
+
}>>, Schema.toCodecJson<typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthRequestRejectedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"revoke", "POST", "/auth/admin/sessions/revoke", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
1865
|
+
readonly userId: Schema.brand<Schema.String, "auth/UserId">;
|
|
1866
|
+
readonly sessionId: Schema.brand<Schema.String, "auth/SessionId">;
|
|
1867
|
+
}>>, never, Schema.toCodecJson<import("effect/unstable/httpapi/HttpApiSchema").NoContent>, Schema.toCodecJson<typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthRequestRejectedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"revokeAll", "POST", "/auth/admin/sessions/revoke-all", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
1868
|
+
readonly userId: Schema.brand<Schema.String, "auth/UserId">;
|
|
1869
|
+
}>>, never, Schema.toCodecJson<import("effect/unstable/httpapi/HttpApiSchema").NoContent>, Schema.toCodecJson<typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthRequestRejectedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never>, false>;
|
|
1834
1870
|
export declare class AdminSessionHttpApiGroup extends AdminSessionHttpApiGroup_base {
|
|
1835
1871
|
}
|
|
1836
1872
|
declare const AdminSessionHttpApi_base: HttpApi.HttpApi<"AdminSessionHttpApi", typeof AdminSessionHttpApiGroup>;
|
|
@@ -1881,19 +1917,6 @@ declare const AdminPermissionDefinitionHttpApiGroup_base: HttpApiGroup.HttpApiGr
|
|
|
1881
1917
|
readonly updatedAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
1882
1918
|
readonly disabledAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
1883
1919
|
readonly deletedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
1884
|
-
}>>, Schema.toCodecJson<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof AuthNotFoundError | typeof AuthConflictError | typeof import("./Errors.js").AuthRequestRejectedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"update", "POST", "/auth/admin/permission-definitions/update", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
1885
|
-
readonly id: Schema.brand<Schema.String, "auth/PermissionId">;
|
|
1886
|
-
readonly expectedUpdatedAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
1887
|
-
readonly description: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
1888
|
-
readonly scopeType: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
1889
|
-
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
1890
|
-
readonly id: Schema.brand<Schema.String, "auth/PermissionId">;
|
|
1891
|
-
readonly description: Schema.optional<Schema.String>;
|
|
1892
|
-
readonly scopeType: Schema.optional<Schema.String>;
|
|
1893
|
-
readonly createdAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
1894
|
-
readonly updatedAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
1895
|
-
readonly disabledAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
1896
|
-
readonly deletedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
1897
1920
|
}>>, Schema.toCodecJson<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof AuthNotFoundError | typeof AuthConflictError | typeof import("./Errors.js").AuthRequestRejectedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"get", "GET", "/auth/admin/permission-definitions/get", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
1898
1921
|
readonly id: Schema.brand<Schema.String, "auth/PermissionId">;
|
|
1899
1922
|
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
@@ -1920,6 +1943,19 @@ declare const AdminPermissionDefinitionHttpApiGroup_base: HttpApiGroup.HttpApiGr
|
|
|
1920
1943
|
readonly deletedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
1921
1944
|
}>>;
|
|
1922
1945
|
readonly nextAfter: Schema.optional<Schema.brand<Schema.String, "auth/PermissionId">>;
|
|
1946
|
+
}>>, Schema.toCodecJson<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof AuthNotFoundError | typeof AuthConflictError | typeof import("./Errors.js").AuthRequestRejectedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"update", "POST", "/auth/admin/permission-definitions/update", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
1947
|
+
readonly id: Schema.brand<Schema.String, "auth/PermissionId">;
|
|
1948
|
+
readonly expectedUpdatedAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
1949
|
+
readonly description: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
1950
|
+
readonly scopeType: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
1951
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
1952
|
+
readonly id: Schema.brand<Schema.String, "auth/PermissionId">;
|
|
1953
|
+
readonly description: Schema.optional<Schema.String>;
|
|
1954
|
+
readonly scopeType: Schema.optional<Schema.String>;
|
|
1955
|
+
readonly createdAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
1956
|
+
readonly updatedAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
1957
|
+
readonly disabledAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
1958
|
+
readonly deletedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
1923
1959
|
}>>, Schema.toCodecJson<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof AuthNotFoundError | typeof AuthConflictError | typeof import("./Errors.js").AuthRequestRejectedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never>, false>;
|
|
1924
1960
|
export declare class AdminPermissionDefinitionHttpApiGroup extends AdminPermissionDefinitionHttpApiGroup_base {
|
|
1925
1961
|
}
|
|
@@ -1941,7 +1977,42 @@ export declare class TotpHttpApi extends TotpHttpApi_base {
|
|
|
1941
1977
|
declare const RecoveryCodesHttpApi_base: HttpApi.HttpApi<"RecoveryCodesHttpApi", typeof RecoveryCodesHttpApiGroup>;
|
|
1942
1978
|
export declare class RecoveryCodesHttpApi extends RecoveryCodesHttpApi_base {
|
|
1943
1979
|
}
|
|
1944
|
-
declare const OAuthHttpApiGroup_base: HttpApiGroup.HttpApiGroup<"oauth", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"
|
|
1980
|
+
declare const OAuthHttpApiGroup_base: HttpApiGroup.HttpApiGroup<"oauth", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"confirmLinkConfirmation", "POST", "/auth/oauth/link-confirmation/confirm", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
1981
|
+
readonly challengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
|
|
1982
|
+
readonly secret: Schema.optional<Schema.String>;
|
|
1983
|
+
readonly expectedProviderId: Schema.optional<Schema.brand<Schema.String, "auth/OAuthProviderId">>;
|
|
1984
|
+
readonly expectedProviderAccountId: Schema.optional<Schema.String>;
|
|
1985
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
1986
|
+
readonly challengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
|
|
1987
|
+
readonly userId: Schema.brand<Schema.String, "auth/UserId">;
|
|
1988
|
+
readonly identity: Schema.Struct<{
|
|
1989
|
+
readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
|
|
1990
|
+
readonly providerAccountId: Schema.String;
|
|
1991
|
+
readonly email: Schema.optional<Schema.brand<Schema.String, "auth/Email">>;
|
|
1992
|
+
readonly emailVerified: Schema.optional<Schema.Boolean>;
|
|
1993
|
+
}>;
|
|
1994
|
+
readonly reason: Schema.String;
|
|
1995
|
+
readonly existingAccount: Schema.optional<Schema.Struct<{
|
|
1996
|
+
readonly accountId: Schema.brand<Schema.String, "auth/OAuthAccountId">;
|
|
1997
|
+
readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
|
|
1998
|
+
readonly providerAccountId: Schema.String;
|
|
1999
|
+
}>>;
|
|
2000
|
+
readonly linked: Schema.Boolean;
|
|
2001
|
+
}>>, Schema.toCodecJson<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"inspectLinkConfirmation", "POST", "/auth/oauth/link-confirmation/inspect", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
2002
|
+
readonly challengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
|
|
2003
|
+
readonly secret: Schema.optional<Schema.String>;
|
|
2004
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
2005
|
+
readonly challengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
|
|
2006
|
+
readonly userId: Schema.brand<Schema.String, "auth/UserId">;
|
|
2007
|
+
readonly identity: Schema.Struct<{
|
|
2008
|
+
readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
|
|
2009
|
+
readonly providerAccountId: Schema.String;
|
|
2010
|
+
readonly email: Schema.optional<Schema.brand<Schema.String, "auth/Email">>;
|
|
2011
|
+
readonly emailVerified: Schema.optional<Schema.Boolean>;
|
|
2012
|
+
}>;
|
|
2013
|
+
readonly reason: Schema.String;
|
|
2014
|
+
readonly expiresAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
2015
|
+
}>>, Schema.toCodecJson<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"startAuthorization", "POST", "/auth/oauth/start", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
1945
2016
|
readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
|
|
1946
2017
|
readonly redirectUri: Schema.optional<Schema.String>;
|
|
1947
2018
|
readonly scopes: Schema.optional<Schema.$Array<Schema.String>>;
|
|
@@ -1961,21 +2032,7 @@ declare const OAuthHttpApiGroup_base: HttpApiGroup.HttpApiGroup<"oauth", import(
|
|
|
1961
2032
|
readonly nonce: Schema.optional<Schema.String>;
|
|
1962
2033
|
readonly redirectUri: Schema.String;
|
|
1963
2034
|
readonly scopes: Schema.$Array<Schema.String>;
|
|
1964
|
-
}>>, Schema.toCodecJson<typeof AuthBadRequestError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"
|
|
1965
|
-
readonly challengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
|
|
1966
|
-
readonly secret: Schema.optional<Schema.String>;
|
|
1967
|
-
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
1968
|
-
readonly challengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
|
|
1969
|
-
readonly userId: Schema.brand<Schema.String, "auth/UserId">;
|
|
1970
|
-
readonly identity: Schema.Struct<{
|
|
1971
|
-
readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
|
|
1972
|
-
readonly providerAccountId: Schema.String;
|
|
1973
|
-
readonly email: Schema.optional<Schema.brand<Schema.String, "auth/Email">>;
|
|
1974
|
-
readonly emailVerified: Schema.optional<Schema.Boolean>;
|
|
1975
|
-
}>;
|
|
1976
|
-
readonly reason: Schema.String;
|
|
1977
|
-
readonly expiresAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
1978
|
-
}>>, Schema.toCodecJson<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"startLinkConfirmation", "POST", "/auth/oauth/link-confirmation/start", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
2035
|
+
}>>, Schema.toCodecJson<typeof AuthBadRequestError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"startLinkConfirmation", "POST", "/auth/oauth/link-confirmation/start", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
1979
2036
|
readonly userId: Schema.optional<Schema.brand<Schema.String, "auth/UserId">>;
|
|
1980
2037
|
readonly identity: Schema.optional<Schema.Struct<{
|
|
1981
2038
|
readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
|
|
@@ -1998,27 +2055,6 @@ declare const OAuthHttpApiGroup_base: HttpApiGroup.HttpApiGroup<"oauth", import(
|
|
|
1998
2055
|
}>;
|
|
1999
2056
|
readonly reason: Schema.String;
|
|
2000
2057
|
readonly expiresAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
2001
|
-
}>>, Schema.toCodecJson<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"confirmLinkConfirmation", "POST", "/auth/oauth/link-confirmation/confirm", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
2002
|
-
readonly challengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
|
|
2003
|
-
readonly secret: Schema.optional<Schema.String>;
|
|
2004
|
-
readonly expectedProviderId: Schema.optional<Schema.brand<Schema.String, "auth/OAuthProviderId">>;
|
|
2005
|
-
readonly expectedProviderAccountId: Schema.optional<Schema.String>;
|
|
2006
|
-
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
2007
|
-
readonly challengeId: Schema.brand<Schema.String, "auth/ChallengeId">;
|
|
2008
|
-
readonly userId: Schema.brand<Schema.String, "auth/UserId">;
|
|
2009
|
-
readonly identity: Schema.Struct<{
|
|
2010
|
-
readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
|
|
2011
|
-
readonly providerAccountId: Schema.String;
|
|
2012
|
-
readonly email: Schema.optional<Schema.brand<Schema.String, "auth/Email">>;
|
|
2013
|
-
readonly emailVerified: Schema.optional<Schema.Boolean>;
|
|
2014
|
-
}>;
|
|
2015
|
-
readonly reason: Schema.String;
|
|
2016
|
-
readonly existingAccount: Schema.optional<Schema.Struct<{
|
|
2017
|
-
readonly accountId: Schema.brand<Schema.String, "auth/OAuthAccountId">;
|
|
2018
|
-
readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
|
|
2019
|
-
readonly providerAccountId: Schema.String;
|
|
2020
|
-
}>>;
|
|
2021
|
-
readonly linked: Schema.Boolean;
|
|
2022
2058
|
}>>, Schema.toCodecJson<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"unlinkAccount", "POST", "/auth/oauth/unlink", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
2023
2059
|
readonly providerId: Schema.brand<Schema.String, "auth/OAuthProviderId">;
|
|
2024
2060
|
readonly providerAccountId: Schema.String;
|
|
@@ -2074,7 +2110,7 @@ export declare class OAuthHttpApiGroup extends OAuthHttpApiGroup_base {
|
|
|
2074
2110
|
declare const OAuthHttpApi_base: HttpApi.HttpApi<"OAuthHttpApi", typeof OAuthHttpApiGroup>;
|
|
2075
2111
|
export declare class OAuthHttpApi extends OAuthHttpApi_base {
|
|
2076
2112
|
}
|
|
2077
|
-
declare const OAuthTokenHttpApiGroup_base: HttpApiGroup.HttpApiGroup<"oauthToken", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"
|
|
2113
|
+
declare const OAuthTokenHttpApiGroup_base: HttpApiGroup.HttpApiGroup<"oauthToken", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"token", "POST", "/auth/oauth/token", never, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
2078
2114
|
readonly access_token: Schema.String;
|
|
2079
2115
|
readonly token_type: Schema.String;
|
|
2080
2116
|
readonly expires_in: Schema.optional<Schema.Number>;
|
|
@@ -2082,7 +2118,13 @@ declare const OAuthTokenHttpApiGroup_base: HttpApiGroup.HttpApiGroup<"oauthToken
|
|
|
2082
2118
|
readonly id_token: Schema.optional<Schema.String>;
|
|
2083
2119
|
readonly scope: Schema.optional<Schema.String>;
|
|
2084
2120
|
readonly extra: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
2085
|
-
}>>, Schema.toCodecJson<typeof AuthInternalError | typeof OAuthTokenEndpointError>, AuthSchemaErrorMiddleware
|
|
2121
|
+
}>>, Schema.toCodecJson<typeof AuthInternalError | typeof OAuthTokenEndpointError>, AuthSchemaErrorMiddleware | OAuthNoStoreMiddleware, never>, false>;
|
|
2122
|
+
export declare class OAuthTokenHttpApiGroup extends OAuthTokenHttpApiGroup_base {
|
|
2123
|
+
}
|
|
2124
|
+
declare const OAuthTokenHttpApi_base: HttpApi.HttpApi<"OAuthTokenHttpApi", typeof OAuthTokenHttpApiGroup>;
|
|
2125
|
+
export declare class OAuthTokenHttpApi extends OAuthTokenHttpApi_base {
|
|
2126
|
+
}
|
|
2127
|
+
declare const OAuthTokenIntrospectionHttpApiGroup_base: HttpApiGroup.HttpApiGroup<"oauthTokenIntrospection", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"introspect", "POST", "/auth/oauth/introspect", never, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
2086
2128
|
readonly active: Schema.Boolean;
|
|
2087
2129
|
readonly scope: Schema.optional<Schema.String>;
|
|
2088
2130
|
readonly client_id: Schema.optional<Schema.String>;
|
|
@@ -2097,10 +2139,16 @@ declare const OAuthTokenHttpApiGroup_base: HttpApiGroup.HttpApiGroup<"oauthToken
|
|
|
2097
2139
|
readonly jti: Schema.optional<Schema.String>;
|
|
2098
2140
|
readonly extra: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
2099
2141
|
}>>, Schema.toCodecJson<typeof AuthInternalError | typeof OAuthTokenIntrospectionEndpointError>, AuthSchemaErrorMiddleware, never>, false>;
|
|
2100
|
-
export declare class
|
|
2142
|
+
export declare class OAuthTokenIntrospectionHttpApiGroup extends OAuthTokenIntrospectionHttpApiGroup_base {
|
|
2101
2143
|
}
|
|
2102
|
-
declare const
|
|
2103
|
-
export declare class
|
|
2144
|
+
declare const OAuthTokenIntrospectionHttpApi_base: HttpApi.HttpApi<"OAuthTokenIntrospectionHttpApi", typeof OAuthTokenIntrospectionHttpApiGroup>;
|
|
2145
|
+
export declare class OAuthTokenIntrospectionHttpApi extends OAuthTokenIntrospectionHttpApi_base {
|
|
2146
|
+
}
|
|
2147
|
+
declare const OAuthTokenRevocationHttpApiGroup_base: HttpApiGroup.HttpApiGroup<"oauthTokenRevocation", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"revoke", "POST", "/auth/oauth/revoke", never, never, never, never, Schema.toCodecJson<import("effect/unstable/httpapi/HttpApiSchema").NoContent>, Schema.toCodecJson<typeof AuthInternalError | typeof OAuthTokenRevocationEndpointError>, AuthSchemaErrorMiddleware, never>, false>;
|
|
2148
|
+
export declare class OAuthTokenRevocationHttpApiGroup extends OAuthTokenRevocationHttpApiGroup_base {
|
|
2149
|
+
}
|
|
2150
|
+
declare const OAuthTokenRevocationHttpApi_base: HttpApi.HttpApi<"OAuthTokenRevocationHttpApi", typeof OAuthTokenRevocationHttpApiGroup>;
|
|
2151
|
+
export declare class OAuthTokenRevocationHttpApi extends OAuthTokenRevocationHttpApi_base {
|
|
2104
2152
|
}
|
|
2105
2153
|
declare const OAuthProviderAuthorizationHttpApiGroup_base: HttpApiGroup.HttpApiGroup<"oauthProviderAuthorization", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"authorize", "GET", "/auth/oauth/authorize", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
2106
2154
|
readonly response_type: Schema.String;
|
|
@@ -2122,10 +2170,7 @@ export declare class MfaHttpApi extends MfaHttpApi_base {
|
|
|
2122
2170
|
declare const StepUpHttpApi_base: HttpApi.HttpApi<"StepUpHttpApi", typeof StepUpHttpApiGroup>;
|
|
2123
2171
|
export declare class StepUpHttpApi extends StepUpHttpApi_base {
|
|
2124
2172
|
}
|
|
2125
|
-
declare const ApiKeyHttpApiGroup_base: HttpApiGroup.HttpApiGroup<"apiKey", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"
|
|
2126
|
-
readonly keyId: Schema.String;
|
|
2127
|
-
readonly reason: Schema.optional<Schema.String>;
|
|
2128
|
-
}>>, never, Schema.toCodecJson<import("effect/unstable/httpapi/HttpApiSchema").NoContent>, Schema.toCodecJson<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthRequestRejectedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"createApiKey", "POST", "/auth/api-keys/", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
2173
|
+
declare const ApiKeyHttpApiGroup_base: HttpApiGroup.HttpApiGroup<"apiKey", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"createApiKey", "POST", "/auth/api-keys/", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
2129
2174
|
readonly scopes: Schema.optional<Schema.$Array<Schema.String>>;
|
|
2130
2175
|
readonly expiresAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
2131
2176
|
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
@@ -2152,7 +2197,10 @@ declare const ApiKeyHttpApiGroup_base: HttpApiGroup.HttpApiGroup<"apiKey", impor
|
|
|
2152
2197
|
readonly revokedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
2153
2198
|
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
2154
2199
|
}>>;
|
|
2155
|
-
}>>, Schema.toCodecJson<typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthRequestRejectedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never
|
|
2200
|
+
}>>, Schema.toCodecJson<typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthRequestRejectedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"revokeApiKey", "POST", "/auth/api-keys/revoke", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
2201
|
+
readonly keyId: Schema.String;
|
|
2202
|
+
readonly reason: Schema.optional<Schema.String>;
|
|
2203
|
+
}>>, never, Schema.toCodecJson<import("effect/unstable/httpapi/HttpApiSchema").NoContent>, Schema.toCodecJson<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthRequestRejectedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never>, false>;
|
|
2156
2204
|
export declare class ApiKeyHttpApiGroup extends ApiKeyHttpApiGroup_base {
|
|
2157
2205
|
}
|
|
2158
2206
|
declare const ApiKeyHttpApi_base: HttpApi.HttpApi<"ApiKeyHttpApi", typeof ApiKeyHttpApiGroup>;
|
|
@@ -2183,11 +2231,7 @@ export declare class RefreshTokenHttpApiGroup extends RefreshTokenHttpApiGroup_b
|
|
|
2183
2231
|
declare const RefreshTokenHttpApi_base: HttpApi.HttpApi<"RefreshTokenHttpApi", typeof RefreshTokenHttpApiGroup>;
|
|
2184
2232
|
export declare class RefreshTokenHttpApi extends RefreshTokenHttpApi_base {
|
|
2185
2233
|
}
|
|
2186
|
-
declare const JwtHttpApiGroup_base: HttpApiGroup.HttpApiGroup<"jwt", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"
|
|
2187
|
-
readonly jwtId: Schema.String;
|
|
2188
|
-
readonly expiresAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
2189
|
-
readonly reason: Schema.optional<Schema.String>;
|
|
2190
|
-
}>>, never, Schema.toCodecJson<import("effect/unstable/httpapi/HttpApiSchema").NoContent>, Schema.toCodecJson<typeof AuthBadRequestError | typeof AuthInternalError>, AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"introspect", "POST", "/auth/jwt/introspect", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
2234
|
+
declare const JwtHttpApiGroup_base: HttpApiGroup.HttpApiGroup<"jwt", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"introspect", "POST", "/auth/jwt/introspect", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
2191
2235
|
readonly token: Schema.String;
|
|
2192
2236
|
}>>, never, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
|
|
2193
2237
|
readonly active: Schema.Literal<true>;
|
|
@@ -2215,7 +2259,11 @@ declare const JwtHttpApiGroup_base: HttpApiGroup.HttpApiGroup<"jwt", import("eff
|
|
|
2215
2259
|
readonly expiresAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
2216
2260
|
readonly revokedAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
2217
2261
|
readonly revokedReason: Schema.optional<Schema.String>;
|
|
2218
|
-
}>]>>, Schema.toCodecJson<typeof AuthBadRequestError | typeof AuthInternalError>, AuthSchemaErrorMiddleware, never
|
|
2262
|
+
}>]>>, Schema.toCodecJson<typeof AuthBadRequestError | typeof AuthInternalError>, AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"revoke", "POST", "/auth/jwt/revoke", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
2263
|
+
readonly jwtId: Schema.String;
|
|
2264
|
+
readonly expiresAt: Schema.optional<Schema.brand<Schema.Number, "auth/UnixMillis">>;
|
|
2265
|
+
readonly reason: Schema.optional<Schema.String>;
|
|
2266
|
+
}>>, never, Schema.toCodecJson<import("effect/unstable/httpapi/HttpApiSchema").NoContent>, Schema.toCodecJson<typeof AuthBadRequestError | typeof AuthInternalError>, AuthSchemaErrorMiddleware, never>, false>;
|
|
2219
2267
|
export declare class JwtHttpApiGroup extends JwtHttpApiGroup_base {
|
|
2220
2268
|
}
|
|
2221
2269
|
declare const JwtHttpApi_base: HttpApi.HttpApi<"JwtHttpApi", typeof JwtHttpApiGroup>;
|
|
@@ -2233,6 +2281,7 @@ declare const OidcDiscoveryHttpApiGroup_base: HttpApiGroup.HttpApiGroup<"oidcDis
|
|
|
2233
2281
|
readonly issuer: Schema.String;
|
|
2234
2282
|
readonly authorization_endpoint: Schema.String;
|
|
2235
2283
|
readonly token_endpoint: Schema.String;
|
|
2284
|
+
readonly device_authorization_endpoint: Schema.optional<Schema.String>;
|
|
2236
2285
|
readonly jwks_uri: Schema.String;
|
|
2237
2286
|
readonly response_types_supported: Schema.$Array<Schema.String>;
|
|
2238
2287
|
readonly subject_types_supported: Schema.$Array<Schema.String>;
|
|
@@ -2317,9 +2366,7 @@ export declare class AdminSecurityTimelineHttpApiGroup extends AdminSecurityTime
|
|
|
2317
2366
|
declare const AdminSecurityTimelineHttpApi_base: HttpApi.HttpApi<"AdminSecurityTimelineHttpApi", typeof AdminSecurityTimelineHttpApiGroup>;
|
|
2318
2367
|
export declare class AdminSecurityTimelineHttpApi extends AdminSecurityTimelineHttpApi_base {
|
|
2319
2368
|
}
|
|
2320
|
-
declare const TrustedDeviceHttpApiGroup_base: HttpApiGroup.HttpApiGroup<"trustedDevice", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"
|
|
2321
|
-
readonly deviceId: Schema.String;
|
|
2322
|
-
}>>, never, Schema.toCodecJson<import("effect/unstable/httpapi/HttpApiSchema").NoContent>, Schema.toCodecJson<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthRequestRejectedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"list", "GET", "/auth/trusted-devices/", never, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
2369
|
+
declare const TrustedDeviceHttpApiGroup_base: HttpApiGroup.HttpApiGroup<"trustedDevice", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"list", "GET", "/auth/trusted-devices/", never, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
2323
2370
|
readonly devices: Schema.$Array<Schema.Struct<{
|
|
2324
2371
|
readonly deviceId: Schema.String;
|
|
2325
2372
|
readonly createdAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
@@ -2327,16 +2374,15 @@ declare const TrustedDeviceHttpApiGroup_base: HttpApiGroup.HttpApiGroup<"trusted
|
|
|
2327
2374
|
readonly expiresAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
2328
2375
|
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
2329
2376
|
}>>;
|
|
2330
|
-
}>>, Schema.toCodecJson<typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthRequestRejectedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never
|
|
2377
|
+
}>>, Schema.toCodecJson<typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthRequestRejectedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"revoke", "POST", "/auth/trusted-devices/revoke", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
2378
|
+
readonly deviceId: Schema.String;
|
|
2379
|
+
}>>, never, Schema.toCodecJson<import("effect/unstable/httpapi/HttpApiSchema").NoContent>, Schema.toCodecJson<typeof AuthBadRequestError | typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthRequestRejectedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never>, false>;
|
|
2331
2380
|
export declare class TrustedDeviceHttpApiGroup extends TrustedDeviceHttpApiGroup_base {
|
|
2332
2381
|
}
|
|
2333
2382
|
declare const TrustedDeviceHttpApi_base: HttpApi.HttpApi<"TrustedDeviceHttpApi", typeof TrustedDeviceHttpApiGroup>;
|
|
2334
2383
|
export declare class TrustedDeviceHttpApi extends TrustedDeviceHttpApi_base {
|
|
2335
2384
|
}
|
|
2336
|
-
declare const AdminTrustedDeviceHttpApiGroup_base: HttpApiGroup.HttpApiGroup<"adminTrustedDevice", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"
|
|
2337
|
-
readonly userId: Schema.brand<Schema.String, "auth/UserId">;
|
|
2338
|
-
readonly deviceId: Schema.String;
|
|
2339
|
-
}>>, never, Schema.toCodecJson<import("effect/unstable/httpapi/HttpApiSchema").NoContent>, Schema.toCodecJson<typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthRequestRejectedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"list", "GET", "/auth/admin/trusted-devices/", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
2385
|
+
declare const AdminTrustedDeviceHttpApiGroup_base: HttpApiGroup.HttpApiGroup<"adminTrustedDevice", import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"list", "GET", "/auth/admin/trusted-devices/", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
2340
2386
|
readonly userId: Schema.brand<Schema.String, "auth/UserId">;
|
|
2341
2387
|
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
2342
2388
|
readonly devices: Schema.$Array<Schema.Struct<{
|
|
@@ -2346,7 +2392,10 @@ declare const AdminTrustedDeviceHttpApiGroup_base: HttpApiGroup.HttpApiGroup<"ad
|
|
|
2346
2392
|
readonly expiresAt: Schema.brand<Schema.Number, "auth/UnixMillis">;
|
|
2347
2393
|
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
2348
2394
|
}>>;
|
|
2349
|
-
}>>, Schema.toCodecJson<typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthRequestRejectedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never
|
|
2395
|
+
}>>, Schema.toCodecJson<typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthRequestRejectedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never> | import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"revoke", "POST", "/auth/admin/trusted-devices/revoke", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
2396
|
+
readonly userId: Schema.brand<Schema.String, "auth/UserId">;
|
|
2397
|
+
readonly deviceId: Schema.String;
|
|
2398
|
+
}>>, never, Schema.toCodecJson<import("effect/unstable/httpapi/HttpApiSchema").NoContent>, Schema.toCodecJson<typeof AuthUnauthenticatedError | typeof AuthPolicyDeniedError | typeof import("./Errors.js").AuthStepUpRequiredError | typeof import("./Errors.js").AuthRateLimitedError | typeof import("./Errors.js").AuthRequestRejectedError | typeof AuthInternalError>, AuthOriginCheckMiddleware | AuthSchemaErrorMiddleware, never>, false>;
|
|
2350
2399
|
export declare class AdminTrustedDeviceHttpApiGroup extends AdminTrustedDeviceHttpApiGroup_base {
|
|
2351
2400
|
}
|
|
2352
2401
|
declare const AdminTrustedDeviceHttpApi_base: HttpApi.HttpApi<"AdminTrustedDeviceHttpApi", typeof AdminTrustedDeviceHttpApiGroup>;
|
|
@@ -2393,8 +2442,12 @@ export declare const SecurityTimelineHttpApiGroupLive: Layer.Layer<HttpApiGroup.
|
|
|
2393
2442
|
export declare const SecurityTimelineHttpApiLive: Layer.Layer<never, never, import("effect/FileSystem").FileSystem | import("effect/unstable/http/Etag").Generator | import("effect/unstable/http/HttpPlatform").HttpPlatform | HttpRouter.HttpRouter | import("effect/Path").Path | SecurityTimelineStore | SessionCookie | Sessions>;
|
|
2394
2443
|
export declare const OAuthProviderAuthorizationHttpApiGroupLive: Layer.Layer<HttpApiGroup.Service<"OAuthProviderAuthorizationHttpApi", "oauthProviderAuthorization">, never, AuthSchemaErrorMiddleware | OAuthProviderAuthorizationHttpOperations>;
|
|
2395
2444
|
export declare const OAuthProviderAuthorizationHttpApiLive: Layer.Layer<never, never, import("effect/FileSystem").FileSystem | import("effect/unstable/http/Etag").Generator | import("effect/unstable/http/HttpPlatform").HttpPlatform | HttpRouter.HttpRouter | OAuthProviderAuthorization | import("effect/Path").Path>;
|
|
2396
|
-
export declare const OAuthTokenHttpApiGroupLive: Layer.Layer<HttpApiGroup.Service<"OAuthTokenHttpApi", "oauthToken">, never, AuthSchemaErrorMiddleware |
|
|
2397
|
-
export declare const OAuthTokenHttpApiLive: Layer.Layer<never, never, import("effect/FileSystem").FileSystem | import("effect/unstable/http/Etag").Generator | import("effect/unstable/http/HttpPlatform").HttpPlatform | HttpRouter.HttpRouter |
|
|
2445
|
+
export declare const OAuthTokenHttpApiGroupLive: Layer.Layer<HttpApiGroup.Service<"OAuthTokenHttpApi", "oauthToken">, never, OAuthTokenHttpOperations | (AuthSchemaErrorMiddleware | OAuthNoStoreMiddleware)>;
|
|
2446
|
+
export declare const OAuthTokenHttpApiLive: Layer.Layer<never, never, import("effect/FileSystem").FileSystem | import("effect/unstable/http/Etag").Generator | import("effect/unstable/http/HttpPlatform").HttpPlatform | HttpRouter.HttpRouter | OAuthTokenGrantRegistry | import("effect/Path").Path>;
|
|
2447
|
+
export declare const OAuthTokenIntrospectionHttpApiGroupLive: Layer.Layer<HttpApiGroup.Service<"OAuthTokenIntrospectionHttpApi", "oauthTokenIntrospection">, never, AuthSchemaErrorMiddleware | OAuthTokenIntrospectionHttpOperations>;
|
|
2448
|
+
export declare const OAuthTokenIntrospectionHttpApiLive: Layer.Layer<never, never, import("effect/FileSystem").FileSystem | import("effect/unstable/http/Etag").Generator | import("effect/unstable/http/HttpPlatform").HttpPlatform | HttpRouter.HttpRouter | OAuthTokenIntrospection | import("effect/Path").Path>;
|
|
2449
|
+
export declare const OAuthTokenRevocationHttpApiGroupLive: Layer.Layer<HttpApiGroup.Service<"OAuthTokenRevocationHttpApi", "oauthTokenRevocation">, never, AuthSchemaErrorMiddleware | OAuthTokenRevocationHttpOperations>;
|
|
2450
|
+
export declare const OAuthTokenRevocationHttpApiLive: Layer.Layer<never, never, import("effect/FileSystem").FileSystem | import("effect/unstable/http/Etag").Generator | import("effect/unstable/http/HttpPlatform").HttpPlatform | HttpRouter.HttpRouter | OAuthTokenRevocation | import("effect/Path").Path>;
|
|
2398
2451
|
export declare const JwtDiscoveryHttpApiGroupLive: Layer.Layer<HttpApiGroup.Service<"JwtDiscoveryHttpApi", "jwtDiscovery">, never, AuthSchemaErrorMiddleware | JwtDiscoveryHttpOperations>;
|
|
2399
2452
|
export declare const JwtDiscoveryHttpApiLive: Layer.Layer<never, never, import("effect/FileSystem").FileSystem | import("effect/unstable/http/Etag").Generator | import("effect/unstable/http/HttpPlatform").HttpPlatform | HttpRouter.HttpRouter | Jwks | import("effect/Path").Path>;
|
|
2400
2453
|
export declare const OidcDiscoveryHttpApiGroupLive: Layer.Layer<HttpApiGroup.Service<"OidcDiscoveryHttpApi", "oidcDiscovery">, never, AuthSchemaErrorMiddleware | OidcDiscoveryHttpOperations>;
|