@aws-sdk/client-kinesis-video-webrtc-storage 3.928.0 → 3.930.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.
package/dist-cjs/index.js CHANGED
@@ -6,6 +6,7 @@ var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detect
6
6
  var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
7
7
  var configResolver = require('@smithy/config-resolver');
8
8
  var core = require('@smithy/core');
9
+ var schema = require('@smithy/core/schema');
9
10
  var middlewareContentLength = require('@smithy/middleware-content-length');
10
11
  var middlewareEndpoint = require('@smithy/middleware-endpoint');
11
12
  var middlewareRetry = require('@smithy/middleware-retry');
@@ -14,8 +15,6 @@ var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
14
15
  var runtimeConfig = require('./runtimeConfig');
15
16
  var regionConfigResolver = require('@aws-sdk/region-config-resolver');
16
17
  var protocolHttp = require('@smithy/protocol-http');
17
- var middlewareSerde = require('@smithy/middleware-serde');
18
- var core$1 = require('@aws-sdk/core');
19
18
 
20
19
  const resolveClientEndpointParameters = (options) => {
21
20
  return Object.assign(options, {
@@ -91,6 +90,7 @@ class KinesisVideoWebRTCStorageClient extends smithyClient.Client {
91
90
  const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
92
91
  const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
93
92
  this.config = _config_8;
93
+ this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config));
94
94
  this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
95
95
  this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
96
96
  this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
@@ -110,14 +110,14 @@ class KinesisVideoWebRTCStorageClient extends smithyClient.Client {
110
110
  }
111
111
  }
112
112
 
113
- class KinesisVideoWebRTCStorageServiceException extends smithyClient.ServiceException {
113
+ let KinesisVideoWebRTCStorageServiceException$1 = class KinesisVideoWebRTCStorageServiceException extends smithyClient.ServiceException {
114
114
  constructor(options) {
115
115
  super(options);
116
116
  Object.setPrototypeOf(this, KinesisVideoWebRTCStorageServiceException.prototype);
117
117
  }
118
- }
118
+ };
119
119
 
120
- class AccessDeniedException extends KinesisVideoWebRTCStorageServiceException {
120
+ let AccessDeniedException$1 = class AccessDeniedException extends KinesisVideoWebRTCStorageServiceException$1 {
121
121
  name = "AccessDeniedException";
122
122
  $fault = "client";
123
123
  constructor(opts) {
@@ -128,8 +128,8 @@ class AccessDeniedException extends KinesisVideoWebRTCStorageServiceException {
128
128
  });
129
129
  Object.setPrototypeOf(this, AccessDeniedException.prototype);
130
130
  }
131
- }
132
- class ClientLimitExceededException extends KinesisVideoWebRTCStorageServiceException {
131
+ };
132
+ let ClientLimitExceededException$1 = class ClientLimitExceededException extends KinesisVideoWebRTCStorageServiceException$1 {
133
133
  name = "ClientLimitExceededException";
134
134
  $fault = "client";
135
135
  constructor(opts) {
@@ -140,8 +140,8 @@ class ClientLimitExceededException extends KinesisVideoWebRTCStorageServiceExcep
140
140
  });
141
141
  Object.setPrototypeOf(this, ClientLimitExceededException.prototype);
142
142
  }
143
- }
144
- class InvalidArgumentException extends KinesisVideoWebRTCStorageServiceException {
143
+ };
144
+ let InvalidArgumentException$1 = class InvalidArgumentException extends KinesisVideoWebRTCStorageServiceException$1 {
145
145
  name = "InvalidArgumentException";
146
146
  $fault = "client";
147
147
  constructor(opts) {
@@ -152,8 +152,8 @@ class InvalidArgumentException extends KinesisVideoWebRTCStorageServiceException
152
152
  });
153
153
  Object.setPrototypeOf(this, InvalidArgumentException.prototype);
154
154
  }
155
- }
156
- class ResourceNotFoundException extends KinesisVideoWebRTCStorageServiceException {
155
+ };
156
+ let ResourceNotFoundException$1 = class ResourceNotFoundException extends KinesisVideoWebRTCStorageServiceException$1 {
157
157
  name = "ResourceNotFoundException";
158
158
  $fault = "client";
159
159
  constructor(opts) {
@@ -164,157 +164,115 @@ class ResourceNotFoundException extends KinesisVideoWebRTCStorageServiceExceptio
164
164
  });
165
165
  Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
166
166
  }
