appos 0.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.
Files changed (156) hide show
  1. package/README.md +399 -0
  2. package/build/client/assets/IconMail-BZadZvAd.js +1 -0
  3. package/build/client/assets/_-CgPm6_fJ.js +1 -0
  4. package/build/client/assets/_index-BCLDp_mg.js +1 -0
  5. package/build/client/assets/_layout-CTmjtKOZ.js +1 -0
  6. package/build/client/assets/_layout-HsJ3Zu5t.js +1 -0
  7. package/build/client/assets/_layout-OcS85aOt.js +1 -0
  8. package/build/client/assets/app-sidebar-Bm6e4kn_.js +1 -0
  9. package/build/client/assets/app-sidebar-D2Nsi85j.js +1 -0
  10. package/build/client/assets/auth-provider-rkzBVtYX.js +1 -0
  11. package/build/client/assets/brand-CbTWw97e.js +1 -0
  12. package/build/client/assets/browser-ponyfill-D3yQFvRu.js +2 -0
  13. package/build/client/assets/button-DtZhoqpk.js +1 -0
  14. package/build/client/assets/check-D5D2EGI4.js +1 -0
  15. package/build/client/assets/checkbox-B35Nn166.js +1 -0
  16. package/build/client/assets/chunk-JG3XND5A-BetDbdG0.js +1 -0
  17. package/build/client/assets/chunk-UIGDSWPH-DeiamgQc.js +26 -0
  18. package/build/client/assets/chunk-vBKQ29Cd.js +1 -0
  19. package/build/client/assets/circle-alert-DB4JluX5.js +1 -0
  20. package/build/client/assets/compare-Br3z3FUS-BXkA2ojG.js +2 -0
  21. package/build/client/assets/compiler-runtime-Co9svCia.js +1 -0
  22. package/build/client/assets/config-ChcA_Pkv.js +1 -0
  23. package/build/client/assets/createReactComponent-C2TSpqC7.js +1 -0
  24. package/build/client/assets/dialog-CQrpvURm.js +1 -0
  25. package/build/client/assets/dist-B6TkSbxV.js +1 -0
  26. package/build/client/assets/dist-BNO39Rfs.js +1 -0
  27. package/build/client/assets/dist-BWnI-4xl.js +1 -0
  28. package/build/client/assets/dist-CA21wN5I.js +1 -0
  29. package/build/client/assets/dist-CBNvQRbZ.js +1 -0
  30. package/build/client/assets/dist-CYRPrwOb.js +1 -0
  31. package/build/client/assets/dist-DKtC0FSi.js +1 -0
  32. package/build/client/assets/dist-DhfcebhF.js +1 -0
  33. package/build/client/assets/dist-VqaKdvZu.js +1 -0
  34. package/build/client/assets/dist-Yn6lj8QC.js +5 -0
  35. package/build/client/assets/dropdown-menu-CbzduuDa.js +1 -0
  36. package/build/client/assets/empty-DQRarCKT.js +1 -0
  37. package/build/client/assets/entry.client-BN1GPjAL.js +10 -0
  38. package/build/client/assets/es2015-BJguufLZ.js +41 -0
  39. package/build/client/assets/eye-Ctrln70x.js +1 -0
  40. package/build/client/assets/file-preview-dialog-BRkWSRN4.js +14 -0
  41. package/build/client/assets/index-Del2yBnb.js +1 -0
  42. package/build/client/assets/initReactI18next-CyHiepAw.js +1 -0
  43. package/build/client/assets/input-V1lM1yoz.js +1 -0
  44. package/build/client/assets/jsx-runtime-SCjaiuzT.js +1 -0
  45. package/build/client/assets/lock-Bj7dxHab.js +1 -0
  46. package/build/client/assets/manifest-ca813980.js +1 -0
  47. package/build/client/assets/nav-user-BqPUBe9x.js +1 -0
  48. package/build/client/assets/nav-user-Yu7wt7b_.js +1 -0
  49. package/build/client/assets/org-switcher-BIuearbE.js +1 -0
  50. package/build/client/assets/password-input-bor7e4TM.js +1 -0
  51. package/build/client/assets/react-dom-Bhi-1tDD.js +1 -0
  52. package/build/client/assets/realtime-BmU1LPhx.js +1 -0
  53. package/build/client/assets/root-CS5YIV-V.js +3 -0
  54. package/build/client/assets/root-D0CFuQYc.css +2 -0
  55. package/build/client/assets/route-B9cwW-UK.js +1 -0
  56. package/build/client/assets/route-BD2nV1q2.js +1 -0
  57. package/build/client/assets/route-BEnDcljt.js +1 -0
  58. package/build/client/assets/route-BR4LdxHR.js +1 -0
  59. package/build/client/assets/route-BU5TYmVE.js +0 -0
  60. package/build/client/assets/route-BVmIPEvK.js +11 -0
  61. package/build/client/assets/route-BY244T48.js +1 -0
  62. package/build/client/assets/route-Bwd903CU.js +1 -0
  63. package/build/client/assets/route-CN9iChOk.js +1 -0
  64. package/build/client/assets/route-CQ3p9Qb1.js +1 -0
  65. package/build/client/assets/route-CVLnTONw.js +1 -0
  66. package/build/client/assets/route-CoMZag4T.js +1 -0
  67. package/build/client/assets/route-CsYSLbnx.js +1 -0
  68. package/build/client/assets/route-DWNrq2GE.js +1 -0
  69. package/build/client/assets/route-Dxfmap_u.js +1 -0
  70. package/build/client/assets/route-Gnx1fkRX.js +0 -0
  71. package/build/client/assets/route-NduA4SS_.js +1 -0
  72. package/build/client/assets/route-u2hskgE_.js +1 -0
  73. package/build/client/assets/route-v9Jwv-AW.js +1 -0
  74. package/build/client/assets/select-DATRE76_.js +1 -0
  75. package/build/client/assets/separator-Cla0V581.js +1 -0
  76. package/build/client/assets/shim-TRiHENXu.js +1 -0
  77. package/build/client/assets/sidebar-CqrdL512.js +1 -0
  78. package/build/client/assets/site-header-CZO3qBhf.js +1 -0
  79. package/build/client/assets/site-header-CwidwSv1.js +1 -0
  80. package/build/client/assets/social-providers-Bz7f1_yd.js +1 -0
  81. package/build/client/assets/test-WdoqKbLa.js +1 -0
  82. package/build/client/assets/tooltip-BeDraHQn.js +1 -0
  83. package/build/client/assets/trpc-C1CjVipH.js +6 -0
  84. package/build/client/assets/trust-indicator-D4tEs4Dr.js +20 -0
  85. package/build/client/assets/use-file-upload-CNPfWC6W.js +1 -0
  86. package/build/client/assets/useTranslation-Bz7VuQ7j.js +1 -0
  87. package/build/client/assets/utils-InBzhUf_.js +1 -0
  88. package/build/client/assets/x-4CC8aqOW.js +1 -0
  89. package/build/client/favicon.ico +0 -0
  90. package/build/client/locales/en/emails.json +11 -0
  91. package/build/client/locales/en/translation.json +411 -0
  92. package/build/client/locales/zh-CN/emails.json +11 -0
  93. package/build/client/locales/zh-CN/translation.json +1 -0
  94. package/build/client/locales/zh-TW/emails.json +11 -0
  95. package/build/client/locales/zh-TW/translation.json +1 -0
  96. package/build/client/logo-invert.png +0 -0
  97. package/build/client/logo.png +0 -0
  98. package/build/lib/adapter-factory-CLtf7vT5-CTKiMV2u.mjs +19675 -0
  99. package/build/lib/bun-sqlite-dialect-DN7EKoIB-0pWIoG0L.mjs +155 -0
  100. package/build/lib/chunk-BYI67GdN.mjs +1 -0
  101. package/build/lib/chunk-CkKlU7xI.mjs +44 -0
  102. package/build/lib/client-BtuhFgvy.mjs +65 -0
  103. package/build/lib/client.d.ts +2272 -0
  104. package/build/lib/client.js +24 -0
  105. package/build/lib/date.d.ts +1 -0
  106. package/build/lib/date.js +1 -0
  107. package/build/lib/dialect-BeMwdQoz-D41NdSow.mjs +72 -0
  108. package/build/lib/dist-cjs-B43A5HXv.mjs +169 -0
  109. package/build/lib/dist-cjs-B_wkbabY.mjs +214 -0
  110. package/build/lib/dist-cjs-BmbYbMhp.mjs +143 -0
  111. package/build/lib/dist-cjs-Cc337rwW.mjs +7 -0
  112. package/build/lib/dist-cjs-CgzfN8xY.mjs +4974 -0
  113. package/build/lib/dist-cjs-DBFcizQf.mjs +50 -0
  114. package/build/lib/dist-cjs-DC-UL-xx.mjs +97 -0
  115. package/build/lib/dist-cjs-DHlTgXUO.mjs +6975 -0
  116. package/build/lib/dist-cjs-DYAmJYzN.mjs +323 -0
  117. package/build/lib/dist-cjs-Ddm6Stp9.mjs +1294 -0
  118. package/build/lib/dist-cjs-GFGBhaZg.mjs +84 -0
  119. package/build/lib/dist-cjs-ieCOxrOi.mjs +181 -0
  120. package/build/lib/dist-cjs-nbOGa7i_.mjs +47 -0
  121. package/build/lib/dist-cjs-pN6ekzMW.mjs +66 -0
  122. package/build/lib/dist-cjs-yYlQ1OiO.mjs +102 -0
  123. package/build/lib/esm-DPet4lFW.mjs +15816 -0
  124. package/build/lib/event-streams-x9fP9BzF.mjs +185 -0
  125. package/build/lib/file-preview-dialog-Cugg8tEc.mjs +59 -0
  126. package/build/lib/kysely-adapter-BTWfu5rn.mjs +183 -0
  127. package/build/lib/magic-string.es-jZcifc5m.mjs +1013 -0
  128. package/build/lib/memory-adapter-DiU519m9.mjs +147 -0
  129. package/build/lib/node-ponyfill-Dmm1SWTU.mjs +38212 -0
  130. package/build/lib/node-sqlite-dialect-BqISUSC3-DYvTLBpY.mjs +155 -0
  131. package/build/lib/package-DfozRyK6.mjs +5 -0
  132. package/build/lib/react-dom-CPjM_WCt.mjs +42 -0
  133. package/build/lib/server.d.mts +76273 -0
  134. package/build/lib/server.mjs +325 -0
  135. package/build/lib/sso-oidc-Qom0PEDW.mjs +1036 -0
  136. package/build/lib/sts-CLRaHSW_.mjs +13 -0
  137. package/build/lib/sts-Dl7yZqX1.mjs +1405 -0
  138. package/build/lib/test.d.mts +8922 -0
  139. package/build/lib/test.mjs +175650 -0
  140. package/build/lib/ui/index.d.ts +1643 -0
  141. package/build/lib/ui/index.js +160 -0
  142. package/build/lib/utils.d.ts +21 -0
  143. package/build/lib/utils.js +1 -0
  144. package/build/lib/zod.d.ts +1 -0
  145. package/build/lib/zod.js +23 -0
  146. package/build/main.js +2383 -0
  147. package/build/server/assets/context-BoNg86Eh.js +35 -0
  148. package/build/server/assets/dialog-B8YbGNaz.js +54 -0
  149. package/build/server/assets/file-preview-dialog-qWSViOWQ.js +15 -0
  150. package/build/server/assets/react-CFQ4y0AA.js +13 -0
  151. package/build/server/assets/react-dom-Ca1YUVo2.js +5 -0
  152. package/build/server/assets/server-build-BMOfm0ad.js +118 -0
  153. package/build/server/assets/server.node-B2oksIp8.js +196 -0
  154. package/build/server/assets/server.node-VQzoub0A.js +1 -0
  155. package/build/server/index.js +123 -0
  156. package/package.json +224 -0
