@hashgraphonline/standards-sdk 0.1.167 → 0.1.169

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 (385) hide show
  1. package/README.md +21 -7
  2. package/dist/browser/hcs-10/sdk.d.ts.map +1 -1
  3. package/dist/browser/hcs-10/types.d.ts +3 -1
  4. package/dist/browser/hcs-10/types.d.ts.map +1 -1
  5. package/dist/browser/hcs-11/client.d.ts.map +1 -1
  6. package/dist/browser/hcs-11/types.d.ts +2 -1
  7. package/dist/browser/hcs-11/types.d.ts.map +1 -1
  8. package/dist/browser/hcs-12/sdk.d.ts +2 -0
  9. package/dist/browser/hcs-12/sdk.d.ts.map +1 -1
  10. package/dist/browser/hcs-15/sdk.d.ts.map +1 -1
  11. package/dist/browser/hcs-15/types.d.ts +2 -1
  12. package/dist/browser/hcs-15/types.d.ts.map +1 -1
  13. package/dist/browser/hcs-16/sdk.d.ts +2 -1
  14. package/dist/browser/hcs-16/sdk.d.ts.map +1 -1
  15. package/dist/browser/hcs-17/sdk.d.ts.map +1 -1
  16. package/dist/browser/hcs-17/types.d.ts +2 -1
  17. package/dist/browser/hcs-17/types.d.ts.map +1 -1
  18. package/dist/browser/hcs-18/sdk.d.ts +2 -1
  19. package/dist/browser/hcs-18/sdk.d.ts.map +1 -1
  20. package/dist/browser/hcs-2/client.d.ts +2 -1
  21. package/dist/browser/hcs-2/client.d.ts.map +1 -1
  22. package/dist/browser/hcs-20/sdk.d.ts.map +1 -1
  23. package/dist/browser/hcs-20/types.d.ts +2 -1
  24. package/dist/browser/hcs-20/types.d.ts.map +1 -1
  25. package/dist/browser/hcs-21/sdk.d.ts +2 -1
  26. package/dist/browser/hcs-21/sdk.d.ts.map +1 -1
  27. package/dist/browser/hcs-27/base-client.d.ts +41 -0
  28. package/dist/browser/hcs-27/base-client.d.ts.map +1 -0
  29. package/dist/browser/hcs-27/index.d.ts +6 -0
  30. package/dist/browser/hcs-27/index.d.ts.map +1 -0
  31. package/dist/browser/hcs-27/memos.d.ts +5 -0
  32. package/dist/browser/hcs-27/memos.d.ts.map +1 -0
  33. package/dist/browser/hcs-27/merkle.d.ts +23 -0
  34. package/dist/browser/hcs-27/merkle.d.ts.map +1 -0
  35. package/dist/browser/hcs-27/sdk.d.ts +23 -0
  36. package/dist/browser/hcs-27/sdk.d.ts.map +1 -0
  37. package/dist/browser/hcs-27/types.d.ts +1611 -0
  38. package/dist/browser/hcs-27/types.d.ts.map +1 -0
  39. package/dist/browser/hcs-5/sdk.d.ts.map +1 -1
  40. package/dist/browser/hcs-5/types.d.ts +2 -1
  41. package/dist/browser/hcs-5/types.d.ts.map +1 -1
  42. package/dist/browser/hcs-6/sdk.d.ts +2 -1
  43. package/dist/browser/hcs-6/sdk.d.ts.map +1 -1
  44. package/dist/browser/hcs-7/sdk.d.ts.map +1 -1
  45. package/dist/browser/hcs-7/types.d.ts +2 -1
  46. package/dist/browser/hcs-7/types.d.ts.map +1 -1
  47. package/dist/browser/index.d.ts +1 -0
  48. package/dist/browser/index.d.ts.map +1 -1
  49. package/dist/browser/standards-sdk.browser.js +33 -8
  50. package/dist/browser/standards-sdk.browser.js.map +1 -1
  51. package/dist/browser/utils/key-type-detector.d.ts.map +1 -1
  52. package/dist/cjs/hcs-10/sdk.d.ts.map +1 -1
  53. package/dist/cjs/hcs-10/types.d.ts +3 -1
  54. package/dist/cjs/hcs-10/types.d.ts.map +1 -1
  55. package/dist/cjs/hcs-11/client.d.ts.map +1 -1
  56. package/dist/cjs/hcs-11/types.d.ts +2 -1
  57. package/dist/cjs/hcs-11/types.d.ts.map +1 -1
  58. package/dist/cjs/hcs-12/sdk.d.ts +2 -0
  59. package/dist/cjs/hcs-12/sdk.d.ts.map +1 -1
  60. package/dist/cjs/hcs-15/sdk.d.ts.map +1 -1
  61. package/dist/cjs/hcs-15/types.d.ts +2 -1
  62. package/dist/cjs/hcs-15/types.d.ts.map +1 -1
  63. package/dist/cjs/hcs-16/sdk.d.ts +2 -1
  64. package/dist/cjs/hcs-16/sdk.d.ts.map +1 -1
  65. package/dist/cjs/hcs-17/sdk.d.ts.map +1 -1
  66. package/dist/cjs/hcs-17/types.d.ts +2 -1
  67. package/dist/cjs/hcs-17/types.d.ts.map +1 -1
  68. package/dist/cjs/hcs-18/sdk.d.ts +2 -1
  69. package/dist/cjs/hcs-18/sdk.d.ts.map +1 -1
  70. package/dist/cjs/hcs-2/client.d.ts +2 -1
  71. package/dist/cjs/hcs-2/client.d.ts.map +1 -1
  72. package/dist/cjs/hcs-20/sdk.d.ts.map +1 -1
  73. package/dist/cjs/hcs-20/types.d.ts +2 -1
  74. package/dist/cjs/hcs-20/types.d.ts.map +1 -1
  75. package/dist/cjs/hcs-21/sdk.d.ts +2 -1
  76. package/dist/cjs/hcs-21/sdk.d.ts.map +1 -1
  77. package/dist/cjs/hcs-27/base-client.d.ts +41 -0
  78. package/dist/cjs/hcs-27/base-client.d.ts.map +1 -0
  79. package/dist/cjs/hcs-27/index.d.ts +6 -0
  80. package/dist/cjs/hcs-27/index.d.ts.map +1 -0
  81. package/dist/cjs/hcs-27/memos.d.ts +5 -0
  82. package/dist/cjs/hcs-27/memos.d.ts.map +1 -0
  83. package/dist/cjs/hcs-27/merkle.d.ts +23 -0
  84. package/dist/cjs/hcs-27/merkle.d.ts.map +1 -0
  85. package/dist/cjs/hcs-27/sdk.d.ts +23 -0
  86. package/dist/cjs/hcs-27/sdk.d.ts.map +1 -0
  87. package/dist/cjs/hcs-27/types.d.ts +1611 -0
  88. package/dist/cjs/hcs-27/types.d.ts.map +1 -0
  89. package/dist/cjs/hcs-5/sdk.d.ts.map +1 -1
  90. package/dist/cjs/hcs-5/types.d.ts +2 -1
  91. package/dist/cjs/hcs-5/types.d.ts.map +1 -1
  92. package/dist/cjs/hcs-6/sdk.d.ts +2 -1
  93. package/dist/cjs/hcs-6/sdk.d.ts.map +1 -1
  94. package/dist/cjs/hcs-7/sdk.d.ts.map +1 -1
  95. package/dist/cjs/hcs-7/types.d.ts +2 -1
  96. package/dist/cjs/hcs-7/types.d.ts.map +1 -1
  97. package/dist/cjs/index.d.ts +1 -0
  98. package/dist/cjs/index.d.ts.map +1 -1
  99. package/dist/cjs/standards-sdk.cjs +2 -2
  100. package/dist/cjs/standards-sdk.cjs.map +1 -1
  101. package/dist/cjs/utils/key-type-detector.d.ts.map +1 -1
  102. package/dist/es/hcs-10/sdk.d.ts.map +1 -1
  103. package/dist/es/hcs-10/types.d.ts +3 -1
  104. package/dist/es/hcs-10/types.d.ts.map +1 -1
  105. package/dist/es/hcs-11/client.d.ts.map +1 -1
  106. package/dist/es/hcs-11/types.d.ts +2 -1
  107. package/dist/es/hcs-11/types.d.ts.map +1 -1
  108. package/dist/es/hcs-12/sdk.d.ts +2 -0
  109. package/dist/es/hcs-12/sdk.d.ts.map +1 -1
  110. package/dist/es/hcs-15/sdk.d.ts.map +1 -1
  111. package/dist/es/hcs-15/types.d.ts +2 -1
  112. package/dist/es/hcs-15/types.d.ts.map +1 -1
  113. package/dist/es/hcs-16/sdk.d.ts +2 -1
  114. package/dist/es/hcs-16/sdk.d.ts.map +1 -1
  115. package/dist/es/hcs-17/sdk.d.ts.map +1 -1
  116. package/dist/es/hcs-17/types.d.ts +2 -1
  117. package/dist/es/hcs-17/types.d.ts.map +1 -1
  118. package/dist/es/hcs-18/sdk.d.ts +2 -1
  119. package/dist/es/hcs-18/sdk.d.ts.map +1 -1
  120. package/dist/es/hcs-2/client.d.ts +2 -1
  121. package/dist/es/hcs-2/client.d.ts.map +1 -1
  122. package/dist/es/hcs-20/sdk.d.ts.map +1 -1
  123. package/dist/es/hcs-20/types.d.ts +2 -1
  124. package/dist/es/hcs-20/types.d.ts.map +1 -1
  125. package/dist/es/hcs-21/sdk.d.ts +2 -1
  126. package/dist/es/hcs-21/sdk.d.ts.map +1 -1
  127. package/dist/es/hcs-27/base-client.d.ts +41 -0
  128. package/dist/es/hcs-27/base-client.d.ts.map +1 -0
  129. package/dist/es/hcs-27/index.d.ts +6 -0
  130. package/dist/es/hcs-27/index.d.ts.map +1 -0
  131. package/dist/es/hcs-27/memos.d.ts +5 -0
  132. package/dist/es/hcs-27/memos.d.ts.map +1 -0
  133. package/dist/es/hcs-27/merkle.d.ts +23 -0
  134. package/dist/es/hcs-27/merkle.d.ts.map +1 -0
  135. package/dist/es/hcs-27/sdk.d.ts +23 -0
  136. package/dist/es/hcs-27/sdk.d.ts.map +1 -0
  137. package/dist/es/hcs-27/types.d.ts +1611 -0
  138. package/dist/es/hcs-27/types.d.ts.map +1 -0
  139. package/dist/es/hcs-5/sdk.d.ts.map +1 -1
  140. package/dist/es/hcs-5/types.d.ts +2 -1
  141. package/dist/es/hcs-5/types.d.ts.map +1 -1
  142. package/dist/es/hcs-6/sdk.d.ts +2 -1
  143. package/dist/es/hcs-6/sdk.d.ts.map +1 -1
  144. package/dist/es/hcs-7/sdk.d.ts.map +1 -1
  145. package/dist/es/hcs-7/types.d.ts +2 -1
  146. package/dist/es/hcs-7/types.d.ts.map +1 -1
  147. package/dist/es/index.d.ts +1 -0
  148. package/dist/es/index.d.ts.map +1 -1
  149. package/dist/es/standards-sdk.es.js +67 -38
  150. package/dist/es/standards-sdk.es.js.map +1 -1
  151. package/dist/es/standards-sdk.es101.js +2 -2
  152. package/dist/es/standards-sdk.es102.js.map +1 -1
  153. package/dist/es/standards-sdk.es103.js +2 -2
  154. package/dist/es/standards-sdk.es104.js +2 -2
  155. package/dist/es/standards-sdk.es104.js.map +1 -1
  156. package/dist/es/standards-sdk.es106.js +1 -1
  157. package/dist/es/standards-sdk.es108.js +3 -3
  158. package/dist/es/standards-sdk.es108.js.map +1 -1
  159. package/dist/es/standards-sdk.es11.js +3 -2
  160. package/dist/es/standards-sdk.es11.js.map +1 -1
  161. package/dist/es/standards-sdk.es110.js +1 -1
  162. package/dist/es/standards-sdk.es111.js +2 -2
  163. package/dist/es/standards-sdk.es112.js +151 -234
  164. package/dist/es/standards-sdk.es112.js.map +1 -1
  165. package/dist/es/standards-sdk.es113.js +20 -471
  166. package/dist/es/standards-sdk.es113.js.map +1 -1
  167. package/dist/es/standards-sdk.es114.js +263 -104
  168. package/dist/es/standards-sdk.es114.js.map +1 -1
  169. package/dist/es/standards-sdk.es115.js +167 -138
  170. package/dist/es/standards-sdk.es115.js.map +1 -1
  171. package/dist/es/standards-sdk.es116.js +315 -29
  172. package/dist/es/standards-sdk.es116.js.map +1 -1
  173. package/dist/es/standards-sdk.es117.js +250 -10
  174. package/dist/es/standards-sdk.es117.js.map +1 -1
  175. package/dist/es/standards-sdk.es118.js +448 -152
  176. package/dist/es/standards-sdk.es118.js.map +1 -1
  177. package/dist/es/standards-sdk.es119.js +101 -25
  178. package/dist/es/standards-sdk.es119.js.map +1 -1
  179. package/dist/es/standards-sdk.es12.js +1 -1
  180. package/dist/es/standards-sdk.es120.js +155 -17
  181. package/dist/es/standards-sdk.es120.js.map +1 -1
  182. package/dist/es/standards-sdk.es121.js +29 -155
  183. package/dist/es/standards-sdk.es121.js.map +1 -1
  184. package/dist/es/standards-sdk.es122.js +9 -200
  185. package/dist/es/standards-sdk.es122.js.map +1 -1
  186. package/dist/es/standards-sdk.es123.js +146 -754
  187. package/dist/es/standards-sdk.es123.js.map +1 -1
  188. package/dist/es/standards-sdk.es124.js +27 -11
  189. package/dist/es/standards-sdk.es124.js.map +1 -1
  190. package/dist/es/standards-sdk.es125.js +19 -564
  191. package/dist/es/standards-sdk.es125.js.map +1 -1
  192. package/dist/es/standards-sdk.es126.js +140 -582
  193. package/dist/es/standards-sdk.es126.js.map +1 -1
  194. package/dist/es/standards-sdk.es127.js +202 -12
  195. package/dist/es/standards-sdk.es127.js.map +1 -1
  196. package/dist/es/standards-sdk.es128.js +790 -2
  197. package/dist/es/standards-sdk.es128.js.map +1 -1
  198. package/dist/es/standards-sdk.es129.js +10 -84
  199. package/dist/es/standards-sdk.es129.js.map +1 -1
  200. package/dist/es/standards-sdk.es13.js +1 -1
  201. package/dist/es/standards-sdk.es130.js +567 -40
  202. package/dist/es/standards-sdk.es130.js.map +1 -1
  203. package/dist/es/standards-sdk.es131.js +626 -2
  204. package/dist/es/standards-sdk.es131.js.map +1 -1
  205. package/dist/es/standards-sdk.es132.js +12 -234
  206. package/dist/es/standards-sdk.es132.js.map +1 -1
  207. package/dist/es/standards-sdk.es133.js +2 -1140
  208. package/dist/es/standards-sdk.es133.js.map +1 -1
  209. package/dist/es/standards-sdk.es134.js +73 -292
  210. package/dist/es/standards-sdk.es134.js.map +1 -1
  211. package/dist/es/standards-sdk.es135.js +36 -418
  212. package/dist/es/standards-sdk.es135.js.map +1 -1
  213. package/dist/es/standards-sdk.es136.js +2 -355
  214. package/dist/es/standards-sdk.es136.js.map +1 -1
  215. package/dist/es/standards-sdk.es137.js +198 -1079
  216. package/dist/es/standards-sdk.es137.js.map +1 -1
  217. package/dist/es/standards-sdk.es138.js +1107 -175
  218. package/dist/es/standards-sdk.es138.js.map +1 -1
  219. package/dist/es/standards-sdk.es139.js +218 -1479
  220. package/dist/es/standards-sdk.es139.js.map +1 -1
  221. package/dist/es/standards-sdk.es14.js +1 -1
  222. package/dist/es/standards-sdk.es140.js +422 -1500
  223. package/dist/es/standards-sdk.es140.js.map +1 -1
  224. package/dist/es/standards-sdk.es141.js +351 -13
  225. package/dist/es/standards-sdk.es141.js.map +1 -1
  226. package/dist/es/standards-sdk.es142.js +1102 -73
  227. package/dist/es/standards-sdk.es142.js.map +1 -1
  228. package/dist/es/standards-sdk.es143.js +203 -76
  229. package/dist/es/standards-sdk.es143.js.map +1 -1
  230. package/dist/es/standards-sdk.es144.js +1459 -830
  231. package/dist/es/standards-sdk.es144.js.map +1 -1
  232. package/dist/es/standards-sdk.es145.js +1499 -59
  233. package/dist/es/standards-sdk.es145.js.map +1 -1
  234. package/dist/es/standards-sdk.es146.js +14 -156
  235. package/dist/es/standards-sdk.es146.js.map +1 -1
  236. package/dist/es/standards-sdk.es147.js +87 -7
  237. package/dist/es/standards-sdk.es147.js.map +1 -1
  238. package/dist/es/standards-sdk.es148.js +74 -79
  239. package/dist/es/standards-sdk.es148.js.map +1 -1
  240. package/dist/es/standards-sdk.es149.js +934 -61
  241. package/dist/es/standards-sdk.es149.js.map +1 -1
  242. package/dist/es/standards-sdk.es15.js +1 -1
  243. package/dist/es/standards-sdk.es150.js +60 -30
  244. package/dist/es/standards-sdk.es150.js.map +1 -1
  245. package/dist/es/standards-sdk.es151.js +159 -34
  246. package/dist/es/standards-sdk.es151.js.map +1 -1
  247. package/dist/es/standards-sdk.es152.js +7 -48
  248. package/dist/es/standards-sdk.es152.js.map +1 -1
  249. package/dist/es/standards-sdk.es153.js +70 -122
  250. package/dist/es/standards-sdk.es153.js.map +1 -1
  251. package/dist/es/standards-sdk.es154.js +58 -35
  252. package/dist/es/standards-sdk.es154.js.map +1 -1
  253. package/dist/es/standards-sdk.es155.js +30 -12482
  254. package/dist/es/standards-sdk.es155.js.map +1 -1
  255. package/dist/es/standards-sdk.es156.js +34 -56
  256. package/dist/es/standards-sdk.es156.js.map +1 -1
  257. package/dist/es/standards-sdk.es157.js +48 -84
  258. package/dist/es/standards-sdk.es157.js.map +1 -1
  259. package/dist/es/standards-sdk.es158.js +128 -71
  260. package/dist/es/standards-sdk.es158.js.map +1 -1
  261. package/dist/es/standards-sdk.es159.js +33 -191
  262. package/dist/es/standards-sdk.es159.js.map +1 -1
  263. package/dist/es/standards-sdk.es16.js +5 -5
  264. package/dist/es/standards-sdk.es160.js +12477 -12
  265. package/dist/es/standards-sdk.es160.js.map +1 -1
  266. package/dist/es/standards-sdk.es161.js +15 -548
  267. package/dist/es/standards-sdk.es161.js.map +1 -1
  268. package/dist/es/standards-sdk.es162.js +51 -167
  269. package/dist/es/standards-sdk.es162.js.map +1 -1
  270. package/dist/es/standards-sdk.es163.js +70 -308
  271. package/dist/es/standards-sdk.es163.js.map +1 -1
  272. package/dist/es/standards-sdk.es164.js +71 -336
  273. package/dist/es/standards-sdk.es164.js.map +1 -1
  274. package/dist/es/standards-sdk.es165.js +186 -439
  275. package/dist/es/standards-sdk.es165.js.map +1 -1
  276. package/dist/es/standards-sdk.es166.js +537 -318
  277. package/dist/es/standards-sdk.es166.js.map +1 -1
  278. package/dist/es/standards-sdk.es167.js +63 -66
  279. package/dist/es/standards-sdk.es167.js.map +1 -1
  280. package/dist/es/standards-sdk.es168.js +165 -66
  281. package/dist/es/standards-sdk.es168.js.map +1 -1
  282. package/dist/es/standards-sdk.es169.js +310 -160
  283. package/dist/es/standards-sdk.es169.js.map +1 -1
  284. package/dist/es/standards-sdk.es170.js +336 -212
  285. package/dist/es/standards-sdk.es170.js.map +1 -1
  286. package/dist/es/standards-sdk.es171.js +437 -223
  287. package/dist/es/standards-sdk.es171.js.map +1 -1
  288. package/dist/es/standards-sdk.es172.js +324 -112
  289. package/dist/es/standards-sdk.es172.js.map +1 -1
  290. package/dist/es/standards-sdk.es173.js +65 -115
  291. package/dist/es/standards-sdk.es173.js.map +1 -1
  292. package/dist/es/standards-sdk.es174.js +151 -140
  293. package/dist/es/standards-sdk.es174.js.map +1 -1
  294. package/dist/es/standards-sdk.es175.js +193 -156
  295. package/dist/es/standards-sdk.es175.js.map +1 -1
  296. package/dist/es/standards-sdk.es176.js +221 -121
  297. package/dist/es/standards-sdk.es176.js.map +1 -1
  298. package/dist/es/standards-sdk.es177.js +81 -293
  299. package/dist/es/standards-sdk.es177.js.map +1 -1
  300. package/dist/es/standards-sdk.es178.js +114 -247
  301. package/dist/es/standards-sdk.es178.js.map +1 -1
  302. package/dist/es/standards-sdk.es179.js +119 -110
  303. package/dist/es/standards-sdk.es179.js.map +1 -1
  304. package/dist/es/standards-sdk.es18.js +15 -14
  305. package/dist/es/standards-sdk.es18.js.map +1 -1
  306. package/dist/es/standards-sdk.es180.js +188 -0
  307. package/dist/es/standards-sdk.es180.js.map +1 -0
  308. package/dist/es/standards-sdk.es181.js +142 -0
  309. package/dist/es/standards-sdk.es181.js.map +1 -0
  310. package/dist/es/standards-sdk.es182.js +334 -0
  311. package/dist/es/standards-sdk.es182.js.map +1 -0
  312. package/dist/es/standards-sdk.es183.js +262 -0
  313. package/dist/es/standards-sdk.es183.js.map +1 -0
  314. package/dist/es/standards-sdk.es184.js +155 -0
  315. package/dist/es/standards-sdk.es184.js.map +1 -0
  316. package/dist/es/standards-sdk.es19.js +9 -9
  317. package/dist/es/standards-sdk.es2.js +2 -2
  318. package/dist/es/standards-sdk.es20.js +1 -1
  319. package/dist/es/standards-sdk.es21.js +1 -1
  320. package/dist/es/standards-sdk.es22.js +1 -1
  321. package/dist/es/standards-sdk.es23.js +1 -1
  322. package/dist/es/standards-sdk.es24.js +1 -1
  323. package/dist/es/standards-sdk.es25.js +1 -1
  324. package/dist/es/standards-sdk.es26.js +1 -1
  325. package/dist/es/standards-sdk.es27.js +13 -13
  326. package/dist/es/standards-sdk.es27.js.map +1 -1
  327. package/dist/es/standards-sdk.es28.js.map +1 -1
  328. package/dist/es/standards-sdk.es30.js +2 -2
  329. package/dist/es/standards-sdk.es31.js +4 -4
  330. package/dist/es/standards-sdk.es32.js +1 -1
  331. package/dist/es/standards-sdk.es35.js +6 -6
  332. package/dist/es/standards-sdk.es36.js +5 -5
  333. package/dist/es/standards-sdk.es36.js.map +1 -1
  334. package/dist/es/standards-sdk.es37.js +2 -2
  335. package/dist/es/standards-sdk.es38.js +2 -2
  336. package/dist/es/standards-sdk.es39.js +1 -1
  337. package/dist/es/standards-sdk.es4.js +3 -3
  338. package/dist/es/standards-sdk.es4.js.map +1 -1
  339. package/dist/es/standards-sdk.es40.js +1 -1
  340. package/dist/es/standards-sdk.es41.js +2 -2
  341. package/dist/es/standards-sdk.es46.js +1 -1
  342. package/dist/es/standards-sdk.es5.js +2 -2
  343. package/dist/es/standards-sdk.es51.js +1 -1
  344. package/dist/es/standards-sdk.es53.js +1 -1
  345. package/dist/es/standards-sdk.es56.js +2 -2
  346. package/dist/es/standards-sdk.es59.js +1 -1
  347. package/dist/es/standards-sdk.es6.js +2 -2
  348. package/dist/es/standards-sdk.es60.js +1 -1
  349. package/dist/es/standards-sdk.es62.js +1 -1
  350. package/dist/es/standards-sdk.es63.js +2 -2
  351. package/dist/es/standards-sdk.es64.js +1 -1
  352. package/dist/es/standards-sdk.es65.js +1 -1
  353. package/dist/es/standards-sdk.es66.js +1 -1
  354. package/dist/es/standards-sdk.es67.js +7 -7
  355. package/dist/es/standards-sdk.es69.js +1 -1
  356. package/dist/es/standards-sdk.es7.js +1 -1
  357. package/dist/es/standards-sdk.es70.js.map +1 -1
  358. package/dist/es/standards-sdk.es71.js +2 -2
  359. package/dist/es/standards-sdk.es72.js +5 -4
  360. package/dist/es/standards-sdk.es72.js.map +1 -1
  361. package/dist/es/standards-sdk.es75.js +6 -6
  362. package/dist/es/standards-sdk.es75.js.map +1 -1
  363. package/dist/es/standards-sdk.es76.js +3 -3
  364. package/dist/es/standards-sdk.es77.js +2 -2
  365. package/dist/es/standards-sdk.es78.js +1 -1
  366. package/dist/es/standards-sdk.es79.js.map +1 -1
  367. package/dist/es/standards-sdk.es8.js.map +1 -1
  368. package/dist/es/standards-sdk.es81.js +2 -2
  369. package/dist/es/standards-sdk.es83.js +7 -5
  370. package/dist/es/standards-sdk.es83.js.map +1 -1
  371. package/dist/es/standards-sdk.es84.js +4 -4
  372. package/dist/es/standards-sdk.es85.js +1 -1
  373. package/dist/es/standards-sdk.es88.js +1 -1
  374. package/dist/es/standards-sdk.es89.js +2 -2
  375. package/dist/es/standards-sdk.es9.js +2 -2
  376. package/dist/es/standards-sdk.es90.js +5 -5
  377. package/dist/es/standards-sdk.es90.js.map +1 -1
  378. package/dist/es/standards-sdk.es94.js +4 -4
  379. package/dist/es/standards-sdk.es94.js.map +1 -1
  380. package/dist/es/standards-sdk.es96.js +2 -2
  381. package/dist/es/standards-sdk.es98.js +1 -1
  382. package/dist/es/standards-sdk.es99.js +4 -4
  383. package/dist/es/standards-sdk.es99.js.map +1 -1
  384. package/dist/es/utils/key-type-detector.d.ts.map +1 -1
  385. package/package.json +1 -1
