/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: a714fed57eaa */ 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 OperationsBundleUploadUrlResponse = { /** * Presigned S3 PUT URL to upload the bundle ZIP to. */ uploadUrl: string; /** * One-time id for this upload. Pass it back verbatim to POST /plugins so the API can validate and snapshot exactly the bytes this call uploaded. */ uploadId: string; /** * Content-Type header the PUT must send (must match the signature). */ contentType: string; }; /** @internal */ export const OperationsBundleUploadUrlResponse$inboundSchema: z.ZodType< OperationsBundleUploadUrlResponse, unknown > = z.object({ uploadUrl: z.string(), uploadId: z.string(), contentType: z.string(), }); export function operationsBundleUploadUrlResponseFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => OperationsBundleUploadUrlResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OperationsBundleUploadUrlResponse' from JSON`, ); }