/** * Consent Mode Schemas * * Zod validation schemas for auth mode configurations. * * @module @kya-os/consent/schemas/modes */ import { z } from "zod"; /** * Auth Mode Schema */ export declare const AuthModeSchema: z.ZodEnum<["consent-only", "credentials", "oauth", "magic-link", "otp", "qr-code", "passkey", "idv"]>; export type AuthModeSchemaType = z.infer; /** * Credentials Config Schema */ export declare const CredentialsConfigSchema: z.ZodObject<{ usernameLabel: z.ZodOptional; usernamePlaceholder: z.ZodOptional; passwordLabel: z.ZodOptional; passwordPlaceholder: z.ZodOptional; showRememberMe: z.ZodOptional; showForgotPassword: z.ZodOptional; forgotPasswordUrl: z.ZodOptional; }, "strip", z.ZodTypeAny, { usernameLabel?: string | undefined; usernamePlaceholder?: string | undefined; passwordLabel?: string | undefined; passwordPlaceholder?: string | undefined; showRememberMe?: boolean | undefined; showForgotPassword?: boolean | undefined; forgotPasswordUrl?: string | undefined; }, { usernameLabel?: string | undefined; usernamePlaceholder?: string | undefined; passwordLabel?: string | undefined; passwordPlaceholder?: string | undefined; showRememberMe?: boolean | undefined; showForgotPassword?: boolean | undefined; forgotPasswordUrl?: string | undefined; }>; export type CredentialsConfigSchemaType = z.infer; /** * OAuth Config Schema */ export declare const OAuthConfigSchema: z.ZodObject<{ providerId: z.ZodOptional; providerName: z.ZodOptional; buttonText: z.ZodOptional; }, "strip", z.ZodTypeAny, { providerId?: string | undefined; providerName?: string | undefined; buttonText?: string | undefined; }, { providerId?: string | undefined; providerName?: string | undefined; buttonText?: string | undefined; }>; export type OAuthConfigSchemaType = z.infer; /** * Magic Link Config Schema */ export declare const MagicLinkConfigSchema: z.ZodObject<{ enabled: z.ZodOptional; emailLabel: z.ZodOptional; emailPlaceholder: z.ZodOptional; buttonText: z.ZodOptional; resendCooldown: z.ZodOptional; }, "strip", z.ZodTypeAny, { buttonText?: string | undefined; enabled?: boolean | undefined; emailLabel?: string | undefined; emailPlaceholder?: string | undefined; resendCooldown?: number | undefined; }, { buttonText?: string | undefined; enabled?: boolean | undefined; emailLabel?: string | undefined; emailPlaceholder?: string | undefined; resendCooldown?: number | undefined; }>; export type MagicLinkConfigSchemaType = z.infer; /** * OTP Config Schema */ export declare const OTPConfigSchema: z.ZodObject<{ enabled: z.ZodOptional; phoneLabel: z.ZodOptional; phonePlaceholder: z.ZodOptional; instructions: z.ZodOptional; digits: z.ZodOptional, z.ZodLiteral<6>, z.ZodLiteral<8>]>>; resendCooldown: z.ZodOptional; }, "strip", z.ZodTypeAny, { enabled?: boolean | undefined; resendCooldown?: number | undefined; phoneLabel?: string | undefined; phonePlaceholder?: string | undefined; instructions?: string | undefined; digits?: 8 | 4 | 6 | undefined; }, { enabled?: boolean | undefined; resendCooldown?: number | undefined; phoneLabel?: string | undefined; phonePlaceholder?: string | undefined; instructions?: string | undefined; digits?: 8 | 4 | 6 | undefined; }>; export type OTPConfigSchemaType = z.infer; /** * QR Code Config Schema */ export declare const QRCodeConfigSchema: z.ZodObject<{ enabled: z.ZodOptional; instructions: z.ZodOptional; size: z.ZodOptional; showManualEntry: z.ZodOptional; }, "strip", z.ZodTypeAny, { enabled?: boolean | undefined; instructions?: string | undefined; size?: number | undefined; showManualEntry?: boolean | undefined; }, { enabled?: boolean | undefined; instructions?: string | undefined; size?: number | undefined; showManualEntry?: boolean | undefined; }>; export type QRCodeConfigSchemaType = z.infer; /** * Passkey Config Schema */ export declare const PasskeyConfigSchema: z.ZodObject<{ enabled: z.ZodOptional; instructions: z.ZodOptional; buttonText: z.ZodOptional; showCompatibilityInfo: z.ZodOptional; }, "strip", z.ZodTypeAny, { buttonText?: string | undefined; enabled?: boolean | undefined; instructions?: string | undefined; showCompatibilityInfo?: boolean | undefined; }, { buttonText?: string | undefined; enabled?: boolean | undefined; instructions?: string | undefined; showCompatibilityInfo?: boolean | undefined; }>; export type PasskeyConfigSchemaType = z.infer; /** * IDV Config Schema */ export declare const IDVConfigSchema: z.ZodObject<{ enabled: z.ZodOptional; providerName: z.ZodOptional; verificationType: z.ZodOptional>; instructions: z.ZodOptional; estimatedTime: z.ZodOptional; }, "strip", z.ZodTypeAny, { providerName?: string | undefined; enabled?: boolean | undefined; instructions?: string | undefined; verificationType?: "document" | "selfie" | "both" | undefined; estimatedTime?: string | undefined; }, { providerName?: string | undefined; enabled?: boolean | undefined; instructions?: string | undefined; verificationType?: "document" | "selfie" | "both" | undefined; estimatedTime?: string | undefined; }>; export type IDVConfigSchemaType = z.infer; /** * Mode Configs Schema */ export declare const ModeConfigsSchema: z.ZodObject<{ credentials: z.ZodOptional; usernamePlaceholder: z.ZodOptional; passwordLabel: z.ZodOptional; passwordPlaceholder: z.ZodOptional; showRememberMe: z.ZodOptional; showForgotPassword: z.ZodOptional; forgotPasswordUrl: z.ZodOptional; }, "strip", z.ZodTypeAny, { usernameLabel?: string | undefined; usernamePlaceholder?: string | undefined; passwordLabel?: string | undefined; passwordPlaceholder?: string | undefined; showRememberMe?: boolean | undefined; showForgotPassword?: boolean | undefined; forgotPasswordUrl?: string | undefined; }, { usernameLabel?: string | undefined; usernamePlaceholder?: string | undefined; passwordLabel?: string | undefined; passwordPlaceholder?: string | undefined; showRememberMe?: boolean | undefined; showForgotPassword?: boolean | undefined; forgotPasswordUrl?: string | undefined; }>>; oauth: z.ZodOptional; providerName: z.ZodOptional; buttonText: z.ZodOptional; }, "strip", z.ZodTypeAny, { providerId?: string | undefined; providerName?: string | undefined; buttonText?: string | undefined; }, { providerId?: string | undefined; providerName?: string | undefined; buttonText?: string | undefined; }>>; magicLink: z.ZodOptional; emailLabel: z.ZodOptional; emailPlaceholder: z.ZodOptional; buttonText: z.ZodOptional; resendCooldown: z.ZodOptional; }, "strip", z.ZodTypeAny, { buttonText?: string | undefined; enabled?: boolean | undefined; emailLabel?: string | undefined; emailPlaceholder?: string | undefined; resendCooldown?: number | undefined; }, { buttonText?: string | undefined; enabled?: boolean | undefined; emailLabel?: string | undefined; emailPlaceholder?: string | undefined; resendCooldown?: number | undefined; }>>; otp: z.ZodOptional; phoneLabel: z.ZodOptional; phonePlaceholder: z.ZodOptional; instructions: z.ZodOptional; digits: z.ZodOptional, z.ZodLiteral<6>, z.ZodLiteral<8>]>>; resendCooldown: z.ZodOptional; }, "strip", z.ZodTypeAny, { enabled?: boolean | undefined; resendCooldown?: number | undefined; phoneLabel?: string | undefined; phonePlaceholder?: string | undefined; instructions?: string | undefined; digits?: 8 | 4 | 6 | undefined; }, { enabled?: boolean | undefined; resendCooldown?: number | undefined; phoneLabel?: string | undefined; phonePlaceholder?: string | undefined; instructions?: string | undefined; digits?: 8 | 4 | 6 | undefined; }>>; qrCode: z.ZodOptional; instructions: z.ZodOptional; size: z.ZodOptional; showManualEntry: z.ZodOptional; }, "strip", z.ZodTypeAny, { enabled?: boolean | undefined; instructions?: string | undefined; size?: number | undefined; showManualEntry?: boolean | undefined; }, { enabled?: boolean | undefined; instructions?: string | undefined; size?: number | undefined; showManualEntry?: boolean | undefined; }>>; passkey: z.ZodOptional; instructions: z.ZodOptional; buttonText: z.ZodOptional; showCompatibilityInfo: z.ZodOptional; }, "strip", z.ZodTypeAny, { buttonText?: string | undefined; enabled?: boolean | undefined; instructions?: string | undefined; showCompatibilityInfo?: boolean | undefined; }, { buttonText?: string | undefined; enabled?: boolean | undefined; instructions?: string | undefined; showCompatibilityInfo?: boolean | undefined; }>>; idv: z.ZodOptional; providerName: z.ZodOptional; verificationType: z.ZodOptional>; instructions: z.ZodOptional; estimatedTime: z.ZodOptional; }, "strip", z.ZodTypeAny, { providerName?: string | undefined; enabled?: boolean | undefined; instructions?: string | undefined; verificationType?: "document" | "selfie" | "both" | undefined; estimatedTime?: string | undefined; }, { providerName?: string | undefined; enabled?: boolean | undefined; instructions?: string | undefined; verificationType?: "document" | "selfie" | "both" | undefined; estimatedTime?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { credentials?: { usernameLabel?: string | undefined; usernamePlaceholder?: string | undefined; passwordLabel?: string | undefined; passwordPlaceholder?: string | undefined; showRememberMe?: boolean | undefined; showForgotPassword?: boolean | undefined; forgotPasswordUrl?: string | undefined; } | undefined; oauth?: { providerId?: string | undefined; providerName?: string | undefined; buttonText?: string | undefined; } | undefined; otp?: { enabled?: boolean | undefined; resendCooldown?: number | undefined; phoneLabel?: string | undefined; phonePlaceholder?: string | undefined; instructions?: string | undefined; digits?: 8 | 4 | 6 | undefined; } | undefined; passkey?: { buttonText?: string | undefined; enabled?: boolean | undefined; instructions?: string | undefined; showCompatibilityInfo?: boolean | undefined; } | undefined; idv?: { providerName?: string | undefined; enabled?: boolean | undefined; instructions?: string | undefined; verificationType?: "document" | "selfie" | "both" | undefined; estimatedTime?: string | undefined; } | undefined; magicLink?: { buttonText?: string | undefined; enabled?: boolean | undefined; emailLabel?: string | undefined; emailPlaceholder?: string | undefined; resendCooldown?: number | undefined; } | undefined; qrCode?: { enabled?: boolean | undefined; instructions?: string | undefined; size?: number | undefined; showManualEntry?: boolean | undefined; } | undefined; }, { credentials?: { usernameLabel?: string | undefined; usernamePlaceholder?: string | undefined; passwordLabel?: string | undefined; passwordPlaceholder?: string | undefined; showRememberMe?: boolean | undefined; showForgotPassword?: boolean | undefined; forgotPasswordUrl?: string | undefined; } | undefined; oauth?: { providerId?: string | undefined; providerName?: string | undefined; buttonText?: string | undefined; } | undefined; otp?: { enabled?: boolean | undefined; resendCooldown?: number | undefined; phoneLabel?: string | undefined; phonePlaceholder?: string | undefined; instructions?: string | undefined; digits?: 8 | 4 | 6 | undefined; } | undefined; passkey?: { buttonText?: string | undefined; enabled?: boolean | undefined; instructions?: string | undefined; showCompatibilityInfo?: boolean | undefined; } | undefined; idv?: { providerName?: string | undefined; enabled?: boolean | undefined; instructions?: string | undefined; verificationType?: "document" | "selfie" | "both" | undefined; estimatedTime?: string | undefined; } | undefined; magicLink?: { buttonText?: string | undefined; enabled?: boolean | undefined; emailLabel?: string | undefined; emailPlaceholder?: string | undefined; resendCooldown?: number | undefined; } | undefined; qrCode?: { enabled?: boolean | undefined; instructions?: string | undefined; size?: number | undefined; showManualEntry?: boolean | undefined; } | undefined; }>; export type ModeConfigsSchemaType = z.infer; //# sourceMappingURL=modes.schemas.d.ts.map