@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.
Files changed (112) hide show
  1. package/dist-cjs/KnowledgeBase.js +57 -0
  2. package/dist-cjs/KnowledgeBaseClient.js +41 -0
  3. package/dist-cjs/commands/CreateDataSourceCommand.js +21 -0
  4. package/dist-cjs/commands/CreateDocumentCommand.js +21 -0
  5. package/dist-cjs/commands/CreateKnowledgeBaseCommand.js +21 -0
  6. package/dist-cjs/commands/DeleteDataSourceCommand.js +21 -0
  7. package/dist-cjs/commands/DeleteDocumentCommand.js +21 -0
  8. package/dist-cjs/commands/DeleteKnowledgeBaseCommand.js +21 -0
  9. package/dist-cjs/commands/GetAuthorizationSessionForDataSourceCommand.js +21 -0
  10. package/dist-cjs/commands/GetDataSourceCommand.js +21 -0
  11. package/dist-cjs/commands/GetDocumentCommand.js +21 -0
  12. package/dist-cjs/commands/GetDocumentPresignedDownloadUrlCommand.js +21 -0
  13. package/dist-cjs/commands/GetDocumentPresignedUploadUrlCommand.js +21 -0
  14. package/dist-cjs/commands/GetKnowledgeBaseCommand.js +21 -0
  15. package/dist-cjs/commands/GetSyncLogsCommand.js +21 -0
  16. package/dist-cjs/commands/GetSyncStatusCommand.js +21 -0
  17. package/dist-cjs/commands/ListDataSourcesCommand.js +21 -0
  18. package/dist-cjs/commands/ListDocumentsCommand.js +21 -0
  19. package/dist-cjs/commands/ListKnowledgeBasesCommand.js +21 -0
  20. package/dist-cjs/commands/QueryKnowledgeBaseCommand.js +21 -0
  21. package/dist-cjs/commands/SearchKnowledgeBaseCommand.js +21 -0
  22. package/dist-cjs/commands/SyncDataSourceCommand.js +21 -0
  23. package/dist-cjs/commands/UpdateDataSourceCommand.js +21 -0
  24. package/dist-cjs/commands/UpdateDocumentCommand.js +21 -0
  25. package/dist-cjs/commands/UpdateKnowledgeBaseCommand.js +21 -0
  26. package/dist-cjs/commands/index.js +26 -0
  27. package/dist-cjs/extensionConfiguration.js +2 -0
  28. package/dist-cjs/index.js +10 -0
  29. package/dist-cjs/models/KnowledgeBaseServiceException.js +12 -0
  30. package/dist-cjs/models/index.js +4 -0
  31. package/dist-cjs/models/models_0.js +132 -0
  32. package/dist-cjs/protocols/Aws_restJson1.js +936 -0
  33. package/dist-cjs/runtimeConfig.browser.js +32 -0
  34. package/dist-cjs/runtimeConfig.js +37 -0
  35. package/dist-cjs/runtimeConfig.native.js +15 -0
  36. package/dist-cjs/runtimeConfig.shared.js +21 -0
  37. package/dist-cjs/runtimeExtensions.js +11 -0
  38. package/dist-es/KnowledgeBase.js +53 -0
  39. package/dist-es/KnowledgeBaseClient.js +37 -0
  40. package/dist-es/commands/CreateDataSourceCommand.js +17 -0
  41. package/dist-es/commands/CreateDocumentCommand.js +17 -0
  42. package/dist-es/commands/CreateKnowledgeBaseCommand.js +17 -0
  43. package/dist-es/commands/DeleteDataSourceCommand.js +17 -0
  44. package/dist-es/commands/DeleteDocumentCommand.js +17 -0
  45. package/dist-es/commands/DeleteKnowledgeBaseCommand.js +17 -0
  46. package/dist-es/commands/GetAuthorizationSessionForDataSourceCommand.js +17 -0
  47. package/dist-es/commands/GetDataSourceCommand.js +17 -0
  48. package/dist-es/commands/GetDocumentCommand.js +17 -0
  49. package/dist-es/commands/GetDocumentPresignedDownloadUrlCommand.js +17 -0
  50. package/dist-es/commands/GetDocumentPresignedUploadUrlCommand.js +17 -0
  51. package/dist-es/commands/GetKnowledgeBaseCommand.js +17 -0
  52. package/dist-es/commands/GetSyncLogsCommand.js +17 -0
  53. package/dist-es/commands/GetSyncStatusCommand.js +17 -0
  54. package/dist-es/commands/ListDataSourcesCommand.js +17 -0
  55. package/dist-es/commands/ListDocumentsCommand.js +17 -0
  56. package/dist-es/commands/ListKnowledgeBasesCommand.js +17 -0
  57. package/dist-es/commands/QueryKnowledgeBaseCommand.js +17 -0
  58. package/dist-es/commands/SearchKnowledgeBaseCommand.js +17 -0
  59. package/dist-es/commands/SyncDataSourceCommand.js +17 -0
  60. package/dist-es/commands/UpdateDataSourceCommand.js +17 -0
  61. package/dist-es/commands/UpdateDocumentCommand.js +17 -0
  62. package/dist-es/commands/UpdateKnowledgeBaseCommand.js +17 -0
  63. package/dist-es/commands/index.js +23 -0
  64. package/dist-es/extensionConfiguration.js +1 -0
  65. package/dist-es/index.js +5 -0
  66. package/dist-es/models/KnowledgeBaseServiceException.js +8 -0
  67. package/dist-es/models/index.js +1 -0
  68. package/dist-es/models/models_0.js +123 -0
  69. package/dist-es/protocols/Aws_restJson1.js +887 -0
  70. package/dist-es/runtimeConfig.browser.js +27 -0
  71. package/dist-es/runtimeConfig.js +32 -0
  72. package/dist-es/runtimeConfig.native.js +11 -0
  73. package/dist-es/runtimeConfig.shared.js +17 -0
  74. package/dist-es/runtimeExtensions.js +7 -0
  75. package/dist-types/KnowledgeBase.d.ts +172 -0
  76. package/dist-types/KnowledgeBaseClient.d.ts +166 -0
  77. package/dist-types/commands/CreateDataSourceCommand.d.ts +167 -0
  78. package/dist-types/commands/CreateDocumentCommand.d.ts +107 -0
  79. package/dist-types/commands/CreateKnowledgeBaseCommand.d.ts +99 -0
  80. package/dist-types/commands/DeleteDataSourceCommand.d.ts +83 -0
  81. package/dist-types/commands/DeleteDocumentCommand.d.ts +84 -0
  82. package/dist-types/commands/DeleteKnowledgeBaseCommand.d.ts +83 -0
  83. package/dist-types/commands/GetAuthorizationSessionForDataSourceCommand.d.ts +85 -0
  84. package/dist-types/commands/GetDataSourceCommand.d.ts +131 -0
  85. package/dist-types/commands/GetDocumentCommand.d.ts +102 -0
  86. package/dist-types/commands/GetDocumentPresignedDownloadUrlCommand.d.ts +87 -0
  87. package/dist-types/commands/GetDocumentPresignedUploadUrlCommand.d.ts +86 -0
  88. package/dist-types/commands/GetKnowledgeBaseCommand.d.ts +95 -0
  89. package/dist-types/commands/GetSyncLogsCommand.d.ts +91 -0
  90. package/dist-types/commands/GetSyncStatusCommand.d.ts +87 -0
  91. package/dist-types/commands/ListDataSourcesCommand.d.ts +132 -0
  92. package/dist-types/commands/ListDocumentsCommand.d.ts +103 -0
  93. package/dist-types/commands/ListKnowledgeBasesCommand.d.ts +96 -0
  94. package/dist-types/commands/QueryKnowledgeBaseCommand.d.ts +98 -0
  95. package/dist-types/commands/SearchKnowledgeBaseCommand.d.ts +99 -0
  96. package/dist-types/commands/SyncDataSourceCommand.d.ts +84 -0
  97. package/dist-types/commands/UpdateDataSourceCommand.d.ts +168 -0
  98. package/dist-types/commands/UpdateDocumentCommand.d.ts +108 -0
  99. package/dist-types/commands/UpdateKnowledgeBaseCommand.d.ts +100 -0
  100. package/dist-types/commands/index.d.ts +23 -0
  101. package/dist-types/extensionConfiguration.d.ts +7 -0
  102. package/dist-types/index.d.ts +7 -0
  103. package/dist-types/models/KnowledgeBaseServiceException.d.ts +14 -0
  104. package/dist-types/models/index.d.ts +1 -0
  105. package/dist-types/models/models_0.d.ts +981 -0
  106. package/dist-types/protocols/Aws_restJson1.d.ts +209 -0
  107. package/dist-types/runtimeConfig.browser.d.ts +31 -0
  108. package/dist-types/runtimeConfig.d.ts +31 -0
  109. package/dist-types/runtimeConfig.native.d.ts +30 -0
  110. package/dist-types/runtimeConfig.shared.d.ts +15 -0
  111. package/dist-types/runtimeExtensions.d.ts +17 -0
  112. package/package.json +83 -0
