UNPKG

@docusign/iam-sdk

Version:

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

28 lines 1.16 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"; /** @internal */ export const CreateWorkspaceUserResponse$inboundSchema = z.object({ workspace_id: types.optional(types.string()), user_id: types.optional(types.string()), role_id: types.optional(types.string()), email: z.nullable(types.string()).optional(), first_name: z.nullable(types.string()).optional(), last_name: z.nullable(types.string()).optional(), }).transform((v) => { return remap$(v, { "workspace_id": "workspaceId", "user_id": "userId", "role_id": "roleId", "first_name": "firstName", "last_name": "lastName", }); }); export function createWorkspaceUserResponseFromJSON(jsonString) { return safeParse(jsonString, (x) => CreateWorkspaceUserResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateWorkspaceUserResponse' from JSON`); } //# sourceMappingURL=createworkspaceuserresponse.js.map