@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,32 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getRuntimeConfig = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const package_json_1 = tslib_1.__importDefault(require("../package.json"));
6
+ const sha256_browser_1 = require("@aws-crypto/sha256-browser");
7
+ const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
8
+ const fetch_http_handler_1 = require("@smithy/fetch-http-handler");
9
+ const util_body_length_browser_1 = require("@smithy/util-body-length-browser");
10
+ const util_retry_1 = require("@smithy/util-retry");
11
+ const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
12
+ const smithy_client_1 = require("@smithy/smithy-client");
13
+ const util_defaults_mode_browser_1 = require("@smithy/util-defaults-mode-browser");
14
+ const getRuntimeConfig = (config) => {
15
+ const defaultsMode = (0, util_defaults_mode_browser_1.resolveDefaultsModeConfig)(config);
16
+ const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
17
+ const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
18
+ return {
19
+ ...clientSharedValues,
20
+ ...config,
21
+ runtime: "browser",
22
+ defaultsMode,
23
+ bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_browser_1.calculateBodyLength,
24
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, util_user_agent_browser_1.createDefaultUserAgentProvider)({ serviceId: package_json_1.default.name, clientVersion: package_json_1.default.version }),
25
+ maxAttempts: config?.maxAttempts ?? util_retry_1.DEFAULT_MAX_ATTEMPTS,
26
+ requestHandler: fetch_http_handler_1.FetchHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
27
+ retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE),
28
+ sha256: config?.sha256 ?? sha256_browser_1.Sha256,
29
+ streamCollector: config?.streamCollector ?? fetch_http_handler_1.streamCollector,
30
+ };
31
+ };
32
+ exports.getRuntimeConfig = getRuntimeConfig;
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getRuntimeConfig = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const package_json_1 = tslib_1.__importDefault(require("../package.json"));
6
+ const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
7
+ const hash_node_1 = require("@smithy/hash-node");
8
+ const middleware_retry_1 = require("@smithy/middleware-retry");
9
+ const node_config_provider_1 = require("@smithy/node-config-provider");
10
+ const node_http_handler_1 = require("@smithy/node-http-handler");
11
+ const util_body_length_node_1 = require("@smithy/util-body-length-node");
12
+ const util_retry_1 = require("@smithy/util-retry");
13
+ const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
14
+ const smithy_client_1 = require("@smithy/smithy-client");
15
+ const util_defaults_mode_node_1 = require("@smithy/util-defaults-mode-node");
16
+ const smithy_client_2 = require("@smithy/smithy-client");
17
+ const getRuntimeConfig = (config) => {
18
+ (0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version);
19
+ const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
20
+ const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
21
+ const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
22
+ return {
23
+ ...clientSharedValues,
24
+ ...config,
25
+ runtime: "node",
26
+ defaultsMode,
27
+ bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
28
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: package_json_1.default.name, clientVersion: package_json_1.default.version }),
29
+ maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
30
+ requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
31
+ retryMode: config?.retryMode ?? (0, node_config_provider_1.loadConfig)({ ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS, default: async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE, }, config),
32
+ sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"),
33
+ streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
34
+ userAgentAppId: config?.userAgentAppId ?? (0, node_config_provider_1.loadConfig)(util_user_agent_node_1.NODE_APP_ID_CONFIG_OPTIONS, { profile: 'wildix' }),
35
+ };
36
+ };
37
+ exports.getRuntimeConfig = getRuntimeConfig;
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getRuntimeConfig = void 0;
4
+ const sha256_js_1 = require("@aws-crypto/sha256-js");
5
+ const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
6
+ const getRuntimeConfig = (config) => {
7
+ const browserDefaults = (0, runtimeConfig_browser_1.getRuntimeConfig)(config);
8
+ return {
9
+ ...browserDefaults,
10
+ ...config,
11
+ runtime: "react-native",
12
+ sha256: config?.sha256 ?? sha256_js_1.Sha256,
13
+ };
14
+ };
15
+ exports.getRuntimeConfig = getRuntimeConfig;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getRuntimeConfig = void 0;
4
+ const smithy_client_1 = require("@smithy/smithy-client");
5
+ const url_parser_1 = require("@smithy/url-parser");
6
+ const util_base64_1 = require("@smithy/util-base64");
7
+ const util_utf8_1 = require("@smithy/util-utf8");
8
+ const getRuntimeConfig = (config) => {
9
+ return {
10
+ apiVersion: "v1",
11
+ base64Decoder: config?.base64Decoder ?? util_base64_1.fromBase64,
12
+ base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64,
13
+ disableHostPrefix: config?.disableHostPrefix ?? false,
14
+ extensions: config?.extensions ?? [],
15
+ logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
16
+ urlParser: config?.urlParser ?? url_parser_1.parseUrl,
17
+ utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
18
+ utf8Encoder: config?.utf8Encoder ?? util_utf8_1.toUtf8,
19
+ };
20
+ };
21
+ exports.getRuntimeConfig = getRuntimeConfig;
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.resolveRuntimeExtensions = void 0;
4
+ const protocol_http_1 = require("@smithy/protocol-http");
5
+ const smithy_client_1 = require("@smithy/smithy-client");
6
+ const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
7
+ const extensionConfiguration = Object.assign((0, smithy_client_1.getDefaultExtensionConfiguration)(runtimeConfig), (0, protocol_http_1.getHttpHandlerExtensionConfiguration)(runtimeConfig));
8
+ extensions.forEach(extension => extension.configure(extensionConfiguration));
9
+ return Object.assign(runtimeConfig, (0, smithy_client_1.resolveDefaultRuntimeConfig)(extensionConfiguration), (0, protocol_http_1.resolveHttpHandlerRuntimeConfig)(extensionConfiguration));
10
+ };
11
+ exports.resolveRuntimeExtensions = resolveRuntimeExtensions;
@@ -0,0 +1,53 @@
1
+ import { KnowledgeBaseClient, } from "./KnowledgeBaseClient";
2
+ import { CreateDataSourceCommand, } from "./commands/CreateDataSourceCommand";
3
+ import { CreateDocumentCommand, } from "./commands/CreateDocumentCommand";
4
+ import { CreateKnowledgeBaseCommand, } from "./commands/CreateKnowledgeBaseCommand";
5
+ import { DeleteDataSourceCommand, } from "./commands/DeleteDataSourceCommand";
6
+ import { DeleteDocumentCommand, } from "./commands/DeleteDocumentCommand";
7
+ import { DeleteKnowledgeBaseCommand, } from "./commands/DeleteKnowledgeBaseCommand";
8
+ import { GetAuthorizationSessionForDataSourceCommand, } from "./commands/GetAuthorizationSessionForDataSourceCommand";
9
+ import { GetDataSourceCommand, } from "./commands/GetDataSourceCommand";
10
+ import { GetDocumentCommand, } from "./commands/GetDocumentCommand";
11
+ import { GetDocumentPresignedDownloadUrlCommand, } from "./commands/GetDocumentPresignedDownloadUrlCommand";
12
+ import { GetDocumentPresignedUploadUrlCommand, } from "./commands/GetDocumentPresignedUploadUrlCommand";
13
+ import { GetKnowledgeBaseCommand, } from "./commands/GetKnowledgeBaseCommand";
14
+ import { GetSyncLogsCommand, } from "./commands/GetSyncLogsCommand";
15
+ import { GetSyncStatusCommand, } from "./commands/GetSyncStatusCommand";
16
+ import { ListDataSourcesCommand, } from "./commands/ListDataSourcesCommand";
17
+ import { ListDocumentsCommand, } from "./commands/ListDocumentsCommand";
18
+ import { ListKnowledgeBasesCommand, } from "./commands/ListKnowledgeBasesCommand";
19
+ import { QueryKnowledgeBaseCommand, } from "./commands/QueryKnowledgeBaseCommand";
20
+ import { SearchKnowledgeBaseCommand, } from "./commands/SearchKnowledgeBaseCommand";
21
+ import { SyncDataSourceCommand, } from "./commands/SyncDataSourceCommand";
22
+ import { UpdateDataSourceCommand, } from "./commands/UpdateDataSourceCommand";
23
+ import { UpdateDocumentCommand, } from "./commands/UpdateDocumentCommand";
24
+ import { UpdateKnowledgeBaseCommand, } from "./commands/UpdateKnowledgeBaseCommand";
25
+ import { createAggregatedClient } from "@smithy/smithy-client";
26
+ const commands = {
27
+ CreateDataSourceCommand,
28
+ CreateDocumentCommand,
29
+ CreateKnowledgeBaseCommand,
30
+ DeleteDataSourceCommand,
31
+ DeleteDocumentCommand,
32
+ DeleteKnowledgeBaseCommand,
33
+ GetAuthorizationSessionForDataSourceCommand,
34
+ GetDataSourceCommand,
35
+ GetDocumentCommand,
36
+ GetDocumentPresignedDownloadUrlCommand,
37
+ GetDocumentPresignedUploadUrlCommand,
38
+ GetKnowledgeBaseCommand,
39
+ GetSyncLogsCommand,
40
+ GetSyncStatusCommand,
41
+ ListDataSourcesCommand,
42
+ ListDocumentsCommand,
43
+ ListKnowledgeBasesCommand,
44
+ QueryKnowledgeBaseCommand,
45
+ SearchKnowledgeBaseCommand,
46
+ SyncDataSourceCommand,
47
+ UpdateDataSourceCommand,
48
+ UpdateDocumentCommand,
49
+ UpdateKnowledgeBaseCommand,
50
+ };
51
+ export class KnowledgeBase extends KnowledgeBaseClient {
52
+ }
53
+ createAggregatedClient(commands, KnowledgeBase);
@@ -0,0 +1,37 @@
1
+ import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
2
+ import { resolveRuntimeExtensions, } from "./runtimeExtensions";
3
+ import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
4
+ import { getContentLengthPlugin } from "@smithy/middleware-content-length";
5
+ import { getRetryPlugin, resolveRetryConfig, } from "@smithy/middleware-retry";
6
+ import { Client as __Client, } from "@smithy/smithy-client";
7
+ import { authorizationMiddleware } from '@wildix/smithy-utils';
8
+ export { __Client };
9
+ export class KnowledgeBaseClient extends __Client {
10
+ config;
11
+ constructor(...[configuration]) {
12
+ let _config_0 = __getRuntimeConfig(configuration || {});
13
+ super(_config_0);
14
+ this.initConfig = _config_0;
15
+ let _config_1 = resolveUserAgentConfig(_config_0);
16
+ let _config_2 = resolveRetryConfig(_config_1);
17
+ let _config_3 = resolveRuntimeExtensions(_config_2, configuration?.extensions || []);
18
+ const hostname = ['stable', 'stage'].includes(configuration.env || '') ? `kb.wim-${configuration.env}.wildix.com` : 'kb.wim.wildix.com';
19
+ const endpoint = () => {
20
+ return {
21
+ hostname,
22
+ protocol: "https",
23
+ port: '443',
24
+ path: ''
25
+ };
26
+ };
27
+ const config = { ..._config_3, endpoint };
28
+ this.config = config;
29
+ this.middlewareStack.add(authorizationMiddleware.bind(this, configuration.token), { step: "build" });
30
+ this.middlewareStack.use(getUserAgentPlugin(this.config));
31
+ this.middlewareStack.use(getRetryPlugin(this.config));
32
+ this.middlewareStack.use(getContentLengthPlugin(this.config));
33
+ }
34
+ destroy() {
35
+ super.destroy();
36
+ }
37
+ }
@@ -0,0 +1,17 @@
1
+ import { de_CreateDataSourceCommand, se_CreateDataSourceCommand, } 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 CreateDataSourceCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("KnowledgeBase", "CreateDataSource", {})
12
+ .n("KnowledgeBaseClient", "CreateDataSourceCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_CreateDataSourceCommand)
15
+ .de(de_CreateDataSourceCommand)
16
+ .build() {
17
+ }
@@ -0,0 +1,17 @@
1
+ import { de_CreateDocumentCommand, se_CreateDocumentCommand, } 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 CreateDocumentCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("KnowledgeBase", "CreateDocument", {})
12
+ .n("KnowledgeBaseClient", "CreateDocumentCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_CreateDocumentCommand)
15
+ .de(de_CreateDocumentCommand)
16
+ .build() {
17
+ }
@@ -0,0 +1,17 @@
1
+ import { de_CreateKnowledgeBaseCommand, se_CreateKnowledgeBaseCommand, } 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 CreateKnowledgeBaseCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("KnowledgeBase", "CreateKnowledgeBase", {})
12
+ .n("KnowledgeBaseClient", "CreateKnowledgeBaseCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_CreateKnowledgeBaseCommand)
15
+ .de(de_CreateKnowledgeBaseCommand)
16
+ .build() {
17
+ }
@@ -0,0 +1,17 @@
1
+ import { de_DeleteDataSourceCommand, se_DeleteDataSourceCommand, } 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 DeleteDataSourceCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("KnowledgeBase", "DeleteDataSource", {})
12
+ .n("KnowledgeBaseClient", "DeleteDataSourceCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_DeleteDataSourceCommand)
15
+ .de(de_DeleteDataSourceCommand)
16
+ .build() {
17
+ }
@@ -0,0 +1,17 @@
1
+ import { de_DeleteDocumentCommand, se_DeleteDocumentCommand, } 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 DeleteDocumentCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("KnowledgeBase", "DeleteDocument", {})
12
+ .n("KnowledgeBaseClient", "DeleteDocumentCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_DeleteDocumentCommand)
15
+ .de(de_DeleteDocumentCommand)
16
+ .build() {
17
+ }
@@ -0,0 +1,17 @@
1
+ import { de_DeleteKnowledgeBaseCommand, se_DeleteKnowledgeBaseCommand, } 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 DeleteKnowledgeBaseCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("KnowledgeBase", "DeleteKnowledgeBase", {})
12
+ .n("KnowledgeBaseClient", "DeleteKnowledgeBaseCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_DeleteKnowledgeBaseCommand)
15
+ .de(de_DeleteKnowledgeBaseCommand)
16
+ .build() {
17
+ }
@@ -0,0 +1,17 @@
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
+ }
@@ -0,0 +1,17 @@
1
+ import { de_GetDataSourceCommand, se_GetDataSourceCommand, } 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 GetDataSourceCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("KnowledgeBase", "GetDataSource", {})
12
+ .n("KnowledgeBaseClient", "GetDataSourceCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_GetDataSourceCommand)
15
+ .de(de_GetDataSourceCommand)
16
+ .build() {
17
+ }
@@ -0,0 +1,17 @@
1
+ import { de_GetDocumentCommand, se_GetDocumentCommand, } 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 GetDocumentCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("KnowledgeBase", "GetDocument", {})
12
+ .n("KnowledgeBaseClient", "GetDocumentCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_GetDocumentCommand)
15
+ .de(de_GetDocumentCommand)
16
+ .build() {
17
+ }
@@ -0,0 +1,17 @@
1
+ import { de_GetDocumentPresignedDownloadUrlCommand, se_GetDocumentPresignedDownloadUrlCommand, } 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 GetDocumentPresignedDownloadUrlCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("KnowledgeBase", "GetDocumentPresignedDownloadUrl", {})
12
+ .n("KnowledgeBaseClient", "GetDocumentPresignedDownloadUrlCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_GetDocumentPresignedDownloadUrlCommand)
15
+ .de(de_GetDocumentPresignedDownloadUrlCommand)
16
+ .build() {
17
+ }
@@ -0,0 +1,17 @@
1
+ import { de_GetDocumentPresignedUploadUrlCommand, se_GetDocumentPresignedUploadUrlCommand, } 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 GetDocumentPresignedUploadUrlCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("KnowledgeBase", "GetDocumentPresignedUploadUrl", {})
12
+ .n("KnowledgeBaseClient", "GetDocumentPresignedUploadUrlCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_GetDocumentPresignedUploadUrlCommand)
15
+ .de(de_GetDocumentPresignedUploadUrlCommand)
16
+ .build() {
17
+ }
@@ -0,0 +1,17 @@
1
+ import { de_GetKnowledgeBaseCommand, se_GetKnowledgeBaseCommand, } 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 GetKnowledgeBaseCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("KnowledgeBase", "GetKnowledgeBase", {})
12
+ .n("KnowledgeBaseClient", "GetKnowledgeBaseCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_GetKnowledgeBaseCommand)
15
+ .de(de_GetKnowledgeBaseCommand)
16
+ .build() {
17
+ }
@@ -0,0 +1,17 @@
1
+ import { de_GetSyncLogsCommand, se_GetSyncLogsCommand, } 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 GetSyncLogsCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("KnowledgeBase", "GetSyncLogs", {})
12
+ .n("KnowledgeBaseClient", "GetSyncLogsCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_GetSyncLogsCommand)
15
+ .de(de_GetSyncLogsCommand)
16
+ .build() {
17
+ }
@@ -0,0 +1,17 @@
1
+ import { de_GetSyncStatusCommand, se_GetSyncStatusCommand, } 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 GetSyncStatusCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("KnowledgeBase", "GetSyncStatus", {})
12
+ .n("KnowledgeBaseClient", "GetSyncStatusCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_GetSyncStatusCommand)
15
+ .de(de_GetSyncStatusCommand)
16
+ .build() {
17
+ }
@@ -0,0 +1,17 @@
1
+ import { de_ListDataSourcesCommand, se_ListDataSourcesCommand, } 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 ListDataSourcesCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("KnowledgeBase", "ListDataSources", {})
12
+ .n("KnowledgeBaseClient", "ListDataSourcesCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_ListDataSourcesCommand)
15
+ .de(de_ListDataSourcesCommand)
16
+ .build() {
17
+ }
@@ -0,0 +1,17 @@
1
+ import { de_ListDocumentsCommand, se_ListDocumentsCommand, } 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 ListDocumentsCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("KnowledgeBase", "ListDocuments", {})
12
+ .n("KnowledgeBaseClient", "ListDocumentsCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_ListDocumentsCommand)
15
+ .de(de_ListDocumentsCommand)
16
+ .build() {
17
+ }
@@ -0,0 +1,17 @@
1
+ import { de_ListKnowledgeBasesCommand, se_ListKnowledgeBasesCommand, } 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 ListKnowledgeBasesCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("KnowledgeBase", "ListKnowledgeBases", {})
12
+ .n("KnowledgeBaseClient", "ListKnowledgeBasesCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_ListKnowledgeBasesCommand)
15
+ .de(de_ListKnowledgeBasesCommand)
16
+ .build() {
17
+ }
@@ -0,0 +1,17 @@
1
+ import { de_QueryKnowledgeBaseCommand, se_QueryKnowledgeBaseCommand, } 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 QueryKnowledgeBaseCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("KnowledgeBase", "QueryKnowledgeBase", {})
12
+ .n("KnowledgeBaseClient", "QueryKnowledgeBaseCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_QueryKnowledgeBaseCommand)
15
+ .de(de_QueryKnowledgeBaseCommand)
16
+ .build() {
17
+ }
@@ -0,0 +1,17 @@
1
+ import { de_SearchKnowledgeBaseCommand, se_SearchKnowledgeBaseCommand, } 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 SearchKnowledgeBaseCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("KnowledgeBase", "SearchKnowledgeBase", {})
12
+ .n("KnowledgeBaseClient", "SearchKnowledgeBaseCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_SearchKnowledgeBaseCommand)
15
+ .de(de_SearchKnowledgeBaseCommand)
16
+ .build() {
17
+ }
@@ -0,0 +1,17 @@
1
+ import { de_SyncDataSourceCommand, se_SyncDataSourceCommand, } 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 SyncDataSourceCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("KnowledgeBase", "SyncDataSource", {})
12
+ .n("KnowledgeBaseClient", "SyncDataSourceCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_SyncDataSourceCommand)
15
+ .de(de_SyncDataSourceCommand)
16
+ .build() {
17
+ }
@@ -0,0 +1,17 @@
1
+ import { de_UpdateDataSourceCommand, se_UpdateDataSourceCommand, } 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 UpdateDataSourceCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("KnowledgeBase", "UpdateDataSource", {})
12
+ .n("KnowledgeBaseClient", "UpdateDataSourceCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_UpdateDataSourceCommand)
15
+ .de(de_UpdateDataSourceCommand)
16
+ .build() {
17
+ }
@@ -0,0 +1,17 @@
1
+ import { de_UpdateDocumentCommand, se_UpdateDocumentCommand, } 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 UpdateDocumentCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("KnowledgeBase", "UpdateDocument", {})
12
+ .n("KnowledgeBaseClient", "UpdateDocumentCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_UpdateDocumentCommand)
15
+ .de(de_UpdateDocumentCommand)
16
+ .build() {
17
+ }
@@ -0,0 +1,17 @@
1
+ import { de_UpdateKnowledgeBaseCommand, se_UpdateKnowledgeBaseCommand, } 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 UpdateKnowledgeBaseCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("KnowledgeBase", "UpdateKnowledgeBase", {})
12
+ .n("KnowledgeBaseClient", "UpdateKnowledgeBaseCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_UpdateKnowledgeBaseCommand)
15
+ .de(de_UpdateKnowledgeBaseCommand)
16
+ .build() {
17
+ }