@stacksjs/buddy 0.67.0 → 0.68.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 (223) hide show
  1. package/dist/add.d.ts +4 -0
  2. package/dist/build.d.ts +4 -0
  3. package/dist/changelog.d.ts +3 -0
  4. package/dist/chunk-06g79v9j.js +2 -0
  5. package/dist/chunk-08bm2xax.js +2 -0
  6. package/dist/chunk-0enrsn65.js +978 -0
  7. package/dist/{chunk-ncwfzcsm.js → chunk-0m218zhk.js} +1 -1
  8. package/dist/chunk-0q0jn0kk.js +6 -0
  9. package/dist/chunk-0yyhz107.js +2 -0
  10. package/dist/{chunk-cbtnhpqk.js → chunk-11vhe2za.js} +1 -1
  11. package/dist/chunk-13143jmy.js +3 -0
  12. package/dist/chunk-1agj4qty.js +2 -0
  13. package/dist/chunk-1c4yywmn.js +9 -0
  14. package/dist/chunk-1e2f0z80.js +2 -0
  15. package/dist/{chunk-564c63vr.js → chunk-1v13dkfw.js} +1 -1
  16. package/dist/chunk-20e0mpcw.js +9 -0
  17. package/dist/{chunk-we57sm1m.js → chunk-25nxsybw.js} +2 -2
  18. package/dist/chunk-27ksm11g.js +2 -0
  19. package/dist/{chunk-y2g00ayp.js → chunk-2mhj5ght.js} +1 -1
  20. package/dist/chunk-2wrs9p57.js +1 -0
  21. package/dist/chunk-2yj4j69j.js +2 -0
  22. package/dist/{chunk-pfb4369d.js → chunk-2ymn50ck.js} +1 -1
  23. package/dist/chunk-3vjfkr7v.js +978 -0
  24. package/dist/{chunk-3whxjf1k.js → chunk-3wpw5xgd.js} +1 -1
  25. package/dist/chunk-3y0gapf6.js +2 -0
  26. package/dist/chunk-4rb5r88h.js +978 -0
  27. package/dist/chunk-4wb68jfr.js +2 -0
  28. package/dist/chunk-5ewcj9vd.js +2 -0
  29. package/dist/chunk-5fm9mfqs.js +2 -0
  30. package/dist/chunk-5jhkn5by.js +2 -0
  31. package/dist/chunk-5m9xts4v.js +2 -0
  32. package/dist/chunk-6sqy7049.js +2 -0
  33. package/dist/chunk-6yazdvb4.js +2 -0
  34. package/dist/{chunk-wps8bq6b.js → chunk-746p83dw.js} +1 -1
  35. package/dist/chunk-76g7tr80.js +2 -0
  36. package/dist/chunk-7fz1p8p3.js +10 -0
  37. package/dist/chunk-814adsn3.js +2 -0
  38. package/dist/chunk-831wk0b3.js +2 -0
  39. package/dist/chunk-833tanrb.js +2 -0
  40. package/dist/{chunk-6cscdnf5.js → chunk-8cx90pvv.js} +1 -1
  41. package/dist/{chunk-5wxk7vka.js → chunk-8gx9at51.js} +1 -1
  42. package/dist/chunk-91pnyybg.js +9 -0
  43. package/dist/chunk-99syj1p0.js +2 -0
  44. package/dist/chunk-9bxh78vd.js +5 -0
  45. package/dist/chunk-9jaqey2q.js +2 -0
  46. package/dist/chunk-9tyaew40.js +2 -0
  47. package/dist/chunk-9zcyq5gh.js +2 -0
  48. package/dist/chunk-a4g1e1n0.js +2 -0
  49. package/dist/chunk-a6g2jk1y.js +2 -0
  50. package/dist/chunk-aaqd43t5.js +2 -0
  51. package/dist/chunk-adswb3gq.js +2 -0
  52. package/dist/chunk-atnw2cq3.js +2 -0
  53. package/dist/chunk-avdharmq.js +2 -0
  54. package/dist/chunk-b13gbfg3.js +2 -0
  55. package/dist/{chunk-ycyg22fp.js → chunk-b3wr7cpk.js} +2 -2
  56. package/dist/chunk-bngyck4v.js +2 -0
  57. package/dist/chunk-brb5zthb.js +1 -0
  58. package/dist/chunk-bx2vf8g7.js +5 -0
  59. package/dist/chunk-c343n0yt.js +2 -0
  60. package/dist/{chunk-jfs19hhz.js → chunk-cdwpqzrw.js} +1 -1
  61. package/dist/chunk-cm7bwdk9.js +2 -0
  62. package/dist/chunk-cs5k02gt.js +1 -0
  63. package/dist/chunk-cv8f2v27.js +2 -0
  64. package/dist/chunk-d2dbhn2h.js +2 -0
  65. package/dist/{chunk-hgzxtrgw.js → chunk-d3awsfqm.js} +2 -2
  66. package/dist/chunk-d9q17hb8.js +2 -0
  67. package/dist/chunk-dw62d69f.js +2 -0
  68. package/dist/chunk-e8p8v7ca.js +978 -0
  69. package/dist/chunk-ehhrhkwe.js +9 -0
  70. package/dist/chunk-enhf12a1.js +2 -0
  71. package/dist/chunk-f0ksrase.js +8 -0
  72. package/dist/chunk-f2d9w3nr.js +2 -0
  73. package/dist/chunk-f3y73e4b.js +6 -0
  74. package/dist/chunk-fe3xb8z9.js +2 -0
  75. package/dist/chunk-fg5gh4dn.js +2 -0
  76. package/dist/chunk-fh4rw8kr.js +5 -0
  77. package/dist/chunk-fxsv4p5c.js +8 -0
  78. package/dist/chunk-gg80s18j.js +2 -0
  79. package/dist/chunk-h5saw32v.js +2 -0
  80. package/dist/chunk-ha75r57f.js +8 -0
  81. package/dist/chunk-hgrs6wcy.js +2 -0
  82. package/dist/chunk-hrsat16n.js +8 -0
  83. package/dist/chunk-hxy5t7tm.js +10 -0
  84. package/dist/chunk-hzfqtj82.js +2 -0
  85. package/dist/chunk-j2n86dsz.js +2 -0
  86. package/dist/chunk-jg68fsnk.js +10 -0
  87. package/dist/chunk-jhvjhf1j.js +2 -0
  88. package/dist/chunk-jr4naxsv.js +2 -0
  89. package/dist/chunk-jtax0mpm.js +2 -0
  90. package/dist/chunk-k59kbbvm.js +2 -0
  91. package/dist/chunk-kanz993c.js +2 -0
  92. package/dist/chunk-kg9abatp.js +2 -0
  93. package/dist/chunk-kvghsjg7.js +5 -0
  94. package/dist/chunk-ky8p46ae.js +5 -0
  95. package/dist/chunk-kzm498bh.js +2 -0
  96. package/dist/chunk-m4gwjnfh.js +6 -0
  97. package/dist/chunk-msv6dcc2.js +2 -0
  98. package/dist/chunk-mxdajhb4.js +10 -0
  99. package/dist/chunk-mxzjn2gs.js +978 -0
  100. package/dist/chunk-n1bqkqk7.js +10 -0
  101. package/dist/chunk-njtyervf.js +1 -0
  102. package/dist/chunk-nx1598yr.js +2 -0
  103. package/dist/chunk-p18kqenr.js +1 -0
  104. package/dist/chunk-p23aswbf.js +2 -0
  105. package/dist/chunk-p55ntqj0.js +2 -0
  106. package/dist/chunk-p5va3trj.js +2 -0
  107. package/dist/chunk-p88bsqtc.js +10 -0
  108. package/dist/chunk-p9z7f8c8.js +2 -0
  109. package/dist/chunk-ppkzf21q.js +8 -0
  110. package/dist/chunk-prqq5zw2.js +2 -0
  111. package/dist/chunk-pv6hp18q.js +10 -0
  112. package/dist/chunk-q9ycfthp.js +2 -0
  113. package/dist/chunk-qhcx6dmf.js +2 -0
  114. package/dist/chunk-qma4ysd8.js +9 -0
  115. package/dist/chunk-qqp394c2.js +2 -0
  116. package/dist/chunk-ra5sfgg4.js +2 -0
  117. package/dist/chunk-rfd43z7p.js +5 -0
  118. package/dist/chunk-s2n3hw0a.js +2 -0
  119. package/dist/chunk-sm7vvfqf.js +2 -0
  120. package/dist/chunk-sqbdav33.js +2 -0
  121. package/dist/chunk-sy4d4hnx.js +2 -0
  122. package/dist/chunk-t0b356bb.js +978 -0
  123. package/dist/chunk-t9wdnzz4.js +6 -0
  124. package/dist/chunk-v25g7h01.js +2 -0
  125. package/dist/chunk-v7zy7xda.js +1 -0
  126. package/dist/chunk-vg4vfkzk.js +6 -0
  127. package/dist/chunk-vgcre8jy.js +2 -0
  128. package/dist/chunk-vqyngnj0.js +9 -0
  129. package/dist/chunk-w17d2rbd.js +6 -0
  130. package/dist/chunk-x22v9kvb.js +2 -0
  131. package/dist/chunk-xacjs4ar.js +6 -0
  132. package/dist/chunk-xmdbxa8w.js +1 -0
  133. package/dist/chunk-xy6hjazn.js +978 -0
  134. package/dist/chunk-y0m35t3m.js +2 -0
  135. package/dist/chunk-y1tre8v8.js +8 -0
  136. package/dist/chunk-y50mc7dt.js +2 -0
  137. package/dist/chunk-y93ke5m6.js +2 -0
  138. package/dist/chunk-yktee4wv.js +1 -0
  139. package/dist/chunk-yvmyw2r2.js +2 -0
  140. package/dist/chunk-z1h35hsa.js +2 -0
  141. package/dist/chunk-z6xydw90.js +2 -0
  142. package/dist/chunk-zak32nab.js +2 -0
  143. package/dist/clean.d.ts +3 -0
  144. package/dist/cli.d.ts +4 -1
  145. package/dist/cli.js +1 -1
  146. package/dist/cloud.d.ts +3 -0
  147. package/dist/commit.d.ts +3 -0
  148. package/dist/configure.d.ts +4 -0
  149. package/dist/create.d.ts +8 -0
  150. package/dist/custom-cli.d.ts +1 -1
  151. package/dist/deploy.d.ts +7 -0
  152. package/dist/{commands/dev.d.ts → dev.d.ts} +3 -1
  153. package/dist/dns.d.ts +18 -0
  154. package/dist/domains.d.ts +3 -0
  155. package/dist/fresh.d.ts +3 -0
  156. package/dist/generate.d.ts +3 -0
  157. package/dist/http.d.ts +6 -0
  158. package/dist/index.d.ts +1 -1
  159. package/dist/index.js +1 -1
  160. package/dist/install.d.ts +3 -0
  161. package/dist/key.d.ts +3 -0
  162. package/dist/lint.d.ts +3 -0
  163. package/dist/list.d.ts +3 -0
  164. package/dist/make.d.ts +1 -0
  165. package/dist/migrate.d.ts +3 -0
  166. package/dist/outdated.d.ts +3 -0
  167. package/dist/ports.d.ts +7 -0
  168. package/dist/prepublish.d.ts +3 -0
  169. package/dist/projects.d.ts +3 -0
  170. package/dist/release.d.ts +9 -0
  171. package/dist/route.d.ts +3 -0
  172. package/dist/saas.d.ts +3 -0
  173. package/dist/seed.d.ts +3 -0
  174. package/dist/setup.d.ts +8 -0
  175. package/dist/stacks +0 -0
  176. package/dist/test.d.ts +3 -0
  177. package/dist/tinker.d.ts +3 -0
  178. package/dist/types.d.ts +3 -0
  179. package/dist/upgrade.d.ts +4 -0
  180. package/dist/version.d.ts +3 -0
  181. package/package.json +1 -1
  182. package/dist/chunk-42swmjjw.js +0 -2
  183. package/dist/chunk-898dh3kh.js +0 -8
  184. package/dist/chunk-9g2p5d3j.js +0 -2
  185. package/dist/chunk-bpa4071y.js +0 -2
  186. package/dist/chunk-f18wwa85.js +0 -827
  187. package/dist/chunk-g767h9jq.js +0 -3
  188. package/dist/chunk-hqv9y9k2.js +0 -6
  189. package/dist/chunk-sgm5999j.js +0 -12
  190. package/dist/commands/add.d.ts +0 -2
  191. package/dist/commands/build.d.ts +0 -2
  192. package/dist/commands/changelog.d.ts +0 -2
  193. package/dist/commands/clean.d.ts +0 -2
  194. package/dist/commands/cloud.d.ts +0 -2
  195. package/dist/commands/commit.d.ts +0 -2
  196. package/dist/commands/configure.d.ts +0 -2
  197. package/dist/commands/create.d.ts +0 -2
  198. package/dist/commands/deploy.d.ts +0 -2
  199. package/dist/commands/dns.d.ts +0 -2
  200. package/dist/commands/domains.d.ts +0 -2
  201. package/dist/commands/fresh.d.ts +0 -2
  202. package/dist/commands/generate.d.ts +0 -2
  203. package/dist/commands/http.d.ts +0 -2
  204. package/dist/commands/index.d.ts +0 -33
  205. package/dist/commands/install.d.ts +0 -2
  206. package/dist/commands/key.d.ts +0 -2
  207. package/dist/commands/lint.d.ts +0 -2
  208. package/dist/commands/list.d.ts +0 -2
  209. package/dist/commands/make.d.ts +0 -2
  210. package/dist/commands/migrate.d.ts +0 -2
  211. package/dist/commands/outdated.d.ts +0 -2
  212. package/dist/commands/ports.d.ts +0 -2
  213. package/dist/commands/prepublish.d.ts +0 -2
  214. package/dist/commands/projects.d.ts +0 -2
  215. package/dist/commands/release.d.ts +0 -2
  216. package/dist/commands/route.d.ts +0 -2
  217. package/dist/commands/seed.d.ts +0 -2
  218. package/dist/commands/setup.d.ts +0 -4
  219. package/dist/commands/test.d.ts +0 -2
  220. package/dist/commands/tinker.d.ts +0 -2
  221. package/dist/commands/types.d.ts +0 -2
  222. package/dist/commands/upgrade.d.ts +0 -2
  223. package/dist/commands/version.d.ts +0 -2
