@stacksjs/buddy 0.65.0 → 0.66.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 (60) hide show
  1. package/dist/chunk-3cfvbq6w.js +5 -0
  2. package/dist/{chunk-5mkzknp4.js.map → chunk-3cfvbq6w.js.map} +2 -2
  3. package/dist/{chunk-pbpgcz3v.js → chunk-3v3h2zkp.js} +3 -3
  4. package/dist/{chunk-pbpgcz3v.js.map → chunk-3v3h2zkp.js.map} +1 -1
  5. package/dist/{chunk-agapayce.js → chunk-3zx3yk1m.js} +3 -3
  6. package/dist/{chunk-agapayce.js.map → chunk-3zx3yk1m.js.map} +1 -1
  7. package/dist/{chunk-3gvx3tap.js → chunk-8a487snn.js} +3 -3
  8. package/dist/{chunk-3gvx3tap.js.map → chunk-8a487snn.js.map} +1 -1
  9. package/dist/chunk-9kkf5maz.js +5 -0
  10. package/dist/{chunk-w4zypt02.js.map → chunk-9kkf5maz.js.map} +4 -4
  11. package/dist/{chunk-z7609s4h.js → chunk-9qba8jdt.js} +4 -4
  12. package/dist/{chunk-z7609s4h.js.map → chunk-9qba8jdt.js.map} +1 -1
  13. package/dist/{chunk-fqrjh7j8.js → chunk-cvpb67bs.js} +3 -3
  14. package/dist/{chunk-fqrjh7j8.js.map → chunk-cvpb67bs.js.map} +1 -1
  15. package/dist/{chunk-1bcxd9nx.js → chunk-eqwfdbyk.js} +3 -3
  16. package/dist/{chunk-1bcxd9nx.js.map → chunk-eqwfdbyk.js.map} +1 -1
  17. package/dist/{chunk-a6ba4vgs.js → chunk-f41k7dpa.js} +3 -3
  18. package/dist/{chunk-a6ba4vgs.js.map → chunk-f41k7dpa.js.map} +1 -1
  19. package/dist/{chunk-jkt9jxar.js → chunk-fx1zxxxa.js} +3 -3
  20. package/dist/{chunk-jkt9jxar.js.map → chunk-fx1zxxxa.js.map} +1 -1
  21. package/dist/{chunk-smzpmhmp.js → chunk-get5gzkc.js} +4 -4
  22. package/dist/{chunk-smzpmhmp.js.map → chunk-get5gzkc.js.map} +1 -1
  23. package/dist/{chunk-n55kahn5.js → chunk-m43npkjw.js} +3 -3
  24. package/dist/{chunk-n55kahn5.js.map → chunk-m43npkjw.js.map} +1 -1
  25. package/dist/chunk-mrrgcavv.js +831 -0
  26. package/dist/{chunk-mmjggjd5.js.map → chunk-mrrgcavv.js.map} +9 -9
  27. package/dist/chunk-n5y0mrsg.js +15 -0
  28. package/dist/{chunk-a3d48jzd.js.map → chunk-n5y0mrsg.js.map} +24 -15
  29. package/dist/chunk-qebxvzqz.js +5 -0
  30. package/dist/{chunk-b9d377d9.js.map → chunk-qebxvzqz.js.map} +2 -2
  31. package/dist/{chunk-sadghty0.js → chunk-qj2v5psd.js} +3 -3
  32. package/dist/{chunk-sadghty0.js.map → chunk-qj2v5psd.js.map} +1 -1
  33. package/dist/chunk-rh4brnzh.js +5 -0
  34. package/dist/chunk-rh4brnzh.js.map +16 -0
  35. package/dist/chunk-w2vwjv6k.js +6 -0
  36. package/dist/{chunk-mxwvrbdh.js.map → chunk-w2vwjv6k.js.map} +10 -12
  37. package/dist/{chunk-yxs8vtg9.js → chunk-w81rbh65.js} +4 -4
  38. package/dist/{chunk-yxs8vtg9.js.map → chunk-w81rbh65.js.map} +1 -1
  39. package/dist/chunk-wayp5kn2.js +5 -0
  40. package/dist/{chunk-ywfsnx7v.js.map → chunk-wayp5kn2.js.map} +2 -2
  41. package/dist/{chunk-bh61bx6h.js → chunk-x5c5ngpb.js} +3 -3
  42. package/dist/{chunk-bh61bx6h.js.map → chunk-x5c5ngpb.js.map} +1 -1
  43. package/dist/cli.js +1 -1
  44. package/dist/index.js +1 -1
  45. package/dist/stacks +0 -0
  46. package/package.json +45 -45
  47. package/src/commands/deploy.ts +1 -1
  48. package/src/commands/list.ts +1 -1
  49. package/src/commands/outdated.ts +1 -1
  50. package/src/commands/ports.ts +1 -1
  51. package/src/commands/release.ts +1 -4
  52. package/dist/chunk-5mkzknp4.js +0 -5
  53. package/dist/chunk-a3d48jzd.js +0 -15
  54. package/dist/chunk-b9d377d9.js +0 -5
  55. package/dist/chunk-k1q2z202.js +0 -4
  56. package/dist/chunk-k1q2z202.js.map +0 -16
  57. package/dist/chunk-mmjggjd5.js +0 -849
  58. package/dist/chunk-mxwvrbdh.js +0 -6
  59. package/dist/chunk-w4zypt02.js +0 -5
  60. package/dist/chunk-ywfsnx7v.js +0 -5
