@aws-sdk/nested-clients 3.934.0 → 3.936.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/submodules/signin/auth/httpAuthSchemeProvider.js +56 -0
- package/dist-cjs/submodules/signin/endpoint/endpointResolver.js +18 -0
- package/dist-cjs/submodules/signin/endpoint/ruleset.js +7 -0
- package/dist-cjs/submodules/signin/index.js +439 -0
- package/dist-cjs/submodules/signin/runtimeConfig.browser.js +39 -0
- package/dist-cjs/submodules/signin/runtimeConfig.js +54 -0
- package/dist-cjs/submodules/signin/runtimeConfig.native.js +15 -0
- package/dist-cjs/submodules/signin/runtimeConfig.shared.js +42 -0
- package/dist-cjs/submodules/sso-oidc/index.js +10 -9
- package/dist-es/submodules/signin/Signin.js +9 -0
- package/dist-es/submodules/signin/SigninClient.js +50 -0
- package/dist-es/submodules/signin/auth/httpAuthExtensionConfiguration.js +38 -0
- package/dist-es/submodules/signin/auth/httpAuthSchemeProvider.js +50 -0
- package/dist-es/submodules/signin/commands/CreateOAuth2TokenCommand.js +16 -0
- package/dist-es/submodules/signin/commands/index.js +1 -0
- package/dist-es/submodules/signin/endpoint/EndpointParameters.js +13 -0
- package/dist-es/submodules/signin/endpoint/endpointResolver.js +14 -0
- package/dist-es/submodules/signin/endpoint/ruleset.js +4 -0
- package/dist-es/submodules/signin/extensionConfiguration.js +1 -0
- package/dist-es/submodules/signin/index.js +6 -0
- package/dist-es/submodules/signin/models/SigninServiceException.js +8 -0
- package/dist-es/submodules/signin/models/enums.js +8 -0
- package/dist-es/submodules/signin/models/errors.js +57 -0
- package/dist-es/submodules/signin/models/models_0.js +1 -0
- package/dist-es/submodules/signin/runtimeConfig.browser.js +34 -0
- package/dist-es/submodules/signin/runtimeConfig.js +49 -0
- package/dist-es/submodules/signin/runtimeConfig.native.js +11 -0
- package/dist-es/submodules/signin/runtimeConfig.shared.js +38 -0
- package/dist-es/submodules/signin/runtimeExtensions.js +9 -0
- package/dist-es/submodules/signin/schemas/schemas_0.js +221 -0
- package/dist-es/submodules/sso-oidc/index.js +2 -1
- package/dist-es/submodules/sso-oidc/models/enums.js +9 -0
- package/dist-es/submodules/sso-oidc/models/errors.js +181 -0
- package/dist-es/submodules/sso-oidc/models/models_0.js +1 -190
- package/dist-es/submodules/sso-oidc/schemas/schemas_0.js +1 -1
- package/dist-es/submodules/sts/index.js +1 -1
- package/dist-es/submodules/sts/models/errors.js +85 -0
- package/dist-es/submodules/sts/models/models_0.js +1 -85
- package/dist-es/submodules/sts/schemas/schemas_0.js +1 -1
- package/dist-types/submodules/signin/Signin.d.ts +18 -0
- package/dist-types/submodules/signin/SigninClient.d.ts +198 -0
- package/dist-types/submodules/signin/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/dist-types/submodules/signin/auth/httpAuthSchemeProvider.d.ts +75 -0
- package/dist-types/submodules/signin/commands/CreateOAuth2TokenCommand.d.ts +157 -0
- package/dist-types/submodules/signin/commands/index.d.ts +1 -0
- package/dist-types/submodules/signin/endpoint/EndpointParameters.d.ts +38 -0
- package/dist-types/submodules/signin/endpoint/endpointResolver.d.ts +5 -0
- package/dist-types/submodules/signin/endpoint/ruleset.d.ts +2 -0
- package/dist-types/submodules/signin/extensionConfiguration.d.ts +9 -0
- package/dist-types/submodules/signin/index.d.ts +16 -0
- package/dist-types/submodules/signin/models/SigninServiceException.d.ts +14 -0
- package/dist-types/submodules/signin/models/enums.d.ts +34 -0
- package/dist-types/submodules/signin/models/errors.d.ts +102 -0
- package/dist-types/submodules/signin/models/models_0.d.ts +142 -0
- package/dist-types/submodules/signin/runtimeConfig.browser.d.ts +59 -0
- package/dist-types/submodules/signin/runtimeConfig.d.ts +59 -0
- package/dist-types/submodules/signin/runtimeConfig.native.d.ts +58 -0
- package/dist-types/submodules/signin/runtimeConfig.shared.d.ts +33 -0
- package/dist-types/submodules/signin/runtimeExtensions.d.ts +17 -0
- package/dist-types/submodules/signin/schemas/schemas_0.d.ts +14 -0
- package/dist-types/submodules/sso-oidc/index.d.ts +3 -1
- package/dist-types/submodules/sso-oidc/models/enums.d.ts +25 -0
- package/dist-types/submodules/sso-oidc/models/errors.d.ts +279 -0
- package/dist-types/submodules/sso-oidc/models/models_0.d.ts +0 -303
- package/dist-types/submodules/sts/index.d.ts +2 -1
- package/dist-types/submodules/sts/models/errors.d.ts +108 -0
- package/dist-types/submodules/sts/models/models_0.d.ts +0 -108
- package/dist-types/ts3.4/submodules/signin/Signin.d.ts +22 -0
- package/dist-types/ts3.4/submodules/signin/SigninClient.d.ts +127 -0
- package/dist-types/ts3.4/submodules/signin/auth/httpAuthExtensionConfiguration.d.ts +32 -0
- package/dist-types/ts3.4/submodules/signin/auth/httpAuthSchemeProvider.d.ts +47 -0
- package/dist-types/ts3.4/submodules/signin/commands/CreateOAuth2TokenCommand.d.ts +47 -0
- package/dist-types/ts3.4/submodules/signin/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/submodules/signin/endpoint/EndpointParameters.d.ts +51 -0
- package/dist-types/ts3.4/submodules/signin/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/submodules/signin/endpoint/ruleset.d.ts +2 -0
- package/dist-types/ts3.4/submodules/signin/extensionConfiguration.d.ts +9 -0
- package/dist-types/ts3.4/submodules/signin/index.d.ts +10 -0
- package/dist-types/ts3.4/submodules/signin/models/SigninServiceException.d.ts +9 -0
- package/dist-types/ts3.4/submodules/signin/models/enums.d.ts +10 -0
- package/dist-types/ts3.4/submodules/signin/models/errors.d.ts +35 -0
- package/dist-types/ts3.4/submodules/signin/models/models_0.d.ts +26 -0
- package/dist-types/ts3.4/submodules/signin/runtimeConfig.browser.d.ts +121 -0
- package/dist-types/ts3.4/submodules/signin/runtimeConfig.d.ts +114 -0
- package/dist-types/ts3.4/submodules/signin/runtimeConfig.native.d.ts +125 -0
- package/dist-types/ts3.4/submodules/signin/runtimeConfig.shared.d.ts +53 -0
- package/dist-types/ts3.4/submodules/signin/runtimeExtensions.d.ts +11 -0
- package/dist-types/ts3.4/submodules/signin/schemas/schemas_0.d.ts +19 -0
- package/dist-types/ts3.4/submodules/sso-oidc/index.d.ts +3 -1
- package/dist-types/ts3.4/submodules/sso-oidc/models/enums.d.ts +13 -0
- package/dist-types/ts3.4/submodules/sso-oidc/models/errors.d.ts +105 -0
- package/dist-types/ts3.4/submodules/sso-oidc/models/models_0.d.ts +0 -114
- package/dist-types/ts3.4/submodules/sts/index.d.ts +2 -1
- package/dist-types/ts3.4/submodules/sts/models/errors.d.ts +54 -0
- package/dist-types/ts3.4/submodules/sts/models/models_0.d.ts +0 -54
- package/package.json +29 -18
- package/signin.d.ts +7 -0
- package/signin.js +5 -0
- package/dist-es/submodules/sso-oidc/models/index.js +0 -1
- package/dist-es/submodules/sts/models/index.js +0 -1
- package/dist-types/submodules/sso-oidc/models/index.d.ts +0 -1
- package/dist-types/submodules/sts/models/index.d.ts +0 -1
- package/dist-types/ts3.4/submodules/sso-oidc/models/index.d.ts +0 -1
- package/dist-types/ts3.4/submodules/sts/models/index.d.ts +0 -1
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
const _ADE = "AccessDeniedException";
|
|
2
|
+
const _AT = "AccessToken";
|
|
3
|
+
const _COAT = "CreateOAuth2Token";
|
|
4
|
+
const _COATR = "CreateOAuth2TokenRequest";
|
|
5
|
+
const _COATRB = "CreateOAuth2TokenRequestBody";
|
|
6
|
+
const _COATRBr = "CreateOAuth2TokenResponseBody";
|
|
7
|
+
const _COATRr = "CreateOAuth2TokenResponse";
|
|
8
|
+
const _ISE = "InternalServerException";
|
|
9
|
+
const _RT = "RefreshToken";
|
|
10
|
+
const _TMRE = "TooManyRequestsError";
|
|
11
|
+
const _VE = "ValidationException";
|
|
12
|
+
const _aKI = "accessKeyId";
|
|
13
|
+
const _aT = "accessToken";
|
|
14
|
+
const _c = "client";
|
|
15
|
+
const _cI = "clientId";
|
|
16
|
+
const _cV = "codeVerifier";
|
|
17
|
+
const _co = "code";
|
|
18
|
+
const _e = "error";
|
|
19
|
+
const _eI = "expiresIn";
|
|
20
|
+
const _gT = "grantType";
|
|
21
|
+
const _h = "http";
|
|
22
|
+
const _hE = "httpError";
|
|
23
|
+
const _iT = "idToken";
|
|
24
|
+
const _jN = "jsonName";
|
|
25
|
+
const _m = "message";
|
|
26
|
+
const _rT = "refreshToken";
|
|
27
|
+
const _rU = "redirectUri";
|
|
28
|
+
const _s = "server";
|
|
29
|
+
const _sAK = "secretAccessKey";
|
|
30
|
+
const _sT = "sessionToken";
|
|
31
|
+
const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.signin";
|
|
32
|
+
const _tI = "tokenInput";
|
|
33
|
+
const _tO = "tokenOutput";
|
|
34
|
+
const _tT = "tokenType";
|
|
35
|
+
const n0 = "com.amazonaws.signin";
|
|
36
|
+
import { TypeRegistry } from "@smithy/core/schema";
|
|
37
|
+
import { AccessDeniedException as __AccessDeniedException, InternalServerException as __InternalServerException, TooManyRequestsError as __TooManyRequestsError, ValidationException as __ValidationException, } from "../models/errors";
|
|
38
|
+
import { SigninServiceException as __SigninServiceException } from "../models/SigninServiceException";
|
|
39
|
+
export var RefreshToken = [0, n0, _RT, 8, 0];
|
|
40
|
+
export var AccessDeniedException = [
|
|
41
|
+
-3,
|
|
42
|
+
n0,
|
|
43
|
+
_ADE,
|
|
44
|
+
{
|
|
45
|
+
[_e]: _c,
|
|
46
|
+
},
|
|
47
|
+
[_e, _m],
|
|
48
|
+
[0, 0],
|
|
49
|
+
];
|
|
50
|
+
TypeRegistry.for(n0).registerError(AccessDeniedException, __AccessDeniedException);
|
|
51
|
+
export var AccessToken = [
|
|
52
|
+
3,
|
|
53
|
+
n0,
|
|
54
|
+
_AT,
|
|
55
|
+
8,
|
|
56
|
+
[_aKI, _sAK, _sT],
|
|
57
|
+
[
|
|
58
|
+
[
|
|
59
|
+
0,
|
|
60
|
+
{
|
|
61
|
+
[_jN]: _aKI,
|
|
62
|
+
},
|
|
63
|
+
],
|
|
64
|
+
[
|
|
65
|
+
0,
|
|
66
|
+
{
|
|
67
|
+
[_jN]: _sAK,
|
|
68
|
+
},
|
|
69
|
+
],
|
|
70
|
+
[
|
|
71
|
+
0,
|
|
72
|
+
{
|
|
73
|
+
[_jN]: _sT,
|
|
74
|
+
},
|
|
75
|
+
],
|
|
76
|
+
],
|
|
77
|
+
];
|
|
78
|
+
export var CreateOAuth2TokenRequest = [
|
|
79
|
+
3,
|
|
80
|
+
n0,
|
|
81
|
+
_COATR,
|
|
82
|
+
0,
|
|
83
|
+
[_tI],
|
|
84
|
+
[[() => CreateOAuth2TokenRequestBody, 16]],
|
|
85
|
+
];
|
|
86
|
+
export var CreateOAuth2TokenRequestBody = [
|
|
87
|
+
3,
|
|
88
|
+
n0,
|
|
89
|
+
_COATRB,
|
|
90
|
+
0,
|
|
91
|
+
[_cI, _gT, _co, _rU, _cV, _rT],
|
|
92
|
+
[
|
|
93
|
+
[
|
|
94
|
+
0,
|
|
95
|
+
{
|
|
96
|
+
[_jN]: _cI,
|
|
97
|
+
},
|
|
98
|
+
],
|
|
99
|
+
[
|
|
100
|
+
0,
|
|
101
|
+
{
|
|
102
|
+
[_jN]: _gT,
|
|
103
|
+
},
|
|
104
|
+
],
|
|
105
|
+
0,
|
|
106
|
+
[
|
|
107
|
+
0,
|
|
108
|
+
{
|
|
109
|
+
[_jN]: _rU,
|
|
110
|
+
},
|
|
111
|
+
],
|
|
112
|
+
[
|
|
113
|
+
0,
|
|
114
|
+
{
|
|
115
|
+
[_jN]: _cV,
|
|
116
|
+
},
|
|
117
|
+
],
|
|
118
|
+
[
|
|
119
|
+
() => RefreshToken,
|
|
120
|
+
{
|
|
121
|
+
[_jN]: _rT,
|
|
122
|
+
},
|
|
123
|
+
],
|
|
124
|
+
],
|
|
125
|
+
];
|
|
126
|
+
export var CreateOAuth2TokenResponse = [
|
|
127
|
+
3,
|
|
128
|
+
n0,
|
|
129
|
+
_COATRr,
|
|
130
|
+
0,
|
|
131
|
+
[_tO],
|
|
132
|
+
[[() => CreateOAuth2TokenResponseBody, 16]],
|
|
133
|
+
];
|
|
134
|
+
export var CreateOAuth2TokenResponseBody = [
|
|
135
|
+
3,
|
|
136
|
+
n0,
|
|
137
|
+
_COATRBr,
|
|
138
|
+
0,
|
|
139
|
+
[_aT, _tT, _eI, _rT, _iT],
|
|
140
|
+
[
|
|
141
|
+
[
|
|
142
|
+
() => AccessToken,
|
|
143
|
+
{
|
|
144
|
+
[_jN]: _aT,
|
|
145
|
+
},
|
|
146
|
+
],
|
|
147
|
+
[
|
|
148
|
+
0,
|
|
149
|
+
{
|
|
150
|
+
[_jN]: _tT,
|
|
151
|
+
},
|
|
152
|
+
],
|
|
153
|
+
[
|
|
154
|
+
1,
|
|
155
|
+
{
|
|
156
|
+
[_jN]: _eI,
|
|
157
|
+
},
|
|
158
|
+
],
|
|
159
|
+
[
|
|
160
|
+
() => RefreshToken,
|
|
161
|
+
{
|
|
162
|
+
[_jN]: _rT,
|
|
163
|
+
},
|
|
164
|
+
],
|
|
165
|
+
[
|
|
166
|
+
0,
|
|
167
|
+
{
|
|
168
|
+
[_jN]: _iT,
|
|
169
|
+
},
|
|
170
|
+
],
|
|
171
|
+
],
|
|
172
|
+
];
|
|
173
|
+
export var InternalServerException = [
|
|
174
|
+
-3,
|
|
175
|
+
n0,
|
|
176
|
+
_ISE,
|
|
177
|
+
{
|
|
178
|
+
[_e]: _s,
|
|
179
|
+
[_hE]: 500,
|
|
180
|
+
},
|
|
181
|
+
[_e, _m],
|
|
182
|
+
[0, 0],
|
|
183
|
+
];
|
|
184
|
+
TypeRegistry.for(n0).registerError(InternalServerException, __InternalServerException);
|
|
185
|
+
export var TooManyRequestsError = [
|
|
186
|
+
-3,
|
|
187
|
+
n0,
|
|
188
|
+
_TMRE,
|
|
189
|
+
{
|
|
190
|
+
[_e]: _c,
|
|
191
|
+
[_hE]: 429,
|
|
192
|
+
},
|
|
193
|
+
[_e, _m],
|
|
194
|
+
[0, 0],
|
|
195
|
+
];
|
|
196
|
+
TypeRegistry.for(n0).registerError(TooManyRequestsError, __TooManyRequestsError);
|
|
197
|
+
export var ValidationException = [
|
|
198
|
+
-3,
|
|
199
|
+
n0,
|
|
200
|
+
_VE,
|
|
201
|
+
{
|
|
202
|
+
[_e]: _c,
|
|
203
|
+
[_hE]: 400,
|
|
204
|
+
},
|
|
205
|
+
[_e, _m],
|
|
206
|
+
[0, 0],
|
|
207
|
+
];
|
|
208
|
+
TypeRegistry.for(n0).registerError(ValidationException, __ValidationException);
|
|
209
|
+
export var __Unit = "unit";
|
|
210
|
+
export var SigninServiceException = [-3, _sm, "SigninServiceException", 0, [], []];
|
|
211
|
+
TypeRegistry.for(_sm).registerError(SigninServiceException, __SigninServiceException);
|
|
212
|
+
export var CreateOAuth2Token = [
|
|
213
|
+
9,
|
|
214
|
+
n0,
|
|
215
|
+
_COAT,
|
|
216
|
+
{
|
|
217
|
+
[_h]: ["POST", "/v1/token", 200],
|
|
218
|
+
},
|
|
219
|
+
() => CreateOAuth2TokenRequest,
|
|
220
|
+
() => CreateOAuth2TokenResponse,
|
|
221
|
+
];
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export const AccessDeniedExceptionReason = {
|
|
2
|
+
KMS_ACCESS_DENIED: "KMS_AccessDeniedException",
|
|
3
|
+
};
|
|
4
|
+
export const InvalidRequestExceptionReason = {
|
|
5
|
+
KMS_DISABLED_KEY: "KMS_DisabledException",
|
|
6
|
+
KMS_INVALID_KEY_USAGE: "KMS_InvalidKeyUsageException",
|
|
7
|
+
KMS_INVALID_STATE: "KMS_InvalidStateException",
|
|
8
|
+
KMS_KEY_NOT_FOUND: "KMS_NotFoundException",
|
|
9
|
+
};
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
import { SSOOIDCServiceException as __BaseException } from "./SSOOIDCServiceException";
|
|
2
|
+
export class AccessDeniedException extends __BaseException {
|
|
3
|
+
name = "AccessDeniedException";
|
|
4
|
+
$fault = "client";
|
|
5
|
+
error;
|
|
6
|
+
reason;
|
|
7
|
+
error_description;
|
|
8
|
+
constructor(opts) {
|
|
9
|
+
super({
|
|
10
|
+
name: "AccessDeniedException",
|
|
11
|
+
$fault: "client",
|
|
12
|
+
...opts,
|
|
13
|
+
});
|
|
14
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
15
|
+
this.error = opts.error;
|
|
16
|
+
this.reason = opts.reason;
|
|
17
|
+
this.error_description = opts.error_description;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
export class AuthorizationPendingException extends __BaseException {
|
|
21
|
+
name = "AuthorizationPendingException";
|
|
22
|
+
$fault = "client";
|
|
23
|
+
error;
|
|
24
|
+
error_description;
|
|
25
|
+
constructor(opts) {
|
|
26
|
+
super({
|
|
27
|
+
name: "AuthorizationPendingException",
|
|
28
|
+
$fault: "client",
|
|
29
|
+
...opts,
|
|
30
|
+
});
|
|
31
|
+
Object.setPrototypeOf(this, AuthorizationPendingException.prototype);
|
|
32
|
+
this.error = opts.error;
|
|
33
|
+
this.error_description = opts.error_description;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
export class ExpiredTokenException extends __BaseException {
|
|
37
|
+
name = "ExpiredTokenException";
|
|
38
|
+
$fault = "client";
|
|
39
|
+
error;
|
|
40
|
+
error_description;
|
|
41
|
+
constructor(opts) {
|
|
42
|
+
super({
|
|
43
|
+
name: "ExpiredTokenException",
|
|
44
|
+
$fault: "client",
|
|
45
|
+
...opts,
|
|
46
|
+
});
|
|
47
|
+
Object.setPrototypeOf(this, ExpiredTokenException.prototype);
|
|
48
|
+
this.error = opts.error;
|
|
49
|
+
this.error_description = opts.error_description;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
export class InternalServerException extends __BaseException {
|
|
53
|
+
name = "InternalServerException";
|
|
54
|
+
$fault = "server";
|
|
55
|
+
error;
|
|
56
|
+
error_description;
|
|
57
|
+
constructor(opts) {
|
|
58
|
+
super({
|
|
59
|
+
name: "InternalServerException",
|
|
60
|
+
$fault: "server",
|
|
61
|
+
...opts,
|
|
62
|
+
});
|
|
63
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
64
|
+
this.error = opts.error;
|
|
65
|
+
this.error_description = opts.error_description;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
export class InvalidClientException extends __BaseException {
|
|
69
|
+
name = "InvalidClientException";
|
|
70
|
+
$fault = "client";
|
|
71
|
+
error;
|
|
72
|
+
error_description;
|
|
73
|
+
constructor(opts) {
|
|
74
|
+
super({
|
|
75
|
+
name: "InvalidClientException",
|
|
76
|
+
$fault: "client",
|
|
77
|
+
...opts,
|
|
78
|
+
});
|
|
79
|
+
Object.setPrototypeOf(this, InvalidClientException.prototype);
|
|
80
|
+
this.error = opts.error;
|
|
81
|
+
this.error_description = opts.error_description;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
export class InvalidGrantException extends __BaseException {
|
|
85
|
+
name = "InvalidGrantException";
|
|
86
|
+
$fault = "client";
|
|
87
|
+
error;
|
|
88
|
+
error_description;
|
|
89
|
+
constructor(opts) {
|
|
90
|
+
super({
|
|
91
|
+
name: "InvalidGrantException",
|
|
92
|
+
$fault: "client",
|
|
93
|
+
...opts,
|
|
94
|
+
});
|
|
95
|
+
Object.setPrototypeOf(this, InvalidGrantException.prototype);
|
|
96
|
+
this.error = opts.error;
|
|
97
|
+
this.error_description = opts.error_description;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
export class InvalidRequestException extends __BaseException {
|
|
101
|
+
name = "InvalidRequestException";
|
|
102
|
+
$fault = "client";
|
|
103
|
+
error;
|
|
104
|
+
reason;
|
|
105
|
+
error_description;
|
|
106
|
+
constructor(opts) {
|
|
107
|
+
super({
|
|
108
|
+
name: "InvalidRequestException",
|
|
109
|
+
$fault: "client",
|
|
110
|
+
...opts,
|
|
111
|
+
});
|
|
112
|
+
Object.setPrototypeOf(this, InvalidRequestException.prototype);
|
|
113
|
+
this.error = opts.error;
|
|
114
|
+
this.reason = opts.reason;
|
|
115
|
+
this.error_description = opts.error_description;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
export class InvalidScopeException extends __BaseException {
|
|
119
|
+
name = "InvalidScopeException";
|
|
120
|
+
$fault = "client";
|
|
121
|
+
error;
|
|
122
|
+
error_description;
|
|
123
|
+
constructor(opts) {
|
|
124
|
+
super({
|
|
125
|
+
name: "InvalidScopeException",
|
|
126
|
+
$fault: "client",
|
|
127
|
+
...opts,
|
|
128
|
+
});
|
|
129
|
+
Object.setPrototypeOf(this, InvalidScopeException.prototype);
|
|
130
|
+
this.error = opts.error;
|
|
131
|
+
this.error_description = opts.error_description;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
export class SlowDownException extends __BaseException {
|
|
135
|
+
name = "SlowDownException";
|
|
136
|
+
$fault = "client";
|
|
137
|
+
error;
|
|
138
|
+
error_description;
|
|
139
|
+
constructor(opts) {
|
|
140
|
+
super({
|
|
141
|
+
name: "SlowDownException",
|
|
142
|
+
$fault: "client",
|
|
143
|
+
...opts,
|
|
144
|
+
});
|
|
145
|
+
Object.setPrototypeOf(this, SlowDownException.prototype);
|
|
146
|
+
this.error = opts.error;
|
|
147
|
+
this.error_description = opts.error_description;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
export class UnauthorizedClientException extends __BaseException {
|
|
151
|
+
name = "UnauthorizedClientException";
|
|
152
|
+
$fault = "client";
|
|
153
|
+
error;
|
|
154
|
+
error_description;
|
|
155
|
+
constructor(opts) {
|
|
156
|
+
super({
|
|
157
|
+
name: "UnauthorizedClientException",
|
|
158
|
+
$fault: "client",
|
|
159
|
+
...opts,
|
|
160
|
+
});
|
|
161
|
+
Object.setPrototypeOf(this, UnauthorizedClientException.prototype);
|
|
162
|
+
this.error = opts.error;
|
|
163
|
+
this.error_description = opts.error_description;
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
export class UnsupportedGrantTypeException extends __BaseException {
|
|
167
|
+
name = "UnsupportedGrantTypeException";
|
|
168
|
+
$fault = "client";
|
|
169
|
+
error;
|
|
170
|
+
error_description;
|
|
171
|
+
constructor(opts) {
|
|
172
|
+
super({
|
|
173
|
+
name: "UnsupportedGrantTypeException",
|
|
174
|
+
$fault: "client",
|
|
175
|
+
...opts,
|
|
176
|
+
});
|
|
177
|
+
Object.setPrototypeOf(this, UnsupportedGrantTypeException.prototype);
|
|
178
|
+
this.error = opts.error;
|
|
179
|
+
this.error_description = opts.error_description;
|
|
180
|
+
}
|
|
181
|
+
}
|
|
@@ -1,190 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export const AccessDeniedExceptionReason = {
|
|
3
|
-
KMS_ACCESS_DENIED: "KMS_AccessDeniedException",
|
|
4
|
-
};
|
|
5
|
-
export class AccessDeniedException extends __BaseException {
|
|
6
|
-
name = "AccessDeniedException";
|
|
7
|
-
$fault = "client";
|
|
8
|
-
error;
|
|
9
|
-
reason;
|
|
10
|
-
error_description;
|
|
11
|
-
constructor(opts) {
|
|
12
|
-
super({
|
|
13
|
-
name: "AccessDeniedException",
|
|
14
|
-
$fault: "client",
|
|
15
|
-
...opts,
|
|
16
|
-
});
|
|
17
|
-
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
18
|
-
this.error = opts.error;
|
|
19
|
-
this.reason = opts.reason;
|
|
20
|
-
this.error_description = opts.error_description;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
export class AuthorizationPendingException extends __BaseException {
|
|
24
|
-
name = "AuthorizationPendingException";
|
|
25
|
-
$fault = "client";
|
|
26
|
-
error;
|
|
27
|
-
error_description;
|
|
28
|
-
constructor(opts) {
|
|
29
|
-
super({
|
|
30
|
-
name: "AuthorizationPendingException",
|
|
31
|
-
$fault: "client",
|
|
32
|
-
...opts,
|
|
33
|
-
});
|
|
34
|
-
Object.setPrototypeOf(this, AuthorizationPendingException.prototype);
|
|
35
|
-
this.error = opts.error;
|
|
36
|
-
this.error_description = opts.error_description;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
export class ExpiredTokenException extends __BaseException {
|
|
40
|
-
name = "ExpiredTokenException";
|
|
41
|
-
$fault = "client";
|
|
42
|
-
error;
|
|
43
|
-
error_description;
|
|
44
|
-
constructor(opts) {
|
|
45
|
-
super({
|
|
46
|
-
name: "ExpiredTokenException",
|
|
47
|
-
$fault: "client",
|
|
48
|
-
...opts,
|
|
49
|
-
});
|
|
50
|
-
Object.setPrototypeOf(this, ExpiredTokenException.prototype);
|
|
51
|
-
this.error = opts.error;
|
|
52
|
-
this.error_description = opts.error_description;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
export class InternalServerException extends __BaseException {
|
|
56
|
-
name = "InternalServerException";
|
|
57
|
-
$fault = "server";
|
|
58
|
-
error;
|
|
59
|
-
error_description;
|
|
60
|
-
constructor(opts) {
|
|
61
|
-
super({
|
|
62
|
-
name: "InternalServerException",
|
|
63
|
-
$fault: "server",
|
|
64
|
-
...opts,
|
|
65
|
-
});
|
|
66
|
-
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
67
|
-
this.error = opts.error;
|
|
68
|
-
this.error_description = opts.error_description;
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
export class InvalidClientException extends __BaseException {
|
|
72
|
-
name = "InvalidClientException";
|
|
73
|
-
$fault = "client";
|
|
74
|
-
error;
|
|
75
|
-
error_description;
|
|
76
|
-
constructor(opts) {
|
|
77
|
-
super({
|
|
78
|
-
name: "InvalidClientException",
|
|
79
|
-
$fault: "client",
|
|
80
|
-
...opts,
|
|
81
|
-
});
|
|
82
|
-
Object.setPrototypeOf(this, InvalidClientException.prototype);
|
|
83
|
-
this.error = opts.error;
|
|
84
|
-
this.error_description = opts.error_description;
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
export class InvalidGrantException extends __BaseException {
|
|
88
|
-
name = "InvalidGrantException";
|
|
89
|
-
$fault = "client";
|
|
90
|
-
error;
|
|
91
|
-
error_description;
|
|
92
|
-
constructor(opts) {
|
|
93
|
-
super({
|
|
94
|
-
name: "InvalidGrantException",
|
|
95
|
-
$fault: "client",
|
|
96
|
-
...opts,
|
|
97
|
-
});
|
|
98
|
-
Object.setPrototypeOf(this, InvalidGrantException.prototype);
|
|
99
|
-
this.error = opts.error;
|
|
100
|
-
this.error_description = opts.error_description;
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
export const InvalidRequestExceptionReason = {
|
|
104
|
-
KMS_DISABLED_KEY: "KMS_DisabledException",
|
|
105
|
-
KMS_INVALID_KEY_USAGE: "KMS_InvalidKeyUsageException",
|
|
106
|
-
KMS_INVALID_STATE: "KMS_InvalidStateException",
|
|
107
|
-
KMS_KEY_NOT_FOUND: "KMS_NotFoundException",
|
|
108
|
-
};
|
|
109
|
-
export class InvalidRequestException extends __BaseException {
|
|
110
|
-
name = "InvalidRequestException";
|
|
111
|
-
$fault = "client";
|
|
112
|
-
error;
|
|
113
|
-
reason;
|
|
114
|
-
error_description;
|
|
115
|
-
constructor(opts) {
|
|
116
|
-
super({
|
|
117
|
-
name: "InvalidRequestException",
|
|
118
|
-
$fault: "client",
|
|
119
|
-
...opts,
|
|
120
|
-
});
|
|
121
|
-
Object.setPrototypeOf(this, InvalidRequestException.prototype);
|
|
122
|
-
this.error = opts.error;
|
|
123
|
-
this.reason = opts.reason;
|
|
124
|
-
this.error_description = opts.error_description;
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
export class InvalidScopeException extends __BaseException {
|
|
128
|
-
name = "InvalidScopeException";
|
|
129
|
-
$fault = "client";
|
|
130
|
-
error;
|
|
131
|
-
error_description;
|
|
132
|
-
constructor(opts) {
|
|
133
|
-
super({
|
|
134
|
-
name: "InvalidScopeException",
|
|
135
|
-
$fault: "client",
|
|
136
|
-
...opts,
|
|
137
|
-
});
|
|
138
|
-
Object.setPrototypeOf(this, InvalidScopeException.prototype);
|
|
139
|
-
this.error = opts.error;
|
|
140
|
-
this.error_description = opts.error_description;
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
export class SlowDownException extends __BaseException {
|
|
144
|
-
name = "SlowDownException";
|
|
145
|
-
$fault = "client";
|
|
146
|
-
error;
|
|
147
|
-
error_description;
|
|
148
|
-
constructor(opts) {
|
|
149
|
-
super({
|
|
150
|
-
name: "SlowDownException",
|
|
151
|
-
$fault: "client",
|
|
152
|
-
...opts,
|
|
153
|
-
});
|
|
154
|
-
Object.setPrototypeOf(this, SlowDownException.prototype);
|
|
155
|
-
this.error = opts.error;
|
|
156
|
-
this.error_description = opts.error_description;
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
export class UnauthorizedClientException extends __BaseException {
|
|
160
|
-
name = "UnauthorizedClientException";
|
|
161
|
-
$fault = "client";
|
|
162
|
-
error;
|
|
163
|
-
error_description;
|
|
164
|
-
constructor(opts) {
|
|
165
|
-
super({
|
|
166
|
-
name: "UnauthorizedClientException",
|
|
167
|
-
$fault: "client",
|
|
168
|
-
...opts,
|
|
169
|
-
});
|
|
170
|
-
Object.setPrototypeOf(this, UnauthorizedClientException.prototype);
|
|
171
|
-
this.error = opts.error;
|
|
172
|
-
this.error_description = opts.error_description;
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
export class UnsupportedGrantTypeException extends __BaseException {
|
|
176
|
-
name = "UnsupportedGrantTypeException";
|
|
177
|
-
$fault = "client";
|
|
178
|
-
error;
|
|
179
|
-
error_description;
|
|
180
|
-
constructor(opts) {
|
|
181
|
-
super({
|
|
182
|
-
name: "UnsupportedGrantTypeException",
|
|
183
|
-
$fault: "client",
|
|
184
|
-
...opts,
|
|
185
|
-
});
|
|
186
|
-
Object.setPrototypeOf(this, UnsupportedGrantTypeException.prototype);
|
|
187
|
-
this.error = opts.error;
|
|
188
|
-
this.error_description = opts.error_description;
|
|
189
|
-
}
|
|
190
|
-
}
|
|
1
|
+
export {};
|
|
@@ -40,7 +40,7 @@ const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.ssooidc";
|
|
|
40
40
|
const _tT = "tokenType";
|
|
41
41
|
const n0 = "com.amazonaws.ssooidc";
|
|
42
42
|
import { TypeRegistry } from "@smithy/core/schema";
|
|
43
|
-
import { AccessDeniedException as __AccessDeniedException, AuthorizationPendingException as __AuthorizationPendingException, ExpiredTokenException as __ExpiredTokenException, InternalServerException as __InternalServerException, InvalidClientException as __InvalidClientException, InvalidGrantException as __InvalidGrantException, InvalidRequestException as __InvalidRequestException, InvalidScopeException as __InvalidScopeException, SlowDownException as __SlowDownException, UnauthorizedClientException as __UnauthorizedClientException, UnsupportedGrantTypeException as __UnsupportedGrantTypeException, } from "../models/
|
|
43
|
+
import { AccessDeniedException as __AccessDeniedException, AuthorizationPendingException as __AuthorizationPendingException, ExpiredTokenException as __ExpiredTokenException, InternalServerException as __InternalServerException, InvalidClientException as __InvalidClientException, InvalidGrantException as __InvalidGrantException, InvalidRequestException as __InvalidRequestException, InvalidScopeException as __InvalidScopeException, SlowDownException as __SlowDownException, UnauthorizedClientException as __UnauthorizedClientException, UnsupportedGrantTypeException as __UnsupportedGrantTypeException, } from "../models/errors";
|
|
44
44
|
import { SSOOIDCServiceException as __SSOOIDCServiceException } from "../models/SSOOIDCServiceException";
|
|
45
45
|
export var AccessToken = [0, n0, _AT, 8, 0];
|
|
46
46
|
export var ClientSecret = [0, n0, _CS, 8, 0];
|