@wildix/wim-knowledge-base-client 0.0.7
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 +57 -0
- package/dist-cjs/KnowledgeBaseClient.js +41 -0
- package/dist-cjs/commands/CreateDataSourceCommand.js +21 -0
- package/dist-cjs/commands/CreateDocumentCommand.js +21 -0
- package/dist-cjs/commands/CreateKnowledgeBaseCommand.js +21 -0
- package/dist-cjs/commands/DeleteDataSourceCommand.js +21 -0
- package/dist-cjs/commands/DeleteDocumentCommand.js +21 -0
- package/dist-cjs/commands/DeleteKnowledgeBaseCommand.js +21 -0
- package/dist-cjs/commands/GetAuthorizationSessionForDataSourceCommand.js +21 -0
- package/dist-cjs/commands/GetDataSourceCommand.js +21 -0
- package/dist-cjs/commands/GetDocumentCommand.js +21 -0
- package/dist-cjs/commands/GetDocumentPresignedDownloadUrlCommand.js +21 -0
- package/dist-cjs/commands/GetDocumentPresignedUploadUrlCommand.js +21 -0
- package/dist-cjs/commands/GetKnowledgeBaseCommand.js +21 -0
- package/dist-cjs/commands/GetSyncLogsCommand.js +21 -0
- package/dist-cjs/commands/GetSyncStatusCommand.js +21 -0
- package/dist-cjs/commands/ListDataSourcesCommand.js +21 -0
- package/dist-cjs/commands/ListDocumentsCommand.js +21 -0
- package/dist-cjs/commands/ListKnowledgeBasesCommand.js +21 -0
- package/dist-cjs/commands/QueryKnowledgeBaseCommand.js +21 -0
- package/dist-cjs/commands/SearchKnowledgeBaseCommand.js +21 -0
- package/dist-cjs/commands/SyncDataSourceCommand.js +21 -0
- package/dist-cjs/commands/UpdateDataSourceCommand.js +21 -0
- package/dist-cjs/commands/UpdateDocumentCommand.js +21 -0
- package/dist-cjs/commands/UpdateKnowledgeBaseCommand.js +21 -0
- package/dist-cjs/commands/index.js +26 -0
- package/dist-cjs/extensionConfiguration.js +2 -0
- package/dist-cjs/index.js +10 -0
- package/dist-cjs/models/KnowledgeBaseServiceException.js +12 -0
- package/dist-cjs/models/index.js +4 -0
- package/dist-cjs/models/models_0.js +132 -0
- package/dist-cjs/protocols/Aws_restJson1.js +936 -0
- package/dist-cjs/runtimeConfig.browser.js +32 -0
- package/dist-cjs/runtimeConfig.js +37 -0
- package/dist-cjs/runtimeConfig.native.js +15 -0
- package/dist-cjs/runtimeConfig.shared.js +21 -0
- package/dist-cjs/runtimeExtensions.js +11 -0
- package/dist-es/KnowledgeBase.js +53 -0
- package/dist-es/KnowledgeBaseClient.js +37 -0
- package/dist-es/commands/CreateDataSourceCommand.js +17 -0
- package/dist-es/commands/CreateDocumentCommand.js +17 -0
- package/dist-es/commands/CreateKnowledgeBaseCommand.js +17 -0
- package/dist-es/commands/DeleteDataSourceCommand.js +17 -0
- package/dist-es/commands/DeleteDocumentCommand.js +17 -0
- package/dist-es/commands/DeleteKnowledgeBaseCommand.js +17 -0
- package/dist-es/commands/GetAuthorizationSessionForDataSourceCommand.js +17 -0
- package/dist-es/commands/GetDataSourceCommand.js +17 -0
- package/dist-es/commands/GetDocumentCommand.js +17 -0
- package/dist-es/commands/GetDocumentPresignedDownloadUrlCommand.js +17 -0
- package/dist-es/commands/GetDocumentPresignedUploadUrlCommand.js +17 -0
- package/dist-es/commands/GetKnowledgeBaseCommand.js +17 -0
- package/dist-es/commands/GetSyncLogsCommand.js +17 -0
- package/dist-es/commands/GetSyncStatusCommand.js +17 -0
- package/dist-es/commands/ListDataSourcesCommand.js +17 -0
- package/dist-es/commands/ListDocumentsCommand.js +17 -0
- package/dist-es/commands/ListKnowledgeBasesCommand.js +17 -0
- package/dist-es/commands/QueryKnowledgeBaseCommand.js +17 -0
- package/dist-es/commands/SearchKnowledgeBaseCommand.js +17 -0
- package/dist-es/commands/SyncDataSourceCommand.js +17 -0
- package/dist-es/commands/UpdateDataSourceCommand.js +17 -0
- package/dist-es/commands/UpdateDocumentCommand.js +17 -0
- package/dist-es/commands/UpdateKnowledgeBaseCommand.js +17 -0
- package/dist-es/commands/index.js +23 -0
- package/dist-es/extensionConfiguration.js +1 -0
- package/dist-es/index.js +5 -0
- package/dist-es/models/KnowledgeBaseServiceException.js +8 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +123 -0
- package/dist-es/protocols/Aws_restJson1.js +887 -0
- package/dist-es/runtimeConfig.browser.js +27 -0
- package/dist-es/runtimeConfig.js +32 -0
- package/dist-es/runtimeConfig.native.js +11 -0
- package/dist-es/runtimeConfig.shared.js +17 -0
- package/dist-es/runtimeExtensions.js +7 -0
- package/dist-types/KnowledgeBase.d.ts +172 -0
- package/dist-types/KnowledgeBaseClient.d.ts +166 -0
- package/dist-types/commands/CreateDataSourceCommand.d.ts +167 -0
- package/dist-types/commands/CreateDocumentCommand.d.ts +107 -0
- package/dist-types/commands/CreateKnowledgeBaseCommand.d.ts +99 -0
- package/dist-types/commands/DeleteDataSourceCommand.d.ts +83 -0
- package/dist-types/commands/DeleteDocumentCommand.d.ts +84 -0
- package/dist-types/commands/DeleteKnowledgeBaseCommand.d.ts +83 -0
- package/dist-types/commands/GetAuthorizationSessionForDataSourceCommand.d.ts +85 -0
- package/dist-types/commands/GetDataSourceCommand.d.ts +131 -0
- package/dist-types/commands/GetDocumentCommand.d.ts +102 -0
- package/dist-types/commands/GetDocumentPresignedDownloadUrlCommand.d.ts +87 -0
- package/dist-types/commands/GetDocumentPresignedUploadUrlCommand.d.ts +86 -0
- package/dist-types/commands/GetKnowledgeBaseCommand.d.ts +95 -0
- package/dist-types/commands/GetSyncLogsCommand.d.ts +91 -0
- package/dist-types/commands/GetSyncStatusCommand.d.ts +87 -0
- package/dist-types/commands/ListDataSourcesCommand.d.ts +132 -0
- package/dist-types/commands/ListDocumentsCommand.d.ts +103 -0
- package/dist-types/commands/ListKnowledgeBasesCommand.d.ts +96 -0
- package/dist-types/commands/QueryKnowledgeBaseCommand.d.ts +98 -0
- package/dist-types/commands/SearchKnowledgeBaseCommand.d.ts +99 -0
- package/dist-types/commands/SyncDataSourceCommand.d.ts +84 -0
- package/dist-types/commands/UpdateDataSourceCommand.d.ts +168 -0
- package/dist-types/commands/UpdateDocumentCommand.d.ts +108 -0
- package/dist-types/commands/UpdateKnowledgeBaseCommand.d.ts +100 -0
- package/dist-types/commands/index.d.ts +23 -0
- package/dist-types/extensionConfiguration.d.ts +7 -0
- package/dist-types/index.d.ts +7 -0
- package/dist-types/models/KnowledgeBaseServiceException.d.ts +14 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +981 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +209 -0
- package/dist-types/runtimeConfig.browser.d.ts +31 -0
- package/dist-types/runtimeConfig.d.ts +31 -0
- package/dist-types/runtimeConfig.native.d.ts +30 -0
- package/dist-types/runtimeConfig.shared.d.ts +15 -0
- package/dist-types/runtimeExtensions.d.ts +17 -0
- package/package.json +83 -0
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./CreateDataSourceCommand"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./CreateDocumentCommand"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./CreateKnowledgeBaseCommand"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./DeleteDataSourceCommand"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./DeleteDocumentCommand"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./DeleteKnowledgeBaseCommand"), exports);
|
|
10
|
+
tslib_1.__exportStar(require("./GetAuthorizationSessionForDataSourceCommand"), exports);
|
|
11
|
+
tslib_1.__exportStar(require("./GetDataSourceCommand"), exports);
|
|
12
|
+
tslib_1.__exportStar(require("./GetDocumentCommand"), exports);
|
|
13
|
+
tslib_1.__exportStar(require("./GetDocumentPresignedDownloadUrlCommand"), exports);
|
|
14
|
+
tslib_1.__exportStar(require("./GetDocumentPresignedUploadUrlCommand"), exports);
|
|
15
|
+
tslib_1.__exportStar(require("./GetKnowledgeBaseCommand"), exports);
|
|
16
|
+
tslib_1.__exportStar(require("./GetSyncLogsCommand"), exports);
|
|
17
|
+
tslib_1.__exportStar(require("./GetSyncStatusCommand"), exports);
|
|
18
|
+
tslib_1.__exportStar(require("./ListDataSourcesCommand"), exports);
|
|
19
|
+
tslib_1.__exportStar(require("./ListDocumentsCommand"), exports);
|
|
20
|
+
tslib_1.__exportStar(require("./ListKnowledgeBasesCommand"), exports);
|
|
21
|
+
tslib_1.__exportStar(require("./QueryKnowledgeBaseCommand"), exports);
|
|
22
|
+
tslib_1.__exportStar(require("./SearchKnowledgeBaseCommand"), exports);
|
|
23
|
+
tslib_1.__exportStar(require("./SyncDataSourceCommand"), exports);
|
|
24
|
+
tslib_1.__exportStar(require("./UpdateDataSourceCommand"), exports);
|
|
25
|
+
tslib_1.__exportStar(require("./UpdateDocumentCommand"), exports);
|
|
26
|
+
tslib_1.__exportStar(require("./UpdateKnowledgeBaseCommand"), exports);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.KnowledgeBaseServiceException = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
tslib_1.__exportStar(require("./KnowledgeBaseClient"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./KnowledgeBase"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./commands"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./models"), exports);
|
|
9
|
+
var KnowledgeBaseServiceException_1 = require("./models/KnowledgeBaseServiceException");
|
|
10
|
+
Object.defineProperty(exports, "KnowledgeBaseServiceException", { enumerable: true, get: function () { return KnowledgeBaseServiceException_1.KnowledgeBaseServiceException; } });
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.KnowledgeBaseServiceException = exports.__ServiceException = void 0;
|
|
4
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
5
|
+
Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return smithy_client_1.ServiceException; } });
|
|
6
|
+
class KnowledgeBaseServiceException extends smithy_client_1.ServiceException {
|
|
7
|
+
constructor(options) {
|
|
8
|
+
super(options);
|
|
9
|
+
Object.setPrototypeOf(this, KnowledgeBaseServiceException.prototype);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.KnowledgeBaseServiceException = KnowledgeBaseServiceException;
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SearchStrategy = exports.SyncLogLevel = exports.DownloadDocumentType = exports.DocumentStatus = exports.KnowledgeBaseNotFoundException = exports.DocumentNotFoundException = exports.DataSourceNotFoundException = exports.SyncDataSourceStatus = exports.SyncDataSourceMode = exports.DataSourceType = exports.DataSourceConfig = exports.UnauthorizedException = exports.ForbiddenException = exports.ValidationException = void 0;
|
|
4
|
+
const KnowledgeBaseServiceException_1 = require("./KnowledgeBaseServiceException");
|
|
5
|
+
class ValidationException extends KnowledgeBaseServiceException_1.KnowledgeBaseServiceException {
|
|
6
|
+
name = "ValidationException";
|
|
7
|
+
$fault = "client";
|
|
8
|
+
constructor(opts) {
|
|
9
|
+
super({
|
|
10
|
+
name: "ValidationException",
|
|
11
|
+
$fault: "client",
|
|
12
|
+
...opts
|
|
13
|
+
});
|
|
14
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
exports.ValidationException = ValidationException;
|
|
18
|
+
class ForbiddenException extends KnowledgeBaseServiceException_1.KnowledgeBaseServiceException {
|
|
19
|
+
name = "ForbiddenException";
|
|
20
|
+
$fault = "client";
|
|
21
|
+
constructor(opts) {
|
|
22
|
+
super({
|
|
23
|
+
name: "ForbiddenException",
|
|
24
|
+
$fault: "client",
|
|
25
|
+
...opts
|
|
26
|
+
});
|
|
27
|
+
Object.setPrototypeOf(this, ForbiddenException.prototype);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
exports.ForbiddenException = ForbiddenException;
|
|
31
|
+
class UnauthorizedException extends KnowledgeBaseServiceException_1.KnowledgeBaseServiceException {
|
|
32
|
+
name = "UnauthorizedException";
|
|
33
|
+
$fault = "client";
|
|
34
|
+
constructor(opts) {
|
|
35
|
+
super({
|
|
36
|
+
name: "UnauthorizedException",
|
|
37
|
+
$fault: "client",
|
|
38
|
+
...opts
|
|
39
|
+
});
|
|
40
|
+
Object.setPrototypeOf(this, UnauthorizedException.prototype);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
exports.UnauthorizedException = UnauthorizedException;
|
|
44
|
+
var DataSourceConfig;
|
|
45
|
+
(function (DataSourceConfig) {
|
|
46
|
+
DataSourceConfig.visit = (value, visitor) => {
|
|
47
|
+
if (value.confluence !== undefined)
|
|
48
|
+
return visitor.confluence(value.confluence);
|
|
49
|
+
if (value.gdrive !== undefined)
|
|
50
|
+
return visitor.gdrive(value.gdrive);
|
|
51
|
+
if (value.files !== undefined)
|
|
52
|
+
return visitor.files(value.files);
|
|
53
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
54
|
+
};
|
|
55
|
+
})(DataSourceConfig || (exports.DataSourceConfig = DataSourceConfig = {}));
|
|
56
|
+
exports.DataSourceType = {
|
|
57
|
+
CONFLUENCE: "confluence",
|
|
58
|
+
FILES: "files",
|
|
59
|
+
GDRIVE: "gdrive",
|
|
60
|
+
PROXY: "proxy",
|
|
61
|
+
};
|
|
62
|
+
exports.SyncDataSourceMode = {
|
|
63
|
+
FULL: "full",
|
|
64
|
+
INCREMENTAL: "incremental",
|
|
65
|
+
UNKNOWN: "unknown",
|
|
66
|
+
};
|
|
67
|
+
exports.SyncDataSourceStatus = {
|
|
68
|
+
FAILED: "failed",
|
|
69
|
+
IDLE: "idle",
|
|
70
|
+
RUNNING: "running",
|
|
71
|
+
SUCCESS: "success",
|
|
72
|
+
};
|
|
73
|
+
class DataSourceNotFoundException extends KnowledgeBaseServiceException_1.KnowledgeBaseServiceException {
|
|
74
|
+
name = "DataSourceNotFoundException";
|
|
75
|
+
$fault = "client";
|
|
76
|
+
constructor(opts) {
|
|
77
|
+
super({
|
|
78
|
+
name: "DataSourceNotFoundException",
|
|
79
|
+
$fault: "client",
|
|
80
|
+
...opts
|
|
81
|
+
});
|
|
82
|
+
Object.setPrototypeOf(this, DataSourceNotFoundException.prototype);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
exports.DataSourceNotFoundException = DataSourceNotFoundException;
|
|
86
|
+
class DocumentNotFoundException extends KnowledgeBaseServiceException_1.KnowledgeBaseServiceException {
|
|
87
|
+
name = "DocumentNotFoundException";
|
|
88
|
+
$fault = "client";
|
|
89
|
+
constructor(opts) {
|
|
90
|
+
super({
|
|
91
|
+
name: "DocumentNotFoundException",
|
|
92
|
+
$fault: "client",
|
|
93
|
+
...opts
|
|
94
|
+
});
|
|
95
|
+
Object.setPrototypeOf(this, DocumentNotFoundException.prototype);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
exports.DocumentNotFoundException = DocumentNotFoundException;
|
|
99
|
+
class KnowledgeBaseNotFoundException extends KnowledgeBaseServiceException_1.KnowledgeBaseServiceException {
|
|
100
|
+
name = "KnowledgeBaseNotFoundException";
|
|
101
|
+
$fault = "client";
|
|
102
|
+
constructor(opts) {
|
|
103
|
+
super({
|
|
104
|
+
name: "KnowledgeBaseNotFoundException",
|
|
105
|
+
$fault: "client",
|
|
106
|
+
...opts
|
|
107
|
+
});
|
|
108
|
+
Object.setPrototypeOf(this, KnowledgeBaseNotFoundException.prototype);
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
exports.KnowledgeBaseNotFoundException = KnowledgeBaseNotFoundException;
|
|
112
|
+
exports.DocumentStatus = {
|
|
113
|
+
COMPLETED: "completed",
|
|
114
|
+
FAILED: "failed",
|
|
115
|
+
PENDING: "pending",
|
|
116
|
+
PROCESSING: "processing",
|
|
117
|
+
};
|
|
118
|
+
exports.DownloadDocumentType = {
|
|
119
|
+
MARKDOWN: "markdown",
|
|
120
|
+
ORIGINAL: "original",
|
|
121
|
+
};
|
|
122
|
+
exports.SyncLogLevel = {
|
|
123
|
+
DEBUG: "debug",
|
|
124
|
+
ERROR: "error",
|
|
125
|
+
INFO: "info",
|
|
126
|
+
WARN: "warn",
|
|
127
|
+
};
|
|
128
|
+
exports.SearchStrategy = {
|
|
129
|
+
BM25: "bm25",
|
|
130
|
+
HYBRID: "hybrid",
|
|
131
|
+
VECTOR: "vector",
|
|
132
|
+
};
|