@alicloud/dianjin20240628 1.8.1 → 1.9.1

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