@alicloud/bailian20231229 2.0.3 → 2.0.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/src/client.ts CHANGED
@@ -4305,6 +4305,7 @@ export class CreateIndexRequest extends $dara.Model {
4305
4305
  * structured
4306
4306
  */
4307
4307
  structureType?: string;
4308
+ chunkMode?: string;
4308
4309
  enableHeaders?: boolean;
4309
4310
  metaExtractColumns?: CreateIndexRequestMetaExtractColumns[];
4310
4311
  static names(): { [key: string]: string } {
@@ -4326,6 +4327,7 @@ export class CreateIndexRequest extends $dara.Model {
4326
4327
  sinkType: 'SinkType',
4327
4328
  sourceType: 'SourceType',
4328
4329
  structureType: 'StructureType',
4330
+ chunkMode: 'chunkMode',
4329
4331
  enableHeaders: 'enableHeaders',
4330
4332
  metaExtractColumns: 'metaExtractColumns',
4331
4333
  };
@@ -4350,6 +4352,7 @@ export class CreateIndexRequest extends $dara.Model {
4350
4352
  sinkType: 'string',
4351
4353
  sourceType: 'string',
4352
4354
  structureType: 'string',
4355
+ chunkMode: 'string',
4353
4356
  enableHeaders: 'boolean',
4354
4357
  metaExtractColumns: { 'type': 'array', 'itemType': CreateIndexRequestMetaExtractColumns },
4355
4358
  };
@@ -4554,6 +4557,7 @@ export class CreateIndexShrinkRequest extends $dara.Model {
4554
4557
  * structured
4555
4558
  */
4556
4559
  structureType?: string;
4560
+ chunkMode?: string;
4557
4561
  enableHeaders?: boolean;
4558
4562
  metaExtractColumnsShrink?: string;
4559
4563
  static names(): { [key: string]: string } {
@@ -4575,6 +4579,7 @@ export class CreateIndexShrinkRequest extends $dara.Model {
4575
4579
  sinkType: 'SinkType',
4576
4580
  sourceType: 'SourceType',
4577
4581
  structureType: 'StructureType',
4582
+ chunkMode: 'chunkMode',
4578
4583
  enableHeaders: 'enableHeaders',
4579
4584
  metaExtractColumnsShrink: 'metaExtractColumns',
4580
4585
  };
@@ -4599,6 +4604,7 @@ export class CreateIndexShrinkRequest extends $dara.Model {
4599
4604
  sinkType: 'string',
4600
4605
  sourceType: 'string',
4601
4606
  structureType: 'string',
4607
+ chunkMode: 'string',
4602
4608
  enableHeaders: 'boolean',
4603
4609
  metaExtractColumnsShrink: 'string',
4604
4610
  };
@@ -8315,6 +8321,8 @@ export class SubmitIndexAddDocumentsJobRequest extends $dara.Model {
8315
8321
  * The list of primary key IDs of the category.
8316
8322
  */
8317
8323
  categoryIds?: string[];
8324
+ chunkMode?: string;
8325
+ chunkSize?: number;
8318
8326
  /**
8319
8327
  * @remarks
8320
8328
  * The list of the primary key IDs of the documents.
@@ -8330,6 +8338,8 @@ export class SubmitIndexAddDocumentsJobRequest extends $dara.Model {
8330
8338
  * 79c0aly8zw
8331
8339
  */
8332
8340
  indexId?: string;
8341
+ overlapSize?: number;
8342
+ separator?: string;
8333
8343
  /**
8334
8344
  * @remarks
8335
8345
  * The data type of [Data Management](https://bailian.console.aliyun.com/#/data-center). For more information, see [Create a knowledge base](https://www.alibabacloud.com/help/en/model-studio/user-guide/rag-knowledge-base). Valid values:
@@ -8348,8 +8358,12 @@ export class SubmitIndexAddDocumentsJobRequest extends $dara.Model {
8348
8358
  static names(): { [key: string]: string } {
8349
8359
  return {
8350
8360
  categoryIds: 'CategoryIds',
8361
+ chunkMode: 'ChunkMode',
8362
+ chunkSize: 'ChunkSize',
8351
8363
  documentIds: 'DocumentIds',
8352
8364
  indexId: 'IndexId',
8365
+ overlapSize: 'OverlapSize',
8366
+ separator: 'Separator',
8353
8367
  sourceType: 'SourceType',
8354
8368
  };
8355
8369
  }
@@ -8357,8 +8371,12 @@ export class SubmitIndexAddDocumentsJobRequest extends $dara.Model {
8357
8371
  static types(): { [key: string]: any } {
8358
8372
  return {
8359
8373
  categoryIds: { 'type': 'array', 'itemType': 'string' },
8374
+ chunkMode: 'string',
8375
+ chunkSize: 'number',
8360
8376
  documentIds: { 'type': 'array', 'itemType': 'string' },
8361
8377
  indexId: 'string',
8378
+ overlapSize: 'number',
8379
+ separator: 'string',
8362
8380
  sourceType: 'string',
8363
8381
  };
8364
8382
  }
@@ -8384,6 +8402,8 @@ export class SubmitIndexAddDocumentsJobShrinkRequest extends $dara.Model {
8384
8402
  * The list of primary key IDs of the category.
8385
8403
  */
8386
8404
  categoryIdsShrink?: string;
8405
+ chunkMode?: string;
8406
+ chunkSize?: number;
8387
8407
  /**
8388
8408
  * @remarks
8389
8409
  * The list of the primary key IDs of the documents.
@@ -8399,6 +8419,8 @@ export class SubmitIndexAddDocumentsJobShrinkRequest extends $dara.Model {
8399
8419
  * 79c0aly8zw
8400
8420
  */
8401
8421
  indexId?: string;
8422
+ overlapSize?: number;
8423
+ separator?: string;
8402
8424
  /**
8403
8425
  * @remarks
8404
8426
  * The data type of [Data Management](https://bailian.console.aliyun.com/#/data-center). For more information, see [Create a knowledge base](https://www.alibabacloud.com/help/en/model-studio/user-guide/rag-knowledge-base). Valid values:
@@ -8417,8 +8439,12 @@ export class SubmitIndexAddDocumentsJobShrinkRequest extends $dara.Model {
8417
8439
  static names(): { [key: string]: string } {
8418
8440
  return {
8419
8441
  categoryIdsShrink: 'CategoryIds',
8442
+ chunkMode: 'ChunkMode',
8443
+ chunkSize: 'ChunkSize',
8420
8444
  documentIdsShrink: 'DocumentIds',
8421
8445
  indexId: 'IndexId',
8446
+ overlapSize: 'OverlapSize',
8447
+ separator: 'Separator',
8422
8448
  sourceType: 'SourceType',
8423
8449
  };
8424
8450
  }
@@ -8426,8 +8452,12 @@ export class SubmitIndexAddDocumentsJobShrinkRequest extends $dara.Model {
8426
8452
  static types(): { [key: string]: any } {
8427
8453
  return {
8428
8454
  categoryIdsShrink: 'string',
8455
+ chunkMode: 'string',
8456
+ chunkSize: 'number',
8429
8457
  documentIdsShrink: 'string',
8430
8458
  indexId: 'string',
8459
+ overlapSize: 'number',
8460
+ separator: 'string',
8431
8461
  sourceType: 'string',
8432
8462
  };
8433
8463
  }
@@ -9497,12 +9527,7 @@ export default class Client extends OpenApi {
9497
9527
  reqBodyType: "formData",
9498
9528
  bodyType: "json",
9499
9529
  });
9500
- if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
9501
- return $dara.cast<AddCategoryResponse>(await this.callApi(params, req, runtime), new AddCategoryResponse({}));
9502
- } else {
9503
- return $dara.cast<AddCategoryResponse>(await this.execute(params, req, runtime), new AddCategoryResponse({}));
9504
- }
9505
-
9530
+ return $dara.cast<AddCategoryResponse>(await this.callApi(params, req, runtime), new AddCategoryResponse({}));
9506
9531
  }
9507
9532
 
9508
9533
  /**
@@ -9576,12 +9601,7 @@ export default class Client extends OpenApi {
9576
9601
  reqBodyType: "formData",
9577
9602
  bodyType: "json",
9578
9603
  });
9579
- if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
9580
- return $dara.cast<AddFileResponse>(await this.callApi(params, req, runtime), new AddFileResponse({}));
9581
- } else {
9582
- return $dara.cast<AddFileResponse>(await this.execute(params, req, runtime), new AddFileResponse({}));
9583
- }
9584
-
9604
+ return $dara.cast<AddFileResponse>(await this.callApi(params, req, runtime), new AddFileResponse({}));
9585
9605
  }
9586
9606
 
9587
9607
  /**
@@ -9655,12 +9675,7 @@ export default class Client extends OpenApi {
9655
9675
  reqBodyType: "formData",
9656
9676
  bodyType: "json",
9657
9677
  });
9658
- if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
9659
- return $dara.cast<ApplyFileUploadLeaseResponse>(await this.callApi(params, req, runtime), new ApplyFileUploadLeaseResponse({}));
9660
- } else {
9661
- return $dara.cast<ApplyFileUploadLeaseResponse>(await this.execute(params, req, runtime), new ApplyFileUploadLeaseResponse({}));
9662
- }
9663
-
9678
+ return $dara.cast<ApplyFileUploadLeaseResponse>(await this.callApi(params, req, runtime), new ApplyFileUploadLeaseResponse({}));
9664
9679
  }
9665
9680
 
9666
9681
  /**
@@ -9737,12 +9752,7 @@ export default class Client extends OpenApi {
9737
9752
  reqBodyType: "formData",
9738
9753
  bodyType: "json",
9739
9754
  });
9740
- if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
9741
- return $dara.cast<CreateAndPulishAgentResponse>(await this.callApi(params, req, runtime), new CreateAndPulishAgentResponse({}));
9742
- } else {
9743
- return $dara.cast<CreateAndPulishAgentResponse>(await this.execute(params, req, runtime), new CreateAndPulishAgentResponse({}));
9744
- }
9745
-
9755
+ return $dara.cast<CreateAndPulishAgentResponse>(await this.callApi(params, req, runtime), new CreateAndPulishAgentResponse({}));
9746
9756
  }
9747
9757
 
9748
9758
  /**
@@ -9863,6 +9873,10 @@ export default class Client extends OpenApi {
9863
9873
  query["StructureType"] = request.structureType;
9864
9874
  }
9865
9875
 
9876
+ if (!$dara.isNull(request.chunkMode)) {
9877
+ query["chunkMode"] = request.chunkMode;
9878
+ }
9879
+
9866
9880
  if (!$dara.isNull(request.enableHeaders)) {
9867
9881
  query["enableHeaders"] = request.enableHeaders;
9868
9882
  }
@@ -9886,12 +9900,7 @@ export default class Client extends OpenApi {
9886
9900
  reqBodyType: "json",
9887
9901
  bodyType: "json",
9888
9902
  });
9889
- if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
9890
- return $dara.cast<CreateIndexResponse>(await this.callApi(params, req, runtime), new CreateIndexResponse({}));
9891
- } else {
9892
- return $dara.cast<CreateIndexResponse>(await this.execute(params, req, runtime), new CreateIndexResponse({}));
9893
- }
9894
-
9903
+ return $dara.cast<CreateIndexResponse>(await this.callApi(params, req, runtime), new CreateIndexResponse({}));
9895
9904
  }
9896
9905
 
9897
9906
  /**
@@ -9941,12 +9950,7 @@ export default class Client extends OpenApi {
9941
9950
  reqBodyType: "json",
9942
9951
  bodyType: "json",
9943
9952
  });
9944
- if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
9945
- return $dara.cast<CreateMemoryResponse>(await this.callApi(params, req, runtime), new CreateMemoryResponse({}));
9946
- } else {
9947
- return $dara.cast<CreateMemoryResponse>(await this.execute(params, req, runtime), new CreateMemoryResponse({}));
9948
- }
9949
-
9953
+ return $dara.cast<CreateMemoryResponse>(await this.callApi(params, req, runtime), new CreateMemoryResponse({}));
9950
9954
  }
9951
9955
 
9952
9956
  /**
@@ -9991,12 +9995,7 @@ export default class Client extends OpenApi {
9991
9995
  reqBodyType: "json",
9992
9996
  bodyType: "json",
9993
9997
  });
9994
- if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
9995
- return $dara.cast<CreateMemoryNodeResponse>(await this.callApi(params, req, runtime), new CreateMemoryNodeResponse({}));
9996
- } else {
9997
- return $dara.cast<CreateMemoryNodeResponse>(await this.execute(params, req, runtime), new CreateMemoryNodeResponse({}));
9998
- }
9999
-
9998
+ return $dara.cast<CreateMemoryNodeResponse>(await this.callApi(params, req, runtime), new CreateMemoryNodeResponse({}));
10000
9999
  }
10001
10000
 
10002
10001
  /**
@@ -10045,12 +10044,7 @@ export default class Client extends OpenApi {
10045
10044
  reqBodyType: "json",
10046
10045
  bodyType: "json",
10047
10046
  });
10048
- if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
10049
- return $dara.cast<CreatePromptTemplateResponse>(await this.callApi(params, req, runtime), new CreatePromptTemplateResponse({}));
10050
- } else {
10051
- return $dara.cast<CreatePromptTemplateResponse>(await this.execute(params, req, runtime), new CreatePromptTemplateResponse({}));
10052
- }
10053
-
10047
+ return $dara.cast<CreatePromptTemplateResponse>(await this.callApi(params, req, runtime), new CreatePromptTemplateResponse({}));
10054
10048
  }
10055
10049
 
10056
10050
  /**
@@ -10087,12 +10081,7 @@ export default class Client extends OpenApi {
10087
10081
  reqBodyType: "json",
10088
10082
  bodyType: "json",
10089
10083
  });
10090
- if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
10091
- return $dara.cast<DeleteAgentResponse>(await this.callApi(params, req, runtime), new DeleteAgentResponse({}));
10092
- } else {
10093
- return $dara.cast<DeleteAgentResponse>(await this.execute(params, req, runtime), new DeleteAgentResponse({}));
10094
- }
10095
-
10084
+ return $dara.cast<DeleteAgentResponse>(await this.callApi(params, req, runtime), new DeleteAgentResponse({}));
10096
10085
  }
10097
10086
 
10098
10087
  /**
@@ -10127,12 +10116,7 @@ export default class Client extends OpenApi {
10127
10116
  reqBodyType: "json",
10128
10117
  bodyType: "json",
10129
10118
  });
10130
- if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
10131
- return $dara.cast<DeleteCategoryResponse>(await this.callApi(params, req, runtime), new DeleteCategoryResponse({}));
10132
- } else {
10133
- return $dara.cast<DeleteCategoryResponse>(await this.execute(params, req, runtime), new DeleteCategoryResponse({}));
10134
- }
10135
-
10119
+ return $dara.cast<DeleteCategoryResponse>(await this.callApi(params, req, runtime), new DeleteCategoryResponse({}));
10136
10120
  }
10137
10121
 
10138
10122
  /**
@@ -10167,12 +10151,7 @@ export default class Client extends OpenApi {
10167
10151
  reqBodyType: "json",
10168
10152
  bodyType: "json",
10169
10153
  });
10170
- if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
10171
- return $dara.cast<DeleteFileResponse>(await this.callApi(params, req, runtime), new DeleteFileResponse({}));
10172
- } else {
10173
- return $dara.cast<DeleteFileResponse>(await this.execute(params, req, runtime), new DeleteFileResponse({}));
10174
- }
10175
-
10154
+ return $dara.cast<DeleteFileResponse>(await this.callApi(params, req, runtime), new DeleteFileResponse({}));
10176
10155
  }
10177
10156
 
10178
10157
  /**
@@ -10222,12 +10201,7 @@ export default class Client extends OpenApi {
10222
10201
  reqBodyType: "json",
10223
10202
  bodyType: "json",
10224
10203
  });
10225
- if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
10226
- return $dara.cast<DeleteIndexResponse>(await this.callApi(params, req, runtime), new DeleteIndexResponse({}));
10227
- } else {
10228
- return $dara.cast<DeleteIndexResponse>(await this.execute(params, req, runtime), new DeleteIndexResponse({}));
10229
- }
10230
-
10204
+ return $dara.cast<DeleteIndexResponse>(await this.callApi(params, req, runtime), new DeleteIndexResponse({}));
10231
10205
  }
10232
10206
 
10233
10207
  /**
@@ -10296,12 +10270,7 @@ export default class Client extends OpenApi {
10296
10270
  reqBodyType: "json",
10297
10271
  bodyType: "json",
10298
10272
  });
10299
- if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
10300
- return $dara.cast<DeleteIndexDocumentResponse>(await this.callApi(params, req, runtime), new DeleteIndexDocumentResponse({}));
10301
- } else {
10302
- return $dara.cast<DeleteIndexDocumentResponse>(await this.execute(params, req, runtime), new DeleteIndexDocumentResponse({}));
10303
- }
10304
-
10273
+ return $dara.cast<DeleteIndexDocumentResponse>(await this.callApi(params, req, runtime), new DeleteIndexDocumentResponse({}));
10305
10274
  }
10306
10275
 
10307
10276
  /**
@@ -10345,12 +10314,7 @@ export default class Client extends OpenApi {
10345
10314
  reqBodyType: "json",
10346
10315
  bodyType: "json",
10347
10316
  });
10348
- if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
10349
- return $dara.cast<DeleteMemoryResponse>(await this.callApi(params, req, runtime), new DeleteMemoryResponse({}));
10350
- } else {
10351
- return $dara.cast<DeleteMemoryResponse>(await this.execute(params, req, runtime), new DeleteMemoryResponse({}));
10352
- }
10353
-
10317
+ return $dara.cast<DeleteMemoryResponse>(await this.callApi(params, req, runtime), new DeleteMemoryResponse({}));
10354
10318
  }
10355
10319
 
10356
10320
  /**
@@ -10385,12 +10349,7 @@ export default class Client extends OpenApi {
10385
10349
  reqBodyType: "json",
10386
10350
  bodyType: "json",
10387
10351
  });
10388
- if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
10389
- return $dara.cast<DeleteMemoryNodeResponse>(await this.callApi(params, req, runtime), new DeleteMemoryNodeResponse({}));
10390
- } else {
10391
- return $dara.cast<DeleteMemoryNodeResponse>(await this.execute(params, req, runtime), new DeleteMemoryNodeResponse({}));
10392
- }
10393
-
10352
+ return $dara.cast<DeleteMemoryNodeResponse>(await this.callApi(params, req, runtime), new DeleteMemoryNodeResponse({}));
10394
10353
  }
10395
10354
 
10396
10355
  /**
@@ -10425,12 +10384,7 @@ export default class Client extends OpenApi {
10425
10384
  reqBodyType: "json",
10426
10385
  bodyType: "json",
10427
10386
  });
10428
- if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
10429
- return $dara.cast<DeletePromptTemplateResponse>(await this.callApi(params, req, runtime), new DeletePromptTemplateResponse({}));
10430
- } else {
10431
- return $dara.cast<DeletePromptTemplateResponse>(await this.execute(params, req, runtime), new DeletePromptTemplateResponse({}));
10432
- }
10433
-
10387
+ return $dara.cast<DeletePromptTemplateResponse>(await this.callApi(params, req, runtime), new DeletePromptTemplateResponse({}));
10434
10388
  }
10435
10389
 
10436
10390
  /**
@@ -10471,12 +10425,7 @@ export default class Client extends OpenApi {
10471
10425
  reqBodyType: "json",
10472
10426
  bodyType: "json",
10473
10427
  });
10474
- if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
10475
- return $dara.cast<DescribeFileResponse>(await this.callApi(params, req, runtime), new DescribeFileResponse({}));
10476
- } else {
10477
- return $dara.cast<DescribeFileResponse>(await this.execute(params, req, runtime), new DescribeFileResponse({}));
10478
- }
10479
-
10428
+ return $dara.cast<DescribeFileResponse>(await this.callApi(params, req, runtime), new DescribeFileResponse({}));
10480
10429
  }
10481
10430
 
10482
10431
  /**
@@ -10542,12 +10491,7 @@ export default class Client extends OpenApi {
10542
10491
  reqBodyType: "json",
10543
10492
  bodyType: "json",
10544
10493
  });
10545
- if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
10546
- return $dara.cast<GetIndexJobStatusResponse>(await this.callApi(params, req, runtime), new GetIndexJobStatusResponse({}));
10547
- } else {
10548
- return $dara.cast<GetIndexJobStatusResponse>(await this.execute(params, req, runtime), new GetIndexJobStatusResponse({}));
10549
- }
10550
-
10494
+ return $dara.cast<GetIndexJobStatusResponse>(await this.callApi(params, req, runtime), new GetIndexJobStatusResponse({}));
10551
10495
  }
10552
10496
 
10553
10497
  /**
@@ -10589,12 +10533,7 @@ export default class Client extends OpenApi {
10589
10533
  reqBodyType: "json",
10590
10534
  bodyType: "json",
10591
10535
  });
10592
- if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
10593
- return $dara.cast<GetMemoryResponse>(await this.callApi(params, req, runtime), new GetMemoryResponse({}));
10594
- } else {
10595
- return $dara.cast<GetMemoryResponse>(await this.execute(params, req, runtime), new GetMemoryResponse({}));
10596
- }
10597
-
10536
+ return $dara.cast<GetMemoryResponse>(await this.callApi(params, req, runtime), new GetMemoryResponse({}));
10598
10537
  }
10599
10538
 
10600
10539
  /**
@@ -10629,12 +10568,7 @@ export default class Client extends OpenApi {
10629
10568
  reqBodyType: "json",
10630
10569
  bodyType: "json",
10631
10570
  });
10632
- if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
10633
- return $dara.cast<GetMemoryNodeResponse>(await this.callApi(params, req, runtime), new GetMemoryNodeResponse({}));
10634
- } else {
10635
- return $dara.cast<GetMemoryNodeResponse>(await this.execute(params, req, runtime), new GetMemoryNodeResponse({}));
10636
- }
10637
-
10571
+ return $dara.cast<GetMemoryNodeResponse>(await this.callApi(params, req, runtime), new GetMemoryNodeResponse({}));
10638
10572
  }
10639
10573
 
10640
10574
  /**
@@ -10669,12 +10603,7 @@ export default class Client extends OpenApi {
10669
10603
  reqBodyType: "json",
10670
10604
  bodyType: "json",
10671
10605
  });
10672
- if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
10673
- return $dara.cast<GetPromptTemplateResponse>(await this.callApi(params, req, runtime), new GetPromptTemplateResponse({}));
10674
- } else {
10675
- return $dara.cast<GetPromptTemplateResponse>(await this.execute(params, req, runtime), new GetPromptTemplateResponse({}));
10676
- }
10677
-
10606
+ return $dara.cast<GetPromptTemplateResponse>(await this.callApi(params, req, runtime), new GetPromptTemplateResponse({}));
10678
10607
  }
10679
10608
 
10680
10609
  /**
@@ -10709,12 +10638,7 @@ export default class Client extends OpenApi {
10709
10638
  reqBodyType: "json",
10710
10639
  bodyType: "json",
10711
10640
  });
10712
- if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
10713
- return $dara.cast<GetPublishedAgentResponse>(await this.callApi(params, req, runtime), new GetPublishedAgentResponse({}));
10714
- } else {
10715
- return $dara.cast<GetPublishedAgentResponse>(await this.execute(params, req, runtime), new GetPublishedAgentResponse({}));
10716
- }
10717
-
10641
+ return $dara.cast<GetPublishedAgentResponse>(await this.callApi(params, req, runtime), new GetPublishedAgentResponse({}));
10718
10642
  }
10719
10643
 
10720
10644
  /**
@@ -10769,12 +10693,7 @@ export default class Client extends OpenApi {
10769
10693
  reqBodyType: "formData",
10770
10694
  bodyType: "json",
10771
10695
  });
10772
- if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
10773
- return $dara.cast<ListCategoryResponse>(await this.callApi(params, req, runtime), new ListCategoryResponse({}));
10774
- } else {
10775
- return $dara.cast<ListCategoryResponse>(await this.execute(params, req, runtime), new ListCategoryResponse({}));
10776
- }
10777
-
10696
+ return $dara.cast<ListCategoryResponse>(await this.callApi(params, req, runtime), new ListCategoryResponse({}));
10778
10697
  }
10779
10698
 
10780
10699
  /**
@@ -10843,12 +10762,7 @@ export default class Client extends OpenApi {
10843
10762
  reqBodyType: "json",
10844
10763
  bodyType: "json",
10845
10764
  });
10846
- if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
10847
- return $dara.cast<ListChunksResponse>(await this.callApi(params, req, runtime), new ListChunksResponse({}));
10848
- } else {
10849
- return $dara.cast<ListChunksResponse>(await this.execute(params, req, runtime), new ListChunksResponse({}));
10850
- }
10851
-
10765
+ return $dara.cast<ListChunksResponse>(await this.callApi(params, req, runtime), new ListChunksResponse({}));
10852
10766
  }
10853
10767
 
10854
10768
  /**
@@ -10909,12 +10823,7 @@ export default class Client extends OpenApi {
10909
10823
  reqBodyType: "json",
10910
10824
  bodyType: "json",
10911
10825
  });
10912
- if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
10913
- return $dara.cast<ListFileResponse>(await this.callApi(params, req, runtime), new ListFileResponse({}));
10914
- } else {
10915
- return $dara.cast<ListFileResponse>(await this.execute(params, req, runtime), new ListFileResponse({}));
10916
- }
10917
-
10826
+ return $dara.cast<ListFileResponse>(await this.callApi(params, req, runtime), new ListFileResponse({}));
10918
10827
  }
10919
10828
 
10920
10829
  /**
@@ -10979,12 +10888,7 @@ export default class Client extends OpenApi {
10979
10888
  reqBodyType: "json",
10980
10889
  bodyType: "json",
10981
10890
  });
10982
- if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
10983
- return $dara.cast<ListIndexDocumentsResponse>(await this.callApi(params, req, runtime), new ListIndexDocumentsResponse({}));
10984
- } else {
10985
- return $dara.cast<ListIndexDocumentsResponse>(await this.execute(params, req, runtime), new ListIndexDocumentsResponse({}));
10986
- }
10987
-
10891
+ return $dara.cast<ListIndexDocumentsResponse>(await this.callApi(params, req, runtime), new ListIndexDocumentsResponse({}));
10988
10892
  }
10989
10893
 
10990
10894
  /**
@@ -11044,12 +10948,7 @@ export default class Client extends OpenApi {
11044
10948
  reqBodyType: "json",
11045
10949
  bodyType: "json",
11046
10950
  });
11047
- if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
11048
- return $dara.cast<ListIndicesResponse>(await this.callApi(params, req, runtime), new ListIndicesResponse({}));
11049
- } else {
11050
- return $dara.cast<ListIndicesResponse>(await this.execute(params, req, runtime), new ListIndicesResponse({}));
11051
- }
11052
-
10951
+ return $dara.cast<ListIndicesResponse>(await this.callApi(params, req, runtime), new ListIndicesResponse({}));
11053
10952
  }
11054
10953
 
11055
10954
  /**
@@ -11101,12 +11000,7 @@ export default class Client extends OpenApi {
11101
11000
  reqBodyType: "json",
11102
11001
  bodyType: "json",
11103
11002
  });
11104
- if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
11105
- return $dara.cast<ListMemoriesResponse>(await this.callApi(params, req, runtime), new ListMemoriesResponse({}));
11106
- } else {
11107
- return $dara.cast<ListMemoriesResponse>(await this.execute(params, req, runtime), new ListMemoriesResponse({}));
11108
- }
11109
-
11003
+ return $dara.cast<ListMemoriesResponse>(await this.callApi(params, req, runtime), new ListMemoriesResponse({}));
11110
11004
  }
11111
11005
 
11112
11006
  /**
@@ -11155,12 +11049,7 @@ export default class Client extends OpenApi {
11155
11049
  reqBodyType: "json",
11156
11050
  bodyType: "json",
11157
11051
  });
11158
- if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
11159
- return $dara.cast<ListMemoryNodesResponse>(await this.callApi(params, req, runtime), new ListMemoryNodesResponse({}));
11160
- } else {
11161
- return $dara.cast<ListMemoryNodesResponse>(await this.execute(params, req, runtime), new ListMemoryNodesResponse({}));
11162
- }
11163
-
11052
+ return $dara.cast<ListMemoryNodesResponse>(await this.callApi(params, req, runtime), new ListMemoryNodesResponse({}));
11164
11053
  }
11165
11054
 
11166
11055
  /**
@@ -11217,12 +11106,7 @@ export default class Client extends OpenApi {
11217
11106
  reqBodyType: "json",
11218
11107
  bodyType: "json",
11219
11108
  });
11220
- if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
11221
- return $dara.cast<ListPromptTemplatesResponse>(await this.callApi(params, req, runtime), new ListPromptTemplatesResponse({}));
11222
- } else {
11223
- return $dara.cast<ListPromptTemplatesResponse>(await this.execute(params, req, runtime), new ListPromptTemplatesResponse({}));
11224
- }
11225
-
11109
+ return $dara.cast<ListPromptTemplatesResponse>(await this.callApi(params, req, runtime), new ListPromptTemplatesResponse({}));
11226
11110
  }
11227
11111
 
11228
11112
  /**
@@ -11271,12 +11155,7 @@ export default class Client extends OpenApi {
11271
11155
  reqBodyType: "json",
11272
11156
  bodyType: "json",
11273
11157
  });
11274
- if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
11275
- return $dara.cast<ListPublishedAgentResponse>(await this.callApi(params, req, runtime), new ListPublishedAgentResponse({}));
11276
- } else {
11277
- return $dara.cast<ListPublishedAgentResponse>(await this.execute(params, req, runtime), new ListPublishedAgentResponse({}));
11278
- }
11279
-
11158
+ return $dara.cast<ListPublishedAgentResponse>(await this.callApi(params, req, runtime), new ListPublishedAgentResponse({}));
11280
11159
  }
11281
11160
 
11282
11161
  /**
@@ -11400,12 +11279,7 @@ export default class Client extends OpenApi {
11400
11279
  reqBodyType: "json",
11401
11280
  bodyType: "json",
11402
11281
  });
11403
- if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
11404
- return $dara.cast<RetrieveResponse>(await this.callApi(params, req, runtime), new RetrieveResponse({}));
11405
- } else {
11406
- return $dara.cast<RetrieveResponse>(await this.execute(params, req, runtime), new RetrieveResponse({}));
11407
- }
11408
-
11282
+ return $dara.cast<RetrieveResponse>(await this.callApi(params, req, runtime), new RetrieveResponse({}));
11409
11283
  }
11410
11284
 
11411
11285
  /**
@@ -11456,6 +11330,14 @@ export default class Client extends OpenApi {
11456
11330
  query["CategoryIds"] = request.categoryIdsShrink;
11457
11331
  }
11458
11332
 
11333
+ if (!$dara.isNull(request.chunkMode)) {
11334
+ query["ChunkMode"] = request.chunkMode;
11335
+ }
11336
+
11337
+ if (!$dara.isNull(request.chunkSize)) {
11338
+ query["ChunkSize"] = request.chunkSize;
11339
+ }
11340
+
11459
11341
  if (!$dara.isNull(request.documentIdsShrink)) {
11460
11342
  query["DocumentIds"] = request.documentIdsShrink;
11461
11343
  }
@@ -11464,6 +11346,14 @@ export default class Client extends OpenApi {
11464
11346
  query["IndexId"] = request.indexId;
11465
11347
  }
11466
11348
 
11349
+ if (!$dara.isNull(request.overlapSize)) {
11350
+ query["OverlapSize"] = request.overlapSize;
11351
+ }
11352
+
11353
+ if (!$dara.isNull(request.separator)) {
11354
+ query["Separator"] = request.separator;
11355
+ }
11356
+
11467
11357
  if (!$dara.isNull(request.sourceType)) {
11468
11358
  query["SourceType"] = request.sourceType;
11469
11359
  }
@@ -11483,12 +11373,7 @@ export default class Client extends OpenApi {
11483
11373
  reqBodyType: "json",
11484
11374
  bodyType: "json",
11485
11375
  });
11486
- if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
11487
- return $dara.cast<SubmitIndexAddDocumentsJobResponse>(await this.callApi(params, req, runtime), new SubmitIndexAddDocumentsJobResponse({}));
11488
- } else {
11489
- return $dara.cast<SubmitIndexAddDocumentsJobResponse>(await this.execute(params, req, runtime), new SubmitIndexAddDocumentsJobResponse({}));
11490
- }
11491
-
11376
+ return $dara.cast<SubmitIndexAddDocumentsJobResponse>(await this.callApi(params, req, runtime), new SubmitIndexAddDocumentsJobResponse({}));
11492
11377
  }
11493
11378
 
11494
11379
  /**
@@ -11545,12 +11430,7 @@ export default class Client extends OpenApi {
11545
11430
  reqBodyType: "json",
11546
11431
  bodyType: "json",
11547
11432
  });
11548
- if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
11549
- return $dara.cast<SubmitIndexJobResponse>(await this.callApi(params, req, runtime), new SubmitIndexJobResponse({}));
11550
- } else {
11551
- return $dara.cast<SubmitIndexJobResponse>(await this.execute(params, req, runtime), new SubmitIndexJobResponse({}));
11552
- }
11553
-
11433
+ return $dara.cast<SubmitIndexJobResponse>(await this.callApi(params, req, runtime), new SubmitIndexJobResponse({}));
11554
11434
  }
11555
11435
 
11556
11436
  /**
@@ -11627,12 +11507,7 @@ export default class Client extends OpenApi {
11627
11507
  reqBodyType: "formData",
11628
11508
  bodyType: "json",
11629
11509
  });
11630
- if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
11631
- return $dara.cast<UpdateAndPublishAgentResponse>(await this.callApi(params, req, runtime), new UpdateAndPublishAgentResponse({}));
11632
- } else {
11633
- return $dara.cast<UpdateAndPublishAgentResponse>(await this.execute(params, req, runtime), new UpdateAndPublishAgentResponse({}));
11634
- }
11635
-
11510
+ return $dara.cast<UpdateAndPublishAgentResponse>(await this.callApi(params, req, runtime), new UpdateAndPublishAgentResponse({}));
11636
11511
  }
11637
11512
 
11638
11513
  /**
@@ -11703,12 +11578,7 @@ export default class Client extends OpenApi {
11703
11578
  reqBodyType: "formData",
11704
11579
  bodyType: "json",
11705
11580
  });
11706
- if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
11707
- return $dara.cast<UpdateAndPublishAgentSelectiveResponse>(await this.callApi(params, req, runtime), new UpdateAndPublishAgentSelectiveResponse({}));
11708
- } else {
11709
- return $dara.cast<UpdateAndPublishAgentSelectiveResponse>(await this.execute(params, req, runtime), new UpdateAndPublishAgentSelectiveResponse({}));
11710
- }
11711
-
11581
+ return $dara.cast<UpdateAndPublishAgentSelectiveResponse>(await this.callApi(params, req, runtime), new UpdateAndPublishAgentSelectiveResponse({}));
11712
11582
  }
11713
11583
 
11714
11584
  /**
@@ -11759,12 +11629,7 @@ export default class Client extends OpenApi {
11759
11629
  reqBodyType: "formData",
11760
11630
  bodyType: "json",
11761
11631
  });
11762
- if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
11763
- return $dara.cast<UpdateFileTagResponse>(await this.callApi(params, req, runtime), new UpdateFileTagResponse({}));
11764
- } else {
11765
- return $dara.cast<UpdateFileTagResponse>(await this.execute(params, req, runtime), new UpdateFileTagResponse({}));
11766
- }
11767
-
11632
+ return $dara.cast<UpdateFileTagResponse>(await this.callApi(params, req, runtime), new UpdateFileTagResponse({}));
11768
11633
  }
11769
11634
 
11770
11635
  /**
@@ -11809,12 +11674,7 @@ export default class Client extends OpenApi {
11809
11674
  reqBodyType: "json",
11810
11675
  bodyType: "json",
11811
11676
  });
11812
- if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
11813
- return $dara.cast<UpdateMemoryResponse>(await this.callApi(params, req, runtime), new UpdateMemoryResponse({}));
11814
- } else {
11815
- return $dara.cast<UpdateMemoryResponse>(await this.execute(params, req, runtime), new UpdateMemoryResponse({}));
11816
- }
11817
-
11677
+ return $dara.cast<UpdateMemoryResponse>(await this.callApi(params, req, runtime), new UpdateMemoryResponse({}));
11818
11678
  }
11819
11679
 
11820
11680
  /**
@@ -11859,12 +11719,7 @@ export default class Client extends OpenApi {
11859
11719
  reqBodyType: "json",
11860
11720
  bodyType: "json",
11861
11721
  });
11862
- if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
11863
- return $dara.cast<UpdateMemoryNodeResponse>(await this.callApi(params, req, runtime), new UpdateMemoryNodeResponse({}));
11864
- } else {
11865
- return $dara.cast<UpdateMemoryNodeResponse>(await this.execute(params, req, runtime), new UpdateMemoryNodeResponse({}));
11866
- }
11867
-
11722
+ return $dara.cast<UpdateMemoryNodeResponse>(await this.callApi(params, req, runtime), new UpdateMemoryNodeResponse({}));
11868
11723
  }
11869
11724
 
11870
11725
  /**
@@ -11913,12 +11768,7 @@ export default class Client extends OpenApi {
11913
11768
  reqBodyType: "json",
11914
11769
  bodyType: "json",
11915
11770
  });
11916
- if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
11917
- return $dara.cast<UpdatePromptTemplateResponse>(await this.callApi(params, req, runtime), new UpdatePromptTemplateResponse({}));
11918
- } else {
11919
- return $dara.cast<UpdatePromptTemplateResponse>(await this.execute(params, req, runtime), new UpdatePromptTemplateResponse({}));
11920
- }
11921
-
11771
+ return $dara.cast<UpdatePromptTemplateResponse>(await this.callApi(params, req, runtime), new UpdatePromptTemplateResponse({}));
11922
11772
  }
11923
11773
 
11924
11774
  /**