gemi 0.16.2 → 0.16.3

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 (86) hide show
  1. package/dist/app/index.js +2 -2
  2. package/dist/app/index.js.map +1 -1
  3. package/dist/broadcasting/index.js +1 -1
  4. package/dist/{chunk-yjwabzsb.js → chunk-0ps9hn9y.js} +2 -2
  5. package/dist/{chunk-yjwabzsb.js.map → chunk-0ps9hn9y.js.map} +1 -1
  6. package/dist/{chunk-5g8wefgj.js → chunk-0way950q.js} +2 -2
  7. package/dist/{chunk-5g8wefgj.js.map → chunk-0way950q.js.map} +1 -1
  8. package/dist/{chunk-ac8m7p53.js → chunk-1g5hx2rt.js} +1 -1
  9. package/dist/{chunk-vas2h4rh.js → chunk-3zsh0nvc.js} +3 -3
  10. package/dist/{chunk-vas2h4rh.js.map → chunk-3zsh0nvc.js.map} +1 -1
  11. package/dist/{chunk-m65hegz2.js → chunk-4eby3py1.js} +2 -2
  12. package/dist/{chunk-m65hegz2.js.map → chunk-4eby3py1.js.map} +1 -1
  13. package/dist/{chunk-awqqsf8p.js → chunk-4mfwb998.js} +3 -3
  14. package/dist/{chunk-awqqsf8p.js.map → chunk-4mfwb998.js.map} +1 -1
  15. package/dist/{chunk-dgsssga5.js → chunk-4qwf2gg1.js} +2 -2
  16. package/dist/{chunk-dgsssga5.js.map → chunk-4qwf2gg1.js.map} +1 -1
  17. package/dist/{chunk-a30zkbbx.js → chunk-6d8cntk1.js} +2 -2
  18. package/dist/{chunk-a30zkbbx.js.map → chunk-6d8cntk1.js.map} +1 -1
  19. package/dist/chunk-6j1vmddb.js +4 -0
  20. package/dist/{chunk-dyq4bf49.js.map → chunk-6j1vmddb.js.map} +1 -1
  21. package/dist/{chunk-3exa3rf7.js → chunk-727d0twk.js} +3 -3
  22. package/dist/{chunk-3exa3rf7.js.map → chunk-727d0twk.js.map} +1 -1
  23. package/dist/chunk-8xvadh2t.js +9 -0
  24. package/dist/{chunk-662r0ncr.js.map → chunk-8xvadh2t.js.map} +4 -3
  25. package/dist/{chunk-tzznavpf.js → chunk-ay6w965p.js} +2 -2
  26. package/dist/{chunk-tzznavpf.js.map → chunk-ay6w965p.js.map} +1 -1
  27. package/dist/{chunk-w19m1fcb.js → chunk-azv9jndn.js} +2 -2
  28. package/dist/{chunk-w19m1fcb.js.map → chunk-azv9jndn.js.map} +1 -1
  29. package/dist/{chunk-eyw5m86d.js → chunk-cbrvmz3y.js} +2 -2
  30. package/dist/{chunk-eyw5m86d.js.map → chunk-cbrvmz3y.js.map} +1 -1
  31. package/dist/{chunk-d5bjn9jq.js → chunk-cqn8e9s6.js} +2 -2
  32. package/dist/{chunk-d5bjn9jq.js.map → chunk-cqn8e9s6.js.map} +1 -1
  33. package/dist/{chunk-v6kcbyg4.js → chunk-dnycjhab.js} +3 -3
  34. package/dist/{chunk-v6kcbyg4.js.map → chunk-dnycjhab.js.map} +1 -1
  35. package/dist/{chunk-5zy36vzw.js → chunk-e9dcgqt7.js} +2 -2
  36. package/dist/{chunk-5zy36vzw.js.map → chunk-e9dcgqt7.js.map} +1 -1
  37. package/dist/{chunk-pdxpkd11.js → chunk-h0j7tp3c.js} +2 -2
  38. package/dist/{chunk-pdxpkd11.js.map → chunk-h0j7tp3c.js.map} +1 -1
  39. package/dist/{chunk-8hz7nqa6.js → chunk-hgzy4xxp.js} +2 -2
  40. package/dist/{chunk-8hz7nqa6.js.map → chunk-hgzy4xxp.js.map} +1 -1
  41. package/dist/{chunk-5saeq23h.js → chunk-jkvr5kec.js} +3 -3
  42. package/dist/{chunk-5saeq23h.js.map → chunk-jkvr5kec.js.map} +1 -1
  43. package/dist/{chunk-bq3ssfcb.js → chunk-kf91mqnv.js} +2 -2
  44. package/dist/{chunk-bq3ssfcb.js.map → chunk-kf91mqnv.js.map} +1 -1
  45. package/dist/{chunk-rfs3fhhw.js → chunk-mdh39zmy.js} +2 -2
  46. package/dist/{chunk-rfs3fhhw.js.map → chunk-mdh39zmy.js.map} +1 -1
  47. package/dist/{chunk-arayp1w0.js → chunk-n7sc21pz.js} +2 -2
  48. package/dist/{chunk-arayp1w0.js.map → chunk-n7sc21pz.js.map} +1 -1
  49. package/dist/{chunk-zv5ztmxm.js → chunk-p86br05j.js} +2 -2
  50. package/dist/{chunk-zv5ztmxm.js.map → chunk-p86br05j.js.map} +1 -1
  51. package/dist/{chunk-2e5r9zc8.js → chunk-ptar9njs.js} +2 -2
  52. package/dist/{chunk-2e5r9zc8.js.map → chunk-ptar9njs.js.map} +1 -1
  53. package/dist/{chunk-fhx0vt7d.js → chunk-q462zzyt.js} +2 -2
  54. package/dist/{chunk-fhx0vt7d.js.map → chunk-q462zzyt.js.map} +1 -1
  55. package/dist/{chunk-k5h445f9.js → chunk-qagjgdjv.js} +2 -2
  56. package/dist/{chunk-k5h445f9.js.map → chunk-qagjgdjv.js.map} +1 -1
  57. package/dist/{chunk-qj8d5qgn.js → chunk-qeznpdx3.js} +3 -3
  58. package/dist/{chunk-qj8d5qgn.js.map → chunk-qeznpdx3.js.map} +1 -1
  59. package/dist/{chunk-yaeec5ch.js → chunk-qs44ke4h.js} +2 -2
  60. package/dist/{chunk-yaeec5ch.js.map → chunk-qs44ke4h.js.map} +1 -1
  61. package/dist/{chunk-4kkyjz2j.js → chunk-rmns1r5r.js} +3 -3
  62. package/dist/{chunk-4kkyjz2j.js.map → chunk-rmns1r5r.js.map} +1 -1
  63. package/dist/{chunk-xsmhw13v.js → chunk-rsgc07e5.js} +2 -2
  64. package/dist/{chunk-xsmhw13v.js.map → chunk-rsgc07e5.js.map} +1 -1
  65. package/dist/chunk-sj4p2cqp.js +4 -0
  66. package/dist/{chunk-hakywsfq.js.map → chunk-sj4p2cqp.js.map} +1 -1
  67. package/dist/{chunk-e4t6twrj.js → chunk-y0z99vzf.js} +2 -2
  68. package/dist/{chunk-e4t6twrj.js.map → chunk-y0z99vzf.js.map} +1 -1
  69. package/dist/client/index.js.map +1 -1
  70. package/dist/email/index.js +1 -1
  71. package/dist/facades/index.js +3 -3
  72. package/dist/facades/index.js.map +1 -1
  73. package/dist/http/index.js +2 -2
  74. package/dist/http/index.js.map +3 -3
  75. package/dist/i18n/index.js +1 -1
  76. package/dist/kernel/index.js +2 -2
  77. package/dist/kernel/index.js.map +1 -1
  78. package/dist/server/index.js +2 -2
  79. package/dist/server/index.js.map +1 -1
  80. package/dist/services/index.js +4 -4
  81. package/dist/services/index.js.map +1 -1
  82. package/package.json +1 -1
  83. package/dist/chunk-662r0ncr.js +0 -9
  84. package/dist/chunk-dyq4bf49.js +0 -4
  85. package/dist/chunk-hakywsfq.js +0 -4
  86. /package/dist/{chunk-ac8m7p53.js.map → chunk-1g5hx2rt.js.map} +0 -0
@@ -1,4 +1,4 @@
1
- import{sc as t}from"./chunk-hakywsfq.js";class e extends t{boot(){}supportedLocales=[];defaultLocale="en-US";prefetch={};components={};detectLocale(r){return null}}
1
+ import{rc as t}from"./chunk-sj4p2cqp.js";class e extends t{boot(){}supportedLocales=[];defaultLocale="en-US";prefetch={};components={};detectLocale(r){return null}}
2
2
  export{e as x};
3
3
 
4
- //# debugId=9A6F53733A0743A264756E2164756E21
4
+ //# debugId=D20BAC9A49969E5A64756E2164756E21
@@ -5,6 +5,6 @@
5
5
  "import type { Dictionary } from \"./Dictionary\";\nimport { ServiceProvider } from \"../services/ServiceProvider\";\nimport type { HttpRequest } from \"../http/HttpRequest\";\n\nexport class I18nServiceProvider extends ServiceProvider {\n boot() {}\n supportedLocales: string[] = [];\n defaultLocale = \"en-US\";\n prefetch: Record<string, Array<Dictionary<any>>> = {};\n components: Record<string, Dictionary<any>> = {};\n detectLocale(_req: HttpRequest): string | null {\n return null;\n }\n}\n"
6
6
  ],
7
7
  "mappings": "yCAIO,MAAM,UAA4B,CAAgB,CACvD,IAAI,EAAG,EACP,iBAA6B,CAAC,EAC9B,cAAgB,QAChB,SAAmD,CAAC,EACpD,WAA8C,CAAC,EAC/C,YAAY,CAAC,EAAkC,CAC7C,OAAO,KAEX",
8
- "debugId": "9A6F53733A0743A264756E2164756E21",
8
+ "debugId": "D20BAC9A49969E5A64756E2164756E21",
9
9
  "names": []
10
10
  }
@@ -1,4 +1,4 @@
1
1
  // @bun
