@aws-sdk/client-repostspace 3.1045.0 → 3.1047.0

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 (106) hide show
  1. package/dist-cjs/auth/httpAuthSchemeProvider.js +4 -4
  2. package/dist-cjs/endpoint/bdd.js +2 -2
  3. package/dist-cjs/endpoint/endpointResolver.js +4 -4
  4. package/dist-cjs/index.js +92 -94
  5. package/dist-cjs/models/RepostspaceServiceException.js +3 -3
  6. package/dist-cjs/runtimeConfig.browser.js +12 -14
  7. package/dist-cjs/runtimeConfig.js +18 -22
  8. package/dist-cjs/runtimeConfig.shared.js +9 -10
  9. package/dist-es/Repostspace.js +1 -1
  10. package/dist-es/RepostspaceClient.js +5 -5
  11. package/dist-es/auth/httpAuthSchemeProvider.js +1 -1
  12. package/dist-es/commands/BatchAddChannelRoleToAccessorsCommand.js +2 -2
  13. package/dist-es/commands/BatchAddRoleCommand.js +2 -2
  14. package/dist-es/commands/BatchRemoveChannelRoleFromAccessorsCommand.js +2 -2
  15. package/dist-es/commands/BatchRemoveRoleCommand.js +2 -2
  16. package/dist-es/commands/CreateChannelCommand.js +2 -2
  17. package/dist-es/commands/CreateSpaceCommand.js +2 -2
  18. package/dist-es/commands/DeleteSpaceCommand.js +2 -2
  19. package/dist-es/commands/DeregisterAdminCommand.js +2 -2
  20. package/dist-es/commands/GetChannelCommand.js +2 -2
  21. package/dist-es/commands/GetSpaceCommand.js +2 -2
  22. package/dist-es/commands/ListChannelsCommand.js +2 -2
  23. package/dist-es/commands/ListSpacesCommand.js +2 -2
  24. package/dist-es/commands/ListTagsForResourceCommand.js +2 -2
  25. package/dist-es/commands/RegisterAdminCommand.js +2 -2
  26. package/dist-es/commands/SendInvitesCommand.js +2 -2
  27. package/dist-es/commands/TagResourceCommand.js +2 -2
  28. package/dist-es/commands/UntagResourceCommand.js +2 -2
  29. package/dist-es/commands/UpdateChannelCommand.js +2 -2
  30. package/dist-es/commands/UpdateSpaceCommand.js +2 -2
  31. package/dist-es/endpoint/bdd.js +1 -1
  32. package/dist-es/endpoint/endpointResolver.js +1 -1
  33. package/dist-es/models/RepostspaceServiceException.js +1 -1
  34. package/dist-es/runtimeConfig.browser.js +4 -6
  35. package/dist-es/runtimeConfig.js +4 -8
  36. package/dist-es/runtimeConfig.shared.js +3 -4
  37. package/dist-es/runtimeExtensions.js +2 -2
  38. package/dist-es/waiters/waitForChannelCreated.js +1 -1
  39. package/dist-es/waiters/waitForChannelDeleted.js +1 -1
  40. package/dist-es/waiters/waitForSpaceCreated.js +1 -1
  41. package/dist-es/waiters/waitForSpaceDeleted.js +1 -1
  42. package/dist-types/Repostspace.d.ts +1 -1
  43. package/dist-types/RepostspaceClient.d.ts +5 -5
  44. package/dist-types/commands/BatchAddChannelRoleToAccessorsCommand.d.ts +6 -4
  45. package/dist-types/commands/BatchAddRoleCommand.d.ts +6 -4
  46. package/dist-types/commands/BatchRemoveChannelRoleFromAccessorsCommand.d.ts +6 -4
  47. package/dist-types/commands/BatchRemoveRoleCommand.d.ts +6 -4
  48. package/dist-types/commands/CreateChannelCommand.d.ts +6 -4
  49. package/dist-types/commands/CreateSpaceCommand.d.ts +6 -4
  50. package/dist-types/commands/DeleteSpaceCommand.d.ts +6 -4
  51. package/dist-types/commands/DeregisterAdminCommand.d.ts +6 -4
  52. package/dist-types/commands/GetChannelCommand.d.ts +6 -4
  53. package/dist-types/commands/GetSpaceCommand.d.ts +6 -4
  54. package/dist-types/commands/ListChannelsCommand.d.ts +6 -4
  55. package/dist-types/commands/ListSpacesCommand.d.ts +6 -4
  56. package/dist-types/commands/ListTagsForResourceCommand.d.ts +6 -4
  57. package/dist-types/commands/RegisterAdminCommand.d.ts +6 -4
  58. package/dist-types/commands/SendInvitesCommand.d.ts +6 -4
  59. package/dist-types/commands/TagResourceCommand.d.ts +6 -4
  60. package/dist-types/commands/UntagResourceCommand.d.ts +6 -4
  61. package/dist-types/commands/UpdateChannelCommand.d.ts +6 -4
  62. package/dist-types/commands/UpdateSpaceCommand.d.ts +6 -4
  63. package/dist-types/endpoint/bdd.d.ts +1 -1
  64. package/dist-types/extensionConfiguration.d.ts +1 -1
  65. package/dist-types/models/RepostspaceServiceException.d.ts +1 -1
  66. package/dist-types/models/errors.d.ts +1 -1
  67. package/dist-types/runtimeConfig.browser.d.ts +2 -2
  68. package/dist-types/runtimeConfig.d.ts +2 -2
  69. package/dist-types/runtimeConfig.native.d.ts +2 -2
  70. package/dist-types/ts3.4/Repostspace.d.ts +1 -1
  71. package/dist-types/ts3.4/RepostspaceClient.d.ts +8 -14
  72. package/dist-types/ts3.4/commands/BatchAddChannelRoleToAccessorsCommand.d.ts +6 -4
  73. package/dist-types/ts3.4/commands/BatchAddRoleCommand.d.ts +6 -4
  74. package/dist-types/ts3.4/commands/BatchRemoveChannelRoleFromAccessorsCommand.d.ts +6 -4
  75. package/dist-types/ts3.4/commands/BatchRemoveRoleCommand.d.ts +6 -4
  76. package/dist-types/ts3.4/commands/CreateChannelCommand.d.ts +6 -4
  77. package/dist-types/ts3.4/commands/CreateSpaceCommand.d.ts +6 -4
  78. package/dist-types/ts3.4/commands/DeleteSpaceCommand.d.ts +6 -4
  79. package/dist-types/ts3.4/commands/DeregisterAdminCommand.d.ts +6 -4
  80. package/dist-types/ts3.4/commands/GetChannelCommand.d.ts +6 -4
  81. package/dist-types/ts3.4/commands/GetSpaceCommand.d.ts +6 -8
  82. package/dist-types/ts3.4/commands/ListChannelsCommand.d.ts +6 -4
  83. package/dist-types/ts3.4/commands/ListSpacesCommand.d.ts +6 -4
  84. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +6 -4
  85. package/dist-types/ts3.4/commands/RegisterAdminCommand.d.ts +6 -4
  86. package/dist-types/ts3.4/commands/SendInvitesCommand.d.ts +6 -4
  87. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +6 -4
  88. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +6 -4
  89. package/dist-types/ts3.4/commands/UpdateChannelCommand.d.ts +6 -4
  90. package/dist-types/ts3.4/commands/UpdateSpaceCommand.d.ts +6 -4
  91. package/dist-types/ts3.4/endpoint/bdd.d.ts +1 -1
  92. package/dist-types/ts3.4/extensionConfiguration.d.ts +1 -1
  93. package/dist-types/ts3.4/models/RepostspaceServiceException.d.ts +1 -1
  94. package/dist-types/ts3.4/models/errors.d.ts +1 -1
  95. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -2
  96. package/dist-types/ts3.4/runtimeConfig.d.ts +2 -2
  97. package/dist-types/ts3.4/runtimeConfig.native.d.ts +3 -3
  98. package/dist-types/ts3.4/waiters/waitForChannelCreated.d.ts +1 -1
  99. package/dist-types/ts3.4/waiters/waitForChannelDeleted.d.ts +1 -1
  100. package/dist-types/ts3.4/waiters/waitForSpaceCreated.d.ts +1 -1
  101. package/dist-types/ts3.4/waiters/waitForSpaceDeleted.d.ts +1 -1
  102. package/dist-types/waiters/waitForChannelCreated.d.ts +1 -1
  103. package/dist-types/waiters/waitForChannelDeleted.d.ts +1 -1
  104. package/dist-types/waiters/waitForSpaceCreated.d.ts +1 -1
  105. package/dist-types/waiters/waitForSpaceDeleted.d.ts +1 -1
  106. package/package.json +13 -35
