claude-code-best 1.4.4 → 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (423) hide show
  1. package/README.md +1 -0
  2. package/dist/{chunk-n18n51gd.js → chunk-07hgsrrj.js} +61 -65
  3. package/dist/{chunk-10cw48wr.js → chunk-08s2vf8j.js} +51 -52
  4. package/dist/{chunk-8zx2v88n.js → chunk-099vkedx.js} +2 -2
  5. package/dist/{chunk-bvzn7axc.js → chunk-0bbrkswa.js} +1 -1
  6. package/dist/{chunk-9k46vkdf.js → chunk-0bqtrr6h.js} +55 -56
  7. package/dist/{chunk-kbzh54rh.js → chunk-0g5qnby7.js} +6 -6
  8. package/dist/{chunk-g558vggk.js → chunk-0h1mmmrb.js} +15 -15
  9. package/dist/{chunk-z2e401ww.js → chunk-0j7426hg.js} +2 -2
  10. package/dist/{chunk-0z0m6mm5.js → chunk-0k1jmtw9.js} +2 -2
  11. package/dist/{chunk-478xh8c9.js → chunk-0k5v3m41.js} +49 -50
  12. package/dist/chunk-0kd8mq8j.js +36 -0
  13. package/dist/{chunk-3fp4s54c.js → chunk-0n0ca69d.js} +8 -8
  14. package/dist/{chunk-zn7egynp.js → chunk-0qakcnby.js} +47 -48
  15. package/dist/chunk-0s7za42b.js +14 -0
  16. package/dist/{chunk-xf0t82rg.js → chunk-0tmg91b1.js} +47 -48
  17. package/dist/{chunk-hrg9vq6p.js → chunk-0v20v2af.js} +3 -3
  18. package/dist/{chunk-d9280rcs.js → chunk-0v2awzd5.js} +1 -1
  19. package/dist/{chunk-8cx4mvde.js → chunk-0v590295.js} +148 -148
  20. package/dist/{chunk-g540y6p8.js → chunk-0va3y97h.js} +50 -51
  21. package/dist/{chunk-r26enj81.js → chunk-0vcpjqz5.js} +18 -18
  22. package/dist/{chunk-ay9nh032.js → chunk-0vvk6tv4.js} +15 -15
  23. package/dist/{chunk-76qapcaf.js → chunk-0w957a33.js} +50 -51
  24. package/dist/{chunk-rygn25nx.js → chunk-0wtwnyvg.js} +1 -1
  25. package/dist/chunk-0xereag4.js +173 -0
  26. package/dist/{chunk-00xx1rmz.js → chunk-0z5j99bj.js} +16 -16
  27. package/dist/{chunk-6bd8brc4.js → chunk-0zkw14gq.js} +3 -3
  28. package/dist/{chunk-jfhmk1c6.js → chunk-13zdd5e6.js} +38 -32
  29. package/dist/{chunk-xm9ccpyh.js → chunk-16gq8x0y.js} +49 -50
  30. package/dist/{chunk-cxqaz5vr.js → chunk-19gdjrk6.js} +3 -3
  31. package/dist/{chunk-strvbymz.js → chunk-1dym9vfh.js} +37 -31
  32. package/dist/chunk-1g68v32a.js +17 -0
  33. package/dist/{chunk-w0tvdc6h.js → chunk-1k83dgjb.js} +49 -50
  34. package/dist/{chunk-k9cthr5h.js → chunk-1kr4x0ec.js} +16 -16
  35. package/dist/chunk-1v0q0tce.js +104 -0
  36. package/dist/{chunk-f84rfz6r.js → chunk-1y0w6mjw.js} +48 -49
  37. package/dist/{chunk-gjfa8v40.js → chunk-1ymrygy1.js} +3 -3
  38. package/dist/{chunk-3ckfamg7.js → chunk-1zzfvmmk.js} +47 -48
  39. package/dist/{chunk-305t7jww.js → chunk-23j983cf.js} +48 -49
  40. package/dist/{chunk-2885j676.js → chunk-25xrykpm.js} +47 -48
  41. package/dist/{chunk-cjbw6hsq.js → chunk-26yzm962.js} +47 -48
  42. package/dist/{chunk-p6zhv3fj.js → chunk-279m39zm.js} +2 -2
  43. package/dist/chunk-27an25fd.js +118 -0
  44. package/dist/{chunk-c9js3490.js → chunk-2br81xts.js} +13 -13
  45. package/dist/chunk-2eftymgs.js +70 -0
  46. package/dist/{chunk-4th8hz38.js → chunk-2n53zm0g.js} +1 -1
  47. package/dist/{chunk-xt73r8zj.js → chunk-2ppy5p0x.js} +1 -1
  48. package/dist/chunk-2rhny2td.js +542 -0
  49. package/dist/{chunk-f3gcmncr.js → chunk-2s2z24wm.js} +47 -48
  50. package/dist/{chunk-mkq4vynt.js → chunk-2tt7xc2t.js} +2 -2
  51. package/dist/{chunk-ar1mw8p5.js → chunk-2wy13rhe.js} +14 -14
  52. package/dist/{chunk-1y0e25vy.js → chunk-2xx8f4qv.js} +4 -4
  53. package/dist/{chunk-sqmb5zqp.js → chunk-32mtrtm4.js} +48 -49
  54. package/dist/{chunk-wjhhetv4.js → chunk-32vdb088.js} +208 -202
  55. package/dist/{chunk-03qpgz7e.js → chunk-36yypykx.js} +2151 -2124
  56. package/dist/{chunk-8vs3nfx4.js → chunk-381w6mma.js} +1 -1
  57. package/dist/{chunk-5hd0n4kc.js → chunk-3cghr0yw.js} +47 -48
  58. package/dist/chunk-3dpdscmt.js +5332 -0
  59. package/dist/{chunk-x8s52epd.js → chunk-3dv5ctj4.js} +48 -49
  60. package/dist/{chunk-wcjz1zkw.js → chunk-3es5r0dx.js} +48 -49
  61. package/dist/chunk-3fapt8z5.js +3686 -0
  62. package/dist/{chunk-9eq853s5.js → chunk-3gpxmzz8.js} +3 -3
  63. package/dist/{chunk-jg2ngavx.js → chunk-3xh6v618.js} +47 -48
  64. package/dist/{chunk-9n28jzta.js → chunk-3xw21x85.js} +2 -2
  65. package/dist/{chunk-0wj5655r.js → chunk-3zyt28ea.js} +14 -14
  66. package/dist/{chunk-6k55dfby.js → chunk-40d286da.js} +5 -5
  67. package/dist/{chunk-d0ss5j5q.js → chunk-42k22r18.js} +1 -1
  68. package/dist/{chunk-5dvmrn7n.js → chunk-456m81he.js} +47 -48
  69. package/dist/{chunk-cm7cxa22.js → chunk-46bqcdpf.js} +5 -5
  70. package/dist/{chunk-w61znt0r.js → chunk-4b5peb6p.js} +7 -7
  71. package/dist/chunk-4cfcpzb1.js +25 -0
  72. package/dist/chunk-4ch5vxv6.js +55 -0
  73. package/dist/chunk-4drj3c7m.js +9 -0
  74. package/dist/{chunk-6ara055f.js → chunk-4h5zefyh.js} +48 -49
  75. package/dist/{chunk-65149q8s.js → chunk-4n6tnssg.js} +75 -50
  76. package/dist/{chunk-tj662ss5.js → chunk-4pr3ph3g.js} +14 -14
  77. package/dist/{chunk-kxht28q6.js → chunk-4sahp0qz.js} +93 -101
  78. package/dist/{chunk-sxceea76.js → chunk-4ymyjjq9.js} +6 -6
  79. package/dist/{chunk-9q2y2zh1.js → chunk-50ykc5qt.js} +2 -2
  80. package/dist/{chunk-m751vrjc.js → chunk-53dr4k73.js} +3 -3
  81. package/dist/chunk-58fwsj1y.js +718 -0
  82. package/dist/chunk-59dp4z1p.js +157 -0
  83. package/dist/chunk-5b4v2zkf.js +1095 -0
  84. package/dist/{chunk-d16pe6q0.js → chunk-5c62s229.js} +14 -14
  85. package/dist/{chunk-pvvn6rs5.js → chunk-5f4n0ywb.js} +48 -49
  86. package/dist/{chunk-dx7e3yvb.js → chunk-5gv4sshz.js} +47 -48
  87. package/dist/{chunk-xerkzn28.js → chunk-5m6942nd.js} +5 -5
  88. package/dist/{chunk-ykr5qx9v.js → chunk-5nccnh01.js} +123 -103
  89. package/dist/{chunk-5n479b51.js → chunk-5q5xcm1a.js} +47 -48
  90. package/dist/{chunk-9x6kxrmf.js → chunk-5wq9nsdc.js} +3 -3
  91. package/dist/{chunk-tfsfw21c.js → chunk-5x2nq6b9.js} +55 -58
  92. package/dist/{chunk-br2fc21h.js → chunk-5y6k4xrs.js} +2 -2
  93. package/dist/{chunk-yvt4w0wr.js → chunk-63q03fkn.js} +47 -48
  94. package/dist/{chunk-6ybnndcm.js → chunk-65w3ek1a.js} +17 -17
  95. package/dist/{chunk-c81b5e4c.js → chunk-67w1zken.js} +16 -16
  96. package/dist/{chunk-xq9xqjsc.js → chunk-6ccsyy1d.js} +1 -1
  97. package/dist/{chunk-fhfp2q8c.js → chunk-6ct7fh1v.js} +3 -3
  98. package/dist/{chunk-4nv4wh05.js → chunk-6d1y8a8t.js} +2 -2
  99. package/dist/{chunk-4t6p7q4x.js → chunk-6dcmw81a.js} +22 -22
  100. package/dist/{chunk-25x89wym.js → chunk-6eb1nz6v.js} +3 -3
  101. package/dist/{chunk-z2zk7g57.js → chunk-6frqd366.js} +50 -51
  102. package/dist/chunk-6m81e182.js +81 -0
  103. package/dist/{chunk-j6k3zjb5.js → chunk-6ns89pft.js} +25 -17
  104. package/dist/chunk-6vqkv5g7.js +256 -0
  105. package/dist/{chunk-qk1txvrw.js → chunk-6weddn5h.js} +49 -50
  106. package/dist/{chunk-3n6xcqc2.js → chunk-7a6r0k3m.js} +47 -48
  107. package/dist/{chunk-e4an0rhr.js → chunk-7b2e9e81.js} +15 -17
  108. package/dist/{chunk-d5qv71vm.js → chunk-7bc12031.js} +14 -12
  109. package/dist/{chunk-cjjq2j2b.js → chunk-7brvkna2.js} +53 -54
  110. package/dist/{chunk-yqy9m4km.js → chunk-7bs8swa2.js} +7 -7
  111. package/dist/{chunk-t53aq97s.js → chunk-7dgqzj7h.js} +50 -51
  112. package/dist/{chunk-maf8nerb.js → chunk-7dk4m49a.js} +48 -49
  113. package/dist/{chunk-y7py934d.js → chunk-7e9hc8ce.js} +52 -53
  114. package/dist/{chunk-90wp6wez.js → chunk-7ebcff63.js} +2 -2
  115. package/dist/{chunk-t5dxb7t7.js → chunk-7ecg65mr.js} +1 -1
  116. package/dist/{chunk-zttmdag3.js → chunk-7fht54sw.js} +1 -1
  117. package/dist/{chunk-j5kvrt9y.js → chunk-7j845cqe.js} +47 -48
  118. package/dist/chunk-7jk88vww.js +782 -0
  119. package/dist/{chunk-rwzm45v5.js → chunk-7kfb7tqj.js} +2 -2
  120. package/dist/{chunk-rbkhemh9.js → chunk-7p437ydk.js} +37 -31
  121. package/dist/{chunk-a9zh40sj.js → chunk-7q7h7msb.js} +3 -3
  122. package/dist/{chunk-rpp3r30z.js → chunk-7ye0arvq.js} +1 -1
  123. package/dist/{chunk-db7qenhh.js → chunk-7z17cw4h.js} +47 -48
  124. package/dist/{chunk-hxc8e6wd.js → chunk-7zrkp054.js} +2 -2
  125. package/dist/chunk-82jkr65n.js +16 -0
  126. package/dist/{chunk-xh0gfn3x.js → chunk-838naekw.js} +2 -2
  127. package/dist/{chunk-5wsvwc5e.js → chunk-879maaae.js} +47 -48
  128. package/dist/chunk-87zgmycv.js +65 -0
  129. package/dist/{chunk-qfbttb4x.js → chunk-8shx4hgv.js} +48 -49
  130. package/dist/{chunk-eh2p7txn.js → chunk-8vt2rmzz.js} +52 -53
  131. package/dist/{chunk-ndq2y6sc.js → chunk-8wmyjwn2.js} +2 -2
  132. package/dist/{chunk-27ezf4tc.js → chunk-8wq0z465.js} +1 -1
  133. package/dist/{chunk-p74998st.js → chunk-8ym1t31g.js} +53 -54
  134. package/dist/{chunk-vazn9zr8.js → chunk-8z33fy5n.js} +49 -50
  135. package/dist/chunk-91abjr1g.js +29 -0
  136. package/dist/{chunk-g649rtg8.js → chunk-9230kmx2.js} +7 -6
  137. package/dist/{chunk-s39ksgef.js → chunk-93qhgq6p.js} +1 -1
  138. package/dist/{chunk-m0pkp5ga.js → chunk-9629mtdz.js} +1 -1
  139. package/dist/{chunk-kttp77s8.js → chunk-9b04n6d1.js} +1 -1
  140. package/dist/{chunk-pw8kw48d.js → chunk-9fpha2xv.js} +6 -6
  141. package/dist/{chunk-469hyn07.js → chunk-9stsxjba.js} +4 -4
  142. package/dist/{chunk-0mvnb624.js → chunk-9t7nxd80.js} +1 -1
  143. package/dist/{chunk-b9xq4536.js → chunk-9vebtp7v.js} +52 -53
  144. package/dist/{chunk-3ktg0bfz.js → chunk-a7kdj8mj.js} +54 -55
  145. package/dist/{chunk-6jpdf1q6.js → chunk-acts7vdr.js} +10 -10
  146. package/dist/{chunk-2p4y0dj6.js → chunk-adgamch7.js} +57 -60
  147. package/dist/{chunk-hnq3w6tx.js → chunk-ahebrd5y.js} +5 -5
  148. package/dist/{chunk-fngdgt2f.js → chunk-am5cn48y.js} +4 -4
  149. package/dist/{chunk-5q056cze.js → chunk-apwjfffr.js} +1 -1
  150. package/dist/{chunk-wv700xtn.js → chunk-ayn250r2.js} +16 -16
  151. package/dist/chunk-b0bk6bxs.js +742 -0
  152. package/dist/{chunk-c358prbg.js → chunk-b0yyp8et.js} +4210 -253
  153. package/dist/{chunk-ce0sqtyk.js → chunk-bg3zs6s3.js} +1 -1
  154. package/dist/chunk-btnvjcc5.js +15 -0
  155. package/dist/{chunk-32gxxymn.js → chunk-by7nh2js.js} +18 -18
  156. package/dist/{chunk-3g4s34f4.js → chunk-c0yhh86m.js} +3 -3
  157. package/dist/{chunk-d7zw0dtv.js → chunk-c68754tz.js} +5 -5
  158. package/dist/chunk-cga5sq7g.js +41 -0
  159. package/dist/{chunk-jstky2ff.js → chunk-cjzk6t5c.js} +1 -1
  160. package/dist/chunk-ck06sqpy.js +220 -0
  161. package/dist/{chunk-mffjgywd.js → chunk-ck3q71vq.js} +2 -2
  162. package/dist/{chunk-gtzjdd18.js → chunk-cqbkd5ec.js} +3 -3
  163. package/dist/{chunk-3sbbxqm9.js → chunk-cqym51bf.js} +6 -6
  164. package/dist/{chunk-8rd1b3jk.js → chunk-cvqjhmqj.js} +56 -57
  165. package/dist/{chunk-5re3kwbc.js → chunk-cxy1ed0h.js} +3 -3
  166. package/dist/{chunk-a4c4m0nx.js → chunk-czjvd1xh.js} +91 -1806
  167. package/dist/{chunk-91fs1ha7.js → chunk-d0hj14fq.js} +65 -66
  168. package/dist/{chunk-66a2h4gk.js → chunk-d2kj6nek.js} +2 -2
  169. package/dist/{chunk-dtxakwbd.js → chunk-d37y1qja.js} +53 -54
  170. package/dist/{chunk-j6e8g1ms.js → chunk-d4x13kaa.js} +53 -54
  171. package/dist/{chunk-1npsp555.js → chunk-d6kw0esk.js} +1200 -161
  172. package/dist/{chunk-f7qkp4ha.js → chunk-d7jqw171.js} +47 -48
  173. package/dist/{chunk-f4htq4m4.js → chunk-d7xarb4w.js} +50 -51
  174. package/dist/{chunk-mq1c3epq.js → chunk-db3pr49y.js} +1 -1
  175. package/dist/{chunk-f3absj1f.js → chunk-dbfg6qhf.js} +2 -2
  176. package/dist/{chunk-evv7sxhw.js → chunk-dcs7myc3.js} +7 -7
  177. package/dist/{chunk-796a9b0z.js → chunk-ddyjgjpq.js} +47 -48
  178. package/dist/chunk-dgv19cce.js +183 -0
  179. package/dist/{chunk-t7v7can7.js → chunk-djrgjmyj.js} +1 -1
  180. package/dist/{chunk-sj43vmjm.js → chunk-djye5k50.js} +56 -59
  181. package/dist/{chunk-zkskmsjq.js → chunk-dknvhgkn.js} +3 -3
  182. package/dist/{chunk-s2t3qrte.js → chunk-drth8ce0.js} +1 -1
  183. package/dist/{chunk-p20wvv03.js → chunk-dt26hy6y.js} +1 -1
  184. package/dist/{chunk-xxr3cssg.js → chunk-dw5n6pr6.js} +47 -48
  185. package/dist/{chunk-ze6zvkg6.js → chunk-dxcr07z5.js} +4 -4
  186. package/dist/{chunk-szxy7bkh.js → chunk-dz32qcdd.js} +1 -1
  187. package/dist/chunk-e2cwk4hm.js +1185 -0
  188. package/dist/{chunk-52008rca.js → chunk-e50jgy7e.js} +14 -14
  189. package/dist/{chunk-xcmxx87m.js → chunk-e6trsfsm.js} +47 -48
  190. package/dist/{chunk-kfxyghyf.js → chunk-e6x5rpgx.js} +2 -2
  191. package/dist/{chunk-gkjcnxfe.js → chunk-e84ydbsq.js} +49 -50
  192. package/dist/{chunk-s9wgk88b.js → chunk-e96pr3z1.js} +48 -49
  193. package/dist/{chunk-7b9jrkee.js → chunk-eaawf61a.js} +47 -48
  194. package/dist/{chunk-hfntc659.js → chunk-eck5mjcw.js} +47 -48
  195. package/dist/{chunk-vtnfq4vf.js → chunk-egtb28zm.js} +233 -256
  196. package/dist/chunk-enhtm7h3.js +1731 -0
  197. package/dist/{chunk-47agtw2e.js → chunk-ep3h3f40.js} +47 -48
  198. package/dist/{chunk-8x8n4xxy.js → chunk-eqrxxgwx.js} +47 -48
  199. package/dist/chunk-es6y15pn.js +42 -0
  200. package/dist/{chunk-g9rvvqdy.js → chunk-etjwrq2s.js} +27 -27
  201. package/dist/{chunk-5der176s.js → chunk-ezbeckn3.js} +74 -51
  202. package/dist/{chunk-3fqxcp51.js → chunk-f109n77b.js} +14 -12
  203. package/dist/{chunk-kw1hpgh9.js → chunk-f29erv6g.js} +1 -1
  204. package/dist/{chunk-wvpvhk63.js → chunk-f3hyhcgd.js} +48 -49
  205. package/dist/{chunk-tcwv6fd9.js → chunk-fc9we717.js} +57 -60
  206. package/dist/{chunk-djydtvkr.js → chunk-fekynwj1.js} +505 -211
  207. package/dist/{chunk-tjr7qjpt.js → chunk-fks8ej56.js} +49 -50
  208. package/dist/{chunk-q56tkhgr.js → chunk-frwxzq55.js} +47 -48
  209. package/dist/{chunk-tkvg1xnr.js → chunk-ftdfvq1w.js} +4 -4
  210. package/dist/{chunk-w4pyvjtz.js → chunk-fx0xd0ex.js} +4 -4
  211. package/dist/{chunk-xpsb3jm8.js → chunk-fx52a9s2.js} +1 -1
  212. package/dist/{chunk-94xzz1fg.js → chunk-fxgt3m0a.js} +47 -48
  213. package/dist/{chunk-rh6936pj.js → chunk-fxm5s7sf.js} +15 -15
  214. package/dist/{chunk-j08qxq0d.js → chunk-fy2qr4hw.js} +48 -49
  215. package/dist/{chunk-5aw4k8fc.js → chunk-fz395yre.js} +1 -1
  216. package/dist/{chunk-hxy8h592.js → chunk-g0pmcggh.js} +2 -2
  217. package/dist/{chunk-20dbexrf.js → chunk-g45rr3sj.js} +1 -1
  218. package/dist/{chunk-q27bsq0y.js → chunk-g5kf8gsq.js} +4 -4
  219. package/dist/{chunk-7578r1rd.js → chunk-g9p7fypd.js} +47 -48
  220. package/dist/{chunk-ep17krqe.js → chunk-gbjhmjds.js} +9 -35
  221. package/dist/chunk-gd1ye7ef.js +168 -0
  222. package/dist/{chunk-y9pjq9h1.js → chunk-gfmss0fm.js} +15 -15
  223. package/dist/{chunk-ez10rk09.js → chunk-gg7ay6js.js} +47 -48
  224. package/dist/{chunk-777vk9pb.js → chunk-gk6v4y3r.js} +36 -32
  225. package/dist/{chunk-6hb097d3.js → chunk-gpgcar7e.js} +49 -50
  226. package/dist/{chunk-vtvxtdmq.js → chunk-gps4nmr6.js} +47 -48
  227. package/dist/{chunk-20n52jxv.js → chunk-gsa7bq8w.js} +6 -8
  228. package/dist/{chunk-7e7cb0t6.js → chunk-gsh55gb1.js} +2 -2
  229. package/dist/{chunk-094n6jd6.js → chunk-gv7bchnx.js} +47 -48
  230. package/dist/{chunk-fmadtbcm.js → chunk-gvg7arvr.js} +47 -48
  231. package/dist/chunk-gxnyeps9.js +3 -3
  232. package/dist/{chunk-xw38vjj4.js → chunk-gy5rfgd4.js} +6 -6
  233. package/dist/{chunk-ma9s7ycf.js → chunk-gzsnwa2e.js} +2 -2
  234. package/dist/{chunk-4qqswajh.js → chunk-h2vxyvpa.js} +12 -14
  235. package/dist/{chunk-f8ad6drq.js → chunk-h9dtsc52.js} +51 -53
  236. package/dist/{chunk-xha58rh2.js → chunk-hjr7tc1g.js} +1 -1
  237. package/dist/{chunk-9dhy1ekj.js → chunk-hkfat5cj.js} +50 -51
  238. package/dist/{chunk-dgrwcrwx.js → chunk-hkk80362.js} +1 -1
  239. package/dist/{chunk-p523ftrq.js → chunk-hkqvtcn2.js} +1 -1
  240. package/dist/{chunk-tszkvvnq.js → chunk-hs7sxtea.js} +2 -2
  241. package/dist/{chunk-8ymf4e6z.js → chunk-hxc5rbra.js} +3 -3
  242. package/dist/{chunk-h7xct2p1.js → chunk-hz9ty6jz.js} +50 -51
  243. package/dist/{chunk-x9rddxdt.js → chunk-hzk6nn1a.js} +47 -48
  244. package/dist/{chunk-ptdf4e9y.js → chunk-hzq56eee.js} +15 -15
  245. package/dist/{chunk-bt64sq5y.js → chunk-j04z48rw.js} +2 -2
  246. package/dist/chunk-j99epwtm.js +703 -0
  247. package/dist/{chunk-zs5b1dgr.js → chunk-jdq8jgyg.js} +1 -1
  248. package/dist/chunk-jdx93dh4.js +412 -0
  249. package/dist/chunk-jfqdw43z.js +14 -0
  250. package/dist/{chunk-ej1wwrcw.js → chunk-jvwa5w8w.js} +440 -654
  251. package/dist/{chunk-krgdryc0.js → chunk-jxzrapdr.js} +47 -48
  252. package/dist/{chunk-q76tj8p6.js → chunk-k7qqw0mj.js} +4 -4
  253. package/dist/{chunk-a8ejc632.js → chunk-k97s93n9.js} +1 -1
  254. package/dist/{chunk-dc0zwsyd.js → chunk-kcewk85p.js} +2 -2
  255. package/dist/{chunk-5xbvemsj.js → chunk-kdbbs50z.js} +3 -3
  256. package/dist/{chunk-2qsaxjnq.js → chunk-ke0bvd5n.js} +48 -49
  257. package/dist/{chunk-qc94x3p3.js → chunk-kggr6n4m.js} +60 -63
  258. package/dist/{chunk-8yxajf0d.js → chunk-km3ssf62.js} +19 -19
  259. package/dist/{chunk-kbeyhztj.js → chunk-kmh848ar.js} +19 -19
  260. package/dist/{chunk-ptn9f3na.js → chunk-kmy230xj.js} +50 -51
  261. package/dist/{chunk-acn3w259.js → chunk-kpyj9z78.js} +1 -1
  262. package/dist/{chunk-ywc2acy0.js → chunk-kwrep6kh.js} +2 -2
  263. package/dist/chunk-kxqjncxw.js +35 -0
  264. package/dist/{chunk-gfex5hb6.js → chunk-kyddexms.js} +13 -19
  265. package/dist/{chunk-04tphv07.js → chunk-kyefv6ng.js} +16 -16
  266. package/dist/{chunk-4faf9wd3.js → chunk-kz44a3qf.js} +3 -3
  267. package/dist/{chunk-dy8tttdp.js → chunk-m0vj33nj.js} +3 -3
  268. package/dist/chunk-m2rg2m7x.js +910 -0
  269. package/dist/{chunk-pps04vej.js → chunk-mbg1aw69.js} +10 -10
  270. package/dist/{chunk-5v45gvyx.js → chunk-mbkp0n55.js} +25 -25
  271. package/dist/{chunk-cajvbw85.js → chunk-mc41nrsy.js} +15 -15
  272. package/dist/{chunk-x94fchq0.js → chunk-me5gz5wa.js} +14 -14
  273. package/dist/{chunk-yz8h8hk3.js → chunk-mg8jtbwg.js} +50 -51
  274. package/dist/{chunk-ve9cwe9g.js → chunk-mgkaqb94.js} +47 -48
  275. package/dist/{chunk-ajzahsxn.js → chunk-mhygj95j.js} +48 -49
  276. package/dist/{chunk-0vkx14y7.js → chunk-mjqazs3m.js} +2 -2
  277. package/dist/{chunk-wgxsm74y.js → chunk-mnfb10tx.js} +3 -3
  278. package/dist/{chunk-t138q38h.js → chunk-mp72s5hc.js} +1 -1
  279. package/dist/{chunk-v2jb74tk.js → chunk-mp7bn9nx.js} +47 -48
  280. package/dist/{chunk-2afqgmq4.js → chunk-ms5agen7.js} +47 -48
  281. package/dist/{chunk-1xw41svw.js → chunk-msehbnjp.js} +59 -60
  282. package/dist/{chunk-yy13r4f1.js → chunk-my9dkgm8.js} +118 -4
  283. package/dist/{chunk-n6gs8dkk.js → chunk-n7pwac8p.js} +15 -15
  284. package/dist/{chunk-5d2nad7e.js → chunk-n8fxmey8.js} +1 -1
  285. package/dist/{chunk-w51ffctd.js → chunk-nd8hhtqz.js} +1 -1
  286. package/dist/{chunk-s0kbrpnn.js → chunk-nehajf9x.js} +3 -5
  287. package/dist/{chunk-fz0ch109.js → chunk-ng6s8w0e.js} +2 -2
  288. package/dist/{chunk-1n3pvcxm.js → chunk-ngryd7gy.js} +1 -1
  289. package/dist/{chunk-0sge3cez.js → chunk-nhxygcn1.js} +49 -50
  290. package/dist/chunk-nv7eb4pc.js +22 -0
  291. package/dist/{chunk-f8mc5g94.js → chunk-p6bws1a4.js} +16 -16
  292. package/dist/{chunk-y5x8wqe5.js → chunk-p8c4512d.js} +1 -1
  293. package/dist/{chunk-2xyp6pwt.js → chunk-pa4m8fka.js} +14 -14
  294. package/dist/{chunk-kzfj5mnk.js → chunk-pd9q9fd7.js} +47 -48
  295. package/dist/chunk-pf1dekdv.js +26 -0
  296. package/dist/{chunk-r2wcdqy9.js → chunk-pj5wk9qe.js} +47 -48
  297. package/dist/{chunk-zwv360y2.js → chunk-pkaehdm6.js} +859 -942
  298. package/dist/{chunk-ta1191a6.js → chunk-pp4kq0fa.js} +47 -48
  299. package/dist/{chunk-1je9wp7r.js → chunk-ptnf75rg.js} +47 -48
  300. package/dist/{chunk-27mj2w02.js → chunk-q09zbxk4.js} +15 -15
  301. package/dist/{chunk-5htp89xt.js → chunk-q1e46gk8.js} +55 -56
  302. package/dist/{chunk-rxep4zes.js → chunk-q1e7t6tz.js} +15 -128
  303. package/dist/{chunk-exv8n1za.js → chunk-q2jeezb4.js} +3 -3
  304. package/dist/{chunk-v69kxnen.js → chunk-q6vk37f0.js} +47 -48
  305. package/dist/chunk-q95b9wrd.js +40 -0
  306. package/dist/{chunk-ktmr2qew.js → chunk-qcvyd3y4.js} +3 -3
  307. package/dist/{chunk-08ap04th.js → chunk-qd97hcgd.js} +5 -5
  308. package/dist/{chunk-dpfjphps.js → chunk-qgx9mc6p.js} +5 -5
  309. package/dist/{chunk-15yxvxxm.js → chunk-qkp3ytva.js} +108 -111
  310. package/dist/{chunk-gfe3e4ce.js → chunk-qkymv6n8.js} +6 -6
  311. package/dist/{chunk-rc5r5t8e.js → chunk-qrz3b0e1.js} +4 -4
  312. package/dist/{chunk-3e1p9kv7.js → chunk-qzjk4vpq.js} +4 -4
  313. package/dist/{chunk-dnkd9ckw.js → chunk-r35b43p4.js} +17 -17
  314. package/dist/{chunk-6gg2cvm2.js → chunk-r4j2h4yp.js} +1 -1
  315. package/dist/{chunk-0s5m8nkk.js → chunk-r651whr2.js} +15 -15
  316. package/dist/{chunk-fhwpgyvw.js → chunk-r70h7x48.js} +50 -51
  317. package/dist/{chunk-xs7e9ynx.js → chunk-r8yzzrsp.js} +55 -56
  318. package/dist/{chunk-wkqf9whj.js → chunk-rdgrfsjm.js} +47 -48
  319. package/dist/{chunk-dps4gfm1.js → chunk-rfmf8jw2.js} +1 -1
  320. package/dist/{chunk-b623tcjz.js → chunk-rhdgt3c8.js} +4 -4
  321. package/dist/{chunk-dq4ckzab.js → chunk-rqwcz7mf.js} +16 -16
  322. package/dist/{chunk-73pxnrgv.js → chunk-rvb54w68.js} +2 -2
  323. package/dist/{chunk-jy1nhwr3.js → chunk-rwa1xxqk.js} +4 -4
  324. package/dist/{chunk-fgcxrx4c.js → chunk-s3k2jajp.js} +47 -48
  325. package/dist/{chunk-p1z86trg.js → chunk-s5cvaf0y.js} +3 -3
  326. package/dist/{chunk-wve68bf5.js → chunk-s8tq4y70.js} +2 -2
  327. package/dist/{chunk-2t5ncw9x.js → chunk-sa2gzt2m.js} +2 -2
  328. package/dist/chunk-scyjb4rw.js +42 -0
  329. package/dist/{chunk-nsndts3z.js → chunk-sfem4v24.js} +14 -14
  330. package/dist/{chunk-2z01s54n.js → chunk-sjc21xag.js} +4 -4
  331. package/dist/{chunk-400zp41r.js → chunk-snkt46ca.js} +1 -1
  332. package/dist/{chunk-xfnekqkc.js → chunk-sqk9ayam.js} +5 -7
  333. package/dist/chunk-swjfjpja.js +3213 -0
  334. package/dist/{chunk-c7qxrffg.js → chunk-swyr0ze5.js} +5 -5
  335. package/dist/{chunk-y6n3fdt2.js → chunk-t0rxmbvz.js} +17 -17
  336. package/dist/{chunk-eskw6xkv.js → chunk-t260g32y.js} +4 -4
  337. package/dist/{chunk-fg46hc6d.js → chunk-t6kym3nr.js} +38 -32
  338. package/dist/{chunk-bwv73k9n.js → chunk-t79jmj3c.js} +5 -5
  339. package/dist/chunk-t7vqt78m.js +32 -0
  340. package/dist/chunk-t8sg0wf3.js +23 -0
  341. package/dist/{chunk-kqe7861c.js → chunk-tc92qnj1.js} +77 -50
  342. package/dist/{chunk-dd60e5wj.js → chunk-temv6q01.js} +4 -4
  343. package/dist/chunk-th1cykx3.js +494 -0
  344. package/dist/chunk-tp6bgx9r.js +90 -0
  345. package/dist/{chunk-d1dkt8pf.js → chunk-tq61s8re.js} +48 -49
  346. package/dist/chunk-tsycknnm.js +887 -0
  347. package/dist/{chunk-45kw3kmb.js → chunk-tv3n7nyr.js} +47 -48
  348. package/dist/{chunk-swd4vhn1.js → chunk-v3a3d8qr.js} +48 -49
  349. package/dist/{chunk-4z3yrp6y.js → chunk-v6q8mas6.js} +48 -49
  350. package/dist/{chunk-1zvd49vg.js → chunk-v9xtwnkn.js} +4 -4
  351. package/dist/{chunk-emgk6xvg.js → chunk-vecm4b7g.js} +1 -1
  352. package/dist/{chunk-h6gm2k0d.js → chunk-vhjrpmd7.js} +48 -49
  353. package/dist/{chunk-rbwfpwps.js → chunk-vmp1tr7b.js} +2 -2
  354. package/dist/{chunk-amdb0grz.js → chunk-vn9dpw7e.js} +50 -51
  355. package/dist/{chunk-vxstb12h.js → chunk-vnhhnca0.js} +1 -1
  356. package/dist/{chunk-rj8p3f8w.js → chunk-vqf0cwfx.js} +48 -49
  357. package/dist/chunk-vqm2wda9.js +46 -0
  358. package/dist/{chunk-3h1nhq6f.js → chunk-vrbtdakb.js} +1 -1
  359. package/dist/{chunk-422fx6t4.js → chunk-vrdp6hk3.js} +50 -51
  360. package/dist/{chunk-ght1jhcp.js → chunk-vzn6172q.js} +56 -58
  361. package/dist/chunk-w0b04y7r.js +609 -0
  362. package/dist/{chunk-w49cma0z.js → chunk-w20437bg.js} +47 -48
  363. package/dist/{chunk-139bbdnz.js → chunk-w54rzd0a.js} +50 -51
  364. package/dist/{chunk-dq6gsxma.js → chunk-w7eccwbe.js} +15 -15
  365. package/dist/{chunk-mas3fz1d.js → chunk-wa3arctj.js} +12 -12
  366. package/dist/{chunk-w8am6ta4.js → chunk-wa7rnp49.js} +1 -1
  367. package/dist/{chunk-vagfnqc6.js → chunk-waazrpce.js} +2 -2
  368. package/dist/{chunk-0h3t3pg2.js → chunk-wbh9ydpk.js} +19 -19
  369. package/dist/{chunk-vdtdq74g.js → chunk-wc7s61fq.js} +15 -15
  370. package/dist/{chunk-2e6t5g22.js → chunk-wgmkhbe4.js} +2 -2
  371. package/dist/{chunk-j5xh6s8y.js → chunk-wh23fnfe.js} +11 -11
  372. package/dist/{chunk-wys7e7qz.js → chunk-whvpa72n.js} +4 -4
  373. package/dist/chunk-wkyyghn6.js +184 -0
  374. package/dist/{chunk-ebnp9s5b.js → chunk-wngtt6cw.js} +2 -2
  375. package/dist/chunk-wp35dfwp.js +15 -0
  376. package/dist/{chunk-6gr3c3w9.js → chunk-wpqynh28.js} +2 -2
  377. package/dist/{chunk-fykf8xpq.js → chunk-wtje1bzc.js} +48 -49
  378. package/dist/{chunk-fpgevc9q.js → chunk-wwjb9kpr.js} +48 -49
  379. package/dist/{chunk-78bk581m.js → chunk-wzarjbqs.js} +47 -48
  380. package/dist/{chunk-0r9ed6vz.js → chunk-wzyspdkz.js} +54 -55
  381. package/dist/chunk-x3atm9a1.js +864 -0
  382. package/dist/{chunk-rkmwx1yz.js → chunk-x52qkhng.js} +1 -1
  383. package/dist/{chunk-xcg8gj4z.js → chunk-xpecr6a1.js} +5 -7
  384. package/dist/{chunk-re56c4sb.js → chunk-xt3x0wrj.js} +1 -1
  385. package/dist/{chunk-8avpe537.js → chunk-xvwv91w4.js} +47 -48
  386. package/dist/{chunk-8c32awe2.js → chunk-xwh3q911.js} +2 -2
  387. package/dist/{chunk-26p2hgat.js → chunk-xydbqr0b.js} +47 -48
  388. package/dist/{chunk-npmd1tms.js → chunk-xzmas4y8.js} +47 -48
  389. package/dist/{chunk-vr9rckk8.js → chunk-y4dgbkb3.js} +290 -261
  390. package/dist/{chunk-2f1f034j.js → chunk-y5phkfvf.js} +3 -3
  391. package/dist/{chunk-gqvdqmgm.js → chunk-y689dg14.js} +14 -14
  392. package/dist/{chunk-0t1bd4sb.js → chunk-yevw8ttf.js} +15 -15
  393. package/dist/{chunk-9wev49x3.js → chunk-yhqcnq80.js} +50 -51
  394. package/dist/{chunk-9mh13mnf.js → chunk-yk4t7kxm.js} +1 -1
  395. package/dist/{chunk-7r2k7qes.js → chunk-ykbz8f85.js} +3 -3
  396. package/dist/{chunk-h3p151fx.js → chunk-ykcqa4mj.js} +1 -1
  397. package/dist/{chunk-d90bhmt1.js → chunk-ysj2gfxe.js} +48 -47
  398. package/dist/{chunk-0t80kx3c.js → chunk-z51fyxdw.js} +55 -56
  399. package/dist/{chunk-vmc31gbm.js → chunk-z86pzxdm.js} +48 -49
  400. package/dist/chunk-z88f5181.js +258 -0
  401. package/dist/{chunk-8epxe23k.js → chunk-zd6w7gc2.js} +5 -5
  402. package/dist/{chunk-ebrc3yf3.js → chunk-zv0txvbs.js} +4 -4
  403. package/dist/{chunk-196500e9.js → chunk-zvkkjep6.js} +12 -12
  404. package/dist/{chunk-phf40t3n.js → chunk-zx2xx5ek.js} +20 -20
  405. package/dist/{chunk-trt2sfjg.js → chunk-zzz4ny7p.js} +1 -1
  406. package/dist/cli.js +24 -24
  407. package/package.json +28 -28
  408. package/dist/chunk-0mf8c3kx.js +0 -8
  409. package/dist/chunk-5vvqe088.js +0 -946
  410. package/dist/chunk-6c5zyga7.js +0 -12
  411. package/dist/chunk-f9tjvhq5.js +0 -186
  412. package/dist/chunk-k97ze3a8.js +0 -524
  413. package/dist/chunk-pps45448.js +0 -159
  414. package/dist/chunk-qqvaem6g.js +0 -68
  415. package/dist/chunk-shvjqnv4.js +0 -53
  416. package/dist/chunk-z0b7xfwn.js +0 -47
  417. package/dist/download-ripgrep.js +0 -24837
  418. package/dist/{chunk-y3jmpqat.js → chunk-5vdpbk46.js} +3 -3
  419. package/dist/{chunk-vest0y6x.js → chunk-6h6kzvyd.js} +3 -3
  420. package/dist/{chunk-f5ma3nh5.js → chunk-7a31vc3r.js} +0 -0
  421. package/dist/{chunk-tbas522c.js → chunk-ftbf37y7.js} +1 -1
  422. package/dist/{chunk-pfgwfg55.js → chunk-xexnht94.js} +3 -3
  423. package/dist/{chunk-0fnpkgd6.js → chunk-ybebarb1.js} +10 -10
