@wildix/wda-stream-client 1.1.67 → 3.1.69

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.
Files changed (111) hide show
  1. package/dist-cjs/WdaStream.js +3 -3
  2. package/dist-cjs/WdaStreamClient.js +34 -26
  3. package/dist-cjs/auth/httpAuthExtensionConfiguration.js +43 -0
  4. package/dist-cjs/auth/httpAuthSchemeProvider.js +58 -0
  5. package/dist-cjs/commands/ConsumeEventCommand.js +10 -11
  6. package/dist-cjs/commands/DescribeEventCommand.js +10 -11
  7. package/dist-cjs/commands/GetConferenceIdCommand.js +10 -11
  8. package/dist-cjs/commands/GetOngoingCallAnnotationsCommand.js +10 -11
  9. package/dist-cjs/commands/GetOngoingCallCommand.js +10 -11
  10. package/dist-cjs/commands/GetOngoingCallTranscriptionCommand.js +10 -11
  11. package/dist-cjs/commands/GetOngoingChatAnnotationsCommand.js +10 -11
  12. package/dist-cjs/commands/GetOngoingConferenceAnnotationsCommand.js +10 -11
  13. package/dist-cjs/commands/GetOngoingConferenceCommand.js +10 -11
  14. package/dist-cjs/commands/GetOngoingConferenceTranscriptionCommand.js +10 -11
  15. package/dist-cjs/commands/ListServicesCommand.js +10 -11
  16. package/dist-cjs/commands/QueryConversationsCommand.js +10 -11
  17. package/dist-cjs/commands/QueryPresenceCommand.js +10 -11
  18. package/dist-cjs/commands/QueryPresencesCommand.js +10 -11
  19. package/dist-cjs/commands/UpdatePresenceLastSeenCommand.js +10 -11
  20. package/dist-cjs/commands/index.js +2 -2
  21. package/dist-cjs/endpoint/EndpointParameters.js +16 -0
  22. package/dist-cjs/endpoint/bdd.js +28 -0
  23. package/dist-cjs/endpoint/endpointResolver.js +16 -0
  24. package/dist-cjs/index.js +5 -1
  25. package/dist-cjs/models/WdaStreamServiceException.js +3 -3
  26. package/dist-cjs/models/enums.js +508 -0
  27. package/dist-cjs/models/errors.js +56 -0
  28. package/dist-cjs/models/models_0.js +0 -660
  29. package/dist-cjs/models/models_1.js +0 -48
  30. package/dist-cjs/runtimeConfig.browser.js +11 -11
  31. package/dist-cjs/runtimeConfig.js +22 -18
  32. package/dist-cjs/runtimeConfig.shared.js +30 -10
  33. package/dist-cjs/runtimeExtensions.js +6 -5
  34. package/dist-cjs/schemas/schemas_0.js +2528 -0
  35. package/dist-es/WdaStream.js +2 -2
  36. package/dist-es/WdaStreamClient.js +30 -22
  37. package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
  38. package/dist-es/auth/httpAuthSchemeProvider.js +52 -0
  39. package/dist-es/commands/ConsumeEventCommand.js +9 -10
  40. package/dist-es/commands/DescribeEventCommand.js +9 -10
  41. package/dist-es/commands/GetConferenceIdCommand.js +9 -10
  42. package/dist-es/commands/GetOngoingCallAnnotationsCommand.js +9 -10
  43. package/dist-es/commands/GetOngoingCallCommand.js +9 -10
  44. package/dist-es/commands/GetOngoingCallTranscriptionCommand.js +9 -10
  45. package/dist-es/commands/GetOngoingChatAnnotationsCommand.js +9 -10
  46. package/dist-es/commands/GetOngoingConferenceAnnotationsCommand.js +9 -10
  47. package/dist-es/commands/GetOngoingConferenceCommand.js +9 -10
  48. package/dist-es/commands/GetOngoingConferenceTranscriptionCommand.js +9 -10
  49. package/dist-es/commands/ListServicesCommand.js +9 -10
  50. package/dist-es/commands/QueryConversationsCommand.js +9 -10
  51. package/dist-es/commands/QueryPresenceCommand.js +9 -10
  52. package/dist-es/commands/QueryPresencesCommand.js +9 -10
  53. package/dist-es/commands/UpdatePresenceLastSeenCommand.js +9 -10
  54. package/dist-es/commands/index.js +2 -2
  55. package/dist-es/endpoint/EndpointParameters.js +12 -0
  56. package/dist-es/endpoint/bdd.js +25 -0
  57. package/dist-es/endpoint/endpointResolver.js +12 -0
  58. package/dist-es/index.js +5 -1
  59. package/dist-es/models/WdaStreamServiceException.js +1 -1
  60. package/dist-es/models/enums.js +504 -0
  61. package/dist-es/models/errors.js +49 -0
  62. package/dist-es/models/models_0.js +1 -656
  63. package/dist-es/models/models_1.js +1 -45
  64. package/dist-es/runtimeConfig.browser.js +7 -7
  65. package/dist-es/runtimeConfig.js +17 -13
  66. package/dist-es/runtimeConfig.shared.js +24 -4
  67. package/dist-es/runtimeExtensions.js +6 -5
  68. package/dist-es/schemas/schemas_0.js +2519 -0
  69. package/dist-types/WdaStream.d.ts +16 -16
  70. package/dist-types/WdaStreamClient.d.ts +45 -27
  71. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
  72. package/dist-types/auth/httpAuthSchemeProvider.d.ts +81 -0
  73. package/dist-types/commands/ConsumeEventCommand.d.ts +16 -7
  74. package/dist-types/commands/DescribeEventCommand.d.ts +24 -18
  75. package/dist-types/commands/GetConferenceIdCommand.d.ts +11 -7
  76. package/dist-types/commands/GetOngoingCallAnnotationsCommand.d.ts +13 -9
  77. package/dist-types/commands/GetOngoingCallCommand.d.ts +13 -9
  78. package/dist-types/commands/GetOngoingCallTranscriptionCommand.d.ts +14 -10
  79. package/dist-types/commands/GetOngoingChatAnnotationsCommand.d.ts +11 -7
  80. package/dist-types/commands/GetOngoingConferenceAnnotationsCommand.d.ts +11 -7
  81. package/dist-types/commands/GetOngoingConferenceCommand.d.ts +11 -7
  82. package/dist-types/commands/GetOngoingConferenceTranscriptionCommand.d.ts +11 -7
  83. package/dist-types/commands/ListServicesCommand.d.ts +11 -7
  84. package/dist-types/commands/QueryConversationsCommand.d.ts +13 -9
  85. package/dist-types/commands/QueryPresenceCommand.d.ts +12 -7
  86. package/dist-types/commands/QueryPresencesCommand.d.ts +11 -7
  87. package/dist-types/commands/UpdatePresenceLastSeenCommand.d.ts +11 -7
  88. package/dist-types/commands/index.d.ts +2 -2
  89. package/dist-types/endpoint/EndpointParameters.d.ts +41 -0
  90. package/dist-types/endpoint/bdd.d.ts +2 -0
  91. package/dist-types/endpoint/endpointResolver.d.ts +8 -0
  92. package/dist-types/extensionConfiguration.d.ts +4 -3
  93. package/dist-types/index.d.ts +6 -1
  94. package/dist-types/models/WdaStreamServiceException.d.ts +1 -1
  95. package/dist-types/models/enums.d.ts +1088 -0
  96. package/dist-types/models/errors.d.ts +46 -0
  97. package/dist-types/models/models_0.d.ts +1111 -1206
  98. package/dist-types/models/models_1.d.ts +3 -982
  99. package/dist-types/runtimeConfig.browser.d.ts +35 -16
  100. package/dist-types/runtimeConfig.d.ts +34 -15
  101. package/dist-types/runtimeConfig.native.d.ts +36 -17
  102. package/dist-types/runtimeConfig.shared.d.ts +20 -3
  103. package/dist-types/runtimeExtensions.d.ts +1 -1
  104. package/dist-types/schemas/schemas_0.d.ts +333 -0
  105. package/package.json +14 -40
  106. package/dist-cjs/models/index.js +0 -5
  107. package/dist-cjs/protocols/Aws_restJson1.js +0 -1340
  108. package/dist-es/models/index.js +0 -2
  109. package/dist-es/protocols/Aws_restJson1.js +0 -1307
  110. package/dist-types/models/index.d.ts +0 -2
  111. package/dist-types/protocols/Aws_restJson1.d.ts +0 -137
