@aws-sdk/client-rekognitionstreaming 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
@@ -18,6 +18,9 @@ var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
18
18
  var runtimeConfig = require('./runtimeConfig');
19
19
  var regionConfigResolver = require('@aws-sdk/region-config-resolver');
20
20
  var protocolHttp = require('@smithy/protocol-http');
21
+ var schemas_0 = require('./schemas/schemas_0');
22
+ var errors = require('./models/errors');
23
+ var RekognitionStreamingServiceException = require('./models/RekognitionStreamingServiceException');
21
24
 
22
25
  const resolveClientEndpointParameters = (options) => {
23
26
  return Object.assign(options, {
@@ -116,387 +119,6 @@ class RekognitionStreamingClient extends smithyClient.Client {
116
119
  }
117
120
  }
118
121
 
119
- class RekognitionStreamingServiceException extends smithyClient.ServiceException {
120
- constructor(options) {
121
- super(options);
122
- Object.setPrototypeOf(this, RekognitionStreamingServiceException.prototype);
123
- }
124
- }
125
-
126
- class AccessDeniedException extends RekognitionStreamingServiceException {
127
- name = "AccessDeniedException";
128
- $fault = "client";
129
- Message;
130
- Code;
131
- constructor(opts) {
132
- super({
133
- name: "AccessDeniedException",
134
- $fault: "client",
135
- ...opts,
136
- });
137
- Object.setPrototypeOf(this, AccessDeniedException.prototype);
138
- this.Message = opts.Message;
139
- this.Code = opts.Code;
140
- }
141
- }
142
- class InternalServerException extends RekognitionStreamingServiceException {
143
- name = "InternalServerException";
144
- $fault = "server";
145
- Message;
146
- Code;
147
- constructor(opts) {
148
- super({
149
- name: "InternalServerException",
150
- $fault: "server",
151
- ...opts,
152
- });
153
- Object.setPrototypeOf(this, InternalServerException.prototype);
154
- this.Message = opts.Message;
155
- this.Code = opts.Code;
156
- }
157
- }
158
- class ServiceQuotaExceededException extends RekognitionStreamingServiceException {
159
- name = "ServiceQuotaExceededException";
160
- $fault = "client";
161
- Message;
162
- Code;
163
- constructor(opts) {
164
- super({
165
- name: "ServiceQuotaExceededException",
166
- $fault: "client",
167
- ...opts,
168
- });
169
- Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
170
- this.Message = opts.Message;
171
- this.Code = opts.Code;
172
- }
173
- }
174
- class ServiceUnavailableException extends RekognitionStreamingServiceException {
175
- name = "ServiceUnavailableException";
176
- $fault = "server";
177
- Message;
178
- Code;
179
- constructor(opts) {
180
- super({
181
- name: "ServiceUnavailableException",
182
- $fault: "server",
183
- ...opts,
184
- });
185
- Object.setPrototypeOf(this, ServiceUnavailableException.prototype);
186
- this.Message = opts.Message;
187
- this.Code = opts.Code;
188
- }
189
- }
190
- class ThrottlingException extends RekognitionStreamingServiceException {
191
- name = "ThrottlingException";
192
- $fault = "client";
193
- Message;
194
- Code;
195
- constructor(opts) {
196
- super({
197
- name: "ThrottlingException",
198
- $fault: "client",
199
- ...opts,
200
- });
201
- Object.setPrototypeOf(this, ThrottlingException.prototype);
202
- this.Message = opts.Message;
203
- this.Code = opts.Code;
204
- }
205
- }
206
- class ValidationException extends RekognitionStreamingServiceException {
207
- name = "ValidationException";
208
- $fault = "client";
209
- Message;
210
- Code;
211
- constructor(opts) {
212
- super({
213
- name: "ValidationException",
214
- $fault: "client",
215
- ...opts,
216
- });
217
- Object.setPrototypeOf(this, ValidationException.prototype);
218
- this.Message = opts.Message;
219
- this.Code = opts.Code;
220
- }
221
- }
222
- class SessionNotFoundException extends RekognitionStreamingServiceException {
223
- name = "SessionNotFoundException";
224
- $fault = "client";
225
- Message;
226
- Code;
227
- constructor(opts) {
228
- super({
229
- name: "SessionNotFoundException",
230
- $fault: "client",
231
- ...opts,
232
- });
233
- Object.setPrototypeOf(this, SessionNotFoundException.prototype);
234
- this.Message = opts.Message;
235
- this.Code = opts.Code;
236
- }
237
- }
238
-
239
- const _ADE = "AccessDeniedException";
240
- const _BB = "BoundingBox";
241
- const _BFDT = "BlazeFaceDetectionThreshold";
242
- const _C = "Code";
243
- const _CC = "ChallengeConfig";
244
- const _CCST = "CurrentColorStartTimestamp";
245
- const _CCl = "ClientChallenge";
246
- const _CCu = "CurrentColor";
247
- const _CD = "ColorDisplayed";
248
- const _CE = "ChallengeEvent";
249
- const _CI = "ChallengeId";
250
- const _CS = "ColorSequence";
251
- const _CSIE = "ClientSessionInformationEvent";
252
- const _CSo = "ColorSequences";
253
- const _CV = "ChallengeVersions";
254
- const _CX = "CenterX";
255
- const _CY = "CenterY";
256
- const _Ch = "Challenge";
257
- const _DD = "DownscrollDuration";
258
- const _DE = "DisconnectionEvent";
259
- const _FC = "FreshnessColor";
260
- const _FDD = "FlatDisplayDuration";
261
- const _FDITPET = "FaceDetectedInTargetPositionEndTimestamp";
262
- const _FDITPST = "FaceDetectedInTargetPositionStartTimestamp";
263
- const _FDT = "FaceDistanceThreshold";
264
- const _FDTM = "FaceDistanceThresholdMin";
265
- const _FDTMa = "FaceDistanceThresholdMax";
266
- const _FIHT = "FaceIouHeightThreshold";
267
- const _FIWT = "FaceIouWidthThreshold";
268
- const _FMALC = "FaceMovementAndLightChallenge";
269
- const _FMALCC = "FaceMovementAndLightClientChallenge";
270
- const _FMALSC = "FaceMovementAndLightServerChallenge";
271
- const _FMC = "FaceMovementChallenge";
272
- const _FMCC = "FaceMovementClientChallenge";
273
- const _FMSC = "FaceMovementServerChallenge";
274
- const _H = "Height";
275
- const _IF = "InitialFace";
276
- const _IFDT = "InitialFaceDetectedTimestamp";
277
- const _ISE = "InternalServerException";
278
- const _L = "Left";
279
- const _LCT = "LightChallengeType";
280
- const _LRS = "LivenessRequestStream";
281
- const _LRSi = "LivenessResponseStream";
282
- const _M = "Message";
283
- const _OFT = "OvalFitTimeout";
284
- const _OHWR = "OvalHeightWidthRatio";
285
- const _OIHT = "OvalIouHeightThreshold";
286
- const _OIT = "OvalIouThreshold";
287
- const _OIWT = "OvalIouWidthThreshold";
288
- const _OP = "OvalParameters";
289
- const _PC = "PreviousColor";
290
- const _RGB = "RGB";
291
- const _SC = "ServerChallenge";
292
- const _SFLS = "StartFaceLivenessSession";
293
- const _SFLSR = "StartFaceLivenessSessionRequest";
294
- const _SFLSRt = "StartFaceLivenessSessionResponse";
295
- const _SI = "SessionInformation";
296
- const _SIe = "SessionId";
297
- const _SN = "SequenceNumber";
298
- const _SNFE = "SessionNotFoundException";
299
- const _SQEE = "ServiceQuotaExceededException";
300
- const _SSIE = "ServerSessionInformationEvent";
301
- const _SUE = "ServiceUnavailableException";
302
- const _T = "Top";
303
- const _TE = "ThrottlingException";
304
- const _TF = "TargetFace";
305
- const _TM = "TimestampMillis";
306
- const _Ty = "Type";
307
- const _V = "Version";
308
- const _VC = "VideoChunk";
309
- const _VE = "ValidationException";
310
- const _VET = "VideoEndTimestamp";
311
- const _VEi = "VideoEvent";
312
- const _VH = "VideoHeight";
313
- const _VST = "VideoStartTimestamp";
314
- const _VW = "VideoWidth";
315
- const _W = "Width";
316
- const _c = "client";
317
- const _e = "error";
318
- const _h = "http";
319
- const _hE = "httpError";
320
- const _hH = "httpHeader";
321
- const _s = "server";
322
- const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.rekognitionstreaming";
323
- const _st = "streaming";
324
- const _xarslcv = "x-amz-rekognition-streaming-liveness-challenge-versions";
325
- const _xarslsi = "x-amz-rekognition-streaming-liveness-session-id";
326
- const _xarslvh = "x-amz-rekognition-streaming-liveness-video-height";
327
- const _xarslvw = "x-amz-rekognition-streaming-liveness-video-width";
328
- const n0 = "com.amazonaws.rekognitionstreaming";
329
- var AccessDeniedException$ = [-3, n0, _ADE,
330
- { [_e]: _c, [_hE]: 403 },
331
- [_M, _C],
332
- [0, 0]
333
- ];
334
- schema.TypeRegistry.for(n0).registerError(AccessDeniedException$, AccessDeniedException);
335
- var BoundingBox$ = [3, n0, _BB,
336
- 0,
337
- [_W, _H, _L, _T],
338
- [1, 1, 1, 1], 4
339
- ];
340
- var ChallengeConfig$ = [3, n0, _CC,
341
- 0,
342
- [_BFDT, _FDTM, _FDT, _FDTMa, _OIT, _OHWR, _OIWT, _OIHT, _FIWT, _FIHT, _OFT],
343
- [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
344
- ];
345
- var ChallengeEvent$ = [3, n0, _CE,
346
- 0,
347
- [_V, _Ty],
348
- [0, 0], 2
349
- ];
350
- var ClientSessionInformationEvent$ = [3, n0, _CSIE,
351
- 0,
352
- [_Ch],
353
- [() => ClientChallenge$], 1
354
- ];
355
- var ColorDisplayed$ = [3, n0, _CD,
356
- 0,
357
- [_CCu, _SN, _CCST, _PC],
358
- [() => FreshnessColor$, 1, 1, () => FreshnessColor$], 3
359
- ];
360
- var ColorSequence$ = [3, n0, _CS,
361
- 0,
362
- [_FC, _DD, _FDD],
363
- [() => FreshnessColor$, 1, 1], 3
364
- ];
365
- var DisconnectionEvent$ = [3, n0, _DE,
366
- 0,
367
- [_TM],
368
- [1], 1
369
- ];
370
- var FaceMovementAndLightClientChallenge$ = [3, n0, _FMALCC,
371
- 0,
372
- [_CI, _VST, _VET, _IF, _TF, _CD],
373
- [0, 1, 1, () => InitialFace$, () => TargetFace$, () => ColorDisplayed$], 1
374
- ];
375
- var FaceMovementAndLightServerChallenge$ = [3, n0, _FMALSC,
376
- 0,
377
- [_OP, _LCT, _CC, _CSo],
378
- [() => OvalParameters$, 0, () => ChallengeConfig$, () => ColorSequences], 4
379
- ];
380
- var FaceMovementClientChallenge$ = [3, n0, _FMCC,
381
- 0,
382
- [_CI, _VST, _VET, _IF, _TF],
383
- [0, 1, 1, () => InitialFace$, () => TargetFace$], 1
384
- ];
385
- var FaceMovementServerChallenge$ = [3, n0, _FMSC,
386
- 0,
387
- [_OP, _CC],
388
- [() => OvalParameters$, () => ChallengeConfig$], 2
389
- ];
390
- var FreshnessColor$ = [3, n0, _FC,
391
- 0,
392
- [_RGB],
393
- [64 | 1], 1
394
- ];
395
- var InitialFace$ = [3, n0, _IF,
396
- 0,
397
- [_BB, _IFDT],
398
- [() => BoundingBox$, 1], 2
399
- ];
400
- var InternalServerException$ = [-3, n0, _ISE,
401
- { [_e]: _s, [_hE]: 500 },
402
- [_M, _C],
403
- [0, 0]
404
- ];
405
- schema.TypeRegistry.for(n0).registerError(InternalServerException$, InternalServerException);
406
- var OvalParameters$ = [3, n0, _OP,
407
- 0,
408
- [_W, _H, _CX, _CY],
409
- [1, 1, 1, 1], 4
410
- ];
411
- var ServerSessionInformationEvent$ = [3, n0, _SSIE,
412
- 0,
413
- [_SI],
414
- [() => SessionInformation$], 1
415
- ];
416
- var ServiceQuotaExceededException$ = [-3, n0, _SQEE,
417
- { [_e]: _c, [_hE]: 429 },
418
- [_M, _C],
419
- [0, 0]
420
- ];
421
- schema.TypeRegistry.for(n0).registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);
422
- var ServiceUnavailableException$ = [-3, n0, _SUE,
423
- { [_e]: _s, [_hE]: 503 },
424
- [_M, _C],
425
- [0, 0]
426
- ];
427
- schema.TypeRegistry.for(n0).registerError(ServiceUnavailableException$, ServiceUnavailableException);
428
- var SessionInformation$ = [3, n0, _SI,
429
- 0,
430
- [_Ch],
431
- [() => ServerChallenge$], 1
432
- ];
433
- var SessionNotFoundException$ = [-3, n0, _SNFE,
434
- { [_e]: _c, [_hE]: 400 },
435
- [_M, _C],
436
- [0, 0]
437
- ];
438
- schema.TypeRegistry.for(n0).registerError(SessionNotFoundException$, SessionNotFoundException);
439
- var StartFaceLivenessSessionRequest$ = [3, n0, _SFLSR,
440
- 0,
441
- [_SIe, _VW, _VH, _CV, _LRS],
442
- [[0, { [_hH]: _xarslsi }], [0, { [_hH]: _xarslvw }], [0, { [_hH]: _xarslvh }], [0, { [_hH]: _xarslcv }], [() => LivenessRequestStream$, 16]], 4
443
- ];
444
- var StartFaceLivenessSessionResponse$ = [3, n0, _SFLSRt,
445
- 0,
446
- [_SIe, _LRSi],
447
- [[0, { [_hH]: _xarslsi }], [() => LivenessResponseStream$, 16]], 1
448
- ];
449
- var TargetFace$ = [3, n0, _TF,
450
- 0,
451
- [_BB, _FDITPST, _FDITPET],
452
- [() => BoundingBox$, 1, 1], 3
453
- ];
454
- var ThrottlingException$ = [-3, n0, _TE,
455
- { [_e]: _c, [_hE]: 429 },
456
- [_M, _C],
457
- [0, 0]
458
- ];
459
- schema.TypeRegistry.for(n0).registerError(ThrottlingException$, ThrottlingException);
460
- var ValidationException$ = [-3, n0, _VE,
461
- { [_e]: _c, [_hE]: 400 },
462
- [_M, _C],
463
- [0, 0]
464
- ];
465
- schema.TypeRegistry.for(n0).registerError(ValidationException$, ValidationException);
466
- var VideoEvent$ = [3, n0, _VEi,
467
- 0,
468
- [_VC, _TM],
469
- [21, 1]
470
- ];
471
- var RekognitionStreamingServiceException$ = [-3, _sm, "RekognitionStreamingServiceException", 0, [], []];
472
- schema.TypeRegistry.for(_sm).registerError(RekognitionStreamingServiceException$, RekognitionStreamingServiceException);
473
- var ColorSequences = [1, n0, _CSo,
474
- 0, () => ColorSequence$
475
- ];
476
- var ClientChallenge$ = [4, n0, _CCl,
477
- 0,
478
- [_FMALC, _FMC],
479
- [() => FaceMovementAndLightClientChallenge$, () => FaceMovementClientChallenge$]
480
- ];
481
- var LivenessRequestStream$ = [4, n0, _LRS,
482
- { [_st]: 1 },
483
- [_VEi, _CSIE],
484
- [() => VideoEvent$, () => ClientSessionInformationEvent$]
485
- ];
486
- var LivenessResponseStream$ = [4, n0, _LRSi,
487
- { [_st]: 1 },
488
- [_SSIE, _DE, _CE, _VE, _ISE, _TE, _SQEE, _SUE],
489
- [() => ServerSessionInformationEvent$, () => DisconnectionEvent$, () => ChallengeEvent$, [() => ValidationException$, 0], [() => InternalServerException$, 0], [() => ThrottlingException$, 0], [() => ServiceQuotaExceededException$, 0], [() => ServiceUnavailableException$, 0]]
490
- ];
491
- var ServerChallenge$ = [4, n0, _SC,
492
- 0,
493
- [_FMALC, _FMC],
494
- [() => FaceMovementAndLightServerChallenge$, () => FaceMovementServerChallenge$]
495
- ];
496
- var StartFaceLivenessSession$ = [9, n0, _SFLS,
497
- { [_h]: ["POST", "/start-face-liveness-session", 200] }, () => StartFaceLivenessSessionRequest$, () => StartFaceLivenessSessionResponse$
498
- ];
499
-
500
122
  class StartFaceLivenessSessionCommand extends smithyClient.Command
501
123
  .classBuilder()
502
124
  .ep(commonParams)
@@ -516,7 +138,7 @@ class StartFaceLivenessSessionCommand extends smithyClient.Command
516
138
  },
517
139
  })
