// This file is auto-generated, don't edit it import * as $dara from '@darabonba/typescript'; export class AiTryOnResponseBodyDataUsageMap extends $dara.Model { /** * @remarks * The number of processed images. * * @example * 1 */ processedImageCount?: number; /** * @remarks * The resolution of the processed images. * * @example * 1K */ resolution?: string; static names(): { [key: string]: string } { return { processedImageCount: 'ProcessedImageCount', resolution: 'Resolution', }; } static types(): { [key: string]: any } { return { processedImageCount: 'number', resolution: 'string', }; } validate() { super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } } export class AiTryOnResponseBodyData extends $dara.Model { /** * @remarks * The height of the result image in pixels. * * @example * 1360 */ imageHeight?: string; /** * @remarks * The URL of the virtual try-on result image. * * @example * https://example.com/virtual-try-on-result.png */ imageUrl?: string; /** * @remarks * The width of the result image in pixels. * * @example * 768 */ imageWidth?: string; /** * @remarks * The usage details. * * @example * {"ProcessedImageCount":1,"Resolution":"1K"} */ usageMap?: AiTryOnResponseBodyDataUsageMap; static names(): { [key: string]: string } { return { imageHeight: 'ImageHeight', imageUrl: 'ImageUrl', imageWidth: 'ImageWidth', usageMap: 'UsageMap', }; } static types(): { [key: string]: any } { return { imageHeight: 'string', imageUrl: 'string', imageWidth: 'string', usageMap: AiTryOnResponseBodyDataUsageMap, }; } validate() { if(this.usageMap && typeof (this.usageMap as any).validate === 'function') { (this.usageMap as any).validate(); } super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } } export class AiTryOnResponseBody extends $dara.Model { /** * @remarks * The error code. This parameter is not returned when the call is successful. * * @example * 200 */ code?: string; /** * @remarks * The returned result struct. */ data?: AiTryOnResponseBodyData; /** * @remarks * The error message. This parameter is not returned when the call is successful. * * @example * OK */ message?: string; /** * @remarks * The request ID, which is used to identify a unique request. * * @example * E1AD60F1-BAC7-546B-9533-E7AD02B16E3F */ requestId?: string; /** * @remarks * Indicates whether the call is successful. Valid values: * - true: The call is successful. * - false: The call fails. * * @example * True */ success?: boolean; static names(): { [key: string]: string } { return { code: 'Code', data: 'Data', message: 'Message', requestId: 'RequestId', success: 'Success', }; } static types(): { [key: string]: any } { return { code: 'string', data: AiTryOnResponseBodyData, message: 'string', requestId: 'string', success: 'boolean', }; } validate() { if(this.data && typeof (this.data as any).validate === 'function') { (this.data as any).validate(); } super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } }