import * as z from "zod"; import { OpenEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { LatLngCreate, LatLngCreate$Outbound } from "./latlngcreate.js"; /** * The type of device (e.g., mobile, desktop, tablet) */ export declare enum DeviceType { DeviceTypeUnspecified = "DEVICE_TYPE_UNSPECIFIED", Desktop = "DESKTOP", Mobile = "MOBILE", Tablet = "TABLET" } /** * The type of device (e.g., mobile, desktop, tablet) */ export type DeviceTypeOpen = OpenEnum; /** * Method used to determine the end-user's device geolocation */ export declare enum GeolocationMechanism { GeolocationMechanismUnspecified = "GEOLOCATION_MECHANISM_UNSPECIFIED", DeviceGps = "DEVICE_GPS", IpLookup = "IP_LOOKUP" } /** * Method used to determine the end-user's device geolocation */ export type GeolocationMechanismOpen = OpenEnum; /** * 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 */ export type DeviceMetadataCreate = { /** * Unique identifier for the device */ deviceId?: string | undefined; /** * The type of device (e.g., mobile, desktop, tablet) */ deviceType?: DeviceTypeOpen | undefined; /** * An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this must conform to the WGS84 standard. Values must be within normalized ranges. */ geolocation?: LatLngCreate | undefined; /** * Method used to determine the end-user's device geolocation */ geolocationMechanism?: GeolocationMechanismOpen | undefined; /** * The IP address of the end-user's device This must be the actual end-user's IP address, not the IP of any proxy or client server Must be a valid IPv4 or IPv6 address format IPv4 examples: "203.0.113.42", "198.51.100.1", "8.8.8.8" IPv6 examples: "2001:0db8:85a3::8a2e:0370:7334", "2606:4700:4700::1111" */ ipAddress: string; /** * The user agent string from the end-user's device browser or application */ userAgent?: string | undefined; }; /** @internal */ export declare const DeviceType$inboundSchema: z.ZodType; /** @internal */ export declare const DeviceType$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 DeviceType$ { /** @deprecated use `DeviceType$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `DeviceType$outboundSchema` instead. */ const outboundSchema: z.ZodType; } /** @internal */ export declare const GeolocationMechanism$inboundSchema: z.ZodType; /** @internal */ export declare const GeolocationMechanism$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 GeolocationMechanism$ { /** @deprecated use `GeolocationMechanism$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `GeolocationMechanism$outboundSchema` instead. */ const outboundSchema: z.ZodType; } /** @internal */ export declare const DeviceMetadataCreate$inboundSchema: z.ZodType; /** @internal */ export type DeviceMetadataCreate$Outbound = { device_id?: string | undefined; device_type?: string | undefined; geolocation?: LatLngCreate$Outbound | undefined; geolocation_mechanism?: string | undefined; ip_address: string; user_agent?: string | undefined; }; /** @internal */ export declare const DeviceMetadataCreate$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 DeviceMetadataCreate$ { /** @deprecated use `DeviceMetadataCreate$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `DeviceMetadataCreate$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `DeviceMetadataCreate$Outbound` instead. */ type Outbound = DeviceMetadataCreate$Outbound; } export declare function deviceMetadataCreateToJSON(deviceMetadataCreate: DeviceMetadataCreate): string; export declare function deviceMetadataCreateFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=devicemetadatacreate.d.ts.map