/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { lazySchema as lazySchema$ } from "../../lib/schemas.js"; export type CreateCallbackState = { /** * The redirect URI to be used after the connection is created. */ redirectUri?: string | undefined; }; /** @internal */ export type CreateCallbackState$Outbound = { redirect_uri?: string | undefined; }; /** @internal */ export const CreateCallbackState$outboundSchema: z.ZodType< CreateCallbackState$Outbound, z.ZodTypeDef, CreateCallbackState > = /* @__PURE__ */ lazySchema$(() => z.object({ redirectUri: z.string().optional(), }).transform((v) => { return remap$(v, { redirectUri: "redirect_uri", }); }) ); export function createCallbackStateToJSON( createCallbackState: CreateCallbackState, ): string { return JSON.stringify( CreateCallbackState$outboundSchema.parse(createCallbackState), ); }