import * as z from "zod"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { DeviceMetadataCreate, DeviceMetadataCreate$Outbound } from "./devicemetadatacreate.js"; import { IdentificationCreate, IdentificationCreate$Outbound } from "./identificationcreate.js"; import { PhoneNumberCreate, PhoneNumberCreate$Outbound } from "./phonenumbercreate.js"; /** * Represents an identity lookup resource */ export type IdentityLookupCreate = { /** * End-user device metadata for fraud detection and compliance All fields must represent the actual end-user's device, not any intermediate proxy or client server through which requests may be routed */ deviceMetadata: DeviceMetadataCreate; /** * Represents an identification document */ identification: IdentificationCreate; /** * An object representing a phone number, suitable as an API wire format. * * @remarks * * This representation: * * - should not be used for locale-specific formatting of a phone number, such as "+1 (650) 253-0000 ext. 123" * * - is not designed for efficient storage - may not be suitable for dialing - specialized libraries (see references) should be used to parse the number for that purpose * * To do something meaningful with this number, such as format it for various use-cases, convert it to an `i18n.phonenumbers.PhoneNumber` object first. * * For instance, in Java this would be: * * com.google.type.PhoneNumber wireProto = com.google.type.PhoneNumber.newBuilder().build(); com.google.i18n.phonenumbers.Phonenumber.PhoneNumber phoneNumber = PhoneNumberUtil.getInstance().parse(wireProto.getE164Number(), "ZZ"); if (!wireProto.getExtension().isEmpty()) { phoneNumber.setExtension(wireProto.getExtension()); } * * Reference(s): * - https://github.com/google/libphonenumber */ phoneNumber: PhoneNumberCreate; /** * Verify User has consented to an identity lookup */ userConsent: boolean; }; /** @internal */ export declare const IdentityLookupCreate$inboundSchema: z.ZodType; /** @internal */ export type IdentityLookupCreate$Outbound = { device_metadata: DeviceMetadataCreate$Outbound; identification: IdentificationCreate$Outbound; phone_number: PhoneNumberCreate$Outbound; user_consent: boolean; }; /** @internal */ export declare const IdentityLookupCreate$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace IdentityLookupCreate$ { /** @deprecated use `IdentityLookupCreate$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `IdentityLookupCreate$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `IdentityLookupCreate$Outbound` instead. */ type Outbound = IdentityLookupCreate$Outbound; } export declare function identityLookupCreateToJSON(identityLookupCreate: IdentityLookupCreate): string; export declare function identityLookupCreateFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=identitylookupcreate.d.ts.map