/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v4-mini"; import { remap as remap$ } from "../../lib/primitives.js"; import { AlertSettings, AlertSettings$Outbound, AlertSettings$outboundSchema, } from "./alert-settings.js"; import { AutoTopup, AutoTopup$Outbound, AutoTopup$outboundSchema, } from "./auto-topup.js"; import { WalletConfig, WalletConfig$Outbound, WalletConfig$outboundSchema, } from "./wallet-config.js"; export type UpdateWalletRequest = { alertSettings?: AlertSettings | undefined; autoTopup?: AutoTopup | undefined; config?: WalletConfig | undefined; description?: string | undefined; metadata?: { [k: string]: string } | undefined; name?: string | undefined; }; /** @internal */ export type UpdateWalletRequest$Outbound = { alert_settings?: AlertSettings$Outbound | undefined; auto_topup?: AutoTopup$Outbound | undefined; config?: WalletConfig$Outbound | undefined; description?: string | undefined; metadata?: { [k: string]: string } | undefined; name?: string | undefined; }; /** @internal */ export const UpdateWalletRequest$outboundSchema: z.ZodMiniType< UpdateWalletRequest$Outbound, UpdateWalletRequest > = z.pipe( z.object({ alertSettings: z.optional(AlertSettings$outboundSchema), autoTopup: z.optional(AutoTopup$outboundSchema), config: z.optional(WalletConfig$outboundSchema), description: z.optional(z.string()), metadata: z.optional(z.record(z.string(), z.string())), name: z.optional(z.string()), }), z.transform((v) => { return remap$(v, { alertSettings: "alert_settings", autoTopup: "auto_topup", }); }), ); export function updateWalletRequestToJSON( updateWalletRequest: UpdateWalletRequest, ): string { return JSON.stringify( UpdateWalletRequest$outboundSchema.parse(updateWalletRequest), ); }