/* * 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 GeocodingUKReverseGeocodeGlobals = { source?: string | undefined; }; export type GeocodingUKReverseGeocodeRequest = { /** * The key to use to authenticate to the service. */ key?: string | undefined; /** * A postcode or coordinates (latitude, longitude or easting, nothing) of the centre of the search. */ centrePoint: string; }; /** @internal */ export type GeocodingUKReverseGeocodeRequest$Outbound = { Key?: string | undefined; CentrePoint: string; }; /** @internal */ export const GeocodingUKReverseGeocodeRequest$outboundSchema: z.ZodType< GeocodingUKReverseGeocodeRequest$Outbound, z.ZodTypeDef, GeocodingUKReverseGeocodeRequest > = z.object({ key: z.string().optional(), centrePoint: z.string(), }).transform((v) => { return remap$(v, { key: "Key", centrePoint: "CentrePoint", }); }); export function geocodingUKReverseGeocodeRequestToJSON( geocodingUKReverseGeocodeRequest: GeocodingUKReverseGeocodeRequest, ): string { return JSON.stringify( GeocodingUKReverseGeocodeRequest$outboundSchema.parse( geocodingUKReverseGeocodeRequest, ), ); }