@aws-sdk/client-kinesis-video-archived-media 3.986.0 → 3.988.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
@@ -15,6 +15,9 @@ var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
15
15
  var runtimeConfig = require('./runtimeConfig');
16
16
  var regionConfigResolver = require('@aws-sdk/region-config-resolver');
17
17
  var protocolHttp = require('@smithy/protocol-http');
18
+ var schemas_0 = require('./schemas/schemas_0');
19
+ var errors = require('./models/errors');
20
+ var KinesisVideoArchivedMediaServiceException = require('./models/KinesisVideoArchivedMediaServiceException');
18
21
 
19
22
  const resolveClientEndpointParameters = (options) => {
20
23
  return Object.assign(options, {
@@ -110,415 +113,6 @@ class KinesisVideoArchivedMediaClient extends smithyClient.Client {
110
113
  }
111
114
  }
112
115
 
113
- class KinesisVideoArchivedMediaServiceException extends smithyClient.ServiceException {
114
- constructor(options) {
115
- super(options);
116
- Object.setPrototypeOf(this, KinesisVideoArchivedMediaServiceException.prototype);
117
- }
118
- }
119
-
120
- class ClientLimitExceededException extends KinesisVideoArchivedMediaServiceException {
121
- name = "ClientLimitExceededException";
122
- $fault = "client";
123
- Message;
124
- constructor(opts) {
125
- super({
126
- name: "ClientLimitExceededException",
127
- $fault: "client",
128
- ...opts,
129
- });
130
- Object.setPrototypeOf(this, ClientLimitExceededException.prototype);
131
- this.Message = opts.Message;
132
- }
133
- }
134
- class InvalidArgumentException extends KinesisVideoArchivedMediaServiceException {
135
- name = "InvalidArgumentException";
136
- $fault = "client";
137
- Message;
138
- constructor(opts) {
139
- super({
140
- name: "InvalidArgumentException",
141
- $fault: "client",
142
- ...opts,
143
- });
144
- Object.setPrototypeOf(this, InvalidArgumentException.prototype);
145
- this.Message = opts.Message;
146
- }
147
- }
148
- class InvalidCodecPrivateDataException extends KinesisVideoArchivedMediaServiceException {
149
- name = "InvalidCodecPrivateDataException";
150
- $fault = "client";
151
- Message;
152
- constructor(opts) {
153
- super({
154
- name: "InvalidCodecPrivateDataException",
155
- $fault: "client",
156
- ...opts,
157
- });
158
- Object.setPrototypeOf(this, InvalidCodecPrivateDataException.prototype);
159
- this.Message = opts.Message;
160
- }
161
- }
162
- class InvalidMediaFrameException extends KinesisVideoArchivedMediaServiceException {
163
- name = "InvalidMediaFrameException";
164
- $fault = "client";
165
- Message;
166
- constructor(opts) {
167
- super({
168
- name: "InvalidMediaFrameException",
169
- $fault: "client",
170
- ...opts,
171
- });
172
- Object.setPrototypeOf(this, InvalidMediaFrameException.prototype);
173
- this.Message = opts.Message;
174
- }
175
- }
176
- class MissingCodecPrivateDataException extends KinesisVideoArchivedMediaServiceException {
177
- name = "MissingCodecPrivateDataException";
178
- $fault = "client";
179
- Message;
180
- constructor(opts) {
181
- super({
182
- name: "MissingCodecPrivateDataException",
183
- $fault: "client",
184
- ...opts,
185
- });
186
- Object.setPrototypeOf(this, MissingCodecPrivateDataException.prototype);
187
- this.Message = opts.Message;
188
- }
189
- }
190
- class NoDataRetentionException extends KinesisVideoArchivedMediaServiceException {
191
- name = "NoDataRetentionException";
192
- $fault = "client";
193
- Message;
194
- constructor(opts) {
195
- super({
196
- name: "NoDataRetentionException",
197
- $fault: "client",
198
- ...opts,
199
- });
200
- Object.setPrototypeOf(this, NoDataRetentionException.prototype);
201
- this.Message = opts.Message;
202
- }
203
- }
204
- class NotAuthorizedException extends KinesisVideoArchivedMediaServiceException {
205
- name = "NotAuthorizedException";
206
- $fault = "client";
207
- Message;
208
- constructor(opts) {
209
- super({
210
- name: "NotAuthorizedException",
211
- $fault: "client",
212
- ...opts,
213
- });
214
- Object.setPrototypeOf(this, NotAuthorizedException.prototype);
215
- this.Message = opts.Message;
216
- }
217
- }
218
- class ResourceNotFoundException extends KinesisVideoArchivedMediaServiceException {
219
- name = "ResourceNotFoundException";
220
- $fault = "client";
221
- Message;
222
- constructor(opts) {
223
- super({
224
- name: "ResourceNotFoundException",
225
- $fault: "client",
226
- ...opts,
227
- });
228
- Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
229
- this.Message = opts.Message;
230
- }
231
- }
232
- class UnsupportedStreamMediaTypeException extends KinesisVideoArchivedMediaServiceException {
233
- name = "UnsupportedStreamMediaTypeException";
234
- $fault = "client";
235
- Message;
236
- constructor(opts) {
237
- super({
238
- name: "UnsupportedStreamMediaTypeException",
239
- $fault: "client",
240
- ...opts,
241
- });
242
- Object.setPrototypeOf(this, UnsupportedStreamMediaTypeException.prototype);
243
- this.Message = opts.Message;
244
- }
245
- }
246
-
247
- const _CF = "ContainerFormat";
248
- const _CFS = "ClipFragmentSelector";
249
- const _CLEE = "ClientLimitExceededException";
250
- const _CT = "ContentType";
251
- const _CTR = "ClipTimestampRange";
252
- const _CT_ = "Content-Type";
253
- const _DASHFS = "DASHFragmentSelector";
254
- const _DASHSSURL = "DASHStreamingSessionURL";
255
- const _DASHTR = "DASHTimestampRange";
256
- const _DFN = "DisplayFragmentNumber";
257
- const _DFT = "DisplayFragmentTimestamp";
258
- const _DM = "DiscontinuityMode";
259
- const _E = "Expires";
260
- const _ET = "EndTimestamp";
261
- const _Er = "Error";
262
- const _F = "Fragment";
263
- const _FC = "FormatConfig";
264
- const _FL = "FragmentList";
265
- const _FLIM = "FragmentLengthInMilliseconds";
266
- const _FN = "FragmentNumber";
267
- const _FS = "FragmentSelector";
268
- const _FSIB = "FragmentSizeInBytes";
269
- const _FST = "FragmentSelectorType";
270
- const _Fo = "Format";
271
- const _Fr = "Fragments";
272
- const _GC = "GetClip";
273
- const _GCI = "GetClipInput";
274
- const _GCO = "GetClipOutput";
275
- const _GDASHSSURL = "GetDASHStreamingSessionURL";
276
- const _GDASHSSURLI = "GetDASHStreamingSessionURLInput";
277
- const _GDASHSSURLO = "GetDASHStreamingSessionURLOutput";
278
- const _GHLSSSURL = "GetHLSStreamingSessionURL";
279
- const _GHLSSSURLI = "GetHLSStreamingSessionURLInput";
280
- const _GHLSSSURLO = "GetHLSStreamingSessionURLOutput";
281
- const _GI = "GetImages";
282
- const _GII = "GetImagesInput";
283
- const _GIO = "GetImagesOutput";
284
- const _GMFFL = "GetMediaForFragmentList";
285
- const _GMFFLI = "GetMediaForFragmentListInput";
286
- const _GMFFLO = "GetMediaForFragmentListOutput";
287
- const _HLSFS = "HLSFragmentSelector";
288
- const _HLSSSURL = "HLSStreamingSessionURL";
289
- const _HLSTR = "HLSTimestampRange";
290
- const _HP = "HeightPixels";
291
- const _I = "Images";
292
- const _IAE = "InvalidArgumentException";
293
- const _IC = "ImageContent";
294
- const _ICPDE = "InvalidCodecPrivateDataException";
295
- const _IMFE = "InvalidMediaFrameException";
296
- const _IST = "ImageSelectorType";
297
- const _Im = "Image";
298
- const _LF = "ListFragments";
299
- const _LFI = "ListFragmentsInput";
300
- const _LFO = "ListFragmentsOutput";
301
- const _M = "Message";
302
- const _MCPDE = "MissingCodecPrivateDataException";
303
- const _MMFR = "MaxManifestFragmentResults";
304
- const _MMPFR = "MaxMediaPlaylistFragmentResults";
305
- const _MR = "MaxResults";
306
- const _NAE = "NotAuthorizedException";
307
- const _NDRE = "NoDataRetentionException";
308
- const _NT = "NextToken";
309
- const _P = "Payload";
310
- const _PM = "PlaybackMode";
311
- const _PT = "ProducerTimestamp";
312
- const _RNFE = "ResourceNotFoundException";
313
- const _SARN = "StreamARN";
314
- const _SI = "SamplingInterval";
315
- const _SN = "StreamName";
316
- const _ST = "StartTimestamp";
317
- const _STe = "ServerTimestamp";
318
- const _TR = "TimestampRange";
319
- const _TS = "TimeStamp";
320
- const _USMTE = "UnsupportedStreamMediaTypeException";
321
- const _WP = "WidthPixels";
322
- const _c = "client";
323
- const _e = "error";
324
- const _h = "http";
325
- const _hE = "httpError";
326
- const _hH = "httpHeader";
327
- const _s = "streaming";
328
- const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.kinesisvideoarchivedmedia";
329
- const n0 = "com.amazonaws.kinesisvideoarchivedmedia";
330
- var Payload = [0, n0, _P, { [_s]: 1 }, 42];
331
- var ClientLimitExceededException$ = [-3, n0, _CLEE,
332
- { [_e]: _c, [_hE]: 400 },
333
- [_M],
334
- [0]
335
- ];
336
- schema.TypeRegistry.for(n0).registerError(ClientLimitExceededException$, ClientLimitExceededException);
337
- var ClipFragmentSelector$ = [3, n0, _CFS,
338
- 0,
339
- [_FST, _TR],
340
- [0, () => ClipTimestampRange$], 2
341
- ];
342
- var ClipTimestampRange$ = [3, n0, _CTR,
343
- 0,
344
- [_ST, _ET],
345
- [4, 4], 2
346
- ];
347
- var DASHFragmentSelector$ = [3, n0, _DASHFS,
348
- 0,
349
- [_FST, _TR],
350
- [0, () => DASHTimestampRange$]
351
- ];
352
- var DASHTimestampRange$ = [3, n0, _DASHTR,
353
- 0,
354
- [_ST, _ET],
355
- [4, 4]
356
- ];
357
- var Fragment$ = [3, n0, _F,
358
- 0,
359
- [_FN, _FSIB, _PT, _STe, _FLIM],
360
- [0, 1, 4, 4, 1]
361
- ];
362
- var FragmentSelector$ = [3, n0, _FS,
363
- 0,
364
- [_FST, _TR],
365
- [0, () => TimestampRange$], 2
366
- ];
367
- var GetClipInput$ = [3, n0, _GCI,
368
- 0,
369
- [_CFS, _SN, _SARN],
370
- [() => ClipFragmentSelector$, 0, 0], 1
371
- ];
372
- var GetClipOutput$ = [3, n0, _GCO,
373
- 0,
374
- [_CT, _P],
375
- [[0, { [_hH]: _CT_ }], [() => Payload, 16]]
376
- ];
377
- var GetDASHStreamingSessionURLInput$ = [3, n0, _GDASHSSURLI,
378
- 0,
379
- [_SN, _SARN, _PM, _DFT, _DFN, _DASHFS, _E, _MMFR],
380
- [0, 0, 0, 0, 0, () => DASHFragmentSelector$, 1, 1]
381
- ];
382
- var GetDASHStreamingSessionURLOutput$ = [3, n0, _GDASHSSURLO,
383
- 0,
384
- [_DASHSSURL],
385
- [0]
386
- ];
387
- var GetHLSStreamingSessionURLInput$ = [3, n0, _GHLSSSURLI,
388
- 0,
389
- [_SN, _SARN, _PM, _HLSFS, _CF, _DM, _DFT, _E, _MMPFR],
390
- [0, 0, 0, () => HLSFragmentSelector$, 0, 0, 0, 1, 1]
391
- ];
392
- var GetHLSStreamingSessionURLOutput$ = [3, n0, _GHLSSSURLO,
393
- 0,
394
- [_HLSSSURL],
395
- [0]
396
- ];
397
- var GetImagesInput$ = [3, n0, _GII,
398
- 0,
399
- [_IST, _ST, _ET, _Fo, _SN, _SARN, _SI, _FC, _WP, _HP, _MR, _NT],
400
- [0, 4, 4, 0, 0, 0, 1, 128 | 0, 1, 1, 1, 0], 4
401
- ];
402
- var GetImagesOutput$ = [3, n0, _GIO,
403
- 0,
404
- [_I, _NT],
405
- [() => Images, 0]
406
- ];
407
- var GetMediaForFragmentListInput$ = [3, n0, _GMFFLI,
408
- 0,
409
- [_Fr, _SN, _SARN],
410
- [64 | 0, 0, 0], 1
411
- ];
412
- var GetMediaForFragmentListOutput$ = [3, n0, _GMFFLO,
413
- 0,
414
- [_CT, _P],
415
- [[0, { [_hH]: _CT_ }], [() => Payload, 16]]
416
- ];
417
- var HLSFragmentSelector$ = [3, n0, _HLSFS,
418
- 0,
419
- [_FST, _TR],
420
- [0, () => HLSTimestampRange$]
421
- ];
422
- var HLSTimestampRange$ = [3, n0, _HLSTR,
423
- 0,
424
- [_ST, _ET],
425
- [4, 4]
426
- ];
427
- var Image$ = [3, n0, _Im,
428
- 0,
429
- [_TS, _Er, _IC],
430
- [4, 0, 0]
431
- ];
432
- var InvalidArgumentException$ = [-3, n0, _IAE,
433
- { [_e]: _c, [_hE]: 400 },
434
- [_M],
435
- [0]
436
- ];
437
- schema.TypeRegistry.for(n0).registerError(InvalidArgumentException$, InvalidArgumentException);
438
- var InvalidCodecPrivateDataException$ = [-3, n0, _ICPDE,
439
- { [_e]: _c, [_hE]: 400 },
440
- [_M],
441
- [0]
442
- ];
443
- schema.TypeRegistry.for(n0).registerError(InvalidCodecPrivateDataException$, InvalidCodecPrivateDataException);
444
- var InvalidMediaFrameException$ = [-3, n0, _IMFE,
445
- { [_e]: _c, [_hE]: 400 },
446
- [_M],
447
- [0]
448
- ];
449
- schema.TypeRegistry.for(n0).registerError(InvalidMediaFrameException$, InvalidMediaFrameException);
450
- var ListFragmentsInput$ = [3, n0, _LFI,
451
- 0,
452
- [_SN, _SARN, _MR, _NT, _FS],
453
- [0, 0, 1, 0, () => FragmentSelector$]
454
- ];
455
- var ListFragmentsOutput$ = [3, n0, _LFO,
456
- 0,
457
- [_Fr, _NT],
458
- [() => FragmentList, 0]
459
- ];
460
- var MissingCodecPrivateDataException$ = [-3, n0, _MCPDE,
461
- { [_e]: _c, [_hE]: 400 },
462
- [_M],
463
- [0]
464
- ];
465
- schema.TypeRegistry.for(n0).registerError(MissingCodecPrivateDataException$, MissingCodecPrivateDataException);
466
- var NoDataRetentionException$ = [-3, n0, _NDRE,
467
- { [_e]: _c, [_hE]: 400 },
468
- [_M],
469
- [0]
470
- ];
471
- schema.TypeRegistry.for(n0).registerError(NoDataRetentionException$, NoDataRetentionException);
472
- var NotAuthorizedException$ = [-3, n0, _NAE,
473
- { [_e]: _c, [_hE]: 401 },
474
- [_M],
475
- [0]
476
- ];
477
- schema.TypeRegistry.for(n0).registerError(NotAuthorizedException$, NotAuthorizedException);
478
- var ResourceNotFoundException$ = [-3, n0, _RNFE,
479
- { [_e]: _c, [_hE]: 404 },
480
- [_M],
481
- [0]
482
- ];
483
- schema.TypeRegistry.for(n0).registerError(ResourceNotFoundException$, ResourceNotFoundException);
484
- var TimestampRange$ = [3, n0, _TR,
485
- 0,
486
- [_ST, _ET],
487
- [4, 4], 2
488
- ];
489
- var UnsupportedStreamMediaTypeException$ = [-3, n0, _USMTE,
490
- { [_e]: _c, [_hE]: 400 },
491
- [_M],
492
- [0]
493
- ];
494
- schema.TypeRegistry.for(n0).registerError(UnsupportedStreamMediaTypeException$, UnsupportedStreamMediaTypeException);
495
- var KinesisVideoArchivedMediaServiceException$ = [-3, _sm, "KinesisVideoArchivedMediaServiceException", 0, [], []];
496
- schema.TypeRegistry.for(_sm).registerError(KinesisVideoArchivedMediaServiceException$, KinesisVideoArchivedMediaServiceException);
497
- var FragmentList = [1, n0, _FL,
498
- 0, () => Fragment$
499
- ];
500
- var Images = [1, n0, _I,
501
- 0, () => Image$
502
- ];
503
- var GetClip$ = [9, n0, _GC,
504
- { [_h]: ["POST", "/getClip", 200] }, () => GetClipInput$, () => GetClipOutput$
505
- ];
506
- var GetDASHStreamingSessionURL$ = [9, n0, _GDASHSSURL,
507
- { [_h]: ["POST", "/getDASHStreamingSessionURL", 200] }, () => GetDASHStreamingSessionURLInput$, () => GetDASHStreamingSessionURLOutput$
508
- ];
509
- var GetHLSStreamingSessionURL$ = [9, n0, _GHLSSSURL,
510
- { [_h]: ["POST", "/getHLSStreamingSessionURL", 200] }, () => GetHLSStreamingSessionURLInput$, () => GetHLSStreamingSessionURLOutput$
511
- ];
512
- var GetImages$ = [9, n0, _GI,
513
- { [_h]: ["POST", "/getImages", 200] }, () => GetImagesInput$, () => GetImagesOutput$
514
- ];
515
- var GetMediaForFragmentList$ = [9, n0, _GMFFL,
516
- { [_h]: ["POST", "/getMediaForFragmentList", 200] }, () => GetMediaForFragmentListInput$, () => GetMediaForFragmentListOutput$
517
- ];
518
- var ListFragments$ = [9, n0, _LF,
519
- { [_h]: ["POST", "/listFragments", 200] }, () => ListFragmentsInput$, () => ListFragmentsOutput$
520
- ];
521
-
522
116
  class GetClipCommand extends smithyClient.Command
523
117
  .classBuilder()
524
118
  .ep(commonParams)
@@ -527,7 +121,7 @@ class GetClipCommand extends smithyClient.Command
527
121
  })