167
- }
168
-
169
- const se_JoinStorageSessionCommand = async (input, context) => {
170
- const b = core.requestBuilder(input, context);
171
- const headers = {
172
- "content-type": "application/json",
173
- };
174
- b.bp("/joinStorageSession");
175
- let body;
176
- body = JSON.stringify(smithyClient.take(input, {
177
- channelArn: [],
178
- }));
179
- b.m("POST").h(headers).b(body);
180
- return b.build();
181
- };
182
- const se_JoinStorageSessionAsViewerCommand = async (input, context) => {
183
- const b = core.requestBuilder(input, context);
184
- const headers = {
185
- "content-type": "application/json",
186
- };
187
- b.bp("/joinStorageSessionAsViewer");
188
- let body;
189
- body = JSON.stringify(smithyClient.take(input, {
190
- channelArn: [],
191
- clientId: [],
192
- }));
193
- b.m("POST").h(headers).b(body);
194
- return b.build();
195
- };
196
- const de_JoinStorageSessionCommand = async (output, context) => {
197
- if (output.statusCode !== 200 && output.statusCode >= 300) {
198
- return de_CommandError(output, context);
199
- }
200
- const contents = smithyClient.map({
201
- $metadata: deserializeMetadata(output),
202
- });
203
- await smithyClient.collectBody(output.body, context);
204
- return contents;
205
- };
206
- const de_JoinStorageSessionAsViewerCommand = async (output, context) => {
207
- if (output.statusCode !== 200 && output.statusCode >= 300) {
208
- return de_CommandError(output, context);
209
- }
210
- const contents = smithyClient.map({
211
- $metadata: deserializeMetadata(output),
212
- });
213
- await smithyClient.collectBody(output.body, context);
214
- return contents;
215
- };
216
- const de_CommandError = async (output, context) => {
217
- const parsedOutput = {
218
- ...output,
219
- body: await core$1.parseJsonErrorBody(output.body, context),
220
- };
221
- const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
222
- switch (errorCode) {
223
- case "AccessDeniedException":
224
- case "com.amazonaws.kinesisvideowebrtcstorage#AccessDeniedException":
225
- throw await de_AccessDeniedExceptionRes(parsedOutput);
226
- case "ClientLimitExceededException":
227
- case "com.amazonaws.kinesisvideowebrtcstorage#ClientLimitExceededException":
228
- throw await de_ClientLimitExceededExceptionRes(parsedOutput);
229
- case "InvalidArgumentException":
230
- case "com.amazonaws.kinesisvideowebrtcstorage#InvalidArgumentException":
231
- throw await de_InvalidArgumentExceptionRes(parsedOutput);
232
- case "ResourceNotFoundException":
233
- case "com.amazonaws.kinesisvideowebrtcstorage#ResourceNotFoundException":
234
- throw await de_ResourceNotFoundExceptionRes(parsedOutput);
235
- default:
236
- const parsedBody = parsedOutput.body;
237
- return throwDefaultError({
238
- output,
239
- parsedBody,
240
- errorCode,
241
- });
242
- }
243
- };
244
- const throwDefaultError = smithyClient.withBaseException(KinesisVideoWebRTCStorageServiceException);
245
- const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
246
- const contents = smithyClient.map({});
247
- const data = parsedOutput.body;
248
- const doc = smithyClient.take(data, {
249
- message: smithyClient.expectString,
250
- });
251
- Object.assign(contents, doc);
252
- const exception = new AccessDeniedException({
253
- $metadata: deserializeMetadata(parsedOutput),
254
- ...contents,
255
- });
256
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
257
- };
258
- const de_ClientLimitExceededExceptionRes = async (parsedOutput, context) => {
259
- const contents = smithyClient.map({});
260
- const data = parsedOutput.body;
261
- const doc = smithyClient.take(data, {
262
- message: smithyClient.expectString,
263
- });
264
- Object.assign(contents, doc);
265
- const exception = new ClientLimitExceededException({
266
- $metadata: deserializeMetadata(parsedOutput),
267
- ...contents,
268
- });
269
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
270
167
  };
271
- const de_InvalidArgumentExceptionRes = async (parsedOutput, context) => {
272
- const contents = smithyClient.map({});
273
- const data = parsedOutput.body;
274
- const doc = smithyClient.take(data, {
275
- message: smithyClient.expectString,
276
- });
277
- Object.assign(contents, doc);
278
- const exception = new InvalidArgumentException({
279
- $metadata: deserializeMetadata(parsedOutput),
280
- ...contents,
281
- });
282
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
283
- };
284
- const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
285
- const contents = smithyClient.map({});
286
- const data = parsedOutput.body;
287
- const doc = smithyClient.take(data, {
288
- message: smithyClient.expectString,
289
- });
290
- Object.assign(contents, doc);
291
- const exception = new ResourceNotFoundException({
292
- $metadata: deserializeMetadata(parsedOutput),
293
- ...contents,
294
- });
295
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
296
- };
297
- const deserializeMetadata = (output) => ({
298
- httpStatusCode: output.statusCode,
299
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
300
- extendedRequestId: output.headers["x-amz-id-2"],
301
- cfId: output.headers["x-amz-cf-id"],
302
- });
168
+
169
+ const _ADE = "AccessDeniedException";
170
+ const _CLEE = "ClientLimitExceededException";
171
+ const _IAE = "InvalidArgumentException";
172
+ const _JSS = "JoinStorageSession";
173
+ const _JSSAV = "JoinStorageSessionAsViewer";
174
+ const _JSSAVI = "JoinStorageSessionAsViewerInput";
175
+ const _JSSI = "JoinStorageSessionInput";
176
+ const _RNFE = "ResourceNotFoundException";
177
+ const _c = "client";
178
+ const _cA = "channelArn";
179
+ const _cI = "clientId";
180
+ const _e = "error";
181
+ const _h = "http";
182
+ const _hE = "httpError";
183
+ const _m = "message";
184
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.kinesisvideowebrtcstorage";
185
+ const n0 = "com.amazonaws.kinesisvideowebrtcstorage";
186
+ var AccessDeniedException = [
187
+ -3,
188
+ n0,
189
+ _ADE,
190
+ {
191
+ [_e]: _c,
192
+ [_hE]: 403,
193
+ },
194
+ [_m],
195
+ [0],
196
+ ];
197
+ schema.TypeRegistry.for(n0).registerError(AccessDeniedException, AccessDeniedException$1);
198
+ var ClientLimitExceededException = [
199
+ -3,
200
+ n0,
201
+ _CLEE,
202
+ {
203
+ [_e]: _c,
204
+ [_hE]: 400,
205
+ },
206
+ [_m],
207
+ [0],
208
+ ];
209
+ schema.TypeRegistry.for(n0).registerError(ClientLimitExceededException, ClientLimitExceededException$1);
210
+ var InvalidArgumentException = [
211
+ -3,
212
+ n0,
213
+ _IAE,
214
+ {
215
+ [_e]: _c,
216
+ [_hE]: 400,
217
+ },
218
+ [_m],
219
+ [0],
220
+ ];
221
+ schema.TypeRegistry.for(n0).registerError(InvalidArgumentException, InvalidArgumentException$1);
222
+ var JoinStorageSessionAsViewerInput = [3, n0, _JSSAVI, 0, [_cA, _cI], [0, 0]];
223
+ var JoinStorageSessionInput = [3, n0, _JSSI, 0, [_cA], [0]];
224
+ var ResourceNotFoundException = [
225
+ -3,
226
+ n0,
227
+ _RNFE,
228
+ {
229
+ [_e]: _c,
230
+ [_hE]: 404,
231
+ },
232
+ [_m],
233
+ [0],
234
+ ];
235
+ schema.TypeRegistry.for(n0).registerError(ResourceNotFoundException, ResourceNotFoundException$1);
236
+ var __Unit = "unit";
237
+ var KinesisVideoWebRTCStorageServiceException = [
238
+ -3,
239
+ _s,
240
+ "KinesisVideoWebRTCStorageServiceException",
241
+ 0,
242
+ [],
243
+ [],
244
+ ];
245
+ schema.TypeRegistry.for(_s).registerError(KinesisVideoWebRTCStorageServiceException, KinesisVideoWebRTCStorageServiceException$1);
246
+ var JoinStorageSession = [
247
+ 9,
248
+ n0,
249
+ _JSS,
250
+ {
251
+ [_h]: ["POST", "/joinStorageSession", 200],
252
+ },
253
+ () => JoinStorageSessionInput,
254
+ () => __Unit,
255
+ ];
256
+ var JoinStorageSessionAsViewer = [
257
+ 9,
258
+ n0,
259
+ _JSSAV,
260
+ {
261
+ [_h]: ["POST", "/joinStorageSessionAsViewer", 200],
262
+ },
263
+ () => JoinStorageSessionAsViewerInput,
264
+ () => __Unit,
265
+ ];
303
266
 
