@aws-sdk/nested-clients 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/submodules/sso-oidc/index.js +246 -310
- package/dist-cjs/submodules/sso-oidc/runtimeConfig.shared.js +2 -0
- package/dist-es/submodules/sso-oidc/SSOOIDCClient.js +2 -0
- package/dist-es/submodules/sso-oidc/commands/CreateTokenCommand.js +3 -10
- package/dist-es/submodules/sso-oidc/models/models_0.js +0 -13
- package/dist-es/submodules/sso-oidc/runtimeConfig.shared.js +2 -0
- package/dist-es/submodules/sso-oidc/schemas/schemas_0.js +211 -0
- package/dist-types/submodules/sso-oidc/SSOOIDCClient.d.ts +10 -1
- package/dist-types/submodules/sso-oidc/models/models_0.d.ts +0 -8
- package/dist-types/submodules/sso-oidc/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/submodules/sso-oidc/runtimeConfig.d.ts +1 -0
- package/dist-types/submodules/sso-oidc/runtimeConfig.native.d.ts +1 -0
- package/dist-types/submodules/sso-oidc/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/submodules/sso-oidc/schemas/schemas_0.d.ts +23 -0
- package/dist-types/submodules/sts/commands/AssumeRoleCommand.d.ts +2 -2
- package/dist-types/submodules/sts/commands/AssumeRoleWithWebIdentityCommand.d.ts +4 -3
- package/dist-types/submodules/sts/models/models_0.d.ts +8 -8
- package/dist-types/ts3.4/submodules/sso-oidc/SSOOIDCClient.d.ts +4 -0
- package/dist-types/ts3.4/submodules/sso-oidc/models/models_0.d.ts +0 -6
- package/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/submodules/sso-oidc/schemas/schemas_0.d.ts +28 -0
- package/package.json +4 -4
- package/dist-es/submodules/sso-oidc/protocols/Aws_restJson1.js +0 -257
- package/dist-types/submodules/sso-oidc/protocols/Aws_restJson1.d.ts +0 -11
- package/dist-types/ts3.4/submodules/sso-oidc/protocols/Aws_restJson1.d.ts +0 -17
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/nested-clients",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.929.0",
|
|
4
4
|
"description": "Nested clients for AWS SDK packages.",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -29,16 +29,16 @@
|
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
31
31
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
32
|
-
"@aws-sdk/core": "3.
|
|
32
|
+
"@aws-sdk/core": "3.928.0",
|
|
33
33
|
"@aws-sdk/middleware-host-header": "3.922.0",
|
|
34
34
|
"@aws-sdk/middleware-logger": "3.922.0",
|
|
35
35
|
"@aws-sdk/middleware-recursion-detection": "3.922.0",
|
|
36
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
36
|
+
"@aws-sdk/middleware-user-agent": "3.928.0",
|
|
37
37
|
"@aws-sdk/region-config-resolver": "3.925.0",
|
|
38
38
|
"@aws-sdk/types": "3.922.0",
|
|
39
39
|
"@aws-sdk/util-endpoints": "3.922.0",
|
|
40
40
|
"@aws-sdk/util-user-agent-browser": "3.922.0",
|
|
41
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
41
|
+
"@aws-sdk/util-user-agent-node": "3.928.0",
|
|
42
42
|
"@smithy/config-resolver": "^4.4.2",
|
|
43
43
|
"@smithy/core": "^3.17.2",
|
|
44
44
|
"@smithy/fetch-http-handler": "^5.3.5",
|
|
@@ -1,257 +0,0 @@
|
|
|
1
|
-
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
2
|
-
import { requestBuilder as rb } from "@smithy/core";
|
|
3
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
|
-
import { AccessDeniedException, AuthorizationPendingException, ExpiredTokenException, InternalServerException, InvalidClientException, InvalidGrantException, InvalidRequestException, InvalidScopeException, SlowDownException, UnauthorizedClientException, UnsupportedGrantTypeException, } from "../models/models_0";
|
|
5
|
-
import { SSOOIDCServiceException as __BaseException } from "../models/SSOOIDCServiceException";
|
|
6
|
-
export const se_CreateTokenCommand = async (input, context) => {
|
|
7
|
-
const b = rb(input, context);
|
|
8
|
-
const headers = {
|
|
9
|
-
"content-type": "application/json",
|
|
10
|
-
};
|
|
11
|
-
b.bp("/token");
|
|
12
|
-
let body;
|
|
13
|
-
body = JSON.stringify(take(input, {
|
|
14
|
-
clientId: [],
|
|
15
|
-
clientSecret: [],
|
|
16
|
-
code: [],
|
|
17
|
-
codeVerifier: [],
|
|
18
|
-
deviceCode: [],
|
|
19
|
-
grantType: [],
|
|
20
|
-
redirectUri: [],
|
|
21
|
-
refreshToken: [],
|
|
22
|
-
scope: (_) => _json(_),
|
|
23
|
-
}));
|
|
24
|
-
b.m("POST").h(headers).b(body);
|
|
25
|
-
return b.build();
|
|
26
|
-
};
|
|
27
|
-
export const de_CreateTokenCommand = async (output, context) => {
|
|
28
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
29
|
-
return de_CommandError(output, context);
|
|
30
|
-
}
|
|
31
|
-
const contents = map({
|
|
32
|
-
$metadata: deserializeMetadata(output),
|
|
33
|
-
});
|
|
34
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
35
|
-
const doc = take(data, {
|
|
36
|
-
accessToken: __expectString,
|
|
37
|
-
expiresIn: __expectInt32,
|
|
38
|
-
idToken: __expectString,
|
|
39
|
-
refreshToken: __expectString,
|
|
40
|
-
tokenType: __expectString,
|
|
41
|
-
});
|
|
42
|
-
Object.assign(contents, doc);
|
|
43
|
-
return contents;
|
|
44
|
-
};
|
|
45
|
-
const de_CommandError = async (output, context) => {
|
|
46
|
-
const parsedOutput = {
|
|
47
|
-
...output,
|
|
48
|
-
body: await parseErrorBody(output.body, context),
|
|
49
|
-
};
|
|
50
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
51
|
-
switch (errorCode) {
|
|
52
|
-
case "AccessDeniedException":
|
|
53
|
-
case "com.amazonaws.ssooidc#AccessDeniedException":
|
|
54
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
55
|
-
case "AuthorizationPendingException":
|
|
56
|
-
case "com.amazonaws.ssooidc#AuthorizationPendingException":
|
|
57
|
-
throw await de_AuthorizationPendingExceptionRes(parsedOutput, context);
|
|
58
|
-
case "ExpiredTokenException":
|
|
59
|
-
case "com.amazonaws.ssooidc#ExpiredTokenException":
|
|
60
|
-
throw await de_ExpiredTokenExceptionRes(parsedOutput, context);
|
|
61
|
-
case "InternalServerException":
|
|
62
|
-
case "com.amazonaws.ssooidc#InternalServerException":
|
|
63
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
64
|
-
case "InvalidClientException":
|
|
65
|
-
case "com.amazonaws.ssooidc#InvalidClientException":
|
|
66
|
-
throw await de_InvalidClientExceptionRes(parsedOutput, context);
|
|
67
|
-
case "InvalidGrantException":
|
|
68
|
-
case "com.amazonaws.ssooidc#InvalidGrantException":
|
|
69
|
-
throw await de_InvalidGrantExceptionRes(parsedOutput, context);
|
|
70
|
-
case "InvalidRequestException":
|
|
71
|
-
case "com.amazonaws.ssooidc#InvalidRequestException":
|
|
72
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
73
|
-
case "InvalidScopeException":
|
|
74
|
-
case "com.amazonaws.ssooidc#InvalidScopeException":
|
|
75
|
-
throw await de_InvalidScopeExceptionRes(parsedOutput, context);
|
|
76
|
-
case "SlowDownException":
|
|
77
|
-
case "com.amazonaws.ssooidc#SlowDownException":
|
|
78
|
-
throw await de_SlowDownExceptionRes(parsedOutput, context);
|
|
79
|
-
case "UnauthorizedClientException":
|
|
80
|
-
case "com.amazonaws.ssooidc#UnauthorizedClientException":
|
|
81
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
82
|
-
case "UnsupportedGrantTypeException":
|
|
83
|
-
case "com.amazonaws.ssooidc#UnsupportedGrantTypeException":
|
|
84
|
-
throw await de_UnsupportedGrantTypeExceptionRes(parsedOutput, context);
|
|
85
|
-
default:
|
|
86
|
-
const parsedBody = parsedOutput.body;
|
|
87
|
-
return throwDefaultError({
|
|
88
|
-
output,
|
|
89
|
-
parsedBody,
|
|
90
|
-
errorCode,
|
|
91
|
-
});
|
|
92
|
-
}
|
|
93
|
-
};
|
|
94
|
-
const throwDefaultError = withBaseException(__BaseException);
|
|
95
|
-
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
96
|
-
const contents = map({});
|
|
97
|
-
const data = parsedOutput.body;
|
|
98
|
-
const doc = take(data, {
|
|
99
|
-
error: __expectString,
|
|
100
|
-
error_description: __expectString,
|
|
101
|
-
reason: __expectString,
|
|
102
|
-
});
|
|
103
|
-
Object.assign(contents, doc);
|
|
104
|
-
const exception = new AccessDeniedException({
|
|
105
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
106
|
-
...contents,
|
|
107
|
-
});
|
|
108
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
109
|
-
};
|
|
110
|
-
const de_AuthorizationPendingExceptionRes = async (parsedOutput, context) => {
|
|
111
|
-
const contents = map({});
|
|
112
|
-
const data = parsedOutput.body;
|
|
113
|
-
const doc = take(data, {
|
|
114
|
-
error: __expectString,
|
|
115
|
-
error_description: __expectString,
|
|
116
|
-
});
|
|
117
|
-
Object.assign(contents, doc);
|
|
118
|
-
const exception = new AuthorizationPendingException({
|
|
119
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
120
|
-
...contents,
|
|
121
|
-
});
|
|
122
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
123
|
-
};
|
|
124
|
-
const de_ExpiredTokenExceptionRes = async (parsedOutput, context) => {
|
|
125
|
-
const contents = map({});
|
|
126
|
-
const data = parsedOutput.body;
|
|
127
|
-
const doc = take(data, {
|
|
128
|
-
error: __expectString,
|
|
129
|
-
error_description: __expectString,
|
|
130
|
-
});
|
|
131
|
-
Object.assign(contents, doc);
|
|
132
|
-
const exception = new ExpiredTokenException({
|
|
133
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
134
|
-
...contents,
|
|
135
|
-
});
|
|
136
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
137
|
-
};
|
|
138
|
-
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
139
|
-
const contents = map({});
|
|
140
|
-
const data = parsedOutput.body;
|
|
141
|
-
const doc = take(data, {
|
|
142
|
-
error: __expectString,
|
|
143
|
-
error_description: __expectString,
|
|
144
|
-
});
|
|
145
|
-
Object.assign(contents, doc);
|
|
146
|
-
const exception = new InternalServerException({
|
|
147
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
148
|
-
...contents,
|
|
149
|
-
});
|
|
150
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
151
|
-
};
|
|
152
|
-
const de_InvalidClientExceptionRes = async (parsedOutput, context) => {
|
|
153
|
-
const contents = map({});
|
|
154
|
-
const data = parsedOutput.body;
|
|
155
|
-
const doc = take(data, {
|
|
156
|
-
error: __expectString,
|
|
157
|
-
error_description: __expectString,
|
|
158
|
-
});
|
|
159
|
-
Object.assign(contents, doc);
|
|
160
|
-
const exception = new InvalidClientException({
|
|
161
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
162
|
-
...contents,
|
|
163
|
-
});
|
|
164
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
165
|
-
};
|
|
166
|
-
const de_InvalidGrantExceptionRes = async (parsedOutput, context) => {
|
|
167
|
-
const contents = map({});
|
|
168
|
-
const data = parsedOutput.body;
|
|
169
|
-
const doc = take(data, {
|
|
170
|
-
error: __expectString,
|
|
171
|
-
error_description: __expectString,
|
|
172
|
-
});
|
|
173
|
-
Object.assign(contents, doc);
|
|
174
|
-
const exception = new InvalidGrantException({
|
|
175
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
176
|
-
...contents,
|
|
177
|
-
});
|
|
178
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
179
|
-
};
|
|
180
|
-
const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
|
|
181
|
-
const contents = map({});
|
|
182
|
-
const data = parsedOutput.body;
|
|
183
|
-
const doc = take(data, {
|
|
184
|
-
error: __expectString,
|
|
185
|
-
error_description: __expectString,
|
|
186
|
-
reason: __expectString,
|
|
187
|
-
});
|
|
188
|
-
Object.assign(contents, doc);
|
|
189
|
-
const exception = new InvalidRequestException({
|
|
190
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
191
|
-
...contents,
|
|
192
|
-
});
|
|
193
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
194
|
-
};
|
|
195
|
-
const de_InvalidScopeExceptionRes = async (parsedOutput, context) => {
|
|
196
|
-
const contents = map({});
|
|
197
|
-
const data = parsedOutput.body;
|
|
198
|
-
const doc = take(data, {
|
|
199
|
-
error: __expectString,
|
|
200
|
-
error_description: __expectString,
|
|
201
|
-
});
|
|
202
|
-
Object.assign(contents, doc);
|
|
203
|
-
const exception = new InvalidScopeException({
|
|
204
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
205
|
-
...contents,
|
|
206
|
-
});
|
|
207
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
208
|
-
};
|
|
209
|
-
const de_SlowDownExceptionRes = async (parsedOutput, context) => {
|
|
210
|
-
const contents = map({});
|
|
211
|
-
const data = parsedOutput.body;
|
|
212
|
-
const doc = take(data, {
|
|
213
|
-
error: __expectString,
|
|
214
|
-
error_description: __expectString,
|
|
215
|
-
});
|
|
216
|
-
Object.assign(contents, doc);
|
|
217
|
-
const exception = new SlowDownException({
|
|
218
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
219
|
-
...contents,
|
|
220
|
-
});
|
|
221
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
222
|
-
};
|
|
223
|
-
const de_UnauthorizedClientExceptionRes = async (parsedOutput, context) => {
|
|
224
|
-
const contents = map({});
|
|
225
|
-
const data = parsedOutput.body;
|
|
226
|
-
const doc = take(data, {
|
|
227
|
-
error: __expectString,
|
|
228
|
-
error_description: __expectString,
|
|
229
|
-
});
|
|
230
|
-
Object.assign(contents, doc);
|
|
231
|
-
const exception = new UnauthorizedClientException({
|
|
232
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
233
|
-
...contents,
|
|
234
|
-
});
|
|
235
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
236
|
-
};
|
|
237
|
-
const de_UnsupportedGrantTypeExceptionRes = async (parsedOutput, context) => {
|
|
238
|
-
const contents = map({});
|
|
239
|
-
const data = parsedOutput.body;
|
|
240
|
-
const doc = take(data, {
|
|
241
|
-
error: __expectString,
|
|
242
|
-
error_description: __expectString,
|
|
243
|
-
});
|
|
244
|
-
Object.assign(contents, doc);
|
|
245
|
-
const exception = new UnsupportedGrantTypeException({
|
|
246
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
247
|
-
...contents,
|
|
248
|
-
});
|
|
249
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
250
|
-
};
|
|
251
|
-
const deserializeMetadata = (output) => ({
|
|
252
|
-
httpStatusCode: output.statusCode,
|
|
253
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
254
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
255
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
256
|
-
});
|
|
257
|
-
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
|
|
2
|
-
import { SerdeContext as __SerdeContext } from "@smithy/types";
|
|
3
|
-
import { CreateTokenCommandInput, CreateTokenCommandOutput } from "../commands/CreateTokenCommand";
|
|
4
|
-
/**
|
|
5
|
-
* serializeAws_restJson1CreateTokenCommand
|
|
6
|
-
*/
|
|
7
|
-
export declare const se_CreateTokenCommand: (input: CreateTokenCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
8
|
-
/**
|
|
9
|
-
* deserializeAws_restJson1CreateTokenCommand
|
|
10
|
-
*/
|
|
11
|
-
export declare const de_CreateTokenCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CreateTokenCommandOutput>;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
HttpRequest as __HttpRequest,
|
|
3
|
-
HttpResponse as __HttpResponse,
|
|
4
|
-
} from "@smithy/protocol-http";
|
|
5
|
-
import { SerdeContext as __SerdeContext } from "@smithy/types";
|
|
6
|
-
import {
|
|
7
|
-
CreateTokenCommandInput,
|
|
8
|
-
CreateTokenCommandOutput,
|
|
9
|
-
} from "../commands/CreateTokenCommand";
|
|
10
|
-
export declare const se_CreateTokenCommand: (
|
|
11
|
-
input: CreateTokenCommandInput,
|
|
12
|
-
context: __SerdeContext
|
|
13
|
-
) => Promise<__HttpRequest>;
|
|
14
|
-
export declare const de_CreateTokenCommand: (
|
|
15
|
-
output: __HttpResponse,
|
|
16
|
-
context: __SerdeContext
|
|
17
|
-
) => Promise<CreateTokenCommandOutput>;
|