@docusign/iam-sdk
Version:
Developer-friendly & type-safe Typescript SDK specifically catered to leverage *@docusign/iam-sdk* API.
27 lines • 1.24 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";
import { WorkspaceUserSummary$inboundSchema, } from "./workspaceusersummary.js";
/** @internal */
export const GetWorkspaceUsersResponse$inboundSchema = z.object({
users: types.nullable(z.array(WorkspaceUserSummary$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(),
}).transform((v) => {
return remap$(v, {
"result_set_size": "resultSetSize",
"start_position": "startPosition",
"end_position": "endPosition",
"total_row_count": "totalRowCount",
});
});
export function getWorkspaceUsersResponseFromJSON(jsonString) {
return safeParse(jsonString, (x) => GetWorkspaceUsersResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetWorkspaceUsersResponse' from JSON`);
}
//# sourceMappingURL=getworkspaceusersresponse.js.map