UNPKG

buena-typescript-sdk

Version:

Official TypeScript SDK for Buena.ai API - LinkedIn automation and lead management

55 lines (46 loc) 1.52 kB
/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod"; import { safeParse } from "../lib/schemas.js"; import { Result as SafeParseResult } from "../types/fp.js"; import { SDKValidationError } from "./errors/sdkvalidationerror.js"; /** * Additional error details */ export type Details = {}; /** @internal */ export const Details$inboundSchema: z.ZodType<Details, z.ZodTypeDef, unknown> = z.object({}); /** @internal */ export type Details$Outbound = {}; /** @internal */ export const Details$outboundSchema: z.ZodType< Details$Outbound, z.ZodTypeDef, Details > = z.object({}); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export namespace Details$ { /** @deprecated use `Details$inboundSchema` instead. */ export const inboundSchema = Details$inboundSchema; /** @deprecated use `Details$outboundSchema` instead. */ export const outboundSchema = Details$outboundSchema; /** @deprecated use `Details$Outbound` instead. */ export type Outbound = Details$Outbound; } export function detailsToJSON(details: Details): string { return JSON.stringify(Details$outboundSchema.parse(details)); } export function detailsFromJSON( jsonString: string, ): SafeParseResult<Details, SDKValidationError> { return safeParse( jsonString, (x) => Details$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Details' from JSON`, ); }