@stacksjs/buddy 0.67.0 → 0.68.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/add.d.ts +4 -0
- package/dist/build.d.ts +4 -0
- package/dist/changelog.d.ts +3 -0
- package/dist/chunk-06g79v9j.js +2 -0
- package/dist/chunk-08bm2xax.js +2 -0
- package/dist/chunk-0enrsn65.js +978 -0
- package/dist/{chunk-ncwfzcsm.js → chunk-0m218zhk.js} +1 -1
- package/dist/chunk-0q0jn0kk.js +6 -0
- package/dist/chunk-0qvaepnz.js +2 -0
- package/dist/chunk-0yyhz107.js +2 -0
- package/dist/{chunk-cbtnhpqk.js → chunk-11vhe2za.js} +1 -1
- package/dist/chunk-13143jmy.js +3 -0
- package/dist/chunk-1agj4qty.js +2 -0
- package/dist/chunk-1c4yywmn.js +9 -0
- package/dist/chunk-1e2f0z80.js +2 -0
- package/dist/{chunk-564c63vr.js → chunk-1v13dkfw.js} +1 -1
- package/dist/chunk-20e0mpcw.js +9 -0
- package/dist/{chunk-we57sm1m.js → chunk-25nxsybw.js} +2 -2
- package/dist/chunk-27ksm11g.js +2 -0
- package/dist/{chunk-y2g00ayp.js → chunk-2mhj5ght.js} +1 -1
- package/dist/chunk-2wrs9p57.js +1 -0
- package/dist/chunk-2yj4j69j.js +2 -0
- package/dist/{chunk-pfb4369d.js → chunk-2ymn50ck.js} +1 -1
- package/dist/chunk-3vjfkr7v.js +978 -0
- package/dist/{chunk-3whxjf1k.js → chunk-3wpw5xgd.js} +1 -1
- package/dist/chunk-3y0gapf6.js +2 -0
- package/dist/chunk-4rb5r88h.js +978 -0
- package/dist/chunk-4wb68jfr.js +2 -0
- package/dist/chunk-5ewcj9vd.js +2 -0
- package/dist/chunk-5fm9mfqs.js +2 -0
- package/dist/chunk-5jhkn5by.js +2 -0
- package/dist/chunk-5m9xts4v.js +2 -0
- package/dist/chunk-63pxna7y.js +978 -0
- package/dist/chunk-6sqy7049.js +2 -0
- package/dist/chunk-6yazdvb4.js +2 -0
- package/dist/{chunk-wps8bq6b.js → chunk-746p83dw.js} +1 -1
- package/dist/chunk-76g7tr80.js +2 -0
- package/dist/chunk-7fz1p8p3.js +10 -0
- package/dist/chunk-814adsn3.js +2 -0
- package/dist/chunk-831wk0b3.js +2 -0
- package/dist/chunk-833tanrb.js +2 -0
- package/dist/{chunk-6cscdnf5.js → chunk-8cx90pvv.js} +1 -1
- package/dist/{chunk-5wxk7vka.js → chunk-8gx9at51.js} +1 -1
- package/dist/chunk-8yky4bsd.js +10 -0
- package/dist/chunk-91pnyybg.js +9 -0
- package/dist/chunk-99syj1p0.js +2 -0
- package/dist/chunk-9bxh78vd.js +5 -0
- package/dist/chunk-9jaqey2q.js +2 -0
- package/dist/chunk-9tyaew40.js +2 -0
- package/dist/chunk-9zcyq5gh.js +2 -0
- package/dist/chunk-a4g1e1n0.js +2 -0
- package/dist/chunk-a6g2jk1y.js +2 -0
- package/dist/chunk-aaqd43t5.js +2 -0
- package/dist/chunk-adswb3gq.js +2 -0
- package/dist/chunk-atnw2cq3.js +2 -0
- package/dist/chunk-avdharmq.js +2 -0
- package/dist/chunk-b13gbfg3.js +2 -0
- package/dist/{chunk-ycyg22fp.js → chunk-b3wr7cpk.js} +2 -2
- package/dist/chunk-bngyck4v.js +2 -0
- package/dist/chunk-brb5zthb.js +1 -0
- package/dist/chunk-bx2vf8g7.js +5 -0
- package/dist/chunk-c343n0yt.js +2 -0
- package/dist/{chunk-jfs19hhz.js → chunk-cdwpqzrw.js} +1 -1
- package/dist/chunk-cm7bwdk9.js +2 -0
- package/dist/chunk-cs5k02gt.js +1 -0
- package/dist/chunk-cv8f2v27.js +2 -0
- package/dist/chunk-d2dbhn2h.js +2 -0
- package/dist/{chunk-hgzxtrgw.js → chunk-d3awsfqm.js} +2 -2
- package/dist/chunk-d9q17hb8.js +2 -0
- package/dist/chunk-dw62d69f.js +2 -0
- package/dist/chunk-e8p8v7ca.js +978 -0
- package/dist/chunk-ehhrhkwe.js +9 -0
- package/dist/chunk-enhf12a1.js +2 -0
- package/dist/chunk-f0ksrase.js +8 -0
- package/dist/chunk-f2d9w3nr.js +2 -0
- package/dist/chunk-f3y73e4b.js +6 -0
- package/dist/chunk-fe3xb8z9.js +2 -0
- package/dist/chunk-fg5gh4dn.js +2 -0
- package/dist/chunk-fh4rw8kr.js +5 -0
- package/dist/chunk-fxsv4p5c.js +8 -0
- package/dist/chunk-gg80s18j.js +2 -0
- package/dist/chunk-gjefq0nq.js +2 -0
- package/dist/chunk-h5saw32v.js +2 -0
- package/dist/chunk-ha75r57f.js +8 -0
- package/dist/chunk-hgrs6wcy.js +2 -0
- package/dist/chunk-hrsat16n.js +8 -0
- package/dist/chunk-hxy5t7tm.js +10 -0
- package/dist/chunk-hzfqtj82.js +2 -0
- package/dist/chunk-j2n86dsz.js +2 -0
- package/dist/chunk-jg68fsnk.js +10 -0
- package/dist/chunk-jhvjhf1j.js +2 -0
- package/dist/chunk-jr4naxsv.js +2 -0
- package/dist/chunk-js6y6fm1.js +2 -0
- package/dist/chunk-jtax0mpm.js +2 -0
- package/dist/chunk-k59kbbvm.js +2 -0
- package/dist/chunk-kanz993c.js +2 -0
- package/dist/chunk-kg9abatp.js +2 -0
- package/dist/chunk-kvghsjg7.js +5 -0
- package/dist/chunk-ky8p46ae.js +5 -0
- package/dist/chunk-kzm498bh.js +2 -0
- package/dist/chunk-m4gwjnfh.js +6 -0
- package/dist/chunk-mevackhg.js +9 -0
- package/dist/chunk-msv6dcc2.js +2 -0
- package/dist/chunk-mxdajhb4.js +10 -0
- package/dist/chunk-mxzjn2gs.js +978 -0
- package/dist/chunk-n1bqkqk7.js +10 -0
- package/dist/chunk-n2c2dcxa.js +2 -0
- package/dist/chunk-njtyervf.js +1 -0
- package/dist/chunk-nx1598yr.js +2 -0
- package/dist/chunk-p18kqenr.js +1 -0
- package/dist/chunk-p23aswbf.js +2 -0
- package/dist/chunk-p55ntqj0.js +2 -0
- package/dist/chunk-p5va3trj.js +2 -0
- package/dist/chunk-p88bsqtc.js +10 -0
- package/dist/chunk-p9z7f8c8.js +2 -0
- package/dist/chunk-ppkzf21q.js +8 -0
- package/dist/chunk-prqq5zw2.js +2 -0
- package/dist/chunk-pv6hp18q.js +10 -0
- package/dist/chunk-q9ycfthp.js +2 -0
- package/dist/chunk-qhcx6dmf.js +2 -0
- package/dist/chunk-qma4ysd8.js +9 -0
- package/dist/chunk-qq851psj.js +6 -0
- package/dist/chunk-qqp394c2.js +2 -0
- package/dist/chunk-r6rhrt1p.js +2 -0
- package/dist/chunk-ra5sfgg4.js +2 -0
- package/dist/chunk-rfd43z7p.js +5 -0
- package/dist/chunk-rtfeef82.js +2 -0
- package/dist/chunk-ryjbc6dz.js +5 -0
- package/dist/chunk-s2n3hw0a.js +2 -0
- package/dist/chunk-sk3x55wm.js +2 -0
- package/dist/chunk-sm7vvfqf.js +2 -0
- package/dist/chunk-sqbdav33.js +2 -0
- package/dist/chunk-sy4d4hnx.js +2 -0
- package/dist/chunk-t0b356bb.js +978 -0
- package/dist/chunk-t9wdnzz4.js +6 -0
- package/dist/chunk-v25g7h01.js +2 -0
- package/dist/chunk-v7zy7xda.js +1 -0
- package/dist/chunk-v9kknk69.js +2 -0
- package/dist/chunk-vg4vfkzk.js +6 -0
- package/dist/chunk-vgcre8jy.js +2 -0
- package/dist/chunk-vqyngnj0.js +9 -0
- package/dist/chunk-w17d2rbd.js +6 -0
- package/dist/chunk-x22v9kvb.js +2 -0
- package/dist/chunk-xacjs4ar.js +6 -0
- package/dist/chunk-xmdbxa8w.js +1 -0
- package/dist/chunk-xy6hjazn.js +978 -0
- package/dist/chunk-y0m35t3m.js +2 -0
- package/dist/chunk-y1tre8v8.js +8 -0
- package/dist/chunk-y50mc7dt.js +2 -0
- package/dist/chunk-y93ke5m6.js +2 -0
- package/dist/chunk-yktee4wv.js +1 -0
- package/dist/chunk-yvmyw2r2.js +2 -0
- package/dist/chunk-z1h35hsa.js +2 -0
- package/dist/chunk-z6xydw90.js +2 -0
- package/dist/chunk-zak32nab.js +2 -0
- package/dist/clean.d.ts +3 -0
- package/dist/cli.d.ts +4 -1
- package/dist/cli.js +1 -1
- package/dist/cloud.d.ts +3 -0
- package/dist/commit.d.ts +3 -0
- package/dist/configure.d.ts +4 -0
- package/dist/create.d.ts +8 -0
- package/dist/custom-cli.d.ts +1 -1
- package/dist/deploy.d.ts +7 -0
- package/dist/{commands/dev.d.ts → dev.d.ts} +3 -1
- package/dist/dns.d.ts +18 -0
- package/dist/domains.d.ts +3 -0
- package/dist/fresh.d.ts +3 -0
- package/dist/generate.d.ts +3 -0
- package/dist/http.d.ts +6 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/install.d.ts +3 -0
- package/dist/key.d.ts +3 -0
- package/dist/lint.d.ts +3 -0
- package/dist/list.d.ts +3 -0
- package/dist/make.d.ts +1 -0
- package/dist/migrate.d.ts +3 -0
- package/dist/outdated.d.ts +3 -0
- package/dist/ports.d.ts +7 -0
- package/dist/prepublish.d.ts +3 -0
- package/dist/projects.d.ts +3 -0
- package/dist/release.d.ts +9 -0
- package/dist/route.d.ts +3 -0
- package/dist/saas.d.ts +3 -0
- package/dist/seed.d.ts +3 -0
- package/dist/setup.d.ts +8 -0
- package/dist/stacks +0 -0
- package/dist/test.d.ts +3 -0
- package/dist/tinker.d.ts +3 -0
- package/dist/types.d.ts +3 -0
- package/dist/upgrade.d.ts +4 -0
- package/dist/version.d.ts +3 -0
- package/package.json +5 -5
- package/dist/chunk-42swmjjw.js +0 -2
- package/dist/chunk-898dh3kh.js +0 -8
- package/dist/chunk-9g2p5d3j.js +0 -2
- package/dist/chunk-bpa4071y.js +0 -2
- package/dist/chunk-f18wwa85.js +0 -827
- package/dist/chunk-g767h9jq.js +0 -3
- package/dist/chunk-hqv9y9k2.js +0 -6
- package/dist/chunk-sgm5999j.js +0 -12
- package/dist/commands/add.d.ts +0 -2
- package/dist/commands/build.d.ts +0 -2
- package/dist/commands/changelog.d.ts +0 -2
- package/dist/commands/clean.d.ts +0 -2
- package/dist/commands/cloud.d.ts +0 -2
- package/dist/commands/commit.d.ts +0 -2
- package/dist/commands/configure.d.ts +0 -2
- package/dist/commands/create.d.ts +0 -2
- package/dist/commands/deploy.d.ts +0 -2
- package/dist/commands/dns.d.ts +0 -2
- package/dist/commands/domains.d.ts +0 -2
- package/dist/commands/fresh.d.ts +0 -2
- package/dist/commands/generate.d.ts +0 -2
- package/dist/commands/http.d.ts +0 -2
- package/dist/commands/index.d.ts +0 -33
- package/dist/commands/install.d.ts +0 -2
- package/dist/commands/key.d.ts +0 -2
- package/dist/commands/lint.d.ts +0 -2
- package/dist/commands/list.d.ts +0 -2
- package/dist/commands/make.d.ts +0 -2
- package/dist/commands/migrate.d.ts +0 -2
- package/dist/commands/outdated.d.ts +0 -2
- package/dist/commands/ports.d.ts +0 -2
- package/dist/commands/prepublish.d.ts +0 -2
- package/dist/commands/projects.d.ts +0 -2
- package/dist/commands/release.d.ts +0 -2
- package/dist/commands/route.d.ts +0 -2
- package/dist/commands/seed.d.ts +0 -2
- package/dist/commands/setup.d.ts +0 -4
- package/dist/commands/test.d.ts +0 -2
- package/dist/commands/tinker.d.ts +0 -2
- package/dist/commands/types.d.ts +0 -2
- package/dist/commands/upgrade.d.ts +0 -2
- package/dist/commands/version.d.ts +0 -2
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{ib as u,mb as w}from"./chunk-p18kqenr.js";import{ub as m}from"./chunk-08bm2xax.js";import{vb as s}from"./chunk-qqp394c2.js";var a=s(m(),1);var g=s(m(),1);function c(o){try{let r=new Set(Array.from(o.match(/([A-Z_]){3,}/g)??[]));return r.delete("CONFIG"),r.delete("CONFIG_PREFIX_SEPARATOR"),r.delete("ENV"),[...r].join(", ")}catch(r){return o}}var h=(o,r)=>async()=>{try{let t=o(process.env);if(t===void 0)throw new Error;return t}catch(t){throw new g.CredentialsProviderError(t.message||`Not found in ENV: ${c(o.toString())}`,{logger:r})}};var y=s(m(),1);var C=(o,{preferredFile:r="config",...t}={})=>async()=>{let e=u(t),{configFile:n,credentialsFile:i}=await w(t),f=i[e]||{},p=n[e]||{},N=r==="config"?{...f,...p}:{...p,...f};try{let d=o(N,r==="config"?n:i);if(d===void 0)throw new Error;return d}catch(l){throw new y.CredentialsProviderError(l.message||`Not found in config files w/ profile [${e}]: ${c(o.toString())}`,{logger:t.logger})}};var F=s(m(),1),x=(o)=>typeof o==="function",S=(o)=>x(o)?async()=>await o():F.fromStatic(o);var T=({environmentVariableSelector:o,configFileSelector:r,default:t},e={})=>a.memoize(a.chain(h(o),C(r,e),S(t)));function E(o){let r={};if(o=o.replace(/^\?/,""),o)for(let t of o.split("&")){let[e,n=null]=t.split("=");if(e=decodeURIComponent(e),n)n=decodeURIComponent(n);if(!(e in r))r[e]=n;else if(Array.isArray(r[e]))r[e].push(n);else r[e]=[r[e],n]}return r}var v=(o)=>{if(typeof o==="string")return v(new URL(o));let{hostname:r,pathname:t,port:e,protocol:n,search:i}=o,f;if(i)f=E(i);return{hostname:r,port:e?parseInt(e):void 0,protocol:n,path:t,query:f}};
|
|
2
|
+
export{T as ta,v as ua};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{kb as A,qb as E}from"./chunk-8gx9at51.js";import"./chunk-6yazdvb4.js";import{vb as K}from"./chunk-ha75r57f.js";import{wb as T}from"./chunk-gg80s18j.js";import{xb as w}from"./chunk-d2dbhn2h.js";var o=w(T(),1);import{exec as y}from"child_process";import{promisify as I}from"util";var S=w(K(),1),x=(c,n,e)=>{if(n.Version!==1)throw Error(`Profile ${c} credential_process did not return Version 1.`);if(n.AccessKeyId===void 0||n.SecretAccessKey===void 0)throw Error(`Profile ${c} credential_process returned invalid credentials.`);if(n.Expiration){let i=new Date;if(new Date(n.Expiration)<i)throw Error(`Profile ${c} credential_process returned expired credentials.`)}let s=n.AccountId;if(!s&&e?.[c]?.aws_account_id)s=e[c].aws_account_id;let t={accessKeyId:n.AccessKeyId,secretAccessKey:n.SecretAccessKey,...n.SessionToken&&{sessionToken:n.SessionToken},...n.Expiration&&{expiration:new Date(n.Expiration)},...n.CredentialScope&&{credentialScope:n.CredentialScope},...s&&{accountId:s}};return S.setCredentialFeature(t,"CREDENTIALS_PROCESS","w"),t};var _=async(c,n,e)=>{let s=n[c];if(n[c]){let t=s.credential_process;if(t!==void 0){let i=I(y);try{let{stdout:r}=await i(t),u;try{u=JSON.parse(r.trim())}catch{throw Error(`Profile ${c} credential_process returned invalid JSON.`)}return x(c,u,n)}catch(r){throw new o.CredentialsProviderError(r.message,{logger:e})}}else throw new o.CredentialsProviderError(`Profile ${c} did not contain credential_process.`,{logger:e})}else throw new o.CredentialsProviderError(`Profile ${c} could not be found in shared credentials file.`,{logger:e})};var R=(c={})=>async()=>{c.logger?.debug("@aws-sdk/credential-provider-process - fromProcess");let n=await E(c);return _(A(c),n,c.logger)};export{R as fromProcess};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{lb as L,rb as m}from"./chunk-brb5zthb.js";import"./chunk-j2n86dsz.js";import{wb as O}from"./chunk-fxsv4p5c.js";import{xb as R}from"./chunk-p5va3trj.js";import{yb as k}from"./chunk-27ksm11g.js";var h=k(R(),1);var $=k(O(),1),q=k(R(),1);var J=k(O(),1),E=k(R(),1),Q=(y,w,_)=>{let I={EcsContainer:async(b)=>{let{fromHttp:x}=await import("./chunk-m4gwjnfh.js"),{fromContainerMetadata:j}=await import("./chunk-fe3xb8z9.js");return _?.debug("@aws-sdk/credential-provider-ini - credential_source is EcsContainer"),async()=>E.chain(x(b??{}),j(b))().then(C)},Ec2InstanceMetadata:async(b)=>{_?.debug("@aws-sdk/credential-provider-ini - credential_source is Ec2InstanceMetadata");let{fromInstanceMetadata:x}=await import("./chunk-fe3xb8z9.js");return async()=>x(b)().then(C)},Environment:async(b)=>{_?.debug("@aws-sdk/credential-provider-ini - credential_source is Environment");let{fromEnv:x}=await import("./chunk-cv8f2v27.js");return async()=>x(b)().then(C)}};if(y in I)return I[y];else throw new E.CredentialsProviderError(`Unsupported credential source in profile ${w}. Got ${y}, expected EcsContainer or Ec2InstanceMetadata or Environment.`,{logger:_})},C=(y)=>J.setCredentialFeature(y,"CREDENTIALS_PROFILE_NAMED_PROVIDER","p");var U=(y,{profile:w="default",logger:_}={})=>{return Boolean(y)&&typeof y==="object"&&typeof y.role_arn==="string"&&["undefined","string"].indexOf(typeof y.role_session_name)>-1&&["undefined","string"].indexOf(typeof y.external_id)>-1&&["undefined","string"].indexOf(typeof y.mfa_serial)>-1&&(P(y,{profile:w,logger:_})||N(y,{profile:w,logger:_}))},P=(y,{profile:w,logger:_})=>{let I=typeof y.source_profile==="string"&&typeof y.credential_source==="undefined";if(I)_?.debug?.(` ${w} isAssumeRoleWithSourceProfile source_profile=${y.source_profile}`);return I},N=(y,{profile:w,logger:_})=>{let I=typeof y.credential_source==="string"&&typeof y.source_profile==="undefined";if(I)_?.debug?.(` ${w} isCredentialSourceProfile credential_source=${y.credential_source}`);return I},V=async(y,w,_,I={})=>{_.logger?.debug("@aws-sdk/credential-provider-ini - resolveAssumeRoleCredentials (STS)");let b=w[y];if(!_.roleAssumer){let{getDefaultRoleAssumer:K}=await import("./chunk-3y0gapf6.js");_.roleAssumer=K({..._.clientConfig,credentialProviderLogger:_.logger,parentClientConfig:_?.parentClientConfig},_.clientPlugins)}let{source_profile:x}=b;if(x&&x in I)throw new q.CredentialsProviderError(`Detected a cycle attempting to resolve credentials for profile ${L(_)}. Profiles visited: `+Object.keys(I).join(", "),{logger:_.logger});_.logger?.debug(`@aws-sdk/credential-provider-ini - finding credential resolver using ${x?`source_profile=[${x}]`:`profile=[${y}]`}`);let j=x?A(x,w,_,{...I,[x]:!0},T(w[x]??{})):(await Q(b.credential_source,y,_.logger)(_))();if(T(b))return j.then((K)=>$.setCredentialFeature(K,"CREDENTIALS_PROFILE_SOURCE_PROFILE","o"));else{let K={RoleArn:b.role_arn,RoleSessionName:b.role_session_name||`aws-sdk-js-${Date.now()}`,ExternalId:b.external_id,DurationSeconds:parseInt(b.duration_seconds||"3600",10)},{mfa_serial:B}=b;if(B){if(!_.mfaCodeProvider)throw new q.CredentialsProviderError(`Profile ${y} requires multi-factor authentication, but no MFA code callback was provided.`,{logger:_.logger,tryNextLink:!1});K.SerialNumber=B,K.TokenCode=await _.mfaCodeProvider(B)}let u=await j;return _.roleAssumer(u,K).then((v)=>$.setCredentialFeature(v,"CREDENTIALS_PROFILE_SOURCE_PROFILE","o"))}},T=(y)=>{return!y.role_arn&&!!y.credential_source};var W=k(O(),1),X=(y)=>Boolean(y)&&typeof y==="object"&&typeof y.credential_process==="string",Y=async(y,w)=>import("./chunk-adswb3gq.js").then(({fromProcess:_})=>_({...y,profile:w})().then((I)=>W.setCredentialFeature(I,"CREDENTIALS_PROFILE_PROCESS","v")));var z=k(O(),1),Z=async(y,w,_={})=>{let{fromSSO:I}=await import("./chunk-0yyhz107.js");return I({profile:y,logger:_.logger})().then((b)=>{if(w.sso_session)return z.setCredentialFeature(b,"CREDENTIALS_PROFILE_SSO","r");else return z.setCredentialFeature(b,"CREDENTIALS_PROFILE_SSO_LEGACY","t")})},H=(y)=>y&&(typeof y.sso_start_url==="string"||typeof y.sso_account_id==="string"||typeof y.sso_session==="string"||typeof y.sso_region==="string"||typeof y.sso_role_name==="string");var c=k(O(),1),D=(y)=>Boolean(y)&&typeof y==="object"&&typeof y.aws_access_key_id==="string"&&typeof y.aws_secret_access_key==="string"&&["undefined","string"].indexOf(typeof y.aws_session_token)>-1&&["undefined","string"].indexOf(typeof y.aws_account_id)>-1,G=async(y,w)=>{w?.logger?.debug("@aws-sdk/credential-provider-ini - resolveStaticCredentials");let _={accessKeyId:y.aws_access_key_id,secretAccessKey:y.aws_secret_access_key,sessionToken:y.aws_session_token,...y.aws_credential_scope&&{credentialScope:y.aws_credential_scope},...y.aws_account_id&&{accountId:y.aws_account_id}};return c.setCredentialFeature(_,"CREDENTIALS_PROFILE","n")};var S=k(O(),1),F=(y)=>Boolean(y)&&typeof y==="object"&&typeof y.web_identity_token_file==="string"&&typeof y.role_arn==="string"&&["undefined","string"].indexOf(typeof y.role_session_name)>-1,M=async(y,w)=>import("./chunk-msv6dcc2.js").then(({fromTokenFile:_})=>_({webIdentityTokenFile:y.web_identity_token_file,roleArn:y.role_arn,roleSessionName:y.role_session_name,roleAssumerWithWebIdentity:w.roleAssumerWithWebIdentity,logger:w.logger,parentClientConfig:w.parentClientConfig})().then((I)=>S.setCredentialFeature(I,"CREDENTIALS_PROFILE_STS_WEB_ID_TOKEN","q")));var A=async(y,w,_,I={},b=!1)=>{let x=w[y];if(Object.keys(I).length>0&&D(x))return G(x,_);if(b||U(x,{profile:y,logger:_.logger}))return V(y,w,_,I);if(D(x))return G(x,_);if(F(x))return M(x,_);if(X(x))return Y(_,y);if(H(x))return await Z(y,x,_);throw new h.CredentialsProviderError(`Could not resolve credentials using profile: [${y}] in configuration/credentials file(s).`,{logger:_.logger})};var Iy=(y={})=>async()=>{y.logger?.debug("@aws-sdk/credential-provider-ini - fromIni");let w=await m(y);return A(L(y),w,y)};export{Iy as fromIni};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{L as ge}from"./chunk-qma4ysd8.js";import{$ as We,M as or,N as dr,O as yr,P as cr,Q as Lr,R as N,S as tr,T as $e,U as Ie,V as Re,W as Pe,X as U,Y as ar,Z as Je,_ as Ve,aa as Ae,ba as mr,ca as vr,da as E,ea as S,fa as wr,ga as Ke,ha as Me,ia as kr,ja as Be,ka as Sr,la as Ze,ma as fe,na as Fe,oa as De,pa as He,qa as Ne,ra as Ue,sa as qe,ta as _e,ua as lr,va as hr}from"./chunk-7fz1p8p3.js";import{wa as I,xa as be}from"./chunk-kzm498bh.js";import{Ka as Er,La as $,Ma as t,Na as Wr,Oa as p,Pa as b,Qa as j,Ra as F,Sa as h,Wa as $r,Xa as a,Ya as Fr,Za as Le,_a as Qe,ab as sr,bb as ir,eb as je,fb as y,gb as o,hb as R,ib as Xe,jb as Ye,ya as er,za as rr}from"./chunk-fh4rw8kr.js";import"./chunk-cs5k02gt.js";import"./chunk-2wrs9p57.js";import"./chunk-2mhj5ght.js";import"./chunk-ppkzf21q.js";import"./chunk-3wpw5xgd.js";import{Gb as w}from"./chunk-0m218zhk.js";var P=w(N(),1);var re=w(U(),1),q=w(Lr(),1),se=async(e,s,r)=>{return{operation:q.getSmithyContext(s).operation,region:await q.normalizeProvider(e.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}};function Qr(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sso-oauth",region:e.region},propertiesExtractor:(s,r)=>({signingProperties:{config:s,context:r}})}}function H(e){return{schemeId:"smithy.api#noAuth"}}var ie=(e)=>{let s=[];switch(e.operation){case"CreateToken":{s.push(H(e));break}case"RegisterClient":{s.push(H(e));break}case"StartDeviceAuthorization":{s.push(H(e));break}default:s.push(Qr(e))}return s},le=(e)=>{return{...re.resolveAwsSdkSigV4Config(e)}};var he=(e)=>{return{...e,useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:"sso-oauth"}},k={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}};var ne={name:"@aws-sdk/client-sso-oidc",description:"AWS SDK for JavaScript Sso Oidc 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-sso-oidc","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"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 sso-oidc"},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/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",peerDependencies:{"@aws-sdk/client-sts":"^3.679.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-sso-oidc",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-sso-oidc"}};var pe=w(U(),1);var xe=w(U(),1),ze=w(N(),1);var oe={["required"]:!1,type:"String"},de={["required"]:!0,default:!1,type:"Boolean"},ye={["ref"]:"Endpoint"},we={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseFIPS"},!0]},ke={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseDualStack"},!0]},m={},ce={["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"supportsFIPS"]},Ee={["ref"]:"PartitionResult"},te={["fn"]:"booleanEquals",["argv"]:[!0,{["fn"]:"getAttr",["argv"]:[Ee,"supportsDualStack"]}]},ae=[we],me=[ke],ve=[{["ref"]:"Region"}],Yr={version:"1.0",parameters:{Region:oe,UseDualStack:de,UseFIPS:de,Endpoint:oe},rules:[{conditions:[{["fn"]:"isSet",["argv"]:[ye]}],rules:[{conditions:ae,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:"error"},{conditions:me,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:"error"},{endpoint:{url:ye,properties:m,headers:m},type:"endpoint"}],type:"tree"},{conditions:[{["fn"]:"isSet",["argv"]:ve}],rules:[{conditions:[{["fn"]:"aws.partition",["argv"]:ve,assign:"PartitionResult"}],rules:[{conditions:[we,ke],rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[!0,ce]},te],rules:[{endpoint:{url:"https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:m,headers:m},type:"endpoint"}],type:"tree"},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:"error"}],type:"tree"},{conditions:ae,rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[ce,!0]}],rules:[{conditions:[{["fn"]:"stringEquals",["argv"]:[{["fn"]:"getAttr",["argv"]:[Ee,"name"]},"aws-us-gov"]}],endpoint:{url:"https://oidc.{Region}.amazonaws.com",properties:m,headers:m},type:"endpoint"},{endpoint:{url:"https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}",properties:m,headers:m},type:"endpoint"}],type:"tree"},{error:"FIPS is enabled but this partition does not support FIPS",type:"error"}],type:"tree"},{conditions:me,rules:[{conditions:[te],rules:[{endpoint:{url:"https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:m,headers:m},type:"endpoint"}],type:"tree"},{error:"DualStack is enabled but this partition does not support DualStack",type:"error"}],type:"tree"},{endpoint:{url:"https://oidc.{Region}.{PartitionResult#dnsSuffix}",properties:m,headers:m},type:"endpoint"}],type:"tree"}],type:"tree"},{error:"Invalid Configuration: Missing Region",type:"error"}]},Se=Yr;var Zr=new $e({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),Te=(e,s={})=>{return Zr.get(e,()=>Re(Se,{endpointParams:e,logger:s.logger}))};Ie.aws=Pe;var Ge=(e)=>{return{apiVersion:"2019-06-10",base64Decoder:e?.base64Decoder??Ue,base64Encoder:e?.base64Encoder??qe,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??Te,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??ie,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(s)=>s.getIdentityProvider("aws.auth#sigv4"),signer:new xe.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:(s)=>s.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new ze.NoAuthSigner}],logger:e?.logger??new je,serviceId:e?.serviceId??"SSO OIDC",urlParser:e?.urlParser??be,utf8Decoder:e?.utf8Decoder??Fe,utf8Encoder:e?.utf8Encoder??De}};var Ce=(e)=>{Qe(process.version);let s=_e(e),r=()=>s().then(Le),i=Ge(e);return pe.emitWarningIfUnsupportedVersion(process.version),{...i,...e,runtime:"node",defaultsMode:s,bodyLengthChecker:e?.bodyLengthChecker??Ne,credentialDefaultProvider:e?.credentialDefaultProvider??ge,defaultUserAgentProvider:e?.defaultUserAgentProvider??Ze({serviceId:i.serviceId,clientVersion:ne.version}),maxAttempts:e?.maxAttempts??I(Me),region:e?.region??I(We,Ae),requestHandler:Xe.create(e?.requestHandler??r),retryMode:e?.retryMode??I({...Be,default:async()=>(await r()).retryMode||Ke}),sha256:e?.sha256??He.bind(null,"sha256"),streamCollector:e?.streamCollector??Ye,useDualstackEndpoint:e?.useDualstackEndpoint??I(Je),useFipsEndpoint:e?.useFipsEndpoint??I(Ve),userAgentAppId:e?.userAgentAppId??I(fe)}};var Oe=(e)=>{let{httpAuthSchemes:s,httpAuthSchemeProvider:r,credentials:i}=e;return{setHttpAuthScheme(l){let n=s.findIndex((T)=>T.schemeId===l.schemeId);if(n===-1)s.push(l);else s.splice(n,1,l)},httpAuthSchemes(){return s},setHttpAuthSchemeProvider(l){r=l},httpAuthSchemeProvider(){return r},setCredentials(l){i=l},credentials(){return i}}},ue=(e)=>{return{httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}};var x=(e)=>e,nr=(e,s)=>{let r={...x(lr(e)),...x(sr(e)),...x(er(e)),...x(Oe(e))};return s.forEach((i)=>i.configure(r)),{...e,...hr(r),...ir(r),...rr(r),...ue(r)}};class _ extends Er{constructor(...[e]){let s=Ce(e||{}),r=he(s),i=tr(r),l=kr(i),n=mr(l),T=or(n),Kr=wr(T),Mr=le(Kr),ee=nr(Mr,e?.extensions||[]);super(ee);this.config=ee,this.middlewareStack.use(ar(this.config)),this.middlewareStack.use(Sr(this.config)),this.middlewareStack.use(vr(this.config)),this.middlewareStack.use(dr(this.config)),this.middlewareStack.use(yr(this.config)),this.middlewareStack.use(cr(this.config)),this.middlewareStack.use(P.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:se,identityProviderConfigProvider:async(Br)=>new P.DefaultIdentityProviderConfig({"aws.auth#sigv4":Br.credentials})})),this.middlewareStack.use(P.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}class d extends $r{constructor(e){super(e);Object.setPrototypeOf(this,d.prototype)}}class z extends d{constructor(e){super({name:"AccessDeniedException",$fault:"client",...e});this.name="AccessDeniedException",this.$fault="client",Object.setPrototypeOf(this,z.prototype),this.error=e.error,this.error_description=e.error_description}}class G extends d{constructor(e){super({name:"AuthorizationPendingException",$fault:"client",...e});this.name="AuthorizationPendingException",this.$fault="client",Object.setPrototypeOf(this,G.prototype),this.error=e.error,this.error_description=e.error_description}}class J extends d{constructor(e){super({name:"ExpiredTokenException",$fault:"client",...e});this.name="ExpiredTokenException",this.$fault="client",Object.setPrototypeOf(this,J.prototype),this.error=e.error,this.error_description=e.error_description}}class V extends d{constructor(e){super({name:"InternalServerException",$fault:"server",...e});this.name="InternalServerException",this.$fault="server",Object.setPrototypeOf(this,V.prototype),this.error=e.error,this.error_description=e.error_description}}class W extends d{constructor(e){super({name:"InvalidClientException",$fault:"client",...e});this.name="InvalidClientException",this.$fault="client",Object.setPrototypeOf(this,W.prototype),this.error=e.error,this.error_description=e.error_description}}class A extends d{constructor(e){super({name:"InvalidGrantException",$fault:"client",...e});this.name="InvalidGrantException",this.$fault="client",Object.setPrototypeOf(this,A.prototype),this.error=e.error,this.error_description=e.error_description}}class K extends d{constructor(e){super({name:"InvalidRequestException",$fault:"client",...e});this.name="InvalidRequestException",this.$fault="client",Object.setPrototypeOf(this,K.prototype),this.error=e.error,this.error_description=e.error_description}}class M extends d{constructor(e){super({name:"InvalidScopeException",$fault:"client",...e});this.name="InvalidScopeException",this.$fault="client",Object.setPrototypeOf(this,M.prototype),this.error=e.error,this.error_description=e.error_description}}class B extends d{constructor(e){super({name:"SlowDownException",$fault:"client",...e});this.name="SlowDownException",this.$fault="client",Object.setPrototypeOf(this,B.prototype),this.error=e.error,this.error_description=e.error_description}}class L extends d{constructor(e){super({name:"UnauthorizedClientException",$fault:"client",...e});this.name="UnauthorizedClientException",this.$fault="client",Object.setPrototypeOf(this,L.prototype),this.error=e.error,this.error_description=e.error_description}}class Q extends d{constructor(e){super({name:"UnsupportedGrantTypeException",$fault:"client",...e});this.name="UnsupportedGrantTypeException",this.$fault="client",Object.setPrototypeOf(this,Q.prototype),this.error=e.error,this.error_description=e.error_description}}class X extends d{constructor(e){super({name:"InvalidRequestRegionException",$fault:"client",...e});this.name="InvalidRequestRegionException",this.$fault="client",Object.setPrototypeOf(this,X.prototype),this.error=e.error,this.error_description=e.error_description,this.endpoint=e.endpoint,this.region=e.region}}class Y extends d{constructor(e){super({name:"InvalidClientMetadataException",$fault:"client",...e});this.name="InvalidClientMetadataException",this.$fault="client",Object.setPrototypeOf(this,Y.prototype),this.error=e.error,this.error_description=e.error_description}}class Z extends d{constructor(e){super({name:"InvalidRedirectUriException",$fault:"client",...e});this.name="InvalidRedirectUriException",this.$fault="client",Object.setPrototypeOf(this,Z.prototype),this.error=e.error,this.error_description=e.error_description}}var Ir=(e)=>({...e,...e.clientSecret&&{clientSecret:t},...e.refreshToken&&{refreshToken:t},...e.codeVerifier&&{codeVerifier:t}}),Rr=(e)=>({...e,...e.accessToken&&{accessToken:t},...e.refreshToken&&{refreshToken:t},...e.idToken&&{idToken:t}}),Pr=(e)=>({...e,...e.refreshToken&&{refreshToken:t},...e.assertion&&{assertion:t},...e.subjectToken&&{subjectToken:t},...e.codeVerifier&&{codeVerifier:t}}),Tr=(e)=>({...e,...e.accessToken&&{accessToken:t},...e.refreshToken&&{refreshToken:t},...e.idToken&&{idToken:t}}),br=(e)=>({...e,...e.clientSecret&&{clientSecret:t}}),jr=(e)=>({...e,...e.clientSecret&&{clientSecret:t}});var v=w(U(),1),D=w(N(),1);var Dr=async(e,s)=>{let r=D.requestBuilder(e,s),i={"content-type":"application/json"};r.bp("/token");let l;return l=JSON.stringify(o(e,{clientId:[],clientSecret:[],code:[],codeVerifier:[],deviceCode:[],grantType:[],redirectUri:[],refreshToken:[],scope:(n)=>R(n)})),r.m("POST").h(i).b(l),r.build()},Ur=async(e,s)=>{let r=D.requestBuilder(e,s),i={"content-type":"application/json"};r.bp("/token");let l=y({[ns]:[,"t"]}),n;return n=JSON.stringify(o(e,{assertion:[],clientId:[],code:[],codeVerifier:[],grantType:[],redirectUri:[],refreshToken:[],requestedTokenType:[],scope:(T)=>R(T),subjectToken:[],subjectTokenType:[]})),r.m("POST").h(i).q(l).b(n),r.build()},qr=async(e,s)=>{let r=D.requestBuilder(e,s),i={"content-type":"application/json"};r.bp("/client/register");let l;return l=JSON.stringify(o(e,{clientName:[],clientType:[],entitledApplicationArn:[],grantTypes:(n)=>R(n),issuerUrl:[],redirectUris:(n)=>R(n),scopes:(n)=>R(n)})),r.m("POST").h(i).b(l),r.build()},xr=async(e,s)=>{let r=D.requestBuilder(e,s),i={"content-type":"application/json"};r.bp("/device_authorization");let l;return l=JSON.stringify(o(e,{clientId:[],clientSecret:[],startUrl:[]})),r.m("POST").h(i).b(l),r.build()},zr=async(e,s)=>{if(e.statusCode!==200&&e.statusCode>=300)return f(e,s);let r=y({$metadata:c(e)}),i=j(F(await v.parseJsonBody(e.body,s)),"body"),l=o(i,{accessToken:h,expiresIn:b,idToken:h,refreshToken:h,tokenType:h});return Object.assign(r,l),r},Gr=async(e,s)=>{if(e.statusCode!==200&&e.statusCode>=300)return f(e,s);let r=y({$metadata:c(e)}),i=j(F(await v.parseJsonBody(e.body,s)),"body"),l=o(i,{accessToken:h,expiresIn:b,idToken:h,issuedTokenType:h,refreshToken:h,scope:R,tokenType:h});return Object.assign(r,l),r},Jr=async(e,s)=>{if(e.statusCode!==200&&e.statusCode>=300)return f(e,s);let r=y({$metadata:c(e)}),i=j(F(await v.parseJsonBody(e.body,s)),"body"),l=o(i,{authorizationEndpoint:h,clientId:h,clientIdIssuedAt:p,clientSecret:h,clientSecretExpiresAt:p,tokenEndpoint:h});return Object.assign(r,l),r},Vr=async(e,s)=>{if(e.statusCode!==200&&e.statusCode>=300)return f(e,s);let r=y({$metadata:c(e)}),i=j(F(await v.parseJsonBody(e.body,s)),"body"),l=o(i,{deviceCode:h,expiresIn:b,interval:b,userCode:h,verificationUri:h,verificationUriComplete:h});return Object.assign(r,l),r},f=async(e,s)=>{let r={...e,body:await v.parseJsonErrorBody(e.body,s)},i=v.loadRestJsonErrorCode(e,r.body);switch(i){case"AccessDeniedException":case"com.amazonaws.ssooidc#AccessDeniedException":throw await Hr(r,s);case"AuthorizationPendingException":case"com.amazonaws.ssooidc#AuthorizationPendingException":throw await Nr(r,s);case"ExpiredTokenException":case"com.amazonaws.ssooidc#ExpiredTokenException":throw await _r(r,s);case"InternalServerException":case"com.amazonaws.ssooidc#InternalServerException":throw await pr(r,s);case"InvalidClientException":case"com.amazonaws.ssooidc#InvalidClientException":throw await Cr(r,s);case"InvalidGrantException":case"com.amazonaws.ssooidc#InvalidGrantException":throw await Or(r,s);case"InvalidRequestException":case"com.amazonaws.ssooidc#InvalidRequestException":throw await es(r,s);case"InvalidScopeException":case"com.amazonaws.ssooidc#InvalidScopeException":throw await ss(r,s);case"SlowDownException":case"com.amazonaws.ssooidc#SlowDownException":throw await is(r,s);case"UnauthorizedClientException":case"com.amazonaws.ssooidc#UnauthorizedClientException":throw await ls(r,s);case"UnsupportedGrantTypeException":case"com.amazonaws.ssooidc#UnsupportedGrantTypeException":throw await hs(r,s);case"InvalidRequestRegionException":case"com.amazonaws.ssooidc#InvalidRequestRegionException":throw await rs(r,s);case"InvalidClientMetadataException":case"com.amazonaws.ssooidc#InvalidClientMetadataException":throw await gr(r,s);case"InvalidRedirectUriException":case"com.amazonaws.ssooidc#InvalidRedirectUriException":throw await ur(r,s);default:let l=r.body;return fr({output:e,parsedBody:l,errorCode:i})}},fr=Fr(d),Hr=async(e,s)=>{let r=y({}),i=e.body,l=o(i,{error:h,error_description:h});Object.assign(r,l);let n=new z({$metadata:c(e),...r});return a(n,e.body)},Nr=async(e,s)=>{let r=y({}),i=e.body,l=o(i,{error:h,error_description:h});Object.assign(r,l);let n=new G({$metadata:c(e),...r});return a(n,e.body)},_r=async(e,s)=>{let r=y({}),i=e.body,l=o(i,{error:h,error_description:h});Object.assign(r,l);let n=new J({$metadata:c(e),...r});return a(n,e.body)},pr=async(e,s)=>{let r=y({}),i=e.body,l=o(i,{error:h,error_description:h});Object.assign(r,l);let n=new V({$metadata:c(e),...r});return a(n,e.body)},Cr=async(e,s)=>{let r=y({}),i=e.body,l=o(i,{error:h,error_description:h});Object.assign(r,l);let n=new W({$metadata:c(e),...r});return a(n,e.body)},gr=async(e,s)=>{let r=y({}),i=e.body,l=o(i,{error:h,error_description:h});Object.assign(r,l);let n=new Y({$metadata:c(e),...r});return a(n,e.body)},Or=async(e,s)=>{let r=y({}),i=e.body,l=o(i,{error:h,error_description:h});Object.assign(r,l);let n=new A({$metadata:c(e),...r});return a(n,e.body)},ur=async(e,s)=>{let r=y({}),i=e.body,l=o(i,{error:h,error_description:h});Object.assign(r,l);let n=new Z({$metadata:c(e),...r});return a(n,e.body)},es=async(e,s)=>{let r=y({}),i=e.body,l=o(i,{error:h,error_description:h});Object.assign(r,l);let n=new K({$metadata:c(e),...r});return a(n,e.body)},rs=async(e,s)=>{let r=y({}),i=e.body,l=o(i,{endpoint:h,error:h,error_description:h,region:h});Object.assign(r,l);let n=new X({$metadata:c(e),...r});return a(n,e.body)},ss=async(e,s)=>{let r=y({}),i=e.body,l=o(i,{error:h,error_description:h});Object.assign(r,l);let n=new M({$metadata:c(e),...r});return a(n,e.body)},is=async(e,s)=>{let r=y({}),i=e.body,l=o(i,{error:h,error_description:h});Object.assign(r,l);let n=new B({$metadata:c(e),...r});return a(n,e.body)},ls=async(e,s)=>{let r=y({}),i=e.body,l=o(i,{error:h,error_description:h});Object.assign(r,l);let n=new L({$metadata:c(e),...r});return a(n,e.body)},hs=async(e,s)=>{let r=y({}),i=e.body,l=o(i,{error:h,error_description:h});Object.assign(r,l);let n=new Q({$metadata:c(e),...r});return a(n,e.body)},c=(e)=>({httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]});var ns="aws_iam";class C extends $.classBuilder().ep(k).m(function(e,s,r,i){return[E(r,this.serialize,this.deserialize),S(r,e.getEndpointParameterInstructions())]}).s("AWSSSOOIDCService","CreateToken",{}).n("SSOOIDCClient","CreateTokenCommand").f(Ir,Rr).ser(Dr).de(zr).build(){}class g extends $.classBuilder().ep(k).m(function(e,s,r,i){return[E(r,this.serialize,this.deserialize),S(r,e.getEndpointParameterInstructions())]}).s("AWSSSOOIDCService","CreateTokenWithIAM",{}).n("SSOOIDCClient","CreateTokenWithIAMCommand").f(Pr,Tr).ser(Ur).de(Gr).build(){}class O extends $.classBuilder().ep(k).m(function(e,s,r,i){return[E(r,this.serialize,this.deserialize),S(r,e.getEndpointParameterInstructions())]}).s("AWSSSOOIDCService","RegisterClient",{}).n("SSOOIDCClient","RegisterClientCommand").f(void 0,br).ser(qr).de(Jr).build(){}class u extends $.classBuilder().ep(k).m(function(e,s,r,i){return[E(r,this.serialize,this.deserialize),S(r,e.getEndpointParameterInstructions())]}).s("AWSSSOOIDCService","StartDeviceAuthorization",{}).n("SSOOIDCClient","StartDeviceAuthorizationCommand").f(jr,void 0).ser(xr).de(Vr).build(){}var os={CreateTokenCommand:C,CreateTokenWithIAMCommand:g,RegisterClientCommand:O,StartDeviceAuthorizationCommand:u};class Ar extends _{}Wr(os,Ar);export{Er as __Client,Q as UnsupportedGrantTypeException,L as UnauthorizedClientException,jr as StartDeviceAuthorizationRequestFilterSensitiveLog,u as StartDeviceAuthorizationCommand,B as SlowDownException,d as SSOOIDCServiceException,_ as SSOOIDCClient,Ar as SSOOIDC,br as RegisterClientResponseFilterSensitiveLog,O as RegisterClientCommand,M as InvalidScopeException,X as InvalidRequestRegionException,K as InvalidRequestException,Z as InvalidRedirectUriException,A as InvalidGrantException,Y as InvalidClientMetadataException,W as InvalidClientException,V as InternalServerException,J as ExpiredTokenException,Tr as CreateTokenWithIAMResponseFilterSensitiveLog,Pr as CreateTokenWithIAMRequestFilterSensitiveLog,g as CreateTokenWithIAMCommand,Rr as CreateTokenResponseFilterSensitiveLog,Ir as CreateTokenRequestFilterSensitiveLog,C as CreateTokenCommand,G as AuthorizationPendingException,z as AccessDeniedException,$ as $Command};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{lb as u,pb as w}from"./chunk-brb5zthb.js";import{xb as m}from"./chunk-p5va3trj.js";import{yb as s}from"./chunk-27ksm11g.js";var a=s(m(),1);var g=s(m(),1);function c(o){try{let r=new Set(Array.from(o.match(/([A-Z_]){3,}/g)??[]));return r.delete("CONFIG"),r.delete("CONFIG_PREFIX_SEPARATOR"),r.delete("ENV"),[...r].join(", ")}catch(r){return o}}var h=(o,r)=>async()=>{try{let t=o(process.env);if(t===void 0)throw new Error;return t}catch(t){throw new g.CredentialsProviderError(t.message||`Not found in ENV: ${c(o.toString())}`,{logger:r})}};var y=s(m(),1);var C=(o,{preferredFile:r="config",...t}={})=>async()=>{let e=u(t),{configFile:n,credentialsFile:i}=await w(t),f=i[e]||{},p=n[e]||{},N=r==="config"?{...f,...p}:{...p,...f};try{let d=o(N,r==="config"?n:i);if(d===void 0)throw new Error;return d}catch(l){throw new y.CredentialsProviderError(l.message||`Not found in config files w/ profile [${e}]: ${c(o.toString())}`,{logger:t.logger})}};var F=s(m(),1),x=(o)=>typeof o==="function",S=(o)=>x(o)?async()=>await o():F.fromStatic(o);var T=({environmentVariableSelector:o,configFileSelector:r,default:t},e={})=>a.memoize(a.chain(h(o),C(r,e),S(t)));function E(o){let r={};if(o=o.replace(/^\?/,""),o)for(let t of o.split("&")){let[e,n=null]=t.split("=");if(e=decodeURIComponent(e),n)n=decodeURIComponent(n);if(!(e in r))r[e]=n;else if(Array.isArray(r[e]))r[e].push(n);else r[e]=[r[e],n]}return r}var v=(o)=>{if(typeof o==="string")return v(new URL(o));let{hostname:r,pathname:t,port:e,protocol:n,search:i}=o,f;if(i)f=E(i);return{hostname:r,port:e?parseInt(e):void 0,protocol:n,path:t,query:f}};
|
|
2
|
+
export{T as xa,v as ya};
|