/* * 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 GeocodingUKFindGlobals = { source?: string | undefined; }; export type GeocodingUKFindRequest = { /** * 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 or street comma town. */ location: string; }; /** @internal */ export type GeocodingUKFindRequest$Outbound = { Key?: string | undefined; Location: string; }; /** @internal */ export const GeocodingUKFindRequest$outboundSchema: z.ZodType< GeocodingUKFindRequest$Outbound, z.ZodTypeDef, GeocodingUKFindRequest > = z.object({ key: z.string().optional(), location: z.string(), }).transform((v) => { return remap$(v, { key: "Key", location: "Location", }); }); export function geocodingUKFindRequestToJSON( geocodingUKFindRequest: GeocodingUKFindRequest, ): string { return JSON.stringify( GeocodingUKFindRequest$outboundSchema.parse(geocodingUKFindRequest), ); }