import * as z from "zod/v3"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import * as models from "../index.js"; export declare const PostMultipartServerList: readonly ["https://upload.wistia.com"]; export type FileT = { fileName: string; content: ReadableStream | Blob | ArrayBuffer | Uint8Array; }; export type PostMultipartRequest = { /** * The hashed id of the project to upload media into. */ projectId?: string | undefined; /** * A display name to use for the media in Wistia. */ name?: string | undefined; /** * A description to use for the media in Wistia. */ description?: string | undefined; /** * A Wistia contact id. */ contactId?: number | undefined; /** * A 64 character hex string. This parameter can be found on your API access page OR can be the token you received from authenticating via Oauth2. Note this approach is legacy and discouraged. We recommend using Bearer Token authentication. * * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. */ accessToken?: string | undefined; /** * The media file, multipart-form encoded into the request body. */ file: FileT | Blob; }; export type PostMultipartError = { code?: string | undefined; detail?: string | undefined; }; /** * Response after successfully uploading or importing media */ export type PostMultipartResponse = { /** * A unique numeric identifier for the media within the system. */ id?: number | undefined; /** * The display name of the media. */ name?: string | undefined; /** * A string representing what type of media this is. */ type?: string | undefined; /** * The date when the media was originally uploaded. */ created?: Date | undefined; /** * The date when the media was last changed. */ updated?: Date | undefined; /** * Specifies the length (in seconds) for audio and video files. */ duration?: number | undefined; /** * A unique alphanumeric identifier for this media. */ hashedId?: string | undefined; /** * A floating point value between 0 and 1 that indicates the progress of the processing for this file. */ progress?: number | undefined; thumbnail?: models.Thumbnail | undefined; }; /** @internal */ export type FileT$Outbound = { fileName: string; content: ReadableStream | Blob | ArrayBuffer | Uint8Array; }; /** @internal */ export declare const FileT$outboundSchema: z.ZodType; export declare function fileToJSON(fileT: FileT): string; /** @internal */ export type PostMultipartRequest$Outbound = { project_id?: string | undefined; name?: string | undefined; description?: string | undefined; contact_id?: number | undefined; access_token?: string | undefined; file: FileT$Outbound | Blob; }; /** @internal */ export declare const PostMultipartRequest$outboundSchema: z.ZodType; export declare function postMultipartRequestToJSON(postMultipartRequest: PostMultipartRequest): string; /** @internal */ export declare const PostMultipartError$inboundSchema: z.ZodType; export declare function postMultipartErrorFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const PostMultipartResponse$inboundSchema: z.ZodType; export declare function postMultipartResponseFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=postmultipart.d.ts.map