@rharkor/caching-for-turbo 2.4.1 → 2.4.2
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/cli/136.index.js +584 -770
- package/dist/cli/136.index.js.map +1 -1
- package/dist/cli/360.index.js +7 -8
- package/dist/cli/360.index.js.map +1 -1
- package/dist/cli/443.index.js +309 -424
- package/dist/cli/443.index.js.map +1 -1
- package/dist/cli/566.index.js +41 -43
- package/dist/cli/566.index.js.map +1 -1
- package/dist/cli/605.index.js +21 -20
- package/dist/cli/605.index.js.map +1 -1
- package/dist/cli/762.index.js +278 -403
- package/dist/cli/762.index.js.map +1 -1
- package/dist/cli/869.index.js +27 -29
- package/dist/cli/869.index.js.map +1 -1
- package/dist/cli/956.index.js +5 -39
- package/dist/cli/956.index.js.map +1 -1
- package/dist/cli/998.index.js +300 -430
- package/dist/cli/998.index.js.map +1 -1
- package/dist/cli/index.js +9175 -8979
- package/dist/cli/licenses.txt +0 -205
- package/package.json +1 -1
package/dist/cli/762.index.js
CHANGED
|
@@ -2,24 +2,41 @@ export const id = 762;
|
|
|
2
2
|
export const ids = [762];
|
|
3
3
|
export const modules = {
|
|
4
4
|
|
|
5
|
-
/***/
|
|
5
|
+
/***/ 99762:
|
|
6
6
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
7
7
|
|
|
8
|
+
var __webpack_unused_export__;
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
var middlewareHostHeader = __webpack_require__(52590);
|
|
12
|
+
var middlewareLogger = __webpack_require__(85242);
|
|
13
|
+
var middlewareRecursionDetection = __webpack_require__(81568);
|
|
14
|
+
var middlewareUserAgent = __webpack_require__(32959);
|
|
15
|
+
var core = __webpack_require__(90402);
|
|
16
|
+
var client = __webpack_require__(92658);
|
|
17
|
+
var config = __webpack_require__(47291);
|
|
18
|
+
var endpoints = __webpack_require__(62085);
|
|
19
|
+
var protocols = __webpack_require__(93422);
|
|
20
|
+
var retry = __webpack_require__(23609);
|
|
21
|
+
var schema = __webpack_require__(26890);
|
|
22
|
+
var httpAuthSchemes = __webpack_require__(97523);
|
|
23
|
+
var client$1 = __webpack_require__(5152);
|
|
24
|
+
var utilUserAgentNode = __webpack_require__(51656);
|
|
25
|
+
var serde = __webpack_require__(92430);
|
|
26
|
+
var nodeHttpHandler = __webpack_require__(61279);
|
|
27
|
+
var protocols$1 = __webpack_require__(37288);
|
|
28
|
+
var utilEndpoints = __webpack_require__(83068);
|
|
29
|
+
var regionConfigResolver = __webpack_require__(36463);
|
|
8
30
|
|
|
9
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
10
|
-
exports.resolveHttpAuthSchemeConfig = exports.defaultSigninHttpAuthSchemeProvider = exports.defaultSigninHttpAuthSchemeParametersProvider = void 0;
|
|
11
|
-
const httpAuthSchemes_1 = __webpack_require__(97523);
|
|
12
|
-
const util_middleware_1 = __webpack_require__(76324);
|
|
13
31
|
const defaultSigninHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
14
32
|
return {
|
|
15
|
-
operation:
|
|
16
|
-
region: (await
|
|
33
|
+
operation: client.getSmithyContext(context).operation,
|
|
34
|
+
region: (await client.normalizeProvider(config.region)()) ||
|
|
17
35
|
(() => {
|
|
18
36
|
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
|
19
37
|
})(),
|
|
20
38
|
};
|
|
21
39
|
};
|
|
22
|
-
exports.defaultSigninHttpAuthSchemeParametersProvider = defaultSigninHttpAuthSchemeParametersProvider;
|
|
23
40
|
function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
|
24
41
|
return {
|
|
25
42
|
schemeId: "aws.auth#sigv4",
|
|
@@ -44,7 +61,7 @@ const defaultSigninHttpAuthSchemeProvider = (authParameters) => {
|
|
|
44
61
|
const options = [];
|
|
45
62
|
switch (authParameters.operation) {
|
|
46
63
|
case "CreateOAuth2Token": {
|
|
47
|
-
options.push(createSmithyApiNoAuthHttpAuthOption(
|
|
64
|
+
options.push(createSmithyApiNoAuthHttpAuthOption());
|
|
48
65
|
break;
|
|
49
66
|
}
|
|
50
67
|
default: {
|
|
@@ -53,25 +70,31 @@ const defaultSigninHttpAuthSchemeProvider = (authParameters) => {
|
|
|
53
70
|
}
|
|
54
71
|
return options;
|
|
55
72
|
};
|
|
56
|
-
exports.defaultSigninHttpAuthSchemeProvider = defaultSigninHttpAuthSchemeProvider;
|
|
57
73
|
const resolveHttpAuthSchemeConfig = (config) => {
|
|
58
|
-
const config_0 =
|
|
74
|
+
const config_0 = httpAuthSchemes.resolveAwsSdkSigV4Config(config);
|
|
59
75
|
return Object.assign(config_0, {
|
|
60
|
-
authSchemePreference:
|
|
76
|
+
authSchemePreference: client.normalizeProvider(config.authSchemePreference ?? []),
|
|
61
77
|
});
|
|
62
78
|
};
|
|
63
|
-
exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
|
|
64
|
-
|
|
65
79
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
80
|
+
const resolveClientEndpointParameters = (options) => {
|
|
81
|
+
return Object.assign(options, {
|
|
82
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
83
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
84
|
+
defaultSigningName: "signin",
|
|
85
|
+
});
|
|
86
|
+
};
|
|
87
|
+
const commonParams = {
|
|
88
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
89
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
90
|
+
Region: { type: "builtInParams", name: "region" },
|
|
91
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
92
|
+
};
|
|
70
93
|
|
|
94
|
+
var version = "3.997.7";
|
|
95
|
+
var packageInfo = {
|
|
96
|
+
version: version};
|
|
71
97
|
|
|
72
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
73
|
-
exports.bdd = void 0;
|
|
74
|
-
const util_endpoints_1 = __webpack_require__(79674);
|
|
75
98
|
const m = "ref";
|
|
76
99
|
const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = "stringEquals", h = { [m]: "Endpoint" }, i = { [m]: d }, j = { fn: f, argv: [i, "name"] }, k = {}, l = [{ [m]: "Region" }];
|
|
77
100
|
const _data = {
|
|
@@ -157,240 +180,28 @@ const nodes = new Int32Array([
|
|
|
157
180
|
r + 2,
|
|
158
181
|
r + 3,
|
|
159
182
|
]);
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
/***/ }),
|
|
183
|
+
const bdd = endpoints.BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
|
|
164
184
|
|
|
165
|
-
|
|
166
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
170
|
-
exports.defaultEndpointResolver = void 0;
|
|
171
|
-
const util_endpoints_1 = __webpack_require__(83068);
|
|
172
|
-
const util_endpoints_2 = __webpack_require__(79674);
|
|
173
|
-
const bdd_1 = __webpack_require__(34776);
|
|
174
|
-
const cache = new util_endpoints_2.EndpointCache({
|
|
185
|
+
const cache = new endpoints.EndpointCache({
|
|
175
186
|
size: 50,
|
|
176
187
|
params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
|
|
177
188
|
});
|
|
178
189
|
const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
179
|
-
return cache.get(endpointParams, () =>
|
|
190
|
+
return cache.get(endpointParams, () => endpoints.decideEndpoint(bdd, {
|
|
180
191
|
endpointParams: endpointParams,
|
|
181
192
|
logger: context.logger,
|
|
182
193
|
}));
|
|
183
194
|
};
|
|
184
|
-
|
|
185
|
-
util_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
/***/ }),
|
|
195
|
+
endpoints.customEndpointFunctions.aws = utilEndpoints.awsEndpointFunctions;
|
|
189
196
|
|
|
190
|
-
|
|
191
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
var middlewareHostHeader = __webpack_require__(52590);
|
|
196
|
-
var middlewareLogger = __webpack_require__(85242);
|
|
197
|
-
var middlewareRecursionDetection = __webpack_require__(81568);
|
|
198
|
-
var middlewareUserAgent = __webpack_require__(32959);
|
|
199
|
-
var configResolver = __webpack_require__(39316);
|
|
200
|
-
var core = __webpack_require__(90402);
|
|
201
|
-
var schema = __webpack_require__(26890);
|
|
202
|
-
var middlewareContentLength = __webpack_require__(47212);
|
|
203
|
-
var middlewareEndpoint = __webpack_require__(40099);
|
|
204
|
-
var middlewareRetry = __webpack_require__(19618);
|
|
205
|
-
var smithyClient = __webpack_require__(61411);
|
|
206
|
-
var httpAuthSchemeProvider = __webpack_require__(77709);
|
|
207
|
-
var runtimeConfig = __webpack_require__(22836);
|
|
208
|
-
var regionConfigResolver = __webpack_require__(36463);
|
|
209
|
-
var protocolHttp = __webpack_require__(72356);
|
|
210
|
-
var schemas_0 = __webpack_require__(60890);
|
|
211
|
-
var errors = __webpack_require__(27214);
|
|
212
|
-
var SigninServiceException = __webpack_require__(42831);
|
|
213
|
-
|
|
214
|
-
const resolveClientEndpointParameters = (options) => {
|
|
215
|
-
return Object.assign(options, {
|
|
216
|
-
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
217
|
-
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
218
|
-
defaultSigningName: "signin",
|
|
219
|
-
});
|
|
220
|
-
};
|
|
221
|
-
const commonParams = {
|
|
222
|
-
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
223
|
-
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
224
|
-
Region: { type: "builtInParams", name: "region" },
|
|
225
|
-
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
226
|
-
};
|
|
227
|
-
|
|
228
|
-
const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
229
|
-
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
230
|
-
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
231
|
-
let _credentials = runtimeConfig.credentials;
|
|
232
|
-
return {
|
|
233
|
-
setHttpAuthScheme(httpAuthScheme) {
|
|
234
|
-
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
235
|
-
if (index === -1) {
|
|
236
|
-
_httpAuthSchemes.push(httpAuthScheme);
|
|
237
|
-
}
|
|
238
|
-
else {
|
|
239
|
-
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
|
240
|
-
}
|
|
241
|
-
},
|
|
242
|
-
httpAuthSchemes() {
|
|
243
|
-
return _httpAuthSchemes;
|
|
244
|
-
},
|
|
245
|
-
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
|
246
|
-
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
|
247
|
-
},
|
|
248
|
-
httpAuthSchemeProvider() {
|
|
249
|
-
return _httpAuthSchemeProvider;
|
|
250
|
-
},
|
|
251
|
-
setCredentials(credentials) {
|
|
252
|
-
_credentials = credentials;
|
|
253
|
-
},
|
|
254
|
-
credentials() {
|
|
255
|
-
return _credentials;
|
|
256
|
-
},
|
|
257
|
-
};
|
|
258
|
-
};
|
|
259
|
-
const resolveHttpAuthRuntimeConfig = (config) => {
|
|
260
|
-
return {
|
|
261
|
-
httpAuthSchemes: config.httpAuthSchemes(),
|
|
262
|
-
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
263
|
-
credentials: config.credentials(),
|
|
264
|
-
};
|
|
265
|
-
};
|
|
266
|
-
|
|
267
|
-
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
268
|
-
const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), smithyClient.getDefaultExtensionConfiguration(runtimeConfig), protocolHttp.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
269
|
-
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
270
|
-
return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), smithyClient.resolveDefaultRuntimeConfig(extensionConfiguration), protocolHttp.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
271
|
-
};
|
|
272
|
-
|
|
273
|
-
class SigninClient extends smithyClient.Client {
|
|
274
|
-
config;
|
|
275
|
-
constructor(...[configuration]) {
|
|
276
|
-
const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});
|
|
277
|
-
super(_config_0);
|
|
278
|
-
this.initConfig = _config_0;
|
|
279
|
-
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
280
|
-
const _config_2 = middlewareUserAgent.resolveUserAgentConfig(_config_1);
|
|
281
|
-
const _config_3 = middlewareRetry.resolveRetryConfig(_config_2);
|
|
282
|
-
const _config_4 = configResolver.resolveRegionConfig(_config_3);
|
|
283
|
-
const _config_5 = middlewareHostHeader.resolveHostHeaderConfig(_config_4);
|
|
284
|
-
const _config_6 = middlewareEndpoint.resolveEndpointConfig(_config_5);
|
|
285
|
-
const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
|
|
286
|
-
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
287
|
-
this.config = _config_8;
|
|
288
|
-
this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config));
|
|
289
|
-
this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
|
|
290
|
-
this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
|
|
291
|
-
this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
|
|
292
|
-
this.middlewareStack.use(middlewareHostHeader.getHostHeaderPlugin(this.config));
|
|
293
|
-
this.middlewareStack.use(middlewareLogger.getLoggerPlugin(this.config));
|
|
294
|
-
this.middlewareStack.use(middlewareRecursionDetection.getRecursionDetectionPlugin(this.config));
|
|
295
|
-
this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
296
|
-
httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultSigninHttpAuthSchemeParametersProvider,
|
|
297
|
-
identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
|
|
298
|
-
"aws.auth#sigv4": config.credentials,
|
|
299
|
-
}),
|
|
300
|
-
}));
|
|
301
|
-
this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
|
|
302
|
-
}
|
|
303
|
-
destroy() {
|
|
304
|
-
super.destroy();
|
|
305
|
-
}
|
|
306
|
-
}
|
|
307
|
-
|
|
308
|
-
class CreateOAuth2TokenCommand extends smithyClient.Command
|
|
309
|
-
.classBuilder()
|
|
310
|
-
.ep(commonParams)
|
|
311
|
-
.m(function (Command, cs, config, o) {
|
|
312
|
-
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
313
|
-
})
|
|
314
|
-
.s("Signin", "CreateOAuth2Token", {})
|
|
315
|
-
.n("SigninClient", "CreateOAuth2TokenCommand")
|
|
316
|
-
.sc(schemas_0.CreateOAuth2Token$)
|
|
317
|
-
.build() {
|
|
318
|
-
}
|
|
319
|
-
|
|
320
|
-
const commands = {
|
|
321
|
-
CreateOAuth2TokenCommand,
|
|
322
|
-
};
|
|
323
|
-
class Signin extends SigninClient {
|
|
324
|
-
}
|
|
325
|
-
smithyClient.createAggregatedClient(commands, Signin);
|
|
326
|
-
|
|
327
|
-
const OAuth2ErrorCode = {
|
|
328
|
-
AUTHCODE_EXPIRED: "AUTHCODE_EXPIRED",
|
|
329
|
-
INSUFFICIENT_PERMISSIONS: "INSUFFICIENT_PERMISSIONS",
|
|
330
|
-
INVALID_REQUEST: "INVALID_REQUEST",
|
|
331
|
-
SERVER_ERROR: "server_error",
|
|
332
|
-
TOKEN_EXPIRED: "TOKEN_EXPIRED",
|
|
333
|
-
USER_CREDENTIALS_CHANGED: "USER_CREDENTIALS_CHANGED",
|
|
334
|
-
};
|
|
335
|
-
|
|
336
|
-
exports.$Command = smithyClient.Command;
|
|
337
|
-
exports.__Client = smithyClient.Client;
|
|
338
|
-
exports.SigninServiceException = SigninServiceException.SigninServiceException;
|
|
339
|
-
exports.CreateOAuth2TokenCommand = CreateOAuth2TokenCommand;
|
|
340
|
-
exports.OAuth2ErrorCode = OAuth2ErrorCode;
|
|
341
|
-
exports.Signin = Signin;
|
|
342
|
-
exports.SigninClient = SigninClient;
|
|
343
|
-
Object.prototype.hasOwnProperty.call(schemas_0, '__proto__') &&
|
|
344
|
-
!Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
|
|
345
|
-
Object.defineProperty(exports, '__proto__', {
|
|
346
|
-
enumerable: true,
|
|
347
|
-
value: schemas_0['__proto__']
|
|
348
|
-
});
|
|
349
|
-
|
|
350
|
-
Object.keys(schemas_0).forEach(function (k) {
|
|
351
|
-
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = schemas_0[k];
|
|
352
|
-
});
|
|
353
|
-
Object.prototype.hasOwnProperty.call(errors, '__proto__') &&
|
|
354
|
-
!Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
|
|
355
|
-
Object.defineProperty(exports, '__proto__', {
|
|
356
|
-
enumerable: true,
|
|
357
|
-
value: errors['__proto__']
|
|
358
|
-
});
|
|
359
|
-
|
|
360
|
-
Object.keys(errors).forEach(function (k) {
|
|
361
|
-
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = errors[k];
|
|
362
|
-
});
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
/***/ }),
|
|
366
|
-
|
|
367
|
-
/***/ 42831:
|
|
368
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
372
|
-
exports.SigninServiceException = exports.__ServiceException = void 0;
|
|
373
|
-
const smithy_client_1 = __webpack_require__(61411);
|
|
374
|
-
Object.defineProperty(exports, "__ServiceException", ({ enumerable: true, get: function () { return smithy_client_1.ServiceException; } }));
|
|
375
|
-
class SigninServiceException extends smithy_client_1.ServiceException {
|
|
197
|
+
class SigninServiceException extends client.ServiceException {
|
|
376
198
|
constructor(options) {
|
|
377
199
|
super(options);
|
|
378
200
|
Object.setPrototypeOf(this, SigninServiceException.prototype);
|
|
379
201
|
}
|
|
380
202
|
}
|
|
381
|
-
exports.SigninServiceException = SigninServiceException;
|
|
382
|
-
|
|
383
203
|
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
/***/ 27214:
|
|
387
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
391
|
-
exports.ValidationException = exports.TooManyRequestsError = exports.InternalServerException = exports.AccessDeniedException = void 0;
|
|
392
|
-
const SigninServiceException_1 = __webpack_require__(42831);
|
|
393
|
-
class AccessDeniedException extends SigninServiceException_1.SigninServiceException {
|
|
204
|
+
class AccessDeniedException extends SigninServiceException {
|
|
394
205
|
name = "AccessDeniedException";
|
|
395
206
|
$fault = "client";
|
|
396
207
|
error;
|
|
@@ -404,8 +215,7 @@ class AccessDeniedException extends SigninServiceException_1.SigninServiceExcept
|
|
|
404
215
|
this.error = opts.error;
|
|
405
216
|
}
|
|
406
217
|
}
|
|
407
|
-
|
|
408
|
-
class InternalServerException extends SigninServiceException_1.SigninServiceException {
|
|
218
|
+
class InternalServerException extends SigninServiceException {
|
|
409
219
|
name = "InternalServerException";
|
|
410
220
|
$fault = "server";
|
|
411
221
|
error;
|
|
@@ -419,8 +229,7 @@ class InternalServerException extends SigninServiceException_1.SigninServiceExce
|
|
|
419
229
|
this.error = opts.error;
|
|
420
230
|
}
|
|
421
231
|
}
|
|
422
|
-
|
|
423
|
-
class TooManyRequestsError extends SigninServiceException_1.SigninServiceException {
|
|
232
|
+
class TooManyRequestsError extends SigninServiceException {
|
|
424
233
|
name = "TooManyRequestsError";
|
|
425
234
|
$fault = "client";
|
|
426
235
|
error;
|
|
@@ -434,8 +243,7 @@ class TooManyRequestsError extends SigninServiceException_1.SigninServiceExcepti
|
|
|
434
243
|
this.error = opts.error;
|
|
435
244
|
}
|
|
436
245
|
}
|
|
437
|
-
|
|
438
|
-
class ValidationException extends SigninServiceException_1.SigninServiceException {
|
|
246
|
+
class ValidationException extends SigninServiceException {
|
|
439
247
|
name = "ValidationException";
|
|
440
248
|
$fault = "client";
|
|
441
249
|
error;
|
|
@@ -449,134 +257,7 @@ class ValidationException extends SigninServiceException_1.SigninServiceExceptio
|
|
|
449
257
|
this.error = opts.error;
|
|
450
258
|
}
|
|
451
259
|
}
|
|
452
|
-
exports.ValidationException = ValidationException;
|
|
453
|
-
|
|
454
260
|
|
|
455
|
-
/***/ }),
|
|
456
|
-
|
|
457
|
-
/***/ 22836:
|
|
458
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
462
|
-
exports.getRuntimeConfig = void 0;
|
|
463
|
-
const tslib_1 = __webpack_require__(61860);
|
|
464
|
-
const package_json_1 = tslib_1.__importDefault(__webpack_require__(39955));
|
|
465
|
-
const client_1 = __webpack_require__(5152);
|
|
466
|
-
const httpAuthSchemes_1 = __webpack_require__(97523);
|
|
467
|
-
const util_user_agent_node_1 = __webpack_require__(51656);
|
|
468
|
-
const config_resolver_1 = __webpack_require__(39316);
|
|
469
|
-
const hash_node_1 = __webpack_require__(5092);
|
|
470
|
-
const middleware_retry_1 = __webpack_require__(19618);
|
|
471
|
-
const node_config_provider_1 = __webpack_require__(55704);
|
|
472
|
-
const node_http_handler_1 = __webpack_require__(61279);
|
|
473
|
-
const smithy_client_1 = __webpack_require__(61411);
|
|
474
|
-
const util_body_length_node_1 = __webpack_require__(13638);
|
|
475
|
-
const util_defaults_mode_node_1 = __webpack_require__(15435);
|
|
476
|
-
const util_retry_1 = __webpack_require__(15518);
|
|
477
|
-
const runtimeConfig_shared_1 = __webpack_require__(357);
|
|
478
|
-
const getRuntimeConfig = (config) => {
|
|
479
|
-
(0, smithy_client_1.emitWarningIfUnsupportedVersion)(process.version);
|
|
480
|
-
const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
|
|
481
|
-
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
482
|
-
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
|
483
|
-
(0, client_1.emitWarningIfUnsupportedVersion)(process.version);
|
|
484
|
-
const loaderConfig = {
|
|
485
|
-
profile: config?.profile,
|
|
486
|
-
logger: clientSharedValues.logger,
|
|
487
|
-
};
|
|
488
|
-
return {
|
|
489
|
-
...clientSharedValues,
|
|
490
|
-
...config,
|
|
491
|
-
runtime: "node",
|
|
492
|
-
defaultsMode,
|
|
493
|
-
authSchemePreference: config?.authSchemePreference ?? (0, node_config_provider_1.loadConfig)(httpAuthSchemes_1.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
|
|
494
|
-
bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
|
|
495
|
-
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
496
|
-
(0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
497
|
-
maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
|
498
|
-
region: config?.region ??
|
|
499
|
-
(0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
|
500
|
-
requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
501
|
-
retryMode: config?.retryMode ??
|
|
502
|
-
(0, node_config_provider_1.loadConfig)({
|
|
503
|
-
...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
504
|
-
default: async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE,
|
|
505
|
-
}, config),
|
|
506
|
-
sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"),
|
|
507
|
-
streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
|
|
508
|
-
useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
509
|
-
useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
510
|
-
userAgentAppId: config?.userAgentAppId ?? (0, node_config_provider_1.loadConfig)(util_user_agent_node_1.NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
|
|
511
|
-
};
|
|
512
|
-
};
|
|
513
|
-
exports.getRuntimeConfig = getRuntimeConfig;
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
/***/ }),
|
|
517
|
-
|
|
518
|
-
/***/ 357:
|
|
519
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
523
|
-
exports.getRuntimeConfig = void 0;
|
|
524
|
-
const httpAuthSchemes_1 = __webpack_require__(97523);
|
|
525
|
-
const protocols_1 = __webpack_require__(37288);
|
|
526
|
-
const core_1 = __webpack_require__(90402);
|
|
527
|
-
const smithy_client_1 = __webpack_require__(61411);
|
|
528
|
-
const url_parser_1 = __webpack_require__(14494);
|
|
529
|
-
const util_base64_1 = __webpack_require__(68385);
|
|
530
|
-
const util_utf8_1 = __webpack_require__(71577);
|
|
531
|
-
const httpAuthSchemeProvider_1 = __webpack_require__(77709);
|
|
532
|
-
const endpointResolver_1 = __webpack_require__(12547);
|
|
533
|
-
const schemas_0_1 = __webpack_require__(60890);
|
|
534
|
-
const getRuntimeConfig = (config) => {
|
|
535
|
-
return {
|
|
536
|
-
apiVersion: "2023-01-01",
|
|
537
|
-
base64Decoder: config?.base64Decoder ?? util_base64_1.fromBase64,
|
|
538
|
-
base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64,
|
|
539
|
-
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
540
|
-
endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
|
|
541
|
-
extensions: config?.extensions ?? [],
|
|
542
|
-
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? httpAuthSchemeProvider_1.defaultSigninHttpAuthSchemeProvider,
|
|
543
|
-
httpAuthSchemes: config?.httpAuthSchemes ?? [
|
|
544
|
-
{
|
|
545
|
-
schemeId: "aws.auth#sigv4",
|
|
546
|
-
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
|
547
|
-
signer: new httpAuthSchemes_1.AwsSdkSigV4Signer(),
|
|
548
|
-
},
|
|
549
|
-
{
|
|
550
|
-
schemeId: "smithy.api#noAuth",
|
|
551
|
-
identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})),
|
|
552
|
-
signer: new core_1.NoAuthSigner(),
|
|
553
|
-
},
|
|
554
|
-
],
|
|
555
|
-
logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
|
|
556
|
-
protocol: config?.protocol ?? protocols_1.AwsRestJsonProtocol,
|
|
557
|
-
protocolSettings: config?.protocolSettings ?? {
|
|
558
|
-
defaultNamespace: "com.amazonaws.signin",
|
|
559
|
-
errorTypeRegistries: schemas_0_1.errorTypeRegistries,
|
|
560
|
-
version: "2023-01-01",
|
|
561
|
-
serviceTarget: "Signin",
|
|
562
|
-
},
|
|
563
|
-
serviceId: config?.serviceId ?? "Signin",
|
|
564
|
-
urlParser: config?.urlParser ?? url_parser_1.parseUrl,
|
|
565
|
-
utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
|
|
566
|
-
utf8Encoder: config?.utf8Encoder ?? util_utf8_1.toUtf8,
|
|
567
|
-
};
|
|
568
|
-
};
|
|
569
|
-
exports.getRuntimeConfig = getRuntimeConfig;
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
/***/ }),
|
|
573
|
-
|
|
574
|
-
/***/ 60890:
|
|
575
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
579
|
-
exports.CreateOAuth2Token$ = exports.CreateOAuth2TokenResponseBody$ = exports.CreateOAuth2TokenResponse$ = exports.CreateOAuth2TokenRequestBody$ = exports.CreateOAuth2TokenRequest$ = exports.AccessToken$ = exports.errorTypeRegistries = exports.ValidationException$ = exports.TooManyRequestsError$ = exports.InternalServerException$ = exports.AccessDeniedException$ = exports.SigninServiceException$ = void 0;
|
|
580
261
|
const _ADE = "AccessDeniedException";
|
|
581
262
|
const _AT = "AccessToken";
|
|
582
263
|
const _COAT = "CreateOAuth2Token";
|
|
@@ -612,24 +293,21 @@ const _tI = "tokenInput";
|
|
|
612
293
|
const _tO = "tokenOutput";
|
|
613
294
|
const _tT = "tokenType";
|
|
614
295
|
const n0 = "com.amazonaws.signin";
|
|
615
|
-
const
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
const
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
n0_registry
|
|
628
|
-
exports.ValidationException$ = [-3, n0, _VE, { [_e]: _c, [_hE]: 400 }, [_e, _m], [0, 0], 2];
|
|
629
|
-
n0_registry.registerError(exports.ValidationException$, errors_1.ValidationException);
|
|
630
|
-
exports.errorTypeRegistries = [_s_registry, n0_registry];
|
|
296
|
+
const _s_registry = schema.TypeRegistry.for(_s);
|
|
297
|
+
var SigninServiceException$ = [-3, _s, "SigninServiceException", 0, [], []];
|
|
298
|
+
_s_registry.registerError(SigninServiceException$, SigninServiceException);
|
|
299
|
+
const n0_registry = schema.TypeRegistry.for(n0);
|
|
300
|
+
var AccessDeniedException$ = [-3, n0, _ADE, { [_e]: _c }, [_e, _m], [0, 0], 2];
|
|
301
|
+
n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
|
|
302
|
+
var InternalServerException$ = [-3, n0, _ISE, { [_e]: _se, [_hE]: 500 }, [_e, _m], [0, 0], 2];
|
|
303
|
+
n0_registry.registerError(InternalServerException$, InternalServerException);
|
|
304
|
+
var TooManyRequestsError$ = [-3, n0, _TMRE, { [_e]: _c, [_hE]: 429 }, [_e, _m], [0, 0], 2];
|
|
305
|
+
n0_registry.registerError(TooManyRequestsError$, TooManyRequestsError);
|
|
306
|
+
var ValidationException$ = [-3, n0, _VE, { [_e]: _c, [_hE]: 400 }, [_e, _m], [0, 0], 2];
|
|
307
|
+
n0_registry.registerError(ValidationException$, ValidationException);
|
|
308
|
+
const errorTypeRegistries = [_s_registry, n0_registry];
|
|
631
309
|
var RefreshToken = [0, n0, _RT, 8, 0];
|
|
632
|
-
|
|
310
|
+
var AccessToken$ = [
|
|
633
311
|
3,
|
|
634
312
|
n0,
|
|
635
313
|
_AT,
|
|
@@ -642,16 +320,16 @@ exports.AccessToken$ = [
|
|
|
642
320
|
],
|
|
643
321
|
3,
|
|
644
322
|
];
|
|
645
|
-
|
|
323
|
+
var CreateOAuth2TokenRequest$ = [
|
|
646
324
|
3,
|
|
647
325
|
n0,
|
|
648
326
|
_COATR,
|
|
649
327
|
0,
|
|
650
328
|
[_tI],
|
|
651
|
-
[[() =>
|
|
329
|
+
[[() => CreateOAuth2TokenRequestBody$, 16]],
|
|
652
330
|
1,
|
|
653
331
|
];
|
|
654
|
-
|
|
332
|
+
var CreateOAuth2TokenRequestBody$ = [
|
|
655
333
|
3,
|
|
656
334
|
n0,
|
|
657
335
|
_COATRB,
|
|
@@ -667,23 +345,23 @@ exports.CreateOAuth2TokenRequestBody$ = [
|
|
|
667
345
|
],
|
|
668
346
|
2,
|
|
669
347
|
];
|
|
670
|
-
|
|
348
|
+
var CreateOAuth2TokenResponse$ = [
|
|
671
349
|
3,
|
|
672
350
|
n0,
|
|
673
351
|
_COATRr,
|
|
674
352
|
0,
|
|
675
353
|
[_tO],
|
|
676
|
-
[[() =>
|
|
354
|
+
[[() => CreateOAuth2TokenResponseBody$, 16]],
|
|
677
355
|
1,
|
|
678
356
|
];
|
|
679
|
-
|
|
357
|
+
var CreateOAuth2TokenResponseBody$ = [
|
|
680
358
|
3,
|
|
681
359
|
n0,
|
|
682
360
|
_COATRBr,
|
|
683
361
|
0,
|
|
684
362
|
[_aT, _tT, _eI, _rT, _iT],
|
|
685
363
|
[
|
|
686
|
-
[() =>
|
|
364
|
+
[() => AccessToken$, { [_jN]: _aT }],
|
|
687
365
|
[0, { [_jN]: _tT }],
|
|
688
366
|
[1, { [_jN]: _eI }],
|
|
689
367
|
[() => RefreshToken, { [_jN]: _rT }],
|
|
@@ -691,22 +369,219 @@ exports.CreateOAuth2TokenResponseBody$ = [
|
|
|
691
369
|
],
|
|
692
370
|
4,
|
|
693
371
|
];
|
|
694
|
-
|
|
372
|
+
var CreateOAuth2Token$ = [
|
|
695
373
|
9,
|
|
696
374
|
n0,
|
|
697
375
|
_COAT,
|
|
698
376
|
{ [_h]: ["POST", "/v1/token", 200] },
|
|
699
|
-
() =>
|
|
700
|
-
() =>
|
|
377
|
+
() => CreateOAuth2TokenRequest$,
|
|
378
|
+
() => CreateOAuth2TokenResponse$,
|
|
701
379
|
];
|
|
702
380
|
|
|
381
|
+
const getRuntimeConfig$1 = (config) => {
|
|
382
|
+
return {
|
|
383
|
+
apiVersion: "2023-01-01",
|
|
384
|
+
base64Decoder: config?.base64Decoder ?? serde.fromBase64,
|
|
385
|
+
base64Encoder: config?.base64Encoder ?? serde.toBase64,
|
|
386
|
+
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
387
|
+
endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
|
|
388
|
+
extensions: config?.extensions ?? [],
|
|
389
|
+
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultSigninHttpAuthSchemeProvider,
|
|
390
|
+
httpAuthSchemes: config?.httpAuthSchemes ?? [
|
|
391
|
+
{
|
|
392
|
+
schemeId: "aws.auth#sigv4",
|
|
393
|
+
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
|
394
|
+
signer: new httpAuthSchemes.AwsSdkSigV4Signer(),
|
|
395
|
+
},
|
|
396
|
+
{
|
|
397
|
+
schemeId: "smithy.api#noAuth",
|
|
398
|
+
identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})),
|
|
399
|
+
signer: new core.NoAuthSigner(),
|
|
400
|
+
},
|
|
401
|
+
],
|
|
402
|
+
logger: config?.logger ?? new client.NoOpLogger(),
|
|
403
|
+
protocol: config?.protocol ?? protocols$1.AwsRestJsonProtocol,
|
|
404
|
+
protocolSettings: config?.protocolSettings ?? {
|
|
405
|
+
defaultNamespace: "com.amazonaws.signin",
|
|
406
|
+
errorTypeRegistries,
|
|
407
|
+
version: "2023-01-01",
|
|
408
|
+
serviceTarget: "Signin",
|
|
409
|
+
},
|
|
410
|
+
serviceId: config?.serviceId ?? "Signin",
|
|
411
|
+
urlParser: config?.urlParser ?? protocols.parseUrl,
|
|
412
|
+
utf8Decoder: config?.utf8Decoder ?? serde.fromUtf8,
|
|
413
|
+
utf8Encoder: config?.utf8Encoder ?? serde.toUtf8,
|
|
414
|
+
};
|
|
415
|
+
};
|
|
703
416
|
|
|
704
|
-
|
|
417
|
+
const getRuntimeConfig = (config$1) => {
|
|
418
|
+
client.emitWarningIfUnsupportedVersion(process.version);
|
|
419
|
+
const defaultsMode = config.resolveDefaultsModeConfig(config$1);
|
|
420
|
+
const defaultConfigProvider = () => defaultsMode().then(client.loadConfigsForDefaultMode);
|
|
421
|
+
const clientSharedValues = getRuntimeConfig$1(config$1);
|
|
422
|
+
client$1.emitWarningIfUnsupportedVersion(process.version);
|
|
423
|
+
const loaderConfig = {
|
|
424
|
+
profile: config$1?.profile,
|
|
425
|
+
logger: clientSharedValues.logger,
|
|
426
|
+
};
|
|
427
|
+
return {
|
|
428
|
+
...clientSharedValues,
|
|
429
|
+
...config$1,
|
|
430
|
+
runtime: "node",
|
|
431
|
+
defaultsMode,
|
|
432
|
+
authSchemePreference: config$1?.authSchemePreference ?? config.loadConfig(httpAuthSchemes.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
|
|
433
|
+
bodyLengthChecker: config$1?.bodyLengthChecker ?? serde.calculateBodyLength,
|
|
434
|
+
defaultUserAgentProvider: config$1?.defaultUserAgentProvider ??
|
|
435
|
+
utilUserAgentNode.createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
436
|
+
maxAttempts: config$1?.maxAttempts ?? config.loadConfig(retry.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config$1),
|
|
437
|
+
region: config$1?.region ??
|
|
438
|
+
config.loadConfig(config.NODE_REGION_CONFIG_OPTIONS, { ...config.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
|
439
|
+
requestHandler: nodeHttpHandler.NodeHttpHandler.create(config$1?.requestHandler ?? defaultConfigProvider),
|
|
440
|
+
retryMode: config$1?.retryMode ??
|
|
441
|
+
config.loadConfig({
|
|
442
|
+
...retry.NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
443
|
+
default: async () => (await defaultConfigProvider()).retryMode || retry.DEFAULT_RETRY_MODE,
|
|
444
|
+
}, config$1),
|
|
445
|
+
sha256: config$1?.sha256 ?? serde.Hash.bind(null, "sha256"),
|
|
446
|
+
streamCollector: config$1?.streamCollector ?? nodeHttpHandler.streamCollector,
|
|
447
|
+
useDualstackEndpoint: config$1?.useDualstackEndpoint ?? config.loadConfig(config.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
448
|
+
useFipsEndpoint: config$1?.useFipsEndpoint ?? config.loadConfig(config.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
449
|
+
userAgentAppId: config$1?.userAgentAppId ?? config.loadConfig(utilUserAgentNode.NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
|
|
450
|
+
};
|
|
451
|
+
};
|
|
705
452
|
|
|
706
|
-
|
|
707
|
-
|
|
453
|
+
const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
454
|
+
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
455
|
+
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
456
|
+
let _credentials = runtimeConfig.credentials;
|
|
457
|
+
return {
|
|
458
|
+
setHttpAuthScheme(httpAuthScheme) {
|
|
459
|
+
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
460
|
+
if (index === -1) {
|
|
461
|
+
_httpAuthSchemes.push(httpAuthScheme);
|
|
462
|
+
}
|
|
463
|
+
else {
|
|
464
|
+
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
|
465
|
+
}
|
|
466
|
+
},
|
|
467
|
+
httpAuthSchemes() {
|
|
468
|
+
return _httpAuthSchemes;
|
|
469
|
+
},
|
|
470
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
|
471
|
+
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
|
472
|
+
},
|
|
473
|
+
httpAuthSchemeProvider() {
|
|
474
|
+
return _httpAuthSchemeProvider;
|
|
475
|
+
},
|
|
476
|
+
setCredentials(credentials) {
|
|
477
|
+
_credentials = credentials;
|
|
478
|
+
},
|
|
479
|
+
credentials() {
|
|
480
|
+
return _credentials;
|
|
481
|
+
},
|
|
482
|
+
};
|
|
483
|
+
};
|
|
484
|
+
const resolveHttpAuthRuntimeConfig = (config) => {
|
|
485
|
+
return {
|
|
486
|
+
httpAuthSchemes: config.httpAuthSchemes(),
|
|
487
|
+
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
488
|
+
credentials: config.credentials(),
|
|
489
|
+
};
|
|
490
|
+
};
|
|
491
|
+
|
|
492
|
+
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
493
|
+
const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), client.getDefaultExtensionConfiguration(runtimeConfig), protocols.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
494
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
495
|
+
return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), client.resolveDefaultRuntimeConfig(extensionConfiguration), protocols.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
496
|
+
};
|
|
497
|
+
|
|
498
|
+
class SigninClient extends client.Client {
|
|
499
|
+
config;
|
|
500
|
+
constructor(...[configuration]) {
|
|
501
|
+
const _config_0 = getRuntimeConfig(configuration || {});
|
|
502
|
+
super(_config_0);
|
|
503
|
+
this.initConfig = _config_0;
|
|
504
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
505
|
+
const _config_2 = middlewareUserAgent.resolveUserAgentConfig(_config_1);
|
|
506
|
+
const _config_3 = retry.resolveRetryConfig(_config_2);
|
|
507
|
+
const _config_4 = config.resolveRegionConfig(_config_3);
|
|
508
|
+
const _config_5 = middlewareHostHeader.resolveHostHeaderConfig(_config_4);
|
|
509
|
+
const _config_6 = endpoints.resolveEndpointConfig(_config_5);
|
|
510
|
+
const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
|
|
511
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
512
|
+
this.config = _config_8;
|
|
513
|
+
this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config));
|
|
514
|
+
this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
|
|
515
|
+
this.middlewareStack.use(retry.getRetryPlugin(this.config));
|
|
516
|
+
this.middlewareStack.use(protocols.getContentLengthPlugin(this.config));
|
|
517
|
+
this.middlewareStack.use(middlewareHostHeader.getHostHeaderPlugin(this.config));
|
|
518
|
+
this.middlewareStack.use(middlewareLogger.getLoggerPlugin(this.config));
|
|
519
|
+
this.middlewareStack.use(middlewareRecursionDetection.getRecursionDetectionPlugin(this.config));
|
|
520
|
+
this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
521
|
+
httpAuthSchemeParametersProvider: defaultSigninHttpAuthSchemeParametersProvider,
|
|
522
|
+
identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
|
|
523
|
+
"aws.auth#sigv4": config.credentials,
|
|
524
|
+
}),
|
|
525
|
+
}));
|
|
526
|
+
this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
|
|
527
|
+
}
|
|
528
|
+
destroy() {
|
|
529
|
+
super.destroy();
|
|
530
|
+
}
|
|
531
|
+
}
|
|
532
|
+
|
|
533
|
+
class CreateOAuth2TokenCommand extends client.Command
|
|
534
|
+
.classBuilder()
|
|
535
|
+
.ep(commonParams)
|
|
536
|
+
.m(function (Command, cs, config, o) {
|
|
537
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
538
|
+
})
|
|
539
|
+
.s("Signin", "CreateOAuth2Token", {})
|
|
540
|
+
.n("SigninClient", "CreateOAuth2TokenCommand")
|
|
541
|
+
.sc(CreateOAuth2Token$)
|
|
542
|
+
.build() {
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
const commands = {
|
|
546
|
+
CreateOAuth2TokenCommand,
|
|
547
|
+
};
|
|
548
|
+
class Signin extends SigninClient {
|
|
549
|
+
}
|
|
550
|
+
client.createAggregatedClient(commands, Signin);
|
|
551
|
+
|
|
552
|
+
const OAuth2ErrorCode = {
|
|
553
|
+
AUTHCODE_EXPIRED: "AUTHCODE_EXPIRED",
|
|
554
|
+
INSUFFICIENT_PERMISSIONS: "INSUFFICIENT_PERMISSIONS",
|
|
555
|
+
INVALID_REQUEST: "INVALID_REQUEST",
|
|
556
|
+
SERVER_ERROR: "server_error",
|
|
557
|
+
TOKEN_EXPIRED: "TOKEN_EXPIRED",
|
|
558
|
+
USER_CREDENTIALS_CHANGED: "USER_CREDENTIALS_CHANGED",
|
|
559
|
+
};
|
|
560
|
+
|
|
561
|
+
__webpack_unused_export__ = client.Command;
|
|
562
|
+
__webpack_unused_export__ = client.Client;
|
|
563
|
+
__webpack_unused_export__ = AccessDeniedException;
|
|
564
|
+
__webpack_unused_export__ = AccessDeniedException$;
|
|
565
|
+
__webpack_unused_export__ = AccessToken$;
|
|
566
|
+
__webpack_unused_export__ = CreateOAuth2Token$;
|
|
567
|
+
exports.CreateOAuth2TokenCommand = CreateOAuth2TokenCommand;
|
|
568
|
+
__webpack_unused_export__ = CreateOAuth2TokenRequest$;
|
|
569
|
+
__webpack_unused_export__ = CreateOAuth2TokenRequestBody$;
|
|
570
|
+
__webpack_unused_export__ = CreateOAuth2TokenResponse$;
|
|
571
|
+
__webpack_unused_export__ = CreateOAuth2TokenResponseBody$;
|
|
572
|
+
__webpack_unused_export__ = InternalServerException;
|
|
573
|
+
__webpack_unused_export__ = InternalServerException$;
|
|
574
|
+
__webpack_unused_export__ = OAuth2ErrorCode;
|
|
575
|
+
__webpack_unused_export__ = Signin;
|
|
576
|
+
exports.SigninClient = SigninClient;
|
|
577
|
+
__webpack_unused_export__ = SigninServiceException;
|
|
578
|
+
__webpack_unused_export__ = SigninServiceException$;
|
|
579
|
+
__webpack_unused_export__ = TooManyRequestsError;
|
|
580
|
+
__webpack_unused_export__ = TooManyRequestsError$;
|
|
581
|
+
__webpack_unused_export__ = ValidationException;
|
|
582
|
+
__webpack_unused_export__ = ValidationException$;
|
|
583
|
+
__webpack_unused_export__ = errorTypeRegistries;
|
|
708
584
|
|
|
709
|
-
module.exports = /*#__PURE__*/JSON.parse('{"name":"@aws-sdk/nested-clients","version":"3.997.6","description":"Nested clients for AWS SDK packages.","main":"./dist-cjs/index.js","module":"./dist-es/index.js","types":"./dist-types/index.d.ts","scripts":{"build":"yarn lint && concurrently \'yarn:build:types\' \'yarn:build:es\' && yarn build:cjs","build:cjs":"node ../../scripts/compilation/inline nested-clients","build:es":"tsc -p tsconfig.es.json","build:include:deps":"yarn g:turbo run build -F=\\"$npm_package_name\\"","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo","lint":"node ../../scripts/validation/submodules-linter.js --pkg nested-clients","test":"yarn g:vitest run","test:watch":"yarn g:vitest watch"},"engines":{"node":">=20.0.0"},"sideEffects":false,"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","dependencies":{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"^3.974.8","@aws-sdk/middleware-host-header":"^3.972.10","@aws-sdk/middleware-logger":"^3.972.10","@aws-sdk/middleware-recursion-detection":"^3.972.11","@aws-sdk/middleware-user-agent":"^3.972.38","@aws-sdk/region-config-resolver":"^3.972.13","@aws-sdk/signature-v4-multi-region":"^3.996.25","@aws-sdk/types":"^3.973.8","@aws-sdk/util-endpoints":"^3.996.8","@aws-sdk/util-user-agent-browser":"^3.972.10","@aws-sdk/util-user-agent-node":"^3.973.24","@smithy/config-resolver":"^4.4.17","@smithy/core":"^3.23.17","@smithy/fetch-http-handler":"^5.3.17","@smithy/hash-node":"^4.2.14","@smithy/invalid-dependency":"^4.2.14","@smithy/middleware-content-length":"^4.2.14","@smithy/middleware-endpoint":"^4.4.32","@smithy/middleware-retry":"^4.5.7","@smithy/middleware-serde":"^4.2.20","@smithy/middleware-stack":"^4.2.14","@smithy/node-config-provider":"^4.3.14","@smithy/node-http-handler":"^4.6.1","@smithy/protocol-http":"^5.3.14","@smithy/smithy-client":"^4.12.13","@smithy/types":"^4.14.1","@smithy/url-parser":"^4.2.14","@smithy/util-base64":"^4.3.2","@smithy/util-body-length-browser":"^4.2.2","@smithy/util-body-length-node":"^4.2.3","@smithy/util-defaults-mode-browser":"^4.3.49","@smithy/util-defaults-mode-node":"^4.2.54","@smithy/util-endpoints":"^3.4.2","@smithy/util-middleware":"^4.2.14","@smithy/util-retry":"^4.3.6","@smithy/util-utf8":"^4.2.2","tslib":"^2.6.2"},"devDependencies":{"concurrently":"7.0.0","downlevel-dts":"0.10.1","premove":"4.0.0","typescript":"~5.8.3"},"typesVersions":{"<4.5":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["./cognito-identity.d.ts","./cognito-identity.js","./signin.d.ts","./signin.js","./sso-oidc.d.ts","./sso-oidc.js","./sso.d.ts","./sso.js","./sts.d.ts","./sts.js","dist-*/**"],"browser":{"./dist-es/submodules/cognito-identity/runtimeConfig":"./dist-es/submodules/cognito-identity/runtimeConfig.browser","./dist-es/submodules/signin/runtimeConfig":"./dist-es/submodules/signin/runtimeConfig.browser","./dist-es/submodules/sso-oidc/runtimeConfig":"./dist-es/submodules/sso-oidc/runtimeConfig.browser","./dist-es/submodules/sso/runtimeConfig":"./dist-es/submodules/sso/runtimeConfig.browser","./dist-es/submodules/sts/runtimeConfig":"./dist-es/submodules/sts/runtimeConfig.browser"},"react-native":{},"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/packages/nested-clients","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"packages/nested-clients"},"exports":{"./package.json":"./package.json","./sso-oidc":{"types":"./dist-types/submodules/sso-oidc/index.d.ts","module":"./dist-es/submodules/sso-oidc/index.js","node":"./dist-cjs/submodules/sso-oidc/index.js","import":"./dist-es/submodules/sso-oidc/index.js","require":"./dist-cjs/submodules/sso-oidc/index.js"},"./sts":{"types":"./dist-types/submodules/sts/index.d.ts","module":"./dist-es/submodules/sts/index.js","node":"./dist-cjs/submodules/sts/index.js","import":"./dist-es/submodules/sts/index.js","require":"./dist-cjs/submodules/sts/index.js"},"./signin":{"types":"./dist-types/submodules/signin/index.d.ts","module":"./dist-es/submodules/signin/index.js","node":"./dist-cjs/submodules/signin/index.js","import":"./dist-es/submodules/signin/index.js","require":"./dist-cjs/submodules/signin/index.js"},"./cognito-identity":{"types":"./dist-types/submodules/cognito-identity/index.d.ts","module":"./dist-es/submodules/cognito-identity/index.js","node":"./dist-cjs/submodules/cognito-identity/index.js","import":"./dist-es/submodules/cognito-identity/index.js","require":"./dist-cjs/submodules/cognito-identity/index.js"},"./sso":{"types":"./dist-types/submodules/sso/index.d.ts","module":"./dist-es/submodules/sso/index.js","node":"./dist-cjs/submodules/sso/index.js","import":"./dist-es/submodules/sso/index.js","require":"./dist-cjs/submodules/sso/index.js"}}}');
|
|
710
585
|
|
|
711
586
|
/***/ })
|
|
712
587
|
|