304
267
  class JoinStorageSessionAsViewerCommand extends smithyClient.Command
305
268
  .classBuilder()
306
269
  .ep(commonParams)
307
270
  .m(function (Command, cs, config, o) {
308
- return [
309
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
310
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
311
- ];
271
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
312
272
  })
313
273
  .s("AWSAcuityRoutingServiceLambda", "JoinStorageSessionAsViewer", {})
314
274
  .n("KinesisVideoWebRTCStorageClient", "JoinStorageSessionAsViewerCommand")
315
- .f(void 0, void 0)
316
- .ser(se_JoinStorageSessionAsViewerCommand)
317
- .de(de_JoinStorageSessionAsViewerCommand)
275
+ .sc(JoinStorageSessionAsViewer)
318
276
  .build() {
319
277
  }
320
278
 
@@ -322,16 +280,11 @@ class JoinStorageSessionCommand extends smithyClient.Command
322
280
  .classBuilder()
323
281
  .ep(commonParams)
324
282
  .m(function (Command, cs, config, o) {
325
- return [
326
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
327
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
328
- ];
283
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
329
284
  })
330
285
  .s("AWSAcuityRoutingServiceLambda", "JoinStorageSession", {})
331
286
  .n("KinesisVideoWebRTCStorageClient", "JoinStorageSessionCommand")
332
- .f(void 0, void 0)
333
- .ser(se_JoinStorageSessionCommand)
334
- .de(de_JoinStorageSessionCommand)
287
+ .sc(JoinStorageSession)
335
288
  .build() {
336
289
  }
337
290
 
@@ -351,12 +304,12 @@ Object.defineProperty(exports, "__Client", {
351
304
  enumerable: true,
352
305
  get: function () { return smithyClient.Client; }
353
306
  });
354
- exports.AccessDeniedException = AccessDeniedException;
355
- exports.ClientLimitExceededException = ClientLimitExceededException;
356
- exports.InvalidArgumentException = InvalidArgumentException;
307
+ exports.AccessDeniedException = AccessDeniedException$1;
308
+ exports.ClientLimitExceededException = ClientLimitExceededException$1;
309
+ exports.InvalidArgumentException = InvalidArgumentException$1;
357
310
  exports.JoinStorageSessionAsViewerCommand = JoinStorageSessionAsViewerCommand;
358
311
  exports.JoinStorageSessionCommand = JoinStorageSessionCommand;
359
312
  exports.KinesisVideoWebRTCStorage = KinesisVideoWebRTCStorage;
360
313
  exports.KinesisVideoWebRTCStorageClient = KinesisVideoWebRTCStorageClient;
361
- exports.KinesisVideoWebRTCStorageServiceException = KinesisVideoWebRTCStorageServiceException;
362
- exports.ResourceNotFoundException = ResourceNotFoundException;
314
+ exports.KinesisVideoWebRTCStorageServiceException = KinesisVideoWebRTCStorageServiceException$1;
315
+ exports.ResourceNotFoundException = ResourceNotFoundException$1;
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const core_1 = require("@aws-sdk/core");
5
+ const protocols_1 = require("@aws-sdk/core/protocols");
5
6
  const smithy_client_1 = require("@smithy/smithy-client");
6
7
  const url_parser_1 = require("@smithy/url-parser");
7
8
  const util_base64_1 = require("@smithy/util-base64");
@@ -25,6 +26,7 @@ const getRuntimeConfig = (config) => {
25
26
  },
26
27
  ],
27
28
  logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
29
+ protocol: config?.protocol ?? new protocols_1.AwsRestJsonProtocol({ defaultNamespace: "com.amazonaws.kinesisvideowebrtcstorage" }),
28
30
  serviceId: config?.serviceId ?? "Kinesis Video WebRTC Storage",
29
31
  urlParser: config?.urlParser ?? url_parser_1.parseUrl,
30
32
  utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
@@ -4,6 +4,7 @@ import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detec
4
4
  import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
5
5
  import { resolveRegionConfig } from "@smithy/config-resolver";
6
6
  import { DefaultIdentityProviderConfig, getHttpAuthSchemeEndpointRuleSetPlugin, getHttpSigningPlugin, } from "@smithy/core";
7
+ import { getSchemaSerdePlugin } from "@smithy/core/schema";
7
8
  import { getContentLengthPlugin } from "@smithy/middleware-content-length";
