/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v3"; export type CompanyRequestBody = { /** * Name of company being connected. */ name: string; /** * Additional information about the company. This can be used to store foreign IDs, references, etc. */ description?: string | undefined; /** * A collection of user-defined key-value pairs that store custom metadata against the company. */ tags?: { [k: string]: string } | undefined; }; /** @internal */ export type CompanyRequestBody$Outbound = { name: string; description?: string | undefined; tags?: { [k: string]: string } | undefined; }; /** @internal */ export const CompanyRequestBody$outboundSchema: z.ZodType< CompanyRequestBody$Outbound, z.ZodTypeDef, CompanyRequestBody > = z.object({ name: z.string(), description: z.string().optional(), tags: z.record(z.string()).optional(), }); export function companyRequestBodyToJSON( companyRequestBody: CompanyRequestBody, ): string { return JSON.stringify( CompanyRequestBody$outboundSchema.parse(companyRequestBody), ); }