// This file is auto-generated, don't edit it import * as $dara from '@darabonba/typescript'; export class TextCorrectResponseBodyData extends $dara.Model { /** * @remarks * The corrected text. * * @example * Empfehlung */ correctedText?: string; /** * @remarks * The usage information, including the number of input characters. * * @example * {"InputCharacterCount":9} */ usageMap?: { [key: string]: number }; static names(): { [key: string]: string } { return { correctedText: 'CorrectedText', usageMap: 'UsageMap', }; } static types(): { [key: string]: any } { return { correctedText: 'string', usageMap: { 'type': 'map', 'keyType': 'string', 'valueType': 'number' }, }; } validate() { if(this.usageMap) { $dara.Model.validateMap(this.usageMap); } super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } } export class TextCorrectResponseBody extends $dara.Model { /** * @remarks * The response code. The value "success" is returned if the call is successful. * * @example * success */ code?: string; /** * @remarks * The intelligent correction result data. */ data?: TextCorrectResponseBodyData; /** * @remarks * The error message. The value "Success" is returned if the call is successful. If an error occurs, a specific error message is returned, such as "The parameters contain sensitive information. Try other input." * * @example * Success */ message?: string; /** * @remarks * The request ID, which uniquely identifies the request. * * @example * 32882AD0-50D1-1D90-A221-3987325EC03E */ requestId?: string; /** * @remarks * Indicates whether the call is successful. A value of true indicates success. A value of false indicates failure. * * @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: TextCorrectResponseBodyData, 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); } }