528
122
  .s("AWSAcuityReader", "GetClip", {})
529
123
  .n("KinesisVideoArchivedMediaClient", "GetClipCommand")
530
- .sc(GetClip$)
124
+ .sc(schemas_0.GetClip$)
531
125
  .build() {
532
126
  }
533
127
 
@@ -539,7 +133,7 @@ class GetDASHStreamingSessionURLCommand extends smithyClient.Command
539
133
  })
540
134
  .s("AWSAcuityReader", "GetDASHStreamingSessionURL", {})
541
135
  .n("KinesisVideoArchivedMediaClient", "GetDASHStreamingSessionURLCommand")
542
- .sc(GetDASHStreamingSessionURL$)
136
+ .sc(schemas_0.GetDASHStreamingSessionURL$)
543
137
  .build() {
544
138
  }
545
139
 
@@ -551,7 +145,7 @@ class GetHLSStreamingSessionURLCommand extends smithyClient.Command
551
145
  })
552
146
  .s("AWSAcuityReader", "GetHLSStreamingSessionURL", {})
553
147
  .n("KinesisVideoArchivedMediaClient", "GetHLSStreamingSessionURLCommand")
554
- .sc(GetHLSStreamingSessionURL$)
148
+ .sc(schemas_0.GetHLSStreamingSessionURL$)
555
149
  .build() {
556
150
  }