@@ -1,4 +1,4 @@
1
- import { WdaStreamClient, } from "./WdaStreamClient";
1
+ import { createAggregatedClient } from "@smithy/core/client";
2
2
  import { ConsumeEventCommand, } from "./commands/ConsumeEventCommand";
3
3
  import { DescribeEventCommand, } from "./commands/DescribeEventCommand";
4
4
  import { GetConferenceIdCommand, } from "./commands/GetConferenceIdCommand";
@@ -14,7 +14,7 @@ import { QueryConversationsCommand, } from "./commands/QueryConversationsCommand
14
14
  import { QueryPresenceCommand, } from "./commands/QueryPresenceCommand";
15
15
  import { QueryPresencesCommand, } from "./commands/QueryPresencesCommand";
16
16
  import { UpdatePresenceLastSeenCommand, } from "./commands/UpdatePresenceLastSeenCommand";
17
- import { createAggregatedClient } from "@smithy/smithy-client";
17
+ import { WdaStreamClient } from "./WdaStreamClient";
18
18
  const commands = {
19
19
  ConsumeEventCommand,
20
20
  DescribeEventCommand,
@@ -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 { defaultWdaStreamHttpAuthSchemeParametersProvider, resolveHttpAuthSchemeConfig, } from "./auth/httpAuthSchemeProvider";
9
+ import { resolveClientEndpointParameters, } from "./endpoint/EndpointParameters";
1
10
  import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
2
- import { resolveRuntimeExtensions, } from "./runtimeExtensions";
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 WdaStreamClient extends __Client {
10
14
  config;
11
15
  constructor(...[configuration]) {
12
- let _config_0 = __getRuntimeConfig(configuration || {});
16
+ const _config_0 = __getRuntimeConfig(configuration || {});
13
17
  super(_config_0);
14
18
  this.initConfig = _config_0;
15
- let _config_1 = resolveUserAgentConfig(_config_0);
16
- let _config_2 = resolveRetryConfig(_config_1);
17
- let _config_3 = resolveRuntimeExtensions(_config_2, configuration?.extensions || []);
18
- const hostname = ['stable', 'stage'].includes(configuration.env || '') ? `wda-${configuration.env}.wildix.com` : 'wda.wildix.com';
19
- const endpoint = () => {
20
- return {
21
- hostname,
22
- protocol: "https",
23
- port: '443',
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: defaultWdaStreamHttpAuthSchemeParametersProvider,
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 defaultWdaStreamHttpAuthSchemeParametersProvider = 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 defaultWdaStreamHttpAuthSchemeProvider = (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 { de_ConsumeEventCommand, se_ConsumeEventCommand, } from "../protocols/Aws_restJson1";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
- import { Command as $Command } from "@smithy/smithy-client";
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { ConsumeEvent$ } from "../schemas/schemas_0";
4
5
  export { $Command };
5
- export class ConsumeEventCommand extends $Command.classBuilder()
6
+ export class ConsumeEventCommand 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("WdaStream", "ConsumeEvent", {})
12
13
  .n("WdaStreamClient", "ConsumeEventCommand")
13
- .f(void 0, void 0)
14
- .ser(se_ConsumeEventCommand)
15
- .de(de_ConsumeEventCommand)
14
+ .sc(ConsumeEvent$)
16
15
  .build() {
17
16
  }
@@ -1,17 +1,16 @@
1
- import { de_DescribeEventCommand, se_DescribeEventCommand, } from "../protocols/Aws_restJson1";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
- import { Command as $Command } from "@smithy/smithy-client";
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { DescribeEvent$ } from "../schemas/schemas_0";
4
5
  export { $Command };
5
- export class DescribeEventCommand extends $Command.classBuilder()
6
+ export class DescribeEventCommand 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("WdaStream", "DescribeEvent", {})
12
13
  .n("WdaStreamClient", "DescribeEventCommand")
13
- .f(void 0, void 0)
14
- .ser(se_DescribeEventCommand)
15
- .de(de_DescribeEventCommand)
14
+ .sc(DescribeEvent$)
16
15
  .build() {
17
16
  }
@@ -1,17 +1,16 @@
1
- import { de_GetConferenceIdCommand, se_GetConferenceIdCommand, } from "../protocols/Aws_restJson1";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
- import { Command as $Command } from "@smithy/smithy-client";
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { GetConferenceId$ } from "../schemas/schemas_0";
4
5
  export { $Command };
5
- export class GetConferenceIdCommand extends $Command.classBuilder()
6
+ export class GetConferenceIdCommand 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("WdaStream", "GetConferenceId", {})
12
13
  .n("WdaStreamClient", "GetConferenceIdCommand")
13
- .f(void 0, void 0)
14
- .ser(se_GetConferenceIdCommand)
15
- .de(de_GetConferenceIdCommand)
14
+ .sc(GetConferenceId$)
16
15
  .build() {
17
16
  }
@@ -1,17 +1,16 @@
1
- import { de_GetOngoingCallAnnotationsCommand, se_GetOngoingCallAnnotationsCommand, } from "../protocols/Aws_restJson1";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
- import { Command as $Command } from "@smithy/smithy-client";
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { GetOngoingCallAnnotations$ } from "../schemas/schemas_0";
4
5
  export { $Command };
5
- export class GetOngoingCallAnnotationsCommand extends $Command.classBuilder()
6
+ export class GetOngoingCallAnnotationsCommand 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("WdaStream", "GetOngoingCallAnnotations", {})
12
13
  .n("WdaStreamClient", "GetOngoingCallAnnotationsCommand")
13
- .f(void 0, void 0)
14
- .ser(se_GetOngoingCallAnnotationsCommand)
15
- .de(de_GetOngoingCallAnnotationsCommand)
14
+ .sc(GetOngoingCallAnnotations$)
16
15
  .build() {
17
16
  }
@@ -1,17 +1,16 @@
1
- import { de_GetOngoingCallCommand, se_GetOngoingCallCommand, } from "../protocols/Aws_restJson1";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
- import { Command as $Command } from "@smithy/smithy-client";
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { GetOngoingCall$ } from "../schemas/schemas_0";
4
5
  export { $Command };
5
- export class GetOngoingCallCommand extends $Command.classBuilder()
6
+ export class GetOngoingCallCommand 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("WdaStream", "GetOngoingCall", {})
12
13
  .n("WdaStreamClient", "GetOngoingCallCommand")
13
- .f(void 0, void 0)
14
- .ser(se_GetOngoingCallCommand)
15
- .de(de_GetOngoingCallCommand)
14
+ .sc(GetOngoingCall$)
16
15
  .build() {
17
16
  }
@@ -1,17 +1,16 @@
1
- import { de_GetOngoingCallTranscriptionCommand, se_GetOngoingCallTranscriptionCommand, } from "../protocols/Aws_restJson1";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
- import { Command as $Command } from "@smithy/smithy-client";
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { GetOngoingCallTranscription$ } from "../schemas/schemas_0";
4
5
  export { $Command };
5
- export class GetOngoingCallTranscriptionCommand extends $Command.classBuilder()
6
+ export class GetOngoingCallTranscriptionCommand 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("WdaStream", "GetOngoingCallTranscription", {})
12
13
  .n("WdaStreamClient", "GetOngoingCallTranscriptionCommand")
13
- .f(void 0, void 0)
14
- .ser(se_GetOngoingCallTranscriptionCommand)
15
- .de(de_GetOngoingCallTranscriptionCommand)
14
+ .sc(GetOngoingCallTranscription$)
16
15
  .build() {
17
16
  }
@@ -1,17 +1,16 @@
1
- import { de_GetOngoingChatAnnotationsCommand, se_GetOngoingChatAnnotationsCommand, } from "../protocols/Aws_restJson1";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
- import { Command as $Command } from "@smithy/smithy-client";
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { GetOngoingChatAnnotations$ } from "../schemas/schemas_0";
4
5
  export { $Command };
5
- export class GetOngoingChatAnnotationsCommand extends $Command.classBuilder()
6
+ export class GetOngoingChatAnnotationsCommand 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("WdaStream", "GetOngoingChatAnnotations", {})
12
13
  .n("WdaStreamClient", "GetOngoingChatAnnotationsCommand")
13
- .f(void 0, void 0)
14
- .ser(se_GetOngoingChatAnnotationsCommand)
15
- .de(de_GetOngoingChatAnnotationsCommand)
14
+ .sc(GetOngoingChatAnnotations$)
16
15
  .build() {
17
16
  }
@@ -1,17 +1,16 @@
1
- import { de_GetOngoingConferenceAnnotationsCommand, se_GetOngoingConferenceAnnotationsCommand, } from "../protocols/Aws_restJson1";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
- import { Command as $Command } from "@smithy/smithy-client";
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { GetOngoingConferenceAnnotations$ } from "../schemas/schemas_0";
4
5
  export { $Command };
5
- export class GetOngoingConferenceAnnotationsCommand extends $Command.classBuilder()
6
+ export class GetOngoingConferenceAnnotationsCommand 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("WdaStream", "GetOngoingConferenceAnnotations", {})
12
13
  .n("WdaStreamClient", "GetOngoingConferenceAnnotationsCommand")
13
- .f(void 0, void 0)
14
- .ser(se_GetOngoingConferenceAnnotationsCommand)
15
- .de(de_GetOngoingConferenceAnnotationsCommand)
14
+ .sc(GetOngoingConferenceAnnotations$)
16
15
  .build() {
17
16
  }
@@ -1,17 +1,16 @@
1
- import { de_GetOngoingConferenceCommand, se_GetOngoingConferenceCommand, } from "../protocols/Aws_restJson1";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
- import { Command as $Command } from "@smithy/smithy-client";
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { GetOngoingConference$ } from "../schemas/schemas_0";
4
5
  export { $Command };
5
- export class GetOngoingConferenceCommand extends $Command.classBuilder()
6
+ export class GetOngoingConferenceCommand 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("WdaStream", "GetOngoingConference", {})
12
13
  .n("WdaStreamClient", "GetOngoingConferenceCommand")
13
- .f(void 0, void 0)
14
- .ser(se_GetOngoingConferenceCommand)
15
- .de(de_GetOngoingConferenceCommand)
14
+ .sc(GetOngoingConference$)
16
15
  .build() {
17
16
  }
@@ -1,17 +1,16 @@
1
- import { de_GetOngoingConferenceTranscriptionCommand, se_GetOngoingConferenceTranscriptionCommand, } from "../protocols/Aws_restJson1";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
- import { Command as $Command } from "@smithy/smithy-client";
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { GetOngoingConferenceTranscription$ } from "../schemas/schemas_0";
4
5
  export { $Command };
5
- export class GetOngoingConferenceTranscriptionCommand extends $Command.classBuilder()
6
+ export class GetOngoingConferenceTranscriptionCommand 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("WdaStream", "GetOngoingConferenceTranscription", {})
12
13
  .n("WdaStreamClient", "GetOngoingConferenceTranscriptionCommand")
13
- .f(void 0, void 0)
14
- .ser(se_GetOngoingConferenceTranscriptionCommand)
15
- .de(de_GetOngoingConferenceTranscriptionCommand)
14
+ .sc(GetOngoingConferenceTranscription$)
16
15
  .build() {
17
16
  }
@@ -1,17 +1,16 @@
1
- import { de_ListServicesCommand, se_ListServicesCommand, } from "../protocols/Aws_restJson1";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
- import { Command as $Command } from "@smithy/smithy-client";
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { ListServices$ } from "../schemas/schemas_0";
4
5
  export { $Command };
5
- export class ListServicesCommand extends $Command.classBuilder()
6
+ export class ListServicesCommand 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("WdaStream", "ListServices", {})
12
13
  .n("WdaStreamClient", "ListServicesCommand")
13
- .f(void 0, void 0)
14
- .ser(se_ListServicesCommand)
15
- .de(de_ListServicesCommand)
14
+ .sc(ListServices$)
16
15
  .build() {
17
16
  }
@@ -1,17 +1,16 @@
1
- import { de_QueryConversationsCommand, se_QueryConversationsCommand, } from "../protocols/Aws_restJson1";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
- import { Command as $Command } from "@smithy/smithy-client";
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.classBuilder()
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("WdaStream", "QueryConversations", {})
12
13
  .n("WdaStreamClient", "QueryConversationsCommand")
13
- .f(void 0, void 0)
14
- .ser(se_QueryConversationsCommand)
15
- .de(de_QueryConversationsCommand)
14
+ .sc(QueryConversations$)
16
15
  .build() {
17
16
  }
@@ -1,17 +1,16 @@
1
- import { de_QueryPresenceCommand, se_QueryPresenceCommand, } from "../protocols/Aws_restJson1";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
- import { Command as $Command } from "@smithy/smithy-client";
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { QueryPresence$ } from "../schemas/schemas_0";
4
5
  export { $Command };
5
- export class QueryPresenceCommand extends $Command.classBuilder()
6
+ export class QueryPresenceCommand 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("WdaStream", "QueryPresence", {})
12
13
  .n("WdaStreamClient", "QueryPresenceCommand")
13
- .f(void 0, void 0)
14
- .ser(se_QueryPresenceCommand)
15
- .de(de_QueryPresenceCommand)
14
+ .sc(QueryPresence$)
16
15
  .build() {
17
16
  }
@@ -1,17 +1,16 @@
1
- import { de_QueryPresencesCommand, se_QueryPresencesCommand, } from "../protocols/Aws_restJson1";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
- import { Command as $Command } from "@smithy/smithy-client";
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { QueryPresences$ } from "../schemas/schemas_0";
4
5
  export { $Command };
5
- export class QueryPresencesCommand extends $Command.classBuilder()
6
+ export class QueryPresencesCommand 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("WdaStream", "QueryPresences", {})
12
13
  .n("WdaStreamClient", "QueryPresencesCommand")
13
- .f(void 0, void 0)
14
- .ser(se_QueryPresencesCommand)
15
- .de(de_QueryPresencesCommand)
14
+ .sc(QueryPresences$)
16
15
  .build() {
17
16
  }
@@ -1,17 +1,16 @@
1
- import { de_UpdatePresenceLastSeenCommand, se_UpdatePresenceLastSeenCommand, } from "../protocols/Aws_restJson1";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
- import { Command as $Command } from "@smithy/smithy-client";
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { UpdatePresenceLastSeen$ } from "../schemas/schemas_0";
4
5
  export { $Command };
5
- export class UpdatePresenceLastSeenCommand extends $Command.classBuilder()
6
+ export class UpdatePresenceLastSeenCommand 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("WdaStream", "UpdatePresenceLastSeen", {})
12
13
  .n("WdaStreamClient", "UpdatePresenceLastSeenCommand")
13
- .f(void 0, void 0)
14
- .ser(se_UpdatePresenceLastSeenCommand)
15
- .de(de_UpdatePresenceLastSeenCommand)
14
+ .sc(UpdatePresenceLastSeen$)
16
15
  .build() {
17
16
  }
@@ -1,12 +1,12 @@
1
1
  export * from "./ConsumeEventCommand";
2
2
  export * from "./DescribeEventCommand";
3
3
  export * from "./GetConferenceIdCommand";
4
- export * from "./GetOngoingCallCommand";
5
4
  export * from "./GetOngoingCallAnnotationsCommand";
5
+ export * from "./GetOngoingCallCommand";
6
6
  export * from "./GetOngoingCallTranscriptionCommand";
7
7
  export * from "./GetOngoingChatAnnotationsCommand";
8
- export * from "./GetOngoingConferenceCommand";
9
8
  export * from "./GetOngoingConferenceAnnotationsCommand";
9
+ export * from "./GetOngoingConferenceCommand";
10
10
  export * from "./GetOngoingConferenceTranscriptionCommand";
11
11
  export * from "./ListServicesCommand";
12
12
  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
+ };