@alicloud/aidge20260428 1.0.0 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.d.ts +257 -139
- package/dist/client.js +333 -143
- package/dist/client.js.map +1 -1
- package/dist/models/DocumentTranslateRequest.d.ts +3 -3
- package/dist/models/DocumentTranslateResponseBody.d.ts +3 -5
- package/dist/models/DocumentTranslateResponseBody.js.map +1 -1
- package/dist/models/ImageMattingRequest.d.ts +7 -7
- package/dist/models/ImageMattingResponseBody.d.ts +2 -2
- package/dist/models/ImageRemovalProRequest.d.ts +35 -0
- package/dist/models/ImageRemovalProRequest.js +60 -0
- package/dist/models/ImageRemovalProRequest.js.map +1 -0
- package/dist/models/ImageRemovalProResponse.d.ts +19 -0
- package/dist/models/ImageRemovalProResponse.js +69 -0
- package/dist/models/ImageRemovalProResponse.js.map +1 -0
- package/dist/models/ImageRemovalProResponseBody.d.ts +87 -0
- package/dist/models/ImageRemovalProResponseBody.js +95 -0
- package/dist/models/ImageRemovalProResponseBody.js.map +1 -0
- package/dist/models/ImageRemoveRequest.d.ts +15 -5
- package/dist/models/ImageRemoveRequest.js.map +1 -1
- package/dist/models/ImageRemoveResponseBody.d.ts +8 -8
- package/dist/models/ImageRemoveShrinkRequest.d.ts +15 -5
- package/dist/models/ImageRemoveShrinkRequest.js.map +1 -1
- package/dist/models/ImageTranslationProRequest.d.ts +9 -12
- package/dist/models/ImageTranslationProRequest.js +2 -2
- package/dist/models/ImageTranslationProRequest.js.map +1 -1
- package/dist/models/ImageTranslationProResponseBody.d.ts +19 -19
- package/dist/models/MaterialInspectionRequest.d.ts +55 -0
- package/dist/models/MaterialInspectionRequest.js +66 -0
- package/dist/models/MaterialInspectionRequest.js.map +1 -0
- package/dist/models/MaterialInspectionResponse.d.ts +19 -0
- package/dist/models/MaterialInspectionResponse.js +69 -0
- package/dist/models/MaterialInspectionResponse.js.map +1 -0
- package/dist/models/MaterialInspectionResponseBody.d.ts +154 -0
- package/dist/models/MaterialInspectionResponseBody.js +147 -0
- package/dist/models/MaterialInspectionResponseBody.js.map +1 -0
- package/dist/models/TextTranslateRequest.d.ts +15 -5
- package/dist/models/TextTranslateRequest.js +4 -0
- package/dist/models/TextTranslateRequest.js.map +1 -1
- package/dist/models/TextTranslateResponseBody.d.ts +7 -7
- package/dist/models/TextTranslateShrinkRequest.d.ts +15 -5
- package/dist/models/TextTranslateShrinkRequest.js +4 -0
- package/dist/models/TextTranslateShrinkRequest.js.map +1 -1
- package/dist/models/model.d.ts +10 -0
- package/dist/models/model.js +23 -2
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +347 -144
- package/src/models/DocumentTranslateRequest.ts +3 -3
- package/src/models/DocumentTranslateResponseBody.ts +3 -5
- package/src/models/ImageMattingRequest.ts +7 -7
- package/src/models/ImageMattingResponseBody.ts +2 -2
- package/src/models/ImageRemovalProRequest.ts +50 -0
- package/src/models/ImageRemovalProResponse.ts +40 -0
- package/src/models/ImageRemovalProResponseBody.ts +126 -0
- package/src/models/ImageRemoveRequest.ts +15 -5
- package/src/models/ImageRemoveResponseBody.ts +8 -8
- package/src/models/ImageRemoveShrinkRequest.ts +15 -5
- package/src/models/ImageTranslationProRequest.ts +11 -14
- package/src/models/ImageTranslationProResponseBody.ts +19 -19
- package/src/models/MaterialInspectionRequest.ts +76 -0
- package/src/models/MaterialInspectionResponse.ts +40 -0
- package/src/models/MaterialInspectionResponseBody.ts +227 -0
- package/src/models/TextTranslateRequest.ts +19 -5
- package/src/models/TextTranslateResponseBody.ts +7 -7
- package/src/models/TextTranslateShrinkRequest.ts +19 -5
- package/src/models/model.ts +10 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as $dara from '@darabonba/typescript';
|
|
2
|
+
import { MaterialInspectionResponseBody } from "./MaterialInspectionResponseBody";
|
|
3
|
+
export declare class MaterialInspectionResponse extends $dara.Model {
|
|
4
|
+
headers?: {
|
|
5
|
+
[key: string]: string;
|
|
6
|
+
};
|
|
7
|
+
statusCode?: number;
|
|
8
|
+
body?: MaterialInspectionResponseBody;
|
|
9
|
+
static names(): {
|
|
10
|
+
[key: string]: string;
|
|
11
|
+
};
|
|
12
|
+
static types(): {
|
|
13
|
+
[key: string]: any;
|
|
14
|
+
};
|
|
15
|
+
validate(): void;
|
|
16
|
+
constructor(map?: {
|
|
17
|
+
[key: string]: any;
|
|
18
|
+
});
|
|
19
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.MaterialInspectionResponse = void 0;
|
|
37
|
+
// This file is auto-generated, don't edit it
|
|
38
|
+
const $dara = __importStar(require("@darabonba/typescript"));
|
|
39
|
+
const MaterialInspectionResponseBody_1 = require("./MaterialInspectionResponseBody");
|
|
40
|
+
class MaterialInspectionResponse extends $dara.Model {
|
|
41
|
+
static names() {
|
|
42
|
+
return {
|
|
43
|
+
headers: 'headers',
|
|
44
|
+
statusCode: 'statusCode',
|
|
45
|
+
body: 'body',
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
static types() {
|
|
49
|
+
return {
|
|
50
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
51
|
+
statusCode: 'number',
|
|
52
|
+
body: MaterialInspectionResponseBody_1.MaterialInspectionResponseBody,
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
validate() {
|
|
56
|
+
if (this.headers) {
|
|
57
|
+
$dara.Model.validateMap(this.headers);
|
|
58
|
+
}
|
|
59
|
+
if (this.body && typeof this.body.validate === 'function') {
|
|
60
|
+
this.body.validate();
|
|
61
|
+
}
|
|
62
|
+
super.validate();
|
|
63
|
+
}
|
|
64
|
+
constructor(map) {
|
|
65
|
+
super(map);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
exports.MaterialInspectionResponse = MaterialInspectionResponse;
|
|
69
|
+
//# sourceMappingURL=MaterialInspectionResponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MaterialInspectionResponse.js","sourceRoot":"","sources":["../../src/models/MaterialInspectionResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,qFAAkF;AAGlF,MAAa,0BAA2B,SAAQ,KAAK,CAAC,KAAK;IAIzD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,+DAA8B;SACrC,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,gEAiCC"}
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
import * as $dara from '@darabonba/typescript';
|
|
2
|
+
export declare class MaterialInspectionResponseBodyDataResultSteps extends $dara.Model {
|
|
3
|
+
/**
|
|
4
|
+
* @remarks
|
|
5
|
+
* The step result. Valid values: PASS, FAIL, and UNABLE_TO_JUDGE.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* PASS
|
|
9
|
+
*/
|
|
10
|
+
result?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @remarks
|
|
13
|
+
* The step ID.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* XXX
|
|
17
|
+
*/
|
|
18
|
+
stepId?: string;
|
|
19
|
+
static names(): {
|
|
20
|
+
[key: string]: string;
|
|
21
|
+
};
|
|
22
|
+
static types(): {
|
|
23
|
+
[key: string]: any;
|
|
24
|
+
};
|
|
25
|
+
validate(): void;
|
|
26
|
+
constructor(map?: {
|
|
27
|
+
[key: string]: any;
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
export declare class MaterialInspectionResponseBodyDataResult extends $dara.Model {
|
|
31
|
+
/**
|
|
32
|
+
* @remarks
|
|
33
|
+
* The natural language summary, such as "1 rule: 1 PASS, all inspection items are compliant."
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* 1项规则:1 PASS,所有检测项合规
|
|
37
|
+
*/
|
|
38
|
+
evidence?: string;
|
|
39
|
+
/**
|
|
40
|
+
* @remarks
|
|
41
|
+
* The overall result. Valid values: PASS and FAIL.
|
|
42
|
+
*
|
|
43
|
+
* @example
|
|
44
|
+
* PASS
|
|
45
|
+
*/
|
|
46
|
+
overallResult?: string;
|
|
47
|
+
/**
|
|
48
|
+
* @remarks
|
|
49
|
+
* The request ID returned as-is from the input.
|
|
50
|
+
*
|
|
51
|
+
* @example
|
|
52
|
+
* req-001
|
|
53
|
+
*/
|
|
54
|
+
reqId?: string;
|
|
55
|
+
/**
|
|
56
|
+
* @remarks
|
|
57
|
+
* The list of detection steps.
|
|
58
|
+
*/
|
|
59
|
+
steps?: MaterialInspectionResponseBodyDataResultSteps[];
|
|
60
|
+
/**
|
|
61
|
+
* @remarks
|
|
62
|
+
* The detection type.
|
|
63
|
+
*
|
|
64
|
+
* @example
|
|
65
|
+
* Stamp
|
|
66
|
+
*/
|
|
67
|
+
type?: string;
|
|
68
|
+
static names(): {
|
|
69
|
+
[key: string]: string;
|
|
70
|
+
};
|
|
71
|
+
static types(): {
|
|
72
|
+
[key: string]: any;
|
|
73
|
+
};
|
|
74
|
+
validate(): void;
|
|
75
|
+
constructor(map?: {
|
|
76
|
+
[key: string]: any;
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
export declare class MaterialInspectionResponseBodyData extends $dara.Model {
|
|
80
|
+
/**
|
|
81
|
+
* @remarks
|
|
82
|
+
* The inspection result.
|
|
83
|
+
*/
|
|
84
|
+
result?: MaterialInspectionResponseBodyDataResult;
|
|
85
|
+
/**
|
|
86
|
+
* @remarks
|
|
87
|
+
* The usage information. The key is the usage metric name and the value is the count.
|
|
88
|
+
*
|
|
89
|
+
* @example
|
|
90
|
+
* {"ProcessingCount":1}
|
|
91
|
+
*/
|
|
92
|
+
usageMap?: {
|
|
93
|
+
[key: string]: number;
|
|
94
|
+
};
|
|
95
|
+
static names(): {
|
|
96
|
+
[key: string]: string;
|
|
97
|
+
};
|
|
98
|
+
static types(): {
|
|
99
|
+
[key: string]: any;
|
|
100
|
+
};
|
|
101
|
+
validate(): void;
|
|
102
|
+
constructor(map?: {
|
|
103
|
+
[key: string]: any;
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
export declare class MaterialInspectionResponseBody extends $dara.Model {
|
|
107
|
+
/**
|
|
108
|
+
* @remarks
|
|
109
|
+
* The error code. This parameter is not returned for successful calls.
|
|
110
|
+
*
|
|
111
|
+
* @example
|
|
112
|
+
* 200
|
|
113
|
+
*/
|
|
114
|
+
code?: string;
|
|
115
|
+
/**
|
|
116
|
+
* @remarks
|
|
117
|
+
* The material display detection result.
|
|
118
|
+
*/
|
|
119
|
+
data?: MaterialInspectionResponseBodyData;
|
|
120
|
+
/**
|
|
121
|
+
* @remarks
|
|
122
|
+
* The error message. This parameter is not returned for successful calls.
|
|
123
|
+
*
|
|
124
|
+
* @example
|
|
125
|
+
* OK
|
|
126
|
+
*/
|
|
127
|
+
message?: string;
|
|
128
|
+
/**
|
|
129
|
+
* @remarks
|
|
130
|
+
* Id of the request
|
|
131
|
+
*
|
|
132
|
+
* @example
|
|
133
|
+
* E1AD60F1-BAC7-546B-9533-E7AD02B16E3F
|
|
134
|
+
*/
|
|
135
|
+
requestId?: string;
|
|
136
|
+
/**
|
|
137
|
+
* @remarks
|
|
138
|
+
* Indicates whether the call was successful. Valid values: true: The call was successful. false: The call failed.
|
|
139
|
+
*
|
|
140
|
+
* @example
|
|
141
|
+
* True
|
|
142
|
+
*/
|
|
143
|
+
success?: boolean;
|
|
144
|
+
static names(): {
|
|
145
|
+
[key: string]: string;
|
|
146
|
+
};
|
|
147
|
+
static types(): {
|
|
148
|
+
[key: string]: any;
|
|
149
|
+
};
|
|
150
|
+
validate(): void;
|
|
151
|
+
constructor(map?: {
|
|
152
|
+
[key: string]: any;
|
|
153
|
+
});
|
|
154
|
+
}
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.MaterialInspectionResponseBody = exports.MaterialInspectionResponseBodyData = exports.MaterialInspectionResponseBodyDataResult = exports.MaterialInspectionResponseBodyDataResultSteps = void 0;
|
|
37
|
+
// This file is auto-generated, don't edit it
|
|
38
|
+
const $dara = __importStar(require("@darabonba/typescript"));
|
|
39
|
+
class MaterialInspectionResponseBodyDataResultSteps extends $dara.Model {
|
|
40
|
+
static names() {
|
|
41
|
+
return {
|
|
42
|
+
result: 'Result',
|
|
43
|
+
stepId: 'StepId',
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
static types() {
|
|
47
|
+
return {
|
|
48
|
+
result: 'string',
|
|
49
|
+
stepId: 'string',
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
validate() {
|
|
53
|
+
super.validate();
|
|
54
|
+
}
|
|
55
|
+
constructor(map) {
|
|
56
|
+
super(map);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
exports.MaterialInspectionResponseBodyDataResultSteps = MaterialInspectionResponseBodyDataResultSteps;
|
|
60
|
+
class MaterialInspectionResponseBodyDataResult extends $dara.Model {
|
|
61
|
+
static names() {
|
|
62
|
+
return {
|
|
63
|
+
evidence: 'Evidence',
|
|
64
|
+
overallResult: 'OverallResult',
|
|
65
|
+
reqId: 'ReqId',
|
|
66
|
+
steps: 'Steps',
|
|
67
|
+
type: 'Type',
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
static types() {
|
|
71
|
+
return {
|
|
72
|
+
evidence: 'string',
|
|
73
|
+
overallResult: 'string',
|
|
74
|
+
reqId: 'string',
|
|
75
|
+
steps: { 'type': 'array', 'itemType': MaterialInspectionResponseBodyDataResultSteps },
|
|
76
|
+
type: 'string',
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
validate() {
|
|
80
|
+
if (Array.isArray(this.steps)) {
|
|
81
|
+
$dara.Model.validateArray(this.steps);
|
|
82
|
+
}
|
|
83
|
+
super.validate();
|
|
84
|
+
}
|
|
85
|
+
constructor(map) {
|
|
86
|
+
super(map);
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
exports.MaterialInspectionResponseBodyDataResult = MaterialInspectionResponseBodyDataResult;
|
|
90
|
+
class MaterialInspectionResponseBodyData extends $dara.Model {
|
|
91
|
+
static names() {
|
|
92
|
+
return {
|
|
93
|
+
result: 'Result',
|
|
94
|
+
usageMap: 'UsageMap',
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
static types() {
|
|
98
|
+
return {
|
|
99
|
+
result: MaterialInspectionResponseBodyDataResult,
|
|
100
|
+
usageMap: { 'type': 'map', 'keyType': 'string', 'valueType': 'number' },
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
validate() {
|
|
104
|
+
if (this.result && typeof this.result.validate === 'function') {
|
|
105
|
+
this.result.validate();
|
|
106
|
+
}
|
|
107
|
+
if (this.usageMap) {
|
|
108
|
+
$dara.Model.validateMap(this.usageMap);
|
|
109
|
+
}
|
|
110
|
+
super.validate();
|
|
111
|
+
}
|
|
112
|
+
constructor(map) {
|
|
113
|
+
super(map);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
exports.MaterialInspectionResponseBodyData = MaterialInspectionResponseBodyData;
|
|
117
|
+
class MaterialInspectionResponseBody extends $dara.Model {
|
|
118
|
+
static names() {
|
|
119
|
+
return {
|
|
120
|
+
code: 'Code',
|
|
121
|
+
data: 'Data',
|
|
122
|
+
message: 'Message',
|
|
123
|
+
requestId: 'RequestId',
|
|
124
|
+
success: 'Success',
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
static types() {
|
|
128
|
+
return {
|
|
129
|
+
code: 'string',
|
|
130
|
+
data: MaterialInspectionResponseBodyData,
|
|
131
|
+
message: 'string',
|
|
132
|
+
requestId: 'string',
|
|
133
|
+
success: 'boolean',
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
validate() {
|
|
137
|
+
if (this.data && typeof this.data.validate === 'function') {
|
|
138
|
+
this.data.validate();
|
|
139
|
+
}
|
|
140
|
+
super.validate();
|
|
141
|
+
}
|
|
142
|
+
constructor(map) {
|
|
143
|
+
super(map);
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
exports.MaterialInspectionResponseBody = MaterialInspectionResponseBody;
|
|
147
|
+
//# sourceMappingURL=MaterialInspectionResponseBody.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MaterialInspectionResponseBody.js","sourceRoot":"","sources":["../../src/models/MaterialInspectionResponseBody.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
import * as $dara from '@darabonba/typescript';
|
|
2
2
|
export declare class TextTranslateRequest extends $dara.Model {
|
|
3
|
+
/**
|
|
4
|
+
* @example
|
|
5
|
+
* MyCompany-Chat
|
|
6
|
+
*/
|
|
7
|
+
bizName?: string;
|
|
3
8
|
/**
|
|
4
9
|
* @remarks
|
|
5
|
-
* The format type of the source text.
|
|
10
|
+
* The format type of the source text. This parameter is optional. Valid values: text (plain text format) and html (web page format that preserves HTML tags).
|
|
6
11
|
*
|
|
7
12
|
* @example
|
|
8
13
|
* text
|
|
@@ -10,7 +15,7 @@ export declare class TextTranslateRequest extends $dara.Model {
|
|
|
10
15
|
formatType?: string;
|
|
11
16
|
/**
|
|
12
17
|
* @remarks
|
|
13
|
-
* The intervention glossary ID.
|
|
18
|
+
* The intervention glossary ID. This parameter is optional. The glossary must be created separately in the console and its ID provided here. If the glossary ID is empty, the translation result is not modified.
|
|
14
19
|
*
|
|
15
20
|
* @example
|
|
16
21
|
* glossary_1
|
|
@@ -18,7 +23,7 @@ export declare class TextTranslateRequest extends $dara.Model {
|
|
|
18
23
|
glossary?: string;
|
|
19
24
|
/**
|
|
20
25
|
* @remarks
|
|
21
|
-
* The source language code.
|
|
26
|
+
* The source language code. This parameter is optional. If not specified, the language is automatically detected. You can pass auto for language detection.
|
|
22
27
|
*
|
|
23
28
|
* @example
|
|
24
29
|
* auto
|
|
@@ -26,7 +31,7 @@ export declare class TextTranslateRequest extends $dara.Model {
|
|
|
26
31
|
sourceLanguage?: string;
|
|
27
32
|
/**
|
|
28
33
|
* @remarks
|
|
29
|
-
* The list of texts to translate.
|
|
34
|
+
* The list of texts to translate. This parameter is required. The total character length cannot exceed 50,000, and the list length cannot exceed 50.
|
|
30
35
|
*
|
|
31
36
|
* This parameter is required.
|
|
32
37
|
*
|
|
@@ -36,7 +41,7 @@ export declare class TextTranslateRequest extends $dara.Model {
|
|
|
36
41
|
sourceTextList?: string[];
|
|
37
42
|
/**
|
|
38
43
|
* @remarks
|
|
39
|
-
* The target language code.
|
|
44
|
+
* The target language code. This parameter is required. More than 100 language directions are supported. For details, refer to the supported language directions list.
|
|
40
45
|
*
|
|
41
46
|
* This parameter is required.
|
|
42
47
|
*
|
|
@@ -44,6 +49,11 @@ export declare class TextTranslateRequest extends $dara.Model {
|
|
|
44
49
|
* ko
|
|
45
50
|
*/
|
|
46
51
|
targetLanguage?: string;
|
|
52
|
+
/**
|
|
53
|
+
* @example
|
|
54
|
+
* e-commerce-title
|
|
55
|
+
*/
|
|
56
|
+
translateScene?: string;
|
|
47
57
|
static names(): {
|
|
48
58
|
[key: string]: string;
|
|
49
59
|
};
|
|
@@ -39,20 +39,24 @@ const $dara = __importStar(require("@darabonba/typescript"));
|
|
|
39
39
|
class TextTranslateRequest extends $dara.Model {
|
|
40
40
|
static names() {
|
|
41
41
|
return {
|
|
42
|
+
bizName: 'BizName',
|
|
42
43
|
formatType: 'FormatType',
|
|
43
44
|
glossary: 'Glossary',
|
|
44
45
|
sourceLanguage: 'SourceLanguage',
|
|
45
46
|
sourceTextList: 'SourceTextList',
|
|
46
47
|
targetLanguage: 'TargetLanguage',
|
|
48
|
+
translateScene: 'TranslateScene',
|
|
47
49
|
};
|
|
48
50
|
}
|
|
49
51
|
static types() {
|
|
50
52
|
return {
|
|
53
|
+
bizName: 'string',
|
|
51
54
|
formatType: 'string',
|
|
52
55
|
glossary: 'string',
|
|
53
56
|
sourceLanguage: 'string',
|
|
54
57
|
sourceTextList: { 'type': 'array', 'itemType': 'string' },
|
|
55
58
|
targetLanguage: 'string',
|
|
59
|
+
translateScene: 'string',
|
|
56
60
|
};
|
|
57
61
|
}
|
|
58
62
|
validate() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextTranslateRequest.js","sourceRoot":"","sources":["../../src/models/TextTranslateRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,oBAAqB,SAAQ,KAAK,CAAC,KAAK;
|
|
1
|
+
{"version":3,"file":"TextTranslateRequest.js","sourceRoot":"","sources":["../../src/models/TextTranslateRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,oBAAqB,SAAQ,KAAK,CAAC,KAAK;IAuDnD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,QAAQ,EAAE,UAAU;YACpB,cAAc,EAAE,gBAAgB;YAChC,cAAc,EAAE,gBAAgB;YAChC,cAAc,EAAE,gBAAgB;YAChC,cAAc,EAAE,gBAAgB;SACjC,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,QAAQ;YACjB,UAAU,EAAE,QAAQ;YACpB,QAAQ,EAAE,QAAQ;YAClB,cAAc,EAAE,QAAQ;YACxB,cAAc,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE;YACzD,cAAc,EAAE,QAAQ;YACxB,cAAc,EAAE,QAAQ;SACzB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,cAAc,CAAC,EAAE,CAAC;YACtC,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;QACjD,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAzFD,oDAyFC"}
|
|
@@ -38,12 +38,12 @@ export declare class TextTranslateResponseBodyDataTranslations extends $dara.Mod
|
|
|
38
38
|
export declare class TextTranslateResponseBodyData extends $dara.Model {
|
|
39
39
|
/**
|
|
40
40
|
* @remarks
|
|
41
|
-
* The
|
|
41
|
+
* The translation result list. Each element corresponds to a translation result for an entry in the input text list.
|
|
42
42
|
*/
|
|
43
43
|
translations?: TextTranslateResponseBodyDataTranslations[];
|
|
44
44
|
/**
|
|
45
45
|
* @remarks
|
|
46
|
-
* The usage information, including the
|
|
46
|
+
* The usage information, including the input character count.
|
|
47
47
|
*
|
|
48
48
|
* @example
|
|
49
49
|
* {"InputCharacterCount":5}
|
|
@@ -65,7 +65,7 @@ export declare class TextTranslateResponseBodyData extends $dara.Model {
|
|
|
65
65
|
export declare class TextTranslateResponseBody extends $dara.Model {
|
|
66
66
|
/**
|
|
67
67
|
* @remarks
|
|
68
|
-
* The response code.
|
|
68
|
+
* The response code. Returns "success" for successful calls.
|
|
69
69
|
*
|
|
70
70
|
* @example
|
|
71
71
|
* success
|
|
@@ -73,12 +73,12 @@ export declare class TextTranslateResponseBody extends $dara.Model {
|
|
|
73
73
|
code?: string;
|
|
74
74
|
/**
|
|
75
75
|
* @remarks
|
|
76
|
-
* The translation result data,
|
|
76
|
+
* The translation result data, including the translation list and usage information.
|
|
77
77
|
*/
|
|
78
78
|
data?: TextTranslateResponseBodyData;
|
|
79
79
|
/**
|
|
80
80
|
* @remarks
|
|
81
|
-
* The error message.
|
|
81
|
+
* The error message. Returns "Success" for successful calls. Returns specific error information for exceptions, such as "The parameters contain sensitive information. Try other input."
|
|
82
82
|
*
|
|
83
83
|
* @example
|
|
84
84
|
* Success
|
|
@@ -86,7 +86,7 @@ export declare class TextTranslateResponseBody extends $dara.Model {
|
|
|
86
86
|
message?: string;
|
|
87
87
|
/**
|
|
88
88
|
* @remarks
|
|
89
|
-
* The request ID,
|
|
89
|
+
* The request ID, used to identify a unique request call.
|
|
90
90
|
*
|
|
91
91
|
* @example
|
|
92
92
|
* 922E43BB-EE0E-1A29-B143-BB91BB3EA6AB
|
|
@@ -94,7 +94,7 @@ export declare class TextTranslateResponseBody extends $dara.Model {
|
|
|
94
94
|
requestId?: string;
|
|
95
95
|
/**
|
|
96
96
|
* @remarks
|
|
97
|
-
* Indicates whether the call is successful.
|
|
97
|
+
* Indicates whether the call is successful. true indicates success. false indicates failure.
|
|
98
98
|
*
|
|
99
99
|
* @example
|
|
100
100
|
* true
|
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
import * as $dara from '@darabonba/typescript';
|
|
2
2
|
export declare class TextTranslateShrinkRequest extends $dara.Model {
|
|
3
|
+
/**
|
|
4
|
+
* @example
|
|
5
|
+
* MyCompany-Chat
|
|
6
|
+
*/
|
|
7
|
+
bizName?: string;
|
|
3
8
|
/**
|
|
4
9
|
* @remarks
|
|
5
|
-
* The format type of the source text.
|
|
10
|
+
* The format type of the source text. This parameter is optional. Valid values: text (plain text format) and html (web page format that preserves HTML tags).
|
|
6
11
|
*
|
|
7
12
|
* @example
|
|
8
13
|
* text
|
|
@@ -10,7 +15,7 @@ export declare class TextTranslateShrinkRequest extends $dara.Model {
|
|
|
10
15
|
formatType?: string;
|
|
11
16
|
/**
|
|
12
17
|
* @remarks
|
|
13
|
-
* The intervention glossary ID.
|
|
18
|
+
* The intervention glossary ID. This parameter is optional. The glossary must be created separately in the console and its ID provided here. If the glossary ID is empty, the translation result is not modified.
|
|
14
19
|
*
|
|
15
20
|
* @example
|
|
16
21
|
* glossary_1
|
|
@@ -18,7 +23,7 @@ export declare class TextTranslateShrinkRequest extends $dara.Model {
|
|
|
18
23
|
glossary?: string;
|
|
19
24
|
/**
|
|
20
25
|
* @remarks
|
|
21
|
-
* The source language code.
|
|
26
|
+
* The source language code. This parameter is optional. If not specified, the language is automatically detected. You can pass auto for language detection.
|
|
22
27
|
*
|
|
23
28
|
* @example
|
|
24
29
|
* auto
|
|
@@ -26,7 +31,7 @@ export declare class TextTranslateShrinkRequest extends $dara.Model {
|
|
|
26
31
|
sourceLanguage?: string;
|
|
27
32
|
/**
|
|
28
33
|
* @remarks
|
|
29
|
-
* The list of texts to translate.
|
|
34
|
+
* The list of texts to translate. This parameter is required. The total character length cannot exceed 50,000, and the list length cannot exceed 50.
|
|
30
35
|
*
|
|
31
36
|
* This parameter is required.
|
|
32
37
|
*
|
|
@@ -36,7 +41,7 @@ export declare class TextTranslateShrinkRequest extends $dara.Model {
|
|
|
36
41
|
sourceTextListShrink?: string;
|
|
37
42
|
/**
|
|
38
43
|
* @remarks
|
|
39
|
-
* The target language code.
|
|
44
|
+
* The target language code. This parameter is required. More than 100 language directions are supported. For details, refer to the supported language directions list.
|
|
40
45
|
*
|
|
41
46
|
* This parameter is required.
|
|
42
47
|
*
|
|
@@ -44,6 +49,11 @@ export declare class TextTranslateShrinkRequest extends $dara.Model {
|
|
|
44
49
|
* ko
|
|
45
50
|
*/
|
|
46
51
|
targetLanguage?: string;
|
|
52
|
+
/**
|
|
53
|
+
* @example
|
|
54
|
+
* e-commerce-title
|
|
55
|
+
*/
|
|
56
|
+
translateScene?: string;
|
|
47
57
|
static names(): {
|
|
48
58
|
[key: string]: string;
|
|
49
59
|
};
|
|
@@ -39,20 +39,24 @@ const $dara = __importStar(require("@darabonba/typescript"));
|
|
|
39
39
|
class TextTranslateShrinkRequest extends $dara.Model {
|
|
40
40
|
static names() {
|
|
41
41
|
return {
|
|
42
|
+
bizName: 'BizName',
|
|
42
43
|
formatType: 'FormatType',
|
|
43
44
|
glossary: 'Glossary',
|
|
44
45
|
sourceLanguage: 'SourceLanguage',
|
|
45
46
|
sourceTextListShrink: 'SourceTextList',
|
|
46
47
|
targetLanguage: 'TargetLanguage',
|
|
48
|
+
translateScene: 'TranslateScene',
|
|
47
49
|
};
|
|
48
50
|
}
|
|
49
51
|
static types() {
|
|
50
52
|
return {
|
|
53
|
+
bizName: 'string',
|
|
51
54
|
formatType: 'string',
|
|
52
55
|
glossary: 'string',
|
|
53
56
|
sourceLanguage: 'string',
|
|
54
57
|
sourceTextListShrink: 'string',
|
|
55
58
|
targetLanguage: 'string',
|
|
59
|
+
translateScene: 'string',
|
|
56
60
|
};
|
|
57
61
|
}
|
|
58
62
|
validate() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextTranslateShrinkRequest.js","sourceRoot":"","sources":["../../src/models/TextTranslateShrinkRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,0BAA2B,SAAQ,KAAK,CAAC,KAAK;
|
|
1
|
+
{"version":3,"file":"TextTranslateShrinkRequest.js","sourceRoot":"","sources":["../../src/models/TextTranslateShrinkRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,0BAA2B,SAAQ,KAAK,CAAC,KAAK;IAuDzD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,QAAQ,EAAE,UAAU;YACpB,cAAc,EAAE,gBAAgB;YAChC,oBAAoB,EAAE,gBAAgB;YACtC,cAAc,EAAE,gBAAgB;YAChC,cAAc,EAAE,gBAAgB;SACjC,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,QAAQ;YACjB,UAAU,EAAE,QAAQ;YACpB,QAAQ,EAAE,QAAQ;YAClB,cAAc,EAAE,QAAQ;YACxB,oBAAoB,EAAE,QAAQ;YAC9B,cAAc,EAAE,QAAQ;YACxB,cAAc,EAAE,QAAQ;SACzB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAtFD,gEAsFC"}
|