@karmaniverous/get-dotenv 6.5.2 → 7.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{AwsRestJsonProtocol-7Uww6gmd.mjs → AwsRestJsonProtocol-DeiE3wkO.mjs} +22 -5
- package/dist/chunks/{createCli-pZgHlwKX.mjs → createCli-B9-MIwWj.mjs} +4 -4
- package/dist/chunks/{externalDataInterceptor-CnjiiRdu.mjs → externalDataInterceptor-gi2RH4ez.mjs} +2 -2
- package/dist/chunks/{getSSOTokenFromFile-Bct4fw5A.mjs → getSSOTokenFromFile-BfAhZf_d.mjs} +1 -1
- package/dist/chunks/{index-BJWV46OF.mjs → index-98yxYe1W.mjs} +73 -61
- package/dist/chunks/{index-CDPFly99.mjs → index-AssUn9IY.mjs} +218 -164
- package/dist/chunks/{index-BHKFx7ea.mjs → index-B6r8O7PJ.mjs} +5 -5
- package/dist/chunks/{index-Do8RFiEa.mjs → index-C21RHLO4.mjs} +2 -2
- package/dist/chunks/{index-Cg50N4ys.mjs → index-CAtxK29A.mjs} +2 -2
- package/dist/chunks/{index-Cy9EnHMK.mjs → index-CMSCF_uw.mjs} +73 -71
- package/dist/chunks/{index-CzwvgH1X.mjs → index-Ccay5Db0.mjs} +33 -35
- package/dist/chunks/{index-37ce0nLC.mjs → index-D8S1lJ24.mjs} +44 -39
- package/dist/chunks/{index-DeXLfLd1.mjs → index-DY7wYcXW.mjs} +18 -23
- package/dist/chunks/{index-Bmw8WxM1.mjs → index-DfvhftMN.mjs} +2 -2
- package/dist/chunks/{index-udC0OkWn.mjs → index-DtdHVcXz.mjs} +2 -2
- package/dist/chunks/{index-BjE-7W3n.mjs → index-mPj0Vhpw.mjs} +5 -5
- package/dist/chunks/{index-BfVeLAui.mjs → index-xRi3oKvY.mjs} +3 -3
- package/dist/chunks/{loadSso-DJONWtFw.mjs → loadSso-C-y9gQEz.mjs} +84 -73
- package/dist/chunks/{package-boo9EyYs.mjs → package-DiDNabNr.mjs} +1 -1
- package/dist/chunks/{parseKnownFiles-DsgpkpKC.mjs → parseKnownFiles-KczcjlE0.mjs} +1 -1
- package/dist/chunks/{readMergedOptions-uWSetyes.mjs → readMergedOptions-D6niy_Ep.mjs} +24 -3
- package/dist/chunks/{resolveCliOptions-7MwNdHqz.mjs → resolveCliOptions-PWF1aEM9.mjs} +1 -1
- package/dist/chunks/{sdk-stream-mixin-uGZKBKMz.mjs → sdk-stream-mixin-blFikF4G.mjs} +1 -1
- package/dist/chunks/{types-BSMtAo8_.mjs → types-Bp3u5-IH.mjs} +1 -1
- package/dist/cli.d.ts +4 -2
- package/dist/cli.mjs +5 -5
- package/dist/cliHost.d.ts +4 -2
- package/dist/cliHost.mjs +3 -3
- package/dist/getdotenv.cli.mjs +5 -5
- package/dist/index.d.ts +11 -5
- package/dist/index.mjs +12 -13
- package/dist/plugins-aws.d.ts +4 -2
- package/dist/plugins-aws.mjs +1 -1
- package/dist/plugins-batch.d.ts +4 -2
- package/dist/plugins-batch.mjs +1 -1
- package/dist/plugins-cmd.d.ts +4 -2
- package/dist/plugins-cmd.mjs +3 -3
- package/dist/plugins-init.d.ts +4 -2
- package/dist/plugins-init.mjs +11 -11
- package/dist/plugins.d.ts +4 -2
- package/dist/plugins.mjs +4 -4
- package/package.json +17 -17
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { av as HttpProtocol, aw as NormalizedSchema, H as HttpRequest, ax as translateTraits, ay as extendedEncodeURIComponent, az as collectBody, aA as splitHeader, aB as SerdeContext, aC as FromStringShapeDeserializer, t as toUtf8, i as fromUtf8, aD as v4, aE as LazyJsonString, n as toBase64, aF as determineTimestampFormat, aG as dateToUtcString, aH as NumericValue, aI as SerdeContextConfig, aJ as deserializingStructIterator, m as fromBase64,
|
|
2
|
-
import { s as sdkStreamMixin } from './sdk-stream-mixin-
|
|
1
|
+
import { av as HttpProtocol, aw as NormalizedSchema, H as HttpRequest, ax as translateTraits, ay as extendedEncodeURIComponent, az as collectBody, aA as splitHeader, aB as SerdeContext, aC as FromStringShapeDeserializer, t as toUtf8, i as fromUtf8, aD as v4, aE as LazyJsonString, n as toBase64, aF as determineTimestampFormat, aG as dateToUtcString, aH as NumericValue, aI as SerdeContextConfig, aJ as UnionSerde, aK as deserializingStructIterator, m as fromBase64, aL as parseEpochTimestamp, aM as parseRfc7231DateTime, aN as parseRfc3339DateTimeWithOffset, aO as serializingStructIterator, aP as ProtocolLib, an as TypeRegistry } from './index-AssUn9IY.mjs';
|
|
2
|
+
import { s as sdkStreamMixin } from './sdk-stream-mixin-blFikF4G.mjs';
|
|
3
3
|
|
|
4
4
|
function quoteHeader(part) {
|
|
5
5
|
if (part.includes(",") || part.includes('"')) {
|
|
@@ -537,14 +537,24 @@ class JsonShapeDeserializer extends SerdeContextConfig {
|
|
|
537
537
|
const ns = NormalizedSchema.of(schema);
|
|
538
538
|
if (isObject) {
|
|
539
539
|
if (ns.isStructSchema()) {
|
|
540
|
+
const union = ns.isUnionSchema();
|
|
540
541
|
const out = {};
|
|
542
|
+
let unionSerde;
|
|
543
|
+
if (union) {
|
|
544
|
+
unionSerde = new UnionSerde(value, out);
|
|
545
|
+
}
|
|
541
546
|
for (const [memberName, memberSchema] of deserializingStructIterator(ns, value, this.settings.jsonName ? "jsonName" : false)) {
|
|
542
547
|
const fromKey = this.settings.jsonName ? memberSchema.getMergedTraits().jsonName ?? memberName : memberName;
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
548
|
+
if (union) {
|
|
549
|
+
unionSerde.mark(fromKey);
|
|
550
|
+
}
|
|
551
|
+
if (value[fromKey] != null) {
|
|
552
|
+
out[memberName] = this._read(memberSchema, value[fromKey]);
|
|
546
553
|
}
|
|
547
554
|
}
|
|
555
|
+
if (union) {
|
|
556
|
+
unionSerde.writeUnknown();
|
|
557
|
+
}
|
|
548
558
|
return out;
|
|
549
559
|
}
|
|
550
560
|
if (Array.isArray(value) && ns.isListSchema()) {
|
|
@@ -732,6 +742,13 @@ class JsonShapeSerializer extends SerdeContextConfig {
|
|
|
732
742
|
out[targetKey] = serializableValue;
|
|
733
743
|
}
|
|
734
744
|
}
|
|
745
|
+
if (ns.isUnionSchema() && Object.keys(out).length === 0) {
|
|
746
|
+
const { $unknown } = value;
|
|
747
|
+
if (Array.isArray($unknown)) {
|
|
748
|
+
const [k, v] = $unknown;
|
|
749
|
+
out[k] = this._write(15, v);
|
|
750
|
+
}
|
|
751
|
+
}
|
|
735
752
|
return out;
|
|
736
753
|
}
|
|
737
754
|
if (Array.isArray(value) && ns.isListSchema()) {
|
|
@@ -6,19 +6,19 @@ import 'fs-extra';
|
|
|
6
6
|
import 'node:path';
|
|
7
7
|
import 'radash';
|
|
8
8
|
import 'node:buffer';
|
|
9
|
-
import { a as defaultsDeep, g as getDotenvCliOptions2Options, b as baseRootOptionDefaults, G as GetDotenvCli, c as attachRootOptions } from './readMergedOptions-
|
|
9
|
+
import { a as defaultsDeep, g as getDotenvCliOptions2Options, b as baseRootOptionDefaults, G as GetDotenvCli, c as attachRootOptions } from './readMergedOptions-D6niy_Ep.mjs';
|
|
10
10
|
import 'crypto';
|
|
11
11
|
import 'url';
|
|
12
12
|
import '@commander-js/extra-typings';
|
|
13
13
|
import 'dotenv';
|
|
14
14
|
import 'execa';
|
|
15
15
|
import { t as toHelpConfig } from './helpConfig-CGejgwWW.mjs';
|
|
16
|
-
import { r as resolveCliOptions } from './resolveCliOptions-
|
|
16
|
+
import { r as resolveCliOptions } from './resolveCliOptions-PWF1aEM9.mjs';
|
|
17
17
|
import { v as validateEnvAgainstSources } from './validate-CDl0rE6k.mjs';
|
|
18
18
|
import { awsPlugin } from '../plugins-aws.mjs';
|
|
19
|
-
import { a as awsWhoamiPlugin } from './index-
|
|
19
|
+
import { a as awsWhoamiPlugin } from './index-AssUn9IY.mjs';
|
|
20
20
|
import { batchPlugin } from '../plugins-batch.mjs';
|
|
21
|
-
import { c as cmdPlugin } from './index-
|
|
21
|
+
import { c as cmdPlugin } from './index-CAtxK29A.mjs';
|
|
22
22
|
import { initPlugin } from '../plugins-init.mjs';
|
|
23
23
|
|
|
24
24
|
const dbg = (...args) => {
|
package/dist/chunks/{externalDataInterceptor-CnjiiRdu.mjs → externalDataInterceptor-gi2RH4ez.mjs}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as tokenIntercept } from './getSSOTokenFromFile-
|
|
2
|
-
import { h as fileIntercept } from './index-
|
|
1
|
+
import { t as tokenIntercept } from './getSSOTokenFromFile-BfAhZf_d.mjs';
|
|
2
|
+
import { h as fileIntercept } from './index-AssUn9IY.mjs';
|
|
3
3
|
|
|
4
4
|
const externalDataInterceptor = {
|
|
5
5
|
getFileRecord() {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { readFile } from 'fs/promises';
|
|
2
2
|
import { createHash } from 'crypto';
|
|
3
3
|
import { join } from 'path';
|
|
4
|
-
import { j as getHomeDir } from './index-
|
|
4
|
+
import { j as getHomeDir } from './index-AssUn9IY.mjs';
|
|
5
5
|
|
|
6
6
|
const getSSOTokenFilepath = (id) => {
|
|
7
7
|
const hasher = createHash("sha1");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { w as resolveAwsSdkSigV4Config, x as normalizeProvider, y as getSmithyContext, z as EndpointCache, A as resolveEndpoint, B as awsEndpointFunctions, D as customEndpointFunctions, t as toUtf8, i as fromUtf8, F as parseUrl, G as NoOpLogger, I as AwsSdkSigV4Signer, J as NoAuthSigner, n as toBase64, m as fromBase64, K as emitWarningIfUnsupportedVersion, L as resolveDefaultsModeConfig, M as emitWarningIfUnsupportedVersion$1, O as loadConfig, r as streamCollector, P as Hash, N as NodeHttpHandler, Q as createDefaultUserAgentProvider, R as calculateBodyLength, S as NODE_APP_ID_CONFIG_OPTIONS, T as NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, U as NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, V as NODE_RETRY_MODE_CONFIG_OPTIONS, W as DEFAULT_RETRY_MODE, X as NODE_REGION_CONFIG_FILE_OPTIONS, Y as NODE_REGION_CONFIG_OPTIONS, Z as NODE_MAX_ATTEMPT_CONFIG_OPTIONS, _ as NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, $ as loadConfigsForDefaultMode, a0 as getAwsRegionExtensionConfiguration, a1 as getDefaultExtensionConfiguration, a2 as getHttpHandlerExtensionConfiguration, a3 as resolveAwsRegionExtensionConfiguration, a4 as resolveDefaultRuntimeConfig, a5 as resolveHttpHandlerRuntimeConfig, a6 as Client, a7 as resolveUserAgentConfig, a8 as resolveRetryConfig, a9 as resolveRegionConfig, aa as resolveEndpointConfig, ab as resolveHostHeaderConfig, ac as getSchemaSerdePlugin, ad as getUserAgentPlugin, ae as getRetryPlugin, af as getContentLengthPlugin, ag as getHostHeaderPlugin, ah as getLoggerPlugin, ai as getRecursionDetectionPlugin, aj as getHttpAuthSchemeEndpointRuleSetPlugin, ak as DefaultIdentityProviderConfig, al as getHttpSigningPlugin, am as ServiceException, an as TypeRegistry, ao as Command, ap as getEndpointPlugin } from './index-
|
|
2
|
-
import { p as packageInfo } from './package-
|
|
3
|
-
import { A as AwsRestJsonProtocol } from './AwsRestJsonProtocol-
|
|
4
|
-
import './readMergedOptions-
|
|
1
|
+
import { w as resolveAwsSdkSigV4Config, x as normalizeProvider, y as getSmithyContext, z as EndpointCache, A as resolveEndpoint, B as awsEndpointFunctions, D as customEndpointFunctions, t as toUtf8, i as fromUtf8, F as parseUrl, G as NoOpLogger, I as AwsSdkSigV4Signer, J as NoAuthSigner, n as toBase64, m as fromBase64, K as emitWarningIfUnsupportedVersion, L as resolveDefaultsModeConfig, M as emitWarningIfUnsupportedVersion$1, O as loadConfig, r as streamCollector, P as Hash, N as NodeHttpHandler, Q as createDefaultUserAgentProvider, R as calculateBodyLength, S as NODE_APP_ID_CONFIG_OPTIONS, T as NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, U as NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, V as NODE_RETRY_MODE_CONFIG_OPTIONS, W as DEFAULT_RETRY_MODE, X as NODE_REGION_CONFIG_FILE_OPTIONS, Y as NODE_REGION_CONFIG_OPTIONS, Z as NODE_MAX_ATTEMPT_CONFIG_OPTIONS, _ as NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, $ as loadConfigsForDefaultMode, a0 as getAwsRegionExtensionConfiguration, a1 as getDefaultExtensionConfiguration, a2 as getHttpHandlerExtensionConfiguration, a3 as resolveAwsRegionExtensionConfiguration, a4 as resolveDefaultRuntimeConfig, a5 as resolveHttpHandlerRuntimeConfig, a6 as Client, a7 as resolveUserAgentConfig, a8 as resolveRetryConfig, a9 as resolveRegionConfig, aa as resolveEndpointConfig, ab as resolveHostHeaderConfig, ac as getSchemaSerdePlugin, ad as getUserAgentPlugin, ae as getRetryPlugin, af as getContentLengthPlugin, ag as getHostHeaderPlugin, ah as getLoggerPlugin, ai as getRecursionDetectionPlugin, aj as getHttpAuthSchemeEndpointRuleSetPlugin, ak as DefaultIdentityProviderConfig, al as getHttpSigningPlugin, am as ServiceException, an as TypeRegistry, ao as Command, ap as getEndpointPlugin } from './index-AssUn9IY.mjs';
|
|
2
|
+
import { p as packageInfo } from './package-DiDNabNr.mjs';
|
|
3
|
+
import { A as AwsRestJsonProtocol } from './AwsRestJsonProtocol-DeiE3wkO.mjs';
|
|
4
|
+
import './readMergedOptions-D6niy_Ep.mjs';
|
|
5
5
|
import 'zod';
|
|
6
6
|
import '@commander-js/extra-typings';
|
|
7
7
|
import './readDotenvCascade-HLU7FsEQ.mjs';
|
|
@@ -27,7 +27,7 @@ import 'https';
|
|
|
27
27
|
import 'stream';
|
|
28
28
|
import 'process';
|
|
29
29
|
import 'node:fs';
|
|
30
|
-
import './sdk-stream-mixin-
|
|
30
|
+
import './sdk-stream-mixin-blFikF4G.mjs';
|
|
31
31
|
|
|
32
32
|
const defaultSSOOIDCHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
33
33
|
return {
|
|
@@ -131,7 +131,12 @@ const getRuntimeConfig$1 = (config) => {
|
|
|
131
131
|
},
|
|
132
132
|
],
|
|
133
133
|
logger: config?.logger ?? new NoOpLogger(),
|
|
134
|
-
protocol: config?.protocol ??
|
|
134
|
+
protocol: config?.protocol ?? AwsRestJsonProtocol,
|
|
135
|
+
protocolSettings: config?.protocolSettings ?? {
|
|
136
|
+
defaultNamespace: "com.amazonaws.ssooidc",
|
|
137
|
+
version: "2019-06-10",
|
|
138
|
+
serviceTarget: "AWSSSOOIDCService",
|
|
139
|
+
},
|
|
135
140
|
serviceId: config?.serviceId ?? "SSO OIDC",
|
|
136
141
|
urlParser: config?.urlParser ?? parseUrl,
|
|
137
142
|
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
@@ -255,14 +260,14 @@ class SSOOIDCClient extends Client {
|
|
|
255
260
|
}
|
|
256
261
|
}
|
|
257
262
|
|
|
258
|
-
|
|
263
|
+
class SSOOIDCServiceException extends ServiceException {
|
|
259
264
|
constructor(options) {
|
|
260
265
|
super(options);
|
|
261
266
|
Object.setPrototypeOf(this, SSOOIDCServiceException.prototype);
|
|
262
267
|
}
|
|
263
|
-
}
|
|
268
|
+
}
|
|
264
269
|
|
|
265
|
-
|
|
270
|
+
class AccessDeniedException extends SSOOIDCServiceException {
|
|
266
271
|
name = "AccessDeniedException";
|
|
267
272
|
$fault = "client";
|
|
268
273
|
error;
|
|
@@ -279,8 +284,8 @@ let AccessDeniedException$1 = class AccessDeniedException extends SSOOIDCService
|
|
|
279
284
|
this.reason = opts.reason;
|
|
280
285
|
this.error_description = opts.error_description;
|
|
281
286
|
}
|
|
282
|
-
}
|
|
283
|
-
|
|
287
|
+
}
|
|
288
|
+
class AuthorizationPendingException extends SSOOIDCServiceException {
|
|
284
289
|
name = "AuthorizationPendingException";
|
|
285
290
|
$fault = "client";
|
|
286
291
|
error;
|
|
@@ -295,8 +300,8 @@ let AuthorizationPendingException$1 = class AuthorizationPendingException extend
|
|
|
295
300
|
this.error = opts.error;
|
|
296
301
|
this.error_description = opts.error_description;
|
|
297
302
|
}
|
|
298
|
-
}
|
|
299
|
-
|
|
303
|
+
}
|
|
304
|
+
class ExpiredTokenException extends SSOOIDCServiceException {
|
|
300
305
|
name = "ExpiredTokenException";
|
|
301
306
|
$fault = "client";
|
|
302
307
|
error;
|
|
@@ -311,8 +316,8 @@ let ExpiredTokenException$1 = class ExpiredTokenException extends SSOOIDCService
|
|
|
311
316
|
this.error = opts.error;
|
|
312
317
|
this.error_description = opts.error_description;
|
|
313
318
|
}
|
|
314
|
-
}
|
|
315
|
-
|
|
319
|
+
}
|
|
320
|
+
class InternalServerException extends SSOOIDCServiceException {
|
|
316
321
|
name = "InternalServerException";
|
|
317
322
|
$fault = "server";
|
|
318
323
|
error;
|
|
@@ -327,8 +332,8 @@ let InternalServerException$1 = class InternalServerException extends SSOOIDCSer
|
|
|
327
332
|
this.error = opts.error;
|
|
328
333
|
this.error_description = opts.error_description;
|
|
329
334
|
}
|
|
330
|
-
}
|
|
331
|
-
|
|
335
|
+
}
|
|
336
|
+
class InvalidClientException extends SSOOIDCServiceException {
|
|
332
337
|
name = "InvalidClientException";
|
|
333
338
|
$fault = "client";
|
|
334
339
|
error;
|
|
@@ -343,8 +348,8 @@ let InvalidClientException$1 = class InvalidClientException extends SSOOIDCServi
|
|
|
343
348
|
this.error = opts.error;
|
|
344
349
|
this.error_description = opts.error_description;
|
|
345
350
|
}
|
|
346
|
-
}
|
|
347
|
-
|
|
351
|
+
}
|
|
352
|
+
class InvalidGrantException extends SSOOIDCServiceException {
|
|
348
353
|
name = "InvalidGrantException";
|
|
349
354
|
$fault = "client";
|
|
350
355
|
error;
|
|
@@ -359,8 +364,8 @@ let InvalidGrantException$1 = class InvalidGrantException extends SSOOIDCService
|
|
|
359
364
|
this.error = opts.error;
|
|
360
365
|
this.error_description = opts.error_description;
|
|
361
366
|
}
|
|
362
|
-
}
|
|
363
|
-
|
|
367
|
+
}
|
|
368
|
+
class InvalidRequestException extends SSOOIDCServiceException {
|
|
364
369
|
name = "InvalidRequestException";
|
|
365
370
|
$fault = "client";
|
|
366
371
|
error;
|
|
@@ -377,8 +382,8 @@ let InvalidRequestException$1 = class InvalidRequestException extends SSOOIDCSer
|
|
|
377
382
|
this.reason = opts.reason;
|
|
378
383
|
this.error_description = opts.error_description;
|
|
379
384
|
}
|
|
380
|
-
}
|
|
381
|
-
|
|
385
|
+
}
|
|
386
|
+
class InvalidScopeException extends SSOOIDCServiceException {
|
|
382
387
|
name = "InvalidScopeException";
|
|
383
388
|
$fault = "client";
|
|
384
389
|
error;
|
|
@@ -393,8 +398,8 @@ let InvalidScopeException$1 = class InvalidScopeException extends SSOOIDCService
|
|
|
393
398
|
this.error = opts.error;
|
|
394
399
|
this.error_description = opts.error_description;
|
|
395
400
|
}
|
|
396
|
-
}
|
|
397
|
-
|
|
401
|
+
}
|
|
402
|
+
class SlowDownException extends SSOOIDCServiceException {
|
|
398
403
|
name = "SlowDownException";
|
|
399
404
|
$fault = "client";
|
|
400
405
|
error;
|
|
@@ -409,8 +414,8 @@ let SlowDownException$1 = class SlowDownException extends SSOOIDCServiceExceptio
|
|
|
409
414
|
this.error = opts.error;
|
|
410
415
|
this.error_description = opts.error_description;
|
|
411
416
|
}
|
|
412
|
-
}
|
|
413
|
-
|
|
417
|
+
}
|
|
418
|
+
class UnauthorizedClientException extends SSOOIDCServiceException {
|
|
414
419
|
name = "UnauthorizedClientException";
|
|
415
420
|
$fault = "client";
|
|
416
421
|
error;
|
|
@@ -425,8 +430,8 @@ let UnauthorizedClientException$1 = class UnauthorizedClientException extends SS
|
|
|
425
430
|
this.error = opts.error;
|
|
426
431
|
this.error_description = opts.error_description;
|
|
427
432
|
}
|
|
428
|
-
}
|
|
429
|
-
|
|
433
|
+
}
|
|
434
|
+
class UnsupportedGrantTypeException extends SSOOIDCServiceException {
|
|
430
435
|
name = "UnsupportedGrantTypeException";
|
|
431
436
|
$fault = "client";
|
|
432
437
|
error;
|
|
@@ -441,7 +446,7 @@ let UnsupportedGrantTypeException$1 = class UnsupportedGrantTypeException extend
|
|
|
441
446
|
this.error = opts.error;
|
|
442
447
|
this.error_description = opts.error_description;
|
|
443
448
|
}
|
|
444
|
-
}
|
|
449
|
+
}
|
|
445
450
|
|
|
446
451
|
const _ADE = "AccessDeniedException";
|
|
447
452
|
const _APE = "AuthorizationPendingException";
|
|
@@ -489,7 +494,7 @@ var ClientSecret = [0, n0, _CS, 8, 0];
|
|
|
489
494
|
var CodeVerifier = [0, n0, _CV, 8, 0];
|
|
490
495
|
var IdToken = [0, n0, _IT, 8, 0];
|
|
491
496
|
var RefreshToken = [0, n0, _RT, 8, 0];
|
|
492
|
-
var AccessDeniedException = [
|
|
497
|
+
var AccessDeniedException$ = [
|
|
493
498
|
-3,
|
|
494
499
|
n0,
|
|
495
500
|
_ADE,
|
|
@@ -497,8 +502,8 @@ var AccessDeniedException = [
|
|
|
497
502
|
[_e, _r, _ed],
|
|
498
503
|
[0, 0, 0],
|
|
499
504
|
];
|
|
500
|
-
TypeRegistry.for(n0).registerError(AccessDeniedException
|
|
501
|
-
var AuthorizationPendingException = [
|
|
505
|
+
TypeRegistry.for(n0).registerError(AccessDeniedException$, AccessDeniedException);
|
|
506
|
+
var AuthorizationPendingException$ = [
|
|
502
507
|
-3,
|
|
503
508
|
n0,
|
|
504
509
|
_APE,
|
|
@@ -506,8 +511,8 @@ var AuthorizationPendingException = [
|
|
|
506
511
|
[_e, _ed],
|
|
507
512
|
[0, 0],
|
|
508
513
|
];
|
|
509
|
-
TypeRegistry.for(n0).registerError(AuthorizationPendingException
|
|
510
|
-
var CreateTokenRequest = [
|
|
514
|
+
TypeRegistry.for(n0).registerError(AuthorizationPendingException$, AuthorizationPendingException);
|
|
515
|
+
var CreateTokenRequest$ = [
|
|
511
516
|
3,
|
|
512
517
|
n0,
|
|
513
518
|
_CTR,
|
|
@@ -515,7 +520,7 @@ var CreateTokenRequest = [
|
|
|
515
520
|
[_cI, _cS, _gT, _dC, _co, _rT, _s, _rU, _cV],
|
|
516
521
|
[0, [() => ClientSecret, 0], 0, 0, 0, [() => RefreshToken, 0], 64 | 0, 0, [() => CodeVerifier, 0]],
|
|
517
522
|
];
|
|
518
|
-
var CreateTokenResponse = [
|
|
523
|
+
var CreateTokenResponse$ = [
|
|
519
524
|
3,
|
|
520
525
|
n0,
|
|
521
526
|
_CTRr,
|
|
@@ -523,15 +528,15 @@ var CreateTokenResponse = [
|
|
|
523
528
|
[_aT, _tT, _eI, _rT, _iT],
|
|
524
529
|
[[() => AccessToken, 0], 0, 1, [() => RefreshToken, 0], [() => IdToken, 0]],
|
|
525
530
|
];
|
|
526
|
-
var ExpiredTokenException = [-3, n0, _ETE, { [_e]: _c, [_hE]: 400 }, [_e, _ed], [0, 0]];
|
|
527
|
-
TypeRegistry.for(n0).registerError(ExpiredTokenException
|
|
528
|
-
var InternalServerException = [-3, n0, _ISE, { [_e]: _se, [_hE]: 500 }, [_e, _ed], [0, 0]];
|
|
529
|
-
TypeRegistry.for(n0).registerError(InternalServerException
|
|
530
|
-
var InvalidClientException = [-3, n0, _ICE, { [_e]: _c, [_hE]: 401 }, [_e, _ed], [0, 0]];
|
|
531
|
-
TypeRegistry.for(n0).registerError(InvalidClientException
|
|
532
|
-
var InvalidGrantException = [-3, n0, _IGE, { [_e]: _c, [_hE]: 400 }, [_e, _ed], [0, 0]];
|
|
533
|
-
TypeRegistry.for(n0).registerError(InvalidGrantException
|
|
534
|
-
var InvalidRequestException = [
|
|
531
|
+
var ExpiredTokenException$ = [-3, n0, _ETE, { [_e]: _c, [_hE]: 400 }, [_e, _ed], [0, 0]];
|
|
532
|
+
TypeRegistry.for(n0).registerError(ExpiredTokenException$, ExpiredTokenException);
|
|
533
|
+
var InternalServerException$ = [-3, n0, _ISE, { [_e]: _se, [_hE]: 500 }, [_e, _ed], [0, 0]];
|
|
534
|
+
TypeRegistry.for(n0).registerError(InternalServerException$, InternalServerException);
|
|
535
|
+
var InvalidClientException$ = [-3, n0, _ICE, { [_e]: _c, [_hE]: 401 }, [_e, _ed], [0, 0]];
|
|
536
|
+
TypeRegistry.for(n0).registerError(InvalidClientException$, InvalidClientException);
|
|
537
|
+
var InvalidGrantException$ = [-3, n0, _IGE, { [_e]: _c, [_hE]: 400 }, [_e, _ed], [0, 0]];
|
|
538
|
+
TypeRegistry.for(n0).registerError(InvalidGrantException$, InvalidGrantException);
|
|
539
|
+
var InvalidRequestException$ = [
|
|
535
540
|
-3,
|
|
536
541
|
n0,
|
|
537
542
|
_IRE,
|
|
@@ -539,14 +544,21 @@ var InvalidRequestException = [
|
|
|
539
544
|
[_e, _r, _ed],
|
|
540
545
|
[0, 0, 0],
|
|
541
546
|
];
|
|
542
|
-
TypeRegistry.for(n0).registerError(InvalidRequestException
|
|
543
|
-
var InvalidScopeException = [-3, n0, _ISEn, { [_e]: _c, [_hE]: 400 }, [_e, _ed], [0, 0]];
|
|
544
|
-
TypeRegistry.for(n0).registerError(InvalidScopeException
|
|
545
|
-
var SlowDownException = [-3, n0, _SDE, { [_e]: _c, [_hE]: 400 }, [_e, _ed], [0, 0]];
|
|
546
|
-
TypeRegistry.for(n0).registerError(SlowDownException
|
|
547
|
-
var UnauthorizedClientException = [
|
|
548
|
-
|
|
549
|
-
|
|
547
|
+
TypeRegistry.for(n0).registerError(InvalidRequestException$, InvalidRequestException);
|
|
548
|
+
var InvalidScopeException$ = [-3, n0, _ISEn, { [_e]: _c, [_hE]: 400 }, [_e, _ed], [0, 0]];
|
|
549
|
+
TypeRegistry.for(n0).registerError(InvalidScopeException$, InvalidScopeException);
|
|
550
|
+
var SlowDownException$ = [-3, n0, _SDE, { [_e]: _c, [_hE]: 400 }, [_e, _ed], [0, 0]];
|
|
551
|
+
TypeRegistry.for(n0).registerError(SlowDownException$, SlowDownException);
|
|
552
|
+
var UnauthorizedClientException$ = [
|
|
553
|
+
-3,
|
|
554
|
+
n0,
|
|
555
|
+
_UCE,
|
|
556
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
557
|
+
[_e, _ed],
|
|
558
|
+
[0, 0],
|
|
559
|
+
];
|
|
560
|
+
TypeRegistry.for(n0).registerError(UnauthorizedClientException$, UnauthorizedClientException);
|
|
561
|
+
var UnsupportedGrantTypeException$ = [
|
|
550
562
|
-3,
|
|
551
563
|
n0,
|
|
552
564
|
_UGTE,
|
|
@@ -554,16 +566,16 @@ var UnsupportedGrantTypeException = [
|
|
|
554
566
|
[_e, _ed],
|
|
555
567
|
[0, 0],
|
|
556
568
|
];
|
|
557
|
-
TypeRegistry.for(n0).registerError(UnsupportedGrantTypeException
|
|
558
|
-
var SSOOIDCServiceException = [-3, _sm, "SSOOIDCServiceException", 0, [], []];
|
|
559
|
-
TypeRegistry.for(_sm).registerError(SSOOIDCServiceException
|
|
560
|
-
var CreateToken = [
|
|
569
|
+
TypeRegistry.for(n0).registerError(UnsupportedGrantTypeException$, UnsupportedGrantTypeException);
|
|
570
|
+
var SSOOIDCServiceException$ = [-3, _sm, "SSOOIDCServiceException", 0, [], []];
|
|
571
|
+
TypeRegistry.for(_sm).registerError(SSOOIDCServiceException$, SSOOIDCServiceException);
|
|
572
|
+
var CreateToken$ = [
|
|
561
573
|
9,
|
|
562
574
|
n0,
|
|
563
575
|
_CT,
|
|
564
576
|
{ [_h]: ["POST", "/token", 200] },
|
|
565
|
-
() => CreateTokenRequest
|
|
566
|
-
() => CreateTokenResponse
|
|
577
|
+
() => CreateTokenRequest$,
|
|
578
|
+
() => CreateTokenResponse$,
|
|
567
579
|
];
|
|
568
580
|
|
|
569
581
|
class CreateTokenCommand extends Command
|
|
@@ -574,8 +586,8 @@ class CreateTokenCommand extends Command
|
|
|
574
586
|
})
|
|
575
587
|
.s("AWSSSOOIDCService", "CreateToken", {})
|
|
576
588
|
.n("SSOOIDCClient", "CreateTokenCommand")
|
|
577
|
-
.sc(CreateToken)
|
|
589
|
+
.sc(CreateToken$)
|
|
578
590
|
.build() {
|
|
579
591
|
}
|
|
580
592
|
|
|
581
|
-
export { Command as $Command, AccessDeniedException
|
|
593
|
+
export { Command as $Command, AccessDeniedException, AccessDeniedException$, AuthorizationPendingException, AuthorizationPendingException$, CreateToken$, CreateTokenCommand, CreateTokenRequest$, CreateTokenResponse$, ExpiredTokenException, ExpiredTokenException$, InternalServerException, InternalServerException$, InvalidClientException, InvalidClientException$, InvalidGrantException, InvalidGrantException$, InvalidRequestException, InvalidRequestException$, InvalidScopeException, InvalidScopeException$, SSOOIDCClient, SSOOIDCServiceException, SSOOIDCServiceException$, SlowDownException, SlowDownException$, UnauthorizedClientException, UnauthorizedClientException$, UnsupportedGrantTypeException, UnsupportedGrantTypeException$, Client as __Client };
|