@alicloud/dianjin20240628 1.8.1 → 1.9.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/src/client.ts CHANGED
@@ -4894,6 +4894,254 @@ export class RecognizeIntentionResponseBodyData extends $dara.Model {
4894
4894
  }
4895
4895
  }
4896
4896
 
4897
+ export class RunAgentResponseBodyDataFunctionCallResponses extends $dara.Model {
4898
+ displayName?: string;
4899
+ /**
4900
+ * @example
4901
+ * 2025-01-21 16:37:14
4902
+ */
4903
+ endTime?: string;
4904
+ functionArgs?: string;
4905
+ /**
4906
+ * @example
4907
+ * web_search
4908
+ */
4909
+ functionName?: string;
4910
+ result?: string;
4911
+ /**
4912
+ * @example
4913
+ * 2025-01-21 16:37:14
4914
+ */
4915
+ startTime?: string;
4916
+ static names(): { [key: string]: string } {
4917
+ return {
4918
+ displayName: 'displayName',
4919
+ endTime: 'endTime',
4920
+ functionArgs: 'functionArgs',
4921
+ functionName: 'functionName',
4922
+ result: 'result',
4923
+ startTime: 'startTime',
4924
+ };
4925
+ }
4926
+
4927
+ static types(): { [key: string]: any } {
4928
+ return {
4929
+ displayName: 'string',
4930
+ endTime: 'string',
4931
+ functionArgs: 'string',
4932
+ functionName: 'string',
4933
+ result: 'string',
4934
+ startTime: 'string',
4935
+ };
4936
+ }
4937
+
4938
+ validate() {
4939
+ super.validate();
4940
+ }
4941
+
4942
+ constructor(map?: { [key: string]: any }) {
4943
+ super(map);
4944
+ }
4945
+ }
4946
+
4947
+ export class RunAgentResponseBodyDataResponseChoicesMessage extends $dara.Model {
4948
+ content?: string;
4949
+ /**
4950
+ * @example
4951
+ * assistant
4952
+ */
4953
+ role?: string;
4954
+ /**
4955
+ * @example
4956
+ * assistant
4957
+ */
4958
+ roleDisplayName?: string;
4959
+ static names(): { [key: string]: string } {
4960
+ return {
4961
+ content: 'content',
4962
+ role: 'role',
4963
+ roleDisplayName: 'roleDisplayName',
4964
+ };
4965
+ }
4966
+
4967
+ static types(): { [key: string]: any } {
4968
+ return {
4969
+ content: 'string',
4970
+ role: 'string',
4971
+ roleDisplayName: 'string',
4972
+ };
4973
+ }
4974
+
4975
+ validate() {
4976
+ super.validate();
4977
+ }
4978
+
4979
+ constructor(map?: { [key: string]: any }) {
4980
+ super(map);
4981
+ }
4982
+ }
4983
+
4984
+ export class RunAgentResponseBodyDataResponseChoices extends $dara.Model {
4985
+ /**
4986
+ * @example
4987
+ * stop
4988
+ */
4989
+ finishReason?: string;
4990
+ /**
4991
+ * @example
4992
+ * 0
4993
+ */
4994
+ index?: number;
4995
+ message?: RunAgentResponseBodyDataResponseChoicesMessage;
4996
+ static names(): { [key: string]: string } {
4997
+ return {
4998
+ finishReason: 'finishReason',
4999
+ index: 'index',
5000
+ message: 'message',
5001
+ };
5002
+ }
5003
+
5004
+ static types(): { [key: string]: any } {
5005
+ return {
5006
+ finishReason: 'string',
5007
+ index: 'number',
5008
+ message: RunAgentResponseBodyDataResponseChoicesMessage,
5009
+ };
5010
+ }
5011
+
5012
+ validate() {
5013
+ if(this.message && typeof (this.message as any).validate === 'function') {
5014
+ (this.message as any).validate();
5015
+ }
5016
+ super.validate();
5017
+ }
5018
+
5019
+ constructor(map?: { [key: string]: any }) {
5020
+ super(map);
5021
+ }
5022
+ }
5023
+
5024
+ export class RunAgentResponseBodyDataResponse extends $dara.Model {
5025
+ choices?: RunAgentResponseBodyDataResponseChoices[];
5026
+ /**
5027
+ * @example
5028
+ * 1737448637
5029
+ */
5030
+ created?: number;
5031
+ /**
5032
+ * @example
5033
+ * d91d9afa-7cfc-4235-b012-a6f8e6ffa443
5034
+ */
5035
+ id?: string;
5036
+ /**
5037
+ * @example
5038
+ * qwen-plus
5039
+ */
5040
+ modelId?: string;
5041
+ /**
5042
+ * @example
5043
+ * 2025-01-21T16:37:17.497206762
5044
+ */
5045
+ time?: string;
5046
+ static names(): { [key: string]: string } {
5047
+ return {
5048
+ choices: 'choices',
5049
+ created: 'created',
5050
+ id: 'id',
5051
+ modelId: 'modelId',
5052
+ time: 'time',
5053
+ };
5054
+ }
5055
+
5056
+ static types(): { [key: string]: any } {
5057
+ return {
5058
+ choices: { 'type': 'array', 'itemType': RunAgentResponseBodyDataResponseChoices },
5059
+ created: 'number',
5060
+ id: 'string',
5061
+ modelId: 'string',
5062
+ time: 'string',
5063
+ };
5064
+ }
5065
+
5066
+ validate() {
5067
+ if(Array.isArray(this.choices)) {
5068
+ $dara.Model.validateArray(this.choices);
5069
+ }
5070
+ super.validate();
5071
+ }
5072
+
5073
+ constructor(map?: { [key: string]: any }) {
5074
+ super(map);
5075
+ }
5076
+ }
5077
+
5078
+ export class RunAgentResponseBodyData extends $dara.Model {
5079
+ functionCallResponses?: RunAgentResponseBodyDataFunctionCallResponses[];
5080
+ /**
5081
+ * @example
5082
+ * 766
5083
+ */
5084
+ inputTokens?: number;
5085
+ /**
5086
+ * @example
5087
+ * 988
5088
+ */
5089
+ outputTokens?: number;
5090
+ response?: RunAgentResponseBodyDataResponse;
5091
+ /**
5092
+ * @example
5093
+ * 4vlag5ken3
5094
+ */
5095
+ threadId?: string;
5096
+ /**
5097
+ * @example
5098
+ * 5bdb9809856c58acb92001f8ae65773c
5099
+ */
5100
+ traceId?: string;
5101
+ /**
5102
+ * @example
5103
+ * w4paqoezm2
5104
+ */
5105
+ versionId?: string;
5106
+ static names(): { [key: string]: string } {
5107
+ return {
5108
+ functionCallResponses: 'functionCallResponses',
5109
+ inputTokens: 'inputTokens',
5110
+ outputTokens: 'outputTokens',
5111
+ response: 'response',
5112
+ threadId: 'threadId',
5113
+ traceId: 'traceId',
5114
+ versionId: 'versionId',
5115
+ };
5116
+ }
5117
+
5118
+ static types(): { [key: string]: any } {
5119
+ return {
5120
+ functionCallResponses: { 'type': 'array', 'itemType': RunAgentResponseBodyDataFunctionCallResponses },
5121
+ inputTokens: 'number',
5122
+ outputTokens: 'number',
5123
+ response: RunAgentResponseBodyDataResponse,
5124
+ threadId: 'string',
5125
+ traceId: 'string',
5126
+ versionId: 'string',
5127
+ };
5128
+ }
5129
+
5130
+ validate() {
5131
+ if(Array.isArray(this.functionCallResponses)) {
5132
+ $dara.Model.validateArray(this.functionCallResponses);
5133
+ }
5134
+ if(this.response && typeof (this.response as any).validate === 'function') {
5135
+ (this.response as any).validate();
5136
+ }
5137
+ super.validate();
5138
+ }
5139
+
5140
+ constructor(map?: { [key: string]: any }) {
5141
+ super(map);
5142
+ }
5143
+ }
5144
+
4897
5145
  export class RunChatResultGenerationRequestMessages extends $dara.Model {
4898
5146
  content?: string;
4899
5147
  /**
@@ -11163,6 +11411,188 @@ export class RecognizeIntentionResponse extends $dara.Model {
11163
11411
  }
11164
11412
  }
11165
11413
 
11414
+ export class RunAgentRequest extends $dara.Model {
11415
+ /**
11416
+ * @remarks
11417
+ * This parameter is required.
11418
+ *
11419
+ * @example
11420
+ * d6zxykawk9
11421
+ */
11422
+ botId?: string;
11423
+ /**
11424
+ * @example
11425
+ * qwen-plus
11426
+ */
11427
+ modelId?: string;
11428
+ /**
11429
+ * @example
11430
+ * true
11431
+ */
11432
+ stream?: boolean;
11433
+ /**
11434
+ * @example
11435
+ * 4vlag5ken3
11436
+ */
11437
+ threadId?: string;
11438
+ /**
11439
+ * @example
11440
+ * false
11441
+ */
11442
+ useDraft?: boolean;
11443
+ /**
11444
+ * @remarks
11445
+ * This parameter is required.
11446
+ */
11447
+ userContent?: string;
11448
+ /**
11449
+ * @example
11450
+ * w4paqoezm2
11451
+ */
11452
+ versionId?: string;
11453
+ static names(): { [key: string]: string } {
11454
+ return {
11455
+ botId: 'botId',
11456
+ modelId: 'modelId',
11457
+ stream: 'stream',
11458
+ threadId: 'threadId',
11459
+ useDraft: 'useDraft',
11460
+ userContent: 'userContent',
11461
+ versionId: 'versionId',
11462
+ };
11463
+ }
11464
+
11465
+ static types(): { [key: string]: any } {
11466
+ return {
11467
+ botId: 'string',
11468
+ modelId: 'string',
11469
+ stream: 'boolean',
11470
+ threadId: 'string',
11471
+ useDraft: 'boolean',
11472
+ userContent: 'string',
11473
+ versionId: 'string',
11474
+ };
11475
+ }
11476
+
11477
+ validate() {
11478
+ super.validate();
11479
+ }
11480
+
11481
+ constructor(map?: { [key: string]: any }) {
11482
+ super(map);
11483
+ }
11484
+ }
11485
+
11486
+ export class RunAgentResponseBody extends $dara.Model {
11487
+ /**
11488
+ * @example
11489
+ * null
11490
+ */
11491
+ cost?: number;
11492
+ data?: RunAgentResponseBodyData;
11493
+ /**
11494
+ * @example
11495
+ * null
11496
+ */
11497
+ dataType?: string;
11498
+ /**
11499
+ * @example
11500
+ * 0
11501
+ */
11502
+ errCode?: string;
11503
+ /**
11504
+ * @example
11505
+ * ok
11506
+ */
11507
+ message?: string;
11508
+ /**
11509
+ * @example
11510
+ * EF4B5C9B-3BC8-5171-A47B-4C5CF3DC3258
11511
+ */
11512
+ requestId?: string;
11513
+ /**
11514
+ * @example
11515
+ * true
11516
+ */
11517
+ success?: boolean;
11518
+ /**
11519
+ * @example
11520
+ * 2024-01-01 00:00:00
11521
+ */
11522
+ time?: string;
11523
+ static names(): { [key: string]: string } {
11524
+ return {
11525
+ cost: 'cost',
11526
+ data: 'data',
11527
+ dataType: 'dataType',
11528
+ errCode: 'errCode',
11529
+ message: 'message',
11530
+ requestId: 'requestId',
11531
+ success: 'success',
11532
+ time: 'time',
11533
+ };
11534
+ }
11535
+
11536
+ static types(): { [key: string]: any } {
11537
+ return {
11538
+ cost: 'number',
11539
+ data: RunAgentResponseBodyData,
11540
+ dataType: 'string',
11541
+ errCode: 'string',
11542
+ message: 'string',
11543
+ requestId: 'string',
11544
+ success: 'boolean',
11545
+ time: 'string',
11546
+ };
11547
+ }
11548
+
11549
+ validate() {
11550
+ if(this.data && typeof (this.data as any).validate === 'function') {
11551
+ (this.data as any).validate();
11552
+ }
11553
+ super.validate();
11554
+ }
11555
+
11556
+ constructor(map?: { [key: string]: any }) {
11557
+ super(map);
11558
+ }
11559
+ }
11560
+
11561
+ export class RunAgentResponse extends $dara.Model {
11562
+ headers?: { [key: string]: string };
11563
+ statusCode?: number;
11564
+ body?: RunAgentResponseBody;
11565
+ static names(): { [key: string]: string } {
11566
+ return {
11567
+ headers: 'headers',
11568
+ statusCode: 'statusCode',
11569
+ body: 'body',
11570
+ };
11571
+ }
11572
+
11573
+ static types(): { [key: string]: any } {
11574
+ return {
11575
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
11576
+ statusCode: 'number',
11577
+ body: RunAgentResponseBody,
11578
+ };
11579
+ }
11580
+
11581
+ validate() {
11582
+ if(this.headers) {
11583
+ $dara.Model.validateMap(this.headers);
11584
+ }
11585
+ if(this.body && typeof (this.body as any).validate === 'function') {
11586
+ (this.body as any).validate();
11587
+ }
11588
+ super.validate();
11589
+ }
11590
+
11591
+ constructor(map?: { [key: string]: any }) {
11592
+ super(map);
11593
+ }
11594
+ }
11595
+
11166
11596
  export class RunChatResultGenerationRequest extends $dara.Model {
11167
11597
  /**
11168
11598
  * @example
@@ -12549,7 +12979,12 @@ export default class Client extends OpenApi {
12549
12979
  reqBodyType: "json",
12550
12980
  bodyType: "json",
12551
12981
  });
12552
- return $dara.cast<CreateAnnualDocSummaryTaskResponse>(await this.callApi(params, req, runtime), new CreateAnnualDocSummaryTaskResponse({}));
12982
+ if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
12983
+ return $dara.cast<CreateAnnualDocSummaryTaskResponse>(await this.callApi(params, req, runtime), new CreateAnnualDocSummaryTaskResponse({}));
12984
+ } else {
12985
+ return $dara.cast<CreateAnnualDocSummaryTaskResponse>(await this.execute(params, req, runtime), new CreateAnnualDocSummaryTaskResponse({}));
12986
+ }
12987
+
12553
12988
  }
12554
12989
 
12555
12990
  /**
@@ -12618,7 +13053,12 @@ export default class Client extends OpenApi {
12618
13053
  reqBodyType: "json",
12619
13054
  bodyType: "json",
12620
13055
  });
12621
- return $dara.cast<CreateDialogResponse>(await this.callApi(params, req, runtime), new CreateDialogResponse({}));
13056
+ if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
13057
+ return $dara.cast<CreateDialogResponse>(await this.callApi(params, req, runtime), new CreateDialogResponse({}));
13058
+ } else {
13059
+ return $dara.cast<CreateDialogResponse>(await this.execute(params, req, runtime), new CreateDialogResponse({}));
13060
+ }
13061
+
12622
13062
  }
12623
13063
 
12624
13064
  /**
@@ -12675,7 +13115,12 @@ export default class Client extends OpenApi {
12675
13115
  reqBodyType: "json",
12676
13116
  bodyType: "json",
12677
13117
  });
12678
- return $dara.cast<CreateDocsSummaryTaskResponse>(await this.callApi(params, req, runtime), new CreateDocsSummaryTaskResponse({}));
13118
+ if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
13119
+ return $dara.cast<CreateDocsSummaryTaskResponse>(await this.callApi(params, req, runtime), new CreateDocsSummaryTaskResponse({}));
13120
+ } else {
13121
+ return $dara.cast<CreateDocsSummaryTaskResponse>(await this.execute(params, req, runtime), new CreateDocsSummaryTaskResponse({}));
13122
+ }
13123
+
12679
13124
  }
12680
13125
 
12681
13126
  /**
@@ -12748,7 +13193,12 @@ export default class Client extends OpenApi {
12748
13193
  reqBodyType: "json",
12749
13194
  bodyType: "json",
12750
13195
  });
12751
- return $dara.cast<CreateFinReportSummaryTaskResponse>(await this.callApi(params, req, runtime), new CreateFinReportSummaryTaskResponse({}));
13196
+ if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
13197
+ return $dara.cast<CreateFinReportSummaryTaskResponse>(await this.callApi(params, req, runtime), new CreateFinReportSummaryTaskResponse({}));
13198
+ } else {
13199
+ return $dara.cast<CreateFinReportSummaryTaskResponse>(await this.execute(params, req, runtime), new CreateFinReportSummaryTaskResponse({}));
13200
+ }
13201
+
12752
13202
  }
12753
13203
 
12754
13204
  /**
@@ -12801,7 +13251,12 @@ export default class Client extends OpenApi {
12801
13251
  reqBodyType: "json",
12802
13252
  bodyType: "json",
12803
13253
  });
12804
- return $dara.cast<CreateLibraryResponse>(await this.callApi(params, req, runtime), new CreateLibraryResponse({}));
13254
+ if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
13255
+ return $dara.cast<CreateLibraryResponse>(await this.callApi(params, req, runtime), new CreateLibraryResponse({}));
13256
+ } else {
13257
+ return $dara.cast<CreateLibraryResponse>(await this.execute(params, req, runtime), new CreateLibraryResponse({}));
13258
+ }
13259
+
12805
13260
  }
12806
13261
 
12807
13262
  /**
@@ -12862,7 +13317,12 @@ export default class Client extends OpenApi {
12862
13317
  reqBodyType: "json",
12863
13318
  bodyType: "json",
12864
13319
  });
12865
- return $dara.cast<CreatePdfTranslateTaskResponse>(await this.callApi(params, req, runtime), new CreatePdfTranslateTaskResponse({}));
13320
+ if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
13321
+ return $dara.cast<CreatePdfTranslateTaskResponse>(await this.callApi(params, req, runtime), new CreatePdfTranslateTaskResponse({}));
13322
+ } else {
13323
+ return $dara.cast<CreatePdfTranslateTaskResponse>(await this.execute(params, req, runtime), new CreatePdfTranslateTaskResponse({}));
13324
+ }
13325
+
12866
13326
  }
12867
13327
 
12868
13328
  /**
@@ -12919,7 +13379,12 @@ export default class Client extends OpenApi {
12919
13379
  reqBodyType: "json",
12920
13380
  bodyType: "json",
12921
13381
  });
12922
- return $dara.cast<CreatePredefinedDocumentResponse>(await this.callApi(params, req, runtime), new CreatePredefinedDocumentResponse({}));
13382
+ if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
13383
+ return $dara.cast<CreatePredefinedDocumentResponse>(await this.callApi(params, req, runtime), new CreatePredefinedDocumentResponse({}));
13384
+ } else {
13385
+ return $dara.cast<CreatePredefinedDocumentResponse>(await this.execute(params, req, runtime), new CreatePredefinedDocumentResponse({}));
13386
+ }
13387
+
12923
13388
  }
12924
13389
 
12925
13390
  /**
@@ -12984,7 +13449,12 @@ export default class Client extends OpenApi {
12984
13449
  reqBodyType: "json",
12985
13450
  bodyType: "json",
12986
13451
  });
12987
- return $dara.cast<CreateQualityCheckTaskResponse>(await this.callApi(params, req, runtime), new CreateQualityCheckTaskResponse({}));
13452
+ if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
13453
+ return $dara.cast<CreateQualityCheckTaskResponse>(await this.callApi(params, req, runtime), new CreateQualityCheckTaskResponse({}));
13454
+ } else {
13455
+ return $dara.cast<CreateQualityCheckTaskResponse>(await this.execute(params, req, runtime), new CreateQualityCheckTaskResponse({}));
13456
+ }
13457
+
12988
13458
  }
12989
13459
 
12990
13460
  /**
@@ -13033,7 +13503,12 @@ export default class Client extends OpenApi {
13033
13503
  reqBodyType: "json",
13034
13504
  bodyType: "json",
13035
13505
  });
13036
- return $dara.cast<DeleteDocumentResponse>(await this.callApi(params, req, runtime), new DeleteDocumentResponse({}));
13506
+ if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
13507
+ return $dara.cast<DeleteDocumentResponse>(await this.callApi(params, req, runtime), new DeleteDocumentResponse({}));
13508
+ } else {
13509
+ return $dara.cast<DeleteDocumentResponse>(await this.execute(params, req, runtime), new DeleteDocumentResponse({}));
13510
+ }
13511
+
13037
13512
  }
13038
13513
 
13039
13514
  /**
@@ -13078,7 +13553,12 @@ export default class Client extends OpenApi {
13078
13553
  reqBodyType: "json",
13079
13554
  bodyType: "json",
13080
13555
  });
13081
- return $dara.cast<DeleteLibraryResponse>(await this.callApi(params, req, runtime), new DeleteLibraryResponse({}));
13556
+ if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
13557
+ return $dara.cast<DeleteLibraryResponse>(await this.callApi(params, req, runtime), new DeleteLibraryResponse({}));
13558
+ } else {
13559
+ return $dara.cast<DeleteLibraryResponse>(await this.execute(params, req, runtime), new DeleteLibraryResponse({}));
13560
+ }
13561
+
13082
13562
  }
13083
13563
 
13084
13564
  /**
@@ -13123,7 +13603,12 @@ export default class Client extends OpenApi {
13123
13603
  reqBodyType: "json",
13124
13604
  bodyType: "json",
13125
13605
  });
13126
- return $dara.cast<EvictTaskResponse>(await this.callApi(params, req, runtime), new EvictTaskResponse({}));
13606
+ if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
13607
+ return $dara.cast<EvictTaskResponse>(await this.callApi(params, req, runtime), new EvictTaskResponse({}));
13608
+ } else {
13609
+ return $dara.cast<EvictTaskResponse>(await this.execute(params, req, runtime), new EvictTaskResponse({}));
13610
+ }
13611
+
13127
13612
  }
13128
13613
 
13129
13614
  /**
@@ -13176,7 +13661,12 @@ export default class Client extends OpenApi {
13176
13661
  reqBodyType: "json",
13177
13662
  bodyType: "json",
13178
13663
  });
13179
- return $dara.cast<GenDocQaResultResponse>(await this.callApi(params, req, runtime), new GenDocQaResultResponse({}));
13664
+ if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
13665
+ return $dara.cast<GenDocQaResultResponse>(await this.callApi(params, req, runtime), new GenDocQaResultResponse({}));
13666
+ } else {
13667
+ return $dara.cast<GenDocQaResultResponse>(await this.execute(params, req, runtime), new GenDocQaResultResponse({}));
13668
+ }
13669
+
13180
13670
  }
13181
13671
 
13182
13672
  /**
@@ -13213,7 +13703,12 @@ export default class Client extends OpenApi {
13213
13703
  reqBodyType: "json",
13214
13704
  bodyType: "json",
13215
13705
  });
13216
- return $dara.cast<GetAppConfigResponse>(await this.callApi(params, req, runtime), new GetAppConfigResponse({}));
13706
+ if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
13707
+ return $dara.cast<GetAppConfigResponse>(await this.callApi(params, req, runtime), new GetAppConfigResponse({}));
13708
+ } else {
13709
+ return $dara.cast<GetAppConfigResponse>(await this.execute(params, req, runtime), new GetAppConfigResponse({}));
13710
+ }
13711
+
13217
13712
  }
13218
13713
 
13219
13714
  /**
@@ -13260,7 +13755,12 @@ export default class Client extends OpenApi {
13260
13755
  reqBodyType: "json",
13261
13756
  bodyType: "json",
13262
13757
  });
13263
- return $dara.cast<GetChatQuestionRespResponse>(await this.callApi(params, req, runtime), new GetChatQuestionRespResponse({}));
13758
+ if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
13759
+ return $dara.cast<GetChatQuestionRespResponse>(await this.callApi(params, req, runtime), new GetChatQuestionRespResponse({}));
13760
+ } else {
13761
+ return $dara.cast<GetChatQuestionRespResponse>(await this.execute(params, req, runtime), new GetChatQuestionRespResponse({}));
13762
+ }
13763
+
13264
13764
  }
13265
13765
 
13266
13766
  /**
@@ -13321,7 +13821,12 @@ export default class Client extends OpenApi {
13321
13821
  reqBodyType: "json",
13322
13822
  bodyType: "json",
13323
13823
  });
13324
- return $dara.cast<GetDialogAnalysisResultResponse>(await this.callApi(params, req, runtime), new GetDialogAnalysisResultResponse({}));
13824
+ if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
13825
+ return $dara.cast<GetDialogAnalysisResultResponse>(await this.callApi(params, req, runtime), new GetDialogAnalysisResultResponse({}));
13826
+ } else {
13827
+ return $dara.cast<GetDialogAnalysisResultResponse>(await this.execute(params, req, runtime), new GetDialogAnalysisResultResponse({}));
13828
+ }
13829
+
13325
13830
  }
13326
13831
 
13327
13832
  /**
@@ -13394,7 +13899,12 @@ export default class Client extends OpenApi {
13394
13899
  reqBodyType: "json",
13395
13900
  bodyType: "json",
13396
13901
  });
13397
- return $dara.cast<GetDocumentChunkListResponse>(await this.callApi(params, req, runtime), new GetDocumentChunkListResponse({}));
13902
+ if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
13903
+ return $dara.cast<GetDocumentChunkListResponse>(await this.callApi(params, req, runtime), new GetDocumentChunkListResponse({}));
13904
+ } else {
13905
+ return $dara.cast<GetDocumentChunkListResponse>(await this.execute(params, req, runtime), new GetDocumentChunkListResponse({}));
13906
+ }
13907
+
13398
13908
  }
13399
13909
 
13400
13910
  /**
@@ -13451,7 +13961,12 @@ export default class Client extends OpenApi {
13451
13961
  reqBodyType: "json",
13452
13962
  bodyType: "json",
13453
13963
  });
13454
- return $dara.cast<GetDocumentListResponse>(await this.callApi(params, req, runtime), new GetDocumentListResponse({}));
13964
+ if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
13965
+ return $dara.cast<GetDocumentListResponse>(await this.callApi(params, req, runtime), new GetDocumentListResponse({}));
13966
+ } else {
13967
+ return $dara.cast<GetDocumentListResponse>(await this.execute(params, req, runtime), new GetDocumentListResponse({}));
13968
+ }
13969
+
13455
13970
  }
13456
13971
 
13457
13972
  /**
@@ -13496,7 +14011,12 @@ export default class Client extends OpenApi {
13496
14011
  reqBodyType: "json",
13497
14012
  bodyType: "json",
13498
14013
  });
13499
- return $dara.cast<GetDocumentUrlResponse>(await this.callApi(params, req, runtime), new GetDocumentUrlResponse({}));
14014
+ if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
14015
+ return $dara.cast<GetDocumentUrlResponse>(await this.callApi(params, req, runtime), new GetDocumentUrlResponse({}));
14016
+ } else {
14017
+ return $dara.cast<GetDocumentUrlResponse>(await this.execute(params, req, runtime), new GetDocumentUrlResponse({}));
14018
+ }
14019
+
13500
14020
  }
13501
14021
 
13502
14022
  /**
@@ -13565,7 +14085,12 @@ export default class Client extends OpenApi {
13565
14085
  reqBodyType: "json",
13566
14086
  bodyType: "json",
13567
14087
  });
13568
- return $dara.cast<GetFilterDocumentListResponse>(await this.callApi(params, req, runtime), new GetFilterDocumentListResponse({}));
14088
+ if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
14089
+ return $dara.cast<GetFilterDocumentListResponse>(await this.callApi(params, req, runtime), new GetFilterDocumentListResponse({}));
14090
+ } else {
14091
+ return $dara.cast<GetFilterDocumentListResponse>(await this.execute(params, req, runtime), new GetFilterDocumentListResponse({}));
14092
+ }
14093
+
13569
14094
  }
13570
14095
 
13571
14096
  /**
@@ -13622,7 +14147,12 @@ export default class Client extends OpenApi {
13622
14147
  reqBodyType: "json",
13623
14148
  bodyType: "json",
13624
14149
  });
13625
- return $dara.cast<GetHistoryListByBizTypeResponse>(await this.callApi(params, req, runtime), new GetHistoryListByBizTypeResponse({}));
14150
+ if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
14151
+ return $dara.cast<GetHistoryListByBizTypeResponse>(await this.callApi(params, req, runtime), new GetHistoryListByBizTypeResponse({}));
14152
+ } else {
14153
+ return $dara.cast<GetHistoryListByBizTypeResponse>(await this.execute(params, req, runtime), new GetHistoryListByBizTypeResponse({}));
14154
+ }
14155
+
13626
14156
  }
13627
14157
 
13628
14158
  /**
@@ -13667,7 +14197,12 @@ export default class Client extends OpenApi {
13667
14197
  reqBodyType: "json",
13668
14198
  bodyType: "json",
13669
14199
  });
13670
- return $dara.cast<GetLibraryResponse>(await this.callApi(params, req, runtime), new GetLibraryResponse({}));
14200
+ if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
14201
+ return $dara.cast<GetLibraryResponse>(await this.callApi(params, req, runtime), new GetLibraryResponse({}));
14202
+ } else {
14203
+ return $dara.cast<GetLibraryResponse>(await this.execute(params, req, runtime), new GetLibraryResponse({}));
14204
+ }
14205
+
13671
14206
  }
13672
14207
 
13673
14208
  /**
@@ -13720,7 +14255,12 @@ export default class Client extends OpenApi {
13720
14255
  reqBodyType: "json",
13721
14256
  bodyType: "json",
13722
14257
  });
13723
- return $dara.cast<GetLibraryListResponse>(await this.callApi(params, req, runtime), new GetLibraryListResponse({}));
14258
+ if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
14259
+ return $dara.cast<GetLibraryListResponse>(await this.callApi(params, req, runtime), new GetLibraryListResponse({}));
14260
+ } else {
14261
+ return $dara.cast<GetLibraryListResponse>(await this.execute(params, req, runtime), new GetLibraryListResponse({}));
14262
+ }
14263
+
13724
14264
  }
13725
14265
 
13726
14266
  /**
@@ -13773,7 +14313,12 @@ export default class Client extends OpenApi {
13773
14313
  reqBodyType: "json",
13774
14314
  bodyType: "json",
13775
14315
  });
13776
- return $dara.cast<GetParseResultResponse>(await this.callApi(params, req, runtime), new GetParseResultResponse({}));
14316
+ if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
14317
+ return $dara.cast<GetParseResultResponse>(await this.callApi(params, req, runtime), new GetParseResultResponse({}));
14318
+ } else {
14319
+ return $dara.cast<GetParseResultResponse>(await this.execute(params, req, runtime), new GetParseResultResponse({}));
14320
+ }
14321
+
13777
14322
  }
13778
14323
 
13779
14324
  /**
@@ -13818,7 +14363,12 @@ export default class Client extends OpenApi {
13818
14363
  reqBodyType: "json",
13819
14364
  bodyType: "json",
13820
14365
  });
13821
- return $dara.cast<GetQualityCheckTaskResultResponse>(await this.callApi(params, req, runtime), new GetQualityCheckTaskResultResponse({}));
14366
+ if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
14367
+ return $dara.cast<GetQualityCheckTaskResultResponse>(await this.callApi(params, req, runtime), new GetQualityCheckTaskResultResponse({}));
14368
+ } else {
14369
+ return $dara.cast<GetQualityCheckTaskResultResponse>(await this.execute(params, req, runtime), new GetQualityCheckTaskResultResponse({}));
14370
+ }
14371
+
13822
14372
  }
13823
14373
 
13824
14374
  /**
@@ -13863,7 +14413,12 @@ export default class Client extends OpenApi {
13863
14413
  reqBodyType: "json",
13864
14414
  bodyType: "json",
13865
14415
  });
13866
- return $dara.cast<GetSummaryTaskResultResponse>(await this.callApi(params, req, runtime), new GetSummaryTaskResultResponse({}));
14416
+ if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
14417
+ return $dara.cast<GetSummaryTaskResultResponse>(await this.callApi(params, req, runtime), new GetSummaryTaskResultResponse({}));
14418
+ } else {
14419
+ return $dara.cast<GetSummaryTaskResultResponse>(await this.execute(params, req, runtime), new GetSummaryTaskResultResponse({}));
14420
+ }
14421
+
13867
14422
  }
13868
14423
 
13869
14424
  /**
@@ -13908,7 +14463,12 @@ export default class Client extends OpenApi {
13908
14463
  reqBodyType: "json",
13909
14464
  bodyType: "json",
13910
14465
  });
13911
- return $dara.cast<GetTaskResultResponse>(await this.callApi(params, req, runtime), new GetTaskResultResponse({}));
14466
+ if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
14467
+ return $dara.cast<GetTaskResultResponse>(await this.callApi(params, req, runtime), new GetTaskResultResponse({}));
14468
+ } else {
14469
+ return $dara.cast<GetTaskResultResponse>(await this.execute(params, req, runtime), new GetTaskResultResponse({}));
14470
+ }
14471
+
13912
14472
  }
13913
14473
 
13914
14474
  /**
@@ -13953,7 +14513,12 @@ export default class Client extends OpenApi {
13953
14513
  reqBodyType: "json",
13954
14514
  bodyType: "json",
13955
14515
  });
13956
- return $dara.cast<GetTaskStatusResponse>(await this.callApi(params, req, runtime), new GetTaskStatusResponse({}));
14516
+ if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
14517
+ return $dara.cast<GetTaskStatusResponse>(await this.callApi(params, req, runtime), new GetTaskStatusResponse({}));
14518
+ } else {
14519
+ return $dara.cast<GetTaskStatusResponse>(await this.execute(params, req, runtime), new GetTaskStatusResponse({}));
14520
+ }
14521
+
13957
14522
  }
13958
14523
 
13959
14524
  /**
@@ -14002,7 +14567,12 @@ export default class Client extends OpenApi {
14002
14567
  reqBodyType: "json",
14003
14568
  bodyType: "json",
14004
14569
  });
14005
- return $dara.cast<InvokePluginResponse>(await this.callApi(params, req, runtime), new InvokePluginResponse({}));
14570
+ if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
14571
+ return $dara.cast<InvokePluginResponse>(await this.callApi(params, req, runtime), new InvokePluginResponse({}));
14572
+ } else {
14573
+ return $dara.cast<InvokePluginResponse>(await this.execute(params, req, runtime), new InvokePluginResponse({}));
14574
+ }
14575
+
14006
14576
  }
14007
14577
 
14008
14578
  /**
@@ -14047,7 +14617,12 @@ export default class Client extends OpenApi {
14047
14617
  reqBodyType: "json",
14048
14618
  bodyType: "json",
14049
14619
  });
14050
- return $dara.cast<PreviewDocumentResponse>(await this.callApi(params, req, runtime), new PreviewDocumentResponse({}));
14620
+ if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
14621
+ return $dara.cast<PreviewDocumentResponse>(await this.callApi(params, req, runtime), new PreviewDocumentResponse({}));
14622
+ } else {
14623
+ return $dara.cast<PreviewDocumentResponse>(await this.execute(params, req, runtime), new PreviewDocumentResponse({}));
14624
+ }
14625
+
14051
14626
  }
14052
14627
 
14053
14628
  /**
@@ -14092,7 +14667,12 @@ export default class Client extends OpenApi {
14092
14667
  reqBodyType: "json",
14093
14668
  bodyType: "json",
14094
14669
  });
14095
- return $dara.cast<ReIndexResponse>(await this.callApi(params, req, runtime), new ReIndexResponse({}));
14670
+ if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
14671
+ return $dara.cast<ReIndexResponse>(await this.callApi(params, req, runtime), new ReIndexResponse({}));
14672
+ } else {
14673
+ return $dara.cast<ReIndexResponse>(await this.execute(params, req, runtime), new ReIndexResponse({}));
14674
+ }
14675
+
14096
14676
  }
14097
14677
 
14098
14678
  /**
@@ -14165,7 +14745,12 @@ export default class Client extends OpenApi {
14165
14745
  reqBodyType: "json",
14166
14746
  bodyType: "json",
14167
14747
  });
14168
- return $dara.cast<RealTimeDialogResponse>(await this.callApi(params, req, runtime), new RealTimeDialogResponse({}));
14748
+ if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
14749
+ return $dara.cast<RealTimeDialogResponse>(await this.callApi(params, req, runtime), new RealTimeDialogResponse({}));
14750
+ } else {
14751
+ return $dara.cast<RealTimeDialogResponse>(await this.execute(params, req, runtime), new RealTimeDialogResponse({}));
14752
+ }
14753
+
14169
14754
  }
14170
14755
 
14171
14756
  /**
@@ -14210,7 +14795,12 @@ export default class Client extends OpenApi {
14210
14795
  reqBodyType: "json",
14211
14796
  bodyType: "json",
14212
14797
  });
14213
- return $dara.cast<RebuildTaskResponse>(await this.callApi(params, req, runtime), new RebuildTaskResponse({}));
14798
+ if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
14799
+ return $dara.cast<RebuildTaskResponse>(await this.callApi(params, req, runtime), new RebuildTaskResponse({}));
14800
+ } else {
14801
+ return $dara.cast<RebuildTaskResponse>(await this.execute(params, req, runtime), new RebuildTaskResponse({}));
14802
+ }
14803
+
14214
14804
  }
14215
14805
 
14216
14806
  /**
@@ -14267,7 +14857,12 @@ export default class Client extends OpenApi {
14267
14857
  reqBodyType: "json",
14268
14858
  bodyType: "json",
14269
14859
  });
14270
- return $dara.cast<RecallDocumentResponse>(await this.callApi(params, req, runtime), new RecallDocumentResponse({}));
14860
+ if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
14861
+ return $dara.cast<RecallDocumentResponse>(await this.callApi(params, req, runtime), new RecallDocumentResponse({}));
14862
+ } else {
14863
+ return $dara.cast<RecallDocumentResponse>(await this.execute(params, req, runtime), new RecallDocumentResponse({}));
14864
+ }
14865
+
14271
14866
  }
14272
14867
 
14273
14868
  /**
@@ -14344,7 +14939,12 @@ export default class Client extends OpenApi {
14344
14939
  reqBodyType: "json",
14345
14940
  bodyType: "json",
14346
14941
  });
14347
- return $dara.cast<RecognizeIntentionResponse>(await this.callApi(params, req, runtime), new RecognizeIntentionResponse({}));
14942
+ if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
14943
+ return $dara.cast<RecognizeIntentionResponse>(await this.callApi(params, req, runtime), new RecognizeIntentionResponse({}));
14944
+ } else {
14945
+ return $dara.cast<RecognizeIntentionResponse>(await this.execute(params, req, runtime), new RecognizeIntentionResponse({}));
14946
+ }
14947
+
14348
14948
  }
14349
14949
 
14350
14950
  /**
@@ -14359,6 +14959,80 @@ export default class Client extends OpenApi {
14359
14959
  return await this.recognizeIntentionWithOptions(workspaceId, request, headers, runtime);
14360
14960
  }
14361
14961
 
14962
+ /**
14963
+ * 运行智能体
14964
+ *
14965
+ * @param request - RunAgentRequest
14966
+ * @param headers - map
14967
+ * @param runtime - runtime options for this request RuntimeOptions
14968
+ * @returns RunAgentResponse
14969
+ */
14970
+ async runAgentWithOptions(workspaceId: string, request: RunAgentRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<RunAgentResponse> {
14971
+ request.validate();
14972
+ let body : {[key: string ]: any} = { };
14973
+ if (!$dara.isNull(request.botId)) {
14974
+ body["botId"] = request.botId;
14975
+ }
14976
+
14977
+ if (!$dara.isNull(request.modelId)) {
14978
+ body["modelId"] = request.modelId;
14979
+ }
14980
+
14981
+ if (!$dara.isNull(request.stream)) {
14982
+ body["stream"] = request.stream;
14983
+ }
14984
+
14985
+ if (!$dara.isNull(request.threadId)) {
14986
+ body["threadId"] = request.threadId;
14987
+ }
14988
+
14989
+ if (!$dara.isNull(request.useDraft)) {
14990
+ body["useDraft"] = request.useDraft;
14991
+ }
14992
+
14993
+ if (!$dara.isNull(request.userContent)) {
14994
+ body["userContent"] = request.userContent;
14995
+ }
14996
+
14997
+ if (!$dara.isNull(request.versionId)) {
14998
+ body["versionId"] = request.versionId;
14999
+ }
15000
+
15001
+ let req = new $OpenApiUtil.OpenApiRequest({
15002
+ headers: headers,
15003
+ body: OpenApiUtil.parseToMap(body),
15004
+ });
15005
+ let params = new $OpenApiUtil.Params({
15006
+ action: "RunAgent",
15007
+ version: "2024-06-28",
15008
+ protocol: "HTTPS",
15009
+ pathname: `/${$dara.URL.percentEncode(workspaceId)}/api/bot/thread/run`,
15010
+ method: "POST",
15011
+ authType: "AK",
15012
+ style: "ROA",
15013
+ reqBodyType: "json",
15014
+ bodyType: "json",
15015
+ });
15016
+ if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
15017
+ return $dara.cast<RunAgentResponse>(await this.callApi(params, req, runtime), new RunAgentResponse({}));
15018
+ } else {
15019
+ return $dara.cast<RunAgentResponse>(await this.execute(params, req, runtime), new RunAgentResponse({}));
15020
+ }
15021
+
15022
+ }
15023
+
15024
+ /**
15025
+ * 运行智能体
15026
+ *
15027
+ * @param request - RunAgentRequest
15028
+ * @returns RunAgentResponse
15029
+ */
15030
+ async runAgent(workspaceId: string, request: RunAgentRequest): Promise<RunAgentResponse> {
15031
+ let runtime = new $dara.RuntimeOptions({ });
15032
+ let headers : {[key: string ]: string} = { };
15033
+ return await this.runAgentWithOptions(workspaceId, request, headers, runtime);
15034
+ }
15035
+
14362
15036
  /**
14363
15037
  * 获取生成式对话结果
14364
15038
  *
@@ -14409,7 +15083,12 @@ export default class Client extends OpenApi {
14409
15083
  reqBodyType: "json",
14410
15084
  bodyType: "json",
14411
15085
  });
14412
- return $dara.cast<RunChatResultGenerationResponse>(await this.callApi(params, req, runtime), new RunChatResultGenerationResponse({}));
15086
+ if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
15087
+ return $dara.cast<RunChatResultGenerationResponse>(await this.callApi(params, req, runtime), new RunChatResultGenerationResponse({}));
15088
+ } else {
15089
+ return $dara.cast<RunChatResultGenerationResponse>(await this.execute(params, req, runtime), new RunChatResultGenerationResponse({}));
15090
+ }
15091
+
14413
15092
  }
14414
15093
 
14415
15094
  /**
@@ -14522,7 +15201,12 @@ export default class Client extends OpenApi {
14522
15201
  reqBodyType: "json",
14523
15202
  bodyType: "json",
14524
15203
  });
14525
- return $dara.cast<RunLibraryChatGenerationResponse>(await this.callApi(params, req, runtime), new RunLibraryChatGenerationResponse({}));
15204
+ if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
15205
+ return $dara.cast<RunLibraryChatGenerationResponse>(await this.callApi(params, req, runtime), new RunLibraryChatGenerationResponse({}));
15206
+ } else {
15207
+ return $dara.cast<RunLibraryChatGenerationResponse>(await this.execute(params, req, runtime), new RunLibraryChatGenerationResponse({}));
15208
+ }
15209
+
14526
15210
  }
14527
15211
 
14528
15212
  /**
@@ -14587,7 +15271,12 @@ export default class Client extends OpenApi {
14587
15271
  reqBodyType: "json",
14588
15272
  bodyType: "json",
14589
15273
  });
14590
- return $dara.cast<SubmitChatQuestionResponse>(await this.callApi(params, req, runtime), new SubmitChatQuestionResponse({}));
15274
+ if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
15275
+ return $dara.cast<SubmitChatQuestionResponse>(await this.callApi(params, req, runtime), new SubmitChatQuestionResponse({}));
15276
+ } else {
15277
+ return $dara.cast<SubmitChatQuestionResponse>(await this.execute(params, req, runtime), new SubmitChatQuestionResponse({}));
15278
+ }
15279
+
14591
15280
  }
14592
15281
 
14593
15282
  /**
@@ -14644,7 +15333,12 @@ export default class Client extends OpenApi {
14644
15333
  reqBodyType: "json",
14645
15334
  bodyType: "json",
14646
15335
  });
14647
- return $dara.cast<UpdateDocumentResponse>(await this.callApi(params, req, runtime), new UpdateDocumentResponse({}));
15336
+ if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
15337
+ return $dara.cast<UpdateDocumentResponse>(await this.callApi(params, req, runtime), new UpdateDocumentResponse({}));
15338
+ } else {
15339
+ return $dara.cast<UpdateDocumentResponse>(await this.execute(params, req, runtime), new UpdateDocumentResponse({}));
15340
+ }
15341
+
14648
15342
  }
14649
15343
 
14650
15344
  /**
@@ -14701,7 +15395,12 @@ export default class Client extends OpenApi {
14701
15395
  reqBodyType: "json",
14702
15396
  bodyType: "json",
14703
15397
  });
14704
- return $dara.cast<UpdateLibraryResponse>(await this.callApi(params, req, runtime), new UpdateLibraryResponse({}));
15398
+ if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
15399
+ return $dara.cast<UpdateLibraryResponse>(await this.callApi(params, req, runtime), new UpdateLibraryResponse({}));
15400
+ } else {
15401
+ return $dara.cast<UpdateLibraryResponse>(await this.execute(params, req, runtime), new UpdateLibraryResponse({}));
15402
+ }
15403
+
14705
15404
  }
14706
15405
 
14707
15406
  /**
@@ -14754,7 +15453,12 @@ export default class Client extends OpenApi {
14754
15453
  reqBodyType: "json",
14755
15454
  bodyType: "json",
14756
15455
  });
14757
- return $dara.cast<UpdateQaLibraryResponse>(await this.callApi(params, req, runtime), new UpdateQaLibraryResponse({}));
15456
+ if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
15457
+ return $dara.cast<UpdateQaLibraryResponse>(await this.callApi(params, req, runtime), new UpdateQaLibraryResponse({}));
15458
+ } else {
15459
+ return $dara.cast<UpdateQaLibraryResponse>(await this.execute(params, req, runtime), new UpdateQaLibraryResponse({}));
15460
+ }
15461
+
14758
15462
  }
14759
15463
 
14760
15464
  /**
@@ -14811,7 +15515,12 @@ export default class Client extends OpenApi {
14811
15515
  reqBodyType: "json",
14812
15516
  bodyType: "json",
14813
15517
  });
14814
- return $dara.cast<UploadDocumentResponse>(await this.callApi(params, req, runtime), new UploadDocumentResponse({}));
15518
+ if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
15519
+ return $dara.cast<UploadDocumentResponse>(await this.callApi(params, req, runtime), new UploadDocumentResponse({}));
15520
+ } else {
15521
+ return $dara.cast<UploadDocumentResponse>(await this.execute(params, req, runtime), new UploadDocumentResponse({}));
15522
+ }
15523
+
14815
15524
  }
14816
15525
 
14817
15526
  /**