@aws-sdk/client-sso 3.1068.0 → 3.1069.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/auth/httpAuthSchemeProvider.js +9 -15
- package/dist-cjs/endpoint/bdd.js +2 -5
- package/dist-cjs/endpoint/endpointResolver.js +7 -11
- package/dist-cjs/index.js +54 -74
- package/dist-cjs/models/SSOServiceException.js +4 -8
- package/dist-cjs/models/errors.js +9 -16
- package/dist-cjs/runtimeConfig.browser.js +22 -26
- package/dist-cjs/runtimeConfig.js +28 -32
- package/dist-cjs/runtimeConfig.native.js +4 -7
- package/dist-cjs/runtimeConfig.shared.js +22 -26
- package/dist-cjs/schemas/schemas_0.js +47 -35
- package/package.json +10 -10
|
@@ -1,17 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.
|
|
4
|
-
const httpAuthSchemes_1 = require("@aws-sdk/core/httpAuthSchemes");
|
|
5
|
-
const client_1 = require("@smithy/core/client");
|
|
6
|
-
const defaultSSOHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
1
|
+
const { resolveAwsSdkSigV4Config } = require("@aws-sdk/core/httpAuthSchemes");
|
|
2
|
+
const { getSmithyContext, normalizeProvider } = require("@smithy/core/client");
|
|
3
|
+
exports.defaultSSOHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
7
4
|
return {
|
|
8
|
-
operation:
|
|
9
|
-
region: await
|
|
5
|
+
operation: getSmithyContext(context).operation,
|
|
6
|
+
region: await normalizeProvider(config.region)() || (() => {
|
|
10
7
|
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
|
11
8
|
})(),
|
|
12
9
|
};
|
|
13
10
|
};
|
|
14
|
-
exports.defaultSSOHttpAuthSchemeParametersProvider = defaultSSOHttpAuthSchemeParametersProvider;
|
|
15
11
|
function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
|
16
12
|
return {
|
|
17
13
|
schemeId: "aws.auth#sigv4",
|
|
@@ -32,7 +28,7 @@ function createSmithyApiNoAuthHttpAuthOption(authParameters) {
|
|
|
32
28
|
schemeId: "smithy.api#noAuth",
|
|
33
29
|
};
|
|
34
30
|
}
|
|
35
|
-
|
|
31
|
+
exports.defaultSSOHttpAuthSchemeProvider = (authParameters) => {
|
|
36
32
|
const options = [];
|
|
37
33
|
switch (authParameters.operation) {
|
|
38
34
|
case "GetRoleCredentials":
|
|
@@ -65,11 +61,9 @@ const defaultSSOHttpAuthSchemeProvider = (authParameters) => {
|
|
|
65
61
|
}
|
|
66
62
|
return options;
|
|
67
63
|
};
|
|
68
|
-
exports.
|
|
69
|
-
const
|
|
70
|
-
const config_0 = (0, httpAuthSchemes_1.resolveAwsSdkSigV4Config)(config);
|
|
64
|
+
exports.resolveHttpAuthSchemeConfig = (config) => {
|
|
65
|
+
const config_0 = resolveAwsSdkSigV4Config(config);
|
|
71
66
|
return Object.assign(config_0, {
|
|
72
|
-
authSchemePreference:
|
|
67
|
+
authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
|
|
73
68
|
});
|
|
74
69
|
};
|
|
75
|
-
exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
|
package/dist-cjs/endpoint/bdd.js
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.bdd = void 0;
|
|
4
|
-
const endpoints_1 = require("@smithy/core/endpoints");
|
|
1
|
+
const { BinaryDecisionDiagram } = require("@smithy/core/endpoints");
|
|
5
2
|
const k = "ref";
|
|
6
3
|
const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = { [k]: "Endpoint" }, h = { [k]: d }, i = {}, j = [{ [k]: "Region" }];
|
|
7
4
|
const _data = {
|
|
@@ -49,4 +46,4 @@ const nodes = new Int32Array([
|
|
|
49
46
|
3, r + 1, 14,
|
|
50
47
|
4, r + 2, r + 3,
|
|
51
48
|
]);
|
|
52
|
-
exports.bdd =
|
|
49
|
+
exports.bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
|
|
@@ -1,18 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const
|
|
5
|
-
const endpoints_1 = require("@smithy/core/endpoints");
|
|
6
|
-
const bdd_1 = require("./bdd");
|
|
7
|
-
const cache = new endpoints_1.EndpointCache({
|
|
1
|
+
const { awsEndpointFunctions } = require("@aws-sdk/core/client");
|
|
2
|
+
const { customEndpointFunctions, decideEndpoint, EndpointCache } = require("@smithy/core/endpoints");
|
|
3
|
+
const { bdd } = require("./bdd");
|
|
4
|
+
const cache = new EndpointCache({
|
|
8
5
|
size: 50,
|
|
9
6
|
params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
|
|
10
7
|
});
|
|
11
|
-
|
|
12
|
-
return cache.get(endpointParams, () =>
|
|
8
|
+
exports.defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
9
|
+
return cache.get(endpointParams, () => decideEndpoint(bdd, {
|
|
13
10
|
endpointParams: endpointParams,
|
|
14
11
|
logger: context.logger,
|
|
15
12
|
}));
|
|
16
13
|
};
|
|
17
|
-
|
|
18
|
-
endpoints_1.customEndpointFunctions.aws = client_1.awsEndpointFunctions;
|
|
14
|
+
customEndpointFunctions.aws = awsEndpointFunctions;
|
package/dist-cjs/index.js
CHANGED
|
@@ -1,18 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
var __exportStar = (m, e) => { Object.assign(e, m); };
|
|
2
|
+
const { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
|
|
3
|
+
const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");
|
|
4
|
+
const { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
|
|
5
|
+
exports.$Command = Command;
|
|
6
|
+
exports.__Client = Client;
|
|
7
|
+
const { resolveRegionConfig } = require("@smithy/core/config");
|
|
8
|
+
const { resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
|
|
9
|
+
const { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
|
|
10
|
+
const { resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
|
|
11
|
+
const { getSchemaSerdePlugin } = require("@smithy/core/schema");
|
|
12
|
+
const { resolveHttpAuthSchemeConfig, defaultSSOHttpAuthSchemeParametersProvider } = require("./auth/httpAuthSchemeProvider");
|
|
13
|
+
const { getRuntimeConfig } = require("./runtimeConfig");
|
|
14
|
+
const { GetRoleCredentials$, ListAccountRoles$, ListAccounts$, Logout$ } = require("./schemas/schemas_0");
|
|
15
|
+
__exportStar(require("./schemas/schemas_0"), exports);
|
|
16
|
+
__exportStar(require("./models/errors"), exports);
|
|
17
|
+
const { SSOServiceException } = require("./models/SSOServiceException");
|
|
18
|
+
exports.SSOServiceException = SSOServiceException;
|
|
16
19
|
|
|
17
20
|
const resolveClientEndpointParameters = (options) => {
|
|
18
21
|
return Object.assign(options, {
|
|
@@ -68,97 +71,97 @@ const resolveHttpAuthRuntimeConfig = (config) => {
|
|
|
68
71
|
};
|
|
69
72
|
|
|
70
73
|
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
71
|
-
const extensionConfiguration = Object.assign(
|
|
74
|
+
const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
72
75
|
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
73
|
-
return Object.assign(runtimeConfig,
|
|
76
|
+
return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
74
77
|
};
|
|
75
78
|
|
|
76
|
-
class SSOClient extends
|
|
79
|
+
class SSOClient extends Client {
|
|
77
80
|
config;
|
|
78
81
|
constructor(...[configuration]) {
|
|
79
|
-
const _config_0 =
|
|
82
|
+
const _config_0 = getRuntimeConfig(configuration || {});
|
|
80
83
|
super(_config_0);
|
|
81
84
|
this.initConfig = _config_0;
|
|
82
85
|
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
83
|
-
const _config_2 =
|
|
84
|
-
const _config_3 =
|
|
85
|
-
const _config_4 =
|
|
86
|
-
const _config_5 =
|
|
87
|
-
const _config_6 =
|
|
88
|
-
const _config_7 =
|
|
86
|
+
const _config_2 = resolveUserAgentConfig(_config_1);
|
|
87
|
+
const _config_3 = resolveRetryConfig(_config_2);
|
|
88
|
+
const _config_4 = resolveRegionConfig(_config_3);
|
|
89
|
+
const _config_5 = resolveHostHeaderConfig(_config_4);
|
|
90
|
+
const _config_6 = resolveEndpointConfig(_config_5);
|
|
91
|
+
const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
|
|
89
92
|
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
90
93
|
this.config = _config_8;
|
|
91
|
-
this.middlewareStack.use(
|
|
92
|
-
this.middlewareStack.use(
|
|
93
|
-
this.middlewareStack.use(
|
|
94
|
-
this.middlewareStack.use(
|
|
95
|
-
this.middlewareStack.use(
|
|
96
|
-
this.middlewareStack.use(
|
|
97
|
-
this.middlewareStack.use(
|
|
98
|
-
this.middlewareStack.use(
|
|
99
|
-
httpAuthSchemeParametersProvider:
|
|
100
|
-
identityProviderConfigProvider: async (config) => new
|
|
94
|
+
this.middlewareStack.use(getSchemaSerdePlugin(this.config));
|
|
95
|
+
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
96
|
+
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
97
|
+
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
98
|
+
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
99
|
+
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
100
|
+
this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
|
|
101
|
+
this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
102
|
+
httpAuthSchemeParametersProvider: defaultSSOHttpAuthSchemeParametersProvider,
|
|
103
|
+
identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({
|
|
101
104
|
"aws.auth#sigv4": config.credentials,
|
|
102
105
|
}),
|
|
103
106
|
}));
|
|
104
|
-
this.middlewareStack.use(
|
|
107
|
+
this.middlewareStack.use(getHttpSigningPlugin(this.config));
|
|
105
108
|
}
|
|
106
109
|
destroy() {
|
|
107
110
|
super.destroy();
|
|
108
111
|
}
|
|
109
112
|
}
|
|
110
113
|
|
|
111
|
-
class GetRoleCredentialsCommand extends
|
|
114
|
+
class GetRoleCredentialsCommand extends Command
|
|
112
115
|
.classBuilder()
|
|
113
116
|
.ep(commonParams)
|
|
114
117
|
.m(function (Command, cs, config, o) {
|
|
115
|
-
return [
|
|
118
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
116
119
|
})
|
|
117
120
|
.s("SWBPortalService", "GetRoleCredentials", {})
|
|
118
121
|
.n("SSOClient", "GetRoleCredentialsCommand")
|
|
119
|
-
.sc(
|
|
122
|
+
.sc(GetRoleCredentials$)
|
|
120
123
|
.build() {
|
|
121
124
|
}
|
|
122
125
|
|
|
123
|
-
class ListAccountRolesCommand extends
|
|
126
|
+
class ListAccountRolesCommand extends Command
|
|
124
127
|
.classBuilder()
|
|
125
128
|
.ep(commonParams)
|
|
126
129
|
.m(function (Command, cs, config, o) {
|
|
127
|
-
return [
|
|
130
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
128
131
|
})
|
|
129
132
|
.s("SWBPortalService", "ListAccountRoles", {})
|
|
130
133
|
.n("SSOClient", "ListAccountRolesCommand")
|
|
131
|
-
.sc(
|
|
134
|
+
.sc(ListAccountRoles$)
|
|
132
135
|
.build() {
|
|
133
136
|
}
|
|
134
137
|
|
|
135
|
-
class ListAccountsCommand extends
|
|
138
|
+
class ListAccountsCommand extends Command
|
|
136
139
|
.classBuilder()
|
|
137
140
|
.ep(commonParams)
|
|
138
141
|
.m(function (Command, cs, config, o) {
|
|
139
|
-
return [
|
|
142
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
140
143
|
})
|
|
141
144
|
.s("SWBPortalService", "ListAccounts", {})
|
|
142
145
|
.n("SSOClient", "ListAccountsCommand")
|
|
143
|
-
.sc(
|
|
146
|
+
.sc(ListAccounts$)
|
|
144
147
|
.build() {
|
|
145
148
|
}
|
|
146
149
|
|
|
147
|
-
class LogoutCommand extends
|
|
150
|
+
class LogoutCommand extends Command
|
|
148
151
|
.classBuilder()
|
|
149
152
|
.ep(commonParams)
|
|
150
153
|
.m(function (Command, cs, config, o) {
|
|
151
|
-
return [
|
|
154
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
152
155
|
})
|
|
153
156
|
.s("SWBPortalService", "Logout", {})
|
|
154
157
|
.n("SSOClient", "LogoutCommand")
|
|
155
|
-
.sc(
|
|
158
|
+
.sc(Logout$)
|
|
156
159
|
.build() {
|
|
157
160
|
}
|
|
158
161
|
|
|
159
|
-
const paginateListAccountRoles =
|
|
162
|
+
const paginateListAccountRoles = createPaginator(SSOClient, ListAccountRolesCommand, "nextToken", "nextToken", "maxResults");
|
|
160
163
|
|
|
161
|
-
const paginateListAccounts =
|
|
164
|
+
const paginateListAccounts = createPaginator(SSOClient, ListAccountsCommand, "nextToken", "nextToken", "maxResults");
|
|
162
165
|
|
|
163
166
|
const commands = {
|
|
164
167
|
GetRoleCredentialsCommand,
|
|
@@ -172,11 +175,8 @@ const paginators = {
|
|
|
172
175
|
};
|
|
173
176
|
class SSO extends SSOClient {
|
|
174
177
|
}
|
|
175
|
-
|
|
178
|
+
createAggregatedClient(commands, SSO, { paginators });
|
|
176
179
|
|
|
177
|
-
exports.$Command = client.Command;
|
|
178
|
-
exports.__Client = client.Client;
|
|
179
|
-
exports.SSOServiceException = SSOServiceException.SSOServiceException;
|
|
180
180
|
exports.GetRoleCredentialsCommand = GetRoleCredentialsCommand;
|
|
181
181
|
exports.ListAccountRolesCommand = ListAccountRolesCommand;
|
|
182
182
|
exports.ListAccountsCommand = ListAccountsCommand;
|
|
@@ -185,23 +185,3 @@ exports.SSO = SSO;
|
|
|
185
185
|
exports.SSOClient = SSOClient;
|
|
186
186
|
exports.paginateListAccountRoles = paginateListAccountRoles;
|
|
187
187
|
exports.paginateListAccounts = paginateListAccounts;
|
|
188
|
-
Object.prototype.hasOwnProperty.call(schemas_0, '__proto__') &&
|
|
189
|
-
!Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
|
|
190
|
-
Object.defineProperty(exports, '__proto__', {
|
|
191
|
-
enumerable: true,
|
|
192
|
-
value: schemas_0['__proto__']
|
|
193
|
-
});
|
|
194
|
-
|
|
195
|
-
Object.keys(schemas_0).forEach(function (k) {
|
|
196
|
-
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = schemas_0[k];
|
|
197
|
-
});
|
|
198
|
-
Object.prototype.hasOwnProperty.call(errors, '__proto__') &&
|
|
199
|
-
!Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
|
|
200
|
-
Object.defineProperty(exports, '__proto__', {
|
|
201
|
-
enumerable: true,
|
|
202
|
-
value: errors['__proto__']
|
|
203
|
-
});
|
|
204
|
-
|
|
205
|
-
Object.keys(errors).forEach(function (k) {
|
|
206
|
-
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = errors[k];
|
|
207
|
-
});
|
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.SSOServiceException =
|
|
4
|
-
const client_1 = require("@smithy/core/client");
|
|
5
|
-
Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return client_1.ServiceException; } });
|
|
6
|
-
class SSOServiceException extends client_1.ServiceException {
|
|
1
|
+
const { ServiceException: __ServiceException } = require("@smithy/core/client");
|
|
2
|
+
exports.__ServiceException = __ServiceException;
|
|
3
|
+
exports.SSOServiceException = class SSOServiceException extends __ServiceException {
|
|
7
4
|
constructor(options) {
|
|
8
5
|
super(options);
|
|
9
6
|
Object.setPrototypeOf(this, SSOServiceException.prototype);
|
|
10
7
|
}
|
|
11
|
-
}
|
|
12
|
-
exports.SSOServiceException = SSOServiceException;
|
|
8
|
+
};
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.UnauthorizedException = exports.TooManyRequestsException = exports.ResourceNotFoundException = exports.InvalidRequestException = void 0;
|
|
4
|
-
const SSOServiceException_1 = require("./SSOServiceException");
|
|
5
|
-
class InvalidRequestException extends SSOServiceException_1.SSOServiceException {
|
|
1
|
+
const { SSOServiceException: __BaseException } = require("./SSOServiceException");
|
|
2
|
+
exports.InvalidRequestException = class InvalidRequestException extends __BaseException {
|
|
6
3
|
name = "InvalidRequestException";
|
|
7
4
|
$fault = "client";
|
|
8
5
|
constructor(opts) {
|
|
@@ -13,9 +10,8 @@ class InvalidRequestException extends SSOServiceException_1.SSOServiceException
|
|
|
13
10
|
});
|
|
14
11
|
Object.setPrototypeOf(this, InvalidRequestException.prototype);
|
|
15
12
|
}
|
|
16
|
-
}
|
|
17
|
-
exports.
|
|
18
|
-
class ResourceNotFoundException extends SSOServiceException_1.SSOServiceException {
|
|
13
|
+
};
|
|
14
|
+
exports.ResourceNotFoundException = class ResourceNotFoundException extends __BaseException {
|
|
19
15
|
name = "ResourceNotFoundException";
|
|
20
16
|
$fault = "client";
|
|
21
17
|
constructor(opts) {
|
|
@@ -26,9 +22,8 @@ class ResourceNotFoundException extends SSOServiceException_1.SSOServiceExceptio
|
|
|
26
22
|
});
|
|
27
23
|
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
28
24
|
}
|
|
29
|
-
}
|
|
30
|
-
exports.
|
|
31
|
-
class TooManyRequestsException extends SSOServiceException_1.SSOServiceException {
|
|
25
|
+
};
|
|
26
|
+
exports.TooManyRequestsException = class TooManyRequestsException extends __BaseException {
|
|
32
27
|
name = "TooManyRequestsException";
|
|
33
28
|
$fault = "client";
|
|
34
29
|
constructor(opts) {
|
|
@@ -39,9 +34,8 @@ class TooManyRequestsException extends SSOServiceException_1.SSOServiceException
|
|
|
39
34
|
});
|
|
40
35
|
Object.setPrototypeOf(this, TooManyRequestsException.prototype);
|
|
41
36
|
}
|
|
42
|
-
}
|
|
43
|
-
exports.
|
|
44
|
-
class UnauthorizedException extends SSOServiceException_1.SSOServiceException {
|
|
37
|
+
};
|
|
38
|
+
exports.UnauthorizedException = class UnauthorizedException extends __BaseException {
|
|
45
39
|
name = "UnauthorizedException";
|
|
46
40
|
$fault = "client";
|
|
47
41
|
constructor(opts) {
|
|
@@ -52,5 +46,4 @@ class UnauthorizedException extends SSOServiceException_1.SSOServiceException {
|
|
|
52
46
|
});
|
|
53
47
|
Object.setPrototypeOf(this, UnauthorizedException.prototype);
|
|
54
48
|
}
|
|
55
|
-
}
|
|
56
|
-
exports.UnauthorizedException = UnauthorizedException;
|
|
49
|
+
};
|
|
@@ -1,35 +1,31 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const retry_1 = require("@smithy/core/retry");
|
|
11
|
-
const serde_1 = require("@smithy/core/serde");
|
|
12
|
-
const fetch_http_handler_1 = require("@smithy/fetch-http-handler");
|
|
13
|
-
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
1
|
+
const packageInfo = require("../package.json");
|
|
2
|
+
const { Sha256 } = require("@aws-crypto/sha256-browser");
|
|
3
|
+
const { createDefaultUserAgentProvider } = require("@aws-sdk/core/client");
|
|
4
|
+
const { invalidProvider, loadConfigsForDefaultMode } = require("@smithy/core/client");
|
|
5
|
+
const { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT, resolveDefaultsModeConfig } = require("@smithy/core/config");
|
|
6
|
+
const { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } = require("@smithy/core/retry");
|
|
7
|
+
const { calculateBodyLength } = require("@smithy/core/serde");
|
|
8
|
+
const { FetchHttpHandler: RequestHandler, streamCollector } = require("@smithy/fetch-http-handler");
|
|
9
|
+
const { getRuntimeConfig: getSharedRuntimeConfig } = require("./runtimeConfig.shared");
|
|
14
10
|
const getRuntimeConfig = (config) => {
|
|
15
|
-
const defaultsMode =
|
|
16
|
-
const defaultConfigProvider = () => defaultsMode().then(
|
|
17
|
-
const clientSharedValues = (
|
|
11
|
+
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
12
|
+
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
13
|
+
const clientSharedValues = getSharedRuntimeConfig(config);
|
|
18
14
|
return {
|
|
19
15
|
...clientSharedValues,
|
|
20
16
|
...config,
|
|
21
17
|
runtime: "browser",
|
|
22
18
|
defaultsMode,
|
|
23
|
-
bodyLengthChecker: config?.bodyLengthChecker ??
|
|
24
|
-
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
25
|
-
maxAttempts: config?.maxAttempts ??
|
|
26
|
-
region: config?.region ??
|
|
27
|
-
requestHandler:
|
|
28
|
-
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode ||
|
|
29
|
-
sha256: config?.sha256 ??
|
|
30
|
-
streamCollector: config?.streamCollector ??
|
|
31
|
-
useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(
|
|
32
|
-
useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(
|
|
19
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
20
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
21
|
+
maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
|
|
22
|
+
region: config?.region ?? invalidProvider("Region is missing"),
|
|
23
|
+
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
24
|
+
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
|
|
25
|
+
sha256: config?.sha256 ?? Sha256,
|
|
26
|
+
streamCollector: config?.streamCollector ?? streamCollector,
|
|
27
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
28
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
|
|
33
29
|
};
|
|
34
30
|
};
|
|
35
31
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -1,22 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const retry_1 = require("@smithy/core/retry");
|
|
11
|
-
const serde_1 = require("@smithy/core/serde");
|
|
12
|
-
const node_http_handler_1 = require("@smithy/node-http-handler");
|
|
13
|
-
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
1
|
+
const packageInfo = require("../package.json");
|
|
2
|
+
const { createDefaultUserAgentProvider, emitWarningIfUnsupportedVersion: awsCheckVersion, NODE_APP_ID_CONFIG_OPTIONS } = require("@aws-sdk/core/client");
|
|
3
|
+
const { NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
|
|
4
|
+
const { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } = require("@smithy/core/client");
|
|
5
|
+
const { loadConfig: loadNodeConfig, NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, resolveDefaultsModeConfig } = require("@smithy/core/config");
|
|
6
|
+
const { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } = require("@smithy/core/retry");
|
|
7
|
+
const { calculateBodyLength, Hash } = require("@smithy/core/serde");
|
|
8
|
+
const { NodeHttpHandler: RequestHandler, streamCollector } = require("@smithy/node-http-handler");
|
|
9
|
+
const { getRuntimeConfig: getSharedRuntimeConfig } = require("./runtimeConfig.shared");
|
|
14
10
|
const getRuntimeConfig = (config) => {
|
|
15
|
-
|
|
16
|
-
const defaultsMode =
|
|
17
|
-
const defaultConfigProvider = () => defaultsMode().then(
|
|
18
|
-
const clientSharedValues = (
|
|
19
|
-
(
|
|
11
|
+
emitWarningIfUnsupportedVersion(process.version);
|
|
12
|
+
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
13
|
+
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
14
|
+
const clientSharedValues = getSharedRuntimeConfig(config);
|
|
15
|
+
awsCheckVersion(process.version);
|
|
20
16
|
const loaderConfig = {
|
|
21
17
|
profile: config?.profile,
|
|
22
18
|
logger: clientSharedValues.logger,
|
|
@@ -26,22 +22,22 @@ const getRuntimeConfig = (config) => {
|
|
|
26
22
|
...config,
|
|
27
23
|
runtime: "node",
|
|
28
24
|
defaultsMode,
|
|
29
|
-
authSchemePreference: config?.authSchemePreference ?? (
|
|
30
|
-
bodyLengthChecker: config?.bodyLengthChecker ??
|
|
31
|
-
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
32
|
-
maxAttempts: config?.maxAttempts ?? (
|
|
33
|
-
region: config?.region ?? (
|
|
34
|
-
requestHandler:
|
|
25
|
+
authSchemePreference: config?.authSchemePreference ?? loadNodeConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
|
|
26
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
27
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
28
|
+
maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
|
29
|
+
region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
|
30
|
+
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
35
31
|
retryMode: config?.retryMode ??
|
|
36
|
-
(
|
|
37
|
-
...
|
|
38
|
-
default: async () => (await defaultConfigProvider()).retryMode ||
|
|
32
|
+
loadNodeConfig({
|
|
33
|
+
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
34
|
+
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
|
39
35
|
}, config),
|
|
40
|
-
sha256: config?.sha256 ??
|
|
41
|
-
streamCollector: config?.streamCollector ??
|
|
42
|
-
useDualstackEndpoint: config?.useDualstackEndpoint ?? (
|
|
43
|
-
useFipsEndpoint: config?.useFipsEndpoint ?? (
|
|
44
|
-
userAgentAppId: config?.userAgentAppId ?? (
|
|
36
|
+
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
37
|
+
streamCollector: config?.streamCollector ?? streamCollector,
|
|
38
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
39
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
40
|
+
userAgentAppId: config?.userAgentAppId ?? loadNodeConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
|
|
45
41
|
};
|
|
46
42
|
};
|
|
47
43
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -1,15 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.getRuntimeConfig = void 0;
|
|
4
|
-
const sha256_js_1 = require("@aws-crypto/sha256-js");
|
|
5
|
-
const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
|
|
1
|
+
const { Sha256 } = require("@aws-crypto/sha256-js");
|
|
2
|
+
const { getRuntimeConfig: getBrowserRuntimeConfig } = require("./runtimeConfig.browser");
|
|
6
3
|
const getRuntimeConfig = (config) => {
|
|
7
|
-
const browserDefaults = (
|
|
4
|
+
const browserDefaults = getBrowserRuntimeConfig(config);
|
|
8
5
|
return {
|
|
9
6
|
...browserDefaults,
|
|
10
7
|
...config,
|
|
11
8
|
runtime: "react-native",
|
|
12
|
-
sha256: config?.sha256 ??
|
|
9
|
+
sha256: config?.sha256 ?? Sha256,
|
|
13
10
|
};
|
|
14
11
|
};
|
|
15
12
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -1,48 +1,44 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
const endpointResolver_1 = require("./endpoint/endpointResolver");
|
|
12
|
-
const schemas_0_1 = require("./schemas/schemas_0");
|
|
13
|
-
const getRuntimeConfig = (config) => {
|
|
1
|
+
const { AwsSdkSigV4Signer } = require("@aws-sdk/core/httpAuthSchemes");
|
|
2
|
+
const { AwsRestJsonProtocol } = require("@aws-sdk/core/protocols");
|
|
3
|
+
const { NoAuthSigner } = require("@smithy/core");
|
|
4
|
+
const { NoOpLogger } = require("@smithy/core/client");
|
|
5
|
+
const { parseUrl } = require("@smithy/core/protocols");
|
|
6
|
+
const { fromBase64, fromUtf8, toBase64, toUtf8 } = require("@smithy/core/serde");
|
|
7
|
+
const { defaultSSOHttpAuthSchemeProvider } = require("./auth/httpAuthSchemeProvider");
|
|
8
|
+
const { defaultEndpointResolver } = require("./endpoint/endpointResolver");
|
|
9
|
+
const { errorTypeRegistries } = require("./schemas/schemas_0");
|
|
10
|
+
exports.getRuntimeConfig = (config) => {
|
|
14
11
|
return {
|
|
15
12
|
apiVersion: "2019-06-10",
|
|
16
|
-
base64Decoder: config?.base64Decoder ??
|
|
17
|
-
base64Encoder: config?.base64Encoder ??
|
|
13
|
+
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
14
|
+
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
18
15
|
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
19
|
-
endpointProvider: config?.endpointProvider ??
|
|
16
|
+
endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
|
|
20
17
|
extensions: config?.extensions ?? [],
|
|
21
|
-
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ??
|
|
18
|
+
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultSSOHttpAuthSchemeProvider,
|
|
22
19
|
httpAuthSchemes: config?.httpAuthSchemes ?? [
|
|
23
20
|
{
|
|
24
21
|
schemeId: "aws.auth#sigv4",
|
|
25
22
|
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
|
26
|
-
signer: new
|
|
23
|
+
signer: new AwsSdkSigV4Signer(),
|
|
27
24
|
},
|
|
28
25
|
{
|
|
29
26
|
schemeId: "smithy.api#noAuth",
|
|
30
27
|
identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})),
|
|
31
|
-
signer: new
|
|
28
|
+
signer: new NoAuthSigner(),
|
|
32
29
|
},
|
|
33
30
|
],
|
|
34
|
-
logger: config?.logger ?? new
|
|
35
|
-
protocol: config?.protocol ??
|
|
31
|
+
logger: config?.logger ?? new NoOpLogger(),
|
|
32
|
+
protocol: config?.protocol ?? AwsRestJsonProtocol,
|
|
36
33
|
protocolSettings: config?.protocolSettings ?? {
|
|
37
34
|
defaultNamespace: "com.amazonaws.sso",
|
|
38
|
-
errorTypeRegistries
|
|
35
|
+
errorTypeRegistries,
|
|
39
36
|
version: "2019-06-10",
|
|
40
37
|
serviceTarget: "SWBPortalService",
|
|
41
38
|
},
|
|
42
39
|
serviceId: config?.serviceId ?? "SSO",
|
|
43
|
-
urlParser: config?.urlParser ??
|
|
44
|
-
utf8Decoder: config?.utf8Decoder ??
|
|
45
|
-
utf8Encoder: config?.utf8Encoder ??
|
|
40
|
+
urlParser: config?.urlParser ?? parseUrl,
|
|
41
|
+
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
42
|
+
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
46
43
|
};
|
|
47
44
|
};
|
|
48
|
-
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Logout$ = exports.ListAccounts$ = exports.ListAccountRoles$ = exports.GetRoleCredentials$ = exports.RoleInfo$ = exports.RoleCredentials$ = exports.LogoutRequest$ = exports.ListAccountsResponse$ = exports.ListAccountsRequest$ = exports.ListAccountRolesResponse$ = exports.ListAccountRolesRequest$ = exports.GetRoleCredentialsResponse$ = exports.GetRoleCredentialsRequest$ = exports.AccountInfo$ = exports.errorTypeRegistries = exports.UnauthorizedException$ = exports.TooManyRequestsException$ = exports.ResourceNotFoundException$ = exports.InvalidRequestException$ = exports.SSOServiceException$ = void 0;
|
|
4
1
|
const _AI = "AccountInfo";
|
|
5
2
|
const _ALT = "AccountListType";
|
|
6
3
|
const _ATT = "AccessTokenType";
|
|
@@ -52,37 +49,42 @@ const _sAK = "secretAccessKey";
|
|
|
52
49
|
const _sT = "sessionToken";
|
|
53
50
|
const _xasbt = "x-amz-sso_bearer_token";
|
|
54
51
|
const n0 = "com.amazonaws.sso";
|
|
55
|
-
const
|
|
56
|
-
const
|
|
57
|
-
const
|
|
58
|
-
const _s_registry =
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
52
|
+
const { TypeRegistry } = require("@smithy/core/schema");
|
|
53
|
+
const { InvalidRequestException, ResourceNotFoundException, TooManyRequestsException, UnauthorizedException } = require("../models/errors");
|
|
54
|
+
const { SSOServiceException } = require("../models/SSOServiceException");
|
|
55
|
+
const _s_registry = TypeRegistry.for(_s);
|
|
56
|
+
const SSOServiceException$ = [-3, _s, "SSOServiceException", 0, [], []];
|
|
57
|
+
exports.SSOServiceException$ = SSOServiceException$;
|
|
58
|
+
_s_registry.registerError(SSOServiceException$, SSOServiceException);
|
|
59
|
+
const n0_registry = TypeRegistry.for(n0);
|
|
60
|
+
const InvalidRequestException$ = [-3, n0, _IRE,
|
|
63
61
|
{ [_e]: _c, [_hE]: 400 },
|
|
64
62
|
[_m],
|
|
65
63
|
[0]
|
|
66
64
|
];
|
|
67
|
-
|
|
68
|
-
|
|
65
|
+
exports.InvalidRequestException$ = InvalidRequestException$;
|
|
66
|
+
n0_registry.registerError(InvalidRequestException$, InvalidRequestException);
|
|
67
|
+
const ResourceNotFoundException$ = [-3, n0, _RNFE,
|
|
69
68
|
{ [_e]: _c, [_hE]: 404 },
|
|
70
69
|
[_m],
|
|
71
70
|
[0]
|
|
72
71
|
];
|
|
73
|
-
|
|
74
|
-
|
|
72
|
+
exports.ResourceNotFoundException$ = ResourceNotFoundException$;
|
|
73
|
+
n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
|
|
74
|
+
const TooManyRequestsException$ = [-3, n0, _TMRE,
|
|
75
75
|
{ [_e]: _c, [_hE]: 429 },
|
|
76
76
|
[_m],
|
|
77
77
|
[0]
|
|
78
78
|
];
|
|
79
|
-
|
|
80
|
-
|
|
79
|
+
exports.TooManyRequestsException$ = TooManyRequestsException$;
|
|
80
|
+
n0_registry.registerError(TooManyRequestsException$, TooManyRequestsException);
|
|
81
|
+
const UnauthorizedException$ = [-3, n0, _UE,
|
|
81
82
|
{ [_e]: _c, [_hE]: 401 },
|
|
82
83
|
[_m],
|
|
83
84
|
[0]
|
|
84
85
|
];
|
|
85
|
-
|
|
86
|
+
exports.UnauthorizedException$ = UnauthorizedException$;
|
|
87
|
+
n0_registry.registerError(UnauthorizedException$, UnauthorizedException);
|
|
86
88
|
exports.errorTypeRegistries = [
|
|
87
89
|
_s_registry,
|
|
88
90
|
n0_registry,
|
|
@@ -90,72 +92,82 @@ exports.errorTypeRegistries = [
|
|
|
90
92
|
var AccessTokenType = [0, n0, _ATT, 8, 0];
|
|
91
93
|
var SecretAccessKeyType = [0, n0, _SAKT, 8, 0];
|
|
92
94
|
var SessionTokenType = [0, n0, _STT, 8, 0];
|
|
93
|
-
|
|
95
|
+
const AccountInfo$ = [3, n0, _AI,
|
|
94
96
|
0,
|
|
95
97
|
[_aI, _aN, _eA],
|
|
96
98
|
[0, 0, 0]
|
|
97
99
|
];
|
|
98
|
-
exports.
|
|
100
|
+
exports.AccountInfo$ = AccountInfo$;
|
|
101
|
+
const GetRoleCredentialsRequest$ = [3, n0, _GRCR,
|
|
99
102
|
0,
|
|
100
103
|
[_rN, _aI, _aT],
|
|
101
104
|
[[0, { [_hQ]: _rn }], [0, { [_hQ]: _ai }], [() => AccessTokenType, { [_hH]: _xasbt }]], 3
|
|
102
105
|
];
|
|
103
|
-
exports.
|
|
106
|
+
exports.GetRoleCredentialsRequest$ = GetRoleCredentialsRequest$;
|
|
107
|
+
const GetRoleCredentialsResponse$ = [3, n0, _GRCRe,
|
|
104
108
|
0,
|
|
105
109
|
[_rC],
|
|
106
|
-
[[() =>
|
|
110
|
+
[[() => RoleCredentials$, 0]]
|
|
107
111
|
];
|
|
108
|
-
exports.
|
|
112
|
+
exports.GetRoleCredentialsResponse$ = GetRoleCredentialsResponse$;
|
|
113
|
+
const ListAccountRolesRequest$ = [3, n0, _LARR,
|
|
109
114
|
0,
|
|
110
115
|
[_aT, _aI, _nT, _mR],
|
|
111
116
|
[[() => AccessTokenType, { [_hH]: _xasbt }], [0, { [_hQ]: _ai }], [0, { [_hQ]: _nt }], [1, { [_hQ]: _mr }]], 2
|
|
112
117
|
];
|
|
113
|
-
exports.
|
|
118
|
+
exports.ListAccountRolesRequest$ = ListAccountRolesRequest$;
|
|
119
|
+
const ListAccountRolesResponse$ = [3, n0, _LARRi,
|
|
114
120
|
0,
|
|
115
121
|
[_nT, _rL],
|
|
116
122
|
[0, () => RoleListType]
|
|
117
123
|
];
|
|
118
|
-
exports.
|
|
124
|
+
exports.ListAccountRolesResponse$ = ListAccountRolesResponse$;
|
|
125
|
+
const ListAccountsRequest$ = [3, n0, _LAR,
|
|
119
126
|
0,
|
|
120
127
|
[_aT, _nT, _mR],
|
|
121
128
|
[[() => AccessTokenType, { [_hH]: _xasbt }], [0, { [_hQ]: _nt }], [1, { [_hQ]: _mr }]], 1
|
|
122
129
|
];
|
|
123
|
-
exports.
|
|
130
|
+
exports.ListAccountsRequest$ = ListAccountsRequest$;
|
|
131
|
+
const ListAccountsResponse$ = [3, n0, _LARi,
|
|
124
132
|
0,
|
|
125
133
|
[_nT, _aL],
|
|
126
134
|
[0, () => AccountListType]
|
|
127
135
|
];
|
|
128
|
-
exports.
|
|
136
|
+
exports.ListAccountsResponse$ = ListAccountsResponse$;
|
|
137
|
+
const LogoutRequest$ = [3, n0, _LR,
|
|
129
138
|
0,
|
|
130
139
|
[_aT],
|
|
131
140
|
[[() => AccessTokenType, { [_hH]: _xasbt }]], 1
|
|
132
141
|
];
|
|
133
|
-
exports.
|
|
142
|
+
exports.LogoutRequest$ = LogoutRequest$;
|
|
143
|
+
const RoleCredentials$ = [3, n0, _RC,
|
|
134
144
|
0,
|
|
135
145
|
[_aKI, _sAK, _sT, _ex],
|
|
136
146
|
[0, [() => SecretAccessKeyType, 0], [() => SessionTokenType, 0], 1]
|
|
137
147
|
];
|
|
138
|
-
exports.
|
|
148
|
+
exports.RoleCredentials$ = RoleCredentials$;
|
|
149
|
+
const RoleInfo$ = [3, n0, _RI,
|
|
139
150
|
0,
|
|
140
151
|
[_rN, _aI],
|
|
141
152
|
[0, 0]
|
|
142
153
|
];
|
|
154
|
+
exports.RoleInfo$ = RoleInfo$;
|
|
143
155
|
var __Unit = "unit";
|
|
144
156
|
var AccountListType = [1, n0, _ALT,
|
|
145
|
-
0, () =>
|
|
157
|
+
0, () => AccountInfo$
|
|
146
158
|
];
|
|
147
159
|
var RoleListType = [1, n0, _RLT,
|
|
148
|
-
0, () =>
|
|
160
|
+
0, () => RoleInfo$
|
|
149
161
|
];
|
|
150
162
|
exports.GetRoleCredentials$ = [9, n0, _GRC,
|
|
151
|
-
{ [_h]: ["GET", "/federation/credentials", 200] }, () =>
|
|
163
|
+
{ [_h]: ["GET", "/federation/credentials", 200] }, () => GetRoleCredentialsRequest$, () => GetRoleCredentialsResponse$
|
|
152
164
|
];
|
|
153
165
|
exports.ListAccountRoles$ = [9, n0, _LARis,
|
|
154
|
-
{ [_h]: ["GET", "/assignment/roles", 200] }, () =>
|
|
166
|
+
{ [_h]: ["GET", "/assignment/roles", 200] }, () => ListAccountRolesRequest$, () => ListAccountRolesResponse$
|
|
155
167
|
];
|
|
156
168
|
exports.ListAccounts$ = [9, n0, _LA,
|
|
157
|
-
{ [_h]: ["GET", "/assignment/accounts", 200] }, () =>
|
|
169
|
+
{ [_h]: ["GET", "/assignment/accounts", 200] }, () => ListAccountsRequest$, () => ListAccountsResponse$
|
|
158
170
|
];
|
|
159
171
|
exports.Logout$ = [9, n0, _L,
|
|
160
|
-
{ [_h]: ["POST", "/logout", 200] }, () =>
|
|
172
|
+
{ [_h]: ["POST", "/logout", 200] }, () => LogoutRequest$, () => __Unit
|
|
161
173
|
];
|
package/package.json
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-sso",
|
|
3
3
|
"description": "AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.1069.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline",
|
|
8
|
-
"build:es": "tsc -p tsconfig.es.json",
|
|
8
|
+
"build:es": "premove dist-es && tsc -p tsconfig.es.json",
|
|
9
9
|
"build:include:deps": "yarn g:turbo run build -F=\"$npm_package_name\"",
|
|
10
|
-
"build:types": "tsc -p tsconfig.types.json",
|
|
10
|
+
"build:types": "premove dist-types && tsc -p tsconfig.types.json",
|
|
11
11
|
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
|
|
12
|
-
"clean": "premove dist-cjs dist-es dist-types
|
|
12
|
+
"clean": "premove dist-cjs dist-es dist-types",
|
|
13
13
|
"extract:docs": "api-extractor run --local",
|
|
14
|
-
"generate:client": "node ../../scripts/generate-clients/single-service
|
|
14
|
+
"generate:client": "node ../../scripts/generate-clients/single-service",
|
|
15
15
|
"test": "yarn g:vitest run --passWithNoTests",
|
|
16
|
-
"test:
|
|
16
|
+
"test:watch": "yarn g:vitest watch --passWithNoTests",
|
|
17
17
|
"test:integration": "yarn g:vitest run --passWithNoTests -c vitest.config.integ.mts",
|
|
18
|
-
"test:integration:watch": "yarn g:vitest
|
|
19
|
-
"test:
|
|
18
|
+
"test:integration:watch": "yarn g:vitest watch --passWithNoTests -c vitest.config.integ.mts",
|
|
19
|
+
"test:index": "tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs"
|
|
20
20
|
},
|
|
21
21
|
"main": "./dist-cjs/index.js",
|
|
22
22
|
"types": "./dist-types/index.d.ts",
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
27
27
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
28
|
-
"@aws-sdk/core": "^3.974.
|
|
29
|
-
"@aws-sdk/types": "^3.973.
|
|
28
|
+
"@aws-sdk/core": "^3.974.21",
|
|
29
|
+
"@aws-sdk/types": "^3.973.13",
|
|
30
30
|
"@smithy/core": "^3.24.6",
|
|
31
31
|
"@smithy/fetch-http-handler": "^5.4.6",
|
|
32
32
|
"@smithy/node-http-handler": "^4.7.6",
|