@hashgraphonline/standards-sdk 0.1.190 → 0.1.191

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 (350) hide show
  1. package/dist/browser/hcs-25/adapters/ans-trust-discovery.d.ts +22 -0
  2. package/dist/browser/hcs-25/adapters/ans-trust-discovery.d.ts.map +1 -0
  3. package/dist/browser/hcs-25/adapters/index.d.ts +1 -0
  4. package/dist/browser/hcs-25/adapters/index.d.ts.map +1 -1
  5. package/dist/browser/hcs-25/collectors/ans-trust-discovery.d.ts +32 -0
  6. package/dist/browser/hcs-25/collectors/ans-trust-discovery.d.ts.map +1 -0
  7. package/dist/browser/hcs-25/collectors/catalog.d.ts +9 -2
  8. package/dist/browser/hcs-25/collectors/catalog.d.ts.map +1 -1
  9. package/dist/browser/hcs-25/collectors/index.d.ts +1 -0
  10. package/dist/browser/hcs-25/collectors/index.d.ts.map +1 -1
  11. package/dist/browser/hcs-25/signals/ans-trust-discovery.d.ts +50 -0
  12. package/dist/browser/hcs-25/signals/ans-trust-discovery.d.ts.map +1 -0
  13. package/dist/browser/hcs-25/signals/index.d.ts +1 -0
  14. package/dist/browser/hcs-25/signals/index.d.ts.map +1 -1
  15. package/dist/browser-root/hcs-25/adapters/ans-trust-discovery.d.ts +22 -0
  16. package/dist/browser-root/hcs-25/adapters/ans-trust-discovery.d.ts.map +1 -0
  17. package/dist/browser-root/hcs-25/adapters/index.d.ts +1 -0
  18. package/dist/browser-root/hcs-25/adapters/index.d.ts.map +1 -1
  19. package/dist/browser-root/hcs-25/collectors/ans-trust-discovery.d.ts +32 -0
  20. package/dist/browser-root/hcs-25/collectors/ans-trust-discovery.d.ts.map +1 -0
  21. package/dist/browser-root/hcs-25/collectors/catalog.d.ts +9 -2
  22. package/dist/browser-root/hcs-25/collectors/catalog.d.ts.map +1 -1
  23. package/dist/browser-root/hcs-25/collectors/index.d.ts +1 -0
  24. package/dist/browser-root/hcs-25/collectors/index.d.ts.map +1 -1
  25. package/dist/browser-root/hcs-25/signals/ans-trust-discovery.d.ts +50 -0
  26. package/dist/browser-root/hcs-25/signals/ans-trust-discovery.d.ts.map +1 -0
  27. package/dist/browser-root/hcs-25/signals/index.d.ts +1 -0
  28. package/dist/browser-root/hcs-25/signals/index.d.ts.map +1 -1
  29. package/dist/cjs/hcs-25/adapters/ans-trust-discovery.d.ts +22 -0
  30. package/dist/cjs/hcs-25/adapters/ans-trust-discovery.d.ts.map +1 -0
  31. package/dist/cjs/hcs-25/adapters/index.d.ts +1 -0
  32. package/dist/cjs/hcs-25/adapters/index.d.ts.map +1 -1
  33. package/dist/cjs/hcs-25/collectors/ans-trust-discovery.d.ts +32 -0
  34. package/dist/cjs/hcs-25/collectors/ans-trust-discovery.d.ts.map +1 -0
  35. package/dist/cjs/hcs-25/collectors/catalog.d.ts +9 -2
  36. package/dist/cjs/hcs-25/collectors/catalog.d.ts.map +1 -1
  37. package/dist/cjs/hcs-25/collectors/index.d.ts +1 -0
  38. package/dist/cjs/hcs-25/collectors/index.d.ts.map +1 -1
  39. package/dist/cjs/hcs-25/signals/ans-trust-discovery.d.ts +50 -0
  40. package/dist/cjs/hcs-25/signals/ans-trust-discovery.d.ts.map +1 -0
  41. package/dist/cjs/hcs-25/signals/index.d.ts +1 -0
  42. package/dist/cjs/hcs-25/signals/index.d.ts.map +1 -1
  43. package/dist/cjs/standards-sdk.cjs +1 -1
  44. package/dist/cjs/standards-sdk.cjs.map +1 -1
  45. package/dist/es/hcs-25/adapters/ans-trust-discovery.d.ts +22 -0
  46. package/dist/es/hcs-25/adapters/ans-trust-discovery.d.ts.map +1 -0
  47. package/dist/es/hcs-25/adapters/index.d.ts +1 -0
  48. package/dist/es/hcs-25/adapters/index.d.ts.map +1 -1
  49. package/dist/es/hcs-25/collectors/ans-trust-discovery.d.ts +32 -0
  50. package/dist/es/hcs-25/collectors/ans-trust-discovery.d.ts.map +1 -0
  51. package/dist/es/hcs-25/collectors/catalog.d.ts +9 -2
  52. package/dist/es/hcs-25/collectors/catalog.d.ts.map +1 -1
  53. package/dist/es/hcs-25/collectors/index.d.ts +1 -0
  54. package/dist/es/hcs-25/collectors/index.d.ts.map +1 -1
  55. package/dist/es/hcs-25/signals/ans-trust-discovery.d.ts +50 -0
  56. package/dist/es/hcs-25/signals/ans-trust-discovery.d.ts.map +1 -0
  57. package/dist/es/hcs-25/signals/index.d.ts +1 -0
  58. package/dist/es/hcs-25/signals/index.d.ts.map +1 -1
  59. package/dist/es/standards-sdk.es.js +78 -71
  60. package/dist/es/standards-sdk.es.js.map +1 -1
  61. package/dist/es/standards-sdk.es101.js +2 -2
  62. package/dist/es/standards-sdk.es103.js +2 -2
  63. package/dist/es/standards-sdk.es104.js +1 -1
  64. package/dist/es/standards-sdk.es106.js +1 -1
  65. package/dist/es/standards-sdk.es108.js +2 -2
  66. package/dist/es/standards-sdk.es11.js +1 -1
  67. package/dist/es/standards-sdk.es110.js +1 -1
  68. package/dist/es/standards-sdk.es111.js +2 -2
  69. package/dist/es/standards-sdk.es115.js +3 -3
  70. package/dist/es/standards-sdk.es116.js +4 -4
  71. package/dist/es/standards-sdk.es12.js +1 -1
  72. package/dist/es/standards-sdk.es120.js +22 -4
  73. package/dist/es/standards-sdk.es120.js.map +1 -1
  74. package/dist/es/standards-sdk.es121.js +15 -12
  75. package/dist/es/standards-sdk.es121.js.map +1 -1
  76. package/dist/es/standards-sdk.es123.js +6 -5
  77. package/dist/es/standards-sdk.es123.js.map +1 -1
  78. package/dist/es/standards-sdk.es124.js +6 -5
  79. package/dist/es/standards-sdk.es124.js.map +1 -1
  80. package/dist/es/standards-sdk.es127.js +6 -5
  81. package/dist/es/standards-sdk.es127.js.map +1 -1
  82. package/dist/es/standards-sdk.es128.js +110 -136
  83. package/dist/es/standards-sdk.es128.js.map +1 -1
  84. package/dist/es/standards-sdk.es129.js +133 -141
  85. package/dist/es/standards-sdk.es129.js.map +1 -1
  86. package/dist/es/standards-sdk.es13.js +1 -1
  87. package/dist/es/standards-sdk.es130.js +135 -345
  88. package/dist/es/standards-sdk.es130.js.map +1 -1
  89. package/dist/es/standards-sdk.es131.js +332 -344
  90. package/dist/es/standards-sdk.es131.js.map +1 -1
  91. package/dist/es/standards-sdk.es132.js +338 -178
  92. package/dist/es/standards-sdk.es132.js.map +1 -1
  93. package/dist/es/standards-sdk.es133.js +200 -196
  94. package/dist/es/standards-sdk.es133.js.map +1 -1
  95. package/dist/es/standards-sdk.es134.js +216 -364
  96. package/dist/es/standards-sdk.es134.js.map +1 -1
  97. package/dist/es/standards-sdk.es135.js +358 -100
  98. package/dist/es/standards-sdk.es135.js.map +1 -1
  99. package/dist/es/standards-sdk.es136.js +91 -220
  100. package/dist/es/standards-sdk.es136.js.map +1 -1
  101. package/dist/es/standards-sdk.es137.js +173 -1250
  102. package/dist/es/standards-sdk.es137.js.map +1 -1
  103. package/dist/es/standards-sdk.es138.js +1295 -98
  104. package/dist/es/standards-sdk.es138.js.map +1 -1
  105. package/dist/es/standards-sdk.es139.js +109 -246
  106. package/dist/es/standards-sdk.es139.js.map +1 -1
  107. package/dist/es/standards-sdk.es14.js +1 -1
  108. package/dist/es/standards-sdk.es140.js +263 -97
  109. package/dist/es/standards-sdk.es140.js.map +1 -1
  110. package/dist/es/standards-sdk.es141.js +107 -248
  111. package/dist/es/standards-sdk.es141.js.map +1 -1
  112. package/dist/es/standards-sdk.es142.js +246 -472
  113. package/dist/es/standards-sdk.es142.js.map +1 -1
  114. package/dist/es/standards-sdk.es143.js +458 -85
  115. package/dist/es/standards-sdk.es143.js.map +1 -1
  116. package/dist/es/standards-sdk.es144.js +96 -151
  117. package/dist/es/standards-sdk.es144.js.map +1 -1
  118. package/dist/es/standards-sdk.es145.js +155 -29
  119. package/dist/es/standards-sdk.es145.js.map +1 -1
  120. package/dist/es/standards-sdk.es146.js +26 -4
  121. package/dist/es/standards-sdk.es146.js.map +1 -1
  122. package/dist/es/standards-sdk.es147.js +10 -180
  123. package/dist/es/standards-sdk.es147.js.map +1 -1
  124. package/dist/es/standards-sdk.es148.js +179 -26
  125. package/dist/es/standards-sdk.es148.js.map +1 -1
  126. package/dist/es/standards-sdk.es149.js +27 -20
  127. package/dist/es/standards-sdk.es149.js.map +1 -1
  128. package/dist/es/standards-sdk.es15.js +1 -1
  129. package/dist/es/standards-sdk.es150.js +18 -156
  130. package/dist/es/standards-sdk.es150.js.map +1 -1
  131. package/dist/es/standards-sdk.es151.js +148 -190
  132. package/dist/es/standards-sdk.es151.js.map +1 -1
  133. package/dist/es/standards-sdk.es152.js +159 -747
  134. package/dist/es/standards-sdk.es152.js.map +1 -1
  135. package/dist/es/standards-sdk.es153.js +786 -9
  136. package/dist/es/standards-sdk.es153.js.map +1 -1
  137. package/dist/es/standards-sdk.es154.js +13 -567
  138. package/dist/es/standards-sdk.es154.js.map +1 -1
  139. package/dist/es/standards-sdk.es155.js +541 -600
  140. package/dist/es/standards-sdk.es155.js.map +1 -1
  141. package/dist/es/standards-sdk.es156.js +625 -12
  142. package/dist/es/standards-sdk.es156.js.map +1 -1
  143. package/dist/es/standards-sdk.es157.js +13 -2
  144. package/dist/es/standards-sdk.es157.js.map +1 -1
  145. package/dist/es/standards-sdk.es158.js +2 -87
  146. package/dist/es/standards-sdk.es158.js.map +1 -1
  147. package/dist/es/standards-sdk.es159.js +84 -37
  148. package/dist/es/standards-sdk.es159.js.map +1 -1
  149. package/dist/es/standards-sdk.es16.js +6 -6
  150. package/dist/es/standards-sdk.es160.js +40 -2
  151. package/dist/es/standards-sdk.es160.js.map +1 -1
  152. package/dist/es/standards-sdk.es161.js +2 -235
  153. package/dist/es/standards-sdk.es161.js.map +1 -1
  154. package/dist/es/standards-sdk.es162.js +204 -1109
  155. package/dist/es/standards-sdk.es162.js.map +1 -1
  156. package/dist/es/standards-sdk.es163.js +1059 -225
  157. package/dist/es/standards-sdk.es163.js.map +1 -1
  158. package/dist/es/standards-sdk.es164.js +303 -419
  159. package/dist/es/standards-sdk.es164.js.map +1 -1
  160. package/dist/es/standards-sdk.es165.js +418 -351
  161. package/dist/es/standards-sdk.es165.js.map +1 -1
  162. package/dist/es/standards-sdk.es166.js +347 -1114
  163. package/dist/es/standards-sdk.es166.js.map +1 -1
  164. package/dist/es/standards-sdk.es167.js +1094 -180
  165. package/dist/es/standards-sdk.es167.js.map +1 -1
  166. package/dist/es/standards-sdk.es168.js +153 -1512
  167. package/dist/es/standards-sdk.es168.js.map +1 -1
  168. package/dist/es/standards-sdk.es169.js +1457 -1056
  169. package/dist/es/standards-sdk.es169.js.map +1 -1
  170. package/dist/es/standards-sdk.es170.js +1163 -14
  171. package/dist/es/standards-sdk.es170.js.map +1 -1
  172. package/dist/es/standards-sdk.es171.js +15 -449
  173. package/dist/es/standards-sdk.es171.js.map +1 -1
  174. package/dist/es/standards-sdk.es172.js +440 -248
  175. package/dist/es/standards-sdk.es172.js.map +1 -1
  176. package/dist/es/standards-sdk.es173.js +259 -4
  177. package/dist/es/standards-sdk.es173.js.map +1 -1
  178. package/dist/es/standards-sdk.es174.js +4 -81
  179. package/dist/es/standards-sdk.es174.js.map +1 -1
  180. package/dist/es/standards-sdk.es175.js +71 -77
  181. package/dist/es/standards-sdk.es175.js.map +1 -1
  182. package/dist/es/standards-sdk.es176.js +80 -53
  183. package/dist/es/standards-sdk.es176.js.map +1 -1
  184. package/dist/es/standards-sdk.es177.js +59 -2546
  185. package/dist/es/standards-sdk.es177.js.map +1 -1
  186. package/dist/es/standards-sdk.es178.js +2547 -159
  187. package/dist/es/standards-sdk.es178.js.map +1 -1
  188. package/dist/es/standards-sdk.es179.js +159 -7
  189. package/dist/es/standards-sdk.es179.js.map +1 -1
  190. package/dist/es/standards-sdk.es18.js +13 -13
  191. package/dist/es/standards-sdk.es180.js +7 -86
  192. package/dist/es/standards-sdk.es180.js.map +1 -1
  193. package/dist/es/standards-sdk.es181.js +65 -44
  194. package/dist/es/standards-sdk.es181.js.map +1 -1
  195. package/dist/es/standards-sdk.es182.js +57 -188
  196. package/dist/es/standards-sdk.es182.js.map +1 -1
  197. package/dist/es/standards-sdk.es183.js +27 -26
  198. package/dist/es/standards-sdk.es183.js.map +1 -1
  199. package/dist/es/standards-sdk.es184.js +191 -53
  200. package/dist/es/standards-sdk.es184.js.map +1 -1
  201. package/dist/es/standards-sdk.es185.js +21 -109
  202. package/dist/es/standards-sdk.es185.js.map +1 -1
  203. package/dist/es/standards-sdk.es186.js +49 -47
  204. package/dist/es/standards-sdk.es186.js.map +1 -1
  205. package/dist/es/standards-sdk.es187.js +89 -205
  206. package/dist/es/standards-sdk.es187.js.map +1 -1
  207. package/dist/es/standards-sdk.es188.js +35 -58
  208. package/dist/es/standards-sdk.es188.js.map +1 -1
  209. package/dist/es/standards-sdk.es189.js +48 -39
  210. package/dist/es/standards-sdk.es189.js.map +1 -1
  211. package/dist/es/standards-sdk.es19.js +10 -10
  212. package/dist/es/standards-sdk.es190.js +218 -48
  213. package/dist/es/standards-sdk.es190.js.map +1 -1
  214. package/dist/es/standards-sdk.es191.js +66 -42
  215. package/dist/es/standards-sdk.es191.js.map +1 -1
  216. package/dist/es/standards-sdk.es192.js +33 -105
  217. package/dist/es/standards-sdk.es192.js.map +1 -1
  218. package/dist/es/standards-sdk.es193.js +49 -43
  219. package/dist/es/standards-sdk.es193.js.map +1 -1
  220. package/dist/es/standards-sdk.es194.js +33 -42
  221. package/dist/es/standards-sdk.es194.js.map +1 -1
  222. package/dist/es/standards-sdk.es195.js +123 -72
  223. package/dist/es/standards-sdk.es195.js.map +1 -1
  224. package/dist/es/standards-sdk.es196.js +58 -75
  225. package/dist/es/standards-sdk.es196.js.map +1 -1
  226. package/dist/es/standards-sdk.es197.js +60 -44
  227. package/dist/es/standards-sdk.es197.js.map +1 -1
  228. package/dist/es/standards-sdk.es198.js +72 -36
  229. package/dist/es/standards-sdk.es198.js.map +1 -1
  230. package/dist/es/standards-sdk.es199.js +75 -30
  231. package/dist/es/standards-sdk.es199.js.map +1 -1
  232. package/dist/es/standards-sdk.es2.js +2 -2
  233. package/dist/es/standards-sdk.es20.js +1 -1
  234. package/dist/es/standards-sdk.es200.js +44 -34
  235. package/dist/es/standards-sdk.es200.js.map +1 -1
  236. package/dist/es/standards-sdk.es201.js +36 -48
  237. package/dist/es/standards-sdk.es201.js.map +1 -1
  238. package/dist/es/standards-sdk.es202.js +30 -138
  239. package/dist/es/standards-sdk.es202.js.map +1 -1
  240. package/dist/es/standards-sdk.es203.js +34 -42
  241. package/dist/es/standards-sdk.es203.js.map +1 -1
  242. package/dist/es/standards-sdk.es204.js +48 -12482
  243. package/dist/es/standards-sdk.es204.js.map +1 -1
  244. package/dist/es/standards-sdk.es205.js +134 -13
  245. package/dist/es/standards-sdk.es205.js.map +1 -1
  246. package/dist/es/standards-sdk.es206.js +36 -50
  247. package/dist/es/standards-sdk.es206.js.map +1 -1
  248. package/dist/es/standards-sdk.es207.js +12449 -78
  249. package/dist/es/standards-sdk.es207.js.map +1 -1
  250. package/dist/es/standards-sdk.es208.js +15 -79
  251. package/dist/es/standards-sdk.es208.js.map +1 -1
  252. package/dist/es/standards-sdk.es209.js +48 -192
  253. package/dist/es/standards-sdk.es209.js.map +1 -1
  254. package/dist/es/standards-sdk.es21.js +1 -1
  255. package/dist/es/standards-sdk.es210.js +90 -651
  256. package/dist/es/standards-sdk.es210.js.map +1 -1
  257. package/dist/es/standards-sdk.es211.js +71 -63
  258. package/dist/es/standards-sdk.es211.js.map +1 -1
  259. package/dist/es/standards-sdk.es212.js +188 -160
  260. package/dist/es/standards-sdk.es212.js.map +1 -1
  261. package/dist/es/standards-sdk.es213.js +65 -314
  262. package/dist/es/standards-sdk.es213.js.map +1 -1
  263. package/dist/es/standards-sdk.es214.js +661 -335
  264. package/dist/es/standards-sdk.es214.js.map +1 -1
  265. package/dist/es/standards-sdk.es215.js +129 -410
  266. package/dist/es/standards-sdk.es215.js.map +1 -1
  267. package/dist/es/standards-sdk.es216.js +200 -209
  268. package/dist/es/standards-sdk.es216.js.map +1 -1
  269. package/dist/es/standards-sdk.es217.js +334 -64
  270. package/dist/es/standards-sdk.es217.js.map +1 -1
  271. package/dist/es/standards-sdk.es218.js +438 -124
  272. package/dist/es/standards-sdk.es218.js.map +1 -1
  273. package/dist/es/standards-sdk.es219.js +310 -496
  274. package/dist/es/standards-sdk.es219.js.map +1 -1
  275. package/dist/es/standards-sdk.es22.js +1 -1
  276. package/dist/es/standards-sdk.es220.js +60 -243
  277. package/dist/es/standards-sdk.es220.js.map +1 -1
  278. package/dist/es/standards-sdk.es221.js +118 -175
  279. package/dist/es/standards-sdk.es221.js.map +1 -1
  280. package/dist/es/standards-sdk.es222.js +465 -67
  281. package/dist/es/standards-sdk.es222.js.map +1 -1
  282. package/dist/es/standards-sdk.es223.js +250 -143
  283. package/dist/es/standards-sdk.es223.js.map +1 -1
  284. package/dist/es/standards-sdk.es224.js +172 -160
  285. package/dist/es/standards-sdk.es224.js.map +1 -1
  286. package/dist/es/standards-sdk.es225.js +65 -630
  287. package/dist/es/standards-sdk.es225.js.map +1 -1
  288. package/dist/es/standards-sdk.es226.js +128 -161
  289. package/dist/es/standards-sdk.es226.js.map +1 -1
  290. package/dist/es/standards-sdk.es227.js +144 -195
  291. package/dist/es/standards-sdk.es227.js.map +1 -1
  292. package/dist/es/standards-sdk.es228.js +668 -223
  293. package/dist/es/standards-sdk.es228.js.map +1 -1
  294. package/dist/es/standards-sdk.es229.js +188 -0
  295. package/dist/es/standards-sdk.es229.js.map +1 -0
  296. package/dist/es/standards-sdk.es23.js +1 -1
  297. package/dist/es/standards-sdk.es230.js +238 -0
  298. package/dist/es/standards-sdk.es230.js.map +1 -0
  299. package/dist/es/standards-sdk.es231.js +242 -0
  300. package/dist/es/standards-sdk.es231.js.map +1 -0
  301. package/dist/es/standards-sdk.es24.js +1 -1
  302. package/dist/es/standards-sdk.es25.js +1 -1
  303. package/dist/es/standards-sdk.es26.js +1 -1
  304. package/dist/es/standards-sdk.es27.js +13 -13
  305. package/dist/es/standards-sdk.es30.js +2 -2
  306. package/dist/es/standards-sdk.es31.js +4 -4
  307. package/dist/es/standards-sdk.es32.js +1 -1
  308. package/dist/es/standards-sdk.es35.js +7 -7
  309. package/dist/es/standards-sdk.es36.js +4 -4
  310. package/dist/es/standards-sdk.es37.js +2 -2
  311. package/dist/es/standards-sdk.es38.js +2 -2
  312. package/dist/es/standards-sdk.es39.js +1 -1
  313. package/dist/es/standards-sdk.es4.js +2 -2
  314. package/dist/es/standards-sdk.es40.js +1 -1
  315. package/dist/es/standards-sdk.es41.js +2 -2
  316. package/dist/es/standards-sdk.es46.js +1 -1
  317. package/dist/es/standards-sdk.es5.js +2 -2
  318. package/dist/es/standards-sdk.es51.js +1 -1
  319. package/dist/es/standards-sdk.es53.js +1 -1
  320. package/dist/es/standards-sdk.es56.js +2 -2
  321. package/dist/es/standards-sdk.es59.js +1 -1
  322. package/dist/es/standards-sdk.es6.js +2 -2
  323. package/dist/es/standards-sdk.es60.js +1 -1
  324. package/dist/es/standards-sdk.es62.js +1 -1
  325. package/dist/es/standards-sdk.es63.js +2 -2
  326. package/dist/es/standards-sdk.es64.js +1 -1
  327. package/dist/es/standards-sdk.es65.js +1 -1
  328. package/dist/es/standards-sdk.es66.js +1 -1
  329. package/dist/es/standards-sdk.es67.js +8 -8
  330. package/dist/es/standards-sdk.es69.js +1 -1
  331. package/dist/es/standards-sdk.es7.js +1 -1
  332. package/dist/es/standards-sdk.es71.js +2 -2
  333. package/dist/es/standards-sdk.es72.js +3 -3
  334. package/dist/es/standards-sdk.es75.js +5 -5
  335. package/dist/es/standards-sdk.es76.js +3 -3
  336. package/dist/es/standards-sdk.es77.js +2 -2
  337. package/dist/es/standards-sdk.es78.js +1 -1
  338. package/dist/es/standards-sdk.es81.js +2 -2
  339. package/dist/es/standards-sdk.es83.js +2 -2
  340. package/dist/es/standards-sdk.es84.js +5 -5
  341. package/dist/es/standards-sdk.es85.js +1 -1
  342. package/dist/es/standards-sdk.es88.js +1 -1
  343. package/dist/es/standards-sdk.es89.js +2 -2
  344. package/dist/es/standards-sdk.es9.js +2 -2
  345. package/dist/es/standards-sdk.es90.js +4 -4
  346. package/dist/es/standards-sdk.es94.js +3 -3
  347. package/dist/es/standards-sdk.es96.js +2 -2
  348. package/dist/es/standards-sdk.es98.js +1 -1
  349. package/dist/es/standards-sdk.es99.js +3 -3
  350. package/package.json +1 -1