557
151
 
@@ -563,7 +157,7 @@ class GetImagesCommand extends smithyClient.Command
563
157
  })
564
158
  .s("AWSAcuityReader", "GetImages", {})
565
159
  .n("KinesisVideoArchivedMediaClient", "GetImagesCommand")
566
- .sc(GetImages$)
160
+ .sc(schemas_0.GetImages$)
567
161
  .build() {
568
162
  }
569
163
 
@@ -575,7 +169,7 @@ class GetMediaForFragmentListCommand extends smithyClient.Command
575
169
  })
576
170
  .s("AWSAcuityReader", "GetMediaForFragmentList", {})
577
171
  .n("KinesisVideoArchivedMediaClient", "GetMediaForFragmentListCommand")
578
- .sc(GetMediaForFragmentList$)
172
+ .sc(schemas_0.GetMediaForFragmentList$)
579
173
  .build() {
580
174
  }
581
175
 
@@ -587,7 +181,7 @@ class ListFragmentsCommand extends smithyClient.Command
587
181
  })
588
182
  .s("AWSAcuityReader", "ListFragments", {})
589
183
  .n("KinesisVideoArchivedMediaClient", "ListFragmentsCommand")
590
- .sc(ListFragments$)
184
+ .sc(schemas_0.ListFragments$)
591
185
  .build() {
592
186
  }
593
187
 
@@ -682,76 +276,44 @@ Object.defineProperty(exports, "__Client", {
682
276
  enumerable: true,
683
277
  get: function () { return smithyClient.Client; }
684
278
  });
685
- exports.ClientLimitExceededException = ClientLimitExceededException;
686
- exports.ClientLimitExceededException$ = ClientLimitExceededException$;
687
- exports.ClipFragmentSelector$ = ClipFragmentSelector$;
279
+ Object.defineProperty(exports, "KinesisVideoArchivedMediaServiceException", {
280
+ enumerable: true,
281
+ get: function () { return KinesisVideoArchivedMediaServiceException.KinesisVideoArchivedMediaServiceException; }
282
+ });
688
283
  exports.ClipFragmentSelectorType = ClipFragmentSelectorType;
689
- exports.ClipTimestampRange$ = ClipTimestampRange$;
690
284
  exports.ContainerFormat = ContainerFormat;
691
285
  exports.DASHDisplayFragmentNumber = DASHDisplayFragmentNumber;
692
286
  exports.DASHDisplayFragmentTimestamp = DASHDisplayFragmentTimestamp;
693
- exports.DASHFragmentSelector$ = DASHFragmentSelector$;
694
287
  exports.DASHFragmentSelectorType = DASHFragmentSelectorType;
695
288
  exports.DASHPlaybackMode = DASHPlaybackMode;
696
- exports.DASHTimestampRange$ = DASHTimestampRange$;
697
289
  exports.Format = Format;
698
290
  exports.FormatConfigKey = FormatConfigKey;
699
- exports.Fragment$ = Fragment$;
700
- exports.FragmentSelector$ = FragmentSelector$;
701
291
  exports.FragmentSelectorType = FragmentSelectorType;
702
- exports.GetClip$ = GetClip$;
703
292
  exports.GetClipCommand = GetClipCommand;
704
- exports.GetClipInput$ = GetClipInput$;
705
- exports.GetClipOutput$ = GetClipOutput$;
706
- exports.GetDASHStreamingSessionURL$ = GetDASHStreamingSessionURL$;
707
293
  exports.GetDASHStreamingSessionURLCommand = GetDASHStreamingSessionURLCommand;
708
- exports.GetDASHStreamingSessionURLInput$ = GetDASHStreamingSessionURLInput$;
709
- exports.GetDASHStreamingSessionURLOutput$ = GetDASHStreamingSessionURLOutput$;
710
- exports.GetHLSStreamingSessionURL$ = GetHLSStreamingSessionURL$;
711
294
  exports.GetHLSStreamingSessionURLCommand = GetHLSStreamingSessionURLCommand;
712
- exports.GetHLSStreamingSessionURLInput$ = GetHLSStreamingSessionURLInput$;
713
- exports.GetHLSStreamingSessionURLOutput$ = GetHLSStreamingSessionURLOutput$;
714
- exports.GetImages$ = GetImages$;
715
295
  exports.GetImagesCommand = GetImagesCommand;
716
- exports.GetImagesInput$ = GetImagesInput$;
717
- exports.GetImagesOutput$ = GetImagesOutput$;
718
- exports.GetMediaForFragmentList$ = GetMediaForFragmentList$;
719
296
  exports.GetMediaForFragmentListCommand = GetMediaForFragmentListCommand;
720
- exports.GetMediaForFragmentListInput$ = GetMediaForFragmentListInput$;
721
- exports.GetMediaForFragmentListOutput$ = GetMediaForFragmentListOutput$;
722
297
  exports.HLSDiscontinuityMode = HLSDiscontinuityMode;
723
298
  exports.HLSDisplayFragmentTimestamp = HLSDisplayFragmentTimestamp;
724
- exports.HLSFragmentSelector$ = HLSFragmentSelector$;
725
299
  exports.HLSFragmentSelectorType = HLSFragmentSelectorType;
726
300
  exports.HLSPlaybackMode = HLSPlaybackMode;
727
- exports.HLSTimestampRange$ = HLSTimestampRange$;
728
- exports.Image$ = Image$;
729
301
  exports.ImageError = ImageError;
730
302
  exports.ImageSelectorType = ImageSelectorType;
731
- exports.InvalidArgumentException = InvalidArgumentException;
732
- exports.InvalidArgumentException$ = InvalidArgumentException$;
733
- exports.InvalidCodecPrivateDataException = InvalidCodecPrivateDataException;
734
- exports.InvalidCodecPrivateDataException$ = InvalidCodecPrivateDataException$;
735
- exports.InvalidMediaFrameException = InvalidMediaFrameException;
736
- exports.InvalidMediaFrameException$ = InvalidMediaFrameException$;
737
303
  exports.KinesisVideoArchivedMedia = KinesisVideoArchivedMedia;
738
304
  exports.KinesisVideoArchivedMediaClient = KinesisVideoArchivedMediaClient;
739
- exports.KinesisVideoArchivedMediaServiceException = KinesisVideoArchivedMediaServiceException;
740
- exports.KinesisVideoArchivedMediaServiceException$ = KinesisVideoArchivedMediaServiceException$;
741
- exports.ListFragments$ = ListFragments$;
742
305
  exports.ListFragmentsCommand = ListFragmentsCommand;
