@alienplatform/sdk 1.10.7 → 1.11.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/.turbo/turbo-build.log +37 -8
- package/dist/bearerTokenAuthenticationPolicy.js +3028 -0
- package/dist/bindings/index.d.ts +1 -0
- package/dist/bindings/index.d.ts.map +1 -1
- package/dist/bindings/postgres.d.ts +90 -0
- package/dist/bindings/postgres.d.ts.map +1 -0
- package/dist/bindings/postgres.test.d.ts +2 -0
- package/dist/bindings/postgres.test.d.ts.map +1 -0
- package/dist/client.js +2376 -0
- package/dist/commands/index.js +1 -1
- package/dist/dist-cjs.js +3 -0
- package/dist/dist-cjs2.js +718 -0
- package/dist/dist-cjs3.js +2486 -0
- package/dist/dist-cjs4.js +171 -0
- package/dist/dist-cjs5.js +429 -0
- package/dist/dist-cjs6.js +60 -0
- package/dist/dist-cjs7.js +978 -0
- package/dist/dist-cjs8.js +86 -0
- package/dist/dist-cjs9.js +319 -0
- package/dist/dist.js +498 -36
- package/dist/dist2.js +1239 -0
- package/dist/errors.d.ts +25 -0
- package/dist/errors.d.ts.map +1 -1
- package/dist/es5.js +1624 -0
- package/dist/esm.js +18211 -0
- package/dist/esm2.js +3104 -0
- package/dist/event-streams.js +203 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +336 -24996
- package/dist/jws.js +611 -0
- package/dist/open.js +460 -0
- package/dist/package.js +4 -0
- package/dist/protocols.js +954 -0
- package/dist/protocols2.js +5565 -0
- package/dist/rolldown-runtime.js +37 -0
- package/dist/serde.js +5542 -0
- package/dist/signin.js +723 -0
- package/dist/src.js +24900 -0
- package/dist/src2.js +114030 -0
- package/dist/sso-oidc.js +940 -0
- package/dist/sts.js +1329 -0
- package/dist/tslib.es6.js +543 -0
- package/package.json +26 -2
- package/src/bindings/index.ts +1 -0
- package/src/bindings/postgres.test.ts +17 -0
- package/src/bindings/postgres.ts +446 -0
- package/src/errors.ts +21 -0
- package/src/index.ts +5 -0
package/dist/signin.js
ADDED
|
@@ -0,0 +1,723 @@
|
|
|
1
|
+
import { n as __esmMin } from "./rolldown-runtime.js";
|
|
2
|
+
import { A as getHttpSigningPlugin, B as resolveHostHeaderConfig, E as DefaultIdentityProviderConfig, G as NODE_RETRY_MODE_CONFIG_OPTIONS, H as init_retry, I as getLoggerPlugin, J as DEFAULT_RETRY_MODE, M as getHttpAuthSchemeEndpointRuleSetPlugin, P as getRecursionDetectionPlugin, Q as emitWarningIfUnsupportedVersion, R as getHostHeaderPlugin, V as getRetryPlugin, W as NODE_MAX_ATTEMPT_CONFIG_OPTIONS, _ as resolveUserAgentConfig, a as resolveAwsRegionExtensionConfiguration, c as awsEndpointFunctions, f as createDefaultUserAgentProvider, m as getUserAgentPlugin, n as init_client, q as resolveRetryConfig, r as getAwsRegionExtensionConfiguration, u as NODE_APP_ID_CONFIG_OPTIONS, w as NoAuthSigner, y as init_dist_es } from "./client.js";
|
|
3
|
+
import { $ as calculateBodyLength, $t as TypeRegistry, Bt as emitWarningIfUnsupportedVersion$1, Dt as fromUtf8, E as BinaryDecisionDiagram, En as getSmithyContext, Et as toBase64, F as resolveRegionConfig, I as NODE_REGION_CONFIG_FILE_OPTIONS, K as loadConfig, L as NODE_REGION_CONFIG_OPTIONS, Lt as getDefaultExtensionConfiguration, Mt as init_client$1, N as resolveDefaultsModeConfig, Nt as NoOpLogger, U as NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, Ut as loadConfigsForDefaultMode, V as NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, Wt as ServiceException, Yt as Command, Zt as init_schema, _n as normalizeProvider, an as getSchemaSerdePlugin, b as customEndpointFunctions, c as Hash, d as getEndpointPlugin, f as init_endpoints, g as decideEndpoint, j as init_config$1, kt as fromBase64, ln as Client, p as resolveEndpointConfig, pn as parseUrl, qt as createAggregatedClient, r as init_serde, w as EndpointCache, wt as toUtf8, zt as resolveDefaultRuntimeConfig } from "./serde.js";
|
|
4
|
+
import { a as getHttpHandlerExtensionConfiguration, r as getContentLengthPlugin, s as resolveHttpHandlerRuntimeConfig, t as init_protocols } from "./protocols.js";
|
|
5
|
+
import { a as AwsRestJsonProtocol, c as init_httpAuthSchemes, h as NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, t as init_protocols$1, u as resolveAwsSdkSigV4Config, y as AwsSdkSigV4Signer } from "./protocols2.js";
|
|
6
|
+
import { t as require_dist_cjs } from "./dist-cjs2.js";
|
|
7
|
+
import { t as version } from "./package.js";
|
|
8
|
+
//#region ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.20/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/auth/httpAuthSchemeProvider.js
|
|
9
|
+
function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
|
10
|
+
return {
|
|
11
|
+
schemeId: "aws.auth#sigv4",
|
|
12
|
+
signingProperties: {
|
|
13
|
+
name: "signin",
|
|
14
|
+
region: authParameters.region
|
|
15
|
+
},
|
|
16
|
+
propertiesExtractor: (config, context) => ({ signingProperties: {
|
|
17
|
+
config,
|
|
18
|
+
context
|
|
19
|
+
} })
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
function createSmithyApiNoAuthHttpAuthOption(authParameters) {
|
|
23
|
+
return { schemeId: "smithy.api#noAuth" };
|
|
24
|
+
}
|
|
25
|
+
var defaultSigninHttpAuthSchemeParametersProvider, defaultSigninHttpAuthSchemeProvider, resolveHttpAuthSchemeConfig;
|
|
26
|
+
var init_httpAuthSchemeProvider = __esmMin((() => {
|
|
27
|
+
init_httpAuthSchemes();
|
|
28
|
+
init_client$1();
|
|
29
|
+
defaultSigninHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
30
|
+
return {
|
|
31
|
+
operation: getSmithyContext(context).operation,
|
|
32
|
+
region: await normalizeProvider(config.region)() || (() => {
|
|
33
|
+
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
|
34
|
+
})()
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
defaultSigninHttpAuthSchemeProvider = (authParameters) => {
|
|
38
|
+
const options = [];
|
|
39
|
+
switch (authParameters.operation) {
|
|
40
|
+
case "CreateOAuth2Token":
|
|
41
|
+
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
|
42
|
+
break;
|
|
43
|
+
default: options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
|
|
44
|
+
}
|
|
45
|
+
return options;
|
|
46
|
+
};
|
|
47
|
+
resolveHttpAuthSchemeConfig = (config) => {
|
|
48
|
+
const config_0 = resolveAwsSdkSigV4Config(config);
|
|
49
|
+
return Object.assign(config_0, { authSchemePreference: normalizeProvider(config.authSchemePreference ?? []) });
|
|
50
|
+
};
|
|
51
|
+
}));
|
|
52
|
+
//#endregion
|
|
53
|
+
//#region ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.20/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/endpoint/EndpointParameters.js
|
|
54
|
+
var resolveClientEndpointParameters, commonParams;
|
|
55
|
+
var init_EndpointParameters = __esmMin((() => {
|
|
56
|
+
resolveClientEndpointParameters = (options) => {
|
|
57
|
+
return Object.assign(options, {
|
|
58
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
59
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
60
|
+
defaultSigningName: "signin"
|
|
61
|
+
});
|
|
62
|
+
};
|
|
63
|
+
commonParams = {
|
|
64
|
+
UseFIPS: {
|
|
65
|
+
type: "builtInParams",
|
|
66
|
+
name: "useFipsEndpoint"
|
|
67
|
+
},
|
|
68
|
+
Endpoint: {
|
|
69
|
+
type: "builtInParams",
|
|
70
|
+
name: "endpoint"
|
|
71
|
+
},
|
|
72
|
+
Region: {
|
|
73
|
+
type: "builtInParams",
|
|
74
|
+
name: "region"
|
|
75
|
+
},
|
|
76
|
+
UseDualStack: {
|
|
77
|
+
type: "builtInParams",
|
|
78
|
+
name: "useDualstackEndpoint"
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
}));
|
|
82
|
+
//#endregion
|
|
83
|
+
//#region ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.20/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/endpoint/bdd.js
|
|
84
|
+
var m, a, b, c, d, e, f, g, h, i, j, k, l, _data, root, nodes, bdd;
|
|
85
|
+
var init_bdd = __esmMin((() => {
|
|
86
|
+
init_endpoints();
|
|
87
|
+
m = "ref";
|
|
88
|
+
a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = "stringEquals", h = { [m]: "Endpoint" }, i = { [m]: d }, j = {
|
|
89
|
+
"fn": f,
|
|
90
|
+
"argv": [i, "name"]
|
|
91
|
+
}, k = {}, l = [{ [m]: "Region" }];
|
|
92
|
+
_data = {
|
|
93
|
+
conditions: [
|
|
94
|
+
[c, [h]],
|
|
95
|
+
[c, l],
|
|
96
|
+
[
|
|
97
|
+
"aws.partition",
|
|
98
|
+
l,
|
|
99
|
+
d
|
|
100
|
+
],
|
|
101
|
+
[e, [{ [m]: "UseFIPS" }, b]],
|
|
102
|
+
[e, [{ [m]: "UseDualStack" }, b]],
|
|
103
|
+
[e, [{
|
|
104
|
+
fn: f,
|
|
105
|
+
argv: [i, "supportsDualStack"]
|
|
106
|
+
}, b]],
|
|
107
|
+
[e, [{
|
|
108
|
+
fn: f,
|
|
109
|
+
argv: [i, "supportsFIPS"]
|
|
110
|
+
}, b]],
|
|
111
|
+
[g, [j, "aws"]],
|
|
112
|
+
[g, [j, "aws-cn"]],
|
|
113
|
+
[g, [j, "aws-us-gov"]]
|
|
114
|
+
],
|
|
115
|
+
results: [
|
|
116
|
+
[a],
|
|
117
|
+
[a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
|
|
118
|
+
[a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
|
|
119
|
+
[h, k],
|
|
120
|
+
["https://{Region}.signin.aws.amazon.com", k],
|
|
121
|
+
["https://{Region}.signin.amazonaws.cn", k],
|
|
122
|
+
["https://{Region}.signin.amazonaws-us-gov.com", k],
|
|
123
|
+
["https://signin-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", k],
|
|
124
|
+
[a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
|
|
125
|
+
["https://signin-fips.{Region}.{PartitionResult#dnsSuffix}", k],
|
|
126
|
+
[a, "FIPS is enabled but this partition does not support FIPS"],
|
|
127
|
+
["https://signin.{Region}.{PartitionResult#dualStackDnsSuffix}", k],
|
|
128
|
+
[a, "DualStack is enabled but this partition does not support DualStack"],
|
|
129
|
+
["https://signin.{Region}.{PartitionResult#dnsSuffix}", k],
|
|
130
|
+
[a, "Invalid Configuration: Missing Region"]
|
|
131
|
+
]
|
|
132
|
+
};
|
|
133
|
+
root = 2;
|
|
134
|
+
nodes = new Int32Array([
|
|
135
|
+
-1,
|
|
136
|
+
1,
|
|
137
|
+
-1,
|
|
138
|
+
0,
|
|
139
|
+
15,
|
|
140
|
+
3,
|
|
141
|
+
1,
|
|
142
|
+
4,
|
|
143
|
+
100000014,
|
|
144
|
+
2,
|
|
145
|
+
5,
|
|
146
|
+
100000014,
|
|
147
|
+
3,
|
|
148
|
+
11,
|
|
149
|
+
6,
|
|
150
|
+
4,
|
|
151
|
+
10,
|
|
152
|
+
7,
|
|
153
|
+
7,
|
|
154
|
+
100000004,
|
|
155
|
+
8,
|
|
156
|
+
8,
|
|
157
|
+
100000005,
|
|
158
|
+
9,
|
|
159
|
+
9,
|
|
160
|
+
100000006,
|
|
161
|
+
100000013,
|
|
162
|
+
5,
|
|
163
|
+
100000011,
|
|
164
|
+
100000012,
|
|
165
|
+
4,
|
|
166
|
+
13,
|
|
167
|
+
12,
|
|
168
|
+
6,
|
|
169
|
+
100000009,
|
|
170
|
+
100000010,
|
|
171
|
+
5,
|
|
172
|
+
14,
|
|
173
|
+
100000008,
|
|
174
|
+
6,
|
|
175
|
+
100000007,
|
|
176
|
+
100000008,
|
|
177
|
+
3,
|
|
178
|
+
100000001,
|
|
179
|
+
16,
|
|
180
|
+
4,
|
|
181
|
+
100000002,
|
|
182
|
+
100000003
|
|
183
|
+
]);
|
|
184
|
+
bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
|
|
185
|
+
}));
|
|
186
|
+
//#endregion
|
|
187
|
+
//#region ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.20/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/endpoint/endpointResolver.js
|
|
188
|
+
var cache, defaultEndpointResolver;
|
|
189
|
+
var init_endpointResolver = __esmMin((() => {
|
|
190
|
+
init_client();
|
|
191
|
+
init_endpoints();
|
|
192
|
+
init_bdd();
|
|
193
|
+
cache = new EndpointCache({
|
|
194
|
+
size: 50,
|
|
195
|
+
params: [
|
|
196
|
+
"Endpoint",
|
|
197
|
+
"Region",
|
|
198
|
+
"UseDualStack",
|
|
199
|
+
"UseFIPS"
|
|
200
|
+
]
|
|
201
|
+
});
|
|
202
|
+
defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
203
|
+
return cache.get(endpointParams, () => decideEndpoint(bdd, {
|
|
204
|
+
endpointParams,
|
|
205
|
+
logger: context.logger
|
|
206
|
+
}));
|
|
207
|
+
};
|
|
208
|
+
customEndpointFunctions.aws = awsEndpointFunctions;
|
|
209
|
+
}));
|
|
210
|
+
//#endregion
|
|
211
|
+
//#region ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.20/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/models/SigninServiceException.js
|
|
212
|
+
var SigninServiceException;
|
|
213
|
+
var init_SigninServiceException = __esmMin((() => {
|
|
214
|
+
init_client$1();
|
|
215
|
+
SigninServiceException = class SigninServiceException extends ServiceException {
|
|
216
|
+
constructor(options) {
|
|
217
|
+
super(options);
|
|
218
|
+
Object.setPrototypeOf(this, SigninServiceException.prototype);
|
|
219
|
+
}
|
|
220
|
+
};
|
|
221
|
+
}));
|
|
222
|
+
//#endregion
|
|
223
|
+
//#region ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.20/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/models/errors.js
|
|
224
|
+
var AccessDeniedException, InternalServerException, TooManyRequestsError, ValidationException;
|
|
225
|
+
var init_errors = __esmMin((() => {
|
|
226
|
+
init_SigninServiceException();
|
|
227
|
+
AccessDeniedException = class AccessDeniedException extends SigninServiceException {
|
|
228
|
+
name = "AccessDeniedException";
|
|
229
|
+
$fault = "client";
|
|
230
|
+
error;
|
|
231
|
+
constructor(opts) {
|
|
232
|
+
super({
|
|
233
|
+
name: "AccessDeniedException",
|
|
234
|
+
$fault: "client",
|
|
235
|
+
...opts
|
|
236
|
+
});
|
|
237
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
238
|
+
this.error = opts.error;
|
|
239
|
+
}
|
|
240
|
+
};
|
|
241
|
+
InternalServerException = class InternalServerException extends SigninServiceException {
|
|
242
|
+
name = "InternalServerException";
|
|
243
|
+
$fault = "server";
|
|
244
|
+
error;
|
|
245
|
+
constructor(opts) {
|
|
246
|
+
super({
|
|
247
|
+
name: "InternalServerException",
|
|
248
|
+
$fault: "server",
|
|
249
|
+
...opts
|
|
250
|
+
});
|
|
251
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
252
|
+
this.error = opts.error;
|
|
253
|
+
}
|
|
254
|
+
};
|
|
255
|
+
TooManyRequestsError = class TooManyRequestsError extends SigninServiceException {
|
|
256
|
+
name = "TooManyRequestsError";
|
|
257
|
+
$fault = "client";
|
|
258
|
+
error;
|
|
259
|
+
constructor(opts) {
|
|
260
|
+
super({
|
|
261
|
+
name: "TooManyRequestsError",
|
|
262
|
+
$fault: "client",
|
|
263
|
+
...opts
|
|
264
|
+
});
|
|
265
|
+
Object.setPrototypeOf(this, TooManyRequestsError.prototype);
|
|
266
|
+
this.error = opts.error;
|
|
267
|
+
}
|
|
268
|
+
};
|
|
269
|
+
ValidationException = class ValidationException extends SigninServiceException {
|
|
270
|
+
name = "ValidationException";
|
|
271
|
+
$fault = "client";
|
|
272
|
+
error;
|
|
273
|
+
constructor(opts) {
|
|
274
|
+
super({
|
|
275
|
+
name: "ValidationException",
|
|
276
|
+
$fault: "client",
|
|
277
|
+
...opts
|
|
278
|
+
});
|
|
279
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
280
|
+
this.error = opts.error;
|
|
281
|
+
}
|
|
282
|
+
};
|
|
283
|
+
}));
|
|
284
|
+
//#endregion
|
|
285
|
+
//#region ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.20/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/schemas/schemas_0.js
|
|
286
|
+
var _ADE, _AT, _COAT, _COATR, _COATRB, _COATRBr, _COATRr, _ISE, _RT, _TMRE, _VE, _aKI, _aT, _c, _cI, _cV, _co, _e, _eI, _gT, _h, _hE, _iT, _jN, _m, _rT, _rU, _s, _sAK, _sT, _se, _tI, _tO, _tT, n0, _s_registry, SigninServiceException$, n0_registry, AccessDeniedException$, InternalServerException$, TooManyRequestsError$, ValidationException$, errorTypeRegistries, RefreshToken, AccessToken$, CreateOAuth2TokenRequest$, CreateOAuth2TokenRequestBody$, CreateOAuth2TokenResponse$, CreateOAuth2TokenResponseBody$, CreateOAuth2Token$;
|
|
287
|
+
var init_schemas_0 = __esmMin((() => {
|
|
288
|
+
init_schema();
|
|
289
|
+
init_errors();
|
|
290
|
+
init_SigninServiceException();
|
|
291
|
+
_ADE = "AccessDeniedException";
|
|
292
|
+
_AT = "AccessToken";
|
|
293
|
+
_COAT = "CreateOAuth2Token";
|
|
294
|
+
_COATR = "CreateOAuth2TokenRequest";
|
|
295
|
+
_COATRB = "CreateOAuth2TokenRequestBody";
|
|
296
|
+
_COATRBr = "CreateOAuth2TokenResponseBody";
|
|
297
|
+
_COATRr = "CreateOAuth2TokenResponse";
|
|
298
|
+
_ISE = "InternalServerException";
|
|
299
|
+
_RT = "RefreshToken";
|
|
300
|
+
_TMRE = "TooManyRequestsError";
|
|
301
|
+
_VE = "ValidationException";
|
|
302
|
+
_aKI = "accessKeyId";
|
|
303
|
+
_aT = "accessToken";
|
|
304
|
+
_c = "client";
|
|
305
|
+
_cI = "clientId";
|
|
306
|
+
_cV = "codeVerifier";
|
|
307
|
+
_co = "code";
|
|
308
|
+
_e = "error";
|
|
309
|
+
_eI = "expiresIn";
|
|
310
|
+
_gT = "grantType";
|
|
311
|
+
_h = "http";
|
|
312
|
+
_hE = "httpError";
|
|
313
|
+
_iT = "idToken";
|
|
314
|
+
_jN = "jsonName";
|
|
315
|
+
_m = "message";
|
|
316
|
+
_rT = "refreshToken";
|
|
317
|
+
_rU = "redirectUri";
|
|
318
|
+
_s = "smithy.ts.sdk.synthetic.com.amazonaws.signin";
|
|
319
|
+
_sAK = "secretAccessKey";
|
|
320
|
+
_sT = "sessionToken";
|
|
321
|
+
_se = "server";
|
|
322
|
+
_tI = "tokenInput";
|
|
323
|
+
_tO = "tokenOutput";
|
|
324
|
+
_tT = "tokenType";
|
|
325
|
+
n0 = "com.amazonaws.signin";
|
|
326
|
+
_s_registry = TypeRegistry.for(_s);
|
|
327
|
+
SigninServiceException$ = [
|
|
328
|
+
-3,
|
|
329
|
+
_s,
|
|
330
|
+
"SigninServiceException",
|
|
331
|
+
0,
|
|
332
|
+
[],
|
|
333
|
+
[]
|
|
334
|
+
];
|
|
335
|
+
_s_registry.registerError(SigninServiceException$, SigninServiceException);
|
|
336
|
+
n0_registry = TypeRegistry.for(n0);
|
|
337
|
+
AccessDeniedException$ = [
|
|
338
|
+
-3,
|
|
339
|
+
n0,
|
|
340
|
+
_ADE,
|
|
341
|
+
{ [_e]: _c },
|
|
342
|
+
[_e, _m],
|
|
343
|
+
[0, 0],
|
|
344
|
+
2
|
|
345
|
+
];
|
|
346
|
+
n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
|
|
347
|
+
InternalServerException$ = [
|
|
348
|
+
-3,
|
|
349
|
+
n0,
|
|
350
|
+
_ISE,
|
|
351
|
+
{
|
|
352
|
+
[_e]: _se,
|
|
353
|
+
[_hE]: 500
|
|
354
|
+
},
|
|
355
|
+
[_e, _m],
|
|
356
|
+
[0, 0],
|
|
357
|
+
2
|
|
358
|
+
];
|
|
359
|
+
n0_registry.registerError(InternalServerException$, InternalServerException);
|
|
360
|
+
TooManyRequestsError$ = [
|
|
361
|
+
-3,
|
|
362
|
+
n0,
|
|
363
|
+
_TMRE,
|
|
364
|
+
{
|
|
365
|
+
[_e]: _c,
|
|
366
|
+
[_hE]: 429
|
|
367
|
+
},
|
|
368
|
+
[_e, _m],
|
|
369
|
+
[0, 0],
|
|
370
|
+
2
|
|
371
|
+
];
|
|
372
|
+
n0_registry.registerError(TooManyRequestsError$, TooManyRequestsError);
|
|
373
|
+
ValidationException$ = [
|
|
374
|
+
-3,
|
|
375
|
+
n0,
|
|
376
|
+
_VE,
|
|
377
|
+
{
|
|
378
|
+
[_e]: _c,
|
|
379
|
+
[_hE]: 400
|
|
380
|
+
},
|
|
381
|
+
[_e, _m],
|
|
382
|
+
[0, 0],
|
|
383
|
+
2
|
|
384
|
+
];
|
|
385
|
+
n0_registry.registerError(ValidationException$, ValidationException);
|
|
386
|
+
errorTypeRegistries = [_s_registry, n0_registry];
|
|
387
|
+
RefreshToken = [
|
|
388
|
+
0,
|
|
389
|
+
n0,
|
|
390
|
+
_RT,
|
|
391
|
+
8,
|
|
392
|
+
0
|
|
393
|
+
];
|
|
394
|
+
AccessToken$ = [
|
|
395
|
+
3,
|
|
396
|
+
n0,
|
|
397
|
+
_AT,
|
|
398
|
+
8,
|
|
399
|
+
[
|
|
400
|
+
_aKI,
|
|
401
|
+
_sAK,
|
|
402
|
+
_sT
|
|
403
|
+
],
|
|
404
|
+
[
|
|
405
|
+
[0, { [_jN]: _aKI }],
|
|
406
|
+
[0, { [_jN]: _sAK }],
|
|
407
|
+
[0, { [_jN]: _sT }]
|
|
408
|
+
],
|
|
409
|
+
3
|
|
410
|
+
];
|
|
411
|
+
CreateOAuth2TokenRequest$ = [
|
|
412
|
+
3,
|
|
413
|
+
n0,
|
|
414
|
+
_COATR,
|
|
415
|
+
0,
|
|
416
|
+
[_tI],
|
|
417
|
+
[[() => CreateOAuth2TokenRequestBody$, 16]],
|
|
418
|
+
1
|
|
419
|
+
];
|
|
420
|
+
CreateOAuth2TokenRequestBody$ = [
|
|
421
|
+
3,
|
|
422
|
+
n0,
|
|
423
|
+
_COATRB,
|
|
424
|
+
0,
|
|
425
|
+
[
|
|
426
|
+
_cI,
|
|
427
|
+
_gT,
|
|
428
|
+
_co,
|
|
429
|
+
_rU,
|
|
430
|
+
_cV,
|
|
431
|
+
_rT
|
|
432
|
+
],
|
|
433
|
+
[
|
|
434
|
+
[0, { [_jN]: _cI }],
|
|
435
|
+
[0, { [_jN]: _gT }],
|
|
436
|
+
0,
|
|
437
|
+
[0, { [_jN]: _rU }],
|
|
438
|
+
[0, { [_jN]: _cV }],
|
|
439
|
+
[() => RefreshToken, { [_jN]: _rT }]
|
|
440
|
+
],
|
|
441
|
+
2
|
|
442
|
+
];
|
|
443
|
+
CreateOAuth2TokenResponse$ = [
|
|
444
|
+
3,
|
|
445
|
+
n0,
|
|
446
|
+
_COATRr,
|
|
447
|
+
0,
|
|
448
|
+
[_tO],
|
|
449
|
+
[[() => CreateOAuth2TokenResponseBody$, 16]],
|
|
450
|
+
1
|
|
451
|
+
];
|
|
452
|
+
CreateOAuth2TokenResponseBody$ = [
|
|
453
|
+
3,
|
|
454
|
+
n0,
|
|
455
|
+
_COATRBr,
|
|
456
|
+
0,
|
|
457
|
+
[
|
|
458
|
+
_aT,
|
|
459
|
+
_tT,
|
|
460
|
+
_eI,
|
|
461
|
+
_rT,
|
|
462
|
+
_iT
|
|
463
|
+
],
|
|
464
|
+
[
|
|
465
|
+
[() => AccessToken$, { [_jN]: _aT }],
|
|
466
|
+
[0, { [_jN]: _tT }],
|
|
467
|
+
[1, { [_jN]: _eI }],
|
|
468
|
+
[() => RefreshToken, { [_jN]: _rT }],
|
|
469
|
+
[0, { [_jN]: _iT }]
|
|
470
|
+
],
|
|
471
|
+
4
|
|
472
|
+
];
|
|
473
|
+
CreateOAuth2Token$ = [
|
|
474
|
+
9,
|
|
475
|
+
n0,
|
|
476
|
+
_COAT,
|
|
477
|
+
{ [_h]: [
|
|
478
|
+
"POST",
|
|
479
|
+
"/v1/token",
|
|
480
|
+
200
|
|
481
|
+
] },
|
|
482
|
+
() => CreateOAuth2TokenRequest$,
|
|
483
|
+
() => CreateOAuth2TokenResponse$
|
|
484
|
+
];
|
|
485
|
+
}));
|
|
486
|
+
//#endregion
|
|
487
|
+
//#region ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.20/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/runtimeConfig.shared.js
|
|
488
|
+
var getRuntimeConfig$1;
|
|
489
|
+
var init_runtimeConfig_shared = __esmMin((() => {
|
|
490
|
+
init_httpAuthSchemes();
|
|
491
|
+
init_protocols$1();
|
|
492
|
+
init_dist_es();
|
|
493
|
+
init_client$1();
|
|
494
|
+
init_protocols();
|
|
495
|
+
init_serde();
|
|
496
|
+
init_httpAuthSchemeProvider();
|
|
497
|
+
init_endpointResolver();
|
|
498
|
+
init_schemas_0();
|
|
499
|
+
getRuntimeConfig$1 = (config) => {
|
|
500
|
+
return {
|
|
501
|
+
apiVersion: "2023-01-01",
|
|
502
|
+
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
503
|
+
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
504
|
+
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
505
|
+
endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
|
|
506
|
+
extensions: config?.extensions ?? [],
|
|
507
|
+
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultSigninHttpAuthSchemeProvider,
|
|
508
|
+
httpAuthSchemes: config?.httpAuthSchemes ?? [{
|
|
509
|
+
schemeId: "aws.auth#sigv4",
|
|
510
|
+
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
|
511
|
+
signer: new AwsSdkSigV4Signer()
|
|
512
|
+
}, {
|
|
513
|
+
schemeId: "smithy.api#noAuth",
|
|
514
|
+
identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})),
|
|
515
|
+
signer: new NoAuthSigner()
|
|
516
|
+
}],
|
|
517
|
+
logger: config?.logger ?? new NoOpLogger(),
|
|
518
|
+
protocol: config?.protocol ?? AwsRestJsonProtocol,
|
|
519
|
+
protocolSettings: config?.protocolSettings ?? {
|
|
520
|
+
defaultNamespace: "com.amazonaws.signin",
|
|
521
|
+
errorTypeRegistries,
|
|
522
|
+
version: "2023-01-01",
|
|
523
|
+
serviceTarget: "Signin"
|
|
524
|
+
},
|
|
525
|
+
serviceId: config?.serviceId ?? "Signin",
|
|
526
|
+
urlParser: config?.urlParser ?? parseUrl,
|
|
527
|
+
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
528
|
+
utf8Encoder: config?.utf8Encoder ?? toUtf8
|
|
529
|
+
};
|
|
530
|
+
};
|
|
531
|
+
}));
|
|
532
|
+
//#endregion
|
|
533
|
+
//#region ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.20/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/runtimeConfig.js
|
|
534
|
+
var import_dist_cjs, getRuntimeConfig;
|
|
535
|
+
var init_runtimeConfig = __esmMin((() => {
|
|
536
|
+
init_client();
|
|
537
|
+
init_httpAuthSchemes();
|
|
538
|
+
init_client$1();
|
|
539
|
+
init_config$1();
|
|
540
|
+
init_retry();
|
|
541
|
+
init_serde();
|
|
542
|
+
import_dist_cjs = require_dist_cjs();
|
|
543
|
+
init_runtimeConfig_shared();
|
|
544
|
+
getRuntimeConfig = (config) => {
|
|
545
|
+
emitWarningIfUnsupportedVersion$1(process.version);
|
|
546
|
+
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
547
|
+
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
548
|
+
const clientSharedValues = getRuntimeConfig$1(config);
|
|
549
|
+
emitWarningIfUnsupportedVersion(process.version);
|
|
550
|
+
const loaderConfig = {
|
|
551
|
+
profile: config?.profile,
|
|
552
|
+
logger: clientSharedValues.logger
|
|
553
|
+
};
|
|
554
|
+
return {
|
|
555
|
+
...clientSharedValues,
|
|
556
|
+
...config,
|
|
557
|
+
runtime: "node",
|
|
558
|
+
defaultsMode,
|
|
559
|
+
authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
|
|
560
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
561
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({
|
|
562
|
+
serviceId: clientSharedValues.serviceId,
|
|
563
|
+
clientVersion: version
|
|
564
|
+
}),
|
|
565
|
+
maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
|
566
|
+
region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, {
|
|
567
|
+
...NODE_REGION_CONFIG_FILE_OPTIONS,
|
|
568
|
+
...loaderConfig
|
|
569
|
+
}),
|
|
570
|
+
requestHandler: import_dist_cjs.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
571
|
+
retryMode: config?.retryMode ?? loadConfig({
|
|
572
|
+
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
573
|
+
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE
|
|
574
|
+
}, config),
|
|
575
|
+
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
576
|
+
streamCollector: config?.streamCollector ?? import_dist_cjs.streamCollector,
|
|
577
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
578
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
579
|
+
userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig)
|
|
580
|
+
};
|
|
581
|
+
};
|
|
582
|
+
}));
|
|
583
|
+
//#endregion
|
|
584
|
+
//#region ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.20/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/auth/httpAuthExtensionConfiguration.js
|
|
585
|
+
var getHttpAuthExtensionConfiguration, resolveHttpAuthRuntimeConfig;
|
|
586
|
+
var init_httpAuthExtensionConfiguration = __esmMin((() => {
|
|
587
|
+
getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
588
|
+
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
589
|
+
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
590
|
+
let _credentials = runtimeConfig.credentials;
|
|
591
|
+
return {
|
|
592
|
+
setHttpAuthScheme(httpAuthScheme) {
|
|
593
|
+
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
594
|
+
if (index === -1) _httpAuthSchemes.push(httpAuthScheme);
|
|
595
|
+
else _httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
|
596
|
+
},
|
|
597
|
+
httpAuthSchemes() {
|
|
598
|
+
return _httpAuthSchemes;
|
|
599
|
+
},
|
|
600
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
|
601
|
+
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
|
602
|
+
},
|
|
603
|
+
httpAuthSchemeProvider() {
|
|
604
|
+
return _httpAuthSchemeProvider;
|
|
605
|
+
},
|
|
606
|
+
setCredentials(credentials) {
|
|
607
|
+
_credentials = credentials;
|
|
608
|
+
},
|
|
609
|
+
credentials() {
|
|
610
|
+
return _credentials;
|
|
611
|
+
}
|
|
612
|
+
};
|
|
613
|
+
};
|
|
614
|
+
resolveHttpAuthRuntimeConfig = (config) => {
|
|
615
|
+
return {
|
|
616
|
+
httpAuthSchemes: config.httpAuthSchemes(),
|
|
617
|
+
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
618
|
+
credentials: config.credentials()
|
|
619
|
+
};
|
|
620
|
+
};
|
|
621
|
+
}));
|
|
622
|
+
//#endregion
|
|
623
|
+
//#region ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.20/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/runtimeExtensions.js
|
|
624
|
+
var resolveRuntimeExtensions;
|
|
625
|
+
var init_runtimeExtensions = __esmMin((() => {
|
|
626
|
+
init_client();
|
|
627
|
+
init_client$1();
|
|
628
|
+
init_protocols();
|
|
629
|
+
init_httpAuthExtensionConfiguration();
|
|
630
|
+
resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
631
|
+
const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
632
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
633
|
+
return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
634
|
+
};
|
|
635
|
+
}));
|
|
636
|
+
//#endregion
|
|
637
|
+
//#region ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.20/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/SigninClient.js
|
|
638
|
+
var SigninClient;
|
|
639
|
+
var init_SigninClient = __esmMin((() => {
|
|
640
|
+
init_client();
|
|
641
|
+
init_dist_es();
|
|
642
|
+
init_client$1();
|
|
643
|
+
init_config$1();
|
|
644
|
+
init_endpoints();
|
|
645
|
+
init_protocols();
|
|
646
|
+
init_retry();
|
|
647
|
+
init_schema();
|
|
648
|
+
init_httpAuthSchemeProvider();
|
|
649
|
+
init_EndpointParameters();
|
|
650
|
+
init_runtimeConfig();
|
|
651
|
+
init_runtimeExtensions();
|
|
652
|
+
SigninClient = class extends Client {
|
|
653
|
+
config;
|
|
654
|
+
constructor(...[configuration]) {
|
|
655
|
+
const _config_0 = getRuntimeConfig(configuration || {});
|
|
656
|
+
super(_config_0);
|
|
657
|
+
this.initConfig = _config_0;
|
|
658
|
+
const _config_8 = resolveRuntimeExtensions(resolveHttpAuthSchemeConfig(resolveEndpointConfig(resolveHostHeaderConfig(resolveRegionConfig(resolveRetryConfig(resolveUserAgentConfig(resolveClientEndpointParameters(_config_0))))))), configuration?.extensions || []);
|
|
659
|
+
this.config = _config_8;
|
|
660
|
+
this.middlewareStack.use(getSchemaSerdePlugin(this.config));
|
|
661
|
+
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
662
|
+
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
663
|
+
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
664
|
+
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
665
|
+
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
666
|
+
this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
|
|
667
|
+
this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
668
|
+
httpAuthSchemeParametersProvider: defaultSigninHttpAuthSchemeParametersProvider,
|
|
669
|
+
identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({ "aws.auth#sigv4": config.credentials })
|
|
670
|
+
}));
|
|
671
|
+
this.middlewareStack.use(getHttpSigningPlugin(this.config));
|
|
672
|
+
}
|
|
673
|
+
destroy() {
|
|
674
|
+
super.destroy();
|
|
675
|
+
}
|
|
676
|
+
};
|
|
677
|
+
}));
|
|
678
|
+
//#endregion
|
|
679
|
+
//#region ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.20/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/commands/CreateOAuth2TokenCommand.js
|
|
680
|
+
var CreateOAuth2TokenCommand;
|
|
681
|
+
var init_CreateOAuth2TokenCommand = __esmMin((() => {
|
|
682
|
+
init_client$1();
|
|
683
|
+
init_endpoints();
|
|
684
|
+
init_EndpointParameters();
|
|
685
|
+
init_schemas_0();
|
|
686
|
+
CreateOAuth2TokenCommand = class extends Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
687
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
688
|
+
}).s("Signin", "CreateOAuth2Token", {}).n("SigninClient", "CreateOAuth2TokenCommand").sc(CreateOAuth2Token$).build() {};
|
|
689
|
+
}));
|
|
690
|
+
//#endregion
|
|
691
|
+
//#region ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.20/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/Signin.js
|
|
692
|
+
var commands, Signin;
|
|
693
|
+
var init_Signin = __esmMin((() => {
|
|
694
|
+
init_client$1();
|
|
695
|
+
init_CreateOAuth2TokenCommand();
|
|
696
|
+
init_SigninClient();
|
|
697
|
+
commands = { CreateOAuth2TokenCommand };
|
|
698
|
+
Signin = class extends SigninClient {};
|
|
699
|
+
createAggregatedClient(commands, Signin);
|
|
700
|
+
}));
|
|
701
|
+
//#endregion
|
|
702
|
+
//#region ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.20/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/commands/index.js
|
|
703
|
+
var init_commands = __esmMin((() => {
|
|
704
|
+
init_CreateOAuth2TokenCommand();
|
|
705
|
+
}));
|
|
706
|
+
//#endregion
|
|
707
|
+
//#region ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.20/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/models/enums.js
|
|
708
|
+
var init_enums = __esmMin((() => {}));
|
|
709
|
+
//#endregion
|
|
710
|
+
//#region ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.20/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/models/models_0.js
|
|
711
|
+
var init_models_0 = __esmMin((() => {}));
|
|
712
|
+
//#endregion
|
|
713
|
+
__esmMin((() => {
|
|
714
|
+
init_SigninClient();
|
|
715
|
+
init_Signin();
|
|
716
|
+
init_commands();
|
|
717
|
+
init_schemas_0();
|
|
718
|
+
init_enums();
|
|
719
|
+
init_errors();
|
|
720
|
+
init_models_0();
|
|
721
|
+
init_SigninServiceException();
|
|
722
|
+
}))();
|
|
723
|
+
export { CreateOAuth2TokenCommand, SigninClient };
|