@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,262 +1,454 @@
1
- import { dashboardStatsResponseSchema, registrationProgressResponseSchema, registrationQuoteResponseSchema, uaidConnectionStatusSchema, resolveResponseSchema, registerAgentResponseSchema, uaidValidationResponseSchema } from "./standards-sdk.es177.js";
2
- import { purchaseCreditsWithHbar } from "./standards-sdk.es224.js";
3
- import { serialiseAgentRegistrationRequest, DEFAULT_PROGRESS_INTERVAL_MS, DEFAULT_PROGRESS_TIMEOUT_MS, createAbortError, MINIMUM_REGISTRATION_AUTO_TOP_UP_CREDITS } from "./standards-sdk.es228.js";
4
- import { RegistryBrokerError } from "./standards-sdk.es170.js";
5
- async function performRegisterAgent(client, payload) {
6
- const raw = await client.requestJson("/register", {
7
- method: "POST",
8
- body: serialiseAgentRegistrationRequest(payload),
9
- headers: { "content-type": "application/json" }
10
- });
11
- return client.parseWithSchema(
12
- raw,
13
- registerAgentResponseSchema,
14
- "register agent response"
1
+ import { z } from "zod";
2
+ import { RegistryBrokerParseError } from "./standards-sdk.es171.js";
3
+ const agentNetworkProviderSchema = z.enum([
4
+ "openclaw",
5
+ "grok",
6
+ "dot",
7
+ "muse",
8
+ "api",
9
+ "other"
10
+ ]);
11
+ const agentConnectionStateSchema = z.enum([
12
+ "unavailable",
13
+ "pending_pairing",
14
+ "interactive_verified",
15
+ "polling_verified",
16
+ "push_verified",
17
+ "needs_reconnect",
18
+ "paused",
19
+ "degraded"
20
+ ]);
21
+ const agentRegistrationStateSchema = z.enum([
22
+ "unregistered",
23
+ "quote_issued",
24
+ "pending",
25
+ "registered",
26
+ "failed"
27
+ ]);
28
+ const agentRegistrationResultStateSchema = z.enum([
29
+ "registered",
30
+ "pending",
31
+ "linked",
32
+ "unregistered"
33
+ ]);
34
+ const agentReceiveModeSchema = z.enum(["none", "poll", "push"]);
35
+ const agentRequestStateSchema = z.enum([
36
+ "accepted",
37
+ "awaiting_consent",
38
+ "queued",
39
+ "processing",
40
+ "completed",
41
+ "rejected",
42
+ "failed",
43
+ "expired",
44
+ "canceled"
45
+ ]);
46
+ const agentDeliveryStateSchema = z.enum([
47
+ "pending",
48
+ "notifying",
49
+ "provider_accepted",
50
+ "acknowledged",
51
+ "retry_scheduled",
52
+ "permanently_failed"
53
+ ]);
54
+ const agentMessageKindSchema = z.enum(["request", "response", "event"]);
55
+ const isoDate = z.string();
56
+ const agentRuntimeViewSchema = z.object({
57
+ runtimeId: z.string().uuid(),
58
+ uaid: z.string().nullable(),
59
+ ownerType: z.string(),
60
+ ownerId: z.string(),
61
+ declaredProvider: agentNetworkProviderSchema,
62
+ connectionState: agentConnectionStateSchema,
63
+ registrationState: agentRegistrationStateSchema,
64
+ registrationAttemptId: z.string().nullable(),
65
+ receiveMode: agentReceiveModeSchema,
66
+ gatewayUrl: z.string().nullable(),
67
+ paused: z.boolean(),
68
+ allowedPeerUaids: z.array(z.string()).nullable(),
69
+ capabilities: z.array(z.string()),
70
+ lastActivityAt: isoDate.nullable(),
71
+ createdAt: isoDate
72
+ });
73
+ const agentRuntimeQuoteSchema = z.object({
74
+ quoteId: z.string(),
75
+ expiresAt: isoDate,
76
+ registrationFeeCredits: z.number().nullable(),
77
+ gatewayUrl: z.string()
78
+ });
79
+ const agentPairingStartSchema = z.object({
80
+ grantId: z.string().uuid(),
81
+ pairingCode: z.string(),
82
+ expiresAt: isoDate
83
+ });
84
+ const agentPairingCompleteSchema = z.object({
85
+ grantId: z.string().uuid(),
86
+ runtimeId: z.string().uuid(),
87
+ token: z.string(),
88
+ scopes: z.array(z.string())
89
+ });
90
+ const agentMessageViewSchema = z.object({
91
+ messageId: z.string().uuid(),
92
+ conversationId: z.string().uuid(),
93
+ schemaVersion: z.literal("hol-agent-message/1"),
94
+ kind: agentMessageKindSchema,
95
+ senderUaid: z.string(),
96
+ recipientUaid: z.string(),
97
+ inReplyTo: z.string().uuid().nullable(),
98
+ content: z.object({ type: z.literal("text"), text: z.string() }),
99
+ requestState: agentRequestStateSchema,
100
+ createdAt: isoDate,
101
+ expiresAt: isoDate,
102
+ traceId: z.string()
103
+ });
104
+ const agentMessageAcceptedSchema = z.object({
105
+ messageId: z.string().uuid(),
106
+ conversationId: z.string().uuid(),
107
+ requestState: agentRequestStateSchema,
108
+ createdAt: isoDate,
109
+ expiresAt: isoDate,
110
+ deduplicated: z.boolean()
111
+ });
112
+ const agentLeaseViewSchema = z.object({
113
+ leaseId: z.string().uuid(),
114
+ messageId: z.string().uuid(),
115
+ fencingToken: z.number().int(),
116
+ expiresAt: isoDate
117
+ });
118
+ const agentClaimedMessageSchema = z.object({
119
+ message: agentMessageViewSchema,
120
+ lease: agentLeaseViewSchema
121
+ });
122
+ const agentInboxItemSchema = z.object({
123
+ messageId: z.string().uuid(),
124
+ conversationId: z.string().uuid(),
125
+ kind: agentMessageKindSchema,
126
+ senderUaid: z.string(),
127
+ content: z.object({ type: z.literal("text"), text: z.string() }),
128
+ requestState: agentRequestStateSchema,
129
+ deliveryState: agentDeliveryStateSchema,
130
+ acknowledged: z.boolean(),
131
+ leaseId: z.string().uuid().nullable(),
132
+ fencingToken: z.number().int().nullable(),
133
+ createdAt: isoDate,
134
+ expiresAt: isoDate
135
+ });
136
+ const agentInboxListSchema = z.object({
137
+ items: z.array(agentInboxItemSchema),
138
+ nextCursor: z.string().nullable()
139
+ });
140
+ const agentConversationViewSchema = z.object({
141
+ conversationId: z.string().uuid(),
142
+ state: z.enum(["active", "canceled", "expired"]),
143
+ participants: z.array(z.object({ uaid: z.string() })),
144
+ messages: z.array(agentMessageViewSchema),
145
+ nextCursor: z.string().nullable()
146
+ });
147
+ const agentReplyResultSchema = z.object({
148
+ request: agentMessageViewSchema,
149
+ response: agentMessageViewSchema
150
+ });
151
+ const agentRuntimeRegistrationResultSchema = z.object({
152
+ runtime: agentRuntimeViewSchema,
153
+ registration: agentRegistrationResultStateSchema
154
+ });
155
+ const agentProbeResultSchema = z.object({
156
+ nonce: z.string(),
157
+ issuedAt: isoDate
158
+ });
159
+ const agentSubscriptionEventTypeSchema = z.enum([
160
+ "notify_request",
161
+ "notify_event",
162
+ "notify_response"
163
+ ]);
164
+ const agentSubscriptionViewSchema = z.object({
165
+ subscriptionId: z.string().uuid(),
166
+ runtimeId: z.string().uuid(),
167
+ eventType: agentSubscriptionEventTypeSchema,
168
+ callbackUrl: z.string().nullable(),
169
+ state: z.string(),
170
+ expiresAt: isoDate.nullable(),
171
+ createdAt: isoDate
172
+ });
173
+ const agentSubscriptionListSchema = z.object({
174
+ subscriptions: z.array(agentSubscriptionViewSchema)
175
+ });
176
+ const agentSubscriptionCreatedSchema = z.object({
177
+ subscription: agentSubscriptionViewSchema
178
+ });
179
+ const sleep = (ms, signal) => new Promise((resolve, reject) => {
180
+ const t = setTimeout(resolve, ms);
181
+ signal?.addEventListener(
182
+ "abort",
183
+ () => {
184
+ clearTimeout(t);
185
+ reject(new Error("waitForReply aborted"));
186
+ },
187
+ { once: true }
15
188
  );
16
- }
17
- function calculateHbarAmount(creditsToPurchase, creditsPerHbar) {
18
- if (creditsPerHbar <= 0) {
19
- throw new Error("creditsPerHbar must be positive");
20
- }
21
- if (creditsToPurchase <= 0) {
22
- throw new Error("creditsToPurchase must be positive");
23
- }
24
- const rawHbar = creditsToPurchase / creditsPerHbar;
25
- const tinybars = Math.ceil(rawHbar * 1e8);
26
- return tinybars / 1e8;
27
- }
28
- function resolveCreditsToPurchase(shortfallCredits) {
29
- if (!Number.isFinite(shortfallCredits) || shortfallCredits <= 0) {
30
- return 0;
31
- }
32
- return Math.max(
33
- Math.ceil(shortfallCredits),
34
- MINIMUM_REGISTRATION_AUTO_TOP_UP_CREDITS
35
- );
36
- }
37
- async function ensureCreditsForRegistration(client, payload, autoTopUp) {
38
- const details = autoTopUp ?? null;
39
- if (!details) {
40
- return;
41
- }
42
- if (!details.accountId || !details.accountId.trim()) {
43
- throw new Error("autoTopUp.accountId is required");
44
- }
45
- if (!details.privateKey || !details.privateKey.trim()) {
46
- throw new Error("autoTopUp.privateKey is required");
47
- }
48
- for (let attempt = 0; attempt < 3; attempt += 1) {
49
- const quote = await getRegistrationQuote(client, payload);
50
- const shortfall = quote.shortfallCredits ?? 0;
51
- if (shortfall <= 0) {
52
- return;
53
- }
54
- const creditsToPurchase = resolveCreditsToPurchase(shortfall);
55
- if (creditsToPurchase <= 0) {
56
- return;
57
- }
58
- const creditsPerHbar = quote.creditsPerHbar ?? null;
59
- if (!creditsPerHbar || creditsPerHbar <= 0) {
60
- throw new Error("Unable to determine credits per HBAR for auto top-up");
189
+ });
190
+ const bearerHeaders = (token) => ({
191
+ authorization: `Bearer ${token}`
192
+ });
193
+ const encodePath = (value) => encodeURIComponent(value);
194
+ const qs = (params) => {
195
+ const query = new URLSearchParams();
196
+ for (const [k, v] of Object.entries(params)) {
197
+ if (v !== void 0) {
198
+ query.set(k, String(v));
61
199
  }
62
- const hbarAmount = calculateHbarAmount(creditsToPurchase, creditsPerHbar);
63
- await purchaseCreditsWithHbar(client, {
64
- accountId: details.accountId.trim(),
65
- privateKey: details.privateKey.trim(),
66
- hbarAmount,
67
- memo: details.memo ?? "Registry Broker auto top-up",
68
- metadata: {
69
- shortfallCredits: shortfall,
70
- requiredCredits: quote.requiredCredits,
71
- purchasedCredits: creditsToPurchase
72
- }
73
- });
74
200
  }
75
- const finalQuote = await getRegistrationQuote(client, payload);
76
- if ((finalQuote.shortfallCredits ?? 0) > 0) {
77
- throw new Error("Unable to purchase sufficient credits for registration");
78
- }
79
- }
80
- async function resolveUaid(client, uaid) {
81
- const raw = await client.requestJson(
82
- `/resolve/${encodeURIComponent(uaid)}`,
83
- {
84
- method: "GET"
201
+ const s = query.toString();
202
+ return s ? `?${s}` : "";
203
+ };
204
+ function createAgentNetworkApi(client) {
205
+ const json = async (path, schema, init) => {
206
+ const raw = await client.requestJson(`${path}`, {
207
+ method: init.method ?? "GET",
208
+ body: init.body,
209
+ headers: init.token ? bearerHeaders(init.token) : void 0
210
+ });
211
+ const parsed = schema.safeParse(raw);
212
+ if (!parsed.success) {
213
+ throw new RegistryBrokerParseError(
214
+ "Unexpected agent-network response shape",
215
+ JSON.stringify(raw).slice(0, 500)
216
+ );
85
217
  }
86
- );
87
- return client.parseWithSchema(
88
- raw,
89
- resolveResponseSchema,
90
- "resolve UAID response"
91
- );
92
- }
93
- async function registerAgent(client, payload, options) {
94
- const autoTopUp = options?.autoTopUp ?? client.registrationAutoTopUp;
95
- if (!autoTopUp) {
96
- return performRegisterAgent(client, payload);
97
- }
98
- await ensureCreditsForRegistration(client, payload, autoTopUp);
99
- let retried = false;
100
- while (true) {
101
- try {
102
- return await performRegisterAgent(client, payload);
103
- } catch (error) {
104
- const shortfall = client.extractInsufficientCreditsDetails(error);
105
- if (shortfall && !retried) {
106
- await ensureCreditsForRegistration(client, payload, autoTopUp);
107
- retried = true;
108
- continue;
218
+ return parsed.data;
219
+ };
220
+ const bot204 = async (path, token, body) => {
221
+ const response = await client.request(`${path}`, {
222
+ method: "POST",
223
+ body,
224
+ headers: bearerHeaders(token)
225
+ });
226
+ return response.status === 204 ? null : response.json();
227
+ };
228
+ return {
229
+ quoteRuntime: () => json("/agent-runtimes/quote", agentRuntimeQuoteSchema, {
230
+ method: "POST"
231
+ }),
232
+ registerRuntime: (input) => json("/agent-runtimes/register", agentRuntimeRegistrationResultSchema, {
233
+ method: "POST",
234
+ body: input
235
+ }),
236
+ listRuntimes: async () => {
237
+ const raw = await client.requestJson("/agent-runtimes", {});
238
+ const parsed = z.object({ runtimes: z.array(agentRuntimeViewSchema) }).safeParse(raw);
239
+ if (!parsed.success) {
240
+ throw new RegistryBrokerParseError(
241
+ "Unexpected runtime list shape",
242
+ JSON.stringify(raw).slice(0, 500)
243
+ );
109
244
  }
110
- throw error;
111
- }
112
- }
113
- }
114
- async function getRegistrationQuote(client, payload) {
115
- const raw = await client.requestJson("/register/quote", {
116
- method: "POST",
117
- body: serialiseAgentRegistrationRequest(payload),
118
- headers: { "content-type": "application/json" }
119
- });
120
- return client.parseWithSchema(
121
- raw,
122
- registrationQuoteResponseSchema,
123
- "registration quote response"
124
- );
125
- }
126
- async function updateAgent(client, uaid, payload) {
127
- const raw = await client.requestJson(
128
- `/register/${encodeURIComponent(uaid)}`,
129
- {
130
- method: "PUT",
131
- body: serialiseAgentRegistrationRequest(payload),
132
- headers: { "content-type": "application/json" }
133
- }
134
- );
135
- return client.parseWithSchema(
136
- raw,
137
- registerAgentResponseSchema,
138
- "update agent response"
139
- );
140
- }
141
- async function getRegistrationProgress(client, attemptId) {
142
- const normalisedAttemptId = attemptId.trim();
143
- if (!normalisedAttemptId) {
144
- throw new Error("attemptId is required");
145
- }
146
- try {
147
- const raw = await client.requestJson(
148
- `/register/progress/${encodeURIComponent(normalisedAttemptId)}`,
149
- { method: "GET" }
150
- );
151
- const parsed = client.parseWithSchema(
152
- raw,
153
- registrationProgressResponseSchema,
154
- "registration progress response"
155
- );
156
- return parsed.progress;
157
- } catch (error) {
158
- if (error instanceof RegistryBrokerError && error.status === 404) {
159
- return null;
160
- }
161
- throw error;
162
- }
163
- }
164
- async function waitForRegistrationCompletion(client, attemptId, options = {}) {
165
- const normalisedAttemptId = attemptId.trim();
166
- if (!normalisedAttemptId) {
167
- throw new Error("attemptId is required");
168
- }
169
- const interval = Math.max(
170
- 250,
171
- options.intervalMs ?? DEFAULT_PROGRESS_INTERVAL_MS
172
- );
173
- const timeoutMs = options.timeoutMs ?? DEFAULT_PROGRESS_TIMEOUT_MS;
174
- const throwOnFailure = options.throwOnFailure ?? true;
175
- const signal = options.signal;
176
- const startedAt = Date.now();
177
- while (true) {
178
- if (signal?.aborted) {
179
- throw createAbortError();
180
- }
181
- const progress = await client.getRegistrationProgress(normalisedAttemptId);
182
- if (progress) {
183
- options.onProgress?.(progress);
184
- if (progress.status === "completed") {
185
- return progress;
245
+ return parsed.data.runtimes;
246
+ },
247
+ updateRuntimePolicy: (runtimeId, input) => json(
248
+ `/agent-runtimes/${encodePath(runtimeId)}`,
249
+ agentRuntimeViewSchema,
250
+ { method: "PATCH", body: input }
251
+ ),
252
+ probeRuntime: async (runtimeId) => await json(
253
+ `/agent-runtimes/${encodePath(runtimeId)}/probe`,
254
+ agentProbeResultSchema,
255
+ { method: "POST" }
256
+ ),
257
+ startAgentConnection: (runtimeId) => json("/agent-connections", agentPairingStartSchema, {
258
+ method: "POST",
259
+ body: { runtimeId }
260
+ }),
261
+ completeAgentPairing: (pairingCode) => json("/agent-connections/pair", agentPairingCompleteSchema, {
262
+ method: "POST",
263
+ body: { pairingCode }
264
+ }),
265
+ revokeAgentConnection: async (grantId) => {
266
+ await client.request(`/agent-connections/${encodePath(grantId)}`, {
267
+ method: "DELETE"
268
+ });
269
+ },
270
+ listRuntimeInbox: (runtimeId, query) => json(
271
+ `/agent-runtimes/${encodePath(runtimeId)}/inbox${qs({
272
+ cursor: query?.cursor,
273
+ limit: query?.limit,
274
+ includeAcknowledged: query?.includeAcknowledged
275
+ })}`,
276
+ agentInboxListSchema,
277
+ {}
278
+ ),
279
+ getRuntimeConversation: (runtimeId, conversationId, query) => json(
280
+ `/agent-runtimes/${encodePath(runtimeId)}/conversations/${encodePath(
281
+ conversationId
282
+ )}${qs({ cursor: query?.cursor, limit: query?.limit })}`,
283
+ agentConversationViewSchema,
284
+ {}
285
+ ),
286
+ createAgentSubscription: async (runtimeId, input) => (await json(
287
+ `/agent-runtimes/${encodePath(runtimeId)}/subscriptions`,
288
+ agentSubscriptionCreatedSchema,
289
+ { method: "POST", body: input }
290
+ )).subscription,
291
+ listAgentSubscriptions: async (runtimeId) => (await json(
292
+ `/agent-runtimes/${encodePath(runtimeId)}/subscriptions`,
293
+ agentSubscriptionListSchema,
294
+ {}
295
+ )).subscriptions,
296
+ revokeAgentSubscription: async (runtimeId, subscriptionId) => {
297
+ await client.request(
298
+ `/agent-runtimes/${encodePath(runtimeId)}/subscriptions/${encodePath(
299
+ subscriptionId
300
+ )}`,
301
+ { method: "DELETE" }
302
+ );
303
+ },
304
+ agentMe: async (token) => {
305
+ const raw = await client.requestJson(
306
+ "/agent-runtimes/me",
307
+ { headers: bearerHeaders(token) }
308
+ );
309
+ const parsed = z.object({ runtime: agentRuntimeViewSchema }).safeParse(raw);
310
+ if (!parsed.success) {
311
+ throw new RegistryBrokerParseError(
312
+ "Unexpected agent-runtimes/me shape",
313
+ JSON.stringify(raw).slice(0, 500)
314
+ );
315
+ }
316
+ return parsed.data.runtime;
317
+ },
318
+ sendAgentMessage: (token, input) => json("/agent-messages", agentMessageAcceptedSchema, {
319
+ method: "POST",
320
+ body: input,
321
+ token
322
+ }),
323
+ getAgentMessage: (token, messageId) => json(
324
+ `/agent-messages/${encodePath(messageId)}`,
325
+ agentMessageViewSchema,
326
+ { token }
327
+ ),
328
+ getAgentConversation: (token, conversationId, query) => json(
329
+ `/agent-conversations/${encodePath(conversationId)}${qs({
330
+ cursor: query?.cursor,
331
+ limit: query?.limit
332
+ })}`,
333
+ agentConversationViewSchema,
334
+ { token }
335
+ ),
336
+ listAgentInbox: (token, query) => json(
337
+ `/agent-inbox${qs({
338
+ cursor: query?.cursor,
339
+ limit: query?.limit,
340
+ includeAcknowledged: query?.includeAcknowledged
341
+ })}`,
342
+ agentInboxListSchema,
343
+ { token }
344
+ ),
345
+ claimAgentMessage: async (token) => {
346
+ const raw = await bot204("/agent-inbox/leases", token, {});
347
+ if (raw === null) {
348
+ return null;
186
349
  }
187
- if (progress.status === "partial" || progress.status === "failed") {
188
- if (throwOnFailure) {
189
- throw new RegistryBrokerError(
190
- "Registration did not complete successfully",
191
- {
192
- status: 409,
193
- statusText: progress.status,
194
- body: progress
195
- }
350
+ const parsed = agentClaimedMessageSchema.safeParse(raw);
351
+ if (!parsed.success) {
352
+ throw new RegistryBrokerParseError(
353
+ "Unexpected claim response shape",
354
+ JSON.stringify(raw).slice(0, 500)
355
+ );
356
+ }
357
+ return parsed.data;
358
+ },
359
+ acknowledgeAgentMessage: (token, messageId, lease) => json(
360
+ `/agent-inbox/${encodePath(messageId)}/ack`,
361
+ agentMessageViewSchema,
362
+ { method: "POST", body: lease, token }
363
+ ),
364
+ renewAgentMessageLease: (token, messageId, input) => json(
365
+ `/agent-inbox/${encodePath(messageId)}/lease/renew`,
366
+ agentLeaseViewSchema,
367
+ { method: "POST", body: input, token }
368
+ ),
369
+ replyToAgentMessage: (token, messageId, input) => json(
370
+ `/agent-messages/${encodePath(messageId)}/reply`,
371
+ agentReplyResultSchema,
372
+ { method: "POST", body: input, token }
373
+ ),
374
+ rejectAgentMessage: (token, messageId, input) => json(
375
+ `/agent-messages/${encodePath(messageId)}/reject`,
376
+ agentMessageViewSchema,
377
+ { method: "POST", body: input, token }
378
+ ),
379
+ cancelAgentConversation: async (token, conversationId) => {
380
+ const raw = await client.requestJson(
381
+ `/agent-conversations/${encodePath(conversationId)}/cancel`,
382
+ { method: "POST", body: {}, headers: bearerHeaders(token) }
383
+ );
384
+ const parsed = z.object({
385
+ conversationId: z.string().uuid(),
386
+ canceledMessages: z.number()
387
+ }).safeParse(raw);
388
+ if (!parsed.success) {
389
+ throw new RegistryBrokerParseError(
390
+ "Unexpected cancel response shape",
391
+ JSON.stringify(raw).slice(0, 500)
392
+ );
393
+ }
394
+ return parsed.data;
395
+ },
396
+ waitForAgentReply: async (token, messageId, options) => {
397
+ const timeoutMs = options?.timeoutMs ?? 6e4;
398
+ const interval = Math.max(250, options?.pollIntervalMs ?? 2e3);
399
+ const deadline = Date.now() + timeoutMs;
400
+ while (Date.now() < deadline) {
401
+ const message = await json(
402
+ `/agent-messages/${encodePath(messageId)}`,
403
+ agentMessageViewSchema,
404
+ { token }
405
+ );
406
+ if (message.requestState === "completed") {
407
+ const conversation = await json(
408
+ `/agent-conversations/${encodePath(message.conversationId)}`,
409
+ agentConversationViewSchema,
410
+ { token }
196
411
  );
412
+ return conversation.messages.find(
413
+ (m) => m.inReplyTo === messageId && m.kind === "response"
414
+ ) ?? null;
415
+ }
416
+ if (message.requestState === "rejected" || message.requestState === "failed" || message.requestState === "expired" || message.requestState === "canceled") {
417
+ return null;
197
418
  }
198
- return progress;
419
+ await sleep(Math.min(interval, deadline - Date.now()), options?.signal);
199
420
  }
421
+ return null;
200
422
  }
201
- if (Date.now() - startedAt >= timeoutMs) {
202
- throw new Error(
203
- `Registration progress polling timed out after ${timeoutMs}ms`
204
- );
205
- }
206
- await client.delay(interval, signal);
207
- }
208
- }
209
- async function validateUaid(client, uaid) {
210
- const raw = await client.requestJson(
211
- `/uaids/validate/${encodeURIComponent(uaid)}`,
212
- {
213
- method: "GET"
214
- }
215
- );
216
- return client.parseWithSchema(
217
- raw,
218
- uaidValidationResponseSchema,
219
- "UAID validation response"
220
- );
221
- }
222
- async function getUaidConnectionStatus(client, uaid) {
223
- const raw = await client.requestJson(
224
- `/uaids/connections/${encodeURIComponent(uaid)}/status`,
225
- {
226
- method: "GET"
227
- }
228
- );
229
- return client.parseWithSchema(
230
- raw,
231
- uaidConnectionStatusSchema,
232
- "UAID connection status"
233
- );
234
- }
235
- async function closeUaidConnection(client, uaid) {
236
- await client.request(`/uaids/connections/${encodeURIComponent(uaid)}`, {
237
- method: "DELETE"
238
- });
239
- }
240
- async function dashboardStats(client) {
241
- const raw = await client.requestJson("/dashboard/stats", {
242
- method: "GET"
243
- });
244
- return client.parseWithSchema(
245
- raw,
246
- dashboardStatsResponseSchema,
247
- "dashboard stats response"
248
- );
423
+ };
249
424
  }
250
425
  export {
251
- closeUaidConnection,
252
- dashboardStats,
253
- getRegistrationProgress,
254
- getRegistrationQuote,
255
- getUaidConnectionStatus,
256
- registerAgent,
257
- resolveUaid,
258
- updateAgent,
259
- validateUaid,
260
- waitForRegistrationCompletion
426
+ agentClaimedMessageSchema,
427
+ agentConnectionStateSchema,
428
+ agentConversationViewSchema,
429
+ agentDeliveryStateSchema,
430
+ agentInboxItemSchema,
431
+ agentInboxListSchema,
432
+ agentLeaseViewSchema,
433
+ agentMessageAcceptedSchema,
434
+ agentMessageKindSchema,
435
+ agentMessageViewSchema,
436
+ agentNetworkProviderSchema,
437
+ agentPairingCompleteSchema,
438
+ agentPairingStartSchema,
439
+ agentProbeResultSchema,
440
+ agentReceiveModeSchema,
441
+ agentRegistrationResultStateSchema,
442
+ agentRegistrationStateSchema,
443
+ agentReplyResultSchema,
444
+ agentRequestStateSchema,
445
+ agentRuntimeQuoteSchema,
446
+ agentRuntimeRegistrationResultSchema,
447
+ agentRuntimeViewSchema,
448
+ agentSubscriptionCreatedSchema,
449
+ agentSubscriptionEventTypeSchema,
450
+ agentSubscriptionListSchema,
451
+ agentSubscriptionViewSchema,
452
+ createAgentNetworkApi
261
453
  };
262
454
  //# sourceMappingURL=standards-sdk.es172.js.map