@fromeroc9/testform 1.0.12 → 1.0.13

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.
Files changed (70) hide show
  1. package/dist/index.js +360 -649
  2. package/package.json +12 -6
  3. package/dist/action/index.js +0 -242
  4. package/dist/action.js +0 -60
  5. package/dist/adapters/github.js +0 -467
  6. package/dist/adapters/resources.js +0 -363
  7. package/dist/cli/136.index.js +0 -990
  8. package/dist/cli/360.index.js +0 -92
  9. package/dist/cli/443.index.js +0 -724
  10. package/dist/cli/449.index.js +0 -13
  11. package/dist/cli/566.index.js +0 -385
  12. package/dist/cli/605.index.js +0 -241
  13. package/dist/cli/762.index.js +0 -583
  14. package/dist/cli/869.index.js +0 -529
  15. package/dist/cli/956.index.js +0 -117
  16. package/dist/cli/998.index.js +0 -894
  17. package/dist/cli/index.js +0 -241
  18. package/dist/commands/apply.js +0 -390
  19. package/dist/commands/destroy.js +0 -85
  20. package/dist/commands/diff.js +0 -131
  21. package/dist/commands/fmt.js +0 -166
  22. package/dist/commands/force-unlock.js +0 -55
  23. package/dist/commands/generate.js +0 -143
  24. package/dist/commands/graph.js +0 -159
  25. package/dist/commands/import.js +0 -222
  26. package/dist/commands/init.js +0 -167
  27. package/dist/commands/login.js +0 -71
  28. package/dist/commands/logout.js +0 -20
  29. package/dist/commands/plan.js +0 -250
  30. package/dist/commands/refresh.js +0 -165
  31. package/dist/commands/report.js +0 -724
  32. package/dist/commands/show.js +0 -61
  33. package/dist/commands/state.js +0 -197
  34. package/dist/commands/taint.js +0 -49
  35. package/dist/commands/validate.js +0 -128
  36. package/dist/commands/workspace.js +0 -102
  37. package/dist/const.js +0 -105
  38. package/dist/core/backends/azurerm.js +0 -201
  39. package/dist/core/backends/backend.js +0 -2
  40. package/dist/core/backends/gcs.js +0 -200
  41. package/dist/core/backends/local.js +0 -162
  42. package/dist/core/backends/s3.js +0 -224
  43. package/dist/core/command-context.js +0 -59
  44. package/dist/core/config.js +0 -131
  45. package/dist/core/credentials.js +0 -53
  46. package/dist/core/parser.js +0 -62
  47. package/dist/core/parsers/base-parser.js +0 -215
  48. package/dist/core/parsers/testcase-parser.js +0 -115
  49. package/dist/core/parsers/testplan-parser.js +0 -41
  50. package/dist/core/parsers/testrun-parser.js +0 -43
  51. package/dist/core/policy.js +0 -341
  52. package/dist/core/prompt.js +0 -109
  53. package/dist/core/state.js +0 -185
  54. package/dist/core/utils.js +0 -94
  55. package/dist/core/variables.js +0 -108
  56. package/dist/core/workspace.js +0 -56
  57. package/dist/help.js +0 -797
  58. package/dist/logger.js +0 -134
  59. package/dist/notify.js +0 -36
  60. package/dist/types.js +0 -2
  61. /package/dist/{action/136.index.js → 136.index.js} +0 -0
  62. /package/dist/{action/360.index.js → 360.index.js} +0 -0
  63. /package/dist/{action/443.index.js → 443.index.js} +0 -0
  64. /package/dist/{action/449.index.js → 449.index.js} +0 -0
  65. /package/dist/{action/566.index.js → 566.index.js} +0 -0
  66. /package/dist/{action/605.index.js → 605.index.js} +0 -0
  67. /package/dist/{action/762.index.js → 762.index.js} +0 -0
  68. /package/dist/{action/869.index.js → 869.index.js} +0 -0
  69. /package/dist/{action/956.index.js → 956.index.js} +0 -0
  70. /package/dist/{action/998.index.js → 998.index.js} +0 -0
