@wildix/wda-history-client 1.2.28 → 3.1.29
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/WdaHistory.js +3 -3
- package/dist-cjs/WdaHistoryClient.js +34 -26
- package/dist-cjs/auth/httpAuthExtensionConfiguration.js +43 -0
- package/dist-cjs/auth/httpAuthSchemeProvider.js +58 -0
- package/dist-cjs/commands/GetCallAnnotationsCommand.js +10 -11
- package/dist-cjs/commands/GetCallCommand.js +10 -11
- package/dist-cjs/commands/GetCallTranscriptionCommand.js +10 -11
- package/dist-cjs/commands/GetCallTranscriptionTextCommand.js +10 -11
- package/dist-cjs/commands/GetChatAnnotationsCommand.js +10 -11
- package/dist-cjs/commands/GetChatCommand.js +10 -11
- package/dist-cjs/commands/GetChatTranscriptionCommand.js +10 -11
- package/dist-cjs/commands/GetChatTranscriptionTextCommand.js +10 -11
- package/dist-cjs/commands/GetConferenceAnnotationsCommand.js +10 -11
- package/dist-cjs/commands/GetConferenceCommand.js +10 -11
- package/dist-cjs/commands/GetConferenceTranscriptionCommand.js +10 -11
- package/dist-cjs/commands/GetConferenceTranscriptionTextCommand.js +10 -11
- package/dist-cjs/commands/QueryConversationsCommand.js +10 -11
- package/dist-cjs/commands/QueryUserCallsCommand.js +10 -11
- package/dist-cjs/commands/UpdateCallCommand.js +10 -11
- package/dist-cjs/commands/index.js +3 -3
- package/dist-cjs/endpoint/EndpointParameters.js +16 -0
- package/dist-cjs/endpoint/bdd.js +25 -0
- package/dist-cjs/endpoint/endpointResolver.js +16 -0
- package/dist-cjs/index.js +4 -1
- package/dist-cjs/models/WdaHistoryServiceException.js +3 -3
- package/dist-cjs/models/enums.js +204 -0
- package/dist-cjs/models/errors.js +147 -0
- package/dist-cjs/models/models_0.js +0 -406
- 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 +1047 -0
- package/dist-es/WdaHistory.js +4 -4
- package/dist-es/WdaHistoryClient.js +30 -22
- package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +52 -0
- package/dist-es/commands/GetCallAnnotationsCommand.js +9 -10
- package/dist-es/commands/GetCallCommand.js +9 -10
- package/dist-es/commands/GetCallTranscriptionCommand.js +9 -10
- package/dist-es/commands/GetCallTranscriptionTextCommand.js +9 -10
- package/dist-es/commands/GetChatAnnotationsCommand.js +9 -10
- package/dist-es/commands/GetChatCommand.js +9 -10
- package/dist-es/commands/GetChatTranscriptionCommand.js +9 -10
- package/dist-es/commands/GetChatTranscriptionTextCommand.js +9 -10
- package/dist-es/commands/GetConferenceAnnotationsCommand.js +9 -10
- package/dist-es/commands/GetConferenceCommand.js +9 -10
- package/dist-es/commands/GetConferenceTranscriptionCommand.js +9 -10
- package/dist-es/commands/GetConferenceTranscriptionTextCommand.js +9 -10
- package/dist-es/commands/QueryConversationsCommand.js +9 -10
- package/dist-es/commands/QueryUserCallsCommand.js +9 -10
- package/dist-es/commands/UpdateCallCommand.js +9 -10
- package/dist-es/commands/index.js +3 -3
- package/dist-es/endpoint/EndpointParameters.js +12 -0
- package/dist-es/endpoint/bdd.js +22 -0
- package/dist-es/endpoint/endpointResolver.js +12 -0
- package/dist-es/index.js +4 -1
- package/dist-es/models/WdaHistoryServiceException.js +1 -1
- package/dist-es/models/enums.js +201 -0
- package/dist-es/models/errors.js +133 -0
- package/dist-es/models/models_0.js +1 -393
- 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 +1042 -0
- package/dist-types/WdaHistory.d.ts +16 -16
- package/dist-types/WdaHistoryClient.d.ts +45 -27
- package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +81 -0
- package/dist-types/commands/GetCallAnnotationsCommand.d.ts +11 -7
- package/dist-types/commands/GetCallCommand.d.ts +13 -9
- package/dist-types/commands/GetCallTranscriptionCommand.d.ts +11 -7
- package/dist-types/commands/GetCallTranscriptionTextCommand.d.ts +11 -7
- package/dist-types/commands/GetChatAnnotationsCommand.d.ts +11 -7
- package/dist-types/commands/GetChatCommand.d.ts +11 -7
- package/dist-types/commands/GetChatTranscriptionCommand.d.ts +11 -7
- package/dist-types/commands/GetChatTranscriptionTextCommand.d.ts +11 -7
- package/dist-types/commands/GetConferenceAnnotationsCommand.d.ts +11 -7
- package/dist-types/commands/GetConferenceCommand.d.ts +11 -7
- package/dist-types/commands/GetConferenceTranscriptionCommand.d.ts +11 -7
- package/dist-types/commands/GetConferenceTranscriptionTextCommand.d.ts +11 -7
- package/dist-types/commands/QueryConversationsCommand.d.ts +13 -9
- package/dist-types/commands/QueryUserCallsCommand.d.ts +13 -9
- package/dist-types/commands/UpdateCallCommand.d.ts +13 -9
- package/dist-types/commands/index.d.ts +3 -3
- 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/WdaHistoryServiceException.d.ts +1 -1
- package/dist-types/models/enums.d.ts +505 -0
- package/dist-types/models/errors.d.ts +123 -0
- package/dist-types/models/models_0.d.ts +83 -685
- package/dist-types/runtimeConfig.browser.d.ts +35 -16
- package/dist-types/runtimeConfig.d.ts +34 -15
- package/dist-types/runtimeConfig.native.d.ts +36 -17
- 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 +127 -0
- package/package.json +14 -40
- package/dist-cjs/models/index.js +0 -4
- package/dist-cjs/protocols/Aws_restJson1.js +0 -868
- package/dist-es/models/index.js +0 -1
- package/dist-es/protocols/Aws_restJson1.js +0 -835
- package/dist-types/models/index.d.ts +0 -1
- package/dist-types/protocols/Aws_restJson1.d.ts +0 -137
package/dist-es/WdaHistory.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createAggregatedClient } from "@smithy/core/client";
|
|
2
2
|
import { GetCallAnnotationsCommand, } from "./commands/GetCallAnnotationsCommand";
|
|
3
|
-
import { GetCallCommand
|
|
3
|
+
import { GetCallCommand } from "./commands/GetCallCommand";
|
|
4
4
|
import { GetCallTranscriptionCommand, } from "./commands/GetCallTranscriptionCommand";
|
|
5
5
|
import { GetCallTranscriptionTextCommand, } from "./commands/GetCallTranscriptionTextCommand";
|
|
6
6
|
import { GetChatAnnotationsCommand, } from "./commands/GetChatAnnotationsCommand";
|
|
7
|
-
import { GetChatCommand
|
|
7
|
+
import { GetChatCommand } from "./commands/GetChatCommand";
|
|
8
8
|
import { GetChatTranscriptionCommand, } from "./commands/GetChatTranscriptionCommand";
|
|
9
9
|
import { GetChatTranscriptionTextCommand, } from "./commands/GetChatTranscriptionTextCommand";
|
|
10
10
|
import { GetConferenceAnnotationsCommand, } from "./commands/GetConferenceAnnotationsCommand";
|
|
@@ -14,7 +14,7 @@ import { GetConferenceTranscriptionTextCommand, } from "./commands/GetConference
|
|
|
14
14
|
import { QueryConversationsCommand, } from "./commands/QueryConversationsCommand";
|
|
15
15
|
import { QueryUserCallsCommand, } from "./commands/QueryUserCallsCommand";
|
|
16
16
|
import { UpdateCallCommand, } from "./commands/UpdateCallCommand";
|
|
17
|
-
import {
|
|
17
|
+
import { WdaHistoryClient } from "./WdaHistoryClient";
|
|
18
18
|
const commands = {
|
|
19
19
|
GetCallCommand,
|
|
20
20
|
GetCallAnnotationsCommand,
|
|
@@ -1,35 +1,43 @@
|
|
|
1
|
+
import { getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin, getUserAgentPlugin, resolveHostHeaderConfig, resolveUserAgentConfig, } from "@aws-sdk/core/client";
|
|
2
|
+
import { DefaultIdentityProviderConfig, getHttpAuthSchemeEndpointRuleSetPlugin, getHttpSigningPlugin, } from "@smithy/core";
|
|
3
|
+
import { Client as __Client, } from "@smithy/core/client";
|
|
4
|
+
import { resolveEndpointConfig } from "@smithy/core/endpoints";
|
|
5
|
+
import { getContentLengthPlugin } from "@smithy/core/protocols";
|
|
6
|
+
import { getRetryPlugin, resolveRetryConfig, } from "@smithy/core/retry";
|
|
7
|
+
import { getSchemaSerdePlugin } from "@smithy/core/schema";
|
|
8
|
+
import { defaultWdaHistoryHttpAuthSchemeParametersProvider, resolveHttpAuthSchemeConfig, } from "./auth/httpAuthSchemeProvider";
|
|
9
|
+
import { resolveClientEndpointParameters, } from "./endpoint/EndpointParameters";
|
|
1
10
|
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
2
|
-
import { resolveRuntimeExtensions
|
|
3
|
-
import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
|
|
4
|
-
import { getContentLengthPlugin } from "@smithy/middleware-content-length";
|
|
5
|
-
import { getRetryPlugin, resolveRetryConfig, } from "@smithy/middleware-retry";
|
|
6
|
-
import { Client as __Client, } from "@smithy/smithy-client";
|
|
7
|
-
import { authorizationMiddleware } from '@wildix/smithy-utils';
|
|
11
|
+
import { resolveRuntimeExtensions } from "./runtimeExtensions";
|
|
8
12
|
export { __Client };
|
|
9
13
|
export class WdaHistoryClient extends __Client {
|
|
10
14
|
config;
|
|
11
15
|
constructor(...[configuration]) {
|
|
12
|
-
|
|
16
|
+
const _config_0 = __getRuntimeConfig(configuration || {});
|
|
13
17
|
super(_config_0);
|
|
14
18
|
this.initConfig = _config_0;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
const
|
|
19
|
-
const
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
path: ''
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
|
-
const config = { ..._config_3, endpoint };
|
|
28
|
-
this.config = config;
|
|
29
|
-
this.middlewareStack.add(authorizationMiddleware.bind(this, configuration.token), { step: "build" });
|
|
19
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
20
|
+
const _config_2 = resolveUserAgentConfig(_config_1);
|
|
21
|
+
const _config_3 = resolveRetryConfig(_config_2);
|
|
22
|
+
const _config_4 = resolveHostHeaderConfig(_config_3);
|
|
23
|
+
const _config_5 = resolveEndpointConfig(_config_4);
|
|
24
|
+
const _config_6 = resolveHttpAuthSchemeConfig(_config_5);
|
|
25
|
+
const _config_7 = resolveRuntimeExtensions(_config_6, configuration?.extensions || []);
|
|
26
|
+
this.config = _config_7;
|
|
27
|
+
this.middlewareStack.use(getSchemaSerdePlugin(this.config));
|
|
30
28
|
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
31
29
|
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
32
30
|
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
31
|
+
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
32
|
+
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
33
|
+
this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
|
|
34
|
+
this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
35
|
+
httpAuthSchemeParametersProvider: defaultWdaHistoryHttpAuthSchemeParametersProvider,
|
|
36
|
+
identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({
|
|
37
|
+
"smithy.api#httpBearerAuth": config.token,
|
|
38
|
+
}),
|
|
39
|
+
}));
|
|
40
|
+
this.middlewareStack.use(getHttpSigningPlugin(this.config));
|
|
33
41
|
}
|
|
34
42
|
destroy() {
|
|
35
43
|
super.destroy();
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
2
|
+
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
3
|
+
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
4
|
+
let _token = runtimeConfig.token;
|
|
5
|
+
return {
|
|
6
|
+
setHttpAuthScheme(httpAuthScheme) {
|
|
7
|
+
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
8
|
+
if (index === -1) {
|
|
9
|
+
_httpAuthSchemes.push(httpAuthScheme);
|
|
10
|
+
}
|
|
11
|
+
else {
|
|
12
|
+
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
httpAuthSchemes() {
|
|
16
|
+
return _httpAuthSchemes;
|
|
17
|
+
},
|
|
18
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
|
19
|
+
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
|
20
|
+
},
|
|
21
|
+
httpAuthSchemeProvider() {
|
|
22
|
+
return _httpAuthSchemeProvider;
|
|
23
|
+
},
|
|
24
|
+
setToken(token) {
|
|
25
|
+
_token = token;
|
|
26
|
+
},
|
|
27
|
+
token() {
|
|
28
|
+
return _token;
|
|
29
|
+
},
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
export const resolveHttpAuthRuntimeConfig = (config) => {
|
|
33
|
+
return {
|
|
34
|
+
httpAuthSchemes: config.httpAuthSchemes(),
|
|
35
|
+
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
36
|
+
token: config.token(),
|
|
37
|
+
};
|
|
38
|
+
};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { doesIdentityRequireRefresh, isIdentityExpired, memoizeIdentityProvider } from "@smithy/core";
|
|
2
|
+
import { getSmithyContext, normalizeProvider } from "@smithy/core/client";
|
|
3
|
+
export const defaultWdaHistoryHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
4
|
+
return {
|
|
5
|
+
operation: getSmithyContext(context).operation,
|
|
6
|
+
};
|
|
7
|
+
};
|
|
8
|
+
function createSmithyApiHttpBearerAuthHttpAuthOption(authParameters) {
|
|
9
|
+
return {
|
|
10
|
+
schemeId: "smithy.api#httpBearerAuth",
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
function createWildixAuthApiKeysHttpAuthOption(authParameters) {
|
|
14
|
+
return {
|
|
15
|
+
schemeId: "wildix.auth#apiKeys",
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
function createWildixAuthPbxHttpAuthOption(authParameters) {
|
|
19
|
+
return {
|
|
20
|
+
schemeId: "wildix.auth#pbx",
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
function createWildixAuthS2sHttpAuthOption(authParameters) {
|
|
24
|
+
return {
|
|
25
|
+
schemeId: "wildix.auth#s2s",
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
function createWildixAuthXbsHttpAuthOption(authParameters) {
|
|
29
|
+
return {
|
|
30
|
+
schemeId: "wildix.auth#xbs",
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
export const defaultWdaHistoryHttpAuthSchemeProvider = (authParameters) => {
|
|
34
|
+
const options = [];
|
|
35
|
+
switch (authParameters.operation) {
|
|
36
|
+
default: {
|
|
37
|
+
options.push(createSmithyApiHttpBearerAuthHttpAuthOption(authParameters));
|
|
38
|
+
options.push(createWildixAuthS2sHttpAuthOption(authParameters));
|
|
39
|
+
options.push(createWildixAuthXbsHttpAuthOption(authParameters));
|
|
40
|
+
options.push(createWildixAuthPbxHttpAuthOption(authParameters));
|
|
41
|
+
options.push(createWildixAuthApiKeysHttpAuthOption(authParameters));
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
return options;
|
|
45
|
+
};
|
|
46
|
+
export const resolveHttpAuthSchemeConfig = (config) => {
|
|
47
|
+
const token = memoizeIdentityProvider(config.token, isIdentityExpired, doesIdentityRequireRefresh);
|
|
48
|
+
return Object.assign(config, {
|
|
49
|
+
authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
|
|
50
|
+
token,
|
|
51
|
+
});
|
|
52
|
+
};
|
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { GetCallAnnotations$ } from "../schemas/schemas_0";
|
|
4
5
|
export { $Command };
|
|
5
|
-
export class GetCallAnnotationsCommand extends $Command
|
|
6
|
+
export class GetCallAnnotationsCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
6
9
|
.m(function (Command, cs, config, o) {
|
|
7
|
-
return [
|
|
8
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
10
11
|
})
|
|
11
12
|
.s("WdaHistory", "GetCallAnnotations", {})
|
|
12
13
|
.n("WdaHistoryClient", "GetCallAnnotationsCommand")
|
|
13
|
-
.
|
|
14
|
-
.ser(se_GetCallAnnotationsCommand)
|
|
15
|
-
.de(de_GetCallAnnotationsCommand)
|
|
14
|
+
.sc(GetCallAnnotations$)
|
|
16
15
|
.build() {
|
|
17
16
|
}
|
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { GetCall$ } from "../schemas/schemas_0";
|
|
4
5
|
export { $Command };
|
|
5
|
-
export class GetCallCommand extends $Command
|
|
6
|
+
export class GetCallCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
6
9
|
.m(function (Command, cs, config, o) {
|
|
7
|
-
return [
|
|
8
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
10
11
|
})
|
|
11
12
|
.s("WdaHistory", "GetCall", {})
|
|
12
13
|
.n("WdaHistoryClient", "GetCallCommand")
|
|
13
|
-
.
|
|
14
|
-
.ser(se_GetCallCommand)
|
|
15
|
-
.de(de_GetCallCommand)
|
|
14
|
+
.sc(GetCall$)
|
|
16
15
|
.build() {
|
|
17
16
|
}
|
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { GetCallTranscription$ } from "../schemas/schemas_0";
|
|
4
5
|
export { $Command };
|
|
5
|
-
export class GetCallTranscriptionCommand extends $Command
|
|
6
|
+
export class GetCallTranscriptionCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
6
9
|
.m(function (Command, cs, config, o) {
|
|
7
|
-
return [
|
|
8
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
10
11
|
})
|
|
11
12
|
.s("WdaHistory", "GetCallTranscription", {})
|
|
12
13
|
.n("WdaHistoryClient", "GetCallTranscriptionCommand")
|
|
13
|
-
.
|
|
14
|
-
.ser(se_GetCallTranscriptionCommand)
|
|
15
|
-
.de(de_GetCallTranscriptionCommand)
|
|
14
|
+
.sc(GetCallTranscription$)
|
|
16
15
|
.build() {
|
|
17
16
|
}
|
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { GetCallTranscriptionText$ } from "../schemas/schemas_0";
|
|
4
5
|
export { $Command };
|
|
5
|
-
export class GetCallTranscriptionTextCommand extends $Command
|
|
6
|
+
export class GetCallTranscriptionTextCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
6
9
|
.m(function (Command, cs, config, o) {
|
|
7
|
-
return [
|
|
8
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
10
11
|
})
|
|
11
12
|
.s("WdaHistory", "GetCallTranscriptionText", {})
|
|
12
13
|
.n("WdaHistoryClient", "GetCallTranscriptionTextCommand")
|
|
13
|
-
.
|
|
14
|
-
.ser(se_GetCallTranscriptionTextCommand)
|
|
15
|
-
.de(de_GetCallTranscriptionTextCommand)
|
|
14
|
+
.sc(GetCallTranscriptionText$)
|
|
16
15
|
.build() {
|
|
17
16
|
}
|
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { GetChatAnnotations$ } from "../schemas/schemas_0";
|
|
4
5
|
export { $Command };
|
|
5
|
-
export class GetChatAnnotationsCommand extends $Command
|
|
6
|
+
export class GetChatAnnotationsCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
6
9
|
.m(function (Command, cs, config, o) {
|
|
7
|
-
return [
|
|
8
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
10
11
|
})
|
|
11
12
|
.s("WdaHistory", "GetChatAnnotations", {})
|
|
12
13
|
.n("WdaHistoryClient", "GetChatAnnotationsCommand")
|
|
13
|
-
.
|
|
14
|
-
.ser(se_GetChatAnnotationsCommand)
|
|
15
|
-
.de(de_GetChatAnnotationsCommand)
|
|
14
|
+
.sc(GetChatAnnotations$)
|
|
16
15
|
.build() {
|
|
17
16
|
}
|
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { GetChat$ } from "../schemas/schemas_0";
|
|
4
5
|
export { $Command };
|
|
5
|
-
export class GetChatCommand extends $Command
|
|
6
|
+
export class GetChatCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
6
9
|
.m(function (Command, cs, config, o) {
|
|
7
|
-
return [
|
|
8
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
10
11
|
})
|
|
11
12
|
.s("WdaHistory", "GetChat", {})
|
|
12
13
|
.n("WdaHistoryClient", "GetChatCommand")
|
|
13
|
-
.
|
|
14
|
-
.ser(se_GetChatCommand)
|
|
15
|
-
.de(de_GetChatCommand)
|
|
14
|
+
.sc(GetChat$)
|
|
16
15
|
.build() {
|
|
17
16
|
}
|
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { GetChatTranscription$ } from "../schemas/schemas_0";
|
|
4
5
|
export { $Command };
|
|
5
|
-
export class GetChatTranscriptionCommand extends $Command
|
|
6
|
+
export class GetChatTranscriptionCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
6
9
|
.m(function (Command, cs, config, o) {
|
|
7
|
-
return [
|
|
8
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
10
11
|
})
|
|
11
12
|
.s("WdaHistory", "GetChatTranscription", {})
|
|
12
13
|
.n("WdaHistoryClient", "GetChatTranscriptionCommand")
|
|
13
|
-
.
|
|
14
|
-
.ser(se_GetChatTranscriptionCommand)
|
|
15
|
-
.de(de_GetChatTranscriptionCommand)
|
|
14
|
+
.sc(GetChatTranscription$)
|
|
16
15
|
.build() {
|
|
17
16
|
}
|
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { GetChatTranscriptionText$ } from "../schemas/schemas_0";
|
|
4
5
|
export { $Command };
|
|
5
|
-
export class GetChatTranscriptionTextCommand extends $Command
|
|
6
|
+
export class GetChatTranscriptionTextCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
6
9
|
.m(function (Command, cs, config, o) {
|
|
7
|
-
return [
|
|
8
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
10
11
|
})
|
|
11
12
|
.s("WdaHistory", "GetChatTranscriptionText", {})
|
|
12
13
|
.n("WdaHistoryClient", "GetChatTranscriptionTextCommand")
|
|
13
|
-
.
|
|
14
|
-
.ser(se_GetChatTranscriptionTextCommand)
|
|
15
|
-
.de(de_GetChatTranscriptionTextCommand)
|
|
14
|
+
.sc(GetChatTranscriptionText$)
|
|
16
15
|
.build() {
|
|
17
16
|
}
|
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { GetConferenceAnnotations$ } from "../schemas/schemas_0";
|
|
4
5
|
export { $Command };
|
|
5
|
-
export class GetConferenceAnnotationsCommand extends $Command
|
|
6
|
+
export class GetConferenceAnnotationsCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
6
9
|
.m(function (Command, cs, config, o) {
|
|
7
|
-
return [
|
|
8
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
10
11
|
})
|
|
11
12
|
.s("WdaHistory", "GetConferenceAnnotations", {})
|
|
12
13
|
.n("WdaHistoryClient", "GetConferenceAnnotationsCommand")
|
|
13
|
-
.
|
|
14
|
-
.ser(se_GetConferenceAnnotationsCommand)
|
|
15
|
-
.de(de_GetConferenceAnnotationsCommand)
|
|
14
|
+
.sc(GetConferenceAnnotations$)
|
|
16
15
|
.build() {
|
|
17
16
|
}
|
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { GetConference$ } from "../schemas/schemas_0";
|
|
4
5
|
export { $Command };
|
|
5
|
-
export class GetConferenceCommand extends $Command
|
|
6
|
+
export class GetConferenceCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
6
9
|
.m(function (Command, cs, config, o) {
|
|
7
|
-
return [
|
|
8
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
10
11
|
})
|
|
11
12
|
.s("WdaHistory", "GetConference", {})
|
|
12
13
|
.n("WdaHistoryClient", "GetConferenceCommand")
|
|
13
|
-
.
|
|
14
|
-
.ser(se_GetConferenceCommand)
|
|
15
|
-
.de(de_GetConferenceCommand)
|
|
14
|
+
.sc(GetConference$)
|
|
16
15
|
.build() {
|
|
17
16
|
}
|
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { GetConferenceTranscription$ } from "../schemas/schemas_0";
|
|
4
5
|
export { $Command };
|
|
5
|
-
export class GetConferenceTranscriptionCommand extends $Command
|
|
6
|
+
export class GetConferenceTranscriptionCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
6
9
|
.m(function (Command, cs, config, o) {
|
|
7
|
-
return [
|
|
8
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
10
11
|
})
|
|
11
12
|
.s("WdaHistory", "GetConferenceTranscription", {})
|
|
12
13
|
.n("WdaHistoryClient", "GetConferenceTranscriptionCommand")
|
|
13
|
-
.
|
|
14
|
-
.ser(se_GetConferenceTranscriptionCommand)
|
|
15
|
-
.de(de_GetConferenceTranscriptionCommand)
|
|
14
|
+
.sc(GetConferenceTranscription$)
|
|
16
15
|
.build() {
|
|
17
16
|
}
|
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { GetConferenceTranscriptionText$ } from "../schemas/schemas_0";
|
|
4
5
|
export { $Command };
|
|
5
|
-
export class GetConferenceTranscriptionTextCommand extends $Command
|
|
6
|
+
export class GetConferenceTranscriptionTextCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
6
9
|
.m(function (Command, cs, config, o) {
|
|
7
|
-
return [
|
|
8
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
10
11
|
})
|
|
11
12
|
.s("WdaHistory", "GetConferenceTranscriptionText", {})
|
|
12
13
|
.n("WdaHistoryClient", "GetConferenceTranscriptionTextCommand")
|
|
13
|
-
.
|
|
14
|
-
.ser(se_GetConferenceTranscriptionTextCommand)
|
|
15
|
-
.de(de_GetConferenceTranscriptionTextCommand)
|
|
14
|
+
.sc(GetConferenceTranscriptionText$)
|
|
16
15
|
.build() {
|
|
17
16
|
}
|
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { QueryConversations$ } from "../schemas/schemas_0";
|
|
4
5
|
export { $Command };
|
|
5
|
-
export class QueryConversationsCommand extends $Command
|
|
6
|
+
export class QueryConversationsCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
6
9
|
.m(function (Command, cs, config, o) {
|
|
7
|
-
return [
|
|
8
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
10
11
|
})
|
|
11
12
|
.s("WdaHistory", "QueryConversations", {})
|
|
12
13
|
.n("WdaHistoryClient", "QueryConversationsCommand")
|
|
13
|
-
.
|
|
14
|
-
.ser(se_QueryConversationsCommand)
|
|
15
|
-
.de(de_QueryConversationsCommand)
|
|
14
|
+
.sc(QueryConversations$)
|
|
16
15
|
.build() {
|
|
17
16
|
}
|
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { QueryUserCalls$ } from "../schemas/schemas_0";
|
|
4
5
|
export { $Command };
|
|
5
|
-
export class QueryUserCallsCommand extends $Command
|
|
6
|
+
export class QueryUserCallsCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
6
9
|
.m(function (Command, cs, config, o) {
|
|
7
|
-
return [
|
|
8
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
10
11
|
})
|
|
11
12
|
.s("WdaHistory", "QueryUserCalls", {})
|
|
12
13
|
.n("WdaHistoryClient", "QueryUserCallsCommand")
|
|
13
|
-
.
|
|
14
|
-
.ser(se_QueryUserCallsCommand)
|
|
15
|
-
.de(de_QueryUserCallsCommand)
|
|
14
|
+
.sc(QueryUserCalls$)
|
|
16
15
|
.build() {
|
|
17
16
|
}
|
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { UpdateCall$ } from "../schemas/schemas_0";
|
|
4
5
|
export { $Command };
|
|
5
|
-
export class UpdateCallCommand extends $Command
|
|
6
|
+
export class UpdateCallCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
6
9
|
.m(function (Command, cs, config, o) {
|
|
7
|
-
return [
|
|
8
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
10
11
|
})
|
|
11
12
|
.s("WdaHistory", "UpdateCall", {})
|
|
12
13
|
.n("WdaHistoryClient", "UpdateCallCommand")
|
|
13
|
-
.
|
|
14
|
-
.ser(se_UpdateCallCommand)
|
|
15
|
-
.de(de_UpdateCallCommand)
|
|
14
|
+
.sc(UpdateCall$)
|
|
16
15
|
.build() {
|
|
17
16
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
export * from "./GetCallCommand";
|
|
2
1
|
export * from "./GetCallAnnotationsCommand";
|
|
2
|
+
export * from "./GetCallCommand";
|
|
3
3
|
export * from "./GetCallTranscriptionCommand";
|
|
4
4
|
export * from "./GetCallTranscriptionTextCommand";
|
|
5
|
-
export * from "./GetChatCommand";
|
|
6
5
|
export * from "./GetChatAnnotationsCommand";
|
|
6
|
+
export * from "./GetChatCommand";
|
|
7
7
|
export * from "./GetChatTranscriptionCommand";
|
|
8
8
|
export * from "./GetChatTranscriptionTextCommand";
|
|
9
|
-
export * from "./GetConferenceCommand";
|
|
10
9
|
export * from "./GetConferenceAnnotationsCommand";
|
|
10
|
+
export * from "./GetConferenceCommand";
|
|
11
11
|
export * from "./GetConferenceTranscriptionCommand";
|
|
12
12
|
export * from "./GetConferenceTranscriptionTextCommand";
|
|
13
13
|
export * from "./QueryConversationsCommand";
|
|
@@ -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
|
+
};
|