mirror of
https://github.com/aws-actions/configure-aws-credentials.git
synced 2026-03-15 09:20:58 -04:00
chore: Update dist
This commit is contained in:
560
dist/443.index.js
generated
vendored
560
dist/443.index.js
generated
vendored
@@ -117,6 +117,7 @@ var middlewareRecursionDetection = __webpack_require__(1568);
|
||||
var middlewareUserAgent = __webpack_require__(2959);
|
||||
var configResolver = __webpack_require__(9316);
|
||||
var core = __webpack_require__(402);
|
||||
var schema = __webpack_require__(6890);
|
||||
var middlewareContentLength = __webpack_require__(7212);
|
||||
var middlewareEndpoint = __webpack_require__(99);
|
||||
var middlewareRetry = __webpack_require__(9618);
|
||||
@@ -125,8 +126,6 @@ var httpAuthSchemeProvider = __webpack_require__(8396);
|
||||
var runtimeConfig = __webpack_require__(6901);
|
||||
var regionConfigResolver = __webpack_require__(6463);
|
||||
var protocolHttp = __webpack_require__(2356);
|
||||
var middlewareSerde = __webpack_require__(3255);
|
||||
var core$1 = __webpack_require__(8704);
|
||||
|
||||
const resolveClientEndpointParameters = (options) => {
|
||||
return Object.assign(options, {
|
||||
@@ -202,6 +201,7 @@ class SSOOIDCClient extends smithyClient.Client {
|
||||
const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
|
||||
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
||||
this.config = _config_8;
|
||||
this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config));
|
||||
this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
|
||||
this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
|
||||
this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
|
||||
@@ -221,17 +221,17 @@ class SSOOIDCClient extends smithyClient.Client {
|
||||
}
|
||||
}
|
||||
|
||||
class SSOOIDCServiceException extends smithyClient.ServiceException {
|
||||
let SSOOIDCServiceException$1 = class SSOOIDCServiceException extends smithyClient.ServiceException {
|
||||
constructor(options) {
|
||||
super(options);
|
||||
Object.setPrototypeOf(this, SSOOIDCServiceException.prototype);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
const AccessDeniedExceptionReason = {
|
||||
KMS_ACCESS_DENIED: "KMS_AccessDeniedException",
|
||||
};
|
||||
class AccessDeniedException extends SSOOIDCServiceException {
|
||||
let AccessDeniedException$1 = class AccessDeniedException extends SSOOIDCServiceException$1 {
|
||||
name = "AccessDeniedException";
|
||||
$fault = "client";
|
||||
error;
|
||||
@@ -248,8 +248,8 @@ class AccessDeniedException extends SSOOIDCServiceException {
|
||||
this.reason = opts.reason;
|
||||
this.error_description = opts.error_description;
|
||||
}
|
||||
}
|
||||
class AuthorizationPendingException extends SSOOIDCServiceException {
|
||||
};
|
||||
let AuthorizationPendingException$1 = class AuthorizationPendingException extends SSOOIDCServiceException$1 {
|
||||
name = "AuthorizationPendingException";
|
||||
$fault = "client";
|
||||
error;
|
||||
@@ -264,20 +264,8 @@ class AuthorizationPendingException extends SSOOIDCServiceException {
|
||||
this.error = opts.error;
|
||||
this.error_description = opts.error_description;
|
||||
}
|
||||
}
|
||||
const CreateTokenRequestFilterSensitiveLog = (obj) => ({
|
||||
...obj,
|
||||
...(obj.clientSecret && { clientSecret: smithyClient.SENSITIVE_STRING }),
|
||||
...(obj.refreshToken && { refreshToken: smithyClient.SENSITIVE_STRING }),
|
||||
...(obj.codeVerifier && { codeVerifier: smithyClient.SENSITIVE_STRING }),
|
||||
});
|
||||
const CreateTokenResponseFilterSensitiveLog = (obj) => ({
|
||||
...obj,
|
||||
...(obj.accessToken && { accessToken: smithyClient.SENSITIVE_STRING }),
|
||||
...(obj.refreshToken && { refreshToken: smithyClient.SENSITIVE_STRING }),
|
||||
...(obj.idToken && { idToken: smithyClient.SENSITIVE_STRING }),
|
||||
});
|
||||
class ExpiredTokenException extends SSOOIDCServiceException {
|
||||
};
|
||||
let ExpiredTokenException$1 = class ExpiredTokenException extends SSOOIDCServiceException$1 {
|
||||
name = "ExpiredTokenException";
|
||||
$fault = "client";
|
||||
error;
|
||||
@@ -292,8 +280,8 @@ class ExpiredTokenException extends SSOOIDCServiceException {
|
||||
this.error = opts.error;
|
||||
this.error_description = opts.error_description;
|
||||
}
|
||||
}
|
||||
class InternalServerException extends SSOOIDCServiceException {
|
||||
};
|
||||
let InternalServerException$1 = class InternalServerException extends SSOOIDCServiceException$1 {
|
||||
name = "InternalServerException";
|
||||
$fault = "server";
|
||||
error;
|
||||
@@ -308,8 +296,8 @@ class InternalServerException extends SSOOIDCServiceException {
|
||||
this.error = opts.error;
|
||||
this.error_description = opts.error_description;
|
||||
}
|
||||
}
|
||||
class InvalidClientException extends SSOOIDCServiceException {
|
||||
};
|
||||
let InvalidClientException$1 = class InvalidClientException extends SSOOIDCServiceException$1 {
|
||||
name = "InvalidClientException";
|
||||
$fault = "client";
|
||||
error;
|
||||
@@ -324,8 +312,8 @@ class InvalidClientException extends SSOOIDCServiceException {
|
||||
this.error = opts.error;
|
||||
this.error_description = opts.error_description;
|
||||
}
|
||||
}
|
||||
class InvalidGrantException extends SSOOIDCServiceException {
|
||||
};
|
||||
let InvalidGrantException$1 = class InvalidGrantException extends SSOOIDCServiceException$1 {
|
||||
name = "InvalidGrantException";
|
||||
$fault = "client";
|
||||
error;
|
||||
@@ -340,14 +328,14 @@ class InvalidGrantException extends SSOOIDCServiceException {
|
||||
this.error = opts.error;
|
||||
this.error_description = opts.error_description;
|
||||
}
|
||||
}
|
||||
};
|
||||
const InvalidRequestExceptionReason = {
|
||||
KMS_DISABLED_KEY: "KMS_DisabledException",
|
||||
KMS_INVALID_KEY_USAGE: "KMS_InvalidKeyUsageException",
|
||||
KMS_INVALID_STATE: "KMS_InvalidStateException",
|
||||
KMS_KEY_NOT_FOUND: "KMS_NotFoundException",
|
||||
};
|
||||
class InvalidRequestException extends SSOOIDCServiceException {
|
||||
let InvalidRequestException$1 = class InvalidRequestException extends SSOOIDCServiceException$1 {
|
||||
name = "InvalidRequestException";
|
||||
$fault = "client";
|
||||
error;
|
||||
@@ -364,8 +352,8 @@ class InvalidRequestException extends SSOOIDCServiceException {
|
||||
this.reason = opts.reason;
|
||||
this.error_description = opts.error_description;
|
||||
}
|
||||
}
|
||||
class InvalidScopeException extends SSOOIDCServiceException {
|
||||
};
|
||||
let InvalidScopeException$1 = class InvalidScopeException extends SSOOIDCServiceException$1 {
|
||||
name = "InvalidScopeException";
|
||||
$fault = "client";
|
||||
error;
|
||||
@@ -380,8 +368,8 @@ class InvalidScopeException extends SSOOIDCServiceException {
|
||||
this.error = opts.error;
|
||||
this.error_description = opts.error_description;
|
||||
}
|
||||
}
|
||||
class SlowDownException extends SSOOIDCServiceException {
|
||||
};
|
||||
let SlowDownException$1 = class SlowDownException extends SSOOIDCServiceException$1 {
|
||||
name = "SlowDownException";
|
||||
$fault = "client";
|
||||
error;
|
||||
@@ -396,8 +384,8 @@ class SlowDownException extends SSOOIDCServiceException {
|
||||
this.error = opts.error;
|
||||
this.error_description = opts.error_description;
|
||||
}
|
||||
}
|
||||
class UnauthorizedClientException extends SSOOIDCServiceException {
|
||||
};
|
||||
let UnauthorizedClientException$1 = class UnauthorizedClientException extends SSOOIDCServiceException$1 {
|
||||
name = "UnauthorizedClientException";
|
||||
$fault = "client";
|
||||
error;
|
||||
@@ -412,8 +400,8 @@ class UnauthorizedClientException extends SSOOIDCServiceException {
|
||||
this.error = opts.error;
|
||||
this.error_description = opts.error_description;
|
||||
}
|
||||
}
|
||||
class UnsupportedGrantTypeException extends SSOOIDCServiceException {
|
||||
};
|
||||
let UnsupportedGrantTypeException$1 = class UnsupportedGrantTypeException extends SSOOIDCServiceException$1 {
|
||||
name = "UnsupportedGrantTypeException";
|
||||
$fault = "client";
|
||||
error;
|
||||
@@ -428,274 +416,224 @@ class UnsupportedGrantTypeException extends SSOOIDCServiceException {
|
||||
this.error = opts.error;
|
||||
this.error_description = opts.error_description;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
const se_CreateTokenCommand = async (input, context) => {
|
||||
const b = core.requestBuilder(input, context);
|
||||
const headers = {
|
||||
"content-type": "application/json",
|
||||
};
|
||||
b.bp("/token");
|
||||
let body;
|
||||
body = JSON.stringify(smithyClient.take(input, {
|
||||
clientId: [],
|
||||
clientSecret: [],
|
||||
code: [],
|
||||
codeVerifier: [],
|
||||
deviceCode: [],
|
||||
grantType: [],
|
||||
redirectUri: [],
|
||||
refreshToken: [],
|
||||
scope: (_) => smithyClient._json(_),
|
||||
}));
|
||||
b.m("POST").h(headers).b(body);
|
||||
return b.build();
|
||||
};
|
||||
const de_CreateTokenCommand = async (output, context) => {
|
||||
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
||||
return de_CommandError(output, context);
|
||||
}
|
||||
const contents = smithyClient.map({
|
||||
$metadata: deserializeMetadata(output),
|
||||
});
|
||||
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
||||
const doc = smithyClient.take(data, {
|
||||
accessToken: smithyClient.expectString,
|
||||
expiresIn: smithyClient.expectInt32,
|
||||
idToken: smithyClient.expectString,
|
||||
refreshToken: smithyClient.expectString,
|
||||
tokenType: smithyClient.expectString,
|
||||
});
|
||||
Object.assign(contents, doc);
|
||||
return contents;
|
||||
};
|
||||
const de_CommandError = async (output, context) => {
|
||||
const parsedOutput = {
|
||||
...output,
|
||||
body: await core$1.parseJsonErrorBody(output.body, context),
|
||||
};
|
||||
const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
|
||||
switch (errorCode) {
|
||||
case "AccessDeniedException":
|
||||
case "com.amazonaws.ssooidc#AccessDeniedException":
|
||||
throw await de_AccessDeniedExceptionRes(parsedOutput);
|
||||
case "AuthorizationPendingException":
|
||||
case "com.amazonaws.ssooidc#AuthorizationPendingException":
|
||||
throw await de_AuthorizationPendingExceptionRes(parsedOutput);
|
||||
case "ExpiredTokenException":
|
||||
case "com.amazonaws.ssooidc#ExpiredTokenException":
|
||||
throw await de_ExpiredTokenExceptionRes(parsedOutput);
|
||||
case "InternalServerException":
|
||||
case "com.amazonaws.ssooidc#InternalServerException":
|
||||
throw await de_InternalServerExceptionRes(parsedOutput);
|
||||
case "InvalidClientException":
|
||||
case "com.amazonaws.ssooidc#InvalidClientException":
|
||||
throw await de_InvalidClientExceptionRes(parsedOutput);
|
||||
case "InvalidGrantException":
|
||||
case "com.amazonaws.ssooidc#InvalidGrantException":
|
||||
throw await de_InvalidGrantExceptionRes(parsedOutput);
|
||||
case "InvalidRequestException":
|
||||
case "com.amazonaws.ssooidc#InvalidRequestException":
|
||||
throw await de_InvalidRequestExceptionRes(parsedOutput);
|
||||
case "InvalidScopeException":
|
||||
case "com.amazonaws.ssooidc#InvalidScopeException":
|
||||
throw await de_InvalidScopeExceptionRes(parsedOutput);
|
||||
case "SlowDownException":
|
||||
case "com.amazonaws.ssooidc#SlowDownException":
|
||||
throw await de_SlowDownExceptionRes(parsedOutput);
|
||||
case "UnauthorizedClientException":
|
||||
case "com.amazonaws.ssooidc#UnauthorizedClientException":
|
||||
throw await de_UnauthorizedClientExceptionRes(parsedOutput);
|
||||
case "UnsupportedGrantTypeException":
|
||||
case "com.amazonaws.ssooidc#UnsupportedGrantTypeException":
|
||||
throw await de_UnsupportedGrantTypeExceptionRes(parsedOutput);
|
||||
default:
|
||||
const parsedBody = parsedOutput.body;
|
||||
return throwDefaultError({
|
||||
output,
|
||||
parsedBody,
|
||||
errorCode,
|
||||
});
|
||||
}
|
||||
};
|
||||
const throwDefaultError = smithyClient.withBaseException(SSOOIDCServiceException);
|
||||
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
||||
const contents = smithyClient.map({});
|
||||
const data = parsedOutput.body;
|
||||
const doc = smithyClient.take(data, {
|
||||
error: smithyClient.expectString,
|
||||
error_description: smithyClient.expectString,
|
||||
reason: smithyClient.expectString,
|
||||
});
|
||||
Object.assign(contents, doc);
|
||||
const exception = new AccessDeniedException({
|
||||
$metadata: deserializeMetadata(parsedOutput),
|
||||
...contents,
|
||||
});
|
||||
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
||||
};
|
||||
const de_AuthorizationPendingExceptionRes = async (parsedOutput, context) => {
|
||||
const contents = smithyClient.map({});
|
||||
const data = parsedOutput.body;
|
||||
const doc = smithyClient.take(data, {
|
||||
error: smithyClient.expectString,
|
||||
error_description: smithyClient.expectString,
|
||||
});
|
||||
Object.assign(contents, doc);
|
||||
const exception = new AuthorizationPendingException({
|
||||
$metadata: deserializeMetadata(parsedOutput),
|
||||
...contents,
|
||||
});
|
||||
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
||||
};
|
||||
const de_ExpiredTokenExceptionRes = async (parsedOutput, context) => {
|
||||
const contents = smithyClient.map({});
|
||||
const data = parsedOutput.body;
|
||||
const doc = smithyClient.take(data, {
|
||||
error: smithyClient.expectString,
|
||||
error_description: smithyClient.expectString,
|
||||
});
|
||||
Object.assign(contents, doc);
|
||||
const exception = new ExpiredTokenException({
|
||||
$metadata: deserializeMetadata(parsedOutput),
|
||||
...contents,
|
||||
});
|
||||
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
||||
};
|
||||
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
||||
const contents = smithyClient.map({});
|
||||
const data = parsedOutput.body;
|
||||
const doc = smithyClient.take(data, {
|
||||
error: smithyClient.expectString,
|
||||
error_description: smithyClient.expectString,
|
||||
});
|
||||
Object.assign(contents, doc);
|
||||
const exception = new InternalServerException({
|
||||
$metadata: deserializeMetadata(parsedOutput),
|
||||
...contents,
|
||||
});
|
||||
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
||||
};
|
||||
const de_InvalidClientExceptionRes = async (parsedOutput, context) => {
|
||||
const contents = smithyClient.map({});
|
||||
const data = parsedOutput.body;
|
||||
const doc = smithyClient.take(data, {
|
||||
error: smithyClient.expectString,
|
||||
error_description: smithyClient.expectString,
|
||||
});
|
||||
Object.assign(contents, doc);
|
||||
const exception = new InvalidClientException({
|
||||
$metadata: deserializeMetadata(parsedOutput),
|
||||
...contents,
|
||||
});
|
||||
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
||||
};
|
||||
const de_InvalidGrantExceptionRes = async (parsedOutput, context) => {
|
||||
const contents = smithyClient.map({});
|
||||
const data = parsedOutput.body;
|
||||
const doc = smithyClient.take(data, {
|
||||
error: smithyClient.expectString,
|
||||
error_description: smithyClient.expectString,
|
||||
});
|
||||
Object.assign(contents, doc);
|
||||
const exception = new InvalidGrantException({
|
||||
$metadata: deserializeMetadata(parsedOutput),
|
||||
...contents,
|
||||
});
|
||||
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
||||
};
|
||||
const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
|
||||
const contents = smithyClient.map({});
|
||||
const data = parsedOutput.body;
|
||||
const doc = smithyClient.take(data, {
|
||||
error: smithyClient.expectString,
|
||||
error_description: smithyClient.expectString,
|
||||
reason: smithyClient.expectString,
|
||||
});
|
||||
Object.assign(contents, doc);
|
||||
const exception = new InvalidRequestException({
|
||||
$metadata: deserializeMetadata(parsedOutput),
|
||||
...contents,
|
||||
});
|
||||
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
||||
};
|
||||
const de_InvalidScopeExceptionRes = async (parsedOutput, context) => {
|
||||
const contents = smithyClient.map({});
|
||||
const data = parsedOutput.body;
|
||||
const doc = smithyClient.take(data, {
|
||||
error: smithyClient.expectString,
|
||||
error_description: smithyClient.expectString,
|
||||
});
|
||||
Object.assign(contents, doc);
|
||||
const exception = new InvalidScopeException({
|
||||
$metadata: deserializeMetadata(parsedOutput),
|
||||
...contents,
|
||||
});
|
||||
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
||||
};
|
||||
const de_SlowDownExceptionRes = async (parsedOutput, context) => {
|
||||
const contents = smithyClient.map({});
|
||||
const data = parsedOutput.body;
|
||||
const doc = smithyClient.take(data, {
|
||||
error: smithyClient.expectString,
|
||||
error_description: smithyClient.expectString,
|
||||
});
|
||||
Object.assign(contents, doc);
|
||||
const exception = new SlowDownException({
|
||||
$metadata: deserializeMetadata(parsedOutput),
|
||||
...contents,
|
||||
});
|
||||
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
||||
};
|
||||
const de_UnauthorizedClientExceptionRes = async (parsedOutput, context) => {
|
||||
const contents = smithyClient.map({});
|
||||
const data = parsedOutput.body;
|
||||
const doc = smithyClient.take(data, {
|
||||
error: smithyClient.expectString,
|
||||
error_description: smithyClient.expectString,
|
||||
});
|
||||
Object.assign(contents, doc);
|
||||
const exception = new UnauthorizedClientException({
|
||||
$metadata: deserializeMetadata(parsedOutput),
|
||||
...contents,
|
||||
});
|
||||
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
||||
};
|
||||
const de_UnsupportedGrantTypeExceptionRes = async (parsedOutput, context) => {
|
||||
const contents = smithyClient.map({});
|
||||
const data = parsedOutput.body;
|
||||
const doc = smithyClient.take(data, {
|
||||
error: smithyClient.expectString,
|
||||
error_description: smithyClient.expectString,
|
||||
});
|
||||
Object.assign(contents, doc);
|
||||
const exception = new UnsupportedGrantTypeException({
|
||||
$metadata: deserializeMetadata(parsedOutput),
|
||||
...contents,
|
||||
});
|
||||
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
||||
};
|
||||
const deserializeMetadata = (output) => ({
|
||||
httpStatusCode: output.statusCode,
|
||||
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
||||
extendedRequestId: output.headers["x-amz-id-2"],
|
||||
cfId: output.headers["x-amz-cf-id"],
|
||||
});
|
||||
const _ADE = "AccessDeniedException";
|
||||
const _APE = "AuthorizationPendingException";
|
||||
const _AT = "AccessToken";
|
||||
const _CS = "ClientSecret";
|
||||
const _CT = "CreateToken";
|
||||
const _CTR = "CreateTokenRequest";
|
||||
const _CTRr = "CreateTokenResponse";
|
||||
const _CV = "CodeVerifier";
|
||||
const _ETE = "ExpiredTokenException";
|
||||
const _ICE = "InvalidClientException";
|
||||
const _IGE = "InvalidGrantException";
|
||||
const _IRE = "InvalidRequestException";
|
||||
const _ISE = "InternalServerException";
|
||||
const _ISEn = "InvalidScopeException";
|
||||
const _IT = "IdToken";
|
||||
const _RT = "RefreshToken";
|
||||
const _SDE = "SlowDownException";
|
||||
const _UCE = "UnauthorizedClientException";
|
||||
const _UGTE = "UnsupportedGrantTypeException";
|
||||
const _aT = "accessToken";
|
||||
const _c = "client";
|
||||
const _cI = "clientId";
|
||||
const _cS = "clientSecret";
|
||||
const _cV = "codeVerifier";
|
||||
const _co = "code";
|
||||
const _dC = "deviceCode";
|
||||
const _e = "error";
|
||||
const _eI = "expiresIn";
|
||||
const _ed = "error_description";
|
||||
const _gT = "grantType";
|
||||
const _h = "http";
|
||||
const _hE = "httpError";
|
||||
const _iT = "idToken";
|
||||
const _r = "reason";
|
||||
const _rT = "refreshToken";
|
||||
const _rU = "redirectUri";
|
||||
const _s = "scope";
|
||||
const _se = "server";
|
||||
const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.ssooidc";
|
||||
const _tT = "tokenType";
|
||||
const n0 = "com.amazonaws.ssooidc";
|
||||
var AccessToken = [0, n0, _AT, 8, 0];
|
||||
var ClientSecret = [0, n0, _CS, 8, 0];
|
||||
var CodeVerifier = [0, n0, _CV, 8, 0];
|
||||
var IdToken = [0, n0, _IT, 8, 0];
|
||||
var RefreshToken = [0, n0, _RT, 8, 0];
|
||||
var AccessDeniedException = [
|
||||
-3,
|
||||
n0,
|
||||
_ADE,
|
||||
{
|
||||
[_e]: _c,
|
||||
[_hE]: 400,
|
||||
},
|
||||
[_e, _r, _ed],
|
||||
[0, 0, 0],
|
||||
];
|
||||
schema.TypeRegistry.for(n0).registerError(AccessDeniedException, AccessDeniedException$1);
|
||||
var AuthorizationPendingException = [
|
||||
-3,
|
||||
n0,
|
||||
_APE,
|
||||
{
|
||||
[_e]: _c,
|
||||
[_hE]: 400,
|
||||
},
|
||||
[_e, _ed],
|
||||
[0, 0],
|
||||
];
|
||||
schema.TypeRegistry.for(n0).registerError(AuthorizationPendingException, AuthorizationPendingException$1);
|
||||
var CreateTokenRequest = [
|
||||
3,
|
||||
n0,
|
||||
_CTR,
|
||||
0,
|
||||
[_cI, _cS, _gT, _dC, _co, _rT, _s, _rU, _cV],
|
||||
[0, [() => ClientSecret, 0], 0, 0, 0, [() => RefreshToken, 0], 64 | 0, 0, [() => CodeVerifier, 0]],
|
||||
];
|
||||
var CreateTokenResponse = [
|
||||
3,
|
||||
n0,
|
||||
_CTRr,
|
||||
0,
|
||||
[_aT, _tT, _eI, _rT, _iT],
|
||||
[[() => AccessToken, 0], 0, 1, [() => RefreshToken, 0], [() => IdToken, 0]],
|
||||
];
|
||||
var ExpiredTokenException = [
|
||||
-3,
|
||||
n0,
|
||||
_ETE,
|
||||
{
|
||||
[_e]: _c,
|
||||
[_hE]: 400,
|
||||
},
|
||||
[_e, _ed],
|
||||
[0, 0],
|
||||
];
|
||||
schema.TypeRegistry.for(n0).registerError(ExpiredTokenException, ExpiredTokenException$1);
|
||||
var InternalServerException = [
|
||||
-3,
|
||||
n0,
|
||||
_ISE,
|
||||
{
|
||||
[_e]: _se,
|
||||
[_hE]: 500,
|
||||
},
|
||||
[_e, _ed],
|
||||
[0, 0],
|
||||
];
|
||||
schema.TypeRegistry.for(n0).registerError(InternalServerException, InternalServerException$1);
|
||||
var InvalidClientException = [
|
||||
-3,
|
||||
n0,
|
||||
_ICE,
|
||||
{
|
||||
[_e]: _c,
|
||||
[_hE]: 401,
|
||||
},
|
||||
[_e, _ed],
|
||||
[0, 0],
|
||||
];
|
||||
schema.TypeRegistry.for(n0).registerError(InvalidClientException, InvalidClientException$1);
|
||||
var InvalidGrantException = [
|
||||
-3,
|
||||
n0,
|
||||
_IGE,
|
||||
{
|
||||
[_e]: _c,
|
||||
[_hE]: 400,
|
||||
},
|
||||
[_e, _ed],
|
||||
[0, 0],
|
||||
];
|
||||
schema.TypeRegistry.for(n0).registerError(InvalidGrantException, InvalidGrantException$1);
|
||||
var InvalidRequestException = [
|
||||
-3,
|
||||
n0,
|
||||
_IRE,
|
||||
{
|
||||
[_e]: _c,
|
||||
[_hE]: 400,
|
||||
},
|
||||
[_e, _r, _ed],
|
||||
[0, 0, 0],
|
||||
];
|
||||
schema.TypeRegistry.for(n0).registerError(InvalidRequestException, InvalidRequestException$1);
|
||||
var InvalidScopeException = [
|
||||
-3,
|
||||
n0,
|
||||
_ISEn,
|
||||
{
|
||||
[_e]: _c,
|
||||
[_hE]: 400,
|
||||
},
|
||||
[_e, _ed],
|
||||
[0, 0],
|
||||
];
|
||||
schema.TypeRegistry.for(n0).registerError(InvalidScopeException, InvalidScopeException$1);
|
||||
var SlowDownException = [
|
||||
-3,
|
||||
n0,
|
||||
_SDE,
|
||||
{
|
||||
[_e]: _c,
|
||||
[_hE]: 400,
|
||||
},
|
||||
[_e, _ed],
|
||||
[0, 0],
|
||||
];
|
||||
schema.TypeRegistry.for(n0).registerError(SlowDownException, SlowDownException$1);
|
||||
var UnauthorizedClientException = [
|
||||
-3,
|
||||
n0,
|
||||
_UCE,
|
||||
{
|
||||
[_e]: _c,
|
||||
[_hE]: 400,
|
||||
},
|
||||
[_e, _ed],
|
||||
[0, 0],
|
||||
];
|
||||
schema.TypeRegistry.for(n0).registerError(UnauthorizedClientException, UnauthorizedClientException$1);
|
||||
var UnsupportedGrantTypeException = [
|
||||
-3,
|
||||
n0,
|
||||
_UGTE,
|
||||
{
|
||||
[_e]: _c,
|
||||
[_hE]: 400,
|
||||
},
|
||||
[_e, _ed],
|
||||
[0, 0],
|
||||
];
|
||||
schema.TypeRegistry.for(n0).registerError(UnsupportedGrantTypeException, UnsupportedGrantTypeException$1);
|
||||
var SSOOIDCServiceException = [-3, _sm, "SSOOIDCServiceException", 0, [], []];
|
||||
schema.TypeRegistry.for(_sm).registerError(SSOOIDCServiceException, SSOOIDCServiceException$1);
|
||||
var CreateToken = [
|
||||
9,
|
||||
n0,
|
||||
_CT,
|
||||
{
|
||||
[_h]: ["POST", "/token", 200],
|
||||
},
|
||||
() => CreateTokenRequest,
|
||||
() => CreateTokenResponse,
|
||||
];
|
||||
|
||||
class CreateTokenCommand extends smithyClient.Command
|
||||
.classBuilder()
|
||||
.ep(commonParams)
|
||||
.m(function (Command, cs, config, o) {
|
||||
return [
|
||||
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
||||
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
||||
];
|
||||
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
||||
})
|
||||
.s("AWSSSOOIDCService", "CreateToken", {})
|
||||
.n("SSOOIDCClient", "CreateTokenCommand")
|
||||
.f(CreateTokenRequestFilterSensitiveLog, CreateTokenResponseFilterSensitiveLog)
|
||||
.ser(se_CreateTokenCommand)
|
||||
.de(de_CreateTokenCommand)
|
||||
.sc(CreateToken)
|
||||
.build() {
|
||||
}
|
||||
|
||||
@@ -714,25 +652,23 @@ __webpack_unused_export__ = ({
|
||||
enumerable: true,
|
||||
get: function () { return smithyClient.Client; }
|
||||
});
|
||||
__webpack_unused_export__ = AccessDeniedException;
|
||||
__webpack_unused_export__ = AccessDeniedException$1;
|
||||
__webpack_unused_export__ = AccessDeniedExceptionReason;
|
||||
__webpack_unused_export__ = AuthorizationPendingException;
|
||||
__webpack_unused_export__ = AuthorizationPendingException$1;
|
||||
exports.CreateTokenCommand = CreateTokenCommand;
|
||||
__webpack_unused_export__ = CreateTokenRequestFilterSensitiveLog;
|
||||
__webpack_unused_export__ = CreateTokenResponseFilterSensitiveLog;
|
||||
__webpack_unused_export__ = ExpiredTokenException;
|
||||
__webpack_unused_export__ = InternalServerException;
|
||||
__webpack_unused_export__ = InvalidClientException;
|
||||
__webpack_unused_export__ = InvalidGrantException;
|
||||
__webpack_unused_export__ = InvalidRequestException;
|
||||
__webpack_unused_export__ = ExpiredTokenException$1;
|
||||
__webpack_unused_export__ = InternalServerException$1;
|
||||
__webpack_unused_export__ = InvalidClientException$1;
|
||||
__webpack_unused_export__ = InvalidGrantException$1;
|
||||
__webpack_unused_export__ = InvalidRequestException$1;
|
||||
__webpack_unused_export__ = InvalidRequestExceptionReason;
|
||||
__webpack_unused_export__ = InvalidScopeException;
|
||||
__webpack_unused_export__ = InvalidScopeException$1;
|
||||
__webpack_unused_export__ = SSOOIDC;
|
||||
exports.SSOOIDCClient = SSOOIDCClient;
|
||||
__webpack_unused_export__ = SSOOIDCServiceException;
|
||||
__webpack_unused_export__ = SlowDownException;
|
||||
__webpack_unused_export__ = UnauthorizedClientException;
|
||||
__webpack_unused_export__ = UnsupportedGrantTypeException;
|
||||
__webpack_unused_export__ = SSOOIDCServiceException$1;
|
||||
__webpack_unused_export__ = SlowDownException$1;
|
||||
__webpack_unused_export__ = UnauthorizedClientException$1;
|
||||
__webpack_unused_export__ = UnsupportedGrantTypeException$1;
|
||||
|
||||
|
||||
/***/ }),
|
||||
@@ -805,6 +741,7 @@ exports.getRuntimeConfig = getRuntimeConfig;
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.getRuntimeConfig = void 0;
|
||||
const core_1 = __webpack_require__(8704);
|
||||
const protocols_1 = __webpack_require__(7288);
|
||||
const core_2 = __webpack_require__(402);
|
||||
const smithy_client_1 = __webpack_require__(1411);
|
||||
const url_parser_1 = __webpack_require__(4494);
|
||||
@@ -834,6 +771,7 @@ const getRuntimeConfig = (config) => {
|
||||
},
|
||||
],
|
||||
logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
|
||||
protocol: config?.protocol ?? new protocols_1.AwsRestJsonProtocol({ defaultNamespace: "com.amazonaws.ssooidc" }),
|
||||
serviceId: config?.serviceId ?? "SSO OIDC",
|
||||
urlParser: config?.urlParser ?? url_parser_1.parseUrl,
|
||||
utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
|
||||
@@ -848,7 +786,7 @@ exports.getRuntimeConfig = getRuntimeConfig;
|
||||
/***/ 9955:
|
||||
/***/ ((module) => {
|
||||
|
||||
module.exports = /*#__PURE__*/JSON.parse('{"name":"@aws-sdk/nested-clients","version":"3.928.0","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:cjs\' \'yarn:build:es\' \'yarn:build:types\'","build:cjs":"node ../../scripts/compilation/inline nested-clients","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"rimraf ./dist-* && rimraf *.tsbuildinfo","lint":"node ../../scripts/validation/submodules-linter.js --pkg nested-clients","test":"yarn g:vitest run","test:watch":"yarn g:vitest watch"},"engines":{"node":">=18.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.928.0","@aws-sdk/middleware-host-header":"3.922.0","@aws-sdk/middleware-logger":"3.922.0","@aws-sdk/middleware-recursion-detection":"3.922.0","@aws-sdk/middleware-user-agent":"3.928.0","@aws-sdk/region-config-resolver":"3.925.0","@aws-sdk/types":"3.922.0","@aws-sdk/util-endpoints":"3.922.0","@aws-sdk/util-user-agent-browser":"3.922.0","@aws-sdk/util-user-agent-node":"3.928.0","@smithy/config-resolver":"^4.4.2","@smithy/core":"^3.17.2","@smithy/fetch-http-handler":"^5.3.5","@smithy/hash-node":"^4.2.4","@smithy/invalid-dependency":"^4.2.4","@smithy/middleware-content-length":"^4.2.4","@smithy/middleware-endpoint":"^4.3.6","@smithy/middleware-retry":"^4.4.6","@smithy/middleware-serde":"^4.2.4","@smithy/middleware-stack":"^4.2.4","@smithy/node-config-provider":"^4.3.4","@smithy/node-http-handler":"^4.4.4","@smithy/protocol-http":"^5.3.4","@smithy/smithy-client":"^4.9.2","@smithy/types":"^4.8.1","@smithy/url-parser":"^4.2.4","@smithy/util-base64":"^4.3.0","@smithy/util-body-length-browser":"^4.2.0","@smithy/util-body-length-node":"^4.2.1","@smithy/util-defaults-mode-browser":"^4.3.5","@smithy/util-defaults-mode-node":"^4.2.8","@smithy/util-endpoints":"^3.2.4","@smithy/util-middleware":"^4.2.4","@smithy/util-retry":"^4.2.4","@smithy/util-utf8":"^4.2.0","tslib":"^2.6.2"},"devDependencies":{"concurrently":"7.0.0","downlevel-dts":"0.10.1","rimraf":"3.0.2","typescript":"~5.8.3"},"typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["./sso-oidc.d.ts","./sso-oidc.js","./sts.d.ts","./sts.js","dist-*/**"],"browser":{"./dist-es/submodules/sso-oidc/runtimeConfig":"./dist-es/submodules/sso-oidc/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":{"./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"}}}');
|
||||
module.exports = /*#__PURE__*/JSON.parse('{"name":"@aws-sdk/nested-clients","version":"3.933.0","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:cjs\' \'yarn:build:es\' \'yarn:build:types\'","build:cjs":"node ../../scripts/compilation/inline nested-clients","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"rimraf ./dist-* && rimraf *.tsbuildinfo","lint":"node ../../scripts/validation/submodules-linter.js --pkg nested-clients","test":"yarn g:vitest run","test:watch":"yarn g:vitest watch"},"engines":{"node":">=18.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.932.0","@aws-sdk/middleware-host-header":"3.930.0","@aws-sdk/middleware-logger":"3.930.0","@aws-sdk/middleware-recursion-detection":"3.933.0","@aws-sdk/middleware-user-agent":"3.932.0","@aws-sdk/region-config-resolver":"3.930.0","@aws-sdk/types":"3.930.0","@aws-sdk/util-endpoints":"3.930.0","@aws-sdk/util-user-agent-browser":"3.930.0","@aws-sdk/util-user-agent-node":"3.932.0","@smithy/config-resolver":"^4.4.3","@smithy/core":"^3.18.2","@smithy/fetch-http-handler":"^5.3.6","@smithy/hash-node":"^4.2.5","@smithy/invalid-dependency":"^4.2.5","@smithy/middleware-content-length":"^4.2.5","@smithy/middleware-endpoint":"^4.3.9","@smithy/middleware-retry":"^4.4.9","@smithy/middleware-serde":"^4.2.5","@smithy/middleware-stack":"^4.2.5","@smithy/node-config-provider":"^4.3.5","@smithy/node-http-handler":"^4.4.5","@smithy/protocol-http":"^5.3.5","@smithy/smithy-client":"^4.9.5","@smithy/types":"^4.9.0","@smithy/url-parser":"^4.2.5","@smithy/util-base64":"^4.3.0","@smithy/util-body-length-browser":"^4.2.0","@smithy/util-body-length-node":"^4.2.1","@smithy/util-defaults-mode-browser":"^4.3.8","@smithy/util-defaults-mode-node":"^4.2.11","@smithy/util-endpoints":"^3.2.5","@smithy/util-middleware":"^4.2.5","@smithy/util-retry":"^4.2.5","@smithy/util-utf8":"^4.2.0","tslib":"^2.6.2"},"devDependencies":{"concurrently":"7.0.0","downlevel-dts":"0.10.1","rimraf":"3.0.2","typescript":"~5.8.3"},"typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["./sso-oidc.d.ts","./sso-oidc.js","./sts.d.ts","./sts.js","dist-*/**"],"browser":{"./dist-es/submodules/sso-oidc/runtimeConfig":"./dist-es/submodules/sso-oidc/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":{"./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"}}}');
|
||||
|
||||
/***/ })
|
||||
|
||||
|
||||
Reference in New Issue
Block a user