@aws-sdk/client-signin 3.987.0 → 3.989.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/index.js +20 -172
- package/dist-cjs/models/SigninServiceException.js +12 -0
- package/dist-cjs/models/errors.js +64 -0
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-cjs/schemas/schemas_0.js +102 -0
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +30 -24
- package/dist-types/schemas/schemas_0.d.ts +11 -4
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +6 -4
- package/package.json +13 -13
package/dist-cjs/index.js
CHANGED
|
@@ -15,6 +15,9 @@ var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
|
|
|
15
15
|
var runtimeConfig = require('./runtimeConfig');
|
|
16
16
|
var regionConfigResolver = require('@aws-sdk/region-config-resolver');
|
|
17
17
|
var protocolHttp = require('@smithy/protocol-http');
|
|
18
|
+
var schemas_0 = require('./schemas/schemas_0');
|
|
19
|
+
var errors = require('./models/errors');
|
|
20
|
+
var SigninServiceException = require('./models/SigninServiceException');
|
|
18
21
|
|
|
19
22
|
const resolveClientEndpointParameters = (options) => {
|
|
20
23
|
return Object.assign(options, {
|
|
@@ -110,161 +113,6 @@ class SigninClient extends smithyClient.Client {
|
|
|
110
113
|
}
|
|
111
114
|
}
|
|
112
115
|
|
|
113
|
-
class SigninServiceException extends smithyClient.ServiceException {
|
|
114
|
-
constructor(options) {
|
|
115
|
-
super(options);
|
|
116
|
-
Object.setPrototypeOf(this, SigninServiceException.prototype);
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
class AccessDeniedException extends SigninServiceException {
|
|
121
|
-
name = "AccessDeniedException";
|
|
122
|
-
$fault = "client";
|
|
123
|
-
error;
|
|
124
|
-
constructor(opts) {
|
|
125
|
-
super({
|
|
126
|
-
name: "AccessDeniedException",
|
|
127
|
-
$fault: "client",
|
|
128
|
-
...opts,
|
|
129
|
-
});
|
|
130
|
-
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
131
|
-
this.error = opts.error;
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
class InternalServerException extends SigninServiceException {
|
|
135
|
-
name = "InternalServerException";
|
|
136
|
-
$fault = "server";
|
|
137
|
-
error;
|
|
138
|
-
constructor(opts) {
|
|
139
|
-
super({
|
|
140
|
-
name: "InternalServerException",
|
|
141
|
-
$fault: "server",
|
|
142
|
-
...opts,
|
|
143
|
-
});
|
|
144
|
-
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
145
|
-
this.error = opts.error;
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
class TooManyRequestsError extends SigninServiceException {
|
|
149
|
-
name = "TooManyRequestsError";
|
|
150
|
-
$fault = "client";
|
|
151
|
-
error;
|
|
152
|
-
constructor(opts) {
|
|
153
|
-
super({
|
|
154
|
-
name: "TooManyRequestsError",
|
|
155
|
-
$fault: "client",
|
|
156
|
-
...opts,
|
|
157
|
-
});
|
|
158
|
-
Object.setPrototypeOf(this, TooManyRequestsError.prototype);
|
|
159
|
-
this.error = opts.error;
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
class ValidationException extends SigninServiceException {
|
|
163
|
-
name = "ValidationException";
|
|
164
|
-
$fault = "client";
|
|
165
|
-
error;
|
|
166
|
-
constructor(opts) {
|
|
167
|
-
super({
|
|
168
|
-
name: "ValidationException",
|
|
169
|
-
$fault: "client",
|
|
170
|
-
...opts,
|
|
171
|
-
});
|
|
172
|
-
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
173
|
-
this.error = opts.error;
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
const _ADE = "AccessDeniedException";
|
|
178
|
-
const _AT = "AccessToken";
|
|
179
|
-
const _COAT = "CreateOAuth2Token";
|
|
180
|
-
const _COATR = "CreateOAuth2TokenRequest";
|
|
181
|
-
const _COATRB = "CreateOAuth2TokenRequestBody";
|
|
182
|
-
const _COATRBr = "CreateOAuth2TokenResponseBody";
|
|
183
|
-
const _COATRr = "CreateOAuth2TokenResponse";
|
|
184
|
-
const _ISE = "InternalServerException";
|
|
185
|
-
const _RT = "RefreshToken";
|
|
186
|
-
const _TMRE = "TooManyRequestsError";
|
|
187
|
-
const _VE = "ValidationException";
|
|
188
|
-
const _aKI = "accessKeyId";
|
|
189
|
-
const _aT = "accessToken";
|
|
190
|
-
const _c = "client";
|
|
191
|
-
const _cI = "clientId";
|
|
192
|
-
const _cV = "codeVerifier";
|
|
193
|
-
const _co = "code";
|
|
194
|
-
const _e = "error";
|
|
195
|
-
const _eI = "expiresIn";
|
|
196
|
-
const _gT = "grantType";
|
|
197
|
-
const _h = "http";
|
|
198
|
-
const _hE = "httpError";
|
|
199
|
-
const _iT = "idToken";
|
|
200
|
-
const _jN = "jsonName";
|
|
201
|
-
const _m = "message";
|
|
202
|
-
const _rT = "refreshToken";
|
|
203
|
-
const _rU = "redirectUri";
|
|
204
|
-
const _s = "server";
|
|
205
|
-
const _sAK = "secretAccessKey";
|
|
206
|
-
const _sT = "sessionToken";
|
|
207
|
-
const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.signin";
|
|
208
|
-
const _tI = "tokenInput";
|
|
209
|
-
const _tO = "tokenOutput";
|
|
210
|
-
const _tT = "tokenType";
|
|
211
|
-
const n0 = "com.amazonaws.signin";
|
|
212
|
-
var RefreshToken = [0, n0, _RT, 8, 0];
|
|
213
|
-
var AccessDeniedException$ = [-3, n0, _ADE,
|
|
214
|
-
{ [_e]: _c },
|
|
215
|
-
[_e, _m],
|
|
216
|
-
[0, 0], 2
|
|
217
|
-
];
|
|
218
|
-
schema.TypeRegistry.for(n0).registerError(AccessDeniedException$, AccessDeniedException);
|
|
219
|
-
var AccessToken$ = [3, n0, _AT,
|
|
220
|
-
8,
|
|
221
|
-
[_aKI, _sAK, _sT],
|
|
222
|
-
[[0, { [_jN]: _aKI }], [0, { [_jN]: _sAK }], [0, { [_jN]: _sT }]], 3
|
|
223
|
-
];
|
|
224
|
-
var CreateOAuth2TokenRequest$ = [3, n0, _COATR,
|
|
225
|
-
0,
|
|
226
|
-
[_tI],
|
|
227
|
-
[[() => CreateOAuth2TokenRequestBody$, 16]], 1
|
|
228
|
-
];
|
|
229
|
-
var CreateOAuth2TokenRequestBody$ = [3, n0, _COATRB,
|
|
230
|
-
0,
|
|
231
|
-
[_cI, _gT, _co, _rU, _cV, _rT],
|
|
232
|
-
[[0, { [_jN]: _cI }], [0, { [_jN]: _gT }], 0, [0, { [_jN]: _rU }], [0, { [_jN]: _cV }], [() => RefreshToken, { [_jN]: _rT }]], 2
|
|
233
|
-
];
|
|
234
|
-
var CreateOAuth2TokenResponse$ = [3, n0, _COATRr,
|
|
235
|
-
0,
|
|
236
|
-
[_tO],
|
|
237
|
-
[[() => CreateOAuth2TokenResponseBody$, 16]], 1
|
|
238
|
-
];
|
|
239
|
-
var CreateOAuth2TokenResponseBody$ = [3, n0, _COATRBr,
|
|
240
|
-
0,
|
|
241
|
-
[_aT, _tT, _eI, _rT, _iT],
|
|
242
|
-
[[() => AccessToken$, { [_jN]: _aT }], [0, { [_jN]: _tT }], [1, { [_jN]: _eI }], [() => RefreshToken, { [_jN]: _rT }], [0, { [_jN]: _iT }]], 4
|
|
243
|
-
];
|
|
244
|
-
var InternalServerException$ = [-3, n0, _ISE,
|
|
245
|
-
{ [_e]: _s, [_hE]: 500 },
|
|
246
|
-
[_e, _m],
|
|
247
|
-
[0, 0], 2
|
|
248
|
-
];
|
|
249
|
-
schema.TypeRegistry.for(n0).registerError(InternalServerException$, InternalServerException);
|
|
250
|
-
var TooManyRequestsError$ = [-3, n0, _TMRE,
|
|
251
|
-
{ [_e]: _c, [_hE]: 429 },
|
|
252
|
-
[_e, _m],
|
|
253
|
-
[0, 0], 2
|
|
254
|
-
];
|
|
255
|
-
schema.TypeRegistry.for(n0).registerError(TooManyRequestsError$, TooManyRequestsError);
|
|
256
|
-
var ValidationException$ = [-3, n0, _VE,
|
|
257
|
-
{ [_e]: _c, [_hE]: 400 },
|
|
258
|
-
[_e, _m],
|
|
259
|
-
[0, 0], 2
|
|
260
|
-
];
|
|
261
|
-
schema.TypeRegistry.for(n0).registerError(ValidationException$, ValidationException);
|
|
262
|
-
var SigninServiceException$ = [-3, _sm, "SigninServiceException", 0, [], []];
|
|
263
|
-
schema.TypeRegistry.for(_sm).registerError(SigninServiceException$, SigninServiceException);
|
|
264
|
-
var CreateOAuth2Token$ = [9, n0, _COAT,
|
|
265
|
-
{ [_h]: ["POST", "/v1/token", 200] }, () => CreateOAuth2TokenRequest$, () => CreateOAuth2TokenResponse$
|
|
266
|
-
];
|
|
267
|
-
|
|
268
116
|
class CreateOAuth2TokenCommand extends smithyClient.Command
|
|
269
117
|
.classBuilder()
|
|
270
118
|
.ep(commonParams)
|
|
@@ -273,7 +121,7 @@ class CreateOAuth2TokenCommand extends smithyClient.Command
|
|
|
273
121
|
})
|
|
274
122
|
.s("Signin", "CreateOAuth2Token", {})
|
|
275
123
|
.n("SigninClient", "CreateOAuth2TokenCommand")
|
|
276
|
-
.sc(CreateOAuth2Token$)
|
|
124
|
+
.sc(schemas_0.CreateOAuth2Token$)
|
|
277
125
|
.build() {
|
|
278
126
|
}
|
|
279
127
|
|
|
@@ -301,23 +149,23 @@ Object.defineProperty(exports, "__Client", {
|
|
|
301
149
|
enumerable: true,
|
|
302
150
|
get: function () { return smithyClient.Client; }
|
|
303
151
|
});
|
|
304
|
-
exports
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
152
|
+
Object.defineProperty(exports, "SigninServiceException", {
|
|
153
|
+
enumerable: true,
|
|
154
|
+
get: function () { return SigninServiceException.SigninServiceException; }
|
|
155
|
+
});
|
|
308
156
|
exports.CreateOAuth2TokenCommand = CreateOAuth2TokenCommand;
|
|
309
|
-
exports.CreateOAuth2TokenRequest$ = CreateOAuth2TokenRequest$;
|
|
310
|
-
exports.CreateOAuth2TokenRequestBody$ = CreateOAuth2TokenRequestBody$;
|
|
311
|
-
exports.CreateOAuth2TokenResponse$ = CreateOAuth2TokenResponse$;
|
|
312
|
-
exports.CreateOAuth2TokenResponseBody$ = CreateOAuth2TokenResponseBody$;
|
|
313
|
-
exports.InternalServerException = InternalServerException;
|
|
314
|
-
exports.InternalServerException$ = InternalServerException$;
|
|
315
157
|
exports.OAuth2ErrorCode = OAuth2ErrorCode;
|
|
316
158
|
exports.Signin = Signin;
|
|
317
159
|
exports.SigninClient = SigninClient;
|
|
318
|
-
|
|
319
|
-
exports.
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
160
|
+
Object.keys(schemas_0).forEach(function (k) {
|
|
161
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
162
|
+
enumerable: true,
|
|
163
|
+
get: function () { return schemas_0[k]; }
|
|
164
|
+
});
|
|
165
|
+
});
|
|
166
|
+
Object.keys(errors).forEach(function (k) {
|
|
167
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
168
|
+
enumerable: true,
|
|
169
|
+
get: function () { return errors[k]; }
|
|
170
|
+
});
|
|
171
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SigninServiceException = exports.__ServiceException = void 0;
|
|
4
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
5
|
+
Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return smithy_client_1.ServiceException; } });
|
|
6
|
+
class SigninServiceException extends smithy_client_1.ServiceException {
|
|
7
|
+
constructor(options) {
|
|
8
|
+
super(options);
|
|
9
|
+
Object.setPrototypeOf(this, SigninServiceException.prototype);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.SigninServiceException = SigninServiceException;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ValidationException = exports.TooManyRequestsError = exports.InternalServerException = exports.AccessDeniedException = void 0;
|
|
4
|
+
const SigninServiceException_1 = require("./SigninServiceException");
|
|
5
|
+
class AccessDeniedException extends SigninServiceException_1.SigninServiceException {
|
|
6
|
+
name = "AccessDeniedException";
|
|
7
|
+
$fault = "client";
|
|
8
|
+
error;
|
|
9
|
+
constructor(opts) {
|
|
10
|
+
super({
|
|
11
|
+
name: "AccessDeniedException",
|
|
12
|
+
$fault: "client",
|
|
13
|
+
...opts,
|
|
14
|
+
});
|
|
15
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
16
|
+
this.error = opts.error;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
exports.AccessDeniedException = AccessDeniedException;
|
|
20
|
+
class InternalServerException extends SigninServiceException_1.SigninServiceException {
|
|
21
|
+
name = "InternalServerException";
|
|
22
|
+
$fault = "server";
|
|
23
|
+
error;
|
|
24
|
+
constructor(opts) {
|
|
25
|
+
super({
|
|
26
|
+
name: "InternalServerException",
|
|
27
|
+
$fault: "server",
|
|
28
|
+
...opts,
|
|
29
|
+
});
|
|
30
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
31
|
+
this.error = opts.error;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
exports.InternalServerException = InternalServerException;
|
|
35
|
+
class TooManyRequestsError extends SigninServiceException_1.SigninServiceException {
|
|
36
|
+
name = "TooManyRequestsError";
|
|
37
|
+
$fault = "client";
|
|
38
|
+
error;
|
|
39
|
+
constructor(opts) {
|
|
40
|
+
super({
|
|
41
|
+
name: "TooManyRequestsError",
|
|
42
|
+
$fault: "client",
|
|
43
|
+
...opts,
|
|
44
|
+
});
|
|
45
|
+
Object.setPrototypeOf(this, TooManyRequestsError.prototype);
|
|
46
|
+
this.error = opts.error;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
exports.TooManyRequestsError = TooManyRequestsError;
|
|
50
|
+
class ValidationException extends SigninServiceException_1.SigninServiceException {
|
|
51
|
+
name = "ValidationException";
|
|
52
|
+
$fault = "client";
|
|
53
|
+
error;
|
|
54
|
+
constructor(opts) {
|
|
55
|
+
super({
|
|
56
|
+
name: "ValidationException",
|
|
57
|
+
$fault: "client",
|
|
58
|
+
...opts,
|
|
59
|
+
});
|
|
60
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
61
|
+
this.error = opts.error;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
exports.ValidationException = ValidationException;
|
|
@@ -10,6 +10,7 @@ const util_base64_1 = require("@smithy/util-base64");
|
|
|
10
10
|
const util_utf8_1 = require("@smithy/util-utf8");
|
|
11
11
|
const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider");
|
|
12
12
|
const endpointResolver_1 = require("./endpoint/endpointResolver");
|
|
13
|
+
const schemas_0_1 = require("./schemas/schemas_0");
|
|
13
14
|
const getRuntimeConfig = (config) => {
|
|
14
15
|
return {
|
|
15
16
|
apiVersion: "2023-01-01",
|
|
@@ -35,6 +36,7 @@ const getRuntimeConfig = (config) => {
|
|
|
35
36
|
protocol: config?.protocol ?? protocols_1.AwsRestJsonProtocol,
|
|
36
37
|
protocolSettings: config?.protocolSettings ?? {
|
|
37
38
|
defaultNamespace: "com.amazonaws.signin",
|
|
39
|
+
errorTypeRegistries: schemas_0_1.errorTypeRegistries,
|
|
38
40
|
version: "2023-01-01",
|
|
39
41
|
serviceTarget: "Signin",
|
|
40
42
|
},
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateOAuth2Token$ = exports.CreateOAuth2TokenResponseBody$ = exports.CreateOAuth2TokenResponse$ = exports.CreateOAuth2TokenRequestBody$ = exports.CreateOAuth2TokenRequest$ = exports.AccessToken$ = exports.errorTypeRegistries = exports.ValidationException$ = exports.TooManyRequestsError$ = exports.InternalServerException$ = exports.AccessDeniedException$ = exports.SigninServiceException$ = void 0;
|
|
4
|
+
const _ADE = "AccessDeniedException";
|
|
5
|
+
const _AT = "AccessToken";
|
|
6
|
+
const _COAT = "CreateOAuth2Token";
|
|
7
|
+
const _COATR = "CreateOAuth2TokenRequest";
|
|
8
|
+
const _COATRB = "CreateOAuth2TokenRequestBody";
|
|
9
|
+
const _COATRBr = "CreateOAuth2TokenResponseBody";
|
|
10
|
+
const _COATRr = "CreateOAuth2TokenResponse";
|
|
11
|
+
const _ISE = "InternalServerException";
|
|
12
|
+
const _RT = "RefreshToken";
|
|
13
|
+
const _TMRE = "TooManyRequestsError";
|
|
14
|
+
const _VE = "ValidationException";
|
|
15
|
+
const _aKI = "accessKeyId";
|
|
16
|
+
const _aT = "accessToken";
|
|
17
|
+
const _c = "client";
|
|
18
|
+
const _cI = "clientId";
|
|
19
|
+
const _cV = "codeVerifier";
|
|
20
|
+
const _co = "code";
|
|
21
|
+
const _e = "error";
|
|
22
|
+
const _eI = "expiresIn";
|
|
23
|
+
const _gT = "grantType";
|
|
24
|
+
const _h = "http";
|
|
25
|
+
const _hE = "httpError";
|
|
26
|
+
const _iT = "idToken";
|
|
27
|
+
const _jN = "jsonName";
|
|
28
|
+
const _m = "message";
|
|
29
|
+
const _rT = "refreshToken";
|
|
30
|
+
const _rU = "redirectUri";
|
|
31
|
+
const _s = "smithy.ts.sdk.synthetic.com.amazonaws.signin";
|
|
32
|
+
const _sAK = "secretAccessKey";
|
|
33
|
+
const _sT = "sessionToken";
|
|
34
|
+
const _se = "server";
|
|
35
|
+
const _tI = "tokenInput";
|
|
36
|
+
const _tO = "tokenOutput";
|
|
37
|
+
const _tT = "tokenType";
|
|
38
|
+
const n0 = "com.amazonaws.signin";
|
|
39
|
+
const schema_1 = require("@smithy/core/schema");
|
|
40
|
+
const errors_1 = require("../models/errors");
|
|
41
|
+
const SigninServiceException_1 = require("../models/SigninServiceException");
|
|
42
|
+
const _s_registry = schema_1.TypeRegistry.for(_s);
|
|
43
|
+
exports.SigninServiceException$ = [-3, _s, "SigninServiceException", 0, [], []];
|
|
44
|
+
_s_registry.registerError(exports.SigninServiceException$, SigninServiceException_1.SigninServiceException);
|
|
45
|
+
const n0_registry = schema_1.TypeRegistry.for(n0);
|
|
46
|
+
exports.AccessDeniedException$ = [-3, n0, _ADE,
|
|
47
|
+
{ [_e]: _c },
|
|
48
|
+
[_e, _m],
|
|
49
|
+
[0, 0], 2
|
|
50
|
+
];
|
|
51
|
+
n0_registry.registerError(exports.AccessDeniedException$, errors_1.AccessDeniedException);
|
|
52
|
+
exports.InternalServerException$ = [-3, n0, _ISE,
|
|
53
|
+
{ [_e]: _se, [_hE]: 500 },
|
|
54
|
+
[_e, _m],
|
|
55
|
+
[0, 0], 2
|
|
56
|
+
];
|
|
57
|
+
n0_registry.registerError(exports.InternalServerException$, errors_1.InternalServerException);
|
|
58
|
+
exports.TooManyRequestsError$ = [-3, n0, _TMRE,
|
|
59
|
+
{ [_e]: _c, [_hE]: 429 },
|
|
60
|
+
[_e, _m],
|
|
61
|
+
[0, 0], 2
|
|
62
|
+
];
|
|
63
|
+
n0_registry.registerError(exports.TooManyRequestsError$, errors_1.TooManyRequestsError);
|
|
64
|
+
exports.ValidationException$ = [-3, n0, _VE,
|
|
65
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
66
|
+
[_e, _m],
|
|
67
|
+
[0, 0], 2
|
|
68
|
+
];
|
|
69
|
+
n0_registry.registerError(exports.ValidationException$, errors_1.ValidationException);
|
|
70
|
+
exports.errorTypeRegistries = [
|
|
71
|
+
_s_registry,
|
|
72
|
+
n0_registry,
|
|
73
|
+
];
|
|
74
|
+
var RefreshToken = [0, n0, _RT, 8, 0];
|
|
75
|
+
exports.AccessToken$ = [3, n0, _AT,
|
|
76
|
+
8,
|
|
77
|
+
[_aKI, _sAK, _sT],
|
|
78
|
+
[[0, { [_jN]: _aKI }], [0, { [_jN]: _sAK }], [0, { [_jN]: _sT }]], 3
|
|
79
|
+
];
|
|
80
|
+
exports.CreateOAuth2TokenRequest$ = [3, n0, _COATR,
|
|
81
|
+
0,
|
|
82
|
+
[_tI],
|
|
83
|
+
[[() => exports.CreateOAuth2TokenRequestBody$, 16]], 1
|
|
84
|
+
];
|
|
85
|
+
exports.CreateOAuth2TokenRequestBody$ = [3, n0, _COATRB,
|
|
86
|
+
0,
|
|
87
|
+
[_cI, _gT, _co, _rU, _cV, _rT],
|
|
88
|
+
[[0, { [_jN]: _cI }], [0, { [_jN]: _gT }], 0, [0, { [_jN]: _rU }], [0, { [_jN]: _cV }], [() => RefreshToken, { [_jN]: _rT }]], 2
|
|
89
|
+
];
|
|
90
|
+
exports.CreateOAuth2TokenResponse$ = [3, n0, _COATRr,
|
|
91
|
+
0,
|
|
92
|
+
[_tO],
|
|
93
|
+
[[() => exports.CreateOAuth2TokenResponseBody$, 16]], 1
|
|
94
|
+
];
|
|
95
|
+
exports.CreateOAuth2TokenResponseBody$ = [3, n0, _COATRBr,
|
|
96
|
+
0,
|
|
97
|
+
[_aT, _tT, _eI, _rT, _iT],
|
|
98
|
+
[[() => exports.AccessToken$, { [_jN]: _aT }], [0, { [_jN]: _tT }], [1, { [_jN]: _eI }], [() => RefreshToken, { [_jN]: _rT }], [0, { [_jN]: _iT }]], 4
|
|
99
|
+
];
|
|
100
|
+
exports.CreateOAuth2Token$ = [9, n0, _COAT,
|
|
101
|
+
{ [_h]: ["POST", "/v1/token", 200] }, () => exports.CreateOAuth2TokenRequest$, () => exports.CreateOAuth2TokenResponse$
|
|
102
|
+
];
|
|
@@ -7,6 +7,7 @@ import { fromBase64, toBase64 } from "@smithy/util-base64";
|
|
|
7
7
|
import { fromUtf8, toUtf8 } from "@smithy/util-utf8";
|
|
8
8
|
import { defaultSigninHttpAuthSchemeProvider } from "./auth/httpAuthSchemeProvider";
|
|
9
9
|
import { defaultEndpointResolver } from "./endpoint/endpointResolver";
|
|
10
|
+
import { errorTypeRegistries } from "./schemas/schemas_0";
|
|
10
11
|
export const getRuntimeConfig = (config) => {
|
|
11
12
|
return {
|
|
12
13
|
apiVersion: "2023-01-01",
|
|
@@ -32,6 +33,7 @@ export const getRuntimeConfig = (config) => {
|
|
|
32
33
|
protocol: config?.protocol ?? AwsRestJsonProtocol,
|
|
33
34
|
protocolSettings: config?.protocolSettings ?? {
|
|
34
35
|
defaultNamespace: "com.amazonaws.signin",
|
|
36
|
+
errorTypeRegistries,
|
|
35
37
|
version: "2023-01-01",
|
|
36
38
|
serviceTarget: "Signin",
|
|
37
39
|
},
|
|
@@ -25,10 +25,10 @@ const _jN = "jsonName";
|
|
|
25
25
|
const _m = "message";
|
|
26
26
|
const _rT = "refreshToken";
|
|
27
27
|
const _rU = "redirectUri";
|
|
28
|
-
const _s = "
|
|
28
|
+
const _s = "smithy.ts.sdk.synthetic.com.amazonaws.signin";
|
|
29
29
|
const _sAK = "secretAccessKey";
|
|
30
30
|
const _sT = "sessionToken";
|
|
31
|
-
const
|
|
31
|
+
const _se = "server";
|
|
32
32
|
const _tI = "tokenInput";
|
|
33
33
|
const _tO = "tokenOutput";
|
|
34
34
|
const _tT = "tokenType";
|
|
@@ -36,13 +36,39 @@ const n0 = "com.amazonaws.signin";
|
|
|
36
36
|
import { TypeRegistry } from "@smithy/core/schema";
|
|
37
37
|
import { AccessDeniedException, InternalServerException, TooManyRequestsError, ValidationException, } from "../models/errors";
|
|
38
38
|
import { SigninServiceException } from "../models/SigninServiceException";
|
|
39
|
-
|
|
39
|
+
const _s_registry = TypeRegistry.for(_s);
|
|
40
|
+
export var SigninServiceException$ = [-3, _s, "SigninServiceException", 0, [], []];
|
|
41
|
+
_s_registry.registerError(SigninServiceException$, SigninServiceException);
|
|
42
|
+
const n0_registry = TypeRegistry.for(n0);
|
|
40
43
|
export var AccessDeniedException$ = [-3, n0, _ADE,
|
|
41
44
|
{ [_e]: _c },
|
|
42
45
|
[_e, _m],
|
|
43
46
|
[0, 0], 2
|
|
44
47
|
];
|
|
45
|
-
|
|
48
|
+
n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
|
|
49
|
+
export var InternalServerException$ = [-3, n0, _ISE,
|
|
50
|
+
{ [_e]: _se, [_hE]: 500 },
|
|
51
|
+
[_e, _m],
|
|
52
|
+
[0, 0], 2
|
|
53
|
+
];
|
|
54
|
+
n0_registry.registerError(InternalServerException$, InternalServerException);
|
|
55
|
+
export var TooManyRequestsError$ = [-3, n0, _TMRE,
|
|
56
|
+
{ [_e]: _c, [_hE]: 429 },
|
|
57
|
+
[_e, _m],
|
|
58
|
+
[0, 0], 2
|
|
59
|
+
];
|
|
60
|
+
n0_registry.registerError(TooManyRequestsError$, TooManyRequestsError);
|
|
61
|
+
export var ValidationException$ = [-3, n0, _VE,
|
|
62
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
63
|
+
[_e, _m],
|
|
64
|
+
[0, 0], 2
|
|
65
|
+
];
|
|
66
|
+
n0_registry.registerError(ValidationException$, ValidationException);
|
|
67
|
+
export const errorTypeRegistries = [
|
|
68
|
+
_s_registry,
|
|
69
|
+
n0_registry,
|
|
70
|
+
];
|
|
71
|
+
var RefreshToken = [0, n0, _RT, 8, 0];
|
|
46
72
|
export var AccessToken$ = [3, n0, _AT,
|
|
47
73
|
8,
|
|
48
74
|
[_aKI, _sAK, _sT],
|
|
@@ -68,26 +94,6 @@ export var CreateOAuth2TokenResponseBody$ = [3, n0, _COATRBr,
|
|
|
68
94
|
[_aT, _tT, _eI, _rT, _iT],
|
|
69
95
|
[[() => AccessToken$, { [_jN]: _aT }], [0, { [_jN]: _tT }], [1, { [_jN]: _eI }], [() => RefreshToken, { [_jN]: _rT }], [0, { [_jN]: _iT }]], 4
|
|
70
96
|
];
|
|
71
|
-
export var InternalServerException$ = [-3, n0, _ISE,
|
|
72
|
-
{ [_e]: _s, [_hE]: 500 },
|
|
73
|
-
[_e, _m],
|
|
74
|
-
[0, 0], 2
|
|
75
|
-
];
|
|
76
|
-
TypeRegistry.for(n0).registerError(InternalServerException$, InternalServerException);
|
|
77
|
-
export var TooManyRequestsError$ = [-3, n0, _TMRE,
|
|
78
|
-
{ [_e]: _c, [_hE]: 429 },
|
|
79
|
-
[_e, _m],
|
|
80
|
-
[0, 0], 2
|
|
81
|
-
];
|
|
82
|
-
TypeRegistry.for(n0).registerError(TooManyRequestsError$, TooManyRequestsError);
|
|
83
|
-
export var ValidationException$ = [-3, n0, _VE,
|
|
84
|
-
{ [_e]: _c, [_hE]: 400 },
|
|
85
|
-
[_e, _m],
|
|
86
|
-
[0, 0], 2
|
|
87
|
-
];
|
|
88
|
-
TypeRegistry.for(n0).registerError(ValidationException$, ValidationException);
|
|
89
|
-
export var SigninServiceException$ = [-3, _sm, "SigninServiceException", 0, [], []];
|
|
90
|
-
TypeRegistry.for(_sm).registerError(SigninServiceException$, SigninServiceException);
|
|
91
97
|
export var CreateOAuth2Token$ = [9, n0, _COAT,
|
|
92
98
|
{ [_h]: ["POST", "/v1/token", 200] }, () => CreateOAuth2TokenRequest$, () => CreateOAuth2TokenResponse$
|
|
93
99
|
];
|
|
@@ -1,12 +1,19 @@
|
|
|
1
|
+
import { TypeRegistry } from "@smithy/core/schema";
|
|
1
2
|
import type { StaticErrorSchema, StaticOperationSchema, StaticStructureSchema } from "@smithy/types";
|
|
3
|
+
export declare var SigninServiceException$: StaticErrorSchema;
|
|
2
4
|
export declare var AccessDeniedException$: StaticErrorSchema;
|
|
5
|
+
export declare var InternalServerException$: StaticErrorSchema;
|
|
6
|
+
export declare var TooManyRequestsError$: StaticErrorSchema;
|
|
7
|
+
export declare var ValidationException$: StaticErrorSchema;
|
|
8
|
+
/**
|
|
9
|
+
* TypeRegistry instances containing modeled errors.
|
|
10
|
+
* @internal
|
|
11
|
+
*
|
|
12
|
+
*/
|
|
13
|
+
export declare const errorTypeRegistries: TypeRegistry[];
|
|
3
14
|
export declare var AccessToken$: StaticStructureSchema;
|
|
4
15
|
export declare var CreateOAuth2TokenRequest$: StaticStructureSchema;
|
|
5
16
|
export declare var CreateOAuth2TokenRequestBody$: StaticStructureSchema;
|
|
6
17
|
export declare var CreateOAuth2TokenResponse$: StaticStructureSchema;
|
|
7
18
|
export declare var CreateOAuth2TokenResponseBody$: StaticStructureSchema;
|
|
8
|
-
export declare var InternalServerException$: StaticErrorSchema;
|
|
9
|
-
export declare var TooManyRequestsError$: StaticErrorSchema;
|
|
10
|
-
export declare var ValidationException$: StaticErrorSchema;
|
|
11
|
-
export declare var SigninServiceException$: StaticErrorSchema;
|
|
12
19
|
export declare var CreateOAuth2Token$: StaticOperationSchema;
|
|
@@ -1,16 +1,18 @@
|
|
|
1
|
+
import { TypeRegistry } from "@smithy/core/schema";
|
|
1
2
|
import {
|
|
2
3
|
StaticErrorSchema,
|
|
3
4
|
StaticOperationSchema,
|
|
4
5
|
StaticStructureSchema,
|
|
5
6
|
} from "@smithy/types";
|
|
7
|
+
export declare var SigninServiceException$: StaticErrorSchema;
|
|
6
8
|
export declare var AccessDeniedException$: StaticErrorSchema;
|
|
9
|
+
export declare var InternalServerException$: StaticErrorSchema;
|
|
10
|
+
export declare var TooManyRequestsError$: StaticErrorSchema;
|
|
11
|
+
export declare var ValidationException$: StaticErrorSchema;
|
|
12
|
+
export declare const errorTypeRegistries: TypeRegistry[];
|
|
7
13
|
export declare var AccessToken$: StaticStructureSchema;
|
|
8
14
|
export declare var CreateOAuth2TokenRequest$: StaticStructureSchema;
|
|
9
15
|
export declare var CreateOAuth2TokenRequestBody$: StaticStructureSchema;
|
|
10
16
|
export declare var CreateOAuth2TokenResponse$: StaticStructureSchema;
|
|
11
17
|
export declare var CreateOAuth2TokenResponseBody$: StaticStructureSchema;
|
|
12
|
-
export declare var InternalServerException$: StaticErrorSchema;
|
|
13
|
-
export declare var TooManyRequestsError$: StaticErrorSchema;
|
|
14
|
-
export declare var ValidationException$: StaticErrorSchema;
|
|
15
|
-
export declare var SigninServiceException$: StaticErrorSchema;
|
|
16
18
|
export declare var CreateOAuth2Token$: StaticOperationSchema;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-signin",
|
|
3
3
|
"description": "AWS SDK for JavaScript Signin Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.989.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-signin",
|
|
@@ -21,38 +21,38 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
24
|
-
"@aws-sdk/core": "^3.973.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
24
|
+
"@aws-sdk/core": "^3.973.9",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "^3.972.8",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "^3.972.3",
|
|
27
27
|
"@aws-sdk/middleware-logger": "^3.972.3",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "^3.972.3",
|
|
29
|
-
"@aws-sdk/middleware-user-agent": "^3.972.
|
|
29
|
+
"@aws-sdk/middleware-user-agent": "^3.972.9",
|
|
30
30
|
"@aws-sdk/region-config-resolver": "^3.972.3",
|
|
31
31
|
"@aws-sdk/types": "^3.973.1",
|
|
32
|
-
"@aws-sdk/util-endpoints": "3.
|
|
32
|
+
"@aws-sdk/util-endpoints": "3.989.0",
|
|
33
33
|
"@aws-sdk/util-user-agent-browser": "^3.972.3",
|
|
34
|
-
"@aws-sdk/util-user-agent-node": "^3.972.
|
|
34
|
+
"@aws-sdk/util-user-agent-node": "^3.972.7",
|
|
35
35
|
"@smithy/config-resolver": "^4.4.6",
|
|
36
|
-
"@smithy/core": "^3.
|
|
36
|
+
"@smithy/core": "^3.23.0",
|
|
37
37
|
"@smithy/fetch-http-handler": "^5.3.9",
|
|
38
38
|
"@smithy/hash-node": "^4.2.8",
|
|
39
39
|
"@smithy/invalid-dependency": "^4.2.8",
|
|
40
40
|
"@smithy/middleware-content-length": "^4.2.8",
|
|
41
|
-
"@smithy/middleware-endpoint": "^4.4.
|
|
42
|
-
"@smithy/middleware-retry": "^4.4.
|
|
41
|
+
"@smithy/middleware-endpoint": "^4.4.14",
|
|
42
|
+
"@smithy/middleware-retry": "^4.4.31",
|
|
43
43
|
"@smithy/middleware-serde": "^4.2.9",
|
|
44
44
|
"@smithy/middleware-stack": "^4.2.8",
|
|
45
45
|
"@smithy/node-config-provider": "^4.3.8",
|
|
46
|
-
"@smithy/node-http-handler": "^4.4.
|
|
46
|
+
"@smithy/node-http-handler": "^4.4.10",
|
|
47
47
|
"@smithy/protocol-http": "^5.3.8",
|
|
48
|
-
"@smithy/smithy-client": "^4.11.
|
|
48
|
+
"@smithy/smithy-client": "^4.11.3",
|
|
49
49
|
"@smithy/types": "^4.12.0",
|
|
50
50
|
"@smithy/url-parser": "^4.2.8",
|
|
51
51
|
"@smithy/util-base64": "^4.3.0",
|
|
52
52
|
"@smithy/util-body-length-browser": "^4.2.0",
|
|
53
53
|
"@smithy/util-body-length-node": "^4.2.1",
|
|
54
|
-
"@smithy/util-defaults-mode-browser": "^4.3.
|
|
55
|
-
"@smithy/util-defaults-mode-node": "^4.2.
|
|
54
|
+
"@smithy/util-defaults-mode-browser": "^4.3.30",
|
|
55
|
+
"@smithy/util-defaults-mode-node": "^4.2.33",
|
|
56
56
|
"@smithy/util-endpoints": "^3.2.8",
|
|
57
57
|
"@smithy/util-middleware": "^4.2.8",
|
|
58
58
|
"@smithy/util-retry": "^4.2.8",
|