@aws-sdk/client-sso-oidc 3.303.0 → 3.309.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/commands/CreateTokenCommand.js +2 -2
- package/dist-cjs/commands/RegisterClientCommand.js +2 -2
- package/dist-cjs/commands/StartDeviceAuthorizationCommand.js +2 -2
- package/dist-cjs/protocols/Aws_restJson1.js +54 -54
- package/dist-es/commands/CreateTokenCommand.js +3 -3
- package/dist-es/commands/RegisterClientCommand.js +3 -3
- package/dist-es/commands/StartDeviceAuthorizationCommand.js +3 -3
- package/dist-es/protocols/Aws_restJson1.js +47 -47
- package/dist-types/protocols/Aws_restJson1.d.ts +24 -6
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +6 -6
- package/package.json +26 -26
|
@@ -36,10 +36,10 @@ class CreateTokenCommand extends smithy_client_1.Command {
|
|
|
36
36
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
37
37
|
}
|
|
38
38
|
serialize(input, context) {
|
|
39
|
-
return (0, Aws_restJson1_1.
|
|
39
|
+
return (0, Aws_restJson1_1.se_CreateTokenCommand)(input, context);
|
|
40
40
|
}
|
|
41
41
|
deserialize(output, context) {
|
|
42
|
-
return (0, Aws_restJson1_1.
|
|
42
|
+
return (0, Aws_restJson1_1.de_CreateTokenCommand)(output, context);
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
exports.CreateTokenCommand = CreateTokenCommand;
|
|
@@ -36,10 +36,10 @@ class RegisterClientCommand extends smithy_client_1.Command {
|
|
|
36
36
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
37
37
|
}
|
|
38
38
|
serialize(input, context) {
|
|
39
|
-
return (0, Aws_restJson1_1.
|
|
39
|
+
return (0, Aws_restJson1_1.se_RegisterClientCommand)(input, context);
|
|
40
40
|
}
|
|
41
41
|
deserialize(output, context) {
|
|
42
|
-
return (0, Aws_restJson1_1.
|
|
42
|
+
return (0, Aws_restJson1_1.de_RegisterClientCommand)(output, context);
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
exports.RegisterClientCommand = RegisterClientCommand;
|
|
@@ -36,10 +36,10 @@ class StartDeviceAuthorizationCommand extends smithy_client_1.Command {
|
|
|
36
36
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
37
37
|
}
|
|
38
38
|
serialize(input, context) {
|
|
39
|
-
return (0, Aws_restJson1_1.
|
|
39
|
+
return (0, Aws_restJson1_1.se_StartDeviceAuthorizationCommand)(input, context);
|
|
40
40
|
}
|
|
41
41
|
deserialize(output, context) {
|
|
42
|
-
return (0, Aws_restJson1_1.
|
|
42
|
+
return (0, Aws_restJson1_1.de_StartDeviceAuthorizationCommand)(output, context);
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
exports.StartDeviceAuthorizationCommand = StartDeviceAuthorizationCommand;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.de_StartDeviceAuthorizationCommand = exports.de_RegisterClientCommand = exports.de_CreateTokenCommand = exports.se_StartDeviceAuthorizationCommand = exports.se_RegisterClientCommand = exports.se_CreateTokenCommand = void 0;
|
|
4
4
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const SSOOIDCServiceException_1 = require("../models/SSOOIDCServiceException");
|
|
8
|
-
const
|
|
8
|
+
const se_CreateTokenCommand = async (input, context) => {
|
|
9
9
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
10
10
|
const headers = {
|
|
11
11
|
"content-type": "application/json",
|
|
@@ -20,7 +20,7 @@ const serializeAws_restJson1CreateTokenCommand = async (input, context) => {
|
|
|
20
20
|
...(input.grantType != null && { grantType: input.grantType }),
|
|
21
21
|
...(input.redirectUri != null && { redirectUri: input.redirectUri }),
|
|
22
22
|
...(input.refreshToken != null && { refreshToken: input.refreshToken }),
|
|
23
|
-
...(input.scope != null && { scope:
|
|
23
|
+
...(input.scope != null && { scope: se_Scopes(input.scope, context) }),
|
|
24
24
|
});
|
|
25
25
|
return new protocol_http_1.HttpRequest({
|
|
26
26
|
protocol,
|
|
@@ -32,8 +32,8 @@ const serializeAws_restJson1CreateTokenCommand = async (input, context) => {
|
|
|
32
32
|
body,
|
|
33
33
|
});
|
|
34
34
|
};
|
|
35
|
-
exports.
|
|
36
|
-
const
|
|
35
|
+
exports.se_CreateTokenCommand = se_CreateTokenCommand;
|
|
36
|
+
const se_RegisterClientCommand = async (input, context) => {
|
|
37
37
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
38
38
|
const headers = {
|
|
39
39
|
"content-type": "application/json",
|
|
@@ -43,7 +43,7 @@ const serializeAws_restJson1RegisterClientCommand = async (input, context) => {
|
|
|
43
43
|
body = JSON.stringify({
|
|
44
44
|
...(input.clientName != null && { clientName: input.clientName }),
|
|
45
45
|
...(input.clientType != null && { clientType: input.clientType }),
|
|
46
|
-
...(input.scopes != null && { scopes:
|
|
46
|
+
...(input.scopes != null && { scopes: se_Scopes(input.scopes, context) }),
|
|
47
47
|
});
|
|
48
48
|
return new protocol_http_1.HttpRequest({
|
|
49
49
|
protocol,
|
|
@@ -55,8 +55,8 @@ const serializeAws_restJson1RegisterClientCommand = async (input, context) => {
|
|
|
55
55
|
body,
|
|
56
56
|
});
|
|
57
57
|
};
|
|
58
|
-
exports.
|
|
59
|
-
const
|
|
58
|
+
exports.se_RegisterClientCommand = se_RegisterClientCommand;
|
|
59
|
+
const se_StartDeviceAuthorizationCommand = async (input, context) => {
|
|
60
60
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
61
61
|
const headers = {
|
|
62
62
|
"content-type": "application/json",
|
|
@@ -78,10 +78,10 @@ const serializeAws_restJson1StartDeviceAuthorizationCommand = async (input, cont
|
|
|
78
78
|
body,
|
|
79
79
|
});
|
|
80
80
|
};
|
|
81
|
-
exports.
|
|
82
|
-
const
|
|
81
|
+
exports.se_StartDeviceAuthorizationCommand = se_StartDeviceAuthorizationCommand;
|
|
82
|
+
const de_CreateTokenCommand = async (output, context) => {
|
|
83
83
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
84
|
-
return
|
|
84
|
+
return de_CreateTokenCommandError(output, context);
|
|
85
85
|
}
|
|
86
86
|
const contents = map({
|
|
87
87
|
$metadata: deserializeMetadata(output),
|
|
@@ -104,8 +104,8 @@ const deserializeAws_restJson1CreateTokenCommand = async (output, context) => {
|
|
|
104
104
|
}
|
|
105
105
|
return contents;
|
|
106
106
|
};
|
|
107
|
-
exports.
|
|
108
|
-
const
|
|
107
|
+
exports.de_CreateTokenCommand = de_CreateTokenCommand;
|
|
108
|
+
const de_CreateTokenCommandError = async (output, context) => {
|
|
109
109
|
const parsedOutput = {
|
|
110
110
|
...output,
|
|
111
111
|
body: await parseErrorBody(output.body, context),
|
|
@@ -114,37 +114,37 @@ const deserializeAws_restJson1CreateTokenCommandError = async (output, context)
|
|
|
114
114
|
switch (errorCode) {
|
|
115
115
|
case "AccessDeniedException":
|
|
116
116
|
case "com.amazonaws.ssooidc#AccessDeniedException":
|
|
117
|
-
throw await
|
|
117
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
118
118
|
case "AuthorizationPendingException":
|
|
119
119
|
case "com.amazonaws.ssooidc#AuthorizationPendingException":
|
|
120
|
-
throw await
|
|
120
|
+
throw await de_AuthorizationPendingExceptionRes(parsedOutput, context);
|
|
121
121
|
case "ExpiredTokenException":
|
|
122
122
|
case "com.amazonaws.ssooidc#ExpiredTokenException":
|
|
123
|
-
throw await
|
|
123
|
+
throw await de_ExpiredTokenExceptionRes(parsedOutput, context);
|
|
124
124
|
case "InternalServerException":
|
|
125
125
|
case "com.amazonaws.ssooidc#InternalServerException":
|
|
126
|
-
throw await
|
|
126
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
127
127
|
case "InvalidClientException":
|
|
128
128
|
case "com.amazonaws.ssooidc#InvalidClientException":
|
|
129
|
-
throw await
|
|
129
|
+
throw await de_InvalidClientExceptionRes(parsedOutput, context);
|
|
130
130
|
case "InvalidGrantException":
|
|
131
131
|
case "com.amazonaws.ssooidc#InvalidGrantException":
|
|
132
|
-
throw await
|
|
132
|
+
throw await de_InvalidGrantExceptionRes(parsedOutput, context);
|
|
133
133
|
case "InvalidRequestException":
|
|
134
134
|
case "com.amazonaws.ssooidc#InvalidRequestException":
|
|
135
|
-
throw await
|
|
135
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
136
136
|
case "InvalidScopeException":
|
|
137
137
|
case "com.amazonaws.ssooidc#InvalidScopeException":
|
|
138
|
-
throw await
|
|
138
|
+
throw await de_InvalidScopeExceptionRes(parsedOutput, context);
|
|
139
139
|
case "SlowDownException":
|
|
140
140
|
case "com.amazonaws.ssooidc#SlowDownException":
|
|
141
|
-
throw await
|
|
141
|
+
throw await de_SlowDownExceptionRes(parsedOutput, context);
|
|
142
142
|
case "UnauthorizedClientException":
|
|
143
143
|
case "com.amazonaws.ssooidc#UnauthorizedClientException":
|
|
144
|
-
throw await
|
|
144
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
145
145
|
case "UnsupportedGrantTypeException":
|
|
146
146
|
case "com.amazonaws.ssooidc#UnsupportedGrantTypeException":
|
|
147
|
-
throw await
|
|
147
|
+
throw await de_UnsupportedGrantTypeExceptionRes(parsedOutput, context);
|
|
148
148
|
default:
|
|
149
149
|
const parsedBody = parsedOutput.body;
|
|
150
150
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -155,9 +155,9 @@ const deserializeAws_restJson1CreateTokenCommandError = async (output, context)
|
|
|
155
155
|
});
|
|
156
156
|
}
|
|
157
157
|
};
|
|
158
|
-
const
|
|
158
|
+
const de_RegisterClientCommand = async (output, context) => {
|
|
159
159
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
160
|
-
return
|
|
160
|
+
return de_RegisterClientCommandError(output, context);
|
|
161
161
|
}
|
|
162
162
|
const contents = map({
|
|
163
163
|
$metadata: deserializeMetadata(output),
|
|
@@ -183,8 +183,8 @@ const deserializeAws_restJson1RegisterClientCommand = async (output, context) =>
|
|
|
183
183
|
}
|
|
184
184
|
return contents;
|
|
185
185
|
};
|
|
186
|
-
exports.
|
|
187
|
-
const
|
|
186
|
+
exports.de_RegisterClientCommand = de_RegisterClientCommand;
|
|
187
|
+
const de_RegisterClientCommandError = async (output, context) => {
|
|
188
188
|
const parsedOutput = {
|
|
189
189
|
...output,
|
|
190
190
|
body: await parseErrorBody(output.body, context),
|
|
@@ -193,16 +193,16 @@ const deserializeAws_restJson1RegisterClientCommandError = async (output, contex
|
|
|
193
193
|
switch (errorCode) {
|
|
194
194
|
case "InternalServerException":
|
|
195
195
|
case "com.amazonaws.ssooidc#InternalServerException":
|
|
196
|
-
throw await
|
|
196
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
197
197
|
case "InvalidClientMetadataException":
|
|
198
198
|
case "com.amazonaws.ssooidc#InvalidClientMetadataException":
|
|
199
|
-
throw await
|
|
199
|
+
throw await de_InvalidClientMetadataExceptionRes(parsedOutput, context);
|
|
200
200
|
case "InvalidRequestException":
|
|
201
201
|
case "com.amazonaws.ssooidc#InvalidRequestException":
|
|
202
|
-
throw await
|
|
202
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
203
203
|
case "InvalidScopeException":
|
|
204
204
|
case "com.amazonaws.ssooidc#InvalidScopeException":
|
|
205
|
-
throw await
|
|
205
|
+
throw await de_InvalidScopeExceptionRes(parsedOutput, context);
|
|
206
206
|
default:
|
|
207
207
|
const parsedBody = parsedOutput.body;
|
|
208
208
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -213,9 +213,9 @@ const deserializeAws_restJson1RegisterClientCommandError = async (output, contex
|
|
|
213
213
|
});
|
|
214
214
|
}
|
|
215
215
|
};
|
|
216
|
-
const
|
|
216
|
+
const de_StartDeviceAuthorizationCommand = async (output, context) => {
|
|
217
217
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
218
|
-
return
|
|
218
|
+
return de_StartDeviceAuthorizationCommandError(output, context);
|
|
219
219
|
}
|
|
220
220
|
const contents = map({
|
|
221
221
|
$metadata: deserializeMetadata(output),
|
|
@@ -241,8 +241,8 @@ const deserializeAws_restJson1StartDeviceAuthorizationCommand = async (output, c
|
|
|
241
241
|
}
|
|
242
242
|
return contents;
|
|
243
243
|
};
|
|
244
|
-
exports.
|
|
245
|
-
const
|
|
244
|
+
exports.de_StartDeviceAuthorizationCommand = de_StartDeviceAuthorizationCommand;
|
|
245
|
+
const de_StartDeviceAuthorizationCommandError = async (output, context) => {
|
|
246
246
|
const parsedOutput = {
|
|
247
247
|
...output,
|
|
248
248
|
body: await parseErrorBody(output.body, context),
|
|
@@ -251,19 +251,19 @@ const deserializeAws_restJson1StartDeviceAuthorizationCommandError = async (outp
|
|
|
251
251
|
switch (errorCode) {
|
|
252
252
|
case "InternalServerException":
|
|
253
253
|
case "com.amazonaws.ssooidc#InternalServerException":
|
|
254
|
-
throw await
|
|
254
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
255
255
|
case "InvalidClientException":
|
|
256
256
|
case "com.amazonaws.ssooidc#InvalidClientException":
|
|
257
|
-
throw await
|
|
257
|
+
throw await de_InvalidClientExceptionRes(parsedOutput, context);
|
|
258
258
|
case "InvalidRequestException":
|
|
259
259
|
case "com.amazonaws.ssooidc#InvalidRequestException":
|
|
260
|
-
throw await
|
|
260
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
261
261
|
case "SlowDownException":
|
|
262
262
|
case "com.amazonaws.ssooidc#SlowDownException":
|
|
263
|
-
throw await
|
|
263
|
+
throw await de_SlowDownExceptionRes(parsedOutput, context);
|
|
264
264
|
case "UnauthorizedClientException":
|
|
265
265
|
case "com.amazonaws.ssooidc#UnauthorizedClientException":
|
|
266
|
-
throw await
|
|
266
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
267
267
|
default:
|
|
268
268
|
const parsedBody = parsedOutput.body;
|
|
269
269
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -275,7 +275,7 @@ const deserializeAws_restJson1StartDeviceAuthorizationCommandError = async (outp
|
|
|
275
275
|
}
|
|
276
276
|
};
|
|
277
277
|
const map = smithy_client_1.map;
|
|
278
|
-
const
|
|
278
|
+
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
279
279
|
const contents = map({});
|
|
280
280
|
const data = parsedOutput.body;
|
|
281
281
|
if (data.error != null) {
|
|
@@ -290,7 +290,7 @@ const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutpu
|
|
|
290
290
|
});
|
|
291
291
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
292
292
|
};
|
|
293
|
-
const
|
|
293
|
+
const de_AuthorizationPendingExceptionRes = async (parsedOutput, context) => {
|
|
294
294
|
const contents = map({});
|
|
295
295
|
const data = parsedOutput.body;
|
|
296
296
|
if (data.error != null) {
|
|
@@ -305,7 +305,7 @@ const deserializeAws_restJson1AuthorizationPendingExceptionResponse = async (par
|
|
|
305
305
|
});
|
|
306
306
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
307
307
|
};
|
|
308
|
-
const
|
|
308
|
+
const de_ExpiredTokenExceptionRes = async (parsedOutput, context) => {
|
|
309
309
|
const contents = map({});
|
|
310
310
|
const data = parsedOutput.body;
|
|
311
311
|
if (data.error != null) {
|
|
@@ -320,7 +320,7 @@ const deserializeAws_restJson1ExpiredTokenExceptionResponse = async (parsedOutpu
|
|
|
320
320
|
});
|
|
321
321
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
322
322
|
};
|
|
323
|
-
const
|
|
323
|
+
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
324
324
|
const contents = map({});
|
|
325
325
|
const data = parsedOutput.body;
|
|
326
326
|
if (data.error != null) {
|
|
@@ -335,7 +335,7 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOut
|
|
|
335
335
|
});
|
|
336
336
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
337
337
|
};
|
|
338
|
-
const
|
|
338
|
+
const de_InvalidClientExceptionRes = async (parsedOutput, context) => {
|
|
339
339
|
const contents = map({});
|
|
340
340
|
const data = parsedOutput.body;
|
|
341
341
|
if (data.error != null) {
|
|
@@ -350,7 +350,7 @@ const deserializeAws_restJson1InvalidClientExceptionResponse = async (parsedOutp
|
|
|
350
350
|
});
|
|
351
351
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
352
352
|
};
|
|
353
|
-
const
|
|
353
|
+
const de_InvalidClientMetadataExceptionRes = async (parsedOutput, context) => {
|
|
354
354
|
const contents = map({});
|
|
355
355
|
const data = parsedOutput.body;
|
|
356
356
|
if (data.error != null) {
|
|
@@ -365,7 +365,7 @@ const deserializeAws_restJson1InvalidClientMetadataExceptionResponse = async (pa
|
|
|
365
365
|
});
|
|
366
366
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
367
367
|
};
|
|
368
|
-
const
|
|
368
|
+
const de_InvalidGrantExceptionRes = async (parsedOutput, context) => {
|
|
369
369
|
const contents = map({});
|
|
370
370
|
const data = parsedOutput.body;
|
|
371
371
|
if (data.error != null) {
|
|
@@ -380,7 +380,7 @@ const deserializeAws_restJson1InvalidGrantExceptionResponse = async (parsedOutpu
|
|
|
380
380
|
});
|
|
381
381
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
382
382
|
};
|
|
383
|
-
const
|
|
383
|
+
const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
|
|
384
384
|
const contents = map({});
|
|
385
385
|
const data = parsedOutput.body;
|
|
386
386
|
if (data.error != null) {
|
|
@@ -395,7 +395,7 @@ const deserializeAws_restJson1InvalidRequestExceptionResponse = async (parsedOut
|
|
|
395
395
|
});
|
|
396
396
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
397
397
|
};
|
|
398
|
-
const
|
|
398
|
+
const de_InvalidScopeExceptionRes = async (parsedOutput, context) => {
|
|
399
399
|
const contents = map({});
|
|
400
400
|
const data = parsedOutput.body;
|
|
401
401
|
if (data.error != null) {
|
|
@@ -410,7 +410,7 @@ const deserializeAws_restJson1InvalidScopeExceptionResponse = async (parsedOutpu
|
|
|
410
410
|
});
|
|
411
411
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
412
412
|
};
|
|
413
|
-
const
|
|
413
|
+
const de_SlowDownExceptionRes = async (parsedOutput, context) => {
|
|
414
414
|
const contents = map({});
|
|
415
415
|
const data = parsedOutput.body;
|
|
416
416
|
if (data.error != null) {
|
|
@@ -425,7 +425,7 @@ const deserializeAws_restJson1SlowDownExceptionResponse = async (parsedOutput, c
|
|
|
425
425
|
});
|
|
426
426
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
427
427
|
};
|
|
428
|
-
const
|
|
428
|
+
const de_UnauthorizedClientExceptionRes = async (parsedOutput, context) => {
|
|
429
429
|
const contents = map({});
|
|
430
430
|
const data = parsedOutput.body;
|
|
431
431
|
if (data.error != null) {
|
|
@@ -440,7 +440,7 @@ const deserializeAws_restJson1UnauthorizedClientExceptionResponse = async (parse
|
|
|
440
440
|
});
|
|
441
441
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
442
442
|
};
|
|
443
|
-
const
|
|
443
|
+
const de_UnsupportedGrantTypeExceptionRes = async (parsedOutput, context) => {
|
|
444
444
|
const contents = map({});
|
|
445
445
|
const data = parsedOutput.body;
|
|
446
446
|
if (data.error != null) {
|
|
@@ -455,7 +455,7 @@ const deserializeAws_restJson1UnsupportedGrantTypeExceptionResponse = async (par
|
|
|
455
455
|
});
|
|
456
456
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
457
457
|
};
|
|
458
|
-
const
|
|
458
|
+
const se_Scopes = (input, context) => {
|
|
459
459
|
return input
|
|
460
460
|
.filter((e) => e != null)
|
|
461
461
|
.map((entry) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { de_CreateTokenCommand, se_CreateTokenCommand } from "../protocols/Aws_restJson1";
|
|
5
5
|
export class CreateTokenCommand extends $Command {
|
|
6
6
|
static getEndpointParameterInstructions() {
|
|
7
7
|
return {
|
|
@@ -33,9 +33,9 @@ export class CreateTokenCommand extends $Command {
|
|
|
33
33
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
34
34
|
}
|
|
35
35
|
serialize(input, context) {
|
|
36
|
-
return
|
|
36
|
+
return se_CreateTokenCommand(input, context);
|
|
37
37
|
}
|
|
38
38
|
deserialize(output, context) {
|
|
39
|
-
return
|
|
39
|
+
return de_CreateTokenCommand(output, context);
|
|
40
40
|
}
|
|
41
41
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { de_RegisterClientCommand, se_RegisterClientCommand } from "../protocols/Aws_restJson1";
|
|
5
5
|
export class RegisterClientCommand extends $Command {
|
|
6
6
|
static getEndpointParameterInstructions() {
|
|
7
7
|
return {
|
|
@@ -33,9 +33,9 @@ export class RegisterClientCommand extends $Command {
|
|
|
33
33
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
34
34
|
}
|
|
35
35
|
serialize(input, context) {
|
|
36
|
-
return
|
|
36
|
+
return se_RegisterClientCommand(input, context);
|
|
37
37
|
}
|
|
38
38
|
deserialize(output, context) {
|
|
39
|
-
return
|
|
39
|
+
return de_RegisterClientCommand(output, context);
|
|
40
40
|
}
|
|
41
41
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { de_StartDeviceAuthorizationCommand, se_StartDeviceAuthorizationCommand } from "../protocols/Aws_restJson1";
|
|
5
5
|
export class StartDeviceAuthorizationCommand extends $Command {
|
|
6
6
|
static getEndpointParameterInstructions() {
|
|
7
7
|
return {
|
|
@@ -33,9 +33,9 @@ export class StartDeviceAuthorizationCommand extends $Command {
|
|
|
33
33
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
34
34
|
}
|
|
35
35
|
serialize(input, context) {
|
|
36
|
-
return
|
|
36
|
+
return se_StartDeviceAuthorizationCommand(input, context);
|
|
37
37
|
}
|
|
38
38
|
deserialize(output, context) {
|
|
39
|
-
return
|
|
39
|
+
return de_StartDeviceAuthorizationCommand(output, context);
|
|
40
40
|
}
|
|
41
41
|
}
|
|
@@ -2,7 +2,7 @@ import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
|
2
2
|
import { decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map as __map, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { AccessDeniedException, AuthorizationPendingException, ExpiredTokenException, InternalServerException, InvalidClientException, InvalidClientMetadataException, InvalidGrantException, InvalidRequestException, InvalidScopeException, SlowDownException, UnauthorizedClientException, UnsupportedGrantTypeException, } from "../models/models_0";
|
|
4
4
|
import { SSOOIDCServiceException as __BaseException } from "../models/SSOOIDCServiceException";
|
|
5
|
-
export const
|
|
5
|
+
export const se_CreateTokenCommand = async (input, context) => {
|
|
6
6
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
7
7
|
const headers = {
|
|
8
8
|
"content-type": "application/json",
|
|
@@ -17,7 +17,7 @@ export const serializeAws_restJson1CreateTokenCommand = async (input, context) =
|
|
|
17
17
|
...(input.grantType != null && { grantType: input.grantType }),
|
|
18
18
|
...(input.redirectUri != null && { redirectUri: input.redirectUri }),
|
|
19
19
|
...(input.refreshToken != null && { refreshToken: input.refreshToken }),
|
|
20
|
-
...(input.scope != null && { scope:
|
|
20
|
+
...(input.scope != null && { scope: se_Scopes(input.scope, context) }),
|
|
21
21
|
});
|
|
22
22
|
return new __HttpRequest({
|
|
23
23
|
protocol,
|
|
@@ -29,7 +29,7 @@ export const serializeAws_restJson1CreateTokenCommand = async (input, context) =
|
|
|
29
29
|
body,
|
|
30
30
|
});
|
|
31
31
|
};
|
|
32
|
-
export const
|
|
32
|
+
export const se_RegisterClientCommand = async (input, context) => {
|
|
33
33
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
34
34
|
const headers = {
|
|
35
35
|
"content-type": "application/json",
|
|
@@ -39,7 +39,7 @@ export const serializeAws_restJson1RegisterClientCommand = async (input, context
|
|
|
39
39
|
body = JSON.stringify({
|
|
40
40
|
...(input.clientName != null && { clientName: input.clientName }),
|
|
41
41
|
...(input.clientType != null && { clientType: input.clientType }),
|
|
42
|
-
...(input.scopes != null && { scopes:
|
|
42
|
+
...(input.scopes != null && { scopes: se_Scopes(input.scopes, context) }),
|
|
43
43
|
});
|
|
44
44
|
return new __HttpRequest({
|
|
45
45
|
protocol,
|
|
@@ -51,7 +51,7 @@ export const serializeAws_restJson1RegisterClientCommand = async (input, context
|
|
|
51
51
|
body,
|
|
52
52
|
});
|
|
53
53
|
};
|
|
54
|
-
export const
|
|
54
|
+
export const se_StartDeviceAuthorizationCommand = async (input, context) => {
|
|
55
55
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
56
56
|
const headers = {
|
|
57
57
|
"content-type": "application/json",
|
|
@@ -73,9 +73,9 @@ export const serializeAws_restJson1StartDeviceAuthorizationCommand = async (inpu
|
|
|
73
73
|
body,
|
|
74
74
|
});
|
|
75
75
|
};
|
|
76
|
-
export const
|
|
76
|
+
export const de_CreateTokenCommand = async (output, context) => {
|
|
77
77
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
78
|
-
return
|
|
78
|
+
return de_CreateTokenCommandError(output, context);
|
|
79
79
|
}
|
|
80
80
|
const contents = map({
|
|
81
81
|
$metadata: deserializeMetadata(output),
|
|
@@ -98,7 +98,7 @@ export const deserializeAws_restJson1CreateTokenCommand = async (output, context
|
|
|
98
98
|
}
|
|
99
99
|
return contents;
|
|
100
100
|
};
|
|
101
|
-
const
|
|
101
|
+
const de_CreateTokenCommandError = async (output, context) => {
|
|
102
102
|
const parsedOutput = {
|
|
103
103
|
...output,
|
|
104
104
|
body: await parseErrorBody(output.body, context),
|
|
@@ -107,37 +107,37 @@ const deserializeAws_restJson1CreateTokenCommandError = async (output, context)
|
|
|
107
107
|
switch (errorCode) {
|
|
108
108
|
case "AccessDeniedException":
|
|
109
109
|
case "com.amazonaws.ssooidc#AccessDeniedException":
|
|
110
|
-
throw await
|
|
110
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
111
111
|
case "AuthorizationPendingException":
|
|
112
112
|
case "com.amazonaws.ssooidc#AuthorizationPendingException":
|
|
113
|
-
throw await
|
|
113
|
+
throw await de_AuthorizationPendingExceptionRes(parsedOutput, context);
|
|
114
114
|
case "ExpiredTokenException":
|
|
115
115
|
case "com.amazonaws.ssooidc#ExpiredTokenException":
|
|
116
|
-
throw await
|
|
116
|
+
throw await de_ExpiredTokenExceptionRes(parsedOutput, context);
|
|
117
117
|
case "InternalServerException":
|
|
118
118
|
case "com.amazonaws.ssooidc#InternalServerException":
|
|
119
|
-
throw await
|
|
119
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
120
120
|
case "InvalidClientException":
|
|
121
121
|
case "com.amazonaws.ssooidc#InvalidClientException":
|
|
122
|
-
throw await
|
|
122
|
+
throw await de_InvalidClientExceptionRes(parsedOutput, context);
|
|
123
123
|
case "InvalidGrantException":
|
|
124
124
|
case "com.amazonaws.ssooidc#InvalidGrantException":
|
|
125
|
-
throw await
|
|
125
|
+
throw await de_InvalidGrantExceptionRes(parsedOutput, context);
|
|
126
126
|
case "InvalidRequestException":
|
|
127
127
|
case "com.amazonaws.ssooidc#InvalidRequestException":
|
|
128
|
-
throw await
|
|
128
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
129
129
|
case "InvalidScopeException":
|
|
130
130
|
case "com.amazonaws.ssooidc#InvalidScopeException":
|
|
131
|
-
throw await
|
|
131
|
+
throw await de_InvalidScopeExceptionRes(parsedOutput, context);
|
|
132
132
|
case "SlowDownException":
|
|
133
133
|
case "com.amazonaws.ssooidc#SlowDownException":
|
|
134
|
-
throw await
|
|
134
|
+
throw await de_SlowDownExceptionRes(parsedOutput, context);
|
|
135
135
|
case "UnauthorizedClientException":
|
|
136
136
|
case "com.amazonaws.ssooidc#UnauthorizedClientException":
|
|
137
|
-
throw await
|
|
137
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
138
138
|
case "UnsupportedGrantTypeException":
|
|
139
139
|
case "com.amazonaws.ssooidc#UnsupportedGrantTypeException":
|
|
140
|
-
throw await
|
|
140
|
+
throw await de_UnsupportedGrantTypeExceptionRes(parsedOutput, context);
|
|
141
141
|
default:
|
|
142
142
|
const parsedBody = parsedOutput.body;
|
|
143
143
|
throwDefaultError({
|
|
@@ -148,9 +148,9 @@ const deserializeAws_restJson1CreateTokenCommandError = async (output, context)
|
|
|
148
148
|
});
|
|
149
149
|
}
|
|
150
150
|
};
|
|
151
|
-
export const
|
|
151
|
+
export const de_RegisterClientCommand = async (output, context) => {
|
|
152
152
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
153
|
-
return
|
|
153
|
+
return de_RegisterClientCommandError(output, context);
|
|
154
154
|
}
|
|
155
155
|
const contents = map({
|
|
156
156
|
$metadata: deserializeMetadata(output),
|
|
@@ -176,7 +176,7 @@ export const deserializeAws_restJson1RegisterClientCommand = async (output, cont
|
|
|
176
176
|
}
|
|
177
177
|
return contents;
|
|
178
178
|
};
|
|
179
|
-
const
|
|
179
|
+
const de_RegisterClientCommandError = async (output, context) => {
|
|
180
180
|
const parsedOutput = {
|
|
181
181
|
...output,
|
|
182
182
|
body: await parseErrorBody(output.body, context),
|
|
@@ -185,16 +185,16 @@ const deserializeAws_restJson1RegisterClientCommandError = async (output, contex
|
|
|
185
185
|
switch (errorCode) {
|
|
186
186
|
case "InternalServerException":
|
|
187
187
|
case "com.amazonaws.ssooidc#InternalServerException":
|
|
188
|
-
throw await
|
|
188
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
189
189
|
case "InvalidClientMetadataException":
|
|
190
190
|
case "com.amazonaws.ssooidc#InvalidClientMetadataException":
|
|
191
|
-
throw await
|
|
191
|
+
throw await de_InvalidClientMetadataExceptionRes(parsedOutput, context);
|
|
192
192
|
case "InvalidRequestException":
|
|
193
193
|
case "com.amazonaws.ssooidc#InvalidRequestException":
|
|
194
|
-
throw await
|
|
194
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
195
195
|
case "InvalidScopeException":
|
|
196
196
|
case "com.amazonaws.ssooidc#InvalidScopeException":
|
|
197
|
-
throw await
|
|
197
|
+
throw await de_InvalidScopeExceptionRes(parsedOutput, context);
|
|
198
198
|
default:
|
|
199
199
|
const parsedBody = parsedOutput.body;
|
|
200
200
|
throwDefaultError({
|
|
@@ -205,9 +205,9 @@ const deserializeAws_restJson1RegisterClientCommandError = async (output, contex
|
|
|
205
205
|
});
|
|
206
206
|
}
|
|
207
207
|
};
|
|
208
|
-
export const
|
|
208
|
+
export const de_StartDeviceAuthorizationCommand = async (output, context) => {
|
|
209
209
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
210
|
-
return
|
|
210
|
+
return de_StartDeviceAuthorizationCommandError(output, context);
|
|
211
211
|
}
|
|
212
212
|
const contents = map({
|
|
213
213
|
$metadata: deserializeMetadata(output),
|
|
@@ -233,7 +233,7 @@ export const deserializeAws_restJson1StartDeviceAuthorizationCommand = async (ou
|
|
|
233
233
|
}
|
|
234
234
|
return contents;
|
|
235
235
|
};
|
|
236
|
-
const
|
|
236
|
+
const de_StartDeviceAuthorizationCommandError = async (output, context) => {
|
|
237
237
|
const parsedOutput = {
|
|
238
238
|
...output,
|
|
239
239
|
body: await parseErrorBody(output.body, context),
|
|
@@ -242,19 +242,19 @@ const deserializeAws_restJson1StartDeviceAuthorizationCommandError = async (outp
|
|
|
242
242
|
switch (errorCode) {
|
|
243
243
|
case "InternalServerException":
|
|
244
244
|
case "com.amazonaws.ssooidc#InternalServerException":
|
|
245
|
-
throw await
|
|
245
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
246
246
|
case "InvalidClientException":
|
|
247
247
|
case "com.amazonaws.ssooidc#InvalidClientException":
|
|
248
|
-
throw await
|
|
248
|
+
throw await de_InvalidClientExceptionRes(parsedOutput, context);
|
|
249
249
|
case "InvalidRequestException":
|
|
250
250
|
case "com.amazonaws.ssooidc#InvalidRequestException":
|
|
251
|
-
throw await
|
|
251
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
252
252
|
case "SlowDownException":
|
|
253
253
|
case "com.amazonaws.ssooidc#SlowDownException":
|
|
254
|
-
throw await
|
|
254
|
+
throw await de_SlowDownExceptionRes(parsedOutput, context);
|
|
255
255
|
case "UnauthorizedClientException":
|
|
256
256
|
case "com.amazonaws.ssooidc#UnauthorizedClientException":
|
|
257
|
-
throw await
|
|
257
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
258
258
|
default:
|
|
259
259
|
const parsedBody = parsedOutput.body;
|
|
260
260
|
throwDefaultError({
|
|
@@ -266,7 +266,7 @@ const deserializeAws_restJson1StartDeviceAuthorizationCommandError = async (outp
|
|
|
266
266
|
}
|
|
267
267
|
};
|
|
268
268
|
const map = __map;
|
|
269
|
-
const
|
|
269
|
+
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
270
270
|
const contents = map({});
|
|
271
271
|
const data = parsedOutput.body;
|
|
272
272
|
if (data.error != null) {
|
|
@@ -281,7 +281,7 @@ const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutpu
|
|
|
281
281
|
});
|
|
282
282
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
283
283
|
};
|
|
284
|
-
const
|
|
284
|
+
const de_AuthorizationPendingExceptionRes = async (parsedOutput, context) => {
|
|
285
285
|
const contents = map({});
|
|
286
286
|
const data = parsedOutput.body;
|
|
287
287
|
if (data.error != null) {
|
|
@@ -296,7 +296,7 @@ const deserializeAws_restJson1AuthorizationPendingExceptionResponse = async (par
|
|
|
296
296
|
});
|
|
297
297
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
298
298
|
};
|
|
299
|
-
const
|
|
299
|
+
const de_ExpiredTokenExceptionRes = async (parsedOutput, context) => {
|
|
300
300
|
const contents = map({});
|
|
301
301
|
const data = parsedOutput.body;
|
|
302
302
|
if (data.error != null) {
|
|
@@ -311,7 +311,7 @@ const deserializeAws_restJson1ExpiredTokenExceptionResponse = async (parsedOutpu
|
|
|
311
311
|
});
|
|
312
312
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
313
313
|
};
|
|
314
|
-
const
|
|
314
|
+
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
315
315
|
const contents = map({});
|
|
316
316
|
const data = parsedOutput.body;
|
|
317
317
|
if (data.error != null) {
|
|
@@ -326,7 +326,7 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOut
|
|
|
326
326
|
});
|
|
327
327
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
328
328
|
};
|
|
329
|
-
const
|
|
329
|
+
const de_InvalidClientExceptionRes = async (parsedOutput, context) => {
|
|
330
330
|
const contents = map({});
|
|
331
331
|
const data = parsedOutput.body;
|
|
332
332
|
if (data.error != null) {
|
|
@@ -341,7 +341,7 @@ const deserializeAws_restJson1InvalidClientExceptionResponse = async (parsedOutp
|
|
|
341
341
|
});
|
|
342
342
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
343
343
|
};
|
|
344
|
-
const
|
|
344
|
+
const de_InvalidClientMetadataExceptionRes = async (parsedOutput, context) => {
|
|
345
345
|
const contents = map({});
|
|
346
346
|
const data = parsedOutput.body;
|
|
347
347
|
if (data.error != null) {
|
|
@@ -356,7 +356,7 @@ const deserializeAws_restJson1InvalidClientMetadataExceptionResponse = async (pa
|
|
|
356
356
|
});
|
|
357
357
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
358
358
|
};
|
|
359
|
-
const
|
|
359
|
+
const de_InvalidGrantExceptionRes = async (parsedOutput, context) => {
|
|
360
360
|
const contents = map({});
|
|
361
361
|
const data = parsedOutput.body;
|
|
362
362
|
if (data.error != null) {
|
|
@@ -371,7 +371,7 @@ const deserializeAws_restJson1InvalidGrantExceptionResponse = async (parsedOutpu
|
|
|
371
371
|
});
|
|
372
372
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
373
373
|
};
|
|
374
|
-
const
|
|
374
|
+
const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
|
|
375
375
|
const contents = map({});
|
|
376
376
|
const data = parsedOutput.body;
|
|
377
377
|
if (data.error != null) {
|
|
@@ -386,7 +386,7 @@ const deserializeAws_restJson1InvalidRequestExceptionResponse = async (parsedOut
|
|
|
386
386
|
});
|
|
387
387
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
388
388
|
};
|
|
389
|
-
const
|
|
389
|
+
const de_InvalidScopeExceptionRes = async (parsedOutput, context) => {
|
|
390
390
|
const contents = map({});
|
|
391
391
|
const data = parsedOutput.body;
|
|
392
392
|
if (data.error != null) {
|
|
@@ -401,7 +401,7 @@ const deserializeAws_restJson1InvalidScopeExceptionResponse = async (parsedOutpu
|
|
|
401
401
|
});
|
|
402
402
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
403
403
|
};
|
|
404
|
-
const
|
|
404
|
+
const de_SlowDownExceptionRes = async (parsedOutput, context) => {
|
|
405
405
|
const contents = map({});
|
|
406
406
|
const data = parsedOutput.body;
|
|
407
407
|
if (data.error != null) {
|
|
@@ -416,7 +416,7 @@ const deserializeAws_restJson1SlowDownExceptionResponse = async (parsedOutput, c
|
|
|
416
416
|
});
|
|
417
417
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
418
418
|
};
|
|
419
|
-
const
|
|
419
|
+
const de_UnauthorizedClientExceptionRes = async (parsedOutput, context) => {
|
|
420
420
|
const contents = map({});
|
|
421
421
|
const data = parsedOutput.body;
|
|
422
422
|
if (data.error != null) {
|
|
@@ -431,7 +431,7 @@ const deserializeAws_restJson1UnauthorizedClientExceptionResponse = async (parse
|
|
|
431
431
|
});
|
|
432
432
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
433
433
|
};
|
|
434
|
-
const
|
|
434
|
+
const de_UnsupportedGrantTypeExceptionRes = async (parsedOutput, context) => {
|
|
435
435
|
const contents = map({});
|
|
436
436
|
const data = parsedOutput.body;
|
|
437
437
|
if (data.error != null) {
|
|
@@ -446,7 +446,7 @@ const deserializeAws_restJson1UnsupportedGrantTypeExceptionResponse = async (par
|
|
|
446
446
|
});
|
|
447
447
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
448
448
|
};
|
|
449
|
-
const
|
|
449
|
+
const se_Scopes = (input, context) => {
|
|
450
450
|
return input
|
|
451
451
|
.filter((e) => e != null)
|
|
452
452
|
.map((entry) => {
|
|
@@ -3,9 +3,27 @@ import { SerdeContext as __SerdeContext } from "@aws-sdk/types";
|
|
|
3
3
|
import { CreateTokenCommandInput, CreateTokenCommandOutput } from "../commands/CreateTokenCommand";
|
|
4
4
|
import { RegisterClientCommandInput, RegisterClientCommandOutput } from "../commands/RegisterClientCommand";
|
|
5
5
|
import { StartDeviceAuthorizationCommandInput, StartDeviceAuthorizationCommandOutput } from "../commands/StartDeviceAuthorizationCommand";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
export declare const
|
|
10
|
-
|
|
11
|
-
|
|
6
|
+
/**
|
|
7
|
+
* serializeAws_restJson1CreateTokenCommand
|
|
8
|
+
*/
|
|
9
|
+
export declare const se_CreateTokenCommand: (input: CreateTokenCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
10
|
+
/**
|
|
11
|
+
* serializeAws_restJson1RegisterClientCommand
|
|
12
|
+
*/
|
|
13
|
+
export declare const se_RegisterClientCommand: (input: RegisterClientCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
14
|
+
/**
|
|
15
|
+
* serializeAws_restJson1StartDeviceAuthorizationCommand
|
|
16
|
+
*/
|
|
17
|
+
export declare const se_StartDeviceAuthorizationCommand: (input: StartDeviceAuthorizationCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
18
|
+
/**
|
|
19
|
+
* deserializeAws_restJson1CreateTokenCommand
|
|
20
|
+
*/
|
|
21
|
+
export declare const de_CreateTokenCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CreateTokenCommandOutput>;
|
|
22
|
+
/**
|
|
23
|
+
* deserializeAws_restJson1RegisterClientCommand
|
|
24
|
+
*/
|
|
25
|
+
export declare const de_RegisterClientCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<RegisterClientCommandOutput>;
|
|
26
|
+
/**
|
|
27
|
+
* deserializeAws_restJson1StartDeviceAuthorizationCommand
|
|
28
|
+
*/
|
|
29
|
+
export declare const de_StartDeviceAuthorizationCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<StartDeviceAuthorizationCommandOutput>;
|
|
@@ -15,27 +15,27 @@ import {
|
|
|
15
15
|
StartDeviceAuthorizationCommandInput,
|
|
16
16
|
StartDeviceAuthorizationCommandOutput,
|
|
17
17
|
} from "../commands/StartDeviceAuthorizationCommand";
|
|
18
|
-
export declare const
|
|
18
|
+
export declare const se_CreateTokenCommand: (
|
|
19
19
|
input: CreateTokenCommandInput,
|
|
20
20
|
context: __SerdeContext
|
|
21
21
|
) => Promise<__HttpRequest>;
|
|
22
|
-
export declare const
|
|
22
|
+
export declare const se_RegisterClientCommand: (
|
|
23
23
|
input: RegisterClientCommandInput,
|
|
24
24
|
context: __SerdeContext
|
|
25
25
|
) => Promise<__HttpRequest>;
|
|
26
|
-
export declare const
|
|
26
|
+
export declare const se_StartDeviceAuthorizationCommand: (
|
|
27
27
|
input: StartDeviceAuthorizationCommandInput,
|
|
28
28
|
context: __SerdeContext
|
|
29
29
|
) => Promise<__HttpRequest>;
|
|
30
|
-
export declare const
|
|
30
|
+
export declare const de_CreateTokenCommand: (
|
|
31
31
|
output: __HttpResponse,
|
|
32
32
|
context: __SerdeContext
|
|
33
33
|
) => Promise<CreateTokenCommandOutput>;
|
|
34
|
-
export declare const
|
|
34
|
+
export declare const de_RegisterClientCommand: (
|
|
35
35
|
output: __HttpResponse,
|
|
36
36
|
context: __SerdeContext
|
|
37
37
|
) => Promise<RegisterClientCommandOutput>;
|
|
38
|
-
export declare const
|
|
38
|
+
export declare const de_StartDeviceAuthorizationCommand: (
|
|
39
39
|
output: __HttpResponse,
|
|
40
40
|
context: __SerdeContext
|
|
41
41
|
) => Promise<StartDeviceAuthorizationCommandOutput>;
|
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.309.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",
|
|
@@ -21,34 +21,34 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/config-resolver": "3.
|
|
25
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
26
|
-
"@aws-sdk/hash-node": "3.
|
|
27
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
28
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
29
|
-
"@aws-sdk/middleware-endpoint": "3.
|
|
30
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
31
|
-
"@aws-sdk/middleware-logger": "3.
|
|
32
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
33
|
-
"@aws-sdk/middleware-retry": "3.
|
|
34
|
-
"@aws-sdk/middleware-serde": "3.
|
|
35
|
-
"@aws-sdk/middleware-stack": "3.
|
|
36
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
37
|
-
"@aws-sdk/node-config-provider": "3.
|
|
38
|
-
"@aws-sdk/node-http-handler": "3.
|
|
39
|
-
"@aws-sdk/protocol-http": "3.
|
|
40
|
-
"@aws-sdk/smithy-client": "3.
|
|
41
|
-
"@aws-sdk/types": "3.
|
|
42
|
-
"@aws-sdk/url-parser": "3.
|
|
24
|
+
"@aws-sdk/config-resolver": "3.306.0",
|
|
25
|
+
"@aws-sdk/fetch-http-handler": "3.306.0",
|
|
26
|
+
"@aws-sdk/hash-node": "3.306.0",
|
|
27
|
+
"@aws-sdk/invalid-dependency": "3.306.0",
|
|
28
|
+
"@aws-sdk/middleware-content-length": "3.306.0",
|
|
29
|
+
"@aws-sdk/middleware-endpoint": "3.306.0",
|
|
30
|
+
"@aws-sdk/middleware-host-header": "3.306.0",
|
|
31
|
+
"@aws-sdk/middleware-logger": "3.306.0",
|
|
32
|
+
"@aws-sdk/middleware-recursion-detection": "3.306.0",
|
|
33
|
+
"@aws-sdk/middleware-retry": "3.306.0",
|
|
34
|
+
"@aws-sdk/middleware-serde": "3.306.0",
|
|
35
|
+
"@aws-sdk/middleware-stack": "3.306.0",
|
|
36
|
+
"@aws-sdk/middleware-user-agent": "3.306.0",
|
|
37
|
+
"@aws-sdk/node-config-provider": "3.306.0",
|
|
38
|
+
"@aws-sdk/node-http-handler": "3.306.0",
|
|
39
|
+
"@aws-sdk/protocol-http": "3.306.0",
|
|
40
|
+
"@aws-sdk/smithy-client": "3.309.0",
|
|
41
|
+
"@aws-sdk/types": "3.306.0",
|
|
42
|
+
"@aws-sdk/url-parser": "3.306.0",
|
|
43
43
|
"@aws-sdk/util-base64": "3.303.0",
|
|
44
44
|
"@aws-sdk/util-body-length-browser": "3.303.0",
|
|
45
45
|
"@aws-sdk/util-body-length-node": "3.303.0",
|
|
46
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
47
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
48
|
-
"@aws-sdk/util-endpoints": "3.
|
|
49
|
-
"@aws-sdk/util-retry": "3.
|
|
50
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
51
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
46
|
+
"@aws-sdk/util-defaults-mode-browser": "3.309.0",
|
|
47
|
+
"@aws-sdk/util-defaults-mode-node": "3.309.0",
|
|
48
|
+
"@aws-sdk/util-endpoints": "3.306.0",
|
|
49
|
+
"@aws-sdk/util-retry": "3.306.0",
|
|
50
|
+
"@aws-sdk/util-user-agent-browser": "3.306.0",
|
|
51
|
+
"@aws-sdk/util-user-agent-node": "3.306.0",
|
|
52
52
|
"@aws-sdk/util-utf8": "3.303.0",
|
|
53
53
|
"tslib": "^2.5.0"
|
|
54
54
|
},
|