/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v4-mini"; import { safeParse } from "../lib/schemas.js"; import { Result as SafeParseResult } from "../types/fp.js"; import * as types from "../types/primitives.js"; import { SDKValidationError } from "./errors/sdk-validation-error.js"; import { OperationCatalogEntry, OperationCatalogEntry$inboundSchema, } from "./operation-catalog-entry.js"; export type OperationListResponse = { object: "list"; data: Array; }; /** @internal */ export const OperationListResponse$inboundSchema: z.ZodMiniType< OperationListResponse, unknown > = z.object({ object: types.literal("list"), data: z.array(OperationCatalogEntry$inboundSchema), }); export function operationListResponseFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => OperationListResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OperationListResponse' from JSON`, ); }