import * as z from "zod"; import { ClosedEnum } from "../../types/enums.js"; export type FileT = { content: ReadableStream | Blob | ArrayBuffer | Uint8Array; fileName: string; }; export declare const Type: { readonly Avatar: "avatar"; readonly ProfileBackground: "profile_background"; readonly CardBackground: "card_background"; readonly CustomEmoji: "custom_emoji"; readonly Composer: "composer"; }; export type Type = ClosedEnum; export type CreateUploadRequestBody = { type: Type; file?: FileT | Blob | undefined; /** * Use this flag to return an id and url */ synchronous?: boolean | undefined; /** * required if uploading an avatar */ userId?: number | undefined; }; /** * file uploaded */ export type CreateUploadResponseBody = { dominantColor?: string | null | undefined; extension: string; filesize: number; height: number; humanFilesize: string; id: number; originalFilename: string; retainHours: string | null; shortPath: string; shortUrl: string; thumbnailHeight: number; thumbnailWidth: number; url: string; width: number; }; /** @internal */ export declare const FileT$inboundSchema: z.ZodType; /** @internal */ export type FileT$Outbound = { content: ReadableStream | Blob | ArrayBuffer | Uint8Array; fileName: string; }; /** @internal */ export declare const FileT$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 FileT$ { /** @deprecated use `FileT$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `FileT$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `FileT$Outbound` instead. */ type Outbound = FileT$Outbound; } /** @internal */ export declare const Type$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const Type$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 Type$ { /** @deprecated use `Type$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 `Type$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 CreateUploadRequestBody$inboundSchema: z.ZodType; /** @internal */ export type CreateUploadRequestBody$Outbound = { type: string; file?: FileT$Outbound | Blob | undefined; synchronous?: boolean | undefined; user_id?: number | undefined; }; /** @internal */ export declare const CreateUploadRequestBody$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 CreateUploadRequestBody$ { /** @deprecated use `CreateUploadRequestBody$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `CreateUploadRequestBody$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `CreateUploadRequestBody$Outbound` instead. */ type Outbound = CreateUploadRequestBody$Outbound; } /** @internal */ export declare const CreateUploadResponseBody$inboundSchema: z.ZodType; /** @internal */ export type CreateUploadResponseBody$Outbound = { dominant_color?: string | null | undefined; extension: string; filesize: number; height: number; human_filesize: string; id: number; original_filename: string; retain_hours: string | null; short_path: string; short_url: string; thumbnail_height: number; thumbnail_width: number; url: string; width: number; }; /** @internal */ export declare const CreateUploadResponseBody$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 CreateUploadResponseBody$ { /** @deprecated use `CreateUploadResponseBody$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `CreateUploadResponseBody$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `CreateUploadResponseBody$Outbound` instead. */ type Outbound = CreateUploadResponseBody$Outbound; } //# sourceMappingURL=createupload.d.ts.map