@@ -0,0 +1,1405 @@
1
+ import { n as __esm, r as __export } from "./chunk-CkKlU7xI.mjs";
2
+ import { F as require_dist_cjs$2, I as require_dist_cjs$4, L as require_dist_cjs, P as require_dist_cjs$3, t as require_dist_cjs$1 } from "./dist-cjs-CgzfN8xY.mjs";
3
+ import { n as require_dist_cjs$6, t as require_dist_cjs$5 } from "./dist-cjs-yYlQ1OiO.mjs";
4
+ import { D as NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, E as resolveAwsSdkSigV4Config, F as DefaultIdentityProviderConfig, I as getHttpSigningPlugin, L as require_dist_cjs$23, N as init_dist_es$1, O as AwsSdkSigV4Signer, P as NoAuthSigner, R as getHttpAuthSchemeEndpointRuleSetPlugin, _ as init_dist_es, a as require_dist_cjs$9, b as parseXmlBody, c as require_dist_cjs$21, d as require_dist_cjs$7, f as require_dist_cjs$8, h as require_dist_cjs$17, i as require_dist_cjs$11, j as require_dist_cjs$22, l as require_dist_cjs$10, m as require_dist_cjs$18, n as require_dist_cjs$15, o as require_dist_cjs$12, p as require_dist_cjs$19, r as require_dist_cjs$13, s as require_dist_cjs$14, t as require_dist_cjs$16, u as require_dist_cjs$20, x as parseXmlErrorBody } from "./dist-cjs-DHlTgXUO.mjs";
5
+ import { t as require_dist_cjs$24 } from "./dist-cjs-DBFcizQf.mjs";
6
+ import { a as setCredentialFeature, n as init_client, o as emitWarningIfUnsupportedVersion } from "./client-BtuhFgvy.mjs";
7
+ import { t as version } from "./package-DfozRyK6.mjs";
8
+
9
+ //#region node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/auth/httpAuthSchemeProvider.js
10
+ function createAwsAuthSigv4HttpAuthOption(authParameters) {
11
+ return {
12
+ schemeId: "aws.auth#sigv4",
13
+ signingProperties: {
14
+ name: "sts",
15
+ region: authParameters.region
16
+ },
17
+ propertiesExtractor: (config, context) => ({ signingProperties: {
18
+ config,
19
+ context
20
+ } })
21
+ };
22
+ }
23
+ function createSmithyApiNoAuthHttpAuthOption(authParameters) {
24
+ return { schemeId: "smithy.api#noAuth" };
25
+ }
26
+ var import_dist_cjs$41, defaultSTSHttpAuthSchemeParametersProvider, defaultSTSHttpAuthSchemeProvider, resolveStsAuthConfig, resolveHttpAuthSchemeConfig;
27
+ var init_httpAuthSchemeProvider = __esm({ "node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/auth/httpAuthSchemeProvider.js": (() => {
28
+ init_dist_es();
29
+ import_dist_cjs$41 = require_dist_cjs();
30
+ init_STSClient();
31
+ defaultSTSHttpAuthSchemeParametersProvider = async (config, context, input) => {
32
+ return {
33
+ operation: (0, import_dist_cjs$41.getSmithyContext)(context).operation,
34
+ region: await (0, import_dist_cjs$41.normalizeProvider)(config.region)() || (() => {
35
+ throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
36
+ })()
37
+ };
38
+ };
39
+ defaultSTSHttpAuthSchemeProvider = (authParameters) => {
40
+ const options = [];
41
+ switch (authParameters.operation) {
42
+ case "AssumeRoleWithWebIdentity":
43
+ options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
44
+ break;
45
+ default: options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
46
+ }
47
+ return options;
48
+ };
49
+ resolveStsAuthConfig = (input) => Object.assign(input, { stsClientCtor: STSClient });
50
+ resolveHttpAuthSchemeConfig = (config) => {
51
+ const config_1 = resolveAwsSdkSigV4Config(resolveStsAuthConfig(config));
52
+ return Object.assign(config_1, { authSchemePreference: (0, import_dist_cjs$41.normalizeProvider)(config.authSchemePreference ?? []) });
53
+ };
54
+ }) });
55
+
56
+ //#endregion
57
+ //#region node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/endpoint/EndpointParameters.js
58
+ var resolveClientEndpointParameters, commonParams;
59
+ var init_EndpointParameters = __esm({ "node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/endpoint/EndpointParameters.js": (() => {
60
+ resolveClientEndpointParameters = (options) => {
61
+ return Object.assign(options, {
62
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
63
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
64
+ useGlobalEndpoint: options.useGlobalEndpoint ?? false,
65
+ defaultSigningName: "sts"
66
+ });
67
+ };
68
+ commonParams = {
69
+ UseGlobalEndpoint: {
70
+ type: "builtInParams",
71
+ name: "useGlobalEndpoint"
72
+ },
73
+ UseFIPS: {
74
+ type: "builtInParams",
75
+ name: "useFipsEndpoint"
76
+ },
77
+ Endpoint: {
78
+ type: "builtInParams",
79
+ name: "endpoint"
80
+ },
81
+ Region: {
82
+ type: "builtInParams",
83
+ name: "region"
84
+ },
85
+ UseDualStack: {
86
+ type: "builtInParams",
87
+ name: "useDualstackEndpoint"
88
+ }
89
+ };
90
+ }) });
91
+
92
+ //#endregion
93
+ //#region node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/endpoint/ruleset.js
94
+ var F, G, H, I, J, a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z, A, B, C, D, E, _data, ruleSet;
95
+ var init_ruleset = __esm({ "node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/endpoint/ruleset.js": (() => {
96
+ F = "required", G = "type", H = "fn", I = "argv", J = "ref";
97
+ a = false, b = true, c = "booleanEquals", d = "stringEquals", e = "sigv4", f = "sts", g = "us-east-1", h = "endpoint", i = "https://sts.{Region}.{PartitionResult#dnsSuffix}", j = "tree", k = "error", l = "getAttr", m = {
98
+ [F]: false,
99
+ [G]: "string"
100
+ }, n = {
101
+ [F]: true,
102
+ "default": false,
103
+ [G]: "boolean"
104
+ }, o = { [J]: "Endpoint" }, p = {
105
+ [H]: "isSet",
106
+ [I]: [{ [J]: "Region" }]
107
+ }, q = { [J]: "Region" }, r = {
108
+ [H]: "aws.partition",
109
+ [I]: [q],
110
+ "assign": "PartitionResult"
111
+ }, s = { [J]: "UseFIPS" }, t = { [J]: "UseDualStack" }, u = {
112
+ "url": "https://sts.amazonaws.com",
113
+ "properties": { "authSchemes": [{
114
+ "name": e,
115
+ "signingName": f,
116
+ "signingRegion": g
117
+ }] },
118
+ "headers": {}
119
+ }, v = {}, w = {
120
+ "conditions": [{
121
+ [H]: d,
122
+ [I]: [q, "aws-global"]
123
+ }],
124
+ [h]: u,
125
+ [G]: h
126
+ }, x = {
127
+ [H]: c,
128
+ [I]: [s, true]
129
+ }, y = {
130
+ [H]: c,
131
+ [I]: [t, true]
132
+ }, z = {
133
+ [H]: l,
134
+ [I]: [{ [J]: "PartitionResult" }, "supportsFIPS"]
135
+ }, A = { [J]: "PartitionResult" }, B = {
136
+ [H]: c,
137
+ [I]: [true, {
138
+ [H]: l,
139
+ [I]: [A, "supportsDualStack"]
140
+ }]
141
+ }, C = [{
142
+ [H]: "isSet",
143
+ [I]: [o]
144
+ }], D = [x], E = [y];
145
+ _data = {
146
+ version: "1.0",
147
+ parameters: {
148
+ Region: m,
149
+ UseDualStack: n,
150
+ UseFIPS: n,
151
+ Endpoint: m,
152
+ UseGlobalEndpoint: n
153
+ },
154
+ rules: [
155
+ {
156
+ conditions: [
157
+ {
158
+ [H]: c,
159
+ [I]: [{ [J]: "UseGlobalEndpoint" }, b]
160
+ },
161
+ {
162
+ [H]: "not",
163
+ [I]: C
164
+ },
165
+ p,
166
+ r,
167
+ {
168
+ [H]: c,
169
+ [I]: [s, a]
170
+ },
171
+ {
172
+ [H]: c,
173
+ [I]: [t, a]
174
+ }
175
+ ],
176
+ rules: [
177
+ {
178
+ conditions: [{
179
+ [H]: d,
180
+ [I]: [q, "ap-northeast-1"]
181
+ }],
182
+ endpoint: u,
183
+ [G]: h
184
+ },
185
+ {
186
+ conditions: [{
187
+ [H]: d,
188
+ [I]: [q, "ap-south-1"]
189
+ }],
190
+ endpoint: u,
191
+ [G]: h
192
+ },
193
+ {
194
+ conditions: [{
195
+ [H]: d,
196
+ [I]: [q, "ap-southeast-1"]
197
+ }],
198
+ endpoint: u,
199
+ [G]: h
200
+ },
201
+ {
202
+ conditions: [{
203
+ [H]: d,
204
+ [I]: [q, "ap-southeast-2"]
205
+ }],
206
+ endpoint: u,
207
+ [G]: h
208
+ },
209
+ w,
210
+ {
211
+ conditions: [{
212
+ [H]: d,
213
+ [I]: [q, "ca-central-1"]
214
+ }],
215
+ endpoint: u,
216
+ [G]: h
217
+ },
218
+ {
219
+ conditions: [{
220
+ [H]: d,
221
+ [I]: [q, "eu-central-1"]
222
+ }],
223
+ endpoint: u,
224
+ [G]: h
225
+ },
226
+ {
227
+ conditions: [{
228
+ [H]: d,
229
+ [I]: [q, "eu-north-1"]
230
+ }],
231
+ endpoint: u,
232
+ [G]: h
233
+ },
234
+ {
235
+ conditions: [{
236
+ [H]: d,
237
+ [I]: [q, "eu-west-1"]
238
+ }],
239
+ endpoint: u,
240
+ [G]: h
241
+ },
242
+ {
243
+ conditions: [{
244
+ [H]: d,
245
+ [I]: [q, "eu-west-2"]
246
+ }],
247
+ endpoint: u,
248
+ [G]: h
249
+ },
250
+ {
251
+ conditions: [{
252
+ [H]: d,
253
+ [I]: [q, "eu-west-3"]
254
+ }],
255
+ endpoint: u,
256
+ [G]: h
257
+ },
258
+ {
259
+ conditions: [{
260
+ [H]: d,
261
+ [I]: [q, "sa-east-1"]
262
+ }],
263
+ endpoint: u,
264
+ [G]: h
265
+ },
266
+ {
267
+ conditions: [{
268
+ [H]: d,
269
+ [I]: [q, g]
270
+ }],
271
+ endpoint: u,
272
+ [G]: h
273
+ },
274
+ {
275
+ conditions: [{
276
+ [H]: d,
277
+ [I]: [q, "us-east-2"]
278
+ }],
279
+ endpoint: u,
280
+ [G]: h
281
+ },
282
+ {
283
+ conditions: [{
284
+ [H]: d,
285
+ [I]: [q, "us-west-1"]
286
+ }],
287
+ endpoint: u,
288
+ [G]: h
289
+ },
290
+ {
291
+ conditions: [{
292
+ [H]: d,
293
+ [I]: [q, "us-west-2"]
294
+ }],
295
+ endpoint: u,
296
+ [G]: h
297
+ },
298
+ {
299
+ endpoint: {
300
+ url: i,
301
+ properties: { authSchemes: [{
302
+ name: e,
303
+ signingName: f,
304
+ signingRegion: "{Region}"
305
+ }] },
306
+ headers: v
307
+ },
308
+ [G]: h
309
+ }
310
+ ],
311
+ [G]: j
312
+ },
313
+ {
314
+ conditions: C,
315
+ rules: [
316
+ {
317
+ conditions: D,
318
+ error: "Invalid Configuration: FIPS and custom endpoint are not supported",
319
+ [G]: k
320
+ },
321
+ {
322
+ conditions: E,
323
+ error: "Invalid Configuration: Dualstack and custom endpoint are not supported",
324
+ [G]: k
325
+ },
326
+ {
327
+ endpoint: {
328
+ url: o,
329
+ properties: v,
330
+ headers: v
331
+ },
332
+ [G]: h
333
+ }
334
+ ],
335
+ [G]: j
336
+ },
337
+ {
338
+ conditions: [p],
339
+ rules: [{
340
+ conditions: [r],
341
+ rules: [
342
+ {
343
+ conditions: [x, y],
344
+ rules: [{
345
+ conditions: [{
346
+ [H]: c,
347
+ [I]: [b, z]
348
+ }, B],
349
+ rules: [{
350
+ endpoint: {
351
+ url: "https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",
352
+ properties: v,
353
+ headers: v
354
+ },
355
+ [G]: h
356
+ }],
357
+ [G]: j
358
+ }, {
359
+ error: "FIPS and DualStack are enabled, but this partition does not support one or both",
360
+ [G]: k
361
+ }],
362
+ [G]: j
363
+ },
364
+ {
365
+ conditions: D,
366
+ rules: [{
367
+ conditions: [{
368
+ [H]: c,
369
+ [I]: [z, b]
370
+ }],
371
+ rules: [{
372
+ conditions: [{
373
+ [H]: d,
374
+ [I]: [{
375
+ [H]: l,
376
+ [I]: [A, "name"]
377
+ }, "aws-us-gov"]
378
+ }],
379
+ endpoint: {
380
+ url: "https://sts.{Region}.amazonaws.com",
381
+ properties: v,
382
+ headers: v
383
+ },
384
+ [G]: h
385
+ }, {
386
+ endpoint: {
387
+ url: "https://sts-fips.{Region}.{PartitionResult#dnsSuffix}",
388
+ properties: v,
389
+ headers: v
390
+ },
391
+ [G]: h
392
+ }],
393
+ [G]: j
394
+ }, {
395
+ error: "FIPS is enabled but this partition does not support FIPS",
396
+ [G]: k
397
+ }],
398
+ [G]: j
399
+ },
400
+ {
401
+ conditions: E,
402
+ rules: [{
403
+ conditions: [B],
404
+ rules: [{
405
+ endpoint: {
406
+ url: "https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}",
407
+ properties: v,
408
+ headers: v
409
+ },
410
+ [G]: h
411
+ }],
412
+ [G]: j
413
+ }, {
414
+ error: "DualStack is enabled but this partition does not support DualStack",
415
+ [G]: k
416
+ }],
417
+ [G]: j
418
+ },
419
+ w,
420
+ {
421
+ endpoint: {
422
+ url: i,
423
+ properties: v,
424
+ headers: v
425
+ },
426
+ [G]: h
427
+ }
428
+ ],
429
+ [G]: j
430
+ }],
431
+ [G]: j
432
+ },
433
+ {
434
+ error: "Invalid Configuration: Missing Region",
435
+ [G]: k
436
+ }
437
+ ]
438
+ };
439
+ ruleSet = _data;
440
+ }) });
441
+
442
+ //#endregion
443
+ //#region node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/endpoint/endpointResolver.js
444
+ var import_dist_cjs$39, import_dist_cjs$40, cache, defaultEndpointResolver;
445
+ var init_endpointResolver = __esm({ "node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/endpoint/endpointResolver.js": (() => {
446
+ import_dist_cjs$39 = require_dist_cjs$7();
447
+ import_dist_cjs$40 = require_dist_cjs$8();
448
+ init_ruleset();
449
+ cache = new import_dist_cjs$40.EndpointCache({
450
+ size: 50,
451
+ params: [
452
+ "Endpoint",
453
+ "Region",
454
+ "UseDualStack",
455
+ "UseFIPS",
456
+ "UseGlobalEndpoint"
457
+ ]
458
+ });
459
+ defaultEndpointResolver = (endpointParams, context = {}) => {
460
+ return cache.get(endpointParams, () => (0, import_dist_cjs$40.resolveEndpoint)(ruleSet, {
461
+ endpointParams,
462
+ logger: context.logger
463
+ }));
464
+ };
465
+ import_dist_cjs$40.customEndpointFunctions.aws = import_dist_cjs$39.awsEndpointFunctions;
466
+ }) });
467
+
468
+ //#endregion
469
+ //#region node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.shared.js
470
+ var import_dist_cjs$35, import_dist_cjs$36, import_dist_cjs$37, import_dist_cjs$38, getRuntimeConfig$1;
471
+ var init_runtimeConfig_shared = __esm({ "node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.shared.js": (() => {
472
+ init_dist_es();
473
+ init_dist_es$1();
474
+ import_dist_cjs$35 = require_dist_cjs$1();
475
+ import_dist_cjs$36 = require_dist_cjs$5();
476
+ import_dist_cjs$37 = require_dist_cjs$2();
477
+ import_dist_cjs$38 = require_dist_cjs$24();
478
+ init_httpAuthSchemeProvider();
479
+ init_endpointResolver();
480
+ getRuntimeConfig$1 = (config) => {
481
+ return {
482
+ apiVersion: "2011-06-15",
483
+ base64Decoder: config?.base64Decoder ?? import_dist_cjs$37.fromBase64,
484
+ base64Encoder: config?.base64Encoder ?? import_dist_cjs$37.toBase64,
485
+ disableHostPrefix: config?.disableHostPrefix ?? false,
486
+ endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
487
+ extensions: config?.extensions ?? [],
488
+ httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultSTSHttpAuthSchemeProvider,
489
+ httpAuthSchemes: config?.httpAuthSchemes ?? [{
490
+ schemeId: "aws.auth#sigv4",
491
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
492
+ signer: new AwsSdkSigV4Signer()
493
+ }, {
494
+ schemeId: "smithy.api#noAuth",
495
+ identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})),
496
+ signer: new NoAuthSigner()
497
+ }],
498
+ logger: config?.logger ?? new import_dist_cjs$35.NoOpLogger(),
499
+ serviceId: config?.serviceId ?? "STS",
500
+ urlParser: config?.urlParser ?? import_dist_cjs$36.parseUrl,
501
+ utf8Decoder: config?.utf8Decoder ?? import_dist_cjs$38.fromUtf8,
502
+ utf8Encoder: config?.utf8Encoder ?? import_dist_cjs$38.toUtf8
503
+ };
504
+ };
505
+ }) });
506
+
507
+ //#endregion
508
+ //#region node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.js
509
+ var import_dist_cjs$24, import_dist_cjs$25, import_dist_cjs$26, import_dist_cjs$27, import_dist_cjs$28, import_dist_cjs$29, import_dist_cjs$30, import_dist_cjs$31, import_dist_cjs$32, import_dist_cjs$33, import_dist_cjs$34, getRuntimeConfig;
510
+ var init_runtimeConfig = __esm({ "node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.js": (() => {
511
+ init_dist_es();
512
+ import_dist_cjs$24 = require_dist_cjs$9();
513
+ import_dist_cjs$25 = require_dist_cjs$10();
514
+ init_dist_es$1();
515
+ import_dist_cjs$26 = require_dist_cjs$11();
516
+ import_dist_cjs$27 = require_dist_cjs$12();
517
+ import_dist_cjs$28 = require_dist_cjs$6();
518
+ import_dist_cjs$29 = require_dist_cjs$3();
519
+ import_dist_cjs$30 = require_dist_cjs$13();
520
+ import_dist_cjs$31 = require_dist_cjs$14();
521
+ init_runtimeConfig_shared();
522
+ import_dist_cjs$32 = require_dist_cjs$1();
523
+ import_dist_cjs$33 = require_dist_cjs$15();
524
+ import_dist_cjs$34 = require_dist_cjs$1();
525
+ getRuntimeConfig = (config) => {
526
+ (0, import_dist_cjs$34.emitWarningIfUnsupportedVersion)(process.version);
527
+ const defaultsMode = (0, import_dist_cjs$33.resolveDefaultsModeConfig)(config);
528
+ const defaultConfigProvider = () => defaultsMode().then(import_dist_cjs$32.loadConfigsForDefaultMode);
529
+ const clientSharedValues = getRuntimeConfig$1(config);
530
+ emitWarningIfUnsupportedVersion(process.version);
531
+ const loaderConfig = {
532
+ profile: config?.profile,
533
+ logger: clientSharedValues.logger
534
+ };
535
+ return {
536
+ ...clientSharedValues,
537
+ ...config,
538
+ runtime: "node",
539
+ defaultsMode,
540
+ authSchemePreference: config?.authSchemePreference ?? (0, import_dist_cjs$28.loadConfig)(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
541
+ bodyLengthChecker: config?.bodyLengthChecker ?? import_dist_cjs$30.calculateBodyLength,
542
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, import_dist_cjs$24.createDefaultUserAgentProvider)({
543
+ serviceId: clientSharedValues.serviceId,
544
+ clientVersion: version
545
+ }),
546
+ httpAuthSchemes: config?.httpAuthSchemes ?? [{
547
+ schemeId: "aws.auth#sigv4",
548
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4") || (async (idProps) => await config.credentialDefaultProvider(idProps?.__config || {})()),
549
+ signer: new AwsSdkSigV4Signer()
550
+ }, {
551
+ schemeId: "smithy.api#noAuth",
552
+ identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})),
553
+ signer: new NoAuthSigner()
554
+ }],
555
+ maxAttempts: config?.maxAttempts ?? (0, import_dist_cjs$28.loadConfig)(import_dist_cjs$27.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
556
+ region: config?.region ?? (0, import_dist_cjs$28.loadConfig)(import_dist_cjs$25.NODE_REGION_CONFIG_OPTIONS, {
557
+ ...import_dist_cjs$25.NODE_REGION_CONFIG_FILE_OPTIONS,
558
+ ...loaderConfig
559
+ }),
560
+ requestHandler: import_dist_cjs$29.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
561
+ retryMode: config?.retryMode ?? (0, import_dist_cjs$28.loadConfig)({
562
+ ...import_dist_cjs$27.NODE_RETRY_MODE_CONFIG_OPTIONS,
563
+ default: async () => (await defaultConfigProvider()).retryMode || import_dist_cjs$31.DEFAULT_RETRY_MODE
564
+ }, config),
565
+ sha256: config?.sha256 ?? import_dist_cjs$26.Hash.bind(null, "sha256"),
566
+ streamCollector: config?.streamCollector ?? import_dist_cjs$29.streamCollector,
567
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, import_dist_cjs$28.loadConfig)(import_dist_cjs$25.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
568
+ useFipsEndpoint: config?.useFipsEndpoint ?? (0, import_dist_cjs$28.loadConfig)(import_dist_cjs$25.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
569
+ userAgentAppId: config?.userAgentAppId ?? (0, import_dist_cjs$28.loadConfig)(import_dist_cjs$24.NODE_APP_ID_CONFIG_OPTIONS, loaderConfig)
570
+ };
571
+ };
572
+ }) });
573
+
574
+ //#endregion
575
+ //#region node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/auth/httpAuthExtensionConfiguration.js
576
+ var getHttpAuthExtensionConfiguration, resolveHttpAuthRuntimeConfig;
577
+ var init_httpAuthExtensionConfiguration = __esm({ "node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/auth/httpAuthExtensionConfiguration.js": (() => {
578
+ getHttpAuthExtensionConfiguration = (runtimeConfig) => {
579
+ const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
580
+ let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
581
+ let _credentials = runtimeConfig.credentials;
582
+ return {
583
+ setHttpAuthScheme(httpAuthScheme) {
584
+ const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
585
+ if (index === -1) _httpAuthSchemes.push(httpAuthScheme);
586
+ else _httpAuthSchemes.splice(index, 1, httpAuthScheme);
587
+ },
588
+ httpAuthSchemes() {
589
+ return _httpAuthSchemes;
590
+ },
591
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
592
+ _httpAuthSchemeProvider = httpAuthSchemeProvider;
593
+ },
594
+ httpAuthSchemeProvider() {
595
+ return _httpAuthSchemeProvider;
596
+ },
597
+ setCredentials(credentials) {
598
+ _credentials = credentials;
599
+ },
600
+ credentials() {
601
+ return _credentials;
602
+ }
603
+ };
604
+ };
605
+ resolveHttpAuthRuntimeConfig = (config) => {
606
+ return {
607
+ httpAuthSchemes: config.httpAuthSchemes(),
608
+ httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
609
+ credentials: config.credentials()
610
+ };
611
+ };
612
+ }) });
613
+
614
+ //#endregion
615
+ //#region node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeExtensions.js
616
+ var import_dist_cjs$21, import_dist_cjs$22, import_dist_cjs$23, resolveRuntimeExtensions;
617
+ var init_runtimeExtensions = __esm({ "node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeExtensions.js": (() => {
618
+ import_dist_cjs$21 = require_dist_cjs$16();
619
+ import_dist_cjs$22 = require_dist_cjs$4();
620
+ import_dist_cjs$23 = require_dist_cjs$1();
621
+ init_httpAuthExtensionConfiguration();
622
+ resolveRuntimeExtensions = (runtimeConfig, extensions) => {
623
+ const extensionConfiguration = Object.assign((0, import_dist_cjs$21.getAwsRegionExtensionConfiguration)(runtimeConfig), (0, import_dist_cjs$23.getDefaultExtensionConfiguration)(runtimeConfig), (0, import_dist_cjs$22.getHttpHandlerExtensionConfiguration)(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
624
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
625
+ return Object.assign(runtimeConfig, (0, import_dist_cjs$21.resolveAwsRegionExtensionConfiguration)(extensionConfiguration), (0, import_dist_cjs$23.resolveDefaultRuntimeConfig)(extensionConfiguration), (0, import_dist_cjs$22.resolveHttpHandlerRuntimeConfig)(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
626
+ };
627
+ }) });
628
+
629
+ //#endregion
630
+ //#region node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/STSClient.js
631
+ var import_dist_cjs$12, import_dist_cjs$13, import_dist_cjs$14, import_dist_cjs$15, import_dist_cjs$16, import_dist_cjs$17, import_dist_cjs$18, import_dist_cjs$19, import_dist_cjs$20, STSClient;
632
+ var init_STSClient = __esm({ "node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/STSClient.js": (() => {
633
+ import_dist_cjs$12 = require_dist_cjs$17();
634
+ import_dist_cjs$13 = require_dist_cjs$18();
635
+ import_dist_cjs$14 = require_dist_cjs$19();
636
+ import_dist_cjs$15 = require_dist_cjs$20();
637
+ import_dist_cjs$16 = require_dist_cjs$10();
638
+ init_dist_es$1();
639
+ import_dist_cjs$17 = require_dist_cjs$21();
640
+ import_dist_cjs$18 = require_dist_cjs$22();
641
+ import_dist_cjs$19 = require_dist_cjs$12();
642
+ import_dist_cjs$20 = require_dist_cjs$1();
643
+ init_httpAuthSchemeProvider();
644
+ init_EndpointParameters();
645
+ init_runtimeConfig();
646
+ init_runtimeExtensions();
647
+ STSClient = class extends import_dist_cjs$20.Client {
648
+ config;
649
+ constructor(...[configuration]) {
650
+ const _config_0 = getRuntimeConfig(configuration || {});
651
+ super(_config_0);
652
+ this.initConfig = _config_0;
653
+ this.config = resolveRuntimeExtensions(resolveHttpAuthSchemeConfig((0, import_dist_cjs$18.resolveEndpointConfig)((0, import_dist_cjs$12.resolveHostHeaderConfig)((0, import_dist_cjs$16.resolveRegionConfig)((0, import_dist_cjs$19.resolveRetryConfig)((0, import_dist_cjs$15.resolveUserAgentConfig)(resolveClientEndpointParameters(_config_0))))))), configuration?.extensions || []);
654
+ this.middlewareStack.use((0, import_dist_cjs$15.getUserAgentPlugin)(this.config));
655
+ this.middlewareStack.use((0, import_dist_cjs$19.getRetryPlugin)(this.config));
656
+ this.middlewareStack.use((0, import_dist_cjs$17.getContentLengthPlugin)(this.config));
657
+ this.middlewareStack.use((0, import_dist_cjs$12.getHostHeaderPlugin)(this.config));
658
+ this.middlewareStack.use((0, import_dist_cjs$13.getLoggerPlugin)(this.config));
659
+ this.middlewareStack.use((0, import_dist_cjs$14.getRecursionDetectionPlugin)(this.config));
660
+ this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
661
+ httpAuthSchemeParametersProvider: defaultSTSHttpAuthSchemeParametersProvider,
662
+ identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({ "aws.auth#sigv4": config.credentials })
663
+ }));
664
+ this.middlewareStack.use(getHttpSigningPlugin(this.config));
665
+ }
666
+ destroy() {
667
+ super.destroy();
668
+ }
669
+ };
670
+ }) });
671
+
672
+ //#endregion
673
+ //#region node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/models/STSServiceException.js
674
+ var import_dist_cjs$11, STSServiceException;
675
+ var init_STSServiceException = __esm({ "node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/models/STSServiceException.js": (() => {
676
+ import_dist_cjs$11 = require_dist_cjs$1();
677
+ STSServiceException = class STSServiceException extends import_dist_cjs$11.ServiceException {
678
+ constructor(options) {
679
+ super(options);
680
+ Object.setPrototypeOf(this, STSServiceException.prototype);
681
+ }
682
+ };
683
+ }) });
684
+
685
+ //#endregion
686
+ //#region node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/models/models_0.js
687
+ var import_dist_cjs$10, CredentialsFilterSensitiveLog, AssumeRoleResponseFilterSensitiveLog, ExpiredTokenException, MalformedPolicyDocumentException, PackedPolicyTooLargeException, RegionDisabledException, IDPRejectedClaimException, InvalidIdentityTokenException, AssumeRoleWithWebIdentityRequestFilterSensitiveLog, AssumeRoleWithWebIdentityResponseFilterSensitiveLog, IDPCommunicationErrorException;
688
+ var init_models_0 = __esm({ "node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/models/models_0.js": (() => {
689
+ import_dist_cjs$10 = require_dist_cjs$1();
690
+ init_STSServiceException();
691
+ CredentialsFilterSensitiveLog = (obj) => ({
692
+ ...obj,
693
+ ...obj.SecretAccessKey && { SecretAccessKey: import_dist_cjs$10.SENSITIVE_STRING }
694
+ });
695
+ AssumeRoleResponseFilterSensitiveLog = (obj) => ({
696
+ ...obj,
697
+ ...obj.Credentials && { Credentials: CredentialsFilterSensitiveLog(obj.Credentials) }
698
+ });
699
+ ExpiredTokenException = class ExpiredTokenException extends STSServiceException {
700
+ name = "ExpiredTokenException";
701
+ $fault = "client";
702
+ constructor(opts) {
703
+ super({
704
+ name: "ExpiredTokenException",
705
+ $fault: "client",
706
+ ...opts
707
+ });
708
+ Object.setPrototypeOf(this, ExpiredTokenException.prototype);
709
+ }
710
+ };
711
+ MalformedPolicyDocumentException = class MalformedPolicyDocumentException extends STSServiceException {
712
+ name = "MalformedPolicyDocumentException";
713
+ $fault = "client";
714
+ constructor(opts) {
715
+ super({
716
+ name: "MalformedPolicyDocumentException",
717
+ $fault: "client",
718
+ ...opts
719
+ });
720
+ Object.setPrototypeOf(this, MalformedPolicyDocumentException.prototype);
721
+ }
722
+ };
723
+ PackedPolicyTooLargeException = class PackedPolicyTooLargeException extends STSServiceException {
724
+ name = "PackedPolicyTooLargeException";
725
+ $fault = "client";
726
+ constructor(opts) {
727
+ super({
728
+ name: "PackedPolicyTooLargeException",
729
+ $fault: "client",
730
+ ...opts
731
+ });
732
+ Object.setPrototypeOf(this, PackedPolicyTooLargeException.prototype);
733
+ }
734
+ };
735
+ RegionDisabledException = class RegionDisabledException extends STSServiceException {
736
+ name = "RegionDisabledException";
737
+ $fault = "client";
738
+ constructor(opts) {
739
+ super({
740
+ name: "RegionDisabledException",
741
+ $fault: "client",
742
+ ...opts
743
+ });
744
+ Object.setPrototypeOf(this, RegionDisabledException.prototype);
745
+ }
746
+ };
747
+ IDPRejectedClaimException = class IDPRejectedClaimException extends STSServiceException {
748
+ name = "IDPRejectedClaimException";
749
+ $fault = "client";
750
+ constructor(opts) {
751
+ super({
752
+ name: "IDPRejectedClaimException",
753
+ $fault: "client",
754
+ ...opts
755
+ });
756
+ Object.setPrototypeOf(this, IDPRejectedClaimException.prototype);
757
+ }
758
+ };
759
+ InvalidIdentityTokenException = class InvalidIdentityTokenException extends STSServiceException {
760
+ name = "InvalidIdentityTokenException";
761
+ $fault = "client";
762
+ constructor(opts) {
763
+ super({
764
+ name: "InvalidIdentityTokenException",
765
+ $fault: "client",
766
+ ...opts
767
+ });
768
+ Object.setPrototypeOf(this, InvalidIdentityTokenException.prototype);
769
+ }
770
+ };
771
+ AssumeRoleWithWebIdentityRequestFilterSensitiveLog = (obj) => ({
772
+ ...obj,
773
+ ...obj.WebIdentityToken && { WebIdentityToken: import_dist_cjs$10.SENSITIVE_STRING }
774
+ });
775
+ AssumeRoleWithWebIdentityResponseFilterSensitiveLog = (obj) => ({
776
+ ...obj,
777
+ ...obj.Credentials && { Credentials: CredentialsFilterSensitiveLog(obj.Credentials) }
778
+ });
779
+ IDPCommunicationErrorException = class IDPCommunicationErrorException extends STSServiceException {
780
+ name = "IDPCommunicationErrorException";
781
+ $fault = "client";
782
+ constructor(opts) {
783
+ super({
784
+ name: "IDPCommunicationErrorException",
785
+ $fault: "client",
786
+ ...opts
787
+ });
788
+ Object.setPrototypeOf(this, IDPCommunicationErrorException.prototype);
789
+ }
790
+ };
791
+ }) });
792
+
793
+ //#endregion
794
+ //#region node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/protocols/Aws_query.js
795
+ var import_dist_cjs$8, import_dist_cjs$9, se_AssumeRoleCommand, se_AssumeRoleWithWebIdentityCommand, de_AssumeRoleCommand, de_AssumeRoleWithWebIdentityCommand, de_CommandError, de_ExpiredTokenExceptionRes, de_IDPCommunicationErrorExceptionRes, de_IDPRejectedClaimExceptionRes, de_InvalidIdentityTokenExceptionRes, de_MalformedPolicyDocumentExceptionRes, de_PackedPolicyTooLargeExceptionRes, de_RegionDisabledExceptionRes, se_AssumeRoleRequest, se_AssumeRoleWithWebIdentityRequest, se_policyDescriptorListType, se_PolicyDescriptorType, se_ProvidedContext, se_ProvidedContextsListType, se_Tag, se_tagKeyListType, se_tagListType, de_AssumedRoleUser, de_AssumeRoleResponse, de_AssumeRoleWithWebIdentityResponse, de_Credentials, de_ExpiredTokenException, de_IDPCommunicationErrorException, de_IDPRejectedClaimException, de_InvalidIdentityTokenException, de_MalformedPolicyDocumentException, de_PackedPolicyTooLargeException, de_RegionDisabledException, deserializeMetadata, throwDefaultError, buildHttpRpcRequest, SHARED_HEADERS, _, _A, _AKI, _AR, _ARI, _ARU, _ARWWI, _Ar, _Au, _C, _CA, _DS, _E, _EI, _K, _P, _PA, _PAr, _PC, _PI, _PPS, _Pr, _RA, _RSN, _SAK, _SFWIT, _SI, _SN, _ST, _T, _TC, _TTK, _V, _Va, _WIT, _a, _m, buildFormUrlencodedString, loadQueryErrorCode;
796
+ var init_Aws_query = __esm({ "node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/protocols/Aws_query.js": (() => {
797
+ init_dist_es();
798
+ import_dist_cjs$8 = require_dist_cjs$4();
799
+ import_dist_cjs$9 = require_dist_cjs$1();
800
+ init_models_0();
801
+ init_STSServiceException();
802
+ se_AssumeRoleCommand = async (input, context) => {
803
+ const headers = SHARED_HEADERS;
804
+ let body;
805
+ body = buildFormUrlencodedString({
806
+ ...se_AssumeRoleRequest(input, context),
807
+ [_A]: _AR,
808
+ [_V]: _
809
+ });
810
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
811
+ };
812
+ se_AssumeRoleWithWebIdentityCommand = async (input, context) => {
813
+ const headers = SHARED_HEADERS;
814
+ let body;
815
+ body = buildFormUrlencodedString({
816
+ ...se_AssumeRoleWithWebIdentityRequest(input, context),
817
+ [_A]: _ARWWI,
818
+ [_V]: _
819
+ });
820
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
821
+ };
822
+ de_AssumeRoleCommand = async (output, context) => {
823
+ if (output.statusCode >= 300) return de_CommandError(output, context);
824
+ const data = await parseXmlBody(output.body, context);
825
+ let contents = {};
826
+ contents = de_AssumeRoleResponse(data.AssumeRoleResult, context);
827
+ return {
828
+ $metadata: deserializeMetadata(output),
829
+ ...contents
830
+ };
831
+ };
832
+ de_AssumeRoleWithWebIdentityCommand = async (output, context) => {
833
+ if (output.statusCode >= 300) return de_CommandError(output, context);
834
+ const data = await parseXmlBody(output.body, context);
835
+ let contents = {};
836
+ contents = de_AssumeRoleWithWebIdentityResponse(data.AssumeRoleWithWebIdentityResult, context);
837
+ return {
838
+ $metadata: deserializeMetadata(output),
839
+ ...contents
840
+ };
841
+ };
842
+ de_CommandError = async (output, context) => {
843
+ const parsedOutput = {
844
+ ...output,
845
+ body: await parseXmlErrorBody(output.body, context)
846
+ };
847
+ const errorCode = loadQueryErrorCode(output, parsedOutput.body);
848
+ switch (errorCode) {
849
+ case "ExpiredTokenException":
850
+ case "com.amazonaws.sts#ExpiredTokenException": throw await de_ExpiredTokenExceptionRes(parsedOutput, context);
851
+ case "MalformedPolicyDocument":
852
+ case "com.amazonaws.sts#MalformedPolicyDocumentException": throw await de_MalformedPolicyDocumentExceptionRes(parsedOutput, context);
853
+ case "PackedPolicyTooLarge":
854
+ case "com.amazonaws.sts#PackedPolicyTooLargeException": throw await de_PackedPolicyTooLargeExceptionRes(parsedOutput, context);
855
+ case "RegionDisabledException":
856
+ case "com.amazonaws.sts#RegionDisabledException": throw await de_RegionDisabledExceptionRes(parsedOutput, context);
857
+ case "IDPCommunicationError":
858
+ case "com.amazonaws.sts#IDPCommunicationErrorException": throw await de_IDPCommunicationErrorExceptionRes(parsedOutput, context);
859
+ case "IDPRejectedClaim":
860
+ case "com.amazonaws.sts#IDPRejectedClaimException": throw await de_IDPRejectedClaimExceptionRes(parsedOutput, context);
861
+ case "InvalidIdentityToken":
862
+ case "com.amazonaws.sts#InvalidIdentityTokenException": throw await de_InvalidIdentityTokenExceptionRes(parsedOutput, context);
863
+ default:
864
+ const parsedBody = parsedOutput.body;
865
+ return throwDefaultError({
866
+ output,
867
+ parsedBody: parsedBody.Error,
868
+ errorCode
869
+ });
870
+ }
871
+ };
872
+ de_ExpiredTokenExceptionRes = async (parsedOutput, context) => {
873
+ const body = parsedOutput.body;
874
+ const deserialized = de_ExpiredTokenException(body.Error, context);
875
+ return (0, import_dist_cjs$9.decorateServiceException)(new ExpiredTokenException({
876
+ $metadata: deserializeMetadata(parsedOutput),
877
+ ...deserialized
878
+ }), body);
879
+ };
880
+ de_IDPCommunicationErrorExceptionRes = async (parsedOutput, context) => {
881
+ const body = parsedOutput.body;
882
+ const deserialized = de_IDPCommunicationErrorException(body.Error, context);
883
+ return (0, import_dist_cjs$9.decorateServiceException)(new IDPCommunicationErrorException({
884
+ $metadata: deserializeMetadata(parsedOutput),
885
+ ...deserialized
886
+ }), body);
887
+ };
888
+ de_IDPRejectedClaimExceptionRes = async (parsedOutput, context) => {
889
+ const body = parsedOutput.body;
890
+ const deserialized = de_IDPRejectedClaimException(body.Error, context);
891
+ return (0, import_dist_cjs$9.decorateServiceException)(new IDPRejectedClaimException({
892
+ $metadata: deserializeMetadata(parsedOutput),
893
+ ...deserialized
894
+ }), body);
895
+ };
896
+ de_InvalidIdentityTokenExceptionRes = async (parsedOutput, context) => {
897
+ const body = parsedOutput.body;
898
+ const deserialized = de_InvalidIdentityTokenException(body.Error, context);
899
+ return (0, import_dist_cjs$9.decorateServiceException)(new InvalidIdentityTokenException({
900
+ $metadata: deserializeMetadata(parsedOutput),
901
+ ...deserialized
902
+ }), body);
903
+ };
904
+ de_MalformedPolicyDocumentExceptionRes = async (parsedOutput, context) => {
905
+ const body = parsedOutput.body;
906
+ const deserialized = de_MalformedPolicyDocumentException(body.Error, context);
907
+ return (0, import_dist_cjs$9.decorateServiceException)(new MalformedPolicyDocumentException({
908
+ $metadata: deserializeMetadata(parsedOutput),
909
+ ...deserialized
910
+ }), body);
911
+ };
912
+ de_PackedPolicyTooLargeExceptionRes = async (parsedOutput, context) => {
913
+ const body = parsedOutput.body;
914
+ const deserialized = de_PackedPolicyTooLargeException(body.Error, context);
915
+ return (0, import_dist_cjs$9.decorateServiceException)(new PackedPolicyTooLargeException({
916
+ $metadata: deserializeMetadata(parsedOutput),
917
+ ...deserialized
918
+ }), body);
919
+ };
920
+ de_RegionDisabledExceptionRes = async (parsedOutput, context) => {
921
+ const body = parsedOutput.body;
922
+ const deserialized = de_RegionDisabledException(body.Error, context);
923
+ return (0, import_dist_cjs$9.decorateServiceException)(new RegionDisabledException({
924
+ $metadata: deserializeMetadata(parsedOutput),
925
+ ...deserialized
926
+ }), body);
927
+ };
928
+ se_AssumeRoleRequest = (input, context) => {
929
+ const entries = {};
930
+ if (input[_RA] != null) entries[_RA] = input[_RA];
931
+ if (input[_RSN] != null) entries[_RSN] = input[_RSN];
932
+ if (input[_PA] != null) {
933
+ const memberEntries = se_policyDescriptorListType(input[_PA], context);
934
+ if (input[_PA]?.length === 0) entries.PolicyArns = [];
935
+ Object.entries(memberEntries).forEach(([key, value]) => {
936
+ const loc = `PolicyArns.${key}`;
937
+ entries[loc] = value;
938
+ });
939
+ }
940
+ if (input[_P] != null) entries[_P] = input[_P];
941
+ if (input[_DS] != null) entries[_DS] = input[_DS];
942
+ if (input[_T] != null) {
943
+ const memberEntries = se_tagListType(input[_T], context);
944
+ if (input[_T]?.length === 0) entries.Tags = [];
945
+ Object.entries(memberEntries).forEach(([key, value]) => {
946
+ const loc = `Tags.${key}`;
947
+ entries[loc] = value;
948
+ });
949
+ }
950
+ if (input[_TTK] != null) {
951
+ const memberEntries = se_tagKeyListType(input[_TTK], context);
952
+ if (input[_TTK]?.length === 0) entries.TransitiveTagKeys = [];
953
+ Object.entries(memberEntries).forEach(([key, value]) => {
954
+ const loc = `TransitiveTagKeys.${key}`;
955
+ entries[loc] = value;
956
+ });
957
+ }
958
+ if (input[_EI] != null) entries[_EI] = input[_EI];
959
+ if (input[_SN] != null) entries[_SN] = input[_SN];
960
+ if (input[_TC] != null) entries[_TC] = input[_TC];
961
+ if (input[_SI] != null) entries[_SI] = input[_SI];
962
+ if (input[_PC] != null) {
963
+ const memberEntries = se_ProvidedContextsListType(input[_PC], context);
964
+ if (input[_PC]?.length === 0) entries.ProvidedContexts = [];
965
+ Object.entries(memberEntries).forEach(([key, value]) => {
966
+ const loc = `ProvidedContexts.${key}`;
967
+ entries[loc] = value;
968
+ });
969
+ }
970
+ return entries;
971
+ };
972
+ se_AssumeRoleWithWebIdentityRequest = (input, context) => {
973
+ const entries = {};
974
+ if (input[_RA] != null) entries[_RA] = input[_RA];
975
+ if (input[_RSN] != null) entries[_RSN] = input[_RSN];
976
+ if (input[_WIT] != null) entries[_WIT] = input[_WIT];
977
+ if (input[_PI] != null) entries[_PI] = input[_PI];
978
+ if (input[_PA] != null) {
979
+ const memberEntries = se_policyDescriptorListType(input[_PA], context);
980
+ if (input[_PA]?.length === 0) entries.PolicyArns = [];
981
+ Object.entries(memberEntries).forEach(([key, value]) => {
982
+ const loc = `PolicyArns.${key}`;
983
+ entries[loc] = value;
984
+ });
985
+ }
986
+ if (input[_P] != null) entries[_P] = input[_P];
987
+ if (input[_DS] != null) entries[_DS] = input[_DS];
988
+ return entries;
989
+ };
990
+ se_policyDescriptorListType = (input, context) => {
991
+ const entries = {};
992
+ let counter = 1;
993
+ for (const entry of input) {
994
+ if (entry === null) continue;
995
+ const memberEntries = se_PolicyDescriptorType(entry, context);
996
+ Object.entries(memberEntries).forEach(([key, value]) => {
997
+ entries[`member.${counter}.${key}`] = value;
998
+ });
999
+ counter++;
1000
+ }
1001
+ return entries;
1002
+ };
1003
+ se_PolicyDescriptorType = (input, context) => {
1004
+ const entries = {};
1005
+ if (input[_a] != null) entries[_a] = input[_a];
1006
+ return entries;
1007
+ };
1008
+ se_ProvidedContext = (input, context) => {
1009
+ const entries = {};
1010
+ if (input[_PAr] != null) entries[_PAr] = input[_PAr];
1011
+ if (input[_CA] != null) entries[_CA] = input[_CA];
1012
+ return entries;
1013
+ };
1014
+ se_ProvidedContextsListType = (input, context) => {
1015
+ const entries = {};
1016
+ let counter = 1;
1017
+ for (const entry of input) {
1018
+ if (entry === null) continue;
1019
+ const memberEntries = se_ProvidedContext(entry, context);
1020
+ Object.entries(memberEntries).forEach(([key, value]) => {
1021
+ entries[`member.${counter}.${key}`] = value;
1022
+ });
1023
+ counter++;
1024
+ }
1025
+ return entries;
1026
+ };
1027
+ se_Tag = (input, context) => {
1028
+ const entries = {};
1029
+ if (input[_K] != null) entries[_K] = input[_K];
1030
+ if (input[_Va] != null) entries[_Va] = input[_Va];
1031
+ return entries;
1032
+ };
1033
+ se_tagKeyListType = (input, context) => {
1034
+ const entries = {};
1035
+ let counter = 1;
1036
+ for (const entry of input) {
1037
+ if (entry === null) continue;
1038
+ entries[`member.${counter}`] = entry;
1039
+ counter++;
1040
+ }
1041
+ return entries;
1042
+ };
1043
+ se_tagListType = (input, context) => {
1044
+ const entries = {};
1045
+ let counter = 1;
1046
+ for (const entry of input) {
1047
+ if (entry === null) continue;
1048
+ const memberEntries = se_Tag(entry, context);
1049
+ Object.entries(memberEntries).forEach(([key, value]) => {
1050
+ entries[`member.${counter}.${key}`] = value;
1051
+ });
1052
+ counter++;
1053
+ }
1054
+ return entries;
1055
+ };
1056
+ de_AssumedRoleUser = (output, context) => {
1057
+ const contents = {};
1058
+ if (output[_ARI] != null) contents[_ARI] = (0, import_dist_cjs$9.expectString)(output[_ARI]);
1059
+ if (output[_Ar] != null) contents[_Ar] = (0, import_dist_cjs$9.expectString)(output[_Ar]);
1060
+ return contents;
1061
+ };
1062
+ de_AssumeRoleResponse = (output, context) => {
1063
+ const contents = {};
1064
+ if (output[_C] != null) contents[_C] = de_Credentials(output[_C], context);
1065
+ if (output[_ARU] != null) contents[_ARU] = de_AssumedRoleUser(output[_ARU], context);
1066
+ if (output[_PPS] != null) contents[_PPS] = (0, import_dist_cjs$9.strictParseInt32)(output[_PPS]);
1067
+ if (output[_SI] != null) contents[_SI] = (0, import_dist_cjs$9.expectString)(output[_SI]);
1068
+ return contents;
1069
+ };
1070
+ de_AssumeRoleWithWebIdentityResponse = (output, context) => {
1071
+ const contents = {};
1072
+ if (output[_C] != null) contents[_C] = de_Credentials(output[_C], context);
1073
+ if (output[_SFWIT] != null) contents[_SFWIT] = (0, import_dist_cjs$9.expectString)(output[_SFWIT]);
1074
+ if (output[_ARU] != null) contents[_ARU] = de_AssumedRoleUser(output[_ARU], context);
1075
+ if (output[_PPS] != null) contents[_PPS] = (0, import_dist_cjs$9.strictParseInt32)(output[_PPS]);
1076
+ if (output[_Pr] != null) contents[_Pr] = (0, import_dist_cjs$9.expectString)(output[_Pr]);
1077
+ if (output[_Au] != null) contents[_Au] = (0, import_dist_cjs$9.expectString)(output[_Au]);
1078
+ if (output[_SI] != null) contents[_SI] = (0, import_dist_cjs$9.expectString)(output[_SI]);
1079
+ return contents;
1080
+ };
1081
+ de_Credentials = (output, context) => {
1082
+ const contents = {};
1083
+ if (output[_AKI] != null) contents[_AKI] = (0, import_dist_cjs$9.expectString)(output[_AKI]);
1084
+ if (output[_SAK] != null) contents[_SAK] = (0, import_dist_cjs$9.expectString)(output[_SAK]);
1085
+ if (output[_ST] != null) contents[_ST] = (0, import_dist_cjs$9.expectString)(output[_ST]);
1086
+ if (output[_E] != null) contents[_E] = (0, import_dist_cjs$9.expectNonNull)((0, import_dist_cjs$9.parseRfc3339DateTimeWithOffset)(output[_E]));
1087
+ return contents;
1088
+ };
1089
+ de_ExpiredTokenException = (output, context) => {
1090
+ const contents = {};
1091
+ if (output[_m] != null) contents[_m] = (0, import_dist_cjs$9.expectString)(output[_m]);
1092
+ return contents;
1093
+ };
1094
+ de_IDPCommunicationErrorException = (output, context) => {
1095
+ const contents = {};
1096
+ if (output[_m] != null) contents[_m] = (0, import_dist_cjs$9.expectString)(output[_m]);
1097
+ return contents;
1098
+ };
1099
+ de_IDPRejectedClaimException = (output, context) => {
1100
+ const contents = {};
1101
+ if (output[_m] != null) contents[_m] = (0, import_dist_cjs$9.expectString)(output[_m]);
1102
+ return contents;
1103
+ };
1104
+ de_InvalidIdentityTokenException = (output, context) => {
1105
+ const contents = {};
1106
+ if (output[_m] != null) contents[_m] = (0, import_dist_cjs$9.expectString)(output[_m]);
1107
+ return contents;
1108
+ };
1109
+ de_MalformedPolicyDocumentException = (output, context) => {
1110
+ const contents = {};
1111
+ if (output[_m] != null) contents[_m] = (0, import_dist_cjs$9.expectString)(output[_m]);
1112
+ return contents;
1113
+ };
1114
+ de_PackedPolicyTooLargeException = (output, context) => {
1115
+ const contents = {};
1116
+ if (output[_m] != null) contents[_m] = (0, import_dist_cjs$9.expectString)(output[_m]);
1117
+ return contents;
1118
+ };
1119
+ de_RegionDisabledException = (output, context) => {
1120
+ const contents = {};
1121
+ if (output[_m] != null) contents[_m] = (0, import_dist_cjs$9.expectString)(output[_m]);
1122
+ return contents;
1123
+ };
1124
+ deserializeMetadata = (output) => ({
1125
+ httpStatusCode: output.statusCode,
1126
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
1127
+ extendedRequestId: output.headers["x-amz-id-2"],
1128
+ cfId: output.headers["x-amz-cf-id"]
1129
+ });
1130
+ throwDefaultError = (0, import_dist_cjs$9.withBaseException)(STSServiceException);
1131
+ buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
1132
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1133
+ const contents = {
1134
+ protocol,
1135
+ hostname,
1136
+ port,
1137
+ method: "POST",
1138
+ path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
1139
+ headers
1140
+ };
1141
+ if (resolvedHostname !== void 0) contents.hostname = resolvedHostname;
1142
+ if (body !== void 0) contents.body = body;
1143
+ return new import_dist_cjs$8.HttpRequest(contents);
1144
+ };
1145
+ SHARED_HEADERS = { "content-type": "application/x-www-form-urlencoded" };
1146
+ _ = "2011-06-15";
1147
+ _A = "Action";
1148
+ _AKI = "AccessKeyId";
1149
+ _AR = "AssumeRole";
1150
+ _ARI = "AssumedRoleId";
1151
+ _ARU = "AssumedRoleUser";
1152
+ _ARWWI = "AssumeRoleWithWebIdentity";
1153
+ _Ar = "Arn";
1154
+ _Au = "Audience";
1155
+ _C = "Credentials";
1156
+ _CA = "ContextAssertion";
1157
+ _DS = "DurationSeconds";
1158
+ _E = "Expiration";
1159
+ _EI = "ExternalId";
1160
+ _K = "Key";
1161
+ _P = "Policy";
1162
+ _PA = "PolicyArns";
1163
+ _PAr = "ProviderArn";
1164
+ _PC = "ProvidedContexts";
1165
+ _PI = "ProviderId";
1166
+ _PPS = "PackedPolicySize";
1167
+ _Pr = "Provider";
1168
+ _RA = "RoleArn";
1169
+ _RSN = "RoleSessionName";
1170
+ _SAK = "SecretAccessKey";
1171
+ _SFWIT = "SubjectFromWebIdentityToken";
1172
+ _SI = "SourceIdentity";
1173
+ _SN = "SerialNumber";
1174
+ _ST = "SessionToken";
1175
+ _T = "Tags";
1176
+ _TC = "TokenCode";
1177
+ _TTK = "TransitiveTagKeys";
1178
+ _V = "Version";
1179
+ _Va = "Value";
1180
+ _WIT = "WebIdentityToken";
1181
+ _a = "arn";
1182
+ _m = "message";
1183
+ buildFormUrlencodedString = (formEntries) => Object.entries(formEntries).map(([key, value]) => (0, import_dist_cjs$9.extendedEncodeURIComponent)(key) + "=" + (0, import_dist_cjs$9.extendedEncodeURIComponent)(value)).join("&");
1184
+ loadQueryErrorCode = (output, data) => {
1185
+ if (data.Error?.Code !== void 0) return data.Error.Code;
1186
+ if (output.statusCode == 404) return "NotFound";
1187
+ };
1188
+ }) });
1189
+
1190
+ //#endregion
1191
+ //#region node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/commands/AssumeRoleCommand.js
1192
+ var import_dist_cjs$5, import_dist_cjs$6, import_dist_cjs$7, AssumeRoleCommand;
1193
+ var init_AssumeRoleCommand = __esm({ "node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/commands/AssumeRoleCommand.js": (() => {
1194
+ import_dist_cjs$5 = require_dist_cjs$22();
1195
+ import_dist_cjs$6 = require_dist_cjs$23();
1196
+ import_dist_cjs$7 = require_dist_cjs$1();
1197
+ init_EndpointParameters();
1198
+ init_models_0();
1199
+ init_Aws_query();
1200
+ AssumeRoleCommand = class extends import_dist_cjs$7.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o$1) {
1201
+ return [(0, import_dist_cjs$6.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_dist_cjs$5.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())];
1202
+ }).s("AWSSecurityTokenServiceV20110615", "AssumeRole", {}).n("STSClient", "AssumeRoleCommand").f(void 0, AssumeRoleResponseFilterSensitiveLog).ser(se_AssumeRoleCommand).de(de_AssumeRoleCommand).build() {};
1203
+ }) });
1204
+
1205
+ //#endregion
1206
+ //#region node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/commands/AssumeRoleWithWebIdentityCommand.js
1207
+ var import_dist_cjs$2, import_dist_cjs$3, import_dist_cjs$4, AssumeRoleWithWebIdentityCommand;
1208
+ var init_AssumeRoleWithWebIdentityCommand = __esm({ "node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/commands/AssumeRoleWithWebIdentityCommand.js": (() => {
1209
+ import_dist_cjs$2 = require_dist_cjs$22();
1210
+ import_dist_cjs$3 = require_dist_cjs$23();
1211
+ import_dist_cjs$4 = require_dist_cjs$1();
1212
+ init_EndpointParameters();
1213
+ init_models_0();
1214
+ init_Aws_query();
1215
+ AssumeRoleWithWebIdentityCommand = class extends import_dist_cjs$4.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o$1) {
1216
+ return [(0, import_dist_cjs$3.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_dist_cjs$2.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())];
1217
+ }).s("AWSSecurityTokenServiceV20110615", "AssumeRoleWithWebIdentity", {}).n("STSClient", "AssumeRoleWithWebIdentityCommand").f(AssumeRoleWithWebIdentityRequestFilterSensitiveLog, AssumeRoleWithWebIdentityResponseFilterSensitiveLog).ser(se_AssumeRoleWithWebIdentityCommand).de(de_AssumeRoleWithWebIdentityCommand).build() {};
1218
+ }) });
1219
+
1220
+ //#endregion
1221
+ //#region node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/STS.js
1222
+ var import_dist_cjs$1, commands, STS;
1223
+ var init_STS = __esm({ "node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/STS.js": (() => {
1224
+ import_dist_cjs$1 = require_dist_cjs$1();
1225
+ init_AssumeRoleCommand();
1226
+ init_AssumeRoleWithWebIdentityCommand();
1227
+ init_STSClient();
1228
+ commands = {
1229
+ AssumeRoleCommand,
1230
+ AssumeRoleWithWebIdentityCommand
1231
+ };
1232
+ STS = class extends STSClient {};
1233
+ (0, import_dist_cjs$1.createAggregatedClient)(commands, STS);
1234
+ }) });
1235
+
1236
+ //#endregion
1237
+ //#region node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/commands/index.js
1238
+ var init_commands = __esm({ "node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/commands/index.js": (() => {
1239
+ init_AssumeRoleCommand();
1240
+ init_AssumeRoleWithWebIdentityCommand();
1241
+ }) });
1242
+
1243
+ //#endregion
1244
+ //#region node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/models/index.js
1245
+ var init_models = __esm({ "node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/models/index.js": (() => {
1246
+ init_models_0();
1247
+ }) });
1248
+
1249
+ //#endregion
1250
+ //#region node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/defaultStsRoleAssumers.js
1251
+ var import_dist_cjs, getAccountIdFromAssumedRoleUser, resolveRegion, getDefaultRoleAssumer, getDefaultRoleAssumerWithWebIdentity, isH2;
1252
+ var init_defaultStsRoleAssumers = __esm({ "node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/defaultStsRoleAssumers.js": (() => {
1253
+ init_client();
1254
+ import_dist_cjs = require_dist_cjs$16();
1255
+ init_AssumeRoleCommand();
1256
+ init_AssumeRoleWithWebIdentityCommand();
1257
+ getAccountIdFromAssumedRoleUser = (assumedRoleUser) => {
1258
+ if (typeof assumedRoleUser?.Arn === "string") {
1259
+ const arnComponents = assumedRoleUser.Arn.split(":");
1260
+ if (arnComponents.length > 4 && arnComponents[4] !== "") return arnComponents[4];
1261
+ }
1262
+ };
1263
+ resolveRegion = async (_region, _parentRegion, credentialProviderLogger, loaderConfig = {}) => {
1264
+ const region = typeof _region === "function" ? await _region() : _region;
1265
+ const parentRegion = typeof _parentRegion === "function" ? await _parentRegion() : _parentRegion;
1266
+ const stsDefaultRegion = await (0, import_dist_cjs.stsRegionDefaultResolver)(loaderConfig)();
1267
+ 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)`);
1268
+ return region ?? parentRegion ?? stsDefaultRegion;
1269
+ };
1270
+ getDefaultRoleAssumer = (stsOptions, STSClient$1) => {
1271
+ let stsClient;
1272
+ let closureSourceCreds;
1273
+ return async (sourceCreds, params) => {
1274
+ closureSourceCreds = sourceCreds;
1275
+ if (!stsClient) {
1276
+ const { logger = stsOptions?.parentClientConfig?.logger, profile = stsOptions?.parentClientConfig?.profile, region, requestHandler = stsOptions?.parentClientConfig?.requestHandler, credentialProviderLogger, userAgentAppId = stsOptions?.parentClientConfig?.userAgentAppId } = stsOptions;
1277
+ const resolvedRegion = await resolveRegion(region, stsOptions?.parentClientConfig?.region, credentialProviderLogger, {
1278
+ logger,
1279
+ profile
1280
+ });
1281
+ const isCompatibleRequestHandler = !isH2(requestHandler);
1282
+ stsClient = new STSClient$1({
1283
+ ...stsOptions,
1284
+ userAgentAppId,
1285
+ profile,
1286
+ credentialDefaultProvider: () => async () => closureSourceCreds,
1287
+ region: resolvedRegion,
1288
+ requestHandler: isCompatibleRequestHandler ? requestHandler : void 0,
1289
+ logger
1290
+ });
1291
+ }
1292
+ const { Credentials, AssumedRoleUser } = await stsClient.send(new AssumeRoleCommand(params));
1293
+ if (!Credentials || !Credentials.AccessKeyId || !Credentials.SecretAccessKey) throw new Error(`Invalid response from STS.assumeRole call with role ${params.RoleArn}`);
1294
+ const accountId = getAccountIdFromAssumedRoleUser(AssumedRoleUser);
1295
+ const credentials = {
1296
+ accessKeyId: Credentials.AccessKeyId,
1297
+ secretAccessKey: Credentials.SecretAccessKey,
1298
+ sessionToken: Credentials.SessionToken,
1299
+ expiration: Credentials.Expiration,
1300
+ ...Credentials.CredentialScope && { credentialScope: Credentials.CredentialScope },
1301
+ ...accountId && { accountId }
1302
+ };
1303
+ setCredentialFeature(credentials, "CREDENTIALS_STS_ASSUME_ROLE", "i");
1304
+ return credentials;
1305
+ };
1306
+ };
1307
+ getDefaultRoleAssumerWithWebIdentity = (stsOptions, STSClient$1) => {
1308
+ let stsClient;
1309
+ return async (params) => {
1310
+ if (!stsClient) {
1311
+ const { logger = stsOptions?.parentClientConfig?.logger, profile = stsOptions?.parentClientConfig?.profile, region, requestHandler = stsOptions?.parentClientConfig?.requestHandler, credentialProviderLogger, userAgentAppId = stsOptions?.parentClientConfig?.userAgentAppId } = stsOptions;
1312
+ const resolvedRegion = await resolveRegion(region, stsOptions?.parentClientConfig?.region, credentialProviderLogger, {
1313
+ logger,
1314
+ profile
1315
+ });
1316
+ const isCompatibleRequestHandler = !isH2(requestHandler);
1317
+ stsClient = new STSClient$1({
1318
+ ...stsOptions,
1319
+ userAgentAppId,
1320
+ profile,
1321
+ region: resolvedRegion,
1322
+ requestHandler: isCompatibleRequestHandler ? requestHandler : void 0,
1323
+ logger
1324
+ });
1325
+ }
1326
+ const { Credentials, AssumedRoleUser } = await stsClient.send(new AssumeRoleWithWebIdentityCommand(params));
1327
+ if (!Credentials || !Credentials.AccessKeyId || !Credentials.SecretAccessKey) throw new Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${params.RoleArn}`);
1328
+ const accountId = getAccountIdFromAssumedRoleUser(AssumedRoleUser);
1329
+ const credentials = {
1330
+ accessKeyId: Credentials.AccessKeyId,
1331
+ secretAccessKey: Credentials.SecretAccessKey,
1332
+ sessionToken: Credentials.SessionToken,
1333
+ expiration: Credentials.Expiration,
1334
+ ...Credentials.CredentialScope && { credentialScope: Credentials.CredentialScope },
1335
+ ...accountId && { accountId }
1336
+ };
1337
+ if (accountId) setCredentialFeature(credentials, "RESOLVED_ACCOUNT_ID", "T");
1338
+ setCredentialFeature(credentials, "CREDENTIALS_STS_ASSUME_ROLE_WEB_ID", "k");
1339
+ return credentials;
1340
+ };
1341
+ };
1342
+ isH2 = (requestHandler) => {
1343
+ return requestHandler?.metadata?.handlerProtocol === "h2";
1344
+ };
1345
+ }) });
1346
+
1347
+ //#endregion
1348
+ //#region node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/defaultRoleAssumers.js
1349
+ var getCustomizableStsClientCtor, getDefaultRoleAssumer$1, getDefaultRoleAssumerWithWebIdentity$1, decorateDefaultCredentialProvider;
1350
+ var init_defaultRoleAssumers = __esm({ "node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/defaultRoleAssumers.js": (() => {
1351
+ init_defaultStsRoleAssumers();
1352
+ init_STSClient();
1353
+ getCustomizableStsClientCtor = (baseCtor, customizations) => {
1354
+ if (!customizations) return baseCtor;
1355
+ else return class CustomizableSTSClient extends baseCtor {
1356
+ constructor(config) {
1357
+ super(config);
1358
+ for (const customization of customizations) this.middlewareStack.use(customization);
1359
+ }
1360
+ };
1361
+ };
1362
+ getDefaultRoleAssumer$1 = (stsOptions = {}, stsPlugins) => getDefaultRoleAssumer(stsOptions, getCustomizableStsClientCtor(STSClient, stsPlugins));
1363
+ getDefaultRoleAssumerWithWebIdentity$1 = (stsOptions = {}, stsPlugins) => getDefaultRoleAssumerWithWebIdentity(stsOptions, getCustomizableStsClientCtor(STSClient, stsPlugins));
1364
+ decorateDefaultCredentialProvider = (provider) => (input) => provider({
1365
+ roleAssumer: getDefaultRoleAssumer$1(input),
1366
+ roleAssumerWithWebIdentity: getDefaultRoleAssumerWithWebIdentity$1(input),
1367
+ ...input
1368
+ });
1369
+ }) });
1370
+
1371
+ //#endregion
1372
+ //#region node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/index.js
1373
+ var sts_exports = /* @__PURE__ */ __export({
1374
+ AssumeRoleCommand: () => AssumeRoleCommand,
1375
+ AssumeRoleResponseFilterSensitiveLog: () => AssumeRoleResponseFilterSensitiveLog,
1376
+ AssumeRoleWithWebIdentityCommand: () => AssumeRoleWithWebIdentityCommand,
1377
+ AssumeRoleWithWebIdentityRequestFilterSensitiveLog: () => AssumeRoleWithWebIdentityRequestFilterSensitiveLog,
1378
+ AssumeRoleWithWebIdentityResponseFilterSensitiveLog: () => AssumeRoleWithWebIdentityResponseFilterSensitiveLog,
1379
+ CredentialsFilterSensitiveLog: () => CredentialsFilterSensitiveLog,
1380
+ ExpiredTokenException: () => ExpiredTokenException,
1381
+ IDPCommunicationErrorException: () => IDPCommunicationErrorException,
1382
+ IDPRejectedClaimException: () => IDPRejectedClaimException,
1383
+ InvalidIdentityTokenException: () => InvalidIdentityTokenException,
1384
+ MalformedPolicyDocumentException: () => MalformedPolicyDocumentException,
1385
+ PackedPolicyTooLargeException: () => PackedPolicyTooLargeException,
1386
+ RegionDisabledException: () => RegionDisabledException,
1387
+ STS: () => STS,
1388
+ STSClient: () => STSClient,
1389
+ STSServiceException: () => STSServiceException,
1390
+ __Client: () => import_dist_cjs$20.Client,
1391
+ decorateDefaultCredentialProvider: () => decorateDefaultCredentialProvider,
1392
+ getDefaultRoleAssumer: () => getDefaultRoleAssumer$1,
1393
+ getDefaultRoleAssumerWithWebIdentity: () => getDefaultRoleAssumerWithWebIdentity$1
1394
+ });
1395
+ var init_sts = __esm({ "node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/index.js": (() => {
1396
+ init_STSClient();
1397
+ init_STS();
1398
+ init_commands();
1399
+ init_models();
1400
+ init_defaultRoleAssumers();
1401
+ init_STSServiceException();
1402
+ }) });
1403
+
1404
+ //#endregion
1405
+ export { import_dist_cjs$20 as C, STSClient as S, InvalidIdentityTokenException as _, getDefaultRoleAssumerWithWebIdentity$1 as a, RegionDisabledException as b, AssumeRoleCommand as c, AssumeRoleWithWebIdentityRequestFilterSensitiveLog as d, AssumeRoleWithWebIdentityResponseFilterSensitiveLog as f, IDPRejectedClaimException as g, IDPCommunicationErrorException as h, getDefaultRoleAssumer$1 as i, import_dist_cjs$7 as l, ExpiredTokenException as m, sts_exports as n, STS as o, CredentialsFilterSensitiveLog as p, decorateDefaultCredentialProvider as r, AssumeRoleWithWebIdentityCommand as s, init_sts as t, AssumeRoleResponseFilterSensitiveLog as u, MalformedPolicyDocumentException as v, STSServiceException as x, PackedPolicyTooLargeException as y };