@aws-sdk/client-kinesis-video-archived-media 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 +408 -526
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-es/KinesisVideoArchivedMediaClient.js +2 -0
- package/dist-es/commands/GetClipCommand.js +3 -10
- package/dist-es/commands/GetDASHStreamingSessionURLCommand.js +3 -9
- package/dist-es/commands/GetHLSStreamingSessionURLCommand.js +3 -9
- package/dist-es/commands/GetImagesCommand.js +3 -9
- package/dist-es/commands/GetMediaForFragmentListCommand.js +3 -10
- package/dist-es/commands/ListFragmentsCommand.js +3 -9
- package/dist-es/models/models_0.js +0 -6
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +371 -0
- package/dist-types/KinesisVideoArchivedMediaClient.d.ts +10 -1
- package/dist-types/models/models_0.d.ts +0 -8
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +45 -0
- package/dist-types/ts3.4/KinesisVideoArchivedMediaClient.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +0 -6
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +51 -0
- package/package.json +34 -34
- package/dist-es/protocols/Aws_restJson1.js +0 -451
- package/dist-types/protocols/Aws_restJson1.d.ts +0 -56
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -80
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 KinesisVideoArchivedMediaClient 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 KinesisVideoArchivedMediaClient extends smithyClient.Client {
|
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
112
|
|
|
113
|
-
class KinesisVideoArchivedMediaServiceException extends smithyClient.ServiceException {
|
|
113
|
+
let KinesisVideoArchivedMediaServiceException$1 = class KinesisVideoArchivedMediaServiceException extends smithyClient.ServiceException {
|
|
114
114
|
constructor(options) {
|
|
115
115
|
super(options);
|
|
116
116
|
Object.setPrototypeOf(this, KinesisVideoArchivedMediaServiceException.prototype);
|
|
117
117
|
}
|
|
118
|
-
}
|
|
118
|
+
};
|
|
119
119
|
|
|
120
|
-
class ClientLimitExceededException extends KinesisVideoArchivedMediaServiceException {
|
|
120
|
+
let ClientLimitExceededException$1 = class ClientLimitExceededException extends KinesisVideoArchivedMediaServiceException$1 {
|
|
121
121
|
name = "ClientLimitExceededException";
|
|
122
122
|
$fault = "client";
|
|
123
123
|
Message;
|
|
@@ -130,12 +130,12 @@ class ClientLimitExceededException extends KinesisVideoArchivedMediaServiceExcep
|
|
|
130
130
|
Object.setPrototypeOf(this, ClientLimitExceededException.prototype);
|
|
131
131
|
this.Message = opts.Message;
|
|
132
132
|
}
|
|
133
|
-
}
|
|
133
|
+
};
|
|
134
134
|
const ClipFragmentSelectorType = {
|
|
135
135
|
PRODUCER_TIMESTAMP: "PRODUCER_TIMESTAMP",
|
|
136
136
|
SERVER_TIMESTAMP: "SERVER_TIMESTAMP",
|
|
137
137
|
};
|
|
138
|
-
class InvalidArgumentException extends KinesisVideoArchivedMediaServiceException {
|
|
138
|
+
let InvalidArgumentException$1 = class InvalidArgumentException extends KinesisVideoArchivedMediaServiceException$1 {
|
|
139
139
|
name = "InvalidArgumentException";
|
|
140
140
|
$fault = "client";
|
|
141
141
|
Message;
|
|
@@ -148,8 +148,8 @@ class InvalidArgumentException extends KinesisVideoArchivedMediaServiceException
|
|
|
148
148
|
Object.setPrototypeOf(this, InvalidArgumentException.prototype);
|
|
149
149
|
this.Message = opts.Message;
|
|
150
150
|
}
|
|
151
|
-
}
|
|
152
|
-
class InvalidCodecPrivateDataException extends KinesisVideoArchivedMediaServiceException {
|
|
151
|
+
};
|
|
152
|
+
let InvalidCodecPrivateDataException$1 = class InvalidCodecPrivateDataException extends KinesisVideoArchivedMediaServiceException$1 {
|
|
153
153
|
name = "InvalidCodecPrivateDataException";
|
|
154
154
|
$fault = "client";
|
|
155
155
|
Message;
|
|
@@ -162,8 +162,8 @@ class InvalidCodecPrivateDataException extends KinesisVideoArchivedMediaServiceE
|
|
|
162
162
|
Object.setPrototypeOf(this, InvalidCodecPrivateDataException.prototype);
|
|
163
163
|
this.Message = opts.Message;
|
|
164
164
|
}
|
|
165
|
-
}
|
|
166
|
-
class InvalidMediaFrameException extends KinesisVideoArchivedMediaServiceException {
|
|
165
|
+
};
|
|
166
|
+
let InvalidMediaFrameException$1 = class InvalidMediaFrameException extends KinesisVideoArchivedMediaServiceException$1 {
|
|
167
167
|
name = "InvalidMediaFrameException";
|
|
168
168
|
$fault = "client";
|
|
169
169
|
Message;
|
|
@@ -176,8 +176,8 @@ class InvalidMediaFrameException extends KinesisVideoArchivedMediaServiceExcepti
|
|
|
176
176
|
Object.setPrototypeOf(this, InvalidMediaFrameException.prototype);
|
|
177
177
|
this.Message = opts.Message;
|
|
178
178
|
}
|
|
179
|
-
}
|
|
180
|
-
class MissingCodecPrivateDataException extends KinesisVideoArchivedMediaServiceException {
|
|
179
|
+
};
|
|
180
|
+
let MissingCodecPrivateDataException$1 = class MissingCodecPrivateDataException extends KinesisVideoArchivedMediaServiceException$1 {
|
|
181
181
|
name = "MissingCodecPrivateDataException";
|
|
182
182
|
$fault = "client";
|
|
183
183
|
Message;
|
|
@@ -190,8 +190,8 @@ class MissingCodecPrivateDataException extends KinesisVideoArchivedMediaServiceE
|
|
|
190
190
|
Object.setPrototypeOf(this, MissingCodecPrivateDataException.prototype);
|
|
191
191
|
this.Message = opts.Message;
|
|
192
192
|
}
|
|
193
|
-
}
|
|
194
|
-
class NoDataRetentionException extends KinesisVideoArchivedMediaServiceException {
|
|
193
|
+
};
|
|
194
|
+
let NoDataRetentionException$1 = class NoDataRetentionException extends KinesisVideoArchivedMediaServiceException$1 {
|
|
195
195
|
name = "NoDataRetentionException";
|
|
196
196
|
$fault = "client";
|
|
197
197
|
Message;
|
|
@@ -204,8 +204,8 @@ class NoDataRetentionException extends KinesisVideoArchivedMediaServiceException
|
|
|
204
204
|
Object.setPrototypeOf(this, NoDataRetentionException.prototype);
|
|
205
205
|
this.Message = opts.Message;
|
|
206
206
|
}
|
|
207
|
-
}
|
|
208
|
-
class NotAuthorizedException extends KinesisVideoArchivedMediaServiceException {
|
|
207
|
+
};
|
|
208
|
+
let NotAuthorizedException$1 = class NotAuthorizedException extends KinesisVideoArchivedMediaServiceException$1 {
|
|
209
209
|
name = "NotAuthorizedException";
|
|
210
210
|
$fault = "client";
|
|
211
211
|
Message;
|
|
@@ -218,8 +218,8 @@ class NotAuthorizedException extends KinesisVideoArchivedMediaServiceException {
|
|
|
218
218
|
Object.setPrototypeOf(this, NotAuthorizedException.prototype);
|
|
219
219
|
this.Message = opts.Message;
|
|
220
220
|
}
|
|
221
|
-
}
|
|
222
|
-
class ResourceNotFoundException extends KinesisVideoArchivedMediaServiceException {
|
|
221
|
+
};
|
|
222
|
+
let ResourceNotFoundException$1 = class ResourceNotFoundException extends KinesisVideoArchivedMediaServiceException$1 {
|
|
223
223
|
name = "ResourceNotFoundException";
|
|
224
224
|
$fault = "client";
|
|
225
225
|
Message;
|
|
@@ -232,8 +232,8 @@ class ResourceNotFoundException extends KinesisVideoArchivedMediaServiceExceptio
|
|
|
232
232
|
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
233
233
|
this.Message = opts.Message;
|
|
234
234
|
}
|
|
235
|
-
}
|
|
236
|
-
class UnsupportedStreamMediaTypeException extends KinesisVideoArchivedMediaServiceException {
|
|
235
|
+
};
|
|
236
|
+
let UnsupportedStreamMediaTypeException$1 = class UnsupportedStreamMediaTypeException extends KinesisVideoArchivedMediaServiceException$1 {
|
|
237
237
|
name = "UnsupportedStreamMediaTypeException";
|
|
238
238
|
$fault = "client";
|
|
239
239
|
Message;
|
|
@@ -246,7 +246,7 @@ class UnsupportedStreamMediaTypeException extends KinesisVideoArchivedMediaServi
|
|
|
246
246
|
Object.setPrototypeOf(this, UnsupportedStreamMediaTypeException.prototype);
|
|
247
247
|
this.Message = opts.Message;
|
|
248
248
|
}
|
|
249
|
-
}
|
|
249
|
+
};
|
|
250
250
|
const DASHFragmentSelectorType = {
|
|
251
251
|
PRODUCER_TIMESTAMP: "PRODUCER_TIMESTAMP",
|
|
252
252
|
SERVER_TIMESTAMP: "SERVER_TIMESTAMP",
|
|
@@ -305,473 +305,382 @@ const FragmentSelectorType = {
|
|
|
305
305
|
PRODUCER_TIMESTAMP: "PRODUCER_TIMESTAMP",
|
|
306
306
|
SERVER_TIMESTAMP: "SERVER_TIMESTAMP",
|
|
307
307
|
};
|
|
308
|
-
const GetClipOutputFilterSensitiveLog = (obj) => ({
|
|
309
|
-
...obj,
|
|
310
|
-
});
|
|
311
|
-
const GetMediaForFragmentListOutputFilterSensitiveLog = (obj) => ({
|
|
312
|
-
...obj,
|
|
313
|
-
});
|
|
314
308
|
|
|
315
|
-
const
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
"content-type": "application/json",
|
|
319
|
-
};
|
|
320
|
-
b.bp("/getClip");
|
|
321
|
-
let body;
|
|
322
|
-
body = JSON.stringify(smithyClient.take(input, {
|
|
323
|
-
ClipFragmentSelector: (_) => se_ClipFragmentSelector(_),
|
|
324
|
-
StreamARN: [],
|
|
325
|
-
StreamName: [],
|
|
326
|
-
}));
|
|
327
|
-
b.m("POST").h(headers).b(body);
|
|
328
|
-
return b.build();
|
|
329
|
-
};
|
|
330
|
-
const se_GetDASHStreamingSessionURLCommand = async (input, context) => {
|
|
331
|
-
const b = core.requestBuilder(input, context);
|
|
332
|
-
const headers = {
|
|
333
|
-
"content-type": "application/json",
|
|
334
|
-
};
|
|
335
|
-
b.bp("/getDASHStreamingSessionURL");
|
|
336
|
-
let body;
|
|
337
|
-
body = JSON.stringify(smithyClient.take(input, {
|
|
338
|
-
DASHFragmentSelector: (_) => se_DASHFragmentSelector(_),
|
|
339
|
-
DisplayFragmentNumber: [],
|
|
340
|
-
DisplayFragmentTimestamp: [],
|
|
341
|
-
Expires: [],
|
|
342
|
-
MaxManifestFragmentResults: [],
|
|
343
|
-
PlaybackMode: [],
|
|
344
|
-
StreamARN: [],
|
|
345
|
-
StreamName: [],
|
|
346
|
-
}));
|
|
347
|
-
b.m("POST").h(headers).b(body);
|
|
348
|
-
return b.build();
|
|
349
|
-
};
|
|
350
|
-
const se_GetHLSStreamingSessionURLCommand = async (input, context) => {
|
|
351
|
-
const b = core.requestBuilder(input, context);
|
|
352
|
-
const headers = {
|
|
353
|
-
"content-type": "application/json",
|
|
354
|
-
};
|
|
355
|
-
b.bp("/getHLSStreamingSessionURL");
|
|
356
|
-
let body;
|
|
357
|
-
body = JSON.stringify(smithyClient.take(input, {
|
|
358
|
-
ContainerFormat: [],
|
|
359
|
-
DiscontinuityMode: [],
|
|
360
|
-
DisplayFragmentTimestamp: [],
|
|
361
|
-
Expires: [],
|
|
362
|
-
HLSFragmentSelector: (_) => se_HLSFragmentSelector(_),
|
|
363
|
-
MaxMediaPlaylistFragmentResults: [],
|
|
364
|
-
PlaybackMode: [],
|
|
365
|
-
StreamARN: [],
|
|
366
|
-
StreamName: [],
|
|
367
|
-
}));
|
|
368
|
-
b.m("POST").h(headers).b(body);
|
|
369
|
-
return b.build();
|
|
370
|
-
};
|
|
371
|
-
const se_GetImagesCommand = async (input, context) => {
|
|
372
|
-
const b = core.requestBuilder(input, context);
|
|
373
|
-
const headers = {
|
|
374
|
-
"content-type": "application/json",
|
|
375
|
-
};
|
|
376
|
-
b.bp("/getImages");
|
|
377
|
-
let body;
|
|
378
|
-
body = JSON.stringify(smithyClient.take(input, {
|
|
379
|
-
EndTimestamp: (_) => _.getTime() / 1_000,
|
|
380
|
-
Format: [],
|
|
381
|
-
FormatConfig: (_) => smithyClient._json(_),
|
|
382
|
-
HeightPixels: [],
|
|
383
|
-
ImageSelectorType: [],
|
|
384
|
-
MaxResults: [],
|
|
385
|
-
NextToken: [],
|
|
386
|
-
SamplingInterval: [],
|
|
387
|
-
StartTimestamp: (_) => _.getTime() / 1_000,
|
|
388
|
-
StreamARN: [],
|
|
389
|
-
StreamName: [],
|
|
390
|
-
WidthPixels: [],
|
|
391
|
-
}));
|
|
392
|
-
b.m("POST").h(headers).b(body);
|
|
393
|
-
return b.build();
|
|
394
|
-
};
|
|
395
|
-
const se_GetMediaForFragmentListCommand = async (input, context) => {
|
|
396
|
-
const b = core.requestBuilder(input, context);
|
|
397
|
-
const headers = {
|
|
398
|
-
"content-type": "application/json",
|
|
399
|
-
};
|
|
400
|
-
b.bp("/getMediaForFragmentList");
|
|
401
|
-
let body;
|
|
402
|
-
body = JSON.stringify(smithyClient.take(input, {
|
|
403
|
-
Fragments: (_) => smithyClient._json(_),
|
|
404
|
-
StreamARN: [],
|
|
405
|
-
StreamName: [],
|
|
406
|
-
}));
|
|
407
|
-
b.m("POST").h(headers).b(body);
|
|
408
|
-
return b.build();
|
|
409
|
-
};
|
|
410
|
-
const se_ListFragmentsCommand = async (input, context) => {
|
|
411
|
-
const b = core.requestBuilder(input, context);
|
|
412
|
-
const headers = {
|
|
413
|
-
"content-type": "application/json",
|
|
414
|
-
};
|
|
415
|
-
b.bp("/listFragments");
|
|
416
|
-
let body;
|
|
417
|
-
body = JSON.stringify(smithyClient.take(input, {
|
|
418
|
-
FragmentSelector: (_) => se_FragmentSelector(_),
|
|
419
|
-
MaxResults: [],
|
|
420
|
-
NextToken: [],
|
|
421
|
-
StreamARN: [],
|
|
422
|
-
StreamName: [],
|
|
423
|
-
}));
|
|
424
|
-
b.m("POST").h(headers).b(body);
|
|
425
|
-
return b.build();
|
|
426
|
-
};
|
|
427
|
-
const de_GetClipCommand = async (output, context) => {
|
|
428
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
429
|
-
return de_CommandError(output, context);
|
|
430
|
-
}
|
|
431
|
-
const contents = smithyClient.map({
|
|
432
|
-
$metadata: deserializeMetadata(output),
|
|
433
|
-
[_CT]: [, output.headers[_ct]],
|
|
434
|
-
});
|
|
435
|
-
const data = output.body;
|
|
436
|
-
context.sdkStreamMixin(data);
|
|
437
|
-
contents.Payload = data;
|
|
438
|
-
return contents;
|
|
439
|
-
};
|
|
440
|
-
const de_GetDASHStreamingSessionURLCommand = async (output, context) => {
|
|
441
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
442
|
-
return de_CommandError(output, context);
|
|
443
|
-
}
|
|
444
|
-
const contents = smithyClient.map({
|
|
445
|
-
$metadata: deserializeMetadata(output),
|
|
446
|
-
});
|
|
447
|
-
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
448
|
-
const doc = smithyClient.take(data, {
|
|
449
|
-
DASHStreamingSessionURL: smithyClient.expectString,
|
|
450
|
-
});
|
|
451
|
-
Object.assign(contents, doc);
|
|
452
|
-
return contents;
|
|
453
|
-
};
|
|
454
|
-
const de_GetHLSStreamingSessionURLCommand = async (output, context) => {
|
|
455
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
456
|
-
return de_CommandError(output, context);
|
|
457
|
-
}
|
|
458
|
-
const contents = smithyClient.map({
|
|
459
|
-
$metadata: deserializeMetadata(output),
|
|
460
|
-
});
|
|
461
|
-
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
462
|
-
const doc = smithyClient.take(data, {
|
|
463
|
-
HLSStreamingSessionURL: smithyClient.expectString,
|
|
464
|
-
});
|
|
465
|
-
Object.assign(contents, doc);
|
|
466
|
-
return contents;
|
|
467
|
-
};
|
|
468
|
-
const de_GetImagesCommand = async (output, context) => {
|
|
469
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
470
|
-
return de_CommandError(output, context);
|
|
471
|
-
}
|
|
472
|
-
const contents = smithyClient.map({
|
|
473
|
-
$metadata: deserializeMetadata(output),
|
|
474
|
-
});
|
|
475
|
-
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
476
|
-
const doc = smithyClient.take(data, {
|
|
477
|
-
Images: (_) => de_Images(_),
|
|
478
|
-
NextToken: smithyClient.expectString,
|
|
479
|
-
});
|
|
480
|
-
Object.assign(contents, doc);
|
|
481
|
-
return contents;
|
|
482
|
-
};
|
|
483
|
-
const de_GetMediaForFragmentListCommand = async (output, context) => {
|
|
484
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
485
|
-
return de_CommandError(output, context);
|
|
486
|
-
}
|
|
487
|
-
const contents = smithyClient.map({
|
|
488
|
-
$metadata: deserializeMetadata(output),
|
|
489
|
-
[_CT]: [, output.headers[_ct]],
|
|
490
|
-
});
|
|
491
|
-
const data = output.body;
|
|
492
|
-
context.sdkStreamMixin(data);
|
|
493
|
-
contents.Payload = data;
|
|
494
|
-
return contents;
|
|
495
|
-
};
|
|
496
|
-
const de_ListFragmentsCommand = async (output, context) => {
|
|
497
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
498
|
-
return de_CommandError(output, context);
|
|
499
|
-
}
|
|
500
|
-
const contents = smithyClient.map({
|
|
501
|
-
$metadata: deserializeMetadata(output),
|
|
502
|
-
});
|
|
503
|
-
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
504
|
-
const doc = smithyClient.take(data, {
|
|
505
|
-
Fragments: (_) => de_FragmentList(_),
|
|
506
|
-
NextToken: smithyClient.expectString,
|
|
507
|
-
});
|
|
508
|
-
Object.assign(contents, doc);
|
|
509
|
-
return contents;
|
|
510
|
-
};
|
|
511
|
-
const de_CommandError = async (output, context) => {
|
|
512
|
-
const parsedOutput = {
|
|
513
|
-
...output,
|
|
514
|
-
body: await core$1.parseJsonErrorBody(output.body, context),
|
|
515
|
-
};
|
|
516
|
-
const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
|
|
517
|
-
switch (errorCode) {
|
|
518
|
-
case "ClientLimitExceededException":
|
|
519
|
-
case "com.amazonaws.kinesisvideoarchivedmedia#ClientLimitExceededException":
|
|
520
|
-
throw await de_ClientLimitExceededExceptionRes(parsedOutput);
|
|
521
|
-
case "InvalidArgumentException":
|
|
522
|
-
case "com.amazonaws.kinesisvideoarchivedmedia#InvalidArgumentException":
|
|
523
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput);
|
|
524
|
-
case "InvalidCodecPrivateDataException":
|
|
525
|
-
case "com.amazonaws.kinesisvideoarchivedmedia#InvalidCodecPrivateDataException":
|
|
526
|
-
throw await de_InvalidCodecPrivateDataExceptionRes(parsedOutput);
|
|
527
|
-
case "InvalidMediaFrameException":
|
|
528
|
-
case "com.amazonaws.kinesisvideoarchivedmedia#InvalidMediaFrameException":
|
|
529
|
-
throw await de_InvalidMediaFrameExceptionRes(parsedOutput);
|
|
530
|
-
case "MissingCodecPrivateDataException":
|
|
531
|
-
case "com.amazonaws.kinesisvideoarchivedmedia#MissingCodecPrivateDataException":
|
|
532
|
-
throw await de_MissingCodecPrivateDataExceptionRes(parsedOutput);
|
|
533
|
-
case "NoDataRetentionException":
|
|
534
|
-
case "com.amazonaws.kinesisvideoarchivedmedia#NoDataRetentionException":
|
|
535
|
-
throw await de_NoDataRetentionExceptionRes(parsedOutput);
|
|
536
|
-
case "NotAuthorizedException":
|
|
537
|
-
case "com.amazonaws.kinesisvideoarchivedmedia#NotAuthorizedException":
|
|
538
|
-
throw await de_NotAuthorizedExceptionRes(parsedOutput);
|
|
539
|
-
case "ResourceNotFoundException":
|
|
540
|
-
case "com.amazonaws.kinesisvideoarchivedmedia#ResourceNotFoundException":
|
|
541
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput);
|
|
542
|
-
case "UnsupportedStreamMediaTypeException":
|
|
543
|
-
case "com.amazonaws.kinesisvideoarchivedmedia#UnsupportedStreamMediaTypeException":
|
|
544
|
-
throw await de_UnsupportedStreamMediaTypeExceptionRes(parsedOutput);
|
|
545
|
-
default:
|
|
546
|
-
const parsedBody = parsedOutput.body;
|
|
547
|
-
return throwDefaultError({
|
|
548
|
-
output,
|
|
549
|
-
parsedBody,
|
|
550
|
-
errorCode,
|
|
551
|
-
});
|
|
552
|
-
}
|
|
553
|
-
};
|
|
554
|
-
const throwDefaultError = smithyClient.withBaseException(KinesisVideoArchivedMediaServiceException);
|
|
555
|
-
const de_ClientLimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
556
|
-
const contents = smithyClient.map({});
|
|
557
|
-
const data = parsedOutput.body;
|
|
558
|
-
const doc = smithyClient.take(data, {
|
|
559
|
-
Message: smithyClient.expectString,
|
|
560
|
-
});
|
|
561
|
-
Object.assign(contents, doc);
|
|
562
|
-
const exception = new ClientLimitExceededException({
|
|
563
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
564
|
-
...contents,
|
|
565
|
-
});
|
|
566
|
-
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
567
|
-
};
|
|
568
|
-
const de_InvalidArgumentExceptionRes = async (parsedOutput, context) => {
|
|
569
|
-
const contents = smithyClient.map({});
|
|
570
|
-
const data = parsedOutput.body;
|
|
571
|
-
const doc = smithyClient.take(data, {
|
|
572
|
-
Message: smithyClient.expectString,
|
|
573
|
-
});
|
|
574
|
-
Object.assign(contents, doc);
|
|
575
|
-
const exception = new InvalidArgumentException({
|
|
576
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
577
|
-
...contents,
|
|
578
|
-
});
|
|
579
|
-
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
580
|
-
};
|
|
581
|
-
const de_InvalidCodecPrivateDataExceptionRes = async (parsedOutput, context) => {
|
|
582
|
-
const contents = smithyClient.map({});
|
|
583
|
-
const data = parsedOutput.body;
|
|
584
|
-
const doc = smithyClient.take(data, {
|
|
585
|
-
Message: smithyClient.expectString,
|
|
586
|
-
});
|
|
587
|
-
Object.assign(contents, doc);
|
|
588
|
-
const exception = new InvalidCodecPrivateDataException({
|
|
589
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
590
|
-
...contents,
|
|
591
|
-
});
|
|
592
|
-
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
593
|
-
};
|
|
594
|
-
const de_InvalidMediaFrameExceptionRes = async (parsedOutput, context) => {
|
|
595
|
-
const contents = smithyClient.map({});
|
|
596
|
-
const data = parsedOutput.body;
|
|
597
|
-
const doc = smithyClient.take(data, {
|
|
598
|
-
Message: smithyClient.expectString,
|
|
599
|
-
});
|
|
600
|
-
Object.assign(contents, doc);
|
|
601
|
-
const exception = new InvalidMediaFrameException({
|
|
602
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
603
|
-
...contents,
|
|
604
|
-
});
|
|
605
|
-
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
606
|
-
};
|
|
607
|
-
const de_MissingCodecPrivateDataExceptionRes = async (parsedOutput, context) => {
|
|
608
|
-
const contents = smithyClient.map({});
|
|
609
|
-
const data = parsedOutput.body;
|
|
610
|
-
const doc = smithyClient.take(data, {
|
|
611
|
-
Message: smithyClient.expectString,
|
|
612
|
-
});
|
|
613
|
-
Object.assign(contents, doc);
|
|
614
|
-
const exception = new MissingCodecPrivateDataException({
|
|
615
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
616
|
-
...contents,
|
|
617
|
-
});
|
|
618
|
-
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
619
|
-
};
|
|
620
|
-
const de_NoDataRetentionExceptionRes = async (parsedOutput, context) => {
|
|
621
|
-
const contents = smithyClient.map({});
|
|
622
|
-
const data = parsedOutput.body;
|
|
623
|
-
const doc = smithyClient.take(data, {
|
|
624
|
-
Message: smithyClient.expectString,
|
|
625
|
-
});
|
|
626
|
-
Object.assign(contents, doc);
|
|
627
|
-
const exception = new NoDataRetentionException({
|
|
628
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
629
|
-
...contents,
|
|
630
|
-
});
|
|
631
|
-
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
632
|
-
};
|
|
633
|
-
const de_NotAuthorizedExceptionRes = async (parsedOutput, context) => {
|
|
634
|
-
const contents = smithyClient.map({});
|
|
635
|
-
const data = parsedOutput.body;
|
|
636
|
-
const doc = smithyClient.take(data, {
|
|
637
|
-
Message: smithyClient.expectString,
|
|
638
|
-
});
|
|
639
|
-
Object.assign(contents, doc);
|
|
640
|
-
const exception = new NotAuthorizedException({
|
|
641
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
642
|
-
...contents,
|
|
643
|
-
});
|
|
644
|
-
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
645
|
-
};
|
|
646
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
647
|
-
const contents = smithyClient.map({});
|
|
648
|
-
const data = parsedOutput.body;
|
|
649
|
-
const doc = smithyClient.take(data, {
|
|
650
|
-
Message: smithyClient.expectString,
|
|
651
|
-
});
|
|
652
|
-
Object.assign(contents, doc);
|
|
653
|
-
const exception = new ResourceNotFoundException({
|
|
654
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
655
|
-
...contents,
|
|
656
|
-
});
|
|
657
|
-
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
658
|
-
};
|
|
659
|
-
const de_UnsupportedStreamMediaTypeExceptionRes = async (parsedOutput, context) => {
|
|
660
|
-
const contents = smithyClient.map({});
|
|
661
|
-
const data = parsedOutput.body;
|
|
662
|
-
const doc = smithyClient.take(data, {
|
|
663
|
-
Message: smithyClient.expectString,
|
|
664
|
-
});
|
|
665
|
-
Object.assign(contents, doc);
|
|
666
|
-
const exception = new UnsupportedStreamMediaTypeException({
|
|
667
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
668
|
-
...contents,
|
|
669
|
-
});
|
|
670
|
-
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
671
|
-
};
|
|
672
|
-
const se_ClipFragmentSelector = (input, context) => {
|
|
673
|
-
return smithyClient.take(input, {
|
|
674
|
-
FragmentSelectorType: [],
|
|
675
|
-
TimestampRange: (_) => se_ClipTimestampRange(_),
|
|
676
|
-
});
|
|
677
|
-
};
|
|
678
|
-
const se_ClipTimestampRange = (input, context) => {
|
|
679
|
-
return smithyClient.take(input, {
|
|
680
|
-
EndTimestamp: (_) => _.getTime() / 1_000,
|
|
681
|
-
StartTimestamp: (_) => _.getTime() / 1_000,
|
|
682
|
-
});
|
|
683
|
-
};
|
|
684
|
-
const se_DASHFragmentSelector = (input, context) => {
|
|
685
|
-
return smithyClient.take(input, {
|
|
686
|
-
FragmentSelectorType: [],
|
|
687
|
-
TimestampRange: (_) => se_DASHTimestampRange(_),
|
|
688
|
-
});
|
|
689
|
-
};
|
|
690
|
-
const se_DASHTimestampRange = (input, context) => {
|
|
691
|
-
return smithyClient.take(input, {
|
|
692
|
-
EndTimestamp: (_) => _.getTime() / 1_000,
|
|
693
|
-
StartTimestamp: (_) => _.getTime() / 1_000,
|
|
694
|
-
});
|
|
695
|
-
};
|
|
696
|
-
const se_FragmentSelector = (input, context) => {
|
|
697
|
-
return smithyClient.take(input, {
|
|
698
|
-
FragmentSelectorType: [],
|
|
699
|
-
TimestampRange: (_) => se_TimestampRange(_),
|
|
700
|
-
});
|
|
701
|
-
};
|
|
702
|
-
const se_HLSFragmentSelector = (input, context) => {
|
|
703
|
-
return smithyClient.take(input, {
|
|
704
|
-
FragmentSelectorType: [],
|
|
705
|
-
TimestampRange: (_) => se_HLSTimestampRange(_),
|
|
706
|
-
});
|
|
707
|
-
};
|
|
708
|
-
const se_HLSTimestampRange = (input, context) => {
|
|
709
|
-
return smithyClient.take(input, {
|
|
710
|
-
EndTimestamp: (_) => _.getTime() / 1_000,
|
|
711
|
-
StartTimestamp: (_) => _.getTime() / 1_000,
|
|
712
|
-
});
|
|
713
|
-
};
|
|
714
|
-
const se_TimestampRange = (input, context) => {
|
|
715
|
-
return smithyClient.take(input, {
|
|
716
|
-
EndTimestamp: (_) => _.getTime() / 1_000,
|
|
717
|
-
StartTimestamp: (_) => _.getTime() / 1_000,
|
|
718
|
-
});
|
|
719
|
-
};
|
|
720
|
-
const de_Fragment = (output, context) => {
|
|
721
|
-
return smithyClient.take(output, {
|
|
722
|
-
FragmentLengthInMilliseconds: smithyClient.expectLong,
|
|
723
|
-
FragmentNumber: smithyClient.expectString,
|
|
724
|
-
FragmentSizeInBytes: smithyClient.expectLong,
|
|
725
|
-
ProducerTimestamp: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
726
|
-
ServerTimestamp: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
727
|
-
});
|
|
728
|
-
};
|
|
729
|
-
const de_FragmentList = (output, context) => {
|
|
730
|
-
const retVal = (output || [])
|
|
731
|
-
.filter((e) => e != null)
|
|
732
|
-
.map((entry) => {
|
|
733
|
-
return de_Fragment(entry);
|
|
734
|
-
});
|
|
735
|
-
return retVal;
|
|
736
|
-
};
|
|
737
|
-
const de_Image = (output, context) => {
|
|
738
|
-
return smithyClient.take(output, {
|
|
739
|
-
Error: smithyClient.expectString,
|
|
740
|
-
ImageContent: smithyClient.expectString,
|
|
741
|
-
TimeStamp: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
742
|
-
});
|
|
743
|
-
};
|
|
744
|
-
const de_Images = (output, context) => {
|
|
745
|
-
const retVal = (output || [])
|
|
746
|
-
.filter((e) => e != null)
|
|
747
|
-
.map((entry) => {
|
|
748
|
-
return de_Image(entry);
|
|
749
|
-
});
|
|
750
|
-
return retVal;
|
|
751
|
-
};
|
|
752
|
-
const deserializeMetadata = (output) => ({
|
|
753
|
-
httpStatusCode: output.statusCode,
|
|
754
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
755
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
756
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
757
|
-
});
|
|
309
|
+
const _CF = "ContainerFormat";
|
|
310
|
+
const _CFS = "ClipFragmentSelector";
|
|
311
|
+
const _CLEE = "ClientLimitExceededException";
|
|
758
312
|
const _CT = "ContentType";
|
|
759
|
-
const
|
|
313
|
+
const _CTR = "ClipTimestampRange";
|
|
314
|
+
const _CT_ = "Content-Type";
|
|
315
|
+
const _DASHFS = "DASHFragmentSelector";
|
|
316
|
+
const _DASHSSURL = "DASHStreamingSessionURL";
|
|
317
|
+
const _DASHTR = "DASHTimestampRange";
|
|
318
|
+
const _DFN = "DisplayFragmentNumber";
|
|
319
|
+
const _DFT = "DisplayFragmentTimestamp";
|
|
320
|
+
const _DM = "DiscontinuityMode";
|
|
321
|
+
const _E = "Expires";
|
|
322
|
+
const _ET = "EndTimestamp";
|
|
323
|
+
const _Er = "Error";
|
|
324
|
+
const _F = "Fragment";
|
|
325
|
+
const _FC = "FormatConfig";
|
|
326
|
+
const _FL = "FragmentList";
|
|
327
|
+
const _FLIM = "FragmentLengthInMilliseconds";
|
|
328
|
+
const _FN = "FragmentNumber";
|
|
329
|
+
const _FS = "FragmentSelector";
|
|
330
|
+
const _FSIB = "FragmentSizeInBytes";
|
|
331
|
+
const _FST = "FragmentSelectorType";
|
|
332
|
+
const _Fo = "Format";
|
|
333
|
+
const _Fr = "Fragments";
|
|
334
|
+
const _GC = "GetClip";
|
|
335
|
+
const _GCI = "GetClipInput";
|
|
336
|
+
const _GCO = "GetClipOutput";
|
|
337
|
+
const _GDASHSSURL = "GetDASHStreamingSessionURL";
|
|
338
|
+
const _GDASHSSURLI = "GetDASHStreamingSessionURLInput";
|
|
339
|
+
const _GDASHSSURLO = "GetDASHStreamingSessionURLOutput";
|
|
340
|
+
const _GHLSSSURL = "GetHLSStreamingSessionURL";
|
|
341
|
+
const _GHLSSSURLI = "GetHLSStreamingSessionURLInput";
|
|
342
|
+
const _GHLSSSURLO = "GetHLSStreamingSessionURLOutput";
|
|
343
|
+
const _GI = "GetImages";
|
|
344
|
+
const _GII = "GetImagesInput";
|
|
345
|
+
const _GIO = "GetImagesOutput";
|
|
346
|
+
const _GMFFL = "GetMediaForFragmentList";
|
|
347
|
+
const _GMFFLI = "GetMediaForFragmentListInput";
|
|
348
|
+
const _GMFFLO = "GetMediaForFragmentListOutput";
|
|
349
|
+
const _HLSFS = "HLSFragmentSelector";
|
|
350
|
+
const _HLSSSURL = "HLSStreamingSessionURL";
|
|
351
|
+
const _HLSTR = "HLSTimestampRange";
|
|
352
|
+
const _HP = "HeightPixels";
|
|
353
|
+
const _I = "Images";
|
|
354
|
+
const _IAE = "InvalidArgumentException";
|
|
355
|
+
const _IC = "ImageContent";
|
|
356
|
+
const _ICPDE = "InvalidCodecPrivateDataException";
|
|
357
|
+
const _IMFE = "InvalidMediaFrameException";
|
|
358
|
+
const _IST = "ImageSelectorType";
|
|
359
|
+
const _Im = "Image";
|
|
360
|
+
const _LF = "ListFragments";
|
|
361
|
+
const _LFI = "ListFragmentsInput";
|
|
362
|
+
const _LFO = "ListFragmentsOutput";
|
|
363
|
+
const _M = "Message";
|
|
364
|
+
const _MCPDE = "MissingCodecPrivateDataException";
|
|
365
|
+
const _MMFR = "MaxManifestFragmentResults";
|
|
366
|
+
const _MMPFR = "MaxMediaPlaylistFragmentResults";
|
|
367
|
+
const _MR = "MaxResults";
|
|
368
|
+
const _NAE = "NotAuthorizedException";
|
|
369
|
+
const _NDRE = "NoDataRetentionException";
|
|
370
|
+
const _NT = "NextToken";
|
|
371
|
+
const _P = "Payload";
|
|
372
|
+
const _PM = "PlaybackMode";
|
|
373
|
+
const _PT = "ProducerTimestamp";
|
|
374
|
+
const _RNFE = "ResourceNotFoundException";
|
|
375
|
+
const _SARN = "StreamARN";
|
|
376
|
+
const _SI = "SamplingInterval";
|
|
377
|
+
const _SN = "StreamName";
|
|
378
|
+
const _ST = "StartTimestamp";
|
|
379
|
+
const _STe = "ServerTimestamp";
|
|
380
|
+
const _TR = "TimestampRange";
|
|
381
|
+
const _TS = "TimeStamp";
|
|
382
|
+
const _USMTE = "UnsupportedStreamMediaTypeException";
|
|
383
|
+
const _WP = "WidthPixels";
|
|
384
|
+
const _c = "client";
|
|
385
|
+
const _e = "error";
|
|
386
|
+
const _h = "http";
|
|
387
|
+
const _hE = "httpError";
|
|
388
|
+
const _hH = "httpHeader";
|
|
389
|
+
const _s = "streaming";
|
|
390
|
+
const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.kinesisvideoarchivedmedia";
|
|
391
|
+
const n0 = "com.amazonaws.kinesisvideoarchivedmedia";
|
|
392
|
+
var Payload = [
|
|
393
|
+
0,
|
|
394
|
+
n0,
|
|
395
|
+
_P,
|
|
396
|
+
{
|
|
397
|
+
[_s]: 1,
|
|
398
|
+
},
|
|
399
|
+
42,
|
|
400
|
+
];
|
|
401
|
+
var ClientLimitExceededException = [
|
|
402
|
+
-3,
|
|
403
|
+
n0,
|
|
404
|
+
_CLEE,
|
|
405
|
+
{
|
|
406
|
+
[_e]: _c,
|
|
407
|
+
[_hE]: 400,
|
|
408
|
+
},
|
|
409
|
+
[_M],
|
|
410
|
+
[0],
|
|
411
|
+
];
|
|
412
|
+
schema.TypeRegistry.for(n0).registerError(ClientLimitExceededException, ClientLimitExceededException$1);
|
|
413
|
+
var ClipFragmentSelector = [3, n0, _CFS, 0, [_FST, _TR], [0, () => ClipTimestampRange]];
|
|
414
|
+
var ClipTimestampRange = [3, n0, _CTR, 0, [_ST, _ET], [4, 4]];
|
|
415
|
+
var DASHFragmentSelector = [
|
|
416
|
+
3,
|
|
417
|
+
n0,
|
|
418
|
+
_DASHFS,
|
|
419
|
+
0,
|
|
420
|
+
[_FST, _TR],
|
|
421
|
+
[0, () => DASHTimestampRange],
|
|
422
|
+
];
|
|
423
|
+
var DASHTimestampRange = [3, n0, _DASHTR, 0, [_ST, _ET], [4, 4]];
|
|
424
|
+
var Fragment = [3, n0, _F, 0, [_FN, _FSIB, _PT, _STe, _FLIM], [0, 1, 4, 4, 1]];
|
|
425
|
+
var FragmentSelector = [3, n0, _FS, 0, [_FST, _TR], [0, () => TimestampRange]];
|
|
426
|
+
var GetClipInput = [
|
|
427
|
+
3,
|
|
428
|
+
n0,
|
|
429
|
+
_GCI,
|
|
430
|
+
0,
|
|
431
|
+
[_SN, _SARN, _CFS],
|
|
432
|
+
[0, 0, () => ClipFragmentSelector],
|
|
433
|
+
];
|
|
434
|
+
var GetClipOutput = [
|
|
435
|
+
3,
|
|
436
|
+
n0,
|
|
437
|
+
_GCO,
|
|
438
|
+
0,
|
|
439
|
+
[_CT, _P],
|
|
440
|
+
[
|
|
441
|
+
[
|
|
442
|
+
0,
|
|
443
|
+
{
|
|
444
|
+
[_hH]: _CT_,
|
|
445
|
+
},
|
|
446
|
+
],
|
|
447
|
+
[() => Payload, 16],
|
|
448
|
+
],
|
|
449
|
+
];
|
|
450
|
+
var GetDASHStreamingSessionURLInput = [
|
|
451
|
+
3,
|
|
452
|
+
n0,
|
|
453
|
+
_GDASHSSURLI,
|
|
454
|
+
0,
|
|
455
|
+
[_SN, _SARN, _PM, _DFT, _DFN, _DASHFS, _E, _MMFR],
|
|
456
|
+
[0, 0, 0, 0, 0, () => DASHFragmentSelector, 1, 1],
|
|
457
|
+
];
|
|
458
|
+
var GetDASHStreamingSessionURLOutput = [3, n0, _GDASHSSURLO, 0, [_DASHSSURL], [0]];
|
|
459
|
+
var GetHLSStreamingSessionURLInput = [
|
|
460
|
+
3,
|
|
461
|
+
n0,
|
|
462
|
+
_GHLSSSURLI,
|
|
463
|
+
0,
|
|
464
|
+
[_SN, _SARN, _PM, _HLSFS, _CF, _DM, _DFT, _E, _MMPFR],
|
|
465
|
+
[0, 0, 0, () => HLSFragmentSelector, 0, 0, 0, 1, 1],
|
|
466
|
+
];
|
|
467
|
+
var GetHLSStreamingSessionURLOutput = [3, n0, _GHLSSSURLO, 0, [_HLSSSURL], [0]];
|
|
468
|
+
var GetImagesInput = [
|
|
469
|
+
3,
|
|
470
|
+
n0,
|
|
471
|
+
_GII,
|
|
472
|
+
0,
|
|
473
|
+
[_SN, _SARN, _IST, _ST, _ET, _SI, _Fo, _FC, _WP, _HP, _MR, _NT],
|
|
474
|
+
[0, 0, 0, 4, 4, 1, 0, 128 | 0, 1, 1, 1, 0],
|
|
475
|
+
];
|
|
476
|
+
var GetImagesOutput = [3, n0, _GIO, 0, [_I, _NT], [() => Images, 0]];
|
|
477
|
+
var GetMediaForFragmentListInput = [3, n0, _GMFFLI, 0, [_SN, _SARN, _Fr], [0, 0, 64 | 0]];
|
|
478
|
+
var GetMediaForFragmentListOutput = [
|
|
479
|
+
3,
|
|
480
|
+
n0,
|
|
481
|
+
_GMFFLO,
|
|
482
|
+
0,
|
|
483
|
+
[_CT, _P],
|
|
484
|
+
[
|
|
485
|
+
[
|
|
486
|
+
0,
|
|
487
|
+
{
|
|
488
|
+
[_hH]: _CT_,
|
|
489
|
+
},
|
|
490
|
+
],
|
|
491
|
+
[() => Payload, 16],
|
|
492
|
+
],
|
|
493
|
+
];
|
|
494
|
+
var HLSFragmentSelector = [3, n0, _HLSFS, 0, [_FST, _TR], [0, () => HLSTimestampRange]];
|
|
495
|
+
var HLSTimestampRange = [3, n0, _HLSTR, 0, [_ST, _ET], [4, 4]];
|
|
496
|
+
var Image = [3, n0, _Im, 0, [_TS, _Er, _IC], [4, 0, 0]];
|
|
497
|
+
var InvalidArgumentException = [
|
|
498
|
+
-3,
|
|
499
|
+
n0,
|
|
500
|
+
_IAE,
|
|
501
|
+
{
|
|
502
|
+
[_e]: _c,
|
|
503
|
+
[_hE]: 400,
|
|
504
|
+
},
|
|
505
|
+
[_M],
|
|
506
|
+
[0],
|
|
507
|
+
];
|
|
508
|
+
schema.TypeRegistry.for(n0).registerError(InvalidArgumentException, InvalidArgumentException$1);
|
|
509
|
+
var InvalidCodecPrivateDataException = [
|
|
510
|
+
-3,
|
|
511
|
+
n0,
|
|
512
|
+
_ICPDE,
|
|
513
|
+
{
|
|
514
|
+
[_e]: _c,
|
|
515
|
+
[_hE]: 400,
|
|
516
|
+
},
|
|
517
|
+
[_M],
|
|
518
|
+
[0],
|
|
519
|
+
];
|
|
520
|
+
schema.TypeRegistry.for(n0).registerError(InvalidCodecPrivateDataException, InvalidCodecPrivateDataException$1);
|
|
521
|
+
var InvalidMediaFrameException = [
|
|
522
|
+
-3,
|
|
523
|
+
n0,
|
|
524
|
+
_IMFE,
|
|
525
|
+
{
|
|
526
|
+
[_e]: _c,
|
|
527
|
+
[_hE]: 400,
|
|
528
|
+
},
|
|
529
|
+
[_M],
|
|
530
|
+
[0],
|
|
531
|
+
];
|
|
532
|
+
schema.TypeRegistry.for(n0).registerError(InvalidMediaFrameException, InvalidMediaFrameException$1);
|
|
533
|
+
var ListFragmentsInput = [
|
|
534
|
+
3,
|
|
535
|
+
n0,
|
|
536
|
+
_LFI,
|
|
537
|
+
0,
|
|
538
|
+
[_SN, _SARN, _MR, _NT, _FS],
|
|
539
|
+
[0, 0, 1, 0, () => FragmentSelector],
|
|
540
|
+
];
|
|
541
|
+
var ListFragmentsOutput = [3, n0, _LFO, 0, [_Fr, _NT], [() => FragmentList, 0]];
|
|
542
|
+
var MissingCodecPrivateDataException = [
|
|
543
|
+
-3,
|
|
544
|
+
n0,
|
|
545
|
+
_MCPDE,
|
|
546
|
+
{
|
|
547
|
+
[_e]: _c,
|
|
548
|
+
[_hE]: 400,
|
|
549
|
+
},
|
|
550
|
+
[_M],
|
|
551
|
+
[0],
|
|
552
|
+
];
|
|
553
|
+
schema.TypeRegistry.for(n0).registerError(MissingCodecPrivateDataException, MissingCodecPrivateDataException$1);
|
|
554
|
+
var NoDataRetentionException = [
|
|
555
|
+
-3,
|
|
556
|
+
n0,
|
|
557
|
+
_NDRE,
|
|
558
|
+
{
|
|
559
|
+
[_e]: _c,
|
|
560
|
+
[_hE]: 400,
|
|
561
|
+
},
|
|
562
|
+
[_M],
|
|
563
|
+
[0],
|
|
564
|
+
];
|
|
565
|
+
schema.TypeRegistry.for(n0).registerError(NoDataRetentionException, NoDataRetentionException$1);
|
|
566
|
+
var NotAuthorizedException = [
|
|
567
|
+
-3,
|
|
568
|
+
n0,
|
|
569
|
+
_NAE,
|
|
570
|
+
{
|
|
571
|
+
[_e]: _c,
|
|
572
|
+
[_hE]: 401,
|
|
573
|
+
},
|
|
574
|
+
[_M],
|
|
575
|
+
[0],
|
|
576
|
+
];
|
|
577
|
+
schema.TypeRegistry.for(n0).registerError(NotAuthorizedException, NotAuthorizedException$1);
|
|
578
|
+
var ResourceNotFoundException = [
|
|
579
|
+
-3,
|
|
580
|
+
n0,
|
|
581
|
+
_RNFE,
|
|
582
|
+
{
|
|
583
|
+
[_e]: _c,
|
|
584
|
+
[_hE]: 404,
|
|
585
|
+
},
|
|
586
|
+
[_M],
|
|
587
|
+
[0],
|
|
588
|
+
];
|
|
589
|
+
schema.TypeRegistry.for(n0).registerError(ResourceNotFoundException, ResourceNotFoundException$1);
|
|
590
|
+
var TimestampRange = [3, n0, _TR, 0, [_ST, _ET], [4, 4]];
|
|
591
|
+
var UnsupportedStreamMediaTypeException = [
|
|
592
|
+
-3,
|
|
593
|
+
n0,
|
|
594
|
+
_USMTE,
|
|
595
|
+
{
|
|
596
|
+
[_e]: _c,
|
|
597
|
+
[_hE]: 400,
|
|
598
|
+
},
|
|
599
|
+
[_M],
|
|
600
|
+
[0],
|
|
601
|
+
];
|
|
602
|
+
schema.TypeRegistry.for(n0).registerError(UnsupportedStreamMediaTypeException, UnsupportedStreamMediaTypeException$1);
|
|
603
|
+
var KinesisVideoArchivedMediaServiceException = [
|
|
604
|
+
-3,
|
|
605
|
+
_sm,
|
|
606
|
+
"KinesisVideoArchivedMediaServiceException",
|
|
607
|
+
0,
|
|
608
|
+
[],
|
|
609
|
+
[],
|
|
610
|
+
];
|
|
611
|
+
schema.TypeRegistry.for(_sm).registerError(KinesisVideoArchivedMediaServiceException, KinesisVideoArchivedMediaServiceException$1);
|
|
612
|
+
var FragmentList = [1, n0, _FL, 0, () => Fragment];
|
|
613
|
+
var Images = [1, n0, _I, 0, () => Image];
|
|
614
|
+
var GetClip = [
|
|
615
|
+
9,
|
|
616
|
+
n0,
|
|
617
|
+
_GC,
|
|
618
|
+
{
|
|
619
|
+
[_h]: ["POST", "/getClip", 200],
|
|
620
|
+
},
|
|
621
|
+
() => GetClipInput,
|
|
622
|
+
() => GetClipOutput,
|
|
623
|
+
];
|
|
624
|
+
var GetDASHStreamingSessionURL = [
|
|
625
|
+
9,
|
|
626
|
+
n0,
|
|
627
|
+
_GDASHSSURL,
|
|
628
|
+
{
|
|
629
|
+
[_h]: ["POST", "/getDASHStreamingSessionURL", 200],
|
|
630
|
+
},
|
|
631
|
+
() => GetDASHStreamingSessionURLInput,
|
|
632
|
+
() => GetDASHStreamingSessionURLOutput,
|
|
633
|
+
];
|
|
634
|
+
var GetHLSStreamingSessionURL = [
|
|
635
|
+
9,
|
|
636
|
+
n0,
|
|
637
|
+
_GHLSSSURL,
|
|
638
|
+
{
|
|
639
|
+
[_h]: ["POST", "/getHLSStreamingSessionURL", 200],
|
|
640
|
+
},
|
|
641
|
+
() => GetHLSStreamingSessionURLInput,
|
|
642
|
+
() => GetHLSStreamingSessionURLOutput,
|
|
643
|
+
];
|
|
644
|
+
var GetImages = [
|
|
645
|
+
9,
|
|
646
|
+
n0,
|
|
647
|
+
_GI,
|
|
648
|
+
{
|
|
649
|
+
[_h]: ["POST", "/getImages", 200],
|
|
650
|
+
},
|
|
651
|
+
() => GetImagesInput,
|
|
652
|
+
() => GetImagesOutput,
|
|
653
|
+
];
|
|
654
|
+
var GetMediaForFragmentList = [
|
|
655
|
+
9,
|
|
656
|
+
n0,
|
|
657
|
+
_GMFFL,
|
|
658
|
+
{
|
|
659
|
+
[_h]: ["POST", "/getMediaForFragmentList", 200],
|
|
660
|
+
},
|
|
661
|
+
() => GetMediaForFragmentListInput,
|
|
662
|
+
() => GetMediaForFragmentListOutput,
|
|
663
|
+
];
|
|
664
|
+
var ListFragments = [
|
|
665
|
+
9,
|
|
666
|
+
n0,
|
|
667
|
+
_LF,
|
|
668
|
+
{
|
|
669
|
+
[_h]: ["POST", "/listFragments", 200],
|
|
670
|
+
},
|
|
671
|
+
() => ListFragmentsInput,
|
|
672
|
+
() => ListFragmentsOutput,
|
|
673
|
+
];
|
|
760
674
|
|
|
761
675
|
class GetClipCommand extends smithyClient.Command
|
|
762
676
|
.classBuilder()
|
|
763
677
|
.ep(commonParams)
|
|
764
678
|
.m(function (Command, cs, config, o) {
|
|
765
|
-
return [
|
|
766
|
-
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
767
|
-
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
768
|
-
];
|
|
679
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
769
680
|
})
|
|
770
681
|
.s("AWSAcuityReader", "GetClip", {})
|
|
771
682
|
.n("KinesisVideoArchivedMediaClient", "GetClipCommand")
|
|
772
|
-
.
|
|
773
|
-
.ser(se_GetClipCommand)
|
|
774
|
-
.de(de_GetClipCommand)
|
|
683
|
+
.sc(GetClip)
|
|
775
684
|
.build() {
|
|
776
685
|
}
|
|
777
686
|
|
|
@@ -779,16 +688,11 @@ class GetDASHStreamingSessionURLCommand extends smithyClient.Command
|
|
|
779
688
|
.classBuilder()
|
|
780
689
|
.ep(commonParams)
|
|
781
690
|
.m(function (Command, cs, config, o) {
|
|
782
|
-
return [
|
|
783
|
-
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
784
|
-
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
785
|
-
];
|
|
691
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
786
692
|
})
|
|
787
693
|
.s("AWSAcuityReader", "GetDASHStreamingSessionURL", {})
|
|
788
694
|
.n("KinesisVideoArchivedMediaClient", "GetDASHStreamingSessionURLCommand")
|
|
789
|
-
.
|
|
790
|
-
.ser(se_GetDASHStreamingSessionURLCommand)
|
|
791
|
-
.de(de_GetDASHStreamingSessionURLCommand)
|
|
695
|
+
.sc(GetDASHStreamingSessionURL)
|
|
792
696
|
.build() {
|
|
793
697
|
}
|
|
794
698
|
|
|
@@ -796,16 +700,11 @@ class GetHLSStreamingSessionURLCommand extends smithyClient.Command
|
|
|
796
700
|
.classBuilder()
|
|
797
701
|
.ep(commonParams)
|
|
798
702
|
.m(function (Command, cs, config, o) {
|
|
799
|
-
return [
|
|
800
|
-
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
801
|
-
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
802
|
-
];
|
|
703
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
803
704
|
})
|
|
804
705
|
.s("AWSAcuityReader", "GetHLSStreamingSessionURL", {})
|
|
805
706
|
.n("KinesisVideoArchivedMediaClient", "GetHLSStreamingSessionURLCommand")
|
|
806
|
-
.
|
|
807
|
-
.ser(se_GetHLSStreamingSessionURLCommand)
|
|
808
|
-
.de(de_GetHLSStreamingSessionURLCommand)
|
|
707
|
+
.sc(GetHLSStreamingSessionURL)
|
|
809
708
|
.build() {
|
|
810
709
|
}
|
|
811
710
|
|
|
@@ -813,16 +712,11 @@ class GetImagesCommand extends smithyClient.Command
|
|
|
813
712
|
.classBuilder()
|
|
814
713
|
.ep(commonParams)
|
|
815
714
|
.m(function (Command, cs, config, o) {
|
|
816
|
-
return [
|
|
817
|
-
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
818
|
-
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
819
|
-
];
|
|
715
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
820
716
|
})
|
|
821
717
|
.s("AWSAcuityReader", "GetImages", {})
|
|
822
718
|
.n("KinesisVideoArchivedMediaClient", "GetImagesCommand")
|
|
823
|
-
.
|
|
824
|
-
.ser(se_GetImagesCommand)
|
|
825
|
-
.de(de_GetImagesCommand)
|
|
719
|
+
.sc(GetImages)
|
|
826
720
|
.build() {
|
|
827
721
|
}
|
|
828
722
|
|
|
@@ -830,16 +724,11 @@ class GetMediaForFragmentListCommand extends smithyClient.Command
|
|
|
830
724
|
.classBuilder()
|
|
831
725
|
.ep(commonParams)
|
|
832
726
|
.m(function (Command, cs, config, o) {
|
|
833
|
-
return [
|
|
834
|
-
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
835
|
-
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
836
|
-
];
|
|
727
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
837
728
|
})
|
|
838
729
|
.s("AWSAcuityReader", "GetMediaForFragmentList", {})
|
|
839
730
|
.n("KinesisVideoArchivedMediaClient", "GetMediaForFragmentListCommand")
|
|
840
|
-
.
|
|
841
|
-
.ser(se_GetMediaForFragmentListCommand)
|
|
842
|
-
.de(de_GetMediaForFragmentListCommand)
|
|
731
|
+
.sc(GetMediaForFragmentList)
|
|
843
732
|
.build() {
|
|
844
733
|
}
|
|
845
734
|
|
|
@@ -847,16 +736,11 @@ class ListFragmentsCommand extends smithyClient.Command
|
|
|
847
736
|
.classBuilder()
|
|
848
737
|
.ep(commonParams)
|
|
849
738
|
.m(function (Command, cs, config, o) {
|
|
850
|
-
return [
|
|
851
|
-
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
852
|
-
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
853
|
-
];
|
|
739
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
854
740
|
})
|
|
855
741
|
.s("AWSAcuityReader", "ListFragments", {})
|
|
856
742
|
.n("KinesisVideoArchivedMediaClient", "ListFragmentsCommand")
|
|
857
|
-
.
|
|
858
|
-
.ser(se_ListFragmentsCommand)
|
|
859
|
-
.de(de_ListFragmentsCommand)
|
|
743
|
+
.sc(ListFragments)
|
|
860
744
|
.build() {
|
|
861
745
|
}
|
|
862
746
|
|
|
@@ -884,7 +768,7 @@ Object.defineProperty(exports, "__Client", {
|
|
|
884
768
|
enumerable: true,
|
|
885
769
|
get: function () { return smithyClient.Client; }
|
|
886
770
|
});
|
|
887
|
-
exports.ClientLimitExceededException = ClientLimitExceededException;
|
|
771
|
+
exports.ClientLimitExceededException = ClientLimitExceededException$1;
|
|
888
772
|
exports.ClipFragmentSelectorType = ClipFragmentSelectorType;
|
|
889
773
|
exports.ContainerFormat = ContainerFormat;
|
|
890
774
|
exports.DASHDisplayFragmentNumber = DASHDisplayFragmentNumber;
|
|
@@ -895,29 +779,27 @@ exports.Format = Format;
|
|
|
895
779
|
exports.FormatConfigKey = FormatConfigKey;
|
|
896
780
|
exports.FragmentSelectorType = FragmentSelectorType;
|
|
897
781
|
exports.GetClipCommand = GetClipCommand;
|
|
898
|
-
exports.GetClipOutputFilterSensitiveLog = GetClipOutputFilterSensitiveLog;
|
|
899
782
|
exports.GetDASHStreamingSessionURLCommand = GetDASHStreamingSessionURLCommand;
|
|
900
783
|
exports.GetHLSStreamingSessionURLCommand = GetHLSStreamingSessionURLCommand;
|
|
901
784
|
exports.GetImagesCommand = GetImagesCommand;
|
|
902
785
|
exports.GetMediaForFragmentListCommand = GetMediaForFragmentListCommand;
|
|
903
|
-
exports.GetMediaForFragmentListOutputFilterSensitiveLog = GetMediaForFragmentListOutputFilterSensitiveLog;
|
|
904
786
|
exports.HLSDiscontinuityMode = HLSDiscontinuityMode;
|
|
905
787
|
exports.HLSDisplayFragmentTimestamp = HLSDisplayFragmentTimestamp;
|
|
906
788
|
exports.HLSFragmentSelectorType = HLSFragmentSelectorType;
|
|
907
789
|
exports.HLSPlaybackMode = HLSPlaybackMode;
|
|
908
790
|
exports.ImageError = ImageError;
|
|
909
791
|
exports.ImageSelectorType = ImageSelectorType;
|
|
910
|
-
exports.InvalidArgumentException = InvalidArgumentException;
|
|
911
|
-
exports.InvalidCodecPrivateDataException = InvalidCodecPrivateDataException;
|
|
912
|
-
exports.InvalidMediaFrameException = InvalidMediaFrameException;
|
|
792
|
+
exports.InvalidArgumentException = InvalidArgumentException$1;
|
|
793
|
+
exports.InvalidCodecPrivateDataException = InvalidCodecPrivateDataException$1;
|
|
794
|
+
exports.InvalidMediaFrameException = InvalidMediaFrameException$1;
|
|
913
795
|
exports.KinesisVideoArchivedMedia = KinesisVideoArchivedMedia;
|
|
914
796
|
exports.KinesisVideoArchivedMediaClient = KinesisVideoArchivedMediaClient;
|
|
915
|
-
exports.KinesisVideoArchivedMediaServiceException = KinesisVideoArchivedMediaServiceException;
|
|
797
|
+
exports.KinesisVideoArchivedMediaServiceException = KinesisVideoArchivedMediaServiceException$1;
|
|
916
798
|
exports.ListFragmentsCommand = ListFragmentsCommand;
|
|
917
|
-
exports.MissingCodecPrivateDataException = MissingCodecPrivateDataException;
|
|
918
|
-
exports.NoDataRetentionException = NoDataRetentionException;
|
|
919
|
-
exports.NotAuthorizedException = NotAuthorizedException;
|
|
920
|
-
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
921
|
-
exports.UnsupportedStreamMediaTypeException = UnsupportedStreamMediaTypeException;
|
|
799
|
+
exports.MissingCodecPrivateDataException = MissingCodecPrivateDataException$1;
|
|
800
|
+
exports.NoDataRetentionException = NoDataRetentionException$1;
|
|
801
|
+
exports.NotAuthorizedException = NotAuthorizedException$1;
|
|
802
|
+
exports.ResourceNotFoundException = ResourceNotFoundException$1;
|
|
803
|
+
exports.UnsupportedStreamMediaTypeException = UnsupportedStreamMediaTypeException$1;
|
|
922
804
|
exports.paginateGetImages = paginateGetImages;
|
|
923
805
|
exports.paginateListFragments = paginateListFragments;
|