@alicloud/dianjin20240628 1.6.2 → 1.6.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.d.ts +1 -0
- package/dist/client.js +227 -41
- package/dist/client.js.map +1 -1
- package/package.json +2 -1
- package/src/client.ts +211 -34
package/dist/client.d.ts
CHANGED
package/dist/client.js
CHANGED
|
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
36
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
37
|
};
|
|
@@ -34,6 +44,7 @@ exports.UpdateLibraryRequestIndexSetting = exports.UpdateLibraryRequestIndexSett
|
|
|
34
44
|
/**
|
|
35
45
|
*/
|
|
36
46
|
const tea_util_1 = __importStar(require("@alicloud/tea-util")), $Util = tea_util_1;
|
|
47
|
+
const gateway_pop_1 = __importDefault(require("@alicloud/gateway-pop"));
|
|
37
48
|
const oss_client_1 = __importStar(require("@alicloud/oss-client")), $OSS = oss_client_1;
|
|
38
49
|
const openplatform20191219_1 = __importStar(require("@alicloud/openplatform20191219")), $OpenPlatform = openplatform20191219_1;
|
|
39
50
|
const $OSSUtil = __importStar(require("@alicloud/oss-util"));
|
|
@@ -3686,6 +3697,7 @@ class GetQualityCheckTaskResultResponseBodyDataQualityCheckList extends $tea.Mod
|
|
|
3686
3697
|
ruleDescription: 'ruleDescription',
|
|
3687
3698
|
ruleId: 'ruleId',
|
|
3688
3699
|
ruleType: 'ruleType',
|
|
3700
|
+
subNodeCol: 'subNodeCol',
|
|
3689
3701
|
};
|
|
3690
3702
|
}
|
|
3691
3703
|
static types() {
|
|
@@ -3703,6 +3715,7 @@ class GetQualityCheckTaskResultResponseBodyDataQualityCheckList extends $tea.Mod
|
|
|
3703
3715
|
ruleDescription: 'string',
|
|
3704
3716
|
ruleId: 'string',
|
|
3705
3717
|
ruleType: 'string',
|
|
3718
|
+
subNodeCol: { 'type': 'array', 'itemType': 'any' },
|
|
3706
3719
|
};
|
|
3707
3720
|
}
|
|
3708
3721
|
constructor(map) {
|
|
@@ -4739,6 +4752,9 @@ exports.UpdateLibraryRequestIndexSetting = UpdateLibraryRequestIndexSetting;
|
|
|
4739
4752
|
class Client extends openapi_client_1.default {
|
|
4740
4753
|
constructor(config) {
|
|
4741
4754
|
super(config);
|
|
4755
|
+
this._productId = "DianJin";
|
|
4756
|
+
let gatewayClient = new gateway_pop_1.default();
|
|
4757
|
+
this._spi = gatewayClient;
|
|
4742
4758
|
this._endpointRule = "";
|
|
4743
4759
|
this.checkConfig(config);
|
|
4744
4760
|
this._endpoint = this.getEndpoint("dianjin", this._regionId, this._endpointRule, this._network, this._suffix, this._endpointMap, this._endpoint);
|
|
@@ -4793,7 +4809,12 @@ class Client extends openapi_client_1.default {
|
|
|
4793
4809
|
reqBodyType: "json",
|
|
4794
4810
|
bodyType: "json",
|
|
4795
4811
|
});
|
|
4796
|
-
|
|
4812
|
+
if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
|
|
4813
|
+
return $tea.cast(await this.callApi(params, req, runtime), new CreateAnnualDocSummaryTaskResponse({}));
|
|
4814
|
+
}
|
|
4815
|
+
else {
|
|
4816
|
+
return $tea.cast(await this.execute(params, req, runtime), new CreateAnnualDocSummaryTaskResponse({}));
|
|
4817
|
+
}
|
|
4797
4818
|
}
|
|
4798
4819
|
/**
|
|
4799
4820
|
* 创建按年文档总结任务
|
|
@@ -4844,7 +4865,12 @@ class Client extends openapi_client_1.default {
|
|
|
4844
4865
|
reqBodyType: "json",
|
|
4845
4866
|
bodyType: "json",
|
|
4846
4867
|
});
|
|
4847
|
-
|
|
4868
|
+
if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
|
|
4869
|
+
return $tea.cast(await this.callApi(params, req, runtime), new CreateDocsSummaryTaskResponse({}));
|
|
4870
|
+
}
|
|
4871
|
+
else {
|
|
4872
|
+
return $tea.cast(await this.execute(params, req, runtime), new CreateDocsSummaryTaskResponse({}));
|
|
4873
|
+
}
|
|
4848
4874
|
}
|
|
4849
4875
|
/**
|
|
4850
4876
|
* 创建财报总结任务
|
|
@@ -4907,7 +4933,12 @@ class Client extends openapi_client_1.default {
|
|
|
4907
4933
|
reqBodyType: "json",
|
|
4908
4934
|
bodyType: "json",
|
|
4909
4935
|
});
|
|
4910
|
-
|
|
4936
|
+
if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
|
|
4937
|
+
return $tea.cast(await this.callApi(params, req, runtime), new CreateFinReportSummaryTaskResponse({}));
|
|
4938
|
+
}
|
|
4939
|
+
else {
|
|
4940
|
+
return $tea.cast(await this.execute(params, req, runtime), new CreateFinReportSummaryTaskResponse({}));
|
|
4941
|
+
}
|
|
4911
4942
|
}
|
|
4912
4943
|
/**
|
|
4913
4944
|
* 创建财报总结任务
|
|
@@ -4955,7 +4986,12 @@ class Client extends openapi_client_1.default {
|
|
|
4955
4986
|
reqBodyType: "json",
|
|
4956
4987
|
bodyType: "json",
|
|
4957
4988
|
});
|
|
4958
|
-
|
|
4989
|
+
if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
|
|
4990
|
+
return $tea.cast(await this.callApi(params, req, runtime), new CreateLibraryResponse({}));
|
|
4991
|
+
}
|
|
4992
|
+
else {
|
|
4993
|
+
return $tea.cast(await this.execute(params, req, runtime), new CreateLibraryResponse({}));
|
|
4994
|
+
}
|
|
4959
4995
|
}
|
|
4960
4996
|
/**
|
|
4961
4997
|
* 创建文档库
|
|
@@ -5009,7 +5045,12 @@ class Client extends openapi_client_1.default {
|
|
|
5009
5045
|
reqBodyType: "json",
|
|
5010
5046
|
bodyType: "json",
|
|
5011
5047
|
});
|
|
5012
|
-
|
|
5048
|
+
if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
|
|
5049
|
+
return $tea.cast(await this.callApi(params, req, runtime), new CreatePdfTranslateTaskResponse({}));
|
|
5050
|
+
}
|
|
5051
|
+
else {
|
|
5052
|
+
return $tea.cast(await this.execute(params, req, runtime), new CreatePdfTranslateTaskResponse({}));
|
|
5053
|
+
}
|
|
5013
5054
|
}
|
|
5014
5055
|
/**
|
|
5015
5056
|
* 创建PDF翻译任务
|
|
@@ -5060,7 +5101,12 @@ class Client extends openapi_client_1.default {
|
|
|
5060
5101
|
reqBodyType: "json",
|
|
5061
5102
|
bodyType: "json",
|
|
5062
5103
|
});
|
|
5063
|
-
|
|
5104
|
+
if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
|
|
5105
|
+
return $tea.cast(await this.callApi(params, req, runtime), new CreatePredefinedDocumentResponse({}));
|
|
5106
|
+
}
|
|
5107
|
+
else {
|
|
5108
|
+
return $tea.cast(await this.execute(params, req, runtime), new CreatePredefinedDocumentResponse({}));
|
|
5109
|
+
}
|
|
5064
5110
|
}
|
|
5065
5111
|
/**
|
|
5066
5112
|
* 创建预定义文档
|
|
@@ -5117,7 +5163,12 @@ class Client extends openapi_client_1.default {
|
|
|
5117
5163
|
reqBodyType: "json",
|
|
5118
5164
|
bodyType: "json",
|
|
5119
5165
|
});
|
|
5120
|
-
|
|
5166
|
+
if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
|
|
5167
|
+
return $tea.cast(await this.callApi(params, req, runtime), new CreateQualityCheckTaskResponse({}));
|
|
5168
|
+
}
|
|
5169
|
+
else {
|
|
5170
|
+
return $tea.cast(await this.execute(params, req, runtime), new CreateQualityCheckTaskResponse({}));
|
|
5171
|
+
}
|
|
5121
5172
|
}
|
|
5122
5173
|
/**
|
|
5123
5174
|
* 创建财报总结的任务
|
|
@@ -5162,7 +5213,12 @@ class Client extends openapi_client_1.default {
|
|
|
5162
5213
|
reqBodyType: "json",
|
|
5163
5214
|
bodyType: "json",
|
|
5164
5215
|
});
|
|
5165
|
-
|
|
5216
|
+
if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
|
|
5217
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DeleteDocumentResponse({}));
|
|
5218
|
+
}
|
|
5219
|
+
else {
|
|
5220
|
+
return $tea.cast(await this.execute(params, req, runtime), new DeleteDocumentResponse({}));
|
|
5221
|
+
}
|
|
5166
5222
|
}
|
|
5167
5223
|
/**
|
|
5168
5224
|
* 删除文档
|
|
@@ -5204,7 +5260,12 @@ class Client extends openapi_client_1.default {
|
|
|
5204
5260
|
reqBodyType: "json",
|
|
5205
5261
|
bodyType: "json",
|
|
5206
5262
|
});
|
|
5207
|
-
|
|
5263
|
+
if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
|
|
5264
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DeleteLibraryResponse({}));
|
|
5265
|
+
}
|
|
5266
|
+
else {
|
|
5267
|
+
return $tea.cast(await this.execute(params, req, runtime), new DeleteLibraryResponse({}));
|
|
5268
|
+
}
|
|
5208
5269
|
}
|
|
5209
5270
|
/**
|
|
5210
5271
|
* 删除文档库
|
|
@@ -5246,7 +5307,12 @@ class Client extends openapi_client_1.default {
|
|
|
5246
5307
|
reqBodyType: "json",
|
|
5247
5308
|
bodyType: "json",
|
|
5248
5309
|
});
|
|
5249
|
-
|
|
5310
|
+
if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
|
|
5311
|
+
return $tea.cast(await this.callApi(params, req, runtime), new EvictTaskResponse({}));
|
|
5312
|
+
}
|
|
5313
|
+
else {
|
|
5314
|
+
return $tea.cast(await this.execute(params, req, runtime), new EvictTaskResponse({}));
|
|
5315
|
+
}
|
|
5250
5316
|
}
|
|
5251
5317
|
/**
|
|
5252
5318
|
* 中断任务
|
|
@@ -5281,7 +5347,12 @@ class Client extends openapi_client_1.default {
|
|
|
5281
5347
|
reqBodyType: "json",
|
|
5282
5348
|
bodyType: "json",
|
|
5283
5349
|
});
|
|
5284
|
-
|
|
5350
|
+
if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
|
|
5351
|
+
return $tea.cast(await this.callApi(params, req, runtime), new GetAppConfigResponse({}));
|
|
5352
|
+
}
|
|
5353
|
+
else {
|
|
5354
|
+
return $tea.cast(await this.execute(params, req, runtime), new GetAppConfigResponse({}));
|
|
5355
|
+
}
|
|
5285
5356
|
}
|
|
5286
5357
|
/**
|
|
5287
5358
|
* 获取app配置
|
|
@@ -5342,7 +5413,12 @@ class Client extends openapi_client_1.default {
|
|
|
5342
5413
|
reqBodyType: "json",
|
|
5343
5414
|
bodyType: "json",
|
|
5344
5415
|
});
|
|
5345
|
-
|
|
5416
|
+
if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
|
|
5417
|
+
return $tea.cast(await this.callApi(params, req, runtime), new GetDocumentChunkListResponse({}));
|
|
5418
|
+
}
|
|
5419
|
+
else {
|
|
5420
|
+
return $tea.cast(await this.execute(params, req, runtime), new GetDocumentChunkListResponse({}));
|
|
5421
|
+
}
|
|
5346
5422
|
}
|
|
5347
5423
|
/**
|
|
5348
5424
|
* 获取文档的chunk列表
|
|
@@ -5393,7 +5469,12 @@ class Client extends openapi_client_1.default {
|
|
|
5393
5469
|
reqBodyType: "json",
|
|
5394
5470
|
bodyType: "json",
|
|
5395
5471
|
});
|
|
5396
|
-
|
|
5472
|
+
if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
|
|
5473
|
+
return $tea.cast(await this.callApi(params, req, runtime), new GetDocumentListResponse({}));
|
|
5474
|
+
}
|
|
5475
|
+
else {
|
|
5476
|
+
return $tea.cast(await this.execute(params, req, runtime), new GetDocumentListResponse({}));
|
|
5477
|
+
}
|
|
5397
5478
|
}
|
|
5398
5479
|
/**
|
|
5399
5480
|
* 分页查询文档库的文档列表
|
|
@@ -5435,7 +5516,12 @@ class Client extends openapi_client_1.default {
|
|
|
5435
5516
|
reqBodyType: "json",
|
|
5436
5517
|
bodyType: "json",
|
|
5437
5518
|
});
|
|
5438
|
-
|
|
5519
|
+
if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
|
|
5520
|
+
return $tea.cast(await this.callApi(params, req, runtime), new GetDocumentUrlResponse({}));
|
|
5521
|
+
}
|
|
5522
|
+
else {
|
|
5523
|
+
return $tea.cast(await this.execute(params, req, runtime), new GetDocumentUrlResponse({}));
|
|
5524
|
+
}
|
|
5439
5525
|
}
|
|
5440
5526
|
/**
|
|
5441
5527
|
* 获取文档URL
|
|
@@ -5495,7 +5581,12 @@ class Client extends openapi_client_1.default {
|
|
|
5495
5581
|
reqBodyType: "json",
|
|
5496
5582
|
bodyType: "json",
|
|
5497
5583
|
});
|
|
5498
|
-
|
|
5584
|
+
if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
|
|
5585
|
+
return $tea.cast(await this.callApi(params, req, runtime), new GetFilterDocumentListResponse({}));
|
|
5586
|
+
}
|
|
5587
|
+
else {
|
|
5588
|
+
return $tea.cast(await this.execute(params, req, runtime), new GetFilterDocumentListResponse({}));
|
|
5589
|
+
}
|
|
5499
5590
|
}
|
|
5500
5591
|
/**
|
|
5501
5592
|
* 带条件的分页查询文档库的文档列表
|
|
@@ -5546,7 +5637,12 @@ class Client extends openapi_client_1.default {
|
|
|
5546
5637
|
reqBodyType: "json",
|
|
5547
5638
|
bodyType: "json",
|
|
5548
5639
|
});
|
|
5549
|
-
|
|
5640
|
+
if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
|
|
5641
|
+
return $tea.cast(await this.callApi(params, req, runtime), new GetHistoryListByBizTypeResponse({}));
|
|
5642
|
+
}
|
|
5643
|
+
else {
|
|
5644
|
+
return $tea.cast(await this.execute(params, req, runtime), new GetHistoryListByBizTypeResponse({}));
|
|
5645
|
+
}
|
|
5550
5646
|
}
|
|
5551
5647
|
/**
|
|
5552
5648
|
* 分页查询文档库列表
|
|
@@ -5588,7 +5684,12 @@ class Client extends openapi_client_1.default {
|
|
|
5588
5684
|
reqBodyType: "json",
|
|
5589
5685
|
bodyType: "json",
|
|
5590
5686
|
});
|
|
5591
|
-
|
|
5687
|
+
if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
|
|
5688
|
+
return $tea.cast(await this.callApi(params, req, runtime), new GetLibraryResponse({}));
|
|
5689
|
+
}
|
|
5690
|
+
else {
|
|
5691
|
+
return $tea.cast(await this.execute(params, req, runtime), new GetLibraryResponse({}));
|
|
5692
|
+
}
|
|
5592
5693
|
}
|
|
5593
5694
|
/**
|
|
5594
5695
|
* 获取文档库配置详情
|
|
@@ -5636,7 +5737,12 @@ class Client extends openapi_client_1.default {
|
|
|
5636
5737
|
reqBodyType: "json",
|
|
5637
5738
|
bodyType: "json",
|
|
5638
5739
|
});
|
|
5639
|
-
|
|
5740
|
+
if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
|
|
5741
|
+
return $tea.cast(await this.callApi(params, req, runtime), new GetLibraryListResponse({}));
|
|
5742
|
+
}
|
|
5743
|
+
else {
|
|
5744
|
+
return $tea.cast(await this.execute(params, req, runtime), new GetLibraryListResponse({}));
|
|
5745
|
+
}
|
|
5640
5746
|
}
|
|
5641
5747
|
/**
|
|
5642
5748
|
* 分页查询文档库列表
|
|
@@ -5684,7 +5790,12 @@ class Client extends openapi_client_1.default {
|
|
|
5684
5790
|
reqBodyType: "json",
|
|
5685
5791
|
bodyType: "json",
|
|
5686
5792
|
});
|
|
5687
|
-
|
|
5793
|
+
if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
|
|
5794
|
+
return $tea.cast(await this.callApi(params, req, runtime), new GetParseResultResponse({}));
|
|
5795
|
+
}
|
|
5796
|
+
else {
|
|
5797
|
+
return $tea.cast(await this.execute(params, req, runtime), new GetParseResultResponse({}));
|
|
5798
|
+
}
|
|
5688
5799
|
}
|
|
5689
5800
|
/**
|
|
5690
5801
|
* 获取解析结果
|
|
@@ -5726,7 +5837,12 @@ class Client extends openapi_client_1.default {
|
|
|
5726
5837
|
reqBodyType: "json",
|
|
5727
5838
|
bodyType: "json",
|
|
5728
5839
|
});
|
|
5729
|
-
|
|
5840
|
+
if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
|
|
5841
|
+
return $tea.cast(await this.callApi(params, req, runtime), new GetQualityCheckTaskResultResponse({}));
|
|
5842
|
+
}
|
|
5843
|
+
else {
|
|
5844
|
+
return $tea.cast(await this.execute(params, req, runtime), new GetQualityCheckTaskResultResponse({}));
|
|
5845
|
+
}
|
|
5730
5846
|
}
|
|
5731
5847
|
/**
|
|
5732
5848
|
* 获取异步任务的结果
|
|
@@ -5768,7 +5884,12 @@ class Client extends openapi_client_1.default {
|
|
|
5768
5884
|
reqBodyType: "json",
|
|
5769
5885
|
bodyType: "json",
|
|
5770
5886
|
});
|
|
5771
|
-
|
|
5887
|
+
if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
|
|
5888
|
+
return $tea.cast(await this.callApi(params, req, runtime), new GetSummaryTaskResultResponse({}));
|
|
5889
|
+
}
|
|
5890
|
+
else {
|
|
5891
|
+
return $tea.cast(await this.execute(params, req, runtime), new GetSummaryTaskResultResponse({}));
|
|
5892
|
+
}
|
|
5772
5893
|
}
|
|
5773
5894
|
/**
|
|
5774
5895
|
* 获取财报总结任务结果
|
|
@@ -5810,7 +5931,12 @@ class Client extends openapi_client_1.default {
|
|
|
5810
5931
|
reqBodyType: "json",
|
|
5811
5932
|
bodyType: "json",
|
|
5812
5933
|
});
|
|
5813
|
-
|
|
5934
|
+
if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
|
|
5935
|
+
return $tea.cast(await this.callApi(params, req, runtime), new GetTaskResultResponse({}));
|
|
5936
|
+
}
|
|
5937
|
+
else {
|
|
5938
|
+
return $tea.cast(await this.execute(params, req, runtime), new GetTaskResultResponse({}));
|
|
5939
|
+
}
|
|
5814
5940
|
}
|
|
5815
5941
|
/**
|
|
5816
5942
|
* 获取异步任务结果
|
|
@@ -5852,7 +5978,12 @@ class Client extends openapi_client_1.default {
|
|
|
5852
5978
|
reqBodyType: "json",
|
|
5853
5979
|
bodyType: "json",
|
|
5854
5980
|
});
|
|
5855
|
-
|
|
5981
|
+
if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
|
|
5982
|
+
return $tea.cast(await this.callApi(params, req, runtime), new GetTaskStatusResponse({}));
|
|
5983
|
+
}
|
|
5984
|
+
else {
|
|
5985
|
+
return $tea.cast(await this.execute(params, req, runtime), new GetTaskStatusResponse({}));
|
|
5986
|
+
}
|
|
5856
5987
|
}
|
|
5857
5988
|
/**
|
|
5858
5989
|
* 获取财报总结任务结果
|
|
@@ -5897,7 +6028,12 @@ class Client extends openapi_client_1.default {
|
|
|
5897
6028
|
reqBodyType: "json",
|
|
5898
6029
|
bodyType: "json",
|
|
5899
6030
|
});
|
|
5900
|
-
|
|
6031
|
+
if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
|
|
6032
|
+
return $tea.cast(await this.callApi(params, req, runtime), new InvokePluginResponse({}));
|
|
6033
|
+
}
|
|
6034
|
+
else {
|
|
6035
|
+
return $tea.cast(await this.execute(params, req, runtime), new InvokePluginResponse({}));
|
|
6036
|
+
}
|
|
5901
6037
|
}
|
|
5902
6038
|
/**
|
|
5903
6039
|
* 插件调试接口
|
|
@@ -5939,7 +6075,12 @@ class Client extends openapi_client_1.default {
|
|
|
5939
6075
|
reqBodyType: "json",
|
|
5940
6076
|
bodyType: "json",
|
|
5941
6077
|
});
|
|
5942
|
-
|
|
6078
|
+
if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
|
|
6079
|
+
return $tea.cast(await this.callApi(params, req, runtime), new PreviewDocumentResponse({}));
|
|
6080
|
+
}
|
|
6081
|
+
else {
|
|
6082
|
+
return $tea.cast(await this.execute(params, req, runtime), new PreviewDocumentResponse({}));
|
|
6083
|
+
}
|
|
5943
6084
|
}
|
|
5944
6085
|
/**
|
|
5945
6086
|
* 获取文档预览
|
|
@@ -5981,7 +6122,12 @@ class Client extends openapi_client_1.default {
|
|
|
5981
6122
|
reqBodyType: "json",
|
|
5982
6123
|
bodyType: "json",
|
|
5983
6124
|
});
|
|
5984
|
-
|
|
6125
|
+
if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
|
|
6126
|
+
return $tea.cast(await this.callApi(params, req, runtime), new ReIndexResponse({}));
|
|
6127
|
+
}
|
|
6128
|
+
else {
|
|
6129
|
+
return $tea.cast(await this.execute(params, req, runtime), new ReIndexResponse({}));
|
|
6130
|
+
}
|
|
5985
6131
|
}
|
|
5986
6132
|
/**
|
|
5987
6133
|
* 重新索引
|
|
@@ -6023,7 +6169,12 @@ class Client extends openapi_client_1.default {
|
|
|
6023
6169
|
reqBodyType: "json",
|
|
6024
6170
|
bodyType: "json",
|
|
6025
6171
|
});
|
|
6026
|
-
|
|
6172
|
+
if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
|
|
6173
|
+
return $tea.cast(await this.callApi(params, req, runtime), new RebuildTaskResponse({}));
|
|
6174
|
+
}
|
|
6175
|
+
else {
|
|
6176
|
+
return $tea.cast(await this.execute(params, req, runtime), new RebuildTaskResponse({}));
|
|
6177
|
+
}
|
|
6027
6178
|
}
|
|
6028
6179
|
/**
|
|
6029
6180
|
* 重建任务
|
|
@@ -6074,7 +6225,12 @@ class Client extends openapi_client_1.default {
|
|
|
6074
6225
|
reqBodyType: "json",
|
|
6075
6226
|
bodyType: "json",
|
|
6076
6227
|
});
|
|
6077
|
-
|
|
6228
|
+
if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
|
|
6229
|
+
return $tea.cast(await this.callApi(params, req, runtime), new RecallDocumentResponse({}));
|
|
6230
|
+
}
|
|
6231
|
+
else {
|
|
6232
|
+
return $tea.cast(await this.execute(params, req, runtime), new RecallDocumentResponse({}));
|
|
6233
|
+
}
|
|
6078
6234
|
}
|
|
6079
6235
|
/**
|
|
6080
6236
|
* 文档召回。
|
|
@@ -6140,7 +6296,12 @@ class Client extends openapi_client_1.default {
|
|
|
6140
6296
|
reqBodyType: "json",
|
|
6141
6297
|
bodyType: "json",
|
|
6142
6298
|
});
|
|
6143
|
-
|
|
6299
|
+
if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
|
|
6300
|
+
return $tea.cast(await this.callApi(params, req, runtime), new RecognizeIntentionResponse({}));
|
|
6301
|
+
}
|
|
6302
|
+
else {
|
|
6303
|
+
return $tea.cast(await this.execute(params, req, runtime), new RecognizeIntentionResponse({}));
|
|
6304
|
+
}
|
|
6144
6305
|
}
|
|
6145
6306
|
/**
|
|
6146
6307
|
* 意图识别
|
|
@@ -6197,7 +6358,12 @@ class Client extends openapi_client_1.default {
|
|
|
6197
6358
|
reqBodyType: "json",
|
|
6198
6359
|
bodyType: "json",
|
|
6199
6360
|
});
|
|
6200
|
-
|
|
6361
|
+
if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
|
|
6362
|
+
return $tea.cast(await this.callApi(params, req, runtime), new RunChatResultGenerationResponse({}));
|
|
6363
|
+
}
|
|
6364
|
+
else {
|
|
6365
|
+
return $tea.cast(await this.execute(params, req, runtime), new RunChatResultGenerationResponse({}));
|
|
6366
|
+
}
|
|
6201
6367
|
}
|
|
6202
6368
|
/**
|
|
6203
6369
|
* 获取生成式对话结果
|
|
@@ -6290,7 +6456,12 @@ class Client extends openapi_client_1.default {
|
|
|
6290
6456
|
reqBodyType: "json",
|
|
6291
6457
|
bodyType: "json",
|
|
6292
6458
|
});
|
|
6293
|
-
|
|
6459
|
+
if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
|
|
6460
|
+
return $tea.cast(await this.callApi(params, req, runtime), new RunLibraryChatGenerationResponse({}));
|
|
6461
|
+
}
|
|
6462
|
+
else {
|
|
6463
|
+
return $tea.cast(await this.execute(params, req, runtime), new RunLibraryChatGenerationResponse({}));
|
|
6464
|
+
}
|
|
6294
6465
|
}
|
|
6295
6466
|
/**
|
|
6296
6467
|
* 获取生成式对话结果
|
|
@@ -6341,7 +6512,12 @@ class Client extends openapi_client_1.default {
|
|
|
6341
6512
|
reqBodyType: "json",
|
|
6342
6513
|
bodyType: "json",
|
|
6343
6514
|
});
|
|
6344
|
-
|
|
6515
|
+
if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
|
|
6516
|
+
return $tea.cast(await this.callApi(params, req, runtime), new UpdateDocumentResponse({}));
|
|
6517
|
+
}
|
|
6518
|
+
else {
|
|
6519
|
+
return $tea.cast(await this.execute(params, req, runtime), new UpdateDocumentResponse({}));
|
|
6520
|
+
}
|
|
6345
6521
|
}
|
|
6346
6522
|
/**
|
|
6347
6523
|
* 更新文档
|
|
@@ -6392,7 +6568,12 @@ class Client extends openapi_client_1.default {
|
|
|
6392
6568
|
reqBodyType: "json",
|
|
6393
6569
|
bodyType: "json",
|
|
6394
6570
|
});
|
|
6395
|
-
|
|
6571
|
+
if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
|
|
6572
|
+
return $tea.cast(await this.callApi(params, req, runtime), new UpdateLibraryResponse({}));
|
|
6573
|
+
}
|
|
6574
|
+
else {
|
|
6575
|
+
return $tea.cast(await this.execute(params, req, runtime), new UpdateLibraryResponse({}));
|
|
6576
|
+
}
|
|
6396
6577
|
}
|
|
6397
6578
|
/**
|
|
6398
6579
|
* 更新文档库配置
|
|
@@ -6443,7 +6624,12 @@ class Client extends openapi_client_1.default {
|
|
|
6443
6624
|
reqBodyType: "json",
|
|
6444
6625
|
bodyType: "json",
|
|
6445
6626
|
});
|
|
6446
|
-
|
|
6627
|
+
if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
|
|
6628
|
+
return $tea.cast(await this.callApi(params, req, runtime), new UploadDocumentResponse({}));
|
|
6629
|
+
}
|
|
6630
|
+
else {
|
|
6631
|
+
return $tea.cast(await this.execute(params, req, runtime), new UploadDocumentResponse({}));
|
|
6632
|
+
}
|
|
6447
6633
|
}
|
|
6448
6634
|
/**
|
|
6449
6635
|
* 上传文档到文档库
|