import * as z from "zod"; import { ClosedEnum } from "../../types/enums.js"; export type Metadata = { /** * The SHA1 checksum of the upload binary blob. Optionally be provided and serves as an additional security check when later processing the file in complete-external-upload endpoint. */ sha1Checksum?: string | undefined; }; export declare const UploadType: { readonly Avatar: "avatar"; readonly ProfileBackground: "profile_background"; readonly CardBackground: "card_background"; readonly CustomEmoji: "custom_emoji"; readonly Composer: "composer"; }; export type UploadType = ClosedEnum; export type CreateMultipartUploadRequestBody = { fileName: string; /** * File size should be represented in bytes. */ fileSize: number; metadata?: Metadata | undefined; uploadType: UploadType; }; /** * external upload initialized */ export type CreateMultipartUploadResponseBody = { /** * The identifier of the multipart upload in the external storage provider. This is the multipart upload_id in AWS S3. */ externalUploadIdentifier: string; /** * The path of the temporary file on the external storage service. */ key: string; /** * A unique string that identifies the external upload. This must be stored and then sent in the /complete-multipart and /batch-presign-multipart-parts endpoints. */ uniqueIdentifier: string; }; /** @internal */ export declare const Metadata$inboundSchema: z.ZodType; /** @internal */ export type Metadata$Outbound = { "sha1-checksum"?: string | undefined; }; /** @internal */ export declare const Metadata$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace Metadata$ { /** @deprecated use `Metadata$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `Metadata$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `Metadata$Outbound` instead. */ type Outbound = Metadata$Outbound; } /** @internal */ export declare const UploadType$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const UploadType$outboundSchema: z.ZodNativeEnum; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace UploadType$ { /** @deprecated use `UploadType$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum<{ readonly Avatar: "avatar"; readonly ProfileBackground: "profile_background"; readonly CardBackground: "card_background"; readonly CustomEmoji: "custom_emoji"; readonly Composer: "composer"; }>; /** @deprecated use `UploadType$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum<{ readonly Avatar: "avatar"; readonly ProfileBackground: "profile_background"; readonly CardBackground: "card_background"; readonly CustomEmoji: "custom_emoji"; readonly Composer: "composer"; }>; } /** @internal */ export declare const CreateMultipartUploadRequestBody$inboundSchema: z.ZodType; /** @internal */ export type CreateMultipartUploadRequestBody$Outbound = { file_name: string; file_size: number; metadata?: Metadata$Outbound | undefined; upload_type: string; }; /** @internal */ export declare const CreateMultipartUploadRequestBody$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace CreateMultipartUploadRequestBody$ { /** @deprecated use `CreateMultipartUploadRequestBody$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `CreateMultipartUploadRequestBody$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `CreateMultipartUploadRequestBody$Outbound` instead. */ type Outbound = CreateMultipartUploadRequestBody$Outbound; } /** @internal */ export declare const CreateMultipartUploadResponseBody$inboundSchema: z.ZodType; /** @internal */ export type CreateMultipartUploadResponseBody$Outbound = { external_upload_identifier: string; key: string; unique_identifier: string; }; /** @internal */ export declare const CreateMultipartUploadResponseBody$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace CreateMultipartUploadResponseBody$ { /** @deprecated use `CreateMultipartUploadResponseBody$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `CreateMultipartUploadResponseBody$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `CreateMultipartUploadResponseBody$Outbound` instead. */ type Outbound = CreateMultipartUploadResponseBody$Outbound; } //# sourceMappingURL=createmultipartupload.d.ts.map