@aws-sdk/client-rekognitionstreaming 3.305.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/LICENSE +201 -0
- package/README.md +222 -0
- package/dist-cjs/RekognitionStreaming.js +37 -0
- package/dist-cjs/RekognitionStreamingClient.js +46 -0
- package/dist-cjs/commands/StartFaceLivenessSessionCommand.js +50 -0
- package/dist-cjs/commands/StartStreamingLivenessSessionCommand.js +50 -0
- package/dist-cjs/commands/index.js +5 -0
- package/dist-cjs/endpoint/EndpointParameters.js +12 -0
- package/dist-cjs/endpoint/endpointResolver.js +12 -0
- package/dist-cjs/endpoint/ruleset.js +7 -0
- package/dist-cjs/index.js +10 -0
- package/dist-cjs/models/RekognitionStreamingServiceException.js +11 -0
- package/dist-cjs/models/index.js +4 -0
- package/dist-cjs/models/models_0.js +188 -0
- package/dist-cjs/protocols/Aws_restJson1.js +573 -0
- package/dist-cjs/runtimeConfig.browser.js +44 -0
- package/dist-cjs/runtimeConfig.js +52 -0
- package/dist-cjs/runtimeConfig.native.js +18 -0
- package/dist-cjs/runtimeConfig.shared.js +21 -0
- package/dist-es/RekognitionStreaming.js +33 -0
- package/dist-es/RekognitionStreamingClient.js +42 -0
- package/dist-es/commands/StartFaceLivenessSessionCommand.js +46 -0
- package/dist-es/commands/StartStreamingLivenessSessionCommand.js +46 -0
- package/dist-es/commands/index.js +2 -0
- package/dist-es/endpoint/EndpointParameters.js +8 -0
- package/dist-es/endpoint/endpointResolver.js +8 -0
- package/dist-es/endpoint/ruleset.js +4 -0
- package/dist-es/index.js +5 -0
- package/dist-es/models/RekognitionStreamingServiceException.js +7 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +173 -0
- package/dist-es/protocols/Aws_restJson1.js +566 -0
- package/dist-es/runtimeConfig.browser.js +39 -0
- package/dist-es/runtimeConfig.js +47 -0
- package/dist-es/runtimeConfig.native.js +14 -0
- package/dist-es/runtimeConfig.shared.js +17 -0
- package/dist-types/RekognitionStreaming.d.ts +21 -0
- package/dist-types/RekognitionStreamingClient.d.ts +174 -0
- package/dist-types/commands/StartFaceLivenessSessionCommand.d.ts +39 -0
- package/dist-types/commands/StartStreamingLivenessSessionCommand.d.ts +39 -0
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +19 -0
- package/dist-types/endpoint/endpointResolver.d.ts +5 -0
- package/dist-types/endpoint/ruleset.d.ts +2 -0
- package/dist-types/index.d.ts +5 -0
- package/dist-types/models/RekognitionStreamingServiceException.d.ts +12 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +415 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +8 -0
- package/dist-types/runtimeConfig.browser.d.ts +44 -0
- package/dist-types/runtimeConfig.d.ts +44 -0
- package/dist-types/runtimeConfig.native.d.ts +43 -0
- package/dist-types/runtimeConfig.shared.d.ts +18 -0
- package/dist-types/ts3.4/RekognitionStreaming.d.ts +38 -0
- package/dist-types/ts3.4/RekognitionStreamingClient.d.ts +147 -0
- package/dist-types/ts3.4/commands/StartFaceLivenessSessionCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/StartStreamingLivenessSessionCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/index.d.ts +2 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +33 -0
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
- package/dist-types/ts3.4/index.d.ts +5 -0
- package/dist-types/ts3.4/models/RekognitionStreamingServiceException.d.ts +7 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +316 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +32 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +95 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +95 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +84 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +20 -0
- package/package.json +104 -0
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
import {
|
|
2
|
+
RegionInputConfig,
|
|
3
|
+
RegionResolvedConfig,
|
|
4
|
+
} from "@aws-sdk/config-resolver";
|
|
5
|
+
import {
|
|
6
|
+
EventStreamSerdeInputConfig,
|
|
7
|
+
EventStreamSerdeResolvedConfig,
|
|
8
|
+
} from "@aws-sdk/eventstream-serde-config-resolver";
|
|
9
|
+
import {
|
|
10
|
+
EndpointInputConfig,
|
|
11
|
+
EndpointResolvedConfig,
|
|
12
|
+
} from "@aws-sdk/middleware-endpoint";
|
|
13
|
+
import {
|
|
14
|
+
EventStreamInputConfig,
|
|
15
|
+
EventStreamResolvedConfig,
|
|
16
|
+
} from "@aws-sdk/middleware-eventstream";
|
|
17
|
+
import {
|
|
18
|
+
HostHeaderInputConfig,
|
|
19
|
+
HostHeaderResolvedConfig,
|
|
20
|
+
} from "@aws-sdk/middleware-host-header";
|
|
21
|
+
import {
|
|
22
|
+
RetryInputConfig,
|
|
23
|
+
RetryResolvedConfig,
|
|
24
|
+
} from "@aws-sdk/middleware-retry";
|
|
25
|
+
import {
|
|
26
|
+
AwsAuthInputConfig,
|
|
27
|
+
AwsAuthResolvedConfig,
|
|
28
|
+
} from "@aws-sdk/middleware-signing";
|
|
29
|
+
import {
|
|
30
|
+
UserAgentInputConfig,
|
|
31
|
+
UserAgentResolvedConfig,
|
|
32
|
+
} from "@aws-sdk/middleware-user-agent";
|
|
33
|
+
import {
|
|
34
|
+
WebSocketInputConfig,
|
|
35
|
+
WebSocketResolvedConfig,
|
|
36
|
+
} from "@aws-sdk/middleware-websocket";
|
|
37
|
+
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
38
|
+
import {
|
|
39
|
+
Client as __Client,
|
|
40
|
+
DefaultsMode as __DefaultsMode,
|
|
41
|
+
SmithyConfiguration as __SmithyConfiguration,
|
|
42
|
+
SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
|
|
43
|
+
} from "@aws-sdk/smithy-client";
|
|
44
|
+
import {
|
|
45
|
+
BodyLengthCalculator as __BodyLengthCalculator,
|
|
46
|
+
ChecksumConstructor as __ChecksumConstructor,
|
|
47
|
+
Credentials as __Credentials,
|
|
48
|
+
Decoder as __Decoder,
|
|
49
|
+
Encoder as __Encoder,
|
|
50
|
+
EventStreamPayloadHandlerProvider as __EventStreamPayloadHandlerProvider,
|
|
51
|
+
EventStreamSerdeProvider as __EventStreamSerdeProvider,
|
|
52
|
+
HashConstructor as __HashConstructor,
|
|
53
|
+
HttpHandlerOptions as __HttpHandlerOptions,
|
|
54
|
+
Logger as __Logger,
|
|
55
|
+
Provider as __Provider,
|
|
56
|
+
Provider,
|
|
57
|
+
StreamCollector as __StreamCollector,
|
|
58
|
+
UrlParser as __UrlParser,
|
|
59
|
+
UserAgent as __UserAgent,
|
|
60
|
+
} from "@aws-sdk/types";
|
|
61
|
+
import {
|
|
62
|
+
StartFaceLivenessSessionCommandInput,
|
|
63
|
+
StartFaceLivenessSessionCommandOutput,
|
|
64
|
+
} from "./commands/StartFaceLivenessSessionCommand";
|
|
65
|
+
import {
|
|
66
|
+
StartStreamingLivenessSessionCommandInput,
|
|
67
|
+
StartStreamingLivenessSessionCommandOutput,
|
|
68
|
+
} from "./commands/StartStreamingLivenessSessionCommand";
|
|
69
|
+
import {
|
|
70
|
+
ClientInputEndpointParameters,
|
|
71
|
+
ClientResolvedEndpointParameters,
|
|
72
|
+
EndpointParameters,
|
|
73
|
+
} from "./endpoint/EndpointParameters";
|
|
74
|
+
export type ServiceInputTypes =
|
|
75
|
+
| StartFaceLivenessSessionCommandInput
|
|
76
|
+
| StartStreamingLivenessSessionCommandInput;
|
|
77
|
+
export type ServiceOutputTypes =
|
|
78
|
+
| StartFaceLivenessSessionCommandOutput
|
|
79
|
+
| StartStreamingLivenessSessionCommandOutput;
|
|
80
|
+
export interface ClientDefaults
|
|
81
|
+
extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
|
|
82
|
+
requestHandler?: __HttpHandler;
|
|
83
|
+
sha256?: __ChecksumConstructor | __HashConstructor;
|
|
84
|
+
urlParser?: __UrlParser;
|
|
85
|
+
bodyLengthChecker?: __BodyLengthCalculator;
|
|
86
|
+
streamCollector?: __StreamCollector;
|
|
87
|
+
base64Decoder?: __Decoder;
|
|
88
|
+
base64Encoder?: __Encoder;
|
|
89
|
+
utf8Decoder?: __Decoder;
|
|
90
|
+
utf8Encoder?: __Encoder;
|
|
91
|
+
runtime?: string;
|
|
92
|
+
disableHostPrefix?: boolean;
|
|
93
|
+
serviceId?: string;
|
|
94
|
+
useDualstackEndpoint?: boolean | __Provider<boolean>;
|
|
95
|
+
useFipsEndpoint?: boolean | __Provider<boolean>;
|
|
96
|
+
region?: string | __Provider<string>;
|
|
97
|
+
credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
|
|
98
|
+
eventStreamPayloadHandlerProvider?: __EventStreamPayloadHandlerProvider;
|
|
99
|
+
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
100
|
+
maxAttempts?: number | __Provider<number>;
|
|
101
|
+
retryMode?: string | __Provider<string>;
|
|
102
|
+
logger?: __Logger;
|
|
103
|
+
eventStreamSerdeProvider?: __EventStreamSerdeProvider;
|
|
104
|
+
defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
|
|
105
|
+
}
|
|
106
|
+
type RekognitionStreamingClientConfigType = Partial<
|
|
107
|
+
__SmithyConfiguration<__HttpHandlerOptions>
|
|
108
|
+
> &
|
|
109
|
+
ClientDefaults &
|
|
110
|
+
RegionInputConfig &
|
|
111
|
+
EndpointInputConfig<EndpointParameters> &
|
|
112
|
+
RetryInputConfig &
|
|
113
|
+
HostHeaderInputConfig &
|
|
114
|
+
AwsAuthInputConfig &
|
|
115
|
+
EventStreamInputConfig &
|
|
116
|
+
WebSocketInputConfig &
|
|
117
|
+
UserAgentInputConfig &
|
|
118
|
+
EventStreamSerdeInputConfig &
|
|
119
|
+
ClientInputEndpointParameters;
|
|
120
|
+
export interface RekognitionStreamingClientConfig
|
|
121
|
+
extends RekognitionStreamingClientConfigType {}
|
|
122
|
+
type RekognitionStreamingClientResolvedConfigType =
|
|
123
|
+
__SmithyResolvedConfiguration<__HttpHandlerOptions> &
|
|
124
|
+
Required<ClientDefaults> &
|
|
125
|
+
RegionResolvedConfig &
|
|
126
|
+
EndpointResolvedConfig<EndpointParameters> &
|
|
127
|
+
RetryResolvedConfig &
|
|
128
|
+
HostHeaderResolvedConfig &
|
|
129
|
+
AwsAuthResolvedConfig &
|
|
130
|
+
EventStreamResolvedConfig &
|
|
131
|
+
WebSocketResolvedConfig &
|
|
132
|
+
UserAgentResolvedConfig &
|
|
133
|
+
EventStreamSerdeResolvedConfig &
|
|
134
|
+
ClientResolvedEndpointParameters;
|
|
135
|
+
export interface RekognitionStreamingClientResolvedConfig
|
|
136
|
+
extends RekognitionStreamingClientResolvedConfigType {}
|
|
137
|
+
export declare class RekognitionStreamingClient extends __Client<
|
|
138
|
+
__HttpHandlerOptions,
|
|
139
|
+
ServiceInputTypes,
|
|
140
|
+
ServiceOutputTypes,
|
|
141
|
+
RekognitionStreamingClientResolvedConfig
|
|
142
|
+
> {
|
|
143
|
+
readonly config: RekognitionStreamingClientResolvedConfig;
|
|
144
|
+
constructor(configuration: RekognitionStreamingClientConfig);
|
|
145
|
+
destroy(): void;
|
|
146
|
+
}
|
|
147
|
+
export {};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
|
+
import {
|
|
4
|
+
Handler,
|
|
5
|
+
HttpHandlerOptions as __HttpHandlerOptions,
|
|
6
|
+
MetadataBearer as __MetadataBearer,
|
|
7
|
+
MiddlewareStack,
|
|
8
|
+
} from "@aws-sdk/types";
|
|
9
|
+
import {
|
|
10
|
+
StartFaceLivenessSessionRequest,
|
|
11
|
+
StartFaceLivenessSessionResponse,
|
|
12
|
+
} from "../models/models_0";
|
|
13
|
+
import {
|
|
14
|
+
RekognitionStreamingClientResolvedConfig,
|
|
15
|
+
ServiceInputTypes,
|
|
16
|
+
ServiceOutputTypes,
|
|
17
|
+
} from "../RekognitionStreamingClient";
|
|
18
|
+
export interface StartFaceLivenessSessionCommandInput
|
|
19
|
+
extends StartFaceLivenessSessionRequest {}
|
|
20
|
+
export interface StartFaceLivenessSessionCommandOutput
|
|
21
|
+
extends StartFaceLivenessSessionResponse,
|
|
22
|
+
__MetadataBearer {}
|
|
23
|
+
export declare class StartFaceLivenessSessionCommand extends $Command<
|
|
24
|
+
StartFaceLivenessSessionCommandInput,
|
|
25
|
+
StartFaceLivenessSessionCommandOutput,
|
|
26
|
+
RekognitionStreamingClientResolvedConfig
|
|
27
|
+
> {
|
|
28
|
+
readonly input: StartFaceLivenessSessionCommandInput;
|
|
29
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
30
|
+
constructor(input: StartFaceLivenessSessionCommandInput);
|
|
31
|
+
resolveMiddleware(
|
|
32
|
+
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
33
|
+
configuration: RekognitionStreamingClientResolvedConfig,
|
|
34
|
+
options?: __HttpHandlerOptions
|
|
35
|
+
): Handler<
|
|
36
|
+
StartFaceLivenessSessionCommandInput,
|
|
37
|
+
StartFaceLivenessSessionCommandOutput
|
|
38
|
+
>;
|
|
39
|
+
private serialize;
|
|
40
|
+
private deserialize;
|
|
41
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
|
+
import {
|
|
4
|
+
Handler,
|
|
5
|
+
HttpHandlerOptions as __HttpHandlerOptions,
|
|
6
|
+
MetadataBearer as __MetadataBearer,
|
|
7
|
+
MiddlewareStack,
|
|
8
|
+
} from "@aws-sdk/types";
|
|
9
|
+
import {
|
|
10
|
+
StartStreamingLivenessSessionRequest,
|
|
11
|
+
StartStreamingLivenessSessionResponse,
|
|
12
|
+
} from "../models/models_0";
|
|
13
|
+
import {
|
|
14
|
+
RekognitionStreamingClientResolvedConfig,
|
|
15
|
+
ServiceInputTypes,
|
|
16
|
+
ServiceOutputTypes,
|
|
17
|
+
} from "../RekognitionStreamingClient";
|
|
18
|
+
export interface StartStreamingLivenessSessionCommandInput
|
|
19
|
+
extends StartStreamingLivenessSessionRequest {}
|
|
20
|
+
export interface StartStreamingLivenessSessionCommandOutput
|
|
21
|
+
extends StartStreamingLivenessSessionResponse,
|
|
22
|
+
__MetadataBearer {}
|
|
23
|
+
export declare class StartStreamingLivenessSessionCommand extends $Command<
|
|
24
|
+
StartStreamingLivenessSessionCommandInput,
|
|
25
|
+
StartStreamingLivenessSessionCommandOutput,
|
|
26
|
+
RekognitionStreamingClientResolvedConfig
|
|
27
|
+
> {
|
|
28
|
+
readonly input: StartStreamingLivenessSessionCommandInput;
|
|
29
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
30
|
+
constructor(input: StartStreamingLivenessSessionCommandInput);
|
|
31
|
+
resolveMiddleware(
|
|
32
|
+
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
33
|
+
configuration: RekognitionStreamingClientResolvedConfig,
|
|
34
|
+
options?: __HttpHandlerOptions
|
|
35
|
+
): Handler<
|
|
36
|
+
StartStreamingLivenessSessionCommandInput,
|
|
37
|
+
StartStreamingLivenessSessionCommandOutput
|
|
38
|
+
>;
|
|
39
|
+
private serialize;
|
|
40
|
+
private deserialize;
|
|
41
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Endpoint,
|
|
3
|
+
EndpointParameters as __EndpointParameters,
|
|
4
|
+
EndpointV2,
|
|
5
|
+
Provider,
|
|
6
|
+
} from "@aws-sdk/types";
|
|
7
|
+
export interface ClientInputEndpointParameters {
|
|
8
|
+
region?: string | Provider<string>;
|
|
9
|
+
useDualstackEndpoint?: boolean | Provider<boolean>;
|
|
10
|
+
useFipsEndpoint?: boolean | Provider<boolean>;
|
|
11
|
+
endpoint?:
|
|
12
|
+
| string
|
|
13
|
+
| Provider<string>
|
|
14
|
+
| Endpoint
|
|
15
|
+
| Provider<Endpoint>
|
|
16
|
+
| EndpointV2
|
|
17
|
+
| Provider<EndpointV2>;
|
|
18
|
+
}
|
|
19
|
+
export type ClientResolvedEndpointParameters = ClientInputEndpointParameters & {
|
|
20
|
+
defaultSigningName: string;
|
|
21
|
+
};
|
|
22
|
+
export declare const resolveClientEndpointParameters: <T>(
|
|
23
|
+
options: T & ClientInputEndpointParameters
|
|
24
|
+
) => T &
|
|
25
|
+
ClientInputEndpointParameters & {
|
|
26
|
+
defaultSigningName: string;
|
|
27
|
+
};
|
|
28
|
+
export interface EndpointParameters extends __EndpointParameters {
|
|
29
|
+
Region?: string;
|
|
30
|
+
UseDualStack?: boolean;
|
|
31
|
+
UseFIPS?: boolean;
|
|
32
|
+
Endpoint?: string;
|
|
33
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ServiceException as __ServiceException,
|
|
3
|
+
ServiceExceptionOptions as __ServiceExceptionOptions,
|
|
4
|
+
} from "@aws-sdk/smithy-client";
|
|
5
|
+
export declare class RekognitionStreamingServiceException extends __ServiceException {
|
|
6
|
+
constructor(options: __ServiceExceptionOptions);
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./models_0";
|
|
@@ -0,0 +1,316 @@
|
|
|
1
|
+
import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/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;
|
|
7
|
+
Code?: string;
|
|
8
|
+
constructor(
|
|
9
|
+
opts: __ExceptionOptionType<AccessDeniedException, __BaseException>
|
|
10
|
+
);
|
|
11
|
+
}
|
|
12
|
+
export interface BoundingBox {
|
|
13
|
+
Width: number | undefined;
|
|
14
|
+
Height: number | undefined;
|
|
15
|
+
Left: number | undefined;
|
|
16
|
+
Top: number | undefined;
|
|
17
|
+
}
|
|
18
|
+
export interface FreshnessColor {
|
|
19
|
+
RGB: number[] | undefined;
|
|
20
|
+
}
|
|
21
|
+
export interface ColorDisplayed {
|
|
22
|
+
CurrentColor: FreshnessColor | undefined;
|
|
23
|
+
PreviousColor?: FreshnessColor;
|
|
24
|
+
SequenceNumber: number | undefined;
|
|
25
|
+
CurrentColorStartTimestamp: number | undefined;
|
|
26
|
+
}
|
|
27
|
+
export interface InitialFace {
|
|
28
|
+
BoundingBox: BoundingBox | undefined;
|
|
29
|
+
InitialFaceDetectedTimestamp: number | undefined;
|
|
30
|
+
}
|
|
31
|
+
export interface TargetFace {
|
|
32
|
+
BoundingBox: BoundingBox | undefined;
|
|
33
|
+
FaceDetectedInTargetPositionStartTimestamp: number | undefined;
|
|
34
|
+
FaceDetectedInTargetPositionEndTimestamp: number | undefined;
|
|
35
|
+
}
|
|
36
|
+
export interface FaceMovementAndLightClientChallenge {
|
|
37
|
+
ChallengeId: string | undefined;
|
|
38
|
+
VideoStartTimestamp?: number;
|
|
39
|
+
InitialFace?: InitialFace;
|
|
40
|
+
TargetFace?: TargetFace;
|
|
41
|
+
ColorDisplayed?: ColorDisplayed;
|
|
42
|
+
}
|
|
43
|
+
export type ClientChallenge =
|
|
44
|
+
| ClientChallenge.FaceMovementAndLightChallengeMember
|
|
45
|
+
| ClientChallenge.$UnknownMember;
|
|
46
|
+
export declare namespace ClientChallenge {
|
|
47
|
+
interface FaceMovementAndLightChallengeMember {
|
|
48
|
+
FaceMovementAndLightChallenge: FaceMovementAndLightClientChallenge;
|
|
49
|
+
$unknown?: never;
|
|
50
|
+
}
|
|
51
|
+
interface $UnknownMember {
|
|
52
|
+
FaceMovementAndLightChallenge?: never;
|
|
53
|
+
$unknown: [string, any];
|
|
54
|
+
}
|
|
55
|
+
interface Visitor<T> {
|
|
56
|
+
FaceMovementAndLightChallenge: (
|
|
57
|
+
value: FaceMovementAndLightClientChallenge
|
|
58
|
+
) => T;
|
|
59
|
+
_: (name: string, value: any) => T;
|
|
60
|
+
}
|
|
61
|
+
const visit: <T>(value: ClientChallenge, visitor: Visitor<T>) => T;
|
|
62
|
+
}
|
|
63
|
+
export interface DeviceInformation {
|
|
64
|
+
VideoHeight: number | undefined;
|
|
65
|
+
VideoWidth: number | undefined;
|
|
66
|
+
ClientSDKVersion: string | undefined;
|
|
67
|
+
}
|
|
68
|
+
export interface ClientSessionInformationEvent {
|
|
69
|
+
DeviceInformation: DeviceInformation | undefined;
|
|
70
|
+
Challenge: ClientChallenge | undefined;
|
|
71
|
+
}
|
|
72
|
+
export interface ColorSequence {
|
|
73
|
+
FreshnessColor: FreshnessColor | undefined;
|
|
74
|
+
DownscrollDuration: number | undefined;
|
|
75
|
+
FlatDisplayDuration: number | undefined;
|
|
76
|
+
}
|
|
77
|
+
export interface DisconnectionEvent {
|
|
78
|
+
TimestampMillis: number | undefined;
|
|
79
|
+
}
|
|
80
|
+
export declare const LightChallengeType: {
|
|
81
|
+
readonly SEQUENTIAL: "SEQUENTIAL";
|
|
82
|
+
readonly SIMULTANEOUS: "SIMULTANEOUS";
|
|
83
|
+
};
|
|
84
|
+
export type LightChallengeType =
|
|
85
|
+
(typeof LightChallengeType)[keyof typeof LightChallengeType];
|
|
86
|
+
export interface OvalScaleFactors {
|
|
87
|
+
Width: number | undefined;
|
|
88
|
+
CenterX: number | undefined;
|
|
89
|
+
CenterY: number | undefined;
|
|
90
|
+
}
|
|
91
|
+
export interface FaceMovementAndLightServerChallenge {
|
|
92
|
+
OvalScaleFactors: OvalScaleFactors | undefined;
|
|
93
|
+
LightChallengeType: LightChallengeType | string | undefined;
|
|
94
|
+
ColorSequences: ColorSequence[] | undefined;
|
|
95
|
+
}
|
|
96
|
+
export declare class InternalServerException extends __BaseException {
|
|
97
|
+
readonly name: "InternalServerException";
|
|
98
|
+
readonly $fault: "server";
|
|
99
|
+
Message?: string;
|
|
100
|
+
Code?: string;
|
|
101
|
+
constructor(
|
|
102
|
+
opts: __ExceptionOptionType<InternalServerException, __BaseException>
|
|
103
|
+
);
|
|
104
|
+
}
|
|
105
|
+
export interface VideoEvent {
|
|
106
|
+
VideoChunk?: Uint8Array;
|
|
107
|
+
TimestampMillis?: number;
|
|
108
|
+
}
|
|
109
|
+
export type LivenessRequestStream =
|
|
110
|
+
| LivenessRequestStream.ClientSessionInformationEventMember
|
|
111
|
+
| LivenessRequestStream.VideoEventMember
|
|
112
|
+
| LivenessRequestStream.$UnknownMember;
|
|
113
|
+
export declare namespace LivenessRequestStream {
|
|
114
|
+
interface VideoEventMember {
|
|
115
|
+
VideoEvent: VideoEvent;
|
|
116
|
+
ClientSessionInformationEvent?: never;
|
|
117
|
+
$unknown?: never;
|
|
118
|
+
}
|
|
119
|
+
interface ClientSessionInformationEventMember {
|
|
120
|
+
VideoEvent?: never;
|
|
121
|
+
ClientSessionInformationEvent: ClientSessionInformationEvent;
|
|
122
|
+
$unknown?: never;
|
|
123
|
+
}
|
|
124
|
+
interface $UnknownMember {
|
|
125
|
+
VideoEvent?: never;
|
|
126
|
+
ClientSessionInformationEvent?: never;
|
|
127
|
+
$unknown: [string, any];
|
|
128
|
+
}
|
|
129
|
+
interface Visitor<T> {
|
|
130
|
+
VideoEvent: (value: VideoEvent) => T;
|
|
131
|
+
ClientSessionInformationEvent: (value: ClientSessionInformationEvent) => T;
|
|
132
|
+
_: (name: string, value: any) => T;
|
|
133
|
+
}
|
|
134
|
+
const visit: <T>(value: LivenessRequestStream, visitor: Visitor<T>) => T;
|
|
135
|
+
}
|
|
136
|
+
export type ServerChallenge =
|
|
137
|
+
| ServerChallenge.FaceMovementAndLightChallengeMember
|
|
138
|
+
| ServerChallenge.$UnknownMember;
|
|
139
|
+
export declare namespace ServerChallenge {
|
|
140
|
+
interface FaceMovementAndLightChallengeMember {
|
|
141
|
+
FaceMovementAndLightChallenge: FaceMovementAndLightServerChallenge;
|
|
142
|
+
$unknown?: never;
|
|
143
|
+
}
|
|
144
|
+
interface $UnknownMember {
|
|
145
|
+
FaceMovementAndLightChallenge?: never;
|
|
146
|
+
$unknown: [string, any];
|
|
147
|
+
}
|
|
148
|
+
interface Visitor<T> {
|
|
149
|
+
FaceMovementAndLightChallenge: (
|
|
150
|
+
value: FaceMovementAndLightServerChallenge
|
|
151
|
+
) => T;
|
|
152
|
+
_: (name: string, value: any) => T;
|
|
153
|
+
}
|
|
154
|
+
const visit: <T>(value: ServerChallenge, visitor: Visitor<T>) => T;
|
|
155
|
+
}
|
|
156
|
+
export interface SessionInformation {
|
|
157
|
+
Challenge: ServerChallenge | undefined;
|
|
158
|
+
}
|
|
159
|
+
export interface ServerSessionInformationEvent {
|
|
160
|
+
SessionInformation: SessionInformation | undefined;
|
|
161
|
+
}
|
|
162
|
+
export declare class ServiceQuotaExceededException extends __BaseException {
|
|
163
|
+
readonly name: "ServiceQuotaExceededException";
|
|
164
|
+
readonly $fault: "client";
|
|
165
|
+
Message?: string;
|
|
166
|
+
Code?: string;
|
|
167
|
+
constructor(
|
|
168
|
+
opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>
|
|
169
|
+
);
|
|
170
|
+
}
|
|
171
|
+
export declare class ThrottlingException extends __BaseException {
|
|
172
|
+
readonly name: "ThrottlingException";
|
|
173
|
+
readonly $fault: "client";
|
|
174
|
+
Message?: string;
|
|
175
|
+
Code?: string;
|
|
176
|
+
constructor(
|
|
177
|
+
opts: __ExceptionOptionType<ThrottlingException, __BaseException>
|
|
178
|
+
);
|
|
179
|
+
}
|
|
180
|
+
export declare class ValidationException extends __BaseException {
|
|
181
|
+
readonly name: "ValidationException";
|
|
182
|
+
readonly $fault: "client";
|
|
183
|
+
Message?: string;
|
|
184
|
+
Code?: string;
|
|
185
|
+
constructor(
|
|
186
|
+
opts: __ExceptionOptionType<ValidationException, __BaseException>
|
|
187
|
+
);
|
|
188
|
+
}
|
|
189
|
+
export type LivenessResponseStream =
|
|
190
|
+
| LivenessResponseStream.DisconnectionEventMember
|
|
191
|
+
| LivenessResponseStream.InternalServerExceptionMember
|
|
192
|
+
| LivenessResponseStream.ServerSessionInformationEventMember
|
|
193
|
+
| LivenessResponseStream.ServiceQuotaExceededExceptionMember
|
|
194
|
+
| LivenessResponseStream.ThrottlingExceptionMember
|
|
195
|
+
| LivenessResponseStream.ValidationExceptionMember
|
|
196
|
+
| LivenessResponseStream.$UnknownMember;
|
|
197
|
+
export declare namespace LivenessResponseStream {
|
|
198
|
+
interface ServerSessionInformationEventMember {
|
|
199
|
+
ServerSessionInformationEvent: ServerSessionInformationEvent;
|
|
200
|
+
DisconnectionEvent?: never;
|
|
201
|
+
ValidationException?: never;
|
|
202
|
+
InternalServerException?: never;
|
|
203
|
+
ThrottlingException?: never;
|
|
204
|
+
ServiceQuotaExceededException?: never;
|
|
205
|
+
$unknown?: never;
|
|
206
|
+
}
|
|
207
|
+
interface DisconnectionEventMember {
|
|
208
|
+
ServerSessionInformationEvent?: never;
|
|
209
|
+
DisconnectionEvent: DisconnectionEvent;
|
|
210
|
+
ValidationException?: never;
|
|
211
|
+
InternalServerException?: never;
|
|
212
|
+
ThrottlingException?: never;
|
|
213
|
+
ServiceQuotaExceededException?: never;
|
|
214
|
+
$unknown?: never;
|
|
215
|
+
}
|
|
216
|
+
interface ValidationExceptionMember {
|
|
217
|
+
ServerSessionInformationEvent?: never;
|
|
218
|
+
DisconnectionEvent?: never;
|
|
219
|
+
ValidationException: ValidationException;
|
|
220
|
+
InternalServerException?: never;
|
|
221
|
+
ThrottlingException?: never;
|
|
222
|
+
ServiceQuotaExceededException?: never;
|
|
223
|
+
$unknown?: never;
|
|
224
|
+
}
|
|
225
|
+
interface InternalServerExceptionMember {
|
|
226
|
+
ServerSessionInformationEvent?: never;
|
|
227
|
+
DisconnectionEvent?: never;
|
|
228
|
+
ValidationException?: never;
|
|
229
|
+
InternalServerException: InternalServerException;
|
|
230
|
+
ThrottlingException?: never;
|
|
231
|
+
ServiceQuotaExceededException?: never;
|
|
232
|
+
$unknown?: never;
|
|
233
|
+
}
|
|
234
|
+
interface ThrottlingExceptionMember {
|
|
235
|
+
ServerSessionInformationEvent?: never;
|
|
236
|
+
DisconnectionEvent?: never;
|
|
237
|
+
ValidationException?: never;
|
|
238
|
+
InternalServerException?: never;
|
|
239
|
+
ThrottlingException: ThrottlingException;
|
|
240
|
+
ServiceQuotaExceededException?: never;
|
|
241
|
+
$unknown?: never;
|
|
242
|
+
}
|
|
243
|
+
interface ServiceQuotaExceededExceptionMember {
|
|
244
|
+
ServerSessionInformationEvent?: never;
|
|
245
|
+
DisconnectionEvent?: never;
|
|
246
|
+
ValidationException?: never;
|
|
247
|
+
InternalServerException?: never;
|
|
248
|
+
ThrottlingException?: never;
|
|
249
|
+
ServiceQuotaExceededException: ServiceQuotaExceededException;
|
|
250
|
+
$unknown?: never;
|
|
251
|
+
}
|
|
252
|
+
interface $UnknownMember {
|
|
253
|
+
ServerSessionInformationEvent?: never;
|
|
254
|
+
DisconnectionEvent?: never;
|
|
255
|
+
ValidationException?: never;
|
|
256
|
+
InternalServerException?: never;
|
|
257
|
+
ThrottlingException?: never;
|
|
258
|
+
ServiceQuotaExceededException?: never;
|
|
259
|
+
$unknown: [string, any];
|
|
260
|
+
}
|
|
261
|
+
interface Visitor<T> {
|
|
262
|
+
ServerSessionInformationEvent: (value: ServerSessionInformationEvent) => T;
|
|
263
|
+
DisconnectionEvent: (value: DisconnectionEvent) => T;
|
|
264
|
+
ValidationException: (value: ValidationException) => T;
|
|
265
|
+
InternalServerException: (value: InternalServerException) => T;
|
|
266
|
+
ThrottlingException: (value: ThrottlingException) => T;
|
|
267
|
+
ServiceQuotaExceededException: (value: ServiceQuotaExceededException) => T;
|
|
268
|
+
_: (name: string, value: any) => T;
|
|
269
|
+
}
|
|
270
|
+
const visit: <T>(value: LivenessResponseStream, visitor: Visitor<T>) => T;
|
|
271
|
+
}
|
|
272
|
+
export declare class SessionNotFoundException extends __BaseException {
|
|
273
|
+
readonly name: "SessionNotFoundException";
|
|
274
|
+
readonly $fault: "client";
|
|
275
|
+
Message?: string;
|
|
276
|
+
Code?: string;
|
|
277
|
+
constructor(
|
|
278
|
+
opts: __ExceptionOptionType<SessionNotFoundException, __BaseException>
|
|
279
|
+
);
|
|
280
|
+
}
|
|
281
|
+
export interface StartFaceLivenessSessionRequest {
|
|
282
|
+
SessionId: string | undefined;
|
|
283
|
+
ClientSDKVersion: string | undefined;
|
|
284
|
+
LivenessRequestStream?: AsyncIterable<LivenessRequestStream>;
|
|
285
|
+
}
|
|
286
|
+
export interface StartFaceLivenessSessionResponse {
|
|
287
|
+
SessionId: string | undefined;
|
|
288
|
+
LivenessResponseStream?: AsyncIterable<LivenessResponseStream>;
|
|
289
|
+
}
|
|
290
|
+
export interface StartStreamingLivenessSessionRequest {
|
|
291
|
+
SessionId: string | undefined;
|
|
292
|
+
ClientSDKVersion: string | undefined;
|
|
293
|
+
LivenessRequestStream?: AsyncIterable<LivenessRequestStream>;
|
|
294
|
+
}
|
|
295
|
+
export interface StartStreamingLivenessSessionResponse {
|
|
296
|
+
SessionId: string | undefined;
|
|
297
|
+
LivenessResponseStream?: AsyncIterable<LivenessResponseStream>;
|
|
298
|
+
}
|
|
299
|
+
export declare const LivenessRequestStreamFilterSensitiveLog: (
|
|
300
|
+
obj: LivenessRequestStream
|
|
301
|
+
) => any;
|
|
302
|
+
export declare const LivenessResponseStreamFilterSensitiveLog: (
|
|
303
|
+
obj: LivenessResponseStream
|
|
304
|
+
) => any;
|
|
305
|
+
export declare const StartFaceLivenessSessionRequestFilterSensitiveLog: (
|
|
306
|
+
obj: StartFaceLivenessSessionRequest
|
|
307
|
+
) => any;
|
|
308
|
+
export declare const StartFaceLivenessSessionResponseFilterSensitiveLog: (
|
|
309
|
+
obj: StartFaceLivenessSessionResponse
|
|
310
|
+
) => any;
|
|
311
|
+
export declare const StartStreamingLivenessSessionRequestFilterSensitiveLog: (
|
|
312
|
+
obj: StartStreamingLivenessSessionRequest
|
|
313
|
+
) => any;
|
|
314
|
+
export declare const StartStreamingLivenessSessionResponseFilterSensitiveLog: (
|
|
315
|
+
obj: StartStreamingLivenessSessionResponse
|
|
316
|
+
) => any;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import {
|
|
2
|
+
HttpRequest as __HttpRequest,
|
|
3
|
+
HttpResponse as __HttpResponse,
|
|
4
|
+
} from "@aws-sdk/protocol-http";
|
|
5
|
+
import {
|
|
6
|
+
EventStreamSerdeContext as __EventStreamSerdeContext,
|
|
7
|
+
SerdeContext as __SerdeContext,
|
|
8
|
+
} from "@aws-sdk/types";
|
|
9
|
+
import {
|
|
10
|
+
StartFaceLivenessSessionCommandInput,
|
|
11
|
+
StartFaceLivenessSessionCommandOutput,
|
|
12
|
+
} from "../commands/StartFaceLivenessSessionCommand";
|
|
13
|
+
import {
|
|
14
|
+
StartStreamingLivenessSessionCommandInput,
|
|
15
|
+
StartStreamingLivenessSessionCommandOutput,
|
|
16
|
+
} from "../commands/StartStreamingLivenessSessionCommand";
|
|
17
|
+
export declare const serializeAws_restJson1StartFaceLivenessSessionCommand: (
|
|
18
|
+
input: StartFaceLivenessSessionCommandInput,
|
|
19
|
+
context: __SerdeContext & __EventStreamSerdeContext
|
|
20
|
+
) => Promise<__HttpRequest>;
|
|
21
|
+
export declare const serializeAws_restJson1StartStreamingLivenessSessionCommand: (
|
|
22
|
+
input: StartStreamingLivenessSessionCommandInput,
|
|
23
|
+
context: __SerdeContext & __EventStreamSerdeContext
|
|
24
|
+
) => Promise<__HttpRequest>;
|
|
25
|
+
export declare const deserializeAws_restJson1StartFaceLivenessSessionCommand: (
|
|
26
|
+
output: __HttpResponse,
|
|
27
|
+
context: __SerdeContext & __EventStreamSerdeContext
|
|
28
|
+
) => Promise<StartFaceLivenessSessionCommandOutput>;
|
|
29
|
+
export declare const deserializeAws_restJson1StartStreamingLivenessSessionCommand: (
|
|
30
|
+
output: __HttpResponse,
|
|
31
|
+
context: __SerdeContext & __EventStreamSerdeContext
|
|
32
|
+
) => Promise<StartStreamingLivenessSessionCommandOutput>;
|