//#region src/components/kioskCustomerAuth/types.d.ts type KioskIdentificationMethod = 'scan' | 'phone' | 'email'; type KioskVerificationCodeMethod = 'sms' | 'email_code'; type KioskVerificationMethod = 'last4' | 'full' | 'password' | KioskVerificationCodeMethod; type KioskRawIdentificationId = 'scan' | 'phone_number' | 'email'; type KioskRawVerificationId = 'phone_last4' | 'phone_full' | 'account_password' | 'sms_code' | 'email_code'; interface KioskPhoneCountry { code: string; name: string; callingCode: string; } interface KioskPhoneCountries { status: 'loading' | 'ready' | 'error'; options: KioskPhoneCountry[]; defaultCountry?: string; retry?: () => void; } interface KioskCustomerMember { id: string; name: string; mobile: string; email?: string; wristbandId?: string; registered: boolean; /** Missing means unknown; password verification is adjudicated by the backend check API. */ hasPassword?: boolean; hasScanCode?: boolean; } interface KioskVerificationPolicy { requireVerification: boolean; verification: KioskVerificationMethod[]; } interface KioskIdentificationMethodPolicy { enabled: boolean; intents: Record; } interface KioskChannelAuthenticationPolicy { methodOrder: KioskIdentificationMethod[]; methods: Record>; } interface KioskRawVerificationSettings { requireVerification?: boolean; methods?: Array<{ id?: string; enabled?: boolean; }>; } interface KioskRawIdentificationSettings { id?: string; enabled?: boolean; settings?: Partial>; } interface KioskCustomerAuthSessionContext { sessionId: string; configurationRevision: string; intent: Intent; identificationMethod: KioskIdentificationMethod; memberId: string; } interface KioskIdentifyCustomerRequest { sessionId: string; configurationRevision: string; intent: Intent; identificationMethod: KioskIdentificationMethod; value: string; countryCode?: string; } interface KioskRequestVerificationResult { retryAfterSeconds?: number; } interface KioskVerifyIdentityResult { verified: boolean; message?: string; } interface KioskCustomerAuthService { identify(request: KioskIdentifyCustomerRequest, signal: AbortSignal): Promise; requestVerification(request: KioskCustomerAuthSessionContext & { method: KioskVerificationCodeMethod; }, signal: AbortSignal): Promise; verifyIdentity(request: KioskCustomerAuthSessionContext & { method: KioskVerificationMethod; value: string; }, signal: AbortSignal): Promise; } //#endregion export { KioskChannelAuthenticationPolicy, KioskCustomerAuthService, KioskCustomerAuthSessionContext, KioskCustomerMember, KioskIdentificationMethod, KioskIdentificationMethodPolicy, KioskIdentifyCustomerRequest, KioskPhoneCountries, KioskPhoneCountry, KioskRawIdentificationId, KioskRawIdentificationSettings, KioskRawVerificationId, KioskRawVerificationSettings, KioskRequestVerificationResult, KioskVerificationCodeMethod, KioskVerificationMethod, KioskVerificationPolicy, KioskVerifyIdentityResult };