gong-code 0.1.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 (374) hide show
  1. package/README.md +38 -0
  2. package/dist/SKILL-22jccbka.md +1 -0
  3. package/dist/chunk-01wdn84e.js +8 -0
  4. package/dist/chunk-04bc74vz.js +243 -0
  5. package/dist/chunk-05t2vqsb.js +490 -0
  6. package/dist/chunk-0727wret.js +159 -0
  7. package/dist/chunk-07rervty.js +200 -0
  8. package/dist/chunk-0b9nxvyg.js +478 -0
  9. package/dist/chunk-0e428b73.js +600 -0
  10. package/dist/chunk-0hqfheht.js +3439 -0
  11. package/dist/chunk-0pnk52c2.js +116 -0
  12. package/dist/chunk-0sbddf6m.js +68 -0
  13. package/dist/chunk-0vf7xb84.js +176 -0
  14. package/dist/chunk-0yz17yjy.js +1061 -0
  15. package/dist/chunk-0zscb6c7.js +10 -0
  16. package/dist/chunk-10p21kq6.js +378 -0
  17. package/dist/chunk-17k78pmz.js +120 -0
  18. package/dist/chunk-19jvvqzp.js +1390 -0
  19. package/dist/chunk-1d5czqnr.js +173 -0
  20. package/dist/chunk-1gjysfnf.js +13876 -0
  21. package/dist/chunk-1jjfv0wd.js +467 -0
  22. package/dist/chunk-1jjzp2pa.js +617 -0
  23. package/dist/chunk-1m38dj2k.js +155 -0
  24. package/dist/chunk-1pgttway.js +211 -0
  25. package/dist/chunk-1vvnx0gb.js +8035 -0
  26. package/dist/chunk-1ztm9yps.js +49145 -0
  27. package/dist/chunk-208x1t0m.js +88 -0
  28. package/dist/chunk-20xqs3yk.js +843 -0
  29. package/dist/chunk-2b2c0wnn.js +584 -0
  30. package/dist/chunk-2g07117j.js +541 -0
  31. package/dist/chunk-2g6p2t3w.js +780 -0
  32. package/dist/chunk-2kjeaeg7.js +28 -0
  33. package/dist/chunk-2n0s2dhc.js +12 -0
  34. package/dist/chunk-2p0hvt8k.js +785 -0
  35. package/dist/chunk-2qmxg9y7.js +40174 -0
  36. package/dist/chunk-2qpy8kne.js +28 -0
  37. package/dist/chunk-2rgbf62a.js +40 -0
  38. package/dist/chunk-2tx0s41y.js +150 -0
  39. package/dist/chunk-2x8zk5cz.js +101 -0
  40. package/dist/chunk-2yqy25z4.js +48 -0
  41. package/dist/chunk-318g78ty.js +552 -0
  42. package/dist/chunk-31gfg8tz.js +290 -0
  43. package/dist/chunk-32n0s532.js +1317 -0
  44. package/dist/chunk-35dw2r9g.js +137 -0
  45. package/dist/chunk-36b5zqvn.js +1865 -0
  46. package/dist/chunk-38kpx69j.js +97 -0
  47. package/dist/chunk-3b01vp8p.js +815 -0
  48. package/dist/chunk-3f76a1ek.js +317 -0
  49. package/dist/chunk-3fd1hkhh.js +4254 -0
  50. package/dist/chunk-3ffxa7zj.js +8 -0
  51. package/dist/chunk-3gcj7w95.js +8 -0
  52. package/dist/chunk-3jf3k40v.js +970 -0
  53. package/dist/chunk-3k51qfp9.js +9301 -0
  54. package/dist/chunk-3mhygd2v.js +1180 -0
  55. package/dist/chunk-3p6y0gvb.js +117 -0
  56. package/dist/chunk-3r60xdt5.js +93 -0
  57. package/dist/chunk-43agf6xv.js +8 -0
  58. package/dist/chunk-46zr418r.js +15 -0
  59. package/dist/chunk-48k2bs4w.js +118 -0
  60. package/dist/chunk-4p987a4z.js +84 -0
  61. package/dist/chunk-4px25pe0.js +776 -0
  62. package/dist/chunk-4s93jyky.js +113 -0
  63. package/dist/chunk-4xv8bedf.js +58 -0
  64. package/dist/chunk-4y382mzd.js +346 -0
  65. package/dist/chunk-52dzw4bc.js +246 -0
  66. package/dist/chunk-52qqmh5g.js +110 -0
  67. package/dist/chunk-53grnhp7.js +8 -0
  68. package/dist/chunk-59craaxx.js +4249 -0
  69. package/dist/chunk-5b833jqs.js +96 -0
  70. package/dist/chunk-5cp2q9sh.js +58 -0
  71. package/dist/chunk-5dbaxmts.js +87 -0
  72. package/dist/chunk-5f5sxgp0.js +96 -0
  73. package/dist/chunk-5mkfderj.js +195 -0
  74. package/dist/chunk-5qw0mpvq.js +389 -0
  75. package/dist/chunk-5rxmszm8.js +48 -0
  76. package/dist/chunk-5ygxa3hr.js +65 -0
  77. package/dist/chunk-61d5dqq2.js +71 -0
  78. package/dist/chunk-6350958y.js +272 -0
  79. package/dist/chunk-65z8hg8j.js +1337 -0
  80. package/dist/chunk-6aq85gdq.js +8 -0
  81. package/dist/chunk-6cjh9exg.js +40751 -0
  82. package/dist/chunk-6e41p5m6.js +187 -0
  83. package/dist/chunk-6jb6xcnq.js +10511 -0
  84. package/dist/chunk-6jta29r1.js +20 -0
  85. package/dist/chunk-6q7f2rrv.js +4757 -0
  86. package/dist/chunk-6sg0ec6v.js +41 -0
  87. package/dist/chunk-6v0rhx4e.js +328 -0
  88. package/dist/chunk-6x5mz95v.js +751 -0
  89. package/dist/chunk-6xqp51qr.js +87 -0
  90. package/dist/chunk-6xvyx1s9.js +6957 -0
  91. package/dist/chunk-6ywh7wgp.js +468 -0
  92. package/dist/chunk-75ne77gm.js +1920 -0
  93. package/dist/chunk-77cb06js.js +602 -0
  94. package/dist/chunk-78n9kfp8.js +1645 -0
  95. package/dist/chunk-7be87rww.js +277 -0
  96. package/dist/chunk-7e1qjk3s.js +125 -0
  97. package/dist/chunk-7e7nxnss.js +360 -0
  98. package/dist/chunk-7g8156qp.js +55 -0
  99. package/dist/chunk-7nz71s42.js +3353 -0
  100. package/dist/chunk-7r078t2x.js +113 -0
  101. package/dist/chunk-7shx41hj.js +3094 -0
  102. package/dist/chunk-7yexhdjs.js +216 -0
  103. package/dist/chunk-83kmfcjv.js +256 -0
  104. package/dist/chunk-846rr9n1.js +107 -0
  105. package/dist/chunk-84ncsm1r.js +183 -0
  106. package/dist/chunk-867x8aq0.js +8936 -0
  107. package/dist/chunk-8byh30kb.js +1947 -0
  108. package/dist/chunk-8c8f6gnt.js +432 -0
  109. package/dist/chunk-8gtdseev.js +454 -0
  110. package/dist/chunk-8jfh9rq6.js +642 -0
  111. package/dist/chunk-8n4n4m67.js +800 -0
  112. package/dist/chunk-8za61tze.js +847 -0
  113. package/dist/chunk-9029sbq1.js +57 -0
  114. package/dist/chunk-94dm5rrm.js +673 -0
  115. package/dist/chunk-9bs8n985.js +329 -0
  116. package/dist/chunk-9c23776j.js +763 -0
  117. package/dist/chunk-9e93g81n.js +298 -0
  118. package/dist/chunk-9f3d61y7.js +548 -0
  119. package/dist/chunk-9gc3andd.js +422 -0
  120. package/dist/chunk-9kn3tgpb.js +130 -0
  121. package/dist/chunk-9m5rn7hk.js +61 -0
  122. package/dist/chunk-9p4hsd6a.js +50 -0
  123. package/dist/chunk-9qasfk8n.js +758 -0
  124. package/dist/chunk-9snp5mn2.js +533 -0
  125. package/dist/chunk-9tcvras3.js +2331 -0
  126. package/dist/chunk-a0186ngk.js +57 -0
  127. package/dist/chunk-a2m8f0aj.js +268 -0
  128. package/dist/chunk-a2rcafav.js +716 -0
  129. package/dist/chunk-a9hjdzar.js +160 -0
  130. package/dist/chunk-aak6ts5n.js +526 -0
  131. package/dist/chunk-aca3w84n.js +267 -0
  132. package/dist/chunk-ae76ded0.js +30 -0
  133. package/dist/chunk-afnjhn3j.js +21933 -0
  134. package/dist/chunk-ahj70tf0.js +880 -0
  135. package/dist/chunk-apjsxssq.js +169 -0
  136. package/dist/chunk-av49wjj1.js +43 -0
  137. package/dist/chunk-axggebfy.js +206 -0
  138. package/dist/chunk-az7jpbv8.js +16 -0
  139. package/dist/chunk-azz7sep6.js +328 -0
  140. package/dist/chunk-b4tpz2g1.js +93 -0
  141. package/dist/chunk-bczf2eyq.js +115 -0
  142. package/dist/chunk-bd95f637.js +208 -0
  143. package/dist/chunk-bdhdmkya.js +10 -0
  144. package/dist/chunk-bp0ynk17.js +32 -0
  145. package/dist/chunk-bq75gxjs.js +90 -0
  146. package/dist/chunk-btk5jaq6.js +10464 -0
  147. package/dist/chunk-bv4c48a5.js +120 -0
  148. package/dist/chunk-byfb105n.js +341 -0
  149. package/dist/chunk-c0bdmy7w.js +4223 -0
  150. package/dist/chunk-c20aqkz8.js +641 -0
  151. package/dist/chunk-c4jg3s2c.js +163 -0
  152. package/dist/chunk-c61q5cer.js +258 -0
  153. package/dist/chunk-c9f761sy.js +386 -0
  154. package/dist/chunk-ca6jkz06.js +157 -0
  155. package/dist/chunk-ccyg9ap9.js +171374 -0
  156. package/dist/chunk-cfej8cc7.js +371 -0
  157. package/dist/chunk-cjqxdnf9.js +23 -0
  158. package/dist/chunk-ckrs789w.js +8 -0
  159. package/dist/chunk-cqeq13wg.js +48 -0
  160. package/dist/chunk-crfj3w5e.js +22821 -0
  161. package/dist/chunk-ct5x6z7g.js +8066 -0
  162. package/dist/chunk-cv5h8n8c.js +101 -0
  163. package/dist/chunk-cwe8h159.js +1563 -0
  164. package/dist/chunk-cwm234zz.js +908 -0
  165. package/dist/chunk-d1jkfp45.js +1580 -0
  166. package/dist/chunk-d3hb1qdr.js +126 -0
  167. package/dist/chunk-d70d0zer.js +713 -0
  168. package/dist/chunk-d91tx29f.js +105 -0
  169. package/dist/chunk-d952pymh.js +20 -0
  170. package/dist/chunk-d9af3z8k.js +720 -0
  171. package/dist/chunk-da1n53c2.js +47 -0
  172. package/dist/chunk-df5c1x8m.js +732 -0
  173. package/dist/chunk-dkv64xys.js +71 -0
  174. package/dist/chunk-dm7166v6.js +251 -0
  175. package/dist/chunk-dr0y5a61.js +258 -0
  176. package/dist/chunk-drzb0rrd.js +306 -0
  177. package/dist/chunk-dw1v1q7w.js +37 -0
  178. package/dist/chunk-e224qet4.js +348 -0
  179. package/dist/chunk-e50ckbv0.js +1099 -0
  180. package/dist/chunk-e5gn6by6.js +1165 -0
  181. package/dist/chunk-e7m3f74m.js +37 -0
  182. package/dist/chunk-e8ghgwaj.js +295 -0
  183. package/dist/chunk-ed8k4ya2.js +41 -0
  184. package/dist/chunk-eh0vnqdz.js +76 -0
  185. package/dist/chunk-epwrzr35.js +4301 -0
  186. package/dist/chunk-er9h6sw5.js +5379 -0
  187. package/dist/chunk-eta5aekm.js +79 -0
  188. package/dist/chunk-ev5gxscq.js +63 -0
  189. package/dist/chunk-evp72hv5.js +212 -0
  190. package/dist/chunk-ex41stfq.js +127 -0
  191. package/dist/chunk-ezpa510h.js +62 -0
  192. package/dist/chunk-f0fm6dey.js +477 -0
  193. package/dist/chunk-f239sbhc.js +152 -0
  194. package/dist/chunk-f2bj47xf.js +109 -0
  195. package/dist/chunk-f4t24rq4.js +258 -0
  196. package/dist/chunk-f9ghvzy8.js +106 -0
  197. package/dist/chunk-f9rahzgr.js +99 -0
  198. package/dist/chunk-ff75qzty.js +521 -0
  199. package/dist/chunk-fj0ctt6q.js +264 -0
  200. package/dist/chunk-fj7wxdt3.js +221 -0
  201. package/dist/chunk-fnnpqv92.js +714 -0
  202. package/dist/chunk-fpd3zzx1.js +26696 -0
  203. package/dist/chunk-fqv2cn76.js +227 -0
  204. package/dist/chunk-fqw9j3bj.js +439 -0
  205. package/dist/chunk-frbcqhz0.js +4984 -0
  206. package/dist/chunk-fzkj59sg.js +174 -0
  207. package/dist/chunk-fzpzbpbw.js +248 -0
  208. package/dist/chunk-g52cpmd1.js +686 -0
  209. package/dist/chunk-g98m2qe6.js +31 -0
  210. package/dist/chunk-g9zgq4vy.js +715 -0
  211. package/dist/chunk-gbpt7tm8.js +687 -0
  212. package/dist/chunk-gg52jka8.js +373 -0
  213. package/dist/chunk-gjttphax.js +5793 -0
  214. package/dist/chunk-gs7vjaas.js +65 -0
  215. package/dist/chunk-gv8n85j2.js +8 -0
  216. package/dist/chunk-gxdwm6pt.js +650 -0
  217. package/dist/chunk-gy8wajg2.js +1014 -0
  218. package/dist/chunk-gz3647m0.js +200 -0
  219. package/dist/chunk-gzg07mqh.js +16 -0
  220. package/dist/chunk-h3zc60tq.js +44 -0
  221. package/dist/chunk-h4p1qt16.js +74 -0
  222. package/dist/chunk-h8219f18.js +282 -0
  223. package/dist/chunk-h9agq92v.js +331 -0
  224. package/dist/chunk-hhjtpwbj.js +16 -0
  225. package/dist/chunk-hpgpwzra.js +548 -0
  226. package/dist/chunk-hsnjvn19.js +80 -0
  227. package/dist/chunk-hsp9qrry.js +417 -0
  228. package/dist/chunk-hwz6aq2m.js +3939 -0
  229. package/dist/chunk-hzph0hbh.js +272 -0
  230. package/dist/chunk-hzqkss6v.js +153 -0
  231. package/dist/chunk-j0t31f39.js +1149 -0
  232. package/dist/chunk-j1qm6n1v.js +30 -0
  233. package/dist/chunk-j6e4b522.js +81 -0
  234. package/dist/chunk-j7qfbvxk.js +84 -0
  235. package/dist/chunk-j7qv3hvm.js +1635 -0
  236. package/dist/chunk-j8mxc6k6.js +213 -0
  237. package/dist/chunk-jevj87jn.js +224 -0
  238. package/dist/chunk-jk2ps88q.js +815 -0
  239. package/dist/chunk-jz7tbdyv.js +1599 -0
  240. package/dist/chunk-k36jpjvh.js +300 -0
  241. package/dist/chunk-k4nmrt3w.js +61 -0
  242. package/dist/chunk-kavn03r9.js +16606 -0
  243. package/dist/chunk-kkgav8dm.js +54 -0
  244. package/dist/chunk-kkq26g5c.js +33 -0
  245. package/dist/chunk-kp6nepx4.js +106 -0
  246. package/dist/chunk-ksefybc8.js +1551 -0
  247. package/dist/chunk-kv147680.js +3436 -0
  248. package/dist/chunk-kya46axt.js +833 -0
  249. package/dist/chunk-kyz233ny.js +227 -0
  250. package/dist/chunk-kzs75xmj.js +143 -0
  251. package/dist/chunk-m0vrez9w.js +266 -0
  252. package/dist/chunk-m1wadav3.js +118 -0
  253. package/dist/chunk-m4rfx3cj.js +221 -0
  254. package/dist/chunk-mc9zaggs.js +6374 -0
  255. package/dist/chunk-mcg5ttj4.js +105 -0
  256. package/dist/chunk-mf4r7918.js +63 -0
  257. package/dist/chunk-mh9khrt4.js +286 -0
  258. package/dist/chunk-mhc4szw7.js +22 -0
  259. package/dist/chunk-mkq0yzp0.js +38 -0
  260. package/dist/chunk-mr58jv4w.js +256 -0
  261. package/dist/chunk-mrrx3bmt.js +168 -0
  262. package/dist/chunk-mtyk3zz6.js +87 -0
  263. package/dist/chunk-mvgxntv6.js +62 -0
  264. package/dist/chunk-mwnjydcm.js +102 -0
  265. package/dist/chunk-mwxt0m3f.js +862 -0
  266. package/dist/chunk-mz1pxck8.js +998 -0
  267. package/dist/chunk-n3agghys.js +214 -0
  268. package/dist/chunk-n6q02ya9.js +442 -0
  269. package/dist/chunk-nt3y91vh.js +443 -0
  270. package/dist/chunk-nt837qt9.js +21 -0
  271. package/dist/chunk-ntgmegfs.js +39 -0
  272. package/dist/chunk-nwk16bbd.js +30 -0
  273. package/dist/chunk-p367ay90.js +672 -0
  274. package/dist/chunk-p7m3x9qk.js +48 -0
  275. package/dist/chunk-pagmjwp5.js +132 -0
  276. package/dist/chunk-pbd4r8ek.js +161 -0
  277. package/dist/chunk-pdkpssgv.js +2422 -0
  278. package/dist/chunk-pf6z1e35.js +32 -0
  279. package/dist/chunk-pfzejvpt.js +213 -0
  280. package/dist/chunk-pktxyhvk.js +400 -0
  281. package/dist/chunk-pp5xhveq.js +124 -0
  282. package/dist/chunk-ppnd7a8x.js +38 -0
  283. package/dist/chunk-pqh2w7dr.js +2202 -0
  284. package/dist/chunk-pr878d0z.js +240 -0
  285. package/dist/chunk-psf0y7hy.js +140 -0
  286. package/dist/chunk-pz2zz2f7.js +1586 -0
  287. package/dist/chunk-q0xkrxy8.js +890 -0
  288. package/dist/chunk-q5b0kpr3.js +14369 -0
  289. package/dist/chunk-q7z3t531.js +334 -0
  290. package/dist/chunk-qdjjtgwt.js +3183 -0
  291. package/dist/chunk-qezv7msv.js +26 -0
  292. package/dist/chunk-qmxn7f86.js +2643 -0
  293. package/dist/chunk-qqc3b97c.js +15 -0
  294. package/dist/chunk-qwrp63wh.js +145 -0
  295. package/dist/chunk-qyvqbst3.js +537 -0
  296. package/dist/chunk-qztvd4hd.js +465 -0
  297. package/dist/chunk-r0bvez4y.js +235 -0
  298. package/dist/chunk-r3z0896k.js +2831 -0
  299. package/dist/chunk-r4cxb6t7.js +32 -0
  300. package/dist/chunk-rb8k68m7.js +118 -0
  301. package/dist/chunk-rdprgm4t.js +42 -0
  302. package/dist/chunk-rex82hys.js +1710 -0
  303. package/dist/chunk-rjjakkw2.js +2560 -0
  304. package/dist/chunk-rka6gcv3.js +304 -0
  305. package/dist/chunk-rkz12ghm.js +144 -0
  306. package/dist/chunk-rnc7m1qs.js +436 -0
  307. package/dist/chunk-rx6z23h0.js +165 -0
  308. package/dist/chunk-s76582j1.js +28 -0
  309. package/dist/chunk-sez03qd9.js +7140 -0
  310. package/dist/chunk-sjvdn2ep.js +130 -0
  311. package/dist/chunk-smwhyy8p.js +115 -0
  312. package/dist/chunk-snw7nh0d.js +695 -0
  313. package/dist/chunk-sqx9c057.js +193 -0
  314. package/dist/chunk-sscms68s.js +16 -0
  315. package/dist/chunk-stknnmsb.js +272 -0
  316. package/dist/chunk-sywdxbs6.js +853 -0
  317. package/dist/chunk-syxy4pf2.js +782 -0
  318. package/dist/chunk-t0hpqsqn.js +6157 -0
  319. package/dist/chunk-tjm70vnw.js +123 -0
  320. package/dist/chunk-trzh0msn.js +154 -0
  321. package/dist/chunk-v1z17cpg.js +723 -0
  322. package/dist/chunk-vsfj449x.js +333 -0
  323. package/dist/chunk-vvkq20tt.js +287 -0
  324. package/dist/chunk-vxgdzx6p.js +338 -0
  325. package/dist/chunk-vxqhjyfz.js +15 -0
  326. package/dist/chunk-vzsstfmb.js +80 -0
  327. package/dist/chunk-w1jew5sn.js +69 -0
  328. package/dist/chunk-w3kwr76v.js +789 -0
  329. package/dist/chunk-w40netr9.js +59 -0
  330. package/dist/chunk-w99cpfdg.js +559 -0
  331. package/dist/chunk-wacn14d2.js +271 -0
  332. package/dist/chunk-wbhrqrq3.js +3033 -0
  333. package/dist/chunk-wfg9g0p7.js +17612 -0
  334. package/dist/chunk-wj3vjsbx.js +93 -0
  335. package/dist/chunk-wjhq855a.js +372 -0
  336. package/dist/chunk-wr06gqxh.js +114 -0
  337. package/dist/chunk-ws0z2y1g.js +195 -0
  338. package/dist/chunk-wt62wqcj.js +98 -0
  339. package/dist/chunk-wx4v7ddx.js +42 -0
  340. package/dist/chunk-wy0t3vb2.js +6101 -0
  341. package/dist/chunk-wysz7qk4.js +280 -0
  342. package/dist/chunk-x63fx1vd.js +192 -0
  343. package/dist/chunk-x8b7vft8.js +132 -0
  344. package/dist/chunk-x8jhkgxb.js +346 -0
  345. package/dist/chunk-x9z4q5k5.js +275 -0
  346. package/dist/chunk-xjd7e9jq.js +126 -0
  347. package/dist/chunk-xjr0n27e.js +42 -0
  348. package/dist/chunk-xpwyw7cd.js +24 -0
  349. package/dist/chunk-xw4ycnyz.js +37 -0
  350. package/dist/chunk-y66bqywr.js +17303 -0
  351. package/dist/chunk-ycarry7d.js +157 -0
  352. package/dist/chunk-ycr0hp6v.js +1486 -0
  353. package/dist/chunk-yqmaw6hf.js +496 -0
  354. package/dist/chunk-yrtm7d23.js +602 -0
  355. package/dist/chunk-yts879rw.js +48 -0
  356. package/dist/chunk-yvmhx96e.js +347 -0
  357. package/dist/chunk-ywq00rg4.js +246 -0
  358. package/dist/chunk-yygeg5mj.js +752 -0
  359. package/dist/chunk-z0exw850.js +726 -0
  360. package/dist/chunk-z2dp53wn.js +17 -0
  361. package/dist/chunk-z4rzc9nd.js +103 -0
  362. package/dist/chunk-zb0akt77.js +684 -0
  363. package/dist/chunk-zb2xrj5t.js +1789 -0
  364. package/dist/chunk-zbptn0ky.js +423 -0
  365. package/dist/chunk-zd45wbmf.js +1090 -0
  366. package/dist/chunk-zjkvspz9.js +2050 -0
  367. package/dist/chunk-zke1sp3x.js +1524 -0
  368. package/dist/chunk-zv2cvfsv.js +58 -0
  369. package/dist/chunk-zy4tmqst.js +644 -0
  370. package/dist/chunk-zygzzzvk.js +192 -0
  371. package/dist/cli-21v3v6ny.md +1 -0
  372. package/dist/cli.js +246 -0
  373. package/dist/server-n5f2q89z.md +1 -0
  374. package/package.json +161 -0
