/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: 84f2b8e41bbd */ 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 { ServiceAccount, ServiceAccount$inboundSchema, } from "./serviceaccount.js"; export type ListServiceAccountsResponse = { items: Array; }; /** @internal */ export const ListServiceAccountsResponse$inboundSchema: z.ZodType< ListServiceAccountsResponse, unknown > = z.object({ items: z.array(ServiceAccount$inboundSchema), }); export function listServiceAccountsResponseFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => ListServiceAccountsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListServiceAccountsResponse' from JSON`, ); }