@wildix/wim-wilma-client 0.0.11 → 3.1.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/Wilma.js +25 -3
- package/dist-cjs/WilmaClient.js +34 -26
- package/dist-cjs/auth/httpAuthExtensionConfiguration.js +43 -0
- package/dist-cjs/auth/httpAuthSchemeProvider.js +52 -0
- package/dist-cjs/commands/CreateAgentCommand.js +10 -11
- package/dist-cjs/commands/CreateGuidelineCommand.js +10 -11
- package/dist-cjs/commands/CreateGuidelinesDirectoryCommand.js +10 -11
- package/dist-cjs/commands/CreateSkillCommand.js +20 -0
- package/dist-cjs/commands/CreateSkillFileUploadCommand.js +20 -0
- package/dist-cjs/commands/DeleteAgentCommand.js +10 -11
- package/dist-cjs/commands/DeleteChatCommand.js +10 -11
- package/dist-cjs/commands/DeleteFileCommand.js +20 -0
- package/dist-cjs/commands/DeleteGuidelineCommand.js +10 -11
- package/dist-cjs/commands/DeleteGuidelinesDirectoryCommand.js +10 -11
- package/dist-cjs/commands/DeleteSkillCommand.js +20 -0
- package/dist-cjs/commands/DeleteSkillFileCommand.js +20 -0
- package/dist-cjs/commands/DislikeAnswerCommand.js +10 -11
- package/dist-cjs/commands/DownloadFileCommand.js +20 -0
- package/dist-cjs/commands/ExecuteAgentCommand.js +10 -11
- package/dist-cjs/commands/GetAgentCommand.js +10 -11
- package/dist-cjs/commands/GetChatCommand.js +10 -11
- package/dist-cjs/commands/GetFileCommand.js +20 -0
- package/dist-cjs/commands/GetGuidelineCommand.js +10 -11
- package/dist-cjs/commands/GetOrganizationSettingsCommand.js +10 -11
- package/dist-cjs/commands/GetSettingsCommand.js +10 -11
- package/dist-cjs/commands/GetSkillCommand.js +20 -0
- package/dist-cjs/commands/GetSkillFileDownloadCommand.js +20 -0
- package/dist-cjs/commands/LikeAnswerCommand.js +10 -11
- package/dist-cjs/commands/ListAgentFeedbacksCommand.js +10 -11
- package/dist-cjs/commands/ListAgentsCommand.js +10 -11
- package/dist-cjs/commands/ListAgentsNamesCommand.js +10 -11
- package/dist-cjs/commands/ListChatsCommand.js +10 -11
- package/dist-cjs/commands/ListFeedbacksCommand.js +10 -11
- package/dist-cjs/commands/ListGuidelinesCommand.js +10 -11
- package/dist-cjs/commands/ListGuidelinesDirectoriesCommand.js +10 -11
- package/dist-cjs/commands/ListGuidelinesNamesCommand.js +10 -11
- package/dist-cjs/commands/ListSkillsCommand.js +20 -0
- package/dist-cjs/commands/PatchOrganizationSettingsCommand.js +10 -11
- package/dist-cjs/commands/PatchSettingsCommand.js +10 -11
- package/dist-cjs/commands/UpdateAgentCommand.js +10 -11
- package/dist-cjs/commands/UpdateGuidelineAccessCommand.js +10 -11
- package/dist-cjs/commands/UpdateGuidelineCommand.js +10 -11
- package/dist-cjs/commands/UpdateGuidelinesDirectoryCommand.js +10 -11
- package/dist-cjs/commands/UpdateSkillCommand.js +20 -0
- package/dist-cjs/commands/index.js +12 -1
- package/dist-cjs/endpoint/EndpointParameters.js +16 -0
- package/dist-cjs/endpoint/bdd.js +28 -0
- package/dist-cjs/endpoint/endpointResolver.js +16 -0
- package/dist-cjs/index.js +4 -1
- package/dist-cjs/models/WilmaServiceException.js +3 -3
- package/dist-cjs/models/enums.js +45 -0
- package/dist-cjs/models/errors.js +43 -0
- package/dist-cjs/models/models_0.js +0 -96
- package/dist-cjs/runtimeConfig.browser.js +11 -11
- package/dist-cjs/runtimeConfig.js +22 -18
- package/dist-cjs/runtimeConfig.shared.js +30 -10
- package/dist-cjs/runtimeExtensions.js +6 -5
- package/dist-cjs/schemas/schemas_0.js +1110 -0
- package/dist-es/Wilma.js +27 -5
- package/dist-es/WilmaClient.js +30 -22
- package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +46 -0
- package/dist-es/commands/CreateAgentCommand.js +9 -10
- package/dist-es/commands/CreateGuidelineCommand.js +9 -10
- package/dist-es/commands/CreateGuidelinesDirectoryCommand.js +9 -10
- package/dist-es/commands/CreateSkillCommand.js +16 -0
- package/dist-es/commands/CreateSkillFileUploadCommand.js +16 -0
- package/dist-es/commands/DeleteAgentCommand.js +9 -10
- package/dist-es/commands/DeleteChatCommand.js +9 -10
- package/dist-es/commands/DeleteFileCommand.js +16 -0
- package/dist-es/commands/DeleteGuidelineCommand.js +9 -10
- package/dist-es/commands/DeleteGuidelinesDirectoryCommand.js +9 -10
- package/dist-es/commands/DeleteSkillCommand.js +16 -0
- package/dist-es/commands/DeleteSkillFileCommand.js +16 -0
- package/dist-es/commands/DislikeAnswerCommand.js +9 -10
- package/dist-es/commands/DownloadFileCommand.js +16 -0
- package/dist-es/commands/ExecuteAgentCommand.js +9 -10
- package/dist-es/commands/GetAgentCommand.js +9 -10
- package/dist-es/commands/GetChatCommand.js +9 -10
- package/dist-es/commands/GetFileCommand.js +16 -0
- package/dist-es/commands/GetGuidelineCommand.js +9 -10
- package/dist-es/commands/GetOrganizationSettingsCommand.js +9 -10
- package/dist-es/commands/GetSettingsCommand.js +9 -10
- package/dist-es/commands/GetSkillCommand.js +16 -0
- package/dist-es/commands/GetSkillFileDownloadCommand.js +16 -0
- package/dist-es/commands/LikeAnswerCommand.js +9 -10
- package/dist-es/commands/ListAgentFeedbacksCommand.js +9 -10
- package/dist-es/commands/ListAgentsCommand.js +9 -10
- package/dist-es/commands/ListAgentsNamesCommand.js +9 -10
- package/dist-es/commands/ListChatsCommand.js +9 -10
- package/dist-es/commands/ListFeedbacksCommand.js +9 -10
- package/dist-es/commands/ListGuidelinesCommand.js +9 -10
- package/dist-es/commands/ListGuidelinesDirectoriesCommand.js +9 -10
- package/dist-es/commands/ListGuidelinesNamesCommand.js +9 -10
- package/dist-es/commands/ListSkillsCommand.js +16 -0
- package/dist-es/commands/PatchOrganizationSettingsCommand.js +9 -10
- package/dist-es/commands/PatchSettingsCommand.js +9 -10
- package/dist-es/commands/UpdateAgentCommand.js +9 -10
- package/dist-es/commands/UpdateGuidelineAccessCommand.js +9 -10
- package/dist-es/commands/UpdateGuidelineCommand.js +9 -10
- package/dist-es/commands/UpdateGuidelinesDirectoryCommand.js +9 -10
- package/dist-es/commands/UpdateSkillCommand.js +16 -0
- package/dist-es/commands/index.js +12 -1
- package/dist-es/endpoint/EndpointParameters.js +12 -0
- package/dist-es/endpoint/bdd.js +25 -0
- package/dist-es/endpoint/endpointResolver.js +12 -0
- package/dist-es/index.js +4 -1
- package/dist-es/models/WilmaServiceException.js +1 -1
- package/dist-es/models/enums.js +42 -0
- package/dist-es/models/errors.js +37 -0
- package/dist-es/models/models_0.js +1 -92
- package/dist-es/runtimeConfig.browser.js +7 -7
- package/dist-es/runtimeConfig.js +17 -13
- package/dist-es/runtimeConfig.shared.js +24 -4
- package/dist-es/runtimeExtensions.js +6 -5
- package/dist-es/schemas/schemas_0.js +1104 -0
- package/dist-types/Wilma.d.ts +108 -30
- package/dist-types/WilmaClient.d.ts +72 -43
- package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +81 -0
- package/dist-types/commands/CreateAgentCommand.d.ts +127 -25
- package/dist-types/commands/CreateGuidelineCommand.d.ts +11 -7
- package/dist-types/commands/CreateGuidelinesDirectoryCommand.d.ts +11 -7
- package/dist-types/commands/CreateSkillCommand.d.ts +103 -0
- package/dist-types/commands/CreateSkillFileUploadCommand.d.ts +99 -0
- package/dist-types/commands/DeleteAgentCommand.d.ts +11 -7
- package/dist-types/commands/DeleteChatCommand.d.ts +11 -7
- package/dist-types/commands/DeleteFileCommand.d.ts +80 -0
- package/dist-types/commands/DeleteGuidelineCommand.d.ts +11 -7
- package/dist-types/commands/DeleteGuidelinesDirectoryCommand.d.ts +11 -7
- package/dist-types/commands/DeleteSkillCommand.d.ts +80 -0
- package/dist-types/commands/DeleteSkillFileCommand.d.ts +83 -0
- package/dist-types/commands/DislikeAnswerCommand.d.ts +11 -7
- package/dist-types/commands/DownloadFileCommand.d.ts +95 -0
- package/dist-types/commands/ExecuteAgentCommand.d.ts +28 -7
- package/dist-types/commands/GetAgentCommand.d.ts +69 -16
- package/dist-types/commands/GetChatCommand.d.ts +11 -7
- package/dist-types/commands/GetFileCommand.d.ts +93 -0
- package/dist-types/commands/GetGuidelineCommand.d.ts +11 -7
- package/dist-types/commands/GetOrganizationSettingsCommand.d.ts +11 -7
- package/dist-types/commands/GetSettingsCommand.d.ts +11 -7
- package/dist-types/commands/GetSkillCommand.d.ts +103 -0
- package/dist-types/commands/GetSkillFileDownloadCommand.d.ts +86 -0
- package/dist-types/commands/LikeAnswerCommand.d.ts +11 -7
- package/dist-types/commands/ListAgentFeedbacksCommand.d.ts +11 -7
- package/dist-types/commands/ListAgentsCommand.d.ts +69 -16
- package/dist-types/commands/ListAgentsNamesCommand.d.ts +11 -7
- package/dist-types/commands/ListChatsCommand.d.ts +11 -7
- package/dist-types/commands/ListFeedbacksCommand.d.ts +11 -7
- package/dist-types/commands/ListGuidelinesCommand.d.ts +11 -7
- package/dist-types/commands/ListGuidelinesDirectoriesCommand.d.ts +11 -7
- package/dist-types/commands/ListGuidelinesNamesCommand.d.ts +11 -7
- package/dist-types/commands/ListSkillsCommand.d.ts +92 -0
- package/dist-types/commands/PatchOrganizationSettingsCommand.d.ts +11 -7
- package/dist-types/commands/PatchSettingsCommand.d.ts +11 -7
- package/dist-types/commands/UpdateAgentCommand.d.ts +127 -25
- package/dist-types/commands/UpdateGuidelineAccessCommand.d.ts +11 -7
- package/dist-types/commands/UpdateGuidelineCommand.d.ts +11 -7
- package/dist-types/commands/UpdateGuidelinesDirectoryCommand.d.ts +11 -7
- package/dist-types/commands/UpdateSkillCommand.d.ts +106 -0
- package/dist-types/commands/index.d.ts +12 -1
- package/dist-types/endpoint/EndpointParameters.d.ts +41 -0
- package/dist-types/endpoint/bdd.d.ts +2 -0
- package/dist-types/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/extensionConfiguration.d.ts +4 -3
- package/dist-types/index.d.ts +5 -1
- package/dist-types/models/WilmaServiceException.d.ts +1 -1
- package/dist-types/models/enums.d.ts +129 -0
- package/dist-types/models/errors.d.ts +35 -0
- package/dist-types/models/models_0.d.ts +640 -162
- package/dist-types/runtimeConfig.browser.d.ts +37 -13
- package/dist-types/runtimeConfig.d.ts +36 -12
- package/dist-types/runtimeConfig.native.d.ts +37 -13
- package/dist-types/runtimeConfig.shared.d.ts +20 -3
- package/dist-types/runtimeExtensions.d.ts +1 -1
- package/dist-types/schemas/schemas_0.d.ts +172 -0
- package/package.json +14 -40
- package/dist-cjs/models/index.js +0 -4
- package/dist-cjs/protocols/Aws_restJson1.js +0 -1125
- package/dist-es/models/index.js +0 -1
- package/dist-es/protocols/Aws_restJson1.js +0 -1063
- package/dist-types/models/index.d.ts +0 -1
- package/dist-types/protocols/Aws_restJson1.d.ts +0 -263
|
@@ -3,35 +3,39 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.getRuntimeConfig = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const package_json_1 = tslib_1.__importDefault(require("../package.json"));
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
6
|
+
const client_1 = require("@aws-sdk/core/client");
|
|
7
|
+
const client_2 = require("@smithy/core/client");
|
|
8
|
+
const config_1 = require("@smithy/core/config");
|
|
9
|
+
const retry_1 = require("@smithy/core/retry");
|
|
10
|
+
const serde_1 = require("@smithy/core/serde");
|
|
10
11
|
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
12
|
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
13
|
const getRuntimeConfig = (config) => {
|
|
18
|
-
(0,
|
|
19
|
-
const defaultsMode = (0,
|
|
20
|
-
const defaultConfigProvider = () => defaultsMode().then(
|
|
14
|
+
(0, client_2.emitWarningIfUnsupportedVersion)(process.version);
|
|
15
|
+
const defaultsMode = (0, config_1.resolveDefaultsModeConfig)(config);
|
|
16
|
+
const defaultConfigProvider = () => defaultsMode().then(client_2.loadConfigsForDefaultMode);
|
|
21
17
|
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
|
18
|
+
const loaderConfig = {
|
|
19
|
+
profile: config?.profile,
|
|
20
|
+
logger: clientSharedValues.logger,
|
|
21
|
+
};
|
|
22
22
|
return {
|
|
23
23
|
...clientSharedValues,
|
|
24
24
|
...config,
|
|
25
25
|
runtime: "node",
|
|
26
26
|
defaultsMode,
|
|
27
|
-
bodyLengthChecker: config?.bodyLengthChecker ??
|
|
28
|
-
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0,
|
|
29
|
-
maxAttempts: config?.maxAttempts ?? (0,
|
|
27
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? serde_1.calculateBodyLength,
|
|
28
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, client_1.createDefaultUserAgentProvider)({ clientVersion: package_json_1.default.version }),
|
|
29
|
+
maxAttempts: config?.maxAttempts ?? (0, config_1.loadConfig)(retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
|
30
30
|
requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
31
|
-
retryMode: config?.retryMode ??
|
|
32
|
-
|
|
31
|
+
retryMode: config?.retryMode ??
|
|
32
|
+
(0, config_1.loadConfig)({
|
|
33
|
+
...retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
34
|
+
default: async () => (await defaultConfigProvider()).retryMode || retry_1.DEFAULT_RETRY_MODE,
|
|
35
|
+
}, config),
|
|
36
|
+
sha256: config?.sha256 ?? serde_1.Hash.bind(null, "sha256"),
|
|
33
37
|
streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
|
|
34
|
-
userAgentAppId: config?.userAgentAppId ?? (0,
|
|
38
|
+
userAgentAppId: config?.userAgentAppId ?? (0, config_1.loadConfig)(client_1.NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
|
|
35
39
|
};
|
|
36
40
|
};
|
|
37
41
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -1,21 +1,41 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getRuntimeConfig = void 0;
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const
|
|
4
|
+
const protocols_1 = require("@aws-sdk/core/protocols");
|
|
5
|
+
const core_1 = require("@smithy/core");
|
|
6
|
+
const client_1 = require("@smithy/core/client");
|
|
7
|
+
const protocols_2 = require("@smithy/core/protocols");
|
|
8
|
+
const serde_1 = require("@smithy/core/serde");
|
|
9
|
+
const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider");
|
|
10
|
+
const endpointResolver_1 = require("./endpoint/endpointResolver");
|
|
11
|
+
const schemas_0_1 = require("./schemas/schemas_0");
|
|
8
12
|
const getRuntimeConfig = (config) => {
|
|
9
13
|
return {
|
|
10
14
|
apiVersion: "v1",
|
|
11
|
-
base64Decoder: config?.base64Decoder ??
|
|
12
|
-
base64Encoder: config?.base64Encoder ??
|
|
15
|
+
base64Decoder: config?.base64Decoder ?? serde_1.fromBase64,
|
|
16
|
+
base64Encoder: config?.base64Encoder ?? serde_1.toBase64,
|
|
13
17
|
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
18
|
+
endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
|
|
14
19
|
extensions: config?.extensions ?? [],
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
20
|
+
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? httpAuthSchemeProvider_1.defaultWilmaHttpAuthSchemeProvider,
|
|
21
|
+
httpAuthSchemes: config?.httpAuthSchemes ?? [
|
|
22
|
+
{
|
|
23
|
+
schemeId: "smithy.api#httpBearerAuth",
|
|
24
|
+
identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#httpBearerAuth"),
|
|
25
|
+
signer: new core_1.HttpBearerAuthSigner(),
|
|
26
|
+
},
|
|
27
|
+
],
|
|
28
|
+
logger: config?.logger ?? new client_1.NoOpLogger(),
|
|
29
|
+
protocol: config?.protocol ?? protocols_1.AwsRestJsonProtocol,
|
|
30
|
+
protocolSettings: config?.protocolSettings ?? {
|
|
31
|
+
defaultNamespace: "wildix.wim.wilma",
|
|
32
|
+
errorTypeRegistries: schemas_0_1.errorTypeRegistries,
|
|
33
|
+
version: "v1",
|
|
34
|
+
serviceTarget: "Wilma",
|
|
35
|
+
},
|
|
36
|
+
urlParser: config?.urlParser ?? protocols_2.parseUrl,
|
|
37
|
+
utf8Decoder: config?.utf8Decoder ?? serde_1.fromUtf8,
|
|
38
|
+
utf8Encoder: config?.utf8Encoder ?? serde_1.toUtf8,
|
|
19
39
|
};
|
|
20
40
|
};
|
|
21
41
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.resolveRuntimeExtensions = void 0;
|
|
4
|
-
const
|
|
5
|
-
const
|
|
4
|
+
const client_1 = require("@smithy/core/client");
|
|
5
|
+
const protocols_1 = require("@smithy/core/protocols");
|
|
6
|
+
const httpAuthExtensionConfiguration_1 = require("./auth/httpAuthExtensionConfiguration");
|
|
6
7
|
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
7
|
-
const extensionConfiguration = Object.assign((0,
|
|
8
|
-
extensions.forEach(extension => extension.configure(extensionConfiguration));
|
|
9
|
-
return Object.assign(runtimeConfig, (0,
|
|
8
|
+
const extensionConfiguration = Object.assign((0, client_1.getDefaultExtensionConfiguration)(runtimeConfig), (0, protocols_1.getHttpHandlerExtensionConfiguration)(runtimeConfig), (0, httpAuthExtensionConfiguration_1.getHttpAuthExtensionConfiguration)(runtimeConfig));
|
|
9
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
10
|
+
return Object.assign(runtimeConfig, (0, client_1.resolveDefaultRuntimeConfig)(extensionConfiguration), (0, protocols_1.resolveHttpHandlerRuntimeConfig)(extensionConfiguration), (0, httpAuthExtensionConfiguration_1.resolveHttpAuthRuntimeConfig)(extensionConfiguration));
|
|
10
11
|
};
|
|
11
12
|
exports.resolveRuntimeExtensions = resolveRuntimeExtensions;
|