518
140
  .n("RekognitionStreamingClient", "StartFaceLivenessSessionCommand")
519
- .sc(StartFaceLivenessSession$)
141
+ .sc(schemas_0.StartFaceLivenessSession$)
520
142
  .build() {
521
143
  }
522
144
 
@@ -543,49 +165,24 @@ Object.defineProperty(exports, "__Client", {
543
165
  enumerable: true,
544
166
  get: function () { return smithyClient.Client; }
545
167
  });
546
- exports.AccessDeniedException = AccessDeniedException;
547
- exports.AccessDeniedException$ = AccessDeniedException$;
548
- exports.BoundingBox$ = BoundingBox$;
549
- exports.ChallengeConfig$ = ChallengeConfig$;
550
- exports.ChallengeEvent$ = ChallengeEvent$;
168
+ Object.defineProperty(exports, "RekognitionStreamingServiceException", {
169
+ enumerable: true,
170
+ get: function () { return RekognitionStreamingServiceException.RekognitionStreamingServiceException; }
171
+ });
551
172
  exports.ChallengeType = ChallengeType;
552
- exports.ClientChallenge$ = ClientChallenge$;
553
- exports.ClientSessionInformationEvent$ = ClientSessionInformationEvent$;
554
- exports.ColorDisplayed$ = ColorDisplayed$;
555
- exports.ColorSequence$ = ColorSequence$;
556
- exports.DisconnectionEvent$ = DisconnectionEvent$;
557
- exports.FaceMovementAndLightClientChallenge$ = FaceMovementAndLightClientChallenge$;
558
- exports.FaceMovementAndLightServerChallenge$ = FaceMovementAndLightServerChallenge$;
559
- exports.FaceMovementClientChallenge$ = FaceMovementClientChallenge$;
560
- exports.FaceMovementServerChallenge$ = FaceMovementServerChallenge$;
561
- exports.FreshnessColor$ = FreshnessColor$;
562
- exports.InitialFace$ = InitialFace$;
563
- exports.InternalServerException = InternalServerException;
564
- exports.InternalServerException$ = InternalServerException$;
565
173
  exports.LightChallengeType = LightChallengeType;
