UNPKG

@docusign/iam-sdk

Version:

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

46 lines (40 loc) 1.21 kB
/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; export type GetAgreementRequest = { accountId?: string | undefined; agreementId?: string | undefined; /** * Include linked data from external systems that correlate with this agreement. */ includeLinkedData?: boolean | undefined; }; /** @internal */ export type GetAgreementRequest$Outbound = { accountId: string; agreementId: string; include_linked_data: boolean; }; /** @internal */ export const GetAgreementRequest$outboundSchema: z.ZodType< GetAgreementRequest$Outbound, z.ZodTypeDef, GetAgreementRequest > = z.object({ accountId: z.string().default("00000000-0000-0000-0000-000000000000"), agreementId: z.string().default("00000000-0000-0000-0000-000000000000"), includeLinkedData: z.boolean().default(false), }).transform((v) => { return remap$(v, { includeLinkedData: "include_linked_data", }); }); export function getAgreementRequestToJSON( getAgreementRequest: GetAgreementRequest, ): string { return JSON.stringify( GetAgreementRequest$outboundSchema.parse(getAgreementRequest), ); }