UNPKG

@docusign/iam-sdk

Version:

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

29 lines 1.4 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 { WorkspaceRoleSummary$inboundSchema, } from "./workspacerolesummary.js"; /** @internal */ export const GetWorkspaceAssignableRolesResponse$inboundSchema = z.object({ roles: types.nullable(z.array(WorkspaceRoleSummary$inboundSchema)), result_set_size: z.nullable(types.number()).optional(), start_position: z.nullable(types.number()).optional(), end_position: z.nullable(types.number()).optional(), total_row_count: z.nullable(types.number()).optional(), current_role_id: z.nullable(types.string()).optional(), }).transform((v) => { return remap$(v, { "result_set_size": "resultSetSize", "start_position": "startPosition", "end_position": "endPosition", "total_row_count": "totalRowCount", "current_role_id": "currentRoleId", }); }); export function getWorkspaceAssignableRolesResponseFromJSON(jsonString) { return safeParse(jsonString, (x) => GetWorkspaceAssignableRolesResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetWorkspaceAssignableRolesResponse' from JSON`); } //# sourceMappingURL=getworkspaceassignablerolesresponse.js.map