/** * Consent Configuration Schemas * * Zod validation schemas for consent configuration. * * @module @kya-os/consent/schemas/config */ import { z } from "zod"; import { ConsentBrandingSchema } from "./branding.schemas.js"; /** * Consent UI Schema */ export declare const ConsentUISchema: z.ZodObject<{ title: z.ZodOptional; description: z.ZodOptional; expirationText: z.ZodOptional; cancelButtonText: z.ZodOptional; submitButtonText: z.ZodOptional; permissionsHeader: z.ZodOptional; autoClose: z.ZodOptional; popupEnabled: z.ZodOptional; theme: z.ZodOptional>; }, "strip", z.ZodTypeAny, { description?: string | undefined; title?: string | undefined; expirationText?: string | undefined; cancelButtonText?: string | undefined; submitButtonText?: string | undefined; permissionsHeader?: string | undefined; autoClose?: boolean | undefined; popupEnabled?: boolean | undefined; theme?: "light" | "dark" | "auto" | undefined; }, { description?: string | undefined; title?: string | undefined; expirationText?: string | undefined; cancelButtonText?: string | undefined; submitButtonText?: string | undefined; permissionsHeader?: string | undefined; autoClose?: boolean | undefined; popupEnabled?: boolean | undefined; theme?: "light" | "dark" | "auto" | undefined; }>; export type ConsentUISchemaType = z.infer; /** * Consent Terms Schema */ export declare const ConsentTermsSchema: z.ZodObject<{ text: z.ZodOptional; url: z.ZodOptional; version: z.ZodOptional; required: z.ZodOptional; }, "strip", z.ZodTypeAny, { text?: string | undefined; url?: string | undefined; version?: string | undefined; required?: boolean | undefined; }, { text?: string | undefined; url?: string | undefined; version?: string | undefined; required?: boolean | undefined; }>; export type ConsentTermsSchemaType = z.infer; /** * Consent Success Schema */ export declare const ConsentSuccessSchema: z.ZodObject<{ title: z.ZodOptional; description: z.ZodOptional; showCredential: z.ZodOptional; redirectUrl: z.ZodOptional; redirectDelay: z.ZodOptional; continueButtonText: z.ZodOptional; }, "strip", z.ZodTypeAny, { description?: string | undefined; title?: string | undefined; showCredential?: boolean | undefined; redirectUrl?: string | undefined; redirectDelay?: number | undefined; continueButtonText?: string | undefined; }, { description?: string | undefined; title?: string | undefined; showCredential?: boolean | undefined; redirectUrl?: string | undefined; redirectDelay?: number | undefined; continueButtonText?: string | undefined; }>; export type ConsentSuccessSchemaType = z.infer; /** * Custom Field Option Schema */ export declare const ConsentCustomFieldOptionSchema: z.ZodObject<{ value: z.ZodString; label: z.ZodString; }, "strip", z.ZodTypeAny, { value: string; label: string; }, { value: string; label: string; }>; /** * Custom Field Schema */ export declare const ConsentCustomFieldSchema: z.ZodEffects; required: z.ZodBoolean; placeholder: z.ZodOptional; options: z.ZodOptional, "many">>; pattern: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "text" | "textarea" | "checkbox" | "select" | "email"; label: string; name: string; required: boolean; options?: { value: string; label: string; }[] | undefined; placeholder?: string | undefined; pattern?: string | undefined; }, { type: "text" | "textarea" | "checkbox" | "select" | "email"; label: string; name: string; required: boolean; options?: { value: string; label: string; }[] | undefined; placeholder?: string | undefined; pattern?: string | undefined; }>, { type: "text" | "textarea" | "checkbox" | "select" | "email"; label: string; name: string; required: boolean; options?: { value: string; label: string; }[] | undefined; placeholder?: string | undefined; pattern?: string | undefined; }, { type: "text" | "textarea" | "checkbox" | "select" | "email"; label: string; name: string; required: boolean; options?: { value: string; label: string; }[] | undefined; placeholder?: string | undefined; pattern?: string | undefined; }>; export type ConsentCustomFieldSchemaType = z.infer; /** * Consent Metadata Schema */ export declare const ConsentMetadataSchema: z.ZodObject<{ version: z.ZodOptional; updatedAt: z.ZodOptional; cacheVersion: z.ZodOptional; }, "strip", z.ZodTypeAny, { version?: number | undefined; updatedAt?: string | undefined; cacheVersion?: string | undefined; }, { version?: number | undefined; updatedAt?: string | undefined; cacheVersion?: string | undefined; }>; export type ConsentMetadataSchemaType = z.infer; /** * Consent Config Schema * * Complete consent configuration schema. */ export declare const ConsentConfigSchema: z.ZodObject<{ branding: z.ZodOptional; secondaryColor: z.ZodOptional; logoUrl: z.ZodOptional; companyName: z.ZodOptional; }, "strip", z.ZodTypeAny, { primaryColor?: string | undefined; secondaryColor?: string | undefined; logoUrl?: string | undefined; companyName?: string | undefined; }, { primaryColor?: string | undefined; secondaryColor?: string | undefined; logoUrl?: string | undefined; companyName?: string | undefined; }>>; ui: z.ZodOptional; description: z.ZodOptional; expirationText: z.ZodOptional; cancelButtonText: z.ZodOptional; submitButtonText: z.ZodOptional; permissionsHeader: z.ZodOptional; autoClose: z.ZodOptional; popupEnabled: z.ZodOptional; theme: z.ZodOptional>; }, "strip", z.ZodTypeAny, { description?: string | undefined; title?: string | undefined; expirationText?: string | undefined; cancelButtonText?: string | undefined; submitButtonText?: string | undefined; permissionsHeader?: string | undefined; autoClose?: boolean | undefined; popupEnabled?: boolean | undefined; theme?: "light" | "dark" | "auto" | undefined; }, { description?: string | undefined; title?: string | undefined; expirationText?: string | undefined; cancelButtonText?: string | undefined; submitButtonText?: string | undefined; permissionsHeader?: string | undefined; autoClose?: boolean | undefined; popupEnabled?: boolean | undefined; theme?: "light" | "dark" | "auto" | undefined; }>>; terms: z.ZodOptional; url: z.ZodOptional; version: z.ZodOptional; required: z.ZodOptional; }, "strip", z.ZodTypeAny, { text?: string | undefined; url?: string | undefined; version?: string | undefined; required?: boolean | undefined; }, { text?: string | undefined; url?: string | undefined; version?: string | undefined; required?: boolean | undefined; }>>; success: z.ZodOptional; description: z.ZodOptional; showCredential: z.ZodOptional; redirectUrl: z.ZodOptional; redirectDelay: z.ZodOptional; continueButtonText: z.ZodOptional; }, "strip", z.ZodTypeAny, { description?: string | undefined; title?: string | undefined; showCredential?: boolean | undefined; redirectUrl?: string | undefined; redirectDelay?: number | undefined; continueButtonText?: string | undefined; }, { description?: string | undefined; title?: string | undefined; showCredential?: boolean | undefined; redirectUrl?: string | undefined; redirectDelay?: number | undefined; continueButtonText?: string | undefined; }>>; customFields: z.ZodOptional; required: z.ZodBoolean; placeholder: z.ZodOptional; options: z.ZodOptional, "many">>; pattern: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "text" | "textarea" | "checkbox" | "select" | "email"; label: string; name: string; required: boolean; options?: { value: string; label: string; }[] | undefined; placeholder?: string | undefined; pattern?: string | undefined; }, { type: "text" | "textarea" | "checkbox" | "select" | "email"; label: string; name: string; required: boolean; options?: { value: string; label: string; }[] | undefined; placeholder?: string | undefined; pattern?: string | undefined; }>, { type: "text" | "textarea" | "checkbox" | "select" | "email"; label: string; name: string; required: boolean; options?: { value: string; label: string; }[] | undefined; placeholder?: string | undefined; pattern?: string | undefined; }, { type: "text" | "textarea" | "checkbox" | "select" | "email"; label: string; name: string; required: boolean; options?: { value: string; label: string; }[] | undefined; placeholder?: string | undefined; pattern?: string | undefined; }>, "many">>; 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; }>>; expirationDays: z.ZodOptional; capabilities: z.ZodOptional; riskLevel: z.ZodEnum<["low", "medium", "high", "critical"]>; defaultOn: z.ZodBoolean; cedar: z.ZodEffects; scopes: z.ZodArray; category: z.ZodOptional; }, "strip", z.ZodTypeAny, { id: string; label: string; description: string; icon: "search" | "cart" | "card" | "pin" | "pin-new" | "shield" | "key" | "tools" | "user" | "calendar" | "lock" | "eye" | "send" | "package" | "neutral"; riskLevel: "low" | "medium" | "high" | "critical"; defaultOn: boolean; cedar: string; scopes: string[]; category?: string | undefined; }, { id: string; label: string; description: string; icon: "search" | "cart" | "card" | "pin" | "pin-new" | "shield" | "key" | "tools" | "user" | "calendar" | "lock" | "eye" | "send" | "package" | "neutral"; riskLevel: "low" | "medium" | "high" | "critical"; defaultOn: boolean; cedar: string; scopes: string[]; category?: string | undefined; }>, "many">; }, "strip", z.ZodTypeAny, { id: string; label: string; capabilities: { id: string; label: string; description: string; icon: "search" | "cart" | "card" | "pin" | "pin-new" | "shield" | "key" | "tools" | "user" | "calendar" | "lock" | "eye" | "send" | "package" | "neutral"; riskLevel: "low" | "medium" | "high" | "critical"; defaultOn: boolean; cedar: string; scopes: string[]; category?: string | undefined; }[]; }, { id: string; label: string; capabilities: { id: string; label: string; description: string; icon: "search" | "cart" | "card" | "pin" | "pin-new" | "shield" | "key" | "tools" | "user" | "calendar" | "lock" | "eye" | "send" | "package" | "neutral"; riskLevel: "low" | "medium" | "high" | "critical"; defaultOn: boolean; cedar: string; scopes: string[]; category?: string | undefined; }[]; }>, "many">>; agentMetadata: z.ZodOptional; surfaceLabel: z.ZodOptional; verified: z.ZodBoolean; logoUrl: z.ZodOptional; connectedAt: z.ZodOptional; }, "strip", z.ZodTypeAny, { name: string; did: string; verified: boolean; logoUrl?: string | undefined; vendor?: string | undefined; surfaceLabel?: string | undefined; connectedAt?: string | undefined; }, { name: string; did: string; verified: boolean; logoUrl?: string | undefined; vendor?: string | undefined; surfaceLabel?: string | undefined; connectedAt?: string | undefined; }>>; theme: z.ZodOptional>; headlineVerb: z.ZodOptional; revocationPath: z.ZodOptional; inactivityDays: z.ZodOptional; metadata: z.ZodOptional; updatedAt: z.ZodOptional; cacheVersion: z.ZodOptional; }, "strip", z.ZodTypeAny, { version?: number | undefined; updatedAt?: string | undefined; cacheVersion?: string | undefined; }, { version?: number | undefined; updatedAt?: string | undefined; cacheVersion?: 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; capabilities?: { id: string; label: string; capabilities: { id: string; label: string; description: string; icon: "search" | "cart" | "card" | "pin" | "pin-new" | "shield" | "key" | "tools" | "user" | "calendar" | "lock" | "eye" | "send" | "package" | "neutral"; riskLevel: "low" | "medium" | "high" | "critical"; defaultOn: boolean; cedar: string; scopes: string[]; category?: string | undefined; }[]; }[] | undefined; theme?: "light" | "dark" | undefined; branding?: { primaryColor?: string | undefined; secondaryColor?: string | undefined; logoUrl?: string | undefined; companyName?: string | undefined; } | undefined; ui?: { description?: string | undefined; title?: string | undefined; expirationText?: string | undefined; cancelButtonText?: string | undefined; submitButtonText?: string | undefined; permissionsHeader?: string | undefined; autoClose?: boolean | undefined; popupEnabled?: boolean | undefined; theme?: "light" | "dark" | "auto" | undefined; } | undefined; terms?: { text?: string | undefined; url?: string | undefined; version?: string | undefined; required?: boolean | undefined; } | undefined; success?: { description?: string | undefined; title?: string | undefined; showCredential?: boolean | undefined; redirectUrl?: string | undefined; redirectDelay?: number | undefined; continueButtonText?: string | undefined; } | undefined; customFields?: { type: "text" | "textarea" | "checkbox" | "select" | "email"; label: string; name: string; required: boolean; options?: { value: string; label: string; }[] | undefined; placeholder?: string | undefined; pattern?: string | undefined; }[] | undefined; expirationDays?: number | undefined; agentMetadata?: { name: string; did: string; verified: boolean; logoUrl?: string | undefined; vendor?: string | undefined; surfaceLabel?: string | undefined; connectedAt?: string | undefined; } | undefined; headlineVerb?: string | undefined; revocationPath?: string | undefined; inactivityDays?: number | undefined; metadata?: { version?: number | undefined; updatedAt?: string | undefined; cacheVersion?: string | 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; capabilities?: { id: string; label: string; capabilities: { id: string; label: string; description: string; icon: "search" | "cart" | "card" | "pin" | "pin-new" | "shield" | "key" | "tools" | "user" | "calendar" | "lock" | "eye" | "send" | "package" | "neutral"; riskLevel: "low" | "medium" | "high" | "critical"; defaultOn: boolean; cedar: string; scopes: string[]; category?: string | undefined; }[]; }[] | undefined; theme?: "light" | "dark" | undefined; branding?: { primaryColor?: string | undefined; secondaryColor?: string | undefined; logoUrl?: string | undefined; companyName?: string | undefined; } | undefined; ui?: { description?: string | undefined; title?: string | undefined; expirationText?: string | undefined; cancelButtonText?: string | undefined; submitButtonText?: string | undefined; permissionsHeader?: string | undefined; autoClose?: boolean | undefined; popupEnabled?: boolean | undefined; theme?: "light" | "dark" | "auto" | undefined; } | undefined; terms?: { text?: string | undefined; url?: string | undefined; version?: string | undefined; required?: boolean | undefined; } | undefined; success?: { description?: string | undefined; title?: string | undefined; showCredential?: boolean | undefined; redirectUrl?: string | undefined; redirectDelay?: number | undefined; continueButtonText?: string | undefined; } | undefined; customFields?: { type: "text" | "textarea" | "checkbox" | "select" | "email"; label: string; name: string; required: boolean; options?: { value: string; label: string; }[] | undefined; placeholder?: string | undefined; pattern?: string | undefined; }[] | undefined; expirationDays?: number | undefined; agentMetadata?: { name: string; did: string; verified: boolean; logoUrl?: string | undefined; vendor?: string | undefined; surfaceLabel?: string | undefined; connectedAt?: string | undefined; } | undefined; headlineVerb?: string | undefined; revocationPath?: string | undefined; inactivityDays?: number | undefined; metadata?: { version?: number | undefined; updatedAt?: string | undefined; cacheVersion?: string | undefined; } | undefined; }>; export type ConsentConfigSchemaType = z.infer; /** * Consent Config with Metadata Schema */ export declare const ConsentConfigWithMetaSchema: z.ZodObject<{ branding: z.ZodOptional; secondaryColor: z.ZodOptional; logoUrl: z.ZodOptional; companyName: z.ZodOptional; }, "strip", z.ZodTypeAny, { primaryColor?: string | undefined; secondaryColor?: string | undefined; logoUrl?: string | undefined; companyName?: string | undefined; }, { primaryColor?: string | undefined; secondaryColor?: string | undefined; logoUrl?: string | undefined; companyName?: string | undefined; }>>; ui: z.ZodOptional; description: z.ZodOptional; expirationText: z.ZodOptional; cancelButtonText: z.ZodOptional; submitButtonText: z.ZodOptional; permissionsHeader: z.ZodOptional; autoClose: z.ZodOptional; popupEnabled: z.ZodOptional; theme: z.ZodOptional>; }, "strip", z.ZodTypeAny, { description?: string | undefined; title?: string | undefined; expirationText?: string | undefined; cancelButtonText?: string | undefined; submitButtonText?: string | undefined; permissionsHeader?: string | undefined; autoClose?: boolean | undefined; popupEnabled?: boolean | undefined; theme?: "light" | "dark" | "auto" | undefined; }, { description?: string | undefined; title?: string | undefined; expirationText?: string | undefined; cancelButtonText?: string | undefined; submitButtonText?: string | undefined; permissionsHeader?: string | undefined; autoClose?: boolean | undefined; popupEnabled?: boolean | undefined; theme?: "light" | "dark" | "auto" | undefined; }>>; terms: z.ZodOptional; url: z.ZodOptional; version: z.ZodOptional; required: z.ZodOptional; }, "strip", z.ZodTypeAny, { text?: string | undefined; url?: string | undefined; version?: string | undefined; required?: boolean | undefined; }, { text?: string | undefined; url?: string | undefined; version?: string | undefined; required?: boolean | undefined; }>>; success: z.ZodOptional; description: z.ZodOptional; showCredential: z.ZodOptional; redirectUrl: z.ZodOptional; redirectDelay: z.ZodOptional; continueButtonText: z.ZodOptional; }, "strip", z.ZodTypeAny, { description?: string | undefined; title?: string | undefined; showCredential?: boolean | undefined; redirectUrl?: string | undefined; redirectDelay?: number | undefined; continueButtonText?: string | undefined; }, { description?: string | undefined; title?: string | undefined; showCredential?: boolean | undefined; redirectUrl?: string | undefined; redirectDelay?: number | undefined; continueButtonText?: string | undefined; }>>; customFields: z.ZodOptional; required: z.ZodBoolean; placeholder: z.ZodOptional; options: z.ZodOptional, "many">>; pattern: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "text" | "textarea" | "checkbox" | "select" | "email"; label: string; name: string; required: boolean; options?: { value: string; label: string; }[] | undefined; placeholder?: string | undefined; pattern?: string | undefined; }, { type: "text" | "textarea" | "checkbox" | "select" | "email"; label: string; name: string; required: boolean; options?: { value: string; label: string; }[] | undefined; placeholder?: string | undefined; pattern?: string | undefined; }>, { type: "text" | "textarea" | "checkbox" | "select" | "email"; label: string; name: string; required: boolean; options?: { value: string; label: string; }[] | undefined; placeholder?: string | undefined; pattern?: string | undefined; }, { type: "text" | "textarea" | "checkbox" | "select" | "email"; label: string; name: string; required: boolean; options?: { value: string; label: string; }[] | undefined; placeholder?: string | undefined; pattern?: string | undefined; }>, "many">>; 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; }>>; expirationDays: z.ZodOptional; capabilities: z.ZodOptional; riskLevel: z.ZodEnum<["low", "medium", "high", "critical"]>; defaultOn: z.ZodBoolean; cedar: z.ZodEffects; scopes: z.ZodArray; category: z.ZodOptional; }, "strip", z.ZodTypeAny, { id: string; label: string; description: string; icon: "search" | "cart" | "card" | "pin" | "pin-new" | "shield" | "key" | "tools" | "user" | "calendar" | "lock" | "eye" | "send" | "package" | "neutral"; riskLevel: "low" | "medium" | "high" | "critical"; defaultOn: boolean; cedar: string; scopes: string[]; category?: string | undefined; }, { id: string; label: string; description: string; icon: "search" | "cart" | "card" | "pin" | "pin-new" | "shield" | "key" | "tools" | "user" | "calendar" | "lock" | "eye" | "send" | "package" | "neutral"; riskLevel: "low" | "medium" | "high" | "critical"; defaultOn: boolean; cedar: string; scopes: string[]; category?: string | undefined; }>, "many">; }, "strip", z.ZodTypeAny, { id: string; label: string; capabilities: { id: string; label: string; description: string; icon: "search" | "cart" | "card" | "pin" | "pin-new" | "shield" | "key" | "tools" | "user" | "calendar" | "lock" | "eye" | "send" | "package" | "neutral"; riskLevel: "low" | "medium" | "high" | "critical"; defaultOn: boolean; cedar: string; scopes: string[]; category?: string | undefined; }[]; }, { id: string; label: string; capabilities: { id: string; label: string; description: string; icon: "search" | "cart" | "card" | "pin" | "pin-new" | "shield" | "key" | "tools" | "user" | "calendar" | "lock" | "eye" | "send" | "package" | "neutral"; riskLevel: "low" | "medium" | "high" | "critical"; defaultOn: boolean; cedar: string; scopes: string[]; category?: string | undefined; }[]; }>, "many">>; agentMetadata: z.ZodOptional; surfaceLabel: z.ZodOptional; verified: z.ZodBoolean; logoUrl: z.ZodOptional; connectedAt: z.ZodOptional; }, "strip", z.ZodTypeAny, { name: string; did: string; verified: boolean; logoUrl?: string | undefined; vendor?: string | undefined; surfaceLabel?: string | undefined; connectedAt?: string | undefined; }, { name: string; did: string; verified: boolean; logoUrl?: string | undefined; vendor?: string | undefined; surfaceLabel?: string | undefined; connectedAt?: string | undefined; }>>; theme: z.ZodOptional>; headlineVerb: z.ZodOptional; revocationPath: z.ZodOptional; inactivityDays: z.ZodOptional; } & { metadata: z.ZodOptional; updatedAt: z.ZodOptional; cacheVersion: z.ZodOptional; }, "strip", z.ZodTypeAny, { version?: number | undefined; updatedAt?: string | undefined; cacheVersion?: string | undefined; }, { version?: number | undefined; updatedAt?: string | undefined; cacheVersion?: 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; capabilities?: { id: string; label: string; capabilities: { id: string; label: string; description: string; icon: "search" | "cart" | "card" | "pin" | "pin-new" | "shield" | "key" | "tools" | "user" | "calendar" | "lock" | "eye" | "send" | "package" | "neutral"; riskLevel: "low" | "medium" | "high" | "critical"; defaultOn: boolean; cedar: string; scopes: string[]; category?: string | undefined; }[]; }[] | undefined; theme?: "light" | "dark" | undefined; branding?: { primaryColor?: string | undefined; secondaryColor?: string | undefined; logoUrl?: string | undefined; companyName?: string | undefined; } | undefined; ui?: { description?: string | undefined; title?: string | undefined; expirationText?: string | undefined; cancelButtonText?: string | undefined; submitButtonText?: string | undefined; permissionsHeader?: string | undefined; autoClose?: boolean | undefined; popupEnabled?: boolean | undefined; theme?: "light" | "dark" | "auto" | undefined; } | undefined; terms?: { text?: string | undefined; url?: string | undefined; version?: string | undefined; required?: boolean | undefined; } | undefined; success?: { description?: string | undefined; title?: string | undefined; showCredential?: boolean | undefined; redirectUrl?: string | undefined; redirectDelay?: number | undefined; continueButtonText?: string | undefined; } | undefined; customFields?: { type: "text" | "textarea" | "checkbox" | "select" | "email"; label: string; name: string; required: boolean; options?: { value: string; label: string; }[] | undefined; placeholder?: string | undefined; pattern?: string | undefined; }[] | undefined; expirationDays?: number | undefined; agentMetadata?: { name: string; did: string; verified: boolean; logoUrl?: string | undefined; vendor?: string | undefined; surfaceLabel?: string | undefined; connectedAt?: string | undefined; } | undefined; headlineVerb?: string | undefined; revocationPath?: string | undefined; inactivityDays?: number | undefined; metadata?: { version?: number | undefined; updatedAt?: string | undefined; cacheVersion?: string | 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; capabilities?: { id: string; label: string; capabilities: { id: string; label: string; description: string; icon: "search" | "cart" | "card" | "pin" | "pin-new" | "shield" | "key" | "tools" | "user" | "calendar" | "lock" | "eye" | "send" | "package" | "neutral"; riskLevel: "low" | "medium" | "high" | "critical"; defaultOn: boolean; cedar: string; scopes: string[]; category?: string | undefined; }[]; }[] | undefined; theme?: "light" | "dark" | undefined; branding?: { primaryColor?: string | undefined; secondaryColor?: string | undefined; logoUrl?: string | undefined; companyName?: string | undefined; } | undefined; ui?: { description?: string | undefined; title?: string | undefined; expirationText?: string | undefined; cancelButtonText?: string | undefined; submitButtonText?: string | undefined; permissionsHeader?: string | undefined; autoClose?: boolean | undefined; popupEnabled?: boolean | undefined; theme?: "light" | "dark" | "auto" | undefined; } | undefined; terms?: { text?: string | undefined; url?: string | undefined; version?: string | undefined; required?: boolean | undefined; } | undefined; success?: { description?: string | undefined; title?: string | undefined; showCredential?: boolean | undefined; redirectUrl?: string | undefined; redirectDelay?: number | undefined; continueButtonText?: string | undefined; } | undefined; customFields?: { type: "text" | "textarea" | "checkbox" | "select" | "email"; label: string; name: string; required: boolean; options?: { value: string; label: string; }[] | undefined; placeholder?: string | undefined; pattern?: string | undefined; }[] | undefined; expirationDays?: number | undefined; agentMetadata?: { name: string; did: string; verified: boolean; logoUrl?: string | undefined; vendor?: string | undefined; surfaceLabel?: string | undefined; connectedAt?: string | undefined; } | undefined; headlineVerb?: string | undefined; revocationPath?: string | undefined; inactivityDays?: number | undefined; metadata?: { version?: number | undefined; updatedAt?: string | undefined; cacheVersion?: string | undefined; } | undefined; }>; export type ConsentConfigWithMetaSchemaType = z.infer; /** * Validation helper functions */ export declare function validateConsentConfig(config: unknown): z.SafeParseReturnType; export declare function validateConsentBranding(branding: unknown): z.SafeParseReturnType>; export declare function validateCustomField(field: unknown): z.SafeParseReturnType; //# sourceMappingURL=config.schemas.d.ts.map