@@ -1,334 +1,553 @@
1
- import { proto } from "@hashgraph/proto";
2
- import { Long, FileId, ContractId } from "@hashgraph/sdk";
3
- import { hasTransactionType } from "./standards-sdk.es167.js";
4
- class UtilParser {
5
- /**
6
- * Parse Utility/System Service transaction using unified dual-branch approach
7
- * This handles both regular transactions and signed transaction variants
8
- */
9
- static parseUtilTransaction(transaction, originalBytes) {
10
- try {
11
- if (originalBytes || transaction.toBytes) {
12
- try {
13
- const bytesToParse = originalBytes || transaction.toBytes();
14
- const decoded = proto.TransactionList.decode(bytesToParse);
15
- if (decoded.transactionList && decoded.transactionList.length > 0) {
16
- const tx = decoded.transactionList[0];
17
- let txBody = null;
18
- if (tx.bodyBytes && tx.bodyBytes.length > 0) {
19
- txBody = proto.TransactionBody.decode(tx.bodyBytes);
20
- } else if (tx.signedTransactionBytes && tx.signedTransactionBytes.length > 0) {
21
- const signedTx = proto.SignedTransaction.decode(
22
- tx.signedTransactionBytes
23
- );
24
- if (signedTx.bodyBytes) {
25
- txBody = proto.TransactionBody.decode(signedTx.bodyBytes);
26
- }
27
- }
28
- if (txBody) {
29
- const protoResult = this.parseFromProtobufTxBody(txBody);
30
- if (protoResult.type && protoResult.type !== "UNKNOWN") {
31
- return protoResult;
32
- }
33
- }
34
- }
35
- } catch (protoError) {
36
- }
37
- }
38
- return this.parseFromTransactionInternals(transaction);
39
- } catch (error) {
40
- return {
41
- type: "UNKNOWN",
42
- humanReadableType: "Unknown Utility Transaction"
43
- };
44
- }
1
+ import { skillRegistryConfigResponseSchema, skillRegistryListResponseSchema, skillSecurityBreakdownResponseSchema, skillCatalogResponseSchema, skillRegistryVersionsResponseSchema, skillRegistryMineResponseSchema, skillRegistryMyListResponseSchema, skillRegistryQuoteResponseSchema, skillRegistryPublishResponseSchema, skillRegistryJobStatusResponseSchema, skillRegistryOwnershipResponseSchema, skillRecommendedVersionResponseSchema, skillDeprecationsResponseSchema, skillDeprecationRecordSchema, skillBadgeResponseSchema, skillRegistryTagsResponseSchema, skillRegistryCategoriesResponseSchema, skillResolverManifestResponseSchema, skillRegistryVoteStatusResponseSchema, skillVerificationRequestCreateResponseSchema, skillVerificationStatusResponseSchema, skillVerificationDomainProofChallengeResponseSchema, skillVerificationDomainProofVerifyResponseSchema } from "./standards-sdk.es145.js";
2
+ async function skillsConfig(client) {
3
+ const raw = await client.requestJson("/skills/config", {
4
+ method: "GET"
5
+ });
6
+ return client.parseWithSchema(
7
+ raw,
8
+ skillRegistryConfigResponseSchema,
9
+ "skill registry config response"
10
+ );
11
+ }
12
+ async function listSkills(client, params = {}) {
13
+ const query = new URLSearchParams();
14
+ if (params.name) {
15
+ query.set("name", params.name);
45
16
  }
46
- /**
47
- * Parse utility transaction from protobuf TransactionBody
48
- * Handles all utility operations from decoded protobuf data
49
- */
50
- static parseFromProtobufTxBody(txBody) {
51
- if (txBody.utilPrng) {
52
- const utilPrng = this.parseUtilPrng(txBody.utilPrng);
53
- if (utilPrng) {
54
- return {
55
- type: "PRNG",
56
- humanReadableType: "Pseudo Random Number",
57
- utilPrng
58
- };
59
- }
60
- }
61
- if (txBody.freeze) {
62
- const networkFreeze = this.parseNetworkFreezeFromProto(txBody.freeze);
63
- if (networkFreeze) {
64
- return {
65
- type: "FREEZE",
66
- humanReadableType: "Network Freeze",
67
- freeze: networkFreeze
68
- };
69
- }
70
- }
71
- if (txBody.systemDelete) {
72
- const systemDelete = this.parseSystemDeleteFromProto(txBody.systemDelete);
73
- if (systemDelete) {
74
- return {
75
- type: "SYSTEMDELETE",
76
- humanReadableType: "System Delete",
77
- systemDelete
78
- };
79
- }
80
- }
81
- if (txBody.systemUndelete) {
82
- const systemUndelete = this.parseSystemUndeleteFromProto(
83
- txBody.systemUndelete
84
- );
85
- if (systemUndelete) {
86
- return {
87
- type: "SYSTEMUNDELETE",
88
- humanReadableType: "System Undelete",
89
- systemUndelete
90
- };
91
- }
92
- }
93
- if (txBody.nodeCreate) {
94
- const nodeCreate = this.parseNodeCreateFromProto(txBody.nodeCreate);
95
- if (nodeCreate) {
96
- return {
97
- type: "NODECREATE",
98
- humanReadableType: "Node Create",
99
- nodeCreate
100
- };
101
- }
102
- }
103
- if (txBody.nodeUpdate) {
104
- const nodeUpdate = this.parseNodeUpdateFromProto(txBody.nodeUpdate);
105
- if (nodeUpdate) {
106
- return {
107
- type: "NODEUPDATE",
108
- humanReadableType: "Node Update",
109
- nodeUpdate
110
- };
111
- }
17
+ if (params.version) {
18
+ query.set("version", params.version);
19
+ }
20
+ if (typeof params.limit === "number" && Number.isFinite(params.limit)) {
21
+ query.set("limit", String(Math.trunc(params.limit)));
22
+ }
23
+ if (params.cursor) {
24
+ query.set("cursor", params.cursor);
25
+ }
26
+ if (typeof params.includeFiles === "boolean") {
27
+ query.set("includeFiles", params.includeFiles ? "true" : "false");
28
+ }
29
+ if (params.accountId) {
30
+ query.set("accountId", params.accountId);
31
+ }
32
+ if (params.q) {
33
+ query.set("q", params.q);
34
+ }
35
+ if (params.tag) {
36
+ query.set("tag", params.tag);
37
+ }
38
+ if (params.category) {
39
+ query.set("category", params.category);
40
+ }
41
+ if (typeof params.featured === "boolean") {
42
+ query.set("featured", params.featured ? "true" : "false");
43
+ }
44
+ if (typeof params.verified === "boolean") {
45
+ query.set("verified", params.verified ? "true" : "false");
46
+ }
47
+ if (params.view) {
48
+ query.set("view", params.view);
49
+ }
50
+ const suffix = query.size > 0 ? `?${query.toString()}` : "";
51
+ const raw = await client.requestJson(`/skills${suffix}`, {
52
+ method: "GET"
53
+ });
54
+ return client.parseWithSchema(
55
+ raw,
56
+ skillRegistryListResponseSchema,
57
+ "skill registry list response"
58
+ );
59
+ }
60
+ async function getSkillSecurityBreakdown(client, params) {
61
+ const normalizedJobId = params.jobId.trim();
62
+ if (!normalizedJobId) {
63
+ throw new Error("jobId is required");
64
+ }
65
+ const raw = await client.requestJson(
66
+ `/skills/${encodeURIComponent(normalizedJobId)}/security-breakdown`,
67
+ { method: "GET" }
68
+ );
69
+ return client.parseWithSchema(
70
+ raw,
71
+ skillSecurityBreakdownResponseSchema,
72
+ "skill security breakdown response"
73
+ );
74
+ }
75
+ async function getSkillsCatalog(client, params = {}) {
76
+ const query = new URLSearchParams();
77
+ if (params.q) {
78
+ query.set("q", params.q);
79
+ }
80
+ if (params.category) {
81
+ query.set("category", params.category);
82
+ }
83
+ params.tags?.forEach((tag) => {
84
+ if (tag.trim()) {
85
+ query.append("tag", tag.trim());
112
86
  }
113
- if (txBody.nodeDelete) {
114
- const nodeDelete = this.parseNodeDeleteFromProto(txBody.nodeDelete);
115
- if (nodeDelete) {
116
- return {
117
- type: "NODEDELETE",
118
- humanReadableType: "Node Delete",
119
- nodeDelete
120
- };
121
- }
87
+ });
88
+ if (typeof params.featured === "boolean") {
89
+ query.set("featured", params.featured ? "true" : "false");
90
+ }
91
+ if (typeof params.verified === "boolean") {
92
+ query.set("verified", params.verified ? "true" : "false");
93
+ }
94
+ if (params.channel) {
95
+ query.set("channel", params.channel);
96
+ }
97
+ if (params.sortBy) {
98
+ query.set("sortBy", params.sortBy);
99
+ }
100
+ if (typeof params.limit === "number" && Number.isFinite(params.limit)) {
101
+ query.set("limit", String(Math.trunc(params.limit)));
102
+ }
103
+ if (params.cursor) {
104
+ query.set("cursor", params.cursor);
105
+ }
106
+ const suffix = query.size > 0 ? `?${query.toString()}` : "";
107
+ const raw = await client.requestJson(`/skills/catalog${suffix}`, {
108
+ method: "GET"
109
+ });
110
+ return client.parseWithSchema(
111
+ raw,
112
+ skillCatalogResponseSchema,
113
+ "skill catalog response"
114
+ );
115
+ }
116
+ async function listSkillVersions(client, params) {
117
+ const normalizedName = params.name.trim();
118
+ if (!normalizedName) {
119
+ throw new Error("name is required");
120
+ }
121
+ const query = new URLSearchParams();
122
+ query.set("name", normalizedName);
123
+ const raw = await client.requestJson(
124
+ `/skills/versions?${query.toString()}`,
125
+ { method: "GET" }
126
+ );
127
+ return client.parseWithSchema(
128
+ raw,
129
+ skillRegistryVersionsResponseSchema,
130
+ "skill registry versions response"
131
+ );
132
+ }
133
+ async function listMySkills(client, params = {}) {
134
+ const query = new URLSearchParams();
135
+ if (typeof params.limit === "number" && Number.isFinite(params.limit)) {
136
+ query.set("limit", String(Math.trunc(params.limit)));
137
+ }
138
+ const suffix = query.size > 0 ? `?${query.toString()}` : "";
139
+ const raw = await client.requestJson(`/skills/mine${suffix}`, {
140
+ method: "GET"
141
+ });
142
+ return client.parseWithSchema(
143
+ raw,
144
+ skillRegistryMineResponseSchema,
145
+ "skill registry mine response"
146
+ );
147
+ }
148
+ async function getMySkillsList(client, params = {}) {
149
+ const query = new URLSearchParams();
150
+ if (typeof params.limit === "number" && Number.isFinite(params.limit)) {
151
+ query.set("limit", String(Math.trunc(params.limit)));
152
+ }
153
+ if (params.cursor) {
154
+ query.set("cursor", params.cursor);
155
+ }
156
+ if (params.accountId) {
157
+ query.set("accountId", params.accountId);
158
+ }
159
+ const suffix = query.size > 0 ? `?${query.toString()}` : "";
160
+ const raw = await client.requestJson(`/skills/my-list${suffix}`, {
161
+ method: "GET"
162
+ });
163
+ return client.parseWithSchema(
164
+ raw,
165
+ skillRegistryMyListResponseSchema,
166
+ "skill registry my list response"
167
+ );
168
+ }
169
+ async function quoteSkillPublish(client, payload) {
170
+ const raw = await client.requestJson("/skills/quote", {
171
+ method: "POST",
172
+ body: payload,
173
+ headers: { "content-type": "application/json" }
174
+ });
175
+ return client.parseWithSchema(
176
+ raw,
177
+ skillRegistryQuoteResponseSchema,
178
+ "skill registry quote response"
179
+ );
180
+ }
181
+ async function publishSkill(client, payload) {
182
+ const raw = await client.requestJson("/skills/publish", {
183
+ method: "POST",
184
+ body: payload,
185
+ headers: { "content-type": "application/json" }
186
+ });
187
+ return client.parseWithSchema(
188
+ raw,
189
+ skillRegistryPublishResponseSchema,
190
+ "skill registry publish response"
191
+ );
192
+ }
193
+ async function getSkillPublishJob(client, jobId, params = {}) {
194
+ const normalized = jobId.trim();
195
+ if (!normalized) {
196
+ throw new Error("jobId is required");
197
+ }
198
+ const query = new URLSearchParams();
199
+ if (params.accountId) {
200
+ query.set("accountId", params.accountId);
201
+ }
202
+ const suffix = query.size > 0 ? `?${query.toString()}` : "";
203
+ const raw = await client.requestJson(
204
+ `/skills/jobs/${encodeURIComponent(normalized)}${suffix}`,
205
+ { method: "GET" }
206
+ );
207
+ return client.parseWithSchema(
208
+ raw,
209
+ skillRegistryJobStatusResponseSchema,
210
+ "skill registry job status response"
211
+ );
212
+ }
213
+ async function getSkillOwnership(client, params) {
214
+ const normalizedName = params.name.trim();
215
+ if (!normalizedName) {
216
+ throw new Error("name is required");
217
+ }
218
+ const query = new URLSearchParams();
219
+ query.set("name", normalizedName);
220
+ if (params.accountId) {
221
+ query.set("accountId", params.accountId);
222
+ }
223
+ const raw = await client.requestJson(
224
+ `/skills/ownership?${query.toString()}`,
225
+ {
226
+ method: "GET"
122
227
  }
123
- return {};
124
- }
125
- /**
126
- * Extract utility data from Transaction internal fields
127
- * This handles cases where data is stored in Transaction object internals
128
- */
129
- static parseFromTransactionInternals(transaction) {
130
- try {
131
- const tx = transaction;
132
- if (hasTransactionType(transaction, "utilPrng")) {
133
- const utilPrng = {};
134
- if (tx._range && tx._range !== 0) {
135
- utilPrng.range = tx._range;
136
- }
137
- return {
138
- type: "PRNG",
139
- humanReadableType: "Pseudo Random Number",
140
- utilPrng
141
- };
142
- }
143
- if (hasTransactionType(transaction, "freeze")) {
144
- const networkFreeze = {};
145
- if (tx._startTime) {
146
- networkFreeze.startTime = tx._startTime.toString();
147
- }
148
- if (tx._endTime) {
149
- networkFreeze.endTime = tx._endTime.toString();
150
- }
151
- if (tx._updateFile) {
152
- networkFreeze.updateFile = tx._updateFile.toString();
153
- }
154
- if (tx._fileHash) {
155
- networkFreeze.fileHash = Buffer.from(tx._fileHash).toString("hex");
156
- }
157
- if (tx._freezeType) {
158
- networkFreeze.freezeType = tx._freezeType;
159
- }
160
- return {
161
- type: "FREEZE",
162
- humanReadableType: "Network Freeze",
163
- freeze: networkFreeze
164
- };
165
- }
166
- if (hasTransactionType(transaction, "systemDelete")) {
167
- const systemDelete = {};
168
- if (tx._fileId) {
169
- systemDelete.fileId = tx._fileId.toString();
170
- } else if (tx._contractId) {
171
- systemDelete.contractId = tx._contractId.toString();
172
- }
173
- if (tx._expirationTime) {
174
- systemDelete.expirationTime = tx._expirationTime.toString();
175
- }
176
- return {
177
- type: "SYSTEMDELETE",
178
- humanReadableType: "System Delete",
179
- systemDelete
180
- };
181
- }
182
- if (hasTransactionType(transaction, "systemUndelete")) {
183
- const systemUndelete = {};
184
- if (tx._fileId) {
185
- systemUndelete.fileId = tx._fileId.toString();
186
- } else if (tx._contractId) {
187
- systemUndelete.contractId = tx._contractId.toString();
188
- }
189
- return {
190
- type: "SYSTEMUNDELETE",
191
- humanReadableType: "System Undelete",
192
- systemUndelete
193
- };
228
+ );
229
+ return client.parseWithSchema(
230
+ raw,
231
+ skillRegistryOwnershipResponseSchema,
232
+ "skill registry ownership response"
233
+ );
234
+ }
235
+ async function getRecommendedSkillVersion(client, params) {
236
+ const normalizedName = params.name.trim();
237
+ if (!normalizedName) {
238
+ throw new Error("name is required");
239
+ }
240
+ const query = new URLSearchParams();
241
+ query.set("name", normalizedName);
242
+ const raw = await client.requestJson(
243
+ `/skills/recommended?${query.toString()}`,
244
+ { method: "GET" }
245
+ );
246
+ return client.parseWithSchema(
247
+ raw,
248
+ skillRecommendedVersionResponseSchema,
249
+ "skill recommended version response"
250
+ );
251
+ }
252
+ async function setRecommendedSkillVersion(client, payload) {
253
+ const normalizedName = payload.name.trim();
254
+ const normalizedVersion = payload.version.trim();
255
+ if (!normalizedName) {
256
+ throw new Error("name is required");
257
+ }
258
+ if (!normalizedVersion) {
259
+ throw new Error("version is required");
260
+ }
261
+ const raw = await client.requestJson("/skills/recommended", {
262
+ method: "POST",
263
+ body: {
264
+ name: normalizedName,
265
+ version: normalizedVersion
266
+ },
267
+ headers: { "content-type": "application/json" }
268
+ });
269
+ return client.parseWithSchema(
270
+ raw,
271
+ skillRecommendedVersionResponseSchema,
272
+ "skill recommended version response"
273
+ );
274
+ }
275
+ async function getSkillDeprecations(client, params) {
276
+ const normalizedName = params.name.trim();
277
+ if (!normalizedName) {
278
+ throw new Error("name is required");
279
+ }
280
+ const query = new URLSearchParams();
281
+ query.set("name", normalizedName);
282
+ const raw = await client.requestJson(
283
+ `/skills/deprecations?${query.toString()}`,
284
+ { method: "GET" }
285
+ );
286
+ return client.parseWithSchema(
287
+ raw,
288
+ skillDeprecationsResponseSchema,
289
+ "skill deprecations response"
290
+ );
291
+ }
292
+ async function setSkillDeprecation(client, payload) {
293
+ const normalizedName = payload.name.trim();
294
+ if (!normalizedName) {
295
+ throw new Error("name is required");
296
+ }
297
+ const version = payload.version?.trim();
298
+ const reason = payload.reason.trim();
299
+ if (!reason) {
300
+ throw new Error("reason is required");
301
+ }
302
+ const replacementRef = payload.replacementRef?.trim();
303
+ const raw = await client.requestJson("/skills/deprecate", {
304
+ method: "POST",
305
+ body: {
306
+ name: normalizedName,
307
+ version,
308
+ reason,
309
+ replacementRef
310
+ },
311
+ headers: { "content-type": "application/json" }
312
+ });
313
+ return client.parseWithSchema(
314
+ raw,
315
+ skillDeprecationRecordSchema,
316
+ "skill deprecation response"
317
+ );
318
+ }
319
+ async function getSkillBadge(client, params) {
320
+ const normalizedName = params.name.trim();
321
+ if (!normalizedName) {
322
+ throw new Error("name is required");
323
+ }
324
+ const query = new URLSearchParams();
325
+ query.set("name", normalizedName);
326
+ if (params.metric) {
327
+ query.set("metric", params.metric);
328
+ }
329
+ if (params.label?.trim()) {
330
+ query.set("label", params.label.trim());
331
+ }
332
+ if (params.style) {
333
+ query.set("style", params.style);
334
+ }
335
+ const raw = await client.requestJson(
336
+ `/skills/badge?${query.toString()}`,
337
+ { method: "GET" }
338
+ );
339
+ return client.parseWithSchema(
340
+ raw,
341
+ skillBadgeResponseSchema,
342
+ "skill badge response"
343
+ );
344
+ }
345
+ async function listSkillTags(client) {
346
+ const raw = await client.requestJson("/skills/tags", {
347
+ method: "GET"
348
+ });
349
+ return client.parseWithSchema(
350
+ raw,
351
+ skillRegistryTagsResponseSchema,
352
+ "skill tags response"
353
+ );
354
+ }
355
+ async function listSkillCategories(client) {
356
+ const raw = await client.requestJson("/skills/categories", {
357
+ method: "GET"
358
+ });
359
+ return client.parseWithSchema(
360
+ raw,
361
+ skillRegistryCategoriesResponseSchema,
362
+ "skill categories response"
363
+ );
364
+ }
365
+ async function resolveSkillMarkdown(client, skillRef) {
366
+ const normalizedSkillRef = skillRef.trim();
367
+ if (!normalizedSkillRef) {
368
+ throw new Error("skillRef is required");
369
+ }
370
+ const response = await client.request(
371
+ `/skills/${encodeURIComponent(normalizedSkillRef)}/SKILL.md`,
372
+ {
373
+ method: "GET",
374
+ headers: {
375
+ accept: "text/markdown, text/plain;q=0.9, */*;q=0.8"
194
376
  }
195
- return {};
196
- } catch (error) {
197
- return {};
198
377
  }
378
+ );
379
+ return response.text();
380
+ }
381
+ async function resolveSkillManifest(client, skillRef) {
382
+ const normalizedSkillRef = skillRef.trim();
383
+ if (!normalizedSkillRef) {
384
+ throw new Error("skillRef is required");
199
385
  }
200
- /**
201
- * Parse Network Freeze from protobuf data
202
- */
203
- static parseNetworkFreezeFromProto(body) {
204
- if (!body) return void 0;
205
- const data = {};
206
- if (body.startTime?.seconds) {
207
- data.startTime = `${Long.fromValue(
208
- body.startTime.seconds
209
- ).toString()}.${body.startTime.nanos ?? 0}`;
210
- }
211
- if (body.updateFile) {
212
- data.updateFile = new FileId(
213
- body.updateFile.shardNum ?? 0,
214
- body.updateFile.realmNum ?? 0,
215
- body.updateFile.fileNum ?? 0
216
- ).toString();
217
- }
218
- if (body.fileHash && body.fileHash.length > 0) {
219
- data.fileHash = Buffer.from(body.fileHash).toString("hex");
220
- }
221
- if (body.freezeType !== void 0) {
222
- const freezeTypes = [
223
- "FREEZE_ONLY",
224
- "PREPARE_UPGRADE",
225
- "FREEZE_UPGRADE",
226
- "FREEZE_ABORT"
227
- ];
228
- data.freezeType = freezeTypes[body.freezeType] || "FREEZE_ONLY";
229
- }
230
- return data;
231
- }
232
- /**
233
- * Parse System Delete from protobuf data
234
- */
235
- static parseSystemDeleteFromProto(body) {
236
- if (!body) return void 0;
237
- const data = {};
238
- if (body.fileID) {
239
- data.fileId = new FileId(
240
- body.fileID.shardNum ?? 0,
241
- body.fileID.realmNum ?? 0,
242
- body.fileID.fileNum ?? 0
243
- ).toString();
244
- } else if (body.contractID) {
245
- data.contractId = new ContractId(
246
- body.contractID.shardNum ?? 0,
247
- body.contractID.realmNum ?? 0,
248
- body.contractID.contractNum ?? 0
249
- ).toString();
250
- }
251
- if (body.expirationTime?.seconds) {
252
- data.expirationTime = Long.fromValue(
253
- body.expirationTime.seconds
254
- ).toString();
255
- }
256
- return data;
257
- }
258
- /**
259
- * Parse System Undelete from protobuf data
260
- */
261
- static parseSystemUndeleteFromProto(body) {
262
- if (!body) return void 0;
263
- const data = {};
264
- if (body.fileID) {
265
- data.fileId = new FileId(
266
- body.fileID.shardNum ?? 0,
267
- body.fileID.realmNum ?? 0,
268
- body.fileID.fileNum ?? 0
269
- ).toString();
270
- } else if (body.contractID) {
271
- data.contractId = new ContractId(
272
- body.contractID.shardNum ?? 0,
273
- body.contractID.realmNum ?? 0,
274
- body.contractID.contractNum ?? 0
275
- ).toString();
276
- }
277
- return data;
278
- }
279
- /**
280
- * Parse Node Create from protobuf data
281
- */
282
- static parseNodeCreateFromProto(body) {
283
- if (!body) return void 0;
284
- const data = {};
285
- if (body.nodeId !== void 0) {
286
- data.nodeId = Long.fromValue(body.nodeId).toNumber();
287
- }
288
- return data;
289
- }
290
- /**
291
- * Parse Node Update from protobuf data
292
- */
293
- static parseNodeUpdateFromProto(body) {
294
- if (!body) return void 0;
295
- const data = {};
296
- if (body.nodeId !== void 0) {
297
- data.nodeId = Long.fromValue(body.nodeId).toNumber();
298
- }
299
- return data;
300
- }
301
- /**
302
- * Parse Node Delete from protobuf data
303
- */
304
- static parseNodeDeleteFromProto(body) {
305
- if (!body) return void 0;
306
- const data = {};
307
- if (body.nodeId !== void 0) {
308
- data.nodeId = Long.fromValue(body.nodeId).toNumber();
386
+ const raw = await client.requestJson(
387
+ `/skills/${encodeURIComponent(normalizedSkillRef)}/manifest`,
388
+ {
389
+ method: "GET"
309
390
  }
310
- return data;
391
+ );
392
+ return client.parseWithSchema(
393
+ raw,
394
+ skillResolverManifestResponseSchema,
395
+ "skill resolver manifest response"
396
+ );
397
+ }
398
+ async function getSkillVoteStatus(client, params) {
399
+ const normalizedName = params.name.trim();
400
+ if (!normalizedName) {
401
+ throw new Error("name is required");
402
+ }
403
+ const query = new URLSearchParams();
404
+ query.set("name", normalizedName);
405
+ const raw = await client.requestJson(
406
+ `/skills/vote?${query.toString()}`,
407
+ { method: "GET" }
408
+ );
409
+ return client.parseWithSchema(
410
+ raw,
411
+ skillRegistryVoteStatusResponseSchema,
412
+ "skill registry vote status response"
413
+ );
414
+ }
415
+ async function setSkillVote(client, payload) {
416
+ const normalizedName = payload.name.trim();
417
+ if (!normalizedName) {
418
+ throw new Error("name is required");
311
419
  }
312
- static parseUtilPrng(body) {
313
- if (!body) return void 0;
314
- const data = {};
315
- if (body.range && body.range !== 0) {
316
- data.range = body.range;
420
+ const raw = await client.requestJson("/skills/vote", {
421
+ method: "POST",
422
+ body: { name: normalizedName, upvoted: payload.upvoted },
423
+ headers: { "content-type": "application/json" }
424
+ });
425
+ return client.parseWithSchema(
426
+ raw,
427
+ skillRegistryVoteStatusResponseSchema,
428
+ "skill registry vote status response"
429
+ );
430
+ }
431
+ async function requestSkillVerification(client, payload) {
432
+ const normalizedName = payload.name.trim();
433
+ if (!normalizedName) {
434
+ throw new Error("name is required");
435
+ }
436
+ const raw = await client.requestJson(
437
+ "/skills/verification/request",
438
+ {
439
+ method: "POST",
440
+ body: {
441
+ name: normalizedName,
442
+ version: payload.version,
443
+ tier: payload.tier
444
+ },
445
+ headers: { "content-type": "application/json" }
317
446
  }
318
- return data;
447
+ );
448
+ return client.parseWithSchema(
449
+ raw,
450
+ skillVerificationRequestCreateResponseSchema,
451
+ "skill verification request create response"
452
+ );
453
+ }
454
+ async function getSkillVerificationStatus(client, params) {
455
+ const normalizedName = params.name.trim();
456
+ if (!normalizedName) {
457
+ throw new Error("name is required");
319
458
  }
320
- static parseFreeze(body) {
321
- return this.parseNetworkFreezeFromProto(body);
459
+ const query = new URLSearchParams();
460
+ query.set("name", normalizedName);
461
+ if (params.version) {
462
+ query.set("version", params.version);
322
463
  }
323
- /**
324
- * Parse Utility/System Service transaction from Transaction object
325
- * This is the unified entry point that delegates to the comprehensive parsing logic
326
- */
327
- static parseFromTransactionObject(transaction) {
328
- return this.parseUtilTransaction(transaction);
464
+ const raw = await client.requestJson(
465
+ `/skills/verification/status?${query.toString()}`,
466
+ { method: "GET" }
467
+ );
468
+ return client.parseWithSchema(
469
+ raw,
470
+ skillVerificationStatusResponseSchema,
471
+ "skill verification status response"
472
+ );
473
+ }
474
+ async function createSkillDomainProofChallenge(client, payload) {
475
+ const normalizedName = payload.name.trim();
476
+ if (!normalizedName) {
477
+ throw new Error("name is required");
478
+ }
479
+ const raw = await client.requestJson(
480
+ "/skills/verification/domain/challenge",
481
+ {
482
+ method: "POST",
483
+ body: {
484
+ name: normalizedName,
485
+ version: payload.version,
486
+ domain: payload.domain
487
+ },
488
+ headers: { "content-type": "application/json" }
489
+ }
490
+ );
491
+ return client.parseWithSchema(
492
+ raw,
493
+ skillVerificationDomainProofChallengeResponseSchema,
494
+ "skill domain proof challenge response"
495
+ );
496
+ }
497
+ async function verifySkillDomainProof(client, payload) {
498
+ const normalizedName = payload.name.trim();
499
+ const challengeToken = payload.challengeToken.trim();
500
+ if (!normalizedName) {
501
+ throw new Error("name is required");
502
+ }
503
+ if (!challengeToken) {
504
+ throw new Error("challengeToken is required");
329
505
  }
506
+ const raw = await client.requestJson(
507
+ "/skills/verification/domain/verify",
508
+ {
509
+ method: "POST",
510
+ body: {
511
+ name: normalizedName,
512
+ version: payload.version,
513
+ domain: payload.domain,
514
+ challengeToken
515
+ },
516
+ headers: { "content-type": "application/json" }
517
+ }
518
+ );
519
+ return client.parseWithSchema(
520
+ raw,
521
+ skillVerificationDomainProofVerifyResponseSchema,
522
+ "skill domain proof verify response"
523
+ );
330
524
  }
331
525
  export {
332
- UtilParser
526
+ createSkillDomainProofChallenge,
527
+ getMySkillsList,
528
+ getRecommendedSkillVersion,
529
+ getSkillBadge,
530
+ getSkillDeprecations,
531
+ getSkillOwnership,
532
+ getSkillPublishJob,
533
+ getSkillSecurityBreakdown,
534
+ getSkillVerificationStatus,
535
+ getSkillVoteStatus,
536
+ getSkillsCatalog,
537
+ listMySkills,
538
+ listSkillCategories,
539
+ listSkillTags,
540
+ listSkillVersions,
541
+ listSkills,
542
+ publishSkill,
543
+ quoteSkillPublish,
544
+ requestSkillVerification,
545
+ resolveSkillManifest,
546
+ resolveSkillMarkdown,
547
+ setRecommendedSkillVersion,
548
+ setSkillDeprecation,
549
+ setSkillVote,
550
+ skillsConfig,
551
+ verifySkillDomainProof
333
552
  };
334
553
  //# sourceMappingURL=standards-sdk.es166.js.map