package/dist/add.d.ts ADDED
@@ -0,0 +1,4 @@
1
+ import type { AddOptions, CLI } from '@stacksjs/types';
2
+
3
+ export declare function add(buddy: CLI): void;
4
+ declare function hasNoOptions(options: AddOptions): void;
@@ -0,0 +1,4 @@
1
+ import type { BuildOptions } from '@stacksjs/types';
2
+
3
+ declare function s:(): void;
4
+ declare function hasNoOptions(options: BuildOptions): void;
@@ -0,0 +1,3 @@
1
+ import type { CLI } from '@stacksjs/types';
2
+
3
+ export declare function changelog(buddy: CLI): void;
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{L as $h}from"./chunk-d3awsfqm.js";import{$ as Hl,M as X0,N as Y0,O as Z0,P as y0,Q as Fh,R as F0,S as Wl,T as Nl,U as Tl,V as Al,W as Gh,X as $0,Y as Ol,Z as gl,_ as dl,aa as xl,ba as il,ca as V0,da as v0,ea as B,fa as E,ga as U0,ha as cl,ia as el,ja as P0,ka as pl,la as z0,ma as h0,na as l0,oa as al,pa as sl,qa as w0,ra as G0,sa as rl,ta as _l,ua as I0,va as B0,wa as E0}from"./chunk-pv6hp18q.js";import{xa as f,ya as Ll}from"./chunk-b3wr7cpk.js";import{$a as oh,Aa as D0,Ba as a0,Ka as q0,La as Q,Ma as Hh,Na as Gw,Qa as s0,Sa as S,Ta as u,Va as r0,Wa as M0,Xa as T,Ya as _0,Za as ol,_a as nl,ab as k0,bb as K0,eb as Rl,ib as ul,jb as tl,za as J0}from"./chunk-9bxh78vd.js";import"./chunk-xmdbxa8w.js";import"./chunk-ra5sfgg4.js";import"./chunk-jr4naxsv.js";import{wb as EG}from"./chunk-hrsat16n.js";import"./chunk-yktee4wv.js";import{Db as A}from"./chunk-yvmyw2r2.js";var O=A(Fh(),1);var Sl=A(Gh(),1);var ml=async(h,w,l)=>{return{operation:dl(w).operation,region:await Hl(h.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}};function Ew(h){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sts",region:h.region},propertiesExtractor:(w,l)=>({signingProperties:{config:w,context:l}})}}function Il(h){return{schemeId:"smithy.api#noAuth"}}var Jl=(h)=>{let w=[];switch(h.operation){case"AssumeRoleWithSAML":{w.push(Il(h));break}case"AssumeRoleWithWebIdentity":{w.push(Il(h));break}default:w.push(Ew(h))}return w},Qw=(h)=>({...h,stsClientCtor:j}),Dl=(h)=>{let w=Qw(h);return{...Sl.resolveAwsSdkSigV4Config(w)}};var kl=(h)=>{return{...h,useDualstackEndpoint:h.useDualstackEndpoint??!1,useFipsEndpoint:h.useFipsEndpoint??!1,useGlobalEndpoint:h.useGlobalEndpoint??!1,defaultSigningName:"sts"}},D={UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}};var Kl={name:"@aws-sdk/client-sts",description:"AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native",version:"3.679.0",scripts:{build:"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"node ../../scripts/compilation/inline client-sts","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"rimraf ./dist-types tsconfig.types.tsbuildinfo && tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo sts",test:"vitest run","test:watch":"vitest watch"},main:"./dist-cjs/index.js",types:"./dist-types/index.d.ts",module:"./dist-es/index.js",sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/client-sso-oidc":"3.679.0","@aws-sdk/core":"3.679.0","@aws-sdk/credential-provider-node":"3.679.0","@aws-sdk/middleware-host-header":"3.679.0","@aws-sdk/middleware-logger":"3.679.0","@aws-sdk/middleware-recursion-detection":"3.679.0","@aws-sdk/middleware-user-agent":"3.679.0","@aws-sdk/region-config-resolver":"3.679.0","@aws-sdk/types":"3.679.0","@aws-sdk/util-endpoints":"3.679.0","@aws-sdk/util-user-agent-browser":"3.679.0","@aws-sdk/util-user-agent-node":"3.679.0","@smithy/config-resolver":"^3.0.9","@smithy/core":"^2.4.8","@smithy/fetch-http-handler":"^3.2.9","@smithy/hash-node":"^3.0.7","@smithy/invalid-dependency":"^3.0.7","@smithy/middleware-content-length":"^3.0.9","@smithy/middleware-endpoint":"^3.1.4","@smithy/middleware-retry":"^3.0.23","@smithy/middleware-serde":"^3.0.7","@smithy/middleware-stack":"^3.0.7","@smithy/node-config-provider":"^3.1.8","@smithy/node-http-handler":"^3.2.4","@smithy/protocol-http":"^4.1.4","@smithy/smithy-client":"^3.4.0","@smithy/types":"^3.5.0","@smithy/url-parser":"^3.0.7","@smithy/util-base64":"^3.0.0","@smithy/util-body-length-browser":"^3.0.0","@smithy/util-body-length-node":"^3.0.0","@smithy/util-defaults-mode-browser":"^3.0.23","@smithy/util-defaults-mode-node":"^3.0.23","@smithy/util-endpoints":"^2.1.3","@smithy/util-middleware":"^3.0.7","@smithy/util-retry":"^3.0.7","@smithy/util-utf8":"^3.0.0",tslib:"^2.6.2"},devDependencies:{"@tsconfig/node16":"16.1.3","@types/node":"^16.18.96",concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"3.0.2",typescript:"~4.9.5"},engines:{node:">=16.0.0"},typesVersions:{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},files:["dist-*/**"],author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},license:"Apache-2.0",browser:{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sts",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-sts"}};var Ih=A(Gh(),1);var d0=A(Fh(),1);var bl=A(Gh(),1),fl=A(Fh(),1);var Bl={["required"]:!1,["type"]:"String"},yh={["required"]:!0,default:!1,["type"]:"Boolean"},Vl={["ref"]:"Endpoint"},El={["fn"]:"isSet",["argv"]:[{["ref"]:"Region"}]},J={["ref"]:"Region"},Ql={["fn"]:"aws.partition",["argv"]:[J],assign:"PartitionResult"},vl={["ref"]:"UseFIPS"},Ul={["ref"]:"UseDualStack"},k={url:"https://sts.amazonaws.com",properties:{authSchemes:[{name:"sigv4",signingName:"sts",signingRegion:"us-east-1"}]},headers:{}},F={},Xl={conditions:[{["fn"]:"stringEquals",["argv"]:[J,"aws-global"]}],["endpoint"]:k,["type"]:"endpoint"},Pl={["fn"]:"booleanEquals",["argv"]:[vl,!0]},ql={["fn"]:"booleanEquals",["argv"]:[Ul,!0]},Yl={["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"supportsFIPS"]},zl={["ref"]:"PartitionResult"},Zl={["fn"]:"booleanEquals",["argv"]:[!0,{["fn"]:"getAttr",["argv"]:[zl,"supportsDualStack"]}]},yl=[{["fn"]:"isSet",["argv"]:[Vl]}],Fl=[Pl],$l=[ql],Yw={version:"1.0",parameters:{Region:Bl,UseDualStack:yh,UseFIPS:yh,Endpoint:Bl,UseGlobalEndpoint:yh},rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseGlobalEndpoint"},!0]},{["fn"]:"not",["argv"]:yl},El,Ql,{["fn"]:"booleanEquals",["argv"]:[vl,!1]},{["fn"]:"booleanEquals",["argv"]:[Ul,!1]}],rules:[{conditions:[{["fn"]:"stringEquals",["argv"]:[J,"ap-northeast-1"]}],endpoint:k,["type"]:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[J,"ap-south-1"]}],endpoint:k,["type"]:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[J,"ap-southeast-1"]}],endpoint:k,["type"]:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[J,"ap-southeast-2"]}],endpoint:k,["type"]:"endpoint"},Xl,{conditions:[{["fn"]:"stringEquals",["argv"]:[J,"ca-central-1"]}],endpoint:k,["type"]:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[J,"eu-central-1"]}],endpoint:k,["type"]:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[J,"eu-north-1"]}],endpoint:k,["type"]:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[J,"eu-west-1"]}],endpoint:k,["type"]:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[J,"eu-west-2"]}],endpoint:k,["type"]:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[J,"eu-west-3"]}],endpoint:k,["type"]:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[J,"sa-east-1"]}],endpoint:k,["type"]:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[J,"us-east-1"]}],endpoint:k,["type"]:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[J,"us-east-2"]}],endpoint:k,["type"]:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[J,"us-west-1"]}],endpoint:k,["type"]:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[J,"us-west-2"]}],endpoint:k,["type"]:"endpoint"},{endpoint:{url:"https://sts.{Region}.{PartitionResult#dnsSuffix}",properties:{authSchemes:[{name:"sigv4",signingName:"sts",signingRegion:"{Region}"}]},headers:F},["type"]:"endpoint"}],["type"]:"tree"},{conditions:yl,rules:[{conditions:Fl,error:"Invalid Configuration: FIPS and custom endpoint are not supported",["type"]:"error"},{conditions:$l,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",["type"]:"error"},{endpoint:{url:Vl,properties:F,headers:F},["type"]:"endpoint"}],["type"]:"tree"},{conditions:[El],rules:[{conditions:[Ql],rules:[{conditions:[Pl,ql],rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[!0,Yl]},Zl],rules:[{endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:F,headers:F},["type"]:"endpoint"}],["type"]:"tree"},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",["type"]:"error"}],["type"]:"tree"},{conditions:Fl,rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[Yl,!0]}],rules:[{conditions:[{["fn"]:"stringEquals",["argv"]:[{["fn"]:"getAttr",["argv"]:[zl,"name"]},"aws-us-gov"]}],endpoint:{url:"https://sts.{Region}.amazonaws.com",properties:F,headers:F},["type"]:"endpoint"},{endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dnsSuffix}",properties:F,headers:F},["type"]:"endpoint"}],["type"]:"tree"},{error:"FIPS is enabled but this partition does not support FIPS",["type"]:"error"}],["type"]:"tree"},{conditions:$l,rules:[{conditions:[Zl],rules:[{endpoint:{url:"https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:F,headers:F},["type"]:"endpoint"}],["type"]:"tree"},{error:"DualStack is enabled but this partition does not support DualStack",["type"]:"error"}],["type"]:"tree"},Xl,{endpoint:{url:"https://sts.{Region}.{PartitionResult#dnsSuffix}",properties:F,headers:F},["type"]:"endpoint"}],["type"]:"tree"}],["type"]:"tree"},{error:"Invalid Configuration: Missing Region",["type"]:"error"}]},Ml=Yw;var Zw=new Wl({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS","UseGlobalEndpoint"]}),jl=(h,w={})=>{return Zw.get(h,()=>Tl(Ml,{endpointParams:h,logger:w.logger}))};Nl.aws=Al;var Cl=(h)=>{return{apiVersion:"2011-06-15",base64Decoder:h?.base64Decoder??rl,base64Encoder:h?.base64Encoder??_l,disableHostPrefix:h?.disableHostPrefix??!1,endpointProvider:h?.endpointProvider??jl,extensions:h?.extensions??[],httpAuthSchemeProvider:h?.httpAuthSchemeProvider??Jl,httpAuthSchemes:h?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(w)=>w.getIdentityProvider("aws.auth#sigv4"),signer:new bl.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:(w)=>w.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new fl.NoAuthSigner}],logger:h?.logger??new Rl,serviceId:h?.serviceId??"STS",urlParser:h?.urlParser??Ll,utf8Decoder:h?.utf8Decoder??al,utf8Encoder:h?.utf8Encoder??sl}};var H0=(h)=>{nl(process.version);let w=I0(h),l=()=>w().then(ol),G=Cl(h);return Ih.emitWarningIfUnsupportedVersion(process.version),{...G,...h,runtime:"node",defaultsMode:w,bodyLengthChecker:h?.bodyLengthChecker??G0,credentialDefaultProvider:h?.credentialDefaultProvider??$h,defaultUserAgentProvider:h?.defaultUserAgentProvider??h0({serviceId:G.serviceId,clientVersion:Kl.version}),httpAuthSchemes:h?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(I)=>I.getIdentityProvider("aws.auth#sigv4")||(async(H)=>await $h(H?.__config||{})()),signer:new Ih.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:(I)=>I.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new d0.NoAuthSigner}],maxAttempts:h?.maxAttempts??f(el),region:h?.region??f(xl,il),requestHandler:ul.create(h?.requestHandler??l),retryMode:h?.retryMode??f({...pl,default:async()=>(await l()).retryMode||cl}),sha256:h?.sha256??w0.bind(null,"sha256"),streamCollector:h?.streamCollector??tl,useDualstackEndpoint:h?.useDualstackEndpoint??f(Ol),useFipsEndpoint:h?.useFipsEndpoint??f(gl),userAgentAppId:h?.userAgentAppId??f(l0)}};var S0=(h)=>{let{httpAuthSchemes:w,httpAuthSchemeProvider:l,credentials:G}=h;return{setHttpAuthScheme(I){let H=w.findIndex((d)=>d.schemeId===I.schemeId);if(H===-1)w.push(I);else w.splice(H,1,I)},httpAuthSchemes(){return w},setHttpAuthSchemeProvider(I){l=I},httpAuthSchemeProvider(){return l},setCredentials(I){G=I},credentials(){return G}}},m0=(h)=>{return{httpAuthSchemes:h.httpAuthSchemes(),httpAuthSchemeProvider:h.httpAuthSchemeProvider(),credentials:h.credentials()}};var dh=(h)=>h,Q0=(h,w)=>{let l={...dh(B0(h)),...dh(k0(h)),...dh(J0(h)),...dh(S0(h))};return w.forEach((G)=>G.configure(l)),{...h,...E0(l),...K0(l),...D0(l),...m0(l)}};class j extends q0{constructor(...[h]){let w=H0(h||{}),l=kl(w),G=F0(l),I=P0(G),H=V0(I),d=X0(H),X=U0(d),z=Dl(X),P=Q0(z,h?.extensions||[]);super(P);this.config=P,this.middlewareStack.use($0(this.config)),this.middlewareStack.use(z0(this.config)),this.middlewareStack.use(v0(this.config)),this.middlewareStack.use(Y0(this.config)),this.middlewareStack.use(Z0(this.config)),this.middlewareStack.use(y0(this.config)),this.middlewareStack.use(O.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:ml,identityProviderConfigProvider:async(C)=>new O.DefaultIdentityProviderConfig({"aws.auth#sigv4":C.credentials})})),this.middlewareStack.use(O.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}class y extends M0{constructor(h){super(h);Object.setPrototypeOf(this,y.prototype)}}class Sh extends y{constructor(h){super({name:"ExpiredTokenException",$fault:"client",...h});this.name="ExpiredTokenException",this.$fault="client",Object.setPrototypeOf(this,Sh.prototype)}}class mh extends y{constructor(h){super({name:"MalformedPolicyDocumentException",$fault:"client",...h});this.name="MalformedPolicyDocumentException",this.$fault="client",Object.setPrototypeOf(this,mh.prototype)}}class Jh extends y{constructor(h){super({name:"PackedPolicyTooLargeException",$fault:"client",...h});this.name="PackedPolicyTooLargeException",this.$fault="client",Object.setPrototypeOf(this,Jh.prototype)}}class Dh extends y{constructor(h){super({name:"RegionDisabledException",$fault:"client",...h});this.name="RegionDisabledException",this.$fault="client",Object.setPrototypeOf(this,Dh.prototype)}}class kh extends y{constructor(h){super({name:"IDPRejectedClaimException",$fault:"client",...h});this.name="IDPRejectedClaimException",this.$fault="client",Object.setPrototypeOf(this,kh.prototype)}}class Kh extends y{constructor(h){super({name:"InvalidIdentityTokenException",$fault:"client",...h});this.name="InvalidIdentityTokenException",this.$fault="client",Object.setPrototypeOf(this,Kh.prototype)}}class Bh extends y{constructor(h){super({name:"IDPCommunicationErrorException",$fault:"client",...h});this.name="IDPCommunicationErrorException",this.$fault="client",Object.setPrototypeOf(this,Bh.prototype)}}class Eh extends y{constructor(h){super({name:"InvalidAuthorizationMessageException",$fault:"client",...h});this.name="InvalidAuthorizationMessageException",this.$fault="client",Object.setPrototypeOf(this,Eh.prototype)}}var n=(h)=>({...h,...h.SecretAccessKey&&{SecretAccessKey:Hh}}),W0=(h)=>({...h,...h.Credentials&&{Credentials:n(h.Credentials)}}),N0=(h)=>({...h,...h.SAMLAssertion&&{SAMLAssertion:Hh}}),T0=(h)=>({...h,...h.Credentials&&{Credentials:n(h.Credentials)}}),A0=(h)=>({...h,...h.WebIdentityToken&&{WebIdentityToken:Hh}}),j0=(h)=>({...h,...h.Credentials&&{Credentials:n(h.Credentials)}}),L0=(h)=>({...h,...h.Credentials&&{Credentials:n(h.Credentials)}}),R0=(h)=>({...h,...h.Credentials&&{Credentials:n(h.Credentials)}});var q=A(Gh(),1);var b0=async(h,w)=>{let l=a,G;return G=b({...zw(h,w),[r]:IG,[_]:s}),R(w,l,"/",void 0,G)},f0=async(h,w)=>{let l=a,G;return G=b({...Mw(h,w),[r]:dG,[_]:s}),R(w,l,"/",void 0,G)},C0=async(h,w)=>{let l=a,G;return G=b({...Ww(h,w),[r]:HG,[_]:s}),R(w,l,"/",void 0,G)},O0=async(h,w)=>{let l=a,G;return G=b({...Nw(h,w),[r]:SG,[_]:s}),R(w,l,"/",void 0,G)},g0=async(h,w)=>{let l=a,G;return G=b({...Tw(h,w),[r]:mG,[_]:s}),R(w,l,"/",void 0,G)},x0=async(h,w)=>{let l=a,G;return G=b({...Aw(h,w),[r]:JG,[_]:s}),R(w,l,"/",void 0,G)},i0=async(h,w)=>{let l=a,G;return G=b({...jw(h,w),[r]:DG,[_]:s}),R(w,l,"/",void 0,G)},c0=async(h,w)=>{let l=a,G;return G=b({...Lw(h,w),[r]:kG,[_]:s}),R(w,l,"/",void 0,G)},e0=async(h,w)=>{if(h.statusCode>=300)return L(h,w);let l=await q.parseXmlBody(h.body,w),G={};return G=bw(l.AssumeRoleResult,w),{$metadata:K(h),...G}},p0=async(h,w)=>{if(h.statusCode>=300)return L(h,w);let l=await q.parseXmlBody(h.body,w),G={};return G=fw(l.AssumeRoleWithSAMLResult,w),{$metadata:K(h),...G}},o0=async(h,w)=>{if(h.statusCode>=300)return L(h,w);let l=await q.parseXmlBody(h.body,w),G={};return G=Cw(l.AssumeRoleWithWebIdentityResult,w),{$metadata:K(h),...G}},n0=async(h,w)=>{if(h.statusCode>=300)return L(h,w);let l=await q.parseXmlBody(h.body,w),G={};return G=Ow(l.DecodeAuthorizationMessageResult,w),{$metadata:K(h),...G}},u0=async(h,w)=>{if(h.statusCode>=300)return L(h,w);let l=await q.parseXmlBody(h.body,w),G={};return G=iw(l.GetAccessKeyInfoResult,w),{$metadata:K(h),...G}},t0=async(h,w)=>{if(h.statusCode>=300)return L(h,w);let l=await q.parseXmlBody(h.body,w),G={};return G=cw(l.GetCallerIdentityResult,w),{$metadata:K(h),...G}},hw=async(h,w)=>{if(h.statusCode>=300)return L(h,w);let l=await q.parseXmlBody(h.body,w),G={};return G=ew(l.GetFederationTokenResult,w),{$metadata:K(h),...G}},lw=async(h,w)=>{if(h.statusCode>=300)return L(h,w);let l=await q.parseXmlBody(h.body,w),G={};return G=pw(l.GetSessionTokenResult,w),{$metadata:K(h),...G}},L=async(h,w)=>{let l={...h,body:await q.parseXmlErrorBody(h.body,w)},G=KG(h,l.body);switch(G){case"ExpiredTokenException":case"com.amazonaws.sts#ExpiredTokenException":throw await yw(l,w);case"MalformedPolicyDocument":case"com.amazonaws.sts#MalformedPolicyDocumentException":throw await Uw(l,w);case"PackedPolicyTooLarge":case"com.amazonaws.sts#PackedPolicyTooLargeException":throw await Pw(l,w);case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await qw(l,w);case"IDPRejectedClaim":case"com.amazonaws.sts#IDPRejectedClaimException":throw await $w(l,w);case"InvalidIdentityToken":case"com.amazonaws.sts#InvalidIdentityTokenException":throw await vw(l,w);case"IDPCommunicationError":case"com.amazonaws.sts#IDPCommunicationErrorException":throw await Fw(l,w);case"InvalidAuthorizationMessageException":case"com.amazonaws.sts#InvalidAuthorizationMessageException":throw await Vw(l,w);default:let I=l.body;return GG({output:h,parsedBody:I.Error,errorCode:G})}},yw=async(h,w)=>{let l=h.body,G=gw(l.Error,w),I=new Sh({$metadata:K(h),...G});return T(I,l)},Fw=async(h,w)=>{let l=h.body,G=ow(l.Error,w),I=new Bh({$metadata:K(h),...G});return T(I,l)},$w=async(h,w)=>{let l=h.body,G=nw(l.Error,w),I=new kh({$metadata:K(h),...G});return T(I,l)},Vw=async(h,w)=>{let l=h.body,G=uw(l.Error,w),I=new Eh({$metadata:K(h),...G});return T(I,l)},vw=async(h,w)=>{let l=h.body,G=tw(l.Error,w),I=new Kh({$metadata:K(h),...G});return T(I,l)},Uw=async(h,w)=>{let l=h.body,G=hG(l.Error,w),I=new mh({$metadata:K(h),...G});return T(I,l)},Pw=async(h,w)=>{let l=h.body,G=lG(l.Error,w),I=new Jh({$metadata:K(h),...G});return T(I,l)},qw=async(h,w)=>{let l=h.body,G=wG(l.Error,w),I=new Dh({$metadata:K(h),...G});return T(I,l)},zw=(h,w)=>{let l={};if(h[N]!=null)l[N]=h[N];if(h[c]!=null)l[c]=h[c];if(h[V]!=null){let G=Qh(h[V],w);if(h[V]?.length===0)l.PolicyArns=[];Object.entries(G).forEach(([I,H])=>{let d=`PolicyArns.${I}`;l[d]=H})}if(h[$]!=null)l[$]=h[$];if(h[Z]!=null)l[Z]=h[Z];if(h[p]!=null){let G=ww(h[p],w);if(h[p]?.length===0)l.Tags=[];Object.entries(G).forEach(([I,H])=>{let d=`Tags.${I}`;l[d]=H})}if(h[xh]!=null){let G=_w(h[xh],w);if(h[xh]?.length===0)l.TransitiveTagKeys=[];Object.entries(G).forEach(([I,H])=>{let d=`TransitiveTagKeys.${I}`;l[d]=H})}if(h[qh]!=null)l[qh]=h[qh];if(h[e]!=null)l[e]=h[e];if(h[o]!=null)l[o]=h[o];if(h[U]!=null)l[U]=h[U];if(h[ah]!=null){let G=sw(h[ah],w);if(h[ah]?.length===0)l.ProvidedContexts=[];Object.entries(G).forEach(([I,H])=>{let d=`ProvidedContexts.${I}`;l[d]=H})}return l},Mw=(h,w)=>{let l={};if(h[N]!=null)l[N]=h[N];if(h[Lh]!=null)l[Lh]=h[Lh];if(h[fh]!=null)l[fh]=h[fh];if(h[V]!=null){let G=Qh(h[V],w);if(h[V]?.length===0)l.PolicyArns=[];Object.entries(G).forEach(([I,H])=>{let d=`PolicyArns.${I}`;l[d]=H})}if(h[$]!=null)l[$]=h[$];if(h[Z]!=null)l[Z]=h[Z];return l},Ww=(h,w)=>{let l={};if(h[N]!=null)l[N]=h[N];if(h[c]!=null)l[c]=h[c];if(h[eh]!=null)l[eh]=h[eh];if(h[sh]!=null)l[sh]=h[sh];if(h[V]!=null){let G=Qh(h[V],w);if(h[V]?.length===0)l.PolicyArns=[];Object.entries(G).forEach(([I,H])=>{let d=`PolicyArns.${I}`;l[d]=H})}if(h[$]!=null)l[$]=h[$];if(h[Z]!=null)l[Z]=h[Z];return l},Nw=(h,w)=>{let l={};if(h[zh]!=null)l[zh]=h[zh];return l},Tw=(h,w)=>{let l={};if(h[g]!=null)l[g]=h[g];return l},Aw=(h,w)=>{return{}},jw=(h,w)=>{let l={};if(h[Ah]!=null)l[Ah]=h[Ah];if(h[$]!=null)l[$]=h[$];if(h[V]!=null){let G=Qh(h[V],w);if(h[V]?.length===0)l.PolicyArns=[];Object.entries(G).forEach(([I,H])=>{let d=`PolicyArns.${I}`;l[d]=H})}if(h[Z]!=null)l[Z]=h[Z];if(h[p]!=null){let G=ww(h[p],w);if(h[p]?.length===0)l.Tags=[];Object.entries(G).forEach(([I,H])=>{let d=`Tags.${I}`;l[d]=H})}return l},Lw=(h,w)=>{let l={};if(h[Z]!=null)l[Z]=h[Z];if(h[e]!=null)l[e]=h[e];if(h[o]!=null)l[o]=h[o];return l},Qh=(h,w)=>{let l={},G=1;for(let I of h){if(I===null)continue;let H=Rw(I,w);Object.entries(H).forEach(([d,X])=>{l[`member.${G}.${d}`]=X}),G++}return l},Rw=(h,w)=>{let l={};if(h[ph]!=null)l[ph]=h[ph];return l},aw=(h,w)=>{let l={};if(h[Rh]!=null)l[Rh]=h[Rh];if(h[vh]!=null)l[vh]=h[vh];return l},sw=(h,w)=>{let l={},G=1;for(let I of h){if(I===null)continue;let H=aw(I,w);Object.entries(H).forEach(([d,X])=>{l[`member.${G}.${d}`]=X}),G++}return l},rw=(h,w)=>{let l={};if(h[Th]!=null)l[Th]=h[Th];if(h[ch]!=null)l[ch]=h[ch];return l},_w=(h,w)=>{let l={},G=1;for(let I of h){if(I===null)continue;l[`member.${G}`]=I,G++}return l},ww=(h,w)=>{let l={},G=1;for(let I of h){if(I===null)continue;let H=rw(I,w);Object.entries(H).forEach(([d,X])=>{l[`member.${G}.${d}`]=X}),G++}return l},nh=(h,w)=>{let l={};if(h[Vh]!=null)l[Vh]=S(h[Vh]);if(h[W]!=null)l[W]=S(h[W]);return l},bw=(h,w)=>{let l={};if(h[Y]!=null)l[Y]=t(h[Y],w);if(h[M]!=null)l[M]=nh(h[M],w);if(h[v]!=null)l[v]=u(h[v]);if(h[U]!=null)l[U]=S(h[U]);return l},fw=(h,w)=>{let l={};if(h[Y]!=null)l[Y]=t(h[Y],w);if(h[M]!=null)l[M]=nh(h[M],w);if(h[v]!=null)l[v]=u(h[v]);if(h[_h]!=null)l[_h]=S(h[_h]);if(h[Oh]!=null)l[Oh]=S(h[Oh]);if(h[Nh]!=null)l[Nh]=S(h[Nh]);if(h[i]!=null)l[i]=S(h[i]);if(h[jh]!=null)l[jh]=S(h[jh]);if(h[U]!=null)l[U]=S(h[U]);return l},Cw=(h,w)=>{let l={};if(h[Y]!=null)l[Y]=t(h[Y],w);if(h[Ch]!=null)l[Ch]=S(h[Ch]);if(h[M]!=null)l[M]=nh(h[M],w);if(h[v]!=null)l[v]=u(h[v]);if(h[rh]!=null)l[rh]=S(h[rh]);if(h[i]!=null)l[i]=S(h[i]);if(h[U]!=null)l[U]=S(h[U]);return l},t=(h,w)=>{let l={};if(h[g]!=null)l[g]=S(h[g]);if(h[bh]!=null)l[bh]=S(h[bh]);if(h[gh]!=null)l[gh]=S(h[gh]);if(h[Ph]!=null)l[Ph]=s0(r0(h[Ph]));return l},Ow=(h,w)=>{let l={};if(h[Uh]!=null)l[Uh]=S(h[Uh]);return l},gw=(h,w)=>{let l={};if(h[m]!=null)l[m]=S(h[m]);return l},xw=(h,w)=>{let l={};if(h[Wh]!=null)l[Wh]=S(h[Wh]);if(h[W]!=null)l[W]=S(h[W]);return l},iw=(h,w)=>{let l={};if(h[x]!=null)l[x]=S(h[x]);return l},cw=(h,w)=>{let l={};if(h[ih]!=null)l[ih]=S(h[ih]);if(h[x]!=null)l[x]=S(h[x]);if(h[W]!=null)l[W]=S(h[W]);return l},ew=(h,w)=>{let l={};if(h[Y]!=null)l[Y]=t(h[Y],w);if(h[Mh]!=null)l[Mh]=xw(h[Mh],w);if(h[v]!=null)l[v]=u(h[v]);return l},pw=(h,w)=>{let l={};if(h[Y]!=null)l[Y]=t(h[Y],w);return l},ow=(h,w)=>{let l={};if(h[m]!=null)l[m]=S(h[m]);return l},nw=(h,w)=>{let l={};if(h[m]!=null)l[m]=S(h[m]);return l},uw=(h,w)=>{let l={};if(h[m]!=null)l[m]=S(h[m]);return l},tw=(h,w)=>{let l={};if(h[m]!=null)l[m]=S(h[m]);return l},hG=(h,w)=>{let l={};if(h[m]!=null)l[m]=S(h[m]);return l},lG=(h,w)=>{let l={};if(h[m]!=null)l[m]=S(h[m]);return l},wG=(h,w)=>{let l={};if(h[m]!=null)l[m]=S(h[m]);return l},K=(h)=>({httpStatusCode:h.statusCode,requestId:h.headers["x-amzn-requestid"]??h.headers["x-amzn-request-id"]??h.headers["x-amz-request-id"],extendedRequestId:h.headers["x-amz-id-2"],cfId:h.headers["x-amz-cf-id"]});var GG=_0(y),R=async(h,w,l,G,I)=>{let{hostname:H,protocol:d="https",port:X,path:z}=await h.endpoint(),P={protocol:d,hostname:H,port:X,method:"POST",path:z.endsWith("/")?z.slice(0,-1)+l:z+l,headers:w};if(G!==void 0)P.hostname=G;if(I!==void 0)P.body=I;return new a0(P)},a={"content-type":"application/x-www-form-urlencoded"},s="2011-06-15",r="Action",g="AccessKeyId",IG="AssumeRole",Vh="AssumedRoleId",M="AssumedRoleUser",dG="AssumeRoleWithSAML",HG="AssumeRoleWithWebIdentity",x="Account",W="Arn",i="Audience",Y="Credentials",vh="ContextAssertion",SG="DecodeAuthorizationMessage",Uh="DecodedMessage",Z="DurationSeconds",Ph="Expiration",qh="ExternalId",zh="EncodedMessage",Mh="FederatedUser",Wh="FederatedUserId",mG="GetAccessKeyInfo",JG="GetCallerIdentity",DG="GetFederationToken",kG="GetSessionToken",Nh="Issuer",Th="Key",Ah="Name",jh="NameQualifier",$="Policy",V="PolicyArns",Lh="PrincipalArn",Rh="ProviderArn",ah="ProvidedContexts",sh="ProviderId",v="PackedPolicySize",rh="Provider",N="RoleArn",c="RoleSessionName",_h="Subject",bh="SecretAccessKey",fh="SAMLAssertion",Ch="SubjectFromWebIdentityToken",U="SourceIdentity",e="SerialNumber",Oh="SubjectType",gh="SessionToken",p="Tags",o="TokenCode",xh="TransitiveTagKeys",ih="UserId",_="Version",ch="Value",eh="WebIdentityToken",ph="arn",m="message",b=(h)=>Object.entries(h).map(([w,l])=>oh.extendedEncodeURIComponent(w)+"="+oh.extendedEncodeURIComponent(l)).join("&"),KG=(h,w)=>{if(w.Error?.Code!==void 0)return w.Error.Code;if(h.statusCode==404)return"NotFound"};class hh extends Q.classBuilder().ep(D).m(function(h,w,l,G){return[B(l,this.serialize,this.deserialize),E(l,h.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","AssumeRole",{}).n("STSClient","AssumeRoleCommand").f(void 0,W0).ser(b0).de(e0).build(){}class uh extends Q.classBuilder().ep(D).m(function(h,w,l,G){return[B(l,this.serialize,this.deserialize),E(l,h.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","AssumeRoleWithSAML",{}).n("STSClient","AssumeRoleWithSAMLCommand").f(N0,T0).ser(f0).de(p0).build(){}class lh extends Q.classBuilder().ep(D).m(function(h,w,l,G){return[B(l,this.serialize,this.deserialize),E(l,h.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","AssumeRoleWithWebIdentity",{}).n("STSClient","AssumeRoleWithWebIdentityCommand").f(A0,j0).ser(C0).de(o0).build(){}class th extends Q.classBuilder().ep(D).m(function(h,w,l,G){return[B(l,this.serialize,this.deserialize),E(l,h.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","DecodeAuthorizationMessage",{}).n("STSClient","DecodeAuthorizationMessageCommand").f(void 0,void 0).ser(O0).de(n0).build(){}class hl extends Q.classBuilder().ep(D).m(function(h,w,l,G){return[B(l,this.serialize,this.deserialize),E(l,h.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","GetAccessKeyInfo",{}).n("STSClient","GetAccessKeyInfoCommand").f(void 0,void 0).ser(g0).de(u0).build(){}class ll extends Q.classBuilder().ep(D).m(function(h,w,l,G){return[B(l,this.serialize,this.deserialize),E(l,h.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","GetCallerIdentity",{}).n("STSClient","GetCallerIdentityCommand").f(void 0,void 0).ser(x0).de(t0).build(){}class wl extends Q.classBuilder().ep(D).m(function(h,w,l,G){return[B(l,this.serialize,this.deserialize),E(l,h.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","GetFederationToken",{}).n("STSClient","GetFederationTokenCommand").f(void 0,L0).ser(i0).de(hw).build(){}class Gl extends Q.classBuilder().ep(D).m(function(h,w,l,G){return[B(l,this.serialize,this.deserialize),E(l,h.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","GetSessionToken",{}).n("STSClient","GetSessionTokenCommand").f(void 0,R0).ser(c0).de(lw).build(){}var BG={AssumeRoleCommand:hh,AssumeRoleWithSAMLCommand:uh,AssumeRoleWithWebIdentityCommand:lh,DecodeAuthorizationMessageCommand:th,GetAccessKeyInfoCommand:hl,GetCallerIdentityCommand:ll,GetFederationTokenCommand:wl,GetSessionTokenCommand:Gl};class Iw extends j{}Gw(BG,Iw);var Xh=A(EG(),1);var dw="us-east-1",Hw=(h)=>{if(typeof h?.Arn==="string"){let w=h.Arn.split(":");if(w.length>4&&w[4]!=="")return w[4]}return},Sw=async(h,w,l)=>{let G=typeof h==="function"?await h():h,I=typeof w==="function"?await w():w;return l?.debug?.("@aws-sdk/client-sts::resolveRegion","accepting first of:",`${G} (provider)`,`${I} (parent client)`,`${dw} (STS default)`),G??I??dw},mw=(h,w)=>{let l,G;return async(I,H)=>{if(G=I,!l){let{logger:C=h?.parentClientConfig?.logger,region:Yh,requestHandler:wh=h?.parentClientConfig?.requestHandler,credentialProviderLogger:Zh}=h,Kw=await Sw(Yh,h?.parentClientConfig?.region,Zh),Bw=!Dw(wh);l=new w({credentialDefaultProvider:()=>async()=>G,region:Kw,requestHandler:Bw?wh:void 0,logger:C})}let{Credentials:d,AssumedRoleUser:X}=await l.send(new hh(H));if(!d||!d.AccessKeyId||!d.SecretAccessKey)throw new Error(`Invalid response from STS.assumeRole call with role ${H.RoleArn}`);let z=Hw(X),P={accessKeyId:d.AccessKeyId,secretAccessKey:d.SecretAccessKey,sessionToken:d.SessionToken,expiration:d.Expiration,...d.CredentialScope&&{credentialScope:d.CredentialScope},...z&&{accountId:z}};return Xh.setCredentialFeature(P,"CREDENTIALS_STS_ASSUME_ROLE","i"),P}},Jw=(h,w)=>{let l;return async(G)=>{if(!l){let{logger:z=h?.parentClientConfig?.logger,region:P,requestHandler:C=h?.parentClientConfig?.requestHandler,credentialProviderLogger:Yh}=h,wh=await Sw(P,h?.parentClientConfig?.region,Yh),Zh=!Dw(C);l=new w({region:wh,requestHandler:Zh?C:void 0,logger:z})}let{Credentials:I,AssumedRoleUser:H}=await l.send(new lh(G));if(!I||!I.AccessKeyId||!I.SecretAccessKey)throw new Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${G.RoleArn}`);let d=Hw(H),X={accessKeyId:I.AccessKeyId,secretAccessKey:I.SecretAccessKey,sessionToken:I.SessionToken,expiration:I.Expiration,...I.CredentialScope&&{credentialScope:I.CredentialScope},...d&&{accountId:d}};if(d)Xh.setCredentialFeature(X,"RESOLVED_ACCOUNT_ID","T");return Xh.setCredentialFeature(X,"CREDENTIALS_STS_ASSUME_ROLE_WEB_ID","k"),X}};var Dw=(h)=>{return h?.metadata?.handlerProtocol==="h2"};var kw=(h,w)=>{if(!w)return h;else return class l extends h{constructor(G){super(G);for(let I of w)this.middlewareStack.use(I)}}},QG=(h={},w)=>mw(h,kw(j,w)),XG=(h={},w)=>Jw(h,kw(j,w)),f3=(h)=>(w)=>h({roleAssumer:QG(w),roleAssumerWithWebIdentity:XG(w),...w});export{XG as getDefaultRoleAssumerWithWebIdentity,QG as getDefaultRoleAssumer,f3 as decorateDefaultCredentialProvider,q0 as __Client,y as STSServiceException,j as STSClient,Iw as STS,Dh as RegionDisabledException,Jh as PackedPolicyTooLargeException,mh as MalformedPolicyDocumentException,Kh as InvalidIdentityTokenException,Eh as InvalidAuthorizationMessageException,kh as IDPRejectedClaimException,Bh as IDPCommunicationErrorException,R0 as GetSessionTokenResponseFilterSensitiveLog,Gl as GetSessionTokenCommand,L0 as GetFederationTokenResponseFilterSensitiveLog,wl as GetFederationTokenCommand,ll as GetCallerIdentityCommand,hl as GetAccessKeyInfoCommand,Sh as ExpiredTokenException,th as DecodeAuthorizationMessageCommand,n as CredentialsFilterSensitiveLog,j0 as AssumeRoleWithWebIdentityResponseFilterSensitiveLog,A0 as AssumeRoleWithWebIdentityRequestFilterSensitiveLog,lh as AssumeRoleWithWebIdentityCommand,T0 as AssumeRoleWithSAMLResponseFilterSensitiveLog,N0 as AssumeRoleWithSAMLRequestFilterSensitiveLog,uh as AssumeRoleWithSAMLCommand,W0 as AssumeRoleResponseFilterSensitiveLog,hh as AssumeRoleCommand,Q as $Command};
@@ -0,0 +1,2 @@
1
+ import{xb as D}from"./chunk-qqp394c2.js";var C=D((h,A)=>{var{defineProperty:Q,getOwnPropertyDescriptor:M,getOwnPropertyNames:J}=Object,V=Object.prototype.hasOwnProperty,I=(j,b)=>Q(j,"name",{value:b,configurable:!0}),w=(j,b)=>{for(var F in b)Q(j,F,{get:b[F],enumerable:!0})},O=(j,b,F,B)=>{if(b&&typeof b==="object"||typeof b==="function"){for(let G of J(b))if(!V.call(j,G)&&G!==F)Q(j,G,{get:()=>b[G],enumerable:!(B=M(b,G))||B.enumerable})}return j},q=(j)=>O(Q({},"__esModule",{value:!0}),j),Y={};w(Y,{CredentialsProviderError:()=>L,ProviderError:()=>U,TokenProviderError:()=>S,chain:()=>T,fromStatic:()=>N,memoize:()=>R});A.exports=q(Y);var Z=class j extends Error{constructor(b,F=!0){var B;let G,H=!0;if(typeof F==="boolean")G=void 0,H=F;else if(F!=null&&typeof F==="object")G=F.logger,H=F.tryNextLink??!0;super(b);this.name="ProviderError",this.tryNextLink=H,Object.setPrototypeOf(this,j.prototype),(B=G==null?void 0:G.debug)==null||B.call(G,`@smithy/property-provider ${H?"->":"(!)"} ${b}`)}static from(b,F=!0){return Object.assign(new this(b.message,F),b)}};I(Z,"ProviderError");var U=Z,$=class j extends U{constructor(b,F=!0){super(b,F);this.name="CredentialsProviderError",Object.setPrototypeOf(this,j.prototype)}};I($,"CredentialsProviderError");var L=$,z=class j extends U{constructor(b,F=!0){super(b,F);this.name="TokenProviderError",Object.setPrototypeOf(this,j.prototype)}};I(z,"TokenProviderError");var S=z,T=I((...j)=>async()=>{if(j.length===0)throw new U("No providers in chain");let b;for(let F of j)try{return await F()}catch(B){if(b=B,B==null?void 0:B.tryNextLink)continue;throw B}throw b},"chain"),N=I((j)=>()=>Promise.resolve(j),"fromStatic"),R=I((j,b,F)=>{let B,G,H,W=!1,X=I(async()=>{if(!G)G=j();try{B=await G,H=!0,W=!1}finally{G=void 0}return B},"coalesceProvider");if(b===void 0)return async(K)=>{if(!H||(K==null?void 0:K.forceRefresh))B=await X();return B};return async(K)=>{if(!H||(K==null?void 0:K.forceRefresh))B=await X();if(W)return B;if(F&&!F(B))return W=!0,B;if(b(B))return await X(),B;return B}},"memoize")});
2
+ export{C as ub};