dispach 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (167) hide show
  1. package/README.md +58 -18
  2. package/dist/APEv2Parser-9wqew3zv.js +5 -0
  3. package/dist/{APEv2Parser-jdp5yp24.js.map → APEv2Parser-9wqew3zv.js.map} +1 -1
  4. package/dist/{AiffParser-n65syezh.js → AiffParser-tbx3xkmk.js} +3 -3
  5. package/dist/{AiffParser-n65syezh.js.map → AiffParser-tbx3xkmk.js.map} +1 -1
  6. package/dist/App-hjn867nc.js +11 -0
  7. package/dist/{App-pmqmzsb3.js.map → App-hjn867nc.js.map} +1 -1
  8. package/dist/{AsfParser-da1fqvxz.js → AsfParser-d784ak3y.js} +3 -3
  9. package/dist/{AsfParser-da1fqvxz.js.map → AsfParser-d784ak3y.js.map} +1 -1
  10. package/dist/{ConfigEditor-4nqbeejh.js → ConfigEditor-g7eb2wsm.js} +3 -3
  11. package/dist/{ConfigEditor-4nqbeejh.js.map → ConfigEditor-g7eb2wsm.js.map} +1 -1
  12. package/dist/{DsdiffParser-gk95sj7t.js → DsdiffParser-vxnfx80c.js} +2 -2
  13. package/dist/{DsfParser-b0enevjw.js → DsfParser-0xsh0zzk.js} +3 -3
  14. package/dist/{DsfParser-b0enevjw.js.map → DsfParser-0xsh0zzk.js.map} +1 -1
  15. package/dist/FlacParser-bf8y3e0w.js +5 -0
  16. package/dist/{KeyProbe-rspsxpsr.js → KeyProbe-w8c37s9q.js} +3 -3
  17. package/dist/{KeyProbe-rspsxpsr.js.map → KeyProbe-w8c37s9q.js.map} +1 -1
  18. package/dist/{MP4Parser-ph7rv2fn.js → MP4Parser-tq7r7wd4.js} +3 -3
  19. package/dist/{MP4Parser-ph7rv2fn.js.map → MP4Parser-tq7r7wd4.js.map} +1 -1
  20. package/dist/{MatroskaParser-fjk1mpct.js → MatroskaParser-a79gsmzb.js} +3 -3
  21. package/dist/{MatroskaParser-fjk1mpct.js.map → MatroskaParser-a79gsmzb.js.map} +1 -1
  22. package/dist/{MpegParser-vp7cj8ts.js → MpegParser-zs61b3wq.js} +3 -3
  23. package/dist/{MpegParser-vp7cj8ts.js.map → MpegParser-zs61b3wq.js.map} +1 -1
  24. package/dist/{MusepackParser-v22gft1f.js → MusepackParser-bp8dm6nz.js} +3 -3
  25. package/dist/{MusepackParser-v22gft1f.js.map → MusepackParser-bp8dm6nz.js.map} +1 -1
  26. package/dist/{OggParser-as1m8xsa.js → OggParser-7pxr1sn9.js} +3 -3
  27. package/dist/{OggParser-as1m8xsa.js.map → OggParser-7pxr1sn9.js.map} +1 -1
  28. package/dist/{Picker-jkmd5xnx.js → Picker-b09hr4tk.js} +3 -3
  29. package/dist/{Picker-jkmd5xnx.js.map → Picker-b09hr4tk.js.map} +1 -1
  30. package/dist/{SessionPicker-3712ke3k.js → SessionPicker-wtfxwdxg.js} +3 -3
  31. package/dist/{SessionPicker-3712ke3k.js.map → SessionPicker-wtfxwdxg.js.map} +1 -1
  32. package/dist/{SkillBrowser-qhsyszt4.js → SkillBrowser-p9ht63c7.js} +3 -3
  33. package/dist/{SkillBrowser-qhsyszt4.js.map → SkillBrowser-p9ht63c7.js.map} +1 -1
  34. package/dist/{WavPackParser-b4qqavzg.js → WavPackParser-gpf3r92t.js} +3 -3
  35. package/dist/{WavPackParser-b4qqavzg.js.map → WavPackParser-gpf3r92t.js.map} +1 -1
  36. package/dist/{WaveParser-fqs1h38f.js → WaveParser-3kcak550.js} +3 -3
  37. package/dist/{WaveParser-fqs1h38f.js.map → WaveParser-3kcak550.js.map} +1 -1
  38. package/dist/WizardApp-494018sk.js +5 -0
  39. package/dist/{WizardApp-qrq36nv8.js.map → WizardApp-494018sk.js.map} +1 -1
  40. package/dist/{channels-gf31stv7.js → channels-yhdvxxrb.js} +14 -14
  41. package/dist/{channels-gf31stv7.js.map → channels-yhdvxxrb.js.map} +1 -1
  42. package/dist/config-g0ybmm4t.js +24 -0
  43. package/dist/{config-z2cd0c5f.js.map → config-g0ybmm4t.js.map} +1 -1
  44. package/dist/credential-pkme1sfe.js +19 -0
  45. package/dist/{credential-h0wmsjsw.js.map → credential-pkme1sfe.js.map} +1 -1
  46. package/dist/{index-dwxmy0kx.js → index-0mz7wpbw.js} +6 -6
  47. package/dist/{index-dwxmy0kx.js.map → index-0mz7wpbw.js.map} +1 -1
  48. package/dist/{index-fcqy46mh.js → index-0pddq849.js} +25 -25
  49. package/dist/{index-fcqy46mh.js.map → index-0pddq849.js.map} +1 -1
  50. package/dist/{index-2yj11ykt.js → index-1f1erzfx.js} +4 -4
  51. package/dist/{index-2yj11ykt.js.map → index-1f1erzfx.js.map} +1 -1
  52. package/dist/{index-1h9pqnec.js → index-26ejkp8q.js} +189 -189
  53. package/dist/{index-1h9pqnec.js.map → index-26ejkp8q.js.map} +7 -7
  54. package/dist/{index-ccpq4k6r.js → index-307qmvb0.js} +25 -25
  55. package/dist/{index-ccpq4k6r.js.map → index-307qmvb0.js.map} +1 -1
  56. package/dist/index-3b3h8kyh.js +5 -0
  57. package/dist/{index-3mvenfbg.js.map → index-3b3h8kyh.js.map} +1 -1
  58. package/dist/{index-0p9p6fvc.js → index-3fgq1acj.js} +10 -10
  59. package/dist/{index-0p9p6fvc.js.map → index-3fgq1acj.js.map} +3 -3
  60. package/dist/{index-dh2g58s1.js → index-4emtktc0.js} +3 -3
  61. package/dist/{index-dh2g58s1.js.map → index-4emtktc0.js.map} +1 -1
  62. package/dist/{index-026q0y3a.js → index-4t3p7vm9.js} +4 -4
  63. package/dist/{index-026q0y3a.js.map → index-4t3p7vm9.js.map} +1 -1
  64. package/dist/{index-t5d8ey5t.js → index-5m9wydxb.js} +4 -4
  65. package/dist/{index-t5d8ey5t.js.map → index-5m9wydxb.js.map} +1 -1
  66. package/dist/{index-g1d06ct5.js → index-633eqxry.js} +7 -7
  67. package/dist/{index-g1d06ct5.js.map → index-633eqxry.js.map} +1 -1
  68. package/dist/index-6r9h7ftn.js +308 -0
  69. package/dist/index-6r9h7ftn.js.map +21 -0
  70. package/dist/{index-kktaw552.js → index-7gsbzvnc.js} +2 -2
  71. package/dist/{index-z88f35vs.js → index-94k4mh6s.js} +13 -13
  72. package/dist/{index-z88f35vs.js.map → index-94k4mh6s.js.map} +3 -3
  73. package/dist/index-9dmgk6d3.js +5 -0
  74. package/dist/{index-tny7c703.js.map → index-9dmgk6d3.js.map} +1 -1
  75. package/dist/index-9qv87rq7.js +9 -0
  76. package/dist/{index-s4a28ctb.js.map → index-9qv87rq7.js.map} +1 -1
  77. package/dist/{index-k2q76dhw.js → index-a6mtqkth.js} +6 -6
  78. package/dist/{index-k2q76dhw.js.map → index-a6mtqkth.js.map} +1 -1
  79. package/dist/{index-0m0x1454.js → index-ac2wzspd.js} +4 -4
  80. package/dist/{index-0m0x1454.js.map → index-ac2wzspd.js.map} +1 -1
  81. package/dist/{index-wxmqyv4c.js → index-ad5c9t83.js} +4 -4
  82. package/dist/{index-wxmqyv4c.js.map → index-ad5c9t83.js.map} +1 -1
  83. package/dist/{index-b7qc21s7.js → index-akv6e7ge.js} +6 -6
  84. package/dist/{index-b7qc21s7.js.map → index-akv6e7ge.js.map} +1 -1
  85. package/dist/{index-v271gbaz.js → index-ec101x93.js} +4 -4
  86. package/dist/{index-v271gbaz.js.map → index-ec101x93.js.map} +1 -1
  87. package/dist/{index-rhv6gqpt.js → index-f056wkb4.js} +4 -4
  88. package/dist/{index-rhv6gqpt.js.map → index-f056wkb4.js.map} +1 -1
  89. package/dist/{index-c2qjdz4q.js → index-gqaa06yh.js} +8 -8
  90. package/dist/{index-c2qjdz4q.js.map → index-gqaa06yh.js.map} +1 -1
  91. package/dist/{index-rfa0ztab.js → index-j20k6k0m.js} +4 -4
  92. package/dist/{index-rfa0ztab.js.map → index-j20k6k0m.js.map} +1 -1
  93. package/dist/{index-2pzgta33.js → index-jh2az41t.js} +4 -4
  94. package/dist/{index-2pzgta33.js.map → index-jh2az41t.js.map} +1 -1
  95. package/dist/{index-gace5ac7.js → index-mn34kj95.js} +4 -4
  96. package/dist/{index-gace5ac7.js.map → index-mn34kj95.js.map} +1 -1
  97. package/dist/{index-rvq7t636.js → index-myg5enf5.js} +2 -2
  98. package/dist/{index-s78sq9g1.js → index-pdsey1ab.js} +45 -45
  99. package/dist/{index-s78sq9g1.js.map → index-pdsey1ab.js.map} +1 -1
  100. package/dist/{index-jmnjcw61.js → index-psk6q25h.js} +4 -4
  101. package/dist/{index-jmnjcw61.js.map → index-psk6q25h.js.map} +1 -1
  102. package/dist/{index-3s2q0m64.js → index-q8b1fc3k.js} +4 -4
  103. package/dist/{index-3s2q0m64.js.map → index-q8b1fc3k.js.map} +1 -1
  104. package/dist/{index-g8n8rhtr.js → index-qh82wtpa.js} +3 -3
  105. package/dist/{index-g8n8rhtr.js.map → index-qh82wtpa.js.map} +1 -1
  106. package/dist/{index-gqbny9gy.js → index-s2tzq27a.js} +6 -6
  107. package/dist/{index-gqbny9gy.js.map → index-s2tzq27a.js.map} +1 -1
  108. package/dist/{index-1wxw30j1.js → index-s57ztjhq.js} +35 -35
  109. package/dist/index-s57ztjhq.js.map +13 -0
  110. package/dist/{index-jv7egrh2.js → index-skkddg44.js} +4 -4
  111. package/dist/{index-jv7egrh2.js.map → index-skkddg44.js.map} +1 -1
  112. package/dist/{index-9m6b14b4.js → index-thmq816c.js} +4 -4
  113. package/dist/{index-9m6b14b4.js.map → index-thmq816c.js.map} +1 -1
  114. package/dist/{index-es4bgkbh.js → index-trx9xb59.js} +6 -6
  115. package/dist/{index-es4bgkbh.js.map → index-trx9xb59.js.map} +1 -1
  116. package/dist/{index-60jxyzbe.js → index-twcgf73h.js} +4 -4
  117. package/dist/{index-60jxyzbe.js.map → index-twcgf73h.js.map} +1 -1
  118. package/dist/index-vw2hf4d8.js +6 -0
  119. package/dist/{index-v6taf4vn.js.map → index-vw2hf4d8.js.map} +1 -1
  120. package/dist/{index-m5rmhcez.js → index-w97gprre.js} +4 -4
  121. package/dist/{index-m5rmhcez.js.map → index-w97gprre.js.map} +1 -1
  122. package/dist/index-wk6andxq.js +5 -0
  123. package/dist/{index-ak304afj.js.map → index-wk6andxq.js.map} +1 -1
  124. package/dist/index-x9z2xnct.js +11 -0
  125. package/dist/{index-5nprb9px.js.map → index-x9z2xnct.js.map} +1 -1
  126. package/dist/index-xa9crtzq.js +6 -0
  127. package/dist/{index-qe3ybzh6.js.map → index-xa9crtzq.js.map} +1 -1
  128. package/dist/{index-0v2gw4mk.js → index-y34s71qe.js} +3 -3
  129. package/dist/{index-0v2gw4mk.js.map → index-y34s71qe.js.map} +1 -1
  130. package/dist/{index-y6r1k2yd.js → index-ye2yb3xf.js} +7 -7
  131. package/dist/{index-y6r1k2yd.js.map → index-ye2yb3xf.js.map} +1 -1
  132. package/dist/{index-y605a1rj.js → index-z0dgxd7d.js} +10 -10
  133. package/dist/{index-y605a1rj.js.map → index-z0dgxd7d.js.map} +2 -2
  134. package/dist/{index-m01mb74d.js → index-zg89tq04.js} +4 -4
  135. package/dist/{index-m01mb74d.js.map → index-zg89tq04.js.map} +1 -1
  136. package/dist/{index-dgrwpzz9.js → index-zjphh8ch.js} +4 -4
  137. package/dist/{index-dgrwpzz9.js.map → index-zjphh8ch.js.map} +1 -1
  138. package/dist/index.js +172 -172
  139. package/dist/index.js.map +4 -4
  140. package/dist/transcript.d.ts.map +1 -1
  141. package/dist/web-f6869dy2.js +14 -0
  142. package/dist/{web-stkkwyka.js.map → web-f6869dy2.js.map} +1 -1
  143. package/dist/wrapper-52c0vacs.js +5 -0
  144. package/dist/{wrapper-bwxbqa53.js.map → wrapper-52c0vacs.js.map} +1 -1
  145. package/package.json +2 -2
  146. package/dist/APEv2Parser-jdp5yp24.js +0 -5
  147. package/dist/App-pmqmzsb3.js +0 -11
  148. package/dist/FlacParser-6jwner07.js +0 -5
  149. package/dist/WizardApp-qrq36nv8.js +0 -5
  150. package/dist/config-z2cd0c5f.js +0 -24
  151. package/dist/credential-h0wmsjsw.js +0 -19
  152. package/dist/index-1wxw30j1.js.map +0 -13
  153. package/dist/index-358nsn9t.js +0 -65
  154. package/dist/index-358nsn9t.js.map +0 -21
  155. package/dist/index-3mvenfbg.js +0 -5
  156. package/dist/index-5nprb9px.js +0 -11
  157. package/dist/index-ak304afj.js +0 -5
  158. package/dist/index-qe3ybzh6.js +0 -6
  159. package/dist/index-s4a28ctb.js +0 -9
  160. package/dist/index-tny7c703.js +0 -5
  161. package/dist/index-v6taf4vn.js +0 -6
  162. package/dist/web-stkkwyka.js +0 -14
  163. package/dist/wrapper-bwxbqa53.js +0 -5
  164. /package/dist/{DsdiffParser-gk95sj7t.js.map → DsdiffParser-vxnfx80c.js.map} +0 -0
  165. /package/dist/{FlacParser-6jwner07.js.map → FlacParser-bf8y3e0w.js.map} +0 -0
  166. /package/dist/{index-kktaw552.js.map → index-7gsbzvnc.js.map} +0 -0
  167. /package/dist/{index-rvq7t636.js.map → index-myg5enf5.js.map} +0 -0
