@shumai-one/shumai-transcode 0.4.6 → 0.4.7

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.
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{i,s,e,r,a,o,n,g,c,t,B,l,d}from"./shumai-transcode-app.js";var{awsEndpointFunctions:De,emitWarningIfUnsupportedVersion:ke,createDefaultUserAgentProvider:$e,NODE_APP_ID_CONFIG_OPTIONS:we,getAwsRegionExtensionConfiguration:Ne,resolveAwsRegionExtensionConfiguration:be,resolveUserAgentConfig:Ue,resolveHostHeaderConfig:Fe,getUserAgentPlugin:qe,getHostHeaderPlugin:He,getLoggerPlugin:Me,getRecursionDetectionPlugin:Ge}=t(),{NoAuthSigner:je,getHttpAuthSchemeEndpointRuleSetPlugin:Ke,DefaultIdentityProviderConfig:Ve,getHttpSigningPlugin:ze}=c(),{normalizeProvider:te,getSmithyContext:Le,ServiceException:Be,NoOpLogger:We,emitWarningIfUnsupportedVersion:Ye,loadConfigsForDefaultMode:Je,getDefaultExtensionConfiguration:Xe,resolveDefaultRuntimeConfig:Qe,Client:re,makeBuilder:Ze,createAggregatedClient:et}=s(),{Command:tt}=s();var Vr=tt,zr=re;var{resolveDefaultsModeConfig:rt,loadConfig:A,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:ot,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:nt,NODE_REGION_CONFIG_OPTIONS:st,NODE_REGION_CONFIG_FILE_OPTIONS:it,resolveRegionConfig:ct}=e(),{BinaryDecisionDiagram:at,EndpointCache:pt,decideEndpoint:dt,customEndpointFunctions:ut,resolveEndpointConfig:lt,getEndpointPlugin:ht}=r(),{parseUrl:_t,getHttpHandlerExtensionConfiguration:gt,resolveHttpHandlerRuntimeConfig:Et,getContentLengthPlugin:mt}=n(),{DEFAULT_RETRY_MODE:xt,NODE_RETRY_MODE_CONFIG_OPTIONS:ft,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:St,resolveRetryConfig:vt,getRetryPlugin:Pt}=g(),{TypeRegistry:oe,getSchemaSerdePlugin:It}=i(),{resolveAwsSdkSigV4Config:Ct,AwsSdkSigV4Signer:At,NODE_AUTH_SCHEME_PREFERENCE_OPTIONS:yt}=l(),{toUtf8:Tt,fromUtf8:Ot,toBase64:Rt,fromBase64:Dt,calculateBodyLength:kt}=a(),{streamCollector:$t,NodeHttpHandler:wt}=d(),{AwsRestJsonProtocol:Nt}=B(),{Sha256:bt}=o(),Ut=async(p,u,E)=>({operation:Le(u).operation,region:await te(p.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function Ft(p){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sso-oauth",region:p.region},propertiesExtractor:(u,E)=>({signingProperties:{config:u,context:E}})}}function qt(p){return{schemeId:"smithy.api#noAuth"}}var Ht=(p)=>{let u=[];switch(p.operation){case"CreateToken":{u.push(qt());break}default:u.push(Ft(p))}return u},Mt=(p)=>{let u=Ct(p);return Object.assign(u,{authSchemePreference:te(p.authSchemePreference??[])})},Gt=(p)=>Object.assign(p,{useDualstackEndpoint:p.useDualstackEndpoint??!1,useFipsEndpoint:p.useFipsEndpoint??!1,defaultSigningName:"sso-oauth"}),jt={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},Kt="3.997.43",Vt={version:Kt},O="ref",y=-1,D=!0,X="isSet",ne="PartitionResult",k="booleanEquals",z="getAttr",Q={[O]:"Endpoint"},L={[O]:ne},T={},Z=[{[O]:"Region"}],ee={conditions:[[X,[Q]],[X,Z],["aws.partition",Z,ne],[k,[{[O]:"UseFIPS"},D]],[k,[{[O]:"UseDualStack"},D]],[k,[{fn:z,argv:[L,"supportsDualStack"]},D]],[k,[{fn:z,argv:[L,"supportsFIPS"]},D]],["stringEquals",[{fn:z,argv:[L,"name"]},"aws-us-gov"]]],results:[[y],[y,"Invalid Configuration: FIPS and custom endpoint are not supported"],[y,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[Q,T],["https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",T],[y,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://oidc.{Region}.amazonaws.com",T],["https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}",T],[y,"FIPS is enabled but this partition does not support FIPS"],["https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}",T],[y,"DualStack is enabled but this partition does not support DualStack"],["https://oidc.{Region}.{PartitionResult#dnsSuffix}",T],[y,"Invalid Configuration: Missing Region"]]},zt=2,f=1e8,Lt=new Int32Array([-1,1,-1,0,13,3,1,4,f+12,2,5,f+12,3,8,6,4,7,f+11,5,f+9,f+10,4,11,9,6,10,f+8,7,f+6,f+7,5,12,f+5,6,f+4,f+5,3,f+1,14,4,f+2,f+3]),Bt=at.from(Lt,zt,ee.conditions,ee.results),Wt=new pt({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),Yt=(p,u={})=>Wt.get(p,()=>dt(Bt,{endpointParams:p,logger:u.logger}));ut.aws=De;class x extends Be{constructor(p){super(p);Object.setPrototypeOf(this,x.prototype)}}class w extends x{name="AccessDeniedException";$fault="client";error;reason;error_description;constructor(p){super({name:"AccessDeniedException",$fault:"client",...p});Object.setPrototypeOf(this,w.prototype),this.error=p.error,this.reason=p.reason,this.error_description=p.error_description}}class N extends x{name="AuthorizationPendingException";$fault="client";error;error_description;constructor(p){super({name:"AuthorizationPendingException",$fault:"client",...p});Object.setPrototypeOf(this,N.prototype),this.error=p.error,this.error_description=p.error_description}}class b extends x{name="ExpiredTokenException";$fault="client";error;error_description;constructor(p){super({name:"ExpiredTokenException",$fault:"client",...p});Object.setPrototypeOf(this,b.prototype),this.error=p.error,this.error_description=p.error_description}}class U extends x{name="InternalServerException";$fault="server";error;error_description;constructor(p){super({name:"InternalServerException",$fault:"server",...p});Object.setPrototypeOf(this,U.prototype),this.error=p.error,this.error_description=p.error_description}}class F extends x{name="InvalidClientException";$fault="client";error;error_description;constructor(p){super({name:"InvalidClientException",$fault:"client",...p});Object.setPrototypeOf(this,F.prototype),this.error=p.error,this.error_description=p.error_description}}class q extends x{name="InvalidGrantException";$fault="client";error;error_description;constructor(p){super({name:"InvalidGrantException",$fault:"client",...p});Object.setPrototypeOf(this,q.prototype),this.error=p.error,this.error_description=p.error_description}}class H extends x{name="InvalidRequestException";$fault="client";error;reason;error_description;constructor(p){super({name:"InvalidRequestException",$fault:"client",...p});Object.setPrototypeOf(this,H.prototype),this.error=p.error,this.reason=p.reason,this.error_description=p.error_description}}class M extends x{name="InvalidScopeException";$fault="client";error;error_description;constructor(p){super({name:"InvalidScopeException",$fault:"client",...p});Object.setPrototypeOf(this,M.prototype),this.error=p.error,this.error_description=p.error_description}}class G extends x{name="SlowDownException";$fault="client";error;error_description;constructor(p){super({name:"SlowDownException",$fault:"client",...p});Object.setPrototypeOf(this,G.prototype),this.error=p.error,this.error_description=p.error_description}}class j extends x{name="UnauthorizedClientException";$fault="client";error;error_description;constructor(p){super({name:"UnauthorizedClientException",$fault:"client",...p});Object.setPrototypeOf(this,j.prototype),this.error=p.error,this.error_description=p.error_description}}class K extends x{name="UnsupportedGrantTypeException";$fault="client";error;error_description;constructor(p){super({name:"UnsupportedGrantTypeException",$fault:"client",...p});Object.setPrototypeOf(this,K.prototype),this.error=p.error,this.error_description=p.error_description}}var Jt="AccessDeniedException",Xt="AuthorizationPendingException",Qt="AccessToken",Zt="ClientSecret",er="CreateToken",tr="CreateTokenRequest",rr="CreateTokenResponse",or="CodeVerifier",nr="ExpiredTokenException",sr="InvalidClientException",ir="InvalidGrantException",cr="InvalidRequestException",ar="InternalServerException",pr="InvalidScopeException",dr="IdToken",ur="RefreshToken",lr="SlowDownException",hr="UnauthorizedClientException",_r="UnsupportedGrantTypeException",gr="accessToken",C="client",Er="clientId",mr="clientSecret",xr="codeVerifier",fr="code",Sr="deviceCode",h="error",vr="expiresIn",P="error_description",Pr="grantType",Ir="http",I="httpError",Cr="idToken",se="reason",ie="refreshToken",Ar="redirectUri",ce="smithy.ts.sdk.synthetic.com.amazonaws.ssooidc",yr="scope",Tr="server",Or="tokenType",_="com.amazonaws.ssooidc",ae=oe.for(ce),pe=[-3,ce,"SSOOIDCServiceException",0,[],[]];ae.registerError(pe,x);var S=oe.for(_),de=[-3,_,Jt,{[h]:C,[I]:400},[h,se,P],[0,0,0]];S.registerError(de,w);var ue=[-3,_,Xt,{[h]:C,[I]:400},[h,P],[0,0]];S.registerError(ue,N);var le=[-3,_,nr,{[h]:C,[I]:400},[h,P],[0,0]];S.registerError(le,b);var he=[-3,_,ar,{[h]:Tr,[I]:500},[h,P],[0,0]];S.registerError(he,U);var _e=[-3,_,sr,{[h]:C,[I]:401},[h,P],[0,0]];S.registerError(_e,F);var ge=[-3,_,ir,{[h]:C,[I]:400},[h,P],[0,0]];S.registerError(ge,q);var Ee=[-3,_,cr,{[h]:C,[I]:400},[h,se,P],[0,0,0]];S.registerError(Ee,H);var me=[-3,_,pr,{[h]:C,[I]:400},[h,P],[0,0]];S.registerError(me,M);var xe=[-3,_,lr,{[h]:C,[I]:400},[h,P],[0,0]];S.registerError(xe,G);var fe=[-3,_,hr,{[h]:C,[I]:400},[h,P],[0,0]];S.registerError(fe,j);var Se=[-3,_,_r,{[h]:C,[I]:400},[h,P],[0,0]];S.registerError(Se,K);var ve=[ae,S],Rr=[0,_,Qt,8,0],Dr=[0,_,Zt,8,0],kr=[0,_,or,8,0],$r=[0,_,dr,8,0],Pe=[0,_,ur,8,0],Ie=[3,_,tr,0,[Er,mr,Pr,Sr,fr,ie,yr,Ar,xr],[0,[()=>Dr,0],0,0,0,[()=>Pe,0],64,0,[()=>kr,0]],3],Ce=[3,_,rr,0,[gr,Or,vr,ie,Cr],[[()=>Rr,0],0,1,[()=>Pe,0],[()=>$r,0]]],Ae=[9,_,er,{[Ir]:["POST","/token",200]},()=>Ie,()=>Ce],wr=(p)=>({apiVersion:"2019-06-10",base64Decoder:p?.base64Decoder??Dt,base64Encoder:p?.base64Encoder??Rt,disableHostPrefix:p?.disableHostPrefix??!1,endpointProvider:p?.endpointProvider??Yt,extensions:p?.extensions??[],httpAuthSchemeProvider:p?.httpAuthSchemeProvider??Ht,httpAuthSchemes:p?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(u)=>u.getIdentityProvider("aws.auth#sigv4"),signer:new At},{schemeId:"smithy.api#noAuth",identityProvider:(u)=>u.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new je}],logger:p?.logger??new We,protocol:p?.protocol??Nt,protocolSettings:p?.protocolSettings??{defaultNamespace:"com.amazonaws.ssooidc",errorTypeRegistries:ve,version:"2019-06-10",serviceTarget:"AWSSSOOIDCService"},serviceId:p?.serviceId??"SSO OIDC",sha256:p?.sha256??bt,urlParser:p?.urlParser??_t,utf8Decoder:p?.utf8Decoder??Ot,utf8Encoder:p?.utf8Encoder??Tt}),Nr=(p)=>{Ye(process.version);let u=rt(p),E=()=>u().then(Je),v=wr(p);ke(process.version);let m={profile:p?.profile,logger:v.logger};return{...v,...p,runtime:"node",defaultsMode:u,authSchemePreference:p?.authSchemePreference??A(yt,m),bodyLengthChecker:p?.bodyLengthChecker??kt,defaultUserAgentProvider:p?.defaultUserAgentProvider??$e({serviceId:v.serviceId,clientVersion:Vt.version}),maxAttempts:p?.maxAttempts??A(St,p),region:p?.region??A(st,{...it,...m}),requestHandler:wt.create(p?.requestHandler??E),retryMode:p?.retryMode??A({...ft,default:async()=>(await E()).retryMode||xt},p),streamCollector:p?.streamCollector??$t,useDualstackEndpoint:p?.useDualstackEndpoint??A(nt,m),useFipsEndpoint:p?.useFipsEndpoint??A(ot,m),userAgentAppId:p?.userAgentAppId??A(we,m)}},br=(p)=>{let{httpAuthSchemes:u,httpAuthSchemeProvider:E,credentials:v}=p;return{setHttpAuthScheme(m){let R=u.findIndex((V)=>V.schemeId===m.schemeId);if(R===-1)u.push(m);else u.splice(R,1,m)},httpAuthSchemes(){return u},setHttpAuthSchemeProvider(m){E=m},httpAuthSchemeProvider(){return E},setCredentials(m){v=m},credentials(){return v}}},Ur=(p)=>({httpAuthSchemes:p.httpAuthSchemes(),httpAuthSchemeProvider:p.httpAuthSchemeProvider(),credentials:p.credentials()}),Fr=(p,u)=>{let E=Object.assign(Ne(p),Xe(p),gt(p),br(p));return u.forEach((v)=>v.configure(E)),Object.assign(p,be(E),Qe(E),Et(E),Ur(E))};class W extends re{config;constructor(...[p]){let u=Nr(p||{});super(u);this.initConfig=u;let E=Gt(u),v=Ue(E),m=vt(v),R=ct(m),V=Fe(R),ye=lt(V),Te=Mt(ye),Oe=Fr(Te,p?.extensions||[]);this.config=Oe,this.middlewareStack.use(It(this.config)),this.middlewareStack.use(qe(this.config)),this.middlewareStack.use(Pt(this.config)),this.middlewareStack.use(mt(this.config)),this.middlewareStack.use(He(this.config)),this.middlewareStack.use(Me(this.config)),this.middlewareStack.use(Ge(this.config)),this.middlewareStack.use(Ke(this.config,{httpAuthSchemeParametersProvider:Ut,identityProviderConfigProvider:async(Re)=>new Ve({"aws.auth#sigv4":Re.credentials})})),this.middlewareStack.use(ze(this.config))}destroy(){super.destroy()}}var qr=Ze(jt,"AWSSSOOIDCService","SSOOIDCClient",ht),Hr={},Mr=(p,u,E,v)=>[];class Y extends qr(Hr,Mr,"CreateToken",Ae){}var Gr={CreateTokenCommand:Y};class J extends W{}et(Gr,J);var jr={KMS_ACCESS_DENIED:"KMS_AccessDeniedException"},Kr={KMS_DISABLED_KEY:"KMS_DisabledException",KMS_INVALID_KEY_USAGE:"KMS_InvalidKeyUsageException",KMS_INVALID_STATE:"KMS_InvalidStateException",KMS_KEY_NOT_FOUND:"KMS_NotFoundException"};var Lr=w,Br=de,Wr=jr,Yr=N,Jr=ue,Xr=Ae,Qr=Y,Zr=Ie,eo=Ce,to=b,ro=le,oo=U,no=he,so=F,io=_e,co=q,ao=ge,po=H,uo=Ee,lo=Kr,ho=M,_o=me,go=J,Eo=W,mo=x,xo=pe,fo=G,So=xe,vo=j,Po=fe,Io=K,Co=Se,Ao=ve;export{Vr as $Command,zr as __Client,Lr as AccessDeniedException,Br as AccessDeniedException$,Wr as AccessDeniedExceptionReason,Yr as AuthorizationPendingException,Jr as AuthorizationPendingException$,Xr as CreateToken$,Qr as CreateTokenCommand,Zr as CreateTokenRequest$,eo as CreateTokenResponse$,to as ExpiredTokenException,ro as ExpiredTokenException$,oo as InternalServerException,no as InternalServerException$,so as InvalidClientException,io as InvalidClientException$,co as InvalidGrantException,ao as InvalidGrantException$,po as InvalidRequestException,uo as InvalidRequestException$,lo as InvalidRequestExceptionReason,ho as InvalidScopeException,_o as InvalidScopeException$,go as SSOOIDC,Eo as SSOOIDCClient,mo as SSOOIDCServiceException,xo as SSOOIDCServiceException$,fo as SlowDownException,So as SlowDownException$,vo as UnauthorizedClientException,Po as UnauthorizedClientException$,Io as UnsupportedGrantTypeException,Co as UnsupportedGrantTypeException$,Ao as errorTypeRegistries};
2
+ import{o,s,e,r,a,i,n,l,c,t,B,g,d}from"./shumai-transcode-app.js";var{awsEndpointFunctions:De,emitWarningIfUnsupportedVersion:ke,createDefaultUserAgentProvider:$e,NODE_APP_ID_CONFIG_OPTIONS:we,getAwsRegionExtensionConfiguration:Ne,resolveAwsRegionExtensionConfiguration:be,resolveUserAgentConfig:Ue,resolveHostHeaderConfig:Fe,getUserAgentPlugin:qe,getHostHeaderPlugin:He,getLoggerPlugin:Me,getRecursionDetectionPlugin:Ge}=t(),{NoAuthSigner:je,getHttpAuthSchemeEndpointRuleSetPlugin:Ke,DefaultIdentityProviderConfig:Ve,getHttpSigningPlugin:ze}=c(),{normalizeProvider:te,getSmithyContext:Le,ServiceException:Be,NoOpLogger:We,emitWarningIfUnsupportedVersion:Ye,loadConfigsForDefaultMode:Je,getDefaultExtensionConfiguration:Xe,resolveDefaultRuntimeConfig:Qe,Client:re,makeBuilder:Ze,createAggregatedClient:et}=s(),{Command:tt}=s();var Vr=tt,zr=re;var{resolveDefaultsModeConfig:rt,loadConfig:A,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:ot,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:nt,NODE_REGION_CONFIG_OPTIONS:st,NODE_REGION_CONFIG_FILE_OPTIONS:it,resolveRegionConfig:ct}=e(),{BinaryDecisionDiagram:at,EndpointCache:pt,decideEndpoint:dt,customEndpointFunctions:ut,resolveEndpointConfig:lt,getEndpointPlugin:ht}=r(),{parseUrl:_t,getHttpHandlerExtensionConfiguration:gt,resolveHttpHandlerRuntimeConfig:Et,getContentLengthPlugin:mt}=n(),{DEFAULT_RETRY_MODE:xt,NODE_RETRY_MODE_CONFIG_OPTIONS:ft,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:St,resolveRetryConfig:vt,getRetryPlugin:Pt}=l(),{TypeRegistry:oe,getSchemaSerdePlugin:It}=o(),{resolveAwsSdkSigV4Config:Ct,AwsSdkSigV4Signer:At,NODE_AUTH_SCHEME_PREFERENCE_OPTIONS:yt}=g(),{toUtf8:Tt,fromUtf8:Ot,toBase64:Rt,fromBase64:Dt,calculateBodyLength:kt}=a(),{streamCollector:$t,NodeHttpHandler:wt}=d(),{AwsRestJsonProtocol:Nt}=B(),{Sha256:bt}=i(),Ut=async(p,u,E)=>({operation:Le(u).operation,region:await te(p.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function Ft(p){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sso-oauth",region:p.region},propertiesExtractor:(u,E)=>({signingProperties:{config:u,context:E}})}}function qt(p){return{schemeId:"smithy.api#noAuth"}}var Ht=(p)=>{let u=[];switch(p.operation){case"CreateToken":{u.push(qt());break}default:u.push(Ft(p))}return u},Mt=(p)=>{let u=Ct(p);return Object.assign(u,{authSchemePreference:te(p.authSchemePreference??[])})},Gt=(p)=>Object.assign(p,{useDualstackEndpoint:p.useDualstackEndpoint??!1,useFipsEndpoint:p.useFipsEndpoint??!1,defaultSigningName:"sso-oauth"}),jt={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},Kt="3.997.43",Vt={version:Kt},O="ref",y=-1,D=!0,X="isSet",ne="PartitionResult",k="booleanEquals",z="getAttr",Q={[O]:"Endpoint"},L={[O]:ne},T={},Z=[{[O]:"Region"}],ee={conditions:[[X,[Q]],[X,Z],["aws.partition",Z,ne],[k,[{[O]:"UseFIPS"},D]],[k,[{[O]:"UseDualStack"},D]],[k,[{fn:z,argv:[L,"supportsDualStack"]},D]],[k,[{fn:z,argv:[L,"supportsFIPS"]},D]],["stringEquals",[{fn:z,argv:[L,"name"]},"aws-us-gov"]]],results:[[y],[y,"Invalid Configuration: FIPS and custom endpoint are not supported"],[y,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[Q,T],["https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",T],[y,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://oidc.{Region}.amazonaws.com",T],["https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}",T],[y,"FIPS is enabled but this partition does not support FIPS"],["https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}",T],[y,"DualStack is enabled but this partition does not support DualStack"],["https://oidc.{Region}.{PartitionResult#dnsSuffix}",T],[y,"Invalid Configuration: Missing Region"]]},zt=2,f=1e8,Lt=new Int32Array([-1,1,-1,0,13,3,1,4,f+12,2,5,f+12,3,8,6,4,7,f+11,5,f+9,f+10,4,11,9,6,10,f+8,7,f+6,f+7,5,12,f+5,6,f+4,f+5,3,f+1,14,4,f+2,f+3]),Bt=at.from(Lt,zt,ee.conditions,ee.results),Wt=new pt({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),Yt=(p,u={})=>Wt.get(p,()=>dt(Bt,{endpointParams:p,logger:u.logger}));ut.aws=De;class x extends Be{constructor(p){super(p);Object.setPrototypeOf(this,x.prototype)}}class w extends x{name="AccessDeniedException";$fault="client";error;reason;error_description;constructor(p){super({name:"AccessDeniedException",$fault:"client",...p});Object.setPrototypeOf(this,w.prototype),this.error=p.error,this.reason=p.reason,this.error_description=p.error_description}}class N extends x{name="AuthorizationPendingException";$fault="client";error;error_description;constructor(p){super({name:"AuthorizationPendingException",$fault:"client",...p});Object.setPrototypeOf(this,N.prototype),this.error=p.error,this.error_description=p.error_description}}class b extends x{name="ExpiredTokenException";$fault="client";error;error_description;constructor(p){super({name:"ExpiredTokenException",$fault:"client",...p});Object.setPrototypeOf(this,b.prototype),this.error=p.error,this.error_description=p.error_description}}class U extends x{name="InternalServerException";$fault="server";error;error_description;constructor(p){super({name:"InternalServerException",$fault:"server",...p});Object.setPrototypeOf(this,U.prototype),this.error=p.error,this.error_description=p.error_description}}class F extends x{name="InvalidClientException";$fault="client";error;error_description;constructor(p){super({name:"InvalidClientException",$fault:"client",...p});Object.setPrototypeOf(this,F.prototype),this.error=p.error,this.error_description=p.error_description}}class q extends x{name="InvalidGrantException";$fault="client";error;error_description;constructor(p){super({name:"InvalidGrantException",$fault:"client",...p});Object.setPrototypeOf(this,q.prototype),this.error=p.error,this.error_description=p.error_description}}class H extends x{name="InvalidRequestException";$fault="client";error;reason;error_description;constructor(p){super({name:"InvalidRequestException",$fault:"client",...p});Object.setPrototypeOf(this,H.prototype),this.error=p.error,this.reason=p.reason,this.error_description=p.error_description}}class M extends x{name="InvalidScopeException";$fault="client";error;error_description;constructor(p){super({name:"InvalidScopeException",$fault:"client",...p});Object.setPrototypeOf(this,M.prototype),this.error=p.error,this.error_description=p.error_description}}class G extends x{name="SlowDownException";$fault="client";error;error_description;constructor(p){super({name:"SlowDownException",$fault:"client",...p});Object.setPrototypeOf(this,G.prototype),this.error=p.error,this.error_description=p.error_description}}class j extends x{name="UnauthorizedClientException";$fault="client";error;error_description;constructor(p){super({name:"UnauthorizedClientException",$fault:"client",...p});Object.setPrototypeOf(this,j.prototype),this.error=p.error,this.error_description=p.error_description}}class K extends x{name="UnsupportedGrantTypeException";$fault="client";error;error_description;constructor(p){super({name:"UnsupportedGrantTypeException",$fault:"client",...p});Object.setPrototypeOf(this,K.prototype),this.error=p.error,this.error_description=p.error_description}}var Jt="AccessDeniedException",Xt="AuthorizationPendingException",Qt="AccessToken",Zt="ClientSecret",er="CreateToken",tr="CreateTokenRequest",rr="CreateTokenResponse",or="CodeVerifier",nr="ExpiredTokenException",sr="InvalidClientException",ir="InvalidGrantException",cr="InvalidRequestException",ar="InternalServerException",pr="InvalidScopeException",dr="IdToken",ur="RefreshToken",lr="SlowDownException",hr="UnauthorizedClientException",_r="UnsupportedGrantTypeException",gr="accessToken",C="client",Er="clientId",mr="clientSecret",xr="codeVerifier",fr="code",Sr="deviceCode",h="error",vr="expiresIn",P="error_description",Pr="grantType",Ir="http",I="httpError",Cr="idToken",se="reason",ie="refreshToken",Ar="redirectUri",ce="smithy.ts.sdk.synthetic.com.amazonaws.ssooidc",yr="scope",Tr="server",Or="tokenType",_="com.amazonaws.ssooidc",ae=oe.for(ce),pe=[-3,ce,"SSOOIDCServiceException",0,[],[]];ae.registerError(pe,x);var S=oe.for(_),de=[-3,_,Jt,{[h]:C,[I]:400},[h,se,P],[0,0,0]];S.registerError(de,w);var ue=[-3,_,Xt,{[h]:C,[I]:400},[h,P],[0,0]];S.registerError(ue,N);var le=[-3,_,nr,{[h]:C,[I]:400},[h,P],[0,0]];S.registerError(le,b);var he=[-3,_,ar,{[h]:Tr,[I]:500},[h,P],[0,0]];S.registerError(he,U);var _e=[-3,_,sr,{[h]:C,[I]:401},[h,P],[0,0]];S.registerError(_e,F);var ge=[-3,_,ir,{[h]:C,[I]:400},[h,P],[0,0]];S.registerError(ge,q);var Ee=[-3,_,cr,{[h]:C,[I]:400},[h,se,P],[0,0,0]];S.registerError(Ee,H);var me=[-3,_,pr,{[h]:C,[I]:400},[h,P],[0,0]];S.registerError(me,M);var xe=[-3,_,lr,{[h]:C,[I]:400},[h,P],[0,0]];S.registerError(xe,G);var fe=[-3,_,hr,{[h]:C,[I]:400},[h,P],[0,0]];S.registerError(fe,j);var Se=[-3,_,_r,{[h]:C,[I]:400},[h,P],[0,0]];S.registerError(Se,K);var ve=[ae,S],Rr=[0,_,Qt,8,0],Dr=[0,_,Zt,8,0],kr=[0,_,or,8,0],$r=[0,_,dr,8,0],Pe=[0,_,ur,8,0],Ie=[3,_,tr,0,[Er,mr,Pr,Sr,fr,ie,yr,Ar,xr],[0,[()=>Dr,0],0,0,0,[()=>Pe,0],64,0,[()=>kr,0]],3],Ce=[3,_,rr,0,[gr,Or,vr,ie,Cr],[[()=>Rr,0],0,1,[()=>Pe,0],[()=>$r,0]]],Ae=[9,_,er,{[Ir]:["POST","/token",200]},()=>Ie,()=>Ce],wr=(p)=>({apiVersion:"2019-06-10",base64Decoder:p?.base64Decoder??Dt,base64Encoder:p?.base64Encoder??Rt,disableHostPrefix:p?.disableHostPrefix??!1,endpointProvider:p?.endpointProvider??Yt,extensions:p?.extensions??[],httpAuthSchemeProvider:p?.httpAuthSchemeProvider??Ht,httpAuthSchemes:p?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(u)=>u.getIdentityProvider("aws.auth#sigv4"),signer:new At},{schemeId:"smithy.api#noAuth",identityProvider:(u)=>u.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new je}],logger:p?.logger??new We,protocol:p?.protocol??Nt,protocolSettings:p?.protocolSettings??{defaultNamespace:"com.amazonaws.ssooidc",errorTypeRegistries:ve,version:"2019-06-10",serviceTarget:"AWSSSOOIDCService"},serviceId:p?.serviceId??"SSO OIDC",sha256:p?.sha256??bt,urlParser:p?.urlParser??_t,utf8Decoder:p?.utf8Decoder??Ot,utf8Encoder:p?.utf8Encoder??Tt}),Nr=(p)=>{Ye(process.version);let u=rt(p),E=()=>u().then(Je),v=wr(p);ke(process.version);let m={profile:p?.profile,logger:v.logger};return{...v,...p,runtime:"node",defaultsMode:u,authSchemePreference:p?.authSchemePreference??A(yt,m),bodyLengthChecker:p?.bodyLengthChecker??kt,defaultUserAgentProvider:p?.defaultUserAgentProvider??$e({serviceId:v.serviceId,clientVersion:Vt.version}),maxAttempts:p?.maxAttempts??A(St,p),region:p?.region??A(st,{...it,...m}),requestHandler:wt.create(p?.requestHandler??E),retryMode:p?.retryMode??A({...ft,default:async()=>(await E()).retryMode||xt},p),streamCollector:p?.streamCollector??$t,useDualstackEndpoint:p?.useDualstackEndpoint??A(nt,m),useFipsEndpoint:p?.useFipsEndpoint??A(ot,m),userAgentAppId:p?.userAgentAppId??A(we,m)}},br=(p)=>{let{httpAuthSchemes:u,httpAuthSchemeProvider:E,credentials:v}=p;return{setHttpAuthScheme(m){let R=u.findIndex((V)=>V.schemeId===m.schemeId);if(R===-1)u.push(m);else u.splice(R,1,m)},httpAuthSchemes(){return u},setHttpAuthSchemeProvider(m){E=m},httpAuthSchemeProvider(){return E},setCredentials(m){v=m},credentials(){return v}}},Ur=(p)=>({httpAuthSchemes:p.httpAuthSchemes(),httpAuthSchemeProvider:p.httpAuthSchemeProvider(),credentials:p.credentials()}),Fr=(p,u)=>{let E=Object.assign(Ne(p),Xe(p),gt(p),br(p));return u.forEach((v)=>v.configure(E)),Object.assign(p,be(E),Qe(E),Et(E),Ur(E))};class W extends re{config;constructor(...[p]){let u=Nr(p||{});super(u);this.initConfig=u;let E=Gt(u),v=Ue(E),m=vt(v),R=ct(m),V=Fe(R),ye=lt(V),Te=Mt(ye),Oe=Fr(Te,p?.extensions||[]);this.config=Oe,this.middlewareStack.use(It(this.config)),this.middlewareStack.use(qe(this.config)),this.middlewareStack.use(Pt(this.config)),this.middlewareStack.use(mt(this.config)),this.middlewareStack.use(He(this.config)),this.middlewareStack.use(Me(this.config)),this.middlewareStack.use(Ge(this.config)),this.middlewareStack.use(Ke(this.config,{httpAuthSchemeParametersProvider:Ut,identityProviderConfigProvider:async(Re)=>new Ve({"aws.auth#sigv4":Re.credentials})})),this.middlewareStack.use(ze(this.config))}destroy(){super.destroy()}}var qr=Ze(jt,"AWSSSOOIDCService","SSOOIDCClient",ht),Hr={},Mr=(p,u,E,v)=>[];class Y extends qr(Hr,Mr,"CreateToken",Ae){}var Gr={CreateTokenCommand:Y};class J extends W{}et(Gr,J);var jr={KMS_ACCESS_DENIED:"KMS_AccessDeniedException"},Kr={KMS_DISABLED_KEY:"KMS_DisabledException",KMS_INVALID_KEY_USAGE:"KMS_InvalidKeyUsageException",KMS_INVALID_STATE:"KMS_InvalidStateException",KMS_KEY_NOT_FOUND:"KMS_NotFoundException"};var Lr=w,Br=de,Wr=jr,Yr=N,Jr=ue,Xr=Ae,Qr=Y,Zr=Ie,eo=Ce,to=b,ro=le,oo=U,no=he,so=F,io=_e,co=q,ao=ge,po=H,uo=Ee,lo=Kr,ho=M,_o=me,go=J,Eo=W,mo=x,xo=pe,fo=G,So=xe,vo=j,Po=fe,Io=K,Co=Se,Ao=ve;export{Vr as $Command,zr as __Client,Lr as AccessDeniedException,Br as AccessDeniedException$,Wr as AccessDeniedExceptionReason,Yr as AuthorizationPendingException,Jr as AuthorizationPendingException$,Xr as CreateToken$,Qr as CreateTokenCommand,Zr as CreateTokenRequest$,eo as CreateTokenResponse$,to as ExpiredTokenException,ro as ExpiredTokenException$,oo as InternalServerException,no as InternalServerException$,so as InvalidClientException,io as InvalidClientException$,co as InvalidGrantException,ao as InvalidGrantException$,po as InvalidRequestException,uo as InvalidRequestException$,lo as InvalidRequestExceptionReason,ho as InvalidScopeException,_o as InvalidScopeException$,go as SSOOIDC,Eo as SSOOIDCClient,mo as SSOOIDCServiceException,xo as SSOOIDCServiceException$,fo as SlowDownException,So as SlowDownException$,vo as UnauthorizedClientException,Po as UnauthorizedClientException$,Io as UnsupportedGrantTypeException,Co as UnsupportedGrantTypeException$,Ao as errorTypeRegistries};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{i,s,e,r,a,o,n,g,c,t,I,B,l,d}from"./shumai-transcode-app.js";var{awsEndpointFunctions:At,emitWarningIfUnsupportedVersion:Et,createDefaultUserAgentProvider:vt,NODE_APP_ID_CONFIG_OPTIONS:yt,getAwsRegionExtensionConfiguration:It,resolveAwsRegionExtensionConfiguration:Rt,resolveUserAgentConfig:_t,resolveHostHeaderConfig:Ct,getUserAgentPlugin:xt,getHostHeaderPlugin:wt,getLoggerPlugin:Tt,getRecursionDetectionPlugin:Dt,setCredentialFeature:ce,stsRegionDefaultResolver:bt}=t(),{NoAuthSigner:_e,getHttpAuthSchemeEndpointRuleSetPlugin:$t,DefaultIdentityProviderConfig:kt,getHttpSigningPlugin:Ot}=c(),{normalizeProvider:Ce,getSmithyContext:xe,ServiceException:Nt,NoOpLogger:Wt,emitWarningIfUnsupportedVersion:Ht,loadConfigsForDefaultMode:Ut,getDefaultExtensionConfiguration:qt,resolveDefaultRuntimeConfig:Ft,Client:we,makeBuilder:Lt,createAggregatedClient:Kt}=s(),{Command:Mt}=s();var jn=Mt,Gn=we;var{resolveDefaultsModeConfig:jt,loadConfig:k,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:Gt,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:Vt,NODE_REGION_CONFIG_OPTIONS:zt,NODE_REGION_CONFIG_FILE_OPTIONS:Bt,resolveRegionConfig:Qt}=e(),{BinaryDecisionDiagram:Yt,EndpointCache:Xt,decideEndpoint:Jt,customEndpointFunctions:Zt,resolveParams:es,resolveEndpointConfig:ts,getEndpointPlugin:ss}=r(),{parseUrl:ns,getHttpHandlerExtensionConfiguration:os,resolveHttpHandlerRuntimeConfig:rs,getContentLengthPlugin:is}=n(),{DEFAULT_RETRY_MODE:as,NODE_RETRY_MODE_CONFIG_OPTIONS:cs,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:us,resolveRetryConfig:ds,getRetryPlugin:ls}=g(),{TypeRegistry:Te,getSchemaSerdePlugin:ps}=i(),{resolveAwsSdkSigV4Config:gs,resolveAwsSdkSigV4AConfig:hs,AwsSdkSigV4Signer:De,AwsSdkSigV4ASigner:be,NODE_SIGV4A_CONFIG_OPTIONS:ms,NODE_AUTH_SCHEME_PREFERENCE_OPTIONS:Ps}=l(),{SignatureV4MultiRegion:$e}=I(),{toUtf8:fs,fromUtf8:Ss,toBase64:As,fromBase64:Es,calculateBodyLength:vs}=a(),{streamCollector:ys,NodeHttpHandler:Is}=d(),{AwsQueryProtocol:Rs}=B(),{Sha256:_s}=o(),j="ref",W=-1,G=!0,fe="isSet",ke="PartitionResult",V="booleanEquals",v="stringEquals",ie="getAttr",Se="us-east-1",Ae="sigv4",Ee="sts",ve="https://sts.{Region}.{PartitionResult#dnsSuffix}",ye={[j]:"Endpoint"},y={[j]:"Region"},ae={[j]:ke},M={},Ie=[y],Re={conditions:[[fe,[ye]],[fe,Ie],["aws.partition",Ie,ke],[V,[{[j]:"UseFIPS"},G]],[V,[{[j]:"UseDualStack"},G]],[v,[y,"aws-global"]],[V,[{[j]:"UseGlobalEndpoint"},G]],[v,[y,"eu-central-1"]],[V,[{fn:ie,argv:[ae,"supportsDualStack"]},G]],[V,[{fn:ie,argv:[ae,"supportsFIPS"]},G]],[v,[y,"ap-south-1"]],[v,[y,"eu-north-1"]],[v,[y,"eu-west-1"]],[v,[y,"eu-west-2"]],[v,[y,"eu-west-3"]],[v,[y,"sa-east-1"]],[v,[y,Se]],[v,[y,"us-east-2"]],[v,[y,"us-west-2"]],[v,[y,"us-west-1"]],[v,[y,"ca-central-1"]],[v,[y,"ap-southeast-1"]],[v,[y,"ap-northeast-1"]],[v,[y,"ap-southeast-2"]],[v,[{fn:ie,argv:[ae,"name"]},"aws-us-gov"]]],results:[[W],["https://sts.amazonaws.com",{authSchemes:[{name:Ae,signingName:Ee,signingRegion:Se}]}],[ve,{authSchemes:[{name:Ae,signingName:Ee,signingRegion:"{Region}"}]}],[W,"Invalid Configuration: FIPS and custom endpoint are not supported"],[W,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[ye,M],["https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",M],[W,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://sts.{Region}.amazonaws.com",M],["https://sts-fips.{Region}.{PartitionResult#dnsSuffix}",M],[W,"FIPS is enabled but this partition does not support FIPS"],["https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}",M],[W,"DualStack is enabled but this partition does not support DualStack"],[ve,M],[W,"Invalid Configuration: Missing Region"]]},Cs=2,P=1e8,xs=new Int32Array([-1,1,-1,0,30,3,1,4,P+14,2,5,P+14,3,25,6,4,24,7,5,P+1,8,6,9,P+13,7,P+1,10,10,P+1,11,11,P+1,12,12,P+1,13,13,P+1,14,14,P+1,15,15,P+1,16,16,P+1,17,17,P+1,18,18,P+1,19,19,P+1,20,20,P+1,21,21,P+1,22,22,P+1,23,23,P+1,P+2,8,P+11,P+12,4,28,26,9,27,P+10,24,P+8,P+9,8,29,P+7,9,P+6,P+7,3,P+3,31,4,P+4,P+5]),ws=Yt.from(xs,Cs,Re.conditions,Re.results),Ts=new Xt({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS","UseGlobalEndpoint"]}),Oe=(u,p={})=>Ts.get(u,()=>Jt(ws,{endpointParams:u,logger:p.logger}));Zt.aws=At;var Ds=(u)=>async(p,h,S)=>{if(!S)throw Error("Could not find `input` for `defaultEndpointRuleSetHttpAuthSchemeParametersProvider`");let m=await u(p,h,S),E=xe(h)?.commandInstance?.constructor?.getEndpointParameterInstructions;if(!E)throw Error(`getEndpointParameterInstructions() is not defined on '${h.commandName}'`);let f=await es(S,{getEndpointParameterInstructions:E},p);return Object.assign(m,f)},bs=async(u,p,h)=>({operation:xe(p).operation,region:await Ce(u.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),$s=Ds(bs);function Ne(u){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sts",region:u.region},propertiesExtractor:(p,h)=>({signingProperties:{config:p,context:h}})}}function ue(u){return{schemeId:"aws.auth#sigv4a",signingProperties:{name:"sts",region:u.region},propertiesExtractor:(p,h)=>({signingProperties:{config:p,context:h}})}}function We(u){return{schemeId:"smithy.api#noAuth"}}var ks=(u,p,h)=>(m)=>{let f=u(m).properties?.authSchemes;if(!f)return p(m);let R=[];for(let w of f){let{name:_,properties:T={},...N}=w,D=_.toLowerCase();if(_!==D)console.warn(`HttpAuthScheme has been normalized with lowercasing: '${_}' to '${D}'`);let x;if(D==="sigv4a"){x="aws.auth#sigv4a";let oe=f.find((re)=>{let Pe=re.name.toLowerCase();return Pe!=="sigv4a"&&Pe.startsWith("sigv4")});if($e.sigv4aDependency()==="none"&&oe)continue}else if(D.startsWith("sigv4"))x="aws.auth#sigv4";else throw Error(`Unknown HttpAuthScheme found in '@smithy.rules#endpointRuleSet': '${D}'`);let K=h[x];if(!K)throw Error(`Could not find HttpAuthOption create function for '${x}'`);let b=K(m);b.schemeId=x,b.signingProperties={...b.signingProperties||{},...N,...T},R.push(b)}return R},Os=(u)=>{let p=[];switch(u.operation){case"AssumeRoleWithWebIdentity":{p.push(We()),p.push(ue(u));break}default:p.push(Ne(u)),p.push(ue(u))}return p},Ns=ks(Oe,Os,{"aws.auth#sigv4":Ne,"aws.auth#sigv4a":ue,"smithy.api#noAuth":We}),Ws=(u)=>{let p=gs(u),h=hs(p);return Object.assign(h,{authSchemePreference:Ce(u.authSchemePreference??[])})},Hs=(u)=>Object.assign(u,{useDualstackEndpoint:u.useDualstackEndpoint??!1,useFipsEndpoint:u.useFipsEndpoint??!1,useGlobalEndpoint:u.useGlobalEndpoint??!1,defaultSigningName:"sts"}),Us={UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},qs="3.997.43",Fs={version:qs};class C extends Nt{constructor(u){super(u);Object.setPrototypeOf(this,C.prototype)}}class Q extends C{name="ExpiredTokenException";$fault="client";constructor(u){super({name:"ExpiredTokenException",$fault:"client",...u});Object.setPrototypeOf(this,Q.prototype)}}class Y extends C{name="MalformedPolicyDocumentException";$fault="client";constructor(u){super({name:"MalformedPolicyDocumentException",$fault:"client",...u});Object.setPrototypeOf(this,Y.prototype)}}class X extends C{name="PackedPolicyTooLargeException";$fault="client";constructor(u){super({name:"PackedPolicyTooLargeException",$fault:"client",...u});Object.setPrototypeOf(this,X.prototype)}}class J extends C{name="RegionDisabledException";$fault="client";constructor(u){super({name:"RegionDisabledException",$fault:"client",...u});Object.setPrototypeOf(this,J.prototype)}}class Z extends C{name="IDPRejectedClaimException";$fault="client";constructor(u){super({name:"IDPRejectedClaimException",$fault:"client",...u});Object.setPrototypeOf(this,Z.prototype)}}class ee extends C{name="InvalidIdentityTokenException";$fault="client";constructor(u){super({name:"InvalidIdentityTokenException",$fault:"client",...u});Object.setPrototypeOf(this,ee.prototype)}}class te extends C{name="IDPCommunicationErrorException";$fault="client";$retryable={};constructor(u){super({name:"IDPCommunicationErrorException",$fault:"client",...u});Object.setPrototypeOf(this,te.prototype)}}var Ls="Arn",Ks="AccessKeyId",Ms="AssumeRole",js="AssumedRoleId",Gs="AssumeRoleRequest",Vs="AssumeRoleResponse",de="AssumedRoleUser",zs="AssumeRoleWithWebIdentity",Bs="AssumeRoleWithWebIdentityRequest",Qs="AssumeRoleWithWebIdentityResponse",Ys="Audience",le="Credentials",Xs="ContextAssertion",He="DurationSeconds",Js="Expiration",Zs="ExternalId",en="ExpiredTokenException",tn="IDPCommunicationErrorException",sn="IDPRejectedClaimException",nn="InvalidIdentityTokenException",on="Key",rn="MalformedPolicyDocumentException",Ue="Policy",qe="PolicyArns",an="ProviderArn",cn="ProvidedContexts",un="ProvidedContextsListType",dn="ProvidedContext",ln="PolicyDescriptorType",pn="ProviderId",Fe="PackedPolicySize",gn="PackedPolicyTooLargeException",hn="Provider",Le="RoleArn",mn="RegionDisabledException",Ke="RoleSessionName",Pn="SecretAccessKey",fn="SubjectFromWebIdentityToken",pe="SourceIdentity",Sn="SerialNumber",An="SessionToken",En="Tags",vn="TokenCode",yn="TransitiveTagKeys",In="Tag",Rn="Value",_n="WebIdentityToken",Cn="arn",xn="accessKeySecretType",H="awsQueryError",U="client",wn="clientTokenType",q="error",F="httpError",L="message",Tn="policyDescriptorListType",Me="smithy.ts.sdk.synthetic.com.amazonaws.sts",Dn="tagListType",A="com.amazonaws.sts",je=Te.for(Me),Ge=[-3,Me,"STSServiceException",0,[],[]];je.registerError(Ge,C);var O=Te.for(A),Ve=[-3,A,en,{[H]:["ExpiredTokenException",400],[q]:U,[F]:400},[L],[0]];O.registerError(Ve,Q);var ze=[-3,A,tn,{[H]:["IDPCommunicationError",400],[q]:U,[F]:400},[L],[0]];O.registerError(ze,te);var Be=[-3,A,sn,{[H]:["IDPRejectedClaim",403],[q]:U,[F]:403},[L],[0]];O.registerError(Be,Z);var Qe=[-3,A,nn,{[H]:["InvalidIdentityToken",400],[q]:U,[F]:400},[L],[0]];O.registerError(Qe,ee);var Ye=[-3,A,rn,{[H]:["MalformedPolicyDocument",400],[q]:U,[F]:400},[L],[0]];O.registerError(Ye,Y);var Xe=[-3,A,gn,{[H]:["PackedPolicyTooLarge",400],[q]:U,[F]:400},[L],[0]];O.registerError(Xe,X);var Je=[-3,A,mn,{[H]:["RegionDisabledException",403],[q]:U,[F]:403},[L],[0]];O.registerError(Je,J);var Ze=[je,O],bn=[0,A,xn,8,0],$n=[0,A,wn,8,0],ge=[3,A,de,0,[js,Ls],[0,0],2],et=[3,A,Gs,0,[Le,Ke,qe,Ue,He,En,yn,Zs,Sn,vn,pe,cn],[0,0,()=>at,0,1,()=>On,64,0,0,0,0,()=>kn],2],tt=[3,A,Vs,0,[le,de,Fe,pe],[[()=>he,0],()=>ge,1,0]],st=[3,A,Bs,0,[Le,Ke,_n,pn,qe,Ue,He],[0,0,[()=>$n,0],0,()=>at,0,1],3],nt=[3,A,Qs,0,[le,fn,de,Fe,hn,Ys,pe],[[()=>he,0],0,()=>ge,1,0,0,0]],he=[3,A,le,0,[Ks,Pn,An,Js],[0,[()=>bn,0],0,4],4],ot=[3,A,ln,0,[Cn],[0]],rt=[3,A,dn,0,[an,Xs],[0,0]],it=[3,A,In,0,[on,Rn],[0,0],2],at=[1,A,Tn,0,()=>ot],kn=[1,A,un,0,()=>rt],On=[1,A,Dn,0,()=>it],ct=[9,A,Ms,0,()=>et,()=>tt],ut=[9,A,zs,0,()=>st,()=>nt],Nn=(u)=>({apiVersion:"2011-06-15",base64Decoder:u?.base64Decoder??Es,base64Encoder:u?.base64Encoder??As,disableHostPrefix:u?.disableHostPrefix??!1,endpointProvider:u?.endpointProvider??Oe,extensions:u?.extensions??[],httpAuthSchemeProvider:u?.httpAuthSchemeProvider??Ns,httpAuthSchemes:u?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(p)=>p.getIdentityProvider("aws.auth#sigv4"),signer:new De},{schemeId:"aws.auth#sigv4a",identityProvider:(p)=>p.getIdentityProvider("aws.auth#sigv4a"),signer:new be},{schemeId:"smithy.api#noAuth",identityProvider:(p)=>p.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new _e}],logger:u?.logger??new Wt,protocol:u?.protocol??Rs,protocolSettings:u?.protocolSettings??{defaultNamespace:"com.amazonaws.sts",errorTypeRegistries:Ze,xmlNamespace:"https://sts.amazonaws.com/doc/2011-06-15/",version:"2011-06-15",serviceTarget:"AWSSecurityTokenServiceV20110615"},serviceId:u?.serviceId??"STS",sha256:u?.sha256??_s,signerConstructor:u?.signerConstructor??$e,urlParser:u?.urlParser??ns,utf8Decoder:u?.utf8Decoder??Ss,utf8Encoder:u?.utf8Encoder??fs}),Wn=(u)=>{Ht(process.version);let p=jt(u),h=()=>p().then(Ut),S=Nn(u);Et(process.version);let m={profile:u?.profile,logger:S.logger};return{...S,...u,runtime:"node",defaultsMode:p,authSchemePreference:u?.authSchemePreference??k(Ps,m),bodyLengthChecker:u?.bodyLengthChecker??vs,defaultUserAgentProvider:u?.defaultUserAgentProvider??vt({serviceId:S.serviceId,clientVersion:Fs.version}),httpAuthSchemes:u?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(E)=>E.getIdentityProvider("aws.auth#sigv4")||(async(f)=>await u.credentialDefaultProvider(f?.__config||{})()),signer:new De},{schemeId:"aws.auth#sigv4a",identityProvider:(E)=>E.getIdentityProvider("aws.auth#sigv4a"),signer:new be},{schemeId:"smithy.api#noAuth",identityProvider:(E)=>E.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new _e}],maxAttempts:u?.maxAttempts??k(us,u),region:u?.region??k(zt,{...Bt,...m}),requestHandler:Is.create(u?.requestHandler??h),retryMode:u?.retryMode??k({...cs,default:async()=>(await h()).retryMode||as},u),sigv4aSigningRegionSet:u?.sigv4aSigningRegionSet??k(ms,m),streamCollector:u?.streamCollector??ys,useDualstackEndpoint:u?.useDualstackEndpoint??k(Vt,m),useFipsEndpoint:u?.useFipsEndpoint??k(Gt,m),userAgentAppId:u?.userAgentAppId??k(yt,m)}},Hn=(u)=>{let{httpAuthSchemes:p,httpAuthSchemeProvider:h,credentials:S}=u;return{setHttpAuthScheme(m){let E=p.findIndex((f)=>f.schemeId===m.schemeId);if(E===-1)p.push(m);else p.splice(E,1,m)},httpAuthSchemes(){return p},setHttpAuthSchemeProvider(m){h=m},httpAuthSchemeProvider(){return h},setCredentials(m){S=m},credentials(){return S}}},Un=(u)=>({httpAuthSchemes:u.httpAuthSchemes(),httpAuthSchemeProvider:u.httpAuthSchemeProvider(),credentials:u.credentials()}),qn=(u,p)=>{let h=Object.assign(It(u),qt(u),os(u),Hn(u));return p.forEach((S)=>S.configure(h)),Object.assign(u,Rt(h),Ft(h),rs(h),Un(h))};class z extends we{config;constructor(...[u]){let p=Wn(u||{});super(p);this.initConfig=p;let h=Hs(p),S=_t(h),m=ds(S),E=Qt(m),f=Ct(E),R=ts(f),w=Ws(R),_=qn(w,u?.extensions||[]);this.config=_,this.middlewareStack.use(ps(this.config)),this.middlewareStack.use(xt(this.config)),this.middlewareStack.use(ls(this.config)),this.middlewareStack.use(is(this.config)),this.middlewareStack.use(wt(this.config)),this.middlewareStack.use(Tt(this.config)),this.middlewareStack.use(Dt(this.config)),this.middlewareStack.use($t(this.config,{httpAuthSchemeParametersProvider:$s,identityProviderConfigProvider:async(T)=>new kt({"aws.auth#sigv4":T.credentials,"aws.auth#sigv4a":T.credentials})})),this.middlewareStack.use(Ot(this.config))}destroy(){super.destroy()}}var dt=Lt(Us,"AWSSecurityTokenServiceV20110615","STSClient",ss),lt={},pt=(u,p,h,S)=>[];class se extends dt(lt,pt,"AssumeRole",ct){}class ne extends dt(lt,pt,"AssumeRoleWithWebIdentity",ut){}var Fn={AssumeRoleCommand:se,AssumeRoleWithWebIdentityCommand:ne};class me extends z{}Kt(Fn,me);var gt=(u)=>{if(typeof u?.Arn==="string"){let p=u.Arn.split(":");if(p.length>4&&p[4]!=="")return p[4]}return},ht=async(u,p,h,S={})=>{let m=typeof u==="function"?await u():u,E=typeof p==="function"?await p():p,f="",R=m??E??(f=await bt(S)());return h?.debug?.("@aws-sdk/client-sts::resolveRegion","accepting first of:",`${m} (credential provider clientConfig)`,`${E} (contextual client)`,`${f} (STS default: AWS_REGION, profile region, or us-east-1)`),R},Ln=(u,p)=>{let h,S;return async(m,E)=>{if(S=m,!h){let{logger:T=u?.parentClientConfig?.logger,profile:N=u?.parentClientConfig?.profile,region:D,requestHandler:x=u?.parentClientConfig?.requestHandler,credentialProviderLogger:K,userAgentAppId:b=u?.parentClientConfig?.userAgentAppId}=u,oe=await ht(D,u?.parentClientConfig?.region,K,{logger:T,profile:N}),re=!mt(x);h=new p({...u,userAgentAppId:b,profile:N,credentialDefaultProvider:()=>async()=>S,region:oe,requestHandler:re?x:void 0,logger:T})}let{Credentials:f,AssumedRoleUser:R}=await h.send(new se(E));if(!f||!f.AccessKeyId||!f.SecretAccessKey)throw Error(`Invalid response from STS.assumeRole call with role ${E.RoleArn}`);let w=gt(R),_={accessKeyId:f.AccessKeyId,secretAccessKey:f.SecretAccessKey,sessionToken:f.SessionToken,expiration:f.Expiration,...f.CredentialScope&&{credentialScope:f.CredentialScope},...w&&{accountId:w}};return ce(_,"CREDENTIALS_STS_ASSUME_ROLE","i"),_}},Kn=(u,p)=>{let h;return async(S)=>{if(!h){let{logger:w=u?.parentClientConfig?.logger,profile:_=u?.parentClientConfig?.profile,region:T,requestHandler:N=u?.parentClientConfig?.requestHandler,credentialProviderLogger:D,userAgentAppId:x=u?.parentClientConfig?.userAgentAppId}=u,K=await ht(T,u?.parentClientConfig?.region,D,{logger:w,profile:_}),b=!mt(N);h=new p({...u,userAgentAppId:x,profile:_,region:K,requestHandler:b?N:void 0,logger:w})}let{Credentials:m,AssumedRoleUser:E}=await h.send(new ne(S));if(!m||!m.AccessKeyId||!m.SecretAccessKey)throw Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${S.RoleArn}`);let f=gt(E),R={accessKeyId:m.AccessKeyId,secretAccessKey:m.SecretAccessKey,sessionToken:m.SessionToken,expiration:m.Expiration,...m.CredentialScope&&{credentialScope:m.CredentialScope},...f&&{accountId:f}};if(f)ce(R,"RESOLVED_ACCOUNT_ID","T");return ce(R,"CREDENTIALS_STS_ASSUME_ROLE_WEB_ID","k"),R}},mt=(u)=>u?.metadata?.handlerProtocol==="h2",Pt=(u,p)=>{if(!p)return u;else return class extends u{constructor(S){super(S);for(let m of p)this.middlewareStack.use(m)}}},ft=(u={},p)=>Ln(u,Pt(z,p)),St=(u={},p)=>Kn(u,Pt(z,p)),Mn=(u)=>(p)=>u({roleAssumer:ft(p),roleAssumerWithWebIdentity:St(p),...p});var Vn=ct,zn=se,Bn=et,Qn=tt,Yn=ut,Xn=ne,Jn=st,Zn=nt,eo=ge,to=he,so=Q,no=Ve,oo=te,ro=ze,io=Z,ao=Be,co=ee,uo=Qe,lo=Y,po=Ye,go=X,ho=Xe,mo=ot,Po=rt,fo=J,So=Je,Ao=me,Eo=z,vo=C,yo=Ge,Io=it,Ro=Mn,_o=Ze,Co=ft,xo=St;export{jn as $Command,Gn as __Client,Vn as AssumeRole$,zn as AssumeRoleCommand,Bn as AssumeRoleRequest$,Qn as AssumeRoleResponse$,Yn as AssumeRoleWithWebIdentity$,Xn as AssumeRoleWithWebIdentityCommand,Jn as AssumeRoleWithWebIdentityRequest$,Zn as AssumeRoleWithWebIdentityResponse$,eo as AssumedRoleUser$,to as Credentials$,so as ExpiredTokenException,no as ExpiredTokenException$,oo as IDPCommunicationErrorException,ro as IDPCommunicationErrorException$,io as IDPRejectedClaimException,ao as IDPRejectedClaimException$,co as InvalidIdentityTokenException,uo as InvalidIdentityTokenException$,lo as MalformedPolicyDocumentException,po as MalformedPolicyDocumentException$,go as PackedPolicyTooLargeException,ho as PackedPolicyTooLargeException$,mo as PolicyDescriptorType$,Po as ProvidedContext$,fo as RegionDisabledException,So as RegionDisabledException$,Ao as STS,Eo as STSClient,vo as STSServiceException,yo as STSServiceException$,Io as Tag$,Ro as decorateDefaultCredentialProvider,_o as errorTypeRegistries,Co as getDefaultRoleAssumer,xo as getDefaultRoleAssumerWithWebIdentity};
2
+ import{o,s,e,r,a,i,n,l,c,t,I,B,g,d}from"./shumai-transcode-app.js";var{awsEndpointFunctions:At,emitWarningIfUnsupportedVersion:Et,createDefaultUserAgentProvider:vt,NODE_APP_ID_CONFIG_OPTIONS:yt,getAwsRegionExtensionConfiguration:It,resolveAwsRegionExtensionConfiguration:Rt,resolveUserAgentConfig:_t,resolveHostHeaderConfig:Ct,getUserAgentPlugin:xt,getHostHeaderPlugin:wt,getLoggerPlugin:Tt,getRecursionDetectionPlugin:Dt,setCredentialFeature:ce,stsRegionDefaultResolver:bt}=t(),{NoAuthSigner:_e,getHttpAuthSchemeEndpointRuleSetPlugin:$t,DefaultIdentityProviderConfig:kt,getHttpSigningPlugin:Ot}=c(),{normalizeProvider:Ce,getSmithyContext:xe,ServiceException:Nt,NoOpLogger:Wt,emitWarningIfUnsupportedVersion:Ht,loadConfigsForDefaultMode:Ut,getDefaultExtensionConfiguration:qt,resolveDefaultRuntimeConfig:Ft,Client:we,makeBuilder:Lt,createAggregatedClient:Kt}=s(),{Command:Mt}=s();var jn=Mt,Gn=we;var{resolveDefaultsModeConfig:jt,loadConfig:k,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:Gt,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:Vt,NODE_REGION_CONFIG_OPTIONS:zt,NODE_REGION_CONFIG_FILE_OPTIONS:Bt,resolveRegionConfig:Qt}=e(),{BinaryDecisionDiagram:Yt,EndpointCache:Xt,decideEndpoint:Jt,customEndpointFunctions:Zt,resolveParams:es,resolveEndpointConfig:ts,getEndpointPlugin:ss}=r(),{parseUrl:ns,getHttpHandlerExtensionConfiguration:os,resolveHttpHandlerRuntimeConfig:rs,getContentLengthPlugin:is}=n(),{DEFAULT_RETRY_MODE:as,NODE_RETRY_MODE_CONFIG_OPTIONS:cs,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:us,resolveRetryConfig:ds,getRetryPlugin:ls}=l(),{TypeRegistry:Te,getSchemaSerdePlugin:ps}=o(),{resolveAwsSdkSigV4Config:gs,resolveAwsSdkSigV4AConfig:hs,AwsSdkSigV4Signer:De,AwsSdkSigV4ASigner:be,NODE_SIGV4A_CONFIG_OPTIONS:ms,NODE_AUTH_SCHEME_PREFERENCE_OPTIONS:Ps}=g(),{SignatureV4MultiRegion:$e}=I(),{toUtf8:fs,fromUtf8:Ss,toBase64:As,fromBase64:Es,calculateBodyLength:vs}=a(),{streamCollector:ys,NodeHttpHandler:Is}=d(),{AwsQueryProtocol:Rs}=B(),{Sha256:_s}=i(),j="ref",W=-1,G=!0,fe="isSet",ke="PartitionResult",V="booleanEquals",v="stringEquals",ie="getAttr",Se="us-east-1",Ae="sigv4",Ee="sts",ve="https://sts.{Region}.{PartitionResult#dnsSuffix}",ye={[j]:"Endpoint"},y={[j]:"Region"},ae={[j]:ke},M={},Ie=[y],Re={conditions:[[fe,[ye]],[fe,Ie],["aws.partition",Ie,ke],[V,[{[j]:"UseFIPS"},G]],[V,[{[j]:"UseDualStack"},G]],[v,[y,"aws-global"]],[V,[{[j]:"UseGlobalEndpoint"},G]],[v,[y,"eu-central-1"]],[V,[{fn:ie,argv:[ae,"supportsDualStack"]},G]],[V,[{fn:ie,argv:[ae,"supportsFIPS"]},G]],[v,[y,"ap-south-1"]],[v,[y,"eu-north-1"]],[v,[y,"eu-west-1"]],[v,[y,"eu-west-2"]],[v,[y,"eu-west-3"]],[v,[y,"sa-east-1"]],[v,[y,Se]],[v,[y,"us-east-2"]],[v,[y,"us-west-2"]],[v,[y,"us-west-1"]],[v,[y,"ca-central-1"]],[v,[y,"ap-southeast-1"]],[v,[y,"ap-northeast-1"]],[v,[y,"ap-southeast-2"]],[v,[{fn:ie,argv:[ae,"name"]},"aws-us-gov"]]],results:[[W],["https://sts.amazonaws.com",{authSchemes:[{name:Ae,signingName:Ee,signingRegion:Se}]}],[ve,{authSchemes:[{name:Ae,signingName:Ee,signingRegion:"{Region}"}]}],[W,"Invalid Configuration: FIPS and custom endpoint are not supported"],[W,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[ye,M],["https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",M],[W,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://sts.{Region}.amazonaws.com",M],["https://sts-fips.{Region}.{PartitionResult#dnsSuffix}",M],[W,"FIPS is enabled but this partition does not support FIPS"],["https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}",M],[W,"DualStack is enabled but this partition does not support DualStack"],[ve,M],[W,"Invalid Configuration: Missing Region"]]},Cs=2,P=1e8,xs=new Int32Array([-1,1,-1,0,30,3,1,4,P+14,2,5,P+14,3,25,6,4,24,7,5,P+1,8,6,9,P+13,7,P+1,10,10,P+1,11,11,P+1,12,12,P+1,13,13,P+1,14,14,P+1,15,15,P+1,16,16,P+1,17,17,P+1,18,18,P+1,19,19,P+1,20,20,P+1,21,21,P+1,22,22,P+1,23,23,P+1,P+2,8,P+11,P+12,4,28,26,9,27,P+10,24,P+8,P+9,8,29,P+7,9,P+6,P+7,3,P+3,31,4,P+4,P+5]),ws=Yt.from(xs,Cs,Re.conditions,Re.results),Ts=new Xt({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS","UseGlobalEndpoint"]}),Oe=(u,p={})=>Ts.get(u,()=>Jt(ws,{endpointParams:u,logger:p.logger}));Zt.aws=At;var Ds=(u)=>async(p,h,S)=>{if(!S)throw Error("Could not find `input` for `defaultEndpointRuleSetHttpAuthSchemeParametersProvider`");let m=await u(p,h,S),E=xe(h)?.commandInstance?.constructor?.getEndpointParameterInstructions;if(!E)throw Error(`getEndpointParameterInstructions() is not defined on '${h.commandName}'`);let f=await es(S,{getEndpointParameterInstructions:E},p);return Object.assign(m,f)},bs=async(u,p,h)=>({operation:xe(p).operation,region:await Ce(u.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),$s=Ds(bs);function Ne(u){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sts",region:u.region},propertiesExtractor:(p,h)=>({signingProperties:{config:p,context:h}})}}function ue(u){return{schemeId:"aws.auth#sigv4a",signingProperties:{name:"sts",region:u.region},propertiesExtractor:(p,h)=>({signingProperties:{config:p,context:h}})}}function We(u){return{schemeId:"smithy.api#noAuth"}}var ks=(u,p,h)=>(m)=>{let f=u(m).properties?.authSchemes;if(!f)return p(m);let R=[];for(let w of f){let{name:_,properties:T={},...N}=w,D=_.toLowerCase();if(_!==D)console.warn(`HttpAuthScheme has been normalized with lowercasing: '${_}' to '${D}'`);let x;if(D==="sigv4a"){x="aws.auth#sigv4a";let oe=f.find((re)=>{let Pe=re.name.toLowerCase();return Pe!=="sigv4a"&&Pe.startsWith("sigv4")});if($e.sigv4aDependency()==="none"&&oe)continue}else if(D.startsWith("sigv4"))x="aws.auth#sigv4";else throw Error(`Unknown HttpAuthScheme found in '@smithy.rules#endpointRuleSet': '${D}'`);let K=h[x];if(!K)throw Error(`Could not find HttpAuthOption create function for '${x}'`);let b=K(m);b.schemeId=x,b.signingProperties={...b.signingProperties||{},...N,...T},R.push(b)}return R},Os=(u)=>{let p=[];switch(u.operation){case"AssumeRoleWithWebIdentity":{p.push(We()),p.push(ue(u));break}default:p.push(Ne(u)),p.push(ue(u))}return p},Ns=ks(Oe,Os,{"aws.auth#sigv4":Ne,"aws.auth#sigv4a":ue,"smithy.api#noAuth":We}),Ws=(u)=>{let p=gs(u),h=hs(p);return Object.assign(h,{authSchemePreference:Ce(u.authSchemePreference??[])})},Hs=(u)=>Object.assign(u,{useDualstackEndpoint:u.useDualstackEndpoint??!1,useFipsEndpoint:u.useFipsEndpoint??!1,useGlobalEndpoint:u.useGlobalEndpoint??!1,defaultSigningName:"sts"}),Us={UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},qs="3.997.43",Fs={version:qs};class C extends Nt{constructor(u){super(u);Object.setPrototypeOf(this,C.prototype)}}class Q extends C{name="ExpiredTokenException";$fault="client";constructor(u){super({name:"ExpiredTokenException",$fault:"client",...u});Object.setPrototypeOf(this,Q.prototype)}}class Y extends C{name="MalformedPolicyDocumentException";$fault="client";constructor(u){super({name:"MalformedPolicyDocumentException",$fault:"client",...u});Object.setPrototypeOf(this,Y.prototype)}}class X extends C{name="PackedPolicyTooLargeException";$fault="client";constructor(u){super({name:"PackedPolicyTooLargeException",$fault:"client",...u});Object.setPrototypeOf(this,X.prototype)}}class J extends C{name="RegionDisabledException";$fault="client";constructor(u){super({name:"RegionDisabledException",$fault:"client",...u});Object.setPrototypeOf(this,J.prototype)}}class Z extends C{name="IDPRejectedClaimException";$fault="client";constructor(u){super({name:"IDPRejectedClaimException",$fault:"client",...u});Object.setPrototypeOf(this,Z.prototype)}}class ee extends C{name="InvalidIdentityTokenException";$fault="client";constructor(u){super({name:"InvalidIdentityTokenException",$fault:"client",...u});Object.setPrototypeOf(this,ee.prototype)}}class te extends C{name="IDPCommunicationErrorException";$fault="client";$retryable={};constructor(u){super({name:"IDPCommunicationErrorException",$fault:"client",...u});Object.setPrototypeOf(this,te.prototype)}}var Ls="Arn",Ks="AccessKeyId",Ms="AssumeRole",js="AssumedRoleId",Gs="AssumeRoleRequest",Vs="AssumeRoleResponse",de="AssumedRoleUser",zs="AssumeRoleWithWebIdentity",Bs="AssumeRoleWithWebIdentityRequest",Qs="AssumeRoleWithWebIdentityResponse",Ys="Audience",le="Credentials",Xs="ContextAssertion",He="DurationSeconds",Js="Expiration",Zs="ExternalId",en="ExpiredTokenException",tn="IDPCommunicationErrorException",sn="IDPRejectedClaimException",nn="InvalidIdentityTokenException",on="Key",rn="MalformedPolicyDocumentException",Ue="Policy",qe="PolicyArns",an="ProviderArn",cn="ProvidedContexts",un="ProvidedContextsListType",dn="ProvidedContext",ln="PolicyDescriptorType",pn="ProviderId",Fe="PackedPolicySize",gn="PackedPolicyTooLargeException",hn="Provider",Le="RoleArn",mn="RegionDisabledException",Ke="RoleSessionName",Pn="SecretAccessKey",fn="SubjectFromWebIdentityToken",pe="SourceIdentity",Sn="SerialNumber",An="SessionToken",En="Tags",vn="TokenCode",yn="TransitiveTagKeys",In="Tag",Rn="Value",_n="WebIdentityToken",Cn="arn",xn="accessKeySecretType",H="awsQueryError",U="client",wn="clientTokenType",q="error",F="httpError",L="message",Tn="policyDescriptorListType",Me="smithy.ts.sdk.synthetic.com.amazonaws.sts",Dn="tagListType",A="com.amazonaws.sts",je=Te.for(Me),Ge=[-3,Me,"STSServiceException",0,[],[]];je.registerError(Ge,C);var O=Te.for(A),Ve=[-3,A,en,{[H]:["ExpiredTokenException",400],[q]:U,[F]:400},[L],[0]];O.registerError(Ve,Q);var ze=[-3,A,tn,{[H]:["IDPCommunicationError",400],[q]:U,[F]:400},[L],[0]];O.registerError(ze,te);var Be=[-3,A,sn,{[H]:["IDPRejectedClaim",403],[q]:U,[F]:403},[L],[0]];O.registerError(Be,Z);var Qe=[-3,A,nn,{[H]:["InvalidIdentityToken",400],[q]:U,[F]:400},[L],[0]];O.registerError(Qe,ee);var Ye=[-3,A,rn,{[H]:["MalformedPolicyDocument",400],[q]:U,[F]:400},[L],[0]];O.registerError(Ye,Y);var Xe=[-3,A,gn,{[H]:["PackedPolicyTooLarge",400],[q]:U,[F]:400},[L],[0]];O.registerError(Xe,X);var Je=[-3,A,mn,{[H]:["RegionDisabledException",403],[q]:U,[F]:403},[L],[0]];O.registerError(Je,J);var Ze=[je,O],bn=[0,A,xn,8,0],$n=[0,A,wn,8,0],ge=[3,A,de,0,[js,Ls],[0,0],2],et=[3,A,Gs,0,[Le,Ke,qe,Ue,He,En,yn,Zs,Sn,vn,pe,cn],[0,0,()=>at,0,1,()=>On,64,0,0,0,0,()=>kn],2],tt=[3,A,Vs,0,[le,de,Fe,pe],[[()=>he,0],()=>ge,1,0]],st=[3,A,Bs,0,[Le,Ke,_n,pn,qe,Ue,He],[0,0,[()=>$n,0],0,()=>at,0,1],3],nt=[3,A,Qs,0,[le,fn,de,Fe,hn,Ys,pe],[[()=>he,0],0,()=>ge,1,0,0,0]],he=[3,A,le,0,[Ks,Pn,An,Js],[0,[()=>bn,0],0,4],4],ot=[3,A,ln,0,[Cn],[0]],rt=[3,A,dn,0,[an,Xs],[0,0]],it=[3,A,In,0,[on,Rn],[0,0],2],at=[1,A,Tn,0,()=>ot],kn=[1,A,un,0,()=>rt],On=[1,A,Dn,0,()=>it],ct=[9,A,Ms,0,()=>et,()=>tt],ut=[9,A,zs,0,()=>st,()=>nt],Nn=(u)=>({apiVersion:"2011-06-15",base64Decoder:u?.base64Decoder??Es,base64Encoder:u?.base64Encoder??As,disableHostPrefix:u?.disableHostPrefix??!1,endpointProvider:u?.endpointProvider??Oe,extensions:u?.extensions??[],httpAuthSchemeProvider:u?.httpAuthSchemeProvider??Ns,httpAuthSchemes:u?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(p)=>p.getIdentityProvider("aws.auth#sigv4"),signer:new De},{schemeId:"aws.auth#sigv4a",identityProvider:(p)=>p.getIdentityProvider("aws.auth#sigv4a"),signer:new be},{schemeId:"smithy.api#noAuth",identityProvider:(p)=>p.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new _e}],logger:u?.logger??new Wt,protocol:u?.protocol??Rs,protocolSettings:u?.protocolSettings??{defaultNamespace:"com.amazonaws.sts",errorTypeRegistries:Ze,xmlNamespace:"https://sts.amazonaws.com/doc/2011-06-15/",version:"2011-06-15",serviceTarget:"AWSSecurityTokenServiceV20110615"},serviceId:u?.serviceId??"STS",sha256:u?.sha256??_s,signerConstructor:u?.signerConstructor??$e,urlParser:u?.urlParser??ns,utf8Decoder:u?.utf8Decoder??Ss,utf8Encoder:u?.utf8Encoder??fs}),Wn=(u)=>{Ht(process.version);let p=jt(u),h=()=>p().then(Ut),S=Nn(u);Et(process.version);let m={profile:u?.profile,logger:S.logger};return{...S,...u,runtime:"node",defaultsMode:p,authSchemePreference:u?.authSchemePreference??k(Ps,m),bodyLengthChecker:u?.bodyLengthChecker??vs,defaultUserAgentProvider:u?.defaultUserAgentProvider??vt({serviceId:S.serviceId,clientVersion:Fs.version}),httpAuthSchemes:u?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(E)=>E.getIdentityProvider("aws.auth#sigv4")||(async(f)=>await u.credentialDefaultProvider(f?.__config||{})()),signer:new De},{schemeId:"aws.auth#sigv4a",identityProvider:(E)=>E.getIdentityProvider("aws.auth#sigv4a"),signer:new be},{schemeId:"smithy.api#noAuth",identityProvider:(E)=>E.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new _e}],maxAttempts:u?.maxAttempts??k(us,u),region:u?.region??k(zt,{...Bt,...m}),requestHandler:Is.create(u?.requestHandler??h),retryMode:u?.retryMode??k({...cs,default:async()=>(await h()).retryMode||as},u),sigv4aSigningRegionSet:u?.sigv4aSigningRegionSet??k(ms,m),streamCollector:u?.streamCollector??ys,useDualstackEndpoint:u?.useDualstackEndpoint??k(Vt,m),useFipsEndpoint:u?.useFipsEndpoint??k(Gt,m),userAgentAppId:u?.userAgentAppId??k(yt,m)}},Hn=(u)=>{let{httpAuthSchemes:p,httpAuthSchemeProvider:h,credentials:S}=u;return{setHttpAuthScheme(m){let E=p.findIndex((f)=>f.schemeId===m.schemeId);if(E===-1)p.push(m);else p.splice(E,1,m)},httpAuthSchemes(){return p},setHttpAuthSchemeProvider(m){h=m},httpAuthSchemeProvider(){return h},setCredentials(m){S=m},credentials(){return S}}},Un=(u)=>({httpAuthSchemes:u.httpAuthSchemes(),httpAuthSchemeProvider:u.httpAuthSchemeProvider(),credentials:u.credentials()}),qn=(u,p)=>{let h=Object.assign(It(u),qt(u),os(u),Hn(u));return p.forEach((S)=>S.configure(h)),Object.assign(u,Rt(h),Ft(h),rs(h),Un(h))};class z extends we{config;constructor(...[u]){let p=Wn(u||{});super(p);this.initConfig=p;let h=Hs(p),S=_t(h),m=ds(S),E=Qt(m),f=Ct(E),R=ts(f),w=Ws(R),_=qn(w,u?.extensions||[]);this.config=_,this.middlewareStack.use(ps(this.config)),this.middlewareStack.use(xt(this.config)),this.middlewareStack.use(ls(this.config)),this.middlewareStack.use(is(this.config)),this.middlewareStack.use(wt(this.config)),this.middlewareStack.use(Tt(this.config)),this.middlewareStack.use(Dt(this.config)),this.middlewareStack.use($t(this.config,{httpAuthSchemeParametersProvider:$s,identityProviderConfigProvider:async(T)=>new kt({"aws.auth#sigv4":T.credentials,"aws.auth#sigv4a":T.credentials})})),this.middlewareStack.use(Ot(this.config))}destroy(){super.destroy()}}var dt=Lt(Us,"AWSSecurityTokenServiceV20110615","STSClient",ss),lt={},pt=(u,p,h,S)=>[];class se extends dt(lt,pt,"AssumeRole",ct){}class ne extends dt(lt,pt,"AssumeRoleWithWebIdentity",ut){}var Fn={AssumeRoleCommand:se,AssumeRoleWithWebIdentityCommand:ne};class me extends z{}Kt(Fn,me);var gt=(u)=>{if(typeof u?.Arn==="string"){let p=u.Arn.split(":");if(p.length>4&&p[4]!=="")return p[4]}return},ht=async(u,p,h,S={})=>{let m=typeof u==="function"?await u():u,E=typeof p==="function"?await p():p,f="",R=m??E??(f=await bt(S)());return h?.debug?.("@aws-sdk/client-sts::resolveRegion","accepting first of:",`${m} (credential provider clientConfig)`,`${E} (contextual client)`,`${f} (STS default: AWS_REGION, profile region, or us-east-1)`),R},Ln=(u,p)=>{let h,S;return async(m,E)=>{if(S=m,!h){let{logger:T=u?.parentClientConfig?.logger,profile:N=u?.parentClientConfig?.profile,region:D,requestHandler:x=u?.parentClientConfig?.requestHandler,credentialProviderLogger:K,userAgentAppId:b=u?.parentClientConfig?.userAgentAppId}=u,oe=await ht(D,u?.parentClientConfig?.region,K,{logger:T,profile:N}),re=!mt(x);h=new p({...u,userAgentAppId:b,profile:N,credentialDefaultProvider:()=>async()=>S,region:oe,requestHandler:re?x:void 0,logger:T})}let{Credentials:f,AssumedRoleUser:R}=await h.send(new se(E));if(!f||!f.AccessKeyId||!f.SecretAccessKey)throw Error(`Invalid response from STS.assumeRole call with role ${E.RoleArn}`);let w=gt(R),_={accessKeyId:f.AccessKeyId,secretAccessKey:f.SecretAccessKey,sessionToken:f.SessionToken,expiration:f.Expiration,...f.CredentialScope&&{credentialScope:f.CredentialScope},...w&&{accountId:w}};return ce(_,"CREDENTIALS_STS_ASSUME_ROLE","i"),_}},Kn=(u,p)=>{let h;return async(S)=>{if(!h){let{logger:w=u?.parentClientConfig?.logger,profile:_=u?.parentClientConfig?.profile,region:T,requestHandler:N=u?.parentClientConfig?.requestHandler,credentialProviderLogger:D,userAgentAppId:x=u?.parentClientConfig?.userAgentAppId}=u,K=await ht(T,u?.parentClientConfig?.region,D,{logger:w,profile:_}),b=!mt(N);h=new p({...u,userAgentAppId:x,profile:_,region:K,requestHandler:b?N:void 0,logger:w})}let{Credentials:m,AssumedRoleUser:E}=await h.send(new ne(S));if(!m||!m.AccessKeyId||!m.SecretAccessKey)throw Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${S.RoleArn}`);let f=gt(E),R={accessKeyId:m.AccessKeyId,secretAccessKey:m.SecretAccessKey,sessionToken:m.SessionToken,expiration:m.Expiration,...m.CredentialScope&&{credentialScope:m.CredentialScope},...f&&{accountId:f}};if(f)ce(R,"RESOLVED_ACCOUNT_ID","T");return ce(R,"CREDENTIALS_STS_ASSUME_ROLE_WEB_ID","k"),R}},mt=(u)=>u?.metadata?.handlerProtocol==="h2",Pt=(u,p)=>{if(!p)return u;else return class extends u{constructor(S){super(S);for(let m of p)this.middlewareStack.use(m)}}},ft=(u={},p)=>Ln(u,Pt(z,p)),St=(u={},p)=>Kn(u,Pt(z,p)),Mn=(u)=>(p)=>u({roleAssumer:ft(p),roleAssumerWithWebIdentity:St(p),...p});var Vn=ct,zn=se,Bn=et,Qn=tt,Yn=ut,Xn=ne,Jn=st,Zn=nt,eo=ge,to=he,so=Q,no=Ve,oo=te,ro=ze,io=Z,ao=Be,co=ee,uo=Qe,lo=Y,po=Ye,go=X,ho=Xe,mo=ot,Po=rt,fo=J,So=Je,Ao=me,Eo=z,vo=C,yo=Ge,Io=it,Ro=Mn,_o=Ze,Co=ft,xo=St;export{jn as $Command,Gn as __Client,Vn as AssumeRole$,zn as AssumeRoleCommand,Bn as AssumeRoleRequest$,Qn as AssumeRoleResponse$,Yn as AssumeRoleWithWebIdentity$,Xn as AssumeRoleWithWebIdentityCommand,Jn as AssumeRoleWithWebIdentityRequest$,Zn as AssumeRoleWithWebIdentityResponse$,eo as AssumedRoleUser$,to as Credentials$,so as ExpiredTokenException,no as ExpiredTokenException$,oo as IDPCommunicationErrorException,ro as IDPCommunicationErrorException$,io as IDPRejectedClaimException,ao as IDPRejectedClaimException$,co as InvalidIdentityTokenException,uo as InvalidIdentityTokenException$,lo as MalformedPolicyDocumentException,po as MalformedPolicyDocumentException$,go as PackedPolicyTooLargeException,ho as PackedPolicyTooLargeException$,mo as PolicyDescriptorType$,Po as ProvidedContext$,fo as RegionDisabledException,So as RegionDisabledException$,Ao as STS,Eo as STSClient,vo as STSServiceException,yo as STSServiceException$,Io as Tag$,Ro as decorateDefaultCredentialProvider,_o as errorTypeRegistries,Co as getDefaultRoleAssumer,xo as getDefaultRoleAssumerWithWebIdentity};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{A,e,t}from"./shumai-transcode-app.js";var f=A(t()),i=A(e());import{readFileSync as S}from"fs";var a=(o)=>async(l)=>{o.logger?.debug("@aws-sdk/credential-provider-web-identity - fromWebToken");let{roleArn:r,roleSessionName:n,webIdentityToken:c,providerId:s,policyArns:g,policy:E,durationSeconds:p}=o,{roleAssumerWithWebIdentity:d}=o;if(!d){let{getDefaultRoleAssumerWithWebIdentity:_}=await import("./chunk-yzpg15g3.js");d=_({...o.clientConfig,credentialProviderLogger:o.logger,parentClientConfig:{...l?.callerClientConfig,...o.parentClientConfig}},o.clientPlugins)}return d({RoleArn:r,RoleSessionName:n??`aws-sdk-js-session-${Date.now()}`,WebIdentityToken:c,ProviderId:s,PolicyArns:g,Policy:E,DurationSeconds:p})};var m="AWS_WEB_IDENTITY_TOKEN_FILE",T="AWS_ROLE_ARN",N="AWS_ROLE_SESSION_NAME",I=(o={})=>async(l)=>{o.logger?.debug("@aws-sdk/credential-provider-web-identity - fromTokenFile");let r=o?.webIdentityTokenFile??process.env[m],n=o?.roleArn??process.env[T],c=o?.roleSessionName??process.env[N];if(!r||!n)throw new i.CredentialsProviderError("Web identity configuration not specified",{logger:o.logger});let s=await a({...o,webIdentityToken:i.externalDataInterceptor?.getTokenRecord?.()[r]??S(r,{encoding:"ascii"}),roleArn:n,roleSessionName:c})(l);if(r===process.env[m])f.setCredentialFeature(s,"CREDENTIALS_ENV_VARS_STS_WEB_ID_TOKEN","h");return s};export{I as fromTokenFile};
2
+ import{A,e,t}from"./shumai-transcode-app.js";var f=A(t()),i=A(e());import{readFileSync as S}from"fs";var a=(o)=>async(l)=>{o.logger?.debug("@aws-sdk/credential-provider-web-identity - fromWebToken");let{roleArn:r,roleSessionName:n,webIdentityToken:c,providerId:s,policyArns:g,policy:E,durationSeconds:p}=o,{roleAssumerWithWebIdentity:d}=o;if(!d){let{getDefaultRoleAssumerWithWebIdentity:_}=await import("./chunk-nkxa78k9.js");d=_({...o.clientConfig,credentialProviderLogger:o.logger,parentClientConfig:{...l?.callerClientConfig,...o.parentClientConfig}},o.clientPlugins)}return d({RoleArn:r,RoleSessionName:n??`aws-sdk-js-session-${Date.now()}`,WebIdentityToken:c,ProviderId:s,PolicyArns:g,Policy:E,DurationSeconds:p})};var m="AWS_WEB_IDENTITY_TOKEN_FILE",T="AWS_ROLE_ARN",N="AWS_ROLE_SESSION_NAME",I=(o={})=>async(l)=>{o.logger?.debug("@aws-sdk/credential-provider-web-identity - fromTokenFile");let r=o?.webIdentityTokenFile??process.env[m],n=o?.roleArn??process.env[T],c=o?.roleSessionName??process.env[N];if(!r||!n)throw new i.CredentialsProviderError("Web identity configuration not specified",{logger:o.logger});let s=await a({...o,webIdentityToken:i.externalDataInterceptor?.getTokenRecord?.()[r]??S(r,{encoding:"ascii"}),roleArn:n,roleSessionName:c})(l);if(r===process.env[m])f.setCredentialFeature(s,"CREDENTIALS_ENV_VARS_STS_WEB_ID_TOKEN","h");return s};export{I as fromTokenFile};