@aws-sdk/client-rekognitionstreaming 3.1075.0 → 3.1077.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +613 -16
- package/dist-es/runtimeConfig.browser.js +0 -2
- package/dist-es/runtimeConfig.js +1 -2
- package/dist-es/runtimeConfig.native.js +0 -2
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-types/runtimeConfig.browser.d.ts +2 -2
- package/dist-types/runtimeConfig.d.ts +2 -2
- package/dist-types/runtimeConfig.native.d.ts +2 -2
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +8 -2
- package/dist-types/ts3.4/runtimeConfig.d.ts +8 -2
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +8 -2
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -0
- package/package.json +11 -13
- package/dist-cjs/auth/httpAuthSchemeProvider.js +0 -40
- package/dist-cjs/endpoint/bdd.js +0 -46
- package/dist-cjs/endpoint/endpointResolver.js +0 -14
- package/dist-cjs/models/RekognitionStreamingServiceException.js +0 -8
- package/dist-cjs/models/errors.js +0 -113
- package/dist-cjs/runtimeConfig.browser.js +0 -37
- package/dist-cjs/runtimeConfig.js +0 -49
- package/dist-cjs/runtimeConfig.native.js +0 -16
- package/dist-cjs/runtimeConfig.shared.js +0 -38
- package/dist-cjs/schemas/schemas_0.js +0 -302
package/dist-cjs/index.js
CHANGED
|
@@ -1,24 +1,62 @@
|
|
|
1
|
-
|
|
2
|
-
const { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
|
|
1
|
+
const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
|
|
3
2
|
const { resolveEventStreamConfig, getEventStreamPlugin } = require("@aws-sdk/middleware-eventstream");
|
|
4
3
|
const { resolveWebSocketConfig, getWebSocketPlugin } = require("@aws-sdk/middleware-websocket");
|
|
5
4
|
const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin } = require("@smithy/core");
|
|
6
|
-
const { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
|
|
5
|
+
const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
|
|
7
6
|
exports.$Command = Command;
|
|
8
7
|
exports.__Client = Client;
|
|
9
|
-
const { resolveRegionConfig } = require("@smithy/core/config");
|
|
10
|
-
const { resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
|
|
11
|
-
const { resolveEventStreamSerdeConfig } = require("@smithy/core/event-streams");
|
|
12
|
-
const { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
|
|
13
|
-
const { resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
|
|
14
|
-
const { getSchemaSerdePlugin } = require("@smithy/core/schema");
|
|
15
|
-
const {
|
|
16
|
-
const {
|
|
17
|
-
const {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
const {
|
|
21
|
-
|
|
8
|
+
const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require("@smithy/core/config");
|
|
9
|
+
const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
|
|
10
|
+
const { eventStreamSerdeProvider, resolveEventStreamSerdeConfig } = require("@smithy/core/event-streams");
|
|
11
|
+
const { parseUrl, getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
|
|
12
|
+
const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
|
|
13
|
+
const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");
|
|
14
|
+
const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
|
|
15
|
+
const { defaultProvider } = require("@aws-sdk/credential-provider-node");
|
|
16
|
+
const { eventStreamPayloadHandlerProvider } = require("@aws-sdk/eventstream-handler-node");
|
|
17
|
+
const { toUtf8, fromUtf8, toBase64, fromBase64, calculateBodyLength } = require("@smithy/core/serde");
|
|
18
|
+
const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");
|
|
19
|
+
const { AwsRestJsonProtocol } = require("@aws-sdk/core/protocols");
|
|
20
|
+
const { Sha256 } = require("@smithy/core/checksum");
|
|
21
|
+
|
|
22
|
+
const defaultRekognitionStreamingHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
23
|
+
return {
|
|
24
|
+
operation: getSmithyContext(context).operation,
|
|
25
|
+
region: await normalizeProvider(config.region)() || (() => {
|
|
26
|
+
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
|
27
|
+
})(),
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
|
31
|
+
return {
|
|
32
|
+
schemeId: "aws.auth#sigv4",
|
|
33
|
+
signingProperties: {
|
|
34
|
+
name: "rekognition",
|
|
35
|
+
region: authParameters.region,
|
|
36
|
+
},
|
|
37
|
+
propertiesExtractor: (config, context) => ({
|
|
38
|
+
signingProperties: {
|
|
39
|
+
config,
|
|
40
|
+
context,
|
|
41
|
+
},
|
|
42
|
+
}),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
const defaultRekognitionStreamingHttpAuthSchemeProvider = (authParameters) => {
|
|
46
|
+
const options = [];
|
|
47
|
+
switch (authParameters.operation) {
|
|
48
|
+
default: {
|
|
49
|
+
options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
return options;
|
|
53
|
+
};
|
|
54
|
+
const resolveHttpAuthSchemeConfig = (config) => {
|
|
55
|
+
const config_0 = resolveAwsSdkSigV4Config(config);
|
|
56
|
+
return Object.assign(config_0, {
|
|
57
|
+
authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
|
|
58
|
+
});
|
|
59
|
+
};
|
|
22
60
|
|
|
23
61
|
const resolveClientEndpointParameters = (options) => {
|
|
24
62
|
return Object.assign(options, {
|
|
@@ -34,6 +72,523 @@ const commonParams = {
|
|
|
34
72
|
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
35
73
|
};
|
|
36
74
|
|
|
75
|
+
var version = "3.1076.0";
|
|
76
|
+
var packageInfo = {
|
|
77
|
+
version: version};
|
|
78
|
+
|
|
79
|
+
const k = "ref";
|
|
80
|
+
const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = { [k]: "Endpoint" }, h = { [k]: d }, i = {}, j = [{ [k]: "Region" }];
|
|
81
|
+
const _data = {
|
|
82
|
+
conditions: [
|
|
83
|
+
[c, [g]],
|
|
84
|
+
[c, j],
|
|
85
|
+
["aws.partition", j, d],
|
|
86
|
+
[e, [{ [k]: "UseFIPS" }, b]],
|
|
87
|
+
[e, [{ [k]: "UseDualStack" }, b]],
|
|
88
|
+
[e, [{ fn: f, argv: [h, "supportsDualStack"] }, b]],
|
|
89
|
+
[e, [{ fn: f, argv: [h, "supportsFIPS"] }, b]]
|
|
90
|
+
],
|
|
91
|
+
results: [
|
|
92
|
+
[a],
|
|
93
|
+
[a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
|
|
94
|
+
[a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
|
|
95
|
+
[g, i],
|
|
96
|
+
["https://streaming-rekognition-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
|
|
97
|
+
[a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
|
|
98
|
+
["https://streaming-rekognition-fips.{Region}.{PartitionResult#dnsSuffix}", i],
|
|
99
|
+
[a, "FIPS is enabled but this partition does not support FIPS"],
|
|
100
|
+
["https://streaming-rekognition.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
|
|
101
|
+
[a, "DualStack is enabled but this partition does not support DualStack"],
|
|
102
|
+
["https://streaming-rekognition.{Region}.{PartitionResult#dnsSuffix}", i],
|
|
103
|
+
[a, "Invalid Configuration: Missing Region"]
|
|
104
|
+
]
|
|
105
|
+
};
|
|
106
|
+
const root = 2;
|
|
107
|
+
const r = 100_000_000;
|
|
108
|
+
const nodes = new Int32Array([
|
|
109
|
+
-1, 1, -1,
|
|
110
|
+
0, 12, 3,
|
|
111
|
+
1, 4, r + 11,
|
|
112
|
+
2, 5, r + 11,
|
|
113
|
+
3, 8, 6,
|
|
114
|
+
4, 7, r + 10,
|
|
115
|
+
5, r + 8, r + 9,
|
|
116
|
+
4, 10, 9,
|
|
117
|
+
6, r + 6, r + 7,
|
|
118
|
+
5, 11, r + 5,
|
|
119
|
+
6, r + 4, r + 5,
|
|
120
|
+
3, r + 1, 13,
|
|
121
|
+
4, r + 2, r + 3,
|
|
122
|
+
]);
|
|
123
|
+
const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
|
|
124
|
+
|
|
125
|
+
const cache = new EndpointCache({
|
|
126
|
+
size: 50,
|
|
127
|
+
params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
|
|
128
|
+
});
|
|
129
|
+
const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
130
|
+
return cache.get(endpointParams, () => decideEndpoint(bdd, {
|
|
131
|
+
endpointParams: endpointParams,
|
|
132
|
+
logger: context.logger,
|
|
133
|
+
}));
|
|
134
|
+
};
|
|
135
|
+
customEndpointFunctions.aws = awsEndpointFunctions;
|
|
136
|
+
|
|
137
|
+
class RekognitionStreamingServiceException extends ServiceException {
|
|
138
|
+
constructor(options) {
|
|
139
|
+
super(options);
|
|
140
|
+
Object.setPrototypeOf(this, RekognitionStreamingServiceException.prototype);
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
class AccessDeniedException extends RekognitionStreamingServiceException {
|
|
145
|
+
name = "AccessDeniedException";
|
|
146
|
+
$fault = "client";
|
|
147
|
+
Message;
|
|
148
|
+
Code;
|
|
149
|
+
constructor(opts) {
|
|
150
|
+
super({
|
|
151
|
+
name: "AccessDeniedException",
|
|
152
|
+
$fault: "client",
|
|
153
|
+
...opts,
|
|
154
|
+
});
|
|
155
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
156
|
+
this.Message = opts.Message;
|
|
157
|
+
this.Code = opts.Code;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
class InternalServerException extends RekognitionStreamingServiceException {
|
|
161
|
+
name = "InternalServerException";
|
|
162
|
+
$fault = "server";
|
|
163
|
+
Message;
|
|
164
|
+
Code;
|
|
165
|
+
constructor(opts) {
|
|
166
|
+
super({
|
|
167
|
+
name: "InternalServerException",
|
|
168
|
+
$fault: "server",
|
|
169
|
+
...opts,
|
|
170
|
+
});
|
|
171
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
172
|
+
this.Message = opts.Message;
|
|
173
|
+
this.Code = opts.Code;
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
class ServiceQuotaExceededException extends RekognitionStreamingServiceException {
|
|
177
|
+
name = "ServiceQuotaExceededException";
|
|
178
|
+
$fault = "client";
|
|
179
|
+
Message;
|
|
180
|
+
Code;
|
|
181
|
+
constructor(opts) {
|
|
182
|
+
super({
|
|
183
|
+
name: "ServiceQuotaExceededException",
|
|
184
|
+
$fault: "client",
|
|
185
|
+
...opts,
|
|
186
|
+
});
|
|
187
|
+
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
188
|
+
this.Message = opts.Message;
|
|
189
|
+
this.Code = opts.Code;
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
class ServiceUnavailableException extends RekognitionStreamingServiceException {
|
|
193
|
+
name = "ServiceUnavailableException";
|
|
194
|
+
$fault = "server";
|
|
195
|
+
Message;
|
|
196
|
+
Code;
|
|
197
|
+
constructor(opts) {
|
|
198
|
+
super({
|
|
199
|
+
name: "ServiceUnavailableException",
|
|
200
|
+
$fault: "server",
|
|
201
|
+
...opts,
|
|
202
|
+
});
|
|
203
|
+
Object.setPrototypeOf(this, ServiceUnavailableException.prototype);
|
|
204
|
+
this.Message = opts.Message;
|
|
205
|
+
this.Code = opts.Code;
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
class ThrottlingException extends RekognitionStreamingServiceException {
|
|
209
|
+
name = "ThrottlingException";
|
|
210
|
+
$fault = "client";
|
|
211
|
+
Message;
|
|
212
|
+
Code;
|
|
213
|
+
constructor(opts) {
|
|
214
|
+
super({
|
|
215
|
+
name: "ThrottlingException",
|
|
216
|
+
$fault: "client",
|
|
217
|
+
...opts,
|
|
218
|
+
});
|
|
219
|
+
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
220
|
+
this.Message = opts.Message;
|
|
221
|
+
this.Code = opts.Code;
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
class ValidationException extends RekognitionStreamingServiceException {
|
|
225
|
+
name = "ValidationException";
|
|
226
|
+
$fault = "client";
|
|
227
|
+
Message;
|
|
228
|
+
Code;
|
|
229
|
+
constructor(opts) {
|
|
230
|
+
super({
|
|
231
|
+
name: "ValidationException",
|
|
232
|
+
$fault: "client",
|
|
233
|
+
...opts,
|
|
234
|
+
});
|
|
235
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
236
|
+
this.Message = opts.Message;
|
|
237
|
+
this.Code = opts.Code;
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
class SessionNotFoundException extends RekognitionStreamingServiceException {
|
|
241
|
+
name = "SessionNotFoundException";
|
|
242
|
+
$fault = "client";
|
|
243
|
+
Message;
|
|
244
|
+
Code;
|
|
245
|
+
constructor(opts) {
|
|
246
|
+
super({
|
|
247
|
+
name: "SessionNotFoundException",
|
|
248
|
+
$fault: "client",
|
|
249
|
+
...opts,
|
|
250
|
+
});
|
|
251
|
+
Object.setPrototypeOf(this, SessionNotFoundException.prototype);
|
|
252
|
+
this.Message = opts.Message;
|
|
253
|
+
this.Code = opts.Code;
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
const _ADE = "AccessDeniedException";
|
|
258
|
+
const _BB = "BoundingBox";
|
|
259
|
+
const _BFDT = "BlazeFaceDetectionThreshold";
|
|
260
|
+
const _C = "Code";
|
|
261
|
+
const _CC = "ChallengeConfig";
|
|
262
|
+
const _CCST = "CurrentColorStartTimestamp";
|
|
263
|
+
const _CCl = "ClientChallenge";
|
|
264
|
+
const _CCu = "CurrentColor";
|
|
265
|
+
const _CD = "ColorDisplayed";
|
|
266
|
+
const _CE = "ChallengeEvent";
|
|
267
|
+
const _CI = "ChallengeId";
|
|
268
|
+
const _CS = "ColorSequence";
|
|
269
|
+
const _CSIE = "ClientSessionInformationEvent";
|
|
270
|
+
const _CSo = "ColorSequences";
|
|
271
|
+
const _CV = "ChallengeVersions";
|
|
272
|
+
const _CX = "CenterX";
|
|
273
|
+
const _CY = "CenterY";
|
|
274
|
+
const _Ch = "Challenge";
|
|
275
|
+
const _DD = "DownscrollDuration";
|
|
276
|
+
const _DE = "DisconnectionEvent";
|
|
277
|
+
const _FC = "FreshnessColor";
|
|
278
|
+
const _FDD = "FlatDisplayDuration";
|
|
279
|
+
const _FDITPET = "FaceDetectedInTargetPositionEndTimestamp";
|
|
280
|
+
const _FDITPST = "FaceDetectedInTargetPositionStartTimestamp";
|
|
281
|
+
const _FDT = "FaceDistanceThreshold";
|
|
282
|
+
const _FDTM = "FaceDistanceThresholdMin";
|
|
283
|
+
const _FDTMa = "FaceDistanceThresholdMax";
|
|
284
|
+
const _FIHT = "FaceIouHeightThreshold";
|
|
285
|
+
const _FIWT = "FaceIouWidthThreshold";
|
|
286
|
+
const _FMALC = "FaceMovementAndLightChallenge";
|
|
287
|
+
const _FMALCC = "FaceMovementAndLightClientChallenge";
|
|
288
|
+
const _FMALSC = "FaceMovementAndLightServerChallenge";
|
|
289
|
+
const _FMC = "FaceMovementChallenge";
|
|
290
|
+
const _FMCC = "FaceMovementClientChallenge";
|
|
291
|
+
const _FMSC = "FaceMovementServerChallenge";
|
|
292
|
+
const _H = "Height";
|
|
293
|
+
const _IF = "InitialFace";
|
|
294
|
+
const _IFDT = "InitialFaceDetectedTimestamp";
|
|
295
|
+
const _ISE = "InternalServerException";
|
|
296
|
+
const _L = "Left";
|
|
297
|
+
const _LCT = "LightChallengeType";
|
|
298
|
+
const _LRS = "LivenessRequestStream";
|
|
299
|
+
const _LRSi = "LivenessResponseStream";
|
|
300
|
+
const _M = "Message";
|
|
301
|
+
const _OFT = "OvalFitTimeout";
|
|
302
|
+
const _OHWR = "OvalHeightWidthRatio";
|
|
303
|
+
const _OIHT = "OvalIouHeightThreshold";
|
|
304
|
+
const _OIT = "OvalIouThreshold";
|
|
305
|
+
const _OIWT = "OvalIouWidthThreshold";
|
|
306
|
+
const _OP = "OvalParameters";
|
|
307
|
+
const _PC = "PreviousColor";
|
|
308
|
+
const _RGB = "RGB";
|
|
309
|
+
const _SC = "ServerChallenge";
|
|
310
|
+
const _SFLS = "StartFaceLivenessSession";
|
|
311
|
+
const _SFLSR = "StartFaceLivenessSessionRequest";
|
|
312
|
+
const _SFLSRt = "StartFaceLivenessSessionResponse";
|
|
313
|
+
const _SI = "SessionInformation";
|
|
314
|
+
const _SIe = "SessionId";
|
|
315
|
+
const _SN = "SequenceNumber";
|
|
316
|
+
const _SNFE = "SessionNotFoundException";
|
|
317
|
+
const _SQEE = "ServiceQuotaExceededException";
|
|
318
|
+
const _SSIE = "ServerSessionInformationEvent";
|
|
319
|
+
const _SUE = "ServiceUnavailableException";
|
|
320
|
+
const _T = "Top";
|
|
321
|
+
const _TE = "ThrottlingException";
|
|
322
|
+
const _TF = "TargetFace";
|
|
323
|
+
const _TM = "TimestampMillis";
|
|
324
|
+
const _Ty = "Type";
|
|
325
|
+
const _V = "Version";
|
|
326
|
+
const _VC = "VideoChunk";
|
|
327
|
+
const _VE = "ValidationException";
|
|
328
|
+
const _VET = "VideoEndTimestamp";
|
|
329
|
+
const _VEi = "VideoEvent";
|
|
330
|
+
const _VH = "VideoHeight";
|
|
331
|
+
const _VST = "VideoStartTimestamp";
|
|
332
|
+
const _VW = "VideoWidth";
|
|
333
|
+
const _W = "Width";
|
|
334
|
+
const _c = "client";
|
|
335
|
+
const _e = "error";
|
|
336
|
+
const _h = "http";
|
|
337
|
+
const _hE = "httpError";
|
|
338
|
+
const _hH = "httpHeader";
|
|
339
|
+
const _s = "smithy.ts.sdk.synthetic.com.amazonaws.rekognitionstreaming";
|
|
340
|
+
const _se = "server";
|
|
341
|
+
const _st = "streaming";
|
|
342
|
+
const _xarslcv = "x-amz-rekognition-streaming-liveness-challenge-versions";
|
|
343
|
+
const _xarslsi = "x-amz-rekognition-streaming-liveness-session-id";
|
|
344
|
+
const _xarslvh = "x-amz-rekognition-streaming-liveness-video-height";
|
|
345
|
+
const _xarslvw = "x-amz-rekognition-streaming-liveness-video-width";
|
|
346
|
+
const n0 = "com.amazonaws.rekognitionstreaming";
|
|
347
|
+
const _s_registry = TypeRegistry.for(_s);
|
|
348
|
+
var RekognitionStreamingServiceException$ = [-3, _s, "RekognitionStreamingServiceException", 0, [], []];
|
|
349
|
+
_s_registry.registerError(RekognitionStreamingServiceException$, RekognitionStreamingServiceException);
|
|
350
|
+
const n0_registry = TypeRegistry.for(n0);
|
|
351
|
+
var AccessDeniedException$ = [-3, n0, _ADE,
|
|
352
|
+
{ [_e]: _c, [_hE]: 403 },
|
|
353
|
+
[_M, _C],
|
|
354
|
+
[0, 0]
|
|
355
|
+
];
|
|
356
|
+
n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
|
|
357
|
+
var InternalServerException$ = [-3, n0, _ISE,
|
|
358
|
+
{ [_e]: _se, [_hE]: 500 },
|
|
359
|
+
[_M, _C],
|
|
360
|
+
[0, 0]
|
|
361
|
+
];
|
|
362
|
+
n0_registry.registerError(InternalServerException$, InternalServerException);
|
|
363
|
+
var ServiceQuotaExceededException$ = [-3, n0, _SQEE,
|
|
364
|
+
{ [_e]: _c, [_hE]: 429 },
|
|
365
|
+
[_M, _C],
|
|
366
|
+
[0, 0]
|
|
367
|
+
];
|
|
368
|
+
n0_registry.registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);
|
|
369
|
+
var ServiceUnavailableException$ = [-3, n0, _SUE,
|
|
370
|
+
{ [_e]: _se, [_hE]: 503 },
|
|
371
|
+
[_M, _C],
|
|
372
|
+
[0, 0]
|
|
373
|
+
];
|
|
374
|
+
n0_registry.registerError(ServiceUnavailableException$, ServiceUnavailableException);
|
|
375
|
+
var SessionNotFoundException$ = [-3, n0, _SNFE,
|
|
376
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
377
|
+
[_M, _C],
|
|
378
|
+
[0, 0]
|
|
379
|
+
];
|
|
380
|
+
n0_registry.registerError(SessionNotFoundException$, SessionNotFoundException);
|
|
381
|
+
var ThrottlingException$ = [-3, n0, _TE,
|
|
382
|
+
{ [_e]: _c, [_hE]: 429 },
|
|
383
|
+
[_M, _C],
|
|
384
|
+
[0, 0]
|
|
385
|
+
];
|
|
386
|
+
n0_registry.registerError(ThrottlingException$, ThrottlingException);
|
|
387
|
+
var ValidationException$ = [-3, n0, _VE,
|
|
388
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
389
|
+
[_M, _C],
|
|
390
|
+
[0, 0]
|
|
391
|
+
];
|
|
392
|
+
n0_registry.registerError(ValidationException$, ValidationException);
|
|
393
|
+
const errorTypeRegistries = [
|
|
394
|
+
_s_registry,
|
|
395
|
+
n0_registry,
|
|
396
|
+
];
|
|
397
|
+
var BoundingBox$ = [3, n0, _BB,
|
|
398
|
+
0,
|
|
399
|
+
[_W, _H, _L, _T],
|
|
400
|
+
[1, 1, 1, 1], 4
|
|
401
|
+
];
|
|
402
|
+
var ChallengeConfig$ = [3, n0, _CC,
|
|
403
|
+
0,
|
|
404
|
+
[_BFDT, _FDTM, _FDT, _FDTMa, _OIT, _OHWR, _OIWT, _OIHT, _FIWT, _FIHT, _OFT],
|
|
405
|
+
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
|
|
406
|
+
];
|
|
407
|
+
var ChallengeEvent$ = [3, n0, _CE,
|
|
408
|
+
0,
|
|
409
|
+
[_V, _Ty],
|
|
410
|
+
[0, 0], 2
|
|
411
|
+
];
|
|
412
|
+
var ClientSessionInformationEvent$ = [3, n0, _CSIE,
|
|
413
|
+
0,
|
|
414
|
+
[_Ch],
|
|
415
|
+
[() => ClientChallenge$], 1
|
|
416
|
+
];
|
|
417
|
+
var ColorDisplayed$ = [3, n0, _CD,
|
|
418
|
+
0,
|
|
419
|
+
[_CCu, _SN, _CCST, _PC],
|
|
420
|
+
[() => FreshnessColor$, 1, 1, () => FreshnessColor$], 3
|
|
421
|
+
];
|
|
422
|
+
var ColorSequence$ = [3, n0, _CS,
|
|
423
|
+
0,
|
|
424
|
+
[_FC, _DD, _FDD],
|
|
425
|
+
[() => FreshnessColor$, 1, 1], 3
|
|
426
|
+
];
|
|
427
|
+
var DisconnectionEvent$ = [3, n0, _DE,
|
|
428
|
+
0,
|
|
429
|
+
[_TM],
|
|
430
|
+
[1], 1
|
|
431
|
+
];
|
|
432
|
+
var FaceMovementAndLightClientChallenge$ = [3, n0, _FMALCC,
|
|
433
|
+
0,
|
|
434
|
+
[_CI, _VST, _VET, _IF, _TF, _CD],
|
|
435
|
+
[0, 1, 1, () => InitialFace$, () => TargetFace$, () => ColorDisplayed$], 1
|
|
436
|
+
];
|
|
437
|
+
var FaceMovementAndLightServerChallenge$ = [3, n0, _FMALSC,
|
|
438
|
+
0,
|
|
439
|
+
[_OP, _LCT, _CC, _CSo],
|
|
440
|
+
[() => OvalParameters$, 0, () => ChallengeConfig$, () => ColorSequences], 4
|
|
441
|
+
];
|
|
442
|
+
var FaceMovementClientChallenge$ = [3, n0, _FMCC,
|
|
443
|
+
0,
|
|
444
|
+
[_CI, _VST, _VET, _IF, _TF],
|
|
445
|
+
[0, 1, 1, () => InitialFace$, () => TargetFace$], 1
|
|
446
|
+
];
|
|
447
|
+
var FaceMovementServerChallenge$ = [3, n0, _FMSC,
|
|
448
|
+
0,
|
|
449
|
+
[_OP, _CC],
|
|
450
|
+
[() => OvalParameters$, () => ChallengeConfig$], 2
|
|
451
|
+
];
|
|
452
|
+
var FreshnessColor$ = [3, n0, _FC,
|
|
453
|
+
0,
|
|
454
|
+
[_RGB],
|
|
455
|
+
[64 | 1], 1
|
|
456
|
+
];
|
|
457
|
+
var InitialFace$ = [3, n0, _IF,
|
|
458
|
+
0,
|
|
459
|
+
[_BB, _IFDT],
|
|
460
|
+
[() => BoundingBox$, 1], 2
|
|
461
|
+
];
|
|
462
|
+
var OvalParameters$ = [3, n0, _OP,
|
|
463
|
+
0,
|
|
464
|
+
[_W, _H, _CX, _CY],
|
|
465
|
+
[1, 1, 1, 1], 4
|
|
466
|
+
];
|
|
467
|
+
var ServerSessionInformationEvent$ = [3, n0, _SSIE,
|
|
468
|
+
0,
|
|
469
|
+
[_SI],
|
|
470
|
+
[() => SessionInformation$], 1
|
|
471
|
+
];
|
|
472
|
+
var SessionInformation$ = [3, n0, _SI,
|
|
473
|
+
0,
|
|
474
|
+
[_Ch],
|
|
475
|
+
[() => ServerChallenge$], 1
|
|
476
|
+
];
|
|
477
|
+
var StartFaceLivenessSessionRequest$ = [3, n0, _SFLSR,
|
|
478
|
+
0,
|
|
479
|
+
[_SIe, _VW, _VH, _CV, _LRS],
|
|
480
|
+
[[0, { [_hH]: _xarslsi }], [0, { [_hH]: _xarslvw }], [0, { [_hH]: _xarslvh }], [0, { [_hH]: _xarslcv }], [() => LivenessRequestStream$, 16]], 4
|
|
481
|
+
];
|
|
482
|
+
var StartFaceLivenessSessionResponse$ = [3, n0, _SFLSRt,
|
|
483
|
+
0,
|
|
484
|
+
[_SIe, _LRSi],
|
|
485
|
+
[[0, { [_hH]: _xarslsi }], [() => LivenessResponseStream$, 16]], 1
|
|
486
|
+
];
|
|
487
|
+
var TargetFace$ = [3, n0, _TF,
|
|
488
|
+
0,
|
|
489
|
+
[_BB, _FDITPST, _FDITPET],
|
|
490
|
+
[() => BoundingBox$, 1, 1], 3
|
|
491
|
+
];
|
|
492
|
+
var VideoEvent$ = [3, n0, _VEi,
|
|
493
|
+
0,
|
|
494
|
+
[_VC, _TM],
|
|
495
|
+
[21, 1]
|
|
496
|
+
];
|
|
497
|
+
var ColorSequences = [1, n0, _CSo,
|
|
498
|
+
0, () => ColorSequence$
|
|
499
|
+
];
|
|
500
|
+
var ClientChallenge$ = [4, n0, _CCl,
|
|
501
|
+
0,
|
|
502
|
+
[_FMALC, _FMC],
|
|
503
|
+
[() => FaceMovementAndLightClientChallenge$, () => FaceMovementClientChallenge$]
|
|
504
|
+
];
|
|
505
|
+
var LivenessRequestStream$ = [4, n0, _LRS,
|
|
506
|
+
{ [_st]: 1 },
|
|
507
|
+
[_VEi, _CSIE],
|
|
508
|
+
[() => VideoEvent$, () => ClientSessionInformationEvent$]
|
|
509
|
+
];
|
|
510
|
+
var LivenessResponseStream$ = [4, n0, _LRSi,
|
|
511
|
+
{ [_st]: 1 },
|
|
512
|
+
[_SSIE, _DE, _CE, _VE, _ISE, _TE, _SQEE, _SUE],
|
|
513
|
+
[() => ServerSessionInformationEvent$, () => DisconnectionEvent$, () => ChallengeEvent$, [() => ValidationException$, 0], [() => InternalServerException$, 0], [() => ThrottlingException$, 0], [() => ServiceQuotaExceededException$, 0], [() => ServiceUnavailableException$, 0]]
|
|
514
|
+
];
|
|
515
|
+
var ServerChallenge$ = [4, n0, _SC,
|
|
516
|
+
0,
|
|
517
|
+
[_FMALC, _FMC],
|
|
518
|
+
[() => FaceMovementAndLightServerChallenge$, () => FaceMovementServerChallenge$]
|
|
519
|
+
];
|
|
520
|
+
var StartFaceLivenessSession$ = [9, n0, _SFLS,
|
|
521
|
+
{ [_h]: ["POST", "/start-face-liveness-session", 200] }, () => StartFaceLivenessSessionRequest$, () => StartFaceLivenessSessionResponse$
|
|
522
|
+
];
|
|
523
|
+
|
|
524
|
+
const getRuntimeConfig$1 = (config) => {
|
|
525
|
+
return {
|
|
526
|
+
apiVersion: "2022-05-30",
|
|
527
|
+
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
528
|
+
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
529
|
+
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
530
|
+
endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
|
|
531
|
+
extensions: config?.extensions ?? [],
|
|
532
|
+
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultRekognitionStreamingHttpAuthSchemeProvider,
|
|
533
|
+
httpAuthSchemes: config?.httpAuthSchemes ?? [
|
|
534
|
+
{
|
|
535
|
+
schemeId: "aws.auth#sigv4",
|
|
536
|
+
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
|
537
|
+
signer: new AwsSdkSigV4Signer(),
|
|
538
|
+
},
|
|
539
|
+
],
|
|
540
|
+
logger: config?.logger ?? new NoOpLogger(),
|
|
541
|
+
protocol: config?.protocol ?? AwsRestJsonProtocol,
|
|
542
|
+
protocolSettings: config?.protocolSettings ?? {
|
|
543
|
+
defaultNamespace: "com.amazonaws.rekognitionstreaming",
|
|
544
|
+
errorTypeRegistries,
|
|
545
|
+
version: "2022-05-30",
|
|
546
|
+
serviceTarget: "RekognitionStreamingService",
|
|
547
|
+
},
|
|
548
|
+
serviceId: config?.serviceId ?? "RekognitionStreaming",
|
|
549
|
+
sha256: config?.sha256 ?? Sha256,
|
|
550
|
+
urlParser: config?.urlParser ?? parseUrl,
|
|
551
|
+
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
552
|
+
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
553
|
+
};
|
|
554
|
+
};
|
|
555
|
+
|
|
556
|
+
const getRuntimeConfig = (config) => {
|
|
557
|
+
emitWarningIfUnsupportedVersion(process.version);
|
|
558
|
+
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
559
|
+
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
560
|
+
const clientSharedValues = getRuntimeConfig$1(config);
|
|
561
|
+
emitWarningIfUnsupportedVersion$1(process.version);
|
|
562
|
+
const loaderConfig = {
|
|
563
|
+
profile: config?.profile,
|
|
564
|
+
logger: clientSharedValues.logger,
|
|
565
|
+
};
|
|
566
|
+
return {
|
|
567
|
+
...clientSharedValues,
|
|
568
|
+
...config,
|
|
569
|
+
runtime: "node",
|
|
570
|
+
defaultsMode,
|
|
571
|
+
authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
|
|
572
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
573
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? defaultProvider,
|
|
574
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
575
|
+
eventStreamPayloadHandlerProvider: config?.eventStreamPayloadHandlerProvider ?? eventStreamPayloadHandlerProvider,
|
|
576
|
+
eventStreamSerdeProvider: config?.eventStreamSerdeProvider ?? eventStreamSerdeProvider,
|
|
577
|
+
maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
|
578
|
+
region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
|
579
|
+
requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
580
|
+
retryMode: config?.retryMode ??
|
|
581
|
+
loadConfig({
|
|
582
|
+
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
583
|
+
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
|
584
|
+
}, config),
|
|
585
|
+
streamCollector: config?.streamCollector ?? streamCollector,
|
|
586
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
587
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
588
|
+
userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
|
|
589
|
+
};
|
|
590
|
+
};
|
|
591
|
+
|
|
37
592
|
const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
38
593
|
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
39
594
|
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
@@ -155,8 +710,50 @@ const LightChallengeType = {
|
|
|
155
710
|
SEQUENTIAL: "SEQUENTIAL",
|
|
156
711
|
};
|
|
157
712
|
|
|
713
|
+
exports.AccessDeniedException = AccessDeniedException;
|
|
714
|
+
exports.AccessDeniedException$ = AccessDeniedException$;
|
|
715
|
+
exports.BoundingBox$ = BoundingBox$;
|
|
716
|
+
exports.ChallengeConfig$ = ChallengeConfig$;
|
|
717
|
+
exports.ChallengeEvent$ = ChallengeEvent$;
|
|
158
718
|
exports.ChallengeType = ChallengeType;
|
|
719
|
+
exports.ClientChallenge$ = ClientChallenge$;
|
|
720
|
+
exports.ClientSessionInformationEvent$ = ClientSessionInformationEvent$;
|
|
721
|
+
exports.ColorDisplayed$ = ColorDisplayed$;
|
|
722
|
+
exports.ColorSequence$ = ColorSequence$;
|
|
723
|
+
exports.DisconnectionEvent$ = DisconnectionEvent$;
|
|
724
|
+
exports.FaceMovementAndLightClientChallenge$ = FaceMovementAndLightClientChallenge$;
|
|
725
|
+
exports.FaceMovementAndLightServerChallenge$ = FaceMovementAndLightServerChallenge$;
|
|
726
|
+
exports.FaceMovementClientChallenge$ = FaceMovementClientChallenge$;
|
|
727
|
+
exports.FaceMovementServerChallenge$ = FaceMovementServerChallenge$;
|
|
728
|
+
exports.FreshnessColor$ = FreshnessColor$;
|
|
729
|
+
exports.InitialFace$ = InitialFace$;
|
|
730
|
+
exports.InternalServerException = InternalServerException;
|
|
731
|
+
exports.InternalServerException$ = InternalServerException$;
|
|
159
732
|
exports.LightChallengeType = LightChallengeType;
|
|
733
|
+
exports.LivenessRequestStream$ = LivenessRequestStream$;
|
|
734
|
+
exports.LivenessResponseStream$ = LivenessResponseStream$;
|
|
735
|
+
exports.OvalParameters$ = OvalParameters$;
|
|
160
736
|
exports.RekognitionStreaming = RekognitionStreaming;
|
|
161
737
|
exports.RekognitionStreamingClient = RekognitionStreamingClient;
|
|
738
|
+
exports.RekognitionStreamingServiceException = RekognitionStreamingServiceException;
|
|
739
|
+
exports.RekognitionStreamingServiceException$ = RekognitionStreamingServiceException$;
|
|
740
|
+
exports.ServerChallenge$ = ServerChallenge$;
|
|
741
|
+
exports.ServerSessionInformationEvent$ = ServerSessionInformationEvent$;
|
|
742
|
+
exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
|
|
743
|
+
exports.ServiceQuotaExceededException$ = ServiceQuotaExceededException$;
|
|
744
|
+
exports.ServiceUnavailableException = ServiceUnavailableException;
|
|
745
|
+
exports.ServiceUnavailableException$ = ServiceUnavailableException$;
|
|
746
|
+
exports.SessionInformation$ = SessionInformation$;
|
|
747
|
+
exports.SessionNotFoundException = SessionNotFoundException;
|
|
748
|
+
exports.SessionNotFoundException$ = SessionNotFoundException$;
|
|
749
|
+
exports.StartFaceLivenessSession$ = StartFaceLivenessSession$;
|
|
162
750
|
exports.StartFaceLivenessSessionCommand = StartFaceLivenessSessionCommand;
|
|
751
|
+
exports.StartFaceLivenessSessionRequest$ = StartFaceLivenessSessionRequest$;
|
|
752
|
+
exports.StartFaceLivenessSessionResponse$ = StartFaceLivenessSessionResponse$;
|
|
753
|
+
exports.TargetFace$ = TargetFace$;
|
|
754
|
+
exports.ThrottlingException = ThrottlingException;
|
|
755
|
+
exports.ThrottlingException$ = ThrottlingException$;
|
|
756
|
+
exports.ValidationException = ValidationException;
|
|
757
|
+
exports.ValidationException$ = ValidationException$;
|
|
758
|
+
exports.VideoEvent$ = VideoEvent$;
|
|
759
|
+
exports.errorTypeRegistries = errorTypeRegistries;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import packageInfo from "../package.json";
|
|
2
|
-
import { Sha256 } from "@aws-crypto/sha256-browser";
|
|
3
2
|
import { createDefaultUserAgentProvider } from "@aws-sdk/core/client";
|
|
4
3
|
import { eventStreamPayloadHandlerProvider, WebSocketFetchHandler as WebSocketRequestHandler, } from "@aws-sdk/middleware-websocket";
|
|
5
4
|
import { invalidProvider, loadConfigsForDefaultMode } from "@smithy/core/client";
|
|
@@ -28,7 +27,6 @@ export const getRuntimeConfig = (config) => {
|
|
|
28
27
|
requestHandler: WebSocketRequestHandler.create(config?.requestHandler
|
|
29
28
|
?? defaultConfigProvider, HttpRequestHandler.create(defaultConfigProvider)),
|
|
30
29
|
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
|
|
31
|
-
sha256: config?.sha256 ?? Sha256,
|
|
32
30
|
streamCollector: config?.streamCollector ?? streamCollector,
|
|
33
31
|
useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
34
32
|
useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -7,7 +7,7 @@ import { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } from "@smi
|
|
|
7
7
|
import { loadConfig as loadNodeConfig, NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, resolveDefaultsModeConfig, } from "@smithy/core/config";
|
|
8
8
|
import { eventStreamSerdeProvider } from "@smithy/core/event-streams";
|
|
9
9
|
import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@smithy/core/retry";
|
|
10
|
-
import { calculateBodyLength
|
|
10
|
+
import { calculateBodyLength } from "@smithy/core/serde";
|
|
11
11
|
import { NodeHttpHandler as RequestHandler, streamCollector } from "@smithy/node-http-handler";
|
|
12
12
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
13
13
|
export const getRuntimeConfig = (config) => {
|
|
@@ -39,7 +39,6 @@ export const getRuntimeConfig = (config) => {
|
|
|
39
39
|
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
40
40
|
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
|
41
41
|
}, config),
|
|
42
|
-
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
43
42
|
streamCollector: config?.streamCollector ?? streamCollector,
|
|
44
43
|
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
45
44
|
useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|