@alicloud/dianjin20240628 1.6.3 → 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alicloud/dianjin20240628",
3
- "version": "1.6.3",
3
+ "version": "1.6.4",
4
4
  "description": "",
5
5
  "main": "dist/client.js",
6
6
  "scripts": {
@@ -21,6 +21,7 @@
21
21
  "dependencies": {
22
22
  "@alicloud/tea-typescript": "^1.7.1",
23
23
  "@alicloud/tea-util": "^1.4.9",
24
+ "@alicloud/gateway-pop": "^0.0.6",
24
25
  "@alicloud/oss-client": "^1.1.2",
25
26
  "@alicloud/openplatform20191219": "2.0.0",
26
27
  "@alicloud/oss-util": "0.0.1",
package/src/client.ts CHANGED
@@ -2,6 +2,7 @@
2
2
  /**
3
3
  */
4
4
  import Util, * as $Util from '@alicloud/tea-util';
5
+ import GatewayClient from '@alicloud/gateway-pop';
5
6
  import OSS, * as $OSS from '@alicloud/oss-client';
6
7
  import OpenPlatform, * as $OpenPlatform from '@alicloud/openplatform20191219';
7
8
  import OSSUtil, * as $OSSUtil from '@alicloud/oss-util';
@@ -7159,6 +7160,7 @@ export class GetQualityCheckTaskResultResponseBodyDataQualityCheckList extends $
7159
7160
  */
7160
7161
  ruleId?: string;
7161
7162
  ruleType?: string;
7163
+ subNodeCol?: any[];
7162
7164
  static names(): { [key: string]: string } {
7163
7165
  return {
7164
7166
  bizType: 'bizType',
@@ -7174,6 +7176,7 @@ export class GetQualityCheckTaskResultResponseBodyDataQualityCheckList extends $
7174
7176
  ruleDescription: 'ruleDescription',
7175
7177
  ruleId: 'ruleId',
7176
7178
  ruleType: 'ruleType',
7179
+ subNodeCol: 'subNodeCol',
7177
7180
  };
7178
7181
  }
7179
7182
 
@@ -7192,6 +7195,7 @@ export class GetQualityCheckTaskResultResponseBodyDataQualityCheckList extends $
7192
7195
  ruleDescription: 'string',
7193
7196
  ruleId: 'string',
7194
7197
  ruleType: 'string',
7198
+ subNodeCol: { 'type': 'array', 'itemType': 'any' },
7195
7199
  };
7196
7200
  }
7197
7201
 
@@ -9136,6 +9140,9 @@ export default class Client extends OpenApi {
9136
9140
 
9137
9141
  constructor(config: $OpenApi.Config) {
9138
9142
  super(config);
9143
+ this._productId = "DianJin";
9144
+ let gatewayClient = new GatewayClient();
9145
+ this._spi = gatewayClient;
9139
9146
  this._endpointRule = "";
9140
9147
  this.checkConfig(config);
9141
9148
  this._endpoint = this.getEndpoint("dianjin", this._regionId, this._endpointRule, this._network, this._suffix, this._endpointMap, this._endpoint);
@@ -9200,7 +9207,12 @@ export default class Client extends OpenApi {
9200
9207
  reqBodyType: "json",
9201
9208
  bodyType: "json",
9202
9209
  });
9203
- return $tea.cast<CreateAnnualDocSummaryTaskResponse>(await this.callApi(params, req, runtime), new CreateAnnualDocSummaryTaskResponse({}));
9210
+ if (Util.isUnset(this._signatureVersion) || !Util.equalString(this._signatureVersion, "v4")) {
9211
+ return $tea.cast<CreateAnnualDocSummaryTaskResponse>(await this.callApi(params, req, runtime), new CreateAnnualDocSummaryTaskResponse({}));
9212
+ } else {
9213
+ return $tea.cast<CreateAnnualDocSummaryTaskResponse>(await this.execute(params, req, runtime), new CreateAnnualDocSummaryTaskResponse({}));
9214
+ }
9215
+
9204
9216
  }
9205
9217
 
