@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
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListSkillsCommand = exports.$Command = void 0;
|
|
4
|
+
const client_1 = require("@smithy/core/client");
|
|
5
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return client_1.Command; } });
|
|
6
|
+
const endpoints_1 = require("@smithy/core/endpoints");
|
|
7
|
+
const EndpointParameters_1 = require("../endpoint/EndpointParameters");
|
|
8
|
+
const schemas_0_1 = require("../schemas/schemas_0");
|
|
9
|
+
class ListSkillsCommand extends client_1.Command
|
|
10
|
+
.classBuilder()
|
|
11
|
+
.ep(EndpointParameters_1.commonParams)
|
|
12
|
+
.m(function (Command, cs, config, o) {
|
|
13
|
+
return [(0, endpoints_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())];
|
|
14
|
+
})
|
|
15
|
+
.s("Wilma", "ListSkills", {})
|
|
16
|
+
.n("WilmaClient", "ListSkillsCommand")
|
|
17
|
+
.sc(schemas_0_1.ListSkills$)
|
|
18
|
+
.build() {
|
|
19
|
+
}
|
|
20
|
+
exports.ListSkillsCommand = ListSkillsCommand;
|
|
@@ -1,21 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.PatchOrganizationSettingsCommand = exports.$Command = void 0;
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
const client_1 = require("@smithy/core/client");
|
|
5
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return client_1.Command; } });
|
|
6
|
+
const endpoints_1 = require("@smithy/core/endpoints");
|
|
7
|
+
const EndpointParameters_1 = require("../endpoint/EndpointParameters");
|
|
8
|
+
const schemas_0_1 = require("../schemas/schemas_0");
|
|
9
|
+
class PatchOrganizationSettingsCommand extends client_1.Command
|
|
10
|
+
.classBuilder()
|
|
11
|
+
.ep(EndpointParameters_1.commonParams)
|
|
9
12
|
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [
|
|
11
|
-
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
12
|
-
];
|
|
13
|
+
return [(0, endpoints_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())];
|
|
13
14
|
})
|
|
14
15
|
.s("Wilma", "PatchOrganizationSettings", {})
|
|
15
16
|
.n("WilmaClient", "PatchOrganizationSettingsCommand")
|
|
16
|
-
.
|
|
17
|
-
.ser(Aws_restJson1_1.se_PatchOrganizationSettingsCommand)
|
|
18
|
-
.de(Aws_restJson1_1.de_PatchOrganizationSettingsCommand)
|
|
17
|
+
.sc(schemas_0_1.PatchOrganizationSettings$)
|
|
19
18
|
.build() {
|
|
20
19
|
}
|
|
21
20
|
exports.PatchOrganizationSettingsCommand = PatchOrganizationSettingsCommand;
|
|
@@ -1,21 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.PatchSettingsCommand = exports.$Command = void 0;
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
const client_1 = require("@smithy/core/client");
|
|
5
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return client_1.Command; } });
|
|
6
|
+
const endpoints_1 = require("@smithy/core/endpoints");
|
|
7
|
+
const EndpointParameters_1 = require("../endpoint/EndpointParameters");
|
|
8
|
+
const schemas_0_1 = require("../schemas/schemas_0");
|
|
9
|
+
class PatchSettingsCommand extends client_1.Command
|
|
10
|
+
.classBuilder()
|
|
11
|
+
.ep(EndpointParameters_1.commonParams)
|
|
9
12
|
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [
|
|
11
|
-
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
12
|
-
];
|
|
13
|
+
return [(0, endpoints_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())];
|
|
13
14
|
})
|
|
14
15
|
.s("Wilma", "PatchSettings", {})
|
|
15
16
|
.n("WilmaClient", "PatchSettingsCommand")
|
|
16
|
-
.
|
|
17
|
-
.ser(Aws_restJson1_1.se_PatchSettingsCommand)
|
|
18
|
-
.de(Aws_restJson1_1.de_PatchSettingsCommand)
|
|
17
|
+
.sc(schemas_0_1.PatchSettings$)
|
|
19
18
|
.build() {
|
|
20
19
|
}
|
|
21
20
|
exports.PatchSettingsCommand = PatchSettingsCommand;
|
|
@@ -1,21 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.UpdateAgentCommand = exports.$Command = void 0;
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
const client_1 = require("@smithy/core/client");
|
|
5
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return client_1.Command; } });
|
|
6
|
+
const endpoints_1 = require("@smithy/core/endpoints");
|
|
7
|
+
const EndpointParameters_1 = require("../endpoint/EndpointParameters");
|
|
8
|
+
const schemas_0_1 = require("../schemas/schemas_0");
|
|
9
|
+
class UpdateAgentCommand extends client_1.Command
|
|
10
|
+
.classBuilder()
|
|
11
|
+
.ep(EndpointParameters_1.commonParams)
|
|
9
12
|
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [
|
|
11
|
-
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
12
|
-
];
|
|
13
|
+
return [(0, endpoints_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())];
|
|
13
14
|
})
|
|
14
15
|
.s("Wilma", "UpdateAgent", {})
|
|
15
16
|
.n("WilmaClient", "UpdateAgentCommand")
|
|
16
|
-
.
|
|
17
|
-
.ser(Aws_restJson1_1.se_UpdateAgentCommand)
|
|
18
|
-
.de(Aws_restJson1_1.de_UpdateAgentCommand)
|
|
17
|
+
.sc(schemas_0_1.UpdateAgent$)
|
|
19
18
|
.build() {
|
|
20
19
|
}
|
|
21
20
|
exports.UpdateAgentCommand = UpdateAgentCommand;
|
|
@@ -1,21 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.UpdateGuidelineAccessCommand = exports.$Command = void 0;
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
const client_1 = require("@smithy/core/client");
|
|
5
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return client_1.Command; } });
|
|
6
|
+
const endpoints_1 = require("@smithy/core/endpoints");
|
|
7
|
+
const EndpointParameters_1 = require("../endpoint/EndpointParameters");
|
|
8
|
+
const schemas_0_1 = require("../schemas/schemas_0");
|
|
9
|
+
class UpdateGuidelineAccessCommand extends client_1.Command
|
|
10
|
+
.classBuilder()
|
|
11
|
+
.ep(EndpointParameters_1.commonParams)
|
|
9
12
|
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [
|
|
11
|
-
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
12
|
-
];
|
|
13
|
+
return [(0, endpoints_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())];
|
|
13
14
|
})
|
|
14
15
|
.s("Wilma", "UpdateGuidelineAccess", {})
|
|
15
16
|
.n("WilmaClient", "UpdateGuidelineAccessCommand")
|
|
16
|
-
.
|
|
17
|
-
.ser(Aws_restJson1_1.se_UpdateGuidelineAccessCommand)
|
|
18
|
-
.de(Aws_restJson1_1.de_UpdateGuidelineAccessCommand)
|
|
17
|
+
.sc(schemas_0_1.UpdateGuidelineAccess$)
|
|
19
18
|
.build() {
|
|
20
19
|
}
|
|
21
20
|
exports.UpdateGuidelineAccessCommand = UpdateGuidelineAccessCommand;
|
|
@@ -1,21 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.UpdateGuidelineCommand = exports.$Command = void 0;
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
const client_1 = require("@smithy/core/client");
|
|
5
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return client_1.Command; } });
|
|
6
|
+
const endpoints_1 = require("@smithy/core/endpoints");
|
|
7
|
+
const EndpointParameters_1 = require("../endpoint/EndpointParameters");
|
|
8
|
+
const schemas_0_1 = require("../schemas/schemas_0");
|
|
9
|
+
class UpdateGuidelineCommand extends client_1.Command
|
|
10
|
+
.classBuilder()
|
|
11
|
+
.ep(EndpointParameters_1.commonParams)
|
|
9
12
|
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [
|
|
11
|
-
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
12
|
-
];
|
|
13
|
+
return [(0, endpoints_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())];
|
|
13
14
|
})
|
|
14
15
|
.s("Wilma", "UpdateGuideline", {})
|
|
15
16
|
.n("WilmaClient", "UpdateGuidelineCommand")
|
|
16
|
-
.
|
|
17
|
-
.ser(Aws_restJson1_1.se_UpdateGuidelineCommand)
|
|
18
|
-
.de(Aws_restJson1_1.de_UpdateGuidelineCommand)
|
|
17
|
+
.sc(schemas_0_1.UpdateGuideline$)
|
|
19
18
|
.build() {
|
|
20
19
|
}
|
|
21
20
|
exports.UpdateGuidelineCommand = UpdateGuidelineCommand;
|
|
@@ -1,21 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.UpdateGuidelinesDirectoryCommand = exports.$Command = void 0;
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
const client_1 = require("@smithy/core/client");
|
|
5
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return client_1.Command; } });
|
|
6
|
+
const endpoints_1 = require("@smithy/core/endpoints");
|
|
7
|
+
const EndpointParameters_1 = require("../endpoint/EndpointParameters");
|
|
8
|
+
const schemas_0_1 = require("../schemas/schemas_0");
|
|
9
|
+
class UpdateGuidelinesDirectoryCommand extends client_1.Command
|
|
10
|
+
.classBuilder()
|
|
11
|
+
.ep(EndpointParameters_1.commonParams)
|
|
9
12
|
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [
|
|
11
|
-
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
12
|
-
];
|
|
13
|
+
return [(0, endpoints_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())];
|
|
13
14
|
})
|
|
14
15
|
.s("Wilma", "UpdateGuidelinesDirectory", {})
|
|
15
16
|
.n("WilmaClient", "UpdateGuidelinesDirectoryCommand")
|
|
16
|
-
.
|
|
17
|
-
.ser(Aws_restJson1_1.se_UpdateGuidelinesDirectoryCommand)
|
|
18
|
-
.de(Aws_restJson1_1.de_UpdateGuidelinesDirectoryCommand)
|
|
17
|
+
.sc(schemas_0_1.UpdateGuidelinesDirectory$)
|
|
19
18
|
.build() {
|
|
20
19
|
}
|
|
21
20
|
exports.UpdateGuidelinesDirectoryCommand = UpdateGuidelinesDirectoryCommand;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateSkillCommand = exports.$Command = void 0;
|
|
4
|
+
const client_1 = require("@smithy/core/client");
|
|
5
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return client_1.Command; } });
|
|
6
|
+
const endpoints_1 = require("@smithy/core/endpoints");
|
|
7
|
+
const EndpointParameters_1 = require("../endpoint/EndpointParameters");
|
|
8
|
+
const schemas_0_1 = require("../schemas/schemas_0");
|
|
9
|
+
class UpdateSkillCommand extends client_1.Command
|
|
10
|
+
.classBuilder()
|
|
11
|
+
.ep(EndpointParameters_1.commonParams)
|
|
12
|
+
.m(function (Command, cs, config, o) {
|
|
13
|
+
return [(0, endpoints_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())];
|
|
14
|
+
})
|
|
15
|
+
.s("Wilma", "UpdateSkill", {})
|
|
16
|
+
.n("WilmaClient", "UpdateSkillCommand")
|
|
17
|
+
.sc(schemas_0_1.UpdateSkill$)
|
|
18
|
+
.build() {
|
|
19
|
+
}
|
|
20
|
+
exports.UpdateSkillCommand = UpdateSkillCommand;
|
|
@@ -4,17 +4,26 @@ const tslib_1 = require("tslib");
|
|
|
4
4
|
tslib_1.__exportStar(require("./CreateAgentCommand"), exports);
|
|
5
5
|
tslib_1.__exportStar(require("./CreateGuidelineCommand"), exports);
|
|
6
6
|
tslib_1.__exportStar(require("./CreateGuidelinesDirectoryCommand"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./CreateSkillCommand"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./CreateSkillFileUploadCommand"), exports);
|
|
7
9
|
tslib_1.__exportStar(require("./DeleteAgentCommand"), exports);
|
|
8
10
|
tslib_1.__exportStar(require("./DeleteChatCommand"), exports);
|
|
11
|
+
tslib_1.__exportStar(require("./DeleteFileCommand"), exports);
|
|
9
12
|
tslib_1.__exportStar(require("./DeleteGuidelineCommand"), exports);
|
|
10
13
|
tslib_1.__exportStar(require("./DeleteGuidelinesDirectoryCommand"), exports);
|
|
14
|
+
tslib_1.__exportStar(require("./DeleteSkillCommand"), exports);
|
|
15
|
+
tslib_1.__exportStar(require("./DeleteSkillFileCommand"), exports);
|
|
11
16
|
tslib_1.__exportStar(require("./DislikeAnswerCommand"), exports);
|
|
17
|
+
tslib_1.__exportStar(require("./DownloadFileCommand"), exports);
|
|
12
18
|
tslib_1.__exportStar(require("./ExecuteAgentCommand"), exports);
|
|
13
19
|
tslib_1.__exportStar(require("./GetAgentCommand"), exports);
|
|
14
20
|
tslib_1.__exportStar(require("./GetChatCommand"), exports);
|
|
21
|
+
tslib_1.__exportStar(require("./GetFileCommand"), exports);
|
|
15
22
|
tslib_1.__exportStar(require("./GetGuidelineCommand"), exports);
|
|
16
23
|
tslib_1.__exportStar(require("./GetOrganizationSettingsCommand"), exports);
|
|
17
24
|
tslib_1.__exportStar(require("./GetSettingsCommand"), exports);
|
|
25
|
+
tslib_1.__exportStar(require("./GetSkillCommand"), exports);
|
|
26
|
+
tslib_1.__exportStar(require("./GetSkillFileDownloadCommand"), exports);
|
|
18
27
|
tslib_1.__exportStar(require("./LikeAnswerCommand"), exports);
|
|
19
28
|
tslib_1.__exportStar(require("./ListAgentFeedbacksCommand"), exports);
|
|
20
29
|
tslib_1.__exportStar(require("./ListAgentsCommand"), exports);
|
|
@@ -24,9 +33,11 @@ tslib_1.__exportStar(require("./ListFeedbacksCommand"), exports);
|
|
|
24
33
|
tslib_1.__exportStar(require("./ListGuidelinesCommand"), exports);
|
|
25
34
|
tslib_1.__exportStar(require("./ListGuidelinesDirectoriesCommand"), exports);
|
|
26
35
|
tslib_1.__exportStar(require("./ListGuidelinesNamesCommand"), exports);
|
|
36
|
+
tslib_1.__exportStar(require("./ListSkillsCommand"), exports);
|
|
27
37
|
tslib_1.__exportStar(require("./PatchOrganizationSettingsCommand"), exports);
|
|
28
38
|
tslib_1.__exportStar(require("./PatchSettingsCommand"), exports);
|
|
29
39
|
tslib_1.__exportStar(require("./UpdateAgentCommand"), exports);
|
|
30
|
-
tslib_1.__exportStar(require("./UpdateGuidelineCommand"), exports);
|
|
31
40
|
tslib_1.__exportStar(require("./UpdateGuidelineAccessCommand"), exports);
|
|
41
|
+
tslib_1.__exportStar(require("./UpdateGuidelineCommand"), exports);
|
|
32
42
|
tslib_1.__exportStar(require("./UpdateGuidelinesDirectoryCommand"), exports);
|
|
43
|
+
tslib_1.__exportStar(require("./UpdateSkillCommand"), exports);
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.commonParams = exports.resolveClientEndpointParameters = void 0;
|
|
4
|
+
const clientContextParamDefaults = {};
|
|
5
|
+
const resolveClientEndpointParameters = (options) => {
|
|
6
|
+
return Object.assign(options, {
|
|
7
|
+
env: options.env ?? "prod",
|
|
8
|
+
defaultSigningName: "",
|
|
9
|
+
clientContextParams: Object.assign(clientContextParamDefaults, options.clientContextParams),
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
exports.resolveClientEndpointParameters = resolveClientEndpointParameters;
|
|
13
|
+
exports.commonParams = {
|
|
14
|
+
env: { type: "clientContextParams", name: "env" },
|
|
15
|
+
endpoint: { type: "builtInParams", name: "endpoint" },
|
|
16
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.bdd = void 0;
|
|
4
|
+
const endpoints_1 = require("@smithy/core/endpoints");
|
|
5
|
+
const a = "stringEquals", b = { "ref": "endpoint" }, c = { "ref": "env" };
|
|
6
|
+
const _data = {
|
|
7
|
+
conditions: [
|
|
8
|
+
["isSet", [b]],
|
|
9
|
+
[a, [c, "stable"]],
|
|
10
|
+
[a, [c, "stage"]]
|
|
11
|
+
],
|
|
12
|
+
results: [
|
|
13
|
+
[-1],
|
|
14
|
+
[b, {}],
|
|
15
|
+
["https://wilma-stable.api.wildix.com", {}],
|
|
16
|
+
["https://wilma-stage.api.wildix.com", {}],
|
|
17
|
+
["https://wilma.api.wildix.com", {}]
|
|
18
|
+
]
|
|
19
|
+
};
|
|
20
|
+
const root = 2;
|
|
21
|
+
const r = 100_000_000;
|
|
22
|
+
const nodes = new Int32Array([
|
|
23
|
+
-1, 1, -1,
|
|
24
|
+
0, r + 1, 3,
|
|
25
|
+
1, r + 2, 4,
|
|
26
|
+
2, r + 3, r + 4,
|
|
27
|
+
]);
|
|
28
|
+
exports.bdd = endpoints_1.BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.defaultEndpointResolver = void 0;
|
|
4
|
+
const endpoints_1 = require("@smithy/core/endpoints");
|
|
5
|
+
const bdd_1 = require("./bdd");
|
|
6
|
+
const cache = new endpoints_1.EndpointCache({
|
|
7
|
+
size: 50,
|
|
8
|
+
params: ["endpoint", "env"],
|
|
9
|
+
});
|
|
10
|
+
const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
11
|
+
return cache.get(endpointParams, () => (0, endpoints_1.decideEndpoint)(bdd_1.bdd, {
|
|
12
|
+
endpointParams: endpointParams,
|
|
13
|
+
logger: context.logger,
|
|
14
|
+
}));
|
|
15
|
+
};
|
|
16
|
+
exports.defaultEndpointResolver = defaultEndpointResolver;
|
package/dist-cjs/index.js
CHANGED
|
@@ -5,6 +5,9 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
tslib_1.__exportStar(require("./WilmaClient"), exports);
|
|
6
6
|
tslib_1.__exportStar(require("./Wilma"), exports);
|
|
7
7
|
tslib_1.__exportStar(require("./commands"), exports);
|
|
8
|
-
tslib_1.__exportStar(require("./
|
|
8
|
+
tslib_1.__exportStar(require("./schemas/schemas_0"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./models/enums"), exports);
|
|
10
|
+
tslib_1.__exportStar(require("./models/errors"), exports);
|
|
11
|
+
tslib_1.__exportStar(require("./models/models_0"), exports);
|
|
9
12
|
var WilmaServiceException_1 = require("./models/WilmaServiceException");
|
|
10
13
|
Object.defineProperty(exports, "WilmaServiceException", { enumerable: true, get: function () { return WilmaServiceException_1.WilmaServiceException; } });
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.WilmaServiceException = exports.__ServiceException = void 0;
|
|
4
|
-
const
|
|
5
|
-
Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return
|
|
6
|
-
class WilmaServiceException extends
|
|
4
|
+
const client_1 = require("@smithy/core/client");
|
|
5
|
+
Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return client_1.ServiceException; } });
|
|
6
|
+
class WilmaServiceException extends client_1.ServiceException {
|
|
7
7
|
constructor(options) {
|
|
8
8
|
super(options);
|
|
9
9
|
Object.setPrototypeOf(this, WilmaServiceException.prototype);
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SkillFileKind = exports.GuidelineScope = exports.WilmaVisibility = exports.WilmaGrantPermission = exports.ChatFeedbackScore = exports.WilmaFileScope = exports.AgentVariableType = exports.WebSearchContextSize = exports.SandboxNetworkAccess = void 0;
|
|
4
|
+
exports.SandboxNetworkAccess = {
|
|
5
|
+
ALL: "allow-all",
|
|
6
|
+
ALLOWLIST: "allowlist",
|
|
7
|
+
NONE: "deny-all",
|
|
8
|
+
};
|
|
9
|
+
exports.WebSearchContextSize = {
|
|
10
|
+
HIGH: "high",
|
|
11
|
+
LOW: "low",
|
|
12
|
+
MEDIUM: "medium",
|
|
13
|
+
};
|
|
14
|
+
exports.AgentVariableType = {
|
|
15
|
+
BOOLEAN: "boolean",
|
|
16
|
+
NUMBER: "number",
|
|
17
|
+
NUMBER_ARRAY: "number_array",
|
|
18
|
+
STRING: "string",
|
|
19
|
+
STRING_ARRAY: "string_array",
|
|
20
|
+
};
|
|
21
|
+
exports.WilmaFileScope = {
|
|
22
|
+
AGENT: "agent",
|
|
23
|
+
USER: "user",
|
|
24
|
+
};
|
|
25
|
+
exports.ChatFeedbackScore = {
|
|
26
|
+
DISLIKE: "DISLIKE",
|
|
27
|
+
LIKE: "LIKE",
|
|
28
|
+
};
|
|
29
|
+
exports.WilmaGrantPermission = {
|
|
30
|
+
EDIT: "edit",
|
|
31
|
+
VIEW: "view",
|
|
32
|
+
};
|
|
33
|
+
exports.WilmaVisibility = {
|
|
34
|
+
EXPLICIT: "explicit",
|
|
35
|
+
ORGANIZATION: "organization",
|
|
36
|
+
};
|
|
37
|
+
exports.GuidelineScope = {
|
|
38
|
+
ORGANIZATION: "ORGANIZATION",
|
|
39
|
+
PERSONAL: "PERSONAL",
|
|
40
|
+
};
|
|
41
|
+
exports.SkillFileKind = {
|
|
42
|
+
REFERENCE: "reference",
|
|
43
|
+
RESOURCE: "resource",
|
|
44
|
+
SCRIPT: "script",
|
|
45
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ValidationException = exports.NotFoundException = exports.ForbiddenException = void 0;
|
|
4
|
+
const WilmaServiceException_1 = require("./WilmaServiceException");
|
|
5
|
+
class ForbiddenException extends WilmaServiceException_1.WilmaServiceException {
|
|
6
|
+
name = "ForbiddenException";
|
|
7
|
+
$fault = "client";
|
|
8
|
+
constructor(opts) {
|
|
9
|
+
super({
|
|
10
|
+
name: "ForbiddenException",
|
|
11
|
+
$fault: "client",
|
|
12
|
+
...opts,
|
|
13
|
+
});
|
|
14
|
+
Object.setPrototypeOf(this, ForbiddenException.prototype);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
exports.ForbiddenException = ForbiddenException;
|
|
18
|
+
class NotFoundException extends WilmaServiceException_1.WilmaServiceException {
|
|
19
|
+
name = "NotFoundException";
|
|
20
|
+
$fault = "client";
|
|
21
|
+
constructor(opts) {
|
|
22
|
+
super({
|
|
23
|
+
name: "NotFoundException",
|
|
24
|
+
$fault: "client",
|
|
25
|
+
...opts,
|
|
26
|
+
});
|
|
27
|
+
Object.setPrototypeOf(this, NotFoundException.prototype);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
exports.NotFoundException = NotFoundException;
|
|
31
|
+
class ValidationException extends WilmaServiceException_1.WilmaServiceException {
|
|
32
|
+
name = "ValidationException";
|
|
33
|
+
$fault = "client";
|
|
34
|
+
constructor(opts) {
|
|
35
|
+
super({
|
|
36
|
+
name: "ValidationException",
|
|
37
|
+
$fault: "client",
|
|
38
|
+
...opts,
|
|
39
|
+
});
|
|
40
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
exports.ValidationException = ValidationException;
|
|
@@ -1,98 +1,2 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GuidelineScope = exports.WilmaVisibility = exports.WilmaGrantPrincipal = exports.WilmaGrantPermission = exports.ChatFeedbackScore = exports.AgentVariableType = exports.AgentCapability = exports.AgentToolVariableHandler = exports.ValidationException = exports.NotFoundException = exports.ForbiddenException = void 0;
|
|
4
|
-
const WilmaServiceException_1 = require("./WilmaServiceException");
|
|
5
|
-
class ForbiddenException extends WilmaServiceException_1.WilmaServiceException {
|
|
6
|
-
name = "ForbiddenException";
|
|
7
|
-
$fault = "client";
|
|
8
|
-
constructor(opts) {
|
|
9
|
-
super({
|
|
10
|
-
name: "ForbiddenException",
|
|
11
|
-
$fault: "client",
|
|
12
|
-
...opts
|
|
13
|
-
});
|
|
14
|
-
Object.setPrototypeOf(this, ForbiddenException.prototype);
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
exports.ForbiddenException = ForbiddenException;
|
|
18
|
-
class NotFoundException extends WilmaServiceException_1.WilmaServiceException {
|
|
19
|
-
name = "NotFoundException";
|
|
20
|
-
$fault = "client";
|
|
21
|
-
constructor(opts) {
|
|
22
|
-
super({
|
|
23
|
-
name: "NotFoundException",
|
|
24
|
-
$fault: "client",
|
|
25
|
-
...opts
|
|
26
|
-
});
|
|
27
|
-
Object.setPrototypeOf(this, NotFoundException.prototype);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
exports.NotFoundException = NotFoundException;
|
|
31
|
-
class ValidationException extends WilmaServiceException_1.WilmaServiceException {
|
|
32
|
-
name = "ValidationException";
|
|
33
|
-
$fault = "client";
|
|
34
|
-
constructor(opts) {
|
|
35
|
-
super({
|
|
36
|
-
name: "ValidationException",
|
|
37
|
-
$fault: "client",
|
|
38
|
-
...opts
|
|
39
|
-
});
|
|
40
|
-
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
exports.ValidationException = ValidationException;
|
|
44
|
-
var AgentToolVariableHandler;
|
|
45
|
-
(function (AgentToolVariableHandler) {
|
|
46
|
-
AgentToolVariableHandler.visit = (value, visitor) => {
|
|
47
|
-
if (value.auto !== undefined)
|
|
48
|
-
return visitor.auto(value.auto);
|
|
49
|
-
if (value.guided !== undefined)
|
|
50
|
-
return visitor.guided(value.guided);
|
|
51
|
-
if (value.predefined !== undefined)
|
|
52
|
-
return visitor.predefined(value.predefined);
|
|
53
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
54
|
-
};
|
|
55
|
-
})(AgentToolVariableHandler || (exports.AgentToolVariableHandler = AgentToolVariableHandler = {}));
|
|
56
|
-
var AgentCapability;
|
|
57
|
-
(function (AgentCapability) {
|
|
58
|
-
AgentCapability.visit = (value, visitor) => {
|
|
59
|
-
if (value.tool !== undefined)
|
|
60
|
-
return visitor.tool(value.tool);
|
|
61
|
-
if (value.kb !== undefined)
|
|
62
|
-
return visitor.kb(value.kb);
|
|
63
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
64
|
-
};
|
|
65
|
-
})(AgentCapability || (exports.AgentCapability = AgentCapability = {}));
|
|
66
|
-
exports.AgentVariableType = {
|
|
67
|
-
BOOLEAN: "boolean",
|
|
68
|
-
NUMBER: "number",
|
|
69
|
-
NUMBER_ARRAY: "number_array",
|
|
70
|
-
STRING: "string",
|
|
71
|
-
STRING_ARRAY: "string_array",
|
|
72
|
-
};
|
|
73
|
-
exports.ChatFeedbackScore = {
|
|
74
|
-
DISLIKE: "DISLIKE",
|
|
75
|
-
LIKE: "LIKE",
|
|
76
|
-
};
|
|
77
|
-
exports.WilmaGrantPermission = {
|
|
78
|
-
EDIT: "edit",
|
|
79
|
-
VIEW: "view",
|
|
80
|
-
};
|
|
81
|
-
var WilmaGrantPrincipal;
|
|
82
|
-
(function (WilmaGrantPrincipal) {
|
|
83
|
-
WilmaGrantPrincipal.visit = (value, visitor) => {
|
|
84
|
-
if (value.userId !== undefined)
|
|
85
|
-
return visitor.userId(value.userId);
|
|
86
|
-
if (value.groupId !== undefined)
|
|
87
|
-
return visitor.groupId(value.groupId);
|
|
88
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
89
|
-
};
|
|
90
|
-
})(WilmaGrantPrincipal || (exports.WilmaGrantPrincipal = WilmaGrantPrincipal = {}));
|
|
91
|
-
exports.WilmaVisibility = {
|
|
92
|
-
EXPLICIT: "explicit",
|
|
93
|
-
ORGANIZATION: "organization",
|
|
94
|
-
};
|
|
95
|
-
exports.GuidelineScope = {
|
|
96
|
-
ORGANIZATION: "ORGANIZATION",
|
|
97
|
-
PERSONAL: "PERSONAL",
|
|
98
|
-
};
|
|
@@ -4,27 +4,27 @@ exports.getRuntimeConfig = void 0;
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const package_json_1 = tslib_1.__importDefault(require("../package.json"));
|
|
6
6
|
const sha256_browser_1 = require("@aws-crypto/sha256-browser");
|
|
7
|
-
const
|
|
7
|
+
const client_1 = require("@aws-sdk/core/client");
|
|
8
|
+
const client_2 = require("@smithy/core/client");
|
|
9
|
+
const config_1 = require("@smithy/core/config");
|
|
10
|
+
const retry_1 = require("@smithy/core/retry");
|
|
11
|
+
const serde_1 = require("@smithy/core/serde");
|
|
8
12
|
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
13
|
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
14
|
const getRuntimeConfig = (config) => {
|
|
15
|
-
const defaultsMode = (0,
|
|
16
|
-
const defaultConfigProvider = () => defaultsMode().then(
|
|
15
|
+
const defaultsMode = (0, config_1.resolveDefaultsModeConfig)(config);
|
|
16
|
+
const defaultConfigProvider = () => defaultsMode().then(client_2.loadConfigsForDefaultMode);
|
|
17
17
|
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
|
18
18
|
return {
|
|
19
19
|
...clientSharedValues,
|
|
20
20
|
...config,
|
|
21
21
|
runtime: "browser",
|
|
22
22
|
defaultsMode,
|
|
23
|
-
bodyLengthChecker: config?.bodyLengthChecker ??
|
|
24
|
-
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0,
|
|
25
|
-
maxAttempts: config?.maxAttempts ??
|
|
23
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? serde_1.calculateBodyLength,
|
|
24
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, client_1.createDefaultUserAgentProvider)({ clientVersion: package_json_1.default.version }),
|
|
25
|
+
maxAttempts: config?.maxAttempts ?? retry_1.DEFAULT_MAX_ATTEMPTS,
|
|
26
26
|
requestHandler: fetch_http_handler_1.FetchHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
27
|
-
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode ||
|
|
27
|
+
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || retry_1.DEFAULT_RETRY_MODE),
|
|
28
28
|
sha256: config?.sha256 ?? sha256_browser_1.Sha256,
|
|
29
29
|
streamCollector: config?.streamCollector ?? fetch_http_handler_1.streamCollector,
|
|
30
30
|
};
|