@alicloud/dianjin20240628 1.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/LICENSE +13 -0
- package/README.md +25 -0
- package/dist/client.d.ts +4441 -0
- package/dist/client.js +4129 -0
- package/dist/client.js.map +1 -0
- package/package.json +36 -0
- package/src/client.ts +7082 -0
package/dist/client.js
ADDED
|
@@ -0,0 +1,4129 @@
|
|
|
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 (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.RunChatResultGenerationResponse = exports.RunChatResultGenerationResponseBody = exports.RunChatResultGenerationRequest = exports.RecallDocumentResponse = exports.RecallDocumentResponseBody = exports.RecallDocumentRequest = exports.ReIndexResponse = exports.ReIndexResponseBody = exports.ReIndexRequest = exports.PreviewDocumentResponse = exports.PreviewDocumentResponseBody = exports.PreviewDocumentRequest = exports.InvokePluginResponse = exports.InvokePluginResponseBody = exports.InvokePluginRequest = exports.GetParseResultResponse = exports.GetParseResultResponseBody = exports.GetParseResultRequest = exports.GetLibraryListResponse = exports.GetLibraryListResponseBody = exports.GetLibraryListRequest = exports.GetLibraryResponse = exports.GetLibraryResponseBody = exports.GetLibraryRequest = exports.GetFilterDocumentListResponse = exports.GetFilterDocumentListResponseBody = exports.GetFilterDocumentListRequest = exports.GetDocumentUrlResponse = exports.GetDocumentUrlResponseBody = exports.GetDocumentUrlRequest = exports.GetDocumentListResponse = exports.GetDocumentListResponseBody = exports.GetDocumentListRequest = exports.GetDocumentChunkListResponse = exports.GetDocumentChunkListResponseBody = exports.GetDocumentChunkListRequest = exports.GetAppConfigResponse = exports.GetAppConfigResponseBody = exports.DeleteLibraryResponse = exports.DeleteLibraryResponseBody = exports.DeleteLibraryRequest = exports.DeleteDocumentResponse = exports.DeleteDocumentResponseBody = exports.DeleteDocumentRequest = exports.CreatePredefinedDocumentResponse = exports.CreatePredefinedDocumentResponseBody = exports.CreatePredefinedDocumentRequest = exports.CreateLibraryResponse = exports.CreateLibraryResponseBody = exports.CreateLibraryRequest = void 0;
|
|
30
|
+
exports.RecallDocumentRequestFilters = exports.RecallDocumentRequestFiltersOr = exports.RecallDocumentRequestFiltersAnd = exports.PreviewDocumentResponseBodyData = exports.GetParseResultResponseBodyData = exports.GetLibraryListResponseBodyData = exports.GetLibraryListResponseBodyDataRecords = exports.GetLibraryListResponseBodyDataRecordsIndexSetting = exports.GetLibraryListResponseBodyDataRecordsIndexSettingVectorIndexSetting = exports.GetLibraryListResponseBodyDataRecordsIndexSettingTextIndexSetting = exports.GetLibraryListResponseBodyDataRecordsIndexSettingRecallStrategy = exports.GetLibraryListResponseBodyDataRecordsIndexSettingQueryEnhancer = exports.GetLibraryListResponseBodyDataRecordsIndexSettingModelConfig = exports.GetLibraryListResponseBodyDataRecordsIndexSettingChunkStrategy = exports.GetLibraryResponseBodyData = exports.GetLibraryResponseBodyDataIndexSetting = exports.GetLibraryResponseBodyDataIndexSettingVectorIndexSetting = exports.GetLibraryResponseBodyDataIndexSettingTextIndexSetting = exports.GetLibraryResponseBodyDataIndexSettingRecallStrategy = exports.GetLibraryResponseBodyDataIndexSettingQueryEnhancer = exports.GetLibraryResponseBodyDataIndexSettingModelConfig = exports.GetLibraryResponseBodyDataIndexSettingChunkStrategy = exports.GetFilterDocumentListResponseBodyData = exports.GetFilterDocumentListResponseBodyDataRecords = exports.GetFilterDocumentListRequestOr = exports.GetFilterDocumentListRequestAnd = exports.GetDocumentListResponseBodyData = exports.GetDocumentListResponseBodyDataRecords = exports.GetDocumentChunkListResponseBodyData = exports.GetDocumentChunkListResponseBodyDataRecords = exports.GetDocumentChunkListResponseBodyDataRecordsPos = exports.GetAppConfigResponseBodyData = exports.CreatePredefinedDocumentRequestChunks = exports.CreateLibraryRequestIndexSetting = exports.CreateLibraryRequestIndexSettingVectorIndexSetting = exports.CreateLibraryRequestIndexSettingTextIndexSetting = exports.CreateLibraryRequestIndexSettingRecallStrategy = exports.CreateLibraryRequestIndexSettingQueryEnhancer = exports.CreateLibraryRequestIndexSettingModelConfig = exports.CreateLibraryRequestIndexSettingChunkStrategy = exports.UploadDocumentResponse = exports.UploadDocumentResponseBody = exports.UploadDocumentAdvanceRequest = exports.UploadDocumentRequest = exports.UpdateLibraryResponse = exports.UpdateLibraryResponseBody = exports.UpdateLibraryRequest = exports.UpdateDocumentResponse = exports.UpdateDocumentResponseBody = exports.UpdateDocumentRequest = void 0;
|
|
31
|
+
exports.UpdateLibraryRequestIndexSetting = exports.UpdateLibraryRequestIndexSettingVectorIndexSetting = exports.UpdateLibraryRequestIndexSettingTextIndexSetting = exports.UpdateLibraryRequestIndexSettingRecallStrategy = exports.UpdateLibraryRequestIndexSettingQueryEnhancer = exports.UpdateLibraryRequestIndexSettingModelConfig = exports.UpdateLibraryRequestIndexSettingChunkStrategy = exports.RunChatResultGenerationResponseBodyUsage = exports.RunChatResultGenerationResponseBodyChoices = exports.RunChatResultGenerationResponseBodyChoicesMessage = exports.RunChatResultGenerationRequestTools = exports.RunChatResultGenerationRequestToolsFunction = exports.RunChatResultGenerationRequestToolsFunctionParameters = exports.RunChatResultGenerationRequestMessages = exports.RecallDocumentResponseBodyData = exports.RecallDocumentResponseBodyDataVectorChunkList = exports.RecallDocumentResponseBodyDataVectorChunkListPos = exports.RecallDocumentResponseBodyDataTextChunkList = exports.RecallDocumentResponseBodyDataTextChunkListPos = exports.RecallDocumentResponseBodyDataDocuments = exports.RecallDocumentResponseBodyDataChunkPartList = exports.RecallDocumentResponseBodyDataChunkPartListPos = exports.RecallDocumentResponseBodyDataChunkList = exports.RecallDocumentResponseBodyDataChunkListPos = void 0;
|
|
32
|
+
// This file is auto-generated, don't edit it
|
|
33
|
+
/**
|
|
34
|
+
*/
|
|
35
|
+
const tea_util_1 = __importStar(require("@alicloud/tea-util")), $Util = tea_util_1;
|
|
36
|
+
const oss_client_1 = __importStar(require("@alicloud/oss-client")), $OSS = oss_client_1;
|
|
37
|
+
const openplatform20191219_1 = __importStar(require("@alicloud/openplatform20191219")), $OpenPlatform = openplatform20191219_1;
|
|
38
|
+
const $OSSUtil = __importStar(require("@alicloud/oss-util"));
|
|
39
|
+
const $FileForm = __importStar(require("@alicloud/tea-fileform"));
|
|
40
|
+
const openapi_client_1 = __importStar(require("@alicloud/openapi-client")), $OpenApi = openapi_client_1;
|
|
41
|
+
const openapi_util_1 = __importDefault(require("@alicloud/openapi-util"));
|
|
42
|
+
const endpoint_util_1 = __importDefault(require("@alicloud/endpoint-util"));
|
|
43
|
+
const $tea = __importStar(require("@alicloud/tea-typescript"));
|
|
44
|
+
class CreateLibraryRequest extends $tea.Model {
|
|
45
|
+
static names() {
|
|
46
|
+
return {
|
|
47
|
+
description: 'description',
|
|
48
|
+
indexSetting: 'indexSetting',
|
|
49
|
+
libraryName: 'libraryName',
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
static types() {
|
|
53
|
+
return {
|
|
54
|
+
description: 'string',
|
|
55
|
+
indexSetting: CreateLibraryRequestIndexSetting,
|
|
56
|
+
libraryName: 'string',
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
constructor(map) {
|
|
60
|
+
super(map);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
exports.CreateLibraryRequest = CreateLibraryRequest;
|
|
64
|
+
class CreateLibraryResponseBody extends $tea.Model {
|
|
65
|
+
static names() {
|
|
66
|
+
return {
|
|
67
|
+
cost: 'cost',
|
|
68
|
+
data: 'data',
|
|
69
|
+
dataType: 'dataType',
|
|
70
|
+
errCode: 'errCode',
|
|
71
|
+
message: 'message',
|
|
72
|
+
requestId: 'requestId',
|
|
73
|
+
success: 'success',
|
|
74
|
+
time: 'time',
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
static types() {
|
|
78
|
+
return {
|
|
79
|
+
cost: 'number',
|
|
80
|
+
data: 'string',
|
|
81
|
+
dataType: 'string',
|
|
82
|
+
errCode: 'string',
|
|
83
|
+
message: 'string',
|
|
84
|
+
requestId: 'string',
|
|
85
|
+
success: 'boolean',
|
|
86
|
+
time: 'string',
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
constructor(map) {
|
|
90
|
+
super(map);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
exports.CreateLibraryResponseBody = CreateLibraryResponseBody;
|
|
94
|
+
class CreateLibraryResponse extends $tea.Model {
|
|
95
|
+
static names() {
|
|
96
|
+
return {
|
|
97
|
+
headers: 'headers',
|
|
98
|
+
statusCode: 'statusCode',
|
|
99
|
+
body: 'body',
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
static types() {
|
|
103
|
+
return {
|
|
104
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
105
|
+
statusCode: 'number',
|
|
106
|
+
body: CreateLibraryResponseBody,
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
constructor(map) {
|
|
110
|
+
super(map);
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
exports.CreateLibraryResponse = CreateLibraryResponse;
|
|
114
|
+
class CreatePredefinedDocumentRequest extends $tea.Model {
|
|
115
|
+
static names() {
|
|
116
|
+
return {
|
|
117
|
+
chunks: 'chunks',
|
|
118
|
+
libraryId: 'libraryId',
|
|
119
|
+
metadata: 'metadata',
|
|
120
|
+
title: 'title',
|
|
121
|
+
};
|
|
122
|
+
}
|
|
123
|
+
static types() {
|
|
124
|
+
return {
|
|
125
|
+
chunks: { 'type': 'array', 'itemType': CreatePredefinedDocumentRequestChunks },
|
|
126
|
+
libraryId: 'string',
|
|
127
|
+
metadata: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
128
|
+
title: 'string',
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
constructor(map) {
|
|
132
|
+
super(map);
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
exports.CreatePredefinedDocumentRequest = CreatePredefinedDocumentRequest;
|
|
136
|
+
class CreatePredefinedDocumentResponseBody extends $tea.Model {
|
|
137
|
+
static names() {
|
|
138
|
+
return {
|
|
139
|
+
cost: 'cost',
|
|
140
|
+
data: 'data',
|
|
141
|
+
dataType: 'dataType',
|
|
142
|
+
errCode: 'errCode',
|
|
143
|
+
message: 'message',
|
|
144
|
+
requestId: 'requestId',
|
|
145
|
+
success: 'success',
|
|
146
|
+
time: 'time',
|
|
147
|
+
};
|
|
148
|
+
}
|
|
149
|
+
static types() {
|
|
150
|
+
return {
|
|
151
|
+
cost: 'number',
|
|
152
|
+
data: 'string',
|
|
153
|
+
dataType: 'string',
|
|
154
|
+
errCode: 'string',
|
|
155
|
+
message: 'string',
|
|
156
|
+
requestId: 'string',
|
|
157
|
+
success: 'boolean',
|
|
158
|
+
time: 'string',
|
|
159
|
+
};
|
|
160
|
+
}
|
|
161
|
+
constructor(map) {
|
|
162
|
+
super(map);
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
exports.CreatePredefinedDocumentResponseBody = CreatePredefinedDocumentResponseBody;
|
|
166
|
+
class CreatePredefinedDocumentResponse extends $tea.Model {
|
|
167
|
+
static names() {
|
|
168
|
+
return {
|
|
169
|
+
headers: 'headers',
|
|
170
|
+
statusCode: 'statusCode',
|
|
171
|
+
body: 'body',
|
|
172
|
+
};
|
|
173
|
+
}
|
|
174
|
+
static types() {
|
|
175
|
+
return {
|
|
176
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
177
|
+
statusCode: 'number',
|
|
178
|
+
body: CreatePredefinedDocumentResponseBody,
|
|
179
|
+
};
|
|
180
|
+
}
|
|
181
|
+
constructor(map) {
|
|
182
|
+
super(map);
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
exports.CreatePredefinedDocumentResponse = CreatePredefinedDocumentResponse;
|
|
186
|
+
class DeleteDocumentRequest extends $tea.Model {
|
|
187
|
+
static names() {
|
|
188
|
+
return {
|
|
189
|
+
docIds: 'docIds',
|
|
190
|
+
libraryId: 'libraryId',
|
|
191
|
+
};
|
|
192
|
+
}
|
|
193
|
+
static types() {
|
|
194
|
+
return {
|
|
195
|
+
docIds: { 'type': 'array', 'itemType': 'string' },
|
|
196
|
+
libraryId: 'string',
|
|
197
|
+
};
|
|
198
|
+
}
|
|
199
|
+
constructor(map) {
|
|
200
|
+
super(map);
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
exports.DeleteDocumentRequest = DeleteDocumentRequest;
|
|
204
|
+
class DeleteDocumentResponseBody extends $tea.Model {
|
|
205
|
+
static names() {
|
|
206
|
+
return {
|
|
207
|
+
cost: 'cost',
|
|
208
|
+
data: 'data',
|
|
209
|
+
dataType: 'dataType',
|
|
210
|
+
errCode: 'errCode',
|
|
211
|
+
message: 'message',
|
|
212
|
+
requestId: 'requestId',
|
|
213
|
+
success: 'success',
|
|
214
|
+
time: 'time',
|
|
215
|
+
};
|
|
216
|
+
}
|
|
217
|
+
static types() {
|
|
218
|
+
return {
|
|
219
|
+
cost: 'number',
|
|
220
|
+
data: 'boolean',
|
|
221
|
+
dataType: 'string',
|
|
222
|
+
errCode: 'string',
|
|
223
|
+
message: 'string',
|
|
224
|
+
requestId: 'string',
|
|
225
|
+
success: 'boolean',
|
|
226
|
+
time: 'string',
|
|
227
|
+
};
|
|
228
|
+
}
|
|
229
|
+
constructor(map) {
|
|
230
|
+
super(map);
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
exports.DeleteDocumentResponseBody = DeleteDocumentResponseBody;
|
|
234
|
+
class DeleteDocumentResponse extends $tea.Model {
|
|
235
|
+
static names() {
|
|
236
|
+
return {
|
|
237
|
+
headers: 'headers',
|
|
238
|
+
statusCode: 'statusCode',
|
|
239
|
+
body: 'body',
|
|
240
|
+
};
|
|
241
|
+
}
|
|
242
|
+
static types() {
|
|
243
|
+
return {
|
|
244
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
245
|
+
statusCode: 'number',
|
|
246
|
+
body: DeleteDocumentResponseBody,
|
|
247
|
+
};
|
|
248
|
+
}
|
|
249
|
+
constructor(map) {
|
|
250
|
+
super(map);
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
exports.DeleteDocumentResponse = DeleteDocumentResponse;
|
|
254
|
+
class DeleteLibraryRequest extends $tea.Model {
|
|
255
|
+
static names() {
|
|
256
|
+
return {
|
|
257
|
+
libraryId: 'libraryId',
|
|
258
|
+
};
|
|
259
|
+
}
|
|
260
|
+
static types() {
|
|
261
|
+
return {
|
|
262
|
+
libraryId: 'string',
|
|
263
|
+
};
|
|
264
|
+
}
|
|
265
|
+
constructor(map) {
|
|
266
|
+
super(map);
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
exports.DeleteLibraryRequest = DeleteLibraryRequest;
|
|
270
|
+
class DeleteLibraryResponseBody extends $tea.Model {
|
|
271
|
+
static names() {
|
|
272
|
+
return {
|
|
273
|
+
errCode: 'errCode',
|
|
274
|
+
message: 'message',
|
|
275
|
+
requestId: 'requestId',
|
|
276
|
+
success: 'success',
|
|
277
|
+
};
|
|
278
|
+
}
|
|
279
|
+
static types() {
|
|
280
|
+
return {
|
|
281
|
+
errCode: 'string',
|
|
282
|
+
message: 'string',
|
|
283
|
+
requestId: 'string',
|
|
284
|
+
success: 'boolean',
|
|
285
|
+
};
|
|
286
|
+
}
|
|
287
|
+
constructor(map) {
|
|
288
|
+
super(map);
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
exports.DeleteLibraryResponseBody = DeleteLibraryResponseBody;
|
|
292
|
+
class DeleteLibraryResponse extends $tea.Model {
|
|
293
|
+
static names() {
|
|
294
|
+
return {
|
|
295
|
+
headers: 'headers',
|
|
296
|
+
statusCode: 'statusCode',
|
|
297
|
+
body: 'body',
|
|
298
|
+
};
|
|
299
|
+
}
|
|
300
|
+
static types() {
|
|
301
|
+
return {
|
|
302
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
303
|
+
statusCode: 'number',
|
|
304
|
+
body: DeleteLibraryResponseBody,
|
|
305
|
+
};
|
|
306
|
+
}
|
|
307
|
+
constructor(map) {
|
|
308
|
+
super(map);
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
exports.DeleteLibraryResponse = DeleteLibraryResponse;
|
|
312
|
+
class GetAppConfigResponseBody extends $tea.Model {
|
|
313
|
+
static names() {
|
|
314
|
+
return {
|
|
315
|
+
cost: 'cost',
|
|
316
|
+
data: 'data',
|
|
317
|
+
dataType: 'dataType',
|
|
318
|
+
errCode: 'errCode',
|
|
319
|
+
message: 'message',
|
|
320
|
+
requestId: 'requestId',
|
|
321
|
+
success: 'success',
|
|
322
|
+
time: 'time',
|
|
323
|
+
};
|
|
324
|
+
}
|
|
325
|
+
static types() {
|
|
326
|
+
return {
|
|
327
|
+
cost: 'number',
|
|
328
|
+
data: GetAppConfigResponseBodyData,
|
|
329
|
+
dataType: 'string',
|
|
330
|
+
errCode: 'string',
|
|
331
|
+
message: 'string',
|
|
332
|
+
requestId: 'string',
|
|
333
|
+
success: 'boolean',
|
|
334
|
+
time: 'string',
|
|
335
|
+
};
|
|
336
|
+
}
|
|
337
|
+
constructor(map) {
|
|
338
|
+
super(map);
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
exports.GetAppConfigResponseBody = GetAppConfigResponseBody;
|
|
342
|
+
class GetAppConfigResponse extends $tea.Model {
|
|
343
|
+
static names() {
|
|
344
|
+
return {
|
|
345
|
+
headers: 'headers',
|
|
346
|
+
statusCode: 'statusCode',
|
|
347
|
+
body: 'body',
|
|
348
|
+
};
|
|
349
|
+
}
|
|
350
|
+
static types() {
|
|
351
|
+
return {
|
|
352
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
353
|
+
statusCode: 'number',
|
|
354
|
+
body: GetAppConfigResponseBody,
|
|
355
|
+
};
|
|
356
|
+
}
|
|
357
|
+
constructor(map) {
|
|
358
|
+
super(map);
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
exports.GetAppConfigResponse = GetAppConfigResponse;
|
|
362
|
+
class GetDocumentChunkListRequest extends $tea.Model {
|
|
363
|
+
static names() {
|
|
364
|
+
return {
|
|
365
|
+
chunkIdList: 'chunkIdList',
|
|
366
|
+
docId: 'docId',
|
|
367
|
+
libraryId: 'libraryId',
|
|
368
|
+
order: 'order',
|
|
369
|
+
orderBy: 'orderBy',
|
|
370
|
+
page: 'page',
|
|
371
|
+
pageSize: 'pageSize',
|
|
372
|
+
searchQuery: 'searchQuery',
|
|
373
|
+
};
|
|
374
|
+
}
|
|
375
|
+
static types() {
|
|
376
|
+
return {
|
|
377
|
+
chunkIdList: { 'type': 'array', 'itemType': 'string' },
|
|
378
|
+
docId: 'string',
|
|
379
|
+
libraryId: 'string',
|
|
380
|
+
order: 'string',
|
|
381
|
+
orderBy: 'string',
|
|
382
|
+
page: 'number',
|
|
383
|
+
pageSize: 'number',
|
|
384
|
+
searchQuery: 'string',
|
|
385
|
+
};
|
|
386
|
+
}
|
|
387
|
+
constructor(map) {
|
|
388
|
+
super(map);
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
exports.GetDocumentChunkListRequest = GetDocumentChunkListRequest;
|
|
392
|
+
class GetDocumentChunkListResponseBody extends $tea.Model {
|
|
393
|
+
static names() {
|
|
394
|
+
return {
|
|
395
|
+
cost: 'cost',
|
|
396
|
+
data: 'data',
|
|
397
|
+
dataType: 'dataType',
|
|
398
|
+
errCode: 'errCode',
|
|
399
|
+
message: 'message',
|
|
400
|
+
requestId: 'requestId',
|
|
401
|
+
success: 'success',
|
|
402
|
+
time: 'time',
|
|
403
|
+
};
|
|
404
|
+
}
|
|
405
|
+
static types() {
|
|
406
|
+
return {
|
|
407
|
+
cost: 'number',
|
|
408
|
+
data: GetDocumentChunkListResponseBodyData,
|
|
409
|
+
dataType: 'string',
|
|
410
|
+
errCode: 'string',
|
|
411
|
+
message: 'string',
|
|
412
|
+
requestId: 'string',
|
|
413
|
+
success: 'boolean',
|
|
414
|
+
time: 'string',
|
|
415
|
+
};
|
|
416
|
+
}
|
|
417
|
+
constructor(map) {
|
|
418
|
+
super(map);
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
exports.GetDocumentChunkListResponseBody = GetDocumentChunkListResponseBody;
|
|
422
|
+
class GetDocumentChunkListResponse extends $tea.Model {
|
|
423
|
+
static names() {
|
|
424
|
+
return {
|
|
425
|
+
headers: 'headers',
|
|
426
|
+
statusCode: 'statusCode',
|
|
427
|
+
body: 'body',
|
|
428
|
+
};
|
|
429
|
+
}
|
|
430
|
+
static types() {
|
|
431
|
+
return {
|
|
432
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
433
|
+
statusCode: 'number',
|
|
434
|
+
body: GetDocumentChunkListResponseBody,
|
|
435
|
+
};
|
|
436
|
+
}
|
|
437
|
+
constructor(map) {
|
|
438
|
+
super(map);
|
|
439
|
+
}
|
|
440
|
+
}
|
|
441
|
+
exports.GetDocumentChunkListResponse = GetDocumentChunkListResponse;
|
|
442
|
+
class GetDocumentListRequest extends $tea.Model {
|
|
443
|
+
static names() {
|
|
444
|
+
return {
|
|
445
|
+
libraryId: 'libraryId',
|
|
446
|
+
page: 'page',
|
|
447
|
+
pageSize: 'pageSize',
|
|
448
|
+
status: 'status',
|
|
449
|
+
};
|
|
450
|
+
}
|
|
451
|
+
static types() {
|
|
452
|
+
return {
|
|
453
|
+
libraryId: 'string',
|
|
454
|
+
page: 'number',
|
|
455
|
+
pageSize: 'number',
|
|
456
|
+
status: 'string',
|
|
457
|
+
};
|
|
458
|
+
}
|
|
459
|
+
constructor(map) {
|
|
460
|
+
super(map);
|
|
461
|
+
}
|
|
462
|
+
}
|
|
463
|
+
exports.GetDocumentListRequest = GetDocumentListRequest;
|
|
464
|
+
class GetDocumentListResponseBody extends $tea.Model {
|
|
465
|
+
static names() {
|
|
466
|
+
return {
|
|
467
|
+
cost: 'cost',
|
|
468
|
+
data: 'data',
|
|
469
|
+
dataType: 'dataType',
|
|
470
|
+
errCode: 'errCode',
|
|
471
|
+
message: 'message',
|
|
472
|
+
requestId: 'requestId',
|
|
473
|
+
success: 'success',
|
|
474
|
+
time: 'time',
|
|
475
|
+
};
|
|
476
|
+
}
|
|
477
|
+
static types() {
|
|
478
|
+
return {
|
|
479
|
+
cost: 'number',
|
|
480
|
+
data: GetDocumentListResponseBodyData,
|
|
481
|
+
dataType: 'string',
|
|
482
|
+
errCode: 'string',
|
|
483
|
+
message: 'string',
|
|
484
|
+
requestId: 'string',
|
|
485
|
+
success: 'boolean',
|
|
486
|
+
time: 'string',
|
|
487
|
+
};
|
|
488
|
+
}
|
|
489
|
+
constructor(map) {
|
|
490
|
+
super(map);
|
|
491
|
+
}
|
|
492
|
+
}
|
|
493
|
+
exports.GetDocumentListResponseBody = GetDocumentListResponseBody;
|
|
494
|
+
class GetDocumentListResponse extends $tea.Model {
|
|
495
|
+
static names() {
|
|
496
|
+
return {
|
|
497
|
+
headers: 'headers',
|
|
498
|
+
statusCode: 'statusCode',
|
|
499
|
+
body: 'body',
|
|
500
|
+
};
|
|
501
|
+
}
|
|
502
|
+
static types() {
|
|
503
|
+
return {
|
|
504
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
505
|
+
statusCode: 'number',
|
|
506
|
+
body: GetDocumentListResponseBody,
|
|
507
|
+
};
|
|
508
|
+
}
|
|
509
|
+
constructor(map) {
|
|
510
|
+
super(map);
|
|
511
|
+
}
|
|
512
|
+
}
|
|
513
|
+
exports.GetDocumentListResponse = GetDocumentListResponse;
|
|
514
|
+
class GetDocumentUrlRequest extends $tea.Model {
|
|
515
|
+
static names() {
|
|
516
|
+
return {
|
|
517
|
+
documentId: 'documentId',
|
|
518
|
+
};
|
|
519
|
+
}
|
|
520
|
+
static types() {
|
|
521
|
+
return {
|
|
522
|
+
documentId: 'string',
|
|
523
|
+
};
|
|
524
|
+
}
|
|
525
|
+
constructor(map) {
|
|
526
|
+
super(map);
|
|
527
|
+
}
|
|
528
|
+
}
|
|
529
|
+
exports.GetDocumentUrlRequest = GetDocumentUrlRequest;
|
|
530
|
+
class GetDocumentUrlResponseBody extends $tea.Model {
|
|
531
|
+
static names() {
|
|
532
|
+
return {
|
|
533
|
+
cost: 'cost',
|
|
534
|
+
data: 'data',
|
|
535
|
+
dataType: 'dataType',
|
|
536
|
+
errCode: 'errCode',
|
|
537
|
+
message: 'message',
|
|
538
|
+
requestId: 'requestId',
|
|
539
|
+
success: 'success',
|
|
540
|
+
time: 'time',
|
|
541
|
+
};
|
|
542
|
+
}
|
|
543
|
+
static types() {
|
|
544
|
+
return {
|
|
545
|
+
cost: 'number',
|
|
546
|
+
data: 'string',
|
|
547
|
+
dataType: 'string',
|
|
548
|
+
errCode: 'string',
|
|
549
|
+
message: 'string',
|
|
550
|
+
requestId: 'string',
|
|
551
|
+
success: 'boolean',
|
|
552
|
+
time: 'string',
|
|
553
|
+
};
|
|
554
|
+
}
|
|
555
|
+
constructor(map) {
|
|
556
|
+
super(map);
|
|
557
|
+
}
|
|
558
|
+
}
|
|
559
|
+
exports.GetDocumentUrlResponseBody = GetDocumentUrlResponseBody;
|
|
560
|
+
class GetDocumentUrlResponse extends $tea.Model {
|
|
561
|
+
static names() {
|
|
562
|
+
return {
|
|
563
|
+
headers: 'headers',
|
|
564
|
+
statusCode: 'statusCode',
|
|
565
|
+
body: 'body',
|
|
566
|
+
};
|
|
567
|
+
}
|
|
568
|
+
static types() {
|
|
569
|
+
return {
|
|
570
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
571
|
+
statusCode: 'number',
|
|
572
|
+
body: GetDocumentUrlResponseBody,
|
|
573
|
+
};
|
|
574
|
+
}
|
|
575
|
+
constructor(map) {
|
|
576
|
+
super(map);
|
|
577
|
+
}
|
|
578
|
+
}
|
|
579
|
+
exports.GetDocumentUrlResponse = GetDocumentUrlResponse;
|
|
580
|
+
class GetFilterDocumentListRequest extends $tea.Model {
|
|
581
|
+
static names() {
|
|
582
|
+
return {
|
|
583
|
+
and: 'and',
|
|
584
|
+
docIdList: 'docIdList',
|
|
585
|
+
libraryId: 'libraryId',
|
|
586
|
+
or: 'or',
|
|
587
|
+
page: 'page',
|
|
588
|
+
pageSize: 'pageSize',
|
|
589
|
+
status: 'status',
|
|
590
|
+
};
|
|
591
|
+
}
|
|
592
|
+
static types() {
|
|
593
|
+
return {
|
|
594
|
+
and: { 'type': 'array', 'itemType': GetFilterDocumentListRequestAnd },
|
|
595
|
+
docIdList: { 'type': 'array', 'itemType': 'string' },
|
|
596
|
+
libraryId: 'string',
|
|
597
|
+
or: { 'type': 'array', 'itemType': GetFilterDocumentListRequestOr },
|
|
598
|
+
page: 'number',
|
|
599
|
+
pageSize: 'number',
|
|
600
|
+
status: { 'type': 'array', 'itemType': 'string' },
|
|
601
|
+
};
|
|
602
|
+
}
|
|
603
|
+
constructor(map) {
|
|
604
|
+
super(map);
|
|
605
|
+
}
|
|
606
|
+
}
|
|
607
|
+
exports.GetFilterDocumentListRequest = GetFilterDocumentListRequest;
|
|
608
|
+
class GetFilterDocumentListResponseBody extends $tea.Model {
|
|
609
|
+
static names() {
|
|
610
|
+
return {
|
|
611
|
+
cost: 'cost',
|
|
612
|
+
data: 'data',
|
|
613
|
+
dataType: 'dataType',
|
|
614
|
+
errCode: 'errCode',
|
|
615
|
+
message: 'message',
|
|
616
|
+
requestId: 'requestId',
|
|
617
|
+
success: 'success',
|
|
618
|
+
time: 'time',
|
|
619
|
+
};
|
|
620
|
+
}
|
|
621
|
+
static types() {
|
|
622
|
+
return {
|
|
623
|
+
cost: 'number',
|
|
624
|
+
data: GetFilterDocumentListResponseBodyData,
|
|
625
|
+
dataType: 'string',
|
|
626
|
+
errCode: 'string',
|
|
627
|
+
message: 'string',
|
|
628
|
+
requestId: 'string',
|
|
629
|
+
success: 'boolean',
|
|
630
|
+
time: 'string',
|
|
631
|
+
};
|
|
632
|
+
}
|
|
633
|
+
constructor(map) {
|
|
634
|
+
super(map);
|
|
635
|
+
}
|
|
636
|
+
}
|
|
637
|
+
exports.GetFilterDocumentListResponseBody = GetFilterDocumentListResponseBody;
|
|
638
|
+
class GetFilterDocumentListResponse extends $tea.Model {
|
|
639
|
+
static names() {
|
|
640
|
+
return {
|
|
641
|
+
headers: 'headers',
|
|
642
|
+
statusCode: 'statusCode',
|
|
643
|
+
body: 'body',
|
|
644
|
+
};
|
|
645
|
+
}
|
|
646
|
+
static types() {
|
|
647
|
+
return {
|
|
648
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
649
|
+
statusCode: 'number',
|
|
650
|
+
body: GetFilterDocumentListResponseBody,
|
|
651
|
+
};
|
|
652
|
+
}
|
|
653
|
+
constructor(map) {
|
|
654
|
+
super(map);
|
|
655
|
+
}
|
|
656
|
+
}
|
|
657
|
+
exports.GetFilterDocumentListResponse = GetFilterDocumentListResponse;
|
|
658
|
+
class GetLibraryRequest extends $tea.Model {
|
|
659
|
+
static names() {
|
|
660
|
+
return {
|
|
661
|
+
libraryId: 'libraryId',
|
|
662
|
+
};
|
|
663
|
+
}
|
|
664
|
+
static types() {
|
|
665
|
+
return {
|
|
666
|
+
libraryId: 'string',
|
|
667
|
+
};
|
|
668
|
+
}
|
|
669
|
+
constructor(map) {
|
|
670
|
+
super(map);
|
|
671
|
+
}
|
|
672
|
+
}
|
|
673
|
+
exports.GetLibraryRequest = GetLibraryRequest;
|
|
674
|
+
class GetLibraryResponseBody extends $tea.Model {
|
|
675
|
+
static names() {
|
|
676
|
+
return {
|
|
677
|
+
cost: 'cost',
|
|
678
|
+
data: 'data',
|
|
679
|
+
dataType: 'dataType',
|
|
680
|
+
errCode: 'errCode',
|
|
681
|
+
message: 'message',
|
|
682
|
+
requestId: 'requestId',
|
|
683
|
+
success: 'success',
|
|
684
|
+
time: 'time',
|
|
685
|
+
};
|
|
686
|
+
}
|
|
687
|
+
static types() {
|
|
688
|
+
return {
|
|
689
|
+
cost: 'number',
|
|
690
|
+
data: GetLibraryResponseBodyData,
|
|
691
|
+
dataType: 'string',
|
|
692
|
+
errCode: 'string',
|
|
693
|
+
message: 'string',
|
|
694
|
+
requestId: 'string',
|
|
695
|
+
success: 'boolean',
|
|
696
|
+
time: 'string',
|
|
697
|
+
};
|
|
698
|
+
}
|
|
699
|
+
constructor(map) {
|
|
700
|
+
super(map);
|
|
701
|
+
}
|
|
702
|
+
}
|
|
703
|
+
exports.GetLibraryResponseBody = GetLibraryResponseBody;
|
|
704
|
+
class GetLibraryResponse extends $tea.Model {
|
|
705
|
+
static names() {
|
|
706
|
+
return {
|
|
707
|
+
headers: 'headers',
|
|
708
|
+
statusCode: 'statusCode',
|
|
709
|
+
body: 'body',
|
|
710
|
+
};
|
|
711
|
+
}
|
|
712
|
+
static types() {
|
|
713
|
+
return {
|
|
714
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
715
|
+
statusCode: 'number',
|
|
716
|
+
body: GetLibraryResponseBody,
|
|
717
|
+
};
|
|
718
|
+
}
|
|
719
|
+
constructor(map) {
|
|
720
|
+
super(map);
|
|
721
|
+
}
|
|
722
|
+
}
|
|
723
|
+
exports.GetLibraryResponse = GetLibraryResponse;
|
|
724
|
+
class GetLibraryListRequest extends $tea.Model {
|
|
725
|
+
static names() {
|
|
726
|
+
return {
|
|
727
|
+
page: 'page',
|
|
728
|
+
pageSize: 'pageSize',
|
|
729
|
+
query: 'query',
|
|
730
|
+
};
|
|
731
|
+
}
|
|
732
|
+
static types() {
|
|
733
|
+
return {
|
|
734
|
+
page: 'number',
|
|
735
|
+
pageSize: 'number',
|
|
736
|
+
query: 'string',
|
|
737
|
+
};
|
|
738
|
+
}
|
|
739
|
+
constructor(map) {
|
|
740
|
+
super(map);
|
|
741
|
+
}
|
|
742
|
+
}
|
|
743
|
+
exports.GetLibraryListRequest = GetLibraryListRequest;
|
|
744
|
+
class GetLibraryListResponseBody extends $tea.Model {
|
|
745
|
+
static names() {
|
|
746
|
+
return {
|
|
747
|
+
cost: 'cost',
|
|
748
|
+
data: 'data',
|
|
749
|
+
dataType: 'dataType',
|
|
750
|
+
errCode: 'errCode',
|
|
751
|
+
message: 'message',
|
|
752
|
+
requestId: 'requestId',
|
|
753
|
+
success: 'success',
|
|
754
|
+
time: 'time',
|
|
755
|
+
};
|
|
756
|
+
}
|
|
757
|
+
static types() {
|
|
758
|
+
return {
|
|
759
|
+
cost: 'number',
|
|
760
|
+
data: GetLibraryListResponseBodyData,
|
|
761
|
+
dataType: 'string',
|
|
762
|
+
errCode: 'string',
|
|
763
|
+
message: 'string',
|
|
764
|
+
requestId: 'string',
|
|
765
|
+
success: 'boolean',
|
|
766
|
+
time: 'string',
|
|
767
|
+
};
|
|
768
|
+
}
|
|
769
|
+
constructor(map) {
|
|
770
|
+
super(map);
|
|
771
|
+
}
|
|
772
|
+
}
|
|
773
|
+
exports.GetLibraryListResponseBody = GetLibraryListResponseBody;
|
|
774
|
+
class GetLibraryListResponse extends $tea.Model {
|
|
775
|
+
static names() {
|
|
776
|
+
return {
|
|
777
|
+
headers: 'headers',
|
|
778
|
+
statusCode: 'statusCode',
|
|
779
|
+
body: 'body',
|
|
780
|
+
};
|
|
781
|
+
}
|
|
782
|
+
static types() {
|
|
783
|
+
return {
|
|
784
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
785
|
+
statusCode: 'number',
|
|
786
|
+
body: GetLibraryListResponseBody,
|
|
787
|
+
};
|
|
788
|
+
}
|
|
789
|
+
constructor(map) {
|
|
790
|
+
super(map);
|
|
791
|
+
}
|
|
792
|
+
}
|
|
793
|
+
exports.GetLibraryListResponse = GetLibraryListResponse;
|
|
794
|
+
class GetParseResultRequest extends $tea.Model {
|
|
795
|
+
static names() {
|
|
796
|
+
return {
|
|
797
|
+
docId: 'docId',
|
|
798
|
+
libraryId: 'libraryId',
|
|
799
|
+
};
|
|
800
|
+
}
|
|
801
|
+
static types() {
|
|
802
|
+
return {
|
|
803
|
+
docId: 'string',
|
|
804
|
+
libraryId: 'string',
|
|
805
|
+
};
|
|
806
|
+
}
|
|
807
|
+
constructor(map) {
|
|
808
|
+
super(map);
|
|
809
|
+
}
|
|
810
|
+
}
|
|
811
|
+
exports.GetParseResultRequest = GetParseResultRequest;
|
|
812
|
+
class GetParseResultResponseBody extends $tea.Model {
|
|
813
|
+
static names() {
|
|
814
|
+
return {
|
|
815
|
+
cost: 'cost',
|
|
816
|
+
data: 'data',
|
|
817
|
+
dataType: 'dataType',
|
|
818
|
+
errCode: 'errCode',
|
|
819
|
+
message: 'message',
|
|
820
|
+
requestId: 'requestId',
|
|
821
|
+
success: 'success',
|
|
822
|
+
time: 'time',
|
|
823
|
+
};
|
|
824
|
+
}
|
|
825
|
+
static types() {
|
|
826
|
+
return {
|
|
827
|
+
cost: 'number',
|
|
828
|
+
data: GetParseResultResponseBodyData,
|
|
829
|
+
dataType: 'string',
|
|
830
|
+
errCode: 'string',
|
|
831
|
+
message: 'string',
|
|
832
|
+
requestId: 'string',
|
|
833
|
+
success: 'boolean',
|
|
834
|
+
time: 'string',
|
|
835
|
+
};
|
|
836
|
+
}
|
|
837
|
+
constructor(map) {
|
|
838
|
+
super(map);
|
|
839
|
+
}
|
|
840
|
+
}
|
|
841
|
+
exports.GetParseResultResponseBody = GetParseResultResponseBody;
|
|
842
|
+
class GetParseResultResponse extends $tea.Model {
|
|
843
|
+
static names() {
|
|
844
|
+
return {
|
|
845
|
+
headers: 'headers',
|
|
846
|
+
statusCode: 'statusCode',
|
|
847
|
+
body: 'body',
|
|
848
|
+
};
|
|
849
|
+
}
|
|
850
|
+
static types() {
|
|
851
|
+
return {
|
|
852
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
853
|
+
statusCode: 'number',
|
|
854
|
+
body: GetParseResultResponseBody,
|
|
855
|
+
};
|
|
856
|
+
}
|
|
857
|
+
constructor(map) {
|
|
858
|
+
super(map);
|
|
859
|
+
}
|
|
860
|
+
}
|
|
861
|
+
exports.GetParseResultResponse = GetParseResultResponse;
|
|
862
|
+
class InvokePluginRequest extends $tea.Model {
|
|
863
|
+
static names() {
|
|
864
|
+
return {
|
|
865
|
+
params: 'params',
|
|
866
|
+
pluginId: 'pluginId',
|
|
867
|
+
};
|
|
868
|
+
}
|
|
869
|
+
static types() {
|
|
870
|
+
return {
|
|
871
|
+
params: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
872
|
+
pluginId: 'string',
|
|
873
|
+
};
|
|
874
|
+
}
|
|
875
|
+
constructor(map) {
|
|
876
|
+
super(map);
|
|
877
|
+
}
|
|
878
|
+
}
|
|
879
|
+
exports.InvokePluginRequest = InvokePluginRequest;
|
|
880
|
+
class InvokePluginResponseBody extends $tea.Model {
|
|
881
|
+
static names() {
|
|
882
|
+
return {
|
|
883
|
+
cost: 'cost',
|
|
884
|
+
data: 'data',
|
|
885
|
+
dataType: 'dataType',
|
|
886
|
+
errCode: 'errCode',
|
|
887
|
+
message: 'message',
|
|
888
|
+
requestId: 'requestId',
|
|
889
|
+
success: 'success',
|
|
890
|
+
time: 'time',
|
|
891
|
+
};
|
|
892
|
+
}
|
|
893
|
+
static types() {
|
|
894
|
+
return {
|
|
895
|
+
cost: 'number',
|
|
896
|
+
data: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
897
|
+
dataType: 'string',
|
|
898
|
+
errCode: 'string',
|
|
899
|
+
message: 'string',
|
|
900
|
+
requestId: 'string',
|
|
901
|
+
success: 'boolean',
|
|
902
|
+
time: 'string',
|
|
903
|
+
};
|
|
904
|
+
}
|
|
905
|
+
constructor(map) {
|
|
906
|
+
super(map);
|
|
907
|
+
}
|
|
908
|
+
}
|
|
909
|
+
exports.InvokePluginResponseBody = InvokePluginResponseBody;
|
|
910
|
+
class InvokePluginResponse extends $tea.Model {
|
|
911
|
+
static names() {
|
|
912
|
+
return {
|
|
913
|
+
headers: 'headers',
|
|
914
|
+
statusCode: 'statusCode',
|
|
915
|
+
body: 'body',
|
|
916
|
+
};
|
|
917
|
+
}
|
|
918
|
+
static types() {
|
|
919
|
+
return {
|
|
920
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
921
|
+
statusCode: 'number',
|
|
922
|
+
body: InvokePluginResponseBody,
|
|
923
|
+
};
|
|
924
|
+
}
|
|
925
|
+
constructor(map) {
|
|
926
|
+
super(map);
|
|
927
|
+
}
|
|
928
|
+
}
|
|
929
|
+
exports.InvokePluginResponse = InvokePluginResponse;
|
|
930
|
+
class PreviewDocumentRequest extends $tea.Model {
|
|
931
|
+
static names() {
|
|
932
|
+
return {
|
|
933
|
+
documentId: 'documentId',
|
|
934
|
+
};
|
|
935
|
+
}
|
|
936
|
+
static types() {
|
|
937
|
+
return {
|
|
938
|
+
documentId: 'string',
|
|
939
|
+
};
|
|
940
|
+
}
|
|
941
|
+
constructor(map) {
|
|
942
|
+
super(map);
|
|
943
|
+
}
|
|
944
|
+
}
|
|
945
|
+
exports.PreviewDocumentRequest = PreviewDocumentRequest;
|
|
946
|
+
class PreviewDocumentResponseBody extends $tea.Model {
|
|
947
|
+
static names() {
|
|
948
|
+
return {
|
|
949
|
+
cost: 'cost',
|
|
950
|
+
data: 'data',
|
|
951
|
+
dataType: 'dataType',
|
|
952
|
+
errCode: 'errCode',
|
|
953
|
+
message: 'message',
|
|
954
|
+
requestId: 'requestId',
|
|
955
|
+
success: 'success',
|
|
956
|
+
time: 'time',
|
|
957
|
+
};
|
|
958
|
+
}
|
|
959
|
+
static types() {
|
|
960
|
+
return {
|
|
961
|
+
cost: 'number',
|
|
962
|
+
data: PreviewDocumentResponseBodyData,
|
|
963
|
+
dataType: 'string',
|
|
964
|
+
errCode: 'string',
|
|
965
|
+
message: 'string',
|
|
966
|
+
requestId: 'string',
|
|
967
|
+
success: 'boolean',
|
|
968
|
+
time: 'string',
|
|
969
|
+
};
|
|
970
|
+
}
|
|
971
|
+
constructor(map) {
|
|
972
|
+
super(map);
|
|
973
|
+
}
|
|
974
|
+
}
|
|
975
|
+
exports.PreviewDocumentResponseBody = PreviewDocumentResponseBody;
|
|
976
|
+
class PreviewDocumentResponse extends $tea.Model {
|
|
977
|
+
static names() {
|
|
978
|
+
return {
|
|
979
|
+
headers: 'headers',
|
|
980
|
+
statusCode: 'statusCode',
|
|
981
|
+
body: 'body',
|
|
982
|
+
};
|
|
983
|
+
}
|
|
984
|
+
static types() {
|
|
985
|
+
return {
|
|
986
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
987
|
+
statusCode: 'number',
|
|
988
|
+
body: PreviewDocumentResponseBody,
|
|
989
|
+
};
|
|
990
|
+
}
|
|
991
|
+
constructor(map) {
|
|
992
|
+
super(map);
|
|
993
|
+
}
|
|
994
|
+
}
|
|
995
|
+
exports.PreviewDocumentResponse = PreviewDocumentResponse;
|
|
996
|
+
class ReIndexRequest extends $tea.Model {
|
|
997
|
+
static names() {
|
|
998
|
+
return {
|
|
999
|
+
documentId: 'documentId',
|
|
1000
|
+
};
|
|
1001
|
+
}
|
|
1002
|
+
static types() {
|
|
1003
|
+
return {
|
|
1004
|
+
documentId: 'string',
|
|
1005
|
+
};
|
|
1006
|
+
}
|
|
1007
|
+
constructor(map) {
|
|
1008
|
+
super(map);
|
|
1009
|
+
}
|
|
1010
|
+
}
|
|
1011
|
+
exports.ReIndexRequest = ReIndexRequest;
|
|
1012
|
+
class ReIndexResponseBody extends $tea.Model {
|
|
1013
|
+
static names() {
|
|
1014
|
+
return {
|
|
1015
|
+
cost: 'cost',
|
|
1016
|
+
data: 'data',
|
|
1017
|
+
dataType: 'dataType',
|
|
1018
|
+
errCode: 'errCode',
|
|
1019
|
+
message: 'message',
|
|
1020
|
+
requestId: 'requestId',
|
|
1021
|
+
success: 'success',
|
|
1022
|
+
time: 'time',
|
|
1023
|
+
};
|
|
1024
|
+
}
|
|
1025
|
+
static types() {
|
|
1026
|
+
return {
|
|
1027
|
+
cost: 'number',
|
|
1028
|
+
data: 'string',
|
|
1029
|
+
dataType: 'string',
|
|
1030
|
+
errCode: 'string',
|
|
1031
|
+
message: 'string',
|
|
1032
|
+
requestId: 'string',
|
|
1033
|
+
success: 'boolean',
|
|
1034
|
+
time: 'string',
|
|
1035
|
+
};
|
|
1036
|
+
}
|
|
1037
|
+
constructor(map) {
|
|
1038
|
+
super(map);
|
|
1039
|
+
}
|
|
1040
|
+
}
|
|
1041
|
+
exports.ReIndexResponseBody = ReIndexResponseBody;
|
|
1042
|
+
class ReIndexResponse extends $tea.Model {
|
|
1043
|
+
static names() {
|
|
1044
|
+
return {
|
|
1045
|
+
headers: 'headers',
|
|
1046
|
+
statusCode: 'statusCode',
|
|
1047
|
+
body: 'body',
|
|
1048
|
+
};
|
|
1049
|
+
}
|
|
1050
|
+
static types() {
|
|
1051
|
+
return {
|
|
1052
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
1053
|
+
statusCode: 'number',
|
|
1054
|
+
body: ReIndexResponseBody,
|
|
1055
|
+
};
|
|
1056
|
+
}
|
|
1057
|
+
constructor(map) {
|
|
1058
|
+
super(map);
|
|
1059
|
+
}
|
|
1060
|
+
}
|
|
1061
|
+
exports.ReIndexResponse = ReIndexResponse;
|
|
1062
|
+
class RecallDocumentRequest extends $tea.Model {
|
|
1063
|
+
static names() {
|
|
1064
|
+
return {
|
|
1065
|
+
filters: 'filters',
|
|
1066
|
+
query: 'query',
|
|
1067
|
+
rearrangement: 'rearrangement',
|
|
1068
|
+
topK: 'topK',
|
|
1069
|
+
};
|
|
1070
|
+
}
|
|
1071
|
+
static types() {
|
|
1072
|
+
return {
|
|
1073
|
+
filters: { 'type': 'array', 'itemType': RecallDocumentRequestFilters },
|
|
1074
|
+
query: 'string',
|
|
1075
|
+
rearrangement: 'boolean',
|
|
1076
|
+
topK: 'number',
|
|
1077
|
+
};
|
|
1078
|
+
}
|
|
1079
|
+
constructor(map) {
|
|
1080
|
+
super(map);
|
|
1081
|
+
}
|
|
1082
|
+
}
|
|
1083
|
+
exports.RecallDocumentRequest = RecallDocumentRequest;
|
|
1084
|
+
class RecallDocumentResponseBody extends $tea.Model {
|
|
1085
|
+
static names() {
|
|
1086
|
+
return {
|
|
1087
|
+
cost: 'cost',
|
|
1088
|
+
data: 'data',
|
|
1089
|
+
dataType: 'dataType',
|
|
1090
|
+
errCode: 'errCode',
|
|
1091
|
+
message: 'message',
|
|
1092
|
+
requestId: 'requestId',
|
|
1093
|
+
success: 'success',
|
|
1094
|
+
time: 'time',
|
|
1095
|
+
};
|
|
1096
|
+
}
|
|
1097
|
+
static types() {
|
|
1098
|
+
return {
|
|
1099
|
+
cost: 'number',
|
|
1100
|
+
data: RecallDocumentResponseBodyData,
|
|
1101
|
+
dataType: 'string',
|
|
1102
|
+
errCode: 'string',
|
|
1103
|
+
message: 'string',
|
|
1104
|
+
requestId: 'string',
|
|
1105
|
+
success: 'boolean',
|
|
1106
|
+
time: 'string',
|
|
1107
|
+
};
|
|
1108
|
+
}
|
|
1109
|
+
constructor(map) {
|
|
1110
|
+
super(map);
|
|
1111
|
+
}
|
|
1112
|
+
}
|
|
1113
|
+
exports.RecallDocumentResponseBody = RecallDocumentResponseBody;
|
|
1114
|
+
class RecallDocumentResponse extends $tea.Model {
|
|
1115
|
+
static names() {
|
|
1116
|
+
return {
|
|
1117
|
+
headers: 'headers',
|
|
1118
|
+
statusCode: 'statusCode',
|
|
1119
|
+
body: 'body',
|
|
1120
|
+
};
|
|
1121
|
+
}
|
|
1122
|
+
static types() {
|
|
1123
|
+
return {
|
|
1124
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
1125
|
+
statusCode: 'number',
|
|
1126
|
+
body: RecallDocumentResponseBody,
|
|
1127
|
+
};
|
|
1128
|
+
}
|
|
1129
|
+
constructor(map) {
|
|
1130
|
+
super(map);
|
|
1131
|
+
}
|
|
1132
|
+
}
|
|
1133
|
+
exports.RecallDocumentResponse = RecallDocumentResponse;
|
|
1134
|
+
class RunChatResultGenerationRequest extends $tea.Model {
|
|
1135
|
+
static names() {
|
|
1136
|
+
return {
|
|
1137
|
+
inferenceParameters: 'inferenceParameters',
|
|
1138
|
+
messages: 'messages',
|
|
1139
|
+
modelId: 'modelId',
|
|
1140
|
+
sessionId: 'sessionId',
|
|
1141
|
+
stream: 'stream',
|
|
1142
|
+
tools: 'tools',
|
|
1143
|
+
};
|
|
1144
|
+
}
|
|
1145
|
+
static types() {
|
|
1146
|
+
return {
|
|
1147
|
+
inferenceParameters: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
1148
|
+
messages: { 'type': 'array', 'itemType': RunChatResultGenerationRequestMessages },
|
|
1149
|
+
modelId: 'string',
|
|
1150
|
+
sessionId: 'string',
|
|
1151
|
+
stream: 'boolean',
|
|
1152
|
+
tools: { 'type': 'array', 'itemType': RunChatResultGenerationRequestTools },
|
|
1153
|
+
};
|
|
1154
|
+
}
|
|
1155
|
+
constructor(map) {
|
|
1156
|
+
super(map);
|
|
1157
|
+
}
|
|
1158
|
+
}
|
|
1159
|
+
exports.RunChatResultGenerationRequest = RunChatResultGenerationRequest;
|
|
1160
|
+
class RunChatResultGenerationResponseBody extends $tea.Model {
|
|
1161
|
+
static names() {
|
|
1162
|
+
return {
|
|
1163
|
+
choices: 'choices',
|
|
1164
|
+
created: 'created',
|
|
1165
|
+
id: 'id',
|
|
1166
|
+
modelId: 'modelId',
|
|
1167
|
+
requestId: 'requestId',
|
|
1168
|
+
time: 'time',
|
|
1169
|
+
totalTokens: 'totalTokens',
|
|
1170
|
+
usage: 'usage',
|
|
1171
|
+
};
|
|
1172
|
+
}
|
|
1173
|
+
static types() {
|
|
1174
|
+
return {
|
|
1175
|
+
choices: { 'type': 'array', 'itemType': RunChatResultGenerationResponseBodyChoices },
|
|
1176
|
+
created: 'number',
|
|
1177
|
+
id: 'string',
|
|
1178
|
+
modelId: 'string',
|
|
1179
|
+
requestId: 'string',
|
|
1180
|
+
time: 'string',
|
|
1181
|
+
totalTokens: 'number',
|
|
1182
|
+
usage: RunChatResultGenerationResponseBodyUsage,
|
|
1183
|
+
};
|
|
1184
|
+
}
|
|
1185
|
+
constructor(map) {
|
|
1186
|
+
super(map);
|
|
1187
|
+
}
|
|
1188
|
+
}
|
|
1189
|
+
exports.RunChatResultGenerationResponseBody = RunChatResultGenerationResponseBody;
|
|
1190
|
+
class RunChatResultGenerationResponse extends $tea.Model {
|
|
1191
|
+
static names() {
|
|
1192
|
+
return {
|
|
1193
|
+
headers: 'headers',
|
|
1194
|
+
statusCode: 'statusCode',
|
|
1195
|
+
body: 'body',
|
|
1196
|
+
};
|
|
1197
|
+
}
|
|
1198
|
+
static types() {
|
|
1199
|
+
return {
|
|
1200
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
1201
|
+
statusCode: 'number',
|
|
1202
|
+
body: RunChatResultGenerationResponseBody,
|
|
1203
|
+
};
|
|
1204
|
+
}
|
|
1205
|
+
constructor(map) {
|
|
1206
|
+
super(map);
|
|
1207
|
+
}
|
|
1208
|
+
}
|
|
1209
|
+
exports.RunChatResultGenerationResponse = RunChatResultGenerationResponse;
|
|
1210
|
+
class UpdateDocumentRequest extends $tea.Model {
|
|
1211
|
+
static names() {
|
|
1212
|
+
return {
|
|
1213
|
+
docId: 'docId',
|
|
1214
|
+
libraryId: 'libraryId',
|
|
1215
|
+
meta: 'meta',
|
|
1216
|
+
title: 'title',
|
|
1217
|
+
};
|
|
1218
|
+
}
|
|
1219
|
+
static types() {
|
|
1220
|
+
return {
|
|
1221
|
+
docId: 'string',
|
|
1222
|
+
libraryId: 'string',
|
|
1223
|
+
meta: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
1224
|
+
title: 'string',
|
|
1225
|
+
};
|
|
1226
|
+
}
|
|
1227
|
+
constructor(map) {
|
|
1228
|
+
super(map);
|
|
1229
|
+
}
|
|
1230
|
+
}
|
|
1231
|
+
exports.UpdateDocumentRequest = UpdateDocumentRequest;
|
|
1232
|
+
class UpdateDocumentResponseBody extends $tea.Model {
|
|
1233
|
+
static names() {
|
|
1234
|
+
return {
|
|
1235
|
+
cost: 'cost',
|
|
1236
|
+
data: 'data',
|
|
1237
|
+
dataType: 'dataType',
|
|
1238
|
+
errCode: 'errCode',
|
|
1239
|
+
message: 'message',
|
|
1240
|
+
requestId: 'requestId',
|
|
1241
|
+
success: 'success',
|
|
1242
|
+
time: 'time',
|
|
1243
|
+
};
|
|
1244
|
+
}
|
|
1245
|
+
static types() {
|
|
1246
|
+
return {
|
|
1247
|
+
cost: 'number',
|
|
1248
|
+
data: 'string',
|
|
1249
|
+
dataType: 'string',
|
|
1250
|
+
errCode: 'string',
|
|
1251
|
+
message: 'string',
|
|
1252
|
+
requestId: 'string',
|
|
1253
|
+
success: 'boolean',
|
|
1254
|
+
time: 'string',
|
|
1255
|
+
};
|
|
1256
|
+
}
|
|
1257
|
+
constructor(map) {
|
|
1258
|
+
super(map);
|
|
1259
|
+
}
|
|
1260
|
+
}
|
|
1261
|
+
exports.UpdateDocumentResponseBody = UpdateDocumentResponseBody;
|
|
1262
|
+
class UpdateDocumentResponse extends $tea.Model {
|
|
1263
|
+
static names() {
|
|
1264
|
+
return {
|
|
1265
|
+
headers: 'headers',
|
|
1266
|
+
statusCode: 'statusCode',
|
|
1267
|
+
body: 'body',
|
|
1268
|
+
};
|
|
1269
|
+
}
|
|
1270
|
+
static types() {
|
|
1271
|
+
return {
|
|
1272
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
1273
|
+
statusCode: 'number',
|
|
1274
|
+
body: UpdateDocumentResponseBody,
|
|
1275
|
+
};
|
|
1276
|
+
}
|
|
1277
|
+
constructor(map) {
|
|
1278
|
+
super(map);
|
|
1279
|
+
}
|
|
1280
|
+
}
|
|
1281
|
+
exports.UpdateDocumentResponse = UpdateDocumentResponse;
|
|
1282
|
+
class UpdateLibraryRequest extends $tea.Model {
|
|
1283
|
+
static names() {
|
|
1284
|
+
return {
|
|
1285
|
+
description: 'description',
|
|
1286
|
+
indexSetting: 'indexSetting',
|
|
1287
|
+
libraryId: 'libraryId',
|
|
1288
|
+
libraryName: 'libraryName',
|
|
1289
|
+
};
|
|
1290
|
+
}
|
|
1291
|
+
static types() {
|
|
1292
|
+
return {
|
|
1293
|
+
description: 'string',
|
|
1294
|
+
indexSetting: UpdateLibraryRequestIndexSetting,
|
|
1295
|
+
libraryId: 'string',
|
|
1296
|
+
libraryName: 'string',
|
|
1297
|
+
};
|
|
1298
|
+
}
|
|
1299
|
+
constructor(map) {
|
|
1300
|
+
super(map);
|
|
1301
|
+
}
|
|
1302
|
+
}
|
|
1303
|
+
exports.UpdateLibraryRequest = UpdateLibraryRequest;
|
|
1304
|
+
class UpdateLibraryResponseBody extends $tea.Model {
|
|
1305
|
+
static names() {
|
|
1306
|
+
return {
|
|
1307
|
+
cost: 'cost',
|
|
1308
|
+
data: 'data',
|
|
1309
|
+
dataType: 'dataType',
|
|
1310
|
+
errCode: 'errCode',
|
|
1311
|
+
message: 'message',
|
|
1312
|
+
requestId: 'requestId',
|
|
1313
|
+
success: 'success',
|
|
1314
|
+
time: 'time',
|
|
1315
|
+
};
|
|
1316
|
+
}
|
|
1317
|
+
static types() {
|
|
1318
|
+
return {
|
|
1319
|
+
cost: 'number',
|
|
1320
|
+
data: 'string',
|
|
1321
|
+
dataType: 'string',
|
|
1322
|
+
errCode: 'string',
|
|
1323
|
+
message: 'string',
|
|
1324
|
+
requestId: 'string',
|
|
1325
|
+
success: 'boolean',
|
|
1326
|
+
time: 'string',
|
|
1327
|
+
};
|
|
1328
|
+
}
|
|
1329
|
+
constructor(map) {
|
|
1330
|
+
super(map);
|
|
1331
|
+
}
|
|
1332
|
+
}
|
|
1333
|
+
exports.UpdateLibraryResponseBody = UpdateLibraryResponseBody;
|
|
1334
|
+
class UpdateLibraryResponse extends $tea.Model {
|
|
1335
|
+
static names() {
|
|
1336
|
+
return {
|
|
1337
|
+
headers: 'headers',
|
|
1338
|
+
statusCode: 'statusCode',
|
|
1339
|
+
body: 'body',
|
|
1340
|
+
};
|
|
1341
|
+
}
|
|
1342
|
+
static types() {
|
|
1343
|
+
return {
|
|
1344
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
1345
|
+
statusCode: 'number',
|
|
1346
|
+
body: UpdateLibraryResponseBody,
|
|
1347
|
+
};
|
|
1348
|
+
}
|
|
1349
|
+
constructor(map) {
|
|
1350
|
+
super(map);
|
|
1351
|
+
}
|
|
1352
|
+
}
|
|
1353
|
+
exports.UpdateLibraryResponse = UpdateLibraryResponse;
|
|
1354
|
+
class UploadDocumentRequest extends $tea.Model {
|
|
1355
|
+
static names() {
|
|
1356
|
+
return {
|
|
1357
|
+
data: 'data',
|
|
1358
|
+
fileName: 'fileName',
|
|
1359
|
+
fileUrl: 'fileUrl',
|
|
1360
|
+
libraryId: 'libraryId',
|
|
1361
|
+
};
|
|
1362
|
+
}
|
|
1363
|
+
static types() {
|
|
1364
|
+
return {
|
|
1365
|
+
data: 'string',
|
|
1366
|
+
fileName: 'string',
|
|
1367
|
+
fileUrl: 'string',
|
|
1368
|
+
libraryId: 'string',
|
|
1369
|
+
};
|
|
1370
|
+
}
|
|
1371
|
+
constructor(map) {
|
|
1372
|
+
super(map);
|
|
1373
|
+
}
|
|
1374
|
+
}
|
|
1375
|
+
exports.UploadDocumentRequest = UploadDocumentRequest;
|
|
1376
|
+
class UploadDocumentAdvanceRequest extends $tea.Model {
|
|
1377
|
+
static names() {
|
|
1378
|
+
return {
|
|
1379
|
+
data: 'data',
|
|
1380
|
+
fileName: 'fileName',
|
|
1381
|
+
fileUrlObject: 'fileUrl',
|
|
1382
|
+
libraryId: 'libraryId',
|
|
1383
|
+
};
|
|
1384
|
+
}
|
|
1385
|
+
static types() {
|
|
1386
|
+
return {
|
|
1387
|
+
data: 'string',
|
|
1388
|
+
fileName: 'string',
|
|
1389
|
+
fileUrlObject: 'Readable',
|
|
1390
|
+
libraryId: 'string',
|
|
1391
|
+
};
|
|
1392
|
+
}
|
|
1393
|
+
constructor(map) {
|
|
1394
|
+
super(map);
|
|
1395
|
+
}
|
|
1396
|
+
}
|
|
1397
|
+
exports.UploadDocumentAdvanceRequest = UploadDocumentAdvanceRequest;
|
|
1398
|
+
class UploadDocumentResponseBody extends $tea.Model {
|
|
1399
|
+
static names() {
|
|
1400
|
+
return {
|
|
1401
|
+
cost: 'cost',
|
|
1402
|
+
data: 'data',
|
|
1403
|
+
dataType: 'dataType',
|
|
1404
|
+
errCode: 'errCode',
|
|
1405
|
+
message: 'message',
|
|
1406
|
+
requestId: 'requestId',
|
|
1407
|
+
success: 'success',
|
|
1408
|
+
time: 'time',
|
|
1409
|
+
};
|
|
1410
|
+
}
|
|
1411
|
+
static types() {
|
|
1412
|
+
return {
|
|
1413
|
+
cost: 'number',
|
|
1414
|
+
data: 'string',
|
|
1415
|
+
dataType: 'string',
|
|
1416
|
+
errCode: 'string',
|
|
1417
|
+
message: 'string',
|
|
1418
|
+
requestId: 'string',
|
|
1419
|
+
success: 'boolean',
|
|
1420
|
+
time: 'string',
|
|
1421
|
+
};
|
|
1422
|
+
}
|
|
1423
|
+
constructor(map) {
|
|
1424
|
+
super(map);
|
|
1425
|
+
}
|
|
1426
|
+
}
|
|
1427
|
+
exports.UploadDocumentResponseBody = UploadDocumentResponseBody;
|
|
1428
|
+
class UploadDocumentResponse extends $tea.Model {
|
|
1429
|
+
static names() {
|
|
1430
|
+
return {
|
|
1431
|
+
headers: 'headers',
|
|
1432
|
+
statusCode: 'statusCode',
|
|
1433
|
+
body: 'body',
|
|
1434
|
+
};
|
|
1435
|
+
}
|
|
1436
|
+
static types() {
|
|
1437
|
+
return {
|
|
1438
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
1439
|
+
statusCode: 'number',
|
|
1440
|
+
body: UploadDocumentResponseBody,
|
|
1441
|
+
};
|
|
1442
|
+
}
|
|
1443
|
+
constructor(map) {
|
|
1444
|
+
super(map);
|
|
1445
|
+
}
|
|
1446
|
+
}
|
|
1447
|
+
exports.UploadDocumentResponse = UploadDocumentResponse;
|
|
1448
|
+
class CreateLibraryRequestIndexSettingChunkStrategy extends $tea.Model {
|
|
1449
|
+
static names() {
|
|
1450
|
+
return {
|
|
1451
|
+
docTreeSplit: 'docTreeSplit',
|
|
1452
|
+
docTreeSplitSize: 'docTreeSplitSize',
|
|
1453
|
+
enhanceGraph: 'enhanceGraph',
|
|
1454
|
+
enhanceTable: 'enhanceTable',
|
|
1455
|
+
overlap: 'overlap',
|
|
1456
|
+
sentenceSplit: 'sentenceSplit',
|
|
1457
|
+
sentenceSplitSize: 'sentenceSplitSize',
|
|
1458
|
+
size: 'size',
|
|
1459
|
+
split: 'split',
|
|
1460
|
+
};
|
|
1461
|
+
}
|
|
1462
|
+
static types() {
|
|
1463
|
+
return {
|
|
1464
|
+
docTreeSplit: 'boolean',
|
|
1465
|
+
docTreeSplitSize: 'number',
|
|
1466
|
+
enhanceGraph: 'boolean',
|
|
1467
|
+
enhanceTable: 'boolean',
|
|
1468
|
+
overlap: 'number',
|
|
1469
|
+
sentenceSplit: 'boolean',
|
|
1470
|
+
sentenceSplitSize: 'number',
|
|
1471
|
+
size: 'number',
|
|
1472
|
+
split: 'boolean',
|
|
1473
|
+
};
|
|
1474
|
+
}
|
|
1475
|
+
constructor(map) {
|
|
1476
|
+
super(map);
|
|
1477
|
+
}
|
|
1478
|
+
}
|
|
1479
|
+
exports.CreateLibraryRequestIndexSettingChunkStrategy = CreateLibraryRequestIndexSettingChunkStrategy;
|
|
1480
|
+
class CreateLibraryRequestIndexSettingModelConfig extends $tea.Model {
|
|
1481
|
+
static names() {
|
|
1482
|
+
return {
|
|
1483
|
+
temperature: 'temperature',
|
|
1484
|
+
topP: 'topP',
|
|
1485
|
+
};
|
|
1486
|
+
}
|
|
1487
|
+
static types() {
|
|
1488
|
+
return {
|
|
1489
|
+
temperature: 'number',
|
|
1490
|
+
topP: 'number',
|
|
1491
|
+
};
|
|
1492
|
+
}
|
|
1493
|
+
constructor(map) {
|
|
1494
|
+
super(map);
|
|
1495
|
+
}
|
|
1496
|
+
}
|
|
1497
|
+
exports.CreateLibraryRequestIndexSettingModelConfig = CreateLibraryRequestIndexSettingModelConfig;
|
|
1498
|
+
class CreateLibraryRequestIndexSettingQueryEnhancer extends $tea.Model {
|
|
1499
|
+
static names() {
|
|
1500
|
+
return {
|
|
1501
|
+
enableFollowUp: 'enableFollowUp',
|
|
1502
|
+
enableMultiQuery: 'enableMultiQuery',
|
|
1503
|
+
enableOpenQa: 'enableOpenQa',
|
|
1504
|
+
enableQueryRewrite: 'enableQueryRewrite',
|
|
1505
|
+
enableSession: 'enableSession',
|
|
1506
|
+
localKnowledgeId: 'localKnowledgeId',
|
|
1507
|
+
withDocumentReference: 'withDocumentReference',
|
|
1508
|
+
};
|
|
1509
|
+
}
|
|
1510
|
+
static types() {
|
|
1511
|
+
return {
|
|
1512
|
+
enableFollowUp: 'boolean',
|
|
1513
|
+
enableMultiQuery: 'boolean',
|
|
1514
|
+
enableOpenQa: 'boolean',
|
|
1515
|
+
enableQueryRewrite: 'boolean',
|
|
1516
|
+
enableSession: 'boolean',
|
|
1517
|
+
localKnowledgeId: 'string',
|
|
1518
|
+
withDocumentReference: 'boolean',
|
|
1519
|
+
};
|
|
1520
|
+
}
|
|
1521
|
+
constructor(map) {
|
|
1522
|
+
super(map);
|
|
1523
|
+
}
|
|
1524
|
+
}
|
|
1525
|
+
exports.CreateLibraryRequestIndexSettingQueryEnhancer = CreateLibraryRequestIndexSettingQueryEnhancer;
|
|
1526
|
+
class CreateLibraryRequestIndexSettingRecallStrategy extends $tea.Model {
|
|
1527
|
+
static names() {
|
|
1528
|
+
return {
|
|
1529
|
+
documentRankType: 'documentRankType',
|
|
1530
|
+
limit: 'limit',
|
|
1531
|
+
};
|
|
1532
|
+
}
|
|
1533
|
+
static types() {
|
|
1534
|
+
return {
|
|
1535
|
+
documentRankType: 'string',
|
|
1536
|
+
limit: 'number',
|
|
1537
|
+
};
|
|
1538
|
+
}
|
|
1539
|
+
constructor(map) {
|
|
1540
|
+
super(map);
|
|
1541
|
+
}
|
|
1542
|
+
}
|
|
1543
|
+
exports.CreateLibraryRequestIndexSettingRecallStrategy = CreateLibraryRequestIndexSettingRecallStrategy;
|
|
1544
|
+
class CreateLibraryRequestIndexSettingTextIndexSetting extends $tea.Model {
|
|
1545
|
+
static names() {
|
|
1546
|
+
return {
|
|
1547
|
+
category: 'category',
|
|
1548
|
+
enable: 'enable',
|
|
1549
|
+
indexAnalyzer: 'indexAnalyzer',
|
|
1550
|
+
rankThreshold: 'rankThreshold',
|
|
1551
|
+
searchAnalyzer: 'searchAnalyzer',
|
|
1552
|
+
topK: 'topK',
|
|
1553
|
+
};
|
|
1554
|
+
}
|
|
1555
|
+
static types() {
|
|
1556
|
+
return {
|
|
1557
|
+
category: 'string',
|
|
1558
|
+
enable: 'boolean',
|
|
1559
|
+
indexAnalyzer: 'string',
|
|
1560
|
+
rankThreshold: 'number',
|
|
1561
|
+
searchAnalyzer: 'string',
|
|
1562
|
+
topK: 'number',
|
|
1563
|
+
};
|
|
1564
|
+
}
|
|
1565
|
+
constructor(map) {
|
|
1566
|
+
super(map);
|
|
1567
|
+
}
|
|
1568
|
+
}
|
|
1569
|
+
exports.CreateLibraryRequestIndexSettingTextIndexSetting = CreateLibraryRequestIndexSettingTextIndexSetting;
|
|
1570
|
+
class CreateLibraryRequestIndexSettingVectorIndexSetting extends $tea.Model {
|
|
1571
|
+
static names() {
|
|
1572
|
+
return {
|
|
1573
|
+
category: 'category',
|
|
1574
|
+
embeddingType: 'embeddingType',
|
|
1575
|
+
enable: 'enable',
|
|
1576
|
+
rankThreshold: 'rankThreshold',
|
|
1577
|
+
topK: 'topK',
|
|
1578
|
+
};
|
|
1579
|
+
}
|
|
1580
|
+
static types() {
|
|
1581
|
+
return {
|
|
1582
|
+
category: 'string',
|
|
1583
|
+
embeddingType: 'string',
|
|
1584
|
+
enable: 'boolean',
|
|
1585
|
+
rankThreshold: 'number',
|
|
1586
|
+
topK: 'number',
|
|
1587
|
+
};
|
|
1588
|
+
}
|
|
1589
|
+
constructor(map) {
|
|
1590
|
+
super(map);
|
|
1591
|
+
}
|
|
1592
|
+
}
|
|
1593
|
+
exports.CreateLibraryRequestIndexSettingVectorIndexSetting = CreateLibraryRequestIndexSettingVectorIndexSetting;
|
|
1594
|
+
class CreateLibraryRequestIndexSetting extends $tea.Model {
|
|
1595
|
+
static names() {
|
|
1596
|
+
return {
|
|
1597
|
+
chunkStrategy: 'chunkStrategy',
|
|
1598
|
+
modelConfig: 'modelConfig',
|
|
1599
|
+
promptRoleStyle: 'promptRoleStyle',
|
|
1600
|
+
queryEnhancer: 'queryEnhancer',
|
|
1601
|
+
recallStrategy: 'recallStrategy',
|
|
1602
|
+
textIndexSetting: 'textIndexSetting',
|
|
1603
|
+
vectorIndexSetting: 'vectorIndexSetting',
|
|
1604
|
+
};
|
|
1605
|
+
}
|
|
1606
|
+
static types() {
|
|
1607
|
+
return {
|
|
1608
|
+
chunkStrategy: CreateLibraryRequestIndexSettingChunkStrategy,
|
|
1609
|
+
modelConfig: CreateLibraryRequestIndexSettingModelConfig,
|
|
1610
|
+
promptRoleStyle: 'string',
|
|
1611
|
+
queryEnhancer: CreateLibraryRequestIndexSettingQueryEnhancer,
|
|
1612
|
+
recallStrategy: CreateLibraryRequestIndexSettingRecallStrategy,
|
|
1613
|
+
textIndexSetting: CreateLibraryRequestIndexSettingTextIndexSetting,
|
|
1614
|
+
vectorIndexSetting: CreateLibraryRequestIndexSettingVectorIndexSetting,
|
|
1615
|
+
};
|
|
1616
|
+
}
|
|
1617
|
+
constructor(map) {
|
|
1618
|
+
super(map);
|
|
1619
|
+
}
|
|
1620
|
+
}
|
|
1621
|
+
exports.CreateLibraryRequestIndexSetting = CreateLibraryRequestIndexSetting;
|
|
1622
|
+
class CreatePredefinedDocumentRequestChunks extends $tea.Model {
|
|
1623
|
+
static names() {
|
|
1624
|
+
return {
|
|
1625
|
+
chunkMeta: 'chunkMeta',
|
|
1626
|
+
chunkOrder: 'chunkOrder',
|
|
1627
|
+
chunkText: 'chunkText',
|
|
1628
|
+
chunkType: 'chunkType',
|
|
1629
|
+
};
|
|
1630
|
+
}
|
|
1631
|
+
static types() {
|
|
1632
|
+
return {
|
|
1633
|
+
chunkMeta: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
1634
|
+
chunkOrder: 'number',
|
|
1635
|
+
chunkText: 'string',
|
|
1636
|
+
chunkType: 'string',
|
|
1637
|
+
};
|
|
1638
|
+
}
|
|
1639
|
+
constructor(map) {
|
|
1640
|
+
super(map);
|
|
1641
|
+
}
|
|
1642
|
+
}
|
|
1643
|
+
exports.CreatePredefinedDocumentRequestChunks = CreatePredefinedDocumentRequestChunks;
|
|
1644
|
+
class GetAppConfigResponseBodyData extends $tea.Model {
|
|
1645
|
+
static names() {
|
|
1646
|
+
return {
|
|
1647
|
+
embeddingTypeList: 'embeddingTypeList',
|
|
1648
|
+
frontendConfig: 'frontendConfig',
|
|
1649
|
+
libraryDocumentStatusList: 'libraryDocumentStatusList',
|
|
1650
|
+
llmHelperTypeList: 'llmHelperTypeList',
|
|
1651
|
+
textIndexCategoryList: 'textIndexCategoryList',
|
|
1652
|
+
vectorIndexCategoryList: 'vectorIndexCategoryList',
|
|
1653
|
+
};
|
|
1654
|
+
}
|
|
1655
|
+
static types() {
|
|
1656
|
+
return {
|
|
1657
|
+
embeddingTypeList: { 'type': 'array', 'itemType': { 'type': 'map', 'keyType': 'string', 'valueType': 'string' } },
|
|
1658
|
+
frontendConfig: { 'type': 'map', 'keyType': 'string', 'valueType': 'boolean' },
|
|
1659
|
+
libraryDocumentStatusList: { 'type': 'array', 'itemType': { 'type': 'map', 'keyType': 'string', 'valueType': 'string' } },
|
|
1660
|
+
llmHelperTypeList: { 'type': 'array', 'itemType': { 'type': 'map', 'keyType': 'string', 'valueType': 'string' } },
|
|
1661
|
+
textIndexCategoryList: { 'type': 'array', 'itemType': 'string' },
|
|
1662
|
+
vectorIndexCategoryList: { 'type': 'array', 'itemType': 'string' },
|
|
1663
|
+
};
|
|
1664
|
+
}
|
|
1665
|
+
constructor(map) {
|
|
1666
|
+
super(map);
|
|
1667
|
+
}
|
|
1668
|
+
}
|
|
1669
|
+
exports.GetAppConfigResponseBodyData = GetAppConfigResponseBodyData;
|
|
1670
|
+
class GetDocumentChunkListResponseBodyDataRecordsPos extends $tea.Model {
|
|
1671
|
+
static names() {
|
|
1672
|
+
return {
|
|
1673
|
+
axisArray: 'axisArray',
|
|
1674
|
+
page: 'page',
|
|
1675
|
+
textHighlightArea: 'textHighlightArea',
|
|
1676
|
+
};
|
|
1677
|
+
}
|
|
1678
|
+
static types() {
|
|
1679
|
+
return {
|
|
1680
|
+
axisArray: { 'type': 'array', 'itemType': 'number' },
|
|
1681
|
+
page: 'number',
|
|
1682
|
+
textHighlightArea: { 'type': 'array', 'itemType': 'number' },
|
|
1683
|
+
};
|
|
1684
|
+
}
|
|
1685
|
+
constructor(map) {
|
|
1686
|
+
super(map);
|
|
1687
|
+
}
|
|
1688
|
+
}
|
|
1689
|
+
exports.GetDocumentChunkListResponseBodyDataRecordsPos = GetDocumentChunkListResponseBodyDataRecordsPos;
|
|
1690
|
+
class GetDocumentChunkListResponseBodyDataRecords extends $tea.Model {
|
|
1691
|
+
static names() {
|
|
1692
|
+
return {
|
|
1693
|
+
chunkId: 'chunkId',
|
|
1694
|
+
chunkMeta: 'chunkMeta',
|
|
1695
|
+
chunkOssUrl: 'chunkOssUrl',
|
|
1696
|
+
chunkText: 'chunkText',
|
|
1697
|
+
chunkType: 'chunkType',
|
|
1698
|
+
docId: 'docId',
|
|
1699
|
+
fileType: 'fileType',
|
|
1700
|
+
libraryId: 'libraryId',
|
|
1701
|
+
libraryName: 'libraryName',
|
|
1702
|
+
nextChunkId: 'nextChunkId',
|
|
1703
|
+
pos: 'pos',
|
|
1704
|
+
preChunkId: 'preChunkId',
|
|
1705
|
+
score: 'score',
|
|
1706
|
+
title: 'title',
|
|
1707
|
+
};
|
|
1708
|
+
}
|
|
1709
|
+
static types() {
|
|
1710
|
+
return {
|
|
1711
|
+
chunkId: 'string',
|
|
1712
|
+
chunkMeta: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
1713
|
+
chunkOssUrl: 'string',
|
|
1714
|
+
chunkText: 'string',
|
|
1715
|
+
chunkType: 'string',
|
|
1716
|
+
docId: 'string',
|
|
1717
|
+
fileType: 'string',
|
|
1718
|
+
libraryId: 'string',
|
|
1719
|
+
libraryName: 'string',
|
|
1720
|
+
nextChunkId: 'string',
|
|
1721
|
+
pos: { 'type': 'array', 'itemType': GetDocumentChunkListResponseBodyDataRecordsPos },
|
|
1722
|
+
preChunkId: 'string',
|
|
1723
|
+
score: 'number',
|
|
1724
|
+
title: 'string',
|
|
1725
|
+
};
|
|
1726
|
+
}
|
|
1727
|
+
constructor(map) {
|
|
1728
|
+
super(map);
|
|
1729
|
+
}
|
|
1730
|
+
}
|
|
1731
|
+
exports.GetDocumentChunkListResponseBodyDataRecords = GetDocumentChunkListResponseBodyDataRecords;
|
|
1732
|
+
class GetDocumentChunkListResponseBodyData extends $tea.Model {
|
|
1733
|
+
static names() {
|
|
1734
|
+
return {
|
|
1735
|
+
currentPage: 'currentPage',
|
|
1736
|
+
pageSize: 'pageSize',
|
|
1737
|
+
records: 'records',
|
|
1738
|
+
totalPages: 'totalPages',
|
|
1739
|
+
totalRecords: 'totalRecords',
|
|
1740
|
+
};
|
|
1741
|
+
}
|
|
1742
|
+
static types() {
|
|
1743
|
+
return {
|
|
1744
|
+
currentPage: 'number',
|
|
1745
|
+
pageSize: 'number',
|
|
1746
|
+
records: { 'type': 'array', 'itemType': GetDocumentChunkListResponseBodyDataRecords },
|
|
1747
|
+
totalPages: 'number',
|
|
1748
|
+
totalRecords: 'number',
|
|
1749
|
+
};
|
|
1750
|
+
}
|
|
1751
|
+
constructor(map) {
|
|
1752
|
+
super(map);
|
|
1753
|
+
}
|
|
1754
|
+
}
|
|
1755
|
+
exports.GetDocumentChunkListResponseBodyData = GetDocumentChunkListResponseBodyData;
|
|
1756
|
+
class GetDocumentListResponseBodyDataRecords extends $tea.Model {
|
|
1757
|
+
static names() {
|
|
1758
|
+
return {
|
|
1759
|
+
docId: 'docId',
|
|
1760
|
+
documentMeta: 'documentMeta',
|
|
1761
|
+
fileType: 'fileType',
|
|
1762
|
+
gmtCreate: 'gmtCreate',
|
|
1763
|
+
gmtModified: 'gmtModified',
|
|
1764
|
+
libraryId: 'libraryId',
|
|
1765
|
+
statusCode: 'statusCode',
|
|
1766
|
+
title: 'title',
|
|
1767
|
+
url: 'url',
|
|
1768
|
+
};
|
|
1769
|
+
}
|
|
1770
|
+
static types() {
|
|
1771
|
+
return {
|
|
1772
|
+
docId: 'string',
|
|
1773
|
+
documentMeta: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
1774
|
+
fileType: 'string',
|
|
1775
|
+
gmtCreate: 'string',
|
|
1776
|
+
gmtModified: 'string',
|
|
1777
|
+
libraryId: 'string',
|
|
1778
|
+
statusCode: 'string',
|
|
1779
|
+
title: 'string',
|
|
1780
|
+
url: 'string',
|
|
1781
|
+
};
|
|
1782
|
+
}
|
|
1783
|
+
constructor(map) {
|
|
1784
|
+
super(map);
|
|
1785
|
+
}
|
|
1786
|
+
}
|
|
1787
|
+
exports.GetDocumentListResponseBodyDataRecords = GetDocumentListResponseBodyDataRecords;
|
|
1788
|
+
class GetDocumentListResponseBodyData extends $tea.Model {
|
|
1789
|
+
static names() {
|
|
1790
|
+
return {
|
|
1791
|
+
currentPage: 'currentPage',
|
|
1792
|
+
pageSize: 'pageSize',
|
|
1793
|
+
records: 'records',
|
|
1794
|
+
totalPages: 'totalPages',
|
|
1795
|
+
totalRecords: 'totalRecords',
|
|
1796
|
+
};
|
|
1797
|
+
}
|
|
1798
|
+
static types() {
|
|
1799
|
+
return {
|
|
1800
|
+
currentPage: 'number',
|
|
1801
|
+
pageSize: 'number',
|
|
1802
|
+
records: { 'type': 'array', 'itemType': GetDocumentListResponseBodyDataRecords },
|
|
1803
|
+
totalPages: 'number',
|
|
1804
|
+
totalRecords: 'number',
|
|
1805
|
+
};
|
|
1806
|
+
}
|
|
1807
|
+
constructor(map) {
|
|
1808
|
+
super(map);
|
|
1809
|
+
}
|
|
1810
|
+
}
|
|
1811
|
+
exports.GetDocumentListResponseBodyData = GetDocumentListResponseBodyData;
|
|
1812
|
+
class GetFilterDocumentListRequestAnd extends $tea.Model {
|
|
1813
|
+
static names() {
|
|
1814
|
+
return {
|
|
1815
|
+
boost: 'boost',
|
|
1816
|
+
key: 'key',
|
|
1817
|
+
operator: 'operator',
|
|
1818
|
+
value: 'value',
|
|
1819
|
+
};
|
|
1820
|
+
}
|
|
1821
|
+
static types() {
|
|
1822
|
+
return {
|
|
1823
|
+
boost: 'number',
|
|
1824
|
+
key: 'string',
|
|
1825
|
+
operator: 'string',
|
|
1826
|
+
value: 'string',
|
|
1827
|
+
};
|
|
1828
|
+
}
|
|
1829
|
+
constructor(map) {
|
|
1830
|
+
super(map);
|
|
1831
|
+
}
|
|
1832
|
+
}
|
|
1833
|
+
exports.GetFilterDocumentListRequestAnd = GetFilterDocumentListRequestAnd;
|
|
1834
|
+
class GetFilterDocumentListRequestOr extends $tea.Model {
|
|
1835
|
+
static names() {
|
|
1836
|
+
return {
|
|
1837
|
+
boost: 'boost',
|
|
1838
|
+
key: 'key',
|
|
1839
|
+
operator: 'operator',
|
|
1840
|
+
value: 'value',
|
|
1841
|
+
};
|
|
1842
|
+
}
|
|
1843
|
+
static types() {
|
|
1844
|
+
return {
|
|
1845
|
+
boost: 'number',
|
|
1846
|
+
key: 'string',
|
|
1847
|
+
operator: 'string',
|
|
1848
|
+
value: 'string',
|
|
1849
|
+
};
|
|
1850
|
+
}
|
|
1851
|
+
constructor(map) {
|
|
1852
|
+
super(map);
|
|
1853
|
+
}
|
|
1854
|
+
}
|
|
1855
|
+
exports.GetFilterDocumentListRequestOr = GetFilterDocumentListRequestOr;
|
|
1856
|
+
class GetFilterDocumentListResponseBodyDataRecords extends $tea.Model {
|
|
1857
|
+
static names() {
|
|
1858
|
+
return {
|
|
1859
|
+
docId: 'docId',
|
|
1860
|
+
documentMeta: 'documentMeta',
|
|
1861
|
+
fileType: 'fileType',
|
|
1862
|
+
gmtCreate: 'gmtCreate',
|
|
1863
|
+
gmtModified: 'gmtModified',
|
|
1864
|
+
libraryId: 'libraryId',
|
|
1865
|
+
statusCode: 'statusCode',
|
|
1866
|
+
title: 'title',
|
|
1867
|
+
url: 'url',
|
|
1868
|
+
};
|
|
1869
|
+
}
|
|
1870
|
+
static types() {
|
|
1871
|
+
return {
|
|
1872
|
+
docId: 'string',
|
|
1873
|
+
documentMeta: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
1874
|
+
fileType: 'string',
|
|
1875
|
+
gmtCreate: 'string',
|
|
1876
|
+
gmtModified: 'string',
|
|
1877
|
+
libraryId: 'string',
|
|
1878
|
+
statusCode: 'string',
|
|
1879
|
+
title: 'string',
|
|
1880
|
+
url: 'string',
|
|
1881
|
+
};
|
|
1882
|
+
}
|
|
1883
|
+
constructor(map) {
|
|
1884
|
+
super(map);
|
|
1885
|
+
}
|
|
1886
|
+
}
|
|
1887
|
+
exports.GetFilterDocumentListResponseBodyDataRecords = GetFilterDocumentListResponseBodyDataRecords;
|
|
1888
|
+
class GetFilterDocumentListResponseBodyData extends $tea.Model {
|
|
1889
|
+
static names() {
|
|
1890
|
+
return {
|
|
1891
|
+
currentPage: 'currentPage',
|
|
1892
|
+
pageSize: 'pageSize',
|
|
1893
|
+
records: 'records',
|
|
1894
|
+
totalPages: 'totalPages',
|
|
1895
|
+
totalRecords: 'totalRecords',
|
|
1896
|
+
};
|
|
1897
|
+
}
|
|
1898
|
+
static types() {
|
|
1899
|
+
return {
|
|
1900
|
+
currentPage: 'number',
|
|
1901
|
+
pageSize: 'number',
|
|
1902
|
+
records: { 'type': 'array', 'itemType': GetFilterDocumentListResponseBodyDataRecords },
|
|
1903
|
+
totalPages: 'number',
|
|
1904
|
+
totalRecords: 'number',
|
|
1905
|
+
};
|
|
1906
|
+
}
|
|
1907
|
+
constructor(map) {
|
|
1908
|
+
super(map);
|
|
1909
|
+
}
|
|
1910
|
+
}
|
|
1911
|
+
exports.GetFilterDocumentListResponseBodyData = GetFilterDocumentListResponseBodyData;
|
|
1912
|
+
class GetLibraryResponseBodyDataIndexSettingChunkStrategy extends $tea.Model {
|
|
1913
|
+
static names() {
|
|
1914
|
+
return {
|
|
1915
|
+
docTreeSplit: 'docTreeSplit',
|
|
1916
|
+
docTreeSplitSize: 'docTreeSplitSize',
|
|
1917
|
+
enhanceGraph: 'enhanceGraph',
|
|
1918
|
+
enhanceTable: 'enhanceTable',
|
|
1919
|
+
overlap: 'overlap',
|
|
1920
|
+
sentenceSplit: 'sentenceSplit',
|
|
1921
|
+
sentenceSplitSize: 'sentenceSplitSize',
|
|
1922
|
+
size: 'size',
|
|
1923
|
+
split: 'split',
|
|
1924
|
+
};
|
|
1925
|
+
}
|
|
1926
|
+
static types() {
|
|
1927
|
+
return {
|
|
1928
|
+
docTreeSplit: 'boolean',
|
|
1929
|
+
docTreeSplitSize: 'number',
|
|
1930
|
+
enhanceGraph: 'boolean',
|
|
1931
|
+
enhanceTable: 'boolean',
|
|
1932
|
+
overlap: 'number',
|
|
1933
|
+
sentenceSplit: 'boolean',
|
|
1934
|
+
sentenceSplitSize: 'number',
|
|
1935
|
+
size: 'number',
|
|
1936
|
+
split: 'boolean',
|
|
1937
|
+
};
|
|
1938
|
+
}
|
|
1939
|
+
constructor(map) {
|
|
1940
|
+
super(map);
|
|
1941
|
+
}
|
|
1942
|
+
}
|
|
1943
|
+
exports.GetLibraryResponseBodyDataIndexSettingChunkStrategy = GetLibraryResponseBodyDataIndexSettingChunkStrategy;
|
|
1944
|
+
class GetLibraryResponseBodyDataIndexSettingModelConfig extends $tea.Model {
|
|
1945
|
+
static names() {
|
|
1946
|
+
return {
|
|
1947
|
+
temperature: 'temperature',
|
|
1948
|
+
topP: 'topP',
|
|
1949
|
+
};
|
|
1950
|
+
}
|
|
1951
|
+
static types() {
|
|
1952
|
+
return {
|
|
1953
|
+
temperature: 'number',
|
|
1954
|
+
topP: 'number',
|
|
1955
|
+
};
|
|
1956
|
+
}
|
|
1957
|
+
constructor(map) {
|
|
1958
|
+
super(map);
|
|
1959
|
+
}
|
|
1960
|
+
}
|
|
1961
|
+
exports.GetLibraryResponseBodyDataIndexSettingModelConfig = GetLibraryResponseBodyDataIndexSettingModelConfig;
|
|
1962
|
+
class GetLibraryResponseBodyDataIndexSettingQueryEnhancer extends $tea.Model {
|
|
1963
|
+
static names() {
|
|
1964
|
+
return {
|
|
1965
|
+
enableFollowUp: 'enableFollowUp',
|
|
1966
|
+
enableMultiQuery: 'enableMultiQuery',
|
|
1967
|
+
enableOpenQa: 'enableOpenQa',
|
|
1968
|
+
enableQueryRewrite: 'enableQueryRewrite',
|
|
1969
|
+
enableSession: 'enableSession',
|
|
1970
|
+
localKnowledgeId: 'localKnowledgeId',
|
|
1971
|
+
withDocumentReference: 'withDocumentReference',
|
|
1972
|
+
};
|
|
1973
|
+
}
|
|
1974
|
+
static types() {
|
|
1975
|
+
return {
|
|
1976
|
+
enableFollowUp: 'boolean',
|
|
1977
|
+
enableMultiQuery: 'boolean',
|
|
1978
|
+
enableOpenQa: 'boolean',
|
|
1979
|
+
enableQueryRewrite: 'boolean',
|
|
1980
|
+
enableSession: 'boolean',
|
|
1981
|
+
localKnowledgeId: 'string',
|
|
1982
|
+
withDocumentReference: 'boolean',
|
|
1983
|
+
};
|
|
1984
|
+
}
|
|
1985
|
+
constructor(map) {
|
|
1986
|
+
super(map);
|
|
1987
|
+
}
|
|
1988
|
+
}
|
|
1989
|
+
exports.GetLibraryResponseBodyDataIndexSettingQueryEnhancer = GetLibraryResponseBodyDataIndexSettingQueryEnhancer;
|
|
1990
|
+
class GetLibraryResponseBodyDataIndexSettingRecallStrategy extends $tea.Model {
|
|
1991
|
+
static names() {
|
|
1992
|
+
return {
|
|
1993
|
+
documentRankType: 'documentRankType',
|
|
1994
|
+
limit: 'limit',
|
|
1995
|
+
};
|
|
1996
|
+
}
|
|
1997
|
+
static types() {
|
|
1998
|
+
return {
|
|
1999
|
+
documentRankType: 'string',
|
|
2000
|
+
limit: 'number',
|
|
2001
|
+
};
|
|
2002
|
+
}
|
|
2003
|
+
constructor(map) {
|
|
2004
|
+
super(map);
|
|
2005
|
+
}
|
|
2006
|
+
}
|
|
2007
|
+
exports.GetLibraryResponseBodyDataIndexSettingRecallStrategy = GetLibraryResponseBodyDataIndexSettingRecallStrategy;
|
|
2008
|
+
class GetLibraryResponseBodyDataIndexSettingTextIndexSetting extends $tea.Model {
|
|
2009
|
+
static names() {
|
|
2010
|
+
return {
|
|
2011
|
+
category: 'category',
|
|
2012
|
+
enable: 'enable',
|
|
2013
|
+
indexAnalyzer: 'indexAnalyzer',
|
|
2014
|
+
rankThreshold: 'rankThreshold',
|
|
2015
|
+
searchAnalyzer: 'searchAnalyzer',
|
|
2016
|
+
topK: 'topK',
|
|
2017
|
+
};
|
|
2018
|
+
}
|
|
2019
|
+
static types() {
|
|
2020
|
+
return {
|
|
2021
|
+
category: 'string',
|
|
2022
|
+
enable: 'boolean',
|
|
2023
|
+
indexAnalyzer: 'string',
|
|
2024
|
+
rankThreshold: 'number',
|
|
2025
|
+
searchAnalyzer: 'string',
|
|
2026
|
+
topK: 'number',
|
|
2027
|
+
};
|
|
2028
|
+
}
|
|
2029
|
+
constructor(map) {
|
|
2030
|
+
super(map);
|
|
2031
|
+
}
|
|
2032
|
+
}
|
|
2033
|
+
exports.GetLibraryResponseBodyDataIndexSettingTextIndexSetting = GetLibraryResponseBodyDataIndexSettingTextIndexSetting;
|
|
2034
|
+
class GetLibraryResponseBodyDataIndexSettingVectorIndexSetting extends $tea.Model {
|
|
2035
|
+
static names() {
|
|
2036
|
+
return {
|
|
2037
|
+
category: 'category',
|
|
2038
|
+
embeddingType: 'embeddingType',
|
|
2039
|
+
enable: 'enable',
|
|
2040
|
+
rankThreshold: 'rankThreshold',
|
|
2041
|
+
topK: 'topK',
|
|
2042
|
+
};
|
|
2043
|
+
}
|
|
2044
|
+
static types() {
|
|
2045
|
+
return {
|
|
2046
|
+
category: 'string',
|
|
2047
|
+
embeddingType: 'string',
|
|
2048
|
+
enable: 'boolean',
|
|
2049
|
+
rankThreshold: 'number',
|
|
2050
|
+
topK: 'number',
|
|
2051
|
+
};
|
|
2052
|
+
}
|
|
2053
|
+
constructor(map) {
|
|
2054
|
+
super(map);
|
|
2055
|
+
}
|
|
2056
|
+
}
|
|
2057
|
+
exports.GetLibraryResponseBodyDataIndexSettingVectorIndexSetting = GetLibraryResponseBodyDataIndexSettingVectorIndexSetting;
|
|
2058
|
+
class GetLibraryResponseBodyDataIndexSetting extends $tea.Model {
|
|
2059
|
+
static names() {
|
|
2060
|
+
return {
|
|
2061
|
+
chunkStrategy: 'chunkStrategy',
|
|
2062
|
+
modelConfig: 'modelConfig',
|
|
2063
|
+
promptRoleStyle: 'promptRoleStyle',
|
|
2064
|
+
queryEnhancer: 'queryEnhancer',
|
|
2065
|
+
recallStrategy: 'recallStrategy',
|
|
2066
|
+
textIndexSetting: 'textIndexSetting',
|
|
2067
|
+
vectorIndexSetting: 'vectorIndexSetting',
|
|
2068
|
+
};
|
|
2069
|
+
}
|
|
2070
|
+
static types() {
|
|
2071
|
+
return {
|
|
2072
|
+
chunkStrategy: GetLibraryResponseBodyDataIndexSettingChunkStrategy,
|
|
2073
|
+
modelConfig: GetLibraryResponseBodyDataIndexSettingModelConfig,
|
|
2074
|
+
promptRoleStyle: 'string',
|
|
2075
|
+
queryEnhancer: GetLibraryResponseBodyDataIndexSettingQueryEnhancer,
|
|
2076
|
+
recallStrategy: GetLibraryResponseBodyDataIndexSettingRecallStrategy,
|
|
2077
|
+
textIndexSetting: GetLibraryResponseBodyDataIndexSettingTextIndexSetting,
|
|
2078
|
+
vectorIndexSetting: GetLibraryResponseBodyDataIndexSettingVectorIndexSetting,
|
|
2079
|
+
};
|
|
2080
|
+
}
|
|
2081
|
+
constructor(map) {
|
|
2082
|
+
super(map);
|
|
2083
|
+
}
|
|
2084
|
+
}
|
|
2085
|
+
exports.GetLibraryResponseBodyDataIndexSetting = GetLibraryResponseBodyDataIndexSetting;
|
|
2086
|
+
class GetLibraryResponseBodyData extends $tea.Model {
|
|
2087
|
+
static names() {
|
|
2088
|
+
return {
|
|
2089
|
+
description: 'description',
|
|
2090
|
+
documentCount: 'documentCount',
|
|
2091
|
+
gmtCreate: 'gmtCreate',
|
|
2092
|
+
gmtModified: 'gmtModified',
|
|
2093
|
+
id: 'id',
|
|
2094
|
+
indexSetting: 'indexSetting',
|
|
2095
|
+
libraryName: 'libraryName',
|
|
2096
|
+
};
|
|
2097
|
+
}
|
|
2098
|
+
static types() {
|
|
2099
|
+
return {
|
|
2100
|
+
description: 'string',
|
|
2101
|
+
documentCount: 'number',
|
|
2102
|
+
gmtCreate: 'string',
|
|
2103
|
+
gmtModified: 'string',
|
|
2104
|
+
id: 'string',
|
|
2105
|
+
indexSetting: GetLibraryResponseBodyDataIndexSetting,
|
|
2106
|
+
libraryName: 'string',
|
|
2107
|
+
};
|
|
2108
|
+
}
|
|
2109
|
+
constructor(map) {
|
|
2110
|
+
super(map);
|
|
2111
|
+
}
|
|
2112
|
+
}
|
|
2113
|
+
exports.GetLibraryResponseBodyData = GetLibraryResponseBodyData;
|
|
2114
|
+
class GetLibraryListResponseBodyDataRecordsIndexSettingChunkStrategy extends $tea.Model {
|
|
2115
|
+
static names() {
|
|
2116
|
+
return {
|
|
2117
|
+
docTreeSplit: 'docTreeSplit',
|
|
2118
|
+
docTreeSplitSize: 'docTreeSplitSize',
|
|
2119
|
+
enhanceGraph: 'enhanceGraph',
|
|
2120
|
+
enhanceTable: 'enhanceTable',
|
|
2121
|
+
overlap: 'overlap',
|
|
2122
|
+
sentenceSplit: 'sentenceSplit',
|
|
2123
|
+
sentenceSplitSize: 'sentenceSplitSize',
|
|
2124
|
+
size: 'size',
|
|
2125
|
+
split: 'split',
|
|
2126
|
+
};
|
|
2127
|
+
}
|
|
2128
|
+
static types() {
|
|
2129
|
+
return {
|
|
2130
|
+
docTreeSplit: 'boolean',
|
|
2131
|
+
docTreeSplitSize: 'number',
|
|
2132
|
+
enhanceGraph: 'boolean',
|
|
2133
|
+
enhanceTable: 'boolean',
|
|
2134
|
+
overlap: 'number',
|
|
2135
|
+
sentenceSplit: 'boolean',
|
|
2136
|
+
sentenceSplitSize: 'number',
|
|
2137
|
+
size: 'number',
|
|
2138
|
+
split: 'boolean',
|
|
2139
|
+
};
|
|
2140
|
+
}
|
|
2141
|
+
constructor(map) {
|
|
2142
|
+
super(map);
|
|
2143
|
+
}
|
|
2144
|
+
}
|
|
2145
|
+
exports.GetLibraryListResponseBodyDataRecordsIndexSettingChunkStrategy = GetLibraryListResponseBodyDataRecordsIndexSettingChunkStrategy;
|
|
2146
|
+
class GetLibraryListResponseBodyDataRecordsIndexSettingModelConfig extends $tea.Model {
|
|
2147
|
+
static names() {
|
|
2148
|
+
return {
|
|
2149
|
+
temperature: 'temperature',
|
|
2150
|
+
topP: 'topP',
|
|
2151
|
+
};
|
|
2152
|
+
}
|
|
2153
|
+
static types() {
|
|
2154
|
+
return {
|
|
2155
|
+
temperature: 'number',
|
|
2156
|
+
topP: 'number',
|
|
2157
|
+
};
|
|
2158
|
+
}
|
|
2159
|
+
constructor(map) {
|
|
2160
|
+
super(map);
|
|
2161
|
+
}
|
|
2162
|
+
}
|
|
2163
|
+
exports.GetLibraryListResponseBodyDataRecordsIndexSettingModelConfig = GetLibraryListResponseBodyDataRecordsIndexSettingModelConfig;
|
|
2164
|
+
class GetLibraryListResponseBodyDataRecordsIndexSettingQueryEnhancer extends $tea.Model {
|
|
2165
|
+
static names() {
|
|
2166
|
+
return {
|
|
2167
|
+
enableFollowUp: 'enableFollowUp',
|
|
2168
|
+
enableMultiQuery: 'enableMultiQuery',
|
|
2169
|
+
enableOpenQa: 'enableOpenQa',
|
|
2170
|
+
enableQueryRewrite: 'enableQueryRewrite',
|
|
2171
|
+
enableSession: 'enableSession',
|
|
2172
|
+
localKnowledgeId: 'localKnowledgeId',
|
|
2173
|
+
withDocumentReference: 'withDocumentReference',
|
|
2174
|
+
};
|
|
2175
|
+
}
|
|
2176
|
+
static types() {
|
|
2177
|
+
return {
|
|
2178
|
+
enableFollowUp: 'boolean',
|
|
2179
|
+
enableMultiQuery: 'boolean',
|
|
2180
|
+
enableOpenQa: 'boolean',
|
|
2181
|
+
enableQueryRewrite: 'boolean',
|
|
2182
|
+
enableSession: 'boolean',
|
|
2183
|
+
localKnowledgeId: 'string',
|
|
2184
|
+
withDocumentReference: 'boolean',
|
|
2185
|
+
};
|
|
2186
|
+
}
|
|
2187
|
+
constructor(map) {
|
|
2188
|
+
super(map);
|
|
2189
|
+
}
|
|
2190
|
+
}
|
|
2191
|
+
exports.GetLibraryListResponseBodyDataRecordsIndexSettingQueryEnhancer = GetLibraryListResponseBodyDataRecordsIndexSettingQueryEnhancer;
|
|
2192
|
+
class GetLibraryListResponseBodyDataRecordsIndexSettingRecallStrategy extends $tea.Model {
|
|
2193
|
+
static names() {
|
|
2194
|
+
return {
|
|
2195
|
+
documentRankType: 'documentRankType',
|
|
2196
|
+
limit: 'limit',
|
|
2197
|
+
};
|
|
2198
|
+
}
|
|
2199
|
+
static types() {
|
|
2200
|
+
return {
|
|
2201
|
+
documentRankType: 'string',
|
|
2202
|
+
limit: 'number',
|
|
2203
|
+
};
|
|
2204
|
+
}
|
|
2205
|
+
constructor(map) {
|
|
2206
|
+
super(map);
|
|
2207
|
+
}
|
|
2208
|
+
}
|
|
2209
|
+
exports.GetLibraryListResponseBodyDataRecordsIndexSettingRecallStrategy = GetLibraryListResponseBodyDataRecordsIndexSettingRecallStrategy;
|
|
2210
|
+
class GetLibraryListResponseBodyDataRecordsIndexSettingTextIndexSetting extends $tea.Model {
|
|
2211
|
+
static names() {
|
|
2212
|
+
return {
|
|
2213
|
+
category: 'category',
|
|
2214
|
+
enable: 'enable',
|
|
2215
|
+
indexAnalyzer: 'indexAnalyzer',
|
|
2216
|
+
rankThreshold: 'rankThreshold',
|
|
2217
|
+
searchAnalyzer: 'searchAnalyzer',
|
|
2218
|
+
topK: 'topK',
|
|
2219
|
+
};
|
|
2220
|
+
}
|
|
2221
|
+
static types() {
|
|
2222
|
+
return {
|
|
2223
|
+
category: 'string',
|
|
2224
|
+
enable: 'boolean',
|
|
2225
|
+
indexAnalyzer: 'string',
|
|
2226
|
+
rankThreshold: 'number',
|
|
2227
|
+
searchAnalyzer: 'string',
|
|
2228
|
+
topK: 'number',
|
|
2229
|
+
};
|
|
2230
|
+
}
|
|
2231
|
+
constructor(map) {
|
|
2232
|
+
super(map);
|
|
2233
|
+
}
|
|
2234
|
+
}
|
|
2235
|
+
exports.GetLibraryListResponseBodyDataRecordsIndexSettingTextIndexSetting = GetLibraryListResponseBodyDataRecordsIndexSettingTextIndexSetting;
|
|
2236
|
+
class GetLibraryListResponseBodyDataRecordsIndexSettingVectorIndexSetting extends $tea.Model {
|
|
2237
|
+
static names() {
|
|
2238
|
+
return {
|
|
2239
|
+
category: 'category',
|
|
2240
|
+
embeddingType: 'embeddingType',
|
|
2241
|
+
enable: 'enable',
|
|
2242
|
+
rankThreshold: 'rankThreshold',
|
|
2243
|
+
topK: 'topK',
|
|
2244
|
+
};
|
|
2245
|
+
}
|
|
2246
|
+
static types() {
|
|
2247
|
+
return {
|
|
2248
|
+
category: 'string',
|
|
2249
|
+
embeddingType: 'string',
|
|
2250
|
+
enable: 'boolean',
|
|
2251
|
+
rankThreshold: 'number',
|
|
2252
|
+
topK: 'number',
|
|
2253
|
+
};
|
|
2254
|
+
}
|
|
2255
|
+
constructor(map) {
|
|
2256
|
+
super(map);
|
|
2257
|
+
}
|
|
2258
|
+
}
|
|
2259
|
+
exports.GetLibraryListResponseBodyDataRecordsIndexSettingVectorIndexSetting = GetLibraryListResponseBodyDataRecordsIndexSettingVectorIndexSetting;
|
|
2260
|
+
class GetLibraryListResponseBodyDataRecordsIndexSetting extends $tea.Model {
|
|
2261
|
+
static names() {
|
|
2262
|
+
return {
|
|
2263
|
+
chunkStrategy: 'chunkStrategy',
|
|
2264
|
+
modelConfig: 'modelConfig',
|
|
2265
|
+
promptRoleStyle: 'promptRoleStyle',
|
|
2266
|
+
queryEnhancer: 'queryEnhancer',
|
|
2267
|
+
recallStrategy: 'recallStrategy',
|
|
2268
|
+
textIndexSetting: 'textIndexSetting',
|
|
2269
|
+
vectorIndexSetting: 'vectorIndexSetting',
|
|
2270
|
+
};
|
|
2271
|
+
}
|
|
2272
|
+
static types() {
|
|
2273
|
+
return {
|
|
2274
|
+
chunkStrategy: GetLibraryListResponseBodyDataRecordsIndexSettingChunkStrategy,
|
|
2275
|
+
modelConfig: GetLibraryListResponseBodyDataRecordsIndexSettingModelConfig,
|
|
2276
|
+
promptRoleStyle: 'string',
|
|
2277
|
+
queryEnhancer: GetLibraryListResponseBodyDataRecordsIndexSettingQueryEnhancer,
|
|
2278
|
+
recallStrategy: GetLibraryListResponseBodyDataRecordsIndexSettingRecallStrategy,
|
|
2279
|
+
textIndexSetting: GetLibraryListResponseBodyDataRecordsIndexSettingTextIndexSetting,
|
|
2280
|
+
vectorIndexSetting: GetLibraryListResponseBodyDataRecordsIndexSettingVectorIndexSetting,
|
|
2281
|
+
};
|
|
2282
|
+
}
|
|
2283
|
+
constructor(map) {
|
|
2284
|
+
super(map);
|
|
2285
|
+
}
|
|
2286
|
+
}
|
|
2287
|
+
exports.GetLibraryListResponseBodyDataRecordsIndexSetting = GetLibraryListResponseBodyDataRecordsIndexSetting;
|
|
2288
|
+
class GetLibraryListResponseBodyDataRecords extends $tea.Model {
|
|
2289
|
+
static names() {
|
|
2290
|
+
return {
|
|
2291
|
+
description: 'description',
|
|
2292
|
+
documentCount: 'documentCount',
|
|
2293
|
+
gmtCreate: 'gmtCreate',
|
|
2294
|
+
gmtModified: 'gmtModified',
|
|
2295
|
+
id: 'id',
|
|
2296
|
+
indexSetting: 'indexSetting',
|
|
2297
|
+
libraryName: 'libraryName',
|
|
2298
|
+
};
|
|
2299
|
+
}
|
|
2300
|
+
static types() {
|
|
2301
|
+
return {
|
|
2302
|
+
description: 'string',
|
|
2303
|
+
documentCount: 'number',
|
|
2304
|
+
gmtCreate: 'string',
|
|
2305
|
+
gmtModified: 'string',
|
|
2306
|
+
id: 'string',
|
|
2307
|
+
indexSetting: GetLibraryListResponseBodyDataRecordsIndexSetting,
|
|
2308
|
+
libraryName: 'string',
|
|
2309
|
+
};
|
|
2310
|
+
}
|
|
2311
|
+
constructor(map) {
|
|
2312
|
+
super(map);
|
|
2313
|
+
}
|
|
2314
|
+
}
|
|
2315
|
+
exports.GetLibraryListResponseBodyDataRecords = GetLibraryListResponseBodyDataRecords;
|
|
2316
|
+
class GetLibraryListResponseBodyData extends $tea.Model {
|
|
2317
|
+
static names() {
|
|
2318
|
+
return {
|
|
2319
|
+
currentPage: 'currentPage',
|
|
2320
|
+
pageSize: 'pageSize',
|
|
2321
|
+
records: 'records',
|
|
2322
|
+
totalPages: 'totalPages',
|
|
2323
|
+
totalRecords: 'totalRecords',
|
|
2324
|
+
};
|
|
2325
|
+
}
|
|
2326
|
+
static types() {
|
|
2327
|
+
return {
|
|
2328
|
+
currentPage: 'number',
|
|
2329
|
+
pageSize: 'number',
|
|
2330
|
+
records: { 'type': 'array', 'itemType': GetLibraryListResponseBodyDataRecords },
|
|
2331
|
+
totalPages: 'number',
|
|
2332
|
+
totalRecords: 'number',
|
|
2333
|
+
};
|
|
2334
|
+
}
|
|
2335
|
+
constructor(map) {
|
|
2336
|
+
super(map);
|
|
2337
|
+
}
|
|
2338
|
+
}
|
|
2339
|
+
exports.GetLibraryListResponseBodyData = GetLibraryListResponseBodyData;
|
|
2340
|
+
class GetParseResultResponseBodyData extends $tea.Model {
|
|
2341
|
+
static names() {
|
|
2342
|
+
return {
|
|
2343
|
+
fileType: 'fileType',
|
|
2344
|
+
providerType: 'providerType',
|
|
2345
|
+
requestId: 'requestId',
|
|
2346
|
+
result: 'result',
|
|
2347
|
+
status: 'status',
|
|
2348
|
+
};
|
|
2349
|
+
}
|
|
2350
|
+
static types() {
|
|
2351
|
+
return {
|
|
2352
|
+
fileType: 'string',
|
|
2353
|
+
providerType: 'string',
|
|
2354
|
+
requestId: 'string',
|
|
2355
|
+
result: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
2356
|
+
status: 'string',
|
|
2357
|
+
};
|
|
2358
|
+
}
|
|
2359
|
+
constructor(map) {
|
|
2360
|
+
super(map);
|
|
2361
|
+
}
|
|
2362
|
+
}
|
|
2363
|
+
exports.GetParseResultResponseBodyData = GetParseResultResponseBodyData;
|
|
2364
|
+
class PreviewDocumentResponseBodyData extends $tea.Model {
|
|
2365
|
+
static names() {
|
|
2366
|
+
return {
|
|
2367
|
+
previewType: 'previewType',
|
|
2368
|
+
title: 'title',
|
|
2369
|
+
uploadTime: 'uploadTime',
|
|
2370
|
+
url: 'url',
|
|
2371
|
+
};
|
|
2372
|
+
}
|
|
2373
|
+
static types() {
|
|
2374
|
+
return {
|
|
2375
|
+
previewType: 'string',
|
|
2376
|
+
title: 'string',
|
|
2377
|
+
uploadTime: 'string',
|
|
2378
|
+
url: 'string',
|
|
2379
|
+
};
|
|
2380
|
+
}
|
|
2381
|
+
constructor(map) {
|
|
2382
|
+
super(map);
|
|
2383
|
+
}
|
|
2384
|
+
}
|
|
2385
|
+
exports.PreviewDocumentResponseBodyData = PreviewDocumentResponseBodyData;
|
|
2386
|
+
class RecallDocumentRequestFiltersAnd extends $tea.Model {
|
|
2387
|
+
static names() {
|
|
2388
|
+
return {
|
|
2389
|
+
boost: 'boost',
|
|
2390
|
+
key: 'key',
|
|
2391
|
+
operator: 'operator',
|
|
2392
|
+
value: 'value',
|
|
2393
|
+
};
|
|
2394
|
+
}
|
|
2395
|
+
static types() {
|
|
2396
|
+
return {
|
|
2397
|
+
boost: 'number',
|
|
2398
|
+
key: 'string',
|
|
2399
|
+
operator: 'string',
|
|
2400
|
+
value: 'string',
|
|
2401
|
+
};
|
|
2402
|
+
}
|
|
2403
|
+
constructor(map) {
|
|
2404
|
+
super(map);
|
|
2405
|
+
}
|
|
2406
|
+
}
|
|
2407
|
+
exports.RecallDocumentRequestFiltersAnd = RecallDocumentRequestFiltersAnd;
|
|
2408
|
+
class RecallDocumentRequestFiltersOr extends $tea.Model {
|
|
2409
|
+
static names() {
|
|
2410
|
+
return {
|
|
2411
|
+
boost: 'boost',
|
|
2412
|
+
key: 'key',
|
|
2413
|
+
operator: 'operator',
|
|
2414
|
+
value: 'value',
|
|
2415
|
+
};
|
|
2416
|
+
}
|
|
2417
|
+
static types() {
|
|
2418
|
+
return {
|
|
2419
|
+
boost: 'number',
|
|
2420
|
+
key: 'string',
|
|
2421
|
+
operator: 'string',
|
|
2422
|
+
value: 'string',
|
|
2423
|
+
};
|
|
2424
|
+
}
|
|
2425
|
+
constructor(map) {
|
|
2426
|
+
super(map);
|
|
2427
|
+
}
|
|
2428
|
+
}
|
|
2429
|
+
exports.RecallDocumentRequestFiltersOr = RecallDocumentRequestFiltersOr;
|
|
2430
|
+
class RecallDocumentRequestFilters extends $tea.Model {
|
|
2431
|
+
static names() {
|
|
2432
|
+
return {
|
|
2433
|
+
and: 'and',
|
|
2434
|
+
chunkType: 'chunkType',
|
|
2435
|
+
docIdList: 'docIdList',
|
|
2436
|
+
libraryId: 'libraryId',
|
|
2437
|
+
or: 'or',
|
|
2438
|
+
status: 'status',
|
|
2439
|
+
};
|
|
2440
|
+
}
|
|
2441
|
+
static types() {
|
|
2442
|
+
return {
|
|
2443
|
+
and: { 'type': 'array', 'itemType': RecallDocumentRequestFiltersAnd },
|
|
2444
|
+
chunkType: 'string',
|
|
2445
|
+
docIdList: { 'type': 'array', 'itemType': 'string' },
|
|
2446
|
+
libraryId: 'string',
|
|
2447
|
+
or: { 'type': 'array', 'itemType': RecallDocumentRequestFiltersOr },
|
|
2448
|
+
status: { 'type': 'array', 'itemType': 'string' },
|
|
2449
|
+
};
|
|
2450
|
+
}
|
|
2451
|
+
constructor(map) {
|
|
2452
|
+
super(map);
|
|
2453
|
+
}
|
|
2454
|
+
}
|
|
2455
|
+
exports.RecallDocumentRequestFilters = RecallDocumentRequestFilters;
|
|
2456
|
+
class RecallDocumentResponseBodyDataChunkListPos extends $tea.Model {
|
|
2457
|
+
static names() {
|
|
2458
|
+
return {
|
|
2459
|
+
axisArray: 'axisArray',
|
|
2460
|
+
page: 'page',
|
|
2461
|
+
textHighlightArea: 'textHighlightArea',
|
|
2462
|
+
};
|
|
2463
|
+
}
|
|
2464
|
+
static types() {
|
|
2465
|
+
return {
|
|
2466
|
+
axisArray: { 'type': 'array', 'itemType': 'number' },
|
|
2467
|
+
page: 'number',
|
|
2468
|
+
textHighlightArea: { 'type': 'array', 'itemType': 'number' },
|
|
2469
|
+
};
|
|
2470
|
+
}
|
|
2471
|
+
constructor(map) {
|
|
2472
|
+
super(map);
|
|
2473
|
+
}
|
|
2474
|
+
}
|
|
2475
|
+
exports.RecallDocumentResponseBodyDataChunkListPos = RecallDocumentResponseBodyDataChunkListPos;
|
|
2476
|
+
class RecallDocumentResponseBodyDataChunkList extends $tea.Model {
|
|
2477
|
+
static names() {
|
|
2478
|
+
return {
|
|
2479
|
+
chunkId: 'chunkId',
|
|
2480
|
+
chunkMeta: 'chunkMeta',
|
|
2481
|
+
chunkOssUrl: 'chunkOssUrl',
|
|
2482
|
+
chunkText: 'chunkText',
|
|
2483
|
+
chunkType: 'chunkType',
|
|
2484
|
+
docId: 'docId',
|
|
2485
|
+
fileType: 'fileType',
|
|
2486
|
+
libraryId: 'libraryId',
|
|
2487
|
+
libraryName: 'libraryName',
|
|
2488
|
+
nextChunkId: 'nextChunkId',
|
|
2489
|
+
pos: 'pos',
|
|
2490
|
+
preChunkId: 'preChunkId',
|
|
2491
|
+
score: 'score',
|
|
2492
|
+
title: 'title',
|
|
2493
|
+
};
|
|
2494
|
+
}
|
|
2495
|
+
static types() {
|
|
2496
|
+
return {
|
|
2497
|
+
chunkId: 'string',
|
|
2498
|
+
chunkMeta: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
2499
|
+
chunkOssUrl: 'string',
|
|
2500
|
+
chunkText: 'string',
|
|
2501
|
+
chunkType: 'string',
|
|
2502
|
+
docId: 'string',
|
|
2503
|
+
fileType: 'string',
|
|
2504
|
+
libraryId: 'string',
|
|
2505
|
+
libraryName: 'string',
|
|
2506
|
+
nextChunkId: 'string',
|
|
2507
|
+
pos: { 'type': 'array', 'itemType': RecallDocumentResponseBodyDataChunkListPos },
|
|
2508
|
+
preChunkId: 'string',
|
|
2509
|
+
score: 'number',
|
|
2510
|
+
title: 'string',
|
|
2511
|
+
};
|
|
2512
|
+
}
|
|
2513
|
+
constructor(map) {
|
|
2514
|
+
super(map);
|
|
2515
|
+
}
|
|
2516
|
+
}
|
|
2517
|
+
exports.RecallDocumentResponseBodyDataChunkList = RecallDocumentResponseBodyDataChunkList;
|
|
2518
|
+
class RecallDocumentResponseBodyDataChunkPartListPos extends $tea.Model {
|
|
2519
|
+
static names() {
|
|
2520
|
+
return {
|
|
2521
|
+
axisArray: 'axisArray',
|
|
2522
|
+
page: 'page',
|
|
2523
|
+
textHighlightArea: 'textHighlightArea',
|
|
2524
|
+
};
|
|
2525
|
+
}
|
|
2526
|
+
static types() {
|
|
2527
|
+
return {
|
|
2528
|
+
axisArray: { 'type': 'array', 'itemType': 'number' },
|
|
2529
|
+
page: 'number',
|
|
2530
|
+
textHighlightArea: { 'type': 'array', 'itemType': 'number' },
|
|
2531
|
+
};
|
|
2532
|
+
}
|
|
2533
|
+
constructor(map) {
|
|
2534
|
+
super(map);
|
|
2535
|
+
}
|
|
2536
|
+
}
|
|
2537
|
+
exports.RecallDocumentResponseBodyDataChunkPartListPos = RecallDocumentResponseBodyDataChunkPartListPos;
|
|
2538
|
+
class RecallDocumentResponseBodyDataChunkPartList extends $tea.Model {
|
|
2539
|
+
static names() {
|
|
2540
|
+
return {
|
|
2541
|
+
chunkId: 'chunkId',
|
|
2542
|
+
chunkMeta: 'chunkMeta',
|
|
2543
|
+
chunkOssUrl: 'chunkOssUrl',
|
|
2544
|
+
chunkText: 'chunkText',
|
|
2545
|
+
chunkType: 'chunkType',
|
|
2546
|
+
docId: 'docId',
|
|
2547
|
+
fileType: 'fileType',
|
|
2548
|
+
libraryId: 'libraryId',
|
|
2549
|
+
libraryName: 'libraryName',
|
|
2550
|
+
nextChunkId: 'nextChunkId',
|
|
2551
|
+
pos: 'pos',
|
|
2552
|
+
preChunkId: 'preChunkId',
|
|
2553
|
+
score: 'score',
|
|
2554
|
+
title: 'title',
|
|
2555
|
+
};
|
|
2556
|
+
}
|
|
2557
|
+
static types() {
|
|
2558
|
+
return {
|
|
2559
|
+
chunkId: 'string',
|
|
2560
|
+
chunkMeta: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
2561
|
+
chunkOssUrl: 'string',
|
|
2562
|
+
chunkText: 'string',
|
|
2563
|
+
chunkType: 'string',
|
|
2564
|
+
docId: 'string',
|
|
2565
|
+
fileType: 'string',
|
|
2566
|
+
libraryId: 'string',
|
|
2567
|
+
libraryName: 'string',
|
|
2568
|
+
nextChunkId: 'string',
|
|
2569
|
+
pos: { 'type': 'array', 'itemType': RecallDocumentResponseBodyDataChunkPartListPos },
|
|
2570
|
+
preChunkId: 'string',
|
|
2571
|
+
score: 'number',
|
|
2572
|
+
title: 'string',
|
|
2573
|
+
};
|
|
2574
|
+
}
|
|
2575
|
+
constructor(map) {
|
|
2576
|
+
super(map);
|
|
2577
|
+
}
|
|
2578
|
+
}
|
|
2579
|
+
exports.RecallDocumentResponseBodyDataChunkPartList = RecallDocumentResponseBodyDataChunkPartList;
|
|
2580
|
+
class RecallDocumentResponseBodyDataDocuments extends $tea.Model {
|
|
2581
|
+
static names() {
|
|
2582
|
+
return {
|
|
2583
|
+
docId: 'docId',
|
|
2584
|
+
documentMeta: 'documentMeta',
|
|
2585
|
+
fileType: 'fileType',
|
|
2586
|
+
gmtCreate: 'gmtCreate',
|
|
2587
|
+
libraryId: 'libraryId',
|
|
2588
|
+
title: 'title',
|
|
2589
|
+
url: 'url',
|
|
2590
|
+
};
|
|
2591
|
+
}
|
|
2592
|
+
static types() {
|
|
2593
|
+
return {
|
|
2594
|
+
docId: 'string',
|
|
2595
|
+
documentMeta: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
2596
|
+
fileType: 'string',
|
|
2597
|
+
gmtCreate: 'string',
|
|
2598
|
+
libraryId: 'string',
|
|
2599
|
+
title: 'string',
|
|
2600
|
+
url: 'string',
|
|
2601
|
+
};
|
|
2602
|
+
}
|
|
2603
|
+
constructor(map) {
|
|
2604
|
+
super(map);
|
|
2605
|
+
}
|
|
2606
|
+
}
|
|
2607
|
+
exports.RecallDocumentResponseBodyDataDocuments = RecallDocumentResponseBodyDataDocuments;
|
|
2608
|
+
class RecallDocumentResponseBodyDataTextChunkListPos extends $tea.Model {
|
|
2609
|
+
static names() {
|
|
2610
|
+
return {
|
|
2611
|
+
axisArray: 'axisArray',
|
|
2612
|
+
page: 'page',
|
|
2613
|
+
textHighlightArea: 'textHighlightArea',
|
|
2614
|
+
};
|
|
2615
|
+
}
|
|
2616
|
+
static types() {
|
|
2617
|
+
return {
|
|
2618
|
+
axisArray: { 'type': 'array', 'itemType': 'number' },
|
|
2619
|
+
page: 'number',
|
|
2620
|
+
textHighlightArea: { 'type': 'array', 'itemType': 'number' },
|
|
2621
|
+
};
|
|
2622
|
+
}
|
|
2623
|
+
constructor(map) {
|
|
2624
|
+
super(map);
|
|
2625
|
+
}
|
|
2626
|
+
}
|
|
2627
|
+
exports.RecallDocumentResponseBodyDataTextChunkListPos = RecallDocumentResponseBodyDataTextChunkListPos;
|
|
2628
|
+
class RecallDocumentResponseBodyDataTextChunkList extends $tea.Model {
|
|
2629
|
+
static names() {
|
|
2630
|
+
return {
|
|
2631
|
+
chunkId: 'chunkId',
|
|
2632
|
+
chunkMeta: 'chunkMeta',
|
|
2633
|
+
chunkOssUrl: 'chunkOssUrl',
|
|
2634
|
+
chunkText: 'chunkText',
|
|
2635
|
+
chunkType: 'chunkType',
|
|
2636
|
+
docId: 'docId',
|
|
2637
|
+
fileType: 'fileType',
|
|
2638
|
+
libraryId: 'libraryId',
|
|
2639
|
+
libraryName: 'libraryName',
|
|
2640
|
+
nextChunkId: 'nextChunkId',
|
|
2641
|
+
pos: 'pos',
|
|
2642
|
+
preChunkId: 'preChunkId',
|
|
2643
|
+
score: 'score',
|
|
2644
|
+
title: 'title',
|
|
2645
|
+
};
|
|
2646
|
+
}
|
|
2647
|
+
static types() {
|
|
2648
|
+
return {
|
|
2649
|
+
chunkId: 'string',
|
|
2650
|
+
chunkMeta: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
2651
|
+
chunkOssUrl: 'string',
|
|
2652
|
+
chunkText: 'string',
|
|
2653
|
+
chunkType: 'string',
|
|
2654
|
+
docId: 'string',
|
|
2655
|
+
fileType: 'string',
|
|
2656
|
+
libraryId: 'string',
|
|
2657
|
+
libraryName: 'string',
|
|
2658
|
+
nextChunkId: 'string',
|
|
2659
|
+
pos: { 'type': 'array', 'itemType': RecallDocumentResponseBodyDataTextChunkListPos },
|
|
2660
|
+
preChunkId: 'string',
|
|
2661
|
+
score: 'number',
|
|
2662
|
+
title: 'string',
|
|
2663
|
+
};
|
|
2664
|
+
}
|
|
2665
|
+
constructor(map) {
|
|
2666
|
+
super(map);
|
|
2667
|
+
}
|
|
2668
|
+
}
|
|
2669
|
+
exports.RecallDocumentResponseBodyDataTextChunkList = RecallDocumentResponseBodyDataTextChunkList;
|
|
2670
|
+
class RecallDocumentResponseBodyDataVectorChunkListPos extends $tea.Model {
|
|
2671
|
+
static names() {
|
|
2672
|
+
return {
|
|
2673
|
+
axisArray: 'axisArray',
|
|
2674
|
+
page: 'page',
|
|
2675
|
+
textHighlightArea: 'textHighlightArea',
|
|
2676
|
+
};
|
|
2677
|
+
}
|
|
2678
|
+
static types() {
|
|
2679
|
+
return {
|
|
2680
|
+
axisArray: { 'type': 'array', 'itemType': 'number' },
|
|
2681
|
+
page: 'number',
|
|
2682
|
+
textHighlightArea: { 'type': 'array', 'itemType': 'number' },
|
|
2683
|
+
};
|
|
2684
|
+
}
|
|
2685
|
+
constructor(map) {
|
|
2686
|
+
super(map);
|
|
2687
|
+
}
|
|
2688
|
+
}
|
|
2689
|
+
exports.RecallDocumentResponseBodyDataVectorChunkListPos = RecallDocumentResponseBodyDataVectorChunkListPos;
|
|
2690
|
+
class RecallDocumentResponseBodyDataVectorChunkList extends $tea.Model {
|
|
2691
|
+
static names() {
|
|
2692
|
+
return {
|
|
2693
|
+
chunkId: 'chunkId',
|
|
2694
|
+
chunkMeta: 'chunkMeta',
|
|
2695
|
+
chunkOssUrl: 'chunkOssUrl',
|
|
2696
|
+
chunkText: 'chunkText',
|
|
2697
|
+
chunkType: 'chunkType',
|
|
2698
|
+
docId: 'docId',
|
|
2699
|
+
fileType: 'fileType',
|
|
2700
|
+
libraryId: 'libraryId',
|
|
2701
|
+
libraryName: 'libraryName',
|
|
2702
|
+
nextChunkId: 'nextChunkId',
|
|
2703
|
+
pos: 'pos',
|
|
2704
|
+
preChunkId: 'preChunkId',
|
|
2705
|
+
score: 'score',
|
|
2706
|
+
title: 'title',
|
|
2707
|
+
};
|
|
2708
|
+
}
|
|
2709
|
+
static types() {
|
|
2710
|
+
return {
|
|
2711
|
+
chunkId: 'string',
|
|
2712
|
+
chunkMeta: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
2713
|
+
chunkOssUrl: 'string',
|
|
2714
|
+
chunkText: 'string',
|
|
2715
|
+
chunkType: 'string',
|
|
2716
|
+
docId: 'string',
|
|
2717
|
+
fileType: 'string',
|
|
2718
|
+
libraryId: 'string',
|
|
2719
|
+
libraryName: 'string',
|
|
2720
|
+
nextChunkId: 'string',
|
|
2721
|
+
pos: { 'type': 'array', 'itemType': RecallDocumentResponseBodyDataVectorChunkListPos },
|
|
2722
|
+
preChunkId: 'string',
|
|
2723
|
+
score: 'number',
|
|
2724
|
+
title: 'string',
|
|
2725
|
+
};
|
|
2726
|
+
}
|
|
2727
|
+
constructor(map) {
|
|
2728
|
+
super(map);
|
|
2729
|
+
}
|
|
2730
|
+
}
|
|
2731
|
+
exports.RecallDocumentResponseBodyDataVectorChunkList = RecallDocumentResponseBodyDataVectorChunkList;
|
|
2732
|
+
class RecallDocumentResponseBodyData extends $tea.Model {
|
|
2733
|
+
static names() {
|
|
2734
|
+
return {
|
|
2735
|
+
chunkList: 'chunkList',
|
|
2736
|
+
chunkPartList: 'chunkPartList',
|
|
2737
|
+
chunkTextList: 'chunkTextList',
|
|
2738
|
+
documents: 'documents',
|
|
2739
|
+
embeddingElapsedMs: 'embeddingElapsedMs',
|
|
2740
|
+
textChunkList: 'textChunkList',
|
|
2741
|
+
textSearchElapsedMs: 'textSearchElapsedMs',
|
|
2742
|
+
totalElapsedMs: 'totalElapsedMs',
|
|
2743
|
+
vectorChunkList: 'vectorChunkList',
|
|
2744
|
+
vectorSearchElapsedMs: 'vectorSearchElapsedMs',
|
|
2745
|
+
};
|
|
2746
|
+
}
|
|
2747
|
+
static types() {
|
|
2748
|
+
return {
|
|
2749
|
+
chunkList: { 'type': 'array', 'itemType': RecallDocumentResponseBodyDataChunkList },
|
|
2750
|
+
chunkPartList: { 'type': 'array', 'itemType': RecallDocumentResponseBodyDataChunkPartList },
|
|
2751
|
+
chunkTextList: { 'type': 'array', 'itemType': 'string' },
|
|
2752
|
+
documents: { 'type': 'array', 'itemType': RecallDocumentResponseBodyDataDocuments },
|
|
2753
|
+
embeddingElapsedMs: 'number',
|
|
2754
|
+
textChunkList: { 'type': 'array', 'itemType': RecallDocumentResponseBodyDataTextChunkList },
|
|
2755
|
+
textSearchElapsedMs: 'number',
|
|
2756
|
+
totalElapsedMs: 'number',
|
|
2757
|
+
vectorChunkList: { 'type': 'array', 'itemType': RecallDocumentResponseBodyDataVectorChunkList },
|
|
2758
|
+
vectorSearchElapsedMs: 'number',
|
|
2759
|
+
};
|
|
2760
|
+
}
|
|
2761
|
+
constructor(map) {
|
|
2762
|
+
super(map);
|
|
2763
|
+
}
|
|
2764
|
+
}
|
|
2765
|
+
exports.RecallDocumentResponseBodyData = RecallDocumentResponseBodyData;
|
|
2766
|
+
class RunChatResultGenerationRequestMessages extends $tea.Model {
|
|
2767
|
+
static names() {
|
|
2768
|
+
return {
|
|
2769
|
+
content: 'content',
|
|
2770
|
+
role: 'role',
|
|
2771
|
+
};
|
|
2772
|
+
}
|
|
2773
|
+
static types() {
|
|
2774
|
+
return {
|
|
2775
|
+
content: 'string',
|
|
2776
|
+
role: 'string',
|
|
2777
|
+
};
|
|
2778
|
+
}
|
|
2779
|
+
constructor(map) {
|
|
2780
|
+
super(map);
|
|
2781
|
+
}
|
|
2782
|
+
}
|
|
2783
|
+
exports.RunChatResultGenerationRequestMessages = RunChatResultGenerationRequestMessages;
|
|
2784
|
+
class RunChatResultGenerationRequestToolsFunctionParameters extends $tea.Model {
|
|
2785
|
+
static names() {
|
|
2786
|
+
return {
|
|
2787
|
+
properties: 'properties',
|
|
2788
|
+
type: 'type',
|
|
2789
|
+
};
|
|
2790
|
+
}
|
|
2791
|
+
static types() {
|
|
2792
|
+
return {
|
|
2793
|
+
properties: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
2794
|
+
type: 'string',
|
|
2795
|
+
};
|
|
2796
|
+
}
|
|
2797
|
+
constructor(map) {
|
|
2798
|
+
super(map);
|
|
2799
|
+
}
|
|
2800
|
+
}
|
|
2801
|
+
exports.RunChatResultGenerationRequestToolsFunctionParameters = RunChatResultGenerationRequestToolsFunctionParameters;
|
|
2802
|
+
class RunChatResultGenerationRequestToolsFunction extends $tea.Model {
|
|
2803
|
+
static names() {
|
|
2804
|
+
return {
|
|
2805
|
+
description: 'description',
|
|
2806
|
+
name: 'name',
|
|
2807
|
+
parameters: 'parameters',
|
|
2808
|
+
required: 'required',
|
|
2809
|
+
};
|
|
2810
|
+
}
|
|
2811
|
+
static types() {
|
|
2812
|
+
return {
|
|
2813
|
+
description: 'string',
|
|
2814
|
+
name: 'string',
|
|
2815
|
+
parameters: RunChatResultGenerationRequestToolsFunctionParameters,
|
|
2816
|
+
required: { 'type': 'array', 'itemType': 'string' },
|
|
2817
|
+
};
|
|
2818
|
+
}
|
|
2819
|
+
constructor(map) {
|
|
2820
|
+
super(map);
|
|
2821
|
+
}
|
|
2822
|
+
}
|
|
2823
|
+
exports.RunChatResultGenerationRequestToolsFunction = RunChatResultGenerationRequestToolsFunction;
|
|
2824
|
+
class RunChatResultGenerationRequestTools extends $tea.Model {
|
|
2825
|
+
static names() {
|
|
2826
|
+
return {
|
|
2827
|
+
function: 'function',
|
|
2828
|
+
type: 'type',
|
|
2829
|
+
};
|
|
2830
|
+
}
|
|
2831
|
+
static types() {
|
|
2832
|
+
return {
|
|
2833
|
+
function: RunChatResultGenerationRequestToolsFunction,
|
|
2834
|
+
type: 'string',
|
|
2835
|
+
};
|
|
2836
|
+
}
|
|
2837
|
+
constructor(map) {
|
|
2838
|
+
super(map);
|
|
2839
|
+
}
|
|
2840
|
+
}
|
|
2841
|
+
exports.RunChatResultGenerationRequestTools = RunChatResultGenerationRequestTools;
|
|
2842
|
+
class RunChatResultGenerationResponseBodyChoicesMessage extends $tea.Model {
|
|
2843
|
+
static names() {
|
|
2844
|
+
return {
|
|
2845
|
+
content: 'content',
|
|
2846
|
+
role: 'role',
|
|
2847
|
+
toolCalls: 'toolCalls',
|
|
2848
|
+
};
|
|
2849
|
+
}
|
|
2850
|
+
static types() {
|
|
2851
|
+
return {
|
|
2852
|
+
content: 'string',
|
|
2853
|
+
role: 'string',
|
|
2854
|
+
toolCalls: { 'type': 'array', 'itemType': { 'type': 'map', 'keyType': 'string', 'valueType': 'any' } },
|
|
2855
|
+
};
|
|
2856
|
+
}
|
|
2857
|
+
constructor(map) {
|
|
2858
|
+
super(map);
|
|
2859
|
+
}
|
|
2860
|
+
}
|
|
2861
|
+
exports.RunChatResultGenerationResponseBodyChoicesMessage = RunChatResultGenerationResponseBodyChoicesMessage;
|
|
2862
|
+
class RunChatResultGenerationResponseBodyChoices extends $tea.Model {
|
|
2863
|
+
static names() {
|
|
2864
|
+
return {
|
|
2865
|
+
finishReason: 'finishReason',
|
|
2866
|
+
index: 'index',
|
|
2867
|
+
message: 'message',
|
|
2868
|
+
};
|
|
2869
|
+
}
|
|
2870
|
+
static types() {
|
|
2871
|
+
return {
|
|
2872
|
+
finishReason: 'string',
|
|
2873
|
+
index: 'number',
|
|
2874
|
+
message: RunChatResultGenerationResponseBodyChoicesMessage,
|
|
2875
|
+
};
|
|
2876
|
+
}
|
|
2877
|
+
constructor(map) {
|
|
2878
|
+
super(map);
|
|
2879
|
+
}
|
|
2880
|
+
}
|
|
2881
|
+
exports.RunChatResultGenerationResponseBodyChoices = RunChatResultGenerationResponseBodyChoices;
|
|
2882
|
+
class RunChatResultGenerationResponseBodyUsage extends $tea.Model {
|
|
2883
|
+
static names() {
|
|
2884
|
+
return {
|
|
2885
|
+
imageCount: 'imageCount',
|
|
2886
|
+
imageTokens: 'imageTokens',
|
|
2887
|
+
inputTokens: 'inputTokens',
|
|
2888
|
+
outputTokens: 'outputTokens',
|
|
2889
|
+
totalTokens: 'totalTokens',
|
|
2890
|
+
};
|
|
2891
|
+
}
|
|
2892
|
+
static types() {
|
|
2893
|
+
return {
|
|
2894
|
+
imageCount: 'number',
|
|
2895
|
+
imageTokens: 'number',
|
|
2896
|
+
inputTokens: 'number',
|
|
2897
|
+
outputTokens: 'number',
|
|
2898
|
+
totalTokens: 'number',
|
|
2899
|
+
};
|
|
2900
|
+
}
|
|
2901
|
+
constructor(map) {
|
|
2902
|
+
super(map);
|
|
2903
|
+
}
|
|
2904
|
+
}
|
|
2905
|
+
exports.RunChatResultGenerationResponseBodyUsage = RunChatResultGenerationResponseBodyUsage;
|
|
2906
|
+
class UpdateLibraryRequestIndexSettingChunkStrategy extends $tea.Model {
|
|
2907
|
+
static names() {
|
|
2908
|
+
return {
|
|
2909
|
+
docTreeSplit: 'docTreeSplit',
|
|
2910
|
+
docTreeSplitSize: 'docTreeSplitSize',
|
|
2911
|
+
enhanceGraph: 'enhanceGraph',
|
|
2912
|
+
enhanceTable: 'enhanceTable',
|
|
2913
|
+
overlap: 'overlap',
|
|
2914
|
+
sentenceSplit: 'sentenceSplit',
|
|
2915
|
+
sentenceSplitSize: 'sentenceSplitSize',
|
|
2916
|
+
size: 'size',
|
|
2917
|
+
split: 'split',
|
|
2918
|
+
};
|
|
2919
|
+
}
|
|
2920
|
+
static types() {
|
|
2921
|
+
return {
|
|
2922
|
+
docTreeSplit: 'boolean',
|
|
2923
|
+
docTreeSplitSize: 'number',
|
|
2924
|
+
enhanceGraph: 'boolean',
|
|
2925
|
+
enhanceTable: 'boolean',
|
|
2926
|
+
overlap: 'number',
|
|
2927
|
+
sentenceSplit: 'boolean',
|
|
2928
|
+
sentenceSplitSize: 'number',
|
|
2929
|
+
size: 'number',
|
|
2930
|
+
split: 'boolean',
|
|
2931
|
+
};
|
|
2932
|
+
}
|
|
2933
|
+
constructor(map) {
|
|
2934
|
+
super(map);
|
|
2935
|
+
}
|
|
2936
|
+
}
|
|
2937
|
+
exports.UpdateLibraryRequestIndexSettingChunkStrategy = UpdateLibraryRequestIndexSettingChunkStrategy;
|
|
2938
|
+
class UpdateLibraryRequestIndexSettingModelConfig extends $tea.Model {
|
|
2939
|
+
static names() {
|
|
2940
|
+
return {
|
|
2941
|
+
temperature: 'temperature',
|
|
2942
|
+
topP: 'topP',
|
|
2943
|
+
};
|
|
2944
|
+
}
|
|
2945
|
+
static types() {
|
|
2946
|
+
return {
|
|
2947
|
+
temperature: 'number',
|
|
2948
|
+
topP: 'number',
|
|
2949
|
+
};
|
|
2950
|
+
}
|
|
2951
|
+
constructor(map) {
|
|
2952
|
+
super(map);
|
|
2953
|
+
}
|
|
2954
|
+
}
|
|
2955
|
+
exports.UpdateLibraryRequestIndexSettingModelConfig = UpdateLibraryRequestIndexSettingModelConfig;
|
|
2956
|
+
class UpdateLibraryRequestIndexSettingQueryEnhancer extends $tea.Model {
|
|
2957
|
+
static names() {
|
|
2958
|
+
return {
|
|
2959
|
+
enableFollowUp: 'enableFollowUp',
|
|
2960
|
+
enableMultiQuery: 'enableMultiQuery',
|
|
2961
|
+
enableOpenQa: 'enableOpenQa',
|
|
2962
|
+
enableQueryRewrite: 'enableQueryRewrite',
|
|
2963
|
+
enableSession: 'enableSession',
|
|
2964
|
+
localKnowledgeId: 'localKnowledgeId',
|
|
2965
|
+
withDocumentReference: 'withDocumentReference',
|
|
2966
|
+
};
|
|
2967
|
+
}
|
|
2968
|
+
static types() {
|
|
2969
|
+
return {
|
|
2970
|
+
enableFollowUp: 'boolean',
|
|
2971
|
+
enableMultiQuery: 'boolean',
|
|
2972
|
+
enableOpenQa: 'boolean',
|
|
2973
|
+
enableQueryRewrite: 'boolean',
|
|
2974
|
+
enableSession: 'boolean',
|
|
2975
|
+
localKnowledgeId: 'string',
|
|
2976
|
+
withDocumentReference: 'boolean',
|
|
2977
|
+
};
|
|
2978
|
+
}
|
|
2979
|
+
constructor(map) {
|
|
2980
|
+
super(map);
|
|
2981
|
+
}
|
|
2982
|
+
}
|
|
2983
|
+
exports.UpdateLibraryRequestIndexSettingQueryEnhancer = UpdateLibraryRequestIndexSettingQueryEnhancer;
|
|
2984
|
+
class UpdateLibraryRequestIndexSettingRecallStrategy extends $tea.Model {
|
|
2985
|
+
static names() {
|
|
2986
|
+
return {
|
|
2987
|
+
documentRankType: 'documentRankType',
|
|
2988
|
+
limit: 'limit',
|
|
2989
|
+
};
|
|
2990
|
+
}
|
|
2991
|
+
static types() {
|
|
2992
|
+
return {
|
|
2993
|
+
documentRankType: 'string',
|
|
2994
|
+
limit: 'number',
|
|
2995
|
+
};
|
|
2996
|
+
}
|
|
2997
|
+
constructor(map) {
|
|
2998
|
+
super(map);
|
|
2999
|
+
}
|
|
3000
|
+
}
|
|
3001
|
+
exports.UpdateLibraryRequestIndexSettingRecallStrategy = UpdateLibraryRequestIndexSettingRecallStrategy;
|
|
3002
|
+
class UpdateLibraryRequestIndexSettingTextIndexSetting extends $tea.Model {
|
|
3003
|
+
static names() {
|
|
3004
|
+
return {
|
|
3005
|
+
category: 'category',
|
|
3006
|
+
enable: 'enable',
|
|
3007
|
+
indexAnalyzer: 'indexAnalyzer',
|
|
3008
|
+
rankThreshold: 'rankThreshold',
|
|
3009
|
+
searchAnalyzer: 'searchAnalyzer',
|
|
3010
|
+
topK: 'topK',
|
|
3011
|
+
};
|
|
3012
|
+
}
|
|
3013
|
+
static types() {
|
|
3014
|
+
return {
|
|
3015
|
+
category: 'string',
|
|
3016
|
+
enable: 'boolean',
|
|
3017
|
+
indexAnalyzer: 'string',
|
|
3018
|
+
rankThreshold: 'number',
|
|
3019
|
+
searchAnalyzer: 'string',
|
|
3020
|
+
topK: 'number',
|
|
3021
|
+
};
|
|
3022
|
+
}
|
|
3023
|
+
constructor(map) {
|
|
3024
|
+
super(map);
|
|
3025
|
+
}
|
|
3026
|
+
}
|
|
3027
|
+
exports.UpdateLibraryRequestIndexSettingTextIndexSetting = UpdateLibraryRequestIndexSettingTextIndexSetting;
|
|
3028
|
+
class UpdateLibraryRequestIndexSettingVectorIndexSetting extends $tea.Model {
|
|
3029
|
+
static names() {
|
|
3030
|
+
return {
|
|
3031
|
+
category: 'category',
|
|
3032
|
+
embeddingType: 'embeddingType',
|
|
3033
|
+
enable: 'enable',
|
|
3034
|
+
rankThreshold: 'rankThreshold',
|
|
3035
|
+
topK: 'topK',
|
|
3036
|
+
};
|
|
3037
|
+
}
|
|
3038
|
+
static types() {
|
|
3039
|
+
return {
|
|
3040
|
+
category: 'string',
|
|
3041
|
+
embeddingType: 'string',
|
|
3042
|
+
enable: 'boolean',
|
|
3043
|
+
rankThreshold: 'number',
|
|
3044
|
+
topK: 'number',
|
|
3045
|
+
};
|
|
3046
|
+
}
|
|
3047
|
+
constructor(map) {
|
|
3048
|
+
super(map);
|
|
3049
|
+
}
|
|
3050
|
+
}
|
|
3051
|
+
exports.UpdateLibraryRequestIndexSettingVectorIndexSetting = UpdateLibraryRequestIndexSettingVectorIndexSetting;
|
|
3052
|
+
class UpdateLibraryRequestIndexSetting extends $tea.Model {
|
|
3053
|
+
static names() {
|
|
3054
|
+
return {
|
|
3055
|
+
chunkStrategy: 'chunkStrategy',
|
|
3056
|
+
modelConfig: 'modelConfig',
|
|
3057
|
+
promptRoleStyle: 'promptRoleStyle',
|
|
3058
|
+
queryEnhancer: 'queryEnhancer',
|
|
3059
|
+
recallStrategy: 'recallStrategy',
|
|
3060
|
+
textIndexSetting: 'textIndexSetting',
|
|
3061
|
+
vectorIndexSetting: 'vectorIndexSetting',
|
|
3062
|
+
};
|
|
3063
|
+
}
|
|
3064
|
+
static types() {
|
|
3065
|
+
return {
|
|
3066
|
+
chunkStrategy: UpdateLibraryRequestIndexSettingChunkStrategy,
|
|
3067
|
+
modelConfig: UpdateLibraryRequestIndexSettingModelConfig,
|
|
3068
|
+
promptRoleStyle: 'string',
|
|
3069
|
+
queryEnhancer: UpdateLibraryRequestIndexSettingQueryEnhancer,
|
|
3070
|
+
recallStrategy: UpdateLibraryRequestIndexSettingRecallStrategy,
|
|
3071
|
+
textIndexSetting: UpdateLibraryRequestIndexSettingTextIndexSetting,
|
|
3072
|
+
vectorIndexSetting: UpdateLibraryRequestIndexSettingVectorIndexSetting,
|
|
3073
|
+
};
|
|
3074
|
+
}
|
|
3075
|
+
constructor(map) {
|
|
3076
|
+
super(map);
|
|
3077
|
+
}
|
|
3078
|
+
}
|
|
3079
|
+
exports.UpdateLibraryRequestIndexSetting = UpdateLibraryRequestIndexSetting;
|
|
3080
|
+
class Client extends openapi_client_1.default {
|
|
3081
|
+
constructor(config) {
|
|
3082
|
+
super(config);
|
|
3083
|
+
this._endpointRule = "";
|
|
3084
|
+
this.checkConfig(config);
|
|
3085
|
+
this._endpoint = this.getEndpoint("dianjin", this._regionId, this._endpointRule, this._network, this._suffix, this._endpointMap, this._endpoint);
|
|
3086
|
+
}
|
|
3087
|
+
getEndpoint(productId, regionId, endpointRule, network, suffix, endpointMap, endpoint) {
|
|
3088
|
+
if (!tea_util_1.default.empty(endpoint)) {
|
|
3089
|
+
return endpoint;
|
|
3090
|
+
}
|
|
3091
|
+
if (!tea_util_1.default.isUnset(endpointMap) && !tea_util_1.default.empty(endpointMap[regionId])) {
|
|
3092
|
+
return endpointMap[regionId];
|
|
3093
|
+
}
|
|
3094
|
+
return endpoint_util_1.default.getEndpointRules(productId, regionId, endpointRule, network, suffix);
|
|
3095
|
+
}
|
|
3096
|
+
/**
|
|
3097
|
+
* 创建文档库
|
|
3098
|
+
*
|
|
3099
|
+
* @param request - CreateLibraryRequest
|
|
3100
|
+
* @param headers - map
|
|
3101
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
3102
|
+
* @returns CreateLibraryResponse
|
|
3103
|
+
*/
|
|
3104
|
+
async createLibraryWithOptions(workspaceId, request, headers, runtime) {
|
|
3105
|
+
tea_util_1.default.validateModel(request);
|
|
3106
|
+
let body = {};
|
|
3107
|
+
if (!tea_util_1.default.isUnset(request.description)) {
|
|
3108
|
+
body["description"] = request.description;
|
|
3109
|
+
}
|
|
3110
|
+
if (!tea_util_1.default.isUnset(request.indexSetting)) {
|
|
3111
|
+
body["indexSetting"] = request.indexSetting;
|
|
3112
|
+
}
|
|
3113
|
+
if (!tea_util_1.default.isUnset(request.libraryName)) {
|
|
3114
|
+
body["libraryName"] = request.libraryName;
|
|
3115
|
+
}
|
|
3116
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
3117
|
+
headers: headers,
|
|
3118
|
+
body: openapi_util_1.default.parseToMap(body),
|
|
3119
|
+
});
|
|
3120
|
+
let params = new $OpenApi.Params({
|
|
3121
|
+
action: "CreateLibrary",
|
|
3122
|
+
version: "2024-06-28",
|
|
3123
|
+
protocol: "HTTPS",
|
|
3124
|
+
pathname: `/${openapi_util_1.default.getEncodeParam(workspaceId)}/api/library/create`,
|
|
3125
|
+
method: "POST",
|
|
3126
|
+
authType: "AK",
|
|
3127
|
+
style: "ROA",
|
|
3128
|
+
reqBodyType: "json",
|
|
3129
|
+
bodyType: "json",
|
|
3130
|
+
});
|
|
3131
|
+
return $tea.cast(await this.callApi(params, req, runtime), new CreateLibraryResponse({}));
|
|
3132
|
+
}
|
|
3133
|
+
/**
|
|
3134
|
+
* 创建文档库
|
|
3135
|
+
*
|
|
3136
|
+
* @param request - CreateLibraryRequest
|
|
3137
|
+
* @returns CreateLibraryResponse
|
|
3138
|
+
*/
|
|
3139
|
+
async createLibrary(workspaceId, request) {
|
|
3140
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
3141
|
+
let headers = {};
|
|
3142
|
+
return await this.createLibraryWithOptions(workspaceId, request, headers, runtime);
|
|
3143
|
+
}
|
|
3144
|
+
/**
|
|
3145
|
+
* 创建预定义文档
|
|
3146
|
+
*
|
|
3147
|
+
* @param request - CreatePredefinedDocumentRequest
|
|
3148
|
+
* @param headers - map
|
|
3149
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
3150
|
+
* @returns CreatePredefinedDocumentResponse
|
|
3151
|
+
*/
|
|
3152
|
+
async createPredefinedDocumentWithOptions(workspaceId, request, headers, runtime) {
|
|
3153
|
+
tea_util_1.default.validateModel(request);
|
|
3154
|
+
let body = {};
|
|
3155
|
+
if (!tea_util_1.default.isUnset(request.chunks)) {
|
|
3156
|
+
body["chunks"] = request.chunks;
|
|
3157
|
+
}
|
|
3158
|
+
if (!tea_util_1.default.isUnset(request.libraryId)) {
|
|
3159
|
+
body["libraryId"] = request.libraryId;
|
|
3160
|
+
}
|
|
3161
|
+
if (!tea_util_1.default.isUnset(request.metadata)) {
|
|
3162
|
+
body["metadata"] = request.metadata;
|
|
3163
|
+
}
|
|
3164
|
+
if (!tea_util_1.default.isUnset(request.title)) {
|
|
3165
|
+
body["title"] = request.title;
|
|
3166
|
+
}
|
|
3167
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
3168
|
+
headers: headers,
|
|
3169
|
+
body: openapi_util_1.default.parseToMap(body),
|
|
3170
|
+
});
|
|
3171
|
+
let params = new $OpenApi.Params({
|
|
3172
|
+
action: "CreatePredefinedDocument",
|
|
3173
|
+
version: "2024-06-28",
|
|
3174
|
+
protocol: "HTTPS",
|
|
3175
|
+
pathname: `/${openapi_util_1.default.getEncodeParam(workspaceId)}/api/library/document/createPredefinedDocument`,
|
|
3176
|
+
method: "POST",
|
|
3177
|
+
authType: "AK",
|
|
3178
|
+
style: "ROA",
|
|
3179
|
+
reqBodyType: "json",
|
|
3180
|
+
bodyType: "json",
|
|
3181
|
+
});
|
|
3182
|
+
return $tea.cast(await this.callApi(params, req, runtime), new CreatePredefinedDocumentResponse({}));
|
|
3183
|
+
}
|
|
3184
|
+
/**
|
|
3185
|
+
* 创建预定义文档
|
|
3186
|
+
*
|
|
3187
|
+
* @param request - CreatePredefinedDocumentRequest
|
|
3188
|
+
* @returns CreatePredefinedDocumentResponse
|
|
3189
|
+
*/
|
|
3190
|
+
async createPredefinedDocument(workspaceId, request) {
|
|
3191
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
3192
|
+
let headers = {};
|
|
3193
|
+
return await this.createPredefinedDocumentWithOptions(workspaceId, request, headers, runtime);
|
|
3194
|
+
}
|
|
3195
|
+
/**
|
|
3196
|
+
* 删除文档
|
|
3197
|
+
*
|
|
3198
|
+
* @param request - DeleteDocumentRequest
|
|
3199
|
+
* @param headers - map
|
|
3200
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
3201
|
+
* @returns DeleteDocumentResponse
|
|
3202
|
+
*/
|
|
3203
|
+
async deleteDocumentWithOptions(workspaceId, request, headers, runtime) {
|
|
3204
|
+
tea_util_1.default.validateModel(request);
|
|
3205
|
+
let body = {};
|
|
3206
|
+
if (!tea_util_1.default.isUnset(request.docIds)) {
|
|
3207
|
+
body["docIds"] = request.docIds;
|
|
3208
|
+
}
|
|
3209
|
+
if (!tea_util_1.default.isUnset(request.libraryId)) {
|
|
3210
|
+
body["libraryId"] = request.libraryId;
|
|
3211
|
+
}
|
|
3212
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
3213
|
+
headers: headers,
|
|
3214
|
+
body: openapi_util_1.default.parseToMap(body),
|
|
3215
|
+
});
|
|
3216
|
+
let params = new $OpenApi.Params({
|
|
3217
|
+
action: "DeleteDocument",
|
|
3218
|
+
version: "2024-06-28",
|
|
3219
|
+
protocol: "HTTPS",
|
|
3220
|
+
pathname: `/${openapi_util_1.default.getEncodeParam(workspaceId)}/api/library/document/delete`,
|
|
3221
|
+
method: "POST",
|
|
3222
|
+
authType: "AK",
|
|
3223
|
+
style: "ROA",
|
|
3224
|
+
reqBodyType: "json",
|
|
3225
|
+
bodyType: "json",
|
|
3226
|
+
});
|
|
3227
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DeleteDocumentResponse({}));
|
|
3228
|
+
}
|
|
3229
|
+
/**
|
|
3230
|
+
* 删除文档
|
|
3231
|
+
*
|
|
3232
|
+
* @param request - DeleteDocumentRequest
|
|
3233
|
+
* @returns DeleteDocumentResponse
|
|
3234
|
+
*/
|
|
3235
|
+
async deleteDocument(workspaceId, request) {
|
|
3236
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
3237
|
+
let headers = {};
|
|
3238
|
+
return await this.deleteDocumentWithOptions(workspaceId, request, headers, runtime);
|
|
3239
|
+
}
|
|
3240
|
+
/**
|
|
3241
|
+
* 删除文档库
|
|
3242
|
+
*
|
|
3243
|
+
* @param request - DeleteLibraryRequest
|
|
3244
|
+
* @param headers - map
|
|
3245
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
3246
|
+
* @returns DeleteLibraryResponse
|
|
3247
|
+
*/
|
|
3248
|
+
async deleteLibraryWithOptions(workspaceId, request, headers, runtime) {
|
|
3249
|
+
tea_util_1.default.validateModel(request);
|
|
3250
|
+
let query = {};
|
|
3251
|
+
if (!tea_util_1.default.isUnset(request.libraryId)) {
|
|
3252
|
+
query["libraryId"] = request.libraryId;
|
|
3253
|
+
}
|
|
3254
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
3255
|
+
headers: headers,
|
|
3256
|
+
query: openapi_util_1.default.query(query),
|
|
3257
|
+
});
|
|
3258
|
+
let params = new $OpenApi.Params({
|
|
3259
|
+
action: "DeleteLibrary",
|
|
3260
|
+
version: "2024-06-28",
|
|
3261
|
+
protocol: "HTTPS",
|
|
3262
|
+
pathname: `/${openapi_util_1.default.getEncodeParam(workspaceId)}/api/library/delete`,
|
|
3263
|
+
method: "DELETE",
|
|
3264
|
+
authType: "AK",
|
|
3265
|
+
style: "ROA",
|
|
3266
|
+
reqBodyType: "json",
|
|
3267
|
+
bodyType: "json",
|
|
3268
|
+
});
|
|
3269
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DeleteLibraryResponse({}));
|
|
3270
|
+
}
|
|
3271
|
+
/**
|
|
3272
|
+
* 删除文档库
|
|
3273
|
+
*
|
|
3274
|
+
* @param request - DeleteLibraryRequest
|
|
3275
|
+
* @returns DeleteLibraryResponse
|
|
3276
|
+
*/
|
|
3277
|
+
async deleteLibrary(workspaceId, request) {
|
|
3278
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
3279
|
+
let headers = {};
|
|
3280
|
+
return await this.deleteLibraryWithOptions(workspaceId, request, headers, runtime);
|
|
3281
|
+
}
|
|
3282
|
+
/**
|
|
3283
|
+
* 获取app配置
|
|
3284
|
+
*
|
|
3285
|
+
* @param headers - map
|
|
3286
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
3287
|
+
* @returns GetAppConfigResponse
|
|
3288
|
+
*/
|
|
3289
|
+
async getAppConfigWithOptions(workspaceId, headers, runtime) {
|
|
3290
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
3291
|
+
headers: headers,
|
|
3292
|
+
});
|
|
3293
|
+
let params = new $OpenApi.Params({
|
|
3294
|
+
action: "GetAppConfig",
|
|
3295
|
+
version: "2024-06-28",
|
|
3296
|
+
protocol: "HTTPS",
|
|
3297
|
+
pathname: `/${openapi_util_1.default.getEncodeParam(workspaceId)}/api/app/config`,
|
|
3298
|
+
method: "GET",
|
|
3299
|
+
authType: "AK",
|
|
3300
|
+
style: "ROA",
|
|
3301
|
+
reqBodyType: "json",
|
|
3302
|
+
bodyType: "json",
|
|
3303
|
+
});
|
|
3304
|
+
return $tea.cast(await this.callApi(params, req, runtime), new GetAppConfigResponse({}));
|
|
3305
|
+
}
|
|
3306
|
+
/**
|
|
3307
|
+
* 获取app配置
|
|
3308
|
+
* @returns GetAppConfigResponse
|
|
3309
|
+
*/
|
|
3310
|
+
async getAppConfig(workspaceId) {
|
|
3311
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
3312
|
+
let headers = {};
|
|
3313
|
+
return await this.getAppConfigWithOptions(workspaceId, headers, runtime);
|
|
3314
|
+
}
|
|
3315
|
+
/**
|
|
3316
|
+
* 获取文档的chunk列表
|
|
3317
|
+
*
|
|
3318
|
+
* @param request - GetDocumentChunkListRequest
|
|
3319
|
+
* @param headers - map
|
|
3320
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
3321
|
+
* @returns GetDocumentChunkListResponse
|
|
3322
|
+
*/
|
|
3323
|
+
async getDocumentChunkListWithOptions(workspaceId, request, headers, runtime) {
|
|
3324
|
+
tea_util_1.default.validateModel(request);
|
|
3325
|
+
let body = {};
|
|
3326
|
+
if (!tea_util_1.default.isUnset(request.chunkIdList)) {
|
|
3327
|
+
body["chunkIdList"] = request.chunkIdList;
|
|
3328
|
+
}
|
|
3329
|
+
if (!tea_util_1.default.isUnset(request.docId)) {
|
|
3330
|
+
body["docId"] = request.docId;
|
|
3331
|
+
}
|
|
3332
|
+
if (!tea_util_1.default.isUnset(request.libraryId)) {
|
|
3333
|
+
body["libraryId"] = request.libraryId;
|
|
3334
|
+
}
|
|
3335
|
+
if (!tea_util_1.default.isUnset(request.order)) {
|
|
3336
|
+
body["order"] = request.order;
|
|
3337
|
+
}
|
|
3338
|
+
if (!tea_util_1.default.isUnset(request.orderBy)) {
|
|
3339
|
+
body["orderBy"] = request.orderBy;
|
|
3340
|
+
}
|
|
3341
|
+
if (!tea_util_1.default.isUnset(request.page)) {
|
|
3342
|
+
body["page"] = request.page;
|
|
3343
|
+
}
|
|
3344
|
+
if (!tea_util_1.default.isUnset(request.pageSize)) {
|
|
3345
|
+
body["pageSize"] = request.pageSize;
|
|
3346
|
+
}
|
|
3347
|
+
if (!tea_util_1.default.isUnset(request.searchQuery)) {
|
|
3348
|
+
body["searchQuery"] = request.searchQuery;
|
|
3349
|
+
}
|
|
3350
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
3351
|
+
headers: headers,
|
|
3352
|
+
body: openapi_util_1.default.parseToMap(body),
|
|
3353
|
+
});
|
|
3354
|
+
let params = new $OpenApi.Params({
|
|
3355
|
+
action: "GetDocumentChunkList",
|
|
3356
|
+
version: "2024-06-28",
|
|
3357
|
+
protocol: "HTTPS",
|
|
3358
|
+
pathname: `/${openapi_util_1.default.getEncodeParam(workspaceId)}/api/library/getDocumentChunk`,
|
|
3359
|
+
method: "POST",
|
|
3360
|
+
authType: "AK",
|
|
3361
|
+
style: "ROA",
|
|
3362
|
+
reqBodyType: "json",
|
|
3363
|
+
bodyType: "json",
|
|
3364
|
+
});
|
|
3365
|
+
return $tea.cast(await this.callApi(params, req, runtime), new GetDocumentChunkListResponse({}));
|
|
3366
|
+
}
|
|
3367
|
+
/**
|
|
3368
|
+
* 获取文档的chunk列表
|
|
3369
|
+
*
|
|
3370
|
+
* @param request - GetDocumentChunkListRequest
|
|
3371
|
+
* @returns GetDocumentChunkListResponse
|
|
3372
|
+
*/
|
|
3373
|
+
async getDocumentChunkList(workspaceId, request) {
|
|
3374
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
3375
|
+
let headers = {};
|
|
3376
|
+
return await this.getDocumentChunkListWithOptions(workspaceId, request, headers, runtime);
|
|
3377
|
+
}
|
|
3378
|
+
/**
|
|
3379
|
+
* 分页查询文档库的文档列表
|
|
3380
|
+
*
|
|
3381
|
+
* @param request - GetDocumentListRequest
|
|
3382
|
+
* @param headers - map
|
|
3383
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
3384
|
+
* @returns GetDocumentListResponse
|
|
3385
|
+
*/
|
|
3386
|
+
async getDocumentListWithOptions(workspaceId, request, headers, runtime) {
|
|
3387
|
+
tea_util_1.default.validateModel(request);
|
|
3388
|
+
let query = {};
|
|
3389
|
+
if (!tea_util_1.default.isUnset(request.libraryId)) {
|
|
3390
|
+
query["libraryId"] = request.libraryId;
|
|
3391
|
+
}
|
|
3392
|
+
if (!tea_util_1.default.isUnset(request.page)) {
|
|
3393
|
+
query["page"] = request.page;
|
|
3394
|
+
}
|
|
3395
|
+
if (!tea_util_1.default.isUnset(request.pageSize)) {
|
|
3396
|
+
query["pageSize"] = request.pageSize;
|
|
3397
|
+
}
|
|
3398
|
+
if (!tea_util_1.default.isUnset(request.status)) {
|
|
3399
|
+
query["status"] = request.status;
|
|
3400
|
+
}
|
|
3401
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
3402
|
+
headers: headers,
|
|
3403
|
+
query: openapi_util_1.default.query(query),
|
|
3404
|
+
});
|
|
3405
|
+
let params = new $OpenApi.Params({
|
|
3406
|
+
action: "GetDocumentList",
|
|
3407
|
+
version: "2024-06-28",
|
|
3408
|
+
protocol: "HTTPS",
|
|
3409
|
+
pathname: `/${openapi_util_1.default.getEncodeParam(workspaceId)}/api/library/listDocument`,
|
|
3410
|
+
method: "GET",
|
|
3411
|
+
authType: "AK",
|
|
3412
|
+
style: "ROA",
|
|
3413
|
+
reqBodyType: "json",
|
|
3414
|
+
bodyType: "json",
|
|
3415
|
+
});
|
|
3416
|
+
return $tea.cast(await this.callApi(params, req, runtime), new GetDocumentListResponse({}));
|
|
3417
|
+
}
|
|
3418
|
+
/**
|
|
3419
|
+
* 分页查询文档库的文档列表
|
|
3420
|
+
*
|
|
3421
|
+
* @param request - GetDocumentListRequest
|
|
3422
|
+
* @returns GetDocumentListResponse
|
|
3423
|
+
*/
|
|
3424
|
+
async getDocumentList(workspaceId, request) {
|
|
3425
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
3426
|
+
let headers = {};
|
|
3427
|
+
return await this.getDocumentListWithOptions(workspaceId, request, headers, runtime);
|
|
3428
|
+
}
|
|
3429
|
+
/**
|
|
3430
|
+
* 获取文档URL
|
|
3431
|
+
*
|
|
3432
|
+
* @param request - GetDocumentUrlRequest
|
|
3433
|
+
* @param headers - map
|
|
3434
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
3435
|
+
* @returns GetDocumentUrlResponse
|
|
3436
|
+
*/
|
|
3437
|
+
async getDocumentUrlWithOptions(workspaceId, request, headers, runtime) {
|
|
3438
|
+
tea_util_1.default.validateModel(request);
|
|
3439
|
+
let query = {};
|
|
3440
|
+
if (!tea_util_1.default.isUnset(request.documentId)) {
|
|
3441
|
+
query["documentId"] = request.documentId;
|
|
3442
|
+
}
|
|
3443
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
3444
|
+
headers: headers,
|
|
3445
|
+
query: openapi_util_1.default.query(query),
|
|
3446
|
+
});
|
|
3447
|
+
let params = new $OpenApi.Params({
|
|
3448
|
+
action: "GetDocumentUrl",
|
|
3449
|
+
version: "2024-06-28",
|
|
3450
|
+
protocol: "HTTPS",
|
|
3451
|
+
pathname: `/${openapi_util_1.default.getEncodeParam(workspaceId)}/api/library/document/url`,
|
|
3452
|
+
method: "GET",
|
|
3453
|
+
authType: "AK",
|
|
3454
|
+
style: "ROA",
|
|
3455
|
+
reqBodyType: "json",
|
|
3456
|
+
bodyType: "json",
|
|
3457
|
+
});
|
|
3458
|
+
return $tea.cast(await this.callApi(params, req, runtime), new GetDocumentUrlResponse({}));
|
|
3459
|
+
}
|
|
3460
|
+
/**
|
|
3461
|
+
* 获取文档URL
|
|
3462
|
+
*
|
|
3463
|
+
* @param request - GetDocumentUrlRequest
|
|
3464
|
+
* @returns GetDocumentUrlResponse
|
|
3465
|
+
*/
|
|
3466
|
+
async getDocumentUrl(workspaceId, request) {
|
|
3467
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
3468
|
+
let headers = {};
|
|
3469
|
+
return await this.getDocumentUrlWithOptions(workspaceId, request, headers, runtime);
|
|
3470
|
+
}
|
|
3471
|
+
/**
|
|
3472
|
+
* 带条件的分页查询文档库的文档列表
|
|
3473
|
+
*
|
|
3474
|
+
* @param request - GetFilterDocumentListRequest
|
|
3475
|
+
* @param headers - map
|
|
3476
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
3477
|
+
* @returns GetFilterDocumentListResponse
|
|
3478
|
+
*/
|
|
3479
|
+
async getFilterDocumentListWithOptions(workspaceId, request, headers, runtime) {
|
|
3480
|
+
tea_util_1.default.validateModel(request);
|
|
3481
|
+
let body = {};
|
|
3482
|
+
if (!tea_util_1.default.isUnset(request.and)) {
|
|
3483
|
+
body["and"] = request.and;
|
|
3484
|
+
}
|
|
3485
|
+
if (!tea_util_1.default.isUnset(request.docIdList)) {
|
|
3486
|
+
body["docIdList"] = request.docIdList;
|
|
3487
|
+
}
|
|
3488
|
+
if (!tea_util_1.default.isUnset(request.libraryId)) {
|
|
3489
|
+
body["libraryId"] = request.libraryId;
|
|
3490
|
+
}
|
|
3491
|
+
if (!tea_util_1.default.isUnset(request.or)) {
|
|
3492
|
+
body["or"] = request.or;
|
|
3493
|
+
}
|
|
3494
|
+
if (!tea_util_1.default.isUnset(request.page)) {
|
|
3495
|
+
body["page"] = request.page;
|
|
3496
|
+
}
|
|
3497
|
+
if (!tea_util_1.default.isUnset(request.pageSize)) {
|
|
3498
|
+
body["pageSize"] = request.pageSize;
|
|
3499
|
+
}
|
|
3500
|
+
if (!tea_util_1.default.isUnset(request.status)) {
|
|
3501
|
+
body["status"] = request.status;
|
|
3502
|
+
}
|
|
3503
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
3504
|
+
headers: headers,
|
|
3505
|
+
body: openapi_util_1.default.parseToMap(body),
|
|
3506
|
+
});
|
|
3507
|
+
let params = new $OpenApi.Params({
|
|
3508
|
+
action: "GetFilterDocumentList",
|
|
3509
|
+
version: "2024-06-28",
|
|
3510
|
+
protocol: "HTTPS",
|
|
3511
|
+
pathname: `/${openapi_util_1.default.getEncodeParam(workspaceId)}/api/library/filterDocument`,
|
|
3512
|
+
method: "POST",
|
|
3513
|
+
authType: "AK",
|
|
3514
|
+
style: "ROA",
|
|
3515
|
+
reqBodyType: "json",
|
|
3516
|
+
bodyType: "json",
|
|
3517
|
+
});
|
|
3518
|
+
return $tea.cast(await this.callApi(params, req, runtime), new GetFilterDocumentListResponse({}));
|
|
3519
|
+
}
|
|
3520
|
+
/**
|
|
3521
|
+
* 带条件的分页查询文档库的文档列表
|
|
3522
|
+
*
|
|
3523
|
+
* @param request - GetFilterDocumentListRequest
|
|
3524
|
+
* @returns GetFilterDocumentListResponse
|
|
3525
|
+
*/
|
|
3526
|
+
async getFilterDocumentList(workspaceId, request) {
|
|
3527
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
3528
|
+
let headers = {};
|
|
3529
|
+
return await this.getFilterDocumentListWithOptions(workspaceId, request, headers, runtime);
|
|
3530
|
+
}
|
|
3531
|
+
/**
|
|
3532
|
+
* 获取文档库配置详情
|
|
3533
|
+
*
|
|
3534
|
+
* @param request - GetLibraryRequest
|
|
3535
|
+
* @param headers - map
|
|
3536
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
3537
|
+
* @returns GetLibraryResponse
|
|
3538
|
+
*/
|
|
3539
|
+
async getLibraryWithOptions(workspaceId, request, headers, runtime) {
|
|
3540
|
+
tea_util_1.default.validateModel(request);
|
|
3541
|
+
let query = {};
|
|
3542
|
+
if (!tea_util_1.default.isUnset(request.libraryId)) {
|
|
3543
|
+
query["libraryId"] = request.libraryId;
|
|
3544
|
+
}
|
|
3545
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
3546
|
+
headers: headers,
|
|
3547
|
+
query: openapi_util_1.default.query(query),
|
|
3548
|
+
});
|
|
3549
|
+
let params = new $OpenApi.Params({
|
|
3550
|
+
action: "GetLibrary",
|
|
3551
|
+
version: "2024-06-28",
|
|
3552
|
+
protocol: "HTTPS",
|
|
3553
|
+
pathname: `/${openapi_util_1.default.getEncodeParam(workspaceId)}/api/library/get`,
|
|
3554
|
+
method: "GET",
|
|
3555
|
+
authType: "AK",
|
|
3556
|
+
style: "ROA",
|
|
3557
|
+
reqBodyType: "json",
|
|
3558
|
+
bodyType: "json",
|
|
3559
|
+
});
|
|
3560
|
+
return $tea.cast(await this.callApi(params, req, runtime), new GetLibraryResponse({}));
|
|
3561
|
+
}
|
|
3562
|
+
/**
|
|
3563
|
+
* 获取文档库配置详情
|
|
3564
|
+
*
|
|
3565
|
+
* @param request - GetLibraryRequest
|
|
3566
|
+
* @returns GetLibraryResponse
|
|
3567
|
+
*/
|
|
3568
|
+
async getLibrary(workspaceId, request) {
|
|
3569
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
3570
|
+
let headers = {};
|
|
3571
|
+
return await this.getLibraryWithOptions(workspaceId, request, headers, runtime);
|
|
3572
|
+
}
|
|
3573
|
+
/**
|
|
3574
|
+
* 分页查询文档库列表
|
|
3575
|
+
*
|
|
3576
|
+
* @param request - GetLibraryListRequest
|
|
3577
|
+
* @param headers - map
|
|
3578
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
3579
|
+
* @returns GetLibraryListResponse
|
|
3580
|
+
*/
|
|
3581
|
+
async getLibraryListWithOptions(workspaceId, request, headers, runtime) {
|
|
3582
|
+
tea_util_1.default.validateModel(request);
|
|
3583
|
+
let query = {};
|
|
3584
|
+
if (!tea_util_1.default.isUnset(request.page)) {
|
|
3585
|
+
query["page"] = request.page;
|
|
3586
|
+
}
|
|
3587
|
+
if (!tea_util_1.default.isUnset(request.pageSize)) {
|
|
3588
|
+
query["pageSize"] = request.pageSize;
|
|
3589
|
+
}
|
|
3590
|
+
if (!tea_util_1.default.isUnset(request.query)) {
|
|
3591
|
+
query["query"] = request.query;
|
|
3592
|
+
}
|
|
3593
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
3594
|
+
headers: headers,
|
|
3595
|
+
query: openapi_util_1.default.query(query),
|
|
3596
|
+
});
|
|
3597
|
+
let params = new $OpenApi.Params({
|
|
3598
|
+
action: "GetLibraryList",
|
|
3599
|
+
version: "2024-06-28",
|
|
3600
|
+
protocol: "HTTPS",
|
|
3601
|
+
pathname: `/${openapi_util_1.default.getEncodeParam(workspaceId)}/api/library/list`,
|
|
3602
|
+
method: "GET",
|
|
3603
|
+
authType: "AK",
|
|
3604
|
+
style: "ROA",
|
|
3605
|
+
reqBodyType: "json",
|
|
3606
|
+
bodyType: "json",
|
|
3607
|
+
});
|
|
3608
|
+
return $tea.cast(await this.callApi(params, req, runtime), new GetLibraryListResponse({}));
|
|
3609
|
+
}
|
|
3610
|
+
/**
|
|
3611
|
+
* 分页查询文档库列表
|
|
3612
|
+
*
|
|
3613
|
+
* @param request - GetLibraryListRequest
|
|
3614
|
+
* @returns GetLibraryListResponse
|
|
3615
|
+
*/
|
|
3616
|
+
async getLibraryList(workspaceId, request) {
|
|
3617
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
3618
|
+
let headers = {};
|
|
3619
|
+
return await this.getLibraryListWithOptions(workspaceId, request, headers, runtime);
|
|
3620
|
+
}
|
|
3621
|
+
/**
|
|
3622
|
+
* 获取解析结果
|
|
3623
|
+
*
|
|
3624
|
+
* @param request - GetParseResultRequest
|
|
3625
|
+
* @param headers - map
|
|
3626
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
3627
|
+
* @returns GetParseResultResponse
|
|
3628
|
+
*/
|
|
3629
|
+
async getParseResultWithOptions(workspaceId, request, headers, runtime) {
|
|
3630
|
+
tea_util_1.default.validateModel(request);
|
|
3631
|
+
let body = {};
|
|
3632
|
+
if (!tea_util_1.default.isUnset(request.docId)) {
|
|
3633
|
+
body["docId"] = request.docId;
|
|
3634
|
+
}
|
|
3635
|
+
if (!tea_util_1.default.isUnset(request.libraryId)) {
|
|
3636
|
+
body["libraryId"] = request.libraryId;
|
|
3637
|
+
}
|
|
3638
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
3639
|
+
headers: headers,
|
|
3640
|
+
body: openapi_util_1.default.parseToMap(body),
|
|
3641
|
+
});
|
|
3642
|
+
let params = new $OpenApi.Params({
|
|
3643
|
+
action: "GetParseResult",
|
|
3644
|
+
version: "2024-06-28",
|
|
3645
|
+
protocol: "HTTPS",
|
|
3646
|
+
pathname: `/${openapi_util_1.default.getEncodeParam(workspaceId)}/api/library/document/getParseResult`,
|
|
3647
|
+
method: "POST",
|
|
3648
|
+
authType: "AK",
|
|
3649
|
+
style: "ROA",
|
|
3650
|
+
reqBodyType: "json",
|
|
3651
|
+
bodyType: "json",
|
|
3652
|
+
});
|
|
3653
|
+
return $tea.cast(await this.callApi(params, req, runtime), new GetParseResultResponse({}));
|
|
3654
|
+
}
|
|
3655
|
+
/**
|
|
3656
|
+
* 获取解析结果
|
|
3657
|
+
*
|
|
3658
|
+
* @param request - GetParseResultRequest
|
|
3659
|
+
* @returns GetParseResultResponse
|
|
3660
|
+
*/
|
|
3661
|
+
async getParseResult(workspaceId, request) {
|
|
3662
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
3663
|
+
let headers = {};
|
|
3664
|
+
return await this.getParseResultWithOptions(workspaceId, request, headers, runtime);
|
|
3665
|
+
}
|
|
3666
|
+
/**
|
|
3667
|
+
* 插件调试接口
|
|
3668
|
+
*
|
|
3669
|
+
* @param request - InvokePluginRequest
|
|
3670
|
+
* @param headers - map
|
|
3671
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
3672
|
+
* @returns InvokePluginResponse
|
|
3673
|
+
*/
|
|
3674
|
+
async invokePluginWithOptions(workspaceId, request, headers, runtime) {
|
|
3675
|
+
tea_util_1.default.validateModel(request);
|
|
3676
|
+
let body = {};
|
|
3677
|
+
if (!tea_util_1.default.isUnset(request.params)) {
|
|
3678
|
+
body["params"] = request.params;
|
|
3679
|
+
}
|
|
3680
|
+
if (!tea_util_1.default.isUnset(request.pluginId)) {
|
|
3681
|
+
body["pluginId"] = request.pluginId;
|
|
3682
|
+
}
|
|
3683
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
3684
|
+
headers: headers,
|
|
3685
|
+
body: openapi_util_1.default.parseToMap(body),
|
|
3686
|
+
});
|
|
3687
|
+
let params = new $OpenApi.Params({
|
|
3688
|
+
action: "InvokePlugin",
|
|
3689
|
+
version: "2024-06-28",
|
|
3690
|
+
protocol: "HTTPS",
|
|
3691
|
+
pathname: `/${openapi_util_1.default.getEncodeParam(workspaceId)}/api/plugin/invoke`,
|
|
3692
|
+
method: "POST",
|
|
3693
|
+
authType: "AK",
|
|
3694
|
+
style: "ROA",
|
|
3695
|
+
reqBodyType: "json",
|
|
3696
|
+
bodyType: "json",
|
|
3697
|
+
});
|
|
3698
|
+
return $tea.cast(await this.callApi(params, req, runtime), new InvokePluginResponse({}));
|
|
3699
|
+
}
|
|
3700
|
+
/**
|
|
3701
|
+
* 插件调试接口
|
|
3702
|
+
*
|
|
3703
|
+
* @param request - InvokePluginRequest
|
|
3704
|
+
* @returns InvokePluginResponse
|
|
3705
|
+
*/
|
|
3706
|
+
async invokePlugin(workspaceId, request) {
|
|
3707
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
3708
|
+
let headers = {};
|
|
3709
|
+
return await this.invokePluginWithOptions(workspaceId, request, headers, runtime);
|
|
3710
|
+
}
|
|
3711
|
+
/**
|
|
3712
|
+
* 获取文档预览
|
|
3713
|
+
*
|
|
3714
|
+
* @param request - PreviewDocumentRequest
|
|
3715
|
+
* @param headers - map
|
|
3716
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
3717
|
+
* @returns PreviewDocumentResponse
|
|
3718
|
+
*/
|
|
3719
|
+
async previewDocumentWithOptions(workspaceId, request, headers, runtime) {
|
|
3720
|
+
tea_util_1.default.validateModel(request);
|
|
3721
|
+
let query = {};
|
|
3722
|
+
if (!tea_util_1.default.isUnset(request.documentId)) {
|
|
3723
|
+
query["documentId"] = request.documentId;
|
|
3724
|
+
}
|
|
3725
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
3726
|
+
headers: headers,
|
|
3727
|
+
query: openapi_util_1.default.query(query),
|
|
3728
|
+
});
|
|
3729
|
+
let params = new $OpenApi.Params({
|
|
3730
|
+
action: "PreviewDocument",
|
|
3731
|
+
version: "2024-06-28",
|
|
3732
|
+
protocol: "HTTPS",
|
|
3733
|
+
pathname: `/${openapi_util_1.default.getEncodeParam(workspaceId)}/api/library/document/preview`,
|
|
3734
|
+
method: "GET",
|
|
3735
|
+
authType: "AK",
|
|
3736
|
+
style: "ROA",
|
|
3737
|
+
reqBodyType: "json",
|
|
3738
|
+
bodyType: "json",
|
|
3739
|
+
});
|
|
3740
|
+
return $tea.cast(await this.callApi(params, req, runtime), new PreviewDocumentResponse({}));
|
|
3741
|
+
}
|
|
3742
|
+
/**
|
|
3743
|
+
* 获取文档预览
|
|
3744
|
+
*
|
|
3745
|
+
* @param request - PreviewDocumentRequest
|
|
3746
|
+
* @returns PreviewDocumentResponse
|
|
3747
|
+
*/
|
|
3748
|
+
async previewDocument(workspaceId, request) {
|
|
3749
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
3750
|
+
let headers = {};
|
|
3751
|
+
return await this.previewDocumentWithOptions(workspaceId, request, headers, runtime);
|
|
3752
|
+
}
|
|
3753
|
+
/**
|
|
3754
|
+
* 重新索引
|
|
3755
|
+
*
|
|
3756
|
+
* @param request - ReIndexRequest
|
|
3757
|
+
* @param headers - map
|
|
3758
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
3759
|
+
* @returns ReIndexResponse
|
|
3760
|
+
*/
|
|
3761
|
+
async reIndexWithOptions(workspaceId, request, headers, runtime) {
|
|
3762
|
+
tea_util_1.default.validateModel(request);
|
|
3763
|
+
let query = {};
|
|
3764
|
+
if (!tea_util_1.default.isUnset(request.documentId)) {
|
|
3765
|
+
query["documentId"] = request.documentId;
|
|
3766
|
+
}
|
|
3767
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
3768
|
+
headers: headers,
|
|
3769
|
+
query: openapi_util_1.default.query(query),
|
|
3770
|
+
});
|
|
3771
|
+
let params = new $OpenApi.Params({
|
|
3772
|
+
action: "ReIndex",
|
|
3773
|
+
version: "2024-06-28",
|
|
3774
|
+
protocol: "HTTPS",
|
|
3775
|
+
pathname: `/${openapi_util_1.default.getEncodeParam(workspaceId)}/api/library/document/reIndex`,
|
|
3776
|
+
method: "PUT",
|
|
3777
|
+
authType: "AK",
|
|
3778
|
+
style: "ROA",
|
|
3779
|
+
reqBodyType: "json",
|
|
3780
|
+
bodyType: "json",
|
|
3781
|
+
});
|
|
3782
|
+
return $tea.cast(await this.callApi(params, req, runtime), new ReIndexResponse({}));
|
|
3783
|
+
}
|
|
3784
|
+
/**
|
|
3785
|
+
* 重新索引
|
|
3786
|
+
*
|
|
3787
|
+
* @param request - ReIndexRequest
|
|
3788
|
+
* @returns ReIndexResponse
|
|
3789
|
+
*/
|
|
3790
|
+
async reIndex(workspaceId, request) {
|
|
3791
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
3792
|
+
let headers = {};
|
|
3793
|
+
return await this.reIndexWithOptions(workspaceId, request, headers, runtime);
|
|
3794
|
+
}
|
|
3795
|
+
/**
|
|
3796
|
+
* 文档召回
|
|
3797
|
+
*
|
|
3798
|
+
* @param request - RecallDocumentRequest
|
|
3799
|
+
* @param headers - map
|
|
3800
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
3801
|
+
* @returns RecallDocumentResponse
|
|
3802
|
+
*/
|
|
3803
|
+
async recallDocumentWithOptions(workspaceId, request, headers, runtime) {
|
|
3804
|
+
tea_util_1.default.validateModel(request);
|
|
3805
|
+
let body = {};
|
|
3806
|
+
if (!tea_util_1.default.isUnset(request.filters)) {
|
|
3807
|
+
body["filters"] = request.filters;
|
|
3808
|
+
}
|
|
3809
|
+
if (!tea_util_1.default.isUnset(request.query)) {
|
|
3810
|
+
body["query"] = request.query;
|
|
3811
|
+
}
|
|
3812
|
+
if (!tea_util_1.default.isUnset(request.rearrangement)) {
|
|
3813
|
+
body["rearrangement"] = request.rearrangement;
|
|
3814
|
+
}
|
|
3815
|
+
if (!tea_util_1.default.isUnset(request.topK)) {
|
|
3816
|
+
body["topK"] = request.topK;
|
|
3817
|
+
}
|
|
3818
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
3819
|
+
headers: headers,
|
|
3820
|
+
body: openapi_util_1.default.parseToMap(body),
|
|
3821
|
+
});
|
|
3822
|
+
let params = new $OpenApi.Params({
|
|
3823
|
+
action: "RecallDocument",
|
|
3824
|
+
version: "2024-06-28",
|
|
3825
|
+
protocol: "HTTPS",
|
|
3826
|
+
pathname: `/${openapi_util_1.default.getEncodeParam(workspaceId)}/api/library/recallDocument`,
|
|
3827
|
+
method: "POST",
|
|
3828
|
+
authType: "AK",
|
|
3829
|
+
style: "ROA",
|
|
3830
|
+
reqBodyType: "json",
|
|
3831
|
+
bodyType: "json",
|
|
3832
|
+
});
|
|
3833
|
+
return $tea.cast(await this.callApi(params, req, runtime), new RecallDocumentResponse({}));
|
|
3834
|
+
}
|
|
3835
|
+
/**
|
|
3836
|
+
* 文档召回
|
|
3837
|
+
*
|
|
3838
|
+
* @param request - RecallDocumentRequest
|
|
3839
|
+
* @returns RecallDocumentResponse
|
|
3840
|
+
*/
|
|
3841
|
+
async recallDocument(workspaceId, request) {
|
|
3842
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
3843
|
+
let headers = {};
|
|
3844
|
+
return await this.recallDocumentWithOptions(workspaceId, request, headers, runtime);
|
|
3845
|
+
}
|
|
3846
|
+
/**
|
|
3847
|
+
* 获取生成式对话结果
|
|
3848
|
+
*
|
|
3849
|
+
* @param request - RunChatResultGenerationRequest
|
|
3850
|
+
* @param headers - map
|
|
3851
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
3852
|
+
* @returns RunChatResultGenerationResponse
|
|
3853
|
+
*/
|
|
3854
|
+
async runChatResultGenerationWithOptions(workspaceId, request, headers, runtime) {
|
|
3855
|
+
tea_util_1.default.validateModel(request);
|
|
3856
|
+
let body = {};
|
|
3857
|
+
if (!tea_util_1.default.isUnset(request.inferenceParameters)) {
|
|
3858
|
+
body["inferenceParameters"] = request.inferenceParameters;
|
|
3859
|
+
}
|
|
3860
|
+
if (!tea_util_1.default.isUnset(request.messages)) {
|
|
3861
|
+
body["messages"] = request.messages;
|
|
3862
|
+
}
|
|
3863
|
+
if (!tea_util_1.default.isUnset(request.modelId)) {
|
|
3864
|
+
body["modelId"] = request.modelId;
|
|
3865
|
+
}
|
|
3866
|
+
if (!tea_util_1.default.isUnset(request.sessionId)) {
|
|
3867
|
+
body["sessionId"] = request.sessionId;
|
|
3868
|
+
}
|
|
3869
|
+
if (!tea_util_1.default.isUnset(request.stream)) {
|
|
3870
|
+
body["stream"] = request.stream;
|
|
3871
|
+
}
|
|
3872
|
+
if (!tea_util_1.default.isUnset(request.tools)) {
|
|
3873
|
+
body["tools"] = request.tools;
|
|
3874
|
+
}
|
|
3875
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
3876
|
+
headers: headers,
|
|
3877
|
+
body: openapi_util_1.default.parseToMap(body),
|
|
3878
|
+
});
|
|
3879
|
+
let params = new $OpenApi.Params({
|
|
3880
|
+
action: "RunChatResultGeneration",
|
|
3881
|
+
version: "2024-06-28",
|
|
3882
|
+
protocol: "HTTPS",
|
|
3883
|
+
pathname: `/${openapi_util_1.default.getEncodeParam(workspaceId)}/api/run/chat/generation`,
|
|
3884
|
+
method: "POST",
|
|
3885
|
+
authType: "AK",
|
|
3886
|
+
style: "ROA",
|
|
3887
|
+
reqBodyType: "json",
|
|
3888
|
+
bodyType: "json",
|
|
3889
|
+
});
|
|
3890
|
+
return $tea.cast(await this.callApi(params, req, runtime), new RunChatResultGenerationResponse({}));
|
|
3891
|
+
}
|
|
3892
|
+
/**
|
|
3893
|
+
* 获取生成式对话结果
|
|
3894
|
+
*
|
|
3895
|
+
* @param request - RunChatResultGenerationRequest
|
|
3896
|
+
* @returns RunChatResultGenerationResponse
|
|
3897
|
+
*/
|
|
3898
|
+
async runChatResultGeneration(workspaceId, request) {
|
|
3899
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
3900
|
+
let headers = {};
|
|
3901
|
+
return await this.runChatResultGenerationWithOptions(workspaceId, request, headers, runtime);
|
|
3902
|
+
}
|
|
3903
|
+
/**
|
|
3904
|
+
* 更新文档
|
|
3905
|
+
*
|
|
3906
|
+
* @param request - UpdateDocumentRequest
|
|
3907
|
+
* @param headers - map
|
|
3908
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
3909
|
+
* @returns UpdateDocumentResponse
|
|
3910
|
+
*/
|
|
3911
|
+
async updateDocumentWithOptions(workspaceId, request, headers, runtime) {
|
|
3912
|
+
tea_util_1.default.validateModel(request);
|
|
3913
|
+
let body = {};
|
|
3914
|
+
if (!tea_util_1.default.isUnset(request.docId)) {
|
|
3915
|
+
body["docId"] = request.docId;
|
|
3916
|
+
}
|
|
3917
|
+
if (!tea_util_1.default.isUnset(request.libraryId)) {
|
|
3918
|
+
body["libraryId"] = request.libraryId;
|
|
3919
|
+
}
|
|
3920
|
+
if (!tea_util_1.default.isUnset(request.meta)) {
|
|
3921
|
+
body["meta"] = request.meta;
|
|
3922
|
+
}
|
|
3923
|
+
if (!tea_util_1.default.isUnset(request.title)) {
|
|
3924
|
+
body["title"] = request.title;
|
|
3925
|
+
}
|
|
3926
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
3927
|
+
headers: headers,
|
|
3928
|
+
body: openapi_util_1.default.parseToMap(body),
|
|
3929
|
+
});
|
|
3930
|
+
let params = new $OpenApi.Params({
|
|
3931
|
+
action: "UpdateDocument",
|
|
3932
|
+
version: "2024-06-28",
|
|
3933
|
+
protocol: "HTTPS",
|
|
3934
|
+
pathname: `/${openapi_util_1.default.getEncodeParam(workspaceId)}/api/library/document/updateDocument`,
|
|
3935
|
+
method: "POST",
|
|
3936
|
+
authType: "AK",
|
|
3937
|
+
style: "ROA",
|
|
3938
|
+
reqBodyType: "json",
|
|
3939
|
+
bodyType: "json",
|
|
3940
|
+
});
|
|
3941
|
+
return $tea.cast(await this.callApi(params, req, runtime), new UpdateDocumentResponse({}));
|
|
3942
|
+
}
|
|
3943
|
+
/**
|
|
3944
|
+
* 更新文档
|
|
3945
|
+
*
|
|
3946
|
+
* @param request - UpdateDocumentRequest
|
|
3947
|
+
* @returns UpdateDocumentResponse
|
|
3948
|
+
*/
|
|
3949
|
+
async updateDocument(workspaceId, request) {
|
|
3950
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
3951
|
+
let headers = {};
|
|
3952
|
+
return await this.updateDocumentWithOptions(workspaceId, request, headers, runtime);
|
|
3953
|
+
}
|
|
3954
|
+
/**
|
|
3955
|
+
* 更新文档库配置
|
|
3956
|
+
*
|
|
3957
|
+
* @param request - UpdateLibraryRequest
|
|
3958
|
+
* @param headers - map
|
|
3959
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
3960
|
+
* @returns UpdateLibraryResponse
|
|
3961
|
+
*/
|
|
3962
|
+
async updateLibraryWithOptions(workspaceId, request, headers, runtime) {
|
|
3963
|
+
tea_util_1.default.validateModel(request);
|
|
3964
|
+
let body = {};
|
|
3965
|
+
if (!tea_util_1.default.isUnset(request.description)) {
|
|
3966
|
+
body["description"] = request.description;
|
|
3967
|
+
}
|
|
3968
|
+
if (!tea_util_1.default.isUnset(request.indexSetting)) {
|
|
3969
|
+
body["indexSetting"] = request.indexSetting;
|
|
3970
|
+
}
|
|
3971
|
+
if (!tea_util_1.default.isUnset(request.libraryId)) {
|
|
3972
|
+
body["libraryId"] = request.libraryId;
|
|
3973
|
+
}
|
|
3974
|
+
if (!tea_util_1.default.isUnset(request.libraryName)) {
|
|
3975
|
+
body["libraryName"] = request.libraryName;
|
|
3976
|
+
}
|
|
3977
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
3978
|
+
headers: headers,
|
|
3979
|
+
body: openapi_util_1.default.parseToMap(body),
|
|
3980
|
+
});
|
|
3981
|
+
let params = new $OpenApi.Params({
|
|
3982
|
+
action: "UpdateLibrary",
|
|
3983
|
+
version: "2024-06-28",
|
|
3984
|
+
protocol: "HTTPS",
|
|
3985
|
+
pathname: `/${openapi_util_1.default.getEncodeParam(workspaceId)}/api/library/update`,
|
|
3986
|
+
method: "PUT",
|
|
3987
|
+
authType: "AK",
|
|
3988
|
+
style: "ROA",
|
|
3989
|
+
reqBodyType: "json",
|
|
3990
|
+
bodyType: "json",
|
|
3991
|
+
});
|
|
3992
|
+
return $tea.cast(await this.callApi(params, req, runtime), new UpdateLibraryResponse({}));
|
|
3993
|
+
}
|
|
3994
|
+
/**
|
|
3995
|
+
* 更新文档库配置
|
|
3996
|
+
*
|
|
3997
|
+
* @param request - UpdateLibraryRequest
|
|
3998
|
+
* @returns UpdateLibraryResponse
|
|
3999
|
+
*/
|
|
4000
|
+
async updateLibrary(workspaceId, request) {
|
|
4001
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
4002
|
+
let headers = {};
|
|
4003
|
+
return await this.updateLibraryWithOptions(workspaceId, request, headers, runtime);
|
|
4004
|
+
}
|
|
4005
|
+
/**
|
|
4006
|
+
* 上传文档到文档库
|
|
4007
|
+
*
|
|
4008
|
+
* @param request - UploadDocumentRequest
|
|
4009
|
+
* @param headers - map
|
|
4010
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
4011
|
+
* @returns UploadDocumentResponse
|
|
4012
|
+
*/
|
|
4013
|
+
async uploadDocumentWithOptions(workspaceId, request, headers, runtime) {
|
|
4014
|
+
tea_util_1.default.validateModel(request);
|
|
4015
|
+
let body = {};
|
|
4016
|
+
if (!tea_util_1.default.isUnset(request.data)) {
|
|
4017
|
+
body["data"] = request.data;
|
|
4018
|
+
}
|
|
4019
|
+
if (!tea_util_1.default.isUnset(request.fileName)) {
|
|
4020
|
+
body["fileName"] = request.fileName;
|
|
4021
|
+
}
|
|
4022
|
+
if (!tea_util_1.default.isUnset(request.fileUrl)) {
|
|
4023
|
+
body["fileUrl"] = request.fileUrl;
|
|
4024
|
+
}
|
|
4025
|
+
if (!tea_util_1.default.isUnset(request.libraryId)) {
|
|
4026
|
+
body["libraryId"] = request.libraryId;
|
|
4027
|
+
}
|
|
4028
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
4029
|
+
headers: headers,
|
|
4030
|
+
body: openapi_util_1.default.parseToMap(body),
|
|
4031
|
+
});
|
|
4032
|
+
let params = new $OpenApi.Params({
|
|
4033
|
+
action: "UploadDocument",
|
|
4034
|
+
version: "2024-06-28",
|
|
4035
|
+
protocol: "HTTPS",
|
|
4036
|
+
pathname: `/${openapi_util_1.default.getEncodeParam(workspaceId)}/api/library/document/upload`,
|
|
4037
|
+
method: "POST",
|
|
4038
|
+
authType: "AK",
|
|
4039
|
+
style: "ROA",
|
|
4040
|
+
reqBodyType: "json",
|
|
4041
|
+
bodyType: "json",
|
|
4042
|
+
});
|
|
4043
|
+
return $tea.cast(await this.callApi(params, req, runtime), new UploadDocumentResponse({}));
|
|
4044
|
+
}
|
|
4045
|
+
/**
|
|
4046
|
+
* 上传文档到文档库
|
|
4047
|
+
*
|
|
4048
|
+
* @param request - UploadDocumentRequest
|
|
4049
|
+
* @returns UploadDocumentResponse
|
|
4050
|
+
*/
|
|
4051
|
+
async uploadDocument(workspaceId, request) {
|
|
4052
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
4053
|
+
let headers = {};
|
|
4054
|
+
return await this.uploadDocumentWithOptions(workspaceId, request, headers, runtime);
|
|
4055
|
+
}
|
|
4056
|
+
async uploadDocumentAdvance(workspaceId, request, headers, runtime) {
|
|
4057
|
+
// Step 0: init client
|
|
4058
|
+
let accessKeyId = await this._credential.getAccessKeyId();
|
|
4059
|
+
let accessKeySecret = await this._credential.getAccessKeySecret();
|
|
4060
|
+
let securityToken = await this._credential.getSecurityToken();
|
|
4061
|
+
let credentialType = this._credential.getType();
|
|
4062
|
+
let openPlatformEndpoint = this._openPlatformEndpoint;
|
|
4063
|
+
if (tea_util_1.default.empty(openPlatformEndpoint)) {
|
|
4064
|
+
openPlatformEndpoint = "openplatform.aliyuncs.com";
|
|
4065
|
+
}
|
|
4066
|
+
if (tea_util_1.default.isUnset(credentialType)) {
|
|
4067
|
+
credentialType = "access_key";
|
|
4068
|
+
}
|
|
4069
|
+
let authConfig = new $OpenApi.Config({
|
|
4070
|
+
accessKeyId: accessKeyId,
|
|
4071
|
+
accessKeySecret: accessKeySecret,
|
|
4072
|
+
securityToken: securityToken,
|
|
4073
|
+
type: credentialType,
|
|
4074
|
+
endpoint: openPlatformEndpoint,
|
|
4075
|
+
protocol: this._protocol,
|
|
4076
|
+
regionId: this._regionId,
|
|
4077
|
+
});
|
|
4078
|
+
let authClient = new openplatform20191219_1.default(authConfig);
|
|
4079
|
+
let authRequest = new $OpenPlatform.AuthorizeFileUploadRequest({
|
|
4080
|
+
product: "DianJin",
|
|
4081
|
+
regionId: this._regionId,
|
|
4082
|
+
});
|
|
4083
|
+
let authResponse = new $OpenPlatform.AuthorizeFileUploadResponse({});
|
|
4084
|
+
let ossConfig = new $OSS.Config({
|
|
4085
|
+
accessKeyId: accessKeyId,
|
|
4086
|
+
accessKeySecret: accessKeySecret,
|
|
4087
|
+
type: "access_key",
|
|
4088
|
+
protocol: this._protocol,
|
|
4089
|
+
regionId: this._regionId,
|
|
4090
|
+
});
|
|
4091
|
+
let ossClient = new oss_client_1.default(ossConfig);
|
|
4092
|
+
let fileObj = new $FileForm.FileField({});
|
|
4093
|
+
let ossHeader = new $OSS.PostObjectRequestHeader({});
|
|
4094
|
+
let uploadRequest = new $OSS.PostObjectRequest({});
|
|
4095
|
+
let ossRuntime = new $OSSUtil.RuntimeOptions({});
|
|
4096
|
+
openapi_util_1.default.convert(runtime, ossRuntime);
|
|
4097
|
+
let uploadDocumentReq = new UploadDocumentRequest({});
|
|
4098
|
+
openapi_util_1.default.convert(request, uploadDocumentReq);
|
|
4099
|
+
if (!tea_util_1.default.isUnset(request.fileUrlObject)) {
|
|
4100
|
+
authResponse = await authClient.authorizeFileUploadWithOptions(authRequest, runtime);
|
|
4101
|
+
ossConfig.accessKeyId = authResponse.body.accessKeyId;
|
|
4102
|
+
ossConfig.endpoint = openapi_util_1.default.getEndpoint(authResponse.body.endpoint, authResponse.body.useAccelerate, this._endpointType);
|
|
4103
|
+
ossClient = new oss_client_1.default(ossConfig);
|
|
4104
|
+
fileObj = new $FileForm.FileField({
|
|
4105
|
+
filename: authResponse.body.objectKey,
|
|
4106
|
+
content: request.fileUrlObject,
|
|
4107
|
+
contentType: "",
|
|
4108
|
+
});
|
|
4109
|
+
ossHeader = new $OSS.PostObjectRequestHeader({
|
|
4110
|
+
accessKeyId: authResponse.body.accessKeyId,
|
|
4111
|
+
policy: authResponse.body.encodedPolicy,
|
|
4112
|
+
signature: authResponse.body.signature,
|
|
4113
|
+
key: authResponse.body.objectKey,
|
|
4114
|
+
file: fileObj,
|
|
4115
|
+
successActionStatus: "201",
|
|
4116
|
+
});
|
|
4117
|
+
uploadRequest = new $OSS.PostObjectRequest({
|
|
4118
|
+
bucketName: authResponse.body.bucket,
|
|
4119
|
+
header: ossHeader,
|
|
4120
|
+
});
|
|
4121
|
+
await ossClient.postObject(uploadRequest, ossRuntime);
|
|
4122
|
+
uploadDocumentReq.fileUrl = `http://${authResponse.body.bucket}.${authResponse.body.endpoint}/${authResponse.body.objectKey}`;
|
|
4123
|
+
}
|
|
4124
|
+
let uploadDocumentResp = await this.uploadDocumentWithOptions(workspaceId, uploadDocumentReq, headers, runtime);
|
|
4125
|
+
return uploadDocumentResp;
|
|
4126
|
+
}
|
|
4127
|
+
}
|
|
4128
|
+
exports.default = Client;
|
|
4129
|
+
//# sourceMappingURL=client.js.map
|