743
- exports.ListFragmentsInput$ = ListFragmentsInput$;
744
- exports.ListFragmentsOutput$ = ListFragmentsOutput$;
745
- exports.MissingCodecPrivateDataException = MissingCodecPrivateDataException;
746
- exports.MissingCodecPrivateDataException$ = MissingCodecPrivateDataException$;
747
- exports.NoDataRetentionException = NoDataRetentionException;
748
- exports.NoDataRetentionException$ = NoDataRetentionException$;
749
- exports.NotAuthorizedException = NotAuthorizedException;
750
- exports.NotAuthorizedException$ = NotAuthorizedException$;
751
- exports.ResourceNotFoundException = ResourceNotFoundException;
752
- exports.ResourceNotFoundException$ = ResourceNotFoundException$;
753
- exports.TimestampRange$ = TimestampRange$;
754
- exports.UnsupportedStreamMediaTypeException = UnsupportedStreamMediaTypeException;
755
- exports.UnsupportedStreamMediaTypeException$ = UnsupportedStreamMediaTypeException$;
756
306
  exports.paginateGetImages = paginateGetImages;
757
307
  exports.paginateListFragments = paginateListFragments;
308
+ Object.keys(schemas_0).forEach(function (k) {
309
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
310
+ enumerable: true,
311
+ get: function () { return schemas_0[k]; }
312
+ });
313
+ });
314
+ Object.keys(errors).forEach(function (k) {
315
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
316
+ enumerable: true,
317
+ get: function () { return errors[k]; }
318
+ });
319
+ });
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.KinesisVideoArchivedMediaServiceException = exports.__ServiceException = void 0;
4
+ const smithy_client_1 = require("@smithy/smithy-client");
5
+ Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return smithy_client_1.ServiceException; } });
6
+ class KinesisVideoArchivedMediaServiceException extends smithy_client_1.ServiceException {
7
+ constructor(options) {
8
+ super(options);
9
+ Object.setPrototypeOf(this, KinesisVideoArchivedMediaServiceException.prototype);
10
+ }
11
+ }
12
+ exports.KinesisVideoArchivedMediaServiceException = KinesisVideoArchivedMediaServiceException;
@@ -0,0 +1,139 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UnsupportedStreamMediaTypeException = exports.ResourceNotFoundException = exports.NotAuthorizedException = exports.NoDataRetentionException = exports.MissingCodecPrivateDataException = exports.InvalidMediaFrameException = exports.InvalidCodecPrivateDataException = exports.InvalidArgumentException = exports.ClientLimitExceededException = void 0;
4
+ const KinesisVideoArchivedMediaServiceException_1 = require("./KinesisVideoArchivedMediaServiceException");
5
+ class ClientLimitExceededException extends KinesisVideoArchivedMediaServiceException_1.KinesisVideoArchivedMediaServiceException {
6
+ name = "ClientLimitExceededException";
7
+ $fault = "client";
8
+ Message;
9
+ constructor(opts) {
10
+ super({
11
+ name: "ClientLimitExceededException",
12
+ $fault: "client",
13
+ ...opts,
14
+ });
15
+ Object.setPrototypeOf(this, ClientLimitExceededException.prototype);
16
+ this.Message = opts.Message;
17
+ }
18
+ }
19
+ exports.ClientLimitExceededException = ClientLimitExceededException;
20
+ class InvalidArgumentException extends KinesisVideoArchivedMediaServiceException_1.KinesisVideoArchivedMediaServiceException {
21
+ name = "InvalidArgumentException";
22
+ $fault = "client";
23
+ Message;
24
+ constructor(opts) {
25
+ super({
26
+ name: "InvalidArgumentException",
27
+ $fault: "client",
28
+ ...opts,
29
+ });
30
+ Object.setPrototypeOf(this, InvalidArgumentException.prototype);
31
+ this.Message = opts.Message;
32
+ }
33
+ }
34
+ exports.InvalidArgumentException = InvalidArgumentException;
35
+ class InvalidCodecPrivateDataException extends KinesisVideoArchivedMediaServiceException_1.KinesisVideoArchivedMediaServiceException {
36
+ name = "InvalidCodecPrivateDataException";
37
+ $fault = "client";
38
+ Message;
39
+ constructor(opts) {
40
+ super({
41
+ name: "InvalidCodecPrivateDataException",
42
+ $fault: "client",
43
+ ...opts,
44
+ });
45
+ Object.setPrototypeOf(this, InvalidCodecPrivateDataException.prototype);
46
+ this.Message = opts.Message;
47
+ }
48
+ }
49
+ exports.InvalidCodecPrivateDataException = InvalidCodecPrivateDataException;
50
+ class InvalidMediaFrameException extends KinesisVideoArchivedMediaServiceException_1.KinesisVideoArchivedMediaServiceException {
51
+ name = "InvalidMediaFrameException";
52
+ $fault = "client";
53
+ Message;
54
+ constructor(opts) {
55
+ super({
56
+ name: "InvalidMediaFrameException",
57
+ $fault: "client",
58
+ ...opts,
59
+ });
60
+ Object.setPrototypeOf(this, InvalidMediaFrameException.prototype);
61
+ this.Message = opts.Message;
62
+ }
63
+ }
64
+ exports.InvalidMediaFrameException = InvalidMediaFrameException;
65
+ class MissingCodecPrivateDataException extends KinesisVideoArchivedMediaServiceException_1.KinesisVideoArchivedMediaServiceException {
66
+ name = "MissingCodecPrivateDataException";
67
+ $fault = "client";
68
+ Message;
69
+ constructor(opts) {
70
+ super({
71
+ name: "MissingCodecPrivateDataException",
72
+ $fault: "client",
73
+ ...opts,
74
+ });
75
+ Object.setPrototypeOf(this, MissingCodecPrivateDataException.prototype);
76
+ this.Message = opts.Message;
77
+ }
78
+ }
79
+ exports.MissingCodecPrivateDataException = MissingCodecPrivateDataException;
80
+ class NoDataRetentionException extends KinesisVideoArchivedMediaServiceException_1.KinesisVideoArchivedMediaServiceException {
81
+ name = "NoDataRetentionException";
82
+ $fault = "client";
83
+ Message;
84
+ constructor(opts) {
85
+ super({
86
+ name: "NoDataRetentionException",
87
+ $fault: "client",
88
+ ...opts,
89
+ });
90
+ Object.setPrototypeOf(this, NoDataRetentionException.prototype);
91
+ this.Message = opts.Message;
92
+ }
93
+ }
94
+ exports.NoDataRetentionException = NoDataRetentionException;
95
+ class NotAuthorizedException extends KinesisVideoArchivedMediaServiceException_1.KinesisVideoArchivedMediaServiceException {
96
+ name = "NotAuthorizedException";
97
+ $fault = "client";
98
+ Message;
99
+ constructor(opts) {
100
+ super({
101
+ name: "NotAuthorizedException",
102
+ $fault: "client",
103
+ ...opts,
104
+ });
105
+ Object.setPrototypeOf(this, NotAuthorizedException.prototype);
106
+ this.Message = opts.Message;
107
+ }
108
+ }
109
+ exports.NotAuthorizedException = NotAuthorizedException;
110
+ class ResourceNotFoundException extends KinesisVideoArchivedMediaServiceException_1.KinesisVideoArchivedMediaServiceException {
111
+ name = "ResourceNotFoundException";
112
+ $fault = "client";
113
+ Message;
114
+ constructor(opts) {
115
+ super({
116
+ name: "ResourceNotFoundException",
117
+ $fault: "client",
118
+ ...opts,
119
+ });
120
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
121
+ this.Message = opts.Message;
122
+ }
123
+ }
124
+ exports.ResourceNotFoundException = ResourceNotFoundException;
125
+ class UnsupportedStreamMediaTypeException extends KinesisVideoArchivedMediaServiceException_1.KinesisVideoArchivedMediaServiceException {
126
+ name = "UnsupportedStreamMediaTypeException";
127
+ $fault = "client";
128
+ Message;
129
+ constructor(opts) {
130
+ super({
131
+ name: "UnsupportedStreamMediaTypeException",
132
+ $fault: "client",
133
+ ...opts,
134
+ });
135
+ Object.setPrototypeOf(this, UnsupportedStreamMediaTypeException.prototype);
136
+ this.Message = opts.Message;
137
+ }
138
+ }
139
+ exports.UnsupportedStreamMediaTypeException = UnsupportedStreamMediaTypeException;
@@ -10,6 +10,7 @@ const util_stream_1 = require("@smithy/util-stream");
10
10
  const util_utf8_1 = require("@smithy/util-utf8");
11
11
  const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider");
12
12
  const endpointResolver_1 = require("./endpoint/endpointResolver");
