@wildix/wilma-copilot-sessions-client 1.0.2
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/WilmaCopilotSessions.js +15 -0
- package/dist-cjs/WilmaCopilotSessionsClient.js +49 -0
- package/dist-cjs/auth/httpAuthExtensionConfiguration.js +43 -0
- package/dist-cjs/auth/httpAuthSchemeProvider.js +58 -0
- package/dist-cjs/commands/GetCopilotSessionEventsCommand.js +20 -0
- package/dist-cjs/commands/StreamCopilotSessionEventsCommand.js +20 -0
- package/dist-cjs/commands/index.js +5 -0
- 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/extensionConfiguration.js +2 -0
- package/dist-cjs/index.js +13 -0
- package/dist-cjs/models/WilmaCopilotSessionsServiceException.js +12 -0
- package/dist-cjs/models/enums.js +130 -0
- package/dist-cjs/models/errors.js +43 -0
- package/dist-cjs/models/models_0.js +2 -0
- package/dist-cjs/runtimeConfig.browser.js +32 -0
- package/dist-cjs/runtimeConfig.js +41 -0
- package/dist-cjs/runtimeConfig.native.js +15 -0
- package/dist-cjs/runtimeConfig.shared.js +42 -0
- package/dist-cjs/runtimeExtensions.js +12 -0
- package/dist-cjs/schemas/schemas_0.js +424 -0
- package/dist-es/WilmaCopilotSessions.js +11 -0
- package/dist-es/WilmaCopilotSessionsClient.js +45 -0
- package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +52 -0
- package/dist-es/commands/GetCopilotSessionEventsCommand.js +16 -0
- package/dist-es/commands/StreamCopilotSessionEventsCommand.js +16 -0
- package/dist-es/commands/index.js +2 -0
- 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/extensionConfiguration.js +1 -0
- package/dist-es/index.js +8 -0
- package/dist-es/models/WilmaCopilotSessionsServiceException.js +8 -0
- package/dist-es/models/enums.js +127 -0
- package/dist-es/models/errors.js +37 -0
- package/dist-es/models/models_0.js +1 -0
- package/dist-es/runtimeConfig.browser.js +27 -0
- package/dist-es/runtimeConfig.js +36 -0
- package/dist-es/runtimeConfig.native.js +11 -0
- package/dist-es/runtimeConfig.shared.js +38 -0
- package/dist-es/runtimeExtensions.js +8 -0
- package/dist-es/schemas/schemas_0.js +421 -0
- package/dist-types/WilmaCopilotSessions.d.ts +33 -0
- package/dist-types/WilmaCopilotSessionsClient.d.ts +178 -0
- package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +81 -0
- package/dist-types/commands/GetCopilotSessionEventsCommand.d.ts +379 -0
- package/dist-types/commands/StreamCopilotSessionEventsCommand.d.ts +88 -0
- package/dist-types/commands/index.d.ts +2 -0
- 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 +8 -0
- package/dist-types/index.d.ts +25 -0
- package/dist-types/models/WilmaCopilotSessionsServiceException.d.ts +14 -0
- package/dist-types/models/enums.d.ts +275 -0
- package/dist-types/models/errors.d.ts +35 -0
- package/dist-types/models/models_0.d.ts +757 -0
- package/dist-types/runtimeConfig.browser.d.ts +56 -0
- package/dist-types/runtimeConfig.d.ts +56 -0
- package/dist-types/runtimeConfig.native.d.ts +55 -0
- package/dist-types/runtimeConfig.shared.d.ts +33 -0
- package/dist-types/runtimeExtensions.d.ts +17 -0
- package/dist-types/schemas/schemas_0.d.ts +50 -0
- package/package.json +57 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WilmaCopilotSessions = void 0;
|
|
4
|
+
const client_1 = require("@smithy/core/client");
|
|
5
|
+
const GetCopilotSessionEventsCommand_1 = require("./commands/GetCopilotSessionEventsCommand");
|
|
6
|
+
const StreamCopilotSessionEventsCommand_1 = require("./commands/StreamCopilotSessionEventsCommand");
|
|
7
|
+
const WilmaCopilotSessionsClient_1 = require("./WilmaCopilotSessionsClient");
|
|
8
|
+
const commands = {
|
|
9
|
+
GetCopilotSessionEventsCommand: GetCopilotSessionEventsCommand_1.GetCopilotSessionEventsCommand,
|
|
10
|
+
StreamCopilotSessionEventsCommand: StreamCopilotSessionEventsCommand_1.StreamCopilotSessionEventsCommand,
|
|
11
|
+
};
|
|
12
|
+
class WilmaCopilotSessions extends WilmaCopilotSessionsClient_1.WilmaCopilotSessionsClient {
|
|
13
|
+
}
|
|
14
|
+
exports.WilmaCopilotSessions = WilmaCopilotSessions;
|
|
15
|
+
(0, client_1.createAggregatedClient)(commands, WilmaCopilotSessions);
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WilmaCopilotSessionsClient = exports.__Client = void 0;
|
|
4
|
+
const client_1 = require("@aws-sdk/core/client");
|
|
5
|
+
const core_1 = require("@smithy/core");
|
|
6
|
+
const client_2 = require("@smithy/core/client");
|
|
7
|
+
Object.defineProperty(exports, "__Client", { enumerable: true, get: function () { return client_2.Client; } });
|
|
8
|
+
const endpoints_1 = require("@smithy/core/endpoints");
|
|
9
|
+
const protocols_1 = require("@smithy/core/protocols");
|
|
10
|
+
const retry_1 = require("@smithy/core/retry");
|
|
11
|
+
const schema_1 = require("@smithy/core/schema");
|
|
12
|
+
const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider");
|
|
13
|
+
const EndpointParameters_1 = require("./endpoint/EndpointParameters");
|
|
14
|
+
const runtimeConfig_1 = require("./runtimeConfig");
|
|
15
|
+
const runtimeExtensions_1 = require("./runtimeExtensions");
|
|
16
|
+
class WilmaCopilotSessionsClient extends client_2.Client {
|
|
17
|
+
config;
|
|
18
|
+
constructor(...[configuration]) {
|
|
19
|
+
const _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration || {});
|
|
20
|
+
super(_config_0);
|
|
21
|
+
this.initConfig = _config_0;
|
|
22
|
+
const _config_1 = (0, EndpointParameters_1.resolveClientEndpointParameters)(_config_0);
|
|
23
|
+
const _config_2 = (0, client_1.resolveUserAgentConfig)(_config_1);
|
|
24
|
+
const _config_3 = (0, retry_1.resolveRetryConfig)(_config_2);
|
|
25
|
+
const _config_4 = (0, client_1.resolveHostHeaderConfig)(_config_3);
|
|
26
|
+
const _config_5 = (0, endpoints_1.resolveEndpointConfig)(_config_4);
|
|
27
|
+
const _config_6 = (0, httpAuthSchemeProvider_1.resolveHttpAuthSchemeConfig)(_config_5);
|
|
28
|
+
const _config_7 = (0, runtimeExtensions_1.resolveRuntimeExtensions)(_config_6, configuration?.extensions || []);
|
|
29
|
+
this.config = _config_7;
|
|
30
|
+
this.middlewareStack.use((0, schema_1.getSchemaSerdePlugin)(this.config));
|
|
31
|
+
this.middlewareStack.use((0, client_1.getUserAgentPlugin)(this.config));
|
|
32
|
+
this.middlewareStack.use((0, retry_1.getRetryPlugin)(this.config));
|
|
33
|
+
this.middlewareStack.use((0, protocols_1.getContentLengthPlugin)(this.config));
|
|
34
|
+
this.middlewareStack.use((0, client_1.getHostHeaderPlugin)(this.config));
|
|
35
|
+
this.middlewareStack.use((0, client_1.getLoggerPlugin)(this.config));
|
|
36
|
+
this.middlewareStack.use((0, client_1.getRecursionDetectionPlugin)(this.config));
|
|
37
|
+
this.middlewareStack.use((0, core_1.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
|
|
38
|
+
httpAuthSchemeParametersProvider: httpAuthSchemeProvider_1.defaultWilmaCopilotSessionsHttpAuthSchemeParametersProvider,
|
|
39
|
+
identityProviderConfigProvider: async (config) => new core_1.DefaultIdentityProviderConfig({
|
|
40
|
+
"smithy.api#httpBearerAuth": config.token,
|
|
41
|
+
}),
|
|
42
|
+
}));
|
|
43
|
+
this.middlewareStack.use((0, core_1.getHttpSigningPlugin)(this.config));
|
|
44
|
+
}
|
|
45
|
+
destroy() {
|
|
46
|
+
super.destroy();
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
exports.WilmaCopilotSessionsClient = WilmaCopilotSessionsClient;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.resolveHttpAuthRuntimeConfig = exports.getHttpAuthExtensionConfiguration = void 0;
|
|
4
|
+
const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
5
|
+
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
6
|
+
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
7
|
+
let _token = runtimeConfig.token;
|
|
8
|
+
return {
|
|
9
|
+
setHttpAuthScheme(httpAuthScheme) {
|
|
10
|
+
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
11
|
+
if (index === -1) {
|
|
12
|
+
_httpAuthSchemes.push(httpAuthScheme);
|
|
13
|
+
}
|
|
14
|
+
else {
|
|
15
|
+
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
httpAuthSchemes() {
|
|
19
|
+
return _httpAuthSchemes;
|
|
20
|
+
},
|
|
21
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
|
22
|
+
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
|
23
|
+
},
|
|
24
|
+
httpAuthSchemeProvider() {
|
|
25
|
+
return _httpAuthSchemeProvider;
|
|
26
|
+
},
|
|
27
|
+
setToken(token) {
|
|
28
|
+
_token = token;
|
|
29
|
+
},
|
|
30
|
+
token() {
|
|
31
|
+
return _token;
|
|
32
|
+
},
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
exports.getHttpAuthExtensionConfiguration = getHttpAuthExtensionConfiguration;
|
|
36
|
+
const resolveHttpAuthRuntimeConfig = (config) => {
|
|
37
|
+
return {
|
|
38
|
+
httpAuthSchemes: config.httpAuthSchemes(),
|
|
39
|
+
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
40
|
+
token: config.token(),
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
exports.resolveHttpAuthRuntimeConfig = resolveHttpAuthRuntimeConfig;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.resolveHttpAuthSchemeConfig = exports.defaultWilmaCopilotSessionsHttpAuthSchemeProvider = exports.defaultWilmaCopilotSessionsHttpAuthSchemeParametersProvider = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
5
|
+
const client_1 = require("@smithy/core/client");
|
|
6
|
+
const defaultWilmaCopilotSessionsHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
7
|
+
return {
|
|
8
|
+
operation: (0, client_1.getSmithyContext)(context).operation,
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
exports.defaultWilmaCopilotSessionsHttpAuthSchemeParametersProvider = defaultWilmaCopilotSessionsHttpAuthSchemeParametersProvider;
|
|
12
|
+
function createSmithyApiHttpBearerAuthHttpAuthOption(authParameters) {
|
|
13
|
+
return {
|
|
14
|
+
schemeId: "smithy.api#httpBearerAuth",
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
function createWildixAuthApiKeysHttpAuthOption(authParameters) {
|
|
18
|
+
return {
|
|
19
|
+
schemeId: "wildix.auth#apiKeys",
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
function createWildixAuthPbxHttpAuthOption(authParameters) {
|
|
23
|
+
return {
|
|
24
|
+
schemeId: "wildix.auth#pbx",
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
function createWildixAuthS2sHttpAuthOption(authParameters) {
|
|
28
|
+
return {
|
|
29
|
+
schemeId: "wildix.auth#s2s",
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
function createWildixAuthXbsHttpAuthOption(authParameters) {
|
|
33
|
+
return {
|
|
34
|
+
schemeId: "wildix.auth#xbs",
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
const defaultWilmaCopilotSessionsHttpAuthSchemeProvider = (authParameters) => {
|
|
38
|
+
const options = [];
|
|
39
|
+
switch (authParameters.operation) {
|
|
40
|
+
default: {
|
|
41
|
+
options.push(createSmithyApiHttpBearerAuthHttpAuthOption(authParameters));
|
|
42
|
+
options.push(createWildixAuthS2sHttpAuthOption(authParameters));
|
|
43
|
+
options.push(createWildixAuthPbxHttpAuthOption(authParameters));
|
|
44
|
+
options.push(createWildixAuthXbsHttpAuthOption(authParameters));
|
|
45
|
+
options.push(createWildixAuthApiKeysHttpAuthOption(authParameters));
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
return options;
|
|
49
|
+
};
|
|
50
|
+
exports.defaultWilmaCopilotSessionsHttpAuthSchemeProvider = defaultWilmaCopilotSessionsHttpAuthSchemeProvider;
|
|
51
|
+
const resolveHttpAuthSchemeConfig = (config) => {
|
|
52
|
+
const token = (0, core_1.memoizeIdentityProvider)(config.token, core_1.isIdentityExpired, core_1.doesIdentityRequireRefresh);
|
|
53
|
+
return Object.assign(config, {
|
|
54
|
+
authSchemePreference: (0, client_1.normalizeProvider)(config.authSchemePreference ?? []),
|
|
55
|
+
token,
|
|
56
|
+
});
|
|
57
|
+
};
|
|
58
|
+
exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetCopilotSessionEventsCommand = 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 GetCopilotSessionEventsCommand 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("WilmaCopilotSessions", "GetCopilotSessionEvents", {})
|
|
16
|
+
.n("WilmaCopilotSessionsClient", "GetCopilotSessionEventsCommand")
|
|
17
|
+
.sc(schemas_0_1.GetCopilotSessionEvents$)
|
|
18
|
+
.build() {
|
|
19
|
+
}
|
|
20
|
+
exports.GetCopilotSessionEventsCommand = GetCopilotSessionEventsCommand;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StreamCopilotSessionEventsCommand = 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 StreamCopilotSessionEventsCommand 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("WilmaCopilotSessions", "StreamCopilotSessionEvents", {})
|
|
16
|
+
.n("WilmaCopilotSessionsClient", "StreamCopilotSessionEventsCommand")
|
|
17
|
+
.sc(schemas_0_1.StreamCopilotSessionEvents$)
|
|
18
|
+
.build() {
|
|
19
|
+
}
|
|
20
|
+
exports.StreamCopilotSessionEventsCommand = StreamCopilotSessionEventsCommand;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./GetCopilotSessionEventsCommand"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./StreamCopilotSessionEventsCommand"), 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://api-stable.wilma.wildix.com", {}],
|
|
16
|
+
["https://api-stage.wilma.wildix.com", {}],
|
|
17
|
+
["https://api.wilma.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;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WilmaCopilotSessionsServiceException = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
tslib_1.__exportStar(require("./WilmaCopilotSessionsClient"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./WilmaCopilotSessions"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./commands"), exports);
|
|
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);
|
|
12
|
+
var WilmaCopilotSessionsServiceException_1 = require("./models/WilmaCopilotSessionsServiceException");
|
|
13
|
+
Object.defineProperty(exports, "WilmaCopilotSessionsServiceException", { enumerable: true, get: function () { return WilmaCopilotSessionsServiceException_1.WilmaCopilotSessionsServiceException; } });
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WilmaCopilotSessionsServiceException = exports.__ServiceException = void 0;
|
|
4
|
+
const client_1 = require("@smithy/core/client");
|
|
5
|
+
Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return client_1.ServiceException; } });
|
|
6
|
+
class WilmaCopilotSessionsServiceException extends client_1.ServiceException {
|
|
7
|
+
constructor(options) {
|
|
8
|
+
super(options);
|
|
9
|
+
Object.setPrototypeOf(this, WilmaCopilotSessionsServiceException.prototype);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.WilmaCopilotSessionsServiceException = WilmaCopilotSessionsServiceException;
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CopilotSessionStatus = exports.AssetSeverity = exports.AssetIcon = exports.LiveEventType = exports.ConferenceParticipantType = exports.ConferenceParticipantRole = exports.PbxLicenseType = exports.MessageWhatsAppStatus = exports.MessageType = exports.MessageSmsStatus = exports.ButtonVariant = exports.TranscriptionSentiment = exports.CallTranscriptionSpeaker = exports.CallDevice = exports.CallParticipantType = exports.CallParticipantRole = exports.License = void 0;
|
|
4
|
+
exports.License = {
|
|
5
|
+
UC: "uc",
|
|
6
|
+
XBEES: "x-bees",
|
|
7
|
+
};
|
|
8
|
+
exports.CallParticipantRole = {
|
|
9
|
+
AGENT: "AGENT",
|
|
10
|
+
CLIENT: "CLIENT",
|
|
11
|
+
};
|
|
12
|
+
exports.CallParticipantType = {
|
|
13
|
+
LOCAL: "LOCAL",
|
|
14
|
+
REMOTE: "REMOTE",
|
|
15
|
+
};
|
|
16
|
+
exports.CallDevice = {
|
|
17
|
+
COLLABORATION7_ANDROID: "COLLABORATION7_ANDROID",
|
|
18
|
+
COLLABORATION7_IOS: "COLLABORATION7_IOS",
|
|
19
|
+
COLLABORATION7_WEB: "COLLABORATION7_WEB",
|
|
20
|
+
COLLABORATION_ANDROID: "COLLABORATION_ANDROID",
|
|
21
|
+
COLLABORATION_IOS: "COLLABORATION_IOS",
|
|
22
|
+
COLLABORATION_WEB: "COLLABORATION_WEB",
|
|
23
|
+
TEAMS4WILDIX: "TEAMS4WILDIX",
|
|
24
|
+
UNKNOWN: "UNKNOWN",
|
|
25
|
+
VOICEBOT: "VOICEBOT",
|
|
26
|
+
WILDIX_DEVICE: "WILDIX_DEVICE",
|
|
27
|
+
WILDIX_PHONE: "WILDIX_PHONE",
|
|
28
|
+
XBEES_ANDROID: "XBEES_ANDROID",
|
|
29
|
+
XBEES_IOS: "XBEES_IOS",
|
|
30
|
+
XBEES_WEB: "XBEES_WEB",
|
|
31
|
+
XHOPPERS_ANDROID: "XHOPPERS_ANDROID",
|
|
32
|
+
XHOPPERS_IOS: "XHOPPERS_IOS",
|
|
33
|
+
XHOPPERS_WEB: "XHOPPERS_WEB",
|
|
34
|
+
};
|
|
35
|
+
exports.CallTranscriptionSpeaker = {
|
|
36
|
+
CALLEE: "callee",
|
|
37
|
+
CALLER: "caller",
|
|
38
|
+
};
|
|
39
|
+
exports.TranscriptionSentiment = {
|
|
40
|
+
MIXED: "MIXED",
|
|
41
|
+
NEGATIVE: "NEGATIVE",
|
|
42
|
+
NEUTRAL: "NEUTRAL",
|
|
43
|
+
POSITIVE: "POSITIVE",
|
|
44
|
+
};
|
|
45
|
+
exports.ButtonVariant = {
|
|
46
|
+
CONTAINED: "contained",
|
|
47
|
+
OUTLINED: "outlined",
|
|
48
|
+
};
|
|
49
|
+
exports.MessageSmsStatus = {
|
|
50
|
+
DELIVERED: "delivered",
|
|
51
|
+
ERROR: "error",
|
|
52
|
+
SENT: "sent",
|
|
53
|
+
TRYING: "trying",
|
|
54
|
+
};
|
|
55
|
+
exports.MessageType = {
|
|
56
|
+
DELETED: "deleted",
|
|
57
|
+
REGULAR: "regular",
|
|
58
|
+
SYSTEM: "system",
|
|
59
|
+
};
|
|
60
|
+
exports.MessageWhatsAppStatus = {
|
|
61
|
+
DELIVERED: "delivered",
|
|
62
|
+
ERROR: "error",
|
|
63
|
+
SENT: "sent",
|
|
64
|
+
TRYING: "trying",
|
|
65
|
+
};
|
|
66
|
+
exports.PbxLicenseType = {
|
|
67
|
+
BASIC: "basic",
|
|
68
|
+
BUSINESS: "business",
|
|
69
|
+
ESSENTIAL: "essential",
|
|
70
|
+
PREMIUM: "premium",
|
|
71
|
+
WIZYCONF: "wizyconf",
|
|
72
|
+
};
|
|
73
|
+
exports.ConferenceParticipantRole = {
|
|
74
|
+
AGENT: "AGENT",
|
|
75
|
+
CLIENT: "CLIENT",
|
|
76
|
+
};
|
|
77
|
+
exports.ConferenceParticipantType = {
|
|
78
|
+
EXTERNAL: "EXTERNAL",
|
|
79
|
+
EXTERNAL_DIAL_IN: "EXTERNAL_DIAL_IN",
|
|
80
|
+
PBX: "PBX",
|
|
81
|
+
PBX_SIP: "PBX_SIP",
|
|
82
|
+
XBS: "XBS",
|
|
83
|
+
};
|
|
84
|
+
exports.LiveEventType = {
|
|
85
|
+
CALL: "call",
|
|
86
|
+
CALL_ANNOTATION: "call_annotation",
|
|
87
|
+
CALL_COMPLETE: "call_complete",
|
|
88
|
+
CALL_INTERRUPTED: "call_interrupted",
|
|
89
|
+
CALL_TRANSCRIPTION: "call_transcription",
|
|
90
|
+
CHAT: "chat",
|
|
91
|
+
CHAT_ANNOTATION: "chat_annotation",
|
|
92
|
+
CHAT_COMPLETE: "chat_complete",
|
|
93
|
+
CHAT_COST: "call_cost",
|
|
94
|
+
CHAT_INTERRUPTED: "chat_interrupted",
|
|
95
|
+
CHAT_MISSED: "chat_missed",
|
|
96
|
+
CHAT_TRANSCRIPTION: "chat_transcription",
|
|
97
|
+
CONFERENCE: "conference",
|
|
98
|
+
CONFERENCE_ANNOTATION: "conference_annotation",
|
|
99
|
+
CONFERENCE_COMPLETE: "conference_complete",
|
|
100
|
+
CONFERENCE_INTERRUPTED: "conference_interrupted",
|
|
101
|
+
CONFERENCE_JOIN: "conference_join",
|
|
102
|
+
CONFERENCE_LEAVE: "conference_leave",
|
|
103
|
+
CONFERENCE_TRANSCRIPTION: "conference_transcription",
|
|
104
|
+
SERVICE: "service",
|
|
105
|
+
SERVICE_AGENT: "service_agent",
|
|
106
|
+
SERVICE_AGENT_STATUS: "service_agent_status",
|
|
107
|
+
SERVICE_CALL: "service_call",
|
|
108
|
+
SERVICE_CALL_COMPLETE: "service_call_complete",
|
|
109
|
+
SERVICE_COMPLETE: "service_complete",
|
|
110
|
+
};
|
|
111
|
+
exports.AssetIcon = {
|
|
112
|
+
ALERT: "alert",
|
|
113
|
+
BOOK_OPEN: "book_open",
|
|
114
|
+
INFO: "info",
|
|
115
|
+
LIGHTBULB: "lightbulb",
|
|
116
|
+
SHIELD: "shield",
|
|
117
|
+
SPARKLES: "sparkles",
|
|
118
|
+
};
|
|
119
|
+
exports.AssetSeverity = {
|
|
120
|
+
DANGER: "danger",
|
|
121
|
+
NEUTRAL: "neutral",
|
|
122
|
+
SUCCESS: "success",
|
|
123
|
+
WARNING: "warning",
|
|
124
|
+
};
|
|
125
|
+
exports.CopilotSessionStatus = {
|
|
126
|
+
ACTIVE: "active",
|
|
127
|
+
ENDED: "ended",
|
|
128
|
+
FAILED: "failed",
|
|
129
|
+
STOPPED: "stopped",
|
|
130
|
+
};
|
|
@@ -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 WilmaCopilotSessionsServiceException_1 = require("./WilmaCopilotSessionsServiceException");
|
|
5
|
+
class ForbiddenException extends WilmaCopilotSessionsServiceException_1.WilmaCopilotSessionsServiceException {
|
|
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 WilmaCopilotSessionsServiceException_1.WilmaCopilotSessionsServiceException {
|
|
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 WilmaCopilotSessionsServiceException_1.WilmaCopilotSessionsServiceException {
|
|
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;
|
|
@@ -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 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");
|
|
12
|
+
const fetch_http_handler_1 = require("@smithy/fetch-http-handler");
|
|
13
|
+
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
14
|
+
const getRuntimeConfig = (config) => {
|
|
15
|
+
const defaultsMode = (0, config_1.resolveDefaultsModeConfig)(config);
|
|
16
|
+
const defaultConfigProvider = () => defaultsMode().then(client_2.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 ?? 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
|
+
requestHandler: fetch_http_handler_1.FetchHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
27
|
+
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || 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,41 @@
|
|
|
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 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");
|
|
11
|
+
const node_http_handler_1 = require("@smithy/node-http-handler");
|
|
12
|
+
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
13
|
+
const getRuntimeConfig = (config) => {
|
|
14
|
+
(0, client_2.emitWarningIfUnsupportedVersion)(process.version);
|
|
15
|
+
const defaultsMode = (0, config_1.resolveDefaultsModeConfig)(config);
|
|
16
|
+
const defaultConfigProvider = () => defaultsMode().then(client_2.loadConfigsForDefaultMode);
|
|
17
|
+
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
|
18
|
+
const loaderConfig = {
|
|
19
|
+
profile: config?.profile,
|
|
20
|
+
logger: clientSharedValues.logger,
|
|
21
|
+
};
|
|
22
|
+
return {
|
|
23
|
+
...clientSharedValues,
|
|
24
|
+
...config,
|
|
25
|
+
runtime: "node",
|
|
26
|
+
defaultsMode,
|
|
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
|
+
requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
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"),
|
|
37
|
+
streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
|
|
38
|
+
userAgentAppId: config?.userAgentAppId ?? (0, config_1.loadConfig)(client_1.NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
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,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getRuntimeConfig = void 0;
|
|
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");
|
|
12
|
+
const getRuntimeConfig = (config) => {
|
|
13
|
+
return {
|
|
14
|
+
apiVersion: "v1",
|
|
15
|
+
base64Decoder: config?.base64Decoder ?? serde_1.fromBase64,
|
|
16
|
+
base64Encoder: config?.base64Encoder ?? serde_1.toBase64,
|
|
17
|
+
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
18
|
+
endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
|
|
19
|
+
extensions: config?.extensions ?? [],
|
|
20
|
+
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? httpAuthSchemeProvider_1.defaultWilmaCopilotSessionsHttpAuthSchemeProvider,
|
|
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.wilma.copilot.sessions",
|
|
32
|
+
errorTypeRegistries: schemas_0_1.errorTypeRegistries,
|
|
33
|
+
version: "v1",
|
|
34
|
+
serviceTarget: "WilmaCopilotSessions",
|
|
35
|
+
},
|
|
36
|
+
sdkStreamMixin: config?.sdkStreamMixin ?? serde_1.sdkStreamMixin,
|
|
37
|
+
urlParser: config?.urlParser ?? protocols_2.parseUrl,
|
|
38
|
+
utf8Decoder: config?.utf8Decoder ?? serde_1.fromUtf8,
|
|
39
|
+
utf8Encoder: config?.utf8Encoder ?? serde_1.toUtf8,
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.resolveRuntimeExtensions = void 0;
|
|
4
|
+
const client_1 = require("@smithy/core/client");
|
|
5
|
+
const protocols_1 = require("@smithy/core/protocols");
|
|
6
|
+
const httpAuthExtensionConfiguration_1 = require("./auth/httpAuthExtensionConfiguration");
|
|
7
|
+
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
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));
|
|
11
|
+
};
|
|
12
|
+
exports.resolveRuntimeExtensions = resolveRuntimeExtensions;
|