8
9
  import { resolveEndpointConfig } from "@smithy/middleware-endpoint";
9
10
  import { getRetryPlugin, resolveRetryConfig } from "@smithy/middleware-retry";
@@ -28,6 +29,7 @@ export class KinesisVideoWebRTCStorageClient extends __Client {
28
29
  const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
29
30
  const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
30
31
  this.config = _config_8;
32
+ this.middlewareStack.use(getSchemaSerdePlugin(this.config));
31
33
  this.middlewareStack.use(getUserAgentPlugin(this.config));
32
34
  this.middlewareStack.use(getRetryPlugin(this.config));
33
35
  this.middlewareStack.use(getContentLengthPlugin(this.config));
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_JoinStorageSessionAsViewerCommand, se_JoinStorageSessionAsViewerCommand } from "../protocols/Aws_restJson1";
4
+ import { JoinStorageSessionAsViewer } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class JoinStorageSessionAsViewerCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AWSAcuityRoutingServiceLambda", "JoinStorageSessionAsViewer", {})
17
13
  .n("KinesisVideoWebRTCStorageClient", "JoinStorageSessionAsViewerCommand")
18
- .f(void 0, void 0)
19
- .ser(se_JoinStorageSessionAsViewerCommand)
20
- .de(de_JoinStorageSessionAsViewerCommand)
14
+ .sc(JoinStorageSessionAsViewer)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_JoinStorageSessionCommand, se_JoinStorageSessionCommand } from "../protocols/Aws_restJson1";
4
+ import { JoinStorageSession } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class JoinStorageSessionCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AWSAcuityRoutingServiceLambda", "JoinStorageSession", {})
17
13
  .n("KinesisVideoWebRTCStorageClient", "JoinStorageSessionCommand")
18
- .f(void 0, void 0)
19
- .ser(se_JoinStorageSessionCommand)
20
- .de(de_JoinStorageSessionCommand)
14
+ .sc(JoinStorageSession)
21
15
  .build() {
22
16
  }
@@ -1,4 +1,5 @@
1
1
  import { AwsSdkSigV4Signer } from "@aws-sdk/core";
2
+ import { AwsRestJsonProtocol } from "@aws-sdk/core/protocols";
2
3
  import { NoOpLogger } from "@smithy/smithy-client";
3
4
  import { parseUrl } from "@smithy/url-parser";
4
5
  import { fromBase64, toBase64 } from "@smithy/util-base64";
@@ -22,6 +23,7 @@ export const getRuntimeConfig = (config) => {
22
23
  },
23
24
  ],
24
25
  logger: config?.logger ?? new NoOpLogger(),
26
+ protocol: config?.protocol ?? new AwsRestJsonProtocol({ defaultNamespace: "com.amazonaws.kinesisvideowebrtcstorage" }),
25
27
  serviceId: config?.serviceId ?? "Kinesis Video WebRTC Storage",
26
28
  urlParser: config?.urlParser ?? parseUrl,
27
29
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,
@@ -0,0 +1,100 @@
1
+ const _ADE = "AccessDeniedException";
2
+ const _CLEE = "ClientLimitExceededException";
3
+ const _IAE = "InvalidArgumentException";
4
+ const _JSS = "JoinStorageSession";
5
+ const _JSSAV = "JoinStorageSessionAsViewer";
6
+ const _JSSAVI = "JoinStorageSessionAsViewerInput";
7
+ const _JSSI = "JoinStorageSessionInput";
8
+ const _RNFE = "ResourceNotFoundException";
9
+ const _c = "client";
10
+ const _cA = "channelArn";
11
+ const _cI = "clientId";
12
+ const _e = "error";
13
+ const _h = "http";
14
+ const _hE = "httpError";
15
+ const _m = "message";
16
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.kinesisvideowebrtcstorage";
17
+ const n0 = "com.amazonaws.kinesisvideowebrtcstorage";
18
+ import { TypeRegistry } from "@smithy/core/schema";
19
+ import { AccessDeniedException as __AccessDeniedException, ClientLimitExceededException as __ClientLimitExceededException, InvalidArgumentException as __InvalidArgumentException, ResourceNotFoundException as __ResourceNotFoundException, } from "../models/index";
20
+ import { KinesisVideoWebRTCStorageServiceException as __KinesisVideoWebRTCStorageServiceException } from "../models/KinesisVideoWebRTCStorageServiceException";
21
+ export var AccessDeniedException = [
22
+ -3,
23
+ n0,
24
+ _ADE,
25
+ {
26
+ [_e]: _c,
27
+ [_hE]: 403,
28
+ },
29
+ [_m],
30
+ [0],
31
+ ];
32
+ TypeRegistry.for(n0).registerError(AccessDeniedException, __AccessDeniedException);
33
+ export var ClientLimitExceededException = [
34
+ -3,
35
+ n0,
36
+ _CLEE,
37
+ {
38
+ [_e]: _c,
39
+ [_hE]: 400,
40
+ },
41
+ [_m],
42
+ [0],
43
+ ];
44
+ TypeRegistry.for(n0).registerError(ClientLimitExceededException, __ClientLimitExceededException);
45
+ export var InvalidArgumentException = [
46
+ -3,
47
+ n0,
48
+ _IAE,
49
+ {
50
+ [_e]: _c,
51
+ [_hE]: 400,
52
+ },
53
+ [_m],
54
+ [0],
55
+ ];
56
+ TypeRegistry.for(n0).registerError(InvalidArgumentException, __InvalidArgumentException);
57
+ export var JoinStorageSessionAsViewerInput = [3, n0, _JSSAVI, 0, [_cA, _cI], [0, 0]];
58
+ export var JoinStorageSessionInput = [3, n0, _JSSI, 0, [_cA], [0]];
59
+ export var ResourceNotFoundException = [
60
+ -3,
61
+ n0,
62
+ _RNFE,
63
+ {
64
+ [_e]: _c,
65
+ [_hE]: 404,
66
+ },
67
+ [_m],
68
+ [0],
69
+ ];
70
+ TypeRegistry.for(n0).registerError(ResourceNotFoundException, __ResourceNotFoundException);
71
+ export var __Unit = "unit";
72
+ export var KinesisVideoWebRTCStorageServiceException = [
73
+ -3,
74
+ _s,
75
+ "KinesisVideoWebRTCStorageServiceException",
76
+ 0,
77
+ [],
78
+ [],
79
+ ];
80
+ TypeRegistry.for(_s).registerError(KinesisVideoWebRTCStorageServiceException, __KinesisVideoWebRTCStorageServiceException);
81
+ export var JoinStorageSession = [
82
+ 9,
83
+ n0,
84
+ _JSS,
85
+ {
86
+ [_h]: ["POST", "/joinStorageSession", 200],
87
+ },
88
+ () => JoinStorageSessionInput,
89
+ () => __Unit,
90
+ ];
91
+ export var JoinStorageSessionAsViewer = [
92
+ 9,
93
+ n0,
94
+ _JSSAV,
95
+ {
96
+ [_h]: ["POST", "/joinStorageSessionAsViewer", 200],
97
+ },
98
+ () => JoinStorageSessionAsViewerInput,
99
+ () => __Unit,
100
+ ];
@@ -5,7 +5,7 @@ import { EndpointInputConfig, EndpointResolvedConfig } from "@smithy/middleware-
5
5
  import { RetryInputConfig, RetryResolvedConfig } from "@smithy/middleware-retry";
