/* * 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 GeocodingUKGeocodeGlobals = { source?: string | undefined; }; export type GeocodingUKGeocodeRequest = { /** * The key to use to authenticate to the service. */ key?: string | undefined; /** * The location to geocode. This can be a full or partial postcode, a place name, street comma town, address (comma separated lines) or an ID from PostcodeAnywhere/Find web services. */ location: string; }; /** @internal */ export type GeocodingUKGeocodeRequest$Outbound = { Key?: string | undefined; Location: string; }; /** @internal */ export const GeocodingUKGeocodeRequest$outboundSchema: z.ZodType< GeocodingUKGeocodeRequest$Outbound, z.ZodTypeDef, GeocodingUKGeocodeRequest > = z.object({ key: z.string().optional(), location: z.string(), }).transform((v) => { return remap$(v, { key: "Key", location: "Location", }); }); export function geocodingUKGeocodeRequestToJSON( geocodingUKGeocodeRequest: GeocodingUKGeocodeRequest, ): string { return JSON.stringify( GeocodingUKGeocodeRequest$outboundSchema.parse(geocodingUKGeocodeRequest), ); }