2
- import{a as gr,b as jr,c as nr,d as ir,e as Ir,f as ar,g as Se,h as fr,i as kr,j as Nr,k as we,l as wr,m as Ne,n as Cr,o as Ar,p as Gr,q as Hr,r as Lr,s as mr}from"./chunk-fhx0vt7d.js";import{Vb as Oe,Wb as hr,Xb as W,Zb as E,_b as w}from"./chunk-bq3ssfcb.js";import{ac as $r,dc as Pr,ec as Sr,gc as Tr}from"./chunk-5saeq23h.js";import"./chunk-awqqsf8p.js";import"./chunk-v6kcbyg4.js";import"./chunk-qj8d5qgn.js";import{vc as Mr}from"./chunk-4kkyjz2j.js";import{xc as d}from"./chunk-5zy36vzw.js";var L=d((X)=>{Object.defineProperty(X,"__esModule",{value:!0});X.resolveHttpAuthSchemeConfig=X.defaultSSOOIDCHttpAuthSchemeProvider=X.defaultSSOOIDCHttpAuthSchemeParametersProvider=void 0;var xe=w(),H=Oe(),ce=async(e,r,l)=>{return{operation:H.getSmithyContext(r).operation,region:await H.normalizeProvider(e.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}};X.defaultSSOOIDCHttpAuthSchemeParametersProvider=ce;function oe(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sso-oauth",region:e.region},propertiesExtractor:(r,l)=>({signingProperties:{config:r,context:l}})}}function ue(e){return{schemeId:"smithy.api#noAuth"}}var pe=(e)=>{let r=[];switch(e.operation){case"CreateToken":{r.push(ue(e));break}default:r.push(oe(e))}return r};X.defaultSSOOIDCHttpAuthSchemeProvider=pe;var te=(e)=>{let r=xe.resolveAwsSdkSigV4Config(e);return Object.assign(r,{authSchemePreference:H.normalizeProvider(e.authSchemePreference??[])})};X.resolveHttpAuthSchemeConfig=te});var p=d((o)=>{Object.defineProperty(o,"__esModule",{value:!0});o.ruleSet=void 0;var m="required",S="fn",N="argv",U="ref",J=!0,Q="isSet",k="booleanEquals",F="error",_="endpoint",s="tree",V="PartitionResult",b="getAttr",Z={[m]:!1,type:"String"},$={[m]:!0,default:!1,type:"Boolean"},h={[U]:"Endpoint"},O={[S]:k,[N]:[{[U]:"UseFIPS"},!0]},x={[S]:k,[N]:[{[U]:"UseDualStack"},!0]},P={},g={[S]:b,[N]:[{[U]:V},"supportsFIPS"]},c={[U]:V},j={[S]:k,[N]:[!0,{[S]:b,[N]:[c,"supportsDualStack"]}]},n=[O],a=[x],f=[{[U]:"Region"}],lr={version:"1.0",parameters:{Region:Z,UseDualStack:$,UseFIPS:$,Endpoint:Z},rules:[{conditions:[{[S]:Q,[N]:[h]}],rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:F},{conditions:a,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:F},{endpoint:{url:h,properties:P,headers:P},type:_}],type:s},{conditions:[{[S]:Q,[N]:f}],rules:[{conditions:[{[S]:"aws.partition",[N]:f,assign:V}],rules:[{conditions:[O,x],rules:[{conditions:[{[S]:k,[N]:[J,g]},j],rules:[{endpoint:{url:"https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:P,headers:P},type:_}],type:s},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:F}],type:s},{conditions:n,rules:[{conditions:[{[S]:k,[N]:[g,J]}],rules:[{conditions:[{[S]:"stringEquals",[N]:[{[S]:b,[N]:[c,"name"]},"aws-us-gov"]}],endpoint:{url:"https://oidc.{Region}.amazonaws.com",properties:P,headers:P},type:_},{endpoint:{url:"https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}",properties:P,headers:P},type:_}],type:s},{error:"FIPS is enabled but this partition does not support FIPS",type:F}],type:s},{conditions:a,rules:[{conditions:[j],rules:[{endpoint:{url:"https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:P,headers:P},type:_}],type:s},{error:"DualStack is enabled but this partition does not support DualStack",type:F}],type:s},{endpoint:{url:"https://oidc.{Region}.{PartitionResult#dnsSuffix}",properties:P,headers:P},type:_}],type:s}],type:s},{error:"Invalid Configuration: Missing Region",type:F}]};o.ruleSet=lr});var re=d((t)=>{Object.defineProperty(t,"__esModule",{value:!0});t.defaultEndpointResolver=void 0;var vr=Ir(),B=ir(),Dr=p(),qr=new B.EndpointCache({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),yr=(e,r={})=>{return qr.get(e,()=>B.resolveEndpoint(Dr.ruleSet,{endpointParams:e,logger:r.logger}))};t.defaultEndpointResolver=yr;B.customEndpointFunctions.aws=vr.awsEndpointFunctions});var De=d((Ie)=>{Object.defineProperty(Ie,"__esModule",{value:!0});Ie.getRuntimeConfig=void 0;var Rr=w(),Er=W(),sr=E(),dr=Nr(),le=Sr(),ie=Pr(),Fr=L(),_r=re(),Ur=(e)=>{return{apiVersion:"2019-06-10",base64Decoder:e?.base64Decoder??le.fromBase64,base64Encoder:e?.base64Encoder??le.toBase64,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??_r.defaultEndpointResolver,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??Fr.defaultSSOOIDCHttpAuthSchemeProvider,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(r)=>r.getIdentityProvider("aws.auth#sigv4"),signer:new Rr.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:(r)=>r.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new Er.NoAuthSigner}],logger:e?.logger??new sr.NoOpLogger,serviceId:e?.serviceId??"SSO OIDC",urlParser:e?.urlParser??dr.parseUrl,utf8Decoder:e?.utf8Decoder??ie.fromUtf8,utf8Encoder:e?.utf8Encoder??ie.toUtf8}};Ie.getRuntimeConfig=Ur});var se=d((Re)=>{Object.defineProperty(Re,"__esModule",{value:!0});Re.getRuntimeConfig=void 0;var Vr=Mr(),br=Vr.__importDefault(Cr()),Br=w(),qe=Ar(),C=Se(),Wr=Gr(),ye=Ne(),M=kr(),Pe=Tr(),Yr=Hr(),Kr=wr(),Xr=De(),zr=E(),Jr=Lr(),Qr=E(),Zr=(e)=>{Qr.emitWarningIfUnsupportedVersion(process.version);let r=Jr.resolveDefaultsModeConfig(e),l=()=>r().then(zr.loadConfigsForDefaultMode),v=Xr.getRuntimeConfig(e);Br.emitWarningIfUnsupportedVersion(process.version);let I={profile:e?.profile};return{...v,...e,runtime:"node",defaultsMode:r,bodyLengthChecker:e?.bodyLengthChecker??Yr.calculateBodyLength,defaultUserAgentProvider:e?.defaultUserAgentProvider??qe.createDefaultUserAgentProvider({serviceId:v.serviceId,clientVersion:br.default.version}),maxAttempts:e?.maxAttempts??M.loadConfig(ye.NODE_MAX_ATTEMPT_CONFIG_OPTIONS,e),region:e?.region??M.loadConfig(C.NODE_REGION_CONFIG_OPTIONS,{...C.NODE_REGION_CONFIG_FILE_OPTIONS,...I}),requestHandler:Pe.NodeHttpHandler.create(e?.requestHandler??l),retryMode:e?.retryMode??M.loadConfig({...ye.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await l()).retryMode||Kr.DEFAULT_RETRY_MODE},e),sha256:e?.sha256??Wr.Hash.bind(null,"sha256"),streamCollector:e?.streamCollector??Pe.streamCollector,useDualstackEndpoint:e?.useDualstackEndpoint??M.loadConfig(C.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,I),useFipsEndpoint:e?.useFipsEndpoint??M.loadConfig(C.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,I),userAgentAppId:e?.userAgentAppId??M.loadConfig(qe.NODE_APP_ID_CONFIG_OPTIONS,I)}};Re.getRuntimeConfig=Zr});var Wl=d((Ql,je)=>{var{defineProperty:A,getOwnPropertyDescriptor:Or,getOwnPropertyNames:xr}=Object,cr=Object.prototype.hasOwnProperty,D=(e,r)=>A(e,"name",{value:r,configurable:!0}),or=(e,r)=>{for(var l in r)A(e,l,{get:r[l],enumerable:!0})},ur=(e,r,l,v)=>{if(r&&typeof r==="object"||typeof r==="function"){for(let I of xr(r))if(!cr.call(e,I)&&I!==l)A(e,I,{get:()=>r[I],enumerable:!(v=Or(r,I))||v.enumerable})}return e},pr=(e)=>ur(A({},"__esModule",{value:!0}),e),Ce={};or(Ce,{$Command:()=>He.Command,AccessDeniedException:()=>Le,AuthorizationPendingException:()=>Ve,CreateTokenCommand:()=>he,CreateTokenRequestFilterSensitiveLog:()=>be,CreateTokenResponseFilterSensitiveLog:()=>Be,ExpiredTokenException:()=>We,InternalServerException:()=>Ye,InvalidClientException:()=>Ke,InvalidGrantException:()=>Xe,InvalidRequestException:()=>ze,InvalidScopeException:()=>Je,SSOOIDC:()=>ge,SSOOIDCClient:()=>Ge,SSOOIDCServiceException:()=>y,SlowDownException:()=>Qe,UnauthorizedClientException:()=>Ze,UnsupportedGrantTypeException:()=>$e,__Client:()=>Ae.Client});je.exports=pr(Ce);var de=gr(),tr=jr(),el=nr(),Fe=ar(),rl=Se(),Y=W(),ll=fr(),il=we(),_e=Ne(),Ae=E(),Ue=L(),Il=D((e)=>{return Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:"sso-oauth"})},"resolveClientEndpointParameters"),vl={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},Dl=se(),Me=mr(),Te=$r(),ke=E(),ql=D((e)=>{let{httpAuthSchemes:r,httpAuthSchemeProvider:l,credentials:v}=e;return{setHttpAuthScheme(I){let q=r.findIndex((G)=>G.schemeId===I.schemeId);if(q===-1)r.push(I);else r.splice(q,1,I)},httpAuthSchemes(){return r},setHttpAuthSchemeProvider(I){l=I},httpAuthSchemeProvider(){return l},setCredentials(I){v=I},credentials(){return v}}},"getHttpAuthExtensionConfiguration"),yl=D((e)=>{return{httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}},"resolveHttpAuthRuntimeConfig"),Pl=D((e,r)=>{let l=Object.assign(Me.getAwsRegionExtensionConfiguration(e),ke.getDefaultExtensionConfiguration(e),Te.getHttpHandlerExtensionConfiguration(e),ql(e));return r.forEach((v)=>v.configure(l)),Object.assign(e,Me.resolveAwsRegionExtensionConfiguration(l),ke.resolveDefaultRuntimeConfig(l),Te.resolveHttpHandlerRuntimeConfig(l),yl(l))},"resolveRuntimeExtensions"),Ge=class extends Ae.Client{static{D(this,"SSOOIDCClient")}config;constructor(...[e]){let r=Dl.getRuntimeConfig(e||{});super(r);this.initConfig=r;let l=Il(r),v=Fe.resolveUserAgentConfig(l),I=_e.resolveRetryConfig(v),q=rl.resolveRegionConfig(I),G=de.resolveHostHeaderConfig(q),ne=il.resolveEndpointConfig(G),ae=Ue.resolveHttpAuthSchemeConfig(ne),fe=Pl(ae,e?.extensions||[]);this.config=fe,this.middlewareStack.use(Fe.getUserAgentPlugin(this.config)),this.middlewareStack.use(_e.getRetryPlugin(this.config)),this.middlewareStack.use(ll.getContentLengthPlugin(this.config)),this.middlewareStack.use(de.getHostHeaderPlugin(this.config)),this.middlewareStack.use(tr.getLoggerPlugin(this.config)),this.middlewareStack.use(el.getRecursionDetectionPlugin(this.config)),this.middlewareStack.use(Y.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:Ue.defaultSSOOIDCHttpAuthSchemeParametersProvider,identityProviderConfigProvider:D(async(me)=>new Y.DefaultIdentityProviderConfig({"aws.auth#sigv4":me.credentials}),"identityProviderConfigProvider")})),this.middlewareStack.use(Y.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}},Sl=E(),Nl=we(),Rl=hr(),He=E(),T=E(),El=E(),y=class e extends El.ServiceException{static{D(this,"SSOOIDCServiceException")}constructor(r){super(r);Object.setPrototypeOf(this,e.prototype)}},Le=class e extends y{static{D(this,"AccessDeniedException")}name="AccessDeniedException";$fault="client";error;error_description;constructor(r){super({name:"AccessDeniedException",$fault:"client",...r});Object.setPrototypeOf(this,e.prototype),this.error=r.error,this.error_description=r.error_description}},Ve=class e extends y{static{D(this,"AuthorizationPendingException")}name="AuthorizationPendingException";$fault="client";error;error_description;constructor(r){super({name:"AuthorizationPendingException",$fault:"client",...r});Object.setPrototypeOf(this,e.prototype),this.error=r.error,this.error_description=r.error_description}},be=D((e)=>({...e,...e.clientSecret&&{clientSecret:T.SENSITIVE_STRING},...e.refreshToken&&{refreshToken:T.SENSITIVE_STRING},...e.codeVerifier&&{codeVerifier:T.SENSITIVE_STRING}}),"CreateTokenRequestFilterSensitiveLog"),Be=D((e)=>({...e,...e.accessToken&&{accessToken:T.SENSITIVE_STRING},...e.refreshToken&&{refreshToken:T.SENSITIVE_STRING},...e.idToken&&{idToken:T.SENSITIVE_STRING}}),"CreateTokenResponseFilterSensitiveLog"),We=class e extends y{static{D(this,"ExpiredTokenException")}name="ExpiredTokenException";$fault="client";error;error_description;constructor(r){super({name:"ExpiredTokenException",$fault:"client",...r});Object.setPrototypeOf(this,e.prototype),this.error=r.error,this.error_description=r.error_description}},Ye=class e extends y{static{D(this,"InternalServerException")}name="InternalServerException";$fault="server";error;error_description;constructor(r){super({name:"InternalServerException",$fault:"server",...r});Object.setPrototypeOf(this,e.prototype),this.error=r.error,this.error_description=r.error_description}},Ke=class e extends y{static{D(this,"InvalidClientException")}name="InvalidClientException";$fault="client";error;error_description;constructor(r){super({name:"InvalidClientException",$fault:"client",...r});Object.setPrototypeOf(this,e.prototype),this.error=r.error,this.error_description=r.error_description}},Xe=class e extends y{static{D(this,"InvalidGrantException")}name="InvalidGrantException";$fault="client";error;error_description;constructor(r){super({name:"InvalidGrantException",$fault:"client",...r});Object.setPrototypeOf(this,e.prototype),this.error=r.error,this.error_description=r.error_description}},ze=class e extends y{static{D(this,"InvalidRequestException")}name="InvalidRequestException";$fault="client";error;error_description;constructor(r){super({name:"InvalidRequestException",$fault:"client",...r});Object.setPrototypeOf(this,e.prototype),this.error=r.error,this.error_description=r.error_description}},Je=class e extends y{static{D(this,"InvalidScopeException")}name="InvalidScopeException";$fault="client";error;error_description;constructor(r){super({name:"InvalidScopeException",$fault:"client",...r});Object.setPrototypeOf(this,e.prototype),this.error=r.error,this.error_description=r.error_description}},Qe=class e extends y{static{D(this,"SlowDownException")}name="SlowDownException";$fault="client";error;error_description;constructor(r){super({name:"SlowDownException",$fault:"client",...r});Object.setPrototypeOf(this,e.prototype),this.error=r.error,this.error_description=r.error_description}},Ze=class e extends y{static{D(this,"UnauthorizedClientException")}name="UnauthorizedClientException";$fault="client";error;error_description;constructor(r){super({name:"UnauthorizedClientException",$fault:"client",...r});Object.setPrototypeOf(this,e.prototype),this.error=r.error,this.error_description=r.error_description}},$e=class e extends y{static{D(this,"UnsupportedGrantTypeException")}name="UnsupportedGrantTypeException";$fault="client";error;error_description;constructor(r){super({name:"UnsupportedGrantTypeException",$fault:"client",...r});Object.setPrototypeOf(this,e.prototype),this.error=r.error,this.error_description=r.error_description}},K=w(),sl=W(),i=E(),dl=D(async(e,r)=>{let l=sl.requestBuilder(e,r),v={"content-type":"application/json"};l.bp("/token");let I;return I=JSON.stringify(i.take(e,{clientId:[],clientSecret:[],code:[],codeVerifier:[],deviceCode:[],grantType:[],redirectUri:[],refreshToken:[],scope:D((q)=>i._json(q),"scope")})),l.m("POST").h(v).b(I),l.build()},"se_CreateTokenCommand"),Fl=D(async(e,r)=>{if(e.statusCode!==200&&e.statusCode>=300)return _l(e,r);let l=i.map({$metadata:R(e)}),v=i.expectNonNull(i.expectObject(await K.parseJsonBody(e.body,r)),"body"),I=i.take(v,{accessToken:i.expectString,expiresIn:i.expectInt32,idToken:i.expectString,refreshToken:i.expectString,tokenType:i.expectString});return Object.assign(l,I),l},"de_CreateTokenCommand"),_l=D(async(e,r)=>{let l={...e,body:await K.parseJsonErrorBody(e.body,r)},v=K.loadRestJsonErrorCode(e,l.body);switch(v){case"AccessDeniedException":case"com.amazonaws.ssooidc#AccessDeniedException":throw await Ml(l,r);case"AuthorizationPendingException":case"com.amazonaws.ssooidc#AuthorizationPendingException":throw await Tl(l,r);case"ExpiredTokenException":case"com.amazonaws.ssooidc#ExpiredTokenException":throw await kl(l,r);case"InternalServerException":case"com.amazonaws.ssooidc#InternalServerException":throw await wl(l,r);case"InvalidClientException":case"com.amazonaws.ssooidc#InvalidClientException":throw await Cl(l,r);case"InvalidGrantException":case"com.amazonaws.ssooidc#InvalidGrantException":throw await Al(l,r);case"InvalidRequestException":case"com.amazonaws.ssooidc#InvalidRequestException":throw await Gl(l,r);case"InvalidScopeException":case"com.amazonaws.ssooidc#InvalidScopeException":throw await Hl(l,r);case"SlowDownException":case"com.amazonaws.ssooidc#SlowDownException":throw await Ll(l,r);case"UnauthorizedClientException":case"com.amazonaws.ssooidc#UnauthorizedClientException":throw await Vl(l,r);case"UnsupportedGrantTypeException":case"com.amazonaws.ssooidc#UnsupportedGrantTypeException":throw await bl(l,r);default:let I=l.body;return Ul({output:e,parsedBody:I,errorCode:v})}},"de_CommandError"),Ul=i.withBaseException(y),Ml=D(async(e,r)=>{let l=i.map({}),v=e.body,I=i.take(v,{error:i.expectString,error_description:i.expectString});Object.assign(l,I);let q=new Le({$metadata:R(e),...l});return i.decorateServiceException(q,e.body)},"de_AccessDeniedExceptionRes"),Tl=D(async(e,r)=>{let l=i.map({}),v=e.body,I=i.take(v,{error:i.expectString,error_description:i.expectString});Object.assign(l,I);let q=new Ve({$metadata:R(e),...l});return i.decorateServiceException(q,e.body)},"de_AuthorizationPendingExceptionRes"),kl=D(async(e,r)=>{let l=i.map({}),v=e.body,I=i.take(v,{error:i.expectString,error_description:i.expectString});Object.assign(l,I);let q=new We({$metadata:R(e),...l});return i.decorateServiceException(q,e.body)},"de_ExpiredTokenExceptionRes"),wl=D(async(e,r)=>{let l=i.map({}),v=e.body,I=i.take(v,{error:i.expectString,error_description:i.expectString});Object.assign(l,I);let q=new Ye({$metadata:R(e),...l});return i.decorateServiceException(q,e.body)},"de_InternalServerExceptionRes"),Cl=D(async(e,r)=>{let l=i.map({}),v=e.body,I=i.take(v,{error:i.expectString,error_description:i.expectString});Object.assign(l,I);let q=new Ke({$metadata:R(e),...l});return i.decorateServiceException(q,e.body)},"de_InvalidClientExceptionRes"),Al=D(async(e,r)=>{let l=i.map({}),v=e.body,I=i.take(v,{error:i.expectString,error_description:i.expectString});Object.assign(l,I);let q=new Xe({$metadata:R(e),...l});return i.decorateServiceException(q,e.body)},"de_InvalidGrantExceptionRes"),Gl=D(async(e,r)=>{let l=i.map({}),v=e.body,I=i.take(v,{error:i.expectString,error_description:i.expectString});Object.assign(l,I);let q=new ze({$metadata:R(e),...l});return i.decorateServiceException(q,e.body)},"de_InvalidRequestExceptionRes"),Hl=D(async(e,r)=>{let l=i.map({}),v=e.body,I=i.take(v,{error:i.expectString,error_description:i.expectString});Object.assign(l,I);let q=new Je({$metadata:R(e),...l});return i.decorateServiceException(q,e.body)},"de_InvalidScopeExceptionRes"),Ll=D(async(e,r)=>{let l=i.map({}),v=e.body,I=i.take(v,{error:i.expectString,error_description:i.expectString});Object.assign(l,I);let q=new Qe({$metadata:R(e),...l});return i.decorateServiceException(q,e.body)},"de_SlowDownExceptionRes"),Vl=D(async(e,r)=>{let l=i.map({}),v=e.body,I=i.take(v,{error:i.expectString,error_description:i.expectString});Object.assign(l,I);let q=new Ze({$metadata:R(e),...l});return i.decorateServiceException(q,e.body)},"de_UnauthorizedClientExceptionRes"),bl=D(async(e,r)=>{let l=i.map({}),v=e.body,I=i.take(v,{error:i.expectString,error_description:i.expectString});Object.assign(l,I);let q=new $e({$metadata:R(e),...l});return i.decorateServiceException(q,e.body)},"de_UnsupportedGrantTypeExceptionRes"),R=D((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"]}),"deserializeMetadata"),he=class extends He.Command.classBuilder().ep(vl).m(function(e,r,l,v){return[Rl.getSerdePlugin(l,this.serialize,this.deserialize),Nl.getEndpointPlugin(l,e.getEndpointParameterInstructions())]}).s("AWSSSOOIDCService","CreateToken",{}).n("SSOOIDCClient","CreateTokenCommand").f(be,Be).ser(dl).de(Fl).build(){static{D(this,"CreateTokenCommand")}},Bl={CreateTokenCommand:he},ge=class extends Ge{static{D(this,"SSOOIDC")}};Sl.createAggregatedClient(Bl,ge)});export default Wl();
2
+ import{a as gr,b as jr,c as nr,d as ir,e as Ir,f as ar,g as Se,h as fr,i as kr,j as Nr,k as we,l as wr,m as Ne,n as Cr,o as Ar,p as Gr,q as Hr,r as Lr,s as mr}from"./chunk-q462zzyt.js";import{Vb as Oe,Wb as hr,Xb as W,Zb as E,_b as w}from"./chunk-kf91mqnv.js";import{ac as $r,dc as Pr,ec as Sr,gc as Tr}from"./chunk-jkvr5kec.js";import"./chunk-4mfwb998.js";import"./chunk-dnycjhab.js";import"./chunk-qeznpdx3.js";import{uc as Mr}from"./chunk-rmns1r5r.js";import{wc as d}from"./chunk-e9dcgqt7.js";var L=d((X)=>{Object.defineProperty(X,"__esModule",{value:!0});X.resolveHttpAuthSchemeConfig=X.defaultSSOOIDCHttpAuthSchemeProvider=X.defaultSSOOIDCHttpAuthSchemeParametersProvider=void 0;var xe=w(),H=Oe(),ce=async(e,r,l)=>{return{operation:H.getSmithyContext(r).operation,region:await H.normalizeProvider(e.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}};X.defaultSSOOIDCHttpAuthSchemeParametersProvider=ce;function oe(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sso-oauth",region:e.region},propertiesExtractor:(r,l)=>({signingProperties:{config:r,context:l}})}}function ue(e){return{schemeId:"smithy.api#noAuth"}}var pe=(e)=>{let r=[];switch(e.operation){case"CreateToken":{r.push(ue(e));break}default:r.push(oe(e))}return r};X.defaultSSOOIDCHttpAuthSchemeProvider=pe;var te=(e)=>{let r=xe.resolveAwsSdkSigV4Config(e);return Object.assign(r,{authSchemePreference:H.normalizeProvider(e.authSchemePreference??[])})};X.resolveHttpAuthSchemeConfig=te});var p=d((o)=>{Object.defineProperty(o,"__esModule",{value:!0});o.ruleSet=void 0;var m="required",S="fn",N="argv",U="ref",J=!0,Q="isSet",k="booleanEquals",F="error",_="endpoint",s="tree",V="PartitionResult",b="getAttr",Z={[m]:!1,type:"String"},$={[m]:!0,default:!1,type:"Boolean"},h={[U]:"Endpoint"},O={[S]:k,[N]:[{[U]:"UseFIPS"},!0]},x={[S]:k,[N]:[{[U]:"UseDualStack"},!0]},P={},g={[S]:b,[N]:[{[U]:V},"supportsFIPS"]},c={[U]:V},j={[S]:k,[N]:[!0,{[S]:b,[N]:[c,"supportsDualStack"]}]},n=[O],a=[x],f=[{[U]:"Region"}],lr={version:"1.0",parameters:{Region:Z,UseDualStack:$,UseFIPS:$,Endpoint:Z},rules:[{conditions:[{[S]:Q,[N]:[h]}],rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:F},{conditions:a,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:F},{endpoint:{url:h,properties:P,headers:P},type:_}],type:s},{conditions:[{[S]:Q,[N]:f}],rules:[{conditions:[{[S]:"aws.partition",[N]:f,assign:V}],rules:[{conditions:[O,x],rules:[{conditions:[{[S]:k,[N]:[J,g]},j],rules:[{endpoint:{url:"https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:P,headers:P},type:_}],type:s},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:F}],type:s},{conditions:n,rules:[{conditions:[{[S]:k,[N]:[g,J]}],rules:[{conditions:[{[S]:"stringEquals",[N]:[{[S]:b,[N]:[c,"name"]},"aws-us-gov"]}],endpoint:{url:"https://oidc.{Region}.amazonaws.com",properties:P,headers:P},type:_},{endpoint:{url:"https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}",properties:P,headers:P},type:_}],type:s},{error:"FIPS is enabled but this partition does not support FIPS",type:F}],type:s},{conditions:a,rules:[{conditions:[j],rules:[{endpoint:{url:"https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:P,headers:P},type:_}],type:s},{error:"DualStack is enabled but this partition does not support DualStack",type:F}],type:s},{endpoint:{url:"https://oidc.{Region}.{PartitionResult#dnsSuffix}",properties:P,headers:P},type:_}],type:s}],type:s},{error:"Invalid Configuration: Missing Region",type:F}]};o.ruleSet=lr});var re=d((t)=>{Object.defineProperty(t,"__esModule",{value:!0});t.defaultEndpointResolver=void 0;var vr=Ir(),B=ir(),Dr=p(),qr=new B.EndpointCache({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),yr=(e,r={})=>{return qr.get(e,()=>B.resolveEndpoint(Dr.ruleSet,{endpointParams:e,logger:r.logger}))};t.defaultEndpointResolver=yr;B.customEndpointFunctions.aws=vr.awsEndpointFunctions});var De=d((Ie)=>{Object.defineProperty(Ie,"__esModule",{value:!0});Ie.getRuntimeConfig=void 0;var Rr=w(),Er=W(),sr=E(),dr=Nr(),le=Sr(),ie=Pr(),Fr=L(),_r=re(),Ur=(e)=>{return{apiVersion:"2019-06-10",base64Decoder:e?.base64Decoder??le.fromBase64,base64Encoder:e?.base64Encoder??le.toBase64,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??_r.defaultEndpointResolver,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??Fr.defaultSSOOIDCHttpAuthSchemeProvider,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(r)=>r.getIdentityProvider("aws.auth#sigv4"),signer:new Rr.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:(r)=>r.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new Er.NoAuthSigner}],logger:e?.logger??new sr.NoOpLogger,serviceId:e?.serviceId??"SSO OIDC",urlParser:e?.urlParser??dr.parseUrl,utf8Decoder:e?.utf8Decoder??ie.fromUtf8,utf8Encoder:e?.utf8Encoder??ie.toUtf8}};Ie.getRuntimeConfig=Ur});var se=d((Re)=>{Object.defineProperty(Re,"__esModule",{value:!0});Re.getRuntimeConfig=void 0;var Vr=Mr(),br=Vr.__importDefault(Cr()),Br=w(),qe=Ar(),C=Se(),Wr=Gr(),ye=Ne(),M=kr(),Pe=Tr(),Yr=Hr(),Kr=wr(),Xr=De(),zr=E(),Jr=Lr(),Qr=E(),Zr=(e)=>{Qr.emitWarningIfUnsupportedVersion(process.version);let r=Jr.resolveDefaultsModeConfig(e),l=()=>r().then(zr.loadConfigsForDefaultMode),v=Xr.getRuntimeConfig(e);Br.emitWarningIfUnsupportedVersion(process.version);let I={profile:e?.profile};return{...v,...e,runtime:"node",defaultsMode:r,bodyLengthChecker:e?.bodyLengthChecker??Yr.calculateBodyLength,defaultUserAgentProvider:e?.defaultUserAgentProvider??qe.createDefaultUserAgentProvider({serviceId:v.serviceId,clientVersion:br.default.version}),maxAttempts:e?.maxAttempts??M.loadConfig(ye.NODE_MAX_ATTEMPT_CONFIG_OPTIONS,e),region:e?.region??M.loadConfig(C.NODE_REGION_CONFIG_OPTIONS,{...C.NODE_REGION_CONFIG_FILE_OPTIONS,...I}),requestHandler:Pe.NodeHttpHandler.create(e?.requestHandler??l),retryMode:e?.retryMode??M.loadConfig({...ye.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await l()).retryMode||Kr.DEFAULT_RETRY_MODE},e),sha256:e?.sha256??Wr.Hash.bind(null,"sha256"),streamCollector:e?.streamCollector??Pe.streamCollector,useDualstackEndpoint:e?.useDualstackEndpoint??M.loadConfig(C.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,I),useFipsEndpoint:e?.useFipsEndpoint??M.loadConfig(C.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,I),userAgentAppId:e?.userAgentAppId??M.loadConfig(qe.NODE_APP_ID_CONFIG_OPTIONS,I)}};Re.getRuntimeConfig=Zr});var Wl=d((Ql,je)=>{var{defineProperty:A,getOwnPropertyDescriptor:Or,getOwnPropertyNames:xr}=Object,cr=Object.prototype.hasOwnProperty,D=(e,r)=>A(e,"name",{value:r,configurable:!0}),or=(e,r)=>{for(var l in r)A(e,l,{get:r[l],enumerable:!0})},ur=(e,r,l,v)=>{if(r&&typeof r==="object"||typeof r==="function"){for(let I of xr(r))if(!cr.call(e,I)&&I!==l)A(e,I,{get:()=>r[I],enumerable:!(v=Or(r,I))||v.enumerable})}return e},pr=(e)=>ur(A({},"__esModule",{value:!0}),e),Ce={};or(Ce,{$Command:()=>He.Command,AccessDeniedException:()=>Le,AuthorizationPendingException:()=>Ve,CreateTokenCommand:()=>he,CreateTokenRequestFilterSensitiveLog:()=>be,CreateTokenResponseFilterSensitiveLog:()=>Be,ExpiredTokenException:()=>We,InternalServerException:()=>Ye,InvalidClientException:()=>Ke,InvalidGrantException:()=>Xe,InvalidRequestException:()=>ze,InvalidScopeException:()=>Je,SSOOIDC:()=>ge,SSOOIDCClient:()=>Ge,SSOOIDCServiceException:()=>y,SlowDownException:()=>Qe,UnauthorizedClientException:()=>Ze,UnsupportedGrantTypeException:()=>$e,__Client:()=>Ae.Client});je.exports=pr(Ce);var de=gr(),tr=jr(),el=nr(),Fe=ar(),rl=Se(),Y=W(),ll=fr(),il=we(),_e=Ne(),Ae=E(),Ue=L(),Il=D((e)=>{return Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:"sso-oauth"})},"resolveClientEndpointParameters"),vl={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},Dl=se(),Me=mr(),Te=$r(),ke=E(),ql=D((e)=>{let{httpAuthSchemes:r,httpAuthSchemeProvider:l,credentials:v}=e;return{setHttpAuthScheme(I){let q=r.findIndex((G)=>G.schemeId===I.schemeId);if(q===-1)r.push(I);else r.splice(q,1,I)},httpAuthSchemes(){return r},setHttpAuthSchemeProvider(I){l=I},httpAuthSchemeProvider(){return l},setCredentials(I){v=I},credentials(){return v}}},"getHttpAuthExtensionConfiguration"),yl=D((e)=>{return{httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}},"resolveHttpAuthRuntimeConfig"),Pl=D((e,r)=>{let l=Object.assign(Me.getAwsRegionExtensionConfiguration(e),ke.getDefaultExtensionConfiguration(e),Te.getHttpHandlerExtensionConfiguration(e),ql(e));return r.forEach((v)=>v.configure(l)),Object.assign(e,Me.resolveAwsRegionExtensionConfiguration(l),ke.resolveDefaultRuntimeConfig(l),Te.resolveHttpHandlerRuntimeConfig(l),yl(l))},"resolveRuntimeExtensions"),Ge=class extends Ae.Client{static{D(this,"SSOOIDCClient")}config;constructor(...[e]){let r=Dl.getRuntimeConfig(e||{});super(r);this.initConfig=r;let l=Il(r),v=Fe.resolveUserAgentConfig(l),I=_e.resolveRetryConfig(v),q=rl.resolveRegionConfig(I),G=de.resolveHostHeaderConfig(q),ne=il.resolveEndpointConfig(G),ae=Ue.resolveHttpAuthSchemeConfig(ne),fe=Pl(ae,e?.extensions||[]);this.config=fe,this.middlewareStack.use(Fe.getUserAgentPlugin(this.config)),this.middlewareStack.use(_e.getRetryPlugin(this.config)),this.middlewareStack.use(ll.getContentLengthPlugin(this.config)),this.middlewareStack.use(de.getHostHeaderPlugin(this.config)),this.middlewareStack.use(tr.getLoggerPlugin(this.config)),this.middlewareStack.use(el.getRecursionDetectionPlugin(this.config)),this.middlewareStack.use(Y.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:Ue.defaultSSOOIDCHttpAuthSchemeParametersProvider,identityProviderConfigProvider:D(async(me)=>new Y.DefaultIdentityProviderConfig({"aws.auth#sigv4":me.credentials}),"identityProviderConfigProvider")})),this.middlewareStack.use(Y.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}},Sl=E(),Nl=we(),Rl=hr(),He=E(),T=E(),El=E(),y=class e extends El.ServiceException{static{D(this,"SSOOIDCServiceException")}constructor(r){super(r);Object.setPrototypeOf(this,e.prototype)}},Le=class e extends y{static{D(this,"AccessDeniedException")}name="AccessDeniedException";$fault="client";error;error_description;constructor(r){super({name:"AccessDeniedException",$fault:"client",...r});Object.setPrototypeOf(this,e.prototype),this.error=r.error,this.error_description=r.error_description}},Ve=class e extends y{static{D(this,"AuthorizationPendingException")}name="AuthorizationPendingException";$fault="client";error;error_description;constructor(r){super({name:"AuthorizationPendingException",$fault:"client",...r});Object.setPrototypeOf(this,e.prototype),this.error=r.error,this.error_description=r.error_description}},be=D((e)=>({...e,...e.clientSecret&&{clientSecret:T.SENSITIVE_STRING},...e.refreshToken&&{refreshToken:T.SENSITIVE_STRING},...e.codeVerifier&&{codeVerifier:T.SENSITIVE_STRING}}),"CreateTokenRequestFilterSensitiveLog"),Be=D((e)=>({...e,...e.accessToken&&{accessToken:T.SENSITIVE_STRING},...e.refreshToken&&{refreshToken:T.SENSITIVE_STRING},...e.idToken&&{idToken:T.SENSITIVE_STRING}}),"CreateTokenResponseFilterSensitiveLog"),We=class e extends y{static{D(this,"ExpiredTokenException")}name="ExpiredTokenException";$fault="client";error;error_description;constructor(r){super({name:"ExpiredTokenException",$fault:"client",...r});Object.setPrototypeOf(this,e.prototype),this.error=r.error,this.error_description=r.error_description}},Ye=class e extends y{static{D(this,"InternalServerException")}name="InternalServerException";$fault="server";error;error_description;constructor(r){super({name:"InternalServerException",$fault:"server",...r});Object.setPrototypeOf(this,e.prototype),this.error=r.error,this.error_description=r.error_description}},Ke=class e extends y{static{D(this,"InvalidClientException")}name="InvalidClientException";$fault="client";error;error_description;constructor(r){super({name:"InvalidClientException",$fault:"client",...r});Object.setPrototypeOf(this,e.prototype),this.error=r.error,this.error_description=r.error_description}},Xe=class e extends y{static{D(this,"InvalidGrantException")}name="InvalidGrantException";$fault="client";error;error_description;constructor(r){super({name:"InvalidGrantException",$fault:"client",...r});Object.setPrototypeOf(this,e.prototype),this.error=r.error,this.error_description=r.error_description}},ze=class e extends y{static{D(this,"InvalidRequestException")}name="InvalidRequestException";$fault="client";error;error_description;constructor(r){super({name:"InvalidRequestException",$fault:"client",...r});Object.setPrototypeOf(this,e.prototype),this.error=r.error,this.error_description=r.error_description}},Je=class e extends y{static{D(this,"InvalidScopeException")}name="InvalidScopeException";$fault="client";error;error_description;constructor(r){super({name:"InvalidScopeException",$fault:"client",...r});Object.setPrototypeOf(this,e.prototype),this.error=r.error,this.error_description=r.error_description}},Qe=class e extends y{static{D(this,"SlowDownException")}name="SlowDownException";$fault="client";error;error_description;constructor(r){super({name:"SlowDownException",$fault:"client",...r});Object.setPrototypeOf(this,e.prototype),this.error=r.error,this.error_description=r.error_description}},Ze=class e extends y{static{D(this,"UnauthorizedClientException")}name="UnauthorizedClientException";$fault="client";error;error_description;constructor(r){super({name:"UnauthorizedClientException",$fault:"client",...r});Object.setPrototypeOf(this,e.prototype),this.error=r.error,this.error_description=r.error_description}},$e=class e extends y{static{D(this,"UnsupportedGrantTypeException")}name="UnsupportedGrantTypeException";$fault="client";error;error_description;constructor(r){super({name:"UnsupportedGrantTypeException",$fault:"client",...r});Object.setPrototypeOf(this,e.prototype),this.error=r.error,this.error_description=r.error_description}},K=w(),sl=W(),i=E(),dl=D(async(e,r)=>{let l=sl.requestBuilder(e,r),v={"content-type":"application/json"};l.bp("/token");let I;return I=JSON.stringify(i.take(e,{clientId:[],clientSecret:[],code:[],codeVerifier:[],deviceCode:[],grantType:[],redirectUri:[],refreshToken:[],scope:D((q)=>i._json(q),"scope")})),l.m("POST").h(v).b(I),l.build()},"se_CreateTokenCommand"),Fl=D(async(e,r)=>{if(e.statusCode!==200&&e.statusCode>=300)return _l(e,r);let l=i.map({$metadata:R(e)}),v=i.expectNonNull(i.expectObject(await K.parseJsonBody(e.body,r)),"body"),I=i.take(v,{accessToken:i.expectString,expiresIn:i.expectInt32,idToken:i.expectString,refreshToken:i.expectString,tokenType:i.expectString});return Object.assign(l,I),l},"de_CreateTokenCommand"),_l=D(async(e,r)=>{let l={...e,body:await K.parseJsonErrorBody(e.body,r)},v=K.loadRestJsonErrorCode(e,l.body);switch(v){case"AccessDeniedException":case"com.amazonaws.ssooidc#AccessDeniedException":throw await Ml(l,r);case"AuthorizationPendingException":case"com.amazonaws.ssooidc#AuthorizationPendingException":throw await Tl(l,r);case"ExpiredTokenException":case"com.amazonaws.ssooidc#ExpiredTokenException":throw await kl(l,r);case"InternalServerException":case"com.amazonaws.ssooidc#InternalServerException":throw await wl(l,r);case"InvalidClientException":case"com.amazonaws.ssooidc#InvalidClientException":throw await Cl(l,r);case"InvalidGrantException":case"com.amazonaws.ssooidc#InvalidGrantException":throw await Al(l,r);case"InvalidRequestException":case"com.amazonaws.ssooidc#InvalidRequestException":throw await Gl(l,r);case"InvalidScopeException":case"com.amazonaws.ssooidc#InvalidScopeException":throw await Hl(l,r);case"SlowDownException":case"com.amazonaws.ssooidc#SlowDownException":throw await Ll(l,r);case"UnauthorizedClientException":case"com.amazonaws.ssooidc#UnauthorizedClientException":throw await Vl(l,r);case"UnsupportedGrantTypeException":case"com.amazonaws.ssooidc#UnsupportedGrantTypeException":throw await bl(l,r);default:let I=l.body;return Ul({output:e,parsedBody:I,errorCode:v})}},"de_CommandError"),Ul=i.withBaseException(y),Ml=D(async(e,r)=>{let l=i.map({}),v=e.body,I=i.take(v,{error:i.expectString,error_description:i.expectString});Object.assign(l,I);let q=new Le({$metadata:R(e),...l});return i.decorateServiceException(q,e.body)},"de_AccessDeniedExceptionRes"),Tl=D(async(e,r)=>{let l=i.map({}),v=e.body,I=i.take(v,{error:i.expectString,error_description:i.expectString});Object.assign(l,I);let q=new Ve({$metadata:R(e),...l});return i.decorateServiceException(q,e.body)},"de_AuthorizationPendingExceptionRes"),kl=D(async(e,r)=>{let l=i.map({}),v=e.body,I=i.take(v,{error:i.expectString,error_description:i.expectString});Object.assign(l,I);let q=new We({$metadata:R(e),...l});return i.decorateServiceException(q,e.body)},"de_ExpiredTokenExceptionRes"),wl=D(async(e,r)=>{let l=i.map({}),v=e.body,I=i.take(v,{error:i.expectString,error_description:i.expectString});Object.assign(l,I);let q=new Ye({$metadata:R(e),...l});return i.decorateServiceException(q,e.body)},"de_InternalServerExceptionRes"),Cl=D(async(e,r)=>{let l=i.map({}),v=e.body,I=i.take(v,{error:i.expectString,error_description:i.expectString});Object.assign(l,I);let q=new Ke({$metadata:R(e),...l});return i.decorateServiceException(q,e.body)},"de_InvalidClientExceptionRes"),Al=D(async(e,r)=>{let l=i.map({}),v=e.body,I=i.take(v,{error:i.expectString,error_description:i.expectString});Object.assign(l,I);let q=new Xe({$metadata:R(e),...l});return i.decorateServiceException(q,e.body)},"de_InvalidGrantExceptionRes"),Gl=D(async(e,r)=>{let l=i.map({}),v=e.body,I=i.take(v,{error:i.expectString,error_description:i.expectString});Object.assign(l,I);let q=new ze({$metadata:R(e),...l});return i.decorateServiceException(q,e.body)},"de_InvalidRequestExceptionRes"),Hl=D(async(e,r)=>{let l=i.map({}),v=e.body,I=i.take(v,{error:i.expectString,error_description:i.expectString});Object.assign(l,I);let q=new Je({$metadata:R(e),...l});return i.decorateServiceException(q,e.body)},"de_InvalidScopeExceptionRes"),Ll=D(async(e,r)=>{let l=i.map({}),v=e.body,I=i.take(v,{error:i.expectString,error_description:i.expectString});Object.assign(l,I);let q=new Qe({$metadata:R(e),...l});return i.decorateServiceException(q,e.body)},"de_SlowDownExceptionRes"),Vl=D(async(e,r)=>{let l=i.map({}),v=e.body,I=i.take(v,{error:i.expectString,error_description:i.expectString});Object.assign(l,I);let q=new Ze({$metadata:R(e),...l});return i.decorateServiceException(q,e.body)},"de_UnauthorizedClientExceptionRes"),bl=D(async(e,r)=>{let l=i.map({}),v=e.body,I=i.take(v,{error:i.expectString,error_description:i.expectString});Object.assign(l,I);let q=new $e({$metadata:R(e),...l});return i.decorateServiceException(q,e.body)},"de_UnsupportedGrantTypeExceptionRes"),R=D((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"]}),"deserializeMetadata"),he=class extends He.Command.classBuilder().ep(vl).m(function(e,r,l,v){return[Rl.getSerdePlugin(l,this.serialize,this.deserialize),Nl.getEndpointPlugin(l,e.getEndpointParameterInstructions())]}).s("AWSSSOOIDCService","CreateToken",{}).n("SSOOIDCClient","CreateTokenCommand").f(be,Be).ser(dl).de(Fl).build(){static{D(this,"CreateTokenCommand")}},Bl={CreateTokenCommand:he},ge=class extends Ge{static{D(this,"SSOOIDC")}};Sl.createAggregatedClient(Bl,ge)});export default Wl();
3
3
 
4
- //# debugId=21F3F7FFDD3D50C564756E2164756E21
4
+ //# debugId=2C86105018A21B6E64756E2164756E21
@@ -10,6 +10,6 @@
10
10
  "\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __name = (target, value) => __defProp(target, \"name\", { value, configurable: true });\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\n\n// src/submodules/sso-oidc/index.ts\nvar index_exports = {};\n__export(index_exports, {\n $Command: () => import_smithy_client6.Command,\n AccessDeniedException: () => AccessDeniedException,\n AuthorizationPendingException: () => AuthorizationPendingException,\n CreateTokenCommand: () => CreateTokenCommand,\n CreateTokenRequestFilterSensitiveLog: () => CreateTokenRequestFilterSensitiveLog,\n CreateTokenResponseFilterSensitiveLog: () => CreateTokenResponseFilterSensitiveLog,\n ExpiredTokenException: () => ExpiredTokenException,\n InternalServerException: () => InternalServerException,\n InvalidClientException: () => InvalidClientException,\n InvalidGrantException: () => InvalidGrantException,\n InvalidRequestException: () => InvalidRequestException,\n InvalidScopeException: () => InvalidScopeException,\n SSOOIDC: () => SSOOIDC,\n SSOOIDCClient: () => SSOOIDCClient,\n SSOOIDCServiceException: () => SSOOIDCServiceException,\n SlowDownException: () => SlowDownException,\n UnauthorizedClientException: () => UnauthorizedClientException,\n UnsupportedGrantTypeException: () => UnsupportedGrantTypeException,\n __Client: () => import_smithy_client2.Client\n});\nmodule.exports = __toCommonJS(index_exports);\n\n// src/submodules/sso-oidc/SSOOIDCClient.ts\nvar import_middleware_host_header = require(\"@aws-sdk/middleware-host-header\");\nvar import_middleware_logger = require(\"@aws-sdk/middleware-logger\");\nvar import_middleware_recursion_detection = require(\"@aws-sdk/middleware-recursion-detection\");\nvar import_middleware_user_agent = require(\"@aws-sdk/middleware-user-agent\");\nvar import_config_resolver = require(\"@smithy/config-resolver\");\nvar import_core = require(\"@smithy/core\");\nvar import_middleware_content_length = require(\"@smithy/middleware-content-length\");\nvar import_middleware_endpoint = require(\"@smithy/middleware-endpoint\");\nvar import_middleware_retry = require(\"@smithy/middleware-retry\");\nvar import_smithy_client2 = require(\"@smithy/smithy-client\");\nvar import_httpAuthSchemeProvider = require(\"./auth/httpAuthSchemeProvider\");\n\n// src/submodules/sso-oidc/endpoint/EndpointParameters.ts\nvar resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {\n return Object.assign(options, {\n useDualstackEndpoint: options.useDualstackEndpoint ?? false,\n useFipsEndpoint: options.useFipsEndpoint ?? false,\n defaultSigningName: \"sso-oauth\"\n });\n}, \"resolveClientEndpointParameters\");\nvar commonParams = {\n UseFIPS: { type: \"builtInParams\", name: \"useFipsEndpoint\" },\n Endpoint: { type: \"builtInParams\", name: \"endpoint\" },\n Region: { type: \"builtInParams\", name: \"region\" },\n UseDualStack: { type: \"builtInParams\", name: \"useDualstackEndpoint\" }\n};\n\n// src/submodules/sso-oidc/SSOOIDCClient.ts\nvar import_runtimeConfig = require(\"./runtimeConfig\");\n\n// src/submodules/sso-oidc/runtimeExtensions.ts\nvar import_region_config_resolver = require(\"@aws-sdk/region-config-resolver\");\nvar import_protocol_http = require(\"@smithy/protocol-http\");\nvar import_smithy_client = require(\"@smithy/smithy-client\");\n\n// src/submodules/sso-oidc/auth/httpAuthExtensionConfiguration.ts\nvar getHttpAuthExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {\n const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;\n let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;\n let _credentials = runtimeConfig.credentials;\n return {\n setHttpAuthScheme(httpAuthScheme) {\n const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);\n if (index === -1) {\n _httpAuthSchemes.push(httpAuthScheme);\n } else {\n _httpAuthSchemes.splice(index, 1, httpAuthScheme);\n }\n },\n httpAuthSchemes() {\n return _httpAuthSchemes;\n },\n setHttpAuthSchemeProvider(httpAuthSchemeProvider) {\n _httpAuthSchemeProvider = httpAuthSchemeProvider;\n },\n httpAuthSchemeProvider() {\n return _httpAuthSchemeProvider;\n },\n setCredentials(credentials) {\n _credentials = credentials;\n },\n credentials() {\n return _credentials;\n }\n };\n}, \"getHttpAuthExtensionConfiguration\");\nvar resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {\n return {\n httpAuthSchemes: config.httpAuthSchemes(),\n httpAuthSchemeProvider: config.httpAuthSchemeProvider(),\n credentials: config.credentials()\n };\n}, \"resolveHttpAuthRuntimeConfig\");\n\n// src/submodules/sso-oidc/runtimeExtensions.ts\nvar resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {\n const extensionConfiguration = Object.assign(\n (0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig),\n (0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig),\n (0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig),\n getHttpAuthExtensionConfiguration(runtimeConfig)\n );\n extensions.forEach((extension) => extension.configure(extensionConfiguration));\n return Object.assign(\n runtimeConfig,\n (0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),\n (0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),\n (0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),\n resolveHttpAuthRuntimeConfig(extensionConfiguration)\n );\n}, \"resolveRuntimeExtensions\");\n\n// src/submodules/sso-oidc/SSOOIDCClient.ts\nvar SSOOIDCClient = class extends import_smithy_client2.Client {\n static {\n __name(this, \"SSOOIDCClient\");\n }\n /**\n * The resolved configuration of SSOOIDCClient class. This is resolved and normalized from the {@link SSOOIDCClientConfig | constructor configuration interface}.\n */\n config;\n constructor(...[configuration]) {\n const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});\n super(_config_0);\n this.initConfig = _config_0;\n const _config_1 = resolveClientEndpointParameters(_config_0);\n const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1);\n const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2);\n const _config_4 = (0, import_config_resolver.resolveRegionConfig)(_config_3);\n const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);\n const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);\n const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);\n const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);\n this.config = _config_8;\n this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));\n this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));\n this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));\n this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));\n this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));\n this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));\n this.middlewareStack.use(\n (0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {\n httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultSSOOIDCHttpAuthSchemeParametersProvider,\n identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({\n \"aws.auth#sigv4\": config.credentials\n }), \"identityProviderConfigProvider\")\n })\n );\n this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));\n }\n /**\n * Destroy underlying resources, like sockets. It's usually not necessary to do this.\n * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.\n * Otherwise, sockets might stay open for quite a long time before the server terminates them.\n */\n destroy() {\n super.destroy();\n }\n};\n\n// src/submodules/sso-oidc/SSOOIDC.ts\nvar import_smithy_client7 = require(\"@smithy/smithy-client\");\n\n// src/submodules/sso-oidc/commands/CreateTokenCommand.ts\nvar import_middleware_endpoint2 = require(\"@smithy/middleware-endpoint\");\nvar import_middleware_serde = require(\"@smithy/middleware-serde\");\nvar import_smithy_client6 = require(\"@smithy/smithy-client\");\n\n// src/submodules/sso-oidc/models/models_0.ts\nvar import_smithy_client4 = require(\"@smithy/smithy-client\");\n\n// src/submodules/sso-oidc/models/SSOOIDCServiceException.ts\nvar import_smithy_client3 = require(\"@smithy/smithy-client\");\nvar SSOOIDCServiceException = class _SSOOIDCServiceException extends import_smithy_client3.ServiceException {\n static {\n __name(this, \"SSOOIDCServiceException\");\n }\n /**\n * @internal\n */\n constructor(options) {\n super(options);\n Object.setPrototypeOf(this, _SSOOIDCServiceException.prototype);\n }\n};\n\n// src/submodules/sso-oidc/models/models_0.ts\nvar AccessDeniedException = class _AccessDeniedException extends SSOOIDCServiceException {\n static {\n __name(this, \"AccessDeniedException\");\n }\n name = \"AccessDeniedException\";\n $fault = \"client\";\n /**\n * <p>Single error code. For this exception the value will be <code>access_denied</code>.</p>\n * @public\n */\n error;\n /**\n * <p>Human-readable text providing additional information, used to assist the client developer\n * in understanding the error that occurred.</p>\n * @public\n */\n error_description;\n /**\n * @internal\n */\n constructor(opts) {\n super({\n name: \"AccessDeniedException\",\n $fault: \"client\",\n ...opts\n });\n Object.setPrototypeOf(this, _AccessDeniedException.prototype);\n this.error = opts.error;\n this.error_description = opts.error_description;\n }\n};\nvar AuthorizationPendingException = class _AuthorizationPendingException extends SSOOIDCServiceException {\n static {\n __name(this, \"AuthorizationPendingException\");\n }\n name = \"AuthorizationPendingException\";\n $fault = \"client\";\n /**\n * <p>Single error code. For this exception the value will be\n * <code>authorization_pending</code>.</p>\n * @public\n */\n error;\n /**\n * <p>Human-readable text providing additional information, used to assist the client developer\n * in understanding the error that occurred.</p>\n * @public\n */\n error_description;\n /**\n * @internal\n */\n constructor(opts) {\n super({\n name: \"AuthorizationPendingException\",\n $fault: \"client\",\n ...opts\n });\n Object.setPrototypeOf(this, _AuthorizationPendingException.prototype);\n this.error = opts.error;\n this.error_description = opts.error_description;\n }\n};\nvar CreateTokenRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({\n ...obj,\n ...obj.clientSecret && { clientSecret: import_smithy_client4.SENSITIVE_STRING },\n ...obj.refreshToken && { refreshToken: import_smithy_client4.SENSITIVE_STRING },\n ...obj.codeVerifier && { codeVerifier: import_smithy_client4.SENSITIVE_STRING }\n}), \"CreateTokenRequestFilterSensitiveLog\");\nvar CreateTokenResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({\n ...obj,\n ...obj.accessToken && { accessToken: import_smithy_client4.SENSITIVE_STRING },\n ...obj.refreshToken && { refreshToken: import_smithy_client4.SENSITIVE_STRING },\n ...obj.idToken && { idToken: import_smithy_client4.SENSITIVE_STRING }\n}), \"CreateTokenResponseFilterSensitiveLog\");\nvar ExpiredTokenException = class _ExpiredTokenException extends SSOOIDCServiceException {\n static {\n __name(this, \"ExpiredTokenException\");\n }\n name = \"ExpiredTokenException\";\n $fault = \"client\";\n /**\n * <p>Single error code. For this exception the value will be <code>expired_token</code>.</p>\n * @public\n */\n error;\n /**\n * <p>Human-readable text providing additional information, used to assist the client developer\n * in understanding the error that occurred.</p>\n * @public\n */\n error_description;\n /**\n * @internal\n */\n constructor(opts) {\n super({\n name: \"ExpiredTokenException\",\n $fault: \"client\",\n ...opts\n });\n Object.setPrototypeOf(this, _ExpiredTokenException.prototype);\n this.error = opts.error;\n this.error_description = opts.error_description;\n }\n};\nvar InternalServerException = class _InternalServerException extends SSOOIDCServiceException {\n static {\n __name(this, \"InternalServerException\");\n }\n name = \"InternalServerException\";\n $fault = \"server\";\n /**\n * <p>Single error code. For this exception the value will be <code>server_error</code>.</p>\n * @public\n */\n error;\n /**\n * <p>Human-readable text providing additional information, used to assist the client developer\n * in understanding the error that occurred.</p>\n * @public\n */\n error_description;\n /**\n * @internal\n */\n constructor(opts) {\n super({\n name: \"InternalServerException\",\n $fault: \"server\",\n ...opts\n });\n Object.setPrototypeOf(this, _InternalServerException.prototype);\n this.error = opts.error;\n this.error_description = opts.error_description;\n }\n};\nvar InvalidClientException = class _InvalidClientException extends SSOOIDCServiceException {\n static {\n __name(this, \"InvalidClientException\");\n }\n name = \"InvalidClientException\";\n $fault = \"client\";\n /**\n * <p>Single error code. For this exception the value will be\n * <code>invalid_client</code>.</p>\n * @public\n */\n error;\n /**\n * <p>Human-readable text providing additional information, used to assist the client developer\n * in understanding the error that occurred.</p>\n * @public\n */\n error_description;\n /**\n * @internal\n */\n constructor(opts) {\n super({\n name: \"InvalidClientException\",\n $fault: \"client\",\n ...opts\n });\n Object.setPrototypeOf(this, _InvalidClientException.prototype);\n this.error = opts.error;\n this.error_description = opts.error_description;\n }\n};\nvar InvalidGrantException = class _InvalidGrantException extends SSOOIDCServiceException {\n static {\n __name(this, \"InvalidGrantException\");\n }\n name = \"InvalidGrantException\";\n $fault = \"client\";\n /**\n * <p>Single error code. For this exception the value will be <code>invalid_grant</code>.</p>\n * @public\n */\n error;\n /**\n * <p>Human-readable text providing additional information, used to assist the client developer\n * in understanding the error that occurred.</p>\n * @public\n */\n error_description;\n /**\n * @internal\n */\n constructor(opts) {\n super({\n name: \"InvalidGrantException\",\n $fault: \"client\",\n ...opts\n });\n Object.setPrototypeOf(this, _InvalidGrantException.prototype);\n this.error = opts.error;\n this.error_description = opts.error_description;\n }\n};\nvar InvalidRequestException = class _InvalidRequestException extends SSOOIDCServiceException {\n static {\n __name(this, \"InvalidRequestException\");\n }\n name = \"InvalidRequestException\";\n $fault = \"client\";\n /**\n * <p>Single error code. For this exception the value will be\n * <code>invalid_request</code>.</p>\n * @public\n */\n error;\n /**\n * <p>Human-readable text providing additional information, used to assist the client developer\n * in understanding the error that occurred.</p>\n * @public\n */\n error_description;\n /**\n * @internal\n */\n constructor(opts) {\n super({\n name: \"InvalidRequestException\",\n $fault: \"client\",\n ...opts\n });\n Object.setPrototypeOf(this, _InvalidRequestException.prototype);\n this.error = opts.error;\n this.error_description = opts.error_description;\n }\n};\nvar InvalidScopeException = class _InvalidScopeException extends SSOOIDCServiceException {\n static {\n __name(this, \"InvalidScopeException\");\n }\n name = \"InvalidScopeException\";\n $fault = \"client\";\n /**\n * <p>Single error code. For this exception the value will be <code>invalid_scope</code>.</p>\n * @public\n */\n error;\n /**\n * <p>Human-readable text providing additional information, used to assist the client developer\n * in understanding the error that occurred.</p>\n * @public\n */\n error_description;\n /**\n * @internal\n */\n constructor(opts) {\n super({\n name: \"InvalidScopeException\",\n $fault: \"client\",\n ...opts\n });\n Object.setPrototypeOf(this, _InvalidScopeException.prototype);\n this.error = opts.error;\n this.error_description = opts.error_description;\n }\n};\nvar SlowDownException = class _SlowDownException extends SSOOIDCServiceException {\n static {\n __name(this, \"SlowDownException\");\n }\n name = \"SlowDownException\";\n $fault = \"client\";\n /**\n * <p>Single error code. For this exception the value will be <code>slow_down</code>.</p>\n * @public\n */\n error;\n /**\n * <p>Human-readable text providing additional information, used to assist the client developer\n * in understanding the error that occurred.</p>\n * @public\n */\n error_description;\n /**\n * @internal\n */\n constructor(opts) {\n super({\n name: \"SlowDownException\",\n $fault: \"client\",\n ...opts\n });\n Object.setPrototypeOf(this, _SlowDownException.prototype);\n this.error = opts.error;\n this.error_description = opts.error_description;\n }\n};\nvar UnauthorizedClientException = class _UnauthorizedClientException extends SSOOIDCServiceException {\n static {\n __name(this, \"UnauthorizedClientException\");\n }\n name = \"UnauthorizedClientException\";\n $fault = \"client\";\n /**\n * <p>Single error code. For this exception the value will be\n * <code>unauthorized_client</code>.</p>\n * @public\n */\n error;\n /**\n * <p>Human-readable text providing additional information, used to assist the client developer\n * in understanding the error that occurred.</p>\n * @public\n */\n error_description;\n /**\n * @internal\n */\n constructor(opts) {\n super({\n name: \"UnauthorizedClientException\",\n $fault: \"client\",\n ...opts\n });\n Object.setPrototypeOf(this, _UnauthorizedClientException.prototype);\n this.error = opts.error;\n this.error_description = opts.error_description;\n }\n};\nvar UnsupportedGrantTypeException = class _UnsupportedGrantTypeException extends SSOOIDCServiceException {\n static {\n __name(this, \"UnsupportedGrantTypeException\");\n }\n name = \"UnsupportedGrantTypeException\";\n $fault = \"client\";\n /**\n * <p>Single error code. For this exception the value will be\n * <code>unsupported_grant_type</code>.</p>\n * @public\n */\n error;\n /**\n * <p>Human-readable text providing additional information, used to assist the client developer\n * in understanding the error that occurred.</p>\n * @public\n */\n error_description;\n /**\n * @internal\n */\n constructor(opts) {\n super({\n name: \"UnsupportedGrantTypeException\",\n $fault: \"client\",\n ...opts\n });\n Object.setPrototypeOf(this, _UnsupportedGrantTypeException.prototype);\n this.error = opts.error;\n this.error_description = opts.error_description;\n }\n};\n\n// src/submodules/sso-oidc/protocols/Aws_restJson1.ts\nvar import_core2 = require(\"@aws-sdk/core\");\nvar import_core3 = require(\"@smithy/core\");\nvar import_smithy_client5 = require(\"@smithy/smithy-client\");\nvar se_CreateTokenCommand = /* @__PURE__ */ __name(async (input, context) => {\n const b = (0, import_core3.requestBuilder)(input, context);\n const headers = {\n \"content-type\": \"application/json\"\n };\n b.bp(\"/token\");\n let body;\n body = JSON.stringify(\n (0, import_smithy_client5.take)(input, {\n clientId: [],\n clientSecret: [],\n code: [],\n codeVerifier: [],\n deviceCode: [],\n grantType: [],\n redirectUri: [],\n refreshToken: [],\n scope: /* @__PURE__ */ __name((_) => (0, import_smithy_client5._json)(_), \"scope\")\n })\n );\n b.m(\"POST\").h(headers).b(body);\n return b.build();\n}, \"se_CreateTokenCommand\");\nvar de_CreateTokenCommand = /* @__PURE__ */ __name(async (output, context) => {\n if (output.statusCode !== 200 && output.statusCode >= 300) {\n return de_CommandError(output, context);\n }\n const contents = (0, import_smithy_client5.map)({\n $metadata: deserializeMetadata(output)\n });\n const data = (0, import_smithy_client5.expectNonNull)((0, import_smithy_client5.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), \"body\");\n const doc = (0, import_smithy_client5.take)(data, {\n accessToken: import_smithy_client5.expectString,\n expiresIn: import_smithy_client5.expectInt32,\n idToken: import_smithy_client5.expectString,\n refreshToken: import_smithy_client5.expectString,\n tokenType: import_smithy_client5.expectString\n });\n Object.assign(contents, doc);\n return contents;\n}, \"de_CreateTokenCommand\");\nvar de_CommandError = /* @__PURE__ */ __name(async (output, context) => {\n const parsedOutput = {\n ...output,\n body: await (0, import_core2.parseJsonErrorBody)(output.body, context)\n };\n const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);\n switch (errorCode) {\n case \"AccessDeniedException\":\n case \"com.amazonaws.ssooidc#AccessDeniedException\":\n throw await de_AccessDeniedExceptionRes(parsedOutput, context);\n case \"AuthorizationPendingException\":\n case \"com.amazonaws.ssooidc#AuthorizationPendingException\":\n throw await de_AuthorizationPendingExceptionRes(parsedOutput, context);\n case \"ExpiredTokenException\":\n case \"com.amazonaws.ssooidc#ExpiredTokenException\":\n throw await de_ExpiredTokenExceptionRes(parsedOutput, context);\n case \"InternalServerException\":\n case \"com.amazonaws.ssooidc#InternalServerException\":\n throw await de_InternalServerExceptionRes(parsedOutput, context);\n case \"InvalidClientException\":\n case \"com.amazonaws.ssooidc#InvalidClientException\":\n throw await de_InvalidClientExceptionRes(parsedOutput, context);\n case \"InvalidGrantException\":\n case \"com.amazonaws.ssooidc#InvalidGrantException\":\n throw await de_InvalidGrantExceptionRes(parsedOutput, context);\n case \"InvalidRequestException\":\n case \"com.amazonaws.ssooidc#InvalidRequestException\":\n throw await de_InvalidRequestExceptionRes(parsedOutput, context);\n case \"InvalidScopeException\":\n case \"com.amazonaws.ssooidc#InvalidScopeException\":\n throw await de_InvalidScopeExceptionRes(parsedOutput, context);\n case \"SlowDownException\":\n case \"com.amazonaws.ssooidc#SlowDownException\":\n throw await de_SlowDownExceptionRes(parsedOutput, context);\n case \"UnauthorizedClientException\":\n case \"com.amazonaws.ssooidc#UnauthorizedClientException\":\n throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);\n case \"UnsupportedGrantTypeException\":\n case \"com.amazonaws.ssooidc#UnsupportedGrantTypeException\":\n throw await de_UnsupportedGrantTypeExceptionRes(parsedOutput, context);\n default:\n const parsedBody = parsedOutput.body;\n return throwDefaultError({\n output,\n parsedBody,\n errorCode\n });\n }\n}, \"de_CommandError\");\nvar throwDefaultError = (0, import_smithy_client5.withBaseException)(SSOOIDCServiceException);\nvar de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {\n const contents = (0, import_smithy_client5.map)({});\n const data = parsedOutput.body;\n const doc = (0, import_smithy_client5.take)(data, {\n error: import_smithy_client5.expectString,\n error_description: import_smithy_client5.expectString\n });\n Object.assign(contents, doc);\n const exception = new AccessDeniedException({\n $metadata: deserializeMetadata(parsedOutput),\n ...contents\n });\n return (0, import_smithy_client5.decorateServiceException)(exception, parsedOutput.body);\n}, \"de_AccessDeniedExceptionRes\");\nvar de_AuthorizationPendingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {\n const contents = (0, import_smithy_client5.map)({});\n const data = parsedOutput.body;\n const doc = (0, import_smithy_client5.take)(data, {\n error: import_smithy_client5.expectString,\n error_description: import_smithy_client5.expectString\n });\n Object.assign(contents, doc);\n const exception = new AuthorizationPendingException({\n $metadata: deserializeMetadata(parsedOutput),\n ...contents\n });\n return (0, import_smithy_client5.decorateServiceException)(exception, parsedOutput.body);\n}, \"de_AuthorizationPendingExceptionRes\");\nvar de_ExpiredTokenExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {\n const contents = (0, import_smithy_client5.map)({});\n const data = parsedOutput.body;\n const doc = (0, import_smithy_client5.take)(data, {\n error: import_smithy_client5.expectString,\n error_description: import_smithy_client5.expectString\n });\n Object.assign(contents, doc);\n const exception = new ExpiredTokenException({\n $metadata: deserializeMetadata(parsedOutput),\n ...contents\n });\n return (0, import_smithy_client5.decorateServiceException)(exception, parsedOutput.body);\n}, \"de_ExpiredTokenExceptionRes\");\nvar de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {\n const contents = (0, import_smithy_client5.map)({});\n const data = parsedOutput.body;\n const doc = (0, import_smithy_client5.take)(data, {\n error: import_smithy_client5.expectString,\n error_description: import_smithy_client5.expectString\n });\n Object.assign(contents, doc);\n const exception = new InternalServerException({\n $metadata: deserializeMetadata(parsedOutput),\n ...contents\n });\n return (0, import_smithy_client5.decorateServiceException)(exception, parsedOutput.body);\n}, \"de_InternalServerExceptionRes\");\nvar de_InvalidClientExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {\n const contents = (0, import_smithy_client5.map)({});\n const data = parsedOutput.body;\n const doc = (0, import_smithy_client5.take)(data, {\n error: import_smithy_client5.expectString,\n error_description: import_smithy_client5.expectString\n });\n Object.assign(contents, doc);\n const exception = new InvalidClientException({\n $metadata: deserializeMetadata(parsedOutput),\n ...contents\n });\n return (0, import_smithy_client5.decorateServiceException)(exception, parsedOutput.body);\n}, \"de_InvalidClientExceptionRes\");\nvar de_InvalidGrantExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {\n const contents = (0, import_smithy_client5.map)({});\n const data = parsedOutput.body;\n const doc = (0, import_smithy_client5.take)(data, {\n error: import_smithy_client5.expectString,\n error_description: import_smithy_client5.expectString\n });\n Object.assign(contents, doc);\n const exception = new InvalidGrantException({\n $metadata: deserializeMetadata(parsedOutput),\n ...contents\n });\n return (0, import_smithy_client5.decorateServiceException)(exception, parsedOutput.body);\n}, \"de_InvalidGrantExceptionRes\");\nvar de_InvalidRequestExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {\n const contents = (0, import_smithy_client5.map)({});\n const data = parsedOutput.body;\n const doc = (0, import_smithy_client5.take)(data, {\n error: import_smithy_client5.expectString,\n error_description: import_smithy_client5.expectString\n });\n Object.assign(contents, doc);\n const exception = new InvalidRequestException({\n $metadata: deserializeMetadata(parsedOutput),\n ...contents\n });\n return (0, import_smithy_client5.decorateServiceException)(exception, parsedOutput.body);\n}, \"de_InvalidRequestExceptionRes\");\nvar de_InvalidScopeExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {\n const contents = (0, import_smithy_client5.map)({});\n const data = parsedOutput.body;\n const doc = (0, import_smithy_client5.take)(data, {\n error: import_smithy_client5.expectString,\n error_description: import_smithy_client5.expectString\n });\n Object.assign(contents, doc);\n const exception = new InvalidScopeException({\n $metadata: deserializeMetadata(parsedOutput),\n ...contents\n });\n return (0, import_smithy_client5.decorateServiceException)(exception, parsedOutput.body);\n}, \"de_InvalidScopeExceptionRes\");\nvar de_SlowDownExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {\n const contents = (0, import_smithy_client5.map)({});\n const data = parsedOutput.body;\n const doc = (0, import_smithy_client5.take)(data, {\n error: import_smithy_client5.expectString,\n error_description: import_smithy_client5.expectString\n });\n Object.assign(contents, doc);\n const exception = new SlowDownException({\n $metadata: deserializeMetadata(parsedOutput),\n ...contents\n });\n return (0, import_smithy_client5.decorateServiceException)(exception, parsedOutput.body);\n}, \"de_SlowDownExceptionRes\");\nvar de_UnauthorizedClientExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {\n const contents = (0, import_smithy_client5.map)({});\n const data = parsedOutput.body;\n const doc = (0, import_smithy_client5.take)(data, {\n error: import_smithy_client5.expectString,\n error_description: import_smithy_client5.expectString\n });\n Object.assign(contents, doc);\n const exception = new UnauthorizedClientException({\n $metadata: deserializeMetadata(parsedOutput),\n ...contents\n });\n return (0, import_smithy_client5.decorateServiceException)(exception, parsedOutput.body);\n}, \"de_UnauthorizedClientExceptionRes\");\nvar de_UnsupportedGrantTypeExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {\n const contents = (0, import_smithy_client5.map)({});\n const data = parsedOutput.body;\n const doc = (0, import_smithy_client5.take)(data, {\n error: import_smithy_client5.expectString,\n error_description: import_smithy_client5.expectString\n });\n Object.assign(contents, doc);\n const exception = new UnsupportedGrantTypeException({\n $metadata: deserializeMetadata(parsedOutput),\n ...contents\n });\n return (0, import_smithy_client5.decorateServiceException)(exception, parsedOutput.body);\n}, \"de_UnsupportedGrantTypeExceptionRes\");\nvar deserializeMetadata = /* @__PURE__ */ __name((output) => ({\n httpStatusCode: output.statusCode,\n requestId: output.headers[\"x-amzn-requestid\"] ?? output.headers[\"x-amzn-request-id\"] ?? output.headers[\"x-amz-request-id\"],\n extendedRequestId: output.headers[\"x-amz-id-2\"],\n cfId: output.headers[\"x-amz-cf-id\"]\n}), \"deserializeMetadata\");\n\n// src/submodules/sso-oidc/commands/CreateTokenCommand.ts\nvar CreateTokenCommand = class extends import_smithy_client6.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {\n return [\n (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),\n (0, import_middleware_endpoint2.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())\n ];\n}).s(\"AWSSSOOIDCService\", \"CreateToken\", {}).n(\"SSOOIDCClient\", \"CreateTokenCommand\").f(CreateTokenRequestFilterSensitiveLog, CreateTokenResponseFilterSensitiveLog).ser(se_CreateTokenCommand).de(de_CreateTokenCommand).build() {\n static {\n __name(this, \"CreateTokenCommand\");\n }\n};\n\n// src/submodules/sso-oidc/SSOOIDC.ts\nvar commands = {\n CreateTokenCommand\n};\nvar SSOOIDC = class extends SSOOIDCClient {\n static {\n __name(this, \"SSOOIDC\");\n }\n};\n(0, import_smithy_client7.createAggregatedClient)(commands, SSOOIDC);\n// Annotate the CommonJS export names for ESM import in node:\n0 && (module.exports = {\n $Command,\n AccessDeniedException,\n AuthorizationPendingException,\n CreateTokenCommand,\n CreateTokenRequestFilterSensitiveLog,\n CreateTokenResponseFilterSensitiveLog,\n ExpiredTokenException,\n InternalServerException,\n InvalidClientException,\n InvalidGrantException,\n InvalidRequestException,\n InvalidScopeException,\n SSOOIDC,\n SSOOIDCClient,\n SSOOIDCServiceException,\n SlowDownException,\n UnauthorizedClientException,\n UnsupportedGrantTypeException,\n __Client\n});\n"
11
11
  ],
12
12
  "mappings": ";wiBACA,CAAO,SAAe,JAAS,OAAc,LAAE,AAAO,JAAK,CAAC,EACpD,8BAAsC,uCAA+C,iDAAsD,OACnJ,IAAM,OACA,OACA,GAAiD,MAAO,EAAQ,EAAS,IAAU,CACrF,MAAO,CACH,UAAe,EAAkB,iBAAkB,CAAO,EAAE,UAC5D,OAAS,MAAU,EAAkB,kBAAmB,EAAO,MAAM,EAAE,IAClE,IAAM,CACH,MAAM,IAAI,MAAM,yDAAyD,IAC1E,CACX,GAEI,iDAAiD,GACzD,SAAS,EAAgC,CAAC,EAAgB,CACtD,MAAO,CACH,SAAU,iBACV,kBAAmB,CACf,KAAM,YACN,OAAQ,EAAe,MAC3B,EACA,oBAAqB,CAAC,EAAQ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AAsB,aAC7B,kBAAmB,EAAsB,YAC3C,CAAC,EACD,OAAO,OAAO,EAAU,CAAG,EAC3B,IAAM,EAAY,IAAI,GAA8B,CAClD,UAAW,EAAoB,CAAY,KACxC,CACL,CAAC,EACD,OAAW,EAAsB,yBAA0B,EAAW,EAAa,IAAI,GACtF,qCAAqC,EACpC,EAAsC,EAAO,CAAC,KAAY,CAC5D,eAAgB,EAAO,WACvB,UAAW,EAAO,QAAQ,qBAAuB,EAAO,QAAQ,sBAAwB,EAAO,QAAQ,oBACvG,kBAAmB,EAAO,QAAQ,cAClC,KAAM,EAAO,QAAQ,cACvB,GAAI,qBAAqB,EAGrB,GAAqB,cAAc,GAAsB,QAAQ,aAAa,EAAE,GAAG,EAAY,EAAE,EAAE,QAAQ,CAAC,EAAS,EAAI,EAAQ,EAAG,CACtI,MAAO,CACD,GAAwB,eAAgB,EAAQ,KAAK,UAAW,KAAK,WAAW,EAChF,GAA4B,kBAAmB,EAAQ,EAAQ,iCAAiC,CAAC,CACvG,EACD,EAAE,EAAE,oBAAqB,cAAe,CAAC,CAAC,EAAE,EAAE,gBAAiB,oBAAoB,EAAE,EAAE,GAAsC,EAAqC,EAAE,IAAI,EAAqB,EAAE,GAAG,EAAqB,EAAE,MAAM,CAAE,OACzN,CACL,EAAO,KAAM,oBAAoB,EAErC,EAGI,GAAW,CACb,qBACF,EACI,GAAU,cAAc,EAAc,OACjC,CACL,EAAO,KAAM,SAAS,EAE1B,EACI,GAAsB,uBAAwB,GAAU,EAAO",
13
- "debugId": "21F3F7FFDD3D50C564756E2164756E21",
13
+ "debugId": "2C86105018A21B6E64756E2164756E21",
14
14
  "names": []
15
15
  }
@@ -1,4 +1,4 @@
1
1
  var E="GEMI_REQUEST_BREAKER_ERROR";class a extends Error{kind="GEMI_REQUEST_BREAKER_ERROR";payload={api:{},view:{}}}function c(r,e){return r.replace(/:([^/]+)/g,(i,t)=>{let n=t.endsWith("?"),s=n?t.slice(0,-1):t,o=e[s];if(o===void 0){if(n)return"";throw new Error(`Missing parameter: ${s}`)}return String(o)}).replace(/\/\//g,"/")}class R extends a{constructor(r,e=307){super("Redirect error");this.name="RedirectError",this.payload={api:{status:200,data:{},directive:{kind:"Redirect",path:r}},view:{status:e,headers:{"Cache-Control":"private, no-cache, no-store, max-age=0, must-revalidate",Location:r}}}}}class p{static to(r,...e){let[i={}]=e,{search:t={},params:n={},permanent:s,status:o}={params:{},status:307,permanent:!1,...i},d=new URLSearchParams(t).toString();throw new R([c(r,n),d.toString()].filter(Boolean).join("?"),o??(s?301:307))}}
2
- export{E as oc,a as pc,c as qc,p as rc};
2
+ export{E as nc,a as oc,c as pc,p as qc};
3
3
 
4
- //# debugId=07E952A838E4404E64756E2164756E21
4
+ //# debugId=3898577AF88D1BB064756E2164756E21
@@ -7,6 +7,6 @@
7
7
  "import type { UrlParser, ViewPaths } from \"../client/types\";\nimport { RequestBreakerError } from \"../http/Error\";\nimport { applyParams } from \"../utils/applyParams\";\n\nclass RedirectError extends RequestBreakerError {\n constructor(path: string, status = 307) {\n super(\"Redirect error\");\n this.name = \"RedirectError\";\n this.payload = {\n api: {\n status: 200,\n data: {},\n directive: { kind: \"Redirect\", path },\n },\n view: {\n status,\n headers: {\n \"Cache-Control\":\n \"private, no-cache, no-store, max-age=0, must-revalidate\",\n Location: path,\n },\n },\n };\n }\n}\n\ntype Options<T extends ViewPaths> =\n UrlParser<T> extends Record<string, never>\n ? {\n search?: Record<string, string | number | boolean | undefined | null>;\n status?: number;\n permanent?: boolean;\n }\n : {\n search?: Record<string, string | number | boolean | undefined | null>;\n params: UrlParser<T>;\n status?: number;\n permanent?: boolean;\n };\n\nexport class Redirect {\n static to<T extends ViewPaths>(\n path: T,\n ...args: UrlParser<T> extends Record<string, never>\n ? [options?: Options<T>]\n : [options: Options<T>]\n ) {\n const [options = {}] = args;\n const {\n search = {},\n params = {},\n permanent,\n status,\n } = {\n params: {},\n status: 307,\n permanent: false,\n ...options,\n };\n const searchParams = new URLSearchParams(search).toString();\n throw new RedirectError(\n [applyParams(path, params), searchParams.toString()]\n .filter(Boolean)\n .join(\"?\"),\n status ?? (permanent ? 301 : 307),\n );\n }\n}\n"
8
8
  ],
9
9
  "mappings": "AAAO,IAAM,EAA6B,6BAEnC,MAAM,UAA4B,KAAM,CACtC,KAHiC,6BAIjC,QAGH,CAAE,IAAK,CAAC,EAAG,KAAM,CAAC,CAAE,CAC1B,CCRO,SAAS,CAA6B,CAC3C,EACA,EACQ,CACR,OAAO,EACJ,QAAQ,YAAa,CAAC,EAAG,IAAQ,CAChC,IAAM,EAAa,EAAI,SAAS,GAAG,EAC7B,EAAY,EAAa,EAAI,MAAM,EAAG,EAAE,EAAI,EAC5C,EAAQ,EAAO,GAErB,GAAI,IAAU,OAAW,CACvB,GAAI,EACF,MAAO,GAET,MAAM,IAAI,MAAM,sBAAsB,GAAW,EAGnD,OAAO,OAAO,CAAK,EACpB,EACA,QAAQ,QAAS,GAAG,ECfzB,MAAM,UAAsB,CAAoB,CAC9C,WAAW,CAAC,EAAc,EAAS,IAAK,CACtC,MAAM,gBAAgB,EACtB,KAAK,KAAO,gBACZ,KAAK,QAAU,CACb,IAAK,CACH,OAAQ,IACR,KAAM,CAAC,EACP,UAAW,CAAE,KAAM,WAAY,MAAK,CACtC,EACA,KAAM,CACJ,SACA,QAAS,CACP,gBACE,0DACF,SAAU,CACZ,CACF,CACF,EAEJ,CAgBO,MAAM,CAAS,OACb,GAAuB,CAC5B,KACG,EAGH,CACA,IAAO,EAAU,CAAC,GAAK,GAErB,SAAS,CAAC,EACV,SAAS,CAAC,EACV,YACA,UACE,CACF,OAAQ,CAAC,EACT,OAAQ,IACR,UAAW,MACR,CACL,EACM,EAAe,IAAI,gBAAgB,CAAM,EAAE,SAAS,EAC1D,MAAM,IAAI,EACR,CAAC,EAAY,EAAM,CAAM,EAAG,EAAa,SAAS,CAAC,EAChD,OAAO,OAAO,EACd,KAAK,GAAG,EACX,IAAW,EAAY,IAAM,IAC/B,EAEJ",
10
- "debugId": "07E952A838E4404E64756E2164756E21",
10
+ "debugId": "3898577AF88D1BB064756E2164756E21",
11
11
  "names": []
12
12
  }