@aws-sdk/client-sso-oidc 3.54.0 → 3.56.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/CHANGELOG.md +24 -0
- package/dist-cjs/SSOOIDCClient.js +11 -11
- package/dist-cjs/commands/CreateTokenCommand.js +3 -3
- package/dist-cjs/commands/RegisterClientCommand.js +3 -3
- package/dist-cjs/commands/StartDeviceAuthorizationCommand.js +3 -3
- package/dist-cjs/endpoints.js +1 -1
- package/dist-cjs/protocols/Aws_restJson1.js +59 -59
- package/dist-cjs/runtimeConfig.browser.js +4 -4
- package/dist-cjs/runtimeConfig.js +8 -8
- package/dist-cjs/runtimeConfig.native.js +1 -1
- package/dist-es/SSOOIDC.js +3 -3
- package/dist-es/protocols/Aws_restJson1.js +3 -3
- package/dist-types/runtimeConfig.native.d.ts +2 -2
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -2
- package/package.json +31 -31
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,30 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.56.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.55.0...v3.56.0) (2022-03-24)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-sso-oidc
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.55.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.54.1...v3.55.0) (2022-03-21)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @aws-sdk/client-sso-oidc
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
## [3.54.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.54.0...v3.54.1) (2022-03-15)
|
|
23
|
+
|
|
24
|
+
**Note:** Version bump only for package @aws-sdk/client-sso-oidc
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
6
30
|
# [3.54.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.53.1...v3.54.0) (2022-03-11)
|
|
7
31
|
|
|
8
32
|
**Note:** Version bump only for package @aws-sdk/client-sso-oidc
|
|
@@ -11,19 +11,19 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
|
11
11
|
const runtimeConfig_1 = require("./runtimeConfig");
|
|
12
12
|
class SSOOIDCClient extends smithy_client_1.Client {
|
|
13
13
|
constructor(configuration) {
|
|
14
|
-
const _config_0 = runtimeConfig_1.getRuntimeConfig(configuration);
|
|
15
|
-
const _config_1 = config_resolver_1.resolveRegionConfig(_config_0);
|
|
16
|
-
const _config_2 = config_resolver_1.resolveEndpointsConfig(_config_1);
|
|
17
|
-
const _config_3 = middleware_retry_1.resolveRetryConfig(_config_2);
|
|
18
|
-
const _config_4 = middleware_host_header_1.resolveHostHeaderConfig(_config_3);
|
|
19
|
-
const _config_5 = middleware_user_agent_1.resolveUserAgentConfig(_config_4);
|
|
14
|
+
const _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration);
|
|
15
|
+
const _config_1 = (0, config_resolver_1.resolveRegionConfig)(_config_0);
|
|
16
|
+
const _config_2 = (0, config_resolver_1.resolveEndpointsConfig)(_config_1);
|
|
17
|
+
const _config_3 = (0, middleware_retry_1.resolveRetryConfig)(_config_2);
|
|
18
|
+
const _config_4 = (0, middleware_host_header_1.resolveHostHeaderConfig)(_config_3);
|
|
19
|
+
const _config_5 = (0, middleware_user_agent_1.resolveUserAgentConfig)(_config_4);
|
|
20
20
|
super(_config_5);
|
|
21
21
|
this.config = _config_5;
|
|
22
|
-
this.middlewareStack.use(middleware_retry_1.getRetryPlugin(this.config));
|
|
23
|
-
this.middlewareStack.use(middleware_content_length_1.getContentLengthPlugin(this.config));
|
|
24
|
-
this.middlewareStack.use(middleware_host_header_1.getHostHeaderPlugin(this.config));
|
|
25
|
-
this.middlewareStack.use(middleware_logger_1.getLoggerPlugin(this.config));
|
|
26
|
-
this.middlewareStack.use(middleware_user_agent_1.getUserAgentPlugin(this.config));
|
|
22
|
+
this.middlewareStack.use((0, middleware_retry_1.getRetryPlugin)(this.config));
|
|
23
|
+
this.middlewareStack.use((0, middleware_content_length_1.getContentLengthPlugin)(this.config));
|
|
24
|
+
this.middlewareStack.use((0, middleware_host_header_1.getHostHeaderPlugin)(this.config));
|
|
25
|
+
this.middlewareStack.use((0, middleware_logger_1.getLoggerPlugin)(this.config));
|
|
26
|
+
this.middlewareStack.use((0, middleware_user_agent_1.getUserAgentPlugin)(this.config));
|
|
27
27
|
}
|
|
28
28
|
destroy() {
|
|
29
29
|
super.destroy();
|
|
@@ -11,7 +11,7 @@ class CreateTokenCommand extends smithy_client_1.Command {
|
|
|
11
11
|
this.input = input;
|
|
12
12
|
}
|
|
13
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
-
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
14
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
15
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
16
16
|
const { logger } = configuration;
|
|
17
17
|
const clientName = "SSOOIDCClient";
|
|
@@ -27,10 +27,10 @@ class CreateTokenCommand extends smithy_client_1.Command {
|
|
|
27
27
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
28
|
}
|
|
29
29
|
serialize(input, context) {
|
|
30
|
-
return Aws_restJson1_1.serializeAws_restJson1CreateTokenCommand(input, context);
|
|
30
|
+
return (0, Aws_restJson1_1.serializeAws_restJson1CreateTokenCommand)(input, context);
|
|
31
31
|
}
|
|
32
32
|
deserialize(output, context) {
|
|
33
|
-
return Aws_restJson1_1.deserializeAws_restJson1CreateTokenCommand(output, context);
|
|
33
|
+
return (0, Aws_restJson1_1.deserializeAws_restJson1CreateTokenCommand)(output, context);
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
exports.CreateTokenCommand = CreateTokenCommand;
|
|
@@ -11,7 +11,7 @@ class RegisterClientCommand extends smithy_client_1.Command {
|
|
|
11
11
|
this.input = input;
|
|
12
12
|
}
|
|
13
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
-
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
14
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
15
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
16
16
|
const { logger } = configuration;
|
|
17
17
|
const clientName = "SSOOIDCClient";
|
|
@@ -27,10 +27,10 @@ class RegisterClientCommand extends smithy_client_1.Command {
|
|
|
27
27
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
28
|
}
|
|
29
29
|
serialize(input, context) {
|
|
30
|
-
return Aws_restJson1_1.serializeAws_restJson1RegisterClientCommand(input, context);
|
|
30
|
+
return (0, Aws_restJson1_1.serializeAws_restJson1RegisterClientCommand)(input, context);
|
|
31
31
|
}
|
|
32
32
|
deserialize(output, context) {
|
|
33
|
-
return Aws_restJson1_1.deserializeAws_restJson1RegisterClientCommand(output, context);
|
|
33
|
+
return (0, Aws_restJson1_1.deserializeAws_restJson1RegisterClientCommand)(output, context);
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
exports.RegisterClientCommand = RegisterClientCommand;
|
|
@@ -11,7 +11,7 @@ class StartDeviceAuthorizationCommand extends smithy_client_1.Command {
|
|
|
11
11
|
this.input = input;
|
|
12
12
|
}
|
|
13
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
-
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
14
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
15
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
16
16
|
const { logger } = configuration;
|
|
17
17
|
const clientName = "SSOOIDCClient";
|
|
@@ -27,10 +27,10 @@ class StartDeviceAuthorizationCommand extends smithy_client_1.Command {
|
|
|
27
27
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
28
|
}
|
|
29
29
|
serialize(input, context) {
|
|
30
|
-
return Aws_restJson1_1.serializeAws_restJson1StartDeviceAuthorizationCommand(input, context);
|
|
30
|
+
return (0, Aws_restJson1_1.serializeAws_restJson1StartDeviceAuthorizationCommand)(input, context);
|
|
31
31
|
}
|
|
32
32
|
deserialize(output, context) {
|
|
33
|
-
return Aws_restJson1_1.deserializeAws_restJson1StartDeviceAuthorizationCommand(output, context);
|
|
33
|
+
return (0, Aws_restJson1_1.deserializeAws_restJson1StartDeviceAuthorizationCommand)(output, context);
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
exports.StartDeviceAuthorizationCommand = StartDeviceAuthorizationCommand;
|
package/dist-cjs/endpoints.js
CHANGED
|
@@ -276,7 +276,7 @@ const partitionHash = {
|
|
|
276
276
|
],
|
|
277
277
|
},
|
|
278
278
|
};
|
|
279
|
-
const defaultRegionInfoProvider = async (region, options) => config_resolver_1.getRegionInfo(region, {
|
|
279
|
+
const defaultRegionInfoProvider = async (region, options) => (0, config_resolver_1.getRegionInfo)(region, {
|
|
280
280
|
...options,
|
|
281
281
|
signingService: "awsssooidc",
|
|
282
282
|
regionHash,
|
|
@@ -93,21 +93,21 @@ const deserializeAws_restJson1CreateTokenCommand = async (output, context) => {
|
|
|
93
93
|
refreshToken: undefined,
|
|
94
94
|
tokenType: undefined,
|
|
95
95
|
};
|
|
96
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
96
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
97
97
|
if (data.accessToken !== undefined && data.accessToken !== null) {
|
|
98
|
-
contents.accessToken = smithy_client_1.expectString(data.accessToken);
|
|
98
|
+
contents.accessToken = (0, smithy_client_1.expectString)(data.accessToken);
|
|
99
99
|
}
|
|
100
100
|
if (data.expiresIn !== undefined && data.expiresIn !== null) {
|
|
101
|
-
contents.expiresIn = smithy_client_1.expectInt32(data.expiresIn);
|
|
101
|
+
contents.expiresIn = (0, smithy_client_1.expectInt32)(data.expiresIn);
|
|
102
102
|
}
|
|
103
103
|
if (data.idToken !== undefined && data.idToken !== null) {
|
|
104
|
-
contents.idToken = smithy_client_1.expectString(data.idToken);
|
|
104
|
+
contents.idToken = (0, smithy_client_1.expectString)(data.idToken);
|
|
105
105
|
}
|
|
106
106
|
if (data.refreshToken !== undefined && data.refreshToken !== null) {
|
|
107
|
-
contents.refreshToken = smithy_client_1.expectString(data.refreshToken);
|
|
107
|
+
contents.refreshToken = (0, smithy_client_1.expectString)(data.refreshToken);
|
|
108
108
|
}
|
|
109
109
|
if (data.tokenType !== undefined && data.tokenType !== null) {
|
|
110
|
-
contents.tokenType = smithy_client_1.expectString(data.tokenType);
|
|
110
|
+
contents.tokenType = (0, smithy_client_1.expectString)(data.tokenType);
|
|
111
111
|
}
|
|
112
112
|
return Promise.resolve(contents);
|
|
113
113
|
};
|
|
@@ -161,7 +161,7 @@ const deserializeAws_restJson1CreateTokenCommandError = async (output, context)
|
|
|
161
161
|
$fault: "client",
|
|
162
162
|
$metadata: deserializeMetadata(output),
|
|
163
163
|
});
|
|
164
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
164
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
165
165
|
}
|
|
166
166
|
};
|
|
167
167
|
const deserializeAws_restJson1RegisterClientCommand = async (output, context) => {
|
|
@@ -177,24 +177,24 @@ const deserializeAws_restJson1RegisterClientCommand = async (output, context) =>
|
|
|
177
177
|
clientSecretExpiresAt: undefined,
|
|
178
178
|
tokenEndpoint: undefined,
|
|
179
179
|
};
|
|
180
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
180
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
181
181
|
if (data.authorizationEndpoint !== undefined && data.authorizationEndpoint !== null) {
|
|
182
|
-
contents.authorizationEndpoint = smithy_client_1.expectString(data.authorizationEndpoint);
|
|
182
|
+
contents.authorizationEndpoint = (0, smithy_client_1.expectString)(data.authorizationEndpoint);
|
|
183
183
|
}
|
|
184
184
|
if (data.clientId !== undefined && data.clientId !== null) {
|
|
185
|
-
contents.clientId = smithy_client_1.expectString(data.clientId);
|
|
185
|
+
contents.clientId = (0, smithy_client_1.expectString)(data.clientId);
|
|
186
186
|
}
|
|
187
187
|
if (data.clientIdIssuedAt !== undefined && data.clientIdIssuedAt !== null) {
|
|
188
|
-
contents.clientIdIssuedAt = smithy_client_1.expectLong(data.clientIdIssuedAt);
|
|
188
|
+
contents.clientIdIssuedAt = (0, smithy_client_1.expectLong)(data.clientIdIssuedAt);
|
|
189
189
|
}
|
|
190
190
|
if (data.clientSecret !== undefined && data.clientSecret !== null) {
|
|
191
|
-
contents.clientSecret = smithy_client_1.expectString(data.clientSecret);
|
|
191
|
+
contents.clientSecret = (0, smithy_client_1.expectString)(data.clientSecret);
|
|
192
192
|
}
|
|
193
193
|
if (data.clientSecretExpiresAt !== undefined && data.clientSecretExpiresAt !== null) {
|
|
194
|
-
contents.clientSecretExpiresAt = smithy_client_1.expectLong(data.clientSecretExpiresAt);
|
|
194
|
+
contents.clientSecretExpiresAt = (0, smithy_client_1.expectLong)(data.clientSecretExpiresAt);
|
|
195
195
|
}
|
|
196
196
|
if (data.tokenEndpoint !== undefined && data.tokenEndpoint !== null) {
|
|
197
|
-
contents.tokenEndpoint = smithy_client_1.expectString(data.tokenEndpoint);
|
|
197
|
+
contents.tokenEndpoint = (0, smithy_client_1.expectString)(data.tokenEndpoint);
|
|
198
198
|
}
|
|
199
199
|
return Promise.resolve(contents);
|
|
200
200
|
};
|
|
@@ -227,7 +227,7 @@ const deserializeAws_restJson1RegisterClientCommandError = async (output, contex
|
|
|
227
227
|
$fault: "client",
|
|
228
228
|
$metadata: deserializeMetadata(output),
|
|
229
229
|
});
|
|
230
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
230
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
231
231
|
}
|
|
232
232
|
};
|
|
233
233
|
const deserializeAws_restJson1StartDeviceAuthorizationCommand = async (output, context) => {
|
|
@@ -243,24 +243,24 @@ const deserializeAws_restJson1StartDeviceAuthorizationCommand = async (output, c
|
|
|
243
243
|
verificationUri: undefined,
|
|
244
244
|
verificationUriComplete: undefined,
|
|
245
245
|
};
|
|
246
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
246
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
247
247
|
if (data.deviceCode !== undefined && data.deviceCode !== null) {
|
|
248
|
-
contents.deviceCode = smithy_client_1.expectString(data.deviceCode);
|
|
248
|
+
contents.deviceCode = (0, smithy_client_1.expectString)(data.deviceCode);
|
|
249
249
|
}
|
|
250
250
|
if (data.expiresIn !== undefined && data.expiresIn !== null) {
|
|
251
|
-
contents.expiresIn = smithy_client_1.expectInt32(data.expiresIn);
|
|
251
|
+
contents.expiresIn = (0, smithy_client_1.expectInt32)(data.expiresIn);
|
|
252
252
|
}
|
|
253
253
|
if (data.interval !== undefined && data.interval !== null) {
|
|
254
|
-
contents.interval = smithy_client_1.expectInt32(data.interval);
|
|
254
|
+
contents.interval = (0, smithy_client_1.expectInt32)(data.interval);
|
|
255
255
|
}
|
|
256
256
|
if (data.userCode !== undefined && data.userCode !== null) {
|
|
257
|
-
contents.userCode = smithy_client_1.expectString(data.userCode);
|
|
257
|
+
contents.userCode = (0, smithy_client_1.expectString)(data.userCode);
|
|
258
258
|
}
|
|
259
259
|
if (data.verificationUri !== undefined && data.verificationUri !== null) {
|
|
260
|
-
contents.verificationUri = smithy_client_1.expectString(data.verificationUri);
|
|
260
|
+
contents.verificationUri = (0, smithy_client_1.expectString)(data.verificationUri);
|
|
261
261
|
}
|
|
262
262
|
if (data.verificationUriComplete !== undefined && data.verificationUriComplete !== null) {
|
|
263
|
-
contents.verificationUriComplete = smithy_client_1.expectString(data.verificationUriComplete);
|
|
263
|
+
contents.verificationUriComplete = (0, smithy_client_1.expectString)(data.verificationUriComplete);
|
|
264
264
|
}
|
|
265
265
|
return Promise.resolve(contents);
|
|
266
266
|
};
|
|
@@ -296,188 +296,188 @@ const deserializeAws_restJson1StartDeviceAuthorizationCommandError = async (outp
|
|
|
296
296
|
$fault: "client",
|
|
297
297
|
$metadata: deserializeMetadata(output),
|
|
298
298
|
});
|
|
299
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
299
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
300
300
|
}
|
|
301
301
|
};
|
|
302
302
|
const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
|
|
303
303
|
const contents = {};
|
|
304
304
|
const data = parsedOutput.body;
|
|
305
305
|
if (data.error !== undefined && data.error !== null) {
|
|
306
|
-
contents.error = smithy_client_1.expectString(data.error);
|
|
306
|
+
contents.error = (0, smithy_client_1.expectString)(data.error);
|
|
307
307
|
}
|
|
308
308
|
if (data.error_description !== undefined && data.error_description !== null) {
|
|
309
|
-
contents.error_description = smithy_client_1.expectString(data.error_description);
|
|
309
|
+
contents.error_description = (0, smithy_client_1.expectString)(data.error_description);
|
|
310
310
|
}
|
|
311
311
|
const exception = new models_0_1.AccessDeniedException({
|
|
312
312
|
$metadata: deserializeMetadata(parsedOutput),
|
|
313
313
|
...contents,
|
|
314
314
|
});
|
|
315
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
315
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
316
316
|
};
|
|
317
317
|
const deserializeAws_restJson1AuthorizationPendingExceptionResponse = async (parsedOutput, context) => {
|
|
318
318
|
const contents = {};
|
|
319
319
|
const data = parsedOutput.body;
|
|
320
320
|
if (data.error !== undefined && data.error !== null) {
|
|
321
|
-
contents.error = smithy_client_1.expectString(data.error);
|
|
321
|
+
contents.error = (0, smithy_client_1.expectString)(data.error);
|
|
322
322
|
}
|
|
323
323
|
if (data.error_description !== undefined && data.error_description !== null) {
|
|
324
|
-
contents.error_description = smithy_client_1.expectString(data.error_description);
|
|
324
|
+
contents.error_description = (0, smithy_client_1.expectString)(data.error_description);
|
|
325
325
|
}
|
|
326
326
|
const exception = new models_0_1.AuthorizationPendingException({
|
|
327
327
|
$metadata: deserializeMetadata(parsedOutput),
|
|
328
328
|
...contents,
|
|
329
329
|
});
|
|
330
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
330
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
331
331
|
};
|
|
332
332
|
const deserializeAws_restJson1ExpiredTokenExceptionResponse = async (parsedOutput, context) => {
|
|
333
333
|
const contents = {};
|
|
334
334
|
const data = parsedOutput.body;
|
|
335
335
|
if (data.error !== undefined && data.error !== null) {
|
|
336
|
-
contents.error = smithy_client_1.expectString(data.error);
|
|
336
|
+
contents.error = (0, smithy_client_1.expectString)(data.error);
|
|
337
337
|
}
|
|
338
338
|
if (data.error_description !== undefined && data.error_description !== null) {
|
|
339
|
-
contents.error_description = smithy_client_1.expectString(data.error_description);
|
|
339
|
+
contents.error_description = (0, smithy_client_1.expectString)(data.error_description);
|
|
340
340
|
}
|
|
341
341
|
const exception = new models_0_1.ExpiredTokenException({
|
|
342
342
|
$metadata: deserializeMetadata(parsedOutput),
|
|
343
343
|
...contents,
|
|
344
344
|
});
|
|
345
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
345
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
346
346
|
};
|
|
347
347
|
const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOutput, context) => {
|
|
348
348
|
const contents = {};
|
|
349
349
|
const data = parsedOutput.body;
|
|
350
350
|
if (data.error !== undefined && data.error !== null) {
|
|
351
|
-
contents.error = smithy_client_1.expectString(data.error);
|
|
351
|
+
contents.error = (0, smithy_client_1.expectString)(data.error);
|
|
352
352
|
}
|
|
353
353
|
if (data.error_description !== undefined && data.error_description !== null) {
|
|
354
|
-
contents.error_description = smithy_client_1.expectString(data.error_description);
|
|
354
|
+
contents.error_description = (0, smithy_client_1.expectString)(data.error_description);
|
|
355
355
|
}
|
|
356
356
|
const exception = new models_0_1.InternalServerException({
|
|
357
357
|
$metadata: deserializeMetadata(parsedOutput),
|
|
358
358
|
...contents,
|
|
359
359
|
});
|
|
360
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
360
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
361
361
|
};
|
|
362
362
|
const deserializeAws_restJson1InvalidClientExceptionResponse = async (parsedOutput, context) => {
|
|
363
363
|
const contents = {};
|
|
364
364
|
const data = parsedOutput.body;
|
|
365
365
|
if (data.error !== undefined && data.error !== null) {
|
|
366
|
-
contents.error = smithy_client_1.expectString(data.error);
|
|
366
|
+
contents.error = (0, smithy_client_1.expectString)(data.error);
|
|
367
367
|
}
|
|
368
368
|
if (data.error_description !== undefined && data.error_description !== null) {
|
|
369
|
-
contents.error_description = smithy_client_1.expectString(data.error_description);
|
|
369
|
+
contents.error_description = (0, smithy_client_1.expectString)(data.error_description);
|
|
370
370
|
}
|
|
371
371
|
const exception = new models_0_1.InvalidClientException({
|
|
372
372
|
$metadata: deserializeMetadata(parsedOutput),
|
|
373
373
|
...contents,
|
|
374
374
|
});
|
|
375
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
375
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
376
376
|
};
|
|
377
377
|
const deserializeAws_restJson1InvalidClientMetadataExceptionResponse = async (parsedOutput, context) => {
|
|
378
378
|
const contents = {};
|
|
379
379
|
const data = parsedOutput.body;
|
|
380
380
|
if (data.error !== undefined && data.error !== null) {
|
|
381
|
-
contents.error = smithy_client_1.expectString(data.error);
|
|
381
|
+
contents.error = (0, smithy_client_1.expectString)(data.error);
|
|
382
382
|
}
|
|
383
383
|
if (data.error_description !== undefined && data.error_description !== null) {
|
|
384
|
-
contents.error_description = smithy_client_1.expectString(data.error_description);
|
|
384
|
+
contents.error_description = (0, smithy_client_1.expectString)(data.error_description);
|
|
385
385
|
}
|
|
386
386
|
const exception = new models_0_1.InvalidClientMetadataException({
|
|
387
387
|
$metadata: deserializeMetadata(parsedOutput),
|
|
388
388
|
...contents,
|
|
389
389
|
});
|
|
390
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
390
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
391
391
|
};
|
|
392
392
|
const deserializeAws_restJson1InvalidGrantExceptionResponse = async (parsedOutput, context) => {
|
|
393
393
|
const contents = {};
|
|
394
394
|
const data = parsedOutput.body;
|
|
395
395
|
if (data.error !== undefined && data.error !== null) {
|
|
396
|
-
contents.error = smithy_client_1.expectString(data.error);
|
|
396
|
+
contents.error = (0, smithy_client_1.expectString)(data.error);
|
|
397
397
|
}
|
|
398
398
|
if (data.error_description !== undefined && data.error_description !== null) {
|
|
399
|
-
contents.error_description = smithy_client_1.expectString(data.error_description);
|
|
399
|
+
contents.error_description = (0, smithy_client_1.expectString)(data.error_description);
|
|
400
400
|
}
|
|
401
401
|
const exception = new models_0_1.InvalidGrantException({
|
|
402
402
|
$metadata: deserializeMetadata(parsedOutput),
|
|
403
403
|
...contents,
|
|
404
404
|
});
|
|
405
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
405
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
406
406
|
};
|
|
407
407
|
const deserializeAws_restJson1InvalidRequestExceptionResponse = async (parsedOutput, context) => {
|
|
408
408
|
const contents = {};
|
|
409
409
|
const data = parsedOutput.body;
|
|
410
410
|
if (data.error !== undefined && data.error !== null) {
|
|
411
|
-
contents.error = smithy_client_1.expectString(data.error);
|
|
411
|
+
contents.error = (0, smithy_client_1.expectString)(data.error);
|
|
412
412
|
}
|
|
413
413
|
if (data.error_description !== undefined && data.error_description !== null) {
|
|
414
|
-
contents.error_description = smithy_client_1.expectString(data.error_description);
|
|
414
|
+
contents.error_description = (0, smithy_client_1.expectString)(data.error_description);
|
|
415
415
|
}
|
|
416
416
|
const exception = new models_0_1.InvalidRequestException({
|
|
417
417
|
$metadata: deserializeMetadata(parsedOutput),
|
|
418
418
|
...contents,
|
|
419
419
|
});
|
|
420
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
420
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
421
421
|
};
|
|
422
422
|
const deserializeAws_restJson1InvalidScopeExceptionResponse = async (parsedOutput, context) => {
|
|
423
423
|
const contents = {};
|
|
424
424
|
const data = parsedOutput.body;
|
|
425
425
|
if (data.error !== undefined && data.error !== null) {
|
|
426
|
-
contents.error = smithy_client_1.expectString(data.error);
|
|
426
|
+
contents.error = (0, smithy_client_1.expectString)(data.error);
|
|
427
427
|
}
|
|
428
428
|
if (data.error_description !== undefined && data.error_description !== null) {
|
|
429
|
-
contents.error_description = smithy_client_1.expectString(data.error_description);
|
|
429
|
+
contents.error_description = (0, smithy_client_1.expectString)(data.error_description);
|
|
430
430
|
}
|
|
431
431
|
const exception = new models_0_1.InvalidScopeException({
|
|
432
432
|
$metadata: deserializeMetadata(parsedOutput),
|
|
433
433
|
...contents,
|
|
434
434
|
});
|
|
435
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
435
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
436
436
|
};
|
|
437
437
|
const deserializeAws_restJson1SlowDownExceptionResponse = async (parsedOutput, context) => {
|
|
438
438
|
const contents = {};
|
|
439
439
|
const data = parsedOutput.body;
|
|
440
440
|
if (data.error !== undefined && data.error !== null) {
|
|
441
|
-
contents.error = smithy_client_1.expectString(data.error);
|
|
441
|
+
contents.error = (0, smithy_client_1.expectString)(data.error);
|
|
442
442
|
}
|
|
443
443
|
if (data.error_description !== undefined && data.error_description !== null) {
|
|
444
|
-
contents.error_description = smithy_client_1.expectString(data.error_description);
|
|
444
|
+
contents.error_description = (0, smithy_client_1.expectString)(data.error_description);
|
|
445
445
|
}
|
|
446
446
|
const exception = new models_0_1.SlowDownException({
|
|
447
447
|
$metadata: deserializeMetadata(parsedOutput),
|
|
448
448
|
...contents,
|
|
449
449
|
});
|
|
450
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
450
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
451
451
|
};
|
|
452
452
|
const deserializeAws_restJson1UnauthorizedClientExceptionResponse = async (parsedOutput, context) => {
|
|
453
453
|
const contents = {};
|
|
454
454
|
const data = parsedOutput.body;
|
|
455
455
|
if (data.error !== undefined && data.error !== null) {
|
|
456
|
-
contents.error = smithy_client_1.expectString(data.error);
|
|
456
|
+
contents.error = (0, smithy_client_1.expectString)(data.error);
|
|
457
457
|
}
|
|
458
458
|
if (data.error_description !== undefined && data.error_description !== null) {
|
|
459
|
-
contents.error_description = smithy_client_1.expectString(data.error_description);
|
|
459
|
+
contents.error_description = (0, smithy_client_1.expectString)(data.error_description);
|
|
460
460
|
}
|
|
461
461
|
const exception = new models_0_1.UnauthorizedClientException({
|
|
462
462
|
$metadata: deserializeMetadata(parsedOutput),
|
|
463
463
|
...contents,
|
|
464
464
|
});
|
|
465
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
465
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
466
466
|
};
|
|
467
467
|
const deserializeAws_restJson1UnsupportedGrantTypeExceptionResponse = async (parsedOutput, context) => {
|
|
468
468
|
const contents = {};
|
|
469
469
|
const data = parsedOutput.body;
|
|
470
470
|
if (data.error !== undefined && data.error !== null) {
|
|
471
|
-
contents.error = smithy_client_1.expectString(data.error);
|
|
471
|
+
contents.error = (0, smithy_client_1.expectString)(data.error);
|
|
472
472
|
}
|
|
473
473
|
if (data.error_description !== undefined && data.error_description !== null) {
|
|
474
|
-
contents.error_description = smithy_client_1.expectString(data.error_description);
|
|
474
|
+
contents.error_description = (0, smithy_client_1.expectString)(data.error_description);
|
|
475
475
|
}
|
|
476
476
|
const exception = new models_0_1.UnsupportedGrantTypeException({
|
|
477
477
|
$metadata: deserializeMetadata(parsedOutput),
|
|
478
478
|
...contents,
|
|
479
479
|
});
|
|
480
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
480
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
481
481
|
};
|
|
482
482
|
const serializeAws_restJson1Scopes = (input, context) => {
|
|
483
483
|
return input
|
|
@@ -17,9 +17,9 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
|
17
17
|
const util_defaults_mode_browser_1 = require("@aws-sdk/util-defaults-mode-browser");
|
|
18
18
|
const getRuntimeConfig = (config) => {
|
|
19
19
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
20
|
-
const defaultsMode = util_defaults_mode_browser_1.resolveDefaultsModeConfig(config);
|
|
20
|
+
const defaultsMode = (0, util_defaults_mode_browser_1.resolveDefaultsModeConfig)(config);
|
|
21
21
|
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
22
|
-
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
22
|
+
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
|
23
23
|
return {
|
|
24
24
|
...clientSharedValues,
|
|
25
25
|
...config,
|
|
@@ -28,9 +28,9 @@ const getRuntimeConfig = (config) => {
|
|
|
28
28
|
base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_browser_1.fromBase64,
|
|
29
29
|
base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_browser_1.toBase64,
|
|
30
30
|
bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_browser_1.calculateBodyLength,
|
|
31
|
-
defaultUserAgentProvider: (_d = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _d !== void 0 ? _d : util_user_agent_browser_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
31
|
+
defaultUserAgentProvider: (_d = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _d !== void 0 ? _d : (0, util_user_agent_browser_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
32
32
|
maxAttempts: (_e = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _e !== void 0 ? _e : middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
|
|
33
|
-
region: (_f = config === null || config === void 0 ? void 0 : config.region) !== null && _f !== void 0 ? _f : invalid_dependency_1.invalidProvider("Region is missing"),
|
|
33
|
+
region: (_f = config === null || config === void 0 ? void 0 : config.region) !== null && _f !== void 0 ? _f : (0, invalid_dependency_1.invalidProvider)("Region is missing"),
|
|
34
34
|
requestHandler: (_g = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _g !== void 0 ? _g : new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
|
|
35
35
|
retryMode: (_h = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _h !== void 0 ? _h : (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
|
|
36
36
|
sha256: (_j = config === null || config === void 0 ? void 0 : config.sha256) !== null && _j !== void 0 ? _j : sha256_browser_1.Sha256,
|
|
@@ -17,9 +17,9 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
|
17
17
|
const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
|
|
18
18
|
const getRuntimeConfig = (config) => {
|
|
19
19
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
20
|
-
const defaultsMode = util_defaults_mode_node_1.resolveDefaultsModeConfig(config);
|
|
20
|
+
const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
|
|
21
21
|
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
22
|
-
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
22
|
+
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
|
23
23
|
return {
|
|
24
24
|
...clientSharedValues,
|
|
25
25
|
...config,
|
|
@@ -28,18 +28,18 @@ const getRuntimeConfig = (config) => {
|
|
|
28
28
|
base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64,
|
|
29
29
|
base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64,
|
|
30
30
|
bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength,
|
|
31
|
-
defaultUserAgentProvider: (_d = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _d !== void 0 ? _d : util_user_agent_node_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
32
|
-
maxAttempts: (_e = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _e !== void 0 ? _e : node_config_provider_1.loadConfig(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
33
|
-
region: (_f = config === null || config === void 0 ? void 0 : config.region) !== null && _f !== void 0 ? _f : node_config_provider_1.loadConfig(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
31
|
+
defaultUserAgentProvider: (_d = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _d !== void 0 ? _d : (0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
32
|
+
maxAttempts: (_e = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _e !== void 0 ? _e : (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
33
|
+
region: (_f = config === null || config === void 0 ? void 0 : config.region) !== null && _f !== void 0 ? _f : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
34
34
|
requestHandler: (_g = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _g !== void 0 ? _g : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
|
|
35
|
-
retryMode: (_h = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _h !== void 0 ? _h : node_config_provider_1.loadConfig({
|
|
35
|
+
retryMode: (_h = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _h !== void 0 ? _h : (0, node_config_provider_1.loadConfig)({
|
|
36
36
|
...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
37
37
|
default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
|
|
38
38
|
}),
|
|
39
39
|
sha256: (_j = config === null || config === void 0 ? void 0 : config.sha256) !== null && _j !== void 0 ? _j : hash_node_1.Hash.bind(null, "sha256"),
|
|
40
40
|
streamCollector: (_k = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _k !== void 0 ? _k : node_http_handler_1.streamCollector,
|
|
41
|
-
useDualstackEndpoint: (_l = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _l !== void 0 ? _l : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
|
42
|
-
useFipsEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _m !== void 0 ? _m : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
|
|
41
|
+
useDualstackEndpoint: (_l = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _l !== void 0 ? _l : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
|
42
|
+
useFipsEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _m !== void 0 ? _m : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
|
|
43
43
|
utf8Decoder: (_o = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _o !== void 0 ? _o : util_utf8_node_1.fromUtf8,
|
|
44
44
|
utf8Encoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _p !== void 0 ? _p : util_utf8_node_1.toUtf8,
|
|
45
45
|
};
|
|
@@ -5,7 +5,7 @@ const sha256_js_1 = require("@aws-crypto/sha256-js");
|
|
|
5
5
|
const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
|
|
6
6
|
const getRuntimeConfig = (config) => {
|
|
7
7
|
var _a;
|
|
8
|
-
const browserDefaults = runtimeConfig_browser_1.getRuntimeConfig(config);
|
|
8
|
+
const browserDefaults = (0, runtimeConfig_browser_1.getRuntimeConfig)(config);
|
|
9
9
|
return {
|
|
10
10
|
...browserDefaults,
|
|
11
11
|
...config,
|
package/dist-es/SSOOIDC.js
CHANGED
|
@@ -15,7 +15,7 @@ var SSOOIDC = (function (_super) {
|
|
|
15
15
|
}
|
|
16
16
|
else if (typeof cb === "function") {
|
|
17
17
|
if (typeof optionsOrCb !== "object")
|
|
18
|
-
throw new Error("Expect http options but get "
|
|
18
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
19
19
|
this.send(command, optionsOrCb || {}, cb);
|
|
20
20
|
}
|
|
21
21
|
else {
|
|
@@ -29,7 +29,7 @@ var SSOOIDC = (function (_super) {
|
|
|
29
29
|
}
|
|
30
30
|
else if (typeof cb === "function") {
|
|
31
31
|
if (typeof optionsOrCb !== "object")
|
|
32
|
-
throw new Error("Expect http options but get "
|
|
32
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
33
33
|
this.send(command, optionsOrCb || {}, cb);
|
|
34
34
|
}
|
|
35
35
|
else {
|
|
@@ -43,7 +43,7 @@ var SSOOIDC = (function (_super) {
|
|
|
43
43
|
}
|
|
44
44
|
else if (typeof cb === "function") {
|
|
45
45
|
if (typeof optionsOrCb !== "object")
|
|
46
|
-
throw new Error("Expect http options but get "
|
|
46
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
47
47
|
this.send(command, optionsOrCb || {}, cb);
|
|
48
48
|
}
|
|
49
49
|
else {
|
|
@@ -13,7 +13,7 @@ export var serializeAws_restJson1CreateTokenCommand = function (input, context)
|
|
|
13
13
|
headers = {
|
|
14
14
|
"content-type": "application/json",
|
|
15
15
|
};
|
|
16
|
-
resolvedPath = ""
|
|
16
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/token";
|
|
17
17
|
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.clientId !== undefined && input.clientId !== null && { clientId: input.clientId })), (input.clientSecret !== undefined && input.clientSecret !== null && { clientSecret: input.clientSecret })), (input.code !== undefined && input.code !== null && { code: input.code })), (input.deviceCode !== undefined && input.deviceCode !== null && { deviceCode: input.deviceCode })), (input.grantType !== undefined && input.grantType !== null && { grantType: input.grantType })), (input.redirectUri !== undefined && input.redirectUri !== null && { redirectUri: input.redirectUri })), (input.refreshToken !== undefined && input.refreshToken !== null && { refreshToken: input.refreshToken })), (input.scope !== undefined &&
|
|
18
18
|
input.scope !== null && { scope: serializeAws_restJson1Scopes(input.scope, context) })));
|
|
19
19
|
return [2, new __HttpRequest({
|
|
@@ -38,7 +38,7 @@ export var serializeAws_restJson1RegisterClientCommand = function (input, contex
|
|
|
38
38
|
headers = {
|
|
39
39
|
"content-type": "application/json",
|
|
40
40
|
};
|
|
41
|
-
resolvedPath = ""
|
|
41
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/client/register";
|
|
42
42
|
body = JSON.stringify(__assign(__assign(__assign({}, (input.clientName !== undefined && input.clientName !== null && { clientName: input.clientName })), (input.clientType !== undefined && input.clientType !== null && { clientType: input.clientType })), (input.scopes !== undefined &&
|
|
43
43
|
input.scopes !== null && { scopes: serializeAws_restJson1Scopes(input.scopes, context) })));
|
|
44
44
|
return [2, new __HttpRequest({
|
|
@@ -63,7 +63,7 @@ export var serializeAws_restJson1StartDeviceAuthorizationCommand = function (inp
|
|
|
63
63
|
headers = {
|
|
64
64
|
"content-type": "application/json",
|
|
65
65
|
};
|
|
66
|
-
resolvedPath = ""
|
|
66
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/device_authorization";
|
|
67
67
|
body = JSON.stringify(__assign(__assign(__assign({}, (input.clientId !== undefined && input.clientId !== null && { clientId: input.clientId })), (input.clientSecret !== undefined && input.clientSecret !== null && { clientSecret: input.clientSecret })), (input.startUrl !== undefined && input.startUrl !== null && { startUrl: input.startUrl })));
|
|
68
68
|
return [2, new __HttpRequest({
|
|
69
69
|
protocol: protocol,
|
|
@@ -21,10 +21,10 @@ export declare const getRuntimeConfig: (config: SSOOIDCClientConfig) => {
|
|
|
21
21
|
useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
|
|
22
22
|
useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
|
|
23
23
|
serviceId: string;
|
|
24
|
-
region: string | import("@aws-sdk/types").Provider<
|
|
24
|
+
region: string | import("@aws-sdk/types").Provider<any>;
|
|
25
25
|
regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
|
|
26
26
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
27
|
-
defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode
|
|
27
|
+
defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode>;
|
|
28
28
|
endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
|
|
29
29
|
tls?: boolean | undefined;
|
|
30
30
|
retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
|
|
@@ -19,10 +19,10 @@ export declare const getRuntimeConfig: (config: SSOOIDCClientConfig) => {
|
|
|
19
19
|
useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
|
|
20
20
|
useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
|
|
21
21
|
serviceId: string;
|
|
22
|
-
region: string | import("@aws-sdk/types").Provider<
|
|
22
|
+
region: string | import("@aws-sdk/types").Provider<any>;
|
|
23
23
|
regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
|
|
24
24
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
25
|
-
defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode
|
|
25
|
+
defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode>;
|
|
26
26
|
endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
|
|
27
27
|
tls?: boolean | undefined;
|
|
28
28
|
retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-sso-oidc",
|
|
3
3
|
"description": "AWS SDK for JavaScript Sso Oidc Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.56.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -18,44 +18,44 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
20
20
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
21
|
-
"@aws-sdk/config-resolver": "3.
|
|
22
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
23
|
-
"@aws-sdk/hash-node": "3.
|
|
24
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
25
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
26
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
27
|
-
"@aws-sdk/middleware-logger": "3.
|
|
28
|
-
"@aws-sdk/middleware-retry": "3.
|
|
29
|
-
"@aws-sdk/middleware-serde": "3.
|
|
30
|
-
"@aws-sdk/middleware-stack": "3.
|
|
31
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
32
|
-
"@aws-sdk/node-config-provider": "3.
|
|
33
|
-
"@aws-sdk/node-http-handler": "3.
|
|
34
|
-
"@aws-sdk/protocol-http": "3.
|
|
35
|
-
"@aws-sdk/smithy-client": "3.
|
|
36
|
-
"@aws-sdk/types": "3.
|
|
37
|
-
"@aws-sdk/url-parser": "3.
|
|
38
|
-
"@aws-sdk/util-base64-browser": "3.
|
|
39
|
-
"@aws-sdk/util-base64-node": "3.
|
|
40
|
-
"@aws-sdk/util-body-length-browser": "3.
|
|
41
|
-
"@aws-sdk/util-body-length-node": "3.
|
|
42
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
43
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
44
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
45
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
46
|
-
"@aws-sdk/util-utf8-browser": "3.
|
|
47
|
-
"@aws-sdk/util-utf8-node": "3.
|
|
48
|
-
"tslib": "^2.3.
|
|
21
|
+
"@aws-sdk/config-resolver": "3.56.0",
|
|
22
|
+
"@aws-sdk/fetch-http-handler": "3.55.0",
|
|
23
|
+
"@aws-sdk/hash-node": "3.55.0",
|
|
24
|
+
"@aws-sdk/invalid-dependency": "3.55.0",
|
|
25
|
+
"@aws-sdk/middleware-content-length": "3.55.0",
|
|
26
|
+
"@aws-sdk/middleware-host-header": "3.55.0",
|
|
27
|
+
"@aws-sdk/middleware-logger": "3.55.0",
|
|
28
|
+
"@aws-sdk/middleware-retry": "3.56.0",
|
|
29
|
+
"@aws-sdk/middleware-serde": "3.55.0",
|
|
30
|
+
"@aws-sdk/middleware-stack": "3.55.0",
|
|
31
|
+
"@aws-sdk/middleware-user-agent": "3.55.0",
|
|
32
|
+
"@aws-sdk/node-config-provider": "3.56.0",
|
|
33
|
+
"@aws-sdk/node-http-handler": "3.55.0",
|
|
34
|
+
"@aws-sdk/protocol-http": "3.55.0",
|
|
35
|
+
"@aws-sdk/smithy-client": "3.55.0",
|
|
36
|
+
"@aws-sdk/types": "3.55.0",
|
|
37
|
+
"@aws-sdk/url-parser": "3.55.0",
|
|
38
|
+
"@aws-sdk/util-base64-browser": "3.55.0",
|
|
39
|
+
"@aws-sdk/util-base64-node": "3.55.0",
|
|
40
|
+
"@aws-sdk/util-body-length-browser": "3.55.0",
|
|
41
|
+
"@aws-sdk/util-body-length-node": "3.55.0",
|
|
42
|
+
"@aws-sdk/util-defaults-mode-browser": "3.55.0",
|
|
43
|
+
"@aws-sdk/util-defaults-mode-node": "3.56.0",
|
|
44
|
+
"@aws-sdk/util-user-agent-browser": "3.55.0",
|
|
45
|
+
"@aws-sdk/util-user-agent-node": "3.56.0",
|
|
46
|
+
"@aws-sdk/util-utf8-browser": "3.55.0",
|
|
47
|
+
"@aws-sdk/util-utf8-node": "3.55.0",
|
|
48
|
+
"tslib": "^2.3.1"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"@aws-sdk/service-client-documentation-generator": "3.
|
|
51
|
+
"@aws-sdk/service-client-documentation-generator": "3.55.0",
|
|
52
52
|
"@tsconfig/recommended": "1.0.1",
|
|
53
53
|
"@types/node": "^12.7.5",
|
|
54
54
|
"concurrently": "7.0.0",
|
|
55
55
|
"downlevel-dts": "0.7.0",
|
|
56
56
|
"rimraf": "3.0.2",
|
|
57
57
|
"typedoc": "0.19.2",
|
|
58
|
-
"typescript": "~4.
|
|
58
|
+
"typescript": "~4.6.2"
|
|
59
59
|
},
|
|
60
60
|
"engines": {
|
|
61
61
|
"node": ">=12.0.0"
|