@rharkor/caching-for-turbo 2.4.2 → 2.5.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/README.md +6 -2
- package/dist/cli/136.index.js +760 -574
- package/dist/cli/136.index.js.map +1 -1
- package/dist/cli/360.index.js +8 -7
- package/dist/cli/360.index.js.map +1 -1
- package/dist/cli/443.index.js +424 -309
- package/dist/cli/443.index.js.map +1 -1
- package/dist/cli/566.index.js +43 -41
- package/dist/cli/566.index.js.map +1 -1
- package/dist/cli/605.index.js +20 -21
- package/dist/cli/605.index.js.map +1 -1
- package/dist/cli/762.index.js +403 -278
- package/dist/cli/762.index.js.map +1 -1
- package/dist/cli/869.index.js +29 -27
- package/dist/cli/869.index.js.map +1 -1
- package/dist/cli/956.index.js +39 -5
- package/dist/cli/956.index.js.map +1 -1
- package/dist/cli/998.index.js +430 -300
- package/dist/cli/998.index.js.map +1 -1
- package/dist/cli/index.js +10090 -5091
- package/dist/cli/licenses.txt +0 -1233
- package/dist/cli/sourcemap-register.cjs +1 -1
- package/package.json +2 -2
package/dist/cli/762.index.js
CHANGED
|
@@ -2,41 +2,24 @@ export const id = 762;
|
|
|
2
2
|
export const ids = [762];
|
|
3
3
|
export const modules = {
|
|
4
4
|
|
|
5
|
-
/***/
|
|
5
|
+
/***/ 77709:
|
|
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);
|
|
30
8
|
|
|
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);
|
|
31
13
|
const defaultSigninHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
32
14
|
return {
|
|
33
|
-
operation:
|
|
34
|
-
region: (await
|
|
15
|
+
operation: (0, util_middleware_1.getSmithyContext)(context).operation,
|
|
16
|
+
region: (await (0, util_middleware_1.normalizeProvider)(config.region)()) ||
|
|
35
17
|
(() => {
|
|
36
18
|
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
|
37
19
|
})(),
|
|
38
20
|
};
|
|
39
21
|
};
|
|
22
|
+
exports.defaultSigninHttpAuthSchemeParametersProvider = defaultSigninHttpAuthSchemeParametersProvider;
|
|
40
23
|
function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
|
41
24
|
return {
|
|
42
25
|
schemeId: "aws.auth#sigv4",
|
|
@@ -61,7 +44,7 @@ const defaultSigninHttpAuthSchemeProvider = (authParameters) => {
|
|
|
61
44
|
const options = [];
|
|
62
45
|
switch (authParameters.operation) {
|
|
63
46
|
case "CreateOAuth2Token": {
|
|
64
|
-
options.push(createSmithyApiNoAuthHttpAuthOption());
|
|
47
|
+
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
|
65
48
|
break;
|
|
66
49
|
}
|
|
67
50
|
default: {
|
|
@@ -70,31 +53,25 @@ const defaultSigninHttpAuthSchemeProvider = (authParameters) => {
|
|
|
70
53
|
}
|
|
71
54
|
return options;
|
|
72
55
|
};
|
|
56
|
+
exports.defaultSigninHttpAuthSchemeProvider = defaultSigninHttpAuthSchemeProvider;
|
|
73
57
|
const resolveHttpAuthSchemeConfig = (config) => {
|
|
74
|
-
const config_0 =
|
|
58
|
+
const config_0 = (0, httpAuthSchemes_1.resolveAwsSdkSigV4Config)(config);
|
|
75
59
|
return Object.assign(config_0, {
|
|
76
|
-
authSchemePreference:
|
|
60
|
+
authSchemePreference: (0, util_middleware_1.normalizeProvider)(config.authSchemePreference ?? []),
|
|
77
61
|
});
|
|
78
62
|
};
|
|
63
|
+
exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
|
|
79
64
|
|
|
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
|
-
};
|
|
93
65
|
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
66
|
+
/***/ }),
|
|
67
|
+
|
|
68
|
+
/***/ 34776:
|
|
69
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
70
|
+
|
|
97
71
|
|
|
72
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
73
|
+
exports.bdd = void 0;
|
|
74
|
+
const util_endpoints_1 = __webpack_require__(79674);
|
|
98
75
|
const m = "ref";
|
|
99
76
|
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" }];
|
|
100
77
|
const _data = {
|
|
@@ -180,28 +157,240 @@ const nodes = new Int32Array([
|
|
|
180
157
|
r + 2,
|
|
181
158
|
r + 3,
|
|
182
159
|
]);
|
|
183
|
-
|
|
160
|
+
exports.bdd = util_endpoints_1.BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
/***/ }),
|
|
184
164
|
|
|
185
|
-
|
|
165
|
+
/***/ 12547:
|
|
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({
|
|
186
175
|
size: 50,
|
|
187
176
|
params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
|
|
188
177
|
});
|
|
189
178
|
const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
190
|
-
return cache.get(endpointParams, () =>
|
|
179
|
+
return cache.get(endpointParams, () => (0, util_endpoints_2.decideEndpoint)(bdd_1.bdd, {
|
|
191
180
|
endpointParams: endpointParams,
|
|
192
181
|
logger: context.logger,
|
|
193
182
|
}));
|
|
194
183
|
};
|
|
195
|
-
|
|
184
|
+
exports.defaultEndpointResolver = defaultEndpointResolver;
|
|
185
|
+
util_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
/***/ }),
|
|
196
189
|
|
|
197
|
-
|
|
190
|
+
/***/ 99762:
|
|
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 {
|
|
198
376
|
constructor(options) {
|
|
199
377
|
super(options);
|
|
200
378
|
Object.setPrototypeOf(this, SigninServiceException.prototype);
|
|
201
379
|
}
|
|
202
380
|
}
|
|
381
|
+
exports.SigninServiceException = SigninServiceException;
|
|
382
|
+
|
|
203
383
|
|
|
204
|
-
|
|
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 {
|
|
205
394
|
name = "AccessDeniedException";
|
|
206
395
|
$fault = "client";
|
|
207
396
|
error;
|
|
@@ -215,7 +404,8 @@ class AccessDeniedException extends SigninServiceException {
|
|
|
215
404
|
this.error = opts.error;
|
|
216
405
|
}
|
|
217
406
|
}
|
|
218
|
-
|
|
407
|
+
exports.AccessDeniedException = AccessDeniedException;
|
|
408
|
+
class InternalServerException extends SigninServiceException_1.SigninServiceException {
|
|
219
409
|
name = "InternalServerException";
|
|
220
410
|
$fault = "server";
|
|
221
411
|
error;
|
|
@@ -229,7 +419,8 @@ class InternalServerException extends SigninServiceException {
|
|
|
229
419
|
this.error = opts.error;
|
|
230
420
|
}
|
|
231
421
|
}
|
|
232
|
-
|
|
422
|
+
exports.InternalServerException = InternalServerException;
|
|
423
|
+
class TooManyRequestsError extends SigninServiceException_1.SigninServiceException {
|
|
233
424
|
name = "TooManyRequestsError";
|
|
234
425
|
$fault = "client";
|
|
235
426
|
error;
|
|
@@ -243,7 +434,8 @@ class TooManyRequestsError extends SigninServiceException {
|
|
|
243
434
|
this.error = opts.error;
|
|
244
435
|
}
|
|
245
436
|
}
|
|
246
|
-
|
|
437
|
+
exports.TooManyRequestsError = TooManyRequestsError;
|
|
438
|
+
class ValidationException extends SigninServiceException_1.SigninServiceException {
|
|
247
439
|
name = "ValidationException";
|
|
248
440
|
$fault = "client";
|
|
249
441
|
error;
|
|
@@ -257,7 +449,134 @@ class ValidationException extends SigninServiceException {
|
|
|
257
449
|
this.error = opts.error;
|
|
258
450
|
}
|
|
259
451
|
}
|
|
452
|
+
exports.ValidationException = ValidationException;
|
|
453
|
+
|
|
260
454
|
|
|
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;
|
|
261
580
|
const _ADE = "AccessDeniedException";
|
|
262
581
|
const _AT = "AccessToken";
|
|
263
582
|
const _COAT = "CreateOAuth2Token";
|
|
@@ -293,21 +612,24 @@ const _tI = "tokenInput";
|
|
|
293
612
|
const _tO = "tokenOutput";
|
|
294
613
|
const _tT = "tokenType";
|
|
295
614
|
const n0 = "com.amazonaws.signin";
|
|
296
|
-
const
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
const
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
615
|
+
const schema_1 = __webpack_require__(26890);
|
|
616
|
+
const errors_1 = __webpack_require__(27214);
|
|
617
|
+
const SigninServiceException_1 = __webpack_require__(42831);
|
|
618
|
+
const _s_registry = schema_1.TypeRegistry.for(_s);
|
|
619
|
+
exports.SigninServiceException$ = [-3, _s, "SigninServiceException", 0, [], []];
|
|
620
|
+
_s_registry.registerError(exports.SigninServiceException$, SigninServiceException_1.SigninServiceException);
|
|
621
|
+
const n0_registry = schema_1.TypeRegistry.for(n0);
|
|
622
|
+
exports.AccessDeniedException$ = [-3, n0, _ADE, { [_e]: _c }, [_e, _m], [0, 0], 2];
|
|
623
|
+
n0_registry.registerError(exports.AccessDeniedException$, errors_1.AccessDeniedException);
|
|
624
|
+
exports.InternalServerException$ = [-3, n0, _ISE, { [_e]: _se, [_hE]: 500 }, [_e, _m], [0, 0], 2];
|
|
625
|
+
n0_registry.registerError(exports.InternalServerException$, errors_1.InternalServerException);
|
|
626
|
+
exports.TooManyRequestsError$ = [-3, n0, _TMRE, { [_e]: _c, [_hE]: 429 }, [_e, _m], [0, 0], 2];
|
|
627
|
+
n0_registry.registerError(exports.TooManyRequestsError$, errors_1.TooManyRequestsError);
|
|
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];
|
|
309
631
|
var RefreshToken = [0, n0, _RT, 8, 0];
|
|
310
|
-
|
|
632
|
+
exports.AccessToken$ = [
|
|
311
633
|
3,
|
|
312
634
|
n0,
|
|
313
635
|
_AT,
|
|
@@ -320,16 +642,16 @@ var AccessToken$ = [
|
|
|
320
642
|
],
|
|
321
643
|
3,
|
|
322
644
|
];
|
|
323
|
-
|
|
645
|
+
exports.CreateOAuth2TokenRequest$ = [
|
|
324
646
|
3,
|
|
325
647
|
n0,
|
|
326
648
|
_COATR,
|
|
327
649
|
0,
|
|
328
650
|
[_tI],
|
|
329
|
-
[[() => CreateOAuth2TokenRequestBody$, 16]],
|
|
651
|
+
[[() => exports.CreateOAuth2TokenRequestBody$, 16]],
|
|
330
652
|
1,
|
|
331
653
|
];
|
|
332
|
-
|
|
654
|
+
exports.CreateOAuth2TokenRequestBody$ = [
|
|
333
655
|
3,
|
|
334
656
|
n0,
|
|
335
657
|
_COATRB,
|
|
@@ -345,23 +667,23 @@ var CreateOAuth2TokenRequestBody$ = [
|
|
|
345
667
|
],
|
|
346
668
|
2,
|
|
347
669
|
];
|
|
348
|
-
|
|
670
|
+
exports.CreateOAuth2TokenResponse$ = [
|
|
349
671
|
3,
|
|
350
672
|
n0,
|
|
351
673
|
_COATRr,
|
|
352
674
|
0,
|
|
353
675
|
[_tO],
|
|
354
|
-
[[() => CreateOAuth2TokenResponseBody$, 16]],
|
|
676
|
+
[[() => exports.CreateOAuth2TokenResponseBody$, 16]],
|
|
355
677
|
1,
|
|
356
678
|
];
|
|
357
|
-
|
|
679
|
+
exports.CreateOAuth2TokenResponseBody$ = [
|
|
358
680
|
3,
|
|
359
681
|
n0,
|
|
360
682
|
_COATRBr,
|
|
361
683
|
0,
|
|
362
684
|
[_aT, _tT, _eI, _rT, _iT],
|
|
363
685
|
[
|
|
364
|
-
[() => AccessToken$, { [_jN]: _aT }],
|
|
686
|
+
[() => exports.AccessToken$, { [_jN]: _aT }],
|
|
365
687
|
[0, { [_jN]: _tT }],
|
|
366
688
|
[1, { [_jN]: _eI }],
|
|
367
689
|
[() => RefreshToken, { [_jN]: _rT }],
|
|
@@ -369,219 +691,22 @@ var CreateOAuth2TokenResponseBody$ = [
|
|
|
369
691
|
],
|
|
370
692
|
4,
|
|
371
693
|
];
|
|
372
|
-
|
|
694
|
+
exports.CreateOAuth2Token$ = [
|
|
373
695
|
9,
|
|
374
696
|
n0,
|
|
375
697
|
_COAT,
|
|
376
698
|
{ [_h]: ["POST", "/v1/token", 200] },
|
|
377
|
-
() => CreateOAuth2TokenRequest$,
|
|
378
|
-
() => CreateOAuth2TokenResponse$,
|
|
699
|
+
() => exports.CreateOAuth2TokenRequest$,
|
|
700
|
+
() => exports.CreateOAuth2TokenResponse$,
|
|
379
701
|
];
|
|
380
702
|
|
|
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
|
-
};
|
|
416
703
|
|
|
417
|
-
|
|
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
|
-
};
|
|
704
|
+
/***/ }),
|
|
452
705
|
|
|
453
|
-
|
|
454
|
-
|
|
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;
|
|
706
|
+
/***/ 39955:
|
|
707
|
+
/***/ ((module) => {
|
|
584
708
|
|
|
709
|
+
module.exports = /*#__PURE__*/JSON.parse('{"name":"@aws-sdk/nested-clients","version":"3.997.2","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.4","@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.34","@aws-sdk/region-config-resolver":"^3.972.13","@aws-sdk/signature-v4-multi-region":"^3.996.21","@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.20","@smithy/config-resolver":"^4.4.17","@smithy/core":"^3.23.16","@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.31","@smithy/middleware-retry":"^4.5.4","@smithy/middleware-serde":"^4.2.19","@smithy/middleware-stack":"^4.2.14","@smithy/node-config-provider":"^4.3.14","@smithy/node-http-handler":"^4.6.0","@smithy/protocol-http":"^5.3.14","@smithy/smithy-client":"^4.12.12","@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.48","@smithy/util-defaults-mode-node":"^4.2.53","@smithy/util-endpoints":"^3.4.2","@smithy/util-middleware":"^4.2.14","@smithy/util-retry":"^4.3.3","@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"}}}');
|
|
585
710
|
|
|
586
711
|
/***/ })
|
|
587
712
|
|