/* * 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 GeocodingUKRetrieveGlobals = { source?: string | undefined; }; export type GeocodingUKRetrieveRequest = { /** * The key to use to authenticate to the service. */ key?: string | undefined; /** * The location ID to retrieve the coordinates for. */ id: string; }; /** @internal */ export type GeocodingUKRetrieveRequest$Outbound = { Key?: string | undefined; Id: string; }; /** @internal */ export const GeocodingUKRetrieveRequest$outboundSchema: z.ZodType< GeocodingUKRetrieveRequest$Outbound, z.ZodTypeDef, GeocodingUKRetrieveRequest > = z.object({ key: z.string().optional(), id: z.string(), }).transform((v) => { return remap$(v, { key: "Key", id: "Id", }); }); export function geocodingUKRetrieveRequestToJSON( geocodingUKRetrieveRequest: GeocodingUKRetrieveRequest, ): string { return JSON.stringify( GeocodingUKRetrieveRequest$outboundSchema.parse(geocodingUKRetrieveRequest), ); }