@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
|
@@ -1,17 +1,26 @@
|
|
|
1
1
|
export * from "./CreateAgentCommand";
|
|
2
2
|
export * from "./CreateGuidelineCommand";
|
|
3
3
|
export * from "./CreateGuidelinesDirectoryCommand";
|
|
4
|
+
export * from "./CreateSkillCommand";
|
|
5
|
+
export * from "./CreateSkillFileUploadCommand";
|
|
4
6
|
export * from "./DeleteAgentCommand";
|
|
5
7
|
export * from "./DeleteChatCommand";
|
|
8
|
+
export * from "./DeleteFileCommand";
|
|
6
9
|
export * from "./DeleteGuidelineCommand";
|
|
7
10
|
export * from "./DeleteGuidelinesDirectoryCommand";
|
|
11
|
+
export * from "./DeleteSkillCommand";
|
|
12
|
+
export * from "./DeleteSkillFileCommand";
|
|
8
13
|
export * from "./DislikeAnswerCommand";
|
|
14
|
+
export * from "./DownloadFileCommand";
|
|
9
15
|
export * from "./ExecuteAgentCommand";
|
|
10
16
|
export * from "./GetAgentCommand";
|
|
11
17
|
export * from "./GetChatCommand";
|
|
18
|
+
export * from "./GetFileCommand";
|
|
12
19
|
export * from "./GetGuidelineCommand";
|
|
13
20
|
export * from "./GetOrganizationSettingsCommand";
|
|
14
21
|
export * from "./GetSettingsCommand";
|
|
22
|
+
export * from "./GetSkillCommand";
|
|
23
|
+
export * from "./GetSkillFileDownloadCommand";
|
|
15
24
|
export * from "./LikeAnswerCommand";
|
|
16
25
|
export * from "./ListAgentFeedbacksCommand";
|
|
17
26
|
export * from "./ListAgentsCommand";
|
|
@@ -21,9 +30,11 @@ export * from "./ListFeedbacksCommand";
|
|
|
21
30
|
export * from "./ListGuidelinesCommand";
|
|
22
31
|
export * from "./ListGuidelinesDirectoriesCommand";
|
|
23
32
|
export * from "./ListGuidelinesNamesCommand";
|
|
33
|
+
export * from "./ListSkillsCommand";
|
|
24
34
|
export * from "./PatchOrganizationSettingsCommand";
|
|
25
35
|
export * from "./PatchSettingsCommand";
|
|
26
36
|
export * from "./UpdateAgentCommand";
|
|
27
|
-
export * from "./UpdateGuidelineCommand";
|
|
28
37
|
export * from "./UpdateGuidelineAccessCommand";
|
|
38
|
+
export * from "./UpdateGuidelineCommand";
|
|
29
39
|
export * from "./UpdateGuidelinesDirectoryCommand";
|
|
40
|
+
export * from "./UpdateSkillCommand";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
const clientContextParamDefaults = {};
|
|
2
|
+
export const resolveClientEndpointParameters = (options) => {
|
|
3
|
+
return Object.assign(options, {
|
|
4
|
+
env: options.env ?? "prod",
|
|
5
|
+
defaultSigningName: "",
|
|
6
|
+
clientContextParams: Object.assign(clientContextParamDefaults, options.clientContextParams),
|
|
7
|
+
});
|
|
8
|
+
};
|
|
9
|
+
export const commonParams = {
|
|
10
|
+
env: { type: "clientContextParams", name: "env" },
|
|
11
|
+
endpoint: { type: "builtInParams", name: "endpoint" },
|
|
12
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { BinaryDecisionDiagram } from "@smithy/core/endpoints";
|
|
2
|
+
const a = "stringEquals", b = { "ref": "endpoint" }, c = { "ref": "env" };
|
|
3
|
+
const _data = {
|
|
4
|
+
conditions: [
|
|
5
|
+
["isSet", [b]],
|
|
6
|
+
[a, [c, "stable"]],
|
|
7
|
+
[a, [c, "stage"]]
|
|
8
|
+
],
|
|
9
|
+
results: [
|
|
10
|
+
[-1],
|
|
11
|
+
[b, {}],
|
|
12
|
+
["https://wilma-stable.api.wildix.com", {}],
|
|
13
|
+
["https://wilma-stage.api.wildix.com", {}],
|
|
14
|
+
["https://wilma.api.wildix.com", {}]
|
|
15
|
+
]
|
|
16
|
+
};
|
|
17
|
+
const root = 2;
|
|
18
|
+
const r = 100_000_000;
|
|
19
|
+
const nodes = new Int32Array([
|
|
20
|
+
-1, 1, -1,
|
|
21
|
+
0, r + 1, 3,
|
|
22
|
+
1, r + 2, 4,
|
|
23
|
+
2, r + 3, r + 4,
|
|
24
|
+
]);
|
|
25
|
+
export const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { decideEndpoint, EndpointCache } from "@smithy/core/endpoints";
|
|
2
|
+
import { bdd } from "./bdd";
|
|
3
|
+
const cache = new EndpointCache({
|
|
4
|
+
size: 50,
|
|
5
|
+
params: ["endpoint", "env"],
|
|
6
|
+
});
|
|
7
|
+
export const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
8
|
+
return cache.get(endpointParams, () => decideEndpoint(bdd, {
|
|
9
|
+
endpointParams: endpointParams,
|
|
10
|
+
logger: context.logger,
|
|
11
|
+
}));
|
|
12
|
+
};
|
package/dist-es/index.js
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
export * from "./WilmaClient";
|
|
2
2
|
export * from "./Wilma";
|
|
3
3
|
export * from "./commands";
|
|
4
|
-
export * from "./
|
|
4
|
+
export * from "./schemas/schemas_0";
|
|
5
|
+
export * from "./models/enums";
|
|
6
|
+
export * from "./models/errors";
|
|
7
|
+
export * from "./models/models_0";
|
|
5
8
|
export { WilmaServiceException } from "./models/WilmaServiceException";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ServiceException as __ServiceException, } from "@smithy/
|
|
1
|
+
import { ServiceException as __ServiceException, } from "@smithy/core/client";
|
|
2
2
|
export { __ServiceException };
|
|
3
3
|
export class WilmaServiceException extends __ServiceException {
|
|
4
4
|
constructor(options) {
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
export const SandboxNetworkAccess = {
|
|
2
|
+
ALL: "allow-all",
|
|
3
|
+
ALLOWLIST: "allowlist",
|
|
4
|
+
NONE: "deny-all",
|
|
5
|
+
};
|
|
6
|
+
export const WebSearchContextSize = {
|
|
7
|
+
HIGH: "high",
|
|
8
|
+
LOW: "low",
|
|
9
|
+
MEDIUM: "medium",
|
|
10
|
+
};
|
|
11
|
+
export const AgentVariableType = {
|
|
12
|
+
BOOLEAN: "boolean",
|
|
13
|
+
NUMBER: "number",
|
|
14
|
+
NUMBER_ARRAY: "number_array",
|
|
15
|
+
STRING: "string",
|
|
16
|
+
STRING_ARRAY: "string_array",
|
|
17
|
+
};
|
|
18
|
+
export const WilmaFileScope = {
|
|
19
|
+
AGENT: "agent",
|
|
20
|
+
USER: "user",
|
|
21
|
+
};
|
|
22
|
+
export const ChatFeedbackScore = {
|
|
23
|
+
DISLIKE: "DISLIKE",
|
|
24
|
+
LIKE: "LIKE",
|
|
25
|
+
};
|
|
26
|
+
export const WilmaGrantPermission = {
|
|
27
|
+
EDIT: "edit",
|
|
28
|
+
VIEW: "view",
|
|
29
|
+
};
|
|
30
|
+
export const WilmaVisibility = {
|
|
31
|
+
EXPLICIT: "explicit",
|
|
32
|
+
ORGANIZATION: "organization",
|
|
33
|
+
};
|
|
34
|
+
export const GuidelineScope = {
|
|
35
|
+
ORGANIZATION: "ORGANIZATION",
|
|
36
|
+
PERSONAL: "PERSONAL",
|
|
37
|
+
};
|
|
38
|
+
export const SkillFileKind = {
|
|
39
|
+
REFERENCE: "reference",
|
|
40
|
+
RESOURCE: "resource",
|
|
41
|
+
SCRIPT: "script",
|
|
42
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { WilmaServiceException as __BaseException } from "./WilmaServiceException";
|
|
2
|
+
export class ForbiddenException extends __BaseException {
|
|
3
|
+
name = "ForbiddenException";
|
|
4
|
+
$fault = "client";
|
|
5
|
+
constructor(opts) {
|
|
6
|
+
super({
|
|
7
|
+
name: "ForbiddenException",
|
|
8
|
+
$fault: "client",
|
|
9
|
+
...opts,
|
|
10
|
+
});
|
|
11
|
+
Object.setPrototypeOf(this, ForbiddenException.prototype);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
export class NotFoundException extends __BaseException {
|
|
15
|
+
name = "NotFoundException";
|
|
16
|
+
$fault = "client";
|
|
17
|
+
constructor(opts) {
|
|
18
|
+
super({
|
|
19
|
+
name: "NotFoundException",
|
|
20
|
+
$fault: "client",
|
|
21
|
+
...opts,
|
|
22
|
+
});
|
|
23
|
+
Object.setPrototypeOf(this, NotFoundException.prototype);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
export class ValidationException extends __BaseException {
|
|
27
|
+
name = "ValidationException";
|
|
28
|
+
$fault = "client";
|
|
29
|
+
constructor(opts) {
|
|
30
|
+
super({
|
|
31
|
+
name: "ValidationException",
|
|
32
|
+
$fault: "client",
|
|
33
|
+
...opts,
|
|
34
|
+
});
|
|
35
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -1,92 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export class ForbiddenException extends __BaseException {
|
|
3
|
-
name = "ForbiddenException";
|
|
4
|
-
$fault = "client";
|
|
5
|
-
constructor(opts) {
|
|
6
|
-
super({
|
|
7
|
-
name: "ForbiddenException",
|
|
8
|
-
$fault: "client",
|
|
9
|
-
...opts
|
|
10
|
-
});
|
|
11
|
-
Object.setPrototypeOf(this, ForbiddenException.prototype);
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
export class NotFoundException extends __BaseException {
|
|
15
|
-
name = "NotFoundException";
|
|
16
|
-
$fault = "client";
|
|
17
|
-
constructor(opts) {
|
|
18
|
-
super({
|
|
19
|
-
name: "NotFoundException",
|
|
20
|
-
$fault: "client",
|
|
21
|
-
...opts
|
|
22
|
-
});
|
|
23
|
-
Object.setPrototypeOf(this, NotFoundException.prototype);
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
export class ValidationException extends __BaseException {
|
|
27
|
-
name = "ValidationException";
|
|
28
|
-
$fault = "client";
|
|
29
|
-
constructor(opts) {
|
|
30
|
-
super({
|
|
31
|
-
name: "ValidationException",
|
|
32
|
-
$fault: "client",
|
|
33
|
-
...opts
|
|
34
|
-
});
|
|
35
|
-
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
export var AgentToolVariableHandler;
|
|
39
|
-
(function (AgentToolVariableHandler) {
|
|
40
|
-
AgentToolVariableHandler.visit = (value, visitor) => {
|
|
41
|
-
if (value.auto !== undefined)
|
|
42
|
-
return visitor.auto(value.auto);
|
|
43
|
-
if (value.guided !== undefined)
|
|
44
|
-
return visitor.guided(value.guided);
|
|
45
|
-
if (value.predefined !== undefined)
|
|
46
|
-
return visitor.predefined(value.predefined);
|
|
47
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
48
|
-
};
|
|
49
|
-
})(AgentToolVariableHandler || (AgentToolVariableHandler = {}));
|
|
50
|
-
export var AgentCapability;
|
|
51
|
-
(function (AgentCapability) {
|
|
52
|
-
AgentCapability.visit = (value, visitor) => {
|
|
53
|
-
if (value.tool !== undefined)
|
|
54
|
-
return visitor.tool(value.tool);
|
|
55
|
-
if (value.kb !== undefined)
|
|
56
|
-
return visitor.kb(value.kb);
|
|
57
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
58
|
-
};
|
|
59
|
-
})(AgentCapability || (AgentCapability = {}));
|
|
60
|
-
export const AgentVariableType = {
|
|
61
|
-
BOOLEAN: "boolean",
|
|
62
|
-
NUMBER: "number",
|
|
63
|
-
NUMBER_ARRAY: "number_array",
|
|
64
|
-
STRING: "string",
|
|
65
|
-
STRING_ARRAY: "string_array",
|
|
66
|
-
};
|
|
67
|
-
export const ChatFeedbackScore = {
|
|
68
|
-
DISLIKE: "DISLIKE",
|
|
69
|
-
LIKE: "LIKE",
|
|
70
|
-
};
|
|
71
|
-
export const WilmaGrantPermission = {
|
|
72
|
-
EDIT: "edit",
|
|
73
|
-
VIEW: "view",
|
|
74
|
-
};
|
|
75
|
-
export var WilmaGrantPrincipal;
|
|
76
|
-
(function (WilmaGrantPrincipal) {
|
|
77
|
-
WilmaGrantPrincipal.visit = (value, visitor) => {
|
|
78
|
-
if (value.userId !== undefined)
|
|
79
|
-
return visitor.userId(value.userId);
|
|
80
|
-
if (value.groupId !== undefined)
|
|
81
|
-
return visitor.groupId(value.groupId);
|
|
82
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
83
|
-
};
|
|
84
|
-
})(WilmaGrantPrincipal || (WilmaGrantPrincipal = {}));
|
|
85
|
-
export const WilmaVisibility = {
|
|
86
|
-
EXPLICIT: "explicit",
|
|
87
|
-
ORGANIZATION: "organization",
|
|
88
|
-
};
|
|
89
|
-
export const GuidelineScope = {
|
|
90
|
-
ORGANIZATION: "ORGANIZATION",
|
|
91
|
-
PERSONAL: "PERSONAL",
|
|
92
|
-
};
|
|
1
|
+
export {};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import packageInfo from "../package.json";
|
|
2
2
|
import { Sha256 } from "@aws-crypto/sha256-browser";
|
|
3
|
-
import { createDefaultUserAgentProvider } from "@aws-sdk/
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE
|
|
3
|
+
import { createDefaultUserAgentProvider } from "@aws-sdk/core/client";
|
|
4
|
+
import { loadConfigsForDefaultMode } from "@smithy/core/client";
|
|
5
|
+
import { resolveDefaultsModeConfig } from "@smithy/core/config";
|
|
6
|
+
import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@smithy/core/retry";
|
|
7
|
+
import { calculateBodyLength } from "@smithy/core/serde";
|
|
8
|
+
import { FetchHttpHandler as RequestHandler, streamCollector } from "@smithy/fetch-http-handler";
|
|
7
9
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
8
|
-
import { loadConfigsForDefaultMode } from "@smithy/smithy-client";
|
|
9
|
-
import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-browser";
|
|
10
10
|
export const getRuntimeConfig = (config) => {
|
|
11
11
|
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
12
12
|
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
@@ -17,7 +17,7 @@ export const getRuntimeConfig = (config) => {
|
|
|
17
17
|
runtime: "browser",
|
|
18
18
|
defaultsMode,
|
|
19
19
|
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
20
|
-
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({
|
|
20
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ clientVersion: packageInfo.version }),
|
|
21
21
|
maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
|
|
22
22
|
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
23
23
|
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -1,32 +1,36 @@
|
|
|
1
1
|
import packageInfo from "../package.json";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { DEFAULT_RETRY_MODE } from "@smithy/util-retry";
|
|
2
|
+
import { createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS } from "@aws-sdk/core/client";
|
|
3
|
+
import { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } from "@smithy/core/client";
|
|
4
|
+
import { loadConfig as loadNodeConfig, resolveDefaultsModeConfig } from "@smithy/core/config";
|
|
5
|
+
import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@smithy/core/retry";
|
|
6
|
+
import { calculateBodyLength, Hash } from "@smithy/core/serde";
|
|
7
|
+
import { NodeHttpHandler as RequestHandler, streamCollector } from "@smithy/node-http-handler";
|
|
9
8
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
10
|
-
import { loadConfigsForDefaultMode } from "@smithy/smithy-client";
|
|
11
|
-
import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-node";
|
|
12
|
-
import { emitWarningIfUnsupportedVersion } from "@smithy/smithy-client";
|
|
13
9
|
export const getRuntimeConfig = (config) => {
|
|
14
10
|
emitWarningIfUnsupportedVersion(process.version);
|
|
15
11
|
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
16
12
|
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
17
13
|
const clientSharedValues = getSharedRuntimeConfig(config);
|
|
14
|
+
const loaderConfig = {
|
|
15
|
+
profile: config?.profile,
|
|
16
|
+
logger: clientSharedValues.logger,
|
|
17
|
+
};
|
|
18
18
|
return {
|
|
19
19
|
...clientSharedValues,
|
|
20
20
|
...config,
|
|
21
21
|
runtime: "node",
|
|
22
22
|
defaultsMode,
|
|
23
23
|
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
24
|
-
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({
|
|
24
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ clientVersion: packageInfo.version }),
|
|
25
25
|
maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
|
26
26
|
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
27
|
-
retryMode: config?.retryMode ??
|
|
27
|
+
retryMode: config?.retryMode ??
|
|
28
|
+
loadNodeConfig({
|
|
29
|
+
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
30
|
+
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
|
31
|
+
}, config),
|
|
28
32
|
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
29
33
|
streamCollector: config?.streamCollector ?? streamCollector,
|
|
30
|
-
userAgentAppId: config?.userAgentAppId ?? loadNodeConfig(NODE_APP_ID_CONFIG_OPTIONS,
|
|
34
|
+
userAgentAppId: config?.userAgentAppId ?? loadNodeConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
|
|
31
35
|
};
|
|
32
36
|
};
|
|
@@ -1,15 +1,35 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { AwsRestJsonProtocol } from "@aws-sdk/core/protocols";
|
|
2
|
+
import { HttpBearerAuthSigner } from "@smithy/core";
|
|
3
|
+
import { NoOpLogger } from "@smithy/core/client";
|
|
4
|
+
import { parseUrl } from "@smithy/core/protocols";
|
|
5
|
+
import { fromBase64, fromUtf8, toBase64, toUtf8 } from "@smithy/core/serde";
|
|
6
|
+
import { defaultWilmaHttpAuthSchemeProvider } from "./auth/httpAuthSchemeProvider";
|
|
7
|
+
import { defaultEndpointResolver } from "./endpoint/endpointResolver";
|
|
8
|
+
import { errorTypeRegistries } from "./schemas/schemas_0";
|
|
5
9
|
export const getRuntimeConfig = (config) => {
|
|
6
10
|
return {
|
|
7
11
|
apiVersion: "v1",
|
|
8
12
|
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
9
13
|
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
10
14
|
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
15
|
+
endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
|
|
11
16
|
extensions: config?.extensions ?? [],
|
|
17
|
+
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultWilmaHttpAuthSchemeProvider,
|
|
18
|
+
httpAuthSchemes: config?.httpAuthSchemes ?? [
|
|
19
|
+
{
|
|
20
|
+
schemeId: "smithy.api#httpBearerAuth",
|
|
21
|
+
identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#httpBearerAuth"),
|
|
22
|
+
signer: new HttpBearerAuthSigner(),
|
|
23
|
+
},
|
|
24
|
+
],
|
|
12
25
|
logger: config?.logger ?? new NoOpLogger(),
|
|
26
|
+
protocol: config?.protocol ?? AwsRestJsonProtocol,
|
|
27
|
+
protocolSettings: config?.protocolSettings ?? {
|
|
28
|
+
defaultNamespace: "wildix.wim.wilma",
|
|
29
|
+
errorTypeRegistries,
|
|
30
|
+
version: "v1",
|
|
31
|
+
serviceTarget: "Wilma",
|
|
32
|
+
},
|
|
13
33
|
urlParser: config?.urlParser ?? parseUrl,
|
|
14
34
|
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
15
35
|
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig } from "@smithy/core/client";
|
|
2
|
+
import { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig } from "@smithy/core/protocols";
|
|
3
|
+
import { getHttpAuthExtensionConfiguration, resolveHttpAuthRuntimeConfig } from "./auth/httpAuthExtensionConfiguration";
|
|
3
4
|
export const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
4
|
-
const extensionConfiguration = Object.assign(getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig));
|
|
5
|
-
extensions.forEach(extension => extension.configure(extensionConfiguration));
|
|
6
|
-
return Object.assign(runtimeConfig, resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration));
|
|
5
|
+
const extensionConfiguration = Object.assign(getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
6
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
7
|
+
return Object.assign(runtimeConfig, resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
7
8
|
};
|