@@ -2,11 +2,11 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.resolveHttpAuthSchemeConfig = exports.defaultRepostspaceHttpAuthSchemeProvider = exports.defaultRepostspaceHttpAuthSchemeParametersProvider = void 0;
4
4
  const httpAuthSchemes_1 = require("@aws-sdk/core/httpAuthSchemes");
5
- const util_middleware_1 = require("@smithy/util-middleware");
5
+ const client_1 = require("@smithy/core/client");
6
6
  const defaultRepostspaceHttpAuthSchemeParametersProvider = async (config, context, input) => {
7
7
  return {
8
- operation: (0, util_middleware_1.getSmithyContext)(context).operation,
9
- region: await (0, util_middleware_1.normalizeProvider)(config.region)() || (() => {
8
+ operation: (0, client_1.getSmithyContext)(context).operation,
9
+ region: await (0, client_1.normalizeProvider)(config.region)() || (() => {
10
10
  throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
11
11
  })(),
12
12
  };
@@ -40,7 +40,7 @@ exports.defaultRepostspaceHttpAuthSchemeProvider = defaultRepostspaceHttpAuthSch
40
40
  const resolveHttpAuthSchemeConfig = (config) => {
41
41
  const config_0 = (0, httpAuthSchemes_1.resolveAwsSdkSigV4Config)(config);
42
42
  return Object.assign(config_0, {
43
- authSchemePreference: (0, util_middleware_1.normalizeProvider)(config.authSchemePreference ?? []),
43
+ authSchemePreference: (0, client_1.normalizeProvider)(config.authSchemePreference ?? []),
44
44
  });
45
45
  };
46
46
  exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.bdd = void 0;
4
- const util_endpoints_1 = require("@smithy/util-endpoints");
4
+ const endpoints_1 = require("@smithy/core/endpoints");
5
5
  const k = "ref";
6
6
  const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = { [k]: "Endpoint" }, h = { [k]: d }, i = {}, j = [{ [k]: "Region" }];
7
7
  const _data = {
@@ -46,4 +46,4 @@ const nodes = new Int32Array([
46
46
  3, r + 1, 13,
47
47
  4, r + 2, r + 3,
48
48
  ]);
49
- exports.bdd = util_endpoints_1.BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
49
+ exports.bdd = endpoints_1.BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
@@ -2,17 +2,17 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.defaultEndpointResolver = void 0;
4
4
  const util_endpoints_1 = require("@aws-sdk/util-endpoints");
5
- const util_endpoints_2 = require("@smithy/util-endpoints");
5
+ const endpoints_1 = require("@smithy/core/endpoints");
6
6
  const bdd_1 = require("./bdd");
7
- const cache = new util_endpoints_2.EndpointCache({
7
+ const cache = new endpoints_1.EndpointCache({
8
8
  size: 50,
9
9
  params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
10
10
  });
11
11
  const defaultEndpointResolver = (endpointParams, context = {}) => {
12
- return cache.get(endpointParams, () => (0, util_endpoints_2.decideEndpoint)(bdd_1.bdd, {
12
+ return cache.get(endpointParams, () => (0, endpoints_1.decideEndpoint)(bdd_1.bdd, {
13
13
  endpointParams: endpointParams,
14
14
  logger: context.logger,
15
15
  }));
16
16
  };
17
17
  exports.defaultEndpointResolver = defaultEndpointResolver;
18
- util_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;
18
+ endpoints_1.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;
package/dist-cjs/index.js CHANGED
@@ -4,19 +4,17 @@ var middlewareHostHeader = require('@aws-sdk/middleware-host-header');
4
4
  var middlewareLogger = require('@aws-sdk/middleware-logger');
5
5
  var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detection');
6
6
  var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
7
- var configResolver = require('@smithy/config-resolver');
8
7
  var core = require('@smithy/core');
8
+ var client = require('@smithy/core/client');
9
+ var config = require('@smithy/core/config');
10
+ var endpoints = require('@smithy/core/endpoints');
11
+ var protocols = require('@smithy/core/protocols');
12
+ var retry = require('@smithy/core/retry');
9
13
  var schema = require('@smithy/core/schema');
10
- var middlewareContentLength = require('@smithy/middleware-content-length');
11
- var middlewareEndpoint = require('@smithy/middleware-endpoint');
12
- var middlewareRetry = require('@smithy/middleware-retry');
13
- var smithyClient = require('@smithy/smithy-client');
14
14
  var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
15
15
  var runtimeConfig = require('./runtimeConfig');
16
16
  var regionConfigResolver = require('@aws-sdk/region-config-resolver');
17
- var protocolHttp = require('@smithy/protocol-http');
18
17
  var schemas_0 = require('./schemas/schemas_0');
19
- var utilWaiter = require('@smithy/util-waiter');
20
18
  var errors = require('./models/errors');
21
19
  var RepostspaceServiceException = require('./models/RepostspaceServiceException');
22
20
 
@@ -74,12 +72,12 @@ const resolveHttpAuthRuntimeConfig = (config) => {
74
72
  };
75
73
 
76
74
  const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
77
- const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), smithyClient.getDefaultExtensionConfiguration(runtimeConfig), protocolHttp.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
75
+ const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), client.getDefaultExtensionConfiguration(runtimeConfig), protocols.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
78
76
  extensions.forEach((extension) => extension.configure(extensionConfiguration));
79
- return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), smithyClient.resolveDefaultRuntimeConfig(extensionConfiguration), protocolHttp.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
77
+ return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), client.resolveDefaultRuntimeConfig(extensionConfiguration), protocols.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
80
78
  };
81
79
 
82
- class RepostspaceClient extends smithyClient.Client {
80
+ class RepostspaceClient extends client.Client {
83
81
  config;
84
82
  constructor(...[configuration]) {
85
83
  const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});
@@ -87,17 +85,17 @@ class RepostspaceClient extends smithyClient.Client {
87
85
  this.initConfig = _config_0;
88
86
  const _config_1 = resolveClientEndpointParameters(_config_0);
89
87
  const _config_2 = middlewareUserAgent.resolveUserAgentConfig(_config_1);
90
- const _config_3 = middlewareRetry.resolveRetryConfig(_config_2);
91
- const _config_4 = configResolver.resolveRegionConfig(_config_3);
88
+ const _config_3 = retry.resolveRetryConfig(_config_2);
89
+ const _config_4 = config.resolveRegionConfig(_config_3);
92
90
  const _config_5 = middlewareHostHeader.resolveHostHeaderConfig(_config_4);
93
- const _config_6 = middlewareEndpoint.resolveEndpointConfig(_config_5);
91
+ const _config_6 = endpoints.resolveEndpointConfig(_config_5);
94
92
  const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
95
93
  const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
96
94
  this.config = _config_8;
97
95
  this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config));
98
96
  this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
99
- this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
100
- this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
97
+ this.middlewareStack.use(retry.getRetryPlugin(this.config));
98
+ this.middlewareStack.use(protocols.getContentLengthPlugin(this.config));
101
99
  this.middlewareStack.use(middlewareHostHeader.getHostHeaderPlugin(this.config));
102
100
  this.middlewareStack.use(middlewareLogger.getLoggerPlugin(this.config));
103
101
  this.middlewareStack.use(middlewareRecursionDetection.getRecursionDetectionPlugin(this.config));
@@ -114,11 +112,11 @@ class RepostspaceClient extends smithyClient.Client {
114
112
  }
115
113
  }
116
114
 
117
- class BatchAddChannelRoleToAccessorsCommand extends smithyClient.Command
115
+ class BatchAddChannelRoleToAccessorsCommand extends client.Command
118
116
  .classBuilder()
119
117
  .ep(commonParams)
120
118
  .m(function (Command, cs, config, o) {
121
- return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
119
+ return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
122
120
  })
123
121
  .s("RepostSpace", "BatchAddChannelRoleToAccessors", {})
124
122
  .n("RepostspaceClient", "BatchAddChannelRoleToAccessorsCommand")
@@ -126,11 +124,11 @@ class BatchAddChannelRoleToAccessorsCommand extends smithyClient.Command
126
124
  .build() {
127
125
  }
128
126
 
129
- class BatchAddRoleCommand extends smithyClient.Command
127
+ class BatchAddRoleCommand extends client.Command
130
128
  .classBuilder()
131
129
  .ep(commonParams)
132
130
  .m(function (Command, cs, config, o) {
133
- return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
131
+ return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
134
132
  })
135
133
  .s("RepostSpace", "BatchAddRole", {})
136
134
  .n("RepostspaceClient", "BatchAddRoleCommand")
@@ -138,11 +136,11 @@ class BatchAddRoleCommand extends smithyClient.Command
138
136
  .build() {
139
137
  }
140
138
 
141
- class BatchRemoveChannelRoleFromAccessorsCommand extends smithyClient.Command
139
+ class BatchRemoveChannelRoleFromAccessorsCommand extends client.Command
142
140
  .classBuilder()
143
141
  .ep(commonParams)
144
142
  .m(function (Command, cs, config, o) {
145
- return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
143
+ return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
146
144
  })
147
145
  .s("RepostSpace", "BatchRemoveChannelRoleFromAccessors", {})
148
146
  .n("RepostspaceClient", "BatchRemoveChannelRoleFromAccessorsCommand")
@@ -150,11 +148,11 @@ class BatchRemoveChannelRoleFromAccessorsCommand extends smithyClient.Command
150
148
  .build() {
151
149
  }
152
150
 
153
- class BatchRemoveRoleCommand extends smithyClient.Command
151
+ class BatchRemoveRoleCommand extends client.Command
154
152
  .classBuilder()
155
153
  .ep(commonParams)
156
154
  .m(function (Command, cs, config, o) {
157
- return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
155
+ return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
158
156
  })
159
157
  .s("RepostSpace", "BatchRemoveRole", {})
160
158
  .n("RepostspaceClient", "BatchRemoveRoleCommand")
@@ -162,11 +160,11 @@ class BatchRemoveRoleCommand extends smithyClient.Command
162
160
  .build() {
163
161
  }
164
162
 
165
- class CreateChannelCommand extends smithyClient.Command
163
+ class CreateChannelCommand extends client.Command
166
164
  .classBuilder()
167
165
  .ep(commonParams)
168
166
  .m(function (Command, cs, config, o) {
169
- return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
167
+ return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
170
168
  })
171
169
  .s("RepostSpace", "CreateChannel", {})
172
170
  .n("RepostspaceClient", "CreateChannelCommand")
@@ -174,11 +172,11 @@ class CreateChannelCommand extends smithyClient.Command
174
172
  .build() {
175
173
  }
176
174
 
177
- class CreateSpaceCommand extends smithyClient.Command
175
+ class CreateSpaceCommand extends client.Command
178
176
  .classBuilder()
179
177
  .ep(commonParams)
180
178
  .m(function (Command, cs, config, o) {
181
- return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
179
+ return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
182
180
  })
183
181
  .s("RepostSpace", "CreateSpace", {})
184
182
  .n("RepostspaceClient", "CreateSpaceCommand")
@@ -186,11 +184,11 @@ class CreateSpaceCommand extends smithyClient.Command
186
184
  .build() {
187
185
  }
188
186
 
189
- class DeleteSpaceCommand extends smithyClient.Command
187
+ class DeleteSpaceCommand extends client.Command
190
188
  .classBuilder()
191
189
  .ep(commonParams)
192
190
  .m(function (Command, cs, config, o) {
193
- return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
191
+ return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
194
192
  })
195
193
  .s("RepostSpace", "DeleteSpace", {})
196
194
  .n("RepostspaceClient", "DeleteSpaceCommand")
@@ -198,11 +196,11 @@ class DeleteSpaceCommand extends smithyClient.Command
198
196
  .build() {
199
197
  }
200
198
 
201
- class DeregisterAdminCommand extends smithyClient.Command
199
+ class DeregisterAdminCommand extends client.Command
202
200
  .classBuilder()
203
201
  .ep(commonParams)
204
202
  .m(function (Command, cs, config, o) {
205
- return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
203
+ return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
206
204
  })
207
205
  .s("RepostSpace", "DeregisterAdmin", {})
208
206
  .n("RepostspaceClient", "DeregisterAdminCommand")
@@ -210,11 +208,11 @@ class DeregisterAdminCommand extends smithyClient.Command
210
208
  .build() {
211
209
  }
212
210
 
213
- class GetChannelCommand extends smithyClient.Command
211
+ class GetChannelCommand extends client.Command
214
212
  .classBuilder()
215
213
  .ep(commonParams)
216
214
  .m(function (Command, cs, config, o) {
217
- return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
215
+ return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
218
216
  })
219
217
  .s("RepostSpace", "GetChannel", {})
220
218
  .n("RepostspaceClient", "GetChannelCommand")
@@ -222,11 +220,11 @@ class GetChannelCommand extends smithyClient.Command
222
220
  .build() {
223
221
  }
224
222
 
225
- class GetSpaceCommand extends smithyClient.Command
223
+ class GetSpaceCommand extends client.Command
226
224
  .classBuilder()
227
225
  .ep(commonParams)
228
226
  .m(function (Command, cs, config, o) {
229
- return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
227
+ return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
230
228
  })
231
229
  .s("RepostSpace", "GetSpace", {})
232
230
  .n("RepostspaceClient", "GetSpaceCommand")
@@ -234,11 +232,11 @@ class GetSpaceCommand extends smithyClient.Command
234
232
  .build() {
235
233
  }
236
234
 
237
- class ListChannelsCommand extends smithyClient.Command
235
+ class ListChannelsCommand extends client.Command
238
236
  .classBuilder()
239
237
  .ep(commonParams)
240
238
  .m(function (Command, cs, config, o) {
241
- return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
239
+ return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
242
240
  })
243
241
  .s("RepostSpace", "ListChannels", {})
244
242
  .n("RepostspaceClient", "ListChannelsCommand")
@@ -246,11 +244,11 @@ class ListChannelsCommand extends smithyClient.Command
246
244
  .build() {
247
245
  }
248
246
 
249
- class ListSpacesCommand extends smithyClient.Command
247
+ class ListSpacesCommand extends client.Command
250
248
  .classBuilder()
251
249
  .ep(commonParams)
252
250
  .m(function (Command, cs, config, o) {
253
- return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
251
+ return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
254
252
  })
255
253
  .s("RepostSpace", "ListSpaces", {})
256
254
  .n("RepostspaceClient", "ListSpacesCommand")
@@ -258,11 +256,11 @@ class ListSpacesCommand extends smithyClient.Command
258
256
  .build() {
259
257
  }
260
258
 
261
- class ListTagsForResourceCommand extends smithyClient.Command
259
+ class ListTagsForResourceCommand extends client.Command
262
260
  .classBuilder()
263
261
  .ep(commonParams)
264
262
  .m(function (Command, cs, config, o) {
265
- return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
263
+ return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
266
264
  })
267
265
  .s("RepostSpace", "ListTagsForResource", {})
268
266
  .n("RepostspaceClient", "ListTagsForResourceCommand")
@@ -270,11 +268,11 @@ class ListTagsForResourceCommand extends smithyClient.Command
270
268
  .build() {
271
269
  }
272
270
 
273
- class RegisterAdminCommand extends smithyClient.Command
271
+ class RegisterAdminCommand extends client.Command
274
272
  .classBuilder()
275
273
  .ep(commonParams)
276
274
  .m(function (Command, cs, config, o) {
277
- return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
275
+ return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
278
276
  })
279
277
  .s("RepostSpace", "RegisterAdmin", {})
280
278
  .n("RepostspaceClient", "RegisterAdminCommand")
@@ -282,11 +280,11 @@ class RegisterAdminCommand extends smithyClient.Command
282
280
  .build() {
283
281
  }
284
282
 
285
- class SendInvitesCommand extends smithyClient.Command
283
+ class SendInvitesCommand extends client.Command
286
284
  .classBuilder()
287
285
  .ep(commonParams)
288
286
  .m(function (Command, cs, config, o) {
289
- return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
287
+ return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
290
288
  })
291
289
  .s("RepostSpace", "SendInvites", {})
292
290
  .n("RepostspaceClient", "SendInvitesCommand")
@@ -294,11 +292,11 @@ class SendInvitesCommand extends smithyClient.Command
294
292
  .build() {
295
293
  }
296
294
 
297
- class TagResourceCommand extends smithyClient.Command
295
+ class TagResourceCommand extends client.Command
298
296
  .classBuilder()
299
297
  .ep(commonParams)
300
298
  .m(function (Command, cs, config, o) {
301
- return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
299
+ return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
302
300
  })
303
301
  .s("RepostSpace", "TagResource", {})
304
302
  .n("RepostspaceClient", "TagResourceCommand")
@@ -306,11 +304,11 @@ class TagResourceCommand extends smithyClient.Command
306
304
  .build() {
307
305
  }
308
306
 
309
- class UntagResourceCommand extends smithyClient.Command
307
+ class UntagResourceCommand extends client.Command
310
308
  .classBuilder()
311
309
  .ep(commonParams)
312
310
  .m(function (Command, cs, config, o) {
313
- return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
311
+ return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
314
312
  })
315
313
  .s("RepostSpace", "UntagResource", {})
316
314
  .n("RepostspaceClient", "UntagResourceCommand")
@@ -318,11 +316,11 @@ class UntagResourceCommand extends smithyClient.Command
318
316
  .build() {
319
317
  }
320
318
 
321
- class UpdateChannelCommand extends smithyClient.Command
319
+ class UpdateChannelCommand extends client.Command
322
320
  .classBuilder()
323
321
  .ep(commonParams)
324
322
  .m(function (Command, cs, config, o) {
325
- return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
323
+ return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
326
324
  })
327
325
  .s("RepostSpace", "UpdateChannel", {})
328
326
  .n("RepostspaceClient", "UpdateChannelCommand")
@@ -330,11 +328,11 @@ class UpdateChannelCommand extends smithyClient.Command
330
328
  .build() {
331
329
  }
332
330
 
333
- class UpdateSpaceCommand extends smithyClient.Command
331
+ class UpdateSpaceCommand extends client.Command
334
332
  .classBuilder()
335
333
  .ep(commonParams)
336
334
  .m(function (Command, cs, config, o) {
337
- return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
335
+ return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
338
336
  })
339
337
  .s("RepostSpace", "UpdateSpace", {})
340
338
  .n("RepostspaceClient", "UpdateSpaceCommand")
@@ -346,17 +344,17 @@ const paginateListChannels = core.createPaginator(RepostspaceClient, ListChannel
346
344
 
347
345
  const paginateListSpaces = core.createPaginator(RepostspaceClient, ListSpacesCommand, "nextToken", "nextToken", "maxResults");
348
346
 
349
- const checkState$3 = async (client, input) => {
347
+ const checkState$3 = async (client$1, input) => {
350
348
  let reason;
351
349
  try {
352
- let result = await client.send(new GetChannelCommand(input));
350
+ let result = await client$1.send(new GetChannelCommand(input));
353
351
  reason = result;
354
352
  try {
355
353
  const returnComparator = () => {
356
354
  return result.channelStatus;
357
355
  };
358
356
  if (returnComparator() === "CREATED") {
359
- return { state: utilWaiter.WaiterState.SUCCESS, reason };
357
+ return { state: client.WaiterState.SUCCESS, reason };
360
358
  }
361
359
  }
362
360
  catch (e) { }
@@ -365,7 +363,7 @@ const checkState$3 = async (client, input) => {
365
363
  return result.channelStatus;
366
364
  };
367
365
  if (returnComparator() === "CREATE_FAILED") {
368
- return { state: utilWaiter.WaiterState.FAILURE, reason };
366
+ return { state: client.WaiterState.FAILURE, reason };
369
367
  }
370
368
  }
371
369
  catch (e) { }
@@ -374,7 +372,7 @@ const checkState$3 = async (client, input) => {
374
372
  return result.channelStatus;
375
373
  };
376
374
  if (returnComparator() === "CREATING") {
377
- return { state: utilWaiter.WaiterState.RETRY, reason };
375
+ return { state: client.WaiterState.RETRY, reason };
378
376
  }
379
377
  }
380
378
  catch (e) { }
@@ -382,29 +380,29 @@ const checkState$3 = async (client, input) => {
382
380
  catch (exception) {
383
381
  reason = exception;
384
382
  }
385
- return { state: utilWaiter.WaiterState.RETRY, reason };
383
+ return { state: client.WaiterState.RETRY, reason };
386
384
  };
387
385
  const waitForChannelCreated = async (params, input) => {
388
386
  const serviceDefaults = { minDelay: 2, maxDelay: 120 };
389
- return utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$3);
387
+ return client.createWaiter({ ...serviceDefaults, ...params }, input, checkState$3);
390
388
  };
391
389
  const waitUntilChannelCreated = async (params, input) => {
392
390
  const serviceDefaults = { minDelay: 2, maxDelay: 120 };
393
- const result = await utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$3);
394
- return utilWaiter.checkExceptions(result);
391
+ const result = await client.createWaiter({ ...serviceDefaults, ...params }, input, checkState$3);
392
+ return client.checkExceptions(result);
395
393
  };
396
394
 
397
- const checkState$2 = async (client, input) => {
395
+ const checkState$2 = async (client$1, input) => {
398
396
  let reason;
399
397
  try {
400
- let result = await client.send(new GetChannelCommand(input));
398
+ let result = await client$1.send(new GetChannelCommand(input));
401
399
  reason = result;
402
400
  try {
403
401
  const returnComparator = () => {
404
402
  return result.channelStatus;
405
403
  };
406
404
  if (returnComparator() === "DELETED") {
407
- return { state: utilWaiter.WaiterState.SUCCESS, reason };
405
+ return { state: client.WaiterState.SUCCESS, reason };
408
406
  }
409
407
  }
410
408
  catch (e) { }
@@ -413,7 +411,7 @@ const checkState$2 = async (client, input) => {
413
411
  return result.channelStatus;
414
412
  };
415
413
  if (returnComparator() === "DELETE_FAILED") {
416
- return { state: utilWaiter.WaiterState.FAILURE, reason };
414
+ return { state: client.WaiterState.FAILURE, reason };
417
415
  }
418
416
  }
419
417
  catch (e) { }
@@ -422,7 +420,7 @@ const checkState$2 = async (client, input) => {
422
420
  return result.channelStatus;
423
421
  };
424
422
  if (returnComparator() === "DELETING") {
425
- return { state: utilWaiter.WaiterState.RETRY, reason };
423
+ return { state: client.WaiterState.RETRY, reason };
426
424
  }
427
425
  }
428
426
  catch (e) { }
@@ -430,32 +428,32 @@ const checkState$2 = async (client, input) => {
430
428
  catch (exception) {
431
429
  reason = exception;
432
430
  if (exception.name === "ResourceNotFoundException") {
433
- return { state: utilWaiter.WaiterState.SUCCESS, reason };
431
+ return { state: client.WaiterState.SUCCESS, reason };
434
432
  }
435
433
  }
436
- return { state: utilWaiter.WaiterState.RETRY, reason };
434
+ return { state: client.WaiterState.RETRY, reason };
437
435
  };
438
436
  const waitForChannelDeleted = async (params, input) => {
439
437
  const serviceDefaults = { minDelay: 2, maxDelay: 120 };
440
- return utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$2);
438
+ return client.createWaiter({ ...serviceDefaults, ...params }, input, checkState$2);
441
439
  };
442
440
  const waitUntilChannelDeleted = async (params, input) => {
443
441
  const serviceDefaults = { minDelay: 2, maxDelay: 120 };
444
- const result = await utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$2);
445
- return utilWaiter.checkExceptions(result);
442
+ const result = await client.createWaiter({ ...serviceDefaults, ...params }, input, checkState$2);
443
+ return client.checkExceptions(result);
446
444
  };
447
445
 
448
- const checkState$1 = async (client, input) => {
446
+ const checkState$1 = async (client$1, input) => {
449
447
  let reason;
450
448
  try {
451
- let result = await client.send(new GetSpaceCommand(input));
449
+ let result = await client$1.send(new GetSpaceCommand(input));
452
450
  reason = result;
453
451
  try {
454
452
  const returnComparator = () => {
455
453
  return result.status;
456
454
  };
457
455
  if (returnComparator() === "CREATED") {
458
- return { state: utilWaiter.WaiterState.SUCCESS, reason };
456
+ return { state: client.WaiterState.SUCCESS, reason };
459
457
  }
460
458
  }
461
459
  catch (e) { }
@@ -464,7 +462,7 @@ const checkState$1 = async (client, input) => {
464
462
  return result.status;
465
463
  };
466
464
  if (returnComparator() === "CREATE_FAILED") {
467
- return { state: utilWaiter.WaiterState.FAILURE, reason };
465
+ return { state: client.WaiterState.FAILURE, reason };
468
466
  }
469
467
  }
470
468
  catch (e) { }
@@ -473,7 +471,7 @@ const checkState$1 = async (client, input) => {
473
471
  return result.status;
474
472
  };
475
473
  if (returnComparator() === "CREATING") {
476
- return { state: utilWaiter.WaiterState.RETRY, reason };
474
+ return { state: client.WaiterState.RETRY, reason };
477
475
  }
478
476
  }
479
477
  catch (e) { }
@@ -481,29 +479,29 @@ const checkState$1 = async (client, input) => {
481
479
  catch (exception) {
482
480
  reason = exception;
483
481
  }
484
- return { state: utilWaiter.WaiterState.RETRY, reason };
482
+ return { state: client.WaiterState.RETRY, reason };
485
483
  };
486
484
  const waitForSpaceCreated = async (params, input) => {
487
485
  const serviceDefaults = { minDelay: 300, maxDelay: 7200 };
488
- return utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$1);
486
+ return client.createWaiter({ ...serviceDefaults, ...params }, input, checkState$1);
489
487
  };
490
488
  const waitUntilSpaceCreated = async (params, input) => {
491
489
  const serviceDefaults = { minDelay: 300, maxDelay: 7200 };
492
- const result = await utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$1);
493
- return utilWaiter.checkExceptions(result);
490
+ const result = await client.createWaiter({ ...serviceDefaults, ...params }, input, checkState$1);
491
+ return client.checkExceptions(result);
494
492
  };
495
493
 
496
- const checkState = async (client, input) => {
494
+ const checkState = async (client$1, input) => {
497
495
  let reason;
498
496
  try {
499
- let result = await client.send(new GetSpaceCommand(input));
497
+ let result = await client$1.send(new GetSpaceCommand(input));
500
498
  reason = result;
501
499
  try {
502
500
  const returnComparator = () => {
503
501
  return result.status;
504
502
  };
505
503
  if (returnComparator() === "DELETED") {
506
- return { state: utilWaiter.WaiterState.SUCCESS, reason };
504
+ return { state: client.WaiterState.SUCCESS, reason };
507
505
  }
508
506
  }
509
507
  catch (e) { }
@@ -512,7 +510,7 @@ const checkState = async (client, input) => {
512
510
  return result.status;
513
511
  };
514
512
  if (returnComparator() === "DELETE_FAILED") {
515
- return { state: utilWaiter.WaiterState.FAILURE, reason };
513
+ return { state: client.WaiterState.FAILURE, reason };
516
514
  }
517
515
  }
518
516
  catch (e) { }
@@ -521,7 +519,7 @@ const checkState = async (client, input) => {
521
519
  return result.status;
522
520
  };
523
521
  if (returnComparator() === "DELETING") {
524
- return { state: utilWaiter.WaiterState.RETRY, reason };
522
+ return { state: client.WaiterState.RETRY, reason };
525
523
  }
526
524
  }
527
525
  catch (e) { }
@@ -529,19 +527,19 @@ const checkState = async (client, input) => {
529
527
  catch (exception) {
530
528
  reason = exception;
531
529
  if (exception.name === "ResourceNotFoundException") {
532
- return { state: utilWaiter.WaiterState.SUCCESS, reason };
530
+ return { state: client.WaiterState.SUCCESS, reason };
533
531
  }
534
532
  }
535
- return { state: utilWaiter.WaiterState.RETRY, reason };
533
+ return { state: client.WaiterState.RETRY, reason };
536
534
  };
537
535
  const waitForSpaceDeleted = async (params, input) => {
538
536
  const serviceDefaults = { minDelay: 300, maxDelay: 7200 };
539
- return utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState);
537
+ return client.createWaiter({ ...serviceDefaults, ...params }, input, checkState);
540
538
  };
541
539
  const waitUntilSpaceDeleted = async (params, input) => {
542
540
  const serviceDefaults = { minDelay: 300, maxDelay: 7200 };
543
- const result = await utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState);
544
- return utilWaiter.checkExceptions(result);
541
+ const result = await client.createWaiter({ ...serviceDefaults, ...params }, input, checkState);
542
+ return client.checkExceptions(result);
545
543
  };
