@docusign/iam-sdk
Version:
Developer-friendly & type-safe Typescript SDK specifically catered to leverage *@docusign/iam-sdk* API.
29 lines • 1.22 kB
JavaScript
/*
* 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";
/** @internal */
export const GetWorkspaceDocumentResponse$inboundSchema = z.object({
workspace_id: z.nullable(types.string()).optional(),
document_id: types.string(),
name: types.string(),
owner_id: z.nullable(types.string()).optional(),
size: z.nullable(types.number()).optional(),
created_date: z.nullable(types.date()).optional(),
content_type: z.nullable(types.string()).optional(),
}).transform((v) => {
return remap$(v, {
"workspace_id": "workspaceId",
"document_id": "documentId",
"owner_id": "ownerId",
"created_date": "createdDate",
"content_type": "contentType",
});
});
export function getWorkspaceDocumentResponseFromJSON(jsonString) {
return safeParse(jsonString, (x) => GetWorkspaceDocumentResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetWorkspaceDocumentResponse' from JSON`);
}
//# sourceMappingURL=getworkspacedocumentresponse.js.map