mirror of
https://github.com/LukeHagar/discoursejs.git
synced 2025-12-11 04:19:48 +00:00
111 lines
2.5 KiB
TypeScript
111 lines
2.5 KiB
TypeScript
/*
|
|
* Code generated by Speakeasy (https://speakeasyapi.com). DO NOT EDIT.
|
|
*/
|
|
|
|
import { SpeakeasyBase, SpeakeasyMetadata } from "../../../internal/utils";
|
|
import { AxiosResponse } from "axios";
|
|
import { Expose } from "class-transformer";
|
|
|
|
export class CompleteMultipartRequestBody extends SpeakeasyBase {
|
|
/**
|
|
* All of the part numbers and their corresponding ETags that have been uploaded must be provided.
|
|
*/
|
|
@SpeakeasyMetadata()
|
|
@Expose({ name: "parts" })
|
|
parts: any[];
|
|
|
|
/**
|
|
* The unique identifier returned in the original /create-multipart request.
|
|
*/
|
|
@SpeakeasyMetadata()
|
|
@Expose({ name: "unique_identifier" })
|
|
uniqueIdentifier: string;
|
|
}
|
|
|
|
/**
|
|
* external upload initialized
|
|
*/
|
|
export class CompleteMultipartResponseBody extends SpeakeasyBase {
|
|
@SpeakeasyMetadata()
|
|
@Expose({ name: "dominant_color" })
|
|
dominantColor?: string;
|
|
|
|
@SpeakeasyMetadata()
|
|
@Expose({ name: "extension" })
|
|
extension: string;
|
|
|
|
@SpeakeasyMetadata()
|
|
@Expose({ name: "filesize" })
|
|
filesize: number;
|
|
|
|
@SpeakeasyMetadata()
|
|
@Expose({ name: "height" })
|
|
height: number;
|
|
|
|
@SpeakeasyMetadata()
|
|
@Expose({ name: "human_filesize" })
|
|
humanFilesize: string;
|
|
|
|
@SpeakeasyMetadata()
|
|
@Expose({ name: "id" })
|
|
id: number;
|
|
|
|
@SpeakeasyMetadata()
|
|
@Expose({ name: "original_filename" })
|
|
originalFilename: string;
|
|
|
|
@SpeakeasyMetadata()
|
|
@Expose({ name: "retain_hours" })
|
|
retainHours: string;
|
|
|
|
@SpeakeasyMetadata()
|
|
@Expose({ name: "short_path" })
|
|
shortPath: string;
|
|
|
|
@SpeakeasyMetadata()
|
|
@Expose({ name: "short_url" })
|
|
shortUrl: string;
|
|
|
|
@SpeakeasyMetadata()
|
|
@Expose({ name: "thumbnail_height" })
|
|
thumbnailHeight: number;
|
|
|
|
@SpeakeasyMetadata()
|
|
@Expose({ name: "thumbnail_width" })
|
|
thumbnailWidth: number;
|
|
|
|
@SpeakeasyMetadata()
|
|
@Expose({ name: "url" })
|
|
url: string;
|
|
|
|
@SpeakeasyMetadata()
|
|
@Expose({ name: "width" })
|
|
width: number;
|
|
}
|
|
|
|
export class CompleteMultipartResponse extends SpeakeasyBase {
|
|
/**
|
|
* HTTP response content type for this operation
|
|
*/
|
|
@SpeakeasyMetadata()
|
|
contentType: string;
|
|
|
|
/**
|
|
* HTTP response status code for this operation
|
|
*/
|
|
@SpeakeasyMetadata()
|
|
statusCode: number;
|
|
|
|
/**
|
|
* Raw HTTP response; suitable for custom response parsing
|
|
*/
|
|
@SpeakeasyMetadata()
|
|
rawResponse: AxiosResponse;
|
|
|
|
/**
|
|
* external upload initialized
|
|
*/
|
|
@SpeakeasyMetadata()
|
|
object?: CompleteMultipartResponseBody;
|
|
}
|