@@ -1,4 +1,4 @@
1
- import{mb as S}from"./chunk-yxs8vtg9.js";import{xb as x}from"./chunk-3gvx3tap.js";var q="AWS_PROFILE";var B=(o)=>o.profile||process.env.AWS_PROFILE||"default";import{join as b}from"path";import{homedir as N}from"os";import{sep as L}from"path";var d={},w=()=>{if(process&&process.geteuid)return`${process.geteuid()}`;return"DEFAULT"},f=()=>{const{HOME:o,USERPROFILE:e,HOMEPATH:t,HOMEDRIVE:r=`C:${L}`}=process.env;if(o)return o;if(e)return e;if(t)return`${r}${t}`;const i=w();if(!d[i])d[i]=N();return d[i]};var v="AWS_CONFIG_FILE",g=()=>process.env[v]||b(f(),".aws","config");var D=x(S(),1);import{join as I}from"path";var h=x(S(),1);var O=(o)=>Object.entries(o).filter(([e])=>{const t=e.indexOf(c);if(t===-1)return!1;return Object.values(h.IniSectionType).includes(e.substring(0,t))}).reduce((e,[t,r])=>{const i=t.indexOf(c),s=t.substring(0,i)===h.IniSectionType.PROFILE?t.substring(i+1):t;return e[s]=r,e},{...o.default&&{default:o.default}});import{join as j}from"path";var y="AWS_SHARED_CREDENTIALS_FILE",_=()=>process.env[y]||j(f(),".aws","credentials");var C=x(S(),1);var $=/^([\w-]+)\s(["'])?([\w-@\+\.%:/]+)\2$/,G=["__proto__","profile __proto__"],a=(o)=>{const e={};let t,r;for(let i of o.split(/\r?\n/)){const s=i.split(/(^|\s)[;#]/)[0].trim();if(s[0]==="["&&s[s.length-1]==="]"){t=void 0,r=void 0;const n=s.substring(1,s.length-1),m=$.exec(n);if(m){const[,p,,F]=m;if(Object.values(C.IniSectionType).includes(p))t=[p,F].join(c)}else t=n;if(G.includes(n))throw new Error(`Found invalid profile name "${n}"`)}else if(t){const n=s.indexOf("=");if(![0,-1].includes(n)){const[m,p]=[s.substring(0,n).trim(),s.substring(n+1).trim()];if(p==="")r=m;else{if(r&&i.trimStart()===i)r=void 0;e[t]=e[t]||{};const F=r?[r,m].join(c):m;e[t][F]=p}}}}return e};import{promises as W}from"fs";var{readFile:K}=W,E={},l=(o,e)=>{if(!E[o]||e?.ignoreCache)E[o]=K(o,"utf8");return E[o]};var P=()=>({}),c=".",R=async(o={})=>{const{filepath:e=_(),configFilepath:t=g()}=o,r=f();let s=e;if(e.startsWith("~/"))s=I(r,e.slice(2));let u=t;if(t.startsWith("~/"))u=I(r,t.slice(2));const n=await Promise.all([l(u,{ignoreCache:o.ignoreCache}).then(a).then(O).catch(P),l(s,{ignoreCache:o.ignoreCache}).then(a).catch(P)]);return{configFile:n[0],credentialsFile:n[1]}};var T=(o)=>Object.entries(o).filter(([e])=>e.startsWith(D.IniSectionType.SSO_SESSION+c)).reduce((e,[t,r])=>({...e,[t.substring(t.indexOf(c)+1)]:r}),{});var V=()=>({}),Pe=async(o={})=>l(o.configFilepath??g()).then(a).then(T).catch(V);var A=(...o)=>{const e={};for(let t of o)for(let[r,i]of Object.entries(t))if(e[r]!==void 0)Object.assign(e[r],i);else e[r]=i;return e};var He=async(o)=>{const e=await R(o);return A(e.configFile,e.credentialsFile)};import{createHash as U}from"crypto";import{join as X}from"path";var H=(o)=>{const t=U("sha1").update(o).digest("hex");return X(f(),".aws","sso","cache",`${t}.json`)};import{promises as k}from"fs";var{readFile:M}=k,$e=async(o)=>{const e=H(o),t=await M(e,"utf8");return JSON.parse(t)};export{q as eb,B as fb,H as gb,$e as hb,c as ib,R as jb,Pe as kb,He as lb};
1
+ import{qb as S}from"./chunk-w81rbh65.js";import{Bb as x}from"./chunk-8a487snn.js";var q="AWS_PROFILE";var B=(o)=>o.profile||process.env.AWS_PROFILE||"default";import{join as b}from"path";import{homedir as N}from"os";import{sep as L}from"path";var d={},w=()=>{if(process&&process.geteuid)return`${process.geteuid()}`;return"DEFAULT"},f=()=>{const{HOME:o,USERPROFILE:e,HOMEPATH:t,HOMEDRIVE:r=`C:${L}`}=process.env;if(o)return o;if(e)return e;if(t)return`${r}${t}`;const i=w();if(!d[i])d[i]=N();return d[i]};var v="AWS_CONFIG_FILE",g=()=>process.env[v]||b(f(),".aws","config");var D=x(S(),1);import{join as I}from"path";var h=x(S(),1);var O=(o)=>Object.entries(o).filter(([e])=>{const t=e.indexOf(c);if(t===-1)return!1;return Object.values(h.IniSectionType).includes(e.substring(0,t))}).reduce((e,[t,r])=>{const i=t.indexOf(c),s=t.substring(0,i)===h.IniSectionType.PROFILE?t.substring(i+1):t;return e[s]=r,e},{...o.default&&{default:o.default}});import{join as j}from"path";var y="AWS_SHARED_CREDENTIALS_FILE",_=()=>process.env[y]||j(f(),".aws","credentials");var C=x(S(),1);var $=/^([\w-]+)\s(["'])?([\w-@\+\.%:/]+)\2$/,G=["__proto__","profile __proto__"],a=(o)=>{const e={};let t,r;for(let i of o.split(/\r?\n/)){const s=i.split(/(^|\s)[;#]/)[0].trim();if(s[0]==="["&&s[s.length-1]==="]"){t=void 0,r=void 0;const n=s.substring(1,s.length-1),m=$.exec(n);if(m){const[,p,,F]=m;if(Object.values(C.IniSectionType).includes(p))t=[p,F].join(c)}else t=n;if(G.includes(n))throw new Error(`Found invalid profile name "${n}"`)}else if(t){const n=s.indexOf("=");if(![0,-1].includes(n)){const[m,p]=[s.substring(0,n).trim(),s.substring(n+1).trim()];if(p==="")r=m;else{if(r&&i.trimStart()===i)r=void 0;e[t]=e[t]||{};const F=r?[r,m].join(c):m;e[t][F]=p}}}}return e};import{promises as W}from"fs";var{readFile:K}=W,E={},l=(o,e)=>{if(!E[o]||e?.ignoreCache)E[o]=K(o,"utf8");return E[o]};var P=()=>({}),c=".",R=async(o={})=>{const{filepath:e=_(),configFilepath:t=g()}=o,r=f();let s=e;if(e.startsWith("~/"))s=I(r,e.slice(2));let u=t;if(t.startsWith("~/"))u=I(r,t.slice(2));const n=await Promise.all([l(u,{ignoreCache:o.ignoreCache}).then(a).then(O).catch(P),l(s,{ignoreCache:o.ignoreCache}).then(a).catch(P)]);return{configFile:n[0],credentialsFile:n[1]}};var T=(o)=>Object.entries(o).filter(([e])=>e.startsWith(D.IniSectionType.SSO_SESSION+c)).reduce((e,[t,r])=>({...e,[t.substring(t.indexOf(c)+1)]:r}),{});var V=()=>({}),Pe=async(o={})=>l(o.configFilepath??g()).then(a).then(T).catch(V);var A=(...o)=>{const e={};for(let t of o)for(let[r,i]of Object.entries(t))if(e[r]!==void 0)Object.assign(e[r],i);else e[r]=i;return e};var He=async(o)=>{const e=await R(o);return A(e.configFile,e.credentialsFile)};import{createHash as U}from"crypto";import{join as X}from"path";var H=(o)=>{const t=U("sha1").update(o).digest("hex");return X(f(),".aws","sso","cache",`${t}.json`)};import{promises as k}from"fs";var{readFile:M}=k,$e=async(o)=>{const e=H(o),t=await M(e,"utf8");return JSON.parse(t)};export{q as ib,B as jb,H as kb,$e as lb,c as mb,R as nb,Pe as ob,He as pb};
2
2
 
3
- //# debugId=722EBCCE12BFD26A64756E2164756E21
4
- //# sourceMappingURL=chunk-bh61bx6h.js.map
3
+ //# debugId=0BCFADA372B7509E64756E2164756E21
4
+ //# sourceMappingURL=chunk-x5c5ngpb.js.map
@@ -18,6 +18,6 @@
18
18
  "import { promises as fsPromises } from \"fs\";\nimport { getSSOTokenFilepath } from \"./getSSOTokenFilepath\";\nconst { readFile } = fsPromises;\nexport const getSSOTokenFromFile = async (id) => {\n const ssoTokenFilepath = getSSOTokenFilepath(id);\n const ssoTokenText = await readFile(ssoTokenFilepath, \"utf8\");\n return JSON.parse(ssoTokenText);\n};\n"
19
19
  ],
20
20
  "mappings": "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",
21
- "debugId": "722EBCCE12BFD26A64756E2164756E21",
21
+ "debugId": "0BCFADA372B7509E64756E2164756E21",
22
22
  "names": []
23
23
  }
package/dist/cli.js CHANGED
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{A as f,B as j,C as J,F as I,G as g,I as p,J as a,a as M,b as N,c as O,d as Q,e as R,f as S,h as T,i as U,k as V,l as W,m as X,n as Y,o as Z,p as _,q as $,r as x,s as z,t as C,u as F,v as P,w as h,x as A,y as D,z as k}from"./chunk-mmjggjd5.js";import"./chunk-z7609s4h.js";import"./chunk-a3d48jzd.js";import"./chunk-k1q2z202.js";import"./chunk-mxwvrbdh.js";import"./chunk-bh61bx6h.js";import"./chunk-yxs8vtg9.js";import"./chunk-fqrjh7j8.js";import"./chunk-smzpmhmp.js";import"./chunk-agapayce.js";import"./chunk-3gvx3tap.js";import w from"process";import{runAction as m}from"@stacksjs/actions";import{cli as n,log as v}from"@stacksjs/cli";import{Action as l}from"@stacksjs/enums";import{path as L}from"@stacksjs/path";import{fs as i}from"@stacksjs/storage";import{ensureProjectIsInitialized as c}from"@stacksjs/utils";async function t(){const q=n("buddy");if(J(q),$(q),await c())v.debug("Project is initialized");else{v.info("Your `APP_KEY` is not yet set"),v.info("Generating application key...");const B=await m(l.KeyGenerate);if(B.isErr())v.error("Failed to set random application key.",B.error),w.exit()}M(q),N(q),O(q),Q(q),R(q),S(q),U(q),W(q),T(q),V(q),h(q),D(q),X(q),Y(q),Z(q),_(q),x(q),z(q),C(q),F(q),P(q),k(q),f(q),j(q),J(q),I(q),g(q),a(q),A(q),p(q),await e(q),q.help(),q.parse()}async function e(q){const G=L.appPath("Commands"),B=i.readdirSync(G).filter((E)=>E.endsWith(".ts"));for(let E of B){const H=await import(`${G}/${E}`);if(typeof H.default==="function")H.default(q);else console.error(`Expected a default export function in ${E}, but got:`,H.default)}const K=await import(L.listenersPath("Console.ts"));if(typeof K.default==="function")K.default(q)}w.on("uncaughtException",(q)=>{v.debug("Buddy uncaughtException"),v.error(q),w.exit(1)});w.on("unhandledRejection",(q)=>{v.debug("Buddy unhandledRejection"),v.error(q),w.exit(1)});await t();
2
+ import{A as f,B as j,C as J,F as I,G as g,I as p,J as a,a as M,b as N,c as O,d as Q,e as R,f as S,h as T,i as U,k as V,l as W,m as X,n as Y,o as Z,p as _,q as $,r as x,s as z,t as C,u as F,v as P,w as h,x as A,y as D,z as k}from"./chunk-mrrgcavv.js";import"./chunk-9qba8jdt.js";import"./chunk-n5y0mrsg.js";import"./chunk-rh4brnzh.js";import"./chunk-w2vwjv6k.js";import"./chunk-x5c5ngpb.js";import"./chunk-w81rbh65.js";import"./chunk-cvpb67bs.js";import"./chunk-get5gzkc.js";import"./chunk-3zx3yk1m.js";import"./chunk-8a487snn.js";import w from"process";import{runAction as m}from"@stacksjs/actions";import{cli as n,log as v}from"@stacksjs/cli";import{Action as l}from"@stacksjs/enums";import{path as L}from"@stacksjs/path";import{fs as i}from"@stacksjs/storage";import{ensureProjectIsInitialized as c}from"@stacksjs/utils";async function t(){const q=n("buddy");if(J(q),$(q),await c())v.debug("Project is initialized");else{v.info("Your `APP_KEY` is not yet set"),v.info("Generating application key...");const B=await m(l.KeyGenerate);if(B.isErr())v.error("Failed to set random application key.",B.error),w.exit()}M(q),N(q),O(q),Q(q),R(q),S(q),U(q),W(q),T(q),V(q),h(q),D(q),X(q),Y(q),Z(q),_(q),x(q),z(q),C(q),F(q),P(q),k(q),f(q),j(q),J(q),I(q),g(q),a(q),A(q),p(q),await e(q),q.help(),q.parse()}async function e(q){const G=L.appPath("Commands"),B=i.readdirSync(G).filter((E)=>E.endsWith(".ts"));for(let E of B){const H=await import(`${G}/${E}`);if(typeof H.default==="function")H.default(q);else console.error(`Expected a default export function in ${E}, but got:`,H.default)}const K=await import(L.listenersPath("Console.ts"));if(typeof K.default==="function")K.default(q)}w.on("uncaughtException",(q)=>{v.debug("Buddy uncaughtException"),v.error(q),w.exit(1)});w.on("unhandledRejection",(q)=>{v.debug("Buddy unhandledRejection"),v.error(q),w.exit(1)});await t();
3
3
 
4
4
  //# debugId=D6C317F38B22716E64756E2164756E21
5
5
  //# sourceMappingURL=cli.js.map
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{A as C,B as D,C as E,D as F,E as G,F as H,G as I,H as J,I as K,J as L,a as e,b as f,c as m,d as p,e as t,f as x,g as a,h as b,i as c,j as d,k as g,l as h,m as i,n as j,o as k,p as l,q as n,r as q,s,t as u,u as v,v as w,w as y,x as z,y as A,z as B}from"./chunk-mmjggjd5.js";import"./chunk-z7609s4h.js";import"./chunk-a3d48jzd.js";import"./chunk-k1q2z202.js";import"./chunk-mxwvrbdh.js";import"./chunk-bh61bx6h.js";import"./chunk-yxs8vtg9.js";import"./chunk-fqrjh7j8.js";import"./chunk-smzpmhmp.js";import"./chunk-agapayce.js";import"./chunk-3gvx3tap.js";export{L as version,K as upgrade,J as types,I as tinker,H as test,d as startDevelopmentServer,E as setup,D as seed,C as route,B as release,A as projects,z as prepublish,y as ports,w as outdated,F as optimizePkgxDeps,v as migrate,u as make,s as list,q as lint,n as key,l as install,k as http,j as generate,i as fresh,G as ensureEnvIsSet,h as domains,g as dns,c as dev,b as deploy,a as create,x as configure,t as commit,p as cloud,m as clean,f as changelog,e as build};
2
+ import{A as C,B as D,C as E,D as F,E as G,F as H,G as I,H as J,I as K,J as L,a as e,b as f,c as m,d as p,e as t,f as x,g as a,h as b,i as c,j as d,k as g,l as h,m as i,n as j,o as k,p as l,q as n,r as q,s,t as u,u as v,v as w,w as y,x as z,y as A,z as B}from"./chunk-mrrgcavv.js";import"./chunk-9qba8jdt.js";import"./chunk-n5y0mrsg.js";import"./chunk-rh4brnzh.js";import"./chunk-w2vwjv6k.js";import"./chunk-x5c5ngpb.js";import"./chunk-w81rbh65.js";import"./chunk-cvpb67bs.js";import"./chunk-get5gzkc.js";import"./chunk-3zx3yk1m.js";import"./chunk-8a487snn.js";export{L as version,K as upgrade,J as types,I as tinker,H as test,d as startDevelopmentServer,E as setup,D as seed,C as route,B as release,A as projects,z as prepublish,y as ports,w as outdated,F as optimizePkgxDeps,v as migrate,u as make,s as list,q as lint,n as key,l as install,k as http,j as generate,i as fresh,G as ensureEnvIsSet,h as domains,g as dns,c as dev,b as deploy,a as create,x as configure,t as commit,p as cloud,m as clean,f as changelog,e as build};
3
3
 
4
4
  //# debugId=82A1EEF47F56914E64756E2164756E21
5
5
  //# sourceMappingURL=index.js.map
package/dist/stacks CHANGED
Binary file
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/buddy",
3
3
  "type": "module",
4
- "version": "0.65.0",
4
+ "version": "0.66.0",
5
5
  "description": "Meet Buddy. The Stacks runtime.",
6
6
  "author": "Chris Breuer",
7
7
  "contributors": ["Chris Breuer <chris@stacksjs.org>"],
@@ -73,52 +73,52 @@
73
73
  "prepublishOnly": "bun run build"
74
74
  },
75
75
  "dependencies": {
76
- "@stacksjs/actions": "0.64.6",
77
- "@stacksjs/ai": "0.64.6",
78
- "@stacksjs/alias": "0.64.6",
79
- "@stacksjs/arrays": "0.64.6",
80
- "@stacksjs/auth": "0.64.6",
81
- "@stacksjs/build": "0.64.6",
82
- "@stacksjs/cache": "0.64.6",
83
- "@stacksjs/cli": "0.64.6",
84
- "@stacksjs/cloud": "0.64.6",
85
- "@stacksjs/collections": "0.64.6",
86
- "@stacksjs/config": "0.64.6",
87
- "@stacksjs/database": "0.64.6",
88
- "@stacksjs/desktop": "0.64.6",
89
- "@stacksjs/development": "0.64.6",
90
- "@stacksjs/dns": "0.64.6",
91
- "@stacksjs/docs": "0.64.6",
92
- "@stacksjs/email": "0.64.6",
93
- "@stacksjs/enums": "0.64.6",
94
- "@stacksjs/error-handling": "0.64.6",
95
- "@stacksjs/events": "0.64.6",
96
- "@stacksjs/faker": "0.64.6",
97
- "@stacksjs/git": "0.64.6",
98
- "@stacksjs/health": "0.64.6",
99
- "@stacksjs/lint": "0.64.6",
100
- "@stacksjs/logging": "0.64.6",
101
- "@stacksjs/notifications": "0.64.6",
102
- "@stacksjs/objects": "0.64.6",
103
- "@stacksjs/orm": "0.64.6",
104
- "@stacksjs/path": "0.64.6",
105
- "@stacksjs/payments": "0.64.6",
106
- "@stacksjs/realtime": "0.64.6",
107
- "@stacksjs/router": "0.64.6",
108
- "@stacksjs/search-engine": "0.64.6",
109
- "@stacksjs/security": "0.64.6",
110
- "@stacksjs/server": "0.64.6",
111
- "@stacksjs/storage": "0.64.6",
112
- "@stacksjs/strings": "0.64.6",
113
- "@stacksjs/testing": "0.64.6",
114
- "@stacksjs/tunnel": "0.64.6",
115
- "@stacksjs/types": "0.64.6",
116
- "@stacksjs/ui": "0.64.6",
117
- "@stacksjs/utils": "0.64.6",
118
- "@stacksjs/validation": "0.64.6"
76
+ "@stacksjs/actions": "0.65.1",
77
+ "@stacksjs/ai": "0.65.1",
78
+ "@stacksjs/alias": "0.65.1",
79
+ "@stacksjs/arrays": "0.65.1",
80
+ "@stacksjs/auth": "0.65.1",
81
+ "@stacksjs/build": "0.65.1",
82
+ "@stacksjs/cache": "0.65.1",
83
+ "@stacksjs/cli": "0.65.1",
84
+ "@stacksjs/cloud": "0.65.1",
85
+ "@stacksjs/collections": "0.65.1",
86
+ "@stacksjs/config": "0.65.1",
87
+ "@stacksjs/database": "0.65.1",
88
+ "@stacksjs/desktop": "0.65.1",
89
+ "@stacksjs/development": "0.65.1",
90
+ "@stacksjs/dns": "0.65.1",
91
+ "@stacksjs/docs": "0.65.1",
92
+ "@stacksjs/email": "0.65.1",
93
+ "@stacksjs/enums": "0.65.1",
94
+ "@stacksjs/error-handling": "0.65.1",
95
+ "@stacksjs/events": "0.65.1",
96
+ "@stacksjs/faker": "0.65.1",
97
+ "@stacksjs/git": "0.65.1",
98
+ "@stacksjs/health": "0.65.1",
99
+ "@stacksjs/lint": "0.65.1",
100
+ "@stacksjs/logging": "0.65.1",
101
+ "@stacksjs/notifications": "0.65.1",
102
+ "@stacksjs/objects": "0.65.1",
103
+ "@stacksjs/orm": "0.65.1",
104
+ "@stacksjs/path": "0.65.1",
105
+ "@stacksjs/payments": "0.65.1",
106
+ "@stacksjs/realtime": "0.65.1",
107
+ "@stacksjs/router": "0.65.1",
108
+ "@stacksjs/search-engine": "0.65.1",
109
+ "@stacksjs/security": "0.65.1",
110
+ "@stacksjs/server": "0.65.1",
111
+ "@stacksjs/storage": "0.65.1",
112
+ "@stacksjs/strings": "0.65.1",
113
+ "@stacksjs/testing": "0.65.1",
114
+ "@stacksjs/tunnel": "0.65.1",
115
+ "@stacksjs/types": "0.65.1",
116
+ "@stacksjs/ui": "0.65.1",
117
+ "@stacksjs/utils": "0.65.1",
118
+ "@stacksjs/validation": "0.65.1"
119
119
  },
120
120
  "devDependencies": {
121
- "@stacksjs/development": "0.64.6"
121
+ "@stacksjs/development": "0.65.1"
122
122
  },
123
123
  "config": {
124
124
  "commitizen": {
@@ -1,4 +1,5 @@
1
1
  import type { CLI, DeployOptions } from '@stacksjs/types'
2
+ import { $ } from 'bun'
2
3
  import process from 'node:process'
3
4
  import { runAction } from '@stacksjs/actions'
4
5
  import { intro, italic, log, outro, prompts, runCommand } from '@stacksjs/cli'
@@ -7,7 +8,6 @@ import { addDomain, hasUserDomainBeenAddedToCloud } from '@stacksjs/dns'
7
8
  import { Action } from '@stacksjs/enums'
8
9
  import { path as p } from '@stacksjs/path'
9
10
  import { ExitCode } from '@stacksjs/types'
10
- import { $ } from 'bun'
11
11
 
12
12
  export function deploy(buddy: CLI): void {
13
13
  const descriptions = {
@@ -1,8 +1,8 @@
1
1
  import type { CLI, CliOptions } from '@stacksjs/types'
2
+ import { $ } from 'bun'
2
3
  import process from 'node:process'
3
4
  import { log } from '@stacksjs/logging'
4
5
  import { projectPath } from '@stacksjs/path'
5
- import { $ } from 'bun'
6
6
 
7
7
  export function list(buddy: CLI): void {
8
8
  const descriptions = {
@@ -1,8 +1,8 @@
1
1
  import type { CLI } from '@stacksjs/types'
2
+ import { $ } from 'bun'
2
3
  import process from 'node:process'
3
4
  import { log } from '@stacksjs/logging'
4
5
  import { projectPath } from '@stacksjs/path'
5
- import { $ } from 'bun'
6
6
 
7
7
  export function outdated(buddy: CLI): void {
8
8
  const descriptions = {
@@ -1,4 +1,5 @@
1
1
  import type { CLI, Ports, PortsOptions } from '@stacksjs/types'
2
+ import { $ } from 'bun'
2
3
  import process from 'node:process'
3
4
  import { intro, italic, outro } from '@stacksjs/cli'
4
5
  import { ports as projectPorts } from '@stacksjs/config'
@@ -6,7 +7,6 @@ import { log } from '@stacksjs/logging'
6
7
  import { findProjectPath, path as p, projectPath } from '@stacksjs/path'
7
8
  import { ExitCode } from '@stacksjs/types'
8
9
  import { findStacksProjects } from '@stacksjs/utils'
9
- import { $ } from 'bun'
10
10
 
11
11
  export function ports(buddy: CLI): void {
12
12
  const descriptions = {
@@ -25,10 +25,7 @@ export function release(buddy: CLI): void {
25
25
  log.warn('Dry run enabled. No changes will be made or committed.')
26
26
 
27
27
  const startTime = await intro('buddy release')
28
- const result = await runAction(Action.Release, {
29
- stdin: 'inherit',
30
- ...options,
31
- })
28
+ const result = await runAction(Action.Release, options)
32
29
 
33
30
  if (result.isErr()) {
34
31
  log.error('Failed to release', result.error)
@@ -1,5 +0,0 @@
1
- // @bun
2
- import{K as Ph}from"./chunk-z7609s4h.js";import{$ as Cl,L as B0,M as E0,N as y0,O as Q0,P as kw,Q as Fw,R as Uh,S as X0,T as Nl,U as Tl,V as jl,W as Al,X as Gh,Y as Y0,Z as bl,_ as fl,aa as Ol,ba as Z0,ca as F0,da as B,ea as E,fa as $0,ga as gl,ha as V0,ia as xl,ja as P0,ka as ol,la as nl,ma as ul,na as tl,oa as h0,pa as D0,qa as k0}from"./chunk-a3d48jzd.js";import{ra as Xw,sa as f}from"./chunk-k1q2z202.js";import{Aa as Zw,Ba as U0,Ca as il,Da as cl,Ha as y,Ia as Jh,Ja as hw,Ma as L0,Oa as S,Pa as u,Ra as R0,Sa as v0,Ta as j,Ua as a0,Va as el,Wa as pl,Xa as th,Ya as m0,Za as J0,ab as Rl,ta as H0,ua as S0,va as A0,za as Yw}from"./chunk-mxwvrbdh.js";import"./chunk-bh61bx6h.js";import"./chunk-yxs8vtg9.js";import"./chunk-fqrjh7j8.js";import{qb as QG}from"./chunk-smzpmhmp.js";import"./chunk-agapayce.js";import{xb as F}from"./chunk-3gvx3tap.js";var O=F(Uh(),1);var ml=F(Gh(),1),Ih=F(kw(),1);function Kw(h){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sts",region:h.region},propertiesExtractor:(w,l)=>({signingProperties:{config:w,context:l}})}}function Sl(h){return{schemeId:"smithy.api#noAuth"}}var Jl=async(h,w,l)=>{return{operation:Ih.getSmithyContext(w).operation,region:await Ih.normalizeProvider(h.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}},Dl=(h)=>{const w=[];switch(h.operation){case"AssumeRoleWithSAML":{w.push(Sl(h));break}case"AssumeRoleWithWebIdentity":{w.push(Sl(h));break}default:w.push(Kw(h))}return w},Bw=(h)=>({...h,stsClientCtor:A}),kl=(h)=>{const w=Bw(h);return{...ml.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 Bl={name:"@aws-sdk/client-sts",description:"AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native",version:"3.668.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:"yarn test:unit","test:unit":"jest"},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.668.0","@aws-sdk/core":"3.667.0","@aws-sdk/credential-provider-node":"3.668.0","@aws-sdk/middleware-host-header":"3.667.0","@aws-sdk/middleware-logger":"3.667.0","@aws-sdk/middleware-recursion-detection":"3.667.0","@aws-sdk/middleware-user-agent":"3.668.0","@aws-sdk/region-config-resolver":"3.667.0","@aws-sdk/types":"3.667.0","@aws-sdk/util-endpoints":"3.667.0","@aws-sdk/util-user-agent-browser":"3.667.0","@aws-sdk/util-user-agent-node":"3.668.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 Sh=F(Gh(),1);var l0=F(Uh(),1);var w0=F(Fw(),1);var al=F(Gh(),1),sl=F(Uh(),1);var rl=F(Xw(),1),dh=F(Zw(),1),Hh=F(Yw(),1);var El={["required"]:!1,["type"]:"String"},Vh={["required"]:!0,default:!1,["type"]:"Boolean"},Ul={["ref"]:"Endpoint"},yl={["fn"]:"isSet",["argv"]:[{["ref"]:"Region"}]},J={["ref"]:"Region"},Ql={["fn"]:"aws.partition",["argv"]:[J],assign:"PartitionResult"},Pl={["ref"]:"UseFIPS"},vl={["ref"]:"UseDualStack"},k={url:"https://sts.amazonaws.com",properties:{authSchemes:[{name:"sigv4",signingName:"sts",signingRegion:"us-east-1"}]},headers:{}},$={},Xl={conditions:[{["fn"]:"stringEquals",["argv"]:[J,"aws-global"]}],["endpoint"]:k,["type"]:"endpoint"},ql={["fn"]:"booleanEquals",["argv"]:[Pl,!0]},zl={["fn"]:"booleanEquals",["argv"]:[vl,!0]},Yl={["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"supportsFIPS"]},Ml={["ref"]:"PartitionResult"},Zl={["fn"]:"booleanEquals",["argv"]:[!0,{["fn"]:"getAttr",["argv"]:[Ml,"supportsDualStack"]}]},Fl=[{["fn"]:"isSet",["argv"]:[Ul]}],$l=[ql],Vl=[zl],yw={version:"1.0",parameters:{Region:El,UseDualStack:Vh,UseFIPS:Vh,Endpoint:El,UseGlobalEndpoint:Vh},rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseGlobalEndpoint"},!0]},{["fn"]:"not",["argv"]:Fl},yl,Ql,{["fn"]:"booleanEquals",["argv"]:[Pl,!1]},{["fn"]:"booleanEquals",["argv"]:[vl,!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:$},["type"]:"endpoint"}],["type"]:"tree"},{conditions:Fl,rules:[{conditions:$l,error:"Invalid Configuration: FIPS and custom endpoint are not supported",["type"]:"error"},{conditions:Vl,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",["type"]:"error"},{endpoint:{url:Ul,properties:$,headers:$},["type"]:"endpoint"}],["type"]:"tree"},{conditions:[yl],rules:[{conditions:[Ql],rules:[{conditions:[ql,zl],rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[!0,Yl]},Zl],rules:[{endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:$,headers:$},["type"]:"endpoint"}],["type"]:"tree"},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",["type"]:"error"}],["type"]:"tree"},{conditions:$l,rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[Yl,!0]}],rules:[{conditions:[{["fn"]:"stringEquals",["argv"]:[{["fn"]:"getAttr",["argv"]:[Ml,"name"]},"aws-us-gov"]}],endpoint:{url:"https://sts.{Region}.amazonaws.com",properties:$,headers:$},["type"]:"endpoint"},{endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dnsSuffix}",properties:$,headers:$},["type"]:"endpoint"}],["type"]:"tree"},{error:"FIPS is enabled but this partition does not support FIPS",["type"]:"error"}],["type"]:"tree"},{conditions:Vl,rules:[{conditions:[Zl],rules:[{endpoint:{url:"https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:$,headers:$},["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:$,headers:$},["type"]:"endpoint"}],["type"]:"tree"}],["type"]:"tree"},{error:"Invalid Configuration: Missing Region",["type"]:"error"}]},Wl=yw;var Qw=new Nl({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS","UseGlobalEndpoint"]}),Ll=(h,w={})=>{return Qw.get(h,()=>jl(Wl,{endpointParams:h,logger:w.logger}))};Tl.aws=Al;var _l=(h)=>{return{apiVersion:"2011-06-15",base64Decoder:h?.base64Decoder??dh.fromBase64,base64Encoder:h?.base64Encoder??dh.toBase64,disableHostPrefix:h?.disableHostPrefix??!1,endpointProvider:h?.endpointProvider??Ll,extensions:h?.extensions??[],httpAuthSchemeProvider:h?.httpAuthSchemeProvider??Dl,httpAuthSchemes:h?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(w)=>w.getIdentityProvider("aws.auth#sigv4"),signer:new al.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:(w)=>w.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new sl.NoAuthSigner}],logger:h?.logger??new Rl,serviceId:h?.serviceId??"STS",urlParser:h?.urlParser??rl.parseUrl,utf8Decoder:h?.utf8Decoder??Hh.fromUtf8,utf8Encoder:h?.utf8Encoder??Hh.toUtf8}};var G0=(h)=>{pl(process.version);const w=h0(h),l=()=>w().then(el),G=_l(h);return Sh.emitWarningIfUnsupportedVersion(process.version),{...G,...h,runtime:"node",defaultsMode:w,bodyLengthChecker:h?.bodyLengthChecker??tl,credentialDefaultProvider:h?.credentialDefaultProvider??Ph,defaultUserAgentProvider:h?.defaultUserAgentProvider??ol({serviceId:G.serviceId,clientVersion:Bl.version}),httpAuthSchemes:h?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(I)=>I.getIdentityProvider("aws.auth#sigv4")||(async(H)=>await Ph(H?.__config||{})()),signer:new Sh.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:(I)=>I.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new l0.NoAuthSigner}],maxAttempts:h?.maxAttempts??f(gl),region:h?.region??f(Cl,Ol),requestHandler:il.create(h?.requestHandler??l),retryMode:h?.retryMode??f({...xl,default:async()=>(await l()).retryMode||w0.DEFAULT_RETRY_MODE}),sha256:h?.sha256??ul.bind(null,"sha256"),streamCollector:h?.streamCollector??cl,useDualstackEndpoint:h?.useDualstackEndpoint??f(bl),useFipsEndpoint:h?.useFipsEndpoint??f(fl),userAgentAppId:h?.userAgentAppId??f(nl)}};var I0=(h)=>{const w=h.httpAuthSchemes;let{httpAuthSchemeProvider:l,credentials:G}=h;return{setHttpAuthScheme(I){const 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}}},d0=(h)=>{return{httpAuthSchemes:h.httpAuthSchemes(),httpAuthSchemeProvider:h.httpAuthSchemeProvider(),credentials:h.credentials()}};var mh=(h)=>h,K0=(h,w)=>{const l={...mh(D0(h)),...mh(m0(h)),...mh(H0(h)),...mh(I0(h))};return w.forEach((G)=>G.configure(l)),{...h,...k0(l),...J0(l),...S0(l),...d0(l)}};class A extends U0{constructor(...[h]){const w=G0(h||{}),l=Kl(w),G=X0(l),I=V0(G),H=Z0(I),d=B0(H),Q=$0(d),M=kl(Q),q=K0(M,h?.extensions||[]);super(q);this.config=q,this.middlewareStack.use(Y0(this.config)),this.middlewareStack.use(P0(this.config)),this.middlewareStack.use(F0(this.config)),this.middlewareStack.use(E0(this.config)),this.middlewareStack.use(y0(this.config)),this.middlewareStack.use(Q0(this.config)),this.middlewareStack.use(O.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:Jl,identityProviderConfigProvider:async(C)=>new O.DefaultIdentityProviderConfig({"aws.auth#sigv4":C.credentials})})),this.middlewareStack.use(O.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}class Z extends v0{constructor(h){super(h);Object.setPrototypeOf(this,Z.prototype)}}class Dh extends Z{constructor(h){super({name:"ExpiredTokenException",$fault:"client",...h});this.name="ExpiredTokenException",this.$fault="client",Object.setPrototypeOf(this,Dh.prototype)}}class kh extends Z{constructor(h){super({name:"MalformedPolicyDocumentException",$fault:"client",...h});this.name="MalformedPolicyDocumentException",this.$fault="client",Object.setPrototypeOf(this,kh.prototype)}}class Kh extends Z{constructor(h){super({name:"PackedPolicyTooLargeException",$fault:"client",...h});this.name="PackedPolicyTooLargeException",this.$fault="client",Object.setPrototypeOf(this,Kh.prototype)}}class Bh extends Z{constructor(h){super({name:"RegionDisabledException",$fault:"client",...h});this.name="RegionDisabledException",this.$fault="client",Object.setPrototypeOf(this,Bh.prototype)}}class Eh extends Z{constructor(h){super({name:"IDPRejectedClaimException",$fault:"client",...h});this.name="IDPRejectedClaimException",this.$fault="client",Object.setPrototypeOf(this,Eh.prototype)}}class yh extends Z{constructor(h){super({name:"InvalidIdentityTokenException",$fault:"client",...h});this.name="InvalidIdentityTokenException",this.$fault="client",Object.setPrototypeOf(this,yh.prototype)}}class Qh extends Z{constructor(h){super({name:"IDPCommunicationErrorException",$fault:"client",...h});this.name="IDPCommunicationErrorException",this.$fault="client",Object.setPrototypeOf(this,Qh.prototype)}}class Xh extends Z{constructor(h){super({name:"InvalidAuthorizationMessageException",$fault:"client",...h});this.name="InvalidAuthorizationMessageException",this.$fault="client",Object.setPrototypeOf(this,Xh.prototype)}}var n=(h)=>({...h,...h.SecretAccessKey&&{SecretAccessKey:Jh}}),q0=(h)=>({...h,...h.Credentials&&{Credentials:n(h.Credentials)}}),z0=(h)=>({...h,...h.SAMLAssertion&&{SAMLAssertion:Jh}}),M0=(h)=>({...h,...h.Credentials&&{Credentials:n(h.Credentials)}}),W0=(h)=>({...h,...h.WebIdentityToken&&{WebIdentityToken:Jh}}),N0=(h)=>({...h,...h.Credentials&&{Credentials:n(h.Credentials)}}),T0=(h)=>({...h,...h.Credentials&&{Credentials:n(h.Credentials)}}),j0=(h)=>({...h,...h.Credentials&&{Credentials:n(h.Credentials)}});var z=F(Gh(),1);var s0=async(h,w)=>{const l=a;let G;return G=b({...Ww(h,w),[r]:HG,[_]:s}),R(w,l,"/",void 0,G)},r0=async(h,w)=>{const l=a;let G;return G=b({...Nw(h,w),[r]:SG,[_]:s}),R(w,l,"/",void 0,G)},_0=async(h,w)=>{const l=a;let G;return G=b({...Tw(h,w),[r]:mG,[_]:s}),R(w,l,"/",void 0,G)},b0=async(h,w)=>{const l=a;let G;return G=b({...jw(h,w),[r]:JG,[_]:s}),R(w,l,"/",void 0,G)},f0=async(h,w)=>{const l=a;let G;return G=b({...Aw(h,w),[r]:DG,[_]:s}),R(w,l,"/",void 0,G)},C0=async(h,w)=>{const l=a;let G;return G=b({...Lw(h,w),[r]:kG,[_]:s}),R(w,l,"/",void 0,G)},O0=async(h,w)=>{const l=a;let G;return G=b({...Rw(h,w),[r]:KG,[_]:s}),R(w,l,"/",void 0,G)},g0=async(h,w)=>{const l=a;let G;return G=b({...aw(h,w),[r]:BG,[_]:s}),R(w,l,"/",void 0,G)},x0=async(h,w)=>{if(h.statusCode>=300)return L(h,w);const l=await z.parseXmlBody(h.body,w);let G={};return G=Cw(l.AssumeRoleResult,w),{$metadata:K(h),...G}},i0=async(h,w)=>{if(h.statusCode>=300)return L(h,w);const l=await z.parseXmlBody(h.body,w);let G={};return G=Ow(l.AssumeRoleWithSAMLResult,w),{$metadata:K(h),...G}},c0=async(h,w)=>{if(h.statusCode>=300)return L(h,w);const l=await z.parseXmlBody(h.body,w);let G={};return G=gw(l.AssumeRoleWithWebIdentityResult,w),{$metadata:K(h),...G}},e0=async(h,w)=>{if(h.statusCode>=300)return L(h,w);const l=await z.parseXmlBody(h.body,w);let G={};return G=xw(l.DecodeAuthorizationMessageResult,w),{$metadata:K(h),...G}},p0=async(h,w)=>{if(h.statusCode>=300)return L(h,w);const l=await z.parseXmlBody(h.body,w);let G={};return G=ew(l.GetAccessKeyInfoResult,w),{$metadata:K(h),...G}},o0=async(h,w)=>{if(h.statusCode>=300)return L(h,w);const l=await z.parseXmlBody(h.body,w);let G={};return G=pw(l.GetCallerIdentityResult,w),{$metadata:K(h),...G}},n0=async(h,w)=>{if(h.statusCode>=300)return L(h,w);const l=await z.parseXmlBody(h.body,w);let G={};return G=ow(l.GetFederationTokenResult,w),{$metadata:K(h),...G}},u0=async(h,w)=>{if(h.statusCode>=300)return L(h,w);const l=await z.parseXmlBody(h.body,w);let G={};return G=nw(l.GetSessionTokenResult,w),{$metadata:K(h),...G}},L=async(h,w)=>{const l={...h,body:await z.parseXmlErrorBody(h.body,w)},G=EG(h,l.body);switch(G){case"ExpiredTokenException":case"com.amazonaws.sts#ExpiredTokenException":throw await $w(l,w);case"MalformedPolicyDocument":case"com.amazonaws.sts#MalformedPolicyDocumentException":throw await qw(l,w);case"PackedPolicyTooLarge":case"com.amazonaws.sts#PackedPolicyTooLargeException":throw await zw(l,w);case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await Mw(l,w);case"IDPRejectedClaim":case"com.amazonaws.sts#IDPRejectedClaimException":throw await Uw(l,w);case"InvalidIdentityToken":case"com.amazonaws.sts#InvalidIdentityTokenException":throw await vw(l,w);case"IDPCommunicationError":case"com.amazonaws.sts#IDPCommunicationErrorException":throw await Vw(l,w);case"InvalidAuthorizationMessageException":case"com.amazonaws.sts#InvalidAuthorizationMessageException":throw await Pw(l,w);default:const I=l.body;return dG({output:h,parsedBody:I.Error,errorCode:G})}},$w=async(h,w)=>{const l=h.body,G=iw(l.Error,w),I=new Dh({$metadata:K(h),...G});return j(I,l)},Vw=async(h,w)=>{const l=h.body,G=uw(l.Error,w),I=new Qh({$metadata:K(h),...G});return j(I,l)},Uw=async(h,w)=>{const l=h.body,G=tw(l.Error,w),I=new Eh({$metadata:K(h),...G});return j(I,l)},Pw=async(h,w)=>{const l=h.body,G=hG(l.Error,w),I=new Xh({$metadata:K(h),...G});return j(I,l)},vw=async(h,w)=>{const l=h.body,G=lG(l.Error,w),I=new yh({$metadata:K(h),...G});return j(I,l)},qw=async(h,w)=>{const l=h.body,G=wG(l.Error,w),I=new kh({$metadata:K(h),...G});return j(I,l)},zw=async(h,w)=>{const l=h.body,G=GG(l.Error,w),I=new Kh({$metadata:K(h),...G});return j(I,l)},Mw=async(h,w)=>{const l=h.body,G=IG(l.Error,w),I=new Bh({$metadata:K(h),...G});return j(I,l)},Ww=(h,w)=>{const l={};if(h[T]!=null)l[T]=h[T];if(h[c]!=null)l[c]=h[c];if(h[U]!=null){const G=Yh(h[U],w);if(h[U]?.length===0)l.PolicyArns=[];Object.entries(G).forEach(([I,H])=>{const d=`PolicyArns.${I}`;l[d]=H})}if(h[V]!=null)l[V]=h[V];if(h[Y]!=null)l[Y]=h[Y];if(h[p]!=null){const G=t0(h[p],w);if(h[p]?.length===0)l.Tags=[];Object.entries(G).forEach(([I,H])=>{const d=`Tags.${I}`;l[d]=H})}if(h[eh]!=null){const G=fw(h[eh],w);if(h[eh]?.length===0)l.TransitiveTagKeys=[];Object.entries(G).forEach(([I,H])=>{const d=`TransitiveTagKeys.${I}`;l[d]=H})}if(h[Wh]!=null)l[Wh]=h[Wh];if(h[e]!=null)l[e]=h[e];if(h[o]!=null)l[o]=h[o];if(h[v]!=null)l[v]=h[v];if(h[_h]!=null){const G=_w(h[_h],w);if(h[_h]?.length===0)l.ProvidedContexts=[];Object.entries(G).forEach(([I,H])=>{const d=`ProvidedContexts.${I}`;l[d]=H})}return l},Nw=(h,w)=>{const l={};if(h[T]!=null)l[T]=h[T];if(h[sh]!=null)l[sh]=h[sh];if(h[gh]!=null)l[gh]=h[gh];if(h[U]!=null){const G=Yh(h[U],w);if(h[U]?.length===0)l.PolicyArns=[];Object.entries(G).forEach(([I,H])=>{const d=`PolicyArns.${I}`;l[d]=H})}if(h[V]!=null)l[V]=h[V];if(h[Y]!=null)l[Y]=h[Y];return l},Tw=(h,w)=>{const l={};if(h[T]!=null)l[T]=h[T];if(h[c]!=null)l[c]=h[c];if(h[nh]!=null)l[nh]=h[nh];if(h[bh]!=null)l[bh]=h[bh];if(h[U]!=null){const G=Yh(h[U],w);if(h[U]?.length===0)l.PolicyArns=[];Object.entries(G).forEach(([I,H])=>{const d=`PolicyArns.${I}`;l[d]=H})}if(h[V]!=null)l[V]=h[V];if(h[Y]!=null)l[Y]=h[Y];return l},jw=(h,w)=>{const l={};if(h[Nh]!=null)l[Nh]=h[Nh];return l},Aw=(h,w)=>{const l={};if(h[g]!=null)l[g]=h[g];return l},Lw=(h,w)=>{return{}},Rw=(h,w)=>{const l={};if(h[Rh]!=null)l[Rh]=h[Rh];if(h[V]!=null)l[V]=h[V];if(h[U]!=null){const G=Yh(h[U],w);if(h[U]?.length===0)l.PolicyArns=[];Object.entries(G).forEach(([I,H])=>{const d=`PolicyArns.${I}`;l[d]=H})}if(h[Y]!=null)l[Y]=h[Y];if(h[p]!=null){const G=t0(h[p],w);if(h[p]?.length===0)l.Tags=[];Object.entries(G).forEach(([I,H])=>{const d=`Tags.${I}`;l[d]=H})}return l},aw=(h,w)=>{const l={};if(h[Y]!=null)l[Y]=h[Y];if(h[e]!=null)l[e]=h[e];if(h[o]!=null)l[o]=h[o];return l},Yh=(h,w)=>{const l={};let G=1;for(let I of h){if(I===null)continue;const H=sw(I,w);Object.entries(H).forEach(([d,Q])=>{l[`member.${G}.${d}`]=Q}),G++}return l},sw=(h,w)=>{const l={};if(h[uh]!=null)l[uh]=h[uh];return l},rw=(h,w)=>{const l={};if(h[rh]!=null)l[rh]=h[rh];if(h[qh]!=null)l[qh]=h[qh];return l},_w=(h,w)=>{const l={};let G=1;for(let I of h){if(I===null)continue;const H=rw(I,w);Object.entries(H).forEach(([d,Q])=>{l[`member.${G}.${d}`]=Q}),G++}return l},bw=(h,w)=>{const l={};if(h[Lh]!=null)l[Lh]=h[Lh];if(h[oh]!=null)l[oh]=h[oh];return l},fw=(h,w)=>{const l={};let G=1;for(let I of h){if(I===null)continue;l[`member.${G}`]=I,G++}return l},t0=(h,w)=>{const l={};let G=1;for(let I of h){if(I===null)continue;const H=bw(I,w);Object.entries(H).forEach(([d,Q])=>{l[`member.${G}.${d}`]=Q}),G++}return l},hl=(h,w)=>{const l={};if(h[vh]!=null)l[vh]=S(h[vh]);if(h[N]!=null)l[N]=S(h[N]);return l},Cw=(h,w)=>{const l={};if(h[X]!=null)l[X]=t(h[X],w);if(h[W]!=null)l[W]=hl(h[W],w);if(h[P]!=null)l[P]=u(h[P]);if(h[v]!=null)l[v]=S(h[v]);return l},Ow=(h,w)=>{const l={};if(h[X]!=null)l[X]=t(h[X],w);if(h[W]!=null)l[W]=hl(h[W],w);if(h[P]!=null)l[P]=u(h[P]);if(h[Ch]!=null)l[Ch]=S(h[Ch]);if(h[ih]!=null)l[ih]=S(h[ih]);if(h[Ah]!=null)l[Ah]=S(h[Ah]);if(h[i]!=null)l[i]=S(h[i]);if(h[ah]!=null)l[ah]=S(h[ah]);if(h[v]!=null)l[v]=S(h[v]);return l},gw=(h,w)=>{const l={};if(h[X]!=null)l[X]=t(h[X],w);if(h[xh]!=null)l[xh]=S(h[xh]);if(h[W]!=null)l[W]=hl(h[W],w);if(h[P]!=null)l[P]=u(h[P]);if(h[fh]!=null)l[fh]=S(h[fh]);if(h[i]!=null)l[i]=S(h[i]);if(h[v]!=null)l[v]=S(h[v]);return l},t=(h,w)=>{const l={};if(h[g]!=null)l[g]=S(h[g]);if(h[Oh]!=null)l[Oh]=S(h[Oh]);if(h[ch]!=null)l[ch]=S(h[ch]);if(h[Mh]!=null)l[Mh]=L0(R0(h[Mh]));return l},xw=(h,w)=>{const l={};if(h[zh]!=null)l[zh]=S(h[zh]);return l},iw=(h,w)=>{const l={};if(h[m]!=null)l[m]=S(h[m]);return l},cw=(h,w)=>{const l={};if(h[jh]!=null)l[jh]=S(h[jh]);if(h[N]!=null)l[N]=S(h[N]);return l},ew=(h,w)=>{const l={};if(h[x]!=null)l[x]=S(h[x]);return l},pw=(h,w)=>{const l={};if(h[ph]!=null)l[ph]=S(h[ph]);if(h[x]!=null)l[x]=S(h[x]);if(h[N]!=null)l[N]=S(h[N]);return l},ow=(h,w)=>{const l={};if(h[X]!=null)l[X]=t(h[X],w);if(h[Th]!=null)l[Th]=cw(h[Th],w);if(h[P]!=null)l[P]=u(h[P]);return l},nw=(h,w)=>{const l={};if(h[X]!=null)l[X]=t(h[X],w);return l},uw=(h,w)=>{const l={};if(h[m]!=null)l[m]=S(h[m]);return l},tw=(h,w)=>{const l={};if(h[m]!=null)l[m]=S(h[m]);return l},hG=(h,w)=>{const l={};if(h[m]!=null)l[m]=S(h[m]);return l},lG=(h,w)=>{const l={};if(h[m]!=null)l[m]=S(h[m]);return l},wG=(h,w)=>{const l={};if(h[m]!=null)l[m]=S(h[m]);return l},GG=(h,w)=>{const l={};if(h[m]!=null)l[m]=S(h[m]);return l},IG=(h,w)=>{const 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 dG=a0(Z),R=async(h,w,l,G,I)=>{const{hostname:H,protocol:d="https",port:Q,path:M}=await h.endpoint(),q={protocol:d,hostname:H,port:Q,method:"POST",path:M.endsWith("/")?M.slice(0,-1)+l:M+l,headers:w};if(G!==void 0)q.hostname=G;if(I!==void 0)q.body=I;return new A0(q)},a={"content-type":"application/x-www-form-urlencoded"},s="2011-06-15",r="Action",g="AccessKeyId",HG="AssumeRole",vh="AssumedRoleId",W="AssumedRoleUser",SG="AssumeRoleWithSAML",mG="AssumeRoleWithWebIdentity",x="Account",N="Arn",i="Audience",X="Credentials",qh="ContextAssertion",JG="DecodeAuthorizationMessage",zh="DecodedMessage",Y="DurationSeconds",Mh="Expiration",Wh="ExternalId",Nh="EncodedMessage",Th="FederatedUser",jh="FederatedUserId",DG="GetAccessKeyInfo",kG="GetCallerIdentity",KG="GetFederationToken",BG="GetSessionToken",Ah="Issuer",Lh="Key",Rh="Name",ah="NameQualifier",V="Policy",U="PolicyArns",sh="PrincipalArn",rh="ProviderArn",_h="ProvidedContexts",bh="ProviderId",P="PackedPolicySize",fh="Provider",T="RoleArn",c="RoleSessionName",Ch="Subject",Oh="SecretAccessKey",gh="SAMLAssertion",xh="SubjectFromWebIdentityToken",v="SourceIdentity",e="SerialNumber",ih="SubjectType",ch="SessionToken",p="Tags",o="TokenCode",eh="TransitiveTagKeys",ph="UserId",_="Version",oh="Value",nh="WebIdentityToken",uh="arn",m="message",b=(h)=>Object.entries(h).map(([w,l])=>th(w)+"="+th(l)).join("&"),EG=(h,w)=>{if(w.Error?.Code!==void 0)return w.Error.Code;if(h.statusCode==404)return"NotFound"};class hh extends y.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,q0).ser(s0).de(x0).build(){}class ll extends y.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(z0,M0).ser(r0).de(i0).build(){}class lh extends y.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(W0,N0).ser(_0).de(c0).build(){}class wl extends y.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(b0).de(e0).build(){}class Gl extends y.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(f0).de(p0).build(){}class Il extends y.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(C0).de(o0).build(){}class dl extends y.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,T0).ser(O0).de(n0).build(){}class Hl extends y.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,j0).ser(g0).de(u0).build(){}var yG={AssumeRoleCommand:hh,AssumeRoleWithSAMLCommand:ll,AssumeRoleWithWebIdentityCommand:lh,DecodeAuthorizationMessageCommand:wl,GetAccessKeyInfoCommand:Gl,GetCallerIdentityCommand:Il,GetFederationTokenCommand:dl,GetSessionTokenCommand:Hl};class lw extends A{}hw(yG,lw);var Zh=F(QG(),1);var ww="us-east-1",Gw=(h)=>{if(typeof h?.Arn==="string"){const w=h.Arn.split(":");if(w.length>4&&w[4]!=="")return w[4]}return},Iw=async(h,w,l)=>{const 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)`,`${ww} (STS default)`),G??I??ww},dw=(h,w)=>{let l,G;return async(I,H)=>{if(G=I,!l){const{logger:C=h?.parentClientConfig?.logger,region:Fh,requestHandler:wh=h?.parentClientConfig?.requestHandler,credentialProviderLogger:$h}=h,Jw=await Iw(Fh,h?.parentClientConfig?.region,$h),Dw=!Sw(wh);l=new w({credentialDefaultProvider:()=>async()=>G,region:Jw,requestHandler:Dw?wh:void 0,logger:C})}const{Credentials:d,AssumedRoleUser:Q}=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}`);const M=Gw(Q),q={accessKeyId:d.AccessKeyId,secretAccessKey:d.SecretAccessKey,sessionToken:d.SessionToken,expiration:d.Expiration,...d.CredentialScope&&{credentialScope:d.CredentialScope},...M&&{accountId:M}};return Zh.setCredentialFeature(q,"CREDENTIALS_STS_ASSUME_ROLE","i"),q}},Hw=(h,w)=>{let l;return async(G)=>{if(!l){const{logger:M=h?.parentClientConfig?.logger,region:q,requestHandler:C=h?.parentClientConfig?.requestHandler,credentialProviderLogger:Fh}=h,wh=await Iw(q,h?.parentClientConfig?.region,Fh),$h=!Sw(C);l=new w({region:wh,requestHandler:$h?C:void 0,logger:M})}const{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}`);const d=Gw(H),Q={accessKeyId:I.AccessKeyId,secretAccessKey:I.SecretAccessKey,sessionToken:I.SessionToken,expiration:I.Expiration,...I.CredentialScope&&{credentialScope:I.CredentialScope},...d&&{accountId:d}};if(d)Zh.setCredentialFeature(Q,"RESOLVED_ACCOUNT_ID","T");return Zh.setCredentialFeature(Q,"CREDENTIALS_STS_ASSUME_ROLE_WEB_ID","k"),Q}};var Sw=(h)=>{return h?.metadata?.handlerProtocol==="h2"};var mw=(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)}}},XG=(h={},w)=>dw(h,mw(A,w)),YG=(h={},w)=>Hw(h,mw(A,w)),r3=(h)=>(w)=>h({roleAssumer:XG(w),roleAssumerWithWebIdentity:YG(w),...w});export{YG as getDefaultRoleAssumerWithWebIdentity,XG as getDefaultRoleAssumer,r3 as decorateDefaultCredentialProvider,U0 as __Client,Z as STSServiceException,A as STSClient,lw as STS,Bh as RegionDisabledException,Kh as PackedPolicyTooLargeException,kh as MalformedPolicyDocumentException,yh as InvalidIdentityTokenException,Xh as InvalidAuthorizationMessageException,Eh as IDPRejectedClaimException,Qh as IDPCommunicationErrorException,j0 as GetSessionTokenResponseFilterSensitiveLog,Hl as GetSessionTokenCommand,T0 as GetFederationTokenResponseFilterSensitiveLog,dl as GetFederationTokenCommand,Il as GetCallerIdentityCommand,Gl as GetAccessKeyInfoCommand,Dh as ExpiredTokenException,wl as DecodeAuthorizationMessageCommand,n as CredentialsFilterSensitiveLog,N0 as AssumeRoleWithWebIdentityResponseFilterSensitiveLog,W0 as AssumeRoleWithWebIdentityRequestFilterSensitiveLog,lh as AssumeRoleWithWebIdentityCommand,M0 as AssumeRoleWithSAMLResponseFilterSensitiveLog,z0 as AssumeRoleWithSAMLRequestFilterSensitiveLog,ll as AssumeRoleWithSAMLCommand,q0 as AssumeRoleResponseFilterSensitiveLog,hh as AssumeRoleCommand,y as $Command};
3
-
4
- //# debugId=2500274F29631DB864756E2164756E21
5
- //# sourceMappingURL=chunk-5mkzknp4.js.map