@@ -1,583 +0,0 @@
1
- "use strict";
2
- exports.id = 762;
3
- exports.ids = [762];
4
- exports.modules = {
5
-
6
- /***/ 99762:
7
- /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
8
-
9
- var __webpack_unused_export__;
10
-
11
-
12
- var client$1 = __webpack_require__(5152);
13
- var core = __webpack_require__(90402);
14
- var client = __webpack_require__(92658);
15
- var config = __webpack_require__(47291);
16
- var endpoints = __webpack_require__(62085);
17
- var protocols = __webpack_require__(93422);
18
- var retry = __webpack_require__(23609);
19
- var schema = __webpack_require__(26890);
20
- var httpAuthSchemes = __webpack_require__(97523);
21
- var serde = __webpack_require__(92430);
22
- var nodeHttpHandler = __webpack_require__(61279);
23
- var protocols$1 = __webpack_require__(37288);
24
-
25
- const defaultSigninHttpAuthSchemeParametersProvider = async (config, context, input) => {
26
- return {
27
- operation: client.getSmithyContext(context).operation,
28
- region: (await client.normalizeProvider(config.region)()) ||
29
- (() => {
30
- throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
31
- })(),
32
- };
33
- };
34
- function createAwsAuthSigv4HttpAuthOption(authParameters) {
35
- return {
36
- schemeId: "aws.auth#sigv4",
37
- signingProperties: {
38
- name: "signin",
39
- region: authParameters.region,
40
- },
41
- propertiesExtractor: (config, context) => ({
42
- signingProperties: {
43
- config,
44
- context,
45
- },
46
- }),
47
- };
48
- }
49
- function createSmithyApiNoAuthHttpAuthOption(authParameters) {
50
- return {
51
- schemeId: "smithy.api#noAuth",
52
- };
53
- }
54
- const defaultSigninHttpAuthSchemeProvider = (authParameters) => {
55
- const options = [];
56
- switch (authParameters.operation) {
57
- case "CreateOAuth2Token": {
58
- options.push(createSmithyApiNoAuthHttpAuthOption());
59
- break;
60
- }
61
- default: {
62
- options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
63
- }
64
- }
65
- return options;
66
- };
67
- const resolveHttpAuthSchemeConfig = (config) => {
68
- const config_0 = httpAuthSchemes.resolveAwsSdkSigV4Config(config);
69
- return Object.assign(config_0, {
70
- authSchemePreference: client.normalizeProvider(config.authSchemePreference ?? []),
71
- });
72
- };
73
-
74
- const resolveClientEndpointParameters = (options) => {
75
- return Object.assign(options, {
76
- useDualstackEndpoint: options.useDualstackEndpoint ?? false,
77
- useFipsEndpoint: options.useFipsEndpoint ?? false,
78
- defaultSigningName: "signin",
79
- });
80
- };
81
- const commonParams = {
82
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
83
- Endpoint: { type: "builtInParams", name: "endpoint" },
84
- Region: { type: "builtInParams", name: "region" },
85
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
86
- };
87
-
88
- var version = "3.997.11";
89
- var packageInfo = {
90
- version: version};
91
-
92
- const m = "ref";
93
- 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" }];
94
- const _data = {
95
- conditions: [
96
- [c, [h]],
97
- [c, l],
98
- ["aws.partition", l, d],
99
- [e, [{ [m]: "UseFIPS" }, b]],
100
- [e, [{ [m]: "UseDualStack" }, b]],
101
- [e, [{ fn: f, argv: [i, "supportsDualStack"] }, b]],
102
- [e, [{ fn: f, argv: [i, "supportsFIPS"] }, b]],
103
- [g, [j, "aws"]],
104
- [g, [j, "aws-cn"]],
105
- [g, [j, "aws-us-gov"]],
106
- ],
107
- results: [
108
- [a],
109
- [a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
110
- [a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
111
- [h, k],
112
- ["https://{Region}.signin.aws.amazon.com", k],
113
- ["https://{Region}.signin.amazonaws.cn", k],
114
- ["https://{Region}.signin.amazonaws-us-gov.com", k],
115
- ["https://signin-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", k],
116
- [a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
117
- ["https://signin-fips.{Region}.{PartitionResult#dnsSuffix}", k],
118
- [a, "FIPS is enabled but this partition does not support FIPS"],
119
- ["https://signin.{Region}.{PartitionResult#dualStackDnsSuffix}", k],
120
- [a, "DualStack is enabled but this partition does not support DualStack"],
121
- ["https://signin.{Region}.{PartitionResult#dnsSuffix}", k],
122
- [a, "Invalid Configuration: Missing Region"],
123
- ],
124
- };
125
- const root = 2;
126
- const r = 100_000_000;
127
- const nodes = new Int32Array([
128
- -1,
129
- 1,
130
- -1,
131
- 0,
132
- 15,
133
- 3,
134
- 1,
135
- 4,
136
- r + 14,
137
- 2,
138
- 5,
139
- r + 14,
140
- 3,
141
- 11,
142
- 6,
143
- 4,
144
- 10,
145
- 7,
146
- 7,
147
- r + 4,
148
- 8,
149
- 8,
150
- r + 5,
151
- 9,
152
- 9,
153
- r + 6,
154
- r + 13,
155
- 5,
156
- r + 11,
157
- r + 12,
158
- 4,
159
- 13,
160
- 12,
161
- 6,
162
- r + 9,
163
- r + 10,
164
- 5,
165
- 14,
166
- r + 8,
167
- 6,
168
- r + 7,
169
- r + 8,
170
- 3,
171
- r + 1,
172
- 16,
173
- 4,
174
- r + 2,
175
- r + 3,
176
- ]);
177
- const bdd = endpoints.BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
178
-
179
- const cache = new endpoints.EndpointCache({
180
- size: 50,
181
- params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
182
- });
183
- const defaultEndpointResolver = (endpointParams, context = {}) => {
184
- return cache.get(endpointParams, () => endpoints.decideEndpoint(bdd, {
185
- endpointParams: endpointParams,
186
- logger: context.logger,
187
- }));
188
- };
189
- endpoints.customEndpointFunctions.aws = client$1.awsEndpointFunctions;
190
-
191
- class SigninServiceException extends client.ServiceException {
192
- constructor(options) {
193
- super(options);
194
- Object.setPrototypeOf(this, SigninServiceException.prototype);
195
- }
196
- }
197
-
198
- class AccessDeniedException extends SigninServiceException {
199
- name = "AccessDeniedException";
200
- $fault = "client";
201
- error;
202
- constructor(opts) {
203
- super({
204
- name: "AccessDeniedException",
205
- $fault: "client",
206
- ...opts,
207
- });
208
- Object.setPrototypeOf(this, AccessDeniedException.prototype);
209
- this.error = opts.error;
210
- }
211
- }
212
- class InternalServerException extends SigninServiceException {
213
- name = "InternalServerException";
214
- $fault = "server";
215
- error;
216
- constructor(opts) {
217
- super({
218
- name: "InternalServerException",
219
- $fault: "server",
220
- ...opts,
221
- });
222
- Object.setPrototypeOf(this, InternalServerException.prototype);
223
- this.error = opts.error;
224
- }
225
- }
226
- class TooManyRequestsError extends SigninServiceException {
227
- name = "TooManyRequestsError";
228
- $fault = "client";
229
- error;
230
- constructor(opts) {
231
- super({
232
- name: "TooManyRequestsError",
233
- $fault: "client",
234
- ...opts,
235
- });
236
- Object.setPrototypeOf(this, TooManyRequestsError.prototype);
237
- this.error = opts.error;
238
- }
239
- }
240
- class ValidationException extends SigninServiceException {
241
- name = "ValidationException";
242
- $fault = "client";
243
- error;
244
- constructor(opts) {
245
- super({
246
- name: "ValidationException",
247
- $fault: "client",
248
- ...opts,
249
- });
250
- Object.setPrototypeOf(this, ValidationException.prototype);
251
- this.error = opts.error;
252
- }
253
- }
254
-
255
- const _ADE = "AccessDeniedException";
256
- const _AT = "AccessToken";
257
- const _COAT = "CreateOAuth2Token";
258
- const _COATR = "CreateOAuth2TokenRequest";
259
- const _COATRB = "CreateOAuth2TokenRequestBody";
260
- const _COATRBr = "CreateOAuth2TokenResponseBody";
261
- const _COATRr = "CreateOAuth2TokenResponse";
262
- const _ISE = "InternalServerException";
263
- const _RT = "RefreshToken";
264
- const _TMRE = "TooManyRequestsError";
265
- const _VE = "ValidationException";
266
- const _aKI = "accessKeyId";
267
- const _aT = "accessToken";
268
- const _c = "client";
269
- const _cI = "clientId";
270
- const _cV = "codeVerifier";
271
- const _co = "code";
272
- const _e = "error";
273
- const _eI = "expiresIn";
274
- const _gT = "grantType";
275
- const _h = "http";
276
- const _hE = "httpError";
277
- const _iT = "idToken";
278
- const _jN = "jsonName";
279
- const _m = "message";
280
- const _rT = "refreshToken";
281
- const _rU = "redirectUri";
282
- const _s = "smithy.ts.sdk.synthetic.com.amazonaws.signin";
283
- const _sAK = "secretAccessKey";
284
- const _sT = "sessionToken";
285
- const _se = "server";
286
- const _tI = "tokenInput";
287
- const _tO = "tokenOutput";
288
- const _tT = "tokenType";
289
- const n0 = "com.amazonaws.signin";
290
- const _s_registry = schema.TypeRegistry.for(_s);
291
- var SigninServiceException$ = [-3, _s, "SigninServiceException", 0, [], []];
292
- _s_registry.registerError(SigninServiceException$, SigninServiceException);
293
- const n0_registry = schema.TypeRegistry.for(n0);
294
- var AccessDeniedException$ = [-3, n0, _ADE, { [_e]: _c }, [_e, _m], [0, 0], 2];
295
- n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
296
- var InternalServerException$ = [-3, n0, _ISE, { [_e]: _se, [_hE]: 500 }, [_e, _m], [0, 0], 2];
297
- n0_registry.registerError(InternalServerException$, InternalServerException);
298
- var TooManyRequestsError$ = [-3, n0, _TMRE, { [_e]: _c, [_hE]: 429 }, [_e, _m], [0, 0], 2];
299
- n0_registry.registerError(TooManyRequestsError$, TooManyRequestsError);
300
- var ValidationException$ = [-3, n0, _VE, { [_e]: _c, [_hE]: 400 }, [_e, _m], [0, 0], 2];
301
- n0_registry.registerError(ValidationException$, ValidationException);
302
- const errorTypeRegistries = [_s_registry, n0_registry];
303
- var RefreshToken = [0, n0, _RT, 8, 0];
304
- var AccessToken$ = [
305
- 3,
306
- n0,
307
- _AT,
308
- 8,
309
- [_aKI, _sAK, _sT],
310
- [
311
- [0, { [_jN]: _aKI }],
312
- [0, { [_jN]: _sAK }],
313
- [0, { [_jN]: _sT }],
314
- ],
315
- 3,
316
- ];
317
- var CreateOAuth2TokenRequest$ = [
318
- 3,
319
- n0,
320
- _COATR,
321
- 0,
322
- [_tI],
323
- [[() => CreateOAuth2TokenRequestBody$, 16]],
324
- 1,
325
- ];
326
- var CreateOAuth2TokenRequestBody$ = [
327
- 3,
328
- n0,
329
- _COATRB,
330
- 0,
331
- [_cI, _gT, _co, _rU, _cV, _rT],
332
- [
333
- [0, { [_jN]: _cI }],
334
- [0, { [_jN]: _gT }],
335
- 0,
336
- [0, { [_jN]: _rU }],
337
- [0, { [_jN]: _cV }],
338
- [() => RefreshToken, { [_jN]: _rT }],
339
- ],
340
- 2,
341
- ];
342
- var CreateOAuth2TokenResponse$ = [
343
- 3,
344
- n0,
345
- _COATRr,
346
- 0,
347
- [_tO],
348
- [[() => CreateOAuth2TokenResponseBody$, 16]],
349
- 1,
350
- ];
351
- var CreateOAuth2TokenResponseBody$ = [
352
- 3,
353
- n0,
354
- _COATRBr,
355
- 0,
356
- [_aT, _tT, _eI, _rT, _iT],
357
- [
358
- [() => AccessToken$, { [_jN]: _aT }],
359
- [0, { [_jN]: _tT }],
360
- [1, { [_jN]: _eI }],
361
- [() => RefreshToken, { [_jN]: _rT }],
362
- [0, { [_jN]: _iT }],
363
- ],
364
- 4,
365
- ];
366
- var CreateOAuth2Token$ = [
367
- 9,
368
- n0,
369
- _COAT,
370
- { [_h]: ["POST", "/v1/token", 200] },
371
- () => CreateOAuth2TokenRequest$,
372
- () => CreateOAuth2TokenResponse$,
373
- ];
374
-
375
- const getRuntimeConfig$1 = (config) => {
376
- return {
377
- apiVersion: "2023-01-01",
378
- base64Decoder: config?.base64Decoder ?? serde.fromBase64,
379
- base64Encoder: config?.base64Encoder ?? serde.toBase64,
380
- disableHostPrefix: config?.disableHostPrefix ?? false,
381
- endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
382
- extensions: config?.extensions ?? [],
383
- httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultSigninHttpAuthSchemeProvider,
384
- httpAuthSchemes: config?.httpAuthSchemes ?? [
385
- {
386
- schemeId: "aws.auth#sigv4",
387
- identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
388
- signer: new httpAuthSchemes.AwsSdkSigV4Signer(),
389
- },
390
- {
391
- schemeId: "smithy.api#noAuth",
392
- identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})),
393
- signer: new core.NoAuthSigner(),
394
- },
395
- ],
396
- logger: config?.logger ?? new client.NoOpLogger(),
397
- protocol: config?.protocol ?? protocols$1.AwsRestJsonProtocol,
398
- protocolSettings: config?.protocolSettings ?? {
399
- defaultNamespace: "com.amazonaws.signin",
400
- errorTypeRegistries,
401
- version: "2023-01-01",
402
- serviceTarget: "Signin",
403
- },
404
- serviceId: config?.serviceId ?? "Signin",
405
- urlParser: config?.urlParser ?? protocols.parseUrl,
406
- utf8Decoder: config?.utf8Decoder ?? serde.fromUtf8,
407
- utf8Encoder: config?.utf8Encoder ?? serde.toUtf8,
408
- };
409
- };
410
-
411
- const getRuntimeConfig = (config$1) => {
412
- client.emitWarningIfUnsupportedVersion(process.version);
413
- const defaultsMode = config.resolveDefaultsModeConfig(config$1);
414
- const defaultConfigProvider = () => defaultsMode().then(client.loadConfigsForDefaultMode);
415
- const clientSharedValues = getRuntimeConfig$1(config$1);
416
- client$1.emitWarningIfUnsupportedVersion(process.version);
417
- const loaderConfig = {
418
- profile: config$1?.profile,
419
- logger: clientSharedValues.logger,
420
- };
421
- return {
422
- ...clientSharedValues,
423
- ...config$1,
424
- runtime: "node",
425
- defaultsMode,
426
- authSchemePreference: config$1?.authSchemePreference ?? config.loadConfig(httpAuthSchemes.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
427
- bodyLengthChecker: config$1?.bodyLengthChecker ?? serde.calculateBodyLength,
428
- defaultUserAgentProvider: config$1?.defaultUserAgentProvider ??
429
- client$1.createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
430
- maxAttempts: config$1?.maxAttempts ?? config.loadConfig(retry.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config$1),
431
- region: config$1?.region ??
432
- config.loadConfig(config.NODE_REGION_CONFIG_OPTIONS, { ...config.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
433
- requestHandler: nodeHttpHandler.NodeHttpHandler.create(config$1?.requestHandler ?? defaultConfigProvider),
434
- retryMode: config$1?.retryMode ??
435
- config.loadConfig({
436
- ...retry.NODE_RETRY_MODE_CONFIG_OPTIONS,
437
- default: async () => (await defaultConfigProvider()).retryMode || retry.DEFAULT_RETRY_MODE,
438
- }, config$1),
439
- sha256: config$1?.sha256 ?? serde.Hash.bind(null, "sha256"),
440
- streamCollector: config$1?.streamCollector ?? nodeHttpHandler.streamCollector,
441
- useDualstackEndpoint: config$1?.useDualstackEndpoint ?? config.loadConfig(config.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
442
- useFipsEndpoint: config$1?.useFipsEndpoint ?? config.loadConfig(config.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
443
- userAgentAppId: config$1?.userAgentAppId ?? config.loadConfig(client$1.NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
444
- };
445
- };
446
-
447
- const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
448
- const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
449
- let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
450
- let _credentials = runtimeConfig.credentials;
451
- return {
452
- setHttpAuthScheme(httpAuthScheme) {
453
- const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
454
- if (index === -1) {
455
- _httpAuthSchemes.push(httpAuthScheme);
456
- }
457
- else {
458
- _httpAuthSchemes.splice(index, 1, httpAuthScheme);
459
- }
460
- },
461
- httpAuthSchemes() {
462
- return _httpAuthSchemes;
463
- },
464
- setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
465
- _httpAuthSchemeProvider = httpAuthSchemeProvider;
466
- },
467
- httpAuthSchemeProvider() {
468
- return _httpAuthSchemeProvider;
469
- },
470
- setCredentials(credentials) {
471
- _credentials = credentials;
472
- },
473
- credentials() {
474
- return _credentials;
475
- },
476
- };
477
- };
478
- const resolveHttpAuthRuntimeConfig = (config) => {
479
- return {
480
- httpAuthSchemes: config.httpAuthSchemes(),
481
- httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
482
- credentials: config.credentials(),
483
- };
484
- };
485
-
486
- const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
487
- const extensionConfiguration = Object.assign(client$1.getAwsRegionExtensionConfiguration(runtimeConfig), client.getDefaultExtensionConfiguration(runtimeConfig), protocols.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
488
- extensions.forEach((extension) => extension.configure(extensionConfiguration));
489
- return Object.assign(runtimeConfig, client$1.resolveAwsRegionExtensionConfiguration(extensionConfiguration), client.resolveDefaultRuntimeConfig(extensionConfiguration), protocols.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
490
- };
491
-
492
- class SigninClient extends client.Client {
493
- config;
494
- constructor(...[configuration]) {
495
- const _config_0 = getRuntimeConfig(configuration || {});
496
- super(_config_0);
497
- this.initConfig = _config_0;
498
- const _config_1 = resolveClientEndpointParameters(_config_0);
499
- const _config_2 = client$1.resolveUserAgentConfig(_config_1);
500
- const _config_3 = retry.resolveRetryConfig(_config_2);
501
- const _config_4 = config.resolveRegionConfig(_config_3);
502
- const _config_5 = client$1.resolveHostHeaderConfig(_config_4);
503
- const _config_6 = endpoints.resolveEndpointConfig(_config_5);
504
- const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
505
- const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
506
- this.config = _config_8;
507
- this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config));
508
- this.middlewareStack.use(client$1.getUserAgentPlugin(this.config));
509
- this.middlewareStack.use(retry.getRetryPlugin(this.config));
510
- this.middlewareStack.use(protocols.getContentLengthPlugin(this.config));
511
- this.middlewareStack.use(client$1.getHostHeaderPlugin(this.config));
512
- this.middlewareStack.use(client$1.getLoggerPlugin(this.config));
513
- this.middlewareStack.use(client$1.getRecursionDetectionPlugin(this.config));
514
- this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
515
- httpAuthSchemeParametersProvider: defaultSigninHttpAuthSchemeParametersProvider,
516
- identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
517
- "aws.auth#sigv4": config.credentials,
518
- }),
519
- }));
520
- this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
521
- }
522
- destroy() {
523
- super.destroy();
524
- }
525
- }
526
-
527
- class CreateOAuth2TokenCommand extends client.Command
528
- .classBuilder()
529
- .ep(commonParams)
530
- .m(function (Command, cs, config, o) {
531
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
532
- })
533
- .s("Signin", "CreateOAuth2Token", {})
534
- .n("SigninClient", "CreateOAuth2TokenCommand")
535
- .sc(CreateOAuth2Token$)
536
- .build() {
537
- }
538
-
539
- const commands = {
540
- CreateOAuth2TokenCommand,
541
- };
542
- class Signin extends SigninClient {
543
- }
544
- client.createAggregatedClient(commands, Signin);
545
-
546
- const OAuth2ErrorCode = {
547
- AUTHCODE_EXPIRED: "AUTHCODE_EXPIRED",
548
- INSUFFICIENT_PERMISSIONS: "INSUFFICIENT_PERMISSIONS",
549
- INVALID_REQUEST: "INVALID_REQUEST",
550
- SERVER_ERROR: "server_error",
551
- TOKEN_EXPIRED: "TOKEN_EXPIRED",
552
- USER_CREDENTIALS_CHANGED: "USER_CREDENTIALS_CHANGED",
553
- };
554
-
555
- __webpack_unused_export__ = client.Command;
556
- __webpack_unused_export__ = client.Client;
557
- __webpack_unused_export__ = AccessDeniedException;
558
- __webpack_unused_export__ = AccessDeniedException$;
559
- __webpack_unused_export__ = AccessToken$;
560
- __webpack_unused_export__ = CreateOAuth2Token$;
561
- exports.CreateOAuth2TokenCommand = CreateOAuth2TokenCommand;
562
- __webpack_unused_export__ = CreateOAuth2TokenRequest$;
563
- __webpack_unused_export__ = CreateOAuth2TokenRequestBody$;
564
- __webpack_unused_export__ = CreateOAuth2TokenResponse$;
565
- __webpack_unused_export__ = CreateOAuth2TokenResponseBody$;
566
- __webpack_unused_export__ = InternalServerException;
567
- __webpack_unused_export__ = InternalServerException$;
568
- __webpack_unused_export__ = OAuth2ErrorCode;
569
- __webpack_unused_export__ = Signin;
570
- exports.SigninClient = SigninClient;
571
- __webpack_unused_export__ = SigninServiceException;
572
- __webpack_unused_export__ = SigninServiceException$;
573
- __webpack_unused_export__ = TooManyRequestsError;
574
- __webpack_unused_export__ = TooManyRequestsError$;
575
- __webpack_unused_export__ = ValidationException;
576
- __webpack_unused_export__ = ValidationException$;
577
- __webpack_unused_export__ = errorTypeRegistries;
578
-
579
-
580
- /***/ })
581
-
582
- };
583
- ;