/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: 04218d941f9e */ import * as z from "zod"; import { UploadDeliveryType, UploadDeliveryType$zodSchema, } from "./uploaddeliverytype.js"; /** * Status information returned for in-progress chunked uploads. * * @remarks * Note that fields that are not yet determined or not known at the time of the call are omitted from the response. */ export type NonFinalChunkUploadResponse = { done: boolean; bytes: number; kind?: UploadDeliveryType | undefined; resource_type?: string | undefined; public_id?: string | undefined; }; export const NonFinalChunkUploadResponse$zodSchema: z.ZodType< NonFinalChunkUploadResponse > = z.object({ bytes: z.int().describe("The total number of bytes uploaded so far."), done: z.boolean().describe( "Whether the upload is complete. Will be false for all but the last chunk.", ), kind: UploadDeliveryType$zodSchema.optional().describe( "Delivery types accepted by upload and rename operations.", ), public_id: z.string().optional().describe( "The public ID assigned to the upload. May be omitted in early chunks if it will be auto-generated upon completion.", ), resource_type: z.string().optional().describe( "The type of resource being uploaded (e.g., \"image\", \"video\", \"raw\"). May be omitted in early chunks when using auto detection.", ), }).describe( "Status information returned for in-progress chunked uploads.\nNote that fields that are not yet determined or not known at the time of the call are omitted from the response.\n", );