@alicloud/bailian20231229 1.2.0 → 1.3.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/dist/client.d.ts +453 -0
- package/dist/client.js +823 -52
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +978 -35
package/dist/client.js
CHANGED
|
@@ -26,7 +26,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
26
26
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.
|
|
29
|
+
exports.GetIndexJobStatusResponseBodyDataDocuments = exports.DescribeFileResponseBodyData = exports.DeleteIndexDocumentResponseBodyData = exports.CreateIndexResponseBodyData = exports.CreateIndexRequestColumns = exports.ApplyFileUploadLeaseResponseBodyData = exports.ApplyFileUploadLeaseResponseBodyDataParam = exports.AddFileResponseBodyData = exports.SubmitIndexJobResponse = exports.SubmitIndexJobResponseBody = exports.SubmitIndexJobRequest = exports.SubmitIndexAddDocumentsJobResponse = exports.SubmitIndexAddDocumentsJobResponseBody = exports.SubmitIndexAddDocumentsJobShrinkRequest = exports.SubmitIndexAddDocumentsJobRequest = exports.RetrieveResponse = exports.RetrieveResponseBody = exports.RetrieveShrinkRequest = exports.RetrieveRequest = exports.ListIndicesResponse = exports.ListIndicesResponseBody = exports.ListIndicesRequest = exports.ListIndexDocumentsResponse = exports.ListIndexDocumentsResponseBody = exports.ListIndexDocumentsRequest = exports.ListChunksResponse = exports.ListChunksResponseBody = exports.ListChunksRequest = exports.GetIndexJobStatusResponse = exports.GetIndexJobStatusResponseBody = exports.GetIndexJobStatusRequest = exports.DescribeFileResponse = exports.DescribeFileResponseBody = exports.DeleteIndexDocumentResponse = exports.DeleteIndexDocumentResponseBody = exports.DeleteIndexDocumentShrinkRequest = exports.DeleteIndexDocumentRequest = exports.DeleteIndexResponse = exports.DeleteIndexResponseBody = exports.DeleteIndexRequest = exports.CreateIndexResponse = exports.CreateIndexResponseBody = exports.CreateIndexShrinkRequest = exports.CreateIndexRequest = exports.ApplyFileUploadLeaseResponse = exports.ApplyFileUploadLeaseResponseBody = exports.ApplyFileUploadLeaseRequest = exports.AddFileResponse = exports.AddFileResponseBody = exports.AddFileRequest = void 0;
|
|
30
|
+
exports.SubmitIndexJobResponseBodyData = exports.SubmitIndexAddDocumentsJobResponseBodyData = exports.RetrieveResponseBodyData = exports.RetrieveResponseBodyDataNodes = exports.RetrieveRequestRewrite = exports.RetrieveRequestRerank = exports.ListIndicesResponseBodyData = exports.ListIndicesResponseBodyDataIndices = exports.ListIndexDocumentsResponseBodyData = exports.ListIndexDocumentsResponseBodyDataDocuments = exports.ListChunksResponseBodyData = exports.ListChunksResponseBodyDataNodes = exports.GetIndexJobStatusResponseBodyData = void 0;
|
|
30
31
|
// This file is auto-generated, don't edit it
|
|
31
32
|
/**
|
|
32
33
|
*
|
|
@@ -306,6 +307,148 @@ class CreateIndexResponse extends $tea.Model {
|
|
|
306
307
|
}
|
|
307
308
|
}
|
|
308
309
|
exports.CreateIndexResponse = CreateIndexResponse;
|
|
310
|
+
class DeleteIndexRequest extends $tea.Model {
|
|
311
|
+
static names() {
|
|
312
|
+
return {
|
|
313
|
+
indexId: 'IndexId',
|
|
314
|
+
};
|
|
315
|
+
}
|
|
316
|
+
static types() {
|
|
317
|
+
return {
|
|
318
|
+
indexId: 'string',
|
|
319
|
+
};
|
|
320
|
+
}
|
|
321
|
+
constructor(map) {
|
|
322
|
+
super(map);
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
exports.DeleteIndexRequest = DeleteIndexRequest;
|
|
326
|
+
class DeleteIndexResponseBody extends $tea.Model {
|
|
327
|
+
static names() {
|
|
328
|
+
return {
|
|
329
|
+
code: 'Code',
|
|
330
|
+
message: 'Message',
|
|
331
|
+
requestId: 'RequestId',
|
|
332
|
+
status: 'Status',
|
|
333
|
+
success: 'Success',
|
|
334
|
+
};
|
|
335
|
+
}
|
|
336
|
+
static types() {
|
|
337
|
+
return {
|
|
338
|
+
code: 'string',
|
|
339
|
+
message: 'string',
|
|
340
|
+
requestId: 'string',
|
|
341
|
+
status: 'string',
|
|
342
|
+
success: 'boolean',
|
|
343
|
+
};
|
|
344
|
+
}
|
|
345
|
+
constructor(map) {
|
|
346
|
+
super(map);
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
exports.DeleteIndexResponseBody = DeleteIndexResponseBody;
|
|
350
|
+
class DeleteIndexResponse extends $tea.Model {
|
|
351
|
+
static names() {
|
|
352
|
+
return {
|
|
353
|
+
headers: 'headers',
|
|
354
|
+
statusCode: 'statusCode',
|
|
355
|
+
body: 'body',
|
|
356
|
+
};
|
|
357
|
+
}
|
|
358
|
+
static types() {
|
|
359
|
+
return {
|
|
360
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
361
|
+
statusCode: 'number',
|
|
362
|
+
body: DeleteIndexResponseBody,
|
|
363
|
+
};
|
|
364
|
+
}
|
|
365
|
+
constructor(map) {
|
|
366
|
+
super(map);
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
exports.DeleteIndexResponse = DeleteIndexResponse;
|
|
370
|
+
class DeleteIndexDocumentRequest extends $tea.Model {
|
|
371
|
+
static names() {
|
|
372
|
+
return {
|
|
373
|
+
documentIds: 'DocumentIds',
|
|
374
|
+
indexId: 'IndexId',
|
|
375
|
+
};
|
|
376
|
+
}
|
|
377
|
+
static types() {
|
|
378
|
+
return {
|
|
379
|
+
documentIds: { 'type': 'array', 'itemType': 'string' },
|
|
380
|
+
indexId: 'string',
|
|
381
|
+
};
|
|
382
|
+
}
|
|
383
|
+
constructor(map) {
|
|
384
|
+
super(map);
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
exports.DeleteIndexDocumentRequest = DeleteIndexDocumentRequest;
|
|
388
|
+
class DeleteIndexDocumentShrinkRequest extends $tea.Model {
|
|
389
|
+
static names() {
|
|
390
|
+
return {
|
|
391
|
+
documentIdsShrink: 'DocumentIds',
|
|
392
|
+
indexId: 'IndexId',
|
|
393
|
+
};
|
|
394
|
+
}
|
|
395
|
+
static types() {
|
|
396
|
+
return {
|
|
397
|
+
documentIdsShrink: 'string',
|
|
398
|
+
indexId: 'string',
|
|
399
|
+
};
|
|
400
|
+
}
|
|
401
|
+
constructor(map) {
|
|
402
|
+
super(map);
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
exports.DeleteIndexDocumentShrinkRequest = DeleteIndexDocumentShrinkRequest;
|
|
406
|
+
class DeleteIndexDocumentResponseBody extends $tea.Model {
|
|
407
|
+
static names() {
|
|
408
|
+
return {
|
|
409
|
+
code: 'Code',
|
|
410
|
+
data: 'Data',
|
|
411
|
+
message: 'Message',
|
|
412
|
+
requestId: 'RequestId',
|
|
413
|
+
status: 'Status',
|
|
414
|
+
success: 'Success',
|
|
415
|
+
};
|
|
416
|
+
}
|
|
417
|
+
static types() {
|
|
418
|
+
return {
|
|
419
|
+
code: 'string',
|
|
420
|
+
data: DeleteIndexDocumentResponseBodyData,
|
|
421
|
+
message: 'string',
|
|
422
|
+
requestId: 'string',
|
|
423
|
+
status: 'string',
|
|
424
|
+
success: 'boolean',
|
|
425
|
+
};
|
|
426
|
+
}
|
|
427
|
+
constructor(map) {
|
|
428
|
+
super(map);
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
exports.DeleteIndexDocumentResponseBody = DeleteIndexDocumentResponseBody;
|
|
432
|
+
class DeleteIndexDocumentResponse extends $tea.Model {
|
|
433
|
+
static names() {
|
|
434
|
+
return {
|
|
435
|
+
headers: 'headers',
|
|
436
|
+
statusCode: 'statusCode',
|
|
437
|
+
body: 'body',
|
|
438
|
+
};
|
|
439
|
+
}
|
|
440
|
+
static types() {
|
|
441
|
+
return {
|
|
442
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
443
|
+
statusCode: 'number',
|
|
444
|
+
body: DeleteIndexDocumentResponseBody,
|
|
445
|
+
};
|
|
446
|
+
}
|
|
447
|
+
constructor(map) {
|
|
448
|
+
super(map);
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
exports.DeleteIndexDocumentResponse = DeleteIndexDocumentResponse;
|
|
309
452
|
class DescribeFileResponseBody extends $tea.Model {
|
|
310
453
|
static names() {
|
|
311
454
|
return {
|
|
@@ -416,6 +559,212 @@ class GetIndexJobStatusResponse extends $tea.Model {
|
|
|
416
559
|
}
|
|
417
560
|
}
|
|
418
561
|
exports.GetIndexJobStatusResponse = GetIndexJobStatusResponse;
|
|
562
|
+
class ListChunksRequest extends $tea.Model {
|
|
563
|
+
static names() {
|
|
564
|
+
return {
|
|
565
|
+
fields: 'Fields',
|
|
566
|
+
filed: 'Filed',
|
|
567
|
+
indexId: 'IndexId',
|
|
568
|
+
pageNum: 'PageNum',
|
|
569
|
+
pageSize: 'PageSize',
|
|
570
|
+
};
|
|
571
|
+
}
|
|
572
|
+
static types() {
|
|
573
|
+
return {
|
|
574
|
+
fields: { 'type': 'array', 'itemType': 'string' },
|
|
575
|
+
filed: 'string',
|
|
576
|
+
indexId: 'string',
|
|
577
|
+
pageNum: 'number',
|
|
578
|
+
pageSize: 'number',
|
|
579
|
+
};
|
|
580
|
+
}
|
|
581
|
+
constructor(map) {
|
|
582
|
+
super(map);
|
|
583
|
+
}
|
|
584
|
+
}
|
|
585
|
+
exports.ListChunksRequest = ListChunksRequest;
|
|
586
|
+
class ListChunksResponseBody extends $tea.Model {
|
|
587
|
+
static names() {
|
|
588
|
+
return {
|
|
589
|
+
code: 'Code',
|
|
590
|
+
data: 'Data',
|
|
591
|
+
message: 'Message',
|
|
592
|
+
requestId: 'RequestId',
|
|
593
|
+
status: 'Status',
|
|
594
|
+
success: 'Success',
|
|
595
|
+
};
|
|
596
|
+
}
|
|
597
|
+
static types() {
|
|
598
|
+
return {
|
|
599
|
+
code: 'string',
|
|
600
|
+
data: ListChunksResponseBodyData,
|
|
601
|
+
message: 'string',
|
|
602
|
+
requestId: 'string',
|
|
603
|
+
status: 'string',
|
|
604
|
+
success: 'boolean',
|
|
605
|
+
};
|
|
606
|
+
}
|
|
607
|
+
constructor(map) {
|
|
608
|
+
super(map);
|
|
609
|
+
}
|
|
610
|
+
}
|
|
611
|
+
exports.ListChunksResponseBody = ListChunksResponseBody;
|
|
612
|
+
class ListChunksResponse extends $tea.Model {
|
|
613
|
+
static names() {
|
|
614
|
+
return {
|
|
615
|
+
headers: 'headers',
|
|
616
|
+
statusCode: 'statusCode',
|
|
617
|
+
body: 'body',
|
|
618
|
+
};
|
|
619
|
+
}
|
|
620
|
+
static types() {
|
|
621
|
+
return {
|
|
622
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
623
|
+
statusCode: 'number',
|
|
624
|
+
body: ListChunksResponseBody,
|
|
625
|
+
};
|
|
626
|
+
}
|
|
627
|
+
constructor(map) {
|
|
628
|
+
super(map);
|
|
629
|
+
}
|
|
630
|
+
}
|
|
631
|
+
exports.ListChunksResponse = ListChunksResponse;
|
|
632
|
+
class ListIndexDocumentsRequest extends $tea.Model {
|
|
633
|
+
static names() {
|
|
634
|
+
return {
|
|
635
|
+
documentName: 'DocumentName',
|
|
636
|
+
documentStatus: 'DocumentStatus',
|
|
637
|
+
indexId: 'IndexId',
|
|
638
|
+
pageNumber: 'PageNumber',
|
|
639
|
+
pageSize: 'PageSize',
|
|
640
|
+
};
|
|
641
|
+
}
|
|
642
|
+
static types() {
|
|
643
|
+
return {
|
|
644
|
+
documentName: 'string',
|
|
645
|
+
documentStatus: 'string',
|
|
646
|
+
indexId: 'string',
|
|
647
|
+
pageNumber: 'number',
|
|
648
|
+
pageSize: 'number',
|
|
649
|
+
};
|
|
650
|
+
}
|
|
651
|
+
constructor(map) {
|
|
652
|
+
super(map);
|
|
653
|
+
}
|
|
654
|
+
}
|
|
655
|
+
exports.ListIndexDocumentsRequest = ListIndexDocumentsRequest;
|
|
656
|
+
class ListIndexDocumentsResponseBody extends $tea.Model {
|
|
657
|
+
static names() {
|
|
658
|
+
return {
|
|
659
|
+
code: 'Code',
|
|
660
|
+
data: 'Data',
|
|
661
|
+
message: 'Message',
|
|
662
|
+
requestId: 'RequestId',
|
|
663
|
+
status: 'Status',
|
|
664
|
+
success: 'Success',
|
|
665
|
+
};
|
|
666
|
+
}
|
|
667
|
+
static types() {
|
|
668
|
+
return {
|
|
669
|
+
code: 'string',
|
|
670
|
+
data: ListIndexDocumentsResponseBodyData,
|
|
671
|
+
message: 'string',
|
|
672
|
+
requestId: 'string',
|
|
673
|
+
status: 'string',
|
|
674
|
+
success: 'boolean',
|
|
675
|
+
};
|
|
676
|
+
}
|
|
677
|
+
constructor(map) {
|
|
678
|
+
super(map);
|
|
679
|
+
}
|
|
680
|
+
}
|
|
681
|
+
exports.ListIndexDocumentsResponseBody = ListIndexDocumentsResponseBody;
|
|
682
|
+
class ListIndexDocumentsResponse extends $tea.Model {
|
|
683
|
+
static names() {
|
|
684
|
+
return {
|
|
685
|
+
headers: 'headers',
|
|
686
|
+
statusCode: 'statusCode',
|
|
687
|
+
body: 'body',
|
|
688
|
+
};
|
|
689
|
+
}
|
|
690
|
+
static types() {
|
|
691
|
+
return {
|
|
692
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
693
|
+
statusCode: 'number',
|
|
694
|
+
body: ListIndexDocumentsResponseBody,
|
|
695
|
+
};
|
|
696
|
+
}
|
|
697
|
+
constructor(map) {
|
|
698
|
+
super(map);
|
|
699
|
+
}
|
|
700
|
+
}
|
|
701
|
+
exports.ListIndexDocumentsResponse = ListIndexDocumentsResponse;
|
|
702
|
+
class ListIndicesRequest extends $tea.Model {
|
|
703
|
+
static names() {
|
|
704
|
+
return {
|
|
705
|
+
indexName: 'IndexName',
|
|
706
|
+
pageNumber: 'PageNumber',
|
|
707
|
+
pageSize: 'PageSize',
|
|
708
|
+
};
|
|
709
|
+
}
|
|
710
|
+
static types() {
|
|
711
|
+
return {
|
|
712
|
+
indexName: 'string',
|
|
713
|
+
pageNumber: 'string',
|
|
714
|
+
pageSize: 'string',
|
|
715
|
+
};
|
|
716
|
+
}
|
|
717
|
+
constructor(map) {
|
|
718
|
+
super(map);
|
|
719
|
+
}
|
|
720
|
+
}
|
|
721
|
+
exports.ListIndicesRequest = ListIndicesRequest;
|
|
722
|
+
class ListIndicesResponseBody extends $tea.Model {
|
|
723
|
+
static names() {
|
|
724
|
+
return {
|
|
725
|
+
code: 'Code',
|
|
726
|
+
data: 'Data',
|
|
727
|
+
message: 'Message',
|
|
728
|
+
requestId: 'RequestId',
|
|
729
|
+
status: 'Status',
|
|
730
|
+
success: 'Success',
|
|
731
|
+
};
|
|
732
|
+
}
|
|
733
|
+
static types() {
|
|
734
|
+
return {
|
|
735
|
+
code: 'string',
|
|
736
|
+
data: ListIndicesResponseBodyData,
|
|
737
|
+
message: 'string',
|
|
738
|
+
requestId: 'string',
|
|
739
|
+
status: 'string',
|
|
740
|
+
success: 'boolean',
|
|
741
|
+
};
|
|
742
|
+
}
|
|
743
|
+
constructor(map) {
|
|
744
|
+
super(map);
|
|
745
|
+
}
|
|
746
|
+
}
|
|
747
|
+
exports.ListIndicesResponseBody = ListIndicesResponseBody;
|
|
748
|
+
class ListIndicesResponse extends $tea.Model {
|
|
749
|
+
static names() {
|
|
750
|
+
return {
|
|
751
|
+
headers: 'headers',
|
|
752
|
+
statusCode: 'statusCode',
|
|
753
|
+
body: 'body',
|
|
754
|
+
};
|
|
755
|
+
}
|
|
756
|
+
static types() {
|
|
757
|
+
return {
|
|
758
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
759
|
+
statusCode: 'number',
|
|
760
|
+
body: ListIndicesResponseBody,
|
|
761
|
+
};
|
|
762
|
+
}
|
|
763
|
+
constructor(map) {
|
|
764
|
+
super(map);
|
|
765
|
+
}
|
|
766
|
+
}
|
|
767
|
+
exports.ListIndicesResponse = ListIndicesResponse;
|
|
419
768
|
class RetrieveRequest extends $tea.Model {
|
|
420
769
|
static names() {
|
|
421
770
|
return {
|
|
@@ -747,117 +1096,291 @@ exports.ApplyFileUploadLeaseResponseBodyData = ApplyFileUploadLeaseResponseBodyD
|
|
|
747
1096
|
class CreateIndexRequestColumns extends $tea.Model {
|
|
748
1097
|
static names() {
|
|
749
1098
|
return {
|
|
750
|
-
column: 'Column',
|
|
751
|
-
isRecall: 'IsRecall',
|
|
752
|
-
isSearch: 'IsSearch',
|
|
753
|
-
name: 'Name',
|
|
754
|
-
type: 'Type',
|
|
1099
|
+
column: 'Column',
|
|
1100
|
+
isRecall: 'IsRecall',
|
|
1101
|
+
isSearch: 'IsSearch',
|
|
1102
|
+
name: 'Name',
|
|
1103
|
+
type: 'Type',
|
|
1104
|
+
};
|
|
1105
|
+
}
|
|
1106
|
+
static types() {
|
|
1107
|
+
return {
|
|
1108
|
+
column: 'string',
|
|
1109
|
+
isRecall: 'boolean',
|
|
1110
|
+
isSearch: 'boolean',
|
|
1111
|
+
name: 'string',
|
|
1112
|
+
type: 'string',
|
|
1113
|
+
};
|
|
1114
|
+
}
|
|
1115
|
+
constructor(map) {
|
|
1116
|
+
super(map);
|
|
1117
|
+
}
|
|
1118
|
+
}
|
|
1119
|
+
exports.CreateIndexRequestColumns = CreateIndexRequestColumns;
|
|
1120
|
+
class CreateIndexResponseBodyData extends $tea.Model {
|
|
1121
|
+
static names() {
|
|
1122
|
+
return {
|
|
1123
|
+
id: 'Id',
|
|
1124
|
+
};
|
|
1125
|
+
}
|
|
1126
|
+
static types() {
|
|
1127
|
+
return {
|
|
1128
|
+
id: 'string',
|
|
1129
|
+
};
|
|
1130
|
+
}
|
|
1131
|
+
constructor(map) {
|
|
1132
|
+
super(map);
|
|
1133
|
+
}
|
|
1134
|
+
}
|
|
1135
|
+
exports.CreateIndexResponseBodyData = CreateIndexResponseBodyData;
|
|
1136
|
+
class DeleteIndexDocumentResponseBodyData extends $tea.Model {
|
|
1137
|
+
static names() {
|
|
1138
|
+
return {
|
|
1139
|
+
deletedDocument: 'DeletedDocument',
|
|
1140
|
+
};
|
|
1141
|
+
}
|
|
1142
|
+
static types() {
|
|
1143
|
+
return {
|
|
1144
|
+
deletedDocument: { 'type': 'array', 'itemType': 'string' },
|
|
1145
|
+
};
|
|
1146
|
+
}
|
|
1147
|
+
constructor(map) {
|
|
1148
|
+
super(map);
|
|
1149
|
+
}
|
|
1150
|
+
}
|
|
1151
|
+
exports.DeleteIndexDocumentResponseBodyData = DeleteIndexDocumentResponseBodyData;
|
|
1152
|
+
class DescribeFileResponseBodyData extends $tea.Model {
|
|
1153
|
+
static names() {
|
|
1154
|
+
return {
|
|
1155
|
+
categoryId: 'CategoryId',
|
|
1156
|
+
createTime: 'CreateTime',
|
|
1157
|
+
fileId: 'FileId',
|
|
1158
|
+
fileName: 'FileName',
|
|
1159
|
+
fileType: 'FileType',
|
|
1160
|
+
parser: 'Parser',
|
|
1161
|
+
sizeInBytes: 'SizeInBytes',
|
|
1162
|
+
status: 'Status',
|
|
1163
|
+
};
|
|
1164
|
+
}
|
|
1165
|
+
static types() {
|
|
1166
|
+
return {
|
|
1167
|
+
categoryId: 'string',
|
|
1168
|
+
createTime: 'string',
|
|
1169
|
+
fileId: 'string',
|
|
1170
|
+
fileName: 'string',
|
|
1171
|
+
fileType: 'string',
|
|
1172
|
+
parser: 'string',
|
|
1173
|
+
sizeInBytes: 'number',
|
|
1174
|
+
status: 'string',
|
|
1175
|
+
};
|
|
1176
|
+
}
|
|
1177
|
+
constructor(map) {
|
|
1178
|
+
super(map);
|
|
1179
|
+
}
|
|
1180
|
+
}
|
|
1181
|
+
exports.DescribeFileResponseBodyData = DescribeFileResponseBodyData;
|
|
1182
|
+
class GetIndexJobStatusResponseBodyDataDocuments extends $tea.Model {
|
|
1183
|
+
static names() {
|
|
1184
|
+
return {
|
|
1185
|
+
code: 'Code',
|
|
1186
|
+
docId: 'DocId',
|
|
1187
|
+
docName: 'DocName',
|
|
1188
|
+
message: 'Message',
|
|
1189
|
+
status: 'Status',
|
|
1190
|
+
};
|
|
1191
|
+
}
|
|
1192
|
+
static types() {
|
|
1193
|
+
return {
|
|
1194
|
+
code: 'string',
|
|
1195
|
+
docId: 'string',
|
|
1196
|
+
docName: 'string',
|
|
1197
|
+
message: 'string',
|
|
1198
|
+
status: 'string',
|
|
1199
|
+
};
|
|
1200
|
+
}
|
|
1201
|
+
constructor(map) {
|
|
1202
|
+
super(map);
|
|
1203
|
+
}
|
|
1204
|
+
}
|
|
1205
|
+
exports.GetIndexJobStatusResponseBodyDataDocuments = GetIndexJobStatusResponseBodyDataDocuments;
|
|
1206
|
+
class GetIndexJobStatusResponseBodyData extends $tea.Model {
|
|
1207
|
+
static names() {
|
|
1208
|
+
return {
|
|
1209
|
+
documents: 'Documents',
|
|
1210
|
+
jobId: 'JobId',
|
|
1211
|
+
status: 'Status',
|
|
1212
|
+
};
|
|
1213
|
+
}
|
|
1214
|
+
static types() {
|
|
1215
|
+
return {
|
|
1216
|
+
documents: { 'type': 'array', 'itemType': GetIndexJobStatusResponseBodyDataDocuments },
|
|
1217
|
+
jobId: 'string',
|
|
1218
|
+
status: 'string',
|
|
1219
|
+
};
|
|
1220
|
+
}
|
|
1221
|
+
constructor(map) {
|
|
1222
|
+
super(map);
|
|
1223
|
+
}
|
|
1224
|
+
}
|
|
1225
|
+
exports.GetIndexJobStatusResponseBodyData = GetIndexJobStatusResponseBodyData;
|
|
1226
|
+
class ListChunksResponseBodyDataNodes extends $tea.Model {
|
|
1227
|
+
static names() {
|
|
1228
|
+
return {
|
|
1229
|
+
metadata: 'Metadata',
|
|
1230
|
+
score: 'Score',
|
|
1231
|
+
text: 'Text',
|
|
1232
|
+
};
|
|
1233
|
+
}
|
|
1234
|
+
static types() {
|
|
1235
|
+
return {
|
|
1236
|
+
metadata: 'any',
|
|
1237
|
+
score: 'number',
|
|
1238
|
+
text: 'string',
|
|
1239
|
+
};
|
|
1240
|
+
}
|
|
1241
|
+
constructor(map) {
|
|
1242
|
+
super(map);
|
|
1243
|
+
}
|
|
1244
|
+
}
|
|
1245
|
+
exports.ListChunksResponseBodyDataNodes = ListChunksResponseBodyDataNodes;
|
|
1246
|
+
class ListChunksResponseBodyData extends $tea.Model {
|
|
1247
|
+
static names() {
|
|
1248
|
+
return {
|
|
1249
|
+
nodes: 'Nodes',
|
|
1250
|
+
total: 'Total',
|
|
755
1251
|
};
|
|
756
1252
|
}
|
|
757
1253
|
static types() {
|
|
758
1254
|
return {
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
isSearch: 'boolean',
|
|
762
|
-
name: 'string',
|
|
763
|
-
type: 'string',
|
|
1255
|
+
nodes: { 'type': 'array', 'itemType': ListChunksResponseBodyDataNodes },
|
|
1256
|
+
total: 'number',
|
|
764
1257
|
};
|
|
765
1258
|
}
|
|
766
1259
|
constructor(map) {
|
|
767
1260
|
super(map);
|
|
768
1261
|
}
|
|
769
1262
|
}
|
|
770
|
-
exports.
|
|
771
|
-
class
|
|
1263
|
+
exports.ListChunksResponseBodyData = ListChunksResponseBodyData;
|
|
1264
|
+
class ListIndexDocumentsResponseBodyDataDocuments extends $tea.Model {
|
|
772
1265
|
static names() {
|
|
773
1266
|
return {
|
|
1267
|
+
code: 'Code',
|
|
1268
|
+
documentType: 'DocumentType',
|
|
774
1269
|
id: 'Id',
|
|
1270
|
+
message: 'Message',
|
|
1271
|
+
name: 'Name',
|
|
1272
|
+
size: 'Size',
|
|
1273
|
+
sourceId: 'SourceId',
|
|
1274
|
+
status: 'Status',
|
|
775
1275
|
};
|
|
776
1276
|
}
|
|
777
1277
|
static types() {
|
|
778
1278
|
return {
|
|
1279
|
+
code: 'string',
|
|
1280
|
+
documentType: 'string',
|
|
779
1281
|
id: 'string',
|
|
1282
|
+
message: 'string',
|
|
1283
|
+
name: 'string',
|
|
1284
|
+
size: 'number',
|
|
1285
|
+
sourceId: 'string',
|
|
1286
|
+
status: 'string',
|
|
780
1287
|
};
|
|
781
1288
|
}
|
|
782
1289
|
constructor(map) {
|
|
783
1290
|
super(map);
|
|
784
1291
|
}
|
|
785
1292
|
}
|
|
786
|
-
exports.
|
|
787
|
-
class
|
|
1293
|
+
exports.ListIndexDocumentsResponseBodyDataDocuments = ListIndexDocumentsResponseBodyDataDocuments;
|
|
1294
|
+
class ListIndexDocumentsResponseBodyData extends $tea.Model {
|
|
788
1295
|
static names() {
|
|
789
1296
|
return {
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
parser: 'Parser',
|
|
796
|
-
sizeInBytes: 'SizeInBytes',
|
|
797
|
-
status: 'Status',
|
|
1297
|
+
documents: 'Documents',
|
|
1298
|
+
indexId: 'IndexId',
|
|
1299
|
+
pageNumber: 'PageNumber',
|
|
1300
|
+
pageSize: 'PageSize',
|
|
1301
|
+
totalCount: 'TotalCount',
|
|
798
1302
|
};
|
|
799
1303
|
}
|
|
800
1304
|
static types() {
|
|
801
1305
|
return {
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
parser: 'string',
|
|
808
|
-
sizeInBytes: 'number',
|
|
809
|
-
status: 'string',
|
|
1306
|
+
documents: { 'type': 'array', 'itemType': ListIndexDocumentsResponseBodyDataDocuments },
|
|
1307
|
+
indexId: 'string',
|
|
1308
|
+
pageNumber: 'number',
|
|
1309
|
+
pageSize: 'number',
|
|
1310
|
+
totalCount: 'number',
|
|
810
1311
|
};
|
|
811
1312
|
}
|
|
812
1313
|
constructor(map) {
|
|
813
1314
|
super(map);
|
|
814
1315
|
}
|
|
815
1316
|
}
|
|
816
|
-
exports.
|
|
817
|
-
class
|
|
1317
|
+
exports.ListIndexDocumentsResponseBodyData = ListIndexDocumentsResponseBodyData;
|
|
1318
|
+
class ListIndicesResponseBodyDataIndices extends $tea.Model {
|
|
818
1319
|
static names() {
|
|
819
1320
|
return {
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
1321
|
+
chunkSize: 'ChunkSize',
|
|
1322
|
+
description: 'Description',
|
|
1323
|
+
documentIds: 'DocumentIds',
|
|
1324
|
+
embeddingModelName: 'EmbeddingModelName',
|
|
1325
|
+
id: 'Id',
|
|
1326
|
+
name: 'Name',
|
|
1327
|
+
overlapSize: 'OverlapSize',
|
|
1328
|
+
rerankMinScore: 'RerankMinScore',
|
|
1329
|
+
rerankModelName: 'RerankModelName',
|
|
1330
|
+
separator: 'Separator',
|
|
1331
|
+
sinkInstanceId: 'SinkInstanceId',
|
|
1332
|
+
sinkRegion: 'SinkRegion',
|
|
1333
|
+
sinkType: 'SinkType',
|
|
1334
|
+
sourceType: 'SourceType',
|
|
1335
|
+
structureType: 'StructureType',
|
|
825
1336
|
};
|
|
826
1337
|
}
|
|
827
1338
|
static types() {
|
|
828
1339
|
return {
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
1340
|
+
chunkSize: 'number',
|
|
1341
|
+
description: 'string',
|
|
1342
|
+
documentIds: { 'type': 'array', 'itemType': 'string' },
|
|
1343
|
+
embeddingModelName: 'string',
|
|
1344
|
+
id: 'string',
|
|
1345
|
+
name: 'string',
|
|
1346
|
+
overlapSize: 'number',
|
|
1347
|
+
rerankMinScore: 'string',
|
|
1348
|
+
rerankModelName: 'string',
|
|
1349
|
+
separator: 'string',
|
|
1350
|
+
sinkInstanceId: 'string',
|
|
1351
|
+
sinkRegion: 'string',
|
|
1352
|
+
sinkType: 'string',
|
|
1353
|
+
sourceType: 'string',
|
|
1354
|
+
structureType: 'string',
|
|
834
1355
|
};
|
|
835
1356
|
}
|
|
836
1357
|
constructor(map) {
|
|
837
1358
|
super(map);
|
|
838
1359
|
}
|
|
839
1360
|
}
|
|
840
|
-
exports.
|
|
841
|
-
class
|
|
1361
|
+
exports.ListIndicesResponseBodyDataIndices = ListIndicesResponseBodyDataIndices;
|
|
1362
|
+
class ListIndicesResponseBodyData extends $tea.Model {
|
|
842
1363
|
static names() {
|
|
843
1364
|
return {
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
1365
|
+
indices: 'Indices',
|
|
1366
|
+
pageNumber: 'PageNumber',
|
|
1367
|
+
pageSize: 'PageSize',
|
|
1368
|
+
totalCount: 'TotalCount',
|
|
847
1369
|
};
|
|
848
1370
|
}
|
|
849
1371
|
static types() {
|
|
850
1372
|
return {
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
1373
|
+
indices: { 'type': 'array', 'itemType': ListIndicesResponseBodyDataIndices },
|
|
1374
|
+
pageNumber: 'number',
|
|
1375
|
+
pageSize: 'number',
|
|
1376
|
+
totalCount: 'number',
|
|
854
1377
|
};
|
|
855
1378
|
}
|
|
856
1379
|
constructor(map) {
|
|
857
1380
|
super(map);
|
|
858
1381
|
}
|
|
859
1382
|
}
|
|
860
|
-
exports.
|
|
1383
|
+
exports.ListIndicesResponseBodyData = ListIndicesResponseBodyData;
|
|
861
1384
|
class RetrieveRequestRerank extends $tea.Model {
|
|
862
1385
|
static names() {
|
|
863
1386
|
return {
|
|
@@ -1170,6 +1693,98 @@ class Client extends openapi_client_1.default {
|
|
|
1170
1693
|
let headers = {};
|
|
1171
1694
|
return await this.createIndexWithOptions(WorkspaceId, request, headers, runtime);
|
|
1172
1695
|
}
|
|
1696
|
+
/**
|
|
1697
|
+
* @summary 删除Index
|
|
1698
|
+
*
|
|
1699
|
+
* @param request DeleteIndexRequest
|
|
1700
|
+
* @param headers map
|
|
1701
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
1702
|
+
* @return DeleteIndexResponse
|
|
1703
|
+
*/
|
|
1704
|
+
async deleteIndexWithOptions(WorkspaceId, request, headers, runtime) {
|
|
1705
|
+
tea_util_1.default.validateModel(request);
|
|
1706
|
+
let query = {};
|
|
1707
|
+
if (!tea_util_1.default.isUnset(request.indexId)) {
|
|
1708
|
+
query["IndexId"] = request.indexId;
|
|
1709
|
+
}
|
|
1710
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
1711
|
+
headers: headers,
|
|
1712
|
+
query: openapi_util_1.default.query(query),
|
|
1713
|
+
});
|
|
1714
|
+
let params = new $OpenApi.Params({
|
|
1715
|
+
action: "DeleteIndex",
|
|
1716
|
+
version: "2023-12-29",
|
|
1717
|
+
protocol: "HTTPS",
|
|
1718
|
+
pathname: `/${openapi_util_1.default.getEncodeParam(WorkspaceId)}/index/delete`,
|
|
1719
|
+
method: "POST",
|
|
1720
|
+
authType: "AK",
|
|
1721
|
+
style: "ROA",
|
|
1722
|
+
reqBodyType: "json",
|
|
1723
|
+
bodyType: "json",
|
|
1724
|
+
});
|
|
1725
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DeleteIndexResponse({}));
|
|
1726
|
+
}
|
|
1727
|
+
/**
|
|
1728
|
+
* @summary 删除Index
|
|
1729
|
+
*
|
|
1730
|
+
* @param request DeleteIndexRequest
|
|
1731
|
+
* @return DeleteIndexResponse
|
|
1732
|
+
*/
|
|
1733
|
+
async deleteIndex(WorkspaceId, request) {
|
|
1734
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
1735
|
+
let headers = {};
|
|
1736
|
+
return await this.deleteIndexWithOptions(WorkspaceId, request, headers, runtime);
|
|
1737
|
+
}
|
|
1738
|
+
/**
|
|
1739
|
+
* @summary 删除index doc
|
|
1740
|
+
*
|
|
1741
|
+
* @param tmpReq DeleteIndexDocumentRequest
|
|
1742
|
+
* @param headers map
|
|
1743
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
1744
|
+
* @return DeleteIndexDocumentResponse
|
|
1745
|
+
*/
|
|
1746
|
+
async deleteIndexDocumentWithOptions(WorkspaceId, tmpReq, headers, runtime) {
|
|
1747
|
+
tea_util_1.default.validateModel(tmpReq);
|
|
1748
|
+
let request = new DeleteIndexDocumentShrinkRequest({});
|
|
1749
|
+
openapi_util_1.default.convert(tmpReq, request);
|
|
1750
|
+
if (!tea_util_1.default.isUnset(tmpReq.documentIds)) {
|
|
1751
|
+
request.documentIdsShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.documentIds, "DocumentIds", "json");
|
|
1752
|
+
}
|
|
1753
|
+
let query = {};
|
|
1754
|
+
if (!tea_util_1.default.isUnset(request.documentIdsShrink)) {
|
|
1755
|
+
query["DocumentIds"] = request.documentIdsShrink;
|
|
1756
|
+
}
|
|
1757
|
+
if (!tea_util_1.default.isUnset(request.indexId)) {
|
|
1758
|
+
query["IndexId"] = request.indexId;
|
|
1759
|
+
}
|
|
1760
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
1761
|
+
headers: headers,
|
|
1762
|
+
query: openapi_util_1.default.query(query),
|
|
1763
|
+
});
|
|
1764
|
+
let params = new $OpenApi.Params({
|
|
1765
|
+
action: "DeleteIndexDocument",
|
|
1766
|
+
version: "2023-12-29",
|
|
1767
|
+
protocol: "HTTPS",
|
|
1768
|
+
pathname: `/${openapi_util_1.default.getEncodeParam(WorkspaceId)}/index/delete_index_document`,
|
|
1769
|
+
method: "POST",
|
|
1770
|
+
authType: "AK",
|
|
1771
|
+
style: "ROA",
|
|
1772
|
+
reqBodyType: "json",
|
|
1773
|
+
bodyType: "json",
|
|
1774
|
+
});
|
|
1775
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DeleteIndexDocumentResponse({}));
|
|
1776
|
+
}
|
|
1777
|
+
/**
|
|
1778
|
+
* @summary 删除index doc
|
|
1779
|
+
*
|
|
1780
|
+
* @param request DeleteIndexDocumentRequest
|
|
1781
|
+
* @return DeleteIndexDocumentResponse
|
|
1782
|
+
*/
|
|
1783
|
+
async deleteIndexDocument(WorkspaceId, request) {
|
|
1784
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
1785
|
+
let headers = {};
|
|
1786
|
+
return await this.deleteIndexDocumentWithOptions(WorkspaceId, request, headers, runtime);
|
|
1787
|
+
}
|
|
1173
1788
|
/**
|
|
1174
1789
|
* @summary 获取文档基本信息,包括文档名称、类型、状态等。
|
|
1175
1790
|
*
|
|
@@ -1249,6 +1864,162 @@ class Client extends openapi_client_1.default {
|
|
|
1249
1864
|
let headers = {};
|
|
1250
1865
|
return await this.getIndexJobStatusWithOptions(WorkspaceId, request, headers, runtime);
|
|
1251
1866
|
}
|
|
1867
|
+
/**
|
|
1868
|
+
* @summary Chunk
|
|
1869
|
+
*
|
|
1870
|
+
* @param request ListChunksRequest
|
|
1871
|
+
* @param headers map
|
|
1872
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
1873
|
+
* @return ListChunksResponse
|
|
1874
|
+
*/
|
|
1875
|
+
async listChunksWithOptions(WorkspaceId, request, headers, runtime) {
|
|
1876
|
+
tea_util_1.default.validateModel(request);
|
|
1877
|
+
let body = {};
|
|
1878
|
+
if (!tea_util_1.default.isUnset(request.fields)) {
|
|
1879
|
+
body["Fields"] = request.fields;
|
|
1880
|
+
}
|
|
1881
|
+
if (!tea_util_1.default.isUnset(request.filed)) {
|
|
1882
|
+
body["Filed"] = request.filed;
|
|
1883
|
+
}
|
|
1884
|
+
if (!tea_util_1.default.isUnset(request.indexId)) {
|
|
1885
|
+
body["IndexId"] = request.indexId;
|
|
1886
|
+
}
|
|
1887
|
+
if (!tea_util_1.default.isUnset(request.pageNum)) {
|
|
1888
|
+
body["PageNum"] = request.pageNum;
|
|
1889
|
+
}
|
|
1890
|
+
if (!tea_util_1.default.isUnset(request.pageSize)) {
|
|
1891
|
+
body["PageSize"] = request.pageSize;
|
|
1892
|
+
}
|
|
1893
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
1894
|
+
headers: headers,
|
|
1895
|
+
body: openapi_util_1.default.parseToMap(body),
|
|
1896
|
+
});
|
|
1897
|
+
let params = new $OpenApi.Params({
|
|
1898
|
+
action: "ListChunks",
|
|
1899
|
+
version: "2023-12-29",
|
|
1900
|
+
protocol: "HTTPS",
|
|
1901
|
+
pathname: `/${openapi_util_1.default.getEncodeParam(WorkspaceId)}/index/list_chunks`,
|
|
1902
|
+
method: "POST",
|
|
1903
|
+
authType: "AK",
|
|
1904
|
+
style: "ROA",
|
|
1905
|
+
reqBodyType: "json",
|
|
1906
|
+
bodyType: "json",
|
|
1907
|
+
});
|
|
1908
|
+
return $tea.cast(await this.callApi(params, req, runtime), new ListChunksResponse({}));
|
|
1909
|
+
}
|
|
1910
|
+
/**
|
|
1911
|
+
* @summary Chunk
|
|
1912
|
+
*
|
|
1913
|
+
* @param request ListChunksRequest
|
|
1914
|
+
* @return ListChunksResponse
|
|
1915
|
+
*/
|
|
1916
|
+
async listChunks(WorkspaceId, request) {
|
|
1917
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
1918
|
+
let headers = {};
|
|
1919
|
+
return await this.listChunksWithOptions(WorkspaceId, request, headers, runtime);
|
|
1920
|
+
}
|
|
1921
|
+
/**
|
|
1922
|
+
* @summary 查询Index文件
|
|
1923
|
+
*
|
|
1924
|
+
* @param request ListIndexDocumentsRequest
|
|
1925
|
+
* @param headers map
|
|
1926
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
1927
|
+
* @return ListIndexDocumentsResponse
|
|
1928
|
+
*/
|
|
1929
|
+
async listIndexDocumentsWithOptions(WorkspaceId, request, headers, runtime) {
|
|
1930
|
+
tea_util_1.default.validateModel(request);
|
|
1931
|
+
let query = {};
|
|
1932
|
+
if (!tea_util_1.default.isUnset(request.documentName)) {
|
|
1933
|
+
query["DocumentName"] = request.documentName;
|
|
1934
|
+
}
|
|
1935
|
+
if (!tea_util_1.default.isUnset(request.documentStatus)) {
|
|
1936
|
+
query["DocumentStatus"] = request.documentStatus;
|
|
1937
|
+
}
|
|
1938
|
+
if (!tea_util_1.default.isUnset(request.indexId)) {
|
|
1939
|
+
query["IndexId"] = request.indexId;
|
|
1940
|
+
}
|
|
1941
|
+
if (!tea_util_1.default.isUnset(request.pageNumber)) {
|
|
1942
|
+
query["PageNumber"] = request.pageNumber;
|
|
1943
|
+
}
|
|
1944
|
+
if (!tea_util_1.default.isUnset(request.pageSize)) {
|
|
1945
|
+
query["PageSize"] = request.pageSize;
|
|
1946
|
+
}
|
|
1947
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
1948
|
+
headers: headers,
|
|
1949
|
+
query: openapi_util_1.default.query(query),
|
|
1950
|
+
});
|
|
1951
|
+
let params = new $OpenApi.Params({
|
|
1952
|
+
action: "ListIndexDocuments",
|
|
1953
|
+
version: "2023-12-29",
|
|
1954
|
+
protocol: "HTTPS",
|
|
1955
|
+
pathname: `/${openapi_util_1.default.getEncodeParam(WorkspaceId)}/index/list_index_documents`,
|
|
1956
|
+
method: "GET",
|
|
1957
|
+
authType: "AK",
|
|
1958
|
+
style: "ROA",
|
|
1959
|
+
reqBodyType: "json",
|
|
1960
|
+
bodyType: "json",
|
|
1961
|
+
});
|
|
1962
|
+
return $tea.cast(await this.callApi(params, req, runtime), new ListIndexDocumentsResponse({}));
|
|
1963
|
+
}
|
|
1964
|
+
/**
|
|
1965
|
+
* @summary 查询Index文件
|
|
1966
|
+
*
|
|
1967
|
+
* @param request ListIndexDocumentsRequest
|
|
1968
|
+
* @return ListIndexDocumentsResponse
|
|
1969
|
+
*/
|
|
1970
|
+
async listIndexDocuments(WorkspaceId, request) {
|
|
1971
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
1972
|
+
let headers = {};
|
|
1973
|
+
return await this.listIndexDocumentsWithOptions(WorkspaceId, request, headers, runtime);
|
|
1974
|
+
}
|
|
1975
|
+
/**
|
|
1976
|
+
* @summary 查询pipeline
|
|
1977
|
+
*
|
|
1978
|
+
* @param request ListIndicesRequest
|
|
1979
|
+
* @param headers map
|
|
1980
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
1981
|
+
* @return ListIndicesResponse
|
|
1982
|
+
*/
|
|
1983
|
+
async listIndicesWithOptions(WorkspaceId, request, headers, runtime) {
|
|
1984
|
+
tea_util_1.default.validateModel(request);
|
|
1985
|
+
let query = {};
|
|
1986
|
+
if (!tea_util_1.default.isUnset(request.indexName)) {
|
|
1987
|
+
query["IndexName"] = request.indexName;
|
|
1988
|
+
}
|
|
1989
|
+
if (!tea_util_1.default.isUnset(request.pageNumber)) {
|
|
1990
|
+
query["PageNumber"] = request.pageNumber;
|
|
1991
|
+
}
|
|
1992
|
+
if (!tea_util_1.default.isUnset(request.pageSize)) {
|
|
1993
|
+
query["PageSize"] = request.pageSize;
|
|
1994
|
+
}
|
|
1995
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
1996
|
+
headers: headers,
|
|
1997
|
+
query: openapi_util_1.default.query(query),
|
|
1998
|
+
});
|
|
1999
|
+
let params = new $OpenApi.Params({
|
|
2000
|
+
action: "ListIndices",
|
|
2001
|
+
version: "2023-12-29",
|
|
2002
|
+
protocol: "HTTPS",
|
|
2003
|
+
pathname: `/${openapi_util_1.default.getEncodeParam(WorkspaceId)}/index/list_indices`,
|
|
2004
|
+
method: "GET",
|
|
2005
|
+
authType: "AK",
|
|
2006
|
+
style: "ROA",
|
|
2007
|
+
reqBodyType: "json",
|
|
2008
|
+
bodyType: "json",
|
|
2009
|
+
});
|
|
2010
|
+
return $tea.cast(await this.callApi(params, req, runtime), new ListIndicesResponse({}));
|
|
2011
|
+
}
|
|
2012
|
+
/**
|
|
2013
|
+
* @summary 查询pipeline
|
|
2014
|
+
*
|
|
2015
|
+
* @param request ListIndicesRequest
|
|
2016
|
+
* @return ListIndicesResponse
|
|
2017
|
+
*/
|
|
2018
|
+
async listIndices(WorkspaceId, request) {
|
|
2019
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
2020
|
+
let headers = {};
|
|
2021
|
+
return await this.listIndicesWithOptions(WorkspaceId, request, headers, runtime);
|
|
2022
|
+
}
|
|
1252
2023
|
/**
|
|
1253
2024
|
* @summary 召回测试
|
|
1254
2025
|
*
|