@aws-sdk/client-kinesis-video-archived-media 3.1075.0 → 3.1077.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
@@ -1,21 +1,58 @@
1
- var __exportStar = (m, e) => { Object.assign(e, m); };
2
- const { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
1
+ const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
3
2
  const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");
4
- const { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
3
+ const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
5
4
  exports.$Command = Command;
6
5
  exports.__Client = Client;
7
- const { resolveRegionConfig } = require("@smithy/core/config");
8
- const { resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
9
- const { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
10
- const { resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
11
- const { getSchemaSerdePlugin } = require("@smithy/core/schema");
12
- const { resolveHttpAuthSchemeConfig, defaultKinesisVideoArchivedMediaHttpAuthSchemeParametersProvider } = require("./auth/httpAuthSchemeProvider");
13
- const { getRuntimeConfig } = require("./runtimeConfig");
14
- const { GetClip$, GetDASHStreamingSessionURL$, GetHLSStreamingSessionURL$, GetImages$, GetMediaForFragmentList$, ListFragments$ } = require("./schemas/schemas_0");
15
- __exportStar(require("./schemas/schemas_0"), exports);
16
- __exportStar(require("./models/errors"), exports);
17
- const { KinesisVideoArchivedMediaServiceException } = require("./models/KinesisVideoArchivedMediaServiceException");
18
- exports.KinesisVideoArchivedMediaServiceException = KinesisVideoArchivedMediaServiceException;
6
+ const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require("@smithy/core/config");
7
+ const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
8
+ const { parseUrl, getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
9
+ const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
10
+ const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");
11
+ const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
12
+ const { defaultProvider } = require("@aws-sdk/credential-provider-node");
13
+ const { toUtf8, fromUtf8, sdkStreamMixin, toBase64, fromBase64, calculateBodyLength } = require("@smithy/core/serde");
14
+ const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");
15
+ const { AwsRestJsonProtocol } = require("@aws-sdk/core/protocols");
16
+ const { Sha256 } = require("@smithy/core/checksum");
17
+
18
+ const defaultKinesisVideoArchivedMediaHttpAuthSchemeParametersProvider = async (config, context, input) => {
19
+ return {
20
+ operation: getSmithyContext(context).operation,
21
+ region: await normalizeProvider(config.region)() || (() => {
22
+ throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
23
+ })(),
24
+ };
25
+ };
26
+ function createAwsAuthSigv4HttpAuthOption(authParameters) {
27
+ return {
28
+ schemeId: "aws.auth#sigv4",
29
+ signingProperties: {
30
+ name: "kinesisvideo",
31
+ region: authParameters.region,
32
+ },
33
+ propertiesExtractor: (config, context) => ({
34
+ signingProperties: {
35
+ config,
36
+ context,
37
+ },
38
+ }),
39
+ };
40
+ }
41
+ const defaultKinesisVideoArchivedMediaHttpAuthSchemeProvider = (authParameters) => {
42
+ const options = [];
43
+ switch (authParameters.operation) {
44
+ default: {
45
+ options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
46
+ }
47
+ }
48
+ return options;
49
+ };
50
+ const resolveHttpAuthSchemeConfig = (config) => {
51
+ const config_0 = resolveAwsSdkSigV4Config(config);
52
+ return Object.assign(config_0, {
53
+ authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
54
+ });
55
+ };
19
56
 
20
57
  const resolveClientEndpointParameters = (options) => {
21
58
  return Object.assign(options, {
@@ -31,6 +68,550 @@ const commonParams = {
31
68
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
32
69
  };
33
70
 
71
+ var version = "3.1076.0";
72
+ var packageInfo = {
73
+ version: version};
74
+
75
+ const k = "ref";
76
+ const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = { [k]: "Endpoint" }, h = { [k]: d }, i = {}, j = [{ [k]: "Region" }];
77
+ const _data = {
78
+ conditions: [
79
+ [c, [g]],
80
+ [c, j],
81
+ ["aws.partition", j, d],
82
+ [e, [{ [k]: "UseFIPS" }, b]],
83
+ [e, [{ [k]: "UseDualStack" }, b]],
84
+ [e, [{ fn: f, argv: [h, "supportsDualStack"] }, b]],
85
+ [e, [{ fn: f, argv: [h, "supportsFIPS"] }, b]]
86
+ ],
87
+ results: [
88
+ [a],
89
+ [a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
90
+ [a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
91
+ [g, i],
92
+ ["https://kinesisvideo-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
93
+ [a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
94
+ ["https://kinesisvideo-fips.{Region}.{PartitionResult#dnsSuffix}", i],
95
+ [a, "FIPS is enabled but this partition does not support FIPS"],
96
+ ["https://kinesisvideo.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
97
+ [a, "DualStack is enabled but this partition does not support DualStack"],
98
+ ["https://kinesisvideo.{Region}.{PartitionResult#dnsSuffix}", i],
99
+ [a, "Invalid Configuration: Missing Region"]
100
+ ]
101
+ };
102
+ const root = 2;
103
+ const r = 100_000_000;
104
+ const nodes = new Int32Array([
105
+ -1, 1, -1,
106
+ 0, 12, 3,
107
+ 1, 4, r + 11,
108
+ 2, 5, r + 11,
109
+ 3, 8, 6,
110
+ 4, 7, r + 10,
111
+ 5, r + 8, r + 9,
112
+ 4, 10, 9,
113
+ 6, r + 6, r + 7,
114
+ 5, 11, r + 5,
115
+ 6, r + 4, r + 5,
116
+ 3, r + 1, 13,
117
+ 4, r + 2, r + 3,
118
+ ]);
119
+ const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
120
+
121
+ const cache = new EndpointCache({
122
+ size: 50,
123
+ params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
124
+ });
125
+ const defaultEndpointResolver = (endpointParams, context = {}) => {
126
+ return cache.get(endpointParams, () => decideEndpoint(bdd, {
127
+ endpointParams: endpointParams,
128
+ logger: context.logger,
129
+ }));
130
+ };
131
+ customEndpointFunctions.aws = awsEndpointFunctions;
132
+
133
+ class KinesisVideoArchivedMediaServiceException extends ServiceException {
134
+ constructor(options) {
135
+ super(options);
136
+ Object.setPrototypeOf(this, KinesisVideoArchivedMediaServiceException.prototype);
137
+ }
138
+ }
139
+
140
+ class ClientLimitExceededException extends KinesisVideoArchivedMediaServiceException {
141
+ name = "ClientLimitExceededException";
142
+ $fault = "client";
143
+ Message;
144
+ constructor(opts) {
145
+ super({
146
+ name: "ClientLimitExceededException",
147
+ $fault: "client",
148
+ ...opts,
149
+ });
150
+ Object.setPrototypeOf(this, ClientLimitExceededException.prototype);
151
+ this.Message = opts.Message;
152
+ }
153
+ }
154
+ class InvalidArgumentException extends KinesisVideoArchivedMediaServiceException {
155
+ name = "InvalidArgumentException";
156
+ $fault = "client";
157
+ Message;
158
+ constructor(opts) {
159
+ super({
160
+ name: "InvalidArgumentException",
161
+ $fault: "client",
162
+ ...opts,
163
+ });
164
+ Object.setPrototypeOf(this, InvalidArgumentException.prototype);
165
+ this.Message = opts.Message;
166
+ }
167
+ }
168
+ class InvalidCodecPrivateDataException extends KinesisVideoArchivedMediaServiceException {
169
+ name = "InvalidCodecPrivateDataException";
170
+ $fault = "client";
171
+ Message;
172
+ constructor(opts) {
173
+ super({
174
+ name: "InvalidCodecPrivateDataException",
175
+ $fault: "client",
176
+ ...opts,
177
+ });
178
+ Object.setPrototypeOf(this, InvalidCodecPrivateDataException.prototype);
179
+ this.Message = opts.Message;
180
+ }
181
+ }
182
+ class InvalidMediaFrameException extends KinesisVideoArchivedMediaServiceException {
183
+ name = "InvalidMediaFrameException";
184
+ $fault = "client";
185
+ Message;
186
+ constructor(opts) {
187
+ super({
188
+ name: "InvalidMediaFrameException",
189
+ $fault: "client",
190
+ ...opts,
191
+ });
192
+ Object.setPrototypeOf(this, InvalidMediaFrameException.prototype);
193
+ this.Message = opts.Message;
194
+ }
195
+ }
196
+ class MissingCodecPrivateDataException extends KinesisVideoArchivedMediaServiceException {
197
+ name = "MissingCodecPrivateDataException";
198
+ $fault = "client";
199
+ Message;
200
+ constructor(opts) {
201
+ super({
202
+ name: "MissingCodecPrivateDataException",
203
+ $fault: "client",
204
+ ...opts,
205
+ });
206
+ Object.setPrototypeOf(this, MissingCodecPrivateDataException.prototype);
207
+ this.Message = opts.Message;
208
+ }
209
+ }
210
+ class NoDataRetentionException extends KinesisVideoArchivedMediaServiceException {
211
+ name = "NoDataRetentionException";
212
+ $fault = "client";
213
+ Message;
214
+ constructor(opts) {
215
+ super({
216
+ name: "NoDataRetentionException",
217
+ $fault: "client",
218
+ ...opts,
219
+ });
220
+ Object.setPrototypeOf(this, NoDataRetentionException.prototype);
221
+ this.Message = opts.Message;
222
+ }
223
+ }
224
+ class NotAuthorizedException extends KinesisVideoArchivedMediaServiceException {
225
+ name = "NotAuthorizedException";
226
+ $fault = "client";
227
+ Message;
228
+ constructor(opts) {
229
+ super({
230
+ name: "NotAuthorizedException",
231
+ $fault: "client",
232
+ ...opts,
233
+ });
234
+ Object.setPrototypeOf(this, NotAuthorizedException.prototype);
235
+ this.Message = opts.Message;
236
+ }
237
+ }
238
+ class ResourceNotFoundException extends KinesisVideoArchivedMediaServiceException {
239
+ name = "ResourceNotFoundException";
240
+ $fault = "client";
241
+ Message;
242
+ constructor(opts) {
243
+ super({
244
+ name: "ResourceNotFoundException",
245
+ $fault: "client",
246
+ ...opts,
247
+ });
248
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
249
+ this.Message = opts.Message;
250
+ }
251
+ }
252
+ class UnsupportedStreamMediaTypeException extends KinesisVideoArchivedMediaServiceException {
253
+ name = "UnsupportedStreamMediaTypeException";
254
+ $fault = "client";
255
+ Message;
256
+ constructor(opts) {
257
+ super({
258
+ name: "UnsupportedStreamMediaTypeException",
259
+ $fault: "client",
260
+ ...opts,
261
+ });
262
+ Object.setPrototypeOf(this, UnsupportedStreamMediaTypeException.prototype);
263
+ this.Message = opts.Message;
264
+ }
265
+ }
266
+
267
+ const _CF = "ContainerFormat";
268
+ const _CFS = "ClipFragmentSelector";
269
+ const _CLEE = "ClientLimitExceededException";
270
+ const _CT = "ContentType";
271
+ const _CTR = "ClipTimestampRange";
272
+ const _CT_ = "Content-Type";
273
+ const _DASHFS = "DASHFragmentSelector";
274
+ const _DASHSSURL = "DASHStreamingSessionURL";
275
+ const _DASHTR = "DASHTimestampRange";
276
+ const _DFN = "DisplayFragmentNumber";
277
+ const _DFT = "DisplayFragmentTimestamp";
278
+ const _DM = "DiscontinuityMode";
279
+ const _E = "Expires";
280
+ const _ET = "EndTimestamp";
281
+ const _Er = "Error";
282
+ const _F = "Fragment";
283
+ const _FC = "FormatConfig";
284
+ const _FL = "FragmentList";
285
+ const _FLIM = "FragmentLengthInMilliseconds";
286
+ const _FN = "FragmentNumber";
287
+ const _FS = "FragmentSelector";
288
+ const _FSIB = "FragmentSizeInBytes";
289
+ const _FST = "FragmentSelectorType";
290
+ const _Fo = "Format";
291
+ const _Fr = "Fragments";
292
+ const _GC = "GetClip";
293
+ const _GCI = "GetClipInput";
294
+ const _GCO = "GetClipOutput";
295
+ const _GDASHSSURL = "GetDASHStreamingSessionURL";
296
+ const _GDASHSSURLI = "GetDASHStreamingSessionURLInput";
297
+ const _GDASHSSURLO = "GetDASHStreamingSessionURLOutput";
298
+ const _GHLSSSURL = "GetHLSStreamingSessionURL";
299
+ const _GHLSSSURLI = "GetHLSStreamingSessionURLInput";
300
+ const _GHLSSSURLO = "GetHLSStreamingSessionURLOutput";
301
+ const _GI = "GetImages";
302
+ const _GII = "GetImagesInput";
303
+ const _GIO = "GetImagesOutput";
304
+ const _GMFFL = "GetMediaForFragmentList";
305
+ const _GMFFLI = "GetMediaForFragmentListInput";
306
+ const _GMFFLO = "GetMediaForFragmentListOutput";
307
+ const _HLSFS = "HLSFragmentSelector";
308
+ const _HLSSSURL = "HLSStreamingSessionURL";
309
+ const _HLSTR = "HLSTimestampRange";
310
+ const _HP = "HeightPixels";
311
+ const _I = "Images";
312
+ const _IAE = "InvalidArgumentException";
313
+ const _IC = "ImageContent";
314
+ const _ICPDE = "InvalidCodecPrivateDataException";
315
+ const _IMFE = "InvalidMediaFrameException";
316
+ const _IST = "ImageSelectorType";
317
+ const _Im = "Image";
318
+ const _LF = "ListFragments";
319
+ const _LFI = "ListFragmentsInput";
320
+ const _LFO = "ListFragmentsOutput";
321
+ const _M = "Message";
322
+ const _MCPDE = "MissingCodecPrivateDataException";
323
+ const _MMFR = "MaxManifestFragmentResults";
324
+ const _MMPFR = "MaxMediaPlaylistFragmentResults";
325
+ const _MR = "MaxResults";
326
+ const _NAE = "NotAuthorizedException";
327
+ const _NDRE = "NoDataRetentionException";
328
+ const _NT = "NextToken";
329
+ const _P = "Payload";
330
+ const _PM = "PlaybackMode";
331
+ const _PT = "ProducerTimestamp";
332
+ const _RNFE = "ResourceNotFoundException";
333
+ const _SARN = "StreamARN";
334
+ const _SI = "SamplingInterval";
335
+ const _SN = "StreamName";
336
+ const _ST = "StartTimestamp";
337
+ const _STe = "ServerTimestamp";
338
+ const _TR = "TimestampRange";
339
+ const _TS = "TimeStamp";
340
+ const _USMTE = "UnsupportedStreamMediaTypeException";
341
+ const _WP = "WidthPixels";
342
+ const _c = "client";
343
+ const _e = "error";
344
+ const _h = "http";
345
+ const _hE = "httpError";
346
+ const _hH = "httpHeader";
347
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.kinesisvideoarchivedmedia";
348
+ const _st = "streaming";
349
+ const n0 = "com.amazonaws.kinesisvideoarchivedmedia";
350
+ const _s_registry = TypeRegistry.for(_s);
351
+ var KinesisVideoArchivedMediaServiceException$ = [-3, _s, "KinesisVideoArchivedMediaServiceException", 0, [], []];
352
+ _s_registry.registerError(KinesisVideoArchivedMediaServiceException$, KinesisVideoArchivedMediaServiceException);
353
+ const n0_registry = TypeRegistry.for(n0);
354
+ var ClientLimitExceededException$ = [-3, n0, _CLEE,
355
+ { [_e]: _c, [_hE]: 400 },
356
+ [_M],
357
+ [0]
358
+ ];
359
+ n0_registry.registerError(ClientLimitExceededException$, ClientLimitExceededException);
360
+ var InvalidArgumentException$ = [-3, n0, _IAE,
361
+ { [_e]: _c, [_hE]: 400 },
362
+ [_M],
363
+ [0]
364
+ ];
365
+ n0_registry.registerError(InvalidArgumentException$, InvalidArgumentException);
366
+ var InvalidCodecPrivateDataException$ = [-3, n0, _ICPDE,
367
+ { [_e]: _c, [_hE]: 400 },
368
+ [_M],
369
+ [0]
370
+ ];
371
+ n0_registry.registerError(InvalidCodecPrivateDataException$, InvalidCodecPrivateDataException);
372
+ var InvalidMediaFrameException$ = [-3, n0, _IMFE,
373
+ { [_e]: _c, [_hE]: 400 },
374
+ [_M],
375
+ [0]
376
+ ];
377
+ n0_registry.registerError(InvalidMediaFrameException$, InvalidMediaFrameException);
378
+ var MissingCodecPrivateDataException$ = [-3, n0, _MCPDE,
379
+ { [_e]: _c, [_hE]: 400 },
380
+ [_M],
381
+ [0]
382
+ ];
383
+ n0_registry.registerError(MissingCodecPrivateDataException$, MissingCodecPrivateDataException);
384
+ var NoDataRetentionException$ = [-3, n0, _NDRE,
385
+ { [_e]: _c, [_hE]: 400 },
386
+ [_M],
387
+ [0]
388
+ ];
389
+ n0_registry.registerError(NoDataRetentionException$, NoDataRetentionException);
390
+ var NotAuthorizedException$ = [-3, n0, _NAE,
391
+ { [_e]: _c, [_hE]: 401 },
392
+ [_M],
393
+ [0]
394
+ ];
395
+ n0_registry.registerError(NotAuthorizedException$, NotAuthorizedException);
396
+ var ResourceNotFoundException$ = [-3, n0, _RNFE,
397
+ { [_e]: _c, [_hE]: 404 },
398
+ [_M],
399
+ [0]
400
+ ];
401
+ n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
402
+ var UnsupportedStreamMediaTypeException$ = [-3, n0, _USMTE,
403
+ { [_e]: _c, [_hE]: 400 },
404
+ [_M],
405
+ [0]
406
+ ];
407
+ n0_registry.registerError(UnsupportedStreamMediaTypeException$, UnsupportedStreamMediaTypeException);
408
+ const errorTypeRegistries = [
409
+ _s_registry,
410
+ n0_registry,
411
+ ];
412
+ var Payload = [0, n0, _P, { [_st]: 1 }, 42];
413
+ var ClipFragmentSelector$ = [3, n0, _CFS,
414
+ 0,
415
+ [_FST, _TR],
416
+ [0, () => ClipTimestampRange$], 2
417
+ ];
418
+ var ClipTimestampRange$ = [3, n0, _CTR,
419
+ 0,
420
+ [_ST, _ET],
421
+ [4, 4], 2
422
+ ];
423
+ var DASHFragmentSelector$ = [3, n0, _DASHFS,
424
+ 0,
425
+ [_FST, _TR],
426
+ [0, () => DASHTimestampRange$]
427
+ ];
428
+ var DASHTimestampRange$ = [3, n0, _DASHTR,
429
+ 0,
430
+ [_ST, _ET],
431
+ [4, 4]
432
+ ];
433
+ var Fragment$ = [3, n0, _F,
434
+ 0,
435
+ [_FN, _FSIB, _PT, _STe, _FLIM],
436
+ [0, 1, 4, 4, 1]
437
+ ];
438
+ var FragmentSelector$ = [3, n0, _FS,
439
+ 0,
440
+ [_FST, _TR],
441
+ [0, () => TimestampRange$], 2
442
+ ];
443
+ var GetClipInput$ = [3, n0, _GCI,
444
+ 0,
445
+ [_CFS, _SN, _SARN],
446
+ [() => ClipFragmentSelector$, 0, 0], 1
447
+ ];
448
+ var GetClipOutput$ = [3, n0, _GCO,
449
+ 0,
450
+ [_CT, _P],
451
+ [[0, { [_hH]: _CT_ }], [() => Payload, 16]]
452
+ ];
453
+ var GetDASHStreamingSessionURLInput$ = [3, n0, _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,
459
+ 0,
460
+ [_DASHSSURL],
461
+ [0]
462
+ ];
463
+ var GetHLSStreamingSessionURLInput$ = [3, n0, _GHLSSSURLI,
464
+ 0,
465
+ [_SN, _SARN, _PM, _HLSFS, _CF, _DM, _DFT, _E, _MMPFR],
466
+ [0, 0, 0, () => HLSFragmentSelector$, 0, 0, 0, 1, 1]
467
+ ];
468
+ var GetHLSStreamingSessionURLOutput$ = [3, n0, _GHLSSSURLO,
469
+ 0,
470
+ [_HLSSSURL],
471
+ [0]
472
+ ];
473
+ var GetImagesInput$ = [3, n0, _GII,
474
+ 0,
475
+ [_IST, _ST, _ET, _Fo, _SN, _SARN, _SI, _FC, _WP, _HP, _MR, _NT],
476
+ [0, 4, 4, 0, 0, 0, 1, 128 | 0, 1, 1, 1, 0], 4
477
+ ];
478
+ var GetImagesOutput$ = [3, n0, _GIO,
479
+ 0,
480
+ [_I, _NT],
481
+ [() => Images, 0]
482
+ ];
483
+ var GetMediaForFragmentListInput$ = [3, n0, _GMFFLI,
484
+ 0,
485
+ [_Fr, _SN, _SARN],
486
+ [64 | 0, 0, 0], 1
487
+ ];
488
+ var GetMediaForFragmentListOutput$ = [3, n0, _GMFFLO,
489
+ 0,
490
+ [_CT, _P],
491
+ [[0, { [_hH]: _CT_ }], [() => Payload, 16]]
492
+ ];
493
+ var HLSFragmentSelector$ = [3, n0, _HLSFS,
494
+ 0,
495
+ [_FST, _TR],
496
+ [0, () => HLSTimestampRange$]
497
+ ];
498
+ var HLSTimestampRange$ = [3, n0, _HLSTR,
499
+ 0,
500
+ [_ST, _ET],
501
+ [4, 4]
502
+ ];
503
+ var Image$ = [3, n0, _Im,
504
+ 0,
505
+ [_TS, _Er, _IC],
506
+ [4, 0, 0]
507
+ ];
508
+ var ListFragmentsInput$ = [3, n0, _LFI,
509
+ 0,
510
+ [_SN, _SARN, _MR, _NT, _FS],
511
+ [0, 0, 1, 0, () => FragmentSelector$]
512
+ ];
513
+ var ListFragmentsOutput$ = [3, n0, _LFO,
514
+ 0,
515
+ [_Fr, _NT],
516
+ [() => FragmentList, 0]
517
+ ];
518
+ var TimestampRange$ = [3, n0, _TR,
519
+ 0,
520
+ [_ST, _ET],
521
+ [4, 4], 2
522
+ ];
523
+ var FragmentList = [1, n0, _FL,
524
+ 0, () => Fragment$
525
+ ];
526
+ var Images = [1, n0, _I,
527
+ 0, () => Image$
528
+ ];
529
+ var GetClip$ = [9, n0, _GC,
530
+ { [_h]: ["POST", "/getClip", 200] }, () => GetClipInput$, () => GetClipOutput$
531
+ ];
532
+ var GetDASHStreamingSessionURL$ = [9, n0, _GDASHSSURL,
533
+ { [_h]: ["POST", "/getDASHStreamingSessionURL", 200] }, () => GetDASHStreamingSessionURLInput$, () => GetDASHStreamingSessionURLOutput$
534
+ ];
535
+ var GetHLSStreamingSessionURL$ = [9, n0, _GHLSSSURL,
536
+ { [_h]: ["POST", "/getHLSStreamingSessionURL", 200] }, () => GetHLSStreamingSessionURLInput$, () => GetHLSStreamingSessionURLOutput$
537
+ ];
538
+ var GetImages$ = [9, n0, _GI,
539
+ { [_h]: ["POST", "/getImages", 200] }, () => GetImagesInput$, () => GetImagesOutput$
540
+ ];
541
+ var GetMediaForFragmentList$ = [9, n0, _GMFFL,
542
+ { [_h]: ["POST", "/getMediaForFragmentList", 200] }, () => GetMediaForFragmentListInput$, () => GetMediaForFragmentListOutput$
543
+ ];
544
+ var ListFragments$ = [9, n0, _LF,
545
+ { [_h]: ["POST", "/listFragments", 200] }, () => ListFragmentsInput$, () => ListFragmentsOutput$
546
+ ];
547
+
548
+ const getRuntimeConfig$1 = (config) => {
549
+ return {
550
+ apiVersion: "2017-09-30",
551
+ base64Decoder: config?.base64Decoder ?? fromBase64,
552
+ base64Encoder: config?.base64Encoder ?? toBase64,
553
+ disableHostPrefix: config?.disableHostPrefix ?? false,
554
+ endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
555
+ extensions: config?.extensions ?? [],
556
+ httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultKinesisVideoArchivedMediaHttpAuthSchemeProvider,
557
+ httpAuthSchemes: config?.httpAuthSchemes ?? [
558
+ {
559
+ schemeId: "aws.auth#sigv4",
560
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
561
+ signer: new AwsSdkSigV4Signer(),
562
+ },
563
+ ],
564
+ logger: config?.logger ?? new NoOpLogger(),
565
+ protocol: config?.protocol ?? AwsRestJsonProtocol,
566
+ protocolSettings: config?.protocolSettings ?? {
567
+ defaultNamespace: "com.amazonaws.kinesisvideoarchivedmedia",
568
+ errorTypeRegistries,
569
+ version: "2017-09-30",
570
+ serviceTarget: "AWSAcuityReader",
571
+ },
572
+ sdkStreamMixin: config?.sdkStreamMixin ?? sdkStreamMixin,
573
+ serviceId: config?.serviceId ?? "Kinesis Video Archived Media",
574
+ sha256: config?.sha256 ?? Sha256,
575
+ urlParser: config?.urlParser ?? parseUrl,
576
+ utf8Decoder: config?.utf8Decoder ?? fromUtf8,
577
+ utf8Encoder: config?.utf8Encoder ?? toUtf8,
578
+ };
579
+ };
580
+
581
+ const getRuntimeConfig = (config) => {
582
+ emitWarningIfUnsupportedVersion(process.version);
583
+ const defaultsMode = resolveDefaultsModeConfig(config);
584
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
585
+ const clientSharedValues = getRuntimeConfig$1(config);
586
+ emitWarningIfUnsupportedVersion$1(process.version);
587
+ const loaderConfig = {
588
+ profile: config?.profile,
589
+ logger: clientSharedValues.logger,
590
+ };
591
+ return {
592
+ ...clientSharedValues,
593
+ ...config,
594
+ runtime: "node",
595
+ defaultsMode,
596
+ authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
597
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
598
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? defaultProvider,
599
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
600
+ maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
601
+ region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
602
+ requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
603
+ retryMode: config?.retryMode ??
604
+ loadConfig({
605
+ ...NODE_RETRY_MODE_CONFIG_OPTIONS,
606
+ default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
607
+ }, config),
608
+ streamCollector: config?.streamCollector ?? streamCollector,
609
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
610
+ useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
611
+ userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
612
+ };
613
+ };
614
+
34
615
  const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
35
616
  const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
36
617
  let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
@@ -266,28 +847,77 @@ const FragmentSelectorType = {
266
847
  SERVER_TIMESTAMP: "SERVER_TIMESTAMP",
267
848
  };
268
849
 
850
+ exports.ClientLimitExceededException = ClientLimitExceededException;
851
+ exports.ClientLimitExceededException$ = ClientLimitExceededException$;
852
+ exports.ClipFragmentSelector$ = ClipFragmentSelector$;
269
853
  exports.ClipFragmentSelectorType = ClipFragmentSelectorType;
854
+ exports.ClipTimestampRange$ = ClipTimestampRange$;
270
855
  exports.ContainerFormat = ContainerFormat;
271
856
  exports.DASHDisplayFragmentNumber = DASHDisplayFragmentNumber;
272
857
  exports.DASHDisplayFragmentTimestamp = DASHDisplayFragmentTimestamp;
858
+ exports.DASHFragmentSelector$ = DASHFragmentSelector$;
273
859
  exports.DASHFragmentSelectorType = DASHFragmentSelectorType;
274
860
  exports.DASHPlaybackMode = DASHPlaybackMode;
861
+ exports.DASHTimestampRange$ = DASHTimestampRange$;
275
862
  exports.Format = Format;
276
863
  exports.FormatConfigKey = FormatConfigKey;
864
+ exports.Fragment$ = Fragment$;
865
+ exports.FragmentSelector$ = FragmentSelector$;
277
866
  exports.FragmentSelectorType = FragmentSelectorType;
867
+ exports.GetClip$ = GetClip$;
278
868
  exports.GetClipCommand = GetClipCommand;
869
+ exports.GetClipInput$ = GetClipInput$;
870
+ exports.GetClipOutput$ = GetClipOutput$;
871
+ exports.GetDASHStreamingSessionURL$ = GetDASHStreamingSessionURL$;
279
872
  exports.GetDASHStreamingSessionURLCommand = GetDASHStreamingSessionURLCommand;
873
+ exports.GetDASHStreamingSessionURLInput$ = GetDASHStreamingSessionURLInput$;
874
+ exports.GetDASHStreamingSessionURLOutput$ = GetDASHStreamingSessionURLOutput$;
875
+ exports.GetHLSStreamingSessionURL$ = GetHLSStreamingSessionURL$;
280
876
  exports.GetHLSStreamingSessionURLCommand = GetHLSStreamingSessionURLCommand;
877
+ exports.GetHLSStreamingSessionURLInput$ = GetHLSStreamingSessionURLInput$;
878
+ exports.GetHLSStreamingSessionURLOutput$ = GetHLSStreamingSessionURLOutput$;
879
+ exports.GetImages$ = GetImages$;
281
880
  exports.GetImagesCommand = GetImagesCommand;
881
+ exports.GetImagesInput$ = GetImagesInput$;
882
+ exports.GetImagesOutput$ = GetImagesOutput$;
883
+ exports.GetMediaForFragmentList$ = GetMediaForFragmentList$;
282
884
  exports.GetMediaForFragmentListCommand = GetMediaForFragmentListCommand;
885
+ exports.GetMediaForFragmentListInput$ = GetMediaForFragmentListInput$;
886
+ exports.GetMediaForFragmentListOutput$ = GetMediaForFragmentListOutput$;
283
887
  exports.HLSDiscontinuityMode = HLSDiscontinuityMode;
284
888
  exports.HLSDisplayFragmentTimestamp = HLSDisplayFragmentTimestamp;
889
+ exports.HLSFragmentSelector$ = HLSFragmentSelector$;
285
890
  exports.HLSFragmentSelectorType = HLSFragmentSelectorType;
286
891
  exports.HLSPlaybackMode = HLSPlaybackMode;
892
+ exports.HLSTimestampRange$ = HLSTimestampRange$;
893
+ exports.Image$ = Image$;
287
894
  exports.ImageError = ImageError;
288
895
  exports.ImageSelectorType = ImageSelectorType;
896
+ exports.InvalidArgumentException = InvalidArgumentException;
897
+ exports.InvalidArgumentException$ = InvalidArgumentException$;
898
+ exports.InvalidCodecPrivateDataException = InvalidCodecPrivateDataException;
899
+ exports.InvalidCodecPrivateDataException$ = InvalidCodecPrivateDataException$;
900
+ exports.InvalidMediaFrameException = InvalidMediaFrameException;
901
+ exports.InvalidMediaFrameException$ = InvalidMediaFrameException$;
289
902
  exports.KinesisVideoArchivedMedia = KinesisVideoArchivedMedia;
290
903
  exports.KinesisVideoArchivedMediaClient = KinesisVideoArchivedMediaClient;
904
+ exports.KinesisVideoArchivedMediaServiceException = KinesisVideoArchivedMediaServiceException;
905
+ exports.KinesisVideoArchivedMediaServiceException$ = KinesisVideoArchivedMediaServiceException$;
906
+ exports.ListFragments$ = ListFragments$;
291
907
  exports.ListFragmentsCommand = ListFragmentsCommand;
908
+ exports.ListFragmentsInput$ = ListFragmentsInput$;
909
+ exports.ListFragmentsOutput$ = ListFragmentsOutput$;
910
+ exports.MissingCodecPrivateDataException = MissingCodecPrivateDataException;
911
+ exports.MissingCodecPrivateDataException$ = MissingCodecPrivateDataException$;
912
+ exports.NoDataRetentionException = NoDataRetentionException;
913
+ exports.NoDataRetentionException$ = NoDataRetentionException$;
914
+ exports.NotAuthorizedException = NotAuthorizedException;
915
+ exports.NotAuthorizedException$ = NotAuthorizedException$;
916
+ exports.ResourceNotFoundException = ResourceNotFoundException;
917
+ exports.ResourceNotFoundException$ = ResourceNotFoundException$;
918
+ exports.TimestampRange$ = TimestampRange$;
919
+ exports.UnsupportedStreamMediaTypeException = UnsupportedStreamMediaTypeException;
920
+ exports.UnsupportedStreamMediaTypeException$ = UnsupportedStreamMediaTypeException$;
921
+ exports.errorTypeRegistries = errorTypeRegistries;
292
922
  exports.paginateGetImages = paginateGetImages;
293
923
  exports.paginateListFragments = paginateListFragments;