/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; export type ExtrasWebIp2CountryGlobals = { source?: string | undefined; }; export type ExtrasWebIp2CountryRequest = { /** * The key to use to authenticate to the service. */ key?: string | undefined; /** * The IP Address to check. If this parameter is not supplied the IP address of the client making the request is used. */ ipAddress?: string | undefined; }; /** @internal */ export type ExtrasWebIp2CountryRequest$Outbound = { Key?: string | undefined; IpAddress?: string | undefined; }; /** @internal */ export const ExtrasWebIp2CountryRequest$outboundSchema: z.ZodType< ExtrasWebIp2CountryRequest$Outbound, z.ZodTypeDef, ExtrasWebIp2CountryRequest > = z.object({ key: z.string().optional(), ipAddress: z.string().optional(), }).transform((v) => { return remap$(v, { key: "Key", ipAddress: "IpAddress", }); }); export function extrasWebIp2CountryRequestToJSON( extrasWebIp2CountryRequest: ExtrasWebIp2CountryRequest, ): string { return JSON.stringify( ExtrasWebIp2CountryRequest$outboundSchema.parse(extrasWebIp2CountryRequest), ); }