@alicloud/dianjin20240628 1.6.4 → 1.6.5

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.4",
3
+ "version": "1.6.5",
4
4
  "description": "",
5
5
  "main": "dist/client.js",
6
6
  "scripts": {
@@ -21,7 +21,6 @@
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",
25
24
  "@alicloud/oss-client": "^1.1.2",
26
25
  "@alicloud/openplatform20191219": "2.0.0",
27
26
  "@alicloud/oss-util": "0.0.1",
package/src/client.ts CHANGED
@@ -2,7 +2,6 @@
2
2
  /**
3
3
  */
4
4
  import Util, * as $Util from '@alicloud/tea-util';
5
- import GatewayClient from '@alicloud/gateway-pop';
6
5
  import OSS, * as $OSS from '@alicloud/oss-client';
7
6
  import OpenPlatform, * as $OpenPlatform from '@alicloud/openplatform20191219';
8
7
  import OSSUtil, * as $OSSUtil from '@alicloud/oss-util';
@@ -9140,9 +9139,6 @@ export default class Client extends OpenApi {
9140
9139
 
9141
9140
  constructor(config: $OpenApi.Config) {
9142
9141
  super(config);
9143
- this._productId = "DianJin";
9144
- let gatewayClient = new GatewayClient();
9145
- this._spi = gatewayClient;
9146
9142
  this._endpointRule = "";
9147
9143
  this.checkConfig(config);
9148
9144
  this._endpoint = this.getEndpoint("dianjin", this._regionId, this._endpointRule, this._network, this._suffix, this._endpointMap, this._endpoint);
@@ -9207,12 +9203,7 @@ export default class Client extends OpenApi {
9207
9203
  reqBodyType: "json",
9208
9204
  bodyType: "json",
9209
9205
  });
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
-
9206
+ return $tea.cast<CreateAnnualDocSummaryTaskResponse>(await this.callApi(params, req, runtime), new CreateAnnualDocSummaryTaskResponse({}));
9216
9207
  }
9217
9208
 
9218
9209
  /**
@@ -9269,12 +9260,7 @@ export default class Client extends OpenApi {
9269
9260
  reqBodyType: "json",
9270
9261
  bodyType: "json",
9271
9262
  });
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
-
9263
+ return $tea.cast<CreateDocsSummaryTaskResponse>(await this.callApi(params, req, runtime), new CreateDocsSummaryTaskResponse({}));
9278
9264
  }
9279
9265
 
9280
9266
  /**
@@ -9347,12 +9333,7 @@ export default class Client extends OpenApi {
9347
9333
  reqBodyType: "json",
9348
9334
  bodyType: "json",
9349
9335
  });
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
-
9336
+ return $tea.cast<CreateFinReportSummaryTaskResponse>(await this.callApi(params, req, runtime), new CreateFinReportSummaryTaskResponse({}));
9356
9337
  }
9357
9338
 
9358
9339
  /**
@@ -9405,12 +9386,7 @@ export default class Client extends OpenApi {
9405
9386
  reqBodyType: "json",
9406
9387
  bodyType: "json",
9407
9388
  });
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
-
9389
+ return $tea.cast<CreateLibraryResponse>(await this.callApi(params, req, runtime), new CreateLibraryResponse({}));
9414
9390
  }
9415
9391
 
9416
9392
  /**
@@ -9471,12 +9447,7 @@ export default class Client extends OpenApi {
9471
9447
  reqBodyType: "json",
9472
9448
  bodyType: "json",
9473
9449
  });
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
-
9450
+ return $tea.cast<CreatePdfTranslateTaskResponse>(await this.callApi(params, req, runtime), new CreatePdfTranslateTaskResponse({}));
9480
9451
  }
9481
9452
 
9482
9453
  /**
@@ -9533,12 +9504,7 @@ export default class Client extends OpenApi {
9533
9504
  reqBodyType: "json",
9534
9505
  bodyType: "json",
9535
9506
  });
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
-
9507
+ return $tea.cast<CreatePredefinedDocumentResponse>(await this.callApi(params, req, runtime), new CreatePredefinedDocumentResponse({}));
9542
9508
  }
9543
9509
 
9544
9510
  /**
@@ -9603,12 +9569,7 @@ export default class Client extends OpenApi {
9603
9569
  reqBodyType: "json",
9604
9570
  bodyType: "json",
9605
9571
  });
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
-
9572
+ return $tea.cast<CreateQualityCheckTaskResponse>(await this.callApi(params, req, runtime), new CreateQualityCheckTaskResponse({}));
9612
9573
  }
9613
9574
 
9614
9575
  /**
@@ -9657,12 +9618,7 @@ export default class Client extends OpenApi {
9657
9618
  reqBodyType: "json",
9658
9619
  bodyType: "json",
9659
9620
  });
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
-
9621
+ return $tea.cast<DeleteDocumentResponse>(await this.callApi(params, req, runtime), new DeleteDocumentResponse({}));
9666
9622
  }
9667
9623
 
9668
9624
  /**
@@ -9707,12 +9663,7 @@ export default class Client extends OpenApi {
9707
9663
  reqBodyType: "json",
9708
9664
  bodyType: "json",
9709
9665
  });
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
-
9666
+ return $tea.cast<DeleteLibraryResponse>(await this.callApi(params, req, runtime), new DeleteLibraryResponse({}));
9716
9667
  }
9717
9668
 
9718
9669
  /**
@@ -9757,12 +9708,7 @@ export default class Client extends OpenApi {
9757
9708
  reqBodyType: "json",
9758
9709
  bodyType: "json",
9759
9710
  });
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
-
9711
+ return $tea.cast<EvictTaskResponse>(await this.callApi(params, req, runtime), new EvictTaskResponse({}));
9766
9712
  }
9767
9713
 
9768
9714
  /**
@@ -9799,12 +9745,7 @@ export default class Client extends OpenApi {
9799
9745
  reqBodyType: "json",
9800
9746
  bodyType: "json",
9801
9747
  });
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
-
9748
+ return $tea.cast<GetAppConfigResponse>(await this.callApi(params, req, runtime), new GetAppConfigResponse({}));
9808
9749
  }
9809
9750
 
9810
9751
  /**
@@ -9875,12 +9816,7 @@ export default class Client extends OpenApi {
9875
9816
  reqBodyType: "json",
9876
9817
  bodyType: "json",
9877
9818
  });
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
-
9819
+ return $tea.cast<GetDocumentChunkListResponse>(await this.callApi(params, req, runtime), new GetDocumentChunkListResponse({}));
9884
9820
  }
9885
9821
 
9886
9822
  /**
@@ -9937,12 +9873,7 @@ export default class Client extends OpenApi {
9937
9873
  reqBodyType: "json",
9938
9874
  bodyType: "json",
9939
9875
  });
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
-
9876
+ return $tea.cast<GetDocumentListResponse>(await this.callApi(params, req, runtime), new GetDocumentListResponse({}));
9946
9877
  }
9947
9878
 
9948
9879
  /**
@@ -9987,12 +9918,7 @@ export default class Client extends OpenApi {
9987
9918
  reqBodyType: "json",
9988
9919
  bodyType: "json",
9989
9920
  });
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
-
9921
+ return $tea.cast<GetDocumentUrlResponse>(await this.callApi(params, req, runtime), new GetDocumentUrlResponse({}));
9996
9922
  }
9997
9923
 
9998
9924
  /**
@@ -10061,12 +9987,7 @@ export default class Client extends OpenApi {
10061
9987
  reqBodyType: "json",
10062
9988
  bodyType: "json",
10063
9989
  });
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
-
9990
+ return $tea.cast<GetFilterDocumentListResponse>(await this.callApi(params, req, runtime), new GetFilterDocumentListResponse({}));
10070
9991
  }
10071
9992
 
10072
9993
  /**
@@ -10123,12 +10044,7 @@ export default class Client extends OpenApi {
10123
10044
  reqBodyType: "json",
10124
10045
  bodyType: "json",
10125
10046
  });
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
-
10047
+ return $tea.cast<GetHistoryListByBizTypeResponse>(await this.callApi(params, req, runtime), new GetHistoryListByBizTypeResponse({}));
10132
10048
  }
10133
10049
 
10134
10050
  /**
@@ -10173,12 +10089,7 @@ export default class Client extends OpenApi {
10173
10089
  reqBodyType: "json",
10174
10090
  bodyType: "json",
10175
10091
  });
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
-
10092
+ return $tea.cast<GetLibraryResponse>(await this.callApi(params, req, runtime), new GetLibraryResponse({}));
10182
10093
  }
10183
10094
 
10184
10095
  /**
@@ -10231,12 +10142,7 @@ export default class Client extends OpenApi {
10231
10142
  reqBodyType: "json",
10232
10143
  bodyType: "json",
10233
10144
  });
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
-
10145
+ return $tea.cast<GetLibraryListResponse>(await this.callApi(params, req, runtime), new GetLibraryListResponse({}));
10240
10146
  }
10241
10147
 
10242
10148
  /**
@@ -10289,12 +10195,7 @@ export default class Client extends OpenApi {
10289
10195
  reqBodyType: "json",
10290
10196
  bodyType: "json",
10291
10197
  });
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
-
10198
+ return $tea.cast<GetParseResultResponse>(await this.callApi(params, req, runtime), new GetParseResultResponse({}));
10298
10199
  }
10299
10200
 
10300
10201
  /**
@@ -10339,12 +10240,7 @@ export default class Client extends OpenApi {
10339
10240
  reqBodyType: "json",
10340
10241
  bodyType: "json",
10341
10242
  });
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
-
10243
+ return $tea.cast<GetQualityCheckTaskResultResponse>(await this.callApi(params, req, runtime), new GetQualityCheckTaskResultResponse({}));
10348
10244
  }
10349
10245
 
10350
10246
  /**
@@ -10389,12 +10285,7 @@ export default class Client extends OpenApi {
10389
10285
  reqBodyType: "json",
10390
10286
  bodyType: "json",
10391
10287
  });
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
-
10288
+ return $tea.cast<GetSummaryTaskResultResponse>(await this.callApi(params, req, runtime), new GetSummaryTaskResultResponse({}));
10398
10289
  }
10399
10290
 
10400
10291
  /**
@@ -10439,12 +10330,7 @@ export default class Client extends OpenApi {
10439
10330
  reqBodyType: "json",
10440
10331
  bodyType: "json",
10441
10332
  });
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
-
10333
+ return $tea.cast<GetTaskResultResponse>(await this.callApi(params, req, runtime), new GetTaskResultResponse({}));
10448
10334
  }
10449
10335
 
10450
10336
  /**
@@ -10489,12 +10375,7 @@ export default class Client extends OpenApi {
10489
10375
  reqBodyType: "json",
10490
10376
  bodyType: "json",
10491
10377
  });
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
-
10378
+ return $tea.cast<GetTaskStatusResponse>(await this.callApi(params, req, runtime), new GetTaskStatusResponse({}));
10498
10379
  }
10499
10380
 
10500
10381
  /**
@@ -10543,12 +10424,7 @@ export default class Client extends OpenApi {
10543
10424
  reqBodyType: "json",
10544
10425
  bodyType: "json",
10545
10426
  });
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
-
10427
+ return $tea.cast<InvokePluginResponse>(await this.callApi(params, req, runtime), new InvokePluginResponse({}));
10552
10428
  }
10553
10429
 
10554
10430
  /**
@@ -10593,12 +10469,7 @@ export default class Client extends OpenApi {
10593
10469
  reqBodyType: "json",
10594
10470
  bodyType: "json",
10595
10471
  });
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
-
10472
+ return $tea.cast<PreviewDocumentResponse>(await this.callApi(params, req, runtime), new PreviewDocumentResponse({}));
10602
10473
  }
10603
10474
 
10604
10475
  /**
@@ -10643,12 +10514,7 @@ export default class Client extends OpenApi {
10643
10514
  reqBodyType: "json",
10644
10515
  bodyType: "json",
10645
10516
  });
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
-
10517
+ return $tea.cast<ReIndexResponse>(await this.callApi(params, req, runtime), new ReIndexResponse({}));
10652
10518
  }
10653
10519
 
10654
10520
  /**
@@ -10693,12 +10559,7 @@ export default class Client extends OpenApi {
10693
10559
  reqBodyType: "json",
10694
10560
  bodyType: "json",
10695
10561
  });
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
-
10562
+ return $tea.cast<RebuildTaskResponse>(await this.callApi(params, req, runtime), new RebuildTaskResponse({}));
10702
10563
  }
10703
10564
 
10704
10565
  /**
@@ -10755,12 +10616,7 @@ export default class Client extends OpenApi {
10755
10616
  reqBodyType: "json",
10756
10617
  bodyType: "json",
10757
10618
  });
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
-
10619
+ return $tea.cast<RecallDocumentResponse>(await this.callApi(params, req, runtime), new RecallDocumentResponse({}));
10764
10620
  }
10765
10621
 
10766
10622
  /**
@@ -10837,12 +10693,7 @@ export default class Client extends OpenApi {
10837
10693
  reqBodyType: "json",
10838
10694
  bodyType: "json",
10839
10695
  });
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
-
10696
+ return $tea.cast<RecognizeIntentionResponse>(await this.callApi(params, req, runtime), new RecognizeIntentionResponse({}));
10846
10697
  }
10847
10698
 
10848
10699
  /**
@@ -10907,12 +10758,7 @@ export default class Client extends OpenApi {
10907
10758
  reqBodyType: "json",
10908
10759
  bodyType: "json",
10909
10760
  });
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
-
10761
+ return $tea.cast<RunChatResultGenerationResponse>(await this.callApi(params, req, runtime), new RunChatResultGenerationResponse({}));
10916
10762
  }
10917
10763
 
10918
10764
  /**
@@ -11025,12 +10871,7 @@ export default class Client extends OpenApi {
11025
10871
  reqBodyType: "json",
11026
10872
  bodyType: "json",
11027
10873
  });
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
-
10874
+ return $tea.cast<RunLibraryChatGenerationResponse>(await this.callApi(params, req, runtime), new RunLibraryChatGenerationResponse({}));
11034
10875
  }
11035
10876
 
11036
10877
  /**
@@ -11087,12 +10928,7 @@ export default class Client extends OpenApi {
11087
10928
  reqBodyType: "json",
11088
10929
  bodyType: "json",
11089
10930
  });
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
-
10931
+ return $tea.cast<UpdateDocumentResponse>(await this.callApi(params, req, runtime), new UpdateDocumentResponse({}));
11096
10932
  }
11097
10933
 
11098
10934
  /**
@@ -11149,12 +10985,7 @@ export default class Client extends OpenApi {
11149
10985
  reqBodyType: "json",
11150
10986
  bodyType: "json",
11151
10987
  });
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
-
10988
+ return $tea.cast<UpdateLibraryResponse>(await this.callApi(params, req, runtime), new UpdateLibraryResponse({}));
11158
10989
  }
11159
10990
 
11160
10991
  /**
@@ -11211,12 +11042,7 @@ export default class Client extends OpenApi {
11211
11042
  reqBodyType: "json",
11212
11043
  bodyType: "json",
11213
11044
  });
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
-
11045
+ return $tea.cast<UploadDocumentResponse>(await this.callApi(params, req, runtime), new UploadDocumentResponse({}));
11220
11046
  }
11221
11047
 
11222
11048
  /**