/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: 1110dc753f9d */ 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 { UserOrganization, UserOrganization$inboundSchema, } from "./userorganization.js"; export type ListOrganizationsResponse = { /** * The organizations the authenticated user is a member of. */ organizations: Array; }; /** @internal */ export const ListOrganizationsResponse$inboundSchema: z.ZodType< ListOrganizationsResponse, unknown > = z.object({ organizations: z.array(UserOrganization$inboundSchema), }); export function listOrganizationsResponseFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => ListOrganizationsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListOrganizationsResponse' from JSON`, ); }