@@ -0,0 +1,57 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.KnowledgeBase = void 0;
4
+ const KnowledgeBaseClient_1 = require("./KnowledgeBaseClient");
5
+ const CreateDataSourceCommand_1 = require("./commands/CreateDataSourceCommand");
6
+ const CreateDocumentCommand_1 = require("./commands/CreateDocumentCommand");
7
+ const CreateKnowledgeBaseCommand_1 = require("./commands/CreateKnowledgeBaseCommand");
8
+ const DeleteDataSourceCommand_1 = require("./commands/DeleteDataSourceCommand");
9
+ const DeleteDocumentCommand_1 = require("./commands/DeleteDocumentCommand");
10
+ const DeleteKnowledgeBaseCommand_1 = require("./commands/DeleteKnowledgeBaseCommand");
11
+ const GetAuthorizationSessionForDataSourceCommand_1 = require("./commands/GetAuthorizationSessionForDataSourceCommand");
12
+ const GetDataSourceCommand_1 = require("./commands/GetDataSourceCommand");
13
+ const GetDocumentCommand_1 = require("./commands/GetDocumentCommand");
14
+ const GetDocumentPresignedDownloadUrlCommand_1 = require("./commands/GetDocumentPresignedDownloadUrlCommand");
15
+ const GetDocumentPresignedUploadUrlCommand_1 = require("./commands/GetDocumentPresignedUploadUrlCommand");
16
+ const GetKnowledgeBaseCommand_1 = require("./commands/GetKnowledgeBaseCommand");
17
+ const GetSyncLogsCommand_1 = require("./commands/GetSyncLogsCommand");
18
+ const GetSyncStatusCommand_1 = require("./commands/GetSyncStatusCommand");
19
+ const ListDataSourcesCommand_1 = require("./commands/ListDataSourcesCommand");
20
+ const ListDocumentsCommand_1 = require("./commands/ListDocumentsCommand");
21
+ const ListKnowledgeBasesCommand_1 = require("./commands/ListKnowledgeBasesCommand");
22
+ const QueryKnowledgeBaseCommand_1 = require("./commands/QueryKnowledgeBaseCommand");
23
+ const SearchKnowledgeBaseCommand_1 = require("./commands/SearchKnowledgeBaseCommand");
24
+ const SyncDataSourceCommand_1 = require("./commands/SyncDataSourceCommand");
25
+ const UpdateDataSourceCommand_1 = require("./commands/UpdateDataSourceCommand");
26
+ const UpdateDocumentCommand_1 = require("./commands/UpdateDocumentCommand");
27
+ const UpdateKnowledgeBaseCommand_1 = require("./commands/UpdateKnowledgeBaseCommand");
28
+ const smithy_client_1 = require("@smithy/smithy-client");
29
+ const commands = {
30
+ CreateDataSourceCommand: CreateDataSourceCommand_1.CreateDataSourceCommand,
31
+ CreateDocumentCommand: CreateDocumentCommand_1.CreateDocumentCommand,
32
+ CreateKnowledgeBaseCommand: CreateKnowledgeBaseCommand_1.CreateKnowledgeBaseCommand,
33
+ DeleteDataSourceCommand: DeleteDataSourceCommand_1.DeleteDataSourceCommand,
34
+ DeleteDocumentCommand: DeleteDocumentCommand_1.DeleteDocumentCommand,
35
+ DeleteKnowledgeBaseCommand: DeleteKnowledgeBaseCommand_1.DeleteKnowledgeBaseCommand,
36
+ GetAuthorizationSessionForDataSourceCommand: GetAuthorizationSessionForDataSourceCommand_1.GetAuthorizationSessionForDataSourceCommand,
37
+ GetDataSourceCommand: GetDataSourceCommand_1.GetDataSourceCommand,
38
+ GetDocumentCommand: GetDocumentCommand_1.GetDocumentCommand,
39
+ GetDocumentPresignedDownloadUrlCommand: GetDocumentPresignedDownloadUrlCommand_1.GetDocumentPresignedDownloadUrlCommand,
40
+ GetDocumentPresignedUploadUrlCommand: GetDocumentPresignedUploadUrlCommand_1.GetDocumentPresignedUploadUrlCommand,
41
+ GetKnowledgeBaseCommand: GetKnowledgeBaseCommand_1.GetKnowledgeBaseCommand,
42
+ GetSyncLogsCommand: GetSyncLogsCommand_1.GetSyncLogsCommand,
43
+ GetSyncStatusCommand: GetSyncStatusCommand_1.GetSyncStatusCommand,
44
+ ListDataSourcesCommand: ListDataSourcesCommand_1.ListDataSourcesCommand,
45
+ ListDocumentsCommand: ListDocumentsCommand_1.ListDocumentsCommand,
46
+ ListKnowledgeBasesCommand: ListKnowledgeBasesCommand_1.ListKnowledgeBasesCommand,
47
+ QueryKnowledgeBaseCommand: QueryKnowledgeBaseCommand_1.QueryKnowledgeBaseCommand,
48
+ SearchKnowledgeBaseCommand: SearchKnowledgeBaseCommand_1.SearchKnowledgeBaseCommand,
49
+ SyncDataSourceCommand: SyncDataSourceCommand_1.SyncDataSourceCommand,
50
+ UpdateDataSourceCommand: UpdateDataSourceCommand_1.UpdateDataSourceCommand,
51
+ UpdateDocumentCommand: UpdateDocumentCommand_1.UpdateDocumentCommand,
52
+ UpdateKnowledgeBaseCommand: UpdateKnowledgeBaseCommand_1.UpdateKnowledgeBaseCommand,
53
+ };
54
+ class KnowledgeBase extends KnowledgeBaseClient_1.KnowledgeBaseClient {
55
+ }
56
+ exports.KnowledgeBase = KnowledgeBase;
57
+ (0, smithy_client_1.createAggregatedClient)(commands, KnowledgeBase);
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.KnowledgeBaseClient = exports.__Client = void 0;
4
+ const runtimeConfig_1 = require("./runtimeConfig");
5
+ const runtimeExtensions_1 = require("./runtimeExtensions");
6
+ const middleware_user_agent_1 = require("@aws-sdk/middleware-user-agent");
7
+ const middleware_content_length_1 = require("@smithy/middleware-content-length");
8
+ const middleware_retry_1 = require("@smithy/middleware-retry");
9
+ const smithy_client_1 = require("@smithy/smithy-client");
10
+ Object.defineProperty(exports, "__Client", { enumerable: true, get: function () { return smithy_client_1.Client; } });
11
+ const smithy_utils_1 = require("@wildix/smithy-utils");
12
+ class KnowledgeBaseClient extends smithy_client_1.Client {
13
+ config;
14
+ constructor(...[configuration]) {
15
+ let _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration || {});
16
+ super(_config_0);
17
+ this.initConfig = _config_0;
18
+ let _config_1 = (0, middleware_user_agent_1.resolveUserAgentConfig)(_config_0);
19
+ let _config_2 = (0, middleware_retry_1.resolveRetryConfig)(_config_1);
20
+ let _config_3 = (0, runtimeExtensions_1.resolveRuntimeExtensions)(_config_2, configuration?.extensions || []);
21
+ const hostname = ['stable', 'stage'].includes(configuration.env || '') ? `kb.wim-${configuration.env}.wildix.com` : 'kb.wim.wildix.com';
22
+ const endpoint = () => {
23
+ return {
24
+ hostname,
25
+ protocol: "https",
26
+ port: '443',
27
+ path: ''
28
+ };
29
+ };
30
+ const config = { ..._config_3, endpoint };
31
+ this.config = config;
32
+ this.middlewareStack.add(smithy_utils_1.authorizationMiddleware.bind(this, configuration.token), { step: "build" });
33
+ this.middlewareStack.use((0, middleware_user_agent_1.getUserAgentPlugin)(this.config));
34
+ this.middlewareStack.use((0, middleware_retry_1.getRetryPlugin)(this.config));
35
+ this.middlewareStack.use((0, middleware_content_length_1.getContentLengthPlugin)(this.config));
36
+ }
37
+ destroy() {
38
+ super.destroy();
39
+ }
40
+ }
41
+ exports.KnowledgeBaseClient = KnowledgeBaseClient;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateDataSourceCommand = exports.$Command = void 0;
4
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ class CreateDataSourceCommand extends smithy_client_1.Command.classBuilder()
9
+ .m(function (Command, cs, config, o) {
10
+ return [
11
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
12
+ ];
13
+ })
14
+ .s("KnowledgeBase", "CreateDataSource", {})
15
+ .n("KnowledgeBaseClient", "CreateDataSourceCommand")
16
+ .f(void 0, void 0)
17
+ .ser(Aws_restJson1_1.se_CreateDataSourceCommand)
18
+ .de(Aws_restJson1_1.de_CreateDataSourceCommand)
19
+ .build() {
20
+ }
21
+ exports.CreateDataSourceCommand = CreateDataSourceCommand;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateDocumentCommand = exports.$Command = void 0;
4
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ class CreateDocumentCommand extends smithy_client_1.Command.classBuilder()
9
+ .m(function (Command, cs, config, o) {
10
+ return [
11
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
12
+ ];
13
+ })
14
+ .s("KnowledgeBase", "CreateDocument", {})
15
+ .n("KnowledgeBaseClient", "CreateDocumentCommand")
16
+ .f(void 0, void 0)
17
+ .ser(Aws_restJson1_1.se_CreateDocumentCommand)
18
+ .de(Aws_restJson1_1.de_CreateDocumentCommand)
19
+ .build() {
20
+ }
21
+ exports.CreateDocumentCommand = CreateDocumentCommand;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateKnowledgeBaseCommand = exports.$Command = void 0;
4
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ class CreateKnowledgeBaseCommand extends smithy_client_1.Command.classBuilder()
9
+ .m(function (Command, cs, config, o) {
10
+ return [
11
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
12
+ ];
13
+ })
14
+ .s("KnowledgeBase", "CreateKnowledgeBase", {})
15
+ .n("KnowledgeBaseClient", "CreateKnowledgeBaseCommand")
16
+ .f(void 0, void 0)
17
+ .ser(Aws_restJson1_1.se_CreateKnowledgeBaseCommand)
18
+ .de(Aws_restJson1_1.de_CreateKnowledgeBaseCommand)
19
+ .build() {
20
+ }
21
+ exports.CreateKnowledgeBaseCommand = CreateKnowledgeBaseCommand;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DeleteDataSourceCommand = exports.$Command = void 0;
4
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ class DeleteDataSourceCommand extends smithy_client_1.Command.classBuilder()
9
+ .m(function (Command, cs, config, o) {
10
+ return [
11
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
12
+ ];
13
+ })
14
+ .s("KnowledgeBase", "DeleteDataSource", {})
15
+ .n("KnowledgeBaseClient", "DeleteDataSourceCommand")
16
+ .f(void 0, void 0)
17
+ .ser(Aws_restJson1_1.se_DeleteDataSourceCommand)
18
+ .de(Aws_restJson1_1.de_DeleteDataSourceCommand)
19
+ .build() {
20
+ }
21
+ exports.DeleteDataSourceCommand = DeleteDataSourceCommand;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DeleteDocumentCommand = exports.$Command = void 0;
4
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ class DeleteDocumentCommand extends smithy_client_1.Command.classBuilder()
9
+ .m(function (Command, cs, config, o) {
10
+ return [
11
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
12
+ ];
13
+ })
14
+ .s("KnowledgeBase", "DeleteDocument", {})
15
+ .n("KnowledgeBaseClient", "DeleteDocumentCommand")
16
+ .f(void 0, void 0)
17
+ .ser(Aws_restJson1_1.se_DeleteDocumentCommand)
18
+ .de(Aws_restJson1_1.de_DeleteDocumentCommand)
19
+ .build() {
20
+ }
21
+ exports.DeleteDocumentCommand = DeleteDocumentCommand;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DeleteKnowledgeBaseCommand = exports.$Command = void 0;
4
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ class DeleteKnowledgeBaseCommand extends smithy_client_1.Command.classBuilder()
9
+ .m(function (Command, cs, config, o) {
10
+ return [
11
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
12
+ ];
13
+ })
14
+ .s("KnowledgeBase", "DeleteKnowledgeBase", {})
15
+ .n("KnowledgeBaseClient", "DeleteKnowledgeBaseCommand")
16
+ .f(void 0, void 0)
17
+ .ser(Aws_restJson1_1.se_DeleteKnowledgeBaseCommand)
18
+ .de(Aws_restJson1_1.de_DeleteKnowledgeBaseCommand)
19
+ .build() {
20
+ }
21
+ exports.DeleteKnowledgeBaseCommand = DeleteKnowledgeBaseCommand;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetAuthorizationSessionForDataSourceCommand = exports.$Command = void 0;
4
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ class GetAuthorizationSessionForDataSourceCommand extends smithy_client_1.Command.classBuilder()
9
+ .m(function (Command, cs, config, o) {
10
+ return [
11
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
12
+ ];
13
+ })
14
+ .s("KnowledgeBase", "GetAuthorizationSessionForDataSource", {})
15
+ .n("KnowledgeBaseClient", "GetAuthorizationSessionForDataSourceCommand")
16
+ .f(void 0, void 0)
17
+ .ser(Aws_restJson1_1.se_GetAuthorizationSessionForDataSourceCommand)
18
+ .de(Aws_restJson1_1.de_GetAuthorizationSessionForDataSourceCommand)
19
+ .build() {
20
+ }
21
+ exports.GetAuthorizationSessionForDataSourceCommand = GetAuthorizationSessionForDataSourceCommand;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetDataSourceCommand = exports.$Command = void 0;
4
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ class GetDataSourceCommand extends smithy_client_1.Command.classBuilder()
9
+ .m(function (Command, cs, config, o) {
10
+ return [
11
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
12
+ ];
13
+ })
14
+ .s("KnowledgeBase", "GetDataSource", {})
15
+ .n("KnowledgeBaseClient", "GetDataSourceCommand")
16
+ .f(void 0, void 0)
17
+ .ser(Aws_restJson1_1.se_GetDataSourceCommand)
18
+ .de(Aws_restJson1_1.de_GetDataSourceCommand)
19
+ .build() {
20
+ }
21
+ exports.GetDataSourceCommand = GetDataSourceCommand;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetDocumentCommand = exports.$Command = void 0;
4
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ class GetDocumentCommand extends smithy_client_1.Command.classBuilder()
9
+ .m(function (Command, cs, config, o) {
10
+ return [
11
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
12
+ ];
13
+ })
14
+ .s("KnowledgeBase", "GetDocument", {})
15
+ .n("KnowledgeBaseClient", "GetDocumentCommand")
16
+ .f(void 0, void 0)
17
+ .ser(Aws_restJson1_1.se_GetDocumentCommand)
18
+ .de(Aws_restJson1_1.de_GetDocumentCommand)
19
+ .build() {
20
+ }
21
+ exports.GetDocumentCommand = GetDocumentCommand;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetDocumentPresignedDownloadUrlCommand = exports.$Command = void 0;
4
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ class GetDocumentPresignedDownloadUrlCommand extends smithy_client_1.Command.classBuilder()
9
+ .m(function (Command, cs, config, o) {
10
+ return [
11
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
12
+ ];
13
+ })
14
+ .s("KnowledgeBase", "GetDocumentPresignedDownloadUrl", {})
15
+ .n("KnowledgeBaseClient", "GetDocumentPresignedDownloadUrlCommand")
16
+ .f(void 0, void 0)
17
+ .ser(Aws_restJson1_1.se_GetDocumentPresignedDownloadUrlCommand)
18
+ .de(Aws_restJson1_1.de_GetDocumentPresignedDownloadUrlCommand)
19
+ .build() {
20
+ }
21
+ exports.GetDocumentPresignedDownloadUrlCommand = GetDocumentPresignedDownloadUrlCommand;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetDocumentPresignedUploadUrlCommand = exports.$Command = void 0;
4
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ class GetDocumentPresignedUploadUrlCommand extends smithy_client_1.Command.classBuilder()
9
+ .m(function (Command, cs, config, o) {
10
+ return [
11
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
12
+ ];
13
+ })
14
+ .s("KnowledgeBase", "GetDocumentPresignedUploadUrl", {})
15
+ .n("KnowledgeBaseClient", "GetDocumentPresignedUploadUrlCommand")
16
+ .f(void 0, void 0)
17
+ .ser(Aws_restJson1_1.se_GetDocumentPresignedUploadUrlCommand)
18
+ .de(Aws_restJson1_1.de_GetDocumentPresignedUploadUrlCommand)
19
+ .build() {
20
+ }
21
+ exports.GetDocumentPresignedUploadUrlCommand = GetDocumentPresignedUploadUrlCommand;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetKnowledgeBaseCommand = exports.$Command = void 0;
4
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ class GetKnowledgeBaseCommand extends smithy_client_1.Command.classBuilder()
9
+ .m(function (Command, cs, config, o) {
10
+ return [
11
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
12
+ ];
13
+ })
14
+ .s("KnowledgeBase", "GetKnowledgeBase", {})
15
+ .n("KnowledgeBaseClient", "GetKnowledgeBaseCommand")
16
+ .f(void 0, void 0)
17
+ .ser(Aws_restJson1_1.se_GetKnowledgeBaseCommand)
18
+ .de(Aws_restJson1_1.de_GetKnowledgeBaseCommand)
19
+ .build() {
20
+ }
21
+ exports.GetKnowledgeBaseCommand = GetKnowledgeBaseCommand;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetSyncLogsCommand = exports.$Command = void 0;
4
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ class GetSyncLogsCommand extends smithy_client_1.Command.classBuilder()
9
+ .m(function (Command, cs, config, o) {
10
+ return [
11
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
12
+ ];
13
+ })
14
+ .s("KnowledgeBase", "GetSyncLogs", {})
15
+ .n("KnowledgeBaseClient", "GetSyncLogsCommand")
16
+ .f(void 0, void 0)
17
+ .ser(Aws_restJson1_1.se_GetSyncLogsCommand)
18
+ .de(Aws_restJson1_1.de_GetSyncLogsCommand)
19
+ .build() {
20
+ }
21
+ exports.GetSyncLogsCommand = GetSyncLogsCommand;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetSyncStatusCommand = exports.$Command = void 0;
4
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ class GetSyncStatusCommand extends smithy_client_1.Command.classBuilder()
9
+ .m(function (Command, cs, config, o) {
10
+ return [
11
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
12
+ ];
13
+ })
14
+ .s("KnowledgeBase", "GetSyncStatus", {})
15
+ .n("KnowledgeBaseClient", "GetSyncStatusCommand")
16
+ .f(void 0, void 0)
17
+ .ser(Aws_restJson1_1.se_GetSyncStatusCommand)
18
+ .de(Aws_restJson1_1.de_GetSyncStatusCommand)
19
+ .build() {
20
+ }
21
+ exports.GetSyncStatusCommand = GetSyncStatusCommand;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ListDataSourcesCommand = exports.$Command = void 0;
4
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ class ListDataSourcesCommand extends smithy_client_1.Command.classBuilder()
9
+ .m(function (Command, cs, config, o) {
10
+ return [
11
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
12
+ ];
13
+ })
14
+ .s("KnowledgeBase", "ListDataSources", {})
15
+ .n("KnowledgeBaseClient", "ListDataSourcesCommand")
16
+ .f(void 0, void 0)
17
+ .ser(Aws_restJson1_1.se_ListDataSourcesCommand)
18
+ .de(Aws_restJson1_1.de_ListDataSourcesCommand)
19
+ .build() {
20
+ }
21
+ exports.ListDataSourcesCommand = ListDataSourcesCommand;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ListDocumentsCommand = exports.$Command = void 0;
4
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ class ListDocumentsCommand extends smithy_client_1.Command.classBuilder()
9
+ .m(function (Command, cs, config, o) {
10
+ return [
11
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
12
+ ];
13
+ })
14
+ .s("KnowledgeBase", "ListDocuments", {})
15
+ .n("KnowledgeBaseClient", "ListDocumentsCommand")
16
+ .f(void 0, void 0)
17
+ .ser(Aws_restJson1_1.se_ListDocumentsCommand)
18
+ .de(Aws_restJson1_1.de_ListDocumentsCommand)
19
+ .build() {
20
+ }
21
+ exports.ListDocumentsCommand = ListDocumentsCommand;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ListKnowledgeBasesCommand = exports.$Command = void 0;
4
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ class ListKnowledgeBasesCommand extends smithy_client_1.Command.classBuilder()
9
+ .m(function (Command, cs, config, o) {
10
+ return [
11
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
12
+ ];
13
+ })
14
+ .s("KnowledgeBase", "ListKnowledgeBases", {})
15
+ .n("KnowledgeBaseClient", "ListKnowledgeBasesCommand")
16
+ .f(void 0, void 0)
17
+ .ser(Aws_restJson1_1.se_ListKnowledgeBasesCommand)
18
+ .de(Aws_restJson1_1.de_ListKnowledgeBasesCommand)
19
+ .build() {
20
+ }
21
+ exports.ListKnowledgeBasesCommand = ListKnowledgeBasesCommand;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.QueryKnowledgeBaseCommand = exports.$Command = void 0;
4
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ class QueryKnowledgeBaseCommand extends smithy_client_1.Command.classBuilder()
9
+ .m(function (Command, cs, config, o) {
10
+ return [
11
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
12
+ ];
13
+ })
14
+ .s("KnowledgeBase", "QueryKnowledgeBase", {})
15
+ .n("KnowledgeBaseClient", "QueryKnowledgeBaseCommand")
16
+ .f(void 0, void 0)
17
+ .ser(Aws_restJson1_1.se_QueryKnowledgeBaseCommand)
18
+ .de(Aws_restJson1_1.de_QueryKnowledgeBaseCommand)
19
+ .build() {
20
+ }
21
+ exports.QueryKnowledgeBaseCommand = QueryKnowledgeBaseCommand;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SearchKnowledgeBaseCommand = exports.$Command = void 0;
4
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ class SearchKnowledgeBaseCommand extends smithy_client_1.Command.classBuilder()
9
+ .m(function (Command, cs, config, o) {
10
+ return [
11
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
12
+ ];
13
+ })
14
+ .s("KnowledgeBase", "SearchKnowledgeBase", {})
15
+ .n("KnowledgeBaseClient", "SearchKnowledgeBaseCommand")
16
+ .f(void 0, void 0)
17
+ .ser(Aws_restJson1_1.se_SearchKnowledgeBaseCommand)
18
+ .de(Aws_restJson1_1.de_SearchKnowledgeBaseCommand)
19
+ .build() {
20
+ }
21
+ exports.SearchKnowledgeBaseCommand = SearchKnowledgeBaseCommand;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SyncDataSourceCommand = exports.$Command = void 0;
4
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ class SyncDataSourceCommand extends smithy_client_1.Command.classBuilder()
9
+ .m(function (Command, cs, config, o) {
10
+ return [
11
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
12
+ ];
13
+ })
14
+ .s("KnowledgeBase", "SyncDataSource", {})
15
+ .n("KnowledgeBaseClient", "SyncDataSourceCommand")
16
+ .f(void 0, void 0)
17
+ .ser(Aws_restJson1_1.se_SyncDataSourceCommand)
18
+ .de(Aws_restJson1_1.de_SyncDataSourceCommand)
19
+ .build() {
20
+ }
21
+ exports.SyncDataSourceCommand = SyncDataSourceCommand;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateDataSourceCommand = exports.$Command = void 0;
4
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ class UpdateDataSourceCommand extends smithy_client_1.Command.classBuilder()
9
+ .m(function (Command, cs, config, o) {
10
+ return [
11
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
12
+ ];
13
+ })
14
+ .s("KnowledgeBase", "UpdateDataSource", {})
15
+ .n("KnowledgeBaseClient", "UpdateDataSourceCommand")
16
+ .f(void 0, void 0)
17
+ .ser(Aws_restJson1_1.se_UpdateDataSourceCommand)
18
+ .de(Aws_restJson1_1.de_UpdateDataSourceCommand)
19
+ .build() {
20
+ }
21
+ exports.UpdateDataSourceCommand = UpdateDataSourceCommand;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateDocumentCommand = exports.$Command = void 0;
4
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ class UpdateDocumentCommand extends smithy_client_1.Command.classBuilder()
9
+ .m(function (Command, cs, config, o) {
10
+ return [
11
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
12
+ ];
13
+ })
14
+ .s("KnowledgeBase", "UpdateDocument", {})
15
+ .n("KnowledgeBaseClient", "UpdateDocumentCommand")
16
+ .f(void 0, void 0)
17
+ .ser(Aws_restJson1_1.se_UpdateDocumentCommand)
18
+ .de(Aws_restJson1_1.de_UpdateDocumentCommand)
19
+ .build() {
20
+ }
21
+ exports.UpdateDocumentCommand = UpdateDocumentCommand;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateKnowledgeBaseCommand = exports.$Command = void 0;
4
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ class UpdateKnowledgeBaseCommand extends smithy_client_1.Command.classBuilder()
9
+ .m(function (Command, cs, config, o) {
10
+ return [
11
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
12
+ ];
13
+ })
14
+ .s("KnowledgeBase", "UpdateKnowledgeBase", {})
15
+ .n("KnowledgeBaseClient", "UpdateKnowledgeBaseCommand")
16
+ .f(void 0, void 0)
17
+ .ser(Aws_restJson1_1.se_UpdateKnowledgeBaseCommand)
18
+ .de(Aws_restJson1_1.de_UpdateKnowledgeBaseCommand)
19
+ .build() {
20
+ }
21
+ exports.UpdateKnowledgeBaseCommand = UpdateKnowledgeBaseCommand;