566
- exports.LivenessRequestStream$ = LivenessRequestStream$;
567
- exports.LivenessResponseStream$ = LivenessResponseStream$;
568
- exports.OvalParameters$ = OvalParameters$;
569
174
  exports.RekognitionStreaming = RekognitionStreaming;
570
175
  exports.RekognitionStreamingClient = RekognitionStreamingClient;
571
- exports.RekognitionStreamingServiceException = RekognitionStreamingServiceException;
572
- exports.RekognitionStreamingServiceException$ = RekognitionStreamingServiceException$;
573
- exports.ServerChallenge$ = ServerChallenge$;
574
- exports.ServerSessionInformationEvent$ = ServerSessionInformationEvent$;
575
- exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
576
- exports.ServiceQuotaExceededException$ = ServiceQuotaExceededException$;
577
- exports.ServiceUnavailableException = ServiceUnavailableException;
578
- exports.ServiceUnavailableException$ = ServiceUnavailableException$;
579
- exports.SessionInformation$ = SessionInformation$;
580
- exports.SessionNotFoundException = SessionNotFoundException;
581
- exports.SessionNotFoundException$ = SessionNotFoundException$;
582
- exports.StartFaceLivenessSession$ = StartFaceLivenessSession$;
583
176
  exports.StartFaceLivenessSessionCommand = StartFaceLivenessSessionCommand;