9206
9218
  /**
@@ -9257,7 +9269,12 @@ export default class Client extends OpenApi {
9257
9269
  reqBodyType: "json",
9258
9270
  bodyType: "json",
9259
9271
  });
9260
- return $tea.cast<CreateDocsSummaryTaskResponse>(await this.callApi(params, req, runtime), new CreateDocsSummaryTaskResponse({}));
9272
+ if (Util.isUnset(this._signatureVersion) || !Util.equalString(this._signatureVersion, "v4")) {
9273
+ return $tea.cast<CreateDocsSummaryTaskResponse>(await this.callApi(params, req, runtime), new CreateDocsSummaryTaskResponse({}));
9274
+ } else {
9275
+ return $tea.cast<CreateDocsSummaryTaskResponse>(await this.execute(params, req, runtime), new CreateDocsSummaryTaskResponse({}));
9276
+ }
9277
+
9261
9278
  }
9262
9279
 
9263
9280
  /**
@@ -9330,7 +9347,12 @@ export default class Client extends OpenApi {
9330
9347
  reqBodyType: "json",
9331
9348
  bodyType: "json",
9332
9349
  });
9333
- return $tea.cast<CreateFinReportSummaryTaskResponse>(await this.callApi(params, req, runtime), new CreateFinReportSummaryTaskResponse({}));
9350
+ if (Util.isUnset(this._signatureVersion) || !Util.equalString(this._signatureVersion, "v4")) {
9351
+ return $tea.cast<CreateFinReportSummaryTaskResponse>(await this.callApi(params, req, runtime), new CreateFinReportSummaryTaskResponse({}));
9352
+ } else {
9353
+ return $tea.cast<CreateFinReportSummaryTaskResponse>(await this.execute(params, req, runtime), new CreateFinReportSummaryTaskResponse({}));
9354
+ }
9355
+
9334
9356
  }
9335
9357
 
9336
9358
  /**
@@ -9383,7 +9405,12 @@ export default class Client extends OpenApi {
9383
9405
  reqBodyType: "json",
9384
9406
  bodyType: "json",
9385
9407
  });
9386
- return $tea.cast<CreateLibraryResponse>(await this.callApi(params, req, runtime), new CreateLibraryResponse({}));
9408
+ if (Util.isUnset(this._signatureVersion) || !Util.equalString(this._signatureVersion, "v4")) {
9409
+ return $tea.cast<CreateLibraryResponse>(await this.callApi(params, req, runtime), new CreateLibraryResponse({}));
9410
+ } else {
9411
+ return $tea.cast<CreateLibraryResponse>(await this.execute(params, req, runtime), new CreateLibraryResponse({}));
9412
+ }
9413
+
9387
9414
  }
9388
9415
 
9389
9416
  /**
@@ -9444,7 +9471,12 @@ export default class Client extends OpenApi {
9444
9471
  reqBodyType: "json",
9445
9472
  bodyType: "json",
9446
9473
  });
9447
- return $tea.cast<CreatePdfTranslateTaskResponse>(await this.callApi(params, req, runtime), new CreatePdfTranslateTaskResponse({}));
9474
+ if (Util.isUnset(this._signatureVersion) || !Util.equalString(this._signatureVersion, "v4")) {
9475
+ return $tea.cast<CreatePdfTranslateTaskResponse>(await this.callApi(params, req, runtime), new CreatePdfTranslateTaskResponse({}));
9476
+ } else {
9477
+ return $tea.cast<CreatePdfTranslateTaskResponse>(await this.execute(params, req, runtime), new CreatePdfTranslateTaskResponse({}));
9478
+ }
9479
+
9448
9480
  }
9449
9481
 
9450
9482
  /**
@@ -9501,7 +9533,12 @@ export default class Client extends OpenApi {
9501
9533
  reqBodyType: "json",
9502
9534
  bodyType: "json",
9503
9535
  });
9504
- return $tea.cast<CreatePredefinedDocumentResponse>(await this.callApi(params, req, runtime), new CreatePredefinedDocumentResponse({}));
9536
+ if (Util.isUnset(this._signatureVersion) || !Util.equalString(this._signatureVersion, "v4")) {
9537
+ return $tea.cast<CreatePredefinedDocumentResponse>(await this.callApi(params, req, runtime), new CreatePredefinedDocumentResponse({}));
9538
+ } else {
9539
+ return $tea.cast<CreatePredefinedDocumentResponse>(await this.execute(params, req, runtime), new CreatePredefinedDocumentResponse({}));
9540
+ }
9541
+
9505
9542
  }
9506
9543
 
9507
9544
  /**
@@ -9566,7 +9603,12 @@ export default class Client extends OpenApi {
9566
9603
  reqBodyType: "json",
9567
9604
  bodyType: "json",
9568
9605
  });
9569
- return $tea.cast<CreateQualityCheckTaskResponse>(await this.callApi(params, req, runtime), new CreateQualityCheckTaskResponse({}));
9606
+ if (Util.isUnset(this._signatureVersion) || !Util.equalString(this._signatureVersion, "v4")) {
9607
+ return $tea.cast<CreateQualityCheckTaskResponse>(await this.callApi(params, req, runtime), new CreateQualityCheckTaskResponse({}));
9608
+ } else {
9609
+ return $tea.cast<CreateQualityCheckTaskResponse>(await this.execute(params, req, runtime), new CreateQualityCheckTaskResponse({}));
9610
+ }
9611
+
9570
9612
  }
9571
9613
 
9572
9614
  /**
@@ -9615,7 +9657,12 @@ export default class Client extends OpenApi {
9615
9657
  reqBodyType: "json",
9616
9658
  bodyType: "json",
9617
9659
  });
9618
- return $tea.cast<DeleteDocumentResponse>(await this.callApi(params, req, runtime), new DeleteDocumentResponse({}));
9660
+ if (Util.isUnset(this._signatureVersion) || !Util.equalString(this._signatureVersion, "v4")) {
9661
+ return $tea.cast<DeleteDocumentResponse>(await this.callApi(params, req, runtime), new DeleteDocumentResponse({}));
9662
+ } else {
9663
+ return $tea.cast<DeleteDocumentResponse>(await this.execute(params, req, runtime), new DeleteDocumentResponse({}));
9664
+ }
9665
+
9619
9666
  }
9620
9667
 
9621
9668
  /**
@@ -9660,7 +9707,12 @@ export default class Client extends OpenApi {
9660
9707
  reqBodyType: "json",
9661
9708
  bodyType: "json",
9662
9709
  });
9663
- return $tea.cast<DeleteLibraryResponse>(await this.callApi(params, req, runtime), new DeleteLibraryResponse({}));
9710
+ if (Util.isUnset(this._signatureVersion) || !Util.equalString(this._signatureVersion, "v4")) {
9711
+ return $tea.cast<DeleteLibraryResponse>(await this.callApi(params, req, runtime), new DeleteLibraryResponse({}));
9712
+ } else {
9713
+ return $tea.cast<DeleteLibraryResponse>(await this.execute(params, req, runtime), new DeleteLibraryResponse({}));
9714
+ }
9715
+
9664
9716
  }
9665
9717
 
9666
9718
  /**
@@ -9705,7 +9757,12 @@ export default class Client extends OpenApi {
9705
9757
  reqBodyType: "json",
9706
9758
  bodyType: "json",
9707
9759
  });
9708
- return $tea.cast<EvictTaskResponse>(await this.callApi(params, req, runtime), new EvictTaskResponse({}));
9760
+ if (Util.isUnset(this._signatureVersion) || !Util.equalString(this._signatureVersion, "v4")) {
9761
+ return $tea.cast<EvictTaskResponse>(await this.callApi(params, req, runtime), new EvictTaskResponse({}));
9762
+ } else {
9763
+ return $tea.cast<EvictTaskResponse>(await this.execute(params, req, runtime), new EvictTaskResponse({}));
9764
+ }
9765
+
9709
9766
  }
9710
9767
 
9711
9768
  /**
@@ -9742,7 +9799,12 @@ export default class Client extends OpenApi {
9742
9799
  reqBodyType: "json",
9743
9800
  bodyType: "json",
9744
9801
  });
9745
- return $tea.cast<GetAppConfigResponse>(await this.callApi(params, req, runtime), new GetAppConfigResponse({}));
9802
+ if (Util.isUnset(this._signatureVersion) || !Util.equalString(this._signatureVersion, "v4")) {
9803
+ return $tea.cast<GetAppConfigResponse>(await this.callApi(params, req, runtime), new GetAppConfigResponse({}));
9804
+ } else {
9805
+ return $tea.cast<GetAppConfigResponse>(await this.execute(params, req, runtime), new GetAppConfigResponse({}));
9806
+ }
9807
+
9746
9808
  }
9747
9809
 
9748
9810
  /**
@@ -9813,7 +9875,12 @@ export default class Client extends OpenApi {
9813
9875
  reqBodyType: "json",
9814
9876
  bodyType: "json",
9815
9877
  });
9816
- return $tea.cast<GetDocumentChunkListResponse>(await this.callApi(params, req, runtime), new GetDocumentChunkListResponse({}));
9878
+ if (Util.isUnset(this._signatureVersion) || !Util.equalString(this._signatureVersion, "v4")) {
9879
+ return $tea.cast<GetDocumentChunkListResponse>(await this.callApi(params, req, runtime), new GetDocumentChunkListResponse({}));
9880
+ } else {
9881
+ return $tea.cast<GetDocumentChunkListResponse>(await this.execute(params, req, runtime), new GetDocumentChunkListResponse({}));
9882
+ }
9883
+
9817
9884
  }
9818
9885
 
9819
9886
  /**
@@ -9870,7 +9937,12 @@ export default class Client extends OpenApi {
9870
9937
  reqBodyType: "json",
9871
9938
  bodyType: "json",
9872
9939
  });
9873
- return $tea.cast<GetDocumentListResponse>(await this.callApi(params, req, runtime), new GetDocumentListResponse({}));
9940
+ if (Util.isUnset(this._signatureVersion) || !Util.equalString(this._signatureVersion, "v4")) {
9941
+ return $tea.cast<GetDocumentListResponse>(await this.callApi(params, req, runtime), new GetDocumentListResponse({}));
9942
+ } else {
9943
+ return $tea.cast<GetDocumentListResponse>(await this.execute(params, req, runtime), new GetDocumentListResponse({}));
9944
+ }
9945
+
9874
9946
  }
9875
9947
 
9876
9948
  /**
@@ -9915,7 +9987,12 @@ export default class Client extends OpenApi {
9915
9987
  reqBodyType: "json",
9916
9988
  bodyType: "json",
9917
9989
  });
9918
- return $tea.cast<GetDocumentUrlResponse>(await this.callApi(params, req, runtime), new GetDocumentUrlResponse({}));
9990
+ if (Util.isUnset(this._signatureVersion) || !Util.equalString(this._signatureVersion, "v4")) {
9991
+ return $tea.cast<GetDocumentUrlResponse>(await this.callApi(params, req, runtime), new GetDocumentUrlResponse({}));
9992
+ } else {
9993
+ return $tea.cast<GetDocumentUrlResponse>(await this.execute(params, req, runtime), new GetDocumentUrlResponse({}));
9994
+ }
9995
+
9919
9996
  }
9920
9997
 
9921
9998
  /**
@@ -9984,7 +10061,12 @@ export default class Client extends OpenApi {
9984
10061
  reqBodyType: "json",
9985
10062
  bodyType: "json",
9986
10063
  });
9987
- return $tea.cast<GetFilterDocumentListResponse>(await this.callApi(params, req, runtime), new GetFilterDocumentListResponse({}));
10064
+ if (Util.isUnset(this._signatureVersion) || !Util.equalString(this._signatureVersion, "v4")) {
10065
+ return $tea.cast<GetFilterDocumentListResponse>(await this.callApi(params, req, runtime), new GetFilterDocumentListResponse({}));
10066
+ } else {
10067
+ return $tea.cast<GetFilterDocumentListResponse>(await this.execute(params, req, runtime), new GetFilterDocumentListResponse({}));
10068
+ }
10069
+
9988
10070
  }
9989
10071
 
9990
10072
  /**
@@ -10041,7 +10123,12 @@ export default class Client extends OpenApi {
10041
10123
  reqBodyType: "json",
10042
10124
  bodyType: "json",
10043
10125
  });
10044
- return $tea.cast<GetHistoryListByBizTypeResponse>(await this.callApi(params, req, runtime), new GetHistoryListByBizTypeResponse({}));
10126
+ if (Util.isUnset(this._signatureVersion) || !Util.equalString(this._signatureVersion, "v4")) {
10127
+ return $tea.cast<GetHistoryListByBizTypeResponse>(await this.callApi(params, req, runtime), new GetHistoryListByBizTypeResponse({}));
10128
+ } else {
10129
+ return $tea.cast<GetHistoryListByBizTypeResponse>(await this.execute(params, req, runtime), new GetHistoryListByBizTypeResponse({}));
10130
+ }
10131
+
10045
10132
  }
10046
10133
 
10047
10134
  /**
@@ -10086,7 +10173,12 @@ export default class Client extends OpenApi {
10086
10173
  reqBodyType: "json",
10087
10174
  bodyType: "json",
10088
10175
  });
10089
- return $tea.cast<GetLibraryResponse>(await this.callApi(params, req, runtime), new GetLibraryResponse({}));
10176
+ if (Util.isUnset(this._signatureVersion) || !Util.equalString(this._signatureVersion, "v4")) {
10177
+ return $tea.cast<GetLibraryResponse>(await this.callApi(params, req, runtime), new GetLibraryResponse({}));
10178
+ } else {
10179
+ return $tea.cast<GetLibraryResponse>(await this.execute(params, req, runtime), new GetLibraryResponse({}));
10180
+ }
10181
+
10090
10182
  }
10091
10183
 
10092
10184
  /**
@@ -10139,7 +10231,12 @@ export default class Client extends OpenApi {
10139
10231
  reqBodyType: "json",
10140
10232
  bodyType: "json",
10141
10233
  });
10142
- return $tea.cast<GetLibraryListResponse>(await this.callApi(params, req, runtime), new GetLibraryListResponse({}));
10234
+ if (Util.isUnset(this._signatureVersion) || !Util.equalString(this._signatureVersion, "v4")) {
10235
+ return $tea.cast<GetLibraryListResponse>(await this.callApi(params, req, runtime), new GetLibraryListResponse({}));
10236
+ } else {
10237
+ return $tea.cast<GetLibraryListResponse>(await this.execute(params, req, runtime), new GetLibraryListResponse({}));
10238
+ }
10239
+
10143
10240
  }
10144
10241
 
10145
10242
  /**
@@ -10192,7 +10289,12 @@ export default class Client extends OpenApi {
10192
10289
  reqBodyType: "json",
10193
10290
  bodyType: "json",
10194
10291
  });
10195
- return $tea.cast<GetParseResultResponse>(await this.callApi(params, req, runtime), new GetParseResultResponse({}));
10292
+ if (Util.isUnset(this._signatureVersion) || !Util.equalString(this._signatureVersion, "v4")) {
10293
+ return $tea.cast<GetParseResultResponse>(await this.callApi(params, req, runtime), new GetParseResultResponse({}));
10294
+ } else {
10295
+ return $tea.cast<GetParseResultResponse>(await this.execute(params, req, runtime), new GetParseResultResponse({}));
10296
+ }
10297
+
10196
10298
  }
10197
10299
 
10198
10300
  /**
@@ -10237,7 +10339,12 @@ export default class Client extends OpenApi {
10237
10339
  reqBodyType: "json",
10238
10340
  bodyType: "json",
10239
10341
  });
10240
- return $tea.cast<GetQualityCheckTaskResultResponse>(await this.callApi(params, req, runtime), new GetQualityCheckTaskResultResponse({}));
10342
+ if (Util.isUnset(this._signatureVersion) || !Util.equalString(this._signatureVersion, "v4")) {
10343
+ return $tea.cast<GetQualityCheckTaskResultResponse>(await this.callApi(params, req, runtime), new GetQualityCheckTaskResultResponse({}));
10344
+ } else {
10345
+ return $tea.cast<GetQualityCheckTaskResultResponse>(await this.execute(params, req, runtime), new GetQualityCheckTaskResultResponse({}));
10346
+ }
10347
+
10241
10348
  }
10242
10349
 
10243
10350
  /**
@@ -10282,7 +10389,12 @@ export default class Client extends OpenApi {
10282
10389
  reqBodyType: "json",
10283
10390
  bodyType: "json",
10284
10391
  });
10285
- return $tea.cast<GetSummaryTaskResultResponse>(await this.callApi(params, req, runtime), new GetSummaryTaskResultResponse({}));
10392
+ if (Util.isUnset(this._signatureVersion) || !Util.equalString(this._signatureVersion, "v4")) {
10393
+ return $tea.cast<GetSummaryTaskResultResponse>(await this.callApi(params, req, runtime), new GetSummaryTaskResultResponse({}));
10394
+ } else {
10395
+ return $tea.cast<GetSummaryTaskResultResponse>(await this.execute(params, req, runtime), new GetSummaryTaskResultResponse({}));
10396
+ }
10397
+
10286
10398
  }
10287
10399
 
10288
10400
  /**
@@ -10327,7 +10439,12 @@ export default class Client extends OpenApi {
10327
10439
  reqBodyType: "json",
10328
10440
  bodyType: "json",
10329
10441
  });
10330
- return $tea.cast<GetTaskResultResponse>(await this.callApi(params, req, runtime), new GetTaskResultResponse({}));
10442
+ if (Util.isUnset(this._signatureVersion) || !Util.equalString(this._signatureVersion, "v4")) {
10443
+ return $tea.cast<GetTaskResultResponse>(await this.callApi(params, req, runtime), new GetTaskResultResponse({}));
10444
+ } else {
10445
+ return $tea.cast<GetTaskResultResponse>(await this.execute(params, req, runtime), new GetTaskResultResponse({}));
10446
+ }
10447
+
10331
10448
  }
10332
10449
 
10333
10450
  /**
@@ -10372,7 +10489,12 @@ export default class Client extends OpenApi {
10372
10489
  reqBodyType: "json",
10373
10490
  bodyType: "json",
10374
10491
  });
10375
- return $tea.cast<GetTaskStatusResponse>(await this.callApi(params, req, runtime), new GetTaskStatusResponse({}));
10492
+ if (Util.isUnset(this._signatureVersion) || !Util.equalString(this._signatureVersion, "v4")) {
10493
+ return $tea.cast<GetTaskStatusResponse>(await this.callApi(params, req, runtime), new GetTaskStatusResponse({}));
10494
+ } else {
10495
+ return $tea.cast<GetTaskStatusResponse>(await this.execute(params, req, runtime), new GetTaskStatusResponse({}));
10496
+ }
10497
+
10376
10498
  }
10377
10499
 
10378
10500
  /**
@@ -10421,7 +10543,12 @@ export default class Client extends OpenApi {
10421
10543
  reqBodyType: "json",
10422
10544
  bodyType: "json",
10423
10545
  });
10424
- return $tea.cast<InvokePluginResponse>(await this.callApi(params, req, runtime), new InvokePluginResponse({}));
10546
+ if (Util.isUnset(this._signatureVersion) || !Util.equalString(this._signatureVersion, "v4")) {
10547
+ return $tea.cast<InvokePluginResponse>(await this.callApi(params, req, runtime), new InvokePluginResponse({}));
10548
+ } else {
10549
+ return $tea.cast<InvokePluginResponse>(await this.execute(params, req, runtime), new InvokePluginResponse({}));
10550
+ }
10551
+
10425
10552
  }
10426
10553
 
10427
10554
  /**
@@ -10466,7 +10593,12 @@ export default class Client extends OpenApi {
10466
10593
  reqBodyType: "json",
10467
10594
  bodyType: "json",
10468
10595
  });
10469
- return $tea.cast<PreviewDocumentResponse>(await this.callApi(params, req, runtime), new PreviewDocumentResponse({}));
10596
+ if (Util.isUnset(this._signatureVersion) || !Util.equalString(this._signatureVersion, "v4")) {
10597
+ return $tea.cast<PreviewDocumentResponse>(await this.callApi(params, req, runtime), new PreviewDocumentResponse({}));
10598
+ } else {
10599
+ return $tea.cast<PreviewDocumentResponse>(await this.execute(params, req, runtime), new PreviewDocumentResponse({}));
10600
+ }
10601
+
10470
10602
  }
10471
10603
 
10472
10604
  /**
@@ -10511,7 +10643,12 @@ export default class Client extends OpenApi {
10511
10643
  reqBodyType: "json",
10512
10644
  bodyType: "json",
10513
10645
  });
10514
- return $tea.cast<ReIndexResponse>(await this.callApi(params, req, runtime), new ReIndexResponse({}));
10646
+ if (Util.isUnset(this._signatureVersion) || !Util.equalString(this._signatureVersion, "v4")) {
10647
+ return $tea.cast<ReIndexResponse>(await this.callApi(params, req, runtime), new ReIndexResponse({}));
10648
+ } else {
10649
+ return $tea.cast<ReIndexResponse>(await this.execute(params, req, runtime), new ReIndexResponse({}));
10650
+ }
10651
+
10515
10652
  }
10516
10653
 
10517
10654
  /**
@@ -10556,7 +10693,12 @@ export default class Client extends OpenApi {
10556
10693
  reqBodyType: "json",
10557
10694
  bodyType: "json",
10558
10695
  });
10559
- return $tea.cast<RebuildTaskResponse>(await this.callApi(params, req, runtime), new RebuildTaskResponse({}));
10696
+ if (Util.isUnset(this._signatureVersion) || !Util.equalString(this._signatureVersion, "v4")) {
10697
+ return $tea.cast<RebuildTaskResponse>(await this.callApi(params, req, runtime), new RebuildTaskResponse({}));
10698
+ } else {
10699
+ return $tea.cast<RebuildTaskResponse>(await this.execute(params, req, runtime), new RebuildTaskResponse({}));
10700
+ }
10701
+
10560
10702
  }
10561
10703
 
10562
10704
  /**
@@ -10613,7 +10755,12 @@ export default class Client extends OpenApi {
10613
10755
  reqBodyType: "json",
10614
10756
  bodyType: "json",
10615
10757
  });
10616
- return $tea.cast<RecallDocumentResponse>(await this.callApi(params, req, runtime), new RecallDocumentResponse({}));
10758
+ if (Util.isUnset(this._signatureVersion) || !Util.equalString(this._signatureVersion, "v4")) {
10759
+ return $tea.cast<RecallDocumentResponse>(await this.callApi(params, req, runtime), new RecallDocumentResponse({}));
10760
+ } else {
10761
+ return $tea.cast<RecallDocumentResponse>(await this.execute(params, req, runtime), new RecallDocumentResponse({}));
10762
+ }
10763
+
10617
10764
  }
10618
10765
 
10619
10766
  /**
@@ -10690,7 +10837,12 @@ export default class Client extends OpenApi {
10690
10837
  reqBodyType: "json",
10691
10838
  bodyType: "json",
10692
10839
  });
10693
- return $tea.cast<RecognizeIntentionResponse>(await this.callApi(params, req, runtime), new RecognizeIntentionResponse({}));
10840
+ if (Util.isUnset(this._signatureVersion) || !Util.equalString(this._signatureVersion, "v4")) {
10841
+ return $tea.cast<RecognizeIntentionResponse>(await this.callApi(params, req, runtime), new RecognizeIntentionResponse({}));
10842
+ } else {
10843
+ return $tea.cast<RecognizeIntentionResponse>(await this.execute(params, req, runtime), new RecognizeIntentionResponse({}));
10844
+ }
10845
+
10694
10846
  }
10695
10847
 
10696
10848
  /**
@@ -10755,7 +10907,12 @@ export default class Client extends OpenApi {
10755
10907
  reqBodyType: "json",
10756
10908
  bodyType: "json",
10757
10909
  });
10758
- return $tea.cast<RunChatResultGenerationResponse>(await this.callApi(params, req, runtime), new RunChatResultGenerationResponse({}));
10910
+ if (Util.isUnset(this._signatureVersion) || !Util.equalString(this._signatureVersion, "v4")) {
10911
+ return $tea.cast<RunChatResultGenerationResponse>(await this.callApi(params, req, runtime), new RunChatResultGenerationResponse({}));
10912
+ } else {
10913
+ return $tea.cast<RunChatResultGenerationResponse>(await this.execute(params, req, runtime), new RunChatResultGenerationResponse({}));
10914
+ }
10915
+
10759
10916
  }
10760
10917
 
10761
10918
  /**
@@ -10868,7 +11025,12 @@ export default class Client extends OpenApi {
10868
11025
  reqBodyType: "json",
10869
11026
  bodyType: "json",
10870
11027
  });
10871
- return $tea.cast<RunLibraryChatGenerationResponse>(await this.callApi(params, req, runtime), new RunLibraryChatGenerationResponse({}));
11028
+ if (Util.isUnset(this._signatureVersion) || !Util.equalString(this._signatureVersion, "v4")) {
11029
+ return $tea.cast<RunLibraryChatGenerationResponse>(await this.callApi(params, req, runtime), new RunLibraryChatGenerationResponse({}));
11030
+ } else {
11031
+ return $tea.cast<RunLibraryChatGenerationResponse>(await this.execute(params, req, runtime), new RunLibraryChatGenerationResponse({}));
11032
+ }
11033
+
10872
11034
  }
10873
11035
 
10874
11036
  /**
@@ -10925,7 +11087,12 @@ export default class Client extends OpenApi {
10925
11087
  reqBodyType: "json",
10926
11088
  bodyType: "json",
10927
11089
  });
10928
- return $tea.cast<UpdateDocumentResponse>(await this.callApi(params, req, runtime), new UpdateDocumentResponse({}));
11090
+ if (Util.isUnset(this._signatureVersion) || !Util.equalString(this._signatureVersion, "v4")) {
11091
+ return $tea.cast<UpdateDocumentResponse>(await this.callApi(params, req, runtime), new UpdateDocumentResponse({}));
11092
+ } else {
11093
+ return $tea.cast<UpdateDocumentResponse>(await this.execute(params, req, runtime), new UpdateDocumentResponse({}));
11094
+ }
11095
+
10929
11096
  }
10930
11097
 
10931
11098
  /**
@@ -10982,7 +11149,12 @@ export default class Client extends OpenApi {
10982
11149
  reqBodyType: "json",
10983
11150
  bodyType: "json",
10984
11151
  });
10985
- return $tea.cast<UpdateLibraryResponse>(await this.callApi(params, req, runtime), new UpdateLibraryResponse({}));
11152
+ if (Util.isUnset(this._signatureVersion) || !Util.equalString(this._signatureVersion, "v4")) {
11153
+ return $tea.cast<UpdateLibraryResponse>(await this.callApi(params, req, runtime), new UpdateLibraryResponse({}));
11154
+ } else {
11155
+ return $tea.cast<UpdateLibraryResponse>(await this.execute(params, req, runtime), new UpdateLibraryResponse({}));
11156
+ }
11157
+
10986
11158
  }
10987
11159
 
10988
11160
  /**
@@ -11039,7 +11211,12 @@ export default class Client extends OpenApi {
11039
11211
  reqBodyType: "json",
11040
11212
  bodyType: "json",
11041
11213
  });
11042
- return $tea.cast<UploadDocumentResponse>(await this.callApi(params, req, runtime), new UploadDocumentResponse({}));
11214
+ if (Util.isUnset(this._signatureVersion) || !Util.equalString(this._signatureVersion, "v4")) {
11215
+ return $tea.cast<UploadDocumentResponse>(await this.callApi(params, req, runtime), new UploadDocumentResponse({}));
11216
+ } else {
11217
+ return $tea.cast<UploadDocumentResponse>(await this.execute(params, req, runtime), new UploadDocumentResponse({}));
11218
+ }
11219
+
11043
11220
  }
11044
11221
 
11045
11222
  /**