UNPKG

@docusign/iam-sdk

Version:

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

32 lines 1.37 kB
/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod"; import { safeParse } from "../../lib/schemas.js"; import { Workflow$inboundSchema, Workflow$outboundSchema, } from "./workflow.js"; /** @internal */ export const WorkflowList$inboundSchema = z.object({ workflows: z.array(Workflow$inboundSchema).optional(), }); /** @internal */ export const WorkflowList$outboundSchema = z.object({ workflows: z.array(Workflow$outboundSchema).optional(), }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export var WorkflowList$; (function (WorkflowList$) { /** @deprecated use `WorkflowList$inboundSchema` instead. */ WorkflowList$.inboundSchema = WorkflowList$inboundSchema; /** @deprecated use `WorkflowList$outboundSchema` instead. */ WorkflowList$.outboundSchema = WorkflowList$outboundSchema; })(WorkflowList$ || (WorkflowList$ = {})); export function workflowListToJSON(workflowList) { return JSON.stringify(WorkflowList$outboundSchema.parse(workflowList)); } export function workflowListFromJSON(jsonString) { return safeParse(jsonString, (x) => WorkflowList$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'WorkflowList' from JSON`); } //# sourceMappingURL=workflowlist.js.map