import * as z from "zod"; import { ClosedEnum } from "../../types/enums.js"; export type GeneratePresignedPutMetadata = { /** * 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 GeneratePresignedPutType: { readonly Avatar: "avatar"; readonly ProfileBackground: "profile_background"; readonly CardBackground: "card_background"; readonly CustomEmoji: "custom_emoji"; readonly Composer: "composer"; }; export type GeneratePresignedPutType = ClosedEnum; export type GeneratePresignedPutRequestBody = { fileName: string; /** * File size should be represented in bytes. */ fileSize: number; metadata?: GeneratePresignedPutMetadata | undefined; type: GeneratePresignedPutType; }; /** * A map of headers that must be sent with the PUT request. */ export type SignedHeaders = {}; /** * external upload initialized */ export type GeneratePresignedPutResponseBody = { /** * The path of the temporary file on the external storage service. */ key?: string | undefined; /** * A map of headers that must be sent with the PUT request. */ signedHeaders?: SignedHeaders | undefined; /** * A unique string that identifies the external upload. This must be stored and then sent in the /complete-external-upload endpoint to complete the direct upload. */ uniqueIdentifier?: string | undefined; /** * A presigned PUT URL which must be used to upload the file binary blob to. */ url?: string | undefined; }; /** @internal */ export declare const GeneratePresignedPutMetadata$inboundSchema: z.ZodType; /** @internal */ export type GeneratePresignedPutMetadata$Outbound = { "sha1-checksum"?: string | undefined; }; /** @internal */ export declare const GeneratePresignedPutMetadata$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 GeneratePresignedPutMetadata$ { /** @deprecated use `GeneratePresignedPutMetadata$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `GeneratePresignedPutMetadata$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `GeneratePresignedPutMetadata$Outbound` instead. */ type Outbound = GeneratePresignedPutMetadata$Outbound; } /** @internal */ export declare const GeneratePresignedPutType$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const GeneratePresignedPutType$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 GeneratePresignedPutType$ { /** @deprecated use `GeneratePresignedPutType$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 `GeneratePresignedPutType$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 GeneratePresignedPutRequestBody$inboundSchema: z.ZodType; /** @internal */ export type GeneratePresignedPutRequestBody$Outbound = { file_name: string; file_size: number; metadata?: GeneratePresignedPutMetadata$Outbound | undefined; type: string; }; /** @internal */ export declare const GeneratePresignedPutRequestBody$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 GeneratePresignedPutRequestBody$ { /** @deprecated use `GeneratePresignedPutRequestBody$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `GeneratePresignedPutRequestBody$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `GeneratePresignedPutRequestBody$Outbound` instead. */ type Outbound = GeneratePresignedPutRequestBody$Outbound; } /** @internal */ export declare const SignedHeaders$inboundSchema: z.ZodType; /** @internal */ export type SignedHeaders$Outbound = {}; /** @internal */ export declare const SignedHeaders$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 SignedHeaders$ { /** @deprecated use `SignedHeaders$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `SignedHeaders$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `SignedHeaders$Outbound` instead. */ type Outbound = SignedHeaders$Outbound; } /** @internal */ export declare const GeneratePresignedPutResponseBody$inboundSchema: z.ZodType; /** @internal */ export type GeneratePresignedPutResponseBody$Outbound = { key?: string | undefined; signed_headers?: SignedHeaders$Outbound | undefined; unique_identifier?: string | undefined; url?: string | undefined; }; /** @internal */ export declare const GeneratePresignedPutResponseBody$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 GeneratePresignedPutResponseBody$ { /** @deprecated use `GeneratePresignedPutResponseBody$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `GeneratePresignedPutResponseBody$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `GeneratePresignedPutResponseBody$Outbound` instead. */ type Outbound = GeneratePresignedPutResponseBody$Outbound; } //# sourceMappingURL=generatepresignedput.d.ts.map