/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: c8679c2d8e4b */ 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"; export type OperationsBundleDownload = { plugin: string; pluginVersion: string; /** * Presigned URL to GET the bundle ZIP from. Short-lived. */ url: string; }; /** @internal */ export const OperationsBundleDownload$inboundSchema: z.ZodType< OperationsBundleDownload, unknown > = z.object({ plugin: z.string(), pluginVersion: z.string(), url: z.string(), }); export function operationsBundleDownloadFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => OperationsBundleDownload$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OperationsBundleDownload' from JSON`, ); }