13
+ const schemas_0_1 = require("./schemas/schemas_0");
13
14
  const getRuntimeConfig = (config) => {
14
15
  return {
15
16
  apiVersion: "2017-09-30",
@@ -30,6 +31,7 @@ const getRuntimeConfig = (config) => {
30
31
  protocol: config?.protocol ?? protocols_1.AwsRestJsonProtocol,
31
32
  protocolSettings: config?.protocolSettings ?? {
32
33
  defaultNamespace: "com.amazonaws.kinesisvideoarchivedmedia",
34
+ errorTypeRegistries: schemas_0_1.errorTypeRegistries,
33
35
  version: "2017-09-30",
34
36
  serviceTarget: "AWSAcuityReader",
35
37
  },
@@ -0,0 +1,288 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ListFragments$ = exports.GetMediaForFragmentList$ = exports.GetImages$ = exports.GetHLSStreamingSessionURL$ = exports.GetDASHStreamingSessionURL$ = exports.GetClip$ = exports.TimestampRange$ = exports.ListFragmentsOutput$ = exports.ListFragmentsInput$ = exports.Image$ = exports.HLSTimestampRange$ = exports.HLSFragmentSelector$ = exports.GetMediaForFragmentListOutput$ = exports.GetMediaForFragmentListInput$ = exports.GetImagesOutput$ = exports.GetImagesInput$ = exports.GetHLSStreamingSessionURLOutput$ = exports.GetHLSStreamingSessionURLInput$ = exports.GetDASHStreamingSessionURLOutput$ = exports.GetDASHStreamingSessionURLInput$ = exports.GetClipOutput$ = exports.GetClipInput$ = exports.FragmentSelector$ = exports.Fragment$ = exports.DASHTimestampRange$ = exports.DASHFragmentSelector$ = exports.ClipTimestampRange$ = exports.ClipFragmentSelector$ = exports.errorTypeRegistries = exports.UnsupportedStreamMediaTypeException$ = exports.ResourceNotFoundException$ = exports.NotAuthorizedException$ = exports.NoDataRetentionException$ = exports.MissingCodecPrivateDataException$ = exports.InvalidMediaFrameException$ = exports.InvalidCodecPrivateDataException$ = exports.InvalidArgumentException$ = exports.ClientLimitExceededException$ = exports.KinesisVideoArchivedMediaServiceException$ = void 0;
4
+ const _CF = "ContainerFormat";
5
+ const _CFS = "ClipFragmentSelector";
6
+ const _CLEE = "ClientLimitExceededException";
7
+ const _CT = "ContentType";
8
+ const _CTR = "ClipTimestampRange";
9
+ const _CT_ = "Content-Type";
10
+ const _DASHFS = "DASHFragmentSelector";
11
+ const _DASHSSURL = "DASHStreamingSessionURL";
12
+ const _DASHTR = "DASHTimestampRange";
13
+ const _DFN = "DisplayFragmentNumber";
14
+ const _DFT = "DisplayFragmentTimestamp";
15
+ const _DM = "DiscontinuityMode";
16
+ const _E = "Expires";
17
+ const _ET = "EndTimestamp";
18
+ const _Er = "Error";
19
+ const _F = "Fragment";
20
+ const _FC = "FormatConfig";
21
+ const _FL = "FragmentList";
22
+ const _FLIM = "FragmentLengthInMilliseconds";
23
+ const _FN = "FragmentNumber";
24
+ const _FS = "FragmentSelector";
25
+ const _FSIB = "FragmentSizeInBytes";
26
+ const _FST = "FragmentSelectorType";
27
+ const _Fo = "Format";
28
+ const _Fr = "Fragments";
29
+ const _GC = "GetClip";
30
+ const _GCI = "GetClipInput";
31
+ const _GCO = "GetClipOutput";
32
+ const _GDASHSSURL = "GetDASHStreamingSessionURL";
33
+ const _GDASHSSURLI = "GetDASHStreamingSessionURLInput";
34
+ const _GDASHSSURLO = "GetDASHStreamingSessionURLOutput";
35
+ const _GHLSSSURL = "GetHLSStreamingSessionURL";
36
+ const _GHLSSSURLI = "GetHLSStreamingSessionURLInput";
37
+ const _GHLSSSURLO = "GetHLSStreamingSessionURLOutput";
38
+ const _GI = "GetImages";
39
+ const _GII = "GetImagesInput";
40
+ const _GIO = "GetImagesOutput";
41
+ const _GMFFL = "GetMediaForFragmentList";
42
+ const _GMFFLI = "GetMediaForFragmentListInput";
43
+ const _GMFFLO = "GetMediaForFragmentListOutput";
44
+ const _HLSFS = "HLSFragmentSelector";
45
+ const _HLSSSURL = "HLSStreamingSessionURL";
46
+ const _HLSTR = "HLSTimestampRange";
47
+ const _HP = "HeightPixels";
48
+ const _I = "Images";
49
+ const _IAE = "InvalidArgumentException";
50
+ const _IC = "ImageContent";
51
+ const _ICPDE = "InvalidCodecPrivateDataException";
52
+ const _IMFE = "InvalidMediaFrameException";
53
+ const _IST = "ImageSelectorType";
54
+ const _Im = "Image";
55
+ const _LF = "ListFragments";
56
+ const _LFI = "ListFragmentsInput";
57
+ const _LFO = "ListFragmentsOutput";
58
+ const _M = "Message";
59
+ const _MCPDE = "MissingCodecPrivateDataException";
60
+ const _MMFR = "MaxManifestFragmentResults";
61
+ const _MMPFR = "MaxMediaPlaylistFragmentResults";
62
+ const _MR = "MaxResults";
63
+ const _NAE = "NotAuthorizedException";
64
+ const _NDRE = "NoDataRetentionException";
65
+ const _NT = "NextToken";
66
+ const _P = "Payload";
67
+ const _PM = "PlaybackMode";
68
+ const _PT = "ProducerTimestamp";
69
+ const _RNFE = "ResourceNotFoundException";
70
+ const _SARN = "StreamARN";
71
+ const _SI = "SamplingInterval";
72
+ const _SN = "StreamName";
73
+ const _ST = "StartTimestamp";
74
+ const _STe = "ServerTimestamp";
75
+ const _TR = "TimestampRange";
76
+ const _TS = "TimeStamp";
77
+ const _USMTE = "UnsupportedStreamMediaTypeException";
78
+ const _WP = "WidthPixels";
79
+ const _c = "client";
80
+ const _e = "error";
81
+ const _h = "http";
82
+ const _hE = "httpError";
83
+ const _hH = "httpHeader";
84
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.kinesisvideoarchivedmedia";
85
+ const _st = "streaming";
86
+ const n0 = "com.amazonaws.kinesisvideoarchivedmedia";
87
+ const schema_1 = require("@smithy/core/schema");
88
+ const errors_1 = require("../models/errors");
89
+ const KinesisVideoArchivedMediaServiceException_1 = require("../models/KinesisVideoArchivedMediaServiceException");
90
+ const _s_registry = schema_1.TypeRegistry.for(_s);
91
+ exports.KinesisVideoArchivedMediaServiceException$ = [-3, _s, "KinesisVideoArchivedMediaServiceException", 0, [], []];
92
+ _s_registry.registerError(exports.KinesisVideoArchivedMediaServiceException$, KinesisVideoArchivedMediaServiceException_1.KinesisVideoArchivedMediaServiceException);
93
+ const n0_registry = schema_1.TypeRegistry.for(n0);
94
+ exports.ClientLimitExceededException$ = [-3, n0, _CLEE,
95
+ { [_e]: _c, [_hE]: 400 },
96
+ [_M],
97
+ [0]
98
+ ];
99
+ n0_registry.registerError(exports.ClientLimitExceededException$, errors_1.ClientLimitExceededException);
100
+ exports.InvalidArgumentException$ = [-3, n0, _IAE,
101
+ { [_e]: _c, [_hE]: 400 },
102
+ [_M],
103
+ [0]
104
+ ];
105
+ n0_registry.registerError(exports.InvalidArgumentException$, errors_1.InvalidArgumentException);
106
+ exports.InvalidCodecPrivateDataException$ = [-3, n0, _ICPDE,
107
+ { [_e]: _c, [_hE]: 400 },
108
+ [_M],
109
+ [0]
110
+ ];
111
+ n0_registry.registerError(exports.InvalidCodecPrivateDataException$, errors_1.InvalidCodecPrivateDataException);
112
+ exports.InvalidMediaFrameException$ = [-3, n0, _IMFE,
113
+ { [_e]: _c, [_hE]: 400 },
114
+ [_M],
115
+ [0]
116
+ ];
117
+ n0_registry.registerError(exports.InvalidMediaFrameException$, errors_1.InvalidMediaFrameException);
118
+ exports.MissingCodecPrivateDataException$ = [-3, n0, _MCPDE,
119
+ { [_e]: _c, [_hE]: 400 },
120
+ [_M],
121
+ [0]
122
+ ];
123
+ n0_registry.registerError(exports.MissingCodecPrivateDataException$, errors_1.MissingCodecPrivateDataException);
124
+ exports.NoDataRetentionException$ = [-3, n0, _NDRE,
125
+ { [_e]: _c, [_hE]: 400 },
126
+ [_M],
127
+ [0]
128
+ ];
129
+ n0_registry.registerError(exports.NoDataRetentionException$, errors_1.NoDataRetentionException);
130
+ exports.NotAuthorizedException$ = [-3, n0, _NAE,
131
+ { [_e]: _c, [_hE]: 401 },
132
+ [_M],
133
+ [0]
134
+ ];
135
+ n0_registry.registerError(exports.NotAuthorizedException$, errors_1.NotAuthorizedException);
136
+ exports.ResourceNotFoundException$ = [-3, n0, _RNFE,
137
+ { [_e]: _c, [_hE]: 404 },
138
+ [_M],
139
+ [0]
140
+ ];
141
+ n0_registry.registerError(exports.ResourceNotFoundException$, errors_1.ResourceNotFoundException);
142
+ exports.UnsupportedStreamMediaTypeException$ = [-3, n0, _USMTE,
143
+ { [_e]: _c, [_hE]: 400 },
144
+ [_M],
145
+ [0]
146
+ ];
147
+ n0_registry.registerError(exports.UnsupportedStreamMediaTypeException$, errors_1.UnsupportedStreamMediaTypeException);
148
+ exports.errorTypeRegistries = [
149
+ _s_registry,
150
+ n0_registry,
151
+ ];
152
+ var Payload = [0, n0, _P, { [_st]: 1 }, 42];
153
+ exports.ClipFragmentSelector$ = [3, n0, _CFS,
154
+ 0,
155
+ [_FST, _TR],
156
+ [0, () => exports.ClipTimestampRange$], 2
157
+ ];
158
+ exports.ClipTimestampRange$ = [3, n0, _CTR,
159
+ 0,
160
+ [_ST, _ET],
161
+ [4, 4], 2
162
+ ];
163
+ exports.DASHFragmentSelector$ = [3, n0, _DASHFS,
164
+ 0,
165
+ [_FST, _TR],
166
+ [0, () => exports.DASHTimestampRange$]
167
+ ];
168
+ exports.DASHTimestampRange$ = [3, n0, _DASHTR,
169
+ 0,
170
+ [_ST, _ET],
171
+ [4, 4]
172
+ ];
173
+ exports.Fragment$ = [3, n0, _F,
174
+ 0,
175
+ [_FN, _FSIB, _PT, _STe, _FLIM],
176
+ [0, 1, 4, 4, 1]
177
+ ];
178
+ exports.FragmentSelector$ = [3, n0, _FS,
179
+ 0,
180
+ [_FST, _TR],
181
+ [0, () => exports.TimestampRange$], 2
182
+ ];
183
+ exports.GetClipInput$ = [3, n0, _GCI,
184
+ 0,
185
+ [_CFS, _SN, _SARN],
186
+ [() => exports.ClipFragmentSelector$, 0, 0], 1
187
+ ];
188
+ exports.GetClipOutput$ = [3, n0, _GCO,
189
+ 0,
190
+ [_CT, _P],
191
+ [[0, { [_hH]: _CT_ }], [() => Payload, 16]]
192
+ ];
193
+ exports.GetDASHStreamingSessionURLInput$ = [3, n0, _GDASHSSURLI,
194
+ 0,
195
+ [_SN, _SARN, _PM, _DFT, _DFN, _DASHFS, _E, _MMFR],
196
+ [0, 0, 0, 0, 0, () => exports.DASHFragmentSelector$, 1, 1]
197
+ ];
198
+ exports.GetDASHStreamingSessionURLOutput$ = [3, n0, _GDASHSSURLO,
199
+ 0,
200
+ [_DASHSSURL],
201
+ [0]
202
+ ];
203
+ exports.GetHLSStreamingSessionURLInput$ = [3, n0, _GHLSSSURLI,
204
+ 0,
205
+ [_SN, _SARN, _PM, _HLSFS, _CF, _DM, _DFT, _E, _MMPFR],
206
+ [0, 0, 0, () => exports.HLSFragmentSelector$, 0, 0, 0, 1, 1]
207
+ ];
208
+ exports.GetHLSStreamingSessionURLOutput$ = [3, n0, _GHLSSSURLO,
209
+ 0,
210
+ [_HLSSSURL],
211
+ [0]
212
+ ];
213
+ exports.GetImagesInput$ = [3, n0, _GII,
214
+ 0,
215
+ [_IST, _ST, _ET, _Fo, _SN, _SARN, _SI, _FC, _WP, _HP, _MR, _NT],
216
+ [0, 4, 4, 0, 0, 0, 1, 128 | 0, 1, 1, 1, 0], 4
217
+ ];
218
+ exports.GetImagesOutput$ = [3, n0, _GIO,
219
+ 0,
220
+ [_I, _NT],
221
+ [() => Images, 0]
222
+ ];
223
+ exports.GetMediaForFragmentListInput$ = [3, n0, _GMFFLI,
224
+ 0,
225
+ [_Fr, _SN, _SARN],
226
+ [64 | 0, 0, 0], 1
227
+ ];
228
+ exports.GetMediaForFragmentListOutput$ = [3, n0, _GMFFLO,
229
+ 0,
230
+ [_CT, _P],
231
+ [[0, { [_hH]: _CT_ }], [() => Payload, 16]]
232
+ ];
233
+ exports.HLSFragmentSelector$ = [3, n0, _HLSFS,
234
+ 0,
235
+ [_FST, _TR],
236
+ [0, () => exports.HLSTimestampRange$]
237
+ ];
238
+ exports.HLSTimestampRange$ = [3, n0, _HLSTR,
239
+ 0,
240
+ [_ST, _ET],
241
+ [4, 4]
242
+ ];
243
+ exports.Image$ = [3, n0, _Im,
244
+ 0,
245
+ [_TS, _Er, _IC],
246
+ [4, 0, 0]
247
+ ];
248
+ exports.ListFragmentsInput$ = [3, n0, _LFI,
249
+ 0,
250
+ [_SN, _SARN, _MR, _NT, _FS],
251
+ [0, 0, 1, 0, () => exports.FragmentSelector$]
252
+ ];
253
+ exports.ListFragmentsOutput$ = [3, n0, _LFO,
254
+ 0,
255
+ [_Fr, _NT],
256
+ [() => FragmentList, 0]
257
+ ];
258
+ exports.TimestampRange$ = [3, n0, _TR,
259
+ 0,
260
+ [_ST, _ET],
261
+ [4, 4], 2
262
+ ];
263
+ var FragmentList = [1, n0, _FL,
264
+ 0, () => exports.Fragment$
265
+ ];
266
+ var FragmentNumberList = 64 | 0;
267
+ var Images = [1, n0, _I,
268
+ 0, () => exports.Image$
269
+ ];
270
+ var FormatConfig = 128 | 0;
271
+ exports.GetClip$ = [9, n0, _GC,
272
+ { [_h]: ["POST", "/getClip", 200] }, () => exports.GetClipInput$, () => exports.GetClipOutput$
273
+ ];
274
+ exports.GetDASHStreamingSessionURL$ = [9, n0, _GDASHSSURL,
275
+ { [_h]: ["POST", "/getDASHStreamingSessionURL", 200] }, () => exports.GetDASHStreamingSessionURLInput$, () => exports.GetDASHStreamingSessionURLOutput$
276
+ ];
277
+ exports.GetHLSStreamingSessionURL$ = [9, n0, _GHLSSSURL,
278
+ { [_h]: ["POST", "/getHLSStreamingSessionURL", 200] }, () => exports.GetHLSStreamingSessionURLInput$, () => exports.GetHLSStreamingSessionURLOutput$
279
+ ];
280
+ exports.GetImages$ = [9, n0, _GI,
281
+ { [_h]: ["POST", "/getImages", 200] }, () => exports.GetImagesInput$, () => exports.GetImagesOutput$
282
+ ];
283
+ exports.GetMediaForFragmentList$ = [9, n0, _GMFFL,
284
+ { [_h]: ["POST", "/getMediaForFragmentList", 200] }, () => exports.GetMediaForFragmentListInput$, () => exports.GetMediaForFragmentListOutput$
285
+ ];
286
+ exports.ListFragments$ = [9, n0, _LF,
287
+ { [_h]: ["POST", "/listFragments", 200] }, () => exports.ListFragmentsInput$, () => exports.ListFragmentsOutput$
288
+ ];
@@ -7,6 +7,7 @@ import { sdkStreamMixin } from "@smithy/util-stream";
7
7
  import { fromUtf8, toUtf8 } from "@smithy/util-utf8";
8
8
  import { defaultKinesisVideoArchivedMediaHttpAuthSchemeProvider } from "./auth/httpAuthSchemeProvider";
9
9
  import { defaultEndpointResolver } from "./endpoint/endpointResolver";
10
+ import { errorTypeRegistries } from "./schemas/schemas_0";
10
11
  export const getRuntimeConfig = (config) => {
11
12
  return {
12
13
  apiVersion: "2017-09-30",
@@ -27,6 +28,7 @@ export const getRuntimeConfig = (config) => {
27
28
  protocol: config?.protocol ?? AwsRestJsonProtocol,
28
29
  protocolSettings: config?.protocolSettings ?? {
29
30
  defaultNamespace: "com.amazonaws.kinesisvideoarchivedmedia",
31
+ errorTypeRegistries,
30
32
  version: "2017-09-30",
31
33
  serviceTarget: "AWSAcuityReader",
32
34
  },
@@ -78,19 +78,75 @@ const _e = "error";
78
78
  const _h = "http";
79
79
  const _hE = "httpError";
80
80
  const _hH = "httpHeader";
81
- const _s = "streaming";
82
- const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.kinesisvideoarchivedmedia";
81
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.kinesisvideoarchivedmedia";
82
+ const _st = "streaming";
83
83
  const n0 = "com.amazonaws.kinesisvideoarchivedmedia";
84
84
  import { TypeRegistry } from "@smithy/core/schema";
85
85
  import { ClientLimitExceededException, InvalidArgumentException, InvalidCodecPrivateDataException, InvalidMediaFrameException, MissingCodecPrivateDataException, NoDataRetentionException, NotAuthorizedException, ResourceNotFoundException, UnsupportedStreamMediaTypeException, } from "../models/errors";
86
86
  import { KinesisVideoArchivedMediaServiceException } from "../models/KinesisVideoArchivedMediaServiceException";
87
- var Payload = [0, n0, _P, { [_s]: 1 }, 42];
87
+ const _s_registry = TypeRegistry.for(_s);
88
+ export var KinesisVideoArchivedMediaServiceException$ = [-3, _s, "KinesisVideoArchivedMediaServiceException", 0, [], []];
89
+ _s_registry.registerError(KinesisVideoArchivedMediaServiceException$, KinesisVideoArchivedMediaServiceException);
90
+ const n0_registry = TypeRegistry.for(n0);
88
91
  export var ClientLimitExceededException$ = [-3, n0, _CLEE,
89
92
  { [_e]: _c, [_hE]: 400 },
90
93
  [_M],
91
94
  [0]
92
95
  ];
93
- TypeRegistry.for(n0).registerError(ClientLimitExceededException$, ClientLimitExceededException);
96
+ n0_registry.registerError(ClientLimitExceededException$, ClientLimitExceededException);
97
+ export var InvalidArgumentException$ = [-3, n0, _IAE,
98
+ { [_e]: _c, [_hE]: 400 },
99
+ [_M],
100
+ [0]
101
+ ];
102
+ n0_registry.registerError(InvalidArgumentException$, InvalidArgumentException);
103
+ export var InvalidCodecPrivateDataException$ = [-3, n0, _ICPDE,
104
+ { [_e]: _c, [_hE]: 400 },
105
+ [_M],
106
+ [0]
107
+ ];
108
+ n0_registry.registerError(InvalidCodecPrivateDataException$, InvalidCodecPrivateDataException);
109
+ export var InvalidMediaFrameException$ = [-3, n0, _IMFE,
110
+ { [_e]: _c, [_hE]: 400 },
111
+ [_M],
112
+ [0]
113
+ ];
114
+ n0_registry.registerError(InvalidMediaFrameException$, InvalidMediaFrameException);
115
+ export var MissingCodecPrivateDataException$ = [-3, n0, _MCPDE,
116
+ { [_e]: _c, [_hE]: 400 },
117
+ [_M],
118
+ [0]
119
+ ];
120
+ n0_registry.registerError(MissingCodecPrivateDataException$, MissingCodecPrivateDataException);
121
+ export var NoDataRetentionException$ = [-3, n0, _NDRE,
122
+ { [_e]: _c, [_hE]: 400 },
123
+ [_M],
124
+ [0]
125
+ ];
126
+ n0_registry.registerError(NoDataRetentionException$, NoDataRetentionException);
127
+ export var NotAuthorizedException$ = [-3, n0, _NAE,
128
+ { [_e]: _c, [_hE]: 401 },
129
+ [_M],
130
+ [0]
131
+ ];
132
+ n0_registry.registerError(NotAuthorizedException$, NotAuthorizedException);
133
+ export var ResourceNotFoundException$ = [-3, n0, _RNFE,
134
+ { [_e]: _c, [_hE]: 404 },
135
+ [_M],
136
+ [0]
137
+ ];
138
+ n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
139
+ export var UnsupportedStreamMediaTypeException$ = [-3, n0, _USMTE,
140
+ { [_e]: _c, [_hE]: 400 },
141
+ [_M],
142
+ [0]
143
+ ];
144
+ n0_registry.registerError(UnsupportedStreamMediaTypeException$, UnsupportedStreamMediaTypeException);
145
+ export const errorTypeRegistries = [
146
+ _s_registry,
147
+ n0_registry,
148
+ ];
149
+ var Payload = [0, n0, _P, { [_st]: 1 }, 42];
94
150
  export var ClipFragmentSelector$ = [3, n0, _CFS,
95
151
  0,
96
152
  [_FST, _TR],
@@ -186,24 +242,6 @@ export var Image$ = [3, n0, _Im,
186
242
  [_TS, _Er, _IC],
187
243
  [4, 0, 0]
188
244
  ];
189
- export var InvalidArgumentException$ = [-3, n0, _IAE,
190
- { [_e]: _c, [_hE]: 400 },
191
- [_M],
192
- [0]
193
- ];
194
- TypeRegistry.for(n0).registerError(InvalidArgumentException$, InvalidArgumentException);
195
- export var InvalidCodecPrivateDataException$ = [-3, n0, _ICPDE,
196
- { [_e]: _c, [_hE]: 400 },
197
- [_M],
198
- [0]
199
- ];
200
- TypeRegistry.for(n0).registerError(InvalidCodecPrivateDataException$, InvalidCodecPrivateDataException);
201
- export var InvalidMediaFrameException$ = [-3, n0, _IMFE,
202
- { [_e]: _c, [_hE]: 400 },
203
- [_M],
204
- [0]
205
- ];
206
- TypeRegistry.for(n0).registerError(InvalidMediaFrameException$, InvalidMediaFrameException);
207
245
  export var ListFragmentsInput$ = [3, n0, _LFI,
208
246
  0,
209
247
  [_SN, _SARN, _MR, _NT, _FS],
@@ -214,43 +252,11 @@ export var ListFragmentsOutput$ = [3, n0, _LFO,
214
252
  [_Fr, _NT],
215
253
  [() => FragmentList, 0]
216
254
  ];
217
- export var MissingCodecPrivateDataException$ = [-3, n0, _MCPDE,
218
- { [_e]: _c, [_hE]: 400 },
219
- [_M],
220
- [0]
221
- ];
222
- TypeRegistry.for(n0).registerError(MissingCodecPrivateDataException$, MissingCodecPrivateDataException);
223
- export var NoDataRetentionException$ = [-3, n0, _NDRE,
224
- { [_e]: _c, [_hE]: 400 },
225
- [_M],
226
- [0]
227
- ];
228
- TypeRegistry.for(n0).registerError(NoDataRetentionException$, NoDataRetentionException);
229
- export var NotAuthorizedException$ = [-3, n0, _NAE,
230
- { [_e]: _c, [_hE]: 401 },
231
- [_M],
232
- [0]
233
- ];
234
- TypeRegistry.for(n0).registerError(NotAuthorizedException$, NotAuthorizedException);
235
- export var ResourceNotFoundException$ = [-3, n0, _RNFE,
236
- { [_e]: _c, [_hE]: 404 },
237
- [_M],
238
- [0]
239
- ];
240
- TypeRegistry.for(n0).registerError(ResourceNotFoundException$, ResourceNotFoundException);
241
255
  export var TimestampRange$ = [3, n0, _TR,
242
256
  0,
243
257
  [_ST, _ET],
244
258
  [4, 4], 2
245
259
  ];
246
- export var UnsupportedStreamMediaTypeException$ = [-3, n0, _USMTE,
247
- { [_e]: _c, [_hE]: 400 },
248
- [_M],
249
- [0]
250
- ];
251
- TypeRegistry.for(n0).registerError(UnsupportedStreamMediaTypeException$, UnsupportedStreamMediaTypeException);
252
- export var KinesisVideoArchivedMediaServiceException$ = [-3, _sm, "KinesisVideoArchivedMediaServiceException", 0, [], []];
253
- TypeRegistry.for(_sm).registerError(KinesisVideoArchivedMediaServiceException$, KinesisVideoArchivedMediaServiceException);
254
260
  var FragmentList = [1, n0, _FL,
255
261
  0, () => Fragment$
256
262
  ];
@@ -1,5 +1,21 @@
1
+ import { TypeRegistry } from "@smithy/core/schema";
1
2
  import type { StaticErrorSchema, StaticOperationSchema, StaticStructureSchema } from "@smithy/types";
3
+ export declare var KinesisVideoArchivedMediaServiceException$: StaticErrorSchema;
2
4
  export declare var ClientLimitExceededException$: StaticErrorSchema;
5
+ export declare var InvalidArgumentException$: StaticErrorSchema;
6
+ export declare var InvalidCodecPrivateDataException$: StaticErrorSchema;
7
+ export declare var InvalidMediaFrameException$: StaticErrorSchema;
8
+ export declare var MissingCodecPrivateDataException$: StaticErrorSchema;
9
+ export declare var NoDataRetentionException$: StaticErrorSchema;
10
+ export declare var NotAuthorizedException$: StaticErrorSchema;
11
+ export declare var ResourceNotFoundException$: StaticErrorSchema;
12
+ export declare var UnsupportedStreamMediaTypeException$: StaticErrorSchema;
13
+ /**
14
+ * TypeRegistry instances containing modeled errors.
15
+ * @internal
16
+ *
17
+ */
18
+ export declare const errorTypeRegistries: TypeRegistry[];
3
19
  export declare var ClipFragmentSelector$: StaticStructureSchema;
4
20
  export declare var ClipTimestampRange$: StaticStructureSchema;
5
21
  export declare var DASHFragmentSelector$: StaticStructureSchema;
@@ -19,18 +35,9 @@ export declare var GetMediaForFragmentListOutput$: StaticStructureSchema;
19
35
  export declare var HLSFragmentSelector$: StaticStructureSchema;
20
36
  export declare var HLSTimestampRange$: StaticStructureSchema;
21
37
  export declare var Image$: StaticStructureSchema;
22
- export declare var InvalidArgumentException$: StaticErrorSchema;
23
- export declare var InvalidCodecPrivateDataException$: StaticErrorSchema;
24
- export declare var InvalidMediaFrameException$: StaticErrorSchema;
25
38
  export declare var ListFragmentsInput$: StaticStructureSchema;
26
39
  export declare var ListFragmentsOutput$: StaticStructureSchema;
27
- export declare var MissingCodecPrivateDataException$: StaticErrorSchema;
28
- export declare var NoDataRetentionException$: StaticErrorSchema;
29
- export declare var NotAuthorizedException$: StaticErrorSchema;
30
- export declare var ResourceNotFoundException$: StaticErrorSchema;
31
40
  export declare var TimestampRange$: StaticStructureSchema;
32
- export declare var UnsupportedStreamMediaTypeException$: StaticErrorSchema;
33
- export declare var KinesisVideoArchivedMediaServiceException$: StaticErrorSchema;
34
41
  export declare var GetClip$: StaticOperationSchema;
35
42
  export declare var GetDASHStreamingSessionURL$: StaticOperationSchema;
36
43
  export declare var GetHLSStreamingSessionURL$: StaticOperationSchema;
@@ -1,9 +1,20 @@
1
+ import { TypeRegistry } from "@smithy/core/schema";
1
2
  import {
2
3
  StaticErrorSchema,
3
4
  StaticOperationSchema,
4
5
  StaticStructureSchema,
5
6
  } from "@smithy/types";
7
+ export declare var KinesisVideoArchivedMediaServiceException$: StaticErrorSchema;
6
8
  export declare var ClientLimitExceededException$: StaticErrorSchema;
9
+ export declare var InvalidArgumentException$: StaticErrorSchema;
10
+ export declare var InvalidCodecPrivateDataException$: StaticErrorSchema;
11
+ export declare var InvalidMediaFrameException$: StaticErrorSchema;
12
+ export declare var MissingCodecPrivateDataException$: StaticErrorSchema;
13
+ export declare var NoDataRetentionException$: StaticErrorSchema;
14
+ export declare var NotAuthorizedException$: StaticErrorSchema;
15
+ export declare var ResourceNotFoundException$: StaticErrorSchema;
16
+ export declare var UnsupportedStreamMediaTypeException$: StaticErrorSchema;
17
+ export declare const errorTypeRegistries: TypeRegistry[];
7
18
  export declare var ClipFragmentSelector$: StaticStructureSchema;
8
19
  export declare var ClipTimestampRange$: StaticStructureSchema;
9
20
  export declare var DASHFragmentSelector$: StaticStructureSchema;
@@ -23,18 +34,9 @@ export declare var GetMediaForFragmentListOutput$: StaticStructureSchema;
23
34
  export declare var HLSFragmentSelector$: StaticStructureSchema;
24
35
  export declare var HLSTimestampRange$: StaticStructureSchema;
25
36
  export declare var Image$: StaticStructureSchema;
26
- export declare var InvalidArgumentException$: StaticErrorSchema;
27
- export declare var InvalidCodecPrivateDataException$: StaticErrorSchema;
28
- export declare var InvalidMediaFrameException$: StaticErrorSchema;
29
37
  export declare var ListFragmentsInput$: StaticStructureSchema;
30
38
  export declare var ListFragmentsOutput$: StaticStructureSchema;
31
- export declare var MissingCodecPrivateDataException$: StaticErrorSchema;
32
- export declare var NoDataRetentionException$: StaticErrorSchema;
33
- export declare var NotAuthorizedException$: StaticErrorSchema;
34
- export declare var ResourceNotFoundException$: StaticErrorSchema;
35
39
  export declare var TimestampRange$: StaticStructureSchema;
36
- export declare var UnsupportedStreamMediaTypeException$: StaticErrorSchema;
37
- export declare var KinesisVideoArchivedMediaServiceException$: StaticErrorSchema;
38
40
  export declare var GetClip$: StaticOperationSchema;
39
41
  export declare var GetDASHStreamingSessionURL$: StaticOperationSchema;
40
42
  export declare var GetHLSStreamingSessionURL$: StaticOperationSchema;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-kinesis-video-archived-media",
3
3
  "description": "AWS SDK for JavaScript Kinesis Video Archived Media Client for Node.js, Browser and React Native",
4
- "version": "3.986.0",
4
+ "version": "3.988.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-kinesis-video-archived-media",
@@ -21,42 +21,42 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "5.2.0",
23
23
  "@aws-crypto/sha256-js": "5.2.0",
24
- "@aws-sdk/core": "^3.973.7",
25
- "@aws-sdk/credential-provider-node": "^3.972.6",
24
+ "@aws-sdk/core": "^3.973.8",
25
+ "@aws-sdk/credential-provider-node": "^3.972.7",
26
26
  "@aws-sdk/middleware-host-header": "^3.972.3",
27
27
  "@aws-sdk/middleware-logger": "^3.972.3",
28
28
  "@aws-sdk/middleware-recursion-detection": "^3.972.3",
29
- "@aws-sdk/middleware-user-agent": "^3.972.7",
29
+ "@aws-sdk/middleware-user-agent": "^3.972.8",
30
30
  "@aws-sdk/region-config-resolver": "^3.972.3",
31
31
  "@aws-sdk/types": "^3.973.1",
32
- "@aws-sdk/util-endpoints": "3.986.0",
32
+ "@aws-sdk/util-endpoints": "3.988.0",
33
33
  "@aws-sdk/util-user-agent-browser": "^3.972.3",
34
- "@aws-sdk/util-user-agent-node": "^3.972.5",
34
+ "@aws-sdk/util-user-agent-node": "^3.972.6",
35
35
  "@smithy/config-resolver": "^4.4.6",
36
- "@smithy/core": "^3.22.1",
36
+ "@smithy/core": "^3.23.0",
37
37
  "@smithy/fetch-http-handler": "^5.3.9",
38
38
  "@smithy/hash-node": "^4.2.8",
39
39
  "@smithy/invalid-dependency": "^4.2.8",
40
40
  "@smithy/middleware-content-length": "^4.2.8",
41
- "@smithy/middleware-endpoint": "^4.4.13",
42
- "@smithy/middleware-retry": "^4.4.30",
41
+ "@smithy/middleware-endpoint": "^4.4.14",
42
+ "@smithy/middleware-retry": "^4.4.31",
43
43
  "@smithy/middleware-serde": "^4.2.9",
44
44
  "@smithy/middleware-stack": "^4.2.8",
45
45
  "@smithy/node-config-provider": "^4.3.8",
46
- "@smithy/node-http-handler": "^4.4.9",
46
+ "@smithy/node-http-handler": "^4.4.10",
47
47
  "@smithy/protocol-http": "^5.3.8",
48
- "@smithy/smithy-client": "^4.11.2",
48
+ "@smithy/smithy-client": "^4.11.3",
49
49
  "@smithy/types": "^4.12.0",
50
50
  "@smithy/url-parser": "^4.2.8",
51
51
  "@smithy/util-base64": "^4.3.0",
52
52
  "@smithy/util-body-length-browser": "^4.2.0",
53
53
  "@smithy/util-body-length-node": "^4.2.1",
54
- "@smithy/util-defaults-mode-browser": "^4.3.29",
55
- "@smithy/util-defaults-mode-node": "^4.2.32",
54
+ "@smithy/util-defaults-mode-browser": "^4.3.30",
55
+ "@smithy/util-defaults-mode-node": "^4.2.33",
56
56
  "@smithy/util-endpoints": "^3.2.8",
57
57
  "@smithy/util-middleware": "^4.2.8",
58
58
  "@smithy/util-retry": "^4.2.8",
59
- "@smithy/util-stream": "^4.5.11",
59
+ "@smithy/util-stream": "^4.5.12",
60
60
  "@smithy/util-utf8": "^4.2.0",
61
61
  "tslib": "^2.6.2"
62
62
  },