@@ -1,29 +1,79 @@
1
1
  // @bun
2
2
  import {
3
- InternalServerException,
4
- ModelStreamErrorException,
5
- ThrottlingException,
6
- ValidationException,
3
+ defaultProvider,
4
+ init_dist_es as init_dist_es3
5
+ } from "./chunk-0xereag4.js";
6
+ import"./chunk-9xrxpxr6.js";
7
+ import {
8
+ require_dist_cjs as require_dist_cjs8,
9
+ require_dist_cjs1 as require_dist_cjs9,
10
+ require_dist_cjs10 as require_dist_cjs27,
11
+ require_dist_cjs11 as require_dist_cjs28,
12
+ require_dist_cjs12 as require_dist_cjs29,
13
+ require_dist_cjs2 as require_dist_cjs10,
14
+ require_dist_cjs3 as require_dist_cjs16,
15
+ require_dist_cjs4 as require_dist_cjs17,
16
+ require_dist_cjs5 as require_dist_cjs18,
17
+ require_dist_cjs6 as require_dist_cjs20,
18
+ require_dist_cjs7 as require_dist_cjs23,
19
+ require_dist_cjs8 as require_dist_cjs25,
20
+ require_dist_cjs9 as require_dist_cjs26,
21
+ require_protocols
22
+ } from "./chunk-czjvd1xh.js";
23
+ import {
24
+ require_dist_cjs as require_dist_cjs15,
25
+ require_dist_cjs1 as require_dist_cjs19
26
+ } from "./chunk-gbjhmjds.js";
27
+ import {
28
+ require_dist_cjs as require_dist_cjs14,
29
+ require_httpAuthSchemes
30
+ } from "./chunk-e2cwk4hm.js";
31
+ import {
32
+ require_dist_cjs as require_dist_cjs22
33
+ } from "./chunk-pn1q3cxk.js";
34
+ import {
35
+ require_dist_cjs as require_dist_cjs21
36
+ } from "./chunk-2md5w5h8.js";
37
+ import {
38
+ require_dist_cjs as require_dist_cjs24
39
+ } from "./chunk-p8c4512d.js";
40
+ import {
41
+ require_dist_cjs as require_dist_cjs6,
42
+ require_dist_cjs1 as require_dist_cjs11,
43
+ require_dist_cjs2 as require_dist_cjs12,
44
+ require_schema
45
+ } from "./chunk-36yypykx.js";
46
+ import {
47
+ require_dist_cjs as require_dist_cjs5
48
+ } from "./chunk-jcfk76z5.js";
49
+ import {
50
+ require_dist_cjs as require_dist_cjs13
51
+ } from "./chunk-6f8awfs6.js";
52
+ import"./chunk-cddv8twj.js";
53
+ import {
54
+ require_client
55
+ } from "./chunk-psmfpddh.js";
56
+ import {
57
+ require_dist_cjs as require_dist_cjs7
58
+ } from "./chunk-ve1228q7.js";
59
+ import {
60
+ Crc32,
7
61
  fromArrayBuffer,
8
62
  fromString,
9
63
  fromUtf8,
10
64
  init_dist_es,
11
65
  init_dist_es1 as init_dist_es2,
12
- init_dist_es2 as init_dist_es3,
66
+ init_module,
13
67
  toUtf8
14
- } from "./chunk-ej1wwrcw.js";
15
- import"./chunk-r26enj81.js";
16
- import"./chunk-c9js3490.js";
17
- import"./chunk-9xrxpxr6.js";
18
- import"./chunk-a4c4m0nx.js";
19
- import"./chunk-ep17krqe.js";
20
- import"./chunk-y5x8wqe5.js";
21
- import"./chunk-j6k3zjb5.js";
22
- import"./chunk-q27bsq0y.js";
68
+ } from "./chunk-th1cykx3.js";
69
+ import {
70
+ require_dist_cjs as require_dist_cjs4
71
+ } from "./chunk-enhtm7h3.js";
72
+ import"./chunk-kxqjncxw.js";
23
73
  import {
24
- require_dist_cjs3 as require_dist_cjs
25
- } from "./chunk-03qpgz7e.js";
26
- import"./chunk-psmfpddh.js";
74
+ require_dist_cjs1 as require_dist_cjs2,
75
+ require_dist_cjs2 as require_dist_cjs3
76
+ } from "./chunk-b0bk6bxs.js";
27
77
  import {
28
78
  APIError,
29
79
  AnthropicError,
@@ -39,14 +89,10 @@ import {
39
89
  init_sdk,
40
90
  init_streaming
41
91
  } from "./chunk-z0csm2zq.js";
42
- import"./chunk-gfex5hb6.js";
43
- import"./chunk-jcfk76z5.js";
44
- import"./chunk-pn1q3cxk.js";
45
- import"./chunk-6f8awfs6.js";
46
- import"./chunk-2md5w5h8.js";
47
- import"./chunk-ve1228q7.js";
48
- import"./chunk-cddv8twj.js";
49
- import"./chunk-2nayx6q1.js";
92
+ import"./chunk-btnvjcc5.js";
93
+ import {
94
+ require_dist_cjs2 as require_dist_cjs
95
+ } from "./chunk-2nayx6q1.js";
50
96
  import {
51
97
  __commonJS,
52
98
  __esm,
@@ -711,7 +757,7 @@ var require_whatwgEncodingApi = __commonJS((exports) => {
711
757
  });
712
758
 
713
759
  // node_modules/.bun/@aws-sdk+util-utf8-browser@3.259.0/node_modules/@aws-sdk/util-utf8-browser/dist-cjs/index.js
714
- var require_dist_cjs2 = __commonJS((exports) => {
760
+ var require_dist_cjs30 = __commonJS((exports) => {
715
761
  Object.defineProperty(exports, "__esModule", { value: true });
716
762
  exports.toUtf8 = exports.fromUtf8 = undefined;
717
763
  var pureJs_1 = require_pureJs();
@@ -726,7 +772,7 @@ var require_dist_cjs2 = __commonJS((exports) => {
726
772
  var require_convertToBuffer = __commonJS((exports) => {
727
773
  Object.defineProperty(exports, "__esModule", { value: true });
728
774
  exports.convertToBuffer = undefined;
729
- var util_utf8_browser_1 = require_dist_cjs2();
775
+ var util_utf8_browser_1 = require_dist_cjs30();
730
776
  var fromUtf82 = typeof Buffer !== "undefined" && Buffer.from ? function(input) {
731
777
  return Buffer.from(input, "utf8");
732
778
  } : util_utf8_browser_1.fromUtf8;
@@ -2208,7 +2254,7 @@ var init_dist_es13 = __esm(() => {
2208
2254
 
2209
2255
  // node_modules/.bun/@anthropic-ai+bedrock-sdk@0.26.4+3c5d820c62823f0b/node_modules/@anthropic-ai/bedrock-sdk/core/auth.mjs
2210
2256
  import assert from "assert";
2211
- var import_sha256_js, import_fetch_http_handler, DEFAULT_PROVIDER_CHAIN_RESOLVER = () => import("./chunk-d90bhmt1.js").then(({ fromNodeProviderChain }) => fromNodeProviderChain({
2257
+ var import_sha256_js, import_fetch_http_handler, DEFAULT_PROVIDER_CHAIN_RESOLVER = () => import("./chunk-ysj2gfxe.js").then(({ fromNodeProviderChain }) => fromNodeProviderChain({
2212
2258
  clientConfig: {
2213
2259
  requestHandler: new import_fetch_http_handler.FetchHttpHandler({
2214
2260
  requestInit: (httpRequest2) => {
@@ -2257,14 +2303,14 @@ var init_auth5 = __esm(() => {
2257
2303
  init_dist_es5();
2258
2304
  init_dist_es13();
2259
2305
  import_sha256_js = __toESM(require_build2(), 1);
2260
- import_fetch_http_handler = __toESM(require_dist_cjs(), 1);
2306
+ import_fetch_http_handler = __toESM(require_dist_cjs6(), 1);
2261
2307
  });
2262
2308
 
2263
2309
  // node_modules/.bun/@aws-crypto+util@3.0.0/node_modules/@aws-crypto/util/build/convertToBuffer.js
2264
2310
  var require_convertToBuffer2 = __commonJS((exports) => {
2265
2311
  Object.defineProperty(exports, "__esModule", { value: true });
2266
2312
  exports.convertToBuffer = undefined;
2267
- var util_utf8_browser_1 = require_dist_cjs2();
2313
+ var util_utf8_browser_1 = require_dist_cjs30();
2268
2314
  var fromUtf84 = typeof Buffer !== "undefined" && Buffer.from ? function(input) {
2269
2315
  return Buffer.from(input, "utf8");
2270
2316
  } : util_utf8_browser_1.fromUtf8;
@@ -2389,14 +2435,14 @@ var require_build4 = __commonJS((exports) => {
2389
2435
  var tslib_1 = require_tslib();
2390
2436
  var util_1 = require_build3();
2391
2437
  function crc32(data) {
2392
- return new Crc32().update(data).digest();
2438
+ return new Crc322().update(data).digest();
2393
2439
  }
2394
2440
  exports.crc32 = crc32;
2395
- var Crc32 = function() {
2396
- function Crc322() {
2441
+ var Crc322 = function() {
2442
+ function Crc323() {
2397
2443
  this.checksum = 4294967295;
2398
2444
  }
2399
- Crc322.prototype.update = function(data) {
2445
+ Crc323.prototype.update = function(data) {
2400
2446
  var e_1, _a;
2401
2447
  try {
2402
2448
  for (var data_1 = tslib_1.__values(data), data_1_1 = data_1.next();!data_1_1.done; data_1_1 = data_1.next()) {
@@ -2416,12 +2462,12 @@ var require_build4 = __commonJS((exports) => {
2416
2462
  }
2417
2463
  return this;
2418
2464
  };
2419
- Crc322.prototype.digest = function() {
2465
+ Crc323.prototype.digest = function() {
2420
2466
  return (this.checksum ^ 4294967295) >>> 0;
2421
2467
  };
2422
- return Crc322;
2468
+ return Crc323;
2423
2469
  }();
2424
- exports.Crc32 = Crc32;
2470
+ exports.Crc32 = Crc322;
2425
2471
  var a_lookUpTable = [
2426
2472
  0,
2427
2473
  1996959894,
@@ -3818,225 +3864,4136 @@ var init_dist_es24 = __esm(() => {
3818
3864
  init_split_every();
3819
3865
  });
3820
3866
 
3821
- // node_modules/.bun/@anthropic-ai+bedrock-sdk@0.26.4+3c5d820c62823f0b/node_modules/@anthropic-ai/bedrock-sdk/AWS_restJson1.mjs
3822
- var de_InternalServerExceptionRes = async (parsedOutput, context) => {
3823
- const contents = map({});
3824
- const data = parsedOutput.body;
3825
- const doc = take(data, {
3826
- message: expectString
3827
- });
3828
- Object.assign(contents, doc);
3829
- const exception = new InternalServerException({
3830
- $metadata: deserializeMetadata(parsedOutput),
3831
- ...contents
3832
- });
3833
- return decorateServiceException(exception, parsedOutput.body);
3834
- }, de_ModelStreamErrorExceptionRes = async (parsedOutput, context) => {
3835
- const contents = map({});
3836
- const data = parsedOutput.body;
3837
- const doc = take(data, {
3838
- message: expectString,
3839
- originalMessage: expectString,
3840
- originalStatusCode: expectInt32
3841
- });
3842
- Object.assign(contents, doc);
3843
- const exception = new ModelStreamErrorException({
3844
- $metadata: deserializeMetadata(parsedOutput),
3845
- ...contents
3846
- });
3847
- return decorateServiceException(exception, parsedOutput.body);
3848
- }, de_ThrottlingExceptionRes = async (parsedOutput, context) => {
3849
- const contents = map({});
3850
- const data = parsedOutput.body;
3851
- const doc = take(data, {
3852
- message: expectString
3853
- });
3854
- Object.assign(contents, doc);
3855
- const exception = new ThrottlingException({
3856
- $metadata: deserializeMetadata(parsedOutput),
3857
- ...contents
3858
- });
3859
- return decorateServiceException(exception, parsedOutput.body);
3860
- }, de_ValidationExceptionRes = async (parsedOutput, context) => {
3861
- const contents = map({});
3862
- const data = parsedOutput.body;
3863
- const doc = take(data, {
3864
- message: expectString
3865
- });
3866
- Object.assign(contents, doc);
3867
- const exception = new ValidationException({
3868
- $metadata: deserializeMetadata(parsedOutput),
3869
- ...contents
3867
+ // node_modules/.bun/@aws-sdk+middleware-eventstream@3.972.9/node_modules/@aws-sdk/middleware-eventstream/dist-es/eventStreamConfiguration.js
3868
+ function resolveEventStreamConfig(input) {
3869
+ const eventSigner = input.signer;
3870
+ const messageSigner = input.signer;
3871
+ const newInput = Object.assign(input, {
3872
+ eventSigner,
3873
+ messageSigner
3870
3874
  });
3871
- return decorateServiceException(exception, parsedOutput.body);
3872
- }, de_ResponseStream = (output, context) => {
3873
- return context.eventStreamMarshaller.deserialize(output, async (event) => {
3874
- if (event["chunk"] != null) {
3875
- return {
3876
- chunk: await de_PayloadPart_event(event["chunk"], context)
3877
- };
3878
- }
3879
- if (event["internalServerException"] != null) {
3880
- return {
3881
- internalServerException: await de_InternalServerException_event(event["internalServerException"], context)
3882
- };
3883
- }
3884
- if (event["modelStreamErrorException"] != null) {
3885
- return {
3886
- modelStreamErrorException: await de_ModelStreamErrorException_event(event["modelStreamErrorException"], context)
3887
- };
3888
- }
3889
- if (event["validationException"] != null) {
3890
- return {
3891
- validationException: await de_ValidationException_event(event["validationException"], context)
3892
- };
3893
- }
3894
- if (event["throttlingException"] != null) {
3895
- return {
3896
- throttlingException: await de_ThrottlingException_event(event["throttlingException"], context)
3897
- };
3898
- }
3899
- return { $unknown: output };
3875
+ const eventStreamPayloadHandler = newInput.eventStreamPayloadHandlerProvider(newInput);
3876
+ return Object.assign(newInput, {
3877
+ eventStreamPayloadHandler
3900
3878
  });
3901
- }, de_InternalServerException_event = async (output, context) => {
3902
- const parsedOutput = {
3903
- ...output,
3904
- body: await parseBody(output.body, context)
3905
- };
3906
- return de_InternalServerExceptionRes(parsedOutput, context);
3907
- }, de_ModelStreamErrorException_event = async (output, context) => {
3908
- const parsedOutput = {
3909
- ...output,
3910
- body: await parseBody(output.body, context)
3911
- };
3912
- return de_ModelStreamErrorExceptionRes(parsedOutput, context);
3913
- }, de_PayloadPart_event = async (output, context) => {
3914
- const contents = {};
3915
- const data = await parseBody(output.body, context);
3916
- Object.assign(contents, de_PayloadPart(data, context));
3917
- return contents;
3918
- }, de_ThrottlingException_event = async (output, context) => {
3919
- const parsedOutput = {
3920
- ...output,
3921
- body: await parseBody(output.body, context)
3879
+ }
3880
+ var init_eventStreamConfiguration = () => {};
3881
+
3882
+ // node_modules/.bun/@aws-sdk+middleware-eventstream@3.972.9/node_modules/@aws-sdk/middleware-eventstream/dist-es/eventStreamHandlingMiddleware.js
3883
+ var import_protocol_http4, eventStreamHandlingMiddleware = (options) => (next, context) => async (args) => {
3884
+ const { request } = args;
3885
+ if (!import_protocol_http4.HttpRequest.isInstance(request))
3886
+ return next(args);
3887
+ return options.eventStreamPayloadHandler.handle(next, args, context);
3888
+ }, eventStreamHandlingMiddlewareOptions;
3889
+ var init_eventStreamHandlingMiddleware = __esm(() => {
3890
+ import_protocol_http4 = __toESM(require_dist_cjs5(), 1);
3891
+ eventStreamHandlingMiddlewareOptions = {
3892
+ tags: ["EVENT_STREAM", "SIGNATURE", "HANDLE"],
3893
+ name: "eventStreamHandlingMiddleware",
3894
+ relation: "after",
3895
+ toMiddleware: "awsAuthMiddleware",
3896
+ override: true
3922
3897
  };
3923
- return de_ThrottlingExceptionRes(parsedOutput, context);
3924
- }, de_ValidationException_event = async (output, context) => {
3925
- const parsedOutput = {
3926
- ...output,
3927
- body: await parseBody(output.body, context)
3898
+ });
3899
+
3900
+ // node_modules/.bun/@aws-sdk+middleware-eventstream@3.972.9/node_modules/@aws-sdk/middleware-eventstream/dist-es/eventStreamHeaderMiddleware.js
3901
+ var import_protocol_http5, eventStreamHeaderMiddleware = (next) => async (args) => {
3902
+ const { request } = args;
3903
+ if (!import_protocol_http5.HttpRequest.isInstance(request))
3904
+ return next(args);
3905
+ request.headers = {
3906
+ ...request.headers,
3907
+ "content-type": "application/vnd.amazon.eventstream",
3908
+ "x-amz-content-sha256": "STREAMING-AWS4-HMAC-SHA256-EVENTS"
3928
3909
  };
3929
- return de_ValidationExceptionRes(parsedOutput, context);
3930
- }, de_PayloadPart = (output, context) => {
3931
- return take(output, {
3932
- bytes: context.base64Decoder
3910
+ return next({
3911
+ ...args,
3912
+ request
3933
3913
  });
3934
- }, deserializeMetadata = (output) => ({
3935
- httpStatusCode: output.statusCode,
3936
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"] ?? "",
3937
- extendedRequestId: output.headers["x-amz-id-2"] ?? "",
3938
- cfId: output.headers["x-amz-cf-id"] ?? ""
3939
- }), collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body)), parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
3940
- if (encoded.length) {
3941
- return JSON.parse(encoded);
3914
+ }, eventStreamHeaderMiddlewareOptions;
3915
+ var init_eventStreamHeaderMiddleware = __esm(() => {
3916
+ import_protocol_http5 = __toESM(require_dist_cjs5(), 1);
3917
+ eventStreamHeaderMiddlewareOptions = {
3918
+ step: "build",
3919
+ tags: ["EVENT_STREAM", "HEADER", "CONTENT_TYPE", "CONTENT_SHA256"],
3920
+ name: "eventStreamHeaderMiddleware",
3921
+ override: true
3922
+ };
3923
+ });
3924
+
3925
+ // node_modules/.bun/@aws-sdk+middleware-eventstream@3.972.9/node_modules/@aws-sdk/middleware-eventstream/dist-es/getEventStreamPlugin.js
3926
+ var getEventStreamPlugin = (options) => ({
3927
+ applyToStack: (clientStack) => {
3928
+ clientStack.addRelativeTo(eventStreamHandlingMiddleware(options), eventStreamHandlingMiddlewareOptions);
3929
+ clientStack.add(eventStreamHeaderMiddleware, eventStreamHeaderMiddlewareOptions);
3942
3930
  }
3943
- return {};
3944
3931
  });
3945
- var init_AWS_restJson1 = __esm(() => {
3946
- init_dist_es24();
3947
- init_dist_es3();
3932
+ var init_getEventStreamPlugin = __esm(() => {
3933
+ init_eventStreamHandlingMiddleware();
3934
+ init_eventStreamHeaderMiddleware();
3948
3935
  });
3949
3936
 
3950
- // node_modules/.bun/@anthropic-ai+bedrock-sdk@0.26.4+3c5d820c62823f0b/node_modules/@anthropic-ai/bedrock-sdk/internal/shims.mjs
3951
- function ReadableStreamToAsyncIterable(stream3) {
3952
- if (stream3[Symbol.asyncIterator])
3953
- return stream3;
3954
- const reader = stream3.getReader();
3955
- return {
3956
- async next() {
3957
- try {
3958
- const result = await reader.read();
3959
- if (result?.done)
3960
- reader.releaseLock();
3961
- return result;
3962
- } catch (e) {
3963
- reader.releaseLock();
3964
- throw e;
3965
- }
3966
- },
3967
- async return() {
3968
- const cancelPromise = reader.cancel();
3969
- reader.releaseLock();
3970
- await cancelPromise;
3971
- return { done: true, value: undefined };
3972
- },
3973
- [Symbol.asyncIterator]() {
3974
- return this;
3975
- }
3976
- };
3977
- }
3978
- var init_shims = () => {};
3979
-
3980
- // node_modules/.bun/@anthropic-ai+bedrock-sdk@0.26.4+3c5d820c62823f0b/node_modules/@anthropic-ai/bedrock-sdk/core/error.mjs
3981
- var init_error3 = __esm(() => {
3982
- init_error();
3937
+ // node_modules/.bun/@aws-sdk+middleware-eventstream@3.972.9/node_modules/@aws-sdk/middleware-eventstream/dist-es/index.js
3938
+ var init_dist_es25 = __esm(() => {
3939
+ init_eventStreamConfiguration();
3940
+ init_eventStreamHandlingMiddleware();
3941
+ init_eventStreamHeaderMiddleware();
3942
+ init_getEventStreamPlugin();
3983
3943
  });
3984
3944
 
3985
- // node_modules/.bun/@anthropic-ai+bedrock-sdk@0.26.4+3c5d820c62823f0b/node_modules/@anthropic-ai/bedrock-sdk/internal/utils/values.mjs
3986
- function isObj(obj) {
3987
- return obj != null && typeof obj === "object" && !Array.isArray(obj);
3988
- }
3989
- var isArray = (val) => (isArray = Array.isArray, isArray(val)), isReadonlyArray, safeJSON = (text) => {
3990
- try {
3991
- return JSON.parse(text);
3992
- } catch (err) {
3993
- return;
3945
+ // node_modules/.bun/@smithy+eventstream-codec@4.2.13/node_modules/@smithy/eventstream-codec/dist-es/Int64.js
3946
+ class Int644 {
3947
+ bytes;
3948
+ constructor(bytes) {
3949
+ this.bytes = bytes;
3950
+ if (bytes.byteLength !== 8) {
3951
+ throw new Error("Int64 buffers must be exactly 8 bytes");
3952
+ }
3994
3953
  }
3995
- };
3996
- var init_values = __esm(() => {
3997
- init_error3();
3998
- isReadonlyArray = isArray;
3999
- });
4000
-
4001
- // node_modules/.bun/@anthropic-ai+bedrock-sdk@0.26.4+3c5d820c62823f0b/node_modules/@anthropic-ai/bedrock-sdk/internal/utils/log.mjs
4002
- function noop() {}
4003
- function makeLogFn(fnLevel, logger4, logLevel) {
4004
- if (!logger4 || levelNumbers[fnLevel] > levelNumbers[logLevel]) {
4005
- return noop;
4006
- } else {
4007
- return logger4[fnLevel].bind(logger4);
3954
+ static fromNumber(number) {
3955
+ if (number > 9223372036854776000 || number < -9223372036854776000) {
3956
+ throw new Error(`${number} is too large (or, if negative, too small) to represent as an Int64`);
3957
+ }
3958
+ const bytes = new Uint8Array(8);
3959
+ for (let i = 7, remaining = Math.abs(Math.round(number));i > -1 && remaining > 0; i--, remaining /= 256) {
3960
+ bytes[i] = remaining;
3961
+ }
3962
+ if (number < 0) {
3963
+ negate3(bytes);
3964
+ }
3965
+ return new Int644(bytes);
3966
+ }
3967
+ valueOf() {
3968
+ const bytes = this.bytes.slice(0);
3969
+ const negative = bytes[0] & 128;
3970
+ if (negative) {
3971
+ negate3(bytes);
3972
+ }
3973
+ return parseInt(import_util_hex_encoding7.toHex(bytes), 16) * (negative ? -1 : 1);
3974
+ }
3975
+ toString() {
3976
+ return String(this.valueOf());
4008
3977
  }
4009
3978
  }
4010
- function loggerFor(client4) {
4011
- const logger4 = client4.logger;
4012
- const logLevel = client4.logLevel ?? "off";
4013
- if (!logger4) {
4014
- return noopLogger;
3979
+ function negate3(bytes) {
3980
+ for (let i = 0;i < 8; i++) {
3981
+ bytes[i] ^= 255;
4015
3982
  }
4016
- const cachedLogger = cachedLoggers.get(logger4);
4017
- if (cachedLogger && cachedLogger[0] === logLevel) {
4018
- return cachedLogger[1];
3983
+ for (let i = 7;i > -1; i--) {
3984
+ bytes[i]++;
3985
+ if (bytes[i] !== 0)
3986
+ break;
4019
3987
  }
4020
- const levelLogger = {
4021
- error: makeLogFn("error", logger4, logLevel),
4022
- warn: makeLogFn("warn", logger4, logLevel),
4023
- info: makeLogFn("info", logger4, logLevel),
4024
- debug: makeLogFn("debug", logger4, logLevel)
4025
- };
4026
- cachedLoggers.set(logger4, [logLevel, levelLogger]);
4027
- return levelLogger;
4028
3988
  }
4029
- var levelNumbers, noopLogger, cachedLoggers;
4030
- var init_log = __esm(() => {
4031
- init_values();
4032
- levelNumbers = {
4033
- off: 0,
4034
- error: 200,
4035
- warn: 300,
4036
- info: 400,
4037
- debug: 500
4038
- };
4039
- noopLogger = {
3989
+ var import_util_hex_encoding7;
3990
+ var init_Int642 = __esm(() => {
3991
+ import_util_hex_encoding7 = __toESM(require_dist_cjs3(), 1);
3992
+ });
3993
+
3994
+ // node_modules/.bun/@smithy+eventstream-codec@4.2.13/node_modules/@smithy/eventstream-codec/dist-es/HeaderMarshaller.js
3995
+ class HeaderMarshaller3 {
3996
+ toUtf8;
3997
+ fromUtf8;
3998
+ constructor(toUtf83, fromUtf84) {
3999
+ this.toUtf8 = toUtf83;
4000
+ this.fromUtf8 = fromUtf84;
4001
+ }
4002
+ format(headers) {
4003
+ const chunks = [];
4004
+ for (const headerName of Object.keys(headers)) {
4005
+ const bytes = this.fromUtf8(headerName);
4006
+ chunks.push(Uint8Array.from([bytes.byteLength]), bytes, this.formatHeaderValue(headers[headerName]));
4007
+ }
4008
+ const out = new Uint8Array(chunks.reduce((carry, bytes) => carry + bytes.byteLength, 0));
4009
+ let position = 0;
4010
+ for (const chunk of chunks) {
4011
+ out.set(chunk, position);
4012
+ position += chunk.byteLength;
4013
+ }
4014
+ return out;
4015
+ }
4016
+ formatHeaderValue(header) {
4017
+ switch (header.type) {
4018
+ case "boolean":
4019
+ return Uint8Array.from([header.value ? 0 : 1]);
4020
+ case "byte":
4021
+ return Uint8Array.from([2, header.value]);
4022
+ case "short":
4023
+ const shortView = new DataView(new ArrayBuffer(3));
4024
+ shortView.setUint8(0, 3);
4025
+ shortView.setInt16(1, header.value, false);
4026
+ return new Uint8Array(shortView.buffer);
4027
+ case "integer":
4028
+ const intView = new DataView(new ArrayBuffer(5));
4029
+ intView.setUint8(0, 4);
4030
+ intView.setInt32(1, header.value, false);
4031
+ return new Uint8Array(intView.buffer);
4032
+ case "long":
4033
+ const longBytes = new Uint8Array(9);
4034
+ longBytes[0] = 5;
4035
+ longBytes.set(header.value.bytes, 1);
4036
+ return longBytes;
4037
+ case "binary":
4038
+ const binView = new DataView(new ArrayBuffer(3 + header.value.byteLength));
4039
+ binView.setUint8(0, 6);
4040
+ binView.setUint16(1, header.value.byteLength, false);
4041
+ const binBytes = new Uint8Array(binView.buffer);
4042
+ binBytes.set(header.value, 3);
4043
+ return binBytes;
4044
+ case "string":
4045
+ const utf8Bytes = this.fromUtf8(header.value);
4046
+ const strView = new DataView(new ArrayBuffer(3 + utf8Bytes.byteLength));
4047
+ strView.setUint8(0, 7);
4048
+ strView.setUint16(1, utf8Bytes.byteLength, false);
4049
+ const strBytes = new Uint8Array(strView.buffer);
4050
+ strBytes.set(utf8Bytes, 3);
4051
+ return strBytes;
4052
+ case "timestamp":
4053
+ const tsBytes = new Uint8Array(9);
4054
+ tsBytes[0] = 8;
4055
+ tsBytes.set(Int644.fromNumber(header.value.valueOf()).bytes, 1);
4056
+ return tsBytes;
4057
+ case "uuid":
4058
+ if (!UUID_PATTERN3.test(header.value)) {
4059
+ throw new Error(`Invalid UUID received: ${header.value}`);
4060
+ }
4061
+ const uuidBytes = new Uint8Array(17);
4062
+ uuidBytes[0] = 9;
4063
+ uuidBytes.set(import_util_hex_encoding8.fromHex(header.value.replace(/\-/g, "")), 1);
4064
+ return uuidBytes;
4065
+ }
4066
+ }
4067
+ parse(headers) {
4068
+ const out = {};
4069
+ let position = 0;
4070
+ while (position < headers.byteLength) {
4071
+ const nameLength = headers.getUint8(position++);
4072
+ const name = this.toUtf8(new Uint8Array(headers.buffer, headers.byteOffset + position, nameLength));
4073
+ position += nameLength;
4074
+ switch (headers.getUint8(position++)) {
4075
+ case 0:
4076
+ out[name] = {
4077
+ type: BOOLEAN_TAG2,
4078
+ value: true
4079
+ };
4080
+ break;
4081
+ case 1:
4082
+ out[name] = {
4083
+ type: BOOLEAN_TAG2,
4084
+ value: false
4085
+ };
4086
+ break;
4087
+ case 2:
4088
+ out[name] = {
4089
+ type: BYTE_TAG2,
4090
+ value: headers.getInt8(position++)
4091
+ };
4092
+ break;
4093
+ case 3:
4094
+ out[name] = {
4095
+ type: SHORT_TAG2,
4096
+ value: headers.getInt16(position, false)
4097
+ };
4098
+ position += 2;
4099
+ break;
4100
+ case 4:
4101
+ out[name] = {
4102
+ type: INT_TAG2,
4103
+ value: headers.getInt32(position, false)
4104
+ };
4105
+ position += 4;
4106
+ break;
4107
+ case 5:
4108
+ out[name] = {
4109
+ type: LONG_TAG2,
4110
+ value: new Int644(new Uint8Array(headers.buffer, headers.byteOffset + position, 8))
4111
+ };
4112
+ position += 8;
4113
+ break;
4114
+ case 6:
4115
+ const binaryLength = headers.getUint16(position, false);
4116
+ position += 2;
4117
+ out[name] = {
4118
+ type: BINARY_TAG2,
4119
+ value: new Uint8Array(headers.buffer, headers.byteOffset + position, binaryLength)
4120
+ };
4121
+ position += binaryLength;
4122
+ break;
4123
+ case 7:
4124
+ const stringLength = headers.getUint16(position, false);
4125
+ position += 2;
4126
+ out[name] = {
4127
+ type: STRING_TAG2,
4128
+ value: this.toUtf8(new Uint8Array(headers.buffer, headers.byteOffset + position, stringLength))
4129
+ };
4130
+ position += stringLength;
4131
+ break;
4132
+ case 8:
4133
+ out[name] = {
4134
+ type: TIMESTAMP_TAG2,
4135
+ value: new Date(new Int644(new Uint8Array(headers.buffer, headers.byteOffset + position, 8)).valueOf())
4136
+ };
4137
+ position += 8;
4138
+ break;
4139
+ case 9:
4140
+ const uuidBytes = new Uint8Array(headers.buffer, headers.byteOffset + position, 16);
4141
+ position += 16;
4142
+ out[name] = {
4143
+ type: UUID_TAG2,
4144
+ value: `${import_util_hex_encoding8.toHex(uuidBytes.subarray(0, 4))}-${import_util_hex_encoding8.toHex(uuidBytes.subarray(4, 6))}-${import_util_hex_encoding8.toHex(uuidBytes.subarray(6, 8))}-${import_util_hex_encoding8.toHex(uuidBytes.subarray(8, 10))}-${import_util_hex_encoding8.toHex(uuidBytes.subarray(10))}`
4145
+ };
4146
+ break;
4147
+ default:
4148
+ throw new Error(`Unrecognized header type tag`);
4149
+ }
4150
+ }
4151
+ return out;
4152
+ }
4153
+ }
4154
+ var import_util_hex_encoding8, HEADER_VALUE_TYPE3, BOOLEAN_TAG2 = "boolean", BYTE_TAG2 = "byte", SHORT_TAG2 = "short", INT_TAG2 = "integer", LONG_TAG2 = "long", BINARY_TAG2 = "binary", STRING_TAG2 = "string", TIMESTAMP_TAG2 = "timestamp", UUID_TAG2 = "uuid", UUID_PATTERN3;
4155
+ var init_HeaderMarshaller2 = __esm(() => {
4156
+ init_Int642();
4157
+ import_util_hex_encoding8 = __toESM(require_dist_cjs3(), 1);
4158
+ (function(HEADER_VALUE_TYPE4) {
4159
+ HEADER_VALUE_TYPE4[HEADER_VALUE_TYPE4["boolTrue"] = 0] = "boolTrue";
4160
+ HEADER_VALUE_TYPE4[HEADER_VALUE_TYPE4["boolFalse"] = 1] = "boolFalse";
4161
+ HEADER_VALUE_TYPE4[HEADER_VALUE_TYPE4["byte"] = 2] = "byte";
4162
+ HEADER_VALUE_TYPE4[HEADER_VALUE_TYPE4["short"] = 3] = "short";
4163
+ HEADER_VALUE_TYPE4[HEADER_VALUE_TYPE4["integer"] = 4] = "integer";
4164
+ HEADER_VALUE_TYPE4[HEADER_VALUE_TYPE4["long"] = 5] = "long";
4165
+ HEADER_VALUE_TYPE4[HEADER_VALUE_TYPE4["byteArray"] = 6] = "byteArray";
4166
+ HEADER_VALUE_TYPE4[HEADER_VALUE_TYPE4["string"] = 7] = "string";
4167
+ HEADER_VALUE_TYPE4[HEADER_VALUE_TYPE4["timestamp"] = 8] = "timestamp";
4168
+ HEADER_VALUE_TYPE4[HEADER_VALUE_TYPE4["uuid"] = 9] = "uuid";
4169
+ })(HEADER_VALUE_TYPE3 || (HEADER_VALUE_TYPE3 = {}));
4170
+ UUID_PATTERN3 = /^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;
4171
+ });
4172
+
4173
+ // node_modules/.bun/@smithy+eventstream-codec@4.2.13/node_modules/@smithy/eventstream-codec/dist-es/splitMessage.js
4174
+ function splitMessage2({ byteLength, byteOffset, buffer }) {
4175
+ if (byteLength < MINIMUM_MESSAGE_LENGTH2) {
4176
+ throw new Error("Provided message too short to accommodate event stream message overhead");
4177
+ }
4178
+ const view = new DataView(buffer, byteOffset, byteLength);
4179
+ const messageLength = view.getUint32(0, false);
4180
+ if (byteLength !== messageLength) {
4181
+ throw new Error("Reported message length does not match received message length");
4182
+ }
4183
+ const headerLength = view.getUint32(PRELUDE_MEMBER_LENGTH2, false);
4184
+ const expectedPreludeChecksum = view.getUint32(PRELUDE_LENGTH2, false);
4185
+ const expectedMessageChecksum = view.getUint32(byteLength - CHECKSUM_LENGTH2, false);
4186
+ const checksummer = new Crc32().update(new Uint8Array(buffer, byteOffset, PRELUDE_LENGTH2));
4187
+ if (expectedPreludeChecksum !== checksummer.digest()) {
4188
+ throw new Error(`The prelude checksum specified in the message (${expectedPreludeChecksum}) does not match the calculated CRC32 checksum (${checksummer.digest()})`);
4189
+ }
4190
+ checksummer.update(new Uint8Array(buffer, byteOffset + PRELUDE_LENGTH2, byteLength - (PRELUDE_LENGTH2 + CHECKSUM_LENGTH2)));
4191
+ if (expectedMessageChecksum !== checksummer.digest()) {
4192
+ throw new Error(`The message checksum (${checksummer.digest()}) did not match the expected value of ${expectedMessageChecksum}`);
4193
+ }
4194
+ return {
4195
+ headers: new DataView(buffer, byteOffset + PRELUDE_LENGTH2 + CHECKSUM_LENGTH2, headerLength),
4196
+ body: new Uint8Array(buffer, byteOffset + PRELUDE_LENGTH2 + CHECKSUM_LENGTH2 + headerLength, messageLength - headerLength - (PRELUDE_LENGTH2 + CHECKSUM_LENGTH2 + CHECKSUM_LENGTH2))
4197
+ };
4198
+ }
4199
+ var PRELUDE_MEMBER_LENGTH2 = 4, PRELUDE_LENGTH2, CHECKSUM_LENGTH2 = 4, MINIMUM_MESSAGE_LENGTH2;
4200
+ var init_splitMessage2 = __esm(() => {
4201
+ init_module();
4202
+ PRELUDE_LENGTH2 = PRELUDE_MEMBER_LENGTH2 * 2;
4203
+ MINIMUM_MESSAGE_LENGTH2 = PRELUDE_LENGTH2 + CHECKSUM_LENGTH2 * 2;
4204
+ });
4205
+
4206
+ // node_modules/.bun/@smithy+eventstream-codec@4.2.13/node_modules/@smithy/eventstream-codec/dist-es/EventStreamCodec.js
4207
+ class EventStreamCodec3 {
4208
+ headerMarshaller;
4209
+ messageBuffer;
4210
+ isEndOfStream;
4211
+ constructor(toUtf83, fromUtf84) {
4212
+ this.headerMarshaller = new HeaderMarshaller3(toUtf83, fromUtf84);
4213
+ this.messageBuffer = [];
4214
+ this.isEndOfStream = false;
4215
+ }
4216
+ feed(message) {
4217
+ this.messageBuffer.push(this.decode(message));
4218
+ }
4219
+ endOfStream() {
4220
+ this.isEndOfStream = true;
4221
+ }
4222
+ getMessage() {
4223
+ const message = this.messageBuffer.pop();
4224
+ const isEndOfStream = this.isEndOfStream;
4225
+ return {
4226
+ getMessage() {
4227
+ return message;
4228
+ },
4229
+ isEndOfStream() {
4230
+ return isEndOfStream;
4231
+ }
4232
+ };
4233
+ }
4234
+ getAvailableMessages() {
4235
+ const messages = this.messageBuffer;
4236
+ this.messageBuffer = [];
4237
+ const isEndOfStream = this.isEndOfStream;
4238
+ return {
4239
+ getMessages() {
4240
+ return messages;
4241
+ },
4242
+ isEndOfStream() {
4243
+ return isEndOfStream;
4244
+ }
4245
+ };
4246
+ }
4247
+ encode({ headers: rawHeaders, body }) {
4248
+ const headers = this.headerMarshaller.format(rawHeaders);
4249
+ const length = headers.byteLength + body.byteLength + 16;
4250
+ const out = new Uint8Array(length);
4251
+ const view = new DataView(out.buffer, out.byteOffset, out.byteLength);
4252
+ const checksum3 = new Crc32;
4253
+ view.setUint32(0, length, false);
4254
+ view.setUint32(4, headers.byteLength, false);
4255
+ view.setUint32(8, checksum3.update(out.subarray(0, 8)).digest(), false);
4256
+ out.set(headers, 12);
4257
+ out.set(body, headers.byteLength + 12);
4258
+ view.setUint32(length - 4, checksum3.update(out.subarray(8, length - 4)).digest(), false);
4259
+ return out;
4260
+ }
4261
+ decode(message) {
4262
+ const { headers, body } = splitMessage2(message);
4263
+ return { headers: this.headerMarshaller.parse(headers), body };
4264
+ }
4265
+ formatHeaders(rawHeaders) {
4266
+ return this.headerMarshaller.format(rawHeaders);
4267
+ }
4268
+ }
4269
+ var init_EventStreamCodec2 = __esm(() => {
4270
+ init_module();
4271
+ init_HeaderMarshaller2();
4272
+ init_splitMessage2();
4273
+ });
4274
+
4275
+ // node_modules/.bun/@smithy+eventstream-codec@4.2.13/node_modules/@smithy/eventstream-codec/dist-es/Message.js
4276
+ var init_Message2 = () => {};
4277
+
4278
+ // node_modules/.bun/@smithy+eventstream-codec@4.2.13/node_modules/@smithy/eventstream-codec/dist-es/MessageDecoderStream.js
4279
+ var MessageDecoderStream3;
4280
+ var init_MessageDecoderStream2 = __esm(() => {
4281
+ MessageDecoderStream3 = class MessageDecoderStream3 {
4282
+ options;
4283
+ constructor(options) {
4284
+ this.options = options;
4285
+ }
4286
+ [Symbol.asyncIterator]() {
4287
+ return this.asyncIterator();
4288
+ }
4289
+ async* asyncIterator() {
4290
+ for await (const bytes of this.options.inputStream) {
4291
+ const decoded = this.options.decoder.decode(bytes);
4292
+ yield decoded;
4293
+ }
4294
+ }
4295
+ };
4296
+ });
4297
+
4298
+ // node_modules/.bun/@smithy+eventstream-codec@4.2.13/node_modules/@smithy/eventstream-codec/dist-es/MessageEncoderStream.js
4299
+ var MessageEncoderStream3;
4300
+ var init_MessageEncoderStream2 = __esm(() => {
4301
+ MessageEncoderStream3 = class MessageEncoderStream3 {
4302
+ options;
4303
+ constructor(options) {
4304
+ this.options = options;
4305
+ }
4306
+ [Symbol.asyncIterator]() {
4307
+ return this.asyncIterator();
4308
+ }
4309
+ async* asyncIterator() {
4310
+ for await (const msg of this.options.messageStream) {
4311
+ const encoded = this.options.encoder.encode(msg);
4312
+ yield encoded;
4313
+ }
4314
+ if (this.options.includeEndFrame) {
4315
+ yield new Uint8Array(0);
4316
+ }
4317
+ }
4318
+ };
4319
+ });
4320
+
4321
+ // node_modules/.bun/@smithy+eventstream-codec@4.2.13/node_modules/@smithy/eventstream-codec/dist-es/SmithyMessageDecoderStream.js
4322
+ var SmithyMessageDecoderStream3;
4323
+ var init_SmithyMessageDecoderStream2 = __esm(() => {
4324
+ SmithyMessageDecoderStream3 = class SmithyMessageDecoderStream3 {
4325
+ options;
4326
+ constructor(options) {
4327
+ this.options = options;
4328
+ }
4329
+ [Symbol.asyncIterator]() {
4330
+ return this.asyncIterator();
4331
+ }
4332
+ async* asyncIterator() {
4333
+ for await (const message of this.options.messageStream) {
4334
+ const deserialized = await this.options.deserializer(message);
4335
+ if (deserialized === undefined)
4336
+ continue;
4337
+ yield deserialized;
4338
+ }
4339
+ }
4340
+ };
4341
+ });
4342
+
4343
+ // node_modules/.bun/@smithy+eventstream-codec@4.2.13/node_modules/@smithy/eventstream-codec/dist-es/SmithyMessageEncoderStream.js
4344
+ var SmithyMessageEncoderStream3;
4345
+ var init_SmithyMessageEncoderStream2 = __esm(() => {
4346
+ SmithyMessageEncoderStream3 = class SmithyMessageEncoderStream3 {
4347
+ options;
4348
+ constructor(options) {
4349
+ this.options = options;
4350
+ }
4351
+ [Symbol.asyncIterator]() {
4352
+ return this.asyncIterator();
4353
+ }
4354
+ async* asyncIterator() {
4355
+ for await (const chunk of this.options.inputStream) {
4356
+ const payloadBuf = this.options.serializer(chunk);
4357
+ yield payloadBuf;
4358
+ }
4359
+ }
4360
+ };
4361
+ });
4362
+
4363
+ // node_modules/.bun/@smithy+eventstream-codec@4.2.13/node_modules/@smithy/eventstream-codec/dist-es/index.js
4364
+ var init_dist_es26 = __esm(() => {
4365
+ init_EventStreamCodec2();
4366
+ init_HeaderMarshaller2();
4367
+ init_Int642();
4368
+ init_Message2();
4369
+ init_MessageDecoderStream2();
4370
+ init_MessageEncoderStream2();
4371
+ init_SmithyMessageDecoderStream2();
4372
+ init_SmithyMessageEncoderStream2();
4373
+ });
4374
+
4375
+ // node_modules/.bun/@smithy+eventstream-serde-universal@4.2.13/node_modules/@smithy/eventstream-serde-universal/dist-es/getChunkedStream.js
4376
+ function getChunkedStream2(source) {
4377
+ let currentMessageTotalLength = 0;
4378
+ let currentMessagePendingLength = 0;
4379
+ let currentMessage = null;
4380
+ let messageLengthBuffer = null;
4381
+ const allocateMessage = (size) => {
4382
+ if (typeof size !== "number") {
4383
+ throw new Error("Attempted to allocate an event message where size was not a number: " + size);
4384
+ }
4385
+ currentMessageTotalLength = size;
4386
+ currentMessagePendingLength = 4;
4387
+ currentMessage = new Uint8Array(size);
4388
+ const currentMessageView = new DataView(currentMessage.buffer);
4389
+ currentMessageView.setUint32(0, size, false);
4390
+ };
4391
+ const iterator = async function* () {
4392
+ const sourceIterator = source[Symbol.asyncIterator]();
4393
+ while (true) {
4394
+ const { value, done } = await sourceIterator.next();
4395
+ if (done) {
4396
+ if (!currentMessageTotalLength) {
4397
+ return;
4398
+ } else if (currentMessageTotalLength === currentMessagePendingLength) {
4399
+ yield currentMessage;
4400
+ } else {
4401
+ throw new Error("Truncated event message received.");
4402
+ }
4403
+ return;
4404
+ }
4405
+ const chunkLength = value.length;
4406
+ let currentOffset = 0;
4407
+ while (currentOffset < chunkLength) {
4408
+ if (!currentMessage) {
4409
+ const bytesRemaining = chunkLength - currentOffset;
4410
+ if (!messageLengthBuffer) {
4411
+ messageLengthBuffer = new Uint8Array(4);
4412
+ }
4413
+ const numBytesForTotal = Math.min(4 - currentMessagePendingLength, bytesRemaining);
4414
+ messageLengthBuffer.set(value.slice(currentOffset, currentOffset + numBytesForTotal), currentMessagePendingLength);
4415
+ currentMessagePendingLength += numBytesForTotal;
4416
+ currentOffset += numBytesForTotal;
4417
+ if (currentMessagePendingLength < 4) {
4418
+ break;
4419
+ }
4420
+ allocateMessage(new DataView(messageLengthBuffer.buffer).getUint32(0, false));
4421
+ messageLengthBuffer = null;
4422
+ }
4423
+ const numBytesToWrite = Math.min(currentMessageTotalLength - currentMessagePendingLength, chunkLength - currentOffset);
4424
+ currentMessage.set(value.slice(currentOffset, currentOffset + numBytesToWrite), currentMessagePendingLength);
4425
+ currentMessagePendingLength += numBytesToWrite;
4426
+ currentOffset += numBytesToWrite;
4427
+ if (currentMessageTotalLength && currentMessageTotalLength === currentMessagePendingLength) {
4428
+ yield currentMessage;
4429
+ currentMessage = null;
4430
+ currentMessageTotalLength = 0;
4431
+ currentMessagePendingLength = 0;
4432
+ }
4433
+ }
4434
+ }
4435
+ };
4436
+ return {
4437
+ [Symbol.asyncIterator]: iterator
4438
+ };
4439
+ }
4440
+ var init_getChunkedStream2 = () => {};
4441
+
4442
+ // node_modules/.bun/@smithy+eventstream-serde-universal@4.2.13/node_modules/@smithy/eventstream-serde-universal/dist-es/getUnmarshalledStream.js
4443
+ function getMessageUnmarshaller2(deserializer, toUtf83) {
4444
+ return async function(message) {
4445
+ const { value: messageType } = message.headers[":message-type"];
4446
+ if (messageType === "error") {
4447
+ const unmodeledError = new Error(message.headers[":error-message"].value || "UnknownError");
4448
+ unmodeledError.name = message.headers[":error-code"].value;
4449
+ throw unmodeledError;
4450
+ } else if (messageType === "exception") {
4451
+ const code = message.headers[":exception-type"].value;
4452
+ const exception = { [code]: message };
4453
+ const deserializedException = await deserializer(exception);
4454
+ if (deserializedException.$unknown) {
4455
+ const error = new Error(toUtf83(message.body));
4456
+ error.name = code;
4457
+ throw error;
4458
+ }
4459
+ throw deserializedException[code];
4460
+ } else if (messageType === "event") {
4461
+ const event = {
4462
+ [message.headers[":event-type"].value]: message
4463
+ };
4464
+ const deserialized = await deserializer(event);
4465
+ if (deserialized.$unknown)
4466
+ return;
4467
+ return deserialized;
4468
+ } else {
4469
+ throw Error(`Unrecognizable event type: ${message.headers[":event-type"].value}`);
4470
+ }
4471
+ };
4472
+ }
4473
+ var init_getUnmarshalledStream2 = () => {};
4474
+
4475
+ // node_modules/.bun/@smithy+eventstream-serde-universal@4.2.13/node_modules/@smithy/eventstream-serde-universal/dist-es/EventStreamMarshaller.js
4476
+ class EventStreamMarshaller5 {
4477
+ eventStreamCodec;
4478
+ utfEncoder;
4479
+ constructor({ utf8Encoder, utf8Decoder }) {
4480
+ this.eventStreamCodec = new EventStreamCodec3(utf8Encoder, utf8Decoder);
4481
+ this.utfEncoder = utf8Encoder;
4482
+ }
4483
+ deserialize(body, deserializer) {
4484
+ const inputStream = getChunkedStream2(body);
4485
+ return new SmithyMessageDecoderStream3({
4486
+ messageStream: new MessageDecoderStream3({ inputStream, decoder: this.eventStreamCodec }),
4487
+ deserializer: getMessageUnmarshaller2(deserializer, this.utfEncoder)
4488
+ });
4489
+ }
4490
+ serialize(inputStream, serializer) {
4491
+ return new MessageEncoderStream3({
4492
+ messageStream: new SmithyMessageEncoderStream3({ inputStream, serializer }),
4493
+ encoder: this.eventStreamCodec,
4494
+ includeEndFrame: true
4495
+ });
4496
+ }
4497
+ }
4498
+ var init_EventStreamMarshaller3 = __esm(() => {
4499
+ init_dist_es26();
4500
+ init_getChunkedStream2();
4501
+ init_getUnmarshalledStream2();
4502
+ });
4503
+
4504
+ // node_modules/.bun/@smithy+eventstream-serde-universal@4.2.13/node_modules/@smithy/eventstream-serde-universal/dist-es/provider.js
4505
+ var init_provider3 = () => {};
4506
+
4507
+ // node_modules/.bun/@smithy+eventstream-serde-universal@4.2.13/node_modules/@smithy/eventstream-serde-universal/dist-es/index.js
4508
+ var init_dist_es27 = __esm(() => {
4509
+ init_EventStreamMarshaller3();
4510
+ init_provider3();
4511
+ });
4512
+
4513
+ // node_modules/.bun/@aws-sdk+middleware-websocket@3.972.15/node_modules/@aws-sdk/middleware-websocket/dist-es/utils.js
4514
+ var isWebSocketRequest = (request) => request.protocol === "ws:" || request.protocol === "wss:";
4515
+ var init_utils2 = () => {};
4516
+
4517
+ // node_modules/.bun/@aws-sdk+middleware-websocket@3.972.15/node_modules/@aws-sdk/middleware-websocket/dist-es/WebSocketFetchHandler.js
4518
+ var init_WebSocketFetchHandler = () => {};
4519
+
4520
+ // node_modules/.bun/@aws-sdk+middleware-websocket@3.972.15/node_modules/@aws-sdk/middleware-websocket/dist-es/middlewares/websocketEndpointMiddleware.js
4521
+ var import_protocol_http6, websocketEndpointMiddleware = (config3, options) => (next) => (args) => {
4522
+ const { request } = args;
4523
+ if (import_protocol_http6.HttpRequest.isInstance(request) && config3.requestHandler.metadata?.handlerProtocol?.toLowerCase().includes("websocket")) {
4524
+ request.protocol = "wss:";
4525
+ request.method = "GET";
4526
+ request.path = `${request.path}-websocket`;
4527
+ const { headers } = request;
4528
+ delete headers["content-type"];
4529
+ delete headers["x-amz-content-sha256"];
4530
+ for (const name of Object.keys(headers)) {
4531
+ if (name.indexOf(options.headerPrefix) === 0) {
4532
+ const chunkedName = name.replace(options.headerPrefix, "");
4533
+ request.query[chunkedName] = headers[name];
4534
+ }
4535
+ }
4536
+ if (headers["x-amz-user-agent"]) {
4537
+ request.query["user-agent"] = headers["x-amz-user-agent"];
4538
+ }
4539
+ request.headers = { host: headers.host ?? request.hostname };
4540
+ }
4541
+ return next(args);
4542
+ }, websocketEndpointMiddlewareOptions;
4543
+ var init_websocketEndpointMiddleware = __esm(() => {
4544
+ import_protocol_http6 = __toESM(require_dist_cjs5(), 1);
4545
+ websocketEndpointMiddlewareOptions = {
4546
+ name: "websocketEndpointMiddleware",
4547
+ tags: ["WEBSOCKET", "EVENT_STREAM"],
4548
+ relation: "after",
4549
+ toMiddleware: "eventStreamHeaderMiddleware",
4550
+ override: true
4551
+ };
4552
+ });
4553
+
4554
+ // node_modules/.bun/@aws-sdk+middleware-websocket@3.972.15/node_modules/@aws-sdk/middleware-websocket/dist-es/middlewares/websocketInjectSessionIdMiddleware.js
4555
+ var injectSessionIdMiddleware = () => (next) => async (args) => {
4556
+ const requestParams = {
4557
+ ...args.input
4558
+ };
4559
+ const response3 = await next(args);
4560
+ const output = response3.output;
4561
+ if (requestParams.SessionId && output.SessionId == null) {
4562
+ output.SessionId = requestParams.SessionId;
4563
+ }
4564
+ return response3;
4565
+ }, injectSessionIdMiddlewareOptions;
4566
+ var init_websocketInjectSessionIdMiddleware = __esm(() => {
4567
+ injectSessionIdMiddlewareOptions = {
4568
+ step: "initialize",
4569
+ name: "injectSessionIdMiddleware",
4570
+ tags: ["WEBSOCKET", "EVENT_STREAM"],
4571
+ override: true
4572
+ };
4573
+ });
4574
+
4575
+ // node_modules/.bun/@aws-sdk+middleware-websocket@3.972.15/node_modules/@aws-sdk/middleware-websocket/dist-es/getWebSocketPlugin.js
4576
+ var getWebSocketPlugin = (config3, options) => ({
4577
+ applyToStack: (clientStack) => {
4578
+ clientStack.addRelativeTo(websocketEndpointMiddleware(config3, options), websocketEndpointMiddlewareOptions);
4579
+ clientStack.add(injectSessionIdMiddleware(), injectSessionIdMiddlewareOptions);
4580
+ }
4581
+ });
4582
+ var init_getWebSocketPlugin = __esm(() => {
4583
+ init_websocketEndpointMiddleware();
4584
+ init_websocketInjectSessionIdMiddleware();
4585
+ });
4586
+
4587
+ // node_modules/.bun/@aws-sdk+middleware-websocket@3.972.15/node_modules/@aws-sdk/middleware-websocket/dist-es/WebsocketSignatureV4.js
4588
+ class WebsocketSignatureV4 {
4589
+ signer;
4590
+ constructor(options) {
4591
+ this.signer = options.signer;
4592
+ }
4593
+ presign(originalRequest, options = {}) {
4594
+ return this.signer.presign(originalRequest, options);
4595
+ }
4596
+ async sign(toSign, options) {
4597
+ if (import_protocol_http7.HttpRequest.isInstance(toSign) && isWebSocketRequest(toSign)) {
4598
+ const signedRequest = await this.signer.presign({ ...toSign, body: "" }, {
4599
+ ...options,
4600
+ expiresIn: 60,
4601
+ unsignableHeaders: new Set(Object.keys(toSign.headers).filter((header) => header !== "host"))
4602
+ });
4603
+ return {
4604
+ ...signedRequest,
4605
+ body: toSign.body
4606
+ };
4607
+ } else {
4608
+ return this.signer.sign(toSign, options);
4609
+ }
4610
+ }
4611
+ signMessage(message, args) {
4612
+ return this.signer.signMessage(message, args);
4613
+ }
4614
+ }
4615
+ var import_protocol_http7;
4616
+ var init_WebsocketSignatureV4 = __esm(() => {
4617
+ init_utils2();
4618
+ import_protocol_http7 = __toESM(require_dist_cjs5(), 1);
4619
+ });
4620
+
4621
+ // node_modules/.bun/@aws-sdk+middleware-websocket@3.972.15/node_modules/@aws-sdk/middleware-websocket/dist-es/resolveWebSocketConfig.js
4622
+ var resolveWebSocketConfig = (input) => {
4623
+ const { signer } = input;
4624
+ return Object.assign(input, {
4625
+ signer: async (authScheme) => {
4626
+ const signerObj = await signer(authScheme);
4627
+ if (validateSigner(signerObj)) {
4628
+ return new WebsocketSignatureV4({ signer: signerObj });
4629
+ }
4630
+ throw new Error("Expected WebsocketSignatureV4 signer, please check the client constructor.");
4631
+ }
4632
+ });
4633
+ }, validateSigner = (signer) => !!signer;
4634
+ var init_resolveWebSocketConfig = __esm(() => {
4635
+ init_WebsocketSignatureV4();
4636
+ });
4637
+
4638
+ // node_modules/.bun/@aws-sdk+middleware-websocket@3.972.15/node_modules/@aws-sdk/middleware-websocket/dist-es/ws-eventstream/eventStreamPayloadHandlerProvider.js
4639
+ var init_eventStreamPayloadHandlerProvider = () => {};
4640
+
4641
+ // node_modules/.bun/@aws-sdk+middleware-websocket@3.972.15/node_modules/@aws-sdk/middleware-websocket/dist-es/index.js
4642
+ var init_dist_es28 = __esm(() => {
4643
+ init_WebSocketFetchHandler();
4644
+ init_getWebSocketPlugin();
4645
+ init_resolveWebSocketConfig();
4646
+ init_eventStreamPayloadHandlerProvider();
4647
+ });
4648
+
4649
+ // node_modules/.bun/@smithy+eventstream-serde-config-resolver@4.3.13/node_modules/@smithy/eventstream-serde-config-resolver/dist-es/EventStreamSerdeConfig.js
4650
+ var resolveEventStreamSerdeConfig = (input) => Object.assign(input, {
4651
+ eventStreamMarshaller: input.eventStreamSerdeProvider(input)
4652
+ });
4653
+ var init_EventStreamSerdeConfig = () => {};
4654
+
4655
+ // node_modules/.bun/@smithy+eventstream-serde-config-resolver@4.3.13/node_modules/@smithy/eventstream-serde-config-resolver/dist-es/index.js
4656
+ var init_dist_es29 = __esm(() => {
4657
+ init_EventStreamSerdeConfig();
4658
+ });
4659
+
4660
+ // node_modules/.bun/@aws-sdk+client-bedrock-runtime@3.1029.0/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/auth/httpAuthSchemeProvider.js
4661
+ function createAwsAuthSigv4HttpAuthOption(authParameters) {
4662
+ return {
4663
+ schemeId: "aws.auth#sigv4",
4664
+ signingProperties: {
4665
+ name: "bedrock",
4666
+ region: authParameters.region
4667
+ },
4668
+ propertiesExtractor: (config3, context) => ({
4669
+ signingProperties: {
4670
+ config: config3,
4671
+ context
4672
+ }
4673
+ })
4674
+ };
4675
+ }
4676
+ function createSmithyApiHttpBearerAuthHttpAuthOption(authParameters) {
4677
+ return {
4678
+ schemeId: "smithy.api#httpBearerAuth",
4679
+ propertiesExtractor: ({ profile: profile3, filepath, configFilepath, ignoreCache }, context) => ({
4680
+ identityProperties: {
4681
+ profile: profile3,
4682
+ filepath,
4683
+ configFilepath,
4684
+ ignoreCache
4685
+ }
4686
+ })
4687
+ };
4688
+ }
4689
+ var import_httpAuthSchemes, import_core, import_util_middleware2, defaultBedrockRuntimeHttpAuthSchemeParametersProvider = async (config3, context, input) => {
4690
+ return {
4691
+ operation: import_util_middleware2.getSmithyContext(context).operation,
4692
+ region: await import_util_middleware2.normalizeProvider(config3.region)() || (() => {
4693
+ throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
4694
+ })()
4695
+ };
4696
+ }, defaultBedrockRuntimeHttpAuthSchemeProvider = (authParameters) => {
4697
+ const options = [];
4698
+ switch (authParameters.operation) {
4699
+ default: {
4700
+ options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
4701
+ options.push(createSmithyApiHttpBearerAuthHttpAuthOption(authParameters));
4702
+ }
4703
+ }
4704
+ return options;
4705
+ }, resolveHttpAuthSchemeConfig = (config3) => {
4706
+ const token = import_core.memoizeIdentityProvider(config3.token, import_core.isIdentityExpired, import_core.doesIdentityRequireRefresh);
4707
+ const config_0 = import_httpAuthSchemes.resolveAwsSdkSigV4Config(config3);
4708
+ return Object.assign(config_0, {
4709
+ authSchemePreference: import_util_middleware2.normalizeProvider(config3.authSchemePreference ?? []),
4710
+ token
4711
+ });
4712
+ };
4713
+ var init_httpAuthSchemeProvider = __esm(() => {
4714
+ import_httpAuthSchemes = __toESM(require_httpAuthSchemes(), 1);
4715
+ import_core = __toESM(require_dist_cjs14(), 1);
4716
+ import_util_middleware2 = __toESM(require_dist_cjs11(), 1);
4717
+ });
4718
+
4719
+ // node_modules/.bun/@aws-sdk+client-bedrock-runtime@3.1029.0/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/endpoint/EndpointParameters.js
4720
+ var resolveClientEndpointParameters = (options) => {
4721
+ return Object.assign(options, {
4722
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
4723
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
4724
+ defaultSigningName: "bedrock"
4725
+ });
4726
+ }, commonParams;
4727
+ var init_EndpointParameters = __esm(() => {
4728
+ commonParams = {
4729
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
4730
+ Endpoint: { type: "builtInParams", name: "endpoint" },
4731
+ Region: { type: "builtInParams", name: "region" },
4732
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
4733
+ };
4734
+ });
4735
+
4736
+ // node_modules/.bun/@aws-sdk+client-bedrock-runtime@3.1029.0/node_modules/@aws-sdk/client-bedrock-runtime/package.json
4737
+ var package_default;
4738
+ var init_package = __esm(() => {
4739
+ package_default = {
4740
+ name: "@aws-sdk/client-bedrock-runtime",
4741
+ description: "AWS SDK for JavaScript Bedrock Runtime Client for Node.js, Browser and React Native",
4742
+ version: "3.1029.0",
4743
+ scripts: {
4744
+ build: "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
4745
+ "build:cjs": "node ../../scripts/compilation/inline client-bedrock-runtime",
4746
+ "build:es": "tsc -p tsconfig.es.json",
4747
+ "build:include:deps": 'yarn g:turbo run build -F="$npm_package_name"',
4748
+ "build:types": "tsc -p tsconfig.types.json",
4749
+ "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
4750
+ clean: "premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo",
4751
+ "extract:docs": "api-extractor run --local",
4752
+ "generate:client": "node ../../scripts/generate-clients/single-service --solo bedrock-runtime",
4753
+ test: "yarn g:vitest run --passWithNoTests",
4754
+ "test:browser": "yarn g:vitest run -c vitest.config.browser.e2e.mts",
4755
+ "test:browser:watch": "yarn g:vitest watch -c vitest.config.browser.e2e.mts",
4756
+ "test:e2e": "yarn g:vitest run -c vitest.config.e2e.mts",
4757
+ "test:e2e:watch": "yarn g:vitest watch -c vitest.config.e2e.mts",
4758
+ "test:index": "tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs",
4759
+ "test:integration": "yarn g:vitest run --passWithNoTests -c vitest.config.integ.mts",
4760
+ "test:integration:watch": "yarn g:vitest run --passWithNoTests -c vitest.config.integ.mts",
4761
+ "test:watch": "yarn g:vitest watch --passWithNoTests"
4762
+ },
4763
+ main: "./dist-cjs/index.js",
4764
+ types: "./dist-types/index.d.ts",
4765
+ module: "./dist-es/index.js",
4766
+ sideEffects: false,
4767
+ dependencies: {
4768
+ "@aws-crypto/sha256-browser": "5.2.0",
4769
+ "@aws-crypto/sha256-js": "5.2.0",
4770
+ "@aws-sdk/core": "^3.973.27",
4771
+ "@aws-sdk/credential-provider-node": "^3.972.30",
4772
+ "@aws-sdk/eventstream-handler-node": "^3.972.13",
4773
+ "@aws-sdk/middleware-eventstream": "^3.972.9",
4774
+ "@aws-sdk/middleware-host-header": "^3.972.9",
4775
+ "@aws-sdk/middleware-logger": "^3.972.9",
4776
+ "@aws-sdk/middleware-recursion-detection": "^3.972.10",
4777
+ "@aws-sdk/middleware-user-agent": "^3.972.29",
4778
+ "@aws-sdk/middleware-websocket": "^3.972.15",
4779
+ "@aws-sdk/region-config-resolver": "^3.972.11",
4780
+ "@aws-sdk/token-providers": "3.1029.0",
4781
+ "@aws-sdk/types": "^3.973.7",
4782
+ "@aws-sdk/util-endpoints": "^3.996.6",
4783
+ "@aws-sdk/util-user-agent-browser": "^3.972.9",
4784
+ "@aws-sdk/util-user-agent-node": "^3.973.15",
4785
+ "@smithy/config-resolver": "^4.4.14",
4786
+ "@smithy/core": "^3.23.14",
4787
+ "@smithy/eventstream-serde-browser": "^4.2.13",
4788
+ "@smithy/eventstream-serde-config-resolver": "^4.3.13",
4789
+ "@smithy/eventstream-serde-node": "^4.2.13",
4790
+ "@smithy/fetch-http-handler": "^5.3.16",
4791
+ "@smithy/hash-node": "^4.2.13",
4792
+ "@smithy/invalid-dependency": "^4.2.13",
4793
+ "@smithy/middleware-content-length": "^4.2.13",
4794
+ "@smithy/middleware-endpoint": "^4.4.29",
4795
+ "@smithy/middleware-retry": "^4.5.0",
4796
+ "@smithy/middleware-serde": "^4.2.17",
4797
+ "@smithy/middleware-stack": "^4.2.13",
4798
+ "@smithy/node-config-provider": "^4.3.13",
4799
+ "@smithy/node-http-handler": "^4.5.2",
4800
+ "@smithy/protocol-http": "^5.3.13",
4801
+ "@smithy/smithy-client": "^4.12.9",
4802
+ "@smithy/types": "^4.14.0",
4803
+ "@smithy/url-parser": "^4.2.13",
4804
+ "@smithy/util-base64": "^4.3.2",
4805
+ "@smithy/util-body-length-browser": "^4.2.2",
4806
+ "@smithy/util-body-length-node": "^4.2.3",
4807
+ "@smithy/util-defaults-mode-browser": "^4.3.45",
4808
+ "@smithy/util-defaults-mode-node": "^4.2.49",
4809
+ "@smithy/util-endpoints": "^3.3.4",
4810
+ "@smithy/util-middleware": "^4.2.13",
4811
+ "@smithy/util-retry": "^4.3.0",
4812
+ "@smithy/util-stream": "^4.5.22",
4813
+ "@smithy/util-utf8": "^4.2.2",
4814
+ tslib: "^2.6.2"
4815
+ },
4816
+ devDependencies: {
4817
+ "@smithy/snapshot-testing": "^2.0.5",
4818
+ "@tsconfig/node20": "20.1.8",
4819
+ "@types/node": "^20.14.8",
4820
+ concurrently: "7.0.0",
4821
+ "downlevel-dts": "0.10.1",
4822
+ premove: "4.0.0",
4823
+ typescript: "~5.8.3",
4824
+ vitest: "^4.0.17"
4825
+ },
4826
+ engines: {
4827
+ node: ">=20.0.0"
4828
+ },
4829
+ typesVersions: {
4830
+ "<4.5": {
4831
+ "dist-types/*": [
4832
+ "dist-types/ts3.4/*"
4833
+ ]
4834
+ }
4835
+ },
4836
+ files: [
4837
+ "dist-*/**"
4838
+ ],
4839
+ author: {
4840
+ name: "AWS SDK for JavaScript Team",
4841
+ url: "https://aws.amazon.com/javascript/"
4842
+ },
4843
+ license: "Apache-2.0",
4844
+ browser: {
4845
+ "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.browser"
4846
+ },
4847
+ "react-native": {
4848
+ "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.native"
4849
+ },
4850
+ homepage: "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-bedrock-runtime",
4851
+ repository: {
4852
+ type: "git",
4853
+ url: "https://github.com/aws/aws-sdk-js-v3.git",
4854
+ directory: "clients/client-bedrock-runtime"
4855
+ }
4856
+ };
4857
+ });
4858
+
4859
+ // node_modules/.bun/@aws-sdk+eventstream-handler-node@3.972.13/node_modules/@aws-sdk/eventstream-handler-node/dist-es/EventSigningTransformStream.js
4860
+ import { Transform } from "stream";
4861
+ function getSignatureBinary(signature3) {
4862
+ const buf = Buffer.from(signature3, "hex");
4863
+ return new Uint8Array(buf.buffer, buf.byteOffset, buf.byteLength / Uint8Array.BYTES_PER_ELEMENT);
4864
+ }
4865
+ var EventSigningTransformStream;
4866
+ var init_EventSigningTransformStream = __esm(() => {
4867
+ EventSigningTransformStream = class EventSigningTransformStream extends Transform {
4868
+ priorSignature;
4869
+ messageSigner;
4870
+ eventStreamCodec;
4871
+ systemClockOffsetProvider;
4872
+ constructor(options) {
4873
+ super({
4874
+ autoDestroy: true,
4875
+ readableObjectMode: true,
4876
+ writableObjectMode: true,
4877
+ ...options
4878
+ });
4879
+ this.priorSignature = options.priorSignature;
4880
+ this.eventStreamCodec = options.eventStreamCodec;
4881
+ this.messageSigner = options.messageSigner;
4882
+ this.systemClockOffsetProvider = options.systemClockOffsetProvider;
4883
+ }
4884
+ async _transform(chunk, encoding, callback) {
4885
+ try {
4886
+ const now = new Date(Date.now() + await this.systemClockOffsetProvider());
4887
+ const dateHeader = {
4888
+ ":date": { type: "timestamp", value: now }
4889
+ };
4890
+ const signedMessage = await this.messageSigner.sign({
4891
+ message: {
4892
+ body: chunk,
4893
+ headers: dateHeader
4894
+ },
4895
+ priorSignature: this.priorSignature
4896
+ }, {
4897
+ signingDate: now
4898
+ });
4899
+ this.priorSignature = signedMessage.signature;
4900
+ const serializedSigned = this.eventStreamCodec.encode({
4901
+ headers: {
4902
+ ...dateHeader,
4903
+ ":chunk-signature": {
4904
+ type: "binary",
4905
+ value: getSignatureBinary(signedMessage.signature)
4906
+ }
4907
+ },
4908
+ body: chunk
4909
+ });
4910
+ this.push(serializedSigned);
4911
+ return callback();
4912
+ } catch (err) {
4913
+ callback(err);
4914
+ }
4915
+ }
4916
+ };
4917
+ });
4918
+
4919
+ // node_modules/.bun/@aws-sdk+eventstream-handler-node@3.972.13/node_modules/@aws-sdk/eventstream-handler-node/dist-es/EventStreamPayloadHandler.js
4920
+ import { PassThrough, pipeline, Readable as Readable2 } from "stream";
4921
+
4922
+ class EventStreamPayloadHandler {
4923
+ messageSigner;
4924
+ eventStreamCodec;
4925
+ systemClockOffsetProvider;
4926
+ constructor(options) {
4927
+ this.messageSigner = options.messageSigner;
4928
+ this.eventStreamCodec = new EventStreamCodec3(options.utf8Encoder, options.utf8Decoder);
4929
+ this.systemClockOffsetProvider = async () => options.systemClockOffset ?? 0;
4930
+ }
4931
+ async handle(next, args, context = {}) {
4932
+ const request = args.request;
4933
+ const { body: payload, query } = request;
4934
+ if (!(payload instanceof Readable2)) {
4935
+ throw new Error("Eventstream payload must be a Readable stream.");
4936
+ }
4937
+ const payloadStream = payload;
4938
+ request.body = new PassThrough({
4939
+ objectMode: true
4940
+ });
4941
+ const match = request.headers?.authorization?.match(/Signature=([\w]+)$/);
4942
+ let priorSignature = match?.[1] ?? query?.["X-Amz-Signature"] ?? "";
4943
+ if (context.__staticSignature) {
4944
+ priorSignature = "";
4945
+ }
4946
+ const signingStream = new EventSigningTransformStream({
4947
+ priorSignature,
4948
+ eventStreamCodec: this.eventStreamCodec,
4949
+ messageSigner: await this.messageSigner(),
4950
+ systemClockOffsetProvider: this.systemClockOffsetProvider
4951
+ });
4952
+ let resolvePipeline;
4953
+ const pipelineError = new Promise((resolve, reject) => {
4954
+ resolvePipeline = () => resolve(undefined);
4955
+ pipeline(payloadStream, signingStream, request.body, (err) => {
4956
+ if (err) {
4957
+ reject(new Error(`Pipeline error in @aws-sdk/eventstream-handler-node: ${err.message}`, { cause: err }));
4958
+ }
4959
+ });
4960
+ });
4961
+ let result;
4962
+ try {
4963
+ result = await Promise.race([next(args), pipelineError]);
4964
+ } catch (e) {
4965
+ request.body.end();
4966
+ throw e;
4967
+ } finally {
4968
+ resolvePipeline();
4969
+ }
4970
+ return result;
4971
+ }
4972
+ }
4973
+ var init_EventStreamPayloadHandler = __esm(() => {
4974
+ init_dist_es26();
4975
+ init_EventSigningTransformStream();
4976
+ });
4977
+
4978
+ // node_modules/.bun/@aws-sdk+eventstream-handler-node@3.972.13/node_modules/@aws-sdk/eventstream-handler-node/dist-es/eventStreamPayloadHandlerProvider.js
4979
+ var eventStreamPayloadHandlerProvider2 = (options) => new EventStreamPayloadHandler(options);
4980
+ var init_eventStreamPayloadHandlerProvider2 = __esm(() => {
4981
+ init_EventStreamPayloadHandler();
4982
+ });
4983
+
4984
+ // node_modules/.bun/@aws-sdk+eventstream-handler-node@3.972.13/node_modules/@aws-sdk/eventstream-handler-node/dist-es/index.js
4985
+ var init_dist_es30 = __esm(() => {
4986
+ init_eventStreamPayloadHandlerProvider2();
4987
+ });
4988
+
4989
+ // node_modules/.bun/@aws-sdk+token-providers@3.1029.0/node_modules/@aws-sdk/token-providers/dist-es/fromEnvSigningName.js
4990
+ var import_client, import_httpAuthSchemes2, import_property_provider, fromEnvSigningName = ({ logger: logger4, signingName } = {}) => async () => {
4991
+ logger4?.debug?.("@aws-sdk/token-providers - fromEnvSigningName");
4992
+ if (!signingName) {
4993
+ throw new import_property_provider.TokenProviderError("Please pass 'signingName' to compute environment variable key", { logger: logger4 });
4994
+ }
4995
+ const bearerTokenKey = import_httpAuthSchemes2.getBearerTokenEnvKey(signingName);
4996
+ if (!(bearerTokenKey in process.env)) {
4997
+ throw new import_property_provider.TokenProviderError(`Token not present in '${bearerTokenKey}' environment variable`, { logger: logger4 });
4998
+ }
4999
+ const token = { token: process.env[bearerTokenKey] };
5000
+ import_client.setTokenFeature(token, "BEARER_SERVICE_ENV_VARS", "3");
5001
+ return token;
5002
+ };
5003
+ var init_fromEnvSigningName = __esm(() => {
5004
+ import_client = __toESM(require_client(), 1);
5005
+ import_httpAuthSchemes2 = __toESM(require_httpAuthSchemes(), 1);
5006
+ import_property_provider = __toESM(require_dist_cjs7(), 1);
5007
+ });
5008
+
5009
+ // node_modules/.bun/@aws-sdk+token-providers@3.1029.0/node_modules/@aws-sdk/token-providers/dist-es/constants.js
5010
+ var EXPIRE_WINDOW_MS, REFRESH_MESSAGE = `To refresh this SSO session run 'aws sso login' with the corresponding profile.`;
5011
+ var init_constants4 = __esm(() => {
5012
+ EXPIRE_WINDOW_MS = 5 * 60 * 1000;
5013
+ });
5014
+
5015
+ // node_modules/.bun/@aws-sdk+token-providers@3.1029.0/node_modules/@aws-sdk/token-providers/dist-es/getSsoOidcClient.js
5016
+ var getSsoOidcClient = async (ssoRegion, init = {}, callerClientConfig) => {
5017
+ const { SSOOIDCClient } = await import("./chunk-m2rg2m7x.js").then((m)=>__toESM(m.default,1));
5018
+ const coalesce = (prop) => init.clientConfig?.[prop] ?? init.parentClientConfig?.[prop] ?? callerClientConfig?.[prop];
5019
+ const ssoOidcClient = new SSOOIDCClient(Object.assign({}, init.clientConfig ?? {}, {
5020
+ region: ssoRegion ?? init.clientConfig?.region,
5021
+ logger: coalesce("logger"),
5022
+ userAgentAppId: coalesce("userAgentAppId")
5023
+ }));
5024
+ return ssoOidcClient;
5025
+ };
5026
+ var init_getSsoOidcClient = () => {};
5027
+
5028
+ // node_modules/.bun/@aws-sdk+token-providers@3.1029.0/node_modules/@aws-sdk/token-providers/dist-es/getNewSsoOidcToken.js
5029
+ var getNewSsoOidcToken = async (ssoToken, ssoRegion, init = {}, callerClientConfig) => {
5030
+ const { CreateTokenCommand } = await import("./chunk-m2rg2m7x.js").then((m)=>__toESM(m.default,1));
5031
+ const ssoOidcClient = await getSsoOidcClient(ssoRegion, init, callerClientConfig);
5032
+ return ssoOidcClient.send(new CreateTokenCommand({
5033
+ clientId: ssoToken.clientId,
5034
+ clientSecret: ssoToken.clientSecret,
5035
+ refreshToken: ssoToken.refreshToken,
5036
+ grantType: "refresh_token"
5037
+ }));
5038
+ };
5039
+ var init_getNewSsoOidcToken = __esm(() => {
5040
+ init_getSsoOidcClient();
5041
+ });
5042
+
5043
+ // node_modules/.bun/@aws-sdk+token-providers@3.1029.0/node_modules/@aws-sdk/token-providers/dist-es/validateTokenExpiry.js
5044
+ var import_property_provider2, validateTokenExpiry = (token) => {
5045
+ if (token.expiration && token.expiration.getTime() < Date.now()) {
5046
+ throw new import_property_provider2.TokenProviderError(`Token is expired. ${REFRESH_MESSAGE}`, false);
5047
+ }
5048
+ };
5049
+ var init_validateTokenExpiry = __esm(() => {
5050
+ init_constants4();
5051
+ import_property_provider2 = __toESM(require_dist_cjs7(), 1);
5052
+ });
5053
+
5054
+ // node_modules/.bun/@aws-sdk+token-providers@3.1029.0/node_modules/@aws-sdk/token-providers/dist-es/validateTokenKey.js
5055
+ var import_property_provider3, validateTokenKey = (key, value, forRefresh = false) => {
5056
+ if (typeof value === "undefined") {
5057
+ throw new import_property_provider3.TokenProviderError(`Value not present for '${key}' in SSO Token${forRefresh ? ". Cannot refresh" : ""}. ${REFRESH_MESSAGE}`, false);
5058
+ }
5059
+ };
5060
+ var init_validateTokenKey = __esm(() => {
5061
+ init_constants4();
5062
+ import_property_provider3 = __toESM(require_dist_cjs7(), 1);
5063
+ });
5064
+
5065
+ // node_modules/.bun/@aws-sdk+token-providers@3.1029.0/node_modules/@aws-sdk/token-providers/dist-es/writeSSOTokenToFile.js
5066
+ import { promises as fsPromises } from "fs";
5067
+ var import_shared_ini_file_loader, writeFile, writeSSOTokenToFile = (id, ssoToken) => {
5068
+ const tokenFilepath = import_shared_ini_file_loader.getSSOTokenFilepath(id);
5069
+ const tokenString = JSON.stringify(ssoToken, null, 2);
5070
+ return writeFile(tokenFilepath, tokenString);
5071
+ };
5072
+ var init_writeSSOTokenToFile = __esm(() => {
5073
+ import_shared_ini_file_loader = __toESM(require_dist_cjs21(), 1);
5074
+ ({ writeFile } = fsPromises);
5075
+ });
5076
+
5077
+ // node_modules/.bun/@aws-sdk+token-providers@3.1029.0/node_modules/@aws-sdk/token-providers/dist-es/fromSso.js
5078
+ var import_property_provider4, import_shared_ini_file_loader2, lastRefreshAttemptTime, fromSso = (init = {}) => async ({ callerClientConfig } = {}) => {
5079
+ init.logger?.debug("@aws-sdk/token-providers - fromSso");
5080
+ const profiles = await import_shared_ini_file_loader2.parseKnownFiles(init);
5081
+ const profileName = import_shared_ini_file_loader2.getProfileName({
5082
+ profile: init.profile ?? callerClientConfig?.profile
5083
+ });
5084
+ const profile3 = profiles[profileName];
5085
+ if (!profile3) {
5086
+ throw new import_property_provider4.TokenProviderError(`Profile '${profileName}' could not be found in shared credentials file.`, false);
5087
+ } else if (!profile3["sso_session"]) {
5088
+ throw new import_property_provider4.TokenProviderError(`Profile '${profileName}' is missing required property 'sso_session'.`);
5089
+ }
5090
+ const ssoSessionName = profile3["sso_session"];
5091
+ const ssoSessions = await import_shared_ini_file_loader2.loadSsoSessionData(init);
5092
+ const ssoSession = ssoSessions[ssoSessionName];
5093
+ if (!ssoSession) {
5094
+ throw new import_property_provider4.TokenProviderError(`Sso session '${ssoSessionName}' could not be found in shared credentials file.`, false);
5095
+ }
5096
+ for (const ssoSessionRequiredKey of ["sso_start_url", "sso_region"]) {
5097
+ if (!ssoSession[ssoSessionRequiredKey]) {
5098
+ throw new import_property_provider4.TokenProviderError(`Sso session '${ssoSessionName}' is missing required property '${ssoSessionRequiredKey}'.`, false);
5099
+ }
5100
+ }
5101
+ const ssoStartUrl = ssoSession["sso_start_url"];
5102
+ const ssoRegion = ssoSession["sso_region"];
5103
+ let ssoToken;
5104
+ try {
5105
+ ssoToken = await import_shared_ini_file_loader2.getSSOTokenFromFile(ssoSessionName);
5106
+ } catch (e) {
5107
+ throw new import_property_provider4.TokenProviderError(`The SSO session token associated with profile=${profileName} was not found or is invalid. ${REFRESH_MESSAGE}`, false);
5108
+ }
5109
+ validateTokenKey("accessToken", ssoToken.accessToken);
5110
+ validateTokenKey("expiresAt", ssoToken.expiresAt);
5111
+ const { accessToken, expiresAt } = ssoToken;
5112
+ const existingToken = { token: accessToken, expiration: new Date(expiresAt) };
5113
+ if (existingToken.expiration.getTime() - Date.now() > EXPIRE_WINDOW_MS) {
5114
+ return existingToken;
5115
+ }
5116
+ if (Date.now() - lastRefreshAttemptTime.getTime() < 30 * 1000) {
5117
+ validateTokenExpiry(existingToken);
5118
+ return existingToken;
5119
+ }
5120
+ validateTokenKey("clientId", ssoToken.clientId, true);
5121
+ validateTokenKey("clientSecret", ssoToken.clientSecret, true);
5122
+ validateTokenKey("refreshToken", ssoToken.refreshToken, true);
5123
+ try {
5124
+ lastRefreshAttemptTime.setTime(Date.now());
5125
+ const newSsoOidcToken = await getNewSsoOidcToken(ssoToken, ssoRegion, init, callerClientConfig);
5126
+ validateTokenKey("accessToken", newSsoOidcToken.accessToken);
5127
+ validateTokenKey("expiresIn", newSsoOidcToken.expiresIn);
5128
+ const newTokenExpiration = new Date(Date.now() + newSsoOidcToken.expiresIn * 1000);
5129
+ try {
5130
+ await writeSSOTokenToFile(ssoSessionName, {
5131
+ ...ssoToken,
5132
+ accessToken: newSsoOidcToken.accessToken,
5133
+ expiresAt: newTokenExpiration.toISOString(),
5134
+ refreshToken: newSsoOidcToken.refreshToken
5135
+ });
5136
+ } catch (error) {}
5137
+ return {
5138
+ token: newSsoOidcToken.accessToken,
5139
+ expiration: newTokenExpiration
5140
+ };
5141
+ } catch (error) {
5142
+ validateTokenExpiry(existingToken);
5143
+ return existingToken;
5144
+ }
5145
+ };
5146
+ var init_fromSso = __esm(() => {
5147
+ init_constants4();
5148
+ init_getNewSsoOidcToken();
5149
+ init_validateTokenExpiry();
5150
+ init_validateTokenKey();
5151
+ init_writeSSOTokenToFile();
5152
+ import_property_provider4 = __toESM(require_dist_cjs7(), 1);
5153
+ import_shared_ini_file_loader2 = __toESM(require_dist_cjs21(), 1);
5154
+ lastRefreshAttemptTime = new Date(0);
5155
+ });
5156
+
5157
+ // node_modules/.bun/@aws-sdk+token-providers@3.1029.0/node_modules/@aws-sdk/token-providers/dist-es/fromStatic.js
5158
+ var init_fromStatic = () => {};
5159
+
5160
+ // node_modules/.bun/@aws-sdk+token-providers@3.1029.0/node_modules/@aws-sdk/token-providers/dist-es/nodeProvider.js
5161
+ var import_property_provider5, nodeProvider = (init = {}) => import_property_provider5.memoize(import_property_provider5.chain(fromSso(init), async () => {
5162
+ throw new import_property_provider5.TokenProviderError("Could not load token from any providers", false);
5163
+ }), (token) => token.expiration !== undefined && token.expiration.getTime() - Date.now() < 300000, (token) => token.expiration !== undefined);
5164
+ var init_nodeProvider = __esm(() => {
5165
+ init_fromSso();
5166
+ import_property_provider5 = __toESM(require_dist_cjs7(), 1);
5167
+ });
5168
+
5169
+ // node_modules/.bun/@aws-sdk+token-providers@3.1029.0/node_modules/@aws-sdk/token-providers/dist-es/index.js
5170
+ var init_dist_es31 = __esm(() => {
5171
+ init_fromEnvSigningName();
5172
+ init_fromSso();
5173
+ init_fromStatic();
5174
+ init_nodeProvider();
5175
+ });
5176
+
5177
+ // node_modules/.bun/@smithy+eventstream-serde-node@4.2.13/node_modules/@smithy/eventstream-serde-node/dist-es/utils.js
5178
+ async function* readabletoIterable2(readStream) {
5179
+ let streamEnded = false;
5180
+ let generationEnded = false;
5181
+ const records = new Array;
5182
+ readStream.on("error", (err) => {
5183
+ if (!streamEnded) {
5184
+ streamEnded = true;
5185
+ }
5186
+ if (err) {
5187
+ throw err;
5188
+ }
5189
+ });
5190
+ readStream.on("data", (data) => {
5191
+ records.push(data);
5192
+ });
5193
+ readStream.on("end", () => {
5194
+ streamEnded = true;
5195
+ });
5196
+ while (!generationEnded) {
5197
+ const value = await new Promise((resolve) => setTimeout(() => resolve(records.shift()), 0));
5198
+ if (value) {
5199
+ yield value;
5200
+ }
5201
+ generationEnded = streamEnded && records.length === 0;
5202
+ }
5203
+ }
5204
+ var init_utils3 = () => {};
5205
+
5206
+ // node_modules/.bun/@smithy+eventstream-serde-node@4.2.13/node_modules/@smithy/eventstream-serde-node/dist-es/EventStreamMarshaller.js
5207
+ import { Readable as Readable3 } from "stream";
5208
+
5209
+ class EventStreamMarshaller7 {
5210
+ universalMarshaller;
5211
+ constructor({ utf8Encoder, utf8Decoder }) {
5212
+ this.universalMarshaller = new EventStreamMarshaller5({
5213
+ utf8Decoder,
5214
+ utf8Encoder
5215
+ });
5216
+ }
5217
+ deserialize(body, deserializer) {
5218
+ const bodyIterable = typeof body[Symbol.asyncIterator] === "function" ? body : readabletoIterable2(body);
5219
+ return this.universalMarshaller.deserialize(bodyIterable, deserializer);
5220
+ }
5221
+ serialize(input, serializer) {
5222
+ return Readable3.from(this.universalMarshaller.serialize(input, serializer));
5223
+ }
5224
+ }
5225
+ var init_EventStreamMarshaller4 = __esm(() => {
5226
+ init_dist_es27();
5227
+ init_utils3();
5228
+ });
5229
+
5230
+ // node_modules/.bun/@smithy+eventstream-serde-node@4.2.13/node_modules/@smithy/eventstream-serde-node/dist-es/provider.js
5231
+ var eventStreamSerdeProvider = (options) => new EventStreamMarshaller7(options);
5232
+ var init_provider4 = __esm(() => {
5233
+ init_EventStreamMarshaller4();
5234
+ });
5235
+
5236
+ // node_modules/.bun/@smithy+eventstream-serde-node@4.2.13/node_modules/@smithy/eventstream-serde-node/dist-es/index.js
5237
+ var init_dist_es32 = __esm(() => {
5238
+ init_EventStreamMarshaller4();
5239
+ init_provider4();
5240
+ });
5241
+
5242
+ // node_modules/.bun/@aws-sdk+client-bedrock-runtime@3.1029.0/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/endpoint/ruleset.js
5243
+ var s = "required", t = "fn", u = "argv", v = "ref", a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h, i, j, k, l, m, n, o, p, q, r, _data, ruleSet;
5244
+ var init_ruleset = __esm(() => {
5245
+ h = { [s]: false, type: "string" };
5246
+ i = { [s]: true, default: false, type: "boolean" };
5247
+ j = { [v]: "Endpoint" };
5248
+ k = { [t]: c, [u]: [{ [v]: "UseFIPS" }, true] };
5249
+ l = { [t]: c, [u]: [{ [v]: "UseDualStack" }, true] };
5250
+ m = {};
5251
+ n = { [t]: "getAttr", [u]: [{ [v]: g }, "supportsFIPS"] };
5252
+ o = { [t]: c, [u]: [true, { [t]: "getAttr", [u]: [{ [v]: g }, "supportsDualStack"] }] };
5253
+ p = [k];
5254
+ q = [l];
5255
+ r = [{ [v]: "Region" }];
5256
+ _data = { version: "1.0", parameters: { Region: h, UseDualStack: i, UseFIPS: i, Endpoint: h }, rules: [{ conditions: [{ [t]: b, [u]: [j] }], rules: [{ conditions: p, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { rules: [{ conditions: q, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d }, { endpoint: { url: j, properties: m, headers: m }, type: e }], type: f }], type: f }, { rules: [{ conditions: [{ [t]: b, [u]: r }], rules: [{ conditions: [{ [t]: "aws.partition", [u]: r, assign: g }], rules: [{ conditions: [k, l], rules: [{ conditions: [{ [t]: c, [u]: [a, n] }, o], rules: [{ rules: [{ endpoint: { url: "https://bedrock-runtime-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: e }], type: f }], type: f }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d }], type: f }, { conditions: p, rules: [{ conditions: [{ [t]: c, [u]: [n, a] }], rules: [{ rules: [{ endpoint: { url: "https://bedrock-runtime-fips.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: e }], type: f }], type: f }, { error: "FIPS is enabled but this partition does not support FIPS", type: d }], type: f }, { conditions: q, rules: [{ conditions: [o], rules: [{ rules: [{ endpoint: { url: "https://bedrock-runtime.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: e }], type: f }], type: f }, { error: "DualStack is enabled but this partition does not support DualStack", type: d }], type: f }, { rules: [{ endpoint: { url: "https://bedrock-runtime.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: e }], type: f }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }], type: f }] };
5257
+ ruleSet = _data;
5258
+ });
5259
+
5260
+ // node_modules/.bun/@aws-sdk+client-bedrock-runtime@3.1029.0/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/endpoint/endpointResolver.js
5261
+ var import_util_endpoints, import_util_endpoints2, cache, defaultEndpointResolver = (endpointParams, context = {}) => {
5262
+ return cache.get(endpointParams, () => import_util_endpoints2.resolveEndpoint(ruleSet, {
5263
+ endpointParams,
5264
+ logger: context.logger
5265
+ }));
5266
+ };
5267
+ var init_endpointResolver = __esm(() => {
5268
+ init_ruleset();
5269
+ import_util_endpoints = __toESM(require_dist_cjs16(), 1);
5270
+ import_util_endpoints2 = __toESM(require_dist_cjs15(), 1);
5271
+ cache = new import_util_endpoints2.EndpointCache({
5272
+ size: 50,
5273
+ params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"]
5274
+ });
5275
+ import_util_endpoints2.customEndpointFunctions.aws = import_util_endpoints.awsEndpointFunctions;
5276
+ });
5277
+
5278
+ // node_modules/.bun/@aws-sdk+client-bedrock-runtime@3.1029.0/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/models/BedrockRuntimeServiceException.js
5279
+ var import_smithy_client, BedrockRuntimeServiceException;
5280
+ var init_BedrockRuntimeServiceException = __esm(() => {
5281
+ import_smithy_client = __toESM(require_dist_cjs24(), 1);
5282
+ BedrockRuntimeServiceException = class BedrockRuntimeServiceException extends import_smithy_client.ServiceException {
5283
+ constructor(options) {
5284
+ super(options);
5285
+ Object.setPrototypeOf(this, BedrockRuntimeServiceException.prototype);
5286
+ }
5287
+ };
5288
+ });
5289
+
5290
+ // node_modules/.bun/@aws-sdk+client-bedrock-runtime@3.1029.0/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/models/errors.js
5291
+ var AccessDeniedException, InternalServerException, ThrottlingException, ValidationException, ConflictException, ResourceNotFoundException, ServiceQuotaExceededException, ServiceUnavailableException, ModelErrorException, ModelNotReadyException, ModelTimeoutException, ModelStreamErrorException;
5292
+ var init_errors = __esm(() => {
5293
+ init_BedrockRuntimeServiceException();
5294
+ AccessDeniedException = class AccessDeniedException extends BedrockRuntimeServiceException {
5295
+ name = "AccessDeniedException";
5296
+ $fault = "client";
5297
+ constructor(opts) {
5298
+ super({
5299
+ name: "AccessDeniedException",
5300
+ $fault: "client",
5301
+ ...opts
5302
+ });
5303
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
5304
+ }
5305
+ };
5306
+ InternalServerException = class InternalServerException extends BedrockRuntimeServiceException {
5307
+ name = "InternalServerException";
5308
+ $fault = "server";
5309
+ constructor(opts) {
5310
+ super({
5311
+ name: "InternalServerException",
5312
+ $fault: "server",
5313
+ ...opts
5314
+ });
5315
+ Object.setPrototypeOf(this, InternalServerException.prototype);
5316
+ }
5317
+ };
5318
+ ThrottlingException = class ThrottlingException extends BedrockRuntimeServiceException {
5319
+ name = "ThrottlingException";
5320
+ $fault = "client";
5321
+ constructor(opts) {
5322
+ super({
5323
+ name: "ThrottlingException",
5324
+ $fault: "client",
5325
+ ...opts
5326
+ });
5327
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
5328
+ }
5329
+ };
5330
+ ValidationException = class ValidationException extends BedrockRuntimeServiceException {
5331
+ name = "ValidationException";
5332
+ $fault = "client";
5333
+ constructor(opts) {
5334
+ super({
5335
+ name: "ValidationException",
5336
+ $fault: "client",
5337
+ ...opts
5338
+ });
5339
+ Object.setPrototypeOf(this, ValidationException.prototype);
5340
+ }
5341
+ };
5342
+ ConflictException = class ConflictException extends BedrockRuntimeServiceException {
5343
+ name = "ConflictException";
5344
+ $fault = "client";
5345
+ constructor(opts) {
5346
+ super({
5347
+ name: "ConflictException",
5348
+ $fault: "client",
5349
+ ...opts
5350
+ });
5351
+ Object.setPrototypeOf(this, ConflictException.prototype);
5352
+ }
5353
+ };
5354
+ ResourceNotFoundException = class ResourceNotFoundException extends BedrockRuntimeServiceException {
5355
+ name = "ResourceNotFoundException";
5356
+ $fault = "client";
5357
+ constructor(opts) {
5358
+ super({
5359
+ name: "ResourceNotFoundException",
5360
+ $fault: "client",
5361
+ ...opts
5362
+ });
5363
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
5364
+ }
5365
+ };
5366
+ ServiceQuotaExceededException = class ServiceQuotaExceededException extends BedrockRuntimeServiceException {
5367
+ name = "ServiceQuotaExceededException";
5368
+ $fault = "client";
5369
+ constructor(opts) {
5370
+ super({
5371
+ name: "ServiceQuotaExceededException",
5372
+ $fault: "client",
5373
+ ...opts
5374
+ });
5375
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
5376
+ }
5377
+ };
5378
+ ServiceUnavailableException = class ServiceUnavailableException extends BedrockRuntimeServiceException {
5379
+ name = "ServiceUnavailableException";
5380
+ $fault = "server";
5381
+ constructor(opts) {
5382
+ super({
5383
+ name: "ServiceUnavailableException",
5384
+ $fault: "server",
5385
+ ...opts
5386
+ });
5387
+ Object.setPrototypeOf(this, ServiceUnavailableException.prototype);
5388
+ }
5389
+ };
5390
+ ModelErrorException = class ModelErrorException extends BedrockRuntimeServiceException {
5391
+ name = "ModelErrorException";
5392
+ $fault = "client";
5393
+ originalStatusCode;
5394
+ resourceName;
5395
+ constructor(opts) {
5396
+ super({
5397
+ name: "ModelErrorException",
5398
+ $fault: "client",
5399
+ ...opts
5400
+ });
5401
+ Object.setPrototypeOf(this, ModelErrorException.prototype);
5402
+ this.originalStatusCode = opts.originalStatusCode;
5403
+ this.resourceName = opts.resourceName;
5404
+ }
5405
+ };
5406
+ ModelNotReadyException = class ModelNotReadyException extends BedrockRuntimeServiceException {
5407
+ name = "ModelNotReadyException";
5408
+ $fault = "client";
5409
+ $retryable = {};
5410
+ constructor(opts) {
5411
+ super({
5412
+ name: "ModelNotReadyException",
5413
+ $fault: "client",
5414
+ ...opts
5415
+ });
5416
+ Object.setPrototypeOf(this, ModelNotReadyException.prototype);
5417
+ }
5418
+ };
5419
+ ModelTimeoutException = class ModelTimeoutException extends BedrockRuntimeServiceException {
5420
+ name = "ModelTimeoutException";
5421
+ $fault = "client";
5422
+ constructor(opts) {
5423
+ super({
5424
+ name: "ModelTimeoutException",
5425
+ $fault: "client",
5426
+ ...opts
5427
+ });
5428
+ Object.setPrototypeOf(this, ModelTimeoutException.prototype);
5429
+ }
5430
+ };
5431
+ ModelStreamErrorException = class ModelStreamErrorException extends BedrockRuntimeServiceException {
5432
+ name = "ModelStreamErrorException";
5433
+ $fault = "client";
5434
+ originalStatusCode;
5435
+ originalMessage;
5436
+ constructor(opts) {
5437
+ super({
5438
+ name: "ModelStreamErrorException",
5439
+ $fault: "client",
5440
+ ...opts
5441
+ });
5442
+ Object.setPrototypeOf(this, ModelStreamErrorException.prototype);
5443
+ this.originalStatusCode = opts.originalStatusCode;
5444
+ this.originalMessage = opts.originalMessage;
5445
+ }
5446
+ };
5447
+ });
5448
+
5449
+ // node_modules/.bun/@aws-sdk+client-bedrock-runtime@3.1029.0/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/schemas/schemas_0.js
5450
+ var import_schema, _A = "Accept", _AB = "AudioBlock", _ADE = "AccessDeniedException", _AG = "ApplyGuardrail", _AGD = "AppliedGuardrailDetails", _AGR = "ApplyGuardrailRequest", _AGRp = "ApplyGuardrailResponse", _AIM = "AsyncInvokeMessage", _AIODC = "AsyncInvokeOutputDataConfig", _AIS = "AsyncInvokeSummary", _AISODC = "AsyncInvokeS3OutputDataConfig", _AISs = "AsyncInvokeSummaries", _AS = "AudioSource", _ATC = "AnyToolChoice", _ATCu = "AutoToolChoice", _B = "Body", _BIPP = "BidirectionalInputPayloadPart", _BOPP = "BidirectionalOutputPayloadPart", _C = "Citation", _CB = "ContentBlocks", _CBD = "ContentBlockDelta", _CBDE = "ContentBlockDeltaEvent", _CBS = "ContentBlockStart", _CBSE = "ContentBlockStartEvent", _CBSEo = "ContentBlockStopEvent", _CBo = "ContentBlock", _CC = "CitationsConfig", _CCB = "CitationsContentBlock", _CD = "CacheDetail", _CDL = "CacheDetailsList", _CDi = "CitationsDelta", _CE = "ConflictException", _CGC = "CitationGeneratedContent", _CGCL = "CitationGeneratedContentList", _CL = "CitationLocation", _CM = "ConverseMetrics", _CO = "ConverseOutput", _CPB = "CachePointBlock", _CR = "ConverseRequest", _CRo = "ConverseResponse", _CS = "ConverseStream", _CSC = "CitationSourceContent", _CSCD = "CitationSourceContentDelta", _CSCL = "CitationSourceContentList", _CSCLD = "CitationSourceContentListDelta", _CSM = "ConverseStreamMetrics", _CSME = "ConverseStreamMetadataEvent", _CSO = "ConverseStreamOutput", _CSR = "ConverseStreamRequest", _CSRo = "ConverseStreamResponse", _CST = "ConverseStreamTrace", _CT = "ConverseTrace", _CTI = "CountTokensInput", _CTR = "ConverseTokensRequest", _CTRo = "CountTokensRequest", _CTRou = "CountTokensResponse", _CT_ = "Content-Type", _CTo = "CountTokens", _Ci = "Citations", _Co = "Converse", _DB = "DocumentBlock", _DCB = "DocumentContentBlocks", _DCBo = "DocumentContentBlock", _DCL = "DocumentCharLocation", _DCLo = "DocumentChunkLocation", _DPL = "DocumentPageLocation", _DS = "DocumentSource", _EB = "ErrorBlock", _GA = "GuardrailAssessment", _GAI = "GetAsyncInvoke", _GAIR = "GetAsyncInvokeRequest", _GAIRe = "GetAsyncInvokeResponse", _GAL = "GuardrailAssessmentList", _GALM = "GuardrailAssessmentListMap", _GAM = "GuardrailAssessmentMap", _GARDSL = "GuardrailAutomatedReasoningDifferenceScenarioList", _GARF = "GuardrailAutomatedReasoningFinding", _GARFL = "GuardrailAutomatedReasoningFindingList", _GARIF = "GuardrailAutomatedReasoningImpossibleFinding", _GARIFu = "GuardrailAutomatedReasoningInvalidFinding", _GARITR = "GuardrailAutomatedReasoningInputTextReference", _GARITRL = "GuardrailAutomatedReasoningInputTextReferenceList", _GARLW = "GuardrailAutomatedReasoningLogicWarning", _GARNTF = "GuardrailAutomatedReasoningNoTranslationsFinding", _GARPA = "GuardrailAutomatedReasoningPolicyAssessment", _GARR = "GuardrailAutomatedReasoningRule", _GARRL = "GuardrailAutomatedReasoningRuleList", _GARS = "GuardrailAutomatedReasoningScenario", _GARSF = "GuardrailAutomatedReasoningSatisfiableFinding", _GARSL = "GuardrailAutomatedReasoningStatementList", _GARSLC = "GuardrailAutomatedReasoningStatementLogicContent", _GARSNLC = "GuardrailAutomatedReasoningStatementNaturalLanguageContent", _GARSu = "GuardrailAutomatedReasoningStatement", _GART = "GuardrailAutomatedReasoningTranslation", _GARTAF = "GuardrailAutomatedReasoningTranslationAmbiguousFinding", _GARTCF = "GuardrailAutomatedReasoningTooComplexFinding", _GARTL = "GuardrailAutomatedReasoningTranslationList", _GARTO = "GuardrailAutomatedReasoningTranslationOption", _GARTOL = "GuardrailAutomatedReasoningTranslationOptionList", _GARVF = "GuardrailAutomatedReasoningValidFinding", _GC = "GuardrailConfiguration", _GCB = "GuardrailContentBlock", _GCBL = "GuardrailContentBlockList", _GCCB = "GuardrailConverseContentBlock", _GCF = "GuardrailContentFilter", _GCFL = "GuardrailContentFilterList", _GCGF = "GuardrailContextualGroundingFilter", _GCGFu = "GuardrailContextualGroundingFilters", _GCGPA = "GuardrailContextualGroundingPolicyAssessment", _GCIB = "GuardrailConverseImageBlock", _GCIS = "GuardrailConverseImageSource", _GCPA = "GuardrailContentPolicyAssessment", _GCTB = "GuardrailConverseTextBlock", _GCW = "GuardrailCustomWord", _GCWL = "GuardrailCustomWordList", _GCu = "GuardrailCoverage", _GIB = "GuardrailImageBlock", _GIC = "GuardrailImageCoverage", _GIM = "GuardrailInvocationMetrics", _GIS = "GuardrailImageSource", _GMW = "GuardrailManagedWord", _GMWL = "GuardrailManagedWordList", _GOC = "GuardrailOutputContent", _GOCL = "GuardrailOutputContentList", _GPEF = "GuardrailPiiEntityFilter", _GPEFL = "GuardrailPiiEntityFilterList", _GRF = "GuardrailRegexFilter", _GRFL = "GuardrailRegexFilterList", _GSC = "GuardrailStreamConfiguration", _GSIPA = "GuardrailSensitiveInformationPolicyAssessment", _GT = "GuardrailTopic", _GTA = "GuardrailTraceAssessment", _GTB = "GuardrailTextBlock", _GTCC = "GuardrailTextCharactersCoverage", _GTL = "GuardrailTopicList", _GTPA = "GuardrailTopicPolicyAssessment", _GU = "GuardrailUsage", _GWPA = "GuardrailWordPolicyAssessment", _IB = "ImageBlock", _IBD = "ImageBlockDelta", _IBS = "ImageBlockStart", _IC = "InferenceConfiguration", _IM = "InvokeModel", _IMR = "InvokeModelRequest", _IMRn = "InvokeModelResponse", _IMTR = "InvokeModelTokensRequest", _IMWBS = "InvokeModelWithBidirectionalStream", _IMWBSI = "InvokeModelWithBidirectionalStreamInput", _IMWBSO = "InvokeModelWithBidirectionalStreamOutput", _IMWBSR = "InvokeModelWithBidirectionalStreamRequest", _IMWBSRn = "InvokeModelWithBidirectionalStreamResponse", _IMWRS = "InvokeModelWithResponseStream", _IMWRSR = "InvokeModelWithResponseStreamRequest", _IMWRSRn = "InvokeModelWithResponseStreamResponse", _IS = "ImageSource", _ISE = "InternalServerException", _JSD = "JsonSchemaDefinition", _LAI = "ListAsyncInvokes", _LAIR = "ListAsyncInvokesRequest", _LAIRi = "ListAsyncInvokesResponse", _M = "Message", _MEE = "ModelErrorException", _MIP = "ModelInputPayload", _MNRE = "ModelNotReadyException", _MSE = "MessageStartEvent", _MSEE = "ModelStreamErrorException", _MSEe = "MessageStopEvent", _MTE = "ModelTimeoutException", _Me = "Messages", _OC = "OutputConfig", _OF = "OutputFormat", _OFS = "OutputFormatStructure", _PB = "PartBody", _PC = "PerformanceConfiguration", _PP = "PayloadPart", _PRT = "PromptRouterTrace", _PVM = "PromptVariableMap", _PVV = "PromptVariableValues", _RCB = "ReasoningContentBlock", _RCBD = "ReasoningContentBlockDelta", _RM = "RequestMetadata", _RNFE = "ResourceNotFoundException", _RS = "ResponseStream", _RTB = "ReasoningTextBlock", _SAI = "StartAsyncInvoke", _SAIR = "StartAsyncInvokeRequest", _SAIRt = "StartAsyncInvokeResponse", _SCB = "SystemContentBlocks", _SCBy = "SystemContentBlock", _SL = "S3Location", _SQEE = "ServiceQuotaExceededException", _SRB = "SearchResultBlock", _SRCB = "SearchResultContentBlock", _SRCBe = "SearchResultContentBlocks", _SRL = "SearchResultLocation", _ST = "ServiceTier", _STC = "SpecificToolChoice", _STy = "SystemTool", _SUE = "ServiceUnavailableException", _T = "Tag", _TC = "ToolConfiguration", _TCo = "ToolChoice", _TE = "ThrottlingException", _TIS = "ToolInputSchema", _TL = "TagList", _TRB = "ToolResultBlock", _TRBD = "ToolResultBlocksDelta", _TRBDo = "ToolResultBlockDelta", _TRBS = "ToolResultBlockStart", _TRCB = "ToolResultContentBlocks", _TRCBo = "ToolResultContentBlock", _TS = "ToolSpecification", _TU = "TokenUsage", _TUB = "ToolUseBlock", _TUBD = "ToolUseBlockDelta", _TUBS = "ToolUseBlockStart", _To = "Tools", _Too = "Tool", _VB = "VideoBlock", _VE = "ValidationException", _VS = "VideoSource", _WL = "WebLocation", _XABA = "X-Amzn-Bedrock-Accept", _XABCT = "X-Amzn-Bedrock-Content-Type", _XABG = "X-Amzn-Bedrock-GuardrailIdentifier", _XABG_ = "X-Amzn-Bedrock-GuardrailVersion", _XABPL = "X-Amzn-Bedrock-PerformanceConfig-Latency", _XABST = "X-Amzn-Bedrock-Service-Tier", _XABT = "X-Amzn-Bedrock-Trace", _a = "action", _aGD = "appliedGuardrailDetails", _aIS = "asyncInvokeSummaries", _aMRF = "additionalModelRequestFields", _aMRFP = "additionalModelResponseFieldPaths", _aMRFd = "additionalModelResponseFields", _aR = "actionReason", _aRP = "automatedReasoningPolicy", _aRPU = "automatedReasoningPolicyUnits", _aRPu = "automatedReasoningPolicies", _ac = "accept", _an = "any", _as = "assessments", _au = "audio", _aut = "auto", _b = "bytes", _bO = "bucketOwner", _bo = "body", _c = "client", _cBD = "contentBlockDelta", _cBI = "contentBlockIndex", _cBS = "contentBlockStart", _cBSo = "contentBlockStop", _cC = "citationsContent", _cD = "cacheDetails", _cFS = "claimsFalseScenario", _cGP = "contextualGroundingPolicy", _cGPU = "contextualGroundingPolicyUnits", _cP = "contentPolicy", _cPIU = "contentPolicyImageUnits", _cPU = "contentPolicyUnits", _cPa = "cachePoint", _cR = "contradictingRules", _cRIT = "cacheReadInputTokens", _cRT = "clientRequestToken", _cT = "contentType", _cTS = "claimsTrueScenario", _cW = "customWords", _cWIT = "cacheWriteInputTokens", _ch = "chunk", _ci = "citations", _cit = "citation", _cl = "claims", _co = "content", _con = "context", _conf = "confidence", _conv = "converse", _d = "delta", _dC = "documentChar", _dCo = "documentChunk", _dI = "documentIndex", _dP = "documentPage", _dS = "differenceScenarios", _de = "detected", _des = "description", _do = "domain", _doc = "document", _e = "error", _eT = "endTime", _en = "enabled", _end = "end", _f = "format", _fM = "failureMessage", _fS = "filterStrength", _fi = "findings", _fil = "filters", _g = "guardrail", _gA = "guardrailArn", _gC = "guardrailCoverage", _gCu = "guardrailConfig", _gCua = "guardContent", _gI = "guardrailId", _gIu = "guardrailIdentifier", _gO = "guardrailOrigin", _gOu = "guardrailOwnership", _gPL = "guardrailProcessingLatency", _gV = "guardrailVersion", _gu = "guarded", _h = "http", _hE = "httpError", _hH = "httpHeader", _hQ = "httpQuery", _i = "input", _iA = "invocationArn", _iAn = "inputAssessment", _iC = "inferenceConfig", _iM = "invocationMetrics", _iMI = "invokedModelId", _iMn = "invokeModel", _iS = "inputSchema", _iSE = "internalServerException", _iT = "inputTokens", _id = "identifier", _im = "images", _ima = "image", _imp = "impossible", _in = "invalid", _j = "json", _jS = "jsonSchema", _k = "key", _kKI = "kmsKeyId", _l = "location", _lM = "latencyMs", _lMT = "lastModifiedTime", _lW = "logicWarning", _la = "latency", _lo = "logic", _m = "message", _mA = "modelArn", _mI = "modelId", _mIo = "modelInput", _mO = "modelOutput", _mR = "maxResults", _mS = "messageStart", _mSEE = "modelStreamErrorException", _mSe = "messageStop", _mT = "maxTokens", _mTE = "modelTimeoutException", _mWL = "managedWordLists", _ma = "match", _me = "messages", _met = "metrics", _meta = "metadata", _n = "name", _nL = "naturalLanguage", _nT = "nextToken", _nTo = "noTranslations", _o = "outputs", _oA = "outputAssessments", _oC = "outputConfig", _oDC = "outputDataConfig", _oM = "originalMessage", _oS = "outputScope", _oSC = "originalStatusCode", _oT = "outputTokens", _op = "options", _ou = "output", _p = "premises", _pC = "performanceConfig", _pCL = "performanceConfigLatency", _pE = "piiEntities", _pR = "promptRouter", _pV = "promptVariables", _pVA = "policyVersionArn", _q = "qualifiers", _r = "regex", _rC = "reasoningContent", _rCe = "redactedContent", _rM = "requestMetadata", _rN = "resourceName", _rT = "reasoningText", _re = "regexes", _ro = "role", _s = "smithy.ts.sdk.synthetic.com.amazonaws.bedrockruntime", _sB = "sortBy", _sC = "sourceContent", _sE = "statusEquals", _sIP = "sensitiveInformationPolicy", _sIPFU = "sensitiveInformationPolicyFreeUnits", _sIPU = "sensitiveInformationPolicyUnits", _sL = "s3Location", _sO = "sortOrder", _sODC = "s3OutputDataConfig", _sPM = "streamProcessingMode", _sR = "stopReason", _sRI = "searchResultIndex", _sRL = "searchResultLocation", _sRe = "searchResult", _sRu = "supportingRules", _sS = "stopSequences", _sT = "submitTime", _sTA = "submitTimeAfter", _sTB = "submitTimeBefore", _sTe = "serviceTier", _sTy = "systemTool", _sU = "s3Uri", _sUE = "serviceUnavailableException", _sa = "satisfiable", _sc = "score", _sch = "schema", _se = "server", _si = "signature", _so = "source", _st = "status", _sta = "start", _stat = "statements", _str = "stream", _stre = "streaming", _stri = "strict", _stru = "structure", _sy = "system", _t = "ttl", _tA = "translationAmbiguous", _tC = "toolConfig", _tCe = "textCharacters", _tCo = "toolChoice", _tCoo = "tooComplex", _tE = "throttlingException", _tF = "textFormat", _tP = "topicPolicy", _tPU = "topicPolicyUnits", _tPo = "topP", _tR = "toolResult", _tS = "toolSpec", _tT = "totalTokens", _tU = "toolUse", _tUI = "toolUseId", _ta = "tags", _te = "text", _tem = "temperature", _th = "threshold", _ti = "title", _to = "total", _too = "tools", _tool = "tool", _top = "topics", _tr = "trace", _tra = "translation", _tran = "translations", _ty = "type", _u = "usage", _uC = "untranslatedClaims", _uP = "untranslatedPremises", _ur = "uri", _url = "url", _v = "value", _vE = "validationException", _va = "valid", _vi = "video", _w = "web", _wP = "wordPolicy", _wPU = "wordPolicyUnits", n0 = "com.amazonaws.bedrockruntime", _s_registry, BedrockRuntimeServiceException$, n0_registry, AccessDeniedException$, ConflictException$, InternalServerException$, ModelErrorException$, ModelNotReadyException$, ModelStreamErrorException$, ModelTimeoutException$, ResourceNotFoundException$, ServiceQuotaExceededException$, ServiceUnavailableException$, ThrottlingException$, ValidationException$, errorTypeRegistries, AsyncInvokeMessage, Body, GuardrailAutomatedReasoningStatementLogicContent, GuardrailAutomatedReasoningStatementNaturalLanguageContent, ModelInputPayload, PartBody, AnyToolChoice$, AppliedGuardrailDetails$, ApplyGuardrailRequest$, ApplyGuardrailResponse$, AsyncInvokeS3OutputDataConfig$, AsyncInvokeSummary$, AudioBlock$, AutoToolChoice$, BidirectionalInputPayloadPart$, BidirectionalOutputPayloadPart$, CacheDetail$, CachePointBlock$, Citation$, CitationsConfig$, CitationsContentBlock$, CitationsDelta$, CitationSourceContentDelta$, ContentBlockDeltaEvent$, ContentBlockStartEvent$, ContentBlockStopEvent$, ConverseMetrics$, ConverseRequest$, ConverseResponse$, ConverseStreamMetadataEvent$, ConverseStreamMetrics$, ConverseStreamRequest$, ConverseStreamResponse$, ConverseStreamTrace$, ConverseTokensRequest$, ConverseTrace$, CountTokensRequest$, CountTokensResponse$, DocumentBlock$, DocumentCharLocation$, DocumentChunkLocation$, DocumentPageLocation$, ErrorBlock$, GetAsyncInvokeRequest$, GetAsyncInvokeResponse$, GuardrailAssessment$, GuardrailAutomatedReasoningImpossibleFinding$, GuardrailAutomatedReasoningInputTextReference$, GuardrailAutomatedReasoningInvalidFinding$, GuardrailAutomatedReasoningLogicWarning$, GuardrailAutomatedReasoningNoTranslationsFinding$, GuardrailAutomatedReasoningPolicyAssessment$, GuardrailAutomatedReasoningRule$, GuardrailAutomatedReasoningSatisfiableFinding$, GuardrailAutomatedReasoningScenario$, GuardrailAutomatedReasoningStatement$, GuardrailAutomatedReasoningTooComplexFinding$, GuardrailAutomatedReasoningTranslation$, GuardrailAutomatedReasoningTranslationAmbiguousFinding$, GuardrailAutomatedReasoningTranslationOption$, GuardrailAutomatedReasoningValidFinding$, GuardrailConfiguration$, GuardrailContentFilter$, GuardrailContentPolicyAssessment$, GuardrailContextualGroundingFilter$, GuardrailContextualGroundingPolicyAssessment$, GuardrailConverseImageBlock$, GuardrailConverseTextBlock$, GuardrailCoverage$, GuardrailCustomWord$, GuardrailImageBlock$, GuardrailImageCoverage$, GuardrailInvocationMetrics$, GuardrailManagedWord$, GuardrailOutputContent$, GuardrailPiiEntityFilter$, GuardrailRegexFilter$, GuardrailSensitiveInformationPolicyAssessment$, GuardrailStreamConfiguration$, GuardrailTextBlock$, GuardrailTextCharactersCoverage$, GuardrailTopic$, GuardrailTopicPolicyAssessment$, GuardrailTraceAssessment$, GuardrailUsage$, GuardrailWordPolicyAssessment$, ImageBlock$, ImageBlockDelta$, ImageBlockStart$, InferenceConfiguration$, InvokeModelRequest$, InvokeModelResponse$, InvokeModelTokensRequest$, InvokeModelWithBidirectionalStreamRequest$, InvokeModelWithBidirectionalStreamResponse$, InvokeModelWithResponseStreamRequest$, InvokeModelWithResponseStreamResponse$, JsonSchemaDefinition$, ListAsyncInvokesRequest$, ListAsyncInvokesResponse$, Message$, MessageStartEvent$, MessageStopEvent$, OutputConfig$, OutputFormat$, PayloadPart$, PerformanceConfiguration$, PromptRouterTrace$, ReasoningTextBlock$, S3Location$, SearchResultBlock$, SearchResultContentBlock$, SearchResultLocation$, ServiceTier$, SpecificToolChoice$, StartAsyncInvokeRequest$, StartAsyncInvokeResponse$, SystemTool$, Tag$, TokenUsage$, ToolConfiguration$, ToolResultBlock$, ToolResultBlockStart$, ToolSpecification$, ToolUseBlock$, ToolUseBlockDelta$, ToolUseBlockStart$, VideoBlock$, WebLocation$, AdditionalModelResponseFieldPaths, AsyncInvokeSummaries, CacheDetailsList, CitationGeneratedContentList, Citations, CitationSourceContentList, CitationSourceContentListDelta, ContentBlocks, DocumentContentBlocks, GuardrailAssessmentList, GuardrailAutomatedReasoningDifferenceScenarioList, GuardrailAutomatedReasoningFindingList, GuardrailAutomatedReasoningInputTextReferenceList, GuardrailAutomatedReasoningRuleList, GuardrailAutomatedReasoningStatementList, GuardrailAutomatedReasoningTranslationList, GuardrailAutomatedReasoningTranslationOptionList, GuardrailContentBlockList, GuardrailContentFilterList, GuardrailContentQualifierList, GuardrailContextualGroundingFilters, GuardrailConverseContentQualifierList, GuardrailCustomWordList, GuardrailManagedWordList, GuardrailOriginList, GuardrailOutputContentList, GuardrailPiiEntityFilterList, GuardrailRegexFilterList, GuardrailTopicList, Messages2, ModelOutputs, NonEmptyStringList, SearchResultContentBlocks, SystemContentBlocks, TagList, ToolResultBlocksDelta, ToolResultContentBlocks, Tools, GuardrailAssessmentListMap, GuardrailAssessmentMap, PromptVariableMap, RequestMetadata, AsyncInvokeOutputDataConfig$, AudioSource$, CitationGeneratedContent$, CitationLocation$, CitationSourceContent$, ContentBlock$, ContentBlockDelta$, ContentBlockStart$, ConverseOutput$, ConverseStreamOutput$, CountTokensInput$, DocumentContentBlock$, DocumentSource$, GuardrailAutomatedReasoningFinding$, GuardrailContentBlock$, GuardrailConverseContentBlock$, GuardrailConverseImageSource$, GuardrailImageSource$, ImageSource$, InvokeModelWithBidirectionalStreamInput$, InvokeModelWithBidirectionalStreamOutput$, OutputFormatStructure$, PromptVariableValues$, ReasoningContentBlock$, ReasoningContentBlockDelta$, ResponseStream$, SystemContentBlock$, Tool$, ToolChoice$, ToolInputSchema$, ToolResultBlockDelta$, ToolResultContentBlock$, VideoSource$, ApplyGuardrail$, Converse$, ConverseStream$, CountTokens$, GetAsyncInvoke$, InvokeModel$, InvokeModelWithBidirectionalStream$, InvokeModelWithResponseStream$, ListAsyncInvokes$, StartAsyncInvoke$;
5451
+ var init_schemas_0 = __esm(() => {
5452
+ init_BedrockRuntimeServiceException();
5453
+ init_errors();
5454
+ import_schema = __toESM(require_schema(), 1);
5455
+ _s_registry = import_schema.TypeRegistry.for(_s);
5456
+ BedrockRuntimeServiceException$ = [-3, _s, "BedrockRuntimeServiceException", 0, [], []];
5457
+ _s_registry.registerError(BedrockRuntimeServiceException$, BedrockRuntimeServiceException);
5458
+ n0_registry = import_schema.TypeRegistry.for(n0);
5459
+ AccessDeniedException$ = [
5460
+ -3,
5461
+ n0,
5462
+ _ADE,
5463
+ { [_e]: _c, [_hE]: 403 },
5464
+ [_m],
5465
+ [0]
5466
+ ];
5467
+ n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
5468
+ ConflictException$ = [
5469
+ -3,
5470
+ n0,
5471
+ _CE,
5472
+ { [_e]: _c, [_hE]: 400 },
5473
+ [_m],
5474
+ [0]
5475
+ ];
5476
+ n0_registry.registerError(ConflictException$, ConflictException);
5477
+ InternalServerException$ = [
5478
+ -3,
5479
+ n0,
5480
+ _ISE,
5481
+ { [_e]: _se, [_hE]: 500 },
5482
+ [_m],
5483
+ [0]
5484
+ ];
5485
+ n0_registry.registerError(InternalServerException$, InternalServerException);
5486
+ ModelErrorException$ = [
5487
+ -3,
5488
+ n0,
5489
+ _MEE,
5490
+ { [_e]: _c, [_hE]: 424 },
5491
+ [_m, _oSC, _rN],
5492
+ [0, 1, 0]
5493
+ ];
5494
+ n0_registry.registerError(ModelErrorException$, ModelErrorException);
5495
+ ModelNotReadyException$ = [
5496
+ -3,
5497
+ n0,
5498
+ _MNRE,
5499
+ { [_e]: _c, [_hE]: 429 },
5500
+ [_m],
5501
+ [0]
5502
+ ];
5503
+ n0_registry.registerError(ModelNotReadyException$, ModelNotReadyException);
5504
+ ModelStreamErrorException$ = [
5505
+ -3,
5506
+ n0,
5507
+ _MSEE,
5508
+ { [_e]: _c, [_hE]: 424 },
5509
+ [_m, _oSC, _oM],
5510
+ [0, 1, 0]
5511
+ ];
5512
+ n0_registry.registerError(ModelStreamErrorException$, ModelStreamErrorException);
5513
+ ModelTimeoutException$ = [
5514
+ -3,
5515
+ n0,
5516
+ _MTE,
5517
+ { [_e]: _c, [_hE]: 408 },
5518
+ [_m],
5519
+ [0]
5520
+ ];
5521
+ n0_registry.registerError(ModelTimeoutException$, ModelTimeoutException);
5522
+ ResourceNotFoundException$ = [
5523
+ -3,
5524
+ n0,
5525
+ _RNFE,
5526
+ { [_e]: _c, [_hE]: 404 },
5527
+ [_m],
5528
+ [0]
5529
+ ];
5530
+ n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
5531
+ ServiceQuotaExceededException$ = [
5532
+ -3,
5533
+ n0,
5534
+ _SQEE,
5535
+ { [_e]: _c, [_hE]: 400 },
5536
+ [_m],
5537
+ [0]
5538
+ ];
5539
+ n0_registry.registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);
5540
+ ServiceUnavailableException$ = [
5541
+ -3,
5542
+ n0,
5543
+ _SUE,
5544
+ { [_e]: _se, [_hE]: 503 },
5545
+ [_m],
5546
+ [0]
5547
+ ];
5548
+ n0_registry.registerError(ServiceUnavailableException$, ServiceUnavailableException);
5549
+ ThrottlingException$ = [
5550
+ -3,
5551
+ n0,
5552
+ _TE,
5553
+ { [_e]: _c, [_hE]: 429 },
5554
+ [_m],
5555
+ [0]
5556
+ ];
5557
+ n0_registry.registerError(ThrottlingException$, ThrottlingException);
5558
+ ValidationException$ = [
5559
+ -3,
5560
+ n0,
5561
+ _VE,
5562
+ { [_e]: _c, [_hE]: 400 },
5563
+ [_m],
5564
+ [0]
5565
+ ];
5566
+ n0_registry.registerError(ValidationException$, ValidationException);
5567
+ errorTypeRegistries = [
5568
+ _s_registry,
5569
+ n0_registry
5570
+ ];
5571
+ AsyncInvokeMessage = [0, n0, _AIM, 8, 0];
5572
+ Body = [0, n0, _B, 8, 21];
5573
+ GuardrailAutomatedReasoningStatementLogicContent = [0, n0, _GARSLC, 8, 0];
5574
+ GuardrailAutomatedReasoningStatementNaturalLanguageContent = [0, n0, _GARSNLC, 8, 0];
5575
+ ModelInputPayload = [0, n0, _MIP, 8, 15];
5576
+ PartBody = [0, n0, _PB, 8, 21];
5577
+ AnyToolChoice$ = [
5578
+ 3,
5579
+ n0,
5580
+ _ATC,
5581
+ 0,
5582
+ [],
5583
+ []
5584
+ ];
5585
+ AppliedGuardrailDetails$ = [
5586
+ 3,
5587
+ n0,
5588
+ _AGD,
5589
+ 0,
5590
+ [_gI, _gV, _gA, _gO, _gOu],
5591
+ [0, 0, 0, 64 | 0, 0]
5592
+ ];
5593
+ ApplyGuardrailRequest$ = [
5594
+ 3,
5595
+ n0,
5596
+ _AGR,
5597
+ 0,
5598
+ [_gIu, _gV, _so, _co, _oS],
5599
+ [[0, 1], [0, 1], 0, [() => GuardrailContentBlockList, 0], 0],
5600
+ 4
5601
+ ];
5602
+ ApplyGuardrailResponse$ = [
5603
+ 3,
5604
+ n0,
5605
+ _AGRp,
5606
+ 0,
5607
+ [_u, _a, _o, _as, _aR, _gC],
5608
+ [() => GuardrailUsage$, 0, () => GuardrailOutputContentList, [() => GuardrailAssessmentList, 0], 0, () => GuardrailCoverage$],
5609
+ 4
5610
+ ];
5611
+ AsyncInvokeS3OutputDataConfig$ = [
5612
+ 3,
5613
+ n0,
5614
+ _AISODC,
5615
+ 0,
5616
+ [_sU, _kKI, _bO],
5617
+ [0, 0, 0],
5618
+ 1
5619
+ ];
5620
+ AsyncInvokeSummary$ = [
5621
+ 3,
5622
+ n0,
5623
+ _AIS,
5624
+ 0,
5625
+ [_iA, _mA, _sT, _oDC, _cRT, _st, _fM, _lMT, _eT],
5626
+ [0, 0, 5, () => AsyncInvokeOutputDataConfig$, 0, 0, [() => AsyncInvokeMessage, 0], 5, 5],
5627
+ 4
5628
+ ];
5629
+ AudioBlock$ = [
5630
+ 3,
5631
+ n0,
5632
+ _AB,
5633
+ 0,
5634
+ [_f, _so, _e],
5635
+ [0, [() => AudioSource$, 0], [() => ErrorBlock$, 0]],
5636
+ 2
5637
+ ];
5638
+ AutoToolChoice$ = [
5639
+ 3,
5640
+ n0,
5641
+ _ATCu,
5642
+ 0,
5643
+ [],
5644
+ []
5645
+ ];
5646
+ BidirectionalInputPayloadPart$ = [
5647
+ 3,
5648
+ n0,
5649
+ _BIPP,
5650
+ 8,
5651
+ [_b],
5652
+ [[() => PartBody, 0]]
5653
+ ];
5654
+ BidirectionalOutputPayloadPart$ = [
5655
+ 3,
5656
+ n0,
5657
+ _BOPP,
5658
+ 8,
5659
+ [_b],
5660
+ [[() => PartBody, 0]]
5661
+ ];
5662
+ CacheDetail$ = [
5663
+ 3,
5664
+ n0,
5665
+ _CD,
5666
+ 0,
5667
+ [_t, _iT],
5668
+ [0, 1],
5669
+ 2
5670
+ ];
5671
+ CachePointBlock$ = [
5672
+ 3,
5673
+ n0,
5674
+ _CPB,
5675
+ 0,
5676
+ [_ty, _t],
5677
+ [0, 0],
5678
+ 1
5679
+ ];
5680
+ Citation$ = [
5681
+ 3,
5682
+ n0,
5683
+ _C,
5684
+ 0,
5685
+ [_ti, _so, _sC, _l],
5686
+ [0, 0, () => CitationSourceContentList, () => CitationLocation$]
5687
+ ];
5688
+ CitationsConfig$ = [
5689
+ 3,
5690
+ n0,
5691
+ _CC,
5692
+ 0,
5693
+ [_en],
5694
+ [2],
5695
+ 1
5696
+ ];
5697
+ CitationsContentBlock$ = [
5698
+ 3,
5699
+ n0,
5700
+ _CCB,
5701
+ 0,
5702
+ [_co, _ci],
5703
+ [() => CitationGeneratedContentList, () => Citations]
5704
+ ];
5705
+ CitationsDelta$ = [
5706
+ 3,
5707
+ n0,
5708
+ _CDi,
5709
+ 0,
5710
+ [_ti, _so, _sC, _l],
5711
+ [0, 0, () => CitationSourceContentListDelta, () => CitationLocation$]
5712
+ ];
5713
+ CitationSourceContentDelta$ = [
5714
+ 3,
5715
+ n0,
5716
+ _CSCD,
5717
+ 0,
5718
+ [_te],
5719
+ [0]
5720
+ ];
5721
+ ContentBlockDeltaEvent$ = [
5722
+ 3,
5723
+ n0,
5724
+ _CBDE,
5725
+ 0,
5726
+ [_d, _cBI],
5727
+ [[() => ContentBlockDelta$, 0], 1],
5728
+ 2
5729
+ ];
5730
+ ContentBlockStartEvent$ = [
5731
+ 3,
5732
+ n0,
5733
+ _CBSE,
5734
+ 0,
5735
+ [_sta, _cBI],
5736
+ [() => ContentBlockStart$, 1],
5737
+ 2
5738
+ ];
5739
+ ContentBlockStopEvent$ = [
5740
+ 3,
5741
+ n0,
5742
+ _CBSEo,
5743
+ 0,
5744
+ [_cBI],
5745
+ [1],
5746
+ 1
5747
+ ];
5748
+ ConverseMetrics$ = [
5749
+ 3,
5750
+ n0,
5751
+ _CM,
5752
+ 0,
5753
+ [_lM],
5754
+ [1],
5755
+ 1
5756
+ ];
5757
+ ConverseRequest$ = [
5758
+ 3,
5759
+ n0,
5760
+ _CR,
5761
+ 0,
5762
+ [_mI, _me, _sy, _iC, _tC, _gCu, _aMRF, _pV, _aMRFP, _rM, _pC, _sTe, _oC],
5763
+ [[0, 1], [() => Messages2, 0], [() => SystemContentBlocks, 0], () => InferenceConfiguration$, () => ToolConfiguration$, () => GuardrailConfiguration$, 15, [() => PromptVariableMap, 0], 64 | 0, [() => RequestMetadata, 0], () => PerformanceConfiguration$, () => ServiceTier$, [() => OutputConfig$, 0]],
5764
+ 1
5765
+ ];
5766
+ ConverseResponse$ = [
5767
+ 3,
5768
+ n0,
5769
+ _CRo,
5770
+ 0,
5771
+ [_ou, _sR, _u, _met, _aMRFd, _tr, _pC, _sTe],
5772
+ [[() => ConverseOutput$, 0], 0, () => TokenUsage$, () => ConverseMetrics$, 15, [() => ConverseTrace$, 0], () => PerformanceConfiguration$, () => ServiceTier$],
5773
+ 4
5774
+ ];
5775
+ ConverseStreamMetadataEvent$ = [
5776
+ 3,
5777
+ n0,
5778
+ _CSME,
5779
+ 0,
5780
+ [_u, _met, _tr, _pC, _sTe],
5781
+ [() => TokenUsage$, () => ConverseStreamMetrics$, [() => ConverseStreamTrace$, 0], () => PerformanceConfiguration$, () => ServiceTier$],
5782
+ 2
5783
+ ];
5784
+ ConverseStreamMetrics$ = [
5785
+ 3,
5786
+ n0,
5787
+ _CSM,
5788
+ 0,
5789
+ [_lM],
5790
+ [1],
5791
+ 1
5792
+ ];
5793
+ ConverseStreamRequest$ = [
5794
+ 3,
5795
+ n0,
5796
+ _CSR,
5797
+ 0,
5798
+ [_mI, _me, _sy, _iC, _tC, _gCu, _aMRF, _pV, _aMRFP, _rM, _pC, _sTe, _oC],
5799
+ [[0, 1], [() => Messages2, 0], [() => SystemContentBlocks, 0], () => InferenceConfiguration$, () => ToolConfiguration$, () => GuardrailStreamConfiguration$, 15, [() => PromptVariableMap, 0], 64 | 0, [() => RequestMetadata, 0], () => PerformanceConfiguration$, () => ServiceTier$, [() => OutputConfig$, 0]],
5800
+ 1
5801
+ ];
5802
+ ConverseStreamResponse$ = [
5803
+ 3,
5804
+ n0,
5805
+ _CSRo,
5806
+ 0,
5807
+ [_str],
5808
+ [[() => ConverseStreamOutput$, 16]]
5809
+ ];
5810
+ ConverseStreamTrace$ = [
5811
+ 3,
5812
+ n0,
5813
+ _CST,
5814
+ 0,
5815
+ [_g, _pR],
5816
+ [[() => GuardrailTraceAssessment$, 0], () => PromptRouterTrace$]
5817
+ ];
5818
+ ConverseTokensRequest$ = [
5819
+ 3,
5820
+ n0,
5821
+ _CTR,
5822
+ 0,
5823
+ [_me, _sy, _tC, _aMRF],
5824
+ [[() => Messages2, 0], [() => SystemContentBlocks, 0], () => ToolConfiguration$, 15]
5825
+ ];
5826
+ ConverseTrace$ = [
5827
+ 3,
5828
+ n0,
5829
+ _CT,
5830
+ 0,
5831
+ [_g, _pR],
5832
+ [[() => GuardrailTraceAssessment$, 0], () => PromptRouterTrace$]
5833
+ ];
5834
+ CountTokensRequest$ = [
5835
+ 3,
5836
+ n0,
5837
+ _CTRo,
5838
+ 0,
5839
+ [_mI, _i],
5840
+ [[0, 1], [() => CountTokensInput$, 0]],
5841
+ 2
5842
+ ];
5843
+ CountTokensResponse$ = [
5844
+ 3,
5845
+ n0,
5846
+ _CTRou,
5847
+ 0,
5848
+ [_iT],
5849
+ [1],
5850
+ 1
5851
+ ];
5852
+ DocumentBlock$ = [
5853
+ 3,
5854
+ n0,
5855
+ _DB,
5856
+ 0,
5857
+ [_n, _so, _f, _con, _ci],
5858
+ [0, () => DocumentSource$, 0, 0, () => CitationsConfig$],
5859
+ 2
5860
+ ];
5861
+ DocumentCharLocation$ = [
5862
+ 3,
5863
+ n0,
5864
+ _DCL,
5865
+ 0,
5866
+ [_dI, _sta, _end],
5867
+ [1, 1, 1]
5868
+ ];
5869
+ DocumentChunkLocation$ = [
5870
+ 3,
5871
+ n0,
5872
+ _DCLo,
5873
+ 0,
5874
+ [_dI, _sta, _end],
5875
+ [1, 1, 1]
5876
+ ];
5877
+ DocumentPageLocation$ = [
5878
+ 3,
5879
+ n0,
5880
+ _DPL,
5881
+ 0,
5882
+ [_dI, _sta, _end],
5883
+ [1, 1, 1]
5884
+ ];
5885
+ ErrorBlock$ = [
5886
+ 3,
5887
+ n0,
5888
+ _EB,
5889
+ 8,
5890
+ [_m],
5891
+ [0]
5892
+ ];
5893
+ GetAsyncInvokeRequest$ = [
5894
+ 3,
5895
+ n0,
5896
+ _GAIR,
5897
+ 0,
5898
+ [_iA],
5899
+ [[0, 1]],
5900
+ 1
5901
+ ];
5902
+ GetAsyncInvokeResponse$ = [
5903
+ 3,
5904
+ n0,
5905
+ _GAIRe,
5906
+ 0,
5907
+ [_iA, _mA, _st, _sT, _oDC, _cRT, _fM, _lMT, _eT],
5908
+ [0, 0, 0, 5, () => AsyncInvokeOutputDataConfig$, 0, [() => AsyncInvokeMessage, 0], 5, 5],
5909
+ 5
5910
+ ];
5911
+ GuardrailAssessment$ = [
5912
+ 3,
5913
+ n0,
5914
+ _GA,
5915
+ 0,
5916
+ [_tP, _cP, _wP, _sIP, _cGP, _aRP, _iM, _aGD],
5917
+ [() => GuardrailTopicPolicyAssessment$, () => GuardrailContentPolicyAssessment$, () => GuardrailWordPolicyAssessment$, () => GuardrailSensitiveInformationPolicyAssessment$, () => GuardrailContextualGroundingPolicyAssessment$, [() => GuardrailAutomatedReasoningPolicyAssessment$, 0], () => GuardrailInvocationMetrics$, () => AppliedGuardrailDetails$]
5918
+ ];
5919
+ GuardrailAutomatedReasoningImpossibleFinding$ = [
5920
+ 3,
5921
+ n0,
5922
+ _GARIF,
5923
+ 0,
5924
+ [_tra, _cR, _lW],
5925
+ [[() => GuardrailAutomatedReasoningTranslation$, 0], () => GuardrailAutomatedReasoningRuleList, [() => GuardrailAutomatedReasoningLogicWarning$, 0]]
5926
+ ];
5927
+ GuardrailAutomatedReasoningInputTextReference$ = [
5928
+ 3,
5929
+ n0,
5930
+ _GARITR,
5931
+ 0,
5932
+ [_te],
5933
+ [[() => GuardrailAutomatedReasoningStatementNaturalLanguageContent, 0]]
5934
+ ];
5935
+ GuardrailAutomatedReasoningInvalidFinding$ = [
5936
+ 3,
5937
+ n0,
5938
+ _GARIFu,
5939
+ 0,
5940
+ [_tra, _cR, _lW],
5941
+ [[() => GuardrailAutomatedReasoningTranslation$, 0], () => GuardrailAutomatedReasoningRuleList, [() => GuardrailAutomatedReasoningLogicWarning$, 0]]
5942
+ ];
5943
+ GuardrailAutomatedReasoningLogicWarning$ = [
5944
+ 3,
5945
+ n0,
5946
+ _GARLW,
5947
+ 0,
5948
+ [_ty, _p, _cl],
5949
+ [0, [() => GuardrailAutomatedReasoningStatementList, 0], [() => GuardrailAutomatedReasoningStatementList, 0]]
5950
+ ];
5951
+ GuardrailAutomatedReasoningNoTranslationsFinding$ = [
5952
+ 3,
5953
+ n0,
5954
+ _GARNTF,
5955
+ 0,
5956
+ [],
5957
+ []
5958
+ ];
5959
+ GuardrailAutomatedReasoningPolicyAssessment$ = [
5960
+ 3,
5961
+ n0,
5962
+ _GARPA,
5963
+ 0,
5964
+ [_fi],
5965
+ [[() => GuardrailAutomatedReasoningFindingList, 0]]
5966
+ ];
5967
+ GuardrailAutomatedReasoningRule$ = [
5968
+ 3,
5969
+ n0,
5970
+ _GARR,
5971
+ 0,
5972
+ [_id, _pVA],
5973
+ [0, 0]
5974
+ ];
5975
+ GuardrailAutomatedReasoningSatisfiableFinding$ = [
5976
+ 3,
5977
+ n0,
5978
+ _GARSF,
5979
+ 0,
5980
+ [_tra, _cTS, _cFS, _lW],
5981
+ [[() => GuardrailAutomatedReasoningTranslation$, 0], [() => GuardrailAutomatedReasoningScenario$, 0], [() => GuardrailAutomatedReasoningScenario$, 0], [() => GuardrailAutomatedReasoningLogicWarning$, 0]]
5982
+ ];
5983
+ GuardrailAutomatedReasoningScenario$ = [
5984
+ 3,
5985
+ n0,
5986
+ _GARS,
5987
+ 0,
5988
+ [_stat],
5989
+ [[() => GuardrailAutomatedReasoningStatementList, 0]]
5990
+ ];
5991
+ GuardrailAutomatedReasoningStatement$ = [
5992
+ 3,
5993
+ n0,
5994
+ _GARSu,
5995
+ 0,
5996
+ [_lo, _nL],
5997
+ [[() => GuardrailAutomatedReasoningStatementLogicContent, 0], [() => GuardrailAutomatedReasoningStatementNaturalLanguageContent, 0]]
5998
+ ];
5999
+ GuardrailAutomatedReasoningTooComplexFinding$ = [
6000
+ 3,
6001
+ n0,
6002
+ _GARTCF,
6003
+ 0,
6004
+ [],
6005
+ []
6006
+ ];
6007
+ GuardrailAutomatedReasoningTranslation$ = [
6008
+ 3,
6009
+ n0,
6010
+ _GART,
6011
+ 0,
6012
+ [_p, _cl, _uP, _uC, _conf],
6013
+ [[() => GuardrailAutomatedReasoningStatementList, 0], [() => GuardrailAutomatedReasoningStatementList, 0], [() => GuardrailAutomatedReasoningInputTextReferenceList, 0], [() => GuardrailAutomatedReasoningInputTextReferenceList, 0], 1]
6014
+ ];
6015
+ GuardrailAutomatedReasoningTranslationAmbiguousFinding$ = [
6016
+ 3,
6017
+ n0,
6018
+ _GARTAF,
6019
+ 0,
6020
+ [_op, _dS],
6021
+ [[() => GuardrailAutomatedReasoningTranslationOptionList, 0], [() => GuardrailAutomatedReasoningDifferenceScenarioList, 0]]
6022
+ ];
6023
+ GuardrailAutomatedReasoningTranslationOption$ = [
6024
+ 3,
6025
+ n0,
6026
+ _GARTO,
6027
+ 0,
6028
+ [_tran],
6029
+ [[() => GuardrailAutomatedReasoningTranslationList, 0]]
6030
+ ];
6031
+ GuardrailAutomatedReasoningValidFinding$ = [
6032
+ 3,
6033
+ n0,
6034
+ _GARVF,
6035
+ 0,
6036
+ [_tra, _cTS, _sRu, _lW],
6037
+ [[() => GuardrailAutomatedReasoningTranslation$, 0], [() => GuardrailAutomatedReasoningScenario$, 0], () => GuardrailAutomatedReasoningRuleList, [() => GuardrailAutomatedReasoningLogicWarning$, 0]]
6038
+ ];
6039
+ GuardrailConfiguration$ = [
6040
+ 3,
6041
+ n0,
6042
+ _GC,
6043
+ 0,
6044
+ [_gIu, _gV, _tr],
6045
+ [0, 0, 0]
6046
+ ];
6047
+ GuardrailContentFilter$ = [
6048
+ 3,
6049
+ n0,
6050
+ _GCF,
6051
+ 0,
6052
+ [_ty, _conf, _a, _fS, _de],
6053
+ [0, 0, 0, 0, 2],
6054
+ 3
6055
+ ];
6056
+ GuardrailContentPolicyAssessment$ = [
6057
+ 3,
6058
+ n0,
6059
+ _GCPA,
6060
+ 0,
6061
+ [_fil],
6062
+ [() => GuardrailContentFilterList],
6063
+ 1
6064
+ ];
6065
+ GuardrailContextualGroundingFilter$ = [
6066
+ 3,
6067
+ n0,
6068
+ _GCGF,
6069
+ 0,
6070
+ [_ty, _th, _sc, _a, _de],
6071
+ [0, 1, 1, 0, 2],
6072
+ 4
6073
+ ];
6074
+ GuardrailContextualGroundingPolicyAssessment$ = [
6075
+ 3,
6076
+ n0,
6077
+ _GCGPA,
6078
+ 0,
6079
+ [_fil],
6080
+ [() => GuardrailContextualGroundingFilters]
6081
+ ];
6082
+ GuardrailConverseImageBlock$ = [
6083
+ 3,
6084
+ n0,
6085
+ _GCIB,
6086
+ 8,
6087
+ [_f, _so],
6088
+ [0, [() => GuardrailConverseImageSource$, 0]],
6089
+ 2
6090
+ ];
6091
+ GuardrailConverseTextBlock$ = [
6092
+ 3,
6093
+ n0,
6094
+ _GCTB,
6095
+ 0,
6096
+ [_te, _q],
6097
+ [0, 64 | 0],
6098
+ 1
6099
+ ];
6100
+ GuardrailCoverage$ = [
6101
+ 3,
6102
+ n0,
6103
+ _GCu,
6104
+ 0,
6105
+ [_tCe, _im],
6106
+ [() => GuardrailTextCharactersCoverage$, () => GuardrailImageCoverage$]
6107
+ ];
6108
+ GuardrailCustomWord$ = [
6109
+ 3,
6110
+ n0,
6111
+ _GCW,
6112
+ 0,
6113
+ [_ma, _a, _de],
6114
+ [0, 0, 2],
6115
+ 2
6116
+ ];
6117
+ GuardrailImageBlock$ = [
6118
+ 3,
6119
+ n0,
6120
+ _GIB,
6121
+ 8,
6122
+ [_f, _so],
6123
+ [0, [() => GuardrailImageSource$, 0]],
6124
+ 2
6125
+ ];
6126
+ GuardrailImageCoverage$ = [
6127
+ 3,
6128
+ n0,
6129
+ _GIC,
6130
+ 0,
6131
+ [_gu, _to],
6132
+ [1, 1]
6133
+ ];
6134
+ GuardrailInvocationMetrics$ = [
6135
+ 3,
6136
+ n0,
6137
+ _GIM,
6138
+ 0,
6139
+ [_gPL, _u, _gC],
6140
+ [1, () => GuardrailUsage$, () => GuardrailCoverage$]
6141
+ ];
6142
+ GuardrailManagedWord$ = [
6143
+ 3,
6144
+ n0,
6145
+ _GMW,
6146
+ 0,
6147
+ [_ma, _ty, _a, _de],
6148
+ [0, 0, 0, 2],
6149
+ 3
6150
+ ];
6151
+ GuardrailOutputContent$ = [
6152
+ 3,
6153
+ n0,
6154
+ _GOC,
6155
+ 0,
6156
+ [_te],
6157
+ [0]
6158
+ ];
6159
+ GuardrailPiiEntityFilter$ = [
6160
+ 3,
6161
+ n0,
6162
+ _GPEF,
6163
+ 0,
6164
+ [_ma, _ty, _a, _de],
6165
+ [0, 0, 0, 2],
6166
+ 3
6167
+ ];
6168
+ GuardrailRegexFilter$ = [
6169
+ 3,
6170
+ n0,
6171
+ _GRF,
6172
+ 0,
6173
+ [_a, _n, _ma, _r, _de],
6174
+ [0, 0, 0, 0, 2],
6175
+ 1
6176
+ ];
6177
+ GuardrailSensitiveInformationPolicyAssessment$ = [
6178
+ 3,
6179
+ n0,
6180
+ _GSIPA,
6181
+ 0,
6182
+ [_pE, _re],
6183
+ [() => GuardrailPiiEntityFilterList, () => GuardrailRegexFilterList],
6184
+ 2
6185
+ ];
6186
+ GuardrailStreamConfiguration$ = [
6187
+ 3,
6188
+ n0,
6189
+ _GSC,
6190
+ 0,
6191
+ [_gIu, _gV, _tr, _sPM],
6192
+ [0, 0, 0, 0]
6193
+ ];
6194
+ GuardrailTextBlock$ = [
6195
+ 3,
6196
+ n0,
6197
+ _GTB,
6198
+ 0,
6199
+ [_te, _q],
6200
+ [0, 64 | 0],
6201
+ 1
6202
+ ];
6203
+ GuardrailTextCharactersCoverage$ = [
6204
+ 3,
6205
+ n0,
6206
+ _GTCC,
6207
+ 0,
6208
+ [_gu, _to],
6209
+ [1, 1]
6210
+ ];
6211
+ GuardrailTopic$ = [
6212
+ 3,
6213
+ n0,
6214
+ _GT,
6215
+ 0,
6216
+ [_n, _ty, _a, _de],
6217
+ [0, 0, 0, 2],
6218
+ 3
6219
+ ];
6220
+ GuardrailTopicPolicyAssessment$ = [
6221
+ 3,
6222
+ n0,
6223
+ _GTPA,
6224
+ 0,
6225
+ [_top],
6226
+ [() => GuardrailTopicList],
6227
+ 1
6228
+ ];
6229
+ GuardrailTraceAssessment$ = [
6230
+ 3,
6231
+ n0,
6232
+ _GTA,
6233
+ 0,
6234
+ [_mO, _iAn, _oA, _aR],
6235
+ [64 | 0, [() => GuardrailAssessmentMap, 0], [() => GuardrailAssessmentListMap, 0], 0]
6236
+ ];
6237
+ GuardrailUsage$ = [
6238
+ 3,
6239
+ n0,
6240
+ _GU,
6241
+ 0,
6242
+ [_tPU, _cPU, _wPU, _sIPU, _sIPFU, _cGPU, _cPIU, _aRPU, _aRPu],
6243
+ [1, 1, 1, 1, 1, 1, 1, 1, 1],
6244
+ 6
6245
+ ];
6246
+ GuardrailWordPolicyAssessment$ = [
6247
+ 3,
6248
+ n0,
6249
+ _GWPA,
6250
+ 0,
6251
+ [_cW, _mWL],
6252
+ [() => GuardrailCustomWordList, () => GuardrailManagedWordList],
6253
+ 2
6254
+ ];
6255
+ ImageBlock$ = [
6256
+ 3,
6257
+ n0,
6258
+ _IB,
6259
+ 0,
6260
+ [_f, _so, _e],
6261
+ [0, [() => ImageSource$, 0], [() => ErrorBlock$, 0]],
6262
+ 2
6263
+ ];
6264
+ ImageBlockDelta$ = [
6265
+ 3,
6266
+ n0,
6267
+ _IBD,
6268
+ 0,
6269
+ [_so, _e],
6270
+ [[() => ImageSource$, 0], [() => ErrorBlock$, 0]]
6271
+ ];
6272
+ ImageBlockStart$ = [
6273
+ 3,
6274
+ n0,
6275
+ _IBS,
6276
+ 0,
6277
+ [_f],
6278
+ [0],
6279
+ 1
6280
+ ];
6281
+ InferenceConfiguration$ = [
6282
+ 3,
6283
+ n0,
6284
+ _IC,
6285
+ 0,
6286
+ [_mT, _tem, _tPo, _sS],
6287
+ [1, 1, 1, 64 | 0]
6288
+ ];
6289
+ InvokeModelRequest$ = [
6290
+ 3,
6291
+ n0,
6292
+ _IMR,
6293
+ 0,
6294
+ [_mI, _bo, _cT, _ac, _tr, _gIu, _gV, _pCL, _sTe],
6295
+ [[0, 1], [() => Body, 16], [0, { [_hH]: _CT_ }], [0, { [_hH]: _A }], [0, { [_hH]: _XABT }], [0, { [_hH]: _XABG }], [0, { [_hH]: _XABG_ }], [0, { [_hH]: _XABPL }], [0, { [_hH]: _XABST }]],
6296
+ 1
6297
+ ];
6298
+ InvokeModelResponse$ = [
6299
+ 3,
6300
+ n0,
6301
+ _IMRn,
6302
+ 0,
6303
+ [_bo, _cT, _pCL, _sTe],
6304
+ [[() => Body, 16], [0, { [_hH]: _CT_ }], [0, { [_hH]: _XABPL }], [0, { [_hH]: _XABST }]],
6305
+ 2
6306
+ ];
6307
+ InvokeModelTokensRequest$ = [
6308
+ 3,
6309
+ n0,
6310
+ _IMTR,
6311
+ 0,
6312
+ [_bo],
6313
+ [[() => Body, 0]],
6314
+ 1
6315
+ ];
6316
+ InvokeModelWithBidirectionalStreamRequest$ = [
6317
+ 3,
6318
+ n0,
6319
+ _IMWBSR,
6320
+ 0,
6321
+ [_mI, _bo],
6322
+ [[0, 1], [() => InvokeModelWithBidirectionalStreamInput$, 16]],
6323
+ 2
6324
+ ];
6325
+ InvokeModelWithBidirectionalStreamResponse$ = [
6326
+ 3,
6327
+ n0,
6328
+ _IMWBSRn,
6329
+ 0,
6330
+ [_bo],
6331
+ [[() => InvokeModelWithBidirectionalStreamOutput$, 16]],
6332
+ 1
6333
+ ];
6334
+ InvokeModelWithResponseStreamRequest$ = [
6335
+ 3,
6336
+ n0,
6337
+ _IMWRSR,
6338
+ 0,
6339
+ [_mI, _bo, _cT, _ac, _tr, _gIu, _gV, _pCL, _sTe],
6340
+ [[0, 1], [() => Body, 16], [0, { [_hH]: _CT_ }], [0, { [_hH]: _XABA }], [0, { [_hH]: _XABT }], [0, { [_hH]: _XABG }], [0, { [_hH]: _XABG_ }], [0, { [_hH]: _XABPL }], [0, { [_hH]: _XABST }]],
6341
+ 1
6342
+ ];
6343
+ InvokeModelWithResponseStreamResponse$ = [
6344
+ 3,
6345
+ n0,
6346
+ _IMWRSRn,
6347
+ 0,
6348
+ [_bo, _cT, _pCL, _sTe],
6349
+ [[() => ResponseStream$, 16], [0, { [_hH]: _XABCT }], [0, { [_hH]: _XABPL }], [0, { [_hH]: _XABST }]],
6350
+ 2
6351
+ ];
6352
+ JsonSchemaDefinition$ = [
6353
+ 3,
6354
+ n0,
6355
+ _JSD,
6356
+ 0,
6357
+ [_sch, _n, _des],
6358
+ [0, 0, 0],
6359
+ 1
6360
+ ];
6361
+ ListAsyncInvokesRequest$ = [
6362
+ 3,
6363
+ n0,
6364
+ _LAIR,
6365
+ 0,
6366
+ [_sTA, _sTB, _sE, _mR, _nT, _sB, _sO],
6367
+ [[5, { [_hQ]: _sTA }], [5, { [_hQ]: _sTB }], [0, { [_hQ]: _sE }], [1, { [_hQ]: _mR }], [0, { [_hQ]: _nT }], [0, { [_hQ]: _sB }], [0, { [_hQ]: _sO }]]
6368
+ ];
6369
+ ListAsyncInvokesResponse$ = [
6370
+ 3,
6371
+ n0,
6372
+ _LAIRi,
6373
+ 0,
6374
+ [_nT, _aIS],
6375
+ [0, [() => AsyncInvokeSummaries, 0]]
6376
+ ];
6377
+ Message$ = [
6378
+ 3,
6379
+ n0,
6380
+ _M,
6381
+ 0,
6382
+ [_ro, _co],
6383
+ [0, [() => ContentBlocks, 0]],
6384
+ 2
6385
+ ];
6386
+ MessageStartEvent$ = [
6387
+ 3,
6388
+ n0,
6389
+ _MSE,
6390
+ 0,
6391
+ [_ro],
6392
+ [0],
6393
+ 1
6394
+ ];
6395
+ MessageStopEvent$ = [
6396
+ 3,
6397
+ n0,
6398
+ _MSEe,
6399
+ 0,
6400
+ [_sR, _aMRFd],
6401
+ [0, 15],
6402
+ 1
6403
+ ];
6404
+ OutputConfig$ = [
6405
+ 3,
6406
+ n0,
6407
+ _OC,
6408
+ 0,
6409
+ [_tF],
6410
+ [[() => OutputFormat$, 0]]
6411
+ ];
6412
+ OutputFormat$ = [
6413
+ 3,
6414
+ n0,
6415
+ _OF,
6416
+ 0,
6417
+ [_ty, _stru],
6418
+ [0, [() => OutputFormatStructure$, 0]],
6419
+ 2
6420
+ ];
6421
+ PayloadPart$ = [
6422
+ 3,
6423
+ n0,
6424
+ _PP,
6425
+ 8,
6426
+ [_b],
6427
+ [[() => PartBody, 0]]
6428
+ ];
6429
+ PerformanceConfiguration$ = [
6430
+ 3,
6431
+ n0,
6432
+ _PC,
6433
+ 0,
6434
+ [_la],
6435
+ [0]
6436
+ ];
6437
+ PromptRouterTrace$ = [
6438
+ 3,
6439
+ n0,
6440
+ _PRT,
6441
+ 0,
6442
+ [_iMI],
6443
+ [0]
6444
+ ];
6445
+ ReasoningTextBlock$ = [
6446
+ 3,
6447
+ n0,
6448
+ _RTB,
6449
+ 8,
6450
+ [_te, _si],
6451
+ [0, 0],
6452
+ 1
6453
+ ];
6454
+ S3Location$ = [
6455
+ 3,
6456
+ n0,
6457
+ _SL,
6458
+ 0,
6459
+ [_ur, _bO],
6460
+ [0, 0],
6461
+ 1
6462
+ ];
6463
+ SearchResultBlock$ = [
6464
+ 3,
6465
+ n0,
6466
+ _SRB,
6467
+ 0,
6468
+ [_so, _ti, _co, _ci],
6469
+ [0, 0, () => SearchResultContentBlocks, () => CitationsConfig$],
6470
+ 3
6471
+ ];
6472
+ SearchResultContentBlock$ = [
6473
+ 3,
6474
+ n0,
6475
+ _SRCB,
6476
+ 0,
6477
+ [_te],
6478
+ [0],
6479
+ 1
6480
+ ];
6481
+ SearchResultLocation$ = [
6482
+ 3,
6483
+ n0,
6484
+ _SRL,
6485
+ 0,
6486
+ [_sRI, _sta, _end],
6487
+ [1, 1, 1]
6488
+ ];
6489
+ ServiceTier$ = [
6490
+ 3,
6491
+ n0,
6492
+ _ST,
6493
+ 0,
6494
+ [_ty],
6495
+ [0],
6496
+ 1
6497
+ ];
6498
+ SpecificToolChoice$ = [
6499
+ 3,
6500
+ n0,
6501
+ _STC,
6502
+ 0,
6503
+ [_n],
6504
+ [0],
6505
+ 1
6506
+ ];
6507
+ StartAsyncInvokeRequest$ = [
6508
+ 3,
6509
+ n0,
6510
+ _SAIR,
6511
+ 0,
6512
+ [_mI, _mIo, _oDC, _cRT, _ta],
6513
+ [0, [() => ModelInputPayload, 0], () => AsyncInvokeOutputDataConfig$, [0, 4], () => TagList],
6514
+ 3
6515
+ ];
6516
+ StartAsyncInvokeResponse$ = [
6517
+ 3,
6518
+ n0,
6519
+ _SAIRt,
6520
+ 0,
6521
+ [_iA],
6522
+ [0],
6523
+ 1
6524
+ ];
6525
+ SystemTool$ = [
6526
+ 3,
6527
+ n0,
6528
+ _STy,
6529
+ 0,
6530
+ [_n],
6531
+ [0],
6532
+ 1
6533
+ ];
6534
+ Tag$ = [
6535
+ 3,
6536
+ n0,
6537
+ _T,
6538
+ 0,
6539
+ [_k, _v],
6540
+ [0, 0],
6541
+ 2
6542
+ ];
6543
+ TokenUsage$ = [
6544
+ 3,
6545
+ n0,
6546
+ _TU,
6547
+ 0,
6548
+ [_iT, _oT, _tT, _cRIT, _cWIT, _cD],
6549
+ [1, 1, 1, 1, 1, () => CacheDetailsList],
6550
+ 3
6551
+ ];
6552
+ ToolConfiguration$ = [
6553
+ 3,
6554
+ n0,
6555
+ _TC,
6556
+ 0,
6557
+ [_too, _tCo],
6558
+ [() => Tools, () => ToolChoice$],
6559
+ 1
6560
+ ];
6561
+ ToolResultBlock$ = [
6562
+ 3,
6563
+ n0,
6564
+ _TRB,
6565
+ 0,
6566
+ [_tUI, _co, _st, _ty],
6567
+ [0, [() => ToolResultContentBlocks, 0], 0, 0],
6568
+ 2
6569
+ ];
6570
+ ToolResultBlockStart$ = [
6571
+ 3,
6572
+ n0,
6573
+ _TRBS,
6574
+ 0,
6575
+ [_tUI, _ty, _st],
6576
+ [0, 0, 0],
6577
+ 1
6578
+ ];
6579
+ ToolSpecification$ = [
6580
+ 3,
6581
+ n0,
6582
+ _TS,
6583
+ 0,
6584
+ [_n, _iS, _des, _stri],
6585
+ [0, () => ToolInputSchema$, 0, 2],
6586
+ 2
6587
+ ];
6588
+ ToolUseBlock$ = [
6589
+ 3,
6590
+ n0,
6591
+ _TUB,
6592
+ 0,
6593
+ [_tUI, _n, _i, _ty],
6594
+ [0, 0, 15, 0],
6595
+ 3
6596
+ ];
6597
+ ToolUseBlockDelta$ = [
6598
+ 3,
6599
+ n0,
6600
+ _TUBD,
6601
+ 0,
6602
+ [_i],
6603
+ [0],
6604
+ 1
6605
+ ];
6606
+ ToolUseBlockStart$ = [
6607
+ 3,
6608
+ n0,
6609
+ _TUBS,
6610
+ 0,
6611
+ [_tUI, _n, _ty],
6612
+ [0, 0, 0],
6613
+ 2
6614
+ ];
6615
+ VideoBlock$ = [
6616
+ 3,
6617
+ n0,
6618
+ _VB,
6619
+ 0,
6620
+ [_f, _so],
6621
+ [0, () => VideoSource$],
6622
+ 2
6623
+ ];
6624
+ WebLocation$ = [
6625
+ 3,
6626
+ n0,
6627
+ _WL,
6628
+ 0,
6629
+ [_url, _do],
6630
+ [0, 0]
6631
+ ];
6632
+ AdditionalModelResponseFieldPaths = 64 | 0;
6633
+ AsyncInvokeSummaries = [
6634
+ 1,
6635
+ n0,
6636
+ _AISs,
6637
+ 0,
6638
+ [
6639
+ () => AsyncInvokeSummary$,
6640
+ 0
6641
+ ]
6642
+ ];
6643
+ CacheDetailsList = [
6644
+ 1,
6645
+ n0,
6646
+ _CDL,
6647
+ 0,
6648
+ () => CacheDetail$
6649
+ ];
6650
+ CitationGeneratedContentList = [
6651
+ 1,
6652
+ n0,
6653
+ _CGCL,
6654
+ 0,
6655
+ () => CitationGeneratedContent$
6656
+ ];
6657
+ Citations = [
6658
+ 1,
6659
+ n0,
6660
+ _Ci,
6661
+ 0,
6662
+ () => Citation$
6663
+ ];
6664
+ CitationSourceContentList = [
6665
+ 1,
6666
+ n0,
6667
+ _CSCL,
6668
+ 0,
6669
+ () => CitationSourceContent$
6670
+ ];
6671
+ CitationSourceContentListDelta = [
6672
+ 1,
6673
+ n0,
6674
+ _CSCLD,
6675
+ 0,
6676
+ () => CitationSourceContentDelta$
6677
+ ];
6678
+ ContentBlocks = [
6679
+ 1,
6680
+ n0,
6681
+ _CB,
6682
+ 0,
6683
+ [
6684
+ () => ContentBlock$,
6685
+ 0
6686
+ ]
6687
+ ];
6688
+ DocumentContentBlocks = [
6689
+ 1,
6690
+ n0,
6691
+ _DCB,
6692
+ 0,
6693
+ () => DocumentContentBlock$
6694
+ ];
6695
+ GuardrailAssessmentList = [
6696
+ 1,
6697
+ n0,
6698
+ _GAL,
6699
+ 0,
6700
+ [
6701
+ () => GuardrailAssessment$,
6702
+ 0
6703
+ ]
6704
+ ];
6705
+ GuardrailAutomatedReasoningDifferenceScenarioList = [
6706
+ 1,
6707
+ n0,
6708
+ _GARDSL,
6709
+ 0,
6710
+ [
6711
+ () => GuardrailAutomatedReasoningScenario$,
6712
+ 0
6713
+ ]
6714
+ ];
6715
+ GuardrailAutomatedReasoningFindingList = [
6716
+ 1,
6717
+ n0,
6718
+ _GARFL,
6719
+ 0,
6720
+ [
6721
+ () => GuardrailAutomatedReasoningFinding$,
6722
+ 0
6723
+ ]
6724
+ ];
6725
+ GuardrailAutomatedReasoningInputTextReferenceList = [
6726
+ 1,
6727
+ n0,
6728
+ _GARITRL,
6729
+ 0,
6730
+ [
6731
+ () => GuardrailAutomatedReasoningInputTextReference$,
6732
+ 0
6733
+ ]
6734
+ ];
6735
+ GuardrailAutomatedReasoningRuleList = [
6736
+ 1,
6737
+ n0,
6738
+ _GARRL,
6739
+ 0,
6740
+ () => GuardrailAutomatedReasoningRule$
6741
+ ];
6742
+ GuardrailAutomatedReasoningStatementList = [
6743
+ 1,
6744
+ n0,
6745
+ _GARSL,
6746
+ 0,
6747
+ [
6748
+ () => GuardrailAutomatedReasoningStatement$,
6749
+ 0
6750
+ ]
6751
+ ];
6752
+ GuardrailAutomatedReasoningTranslationList = [
6753
+ 1,
6754
+ n0,
6755
+ _GARTL,
6756
+ 0,
6757
+ [
6758
+ () => GuardrailAutomatedReasoningTranslation$,
6759
+ 0
6760
+ ]
6761
+ ];
6762
+ GuardrailAutomatedReasoningTranslationOptionList = [
6763
+ 1,
6764
+ n0,
6765
+ _GARTOL,
6766
+ 0,
6767
+ [
6768
+ () => GuardrailAutomatedReasoningTranslationOption$,
6769
+ 0
6770
+ ]
6771
+ ];
6772
+ GuardrailContentBlockList = [
6773
+ 1,
6774
+ n0,
6775
+ _GCBL,
6776
+ 0,
6777
+ [
6778
+ () => GuardrailContentBlock$,
6779
+ 0
6780
+ ]
6781
+ ];
6782
+ GuardrailContentFilterList = [
6783
+ 1,
6784
+ n0,
6785
+ _GCFL,
6786
+ 0,
6787
+ () => GuardrailContentFilter$
6788
+ ];
6789
+ GuardrailContentQualifierList = 64 | 0;
6790
+ GuardrailContextualGroundingFilters = [
6791
+ 1,
6792
+ n0,
6793
+ _GCGFu,
6794
+ 0,
6795
+ () => GuardrailContextualGroundingFilter$
6796
+ ];
6797
+ GuardrailConverseContentQualifierList = 64 | 0;
6798
+ GuardrailCustomWordList = [
6799
+ 1,
6800
+ n0,
6801
+ _GCWL,
6802
+ 0,
6803
+ () => GuardrailCustomWord$
6804
+ ];
6805
+ GuardrailManagedWordList = [
6806
+ 1,
6807
+ n0,
6808
+ _GMWL,
6809
+ 0,
6810
+ () => GuardrailManagedWord$
6811
+ ];
6812
+ GuardrailOriginList = 64 | 0;
6813
+ GuardrailOutputContentList = [
6814
+ 1,
6815
+ n0,
6816
+ _GOCL,
6817
+ 0,
6818
+ () => GuardrailOutputContent$
6819
+ ];
6820
+ GuardrailPiiEntityFilterList = [
6821
+ 1,
6822
+ n0,
6823
+ _GPEFL,
6824
+ 0,
6825
+ () => GuardrailPiiEntityFilter$
6826
+ ];
6827
+ GuardrailRegexFilterList = [
6828
+ 1,
6829
+ n0,
6830
+ _GRFL,
6831
+ 0,
6832
+ () => GuardrailRegexFilter$
6833
+ ];
6834
+ GuardrailTopicList = [
6835
+ 1,
6836
+ n0,
6837
+ _GTL,
6838
+ 0,
6839
+ () => GuardrailTopic$
6840
+ ];
6841
+ Messages2 = [
6842
+ 1,
6843
+ n0,
6844
+ _Me,
6845
+ 0,
6846
+ [
6847
+ () => Message$,
6848
+ 0
6849
+ ]
6850
+ ];
6851
+ ModelOutputs = 64 | 0;
6852
+ NonEmptyStringList = 64 | 0;
6853
+ SearchResultContentBlocks = [
6854
+ 1,
6855
+ n0,
6856
+ _SRCBe,
6857
+ 0,
6858
+ () => SearchResultContentBlock$
6859
+ ];
6860
+ SystemContentBlocks = [
6861
+ 1,
6862
+ n0,
6863
+ _SCB,
6864
+ 0,
6865
+ [
6866
+ () => SystemContentBlock$,
6867
+ 0
6868
+ ]
6869
+ ];
6870
+ TagList = [
6871
+ 1,
6872
+ n0,
6873
+ _TL,
6874
+ 0,
6875
+ () => Tag$
6876
+ ];
6877
+ ToolResultBlocksDelta = [
6878
+ 1,
6879
+ n0,
6880
+ _TRBD,
6881
+ 0,
6882
+ () => ToolResultBlockDelta$
6883
+ ];
6884
+ ToolResultContentBlocks = [
6885
+ 1,
6886
+ n0,
6887
+ _TRCB,
6888
+ 0,
6889
+ [
6890
+ () => ToolResultContentBlock$,
6891
+ 0
6892
+ ]
6893
+ ];
6894
+ Tools = [
6895
+ 1,
6896
+ n0,
6897
+ _To,
6898
+ 0,
6899
+ () => Tool$
6900
+ ];
6901
+ GuardrailAssessmentListMap = [
6902
+ 2,
6903
+ n0,
6904
+ _GALM,
6905
+ 0,
6906
+ [
6907
+ 0,
6908
+ 0
6909
+ ],
6910
+ [
6911
+ () => GuardrailAssessmentList,
6912
+ 0
6913
+ ]
6914
+ ];
6915
+ GuardrailAssessmentMap = [
6916
+ 2,
6917
+ n0,
6918
+ _GAM,
6919
+ 0,
6920
+ [
6921
+ 0,
6922
+ 0
6923
+ ],
6924
+ [
6925
+ () => GuardrailAssessment$,
6926
+ 0
6927
+ ]
6928
+ ];
6929
+ PromptVariableMap = [
6930
+ 2,
6931
+ n0,
6932
+ _PVM,
6933
+ 8,
6934
+ 0,
6935
+ () => PromptVariableValues$
6936
+ ];
6937
+ RequestMetadata = [
6938
+ 2,
6939
+ n0,
6940
+ _RM,
6941
+ 8,
6942
+ 0,
6943
+ 0
6944
+ ];
6945
+ AsyncInvokeOutputDataConfig$ = [
6946
+ 4,
6947
+ n0,
6948
+ _AIODC,
6949
+ 0,
6950
+ [_sODC],
6951
+ [() => AsyncInvokeS3OutputDataConfig$]
6952
+ ];
6953
+ AudioSource$ = [
6954
+ 4,
6955
+ n0,
6956
+ _AS,
6957
+ 8,
6958
+ [_b, _sL],
6959
+ [21, () => S3Location$]
6960
+ ];
6961
+ CitationGeneratedContent$ = [
6962
+ 4,
6963
+ n0,
6964
+ _CGC,
6965
+ 0,
6966
+ [_te],
6967
+ [0]
6968
+ ];
6969
+ CitationLocation$ = [
6970
+ 4,
6971
+ n0,
6972
+ _CL,
6973
+ 0,
6974
+ [_w, _dC, _dP, _dCo, _sRL],
6975
+ [() => WebLocation$, () => DocumentCharLocation$, () => DocumentPageLocation$, () => DocumentChunkLocation$, () => SearchResultLocation$]
6976
+ ];
6977
+ CitationSourceContent$ = [
6978
+ 4,
6979
+ n0,
6980
+ _CSC,
6981
+ 0,
6982
+ [_te],
6983
+ [0]
6984
+ ];
6985
+ ContentBlock$ = [
6986
+ 4,
6987
+ n0,
6988
+ _CBo,
6989
+ 0,
6990
+ [_te, _ima, _doc, _vi, _au, _tU, _tR, _gCua, _cPa, _rC, _cC, _sRe],
6991
+ [0, [() => ImageBlock$, 0], () => DocumentBlock$, () => VideoBlock$, [() => AudioBlock$, 0], () => ToolUseBlock$, [() => ToolResultBlock$, 0], [() => GuardrailConverseContentBlock$, 0], () => CachePointBlock$, [() => ReasoningContentBlock$, 0], () => CitationsContentBlock$, () => SearchResultBlock$]
6992
+ ];
6993
+ ContentBlockDelta$ = [
6994
+ 4,
6995
+ n0,
6996
+ _CBD,
6997
+ 0,
6998
+ [_te, _tU, _tR, _rC, _cit, _ima],
6999
+ [0, () => ToolUseBlockDelta$, () => ToolResultBlocksDelta, [() => ReasoningContentBlockDelta$, 0], () => CitationsDelta$, [() => ImageBlockDelta$, 0]]
7000
+ ];
7001
+ ContentBlockStart$ = [
7002
+ 4,
7003
+ n0,
7004
+ _CBS,
7005
+ 0,
7006
+ [_tU, _tR, _ima],
7007
+ [() => ToolUseBlockStart$, () => ToolResultBlockStart$, () => ImageBlockStart$]
7008
+ ];
7009
+ ConverseOutput$ = [
7010
+ 4,
7011
+ n0,
7012
+ _CO,
7013
+ 0,
7014
+ [_m],
7015
+ [[() => Message$, 0]]
7016
+ ];
7017
+ ConverseStreamOutput$ = [
7018
+ 4,
7019
+ n0,
7020
+ _CSO,
7021
+ { [_stre]: 1 },
7022
+ [_mS, _cBS, _cBD, _cBSo, _mSe, _meta, _iSE, _mSEE, _vE, _tE, _sUE],
7023
+ [() => MessageStartEvent$, () => ContentBlockStartEvent$, [() => ContentBlockDeltaEvent$, 0], () => ContentBlockStopEvent$, () => MessageStopEvent$, [() => ConverseStreamMetadataEvent$, 0], [() => InternalServerException$, 0], [() => ModelStreamErrorException$, 0], [() => ValidationException$, 0], [() => ThrottlingException$, 0], [() => ServiceUnavailableException$, 0]]
7024
+ ];
7025
+ CountTokensInput$ = [
7026
+ 4,
7027
+ n0,
7028
+ _CTI,
7029
+ 0,
7030
+ [_iMn, _conv],
7031
+ [[() => InvokeModelTokensRequest$, 0], [() => ConverseTokensRequest$, 0]]
7032
+ ];
7033
+ DocumentContentBlock$ = [
7034
+ 4,
7035
+ n0,
7036
+ _DCBo,
7037
+ 0,
7038
+ [_te],
7039
+ [0]
7040
+ ];
7041
+ DocumentSource$ = [
7042
+ 4,
7043
+ n0,
7044
+ _DS,
7045
+ 0,
7046
+ [_b, _sL, _te, _co],
7047
+ [21, () => S3Location$, 0, () => DocumentContentBlocks]
7048
+ ];
7049
+ GuardrailAutomatedReasoningFinding$ = [
7050
+ 4,
7051
+ n0,
7052
+ _GARF,
7053
+ 0,
7054
+ [_va, _in, _sa, _imp, _tA, _tCoo, _nTo],
7055
+ [[() => GuardrailAutomatedReasoningValidFinding$, 0], [() => GuardrailAutomatedReasoningInvalidFinding$, 0], [() => GuardrailAutomatedReasoningSatisfiableFinding$, 0], [() => GuardrailAutomatedReasoningImpossibleFinding$, 0], [() => GuardrailAutomatedReasoningTranslationAmbiguousFinding$, 0], () => GuardrailAutomatedReasoningTooComplexFinding$, () => GuardrailAutomatedReasoningNoTranslationsFinding$]
7056
+ ];
7057
+ GuardrailContentBlock$ = [
7058
+ 4,
7059
+ n0,
7060
+ _GCB,
7061
+ 0,
7062
+ [_te, _ima],
7063
+ [() => GuardrailTextBlock$, [() => GuardrailImageBlock$, 0]]
7064
+ ];
7065
+ GuardrailConverseContentBlock$ = [
7066
+ 4,
7067
+ n0,
7068
+ _GCCB,
7069
+ 0,
7070
+ [_te, _ima],
7071
+ [() => GuardrailConverseTextBlock$, [() => GuardrailConverseImageBlock$, 0]]
7072
+ ];
7073
+ GuardrailConverseImageSource$ = [
7074
+ 4,
7075
+ n0,
7076
+ _GCIS,
7077
+ 8,
7078
+ [_b],
7079
+ [21]
7080
+ ];
7081
+ GuardrailImageSource$ = [
7082
+ 4,
7083
+ n0,
7084
+ _GIS,
7085
+ 8,
7086
+ [_b],
7087
+ [21]
7088
+ ];
7089
+ ImageSource$ = [
7090
+ 4,
7091
+ n0,
7092
+ _IS,
7093
+ 8,
7094
+ [_b, _sL],
7095
+ [21, () => S3Location$]
7096
+ ];
7097
+ InvokeModelWithBidirectionalStreamInput$ = [
7098
+ 4,
7099
+ n0,
7100
+ _IMWBSI,
7101
+ { [_stre]: 1 },
7102
+ [_ch],
7103
+ [[() => BidirectionalInputPayloadPart$, 0]]
7104
+ ];
7105
+ InvokeModelWithBidirectionalStreamOutput$ = [
7106
+ 4,
7107
+ n0,
7108
+ _IMWBSO,
7109
+ { [_stre]: 1 },
7110
+ [_ch, _iSE, _mSEE, _vE, _tE, _mTE, _sUE],
7111
+ [[() => BidirectionalOutputPayloadPart$, 0], [() => InternalServerException$, 0], [() => ModelStreamErrorException$, 0], [() => ValidationException$, 0], [() => ThrottlingException$, 0], [() => ModelTimeoutException$, 0], [() => ServiceUnavailableException$, 0]]
7112
+ ];
7113
+ OutputFormatStructure$ = [
7114
+ 4,
7115
+ n0,
7116
+ _OFS,
7117
+ 8,
7118
+ [_jS],
7119
+ [() => JsonSchemaDefinition$]
7120
+ ];
7121
+ PromptVariableValues$ = [
7122
+ 4,
7123
+ n0,
7124
+ _PVV,
7125
+ 0,
7126
+ [_te],
7127
+ [0]
7128
+ ];
7129
+ ReasoningContentBlock$ = [
7130
+ 4,
7131
+ n0,
7132
+ _RCB,
7133
+ 8,
7134
+ [_rT, _rCe],
7135
+ [[() => ReasoningTextBlock$, 0], 21]
7136
+ ];
7137
+ ReasoningContentBlockDelta$ = [
7138
+ 4,
7139
+ n0,
7140
+ _RCBD,
7141
+ 8,
7142
+ [_te, _rCe, _si],
7143
+ [0, 21, 0]
7144
+ ];
7145
+ ResponseStream$ = [
7146
+ 4,
7147
+ n0,
7148
+ _RS,
7149
+ { [_stre]: 1 },
7150
+ [_ch, _iSE, _mSEE, _vE, _tE, _mTE, _sUE],
7151
+ [[() => PayloadPart$, 0], [() => InternalServerException$, 0], [() => ModelStreamErrorException$, 0], [() => ValidationException$, 0], [() => ThrottlingException$, 0], [() => ModelTimeoutException$, 0], [() => ServiceUnavailableException$, 0]]
7152
+ ];
7153
+ SystemContentBlock$ = [
7154
+ 4,
7155
+ n0,
7156
+ _SCBy,
7157
+ 0,
7158
+ [_te, _gCua, _cPa],
7159
+ [0, [() => GuardrailConverseContentBlock$, 0], () => CachePointBlock$]
7160
+ ];
7161
+ Tool$ = [
7162
+ 4,
7163
+ n0,
7164
+ _Too,
7165
+ 0,
7166
+ [_tS, _sTy, _cPa],
7167
+ [() => ToolSpecification$, () => SystemTool$, () => CachePointBlock$]
7168
+ ];
7169
+ ToolChoice$ = [
7170
+ 4,
7171
+ n0,
7172
+ _TCo,
7173
+ 0,
7174
+ [_aut, _an, _tool],
7175
+ [() => AutoToolChoice$, () => AnyToolChoice$, () => SpecificToolChoice$]
7176
+ ];
7177
+ ToolInputSchema$ = [
7178
+ 4,
7179
+ n0,
7180
+ _TIS,
7181
+ 0,
7182
+ [_j],
7183
+ [15]
7184
+ ];
7185
+ ToolResultBlockDelta$ = [
7186
+ 4,
7187
+ n0,
7188
+ _TRBDo,
7189
+ 0,
7190
+ [_te, _j],
7191
+ [0, 15]
7192
+ ];
7193
+ ToolResultContentBlock$ = [
7194
+ 4,
7195
+ n0,
7196
+ _TRCBo,
7197
+ 0,
7198
+ [_j, _te, _ima, _doc, _vi, _sRe],
7199
+ [15, 0, [() => ImageBlock$, 0], () => DocumentBlock$, () => VideoBlock$, () => SearchResultBlock$]
7200
+ ];
7201
+ VideoSource$ = [
7202
+ 4,
7203
+ n0,
7204
+ _VS,
7205
+ 0,
7206
+ [_b, _sL],
7207
+ [21, () => S3Location$]
7208
+ ];
7209
+ ApplyGuardrail$ = [
7210
+ 9,
7211
+ n0,
7212
+ _AG,
7213
+ { [_h]: ["POST", "/guardrail/{guardrailIdentifier}/version/{guardrailVersion}/apply", 200] },
7214
+ () => ApplyGuardrailRequest$,
7215
+ () => ApplyGuardrailResponse$
7216
+ ];
7217
+ Converse$ = [
7218
+ 9,
7219
+ n0,
7220
+ _Co,
7221
+ { [_h]: ["POST", "/model/{modelId}/converse", 200] },
7222
+ () => ConverseRequest$,
7223
+ () => ConverseResponse$
7224
+ ];
7225
+ ConverseStream$ = [
7226
+ 9,
7227
+ n0,
7228
+ _CS,
7229
+ { [_h]: ["POST", "/model/{modelId}/converse-stream", 200] },
7230
+ () => ConverseStreamRequest$,
7231
+ () => ConverseStreamResponse$
7232
+ ];
7233
+ CountTokens$ = [
7234
+ 9,
7235
+ n0,
7236
+ _CTo,
7237
+ { [_h]: ["POST", "/model/{modelId}/count-tokens", 200] },
7238
+ () => CountTokensRequest$,
7239
+ () => CountTokensResponse$
7240
+ ];
7241
+ GetAsyncInvoke$ = [
7242
+ 9,
7243
+ n0,
7244
+ _GAI,
7245
+ { [_h]: ["GET", "/async-invoke/{invocationArn}", 200] },
7246
+ () => GetAsyncInvokeRequest$,
7247
+ () => GetAsyncInvokeResponse$
7248
+ ];
7249
+ InvokeModel$ = [
7250
+ 9,
7251
+ n0,
7252
+ _IM,
7253
+ { [_h]: ["POST", "/model/{modelId}/invoke", 200] },
7254
+ () => InvokeModelRequest$,
7255
+ () => InvokeModelResponse$
7256
+ ];
7257
+ InvokeModelWithBidirectionalStream$ = [
7258
+ 9,
7259
+ n0,
7260
+ _IMWBS,
7261
+ { [_h]: ["POST", "/model/{modelId}/invoke-with-bidirectional-stream", 200] },
7262
+ () => InvokeModelWithBidirectionalStreamRequest$,
7263
+ () => InvokeModelWithBidirectionalStreamResponse$
7264
+ ];
7265
+ InvokeModelWithResponseStream$ = [
7266
+ 9,
7267
+ n0,
7268
+ _IMWRS,
7269
+ { [_h]: ["POST", "/model/{modelId}/invoke-with-response-stream", 200] },
7270
+ () => InvokeModelWithResponseStreamRequest$,
7271
+ () => InvokeModelWithResponseStreamResponse$
7272
+ ];
7273
+ ListAsyncInvokes$ = [
7274
+ 9,
7275
+ n0,
7276
+ _LAI,
7277
+ { [_h]: ["GET", "/async-invoke", 200] },
7278
+ () => ListAsyncInvokesRequest$,
7279
+ () => ListAsyncInvokesResponse$
7280
+ ];
7281
+ StartAsyncInvoke$ = [
7282
+ 9,
7283
+ n0,
7284
+ _SAI,
7285
+ { [_h]: ["POST", "/async-invoke", 200] },
7286
+ () => StartAsyncInvokeRequest$,
7287
+ () => StartAsyncInvokeResponse$
7288
+ ];
7289
+ });
7290
+
7291
+ // node_modules/.bun/@aws-sdk+client-bedrock-runtime@3.1029.0/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/runtimeConfig.shared.js
7292
+ var import_httpAuthSchemes3, import_protocols, import_core2, import_smithy_client2, import_url_parser, import_util_base642, import_util_utf87, getRuntimeConfig = (config3) => {
7293
+ return {
7294
+ apiVersion: "2023-09-30",
7295
+ base64Decoder: config3?.base64Decoder ?? import_util_base642.fromBase64,
7296
+ base64Encoder: config3?.base64Encoder ?? import_util_base642.toBase64,
7297
+ disableHostPrefix: config3?.disableHostPrefix ?? false,
7298
+ endpointProvider: config3?.endpointProvider ?? defaultEndpointResolver,
7299
+ extensions: config3?.extensions ?? [],
7300
+ httpAuthSchemeProvider: config3?.httpAuthSchemeProvider ?? defaultBedrockRuntimeHttpAuthSchemeProvider,
7301
+ httpAuthSchemes: config3?.httpAuthSchemes ?? [
7302
+ {
7303
+ schemeId: "aws.auth#sigv4",
7304
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
7305
+ signer: new import_httpAuthSchemes3.AwsSdkSigV4Signer
7306
+ },
7307
+ {
7308
+ schemeId: "smithy.api#httpBearerAuth",
7309
+ identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#httpBearerAuth"),
7310
+ signer: new import_core2.HttpBearerAuthSigner
7311
+ }
7312
+ ],
7313
+ logger: config3?.logger ?? new import_smithy_client2.NoOpLogger,
7314
+ protocol: config3?.protocol ?? import_protocols.AwsRestJsonProtocol,
7315
+ protocolSettings: config3?.protocolSettings ?? {
7316
+ defaultNamespace: "com.amazonaws.bedrockruntime",
7317
+ errorTypeRegistries,
7318
+ version: "2023-09-30",
7319
+ serviceTarget: "AmazonBedrockFrontendService"
7320
+ },
7321
+ serviceId: config3?.serviceId ?? "Bedrock Runtime",
7322
+ urlParser: config3?.urlParser ?? import_url_parser.parseUrl,
7323
+ utf8Decoder: config3?.utf8Decoder ?? import_util_utf87.fromUtf8,
7324
+ utf8Encoder: config3?.utf8Encoder ?? import_util_utf87.toUtf8
7325
+ };
7326
+ };
7327
+ var init_runtimeConfig_shared = __esm(() => {
7328
+ init_httpAuthSchemeProvider();
7329
+ init_endpointResolver();
7330
+ init_schemas_0();
7331
+ import_httpAuthSchemes3 = __toESM(require_httpAuthSchemes(), 1);
7332
+ import_protocols = __toESM(require_protocols(), 1);
7333
+ import_core2 = __toESM(require_dist_cjs14(), 1);
7334
+ import_smithy_client2 = __toESM(require_dist_cjs24(), 1);
7335
+ import_url_parser = __toESM(require_dist_cjs13(), 1);
7336
+ import_util_base642 = __toESM(require_dist_cjs2(), 1);
7337
+ import_util_utf87 = __toESM(require_dist_cjs(), 1);
7338
+ });
7339
+
7340
+ // node_modules/.bun/@aws-sdk+client-bedrock-runtime@3.1029.0/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/runtimeConfig.js
7341
+ var import_client2, import_httpAuthSchemes4, import_util_user_agent_node, import_config_resolver, import_core3, import_hash_node, import_middleware_retry, import_node_config_provider, import_node_http_handler2, import_smithy_client3, import_util_body_length_node, import_util_defaults_mode_node, import_util_retry, getRuntimeConfig2 = (config3) => {
7342
+ import_smithy_client3.emitWarningIfUnsupportedVersion(process.version);
7343
+ const defaultsMode = import_util_defaults_mode_node.resolveDefaultsModeConfig(config3);
7344
+ const defaultConfigProvider = () => defaultsMode().then(import_smithy_client3.loadConfigsForDefaultMode);
7345
+ const clientSharedValues = getRuntimeConfig(config3);
7346
+ import_client2.emitWarningIfUnsupportedVersion(process.version);
7347
+ const loaderConfig = {
7348
+ profile: config3?.profile,
7349
+ logger: clientSharedValues.logger,
7350
+ signingName: "bedrock"
7351
+ };
7352
+ return {
7353
+ ...clientSharedValues,
7354
+ ...config3,
7355
+ runtime: "node",
7356
+ defaultsMode,
7357
+ authSchemePreference: config3?.authSchemePreference ?? import_node_config_provider.loadConfig(import_httpAuthSchemes4.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
7358
+ bodyLengthChecker: config3?.bodyLengthChecker ?? import_util_body_length_node.calculateBodyLength,
7359
+ credentialDefaultProvider: config3?.credentialDefaultProvider ?? defaultProvider,
7360
+ defaultUserAgentProvider: config3?.defaultUserAgentProvider ?? import_util_user_agent_node.createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: package_default.version }),
7361
+ eventStreamPayloadHandlerProvider: config3?.eventStreamPayloadHandlerProvider ?? eventStreamPayloadHandlerProvider2,
7362
+ eventStreamSerdeProvider: config3?.eventStreamSerdeProvider ?? eventStreamSerdeProvider,
7363
+ httpAuthSchemes: config3?.httpAuthSchemes ?? [
7364
+ {
7365
+ schemeId: "aws.auth#sigv4",
7366
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
7367
+ signer: new import_httpAuthSchemes4.AwsSdkSigV4Signer
7368
+ },
7369
+ {
7370
+ schemeId: "smithy.api#httpBearerAuth",
7371
+ identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#httpBearerAuth") || (async (idProps) => {
7372
+ try {
7373
+ return await fromEnvSigningName({ signingName: "bedrock" })();
7374
+ } catch (error) {
7375
+ return await nodeProvider(idProps)(idProps);
7376
+ }
7377
+ }),
7378
+ signer: new import_core3.HttpBearerAuthSigner
7379
+ }
7380
+ ],
7381
+ maxAttempts: config3?.maxAttempts ?? import_node_config_provider.loadConfig(import_middleware_retry.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config3),
7382
+ region: config3?.region ?? import_node_config_provider.loadConfig(import_config_resolver.NODE_REGION_CONFIG_OPTIONS, { ...import_config_resolver.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
7383
+ requestHandler: import_node_http_handler2.NodeHttp2Handler.create(config3?.requestHandler ?? (async () => ({
7384
+ ...await defaultConfigProvider(),
7385
+ disableConcurrentStreams: true
7386
+ }))),
7387
+ retryMode: config3?.retryMode ?? import_node_config_provider.loadConfig({
7388
+ ...import_middleware_retry.NODE_RETRY_MODE_CONFIG_OPTIONS,
7389
+ default: async () => (await defaultConfigProvider()).retryMode || import_util_retry.DEFAULT_RETRY_MODE
7390
+ }, config3),
7391
+ sha256: config3?.sha256 ?? import_hash_node.Hash.bind(null, "sha256"),
7392
+ streamCollector: config3?.streamCollector ?? import_node_http_handler2.streamCollector,
7393
+ useDualstackEndpoint: config3?.useDualstackEndpoint ?? import_node_config_provider.loadConfig(import_config_resolver.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
7394
+ useFipsEndpoint: config3?.useFipsEndpoint ?? import_node_config_provider.loadConfig(import_config_resolver.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
7395
+ userAgentAppId: config3?.userAgentAppId ?? import_node_config_provider.loadConfig(import_util_user_agent_node.NODE_APP_ID_CONFIG_OPTIONS, loaderConfig)
7396
+ };
7397
+ };
7398
+ var init_runtimeConfig = __esm(() => {
7399
+ init_package();
7400
+ init_dist_es3();
7401
+ init_dist_es30();
7402
+ init_dist_es31();
7403
+ init_dist_es32();
7404
+ init_runtimeConfig_shared();
7405
+ import_client2 = __toESM(require_client(), 1);
7406
+ import_httpAuthSchemes4 = __toESM(require_httpAuthSchemes(), 1);
7407
+ import_util_user_agent_node = __toESM(require_dist_cjs26(), 1);
7408
+ import_config_resolver = __toESM(require_dist_cjs19(), 1);
7409
+ import_core3 = __toESM(require_dist_cjs14(), 1);
7410
+ import_hash_node = __toESM(require_dist_cjs27(), 1);
7411
+ import_middleware_retry = __toESM(require_dist_cjs25(), 1);
7412
+ import_node_config_provider = __toESM(require_dist_cjs22(), 1);
7413
+ import_node_http_handler2 = __toESM(require_dist_cjs12(), 1);
7414
+ import_smithy_client3 = __toESM(require_dist_cjs24(), 1);
7415
+ import_util_body_length_node = __toESM(require_dist_cjs4(), 1);
7416
+ import_util_defaults_mode_node = __toESM(require_dist_cjs28(), 1);
7417
+ import_util_retry = __toESM(require_dist_cjs17(), 1);
7418
+ });
7419
+
7420
+ // node_modules/.bun/@aws-sdk+client-bedrock-runtime@3.1029.0/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/auth/httpAuthExtensionConfiguration.js
7421
+ var getHttpAuthExtensionConfiguration = (runtimeConfig) => {
7422
+ const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
7423
+ let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
7424
+ let _credentials = runtimeConfig.credentials;
7425
+ let _token = runtimeConfig.token;
7426
+ return {
7427
+ setHttpAuthScheme(httpAuthScheme) {
7428
+ const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
7429
+ if (index === -1) {
7430
+ _httpAuthSchemes.push(httpAuthScheme);
7431
+ } else {
7432
+ _httpAuthSchemes.splice(index, 1, httpAuthScheme);
7433
+ }
7434
+ },
7435
+ httpAuthSchemes() {
7436
+ return _httpAuthSchemes;
7437
+ },
7438
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
7439
+ _httpAuthSchemeProvider = httpAuthSchemeProvider;
7440
+ },
7441
+ httpAuthSchemeProvider() {
7442
+ return _httpAuthSchemeProvider;
7443
+ },
7444
+ setCredentials(credentials) {
7445
+ _credentials = credentials;
7446
+ },
7447
+ credentials() {
7448
+ return _credentials;
7449
+ },
7450
+ setToken(token) {
7451
+ _token = token;
7452
+ },
7453
+ token() {
7454
+ return _token;
7455
+ }
7456
+ };
7457
+ }, resolveHttpAuthRuntimeConfig = (config3) => {
7458
+ return {
7459
+ httpAuthSchemes: config3.httpAuthSchemes(),
7460
+ httpAuthSchemeProvider: config3.httpAuthSchemeProvider(),
7461
+ credentials: config3.credentials(),
7462
+ token: config3.token()
7463
+ };
7464
+ };
7465
+ var init_httpAuthExtensionConfiguration = () => {};
7466
+
7467
+ // node_modules/.bun/@aws-sdk+client-bedrock-runtime@3.1029.0/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/runtimeExtensions.js
7468
+ var import_region_config_resolver, import_protocol_http8, import_smithy_client4, resolveRuntimeExtensions = (runtimeConfig, extensions5) => {
7469
+ const extensionConfiguration = Object.assign(import_region_config_resolver.getAwsRegionExtensionConfiguration(runtimeConfig), import_smithy_client4.getDefaultExtensionConfiguration(runtimeConfig), import_protocol_http8.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
7470
+ extensions5.forEach((extension) => extension.configure(extensionConfiguration));
7471
+ return Object.assign(runtimeConfig, import_region_config_resolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), import_smithy_client4.resolveDefaultRuntimeConfig(extensionConfiguration), import_protocol_http8.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
7472
+ };
7473
+ var init_runtimeExtensions = __esm(() => {
7474
+ init_httpAuthExtensionConfiguration();
7475
+ import_region_config_resolver = __toESM(require_dist_cjs29(), 1);
7476
+ import_protocol_http8 = __toESM(require_dist_cjs5(), 1);
7477
+ import_smithy_client4 = __toESM(require_dist_cjs24(), 1);
7478
+ });
7479
+
7480
+ // node_modules/.bun/@aws-sdk+client-bedrock-runtime@3.1029.0/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/BedrockRuntimeClient.js
7481
+ var import_middleware_host_header, import_middleware_logger, import_middleware_recursion_detection, import_middleware_user_agent, import_config_resolver2, import_core4, import_schema2, import_middleware_content_length, import_middleware_endpoint, import_middleware_retry2, import_smithy_client5, BedrockRuntimeClient;
7482
+ var init_BedrockRuntimeClient = __esm(() => {
7483
+ init_dist_es25();
7484
+ init_dist_es28();
7485
+ init_dist_es29();
7486
+ init_httpAuthSchemeProvider();
7487
+ init_EndpointParameters();
7488
+ init_runtimeConfig();
7489
+ init_runtimeExtensions();
7490
+ import_middleware_host_header = __toESM(require_dist_cjs8(), 1);
7491
+ import_middleware_logger = __toESM(require_dist_cjs9(), 1);
7492
+ import_middleware_recursion_detection = __toESM(require_dist_cjs10(), 1);
7493
+ import_middleware_user_agent = __toESM(require_dist_cjs18(), 1);
7494
+ import_config_resolver2 = __toESM(require_dist_cjs19(), 1);
7495
+ import_core4 = __toESM(require_dist_cjs14(), 1);
7496
+ import_schema2 = __toESM(require_schema(), 1);
7497
+ import_middleware_content_length = __toESM(require_dist_cjs20(), 1);
7498
+ import_middleware_endpoint = __toESM(require_dist_cjs23(), 1);
7499
+ import_middleware_retry2 = __toESM(require_dist_cjs25(), 1);
7500
+ import_smithy_client5 = __toESM(require_dist_cjs24(), 1);
7501
+ BedrockRuntimeClient = class BedrockRuntimeClient extends import_smithy_client5.Client {
7502
+ config;
7503
+ constructor(...[configuration]) {
7504
+ const _config_0 = getRuntimeConfig2(configuration || {});
7505
+ super(_config_0);
7506
+ this.initConfig = _config_0;
7507
+ const _config_1 = resolveClientEndpointParameters(_config_0);
7508
+ const _config_2 = import_middleware_user_agent.resolveUserAgentConfig(_config_1);
7509
+ const _config_3 = import_middleware_retry2.resolveRetryConfig(_config_2);
7510
+ const _config_4 = import_config_resolver2.resolveRegionConfig(_config_3);
7511
+ const _config_5 = import_middleware_host_header.resolveHostHeaderConfig(_config_4);
7512
+ const _config_6 = import_middleware_endpoint.resolveEndpointConfig(_config_5);
7513
+ const _config_7 = resolveEventStreamSerdeConfig(_config_6);
7514
+ const _config_8 = resolveHttpAuthSchemeConfig(_config_7);
7515
+ const _config_9 = resolveEventStreamConfig(_config_8);
7516
+ const _config_10 = resolveWebSocketConfig(_config_9);
7517
+ const _config_11 = resolveRuntimeExtensions(_config_10, configuration?.extensions || []);
7518
+ this.config = _config_11;
7519
+ this.middlewareStack.use(import_schema2.getSchemaSerdePlugin(this.config));
7520
+ this.middlewareStack.use(import_middleware_user_agent.getUserAgentPlugin(this.config));
7521
+ this.middlewareStack.use(import_middleware_retry2.getRetryPlugin(this.config));
7522
+ this.middlewareStack.use(import_middleware_content_length.getContentLengthPlugin(this.config));
7523
+ this.middlewareStack.use(import_middleware_host_header.getHostHeaderPlugin(this.config));
7524
+ this.middlewareStack.use(import_middleware_logger.getLoggerPlugin(this.config));
7525
+ this.middlewareStack.use(import_middleware_recursion_detection.getRecursionDetectionPlugin(this.config));
7526
+ this.middlewareStack.use(import_core4.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
7527
+ httpAuthSchemeParametersProvider: defaultBedrockRuntimeHttpAuthSchemeParametersProvider,
7528
+ identityProviderConfigProvider: async (config3) => new import_core4.DefaultIdentityProviderConfig({
7529
+ "aws.auth#sigv4": config3.credentials,
7530
+ "smithy.api#httpBearerAuth": config3.token
7531
+ })
7532
+ }));
7533
+ this.middlewareStack.use(import_core4.getHttpSigningPlugin(this.config));
7534
+ }
7535
+ destroy() {
7536
+ super.destroy();
7537
+ }
7538
+ };
7539
+ });
7540
+
7541
+ // node_modules/.bun/@aws-sdk+client-bedrock-runtime@3.1029.0/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/commands/ApplyGuardrailCommand.js
7542
+ var import_middleware_endpoint2, import_smithy_client6, ApplyGuardrailCommand;
7543
+ var init_ApplyGuardrailCommand = __esm(() => {
7544
+ init_EndpointParameters();
7545
+ init_schemas_0();
7546
+ import_middleware_endpoint2 = __toESM(require_dist_cjs23(), 1);
7547
+ import_smithy_client6 = __toESM(require_dist_cjs24(), 1);
7548
+ ApplyGuardrailCommand = class ApplyGuardrailCommand extends import_smithy_client6.Command.classBuilder().ep(commonParams).m(function(Command, cs, config3, o2) {
7549
+ return [import_middleware_endpoint2.getEndpointPlugin(config3, Command.getEndpointParameterInstructions())];
7550
+ }).s("AmazonBedrockFrontendService", "ApplyGuardrail", {}).n("BedrockRuntimeClient", "ApplyGuardrailCommand").sc(ApplyGuardrail$).build() {
7551
+ };
7552
+ });
7553
+
7554
+ // node_modules/.bun/@aws-sdk+client-bedrock-runtime@3.1029.0/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/commands/ConverseCommand.js
7555
+ var import_middleware_endpoint3, import_smithy_client7, ConverseCommand;
7556
+ var init_ConverseCommand = __esm(() => {
7557
+ init_EndpointParameters();
7558
+ init_schemas_0();
7559
+ import_middleware_endpoint3 = __toESM(require_dist_cjs23(), 1);
7560
+ import_smithy_client7 = __toESM(require_dist_cjs24(), 1);
7561
+ ConverseCommand = class ConverseCommand extends import_smithy_client7.Command.classBuilder().ep(commonParams).m(function(Command, cs, config3, o2) {
7562
+ return [import_middleware_endpoint3.getEndpointPlugin(config3, Command.getEndpointParameterInstructions())];
7563
+ }).s("AmazonBedrockFrontendService", "Converse", {}).n("BedrockRuntimeClient", "ConverseCommand").sc(Converse$).build() {
7564
+ };
7565
+ });
7566
+
7567
+ // node_modules/.bun/@aws-sdk+client-bedrock-runtime@3.1029.0/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/commands/ConverseStreamCommand.js
7568
+ var import_middleware_endpoint4, import_smithy_client8, ConverseStreamCommand;
7569
+ var init_ConverseStreamCommand = __esm(() => {
7570
+ init_EndpointParameters();
7571
+ init_schemas_0();
7572
+ import_middleware_endpoint4 = __toESM(require_dist_cjs23(), 1);
7573
+ import_smithy_client8 = __toESM(require_dist_cjs24(), 1);
7574
+ ConverseStreamCommand = class ConverseStreamCommand extends import_smithy_client8.Command.classBuilder().ep(commonParams).m(function(Command, cs, config3, o2) {
7575
+ return [import_middleware_endpoint4.getEndpointPlugin(config3, Command.getEndpointParameterInstructions())];
7576
+ }).s("AmazonBedrockFrontendService", "ConverseStream", {
7577
+ eventStream: {
7578
+ output: true
7579
+ }
7580
+ }).n("BedrockRuntimeClient", "ConverseStreamCommand").sc(ConverseStream$).build() {
7581
+ };
7582
+ });
7583
+
7584
+ // node_modules/.bun/@aws-sdk+client-bedrock-runtime@3.1029.0/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/commands/CountTokensCommand.js
7585
+ var import_middleware_endpoint5, import_smithy_client9, CountTokensCommand;
7586
+ var init_CountTokensCommand = __esm(() => {
7587
+ init_EndpointParameters();
7588
+ init_schemas_0();
7589
+ import_middleware_endpoint5 = __toESM(require_dist_cjs23(), 1);
7590
+ import_smithy_client9 = __toESM(require_dist_cjs24(), 1);
7591
+ CountTokensCommand = class CountTokensCommand extends import_smithy_client9.Command.classBuilder().ep(commonParams).m(function(Command, cs, config3, o2) {
7592
+ return [import_middleware_endpoint5.getEndpointPlugin(config3, Command.getEndpointParameterInstructions())];
7593
+ }).s("AmazonBedrockFrontendService", "CountTokens", {}).n("BedrockRuntimeClient", "CountTokensCommand").sc(CountTokens$).build() {
7594
+ };
7595
+ });
7596
+
7597
+ // node_modules/.bun/@aws-sdk+client-bedrock-runtime@3.1029.0/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/commands/GetAsyncInvokeCommand.js
7598
+ var import_middleware_endpoint6, import_smithy_client10, GetAsyncInvokeCommand;
7599
+ var init_GetAsyncInvokeCommand = __esm(() => {
7600
+ init_EndpointParameters();
7601
+ init_schemas_0();
7602
+ import_middleware_endpoint6 = __toESM(require_dist_cjs23(), 1);
7603
+ import_smithy_client10 = __toESM(require_dist_cjs24(), 1);
7604
+ GetAsyncInvokeCommand = class GetAsyncInvokeCommand extends import_smithy_client10.Command.classBuilder().ep(commonParams).m(function(Command, cs, config3, o2) {
7605
+ return [import_middleware_endpoint6.getEndpointPlugin(config3, Command.getEndpointParameterInstructions())];
7606
+ }).s("AmazonBedrockFrontendService", "GetAsyncInvoke", {}).n("BedrockRuntimeClient", "GetAsyncInvokeCommand").sc(GetAsyncInvoke$).build() {
7607
+ };
7608
+ });
7609
+
7610
+ // node_modules/.bun/@aws-sdk+client-bedrock-runtime@3.1029.0/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/commands/InvokeModelCommand.js
7611
+ var import_middleware_endpoint7, import_smithy_client11, InvokeModelCommand;
7612
+ var init_InvokeModelCommand = __esm(() => {
7613
+ init_EndpointParameters();
7614
+ init_schemas_0();
7615
+ import_middleware_endpoint7 = __toESM(require_dist_cjs23(), 1);
7616
+ import_smithy_client11 = __toESM(require_dist_cjs24(), 1);
7617
+ InvokeModelCommand = class InvokeModelCommand extends import_smithy_client11.Command.classBuilder().ep(commonParams).m(function(Command, cs, config3, o2) {
7618
+ return [import_middleware_endpoint7.getEndpointPlugin(config3, Command.getEndpointParameterInstructions())];
7619
+ }).s("AmazonBedrockFrontendService", "InvokeModel", {}).n("BedrockRuntimeClient", "InvokeModelCommand").sc(InvokeModel$).build() {
7620
+ };
7621
+ });
7622
+
7623
+ // node_modules/.bun/@aws-sdk+client-bedrock-runtime@3.1029.0/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/commands/InvokeModelWithBidirectionalStreamCommand.js
7624
+ var import_middleware_endpoint8, import_smithy_client12, InvokeModelWithBidirectionalStreamCommand;
7625
+ var init_InvokeModelWithBidirectionalStreamCommand = __esm(() => {
7626
+ init_dist_es25();
7627
+ init_dist_es28();
7628
+ init_EndpointParameters();
7629
+ init_schemas_0();
7630
+ import_middleware_endpoint8 = __toESM(require_dist_cjs23(), 1);
7631
+ import_smithy_client12 = __toESM(require_dist_cjs24(), 1);
7632
+ InvokeModelWithBidirectionalStreamCommand = class InvokeModelWithBidirectionalStreamCommand extends import_smithy_client12.Command.classBuilder().ep(commonParams).m(function(Command, cs, config3, o2) {
7633
+ return [
7634
+ import_middleware_endpoint8.getEndpointPlugin(config3, Command.getEndpointParameterInstructions()),
7635
+ getEventStreamPlugin(config3),
7636
+ getWebSocketPlugin(config3, {
7637
+ headerPrefix: "x-amz-bedrock-"
7638
+ })
7639
+ ];
7640
+ }).s("AmazonBedrockFrontendService", "InvokeModelWithBidirectionalStream", {
7641
+ eventStream: {
7642
+ input: true,
7643
+ output: true
7644
+ }
7645
+ }).n("BedrockRuntimeClient", "InvokeModelWithBidirectionalStreamCommand").sc(InvokeModelWithBidirectionalStream$).build() {
7646
+ };
7647
+ });
7648
+
7649
+ // node_modules/.bun/@aws-sdk+client-bedrock-runtime@3.1029.0/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/commands/InvokeModelWithResponseStreamCommand.js
7650
+ var import_middleware_endpoint9, import_smithy_client13, InvokeModelWithResponseStreamCommand;
7651
+ var init_InvokeModelWithResponseStreamCommand = __esm(() => {
7652
+ init_EndpointParameters();
7653
+ init_schemas_0();
7654
+ import_middleware_endpoint9 = __toESM(require_dist_cjs23(), 1);
7655
+ import_smithy_client13 = __toESM(require_dist_cjs24(), 1);
7656
+ InvokeModelWithResponseStreamCommand = class InvokeModelWithResponseStreamCommand extends import_smithy_client13.Command.classBuilder().ep(commonParams).m(function(Command, cs, config3, o2) {
7657
+ return [import_middleware_endpoint9.getEndpointPlugin(config3, Command.getEndpointParameterInstructions())];
7658
+ }).s("AmazonBedrockFrontendService", "InvokeModelWithResponseStream", {
7659
+ eventStream: {
7660
+ output: true
7661
+ }
7662
+ }).n("BedrockRuntimeClient", "InvokeModelWithResponseStreamCommand").sc(InvokeModelWithResponseStream$).build() {
7663
+ };
7664
+ });
7665
+
7666
+ // node_modules/.bun/@aws-sdk+client-bedrock-runtime@3.1029.0/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/commands/ListAsyncInvokesCommand.js
7667
+ var import_middleware_endpoint10, import_smithy_client14, ListAsyncInvokesCommand;
7668
+ var init_ListAsyncInvokesCommand = __esm(() => {
7669
+ init_EndpointParameters();
7670
+ init_schemas_0();
7671
+ import_middleware_endpoint10 = __toESM(require_dist_cjs23(), 1);
7672
+ import_smithy_client14 = __toESM(require_dist_cjs24(), 1);
7673
+ ListAsyncInvokesCommand = class ListAsyncInvokesCommand extends import_smithy_client14.Command.classBuilder().ep(commonParams).m(function(Command, cs, config3, o2) {
7674
+ return [import_middleware_endpoint10.getEndpointPlugin(config3, Command.getEndpointParameterInstructions())];
7675
+ }).s("AmazonBedrockFrontendService", "ListAsyncInvokes", {}).n("BedrockRuntimeClient", "ListAsyncInvokesCommand").sc(ListAsyncInvokes$).build() {
7676
+ };
7677
+ });
7678
+
7679
+ // node_modules/.bun/@aws-sdk+client-bedrock-runtime@3.1029.0/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/commands/StartAsyncInvokeCommand.js
7680
+ var import_middleware_endpoint11, import_smithy_client15, StartAsyncInvokeCommand;
7681
+ var init_StartAsyncInvokeCommand = __esm(() => {
7682
+ init_EndpointParameters();
7683
+ init_schemas_0();
7684
+ import_middleware_endpoint11 = __toESM(require_dist_cjs23(), 1);
7685
+ import_smithy_client15 = __toESM(require_dist_cjs24(), 1);
7686
+ StartAsyncInvokeCommand = class StartAsyncInvokeCommand extends import_smithy_client15.Command.classBuilder().ep(commonParams).m(function(Command, cs, config3, o2) {
7687
+ return [import_middleware_endpoint11.getEndpointPlugin(config3, Command.getEndpointParameterInstructions())];
7688
+ }).s("AmazonBedrockFrontendService", "StartAsyncInvoke", {}).n("BedrockRuntimeClient", "StartAsyncInvokeCommand").sc(StartAsyncInvoke$).build() {
7689
+ };
7690
+ });
7691
+
7692
+ // node_modules/.bun/@aws-sdk+client-bedrock-runtime@3.1029.0/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/pagination/ListAsyncInvokesPaginator.js
7693
+ var import_core5, paginateListAsyncInvokes;
7694
+ var init_ListAsyncInvokesPaginator = __esm(() => {
7695
+ init_BedrockRuntimeClient();
7696
+ init_ListAsyncInvokesCommand();
7697
+ import_core5 = __toESM(require_dist_cjs14(), 1);
7698
+ paginateListAsyncInvokes = import_core5.createPaginator(BedrockRuntimeClient, ListAsyncInvokesCommand, "nextToken", "nextToken", "maxResults");
7699
+ });
7700
+
7701
+ // node_modules/.bun/@aws-sdk+client-bedrock-runtime@3.1029.0/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/BedrockRuntime.js
7702
+ var import_smithy_client16, commands, paginators, BedrockRuntime;
7703
+ var init_BedrockRuntime = __esm(() => {
7704
+ init_BedrockRuntimeClient();
7705
+ init_ApplyGuardrailCommand();
7706
+ init_ConverseCommand();
7707
+ init_ConverseStreamCommand();
7708
+ init_CountTokensCommand();
7709
+ init_GetAsyncInvokeCommand();
7710
+ init_InvokeModelCommand();
7711
+ init_InvokeModelWithBidirectionalStreamCommand();
7712
+ init_InvokeModelWithResponseStreamCommand();
7713
+ init_ListAsyncInvokesCommand();
7714
+ init_StartAsyncInvokeCommand();
7715
+ init_ListAsyncInvokesPaginator();
7716
+ import_smithy_client16 = __toESM(require_dist_cjs24(), 1);
7717
+ commands = {
7718
+ ApplyGuardrailCommand,
7719
+ ConverseCommand,
7720
+ ConverseStreamCommand,
7721
+ CountTokensCommand,
7722
+ GetAsyncInvokeCommand,
7723
+ InvokeModelCommand,
7724
+ InvokeModelWithBidirectionalStreamCommand,
7725
+ InvokeModelWithResponseStreamCommand,
7726
+ ListAsyncInvokesCommand,
7727
+ StartAsyncInvokeCommand
7728
+ };
7729
+ paginators = {
7730
+ paginateListAsyncInvokes
7731
+ };
7732
+ BedrockRuntime = class BedrockRuntime extends BedrockRuntimeClient {
7733
+ };
7734
+ import_smithy_client16.createAggregatedClient(commands, BedrockRuntime, { paginators });
7735
+ });
7736
+
7737
+ // node_modules/.bun/@aws-sdk+client-bedrock-runtime@3.1029.0/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/commands/index.js
7738
+ var init_commands = __esm(() => {
7739
+ init_ApplyGuardrailCommand();
7740
+ init_ConverseCommand();
7741
+ init_ConverseStreamCommand();
7742
+ init_CountTokensCommand();
7743
+ init_GetAsyncInvokeCommand();
7744
+ init_InvokeModelCommand();
7745
+ init_InvokeModelWithBidirectionalStreamCommand();
7746
+ init_InvokeModelWithResponseStreamCommand();
7747
+ init_ListAsyncInvokesCommand();
7748
+ init_StartAsyncInvokeCommand();
7749
+ });
7750
+
7751
+ // node_modules/.bun/@aws-sdk+client-bedrock-runtime@3.1029.0/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/pagination/Interfaces.js
7752
+ var init_Interfaces = () => {};
7753
+
7754
+ // node_modules/.bun/@aws-sdk+client-bedrock-runtime@3.1029.0/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/pagination/index.js
7755
+ var init_pagination3 = __esm(() => {
7756
+ init_Interfaces();
7757
+ init_ListAsyncInvokesPaginator();
7758
+ });
7759
+
7760
+ // node_modules/.bun/@aws-sdk+client-bedrock-runtime@3.1029.0/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/models/enums.js
7761
+ var init_enums = () => {};
7762
+
7763
+ // node_modules/.bun/@aws-sdk+client-bedrock-runtime@3.1029.0/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/models/models_0.js
7764
+ var init_models_0 = () => {};
7765
+
7766
+ // node_modules/.bun/@aws-sdk+client-bedrock-runtime@3.1029.0/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/index.js
7767
+ var init_dist_es33 = __esm(() => {
7768
+ init_BedrockRuntimeClient();
7769
+ init_BedrockRuntime();
7770
+ init_commands();
7771
+ init_schemas_0();
7772
+ init_pagination3();
7773
+ init_enums();
7774
+ init_errors();
7775
+ init_models_0();
7776
+ });
7777
+
7778
+ // node_modules/.bun/@anthropic-ai+bedrock-sdk@0.26.4+3c5d820c62823f0b/node_modules/@anthropic-ai/bedrock-sdk/AWS_restJson1.mjs
7779
+ var de_InternalServerExceptionRes = async (parsedOutput, context) => {
7780
+ const contents = map({});
7781
+ const data = parsedOutput.body;
7782
+ const doc = take(data, {
7783
+ message: expectString
7784
+ });
7785
+ Object.assign(contents, doc);
7786
+ const exception = new InternalServerException({
7787
+ $metadata: deserializeMetadata(parsedOutput),
7788
+ ...contents
7789
+ });
7790
+ return decorateServiceException(exception, parsedOutput.body);
7791
+ }, de_ModelStreamErrorExceptionRes = async (parsedOutput, context) => {
7792
+ const contents = map({});
7793
+ const data = parsedOutput.body;
7794
+ const doc = take(data, {
7795
+ message: expectString,
7796
+ originalMessage: expectString,
7797
+ originalStatusCode: expectInt32
7798
+ });
7799
+ Object.assign(contents, doc);
7800
+ const exception = new ModelStreamErrorException({
7801
+ $metadata: deserializeMetadata(parsedOutput),
7802
+ ...contents
7803
+ });
7804
+ return decorateServiceException(exception, parsedOutput.body);
7805
+ }, de_ThrottlingExceptionRes = async (parsedOutput, context) => {
7806
+ const contents = map({});
7807
+ const data = parsedOutput.body;
7808
+ const doc = take(data, {
7809
+ message: expectString
7810
+ });
7811
+ Object.assign(contents, doc);
7812
+ const exception = new ThrottlingException({
7813
+ $metadata: deserializeMetadata(parsedOutput),
7814
+ ...contents
7815
+ });
7816
+ return decorateServiceException(exception, parsedOutput.body);
7817
+ }, de_ValidationExceptionRes = async (parsedOutput, context) => {
7818
+ const contents = map({});
7819
+ const data = parsedOutput.body;
7820
+ const doc = take(data, {
7821
+ message: expectString
7822
+ });
7823
+ Object.assign(contents, doc);
7824
+ const exception = new ValidationException({
7825
+ $metadata: deserializeMetadata(parsedOutput),
7826
+ ...contents
7827
+ });
7828
+ return decorateServiceException(exception, parsedOutput.body);
7829
+ }, de_ResponseStream = (output, context) => {
7830
+ return context.eventStreamMarshaller.deserialize(output, async (event) => {
7831
+ if (event["chunk"] != null) {
7832
+ return {
7833
+ chunk: await de_PayloadPart_event(event["chunk"], context)
7834
+ };
7835
+ }
7836
+ if (event["internalServerException"] != null) {
7837
+ return {
7838
+ internalServerException: await de_InternalServerException_event(event["internalServerException"], context)
7839
+ };
7840
+ }
7841
+ if (event["modelStreamErrorException"] != null) {
7842
+ return {
7843
+ modelStreamErrorException: await de_ModelStreamErrorException_event(event["modelStreamErrorException"], context)
7844
+ };
7845
+ }
7846
+ if (event["validationException"] != null) {
7847
+ return {
7848
+ validationException: await de_ValidationException_event(event["validationException"], context)
7849
+ };
7850
+ }
7851
+ if (event["throttlingException"] != null) {
7852
+ return {
7853
+ throttlingException: await de_ThrottlingException_event(event["throttlingException"], context)
7854
+ };
7855
+ }
7856
+ return { $unknown: output };
7857
+ });
7858
+ }, de_InternalServerException_event = async (output, context) => {
7859
+ const parsedOutput = {
7860
+ ...output,
7861
+ body: await parseBody(output.body, context)
7862
+ };
7863
+ return de_InternalServerExceptionRes(parsedOutput, context);
7864
+ }, de_ModelStreamErrorException_event = async (output, context) => {
7865
+ const parsedOutput = {
7866
+ ...output,
7867
+ body: await parseBody(output.body, context)
7868
+ };
7869
+ return de_ModelStreamErrorExceptionRes(parsedOutput, context);
7870
+ }, de_PayloadPart_event = async (output, context) => {
7871
+ const contents = {};
7872
+ const data = await parseBody(output.body, context);
7873
+ Object.assign(contents, de_PayloadPart(data, context));
7874
+ return contents;
7875
+ }, de_ThrottlingException_event = async (output, context) => {
7876
+ const parsedOutput = {
7877
+ ...output,
7878
+ body: await parseBody(output.body, context)
7879
+ };
7880
+ return de_ThrottlingExceptionRes(parsedOutput, context);
7881
+ }, de_ValidationException_event = async (output, context) => {
7882
+ const parsedOutput = {
7883
+ ...output,
7884
+ body: await parseBody(output.body, context)
7885
+ };
7886
+ return de_ValidationExceptionRes(parsedOutput, context);
7887
+ }, de_PayloadPart = (output, context) => {
7888
+ return take(output, {
7889
+ bytes: context.base64Decoder
7890
+ });
7891
+ }, deserializeMetadata = (output) => ({
7892
+ httpStatusCode: output.statusCode,
7893
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"] ?? "",
7894
+ extendedRequestId: output.headers["x-amz-id-2"] ?? "",
7895
+ cfId: output.headers["x-amz-cf-id"] ?? ""
7896
+ }), collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body)), parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
7897
+ if (encoded.length) {
7898
+ return JSON.parse(encoded);
7899
+ }
7900
+ return {};
7901
+ });
7902
+ var init_AWS_restJson1 = __esm(() => {
7903
+ init_dist_es24();
7904
+ init_dist_es33();
7905
+ });
7906
+
7907
+ // node_modules/.bun/@anthropic-ai+bedrock-sdk@0.26.4+3c5d820c62823f0b/node_modules/@anthropic-ai/bedrock-sdk/internal/shims.mjs
7908
+ function ReadableStreamToAsyncIterable(stream3) {
7909
+ if (stream3[Symbol.asyncIterator])
7910
+ return stream3;
7911
+ const reader = stream3.getReader();
7912
+ return {
7913
+ async next() {
7914
+ try {
7915
+ const result = await reader.read();
7916
+ if (result?.done)
7917
+ reader.releaseLock();
7918
+ return result;
7919
+ } catch (e2) {
7920
+ reader.releaseLock();
7921
+ throw e2;
7922
+ }
7923
+ },
7924
+ async return() {
7925
+ const cancelPromise = reader.cancel();
7926
+ reader.releaseLock();
7927
+ await cancelPromise;
7928
+ return { done: true, value: undefined };
7929
+ },
7930
+ [Symbol.asyncIterator]() {
7931
+ return this;
7932
+ }
7933
+ };
7934
+ }
7935
+ var init_shims = () => {};
7936
+
7937
+ // node_modules/.bun/@anthropic-ai+bedrock-sdk@0.26.4+3c5d820c62823f0b/node_modules/@anthropic-ai/bedrock-sdk/core/error.mjs
7938
+ var init_error3 = __esm(() => {
7939
+ init_error();
7940
+ });
7941
+
7942
+ // node_modules/.bun/@anthropic-ai+bedrock-sdk@0.26.4+3c5d820c62823f0b/node_modules/@anthropic-ai/bedrock-sdk/internal/utils/values.mjs
7943
+ function isObj(obj) {
7944
+ return obj != null && typeof obj === "object" && !Array.isArray(obj);
7945
+ }
7946
+ var isArray = (val) => (isArray = Array.isArray, isArray(val)), isReadonlyArray, safeJSON = (text) => {
7947
+ try {
7948
+ return JSON.parse(text);
7949
+ } catch (err) {
7950
+ return;
7951
+ }
7952
+ };
7953
+ var init_values = __esm(() => {
7954
+ init_error3();
7955
+ isReadonlyArray = isArray;
7956
+ });
7957
+
7958
+ // node_modules/.bun/@anthropic-ai+bedrock-sdk@0.26.4+3c5d820c62823f0b/node_modules/@anthropic-ai/bedrock-sdk/internal/utils/log.mjs
7959
+ function noop() {}
7960
+ function makeLogFn(fnLevel, logger4, logLevel) {
7961
+ if (!logger4 || levelNumbers[fnLevel] > levelNumbers[logLevel]) {
7962
+ return noop;
7963
+ } else {
7964
+ return logger4[fnLevel].bind(logger4);
7965
+ }
7966
+ }
7967
+ function loggerFor(client4) {
7968
+ const logger4 = client4.logger;
7969
+ const logLevel = client4.logLevel ?? "off";
7970
+ if (!logger4) {
7971
+ return noopLogger;
7972
+ }
7973
+ const cachedLogger = cachedLoggers.get(logger4);
7974
+ if (cachedLogger && cachedLogger[0] === logLevel) {
7975
+ return cachedLogger[1];
7976
+ }
7977
+ const levelLogger = {
7978
+ error: makeLogFn("error", logger4, logLevel),
7979
+ warn: makeLogFn("warn", logger4, logLevel),
7980
+ info: makeLogFn("info", logger4, logLevel),
7981
+ debug: makeLogFn("debug", logger4, logLevel)
7982
+ };
7983
+ cachedLoggers.set(logger4, [logLevel, levelLogger]);
7984
+ return levelLogger;
7985
+ }
7986
+ var levelNumbers, noopLogger, cachedLoggers;
7987
+ var init_log = __esm(() => {
7988
+ init_values();
7989
+ levelNumbers = {
7990
+ off: 0,
7991
+ error: 200,
7992
+ warn: 300,
7993
+ info: 400,
7994
+ debug: 500
7995
+ };
7996
+ noopLogger = {
4040
7997
  error: noop,
4041
7998
  warn: noop,
4042
7999
  info: noop,
@@ -4049,13 +8006,13 @@ var init_log = __esm(() => {
4049
8006
  function isAbortError(err) {
4050
8007
  return typeof err === "object" && err !== null && (("name" in err) && err.name === "AbortError" || ("message" in err) && String(err.message).includes("FetchRequestCanceledException"));
4051
8008
  }
4052
- var import_fetch_http_handler2, toUtf83 = (input) => new TextDecoder("utf-8").decode(input), fromUtf84 = (input) => new TextEncoder().encode(input), getMinimalSerdeContext = () => {
4053
- const marshaller = new EventStreamMarshaller3({ utf8Encoder: toUtf83, utf8Decoder: fromUtf84 });
8009
+ var import_fetch_http_handler2, toUtf84 = (input) => new TextDecoder("utf-8").decode(input), fromUtf85 = (input) => new TextEncoder().encode(input), getMinimalSerdeContext = () => {
8010
+ const marshaller = new EventStreamMarshaller3({ utf8Encoder: toUtf84, utf8Decoder: fromUtf85 });
4054
8011
  return {
4055
8012
  base64Decoder: fromBase64,
4056
8013
  base64Encoder: toBase64,
4057
- utf8Decoder: fromUtf84,
4058
- utf8Encoder: toUtf83,
8014
+ utf8Decoder: fromUtf85,
8015
+ utf8Encoder: toUtf84,
4059
8016
  eventStreamMarshaller: marshaller,
4060
8017
  streamCollector: import_fetch_http_handler2.streamCollector
4061
8018
  };
@@ -4070,7 +8027,7 @@ var init_streaming2 = __esm(() => {
4070
8027
  init_shims();
4071
8028
  init_values();
4072
8029
  init_log();
4073
- import_fetch_http_handler2 = __toESM(require_dist_cjs(), 1);
8030
+ import_fetch_http_handler2 = __toESM(require_dist_cjs6(), 1);
4074
8031
  Stream2 = class Stream2 extends Stream {
4075
8032
  static fromSSEResponse(response3, controller, client4) {
4076
8033
  let consumed = false;
@@ -4084,8 +8041,8 @@ var init_streaming2 = __esm(() => {
4084
8041
  const eventStream3 = de_ResponseStream(responseBodyIter, getMinimalSerdeContext());
4085
8042
  for await (const event of eventStream3) {
4086
8043
  if (event.chunk && event.chunk.bytes) {
4087
- const s = toUtf83(event.chunk.bytes);
4088
- yield { event: "chunk", data: s, raw: [] };
8044
+ const s2 = toUtf84(event.chunk.bytes);
8045
+ yield { event: "chunk", data: s2, raw: [] };
4089
8046
  } else if (event.internalServerException) {
4090
8047
  yield { event: "error", data: "InternalServerException", raw: [] };
4091
8048
  } else if (event.modelStreamErrorException) {
@@ -4108,10 +8065,10 @@ var init_streaming2 = __esm(() => {
4108
8065
  if (sse.event === "chunk") {
4109
8066
  try {
4110
8067
  yield JSON.parse(sse.data);
4111
- } catch (e) {
8068
+ } catch (e2) {
4112
8069
  logger4.error(`Could not parse message into JSON:`, sse.data);
4113
8070
  logger4.error(`From chunk:`, sse.raw);
4114
- throw e;
8071
+ throw e2;
4115
8072
  }
4116
8073
  }
4117
8074
  if (sse.event === "error") {
@@ -4122,10 +8079,10 @@ var init_streaming2 = __esm(() => {
4122
8079
  }
4123
8080
  }
4124
8081
  done = true;
4125
- } catch (e) {
4126
- if (isAbortError(e))
8082
+ } catch (e2) {
8083
+ if (isAbortError(e2))
4127
8084
  return;
4128
- throw e;
8085
+ throw e2;
4129
8086
  } finally {
4130
8087
  if (!done)
4131
8088
  controller.abort();
@@ -4249,7 +8206,7 @@ var EMPTY, createPathTagFunction = (pathEncoder = encodeURIPath) => function pat
4249
8206
  error: `Value "${match[0]}" can't be safely passed as a path parameter`
4250
8207
  });
4251
8208
  }
4252
- invalidSegments.sort((a, b) => a.start - b.start);
8209
+ invalidSegments.sort((a2, b2) => a2.start - b2.start);
4253
8210
  if (invalidSegments.length > 0) {
4254
8211
  let lastEnd = 0;
4255
8212
  const underline = invalidSegments.reduce((acc, segment) => {
@@ -4259,7 +8216,7 @@ var EMPTY, createPathTagFunction = (pathEncoder = encodeURIPath) => function pat
4259
8216
  return acc + spaces + arrows;
4260
8217
  }, "");
4261
8218
  throw new AnthropicError(`Path parameters result in path with invalid segments:
4262
- ${invalidSegments.map((e) => e.error).join(`
8219
+ ${invalidSegments.map((e2) => e2.error).join(`
4263
8220
  `)}
4264
8221
  ${path2}
4265
8222
  ${underline}`);