6
6
  import { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol-http";
7
7
  import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@smithy/smithy-client";
8
- import { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
8
+ import { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, ClientProtocol, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, HttpRequest, HttpResponse, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
9
9
  import { HttpAuthSchemeInputConfig, HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
10
10
  import { JoinStorageSessionAsViewerCommandInput, JoinStorageSessionAsViewerCommandOutput } from "./commands/JoinStorageSessionAsViewerCommand";
11
11
  import { JoinStorageSessionCommandInput, JoinStorageSessionCommandOutput } from "./commands/JoinStorageSessionCommand";
@@ -143,6 +143,15 @@ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHand
143
143
  * Optional extensions
144
144
  */
145
145
  extensions?: RuntimeExtension[];
146
+ /**
147
+ * The protocol controlling the message type (e.g. HTTP) and format (e.g. JSON)
148
+ * may be overridden. A default will always be set by the client.
149
+ * Available options depend on the service's supported protocols and will not be validated by
150
+ * the client.
151
+ * @alpha
152
+ *
153
+ */
154
+ protocol?: ClientProtocol<HttpRequest, HttpResponse>;
146
155
  /**
147
156
  * The {@link @smithy/smithy-client#DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
148
157
  */
@@ -29,6 +29,7 @@ export declare const getRuntimeConfig: (config: KinesisVideoWebRTCStorageClientC
29
29
  profile?: string;
30
30
  logger: import("@smithy/types").Logger;
31
31
  extensions: import("./runtimeExtensions").RuntimeExtension[];
32
+ protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
32
33
  customUserAgent?: string | import("@smithy/types").UserAgent;
33
34
  userAgentAppId?: string | undefined | import("@smithy/types").Provider<string | undefined>;
34
35
  retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
@@ -31,6 +31,7 @@ export declare const getRuntimeConfig: (config: KinesisVideoWebRTCStorageClientC
31
31
  profile?: string;
32
32
  logger: import("@smithy/types").Logger;
33
33
  extensions: import("./runtimeExtensions").RuntimeExtension[];
34
+ protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
34
35
  customUserAgent?: string | import("@smithy/types").UserAgent;
35
36
  retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
36
37
  endpoint?: ((string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>) & (string | import("@smithy/types").Provider<string> | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>)) | undefined;
@@ -27,6 +27,7 @@ export declare const getRuntimeConfig: (config: KinesisVideoWebRTCStorageClientC
27
27
  retryMode: string | import("@smithy/types").Provider<string>;
28
28
  logger: import("@smithy/types").Logger;
29
29
  extensions: import("./runtimeExtensions").RuntimeExtension[];
30
+ protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
30
31
  defaultsMode: import("@smithy/smithy-client").DefaultsMode | import("@smithy/types").Provider<import("@smithy/smithy-client").DefaultsMode>;
31
32
  customUserAgent?: string | import("@smithy/types").UserAgent;
32
33
  userAgentAppId?: string | undefined | import("@smithy/types").Provider<string | undefined>;
@@ -14,6 +14,7 @@ export declare const getRuntimeConfig: (config: KinesisVideoWebRTCStorageClientC
14
14
  httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").KinesisVideoWebRTCStorageHttpAuthSchemeProvider;
15
15
  httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
16
16
  logger: import("@smithy/types").Logger;
17
+ protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
17
18
  serviceId: string;
18
19
  urlParser: import("@smithy/types").UrlParser;
19
20
  utf8Decoder: import("@smithy/types").Decoder;
@@ -0,0 +1,11 @@
1
+ import { StaticErrorSchema, StaticOperationSchema, StaticStructureSchema } from "@smithy/types";
2
+ export declare var AccessDeniedException: StaticErrorSchema;
3
+ export declare var ClientLimitExceededException: StaticErrorSchema;
4
+ export declare var InvalidArgumentException: StaticErrorSchema;
5
+ export declare var JoinStorageSessionAsViewerInput: StaticStructureSchema;
6
+ export declare var JoinStorageSessionInput: StaticStructureSchema;
7
+ export declare var ResourceNotFoundException: StaticErrorSchema;
8
+ export declare var __Unit: "unit";
9
+ export declare var KinesisVideoWebRTCStorageServiceException: StaticErrorSchema;
10
+ export declare var JoinStorageSession: StaticOperationSchema;
11
+ export declare var JoinStorageSessionAsViewer: StaticOperationSchema;
@@ -30,10 +30,13 @@ import {
30
30
  BodyLengthCalculator as __BodyLengthCalculator,
31
31
  CheckOptionalClientConfig as __CheckOptionalClientConfig,
32
32
  ChecksumConstructor as __ChecksumConstructor,
33
+ ClientProtocol,
33
34
  Decoder as __Decoder,
34
35
  Encoder as __Encoder,
35
36
  HashConstructor as __HashConstructor,
36
37
  HttpHandlerOptions as __HttpHandlerOptions,
38
+ HttpRequest,
39
+ HttpResponse,
37
40
  Logger as __Logger,
38
41
  Provider as __Provider,
39
42
  Provider,
@@ -90,6 +93,7 @@ export interface ClientDefaults
90
93
  retryMode?: string | __Provider<string>;
91
94
  logger?: __Logger;
92
95
  extensions?: RuntimeExtension[];
96
+ protocol?: ClientProtocol<HttpRequest, HttpResponse>;
93
97
  defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
94
98
  }
95
99
  export type KinesisVideoWebRTCStorageClientConfigType = Partial<
@@ -40,6 +40,10 @@ export declare const getRuntimeConfig: (
40
40
  profile?: string;
41
41
  logger: import("@smithy/types").Logger;
42
42
  extensions: import("./runtimeExtensions").RuntimeExtension[];
43
+ protocol: import("@smithy/types").ClientProtocol<
44
+ import("@smithy/types").HttpRequest,
45
+ import("@smithy/types").HttpResponse
46
+ >;
43
47
  customUserAgent?: string | import("@smithy/types").UserAgent;
44
48
  userAgentAppId?:
45
49
  | string
@@ -40,6 +40,10 @@ export declare const getRuntimeConfig: (
40
40
  profile?: string;
41
41
  logger: import("@smithy/types").Logger;
42
42
  extensions: import("./runtimeExtensions").RuntimeExtension[];
43
+ protocol: import("@smithy/types").ClientProtocol<
44
+ import("@smithy/types").HttpRequest,
45
+ import("@smithy/types").HttpResponse
46
+ >;
43
47
  customUserAgent?: string | import("@smithy/types").UserAgent;
44
48
  retryStrategy?:
45
49
  | import("@smithy/types").RetryStrategy
@@ -39,6 +39,10 @@ export declare const getRuntimeConfig: (
39
39
  retryMode: string | import("@smithy/types").Provider<string>;
40
40
  logger: import("@smithy/types").Logger;
41
41
  extensions: import("./runtimeExtensions").RuntimeExtension[];
42
+ protocol: import("@smithy/types").ClientProtocol<
43
+ import("@smithy/types").HttpRequest,
44
+ import("@smithy/types").HttpResponse
45
+ >;
42
46
  defaultsMode:
43
47
  | import("@smithy/smithy-client").DefaultsMode
44
48
  | import("@smithy/types").Provider<
@@ -16,6 +16,10 @@ export declare const getRuntimeConfig: (
16
16
  httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").KinesisVideoWebRTCStorageHttpAuthSchemeProvider;
17
17
  httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
18
18
  logger: import("@smithy/types").Logger;
19
+ protocol: import("@smithy/types").ClientProtocol<
20
+ import("@smithy/types").HttpRequest,
21
+ import("@smithy/types").HttpResponse
22
+ >;
19
23
  serviceId: string;
20
24
  urlParser: import("@smithy/types").UrlParser;
21
25
  utf8Decoder: import("@smithy/types").Decoder;
@@ -0,0 +1,15 @@
1
+ import {
2
+ StaticErrorSchema,
3
+ StaticOperationSchema,
4
+ StaticStructureSchema,
5
+ } from "@smithy/types";
6
+ export declare var AccessDeniedException: StaticErrorSchema;
7
+ export declare var ClientLimitExceededException: StaticErrorSchema;
8
+ export declare var InvalidArgumentException: StaticErrorSchema;
9
+ export declare var JoinStorageSessionAsViewerInput: StaticStructureSchema;
10
+ export declare var JoinStorageSessionInput: StaticStructureSchema;
11
+ export declare var ResourceNotFoundException: StaticErrorSchema;
12
+ export declare var __Unit: "unit";
13
+ export declare var KinesisVideoWebRTCStorageServiceException: StaticErrorSchema;
14
+ export declare var JoinStorageSession: StaticOperationSchema;
15
+ export declare var JoinStorageSessionAsViewer: StaticOperationSchema;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-kinesis-video-webrtc-storage",
3
3
  "description": "AWS SDK for JavaScript Kinesis Video Webrtc Storage Client for Node.js, Browser and React Native",
4
- "version": "3.928.0",
4
+ "version": "3.930.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-kinesis-video-webrtc-storage",
@@ -20,41 +20,41 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/core": "3.928.0",
24
- "@aws-sdk/credential-provider-node": "3.928.0",
25
- "@aws-sdk/middleware-host-header": "3.922.0",
26
- "@aws-sdk/middleware-logger": "3.922.0",
27
- "@aws-sdk/middleware-recursion-detection": "3.922.0",
28
- "@aws-sdk/middleware-user-agent": "3.928.0",
29
- "@aws-sdk/region-config-resolver": "3.925.0",
30
- "@aws-sdk/types": "3.922.0",
31
- "@aws-sdk/util-endpoints": "3.922.0",
32
- "@aws-sdk/util-user-agent-browser": "3.922.0",
33
- "@aws-sdk/util-user-agent-node": "3.928.0",
34
- "@smithy/config-resolver": "^4.4.2",
35
- "@smithy/core": "^3.17.2",
36
- "@smithy/fetch-http-handler": "^5.3.5",
37
- "@smithy/hash-node": "^4.2.4",
38
- "@smithy/invalid-dependency": "^4.2.4",
39
- "@smithy/middleware-content-length": "^4.2.4",
40
- "@smithy/middleware-endpoint": "^4.3.6",
41
- "@smithy/middleware-retry": "^4.4.6",
42
- "@smithy/middleware-serde": "^4.2.4",
43
- "@smithy/middleware-stack": "^4.2.4",
44
- "@smithy/node-config-provider": "^4.3.4",
45
- "@smithy/node-http-handler": "^4.4.4",
46
- "@smithy/protocol-http": "^5.3.4",
47
- "@smithy/smithy-client": "^4.9.2",
48
- "@smithy/types": "^4.8.1",
49
- "@smithy/url-parser": "^4.2.4",
23
+ "@aws-sdk/core": "3.930.0",
24
+ "@aws-sdk/credential-provider-node": "3.930.0",
25
+ "@aws-sdk/middleware-host-header": "3.930.0",
26
+ "@aws-sdk/middleware-logger": "3.930.0",
27
+ "@aws-sdk/middleware-recursion-detection": "3.930.0",
28
+ "@aws-sdk/middleware-user-agent": "3.930.0",
29
+ "@aws-sdk/region-config-resolver": "3.930.0",
30
+ "@aws-sdk/types": "3.930.0",
31
+ "@aws-sdk/util-endpoints": "3.930.0",
32
+ "@aws-sdk/util-user-agent-browser": "3.930.0",
33
+ "@aws-sdk/util-user-agent-node": "3.930.0",
34
+ "@smithy/config-resolver": "^4.4.3",
35
+ "@smithy/core": "^3.18.2",
36
+ "@smithy/fetch-http-handler": "^5.3.6",
37
+ "@smithy/hash-node": "^4.2.5",
38
+ "@smithy/invalid-dependency": "^4.2.5",
39
+ "@smithy/middleware-content-length": "^4.2.5",
40
+ "@smithy/middleware-endpoint": "^4.3.9",
41
+ "@smithy/middleware-retry": "^4.4.9",
42
+ "@smithy/middleware-serde": "^4.2.5",
43
+ "@smithy/middleware-stack": "^4.2.5",
44
+ "@smithy/node-config-provider": "^4.3.5",
45
+ "@smithy/node-http-handler": "^4.4.5",
46
+ "@smithy/protocol-http": "^5.3.5",
47
+ "@smithy/smithy-client": "^4.9.5",
48
+ "@smithy/types": "^4.9.0",
49
+ "@smithy/url-parser": "^4.2.5",
50
50
  "@smithy/util-base64": "^4.3.0",
51
51
  "@smithy/util-body-length-browser": "^4.2.0",
52
52
  "@smithy/util-body-length-node": "^4.2.1",
53
- "@smithy/util-defaults-mode-browser": "^4.3.5",
54
- "@smithy/util-defaults-mode-node": "^4.2.8",
55
- "@smithy/util-endpoints": "^3.2.4",
56
- "@smithy/util-middleware": "^4.2.4",
57
- "@smithy/util-retry": "^4.2.4",
53
+ "@smithy/util-defaults-mode-browser": "^4.3.8",
54
+ "@smithy/util-defaults-mode-node": "^4.2.11",
55
+ "@smithy/util-endpoints": "^3.2.5",
56
+ "@smithy/util-middleware": "^4.2.5",
57
+ "@smithy/util-retry": "^4.2.5",
58
58
  "@smithy/util-utf8": "^4.2.0",
59
59
  "tslib": "^2.6.2"
60
60
  },
@@ -1,140 +0,0 @@
1
- import { loadRestJsonErrorCode, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
2
- import { requestBuilder as rb } from "@smithy/core";
3
- import { collectBody, decorateServiceException as __decorateServiceException, expectString as __expectString, map, take, withBaseException, } from "@smithy/smithy-client";
4
- import { KinesisVideoWebRTCStorageServiceException as __BaseException } from "../models/KinesisVideoWebRTCStorageServiceException";
5
- import { AccessDeniedException, ClientLimitExceededException, InvalidArgumentException, ResourceNotFoundException, } from "../models/models_0";
6
- export const se_JoinStorageSessionCommand = async (input, context) => {
7
- const b = rb(input, context);
8
- const headers = {
9
- "content-type": "application/json",
10
- };
11
- b.bp("/joinStorageSession");
12
- let body;
13
- body = JSON.stringify(take(input, {
14
- channelArn: [],
15
- }));
16
- b.m("POST").h(headers).b(body);
17
- return b.build();
18
- };
19
- export const se_JoinStorageSessionAsViewerCommand = async (input, context) => {
20
- const b = rb(input, context);
21
- const headers = {
22
- "content-type": "application/json",
23
- };
24
- b.bp("/joinStorageSessionAsViewer");
25
- let body;
26
- body = JSON.stringify(take(input, {
27
- channelArn: [],
28
- clientId: [],
29
- }));
30
- b.m("POST").h(headers).b(body);
31
- return b.build();
32
- };
33
- export const de_JoinStorageSessionCommand = async (output, context) => {
34
- if (output.statusCode !== 200 && output.statusCode >= 300) {
35
- return de_CommandError(output, context);
36
- }
37
- const contents = map({
38
- $metadata: deserializeMetadata(output),
39
- });
40
- await collectBody(output.body, context);
41
- return contents;
42
- };
43
- export const de_JoinStorageSessionAsViewerCommand = async (output, context) => {
44
- if (output.statusCode !== 200 && output.statusCode >= 300) {
45
- return de_CommandError(output, context);
46
- }
47
- const contents = map({
48
- $metadata: deserializeMetadata(output),
49
- });
50
- await collectBody(output.body, context);
51
- return contents;
52
- };
53
- const de_CommandError = async (output, context) => {
54
- const parsedOutput = {
55
- ...output,
56
- body: await parseErrorBody(output.body, context),
57
- };
58
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
59
- switch (errorCode) {
60
- case "AccessDeniedException":
61
- case "com.amazonaws.kinesisvideowebrtcstorage#AccessDeniedException":
62
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
63
- case "ClientLimitExceededException":
64
- case "com.amazonaws.kinesisvideowebrtcstorage#ClientLimitExceededException":
65
- throw await de_ClientLimitExceededExceptionRes(parsedOutput, context);
66
- case "InvalidArgumentException":
67
- case "com.amazonaws.kinesisvideowebrtcstorage#InvalidArgumentException":
68
- throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
69
- case "ResourceNotFoundException":
70
- case "com.amazonaws.kinesisvideowebrtcstorage#ResourceNotFoundException":
71
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
72
- default:
73
- const parsedBody = parsedOutput.body;
74
- return throwDefaultError({
75
- output,
76
- parsedBody,
77
- errorCode,
78
- });
79
- }
80
- };
81
- const throwDefaultError = withBaseException(__BaseException);
82
- const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
83
- const contents = map({});
84
- const data = parsedOutput.body;
85
- const doc = take(data, {
86
- message: __expectString,
87
- });
88
- Object.assign(contents, doc);
89
- const exception = new AccessDeniedException({
90
- $metadata: deserializeMetadata(parsedOutput),
91
- ...contents,
92
- });
93
- return __decorateServiceException(exception, parsedOutput.body);
94
- };
95
- const de_ClientLimitExceededExceptionRes = async (parsedOutput, context) => {
96
- const contents = map({});
97
- const data = parsedOutput.body;
98
- const doc = take(data, {
99
- message: __expectString,
100
- });
101
- Object.assign(contents, doc);
102
- const exception = new ClientLimitExceededException({
103
- $metadata: deserializeMetadata(parsedOutput),
104
- ...contents,
105
- });
106
- return __decorateServiceException(exception, parsedOutput.body);
107
- };
108
- const de_InvalidArgumentExceptionRes = async (parsedOutput, context) => {
109
- const contents = map({});
110
- const data = parsedOutput.body;
111
- const doc = take(data, {
112
- message: __expectString,
113
- });
114
- Object.assign(contents, doc);
115
- const exception = new InvalidArgumentException({
116
- $metadata: deserializeMetadata(parsedOutput),
117
- ...contents,
118
- });
119
- return __decorateServiceException(exception, parsedOutput.body);
120
- };
121
- const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
122
- const contents = map({});
123
- const data = parsedOutput.body;
124
- const doc = take(data, {
125
- message: __expectString,
126
- });
127
- Object.assign(contents, doc);
128
- const exception = new ResourceNotFoundException({
129
- $metadata: deserializeMetadata(parsedOutput),
130
- ...contents,
131
- });
132
- return __decorateServiceException(exception, parsedOutput.body);
133
- };
134
- const deserializeMetadata = (output) => ({
135
- httpStatusCode: output.statusCode,
136
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
137
- extendedRequestId: output.headers["x-amz-id-2"],
138
- cfId: output.headers["x-amz-cf-id"],
139
- });
140
- const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
@@ -1,20 +0,0 @@
1
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
2
- import { SerdeContext as __SerdeContext } from "@smithy/types";
3
- import { JoinStorageSessionAsViewerCommandInput, JoinStorageSessionAsViewerCommandOutput } from "../commands/JoinStorageSessionAsViewerCommand";
4
- import { JoinStorageSessionCommandInput, JoinStorageSessionCommandOutput } from "../commands/JoinStorageSessionCommand";
5
- /**
6
- * serializeAws_restJson1JoinStorageSessionCommand
7
- */
8
- export declare const se_JoinStorageSessionCommand: (input: JoinStorageSessionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
9
- /**
10
- * serializeAws_restJson1JoinStorageSessionAsViewerCommand
11
- */
12
- export declare const se_JoinStorageSessionAsViewerCommand: (input: JoinStorageSessionAsViewerCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
13
- /**
14
- * deserializeAws_restJson1JoinStorageSessionCommand
15
- */
16
- export declare const de_JoinStorageSessionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<JoinStorageSessionCommandOutput>;
17
- /**
18
- * deserializeAws_restJson1JoinStorageSessionAsViewerCommand
19
- */
20
- export declare const de_JoinStorageSessionAsViewerCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<JoinStorageSessionAsViewerCommandOutput>;
@@ -1,29 +0,0 @@
1
- import {
2
- HttpRequest as __HttpRequest,
3
- HttpResponse as __HttpResponse,
4
- } from "@smithy/protocol-http";
5
- import { SerdeContext as __SerdeContext } from "@smithy/types";
6
- import {
7
- JoinStorageSessionAsViewerCommandInput,
8
- JoinStorageSessionAsViewerCommandOutput,
9
- } from "../commands/JoinStorageSessionAsViewerCommand";
10
- import {
11
- JoinStorageSessionCommandInput,
12
- JoinStorageSessionCommandOutput,
13
- } from "../commands/JoinStorageSessionCommand";
14
- export declare const se_JoinStorageSessionCommand: (
15
- input: JoinStorageSessionCommandInput,
16
- context: __SerdeContext
17
- ) => Promise<__HttpRequest>;
18
- export declare const se_JoinStorageSessionAsViewerCommand: (
19
- input: JoinStorageSessionAsViewerCommandInput,
20
- context: __SerdeContext
21
- ) => Promise<__HttpRequest>;
22
- export declare const de_JoinStorageSessionCommand: (
23
- output: __HttpResponse,
24
- context: __SerdeContext
25
- ) => Promise<JoinStorageSessionCommandOutput>;
26
- export declare const de_JoinStorageSessionAsViewerCommand: (
27
- output: __HttpResponse,
28
- context: __SerdeContext
29
- ) => Promise<JoinStorageSessionAsViewerCommandOutput>;