@wildix/wim-knowledge-base-client 0.0.9 → 0.0.12
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-cjs/KnowledgeBase.js +6 -2
- package/dist-cjs/commands/{GetAuthorizationSessionForDataSourceCommand.js → ClearDataSourceCommand.js} +7 -7
- package/dist-cjs/commands/CloneDataSourceCommand.js +21 -0
- package/dist-cjs/commands/GetExtraInfoForDataSourceCommand.js +21 -0
- package/dist-cjs/commands/index.js +3 -1
- package/dist-cjs/models/models_0.js +37 -36
- package/dist-cjs/protocols/Aws_restJson1.js +103 -34
- package/dist-es/KnowledgeBase.js +6 -2
- package/dist-es/commands/ClearDataSourceCommand.js +17 -0
- package/dist-es/commands/CloneDataSourceCommand.js +17 -0
- package/dist-es/commands/GetExtraInfoForDataSourceCommand.js +17 -0
- package/dist-es/commands/index.js +3 -1
- package/dist-es/models/models_0.js +36 -35
- package/dist-es/protocols/Aws_restJson1.js +90 -26
- package/dist-types/KnowledgeBase.d.ts +21 -7
- package/dist-types/KnowledgeBaseClient.d.ts +5 -3
- package/dist-types/commands/ClearDataSourceCommand.d.ts +83 -0
- package/dist-types/commands/CloneDataSourceCommand.d.ts +85 -0
- package/dist-types/commands/CreateDataSourceCommand.d.ts +6 -6
- package/dist-types/commands/CreateDocumentCommand.d.ts +1 -1
- package/dist-types/commands/GetDataSourceCommand.d.ts +3 -3
- package/dist-types/commands/GetDocumentCommand.d.ts +1 -1
- package/dist-types/commands/GetExtraInfoForDataSourceCommand.d.ts +86 -0
- package/dist-types/commands/GetSyncLogsCommand.d.ts +2 -0
- package/dist-types/commands/GetSyncStatusCommand.d.ts +7 -0
- package/dist-types/commands/ListDataSourcesCommand.d.ts +3 -3
- package/dist-types/commands/ListDocumentsCommand.d.ts +1 -1
- package/dist-types/commands/UpdateDataSourceCommand.d.ts +6 -6
- package/dist-types/commands/UpdateDocumentCommand.d.ts +1 -1
- package/dist-types/commands/index.d.ts +3 -1
- package/dist-types/models/models_0.d.ts +236 -50
- package/dist-types/protocols/Aws_restJson1.d.ts +27 -9
- package/package.json +1 -1
- package/dist-es/commands/GetAuthorizationSessionForDataSourceCommand.js +0 -17
- package/dist-types/commands/GetAuthorizationSessionForDataSourceCommand.d.ts +0 -85
|
@@ -34,6 +34,84 @@ export declare class UnauthorizedException extends __BaseException {
|
|
|
34
34
|
*/
|
|
35
35
|
constructor(opts: __ExceptionOptionType<UnauthorizedException, __BaseException>);
|
|
36
36
|
}
|
|
37
|
+
/**
|
|
38
|
+
* @public
|
|
39
|
+
*/
|
|
40
|
+
export interface ClearDataSourceInput {
|
|
41
|
+
/**
|
|
42
|
+
* The unique identifier of the tenant when a service token is used.
|
|
43
|
+
* @public
|
|
44
|
+
*/
|
|
45
|
+
companyId?: string | undefined;
|
|
46
|
+
/**
|
|
47
|
+
* The ID of the data source. Example: 123e4567-e89b-12d3-a456-426614174000
|
|
48
|
+
* @public
|
|
49
|
+
*/
|
|
50
|
+
dataSourceId: string;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* @public
|
|
54
|
+
*/
|
|
55
|
+
export interface ClearDataSourceOutput {
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* @public
|
|
59
|
+
*/
|
|
60
|
+
export declare class DataSourceNotFoundException extends __BaseException {
|
|
61
|
+
readonly name: "DataSourceNotFoundException";
|
|
62
|
+
readonly $fault: "client";
|
|
63
|
+
/**
|
|
64
|
+
* @internal
|
|
65
|
+
*/
|
|
66
|
+
constructor(opts: __ExceptionOptionType<DataSourceNotFoundException, __BaseException>);
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* @public
|
|
70
|
+
*/
|
|
71
|
+
export declare class DocumentNotFoundException extends __BaseException {
|
|
72
|
+
readonly name: "DocumentNotFoundException";
|
|
73
|
+
readonly $fault: "client";
|
|
74
|
+
/**
|
|
75
|
+
* @internal
|
|
76
|
+
*/
|
|
77
|
+
constructor(opts: __ExceptionOptionType<DocumentNotFoundException, __BaseException>);
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* @public
|
|
81
|
+
*/
|
|
82
|
+
export declare class KnowledgeBaseNotFoundException extends __BaseException {
|
|
83
|
+
readonly name: "KnowledgeBaseNotFoundException";
|
|
84
|
+
readonly $fault: "client";
|
|
85
|
+
/**
|
|
86
|
+
* @internal
|
|
87
|
+
*/
|
|
88
|
+
constructor(opts: __ExceptionOptionType<KnowledgeBaseNotFoundException, __BaseException>);
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* @public
|
|
92
|
+
*/
|
|
93
|
+
export interface CloneDataSourceInput {
|
|
94
|
+
/**
|
|
95
|
+
* The unique identifier of the tenant when a service token is used.
|
|
96
|
+
* @public
|
|
97
|
+
*/
|
|
98
|
+
companyId?: string | undefined;
|
|
99
|
+
/**
|
|
100
|
+
* The ID of the data source. Example: 123e4567-e89b-12d3-a456-426614174000
|
|
101
|
+
* @public
|
|
102
|
+
*/
|
|
103
|
+
dataSourceId: string;
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* @public
|
|
107
|
+
*/
|
|
108
|
+
export interface CloneDataSourceOutput {
|
|
109
|
+
/**
|
|
110
|
+
* The ID of the data source. Example: 123e4567-e89b-12d3-a456-426614174000
|
|
111
|
+
* @public
|
|
112
|
+
*/
|
|
113
|
+
dataSourceId: string;
|
|
114
|
+
}
|
|
37
115
|
/**
|
|
38
116
|
* @public
|
|
39
117
|
*/
|
|
@@ -49,14 +127,14 @@ export interface ConfluenceConfig {
|
|
|
49
127
|
* The URL of the Confluence instance. Example: https://your-confluence-domain.atlassian.net
|
|
50
128
|
* @public
|
|
51
129
|
*/
|
|
52
|
-
|
|
130
|
+
baseUrl: string;
|
|
53
131
|
/**
|
|
54
132
|
* The username or email of the Confluence instance.
|
|
55
133
|
* @public
|
|
56
134
|
*/
|
|
57
135
|
username: string;
|
|
58
136
|
/**
|
|
59
|
-
* The API
|
|
137
|
+
* The API key of the Confluence instance.
|
|
60
138
|
* @public
|
|
61
139
|
*/
|
|
62
140
|
apiKey: string;
|
|
@@ -315,6 +393,10 @@ export interface DataSourceItem {
|
|
|
315
393
|
* @public
|
|
316
394
|
*/
|
|
317
395
|
syncSchedule?: string | undefined;
|
|
396
|
+
/**
|
|
397
|
+
* The ID of the data source. Example: 123e4567-e89b-12d3-a456-426614174000
|
|
398
|
+
* @public
|
|
399
|
+
*/
|
|
318
400
|
id: string;
|
|
319
401
|
companyId: string;
|
|
320
402
|
createdAt: string;
|
|
@@ -342,39 +424,6 @@ export interface DataSourceItem {
|
|
|
342
424
|
export interface CreateDataSourceOutput {
|
|
343
425
|
dataSource: DataSourceItem;
|
|
344
426
|
}
|
|
345
|
-
/**
|
|
346
|
-
* @public
|
|
347
|
-
*/
|
|
348
|
-
export declare class DataSourceNotFoundException extends __BaseException {
|
|
349
|
-
readonly name: "DataSourceNotFoundException";
|
|
350
|
-
readonly $fault: "client";
|
|
351
|
-
/**
|
|
352
|
-
* @internal
|
|
353
|
-
*/
|
|
354
|
-
constructor(opts: __ExceptionOptionType<DataSourceNotFoundException, __BaseException>);
|
|
355
|
-
}
|
|
356
|
-
/**
|
|
357
|
-
* @public
|
|
358
|
-
*/
|
|
359
|
-
export declare class DocumentNotFoundException extends __BaseException {
|
|
360
|
-
readonly name: "DocumentNotFoundException";
|
|
361
|
-
readonly $fault: "client";
|
|
362
|
-
/**
|
|
363
|
-
* @internal
|
|
364
|
-
*/
|
|
365
|
-
constructor(opts: __ExceptionOptionType<DocumentNotFoundException, __BaseException>);
|
|
366
|
-
}
|
|
367
|
-
/**
|
|
368
|
-
* @public
|
|
369
|
-
*/
|
|
370
|
-
export declare class KnowledgeBaseNotFoundException extends __BaseException {
|
|
371
|
-
readonly name: "KnowledgeBaseNotFoundException";
|
|
372
|
-
readonly $fault: "client";
|
|
373
|
-
/**
|
|
374
|
-
* @internal
|
|
375
|
-
*/
|
|
376
|
-
constructor(opts: __ExceptionOptionType<KnowledgeBaseNotFoundException, __BaseException>);
|
|
377
|
-
}
|
|
378
427
|
/**
|
|
379
428
|
* @public
|
|
380
429
|
*/
|
|
@@ -414,6 +463,10 @@ export interface CreateDocumentInput {
|
|
|
414
463
|
* @public
|
|
415
464
|
*/
|
|
416
465
|
companyId?: string | undefined;
|
|
466
|
+
/**
|
|
467
|
+
* The ID of the data source. Example: 123e4567-e89b-12d3-a456-426614174000
|
|
468
|
+
* @public
|
|
469
|
+
*/
|
|
417
470
|
dataSourceId: string;
|
|
418
471
|
}
|
|
419
472
|
/**
|
|
@@ -422,6 +475,7 @@ export interface CreateDocumentInput {
|
|
|
422
475
|
*/
|
|
423
476
|
export declare const DocumentStatus: {
|
|
424
477
|
readonly COMPLETED: "completed";
|
|
478
|
+
readonly DRAFT: "draft";
|
|
425
479
|
readonly FAILED: "failed";
|
|
426
480
|
readonly PENDING: "pending";
|
|
427
481
|
readonly PROCESSING: "processing";
|
|
@@ -464,8 +518,16 @@ export interface DocumentItem {
|
|
|
464
518
|
* @public
|
|
465
519
|
*/
|
|
466
520
|
originalId?: string | undefined;
|
|
521
|
+
/**
|
|
522
|
+
* The ID of the document. Example: 123e4567-e89b-12d3-a456-426614174000
|
|
523
|
+
* @public
|
|
524
|
+
*/
|
|
467
525
|
id: string;
|
|
468
526
|
companyId: string;
|
|
527
|
+
/**
|
|
528
|
+
* The ID of the data source. Example: 123e4567-e89b-12d3-a456-426614174000
|
|
529
|
+
* @public
|
|
530
|
+
*/
|
|
469
531
|
dataSourceId: string;
|
|
470
532
|
s3OriginalKey?: string | undefined;
|
|
471
533
|
s3MarkdownKey?: string | undefined;
|
|
@@ -516,6 +578,10 @@ export interface KnowledgeBaseItem {
|
|
|
516
578
|
*/
|
|
517
579
|
description?: string | undefined;
|
|
518
580
|
dataSources: (string)[];
|
|
581
|
+
/**
|
|
582
|
+
* The ID of the knowledge base. Example: 123e4567-e89b-12d3-a456-426614174000
|
|
583
|
+
* @public
|
|
584
|
+
*/
|
|
519
585
|
id: string;
|
|
520
586
|
companyId: string;
|
|
521
587
|
createdAt: string;
|
|
@@ -536,6 +602,10 @@ export interface DeleteDataSourceInput {
|
|
|
536
602
|
* @public
|
|
537
603
|
*/
|
|
538
604
|
companyId?: string | undefined;
|
|
605
|
+
/**
|
|
606
|
+
* The ID of the data source. Example: 123e4567-e89b-12d3-a456-426614174000
|
|
607
|
+
* @public
|
|
608
|
+
*/
|
|
539
609
|
dataSourceId: string;
|
|
540
610
|
}
|
|
541
611
|
/**
|
|
@@ -552,7 +622,15 @@ export interface DeleteDocumentInput {
|
|
|
552
622
|
* @public
|
|
553
623
|
*/
|
|
554
624
|
companyId?: string | undefined;
|
|
625
|
+
/**
|
|
626
|
+
* The ID of the data source. Example: 123e4567-e89b-12d3-a456-426614174000
|
|
627
|
+
* @public
|
|
628
|
+
*/
|
|
555
629
|
dataSourceId: string;
|
|
630
|
+
/**
|
|
631
|
+
* The ID of the document. Example: 123e4567-e89b-12d3-a456-426614174000
|
|
632
|
+
* @public
|
|
633
|
+
*/
|
|
556
634
|
documentId: string;
|
|
557
635
|
}
|
|
558
636
|
/**
|
|
@@ -569,6 +647,10 @@ export interface DeleteKnowledgeBaseInput {
|
|
|
569
647
|
* @public
|
|
570
648
|
*/
|
|
571
649
|
companyId?: string | undefined;
|
|
650
|
+
/**
|
|
651
|
+
* The ID of the knowledge base. Example: 123e4567-e89b-12d3-a456-426614174000
|
|
652
|
+
* @public
|
|
653
|
+
*/
|
|
572
654
|
knowledgeBaseId: string;
|
|
573
655
|
}
|
|
574
656
|
/**
|
|
@@ -591,29 +673,16 @@ export type DownloadDocumentType = typeof DownloadDocumentType[keyof typeof Down
|
|
|
591
673
|
/**
|
|
592
674
|
* @public
|
|
593
675
|
*/
|
|
594
|
-
export interface
|
|
676
|
+
export interface GetDataSourceInput {
|
|
595
677
|
/**
|
|
596
678
|
* The unique identifier of the tenant when a service token is used.
|
|
597
679
|
* @public
|
|
598
680
|
*/
|
|
599
681
|
companyId?: string | undefined;
|
|
600
|
-
dataSourceId: string;
|
|
601
|
-
}
|
|
602
|
-
/**
|
|
603
|
-
* @public
|
|
604
|
-
*/
|
|
605
|
-
export interface GetAuthorizationSessionForDataSourceOutput {
|
|
606
|
-
authorizationSession: string;
|
|
607
|
-
}
|
|
608
|
-
/**
|
|
609
|
-
* @public
|
|
610
|
-
*/
|
|
611
|
-
export interface GetDataSourceInput {
|
|
612
682
|
/**
|
|
613
|
-
* The
|
|
683
|
+
* The ID of the data source. Example: 123e4567-e89b-12d3-a456-426614174000
|
|
614
684
|
* @public
|
|
615
685
|
*/
|
|
616
|
-
companyId?: string | undefined;
|
|
617
686
|
dataSourceId: string;
|
|
618
687
|
}
|
|
619
688
|
/**
|
|
@@ -631,7 +700,15 @@ export interface GetDocumentInput {
|
|
|
631
700
|
* @public
|
|
632
701
|
*/
|
|
633
702
|
companyId?: string | undefined;
|
|
703
|
+
/**
|
|
704
|
+
* The ID of the data source. Example: 123e4567-e89b-12d3-a456-426614174000
|
|
705
|
+
* @public
|
|
706
|
+
*/
|
|
634
707
|
dataSourceId: string;
|
|
708
|
+
/**
|
|
709
|
+
* The ID of the document. Example: 123e4567-e89b-12d3-a456-426614174000
|
|
710
|
+
* @public
|
|
711
|
+
*/
|
|
635
712
|
documentId: string;
|
|
636
713
|
}
|
|
637
714
|
/**
|
|
@@ -649,7 +726,15 @@ export interface GetDocumentPresignedDownloadUrlInput {
|
|
|
649
726
|
* @public
|
|
650
727
|
*/
|
|
651
728
|
companyId?: string | undefined;
|
|
729
|
+
/**
|
|
730
|
+
* The ID of the data source. Example: 123e4567-e89b-12d3-a456-426614174000
|
|
731
|
+
* @public
|
|
732
|
+
*/
|
|
652
733
|
dataSourceId: string;
|
|
734
|
+
/**
|
|
735
|
+
* The ID of the document. Example: 123e4567-e89b-12d3-a456-426614174000
|
|
736
|
+
* @public
|
|
737
|
+
*/
|
|
653
738
|
documentId: string;
|
|
654
739
|
documentType?: DownloadDocumentType | undefined;
|
|
655
740
|
}
|
|
@@ -668,7 +753,15 @@ export interface GetDocumentPresignedUploadUrlInput {
|
|
|
668
753
|
* @public
|
|
669
754
|
*/
|
|
670
755
|
companyId?: string | undefined;
|
|
756
|
+
/**
|
|
757
|
+
* The ID of the data source. Example: 123e4567-e89b-12d3-a456-426614174000
|
|
758
|
+
* @public
|
|
759
|
+
*/
|
|
671
760
|
dataSourceId: string;
|
|
761
|
+
/**
|
|
762
|
+
* The ID of the document. Example: 123e4567-e89b-12d3-a456-426614174000
|
|
763
|
+
* @public
|
|
764
|
+
*/
|
|
672
765
|
documentId: string;
|
|
673
766
|
}
|
|
674
767
|
/**
|
|
@@ -677,6 +770,28 @@ export interface GetDocumentPresignedUploadUrlInput {
|
|
|
677
770
|
export interface GetDocumentPresignedUploadUrlOutput {
|
|
678
771
|
presignedUploadUrl: string;
|
|
679
772
|
}
|
|
773
|
+
/**
|
|
774
|
+
* @public
|
|
775
|
+
*/
|
|
776
|
+
export interface GetExtraInfoForDataSourceInput {
|
|
777
|
+
/**
|
|
778
|
+
* The unique identifier of the tenant when a service token is used.
|
|
779
|
+
* @public
|
|
780
|
+
*/
|
|
781
|
+
companyId?: string | undefined;
|
|
782
|
+
/**
|
|
783
|
+
* The ID of the data source. Example: 123e4567-e89b-12d3-a456-426614174000
|
|
784
|
+
* @public
|
|
785
|
+
*/
|
|
786
|
+
dataSourceId: string;
|
|
787
|
+
parameters: __DocumentType;
|
|
788
|
+
}
|
|
789
|
+
/**
|
|
790
|
+
* @public
|
|
791
|
+
*/
|
|
792
|
+
export interface GetExtraInfoForDataSourceOutput {
|
|
793
|
+
extraInfo: __DocumentType;
|
|
794
|
+
}
|
|
680
795
|
/**
|
|
681
796
|
* @public
|
|
682
797
|
*/
|
|
@@ -686,6 +801,10 @@ export interface GetKnowledgeBaseInput {
|
|
|
686
801
|
* @public
|
|
687
802
|
*/
|
|
688
803
|
companyId?: string | undefined;
|
|
804
|
+
/**
|
|
805
|
+
* The ID of the knowledge base. Example: 123e4567-e89b-12d3-a456-426614174000
|
|
806
|
+
* @public
|
|
807
|
+
*/
|
|
689
808
|
knowledgeBaseId: string;
|
|
690
809
|
}
|
|
691
810
|
/**
|
|
@@ -703,7 +822,21 @@ export interface GetSyncLogsInput {
|
|
|
703
822
|
* @public
|
|
704
823
|
*/
|
|
705
824
|
companyId?: string | undefined;
|
|
825
|
+
/**
|
|
826
|
+
* The ID of the data source. Example: 123e4567-e89b-12d3-a456-426614174000
|
|
827
|
+
* @public
|
|
828
|
+
*/
|
|
706
829
|
dataSourceId: string;
|
|
830
|
+
/**
|
|
831
|
+
* The number of logs to return. Example: 50
|
|
832
|
+
* @public
|
|
833
|
+
*/
|
|
834
|
+
limit?: number | undefined;
|
|
835
|
+
/**
|
|
836
|
+
* The offset of the logs to return. Example: 0
|
|
837
|
+
* @public
|
|
838
|
+
*/
|
|
839
|
+
offset?: number | undefined;
|
|
707
840
|
}
|
|
708
841
|
/**
|
|
709
842
|
* @public
|
|
@@ -742,6 +875,10 @@ export interface GetSyncStatusInput {
|
|
|
742
875
|
* @public
|
|
743
876
|
*/
|
|
744
877
|
companyId?: string | undefined;
|
|
878
|
+
/**
|
|
879
|
+
* The ID of the data source. Example: 123e4567-e89b-12d3-a456-426614174000
|
|
880
|
+
* @public
|
|
881
|
+
*/
|
|
745
882
|
dataSourceId: string;
|
|
746
883
|
}
|
|
747
884
|
/**
|
|
@@ -759,6 +896,11 @@ export interface GetSyncStatusOutput {
|
|
|
759
896
|
* @public
|
|
760
897
|
*/
|
|
761
898
|
syncErrorMessage?: string | undefined;
|
|
899
|
+
/**
|
|
900
|
+
* The last logs of the sync.
|
|
901
|
+
* @public
|
|
902
|
+
*/
|
|
903
|
+
lastSyncLogs?: (SyncLogItem)[] | undefined;
|
|
762
904
|
}
|
|
763
905
|
/**
|
|
764
906
|
* @public
|
|
@@ -785,6 +927,10 @@ export interface ListDocumentsInput {
|
|
|
785
927
|
* @public
|
|
786
928
|
*/
|
|
787
929
|
companyId?: string | undefined;
|
|
930
|
+
/**
|
|
931
|
+
* The ID of the data source. Example: 123e4567-e89b-12d3-a456-426614174000
|
|
932
|
+
* @public
|
|
933
|
+
*/
|
|
788
934
|
dataSourceId: string;
|
|
789
935
|
}
|
|
790
936
|
/**
|
|
@@ -876,6 +1022,10 @@ export interface QueryKnowledgeBaseInput {
|
|
|
876
1022
|
* @public
|
|
877
1023
|
*/
|
|
878
1024
|
companyId?: string | undefined;
|
|
1025
|
+
/**
|
|
1026
|
+
* The ID of the knowledge base. Example: 123e4567-e89b-12d3-a456-426614174000
|
|
1027
|
+
* @public
|
|
1028
|
+
*/
|
|
879
1029
|
knowledgeBaseId: string;
|
|
880
1030
|
query: string;
|
|
881
1031
|
searchConfig?: SearchConfig | undefined;
|
|
@@ -897,6 +1047,10 @@ export interface SearchKnowledgeBaseInput {
|
|
|
897
1047
|
* @public
|
|
898
1048
|
*/
|
|
899
1049
|
companyId?: string | undefined;
|
|
1050
|
+
/**
|
|
1051
|
+
* The ID of the knowledge base. Example: 123e4567-e89b-12d3-a456-426614174000
|
|
1052
|
+
* @public
|
|
1053
|
+
*/
|
|
900
1054
|
knowledgeBaseId: string;
|
|
901
1055
|
query: string;
|
|
902
1056
|
searchConfig?: SearchConfig | undefined;
|
|
@@ -905,8 +1059,16 @@ export interface SearchKnowledgeBaseInput {
|
|
|
905
1059
|
* @public
|
|
906
1060
|
*/
|
|
907
1061
|
export interface SearchKnowledgeBaseResult {
|
|
1062
|
+
/**
|
|
1063
|
+
* The ID of the document. Example: 123e4567-e89b-12d3-a456-426614174000
|
|
1064
|
+
* @public
|
|
1065
|
+
*/
|
|
908
1066
|
documentId: string;
|
|
909
1067
|
score: number;
|
|
1068
|
+
/**
|
|
1069
|
+
* The ID of the data source. Example: 123e4567-e89b-12d3-a456-426614174000
|
|
1070
|
+
* @public
|
|
1071
|
+
*/
|
|
910
1072
|
source: string;
|
|
911
1073
|
content: string;
|
|
912
1074
|
url: string;
|
|
@@ -926,6 +1088,10 @@ export interface StartSyncDataSourceInput {
|
|
|
926
1088
|
* @public
|
|
927
1089
|
*/
|
|
928
1090
|
companyId?: string | undefined;
|
|
1091
|
+
/**
|
|
1092
|
+
* The ID of the data source. Example: 123e4567-e89b-12d3-a456-426614174000
|
|
1093
|
+
* @public
|
|
1094
|
+
*/
|
|
929
1095
|
dataSourceId: string;
|
|
930
1096
|
syncType: SyncDataSourceMode;
|
|
931
1097
|
}
|
|
@@ -943,6 +1109,10 @@ export interface StopSyncDataSourceInput {
|
|
|
943
1109
|
* @public
|
|
944
1110
|
*/
|
|
945
1111
|
companyId?: string | undefined;
|
|
1112
|
+
/**
|
|
1113
|
+
* The ID of the data source. Example: 123e4567-e89b-12d3-a456-426614174000
|
|
1114
|
+
* @public
|
|
1115
|
+
*/
|
|
946
1116
|
dataSourceId: string;
|
|
947
1117
|
}
|
|
948
1118
|
/**
|
|
@@ -985,6 +1155,10 @@ export interface UpdateDataSourceInput {
|
|
|
985
1155
|
* @public
|
|
986
1156
|
*/
|
|
987
1157
|
companyId?: string | undefined;
|
|
1158
|
+
/**
|
|
1159
|
+
* The ID of the data source. Example: 123e4567-e89b-12d3-a456-426614174000
|
|
1160
|
+
* @public
|
|
1161
|
+
*/
|
|
988
1162
|
dataSourceId: string;
|
|
989
1163
|
}
|
|
990
1164
|
/**
|
|
@@ -1032,7 +1206,15 @@ export interface UpdateDocumentInput {
|
|
|
1032
1206
|
* @public
|
|
1033
1207
|
*/
|
|
1034
1208
|
companyId?: string | undefined;
|
|
1209
|
+
/**
|
|
1210
|
+
* The ID of the data source. Example: 123e4567-e89b-12d3-a456-426614174000
|
|
1211
|
+
* @public
|
|
1212
|
+
*/
|
|
1035
1213
|
dataSourceId: string;
|
|
1214
|
+
/**
|
|
1215
|
+
* The ID of the document. Example: 123e4567-e89b-12d3-a456-426614174000
|
|
1216
|
+
* @public
|
|
1217
|
+
*/
|
|
1036
1218
|
documentId: string;
|
|
1037
1219
|
}
|
|
1038
1220
|
/**
|
|
@@ -1061,6 +1243,10 @@ export interface UpdateKnowledgeBaseInput {
|
|
|
1061
1243
|
* @public
|
|
1062
1244
|
*/
|
|
1063
1245
|
companyId?: string | undefined;
|
|
1246
|
+
/**
|
|
1247
|
+
* The ID of the knowledge base. Example: 123e4567-e89b-12d3-a456-426614174000
|
|
1248
|
+
* @public
|
|
1249
|
+
*/
|
|
1064
1250
|
knowledgeBaseId: string;
|
|
1065
1251
|
}
|
|
1066
1252
|
/**
|
|
@@ -1,14 +1,16 @@
|
|
|
1
|
+
import { ClearDataSourceCommandInput, ClearDataSourceCommandOutput } from "../commands/ClearDataSourceCommand";
|
|
2
|
+
import { CloneDataSourceCommandInput, CloneDataSourceCommandOutput } from "../commands/CloneDataSourceCommand";
|
|
1
3
|
import { CreateDataSourceCommandInput, CreateDataSourceCommandOutput } from "../commands/CreateDataSourceCommand";
|
|
2
4
|
import { CreateDocumentCommandInput, CreateDocumentCommandOutput } from "../commands/CreateDocumentCommand";
|
|
3
5
|
import { CreateKnowledgeBaseCommandInput, CreateKnowledgeBaseCommandOutput } from "../commands/CreateKnowledgeBaseCommand";
|
|
4
6
|
import { DeleteDataSourceCommandInput, DeleteDataSourceCommandOutput } from "../commands/DeleteDataSourceCommand";
|
|
5
7
|
import { DeleteDocumentCommandInput, DeleteDocumentCommandOutput } from "../commands/DeleteDocumentCommand";
|
|
6
8
|
import { DeleteKnowledgeBaseCommandInput, DeleteKnowledgeBaseCommandOutput } from "../commands/DeleteKnowledgeBaseCommand";
|
|
7
|
-
import { GetAuthorizationSessionForDataSourceCommandInput, GetAuthorizationSessionForDataSourceCommandOutput } from "../commands/GetAuthorizationSessionForDataSourceCommand";
|
|
8
9
|
import { GetDataSourceCommandInput, GetDataSourceCommandOutput } from "../commands/GetDataSourceCommand";
|
|
9
10
|
import { GetDocumentCommandInput, GetDocumentCommandOutput } from "../commands/GetDocumentCommand";
|
|
10
11
|
import { GetDocumentPresignedDownloadUrlCommandInput, GetDocumentPresignedDownloadUrlCommandOutput } from "../commands/GetDocumentPresignedDownloadUrlCommand";
|
|
11
12
|
import { GetDocumentPresignedUploadUrlCommandInput, GetDocumentPresignedUploadUrlCommandOutput } from "../commands/GetDocumentPresignedUploadUrlCommand";
|
|
13
|
+
import { GetExtraInfoForDataSourceCommandInput, GetExtraInfoForDataSourceCommandOutput } from "../commands/GetExtraInfoForDataSourceCommand";
|
|
12
14
|
import { GetKnowledgeBaseCommandInput, GetKnowledgeBaseCommandOutput } from "../commands/GetKnowledgeBaseCommand";
|
|
13
15
|
import { GetSyncLogsCommandInput, GetSyncLogsCommandOutput } from "../commands/GetSyncLogsCommand";
|
|
14
16
|
import { GetSyncStatusCommandInput, GetSyncStatusCommandOutput } from "../commands/GetSyncStatusCommand";
|
|
@@ -24,6 +26,14 @@ import { UpdateDocumentCommandInput, UpdateDocumentCommandOutput } from "../comm
|
|
|
24
26
|
import { UpdateKnowledgeBaseCommandInput, UpdateKnowledgeBaseCommandOutput } from "../commands/UpdateKnowledgeBaseCommand";
|
|
25
27
|
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
|
|
26
28
|
import { SerdeContext as __SerdeContext } from "@smithy/types";
|
|
29
|
+
/**
|
|
30
|
+
* serializeAws_restJson1ClearDataSourceCommand
|
|
31
|
+
*/
|
|
32
|
+
export declare const se_ClearDataSourceCommand: (input: ClearDataSourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
33
|
+
/**
|
|
34
|
+
* serializeAws_restJson1CloneDataSourceCommand
|
|
35
|
+
*/
|
|
36
|
+
export declare const se_CloneDataSourceCommand: (input: CloneDataSourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
27
37
|
/**
|
|
28
38
|
* serializeAws_restJson1CreateDataSourceCommand
|
|
29
39
|
*/
|
|
@@ -48,10 +58,6 @@ export declare const se_DeleteDocumentCommand: (input: DeleteDocumentCommandInpu
|
|
|
48
58
|
* serializeAws_restJson1DeleteKnowledgeBaseCommand
|
|
49
59
|
*/
|
|
50
60
|
export declare const se_DeleteKnowledgeBaseCommand: (input: DeleteKnowledgeBaseCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
51
|
-
/**
|
|
52
|
-
* serializeAws_restJson1GetAuthorizationSessionForDataSourceCommand
|
|
53
|
-
*/
|
|
54
|
-
export declare const se_GetAuthorizationSessionForDataSourceCommand: (input: GetAuthorizationSessionForDataSourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
55
61
|
/**
|
|
56
62
|
* serializeAws_restJson1GetDataSourceCommand
|
|
57
63
|
*/
|
|
@@ -68,6 +74,10 @@ export declare const se_GetDocumentPresignedDownloadUrlCommand: (input: GetDocum
|
|
|
68
74
|
* serializeAws_restJson1GetDocumentPresignedUploadUrlCommand
|
|
69
75
|
*/
|
|
70
76
|
export declare const se_GetDocumentPresignedUploadUrlCommand: (input: GetDocumentPresignedUploadUrlCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
77
|
+
/**
|
|
78
|
+
* serializeAws_restJson1GetExtraInfoForDataSourceCommand
|
|
79
|
+
*/
|
|
80
|
+
export declare const se_GetExtraInfoForDataSourceCommand: (input: GetExtraInfoForDataSourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
71
81
|
/**
|
|
72
82
|
* serializeAws_restJson1GetKnowledgeBaseCommand
|
|
73
83
|
*/
|
|
@@ -120,6 +130,14 @@ export declare const se_UpdateDocumentCommand: (input: UpdateDocumentCommandInpu
|
|
|
120
130
|
* serializeAws_restJson1UpdateKnowledgeBaseCommand
|
|
121
131
|
*/
|
|
122
132
|
export declare const se_UpdateKnowledgeBaseCommand: (input: UpdateKnowledgeBaseCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
133
|
+
/**
|
|
134
|
+
* deserializeAws_restJson1ClearDataSourceCommand
|
|
135
|
+
*/
|
|
136
|
+
export declare const de_ClearDataSourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ClearDataSourceCommandOutput>;
|
|
137
|
+
/**
|
|
138
|
+
* deserializeAws_restJson1CloneDataSourceCommand
|
|
139
|
+
*/
|
|
140
|
+
export declare const de_CloneDataSourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CloneDataSourceCommandOutput>;
|
|
123
141
|
/**
|
|
124
142
|
* deserializeAws_restJson1CreateDataSourceCommand
|
|
125
143
|
*/
|
|
@@ -144,10 +162,6 @@ export declare const de_DeleteDocumentCommand: (output: __HttpResponse, context:
|
|
|
144
162
|
* deserializeAws_restJson1DeleteKnowledgeBaseCommand
|
|
145
163
|
*/
|
|
146
164
|
export declare const de_DeleteKnowledgeBaseCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DeleteKnowledgeBaseCommandOutput>;
|
|
147
|
-
/**
|
|
148
|
-
* deserializeAws_restJson1GetAuthorizationSessionForDataSourceCommand
|
|
149
|
-
*/
|
|
150
|
-
export declare const de_GetAuthorizationSessionForDataSourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetAuthorizationSessionForDataSourceCommandOutput>;
|
|
151
165
|
/**
|
|
152
166
|
* deserializeAws_restJson1GetDataSourceCommand
|
|
153
167
|
*/
|
|
@@ -164,6 +178,10 @@ export declare const de_GetDocumentPresignedDownloadUrlCommand: (output: __HttpR
|
|
|
164
178
|
* deserializeAws_restJson1GetDocumentPresignedUploadUrlCommand
|
|
165
179
|
*/
|
|
166
180
|
export declare const de_GetDocumentPresignedUploadUrlCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetDocumentPresignedUploadUrlCommandOutput>;
|
|
181
|
+
/**
|
|
182
|
+
* deserializeAws_restJson1GetExtraInfoForDataSourceCommand
|
|
183
|
+
*/
|
|
184
|
+
export declare const de_GetExtraInfoForDataSourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetExtraInfoForDataSourceCommandOutput>;
|
|
167
185
|
/**
|
|
168
186
|
* deserializeAws_restJson1GetKnowledgeBaseCommand
|
|
169
187
|
*/
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wildix/wim-knowledge-base-client",
|
|
3
3
|
"description": "@wildix/wim-knowledge-base-client client",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.12",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { de_GetAuthorizationSessionForDataSourceCommand, se_GetAuthorizationSessionForDataSourceCommand, } from "../protocols/Aws_restJson1";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
-
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
-
export { $Command };
|
|
5
|
-
export class GetAuthorizationSessionForDataSourceCommand extends $Command.classBuilder()
|
|
6
|
-
.m(function (Command, cs, config, o) {
|
|
7
|
-
return [
|
|
8
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
-
];
|
|
10
|
-
})
|
|
11
|
-
.s("KnowledgeBase", "GetAuthorizationSessionForDataSource", {})
|
|
12
|
-
.n("KnowledgeBaseClient", "GetAuthorizationSessionForDataSourceCommand")
|
|
13
|
-
.f(void 0, void 0)
|
|
14
|
-
.ser(se_GetAuthorizationSessionForDataSourceCommand)
|
|
15
|
-
.de(de_GetAuthorizationSessionForDataSourceCommand)
|
|
16
|
-
.build() {
|
|
17
|
-
}
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
import { KnowledgeBaseClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../KnowledgeBaseClient";
|
|
2
|
-
import { GetAuthorizationSessionForDataSourceInput, GetAuthorizationSessionForDataSourceOutput } from "../models/models_0";
|
|
3
|
-
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
-
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
5
|
-
/**
|
|
6
|
-
* @public
|
|
7
|
-
*/
|
|
8
|
-
export type { __MetadataBearer };
|
|
9
|
-
export { $Command };
|
|
10
|
-
/**
|
|
11
|
-
* @public
|
|
12
|
-
*
|
|
13
|
-
* The input for {@link GetAuthorizationSessionForDataSourceCommand}.
|
|
14
|
-
*/
|
|
15
|
-
export interface GetAuthorizationSessionForDataSourceCommandInput extends GetAuthorizationSessionForDataSourceInput {
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* @public
|
|
19
|
-
*
|
|
20
|
-
* The output of {@link GetAuthorizationSessionForDataSourceCommand}.
|
|
21
|
-
*/
|
|
22
|
-
export interface GetAuthorizationSessionForDataSourceCommandOutput extends GetAuthorizationSessionForDataSourceOutput, __MetadataBearer {
|
|
23
|
-
}
|
|
24
|
-
declare const GetAuthorizationSessionForDataSourceCommand_base: {
|
|
25
|
-
new (input: GetAuthorizationSessionForDataSourceCommandInput): import("@smithy/smithy-client").CommandImpl<GetAuthorizationSessionForDataSourceCommandInput, GetAuthorizationSessionForDataSourceCommandOutput, KnowledgeBaseClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
-
new (__0_0: GetAuthorizationSessionForDataSourceCommandInput): import("@smithy/smithy-client").CommandImpl<GetAuthorizationSessionForDataSourceCommandInput, GetAuthorizationSessionForDataSourceCommandOutput, KnowledgeBaseClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
-
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
-
};
|
|
29
|
-
/**
|
|
30
|
-
* Get a Nango authorization session for a data source
|
|
31
|
-
* @example
|
|
32
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
-
* ```javascript
|
|
34
|
-
* import { KnowledgeBaseClient, GetAuthorizationSessionForDataSourceCommand } from "@wildix/wim-knowledge-base-client"; // ES Modules import
|
|
35
|
-
* // const { KnowledgeBaseClient, GetAuthorizationSessionForDataSourceCommand } = require("@wildix/wim-knowledge-base-client"); // CommonJS import
|
|
36
|
-
* const client = new KnowledgeBaseClient(config);
|
|
37
|
-
* const input = { // GetAuthorizationSessionForDataSourceInput
|
|
38
|
-
* companyId: "STRING_VALUE",
|
|
39
|
-
* dataSourceId: "STRING_VALUE", // required
|
|
40
|
-
* };
|
|
41
|
-
* const command = new GetAuthorizationSessionForDataSourceCommand(input);
|
|
42
|
-
* const response = await client.send(command);
|
|
43
|
-
* // { // GetAuthorizationSessionForDataSourceOutput
|
|
44
|
-
* // authorizationSession: "STRING_VALUE", // required
|
|
45
|
-
* // };
|
|
46
|
-
*
|
|
47
|
-
* ```
|
|
48
|
-
*
|
|
49
|
-
* @param GetAuthorizationSessionForDataSourceCommandInput - {@link GetAuthorizationSessionForDataSourceCommandInput}
|
|
50
|
-
* @returns {@link GetAuthorizationSessionForDataSourceCommandOutput}
|
|
51
|
-
* @see {@link GetAuthorizationSessionForDataSourceCommandInput} for command's `input` shape.
|
|
52
|
-
* @see {@link GetAuthorizationSessionForDataSourceCommandOutput} for command's `response` shape.
|
|
53
|
-
* @see {@link KnowledgeBaseClientResolvedConfig | config} for KnowledgeBaseClient's `config` shape.
|
|
54
|
-
*
|
|
55
|
-
* @throws {@link DataSourceNotFoundException} (client fault)
|
|
56
|
-
*
|
|
57
|
-
* @throws {@link UnauthorizedException} (client fault)
|
|
58
|
-
*
|
|
59
|
-
* @throws {@link ForbiddenException} (client fault)
|
|
60
|
-
*
|
|
61
|
-
* @throws {@link ValidationException} (client fault)
|
|
62
|
-
*
|
|
63
|
-
* @throws {@link KnowledgeBaseNotFoundException} (client fault)
|
|
64
|
-
*
|
|
65
|
-
* @throws {@link DocumentNotFoundException} (client fault)
|
|
66
|
-
*
|
|
67
|
-
* @throws {@link KnowledgeBaseServiceException}
|
|
68
|
-
* <p>Base exception class for all service exceptions from KnowledgeBase service.</p>
|
|
69
|
-
*
|
|
70
|
-
*
|
|
71
|
-
* @public
|
|
72
|
-
*/
|
|
73
|
-
export declare class GetAuthorizationSessionForDataSourceCommand extends GetAuthorizationSessionForDataSourceCommand_base {
|
|
74
|
-
/** @internal type navigation helper, not in runtime. */
|
|
75
|
-
protected static __types: {
|
|
76
|
-
api: {
|
|
77
|
-
input: GetAuthorizationSessionForDataSourceInput;
|
|
78
|
-
output: GetAuthorizationSessionForDataSourceOutput;
|
|
79
|
-
};
|
|
80
|
-
sdk: {
|
|
81
|
-
input: GetAuthorizationSessionForDataSourceCommandInput;
|
|
82
|
-
output: GetAuthorizationSessionForDataSourceCommandOutput;
|
|
83
|
-
};
|
|
84
|
-
};
|
|
85
|
-
}
|