@aws-sdk/client-sso-oidc 3.927.0 → 3.929.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-cjs/index.js +430 -538
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-es/SSOOIDCClient.js +2 -0
- package/dist-es/commands/CreateTokenCommand.js +3 -10
- package/dist-es/commands/CreateTokenWithIAMCommand.js +3 -10
- package/dist-es/commands/RegisterClientCommand.js +3 -10
- package/dist-es/commands/StartDeviceAuthorizationCommand.js +3 -10
- package/dist-es/models/models_0.js +0 -34
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +382 -0
- package/dist-types/SSOOIDCClient.d.ts +10 -1
- package/dist-types/models/models_0.d.ts +0 -24
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +40 -0
- package/dist-types/ts3.4/SSOOIDCClient.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +0 -18
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +45 -0
- package/package.json +5 -5
- package/dist-es/protocols/Aws_restJson1.js +0 -430
- package/dist-types/protocols/Aws_restJson1.d.ts +0 -38
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -53
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getRuntimeConfig = void 0;
|
|
4
4
|
const core_1 = require("@aws-sdk/core");
|
|
5
|
+
const protocols_1 = require("@aws-sdk/core/protocols");
|
|
5
6
|
const core_2 = require("@smithy/core");
|
|
6
7
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
8
|
const url_parser_1 = require("@smithy/url-parser");
|
|
@@ -31,6 +32,7 @@ const getRuntimeConfig = (config) => {
|
|
|
31
32
|
},
|
|
32
33
|
],
|
|
33
34
|
logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
|
|
35
|
+
protocol: config?.protocol ?? new protocols_1.AwsRestJsonProtocol({ defaultNamespace: "com.amazonaws.ssooidc" }),
|
|
34
36
|
serviceId: config?.serviceId ?? "SSO OIDC",
|
|
35
37
|
urlParser: config?.urlParser ?? url_parser_1.parseUrl,
|
|
36
38
|
utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
|
package/dist-es/SSOOIDCClient.js
CHANGED
|
@@ -4,6 +4,7 @@ import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detec
|
|
|
4
4
|
import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
|
|
5
5
|
import { resolveRegionConfig } from "@smithy/config-resolver";
|
|
6
6
|
import { DefaultIdentityProviderConfig, getHttpAuthSchemeEndpointRuleSetPlugin, getHttpSigningPlugin, } from "@smithy/core";
|
|
7
|
+
import { getSchemaSerdePlugin } from "@smithy/core/schema";
|
|
7
8
|
import { getContentLengthPlugin } from "@smithy/middleware-content-length";
|
|
8
9
|
import { resolveEndpointConfig } from "@smithy/middleware-endpoint";
|
|
9
10
|
import { getRetryPlugin, resolveRetryConfig } from "@smithy/middleware-retry";
|
|
@@ -28,6 +29,7 @@ export class SSOOIDCClient extends __Client {
|
|
|
28
29
|
const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
|
|
29
30
|
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
30
31
|
this.config = _config_8;
|
|
32
|
+
this.middlewareStack.use(getSchemaSerdePlugin(this.config));
|
|
31
33
|
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
32
34
|
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
33
35
|
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
@@ -1,23 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
6
|
-
import { de_CreateTokenCommand, se_CreateTokenCommand } from "../protocols/Aws_restJson1";
|
|
4
|
+
import { CreateToken } from "../schemas/schemas_0";
|
|
7
5
|
export { $Command };
|
|
8
6
|
export class CreateTokenCommand extends $Command
|
|
9
7
|
.classBuilder()
|
|
10
8
|
.ep(commonParams)
|
|
11
9
|
.m(function (Command, cs, config, o) {
|
|
12
|
-
return [
|
|
13
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
14
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
15
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
16
11
|
})
|
|
17
12
|
.s("AWSSSOOIDCService", "CreateToken", {})
|
|
18
13
|
.n("SSOOIDCClient", "CreateTokenCommand")
|
|
19
|
-
.
|
|
20
|
-
.ser(se_CreateTokenCommand)
|
|
21
|
-
.de(de_CreateTokenCommand)
|
|
14
|
+
.sc(CreateToken)
|
|
22
15
|
.build() {
|
|
23
16
|
}
|
|
@@ -1,23 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
6
|
-
import { de_CreateTokenWithIAMCommand, se_CreateTokenWithIAMCommand } from "../protocols/Aws_restJson1";
|
|
4
|
+
import { CreateTokenWithIAM } from "../schemas/schemas_0";
|
|
7
5
|
export { $Command };
|
|
8
6
|
export class CreateTokenWithIAMCommand extends $Command
|
|
9
7
|
.classBuilder()
|
|
10
8
|
.ep(commonParams)
|
|
11
9
|
.m(function (Command, cs, config, o) {
|
|
12
|
-
return [
|
|
13
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
14
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
15
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
16
11
|
})
|
|
17
12
|
.s("AWSSSOOIDCService", "CreateTokenWithIAM", {})
|
|
18
13
|
.n("SSOOIDCClient", "CreateTokenWithIAMCommand")
|
|
19
|
-
.
|
|
20
|
-
.ser(se_CreateTokenWithIAMCommand)
|
|
21
|
-
.de(de_CreateTokenWithIAMCommand)
|
|
14
|
+
.sc(CreateTokenWithIAM)
|
|
22
15
|
.build() {
|
|
23
16
|
}
|
|
@@ -1,23 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
6
|
-
import { de_RegisterClientCommand, se_RegisterClientCommand } from "../protocols/Aws_restJson1";
|
|
4
|
+
import { RegisterClient } from "../schemas/schemas_0";
|
|
7
5
|
export { $Command };
|
|
8
6
|
export class RegisterClientCommand extends $Command
|
|
9
7
|
.classBuilder()
|
|
10
8
|
.ep(commonParams)
|
|
11
9
|
.m(function (Command, cs, config, o) {
|
|
12
|
-
return [
|
|
13
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
14
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
15
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
16
11
|
})
|
|
17
12
|
.s("AWSSSOOIDCService", "RegisterClient", {})
|
|
18
13
|
.n("SSOOIDCClient", "RegisterClientCommand")
|
|
19
|
-
.
|
|
20
|
-
.ser(se_RegisterClientCommand)
|
|
21
|
-
.de(de_RegisterClientCommand)
|
|
14
|
+
.sc(RegisterClient)
|
|
22
15
|
.build() {
|
|
23
16
|
}
|
|
@@ -1,23 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
6
|
-
import { de_StartDeviceAuthorizationCommand, se_StartDeviceAuthorizationCommand } from "../protocols/Aws_restJson1";
|
|
4
|
+
import { StartDeviceAuthorization } from "../schemas/schemas_0";
|
|
7
5
|
export { $Command };
|
|
8
6
|
export class StartDeviceAuthorizationCommand extends $Command
|
|
9
7
|
.classBuilder()
|
|
10
8
|
.ep(commonParams)
|
|
11
9
|
.m(function (Command, cs, config, o) {
|
|
12
|
-
return [
|
|
13
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
14
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
15
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
16
11
|
})
|
|
17
12
|
.s("AWSSSOOIDCService", "StartDeviceAuthorization", {})
|
|
18
13
|
.n("SSOOIDCClient", "StartDeviceAuthorizationCommand")
|
|
19
|
-
.
|
|
20
|
-
.ser(se_StartDeviceAuthorizationCommand)
|
|
21
|
-
.de(de_StartDeviceAuthorizationCommand)
|
|
14
|
+
.sc(StartDeviceAuthorization)
|
|
22
15
|
.build() {
|
|
23
16
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { SENSITIVE_STRING } from "@smithy/smithy-client";
|
|
2
1
|
import { SSOOIDCServiceException as __BaseException } from "./SSOOIDCServiceException";
|
|
3
2
|
export const AccessDeniedExceptionReason = {
|
|
4
3
|
KMS_ACCESS_DENIED: "KMS_AccessDeniedException",
|
|
@@ -241,36 +240,3 @@ export class InvalidRedirectUriException extends __BaseException {
|
|
|
241
240
|
this.error_description = opts.error_description;
|
|
242
241
|
}
|
|
243
242
|
}
|
|
244
|
-
export const CreateTokenRequestFilterSensitiveLog = (obj) => ({
|
|
245
|
-
...obj,
|
|
246
|
-
...(obj.clientSecret && { clientSecret: SENSITIVE_STRING }),
|
|
247
|
-
...(obj.refreshToken && { refreshToken: SENSITIVE_STRING }),
|
|
248
|
-
...(obj.codeVerifier && { codeVerifier: SENSITIVE_STRING }),
|
|
249
|
-
});
|
|
250
|
-
export const CreateTokenResponseFilterSensitiveLog = (obj) => ({
|
|
251
|
-
...obj,
|
|
252
|
-
...(obj.accessToken && { accessToken: SENSITIVE_STRING }),
|
|
253
|
-
...(obj.refreshToken && { refreshToken: SENSITIVE_STRING }),
|
|
254
|
-
...(obj.idToken && { idToken: SENSITIVE_STRING }),
|
|
255
|
-
});
|
|
256
|
-
export const CreateTokenWithIAMRequestFilterSensitiveLog = (obj) => ({
|
|
257
|
-
...obj,
|
|
258
|
-
...(obj.refreshToken && { refreshToken: SENSITIVE_STRING }),
|
|
259
|
-
...(obj.assertion && { assertion: SENSITIVE_STRING }),
|
|
260
|
-
...(obj.subjectToken && { subjectToken: SENSITIVE_STRING }),
|
|
261
|
-
...(obj.codeVerifier && { codeVerifier: SENSITIVE_STRING }),
|
|
262
|
-
});
|
|
263
|
-
export const CreateTokenWithIAMResponseFilterSensitiveLog = (obj) => ({
|
|
264
|
-
...obj,
|
|
265
|
-
...(obj.accessToken && { accessToken: SENSITIVE_STRING }),
|
|
266
|
-
...(obj.refreshToken && { refreshToken: SENSITIVE_STRING }),
|
|
267
|
-
...(obj.idToken && { idToken: SENSITIVE_STRING }),
|
|
268
|
-
});
|
|
269
|
-
export const RegisterClientResponseFilterSensitiveLog = (obj) => ({
|
|
270
|
-
...obj,
|
|
271
|
-
...(obj.clientSecret && { clientSecret: SENSITIVE_STRING }),
|
|
272
|
-
});
|
|
273
|
-
export const StartDeviceAuthorizationRequestFilterSensitiveLog = (obj) => ({
|
|
274
|
-
...obj,
|
|
275
|
-
...(obj.clientSecret && { clientSecret: SENSITIVE_STRING }),
|
|
276
|
-
});
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AwsSdkSigV4Signer } from "@aws-sdk/core";
|
|
2
|
+
import { AwsRestJsonProtocol } from "@aws-sdk/core/protocols";
|
|
2
3
|
import { NoAuthSigner } from "@smithy/core";
|
|
3
4
|
import { NoOpLogger } from "@smithy/smithy-client";
|
|
4
5
|
import { parseUrl } from "@smithy/url-parser";
|
|
@@ -28,6 +29,7 @@ export const getRuntimeConfig = (config) => {
|
|
|
28
29
|
},
|
|
29
30
|
],
|
|
30
31
|
logger: config?.logger ?? new NoOpLogger(),
|
|
32
|
+
protocol: config?.protocol ?? new AwsRestJsonProtocol({ defaultNamespace: "com.amazonaws.ssooidc" }),
|
|
31
33
|
serviceId: config?.serviceId ?? "SSO OIDC",
|
|
32
34
|
urlParser: config?.urlParser ?? parseUrl,
|
|
33
35
|
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
@@ -0,0 +1,382 @@
|
|
|
1
|
+
const _A = "Assertion";
|
|
2
|
+
const _AAD = "AwsAdditionalDetails";
|
|
3
|
+
const _ADE = "AccessDeniedException";
|
|
4
|
+
const _APE = "AuthorizationPendingException";
|
|
5
|
+
const _AT = "AccessToken";
|
|
6
|
+
const _CS = "ClientSecret";
|
|
7
|
+
const _CT = "CreateToken";
|
|
8
|
+
const _CTR = "CreateTokenRequest";
|
|
9
|
+
const _CTRr = "CreateTokenResponse";
|
|
10
|
+
const _CTWIAM = "CreateTokenWithIAM";
|
|
11
|
+
const _CTWIAMR = "CreateTokenWithIAMRequest";
|
|
12
|
+
const _CTWIAMRr = "CreateTokenWithIAMResponse";
|
|
13
|
+
const _CV = "CodeVerifier";
|
|
14
|
+
const _ETE = "ExpiredTokenException";
|
|
15
|
+
const _ICE = "InvalidClientException";
|
|
16
|
+
const _ICME = "InvalidClientMetadataException";
|
|
17
|
+
const _IGE = "InvalidGrantException";
|
|
18
|
+
const _IRE = "InvalidRequestException";
|
|
19
|
+
const _IRRE = "InvalidRequestRegionException";
|
|
20
|
+
const _IRUE = "InvalidRedirectUriException";
|
|
21
|
+
const _ISE = "InternalServerException";
|
|
22
|
+
const _ISEn = "InvalidScopeException";
|
|
23
|
+
const _IT = "IdToken";
|
|
24
|
+
const _RC = "RegisterClient";
|
|
25
|
+
const _RCR = "RegisterClientRequest";
|
|
26
|
+
const _RCRe = "RegisterClientResponse";
|
|
27
|
+
const _RT = "RefreshToken";
|
|
28
|
+
const _SDA = "StartDeviceAuthorization";
|
|
29
|
+
const _SDAR = "StartDeviceAuthorizationRequest";
|
|
30
|
+
const _SDARt = "StartDeviceAuthorizationResponse";
|
|
31
|
+
const _SDE = "SlowDownException";
|
|
32
|
+
const _ST = "SubjectToken";
|
|
33
|
+
const _UCE = "UnauthorizedClientException";
|
|
34
|
+
const _UGTE = "UnsupportedGrantTypeException";
|
|
35
|
+
const _a = "assertion";
|
|
36
|
+
const _aAD = "awsAdditionalDetails";
|
|
37
|
+
const _aE = "authorizationEndpoint";
|
|
38
|
+
const _aT = "accessToken";
|
|
39
|
+
const _c = "client";
|
|
40
|
+
const _cI = "clientId";
|
|
41
|
+
const _cIIA = "clientIdIssuedAt";
|
|
42
|
+
const _cN = "clientName";
|
|
43
|
+
const _cS = "clientSecret";
|
|
44
|
+
const _cSEA = "clientSecretExpiresAt";
|
|
45
|
+
const _cT = "clientType";
|
|
46
|
+
const _cV = "codeVerifier";
|
|
47
|
+
const _co = "code";
|
|
48
|
+
const _dC = "deviceCode";
|
|
49
|
+
const _e = "error";
|
|
50
|
+
const _eAA = "entitledApplicationArn";
|
|
51
|
+
const _eI = "expiresIn";
|
|
52
|
+
const _ed = "error_description";
|
|
53
|
+
const _en = "endpoint";
|
|
54
|
+
const _gT = "grantType";
|
|
55
|
+
const _gTr = "grantTypes";
|
|
56
|
+
const _h = "http";
|
|
57
|
+
const _hE = "httpError";
|
|
58
|
+
const _i = "interval";
|
|
59
|
+
const _iC = "identityContext";
|
|
60
|
+
const _iT = "idToken";
|
|
61
|
+
const _iTT = "issuedTokenType";
|
|
62
|
+
const _iU = "issuerUrl";
|
|
63
|
+
const _r = "reason";
|
|
64
|
+
const _rT = "refreshToken";
|
|
65
|
+
const _rTT = "requestedTokenType";
|
|
66
|
+
const _rU = "redirectUri";
|
|
67
|
+
const _rUe = "redirectUris";
|
|
68
|
+
const _re = "region";
|
|
69
|
+
const _s = "scope";
|
|
70
|
+
const _sT = "subjectToken";
|
|
71
|
+
const _sTT = "subjectTokenType";
|
|
72
|
+
const _sU = "startUrl";
|
|
73
|
+
const _sc = "scopes";
|
|
74
|
+
const _se = "server";
|
|
75
|
+
const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.ssooidc";
|
|
76
|
+
const _tE = "tokenEndpoint";
|
|
77
|
+
const _tT = "tokenType";
|
|
78
|
+
const _uC = "userCode";
|
|
79
|
+
const _vU = "verificationUri";
|
|
80
|
+
const _vUC = "verificationUriComplete";
|
|
81
|
+
const n0 = "com.amazonaws.ssooidc";
|
|
82
|
+
import { TypeRegistry } from "@smithy/core/schema";
|
|
83
|
+
import { AccessDeniedException as __AccessDeniedException, AuthorizationPendingException as __AuthorizationPendingException, ExpiredTokenException as __ExpiredTokenException, InternalServerException as __InternalServerException, InvalidClientException as __InvalidClientException, InvalidClientMetadataException as __InvalidClientMetadataException, InvalidGrantException as __InvalidGrantException, InvalidRedirectUriException as __InvalidRedirectUriException, InvalidRequestException as __InvalidRequestException, InvalidRequestRegionException as __InvalidRequestRegionException, InvalidScopeException as __InvalidScopeException, SlowDownException as __SlowDownException, UnauthorizedClientException as __UnauthorizedClientException, UnsupportedGrantTypeException as __UnsupportedGrantTypeException, } from "../models/index";
|
|
84
|
+
import { SSOOIDCServiceException as __SSOOIDCServiceException } from "../models/SSOOIDCServiceException";
|
|
85
|
+
export var AccessToken = [0, n0, _AT, 8, 0];
|
|
86
|
+
export var Assertion = [0, n0, _A, 8, 0];
|
|
87
|
+
export var ClientSecret = [0, n0, _CS, 8, 0];
|
|
88
|
+
export var CodeVerifier = [0, n0, _CV, 8, 0];
|
|
89
|
+
export var IdToken = [0, n0, _IT, 8, 0];
|
|
90
|
+
export var RefreshToken = [0, n0, _RT, 8, 0];
|
|
91
|
+
export var SubjectToken = [0, n0, _ST, 8, 0];
|
|
92
|
+
export var AccessDeniedException = [
|
|
93
|
+
-3,
|
|
94
|
+
n0,
|
|
95
|
+
_ADE,
|
|
96
|
+
{
|
|
97
|
+
[_e]: _c,
|
|
98
|
+
[_hE]: 400,
|
|
99
|
+
},
|
|
100
|
+
[_e, _r, _ed],
|
|
101
|
+
[0, 0, 0],
|
|
102
|
+
];
|
|
103
|
+
TypeRegistry.for(n0).registerError(AccessDeniedException, __AccessDeniedException);
|
|
104
|
+
export var AuthorizationPendingException = [
|
|
105
|
+
-3,
|
|
106
|
+
n0,
|
|
107
|
+
_APE,
|
|
108
|
+
{
|
|
109
|
+
[_e]: _c,
|
|
110
|
+
[_hE]: 400,
|
|
111
|
+
},
|
|
112
|
+
[_e, _ed],
|
|
113
|
+
[0, 0],
|
|
114
|
+
];
|
|
115
|
+
TypeRegistry.for(n0).registerError(AuthorizationPendingException, __AuthorizationPendingException);
|
|
116
|
+
export var AwsAdditionalDetails = [3, n0, _AAD, 0, [_iC], [0]];
|
|
117
|
+
export var CreateTokenRequest = [
|
|
118
|
+
3,
|
|
119
|
+
n0,
|
|
120
|
+
_CTR,
|
|
121
|
+
0,
|
|
122
|
+
[_cI, _cS, _gT, _dC, _co, _rT, _s, _rU, _cV],
|
|
123
|
+
[0, [() => ClientSecret, 0], 0, 0, 0, [() => RefreshToken, 0], 64 | 0, 0, [() => CodeVerifier, 0]],
|
|
124
|
+
];
|
|
125
|
+
export var CreateTokenResponse = [
|
|
126
|
+
3,
|
|
127
|
+
n0,
|
|
128
|
+
_CTRr,
|
|
129
|
+
0,
|
|
130
|
+
[_aT, _tT, _eI, _rT, _iT],
|
|
131
|
+
[[() => AccessToken, 0], 0, 1, [() => RefreshToken, 0], [() => IdToken, 0]],
|
|
132
|
+
];
|
|
133
|
+
export var CreateTokenWithIAMRequest = [
|
|
134
|
+
3,
|
|
135
|
+
n0,
|
|
136
|
+
_CTWIAMR,
|
|
137
|
+
0,
|
|
138
|
+
[_cI, _gT, _co, _rT, _a, _s, _rU, _sT, _sTT, _rTT, _cV],
|
|
139
|
+
[
|
|
140
|
+
0,
|
|
141
|
+
0,
|
|
142
|
+
0,
|
|
143
|
+
[() => RefreshToken, 0],
|
|
144
|
+
[() => Assertion, 0],
|
|
145
|
+
64 | 0,
|
|
146
|
+
0,
|
|
147
|
+
[() => SubjectToken, 0],
|
|
148
|
+
0,
|
|
149
|
+
0,
|
|
150
|
+
[() => CodeVerifier, 0],
|
|
151
|
+
],
|
|
152
|
+
];
|
|
153
|
+
export var CreateTokenWithIAMResponse = [
|
|
154
|
+
3,
|
|
155
|
+
n0,
|
|
156
|
+
_CTWIAMRr,
|
|
157
|
+
0,
|
|
158
|
+
[_aT, _tT, _eI, _rT, _iT, _iTT, _s, _aAD],
|
|
159
|
+
[[() => AccessToken, 0], 0, 1, [() => RefreshToken, 0], [() => IdToken, 0], 0, 64 | 0, () => AwsAdditionalDetails],
|
|
160
|
+
];
|
|
161
|
+
export var ExpiredTokenException = [
|
|
162
|
+
-3,
|
|
163
|
+
n0,
|
|
164
|
+
_ETE,
|
|
165
|
+
{
|
|
166
|
+
[_e]: _c,
|
|
167
|
+
[_hE]: 400,
|
|
168
|
+
},
|
|
169
|
+
[_e, _ed],
|
|
170
|
+
[0, 0],
|
|
171
|
+
];
|
|
172
|
+
TypeRegistry.for(n0).registerError(ExpiredTokenException, __ExpiredTokenException);
|
|
173
|
+
export var InternalServerException = [
|
|
174
|
+
-3,
|
|
175
|
+
n0,
|
|
176
|
+
_ISE,
|
|
177
|
+
{
|
|
178
|
+
[_e]: _se,
|
|
179
|
+
[_hE]: 500,
|
|
180
|
+
},
|
|
181
|
+
[_e, _ed],
|
|
182
|
+
[0, 0],
|
|
183
|
+
];
|
|
184
|
+
TypeRegistry.for(n0).registerError(InternalServerException, __InternalServerException);
|
|
185
|
+
export var InvalidClientException = [
|
|
186
|
+
-3,
|
|
187
|
+
n0,
|
|
188
|
+
_ICE,
|
|
189
|
+
{
|
|
190
|
+
[_e]: _c,
|
|
191
|
+
[_hE]: 401,
|
|
192
|
+
},
|
|
193
|
+
[_e, _ed],
|
|
194
|
+
[0, 0],
|
|
195
|
+
];
|
|
196
|
+
TypeRegistry.for(n0).registerError(InvalidClientException, __InvalidClientException);
|
|
197
|
+
export var InvalidClientMetadataException = [
|
|
198
|
+
-3,
|
|
199
|
+
n0,
|
|
200
|
+
_ICME,
|
|
201
|
+
{
|
|
202
|
+
[_e]: _c,
|
|
203
|
+
[_hE]: 400,
|
|
204
|
+
},
|
|
205
|
+
[_e, _ed],
|
|
206
|
+
[0, 0],
|
|
207
|
+
];
|
|
208
|
+
TypeRegistry.for(n0).registerError(InvalidClientMetadataException, __InvalidClientMetadataException);
|
|
209
|
+
export var InvalidGrantException = [
|
|
210
|
+
-3,
|
|
211
|
+
n0,
|
|
212
|
+
_IGE,
|
|
213
|
+
{
|
|
214
|
+
[_e]: _c,
|
|
215
|
+
[_hE]: 400,
|
|
216
|
+
},
|
|
217
|
+
[_e, _ed],
|
|
218
|
+
[0, 0],
|
|
219
|
+
];
|
|
220
|
+
TypeRegistry.for(n0).registerError(InvalidGrantException, __InvalidGrantException);
|
|
221
|
+
export var InvalidRedirectUriException = [
|
|
222
|
+
-3,
|
|
223
|
+
n0,
|
|
224
|
+
_IRUE,
|
|
225
|
+
{
|
|
226
|
+
[_e]: _c,
|
|
227
|
+
[_hE]: 400,
|
|
228
|
+
},
|
|
229
|
+
[_e, _ed],
|
|
230
|
+
[0, 0],
|
|
231
|
+
];
|
|
232
|
+
TypeRegistry.for(n0).registerError(InvalidRedirectUriException, __InvalidRedirectUriException);
|
|
233
|
+
export var InvalidRequestException = [
|
|
234
|
+
-3,
|
|
235
|
+
n0,
|
|
236
|
+
_IRE,
|
|
237
|
+
{
|
|
238
|
+
[_e]: _c,
|
|
239
|
+
[_hE]: 400,
|
|
240
|
+
},
|
|
241
|
+
[_e, _r, _ed],
|
|
242
|
+
[0, 0, 0],
|
|
243
|
+
];
|
|
244
|
+
TypeRegistry.for(n0).registerError(InvalidRequestException, __InvalidRequestException);
|
|
245
|
+
export var InvalidRequestRegionException = [
|
|
246
|
+
-3,
|
|
247
|
+
n0,
|
|
248
|
+
_IRRE,
|
|
249
|
+
{
|
|
250
|
+
[_e]: _c,
|
|
251
|
+
[_hE]: 400,
|
|
252
|
+
},
|
|
253
|
+
[_e, _ed, _en, _re],
|
|
254
|
+
[0, 0, 0, 0],
|
|
255
|
+
];
|
|
256
|
+
TypeRegistry.for(n0).registerError(InvalidRequestRegionException, __InvalidRequestRegionException);
|
|
257
|
+
export var InvalidScopeException = [
|
|
258
|
+
-3,
|
|
259
|
+
n0,
|
|
260
|
+
_ISEn,
|
|
261
|
+
{
|
|
262
|
+
[_e]: _c,
|
|
263
|
+
[_hE]: 400,
|
|
264
|
+
},
|
|
265
|
+
[_e, _ed],
|
|
266
|
+
[0, 0],
|
|
267
|
+
];
|
|
268
|
+
TypeRegistry.for(n0).registerError(InvalidScopeException, __InvalidScopeException);
|
|
269
|
+
export var RegisterClientRequest = [
|
|
270
|
+
3,
|
|
271
|
+
n0,
|
|
272
|
+
_RCR,
|
|
273
|
+
0,
|
|
274
|
+
[_cN, _cT, _sc, _rUe, _gTr, _iU, _eAA],
|
|
275
|
+
[0, 0, 64 | 0, 64 | 0, 64 | 0, 0, 0],
|
|
276
|
+
];
|
|
277
|
+
export var RegisterClientResponse = [
|
|
278
|
+
3,
|
|
279
|
+
n0,
|
|
280
|
+
_RCRe,
|
|
281
|
+
0,
|
|
282
|
+
[_cI, _cS, _cIIA, _cSEA, _aE, _tE],
|
|
283
|
+
[0, [() => ClientSecret, 0], 1, 1, 0, 0],
|
|
284
|
+
];
|
|
285
|
+
export var SlowDownException = [
|
|
286
|
+
-3,
|
|
287
|
+
n0,
|
|
288
|
+
_SDE,
|
|
289
|
+
{
|
|
290
|
+
[_e]: _c,
|
|
291
|
+
[_hE]: 400,
|
|
292
|
+
},
|
|
293
|
+
[_e, _ed],
|
|
294
|
+
[0, 0],
|
|
295
|
+
];
|
|
296
|
+
TypeRegistry.for(n0).registerError(SlowDownException, __SlowDownException);
|
|
297
|
+
export var StartDeviceAuthorizationRequest = [
|
|
298
|
+
3,
|
|
299
|
+
n0,
|
|
300
|
+
_SDAR,
|
|
301
|
+
0,
|
|
302
|
+
[_cI, _cS, _sU],
|
|
303
|
+
[0, [() => ClientSecret, 0], 0],
|
|
304
|
+
];
|
|
305
|
+
export var StartDeviceAuthorizationResponse = [
|
|
306
|
+
3,
|
|
307
|
+
n0,
|
|
308
|
+
_SDARt,
|
|
309
|
+
0,
|
|
310
|
+
[_dC, _uC, _vU, _vUC, _eI, _i],
|
|
311
|
+
[0, 0, 0, 0, 1, 1],
|
|
312
|
+
];
|
|
313
|
+
export var UnauthorizedClientException = [
|
|
314
|
+
-3,
|
|
315
|
+
n0,
|
|
316
|
+
_UCE,
|
|
317
|
+
{
|
|
318
|
+
[_e]: _c,
|
|
319
|
+
[_hE]: 400,
|
|
320
|
+
},
|
|
321
|
+
[_e, _ed],
|
|
322
|
+
[0, 0],
|
|
323
|
+
];
|
|
324
|
+
TypeRegistry.for(n0).registerError(UnauthorizedClientException, __UnauthorizedClientException);
|
|
325
|
+
export var UnsupportedGrantTypeException = [
|
|
326
|
+
-3,
|
|
327
|
+
n0,
|
|
328
|
+
_UGTE,
|
|
329
|
+
{
|
|
330
|
+
[_e]: _c,
|
|
331
|
+
[_hE]: 400,
|
|
332
|
+
},
|
|
333
|
+
[_e, _ed],
|
|
334
|
+
[0, 0],
|
|
335
|
+
];
|
|
336
|
+
TypeRegistry.for(n0).registerError(UnsupportedGrantTypeException, __UnsupportedGrantTypeException);
|
|
337
|
+
export var __Unit = "unit";
|
|
338
|
+
export var SSOOIDCServiceException = [-3, _sm, "SSOOIDCServiceException", 0, [], []];
|
|
339
|
+
TypeRegistry.for(_sm).registerError(SSOOIDCServiceException, __SSOOIDCServiceException);
|
|
340
|
+
export var GrantTypes = 64 | 0;
|
|
341
|
+
export var RedirectUris = 64 | 0;
|
|
342
|
+
export var Scopes = 64 | 0;
|
|
343
|
+
export var CreateToken = [
|
|
344
|
+
9,
|
|
345
|
+
n0,
|
|
346
|
+
_CT,
|
|
347
|
+
{
|
|
348
|
+
[_h]: ["POST", "/token", 200],
|
|
349
|
+
},
|
|
350
|
+
() => CreateTokenRequest,
|
|
351
|
+
() => CreateTokenResponse,
|
|
352
|
+
];
|
|
353
|
+
export var CreateTokenWithIAM = [
|
|
354
|
+
9,
|
|
355
|
+
n0,
|
|
356
|
+
_CTWIAM,
|
|
357
|
+
{
|
|
358
|
+
[_h]: ["POST", "/token?aws_iam=t", 200],
|
|
359
|
+
},
|
|
360
|
+
() => CreateTokenWithIAMRequest,
|
|
361
|
+
() => CreateTokenWithIAMResponse,
|
|
362
|
+
];
|
|
363
|
+
export var RegisterClient = [
|
|
364
|
+
9,
|
|
365
|
+
n0,
|
|
366
|
+
_RC,
|
|
367
|
+
{
|
|
368
|
+
[_h]: ["POST", "/client/register", 200],
|
|
369
|
+
},
|
|
370
|
+
() => RegisterClientRequest,
|
|
371
|
+
() => RegisterClientResponse,
|
|
372
|
+
];
|
|
373
|
+
export var StartDeviceAuthorization = [
|
|
374
|
+
9,
|
|
375
|
+
n0,
|
|
376
|
+
_SDA,
|
|
377
|
+
{
|
|
378
|
+
[_h]: ["POST", "/device_authorization", 200],
|
|
379
|
+
},
|
|
380
|
+
() => StartDeviceAuthorizationRequest,
|
|
381
|
+
() => StartDeviceAuthorizationResponse,
|
|
382
|
+
];
|
|
@@ -5,7 +5,7 @@ import { EndpointInputConfig, EndpointResolvedConfig } from "@smithy/middleware-
|
|
|
5
5
|
import { RetryInputConfig, RetryResolvedConfig } from "@smithy/middleware-retry";
|
|
6
6
|
import { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol-http";
|
|
7
7
|
import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@smithy/smithy-client";
|
|
8
|
-
import { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
|
|
8
|
+
import { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, ClientProtocol, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, HttpRequest, HttpResponse, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
|
|
9
9
|
import { HttpAuthSchemeInputConfig, HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
|
|
10
10
|
import { CreateTokenCommandInput, CreateTokenCommandOutput } from "./commands/CreateTokenCommand";
|
|
11
11
|
import { CreateTokenWithIAMCommandInput, CreateTokenWithIAMCommandOutput } from "./commands/CreateTokenWithIAMCommand";
|
|
@@ -145,6 +145,15 @@ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHand
|
|
|
145
145
|
* Optional extensions
|
|
146
146
|
*/
|
|
147
147
|
extensions?: RuntimeExtension[];
|
|
148
|
+
/**
|
|
149
|
+
* The protocol controlling the message type (e.g. HTTP) and format (e.g. JSON)
|
|
150
|
+
* may be overridden. A default will always be set by the client.
|
|
151
|
+
* Available options depend on the service's supported protocols and will not be validated by
|
|
152
|
+
* the client.
|
|
153
|
+
* @alpha
|
|
154
|
+
*
|
|
155
|
+
*/
|
|
156
|
+
protocol?: ClientProtocol<HttpRequest, HttpResponse>;
|
|
148
157
|
/**
|
|
149
158
|
* The {@link @smithy/smithy-client#DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
|
|
150
159
|
*/
|
|
@@ -822,27 +822,3 @@ export interface StartDeviceAuthorizationResponse {
|
|
|
822
822
|
*/
|
|
823
823
|
interval?: number | undefined;
|
|
824
824
|
}
|
|
825
|
-
/**
|
|
826
|
-
* @internal
|
|
827
|
-
*/
|
|
828
|
-
export declare const CreateTokenRequestFilterSensitiveLog: (obj: CreateTokenRequest) => any;
|
|
829
|
-
/**
|
|
830
|
-
* @internal
|
|
831
|
-
*/
|
|
832
|
-
export declare const CreateTokenResponseFilterSensitiveLog: (obj: CreateTokenResponse) => any;
|
|
833
|
-
/**
|
|
834
|
-
* @internal
|
|
835
|
-
*/
|
|
836
|
-
export declare const CreateTokenWithIAMRequestFilterSensitiveLog: (obj: CreateTokenWithIAMRequest) => any;
|
|
837
|
-
/**
|
|
838
|
-
* @internal
|
|
839
|
-
*/
|
|
840
|
-
export declare const CreateTokenWithIAMResponseFilterSensitiveLog: (obj: CreateTokenWithIAMResponse) => any;
|
|
841
|
-
/**
|
|
842
|
-
* @internal
|
|
843
|
-
*/
|
|
844
|
-
export declare const RegisterClientResponseFilterSensitiveLog: (obj: RegisterClientResponse) => any;
|
|
845
|
-
/**
|
|
846
|
-
* @internal
|
|
847
|
-
*/
|
|
848
|
-
export declare const StartDeviceAuthorizationRequestFilterSensitiveLog: (obj: StartDeviceAuthorizationRequest) => any;
|
|
@@ -29,6 +29,7 @@ export declare const getRuntimeConfig: (config: SSOOIDCClientConfig) => {
|
|
|
29
29
|
profile?: string;
|
|
30
30
|
logger: import("@smithy/types").Logger;
|
|
31
31
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
32
|
+
protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
|
|
32
33
|
customUserAgent?: string | import("@smithy/types").UserAgent;
|
|
33
34
|
userAgentAppId?: string | undefined | import("@smithy/types").Provider<string | undefined>;
|
|
34
35
|
retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
|
|
@@ -31,6 +31,7 @@ export declare const getRuntimeConfig: (config: SSOOIDCClientConfig) => {
|
|
|
31
31
|
profile?: string;
|
|
32
32
|
logger: import("@smithy/types").Logger;
|
|
33
33
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
34
|
+
protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
|
|
34
35
|
customUserAgent?: string | import("@smithy/types").UserAgent;
|
|
35
36
|
retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
|
|
36
37
|
endpoint?: ((string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>) & (string | import("@smithy/types").Provider<string> | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>)) | undefined;
|
|
@@ -27,6 +27,7 @@ export declare const getRuntimeConfig: (config: SSOOIDCClientConfig) => {
|
|
|
27
27
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
28
28
|
logger: import("@smithy/types").Logger;
|
|
29
29
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
30
|
+
protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
|
|
30
31
|
defaultsMode: import("@smithy/smithy-client").DefaultsMode | import("@smithy/types").Provider<import("@smithy/smithy-client").DefaultsMode>;
|
|
31
32
|
customUserAgent?: string | import("@smithy/types").UserAgent;
|
|
32
33
|
userAgentAppId?: string | undefined | import("@smithy/types").Provider<string | undefined>;
|
|
@@ -25,6 +25,7 @@ export declare const getRuntimeConfig: (config: SSOOIDCClientConfig) => {
|
|
|
25
25
|
signer: NoAuthSigner;
|
|
26
26
|
})[];
|
|
27
27
|
logger: import("@smithy/types").Logger;
|
|
28
|
+
protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
|
|
28
29
|
serviceId: string;
|
|
29
30
|
urlParser: import("@smithy/types").UrlParser;
|
|
30
31
|
utf8Decoder: import("@smithy/types").Decoder;
|