@kky42/pievo-server 2.4.14 → 4.1.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/.output/nitro.json +1 -1
- package/.output/public/assets/MarkdownView-BuFKr9Jg.js +66 -0
- package/.output/public/assets/{actionUi-5PtES4q0.js → actionUi-BZrLpgHT.js} +1 -1
- package/.output/public/assets/app-x1CeeY7N.css +2 -0
- package/.output/public/assets/index-D0FIKiiW.js +10 -0
- package/.output/public/assets/loops._loopId-DTkIz4C0.js +2 -0
- package/.output/public/assets/loops._loopId_.runs._runId-CsV2Ih4Z.js +3 -0
- package/.output/public/assets/preload-helper-BSxGu4d0.js +3 -0
- package/.output/public/assets/{routes-Dm_3J2aV.js → routes-BIOJZsig.js} +1 -1
- package/.output/public/assets/routes-m4Z90DTR.js +1 -0
- package/.output/server/_chunks/ssr-renderer.mjs +1 -1
- package/.output/server/_libs/{drizzle-orm+postgres.mjs → drizzle-orm.mjs} +93 -2218
- package/.output/server/_ssr/{MachinesModal-BaEtzycr.mjs → MachinesModal-CLBZxZkq.mjs} +47 -47
- package/.output/server/_ssr/MarkdownView-D1J7ImYF.mjs +70 -0
- package/.output/server/_ssr/{actionUi-5HOCZnom.mjs → actionUi-DE-Pb2tv.mjs} +1 -2
- package/.output/server/_ssr/artifactFiles-B0NPRDOR.mjs +52 -0
- package/.output/server/_ssr/{artifactKind-DwDr8IYc.mjs → artifactKind-a2oxT2wQ.mjs} +4 -10
- package/.output/server/_ssr/{boot-C472kLwY.mjs → boot-DmpKtb0A.mjs} +2659 -890
- package/.output/server/_ssr/lifecycleUi-DEjM8Etm.mjs +106 -0
- package/.output/server/_ssr/{loopApi-DT751TJA.mjs → loopApi-DK1lQPrx.mjs} +53 -69
- package/.output/server/_ssr/{loopProjection-qaD2I48a.mjs → loopProjection-DdFivf7-.mjs} +6 -24
- package/.output/server/_ssr/{loops._loopId-CXgw2Rz1.mjs → loops._loopId-DVCvGSEc.mjs} +36 -116
- package/.output/server/_ssr/{loops._loopId_.runs._runId-SASSqOfy.mjs → loops._loopId_.runs._runId-BXbTfLlC.mjs} +35 -39
- package/.output/server/_ssr/{loops._loopId_.runs._runId-Dk94Z0Jq.mjs → loops._loopId_.runs._runId-Dr6E-FA5.mjs} +3 -8
- package/.output/server/_ssr/{machineFns-BSrIgn3f.mjs → machineFns-DLRHgDdS.mjs} +13 -50
- package/.output/server/_ssr/networkAccess-CIlK3ION.mjs +30 -0
- package/.output/server/_ssr/router-BhHsTGqu.mjs +355 -0
- package/.output/server/_ssr/routes-CCallyCT.mjs +12 -0
- package/.output/server/_ssr/{routes-Cr-9yDEH.mjs → routes-CL2Kef-Q.mjs} +91 -50
- package/.output/server/_ssr/{routes-DRBS4Zi4.mjs → routes-ngpX7h8D.mjs} +2 -4
- package/.output/server/_ssr/ssr.mjs +25 -34
- package/.output/server/_ssr/start-B5_9Z5W-.mjs +35 -0
- package/.output/server/{_tanstack-start-manifest_v-DxLIQ0cc.mjs → _tanstack-start-manifest_v-BPiJ4yWT.mjs} +9 -15
- package/.output/server/drizzle/0000_baseline.sql +6 -97
- package/.output/server/drizzle/0001_loop_files.sql +9 -0
- package/.output/server/drizzle/meta/_journal.json +3 -17
- package/.output/server/index.mjs +50 -50
- package/drizzle/0000_baseline.sql +6 -97
- package/drizzle/0001_loop_files.sql +9 -0
- package/drizzle/meta/_journal.json +3 -17
- package/package.json +4 -8
- package/scripts/pievo-server.mjs +49 -47
- package/scripts/server-cli-lib.mjs +21 -12
- package/scripts/server-network.mjs +139 -0
- package/.output/public/assets/SignIn-CIFwnZtF.js +0 -1
- package/.output/public/assets/app-DvHMhs7S.css +0 -2
- package/.output/public/assets/index-CRX2pu0W.js +0 -10
- package/.output/public/assets/loops._loopId-BsuV-Rmf.js +0 -67
- package/.output/public/assets/loops._loopId_.runs._runId-DpK_fzmZ.js +0 -3
- package/.output/public/assets/preload-helper-sAZOZb3G.js +0 -5
- package/.output/public/assets/routes-DxF_s3cD.js +0 -1
- package/.output/server/_libs/@aws-crypto/crc32+[...].mjs +0 -419
- package/.output/server/_libs/@aws-sdk/checksums+[...].mjs +0 -10732
- package/.output/server/_libs/@aws-sdk/client-s3+[...].mjs +0 -9475
- package/.output/server/_libs/@aws-sdk/credential-provider-http+[...].mjs +0 -137
- package/.output/server/_libs/@aws-sdk/credential-provider-ini+[...].mjs +0 -440
- package/.output/server/_libs/@aws-sdk/credential-provider-process+[...].mjs +0 -62
- package/.output/server/_libs/@aws-sdk/credential-provider-sso+[...].mjs +0 -818
- package/.output/server/_libs/@aws-sdk/credential-provider-web-identity+[...].mjs +0 -59
- package/.output/server/_libs/@smithy/credential-provider-imds+[...].mjs +0 -342
- package/.output/server/_libs/aws-crypto__crc32c.mjs +0 -314
- package/.output/server/_libs/aws-sdk__nested-clients.mjs +0 -2671
- package/.output/server/_ssr/SignIn-sHQaBQJC.mjs +0 -53
- package/.output/server/_ssr/artifactFiles-DO43wwXA.mjs +0 -60
- package/.output/server/_ssr/artifacts-Cd7Qx3Qp.mjs +0 -2
- package/.output/server/_ssr/auth-0AamrwHo.mjs +0 -38355
- package/.output/server/_ssr/auth-client-lSMb_Idt.mjs +0 -1070
- package/.output/server/_ssr/bun-sqlite-dialect-BW9W1_Ps-DLIXocA0.mjs +0 -162
- package/.output/server/_ssr/core-RrmWoKne.mjs +0 -5
- package/.output/server/_ssr/d1-sqlite-dialect-BLC8LXE6-BoFMIPr_.mjs +0 -112
- package/.output/server/_ssr/db-BzvMQ2kx.mjs +0 -2
- package/.output/server/_ssr/dist-ClzqkwxD.mjs +0 -342
- package/.output/server/_ssr/factory-ixUjZqJn.mjs +0 -6903
- package/.output/server/_ssr/kysely-adapter-DkZbmKgV.mjs +0 -2
- package/.output/server/_ssr/kysely-migration-tables-JkVUjPF_-bPAX9LR_.mjs +0 -19
- package/.output/server/_ssr/logger-DDjsYB2X.mjs +0 -2
- package/.output/server/_ssr/loopTags-CXx5UdGf.mjs +0 -3356
- package/.output/server/_ssr/node-sqlite-dialect-BbUqnnYv.mjs +0 -162
- package/.output/server/_ssr/router-BlLlhfJe.mjs +0 -543
- package/.output/server/_ssr/routes-DTBltabU.mjs +0 -27
- package/.output/server/_ssr/start-4ifArtKx.mjs +0 -4
- package/.output/server/_ssr/store-vDZ9INSa.mjs +0 -2
- package/.output/server/_ssr/tokens-BHiCElYD.mjs +0 -2
- package/.output/server/drizzle/0001_add_pi_agent.sql +0 -9
- package/.output/server/drizzle/0002_remove_teams.sql +0 -15
- package/.output/server/drizzle/0003_add_loop_tags.sql +0 -5
- package/.output/server/node_modules/tslib/modules/index.js +0 -70
- package/.output/server/node_modules/tslib/modules/package.json +0 -3
- package/.output/server/node_modules/tslib/package.json +0 -47
- package/.output/server/node_modules/tslib/tslib.js +0 -484
- package/.output/server/package.json +0 -9
- package/drizzle/0001_add_pi_agent.sql +0 -9
- package/drizzle/0002_remove_teams.sql +0 -15
- package/drizzle/0003_add_loop_tags.sql +0 -5
- package/scripts/prestart.mjs +0 -66
|
@@ -1,2671 +0,0 @@
|
|
|
1
|
-
import { a as __toCommonJS, t as __commonJSMin } from "../_runtime.mjs";
|
|
2
|
-
import { a as require_client, c as require_protocols, d as require_endpoints, f as require_config, m as require_schema, o as require_dist_cjs, p as require_client$1, s as require_retry, u as require_serde } from "./@aws-sdk/checksums+[...].mjs";
|
|
3
|
-
import { c as require_protocols$1, l as dist_es_exports$1, n as dist_es_exports, r as init_dist_es, s as require_httpAuthSchemes, u as init_dist_es$1 } from "./@aws-sdk/client-s3+[...].mjs";
|
|
4
|
-
//#region ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.23/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js
|
|
5
|
-
var require_signin = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
6
|
-
var { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require_client();
|
|
7
|
-
var { NoAuthSigner, getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin } = require_dist_cjs();
|
|
8
|
-
var { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require_client$1();
|
|
9
|
-
exports.$Command = Command;
|
|
10
|
-
exports.__Client = Client;
|
|
11
|
-
var { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require_config();
|
|
12
|
-
var { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require_endpoints();
|
|
13
|
-
var { parseUrl, getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require_protocols();
|
|
14
|
-
var { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, resolveRetryConfig, getRetryPlugin } = require_retry();
|
|
15
|
-
var { TypeRegistry, getSchemaSerdePlugin } = require_schema();
|
|
16
|
-
var { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require_httpAuthSchemes();
|
|
17
|
-
var { toUtf8, fromUtf8, toBase64, fromBase64, Hash, calculateBodyLength } = require_serde();
|
|
18
|
-
var { streamCollector, NodeHttpHandler } = (init_dist_es(), __toCommonJS(dist_es_exports));
|
|
19
|
-
var { AwsRestJsonProtocol } = require_protocols$1();
|
|
20
|
-
var defaultSigninHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
21
|
-
return {
|
|
22
|
-
operation: getSmithyContext(context).operation,
|
|
23
|
-
region: await normalizeProvider(config.region)() || (() => {
|
|
24
|
-
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
|
25
|
-
})()
|
|
26
|
-
};
|
|
27
|
-
};
|
|
28
|
-
function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
|
29
|
-
return {
|
|
30
|
-
schemeId: "aws.auth#sigv4",
|
|
31
|
-
signingProperties: {
|
|
32
|
-
name: "signin",
|
|
33
|
-
region: authParameters.region
|
|
34
|
-
},
|
|
35
|
-
propertiesExtractor: (config, context) => ({ signingProperties: {
|
|
36
|
-
config,
|
|
37
|
-
context
|
|
38
|
-
} })
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
|
-
function createSmithyApiNoAuthHttpAuthOption(authParameters) {
|
|
42
|
-
return { schemeId: "smithy.api#noAuth" };
|
|
43
|
-
}
|
|
44
|
-
var defaultSigninHttpAuthSchemeProvider = (authParameters) => {
|
|
45
|
-
const options = [];
|
|
46
|
-
switch (authParameters.operation) {
|
|
47
|
-
case "CreateOAuth2Token":
|
|
48
|
-
options.push(createSmithyApiNoAuthHttpAuthOption());
|
|
49
|
-
break;
|
|
50
|
-
default: options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
|
|
51
|
-
}
|
|
52
|
-
return options;
|
|
53
|
-
};
|
|
54
|
-
var resolveHttpAuthSchemeConfig = (config) => {
|
|
55
|
-
const config_0 = resolveAwsSdkSigV4Config(config);
|
|
56
|
-
return Object.assign(config_0, { authSchemePreference: normalizeProvider(config.authSchemePreference ?? []) });
|
|
57
|
-
};
|
|
58
|
-
var resolveClientEndpointParameters = (options) => {
|
|
59
|
-
return Object.assign(options, {
|
|
60
|
-
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
61
|
-
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
62
|
-
defaultSigningName: "signin"
|
|
63
|
-
});
|
|
64
|
-
};
|
|
65
|
-
var commonParams = {
|
|
66
|
-
UseFIPS: {
|
|
67
|
-
type: "builtInParams",
|
|
68
|
-
name: "useFipsEndpoint"
|
|
69
|
-
},
|
|
70
|
-
Endpoint: {
|
|
71
|
-
type: "builtInParams",
|
|
72
|
-
name: "endpoint"
|
|
73
|
-
},
|
|
74
|
-
Region: {
|
|
75
|
-
type: "builtInParams",
|
|
76
|
-
name: "region"
|
|
77
|
-
},
|
|
78
|
-
UseDualStack: {
|
|
79
|
-
type: "builtInParams",
|
|
80
|
-
name: "useDualstackEndpoint"
|
|
81
|
-
}
|
|
82
|
-
};
|
|
83
|
-
var packageInfo = { version: "3.997.22" };
|
|
84
|
-
var p = "ref";
|
|
85
|
-
var a = -1, b = true, c = "isSet", d = "booleanEquals", e = "PartitionResult", f = "stringEquals", g = "getAttr", h = "https://signin.{Region}.{PartitionResult#dualStackDnsSuffix}", i = { [p]: "Endpoint" }, j = {
|
|
86
|
-
"fn": g,
|
|
87
|
-
"argv": [{ [p]: e }, "name"]
|
|
88
|
-
}, k = { [p]: e }, l = { [p]: "Region" }, m = { "authSchemes": [{
|
|
89
|
-
"name": "sigv4",
|
|
90
|
-
"signingName": "signin",
|
|
91
|
-
"signingRegion": "{Region}"
|
|
92
|
-
}] }, n = {}, o = [l];
|
|
93
|
-
var _data = {
|
|
94
|
-
conditions: [
|
|
95
|
-
[c, o],
|
|
96
|
-
[d, [{
|
|
97
|
-
fn: "coalesce",
|
|
98
|
-
argv: [{ [p]: "IsControlPlane" }, false]
|
|
99
|
-
}, b]],
|
|
100
|
-
[c, [i]],
|
|
101
|
-
[
|
|
102
|
-
"aws.partition",
|
|
103
|
-
o,
|
|
104
|
-
e
|
|
105
|
-
],
|
|
106
|
-
[d, [{ [p]: "UseFIPS" }, b]],
|
|
107
|
-
[d, [{ [p]: "UseDualStack" }, b]],
|
|
108
|
-
[f, [j, "aws"]],
|
|
109
|
-
[f, [j, "aws-cn"]],
|
|
110
|
-
[d, [{
|
|
111
|
-
fn: g,
|
|
112
|
-
argv: [k, "supportsDualStack"]
|
|
113
|
-
}, b]],
|
|
114
|
-
[f, [l, "us-gov-west-1"]],
|
|
115
|
-
[f, [j, "aws-us-gov"]],
|
|
116
|
-
[d, [{
|
|
117
|
-
fn: g,
|
|
118
|
-
argv: [k, "supportsFIPS"]
|
|
119
|
-
}, b]],
|
|
120
|
-
[f, [j, "aws-iso"]],
|
|
121
|
-
[f, [j, "aws-iso-b"]],
|
|
122
|
-
[f, [j, "aws-iso-f"]],
|
|
123
|
-
[f, [j, "aws-iso-e"]],
|
|
124
|
-
[f, [j, "aws-eusc"]]
|
|
125
|
-
],
|
|
126
|
-
results: [
|
|
127
|
-
[a],
|
|
128
|
-
["https://signin.{Region}.api.aws", m],
|
|
129
|
-
["https://signin.{Region}.api.amazonwebservices.com.cn", m],
|
|
130
|
-
[h, m],
|
|
131
|
-
["https://{Region}.signin.aws.amazon.com", n],
|
|
132
|
-
["https://{Region}.signin.amazonaws.cn", n],
|
|
133
|
-
["https://{Region}.signin.amazonaws-us-gov.com", n],
|
|
134
|
-
["https://{Region}.signin.c2shome.ic.gov", n],
|
|
135
|
-
["https://{Region}.signin.sc2shome.sgov.gov", n],
|
|
136
|
-
["https://{Region}.signin.csphome.hci.ic.gov", n],
|
|
137
|
-
["https://{Region}.signin.csphome.adc-e.uk", n],
|
|
138
|
-
["https://{Region}.signin.amazonaws-eusc.eu", n],
|
|
139
|
-
["https://signin-fips.amazonaws-us-gov.com", n],
|
|
140
|
-
["https://{Region}.signin-fips.amazonaws-us-gov.com", n],
|
|
141
|
-
["https://{Region}.signin.{PartitionResult#dnsSuffix}", n],
|
|
142
|
-
[a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
|
|
143
|
-
[a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
|
|
144
|
-
[i, n],
|
|
145
|
-
["https://signin-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", n],
|
|
146
|
-
[a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
|
|
147
|
-
["https://signin-fips.{Region}.{PartitionResult#dnsSuffix}", n],
|
|
148
|
-
[a, "FIPS is enabled but this partition does not support FIPS"],
|
|
149
|
-
[h, n],
|
|
150
|
-
[a, "DualStack is enabled but this partition does not support DualStack"],
|
|
151
|
-
["https://signin.{Region}.{PartitionResult#dnsSuffix}", n],
|
|
152
|
-
[a, "Invalid Configuration: Missing Region"]
|
|
153
|
-
]
|
|
154
|
-
};
|
|
155
|
-
var root = 2;
|
|
156
|
-
var nodes = new Int32Array([
|
|
157
|
-
-1,
|
|
158
|
-
1,
|
|
159
|
-
-1,
|
|
160
|
-
0,
|
|
161
|
-
4,
|
|
162
|
-
3,
|
|
163
|
-
2,
|
|
164
|
-
30,
|
|
165
|
-
100000025,
|
|
166
|
-
1,
|
|
167
|
-
24,
|
|
168
|
-
5,
|
|
169
|
-
2,
|
|
170
|
-
30,
|
|
171
|
-
6,
|
|
172
|
-
3,
|
|
173
|
-
7,
|
|
174
|
-
26,
|
|
175
|
-
4,
|
|
176
|
-
18,
|
|
177
|
-
8,
|
|
178
|
-
5,
|
|
179
|
-
17,
|
|
180
|
-
9,
|
|
181
|
-
6,
|
|
182
|
-
100000004,
|
|
183
|
-
10,
|
|
184
|
-
7,
|
|
185
|
-
100000005,
|
|
186
|
-
11,
|
|
187
|
-
10,
|
|
188
|
-
100000006,
|
|
189
|
-
12,
|
|
190
|
-
12,
|
|
191
|
-
100000007,
|
|
192
|
-
13,
|
|
193
|
-
13,
|
|
194
|
-
100000008,
|
|
195
|
-
14,
|
|
196
|
-
14,
|
|
197
|
-
100000009,
|
|
198
|
-
15,
|
|
199
|
-
15,
|
|
200
|
-
100000010,
|
|
201
|
-
16,
|
|
202
|
-
16,
|
|
203
|
-
100000011,
|
|
204
|
-
100000014,
|
|
205
|
-
8,
|
|
206
|
-
100000022,
|
|
207
|
-
100000023,
|
|
208
|
-
5,
|
|
209
|
-
22,
|
|
210
|
-
19,
|
|
211
|
-
9,
|
|
212
|
-
100000012,
|
|
213
|
-
20,
|
|
214
|
-
10,
|
|
215
|
-
100000013,
|
|
216
|
-
21,
|
|
217
|
-
11,
|
|
218
|
-
100000020,
|
|
219
|
-
100000021,
|
|
220
|
-
8,
|
|
221
|
-
23,
|
|
222
|
-
100000019,
|
|
223
|
-
11,
|
|
224
|
-
100000018,
|
|
225
|
-
100000019,
|
|
226
|
-
2,
|
|
227
|
-
29,
|
|
228
|
-
25,
|
|
229
|
-
3,
|
|
230
|
-
32,
|
|
231
|
-
26,
|
|
232
|
-
4,
|
|
233
|
-
27,
|
|
234
|
-
100000025,
|
|
235
|
-
5,
|
|
236
|
-
100000025,
|
|
237
|
-
28,
|
|
238
|
-
9,
|
|
239
|
-
100000012,
|
|
240
|
-
100000025,
|
|
241
|
-
3,
|
|
242
|
-
32,
|
|
243
|
-
30,
|
|
244
|
-
4,
|
|
245
|
-
100000015,
|
|
246
|
-
31,
|
|
247
|
-
5,
|
|
248
|
-
100000016,
|
|
249
|
-
100000017,
|
|
250
|
-
6,
|
|
251
|
-
100000001,
|
|
252
|
-
33,
|
|
253
|
-
7,
|
|
254
|
-
100000002,
|
|
255
|
-
100000003
|
|
256
|
-
]);
|
|
257
|
-
var bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
|
|
258
|
-
var cache = new EndpointCache({
|
|
259
|
-
size: 50,
|
|
260
|
-
params: [
|
|
261
|
-
"Endpoint",
|
|
262
|
-
"IsControlPlane",
|
|
263
|
-
"Region",
|
|
264
|
-
"UseDualStack",
|
|
265
|
-
"UseFIPS"
|
|
266
|
-
]
|
|
267
|
-
});
|
|
268
|
-
var defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
269
|
-
return cache.get(endpointParams, () => decideEndpoint(bdd, {
|
|
270
|
-
endpointParams,
|
|
271
|
-
logger: context.logger
|
|
272
|
-
}));
|
|
273
|
-
};
|
|
274
|
-
customEndpointFunctions.aws = awsEndpointFunctions;
|
|
275
|
-
var SigninServiceException = class SigninServiceException extends ServiceException {
|
|
276
|
-
constructor(options) {
|
|
277
|
-
super(options);
|
|
278
|
-
Object.setPrototypeOf(this, SigninServiceException.prototype);
|
|
279
|
-
}
|
|
280
|
-
};
|
|
281
|
-
var AccessDeniedException = class AccessDeniedException extends SigninServiceException {
|
|
282
|
-
name = "AccessDeniedException";
|
|
283
|
-
$fault = "client";
|
|
284
|
-
error;
|
|
285
|
-
constructor(opts) {
|
|
286
|
-
super({
|
|
287
|
-
name: "AccessDeniedException",
|
|
288
|
-
$fault: "client",
|
|
289
|
-
...opts
|
|
290
|
-
});
|
|
291
|
-
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
292
|
-
this.error = opts.error;
|
|
293
|
-
}
|
|
294
|
-
};
|
|
295
|
-
var InternalServerException = class InternalServerException extends SigninServiceException {
|
|
296
|
-
name = "InternalServerException";
|
|
297
|
-
$fault = "server";
|
|
298
|
-
error;
|
|
299
|
-
constructor(opts) {
|
|
300
|
-
super({
|
|
301
|
-
name: "InternalServerException",
|
|
302
|
-
$fault: "server",
|
|
303
|
-
...opts
|
|
304
|
-
});
|
|
305
|
-
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
306
|
-
this.error = opts.error;
|
|
307
|
-
}
|
|
308
|
-
};
|
|
309
|
-
var TooManyRequestsError = class TooManyRequestsError extends SigninServiceException {
|
|
310
|
-
name = "TooManyRequestsError";
|
|
311
|
-
$fault = "client";
|
|
312
|
-
error;
|
|
313
|
-
constructor(opts) {
|
|
314
|
-
super({
|
|
315
|
-
name: "TooManyRequestsError",
|
|
316
|
-
$fault: "client",
|
|
317
|
-
...opts
|
|
318
|
-
});
|
|
319
|
-
Object.setPrototypeOf(this, TooManyRequestsError.prototype);
|
|
320
|
-
this.error = opts.error;
|
|
321
|
-
}
|
|
322
|
-
};
|
|
323
|
-
var ValidationException = class ValidationException extends SigninServiceException {
|
|
324
|
-
name = "ValidationException";
|
|
325
|
-
$fault = "client";
|
|
326
|
-
error;
|
|
327
|
-
constructor(opts) {
|
|
328
|
-
super({
|
|
329
|
-
name: "ValidationException",
|
|
330
|
-
$fault: "client",
|
|
331
|
-
...opts
|
|
332
|
-
});
|
|
333
|
-
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
334
|
-
this.error = opts.error;
|
|
335
|
-
}
|
|
336
|
-
};
|
|
337
|
-
var _ADE = "AccessDeniedException";
|
|
338
|
-
var _AT = "AccessToken";
|
|
339
|
-
var _COAT = "CreateOAuth2Token";
|
|
340
|
-
var _COATR = "CreateOAuth2TokenRequest";
|
|
341
|
-
var _COATRB = "CreateOAuth2TokenRequestBody";
|
|
342
|
-
var _COATRBr = "CreateOAuth2TokenResponseBody";
|
|
343
|
-
var _COATRr = "CreateOAuth2TokenResponse";
|
|
344
|
-
var _ISE = "InternalServerException";
|
|
345
|
-
var _RT = "RefreshToken";
|
|
346
|
-
var _TMRE = "TooManyRequestsError";
|
|
347
|
-
var _VE = "ValidationException";
|
|
348
|
-
var _aKI = "accessKeyId";
|
|
349
|
-
var _aT = "accessToken";
|
|
350
|
-
var _c = "client";
|
|
351
|
-
var _cI = "clientId";
|
|
352
|
-
var _cV = "codeVerifier";
|
|
353
|
-
var _co = "code";
|
|
354
|
-
var _e = "error";
|
|
355
|
-
var _eI = "expiresIn";
|
|
356
|
-
var _gT = "grantType";
|
|
357
|
-
var _h = "http";
|
|
358
|
-
var _hE = "httpError";
|
|
359
|
-
var _iT = "idToken";
|
|
360
|
-
var _jN = "jsonName";
|
|
361
|
-
var _m = "message";
|
|
362
|
-
var _rT = "refreshToken";
|
|
363
|
-
var _rU = "redirectUri";
|
|
364
|
-
var _s = "smithy.ts.sdk.synthetic.com.amazonaws.signin";
|
|
365
|
-
var _sAK = "secretAccessKey";
|
|
366
|
-
var _sT = "sessionToken";
|
|
367
|
-
var _se = "server";
|
|
368
|
-
var _tI = "tokenInput";
|
|
369
|
-
var _tO = "tokenOutput";
|
|
370
|
-
var _tT = "tokenType";
|
|
371
|
-
var n0 = "com.amazonaws.signin";
|
|
372
|
-
var _s_registry = TypeRegistry.for(_s);
|
|
373
|
-
var SigninServiceException$ = [
|
|
374
|
-
-3,
|
|
375
|
-
_s,
|
|
376
|
-
"SigninServiceException",
|
|
377
|
-
0,
|
|
378
|
-
[],
|
|
379
|
-
[]
|
|
380
|
-
];
|
|
381
|
-
_s_registry.registerError(SigninServiceException$, SigninServiceException);
|
|
382
|
-
var n0_registry = TypeRegistry.for(n0);
|
|
383
|
-
var AccessDeniedException$ = [
|
|
384
|
-
-3,
|
|
385
|
-
n0,
|
|
386
|
-
_ADE,
|
|
387
|
-
{ [_e]: _c },
|
|
388
|
-
[_e, _m],
|
|
389
|
-
[0, 0],
|
|
390
|
-
2
|
|
391
|
-
];
|
|
392
|
-
n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
|
|
393
|
-
var InternalServerException$ = [
|
|
394
|
-
-3,
|
|
395
|
-
n0,
|
|
396
|
-
_ISE,
|
|
397
|
-
{
|
|
398
|
-
[_e]: _se,
|
|
399
|
-
[_hE]: 500
|
|
400
|
-
},
|
|
401
|
-
[_e, _m],
|
|
402
|
-
[0, 0],
|
|
403
|
-
2
|
|
404
|
-
];
|
|
405
|
-
n0_registry.registerError(InternalServerException$, InternalServerException);
|
|
406
|
-
var TooManyRequestsError$ = [
|
|
407
|
-
-3,
|
|
408
|
-
n0,
|
|
409
|
-
_TMRE,
|
|
410
|
-
{
|
|
411
|
-
[_e]: _c,
|
|
412
|
-
[_hE]: 429
|
|
413
|
-
},
|
|
414
|
-
[_e, _m],
|
|
415
|
-
[0, 0],
|
|
416
|
-
2
|
|
417
|
-
];
|
|
418
|
-
n0_registry.registerError(TooManyRequestsError$, TooManyRequestsError);
|
|
419
|
-
var ValidationException$ = [
|
|
420
|
-
-3,
|
|
421
|
-
n0,
|
|
422
|
-
_VE,
|
|
423
|
-
{
|
|
424
|
-
[_e]: _c,
|
|
425
|
-
[_hE]: 400
|
|
426
|
-
},
|
|
427
|
-
[_e, _m],
|
|
428
|
-
[0, 0],
|
|
429
|
-
2
|
|
430
|
-
];
|
|
431
|
-
n0_registry.registerError(ValidationException$, ValidationException);
|
|
432
|
-
var errorTypeRegistries = [_s_registry, n0_registry];
|
|
433
|
-
var RefreshToken = [
|
|
434
|
-
0,
|
|
435
|
-
n0,
|
|
436
|
-
_RT,
|
|
437
|
-
8,
|
|
438
|
-
0
|
|
439
|
-
];
|
|
440
|
-
var AccessToken$ = [
|
|
441
|
-
3,
|
|
442
|
-
n0,
|
|
443
|
-
_AT,
|
|
444
|
-
8,
|
|
445
|
-
[
|
|
446
|
-
_aKI,
|
|
447
|
-
_sAK,
|
|
448
|
-
_sT
|
|
449
|
-
],
|
|
450
|
-
[
|
|
451
|
-
[0, { [_jN]: _aKI }],
|
|
452
|
-
[0, { [_jN]: _sAK }],
|
|
453
|
-
[0, { [_jN]: _sT }]
|
|
454
|
-
],
|
|
455
|
-
3
|
|
456
|
-
];
|
|
457
|
-
var CreateOAuth2TokenRequest$ = [
|
|
458
|
-
3,
|
|
459
|
-
n0,
|
|
460
|
-
_COATR,
|
|
461
|
-
0,
|
|
462
|
-
[_tI],
|
|
463
|
-
[[() => CreateOAuth2TokenRequestBody$, 16]],
|
|
464
|
-
1
|
|
465
|
-
];
|
|
466
|
-
var CreateOAuth2TokenRequestBody$ = [
|
|
467
|
-
3,
|
|
468
|
-
n0,
|
|
469
|
-
_COATRB,
|
|
470
|
-
0,
|
|
471
|
-
[
|
|
472
|
-
_cI,
|
|
473
|
-
_gT,
|
|
474
|
-
_co,
|
|
475
|
-
_rU,
|
|
476
|
-
_cV,
|
|
477
|
-
_rT
|
|
478
|
-
],
|
|
479
|
-
[
|
|
480
|
-
[0, { [_jN]: _cI }],
|
|
481
|
-
[0, { [_jN]: _gT }],
|
|
482
|
-
0,
|
|
483
|
-
[0, { [_jN]: _rU }],
|
|
484
|
-
[0, { [_jN]: _cV }],
|
|
485
|
-
[() => RefreshToken, { [_jN]: _rT }]
|
|
486
|
-
],
|
|
487
|
-
2
|
|
488
|
-
];
|
|
489
|
-
var CreateOAuth2TokenResponse$ = [
|
|
490
|
-
3,
|
|
491
|
-
n0,
|
|
492
|
-
_COATRr,
|
|
493
|
-
0,
|
|
494
|
-
[_tO],
|
|
495
|
-
[[() => CreateOAuth2TokenResponseBody$, 16]],
|
|
496
|
-
1
|
|
497
|
-
];
|
|
498
|
-
var CreateOAuth2TokenResponseBody$ = [
|
|
499
|
-
3,
|
|
500
|
-
n0,
|
|
501
|
-
_COATRBr,
|
|
502
|
-
0,
|
|
503
|
-
[
|
|
504
|
-
_aT,
|
|
505
|
-
_tT,
|
|
506
|
-
_eI,
|
|
507
|
-
_rT,
|
|
508
|
-
_iT
|
|
509
|
-
],
|
|
510
|
-
[
|
|
511
|
-
[() => AccessToken$, { [_jN]: _aT }],
|
|
512
|
-
[0, { [_jN]: _tT }],
|
|
513
|
-
[1, { [_jN]: _eI }],
|
|
514
|
-
[() => RefreshToken, { [_jN]: _rT }],
|
|
515
|
-
[0, { [_jN]: _iT }]
|
|
516
|
-
],
|
|
517
|
-
4
|
|
518
|
-
];
|
|
519
|
-
var CreateOAuth2Token$ = [
|
|
520
|
-
9,
|
|
521
|
-
n0,
|
|
522
|
-
_COAT,
|
|
523
|
-
{ [_h]: [
|
|
524
|
-
"POST",
|
|
525
|
-
"/v1/token",
|
|
526
|
-
200
|
|
527
|
-
] },
|
|
528
|
-
() => CreateOAuth2TokenRequest$,
|
|
529
|
-
() => CreateOAuth2TokenResponse$
|
|
530
|
-
];
|
|
531
|
-
var getRuntimeConfig$1 = (config) => {
|
|
532
|
-
return {
|
|
533
|
-
apiVersion: "2023-01-01",
|
|
534
|
-
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
535
|
-
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
536
|
-
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
537
|
-
endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
|
|
538
|
-
extensions: config?.extensions ?? [],
|
|
539
|
-
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultSigninHttpAuthSchemeProvider,
|
|
540
|
-
httpAuthSchemes: config?.httpAuthSchemes ?? [{
|
|
541
|
-
schemeId: "aws.auth#sigv4",
|
|
542
|
-
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
|
543
|
-
signer: new AwsSdkSigV4Signer()
|
|
544
|
-
}, {
|
|
545
|
-
schemeId: "smithy.api#noAuth",
|
|
546
|
-
identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})),
|
|
547
|
-
signer: new NoAuthSigner()
|
|
548
|
-
}],
|
|
549
|
-
logger: config?.logger ?? new NoOpLogger(),
|
|
550
|
-
protocol: config?.protocol ?? AwsRestJsonProtocol,
|
|
551
|
-
protocolSettings: config?.protocolSettings ?? {
|
|
552
|
-
defaultNamespace: "com.amazonaws.signin",
|
|
553
|
-
errorTypeRegistries,
|
|
554
|
-
version: "2023-01-01",
|
|
555
|
-
serviceTarget: "Signin"
|
|
556
|
-
},
|
|
557
|
-
serviceId: config?.serviceId ?? "Signin",
|
|
558
|
-
urlParser: config?.urlParser ?? parseUrl,
|
|
559
|
-
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
560
|
-
utf8Encoder: config?.utf8Encoder ?? toUtf8
|
|
561
|
-
};
|
|
562
|
-
};
|
|
563
|
-
var getRuntimeConfig = (config) => {
|
|
564
|
-
emitWarningIfUnsupportedVersion(process.version);
|
|
565
|
-
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
566
|
-
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
567
|
-
const clientSharedValues = getRuntimeConfig$1(config);
|
|
568
|
-
emitWarningIfUnsupportedVersion$1(process.version);
|
|
569
|
-
const loaderConfig = {
|
|
570
|
-
profile: config?.profile,
|
|
571
|
-
logger: clientSharedValues.logger
|
|
572
|
-
};
|
|
573
|
-
return {
|
|
574
|
-
...clientSharedValues,
|
|
575
|
-
...config,
|
|
576
|
-
runtime: "node",
|
|
577
|
-
defaultsMode,
|
|
578
|
-
authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
|
|
579
|
-
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
580
|
-
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({
|
|
581
|
-
serviceId: clientSharedValues.serviceId,
|
|
582
|
-
clientVersion: packageInfo.version
|
|
583
|
-
}),
|
|
584
|
-
maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
|
585
|
-
region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, {
|
|
586
|
-
...NODE_REGION_CONFIG_FILE_OPTIONS,
|
|
587
|
-
...loaderConfig
|
|
588
|
-
}),
|
|
589
|
-
requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
590
|
-
retryMode: config?.retryMode ?? loadConfig({
|
|
591
|
-
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
592
|
-
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE
|
|
593
|
-
}, config),
|
|
594
|
-
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
595
|
-
streamCollector: config?.streamCollector ?? streamCollector,
|
|
596
|
-
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
597
|
-
useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
598
|
-
userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig)
|
|
599
|
-
};
|
|
600
|
-
};
|
|
601
|
-
var getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
602
|
-
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
603
|
-
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
604
|
-
let _credentials = runtimeConfig.credentials;
|
|
605
|
-
return {
|
|
606
|
-
setHttpAuthScheme(httpAuthScheme) {
|
|
607
|
-
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
608
|
-
if (index === -1) _httpAuthSchemes.push(httpAuthScheme);
|
|
609
|
-
else _httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
|
610
|
-
},
|
|
611
|
-
httpAuthSchemes() {
|
|
612
|
-
return _httpAuthSchemes;
|
|
613
|
-
},
|
|
614
|
-
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
|
615
|
-
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
|
616
|
-
},
|
|
617
|
-
httpAuthSchemeProvider() {
|
|
618
|
-
return _httpAuthSchemeProvider;
|
|
619
|
-
},
|
|
620
|
-
setCredentials(credentials) {
|
|
621
|
-
_credentials = credentials;
|
|
622
|
-
},
|
|
623
|
-
credentials() {
|
|
624
|
-
return _credentials;
|
|
625
|
-
}
|
|
626
|
-
};
|
|
627
|
-
};
|
|
628
|
-
var resolveHttpAuthRuntimeConfig = (config) => {
|
|
629
|
-
return {
|
|
630
|
-
httpAuthSchemes: config.httpAuthSchemes(),
|
|
631
|
-
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
632
|
-
credentials: config.credentials()
|
|
633
|
-
};
|
|
634
|
-
};
|
|
635
|
-
var resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
636
|
-
const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
637
|
-
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
638
|
-
return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
639
|
-
};
|
|
640
|
-
var SigninClient = class extends Client {
|
|
641
|
-
config;
|
|
642
|
-
constructor(...[configuration]) {
|
|
643
|
-
const _config_0 = getRuntimeConfig(configuration || {});
|
|
644
|
-
super(_config_0);
|
|
645
|
-
this.initConfig = _config_0;
|
|
646
|
-
const _config_8 = resolveRuntimeExtensions(resolveHttpAuthSchemeConfig(resolveEndpointConfig(resolveHostHeaderConfig(resolveRegionConfig(resolveRetryConfig(resolveUserAgentConfig(resolveClientEndpointParameters(_config_0))))))), configuration?.extensions || []);
|
|
647
|
-
this.config = _config_8;
|
|
648
|
-
this.middlewareStack.use(getSchemaSerdePlugin(this.config));
|
|
649
|
-
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
650
|
-
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
651
|
-
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
652
|
-
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
653
|
-
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
654
|
-
this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
|
|
655
|
-
this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
656
|
-
httpAuthSchemeParametersProvider: defaultSigninHttpAuthSchemeParametersProvider,
|
|
657
|
-
identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({ "aws.auth#sigv4": config.credentials })
|
|
658
|
-
}));
|
|
659
|
-
this.middlewareStack.use(getHttpSigningPlugin(this.config));
|
|
660
|
-
}
|
|
661
|
-
destroy() {
|
|
662
|
-
super.destroy();
|
|
663
|
-
}
|
|
664
|
-
};
|
|
665
|
-
var CreateOAuth2TokenCommand = class extends Command.classBuilder().ep({
|
|
666
|
-
...commonParams,
|
|
667
|
-
IsControlPlane: {
|
|
668
|
-
type: "staticContextParams",
|
|
669
|
-
value: false
|
|
670
|
-
}
|
|
671
|
-
}).m(function(Command, cs, config, o) {
|
|
672
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
673
|
-
}).s("Signin", "CreateOAuth2Token", {}).n("SigninClient", "CreateOAuth2TokenCommand").sc(CreateOAuth2Token$).build() {};
|
|
674
|
-
var commands = { CreateOAuth2TokenCommand };
|
|
675
|
-
var Signin = class extends SigninClient {};
|
|
676
|
-
createAggregatedClient(commands, Signin);
|
|
677
|
-
var OAuth2ErrorCode = {
|
|
678
|
-
AUTHCODE_EXPIRED: "AUTHCODE_EXPIRED",
|
|
679
|
-
CONFLICT: "CONFLICT",
|
|
680
|
-
INSUFFICIENT_PERMISSIONS: "INSUFFICIENT_PERMISSIONS",
|
|
681
|
-
INVALID_REQUEST: "INVALID_REQUEST",
|
|
682
|
-
RESOURCE_NOT_FOUND: "RESOURCE_NOT_FOUND",
|
|
683
|
-
SERVER_ERROR: "server_error",
|
|
684
|
-
SERVICE_QUOTA_EXCEEDED: "SERVICE_QUOTA_EXCEEDED",
|
|
685
|
-
TOKEN_EXPIRED: "TOKEN_EXPIRED",
|
|
686
|
-
USER_CREDENTIALS_CHANGED: "USER_CREDENTIALS_CHANGED"
|
|
687
|
-
};
|
|
688
|
-
exports.AccessDeniedException = AccessDeniedException;
|
|
689
|
-
exports.AccessDeniedException$ = AccessDeniedException$;
|
|
690
|
-
exports.AccessToken$ = AccessToken$;
|
|
691
|
-
exports.CreateOAuth2Token$ = CreateOAuth2Token$;
|
|
692
|
-
exports.CreateOAuth2TokenCommand = CreateOAuth2TokenCommand;
|
|
693
|
-
exports.CreateOAuth2TokenRequest$ = CreateOAuth2TokenRequest$;
|
|
694
|
-
exports.CreateOAuth2TokenRequestBody$ = CreateOAuth2TokenRequestBody$;
|
|
695
|
-
exports.CreateOAuth2TokenResponse$ = CreateOAuth2TokenResponse$;
|
|
696
|
-
exports.CreateOAuth2TokenResponseBody$ = CreateOAuth2TokenResponseBody$;
|
|
697
|
-
exports.InternalServerException = InternalServerException;
|
|
698
|
-
exports.InternalServerException$ = InternalServerException$;
|
|
699
|
-
exports.OAuth2ErrorCode = OAuth2ErrorCode;
|
|
700
|
-
exports.Signin = Signin;
|
|
701
|
-
exports.SigninClient = SigninClient;
|
|
702
|
-
exports.SigninServiceException = SigninServiceException;
|
|
703
|
-
exports.SigninServiceException$ = SigninServiceException$;
|
|
704
|
-
exports.TooManyRequestsError = TooManyRequestsError;
|
|
705
|
-
exports.TooManyRequestsError$ = TooManyRequestsError$;
|
|
706
|
-
exports.ValidationException = ValidationException;
|
|
707
|
-
exports.ValidationException$ = ValidationException$;
|
|
708
|
-
exports.errorTypeRegistries = errorTypeRegistries;
|
|
709
|
-
}));
|
|
710
|
-
//#endregion
|
|
711
|
-
//#region ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.23/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js
|
|
712
|
-
var require_sso_oidc = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
713
|
-
var { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require_client();
|
|
714
|
-
var { NoAuthSigner, getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin } = require_dist_cjs();
|
|
715
|
-
var { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require_client$1();
|
|
716
|
-
exports.$Command = Command;
|
|
717
|
-
exports.__Client = Client;
|
|
718
|
-
var { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require_config();
|
|
719
|
-
var { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require_endpoints();
|
|
720
|
-
var { parseUrl, getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require_protocols();
|
|
721
|
-
var { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, resolveRetryConfig, getRetryPlugin } = require_retry();
|
|
722
|
-
var { TypeRegistry, getSchemaSerdePlugin } = require_schema();
|
|
723
|
-
var { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require_httpAuthSchemes();
|
|
724
|
-
var { toUtf8, fromUtf8, toBase64, fromBase64, Hash, calculateBodyLength } = require_serde();
|
|
725
|
-
var { streamCollector, NodeHttpHandler } = (init_dist_es(), __toCommonJS(dist_es_exports));
|
|
726
|
-
var { AwsRestJsonProtocol } = require_protocols$1();
|
|
727
|
-
var defaultSSOOIDCHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
728
|
-
return {
|
|
729
|
-
operation: getSmithyContext(context).operation,
|
|
730
|
-
region: await normalizeProvider(config.region)() || (() => {
|
|
731
|
-
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
|
732
|
-
})()
|
|
733
|
-
};
|
|
734
|
-
};
|
|
735
|
-
function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
|
736
|
-
return {
|
|
737
|
-
schemeId: "aws.auth#sigv4",
|
|
738
|
-
signingProperties: {
|
|
739
|
-
name: "sso-oauth",
|
|
740
|
-
region: authParameters.region
|
|
741
|
-
},
|
|
742
|
-
propertiesExtractor: (config, context) => ({ signingProperties: {
|
|
743
|
-
config,
|
|
744
|
-
context
|
|
745
|
-
} })
|
|
746
|
-
};
|
|
747
|
-
}
|
|
748
|
-
function createSmithyApiNoAuthHttpAuthOption(authParameters) {
|
|
749
|
-
return { schemeId: "smithy.api#noAuth" };
|
|
750
|
-
}
|
|
751
|
-
var defaultSSOOIDCHttpAuthSchemeProvider = (authParameters) => {
|
|
752
|
-
const options = [];
|
|
753
|
-
switch (authParameters.operation) {
|
|
754
|
-
case "CreateToken":
|
|
755
|
-
options.push(createSmithyApiNoAuthHttpAuthOption());
|
|
756
|
-
break;
|
|
757
|
-
default: options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
|
|
758
|
-
}
|
|
759
|
-
return options;
|
|
760
|
-
};
|
|
761
|
-
var resolveHttpAuthSchemeConfig = (config) => {
|
|
762
|
-
const config_0 = resolveAwsSdkSigV4Config(config);
|
|
763
|
-
return Object.assign(config_0, { authSchemePreference: normalizeProvider(config.authSchemePreference ?? []) });
|
|
764
|
-
};
|
|
765
|
-
var resolveClientEndpointParameters = (options) => {
|
|
766
|
-
return Object.assign(options, {
|
|
767
|
-
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
768
|
-
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
769
|
-
defaultSigningName: "sso-oauth"
|
|
770
|
-
});
|
|
771
|
-
};
|
|
772
|
-
var commonParams = {
|
|
773
|
-
UseFIPS: {
|
|
774
|
-
type: "builtInParams",
|
|
775
|
-
name: "useFipsEndpoint"
|
|
776
|
-
},
|
|
777
|
-
Endpoint: {
|
|
778
|
-
type: "builtInParams",
|
|
779
|
-
name: "endpoint"
|
|
780
|
-
},
|
|
781
|
-
Region: {
|
|
782
|
-
type: "builtInParams",
|
|
783
|
-
name: "region"
|
|
784
|
-
},
|
|
785
|
-
UseDualStack: {
|
|
786
|
-
type: "builtInParams",
|
|
787
|
-
name: "useDualstackEndpoint"
|
|
788
|
-
}
|
|
789
|
-
};
|
|
790
|
-
var packageInfo = { version: "3.997.22" };
|
|
791
|
-
var k = "ref";
|
|
792
|
-
var a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = { [k]: "Endpoint" }, h = { [k]: d }, i = {}, j = [{ [k]: "Region" }];
|
|
793
|
-
var _data = {
|
|
794
|
-
conditions: [
|
|
795
|
-
[c, [g]],
|
|
796
|
-
[c, j],
|
|
797
|
-
[
|
|
798
|
-
"aws.partition",
|
|
799
|
-
j,
|
|
800
|
-
d
|
|
801
|
-
],
|
|
802
|
-
[e, [{ [k]: "UseFIPS" }, b]],
|
|
803
|
-
[e, [{ [k]: "UseDualStack" }, b]],
|
|
804
|
-
[e, [{
|
|
805
|
-
fn: f,
|
|
806
|
-
argv: [h, "supportsDualStack"]
|
|
807
|
-
}, b]],
|
|
808
|
-
[e, [{
|
|
809
|
-
fn: f,
|
|
810
|
-
argv: [h, "supportsFIPS"]
|
|
811
|
-
}, b]],
|
|
812
|
-
["stringEquals", [{
|
|
813
|
-
fn: f,
|
|
814
|
-
argv: [h, "name"]
|
|
815
|
-
}, "aws-us-gov"]]
|
|
816
|
-
],
|
|
817
|
-
results: [
|
|
818
|
-
[a],
|
|
819
|
-
[a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
|
|
820
|
-
[a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
|
|
821
|
-
[g, i],
|
|
822
|
-
["https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
|
|
823
|
-
[a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
|
|
824
|
-
["https://oidc.{Region}.amazonaws.com", i],
|
|
825
|
-
["https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}", i],
|
|
826
|
-
[a, "FIPS is enabled but this partition does not support FIPS"],
|
|
827
|
-
["https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
|
|
828
|
-
[a, "DualStack is enabled but this partition does not support DualStack"],
|
|
829
|
-
["https://oidc.{Region}.{PartitionResult#dnsSuffix}", i],
|
|
830
|
-
[a, "Invalid Configuration: Missing Region"]
|
|
831
|
-
]
|
|
832
|
-
};
|
|
833
|
-
var root = 2;
|
|
834
|
-
var nodes = new Int32Array([
|
|
835
|
-
-1,
|
|
836
|
-
1,
|
|
837
|
-
-1,
|
|
838
|
-
0,
|
|
839
|
-
13,
|
|
840
|
-
3,
|
|
841
|
-
1,
|
|
842
|
-
4,
|
|
843
|
-
100000012,
|
|
844
|
-
2,
|
|
845
|
-
5,
|
|
846
|
-
100000012,
|
|
847
|
-
3,
|
|
848
|
-
8,
|
|
849
|
-
6,
|
|
850
|
-
4,
|
|
851
|
-
7,
|
|
852
|
-
100000011,
|
|
853
|
-
5,
|
|
854
|
-
100000009,
|
|
855
|
-
100000010,
|
|
856
|
-
4,
|
|
857
|
-
11,
|
|
858
|
-
9,
|
|
859
|
-
6,
|
|
860
|
-
10,
|
|
861
|
-
100000008,
|
|
862
|
-
7,
|
|
863
|
-
100000006,
|
|
864
|
-
100000007,
|
|
865
|
-
5,
|
|
866
|
-
12,
|
|
867
|
-
100000005,
|
|
868
|
-
6,
|
|
869
|
-
100000004,
|
|
870
|
-
100000005,
|
|
871
|
-
3,
|
|
872
|
-
100000001,
|
|
873
|
-
14,
|
|
874
|
-
4,
|
|
875
|
-
100000002,
|
|
876
|
-
100000003
|
|
877
|
-
]);
|
|
878
|
-
var bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
|
|
879
|
-
var cache = new EndpointCache({
|
|
880
|
-
size: 50,
|
|
881
|
-
params: [
|
|
882
|
-
"Endpoint",
|
|
883
|
-
"Region",
|
|
884
|
-
"UseDualStack",
|
|
885
|
-
"UseFIPS"
|
|
886
|
-
]
|
|
887
|
-
});
|
|
888
|
-
var defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
889
|
-
return cache.get(endpointParams, () => decideEndpoint(bdd, {
|
|
890
|
-
endpointParams,
|
|
891
|
-
logger: context.logger
|
|
892
|
-
}));
|
|
893
|
-
};
|
|
894
|
-
customEndpointFunctions.aws = awsEndpointFunctions;
|
|
895
|
-
var SSOOIDCServiceException = class SSOOIDCServiceException extends ServiceException {
|
|
896
|
-
constructor(options) {
|
|
897
|
-
super(options);
|
|
898
|
-
Object.setPrototypeOf(this, SSOOIDCServiceException.prototype);
|
|
899
|
-
}
|
|
900
|
-
};
|
|
901
|
-
var AccessDeniedException = class AccessDeniedException extends SSOOIDCServiceException {
|
|
902
|
-
name = "AccessDeniedException";
|
|
903
|
-
$fault = "client";
|
|
904
|
-
error;
|
|
905
|
-
reason;
|
|
906
|
-
error_description;
|
|
907
|
-
constructor(opts) {
|
|
908
|
-
super({
|
|
909
|
-
name: "AccessDeniedException",
|
|
910
|
-
$fault: "client",
|
|
911
|
-
...opts
|
|
912
|
-
});
|
|
913
|
-
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
914
|
-
this.error = opts.error;
|
|
915
|
-
this.reason = opts.reason;
|
|
916
|
-
this.error_description = opts.error_description;
|
|
917
|
-
}
|
|
918
|
-
};
|
|
919
|
-
var AuthorizationPendingException = class AuthorizationPendingException extends SSOOIDCServiceException {
|
|
920
|
-
name = "AuthorizationPendingException";
|
|
921
|
-
$fault = "client";
|
|
922
|
-
error;
|
|
923
|
-
error_description;
|
|
924
|
-
constructor(opts) {
|
|
925
|
-
super({
|
|
926
|
-
name: "AuthorizationPendingException",
|
|
927
|
-
$fault: "client",
|
|
928
|
-
...opts
|
|
929
|
-
});
|
|
930
|
-
Object.setPrototypeOf(this, AuthorizationPendingException.prototype);
|
|
931
|
-
this.error = opts.error;
|
|
932
|
-
this.error_description = opts.error_description;
|
|
933
|
-
}
|
|
934
|
-
};
|
|
935
|
-
var ExpiredTokenException = class ExpiredTokenException extends SSOOIDCServiceException {
|
|
936
|
-
name = "ExpiredTokenException";
|
|
937
|
-
$fault = "client";
|
|
938
|
-
error;
|
|
939
|
-
error_description;
|
|
940
|
-
constructor(opts) {
|
|
941
|
-
super({
|
|
942
|
-
name: "ExpiredTokenException",
|
|
943
|
-
$fault: "client",
|
|
944
|
-
...opts
|
|
945
|
-
});
|
|
946
|
-
Object.setPrototypeOf(this, ExpiredTokenException.prototype);
|
|
947
|
-
this.error = opts.error;
|
|
948
|
-
this.error_description = opts.error_description;
|
|
949
|
-
}
|
|
950
|
-
};
|
|
951
|
-
var InternalServerException = class InternalServerException extends SSOOIDCServiceException {
|
|
952
|
-
name = "InternalServerException";
|
|
953
|
-
$fault = "server";
|
|
954
|
-
error;
|
|
955
|
-
error_description;
|
|
956
|
-
constructor(opts) {
|
|
957
|
-
super({
|
|
958
|
-
name: "InternalServerException",
|
|
959
|
-
$fault: "server",
|
|
960
|
-
...opts
|
|
961
|
-
});
|
|
962
|
-
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
963
|
-
this.error = opts.error;
|
|
964
|
-
this.error_description = opts.error_description;
|
|
965
|
-
}
|
|
966
|
-
};
|
|
967
|
-
var InvalidClientException = class InvalidClientException extends SSOOIDCServiceException {
|
|
968
|
-
name = "InvalidClientException";
|
|
969
|
-
$fault = "client";
|
|
970
|
-
error;
|
|
971
|
-
error_description;
|
|
972
|
-
constructor(opts) {
|
|
973
|
-
super({
|
|
974
|
-
name: "InvalidClientException",
|
|
975
|
-
$fault: "client",
|
|
976
|
-
...opts
|
|
977
|
-
});
|
|
978
|
-
Object.setPrototypeOf(this, InvalidClientException.prototype);
|
|
979
|
-
this.error = opts.error;
|
|
980
|
-
this.error_description = opts.error_description;
|
|
981
|
-
}
|
|
982
|
-
};
|
|
983
|
-
var InvalidGrantException = class InvalidGrantException extends SSOOIDCServiceException {
|
|
984
|
-
name = "InvalidGrantException";
|
|
985
|
-
$fault = "client";
|
|
986
|
-
error;
|
|
987
|
-
error_description;
|
|
988
|
-
constructor(opts) {
|
|
989
|
-
super({
|
|
990
|
-
name: "InvalidGrantException",
|
|
991
|
-
$fault: "client",
|
|
992
|
-
...opts
|
|
993
|
-
});
|
|
994
|
-
Object.setPrototypeOf(this, InvalidGrantException.prototype);
|
|
995
|
-
this.error = opts.error;
|
|
996
|
-
this.error_description = opts.error_description;
|
|
997
|
-
}
|
|
998
|
-
};
|
|
999
|
-
var InvalidRequestException = class InvalidRequestException extends SSOOIDCServiceException {
|
|
1000
|
-
name = "InvalidRequestException";
|
|
1001
|
-
$fault = "client";
|
|
1002
|
-
error;
|
|
1003
|
-
reason;
|
|
1004
|
-
error_description;
|
|
1005
|
-
constructor(opts) {
|
|
1006
|
-
super({
|
|
1007
|
-
name: "InvalidRequestException",
|
|
1008
|
-
$fault: "client",
|
|
1009
|
-
...opts
|
|
1010
|
-
});
|
|
1011
|
-
Object.setPrototypeOf(this, InvalidRequestException.prototype);
|
|
1012
|
-
this.error = opts.error;
|
|
1013
|
-
this.reason = opts.reason;
|
|
1014
|
-
this.error_description = opts.error_description;
|
|
1015
|
-
}
|
|
1016
|
-
};
|
|
1017
|
-
var InvalidScopeException = class InvalidScopeException extends SSOOIDCServiceException {
|
|
1018
|
-
name = "InvalidScopeException";
|
|
1019
|
-
$fault = "client";
|
|
1020
|
-
error;
|
|
1021
|
-
error_description;
|
|
1022
|
-
constructor(opts) {
|
|
1023
|
-
super({
|
|
1024
|
-
name: "InvalidScopeException",
|
|
1025
|
-
$fault: "client",
|
|
1026
|
-
...opts
|
|
1027
|
-
});
|
|
1028
|
-
Object.setPrototypeOf(this, InvalidScopeException.prototype);
|
|
1029
|
-
this.error = opts.error;
|
|
1030
|
-
this.error_description = opts.error_description;
|
|
1031
|
-
}
|
|
1032
|
-
};
|
|
1033
|
-
var SlowDownException = class SlowDownException extends SSOOIDCServiceException {
|
|
1034
|
-
name = "SlowDownException";
|
|
1035
|
-
$fault = "client";
|
|
1036
|
-
error;
|
|
1037
|
-
error_description;
|
|
1038
|
-
constructor(opts) {
|
|
1039
|
-
super({
|
|
1040
|
-
name: "SlowDownException",
|
|
1041
|
-
$fault: "client",
|
|
1042
|
-
...opts
|
|
1043
|
-
});
|
|
1044
|
-
Object.setPrototypeOf(this, SlowDownException.prototype);
|
|
1045
|
-
this.error = opts.error;
|
|
1046
|
-
this.error_description = opts.error_description;
|
|
1047
|
-
}
|
|
1048
|
-
};
|
|
1049
|
-
var UnauthorizedClientException = class UnauthorizedClientException extends SSOOIDCServiceException {
|
|
1050
|
-
name = "UnauthorizedClientException";
|
|
1051
|
-
$fault = "client";
|
|
1052
|
-
error;
|
|
1053
|
-
error_description;
|
|
1054
|
-
constructor(opts) {
|
|
1055
|
-
super({
|
|
1056
|
-
name: "UnauthorizedClientException",
|
|
1057
|
-
$fault: "client",
|
|
1058
|
-
...opts
|
|
1059
|
-
});
|
|
1060
|
-
Object.setPrototypeOf(this, UnauthorizedClientException.prototype);
|
|
1061
|
-
this.error = opts.error;
|
|
1062
|
-
this.error_description = opts.error_description;
|
|
1063
|
-
}
|
|
1064
|
-
};
|
|
1065
|
-
var UnsupportedGrantTypeException = class UnsupportedGrantTypeException extends SSOOIDCServiceException {
|
|
1066
|
-
name = "UnsupportedGrantTypeException";
|
|
1067
|
-
$fault = "client";
|
|
1068
|
-
error;
|
|
1069
|
-
error_description;
|
|
1070
|
-
constructor(opts) {
|
|
1071
|
-
super({
|
|
1072
|
-
name: "UnsupportedGrantTypeException",
|
|
1073
|
-
$fault: "client",
|
|
1074
|
-
...opts
|
|
1075
|
-
});
|
|
1076
|
-
Object.setPrototypeOf(this, UnsupportedGrantTypeException.prototype);
|
|
1077
|
-
this.error = opts.error;
|
|
1078
|
-
this.error_description = opts.error_description;
|
|
1079
|
-
}
|
|
1080
|
-
};
|
|
1081
|
-
var _ADE = "AccessDeniedException";
|
|
1082
|
-
var _APE = "AuthorizationPendingException";
|
|
1083
|
-
var _AT = "AccessToken";
|
|
1084
|
-
var _CS = "ClientSecret";
|
|
1085
|
-
var _CT = "CreateToken";
|
|
1086
|
-
var _CTR = "CreateTokenRequest";
|
|
1087
|
-
var _CTRr = "CreateTokenResponse";
|
|
1088
|
-
var _CV = "CodeVerifier";
|
|
1089
|
-
var _ETE = "ExpiredTokenException";
|
|
1090
|
-
var _ICE = "InvalidClientException";
|
|
1091
|
-
var _IGE = "InvalidGrantException";
|
|
1092
|
-
var _IRE = "InvalidRequestException";
|
|
1093
|
-
var _ISE = "InternalServerException";
|
|
1094
|
-
var _ISEn = "InvalidScopeException";
|
|
1095
|
-
var _IT = "IdToken";
|
|
1096
|
-
var _RT = "RefreshToken";
|
|
1097
|
-
var _SDE = "SlowDownException";
|
|
1098
|
-
var _UCE = "UnauthorizedClientException";
|
|
1099
|
-
var _UGTE = "UnsupportedGrantTypeException";
|
|
1100
|
-
var _aT = "accessToken";
|
|
1101
|
-
var _c = "client";
|
|
1102
|
-
var _cI = "clientId";
|
|
1103
|
-
var _cS = "clientSecret";
|
|
1104
|
-
var _cV = "codeVerifier";
|
|
1105
|
-
var _co = "code";
|
|
1106
|
-
var _dC = "deviceCode";
|
|
1107
|
-
var _e = "error";
|
|
1108
|
-
var _eI = "expiresIn";
|
|
1109
|
-
var _ed = "error_description";
|
|
1110
|
-
var _gT = "grantType";
|
|
1111
|
-
var _h = "http";
|
|
1112
|
-
var _hE = "httpError";
|
|
1113
|
-
var _iT = "idToken";
|
|
1114
|
-
var _r = "reason";
|
|
1115
|
-
var _rT = "refreshToken";
|
|
1116
|
-
var _rU = "redirectUri";
|
|
1117
|
-
var _s = "smithy.ts.sdk.synthetic.com.amazonaws.ssooidc";
|
|
1118
|
-
var _sc = "scope";
|
|
1119
|
-
var _se = "server";
|
|
1120
|
-
var _tT = "tokenType";
|
|
1121
|
-
var n0 = "com.amazonaws.ssooidc";
|
|
1122
|
-
var _s_registry = TypeRegistry.for(_s);
|
|
1123
|
-
var SSOOIDCServiceException$ = [
|
|
1124
|
-
-3,
|
|
1125
|
-
_s,
|
|
1126
|
-
"SSOOIDCServiceException",
|
|
1127
|
-
0,
|
|
1128
|
-
[],
|
|
1129
|
-
[]
|
|
1130
|
-
];
|
|
1131
|
-
_s_registry.registerError(SSOOIDCServiceException$, SSOOIDCServiceException);
|
|
1132
|
-
var n0_registry = TypeRegistry.for(n0);
|
|
1133
|
-
var AccessDeniedException$ = [
|
|
1134
|
-
-3,
|
|
1135
|
-
n0,
|
|
1136
|
-
_ADE,
|
|
1137
|
-
{
|
|
1138
|
-
[_e]: _c,
|
|
1139
|
-
[_hE]: 400
|
|
1140
|
-
},
|
|
1141
|
-
[
|
|
1142
|
-
_e,
|
|
1143
|
-
_r,
|
|
1144
|
-
_ed
|
|
1145
|
-
],
|
|
1146
|
-
[
|
|
1147
|
-
0,
|
|
1148
|
-
0,
|
|
1149
|
-
0
|
|
1150
|
-
]
|
|
1151
|
-
];
|
|
1152
|
-
n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
|
|
1153
|
-
var AuthorizationPendingException$ = [
|
|
1154
|
-
-3,
|
|
1155
|
-
n0,
|
|
1156
|
-
_APE,
|
|
1157
|
-
{
|
|
1158
|
-
[_e]: _c,
|
|
1159
|
-
[_hE]: 400
|
|
1160
|
-
},
|
|
1161
|
-
[_e, _ed],
|
|
1162
|
-
[0, 0]
|
|
1163
|
-
];
|
|
1164
|
-
n0_registry.registerError(AuthorizationPendingException$, AuthorizationPendingException);
|
|
1165
|
-
var ExpiredTokenException$ = [
|
|
1166
|
-
-3,
|
|
1167
|
-
n0,
|
|
1168
|
-
_ETE,
|
|
1169
|
-
{
|
|
1170
|
-
[_e]: _c,
|
|
1171
|
-
[_hE]: 400
|
|
1172
|
-
},
|
|
1173
|
-
[_e, _ed],
|
|
1174
|
-
[0, 0]
|
|
1175
|
-
];
|
|
1176
|
-
n0_registry.registerError(ExpiredTokenException$, ExpiredTokenException);
|
|
1177
|
-
var InternalServerException$ = [
|
|
1178
|
-
-3,
|
|
1179
|
-
n0,
|
|
1180
|
-
_ISE,
|
|
1181
|
-
{
|
|
1182
|
-
[_e]: _se,
|
|
1183
|
-
[_hE]: 500
|
|
1184
|
-
},
|
|
1185
|
-
[_e, _ed],
|
|
1186
|
-
[0, 0]
|
|
1187
|
-
];
|
|
1188
|
-
n0_registry.registerError(InternalServerException$, InternalServerException);
|
|
1189
|
-
var InvalidClientException$ = [
|
|
1190
|
-
-3,
|
|
1191
|
-
n0,
|
|
1192
|
-
_ICE,
|
|
1193
|
-
{
|
|
1194
|
-
[_e]: _c,
|
|
1195
|
-
[_hE]: 401
|
|
1196
|
-
},
|
|
1197
|
-
[_e, _ed],
|
|
1198
|
-
[0, 0]
|
|
1199
|
-
];
|
|
1200
|
-
n0_registry.registerError(InvalidClientException$, InvalidClientException);
|
|
1201
|
-
var InvalidGrantException$ = [
|
|
1202
|
-
-3,
|
|
1203
|
-
n0,
|
|
1204
|
-
_IGE,
|
|
1205
|
-
{
|
|
1206
|
-
[_e]: _c,
|
|
1207
|
-
[_hE]: 400
|
|
1208
|
-
},
|
|
1209
|
-
[_e, _ed],
|
|
1210
|
-
[0, 0]
|
|
1211
|
-
];
|
|
1212
|
-
n0_registry.registerError(InvalidGrantException$, InvalidGrantException);
|
|
1213
|
-
var InvalidRequestException$ = [
|
|
1214
|
-
-3,
|
|
1215
|
-
n0,
|
|
1216
|
-
_IRE,
|
|
1217
|
-
{
|
|
1218
|
-
[_e]: _c,
|
|
1219
|
-
[_hE]: 400
|
|
1220
|
-
},
|
|
1221
|
-
[
|
|
1222
|
-
_e,
|
|
1223
|
-
_r,
|
|
1224
|
-
_ed
|
|
1225
|
-
],
|
|
1226
|
-
[
|
|
1227
|
-
0,
|
|
1228
|
-
0,
|
|
1229
|
-
0
|
|
1230
|
-
]
|
|
1231
|
-
];
|
|
1232
|
-
n0_registry.registerError(InvalidRequestException$, InvalidRequestException);
|
|
1233
|
-
var InvalidScopeException$ = [
|
|
1234
|
-
-3,
|
|
1235
|
-
n0,
|
|
1236
|
-
_ISEn,
|
|
1237
|
-
{
|
|
1238
|
-
[_e]: _c,
|
|
1239
|
-
[_hE]: 400
|
|
1240
|
-
},
|
|
1241
|
-
[_e, _ed],
|
|
1242
|
-
[0, 0]
|
|
1243
|
-
];
|
|
1244
|
-
n0_registry.registerError(InvalidScopeException$, InvalidScopeException);
|
|
1245
|
-
var SlowDownException$ = [
|
|
1246
|
-
-3,
|
|
1247
|
-
n0,
|
|
1248
|
-
_SDE,
|
|
1249
|
-
{
|
|
1250
|
-
[_e]: _c,
|
|
1251
|
-
[_hE]: 400
|
|
1252
|
-
},
|
|
1253
|
-
[_e, _ed],
|
|
1254
|
-
[0, 0]
|
|
1255
|
-
];
|
|
1256
|
-
n0_registry.registerError(SlowDownException$, SlowDownException);
|
|
1257
|
-
var UnauthorizedClientException$ = [
|
|
1258
|
-
-3,
|
|
1259
|
-
n0,
|
|
1260
|
-
_UCE,
|
|
1261
|
-
{
|
|
1262
|
-
[_e]: _c,
|
|
1263
|
-
[_hE]: 400
|
|
1264
|
-
},
|
|
1265
|
-
[_e, _ed],
|
|
1266
|
-
[0, 0]
|
|
1267
|
-
];
|
|
1268
|
-
n0_registry.registerError(UnauthorizedClientException$, UnauthorizedClientException);
|
|
1269
|
-
var UnsupportedGrantTypeException$ = [
|
|
1270
|
-
-3,
|
|
1271
|
-
n0,
|
|
1272
|
-
_UGTE,
|
|
1273
|
-
{
|
|
1274
|
-
[_e]: _c,
|
|
1275
|
-
[_hE]: 400
|
|
1276
|
-
},
|
|
1277
|
-
[_e, _ed],
|
|
1278
|
-
[0, 0]
|
|
1279
|
-
];
|
|
1280
|
-
n0_registry.registerError(UnsupportedGrantTypeException$, UnsupportedGrantTypeException);
|
|
1281
|
-
var errorTypeRegistries = [_s_registry, n0_registry];
|
|
1282
|
-
var AccessToken = [
|
|
1283
|
-
0,
|
|
1284
|
-
n0,
|
|
1285
|
-
_AT,
|
|
1286
|
-
8,
|
|
1287
|
-
0
|
|
1288
|
-
];
|
|
1289
|
-
var ClientSecret = [
|
|
1290
|
-
0,
|
|
1291
|
-
n0,
|
|
1292
|
-
_CS,
|
|
1293
|
-
8,
|
|
1294
|
-
0
|
|
1295
|
-
];
|
|
1296
|
-
var CodeVerifier = [
|
|
1297
|
-
0,
|
|
1298
|
-
n0,
|
|
1299
|
-
_CV,
|
|
1300
|
-
8,
|
|
1301
|
-
0
|
|
1302
|
-
];
|
|
1303
|
-
var IdToken = [
|
|
1304
|
-
0,
|
|
1305
|
-
n0,
|
|
1306
|
-
_IT,
|
|
1307
|
-
8,
|
|
1308
|
-
0
|
|
1309
|
-
];
|
|
1310
|
-
var RefreshToken = [
|
|
1311
|
-
0,
|
|
1312
|
-
n0,
|
|
1313
|
-
_RT,
|
|
1314
|
-
8,
|
|
1315
|
-
0
|
|
1316
|
-
];
|
|
1317
|
-
var CreateTokenRequest$ = [
|
|
1318
|
-
3,
|
|
1319
|
-
n0,
|
|
1320
|
-
_CTR,
|
|
1321
|
-
0,
|
|
1322
|
-
[
|
|
1323
|
-
_cI,
|
|
1324
|
-
_cS,
|
|
1325
|
-
_gT,
|
|
1326
|
-
_dC,
|
|
1327
|
-
_co,
|
|
1328
|
-
_rT,
|
|
1329
|
-
_sc,
|
|
1330
|
-
_rU,
|
|
1331
|
-
_cV
|
|
1332
|
-
],
|
|
1333
|
-
[
|
|
1334
|
-
0,
|
|
1335
|
-
[() => ClientSecret, 0],
|
|
1336
|
-
0,
|
|
1337
|
-
0,
|
|
1338
|
-
0,
|
|
1339
|
-
[() => RefreshToken, 0],
|
|
1340
|
-
64,
|
|
1341
|
-
0,
|
|
1342
|
-
[() => CodeVerifier, 0]
|
|
1343
|
-
],
|
|
1344
|
-
3
|
|
1345
|
-
];
|
|
1346
|
-
var CreateTokenResponse$ = [
|
|
1347
|
-
3,
|
|
1348
|
-
n0,
|
|
1349
|
-
_CTRr,
|
|
1350
|
-
0,
|
|
1351
|
-
[
|
|
1352
|
-
_aT,
|
|
1353
|
-
_tT,
|
|
1354
|
-
_eI,
|
|
1355
|
-
_rT,
|
|
1356
|
-
_iT
|
|
1357
|
-
],
|
|
1358
|
-
[
|
|
1359
|
-
[() => AccessToken, 0],
|
|
1360
|
-
0,
|
|
1361
|
-
1,
|
|
1362
|
-
[() => RefreshToken, 0],
|
|
1363
|
-
[() => IdToken, 0]
|
|
1364
|
-
]
|
|
1365
|
-
];
|
|
1366
|
-
var CreateToken$ = [
|
|
1367
|
-
9,
|
|
1368
|
-
n0,
|
|
1369
|
-
_CT,
|
|
1370
|
-
{ [_h]: [
|
|
1371
|
-
"POST",
|
|
1372
|
-
"/token",
|
|
1373
|
-
200
|
|
1374
|
-
] },
|
|
1375
|
-
() => CreateTokenRequest$,
|
|
1376
|
-
() => CreateTokenResponse$
|
|
1377
|
-
];
|
|
1378
|
-
var getRuntimeConfig$1 = (config) => {
|
|
1379
|
-
return {
|
|
1380
|
-
apiVersion: "2019-06-10",
|
|
1381
|
-
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
1382
|
-
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
1383
|
-
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
1384
|
-
endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
|
|
1385
|
-
extensions: config?.extensions ?? [],
|
|
1386
|
-
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultSSOOIDCHttpAuthSchemeProvider,
|
|
1387
|
-
httpAuthSchemes: config?.httpAuthSchemes ?? [{
|
|
1388
|
-
schemeId: "aws.auth#sigv4",
|
|
1389
|
-
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
|
1390
|
-
signer: new AwsSdkSigV4Signer()
|
|
1391
|
-
}, {
|
|
1392
|
-
schemeId: "smithy.api#noAuth",
|
|
1393
|
-
identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})),
|
|
1394
|
-
signer: new NoAuthSigner()
|
|
1395
|
-
}],
|
|
1396
|
-
logger: config?.logger ?? new NoOpLogger(),
|
|
1397
|
-
protocol: config?.protocol ?? AwsRestJsonProtocol,
|
|
1398
|
-
protocolSettings: config?.protocolSettings ?? {
|
|
1399
|
-
defaultNamespace: "com.amazonaws.ssooidc",
|
|
1400
|
-
errorTypeRegistries,
|
|
1401
|
-
version: "2019-06-10",
|
|
1402
|
-
serviceTarget: "AWSSSOOIDCService"
|
|
1403
|
-
},
|
|
1404
|
-
serviceId: config?.serviceId ?? "SSO OIDC",
|
|
1405
|
-
urlParser: config?.urlParser ?? parseUrl,
|
|
1406
|
-
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
1407
|
-
utf8Encoder: config?.utf8Encoder ?? toUtf8
|
|
1408
|
-
};
|
|
1409
|
-
};
|
|
1410
|
-
var getRuntimeConfig = (config) => {
|
|
1411
|
-
emitWarningIfUnsupportedVersion(process.version);
|
|
1412
|
-
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
1413
|
-
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
1414
|
-
const clientSharedValues = getRuntimeConfig$1(config);
|
|
1415
|
-
emitWarningIfUnsupportedVersion$1(process.version);
|
|
1416
|
-
const loaderConfig = {
|
|
1417
|
-
profile: config?.profile,
|
|
1418
|
-
logger: clientSharedValues.logger
|
|
1419
|
-
};
|
|
1420
|
-
return {
|
|
1421
|
-
...clientSharedValues,
|
|
1422
|
-
...config,
|
|
1423
|
-
runtime: "node",
|
|
1424
|
-
defaultsMode,
|
|
1425
|
-
authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
|
|
1426
|
-
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
1427
|
-
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({
|
|
1428
|
-
serviceId: clientSharedValues.serviceId,
|
|
1429
|
-
clientVersion: packageInfo.version
|
|
1430
|
-
}),
|
|
1431
|
-
maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
|
1432
|
-
region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, {
|
|
1433
|
-
...NODE_REGION_CONFIG_FILE_OPTIONS,
|
|
1434
|
-
...loaderConfig
|
|
1435
|
-
}),
|
|
1436
|
-
requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
1437
|
-
retryMode: config?.retryMode ?? loadConfig({
|
|
1438
|
-
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
1439
|
-
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE
|
|
1440
|
-
}, config),
|
|
1441
|
-
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
1442
|
-
streamCollector: config?.streamCollector ?? streamCollector,
|
|
1443
|
-
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
1444
|
-
useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
1445
|
-
userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig)
|
|
1446
|
-
};
|
|
1447
|
-
};
|
|
1448
|
-
var getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
1449
|
-
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
1450
|
-
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
1451
|
-
let _credentials = runtimeConfig.credentials;
|
|
1452
|
-
return {
|
|
1453
|
-
setHttpAuthScheme(httpAuthScheme) {
|
|
1454
|
-
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
1455
|
-
if (index === -1) _httpAuthSchemes.push(httpAuthScheme);
|
|
1456
|
-
else _httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
|
1457
|
-
},
|
|
1458
|
-
httpAuthSchemes() {
|
|
1459
|
-
return _httpAuthSchemes;
|
|
1460
|
-
},
|
|
1461
|
-
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
|
1462
|
-
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
|
1463
|
-
},
|
|
1464
|
-
httpAuthSchemeProvider() {
|
|
1465
|
-
return _httpAuthSchemeProvider;
|
|
1466
|
-
},
|
|
1467
|
-
setCredentials(credentials) {
|
|
1468
|
-
_credentials = credentials;
|
|
1469
|
-
},
|
|
1470
|
-
credentials() {
|
|
1471
|
-
return _credentials;
|
|
1472
|
-
}
|
|
1473
|
-
};
|
|
1474
|
-
};
|
|
1475
|
-
var resolveHttpAuthRuntimeConfig = (config) => {
|
|
1476
|
-
return {
|
|
1477
|
-
httpAuthSchemes: config.httpAuthSchemes(),
|
|
1478
|
-
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
1479
|
-
credentials: config.credentials()
|
|
1480
|
-
};
|
|
1481
|
-
};
|
|
1482
|
-
var resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
1483
|
-
const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
1484
|
-
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
1485
|
-
return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
1486
|
-
};
|
|
1487
|
-
var SSOOIDCClient = class extends Client {
|
|
1488
|
-
config;
|
|
1489
|
-
constructor(...[configuration]) {
|
|
1490
|
-
const _config_0 = getRuntimeConfig(configuration || {});
|
|
1491
|
-
super(_config_0);
|
|
1492
|
-
this.initConfig = _config_0;
|
|
1493
|
-
const _config_8 = resolveRuntimeExtensions(resolveHttpAuthSchemeConfig(resolveEndpointConfig(resolveHostHeaderConfig(resolveRegionConfig(resolveRetryConfig(resolveUserAgentConfig(resolveClientEndpointParameters(_config_0))))))), configuration?.extensions || []);
|
|
1494
|
-
this.config = _config_8;
|
|
1495
|
-
this.middlewareStack.use(getSchemaSerdePlugin(this.config));
|
|
1496
|
-
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
1497
|
-
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
1498
|
-
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
1499
|
-
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
1500
|
-
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
1501
|
-
this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
|
|
1502
|
-
this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
1503
|
-
httpAuthSchemeParametersProvider: defaultSSOOIDCHttpAuthSchemeParametersProvider,
|
|
1504
|
-
identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({ "aws.auth#sigv4": config.credentials })
|
|
1505
|
-
}));
|
|
1506
|
-
this.middlewareStack.use(getHttpSigningPlugin(this.config));
|
|
1507
|
-
}
|
|
1508
|
-
destroy() {
|
|
1509
|
-
super.destroy();
|
|
1510
|
-
}
|
|
1511
|
-
};
|
|
1512
|
-
var CreateTokenCommand = class extends Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1513
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
1514
|
-
}).s("AWSSSOOIDCService", "CreateToken", {}).n("SSOOIDCClient", "CreateTokenCommand").sc(CreateToken$).build() {};
|
|
1515
|
-
var commands = { CreateTokenCommand };
|
|
1516
|
-
var SSOOIDC = class extends SSOOIDCClient {};
|
|
1517
|
-
createAggregatedClient(commands, SSOOIDC);
|
|
1518
|
-
var AccessDeniedExceptionReason = { KMS_ACCESS_DENIED: "KMS_AccessDeniedException" };
|
|
1519
|
-
var InvalidRequestExceptionReason = {
|
|
1520
|
-
KMS_DISABLED_KEY: "KMS_DisabledException",
|
|
1521
|
-
KMS_INVALID_KEY_USAGE: "KMS_InvalidKeyUsageException",
|
|
1522
|
-
KMS_INVALID_STATE: "KMS_InvalidStateException",
|
|
1523
|
-
KMS_KEY_NOT_FOUND: "KMS_NotFoundException"
|
|
1524
|
-
};
|
|
1525
|
-
exports.AccessDeniedException = AccessDeniedException;
|
|
1526
|
-
exports.AccessDeniedException$ = AccessDeniedException$;
|
|
1527
|
-
exports.AccessDeniedExceptionReason = AccessDeniedExceptionReason;
|
|
1528
|
-
exports.AuthorizationPendingException = AuthorizationPendingException;
|
|
1529
|
-
exports.AuthorizationPendingException$ = AuthorizationPendingException$;
|
|
1530
|
-
exports.CreateToken$ = CreateToken$;
|
|
1531
|
-
exports.CreateTokenCommand = CreateTokenCommand;
|
|
1532
|
-
exports.CreateTokenRequest$ = CreateTokenRequest$;
|
|
1533
|
-
exports.CreateTokenResponse$ = CreateTokenResponse$;
|
|
1534
|
-
exports.ExpiredTokenException = ExpiredTokenException;
|
|
1535
|
-
exports.ExpiredTokenException$ = ExpiredTokenException$;
|
|
1536
|
-
exports.InternalServerException = InternalServerException;
|
|
1537
|
-
exports.InternalServerException$ = InternalServerException$;
|
|
1538
|
-
exports.InvalidClientException = InvalidClientException;
|
|
1539
|
-
exports.InvalidClientException$ = InvalidClientException$;
|
|
1540
|
-
exports.InvalidGrantException = InvalidGrantException;
|
|
1541
|
-
exports.InvalidGrantException$ = InvalidGrantException$;
|
|
1542
|
-
exports.InvalidRequestException = InvalidRequestException;
|
|
1543
|
-
exports.InvalidRequestException$ = InvalidRequestException$;
|
|
1544
|
-
exports.InvalidRequestExceptionReason = InvalidRequestExceptionReason;
|
|
1545
|
-
exports.InvalidScopeException = InvalidScopeException;
|
|
1546
|
-
exports.InvalidScopeException$ = InvalidScopeException$;
|
|
1547
|
-
exports.SSOOIDC = SSOOIDC;
|
|
1548
|
-
exports.SSOOIDCClient = SSOOIDCClient;
|
|
1549
|
-
exports.SSOOIDCServiceException = SSOOIDCServiceException;
|
|
1550
|
-
exports.SSOOIDCServiceException$ = SSOOIDCServiceException$;
|
|
1551
|
-
exports.SlowDownException = SlowDownException;
|
|
1552
|
-
exports.SlowDownException$ = SlowDownException$;
|
|
1553
|
-
exports.UnauthorizedClientException = UnauthorizedClientException;
|
|
1554
|
-
exports.UnauthorizedClientException$ = UnauthorizedClientException$;
|
|
1555
|
-
exports.UnsupportedGrantTypeException = UnsupportedGrantTypeException;
|
|
1556
|
-
exports.UnsupportedGrantTypeException$ = UnsupportedGrantTypeException$;
|
|
1557
|
-
exports.errorTypeRegistries = errorTypeRegistries;
|
|
1558
|
-
}));
|
|
1559
|
-
//#endregion
|
|
1560
|
-
//#region ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.997.23/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js
|
|
1561
|
-
var require_sts = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
1562
|
-
var { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin, setCredentialFeature, stsRegionDefaultResolver } = require_client();
|
|
1563
|
-
var { NoAuthSigner, getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin } = require_dist_cjs();
|
|
1564
|
-
var { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require_client$1();
|
|
1565
|
-
exports.$Command = Command;
|
|
1566
|
-
exports.__Client = Client;
|
|
1567
|
-
var { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require_config();
|
|
1568
|
-
var { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveParams, resolveEndpointConfig, getEndpointPlugin } = require_endpoints();
|
|
1569
|
-
var { parseUrl, getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require_protocols();
|
|
1570
|
-
var { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, resolveRetryConfig, getRetryPlugin } = require_retry();
|
|
1571
|
-
var { TypeRegistry, getSchemaSerdePlugin } = require_schema();
|
|
1572
|
-
var { resolveAwsSdkSigV4Config, resolveAwsSdkSigV4AConfig, AwsSdkSigV4Signer, AwsSdkSigV4ASigner, NODE_SIGV4A_CONFIG_OPTIONS, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require_httpAuthSchemes();
|
|
1573
|
-
var { SignatureV4MultiRegion } = (init_dist_es$1(), __toCommonJS(dist_es_exports$1));
|
|
1574
|
-
var { toUtf8, fromUtf8, toBase64, fromBase64, Hash, calculateBodyLength } = require_serde();
|
|
1575
|
-
var { streamCollector, NodeHttpHandler } = (init_dist_es(), __toCommonJS(dist_es_exports));
|
|
1576
|
-
var { AwsQueryProtocol } = require_protocols$1();
|
|
1577
|
-
var q = "ref";
|
|
1578
|
-
var a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "stringEquals", g = "getAttr", h = "us-east-1", i = "sigv4", j = "sts", k = "https://sts.{Region}.{PartitionResult#dnsSuffix}", l = { [q]: "Endpoint" }, m = { [q]: "Region" }, n = { [q]: d }, o = {}, p = [m];
|
|
1579
|
-
var _data = {
|
|
1580
|
-
conditions: [
|
|
1581
|
-
[c, [l]],
|
|
1582
|
-
[c, p],
|
|
1583
|
-
[
|
|
1584
|
-
"aws.partition",
|
|
1585
|
-
p,
|
|
1586
|
-
d
|
|
1587
|
-
],
|
|
1588
|
-
[e, [{ [q]: "UseFIPS" }, b]],
|
|
1589
|
-
[e, [{ [q]: "UseDualStack" }, b]],
|
|
1590
|
-
[f, [m, "aws-global"]],
|
|
1591
|
-
[e, [{ [q]: "UseGlobalEndpoint" }, b]],
|
|
1592
|
-
[f, [m, "eu-central-1"]],
|
|
1593
|
-
[e, [{
|
|
1594
|
-
fn: g,
|
|
1595
|
-
argv: [n, "supportsDualStack"]
|
|
1596
|
-
}, b]],
|
|
1597
|
-
[e, [{
|
|
1598
|
-
fn: g,
|
|
1599
|
-
argv: [n, "supportsFIPS"]
|
|
1600
|
-
}, b]],
|
|
1601
|
-
[f, [m, "ap-south-1"]],
|
|
1602
|
-
[f, [m, "eu-north-1"]],
|
|
1603
|
-
[f, [m, "eu-west-1"]],
|
|
1604
|
-
[f, [m, "eu-west-2"]],
|
|
1605
|
-
[f, [m, "eu-west-3"]],
|
|
1606
|
-
[f, [m, "sa-east-1"]],
|
|
1607
|
-
[f, [m, h]],
|
|
1608
|
-
[f, [m, "us-east-2"]],
|
|
1609
|
-
[f, [m, "us-west-2"]],
|
|
1610
|
-
[f, [m, "us-west-1"]],
|
|
1611
|
-
[f, [m, "ca-central-1"]],
|
|
1612
|
-
[f, [m, "ap-southeast-1"]],
|
|
1613
|
-
[f, [m, "ap-northeast-1"]],
|
|
1614
|
-
[f, [m, "ap-southeast-2"]],
|
|
1615
|
-
[f, [{
|
|
1616
|
-
fn: g,
|
|
1617
|
-
argv: [n, "name"]
|
|
1618
|
-
}, "aws-us-gov"]]
|
|
1619
|
-
],
|
|
1620
|
-
results: [
|
|
1621
|
-
[a],
|
|
1622
|
-
["https://sts.amazonaws.com", { authSchemes: [{
|
|
1623
|
-
name: i,
|
|
1624
|
-
signingName: j,
|
|
1625
|
-
signingRegion: h
|
|
1626
|
-
}] }],
|
|
1627
|
-
[k, { authSchemes: [{
|
|
1628
|
-
name: i,
|
|
1629
|
-
signingName: j,
|
|
1630
|
-
signingRegion: "{Region}"
|
|
1631
|
-
}] }],
|
|
1632
|
-
[a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
|
|
1633
|
-
[a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
|
|
1634
|
-
[l, o],
|
|
1635
|
-
["https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", o],
|
|
1636
|
-
[a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
|
|
1637
|
-
["https://sts.{Region}.amazonaws.com", o],
|
|
1638
|
-
["https://sts-fips.{Region}.{PartitionResult#dnsSuffix}", o],
|
|
1639
|
-
[a, "FIPS is enabled but this partition does not support FIPS"],
|
|
1640
|
-
["https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}", o],
|
|
1641
|
-
[a, "DualStack is enabled but this partition does not support DualStack"],
|
|
1642
|
-
[k, o],
|
|
1643
|
-
[a, "Invalid Configuration: Missing Region"]
|
|
1644
|
-
]
|
|
1645
|
-
};
|
|
1646
|
-
var root = 2;
|
|
1647
|
-
var nodes = new Int32Array([
|
|
1648
|
-
-1,
|
|
1649
|
-
1,
|
|
1650
|
-
-1,
|
|
1651
|
-
0,
|
|
1652
|
-
30,
|
|
1653
|
-
3,
|
|
1654
|
-
1,
|
|
1655
|
-
4,
|
|
1656
|
-
100000014,
|
|
1657
|
-
2,
|
|
1658
|
-
5,
|
|
1659
|
-
100000014,
|
|
1660
|
-
3,
|
|
1661
|
-
25,
|
|
1662
|
-
6,
|
|
1663
|
-
4,
|
|
1664
|
-
24,
|
|
1665
|
-
7,
|
|
1666
|
-
5,
|
|
1667
|
-
100000001,
|
|
1668
|
-
8,
|
|
1669
|
-
6,
|
|
1670
|
-
9,
|
|
1671
|
-
100000013,
|
|
1672
|
-
7,
|
|
1673
|
-
100000001,
|
|
1674
|
-
10,
|
|
1675
|
-
10,
|
|
1676
|
-
100000001,
|
|
1677
|
-
11,
|
|
1678
|
-
11,
|
|
1679
|
-
100000001,
|
|
1680
|
-
12,
|
|
1681
|
-
12,
|
|
1682
|
-
100000001,
|
|
1683
|
-
13,
|
|
1684
|
-
13,
|
|
1685
|
-
100000001,
|
|
1686
|
-
14,
|
|
1687
|
-
14,
|
|
1688
|
-
100000001,
|
|
1689
|
-
15,
|
|
1690
|
-
15,
|
|
1691
|
-
100000001,
|
|
1692
|
-
16,
|
|
1693
|
-
16,
|
|
1694
|
-
100000001,
|
|
1695
|
-
17,
|
|
1696
|
-
17,
|
|
1697
|
-
100000001,
|
|
1698
|
-
18,
|
|
1699
|
-
18,
|
|
1700
|
-
100000001,
|
|
1701
|
-
19,
|
|
1702
|
-
19,
|
|
1703
|
-
100000001,
|
|
1704
|
-
20,
|
|
1705
|
-
20,
|
|
1706
|
-
100000001,
|
|
1707
|
-
21,
|
|
1708
|
-
21,
|
|
1709
|
-
100000001,
|
|
1710
|
-
22,
|
|
1711
|
-
22,
|
|
1712
|
-
100000001,
|
|
1713
|
-
23,
|
|
1714
|
-
23,
|
|
1715
|
-
100000001,
|
|
1716
|
-
100000002,
|
|
1717
|
-
8,
|
|
1718
|
-
100000011,
|
|
1719
|
-
100000012,
|
|
1720
|
-
4,
|
|
1721
|
-
28,
|
|
1722
|
-
26,
|
|
1723
|
-
9,
|
|
1724
|
-
27,
|
|
1725
|
-
100000010,
|
|
1726
|
-
24,
|
|
1727
|
-
100000008,
|
|
1728
|
-
100000009,
|
|
1729
|
-
8,
|
|
1730
|
-
29,
|
|
1731
|
-
100000007,
|
|
1732
|
-
9,
|
|
1733
|
-
100000006,
|
|
1734
|
-
100000007,
|
|
1735
|
-
3,
|
|
1736
|
-
100000003,
|
|
1737
|
-
31,
|
|
1738
|
-
4,
|
|
1739
|
-
100000004,
|
|
1740
|
-
100000005
|
|
1741
|
-
]);
|
|
1742
|
-
var bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
|
|
1743
|
-
var cache = new EndpointCache({
|
|
1744
|
-
size: 50,
|
|
1745
|
-
params: [
|
|
1746
|
-
"Endpoint",
|
|
1747
|
-
"Region",
|
|
1748
|
-
"UseDualStack",
|
|
1749
|
-
"UseFIPS",
|
|
1750
|
-
"UseGlobalEndpoint"
|
|
1751
|
-
]
|
|
1752
|
-
});
|
|
1753
|
-
var defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
1754
|
-
return cache.get(endpointParams, () => decideEndpoint(bdd, {
|
|
1755
|
-
endpointParams,
|
|
1756
|
-
logger: context.logger
|
|
1757
|
-
}));
|
|
1758
|
-
};
|
|
1759
|
-
customEndpointFunctions.aws = awsEndpointFunctions;
|
|
1760
|
-
var createEndpointRuleSetHttpAuthSchemeParametersProvider = (defaultHttpAuthSchemeParametersProvider) => async (config, context, input) => {
|
|
1761
|
-
if (!input) throw new Error("Could not find `input` for `defaultEndpointRuleSetHttpAuthSchemeParametersProvider`");
|
|
1762
|
-
const defaultParameters = await defaultHttpAuthSchemeParametersProvider(config, context, input);
|
|
1763
|
-
const instructionsFn = getSmithyContext(context)?.commandInstance?.constructor?.getEndpointParameterInstructions;
|
|
1764
|
-
if (!instructionsFn) throw new Error(`getEndpointParameterInstructions() is not defined on '${context.commandName}'`);
|
|
1765
|
-
const endpointParameters = await resolveParams(input, { getEndpointParameterInstructions: instructionsFn }, config);
|
|
1766
|
-
return Object.assign(defaultParameters, endpointParameters);
|
|
1767
|
-
};
|
|
1768
|
-
var _defaultSTSHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
1769
|
-
return {
|
|
1770
|
-
operation: getSmithyContext(context).operation,
|
|
1771
|
-
region: await normalizeProvider(config.region)() || (() => {
|
|
1772
|
-
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
|
1773
|
-
})()
|
|
1774
|
-
};
|
|
1775
|
-
};
|
|
1776
|
-
var defaultSTSHttpAuthSchemeParametersProvider = createEndpointRuleSetHttpAuthSchemeParametersProvider(_defaultSTSHttpAuthSchemeParametersProvider);
|
|
1777
|
-
function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
|
1778
|
-
return {
|
|
1779
|
-
schemeId: "aws.auth#sigv4",
|
|
1780
|
-
signingProperties: {
|
|
1781
|
-
name: "sts",
|
|
1782
|
-
region: authParameters.region
|
|
1783
|
-
},
|
|
1784
|
-
propertiesExtractor: (config, context) => ({ signingProperties: {
|
|
1785
|
-
config,
|
|
1786
|
-
context
|
|
1787
|
-
} })
|
|
1788
|
-
};
|
|
1789
|
-
}
|
|
1790
|
-
function createAwsAuthSigv4aHttpAuthOption(authParameters) {
|
|
1791
|
-
return {
|
|
1792
|
-
schemeId: "aws.auth#sigv4a",
|
|
1793
|
-
signingProperties: {
|
|
1794
|
-
name: "sts",
|
|
1795
|
-
region: authParameters.region
|
|
1796
|
-
},
|
|
1797
|
-
propertiesExtractor: (config, context) => ({ signingProperties: {
|
|
1798
|
-
config,
|
|
1799
|
-
context
|
|
1800
|
-
} })
|
|
1801
|
-
};
|
|
1802
|
-
}
|
|
1803
|
-
function createSmithyApiNoAuthHttpAuthOption(authParameters) {
|
|
1804
|
-
return { schemeId: "smithy.api#noAuth" };
|
|
1805
|
-
}
|
|
1806
|
-
var createEndpointRuleSetHttpAuthSchemeProvider = (defaultEndpointResolver, defaultHttpAuthSchemeResolver, createHttpAuthOptionFunctions) => {
|
|
1807
|
-
const endpointRuleSetHttpAuthSchemeProvider = (authParameters) => {
|
|
1808
|
-
const authSchemes = defaultEndpointResolver(authParameters).properties?.authSchemes;
|
|
1809
|
-
if (!authSchemes) return defaultHttpAuthSchemeResolver(authParameters);
|
|
1810
|
-
const options = [];
|
|
1811
|
-
for (const scheme of authSchemes) {
|
|
1812
|
-
const { name: resolvedName, properties = {}, ...rest } = scheme;
|
|
1813
|
-
const name = resolvedName.toLowerCase();
|
|
1814
|
-
if (resolvedName !== name) console.warn(`HttpAuthScheme has been normalized with lowercasing: '${resolvedName}' to '${name}'`);
|
|
1815
|
-
let schemeId;
|
|
1816
|
-
if (name === "sigv4a") {
|
|
1817
|
-
schemeId = "aws.auth#sigv4a";
|
|
1818
|
-
const sigv4Present = authSchemes.find((s) => {
|
|
1819
|
-
const name = s.name.toLowerCase();
|
|
1820
|
-
return name !== "sigv4a" && name.startsWith("sigv4");
|
|
1821
|
-
});
|
|
1822
|
-
if (SignatureV4MultiRegion.sigv4aDependency() === "none" && sigv4Present) continue;
|
|
1823
|
-
} else if (name.startsWith("sigv4")) schemeId = "aws.auth#sigv4";
|
|
1824
|
-
else throw new Error(`Unknown HttpAuthScheme found in '@smithy.rules#endpointRuleSet': '${name}'`);
|
|
1825
|
-
const createOption = createHttpAuthOptionFunctions[schemeId];
|
|
1826
|
-
if (!createOption) throw new Error(`Could not find HttpAuthOption create function for '${schemeId}'`);
|
|
1827
|
-
const option = createOption(authParameters);
|
|
1828
|
-
option.schemeId = schemeId;
|
|
1829
|
-
option.signingProperties = {
|
|
1830
|
-
...option.signingProperties || {},
|
|
1831
|
-
...rest,
|
|
1832
|
-
...properties
|
|
1833
|
-
};
|
|
1834
|
-
options.push(option);
|
|
1835
|
-
}
|
|
1836
|
-
return options;
|
|
1837
|
-
};
|
|
1838
|
-
return endpointRuleSetHttpAuthSchemeProvider;
|
|
1839
|
-
};
|
|
1840
|
-
var _defaultSTSHttpAuthSchemeProvider = (authParameters) => {
|
|
1841
|
-
const options = [];
|
|
1842
|
-
switch (authParameters.operation) {
|
|
1843
|
-
case "AssumeRoleWithWebIdentity":
|
|
1844
|
-
options.push(createSmithyApiNoAuthHttpAuthOption());
|
|
1845
|
-
options.push(createAwsAuthSigv4aHttpAuthOption(authParameters));
|
|
1846
|
-
break;
|
|
1847
|
-
default:
|
|
1848
|
-
options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
|
|
1849
|
-
options.push(createAwsAuthSigv4aHttpAuthOption(authParameters));
|
|
1850
|
-
}
|
|
1851
|
-
return options;
|
|
1852
|
-
};
|
|
1853
|
-
var defaultSTSHttpAuthSchemeProvider = createEndpointRuleSetHttpAuthSchemeProvider(defaultEndpointResolver, _defaultSTSHttpAuthSchemeProvider, {
|
|
1854
|
-
"aws.auth#sigv4": createAwsAuthSigv4HttpAuthOption,
|
|
1855
|
-
"aws.auth#sigv4a": createAwsAuthSigv4aHttpAuthOption,
|
|
1856
|
-
"smithy.api#noAuth": createSmithyApiNoAuthHttpAuthOption
|
|
1857
|
-
});
|
|
1858
|
-
var resolveHttpAuthSchemeConfig = (config) => {
|
|
1859
|
-
const config_1 = resolveAwsSdkSigV4AConfig(resolveAwsSdkSigV4Config(config));
|
|
1860
|
-
return Object.assign(config_1, { authSchemePreference: normalizeProvider(config.authSchemePreference ?? []) });
|
|
1861
|
-
};
|
|
1862
|
-
var resolveClientEndpointParameters = (options) => {
|
|
1863
|
-
return Object.assign(options, {
|
|
1864
|
-
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
1865
|
-
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
1866
|
-
useGlobalEndpoint: options.useGlobalEndpoint ?? false,
|
|
1867
|
-
defaultSigningName: "sts"
|
|
1868
|
-
});
|
|
1869
|
-
};
|
|
1870
|
-
var commonParams = {
|
|
1871
|
-
UseGlobalEndpoint: {
|
|
1872
|
-
type: "builtInParams",
|
|
1873
|
-
name: "useGlobalEndpoint"
|
|
1874
|
-
},
|
|
1875
|
-
UseFIPS: {
|
|
1876
|
-
type: "builtInParams",
|
|
1877
|
-
name: "useFipsEndpoint"
|
|
1878
|
-
},
|
|
1879
|
-
Endpoint: {
|
|
1880
|
-
type: "builtInParams",
|
|
1881
|
-
name: "endpoint"
|
|
1882
|
-
},
|
|
1883
|
-
Region: {
|
|
1884
|
-
type: "builtInParams",
|
|
1885
|
-
name: "region"
|
|
1886
|
-
},
|
|
1887
|
-
UseDualStack: {
|
|
1888
|
-
type: "builtInParams",
|
|
1889
|
-
name: "useDualstackEndpoint"
|
|
1890
|
-
}
|
|
1891
|
-
};
|
|
1892
|
-
var packageInfo = { version: "3.997.22" };
|
|
1893
|
-
var STSServiceException = class STSServiceException extends ServiceException {
|
|
1894
|
-
constructor(options) {
|
|
1895
|
-
super(options);
|
|
1896
|
-
Object.setPrototypeOf(this, STSServiceException.prototype);
|
|
1897
|
-
}
|
|
1898
|
-
};
|
|
1899
|
-
var ExpiredTokenException = class ExpiredTokenException extends STSServiceException {
|
|
1900
|
-
name = "ExpiredTokenException";
|
|
1901
|
-
$fault = "client";
|
|
1902
|
-
constructor(opts) {
|
|
1903
|
-
super({
|
|
1904
|
-
name: "ExpiredTokenException",
|
|
1905
|
-
$fault: "client",
|
|
1906
|
-
...opts
|
|
1907
|
-
});
|
|
1908
|
-
Object.setPrototypeOf(this, ExpiredTokenException.prototype);
|
|
1909
|
-
}
|
|
1910
|
-
};
|
|
1911
|
-
var MalformedPolicyDocumentException = class MalformedPolicyDocumentException extends STSServiceException {
|
|
1912
|
-
name = "MalformedPolicyDocumentException";
|
|
1913
|
-
$fault = "client";
|
|
1914
|
-
constructor(opts) {
|
|
1915
|
-
super({
|
|
1916
|
-
name: "MalformedPolicyDocumentException",
|
|
1917
|
-
$fault: "client",
|
|
1918
|
-
...opts
|
|
1919
|
-
});
|
|
1920
|
-
Object.setPrototypeOf(this, MalformedPolicyDocumentException.prototype);
|
|
1921
|
-
}
|
|
1922
|
-
};
|
|
1923
|
-
var PackedPolicyTooLargeException = class PackedPolicyTooLargeException extends STSServiceException {
|
|
1924
|
-
name = "PackedPolicyTooLargeException";
|
|
1925
|
-
$fault = "client";
|
|
1926
|
-
constructor(opts) {
|
|
1927
|
-
super({
|
|
1928
|
-
name: "PackedPolicyTooLargeException",
|
|
1929
|
-
$fault: "client",
|
|
1930
|
-
...opts
|
|
1931
|
-
});
|
|
1932
|
-
Object.setPrototypeOf(this, PackedPolicyTooLargeException.prototype);
|
|
1933
|
-
}
|
|
1934
|
-
};
|
|
1935
|
-
var RegionDisabledException = class RegionDisabledException extends STSServiceException {
|
|
1936
|
-
name = "RegionDisabledException";
|
|
1937
|
-
$fault = "client";
|
|
1938
|
-
constructor(opts) {
|
|
1939
|
-
super({
|
|
1940
|
-
name: "RegionDisabledException",
|
|
1941
|
-
$fault: "client",
|
|
1942
|
-
...opts
|
|
1943
|
-
});
|
|
1944
|
-
Object.setPrototypeOf(this, RegionDisabledException.prototype);
|
|
1945
|
-
}
|
|
1946
|
-
};
|
|
1947
|
-
var IDPRejectedClaimException = class IDPRejectedClaimException extends STSServiceException {
|
|
1948
|
-
name = "IDPRejectedClaimException";
|
|
1949
|
-
$fault = "client";
|
|
1950
|
-
constructor(opts) {
|
|
1951
|
-
super({
|
|
1952
|
-
name: "IDPRejectedClaimException",
|
|
1953
|
-
$fault: "client",
|
|
1954
|
-
...opts
|
|
1955
|
-
});
|
|
1956
|
-
Object.setPrototypeOf(this, IDPRejectedClaimException.prototype);
|
|
1957
|
-
}
|
|
1958
|
-
};
|
|
1959
|
-
var InvalidIdentityTokenException = class InvalidIdentityTokenException extends STSServiceException {
|
|
1960
|
-
name = "InvalidIdentityTokenException";
|
|
1961
|
-
$fault = "client";
|
|
1962
|
-
constructor(opts) {
|
|
1963
|
-
super({
|
|
1964
|
-
name: "InvalidIdentityTokenException",
|
|
1965
|
-
$fault: "client",
|
|
1966
|
-
...opts
|
|
1967
|
-
});
|
|
1968
|
-
Object.setPrototypeOf(this, InvalidIdentityTokenException.prototype);
|
|
1969
|
-
}
|
|
1970
|
-
};
|
|
1971
|
-
var IDPCommunicationErrorException = class IDPCommunicationErrorException extends STSServiceException {
|
|
1972
|
-
name = "IDPCommunicationErrorException";
|
|
1973
|
-
$fault = "client";
|
|
1974
|
-
$retryable = {};
|
|
1975
|
-
constructor(opts) {
|
|
1976
|
-
super({
|
|
1977
|
-
name: "IDPCommunicationErrorException",
|
|
1978
|
-
$fault: "client",
|
|
1979
|
-
...opts
|
|
1980
|
-
});
|
|
1981
|
-
Object.setPrototypeOf(this, IDPCommunicationErrorException.prototype);
|
|
1982
|
-
}
|
|
1983
|
-
};
|
|
1984
|
-
var _A = "Arn";
|
|
1985
|
-
var _AKI = "AccessKeyId";
|
|
1986
|
-
var _AR = "AssumeRole";
|
|
1987
|
-
var _ARI = "AssumedRoleId";
|
|
1988
|
-
var _ARR = "AssumeRoleRequest";
|
|
1989
|
-
var _ARRs = "AssumeRoleResponse";
|
|
1990
|
-
var _ARU = "AssumedRoleUser";
|
|
1991
|
-
var _ARWWI = "AssumeRoleWithWebIdentity";
|
|
1992
|
-
var _ARWWIR = "AssumeRoleWithWebIdentityRequest";
|
|
1993
|
-
var _ARWWIRs = "AssumeRoleWithWebIdentityResponse";
|
|
1994
|
-
var _Au = "Audience";
|
|
1995
|
-
var _C = "Credentials";
|
|
1996
|
-
var _CA = "ContextAssertion";
|
|
1997
|
-
var _DS = "DurationSeconds";
|
|
1998
|
-
var _E = "Expiration";
|
|
1999
|
-
var _EI = "ExternalId";
|
|
2000
|
-
var _ETE = "ExpiredTokenException";
|
|
2001
|
-
var _IDPCEE = "IDPCommunicationErrorException";
|
|
2002
|
-
var _IDPRCE = "IDPRejectedClaimException";
|
|
2003
|
-
var _IITE = "InvalidIdentityTokenException";
|
|
2004
|
-
var _K = "Key";
|
|
2005
|
-
var _MPDE = "MalformedPolicyDocumentException";
|
|
2006
|
-
var _P = "Policy";
|
|
2007
|
-
var _PA = "PolicyArns";
|
|
2008
|
-
var _PAr = "ProviderArn";
|
|
2009
|
-
var _PC = "ProvidedContexts";
|
|
2010
|
-
var _PCLT = "ProvidedContextsListType";
|
|
2011
|
-
var _PCr = "ProvidedContext";
|
|
2012
|
-
var _PDT = "PolicyDescriptorType";
|
|
2013
|
-
var _PI = "ProviderId";
|
|
2014
|
-
var _PPS = "PackedPolicySize";
|
|
2015
|
-
var _PPTLE = "PackedPolicyTooLargeException";
|
|
2016
|
-
var _Pr = "Provider";
|
|
2017
|
-
var _RA = "RoleArn";
|
|
2018
|
-
var _RDE = "RegionDisabledException";
|
|
2019
|
-
var _RSN = "RoleSessionName";
|
|
2020
|
-
var _SAK = "SecretAccessKey";
|
|
2021
|
-
var _SFWIT = "SubjectFromWebIdentityToken";
|
|
2022
|
-
var _SI = "SourceIdentity";
|
|
2023
|
-
var _SN = "SerialNumber";
|
|
2024
|
-
var _ST = "SessionToken";
|
|
2025
|
-
var _T = "Tags";
|
|
2026
|
-
var _TC = "TokenCode";
|
|
2027
|
-
var _TTK = "TransitiveTagKeys";
|
|
2028
|
-
var _Ta = "Tag";
|
|
2029
|
-
var _V = "Value";
|
|
2030
|
-
var _WIT = "WebIdentityToken";
|
|
2031
|
-
var _a = "arn";
|
|
2032
|
-
var _aKST = "accessKeySecretType";
|
|
2033
|
-
var _aQE = "awsQueryError";
|
|
2034
|
-
var _c = "client";
|
|
2035
|
-
var _cTT = "clientTokenType";
|
|
2036
|
-
var _e = "error";
|
|
2037
|
-
var _hE = "httpError";
|
|
2038
|
-
var _m = "message";
|
|
2039
|
-
var _pDLT = "policyDescriptorListType";
|
|
2040
|
-
var _s = "smithy.ts.sdk.synthetic.com.amazonaws.sts";
|
|
2041
|
-
var _tLT = "tagListType";
|
|
2042
|
-
var n0 = "com.amazonaws.sts";
|
|
2043
|
-
var _s_registry = TypeRegistry.for(_s);
|
|
2044
|
-
var STSServiceException$ = [
|
|
2045
|
-
-3,
|
|
2046
|
-
_s,
|
|
2047
|
-
"STSServiceException",
|
|
2048
|
-
0,
|
|
2049
|
-
[],
|
|
2050
|
-
[]
|
|
2051
|
-
];
|
|
2052
|
-
_s_registry.registerError(STSServiceException$, STSServiceException);
|
|
2053
|
-
var n0_registry = TypeRegistry.for(n0);
|
|
2054
|
-
var ExpiredTokenException$ = [
|
|
2055
|
-
-3,
|
|
2056
|
-
n0,
|
|
2057
|
-
_ETE,
|
|
2058
|
-
{
|
|
2059
|
-
[_aQE]: [`ExpiredTokenException`, 400],
|
|
2060
|
-
[_e]: _c,
|
|
2061
|
-
[_hE]: 400
|
|
2062
|
-
},
|
|
2063
|
-
[_m],
|
|
2064
|
-
[0]
|
|
2065
|
-
];
|
|
2066
|
-
n0_registry.registerError(ExpiredTokenException$, ExpiredTokenException);
|
|
2067
|
-
var IDPCommunicationErrorException$ = [
|
|
2068
|
-
-3,
|
|
2069
|
-
n0,
|
|
2070
|
-
_IDPCEE,
|
|
2071
|
-
{
|
|
2072
|
-
[_aQE]: [`IDPCommunicationError`, 400],
|
|
2073
|
-
[_e]: _c,
|
|
2074
|
-
[_hE]: 400
|
|
2075
|
-
},
|
|
2076
|
-
[_m],
|
|
2077
|
-
[0]
|
|
2078
|
-
];
|
|
2079
|
-
n0_registry.registerError(IDPCommunicationErrorException$, IDPCommunicationErrorException);
|
|
2080
|
-
var IDPRejectedClaimException$ = [
|
|
2081
|
-
-3,
|
|
2082
|
-
n0,
|
|
2083
|
-
_IDPRCE,
|
|
2084
|
-
{
|
|
2085
|
-
[_aQE]: [`IDPRejectedClaim`, 403],
|
|
2086
|
-
[_e]: _c,
|
|
2087
|
-
[_hE]: 403
|
|
2088
|
-
},
|
|
2089
|
-
[_m],
|
|
2090
|
-
[0]
|
|
2091
|
-
];
|
|
2092
|
-
n0_registry.registerError(IDPRejectedClaimException$, IDPRejectedClaimException);
|
|
2093
|
-
var InvalidIdentityTokenException$ = [
|
|
2094
|
-
-3,
|
|
2095
|
-
n0,
|
|
2096
|
-
_IITE,
|
|
2097
|
-
{
|
|
2098
|
-
[_aQE]: [`InvalidIdentityToken`, 400],
|
|
2099
|
-
[_e]: _c,
|
|
2100
|
-
[_hE]: 400
|
|
2101
|
-
},
|
|
2102
|
-
[_m],
|
|
2103
|
-
[0]
|
|
2104
|
-
];
|
|
2105
|
-
n0_registry.registerError(InvalidIdentityTokenException$, InvalidIdentityTokenException);
|
|
2106
|
-
var MalformedPolicyDocumentException$ = [
|
|
2107
|
-
-3,
|
|
2108
|
-
n0,
|
|
2109
|
-
_MPDE,
|
|
2110
|
-
{
|
|
2111
|
-
[_aQE]: [`MalformedPolicyDocument`, 400],
|
|
2112
|
-
[_e]: _c,
|
|
2113
|
-
[_hE]: 400
|
|
2114
|
-
},
|
|
2115
|
-
[_m],
|
|
2116
|
-
[0]
|
|
2117
|
-
];
|
|
2118
|
-
n0_registry.registerError(MalformedPolicyDocumentException$, MalformedPolicyDocumentException);
|
|
2119
|
-
var PackedPolicyTooLargeException$ = [
|
|
2120
|
-
-3,
|
|
2121
|
-
n0,
|
|
2122
|
-
_PPTLE,
|
|
2123
|
-
{
|
|
2124
|
-
[_aQE]: [`PackedPolicyTooLarge`, 400],
|
|
2125
|
-
[_e]: _c,
|
|
2126
|
-
[_hE]: 400
|
|
2127
|
-
},
|
|
2128
|
-
[_m],
|
|
2129
|
-
[0]
|
|
2130
|
-
];
|
|
2131
|
-
n0_registry.registerError(PackedPolicyTooLargeException$, PackedPolicyTooLargeException);
|
|
2132
|
-
var RegionDisabledException$ = [
|
|
2133
|
-
-3,
|
|
2134
|
-
n0,
|
|
2135
|
-
_RDE,
|
|
2136
|
-
{
|
|
2137
|
-
[_aQE]: [`RegionDisabledException`, 403],
|
|
2138
|
-
[_e]: _c,
|
|
2139
|
-
[_hE]: 403
|
|
2140
|
-
},
|
|
2141
|
-
[_m],
|
|
2142
|
-
[0]
|
|
2143
|
-
];
|
|
2144
|
-
n0_registry.registerError(RegionDisabledException$, RegionDisabledException);
|
|
2145
|
-
var errorTypeRegistries = [_s_registry, n0_registry];
|
|
2146
|
-
var accessKeySecretType = [
|
|
2147
|
-
0,
|
|
2148
|
-
n0,
|
|
2149
|
-
_aKST,
|
|
2150
|
-
8,
|
|
2151
|
-
0
|
|
2152
|
-
];
|
|
2153
|
-
var clientTokenType = [
|
|
2154
|
-
0,
|
|
2155
|
-
n0,
|
|
2156
|
-
_cTT,
|
|
2157
|
-
8,
|
|
2158
|
-
0
|
|
2159
|
-
];
|
|
2160
|
-
var AssumedRoleUser$ = [
|
|
2161
|
-
3,
|
|
2162
|
-
n0,
|
|
2163
|
-
_ARU,
|
|
2164
|
-
0,
|
|
2165
|
-
[_ARI, _A],
|
|
2166
|
-
[0, 0],
|
|
2167
|
-
2
|
|
2168
|
-
];
|
|
2169
|
-
var AssumeRoleRequest$ = [
|
|
2170
|
-
3,
|
|
2171
|
-
n0,
|
|
2172
|
-
_ARR,
|
|
2173
|
-
0,
|
|
2174
|
-
[
|
|
2175
|
-
_RA,
|
|
2176
|
-
_RSN,
|
|
2177
|
-
_PA,
|
|
2178
|
-
_P,
|
|
2179
|
-
_DS,
|
|
2180
|
-
_T,
|
|
2181
|
-
_TTK,
|
|
2182
|
-
_EI,
|
|
2183
|
-
_SN,
|
|
2184
|
-
_TC,
|
|
2185
|
-
_SI,
|
|
2186
|
-
_PC
|
|
2187
|
-
],
|
|
2188
|
-
[
|
|
2189
|
-
0,
|
|
2190
|
-
0,
|
|
2191
|
-
() => policyDescriptorListType,
|
|
2192
|
-
0,
|
|
2193
|
-
1,
|
|
2194
|
-
() => tagListType,
|
|
2195
|
-
64,
|
|
2196
|
-
0,
|
|
2197
|
-
0,
|
|
2198
|
-
0,
|
|
2199
|
-
0,
|
|
2200
|
-
() => ProvidedContextsListType
|
|
2201
|
-
],
|
|
2202
|
-
2
|
|
2203
|
-
];
|
|
2204
|
-
var AssumeRoleResponse$ = [
|
|
2205
|
-
3,
|
|
2206
|
-
n0,
|
|
2207
|
-
_ARRs,
|
|
2208
|
-
0,
|
|
2209
|
-
[
|
|
2210
|
-
_C,
|
|
2211
|
-
_ARU,
|
|
2212
|
-
_PPS,
|
|
2213
|
-
_SI
|
|
2214
|
-
],
|
|
2215
|
-
[
|
|
2216
|
-
[() => Credentials$, 0],
|
|
2217
|
-
() => AssumedRoleUser$,
|
|
2218
|
-
1,
|
|
2219
|
-
0
|
|
2220
|
-
]
|
|
2221
|
-
];
|
|
2222
|
-
var AssumeRoleWithWebIdentityRequest$ = [
|
|
2223
|
-
3,
|
|
2224
|
-
n0,
|
|
2225
|
-
_ARWWIR,
|
|
2226
|
-
0,
|
|
2227
|
-
[
|
|
2228
|
-
_RA,
|
|
2229
|
-
_RSN,
|
|
2230
|
-
_WIT,
|
|
2231
|
-
_PI,
|
|
2232
|
-
_PA,
|
|
2233
|
-
_P,
|
|
2234
|
-
_DS
|
|
2235
|
-
],
|
|
2236
|
-
[
|
|
2237
|
-
0,
|
|
2238
|
-
0,
|
|
2239
|
-
[() => clientTokenType, 0],
|
|
2240
|
-
0,
|
|
2241
|
-
() => policyDescriptorListType,
|
|
2242
|
-
0,
|
|
2243
|
-
1
|
|
2244
|
-
],
|
|
2245
|
-
3
|
|
2246
|
-
];
|
|
2247
|
-
var AssumeRoleWithWebIdentityResponse$ = [
|
|
2248
|
-
3,
|
|
2249
|
-
n0,
|
|
2250
|
-
_ARWWIRs,
|
|
2251
|
-
0,
|
|
2252
|
-
[
|
|
2253
|
-
_C,
|
|
2254
|
-
_SFWIT,
|
|
2255
|
-
_ARU,
|
|
2256
|
-
_PPS,
|
|
2257
|
-
_Pr,
|
|
2258
|
-
_Au,
|
|
2259
|
-
_SI
|
|
2260
|
-
],
|
|
2261
|
-
[
|
|
2262
|
-
[() => Credentials$, 0],
|
|
2263
|
-
0,
|
|
2264
|
-
() => AssumedRoleUser$,
|
|
2265
|
-
1,
|
|
2266
|
-
0,
|
|
2267
|
-
0,
|
|
2268
|
-
0
|
|
2269
|
-
]
|
|
2270
|
-
];
|
|
2271
|
-
var Credentials$ = [
|
|
2272
|
-
3,
|
|
2273
|
-
n0,
|
|
2274
|
-
_C,
|
|
2275
|
-
0,
|
|
2276
|
-
[
|
|
2277
|
-
_AKI,
|
|
2278
|
-
_SAK,
|
|
2279
|
-
_ST,
|
|
2280
|
-
_E
|
|
2281
|
-
],
|
|
2282
|
-
[
|
|
2283
|
-
0,
|
|
2284
|
-
[() => accessKeySecretType, 0],
|
|
2285
|
-
0,
|
|
2286
|
-
4
|
|
2287
|
-
],
|
|
2288
|
-
4
|
|
2289
|
-
];
|
|
2290
|
-
var PolicyDescriptorType$ = [
|
|
2291
|
-
3,
|
|
2292
|
-
n0,
|
|
2293
|
-
_PDT,
|
|
2294
|
-
0,
|
|
2295
|
-
[_a],
|
|
2296
|
-
[0]
|
|
2297
|
-
];
|
|
2298
|
-
var ProvidedContext$ = [
|
|
2299
|
-
3,
|
|
2300
|
-
n0,
|
|
2301
|
-
_PCr,
|
|
2302
|
-
0,
|
|
2303
|
-
[_PAr, _CA],
|
|
2304
|
-
[0, 0]
|
|
2305
|
-
];
|
|
2306
|
-
var Tag$ = [
|
|
2307
|
-
3,
|
|
2308
|
-
n0,
|
|
2309
|
-
_Ta,
|
|
2310
|
-
0,
|
|
2311
|
-
[_K, _V],
|
|
2312
|
-
[0, 0],
|
|
2313
|
-
2
|
|
2314
|
-
];
|
|
2315
|
-
var policyDescriptorListType = [
|
|
2316
|
-
1,
|
|
2317
|
-
n0,
|
|
2318
|
-
_pDLT,
|
|
2319
|
-
0,
|
|
2320
|
-
() => PolicyDescriptorType$
|
|
2321
|
-
];
|
|
2322
|
-
var ProvidedContextsListType = [
|
|
2323
|
-
1,
|
|
2324
|
-
n0,
|
|
2325
|
-
_PCLT,
|
|
2326
|
-
0,
|
|
2327
|
-
() => ProvidedContext$
|
|
2328
|
-
];
|
|
2329
|
-
var tagListType = [
|
|
2330
|
-
1,
|
|
2331
|
-
n0,
|
|
2332
|
-
_tLT,
|
|
2333
|
-
0,
|
|
2334
|
-
() => Tag$
|
|
2335
|
-
];
|
|
2336
|
-
var AssumeRole$ = [
|
|
2337
|
-
9,
|
|
2338
|
-
n0,
|
|
2339
|
-
_AR,
|
|
2340
|
-
0,
|
|
2341
|
-
() => AssumeRoleRequest$,
|
|
2342
|
-
() => AssumeRoleResponse$
|
|
2343
|
-
];
|
|
2344
|
-
var AssumeRoleWithWebIdentity$ = [
|
|
2345
|
-
9,
|
|
2346
|
-
n0,
|
|
2347
|
-
_ARWWI,
|
|
2348
|
-
0,
|
|
2349
|
-
() => AssumeRoleWithWebIdentityRequest$,
|
|
2350
|
-
() => AssumeRoleWithWebIdentityResponse$
|
|
2351
|
-
];
|
|
2352
|
-
var getRuntimeConfig$1 = (config) => {
|
|
2353
|
-
return {
|
|
2354
|
-
apiVersion: "2011-06-15",
|
|
2355
|
-
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
2356
|
-
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
2357
|
-
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
2358
|
-
endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
|
|
2359
|
-
extensions: config?.extensions ?? [],
|
|
2360
|
-
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultSTSHttpAuthSchemeProvider,
|
|
2361
|
-
httpAuthSchemes: config?.httpAuthSchemes ?? [
|
|
2362
|
-
{
|
|
2363
|
-
schemeId: "aws.auth#sigv4",
|
|
2364
|
-
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
|
2365
|
-
signer: new AwsSdkSigV4Signer()
|
|
2366
|
-
},
|
|
2367
|
-
{
|
|
2368
|
-
schemeId: "aws.auth#sigv4a",
|
|
2369
|
-
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4a"),
|
|
2370
|
-
signer: new AwsSdkSigV4ASigner()
|
|
2371
|
-
},
|
|
2372
|
-
{
|
|
2373
|
-
schemeId: "smithy.api#noAuth",
|
|
2374
|
-
identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})),
|
|
2375
|
-
signer: new NoAuthSigner()
|
|
2376
|
-
}
|
|
2377
|
-
],
|
|
2378
|
-
logger: config?.logger ?? new NoOpLogger(),
|
|
2379
|
-
protocol: config?.protocol ?? AwsQueryProtocol,
|
|
2380
|
-
protocolSettings: config?.protocolSettings ?? {
|
|
2381
|
-
defaultNamespace: "com.amazonaws.sts",
|
|
2382
|
-
errorTypeRegistries,
|
|
2383
|
-
xmlNamespace: "https://sts.amazonaws.com/doc/2011-06-15/",
|
|
2384
|
-
version: "2011-06-15",
|
|
2385
|
-
serviceTarget: "AWSSecurityTokenServiceV20110615"
|
|
2386
|
-
},
|
|
2387
|
-
serviceId: config?.serviceId ?? "STS",
|
|
2388
|
-
signerConstructor: config?.signerConstructor ?? SignatureV4MultiRegion,
|
|
2389
|
-
urlParser: config?.urlParser ?? parseUrl,
|
|
2390
|
-
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
2391
|
-
utf8Encoder: config?.utf8Encoder ?? toUtf8
|
|
2392
|
-
};
|
|
2393
|
-
};
|
|
2394
|
-
var getRuntimeConfig = (config) => {
|
|
2395
|
-
emitWarningIfUnsupportedVersion(process.version);
|
|
2396
|
-
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
2397
|
-
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
2398
|
-
const clientSharedValues = getRuntimeConfig$1(config);
|
|
2399
|
-
emitWarningIfUnsupportedVersion$1(process.version);
|
|
2400
|
-
const loaderConfig = {
|
|
2401
|
-
profile: config?.profile,
|
|
2402
|
-
logger: clientSharedValues.logger
|
|
2403
|
-
};
|
|
2404
|
-
return {
|
|
2405
|
-
...clientSharedValues,
|
|
2406
|
-
...config,
|
|
2407
|
-
runtime: "node",
|
|
2408
|
-
defaultsMode,
|
|
2409
|
-
authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
|
|
2410
|
-
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
2411
|
-
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({
|
|
2412
|
-
serviceId: clientSharedValues.serviceId,
|
|
2413
|
-
clientVersion: packageInfo.version
|
|
2414
|
-
}),
|
|
2415
|
-
httpAuthSchemes: config?.httpAuthSchemes ?? [
|
|
2416
|
-
{
|
|
2417
|
-
schemeId: "aws.auth#sigv4",
|
|
2418
|
-
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4") || (async (idProps) => await config.credentialDefaultProvider(idProps?.__config || {})()),
|
|
2419
|
-
signer: new AwsSdkSigV4Signer()
|
|
2420
|
-
},
|
|
2421
|
-
{
|
|
2422
|
-
schemeId: "aws.auth#sigv4a",
|
|
2423
|
-
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4a"),
|
|
2424
|
-
signer: new AwsSdkSigV4ASigner()
|
|
2425
|
-
},
|
|
2426
|
-
{
|
|
2427
|
-
schemeId: "smithy.api#noAuth",
|
|
2428
|
-
identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})),
|
|
2429
|
-
signer: new NoAuthSigner()
|
|
2430
|
-
}
|
|
2431
|
-
],
|
|
2432
|
-
maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
|
2433
|
-
region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, {
|
|
2434
|
-
...NODE_REGION_CONFIG_FILE_OPTIONS,
|
|
2435
|
-
...loaderConfig
|
|
2436
|
-
}),
|
|
2437
|
-
requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
2438
|
-
retryMode: config?.retryMode ?? loadConfig({
|
|
2439
|
-
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
2440
|
-
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE
|
|
2441
|
-
}, config),
|
|
2442
|
-
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
2443
|
-
sigv4aSigningRegionSet: config?.sigv4aSigningRegionSet ?? loadConfig(NODE_SIGV4A_CONFIG_OPTIONS, loaderConfig),
|
|
2444
|
-
streamCollector: config?.streamCollector ?? streamCollector,
|
|
2445
|
-
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
2446
|
-
useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
2447
|
-
userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig)
|
|
2448
|
-
};
|
|
2449
|
-
};
|
|
2450
|
-
var getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
2451
|
-
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
2452
|
-
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
2453
|
-
let _credentials = runtimeConfig.credentials;
|
|
2454
|
-
return {
|
|
2455
|
-
setHttpAuthScheme(httpAuthScheme) {
|
|
2456
|
-
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
2457
|
-
if (index === -1) _httpAuthSchemes.push(httpAuthScheme);
|
|
2458
|
-
else _httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
|
2459
|
-
},
|
|
2460
|
-
httpAuthSchemes() {
|
|
2461
|
-
return _httpAuthSchemes;
|
|
2462
|
-
},
|
|
2463
|
-
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
|
2464
|
-
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
|
2465
|
-
},
|
|
2466
|
-
httpAuthSchemeProvider() {
|
|
2467
|
-
return _httpAuthSchemeProvider;
|
|
2468
|
-
},
|
|
2469
|
-
setCredentials(credentials) {
|
|
2470
|
-
_credentials = credentials;
|
|
2471
|
-
},
|
|
2472
|
-
credentials() {
|
|
2473
|
-
return _credentials;
|
|
2474
|
-
}
|
|
2475
|
-
};
|
|
2476
|
-
};
|
|
2477
|
-
var resolveHttpAuthRuntimeConfig = (config) => {
|
|
2478
|
-
return {
|
|
2479
|
-
httpAuthSchemes: config.httpAuthSchemes(),
|
|
2480
|
-
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
2481
|
-
credentials: config.credentials()
|
|
2482
|
-
};
|
|
2483
|
-
};
|
|
2484
|
-
var resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
2485
|
-
const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
2486
|
-
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
2487
|
-
return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
2488
|
-
};
|
|
2489
|
-
var STSClient = class extends Client {
|
|
2490
|
-
config;
|
|
2491
|
-
constructor(...[configuration]) {
|
|
2492
|
-
const _config_0 = getRuntimeConfig(configuration || {});
|
|
2493
|
-
super(_config_0);
|
|
2494
|
-
this.initConfig = _config_0;
|
|
2495
|
-
const _config_8 = resolveRuntimeExtensions(resolveHttpAuthSchemeConfig(resolveEndpointConfig(resolveHostHeaderConfig(resolveRegionConfig(resolveRetryConfig(resolveUserAgentConfig(resolveClientEndpointParameters(_config_0))))))), configuration?.extensions || []);
|
|
2496
|
-
this.config = _config_8;
|
|
2497
|
-
this.middlewareStack.use(getSchemaSerdePlugin(this.config));
|
|
2498
|
-
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
2499
|
-
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
2500
|
-
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
2501
|
-
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
2502
|
-
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
2503
|
-
this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
|
|
2504
|
-
this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
2505
|
-
httpAuthSchemeParametersProvider: defaultSTSHttpAuthSchemeParametersProvider,
|
|
2506
|
-
identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({
|
|
2507
|
-
"aws.auth#sigv4": config.credentials,
|
|
2508
|
-
"aws.auth#sigv4a": config.credentials
|
|
2509
|
-
})
|
|
2510
|
-
}));
|
|
2511
|
-
this.middlewareStack.use(getHttpSigningPlugin(this.config));
|
|
2512
|
-
}
|
|
2513
|
-
destroy() {
|
|
2514
|
-
super.destroy();
|
|
2515
|
-
}
|
|
2516
|
-
};
|
|
2517
|
-
var AssumeRoleCommand = class extends Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
2518
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
2519
|
-
}).s("AWSSecurityTokenServiceV20110615", "AssumeRole", {}).n("STSClient", "AssumeRoleCommand").sc(AssumeRole$).build() {};
|
|
2520
|
-
var AssumeRoleWithWebIdentityCommand = class extends Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
2521
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
2522
|
-
}).s("AWSSecurityTokenServiceV20110615", "AssumeRoleWithWebIdentity", {}).n("STSClient", "AssumeRoleWithWebIdentityCommand").sc(AssumeRoleWithWebIdentity$).build() {};
|
|
2523
|
-
var commands = {
|
|
2524
|
-
AssumeRoleCommand,
|
|
2525
|
-
AssumeRoleWithWebIdentityCommand
|
|
2526
|
-
};
|
|
2527
|
-
var STS = class extends STSClient {};
|
|
2528
|
-
createAggregatedClient(commands, STS);
|
|
2529
|
-
var getAccountIdFromAssumedRoleUser = (assumedRoleUser) => {
|
|
2530
|
-
if (typeof assumedRoleUser?.Arn === "string") {
|
|
2531
|
-
const arnComponents = assumedRoleUser.Arn.split(":");
|
|
2532
|
-
if (arnComponents.length > 4 && arnComponents[4] !== "") return arnComponents[4];
|
|
2533
|
-
}
|
|
2534
|
-
};
|
|
2535
|
-
var resolveRegion = async (_region, _parentRegion, credentialProviderLogger, loaderConfig = {}) => {
|
|
2536
|
-
const region = typeof _region === "function" ? await _region() : _region;
|
|
2537
|
-
const parentRegion = typeof _parentRegion === "function" ? await _parentRegion() : _parentRegion;
|
|
2538
|
-
let stsDefaultRegion = "";
|
|
2539
|
-
const resolvedRegion = region ?? parentRegion ?? (stsDefaultRegion = await stsRegionDefaultResolver(loaderConfig)());
|
|
2540
|
-
credentialProviderLogger?.debug?.("@aws-sdk/client-sts::resolveRegion", "accepting first of:", `${region} (credential provider clientConfig)`, `${parentRegion} (contextual client)`, `${stsDefaultRegion} (STS default: AWS_REGION, profile region, or us-east-1)`);
|
|
2541
|
-
return resolvedRegion;
|
|
2542
|
-
};
|
|
2543
|
-
var getDefaultRoleAssumer$1 = (stsOptions, STSClient) => {
|
|
2544
|
-
let stsClient;
|
|
2545
|
-
let closureSourceCreds;
|
|
2546
|
-
return async (sourceCreds, params) => {
|
|
2547
|
-
closureSourceCreds = sourceCreds;
|
|
2548
|
-
if (!stsClient) {
|
|
2549
|
-
const { logger = stsOptions?.parentClientConfig?.logger, profile = stsOptions?.parentClientConfig?.profile, region, requestHandler = stsOptions?.parentClientConfig?.requestHandler, credentialProviderLogger, userAgentAppId = stsOptions?.parentClientConfig?.userAgentAppId } = stsOptions;
|
|
2550
|
-
const resolvedRegion = await resolveRegion(region, stsOptions?.parentClientConfig?.region, credentialProviderLogger, {
|
|
2551
|
-
logger,
|
|
2552
|
-
profile
|
|
2553
|
-
});
|
|
2554
|
-
const isCompatibleRequestHandler = !isH2(requestHandler);
|
|
2555
|
-
stsClient = new STSClient({
|
|
2556
|
-
...stsOptions,
|
|
2557
|
-
userAgentAppId,
|
|
2558
|
-
profile,
|
|
2559
|
-
credentialDefaultProvider: () => async () => closureSourceCreds,
|
|
2560
|
-
region: resolvedRegion,
|
|
2561
|
-
requestHandler: isCompatibleRequestHandler ? requestHandler : void 0,
|
|
2562
|
-
logger
|
|
2563
|
-
});
|
|
2564
|
-
}
|
|
2565
|
-
const { Credentials, AssumedRoleUser } = await stsClient.send(new AssumeRoleCommand(params));
|
|
2566
|
-
if (!Credentials || !Credentials.AccessKeyId || !Credentials.SecretAccessKey) throw new Error(`Invalid response from STS.assumeRole call with role ${params.RoleArn}`);
|
|
2567
|
-
const accountId = getAccountIdFromAssumedRoleUser(AssumedRoleUser);
|
|
2568
|
-
const credentials = {
|
|
2569
|
-
accessKeyId: Credentials.AccessKeyId,
|
|
2570
|
-
secretAccessKey: Credentials.SecretAccessKey,
|
|
2571
|
-
sessionToken: Credentials.SessionToken,
|
|
2572
|
-
expiration: Credentials.Expiration,
|
|
2573
|
-
...Credentials.CredentialScope && { credentialScope: Credentials.CredentialScope },
|
|
2574
|
-
...accountId && { accountId }
|
|
2575
|
-
};
|
|
2576
|
-
setCredentialFeature(credentials, "CREDENTIALS_STS_ASSUME_ROLE", "i");
|
|
2577
|
-
return credentials;
|
|
2578
|
-
};
|
|
2579
|
-
};
|
|
2580
|
-
var getDefaultRoleAssumerWithWebIdentity$1 = (stsOptions, STSClient) => {
|
|
2581
|
-
let stsClient;
|
|
2582
|
-
return async (params) => {
|
|
2583
|
-
if (!stsClient) {
|
|
2584
|
-
const { logger = stsOptions?.parentClientConfig?.logger, profile = stsOptions?.parentClientConfig?.profile, region, requestHandler = stsOptions?.parentClientConfig?.requestHandler, credentialProviderLogger, userAgentAppId = stsOptions?.parentClientConfig?.userAgentAppId } = stsOptions;
|
|
2585
|
-
const resolvedRegion = await resolveRegion(region, stsOptions?.parentClientConfig?.region, credentialProviderLogger, {
|
|
2586
|
-
logger,
|
|
2587
|
-
profile
|
|
2588
|
-
});
|
|
2589
|
-
const isCompatibleRequestHandler = !isH2(requestHandler);
|
|
2590
|
-
stsClient = new STSClient({
|
|
2591
|
-
...stsOptions,
|
|
2592
|
-
userAgentAppId,
|
|
2593
|
-
profile,
|
|
2594
|
-
region: resolvedRegion,
|
|
2595
|
-
requestHandler: isCompatibleRequestHandler ? requestHandler : void 0,
|
|
2596
|
-
logger
|
|
2597
|
-
});
|
|
2598
|
-
}
|
|
2599
|
-
const { Credentials, AssumedRoleUser } = await stsClient.send(new AssumeRoleWithWebIdentityCommand(params));
|
|
2600
|
-
if (!Credentials || !Credentials.AccessKeyId || !Credentials.SecretAccessKey) throw new Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${params.RoleArn}`);
|
|
2601
|
-
const accountId = getAccountIdFromAssumedRoleUser(AssumedRoleUser);
|
|
2602
|
-
const credentials = {
|
|
2603
|
-
accessKeyId: Credentials.AccessKeyId,
|
|
2604
|
-
secretAccessKey: Credentials.SecretAccessKey,
|
|
2605
|
-
sessionToken: Credentials.SessionToken,
|
|
2606
|
-
expiration: Credentials.Expiration,
|
|
2607
|
-
...Credentials.CredentialScope && { credentialScope: Credentials.CredentialScope },
|
|
2608
|
-
...accountId && { accountId }
|
|
2609
|
-
};
|
|
2610
|
-
if (accountId) setCredentialFeature(credentials, "RESOLVED_ACCOUNT_ID", "T");
|
|
2611
|
-
setCredentialFeature(credentials, "CREDENTIALS_STS_ASSUME_ROLE_WEB_ID", "k");
|
|
2612
|
-
return credentials;
|
|
2613
|
-
};
|
|
2614
|
-
};
|
|
2615
|
-
var isH2 = (requestHandler) => {
|
|
2616
|
-
return requestHandler?.metadata?.handlerProtocol === "h2";
|
|
2617
|
-
};
|
|
2618
|
-
var getCustomizableStsClientCtor = (baseCtor, customizations) => {
|
|
2619
|
-
if (!customizations) return baseCtor;
|
|
2620
|
-
else return class CustomizableSTSClient extends baseCtor {
|
|
2621
|
-
constructor(config) {
|
|
2622
|
-
super(config);
|
|
2623
|
-
for (const customization of customizations) this.middlewareStack.use(customization);
|
|
2624
|
-
}
|
|
2625
|
-
};
|
|
2626
|
-
};
|
|
2627
|
-
var getDefaultRoleAssumer = (stsOptions = {}, stsPlugins) => getDefaultRoleAssumer$1(stsOptions, getCustomizableStsClientCtor(STSClient, stsPlugins));
|
|
2628
|
-
var getDefaultRoleAssumerWithWebIdentity = (stsOptions = {}, stsPlugins) => getDefaultRoleAssumerWithWebIdentity$1(stsOptions, getCustomizableStsClientCtor(STSClient, stsPlugins));
|
|
2629
|
-
var decorateDefaultCredentialProvider = (provider) => (input) => provider({
|
|
2630
|
-
roleAssumer: getDefaultRoleAssumer(input),
|
|
2631
|
-
roleAssumerWithWebIdentity: getDefaultRoleAssumerWithWebIdentity(input),
|
|
2632
|
-
...input
|
|
2633
|
-
});
|
|
2634
|
-
exports.AssumeRole$ = AssumeRole$;
|
|
2635
|
-
exports.AssumeRoleCommand = AssumeRoleCommand;
|
|
2636
|
-
exports.AssumeRoleRequest$ = AssumeRoleRequest$;
|
|
2637
|
-
exports.AssumeRoleResponse$ = AssumeRoleResponse$;
|
|
2638
|
-
exports.AssumeRoleWithWebIdentity$ = AssumeRoleWithWebIdentity$;
|
|
2639
|
-
exports.AssumeRoleWithWebIdentityCommand = AssumeRoleWithWebIdentityCommand;
|
|
2640
|
-
exports.AssumeRoleWithWebIdentityRequest$ = AssumeRoleWithWebIdentityRequest$;
|
|
2641
|
-
exports.AssumeRoleWithWebIdentityResponse$ = AssumeRoleWithWebIdentityResponse$;
|
|
2642
|
-
exports.AssumedRoleUser$ = AssumedRoleUser$;
|
|
2643
|
-
exports.Credentials$ = Credentials$;
|
|
2644
|
-
exports.ExpiredTokenException = ExpiredTokenException;
|
|
2645
|
-
exports.ExpiredTokenException$ = ExpiredTokenException$;
|
|
2646
|
-
exports.IDPCommunicationErrorException = IDPCommunicationErrorException;
|
|
2647
|
-
exports.IDPCommunicationErrorException$ = IDPCommunicationErrorException$;
|
|
2648
|
-
exports.IDPRejectedClaimException = IDPRejectedClaimException;
|
|
2649
|
-
exports.IDPRejectedClaimException$ = IDPRejectedClaimException$;
|
|
2650
|
-
exports.InvalidIdentityTokenException = InvalidIdentityTokenException;
|
|
2651
|
-
exports.InvalidIdentityTokenException$ = InvalidIdentityTokenException$;
|
|
2652
|
-
exports.MalformedPolicyDocumentException = MalformedPolicyDocumentException;
|
|
2653
|
-
exports.MalformedPolicyDocumentException$ = MalformedPolicyDocumentException$;
|
|
2654
|
-
exports.PackedPolicyTooLargeException = PackedPolicyTooLargeException;
|
|
2655
|
-
exports.PackedPolicyTooLargeException$ = PackedPolicyTooLargeException$;
|
|
2656
|
-
exports.PolicyDescriptorType$ = PolicyDescriptorType$;
|
|
2657
|
-
exports.ProvidedContext$ = ProvidedContext$;
|
|
2658
|
-
exports.RegionDisabledException = RegionDisabledException;
|
|
2659
|
-
exports.RegionDisabledException$ = RegionDisabledException$;
|
|
2660
|
-
exports.STS = STS;
|
|
2661
|
-
exports.STSClient = STSClient;
|
|
2662
|
-
exports.STSServiceException = STSServiceException;
|
|
2663
|
-
exports.STSServiceException$ = STSServiceException$;
|
|
2664
|
-
exports.Tag$ = Tag$;
|
|
2665
|
-
exports.decorateDefaultCredentialProvider = decorateDefaultCredentialProvider;
|
|
2666
|
-
exports.errorTypeRegistries = errorTypeRegistries;
|
|
2667
|
-
exports.getDefaultRoleAssumer = getDefaultRoleAssumer;
|
|
2668
|
-
exports.getDefaultRoleAssumerWithWebIdentity = getDefaultRoleAssumerWithWebIdentity;
|
|
2669
|
-
}));
|
|
2670
|
-
//#endregion
|
|
2671
|
-
export { require_sso_oidc as n, require_signin as r, require_sts as t };
|