/* * 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 GeocodingInternationalGeocodeGlobals = { source?: string | undefined; }; export type GeocodingInternationalGeocodeRequest = { /** * The key to use to authenticate to the service. */ key?: string | undefined; /** * The name or ISO 2 or 3 character code for the country to search in. Most country names will be recognised but the use of the ISO country code is recommended for clarity. */ country: string; /** * The location to geocode. This can be a postal code or place name. */ location: string; }; /** @internal */ export type GeocodingInternationalGeocodeRequest$Outbound = { Key?: string | undefined; Country: string; Location: string; }; /** @internal */ export const GeocodingInternationalGeocodeRequest$outboundSchema: z.ZodType< GeocodingInternationalGeocodeRequest$Outbound, z.ZodTypeDef, GeocodingInternationalGeocodeRequest > = z.object({ key: z.string().optional(), country: z.string(), location: z.string(), }).transform((v) => { return remap$(v, { key: "Key", country: "Country", location: "Location", }); }); export function geocodingInternationalGeocodeRequestToJSON( geocodingInternationalGeocodeRequest: GeocodingInternationalGeocodeRequest, ): string { return JSON.stringify( GeocodingInternationalGeocodeRequest$outboundSchema.parse( geocodingInternationalGeocodeRequest, ), ); }