UNPKG

@docusign/iam-sdk

Version:

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

22 lines 685 B
/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import * as types from "../../types/primitives.js"; /** @internal */ export const Link$inboundSchema = z .object({ href: types.string(), }); /** @internal */ export const Link$outboundSchema = z.object({ href: z.string(), }); export function linkToJSON(link) { return JSON.stringify(Link$outboundSchema.parse(link)); } export function linkFromJSON(jsonString) { return safeParse(jsonString, (x) => Link$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Link' from JSON`); } //# sourceMappingURL=link.js.map