546
544
 
547
545
  const commands = {
@@ -577,7 +575,7 @@ const waiters = {
577
575
  };
578
576
  class Repostspace extends RepostspaceClient {
579
577
  }
580
- smithyClient.createAggregatedClient(commands, Repostspace, { paginators, waiters });
578
+ client.createAggregatedClient(commands, Repostspace, { paginators, waiters });
581
579
 
582
580
  const ChannelRole = {
583
581
  ASKER: "ASKER",
@@ -628,8 +626,8 @@ const VanityDomainStatus = {
628
626
  UNAPPROVED: "UNAPPROVED",
629
627
  };
630
628
 
631
- exports.$Command = smithyClient.Command;
632
- exports.__Client = smithyClient.Client;
629
+ exports.$Command = client.Command;
630
+ exports.__Client = client.Client;
633
631
  exports.RepostspaceServiceException = RepostspaceServiceException.RepostspaceServiceException;
634
632
  exports.BatchAddChannelRoleToAccessorsCommand = BatchAddChannelRoleToAccessorsCommand;
635
633
  exports.BatchAddRoleCommand = BatchAddRoleCommand;
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.RepostspaceServiceException = exports.__ServiceException = void 0;
4
- const smithy_client_1 = require("@smithy/smithy-client");
5
- Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return smithy_client_1.ServiceException; } });
6
- class RepostspaceServiceException extends smithy_client_1.ServiceException {
4
+ const client_1 = require("@smithy/core/client");
5
+ Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return client_1.ServiceException; } });
6
+ class RepostspaceServiceException extends client_1.ServiceException {
7
7
  constructor(options) {
8
8
  super(options);
9
9
  Object.setPrototypeOf(this, RepostspaceServiceException.prototype);