UNPKG

@docusign/iam-sdk

Version:

Developer-friendly & type-safe Typescript SDK specifically catered to leverage *@docusign/iam-sdk* API.

31 lines 1.32 kB
/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod"; import { safeParse } from "../../lib/schemas.js"; /** @internal */ export const AgreementSummary$inboundSchema = z.object({ summary: z.string().optional(), }); /** @internal */ export const AgreementSummary$outboundSchema = z.object({ summary: z.string().optional(), }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export var AgreementSummary$; (function (AgreementSummary$) { /** @deprecated use `AgreementSummary$inboundSchema` instead. */ AgreementSummary$.inboundSchema = AgreementSummary$inboundSchema; /** @deprecated use `AgreementSummary$outboundSchema` instead. */ AgreementSummary$.outboundSchema = AgreementSummary$outboundSchema; })(AgreementSummary$ || (AgreementSummary$ = {})); export function agreementSummaryToJSON(agreementSummary) { return JSON.stringify(AgreementSummary$outboundSchema.parse(agreementSummary)); } export function agreementSummaryFromJSON(jsonString) { return safeParse(jsonString, (x) => AgreementSummary$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AgreementSummary' from JSON`); } //# sourceMappingURL=agreementsummary.js.map