584
- exports.StartFaceLivenessSessionRequest$ = StartFaceLivenessSessionRequest$;
585
- exports.StartFaceLivenessSessionResponse$ = StartFaceLivenessSessionResponse$;
586
- exports.TargetFace$ = TargetFace$;
587
- exports.ThrottlingException = ThrottlingException;
588
- exports.ThrottlingException$ = ThrottlingException$;
589
- exports.ValidationException = ValidationException;
590
- exports.ValidationException$ = ValidationException$;
591
- exports.VideoEvent$ = VideoEvent$;
177
+ Object.keys(schemas_0).forEach(function (k) {
178
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
179
+ enumerable: true,
180
+ get: function () { return schemas_0[k]; }
181
+ });
182
+ });
183
+ Object.keys(errors).forEach(function (k) {
184
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
185
+ enumerable: true,
186
+ get: function () { return errors[k]; }
187
+ });
188
+ });
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RekognitionStreamingServiceException = 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 RekognitionStreamingServiceException extends smithy_client_1.ServiceException {
7
+ constructor(options) {
8
+ super(options);
9
+ Object.setPrototypeOf(this, RekognitionStreamingServiceException.prototype);
10
+ }
11
+ }
12
+ exports.RekognitionStreamingServiceException = RekognitionStreamingServiceException;
@@ -0,0 +1,123 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SessionNotFoundException = exports.ValidationException = exports.ThrottlingException = exports.ServiceUnavailableException = exports.ServiceQuotaExceededException = exports.InternalServerException = exports.AccessDeniedException = void 0;
4
+ const RekognitionStreamingServiceException_1 = require("./RekognitionStreamingServiceException");
5
+ class AccessDeniedException extends RekognitionStreamingServiceException_1.RekognitionStreamingServiceException {
6
+ name = "AccessDeniedException";
7
+ $fault = "client";
8
+ Message;
9
+ Code;
10
+ constructor(opts) {
11
+ super({
12
+ name: "AccessDeniedException",
13
+ $fault: "client",
14
+ ...opts,
15
+ });
16
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
17
+ this.Message = opts.Message;
18
+ this.Code = opts.Code;
19
+ }
20
+ }
21
+ exports.AccessDeniedException = AccessDeniedException;
22
+ class InternalServerException extends RekognitionStreamingServiceException_1.RekognitionStreamingServiceException {
23
+ name = "InternalServerException";
24
+ $fault = "server";
25
+ Message;
26
+ Code;
27
+ constructor(opts) {
28
+ super({
29
+ name: "InternalServerException",
30
+ $fault: "server",
31
+ ...opts,
32
+ });
33
+ Object.setPrototypeOf(this, InternalServerException.prototype);
34
+ this.Message = opts.Message;
35
+ this.Code = opts.Code;
36
+ }
37
+ }
38
+ exports.InternalServerException = InternalServerException;
39
+ class ServiceQuotaExceededException extends RekognitionStreamingServiceException_1.RekognitionStreamingServiceException {
40
+ name = "ServiceQuotaExceededException";
41
+ $fault = "client";
42
+ Message;
43
+ Code;
44
+ constructor(opts) {
45
+ super({
46
+ name: "ServiceQuotaExceededException",
47
+ $fault: "client",
48
+ ...opts,
49
+ });
50
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
51
+ this.Message = opts.Message;
52
+ this.Code = opts.Code;
53
+ }
54
+ }
55
+ exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
56
+ class ServiceUnavailableException extends RekognitionStreamingServiceException_1.RekognitionStreamingServiceException {
57
+ name = "ServiceUnavailableException";
58
+ $fault = "server";
59
+ Message;
60
+ Code;
61
+ constructor(opts) {
62
+ super({
63
+ name: "ServiceUnavailableException",
64
+ $fault: "server",
65
+ ...opts,
66
+ });
67
+ Object.setPrototypeOf(this, ServiceUnavailableException.prototype);
68
+ this.Message = opts.Message;
69
+ this.Code = opts.Code;
70
+ }
71
+ }
72
+ exports.ServiceUnavailableException = ServiceUnavailableException;
73
+ class ThrottlingException extends RekognitionStreamingServiceException_1.RekognitionStreamingServiceException {
74
+ name = "ThrottlingException";
75
+ $fault = "client";
76
+ Message;
77
+ Code;
78
+ constructor(opts) {
79
+ super({
80
+ name: "ThrottlingException",
81
+ $fault: "client",
82
+ ...opts,
83
+ });
84
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
85
+ this.Message = opts.Message;
86
+ this.Code = opts.Code;
87
+ }
88
+ }
89
+ exports.ThrottlingException = ThrottlingException;
90
+ class ValidationException extends RekognitionStreamingServiceException_1.RekognitionStreamingServiceException {
91
+ name = "ValidationException";
92
+ $fault = "client";
93
+ Message;
94
+ Code;
95
+ constructor(opts) {
96
+ super({
97
+ name: "ValidationException",
98
+ $fault: "client",
99
+ ...opts,
100
+ });
101
+ Object.setPrototypeOf(this, ValidationException.prototype);
102
+ this.Message = opts.Message;
103
+ this.Code = opts.Code;
104
+ }
105
+ }
106
+ exports.ValidationException = ValidationException;
107
+ class SessionNotFoundException extends RekognitionStreamingServiceException_1.RekognitionStreamingServiceException {
108
+ name = "SessionNotFoundException";
109
+ $fault = "client";
110
+ Message;
111
+ Code;
112
+ constructor(opts) {
113
+ super({
114
+ name: "SessionNotFoundException",
115
+ $fault: "client",
116
+ ...opts,
117
+ });
118
+ Object.setPrototypeOf(this, SessionNotFoundException.prototype);
119
+ this.Message = opts.Message;
120
+ this.Code = opts.Code;
121
+ }
122
+ }
123
+ exports.SessionNotFoundException = SessionNotFoundException;
@@ -9,6 +9,7 @@ const util_base64_1 = require("@smithy/util-base64");
9
9
  const util_utf8_1 = require("@smithy/util-utf8");
10
10
  const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider");
11
11
  const endpointResolver_1 = require("./endpoint/endpointResolver");