@@ -1,242 +1,687 @@
1
- const DEFAULT_USER_AGENT = "@hol-org/rb-client";
2
- const DEFAULT_PROGRESS_INTERVAL_MS = 1500;
3
- const DEFAULT_PROGRESS_TIMEOUT_MS = 5 * 60 * 1e3;
4
- const DEFAULT_BASE_URL = "https://hol.org/registry/api/v1";
5
- const JSON_CONTENT_TYPE = /application\/json/i;
6
- const DEFAULT_HISTORY_TOP_UP_HBAR = 0.25;
7
- const MINIMUM_REGISTRATION_AUTO_TOP_UP_CREDITS = 1;
8
- const stripTrailingSlashes = (value) => {
9
- let end = value.length;
10
- while (end > 0 && value.charCodeAt(end - 1) === 47) {
11
- end -= 1;
12
- }
13
- return end === value.length ? value : value.slice(0, end);
14
- };
15
- const createAbortError = () => typeof DOMException === "function" ? new DOMException("Aborted", "AbortError") : new Error("The operation was aborted");
16
- const normaliseHeaderName = (name) => name.trim().toLowerCase();
17
- const isBrowserRuntime = () => typeof window !== "undefined" && typeof window.fetch === "function";
18
- const toJsonValue = (value) => {
19
- if (value === null) {
20
- return null;
21
- }
22
- if (value instanceof Date) {
23
- return value.toISOString();
24
- }
25
- if (typeof value === "string" || typeof value === "number" || typeof value === "boolean") {
26
- return value;
27
- }
28
- if (Array.isArray(value)) {
29
- return value.map((item) => item === void 0 ? null : toJsonValue(item));
30
- }
31
- if (typeof value === "object") {
32
- const result = {};
33
- Object.entries(value).forEach(
34
- ([key, entryValue]) => {
35
- if (entryValue !== void 0) {
36
- result[key] = toJsonValue(entryValue);
37
- }
38
- }
39
- );
40
- return result;
41
- }
42
- throw new TypeError("Only JSON-compatible values are supported");
43
- };
44
- const isJsonObject = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
45
- const toJsonObject = (value) => {
46
- const normalised = toJsonValue(value);
47
- if (isJsonObject(normalised)) {
48
- return normalised;
49
- }
50
- throw new TypeError("Expected JSON object value");
51
- };
52
- const serialiseAuthConfig = (auth) => {
53
- const authPayload = {};
54
- if (auth.type) {
55
- authPayload.type = auth.type;
56
- }
57
- if (auth.token) {
58
- authPayload.token = auth.token;
1
+ import { guardSessionResponseSchema, guardBalanceResponseSchema, guardFeedResponseSchema, guardOverviewResponseSchema, guardTrustByHashResponseSchema, guardTrustResolveResponseSchema, guardRevocationResponseSchema, guardPolicySchema, guardInventoryResponseSchema, guardReceiptHistoryResponseSchema, guardArtifactTimelineResponseSchema, guardInventoryDiffResponseSchema, guardAbomResponseSchema, guardReceiptExportResponseSchema, guardDeviceListResponseSchema, guardAlertPreferencesSchema, guardExceptionListResponseSchema, guardWatchlistResponseSchema, guardWatchlistLookupResponseSchema, guardPainSignalListResponseSchema, guardPainSignalAggregateResponseSchema, guardReceiptSyncResponseSchema, guardTeamPolicyPackSchema, guardPreflightVerdictResponseSchema } from "./standards-sdk.es178.js";
2
+ import { RegistryBrokerError } from "./standards-sdk.es171.js";
3
+ function isStatusError(error) {
4
+ if (error instanceof RegistryBrokerError) {
5
+ return true;
59
6
  }
60
- if (auth.username) {
61
- authPayload.username = auth.username;
7
+ if (typeof error !== "object" || error === null || !("status" in error)) {
8
+ return false;
62
9
  }
63
- if (auth.password) {
64
- authPayload.password = auth.password;
65
- }
66
- if (auth.headerName) {
67
- authPayload.headerName = auth.headerName;
68
- }
69
- if (auth.headerValue) {
70
- authPayload.headerValue = auth.headerValue;
71
- }
72
- if (auth.headers) {
73
- authPayload.headers = { ...auth.headers };
74
- }
75
- return authPayload;
76
- };
77
- const serialiseAgentRegistrationRequest = (payload) => {
78
- const body = {
79
- profile: toJsonObject(payload.profile)
10
+ return typeof Reflect.get(error, "status") === "number";
11
+ }
12
+ function toPortalCanonicalGuardPath(path) {
13
+ const segments = path.split("/");
14
+ const findPatternStart = (size, matcher) => {
15
+ for (let startIndex = segments.length - size; startIndex >= 0; startIndex -= 1) {
16
+ if (matcher(startIndex)) {
17
+ return startIndex;
18
+ }
19
+ }
20
+ return -1;
80
21
  };
81
- if (payload.endpoint !== void 0) {
82
- body.endpoint = payload.endpoint;
83
- }
84
- if (payload.protocol !== void 0) {
85
- body.protocol = payload.protocol;
86
- }
87
- if (payload.communicationProtocol !== void 0) {
88
- body.communicationProtocol = payload.communicationProtocol;
89
- }
90
- if (payload.registry !== void 0) {
91
- body.registry = payload.registry;
92
- }
93
- if (payload.additionalRegistries !== void 0) {
94
- body.additionalRegistries = payload.additionalRegistries;
95
- }
96
- if (payload.metadata !== void 0) {
97
- body.metadata = toJsonObject(payload.metadata);
98
- }
99
- return body;
100
- };
101
- const normalizeHexPrivateKey = (value) => {
102
- const trimmed = value.trim();
103
- if (!trimmed) {
104
- throw new Error("evmPrivateKey is required");
22
+ const replaceAt = (startIndex, consumed) => [
23
+ ...segments.slice(0, startIndex),
24
+ "api",
25
+ "guard",
26
+ ...segments.slice(startIndex + consumed)
27
+ ].join("/");
28
+ const registryStart = findPatternStart(
29
+ 4,
30
+ (startIndex) => segments[startIndex] === "registry" && segments[startIndex + 1] === "api" && /^v\d+$/.test(segments[startIndex + 2] ?? "") && segments[startIndex + 3] === "guard"
31
+ );
32
+ if (registryStart >= 0) {
33
+ return replaceAt(registryStart, 4);
34
+ }
35
+ const apiVersionStart = findPatternStart(
36
+ 3,
37
+ (startIndex) => segments[startIndex] === "api" && /^v\d+$/.test(segments[startIndex + 1] ?? "") && segments[startIndex + 2] === "guard"
38
+ );
39
+ if (apiVersionStart >= 0) {
40
+ return replaceAt(apiVersionStart, 3);
41
+ }
42
+ for (let index = segments.length - 1; index >= 0; index -= 1) {
43
+ if (segments[index] === "guard" && segments[index - 1] !== "api") {
44
+ return [
45
+ ...segments.slice(0, index),
46
+ "api",
47
+ "guard",
48
+ ...segments.slice(index + 1)
49
+ ].join("/");
50
+ }
105
51
  }
106
- return trimmed.startsWith("0x") ? trimmed : `0x${trimmed}`;
107
- };
108
- function normaliseBaseUrl(input) {
109
- const trimmed = input?.trim();
110
- let baseCandidate = trimmed && trimmed.length > 0 ? trimmed : DEFAULT_BASE_URL;
111
- try {
112
- const url = new URL(stripTrailingSlashes(baseCandidate));
113
- const hostname = url.hostname.toLowerCase();
114
- const ensureRegistryPrefix = () => {
115
- if (!url.pathname.startsWith("/registry")) {
116
- url.pathname = url.pathname === "/" ? "/registry" : `/registry${url.pathname}`;
117
- }
118
- };
119
- if (hostname === "hol.org") {
120
- ensureRegistryPrefix();
121
- baseCandidate = url.toString();
122
- } else if (hostname === "registry.hashgraphonline.com" || hostname === "hashgraphonline.com") {
123
- ensureRegistryPrefix();
124
- url.hostname = "hol.org";
125
- baseCandidate = url.toString();
52
+ return path;
53
+ }
54
+ function buildPortalCanonicalGuardUrl(baseUrl, path) {
55
+ const target = new URL(path, "https://guard.local");
56
+ const normalizedBasePath = (() => {
57
+ try {
58
+ const base = new URL(baseUrl);
59
+ return base.pathname.replace(/\/+$/, "");
60
+ } catch {
61
+ return baseUrl.replace(/\/+$/, "");
126
62
  }
63
+ })();
64
+ const requestedPath = `${normalizedBasePath}${target.pathname}`;
65
+ const canonicalPath = toPortalCanonicalGuardPath(requestedPath);
66
+ const canonicalRelativePath = `${canonicalPath}${target.search}`;
67
+ try {
68
+ const base = new URL(baseUrl);
69
+ return `${base.origin}${canonicalRelativePath}`;
127
70
  } catch {
71
+ return canonicalRelativePath;
128
72
  }
129
- const withoutTrailing = stripTrailingSlashes(baseCandidate);
130
- if (/\/api\/v\d+$/i.test(withoutTrailing)) {
131
- return withoutTrailing;
132
- }
133
- if (/\/api$/i.test(withoutTrailing)) {
134
- return `${withoutTrailing}/v1`;
73
+ }
74
+ async function requestPortalFirstJson(client, path, init) {
75
+ try {
76
+ return await client.requestJson(path, init);
77
+ } catch (error) {
78
+ if (isStatusError(error) && (error.status === 404 || error.status === 501)) {
79
+ return client.requestAbsoluteJson(
80
+ buildPortalCanonicalGuardUrl(client.baseUrl, path),
81
+ init
82
+ );
83
+ }
84
+ throw error;
135
85
  }
136
- return `${withoutTrailing}/api/v1`;
137
86
  }
138
- function buildSearchQuery(params) {
139
- const query = new URLSearchParams();
140
- const appendList = (key, values) => {
141
- if (!values) {
142
- return;
87
+ async function getGuardSession(client) {
88
+ const raw = await requestPortalFirstJson(
89
+ client,
90
+ "/guard/auth/session",
91
+ {
92
+ method: "GET"
143
93
  }
144
- values.forEach((value) => {
145
- if (typeof value === "string") {
146
- const trimmed = value.trim();
147
- if (trimmed.length > 0) {
148
- query.append(key, trimmed);
149
- }
150
- }
151
- });
152
- };
153
- if (params.q) {
154
- const trimmed = params.q.trim();
155
- if (trimmed.length > 0) {
156
- query.set("q", trimmed);
94
+ );
95
+ return client.parseWithSchema(
96
+ raw,
97
+ guardSessionResponseSchema,
98
+ "guard session response"
99
+ );
100
+ }
101
+ async function getGuardEntitlements(client) {
102
+ const raw = await requestPortalFirstJson(
103
+ client,
104
+ "/guard/entitlements",
105
+ {
106
+ method: "GET"
157
107
  }
158
- }
159
- if (typeof params.page === "number") {
160
- query.set("page", params.page.toString());
161
- }
162
- if (typeof params.limit === "number") {
163
- query.set("limit", params.limit.toString());
164
- }
165
- if (params.registry) {
166
- const trimmed = params.registry.trim();
167
- if (trimmed.length > 0) {
168
- query.set("registry", trimmed);
108
+ );
109
+ return client.parseWithSchema(
110
+ raw,
111
+ guardSessionResponseSchema,
112
+ "guard entitlements response"
113
+ );
114
+ }
115
+ async function getGuardBillingBalance(client) {
116
+ const raw = await requestPortalFirstJson(
117
+ client,
118
+ "/guard/billing/balance",
119
+ {
120
+ method: "GET"
169
121
  }
170
- }
171
- appendList("registries", params.registries);
172
- if (typeof params.minTrust === "number") {
173
- query.set("minTrust", params.minTrust.toString());
174
- }
175
- appendList("capabilities", params.capabilities);
176
- appendList("protocols", params.protocols);
177
- appendList("adapters", params.adapters);
178
- if (params.metadata) {
179
- Object.entries(params.metadata).forEach(([key, values]) => {
180
- if (!key || !Array.isArray(values) || values.length === 0) {
181
- return;
182
- }
183
- const trimmedKey = key.trim();
184
- if (trimmedKey.length === 0) {
185
- return;
186
- }
187
- values.forEach((value) => {
188
- if (value === void 0 || value === null) {
189
- return;
190
- }
191
- query.append(`metadata.${trimmedKey}`, String(value));
192
- });
193
- });
194
- }
195
- if (params.type) {
196
- const trimmedType = params.type.trim();
197
- if (trimmedType.length > 0 && trimmedType.toLowerCase() !== "all") {
198
- query.set("type", trimmedType);
122
+ );
123
+ return client.parseWithSchema(
124
+ raw,
125
+ guardBalanceResponseSchema,
126
+ "guard billing balance response"
127
+ );
128
+ }
129
+ async function getGuardFeed(client, limit) {
130
+ const params = new URLSearchParams();
131
+ if (typeof limit === "number" && Number.isFinite(limit) && Math.trunc(limit) > 0) {
132
+ params.set("limit", String(Math.trunc(limit)));
133
+ }
134
+ const query = params.toString();
135
+ const suffix = query ? `?${query}` : "";
136
+ const raw = await requestPortalFirstJson(
137
+ client,
138
+ `/guard/feed${suffix}`,
139
+ {
140
+ method: "GET"
199
141
  }
200
- }
201
- if (params.verified === true) {
202
- query.set("verified", "true");
203
- }
204
- if (params.online === true) {
205
- query.set("online", "true");
206
- }
207
- if (params.sortBy) {
208
- const trimmedSort = params.sortBy.trim();
209
- if (trimmedSort.length > 0) {
210
- query.set("sortBy", trimmedSort);
142
+ );
143
+ return client.parseWithSchema(
144
+ raw,
145
+ guardFeedResponseSchema,
146
+ "guard feed response"
147
+ );
148
+ }
149
+ async function getGuardOverview(client) {
150
+ const raw = await requestPortalFirstJson(
151
+ client,
152
+ "/guard/overview",
153
+ {
154
+ method: "GET"
211
155
  }
212
- }
213
- if (params.sortOrder) {
214
- const lowered = params.sortOrder.toLowerCase();
215
- if (lowered === "asc" || lowered === "desc") {
216
- query.set("sortOrder", lowered);
156
+ );
157
+ return client.parseWithSchema(
158
+ raw,
159
+ guardOverviewResponseSchema,
160
+ "guard overview response"
161
+ );
162
+ }
163
+ async function getGuardTrustByHash(client, sha256) {
164
+ const normalizedHash = sha256.trim();
165
+ if (!normalizedHash) {
166
+ throw new Error("sha256 is required");
167
+ }
168
+ const raw = await requestPortalFirstJson(
169
+ client,
170
+ `/guard/trust/by-hash/${encodeURIComponent(normalizedHash)}`,
171
+ { method: "GET" }
172
+ );
173
+ return client.parseWithSchema(
174
+ raw,
175
+ guardTrustByHashResponseSchema,
176
+ "guard trust by hash response"
177
+ );
178
+ }
179
+ async function resolveGuardTrust(client, query) {
180
+ const params = new URLSearchParams();
181
+ if (query.ecosystem?.trim()) {
182
+ params.set("ecosystem", query.ecosystem.trim());
183
+ }
184
+ if (query.name?.trim()) {
185
+ params.set("name", query.name.trim());
186
+ }
187
+ if (query.version?.trim()) {
188
+ params.set("version", query.version.trim());
189
+ }
190
+ const suffix = params.size > 0 ? `?${params.toString()}` : "";
191
+ const raw = await requestPortalFirstJson(
192
+ client,
193
+ `/guard/trust/resolve${suffix}`,
194
+ { method: "GET" }
195
+ );
196
+ return client.parseWithSchema(
197
+ raw,
198
+ guardTrustResolveResponseSchema,
199
+ "guard trust resolve response"
200
+ );
201
+ }
202
+ async function getGuardRevocations(client) {
203
+ const raw = await requestPortalFirstJson(
204
+ client,
205
+ "/guard/revocations",
206
+ {
207
+ method: "GET"
217
208
  }
218
- }
219
- const queryString = query.toString();
220
- return queryString.length > 0 ? `?${queryString}` : "";
209
+ );
210
+ return client.parseWithSchema(
211
+ raw,
212
+ guardRevocationResponseSchema,
213
+ "guard revocations response"
214
+ );
215
+ }
216
+ async function fetchGuardAdvisories(client) {
217
+ const raw = await requestPortalFirstJson(
218
+ client,
219
+ "/guard/advisories",
220
+ {
221
+ method: "GET"
222
+ }
223
+ );
224
+ return client.parseWithSchema(
225
+ raw,
226
+ guardRevocationResponseSchema,
227
+ "guard advisories response"
228
+ );
229
+ }
230
+ async function fetchGuardPolicy(client) {
231
+ const raw = await requestPortalFirstJson(
232
+ client,
233
+ "/guard/policy/fetch",
234
+ {
235
+ method: "GET"
236
+ }
237
+ );
238
+ return client.parseWithSchema(
239
+ raw,
240
+ guardPolicySchema,
241
+ "guard policy response"
242
+ );
243
+ }
244
+ async function getGuardInventory(client) {
245
+ const raw = await requestPortalFirstJson(
246
+ client,
247
+ "/guard/inventory",
248
+ {
249
+ method: "GET"
250
+ }
251
+ );
252
+ return client.parseWithSchema(
253
+ raw,
254
+ guardInventoryResponseSchema,
255
+ "guard inventory response"
256
+ );
257
+ }
258
+ async function getGuardReceiptHistory(client) {
259
+ const raw = await requestPortalFirstJson(
260
+ client,
261
+ "/guard/history",
262
+ {
263
+ method: "GET"
264
+ }
265
+ );
266
+ return client.parseWithSchema(
267
+ raw,
268
+ guardReceiptHistoryResponseSchema,
269
+ "guard receipt history response"
270
+ );
271
+ }
272
+ async function getGuardArtifactTimeline(client, artifactId) {
273
+ const normalizedArtifactId = artifactId.trim();
274
+ if (!normalizedArtifactId) {
275
+ throw new Error("artifactId is required");
276
+ }
277
+ const raw = await requestPortalFirstJson(
278
+ client,
279
+ `/guard/history/${encodeURIComponent(normalizedArtifactId)}`,
280
+ { method: "GET" }
281
+ );
282
+ return client.parseWithSchema(
283
+ raw,
284
+ guardArtifactTimelineResponseSchema,
285
+ "guard artifact timeline response"
286
+ );
287
+ }
288
+ async function exportGuardAbom(client) {
289
+ const raw = await requestPortalFirstJson(client, "/guard/abom", {
290
+ method: "GET"
291
+ });
292
+ return client.parseWithSchema(
293
+ raw,
294
+ guardAbomResponseSchema,
295
+ "guard abom response"
296
+ );
297
+ }
298
+ async function exportGuardArtifactAbom(client, artifactId) {
299
+ const normalizedArtifactId = artifactId.trim();
300
+ if (!normalizedArtifactId) {
301
+ throw new Error("artifactId is required");
302
+ }
303
+ const raw = await requestPortalFirstJson(
304
+ client,
305
+ `/guard/abom/${encodeURIComponent(normalizedArtifactId)}`,
306
+ { method: "GET" }
307
+ );
308
+ return client.parseWithSchema(
309
+ raw,
310
+ guardAbomResponseSchema,
311
+ "guard artifact abom response"
312
+ );
313
+ }
314
+ async function exportGuardReceipts(client) {
315
+ const raw = await requestPortalFirstJson(
316
+ client,
317
+ "/guard/receipts/export",
318
+ {
319
+ method: "GET"
320
+ }
321
+ );
322
+ return client.parseWithSchema(
323
+ raw,
324
+ guardReceiptExportResponseSchema,
325
+ "guard receipt export response"
326
+ );
327
+ }
328
+ async function getGuardInventoryDiff(client) {
329
+ const raw = await requestPortalFirstJson(
330
+ client,
331
+ "/guard/inventory/diff",
332
+ {
333
+ method: "GET"
334
+ }
335
+ );
336
+ return client.parseWithSchema(
337
+ raw,
338
+ guardInventoryDiffResponseSchema,
339
+ "guard inventory diff response"
340
+ );
341
+ }
342
+ async function getGuardDevices(client) {
343
+ const raw = await requestPortalFirstJson(
344
+ client,
345
+ "/guard/devices",
346
+ {
347
+ method: "GET"
348
+ }
349
+ );
350
+ return client.parseWithSchema(
351
+ raw,
352
+ guardDeviceListResponseSchema,
353
+ "guard devices response"
354
+ );
355
+ }
356
+ async function getGuardAlertPreferences(client) {
357
+ const raw = await requestPortalFirstJson(
358
+ client,
359
+ "/guard/alerts/preferences",
360
+ {
361
+ method: "GET"
362
+ }
363
+ );
364
+ return client.parseWithSchema(
365
+ raw,
366
+ guardAlertPreferencesSchema,
367
+ "guard alert preferences response"
368
+ );
369
+ }
370
+ async function updateGuardAlertPreferences(client, payload) {
371
+ const raw = await requestPortalFirstJson(
372
+ client,
373
+ "/guard/alerts/preferences",
374
+ {
375
+ method: "PUT",
376
+ body: payload
377
+ }
378
+ );
379
+ return client.parseWithSchema(
380
+ raw,
381
+ guardAlertPreferencesSchema,
382
+ "guard alert preferences response"
383
+ );
384
+ }
385
+ async function getGuardExceptions(client) {
386
+ const raw = await requestPortalFirstJson(
387
+ client,
388
+ "/guard/exceptions",
389
+ {
390
+ method: "GET"
391
+ }
392
+ );
393
+ return client.parseWithSchema(
394
+ raw,
395
+ guardExceptionListResponseSchema,
396
+ "guard exceptions response"
397
+ );
398
+ }
399
+ async function getGuardWatchlist(client) {
400
+ const raw = await requestPortalFirstJson(
401
+ client,
402
+ "/guard/watchlist",
403
+ {
404
+ method: "GET"
405
+ }
406
+ );
407
+ return client.parseWithSchema(
408
+ raw,
409
+ guardWatchlistResponseSchema,
410
+ "guard watchlist response"
411
+ );
412
+ }
413
+ async function lookupGuardWatchlist(client, payload) {
414
+ const raw = await requestPortalFirstJson(
415
+ client,
416
+ "/guard/watchlist/lookup",
417
+ {
418
+ method: "POST",
419
+ body: payload
420
+ }
421
+ );
422
+ return client.parseWithSchema(
423
+ raw,
424
+ guardWatchlistLookupResponseSchema,
425
+ "guard watchlist lookup response"
426
+ );
427
+ }
428
+ async function getGuardPainSignals(client) {
429
+ const raw = await requestPortalFirstJson(
430
+ client,
431
+ "/guard/signals/pain",
432
+ {
433
+ method: "GET"
434
+ }
435
+ );
436
+ return client.parseWithSchema(
437
+ raw,
438
+ guardPainSignalListResponseSchema,
439
+ "guard pain signals response"
440
+ );
441
+ }
442
+ async function getGuardAggregatedPainSignals(client) {
443
+ const raw = await requestPortalFirstJson(
444
+ client,
445
+ "/guard/signals/pain/aggregate",
446
+ {
447
+ method: "GET"
448
+ }
449
+ );
450
+ return client.parseWithSchema(
451
+ raw,
452
+ guardPainSignalAggregateResponseSchema,
453
+ "guard aggregated pain signals response"
454
+ );
455
+ }
456
+ async function getGuardPreflightVerdict(client, path, payload) {
457
+ const raw = await requestPortalFirstJson(client, path, {
458
+ method: "POST",
459
+ body: payload
460
+ });
461
+ return client.parseWithSchema(
462
+ raw,
463
+ guardPreflightVerdictResponseSchema,
464
+ "guard preflight verdict response"
465
+ );
466
+ }
467
+ async function getGuardPreInstallVerdict(client, payload) {
468
+ return getGuardPreflightVerdict(
469
+ client,
470
+ "/guard/verdict/pre-install",
471
+ payload
472
+ );
473
+ }
474
+ async function getGuardPreExecutionVerdict(client, payload) {
475
+ return getGuardPreflightVerdict(
476
+ client,
477
+ "/guard/verdict/pre-execution",
478
+ payload
479
+ );
480
+ }
481
+ async function ingestGuardPainSignals(client, items) {
482
+ const raw = await requestPortalFirstJson(
483
+ client,
484
+ "/guard/signals/pain",
485
+ {
486
+ method: "POST",
487
+ body: { items }
488
+ }
489
+ );
490
+ return client.parseWithSchema(
491
+ raw,
492
+ guardPainSignalListResponseSchema,
493
+ "guard pain signals response"
494
+ );
495
+ }
496
+ async function submitGuardReceipts(client, payload) {
497
+ const raw = await requestPortalFirstJson(
498
+ client,
499
+ "/guard/receipts/submit",
500
+ {
501
+ method: "POST",
502
+ body: payload
503
+ }
504
+ );
505
+ return client.parseWithSchema(
506
+ raw,
507
+ guardReceiptSyncResponseSchema,
508
+ "guard receipt submit response"
509
+ );
510
+ }
511
+ async function addGuardWatchlistItem(client, payload) {
512
+ const raw = await requestPortalFirstJson(
513
+ client,
514
+ "/guard/watchlist",
515
+ {
516
+ method: "POST",
517
+ body: payload
518
+ }
519
+ );
520
+ return client.parseWithSchema(
521
+ raw,
522
+ guardWatchlistResponseSchema,
523
+ "guard watchlist response"
524
+ );
525
+ }
526
+ async function removeGuardWatchlistItem(client, artifactId) {
527
+ const normalizedArtifactId = artifactId.trim();
528
+ if (!normalizedArtifactId) {
529
+ throw new Error("artifactId is required");
530
+ }
531
+ const raw = await requestPortalFirstJson(
532
+ client,
533
+ `/guard/watchlist/${encodeURIComponent(normalizedArtifactId)}`,
534
+ { method: "DELETE" }
535
+ );
536
+ return client.parseWithSchema(
537
+ raw,
538
+ guardWatchlistResponseSchema,
539
+ "guard watchlist response"
540
+ );
541
+ }
542
+ async function addGuardException(client, payload) {
543
+ const raw = await requestPortalFirstJson(
544
+ client,
545
+ "/guard/exceptions",
546
+ {
547
+ method: "POST",
548
+ body: payload
549
+ }
550
+ );
551
+ return client.parseWithSchema(
552
+ raw,
553
+ guardExceptionListResponseSchema,
554
+ "guard exceptions response"
555
+ );
556
+ }
557
+ async function requestGuardException(client, payload) {
558
+ const raw = await requestPortalFirstJson(
559
+ client,
560
+ "/guard/exceptions/request",
561
+ {
562
+ method: "POST",
563
+ body: payload
564
+ }
565
+ );
566
+ return client.parseWithSchema(
567
+ raw,
568
+ guardExceptionListResponseSchema,
569
+ "guard exception request response"
570
+ );
571
+ }
572
+ async function syncGuardInventory(client, payload) {
573
+ const raw = await requestPortalFirstJson(
574
+ client,
575
+ "/guard/inventory/sync",
576
+ {
577
+ method: "POST",
578
+ body: payload
579
+ }
580
+ );
581
+ return client.parseWithSchema(
582
+ raw,
583
+ guardReceiptSyncResponseSchema,
584
+ "guard inventory sync response"
585
+ );
586
+ }
587
+ async function removeGuardException(client, exceptionId) {
588
+ const normalizedExceptionId = exceptionId.trim();
589
+ if (!normalizedExceptionId) {
590
+ throw new Error("exceptionId is required");
591
+ }
592
+ const raw = await requestPortalFirstJson(
593
+ client,
594
+ `/guard/exceptions/${encodeURIComponent(normalizedExceptionId)}`,
595
+ { method: "DELETE" }
596
+ );
597
+ return client.parseWithSchema(
598
+ raw,
599
+ guardExceptionListResponseSchema,
600
+ "guard exceptions response"
601
+ );
602
+ }
603
+ async function getGuardTeamPolicyPack(client) {
604
+ const raw = await requestPortalFirstJson(
605
+ client,
606
+ "/guard/team/policy-pack",
607
+ {
608
+ method: "GET"
609
+ }
610
+ );
611
+ return client.parseWithSchema(
612
+ raw,
613
+ guardTeamPolicyPackSchema,
614
+ "guard team policy pack response"
615
+ );
616
+ }
617
+ async function updateGuardTeamPolicyPack(client, payload) {
618
+ const raw = await requestPortalFirstJson(
619
+ client,
620
+ "/guard/team/policy-pack",
621
+ {
622
+ method: "PUT",
623
+ body: payload
624
+ }
625
+ );
626
+ return client.parseWithSchema(
627
+ raw,
628
+ guardTeamPolicyPackSchema,
629
+ "guard team policy pack response"
630
+ );
631
+ }
632
+ async function syncGuardReceipts(client, payload) {
633
+ const raw = await requestPortalFirstJson(
634
+ client,
635
+ "/guard/receipts/sync",
636
+ {
637
+ method: "POST",
638
+ body: payload
639
+ }
640
+ );
641
+ return client.parseWithSchema(
642
+ raw,
643
+ guardReceiptSyncResponseSchema,
644
+ "guard receipt sync response"
645
+ );
221
646
  }
222
647
  export {
223
- DEFAULT_BASE_URL,
224
- DEFAULT_HISTORY_TOP_UP_HBAR,
225
- DEFAULT_PROGRESS_INTERVAL_MS,
226
- DEFAULT_PROGRESS_TIMEOUT_MS,
227
- DEFAULT_USER_AGENT,
228
- JSON_CONTENT_TYPE,
229
- MINIMUM_REGISTRATION_AUTO_TOP_UP_CREDITS,
230
- buildSearchQuery,
231
- createAbortError,
232
- isBrowserRuntime,
233
- isJsonObject,
234
- normaliseBaseUrl,
235
- normaliseHeaderName,
236
- normalizeHexPrivateKey,
237
- serialiseAgentRegistrationRequest,
238
- serialiseAuthConfig,
239
- toJsonObject,
240
- toJsonValue
648
+ addGuardException,
649
+ addGuardWatchlistItem,
650
+ exportGuardAbom,
651
+ exportGuardArtifactAbom,
652
+ exportGuardReceipts,
653
+ fetchGuardAdvisories,
654
+ fetchGuardPolicy,
655
+ getGuardAggregatedPainSignals,
656
+ getGuardAlertPreferences,
657
+ getGuardArtifactTimeline,
658
+ getGuardBillingBalance,
659
+ getGuardDevices,
660
+ getGuardEntitlements,
661
+ getGuardExceptions,
662
+ getGuardFeed,
663
+ getGuardInventory,
664
+ getGuardInventoryDiff,
665
+ getGuardOverview,
666
+ getGuardPainSignals,
667
+ getGuardPreExecutionVerdict,
668
+ getGuardPreInstallVerdict,
669
+ getGuardReceiptHistory,
670
+ getGuardRevocations,
671
+ getGuardSession,
672
+ getGuardTeamPolicyPack,
673
+ getGuardTrustByHash,
674
+ getGuardWatchlist,
675
+ ingestGuardPainSignals,
676
+ lookupGuardWatchlist,
677
+ removeGuardException,
678
+ removeGuardWatchlistItem,
679
+ requestGuardException,
680
+ resolveGuardTrust,
681
+ submitGuardReceipts,
682
+ syncGuardInventory,
683
+ syncGuardReceipts,
684
+ updateGuardAlertPreferences,
685
+ updateGuardTeamPolicyPack
241
686
  };
242
687
  //# sourceMappingURL=standards-sdk.es228.js.map