@@ -0,0 +1,4757 @@
1
+ // @bun
2
+ import {
3
+ fromEnvSigningName,
4
+ init_dist_es,
5
+ nodeProvider
6
+ } from "./chunk-bd95f637.js";
7
+ import {
8
+ require_dist_cjs as require_dist_cjs11,
9
+ require_dist_cjs1 as require_dist_cjs12,
10
+ require_dist_cjs10 as require_dist_cjs23,
11
+ require_dist_cjs11 as require_dist_cjs24,
12
+ require_dist_cjs12 as require_dist_cjs25,
13
+ require_dist_cjs13 as require_dist_cjs26,
14
+ require_dist_cjs2 as require_dist_cjs13,
15
+ require_dist_cjs3 as require_dist_cjs15,
16
+ require_dist_cjs4 as require_dist_cjs16,
17
+ require_dist_cjs5 as require_dist_cjs17,
18
+ require_dist_cjs6 as require_dist_cjs19,
19
+ require_dist_cjs7 as require_dist_cjs20,
20
+ require_dist_cjs8 as require_dist_cjs21,
21
+ require_dist_cjs9 as require_dist_cjs22,
22
+ require_protocols
23
+ } from "./chunk-6xvyx1s9.js";
24
+ import {
25
+ require_dist_cjs as require_dist_cjs14,
26
+ require_dist_cjs2 as require_dist_cjs18
27
+ } from "./chunk-c20aqkz8.js";
28
+ import {
29
+ require_httpAuthSchemes
30
+ } from "./chunk-20xqs3yk.js";
31
+ import {
32
+ require_dist_cjs as require_dist_cjs3
33
+ } from "./chunk-5ygxa3hr.js";
34
+ import"./chunk-83kmfcjv.js";
35
+ import {
36
+ require_dist_cjs as require_dist_cjs9
37
+ } from "./chunk-ahj70tf0.js";
38
+ import {
39
+ require_dist_cjs as require_dist_cjs6,
40
+ require_dist_cjs2 as require_dist_cjs7,
41
+ require_dist_cjs4 as require_dist_cjs8,
42
+ require_schema,
43
+ require_tslib
44
+ } from "./chunk-hwz6aq2m.js";
45
+ import {
46
+ require_client
47
+ } from "./chunk-kkgav8dm.js";
48
+ import {
49
+ require_dist_cjs
50
+ } from "./chunk-mrrx3bmt.js";
51
+ import {
52
+ require_dist_cjs as require_dist_cjs4
53
+ } from "./chunk-7g8156qp.js";
54
+ import"./chunk-rb8k68m7.js";
55
+ import"./chunk-bq75gxjs.js";
56
+ import {
57
+ require_dist_cjs2 as require_dist_cjs5
58
+ } from "./chunk-ev5gxscq.js";
59
+ import {
60
+ __esm,
61
+ __toESM
62
+ } from "./chunk-eta5aekm.js";
63
+ import {
64
+ __INVALID__REF__
65
+ } from "./chunk-ccyg9ap9.js";
66
+ import {
67
+ defaultProvider,
68
+ init_dist_es as init_dist_es2
69
+ } from "./chunk-84ncsm1r.js";
70
+ import"./chunk-a0186ngk.js";
71
+ import {
72
+ require_dist_cjs as require_dist_cjs10
73
+ } from "./chunk-4y382mzd.js";
74
+ import {
75
+ require_dist_cjs2
76
+ } from "./chunk-4px25pe0.js";
77
+
78
+ // node_modules/.bun/@aws-sdk+middleware-eventstream@3.972.8/node_modules/@aws-sdk/middleware-eventstream/dist-es/eventStreamConfiguration.js
79
+ function resolveEventStreamConfig(input) {
80
+ const eventSigner = input.signer;
81
+ const messageSigner = input.signer;
82
+ const newInput = Object.assign(input, {
83
+ eventSigner,
84
+ messageSigner
85
+ });
86
+ const eventStreamPayloadHandler = newInput.eventStreamPayloadHandlerProvider(newInput);
87
+ return Object.assign(newInput, {
88
+ eventStreamPayloadHandler
89
+ });
90
+ }
91
+
92
+ // node_modules/.bun/@aws-sdk+middleware-eventstream@3.972.8/node_modules/@aws-sdk/middleware-eventstream/dist-es/eventStreamHandlingMiddleware.js
93
+ var import_protocol_http, eventStreamHandlingMiddleware = (options) => (next, context) => async (args) => {
94
+ const { request } = args;
95
+ if (!import_protocol_http.HttpRequest.isInstance(request))
96
+ return next(args);
97
+ return options.eventStreamPayloadHandler.handle(next, args, context);
98
+ }, eventStreamHandlingMiddlewareOptions;
99
+ var init_eventStreamHandlingMiddleware = __esm(() => {
100
+ import_protocol_http = __toESM(require_dist_cjs(), 1);
101
+ eventStreamHandlingMiddlewareOptions = {
102
+ tags: ["EVENT_STREAM", "SIGNATURE", "HANDLE"],
103
+ name: "eventStreamHandlingMiddleware",
104
+ relation: "after",
105
+ toMiddleware: "awsAuthMiddleware",
106
+ override: true
107
+ };
108
+ });
109
+
110
+ // node_modules/.bun/@aws-sdk+middleware-eventstream@3.972.8/node_modules/@aws-sdk/middleware-eventstream/dist-es/eventStreamHeaderMiddleware.js
111
+ var import_protocol_http2, eventStreamHeaderMiddleware = (next) => async (args) => {
112
+ const { request } = args;
113
+ if (!import_protocol_http2.HttpRequest.isInstance(request))
114
+ return next(args);
115
+ request.headers = {
116
+ ...request.headers,
117
+ "content-type": "application/vnd.amazon.eventstream",
118
+ "x-amz-content-sha256": "STREAMING-AWS4-HMAC-SHA256-EVENTS"
119
+ };
120
+ return next({
121
+ ...args,
122
+ request
123
+ });
124
+ }, eventStreamHeaderMiddlewareOptions;
125
+ var init_eventStreamHeaderMiddleware = __esm(() => {
126
+ import_protocol_http2 = __toESM(require_dist_cjs(), 1);
127
+ eventStreamHeaderMiddlewareOptions = {
128
+ step: "build",
129
+ tags: ["EVENT_STREAM", "HEADER", "CONTENT_TYPE", "CONTENT_SHA256"],
130
+ name: "eventStreamHeaderMiddleware",
131
+ override: true
132
+ };
133
+ });
134
+
135
+ // node_modules/.bun/@aws-sdk+middleware-eventstream@3.972.8/node_modules/@aws-sdk/middleware-eventstream/dist-es/getEventStreamPlugin.js
136
+ var getEventStreamPlugin = (options) => ({
137
+ applyToStack: (clientStack) => {
138
+ clientStack.addRelativeTo(eventStreamHandlingMiddleware(options), eventStreamHandlingMiddlewareOptions);
139
+ clientStack.add(eventStreamHeaderMiddleware, eventStreamHeaderMiddlewareOptions);
140
+ }
141
+ });
142
+ var init_getEventStreamPlugin = __esm(() => {
143
+ init_eventStreamHandlingMiddleware();
144
+ init_eventStreamHeaderMiddleware();
145
+ });
146
+
147
+ // node_modules/.bun/@aws-sdk+middleware-eventstream@3.972.8/node_modules/@aws-sdk/middleware-eventstream/dist-es/index.js
148
+ var init_dist_es3 = __esm(() => {
149
+ init_eventStreamHandlingMiddleware();
150
+ init_eventStreamHeaderMiddleware();
151
+ init_getEventStreamPlugin();
152
+ });
153
+
154
+ // node_modules/.bun/tslib@2.8.1/node_modules/tslib/modules/index.js
155
+ var import_tslib, __extends, __assign, __rest, __decorate, __param, __esDecorate, __runInitializers, __propKey, __setFunctionName, __metadata, __awaiter, __generator, __exportStar, __createBinding, __values, __read, __spread, __spreadArrays, __spreadArray, __await, __asyncGenerator, __asyncDelegator, __asyncValues, __makeTemplateObject, __importStar, __importDefault, __classPrivateFieldGet, __classPrivateFieldSet, __classPrivateFieldIn, __addDisposableResource, __disposeResources, __rewriteRelativeImportExtension;
156
+ var init_modules = __esm(() => {
157
+ import_tslib = __toESM(require_tslib(), 1);
158
+ ({
159
+ __extends,
160
+ __assign,
161
+ __rest,
162
+ __decorate,
163
+ __param,
164
+ __esDecorate,
165
+ __runInitializers,
166
+ __propKey,
167
+ __setFunctionName,
168
+ __metadata,
169
+ __awaiter,
170
+ __generator,
171
+ __exportStar,
172
+ __createBinding,
173
+ __values,
174
+ __read,
175
+ __spread,
176
+ __spreadArrays,
177
+ __spreadArray,
178
+ __await,
179
+ __asyncGenerator,
180
+ __asyncDelegator,
181
+ __asyncValues,
182
+ __makeTemplateObject,
183
+ __importStar,
184
+ __importDefault,
185
+ __classPrivateFieldGet,
186
+ __classPrivateFieldSet,
187
+ __classPrivateFieldIn,
188
+ __addDisposableResource,
189
+ __disposeResources,
190
+ __rewriteRelativeImportExtension
191
+ } = import_tslib.default);
192
+ });
193
+
194
+ // node_modules/.bun/@smithy+is-array-buffer@2.2.0/node_modules/@smithy/is-array-buffer/dist-es/index.js
195
+ var isArrayBuffer = (arg) => typeof ArrayBuffer === "function" && arg instanceof ArrayBuffer || Object.prototype.toString.call(arg) === "[object ArrayBuffer]";
196
+
197
+ // node_modules/.bun/@smithy+util-buffer-from@2.2.0/node_modules/@smithy/util-buffer-from/dist-es/index.js
198
+ import { Buffer as Buffer2 } from "buffer";
199
+ var fromArrayBuffer = (input, offset = 0, length = input.byteLength - offset) => {
200
+ if (!isArrayBuffer(input)) {
201
+ throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof input} (${input})`);
202
+ }
203
+ return Buffer2.from(input, offset, length);
204
+ }, fromString = (input, encoding) => {
205
+ if (typeof input !== "string") {
206
+ throw new TypeError(`The "input" argument must be of type string. Received type ${typeof input} (${input})`);
207
+ }
208
+ return encoding ? Buffer2.from(input, encoding) : Buffer2.from(input);
209
+ };
210
+ var init_dist_es4 = () => {};
211
+
212
+ // node_modules/.bun/@smithy+util-utf8@2.3.0/node_modules/@smithy/util-utf8/dist-es/fromUtf8.js
213
+ var fromUtf8 = (input) => {
214
+ const buf = fromString(input, "utf8");
215
+ return new Uint8Array(buf.buffer, buf.byteOffset, buf.byteLength / Uint8Array.BYTES_PER_ELEMENT);
216
+ };
217
+ var init_fromUtf8 = __esm(() => {
218
+ init_dist_es4();
219
+ });
220
+
221
+ // node_modules/.bun/@smithy+util-utf8@2.3.0/node_modules/@smithy/util-utf8/dist-es/toUint8Array.js
222
+ var init_toUint8Array = __esm(() => {
223
+ init_fromUtf8();
224
+ });
225
+
226
+ // node_modules/.bun/@smithy+util-utf8@2.3.0/node_modules/@smithy/util-utf8/dist-es/toUtf8.js
227
+ var toUtf8 = (input) => {
228
+ if (typeof input === "string") {
229
+ return input;
230
+ }
231
+ if (typeof input !== "object" || typeof input.byteOffset !== "number" || typeof input.byteLength !== "number") {
232
+ throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");
233
+ }
234
+ return fromArrayBuffer(input.buffer, input.byteOffset, input.byteLength).toString("utf8");
235
+ };
236
+ var init_toUtf8 = __esm(() => {
237
+ init_dist_es4();
238
+ });
239
+
240
+ // node_modules/.bun/@smithy+util-utf8@2.3.0/node_modules/@smithy/util-utf8/dist-es/index.js
241
+ var init_dist_es5 = __esm(() => {
242
+ init_fromUtf8();
243
+ init_toUint8Array();
244
+ init_toUtf8();
245
+ });
246
+
247
+ // node_modules/.bun/@aws-crypto+util@5.2.0/node_modules/@aws-crypto/util/build/module/convertToBuffer.js
248
+ function convertToBuffer(data) {
249
+ if (data instanceof Uint8Array)
250
+ return data;
251
+ if (typeof data === "string") {
252
+ return fromUtf83(data);
253
+ }
254
+ if (ArrayBuffer.isView(data)) {
255
+ return new Uint8Array(data.buffer, data.byteOffset, data.byteLength / Uint8Array.BYTES_PER_ELEMENT);
256
+ }
257
+ return new Uint8Array(data);
258
+ }
259
+ var fromUtf83;
260
+ var init_convertToBuffer = __esm(() => {
261
+ init_dist_es5();
262
+ fromUtf83 = typeof Buffer !== "undefined" && Buffer.from ? function(input) {
263
+ return Buffer.from(input, "utf8");
264
+ } : fromUtf8;
265
+ });
266
+
267
+ // node_modules/.bun/@aws-crypto+util@5.2.0/node_modules/@aws-crypto/util/build/module/isEmptyData.js
268
+ function isEmptyData(data) {
269
+ if (typeof data === "string") {
270
+ return data.length === 0;
271
+ }
272
+ return data.byteLength === 0;
273
+ }
274
+
275
+ // node_modules/.bun/@aws-crypto+util@5.2.0/node_modules/@aws-crypto/util/build/module/numToUint8.js
276
+ function numToUint8(num) {
277
+ return new Uint8Array([
278
+ (num & 4278190080) >> 24,
279
+ (num & 16711680) >> 16,
280
+ (num & 65280) >> 8,
281
+ num & 255
282
+ ]);
283
+ }
284
+
285
+ // node_modules/.bun/@aws-crypto+util@5.2.0/node_modules/@aws-crypto/util/build/module/uint32ArrayFrom.js
286
+ function uint32ArrayFrom(a_lookUpTable) {
287
+ if (!Uint32Array.from) {
288
+ var return_array = new Uint32Array(a_lookUpTable.length);
289
+ var a_index = 0;
290
+ while (a_index < a_lookUpTable.length) {
291
+ return_array[a_index] = a_lookUpTable[a_index];
292
+ a_index += 1;
293
+ }
294
+ return return_array;
295
+ }
296
+ return Uint32Array.from(a_lookUpTable);
297
+ }
298
+
299
+ // node_modules/.bun/@aws-crypto+util@5.2.0/node_modules/@aws-crypto/util/build/module/index.js
300
+ var init_module = __esm(() => {
301
+ init_convertToBuffer();
302
+ });
303
+
304
+ // node_modules/.bun/@aws-crypto+crc32@5.2.0/node_modules/@aws-crypto/crc32/build/module/aws_crc32.js
305
+ var AwsCrc32;
306
+ var init_aws_crc32 = __esm(() => {
307
+ init_modules();
308
+ init_module();
309
+ init_module2();
310
+ AwsCrc32 = function() {
311
+ function AwsCrc322() {
312
+ this.crc32 = new Crc32;
313
+ }
314
+ AwsCrc322.prototype.update = function(toHash) {
315
+ if (isEmptyData(toHash))
316
+ return;
317
+ this.crc32.update(convertToBuffer(toHash));
318
+ };
319
+ AwsCrc322.prototype.digest = function() {
320
+ return __awaiter(this, undefined, undefined, function() {
321
+ return __generator(this, function(_a) {
322
+ return [2, numToUint8(this.crc32.digest())];
323
+ });
324
+ });
325
+ };
326
+ AwsCrc322.prototype.reset = function() {
327
+ this.crc32 = new Crc32;
328
+ };
329
+ return AwsCrc322;
330
+ }();
331
+ });
332
+
333
+ // node_modules/.bun/@aws-crypto+crc32@5.2.0/node_modules/@aws-crypto/crc32/build/module/index.js
334
+ var Crc32, a_lookUpTable, lookupTable;
335
+ var init_module2 = __esm(() => {
336
+ init_modules();
337
+ init_module();
338
+ init_aws_crc32();
339
+ Crc32 = function() {
340
+ function Crc322() {
341
+ this.checksum = 4294967295;
342
+ }
343
+ Crc322.prototype.update = function(data) {
344
+ var e_1, _a;
345
+ try {
346
+ for (var data_1 = __values(data), data_1_1 = data_1.next();!data_1_1.done; data_1_1 = data_1.next()) {
347
+ var byte = data_1_1.value;
348
+ this.checksum = this.checksum >>> 8 ^ lookupTable[(this.checksum ^ byte) & 255];
349
+ }
350
+ } catch (e_1_1) {
351
+ e_1 = { error: e_1_1 };
352
+ } finally {
353
+ try {
354
+ if (data_1_1 && !data_1_1.done && (_a = data_1.return))
355
+ _a.call(data_1);
356
+ } finally {
357
+ if (e_1)
358
+ throw e_1.error;
359
+ }
360
+ }
361
+ return this;
362
+ };
363
+ Crc322.prototype.digest = function() {
364
+ return (this.checksum ^ 4294967295) >>> 0;
365
+ };
366
+ return Crc322;
367
+ }();
368
+ a_lookUpTable = [
369
+ 0,
370
+ 1996959894,
371
+ 3993919788,
372
+ 2567524794,
373
+ 124634137,
374
+ 1886057615,
375
+ 3915621685,
376
+ 2657392035,
377
+ 249268274,
378
+ 2044508324,
379
+ 3772115230,
380
+ 2547177864,
381
+ 162941995,
382
+ 2125561021,
383
+ 3887607047,
384
+ 2428444049,
385
+ 498536548,
386
+ 1789927666,
387
+ 4089016648,
388
+ 2227061214,
389
+ 450548861,
390
+ 1843258603,
391
+ 4107580753,
392
+ 2211677639,
393
+ 325883990,
394
+ 1684777152,
395
+ 4251122042,
396
+ 2321926636,
397
+ 335633487,
398
+ 1661365465,
399
+ 4195302755,
400
+ 2366115317,
401
+ 997073096,
402
+ 1281953886,
403
+ 3579855332,
404
+ 2724688242,
405
+ 1006888145,
406
+ 1258607687,
407
+ 3524101629,
408
+ 2768942443,
409
+ 901097722,
410
+ 1119000684,
411
+ 3686517206,
412
+ 2898065728,
413
+ 853044451,
414
+ 1172266101,
415
+ 3705015759,
416
+ 2882616665,
417
+ 651767980,
418
+ 1373503546,
419
+ 3369554304,
420
+ 3218104598,
421
+ 565507253,
422
+ 1454621731,
423
+ 3485111705,
424
+ 3099436303,
425
+ 671266974,
426
+ 1594198024,
427
+ 3322730930,
428
+ 2970347812,
429
+ 795835527,
430
+ 1483230225,
431
+ 3244367275,
432
+ 3060149565,
433
+ 1994146192,
434
+ 31158534,
435
+ 2563907772,
436
+ 4023717930,
437
+ 1907459465,
438
+ 112637215,
439
+ 2680153253,
440
+ 3904427059,
441
+ 2013776290,
442
+ 251722036,
443
+ 2517215374,
444
+ 3775830040,
445
+ 2137656763,
446
+ 141376813,
447
+ 2439277719,
448
+ 3865271297,
449
+ 1802195444,
450
+ 476864866,
451
+ 2238001368,
452
+ 4066508878,
453
+ 1812370925,
454
+ 453092731,
455
+ 2181625025,
456
+ 4111451223,
457
+ 1706088902,
458
+ 314042704,
459
+ 2344532202,
460
+ 4240017532,
461
+ 1658658271,
462
+ 366619977,
463
+ 2362670323,
464
+ 4224994405,
465
+ 1303535960,
466
+ 984961486,
467
+ 2747007092,
468
+ 3569037538,
469
+ 1256170817,
470
+ 1037604311,
471
+ 2765210733,
472
+ 3554079995,
473
+ 1131014506,
474
+ 879679996,
475
+ 2909243462,
476
+ 3663771856,
477
+ 1141124467,
478
+ 855842277,
479
+ 2852801631,
480
+ 3708648649,
481
+ 1342533948,
482
+ 654459306,
483
+ 3188396048,
484
+ 3373015174,
485
+ 1466479909,
486
+ 544179635,
487
+ 3110523913,
488
+ 3462522015,
489
+ 1591671054,
490
+ 702138776,
491
+ 2966460450,
492
+ 3352799412,
493
+ 1504918807,
494
+ 783551873,
495
+ 3082640443,
496
+ 3233442989,
497
+ 3988292384,
498
+ 2596254646,
499
+ 62317068,
500
+ 1957810842,
501
+ 3939845945,
502
+ 2647816111,
503
+ 81470997,
504
+ 1943803523,
505
+ 3814918930,
506
+ 2489596804,
507
+ 225274430,
508
+ 2053790376,
509
+ 3826175755,
510
+ 2466906013,
511
+ 167816743,
512
+ 2097651377,
513
+ 4027552580,
514
+ 2265490386,
515
+ 503444072,
516
+ 1762050814,
517
+ 4150417245,
518
+ 2154129355,
519
+ 426522225,
520
+ 1852507879,
521
+ 4275313526,
522
+ 2312317920,
523
+ 282753626,
524
+ 1742555852,
525
+ 4189708143,
526
+ 2394877945,
527
+ 397917763,
528
+ 1622183637,
529
+ 3604390888,
530
+ 2714866558,
531
+ 953729732,
532
+ 1340076626,
533
+ 3518719985,
534
+ 2797360999,
535
+ 1068828381,
536
+ 1219638859,
537
+ 3624741850,
538
+ 2936675148,
539
+ 906185462,
540
+ 1090812512,
541
+ 3747672003,
542
+ 2825379669,
543
+ 829329135,
544
+ 1181335161,
545
+ 3412177804,
546
+ 3160834842,
547
+ 628085408,
548
+ 1382605366,
549
+ 3423369109,
550
+ 3138078467,
551
+ 570562233,
552
+ 1426400815,
553
+ 3317316542,
554
+ 2998733608,
555
+ 733239954,
556
+ 1555261956,
557
+ 3268935591,
558
+ 3050360625,
559
+ 752459403,
560
+ 1541320221,
561
+ 2607071920,
562
+ 3965973030,
563
+ 1969922972,
564
+ 40735498,
565
+ 2617837225,
566
+ 3943577151,
567
+ 1913087877,
568
+ 83908371,
569
+ 2512341634,
570
+ 3803740692,
571
+ 2075208622,
572
+ 213261112,
573
+ 2463272603,
574
+ 3855990285,
575
+ 2094854071,
576
+ 198958881,
577
+ 2262029012,
578
+ 4057260610,
579
+ 1759359992,
580
+ 534414190,
581
+ 2176718541,
582
+ 4139329115,
583
+ 1873836001,
584
+ 414664567,
585
+ 2282248934,
586
+ 4279200368,
587
+ 1711684554,
588
+ 285281116,
589
+ 2405801727,
590
+ 4167216745,
591
+ 1634467795,
592
+ 376229701,
593
+ 2685067896,
594
+ 3608007406,
595
+ 1308918612,
596
+ 956543938,
597
+ 2808555105,
598
+ 3495958263,
599
+ 1231636301,
600
+ 1047427035,
601
+ 2932959818,
602
+ 3654703836,
603
+ 1088359270,
604
+ 936918000,
605
+ 2847714899,
606
+ 3736837829,
607
+ 1202900863,
608
+ 817233897,
609
+ 3183342108,
610
+ 3401237130,
611
+ 1404277552,
612
+ 615818150,
613
+ 3134207493,
614
+ 3453421203,
615
+ 1423857449,
616
+ 601450431,
617
+ 3009837614,
618
+ 3294710456,
619
+ 1567103746,
620
+ 711928724,
621
+ 3020668471,
622
+ 3272380065,
623
+ 1510334235,
624
+ 755167117
625
+ ];
626
+ lookupTable = uint32ArrayFrom(a_lookUpTable);
627
+ });
628
+
629
+ // node_modules/.bun/@smithy+eventstream-codec@4.2.12/node_modules/@smithy/eventstream-codec/dist-es/Int64.js
630
+ class Int64 {
631
+ bytes;
632
+ constructor(bytes) {
633
+ this.bytes = bytes;
634
+ if (bytes.byteLength !== 8) {
635
+ throw new Error("Int64 buffers must be exactly 8 bytes");
636
+ }
637
+ }
638
+ static fromNumber(number) {
639
+ if (number > 9223372036854776000 || number < -9223372036854776000) {
640
+ throw new Error(`${number} is too large (or, if negative, too small) to represent as an Int64`);
641
+ }
642
+ const bytes = new Uint8Array(8);
643
+ for (let i = 7, remaining = Math.abs(Math.round(number));i > -1 && remaining > 0; i--, remaining /= 256) {
644
+ bytes[i] = remaining;
645
+ }
646
+ if (number < 0) {
647
+ negate(bytes);
648
+ }
649
+ return new Int64(bytes);
650
+ }
651
+ valueOf() {
652
+ const bytes = this.bytes.slice(0);
653
+ const negative = bytes[0] & 128;
654
+ if (negative) {
655
+ negate(bytes);
656
+ }
657
+ return parseInt(import_util_hex_encoding.toHex(bytes), 16) * (negative ? -1 : 1);
658
+ }
659
+ toString() {
660
+ return String(this.valueOf());
661
+ }
662
+ }
663
+ function negate(bytes) {
664
+ for (let i = 0;i < 8; i++) {
665
+ bytes[i] ^= 255;
666
+ }
667
+ for (let i = 7;i > -1; i--) {
668
+ bytes[i]++;
669
+ if (bytes[i] !== 0)
670
+ break;
671
+ }
672
+ }
673
+ var import_util_hex_encoding;
674
+ var init_Int64 = __esm(() => {
675
+ import_util_hex_encoding = __toESM(require_dist_cjs7(), 1);
676
+ });
677
+
678
+ // node_modules/.bun/@smithy+eventstream-codec@4.2.12/node_modules/@smithy/eventstream-codec/dist-es/HeaderMarshaller.js
679
+ class HeaderMarshaller {
680
+ toUtf8;
681
+ fromUtf8;
682
+ constructor(toUtf83, fromUtf84) {
683
+ this.toUtf8 = toUtf83;
684
+ this.fromUtf8 = fromUtf84;
685
+ }
686
+ format(headers) {
687
+ const chunks = [];
688
+ for (const headerName of Object.keys(headers)) {
689
+ const bytes = this.fromUtf8(headerName);
690
+ chunks.push(Uint8Array.from([bytes.byteLength]), bytes, this.formatHeaderValue(headers[headerName]));
691
+ }
692
+ const out = new Uint8Array(chunks.reduce((carry, bytes) => carry + bytes.byteLength, 0));
693
+ let position = 0;
694
+ for (const chunk of chunks) {
695
+ out.set(chunk, position);
696
+ position += chunk.byteLength;
697
+ }
698
+ return out;
699
+ }
700
+ formatHeaderValue(header) {
701
+ switch (header.type) {
702
+ case "boolean":
703
+ return Uint8Array.from([header.value ? 0 : 1]);
704
+ case "byte":
705
+ return Uint8Array.from([2, header.value]);
706
+ case "short":
707
+ const shortView = new DataView(new ArrayBuffer(3));
708
+ shortView.setUint8(0, 3);
709
+ shortView.setInt16(1, header.value, false);
710
+ return new Uint8Array(shortView.buffer);
711
+ case "integer":
712
+ const intView = new DataView(new ArrayBuffer(5));
713
+ intView.setUint8(0, 4);
714
+ intView.setInt32(1, header.value, false);
715
+ return new Uint8Array(intView.buffer);
716
+ case "long":
717
+ const longBytes = new Uint8Array(9);
718
+ longBytes[0] = 5;
719
+ longBytes.set(header.value.bytes, 1);
720
+ return longBytes;
721
+ case "binary":
722
+ const binView = new DataView(new ArrayBuffer(3 + header.value.byteLength));
723
+ binView.setUint8(0, 6);
724
+ binView.setUint16(1, header.value.byteLength, false);
725
+ const binBytes = new Uint8Array(binView.buffer);
726
+ binBytes.set(header.value, 3);
727
+ return binBytes;
728
+ case "string":
729
+ const utf8Bytes = this.fromUtf8(header.value);
730
+ const strView = new DataView(new ArrayBuffer(3 + utf8Bytes.byteLength));
731
+ strView.setUint8(0, 7);
732
+ strView.setUint16(1, utf8Bytes.byteLength, false);
733
+ const strBytes = new Uint8Array(strView.buffer);
734
+ strBytes.set(utf8Bytes, 3);
735
+ return strBytes;
736
+ case "timestamp":
737
+ const tsBytes = new Uint8Array(9);
738
+ tsBytes[0] = 8;
739
+ tsBytes.set(Int64.fromNumber(header.value.valueOf()).bytes, 1);
740
+ return tsBytes;
741
+ case "uuid":
742
+ if (!UUID_PATTERN.test(header.value)) {
743
+ throw new Error(`Invalid UUID received: ${header.value}`);
744
+ }
745
+ const uuidBytes = new Uint8Array(17);
746
+ uuidBytes[0] = 9;
747
+ uuidBytes.set(import_util_hex_encoding2.fromHex(header.value.replace(/\-/g, "")), 1);
748
+ return uuidBytes;
749
+ }
750
+ }
751
+ parse(headers) {
752
+ const out = {};
753
+ let position = 0;
754
+ while (position < headers.byteLength) {
755
+ const nameLength = headers.getUint8(position++);
756
+ const name = this.toUtf8(new Uint8Array(headers.buffer, headers.byteOffset + position, nameLength));
757
+ position += nameLength;
758
+ switch (headers.getUint8(position++)) {
759
+ case 0:
760
+ out[name] = {
761
+ type: BOOLEAN_TAG,
762
+ value: true
763
+ };
764
+ break;
765
+ case 1:
766
+ out[name] = {
767
+ type: BOOLEAN_TAG,
768
+ value: false
769
+ };
770
+ break;
771
+ case 2:
772
+ out[name] = {
773
+ type: BYTE_TAG,
774
+ value: headers.getInt8(position++)
775
+ };
776
+ break;
777
+ case 3:
778
+ out[name] = {
779
+ type: SHORT_TAG,
780
+ value: headers.getInt16(position, false)
781
+ };
782
+ position += 2;
783
+ break;
784
+ case 4:
785
+ out[name] = {
786
+ type: INT_TAG,
787
+ value: headers.getInt32(position, false)
788
+ };
789
+ position += 4;
790
+ break;
791
+ case 5:
792
+ out[name] = {
793
+ type: LONG_TAG,
794
+ value: new Int64(new Uint8Array(headers.buffer, headers.byteOffset + position, 8))
795
+ };
796
+ position += 8;
797
+ break;
798
+ case 6:
799
+ const binaryLength = headers.getUint16(position, false);
800
+ position += 2;
801
+ out[name] = {
802
+ type: BINARY_TAG,
803
+ value: new Uint8Array(headers.buffer, headers.byteOffset + position, binaryLength)
804
+ };
805
+ position += binaryLength;
806
+ break;
807
+ case 7:
808
+ const stringLength = headers.getUint16(position, false);
809
+ position += 2;
810
+ out[name] = {
811
+ type: STRING_TAG,
812
+ value: this.toUtf8(new Uint8Array(headers.buffer, headers.byteOffset + position, stringLength))
813
+ };
814
+ position += stringLength;
815
+ break;
816
+ case 8:
817
+ out[name] = {
818
+ type: TIMESTAMP_TAG,
819
+ value: new Date(new Int64(new Uint8Array(headers.buffer, headers.byteOffset + position, 8)).valueOf())
820
+ };
821
+ position += 8;
822
+ break;
823
+ case 9:
824
+ const uuidBytes = new Uint8Array(headers.buffer, headers.byteOffset + position, 16);
825
+ position += 16;
826
+ out[name] = {
827
+ type: UUID_TAG,
828
+ value: `${import_util_hex_encoding2.toHex(uuidBytes.subarray(0, 4))}-${import_util_hex_encoding2.toHex(uuidBytes.subarray(4, 6))}-${import_util_hex_encoding2.toHex(uuidBytes.subarray(6, 8))}-${import_util_hex_encoding2.toHex(uuidBytes.subarray(8, 10))}-${import_util_hex_encoding2.toHex(uuidBytes.subarray(10))}`
829
+ };
830
+ break;
831
+ default:
832
+ throw new Error(`Unrecognized header type tag`);
833
+ }
834
+ }
835
+ return out;
836
+ }
837
+ }
838
+ var import_util_hex_encoding2, HEADER_VALUE_TYPE, BOOLEAN_TAG = "boolean", BYTE_TAG = "byte", SHORT_TAG = "short", INT_TAG = "integer", LONG_TAG = "long", BINARY_TAG = "binary", STRING_TAG = "string", TIMESTAMP_TAG = "timestamp", UUID_TAG = "uuid", UUID_PATTERN;
839
+ var init_HeaderMarshaller = __esm(() => {
840
+ init_Int64();
841
+ import_util_hex_encoding2 = __toESM(require_dist_cjs7(), 1);
842
+ (function(HEADER_VALUE_TYPE2) {
843
+ HEADER_VALUE_TYPE2[HEADER_VALUE_TYPE2["boolTrue"] = 0] = "boolTrue";
844
+ HEADER_VALUE_TYPE2[HEADER_VALUE_TYPE2["boolFalse"] = 1] = "boolFalse";
845
+ HEADER_VALUE_TYPE2[HEADER_VALUE_TYPE2["byte"] = 2] = "byte";
846
+ HEADER_VALUE_TYPE2[HEADER_VALUE_TYPE2["short"] = 3] = "short";
847
+ HEADER_VALUE_TYPE2[HEADER_VALUE_TYPE2["integer"] = 4] = "integer";
848
+ HEADER_VALUE_TYPE2[HEADER_VALUE_TYPE2["long"] = 5] = "long";
849
+ HEADER_VALUE_TYPE2[HEADER_VALUE_TYPE2["byteArray"] = 6] = "byteArray";
850
+ HEADER_VALUE_TYPE2[HEADER_VALUE_TYPE2["string"] = 7] = "string";
851
+ HEADER_VALUE_TYPE2[HEADER_VALUE_TYPE2["timestamp"] = 8] = "timestamp";
852
+ HEADER_VALUE_TYPE2[HEADER_VALUE_TYPE2["uuid"] = 9] = "uuid";
853
+ })(HEADER_VALUE_TYPE || (HEADER_VALUE_TYPE = {}));
854
+ UUID_PATTERN = /^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;
855
+ });
856
+
857
+ // node_modules/.bun/@smithy+eventstream-codec@4.2.12/node_modules/@smithy/eventstream-codec/dist-es/splitMessage.js
858
+ function splitMessage({ byteLength, byteOffset, buffer }) {
859
+ if (byteLength < MINIMUM_MESSAGE_LENGTH) {
860
+ throw new Error("Provided message too short to accommodate event stream message overhead");
861
+ }
862
+ const view = new DataView(buffer, byteOffset, byteLength);
863
+ const messageLength = view.getUint32(0, false);
864
+ if (byteLength !== messageLength) {
865
+ throw new Error("Reported message length does not match received message length");
866
+ }
867
+ const headerLength = view.getUint32(PRELUDE_MEMBER_LENGTH, false);
868
+ const expectedPreludeChecksum = view.getUint32(PRELUDE_LENGTH, false);
869
+ const expectedMessageChecksum = view.getUint32(byteLength - CHECKSUM_LENGTH, false);
870
+ const checksummer = new Crc32().update(new Uint8Array(buffer, byteOffset, PRELUDE_LENGTH));
871
+ if (expectedPreludeChecksum !== checksummer.digest()) {
872
+ throw new Error(`The prelude checksum specified in the message (${expectedPreludeChecksum}) does not match the calculated CRC32 checksum (${checksummer.digest()})`);
873
+ }
874
+ checksummer.update(new Uint8Array(buffer, byteOffset + PRELUDE_LENGTH, byteLength - (PRELUDE_LENGTH + CHECKSUM_LENGTH)));
875
+ if (expectedMessageChecksum !== checksummer.digest()) {
876
+ throw new Error(`The message checksum (${checksummer.digest()}) did not match the expected value of ${expectedMessageChecksum}`);
877
+ }
878
+ return {
879
+ headers: new DataView(buffer, byteOffset + PRELUDE_LENGTH + CHECKSUM_LENGTH, headerLength),
880
+ body: new Uint8Array(buffer, byteOffset + PRELUDE_LENGTH + CHECKSUM_LENGTH + headerLength, messageLength - headerLength - (PRELUDE_LENGTH + CHECKSUM_LENGTH + CHECKSUM_LENGTH))
881
+ };
882
+ }
883
+ var PRELUDE_MEMBER_LENGTH = 4, PRELUDE_LENGTH, CHECKSUM_LENGTH = 4, MINIMUM_MESSAGE_LENGTH;
884
+ var init_splitMessage = __esm(() => {
885
+ init_module2();
886
+ PRELUDE_LENGTH = PRELUDE_MEMBER_LENGTH * 2;
887
+ MINIMUM_MESSAGE_LENGTH = PRELUDE_LENGTH + CHECKSUM_LENGTH * 2;
888
+ });
889
+
890
+ // node_modules/.bun/@smithy+eventstream-codec@4.2.12/node_modules/@smithy/eventstream-codec/dist-es/EventStreamCodec.js
891
+ class EventStreamCodec {
892
+ headerMarshaller;
893
+ messageBuffer;
894
+ isEndOfStream;
895
+ constructor(toUtf83, fromUtf84) {
896
+ this.headerMarshaller = new HeaderMarshaller(toUtf83, fromUtf84);
897
+ this.messageBuffer = [];
898
+ this.isEndOfStream = false;
899
+ }
900
+ feed(message) {
901
+ this.messageBuffer.push(this.decode(message));
902
+ }
903
+ endOfStream() {
904
+ this.isEndOfStream = true;
905
+ }
906
+ getMessage() {
907
+ const message = this.messageBuffer.pop();
908
+ const isEndOfStream = this.isEndOfStream;
909
+ return {
910
+ getMessage() {
911
+ return message;
912
+ },
913
+ isEndOfStream() {
914
+ return isEndOfStream;
915
+ }
916
+ };
917
+ }
918
+ getAvailableMessages() {
919
+ const messages = this.messageBuffer;
920
+ this.messageBuffer = [];
921
+ const isEndOfStream = this.isEndOfStream;
922
+ return {
923
+ getMessages() {
924
+ return messages;
925
+ },
926
+ isEndOfStream() {
927
+ return isEndOfStream;
928
+ }
929
+ };
930
+ }
931
+ encode({ headers: rawHeaders, body }) {
932
+ const headers = this.headerMarshaller.format(rawHeaders);
933
+ const length = headers.byteLength + body.byteLength + 16;
934
+ const out = new Uint8Array(length);
935
+ const view = new DataView(out.buffer, out.byteOffset, out.byteLength);
936
+ const checksum = new Crc32;
937
+ view.setUint32(0, length, false);
938
+ view.setUint32(4, headers.byteLength, false);
939
+ view.setUint32(8, checksum.update(out.subarray(0, 8)).digest(), false);
940
+ out.set(headers, 12);
941
+ out.set(body, headers.byteLength + 12);
942
+ view.setUint32(length - 4, checksum.update(out.subarray(8, length - 4)).digest(), false);
943
+ return out;
944
+ }
945
+ decode(message) {
946
+ const { headers, body } = splitMessage(message);
947
+ return { headers: this.headerMarshaller.parse(headers), body };
948
+ }
949
+ formatHeaders(rawHeaders) {
950
+ return this.headerMarshaller.format(rawHeaders);
951
+ }
952
+ }
953
+ var init_EventStreamCodec = __esm(() => {
954
+ init_module2();
955
+ init_HeaderMarshaller();
956
+ init_splitMessage();
957
+ });
958
+
959
+ // node_modules/.bun/@smithy+eventstream-codec@4.2.12/node_modules/@smithy/eventstream-codec/dist-es/Message.js
960
+ var init_Message = () => {};
961
+
962
+ // node_modules/.bun/@smithy+eventstream-codec@4.2.12/node_modules/@smithy/eventstream-codec/dist-es/MessageDecoderStream.js
963
+ var MessageDecoderStream;
964
+ var init_MessageDecoderStream = __esm(() => {
965
+ MessageDecoderStream = class MessageDecoderStream {
966
+ options;
967
+ constructor(options) {
968
+ this.options = options;
969
+ }
970
+ [Symbol.asyncIterator]() {
971
+ return this.asyncIterator();
972
+ }
973
+ async* asyncIterator() {
974
+ for await (const bytes of this.options.inputStream) {
975
+ const decoded = this.options.decoder.decode(bytes);
976
+ yield decoded;
977
+ }
978
+ }
979
+ };
980
+ });
981
+
982
+ // node_modules/.bun/@smithy+eventstream-codec@4.2.12/node_modules/@smithy/eventstream-codec/dist-es/MessageEncoderStream.js
983
+ var MessageEncoderStream;
984
+ var init_MessageEncoderStream = __esm(() => {
985
+ MessageEncoderStream = class MessageEncoderStream {
986
+ options;
987
+ constructor(options) {
988
+ this.options = options;
989
+ }
990
+ [Symbol.asyncIterator]() {
991
+ return this.asyncIterator();
992
+ }
993
+ async* asyncIterator() {
994
+ for await (const msg of this.options.messageStream) {
995
+ const encoded = this.options.encoder.encode(msg);
996
+ yield encoded;
997
+ }
998
+ if (this.options.includeEndFrame) {
999
+ yield new Uint8Array(0);
1000
+ }
1001
+ }
1002
+ };
1003
+ });
1004
+
1005
+ // node_modules/.bun/@smithy+eventstream-codec@4.2.12/node_modules/@smithy/eventstream-codec/dist-es/SmithyMessageDecoderStream.js
1006
+ var SmithyMessageDecoderStream;
1007
+ var init_SmithyMessageDecoderStream = __esm(() => {
1008
+ SmithyMessageDecoderStream = class SmithyMessageDecoderStream {
1009
+ options;
1010
+ constructor(options) {
1011
+ this.options = options;
1012
+ }
1013
+ [Symbol.asyncIterator]() {
1014
+ return this.asyncIterator();
1015
+ }
1016
+ async* asyncIterator() {
1017
+ for await (const message of this.options.messageStream) {
1018
+ const deserialized = await this.options.deserializer(message);
1019
+ if (deserialized === undefined)
1020
+ continue;
1021
+ yield deserialized;
1022
+ }
1023
+ }
1024
+ };
1025
+ });
1026
+
1027
+ // node_modules/.bun/@smithy+eventstream-codec@4.2.12/node_modules/@smithy/eventstream-codec/dist-es/SmithyMessageEncoderStream.js
1028
+ var SmithyMessageEncoderStream;
1029
+ var init_SmithyMessageEncoderStream = __esm(() => {
1030
+ SmithyMessageEncoderStream = class SmithyMessageEncoderStream {
1031
+ options;
1032
+ constructor(options) {
1033
+ this.options = options;
1034
+ }
1035
+ [Symbol.asyncIterator]() {
1036
+ return this.asyncIterator();
1037
+ }
1038
+ async* asyncIterator() {
1039
+ for await (const chunk of this.options.inputStream) {
1040
+ const payloadBuf = this.options.serializer(chunk);
1041
+ yield payloadBuf;
1042
+ }
1043
+ }
1044
+ };
1045
+ });
1046
+
1047
+ // node_modules/.bun/@smithy+eventstream-codec@4.2.12/node_modules/@smithy/eventstream-codec/dist-es/index.js
1048
+ var init_dist_es6 = __esm(() => {
1049
+ init_EventStreamCodec();
1050
+ init_HeaderMarshaller();
1051
+ init_Int64();
1052
+ init_Message();
1053
+ init_MessageDecoderStream();
1054
+ init_MessageEncoderStream();
1055
+ init_SmithyMessageDecoderStream();
1056
+ init_SmithyMessageEncoderStream();
1057
+ });
1058
+
1059
+ // node_modules/.bun/@smithy+eventstream-serde-universal@4.2.12/node_modules/@smithy/eventstream-serde-universal/dist-es/getChunkedStream.js
1060
+ function getChunkedStream(source) {
1061
+ let currentMessageTotalLength = 0;
1062
+ let currentMessagePendingLength = 0;
1063
+ let currentMessage = null;
1064
+ let messageLengthBuffer = null;
1065
+ const allocateMessage = (size) => {
1066
+ if (typeof size !== "number") {
1067
+ throw new Error("Attempted to allocate an event message where size was not a number: " + size);
1068
+ }
1069
+ currentMessageTotalLength = size;
1070
+ currentMessagePendingLength = 4;
1071
+ currentMessage = new Uint8Array(size);
1072
+ const currentMessageView = new DataView(currentMessage.buffer);
1073
+ currentMessageView.setUint32(0, size, false);
1074
+ };
1075
+ const iterator = async function* () {
1076
+ const sourceIterator = source[Symbol.asyncIterator]();
1077
+ while (true) {
1078
+ const { value, done } = await sourceIterator.next();
1079
+ if (done) {
1080
+ if (!currentMessageTotalLength) {
1081
+ return;
1082
+ } else if (currentMessageTotalLength === currentMessagePendingLength) {
1083
+ yield currentMessage;
1084
+ } else {
1085
+ throw new Error("Truncated event message received.");
1086
+ }
1087
+ return;
1088
+ }
1089
+ const chunkLength = value.length;
1090
+ let currentOffset = 0;
1091
+ while (currentOffset < chunkLength) {
1092
+ if (!currentMessage) {
1093
+ const bytesRemaining = chunkLength - currentOffset;
1094
+ if (!messageLengthBuffer) {
1095
+ messageLengthBuffer = new Uint8Array(4);
1096
+ }
1097
+ const numBytesForTotal = Math.min(4 - currentMessagePendingLength, bytesRemaining);
1098
+ messageLengthBuffer.set(value.slice(currentOffset, currentOffset + numBytesForTotal), currentMessagePendingLength);
1099
+ currentMessagePendingLength += numBytesForTotal;
1100
+ currentOffset += numBytesForTotal;
1101
+ if (currentMessagePendingLength < 4) {
1102
+ break;
1103
+ }
1104
+ allocateMessage(new DataView(messageLengthBuffer.buffer).getUint32(0, false));
1105
+ messageLengthBuffer = null;
1106
+ }
1107
+ const numBytesToWrite = Math.min(currentMessageTotalLength - currentMessagePendingLength, chunkLength - currentOffset);
1108
+ currentMessage.set(value.slice(currentOffset, currentOffset + numBytesToWrite), currentMessagePendingLength);
1109
+ currentMessagePendingLength += numBytesToWrite;
1110
+ currentOffset += numBytesToWrite;
1111
+ if (currentMessageTotalLength && currentMessageTotalLength === currentMessagePendingLength) {
1112
+ yield currentMessage;
1113
+ currentMessage = null;
1114
+ currentMessageTotalLength = 0;
1115
+ currentMessagePendingLength = 0;
1116
+ }
1117
+ }
1118
+ }
1119
+ };
1120
+ return {
1121
+ [Symbol.asyncIterator]: iterator
1122
+ };
1123
+ }
1124
+
1125
+ // node_modules/.bun/@smithy+eventstream-serde-universal@4.2.12/node_modules/@smithy/eventstream-serde-universal/dist-es/getUnmarshalledStream.js
1126
+ function getMessageUnmarshaller(deserializer, toUtf83) {
1127
+ return async function(message) {
1128
+ const { value: messageType } = message.headers[":message-type"];
1129
+ if (messageType === "error") {
1130
+ const unmodeledError = new Error(message.headers[":error-message"].value || "UnknownError");
1131
+ unmodeledError.name = message.headers[":error-code"].value;
1132
+ throw unmodeledError;
1133
+ } else if (messageType === "exception") {
1134
+ const code = message.headers[":exception-type"].value;
1135
+ const exception = { [code]: message };
1136
+ const deserializedException = await deserializer(exception);
1137
+ if (deserializedException.$unknown) {
1138
+ const error = new Error(toUtf83(message.body));
1139
+ error.name = code;
1140
+ throw error;
1141
+ }
1142
+ throw deserializedException[code];
1143
+ } else if (messageType === "event") {
1144
+ const event = {
1145
+ [message.headers[":event-type"].value]: message
1146
+ };
1147
+ const deserialized = await deserializer(event);
1148
+ if (deserialized.$unknown)
1149
+ return;
1150
+ return deserialized;
1151
+ } else {
1152
+ throw Error(`Unrecognizable event type: ${message.headers[":event-type"].value}`);
1153
+ }
1154
+ };
1155
+ }
1156
+
1157
+ // node_modules/.bun/@smithy+eventstream-serde-universal@4.2.12/node_modules/@smithy/eventstream-serde-universal/dist-es/EventStreamMarshaller.js
1158
+ class EventStreamMarshaller {
1159
+ eventStreamCodec;
1160
+ utfEncoder;
1161
+ constructor({ utf8Encoder, utf8Decoder }) {
1162
+ this.eventStreamCodec = new EventStreamCodec(utf8Encoder, utf8Decoder);
1163
+ this.utfEncoder = utf8Encoder;
1164
+ }
1165
+ deserialize(body, deserializer) {
1166
+ const inputStream = getChunkedStream(body);
1167
+ return new SmithyMessageDecoderStream({
1168
+ messageStream: new MessageDecoderStream({ inputStream, decoder: this.eventStreamCodec }),
1169
+ deserializer: getMessageUnmarshaller(deserializer, this.utfEncoder)
1170
+ });
1171
+ }
1172
+ serialize(inputStream, serializer) {
1173
+ return new MessageEncoderStream({
1174
+ messageStream: new SmithyMessageEncoderStream({ inputStream, serializer }),
1175
+ encoder: this.eventStreamCodec,
1176
+ includeEndFrame: true
1177
+ });
1178
+ }
1179
+ }
1180
+ var init_EventStreamMarshaller = __esm(() => {
1181
+ init_dist_es6();
1182
+ });
1183
+
1184
+ // node_modules/.bun/@smithy+eventstream-serde-universal@4.2.12/node_modules/@smithy/eventstream-serde-universal/dist-es/provider.js
1185
+ var init_provider = () => {};
1186
+
1187
+ // node_modules/.bun/@smithy+eventstream-serde-universal@4.2.12/node_modules/@smithy/eventstream-serde-universal/dist-es/index.js
1188
+ var init_dist_es7 = __esm(() => {
1189
+ init_EventStreamMarshaller();
1190
+ init_provider();
1191
+ });
1192
+
1193
+ // node_modules/.bun/@aws-sdk+middleware-websocket@3.972.14/node_modules/@aws-sdk/middleware-websocket/dist-es/utils.js
1194
+ var isWebSocketRequest = (request) => request.protocol === "ws:" || request.protocol === "wss:";
1195
+
1196
+ // node_modules/.bun/@aws-sdk+middleware-websocket@3.972.14/node_modules/@aws-sdk/middleware-websocket/dist-es/WebSocketFetchHandler.js
1197
+ var init_WebSocketFetchHandler = () => {};
1198
+
1199
+ // node_modules/.bun/@aws-sdk+middleware-websocket@3.972.14/node_modules/@aws-sdk/middleware-websocket/dist-es/middlewares/websocketEndpointMiddleware.js
1200
+ var import_protocol_http3, websocketEndpointMiddleware = (config, options) => (next) => (args) => {
1201
+ const { request } = args;
1202
+ if (import_protocol_http3.HttpRequest.isInstance(request) && config.requestHandler.metadata?.handlerProtocol?.toLowerCase().includes("websocket")) {
1203
+ request.protocol = "wss:";
1204
+ request.method = "GET";
1205
+ request.path = `${request.path}-websocket`;
1206
+ const { headers } = request;
1207
+ delete headers["content-type"];
1208
+ delete headers["x-amz-content-sha256"];
1209
+ for (const name of Object.keys(headers)) {
1210
+ if (name.indexOf(options.headerPrefix) === 0) {
1211
+ const chunkedName = name.replace(options.headerPrefix, "");
1212
+ request.query[chunkedName] = headers[name];
1213
+ }
1214
+ }
1215
+ if (headers["x-amz-user-agent"]) {
1216
+ request.query["user-agent"] = headers["x-amz-user-agent"];
1217
+ }
1218
+ request.headers = { host: headers.host ?? request.hostname };
1219
+ }
1220
+ return next(args);
1221
+ }, websocketEndpointMiddlewareOptions;
1222
+ var init_websocketEndpointMiddleware = __esm(() => {
1223
+ import_protocol_http3 = __toESM(require_dist_cjs(), 1);
1224
+ websocketEndpointMiddlewareOptions = {
1225
+ name: "websocketEndpointMiddleware",
1226
+ tags: ["WEBSOCKET", "EVENT_STREAM"],
1227
+ relation: "after",
1228
+ toMiddleware: "eventStreamHeaderMiddleware",
1229
+ override: true
1230
+ };
1231
+ });
1232
+
1233
+ // node_modules/.bun/@aws-sdk+middleware-websocket@3.972.14/node_modules/@aws-sdk/middleware-websocket/dist-es/middlewares/websocketInjectSessionIdMiddleware.js
1234
+ var injectSessionIdMiddleware = () => (next) => async (args) => {
1235
+ const requestParams = {
1236
+ ...args.input
1237
+ };
1238
+ const response = await next(args);
1239
+ const output = response.output;
1240
+ if (requestParams.SessionId && output.SessionId == null) {
1241
+ output.SessionId = requestParams.SessionId;
1242
+ }
1243
+ return response;
1244
+ }, injectSessionIdMiddlewareOptions;
1245
+ var init_websocketInjectSessionIdMiddleware = __esm(() => {
1246
+ injectSessionIdMiddlewareOptions = {
1247
+ step: "initialize",
1248
+ name: "injectSessionIdMiddleware",
1249
+ tags: ["WEBSOCKET", "EVENT_STREAM"],
1250
+ override: true
1251
+ };
1252
+ });
1253
+
1254
+ // node_modules/.bun/@aws-sdk+middleware-websocket@3.972.14/node_modules/@aws-sdk/middleware-websocket/dist-es/getWebSocketPlugin.js
1255
+ var getWebSocketPlugin = (config, options) => ({
1256
+ applyToStack: (clientStack) => {
1257
+ clientStack.addRelativeTo(websocketEndpointMiddleware(config, options), websocketEndpointMiddlewareOptions);
1258
+ clientStack.add(injectSessionIdMiddleware(), injectSessionIdMiddlewareOptions);
1259
+ }
1260
+ });
1261
+ var init_getWebSocketPlugin = __esm(() => {
1262
+ init_websocketEndpointMiddleware();
1263
+ init_websocketInjectSessionIdMiddleware();
1264
+ });
1265
+
1266
+ // node_modules/.bun/@aws-sdk+middleware-websocket@3.972.14/node_modules/@aws-sdk/middleware-websocket/dist-es/WebsocketSignatureV4.js
1267
+ class WebsocketSignatureV4 {
1268
+ signer;
1269
+ constructor(options) {
1270
+ this.signer = options.signer;
1271
+ }
1272
+ presign(originalRequest, options = {}) {
1273
+ return this.signer.presign(originalRequest, options);
1274
+ }
1275
+ async sign(toSign, options) {
1276
+ if (import_protocol_http4.HttpRequest.isInstance(toSign) && isWebSocketRequest(toSign)) {
1277
+ const signedRequest = await this.signer.presign({ ...toSign, body: "" }, {
1278
+ ...options,
1279
+ expiresIn: 60,
1280
+ unsignableHeaders: new Set(Object.keys(toSign.headers).filter((header) => header !== "host"))
1281
+ });
1282
+ return {
1283
+ ...signedRequest,
1284
+ body: toSign.body
1285
+ };
1286
+ } else {
1287
+ return this.signer.sign(toSign, options);
1288
+ }
1289
+ }
1290
+ signMessage(message, args) {
1291
+ return this.signer.signMessage(message, args);
1292
+ }
1293
+ }
1294
+ var import_protocol_http4;
1295
+ var init_WebsocketSignatureV4 = __esm(() => {
1296
+ import_protocol_http4 = __toESM(require_dist_cjs(), 1);
1297
+ });
1298
+
1299
+ // node_modules/.bun/@aws-sdk+middleware-websocket@3.972.14/node_modules/@aws-sdk/middleware-websocket/dist-es/resolveWebSocketConfig.js
1300
+ var resolveWebSocketConfig = (input) => {
1301
+ const { signer } = input;
1302
+ return Object.assign(input, {
1303
+ signer: async (authScheme) => {
1304
+ const signerObj = await signer(authScheme);
1305
+ if (validateSigner(signerObj)) {
1306
+ return new WebsocketSignatureV4({ signer: signerObj });
1307
+ }
1308
+ throw new Error("Expected WebsocketSignatureV4 signer, please check the client constructor.");
1309
+ }
1310
+ });
1311
+ }, validateSigner = (signer) => !!signer;
1312
+ var init_resolveWebSocketConfig = __esm(() => {
1313
+ init_WebsocketSignatureV4();
1314
+ });
1315
+
1316
+ // node_modules/.bun/@aws-sdk+middleware-websocket@3.972.14/node_modules/@aws-sdk/middleware-websocket/dist-es/ws-eventstream/eventStreamPayloadHandlerProvider.js
1317
+ var init_eventStreamPayloadHandlerProvider = () => {};
1318
+
1319
+ // node_modules/.bun/@aws-sdk+middleware-websocket@3.972.14/node_modules/@aws-sdk/middleware-websocket/dist-es/index.js
1320
+ var init_dist_es8 = __esm(() => {
1321
+ init_WebSocketFetchHandler();
1322
+ init_getWebSocketPlugin();
1323
+ init_resolveWebSocketConfig();
1324
+ init_eventStreamPayloadHandlerProvider();
1325
+ });
1326
+
1327
+ // node_modules/.bun/@smithy+eventstream-serde-config-resolver@4.3.12/node_modules/@smithy/eventstream-serde-config-resolver/dist-es/EventStreamSerdeConfig.js
1328
+ var resolveEventStreamSerdeConfig = (input) => Object.assign(input, {
1329
+ eventStreamMarshaller: input.eventStreamSerdeProvider(input)
1330
+ });
1331
+
1332
+ // node_modules/.bun/@smithy+eventstream-serde-config-resolver@4.3.12/node_modules/@smithy/eventstream-serde-config-resolver/dist-es/index.js
1333
+ var init_dist_es9 = () => {};
1334
+
1335
+ // node_modules/.bun/@aws-sdk+client-bedrock-runtime@3.1020.0/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/auth/httpAuthSchemeProvider.js
1336
+ function createAwsAuthSigv4HttpAuthOption(authParameters) {
1337
+ return {
1338
+ schemeId: "aws.auth#sigv4",
1339
+ signingProperties: {
1340
+ name: "bedrock",
1341
+ region: authParameters.region
1342
+ },
1343
+ propertiesExtractor: (config, context) => ({
1344
+ signingProperties: {
1345
+ config,
1346
+ context
1347
+ }
1348
+ })
1349
+ };
1350
+ }
1351
+ function createSmithyApiHttpBearerAuthHttpAuthOption(authParameters) {
1352
+ return {
1353
+ schemeId: "smithy.api#httpBearerAuth",
1354
+ propertiesExtractor: ({ profile, filepath, configFilepath, ignoreCache }, context) => ({
1355
+ identityProperties: {
1356
+ profile,
1357
+ filepath,
1358
+ configFilepath,
1359
+ ignoreCache
1360
+ }
1361
+ })
1362
+ };
1363
+ }
1364
+ var import_httpAuthSchemes, import_core, import_util_middleware, defaultBedrockRuntimeHttpAuthSchemeParametersProvider = async (config, context, input) => {
1365
+ return {
1366
+ operation: import_util_middleware.getSmithyContext(context).operation,
1367
+ region: await import_util_middleware.normalizeProvider(config.region)() || (() => {
1368
+ throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
1369
+ })()
1370
+ };
1371
+ }, defaultBedrockRuntimeHttpAuthSchemeProvider = (authParameters) => {
1372
+ const options = [];
1373
+ switch (authParameters.operation) {
1374
+ default: {
1375
+ options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
1376
+ options.push(createSmithyApiHttpBearerAuthHttpAuthOption(authParameters));
1377
+ }
1378
+ }
1379
+ return options;
1380
+ }, resolveHttpAuthSchemeConfig = (config) => {
1381
+ const token = import_core.memoizeIdentityProvider(config.token, import_core.isIdentityExpired, import_core.doesIdentityRequireRefresh);
1382
+ const config_0 = import_httpAuthSchemes.resolveAwsSdkSigV4Config(config);
1383
+ return Object.assign(config_0, {
1384
+ authSchemePreference: import_util_middleware.normalizeProvider(config.authSchemePreference ?? []),
1385
+ token
1386
+ });
1387
+ };
1388
+ var init_httpAuthSchemeProvider = __esm(() => {
1389
+ import_httpAuthSchemes = __toESM(require_httpAuthSchemes(), 1);
1390
+ import_core = __toESM(require_dist_cjs10(), 1);
1391
+ import_util_middleware = __toESM(require_dist_cjs8(), 1);
1392
+ });
1393
+
1394
+ // node_modules/.bun/@aws-sdk+client-bedrock-runtime@3.1020.0/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/endpoint/EndpointParameters.js
1395
+ var resolveClientEndpointParameters = (options) => {
1396
+ return Object.assign(options, {
1397
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
1398
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
1399
+ defaultSigningName: "bedrock"
1400
+ });
1401
+ }, commonParams;
1402
+ var init_EndpointParameters = __esm(() => {
1403
+ commonParams = {
1404
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
1405
+ Endpoint: { type: "builtInParams", name: "endpoint" },
1406
+ Region: { type: "builtInParams", name: "region" },
1407
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
1408
+ };
1409
+ });
1410
+
1411
+ // node_modules/.bun/@aws-sdk+client-bedrock-runtime@3.1020.0/node_modules/@aws-sdk/client-bedrock-runtime/package.json
1412
+ var package_default;
1413
+ var init_package = __esm(() => {
1414
+ package_default = {
1415
+ name: "@aws-sdk/client-bedrock-runtime",
1416
+ description: "AWS SDK for JavaScript Bedrock Runtime Client for Node.js, Browser and React Native",
1417
+ version: "3.1020.0",
1418
+ scripts: {
1419
+ build: "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
1420
+ "build:cjs": "node ../../scripts/compilation/inline client-bedrock-runtime",
1421
+ "build:es": "tsc -p tsconfig.es.json",
1422
+ "build:include:deps": 'yarn g:turbo run build -F="$npm_package_name"',
1423
+ "build:types": "tsc -p tsconfig.types.json",
1424
+ "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
1425
+ clean: "premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo",
1426
+ "extract:docs": "api-extractor run --local",
1427
+ "generate:client": "node ../../scripts/generate-clients/single-service --solo bedrock-runtime",
1428
+ test: "yarn g:vitest run --passWithNoTests",
1429
+ "test:browser": "yarn g:vitest run -c vitest.config.browser.e2e.mts",
1430
+ "test:browser:watch": "yarn g:vitest watch -c vitest.config.browser.e2e.mts",
1431
+ "test:e2e": "yarn g:vitest run -c vitest.config.e2e.mts",
1432
+ "test:e2e:watch": "yarn g:vitest watch -c vitest.config.e2e.mts",
1433
+ "test:index": "tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs",
1434
+ "test:integration": "yarn g:vitest run --passWithNoTests -c vitest.config.integ.mts",
1435
+ "test:integration:watch": "yarn g:vitest run --passWithNoTests -c vitest.config.integ.mts",
1436
+ "test:watch": "yarn g:vitest watch --passWithNoTests"
1437
+ },
1438
+ main: "./dist-cjs/index.js",
1439
+ types: "./dist-types/index.d.ts",
1440
+ module: "./dist-es/index.js",
1441
+ sideEffects: false,
1442
+ dependencies: {
1443
+ "@aws-crypto/sha256-browser": "5.2.0",
1444
+ "@aws-crypto/sha256-js": "5.2.0",
1445
+ "@aws-sdk/core": "^3.973.26",
1446
+ "@aws-sdk/credential-provider-node": "^3.972.28",
1447
+ "@aws-sdk/eventstream-handler-node": "^3.972.12",
1448
+ "@aws-sdk/middleware-eventstream": "^3.972.8",
1449
+ "@aws-sdk/middleware-host-header": "^3.972.8",
1450
+ "@aws-sdk/middleware-logger": "^3.972.8",
1451
+ "@aws-sdk/middleware-recursion-detection": "^3.972.9",
1452
+ "@aws-sdk/middleware-user-agent": "^3.972.27",
1453
+ "@aws-sdk/middleware-websocket": "^3.972.14",
1454
+ "@aws-sdk/region-config-resolver": "^3.972.10",
1455
+ "@aws-sdk/token-providers": "3.1020.0",
1456
+ "@aws-sdk/types": "^3.973.6",
1457
+ "@aws-sdk/util-endpoints": "^3.996.5",
1458
+ "@aws-sdk/util-user-agent-browser": "^3.972.8",
1459
+ "@aws-sdk/util-user-agent-node": "^3.973.13",
1460
+ "@smithy/config-resolver": "^4.4.13",
1461
+ "@smithy/core": "^3.23.13",
1462
+ "@smithy/eventstream-serde-browser": "^4.2.12",
1463
+ "@smithy/eventstream-serde-config-resolver": "^4.3.12",
1464
+ "@smithy/eventstream-serde-node": "^4.2.12",
1465
+ "@smithy/fetch-http-handler": "^5.3.15",
1466
+ "@smithy/hash-node": "^4.2.12",
1467
+ "@smithy/invalid-dependency": "^4.2.12",
1468
+ "@smithy/middleware-content-length": "^4.2.12",
1469
+ "@smithy/middleware-endpoint": "^4.4.28",
1470
+ "@smithy/middleware-retry": "^4.4.45",
1471
+ "@smithy/middleware-serde": "^4.2.16",
1472
+ "@smithy/middleware-stack": "^4.2.12",
1473
+ "@smithy/node-config-provider": "^4.3.12",
1474
+ "@smithy/node-http-handler": "^4.5.1",
1475
+ "@smithy/protocol-http": "^5.3.12",
1476
+ "@smithy/smithy-client": "^4.12.8",
1477
+ "@smithy/types": "^4.13.1",
1478
+ "@smithy/url-parser": "^4.2.12",
1479
+ "@smithy/util-base64": "^4.3.2",
1480
+ "@smithy/util-body-length-browser": "^4.2.2",
1481
+ "@smithy/util-body-length-node": "^4.2.3",
1482
+ "@smithy/util-defaults-mode-browser": "^4.3.44",
1483
+ "@smithy/util-defaults-mode-node": "^4.2.48",
1484
+ "@smithy/util-endpoints": "^3.3.3",
1485
+ "@smithy/util-middleware": "^4.2.12",
1486
+ "@smithy/util-retry": "^4.2.12",
1487
+ "@smithy/util-stream": "^4.5.21",
1488
+ "@smithy/util-utf8": "^4.2.2",
1489
+ tslib: "^2.6.2"
1490
+ },
1491
+ devDependencies: {
1492
+ "@smithy/snapshot-testing": "^2.0.4",
1493
+ "@tsconfig/node20": "20.1.8",
1494
+ "@types/node": "^20.14.8",
1495
+ concurrently: "7.0.0",
1496
+ "downlevel-dts": "0.10.1",
1497
+ premove: "4.0.0",
1498
+ typescript: "~5.8.3",
1499
+ vitest: "^4.0.17"
1500
+ },
1501
+ engines: {
1502
+ node: ">=20.0.0"
1503
+ },
1504
+ typesVersions: {
1505
+ "<4.5": {
1506
+ "dist-types/*": [
1507
+ "dist-types/ts3.4/*"
1508
+ ]
1509
+ }
1510
+ },
1511
+ files: [
1512
+ "dist-*/**"
1513
+ ],
1514
+ author: {
1515
+ name: "AWS SDK for JavaScript Team",
1516
+ url: "https://aws.amazon.com/javascript/"
1517
+ },
1518
+ license: "Apache-2.0",
1519
+ browser: {
1520
+ "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.browser"
1521
+ },
1522
+ "react-native": {
1523
+ "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.native"
1524
+ },
1525
+ homepage: "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-bedrock-runtime",
1526
+ repository: {
1527
+ type: "git",
1528
+ url: "https://github.com/aws/aws-sdk-js-v3.git",
1529
+ directory: "clients/client-bedrock-runtime"
1530
+ }
1531
+ };
1532
+ });
1533
+
1534
+ // node_modules/.bun/@aws-sdk+eventstream-handler-node@3.972.12/node_modules/@aws-sdk/eventstream-handler-node/dist-es/EventSigningTransformStream.js
1535
+ import { Transform } from "stream";
1536
+ function getSignatureBinary(signature) {
1537
+ const buf = Buffer.from(signature, "hex");
1538
+ return new Uint8Array(buf.buffer, buf.byteOffset, buf.byteLength / Uint8Array.BYTES_PER_ELEMENT);
1539
+ }
1540
+ var EventSigningTransformStream;
1541
+ var init_EventSigningTransformStream = __esm(() => {
1542
+ EventSigningTransformStream = class EventSigningTransformStream extends Transform {
1543
+ priorSignature;
1544
+ messageSigner;
1545
+ eventStreamCodec;
1546
+ systemClockOffsetProvider;
1547
+ constructor(options) {
1548
+ super({
1549
+ autoDestroy: true,
1550
+ readableObjectMode: true,
1551
+ writableObjectMode: true,
1552
+ ...options
1553
+ });
1554
+ this.priorSignature = options.priorSignature;
1555
+ this.eventStreamCodec = options.eventStreamCodec;
1556
+ this.messageSigner = options.messageSigner;
1557
+ this.systemClockOffsetProvider = options.systemClockOffsetProvider;
1558
+ }
1559
+ async _transform(chunk, encoding, callback) {
1560
+ try {
1561
+ const now = new Date(Date.now() + await this.systemClockOffsetProvider());
1562
+ const dateHeader = {
1563
+ ":date": { type: "timestamp", value: now }
1564
+ };
1565
+ const signedMessage = await this.messageSigner.sign({
1566
+ message: {
1567
+ body: chunk,
1568
+ headers: dateHeader
1569
+ },
1570
+ priorSignature: this.priorSignature
1571
+ }, {
1572
+ signingDate: now
1573
+ });
1574
+ this.priorSignature = signedMessage.signature;
1575
+ const serializedSigned = this.eventStreamCodec.encode({
1576
+ headers: {
1577
+ ...dateHeader,
1578
+ ":chunk-signature": {
1579
+ type: "binary",
1580
+ value: getSignatureBinary(signedMessage.signature)
1581
+ }
1582
+ },
1583
+ body: chunk
1584
+ });
1585
+ this.push(serializedSigned);
1586
+ return callback();
1587
+ } catch (err) {
1588
+ callback(err);
1589
+ }
1590
+ }
1591
+ };
1592
+ });
1593
+
1594
+ // node_modules/.bun/@aws-sdk+eventstream-handler-node@3.972.12/node_modules/@aws-sdk/eventstream-handler-node/dist-es/EventStreamPayloadHandler.js
1595
+ import { PassThrough, pipeline, Readable } from "stream";
1596
+
1597
+ class EventStreamPayloadHandler {
1598
+ messageSigner;
1599
+ eventStreamCodec;
1600
+ systemClockOffsetProvider;
1601
+ constructor(options) {
1602
+ this.messageSigner = options.messageSigner;
1603
+ this.eventStreamCodec = new EventStreamCodec(options.utf8Encoder, options.utf8Decoder);
1604
+ this.systemClockOffsetProvider = async () => options.systemClockOffset ?? 0;
1605
+ }
1606
+ async handle(next, args, context = {}) {
1607
+ const request = args.request;
1608
+ const { body: payload, query } = request;
1609
+ if (!(payload instanceof Readable)) {
1610
+ throw new Error("Eventstream payload must be a Readable stream.");
1611
+ }
1612
+ const payloadStream = payload;
1613
+ request.body = new PassThrough({
1614
+ objectMode: true
1615
+ });
1616
+ const match = request.headers?.authorization?.match(/Signature=([\w]+)$/);
1617
+ let priorSignature = match?.[1] ?? query?.["X-Amz-Signature"] ?? "";
1618
+ if (context.__staticSignature) {
1619
+ priorSignature = "";
1620
+ }
1621
+ const signingStream = new EventSigningTransformStream({
1622
+ priorSignature,
1623
+ eventStreamCodec: this.eventStreamCodec,
1624
+ messageSigner: await this.messageSigner(),
1625
+ systemClockOffsetProvider: this.systemClockOffsetProvider
1626
+ });
1627
+ let resolvePipeline;
1628
+ const pipelineError = new Promise((resolve, reject) => {
1629
+ resolvePipeline = () => resolve(undefined);
1630
+ pipeline(payloadStream, signingStream, request.body, (err) => {
1631
+ if (err) {
1632
+ reject(new Error(`Pipeline error in @aws-sdk/eventstream-handler-node: ${err.message}`, { cause: err }));
1633
+ }
1634
+ });
1635
+ });
1636
+ let result;
1637
+ try {
1638
+ result = await Promise.race([next(args), pipelineError]);
1639
+ } catch (e) {
1640
+ request.body.end();
1641
+ throw e;
1642
+ } finally {
1643
+ resolvePipeline();
1644
+ }
1645
+ return result;
1646
+ }
1647
+ }
1648
+ var init_EventStreamPayloadHandler = __esm(() => {
1649
+ init_dist_es6();
1650
+ init_EventSigningTransformStream();
1651
+ });
1652
+
1653
+ // node_modules/.bun/@aws-sdk+eventstream-handler-node@3.972.12/node_modules/@aws-sdk/eventstream-handler-node/dist-es/eventStreamPayloadHandlerProvider.js
1654
+ var eventStreamPayloadHandlerProvider2 = (options) => new EventStreamPayloadHandler(options);
1655
+ var init_eventStreamPayloadHandlerProvider2 = __esm(() => {
1656
+ init_EventStreamPayloadHandler();
1657
+ });
1658
+
1659
+ // node_modules/.bun/@aws-sdk+eventstream-handler-node@3.972.12/node_modules/@aws-sdk/eventstream-handler-node/dist-es/index.js
1660
+ var init_dist_es10 = __esm(() => {
1661
+ init_eventStreamPayloadHandlerProvider2();
1662
+ });
1663
+
1664
+ // node_modules/.bun/@smithy+eventstream-serde-node@4.2.12/node_modules/@smithy/eventstream-serde-node/dist-es/utils.js
1665
+ async function* readabletoIterable(readStream) {
1666
+ let streamEnded = false;
1667
+ let generationEnded = false;
1668
+ const records = new Array;
1669
+ readStream.on("error", (err) => {
1670
+ if (!streamEnded) {
1671
+ streamEnded = true;
1672
+ }
1673
+ if (err) {
1674
+ throw err;
1675
+ }
1676
+ });
1677
+ readStream.on("data", (data) => {
1678
+ records.push(data);
1679
+ });
1680
+ readStream.on("end", () => {
1681
+ streamEnded = true;
1682
+ });
1683
+ while (!generationEnded) {
1684
+ const value = await new Promise((resolve) => setTimeout(() => resolve(records.shift()), 0));
1685
+ if (value) {
1686
+ yield value;
1687
+ }
1688
+ generationEnded = streamEnded && records.length === 0;
1689
+ }
1690
+ }
1691
+
1692
+ // node_modules/.bun/@smithy+eventstream-serde-node@4.2.12/node_modules/@smithy/eventstream-serde-node/dist-es/EventStreamMarshaller.js
1693
+ import { Readable as Readable2 } from "stream";
1694
+
1695
+ class EventStreamMarshaller3 {
1696
+ universalMarshaller;
1697
+ constructor({ utf8Encoder, utf8Decoder }) {
1698
+ this.universalMarshaller = new EventStreamMarshaller({
1699
+ utf8Decoder,
1700
+ utf8Encoder
1701
+ });
1702
+ }
1703
+ deserialize(body, deserializer) {
1704
+ const bodyIterable = typeof body[Symbol.asyncIterator] === "function" ? body : readabletoIterable(body);
1705
+ return this.universalMarshaller.deserialize(bodyIterable, deserializer);
1706
+ }
1707
+ serialize(input, serializer) {
1708
+ return Readable2.from(this.universalMarshaller.serialize(input, serializer));
1709
+ }
1710
+ }
1711
+ var init_EventStreamMarshaller2 = __esm(() => {
1712
+ init_dist_es7();
1713
+ });
1714
+
1715
+ // node_modules/.bun/@smithy+eventstream-serde-node@4.2.12/node_modules/@smithy/eventstream-serde-node/dist-es/provider.js
1716
+ var eventStreamSerdeProvider = (options) => new EventStreamMarshaller3(options);
1717
+ var init_provider2 = __esm(() => {
1718
+ init_EventStreamMarshaller2();
1719
+ });
1720
+
1721
+ // node_modules/.bun/@smithy+eventstream-serde-node@4.2.12/node_modules/@smithy/eventstream-serde-node/dist-es/index.js
1722
+ var init_dist_es11 = __esm(() => {
1723
+ init_EventStreamMarshaller2();
1724
+ init_provider2();
1725
+ });
1726
+
1727
+ // node_modules/.bun/@aws-sdk+client-bedrock-runtime@3.1020.0/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/endpoint/ruleset.js
1728
+ 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;
1729
+ var init_ruleset = __esm(() => {
1730
+ h = { [s]: false, type: "string" };
1731
+ i = { [s]: true, default: false, type: "boolean" };
1732
+ j = { [v]: "Endpoint" };
1733
+ k = { [t]: c, [u]: [{ [v]: "UseFIPS" }, true] };
1734
+ l = { [t]: c, [u]: [{ [v]: "UseDualStack" }, true] };
1735
+ m = {};
1736
+ n = { [t]: "getAttr", [u]: [{ [v]: g }, "supportsFIPS"] };
1737
+ o = { [t]: c, [u]: [true, { [t]: "getAttr", [u]: [{ [v]: g }, "supportsDualStack"] }] };
1738
+ p = [k];
1739
+ q = [l];
1740
+ r = [{ [v]: "Region" }];
1741
+ _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 }] };
1742
+ ruleSet = _data;
1743
+ });
1744
+
1745
+ // node_modules/.bun/@aws-sdk+client-bedrock-runtime@3.1020.0/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/endpoint/endpointResolver.js
1746
+ var import_util_endpoints, import_util_endpoints2, cache, defaultEndpointResolver = (endpointParams, context = {}) => {
1747
+ return cache.get(endpointParams, () => import_util_endpoints2.resolveEndpoint(ruleSet, {
1748
+ endpointParams,
1749
+ logger: context.logger
1750
+ }));
1751
+ };
1752
+ var init_endpointResolver = __esm(() => {
1753
+ init_ruleset();
1754
+ import_util_endpoints = __toESM(require_dist_cjs15(), 1);
1755
+ import_util_endpoints2 = __toESM(require_dist_cjs14(), 1);
1756
+ cache = new import_util_endpoints2.EndpointCache({
1757
+ size: 50,
1758
+ params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"]
1759
+ });
1760
+ import_util_endpoints2.customEndpointFunctions.aws = import_util_endpoints.awsEndpointFunctions;
1761
+ });
1762
+
1763
+ // node_modules/.bun/@aws-sdk+client-bedrock-runtime@3.1020.0/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/models/BedrockRuntimeServiceException.js
1764
+ var import_smithy_client, BedrockRuntimeServiceException;
1765
+ var init_BedrockRuntimeServiceException = __esm(() => {
1766
+ import_smithy_client = __toESM(require_dist_cjs9(), 1);
1767
+ BedrockRuntimeServiceException = class BedrockRuntimeServiceException extends import_smithy_client.ServiceException {
1768
+ constructor(options) {
1769
+ super(options);
1770
+ Object.setPrototypeOf(this, BedrockRuntimeServiceException.prototype);
1771
+ }
1772
+ };
1773
+ });
1774
+
1775
+ // node_modules/.bun/@aws-sdk+client-bedrock-runtime@3.1020.0/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/models/errors.js
1776
+ var AccessDeniedException, InternalServerException, ThrottlingException, ValidationException, ConflictException, ResourceNotFoundException, ServiceQuotaExceededException, ServiceUnavailableException, ModelErrorException, ModelNotReadyException, ModelTimeoutException, ModelStreamErrorException;
1777
+ var init_errors = __esm(() => {
1778
+ init_BedrockRuntimeServiceException();
1779
+ AccessDeniedException = class AccessDeniedException extends BedrockRuntimeServiceException {
1780
+ name = "AccessDeniedException";
1781
+ $fault = "client";
1782
+ constructor(opts) {
1783
+ super({
1784
+ name: "AccessDeniedException",
1785
+ $fault: "client",
1786
+ ...opts
1787
+ });
1788
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
1789
+ }
1790
+ };
1791
+ InternalServerException = class InternalServerException extends BedrockRuntimeServiceException {
1792
+ name = "InternalServerException";
1793
+ $fault = "server";
1794
+ constructor(opts) {
1795
+ super({
1796
+ name: "InternalServerException",
1797
+ $fault: "server",
1798
+ ...opts
1799
+ });
1800
+ Object.setPrototypeOf(this, InternalServerException.prototype);
1801
+ }
1802
+ };
1803
+ ThrottlingException = class ThrottlingException extends BedrockRuntimeServiceException {
1804
+ name = "ThrottlingException";
1805
+ $fault = "client";
1806
+ constructor(opts) {
1807
+ super({
1808
+ name: "ThrottlingException",
1809
+ $fault: "client",
1810
+ ...opts
1811
+ });
1812
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
1813
+ }
1814
+ };
1815
+ ValidationException = class ValidationException extends BedrockRuntimeServiceException {
1816
+ name = "ValidationException";
1817
+ $fault = "client";
1818
+ constructor(opts) {
1819
+ super({
1820
+ name: "ValidationException",
1821
+ $fault: "client",
1822
+ ...opts
1823
+ });
1824
+ Object.setPrototypeOf(this, ValidationException.prototype);
1825
+ }
1826
+ };
1827
+ ConflictException = class ConflictException extends BedrockRuntimeServiceException {
1828
+ name = "ConflictException";
1829
+ $fault = "client";
1830
+ constructor(opts) {
1831
+ super({
1832
+ name: "ConflictException",
1833
+ $fault: "client",
1834
+ ...opts
1835
+ });
1836
+ Object.setPrototypeOf(this, ConflictException.prototype);
1837
+ }
1838
+ };
1839
+ ResourceNotFoundException = class ResourceNotFoundException extends BedrockRuntimeServiceException {
1840
+ name = "ResourceNotFoundException";
1841
+ $fault = "client";
1842
+ constructor(opts) {
1843
+ super({
1844
+ name: "ResourceNotFoundException",
1845
+ $fault: "client",
1846
+ ...opts
1847
+ });
1848
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
1849
+ }
1850
+ };
1851
+ ServiceQuotaExceededException = class ServiceQuotaExceededException extends BedrockRuntimeServiceException {
1852
+ name = "ServiceQuotaExceededException";
1853
+ $fault = "client";
1854
+ constructor(opts) {
1855
+ super({
1856
+ name: "ServiceQuotaExceededException",
1857
+ $fault: "client",
1858
+ ...opts
1859
+ });
1860
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
1861
+ }
1862
+ };
1863
+ ServiceUnavailableException = class ServiceUnavailableException extends BedrockRuntimeServiceException {
1864
+ name = "ServiceUnavailableException";
1865
+ $fault = "server";
1866
+ constructor(opts) {
1867
+ super({
1868
+ name: "ServiceUnavailableException",
1869
+ $fault: "server",
1870
+ ...opts
1871
+ });
1872
+ Object.setPrototypeOf(this, ServiceUnavailableException.prototype);
1873
+ }
1874
+ };
1875
+ ModelErrorException = class ModelErrorException extends BedrockRuntimeServiceException {
1876
+ name = "ModelErrorException";
1877
+ $fault = "client";
1878
+ originalStatusCode;
1879
+ resourceName;
1880
+ constructor(opts) {
1881
+ super({
1882
+ name: "ModelErrorException",
1883
+ $fault: "client",
1884
+ ...opts
1885
+ });
1886
+ Object.setPrototypeOf(this, ModelErrorException.prototype);
1887
+ this.originalStatusCode = opts.originalStatusCode;
1888
+ this.resourceName = opts.resourceName;
1889
+ }
1890
+ };
1891
+ ModelNotReadyException = class ModelNotReadyException extends BedrockRuntimeServiceException {
1892
+ name = "ModelNotReadyException";
1893
+ $fault = "client";
1894
+ $retryable = {};
1895
+ constructor(opts) {
1896
+ super({
1897
+ name: "ModelNotReadyException",
1898
+ $fault: "client",
1899
+ ...opts
1900
+ });
1901
+ Object.setPrototypeOf(this, ModelNotReadyException.prototype);
1902
+ }
1903
+ };
1904
+ ModelTimeoutException = class ModelTimeoutException extends BedrockRuntimeServiceException {
1905
+ name = "ModelTimeoutException";
1906
+ $fault = "client";
1907
+ constructor(opts) {
1908
+ super({
1909
+ name: "ModelTimeoutException",
1910
+ $fault: "client",
1911
+ ...opts
1912
+ });
1913
+ Object.setPrototypeOf(this, ModelTimeoutException.prototype);
1914
+ }
1915
+ };
1916
+ ModelStreamErrorException = class ModelStreamErrorException extends BedrockRuntimeServiceException {
1917
+ name = "ModelStreamErrorException";
1918
+ $fault = "client";
1919
+ originalStatusCode;
1920
+ originalMessage;
1921
+ constructor(opts) {
1922
+ super({
1923
+ name: "ModelStreamErrorException",
1924
+ $fault: "client",
1925
+ ...opts
1926
+ });
1927
+ Object.setPrototypeOf(this, ModelStreamErrorException.prototype);
1928
+ this.originalStatusCode = opts.originalStatusCode;
1929
+ this.originalMessage = opts.originalMessage;
1930
+ }
1931
+ };
1932
+ });
1933
+
1934
+ // node_modules/.bun/@aws-sdk+client-bedrock-runtime@3.1020.0/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/schemas/schemas_0.js
1935
+ 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, Messages, 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$;
1936
+ var init_schemas_0 = __esm(() => {
1937
+ init_BedrockRuntimeServiceException();
1938
+ init_errors();
1939
+ import_schema = __toESM(require_schema(), 1);
1940
+ _s_registry = import_schema.TypeRegistry.for(_s);
1941
+ BedrockRuntimeServiceException$ = [-3, _s, "BedrockRuntimeServiceException", 0, [], []];
1942
+ _s_registry.registerError(BedrockRuntimeServiceException$, BedrockRuntimeServiceException);
1943
+ n0_registry = import_schema.TypeRegistry.for(n0);
1944
+ AccessDeniedException$ = [
1945
+ -3,
1946
+ n0,
1947
+ _ADE,
1948
+ { [_e]: _c, [_hE]: 403 },
1949
+ [_m],
1950
+ [0]
1951
+ ];
1952
+ n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
1953
+ ConflictException$ = [
1954
+ -3,
1955
+ n0,
1956
+ _CE,
1957
+ { [_e]: _c, [_hE]: 400 },
1958
+ [_m],
1959
+ [0]
1960
+ ];
1961
+ n0_registry.registerError(ConflictException$, ConflictException);
1962
+ InternalServerException$ = [
1963
+ -3,
1964
+ n0,
1965
+ _ISE,
1966
+ { [_e]: _se, [_hE]: 500 },
1967
+ [_m],
1968
+ [0]
1969
+ ];
1970
+ n0_registry.registerError(InternalServerException$, InternalServerException);
1971
+ ModelErrorException$ = [
1972
+ -3,
1973
+ n0,
1974
+ _MEE,
1975
+ { [_e]: _c, [_hE]: 424 },
1976
+ [_m, _oSC, _rN],
1977
+ [0, 1, 0]
1978
+ ];
1979
+ n0_registry.registerError(ModelErrorException$, ModelErrorException);
1980
+ ModelNotReadyException$ = [
1981
+ -3,
1982
+ n0,
1983
+ _MNRE,
1984
+ { [_e]: _c, [_hE]: 429 },
1985
+ [_m],
1986
+ [0]
1987
+ ];
1988
+ n0_registry.registerError(ModelNotReadyException$, ModelNotReadyException);
1989
+ ModelStreamErrorException$ = [
1990
+ -3,
1991
+ n0,
1992
+ _MSEE,
1993
+ { [_e]: _c, [_hE]: 424 },
1994
+ [_m, _oSC, _oM],
1995
+ [0, 1, 0]
1996
+ ];
1997
+ n0_registry.registerError(ModelStreamErrorException$, ModelStreamErrorException);
1998
+ ModelTimeoutException$ = [
1999
+ -3,
2000
+ n0,
2001
+ _MTE,
2002
+ { [_e]: _c, [_hE]: 408 },
2003
+ [_m],
2004
+ [0]
2005
+ ];
2006
+ n0_registry.registerError(ModelTimeoutException$, ModelTimeoutException);
2007
+ ResourceNotFoundException$ = [
2008
+ -3,
2009
+ n0,
2010
+ _RNFE,
2011
+ { [_e]: _c, [_hE]: 404 },
2012
+ [_m],
2013
+ [0]
2014
+ ];
2015
+ n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
2016
+ ServiceQuotaExceededException$ = [
2017
+ -3,
2018
+ n0,
2019
+ _SQEE,
2020
+ { [_e]: _c, [_hE]: 400 },
2021
+ [_m],
2022
+ [0]
2023
+ ];
2024
+ n0_registry.registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);
2025
+ ServiceUnavailableException$ = [
2026
+ -3,
2027
+ n0,
2028
+ _SUE,
2029
+ { [_e]: _se, [_hE]: 503 },
2030
+ [_m],
2031
+ [0]
2032
+ ];
2033
+ n0_registry.registerError(ServiceUnavailableException$, ServiceUnavailableException);
2034
+ ThrottlingException$ = [
2035
+ -3,
2036
+ n0,
2037
+ _TE,
2038
+ { [_e]: _c, [_hE]: 429 },
2039
+ [_m],
2040
+ [0]
2041
+ ];
2042
+ n0_registry.registerError(ThrottlingException$, ThrottlingException);
2043
+ ValidationException$ = [
2044
+ -3,
2045
+ n0,
2046
+ _VE,
2047
+ { [_e]: _c, [_hE]: 400 },
2048
+ [_m],
2049
+ [0]
2050
+ ];
2051
+ n0_registry.registerError(ValidationException$, ValidationException);
2052
+ errorTypeRegistries = [
2053
+ _s_registry,
2054
+ n0_registry
2055
+ ];
2056
+ AsyncInvokeMessage = [0, n0, _AIM, 8, 0];
2057
+ Body = [0, n0, _B, 8, 21];
2058
+ GuardrailAutomatedReasoningStatementLogicContent = [0, n0, _GARSLC, 8, 0];
2059
+ GuardrailAutomatedReasoningStatementNaturalLanguageContent = [0, n0, _GARSNLC, 8, 0];
2060
+ ModelInputPayload = [0, n0, _MIP, 8, 15];
2061
+ PartBody = [0, n0, _PB, 8, 21];
2062
+ AnyToolChoice$ = [
2063
+ 3,
2064
+ n0,
2065
+ _ATC,
2066
+ 0,
2067
+ [],
2068
+ []
2069
+ ];
2070
+ AppliedGuardrailDetails$ = [
2071
+ 3,
2072
+ n0,
2073
+ _AGD,
2074
+ 0,
2075
+ [_gI, _gV, _gA, _gO, _gOu],
2076
+ [0, 0, 0, 64 | 0, 0]
2077
+ ];
2078
+ ApplyGuardrailRequest$ = [
2079
+ 3,
2080
+ n0,
2081
+ _AGR,
2082
+ 0,
2083
+ [_gIu, _gV, _so, _co, _oS],
2084
+ [[0, 1], [0, 1], 0, [() => GuardrailContentBlockList, 0], 0],
2085
+ 4
2086
+ ];
2087
+ ApplyGuardrailResponse$ = [
2088
+ 3,
2089
+ n0,
2090
+ _AGRp,
2091
+ 0,
2092
+ [_u, _a, _o, _as, _aR, _gC],
2093
+ [() => GuardrailUsage$, 0, () => GuardrailOutputContentList, [() => GuardrailAssessmentList, 0], 0, () => GuardrailCoverage$],
2094
+ 4
2095
+ ];
2096
+ AsyncInvokeS3OutputDataConfig$ = [
2097
+ 3,
2098
+ n0,
2099
+ _AISODC,
2100
+ 0,
2101
+ [_sU, _kKI, _bO],
2102
+ [0, 0, 0],
2103
+ 1
2104
+ ];
2105
+ AsyncInvokeSummary$ = [
2106
+ 3,
2107
+ n0,
2108
+ _AIS,
2109
+ 0,
2110
+ [_iA, _mA, _sT, _oDC, _cRT, _st, _fM, _lMT, _eT],
2111
+ [0, 0, 5, () => AsyncInvokeOutputDataConfig$, 0, 0, [() => AsyncInvokeMessage, 0], 5, 5],
2112
+ 4
2113
+ ];
2114
+ AudioBlock$ = [
2115
+ 3,
2116
+ n0,
2117
+ _AB,
2118
+ 0,
2119
+ [_f, _so, _e],
2120
+ [0, [() => AudioSource$, 0], [() => ErrorBlock$, 0]],
2121
+ 2
2122
+ ];
2123
+ AutoToolChoice$ = [
2124
+ 3,
2125
+ n0,
2126
+ _ATCu,
2127
+ 0,
2128
+ [],
2129
+ []
2130
+ ];
2131
+ BidirectionalInputPayloadPart$ = [
2132
+ 3,
2133
+ n0,
2134
+ _BIPP,
2135
+ 8,
2136
+ [_b],
2137
+ [[() => PartBody, 0]]
2138
+ ];
2139
+ BidirectionalOutputPayloadPart$ = [
2140
+ 3,
2141
+ n0,
2142
+ _BOPP,
2143
+ 8,
2144
+ [_b],
2145
+ [[() => PartBody, 0]]
2146
+ ];
2147
+ CacheDetail$ = [
2148
+ 3,
2149
+ n0,
2150
+ _CD,
2151
+ 0,
2152
+ [_t, _iT],
2153
+ [0, 1],
2154
+ 2
2155
+ ];
2156
+ CachePointBlock$ = [
2157
+ 3,
2158
+ n0,
2159
+ _CPB,
2160
+ 0,
2161
+ [_ty, _t],
2162
+ [0, 0],
2163
+ 1
2164
+ ];
2165
+ Citation$ = [
2166
+ 3,
2167
+ n0,
2168
+ _C,
2169
+ 0,
2170
+ [_ti, _so, _sC, _l],
2171
+ [0, 0, () => CitationSourceContentList, () => CitationLocation$]
2172
+ ];
2173
+ CitationsConfig$ = [
2174
+ 3,
2175
+ n0,
2176
+ _CC,
2177
+ 0,
2178
+ [_en],
2179
+ [2],
2180
+ 1
2181
+ ];
2182
+ CitationsContentBlock$ = [
2183
+ 3,
2184
+ n0,
2185
+ _CCB,
2186
+ 0,
2187
+ [_co, _ci],
2188
+ [() => CitationGeneratedContentList, () => Citations]
2189
+ ];
2190
+ CitationsDelta$ = [
2191
+ 3,
2192
+ n0,
2193
+ _CDi,
2194
+ 0,
2195
+ [_ti, _so, _sC, _l],
2196
+ [0, 0, () => CitationSourceContentListDelta, () => CitationLocation$]
2197
+ ];
2198
+ CitationSourceContentDelta$ = [
2199
+ 3,
2200
+ n0,
2201
+ _CSCD,
2202
+ 0,
2203
+ [_te],
2204
+ [0]
2205
+ ];
2206
+ ContentBlockDeltaEvent$ = [
2207
+ 3,
2208
+ n0,
2209
+ _CBDE,
2210
+ 0,
2211
+ [_d, _cBI],
2212
+ [[() => ContentBlockDelta$, 0], 1],
2213
+ 2
2214
+ ];
2215
+ ContentBlockStartEvent$ = [
2216
+ 3,
2217
+ n0,
2218
+ _CBSE,
2219
+ 0,
2220
+ [_sta, _cBI],
2221
+ [() => ContentBlockStart$, 1],
2222
+ 2
2223
+ ];
2224
+ ContentBlockStopEvent$ = [
2225
+ 3,
2226
+ n0,
2227
+ _CBSEo,
2228
+ 0,
2229
+ [_cBI],
2230
+ [1],
2231
+ 1
2232
+ ];
2233
+ ConverseMetrics$ = [
2234
+ 3,
2235
+ n0,
2236
+ _CM,
2237
+ 0,
2238
+ [_lM],
2239
+ [1],
2240
+ 1
2241
+ ];
2242
+ ConverseRequest$ = [
2243
+ 3,
2244
+ n0,
2245
+ _CR,
2246
+ 0,
2247
+ [_mI, _me, _sy, _iC, _tC, _gCu, _aMRF, _pV, _aMRFP, _rM, _pC, _sTe, _oC],
2248
+ [[0, 1], [() => Messages, 0], [() => SystemContentBlocks, 0], () => InferenceConfiguration$, () => ToolConfiguration$, () => GuardrailConfiguration$, 15, [() => PromptVariableMap, 0], 64 | 0, [() => RequestMetadata, 0], () => PerformanceConfiguration$, () => ServiceTier$, [() => OutputConfig$, 0]],
2249
+ 1
2250
+ ];
2251
+ ConverseResponse$ = [
2252
+ 3,
2253
+ n0,
2254
+ _CRo,
2255
+ 0,
2256
+ [_ou, _sR, _u, _met, _aMRFd, _tr, _pC, _sTe],
2257
+ [[() => ConverseOutput$, 0], 0, () => TokenUsage$, () => ConverseMetrics$, 15, [() => ConverseTrace$, 0], () => PerformanceConfiguration$, () => ServiceTier$],
2258
+ 4
2259
+ ];
2260
+ ConverseStreamMetadataEvent$ = [
2261
+ 3,
2262
+ n0,
2263
+ _CSME,
2264
+ 0,
2265
+ [_u, _met, _tr, _pC, _sTe],
2266
+ [() => TokenUsage$, () => ConverseStreamMetrics$, [() => ConverseStreamTrace$, 0], () => PerformanceConfiguration$, () => ServiceTier$],
2267
+ 2
2268
+ ];
2269
+ ConverseStreamMetrics$ = [
2270
+ 3,
2271
+ n0,
2272
+ _CSM,
2273
+ 0,
2274
+ [_lM],
2275
+ [1],
2276
+ 1
2277
+ ];
2278
+ ConverseStreamRequest$ = [
2279
+ 3,
2280
+ n0,
2281
+ _CSR,
2282
+ 0,
2283
+ [_mI, _me, _sy, _iC, _tC, _gCu, _aMRF, _pV, _aMRFP, _rM, _pC, _sTe, _oC],
2284
+ [[0, 1], [() => Messages, 0], [() => SystemContentBlocks, 0], () => InferenceConfiguration$, () => ToolConfiguration$, () => GuardrailStreamConfiguration$, 15, [() => PromptVariableMap, 0], 64 | 0, [() => RequestMetadata, 0], () => PerformanceConfiguration$, () => ServiceTier$, [() => OutputConfig$, 0]],
2285
+ 1
2286
+ ];
2287
+ ConverseStreamResponse$ = [
2288
+ 3,
2289
+ n0,
2290
+ _CSRo,
2291
+ 0,
2292
+ [_str],
2293
+ [[() => ConverseStreamOutput$, 16]]
2294
+ ];
2295
+ ConverseStreamTrace$ = [
2296
+ 3,
2297
+ n0,
2298
+ _CST,
2299
+ 0,
2300
+ [_g, _pR],
2301
+ [[() => GuardrailTraceAssessment$, 0], () => PromptRouterTrace$]
2302
+ ];
2303
+ ConverseTokensRequest$ = [
2304
+ 3,
2305
+ n0,
2306
+ _CTR,
2307
+ 0,
2308
+ [_me, _sy, _tC, _aMRF],
2309
+ [[() => Messages, 0], [() => SystemContentBlocks, 0], () => ToolConfiguration$, 15]
2310
+ ];
2311
+ ConverseTrace$ = [
2312
+ 3,
2313
+ n0,
2314
+ _CT,
2315
+ 0,
2316
+ [_g, _pR],
2317
+ [[() => GuardrailTraceAssessment$, 0], () => PromptRouterTrace$]
2318
+ ];
2319
+ CountTokensRequest$ = [
2320
+ 3,
2321
+ n0,
2322
+ _CTRo,
2323
+ 0,
2324
+ [_mI, _i],
2325
+ [[0, 1], [() => CountTokensInput$, 0]],
2326
+ 2
2327
+ ];
2328
+ CountTokensResponse$ = [
2329
+ 3,
2330
+ n0,
2331
+ _CTRou,
2332
+ 0,
2333
+ [_iT],
2334
+ [1],
2335
+ 1
2336
+ ];
2337
+ DocumentBlock$ = [
2338
+ 3,
2339
+ n0,
2340
+ _DB,
2341
+ 0,
2342
+ [_n, _so, _f, _con, _ci],
2343
+ [0, () => DocumentSource$, 0, 0, () => CitationsConfig$],
2344
+ 2
2345
+ ];
2346
+ DocumentCharLocation$ = [
2347
+ 3,
2348
+ n0,
2349
+ _DCL,
2350
+ 0,
2351
+ [_dI, _sta, _end],
2352
+ [1, 1, 1]
2353
+ ];
2354
+ DocumentChunkLocation$ = [
2355
+ 3,
2356
+ n0,
2357
+ _DCLo,
2358
+ 0,
2359
+ [_dI, _sta, _end],
2360
+ [1, 1, 1]
2361
+ ];
2362
+ DocumentPageLocation$ = [
2363
+ 3,
2364
+ n0,
2365
+ _DPL,
2366
+ 0,
2367
+ [_dI, _sta, _end],
2368
+ [1, 1, 1]
2369
+ ];
2370
+ ErrorBlock$ = [
2371
+ 3,
2372
+ n0,
2373
+ _EB,
2374
+ 8,
2375
+ [_m],
2376
+ [0]
2377
+ ];
2378
+ GetAsyncInvokeRequest$ = [
2379
+ 3,
2380
+ n0,
2381
+ _GAIR,
2382
+ 0,
2383
+ [_iA],
2384
+ [[0, 1]],
2385
+ 1
2386
+ ];
2387
+ GetAsyncInvokeResponse$ = [
2388
+ 3,
2389
+ n0,
2390
+ _GAIRe,
2391
+ 0,
2392
+ [_iA, _mA, _st, _sT, _oDC, _cRT, _fM, _lMT, _eT],
2393
+ [0, 0, 0, 5, () => AsyncInvokeOutputDataConfig$, 0, [() => AsyncInvokeMessage, 0], 5, 5],
2394
+ 5
2395
+ ];
2396
+ GuardrailAssessment$ = [
2397
+ 3,
2398
+ n0,
2399
+ _GA,
2400
+ 0,
2401
+ [_tP, _cP, _wP, _sIP, _cGP, _aRP, _iM, _aGD],
2402
+ [() => GuardrailTopicPolicyAssessment$, () => GuardrailContentPolicyAssessment$, () => GuardrailWordPolicyAssessment$, () => GuardrailSensitiveInformationPolicyAssessment$, () => GuardrailContextualGroundingPolicyAssessment$, [() => GuardrailAutomatedReasoningPolicyAssessment$, 0], () => GuardrailInvocationMetrics$, () => AppliedGuardrailDetails$]
2403
+ ];
2404
+ GuardrailAutomatedReasoningImpossibleFinding$ = [
2405
+ 3,
2406
+ n0,
2407
+ _GARIF,
2408
+ 0,
2409
+ [_tra, _cR, _lW],
2410
+ [[() => GuardrailAutomatedReasoningTranslation$, 0], () => GuardrailAutomatedReasoningRuleList, [() => GuardrailAutomatedReasoningLogicWarning$, 0]]
2411
+ ];
2412
+ GuardrailAutomatedReasoningInputTextReference$ = [
2413
+ 3,
2414
+ n0,
2415
+ _GARITR,
2416
+ 0,
2417
+ [_te],
2418
+ [[() => GuardrailAutomatedReasoningStatementNaturalLanguageContent, 0]]
2419
+ ];
2420
+ GuardrailAutomatedReasoningInvalidFinding$ = [
2421
+ 3,
2422
+ n0,
2423
+ _GARIFu,
2424
+ 0,
2425
+ [_tra, _cR, _lW],
2426
+ [[() => GuardrailAutomatedReasoningTranslation$, 0], () => GuardrailAutomatedReasoningRuleList, [() => GuardrailAutomatedReasoningLogicWarning$, 0]]
2427
+ ];
2428
+ GuardrailAutomatedReasoningLogicWarning$ = [
2429
+ 3,
2430
+ n0,
2431
+ _GARLW,
2432
+ 0,
2433
+ [_ty, _p, _cl],
2434
+ [0, [() => GuardrailAutomatedReasoningStatementList, 0], [() => GuardrailAutomatedReasoningStatementList, 0]]
2435
+ ];
2436
+ GuardrailAutomatedReasoningNoTranslationsFinding$ = [
2437
+ 3,
2438
+ n0,
2439
+ _GARNTF,
2440
+ 0,
2441
+ [],
2442
+ []
2443
+ ];
2444
+ GuardrailAutomatedReasoningPolicyAssessment$ = [
2445
+ 3,
2446
+ n0,
2447
+ _GARPA,
2448
+ 0,
2449
+ [_fi],
2450
+ [[() => GuardrailAutomatedReasoningFindingList, 0]]
2451
+ ];
2452
+ GuardrailAutomatedReasoningRule$ = [
2453
+ 3,
2454
+ n0,
2455
+ _GARR,
2456
+ 0,
2457
+ [_id, _pVA],
2458
+ [0, 0]
2459
+ ];
2460
+ GuardrailAutomatedReasoningSatisfiableFinding$ = [
2461
+ 3,
2462
+ n0,
2463
+ _GARSF,
2464
+ 0,
2465
+ [_tra, _cTS, _cFS, _lW],
2466
+ [[() => GuardrailAutomatedReasoningTranslation$, 0], [() => GuardrailAutomatedReasoningScenario$, 0], [() => GuardrailAutomatedReasoningScenario$, 0], [() => GuardrailAutomatedReasoningLogicWarning$, 0]]
2467
+ ];
2468
+ GuardrailAutomatedReasoningScenario$ = [
2469
+ 3,
2470
+ n0,
2471
+ _GARS,
2472
+ 0,
2473
+ [_stat],
2474
+ [[() => GuardrailAutomatedReasoningStatementList, 0]]
2475
+ ];
2476
+ GuardrailAutomatedReasoningStatement$ = [
2477
+ 3,
2478
+ n0,
2479
+ _GARSu,
2480
+ 0,
2481
+ [_lo, _nL],
2482
+ [[() => GuardrailAutomatedReasoningStatementLogicContent, 0], [() => GuardrailAutomatedReasoningStatementNaturalLanguageContent, 0]]
2483
+ ];
2484
+ GuardrailAutomatedReasoningTooComplexFinding$ = [
2485
+ 3,
2486
+ n0,
2487
+ _GARTCF,
2488
+ 0,
2489
+ [],
2490
+ []
2491
+ ];
2492
+ GuardrailAutomatedReasoningTranslation$ = [
2493
+ 3,
2494
+ n0,
2495
+ _GART,
2496
+ 0,
2497
+ [_p, _cl, _uP, _uC, _conf],
2498
+ [[() => GuardrailAutomatedReasoningStatementList, 0], [() => GuardrailAutomatedReasoningStatementList, 0], [() => GuardrailAutomatedReasoningInputTextReferenceList, 0], [() => GuardrailAutomatedReasoningInputTextReferenceList, 0], 1]
2499
+ ];
2500
+ GuardrailAutomatedReasoningTranslationAmbiguousFinding$ = [
2501
+ 3,
2502
+ n0,
2503
+ _GARTAF,
2504
+ 0,
2505
+ [_op, _dS],
2506
+ [[() => GuardrailAutomatedReasoningTranslationOptionList, 0], [() => GuardrailAutomatedReasoningDifferenceScenarioList, 0]]
2507
+ ];
2508
+ GuardrailAutomatedReasoningTranslationOption$ = [
2509
+ 3,
2510
+ n0,
2511
+ _GARTO,
2512
+ 0,
2513
+ [_tran],
2514
+ [[() => GuardrailAutomatedReasoningTranslationList, 0]]
2515
+ ];
2516
+ GuardrailAutomatedReasoningValidFinding$ = [
2517
+ 3,
2518
+ n0,
2519
+ _GARVF,
2520
+ 0,
2521
+ [_tra, _cTS, _sRu, _lW],
2522
+ [[() => GuardrailAutomatedReasoningTranslation$, 0], [() => GuardrailAutomatedReasoningScenario$, 0], () => GuardrailAutomatedReasoningRuleList, [() => GuardrailAutomatedReasoningLogicWarning$, 0]]
2523
+ ];
2524
+ GuardrailConfiguration$ = [
2525
+ 3,
2526
+ n0,
2527
+ _GC,
2528
+ 0,
2529
+ [_gIu, _gV, _tr],
2530
+ [0, 0, 0]
2531
+ ];
2532
+ GuardrailContentFilter$ = [
2533
+ 3,
2534
+ n0,
2535
+ _GCF,
2536
+ 0,
2537
+ [_ty, _conf, _a, _fS, _de],
2538
+ [0, 0, 0, 0, 2],
2539
+ 3
2540
+ ];
2541
+ GuardrailContentPolicyAssessment$ = [
2542
+ 3,
2543
+ n0,
2544
+ _GCPA,
2545
+ 0,
2546
+ [_fil],
2547
+ [() => GuardrailContentFilterList],
2548
+ 1
2549
+ ];
2550
+ GuardrailContextualGroundingFilter$ = [
2551
+ 3,
2552
+ n0,
2553
+ _GCGF,
2554
+ 0,
2555
+ [_ty, _th, _sc, _a, _de],
2556
+ [0, 1, 1, 0, 2],
2557
+ 4
2558
+ ];
2559
+ GuardrailContextualGroundingPolicyAssessment$ = [
2560
+ 3,
2561
+ n0,
2562
+ _GCGPA,
2563
+ 0,
2564
+ [_fil],
2565
+ [() => GuardrailContextualGroundingFilters]
2566
+ ];
2567
+ GuardrailConverseImageBlock$ = [
2568
+ 3,
2569
+ n0,
2570
+ _GCIB,
2571
+ 8,
2572
+ [_f, _so],
2573
+ [0, [() => GuardrailConverseImageSource$, 0]],
2574
+ 2
2575
+ ];
2576
+ GuardrailConverseTextBlock$ = [
2577
+ 3,
2578
+ n0,
2579
+ _GCTB,
2580
+ 0,
2581
+ [_te, _q],
2582
+ [0, 64 | 0],
2583
+ 1
2584
+ ];
2585
+ GuardrailCoverage$ = [
2586
+ 3,
2587
+ n0,
2588
+ _GCu,
2589
+ 0,
2590
+ [_tCe, _im],
2591
+ [() => GuardrailTextCharactersCoverage$, () => GuardrailImageCoverage$]
2592
+ ];
2593
+ GuardrailCustomWord$ = [
2594
+ 3,
2595
+ n0,
2596
+ _GCW,
2597
+ 0,
2598
+ [_ma, _a, _de],
2599
+ [0, 0, 2],
2600
+ 2
2601
+ ];
2602
+ GuardrailImageBlock$ = [
2603
+ 3,
2604
+ n0,
2605
+ _GIB,
2606
+ 8,
2607
+ [_f, _so],
2608
+ [0, [() => GuardrailImageSource$, 0]],
2609
+ 2
2610
+ ];
2611
+ GuardrailImageCoverage$ = [
2612
+ 3,
2613
+ n0,
2614
+ _GIC,
2615
+ 0,
2616
+ [_gu, _to],
2617
+ [1, 1]
2618
+ ];
2619
+ GuardrailInvocationMetrics$ = [
2620
+ 3,
2621
+ n0,
2622
+ _GIM,
2623
+ 0,
2624
+ [_gPL, _u, _gC],
2625
+ [1, () => GuardrailUsage$, () => GuardrailCoverage$]
2626
+ ];
2627
+ GuardrailManagedWord$ = [
2628
+ 3,
2629
+ n0,
2630
+ _GMW,
2631
+ 0,
2632
+ [_ma, _ty, _a, _de],
2633
+ [0, 0, 0, 2],
2634
+ 3
2635
+ ];
2636
+ GuardrailOutputContent$ = [
2637
+ 3,
2638
+ n0,
2639
+ _GOC,
2640
+ 0,
2641
+ [_te],
2642
+ [0]
2643
+ ];
2644
+ GuardrailPiiEntityFilter$ = [
2645
+ 3,
2646
+ n0,
2647
+ _GPEF,
2648
+ 0,
2649
+ [_ma, _ty, _a, _de],
2650
+ [0, 0, 0, 2],
2651
+ 3
2652
+ ];
2653
+ GuardrailRegexFilter$ = [
2654
+ 3,
2655
+ n0,
2656
+ _GRF,
2657
+ 0,
2658
+ [_a, _n, _ma, _r, _de],
2659
+ [0, 0, 0, 0, 2],
2660
+ 1
2661
+ ];
2662
+ GuardrailSensitiveInformationPolicyAssessment$ = [
2663
+ 3,
2664
+ n0,
2665
+ _GSIPA,
2666
+ 0,
2667
+ [_pE, _re],
2668
+ [() => GuardrailPiiEntityFilterList, () => GuardrailRegexFilterList],
2669
+ 2
2670
+ ];
2671
+ GuardrailStreamConfiguration$ = [
2672
+ 3,
2673
+ n0,
2674
+ _GSC,
2675
+ 0,
2676
+ [_gIu, _gV, _tr, _sPM],
2677
+ [0, 0, 0, 0]
2678
+ ];
2679
+ GuardrailTextBlock$ = [
2680
+ 3,
2681
+ n0,
2682
+ _GTB,
2683
+ 0,
2684
+ [_te, _q],
2685
+ [0, 64 | 0],
2686
+ 1
2687
+ ];
2688
+ GuardrailTextCharactersCoverage$ = [
2689
+ 3,
2690
+ n0,
2691
+ _GTCC,
2692
+ 0,
2693
+ [_gu, _to],
2694
+ [1, 1]
2695
+ ];
2696
+ GuardrailTopic$ = [
2697
+ 3,
2698
+ n0,
2699
+ _GT,
2700
+ 0,
2701
+ [_n, _ty, _a, _de],
2702
+ [0, 0, 0, 2],
2703
+ 3
2704
+ ];
2705
+ GuardrailTopicPolicyAssessment$ = [
2706
+ 3,
2707
+ n0,
2708
+ _GTPA,
2709
+ 0,
2710
+ [_top],
2711
+ [() => GuardrailTopicList],
2712
+ 1
2713
+ ];
2714
+ GuardrailTraceAssessment$ = [
2715
+ 3,
2716
+ n0,
2717
+ _GTA,
2718
+ 0,
2719
+ [_mO, _iAn, _oA, _aR],
2720
+ [64 | 0, [() => GuardrailAssessmentMap, 0], [() => GuardrailAssessmentListMap, 0], 0]
2721
+ ];
2722
+ GuardrailUsage$ = [
2723
+ 3,
2724
+ n0,
2725
+ _GU,
2726
+ 0,
2727
+ [_tPU, _cPU, _wPU, _sIPU, _sIPFU, _cGPU, _cPIU, _aRPU, _aRPu],
2728
+ [1, 1, 1, 1, 1, 1, 1, 1, 1],
2729
+ 6
2730
+ ];
2731
+ GuardrailWordPolicyAssessment$ = [
2732
+ 3,
2733
+ n0,
2734
+ _GWPA,
2735
+ 0,
2736
+ [_cW, _mWL],
2737
+ [() => GuardrailCustomWordList, () => GuardrailManagedWordList],
2738
+ 2
2739
+ ];
2740
+ ImageBlock$ = [
2741
+ 3,
2742
+ n0,
2743
+ _IB,
2744
+ 0,
2745
+ [_f, _so, _e],
2746
+ [0, [() => ImageSource$, 0], [() => ErrorBlock$, 0]],
2747
+ 2
2748
+ ];
2749
+ ImageBlockDelta$ = [
2750
+ 3,
2751
+ n0,
2752
+ _IBD,
2753
+ 0,
2754
+ [_so, _e],
2755
+ [[() => ImageSource$, 0], [() => ErrorBlock$, 0]]
2756
+ ];
2757
+ ImageBlockStart$ = [
2758
+ 3,
2759
+ n0,
2760
+ _IBS,
2761
+ 0,
2762
+ [_f],
2763
+ [0],
2764
+ 1
2765
+ ];
2766
+ InferenceConfiguration$ = [
2767
+ 3,
2768
+ n0,
2769
+ _IC,
2770
+ 0,
2771
+ [_mT, _tem, _tPo, _sS],
2772
+ [1, 1, 1, 64 | 0]
2773
+ ];
2774
+ InvokeModelRequest$ = [
2775
+ 3,
2776
+ n0,
2777
+ _IMR,
2778
+ 0,
2779
+ [_mI, _bo, _cT, _ac, _tr, _gIu, _gV, _pCL, _sTe],
2780
+ [[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 }]],
2781
+ 1
2782
+ ];
2783
+ InvokeModelResponse$ = [
2784
+ 3,
2785
+ n0,
2786
+ _IMRn,
2787
+ 0,
2788
+ [_bo, _cT, _pCL, _sTe],
2789
+ [[() => Body, 16], [0, { [_hH]: _CT_ }], [0, { [_hH]: _XABPL }], [0, { [_hH]: _XABST }]],
2790
+ 2
2791
+ ];
2792
+ InvokeModelTokensRequest$ = [
2793
+ 3,
2794
+ n0,
2795
+ _IMTR,
2796
+ 0,
2797
+ [_bo],
2798
+ [[() => Body, 0]],
2799
+ 1
2800
+ ];
2801
+ InvokeModelWithBidirectionalStreamRequest$ = [
2802
+ 3,
2803
+ n0,
2804
+ _IMWBSR,
2805
+ 0,
2806
+ [_mI, _bo],
2807
+ [[0, 1], [() => InvokeModelWithBidirectionalStreamInput$, 16]],
2808
+ 2
2809
+ ];
2810
+ InvokeModelWithBidirectionalStreamResponse$ = [
2811
+ 3,
2812
+ n0,
2813
+ _IMWBSRn,
2814
+ 0,
2815
+ [_bo],
2816
+ [[() => InvokeModelWithBidirectionalStreamOutput$, 16]],
2817
+ 1
2818
+ ];
2819
+ InvokeModelWithResponseStreamRequest$ = [
2820
+ 3,
2821
+ n0,
2822
+ _IMWRSR,
2823
+ 0,
2824
+ [_mI, _bo, _cT, _ac, _tr, _gIu, _gV, _pCL, _sTe],
2825
+ [[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 }]],
2826
+ 1
2827
+ ];
2828
+ InvokeModelWithResponseStreamResponse$ = [
2829
+ 3,
2830
+ n0,
2831
+ _IMWRSRn,
2832
+ 0,
2833
+ [_bo, _cT, _pCL, _sTe],
2834
+ [[() => ResponseStream$, 16], [0, { [_hH]: _XABCT }], [0, { [_hH]: _XABPL }], [0, { [_hH]: _XABST }]],
2835
+ 2
2836
+ ];
2837
+ JsonSchemaDefinition$ = [
2838
+ 3,
2839
+ n0,
2840
+ _JSD,
2841
+ 0,
2842
+ [_sch, _n, _des],
2843
+ [0, 0, 0],
2844
+ 1
2845
+ ];
2846
+ ListAsyncInvokesRequest$ = [
2847
+ 3,
2848
+ n0,
2849
+ _LAIR,
2850
+ 0,
2851
+ [_sTA, _sTB, _sE, _mR, _nT, _sB, _sO],
2852
+ [[5, { [_hQ]: _sTA }], [5, { [_hQ]: _sTB }], [0, { [_hQ]: _sE }], [1, { [_hQ]: _mR }], [0, { [_hQ]: _nT }], [0, { [_hQ]: _sB }], [0, { [_hQ]: _sO }]]
2853
+ ];
2854
+ ListAsyncInvokesResponse$ = [
2855
+ 3,
2856
+ n0,
2857
+ _LAIRi,
2858
+ 0,
2859
+ [_nT, _aIS],
2860
+ [0, [() => AsyncInvokeSummaries, 0]]
2861
+ ];
2862
+ Message$ = [
2863
+ 3,
2864
+ n0,
2865
+ _M,
2866
+ 0,
2867
+ [_ro, _co],
2868
+ [0, [() => ContentBlocks, 0]],
2869
+ 2
2870
+ ];
2871
+ MessageStartEvent$ = [
2872
+ 3,
2873
+ n0,
2874
+ _MSE,
2875
+ 0,
2876
+ [_ro],
2877
+ [0],
2878
+ 1
2879
+ ];
2880
+ MessageStopEvent$ = [
2881
+ 3,
2882
+ n0,
2883
+ _MSEe,
2884
+ 0,
2885
+ [_sR, _aMRFd],
2886
+ [0, 15],
2887
+ 1
2888
+ ];
2889
+ OutputConfig$ = [
2890
+ 3,
2891
+ n0,
2892
+ _OC,
2893
+ 0,
2894
+ [_tF],
2895
+ [[() => OutputFormat$, 0]]
2896
+ ];
2897
+ OutputFormat$ = [
2898
+ 3,
2899
+ n0,
2900
+ _OF,
2901
+ 0,
2902
+ [_ty, _stru],
2903
+ [0, [() => OutputFormatStructure$, 0]],
2904
+ 2
2905
+ ];
2906
+ PayloadPart$ = [
2907
+ 3,
2908
+ n0,
2909
+ _PP,
2910
+ 8,
2911
+ [_b],
2912
+ [[() => PartBody, 0]]
2913
+ ];
2914
+ PerformanceConfiguration$ = [
2915
+ 3,
2916
+ n0,
2917
+ _PC,
2918
+ 0,
2919
+ [_la],
2920
+ [0]
2921
+ ];
2922
+ PromptRouterTrace$ = [
2923
+ 3,
2924
+ n0,
2925
+ _PRT,
2926
+ 0,
2927
+ [_iMI],
2928
+ [0]
2929
+ ];
2930
+ ReasoningTextBlock$ = [
2931
+ 3,
2932
+ n0,
2933
+ _RTB,
2934
+ 8,
2935
+ [_te, _si],
2936
+ [0, 0],
2937
+ 1
2938
+ ];
2939
+ S3Location$ = [
2940
+ 3,
2941
+ n0,
2942
+ _SL,
2943
+ 0,
2944
+ [_ur, _bO],
2945
+ [0, 0],
2946
+ 1
2947
+ ];
2948
+ SearchResultBlock$ = [
2949
+ 3,
2950
+ n0,
2951
+ _SRB,
2952
+ 0,
2953
+ [_so, _ti, _co, _ci],
2954
+ [0, 0, () => SearchResultContentBlocks, () => CitationsConfig$],
2955
+ 3
2956
+ ];
2957
+ SearchResultContentBlock$ = [
2958
+ 3,
2959
+ n0,
2960
+ _SRCB,
2961
+ 0,
2962
+ [_te],
2963
+ [0],
2964
+ 1
2965
+ ];
2966
+ SearchResultLocation$ = [
2967
+ 3,
2968
+ n0,
2969
+ _SRL,
2970
+ 0,
2971
+ [_sRI, _sta, _end],
2972
+ [1, 1, 1]
2973
+ ];
2974
+ ServiceTier$ = [
2975
+ 3,
2976
+ n0,
2977
+ _ST,
2978
+ 0,
2979
+ [_ty],
2980
+ [0],
2981
+ 1
2982
+ ];
2983
+ SpecificToolChoice$ = [
2984
+ 3,
2985
+ n0,
2986
+ _STC,
2987
+ 0,
2988
+ [_n],
2989
+ [0],
2990
+ 1
2991
+ ];
2992
+ StartAsyncInvokeRequest$ = [
2993
+ 3,
2994
+ n0,
2995
+ _SAIR,
2996
+ 0,
2997
+ [_mI, _mIo, _oDC, _cRT, _ta],
2998
+ [0, [() => ModelInputPayload, 0], () => AsyncInvokeOutputDataConfig$, [0, 4], () => TagList],
2999
+ 3
3000
+ ];
3001
+ StartAsyncInvokeResponse$ = [
3002
+ 3,
3003
+ n0,
3004
+ _SAIRt,
3005
+ 0,
3006
+ [_iA],
3007
+ [0],
3008
+ 1
3009
+ ];
3010
+ SystemTool$ = [
3011
+ 3,
3012
+ n0,
3013
+ _STy,
3014
+ 0,
3015
+ [_n],
3016
+ [0],
3017
+ 1
3018
+ ];
3019
+ Tag$ = [
3020
+ 3,
3021
+ n0,
3022
+ _T,
3023
+ 0,
3024
+ [_k, _v],
3025
+ [0, 0],
3026
+ 2
3027
+ ];
3028
+ TokenUsage$ = [
3029
+ 3,
3030
+ n0,
3031
+ _TU,
3032
+ 0,
3033
+ [_iT, _oT, _tT, _cRIT, _cWIT, _cD],
3034
+ [1, 1, 1, 1, 1, () => CacheDetailsList],
3035
+ 3
3036
+ ];
3037
+ ToolConfiguration$ = [
3038
+ 3,
3039
+ n0,
3040
+ _TC,
3041
+ 0,
3042
+ [_too, _tCo],
3043
+ [() => Tools, () => ToolChoice$],
3044
+ 1
3045
+ ];
3046
+ ToolResultBlock$ = [
3047
+ 3,
3048
+ n0,
3049
+ _TRB,
3050
+ 0,
3051
+ [_tUI, _co, _st, _ty],
3052
+ [0, [() => ToolResultContentBlocks, 0], 0, 0],
3053
+ 2
3054
+ ];
3055
+ ToolResultBlockStart$ = [
3056
+ 3,
3057
+ n0,
3058
+ _TRBS,
3059
+ 0,
3060
+ [_tUI, _ty, _st],
3061
+ [0, 0, 0],
3062
+ 1
3063
+ ];
3064
+ ToolSpecification$ = [
3065
+ 3,
3066
+ n0,
3067
+ _TS,
3068
+ 0,
3069
+ [_n, _iS, _des, _stri],
3070
+ [0, () => ToolInputSchema$, 0, 2],
3071
+ 2
3072
+ ];
3073
+ ToolUseBlock$ = [
3074
+ 3,
3075
+ n0,
3076
+ _TUB,
3077
+ 0,
3078
+ [_tUI, _n, _i, _ty],
3079
+ [0, 0, 15, 0],
3080
+ 3
3081
+ ];
3082
+ ToolUseBlockDelta$ = [
3083
+ 3,
3084
+ n0,
3085
+ _TUBD,
3086
+ 0,
3087
+ [_i],
3088
+ [0],
3089
+ 1
3090
+ ];
3091
+ ToolUseBlockStart$ = [
3092
+ 3,
3093
+ n0,
3094
+ _TUBS,
3095
+ 0,
3096
+ [_tUI, _n, _ty],
3097
+ [0, 0, 0],
3098
+ 2
3099
+ ];
3100
+ VideoBlock$ = [
3101
+ 3,
3102
+ n0,
3103
+ _VB,
3104
+ 0,
3105
+ [_f, _so],
3106
+ [0, () => VideoSource$],
3107
+ 2
3108
+ ];
3109
+ WebLocation$ = [
3110
+ 3,
3111
+ n0,
3112
+ _WL,
3113
+ 0,
3114
+ [_url, _do],
3115
+ [0, 0]
3116
+ ];
3117
+ AdditionalModelResponseFieldPaths = 64 | 0;
3118
+ AsyncInvokeSummaries = [
3119
+ 1,
3120
+ n0,
3121
+ _AISs,
3122
+ 0,
3123
+ [
3124
+ () => AsyncInvokeSummary$,
3125
+ 0
3126
+ ]
3127
+ ];
3128
+ CacheDetailsList = [
3129
+ 1,
3130
+ n0,
3131
+ _CDL,
3132
+ 0,
3133
+ () => CacheDetail$
3134
+ ];
3135
+ CitationGeneratedContentList = [
3136
+ 1,
3137
+ n0,
3138
+ _CGCL,
3139
+ 0,
3140
+ () => CitationGeneratedContent$
3141
+ ];
3142
+ Citations = [
3143
+ 1,
3144
+ n0,
3145
+ _Ci,
3146
+ 0,
3147
+ () => Citation$
3148
+ ];
3149
+ CitationSourceContentList = [
3150
+ 1,
3151
+ n0,
3152
+ _CSCL,
3153
+ 0,
3154
+ () => CitationSourceContent$
3155
+ ];
3156
+ CitationSourceContentListDelta = [
3157
+ 1,
3158
+ n0,
3159
+ _CSCLD,
3160
+ 0,
3161
+ () => CitationSourceContentDelta$
3162
+ ];
3163
+ ContentBlocks = [
3164
+ 1,
3165
+ n0,
3166
+ _CB,
3167
+ 0,
3168
+ [
3169
+ () => ContentBlock$,
3170
+ 0
3171
+ ]
3172
+ ];
3173
+ DocumentContentBlocks = [
3174
+ 1,
3175
+ n0,
3176
+ _DCB,
3177
+ 0,
3178
+ () => DocumentContentBlock$
3179
+ ];
3180
+ GuardrailAssessmentList = [
3181
+ 1,
3182
+ n0,
3183
+ _GAL,
3184
+ 0,
3185
+ [
3186
+ () => GuardrailAssessment$,
3187
+ 0
3188
+ ]
3189
+ ];
3190
+ GuardrailAutomatedReasoningDifferenceScenarioList = [
3191
+ 1,
3192
+ n0,
3193
+ _GARDSL,
3194
+ 0,
3195
+ [
3196
+ () => GuardrailAutomatedReasoningScenario$,
3197
+ 0
3198
+ ]
3199
+ ];
3200
+ GuardrailAutomatedReasoningFindingList = [
3201
+ 1,
3202
+ n0,
3203
+ _GARFL,
3204
+ 0,
3205
+ [
3206
+ () => GuardrailAutomatedReasoningFinding$,
3207
+ 0
3208
+ ]
3209
+ ];
3210
+ GuardrailAutomatedReasoningInputTextReferenceList = [
3211
+ 1,
3212
+ n0,
3213
+ _GARITRL,
3214
+ 0,
3215
+ [
3216
+ () => GuardrailAutomatedReasoningInputTextReference$,
3217
+ 0
3218
+ ]
3219
+ ];
3220
+ GuardrailAutomatedReasoningRuleList = [
3221
+ 1,
3222
+ n0,
3223
+ _GARRL,
3224
+ 0,
3225
+ () => GuardrailAutomatedReasoningRule$
3226
+ ];
3227
+ GuardrailAutomatedReasoningStatementList = [
3228
+ 1,
3229
+ n0,
3230
+ _GARSL,
3231
+ 0,
3232
+ [
3233
+ () => GuardrailAutomatedReasoningStatement$,
3234
+ 0
3235
+ ]
3236
+ ];
3237
+ GuardrailAutomatedReasoningTranslationList = [
3238
+ 1,
3239
+ n0,
3240
+ _GARTL,
3241
+ 0,
3242
+ [
3243
+ () => GuardrailAutomatedReasoningTranslation$,
3244
+ 0
3245
+ ]
3246
+ ];
3247
+ GuardrailAutomatedReasoningTranslationOptionList = [
3248
+ 1,
3249
+ n0,
3250
+ _GARTOL,
3251
+ 0,
3252
+ [
3253
+ () => GuardrailAutomatedReasoningTranslationOption$,
3254
+ 0
3255
+ ]
3256
+ ];
3257
+ GuardrailContentBlockList = [
3258
+ 1,
3259
+ n0,
3260
+ _GCBL,
3261
+ 0,
3262
+ [
3263
+ () => GuardrailContentBlock$,
3264
+ 0
3265
+ ]
3266
+ ];
3267
+ GuardrailContentFilterList = [
3268
+ 1,
3269
+ n0,
3270
+ _GCFL,
3271
+ 0,
3272
+ () => GuardrailContentFilter$
3273
+ ];
3274
+ GuardrailContentQualifierList = 64 | 0;
3275
+ GuardrailContextualGroundingFilters = [
3276
+ 1,
3277
+ n0,
3278
+ _GCGFu,
3279
+ 0,
3280
+ () => GuardrailContextualGroundingFilter$
3281
+ ];
3282
+ GuardrailConverseContentQualifierList = 64 | 0;
3283
+ GuardrailCustomWordList = [
3284
+ 1,
3285
+ n0,
3286
+ _GCWL,
3287
+ 0,
3288
+ () => GuardrailCustomWord$
3289
+ ];
3290
+ GuardrailManagedWordList = [
3291
+ 1,
3292
+ n0,
3293
+ _GMWL,
3294
+ 0,
3295
+ () => GuardrailManagedWord$
3296
+ ];
3297
+ GuardrailOriginList = 64 | 0;
3298
+ GuardrailOutputContentList = [
3299
+ 1,
3300
+ n0,
3301
+ _GOCL,
3302
+ 0,
3303
+ () => GuardrailOutputContent$
3304
+ ];
3305
+ GuardrailPiiEntityFilterList = [
3306
+ 1,
3307
+ n0,
3308
+ _GPEFL,
3309
+ 0,
3310
+ () => GuardrailPiiEntityFilter$
3311
+ ];
3312
+ GuardrailRegexFilterList = [
3313
+ 1,
3314
+ n0,
3315
+ _GRFL,
3316
+ 0,
3317
+ () => GuardrailRegexFilter$
3318
+ ];
3319
+ GuardrailTopicList = [
3320
+ 1,
3321
+ n0,
3322
+ _GTL,
3323
+ 0,
3324
+ () => GuardrailTopic$
3325
+ ];
3326
+ Messages = [
3327
+ 1,
3328
+ n0,
3329
+ _Me,
3330
+ 0,
3331
+ [
3332
+ () => Message$,
3333
+ 0
3334
+ ]
3335
+ ];
3336
+ ModelOutputs = 64 | 0;
3337
+ NonEmptyStringList = 64 | 0;
3338
+ SearchResultContentBlocks = [
3339
+ 1,
3340
+ n0,
3341
+ _SRCBe,
3342
+ 0,
3343
+ () => SearchResultContentBlock$
3344
+ ];
3345
+ SystemContentBlocks = [
3346
+ 1,
3347
+ n0,
3348
+ _SCB,
3349
+ 0,
3350
+ [
3351
+ () => SystemContentBlock$,
3352
+ 0
3353
+ ]
3354
+ ];
3355
+ TagList = [
3356
+ 1,
3357
+ n0,
3358
+ _TL,
3359
+ 0,
3360
+ () => Tag$
3361
+ ];
3362
+ ToolResultBlocksDelta = [
3363
+ 1,
3364
+ n0,
3365
+ _TRBD,
3366
+ 0,
3367
+ () => ToolResultBlockDelta$
3368
+ ];
3369
+ ToolResultContentBlocks = [
3370
+ 1,
3371
+ n0,
3372
+ _TRCB,
3373
+ 0,
3374
+ [
3375
+ () => ToolResultContentBlock$,
3376
+ 0
3377
+ ]
3378
+ ];
3379
+ Tools = [
3380
+ 1,
3381
+ n0,
3382
+ _To,
3383
+ 0,
3384
+ () => Tool$
3385
+ ];
3386
+ GuardrailAssessmentListMap = [
3387
+ 2,
3388
+ n0,
3389
+ _GALM,
3390
+ 0,
3391
+ [
3392
+ 0,
3393
+ 0
3394
+ ],
3395
+ [
3396
+ () => GuardrailAssessmentList,
3397
+ 0
3398
+ ]
3399
+ ];
3400
+ GuardrailAssessmentMap = [
3401
+ 2,
3402
+ n0,
3403
+ _GAM,
3404
+ 0,
3405
+ [
3406
+ 0,
3407
+ 0
3408
+ ],
3409
+ [
3410
+ () => GuardrailAssessment$,
3411
+ 0
3412
+ ]
3413
+ ];
3414
+ PromptVariableMap = [
3415
+ 2,
3416
+ n0,
3417
+ _PVM,
3418
+ 8,
3419
+ 0,
3420
+ () => PromptVariableValues$
3421
+ ];
3422
+ RequestMetadata = [
3423
+ 2,
3424
+ n0,
3425
+ _RM,
3426
+ 8,
3427
+ 0,
3428
+ 0
3429
+ ];
3430
+ AsyncInvokeOutputDataConfig$ = [
3431
+ 4,
3432
+ n0,
3433
+ _AIODC,
3434
+ 0,
3435
+ [_sODC],
3436
+ [() => AsyncInvokeS3OutputDataConfig$]
3437
+ ];
3438
+ AudioSource$ = [
3439
+ 4,
3440
+ n0,
3441
+ _AS,
3442
+ 8,
3443
+ [_b, _sL],
3444
+ [21, () => S3Location$]
3445
+ ];
3446
+ CitationGeneratedContent$ = [
3447
+ 4,
3448
+ n0,
3449
+ _CGC,
3450
+ 0,
3451
+ [_te],
3452
+ [0]
3453
+ ];
3454
+ CitationLocation$ = [
3455
+ 4,
3456
+ n0,
3457
+ _CL,
3458
+ 0,
3459
+ [_w, _dC, _dP, _dCo, _sRL],
3460
+ [() => WebLocation$, () => DocumentCharLocation$, () => DocumentPageLocation$, () => DocumentChunkLocation$, () => SearchResultLocation$]
3461
+ ];
3462
+ CitationSourceContent$ = [
3463
+ 4,
3464
+ n0,
3465
+ _CSC,
3466
+ 0,
3467
+ [_te],
3468
+ [0]
3469
+ ];
3470
+ ContentBlock$ = [
3471
+ 4,
3472
+ n0,
3473
+ _CBo,
3474
+ 0,
3475
+ [_te, _ima, _doc, _vi, _au, _tU, _tR, _gCua, _cPa, _rC, _cC, _sRe],
3476
+ [0, [() => ImageBlock$, 0], () => DocumentBlock$, () => VideoBlock$, [() => AudioBlock$, 0], () => ToolUseBlock$, [() => ToolResultBlock$, 0], [() => GuardrailConverseContentBlock$, 0], () => CachePointBlock$, [() => ReasoningContentBlock$, 0], () => CitationsContentBlock$, () => SearchResultBlock$]
3477
+ ];
3478
+ ContentBlockDelta$ = [
3479
+ 4,
3480
+ n0,
3481
+ _CBD,
3482
+ 0,
3483
+ [_te, _tU, _tR, _rC, _cit, _ima],
3484
+ [0, () => ToolUseBlockDelta$, () => ToolResultBlocksDelta, [() => ReasoningContentBlockDelta$, 0], () => CitationsDelta$, [() => ImageBlockDelta$, 0]]
3485
+ ];
3486
+ ContentBlockStart$ = [
3487
+ 4,
3488
+ n0,
3489
+ _CBS,
3490
+ 0,
3491
+ [_tU, _tR, _ima],
3492
+ [() => ToolUseBlockStart$, () => ToolResultBlockStart$, () => ImageBlockStart$]
3493
+ ];
3494
+ ConverseOutput$ = [
3495
+ 4,
3496
+ n0,
3497
+ _CO,
3498
+ 0,
3499
+ [_m],
3500
+ [[() => Message$, 0]]
3501
+ ];
3502
+ ConverseStreamOutput$ = [
3503
+ 4,
3504
+ n0,
3505
+ _CSO,
3506
+ { [_stre]: 1 },
3507
+ [_mS, _cBS, _cBD, _cBSo, _mSe, _meta, _iSE, _mSEE, _vE, _tE, _sUE],
3508
+ [() => MessageStartEvent$, () => ContentBlockStartEvent$, [() => ContentBlockDeltaEvent$, 0], () => ContentBlockStopEvent$, () => MessageStopEvent$, [() => ConverseStreamMetadataEvent$, 0], [() => InternalServerException$, 0], [() => ModelStreamErrorException$, 0], [() => ValidationException$, 0], [() => ThrottlingException$, 0], [() => ServiceUnavailableException$, 0]]
3509
+ ];
3510
+ CountTokensInput$ = [
3511
+ 4,
3512
+ n0,
3513
+ _CTI,
3514
+ 0,
3515
+ [_iMn, _conv],
3516
+ [[() => InvokeModelTokensRequest$, 0], [() => ConverseTokensRequest$, 0]]
3517
+ ];
3518
+ DocumentContentBlock$ = [
3519
+ 4,
3520
+ n0,
3521
+ _DCBo,
3522
+ 0,
3523
+ [_te],
3524
+ [0]
3525
+ ];
3526
+ DocumentSource$ = [
3527
+ 4,
3528
+ n0,
3529
+ _DS,
3530
+ 0,
3531
+ [_b, _sL, _te, _co],
3532
+ [21, () => S3Location$, 0, () => DocumentContentBlocks]
3533
+ ];
3534
+ GuardrailAutomatedReasoningFinding$ = [
3535
+ 4,
3536
+ n0,
3537
+ _GARF,
3538
+ 0,
3539
+ [_va, _in, _sa, _imp, _tA, _tCoo, _nTo],
3540
+ [[() => GuardrailAutomatedReasoningValidFinding$, 0], [() => GuardrailAutomatedReasoningInvalidFinding$, 0], [() => GuardrailAutomatedReasoningSatisfiableFinding$, 0], [() => GuardrailAutomatedReasoningImpossibleFinding$, 0], [() => GuardrailAutomatedReasoningTranslationAmbiguousFinding$, 0], () => GuardrailAutomatedReasoningTooComplexFinding$, () => GuardrailAutomatedReasoningNoTranslationsFinding$]
3541
+ ];
3542
+ GuardrailContentBlock$ = [
3543
+ 4,
3544
+ n0,
3545
+ _GCB,
3546
+ 0,
3547
+ [_te, _ima],
3548
+ [() => GuardrailTextBlock$, [() => GuardrailImageBlock$, 0]]
3549
+ ];
3550
+ GuardrailConverseContentBlock$ = [
3551
+ 4,
3552
+ n0,
3553
+ _GCCB,
3554
+ 0,
3555
+ [_te, _ima],
3556
+ [() => GuardrailConverseTextBlock$, [() => GuardrailConverseImageBlock$, 0]]
3557
+ ];
3558
+ GuardrailConverseImageSource$ = [
3559
+ 4,
3560
+ n0,
3561
+ _GCIS,
3562
+ 8,
3563
+ [_b],
3564
+ [21]
3565
+ ];
3566
+ GuardrailImageSource$ = [
3567
+ 4,
3568
+ n0,
3569
+ _GIS,
3570
+ 8,
3571
+ [_b],
3572
+ [21]
3573
+ ];
3574
+ ImageSource$ = [
3575
+ 4,
3576
+ n0,
3577
+ _IS,
3578
+ 8,
3579
+ [_b, _sL],
3580
+ [21, () => S3Location$]
3581
+ ];
3582
+ InvokeModelWithBidirectionalStreamInput$ = [
3583
+ 4,
3584
+ n0,
3585
+ _IMWBSI,
3586
+ { [_stre]: 1 },
3587
+ [_ch],
3588
+ [[() => BidirectionalInputPayloadPart$, 0]]
3589
+ ];
3590
+ InvokeModelWithBidirectionalStreamOutput$ = [
3591
+ 4,
3592
+ n0,
3593
+ _IMWBSO,
3594
+ { [_stre]: 1 },
3595
+ [_ch, _iSE, _mSEE, _vE, _tE, _mTE, _sUE],
3596
+ [[() => BidirectionalOutputPayloadPart$, 0], [() => InternalServerException$, 0], [() => ModelStreamErrorException$, 0], [() => ValidationException$, 0], [() => ThrottlingException$, 0], [() => ModelTimeoutException$, 0], [() => ServiceUnavailableException$, 0]]
3597
+ ];
3598
+ OutputFormatStructure$ = [
3599
+ 4,
3600
+ n0,
3601
+ _OFS,
3602
+ 8,
3603
+ [_jS],
3604
+ [() => JsonSchemaDefinition$]
3605
+ ];
3606
+ PromptVariableValues$ = [
3607
+ 4,
3608
+ n0,
3609
+ _PVV,
3610
+ 0,
3611
+ [_te],
3612
+ [0]
3613
+ ];
3614
+ ReasoningContentBlock$ = [
3615
+ 4,
3616
+ n0,
3617
+ _RCB,
3618
+ 8,
3619
+ [_rT, _rCe],
3620
+ [[() => ReasoningTextBlock$, 0], 21]
3621
+ ];
3622
+ ReasoningContentBlockDelta$ = [
3623
+ 4,
3624
+ n0,
3625
+ _RCBD,
3626
+ 8,
3627
+ [_te, _rCe, _si],
3628
+ [0, 21, 0]
3629
+ ];
3630
+ ResponseStream$ = [
3631
+ 4,
3632
+ n0,
3633
+ _RS,
3634
+ { [_stre]: 1 },
3635
+ [_ch, _iSE, _mSEE, _vE, _tE, _mTE, _sUE],
3636
+ [[() => PayloadPart$, 0], [() => InternalServerException$, 0], [() => ModelStreamErrorException$, 0], [() => ValidationException$, 0], [() => ThrottlingException$, 0], [() => ModelTimeoutException$, 0], [() => ServiceUnavailableException$, 0]]
3637
+ ];
3638
+ SystemContentBlock$ = [
3639
+ 4,
3640
+ n0,
3641
+ _SCBy,
3642
+ 0,
3643
+ [_te, _gCua, _cPa],
3644
+ [0, [() => GuardrailConverseContentBlock$, 0], () => CachePointBlock$]
3645
+ ];
3646
+ Tool$ = [
3647
+ 4,
3648
+ n0,
3649
+ _Too,
3650
+ 0,
3651
+ [_tS, _sTy, _cPa],
3652
+ [() => ToolSpecification$, () => SystemTool$, () => CachePointBlock$]
3653
+ ];
3654
+ ToolChoice$ = [
3655
+ 4,
3656
+ n0,
3657
+ _TCo,
3658
+ 0,
3659
+ [_aut, _an, _tool],
3660
+ [() => AutoToolChoice$, () => AnyToolChoice$, () => SpecificToolChoice$]
3661
+ ];
3662
+ ToolInputSchema$ = [
3663
+ 4,
3664
+ n0,
3665
+ _TIS,
3666
+ 0,
3667
+ [_j],
3668
+ [15]
3669
+ ];
3670
+ ToolResultBlockDelta$ = [
3671
+ 4,
3672
+ n0,
3673
+ _TRBDo,
3674
+ 0,
3675
+ [_te, _j],
3676
+ [0, 15]
3677
+ ];
3678
+ ToolResultContentBlock$ = [
3679
+ 4,
3680
+ n0,
3681
+ _TRCBo,
3682
+ 0,
3683
+ [_j, _te, _ima, _doc, _vi, _sRe],
3684
+ [15, 0, [() => ImageBlock$, 0], () => DocumentBlock$, () => VideoBlock$, () => SearchResultBlock$]
3685
+ ];
3686
+ VideoSource$ = [
3687
+ 4,
3688
+ n0,
3689
+ _VS,
3690
+ 0,
3691
+ [_b, _sL],
3692
+ [21, () => S3Location$]
3693
+ ];
3694
+ ApplyGuardrail$ = [
3695
+ 9,
3696
+ n0,
3697
+ _AG,
3698
+ { [_h]: ["POST", "/guardrail/{guardrailIdentifier}/version/{guardrailVersion}/apply", 200] },
3699
+ () => ApplyGuardrailRequest$,
3700
+ () => ApplyGuardrailResponse$
3701
+ ];
3702
+ Converse$ = [
3703
+ 9,
3704
+ n0,
3705
+ _Co,
3706
+ { [_h]: ["POST", "/model/{modelId}/converse", 200] },
3707
+ () => ConverseRequest$,
3708
+ () => ConverseResponse$
3709
+ ];
3710
+ ConverseStream$ = [
3711
+ 9,
3712
+ n0,
3713
+ _CS,
3714
+ { [_h]: ["POST", "/model/{modelId}/converse-stream", 200] },
3715
+ () => ConverseStreamRequest$,
3716
+ () => ConverseStreamResponse$
3717
+ ];
3718
+ CountTokens$ = [
3719
+ 9,
3720
+ n0,
3721
+ _CTo,
3722
+ { [_h]: ["POST", "/model/{modelId}/count-tokens", 200] },
3723
+ () => CountTokensRequest$,
3724
+ () => CountTokensResponse$
3725
+ ];
3726
+ GetAsyncInvoke$ = [
3727
+ 9,
3728
+ n0,
3729
+ _GAI,
3730
+ { [_h]: ["GET", "/async-invoke/{invocationArn}", 200] },
3731
+ () => GetAsyncInvokeRequest$,
3732
+ () => GetAsyncInvokeResponse$
3733
+ ];
3734
+ InvokeModel$ = [
3735
+ 9,
3736
+ n0,
3737
+ _IM,
3738
+ { [_h]: ["POST", "/model/{modelId}/invoke", 200] },
3739
+ () => InvokeModelRequest$,
3740
+ () => InvokeModelResponse$
3741
+ ];
3742
+ InvokeModelWithBidirectionalStream$ = [
3743
+ 9,
3744
+ n0,
3745
+ _IMWBS,
3746
+ { [_h]: ["POST", "/model/{modelId}/invoke-with-bidirectional-stream", 200] },
3747
+ () => InvokeModelWithBidirectionalStreamRequest$,
3748
+ () => InvokeModelWithBidirectionalStreamResponse$
3749
+ ];
3750
+ InvokeModelWithResponseStream$ = [
3751
+ 9,
3752
+ n0,
3753
+ _IMWRS,
3754
+ { [_h]: ["POST", "/model/{modelId}/invoke-with-response-stream", 200] },
3755
+ () => InvokeModelWithResponseStreamRequest$,
3756
+ () => InvokeModelWithResponseStreamResponse$
3757
+ ];
3758
+ ListAsyncInvokes$ = [
3759
+ 9,
3760
+ n0,
3761
+ _LAI,
3762
+ { [_h]: ["GET", "/async-invoke", 200] },
3763
+ () => ListAsyncInvokesRequest$,
3764
+ () => ListAsyncInvokesResponse$
3765
+ ];
3766
+ StartAsyncInvoke$ = [
3767
+ 9,
3768
+ n0,
3769
+ _SAI,
3770
+ { [_h]: ["POST", "/async-invoke", 200] },
3771
+ () => StartAsyncInvokeRequest$,
3772
+ () => StartAsyncInvokeResponse$
3773
+ ];
3774
+ });
3775
+
3776
+ // node_modules/.bun/@aws-sdk+client-bedrock-runtime@3.1020.0/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/runtimeConfig.shared.js
3777
+ var import_httpAuthSchemes2, import_protocols, import_core2, import_smithy_client2, import_url_parser, import_util_base64, import_util_utf82, getRuntimeConfig = (config) => {
3778
+ return {
3779
+ apiVersion: "2023-09-30",
3780
+ base64Decoder: config?.base64Decoder ?? import_util_base64.fromBase64,
3781
+ base64Encoder: config?.base64Encoder ?? import_util_base64.toBase64,
3782
+ disableHostPrefix: config?.disableHostPrefix ?? false,
3783
+ endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
3784
+ extensions: config?.extensions ?? [],
3785
+ httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultBedrockRuntimeHttpAuthSchemeProvider,
3786
+ httpAuthSchemes: config?.httpAuthSchemes ?? [
3787
+ {
3788
+ schemeId: "aws.auth#sigv4",
3789
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
3790
+ signer: new import_httpAuthSchemes2.AwsSdkSigV4Signer
3791
+ },
3792
+ {
3793
+ schemeId: "smithy.api#httpBearerAuth",
3794
+ identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#httpBearerAuth"),
3795
+ signer: new import_core2.HttpBearerAuthSigner
3796
+ }
3797
+ ],
3798
+ logger: config?.logger ?? new import_smithy_client2.NoOpLogger,
3799
+ protocol: config?.protocol ?? import_protocols.AwsRestJsonProtocol,
3800
+ protocolSettings: config?.protocolSettings ?? {
3801
+ defaultNamespace: "com.amazonaws.bedrockruntime",
3802
+ errorTypeRegistries,
3803
+ version: "2023-09-30",
3804
+ serviceTarget: "AmazonBedrockFrontendService"
3805
+ },
3806
+ serviceId: config?.serviceId ?? "Bedrock Runtime",
3807
+ urlParser: config?.urlParser ?? import_url_parser.parseUrl,
3808
+ utf8Decoder: config?.utf8Decoder ?? import_util_utf82.fromUtf8,
3809
+ utf8Encoder: config?.utf8Encoder ?? import_util_utf82.toUtf8
3810
+ };
3811
+ };
3812
+ var init_runtimeConfig_shared = __esm(() => {
3813
+ init_httpAuthSchemeProvider();
3814
+ init_endpointResolver();
3815
+ init_schemas_0();
3816
+ import_httpAuthSchemes2 = __toESM(require_httpAuthSchemes(), 1);
3817
+ import_protocols = __toESM(require_protocols(), 1);
3818
+ import_core2 = __toESM(require_dist_cjs10(), 1);
3819
+ import_smithy_client2 = __toESM(require_dist_cjs9(), 1);
3820
+ import_url_parser = __toESM(require_dist_cjs4(), 1);
3821
+ import_util_base64 = __toESM(require_dist_cjs6(), 1);
3822
+ import_util_utf82 = __toESM(require_dist_cjs5(), 1);
3823
+ });
3824
+
3825
+ // node_modules/.bun/@aws-sdk+client-bedrock-runtime@3.1020.0/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/runtimeConfig.js
3826
+ var import_client, import_httpAuthSchemes3, import_util_user_agent_node, import_config_resolver, import_core3, import_hash_node, import_middleware_retry, import_node_config_provider, import_node_http_handler, import_smithy_client3, import_util_body_length_node, import_util_defaults_mode_node, import_util_retry, getRuntimeConfig2 = (config) => {
3827
+ import_smithy_client3.emitWarningIfUnsupportedVersion(process.version);
3828
+ const defaultsMode = import_util_defaults_mode_node.resolveDefaultsModeConfig(config);
3829
+ const defaultConfigProvider = () => defaultsMode().then(import_smithy_client3.loadConfigsForDefaultMode);
3830
+ const clientSharedValues = getRuntimeConfig(config);
3831
+ import_client.emitWarningIfUnsupportedVersion(process.version);
3832
+ const loaderConfig = {
3833
+ profile: config?.profile,
3834
+ logger: clientSharedValues.logger,
3835
+ signingName: "bedrock"
3836
+ };
3837
+ return {
3838
+ ...clientSharedValues,
3839
+ ...config,
3840
+ runtime: "node",
3841
+ defaultsMode,
3842
+ authSchemePreference: config?.authSchemePreference ?? import_node_config_provider.loadConfig(import_httpAuthSchemes3.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
3843
+ bodyLengthChecker: config?.bodyLengthChecker ?? import_util_body_length_node.calculateBodyLength,
3844
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? defaultProvider,
3845
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? import_util_user_agent_node.createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: package_default.version }),
3846
+ eventStreamPayloadHandlerProvider: config?.eventStreamPayloadHandlerProvider ?? eventStreamPayloadHandlerProvider2,
3847
+ eventStreamSerdeProvider: config?.eventStreamSerdeProvider ?? eventStreamSerdeProvider,
3848
+ httpAuthSchemes: config?.httpAuthSchemes ?? [
3849
+ {
3850
+ schemeId: "aws.auth#sigv4",
3851
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
3852
+ signer: new import_httpAuthSchemes3.AwsSdkSigV4Signer
3853
+ },
3854
+ {
3855
+ schemeId: "smithy.api#httpBearerAuth",
3856
+ identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#httpBearerAuth") || (async (idProps) => {
3857
+ try {
3858
+ return await fromEnvSigningName({ signingName: "bedrock" })();
3859
+ } catch (error) {
3860
+ return await nodeProvider(idProps)(idProps);
3861
+ }
3862
+ }),
3863
+ signer: new import_core3.HttpBearerAuthSigner
3864
+ }
3865
+ ],
3866
+ maxAttempts: config?.maxAttempts ?? import_node_config_provider.loadConfig(import_middleware_retry.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
3867
+ region: config?.region ?? import_node_config_provider.loadConfig(import_config_resolver.NODE_REGION_CONFIG_OPTIONS, { ...import_config_resolver.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
3868
+ requestHandler: import_node_http_handler.NodeHttp2Handler.create(config?.requestHandler ?? (async () => ({
3869
+ ...await defaultConfigProvider(),
3870
+ disableConcurrentStreams: true
3871
+ }))),
3872
+ retryMode: config?.retryMode ?? import_node_config_provider.loadConfig({
3873
+ ...import_middleware_retry.NODE_RETRY_MODE_CONFIG_OPTIONS,
3874
+ default: async () => (await defaultConfigProvider()).retryMode || import_util_retry.DEFAULT_RETRY_MODE
3875
+ }, config),
3876
+ sha256: config?.sha256 ?? import_hash_node.Hash.bind(null, "sha256"),
3877
+ streamCollector: config?.streamCollector ?? import_node_http_handler.streamCollector,
3878
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? import_node_config_provider.loadConfig(import_config_resolver.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
3879
+ useFipsEndpoint: config?.useFipsEndpoint ?? import_node_config_provider.loadConfig(import_config_resolver.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
3880
+ userAgentAppId: config?.userAgentAppId ?? import_node_config_provider.loadConfig(import_util_user_agent_node.NODE_APP_ID_CONFIG_OPTIONS, loaderConfig)
3881
+ };
3882
+ };
3883
+ var init_runtimeConfig = __esm(() => {
3884
+ init_package();
3885
+ init_dist_es2();
3886
+ init_dist_es10();
3887
+ init_dist_es();
3888
+ init_dist_es11();
3889
+ init_runtimeConfig_shared();
3890
+ import_client = __toESM(require_client(), 1);
3891
+ import_httpAuthSchemes3 = __toESM(require_httpAuthSchemes(), 1);
3892
+ import_util_user_agent_node = __toESM(require_dist_cjs22(), 1);
3893
+ import_config_resolver = __toESM(require_dist_cjs18(), 1);
3894
+ import_core3 = __toESM(require_dist_cjs10(), 1);
3895
+ import_hash_node = __toESM(require_dist_cjs23(), 1);
3896
+ import_middleware_retry = __toESM(require_dist_cjs21(), 1);
3897
+ import_node_config_provider = __toESM(require_dist_cjs3(), 1);
3898
+ import_node_http_handler = __toESM(require_dist_cjs2(), 1);
3899
+ import_smithy_client3 = __toESM(require_dist_cjs9(), 1);
3900
+ import_util_body_length_node = __toESM(require_dist_cjs24(), 1);
3901
+ import_util_defaults_mode_node = __toESM(require_dist_cjs25(), 1);
3902
+ import_util_retry = __toESM(require_dist_cjs16(), 1);
3903
+ });
3904
+
3905
+ // node_modules/.bun/@aws-sdk+client-bedrock-runtime@3.1020.0/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/auth/httpAuthExtensionConfiguration.js
3906
+ var getHttpAuthExtensionConfiguration = (runtimeConfig) => {
3907
+ const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
3908
+ let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
3909
+ let _credentials = runtimeConfig.credentials;
3910
+ let _token = runtimeConfig.token;
3911
+ return {
3912
+ setHttpAuthScheme(httpAuthScheme) {
3913
+ const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
3914
+ if (index === -1) {
3915
+ _httpAuthSchemes.push(httpAuthScheme);
3916
+ } else {
3917
+ _httpAuthSchemes.splice(index, 1, httpAuthScheme);
3918
+ }
3919
+ },
3920
+ httpAuthSchemes() {
3921
+ return _httpAuthSchemes;
3922
+ },
3923
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
3924
+ _httpAuthSchemeProvider = httpAuthSchemeProvider;
3925
+ },
3926
+ httpAuthSchemeProvider() {
3927
+ return _httpAuthSchemeProvider;
3928
+ },
3929
+ setCredentials(credentials) {
3930
+ _credentials = credentials;
3931
+ },
3932
+ credentials() {
3933
+ return _credentials;
3934
+ },
3935
+ setToken(token) {
3936
+ _token = token;
3937
+ },
3938
+ token() {
3939
+ return _token;
3940
+ }
3941
+ };
3942
+ }, resolveHttpAuthRuntimeConfig = (config) => {
3943
+ return {
3944
+ httpAuthSchemes: config.httpAuthSchemes(),
3945
+ httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
3946
+ credentials: config.credentials(),
3947
+ token: config.token()
3948
+ };
3949
+ };
3950
+
3951
+ // node_modules/.bun/@aws-sdk+client-bedrock-runtime@3.1020.0/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/runtimeExtensions.js
3952
+ var import_region_config_resolver, import_protocol_http5, import_smithy_client4, resolveRuntimeExtensions = (runtimeConfig, extensions) => {
3953
+ const extensionConfiguration = Object.assign(import_region_config_resolver.getAwsRegionExtensionConfiguration(runtimeConfig), import_smithy_client4.getDefaultExtensionConfiguration(runtimeConfig), import_protocol_http5.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
3954
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
3955
+ return Object.assign(runtimeConfig, import_region_config_resolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), import_smithy_client4.resolveDefaultRuntimeConfig(extensionConfiguration), import_protocol_http5.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
3956
+ };
3957
+ var init_runtimeExtensions = __esm(() => {
3958
+ import_region_config_resolver = __toESM(require_dist_cjs26(), 1);
3959
+ import_protocol_http5 = __toESM(require_dist_cjs(), 1);
3960
+ import_smithy_client4 = __toESM(require_dist_cjs9(), 1);
3961
+ });
3962
+
3963
+ // node_modules/.bun/@aws-sdk+client-bedrock-runtime@3.1020.0/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/BedrockRuntimeClient.js
3964
+ 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;
3965
+ var init_BedrockRuntimeClient = __esm(() => {
3966
+ init_dist_es3();
3967
+ init_dist_es8();
3968
+ init_dist_es9();
3969
+ init_httpAuthSchemeProvider();
3970
+ init_EndpointParameters();
3971
+ init_runtimeConfig();
3972
+ init_runtimeExtensions();
3973
+ import_middleware_host_header = __toESM(require_dist_cjs11(), 1);
3974
+ import_middleware_logger = __toESM(require_dist_cjs12(), 1);
3975
+ import_middleware_recursion_detection = __toESM(require_dist_cjs13(), 1);
3976
+ import_middleware_user_agent = __toESM(require_dist_cjs17(), 1);
3977
+ import_config_resolver2 = __toESM(require_dist_cjs18(), 1);
3978
+ import_core4 = __toESM(require_dist_cjs10(), 1);
3979
+ import_schema2 = __toESM(require_schema(), 1);
3980
+ import_middleware_content_length = __toESM(require_dist_cjs19(), 1);
3981
+ import_middleware_endpoint = __toESM(require_dist_cjs20(), 1);
3982
+ import_middleware_retry2 = __toESM(require_dist_cjs21(), 1);
3983
+ import_smithy_client5 = __toESM(require_dist_cjs9(), 1);
3984
+ BedrockRuntimeClient = class BedrockRuntimeClient extends import_smithy_client5.Client {
3985
+ config;
3986
+ constructor(...[configuration]) {
3987
+ const _config_0 = getRuntimeConfig2(configuration || {});
3988
+ super(_config_0);
3989
+ this.initConfig = _config_0;
3990
+ const _config_1 = resolveClientEndpointParameters(_config_0);
3991
+ const _config_2 = import_middleware_user_agent.resolveUserAgentConfig(_config_1);
3992
+ const _config_3 = import_middleware_retry2.resolveRetryConfig(_config_2);
3993
+ const _config_4 = import_config_resolver2.resolveRegionConfig(_config_3);
3994
+ const _config_5 = import_middleware_host_header.resolveHostHeaderConfig(_config_4);
3995
+ const _config_6 = import_middleware_endpoint.resolveEndpointConfig(_config_5);
3996
+ const _config_7 = resolveEventStreamSerdeConfig(_config_6);
3997
+ const _config_8 = resolveHttpAuthSchemeConfig(_config_7);
3998
+ const _config_9 = resolveEventStreamConfig(_config_8);
3999
+ const _config_10 = resolveWebSocketConfig(_config_9);
4000
+ const _config_11 = resolveRuntimeExtensions(_config_10, configuration?.extensions || []);
4001
+ this.config = _config_11;
4002
+ this.middlewareStack.use(import_schema2.getSchemaSerdePlugin(this.config));
4003
+ this.middlewareStack.use(import_middleware_user_agent.getUserAgentPlugin(this.config));
4004
+ this.middlewareStack.use(import_middleware_retry2.getRetryPlugin(this.config));
4005
+ this.middlewareStack.use(import_middleware_content_length.getContentLengthPlugin(this.config));
4006
+ this.middlewareStack.use(import_middleware_host_header.getHostHeaderPlugin(this.config));
4007
+ this.middlewareStack.use(import_middleware_logger.getLoggerPlugin(this.config));
4008
+ this.middlewareStack.use(import_middleware_recursion_detection.getRecursionDetectionPlugin(this.config));
4009
+ this.middlewareStack.use(import_core4.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
4010
+ httpAuthSchemeParametersProvider: defaultBedrockRuntimeHttpAuthSchemeParametersProvider,
4011
+ identityProviderConfigProvider: async (config) => new import_core4.DefaultIdentityProviderConfig({
4012
+ "aws.auth#sigv4": config.credentials,
4013
+ "smithy.api#httpBearerAuth": config.token
4014
+ })
4015
+ }));
4016
+ this.middlewareStack.use(import_core4.getHttpSigningPlugin(this.config));
4017
+ }
4018
+ destroy() {
4019
+ super.destroy();
4020
+ }
4021
+ };
4022
+ });
4023
+
4024
+ // node_modules/.bun/@aws-sdk+client-bedrock-runtime@3.1020.0/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/commands/ApplyGuardrailCommand.js
4025
+ var import_middleware_endpoint2, import_smithy_client6, ApplyGuardrailCommand;
4026
+ var init_ApplyGuardrailCommand = __esm(() => {
4027
+ init_EndpointParameters();
4028
+ init_schemas_0();
4029
+ import_middleware_endpoint2 = __toESM(require_dist_cjs20(), 1);
4030
+ import_smithy_client6 = __toESM(require_dist_cjs9(), 1);
4031
+ ApplyGuardrailCommand = class ApplyGuardrailCommand extends import_smithy_client6.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o2) {
4032
+ return [import_middleware_endpoint2.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
4033
+ }).s("AmazonBedrockFrontendService", "ApplyGuardrail", {}).n("BedrockRuntimeClient", "ApplyGuardrailCommand").sc(ApplyGuardrail$).build() {
4034
+ };
4035
+ });
4036
+
4037
+ // node_modules/.bun/@aws-sdk+client-bedrock-runtime@3.1020.0/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/commands/ConverseCommand.js
4038
+ var import_middleware_endpoint3, import_smithy_client7, ConverseCommand;
4039
+ var init_ConverseCommand = __esm(() => {
4040
+ init_EndpointParameters();
4041
+ init_schemas_0();
4042
+ import_middleware_endpoint3 = __toESM(require_dist_cjs20(), 1);
4043
+ import_smithy_client7 = __toESM(require_dist_cjs9(), 1);
4044
+ ConverseCommand = class ConverseCommand extends import_smithy_client7.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o2) {
4045
+ return [import_middleware_endpoint3.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
4046
+ }).s("AmazonBedrockFrontendService", "Converse", {}).n("BedrockRuntimeClient", "ConverseCommand").sc(Converse$).build() {
4047
+ };
4048
+ });
4049
+
4050
+ // node_modules/.bun/@aws-sdk+client-bedrock-runtime@3.1020.0/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/commands/ConverseStreamCommand.js
4051
+ var import_middleware_endpoint4, import_smithy_client8, ConverseStreamCommand;
4052
+ var init_ConverseStreamCommand = __esm(() => {
4053
+ init_EndpointParameters();
4054
+ init_schemas_0();
4055
+ import_middleware_endpoint4 = __toESM(require_dist_cjs20(), 1);
4056
+ import_smithy_client8 = __toESM(require_dist_cjs9(), 1);
4057
+ ConverseStreamCommand = class ConverseStreamCommand extends import_smithy_client8.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o2) {
4058
+ return [import_middleware_endpoint4.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
4059
+ }).s("AmazonBedrockFrontendService", "ConverseStream", {
4060
+ eventStream: {
4061
+ output: true
4062
+ }
4063
+ }).n("BedrockRuntimeClient", "ConverseStreamCommand").sc(ConverseStream$).build() {
4064
+ };
4065
+ });
4066
+
4067
+ // node_modules/.bun/@aws-sdk+client-bedrock-runtime@3.1020.0/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/commands/CountTokensCommand.js
4068
+ var import_middleware_endpoint5, import_smithy_client9, CountTokensCommand;
4069
+ var init_CountTokensCommand = __esm(() => {
4070
+ init_EndpointParameters();
4071
+ init_schemas_0();
4072
+ import_middleware_endpoint5 = __toESM(require_dist_cjs20(), 1);
4073
+ import_smithy_client9 = __toESM(require_dist_cjs9(), 1);
4074
+ CountTokensCommand = class CountTokensCommand extends import_smithy_client9.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o2) {
4075
+ return [import_middleware_endpoint5.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
4076
+ }).s("AmazonBedrockFrontendService", "CountTokens", {}).n("BedrockRuntimeClient", "CountTokensCommand").sc(CountTokens$).build() {
4077
+ };
4078
+ });
4079
+
4080
+ // node_modules/.bun/@aws-sdk+client-bedrock-runtime@3.1020.0/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/commands/GetAsyncInvokeCommand.js
4081
+ var import_middleware_endpoint6, import_smithy_client10, GetAsyncInvokeCommand;
4082
+ var init_GetAsyncInvokeCommand = __esm(() => {
4083
+ init_EndpointParameters();
4084
+ init_schemas_0();
4085
+ import_middleware_endpoint6 = __toESM(require_dist_cjs20(), 1);
4086
+ import_smithy_client10 = __toESM(require_dist_cjs9(), 1);
4087
+ GetAsyncInvokeCommand = class GetAsyncInvokeCommand extends import_smithy_client10.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o2) {
4088
+ return [import_middleware_endpoint6.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
4089
+ }).s("AmazonBedrockFrontendService", "GetAsyncInvoke", {}).n("BedrockRuntimeClient", "GetAsyncInvokeCommand").sc(GetAsyncInvoke$).build() {
4090
+ };
4091
+ });
4092
+
4093
+ // node_modules/.bun/@aws-sdk+client-bedrock-runtime@3.1020.0/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/commands/InvokeModelCommand.js
4094
+ var import_middleware_endpoint7, import_smithy_client11, InvokeModelCommand;
4095
+ var init_InvokeModelCommand = __esm(() => {
4096
+ init_EndpointParameters();
4097
+ init_schemas_0();
4098
+ import_middleware_endpoint7 = __toESM(require_dist_cjs20(), 1);
4099
+ import_smithy_client11 = __toESM(require_dist_cjs9(), 1);
4100
+ InvokeModelCommand = class InvokeModelCommand extends import_smithy_client11.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o2) {
4101
+ return [import_middleware_endpoint7.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
4102
+ }).s("AmazonBedrockFrontendService", "InvokeModel", {}).n("BedrockRuntimeClient", "InvokeModelCommand").sc(InvokeModel$).build() {
4103
+ };
4104
+ });
4105
+
4106
+ // node_modules/.bun/@aws-sdk+client-bedrock-runtime@3.1020.0/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/commands/InvokeModelWithBidirectionalStreamCommand.js
4107
+ var import_middleware_endpoint8, import_smithy_client12, InvokeModelWithBidirectionalStreamCommand;
4108
+ var init_InvokeModelWithBidirectionalStreamCommand = __esm(() => {
4109
+ init_dist_es3();
4110
+ init_dist_es8();
4111
+ init_EndpointParameters();
4112
+ init_schemas_0();
4113
+ import_middleware_endpoint8 = __toESM(require_dist_cjs20(), 1);
4114
+ import_smithy_client12 = __toESM(require_dist_cjs9(), 1);
4115
+ InvokeModelWithBidirectionalStreamCommand = class InvokeModelWithBidirectionalStreamCommand extends import_smithy_client12.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o2) {
4116
+ return [
4117
+ import_middleware_endpoint8.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
4118
+ getEventStreamPlugin(config),
4119
+ getWebSocketPlugin(config, {
4120
+ headerPrefix: "x-amz-bedrock-"
4121
+ })
4122
+ ];
4123
+ }).s("AmazonBedrockFrontendService", "InvokeModelWithBidirectionalStream", {
4124
+ eventStream: {
4125
+ input: true,
4126
+ output: true
4127
+ }
4128
+ }).n("BedrockRuntimeClient", "InvokeModelWithBidirectionalStreamCommand").sc(InvokeModelWithBidirectionalStream$).build() {
4129
+ };
4130
+ });
4131
+
4132
+ // node_modules/.bun/@aws-sdk+client-bedrock-runtime@3.1020.0/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/commands/InvokeModelWithResponseStreamCommand.js
4133
+ var import_middleware_endpoint9, import_smithy_client13, InvokeModelWithResponseStreamCommand;
4134
+ var init_InvokeModelWithResponseStreamCommand = __esm(() => {
4135
+ init_EndpointParameters();
4136
+ init_schemas_0();
4137
+ import_middleware_endpoint9 = __toESM(require_dist_cjs20(), 1);
4138
+ import_smithy_client13 = __toESM(require_dist_cjs9(), 1);
4139
+ InvokeModelWithResponseStreamCommand = class InvokeModelWithResponseStreamCommand extends import_smithy_client13.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o2) {
4140
+ return [import_middleware_endpoint9.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
4141
+ }).s("AmazonBedrockFrontendService", "InvokeModelWithResponseStream", {
4142
+ eventStream: {
4143
+ output: true
4144
+ }
4145
+ }).n("BedrockRuntimeClient", "InvokeModelWithResponseStreamCommand").sc(InvokeModelWithResponseStream$).build() {
4146
+ };
4147
+ });
4148
+
4149
+ // node_modules/.bun/@aws-sdk+client-bedrock-runtime@3.1020.0/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/commands/ListAsyncInvokesCommand.js
4150
+ var import_middleware_endpoint10, import_smithy_client14, ListAsyncInvokesCommand;
4151
+ var init_ListAsyncInvokesCommand = __esm(() => {
4152
+ init_EndpointParameters();
4153
+ init_schemas_0();
4154
+ import_middleware_endpoint10 = __toESM(require_dist_cjs20(), 1);
4155
+ import_smithy_client14 = __toESM(require_dist_cjs9(), 1);
4156
+ ListAsyncInvokesCommand = class ListAsyncInvokesCommand extends import_smithy_client14.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o2) {
4157
+ return [import_middleware_endpoint10.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
4158
+ }).s("AmazonBedrockFrontendService", "ListAsyncInvokes", {}).n("BedrockRuntimeClient", "ListAsyncInvokesCommand").sc(ListAsyncInvokes$).build() {
4159
+ };
4160
+ });
4161
+
4162
+ // node_modules/.bun/@aws-sdk+client-bedrock-runtime@3.1020.0/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/commands/StartAsyncInvokeCommand.js
4163
+ var import_middleware_endpoint11, import_smithy_client15, StartAsyncInvokeCommand;
4164
+ var init_StartAsyncInvokeCommand = __esm(() => {
4165
+ init_EndpointParameters();
4166
+ init_schemas_0();
4167
+ import_middleware_endpoint11 = __toESM(require_dist_cjs20(), 1);
4168
+ import_smithy_client15 = __toESM(require_dist_cjs9(), 1);
4169
+ StartAsyncInvokeCommand = class StartAsyncInvokeCommand extends import_smithy_client15.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o2) {
4170
+ return [import_middleware_endpoint11.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
4171
+ }).s("AmazonBedrockFrontendService", "StartAsyncInvoke", {}).n("BedrockRuntimeClient", "StartAsyncInvokeCommand").sc(StartAsyncInvoke$).build() {
4172
+ };
4173
+ });
4174
+
4175
+ // node_modules/.bun/@aws-sdk+client-bedrock-runtime@3.1020.0/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/pagination/ListAsyncInvokesPaginator.js
4176
+ var import_core5, paginateListAsyncInvokes;
4177
+ var init_ListAsyncInvokesPaginator = __esm(() => {
4178
+ init_BedrockRuntimeClient();
4179
+ init_ListAsyncInvokesCommand();
4180
+ import_core5 = __toESM(require_dist_cjs10(), 1);
4181
+ paginateListAsyncInvokes = import_core5.createPaginator(BedrockRuntimeClient, ListAsyncInvokesCommand, "nextToken", "nextToken", "maxResults");
4182
+ });
4183
+
4184
+ // node_modules/.bun/@aws-sdk+client-bedrock-runtime@3.1020.0/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/BedrockRuntime.js
4185
+ var import_smithy_client16, commands, paginators, BedrockRuntime;
4186
+ var init_BedrockRuntime = __esm(() => {
4187
+ init_BedrockRuntimeClient();
4188
+ init_ApplyGuardrailCommand();
4189
+ init_ConverseCommand();
4190
+ init_ConverseStreamCommand();
4191
+ init_CountTokensCommand();
4192
+ init_GetAsyncInvokeCommand();
4193
+ init_InvokeModelCommand();
4194
+ init_InvokeModelWithBidirectionalStreamCommand();
4195
+ init_InvokeModelWithResponseStreamCommand();
4196
+ init_ListAsyncInvokesCommand();
4197
+ init_StartAsyncInvokeCommand();
4198
+ init_ListAsyncInvokesPaginator();
4199
+ import_smithy_client16 = __toESM(require_dist_cjs9(), 1);
4200
+ commands = {
4201
+ ApplyGuardrailCommand,
4202
+ ConverseCommand,
4203
+ ConverseStreamCommand,
4204
+ CountTokensCommand,
4205
+ GetAsyncInvokeCommand,
4206
+ InvokeModelCommand,
4207
+ InvokeModelWithBidirectionalStreamCommand,
4208
+ InvokeModelWithResponseStreamCommand,
4209
+ ListAsyncInvokesCommand,
4210
+ StartAsyncInvokeCommand
4211
+ };
4212
+ paginators = {
4213
+ paginateListAsyncInvokes
4214
+ };
4215
+ BedrockRuntime = class BedrockRuntime extends BedrockRuntimeClient {
4216
+ };
4217
+ import_smithy_client16.createAggregatedClient(commands, BedrockRuntime, { paginators });
4218
+ });
4219
+
4220
+ // node_modules/.bun/@aws-sdk+client-bedrock-runtime@3.1020.0/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/commands/index.js
4221
+ var init_commands = __esm(() => {
4222
+ init_ApplyGuardrailCommand();
4223
+ init_ConverseCommand();
4224
+ init_ConverseStreamCommand();
4225
+ init_CountTokensCommand();
4226
+ init_GetAsyncInvokeCommand();
4227
+ init_InvokeModelCommand();
4228
+ init_InvokeModelWithBidirectionalStreamCommand();
4229
+ init_InvokeModelWithResponseStreamCommand();
4230
+ init_ListAsyncInvokesCommand();
4231
+ init_StartAsyncInvokeCommand();
4232
+ });
4233
+
4234
+ // node_modules/.bun/@aws-sdk+client-bedrock-runtime@3.1020.0/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/pagination/Interfaces.js
4235
+ var init_Interfaces = () => {};
4236
+
4237
+ // node_modules/.bun/@aws-sdk+client-bedrock-runtime@3.1020.0/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/pagination/index.js
4238
+ var init_pagination = __esm(() => {
4239
+ init_Interfaces();
4240
+ init_ListAsyncInvokesPaginator();
4241
+ });
4242
+
4243
+ // node_modules/.bun/@aws-sdk+client-bedrock-runtime@3.1020.0/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/models/enums.js
4244
+ var AsyncInvokeStatus, SortAsyncInvocationBy, SortOrder, GuardrailImageFormat, GuardrailContentQualifier, GuardrailOutputScope, GuardrailContentSource, GuardrailAction, GuardrailOrigin, GuardrailOwnership, GuardrailAutomatedReasoningLogicWarningType, GuardrailContentPolicyAction, GuardrailContentFilterConfidence, GuardrailContentFilterStrength, GuardrailContentFilterType, GuardrailContextualGroundingPolicyAction, GuardrailContextualGroundingFilterType, GuardrailSensitiveInformationPolicyAction, GuardrailPiiEntityType, GuardrailTopicPolicyAction, GuardrailTopicType, GuardrailWordPolicyAction, GuardrailManagedWordType, GuardrailTrace, AudioFormat, CacheTTL, CachePointType, DocumentFormat, GuardrailConverseImageFormat, GuardrailConverseContentQualifier, ImageFormat, VideoFormat, ToolResultStatus, ToolUseType, ConversationRole, OutputFormatType, PerformanceConfigLatency, ServiceTierType, StopReason, GuardrailStreamProcessingMode, Trace;
4245
+ var init_enums = __esm(() => {
4246
+ AsyncInvokeStatus = {
4247
+ COMPLETED: "Completed",
4248
+ FAILED: "Failed",
4249
+ IN_PROGRESS: "InProgress"
4250
+ };
4251
+ SortAsyncInvocationBy = {
4252
+ SUBMISSION_TIME: "SubmissionTime"
4253
+ };
4254
+ SortOrder = {
4255
+ ASCENDING: "Ascending",
4256
+ DESCENDING: "Descending"
4257
+ };
4258
+ GuardrailImageFormat = {
4259
+ JPEG: "jpeg",
4260
+ PNG: "png"
4261
+ };
4262
+ GuardrailContentQualifier = {
4263
+ GROUNDING_SOURCE: "grounding_source",
4264
+ GUARD_CONTENT: "guard_content",
4265
+ QUERY: "query"
4266
+ };
4267
+ GuardrailOutputScope = {
4268
+ FULL: "FULL",
4269
+ INTERVENTIONS: "INTERVENTIONS"
4270
+ };
4271
+ GuardrailContentSource = {
4272
+ INPUT: "INPUT",
4273
+ OUTPUT: "OUTPUT"
4274
+ };
4275
+ GuardrailAction = {
4276
+ GUARDRAIL_INTERVENED: "GUARDRAIL_INTERVENED",
4277
+ NONE: "NONE"
4278
+ };
4279
+ GuardrailOrigin = {
4280
+ ACCOUNT_ENFORCED: "ACCOUNT_ENFORCED",
4281
+ ORGANIZATION_ENFORCED: "ORGANIZATION_ENFORCED",
4282
+ REQUEST: "REQUEST"
4283
+ };
4284
+ GuardrailOwnership = {
4285
+ CROSS_ACCOUNT: "CROSS_ACCOUNT",
4286
+ SELF: "SELF"
4287
+ };
4288
+ GuardrailAutomatedReasoningLogicWarningType = {
4289
+ ALWAYS_FALSE: "ALWAYS_FALSE",
4290
+ ALWAYS_TRUE: "ALWAYS_TRUE"
4291
+ };
4292
+ GuardrailContentPolicyAction = {
4293
+ BLOCKED: "BLOCKED",
4294
+ NONE: "NONE"
4295
+ };
4296
+ GuardrailContentFilterConfidence = {
4297
+ HIGH: "HIGH",
4298
+ LOW: "LOW",
4299
+ MEDIUM: "MEDIUM",
4300
+ NONE: "NONE"
4301
+ };
4302
+ GuardrailContentFilterStrength = {
4303
+ HIGH: "HIGH",
4304
+ LOW: "LOW",
4305
+ MEDIUM: "MEDIUM",
4306
+ NONE: "NONE"
4307
+ };
4308
+ GuardrailContentFilterType = {
4309
+ HATE: "HATE",
4310
+ INSULTS: "INSULTS",
4311
+ MISCONDUCT: "MISCONDUCT",
4312
+ PROMPT_ATTACK: "PROMPT_ATTACK",
4313
+ SEXUAL: "SEXUAL",
4314
+ VIOLENCE: "VIOLENCE"
4315
+ };
4316
+ GuardrailContextualGroundingPolicyAction = {
4317
+ BLOCKED: "BLOCKED",
4318
+ NONE: "NONE"
4319
+ };
4320
+ GuardrailContextualGroundingFilterType = {
4321
+ GROUNDING: "GROUNDING",
4322
+ RELEVANCE: "RELEVANCE"
4323
+ };
4324
+ GuardrailSensitiveInformationPolicyAction = {
4325
+ ANONYMIZED: "ANONYMIZED",
4326
+ BLOCKED: "BLOCKED",
4327
+ NONE: "NONE"
4328
+ };
4329
+ GuardrailPiiEntityType = {
4330
+ ADDRESS: "ADDRESS",
4331
+ AGE: "AGE",
4332
+ AWS_ACCESS_KEY: "AWS_ACCESS_KEY",
4333
+ AWS_SECRET_KEY: "AWS_SECRET_KEY",
4334
+ CA_HEALTH_NUMBER: "CA_HEALTH_NUMBER",
4335
+ CA_SOCIAL_INSURANCE_NUMBER: "CA_SOCIAL_INSURANCE_NUMBER",
4336
+ CREDIT_DEBIT_CARD_CVV: "CREDIT_DEBIT_CARD_CVV",
4337
+ CREDIT_DEBIT_CARD_EXPIRY: "CREDIT_DEBIT_CARD_EXPIRY",
4338
+ CREDIT_DEBIT_CARD_NUMBER: "CREDIT_DEBIT_CARD_NUMBER",
4339
+ DRIVER_ID: "DRIVER_ID",
4340
+ EMAIL: "EMAIL",
4341
+ INTERNATIONAL_BANK_ACCOUNT_NUMBER: "INTERNATIONAL_BANK_ACCOUNT_NUMBER",
4342
+ IP_ADDRESS: "IP_ADDRESS",
4343
+ LICENSE_PLATE: "LICENSE_PLATE",
4344
+ MAC_ADDRESS: "MAC_ADDRESS",
4345
+ NAME: "NAME",
4346
+ PASSWORD: "PASSWORD",
4347
+ PHONE: "PHONE",
4348
+ PIN: "PIN",
4349
+ SWIFT_CODE: "SWIFT_CODE",
4350
+ UK_NATIONAL_HEALTH_SERVICE_NUMBER: "UK_NATIONAL_HEALTH_SERVICE_NUMBER",
4351
+ UK_NATIONAL_INSURANCE_NUMBER: "UK_NATIONAL_INSURANCE_NUMBER",
4352
+ UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER: "UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER",
4353
+ URL: "URL",
4354
+ USERNAME: "USERNAME",
4355
+ US_BANK_ACCOUNT_NUMBER: "US_BANK_ACCOUNT_NUMBER",
4356
+ US_BANK_ROUTING_NUMBER: "US_BANK_ROUTING_NUMBER",
4357
+ US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER: "US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER",
4358
+ US_PASSPORT_NUMBER: "US_PASSPORT_NUMBER",
4359
+ US_SOCIAL_SECURITY_NUMBER: "US_SOCIAL_SECURITY_NUMBER",
4360
+ VEHICLE_IDENTIFICATION_NUMBER: "VEHICLE_IDENTIFICATION_NUMBER"
4361
+ };
4362
+ GuardrailTopicPolicyAction = {
4363
+ BLOCKED: "BLOCKED",
4364
+ NONE: "NONE"
4365
+ };
4366
+ GuardrailTopicType = {
4367
+ DENY: "DENY"
4368
+ };
4369
+ GuardrailWordPolicyAction = {
4370
+ BLOCKED: "BLOCKED",
4371
+ NONE: "NONE"
4372
+ };
4373
+ GuardrailManagedWordType = {
4374
+ PROFANITY: "PROFANITY"
4375
+ };
4376
+ GuardrailTrace = {
4377
+ DISABLED: "disabled",
4378
+ ENABLED: "enabled",
4379
+ ENABLED_FULL: "enabled_full"
4380
+ };
4381
+ AudioFormat = {
4382
+ AAC: "aac",
4383
+ FLAC: "flac",
4384
+ M4A: "m4a",
4385
+ MKA: "mka",
4386
+ MKV: "mkv",
4387
+ MP3: "mp3",
4388
+ MP4: "mp4",
4389
+ MPEG: "mpeg",
4390
+ MPGA: "mpga",
4391
+ OGG: "ogg",
4392
+ OPUS: "opus",
4393
+ PCM: "pcm",
4394
+ WAV: "wav",
4395
+ WEBM: "webm",
4396
+ X_AAC: "x-aac"
4397
+ };
4398
+ CacheTTL = {
4399
+ FIVE_MINUTES: "5m",
4400
+ ONE_HOUR: "1h"
4401
+ };
4402
+ CachePointType = {
4403
+ DEFAULT: "default"
4404
+ };
4405
+ DocumentFormat = {
4406
+ CSV: "csv",
4407
+ DOC: "doc",
4408
+ DOCX: "docx",
4409
+ HTML: "html",
4410
+ MD: "md",
4411
+ PDF: "pdf",
4412
+ TXT: "txt",
4413
+ XLS: "xls",
4414
+ XLSX: "xlsx"
4415
+ };
4416
+ GuardrailConverseImageFormat = {
4417
+ JPEG: "jpeg",
4418
+ PNG: "png"
4419
+ };
4420
+ GuardrailConverseContentQualifier = {
4421
+ GROUNDING_SOURCE: "grounding_source",
4422
+ GUARD_CONTENT: "guard_content",
4423
+ QUERY: "query"
4424
+ };
4425
+ ImageFormat = {
4426
+ GIF: "gif",
4427
+ JPEG: "jpeg",
4428
+ PNG: "png",
4429
+ WEBP: "webp"
4430
+ };
4431
+ VideoFormat = {
4432
+ FLV: "flv",
4433
+ MKV: "mkv",
4434
+ MOV: "mov",
4435
+ MP4: "mp4",
4436
+ MPEG: "mpeg",
4437
+ MPG: "mpg",
4438
+ THREE_GP: "three_gp",
4439
+ WEBM: "webm",
4440
+ WMV: "wmv"
4441
+ };
4442
+ ToolResultStatus = {
4443
+ ERROR: "error",
4444
+ SUCCESS: "success"
4445
+ };
4446
+ ToolUseType = {
4447
+ SERVER_TOOL_USE: "server_tool_use"
4448
+ };
4449
+ ConversationRole = {
4450
+ ASSISTANT: "assistant",
4451
+ USER: "user"
4452
+ };
4453
+ OutputFormatType = {
4454
+ JSON_SCHEMA: "json_schema"
4455
+ };
4456
+ PerformanceConfigLatency = {
4457
+ OPTIMIZED: "optimized",
4458
+ STANDARD: "standard"
4459
+ };
4460
+ ServiceTierType = {
4461
+ DEFAULT: "default",
4462
+ FLEX: "flex",
4463
+ PRIORITY: "priority",
4464
+ RESERVED: "reserved"
4465
+ };
4466
+ StopReason = {
4467
+ CONTENT_FILTERED: "content_filtered",
4468
+ END_TURN: "end_turn",
4469
+ GUARDRAIL_INTERVENED: "guardrail_intervened",
4470
+ MALFORMED_MODEL_OUTPUT: "malformed_model_output",
4471
+ MALFORMED_TOOL_USE: "malformed_tool_use",
4472
+ MAX_TOKENS: "max_tokens",
4473
+ MODEL_CONTEXT_WINDOW_EXCEEDED: "model_context_window_exceeded",
4474
+ STOP_SEQUENCE: "stop_sequence",
4475
+ TOOL_USE: "tool_use"
4476
+ };
4477
+ GuardrailStreamProcessingMode = {
4478
+ ASYNC: "async",
4479
+ SYNC: "sync"
4480
+ };
4481
+ Trace = {
4482
+ DISABLED: "DISABLED",
4483
+ ENABLED: "ENABLED",
4484
+ ENABLED_FULL: "ENABLED_FULL"
4485
+ };
4486
+ });
4487
+
4488
+ // node_modules/.bun/@aws-sdk+client-bedrock-runtime@3.1020.0/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/models/models_0.js
4489
+ var init_models_0 = () => {};
4490
+
4491
+ // node_modules/.bun/@aws-sdk+client-bedrock-runtime@3.1020.0/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/index.js
4492
+ var init_dist_es12 = __esm(() => {
4493
+ init_BedrockRuntimeServiceException();
4494
+ init_BedrockRuntimeClient();
4495
+ init_BedrockRuntime();
4496
+ init_commands();
4497
+ init_schemas_0();
4498
+ init_pagination();
4499
+ init_enums();
4500
+ init_errors();
4501
+ init_models_0();
4502
+ });
4503
+ init_dist_es12();
4504
+ var export___Client = import_smithy_client5.Client;
4505
+
4506
+ export {
4507
+ paginateListAsyncInvokes,
4508
+ errorTypeRegistries,
4509
+ export___Client as __Client,
4510
+ WebLocation$,
4511
+ VideoSource$,
4512
+ VideoFormat,
4513
+ VideoBlock$,
4514
+ ValidationException$,
4515
+ ValidationException,
4516
+ Trace,
4517
+ ToolUseType,
4518
+ ToolUseBlockStart$,
4519
+ ToolUseBlockDelta$,
4520
+ ToolUseBlock$,
4521
+ ToolSpecification$,
4522
+ ToolResultStatus,
4523
+ ToolResultContentBlock$,
4524
+ ToolResultBlockStart$,
4525
+ ToolResultBlockDelta$,
4526
+ ToolResultBlock$,
4527
+ ToolInputSchema$,
4528
+ ToolConfiguration$,
4529
+ ToolChoice$,
4530
+ Tool$,
4531
+ TokenUsage$,
4532
+ ThrottlingException$,
4533
+ ThrottlingException,
4534
+ Tag$,
4535
+ SystemTool$,
4536
+ SystemContentBlock$,
4537
+ StopReason,
4538
+ StartAsyncInvokeResponse$,
4539
+ StartAsyncInvokeRequest$,
4540
+ StartAsyncInvokeCommand,
4541
+ StartAsyncInvoke$,
4542
+ SpecificToolChoice$,
4543
+ SortOrder,
4544
+ SortAsyncInvocationBy,
4545
+ ServiceUnavailableException$,
4546
+ ServiceUnavailableException,
4547
+ ServiceTierType,
4548
+ ServiceTier$,
4549
+ ServiceQuotaExceededException$,
4550
+ ServiceQuotaExceededException,
4551
+ SearchResultLocation$,
4552
+ SearchResultContentBlock$,
4553
+ SearchResultBlock$,
4554
+ S3Location$,
4555
+ ResponseStream$,
4556
+ ResourceNotFoundException$,
4557
+ ResourceNotFoundException,
4558
+ ReasoningTextBlock$,
4559
+ ReasoningContentBlockDelta$,
4560
+ ReasoningContentBlock$,
4561
+ PromptVariableValues$,
4562
+ PromptRouterTrace$,
4563
+ PerformanceConfiguration$,
4564
+ PerformanceConfigLatency,
4565
+ PayloadPart$,
4566
+ OutputFormatType,
4567
+ OutputFormatStructure$,
4568
+ OutputFormat$,
4569
+ OutputConfig$,
4570
+ ModelTimeoutException$,
4571
+ ModelTimeoutException,
4572
+ ModelStreamErrorException$,
4573
+ ModelStreamErrorException,
4574
+ ModelNotReadyException$,
4575
+ ModelNotReadyException,
4576
+ ModelErrorException$,
4577
+ ModelErrorException,
4578
+ MessageStopEvent$,
4579
+ MessageStartEvent$,
4580
+ Message$,
4581
+ ListAsyncInvokesResponse$,
4582
+ ListAsyncInvokesRequest$,
4583
+ ListAsyncInvokesCommand,
4584
+ ListAsyncInvokes$,
4585
+ JsonSchemaDefinition$,
4586
+ InvokeModelWithResponseStreamResponse$,
4587
+ InvokeModelWithResponseStreamRequest$,
4588
+ InvokeModelWithResponseStreamCommand,
4589
+ InvokeModelWithResponseStream$,
4590
+ InvokeModelWithBidirectionalStreamResponse$,
4591
+ InvokeModelWithBidirectionalStreamRequest$,
4592
+ InvokeModelWithBidirectionalStreamOutput$,
4593
+ InvokeModelWithBidirectionalStreamInput$,
4594
+ InvokeModelWithBidirectionalStreamCommand,
4595
+ InvokeModelWithBidirectionalStream$,
4596
+ InvokeModelTokensRequest$,
4597
+ InvokeModelResponse$,
4598
+ InvokeModelRequest$,
4599
+ InvokeModelCommand,
4600
+ InvokeModel$,
4601
+ InternalServerException$,
4602
+ InternalServerException,
4603
+ InferenceConfiguration$,
4604
+ ImageSource$,
4605
+ ImageFormat,
4606
+ ImageBlockStart$,
4607
+ ImageBlockDelta$,
4608
+ ImageBlock$,
4609
+ GuardrailWordPolicyAssessment$,
4610
+ GuardrailWordPolicyAction,
4611
+ GuardrailUsage$,
4612
+ GuardrailTraceAssessment$,
4613
+ GuardrailTrace,
4614
+ GuardrailTopicType,
4615
+ GuardrailTopicPolicyAssessment$,
4616
+ GuardrailTopicPolicyAction,
4617
+ GuardrailTopic$,
4618
+ GuardrailTextCharactersCoverage$,
4619
+ GuardrailTextBlock$,
4620
+ GuardrailStreamProcessingMode,
4621
+ GuardrailStreamConfiguration$,
4622
+ GuardrailSensitiveInformationPolicyAssessment$,
4623
+ GuardrailSensitiveInformationPolicyAction,
4624
+ GuardrailRegexFilter$,
4625
+ GuardrailPiiEntityType,
4626
+ GuardrailPiiEntityFilter$,
4627
+ GuardrailOwnership,
4628
+ GuardrailOutputScope,
4629
+ GuardrailOutputContent$,
4630
+ GuardrailOrigin,
4631
+ GuardrailManagedWordType,
4632
+ GuardrailManagedWord$,
4633
+ GuardrailInvocationMetrics$,
4634
+ GuardrailImageSource$,
4635
+ GuardrailImageFormat,
4636
+ GuardrailImageCoverage$,
4637
+ GuardrailImageBlock$,
4638
+ GuardrailCustomWord$,
4639
+ GuardrailCoverage$,
4640
+ GuardrailConverseTextBlock$,
4641
+ GuardrailConverseImageSource$,
4642
+ GuardrailConverseImageFormat,
4643
+ GuardrailConverseImageBlock$,
4644
+ GuardrailConverseContentQualifier,
4645
+ GuardrailConverseContentBlock$,
4646
+ GuardrailContextualGroundingPolicyAssessment$,
4647
+ GuardrailContextualGroundingPolicyAction,
4648
+ GuardrailContextualGroundingFilterType,
4649
+ GuardrailContextualGroundingFilter$,
4650
+ GuardrailContentSource,
4651
+ GuardrailContentQualifier,
4652
+ GuardrailContentPolicyAssessment$,
4653
+ GuardrailContentPolicyAction,
4654
+ GuardrailContentFilterType,
4655
+ GuardrailContentFilterStrength,
4656
+ GuardrailContentFilterConfidence,
4657
+ GuardrailContentFilter$,
4658
+ GuardrailContentBlock$,
4659
+ GuardrailConfiguration$,
4660
+ GuardrailAutomatedReasoningValidFinding$,
4661
+ GuardrailAutomatedReasoningTranslationOption$,
4662
+ GuardrailAutomatedReasoningTranslationAmbiguousFinding$,
4663
+ GuardrailAutomatedReasoningTranslation$,
4664
+ GuardrailAutomatedReasoningTooComplexFinding$,
4665
+ GuardrailAutomatedReasoningStatement$,
4666
+ GuardrailAutomatedReasoningScenario$,
4667
+ GuardrailAutomatedReasoningSatisfiableFinding$,
4668
+ GuardrailAutomatedReasoningRule$,
4669
+ GuardrailAutomatedReasoningPolicyAssessment$,
4670
+ GuardrailAutomatedReasoningNoTranslationsFinding$,
4671
+ GuardrailAutomatedReasoningLogicWarningType,
4672
+ GuardrailAutomatedReasoningLogicWarning$,
4673
+ GuardrailAutomatedReasoningInvalidFinding$,
4674
+ GuardrailAutomatedReasoningInputTextReference$,
4675
+ GuardrailAutomatedReasoningImpossibleFinding$,
4676
+ GuardrailAutomatedReasoningFinding$,
4677
+ GuardrailAssessment$,
4678
+ GuardrailAction,
4679
+ GetAsyncInvokeResponse$,
4680
+ GetAsyncInvokeRequest$,
4681
+ GetAsyncInvokeCommand,
4682
+ GetAsyncInvoke$,
4683
+ ErrorBlock$,
4684
+ DocumentSource$,
4685
+ DocumentPageLocation$,
4686
+ DocumentFormat,
4687
+ DocumentContentBlock$,
4688
+ DocumentChunkLocation$,
4689
+ DocumentCharLocation$,
4690
+ DocumentBlock$,
4691
+ CountTokensResponse$,
4692
+ CountTokensRequest$,
4693
+ CountTokensInput$,
4694
+ CountTokensCommand,
4695
+ CountTokens$,
4696
+ ConverseTrace$,
4697
+ ConverseTokensRequest$,
4698
+ ConverseStreamTrace$,
4699
+ ConverseStreamResponse$,
4700
+ ConverseStreamRequest$,
4701
+ ConverseStreamOutput$,
4702
+ ConverseStreamMetrics$,
4703
+ ConverseStreamMetadataEvent$,
4704
+ ConverseStreamCommand,
4705
+ ConverseStream$,
4706
+ ConverseResponse$,
4707
+ ConverseRequest$,
4708
+ ConverseOutput$,
4709
+ ConverseMetrics$,
4710
+ ConverseCommand,
4711
+ Converse$,
4712
+ ConversationRole,
4713
+ ContentBlockStopEvent$,
4714
+ ContentBlockStartEvent$,
4715
+ ContentBlockStart$,
4716
+ ContentBlockDeltaEvent$,
4717
+ ContentBlockDelta$,
4718
+ ContentBlock$,
4719
+ ConflictException$,
4720
+ ConflictException,
4721
+ CitationsDelta$,
4722
+ CitationsContentBlock$,
4723
+ CitationsConfig$,
4724
+ CitationSourceContentDelta$,
4725
+ CitationSourceContent$,
4726
+ CitationLocation$,
4727
+ CitationGeneratedContent$,
4728
+ Citation$,
4729
+ CacheTTL,
4730
+ CachePointType,
4731
+ CachePointBlock$,
4732
+ CacheDetail$,
4733
+ BidirectionalOutputPayloadPart$,
4734
+ BidirectionalInputPayloadPart$,
4735
+ BedrockRuntimeServiceException$,
4736
+ BedrockRuntimeServiceException,
4737
+ BedrockRuntimeClient,
4738
+ BedrockRuntime,
4739
+ AutoToolChoice$,
4740
+ AudioSource$,
4741
+ AudioFormat,
4742
+ AudioBlock$,
4743
+ AsyncInvokeSummary$,
4744
+ AsyncInvokeStatus,
4745
+ AsyncInvokeS3OutputDataConfig$,
4746
+ AsyncInvokeOutputDataConfig$,
4747
+ ApplyGuardrailResponse$,
4748
+ ApplyGuardrailRequest$,
4749
+ ApplyGuardrailCommand,
4750
+ ApplyGuardrail$,
4751
+ AppliedGuardrailDetails$,
4752
+ AnyToolChoice$,
4753
+ AccessDeniedException$,
4754
+ AccessDeniedException
4755
+ };
4756
+
4757
+ export { fromArrayBuffer, fromString, init_dist_es4 as init_dist_es, fromUtf8, toUtf8, init_dist_es5 as init_dist_es1, InternalServerException, ThrottlingException, ValidationException, ModelStreamErrorException, init_dist_es12 as init_dist_es2 };