@aws-sdk/client-rekognitionstreaming 3.934.0 → 3.935.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
@@ -139,13 +139,6 @@ let AccessDeniedException$1 = class AccessDeniedException extends RekognitionStr
139
139
  this.Code = opts.Code;
140
140
  }
141
141
  };
142
- const ChallengeType = {
143
- FACE_MOVEMENT_AND_LIGHT_CHALLENGE: "FaceMovementAndLightChallenge",
144
- FACE_MOVEMENT_CHALLENGE: "FaceMovementChallenge",
145
- };
146
- const LightChallengeType = {
147
- SEQUENTIAL: "SEQUENTIAL",
148
- };
149
142
  let InternalServerException$1 = class InternalServerException extends RekognitionStreamingServiceException$1 {
150
143
  name = "InternalServerException";
151
144
  $fault = "server";
@@ -623,6 +616,14 @@ class RekognitionStreaming extends RekognitionStreamingClient {
623
616
  }
624
617
  smithyClient.createAggregatedClient(commands, RekognitionStreaming);
625
618
 
619
+ const ChallengeType = {
620
+ FACE_MOVEMENT_AND_LIGHT_CHALLENGE: "FaceMovementAndLightChallenge",
621
+ FACE_MOVEMENT_CHALLENGE: "FaceMovementChallenge",
622
+ };
623
+ const LightChallengeType = {
624
+ SEQUENTIAL: "SEQUENTIAL",
625
+ };
626
+
626
627
  Object.defineProperty(exports, "$Command", {
627
628
  enumerable: true,
628
629
  get: function () { return smithyClient.Command; }
package/dist-es/index.js CHANGED
@@ -1,5 +1,6 @@
1
1
  export * from "./RekognitionStreamingClient";
2
2
  export * from "./RekognitionStreaming";
3
3
  export * from "./commands";
4
- export * from "./models";
4
+ export * from "./models/enums";
5
+ export * from "./models/errors";
5
6
  export { RekognitionStreamingServiceException } from "./models/RekognitionStreamingServiceException";
@@ -0,0 +1,7 @@
1
+ export const ChallengeType = {
2
+ FACE_MOVEMENT_AND_LIGHT_CHALLENGE: "FaceMovementAndLightChallenge",
3
+ FACE_MOVEMENT_CHALLENGE: "FaceMovementChallenge",
4
+ };
5
+ export const LightChallengeType = {
6
+ SEQUENTIAL: "SEQUENTIAL",
7
+ };
@@ -0,0 +1,113 @@
1
+ import { RekognitionStreamingServiceException as __BaseException } from "./RekognitionStreamingServiceException";
2
+ export class AccessDeniedException extends __BaseException {
3
+ name = "AccessDeniedException";
4
+ $fault = "client";
5
+ Message;
6
+ Code;
7
+ constructor(opts) {
8
+ super({
9
+ name: "AccessDeniedException",
10
+ $fault: "client",
11
+ ...opts,
12
+ });
13
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
14
+ this.Message = opts.Message;
15
+ this.Code = opts.Code;
16
+ }
17
+ }
18
+ export class InternalServerException extends __BaseException {
19
+ name = "InternalServerException";
20
+ $fault = "server";
21
+ Message;
22
+ Code;
23
+ constructor(opts) {
24
+ super({
25
+ name: "InternalServerException",
26
+ $fault: "server",
27
+ ...opts,
28
+ });
29
+ Object.setPrototypeOf(this, InternalServerException.prototype);
30
+ this.Message = opts.Message;
31
+ this.Code = opts.Code;
32
+ }
33
+ }
34
+ export class ServiceQuotaExceededException extends __BaseException {
35
+ name = "ServiceQuotaExceededException";
36
+ $fault = "client";
37
+ Message;
38
+ Code;
39
+ constructor(opts) {
40
+ super({
41
+ name: "ServiceQuotaExceededException",
42
+ $fault: "client",
43
+ ...opts,
44
+ });
45
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
46
+ this.Message = opts.Message;
47
+ this.Code = opts.Code;
48
+ }
49
+ }
50
+ export class ServiceUnavailableException extends __BaseException {
51
+ name = "ServiceUnavailableException";
52
+ $fault = "server";
53
+ Message;
54
+ Code;
55
+ constructor(opts) {
56
+ super({
57
+ name: "ServiceUnavailableException",
58
+ $fault: "server",
59
+ ...opts,
60
+ });
61
+ Object.setPrototypeOf(this, ServiceUnavailableException.prototype);
62
+ this.Message = opts.Message;
63
+ this.Code = opts.Code;
64
+ }
65
+ }
66
+ export class ThrottlingException extends __BaseException {
67
+ name = "ThrottlingException";
68
+ $fault = "client";
69
+ Message;
70
+ Code;
71
+ constructor(opts) {
72
+ super({
73
+ name: "ThrottlingException",
74
+ $fault: "client",
75
+ ...opts,
76
+ });
77
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
78
+ this.Message = opts.Message;
79
+ this.Code = opts.Code;
80
+ }
81
+ }
82
+ export class ValidationException extends __BaseException {
83
+ name = "ValidationException";
84
+ $fault = "client";
85
+ Message;
86
+ Code;
87
+ constructor(opts) {
88
+ super({
89
+ name: "ValidationException",
90
+ $fault: "client",
91
+ ...opts,
92
+ });
93
+ Object.setPrototypeOf(this, ValidationException.prototype);
94
+ this.Message = opts.Message;
95
+ this.Code = opts.Code;
96
+ }
97
+ }
98
+ export class SessionNotFoundException extends __BaseException {
99
+ name = "SessionNotFoundException";
100
+ $fault = "client";
101
+ Message;
102
+ Code;
103
+ constructor(opts) {
104
+ super({
105
+ name: "SessionNotFoundException",
106
+ $fault: "client",
107
+ ...opts,
108
+ });
109
+ Object.setPrototypeOf(this, SessionNotFoundException.prototype);
110
+ this.Message = opts.Message;
111
+ this.Code = opts.Code;
112
+ }
113
+ }
@@ -1,120 +1 @@
1
- import { RekognitionStreamingServiceException as __BaseException } from "./RekognitionStreamingServiceException";
2
- export class AccessDeniedException extends __BaseException {
3
- name = "AccessDeniedException";
4
- $fault = "client";
5
- Message;
6
- Code;
7
- constructor(opts) {
8
- super({
9
- name: "AccessDeniedException",
10
- $fault: "client",
11
- ...opts,
12
- });
13
- Object.setPrototypeOf(this, AccessDeniedException.prototype);
14
- this.Message = opts.Message;
15
- this.Code = opts.Code;
16
- }
17
- }
18
- export const ChallengeType = {
19
- FACE_MOVEMENT_AND_LIGHT_CHALLENGE: "FaceMovementAndLightChallenge",
20
- FACE_MOVEMENT_CHALLENGE: "FaceMovementChallenge",
21
- };
22
- export const LightChallengeType = {
23
- SEQUENTIAL: "SEQUENTIAL",
24
- };
25
- export class InternalServerException extends __BaseException {
26
- name = "InternalServerException";
27
- $fault = "server";
28
- Message;
29
- Code;
30
- constructor(opts) {
31
- super({
32
- name: "InternalServerException",
33
- $fault: "server",
34
- ...opts,
35
- });
36
- Object.setPrototypeOf(this, InternalServerException.prototype);
37
- this.Message = opts.Message;
38
- this.Code = opts.Code;
39
- }
40
- }
41
- export class ServiceQuotaExceededException extends __BaseException {
42
- name = "ServiceQuotaExceededException";
43
- $fault = "client";
44
- Message;
45
- Code;
46
- constructor(opts) {
47
- super({
48
- name: "ServiceQuotaExceededException",
49
- $fault: "client",
50
- ...opts,
51
- });
52
- Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
53
- this.Message = opts.Message;
54
- this.Code = opts.Code;
55
- }
56
- }
57
- export class ServiceUnavailableException extends __BaseException {
58
- name = "ServiceUnavailableException";
59
- $fault = "server";
60
- Message;
61
- Code;
62
- constructor(opts) {
63
- super({
64
- name: "ServiceUnavailableException",
65
- $fault: "server",
66
- ...opts,
67
- });
68
- Object.setPrototypeOf(this, ServiceUnavailableException.prototype);
69
- this.Message = opts.Message;
70
- this.Code = opts.Code;
71
- }
72
- }
73
- export class ThrottlingException extends __BaseException {
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
- export class ValidationException extends __BaseException {
90
- name = "ValidationException";
91
- $fault = "client";
92
- Message;
93
- Code;
94
- constructor(opts) {
95
- super({
96
- name: "ValidationException",
97
- $fault: "client",
98
- ...opts,
99
- });
100
- Object.setPrototypeOf(this, ValidationException.prototype);
101
- this.Message = opts.Message;
102
- this.Code = opts.Code;
103
- }
104
- }
105
- export class SessionNotFoundException extends __BaseException {
106
- name = "SessionNotFoundException";
107
- $fault = "client";
108
- Message;
109
- Code;
110
- constructor(opts) {
111
- super({
112
- name: "SessionNotFoundException",
113
- $fault: "client",
114
- ...opts,
115
- });
116
- Object.setPrototypeOf(this, SessionNotFoundException.prototype);
117
- this.Message = opts.Message;
118
- this.Code = opts.Code;
119
- }
120
- }
1
+ export {};
@@ -89,7 +89,7 @@ const _xarslvh = "x-amz-rekognition-streaming-liveness-video-height";
89
89
  const _xarslvw = "x-amz-rekognition-streaming-liveness-video-width";
90
90
  const n0 = "com.amazonaws.rekognitionstreaming";
91
91
  import { TypeRegistry } from "@smithy/core/schema";
92
- import { AccessDeniedException as __AccessDeniedException, InternalServerException as __InternalServerException, ServiceQuotaExceededException as __ServiceQuotaExceededException, ServiceUnavailableException as __ServiceUnavailableException, SessionNotFoundException as __SessionNotFoundException, ThrottlingException as __ThrottlingException, ValidationException as __ValidationException, } from "../models/index";
92
+ import { AccessDeniedException as __AccessDeniedException, InternalServerException as __InternalServerException, ServiceQuotaExceededException as __ServiceQuotaExceededException, ServiceUnavailableException as __ServiceUnavailableException, SessionNotFoundException as __SessionNotFoundException, ThrottlingException as __ThrottlingException, ValidationException as __ValidationException, } from "../models/errors";
93
93
  import { RekognitionStreamingServiceException as __RekognitionStreamingServiceException } from "../models/RekognitionStreamingServiceException";
94
94
  export var AccessDeniedException = [
95
95
  -3,
@@ -30,5 +30,7 @@ export { ClientInputEndpointParameters } from "./endpoint/EndpointParameters";
30
30
  export type { RuntimeExtension } from "./runtimeExtensions";
31
31
  export type { RekognitionStreamingExtensionConfiguration } from "./extensionConfiguration";
32
32
  export * from "./commands";
33
- export * from "./models";
33
+ export * from "./models/enums";
34
+ export * from "./models/errors";
35
+ export type * from "./models/models_0";
34
36
  export { RekognitionStreamingServiceException } from "./models/RekognitionStreamingServiceException";
@@ -0,0 +1,23 @@
1
+ /**
2
+ * @public
3
+ * @enum
4
+ */
5
+ export declare const ChallengeType: {
6
+ readonly FACE_MOVEMENT_AND_LIGHT_CHALLENGE: "FaceMovementAndLightChallenge";
7
+ readonly FACE_MOVEMENT_CHALLENGE: "FaceMovementChallenge";
8
+ };
9
+ /**
10
+ * @public
11
+ */
12
+ export type ChallengeType = (typeof ChallengeType)[keyof typeof ChallengeType];
13
+ /**
14
+ * @public
15
+ * @enum
16
+ */
17
+ export declare const LightChallengeType: {
18
+ readonly SEQUENTIAL: "SEQUENTIAL";
19
+ };
20
+ /**
21
+ * @public
22
+ */
23
+ export type LightChallengeType = (typeof LightChallengeType)[keyof typeof LightChallengeType];
@@ -0,0 +1,105 @@
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
+ import { RekognitionStreamingServiceException as __BaseException } from "./RekognitionStreamingServiceException";
3
+ /**
4
+ * <p>Occurs when the client isn't authorized to perform the action.</p>
5
+ * @public
6
+ */
7
+ export declare class AccessDeniedException extends __BaseException {
8
+ readonly name: "AccessDeniedException";
9
+ readonly $fault: "client";
10
+ Message?: string | undefined;
11
+ Code?: string | undefined;
12
+ /**
13
+ * @internal
14
+ */
15
+ constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
16
+ }
17
+ /**
18
+ * <p>Unexpected error during processing of request.</p>
19
+ * @public
20
+ */
21
+ export declare class InternalServerException extends __BaseException {
22
+ readonly name: "InternalServerException";
23
+ readonly $fault: "server";
24
+ Message?: string | undefined;
25
+ Code?: string | undefined;
26
+ /**
27
+ * @internal
28
+ */
29
+ constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
30
+ }
31
+ /**
32
+ * <p>Occurs when a request would cause a service quota to be exceeded.</p>
33
+ * @public
34
+ */
35
+ export declare class ServiceQuotaExceededException extends __BaseException {
36
+ readonly name: "ServiceQuotaExceededException";
37
+ readonly $fault: "client";
38
+ Message?: string | undefined;
39
+ Code?: string | undefined;
40
+ /**
41
+ * @internal
42
+ */
43
+ constructor(opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>);
44
+ }
45
+ /**
46
+ * <p>Service-wide throttling to recover from an operational event or service is not able to scale.</p>
47
+ * @public
48
+ */
49
+ export declare class ServiceUnavailableException extends __BaseException {
50
+ readonly name: "ServiceUnavailableException";
51
+ readonly $fault: "server";
52
+ Message?: string | undefined;
53
+ Code?: string | undefined;
54
+ /**
55
+ * @internal
56
+ */
57
+ constructor(opts: __ExceptionOptionType<ServiceUnavailableException, __BaseException>);
58
+ }
59
+ /**
60
+ * <p>A request was denied due to request throttling. Occurs when too many requests were made by a user
61
+ * (exceeding their service quota), the service isn't able to scale, or a service-wide throttling was done to recover from an operational event.</p>
62
+ * @public
63
+ */
64
+ export declare class ThrottlingException extends __BaseException {
65
+ readonly name: "ThrottlingException";
66
+ readonly $fault: "client";
67
+ Message?: string | undefined;
68
+ Code?: string | undefined;
69
+ /**
70
+ * @internal
71
+ */
72
+ constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
73
+ }
74
+ /**
75
+ * <p>The input fails to satisfy the constraints specified by the service. Potential reasons
76
+ * inlcude: video quality or size is invalid, video container format not supported, video does
77
+ * not have enough information - no person detected in video, request couldn't be parsed or is
78
+ * invalid, session has expired or is invalid, S3 bucket is invalid/in another AWS region, KMS
79
+ * Key is invalid.</p>
80
+ * @public
81
+ */
82
+ export declare class ValidationException extends __BaseException {
83
+ readonly name: "ValidationException";
84
+ readonly $fault: "client";
85
+ Message?: string | undefined;
86
+ Code?: string | undefined;
87
+ /**
88
+ * @internal
89
+ */
90
+ constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
91
+ }
92
+ /**
93
+ * <p>Occurs when the given <code>sessionId</code> is not found.</p>
94
+ * @public
95
+ */
96
+ export declare class SessionNotFoundException extends __BaseException {
97
+ readonly name: "SessionNotFoundException";
98
+ readonly $fault: "client";
99
+ Message?: string | undefined;
100
+ Code?: string | undefined;
101
+ /**
102
+ * @internal
103
+ */
104
+ constructor(opts: __ExceptionOptionType<SessionNotFoundException, __BaseException>);
105
+ }
@@ -1,19 +1,5 @@
1
- import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
- import { RekognitionStreamingServiceException as __BaseException } from "./RekognitionStreamingServiceException";
3
- /**
4
- * <p>Occurs when the client isn't authorized to perform the action.</p>
5
- * @public
6
- */
7
- export declare class AccessDeniedException extends __BaseException {
8
- readonly name: "AccessDeniedException";
9
- readonly $fault: "client";
10
- Message?: string | undefined;
11
- Code?: string | undefined;
12
- /**
13
- * @internal
14
- */
15
- constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
16
- }
1
+ import { ChallengeType, LightChallengeType } from "./enums";
2
+ import { InternalServerException, ServiceQuotaExceededException, ServiceUnavailableException, ThrottlingException, ValidationException } from "./errors";
17
3
  /**
18
4
  * <p>Identifies the bounding box around a given label, face, text, object of interest, or
19
5
  * personal protective equipment. The left (x-coordinate) and top (y-coordinate) are coordinates
@@ -104,18 +90,6 @@ export interface ChallengeConfig {
104
90
  FaceIouHeightThreshold?: number | undefined;
105
91
  OvalFitTimeout?: number | undefined;
106
92
  }
107
- /**
108
- * @public
109
- * @enum
110
- */
111
- export declare const ChallengeType: {
112
- readonly FACE_MOVEMENT_AND_LIGHT_CHALLENGE: "FaceMovementAndLightChallenge";
113
- readonly FACE_MOVEMENT_CHALLENGE: "FaceMovementChallenge";
114
- };
115
- /**
116
- * @public
117
- */
118
- export type ChallengeType = (typeof ChallengeType)[keyof typeof ChallengeType];
119
93
  /**
120
94
  * @public
121
95
  */
@@ -356,17 +330,6 @@ export interface DisconnectionEvent {
356
330
  */
357
331
  TimestampMillis: number | undefined;
358
332
  }
359
- /**
360
- * @public
361
- * @enum
362
- */
363
- export declare const LightChallengeType: {
364
- readonly SEQUENTIAL: "SEQUENTIAL";
365
- };
366
- /**
367
- * @public
368
- */
369
- export type LightChallengeType = (typeof LightChallengeType)[keyof typeof LightChallengeType];
370
333
  /**
371
334
  * <p>Oval parameters need for oval display to complete oval match challenge.</p>
372
335
  * @public
@@ -435,20 +398,6 @@ export interface FaceMovementServerChallenge {
435
398
  */
436
399
  ChallengeConfig: ChallengeConfig | undefined;
437
400
  }
438
- /**
439
- * <p>Unexpected error during processing of request.</p>
440
- * @public
441
- */
442
- export declare class InternalServerException extends __BaseException {
443
- readonly name: "InternalServerException";
444
- readonly $fault: "server";
445
- Message?: string | undefined;
446
- Code?: string | undefined;
447
- /**
448
- * @internal
449
- */
450
- constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
451
- }
452
401
  /**
453
402
  * <p>Contains the video chunk blob.</p>
454
403
  * @public
@@ -573,67 +522,6 @@ export interface ServerSessionInformationEvent {
573
522
  */
574
523
  SessionInformation: SessionInformation | undefined;
575
524
  }
576
- /**
577
- * <p>Occurs when a request would cause a service quota to be exceeded.</p>
578
- * @public
579
- */
580
- export declare class ServiceQuotaExceededException extends __BaseException {
581
- readonly name: "ServiceQuotaExceededException";
582
- readonly $fault: "client";
583
- Message?: string | undefined;
584
- Code?: string | undefined;
585
- /**
586
- * @internal
587
- */
588
- constructor(opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>);
589
- }
590
- /**
591
- * <p>Service-wide throttling to recover from an operational event or service is not able to scale.</p>
592
- * @public
593
- */
594
- export declare class ServiceUnavailableException extends __BaseException {
595
- readonly name: "ServiceUnavailableException";
596
- readonly $fault: "server";
597
- Message?: string | undefined;
598
- Code?: string | undefined;
599
- /**
600
- * @internal
601
- */
602
- constructor(opts: __ExceptionOptionType<ServiceUnavailableException, __BaseException>);
603
- }
604
- /**
605
- * <p>A request was denied due to request throttling. Occurs when too many requests were made by a user
606
- * (exceeding their service quota), the service isn't able to scale, or a service-wide throttling was done to recover from an operational event.</p>
607
- * @public
608
- */
609
- export declare class ThrottlingException extends __BaseException {
610
- readonly name: "ThrottlingException";
611
- readonly $fault: "client";
612
- Message?: string | undefined;
613
- Code?: string | undefined;
614
- /**
615
- * @internal
616
- */
617
- constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
618
- }
619
- /**
620
- * <p>The input fails to satisfy the constraints specified by the service. Potential reasons
621
- * inlcude: video quality or size is invalid, video container format not supported, video does
622
- * not have enough information - no person detected in video, request couldn't be parsed or is
623
- * invalid, session has expired or is invalid, S3 bucket is invalid/in another AWS region, KMS
624
- * Key is invalid.</p>
625
- * @public
626
- */
627
- export declare class ValidationException extends __BaseException {
628
- readonly name: "ValidationException";
629
- readonly $fault: "client";
630
- Message?: string | undefined;
631
- Code?: string | undefined;
632
- /**
633
- * @internal
634
- */
635
- constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
636
- }
637
525
  /**
638
526
  * <p>Contains information event details and exception information for a Face Liveness verification response stream.</p>
639
527
  * @public
@@ -789,20 +677,6 @@ export declare namespace LivenessResponseStream {
789
677
  _: (name: string, value: any) => T;
790
678
  }
791
679
  }
792
- /**
793
- * <p>Occurs when the given <code>sessionId</code> is not found.</p>
794
- * @public
795
- */
796
- export declare class SessionNotFoundException extends __BaseException {
797
- readonly name: "SessionNotFoundException";
798
- readonly $fault: "client";
799
- Message?: string | undefined;
800
- Code?: string | undefined;
801
- /**
802
- * @internal
803
- */
804
- constructor(opts: __ExceptionOptionType<SessionNotFoundException, __BaseException>);
805
- }
806
680
  /**
807
681
  * @public
808
682
  */
@@ -4,5 +4,7 @@ export { ClientInputEndpointParameters } from "./endpoint/EndpointParameters";
4
4
  export { RuntimeExtension } from "./runtimeExtensions";
5
5
  export { RekognitionStreamingExtensionConfiguration } from "./extensionConfiguration";
6
6
  export * from "./commands";
7
- export * from "./models";
7
+ export * from "./models/enums";
8
+ export * from "./models/errors";
9
+ export * from "./models/models_0";
8
10
  export { RekognitionStreamingServiceException } from "./models/RekognitionStreamingServiceException";
@@ -0,0 +1,10 @@
1
+ export declare const ChallengeType: {
2
+ readonly FACE_MOVEMENT_AND_LIGHT_CHALLENGE: "FaceMovementAndLightChallenge";
3
+ readonly FACE_MOVEMENT_CHALLENGE: "FaceMovementChallenge";
4
+ };
5
+ export type ChallengeType = (typeof ChallengeType)[keyof typeof ChallengeType];
6
+ export declare const LightChallengeType: {
7
+ readonly SEQUENTIAL: "SEQUENTIAL";
8
+ };
9
+ export type LightChallengeType =
10
+ (typeof LightChallengeType)[keyof typeof LightChallengeType];
@@ -0,0 +1,65 @@
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
+ import { RekognitionStreamingServiceException as __BaseException } from "./RekognitionStreamingServiceException";
3
+ export declare class AccessDeniedException extends __BaseException {
4
+ readonly name: "AccessDeniedException";
5
+ readonly $fault: "client";
6
+ Message?: string | undefined;
7
+ Code?: string | undefined;
8
+ constructor(
9
+ opts: __ExceptionOptionType<AccessDeniedException, __BaseException>
10
+ );
11
+ }
12
+ export declare class InternalServerException extends __BaseException {
13
+ readonly name: "InternalServerException";
14
+ readonly $fault: "server";
15
+ Message?: string | undefined;
16
+ Code?: string | undefined;
17
+ constructor(
18
+ opts: __ExceptionOptionType<InternalServerException, __BaseException>
19
+ );
20
+ }
21
+ export declare class ServiceQuotaExceededException extends __BaseException {
22
+ readonly name: "ServiceQuotaExceededException";
23
+ readonly $fault: "client";
24
+ Message?: string | undefined;
25
+ Code?: string | undefined;
26
+ constructor(
27
+ opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>
28
+ );
29
+ }
30
+ export declare class ServiceUnavailableException extends __BaseException {
31
+ readonly name: "ServiceUnavailableException";
32
+ readonly $fault: "server";
33
+ Message?: string | undefined;
34
+ Code?: string | undefined;
35
+ constructor(
36
+ opts: __ExceptionOptionType<ServiceUnavailableException, __BaseException>
37
+ );
38
+ }
39
+ export declare class ThrottlingException extends __BaseException {
40
+ readonly name: "ThrottlingException";
41
+ readonly $fault: "client";
42
+ Message?: string | undefined;
43
+ Code?: string | undefined;
44
+ constructor(
45
+ opts: __ExceptionOptionType<ThrottlingException, __BaseException>
46
+ );
47
+ }
48
+ export declare class ValidationException extends __BaseException {
49
+ readonly name: "ValidationException";
50
+ readonly $fault: "client";
51
+ Message?: string | undefined;
52
+ Code?: string | undefined;
53
+ constructor(
54
+ opts: __ExceptionOptionType<ValidationException, __BaseException>
55
+ );
56
+ }
57
+ export declare class SessionNotFoundException extends __BaseException {
58
+ readonly name: "SessionNotFoundException";
59
+ readonly $fault: "client";
60
+ Message?: string | undefined;
61
+ Code?: string | undefined;
62
+ constructor(
63
+ opts: __ExceptionOptionType<SessionNotFoundException, __BaseException>
64
+ );
65
+ }
@@ -1,14 +1,11 @@
1
- import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
- import { RekognitionStreamingServiceException as __BaseException } from "./RekognitionStreamingServiceException";
3
- export declare class AccessDeniedException extends __BaseException {
4
- readonly name: "AccessDeniedException";
5
- readonly $fault: "client";
6
- Message?: string | undefined;
7
- Code?: string | undefined;
8
- constructor(
9
- opts: __ExceptionOptionType<AccessDeniedException, __BaseException>
10
- );
11
- }
1
+ import { ChallengeType, LightChallengeType } from "./enums";
2
+ import {
3
+ InternalServerException,
4
+ ServiceQuotaExceededException,
5
+ ServiceUnavailableException,
6
+ ThrottlingException,
7
+ ValidationException,
8
+ } from "./errors";
12
9
  export interface BoundingBox {
13
10
  Width: number | undefined;
14
11
  Height: number | undefined;
@@ -28,11 +25,6 @@ export interface ChallengeConfig {
28
25
  FaceIouHeightThreshold?: number | undefined;
29
26
  OvalFitTimeout?: number | undefined;
30
27
  }
31
- export declare const ChallengeType: {
32
- readonly FACE_MOVEMENT_AND_LIGHT_CHALLENGE: "FaceMovementAndLightChallenge";
33
- readonly FACE_MOVEMENT_CHALLENGE: "FaceMovementChallenge";
34
- };
35
- export type ChallengeType = (typeof ChallengeType)[keyof typeof ChallengeType];
36
28
  export interface ChallengeEvent {
37
29
  Version: string | undefined;
38
30
  Type: ChallengeType | undefined;
@@ -109,11 +101,6 @@ export interface ColorSequence {
109
101
  export interface DisconnectionEvent {
110
102
  TimestampMillis: number | undefined;
111
103
  }
112
- export declare const LightChallengeType: {
113
- readonly SEQUENTIAL: "SEQUENTIAL";
114
- };
115
- export type LightChallengeType =
116
- (typeof LightChallengeType)[keyof typeof LightChallengeType];
117
104
  export interface OvalParameters {
118
105
  Width: number | undefined;
119
106
  Height: number | undefined;
@@ -130,15 +117,6 @@ export interface FaceMovementServerChallenge {
130
117
  OvalParameters: OvalParameters | undefined;
131
118
  ChallengeConfig: ChallengeConfig | undefined;
132
119
  }
133
- export declare class InternalServerException extends __BaseException {
134
- readonly name: "InternalServerException";
135
- readonly $fault: "server";
136
- Message?: string | undefined;
137
- Code?: string | undefined;
138
- constructor(
139
- opts: __ExceptionOptionType<InternalServerException, __BaseException>
140
- );
141
- }
142
120
  export interface VideoEvent {
143
121
  VideoChunk?: Uint8Array | undefined;
144
122
  TimestampMillis?: number | undefined;
@@ -203,42 +181,6 @@ export interface SessionInformation {
203
181
  export interface ServerSessionInformationEvent {
204
182
  SessionInformation: SessionInformation | undefined;
205
183
  }
206
- export declare class ServiceQuotaExceededException extends __BaseException {
207
- readonly name: "ServiceQuotaExceededException";
208
- readonly $fault: "client";
209
- Message?: string | undefined;
210
- Code?: string | undefined;
211
- constructor(
212
- opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>
213
- );
214
- }
215
- export declare class ServiceUnavailableException extends __BaseException {
216
- readonly name: "ServiceUnavailableException";
217
- readonly $fault: "server";
218
- Message?: string | undefined;
219
- Code?: string | undefined;
220
- constructor(
221
- opts: __ExceptionOptionType<ServiceUnavailableException, __BaseException>
222
- );
223
- }
224
- export declare class ThrottlingException extends __BaseException {
225
- readonly name: "ThrottlingException";
226
- readonly $fault: "client";
227
- Message?: string | undefined;
228
- Code?: string | undefined;
229
- constructor(
230
- opts: __ExceptionOptionType<ThrottlingException, __BaseException>
231
- );
232
- }
233
- export declare class ValidationException extends __BaseException {
234
- readonly name: "ValidationException";
235
- readonly $fault: "client";
236
- Message?: string | undefined;
237
- Code?: string | undefined;
238
- constructor(
239
- opts: __ExceptionOptionType<ValidationException, __BaseException>
240
- );
241
- }
242
184
  export type LivenessResponseStream =
243
185
  | LivenessResponseStream.ChallengeEventMember
244
186
  | LivenessResponseStream.DisconnectionEventMember
@@ -361,15 +303,6 @@ export declare namespace LivenessResponseStream {
361
303
  _: (name: string, value: any) => T;
362
304
  }
363
305
  }
364
- export declare class SessionNotFoundException extends __BaseException {
365
- readonly name: "SessionNotFoundException";
366
- readonly $fault: "client";
367
- Message?: string | undefined;
368
- Code?: string | undefined;
369
- constructor(
370
- opts: __ExceptionOptionType<SessionNotFoundException, __BaseException>
371
- );
372
- }
373
306
  export interface StartFaceLivenessSessionRequest {
374
307
  SessionId: string | undefined;
375
308
  VideoWidth: string | undefined;
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.934.0",
4
+ "version": "3.935.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-rekognitionstreaming",
@@ -20,22 +20,22 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/core": "3.934.0",
24
- "@aws-sdk/credential-provider-node": "3.934.0",
23
+ "@aws-sdk/core": "3.935.0",
24
+ "@aws-sdk/credential-provider-node": "3.935.0",
25
25
  "@aws-sdk/eventstream-handler-node": "3.930.0",
26
26
  "@aws-sdk/middleware-eventstream": "3.930.0",
27
27
  "@aws-sdk/middleware-host-header": "3.930.0",
28
28
  "@aws-sdk/middleware-logger": "3.930.0",
29
29
  "@aws-sdk/middleware-recursion-detection": "3.933.0",
30
- "@aws-sdk/middleware-user-agent": "3.934.0",
30
+ "@aws-sdk/middleware-user-agent": "3.935.0",
31
31
  "@aws-sdk/middleware-websocket": "3.930.0",
32
32
  "@aws-sdk/region-config-resolver": "3.930.0",
33
33
  "@aws-sdk/types": "3.930.0",
34
34
  "@aws-sdk/util-endpoints": "3.930.0",
35
35
  "@aws-sdk/util-user-agent-browser": "3.930.0",
36
- "@aws-sdk/util-user-agent-node": "3.934.0",
36
+ "@aws-sdk/util-user-agent-node": "3.935.0",
37
37
  "@smithy/config-resolver": "^4.4.3",
38
- "@smithy/core": "^3.18.2",
38
+ "@smithy/core": "^3.18.5",
39
39
  "@smithy/eventstream-serde-browser": "^4.2.5",
40
40
  "@smithy/eventstream-serde-config-resolver": "^4.3.5",
41
41
  "@smithy/eventstream-serde-node": "^4.2.5",
@@ -43,21 +43,21 @@
43
43
  "@smithy/hash-node": "^4.2.5",
44
44
  "@smithy/invalid-dependency": "^4.2.5",
45
45
  "@smithy/middleware-content-length": "^4.2.5",
46
- "@smithy/middleware-endpoint": "^4.3.9",
47
- "@smithy/middleware-retry": "^4.4.9",
48
- "@smithy/middleware-serde": "^4.2.5",
46
+ "@smithy/middleware-endpoint": "^4.3.12",
47
+ "@smithy/middleware-retry": "^4.4.12",
48
+ "@smithy/middleware-serde": "^4.2.6",
49
49
  "@smithy/middleware-stack": "^4.2.5",
50
50
  "@smithy/node-config-provider": "^4.3.5",
51
51
  "@smithy/node-http-handler": "^4.4.5",
52
52
  "@smithy/protocol-http": "^5.3.5",
53
- "@smithy/smithy-client": "^4.9.5",
53
+ "@smithy/smithy-client": "^4.9.8",
54
54
  "@smithy/types": "^4.9.0",
55
55
  "@smithy/url-parser": "^4.2.5",
56
56
  "@smithy/util-base64": "^4.3.0",
57
57
  "@smithy/util-body-length-browser": "^4.2.0",
58
58
  "@smithy/util-body-length-node": "^4.2.1",
59
- "@smithy/util-defaults-mode-browser": "^4.3.8",
60
- "@smithy/util-defaults-mode-node": "^4.2.11",
59
+ "@smithy/util-defaults-mode-browser": "^4.3.11",
60
+ "@smithy/util-defaults-mode-node": "^4.2.14",
61
61
  "@smithy/util-endpoints": "^3.2.5",
62
62
  "@smithy/util-middleware": "^4.2.5",
63
63
  "@smithy/util-retry": "^4.2.5",
@@ -1 +0,0 @@
1
- export * from "./models_0";
@@ -1 +0,0 @@
1
- export * from "./models_0";
@@ -1 +0,0 @@
1
- export * from "./models_0";