@cdk8s/awscdk-resolver 0.0.403 → 0.0.404
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/.jsii +3 -3
- package/lib/resolve.js +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/package.json +2 -2
- package/node_modules/@aws-sdk/client-sso/dist-cjs/index.js +277 -270
- package/node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.shared.js +2 -0
- package/node_modules/@aws-sdk/client-sso/dist-es/SSOClient.js +2 -0
- package/node_modules/@aws-sdk/client-sso/dist-es/commands/GetRoleCredentialsCommand.js +3 -10
- package/node_modules/@aws-sdk/client-sso/dist-es/commands/ListAccountRolesCommand.js +3 -10
- package/node_modules/@aws-sdk/client-sso/dist-es/commands/ListAccountsCommand.js +3 -10
- package/node_modules/@aws-sdk/client-sso/dist-es/commands/LogoutCommand.js +3 -10
- package/node_modules/@aws-sdk/client-sso/dist-es/models/models_0.js +0 -26
- package/node_modules/@aws-sdk/client-sso/dist-es/runtimeConfig.shared.js +2 -0
- package/node_modules/@aws-sdk/client-sso/dist-es/schemas/schemas_0.js +265 -0
- package/node_modules/@aws-sdk/client-sso/dist-types/SSOClient.d.ts +10 -1
- package/node_modules/@aws-sdk/client-sso/dist-types/models/models_0.d.ts +0 -24
- package/node_modules/@aws-sdk/client-sso/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sso/dist-types/runtimeConfig.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sso/dist-types/runtimeConfig.native.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sso/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sso/dist-types/schemas/schemas_0.d.ts +26 -0
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/SSOClient.d.ts +4 -0
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/models/models_0.d.ts +0 -18
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/schemas/schemas_0.d.ts +32 -0
- package/node_modules/@aws-sdk/client-sso/package.json +1 -1
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-node/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +3 -3
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +246 -310
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/runtimeConfig.shared.js +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/SSOOIDCClient.js +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/commands/CreateTokenCommand.js +3 -10
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/models/models_0.js +0 -13
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeConfig.shared.js +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/schemas/schemas_0.js +211 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/SSOOIDCClient.d.ts +10 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/models/models_0.d.ts +0 -8
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.browser.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.native.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.shared.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/schemas/schemas_0.d.ts +23 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/commands/AssumeRoleCommand.d.ts +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/commands/AssumeRoleWithWebIdentityCommand.d.ts +4 -3
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/models/models_0.d.ts +8 -8
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/SSOOIDCClient.d.ts +4 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/models/models_0.d.ts +0 -6
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.browser.d.ts +4 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.d.ts +4 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.native.d.ts +4 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.shared.d.ts +4 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/schemas/schemas_0.d.ts +28 -0
- package/node_modules/@aws-sdk/nested-clients/package.json +1 -1
- package/node_modules/@aws-sdk/token-providers/package.json +2 -2
- package/package.json +3 -3
- package/node_modules/@aws-sdk/client-sso/dist-es/protocols/Aws_restJson1.js +0 -210
- package/node_modules/@aws-sdk/client-sso/dist-types/protocols/Aws_restJson1.d.ts +0 -38
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -53
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/protocols/Aws_restJson1.js +0 -257
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/protocols/Aws_restJson1.d.ts +0 -11
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/protocols/Aws_restJson1.d.ts +0 -17
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/token-providers",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.929.0",
|
|
4
4
|
"description": "A collection of token providers",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"license": "Apache-2.0",
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@aws-sdk/core": "3.928.0",
|
|
33
|
-
"@aws-sdk/nested-clients": "3.
|
|
33
|
+
"@aws-sdk/nested-clients": "3.929.0",
|
|
34
34
|
"@aws-sdk/types": "3.922.0",
|
|
35
35
|
"@smithy/property-provider": "^4.2.4",
|
|
36
36
|
"@smithy/shared-ini-file-loader": "^4.3.4",
|
package/package.json
CHANGED
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"organization": false
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@cdk8s/projen-common": "0.0.
|
|
45
|
+
"@cdk8s/projen-common": "0.0.640",
|
|
46
46
|
"@stylistic/eslint-plugin": "^2",
|
|
47
47
|
"@types/fs-extra": "^11.0.4",
|
|
48
48
|
"@types/jest": "^27",
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
"constructs": "^10.3.0"
|
|
78
78
|
},
|
|
79
79
|
"dependencies": {
|
|
80
|
-
"@aws-sdk/client-cloudformation": "^3.
|
|
80
|
+
"@aws-sdk/client-cloudformation": "^3.929.0"
|
|
81
81
|
},
|
|
82
82
|
"bundledDependencies": [
|
|
83
83
|
"@aws-sdk/client-cloudformation"
|
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
"publishConfig": {
|
|
94
94
|
"access": "public"
|
|
95
95
|
},
|
|
96
|
-
"version": "0.0.
|
|
96
|
+
"version": "0.0.404",
|
|
97
97
|
"jest": {
|
|
98
98
|
"coverageProvider": "v8",
|
|
99
99
|
"testMatch": [
|
|
@@ -1,210 +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, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, isSerializableHeaderValue, map, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
|
-
import { InvalidRequestException, ResourceNotFoundException, TooManyRequestsException, UnauthorizedException, } from "../models/models_0";
|
|
5
|
-
import { SSOServiceException as __BaseException } from "../models/SSOServiceException";
|
|
6
|
-
export const se_GetRoleCredentialsCommand = async (input, context) => {
|
|
7
|
-
const b = rb(input, context);
|
|
8
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
9
|
-
[_xasbt]: input[_aT],
|
|
10
|
-
});
|
|
11
|
-
b.bp("/federation/credentials");
|
|
12
|
-
const query = map({
|
|
13
|
-
[_rn]: [, __expectNonNull(input[_rN], `roleName`)],
|
|
14
|
-
[_ai]: [, __expectNonNull(input[_aI], `accountId`)],
|
|
15
|
-
});
|
|
16
|
-
let body;
|
|
17
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
18
|
-
return b.build();
|
|
19
|
-
};
|
|
20
|
-
export const se_ListAccountRolesCommand = async (input, context) => {
|
|
21
|
-
const b = rb(input, context);
|
|
22
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
23
|
-
[_xasbt]: input[_aT],
|
|
24
|
-
});
|
|
25
|
-
b.bp("/assignment/roles");
|
|
26
|
-
const query = map({
|
|
27
|
-
[_nt]: [, input[_nT]],
|
|
28
|
-
[_mr]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
29
|
-
[_ai]: [, __expectNonNull(input[_aI], `accountId`)],
|
|
30
|
-
});
|
|
31
|
-
let body;
|
|
32
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
33
|
-
return b.build();
|
|
34
|
-
};
|
|
35
|
-
export const se_ListAccountsCommand = async (input, context) => {
|
|
36
|
-
const b = rb(input, context);
|
|
37
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
38
|
-
[_xasbt]: input[_aT],
|
|
39
|
-
});
|
|
40
|
-
b.bp("/assignment/accounts");
|
|
41
|
-
const query = map({
|
|
42
|
-
[_nt]: [, input[_nT]],
|
|
43
|
-
[_mr]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
44
|
-
});
|
|
45
|
-
let body;
|
|
46
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
47
|
-
return b.build();
|
|
48
|
-
};
|
|
49
|
-
export const se_LogoutCommand = async (input, context) => {
|
|
50
|
-
const b = rb(input, context);
|
|
51
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
52
|
-
[_xasbt]: input[_aT],
|
|
53
|
-
});
|
|
54
|
-
b.bp("/logout");
|
|
55
|
-
let body;
|
|
56
|
-
b.m("POST").h(headers).b(body);
|
|
57
|
-
return b.build();
|
|
58
|
-
};
|
|
59
|
-
export const de_GetRoleCredentialsCommand = async (output, context) => {
|
|
60
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
61
|
-
return de_CommandError(output, context);
|
|
62
|
-
}
|
|
63
|
-
const contents = map({
|
|
64
|
-
$metadata: deserializeMetadata(output),
|
|
65
|
-
});
|
|
66
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
67
|
-
const doc = take(data, {
|
|
68
|
-
roleCredentials: _json,
|
|
69
|
-
});
|
|
70
|
-
Object.assign(contents, doc);
|
|
71
|
-
return contents;
|
|
72
|
-
};
|
|
73
|
-
export const de_ListAccountRolesCommand = async (output, context) => {
|
|
74
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
75
|
-
return de_CommandError(output, context);
|
|
76
|
-
}
|
|
77
|
-
const contents = map({
|
|
78
|
-
$metadata: deserializeMetadata(output),
|
|
79
|
-
});
|
|
80
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
81
|
-
const doc = take(data, {
|
|
82
|
-
nextToken: __expectString,
|
|
83
|
-
roleList: _json,
|
|
84
|
-
});
|
|
85
|
-
Object.assign(contents, doc);
|
|
86
|
-
return contents;
|
|
87
|
-
};
|
|
88
|
-
export const de_ListAccountsCommand = async (output, context) => {
|
|
89
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
90
|
-
return de_CommandError(output, context);
|
|
91
|
-
}
|
|
92
|
-
const contents = map({
|
|
93
|
-
$metadata: deserializeMetadata(output),
|
|
94
|
-
});
|
|
95
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
96
|
-
const doc = take(data, {
|
|
97
|
-
accountList: _json,
|
|
98
|
-
nextToken: __expectString,
|
|
99
|
-
});
|
|
100
|
-
Object.assign(contents, doc);
|
|
101
|
-
return contents;
|
|
102
|
-
};
|
|
103
|
-
export const de_LogoutCommand = async (output, context) => {
|
|
104
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
105
|
-
return de_CommandError(output, context);
|
|
106
|
-
}
|
|
107
|
-
const contents = map({
|
|
108
|
-
$metadata: deserializeMetadata(output),
|
|
109
|
-
});
|
|
110
|
-
await collectBody(output.body, context);
|
|
111
|
-
return contents;
|
|
112
|
-
};
|
|
113
|
-
const de_CommandError = async (output, context) => {
|
|
114
|
-
const parsedOutput = {
|
|
115
|
-
...output,
|
|
116
|
-
body: await parseErrorBody(output.body, context),
|
|
117
|
-
};
|
|
118
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
119
|
-
switch (errorCode) {
|
|
120
|
-
case "InvalidRequestException":
|
|
121
|
-
case "com.amazonaws.sso#InvalidRequestException":
|
|
122
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
123
|
-
case "ResourceNotFoundException":
|
|
124
|
-
case "com.amazonaws.sso#ResourceNotFoundException":
|
|
125
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
126
|
-
case "TooManyRequestsException":
|
|
127
|
-
case "com.amazonaws.sso#TooManyRequestsException":
|
|
128
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
129
|
-
case "UnauthorizedException":
|
|
130
|
-
case "com.amazonaws.sso#UnauthorizedException":
|
|
131
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
132
|
-
default:
|
|
133
|
-
const parsedBody = parsedOutput.body;
|
|
134
|
-
return throwDefaultError({
|
|
135
|
-
output,
|
|
136
|
-
parsedBody,
|
|
137
|
-
errorCode,
|
|
138
|
-
});
|
|
139
|
-
}
|
|
140
|
-
};
|
|
141
|
-
const throwDefaultError = withBaseException(__BaseException);
|
|
142
|
-
const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
|
|
143
|
-
const contents = map({});
|
|
144
|
-
const data = parsedOutput.body;
|
|
145
|
-
const doc = take(data, {
|
|
146
|
-
message: __expectString,
|
|
147
|
-
});
|
|
148
|
-
Object.assign(contents, doc);
|
|
149
|
-
const exception = new InvalidRequestException({
|
|
150
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
151
|
-
...contents,
|
|
152
|
-
});
|
|
153
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
154
|
-
};
|
|
155
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
156
|
-
const contents = map({});
|
|
157
|
-
const data = parsedOutput.body;
|
|
158
|
-
const doc = take(data, {
|
|
159
|
-
message: __expectString,
|
|
160
|
-
});
|
|
161
|
-
Object.assign(contents, doc);
|
|
162
|
-
const exception = new ResourceNotFoundException({
|
|
163
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
164
|
-
...contents,
|
|
165
|
-
});
|
|
166
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
167
|
-
};
|
|
168
|
-
const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
|
|
169
|
-
const contents = map({});
|
|
170
|
-
const data = parsedOutput.body;
|
|
171
|
-
const doc = take(data, {
|
|
172
|
-
message: __expectString,
|
|
173
|
-
});
|
|
174
|
-
Object.assign(contents, doc);
|
|
175
|
-
const exception = new TooManyRequestsException({
|
|
176
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
177
|
-
...contents,
|
|
178
|
-
});
|
|
179
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
180
|
-
};
|
|
181
|
-
const de_UnauthorizedExceptionRes = async (parsedOutput, context) => {
|
|
182
|
-
const contents = map({});
|
|
183
|
-
const data = parsedOutput.body;
|
|
184
|
-
const doc = take(data, {
|
|
185
|
-
message: __expectString,
|
|
186
|
-
});
|
|
187
|
-
Object.assign(contents, doc);
|
|
188
|
-
const exception = new UnauthorizedException({
|
|
189
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
190
|
-
...contents,
|
|
191
|
-
});
|
|
192
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
193
|
-
};
|
|
194
|
-
const deserializeMetadata = (output) => ({
|
|
195
|
-
httpStatusCode: output.statusCode,
|
|
196
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
197
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
198
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
199
|
-
});
|
|
200
|
-
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
201
|
-
const _aI = "accountId";
|
|
202
|
-
const _aT = "accessToken";
|
|
203
|
-
const _ai = "account_id";
|
|
204
|
-
const _mR = "maxResults";
|
|
205
|
-
const _mr = "max_result";
|
|
206
|
-
const _nT = "nextToken";
|
|
207
|
-
const _nt = "next_token";
|
|
208
|
-
const _rN = "roleName";
|
|
209
|
-
const _rn = "role_name";
|
|
210
|
-
const _xasbt = "x-amz-sso_bearer_token";
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
|
|
2
|
-
import { SerdeContext as __SerdeContext } from "@smithy/types";
|
|
3
|
-
import { GetRoleCredentialsCommandInput, GetRoleCredentialsCommandOutput } from "../commands/GetRoleCredentialsCommand";
|
|
4
|
-
import { ListAccountRolesCommandInput, ListAccountRolesCommandOutput } from "../commands/ListAccountRolesCommand";
|
|
5
|
-
import { ListAccountsCommandInput, ListAccountsCommandOutput } from "../commands/ListAccountsCommand";
|
|
6
|
-
import { LogoutCommandInput, LogoutCommandOutput } from "../commands/LogoutCommand";
|
|
7
|
-
/**
|
|
8
|
-
* serializeAws_restJson1GetRoleCredentialsCommand
|
|
9
|
-
*/
|
|
10
|
-
export declare const se_GetRoleCredentialsCommand: (input: GetRoleCredentialsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
11
|
-
/**
|
|
12
|
-
* serializeAws_restJson1ListAccountRolesCommand
|
|
13
|
-
*/
|
|
14
|
-
export declare const se_ListAccountRolesCommand: (input: ListAccountRolesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
15
|
-
/**
|
|
16
|
-
* serializeAws_restJson1ListAccountsCommand
|
|
17
|
-
*/
|
|
18
|
-
export declare const se_ListAccountsCommand: (input: ListAccountsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
19
|
-
/**
|
|
20
|
-
* serializeAws_restJson1LogoutCommand
|
|
21
|
-
*/
|
|
22
|
-
export declare const se_LogoutCommand: (input: LogoutCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
23
|
-
/**
|
|
24
|
-
* deserializeAws_restJson1GetRoleCredentialsCommand
|
|
25
|
-
*/
|
|
26
|
-
export declare const de_GetRoleCredentialsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetRoleCredentialsCommandOutput>;
|
|
27
|
-
/**
|
|
28
|
-
* deserializeAws_restJson1ListAccountRolesCommand
|
|
29
|
-
*/
|
|
30
|
-
export declare const de_ListAccountRolesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListAccountRolesCommandOutput>;
|
|
31
|
-
/**
|
|
32
|
-
* deserializeAws_restJson1ListAccountsCommand
|
|
33
|
-
*/
|
|
34
|
-
export declare const de_ListAccountsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListAccountsCommandOutput>;
|
|
35
|
-
/**
|
|
36
|
-
* deserializeAws_restJson1LogoutCommand
|
|
37
|
-
*/
|
|
38
|
-
export declare const de_LogoutCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<LogoutCommandOutput>;
|
|
@@ -1,53 +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
|
-
GetRoleCredentialsCommandInput,
|
|
8
|
-
GetRoleCredentialsCommandOutput,
|
|
9
|
-
} from "../commands/GetRoleCredentialsCommand";
|
|
10
|
-
import {
|
|
11
|
-
ListAccountRolesCommandInput,
|
|
12
|
-
ListAccountRolesCommandOutput,
|
|
13
|
-
} from "../commands/ListAccountRolesCommand";
|
|
14
|
-
import {
|
|
15
|
-
ListAccountsCommandInput,
|
|
16
|
-
ListAccountsCommandOutput,
|
|
17
|
-
} from "../commands/ListAccountsCommand";
|
|
18
|
-
import {
|
|
19
|
-
LogoutCommandInput,
|
|
20
|
-
LogoutCommandOutput,
|
|
21
|
-
} from "../commands/LogoutCommand";
|
|
22
|
-
export declare const se_GetRoleCredentialsCommand: (
|
|
23
|
-
input: GetRoleCredentialsCommandInput,
|
|
24
|
-
context: __SerdeContext
|
|
25
|
-
) => Promise<__HttpRequest>;
|
|
26
|
-
export declare const se_ListAccountRolesCommand: (
|
|
27
|
-
input: ListAccountRolesCommandInput,
|
|
28
|
-
context: __SerdeContext
|
|
29
|
-
) => Promise<__HttpRequest>;
|
|
30
|
-
export declare const se_ListAccountsCommand: (
|
|
31
|
-
input: ListAccountsCommandInput,
|
|
32
|
-
context: __SerdeContext
|
|
33
|
-
) => Promise<__HttpRequest>;
|
|
34
|
-
export declare const se_LogoutCommand: (
|
|
35
|
-
input: LogoutCommandInput,
|
|
36
|
-
context: __SerdeContext
|
|
37
|
-
) => Promise<__HttpRequest>;
|
|
38
|
-
export declare const de_GetRoleCredentialsCommand: (
|
|
39
|
-
output: __HttpResponse,
|
|
40
|
-
context: __SerdeContext
|
|
41
|
-
) => Promise<GetRoleCredentialsCommandOutput>;
|
|
42
|
-
export declare const de_ListAccountRolesCommand: (
|
|
43
|
-
output: __HttpResponse,
|
|
44
|
-
context: __SerdeContext
|
|
45
|
-
) => Promise<ListAccountRolesCommandOutput>;
|
|
46
|
-
export declare const de_ListAccountsCommand: (
|
|
47
|
-
output: __HttpResponse,
|
|
48
|
-
context: __SerdeContext
|
|
49
|
-
) => Promise<ListAccountsCommandOutput>;
|
|
50
|
-
export declare const de_LogoutCommand: (
|
|
51
|
-
output: __HttpResponse,
|
|
52
|
-
context: __SerdeContext
|
|
53
|
-
) => Promise<LogoutCommandOutput>;
|
package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/protocols/Aws_restJson1.js
DELETED
|
@@ -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>;
|