/* * 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 * as shared from "../shared/index.js"; export type UpdateSourceAccountRequest = { /** * Unique identifier for a company. */ companyId: string; /** * Unique identifier for a connection. */ connectionId: string; /** * Unique identifier for an account. */ accountId: string; sourceAccount?: shared.SourceAccount | undefined; }; /** @internal */ export type UpdateSourceAccountRequest$Outbound = { companyId: string; connectionId: string; accountId: string; SourceAccount?: shared.SourceAccount$Outbound | undefined; }; /** @internal */ export const UpdateSourceAccountRequest$outboundSchema: z.ZodType< UpdateSourceAccountRequest$Outbound, z.ZodTypeDef, UpdateSourceAccountRequest > = z.object({ companyId: z.string(), connectionId: z.string(), accountId: z.string(), sourceAccount: shared.SourceAccount$outboundSchema.optional(), }).transform((v) => { return remap$(v, { sourceAccount: "SourceAccount", }); }); export function updateSourceAccountRequestToJSON( updateSourceAccountRequest: UpdateSourceAccountRequest, ): string { return JSON.stringify( UpdateSourceAccountRequest$outboundSchema.parse(updateSourceAccountRequest), ); }