UNPKG

@docusign/iam-sdk

Version:

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

29 lines 1.25 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"; import { safeParse } from "../../lib/schemas.js"; import * as types from "../../types/primitives.js"; import { WorkspaceDocumentOwner$inboundSchema, } from "./workspacedocumentowner.js"; /** @internal */ export const WorkspaceDocument$inboundSchema = z.object({ document_id: types.string(), name: z.nullable(types.string()).optional(), owner_id: z.nullable(types.string()).optional(), size: z.nullable(types.number()).optional(), created_date: z.nullable(types.date()).optional(), last_updated_date: z.nullable(types.date()).optional(), owner: types.optional(WorkspaceDocumentOwner$inboundSchema), }).transform((v) => { return remap$(v, { "document_id": "documentId", "owner_id": "ownerId", "created_date": "createdDate", "last_updated_date": "lastUpdatedDate", }); }); export function workspaceDocumentFromJSON(jsonString) { return safeParse(jsonString, (x) => WorkspaceDocument$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'WorkspaceDocument' from JSON`); } //# sourceMappingURL=workspacedocument.js.map