@@ -1,5 +0,0 @@
1
- #!/usr/bin/env node
2
- import{qo}from"./index-dh2g58s1.js";import{Te,le,V,He,X,gA,yA,K,cA,Xe,Ce,Wt,$e,lA,QA,zt,Zt}from"./index-fcqy46mh.js";import{e}from"./index-t6xnecdx.js";var Pt=e(function(Kr){var{v4:wr}=X(),{HttpRequest:kr}=K(),qr={handle:(n,s)=>n(s)},At=(n)=>(s)=>async(a)=>{if(a.input.SessionId===void 0&&Br(n))a.input.SessionId=wr();let i={...a.input},o=await s(a),m=o.output;for(let E of Object.keys(m))if(m[E]===void 0&&i[E])m[E]=i[E];return o},Br=(n)=>n.requestHandler.metadata?.handlerProtocol?.includes("websocket"),Tt={step:"initialize",name:"injectResponseValuesMiddleware",tags:["WEBSOCKET","EVENT_STREAM"],override:!0},vt=(n)=>(s)=>(a)=>{let{request:i}=a;if(kr.isInstance(i)&&n.requestHandler.metadata?.handlerProtocol?.includes("websocket"))i.hostname=`${i.hostname}:8443`,i.headers.host=i.hostname;return s(a)},xt={name:"websocketPortMiddleware",tags:["WEBSOCKET","EVENT_STREAM","PORT"],relation:"after",toMiddleware:"eventStreamHeaderMiddleware",override:!0},Vr=(n)=>({applyToStack:(s)=>{s.addRelativeTo(vt(n),xt),s.add(At(n),Tt)}});Kr.eventStreamPayloadHandler=qr;Kr.getTranscribeStreamingPlugin=Vr;Kr.injectResponseValuesMiddleware=At;Kr.injectResponseValuesMiddlewareOptions=Tt;Kr.websocketPortMiddleware=vt;Kr.websocketPortMiddlewareOptions=xt});var{awsEndpointFunctions:Xr,emitWarningIfUnsupportedVersion:Qr,createDefaultUserAgentProvider:es,NODE_APP_ID_CONFIG_OPTIONS:ts,getAwsRegionExtensionConfiguration:ns,resolveAwsRegionExtensionConfiguration:rs,resolveUserAgentConfig:ss,resolveHostHeaderConfig:as,getUserAgentPlugin:is,getHostHeaderPlugin:os,getLoggerPlugin:cs,getRecursionDetectionPlugin:ls}=Ce(),{resolveEventStreamConfig:Ss,getEventStreamPlugin:ds}=Wt(),{resolveWebSocketConfig:ps,getWebSocketPlugin:us}=qo(),{getHttpAuthSchemeEndpointRuleSetPlugin:_s,DefaultIdentityProviderConfig:ms,getHttpSigningPlugin:Es}=Xe(),{normalizeProvider:$t,getSmithyContext:gs,ServiceException:Ms,NoOpLogger:Is,emitWarningIfUnsupportedVersion:Rs,loadConfigsForDefaultMode:Cs,getDefaultExtensionConfiguration:As,resolveDefaultRuntimeConfig:Ts,Client:Lt,makeBuilder:vs,createAggregatedClient:xs}=le(),{Command:Ps}=le();var ic=Ps,oc=Lt;var{resolveDefaultsModeConfig:bs,loadConfig:T,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:hs,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:ys,NODE_REGION_CONFIG_OPTIONS:fs,NODE_REGION_CONFIG_FILE_OPTIONS:Os,resolveRegionConfig:Ns}=V(),{BinaryDecisionDiagram:$s,EndpointCache:Ls,decideEndpoint:Ds,customEndpointFunctions:Hs,resolveEndpointConfig:Us,getEndpointPlugin:Fs}=He(),{eventStreamSerdeProvider:Gs,resolveEventStreamSerdeConfig:ws}=yA(),{parseUrl:ks,getHttpHandlerExtensionConfiguration:qs,resolveHttpHandlerRuntimeConfig:Bs,getContentLengthPlugin:Vs}=K(),{DEFAULT_RETRY_MODE:Ks,NODE_RETRY_MODE_CONFIG_OPTIONS:zs,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:Ws,resolveRetryConfig:Ys,getRetryPlugin:Zs}=cA(),{TypeRegistry:Dt,getSchemaSerdePlugin:js}=Te(),{resolveAwsSdkSigV4Config:Js,AwsSdkSigV4Signer:Xs,NODE_AUTH_SCHEME_PREFERENCE_OPTIONS:Qs}=$e(),{defaultProvider:ea}=zt(),{eventStreamPayloadHandlerProvider:ta}=Zt(),{toUtf8:na,fromUtf8:ra,toBase64:sa,fromBase64:aa,calculateBodyLength:ia}=X(),{streamCollector:oa,NodeHttp2Handler:ca}=lA(),{AwsRestJsonProtocol:la}=QA(),{Sha256:Sa}=gA(),{getTranscribeStreamingPlugin:da}=Pt(),pa=async(n,s,a)=>({operation:gs(s).operation,region:await $t(n.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function ua(n){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"transcribe",region:n.region},propertiesExtractor:(s,a)=>({signingProperties:{config:s,context:a}})}}var _a=(n)=>{let s=[];switch(n.operation){default:s.push(ua(n))}return s},ma=(n)=>{let s=Js(n);return Object.assign(s,{authSchemePreference:$t(n.authSchemePreference??[])})},Ea=(n)=>Object.assign(n,{useDualstackEndpoint:n.useDualstackEndpoint??!1,useFipsEndpoint:n.useFipsEndpoint??!1,defaultSigningName:"transcribe"}),ga={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},Ma="3.1140.0",Ia={version:Ma},Y="ref",v=-1,ae=!0,bt="isSet",Ht="PartitionResult",ie="booleanEquals",ht="getAttr",yt={[Y]:"Endpoint"},ft={[Y]:Ht},W={},Ot=[{[Y]:"Region"}],Nt={conditions:[[bt,[yt]],[bt,Ot],["aws.partition",Ot,Ht],[ie,[{[Y]:"UseFIPS"},ae]],[ie,[{[Y]:"UseDualStack"},ae]],[ie,[{fn:ht,argv:[ft,"supportsDualStack"]},ae]],[ie,[{fn:ht,argv:[ft,"supportsFIPS"]},ae]]],results:[[v],[v,"Invalid Configuration: FIPS and custom endpoint are not supported"],[v,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[yt,W],["https://transcribestreaming-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",W],[v,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://transcribestreaming-fips.{Region}.{PartitionResult#dnsSuffix}",W],[v,"FIPS is enabled but this partition does not support FIPS"],["https://transcribestreaming.{Region}.{PartitionResult#dualStackDnsSuffix}",W],[v,"DualStack is enabled but this partition does not support DualStack"],["https://transcribestreaming.{Region}.{PartitionResult#dnsSuffix}",W],[v,"Invalid Configuration: Missing Region"]]},Ra=2,c=1e8,Ca=new Int32Array([-1,1,-1,0,12,3,1,4,c+11,2,5,c+11,3,8,6,4,7,c+10,5,c+8,c+9,4,10,9,6,c+6,c+7,5,11,c+5,6,c+4,c+5,3,c+1,13,4,c+2,c+3]),Aa=$s.from(Ca,Ra,Nt.conditions,Nt.results),Ta=new Ls({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),va=(n,s={})=>Ta.get(n,()=>Ds(Aa,{endpointParams:n,logger:s.logger}));Hs.aws=Xr;class S extends Ms{constructor(n){super(n);Object.setPrototypeOf(this,S.prototype)}}class oe extends S{name="BadRequestException";$fault="client";Message;constructor(n){super({name:"BadRequestException",$fault:"client",...n});Object.setPrototypeOf(this,oe.prototype),this.Message=n.Message}}class ce extends S{name="ConflictException";$fault="client";Message;constructor(n){super({name:"ConflictException",$fault:"client",...n});Object.setPrototypeOf(this,ce.prototype),this.Message=n.Message}}class Se extends S{name="InternalFailureException";$fault="server";Message;constructor(n){super({name:"InternalFailureException",$fault:"server",...n});Object.setPrototypeOf(this,Se.prototype),this.Message=n.Message}}class de extends S{name="LimitExceededException";$fault="client";Message;constructor(n){super({name:"LimitExceededException",$fault:"client",...n});Object.setPrototypeOf(this,de.prototype),this.Message=n.Message}}class pe extends S{name="ServiceUnavailableException";$fault="server";Message;constructor(n){super({name:"ServiceUnavailableException",$fault:"server",...n});Object.setPrototypeOf(this,pe.prototype),this.Message=n.Message}}class ue extends S{name="ResourceNotFoundException";$fault="client";Message;constructor(n){super({name:"ResourceNotFoundException",$fault:"client",...n});Object.setPrototypeOf(this,ue.prototype),this.Message=n.Message}}var xa="Alternative",Ut="AudioChunk",at="AudioEvent",Pa="AlternativeList",_e="AudioStream",Ft="Alternatives",ba="Begin",Gt="BeginAudioTime",me="BeginOffsetMillis",Z="BadRequestException",it="Category",ha="CallAnalyticsEntity",ya="CallAnalyticsEntityList",fa="CallAnalyticsItem",Oa="CallAnalyticsItemList",Na="CallAnalyticsLanguageIdentification",$a="CallAnalyticsLanguageWithScore",wt="CallAnalyticsTranscriptResultStream",La="ChannelDefinition",Ee="ChannelDefinitions",j="ConflictException",kt="CategoryEvent",ot="ConfigurationEvent",J="ChannelId",b="ContentIdentificationType",qt="ClinicalNoteGenerationResult",Bt="ClinicalNoteGenerationSettings",Da="ClinicalNoteOutputLocation",Vt="CharacterOffsets",Ha="ContentRedactionOutput",ge="ContentRedactionType",g="Content",x="Confidence",Ua="DataAccessRoleArn",ct="Entities",Kt="EndAudioTime",Me="EnableChannelIdentification",Fa="EntityList",Ie="EndOffsetMillis",Re="EnablePartialResultsStabilization",Yt="EncryptionSettings",h="EndTime",Ga="End",wa="Entity",ka="FailureReason",qa="GetMedicalScribeStream",Ba="GetMedicalScribeStreamRequest",Va="GetMedicalScribeStreamResponse",Ae="Items",Ka="IssueDetected",jt="IssuesDetected",Q="InternalFailureException",ve="IdentifyLanguage",za="ItemList",Jt="IdentifyMultipleLanguages",xe="IsPartial",Wa="InputStream",Ya="Item",Za="KmsEncryptionContext",ja="KmsKeyId",l="LanguageCode",ee="LimitExceededException",lt="LanguageIdentification",Pe="LanguageModelName",be="LanguageOptions",Ja="LanguageWithScore",y="Message",Xa="MedicalAlternative",Qa="MedicalAlternativeList",ei="MatchedCategories",ti="MatchedCategoryDetails",ni="MatchedDetails",ri="MedicalEntity",si="MedicalEntityList",p="MediaEncoding",ai="MedicalItem",ii="MedicalItemList",oi="MedicalResult",ci="MedicalResultList",li="MedicalScribeAudioEvent",Xt="MedicalScribeContext",Si="MedicalScribeChannelDefinition",di="MedicalScribeChannelDefinitions",pi="MedicalScribeConfigurationEvent",ui="MedicalScribeContextProvided",_i="MedicalScribeEncryptionSettings",mi="MedicalScribeInputStream",Ei="MedicalScribePatientContext",gi="MedicalScribePostStreamAnalyticsResult",Mi="MedicalScribePostStreamAnalyticsSettings",u="MediaSampleRateHertz",Ii="MedicalScribeResultStream",Ri="MedicalScribeSessionControlEvent",Qt="MedicalScribeStreamDetails",Ci="MedicalScribeTranscriptEvent",Ai="MedicalScribeTranscriptItem",Ti="MedicalScribeTranscriptItemList",vi="MedicalScribeTranscriptSegment",xi="MedicalTranscript",Pi="MedicalTranscriptEvent",bi="MedicalTranscriptResultStream",he="NumberOfChannels",hi="NoteTemplate",yi="OutputBucketName",fi="OutputEncryptionKMSKeyId",Oi="OutputLocation",en="Pronouns",Ni="PatientContext",tn="PostCallAnalyticsSettings",ye="PiiEntityTypes",fe="PreferredLanguage",$i="PointsOfInterest",St="ParticipantRole",Oe="PartialResultsStability",Li="PostStreamAnalyticsResult",nn="PostStreamAnalyticsSettings",rn="Results",sn="ResourceAccessRoleArn",an="ResultId",Ne="RequestId",Di="ResultList",Hi="ResourceNotFoundException",Ui="ResultStream",Fi="Result",on="Stable",Gi="StreamCreatedAt",wi="StartCallAnalyticsStreamTranscription",ki="StartCallAnalyticsStreamTranscriptionRequest",qi="StartCallAnalyticsStreamTranscriptionResponse",Bi="SessionControlEvent",Vi="StreamEndedAt",d="SessionId",Ki="SegmentId",zi="StartMedicalScribeStream",Wi="StartMedicalScribeStreamRequest",Yi="StartMedicalScribeStreamResponse",Zi="StartMedicalStreamTranscription",ji="StartMedicalStreamTranscriptionRequest",Ji="StartMedicalStreamTranscriptionResponse",cn="SessionResumeWindow",Xi="StreamStatus",Le="ShowSpeakerLabel",Qi="StartStreamTranscription",eo="StartStreamTranscriptionRequest",to="StartStreamTranscriptionResponse",f="StartTime",te="ServiceUnavailableException",ln="Score",no="Sentiment",Sn="Speaker",dn="Specialty",ro="Status",O="Transcript",De="TranscriptEvent",pn="TranscriptFormat",so="TranscriptOutputLocation",un="TimestampRanges",dt="TranscriptResultStream",ao="TimestampRange",io="TranscriptSegment",_="Type",_n="UtteranceEvent",oo="UtteranceId",pt="VocabularyFilterMatch",N="VocabularyFilterMethod",L="VocabularyFilterName",Ue="VocabularyFilterNames",M="VocabularyName",Fe="VocabularyNames",Ge="client",D="error",mn="eventPayload",ne="http",H="httpError",t="httpHeader",En="smithy.ts.sdk.synthetic.com.amazonaws.transcribestreaming",gn="server",U="streaming",we="x-amzn-request-id",F="x-amzn-transcribe-content-identification-type",ke="x-amzn-transcribe-content-redaction-type",qe="x-amzn-transcribe-enable-channel-identification",Be="x-amzn-transcribe-enable-partial-results-stabilization",Ve="x-amzn-transcribe-identify-language",Mn="x-amzn-transcribe-identify-multiple-languages",I="x-amzn-transcribe-language-code",Ke="x-amzn-transcribe-language-model-name",ze="x-amzn-transcribe-language-options",R="x-amzn-transcribe-media-encoding",We="x-amzn-transcribe-number-of-channels",Ye="x-amzn-transcribe-pii-entity-types",Ze="x-amzn-transcribe-preferred-language",je="x-amzn-transcribe-partial-results-stability",In="x-amzn-transcribe-specialty",C="x-amzn-transcribe-session-id",A="x-amzn-transcribe-sample-rate",Rn="x-amzn-transcribe-session-resume-window",Je="x-amzn-transcribe-show-speaker-label",Cn="x-amzn-transcribe-type",An="x-amzn-transcribe-transcript-format",Qe="x-amzn-transcribe-vocabulary-filter-method",et="x-amzn-transcribe-vocabulary-filter-name",tt="x-amzn-transcribe-vocabulary-filter-names",G="x-amzn-transcribe-vocabulary-name",nt="x-amzn-transcribe-vocabulary-names",r="com.amazonaws.transcribestreaming",Tn=new Dt(En),vn=[-3,En,"TranscribeStreamingServiceException",0,[],[]];Tn.registerError(vn,S);var P=new Dt(r),w=[-3,r,Z,{[D]:Ge,[H]:400},[y],[0]];P.registerError(w,oe);var k=[-3,r,j,{[D]:Ge,[H]:409},[y],[0]];P.registerError(k,ce);var q=[-3,r,Q,{[D]:gn,[H]:500},[y],[0]];P.registerError(q,Se);var B=[-3,r,ee,{[D]:Ge,[H]:429},[y],[0]];P.registerError(B,de);var xn=[-3,r,Hi,{[D]:Ge,[H]:404},[y],[0]];P.registerError(xn,ue);var z=[-3,r,te,{[D]:gn,[H]:503},[y],[0]];P.registerError(z,pe);var Pn=[Tn,P],co=[0,r,en,8,0],bn=[3,r,xa,0,[O,Ae,ct],[0,()=>go,()=>mo]],hn=[3,r,at,0,[Ut],[[21,{[mn]:1}]]],yn=[3,r,ha,0,[me,Ie,it,_,g,x],[1,1,0,0,0,1]],fn=[3,r,fa,0,[me,Ie,_,g,x,pt,on],[1,1,0,0,1,2,2]],On=[3,r,$a,0,[l,ln],[0,1]],Nn=[3,r,kt,0,[ei,ni],[64,()=>Po]],$n=[3,r,La,0,[J,St],[1,0],2],Ln=[3,r,Vt,0,[ba,Ga],[1,1]],Dn=[3,r,qt,0,[Da,so,ro,ka],[0,0,0,0]],Hn=[3,r,Bt,0,[yi,hi],[0,0],1],Un=[3,r,ot,0,[Ee,tn],[()=>_o,()=>cr]],Fn=[3,r,wa,0,[f,h,it,_,g,x],[1,1,0,0,0,1]],Gn=[3,r,Ba,0,[d],[[0,1]],1],wn=[3,r,Va,0,[Qt],[()=>tr]],kn=[3,r,Ka,0,[Vt],[()=>Ln]],qn=[3,r,Ya,0,[f,h,_,g,pt,Sn,x,on],[1,1,0,0,2,0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0,()=>fn],uo=[1,r,Na,0,()=>On],_o=[1,r,Ee,0,()=>$n],mo=[1,r,Fa,0,()=>Fn],Eo=[1,r,jt,0,()=>kn],go=[1,r,za,0,()=>qn],Mo=[1,r,lt,0,()=>Bn],Io=[1,r,Qa,0,()=>Vn],Ro=[1,r,si,0,()=>Kn],Co=[1,r,ii,0,()=>zn],Ao=[1,r,ci,0,()=>Wn],Ar=[1,r,di,0,()=>Zn],To=[1,r,Ti,0,()=>rr],vo=[1,r,Di,0,()=>lr],xo=[1,r,un,0,()=>Mr],Po=[2,r,ti,0,0,()=>or],rt=[4,r,_e,{[U]:1},[at,ot],[[()=>hn,0],()=>Un]],Tr=[4,r,wt,{[U]:1},[_n,kt,Z,ee,Q,j,te],[()=>Cr,()=>Nn,[()=>w,0],[()=>B,0],[()=>q,0],[()=>k,0],[()=>z,0]]],vr=[4,r,mi,{[U]:1},[at,Bi,ot],[[()=>Yn,0],()=>er,[()=>jn,0]]],xr=[4,r,Ii,{[U]:1},[De,Z,ee,Q,j,te],[()=>nr,[()=>w,0],[()=>B,0],[()=>q,0],[()=>k,0],[()=>z,0]]],Pr=[4,r,bi,{[U]:1},[De,Z,ee,Q,j,te],[()=>ir,[()=>w,0],[()=>B,0],[()=>q,0],[()=>k,0],[()=>z,0]]],br=[4,r,dt,{[U]:1},[De,Z,ee,Q,j,te],[()=>Rr,[()=>w,0],[()=>B,0],[()=>q,0],[()=>k,0],[()=>z,0]]],hr=[9,r,qa,{[ne]:["GET","/medical-scribe-stream/{SessionId}",200]},()=>Gn,()=>wn],yr=[9,r,wi,{[ne]:["POST","/call-analytics-stream-transcription",200]},()=>Sr,()=>dr],fr=[9,r,zi,{[ne]:["POST","/medical-scribe-stream",200]},()=>pr,()=>ur],Or=[9,r,Zi,{[ne]:["POST","/medical-stream-transcription",200]},()=>_r,()=>mr],Nr=[9,r,Qi,{[ne]:["POST","/stream-transcription",200]},()=>Er,()=>gr],bo=(n)=>({apiVersion:"2017-10-26",base64Decoder:n?.base64Decoder??aa,base64Encoder:n?.base64Encoder??sa,disableHostPrefix:n?.disableHostPrefix??!1,endpointProvider:n?.endpointProvider??va,extensions:n?.extensions??[],httpAuthSchemeProvider:n?.httpAuthSchemeProvider??_a,httpAuthSchemes:n?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(s)=>s.getIdentityProvider("aws.auth#sigv4"),signer:new Xs}],logger:n?.logger??new Is,protocol:n?.protocol??la,protocolSettings:n?.protocolSettings??{defaultNamespace:"com.amazonaws.transcribestreaming",errorTypeRegistries:Pn,version:"2017-10-26",serviceTarget:"Transcribe"},serviceId:n?.serviceId??"Transcribe Streaming",sha256:n?.sha256??Sa,urlParser:n?.urlParser??ks,utf8Decoder:n?.utf8Decoder??ra,utf8Encoder:n?.utf8Encoder??na}),ho=(n)=>{Rs(process.version);let s=bs(n),a=()=>s().then(Cs),i=bo(n);Qr(process.version);let o={profile:n?.profile,logger:i.logger};return{...i,...n,runtime:"node",defaultsMode:s,authSchemePreference:n?.authSchemePreference??T(Qs,o),bodyLengthChecker:n?.bodyLengthChecker??ia,credentialDefaultProvider:n?.credentialDefaultProvider??ea,defaultUserAgentProvider:n?.defaultUserAgentProvider??es({serviceId:i.serviceId,clientVersion:Ia.version}),eventStreamPayloadHandlerProvider:n?.eventStreamPayloadHandlerProvider??ta,eventStreamSerdeProvider:n?.eventStreamSerdeProvider??Gs,maxAttempts:n?.maxAttempts??T(Ws,n),region:n?.region??T(fs,{...Os,...o}),requestHandler:ca.create(n?.requestHandler??(async()=>({...await a(),disableConcurrentStreams:!0}))),retryMode:n?.retryMode??T({...zs,default:async()=>(await a()).retryMode||Ks},n),streamCollector:n?.streamCollector??oa,useDualstackEndpoint:n?.useDualstackEndpoint??T(ys,o),useFipsEndpoint:n?.useFipsEndpoint??T(hs,o),userAgentAppId:n?.userAgentAppId??T(ts,o)}},yo=(n)=>{let{httpAuthSchemes:s,httpAuthSchemeProvider:a,credentials:i}=n;return{setHttpAuthScheme(o){let m=s.findIndex((E)=>E.schemeId===o.schemeId);if(m===-1)s.push(o);else s.splice(m,1,o)},httpAuthSchemes(){return s},setHttpAuthSchemeProvider(o){a=o},httpAuthSchemeProvider(){return a},setCredentials(o){i=o},credentials(){return i}}},fo=(n)=>({httpAuthSchemes:n.httpAuthSchemes(),httpAuthSchemeProvider:n.httpAuthSchemeProvider(),credentials:n.credentials()}),Oo=(n,s)=>{let a=Object.assign(ns(n),As(n),qs(n),yo(n));return s.forEach((i)=>i.configure(a)),Object.assign(n,rs(a),Ts(a),Bs(a),fo(a))};class mt extends Lt{config;constructor(...[n]){let s=ho(n||{});super(s);this.initConfig=s;let a=Ea(s),i=ss(a),o=Ys(i),m=Ns(o),E=as(m),$r=Us(E),Lr=ws($r),Dr=ma(Lr),Hr=Ss(Dr),Ur=ps(Hr),Fr=Oo(Ur,n?.extensions||[]);this.config=Fr,this.middlewareStack.use(js(this.config)),this.middlewareStack.use(is(this.config)),this.middlewareStack.use(Zs(this.config)),this.middlewareStack.use(Vs(this.config)),this.middlewareStack.use(os(this.config)),this.middlewareStack.use(cs(this.config)),this.middlewareStack.use(ls(this.config)),this.middlewareStack.use(_s(this.config,{httpAuthSchemeParametersProvider:pa,identityProviderConfigProvider:async(Gr)=>new ms({"aws.auth#sigv4":Gr.credentials})})),this.middlewareStack.use(Es(this.config))}destroy(){super.destroy()}}var re=vs(ga,"Transcribe","TranscribeStreamingClient",Fs),se={},No=(n,s,a,i)=>[],st=(n,s,a,i)=>[ds(a),us(a,{headerPrefix:"x-amzn-transcribe-"}),da(a)];class Et extends re(se,No,"GetMedicalScribeStream",hr){}class gt extends re(se,st,"StartCallAnalyticsStreamTranscription",yr){}class Mt extends re(se,st,"StartMedicalScribeStream",fr){}class It extends re(se,st,"StartMedicalStreamTranscription",Or){}class Rt extends re(se,st,"StartStreamTranscription",Nr){}var $o={GetMedicalScribeStreamCommand:Et,StartCallAnalyticsStreamTranscriptionCommand:gt,StartMedicalScribeStreamCommand:Mt,StartMedicalStreamTranscriptionCommand:It,StartStreamTranscriptionCommand:Rt};class Ct extends mt{}xs($o,Ct);var Lo={PRONUNCIATION:"pronunciation",PUNCTUATION:"punctuation"},Do={AGENT:"AGENT",CUSTOMER:"CUSTOMER"},Ho={REDACTED:"redacted",REDACTED_AND_UNREDACTED:"redacted_and_unredacted"},Uo={DE_DE:"de-DE",EN_AU:"en-AU",EN_GB:"en-GB",EN_US:"en-US",ES_US:"es-US",FR_CA:"fr-CA",FR_FR:"fr-FR",IT_IT:"it-IT",PT_BR:"pt-BR"},Fo={MIXED:"MIXED",NEGATIVE:"NEGATIVE",NEUTRAL:"NEUTRAL",POSITIVE:"POSITIVE"},Go={COMPLETED:"COMPLETED",FAILED:"FAILED",IN_PROGRESS:"IN_PROGRESS"},wo={BEHAVIORAL_SOAP:"BEHAVIORAL_SOAP",BIRP:"BIRP",DAP:"DAP",GIRPP:"GIRPP",HISTORY_AND_PHYSICAL:"HISTORY_AND_PHYSICAL",PHYSICAL_SOAP:"PHYSICAL_SOAP",SIRP:"SIRP"},ko={PII:"PII"},Bo={PII:"PII"},Vo={CLINICIAN:"CLINICIAN",PATIENT:"PATIENT"},Ko={EN_US:"en-US"},zo={FLAC:"flac",OGG_OPUS:"ogg-opus",PCM:"pcm"},Wo={COMPLETED:"COMPLETED",FAILED:"FAILED",IN_PROGRESS:"IN_PROGRESS",PAUSED:"PAUSED"},Yo={MASK:"mask",REMOVE:"remove",TAG:"tag"},Zo={AF_ZA:"af-ZA",AM_ET:"am-ET",AR_AE:"ar-AE",AR_SA:"ar-SA",BE_BY:"be-BY",BG_BG:"bg-BG",BN_IN:"bn-IN",BS_BA:"bs-BA",CA_ES:"ca-ES",CKB_IQ:"ckb-IQ",CKB_IR:"ckb-IR",CS_CZ:"cs-CZ",CY_WL:"cy-WL",DA_DK:"da-DK",DE_CH:"de-CH",DE_DE:"de-DE",EL_GR:"el-GR",EN_AB:"en-AB",EN_AU:"en-AU",EN_GB:"en-GB",EN_IE:"en-IE",EN_IN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It,Vl=_r,Kl=mr,zl=Nr,Wl=Rt,Yl=Er,Zl=gr,jl=Mr,Jl=Ct,Xl=mt,Ql=S,eS=vn,tS=Ir,nS=Rr,rS=ac,sS=br,aS=sc,iS=Cr,oS=rc,cS=Pn;export{ic as $Command,oc as __Client,cc as Alternative$,lc as AudioEvent$,Sc as AudioStream$,dc as BadRequestException,pc as BadRequestException$,uc as CallAnalyticsEntity$,_c as CallAnalyticsItem$,mc as CallAnalyticsLanguageCode,Ec as CallAnalyticsLanguageWithScore$,gc as CallAnalyticsTranscriptResultStream$,Mc as CategoryEvent$,Ic as ChannelDefinition$,Rc as CharacterOffsets$,Cc as ClinicalNoteGenerationResult$,Ac as ClinicalNoteGenerationSettings$,Tc as ClinicalNoteGenerationStatus,vc as ConfigurationEvent$,xc as ConflictException,Pc as ConflictException$,bc as ContentIdentificationType,hc as ContentRedactionOutput,yc as ContentRedactionType,fc as Entity$,Oc as GetMedicalScribeStream$,Nc as GetMedicalScribeStreamCommand,$c as GetMedicalScribeStreamRequest$,Lc as GetMedicalScribeStreamResponse$,Dc as InternalFailureException,Hc as InternalFailureException$,Uc as IssueDetected$,Fc as Item$,Gc as ItemType,wc as LanguageCode,kc as LanguageWithScore$,qc as LimitExceededException,Bc as LimitExceededException$,Vc as MediaEncoding,Kc as MedicalAlternative$,zc as MedicalContentIdentificationType,Wc as MedicalEntity$,Yc as MedicalItem$,Zc as MedicalResult$,jc as MedicalScribeAudioEvent$,Jc as MedicalScribeChannelDefinition$,Xc as MedicalScribeConfigurationEvent$,Qc as MedicalScribeContext$,el as MedicalScribeEncryptionSettings$,tl as MedicalScribeInputStream$,nl as MedicalScribeLanguageCode,rl as MedicalScribeMediaEncoding,sl as MedicalScribeNoteTemplate,al as MedicalScribeParticipantRole,il as MedicalScribePatientContext$,ol as MedicalScribePostStreamAnalyticsResult$,cl as MedicalScribePostStreamAnalyticsSettings$,ll as MedicalScribeResultStream$,Sl as MedicalScribeSessionControlEvent$,dl as MedicalScribeSessionControlEventType,pl as MedicalScribeStreamDetails$,ul as MedicalScribeStreamStatus,_l as MedicalScribeTranscriptEvent$,ml as MedicalScribeTranscriptItem$,El as MedicalScribeTranscriptItemType,gl as MedicalScribeTranscriptSegment$,Ml as MedicalScribeVocabularyFilterMethod,Il as MedicalTranscript$,Rl as MedicalTranscriptEvent$,Cl as MedicalTranscriptResultStream$,Al as PartialResultsStability,Tl as ParticipantRole,vl as PointsOfInterest$,xl as PostCallAnalyticsSettings$,Pl as Pronouns,bl as ResourceNotFoundException,hl as ResourceNotFoundException$,yl as Result$,fl as Sentiment,Ol as ServiceUnavailableException,Nl as ServiceUnavailableException$,$l as Specialty,Ll as StartCallAnalyticsStreamTranscription$,Dl as StartCallAnalyticsStreamTranscriptionCommand,Hl as StartCallAnalyticsStreamTranscriptionRequest$,Ul as StartCallAnalyticsStreamTranscriptionResponse$,Fl as StartMedicalScribeStream$,Gl as StartMedicalScribeStreamCommand,wl as StartMedicalScribeStreamRequest$,kl as StartMedicalScribeStreamResponse$,ql as StartMedicalStreamTranscription$,Bl as StartMedicalStreamTranscriptionCommand,Vl as StartMedicalStreamTranscriptionRequest$,Kl as StartMedicalStreamTranscriptionResponse$,zl as StartStreamTranscription$,Wl as StartStreamTranscriptionCommand,Yl as StartStreamTranscriptionRequest$,Zl as StartStreamTranscriptionResponse$,jl as TimestampRange$,Jl as TranscribeStreaming,Xl as TranscribeStreamingClient,Ql as TranscribeStreamingServiceException,eS as TranscribeStreamingServiceException$,tS as Transcript$,nS as TranscriptEvent$,rS as TranscriptFormat,sS as TranscriptResultStream$,aS as Type,iS as UtteranceEvent$,oS as VocabularyFilterMethod,cS as errorTypeRegistries};
3
-
4
- //# debugId=8C57CDB3404BEA1664756E2164756E21
5
- //# sourceMappingURL=index-3mvenfbg.js.map
@@ -1,11 +0,0 @@
1
- #!/usr/bin/env node
2
- import{t,We,fn,sA}from"./index-1h9pqnec.js";import{Xr}from"./index-y605a1rj.js";import{oe,Ie}from"./index-358nsn9t.js";import{chmodSync as y,existsSync as _,readFileSync as p,statSync as x,writeFileSync as A}from"node:fs";import{dirname as E,join as b}from"node:path";function u(e){if(!(e===""||/^["']/.test(e)||/\s/.test(e)||e.includes("#")||e!==e.trim()))return e;return`"${e.replace(/\\/g,"\\\\").replace(/"/g,"\\\"").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t")}"`}function f(e,n,o){let r=`${n}=${u(o)}`,i=e.split(`
3
- `),l=new RegExp(`^\\s*(?:export\\s+)?${n}\\s*=`),a=i.findIndex((d)=>l.test(d));if(a!==-1){let d=i[a]??"",g=/^\s*export\s+/.exec(d)?.[0]??"";return{text:[...i.slice(0,a),`${g}${r}`,...i.slice(a+1)].join(`
4
- `),replaced:!0}}let c=e.replace(/\n+$/,"");return{text:c===""?`${r}
5
- `:`${c}
6
- ${r}
7
- `,replaced:!1}}function Fr(e){return b(E(e),".env")}async function zn(e,n,o){let r=fn(o),i=await We({file:e,path:n.split("."),value:r,providers:oe,mediaProviders:Ie});return{note:`${n} is now ${S(r)}`,reflowed:i.reflowed,before:i.before}}async function Zn(e,n,o){let r=p(e,"utf8"),i=sA(r,["channels"]);if(!Array.isArray(i))throw new t({code:"cli_config_no_channels",message:"This agent has no channels, so there is nobody to allow.",hint:"`config set <agent> channels '[{type: telegram, id: tg, tokenEnv: TELEGRAM_BOT_TOKEN, mode: longpoll}]'` declares one first."});let l=i.filter((s)=>typeof s==="object"&&s!==null&&!Array.isArray(s)),a=l.findIndex((s)=>String(s.id??"")===n);if(a===-1)throw new t({code:"cli_config_channel_unknown",message:`No channel with id "${n}".`,hint:`Declared: ${l.map((s)=>String(s.id??"")).join(", ")}.`,field:"channel"});let c=l[a],d=o.map((s)=>Ur(s,String(c.type??""))),g=[...new Set(d)],m=Array.isArray(c.allowFrom)?c.allowFrom.map(String):[],h=await We({file:e,path:["channels"],value:l.map((s,w)=>w===a?{...s,allowFrom:g}:s)});return{note:g.length===0?`${n} now allows nobody, which refuses every message`:`${n} now allows ${g.join(", ")}`,reflowed:h.reflowed,before:m}}function Ye(e,n,o){if(!/^[A-Za-z_][A-Za-z0-9_]*$/.test(n))throw new t({code:"cli_config_env_name_invalid",message:`"${n}" is not an environment variable name.`,hint:"Letters, digits and underscores, not starting with a digit — MODEL_API_KEY, TELEGRAM_BOT_TOKEN.",field:"name"});if(o==="")throw new t({code:"cli_config_env_empty",message:`An empty value for ${n} would not start the agent.`,hint:"A variable set to nothing fails the load exactly as a missing one does. Nothing was written."});let r=Fr(e),i=_(r)?p(r,"utf8"):"",l=f(i,n,o);A(r,l.text,{encoding:"utf8",mode:384});let a=(x(r).mode&63)!==0;if(a)y(r,384);return{note:`${n} ${l.replaced?"replaced":"written"} in ${r}${a?" (tightened to 0600)":""}`,reflowed:!1,before:void 0}}function Ur(e,n){let o=e.trim();if(o==="")throw new t({code:"cli_config_handle_missing",message:"No handle given.",hint:"On Telegram that is the username, not the display name.",field:"handle"});if(n!=="telegram")return o;let r=Xr(o);if(!r.ok)throw new t({code:"cli_config_handle_invalid",message:`"${o}" ${r.reason}`,hint:"A handle that cannot exist matches nobody, and the only symptom is the bot silently refusing every message from the person it was set up for.",field:"handle"});return r.value}function S(e){if(e==="")return"empty";if(typeof e==="string")return e;return JSON.stringify(e)}
8
- export{Fr,zn,Zn,Ye,Ur};
9
-
10
- //# debugId=161BDD0F8EFA380E64756E2164756E21
11
- //# sourceMappingURL=index-5nprb9px.js.map
@@ -1,5 +0,0 @@
1
- #!/usr/bin/env node
2
- import{qo}from"./index-dh2g58s1.js";import{Te,le,V,He,X,gA,yA,K,cA,Xe,Ce,Wt,$e,lA,QA,bn,zt,Zt}from"./index-fcqy46mh.js";import{e,c}from"./index-t6xnecdx.js";var ko=e(function(ki){var{setTokenFeature:ci}=Ce(),{getBearerTokenEnvKey:li}=$e(),{TokenProviderError:g,getSSOTokenFilepath:ui,parseKnownFiles:di,getProfileName:Ci,loadSsoSessionData:pi,getSSOTokenFromFile:_i,memoize:Si,chain:mi}=V(),{promises:Ri}=c("node:fs"),vi=({logger:o,signingName:n}={})=>async()=>{if(o?.debug?.("@aws-sdk/token-providers - fromEnvSigningName"),!n)throw new g("Please pass 'signingName' to compute environment variable key",{logger:o});let r=li(n);if(!(r in process.env))throw new g(`Token not present in '${r}' environment variable`,{logger:o});let s={token:process.env[r]};return ci(s,"BEARER_SERVICE_ENV_VARS","3"),s},Ei=async(o,n={},r)=>{let{SSOOIDCClient:s}=bn(),l=(R)=>n.clientConfig?.[R]??n.parentClientConfig?.[R]??r?.[R];return new s(Object.assign({},n.clientConfig??{},{region:o??n.clientConfig?.region,logger:l("logger"),userAgentAppId:l("userAgentAppId")}))},Ai=async(o,n,r={},s)=>{let{CreateTokenCommand:l}=bn();return(await Ei(n,r,s)).send(new l({clientId:o.clientId,clientSecret:o.clientSecret,refreshToken:o.refreshToken,grantType:"refresh_token"}))},Io=(o)=>{if(o.expiration&&o.expiration.getTime()<Date.now())throw new g("Token is expired. To refresh this SSO session run 'aws sso login' with the corresponding profile.",!1)},D=(o,n,r=!1)=>{if(typeof n>"u")throw new g(`Value not present for '${o}' in SSO Token${r?". Cannot refresh":""}. To refresh this SSO session run 'aws sso login' with the corresponding profile.`,!1)},{writeFile:gi}=Ri,Ii=(o,n)=>{let r=ui(o),s=JSON.stringify(n,null,2);return gi(r,s)},To=new Map,Go=(o={})=>async({callerClientConfig:n}={})=>{o.logger?.debug("@aws-sdk/token-providers - fromSso");let r=await di(o),s=Ci({profile:o.profile??n?.profile}),l=r[s];if(!l)throw new g(`Profile '${s}' could not be found in shared credentials file.`,!1);else if(!l.sso_session)throw new g(`Profile '${s}' is missing required property 'sso_session'.`);let a=l.sso_session,N=(await pi(o))[a];if(!N)throw new g(`Sso session '${a}' could not be found in shared credentials file.`,!1);for(let A of["sso_start_url","sso_region"])if(!N[A])throw new g(`Sso session '${a}' is missing required property '${A}'.`,!1);N.sso_start_url;let at=N.sso_region,E;try{E=await _i(a)}catch(A){throw new g(`The SSO session token associated with profile=${s} was not found or is invalid. To refresh this SSO session run 'aws sso login' with the corresponding profile.`,!1)}D("accessToken",E.accessToken),D("expiresAt",E.expiresAt);let{accessToken:it,expiresAt:ct}=E,B={token:it,expiration:new Date(ct)};if(B.expiration.getTime()-Date.now()>300000)return B;let Se=To.get(a)??0;if(Date.now()-Se<30000)return Io(B),B;D("clientId",E.clientId,!0),D("clientSecret",E.clientSecret,!0),D("refreshToken",E.refreshToken,!0);try{To.set(a,Date.now());let A=await Ai(E,at,o,n);D("accessToken",A.accessToken),D("expiresIn",A.expiresIn);let go=new Date(Date.now()+A.expiresIn*1000);try{await Ii(a,{...E,accessToken:A.accessToken,expiresAt:go.toISOString(),refreshToken:A.refreshToken})}catch(EI){}return{token:A.accessToken,expiration:go}}catch(A){return Io(B),B}},Ti=({token:o,logger:n})=>async()=>{if(n?.debug("@aws-sdk/token-providers - fromStatic"),!o||!o.token)throw new g("Please pass a valid token to fromStatic",!1);return o},Gi=(o={})=>Si(mi(Go(o),async()=>{throw new g("Could not load token from any providers",!1)}),(n)=>n.expiration!==void 0&&n.expiration.getTime()-Date.now()<300000,(n)=>n.expiration!==void 0);ki.fromEnvSigningName=vi;ki.fromSso=Go;ki.fromStatic=Ti;ki.nodeProvider=Gi});var{awsEndpointFunctions:Ni,emitWarningIfUnsupportedVersion:fi,createDefaultUserAgentProvider:Bi,NODE_APP_ID_CONFIG_OPTIONS:yi,getAwsRegionExtensionConfiguration:Oi,resolveAwsRegionExtensionConfiguration:Di,resolveUserAgentConfig:Mi,resolveHostHeaderConfig:Li,getUserAgentPlugin:Ui,getHostHeaderPlugin:Fi,getLoggerPlugin:wi,getRecursionDetectionPlugin:Wi}=Ce(),{resolveEventStreamConfig:bi,getEventStreamPlugin:Vi}=Wt(),{resolveWebSocketConfig:qi,getWebSocketPlugin:Hi}=qo(),{memoizeIdentityProvider:Ki,isIdentityExpired:Xi,doesIdentityRequireRefresh:Yi,HttpBearerAuthSigner:Fo,getHttpAuthSchemeEndpointRuleSetPlugin:ji,DefaultIdentityProviderConfig:Qi,getHttpSigningPlugin:zi,createPaginator:Ji}=Xe(),{normalizeProvider:wo,getSmithyContext:Zi,ServiceException:ec,NoOpLogger:tc,emitWarningIfUnsupportedVersion:oc,loadConfigsForDefaultMode:nc,getDefaultExtensionConfiguration:rc,resolveDefaultRuntimeConfig:sc,Client:Wo,makeBuilder:ac,createAggregatedClient:ic}=le(),{Command:cc}=le();var rv=cc,sv=Wo;var{resolveDefaultsModeConfig:lc,loadConfig:M,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:uc,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:dc,NODE_REGION_CONFIG_OPTIONS:Cc,NODE_REGION_CONFIG_FILE_OPTIONS:pc,resolveRegionConfig:_c}=V(),{BinaryDecisionDiagram:Sc,EndpointCache:mc,decideEndpoint:Rc,customEndpointFunctions:vc,resolveEndpointConfig:Ec,getEndpointPlugin:Ac}=He(),{eventStreamSerdeProvider:gc,resolveEventStreamSerdeConfig:Ic}=yA(),{parseUrl:Tc,getHttpHandlerExtensionConfiguration:Gc,resolveHttpHandlerRuntimeConfig:kc,getContentLengthPlugin:xc}=K(),{DEFAULT_RETRY_MODE:$c,NODE_RETRY_MODE_CONFIG_OPTIONS:hc,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:Pc,resolveRetryConfig:Nc,getRetryPlugin:fc}=cA(),{TypeRegistry:bo,getSchemaSerdePlugin:Bc}=Te(),{resolveAwsSdkSigV4Config:yc,AwsSdkSigV4Signer:Vo,NODE_AUTH_SCHEME_PREFERENCE_OPTIONS:Oc}=$e(),{defaultProvider:Dc}=zt(),{eventStreamPayloadHandlerProvider:Mc}=Zt(),{fromEnvSigningName:Lc,nodeProvider:Uc}=ko(),{toUtf8:Fc,fromUtf8:wc,toBase64:Wc,fromBase64:bc,calculateBodyLength:Vc}=X(),{streamCollector:qc,NodeHttp2Handler:Hc}=lA(),{AwsRestJsonProtocol:Kc}=QA(),{Sha256:Xc}=gA(),Yc=async(o,n,r)=>({operation:Zi(n).operation,region:await wo(o.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function jc(o){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"bedrock",region:o.region},propertiesExtractor:(n,r)=>({signingProperties:{config:n,context:r}})}}function Qc(o){return{schemeId:"smithy.api#httpBearerAuth",propertiesExtractor:({profile:n,filepath:r,configFilepath:s,ignoreCache:l},a)=>({identityProperties:{profile:n,filepath:r,configFilepath:s,ignoreCache:l}})}}var zc=(o)=>{let n=[];switch(o.operation){default:n.push(jc(o)),n.push(Qc())}return n},Jc=(o)=>{let n=Ki(o.token,Xi,Yi),r=yc(o);return Object.assign(r,{authSchemePreference:wo(o.authSchemePreference??[]),token:n})},Zc=(o)=>Object.assign(o,{useDualstackEndpoint:o.useDualstackEndpoint??!1,useFipsEndpoint:o.useFipsEndpoint??!1,defaultSigningName:"bedrock"}),el={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},tl="3.1140.0",ol={version:tl},J="ref",L=-1,me=!0,xo="isSet",Ho="PartitionResult",Re="booleanEquals",$o="getAttr",ho={[J]:"Endpoint"},Po={[J]:Ho},z={},No=[{[J]:"Region"}],fo={conditions:[[xo,[ho]],[xo,No],["aws.partition",No,Ho],[Re,[{[J]:"UseFIPS"},me]],[Re,[{[J]:"UseDualStack"},me]],[Re,[{fn:$o,argv:[Po,"supportsDualStack"]},me]],[Re,[{fn:$o,argv:[Po,"supportsFIPS"]},me]]],results:[[L],[L,"Invalid Configuration: FIPS and custom endpoint are not supported"],[L,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[ho,z],["https://bedrock-runtime-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",z],[L,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://bedrock-runtime-fips.{Region}.{PartitionResult#dnsSuffix}",z],[L,"FIPS is enabled but this partition does not support FIPS"],["https://bedrock-runtime.{Region}.{PartitionResult#dualStackDnsSuffix}",z],[L,"DualStack is enabled but this partition does not support DualStack"],["https://bedrock-runtime.{Region}.{PartitionResult#dnsSuffix}",z],[L,"Invalid Configuration: Missing Region"]]},nl=2,S=1e8,rl=new Int32Array([-1,1,-1,0,12,3,1,4,S+11,2,5,S+11,3,8,6,4,7,S+10,5,S+8,S+9,4,10,9,6,S+6,S+7,5,11,S+5,6,S+4,S+5,3,S+1,13,4,S+2,S+3]),sl=Sc.from(rl,nl,fo.conditions,fo.results),al=new mc({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),il=(o,n={})=>al.get(o,()=>Rc(sl,{endpointParams:o,logger:n.logger}));vc.aws=Ni;class d extends ec{constructor(o){super(o);Object.setPrototypeOf(this,d.prototype)}}class ve extends d{name="AccessDeniedException";$fault="client";constructor(o){super({name:"AccessDeniedException",$fault:"client",...o});Object.setPrototypeOf(this,ve.prototype)}}class Ee extends d{name="InternalServerException";$fault="server";constructor(o){super({name:"InternalServerException",$fault:"server",...o});Object.setPrototypeOf(this,Ee.prototype)}}class Ae extends d{name="ThrottlingException";$fault="client";constructor(o){super({name:"ThrottlingException",$fault:"client",...o});Object.setPrototypeOf(this,Ae.prototype)}}class ge extends d{name="ValidationException";$fault="client";constructor(o){super({name:"ValidationException",$fault:"client",...o});Object.setPrototypeOf(this,ge.prototype)}}class Ie extends d{name="ConflictException";$fault="client";constructor(o){super({name:"ConflictException",$fault:"client",...o});Object.setPrototypeOf(this,Ie.prototype)}}class Ge extends d{name="ResourceNotFoundException";$fault="client";constructor(o){super({name:"ResourceNotFoundException",$fault:"client",...o});Object.setPrototypeOf(this,Ge.prototype)}}class ke extends d{name="ServiceQuotaExceededException";$fault="client";constructor(o){super({name:"ServiceQuotaExceededException",$fault:"client",...o});Object.setPrototypeOf(this,ke.prototype)}}class xe extends d{name="ServiceUnavailableException";$fault="server";constructor(o){super({name:"ServiceUnavailableException",$fault:"server",...o});Object.setPrototypeOf(this,xe.prototype)}}class he extends d{name="ModelErrorException";$fault="client";originalStatusCode;resourceName;constructor(o){super({name:"ModelErrorException",$fault:"client",...o});Object.setPrototypeOf(this,he.prototype),this.originalStatusCode=o.originalStatusCode,this.resourceName=o.resourceName}}class Pe extends d{name="ModelNotReadyException";$fault="client";$retryable={};constructor(o){super({name:"ModelNotReadyException",$fault:"client",...o});Object.setPrototypeOf(this,Pe.prototype)}}class Ne extends d{name="ModelTimeoutException";$fault="client";constructor(o){super({name:"ModelTimeoutException",$fault:"client",...o});Object.setPrototypeOf(this,Ne.prototype)}}class fe extends d{name="ModelStreamErrorException";$fault="client";originalStatusCode;originalMessage;constructor(o){super({name:"ModelStreamErrorException",$fault:"client",...o});Object.setPrototypeOf(this,fe.prototype),this.originalStatusCode=o.originalStatusCode,this.originalMessage=o.originalMessage}}var cl="Accept",ll="AudioBlock",ul="AccessDeniedException",dl="ApplyGuardrail",Cl="AppliedGuardrailDetails",pl="ApplyGuardrailRequest",_l="ApplyGuardrailResponse",Sl="AsyncInvokeMessage",ml="AsyncInvokeOutputDataConfig",Rl="AsyncInvokeSummary",vl="AsyncInvokeS3OutputDataConfig",El="AsyncInvokeSummaries",Al="AudioSource",gl="AnyToolChoice",Il="AutoToolChoice",Tl="Body",Gl="BidirectionalInputPayloadPart",kl="BidirectionalOutputPayloadPart",xl="Citation",$l="ContentBlocks",hl="ContentBlockDelta",Pl="ContentBlockDeltaEvent",Nl="ContentBlockStart",fl="ContentBlockStartEvent",Bl="ContentBlockStopEvent",yl="ContentBlock",Ol="CitationsConfig",Dl="CitationsContentBlock",Ml="CacheDetail",Ll="CacheDetailsList",Ul="CitationsDelta",Fl="ConflictException",wl="CitationGeneratedContent",Wl="CitationGeneratedContentList",bl="CitationLocation",Vl="ConverseMetrics",ql="ConverseOutput",Hl="CachePointBlock",Kl="ConverseRequest",Xl="ConverseResponse",Yl="ConverseStream",jl="CitationSourceContent",Ql="CitationSourceContentDelta",zl="CitationSourceContentList",Jl="CitationSourceContentListDelta",Zl="ConverseStreamMetrics",eu="ConverseStreamMetadataEvent",tu="ConverseStreamOutput",ou="ConverseStreamRequest",nu="ConverseStreamResponse",ru="ConverseStreamTrace",su="ConverseTrace",au="CountTokensInput",iu="ConverseTokensRequest",cu="CountTokensRequest",lu="CountTokensResponse",ut="Content-Type",uu="CountTokens",du="Citations",Cu="Converse",pu="DocumentBlock",_u="DocumentContentBlocks",Su="DocumentContentBlock",mu="DocumentCharLocation",Ru="DocumentChunkLocation",vu="DocumentPageLocation",Eu="DocumentSource",Au="ErrorBlock",gu="GuardrailAssessment",Iu="GetAsyncInvoke",Tu="GetAsyncInvokeRequest",Gu="GetAsyncInvokeResponse",ku="GuardrailAssessmentList",xu="GuardrailAssessmentListMap",$u="GuardrailAssessmentMap",hu="GuardrailAutomatedReasoningDifferenceScenarioList",Pu="GuardrailAutomatedReasoningFinding",Nu="GuardrailAutomatedReasoningFindingList",fu="GuardrailAutomatedReasoningImpossibleFinding",Bu="GuardrailAutomatedReasoningInvalidFinding",yu="GuardrailAutomatedReasoningInputTextReference",Ou="GuardrailAutomatedReasoningInputTextReferenceList",Du="GuardrailAutomatedReasoningLogicWarning",Mu="GuardrailAutomatedReasoningNoTranslationsFinding",Lu="GuardrailAutomatedReasoningPolicyAssessment",Uu="GuardrailAutomatedReasoningRule",Fu="GuardrailAutomatedReasoningRuleList",wu="GuardrailAutomatedReasoningScenario",Wu="GuardrailAutomatedReasoningSatisfiableFinding",bu="GuardrailAutomatedReasoningStatementList",Vu="GuardrailAutomatedReasoningStatementLogicContent",qu="GuardrailAutomatedReasoningStatementNaturalLanguageContent",Hu="GuardrailAutomatedReasoningStatement",Ku="GuardrailAutomatedReasoningTranslation",Xu="GuardrailAutomatedReasoningTranslationAmbiguousFinding",Yu="GuardrailAutomatedReasoningTooComplexFinding",ju="GuardrailAutomatedReasoningTranslationList",Qu="GuardrailAutomatedReasoningTranslationOption",zu="GuardrailAutomatedReasoningTranslationOptionList",Ju="GuardrailAutomatedReasoningValidFinding",Zu="GuardrailConfiguration",ed="GuardrailContentBlock",td="GuardrailContentBlockList",od="GuardrailChecksConfig",nd="GuardrailChecksContentBlock",rd="GuardrailChecksContentBlockList",sd="GuardrailConverseContentBlock",ad="GuardrailChecksContentFilterConfig",id="GuardrailChecksContentFilterCategoryConfig",cd="GuardrailChecksContentFilterCategoryConfigList",ld="GuardrailChecksContentFilterResult",ud="GuardrailChecksContentFilterResultEntry",dd="GuardrailChecksContentFilterResultList",Cd="GuardrailChecksContentFilterUsage",pd="GuardrailContentFilter",_d="GuardrailContentFilterList",Sd="GuardrailContextualGroundingFilter",md="GuardrailContextualGroundingFilters",Rd="GuardrailContextualGroundingPolicyAssessment",vd="GuardrailConverseImageBlock",Ed="GuardrailConverseImageSource",Ad="GuardrailChecksMessage",gd="GuardrailChecksMessageList",Id="GuardrailContentPolicyAssessment",Td="GuardrailChecksPromptAttackConfig",Gd="GuardrailChecksPromptAttackCategoryConfig",kd="GuardrailChecksPromptAttackCategoryConfigList",xd="GuardrailChecksPromptAttackResult",$d="GuardrailChecksPromptAttackResultEntry",hd="GuardrailChecksPromptAttackResultList",Pd="GuardrailChecksPromptAttackUsage",Nd="GuardrailChecksResults",fd="GuardrailChecksSensitiveInformationConfig",Bd="GuardrailChecksSensitiveInformationEntityConfig",yd="GuardrailChecksSensitiveInformationEntityConfigList",Od="GuardrailChecksSensitiveInformationResult",Dd="GuardrailChecksSensitiveInformationResultEntry",Md="GuardrailChecksSensitiveInformationResultList",Ld="GuardrailChecksSensitiveInformationUsage",Ud="GuardrailConverseTextBlock",Fd="GuardrailChecksTextContent",wd="GuardrailChecksUsageResults",Wd="GuardrailCustomWord",bd="GuardrailCustomWordList",Vd="GuardrailCoverage",qd="GuardrailImageBlock",Hd="GuardrailImageCoverage",Kd="GuardrailInvocationMetrics",Xd="GuardrailImageSource",Yd="GuardrailManagedWord",jd="GuardrailManagedWordList",Qd="GuardrailOutputContent",zd="GuardrailOutputContentList",Jd="GuardrailPiiEntityFilter",Zd="GuardrailPiiEntityFilterList",eC="GuardrailRegexFilter",tC="GuardrailRegexFilterList",oC="GuardrailStreamConfiguration",nC="GuardrailSensitiveInformationPolicyAssessment",rC="GuardrailTopic",sC="GuardrailTraceAssessment",aC="GuardrailTextBlock",iC="GuardrailTextCharactersCoverage",cC="GuardrailTopicList",lC="GuardrailTopicPolicyAssessment",uC="GuardrailUsage",dC="GuardrailWordPolicyAssessment",CC="ImageBlock",pC="ImageBlockDelta",_C="ImageBlockStart",SC="InferenceConfiguration",mC="InvokeGuardrailChecks",RC="InvokeGuardrailChecksRequest",vC="InvokeGuardrailChecksResponse",EC="InvokeModel",AC="InvokeModelRequest",gC="InvokeModelResponse",IC="InvokeModelTokensRequest",TC="InvokeModelWithBidirectionalStream",GC="InvokeModelWithBidirectionalStreamInput",kC="InvokeModelWithBidirectionalStreamOutput",xC="InvokeModelWithBidirectionalStreamRequest",$C="InvokeModelWithBidirectionalStreamResponse",hC="InvokeModelWithResponseStream",PC="InvokeModelWithResponseStreamRequest",NC="InvokeModelWithResponseStreamResponse",fC="ImageSource",BC="InternalServerException",yC="JsonSchemaDefinition",OC="ListAsyncInvokes",DC="ListAsyncInvokesRequest",MC="ListAsyncInvokesResponse",LC="Message",UC="ModelErrorException",FC="ModelInputPayload",wC="ModelNotReadyException",WC="MessageStartEvent",bC="ModelStreamErrorException",VC="MessageStopEvent",qC="ModelTimeoutException",HC="Messages",KC="OutputConfig",XC="OutputFormat",YC="OutputFormatStructure",jC="PartBody",QC="PerformanceConfiguration",zC="PayloadPart",JC="PromptRouterTrace",ZC="PromptVariableMap",ep="PromptVariableValues",tp="ReasoningContentBlock",op="ReasoningContentBlockDelta",np="RequestMetadata",rp="RequestMetadataJson",sp="ResourceNotFoundException",ap="ResponseStream",ip="ReasoningTextBlock",cp="StartAsyncInvoke",lp="StartAsyncInvokeRequest",up="StartAsyncInvokeResponse",dp="SystemContentBlocks",Cp="SystemContentBlock",pp="S3Location",_p="ServiceQuotaExceededException",Sp="SearchResultBlock",mp="SearchResultContentBlock",Rp="SearchResultContentBlocks",vp="SearchResultLocation",Ep="ServiceTier",Ap="SpecificToolChoice",gp="SystemTool",Ip="ServiceUnavailableException",Tp="Tag",Gp="ToolAdditionBlock",kp="ToolConfiguration",xp="ToolChoice",$p="ThrottlingException",hp="ToolInputSchema",Pp="TagList",Np="ToolReference",fp="ToolRemovalBlock",Bp="ToolResultBlocksDelta",yp="ToolResultBlockDelta",Op="ToolResultBlockStart",Dp="ToolResultBlock",Mp="ToolResultContentBlocks",Lp="ToolResultContentBlock",Up="ToolSpecification",Fp="TokenUsage",wp="ToolUseBlock",Wp="ToolUseBlockDelta",bp="ToolUseBlockStart",Vp="Tools",qp="Tool",Hp="VideoBlock",Kp="ValidationException",Xp="VideoSource",Yp="WebLocation",jp="X-Amzn-Bedrock-Accept",Qp="X-Amzn-Bedrock-Content-Type",Ko="X-Amzn-Bedrock-GuardrailIdentifier",Xo="X-Amzn-Bedrock-GuardrailVersion",Be="X-Amzn-Bedrock-PerformanceConfig-Latency",Yo="X-Amzn-Bedrock-Request-Metadata",ye="X-Amzn-Bedrock-Service-Tier",jo="X-Amzn-Bedrock-Trace",y="action",zp="appliedGuardrailDetails",Jp="asyncInvokeSummaries",dt="additionalModelRequestFields",Qo="additionalModelResponseFieldPaths",zo="additionalModelResponseFields",Jo="actionReason",Zp="automatedReasoningPolicy",e_="automatedReasoningPolicyUnits",t_="automatedReasoningPolicies",Zo="accept",o_="any",n_="assessments",r_="audio",s_="auto",f="bytes",en="bucketOwner",a_="beginOffset",F="body",x="client",i_="contentBlockDelta",Ct="contentBlockIndex",c_="contentBlockStart",l_="contentBlockStop",u_="citationsContent",d_="cacheDetails",pt="contentFilter",C_="claimsFalseScenario",p_="contextualGroundingPolicy",__="contextualGroundingPolicyUnits",S_="contentIndex",m_="contentPolicy",R_="contentPolicyImageUnits",v_="contentPolicyUnits",_t="cachePoint",tn="contradictingRules",E_="cacheReadInputTokens",St="clientRequestToken",A_="confidenceScore",Oe="contentType",on="claimsTrueScenario",g_="customWords",I_="cacheWriteInputTokens",De="category",nn="categories",T_="checks",mt="chunk",Rt="citations",G_="citation",rn="claims",w="content",k_="context",sn="confidence",x_="converse",$_="delta",h_="documentChar",P_="documentChunk",vt="documentIndex",N_="documentPage",f_="differenceScenarios",W="detected",an="description",B_="domain",cn="document",p="error",y_="endOffset",ln="endTime",O_="effort",D_="enabled",Me="end",M_="entities",b="format",un="failureMessage",L_="filterStrength",U_="findings",dn="filters",Cn="guardrail",F_="guardrailArn",pn="guardrailCoverage",_n="guardrailConfig",Sn="guardContent",w_="guardrailId",te="guardrailIdentifier",W_="guardrailOrigin",b_="guardrailOwnership",V_="guardrailProcessingLatency",H="guardrailVersion",mn="guarded",I="http",v="httpError",i="httpHeader",U="httpQuery",Et="input",Le="invocationArn",q_="inputAssessment",Rn="inferenceConfig",H_="invocationMetrics",K_="invokedModelId",X_="invokeModel",Y_="inputSchema",At="internalServerException",gt="inputTokens",j_="identifier",Q_="images",Y="image",z_="impossible",J_="invalid",It="json",Z_="jsonSchema",eS="key",tS="kmsKeyId",vn="location",En="latencyMs",An="lastModifiedTime",Ue="logicWarning",oS="latency",nS="logic",_="message",gn="modelArn",q="modelId",rS="messageIndex",sS="modelInput",aS="modelOutput",Bo="maxResults",iS="messageStart",Tt="modelStreamErrorException",cS="messageStop",lS="maxTokens",In="modelTimeoutException",uS="managedWordLists",Fe="match",we="messages",Tn="metrics",dS="metadata",h="name",CS="naturalLanguage",lt="nextToken",pS="noTranslations",_S="outputs",SS="outputAssessments",Gn="outputConfig",Gt="outputDataConfig",mS="originalMessage",RS="outputScope",kn="originalStatusCode",vS="outputTokens",ES="options",AS="output",xn="premises",kt="promptAttack",We="performanceConfig",be="performanceConfigLatency",gS="piiEntities",$n="promptRouter",hn="promptVariables",IS="policyVersionArn",Pn="qualifiers",Ve="results",Nn="reasoningContent",fn="redactedContent",qe="requestMetadata",TS="resourceName",GS="reasoningText",kS="regex",xS="regexes",xt="role",Bn="smithy.ts.sdk.synthetic.com.amazonaws.bedrockruntime",yo="sortBy",yn="sourceContent",Oo="statusEquals",$t="sensitiveInformation",$S="sensitiveInformationPolicy",hS="sensitiveInformationPolicyFreeUnits",PS="sensitiveInformationPolicyUnits",Ke="s3Location",NS="serverName",Do="sortOrder",fS="s3OutputDataConfig",BS="streamProcessingMode",On="stopReason",yS="searchResultIndex",OS="searchResultLocation",Dn="searchResult",DS="supportingRules",Mn="severityScore",MS="stopSequences",Ln="submitTime",Mo="submitTimeAfter",Lo="submitTimeBefore",O="serviceTier",LS="systemTool",US="s3Uri",ht="serviceUnavailableException",FS="satisfiable",wS="score",WS="schema",Un="server",Fn="signature",T="source",Ye="status",oe="start",bS="statements",VS="stream",je="streaming",qS="strict",HS="structure",Pt="system",wn="ttl",KS="toolAddition",XS="translationAmbiguous",Nt="toolConfig",YS="textCharacters",jS="toolChoice",QS="tooComplex",ft="throttlingException",zS="textFormat",JS="topicPolicy",ZS="topicPolicyUnits",em="topP",Bt="toolResult",tm="toolRemoval",om="toolSpec",nm="totalTokens",yt="textUnits",Qe="toolUseId",Ot="toolUse",rm="tags",u="text",sm="temperature",am="threshold",Dt="title",Wn="total",Mt="tool",im="tools",cm="topics",j="trace",ze="translation",lm="translations",um="truncated",C="type",ne="usage",dm="untranslatedClaims",Cm="untranslatedPremises",pm="uri",_m="url",Sm="value",Lt="validationException",mm="valid",Vn="video",Rm="web",vm="wordPolicy",Em="wordPolicyUnits",t="com.amazonaws.bedrockruntime",qn=new bo(Bn),Hn=[-3,Bn,"BedrockRuntimeServiceException",0,[],[]];qn.registerError(Hn,d);var m=new bo(t),Kn=[-3,t,ul,{[p]:x,[v]:403},[_],[0]];m.registerError(Kn,ve);var Xn=[-3,t,Fl,{[p]:x,[v]:400},[_],[0]];m.registerError(Xn,Ie);var re=[-3,t,BC,{[p]:Un,[v]:500},[_],[0]];m.registerError(re,Ee);var Yn=[-3,t,UC,{[p]:x,[v]:424},[_,kn,TS],[0,1,0]];m.registerError(Yn,he);var jn=[-3,t,wC,{[p]:x,[v]:429},[_],[0]];m.registerError(jn,Pe);var se=[-3,t,bC,{[p]:x,[v]:424},[_,kn,mS],[0,1,0]];m.registerError(se,fe);var Je=[-3,t,qC,{[p]:x,[v]:408},[_],[0]];m.registerError(Je,Ne);var Qn=[-3,t,sp,{[p]:x,[v]:404},[_],[0]];m.registerError(Qn,Ge);var zn=[-3,t,_p,{[p]:x,[v]:400},[_],[0]];m.registerError(zn,ke);var ae=[-3,t,Ip,{[p]:Un,[v]:503},[_],[0]];m.registerError(ae,xe);var ie=[-3,t,$p,{[p]:x,[v]:429},[_],[0]];m.registerError(ie,Ae);var ce=[-3,t,Kp,{[p]:x,[v]:400},[_],[0]];m.registerError(ce,ge);var Jn=[qn,m],Zn=[0,t,Sl,8,0],Ze=[0,t,Tl,8,21],Am=[0,t,Vu,8,0],er=[0,t,qu,8,0],gm=[0,t,Fd,8,0],Im=[0,t,FC,8,15],Ut=[0,t,jC,8,21],tr=[0,t,rp,8,0],or=[3,t,gl,0,[],[]],nr=[3,t,Cl,0,[w_,H,F_,W_,b_],[0,0,0,64,0]],rr=[3,t,pl,0,[te,H,T,w,RS],[[0,1],[0,1],0,[()=>Vm,0],0],4],sr=[3,t,_l,0,[ne,y,_S,n_,Jo,pn],[()=>Ht,0,()=>Ym,[()=>Ra,0],0,()=>Vt],4],ar=[3,t,vl,0,[US,tS,en],[0,0,0],1],ir=[3,t,Rl,0,[Le,gn,Ln,Gt,St,Ye,un,An,ln],[0,0,5,()=>nt,0,0,[()=>Zn,0],5,5],4],cr=[3,t,ll,0,[b,T,p],[0,[()=>Aa,0],[()=>tt,0]],2],lr=[3,t,Il,0,[],[]],ur=[3,t,Gl,8,[f],[[()=>Ut,0]]],dr=[3,t,kl,8,[f],[[()=>Ut,0]]],Cr=[3,t,Ml,0,[wn,gt],[0,1],2],et=[3,t,Hl,0,[C,wn],[0,0],1],pr=[3,t,xl,0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>Is,0]]],io=[4,t,sd,0,[u,Y],[()=>As,[()=>Es,0]]],Oa=[4,t,Ed,8,[f],[21]],Da=[4,t,Xd,8,[f],[21]],co=[4,t,fC,8,[f,Ke],[21,()=>pe]],Ma=[4,t,GC,{[je]:1},[mt],[[()=>ur,0]]],La=[4,t,kC,{[je]:1},[mt,At,Tt,Lt,ft,In,ht],[[()=>dr,0],[()=>re,0],[()=>se,0],[()=>ce,0],[()=>ie,0],[()=>Je,0],[()=>ae,0]]],Ua=[4,t,YC,8,[Z_],[()=>Xs]],Fa=[4,t,ep,0,[u],[0]],wa=[4,t,tp,8,[GS,fn],[[()=>ea,0],21]],Wa=[4,t,op,8,[u,fn,Fn],[0,21,0]],ba=[4,t,ap,{[je]:1},[mt,At,Tt,Lt,ft,In,ht],[[()=>Zs,0],[()=>re,0],[()=>se,0],[()=>ce,0],[()=>ie,0],[()=>Je,0],[()=>ae,0]]],Va=[4,t,Cp,0,[u,Sn,_t],[0,[()=>io,0],()=>et]],qa=[4,t,qp,0,[om,LS,_t],[()=>Ca,()=>aa,()=>et]],Ha=[4,t,xp,0,[s_,o_,Mt],[()=>lr,()=>or,()=>na]],Ka=[4,t,hp,0,[It],[15]],Xa=[4,t,yp,0,[u,It],[0,15]],Ya=[4,t,Lp,0,[It,u,Y,cn,Vn,Dn],[15,0,[()=>Kt,0],()=>wt,()=>oo,()=>Jt]],ja=[4,t,Xp,0,[f,Ke],[21,()=>pe]],Qa=[9,t,dl,{[I]:["POST","/guardrail/{guardrailIdentifier}/version/{guardrailVersion}/apply",200]},()=>rr,()=>sr],za=[9,t,Cu,{[I]:["POST","/model/{modelId}/converse",200]},()=>gr,()=>Ir],Ja=[9,t,Yl,{[I]:["POST","/model/{modelId}/converse-stream",200]},()=>kr,()=>xr],Za=[9,t,uu,{[I]:["POST","/model/{modelId}/count-tokens",200]},()=>Nr,()=>fr],ei=[9,t,Iu,{[I]:["GET","/async-invoke/{invocationArn}",200]},()=>Dr,()=>Mr],ti=[9,t,mC,{[I]:["POST","/guardrail-checks/invoke",200]},()=>Us,()=>Fs],oi=[9,t,EC,{[I]:["POST","/model/{modelId}/invoke",200]},()=>ws,()=>Ws],ni=[9,t,TC,{[I]:["POST","/model/{modelId}/invoke-with-bidirectional-stream",200]},()=>Vs,()=>qs],ri=[9,t,hC,{[I]:["POST","/model/{modelId}/invoke-with-response-stream",200]},()=>Hs,()=>Ks],si=[9,t,OC,{[I]:["GET","/async-invoke",200]},()=>Ys,()=>js],ai=[9,t,cp,{[I]:["POST","/async-invoke",200]},()=>ra,()=>sa],sR=(o)=>({apiVersion:"2023-09-30",base64Decoder:o?.base64Decoder??bc,base64Encoder:o?.base64Encoder??Wc,disableHostPrefix:o?.disableHostPrefix??!1,endpointProvider:o?.endpointProvider??il,extensions:o?.extensions??[],httpAuthSchemeProvider:o?.httpAuthSchemeProvider??zc,httpAuthSchemes:o?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(n)=>n.getIdentityProvider("aws.auth#sigv4"),signer:new Vo},{schemeId:"smithy.api#httpBearerAuth",identityProvider:(n)=>n.getIdentityProvider("smithy.api#httpBearerAuth"),signer:new Fo}],logger:o?.logger??new tc,protocol:o?.protocol??Kc,protocolSettings:o?.protocolSettings??{defaultNamespace:"com.amazonaws.bedrockruntime",errorTypeRegistries:Jn,version:"2023-09-30",serviceTarget:"AmazonBedrockFrontendService"},serviceId:o?.serviceId??"Bedrock Runtime",sha256:o?.sha256??Xc,urlParser:o?.urlParser??Tc,utf8Decoder:o?.utf8Decoder??wc,utf8Encoder:o?.utf8Encoder??Fc}),aR=(o)=>{oc(process.version);let n=lc(o),r=()=>n().then(nc),s=sR(o);fi(process.version);let l={profile:o?.profile,logger:s.logger,signingName:"bedrock"};return{...s,...o,runtime:"node",defaultsMode:n,authSchemePreference:o?.authSchemePreference??M(Oc,l),bodyLengthChecker:o?.bodyLengthChecker??Vc,credentialDefaultProvider:o?.credentialDefaultProvider??Dc,defaultUserAgentProvider:o?.defaultUserAgentProvider??Bi({serviceId:s.serviceId,clientVersion:ol.version}),eventStreamPayloadHandlerProvider:o?.eventStreamPayloadHandlerProvider??Mc,eventStreamSerdeProvider:o?.eventStreamSerdeProvider??gc,httpAuthSchemes:o?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(a)=>a.getIdentityProvider("aws.auth#sigv4"),signer:new Vo},{schemeId:"smithy.api#httpBearerAuth",identityProvider:(a)=>a.getIdentityProvider("smithy.api#httpBearerAuth")||(async(R)=>{try{return await Lc({signingName:"bedrock"})()}catch(N){return await Uc(R)(R)}}),signer:new Fo}],maxAttempts:o?.maxAttempts??M(Pc,o),region:o?.region??M(Cc,{...pc,...l}),requestHandler:Hc.create(o?.requestHandler??(async()=>({...await r(),disableConcurrentStreams:!0}))),retryMode:o?.retryMode??M({...hc,default:async()=>(await r()).retryMode||$c},o),streamCollector:o?.streamCollector??qc,useDualstackEndpoint:o?.useDualstackEndpoint??M(dc,l),useFipsEndpoint:o?.useFipsEndpoint??M(uc,l),userAgentAppId:o?.userAgentAppId??M(yi,l)}},iR=(o)=>{let{httpAuthSchemes:n,httpAuthSchemeProvider:r,credentials:s,token:l}=o;return{setHttpAuthScheme(a){let R=n.findIndex((N)=>N.schemeId===a.schemeId);if(R===-1)n.push(a);else n.splice(R,1,a)},httpAuthSchemes(){return n},setHttpAuthSchemeProvider(a){r=a},httpAuthSchemeProvider(){return r},setCredentials(a){s=a},credentials(){return s},setToken(a){l=a},token(){return l}}},cR=(o)=>({httpAuthSchemes:o.httpAuthSchemes(),httpAuthSchemeProvider:o.httpAuthSchemeProvider(),credentials:o.credentials(),token:o.token()}),lR=(o,n)=>{let r=Object.assign(Oi(o),rc(o),Gc(o),iR(o));return n.forEach((s)=>s.configure(r)),Object.assign(o,Di(r),sc(r),kc(r),cR(r))};class rt extends Wo{config;constructor(...[o]){let n=aR(o||{});super(n);this.initConfig=n;let r=Zc(n),s=Mi(r),l=Nc(s),a=_c(l),R=Li(a),N=Ec(R),at=Ic(N),E=Jc(at),it=bi(E),ct=qi(it),B=lR(ct,o?.extensions||[]);this.config=B,this.middlewareStack.use(Bc(this.config)),this.middlewareStack.use(Ui(this.config)),this.middlewareStack.use(fc(this.config)),this.middlewareStack.use(xc(this.config)),this.middlewareStack.use(Fi(this.config)),this.middlewareStack.use(wi(this.config)),this.middlewareStack.use(Wi(this.config)),this.middlewareStack.use(ji(this.config,{httpAuthSchemeParametersProvider:Yc,identityProviderConfigProvider:async(Se)=>new Qi({"aws.auth#sigv4":Se.credentials,"smithy.api#httpBearerAuth":Se.token})})),this.middlewareStack.use(zi(this.config))}destroy(){super.destroy()}}var G=ac(el,"AmazonBedrockFrontendService","BedrockRuntimeClient",Ac),k={},P=(o,n,r,s)=>[],uR=(o,n,r,s)=>[Vi(r),Hi(r,{headerPrefix:"x-amz-bedrock-"})];class lo extends G(k,P,"ApplyGuardrail",Qa){}class uo extends G(k,P,"Converse",za){}class Co extends G(k,P,"ConverseStream",Ja){}class po extends G(k,P,"CountTokens",Za){}class _o extends G(k,P,"GetAsyncInvoke",ei){}class So extends G(k,P,"InvokeGuardrailChecks",ti){}class mo extends G(k,P,"InvokeModel",oi){}class Ro extends G(k,uR,"InvokeModelWithBidirectionalStream",ni){}class vo extends G(k,P,"InvokeModelWithResponseStream",ri){}class st extends G(k,P,"ListAsyncInvokes",si){}class Eo extends G(k,P,"StartAsyncInvoke",ai){}var ii=Ji(rt,st,"nextToken","nextToken","maxResults"),dR={ApplyGuardrailCommand:lo,ConverseCommand:uo,ConverseStreamCommand:Co,CountTokensCommand:po,GetAsyncInvokeCommand:_o,InvokeGuardrailChecksCommand:So,InvokeModelCommand:mo,InvokeModelWithBidirectionalStreamCommand:Ro,InvokeModelWithResponseStreamCommand:vo,ListAsyncInvokesCommand:st,StartAsyncInvokeCommand:Eo},CR={paginateListAsyncInvokes:ii};class Ao extends rt{}ic(dR,Ao,{paginators:CR});var pR={COMPLETED:"Completed",FAILED:"Failed",IN_PROGRESS:"InProgress"},_R={SUBMISSION_TIME:"SubmissionTime"},SR={ASCENDING:"Ascending",DESCENDING:"Descending"},mR={JPEG:"jpeg",PNG:"png"},RR={GROUNDING_SOURCE:"grounding_source",GUARD_CONTENT:"guard_content",QUERY:"query"},vR={FULL:"FULL",INTERVENTIONS:"INTERVENTIONS"},ER={INPUT:"INPUT",OUTPUT:"OUTPUT"},AR={GUARDRAIL_INTERVENED:"GUARDRAIL_INTERVENED",NONE:"NONE"},gR={ACCOUNT_ENFORCED:"ACCOUNT_ENFORCED",ORGANIZATION_ENFORCED:"ORGANIZATION_ENFORCED",REQUEST:"REQUEST"},IR={CROSS_ACCOUNT:"CROSS_ACCOUNT",SELF:"SELF"},TR={ALWAYS_FALSE:"ALWAYS_FALSE",ALWAYS_TRUE:"ALWAYS_TRUE"},GR={BLOCKED:"BLOCKED",NONE:"NONE"},kR={HIGH:"HIGH",LOW:"LOW",MEDIUM:"MEDIUM",NONE:"NONE"},xR={HIGH:"HIGH",LOW:"LOW",MEDIUM:"MEDIUM",NONE:"NONE"},$R={HATE:"HATE",INSULTS:"INSULTS",MISCONDUCT:"MISCONDUCT",PROMPT_ATTACK:"PROMPT_ATTACK",SEXUAL:"SEXUAL",VIOLENCE:"VIOLENCE"},hR={BLOCKED:"BLOCKED",NONE:"NONE"},PR={GROUNDING:"GROUNDING",RELEVANCE:"RELEVANCE"},NR={ANONYMIZED:"ANONYMIZED",BLOCKED:"BLOCKED",NONE:"NONE"},fR={ADDRESS:"ADDRESS",AGE:"AGE",AWS_ACCESS_KEY:"AWS_ACCESS_KEY",AWS_SECRET_KEY:"AWS_SECRET_KEY",CA_HEALTH_NUMBER:"CA_HEALTH_NUMBER",CA_SOCIAL_INSURANCE_NUMBER:"CA_SOCIAL_INSURANCE_NUMBER",CREDIT_DEBIT_CARD_CVV:"CREDIT_DEBIT_CARD_CVV",CREDIT_DEBIT_CARD_EXPIRY:"CREDIT_DEBIT_CARD_EXPIRY",CREDIT_DEBIT_CARD_NUMBER:"CREDIT_DEBIT_CARD_NUMBER",DRIVER_ID:"DRIVER_ID",EMAIL:"EMAIL",INTERNATIONAL_BANK_ACCOUNT_NUMBER:"INTERNATIONAL_BANK_ACCOUNT_NUMBER",IP_ADDRESS:"IP_ADDRESS",LICENSE_PLATE:"LICENSE_PLATE",MAC_ADDRESS:"MAC_ADDRESS",NAME:"NAME",PASSWORD:"PASSWORD",PHONE:"PHONE",PIN:"PIN",SWIFT_CODE:"SWIFT_CODE",UK_NATIONAL_HEALTH_SERVICE_NUMBER:"UK_NATIONAL_HEALTH_SERVICE_NUMBER",UK_NATIONAL_INSURANCE_NUMBER:"UK_NATIONAL_INSURANCE_NUMBER",UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER:"UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER",URL:"URL",USERNAME:"USERNAME",US_BANK_ACCOUNT_NUMBER:"US_BANK_ACCOUNT_NUMBER",US_BANK_ROUTING_NUMBER:"US_BANK_ROUTING_NUMBER",US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER:"US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER",US_PASSPORT_NUMBER:"US_PASSPORT_NUMBER",US_SOCIAL_SECURITY_NUMBER:"US_SOCIAL_SECURITY_NUMBER",VEHICLE_IDENTIFICATION_NUMBER:"VEHICLE_IDENTIFICATION_NUMBER"},BR={BLOCKED:"BLOCKED",NONE:"NONE"},yR={DENY:"DENY"},OR={BLOCKED:"BLOCKED",NONE:"NONE"},DR={PROFANITY:"PROFANITY"},MR={HATE:"HATE",INSULTS:"INSULTS",MISCONDUCT:"MISCONDUCT",SEXUAL:"SEXUAL",VIOLENCE:"VIOLENCE"},LR={JAILBREAK:"JAILBREAK",PROMPT_INJECTION:"PROMPT_INJECTION",PROMPT_LEAKAGE:"PROMPT_LEAKAGE"},UR={ADDRESS:"ADDRESS",AGE:"AGE",AWS_ACCESS_KEY:"AWS_ACCESS_KEY",AWS_SECRET_KEY:"AWS_SECRET_KEY",CA_HEALTH_NUMBER:"CA_HEALTH_NUMBER",CA_SOCIAL_INSURANCE_NUMBER:"CA_SOCIAL_INSURANCE_NUMBER",CREDIT_DEBIT_CARD_CVV:"CREDIT_DEBIT_CARD_CVV",CREDIT_DEBIT_CARD_EXPIRY:"CREDIT_DEBIT_CARD_EXPIRY",CREDIT_DEBIT_CARD_NUMBER:"CREDIT_DEBIT_CARD_NUMBER",DRIVER_ID:"DRIVER_ID",EMAIL:"EMAIL",INTERNATIONAL_BANK_ACCOUNT_NUMBER:"INTERNATIONAL_BANK_ACCOUNT_NUMBER",IP_ADDRESS:"IP_ADDRESS",LICENSE_PLATE:"LICENSE_PLATE",MAC_ADDRESS:"MAC_ADDRESS",NAME:"NAME",PASSWORD:"PASSWORD",PHONE:"PHONE",PIN:"PIN",SWIFT_CODE:"SWIFT_CODE",UK_NATIONAL_HEALTH_SERVICE_NUMBER:"UK_NATIONAL_HEALTH_SERVICE_NUMBER",UK_NATIONAL_INSURANCE_NUMBER:"UK_NATIONAL_INSURANCE_NUMBER",UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER:"UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER",URL:"URL",USERNAME:"USERNAME",US_BANK_ACCOUNT_NUMBER:"US_BANK_ACCOUNT_NUMBER",US_BANK_ROUTING_NUMBER:"US_BANK_ROUTING_NUMBER",US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER:"US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER",US_PASSPORT_NUMBER:"US_PASSPORT_NUMBER",US_SOCIAL_SECURITY_NUMBER:"US_SOCIAL_SECURITY_NUMBER",VEHICLE_IDENTIFICATION_NUMBER:"VEHICLE_IDENTIFICATION_NUMBER"},FR={ASSISTANT:"assistant",SYSTEM:"system",USER:"user"},wR={DISABLED:"disabled",ENABLED:"enabled",ENABLED_FULL:"enabled_full"},WR={AAC:"aac",FLAC:"flac",M4A:"m4a",MKA:"mka",MKV:"mkv",MP3:"mp3",MP4:"mp4",MPEG:"mpeg",MPGA:"mpga",OGG:"ogg",OPUS:"opus",PCM:"pcm",WAV:"wav",WEBM:"webm",X_AAC:"x-aac"},bR={FIVE_MINUTES:"5m",ONE_HOUR:"1h"},VR={DEFAULT:"default"},qR={CSV:"csv",DOC:"doc",DOCX:"docx",HTML:"html",MD:"md",PDF:"pdf",TXT:"txt",XLS:"xls",XLSX:"xlsx"},HR={JPEG:"jpeg",PNG:"png"},KR={GROUNDING_SOURCE:"grounding_source",GUARD_CONTENT:"guard_content",QUERY:"query"},XR={GIF:"gif",JPEG:"jpeg",PNG:"png",WEBP:"webp"},YR={FLV:"flv",MKV:"mkv",MOV:"mov",MP4:"mp4",MPEG:"mpeg",MPG:"mpg",THREE_GP:"three_gp",WEBM:"webm",WMV:"wmv"},jR={ERROR:"error",SUCCESS:"success"},QR={SERVER_TOOL_USE:"server_tool_use"},zR={ASSISTANT:"assistant",SYSTEM:"system",USER:"user"},JR={JSON_SCHEMA:"json_schema"},ZR={OPTIMIZED:"optimized",STANDARD:"standard"},ev={DEFAULT:"default",FLEX:"flex",PRIORITY:"priority",RESERVED:"reserved"},tv={CONTENT_FILTERED:"content_filtered",END_TURN:"end_turn",GUARDRAIL_INTERVENED:"guardrail_intervened",MALFORMED_MODEL_OUTPUT:"malformed_model_output",MALFORMED_TOOL_USE:"malformed_tool_use",MAX_TOKENS:"max_tokens",MODEL_CONTEXT_WINDOW_EXCEEDED:"model_context_window_exceeded",STOP_SEQUENCE:"stop_sequence",TOOL_USE:"tool_use"},ov={ASYNC:"async",SYNC:"sync"},nv={DISABLED:"DISABLED",ENABLED:"ENABLED",ENABLED_FULL:"ENABLED_FULL"};var av=ve,iv=Kn,cv=or,lv=nr,uv=Qa,dv=lo,Cv=rr,pv=sr,_v=nt,Sv=ar,mv=pR,Rv=ir,vv=cr,Ev=WR,Av=Aa,gv=lr,Iv=Ao,Tv=rt,Gv=d,kv=Hn,xv=ur,$v=dr,hv=Cr,Pv=et,Nv=VR,fv=bR,Bv=pr,yv=ga,Ov=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g=Ro,Ug=Ma,Fg=La,wg=Vs,Wg=qs,bg=ri,Vg=vo,qg=Hs,Hg=Ks,Kg=Xs,Xg=si,Yg=st,jg=Ys,Qg=js,zg=Yt,Jg=Qs,Zg=zs,e0=he,t0=Yn,o0=Pe,n0=jn,r0=fe,s0=se,a0=Ne,i0=Je,c0=jt,l0=Js,u0=Ua,d0=JR,C0=Zs,p0=ZR,_0=de,S0=Qt,m0=Fa,R0=wa,v0=Wa,E0=ea,A0=Ge,g0=Qn,I0=ba,T0=pe,G0=Jt,k0=ta,x0=oa,$0=ke,h0=zn,P0=_e,N0=ev,f0=xe,B0=ae,y0=_R,O0=SR,D0=na,M0=ai,L0=Eo,U0=ra,F0=sa,w0=tv,W0=Va,b0=aa,V0=ia,q0=Ae,H0=ie,K0=eo,X0=qa,Y0=ca,j0=Ha,Q0=ot,z0=Ka,J0=to,Z0=la,eI=ua,tI=Xa,oI=da,nI=Ya,rI=jR,sI=Ca,aI=pa,iI=_a,cI=Sa,lI=QR,uI=nv,dI=ge,CI=ce,pI=oo,_I=YR,SI=ja,mI=ma,RI=Jn,vI=ii;export{rv as $Command,sv as __Client,av as AccessDeniedException,iv as AccessDeniedException$,cv as AnyToolChoice$,lv as AppliedGuardrailDetails$,uv as ApplyGuardrail$,dv as ApplyGuardrailCommand,Cv as ApplyGuardrailRequest$,pv as ApplyGuardrailResponse$,_v as AsyncInvokeOutputDataConfig$,Sv as AsyncInvokeS3OutputDataConfig$,mv as AsyncInvokeStatus,Rv as AsyncInvokeSummary$,vv as AudioBlock$,Ev as AudioFormat,Av as AudioSource$,gv as AutoToolChoice$,Iv as BedrockRuntime,Tv as BedrockRuntimeClient,Gv as BedrockRuntimeServiceException,kv as BedrockRuntimeServiceException$,xv as BidirectionalInputPayloadPart$,$v as BidirectionalOutputPayloadPart$,hv as CacheDetail$,Pv as CachePointBlock$,Nv as CachePointType,fv as CacheTTL,Bv as Citation$,yv as CitationGeneratedContent$,Ov as CitationLocation$,Dv as CitationSourceContent$,Mv as CitationSourceContentDelta$,Lv as CitationsConfig$,Uv as CitationsContentBlock$,Fv as CitationsDelta$,wv as ConflictException,Wv as ConflictException$,bv as ContentBlock$,Vv as ContentBlockDelta$,qv as ContentBlockDeltaEvent$,Hv as ContentBlockStart$,Kv as ContentBlockStartEvent$,Xv as ContentBlockStopEvent$,Yv as ConversationRole,jv as Converse$,Qv as ConverseCommand,zv as ConverseMetrics$,Jv as ConverseOutput$,Zv as ConverseRequest$,eE as ConverseResponse$,tE as ConverseStream$,oE as ConverseStreamCommand,nE as ConverseStreamMetadataEvent$,rE as ConverseStreamMetrics$,sE as ConverseStreamOutput$,aE as ConverseStreamRequest$,iE as ConverseStreamResponse$,cE as ConverseStreamTrace$,lE as ConverseTokensRequest$,uE as ConverseTrace$,dE as CountTokens$,CE as CountTokensCommand,pE as CountTokensInput$,_E as CountTokensRequest$,SE as CountTokensResponse$,mE as DocumentBlock$,RE as DocumentCharLocation$,vE as DocumentChunkLocation$,EE as DocumentContentBlock$,AE as DocumentFormat,gE as DocumentPageLocation$,IE as DocumentSource$,TE as ErrorBlock$,GE as GetAsyncInvoke$,kE as GetAsyncInvokeCommand,xE as GetAsyncInvokeRequest$,$E as GetAsyncInvokeResponse$,hE as GuardrailAction,PE as GuardrailAssessment$,NE as GuardrailAutomatedReasoningFinding$,fE as GuardrailAutomatedReasoningImpossibleFinding$,BE as GuardrailAutomatedReasoningInputTextReference$,yE as GuardrailAutomatedReasoningInvalidFinding$,OE as GuardrailAutomatedReasoningLogicWarning$,DE as GuardrailAutomatedReasoningLogicWarningType,ME as GuardrailAutomatedReasoningNoTranslationsFinding$,LE as GuardrailAutomatedReasoningPolicyAssessment$,UE as GuardrailAutomatedReasoningRule$,FE as GuardrailAutomatedReasoningSatisfiableFinding$,wE as GuardrailAutomatedReasoningScenario$,WE as GuardrailAutomatedReasoningStatement$,bE as GuardrailAutomatedReasoningTooComplexFinding$,VE as GuardrailAutomatedReasoningTranslation$,qE as GuardrailAutomatedReasoningTranslationAmbiguousFinding$,HE as GuardrailAutomatedReasoningTranslationOption$,KE as GuardrailAutomatedReasoningValidFinding$,XE as GuardrailChecksConfig$,YE as GuardrailChecksContentBlock$,jE as GuardrailChecksContentFilterCategory,QE as GuardrailChecksContentFilterCategoryConfig$,zE as GuardrailChecksContentFilterConfig$,JE as GuardrailChecksContentFilterResult$,ZE as GuardrailChecksContentFilterResultEntry$,eA as GuardrailChecksContentFilterUsage$,tA as GuardrailChecksMessage$,oA as GuardrailChecksPromptAttackCategory,nA as GuardrailChecksPromptAttackCategoryConfig$,rA as GuardrailChecksPromptAttackConfig$,sA as GuardrailChecksPromptAttackResult$,aA as GuardrailChecksPromptAttackResultEntry$,iA as GuardrailChecksPromptAttackUsage$,uA as GuardrailChecksResults$,dA as GuardrailChecksRole,CA as GuardrailChecksSensitiveInformationConfig$,pA as GuardrailChecksSensitiveInformationEntityConfig$,_A as GuardrailChecksSensitiveInformationEntityType,SA as GuardrailChecksSensitiveInformationResult$,mA as GuardrailChecksSensitiveInformationResultEntry$,RA as GuardrailChecksSensitiveInformationUsage$,vA as GuardrailChecksUsageResults$,EA as GuardrailConfiguration$,AA as GuardrailContentBlock$,IA as GuardrailContentFilter$,TA as GuardrailContentFilterConfidence,GA as GuardrailContentFilterStrength,kA as GuardrailContentFilterType,xA as GuardrailContentPolicyAction,$A as GuardrailContentPolicyAssessment$,hA as GuardrailContentQualifier,PA as GuardrailContentSource,NA as GuardrailContextualGroundingFilter$,fA as GuardrailContextualGroundingFilterType,BA as GuardrailContextualGroundingPolicyAction,OA as GuardrailContextualGroundingPolicyAssessment$,DA as GuardrailConverseContentBlock$,MA as GuardrailConverseContentQualifier,LA as GuardrailConverseImageBlock$,UA as GuardrailConverseImageFormat,FA as GuardrailConverseImageSource$,wA as GuardrailConverseTextBlock$,WA as GuardrailCoverage$,bA as GuardrailCustomWord$,VA as GuardrailImageBlock$,qA as GuardrailImageCoverage$,HA as GuardrailImageFormat,KA as GuardrailImageSource$,XA as GuardrailInvocationMetrics$,YA as GuardrailManagedWord$,jA as GuardrailManagedWordType,zA as GuardrailOrigin,JA as GuardrailOutputContent$,ZA as GuardrailOutputScope,eg as GuardrailOwnership,tg as GuardrailPiiEntityFilter$,og as GuardrailPiiEntityType,ng as GuardrailRegexFilter$,rg as GuardrailSensitiveInformationPolicyAction,sg as GuardrailSensitiveInformationPolicyAssessment$,ag as GuardrailStreamConfiguration$,ig as GuardrailStreamProcessingMode,cg as GuardrailTextBlock$,lg as GuardrailTextCharactersCoverage$,ug as GuardrailTopic$,dg as GuardrailTopicPolicyAction,Cg as GuardrailTopicPolicyAssessment$,pg as GuardrailTopicType,_g as GuardrailTrace,Sg as GuardrailTraceAssessment$,mg as GuardrailUsage$,Rg as GuardrailWordPolicyAction,vg as GuardrailWordPolicyAssessment$,Eg as ImageBlock$,Ag as ImageBlockDelta$,gg as ImageBlockStart$,Ig as ImageFormat,Tg as ImageSource$,Gg as InferenceConfiguration$,kg as InternalServerException,xg as InternalServerException$,$g as InvokeGuardrailChecks$,hg as InvokeGuardrailChecksCommand,Pg as InvokeGuardrailChecksRequest$,Ng as InvokeGuardrailChecksResponse$,fg as InvokeModel$,Bg as InvokeModelCommand,yg as InvokeModelRequest$,Og as InvokeModelResponse$,Dg as InvokeModelTokensRequest$,Mg as InvokeModelWithBidirectionalStream$,Lg as InvokeModelWithBidirectionalStreamCommand,Ug as InvokeModelWithBidirectionalStreamInput$,Fg as InvokeModelWithBidirectionalStreamOutput$,wg as InvokeModelWithBidirectionalStreamRequest$,Wg as InvokeModelWithBidirectionalStreamResponse$,bg as InvokeModelWithResponseStream$,Vg as InvokeModelWithResponseStreamCommand,qg as InvokeModelWithResponseStreamRequest$,Hg as InvokeModelWithResponseStreamResponse$,Kg as JsonSchemaDefinition$,Xg as ListAsyncInvokes$,Yg as ListAsyncInvokesCommand,jg as ListAsyncInvokesRequest$,Qg as ListAsyncInvokesResponse$,zg as Message$,Jg as MessageStartEvent$,Zg as MessageStopEvent$,e0 as ModelErrorException,t0 as ModelErrorException$,o0 as ModelNotReadyException,n0 as ModelNotReadyException$,r0 as ModelStreamErrorException,s0 as ModelStreamErrorException$,a0 as ModelTimeoutException,i0 as ModelTimeoutException$,c0 as OutputConfig$,l0 as OutputFormat$,u0 as OutputFormatStructure$,d0 as OutputFormatType,C0 as PayloadPart$,p0 as PerformanceConfigLatency,_0 as PerformanceConfiguration$,S0 as PromptRouterTrace$,m0 as PromptVariableValues$,R0 as ReasoningContentBlock$,v0 as ReasoningContentBlockDelta$,E0 as ReasoningTextBlock$,A0 as ResourceNotFoundException,g0 as ResourceNotFoundException$,I0 as ResponseStream$,T0 as S3Location$,G0 as SearchResultBlock$,k0 as SearchResultContentBlock$,x0 as SearchResultLocation$,$0 as ServiceQuotaExceededException,h0 as ServiceQuotaExceededException$,P0 as ServiceTier$,N0 as ServiceTierType,f0 as ServiceUnavailableException,B0 as ServiceUnavailableException$,y0 as SortAsyncInvocationBy,O0 as SortOrder,D0 as SpecificToolChoice$,M0 as StartAsyncInvoke$,L0 as StartAsyncInvokeCommand,U0 as StartAsyncInvokeRequest$,F0 as StartAsyncInvokeResponse$,w0 as StopReason,W0 as SystemContentBlock$,b0 as SystemTool$,V0 as Tag$,q0 as ThrottlingException,H0 as ThrottlingException$,K0 as TokenUsage$,X0 as Tool$,Y0 as ToolAdditionBlock$,j0 as ToolChoice$,Q0 as ToolConfiguration$,z0 as ToolInputSchema$,J0 as ToolReference$,Z0 as ToolRemovalBlock$,eI as ToolResultBlock$,tI as ToolResultBlockDelta$,oI as ToolResultBlockStart$,nI as ToolResultContentBlock$,rI as ToolResultStatus,sI as ToolSpecification$,aI as ToolUseBlock$,iI as ToolUseBlockDelta$,cI as ToolUseBlockStart$,lI as ToolUseType,uI as Trace,dI as ValidationException,CI as ValidationException$,pI as VideoBlock$,_I as VideoFormat,SI as VideoSource$,mI as WebLocation$,RI as errorTypeRegistries,vI as paginateListAsyncInvokes};
3
-
4
- //# debugId=7366091CA782A8C064756E2164756E21
5
- //# sourceMappingURL=index-ak304afj.js.map
@@ -1,6 +0,0 @@
1
- #!/usr/bin/env node
2
- import{A,G,q,z,fe,_}from"./index-1h9pqnec.js";import{ie,F,En,Ft,Ae}from"./index-dwxmy0kx.js";import{dirname as c}from"node:path";async function ts(e,s,n){let t=[];if(e.length===0)for(let o of Ae(s)){if(o.problem!==void 0||o.id===void 0)continue;t.push({agentId:o.id,manifestPath:o.manifestPath})}else for(let o of e){let r=G(o);t.push({agentId:r.id??"",manifestPath:o})}let i=await u(async(o)=>new Map((await o.agentState.list()).filter((r)=>!r.enabled).map((r)=>[r.agentId,r.reason])),n);return t.map((o)=>{let r=i?.get(o.agentId),a=i?.has(o.agentId)===!0;return{...o,enabled:!a,...r===void 0?{}:{reason:r}}})}async function u(e,s){let n;try{return n=await fe.open({path:s??F()}),await e(n)}catch{return}finally{await n?.close()}}async function nr(e,s,n,t){await u(async(i)=>{if(s)await i.agentState.enable(e);else await i.agentState.disable(e,new Date().toISOString(),n===void 0?void 0:n)},t)}async function or(e,s){return await u(async(n)=>{let t=await n.agentState.get(e);if(t===void 0)return{enabled:!0};return{enabled:t.enabled,...t.reason===void 0?{}:{reason:t.reason}}},s)}async function je(e,s){return await u(async(n)=>{let t=await n.leases.get(e);if(t===void 0)return;if(t.pid===process.pid||!z(t.pid))return;return t},s)}async function Je(e){return[...(await xA(e)).filter((n)=>n.baseUrl!==void 0)].sort((n,t)=>n.agentId.localeCompare(t.agentId))[0]}var UA="~host";async function ns(e,s){let n={agentId:UA,pid:process.pid,now:new Date().toISOString(),...s},t=await e.claim(n);if(t.ok)return!0;if(t.held.pid!==process.pid&&z(t.held.pid))return!1;return(await e.claim({...n,stealFrom:t.held.runtimeId})).ok}async function xA(e){return await u(async(s)=>(await s.leases.all()).filter((n)=>n.pid!==process.pid&&z(n.pid)),e)??[]}function me(e){return e===void 0||e===""?"":G(e).id??""}function Nt(e){let s=_([e]),n=process.env[`${A.envPrefix}API_TOKEN`],t=e!==""&&Ft(c(e),s)?En(ie(s)):void 0;try{let i=q(e,{env:s}),o=i.manifest.server.tokenEnv,r=s[o];if(r!==void 0&&r!=="")return r;if(t!==void 0)return t;let a=i.env[o];return a===void 0||a===""?n:a}catch{return t??(n===""?void 0:n)}}async function dA(e,s,n,t){let i=e.baseUrl;if(i===void 0)return{ok:!1,status:0,detail:"this host serves no HTTP"};let o=t===void 0?void 0:Nt(t);try{let r=await fetch(`${i}${s}`,{method:"POST",headers:{"content-type":"application/json",...o===void 0?{}:{authorization:`Bearer ${o}`}},body:JSON.stringify(n),signal:AbortSignal.timeout(f)});if(r.ok){let d=await r.json().catch(()=>{return});return{ok:!0,status:r.status,...d===void 0?{}:{body:d}}}let a=await r.json().catch(()=>{return});return{ok:!1,status:r.status,...a?.error?.message===void 0?{}:{detail:a.error.message},...a?.error?.hint===void 0?{}:{hint:a.error.hint}}}catch(r){return{ok:!1,status:0,detail:r instanceof Error?r.message:String(r)}}}async function gn(e,s,n,t){let i=e.baseUrl;if(i===void 0)return{ok:!1,status:0,detail:"this host serves no HTTP"};let o=t===void 0?void 0:Nt(t);try{let r=await fetch(`${i}${n}`,{method:s,headers:o===void 0?{}:{authorization:`Bearer ${o}`},signal:AbortSignal.timeout(f)}),a=await r.json().catch(()=>{return});if(r.ok)return{ok:!0,status:r.status,...a===void 0?{}:{body:a}};let d=a;return{ok:!1,status:r.status,...d?.error?.message===void 0?{}:{detail:d.error.message},...d?.error?.hint===void 0?{}:{hint:d.error.hint}}}catch(r){return{ok:!1,status:0,detail:r instanceof Error?r.message:String(r)}}}var f=1e4;function Xn(e,s){for(let n of Ae(s))if(n.id===e)return n.manifestPath;return}
3
- export{ts,nr,or,je,Je,UA,ns,xA,me,Nt,dA,gn,Xn};
4
-
5
- //# debugId=1648DC0EDFE45CE764756E2164756E21
6
- //# sourceMappingURL=index-qe3ybzh6.js.map
@@ -1,9 +0,0 @@
1
- #!/usr/bin/env node
2
- import{t,sA,gt,ct}from"./index-1h9pqnec.js";import{GA,tn}from"./index-0m0x1454.js";import{zn,Zn,Ye}from"./index-5nprb9px.js";import{u,k,Q,y}from"./index-k2q76dhw.js";import{readFileSync as g}from"node:fs";function qt(n){if(n===void 0||n===null)return"(not set)";if(typeof n==="string")return n===""?'""':n;if(typeof n==="boolean"||typeof n==="number")return String(n);return JSON.stringify(n)}function m(n){return n.split(/[.[]/)[0]??n}function Ni(n,e){let o=[`${e}`,""],s=new Map;for(let i of n){let l=m(i.setting.path);s.set(l,[...s.get(l)??[],i])}let r=!0;for(let[i,l]of s){o.push(k(i,r)),r=!1;for(let a of l){let d=a.setting.agentListed?"":" · yours only",p=a.setting.via===void 0?"":` · set with \`${a.setting.via}\``,h=a.setting.confirm===void 0?"":" · asks first";o.push(u([{label:a.setting.path,value:qt(a.value)}]),y(`${a.setting.means}${d}${p}${h}`,4))}}return o.push("","A change takes effect the next time the agent starts. `yours only` marks a field the agent is","refused: what it may do is its to ask for, where it writes and who may reach it are yours."),o.join(`
3
- `)}function Mi(n,e){return[u([{label:n.path,value:qt(e)}]),y(n.means,4),...n.toAgent===void 0?[]:[y(`to the agent: ${n.toAgent}`,4)]].join(`
4
- `)}function Ti(n,e){if(n.confirm===void 0)return;if(n.path==="tools.untrusted.onMutate"&&String(e).toLowerCase()!=="allow")return;return n.confirm}function Ri(n){let e=[u([{label:"set",value:`${n.path} = ${qt(n.after)}`},{label:"was",value:n.before===void 0?"(not set)":qt(n.before)},{label:"file",value:n.file}])];if(n.reflowed)e.push("",Q("the block could not be edited in place, so the file was re-serialised — it is valid, and comments may have moved"));if(n.running!==void 0)e.push("",Q(`this agent is running (pid ${n.running.pid}, ${n.running.mode}) and holds its settings for its lifetime — the change applies after ${n.restartHint}`));for(let o of n.pending)e.push(Q(`${o.name} is not set — ${o.why}`)),e.push(Q(`fill it in with \`config env <agent> ${o.name}\``));return e.join(`
5
- `)}function _i(){return ct.filter((n)=>n.via===void 0&&!/[[<]/.test(n.path)).map((n)=>n.path)}function Vt(n){if(typeof n!=="object"||n===null)return[];let e=n,o=[],s=(a,d)=>{if(typeof a==="string"&&a!=="")o.push({name:a,why:d})},r=f(e.model);for(let a of["main","selector","compactor"]){let d=f(r?.[a]);s(d?.apiKeyEnv,"the manifest will not load until it is set")}if(Array.isArray(e.channels))for(let a of e.channels){let d=f(a);if(d===void 0||d.enabled===!1)continue;s(d.tokenEnv,`the ${String(d.id??d.type??"channel")} channel is read at boot, so the agent will not start until it is set`)}let i=f(e.server);if(i?.enabled===!0)s(i.tokenEnv,"the HTTP API would accept unauthenticated requests. This does not stop the agent starting");let l=f(f(e.tools)?.providers);for(let[a,d]of Object.entries(l??{}))s(f(d)?.apiKeyEnv,`the ${a} provider's tools will not work until it is set`);return o}function f(n){if(typeof n!=="object"||n===null||Array.isArray(n))return;return n}function jo(n,e){return n.filter((o)=>e[o.name]===void 0||e[o.name]==="")}function c(n,e){let o=[],s=new Map;for(let r of n){if(r.setting.via!==void 0||/[[<]/.test(r.setting.path))continue;let i=r.setting.path.split(".")[0]??r.setting.path;s.set(i,[...s.get(i)??[],r])}for(let[r,i]of s){o.push({kind:"heading",label:r});for(let l of i)o.push({kind:"setting",setting:l.setting,value:l.value})}if(e.channels.length>0){o.push({kind:"heading",label:"who may reach it"});for(let r of e.channels)o.push({kind:"allow",channelId:r.id,channelType:r.type,handles:r.allowFrom})}if(e.secrets.length>0){o.push({kind:"heading",label:"secrets — written to the .env, never shown"});for(let r of e.secrets)o.push({kind:"secret",name:r.name,why:r.why,present:e.present(r.name)})}return o}function Jo(n){let e=g(n,"utf8");return ct.map((o)=>{if(o.path==="channels[].allowFrom"){let s=sA(e,["channels"]);if(!Array.isArray(s))return{setting:o,value:void 0};let r={};for(let i of s){if(typeof i!=="object"||i===null)continue;let l=i;if(typeof l.id!=="string")continue;r[l.id]=l.allowFrom??[]}return{setting:o,value:Object.keys(r).length===0?void 0:r}}if(o.path==="tools.providers.<id>.writeRoots"){let s=sA(e,["tools","providers"]);if(typeof s!=="object"||s===null||Array.isArray(s))return{setting:o,value:void 0};let r={};for(let[i,l]of Object.entries(s)){if(typeof l!=="object"||l===null)continue;let a=l.writeRoots;if(a!==void 0)r[i]=a}return{setting:o,value:Object.keys(r).length===0?void 0:r}}return{setting:o,value:sA(e,o.path.split("."))}})}function pt(n){let e=g(n,"utf8"),o=gt(e),s=GA(n),r=sA(e,["channels"]);return c(Jo(n),{channels:(Array.isArray(r)?r:[]).filter((i)=>typeof i==="object"&&i!==null&&!Array.isArray(i)).map((i)=>({id:String(i.id??""),type:String(i.type??""),allowFrom:Array.isArray(i.allowFrom)?i.allowFrom.map(String):[]})).filter((i)=>i.id!==""),secrets:Vt(o),present:(i)=>tn(s,i)})}async function Dn(n,e,o){switch(e.kind){case"setting":{if(o.trim()==="")throw new t({code:"cli_config_value_missing",message:`No value given for ${e.setting.path}.`,hint:'A bare word, a number, a list as ["a", "b"], or a map as {k: v}.',field:"value"});return(await zn(n,e.setting.path,o)).note}case"allow":{let s=o.trim()===""?[]:o.trim().split(/\s+/);return(await Zn(n,e.channelId,s)).note}case"secret":return Ye(n,e.name,o).note;case"heading":return""}}
6
- export{qt,Ni,Mi,Ti,Ri,_i,Vt,jo,Jo,pt,Dn};
7
-
8
- //# debugId=73ABEE8C2BCCA4AB64756E2164756E21
9
- //# sourceMappingURL=index-s4a28ctb.js.map
@@ -1,5 +0,0 @@
1
- #!/usr/bin/env node
2
- import{Te,le,V,He,X,gA,yA,K,cA,Xe,Ce,Wt,$e,lA,QA,zt,Zt}from"./index-fcqy46mh.js";var{awsEndpointFunctions:Gs,emitWarningIfUnsupportedVersion:Vs,createDefaultUserAgentProvider:Us,NODE_APP_ID_CONFIG_OPTIONS:ws,getAwsRegionExtensionConfiguration:Hs,resolveAwsRegionExtensionConfiguration:js,resolveUserAgentConfig:zs,resolveHostHeaderConfig:Bs,getUserAgentPlugin:qs,getHostHeaderPlugin:Ks,getLoggerPlugin:Js,getRecursionDetectionPlugin:Zs}=Ce(),{resolveEventStreamConfig:Qs,getEventStreamPlugin:Ws}=Wt(),{getHttpAuthSchemeEndpointRuleSetPlugin:Xs,DefaultIdentityProviderConfig:Ys,getHttpSigningPlugin:en,createPaginator:tn}=Xe(),{normalizeProvider:Ke,getSmithyContext:sn,ServiceException:nn,NoOpLogger:on,emitWarningIfUnsupportedVersion:rn,loadConfigsForDefaultMode:an,getDefaultExtensionConfiguration:cn,resolveDefaultRuntimeConfig:pn,Client:Je,makeBuilder:un,createAggregatedClient:ln}=le(),{Command:dn}=le();var Ni=dn,ki=Je;var{resolveDefaultsModeConfig:Sn,loadConfig:L,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:xn,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:hn,NODE_REGION_CONFIG_OPTIONS:En,NODE_REGION_CONFIG_FILE_OPTIONS:mn,resolveRegionConfig:_n}=V(),{BinaryDecisionDiagram:gn,EndpointCache:vn,decideEndpoint:Ln,customEndpointFunctions:Tn,resolveEndpointConfig:yn,getEndpointPlugin:In}=He(),{eventStreamSerdeProvider:$n,resolveEventStreamSerdeConfig:On}=yA(),{parseUrl:fn,getHttpHandlerExtensionConfiguration:Pn,resolveHttpHandlerRuntimeConfig:An,getContentLengthPlugin:Cn}=K(),{DEFAULT_RETRY_MODE:Nn,NODE_RETRY_MODE_CONFIG_OPTIONS:kn,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:Rn,resolveRetryConfig:Dn,getRetryPlugin:bn}=cA(),{TypeRegistry:Ze,getSchemaSerdePlugin:Fn}=Te(),{resolveAwsSdkSigV4Config:Mn,AwsSdkSigV4Signer:Gn,NODE_AUTH_SCHEME_PREFERENCE_OPTIONS:Vn}=$e(),{defaultProvider:Un}=zt(),{eventStreamPayloadHandlerProvider:wn}=Zt(),{toUtf8:Hn,fromUtf8:jn,sdkStreamMixin:zn,toBase64:Bn,fromBase64:qn,calculateBodyLength:Kn}=X(),{streamCollector:Jn,NodeHttp2Handler:Zn}=lA(),{AwsRestJsonProtocol:Qn}=QA(),{Sha256:Wn}=gA(),Xn=async(e,s,p)=>({operation:sn(s).operation,region:await Ke(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function Yn(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"polly",region:e.region},propertiesExtractor:(s,p)=>({signingProperties:{config:s,context:p}})}}var eo=(e)=>{let s=[];switch(e.operation){default:s.push(Yn(e))}return s},to=(e)=>{let s=Mn(e);return Object.assign(s,{authSchemePreference:Ke(e.authSchemePreference??[])})},so=(e)=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:"polly"}),no={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},oo="3.1140.0",ro={version:oo},f="ref",T=-1,A=!0,Me="isSet",Qe="PartitionResult",C="booleanEquals",Ge="getAttr",Ve={[f]:"Endpoint"},Ue={[f]:Qe},O={},we=[{[f]:"Region"}],je={conditions:[[Me,[Ve]],[Me,we],["aws.partition",we,Qe],[C,[{[f]:"UseFIPS"},A]],[C,[{[f]:"UseDualStack"},A]],[C,[{fn:Ge,argv:[Ue,"supportsDualStack"]},A]],[C,[{fn:Ge,argv:[Ue,"supportsFIPS"]},A]]],results:[[T],[T,"Invalid Configuration: FIPS and custom endpoint are not supported"],[T,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[Ve,O],["https://polly-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",O],[T,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://polly-fips.{Region}.{PartitionResult#dnsSuffix}",O],[T,"FIPS is enabled but this partition does not support FIPS"],["https://polly.{Region}.{PartitionResult#dualStackDnsSuffix}",O],[T,"DualStack is enabled but this partition does not support DualStack"],["https://polly.{Region}.{PartitionResult#dnsSuffix}",O],[T,"Invalid Configuration: Missing Region"]]},io=2,l=1e8,ao=new Int32Array([-1,1,-1,0,12,3,1,4,l+11,2,5,l+11,3,8,6,4,7,l+10,5,l+8,l+9,4,10,9,6,l+6,l+7,5,11,l+5,6,l+4,l+5,3,l+1,13,4,l+2,l+3]),co=gn.from(ao,io,je.conditions,je.results),po=new vn({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),uo=(e,s={})=>po.get(e,()=>Ln(co,{endpointParams:e,logger:s.logger}));Tn.aws=Gs;class n extends nn{constructor(e){super(e);Object.setPrototypeOf(this,n.prototype)}}class N extends n{name="LexiconNotFoundException";$fault="client";constructor(e){super({name:"LexiconNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,N.prototype)}}class k extends n{name="ServiceFailureException";$fault="server";constructor(e){super({name:"ServiceFailureException",$fault:"server",...e});Object.setPrototypeOf(this,k.prototype)}}class R extends n{name="InvalidNextTokenException";$fault="client";constructor(e){super({name:"InvalidNextTokenException",$fault:"client",...e});Object.setPrototypeOf(this,R.prototype)}}class D extends n{name="EngineNotSupportedException";$fault="client";constructor(e){super({name:"EngineNotSupportedException",$fault:"client",...e});Object.setPrototypeOf(this,D.prototype)}}class b extends n{name="InvalidTaskIdException";$fault="client";constructor(e){super({name:"InvalidTaskIdException",$fault:"client",...e});Object.setPrototypeOf(this,b.prototype)}}class F extends n{name="SynthesisTaskNotFoundException";$fault="client";constructor(e){super({name:"SynthesisTaskNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,F.prototype)}}class M extends n{name="InvalidLexiconException";$fault="client";constructor(e){super({name:"InvalidLexiconException",$fault:"client",...e});Object.setPrototypeOf(this,M.prototype)}}class G extends n{name="InvalidS3BucketException";$fault="client";constructor(e){super({name:"InvalidS3BucketException",$fault:"client",...e});Object.setPrototypeOf(this,G.prototype)}}class U extends n{name="InvalidS3KeyException";$fault="client";constructor(e){super({name:"InvalidS3KeyException",$fault:"client",...e});Object.setPrototypeOf(this,U.prototype)}}class w extends n{name="InvalidSampleRateException";$fault="client";constructor(e){super({name:"InvalidSampleRateException",$fault:"client",...e});Object.setPrototypeOf(this,w.prototype)}}class H extends n{name="InvalidSnsTopicArnException";$fault="client";constructor(e){super({name:"InvalidSnsTopicArnException",$fault:"client",...e});Object.setPrototypeOf(this,H.prototype)}}class j extends n{name="InvalidSsmlException";$fault="client";constructor(e){super({name:"InvalidSsmlException",$fault:"client",...e});Object.setPrototypeOf(this,j.prototype)}}class z extends n{name="LanguageNotSupportedException";$fault="client";constructor(e){super({name:"LanguageNotSupportedException",$fault:"client",...e});Object.setPrototypeOf(this,z.prototype)}}class B extends n{name="LexiconSizeExceededException";$fault="client";constructor(e){super({name:"LexiconSizeExceededException",$fault:"client",...e});Object.setPrototypeOf(this,B.prototype)}}class q extends n{name="MarksNotSupportedForFormatException";$fault="client";constructor(e){super({name:"MarksNotSupportedForFormatException",$fault:"client",...e});Object.setPrototypeOf(this,q.prototype)}}class J extends n{name="MaxLexemeLengthExceededException";$fault="client";constructor(e){super({name:"MaxLexemeLengthExceededException",$fault:"client",...e});Object.setPrototypeOf(this,J.prototype)}}class Z extends n{name="MaxLexiconsNumberExceededException";$fault="client";constructor(e){super({name:"MaxLexiconsNumberExceededException",$fault:"client",...e});Object.setPrototypeOf(this,Z.prototype)}}class Q extends n{name="UnsupportedPlsAlphabetException";$fault="client";constructor(e){super({name:"UnsupportedPlsAlphabetException",$fault:"client",...e});Object.setPrototypeOf(this,Q.prototype)}}class W extends n{name="UnsupportedPlsLanguageException";$fault="client";constructor(e){super({name:"UnsupportedPlsLanguageException",$fault:"client",...e});Object.setPrototypeOf(this,W.prototype)}}class Y extends n{name="ServiceQuotaExceededException";$fault="client";quotaCode;serviceCode;constructor(e){super({name:"ServiceQuotaExceededException",$fault:"client",...e});Object.setPrototypeOf(this,Y.prototype),this.quotaCode=e.quotaCode,this.serviceCode=e.serviceCode}}class ee extends n{name="ThrottlingException";$fault="client";throttlingReasons;constructor(e){super({name:"ThrottlingException",$fault:"client",...e});Object.setPrototypeOf(this,ee.prototype),this.throttlingReasons=e.throttlingReasons}}class te extends n{name="ValidationException";$fault="client";reason;fields;constructor(e){super({name:"ValidationException",$fault:"client",...e});Object.setPrototypeOf(this,te.prototype),this.reason=e.reason,this.fields=e.fields}}class se extends n{name="SsmlMarksNotSupportedForTextTypeException";$fault="client";constructor(e){super({name:"SsmlMarksNotSupportedForTextTypeException",$fault:"client",...e});Object.setPrototypeOf(this,se.prototype)}}class ne extends n{name="TextLengthExceededException";$fault="client";constructor(e){super({name:"TextLengthExceededException",$fault:"client",...e});Object.setPrototypeOf(this,ne.prototype)}}var lo="Alphabet",So="AudioChunk",We="AudioEvent",xo="AdditionalLanguageCodes",Ye="AudioStream",ho="ActionStream",Eo="Attributes",et="Content",tt="CloseStreamEvent",mo="CreationTime",_o="Content-Type",go="ContentType",vo="DeleteLexicon",Lo="DeleteLexiconInput",To="DeleteLexiconOutput",yo="DescribeVoices",Io="DescribeVoicesInput",$o="DescribeVoicesOutput",y="Engine",Oo="EngineNotSupportedException",fo="EventStream",Po="Force",st="FlushStreamConfiguration",Ao="Gender",Co="GetLexicon",No="GetLexiconInput",ko="GetLexiconOutput",Ro="GetSpeechSynthesisTask",Do="GetSpeechSynthesisTaskInput",bo="GetSpeechSynthesisTaskOutput",Fo="Id",ze="IncludeAdditionalLanguageCodes",Mo="InvalidLexiconException",Go="InvalidNextTokenException",Vo="InvalidS3BucketException",Uo="InvalidSsmlException",wo="InvalidS3KeyException",Ho="InvalidSampleRateException",jo="InvalidSnsTopicArnException",zo="InvalidTaskIdException",nt="Lexicon",ot="LexiconAttributes",Bo="LexiconArn",qo="LexiconContent",v="LanguageCode",Ko="LexemesCount",Jo="LexiconDescription",Zo="LexiconDescriptionList",Qo="ListLexicons",Wo="ListLexiconsInput",Xo="ListLexiconsOutput",Yo="LastModified",oe="LexiconNames",er="LexiconNotFoundException",tr="LanguageNotSupportedException",sr="LanguageName",nr="LexiconSizeExceededException",or="ListSpeechSynthesisTasks",rr="ListSpeechSynthesisTasksInput",ir="ListSpeechSynthesisTasksOutput",ar="Lexicons",cr="MaxLexemeLengthExceededException",pr="MaxLexiconsNumberExceededException",ur="MarksNotSupportedForFormatException",Be="MaxResults",I="Name",E="NextToken",re="OutputFormat",lr="OutputS3BucketName",dr="OutputS3KeyPrefix",Sr="OutputUri",xr="PutLexicon",hr="PutLexiconInput",Er="PutLexiconOutput",xe="RequestCharacters",mr="Size",rt="StreamClosedEvent",_r="SupportedEngines",it="ServiceFailureException",gr="SsmlMarksNotSupportedForTextTypeException",he="SpeechMarkTypes",at="ServiceQuotaExceededException",ie="SampleRate",vr="SynthesizeSpeech",Lr="SynthesizeSpeechInput",Tr="SynthesizeSpeechOutput",yr="StartSpeechSynthesisStream",Ir="StartSpeechSynthesisStreamActionStream",$r="StartSpeechSynthesisStreamEventStream",Or="StartSpeechSynthesisStreamInput",fr="StartSpeechSynthesisStreamOutput",Pr="StartSpeechSynthesisTask",Ar="StartSpeechSynthesisTaskInput",Cr="StartSpeechSynthesisTaskOutput",Ee="SynthesisTask",ct="SnsTopicArn",Nr="SynthesisTaskNotFoundException",pt="SynthesisTasks",qe="Status",me="Text",ut="ThrottlingException",lt="TextEvent",dt="TaskId",kr="TextLengthExceededException",Rr="ThrottlingReason",Dr="ThrottlingReasonList",br="TaskStatus",Fr="TaskStatusReason",ae="TextType",Mr="UnsupportedPlsAlphabetException",Gr="UnsupportedPlsLanguageException",Vr="Voices",St="ValidationException",Ur="ValidationExceptionField",wr="ValidationExceptionFieldList",ce="VoiceId",Hr="VoiceList",jr="Voice",zr="awsQueryError",c="client",i="error",Br="eventPayload",qr="fields",S="http",a="httpError",_="httpHeader",g="httpQuery",o="message",Kr="name",Jr="quotaCode",xt="reason",Zr="resource",ht="smithy.ts.sdk.synthetic.com.amazonaws.polly",Qr="serviceCode",Wr="server",_e="streaming",Xr="throttlingReasons",Yr="x-amzn-Engine",ei="x-amzn-LanguageCode",ti="x-amzn-LexiconNames",si="x-amzn-OutputFormat",ni="x-amzn-RequestCharacters",oi="x-amzn-SampleRate",ri="x-amzn-VoiceId",t="com.amazonaws.polly",Et=new Ze(ht),mt=[-3,ht,"PollyServiceException",0,[],[]];Et.registerError(mt,n);var r=new Ze(t),_t=[-3,t,Oo,{[i]:c,[a]:400},[o],[0]];r.registerError(_t,D);var gt=[-3,t,Mo,{[i]:c,[a]:400},[o],[0]];r.registerError(gt,M);var vt=[-3,t,Go,{[i]:c,[a]:400},[o],[0]];r.registerError(vt,R);var Lt=[-3,t,Vo,{[i]:c,[a]:400},[o],[0]];r.registerError(Lt,G);var Tt=[-3,t,wo,{[i]:c,[a]:400},[o],[0]];r.registerError(Tt,U);var yt=[-3,t,Ho,{[i]:c,[a]:400},[o],[0]];r.registerError(yt,w);var It=[-3,t,jo,{[i]:c,[a]:400},[o],[0]];r.registerError(It,H);var $t=[-3,t,Uo,{[i]:c,[a]:400},[o],[0]];r.registerError($t,j);var Ot=[-3,t,zo,{[i]:c,[a]:400},[o],[0]];r.registerError(Ot,b);var ft=[-3,t,tr,{[i]:c,[a]:400},[o],[0]];r.registerError(ft,z);var Pt=[-3,t,er,{[i]:c,[a]:404},[o],[0]];r.registerError(Pt,N);var At=[-3,t,nr,{[i]:c,[a]:400},[o],[0]];r.registerError(At,B);var Ct=[-3,t,ur,{[i]:c,[a]:400},[o],[0]];r.registerError(Ct,q);var Nt=[-3,t,cr,{[i]:c,[a]:400},[o],[0]];r.registerError(Nt,J);var kt=[-3,t,pr,{[i]:c,[a]:400},[o],[0]];r.registerError(kt,Z);var ge=[-3,t,it,{[i]:Wr,[a]:500},[o],[0]];r.registerError(ge,k);var ve=[-3,t,at,{[i]:c,[a]:402},[o,Jr,Qr],[0,0,0],3];r.registerError(ve,Y);var Rt=[-3,t,gr,{[i]:c,[a]:400},[o],[0]];r.registerError(Rt,se);var Dt=[-3,t,Nr,{[i]:c,[a]:400},[o],[0]];r.registerError(Dt,F);var bt=[-3,t,kr,{[i]:c,[a]:400},[o],[0]];r.registerError(bt,ne);var Le=[-3,t,ut,{[zr]:["Throttling",400],[i]:c,[a]:400},[o,Xr],[0,()=>pi]];r.registerError(Le,ee);var Ft=[-3,t,Mr,{[i]:c,[a]:400},[o],[0]];r.registerError(Ft,Q);var Mt=[-3,t,Gr,{[i]:c,[a]:400},[o],[0]];r.registerError(Mt,W);var ye=[-3,t,St,{[i]:c,[a]:400},[o,xt,qr],[0,0,()=>ui],2];r.registerError(ye,te);var Gt=[Et,r],ii=[0,t,Ye,{[_e]:1},42],Vt=[0,t,qo,8,0],Ut=[3,t,We,0,[So],[[21,{[Br]:1}]]],wt=[3,t,tt,0,[],[]],Ht=[3,t,Lo,0,[I],[[0,1]],1],jt=[3,t,To,0,[],[]],Bt=[3,t,Io,0,[y,v,ze,E],[[0,{[g]:y}],[0,{[g]:v}],[2,{[g]:ze}],[0,{[g]:E}]]],qt=[3,t,$o,0,[Vr,E],[()=>li,0]],Kt=[3,t,st,0,[Po],[2]],Jt=[3,t,No,0,[I],[[0,1]],1],Qt=[3,t,ko,0,[nt,ot],[[()=>es,0],()=>Ie]],Xt=[3,t,Do,0,[dt],[[0,1]],1],Yt=[3,t,bo,0,[Ee],[()=>pe]],es=[3,t,nt,0,[et,I],[[()=>Vt,0],0]],Ie=[3,t,ot,0,[lo,v,Yo,Bo,Ko,mr],[0,0,4,0,1,1]],ts=[3,t,Jo,0,[I,Eo],[0,()=>Ie]],ss=[3,t,Wo,0,[E],[[0,{[g]:E}]]],ns=[3,t,Xo,0,[ar,E],[()=>ai,0]],os=[3,t,rr,0,[Be,E,qe],[[1,{[g]:Be}],[0,{[g]:E}],[0,{[g]:qe}]]],rs=[3,t,ir,0,[E,pt],[0,()=>ci]],is=[3,t,hr,0,[I,et],[[0,1],[()=>Vt,0]],2],as=[3,t,Er,0,[],[]],cs=[3,t,Or,0,[y,re,ce,v,oe,ie,ho],[[0,{[_]:Yr}],[0,{[_]:si}],[0,{[_]:ri}],[0,{[_]:ei}],[64,{[_]:ti}],[0,{[_]:oi}],[()=>gs,16]],3],ps=[3,t,fr,0,[fo],[[()=>vs,16]]],us=[3,t,Ar,0,[re,lr,me,ce,y,v,oe,dr,ie,ct,he,ae],[0,0,0,0,0,0,64,0,0,0,64,0],4],ls=[3,t,Cr,0,[Ee],[()=>pe]],ds=[3,t,rt,0,[xe],[1]],pe=[3,t,Ee,0,[y,dt,br,Fr,Sr,mo,xe,ct,oe,re,ie,he,ae,ce,v],[0,0,0,0,0,4,1,0,64,0,0,64,0,0,0]],Ss=[3,t,Lr,0,[re,me,ce,y,v,oe,ie,he,ae],[0,0,0,0,0,64,0,64,0],3],xs=[3,t,Tr,0,[Ye,go,xe],[[()=>ii,16],[0,{[_]:_o}],[1,{[_]:ni}]]],hs=[3,t,lt,0,[me,ae,st],[0,0,()=>Kt],1],Es=[3,t,Rr,0,[xt,Zr],[0,0]],ms=[3,t,Ur,0,[Kr,o],[0,0],2],_s=[3,t,jr,0,[Ao,Fo,v,sr,I,xo,_r],[0,0,0,0,0,64,64]],ai=[1,t,Zo,0,()=>ts],ci=[1,t,pt,0,()=>pe],pi=[1,t,Dr,0,()=>Es],ui=[1,t,wr,0,()=>ms],li=[1,t,Hr,0,()=>_s],gs=[4,t,Ir,{[_e]:1},[lt,tt],[()=>hs,()=>wt]],vs=[4,t,$r,{[_e]:1},[We,rt,St,at,it,ut],[[()=>Ut,0],()=>ds,[()=>ye,0],[()=>ve,0],[()=>ge,0],[()=>Le,0]]],Ls=[9,t,vo,{[S]:["DELETE","/v1/lexicons/{Name}",200]},()=>Ht,()=>jt],Ts=[9,t,yo,{[S]:["GET","/v1/voices",200]},()=>Bt,()=>qt],ys=[9,t,Co,{[S]:["GET","/v1/lexicons/{Name}",200]},()=>Jt,()=>Qt],Is=[9,t,Ro,{[S]:["GET","/v1/synthesisTasks/{TaskId}",200]},()=>Xt,()=>Yt],$s=[9,t,Qo,{[S]:["GET","/v1/lexicons",200]},()=>ss,()=>ns],Os=[9,t,or,{[S]:["GET","/v1/synthesisTasks",200]},()=>os,()=>rs],fs=[9,t,xr,{[S]:["PUT","/v1/lexicons/{Name}",200]},()=>is,()=>as],Ps=[9,t,yr,{[S]:["POST","/v1/synthesisStream",200]},()=>cs,()=>ps],As=[9,t,Pr,{[S]:["POST","/v1/synthesisTasks",200]},()=>us,()=>ls],Cs=[9,t,vr,{[S]:["POST","/v1/speech",200]},()=>Ss,()=>xs],di=(e)=>({apiVersion:"2016-06-10",base64Decoder:e?.base64Decoder??qn,base64Encoder:e?.base64Encoder??Bn,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??uo,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??eo,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(s)=>s.getIdentityProvider("aws.auth#sigv4"),signer:new Gn}],logger:e?.logger??new on,protocol:e?.protocol??Qn,protocolSettings:e?.protocolSettings??{defaultNamespace:"com.amazonaws.polly",errorTypeRegistries:Gt,xmlNamespace:"http://polly.amazonaws.com/doc/v1",version:"2016-06-10",serviceTarget:"Parrot_v1"},sdkStreamMixin:e?.sdkStreamMixin??zn,serviceId:e?.serviceId??"Polly",sha256:e?.sha256??Wn,urlParser:e?.urlParser??fn,utf8Decoder:e?.utf8Decoder??jn,utf8Encoder:e?.utf8Encoder??Hn}),Si=(e)=>{rn(process.version);let s=Sn(e),p=()=>s().then(an),d=di(e);Vs(process.version);let u={profile:e?.profile,logger:d.logger};return{...d,...e,runtime:"node",defaultsMode:s,authSchemePreference:e?.authSchemePreference??L(Vn,u),bodyLengthChecker:e?.bodyLengthChecker??Kn,credentialDefaultProvider:e?.credentialDefaultProvider??Un,defaultUserAgentProvider:e?.defaultUserAgentProvider??Us({serviceId:d.serviceId,clientVersion:ro.version}),eventStreamPayloadHandlerProvider:e?.eventStreamPayloadHandlerProvider??wn,eventStreamSerdeProvider:e?.eventStreamSerdeProvider??$n,maxAttempts:e?.maxAttempts??L(Rn,e),region:e?.region??L(En,{...mn,...u}),requestHandler:Zn.create(e?.requestHandler??(async()=>({...await p(),disableConcurrentStreams:!0}))),retryMode:e?.retryMode??L({...kn,default:async()=>(await p()).retryMode||Nn},e),streamCollector:e?.streamCollector??Jn,useDualstackEndpoint:e?.useDualstackEndpoint??L(hn,u),useFipsEndpoint:e?.useFipsEndpoint??L(xn,u),userAgentAppId:e?.userAgentAppId??L(ws,u)}},xi=(e)=>{let{httpAuthSchemes:s,httpAuthSchemeProvider:p,credentials:d}=e;return{setHttpAuthScheme(u){let P=s.findIndex((Se)=>Se.schemeId===u.schemeId);if(P===-1)s.push(u);else s.splice(P,1,u)},httpAuthSchemes(){return s},setHttpAuthSchemeProvider(u){p=u},httpAuthSchemeProvider(){return p},setCredentials(u){d=u},credentials(){return d}}},hi=(e)=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),Ei=(e,s)=>{let p=Object.assign(Hs(e),cn(e),Pn(e),xi(e));return s.forEach((d)=>d.configure(p)),Object.assign(e,js(p),pn(p),An(p),hi(p))};class ue extends Je{config;constructor(...[e]){let s=Si(e||{});super(s);this.initConfig=s;let p=so(s),d=zs(p),u=Dn(d),P=_n(u),Se=Bs(P),ks=yn(Se),Rs=On(ks),Ds=to(Rs),bs=Qs(Ds),Fs=Ei(bs,e?.extensions||[]);this.config=Fs,this.middlewareStack.use(Fn(this.config)),this.middlewareStack.use(qs(this.config)),this.middlewareStack.use(bn(this.config)),this.middlewareStack.use(Cn(this.config)),this.middlewareStack.use(Ks(this.config)),this.middlewareStack.use(Js(this.config)),this.middlewareStack.use(Zs(this.config)),this.middlewareStack.use(Xs(this.config,{httpAuthSchemeParametersProvider:Xn,identityProviderConfigProvider:async(Ms)=>new Ys({"aws.auth#sigv4":Ms.credentials})})),this.middlewareStack.use(en(this.config))}destroy(){super.destroy()}}var x=un(no,"Parrot_v1","PollyClient",In),h={},m=(e,s,p,d)=>[],mi=(e,s,p,d)=>[Ws(p)];class Oe extends x(h,m,"DeleteLexicon",Ls){}class fe extends x(h,m,"DescribeVoices",Ts){}class Pe extends x(h,m,"GetLexicon",ys){}class Ae extends x(h,m,"GetSpeechSynthesisTask",Is){}class Ne extends x(h,m,"ListLexicons",$s){}class de extends x(h,m,"ListSpeechSynthesisTasks",Os){}class ke extends x(h,m,"PutLexicon",fs){}class Re extends x(h,mi,"StartSpeechSynthesisStream",Ps){}class De extends x(h,m,"StartSpeechSynthesisTask",As){}class be extends x(h,m,"SynthesizeSpeech",Cs){}var Ns=tn(ue,de,"NextToken","NextToken","MaxResults"),_i={DeleteLexiconCommand:Oe,DescribeVoicesCommand:fe,GetLexiconCommand:Pe,GetSpeechSynthesisTaskCommand:Ae,ListLexiconsCommand:Ne,ListSpeechSynthesisTasksCommand:de,PutLexiconCommand:ke,StartSpeechSynthesisStreamCommand:Re,StartSpeechSynthesisTaskCommand:De,SynthesizeSpeechCommand:be},gi={paginateListSpeechSynthesisTasks:Ns};class Fe extends ue{}ln(_i,Fe,{paginators:gi});var vi={GENERATIVE:"generative",LONG_FORM:"long-form",NEURAL:"neural",STANDARD:"standard"},Li={ar_AE:"ar-AE",arb:"arb",ca_ES:"ca-ES",cmn_CN:"cmn-CN",cs_CZ:"cs-CZ",cy_GB:"cy-GB",da_DK:"da-DK",de_AT:"de-AT",de_CH:"de-CH",de_DE:"de-DE",en_AU:"en-AU",en_GB:"en-GB",en_GB_WLS:"en-GB-WLS",en_IE:"en-IE",en_IN:"en-IN",en_NZ:"en-NZ",en_SG:"en-SG",en_US:"en-US",en_ZA:"en-ZA",es_ES:"es-ES",es_MX:"es-MX",es_US:"es-US",fi_FI:"fi-FI",fr_BE:"fr-BE",fr_CA:"fr-CA",fr_FR:"fr-FR",hi_IN:"hi-IN",is_IS:"is-IS",it_IT:"it-IT",ja_JP:"ja-JP",ko_KR:"ko-KR",nb_NO:"nb-NO",nl_BE:"nl-BE",nl_NL:"nl-NL",pl_PL:"pl-PL",pt_BR:"pt-BR",pt_PT:"pt-PT",ro_RO:"ro-RO",ru_RU:"ru-RU",sv_SE:"sv-SE",tr_TR:"tr-TR",yue_CN:"yue-CN"},Ti={Female:"Female",Male:"Male"},yi={Aditi:"Aditi",Adriano:"Adriano",Ambre:"Ambre",Amy:"Amy",Andres:"Andres",Aria:"Aria",Arlet:"Arlet",Arthur:"Arthur",Astrid:"Astrid",Ayanda:"Ayanda",Beatrice:"Beatrice",Bianca:"Bianca",Brian:"Brian",Burcu:"Burcu",Camila:"Camila",Carla:"Carla",Carmen:"Carmen",Celine:"Celine",Chantal:"Chantal",Conchita:"Conchita",Cristiano:"Cristiano",Daniel:"Daniel",Danielle:"Danielle",Dora:"Dora",Elin:"Elin",Emma:"Emma",Enrique:"Enrique",Ewa:"Ewa",Filiz:"Filiz",Florian:"Florian",Gabrielle:"Gabrielle",Geraint:"Geraint",Giorgio:"Giorgio",Gregory:"Gregory",Gwyneth:"Gwyneth",Hala:"Hala",Hannah:"Hannah",Hans:"Hans",Hiujin:"Hiujin",Ida:"Ida",Ines:"Ines",Isabelle:"Isabelle",Ivy:"Ivy",Jacek:"Jacek",Jan:"Jan",Jasmine:"Jasmine",Jihye:"Jihye",Jitka:"Jitka",Joanna:"Joanna",Joey:"Joey",Justin:"Justin",Kajal:"Kajal",Karl:"Karl",Kazuha:"Kazuha",Kendra:"Kendra",Kevin:"Kevin",Kimberly:"Kimberly",Laura:"Laura",Lea:"Lea",Lennart:"Lennart",Liam:"Liam",Lisa:"Lisa",Liv:"Liv",Lorenzo:"Lorenzo",Lotte:"Lotte",Lucia:"Lucia",Lupe:"Lupe",Mads:"Mads",Maja:"Maja",Marlene:"Marlene",Mathieu:"Mathieu",Matthew:"Matthew",Maxim:"Maxim",Mia:"Mia",Miguel:"Miguel",Mizuki:"Mizuki",Naja:"Naja",Niamh:"Niamh",Nicole:"Nicole",Ola:"Ola",Olivia:"Olivia",Pedro:"Pedro",Penelope:"Penelope",Raveena:"Raveena",Remi:"Remi",Ricardo:"Ricardo",Ruben:"Ruben",Russell:"Russell",Ruth:"Ruth",Sabrina:"Sabrina",Salli:"Salli",Seoyeon:"Seoyeon",Sergio:"Sergio",Sofie:"Sofie",Stephen:"Stephen",Suvi:"Suvi",Takumi:"Takumi",Tatyana:"Tatyana",Thiago:"Thiago",Tiffany:"Tiffany",Tomoko:"Tomoko",Vicki:"Vicki",Vitoria:"Vitoria",Zayd:"Zayd",Zeina:"Zeina",Zhiyu:"Zhiyu"},Ii={ALAW:"alaw",JSON:"json",MP3:"mp3",MULAW:"mulaw",OGG_OPUS:"ogg_opus",OGG_VORBIS:"ogg_vorbis",PCM:"pcm"},$i={SENTENCE:"sentence",SSML:"ssml",VISEME:"viseme",WORD:"word"},Oi={COMPLETED:"completed",FAILED:"failed",IN_PROGRESS:"inProgress",SCHEDULED:"scheduled"},fi={SSML:"ssml",TEXT:"text"},Pi={INPUT_STREAM_INBOUND_EVENT_TIMEOUT:"input-stream-inbound-event-timeout",INPUT_STREAM_TIMEOUT:"input-stream-timeout"},Ai={POLLY:"polly"},Ci={FIELD_VALIDATION_FAILED:"fieldValidationFailed",INVALID_INBOUND_EVENT:"invalidInboundEvent",OTHER:"other",UNSUPPORTED_OPERATION:"unsupportedOperation"};var Ri=Ut,Di=wt,bi=Ls,Fi=Oe,Mi=Ht,Gi=jt,Vi=Ts,Ui=fe,wi=Bt,Hi=qt,ji=vi,zi=D,Bi=_t,qi=Kt,Ki=Ti,Ji=ys,Zi=Pe,Qi=Jt,Wi=Qt,Xi=Is,Yi=Ae,ea=Xt,ta=Yt,sa=M,na=gt,oa=R,ra=vt,ia=G,aa=Lt,ca=U,pa=Tt,ua=w,la=yt,da=H,Sa=It,xa=j,ha=$t,Ea=b,ma=Ot,_a=Li,ga=z,va=ft,La=es,Ta=Ie,ya=ts,Ia=N,$a=Pt,Oa=B,fa=At,Pa=$s,Aa=Ne,Ca=ss,Na=ns,ka=Os,Ra=de,Da=os,ba=rs,Fa=q,Ma=Ct,Ga=J,Va=Nt,Ua=Z,wa=kt,Ha=Ii,ja=Fe,za=ue,Ba=n,qa=mt,Ka=fs,Ja=ke,Za=is,Qa=as,Wa=Pi,Xa=Ai,Ya=k,ec=ge,tc=Y,sc=ve,nc=$i,oc=se,rc=Rt,ic=Ps,ac=gs,cc=Re,pc=vs,uc=cs,lc=ps,dc=As,Sc=De,xc=us,hc=ls,Ec=ds,mc=pe,_c=F,gc=Dt,vc=Cs,Lc=be,Tc=Ss,yc=xs,Ic=Oi,$c=hs,Oc=ne,fc=bt,Pc=fi,Ac=ee,Cc=Le,Nc=Es,kc=Q,Rc=Ft,Dc=W,bc=Mt,Fc=te,Mc=ye,Gc=ms,Vc=Ci,Uc=_s,wc=yi,Hc=Gt,jc=Ns;export{Ni as $Command,ki as __Client,Ri as AudioEvent$,Di as CloseStreamEvent$,bi as DeleteLexicon$,Fi as DeleteLexiconCommand,Mi as DeleteLexiconInput$,Gi as DeleteLexiconOutput$,Vi as DescribeVoices$,Ui as DescribeVoicesCommand,wi as DescribeVoicesInput$,Hi as DescribeVoicesOutput$,ji as Engine,zi as EngineNotSupportedException,Bi as EngineNotSupportedException$,qi as FlushStreamConfiguration$,Ki as Gender,Ji as GetLexicon$,Zi as GetLexiconCommand,Qi as GetLexiconInput$,Wi as GetLexiconOutput$,Xi as GetSpeechSynthesisTask$,Yi as GetSpeechSynthesisTaskCommand,ea as GetSpeechSynthesisTaskInput$,ta as GetSpeechSynthesisTaskOutput$,sa as InvalidLexiconException,na as InvalidLexiconException$,oa as InvalidNextTokenException,ra as InvalidNextTokenException$,ia as InvalidS3BucketException,aa as InvalidS3BucketException$,ca as InvalidS3KeyException,pa as InvalidS3KeyException$,ua as InvalidSampleRateException,la as InvalidSampleRateException$,da as InvalidSnsTopicArnException,Sa as InvalidSnsTopicArnException$,xa as InvalidSsmlException,ha as InvalidSsmlException$,Ea as InvalidTaskIdException,ma as InvalidTaskIdException$,_a as LanguageCode,ga as LanguageNotSupportedException,va as LanguageNotSupportedException$,La as Lexicon$,Ta as LexiconAttributes$,ya as LexiconDescription$,Ia as LexiconNotFoundException,$a as LexiconNotFoundException$,Oa as LexiconSizeExceededException,fa as LexiconSizeExceededException$,Pa as ListLexicons$,Aa as ListLexiconsCommand,Ca as ListLexiconsInput$,Na as ListLexiconsOutput$,ka as ListSpeechSynthesisTasks$,Ra as ListSpeechSynthesisTasksCommand,Da as ListSpeechSynthesisTasksInput$,ba as ListSpeechSynthesisTasksOutput$,Fa as MarksNotSupportedForFormatException,Ma as MarksNotSupportedForFormatException$,Ga as MaxLexemeLengthExceededException,Va as MaxLexemeLengthExceededException$,Ua as MaxLexiconsNumberExceededException,wa as MaxLexiconsNumberExceededException$,Ha as OutputFormat,ja as Polly,za as PollyClient,Ba as PollyServiceException,qa as PollyServiceException$,Ka as PutLexicon$,Ja as PutLexiconCommand,Za as PutLexiconInput$,Qa as PutLexiconOutput$,Wa as QuotaCode,Xa as ServiceCode,Ya as ServiceFailureException,ec as ServiceFailureException$,tc as ServiceQuotaExceededException,sc as ServiceQuotaExceededException$,nc as SpeechMarkType,oc as SsmlMarksNotSupportedForTextTypeException,rc as SsmlMarksNotSupportedForTextTypeException$,ic as StartSpeechSynthesisStream$,ac as StartSpeechSynthesisStreamActionStream$,cc as StartSpeechSynthesisStreamCommand,pc as StartSpeechSynthesisStreamEventStream$,uc as StartSpeechSynthesisStreamInput$,lc as StartSpeechSynthesisStreamOutput$,dc as StartSpeechSynthesisTask$,Sc as StartSpeechSynthesisTaskCommand,xc as StartSpeechSynthesisTaskInput$,hc as StartSpeechSynthesisTaskOutput$,Ec as StreamClosedEvent$,mc as SynthesisTask$,_c as SynthesisTaskNotFoundException,gc as SynthesisTaskNotFoundException$,vc as SynthesizeSpeech$,Lc as SynthesizeSpeechCommand,Tc as SynthesizeSpeechInput$,yc as SynthesizeSpeechOutput$,Ic as TaskStatus,$c as TextEvent$,Oc as TextLengthExceededException,fc as TextLengthExceededException$,Pc as TextType,Ac as ThrottlingException,Cc as ThrottlingException$,Nc as ThrottlingReason$,kc as UnsupportedPlsAlphabetException,Rc as UnsupportedPlsAlphabetException$,Dc as UnsupportedPlsLanguageException,bc as UnsupportedPlsLanguageException$,Fc as ValidationException,Mc as ValidationException$,Gc as ValidationExceptionField$,Vc as ValidationExceptionReason,Uc as Voice$,wc as VoiceId,Hc as errorTypeRegistries,jc as paginateListSpeechSynthesisTasks};
3
-
4
- //# debugId=11E103FDE63E9B5864756E2164756E21
5
- //# sourceMappingURL=index-tny7c703.js.map
@@ -1,6 +0,0 @@
1
- #!/usr/bin/env node
2
- var oa="\x1B[?25h",Ro="\x1B[0m",ra="\x1B[2m",RA="\x1B[?1049h",ia="\x1B[?1049l",sa="\x1B[<u",be=80,_o=24,ko=12,Lo="› ",vo=40,Po=140,dt=8,ut=40,Et=8,aa=200,Ci=100,Go=10,ga=4,ca=6,Fo=3,la=2000,Uo=50,Ia=1,o=0,d=1,da=143;var ua=3,Ea=23,Ca=8,fa=400,Or=1,yn=12,pa=300,Ba=2000;
3
- export{oa,Ro,ra,RA,ia,sa,be,_o,ko,Lo,vo,Po,dt,ut,Et,aa,Ci,Go,ga,ca,Fo,la,Uo,Ia,o,d,da,ua,Ea,Ca,fa,Or,yn,pa,Ba};
4
-
5
- //# debugId=BD6C01B66CCF614164756E2164756E21
6
- //# sourceMappingURL=index-v6taf4vn.js.map
@@ -1,14 +0,0 @@
1
- #!/usr/bin/env node
2
- import{A}from"./index-1h9pqnec.js";import"./index-1wxw30j1.js";import{et}from"./index-z88f35vs.js";import{je,Je,me,Nt}from"./index-qe3ybzh6.js";import{wA}from"./index-jv7egrh2.js";import"./index-dwxmy0kx.js";import{o,d}from"./index-v6taf4vn.js";function f(e){if(e==="darwin")return{command:"open",args:[]};if(e==="linux")return{command:"xdg-open",args:[]};if(e==="win32")return{command:"cmd",args:["/c","start",""]};return}var p=5000;async function i(e,n={}){if(n.noOpen===!0)return{opened:!1,refusal:"asked-not-to"};if(n.isTty!==!0)return{opened:!1,refusal:"not-a-terminal"};let r=f(n.platform??process.platform);if(r===void 0)return{opened:!1,refusal:"no-opener"};let t=await(n.spawn??wA)({command:r.command,args:[...r.args,e],timeoutMs:p});if(t.notFound)return{opened:!1,refusal:"no-opener"};if(t.code!==0||t.signalled)return{opened:!1,refusal:"opener-failed",...t.stderr.trim()===""?{}:{detail:t.stderr.trim()}};return{opened:!0}}function u(e,n){if(n.opened)return`opening ${e}`;switch(n.refusal){case"asked-not-to":return e;case"not-a-terminal":return e;case"no-opener":return`no browser here — open this from a machine that has one:
3
- ${e}`;default:return`could not open a browser${n.detail===void 0?"":` (${n.detail})`} — open this:
4
- ${e}`}}async function b(e){let n=e.action??"run",r=e.manifestPath===void 0?void 0:me(e.manifestPath),s=r===void 0?await Je(e.store):await je(r,e.store);if(s?.baseUrl===void 0||s.baseUrl==="")return process.stderr.write(`no ${A.name} server is running${r===void 0?"":` for "${r}"`}.
5
- hint: ${A.slug} serve${r===void 0?"":` ${r}`} starts one in this terminal, and ${A.slug} daemon install keeps it running.
6
- `),d;let t=et(s.baseUrl,r);if(n==="url")return process.stdout.write(`${t}
7
- `),o;let a=await i(t,{isTty:process.stdout.isTTY===!0,...e.noOpen===!0?{noOpen:!0}:{}});if(process.stdout.write(`${u(t,a)}
8
- `),!a.opened&&e.json===!0)process.stdout.write(`${JSON.stringify({url:t,opened:!1,why:a.refusal})}
9
- `);if(a.opened&&Nt(e.manifestPath??"")!==void 0)process.stdout.write(` if the page asks for a credential, mint one:
10
- ${A.slug} credential create --label 'my browser'
11
- `);return o}export{b as webCommand};
12
-
13
- //# debugId=6A430735ED07B14D64756E2164756E21
14
- //# sourceMappingURL=web-stkkwyka.js.map
@@ -1,5 +0,0 @@
1
- #!/usr/bin/env node
2
- import{Sa,Bt}from"./index-gqbny9gy.js";var a=Sa.default;export{a as WebSocketServer,Bt as default};
3
-
4
- //# debugId=529EC338DAD80B3364756E2164756E21
5
- //# sourceMappingURL=wrapper-bwxbqa53.js.map