/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: 96574ab371fc */ import * as z from "zod/v4"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { AssignableServiceAccountRole, AssignableServiceAccountRole$inboundSchema, } from "./assignableserviceaccountrole.js"; export type ListAssignableServiceAccountRolesResponse = { items: Array; }; /** @internal */ export const ListAssignableServiceAccountRolesResponse$inboundSchema: z.ZodType< ListAssignableServiceAccountRolesResponse, unknown > = z.object({ items: z.array(AssignableServiceAccountRole$inboundSchema), }); export function listAssignableServiceAccountRolesResponseFromJSON( jsonString: string, ): SafeParseResult< ListAssignableServiceAccountRolesResponse, SDKValidationError > { return safeParse( jsonString, (x) => ListAssignableServiceAccountRolesResponse$inboundSchema.parse( JSON.parse(x), ), `Failed to parse 'ListAssignableServiceAccountRolesResponse' from JSON`, ); }