12
+ const schemas_0_1 = require("./schemas/schemas_0");
12
13
  const getRuntimeConfig = (config) => {
13
14
  return {
14
15
  apiVersion: "2022-05-30",
@@ -29,6 +30,7 @@ const getRuntimeConfig = (config) => {
29
30
  protocol: config?.protocol ?? protocols_1.AwsRestJsonProtocol,
30
31
  protocolSettings: config?.protocolSettings ?? {
31
32
  defaultNamespace: "com.amazonaws.rekognitionstreaming",
33
+ errorTypeRegistries: schemas_0_1.errorTypeRegistries,
32
34
  version: "2022-05-30",
33
35
  serviceTarget: "RekognitionStreamingService",
34
36
  },
@@ -0,0 +1,273 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.StartFaceLivenessSession$ = exports.ServerChallenge$ = exports.LivenessResponseStream$ = exports.LivenessRequestStream$ = exports.ClientChallenge$ = exports.VideoEvent$ = exports.TargetFace$ = exports.StartFaceLivenessSessionResponse$ = exports.StartFaceLivenessSessionRequest$ = exports.SessionInformation$ = exports.ServerSessionInformationEvent$ = exports.OvalParameters$ = exports.InitialFace$ = exports.FreshnessColor$ = exports.FaceMovementServerChallenge$ = exports.FaceMovementClientChallenge$ = exports.FaceMovementAndLightServerChallenge$ = exports.FaceMovementAndLightClientChallenge$ = exports.DisconnectionEvent$ = exports.ColorSequence$ = exports.ColorDisplayed$ = exports.ClientSessionInformationEvent$ = exports.ChallengeEvent$ = exports.ChallengeConfig$ = exports.BoundingBox$ = exports.errorTypeRegistries = exports.ValidationException$ = exports.ThrottlingException$ = exports.SessionNotFoundException$ = exports.ServiceUnavailableException$ = exports.ServiceQuotaExceededException$ = exports.InternalServerException$ = exports.AccessDeniedException$ = exports.RekognitionStreamingServiceException$ = void 0;
4
+ const _ADE = "AccessDeniedException";
5
+ const _BB = "BoundingBox";
6
+ const _BFDT = "BlazeFaceDetectionThreshold";
7
+ const _C = "Code";
8
+ const _CC = "ChallengeConfig";
9
+ const _CCST = "CurrentColorStartTimestamp";
10
+ const _CCl = "ClientChallenge";
11
+ const _CCu = "CurrentColor";
12
+ const _CD = "ColorDisplayed";
13
+ const _CE = "ChallengeEvent";
14
+ const _CI = "ChallengeId";
15
+ const _CS = "ColorSequence";
16
+ const _CSIE = "ClientSessionInformationEvent";
17
+ const _CSo = "ColorSequences";
18
+ const _CV = "ChallengeVersions";
19
+ const _CX = "CenterX";
20
+ const _CY = "CenterY";
21
+ const _Ch = "Challenge";
22
+ const _DD = "DownscrollDuration";
23
+ const _DE = "DisconnectionEvent";
24
+ const _FC = "FreshnessColor";
25
+ const _FDD = "FlatDisplayDuration";
26
+ const _FDITPET = "FaceDetectedInTargetPositionEndTimestamp";
27
+ const _FDITPST = "FaceDetectedInTargetPositionStartTimestamp";
28
+ const _FDT = "FaceDistanceThreshold";
29
+ const _FDTM = "FaceDistanceThresholdMin";
30
+ const _FDTMa = "FaceDistanceThresholdMax";
31
+ const _FIHT = "FaceIouHeightThreshold";
32
+ const _FIWT = "FaceIouWidthThreshold";
33
+ const _FMALC = "FaceMovementAndLightChallenge";
34
+ const _FMALCC = "FaceMovementAndLightClientChallenge";
35
+ const _FMALSC = "FaceMovementAndLightServerChallenge";
36
+ const _FMC = "FaceMovementChallenge";
37
+ const _FMCC = "FaceMovementClientChallenge";
38
+ const _FMSC = "FaceMovementServerChallenge";
39
+ const _H = "Height";
40
+ const _IF = "InitialFace";
41
+ const _IFDT = "InitialFaceDetectedTimestamp";
42
+ const _ISE = "InternalServerException";
43
+ const _L = "Left";
44
+ const _LCT = "LightChallengeType";
45
+ const _LRS = "LivenessRequestStream";
46
+ const _LRSi = "LivenessResponseStream";
47
+ const _M = "Message";
48
+ const _OFT = "OvalFitTimeout";
49
+ const _OHWR = "OvalHeightWidthRatio";
50
+ const _OIHT = "OvalIouHeightThreshold";
51
+ const _OIT = "OvalIouThreshold";
52
+ const _OIWT = "OvalIouWidthThreshold";
53
+ const _OP = "OvalParameters";
54
+ const _PC = "PreviousColor";
55
+ const _RGB = "RGB";
56
+ const _SC = "ServerChallenge";
57
+ const _SFLS = "StartFaceLivenessSession";
58
+ const _SFLSR = "StartFaceLivenessSessionRequest";
59
+ const _SFLSRt = "StartFaceLivenessSessionResponse";
60
+ const _SI = "SessionInformation";
61
+ const _SIe = "SessionId";
62
+ const _SN = "SequenceNumber";
63
+ const _SNFE = "SessionNotFoundException";
64
+ const _SQEE = "ServiceQuotaExceededException";
65
+ const _SSIE = "ServerSessionInformationEvent";
66
+ const _SUE = "ServiceUnavailableException";
67
+ const _T = "Top";
68
+ const _TE = "ThrottlingException";
69
+ const _TF = "TargetFace";
70
+ const _TM = "TimestampMillis";
71
+ const _Ty = "Type";
72
+ const _V = "Version";
73
+ const _VC = "VideoChunk";
74
+ const _VE = "ValidationException";
75
+ const _VET = "VideoEndTimestamp";
76
+ const _VEi = "VideoEvent";
77
+ const _VH = "VideoHeight";
78
+ const _VST = "VideoStartTimestamp";
79
+ const _VW = "VideoWidth";
80
+ const _W = "Width";
81
+ const _c = "client";
82
+ const _e = "error";
83
+ const _h = "http";
84
+ const _hE = "httpError";
85
+ const _hH = "httpHeader";
86
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.rekognitionstreaming";
87
+ const _se = "server";
88
+ const _st = "streaming";
89
+ const _xarslcv = "x-amz-rekognition-streaming-liveness-challenge-versions";
90
+ const _xarslsi = "x-amz-rekognition-streaming-liveness-session-id";
91
+ const _xarslvh = "x-amz-rekognition-streaming-liveness-video-height";
92
+ const _xarslvw = "x-amz-rekognition-streaming-liveness-video-width";
93
+ const n0 = "com.amazonaws.rekognitionstreaming";
94
+ const schema_1 = require("@smithy/core/schema");
95
+ const errors_1 = require("../models/errors");
96
+ const RekognitionStreamingServiceException_1 = require("../models/RekognitionStreamingServiceException");
97
+ const _s_registry = schema_1.TypeRegistry.for(_s);
98
+ exports.RekognitionStreamingServiceException$ = [-3, _s, "RekognitionStreamingServiceException", 0, [], []];
99
+ _s_registry.registerError(exports.RekognitionStreamingServiceException$, RekognitionStreamingServiceException_1.RekognitionStreamingServiceException);
100
+ const n0_registry = schema_1.TypeRegistry.for(n0);
101
+ exports.AccessDeniedException$ = [-3, n0, _ADE,
102
+ { [_e]: _c, [_hE]: 403 },
103
+ [_M, _C],
104
+ [0, 0]
105
+ ];
106
+ n0_registry.registerError(exports.AccessDeniedException$, errors_1.AccessDeniedException);
107
+ exports.InternalServerException$ = [-3, n0, _ISE,
108
+ { [_e]: _se, [_hE]: 500 },
109
+ [_M, _C],
110
+ [0, 0]
111
+ ];
112
+ n0_registry.registerError(exports.InternalServerException$, errors_1.InternalServerException);
113
+ exports.ServiceQuotaExceededException$ = [-3, n0, _SQEE,
114
+ { [_e]: _c, [_hE]: 429 },
115
+ [_M, _C],
116
+ [0, 0]
117
+ ];
118
+ n0_registry.registerError(exports.ServiceQuotaExceededException$, errors_1.ServiceQuotaExceededException);
119
+ exports.ServiceUnavailableException$ = [-3, n0, _SUE,
120
+ { [_e]: _se, [_hE]: 503 },
121
+ [_M, _C],
122
+ [0, 0]
123
+ ];
124
+ n0_registry.registerError(exports.ServiceUnavailableException$, errors_1.ServiceUnavailableException);
125
+ exports.SessionNotFoundException$ = [-3, n0, _SNFE,
126
+ { [_e]: _c, [_hE]: 400 },
127
+ [_M, _C],
128
+ [0, 0]
129
+ ];
130
+ n0_registry.registerError(exports.SessionNotFoundException$, errors_1.SessionNotFoundException);
131
+ exports.ThrottlingException$ = [-3, n0, _TE,
132
+ { [_e]: _c, [_hE]: 429 },
133
+ [_M, _C],
134
+ [0, 0]
135
+ ];
136
+ n0_registry.registerError(exports.ThrottlingException$, errors_1.ThrottlingException);
137
+ exports.ValidationException$ = [-3, n0, _VE,
138
+ { [_e]: _c, [_hE]: 400 },
139
+ [_M, _C],
140
+ [0, 0]
141
+ ];
142
+ n0_registry.registerError(exports.ValidationException$, errors_1.ValidationException);
143
+ exports.errorTypeRegistries = [
144
+ _s_registry,
145
+ n0_registry,
146
+ ];
147
+ exports.BoundingBox$ = [3, n0, _BB,
148
+ 0,
149
+ [_W, _H, _L, _T],
150
+ [1, 1, 1, 1], 4
151
+ ];
152
+ exports.ChallengeConfig$ = [3, n0, _CC,
153
+ 0,
154
+ [_BFDT, _FDTM, _FDT, _FDTMa, _OIT, _OHWR, _OIWT, _OIHT, _FIWT, _FIHT, _OFT],
155
+ [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
156
+ ];
157
+ exports.ChallengeEvent$ = [3, n0, _CE,
158
+ 0,
159
+ [_V, _Ty],
160
+ [0, 0], 2
161
+ ];
162
+ exports.ClientSessionInformationEvent$ = [3, n0, _CSIE,
163
+ 0,
164
+ [_Ch],
165
+ [() => exports.ClientChallenge$], 1
166
+ ];
167
+ exports.ColorDisplayed$ = [3, n0, _CD,
168
+ 0,
169
+ [_CCu, _SN, _CCST, _PC],
170
+ [() => exports.FreshnessColor$, 1, 1, () => exports.FreshnessColor$], 3
171
+ ];
172
+ exports.ColorSequence$ = [3, n0, _CS,
173
+ 0,
174
+ [_FC, _DD, _FDD],
175
+ [() => exports.FreshnessColor$, 1, 1], 3
176
+ ];
177
+ exports.DisconnectionEvent$ = [3, n0, _DE,
178
+ 0,
179
+ [_TM],
180
+ [1], 1
181
+ ];
182
+ exports.FaceMovementAndLightClientChallenge$ = [3, n0, _FMALCC,
183
+ 0,
184
+ [_CI, _VST, _VET, _IF, _TF, _CD],
185
+ [0, 1, 1, () => exports.InitialFace$, () => exports.TargetFace$, () => exports.ColorDisplayed$], 1
186
+ ];
187
+ exports.FaceMovementAndLightServerChallenge$ = [3, n0, _FMALSC,
188
+ 0,
189
+ [_OP, _LCT, _CC, _CSo],
190
+ [() => exports.OvalParameters$, 0, () => exports.ChallengeConfig$, () => ColorSequences], 4
191
+ ];
192
+ exports.FaceMovementClientChallenge$ = [3, n0, _FMCC,
193
+ 0,
194
+ [_CI, _VST, _VET, _IF, _TF],
195
+ [0, 1, 1, () => exports.InitialFace$, () => exports.TargetFace$], 1
196
+ ];
197
+ exports.FaceMovementServerChallenge$ = [3, n0, _FMSC,
198
+ 0,
199
+ [_OP, _CC],
200
+ [() => exports.OvalParameters$, () => exports.ChallengeConfig$], 2
201
+ ];
202
+ exports.FreshnessColor$ = [3, n0, _FC,
203
+ 0,
204
+ [_RGB],
205
+ [64 | 1], 1
206
+ ];
207
+ exports.InitialFace$ = [3, n0, _IF,
208
+ 0,
209
+ [_BB, _IFDT],
210
+ [() => exports.BoundingBox$, 1], 2
211
+ ];
212
+ exports.OvalParameters$ = [3, n0, _OP,
213
+ 0,
214
+ [_W, _H, _CX, _CY],
215
+ [1, 1, 1, 1], 4
216
+ ];
217
+ exports.ServerSessionInformationEvent$ = [3, n0, _SSIE,
218
+ 0,
219
+ [_SI],
220
+ [() => exports.SessionInformation$], 1
221
+ ];
222
+ exports.SessionInformation$ = [3, n0, _SI,
223
+ 0,
224
+ [_Ch],
225
+ [() => exports.ServerChallenge$], 1
226
+ ];
227
+ exports.StartFaceLivenessSessionRequest$ = [3, n0, _SFLSR,
228
+ 0,
229
+ [_SIe, _VW, _VH, _CV, _LRS],
230
+ [[0, { [_hH]: _xarslsi }], [0, { [_hH]: _xarslvw }], [0, { [_hH]: _xarslvh }], [0, { [_hH]: _xarslcv }], [() => exports.LivenessRequestStream$, 16]], 4
231
+ ];
232
+ exports.StartFaceLivenessSessionResponse$ = [3, n0, _SFLSRt,
233
+ 0,
234
+ [_SIe, _LRSi],
235
+ [[0, { [_hH]: _xarslsi }], [() => exports.LivenessResponseStream$, 16]], 1
236
+ ];
237
+ exports.TargetFace$ = [3, n0, _TF,
238
+ 0,
239
+ [_BB, _FDITPST, _FDITPET],
240
+ [() => exports.BoundingBox$, 1, 1], 3
241
+ ];
242
+ exports.VideoEvent$ = [3, n0, _VEi,
243
+ 0,
244
+ [_VC, _TM],
245
+ [21, 1]
246
+ ];
247
+ var ColorComponentList = 64 | 1;
248
+ var ColorSequences = [1, n0, _CSo,
249
+ 0, () => exports.ColorSequence$
250
+ ];
251
+ exports.ClientChallenge$ = [4, n0, _CCl,
252
+ 0,
253
+ [_FMALC, _FMC],
254
+ [() => exports.FaceMovementAndLightClientChallenge$, () => exports.FaceMovementClientChallenge$]
255
+ ];
256
+ exports.LivenessRequestStream$ = [4, n0, _LRS,
257
+ { [_st]: 1 },
258
+ [_VEi, _CSIE],
259
+ [() => exports.VideoEvent$, () => exports.ClientSessionInformationEvent$]
260
+ ];
261
+ exports.LivenessResponseStream$ = [4, n0, _LRSi,
262
+ { [_st]: 1 },
263
+ [_SSIE, _DE, _CE, _VE, _ISE, _TE, _SQEE, _SUE],
264
+ [() => exports.ServerSessionInformationEvent$, () => exports.DisconnectionEvent$, () => exports.ChallengeEvent$, [() => exports.ValidationException$, 0], [() => exports.InternalServerException$, 0], [() => exports.ThrottlingException$, 0], [() => exports.ServiceQuotaExceededException$, 0], [() => exports.ServiceUnavailableException$, 0]]
265
+ ];
266
+ exports.ServerChallenge$ = [4, n0, _SC,
267
+ 0,
268
+ [_FMALC, _FMC],
269
+ [() => exports.FaceMovementAndLightServerChallenge$, () => exports.FaceMovementServerChallenge$]
270
+ ];
271
+ exports.StartFaceLivenessSession$ = [9, n0, _SFLS,
272
+ { [_h]: ["POST", "/start-face-liveness-session", 200] }, () => exports.StartFaceLivenessSessionRequest$, () => exports.StartFaceLivenessSessionResponse$
273
+ ];
@@ -6,6 +6,7 @@ import { fromBase64, toBase64 } from "@smithy/util-base64";
6
6
  import { fromUtf8, toUtf8 } from "@smithy/util-utf8";
7
7
  import { defaultRekognitionStreamingHttpAuthSchemeProvider } from "./auth/httpAuthSchemeProvider";
8
8
  import { defaultEndpointResolver } from "./endpoint/endpointResolver";
9
+ import { errorTypeRegistries } from "./schemas/schemas_0";
9
10
  export const getRuntimeConfig = (config) => {
10
11
  return {
11
12
  apiVersion: "2022-05-30",
@@ -26,6 +27,7 @@ export const getRuntimeConfig = (config) => {
26
27
  protocol: config?.protocol ?? AwsRestJsonProtocol,
27
28
  protocolSettings: config?.protocolSettings ?? {
28
29
  defaultNamespace: "com.amazonaws.rekognitionstreaming",
30
+ errorTypeRegistries,
29
31
  version: "2022-05-30",
30
32
  serviceTarget: "RekognitionStreamingService",
31
33
  },
@@ -80,8 +80,8 @@ const _e = "error";
80
80
  const _h = "http";
81
81
  const _hE = "httpError";
82
82
  const _hH = "httpHeader";
83
- const _s = "server";
84
- const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.rekognitionstreaming";
83
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.rekognitionstreaming";
84
+ const _se = "server";
85
85
  const _st = "streaming";
86
86
  const _xarslcv = "x-amz-rekognition-streaming-liveness-challenge-versions";
87
87
  const _xarslsi = "x-amz-rekognition-streaming-liveness-session-id";
@@ -91,12 +91,56 @@ const n0 = "com.amazonaws.rekognitionstreaming";
91
91
  import { TypeRegistry } from "@smithy/core/schema";
92
92
  import { AccessDeniedException, InternalServerException, ServiceQuotaExceededException, ServiceUnavailableException, SessionNotFoundException, ThrottlingException, ValidationException, } from "../models/errors";
93
93
  import { RekognitionStreamingServiceException } from "../models/RekognitionStreamingServiceException";
94
+ const _s_registry = TypeRegistry.for(_s);
95
+ export var RekognitionStreamingServiceException$ = [-3, _s, "RekognitionStreamingServiceException", 0, [], []];
96
+ _s_registry.registerError(RekognitionStreamingServiceException$, RekognitionStreamingServiceException);
97
+ const n0_registry = TypeRegistry.for(n0);
94
98
  export var AccessDeniedException$ = [-3, n0, _ADE,
95
99
  { [_e]: _c, [_hE]: 403 },
96
100
  [_M, _C],
97
101
  [0, 0]
98
102
  ];
99
- TypeRegistry.for(n0).registerError(AccessDeniedException$, AccessDeniedException);
103
+ n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
104
+ export var InternalServerException$ = [-3, n0, _ISE,
105
+ { [_e]: _se, [_hE]: 500 },
106
+ [_M, _C],
107
+ [0, 0]
108
+ ];
109
+ n0_registry.registerError(InternalServerException$, InternalServerException);
110
+ export var ServiceQuotaExceededException$ = [-3, n0, _SQEE,
111
+ { [_e]: _c, [_hE]: 429 },
112
+ [_M, _C],
113
+ [0, 0]
114
+ ];
115
+ n0_registry.registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);
116
+ export var ServiceUnavailableException$ = [-3, n0, _SUE,
117
+ { [_e]: _se, [_hE]: 503 },
118
+ [_M, _C],
119
+ [0, 0]
120
+ ];
121
+ n0_registry.registerError(ServiceUnavailableException$, ServiceUnavailableException);
122
+ export var SessionNotFoundException$ = [-3, n0, _SNFE,
123
+ { [_e]: _c, [_hE]: 400 },
124
+ [_M, _C],
125
+ [0, 0]
126
+ ];
127
+ n0_registry.registerError(SessionNotFoundException$, SessionNotFoundException);
128
+ export var ThrottlingException$ = [-3, n0, _TE,
129
+ { [_e]: _c, [_hE]: 429 },
130
+ [_M, _C],
131
+ [0, 0]
132
+ ];
133
+ n0_registry.registerError(ThrottlingException$, ThrottlingException);
134
+ export var ValidationException$ = [-3, n0, _VE,
135
+ { [_e]: _c, [_hE]: 400 },
136
+ [_M, _C],
137
+ [0, 0]
138
+ ];
139
+ n0_registry.registerError(ValidationException$, ValidationException);
140
+ export const errorTypeRegistries = [
141
+ _s_registry,
142
+ n0_registry,
143
+ ];
100
144
  export var BoundingBox$ = [3, n0, _BB,
101
145
  0,
102
146
  [_W, _H, _L, _T],
@@ -162,12 +206,6 @@ export var InitialFace$ = [3, n0, _IF,
162
206
  [_BB, _IFDT],
163
207
  [() => BoundingBox$, 1], 2
164
208
  ];
165
- export var InternalServerException$ = [-3, n0, _ISE,
166
- { [_e]: _s, [_hE]: 500 },
167
- [_M, _C],
168
- [0, 0]
169
- ];
170
- TypeRegistry.for(n0).registerError(InternalServerException$, InternalServerException);
171
209
  export var OvalParameters$ = [3, n0, _OP,
172
210
  0,
173
211
  [_W, _H, _CX, _CY],
@@ -178,29 +216,11 @@ export var ServerSessionInformationEvent$ = [3, n0, _SSIE,
178
216
  [_SI],
179
217
  [() => SessionInformation$], 1
180
218
  ];
181
- export var ServiceQuotaExceededException$ = [-3, n0, _SQEE,
182
- { [_e]: _c, [_hE]: 429 },
183
- [_M, _C],
184
- [0, 0]
185
- ];
186
- TypeRegistry.for(n0).registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);
187
- export var ServiceUnavailableException$ = [-3, n0, _SUE,
188
- { [_e]: _s, [_hE]: 503 },
189
- [_M, _C],
190
- [0, 0]
191
- ];
192
- TypeRegistry.for(n0).registerError(ServiceUnavailableException$, ServiceUnavailableException);
193
219
  export var SessionInformation$ = [3, n0, _SI,
194
220
  0,
195
221
  [_Ch],
196
222
  [() => ServerChallenge$], 1
197
223
  ];
198
- export var SessionNotFoundException$ = [-3, n0, _SNFE,
199
- { [_e]: _c, [_hE]: 400 },
200
- [_M, _C],
201
- [0, 0]
202
- ];
203
- TypeRegistry.for(n0).registerError(SessionNotFoundException$, SessionNotFoundException);
204
224
  export var StartFaceLivenessSessionRequest$ = [3, n0, _SFLSR,
205
225
  0,
206
226
  [_SIe, _VW, _VH, _CV, _LRS],
@@ -216,25 +236,11 @@ export var TargetFace$ = [3, n0, _TF,
216
236
  [_BB, _FDITPST, _FDITPET],
217
237
  [() => BoundingBox$, 1, 1], 3
218
238
  ];
219
- export var ThrottlingException$ = [-3, n0, _TE,
220
- { [_e]: _c, [_hE]: 429 },
221
- [_M, _C],
222
- [0, 0]
223
- ];
224
- TypeRegistry.for(n0).registerError(ThrottlingException$, ThrottlingException);
225
- export var ValidationException$ = [-3, n0, _VE,
226
- { [_e]: _c, [_hE]: 400 },
227
- [_M, _C],
228
- [0, 0]
229
- ];
230
- TypeRegistry.for(n0).registerError(ValidationException$, ValidationException);
231
239
  export var VideoEvent$ = [3, n0, _VEi,
232
240
  0,
233
241
  [_VC, _TM],
234
242
  [21, 1]
235
243
  ];
236
- export var RekognitionStreamingServiceException$ = [-3, _sm, "RekognitionStreamingServiceException", 0, [], []];
237
- TypeRegistry.for(_sm).registerError(RekognitionStreamingServiceException$, RekognitionStreamingServiceException);
238
244
  var ColorComponentList = 64 | 1;
239
245
  var ColorSequences = [1, n0, _CSo,
240
246
  0, () => ColorSequence$
@@ -1,5 +1,19 @@
1
+ import { TypeRegistry } from "@smithy/core/schema";
1
2
  import type { StaticErrorSchema, StaticOperationSchema, StaticStructureSchema, StaticUnionSchema } from "@smithy/types";
3
+ export declare var RekognitionStreamingServiceException$: StaticErrorSchema;
2
4
  export declare var AccessDeniedException$: StaticErrorSchema;
5
+ export declare var InternalServerException$: StaticErrorSchema;
6
+ export declare var ServiceQuotaExceededException$: StaticErrorSchema;
7
+ export declare var ServiceUnavailableException$: StaticErrorSchema;
8
+ export declare var SessionNotFoundException$: StaticErrorSchema;
9
+ export declare var ThrottlingException$: StaticErrorSchema;
10
+ export declare var ValidationException$: StaticErrorSchema;
11
+ /**
12
+ * TypeRegistry instances containing modeled errors.
13
+ * @internal
14
+ *
15
+ */
16
+ export declare const errorTypeRegistries: TypeRegistry[];
3
17
  export declare var BoundingBox$: StaticStructureSchema;
4
18
  export declare var ChallengeConfig$: StaticStructureSchema;
5
19
  export declare var ChallengeEvent$: StaticStructureSchema;
@@ -13,20 +27,13 @@ export declare var FaceMovementClientChallenge$: StaticStructureSchema;
13
27
  export declare var FaceMovementServerChallenge$: StaticStructureSchema;
14
28
  export declare var FreshnessColor$: StaticStructureSchema;
15
29
  export declare var InitialFace$: StaticStructureSchema;
16
- export declare var InternalServerException$: StaticErrorSchema;
17
30
  export declare var OvalParameters$: StaticStructureSchema;
18
31
  export declare var ServerSessionInformationEvent$: StaticStructureSchema;
19
- export declare var ServiceQuotaExceededException$: StaticErrorSchema;
20
- export declare var ServiceUnavailableException$: StaticErrorSchema;
21
32
  export declare var SessionInformation$: StaticStructureSchema;
22
- export declare var SessionNotFoundException$: StaticErrorSchema;
23
33
  export declare var StartFaceLivenessSessionRequest$: StaticStructureSchema;
24
34
  export declare var StartFaceLivenessSessionResponse$: StaticStructureSchema;
25
35
  export declare var TargetFace$: StaticStructureSchema;
26
- export declare var ThrottlingException$: StaticErrorSchema;
27
- export declare var ValidationException$: StaticErrorSchema;
28
36
  export declare var VideoEvent$: StaticStructureSchema;
29
- export declare var RekognitionStreamingServiceException$: StaticErrorSchema;
30
37
  export declare var ClientChallenge$: StaticUnionSchema;
31
38
  export declare var LivenessRequestStream$: StaticUnionSchema;
32
39
  export declare var LivenessResponseStream$: StaticUnionSchema;
@@ -1,10 +1,19 @@
1
+ import { TypeRegistry } from "@smithy/core/schema";
1
2
  import {
2
3
  StaticErrorSchema,
3
4
  StaticOperationSchema,
4
5
  StaticStructureSchema,
5
6
  StaticUnionSchema,
6
7
  } from "@smithy/types";
8
+ export declare var RekognitionStreamingServiceException$: StaticErrorSchema;
7
9
  export declare var AccessDeniedException$: StaticErrorSchema;
10
+ export declare var InternalServerException$: StaticErrorSchema;
11
+ export declare var ServiceQuotaExceededException$: StaticErrorSchema;
12
+ export declare var ServiceUnavailableException$: StaticErrorSchema;
13
+ export declare var SessionNotFoundException$: StaticErrorSchema;
14
+ export declare var ThrottlingException$: StaticErrorSchema;
15
+ export declare var ValidationException$: StaticErrorSchema;
16
+ export declare const errorTypeRegistries: TypeRegistry[];
8
17
  export declare var BoundingBox$: StaticStructureSchema;
9
18
  export declare var ChallengeConfig$: StaticStructureSchema;
10
19
  export declare var ChallengeEvent$: StaticStructureSchema;
@@ -18,20 +27,13 @@ export declare var FaceMovementClientChallenge$: StaticStructureSchema;
18
27
  export declare var FaceMovementServerChallenge$: StaticStructureSchema;
19
28
  export declare var FreshnessColor$: StaticStructureSchema;
20
29
  export declare var InitialFace$: StaticStructureSchema;
21
- export declare var InternalServerException$: StaticErrorSchema;
22
30
  export declare var OvalParameters$: StaticStructureSchema;
23
31
  export declare var ServerSessionInformationEvent$: StaticStructureSchema;
24
- export declare var ServiceQuotaExceededException$: StaticErrorSchema;
25
- export declare var ServiceUnavailableException$: StaticErrorSchema;
26
32
  export declare var SessionInformation$: StaticStructureSchema;
27
- export declare var SessionNotFoundException$: StaticErrorSchema;
28
33
  export declare var StartFaceLivenessSessionRequest$: StaticStructureSchema;
29
34
  export declare var StartFaceLivenessSessionResponse$: StaticStructureSchema;
30
35
  export declare var TargetFace$: StaticStructureSchema;
31
- export declare var ThrottlingException$: StaticErrorSchema;
32
- export declare var ValidationException$: StaticErrorSchema;
33
36
  export declare var VideoEvent$: StaticStructureSchema;
34
- export declare var RekognitionStreamingServiceException$: StaticErrorSchema;
35
37
  export declare var ClientChallenge$: StaticUnionSchema;
36
38
  export declare var LivenessRequestStream$: StaticUnionSchema;
37
39
  export declare var LivenessResponseStream$: StaticUnionSchema;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-rekognitionstreaming",
3
3
  "description": "AWS SDK for JavaScript Rekognitionstreaming 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-rekognitionstreaming",
@@ -21,22 +21,22 @@
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/eventstream-handler-node": "^3.972.5",
27
27
  "@aws-sdk/middleware-eventstream": "^3.972.3",
28
28
  "@aws-sdk/middleware-host-header": "^3.972.3",
29
29
  "@aws-sdk/middleware-logger": "^3.972.3",
30
30
  "@aws-sdk/middleware-recursion-detection": "^3.972.3",
31
- "@aws-sdk/middleware-user-agent": "^3.972.7",
31
+ "@aws-sdk/middleware-user-agent": "^3.972.8",
32
32
  "@aws-sdk/middleware-websocket": "^3.972.6",
33
33
  "@aws-sdk/region-config-resolver": "^3.972.3",
34
34
  "@aws-sdk/types": "^3.973.1",
35
- "@aws-sdk/util-endpoints": "3.986.0",
35
+ "@aws-sdk/util-endpoints": "3.988.0",
36
36
  "@aws-sdk/util-user-agent-browser": "^3.972.3",
37
- "@aws-sdk/util-user-agent-node": "^3.972.5",
37
+ "@aws-sdk/util-user-agent-node": "^3.972.6",
38
38
  "@smithy/config-resolver": "^4.4.6",
39
- "@smithy/core": "^3.22.1",
39
+ "@smithy/core": "^3.23.0",
40
40
  "@smithy/eventstream-serde-browser": "^4.2.8",
41
41
  "@smithy/eventstream-serde-config-resolver": "^4.3.8",
42
42
  "@smithy/eventstream-serde-node": "^4.2.8",
@@ -44,21 +44,21 @@
44
44
  "@smithy/hash-node": "^4.2.8",
45
45
  "@smithy/invalid-dependency": "^4.2.8",
46
46
  "@smithy/middleware-content-length": "^4.2.8",
47
- "@smithy/middleware-endpoint": "^4.4.13",
48
- "@smithy/middleware-retry": "^4.4.30",
47
+ "@smithy/middleware-endpoint": "^4.4.14",
48
+ "@smithy/middleware-retry": "^4.4.31",
49
49
  "@smithy/middleware-serde": "^4.2.9",
50
50
  "@smithy/middleware-stack": "^4.2.8",
51
51
  "@smithy/node-config-provider": "^4.3.8",
52
- "@smithy/node-http-handler": "^4.4.9",
52
+ "@smithy/node-http-handler": "^4.4.10",
53
53
  "@smithy/protocol-http": "^5.3.8",
54
- "@smithy/smithy-client": "^4.11.2",
54
+ "@smithy/smithy-client": "^4.11.3",
55
55
  "@smithy/types": "^4.12.0",
56
56
  "@smithy/url-parser": "^4.2.8",
57
57
  "@smithy/util-base64": "^4.3.0",
58
58
  "@smithy/util-body-length-browser": "^4.2.0",
59
59
  "@smithy/util-body-length-node": "^4.2.1",
60
- "@smithy/util-defaults-mode-browser": "^4.3.29",
61
- "@smithy/util-defaults-mode-node": "^4.2.32",
60
+ "@smithy/util-defaults-mode-browser": "^4.3.30",
61
+ "@smithy/util-defaults-mode-node": "^4.2.33",
62
62
  "@smithy/util-endpoints": "^3.2.8",
63
63
  "@smithy/util-middleware": "^4.2.8",
64
64
  "@smithy/util-retry": "^4.2.8",