/** * Consent API Schemas * * Zod validation schemas for consent API request/response payloads. * * @module @kya-os/consent/schemas/api */ import { z } from "zod"; /** * OAuth Identity Schema */ export declare const OAuthIdentitySchema: z.ZodObject<{ provider: z.ZodString; subject: z.ZodString; email: z.ZodOptional; name: z.ZodOptional; }, "strip", z.ZodTypeAny, { provider: string; subject: string; email?: string | undefined; name?: string | undefined; }, { provider: string; subject: string; email?: string | undefined; name?: string | undefined; }>; export type OAuthIdentitySchemaType = z.infer; /** * Consent Approval Request Schema * * Note: auth_mode and provider_type have defaults for backwards compatibility * with existing tests and simple consent-only flows. */ export declare const ConsentApprovalRequestSchema: z.ZodObject<{ tool: z.ZodString; scopes: z.ZodArray; agent_did: z.ZodString; session_id: z.ZodString; project_id: z.ZodString; auth_mode: z.ZodDefault>; provider_type: z.ZodDefault; termsAccepted: z.ZodBoolean; termsVersion: z.ZodOptional; customFields: z.ZodOptional>>; oauth_identity: z.ZodOptional; name: z.ZodOptional; }, "strip", z.ZodTypeAny, { provider: string; subject: string; email?: string | undefined; name?: string | undefined; }, { provider: string; subject: string; email?: string | undefined; name?: string | undefined; }>>>; user_did: z.ZodOptional; /** * Human-readable user identifier from credential authentication (email/username). * Used for display in AgentShield dashboard. * Maps to: user_identifier in delegation request */ credential_user_email: z.ZodOptional; /** * Provider's internal user ID from credential authentication. * This is the provider-specific identifier (e.g., customer ID 696395, UUID). * Used for business reference and linking to provider systems. * Maps to: user_id in delegation request */ credential_provider_user_id: z.ZodOptional; }, "strip", z.ZodTypeAny, { scopes: string[]; agent_did: string; tool: string; session_id: string; project_id: string; auth_mode: "consent-only" | "credentials" | "oauth" | "magic-link" | "otp" | "qr-code" | "passkey" | "idv"; provider_type: string; termsAccepted: boolean; user_did?: string | undefined; customFields?: Record | undefined; termsVersion?: string | undefined; oauth_identity?: { provider: string; subject: string; email?: string | undefined; name?: string | undefined; } | null | undefined; credential_user_email?: string | undefined; credential_provider_user_id?: string | undefined; }, { scopes: string[]; agent_did: string; tool: string; session_id: string; project_id: string; termsAccepted: boolean; user_did?: string | undefined; customFields?: Record | undefined; auth_mode?: "consent-only" | "credentials" | "oauth" | "magic-link" | "otp" | "qr-code" | "passkey" | "idv" | undefined; provider_type?: string | undefined; termsVersion?: string | undefined; oauth_identity?: { provider: string; subject: string; email?: string | undefined; name?: string | undefined; } | null | undefined; credential_user_email?: string | undefined; credential_provider_user_id?: string | undefined; }>; export type ConsentApprovalRequestSchemaType = z.infer; /** * Consent Approval Response Schema */ export declare const ConsentApprovalResponseSchema: z.ZodEffects; delegation_token: z.ZodOptional; error: z.ZodOptional; error_code: z.ZodOptional; }, "strip", z.ZodTypeAny, { success: boolean; delegation_id?: string | undefined; delegation_token?: string | undefined; error?: string | undefined; error_code?: string | undefined; }, { success: boolean; delegation_id?: string | undefined; delegation_token?: string | undefined; error?: string | undefined; error_code?: string | undefined; }>, { success: boolean; delegation_id?: string | undefined; delegation_token?: string | undefined; error?: string | undefined; error_code?: string | undefined; }, { success: boolean; delegation_id?: string | undefined; delegation_token?: string | undefined; error?: string | undefined; error_code?: string | undefined; }>; export type ConsentApprovalResponseSchemaType = z.infer; /** * Consent Config API Response Schema */ export declare const ConsentConfigAPIResponseSchema: z.ZodObject<{ success: z.ZodBoolean; data: 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; }>>; error: z.ZodOptional; }, "strip", z.ZodTypeAny, { success: boolean; error?: string | undefined; data?: { 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; } | undefined; }, { success: boolean; error?: string | undefined; data?: { 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; } | undefined; }>; export type ConsentConfigAPIResponseSchemaType = z.infer; /** * Credential Auth Request Schema */ export declare const CredentialAuthRequestSchema: z.ZodObject<{ username: z.ZodString; password: z.ZodString; csrf_token: z.ZodString; session_id: z.ZodString; agent_did: z.ZodString; project_id: z.ZodString; provider: z.ZodString; remember_me: z.ZodOptional; }, "strip", z.ZodTypeAny, { password: string; agent_did: string; provider: string; session_id: string; project_id: string; username: string; csrf_token: string; remember_me?: boolean | undefined; }, { password: string; agent_did: string; provider: string; session_id: string; project_id: string; username: string; csrf_token: string; remember_me?: boolean | undefined; }>; export type CredentialAuthRequestSchemaType = z.infer; /** * Credential Auth Response Schema */ export declare const CredentialAuthResponseSchema: z.ZodObject<{ success: z.ZodBoolean; oauth_identity: z.ZodOptional; name: z.ZodOptional; }, "strip", z.ZodTypeAny, { provider: string; subject: string; email?: string | undefined; name?: string | undefined; }, { provider: string; subject: string; email?: string | undefined; name?: string | undefined; }>>; error: z.ZodOptional; error_code: z.ZodOptional; }, "strip", z.ZodTypeAny, { success: boolean; oauth_identity?: { provider: string; subject: string; email?: string | undefined; name?: string | undefined; } | undefined; error?: string | undefined; error_code?: string | undefined; }, { success: boolean; oauth_identity?: { provider: string; subject: string; email?: string | undefined; name?: string | undefined; } | undefined; error?: string | undefined; error_code?: string | undefined; }>; export type CredentialAuthResponseSchemaType = z.infer; /** * Consent Page Config Schema (for API validation) */ export declare const ConsentPageConfigSchema: z.ZodEffects; agentDid: z.ZodString; sessionId: z.ZodString; projectId: z.ZodString; serverUrl: z.ZodString; provider: z.ZodOptional; autoClose: z.ZodOptional; oauthRequired: z.ZodOptional; oauthUrl: z.ZodOptional]>>; }, "strip", z.ZodTypeAny, { scopes: string[]; tool: string; toolDescription: string; agentDid: string; sessionId: string; projectId: string; serverUrl: string; autoClose?: boolean | undefined; provider?: string | undefined; oauthRequired?: boolean | undefined; oauthUrl?: string | undefined; }, { scopes: string[]; tool: string; toolDescription: string; agentDid: string; sessionId: string; projectId: string; serverUrl: string; autoClose?: boolean | undefined; provider?: string | undefined; oauthRequired?: boolean | undefined; oauthUrl?: string | undefined; }>, { scopes: string[]; tool: string; toolDescription: string; agentDid: string; sessionId: string; projectId: string; serverUrl: string; autoClose?: boolean | undefined; provider?: string | undefined; oauthRequired?: boolean | undefined; oauthUrl?: string | undefined; }, { scopes: string[]; tool: string; toolDescription: string; agentDid: string; sessionId: string; projectId: string; serverUrl: string; autoClose?: boolean | undefined; provider?: string | undefined; oauthRequired?: boolean | undefined; oauthUrl?: string | undefined; }>; export type ConsentPageConfigSchemaType = z.infer; /** * Validation helper functions */ export declare function validateConsentApprovalRequest(request: unknown): z.SafeParseReturnType; export declare function validateConsentApprovalResponse(response: unknown): z.SafeParseReturnType; export declare function validateOAuthIdentity(identity: unknown): z.SafeParseReturnType; export declare function validateConsentPageConfig(config: unknown): z.SafeParseReturnType; //# sourceMappingURL=api.schemas.d.ts.map