@clossir-tech/ts-sdk 0.11.0 → 0.11.2

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 (248) hide show
  1. package/README.md +45 -33
  2. package/esm/funcs/accounts-get-accounts-cash-assets.d.ts +20 -0
  3. package/esm/funcs/accounts-get-accounts-cash-assets.d.ts.map +1 -0
  4. package/esm/funcs/accounts-get-accounts-cash-assets.js +77 -0
  5. package/esm/funcs/accounts-get-accounts-cash-assets.js.map +1 -0
  6. package/esm/funcs/accounts-get-accounts-deposit-addresses.d.ts +20 -0
  7. package/esm/funcs/accounts-get-accounts-deposit-addresses.d.ts.map +1 -0
  8. package/esm/funcs/accounts-get-accounts-deposit-addresses.js +94 -0
  9. package/esm/funcs/accounts-get-accounts-deposit-addresses.js.map +1 -0
  10. package/esm/funcs/accounts-get-accounts-movable-wallets.d.ts +20 -0
  11. package/esm/funcs/accounts-get-accounts-movable-wallets.d.ts.map +1 -0
  12. package/esm/funcs/accounts-get-accounts-movable-wallets.js +94 -0
  13. package/esm/funcs/accounts-get-accounts-movable-wallets.js.map +1 -0
  14. package/esm/funcs/approvals-post-approvals-by-approval-id-approve.d.ts +20 -0
  15. package/esm/funcs/approvals-post-approvals-by-approval-id-approve.d.ts.map +1 -0
  16. package/esm/funcs/approvals-post-approvals-by-approval-id-approve.js +100 -0
  17. package/esm/funcs/approvals-post-approvals-by-approval-id-approve.js.map +1 -0
  18. package/esm/funcs/approvals-post-approvals-by-approval-id-reject.d.ts +20 -0
  19. package/esm/funcs/approvals-post-approvals-by-approval-id-reject.d.ts.map +1 -0
  20. package/esm/funcs/approvals-post-approvals-by-approval-id-reject.js +100 -0
  21. package/esm/funcs/approvals-post-approvals-by-approval-id-reject.js.map +1 -0
  22. package/esm/funcs/assets-patch-orgs-by-org-id-assets-by-asset-id.d.ts +1 -1
  23. package/esm/funcs/assets-patch-orgs-by-org-id-assets-by-asset-id.js +1 -1
  24. package/esm/funcs/assets-post-orgs-by-org-id-assets-by-asset-id-allocate.js +1 -1
  25. package/esm/funcs/assets-post-orgs-by-org-id-assets-by-asset-id-allocate.js.map +1 -1
  26. package/esm/funcs/assets-post-orgs-by-org-id-assets-by-asset-id-deploy.js +1 -1
  27. package/esm/funcs/assets-post-orgs-by-org-id-assets-by-asset-id-deploy.js.map +1 -1
  28. package/esm/funcs/assets-post-orgs-by-org-id-assets.d.ts +1 -1
  29. package/esm/funcs/assets-post-orgs-by-org-id-assets.js +1 -1
  30. package/esm/funcs/attestations-delete-attestations-by-id.d.ts +1 -1
  31. package/esm/funcs/attestations-delete-attestations-by-id.js +2 -2
  32. package/esm/funcs/attestations-delete-attestations-by-id.js.map +1 -1
  33. package/esm/funcs/attestations-post-attestations.js +1 -1
  34. package/esm/funcs/attestations-post-attestations.js.map +1 -1
  35. package/esm/funcs/commands-get-commands-by-command-id.d.ts +1 -1
  36. package/esm/funcs/commands-get-commands-by-command-id.js +1 -1
  37. package/esm/funcs/compliance-post-orgs-by-org-id-assets-by-asset-id-compliance-policy.d.ts +1 -1
  38. package/esm/funcs/compliance-post-orgs-by-org-id-assets-by-asset-id-compliance-policy.js +2 -2
  39. package/esm/funcs/compliance-post-orgs-by-org-id-assets-by-asset-id-compliance-policy.js.map +1 -1
  40. package/esm/funcs/distributions-post-orgs-by-org-id-assets-by-asset-id-distributions-by-dist-id-activate.js +2 -0
  41. package/esm/funcs/distributions-post-orgs-by-org-id-assets-by-asset-id-distributions-by-dist-id-activate.js.map +1 -1
  42. package/esm/funcs/distributions-post-orgs-by-org-id-assets-by-asset-id-distributions.js +2 -0
  43. package/esm/funcs/distributions-post-orgs-by-org-id-assets-by-asset-id-distributions.js.map +1 -1
  44. package/esm/funcs/fees-post-orgs-by-org-id-assets-by-asset-id-fees-distribute.js +3 -1
  45. package/esm/funcs/fees-post-orgs-by-org-id-assets-by-asset-id-fees-distribute.js.map +1 -1
  46. package/esm/funcs/markets-delete-orgs-by-org-id-assets-by-asset-id-markets-by-market-id-orders-by-order-id.js +2 -0
  47. package/esm/funcs/markets-delete-orgs-by-org-id-assets-by-asset-id-markets-by-market-id-orders-by-order-id.js.map +1 -1
  48. package/esm/funcs/markets-post-orgs-by-org-id-assets-by-asset-id-markets-by-market-id-deposit-hypercore.js +1 -1
  49. package/esm/funcs/markets-post-orgs-by-org-id-assets-by-asset-id-markets-by-market-id-deposit-hypercore.js.map +1 -1
  50. package/esm/funcs/markets-post-orgs-by-org-id-assets-by-asset-id-markets-by-market-id-orders.js +3 -1
  51. package/esm/funcs/markets-post-orgs-by-org-id-assets-by-asset-id-markets-by-market-id-orders.js.map +1 -1
  52. package/esm/funcs/markets-post-orgs-by-org-id-assets-by-asset-id-markets.js +1 -1
  53. package/esm/funcs/markets-post-orgs-by-org-id-assets-by-asset-id-markets.js.map +1 -1
  54. package/esm/funcs/nav-post-orgs-by-org-id-assets-by-asset-id-nav-configure.js +2 -0
  55. package/esm/funcs/nav-post-orgs-by-org-id-assets-by-asset-id-nav-configure.js.map +1 -1
  56. package/esm/funcs/nav-post-orgs-by-org-id-assets-by-asset-id-nav-publish.js +2 -0
  57. package/esm/funcs/nav-post-orgs-by-org-id-assets-by-asset-id-nav-publish.js.map +1 -1
  58. package/esm/funcs/organizations-get-orgs-by-org-id-server-wallet.js +2 -0
  59. package/esm/funcs/organizations-get-orgs-by-org-id-server-wallet.js.map +1 -1
  60. package/esm/funcs/organizations-post-orgs-by-org-id-issuer-register.js +1 -1
  61. package/esm/funcs/organizations-post-orgs-by-org-id-issuer-register.js.map +1 -1
  62. package/esm/funcs/organizations-post-orgs-by-org-id-members-by-user-id-attest.d.ts +1 -1
  63. package/esm/funcs/organizations-post-orgs-by-org-id-members-by-user-id-attest.js +4 -2
  64. package/esm/funcs/organizations-post-orgs-by-org-id-members-by-user-id-attest.js.map +1 -1
  65. package/esm/funcs/organizations-post-orgs-by-org-id-server-wallet.js +1 -1
  66. package/esm/funcs/organizations-post-orgs-by-org-id-server-wallet.js.map +1 -1
  67. package/esm/funcs/organizations-put-orgs-by-org-id-compliance.d.ts +1 -1
  68. package/esm/funcs/organizations-put-orgs-by-org-id-compliance.js +2 -4
  69. package/esm/funcs/organizations-put-orgs-by-org-id-compliance.js.map +1 -1
  70. package/esm/funcs/vaults-post-orgs-by-org-id-assets-by-asset-id-vault-deprecate.js +3 -1
  71. package/esm/funcs/vaults-post-orgs-by-org-id-assets-by-asset-id-vault-deprecate.js.map +1 -1
  72. package/esm/funcs/vaults-post-orgs-by-org-id-assets-by-asset-id-vault-pause.js +3 -1
  73. package/esm/funcs/vaults-post-orgs-by-org-id-assets-by-asset-id-vault-pause.js.map +1 -1
  74. package/esm/funcs/vaults-post-orgs-by-org-id-assets-by-asset-id-vault-settle.js +3 -1
  75. package/esm/funcs/vaults-post-orgs-by-org-id-assets-by-asset-id-vault-settle.js.map +1 -1
  76. package/esm/lib/config.d.ts +2 -2
  77. package/esm/lib/config.js +2 -2
  78. package/esm/models/errors/get-oauth-authorize.d.ts +6 -6
  79. package/esm/models/errors/get-oauth-authorize.js +3 -3
  80. package/esm/models/errors/get-oauth-userinfo.d.ts +8 -8
  81. package/esm/models/errors/get-oauth-userinfo.js +4 -4
  82. package/esm/models/errors/get-passport-home.d.ts +2 -2
  83. package/esm/models/errors/get-passport-home.js +1 -1
  84. package/esm/models/errors/get-passport-sign-in.d.ts +2 -2
  85. package/esm/models/errors/get-passport-sign-in.js +1 -1
  86. package/esm/models/errors/index.d.ts +2 -0
  87. package/esm/models/errors/index.d.ts.map +1 -1
  88. package/esm/models/errors/index.js +2 -0
  89. package/esm/models/errors/index.js.map +1 -1
  90. package/esm/models/errors/o-auth-error-response.d.ts +2 -2
  91. package/esm/models/errors/o-auth-error-response.js +1 -1
  92. package/esm/models/errors/post-approvals-by-approval-id-approve.d.ts +41 -0
  93. package/esm/models/errors/post-approvals-by-approval-id-approve.d.ts.map +1 -0
  94. package/esm/models/errors/post-approvals-by-approval-id-approve.js +52 -0
  95. package/esm/models/errors/post-approvals-by-approval-id-approve.js.map +1 -0
  96. package/esm/models/errors/post-approvals-by-approval-id-reject.d.ts +41 -0
  97. package/esm/models/errors/post-approvals-by-approval-id-reject.d.ts.map +1 -0
  98. package/esm/models/errors/post-approvals-by-approval-id-reject.js +53 -0
  99. package/esm/models/errors/post-approvals-by-approval-id-reject.js.map +1 -0
  100. package/esm/models/errors/post-eligibility-check.d.ts +2 -2
  101. package/esm/models/errors/post-eligibility-check.js +1 -1
  102. package/esm/models/errors/post-oauth-par.d.ts +10 -10
  103. package/esm/models/errors/post-oauth-par.js +5 -5
  104. package/esm/models/errors/post-oauth-revoke.d.ts +10 -10
  105. package/esm/models/errors/post-oauth-revoke.js +5 -5
  106. package/esm/models/errors/post-oauth-token.d.ts +8 -8
  107. package/esm/models/errors/post-oauth-token.js +4 -4
  108. package/esm/models/errors/post-passport-sign-in-decision.d.ts +2 -2
  109. package/esm/models/errors/post-passport-sign-in-decision.js +1 -1
  110. package/esm/models/operations/get-accounts-cash-assets.d.ts +44 -0
  111. package/esm/models/operations/get-accounts-cash-assets.d.ts.map +1 -0
  112. package/esm/models/operations/get-accounts-cash-assets.js +30 -0
  113. package/esm/models/operations/get-accounts-cash-assets.js.map +1 -0
  114. package/esm/models/operations/get-accounts-deposit-addresses.d.ts +146 -0
  115. package/esm/models/operations/get-accounts-deposit-addresses.d.ts.map +1 -0
  116. package/esm/models/operations/get-accounts-deposit-addresses.js +117 -0
  117. package/esm/models/operations/get-accounts-deposit-addresses.js.map +1 -0
  118. package/esm/models/operations/get-accounts-movable-wallets.d.ts +104 -0
  119. package/esm/models/operations/get-accounts-movable-wallets.d.ts.map +1 -0
  120. package/esm/models/operations/get-accounts-movable-wallets.js +75 -0
  121. package/esm/models/operations/get-accounts-movable-wallets.js.map +1 -0
  122. package/esm/models/operations/get-commands-by-command-id.d.ts +105 -0
  123. package/esm/models/operations/get-commands-by-command-id.d.ts.map +1 -1
  124. package/esm/models/operations/get-commands-by-command-id.js +119 -0
  125. package/esm/models/operations/get-commands-by-command-id.js.map +1 -1
  126. package/esm/models/operations/get-login-passport-status.d.ts +3 -3
  127. package/esm/models/operations/get-login-passport-status.d.ts.map +1 -1
  128. package/esm/models/operations/get-login-passport-status.js +3 -3
  129. package/esm/models/operations/get-login-passport-status.js.map +1 -1
  130. package/esm/models/operations/get-preflight-results-by-result-id.d.ts +25 -0
  131. package/esm/models/operations/get-preflight-results-by-result-id.d.ts.map +1 -1
  132. package/esm/models/operations/get-preflight-results-by-result-id.js +11 -0
  133. package/esm/models/operations/get-preflight-results-by-result-id.js.map +1 -1
  134. package/esm/models/operations/index.d.ts +5 -0
  135. package/esm/models/operations/index.d.ts.map +1 -1
  136. package/esm/models/operations/index.js +5 -0
  137. package/esm/models/operations/index.js.map +1 -1
  138. package/esm/models/operations/post-accounts-wallets-sync.d.ts +3 -1
  139. package/esm/models/operations/post-accounts-wallets-sync.d.ts.map +1 -1
  140. package/esm/models/operations/post-accounts-wallets-sync.js.map +1 -1
  141. package/esm/models/operations/post-approvals-by-approval-id-approve.d.ts +53 -0
  142. package/esm/models/operations/post-approvals-by-approval-id-approve.d.ts.map +1 -0
  143. package/esm/models/operations/post-approvals-by-approval-id-approve.js +41 -0
  144. package/esm/models/operations/post-approvals-by-approval-id-approve.js.map +1 -0
  145. package/esm/models/operations/post-approvals-by-approval-id-reject.d.ts +105 -0
  146. package/esm/models/operations/post-approvals-by-approval-id-reject.d.ts.map +1 -0
  147. package/esm/models/operations/post-approvals-by-approval-id-reject.js +71 -0
  148. package/esm/models/operations/post-approvals-by-approval-id-reject.js.map +1 -0
  149. package/esm/models/operations/post-attestations.d.ts +1 -1
  150. package/esm/models/operations/post-eligibility-check.d.ts +4 -4
  151. package/esm/models/operations/post-eligibility-check.d.ts.map +1 -1
  152. package/esm/models/operations/post-eligibility-check.js +4 -4
  153. package/esm/models/operations/post-eligibility-check.js.map +1 -1
  154. package/esm/models/operations/post-orgs-by-org-id-assets-by-asset-id-markets-by-market-id-orders.d.ts +1 -1
  155. package/esm/models/operations/post-orgs-by-org-id-members-by-user-id-attest.d.ts +9 -5
  156. package/esm/models/operations/post-orgs-by-org-id-members-by-user-id-attest.d.ts.map +1 -1
  157. package/esm/models/operations/post-orgs-by-org-id-members-by-user-id-attest.js +1 -1
  158. package/esm/models/operations/post-orgs-by-org-id-members-by-user-id-attest.js.map +1 -1
  159. package/esm/models/operations/post-preflight-intents.d.ts +25 -0
  160. package/esm/models/operations/post-preflight-intents.d.ts.map +1 -1
  161. package/esm/models/operations/post-preflight-intents.js +11 -0
  162. package/esm/models/operations/post-preflight-intents.js.map +1 -1
  163. package/esm/sdk/accounts.d.ts +21 -0
  164. package/esm/sdk/accounts.d.ts.map +1 -1
  165. package/esm/sdk/accounts.js +30 -0
  166. package/esm/sdk/accounts.js.map +1 -1
  167. package/esm/sdk/approvals.d.ts +14 -0
  168. package/esm/sdk/approvals.d.ts.map +1 -1
  169. package/esm/sdk/approvals.js +20 -0
  170. package/esm/sdk/approvals.js.map +1 -1
  171. package/esm/sdk/assets.d.ts +2 -2
  172. package/esm/sdk/assets.js +2 -2
  173. package/esm/sdk/attestations.d.ts +1 -1
  174. package/esm/sdk/attestations.js +1 -1
  175. package/esm/sdk/commands.d.ts +1 -1
  176. package/esm/sdk/commands.js +1 -1
  177. package/esm/sdk/compliance.d.ts +1 -1
  178. package/esm/sdk/compliance.js +1 -1
  179. package/esm/sdk/organizations.d.ts +2 -2
  180. package/esm/sdk/organizations.js +2 -2
  181. package/jsr.json +1 -1
  182. package/package.json +3 -3
  183. package/src/funcs/accounts-get-accounts-cash-assets.ts +157 -0
  184. package/src/funcs/accounts-get-accounts-deposit-addresses.ts +193 -0
  185. package/src/funcs/accounts-get-accounts-movable-wallets.ts +193 -0
  186. package/src/funcs/approvals-post-approvals-by-approval-id-approve.ts +217 -0
  187. package/src/funcs/approvals-post-approvals-by-approval-id-reject.ts +217 -0
  188. package/src/funcs/assets-patch-orgs-by-org-id-assets-by-asset-id.ts +1 -1
  189. package/src/funcs/assets-post-orgs-by-org-id-assets-by-asset-id-allocate.ts +1 -1
  190. package/src/funcs/assets-post-orgs-by-org-id-assets-by-asset-id-deploy.ts +1 -1
  191. package/src/funcs/assets-post-orgs-by-org-id-assets.ts +1 -1
  192. package/src/funcs/attestations-delete-attestations-by-id.ts +2 -2
  193. package/src/funcs/attestations-post-attestations.ts +1 -1
  194. package/src/funcs/commands-get-commands-by-command-id.ts +1 -1
  195. package/src/funcs/compliance-post-orgs-by-org-id-assets-by-asset-id-compliance-policy.ts +2 -2
  196. package/src/funcs/distributions-post-orgs-by-org-id-assets-by-asset-id-distributions-by-dist-id-activate.ts +3 -0
  197. package/src/funcs/distributions-post-orgs-by-org-id-assets-by-asset-id-distributions.ts +3 -0
  198. package/src/funcs/fees-post-orgs-by-org-id-assets-by-asset-id-fees-distribute.ts +3 -0
  199. package/src/funcs/markets-delete-orgs-by-org-id-assets-by-asset-id-markets-by-market-id-orders-by-order-id.ts +3 -0
  200. package/src/funcs/markets-post-orgs-by-org-id-assets-by-asset-id-markets-by-market-id-deposit-hypercore.ts +1 -1
  201. package/src/funcs/markets-post-orgs-by-org-id-assets-by-asset-id-markets-by-market-id-orders.ts +3 -0
  202. package/src/funcs/markets-post-orgs-by-org-id-assets-by-asset-id-markets.ts +1 -1
  203. package/src/funcs/nav-post-orgs-by-org-id-assets-by-asset-id-nav-configure.ts +3 -0
  204. package/src/funcs/nav-post-orgs-by-org-id-assets-by-asset-id-nav-publish.ts +3 -0
  205. package/src/funcs/organizations-get-orgs-by-org-id-server-wallet.ts +3 -0
  206. package/src/funcs/organizations-post-orgs-by-org-id-issuer-register.ts +1 -1
  207. package/src/funcs/organizations-post-orgs-by-org-id-members-by-user-id-attest.ts +4 -1
  208. package/src/funcs/organizations-post-orgs-by-org-id-server-wallet.ts +1 -1
  209. package/src/funcs/organizations-put-orgs-by-org-id-compliance.ts +6 -4
  210. package/src/funcs/vaults-post-orgs-by-org-id-assets-by-asset-id-vault-deprecate.ts +3 -0
  211. package/src/funcs/vaults-post-orgs-by-org-id-assets-by-asset-id-vault-pause.ts +3 -0
  212. package/src/funcs/vaults-post-orgs-by-org-id-assets-by-asset-id-vault-settle.ts +3 -0
  213. package/src/lib/config.ts +2 -2
  214. package/src/models/errors/get-oauth-authorize.ts +6 -6
  215. package/src/models/errors/get-oauth-userinfo.ts +8 -8
  216. package/src/models/errors/get-passport-home.ts +2 -2
  217. package/src/models/errors/get-passport-sign-in.ts +2 -2
  218. package/src/models/errors/index.ts +2 -0
  219. package/src/models/errors/o-auth-error-response.ts +2 -2
  220. package/src/models/errors/post-approvals-by-approval-id-approve.ts +85 -0
  221. package/src/models/errors/post-approvals-by-approval-id-reject.ts +85 -0
  222. package/src/models/errors/post-eligibility-check.ts +2 -2
  223. package/src/models/errors/post-oauth-par.ts +10 -10
  224. package/src/models/errors/post-oauth-revoke.ts +10 -10
  225. package/src/models/errors/post-oauth-token.ts +8 -8
  226. package/src/models/errors/post-passport-sign-in-decision.ts +2 -2
  227. package/src/models/operations/get-accounts-cash-assets.ts +89 -0
  228. package/src/models/operations/get-accounts-deposit-addresses.ts +346 -0
  229. package/src/models/operations/get-accounts-movable-wallets.ts +240 -0
  230. package/src/models/operations/get-commands-by-command-id.ts +267 -0
  231. package/src/models/operations/get-login-passport-status.ts +12 -6
  232. package/src/models/operations/get-preflight-results-by-result-id.ts +51 -0
  233. package/src/models/operations/index.ts +5 -0
  234. package/src/models/operations/post-accounts-wallets-sync.ts +3 -1
  235. package/src/models/operations/post-approvals-by-approval-id-approve.ts +134 -0
  236. package/src/models/operations/post-approvals-by-approval-id-reject.ts +207 -0
  237. package/src/models/operations/post-attestations.ts +1 -1
  238. package/src/models/operations/post-eligibility-check.ts +11 -8
  239. package/src/models/operations/post-orgs-by-org-id-assets-by-asset-id-markets-by-market-id-orders.ts +1 -1
  240. package/src/models/operations/post-orgs-by-org-id-members-by-user-id-attest.ts +10 -6
  241. package/src/models/operations/post-preflight-intents.ts +47 -0
  242. package/src/sdk/accounts.ts +52 -0
  243. package/src/sdk/approvals.ts +40 -0
  244. package/src/sdk/assets.ts +2 -2
  245. package/src/sdk/attestations.ts +1 -1
  246. package/src/sdk/commands.ts +1 -1
  247. package/src/sdk/compliance.ts +1 -1
  248. package/src/sdk/organizations.ts +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"accounts.d.ts","sourceRoot":"","sources":["../../src/sdk/accounts.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,QAAS,SAAQ,SAAS;IACrC;;;;;OAKG;IACG,WAAW,CACf,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,mBAAmB,CAAC,CAKzC;IAED;;;;;OAKG;IACG,mBAAmB,CACvB,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,2BAA2B,CAAC,CAKjD;IAED;;;;;OAKG;IACG,kBAAkB,CACtB,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,0BAA0B,CAAC,CAKhD;IAED;;;;;OAKG;IACG,uBAAuB,CAC3B,OAAO,EAAE,UAAU,CAAC,8BAA8B,EAClD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,+BAA+B,CAAC,CAMrD;IAED;;;;;OAKG;IACG,qBAAqB,CACzB,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,6BAA6B,CAAC,CAKnD;IAED;;;;;OAKG;IACG,uBAAuB,CAC3B,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,+BAA+B,CAAC,CAKrD;IAED;;;;;OAKG;IACG,cAAc,CAClB,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,sBAAsB,CAAC,CAK5C;IAED;;;;;OAKG;IACG,oBAAoB,CAC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AAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,kCAAkC,CAAC,CAMxD;IAED;;;;;OAKG;IACG,iBAAiB,CACrB,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,yBAAyB,CAAC,CAK/C;IAED;;;;;OAKG;IACG,uBAAuB,CAC3B,OAAO,EAAE,UAAU,CAAC,8BAA8B,EAClD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,+BAA+B,CAAC,CAMrD;IAED;;;;;OAKG;IACG,sBAAsB,CAC1B,OAAO,EAAE,UAAU,CAAC,6BAA6B,EACjD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,8BAA8B,CAAC,CAMpD;IAED;;;;;OAKG;IACG,6BAA6B,CACjC,OAAO,EAAE,MAAM,EACf,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,qCAAqC,CAAC,CAM3D;IAED;;;;;OAKG;IACG,kBAAkB,CACtB,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,0BAA0B,CAAC,CAKhD;IAED;;;;;OAKG;IACG,qBAAqB,CACzB,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,6BAA6B,CAAC,CAKnD;IAED;;;;;OAKG;IACG,yBAAyB,CAC7B,OAAO,EAAE,MAAM,EACf,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,iCAAiC,CAAC,CAMvD;IAED;;;;;OAKG;IACG,2BAA2B,CAC/B,OAAO,EAAE,MAAM,EACf,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,mCAAmC,CAAC,CAMzD;CACF"}
@@ -3,7 +3,10 @@
3
3
  */
4
4
  import { accountsDeleteAccountsEvmByAddress } from "../funcs/accounts-delete-accounts-evm-by-address.js";
5
5
  import { accountsDeleteAccountsSolanaByAddress } from "../funcs/accounts-delete-accounts-solana-by-address.js";
6
+ import { accountsGetAccountsCashAssets } from "../funcs/accounts-get-accounts-cash-assets.js";
7
+ import { accountsGetAccountsDepositAddresses } from "../funcs/accounts-get-accounts-deposit-addresses.js";
6
8
  import { accountsGetAccountsEvm } from "../funcs/accounts-get-accounts-evm.js";
9
+ import { accountsGetAccountsMovableWallets } from "../funcs/accounts-get-accounts-movable-wallets.js";
7
10
  import { accountsGetAccountsSolana } from "../funcs/accounts-get-accounts-solana.js";
8
11
  import { accountsGetAccountsSummary } from "../funcs/accounts-get-accounts-summary.js";
9
12
  import { accountsGetAccountsWalletsAll } from "../funcs/accounts-get-accounts-wallets-all.js";
@@ -154,5 +157,32 @@ export class Accounts extends ClientSDK {
154
157
  async getAccountsSummary(options) {
155
158
  return unwrapAsync(accountsGetAccountsSummary(this, options));
156
159
  }
160
+ /**
161
+ * Cash assets the platform supports
162
+ *
163
+ * @remarks
164
+ * The cash assets (stablecoins) the platform supports, with the token address on each chain. The same for every caller. API keys are refused.
165
+ */
166
+ async getAccountsCashAssets(options) {
167
+ return unwrapAsync(accountsGetAccountsCashAssets(this, options));
168
+ }
169
+ /**
170
+ * Wallets the caller may move an asset from
171
+ *
172
+ * @remarks
173
+ * The caller's own wallets, plus the active organization's server wallets when the caller is its admin or operator and the asset is that organization's own issued asset, with each wallet's on-chain balance per chain. An issued asset is found for a member of its organization and for a caller who holds it; for anyone else it is not found. Each wallet has one balance row per chain the asset is deployed on; an issued asset with no deployed chain answers an empty `balances` for every wallet. A balance that could not be read is null with a reason, never zero: an unreadable chain, a token address that is not valid, a failed read, or more wallets and chains than one request reads. `locked` is the part of a read balance under the asset's lockup. An absent `locked` means no lockup, not applicable (cash, organization wallets) or unknown; it is for display only, and the preflight check enforces the lockup. `visibleCount` of `totalCount` says how many of the wallets the asset could be moved from are returned. Rate limited per user (429 with Retry-After). API keys are refused.
174
+ */
175
+ async getAccountsMovableWallets(assetId, options) {
176
+ return unwrapAsync(accountsGetAccountsMovableWallets(this, assetId, options));
177
+ }
178
+ /**
179
+ * Where the caller can receive an asset
180
+ *
181
+ * @remarks
182
+ * One row per own wallet per chain of the asset; an organization's wallets are never listed. An issued asset is found for a member of its organization and for a caller who holds it; for anyone else it is not found. A chain the asset is not deployed on yet is a row with `deployed: false` and no address. A deployed row carries the wallet's checksummed address and `receivable`: whether the chain will accept a transfer of the asset to that wallet, read from the chain on every request. `receivable` is null when it could not be read, never true. `notReceivableReason` is given only when `receivable` is false. `inboundBridgePaused` says whether the token is paused on that chain: while it is, deposits bridged from another chain are queued, and after the token is unpaused they must be replayed; one the token refuses at replay, or that the owner drops, is not delivered. A pause does not affect a deposit sent on the chain itself and never changes `receivable`. `finalityBlocks` is null when no confirmation depth is stated for the chain. `inbound` lists up to 5 recent transfers in, newest first; when `historyStale` is true the lists may be missing transfers, and an empty list is not a statement that nothing arrived. For a cash asset every row is receivable, `inbound` is empty and `historyStale` is true. Rate limited per user (429 with Retry-After). API keys are refused.
183
+ */
184
+ async getAccountsDepositAddresses(assetId, options) {
185
+ return unwrapAsync(accountsGetAccountsDepositAddresses(this, assetId, options));
186
+ }
157
187
  }
158
188
  //# sourceMappingURL=accounts.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"accounts.js","sourceRoot":"","sources":["../../src/sdk/accounts.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,kCAAkC,EAAE,MAAM,qDAAqD,CAAC;AACzG,OAAO,EAAE,qCAAqC,EAAE,MAAM,wDAAwD,CAAC;AAC/G,OAAO,EAAE,sBAAsB,EAAE,MAAM,uCAAuC,CAAC;AAC/E,OAAO,EAAE,yBAAyB,EAAE,MAAM,0CAA0C,CAAC;AACrF,OAAO,EAAE,0BAA0B,EAAE,MAAM,2CAA2C,CAAC;AACvF,OAAO,EAAE,6BAA6B,EAAE,MAAM,+CAA+C,CAAC;AAC9F,OAAO,EAAE,0BAA0B,EAAE,MAAM,2CAA2C,CAAC;AACvF,OAAO,EA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AAC;IAAA,CACJ;IAED;;;;;OAKG;IACH,KAAK,CAAC,6BAA6B,CACjC,OAAe,EACf,OAAwB,EACmC;QAC3D,OAAO,WAAW,CAAC,qCAAqC,CACtD,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IAAA,CACJ;IAED;;;;;OAKG;IACH,KAAK,CAAC,kBAAkB,CACtB,OAAwB,EACwB;QAChD,OAAO,WAAW,CAAC,0BAA0B,CAC3C,IAAI,EACJ,OAAO,CACR,CAAC,CAAC;IAAA,CACJ;IAED;;;;;OAKG;IACH,KAAK,CAAC,qBAAqB,CACzB,OAAwB,EAC2B;QACnD,OAAO,WAAW,CAAC,6BAA6B,CAC9C,IAAI,EACJ,OAAO,CACR,CAAC,CAAC;IAAA,CACJ;IAED;;;;;OAKG;IACH,KAAK,CAAC,yBAAyB,CAC7B,OAAe,EACf,OAAwB,EAC+B;QACvD,OAAO,WAAW,CAAC,iCAAiC,CAClD,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IAAA,CACJ;IAED;;;;;OAKG;IACH,KAAK,CAAC,2BAA2B,CAC/B,OAAe,EACf,OAAwB,EACiC;QACzD,OAAO,WAAW,CAAC,mCAAmC,CACpD,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IAAA,CACJ;CACF"}
@@ -22,5 +22,19 @@ export declare class Approvals extends ClientSDK {
22
22
  * The approval summary, for the session user who requested it or who is a designated approver of its organization. The status is one of requested, approved, consumed, rejected, expired or withdrawn; an open approval past its expiry reads as expired. Session JWT only: API keys are 403 actor_required, and partner and Passport tokens are 401. Any other caller, and an unknown or malformed id, gets one 404 approval_not_found.
23
23
  */
24
24
  getApprovalsByApprovalIdStatus(approvalId: string, options?: RequestOptions): Promise<operations.GetApprovalsByApprovalIdStatusResponse>;
25
+ /**
26
+ * Approve an approval as its designated approver
27
+ *
28
+ * @remarks
29
+ * Consumes the approval and its intent and queues the transfer command in one transaction, then publishes it. Answers 202 {approvalId, status, commandId} as soon as the transaction commits, whether or not the publish succeeded: the body has no published flag, and GET /commands/:commandId is the outcome source. Body: {stepUpChallengeId?} (strict; empty is {}). A verified step-up challenge bound to this approval and this approver is required (409 stepup_required otherwise). A repeat is 409 approval_consumed. 503 approval_contention carries Retry-After and nothing committed; 500 approval_outcome_unknown means the approval may have been consumed: do not retry, read the approval. Requires a Clossir Passport client's DPoP-bound access token with a fresh DPoP proof; a caller who is not the designated approver gets the same 404 approval_not_found as an unknown id. A body over 4096 bytes is 413.
30
+ */
31
+ postApprovalsByApprovalIdApprove(approvalId: string, body?: operations.PostApprovalsByApprovalIdApproveRequestBody | undefined, options?: RequestOptions): Promise<operations.PostApprovalsByApprovalIdApproveResponse>;
32
+ /**
33
+ * Reject an approval as its designated approver
34
+ *
35
+ * @remarks
36
+ * Declines a requested approval; its intent can no longer be executed through it. Synchronous 200 with the approval (status rejected). No Kafka. Body: {} (strict; empty is {}). A consumed approval is 409 approval_consumed, a rejected or withdrawn one 409 illegal_transition, an expired one 409 approval_expired. Requires a Clossir Passport client's DPoP-bound access token with a fresh DPoP proof; a caller who is not the designated approver gets the same 404 approval_not_found as an unknown id. A body over 4096 bytes is 413.
37
+ */
38
+ postApprovalsByApprovalIdReject(approvalId: string, body?: operations.PostApprovalsByApprovalIdRejectRequestBody | undefined, options?: RequestOptions): Promise<operations.PostApprovalsByApprovalIdRejectResponse>;
25
39
  }
26
40
  //# sourceMappingURL=approvals.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"approvals.d.ts","sourceRoot":"","sources":["../../src/sdk/approvals.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,SAAU,SAAQ,SAAS;IACtC;;;;;OAKG;IACG,aAAa,CACjB,OAAO,EAAE,UAAU,CAAC,oBAAoB,EACxC,OAAO,CAAC,EAAE,cAAc,G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UAAU,CAAC,0CAA0C,GAAG,SAAS,EACxE,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,uCAAuC,CAAC,CAO7D;CACF"}
@@ -3,6 +3,8 @@
3
3
  */
4
4
  import { approvalsGetApprovalsByApprovalIdStatus } from "../funcs/approvals-get-approvals-by-approval-id-status.js";
5
5
  import { approvalsGetApprovalsByApprovalId } from "../funcs/approvals-get-approvals-by-approval-id.js";
6
+ import { approvalsPostApprovalsByApprovalIdApprove } from "../funcs/approvals-post-approvals-by-approval-id-approve.js";
7
+ import { approvalsPostApprovalsByApprovalIdReject } from "../funcs/approvals-post-approvals-by-approval-id-reject.js";
6
8
  import { approvalsPostApprovals } from "../funcs/approvals-post-approvals.js";
7
9
  import { ClientSDK } from "../lib/sdks.js";
8
10
  import { unwrapAsync } from "../types/fp.js";
@@ -34,5 +36,23 @@ export class Approvals extends ClientSDK {
34
36
  async getApprovalsByApprovalIdStatus(approvalId, options) {
35
37
  return unwrapAsync(approvalsGetApprovalsByApprovalIdStatus(this, approvalId, options));
36
38
  }
39
+ /**
40
+ * Approve an approval as its designated approver
41
+ *
42
+ * @remarks
43
+ * Consumes the approval and its intent and queues the transfer command in one transaction, then publishes it. Answers 202 {approvalId, status, commandId} as soon as the transaction commits, whether or not the publish succeeded: the body has no published flag, and GET /commands/:commandId is the outcome source. Body: {stepUpChallengeId?} (strict; empty is {}). A verified step-up challenge bound to this approval and this approver is required (409 stepup_required otherwise). A repeat is 409 approval_consumed. 503 approval_contention carries Retry-After and nothing committed; 500 approval_outcome_unknown means the approval may have been consumed: do not retry, read the approval. Requires a Clossir Passport client's DPoP-bound access token with a fresh DPoP proof; a caller who is not the designated approver gets the same 404 approval_not_found as an unknown id. A body over 4096 bytes is 413.
44
+ */
45
+ async postApprovalsByApprovalIdApprove(approvalId, body, options) {
46
+ return unwrapAsync(approvalsPostApprovalsByApprovalIdApprove(this, approvalId, body, options));
47
+ }
48
+ /**
49
+ * Reject an approval as its designated approver
50
+ *
51
+ * @remarks
52
+ * Declines a requested approval; its intent can no longer be executed through it. Synchronous 200 with the approval (status rejected). No Kafka. Body: {} (strict; empty is {}). A consumed approval is 409 approval_consumed, a rejected or withdrawn one 409 illegal_transition, an expired one 409 approval_expired. Requires a Clossir Passport client's DPoP-bound access token with a fresh DPoP proof; a caller who is not the designated approver gets the same 404 approval_not_found as an unknown id. A body over 4096 bytes is 413.
53
+ */
54
+ async postApprovalsByApprovalIdReject(approvalId, body, options) {
55
+ return unwrapAsync(approvalsPostApprovalsByApprovalIdReject(this, approvalId, body, options));
56
+ }
37
57
  }
38
58
  //# sourceMappingURL=approvals.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"approvals.js","sourceRoot":"","sources":["../../src/sdk/approvals.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,uCAAuC,EAAE,MAAM,2DAA2D,CAAC;AACpH,OAAO,EAAE,iCAAiC,EAAE,MAAM,oDAAoD,CAAC;AACvG,OAAO,EAAE,sBAAsB,EAAE,MAAM,sCAAsC,CAAC;AAC9E,OAAO,EAAE,SAAS,EAAkB,MAAM,gBAAgB,CAAC;AAE3D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,MAAM,OAAO,SAAU,SAAQ,SAAS;IACtC;;;;;OAKG;IACH,KAAK,CAAC,aAAa,CACjB,OAAwC,EACxC,OAAwB,EACmB;QAC3C,OAAO,WAAW,CAAC,sBAAsB,CACvC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IAAA,CACJ;IAED;;;;;OAKG;IACH,KAAK,CAAC,wBAAwB,CAC5B,UAAkB,EAClB,OAAwB,EAC8B;QACtD,OAAO,WAAW,CAAC,iCAAiC,CAClD,IAAI,EACJ,UAAU,EACV,OAAO,CACR,CAAC,CAAC;IAAA,CACJ;IAED;;;;;OAKG;IACH,KAAK,CAAC,8BAA8B,CAClC,UAAkB,EAClB,OAAwB,EACoC;QAC5D,OA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I,EACJ,UAAU,EACV,IAAI,EACJ,OAAO,CACR,CAAC,CAAC;IAAA,CACJ;IAED;;;;;OAKG;IACH,KAAK,CAAC,+BAA+B,CACnC,UAAkB,EAClB,IAAwE,EACxE,OAAwB,EACqC;QAC7D,OAAO,WAAW,CAAC,wCAAwC,CACzD,IAAI,EACJ,UAAU,EACV,IAAI,EACJ,OAAO,CACR,CAAC,CAAC;IAAA,CACJ;CACF"}
@@ -12,7 +12,7 @@ export declare class Assets extends ClientSDK {
12
12
  * Create a new asset
13
13
  *
14
14
  * @remarks
15
- * Creates a compliance-regulated asset definition (CRE, security token, etc.). The asset is not deployed on-chain until explicitly triggered. Requires write:assets permission. decimals is optional and must be 18 (the ClossirAssetOFT contract's own); any other value returns 422 with title unsupported_decimals.
15
+ * Creates a compliance-regulated asset definition (CRE, security token, etc.). The asset is not deployed on-chain until explicitly triggered. Requires write:assets permission. decimals is optional and must be 18 (the ClossirAssetOFT contract's own); any other value returns 422 with title unsupported_decimals. A compliance_rules.blocked_countries entry that names no country returns 422 validation_failed with property pointing at the entry; the value is not echoed.
16
16
  */
17
17
  postOrgsByOrgIdAssets(security: operations.PostOrgsByOrgIdAssetsSecurity, orgId: string, body: operations.PostOrgsByOrgIdAssetsRequestBody, options?: RequestOptions): Promise<operations.PostOrgsByOrgIdAssetsResponse>;
18
18
  /**
@@ -26,7 +26,7 @@ export declare class Assets extends ClientSDK {
26
26
  * Update asset
27
27
  *
28
28
  * @remarks
29
- * Queue an update to the asset's details, compliance configuration, holding restriction (`org_only`) or discovery visibility (`visibility`). Server-managed fields (status, deployed_chains, contract_addresses, launched_at, created_by, organization_id, id) are ignored. `visibility: "public"` together with `org_only: true` in one body is rejected 422 `visibility_conflict`; `visibility: "public"` on an asset that is already `org_only` is accepted but the asset stays undiscoverable until `org_only` is false. The asset must belong to the organization in the path, otherwise 404. Returns 202; poll GET /orgs/:orgId/assets/:assetId for the applied state. JWT callers need the admin or operator role in that organization; API keys need the assets:write permission.
29
+ * Queue an update to the asset's details, compliance configuration, holding restriction (`org_only`) or discovery visibility (`visibility`). Server-managed fields (status, deployed_chains, contract_addresses, launched_at, created_by, organization_id, id) are ignored. `visibility: "public"` together with `org_only: true` in one body is rejected 422 `visibility_conflict`; `visibility: "public"` on an asset that is already `org_only` is accepted but the asset stays undiscoverable until `org_only` is false. The asset must belong to the organization in the path, otherwise 404. A compliance_rules.blocked_countries entry that names no country returns 422 validation_failed with property pointing at the entry; the value is not echoed. Resending the stored list unchanged, in any order, is accepted. Returns 202; poll GET /orgs/:orgId/assets/:assetId for the applied state. JWT callers need the admin or operator role in that organization; API keys need the assets:write permission.
30
30
  */
31
31
  patchOrgsByOrgIdAssetsByAssetId(security: operations.PatchOrgsByOrgIdAssetsByAssetIdSecurity, orgId: string, assetId: string, body: operations.PatchOrgsByOrgIdAssetsByAssetIdRequestBody, options?: RequestOptions): Promise<operations.PatchOrgsByOrgIdAssetsByAssetIdResponse>;
32
32
  /**
package/esm/sdk/assets.js CHANGED
@@ -33,7 +33,7 @@ export class Assets extends ClientSDK {
33
33
  * Create a new asset
34
34
  *
35
35
  * @remarks
36
- * Creates a compliance-regulated asset definition (CRE, security token, etc.). The asset is not deployed on-chain until explicitly triggered. Requires write:assets permission. decimals is optional and must be 18 (the ClossirAssetOFT contract's own); any other value returns 422 with title unsupported_decimals.
36
+ * Creates a compliance-regulated asset definition (CRE, security token, etc.). The asset is not deployed on-chain until explicitly triggered. Requires write:assets permission. decimals is optional and must be 18 (the ClossirAssetOFT contract's own); any other value returns 422 with title unsupported_decimals. A compliance_rules.blocked_countries entry that names no country returns 422 validation_failed with property pointing at the entry; the value is not echoed.
37
37
  */
38
38
  async postOrgsByOrgIdAssets(security, orgId, body, options) {
39
39
  return unwrapAsync(assetsPostOrgsByOrgIdAssets(this, security, orgId, body, options));
@@ -51,7 +51,7 @@ export class Assets extends ClientSDK {
51
51
  * Update asset
52
52
  *
53
53
  * @remarks
54
- * Queue an update to the asset's details, compliance configuration, holding restriction (`org_only`) or discovery visibility (`visibility`). Server-managed fields (status, deployed_chains, contract_addresses, launched_at, created_by, organization_id, id) are ignored. `visibility: "public"` together with `org_only: true` in one body is rejected 422 `visibility_conflict`; `visibility: "public"` on an asset that is already `org_only` is accepted but the asset stays undiscoverable until `org_only` is false. The asset must belong to the organization in the path, otherwise 404. Returns 202; poll GET /orgs/:orgId/assets/:assetId for the applied state. JWT callers need the admin or operator role in that organization; API keys need the assets:write permission.
54
+ * Queue an update to the asset's details, compliance configuration, holding restriction (`org_only`) or discovery visibility (`visibility`). Server-managed fields (status, deployed_chains, contract_addresses, launched_at, created_by, organization_id, id) are ignored. `visibility: "public"` together with `org_only: true` in one body is rejected 422 `visibility_conflict`; `visibility: "public"` on an asset that is already `org_only` is accepted but the asset stays undiscoverable until `org_only` is false. The asset must belong to the organization in the path, otherwise 404. A compliance_rules.blocked_countries entry that names no country returns 422 validation_failed with property pointing at the entry; the value is not echoed. Resending the stored list unchanged, in any order, is accepted. Returns 202; poll GET /orgs/:orgId/assets/:assetId for the applied state. JWT callers need the admin or operator role in that organization; API keys need the assets:write permission.
55
55
  */
56
56
  async patchOrgsByOrgIdAssetsByAssetId(security, orgId, assetId, body, options) {
57
57
  return unwrapAsync(assetsPatchOrgsByOrgIdAssetsByAssetId(this, security, orgId, assetId, body, options));
@@ -26,7 +26,7 @@ export declare class Attestations extends ClientSDK {
26
26
  * Revoke attestation (async)
27
27
  *
28
28
  * @remarks
29
- * Queues an attestation revocation via LayerZero. Marks the attestation as pending revocation and publishes a command to Kafka. Returns 202 Accepted immediately. Poll GET /attestations/:id to track the revocation status.
29
+ * Queues an attestation revocation via LayerZero. Marks the attestation as pending revocation and publishes a command to Kafka. Returns 202 Accepted. Poll GET /attestations/:id to track the revocation status. 503 with Retry-After: the signing organisation could not be read and nothing was written; retry after that many seconds. 503 without Retry-After: the revocation is recorded but its command was not confirmed sent; do not retry (a retry answers 400).
30
30
  */
31
31
  deleteAttestationsById(id: string, body: operations.DeleteAttestationsByIdRequestBody, options?: RequestOptions): Promise<operations.DeleteAttestationsByIdResponse>;
32
32
  /**
@@ -42,7 +42,7 @@ export class Attestations extends ClientSDK {
42
42
  * Revoke attestation (async)
43
43
  *
44
44
  * @remarks
45
- * Queues an attestation revocation via LayerZero. Marks the attestation as pending revocation and publishes a command to Kafka. Returns 202 Accepted immediately. Poll GET /attestations/:id to track the revocation status.
45
+ * Queues an attestation revocation via LayerZero. Marks the attestation as pending revocation and publishes a command to Kafka. Returns 202 Accepted. Poll GET /attestations/:id to track the revocation status. 503 with Retry-After: the signing organisation could not be read and nothing was written; retry after that many seconds. 503 without Retry-After: the revocation is recorded but its command was not confirmed sent; do not retry (a retry answers 400).
46
46
  */
47
47
  async deleteAttestationsById(id, body, options) {
48
48
  return unwrapAsync(attestationsDeleteAttestationsById(this, id, body, options));
@@ -5,7 +5,7 @@ export declare class Commands extends ClientSDK {
5
5
  * Get command lifecycle
6
6
  *
7
7
  * @remarks
8
- * Returns the lifecycle of one on-chain command the caller can see: org commands to members of the org, initiator commands to the user who initiated them. API keys see org commands only. Another org's command, another user's command, a malformed id and an absent id all return the same 404. stage moves accepted -> submitted -> mined -> final | reverted | failed. final = SOURCE-chain finality (leg is always "source"); for a cross-chain transfer, LayerZero delivery to dstChainEid is tracked separately. unconfirmed is a non-terminal flag (no_broadcast_seen | dropped | stuck_unmined) and is null once the command is terminal. partial = final with another tx of the command reverted or failed.
8
+ * Returns the lifecycle of one on-chain command the caller can see: org commands to members of the org, initiator commands to the user who initiated them. API keys see org commands only. Another org's command, another user's command, a malformed id and an absent id all return the same 404. stage moves accepted -> submitted -> mined -> final | reverted | failed. final = SOURCE-chain finality (leg is always "source"). For a final, whole cross-chain transfer to a tracked dstChainEid, delivery reports the destination leg: state is pending | delivered | needs_attention | undeliverable. delivered = the destination credit booked from a finalized block for the same guid, quantity and recipient; dstTxHash is set if and only if state is delivered. delivered can read pending again if the destination cursor is reset, so a client that treats delivered as final must keep the first delivered answer. delivery is null for every other command, including an untracked destination. unconfirmed is a non-terminal flag (no_broadcast_seen | dropped | stuck_unmined) and is null once the command is terminal. partial = final with another tx of the command reverted or failed.
9
9
  */
10
10
  getCommandsByCommandId(commandId: string, options?: RequestOptions): Promise<operations.GetCommandsByCommandIdResponse>;
11
11
  }
@@ -9,7 +9,7 @@ export class Commands extends ClientSDK {
9
9
  * Get command lifecycle
10
10
  *
11
11
  * @remarks
12
- * Returns the lifecycle of one on-chain command the caller can see: org commands to members of the org, initiator commands to the user who initiated them. API keys see org commands only. Another org's command, another user's command, a malformed id and an absent id all return the same 404. stage moves accepted -> submitted -> mined -> final | reverted | failed. final = SOURCE-chain finality (leg is always "source"); for a cross-chain transfer, LayerZero delivery to dstChainEid is tracked separately. unconfirmed is a non-terminal flag (no_broadcast_seen | dropped | stuck_unmined) and is null once the command is terminal. partial = final with another tx of the command reverted or failed.
12
+ * Returns the lifecycle of one on-chain command the caller can see: org commands to members of the org, initiator commands to the user who initiated them. API keys see org commands only. Another org's command, another user's command, a malformed id and an absent id all return the same 404. stage moves accepted -> submitted -> mined -> final | reverted | failed. final = SOURCE-chain finality (leg is always "source"). For a final, whole cross-chain transfer to a tracked dstChainEid, delivery reports the destination leg: state is pending | delivered | needs_attention | undeliverable. delivered = the destination credit booked from a finalized block for the same guid, quantity and recipient; dstTxHash is set if and only if state is delivered. delivered can read pending again if the destination cursor is reset, so a client that treats delivered as final must keep the first delivered answer. delivery is null for every other command, including an untracked destination. unconfirmed is a non-terminal flag (no_broadcast_seen | dropped | stuck_unmined) and is null once the command is terminal. partial = final with another tx of the command reverted or failed.
13
13
  */
14
14
  async getCommandsByCommandId(commandId, options) {
15
15
  return unwrapAsync(commandsGetCommandsByCommandId(this, commandId, options));
@@ -12,7 +12,7 @@ export declare class Compliance extends ClientSDK {
12
12
  * Update asset compliance policy
13
13
  *
14
14
  * @remarks
15
- * Updates the compliance policy for an asset. Stores changes in the database immediately. If chain_eid is provided and the asset is deployed on that chain, also queues an on-chain policy registration via CQRS (returns 202). Supports regulation presets (RegD 506b/c, RegS, RegA+ Tier 2) via the regulation_type field. The onChainSyncOutcome field names which on-chain path ran — queued, not_requested, chain_not_deployed, no_contract_address, no_deployer_wallet or publish_failed — so a caller can tell the five non-queued outcomes apart. The local policy update is committed in every one of them, including publish_failed.
15
+ * Updates the compliance policy for an asset. Stores changes in the database immediately. If chain_eid is provided and the asset is deployed on that chain, also queues an on-chain policy registration via CQRS (returns 202). Supports regulation presets (RegD 506b/c, RegS, RegA+ Tier 2) via the regulation_type field. The onChainSyncOutcome field names which on-chain path ran — queued, not_requested, chain_not_deployed, no_contract_address, no_deployer_wallet or publish_failed — so a caller can tell the five non-queued outcomes apart. On an edit the local policy update is committed in every one of them, including publish_failed. A body with only chain_eid publishes the stored policy, writes nothing and answers updated: false. The caller must also have access to the organization that owns the asset. A blocked_countries entry that names no country returns 422 validation_failed with property pointing at the entry; the value is not echoed. Resending the stored list unchanged, in any order, is accepted.
16
16
  */
17
17
  postOrgsByOrgIdAssetsByAssetIdCompliancePolicy(security: operations.PostOrgsByOrgIdAssetsByAssetIdCompliancePolicySecurity, orgId: string, assetId: string, body: operations.PostOrgsByOrgIdAssetsByAssetIdCompliancePolicyRequestBody, options?: RequestOptions): Promise<operations.PostOrgsByOrgIdAssetsByAssetIdCompliancePolicyResponse>;
18
18
  /**
@@ -23,7 +23,7 @@ export class Compliance extends ClientSDK {
23
23
  * Update asset compliance policy
24
24
  *
25
25
  * @remarks
26
- * Updates the compliance policy for an asset. Stores changes in the database immediately. If chain_eid is provided and the asset is deployed on that chain, also queues an on-chain policy registration via CQRS (returns 202). Supports regulation presets (RegD 506b/c, RegS, RegA+ Tier 2) via the regulation_type field. The onChainSyncOutcome field names which on-chain path ran — queued, not_requested, chain_not_deployed, no_contract_address, no_deployer_wallet or publish_failed — so a caller can tell the five non-queued outcomes apart. The local policy update is committed in every one of them, including publish_failed.
26
+ * Updates the compliance policy for an asset. Stores changes in the database immediately. If chain_eid is provided and the asset is deployed on that chain, also queues an on-chain policy registration via CQRS (returns 202). Supports regulation presets (RegD 506b/c, RegS, RegA+ Tier 2) via the regulation_type field. The onChainSyncOutcome field names which on-chain path ran — queued, not_requested, chain_not_deployed, no_contract_address, no_deployer_wallet or publish_failed — so a caller can tell the five non-queued outcomes apart. On an edit the local policy update is committed in every one of them, including publish_failed. A body with only chain_eid publishes the stored policy, writes nothing and answers updated: false. The caller must also have access to the organization that owns the asset. A blocked_countries entry that names no country returns 422 validation_failed with property pointing at the entry; the value is not echoed. Resending the stored list unchanged, in any order, is accepted.
27
27
  */
28
28
  async postOrgsByOrgIdAssetsByAssetIdCompliancePolicy(security, orgId, assetId, body, options) {
29
29
  return unwrapAsync(compliancePostOrgsByOrgIdAssetsByAssetIdCompliancePolicy(this, security, orgId, assetId, body, options));
@@ -201,7 +201,7 @@ export declare class Organizations extends ClientSDK {
201
201
  * Attest member wallets on behalf of org
202
202
  *
203
203
  * @remarks
204
- * Triggers an attestation for one or more of a member's wallets. The organization acts as the attesting authority (e.g., a bank completing KYC for a client). If walletAddresses is omitted, all user wallets are attested. If chainEid is omitted, attestations are created on all chains where wallets exist. Returns 202 Accepted — attestations are processed asynchronously via Kafka workers. Returns 409 attestation_in_force, and writes nothing, if any selected wallet already holds an attestation on that chain that is pending, submitting or active; a new attestation can be issued once it has failed, expired or been revoked. Returns 409 attestation_reinstate_unsupported for a revoked attestation on Solana. expiresAt, when given, must be a future ISO 8601 date-time (400 otherwise). Requires staff role (admin, operator, compliance_officer) or API key with write:attestations permission.
204
+ * Triggers an attestation for one or more of a member's wallets. The organization acts as the attesting authority (e.g., a bank completing KYC for a client). If walletAddresses is omitted, all user wallets are attested. If chainEid is omitted, attestations are created on all chains where wallets exist. Returns 202 Accepted — attestations are processed asynchronously via Kafka workers. The member must hold an approved, current Clossir verification: the attestation's KYC level is that verification's level and its expiry is capped at the verification's expiry. Returns 409 member_kyc_required, and writes nothing, when the member has no approved, current Clossir verification. kycLevel and countryCode are deprecated and ignored. Returns 409 attestation_in_force, and writes nothing, if any selected wallet already holds an attestation on that chain that is pending, submitting or active; a new attestation can be issued once it has failed, expired or been revoked. Returns 409 attestation_reinstate_unsupported for a revoked attestation on Solana. expiresAt, when given, must be a future ISO 8601 date-time (400 otherwise). Requires staff role (admin, operator, compliance_officer) or API key with write:attestations permission.
205
205
  */
206
206
  postOrgsByOrgIdMembersByUserIdAttest(security: operations.PostOrgsByOrgIdMembersByUserIdAttestSecurity, orgId: string, userId: string, body: operations.PostOrgsByOrgIdMembersByUserIdAttestRequestBody, options?: RequestOptions): Promise<operations.PostOrgsByOrgIdMembersByUserIdAttestResponse>;
207
207
  /**
@@ -347,7 +347,7 @@ export declare class Organizations extends ClientSDK {
347
347
  * Update organization compliance config
348
348
  *
349
349
  * @remarks
350
- * Creates or updates the compliance configuration for an organization. Requires admin or compliance_officer role.
350
+ * Creates or updates the compliance configuration for an organization. Requires admin or compliance_officer role. A blocked_jurisdictions entry that is not the canonical ISO 3166-1 upper-case alpha-2 form — including a mappable alias such as UK — returns 422 validation_failed with property pointing at the entry; the value is not echoed. Resending the stored list unchanged, in any order, is accepted.
351
351
  */
352
352
  putOrgsByOrgIdCompliance(orgId: string, body: operations.PutOrgsByOrgIdComplianceRequestBody, options?: RequestOptions): Promise<operations.PutOrgsByOrgIdComplianceResponse>;
353
353
  /**
@@ -313,7 +313,7 @@ export class Organizations extends ClientSDK {
313
313
  * Attest member wallets on behalf of org
314
314
  *
315
315
  * @remarks
316
- * Triggers an attestation for one or more of a member's wallets. The organization acts as the attesting authority (e.g., a bank completing KYC for a client). If walletAddresses is omitted, all user wallets are attested. If chainEid is omitted, attestations are created on all chains where wallets exist. Returns 202 Accepted — attestations are processed asynchronously via Kafka workers. Returns 409 attestation_in_force, and writes nothing, if any selected wallet already holds an attestation on that chain that is pending, submitting or active; a new attestation can be issued once it has failed, expired or been revoked. Returns 409 attestation_reinstate_unsupported for a revoked attestation on Solana. expiresAt, when given, must be a future ISO 8601 date-time (400 otherwise). Requires staff role (admin, operator, compliance_officer) or API key with write:attestations permission.
316
+ * Triggers an attestation for one or more of a member's wallets. The organization acts as the attesting authority (e.g., a bank completing KYC for a client). If walletAddresses is omitted, all user wallets are attested. If chainEid is omitted, attestations are created on all chains where wallets exist. Returns 202 Accepted — attestations are processed asynchronously via Kafka workers. The member must hold an approved, current Clossir verification: the attestation's KYC level is that verification's level and its expiry is capped at the verification's expiry. Returns 409 member_kyc_required, and writes nothing, when the member has no approved, current Clossir verification. kycLevel and countryCode are deprecated and ignored. Returns 409 attestation_in_force, and writes nothing, if any selected wallet already holds an attestation on that chain that is pending, submitting or active; a new attestation can be issued once it has failed, expired or been revoked. Returns 409 attestation_reinstate_unsupported for a revoked attestation on Solana. expiresAt, when given, must be a future ISO 8601 date-time (400 otherwise). Requires staff role (admin, operator, compliance_officer) or API key with write:attestations permission.
317
317
  */
318
318
  async postOrgsByOrgIdMembersByUserIdAttest(security, orgId, userId, body, options) {
319
319
  return unwrapAsync(organizationsPostOrgsByOrgIdMembersByUserIdAttest(this, security, orgId, userId, body, options));
@@ -505,7 +505,7 @@ export class Organizations extends ClientSDK {
505
505
  * Update organization compliance config
506
506
  *
507
507
  * @remarks
508
- * Creates or updates the compliance configuration for an organization. Requires admin or compliance_officer role.
508
+ * Creates or updates the compliance configuration for an organization. Requires admin or compliance_officer role. A blocked_jurisdictions entry that is not the canonical ISO 3166-1 upper-case alpha-2 form — including a mappable alias such as UK — returns 422 validation_failed with property pointing at the entry; the value is not echoed. Resending the stored list unchanged, in any order, is accepted.
509
509
  */
510
510
  async putOrgsByOrgIdCompliance(orgId, body, options) {
511
511
  return unwrapAsync(organizationsPutOrgsByOrgIdCompliance(this, orgId, body, options));
package/jsr.json CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  {
4
4
  "name": "@clossir-tech/ts-sdk",
5
- "version": "0.11.0",
5
+ "version": "0.11.2",
6
6
  "exports": {
7
7
  ".": "./src/index.ts",
8
8
  "./models/errors": "./src/models/errors/index.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clossir-tech/ts-sdk",
3
- "version": "0.11.0",
3
+ "version": "0.11.2",
4
4
  "author": "Clossir Team",
5
5
  "description": "TypeScript SDK for the Clossir platform API",
6
6
  "homepage": "https://docs.clossir.com",
@@ -9,8 +9,8 @@
9
9
  "registry": "https://registry.npmjs.org"
10
10
  },
11
11
  "repository": {
12
- "type": "git",
13
- "url": "git+https://github.com/SignumIdentity/signum-api.git"
12
+ "url": "git+https://github.com/SignumIdentity/signum-api.git",
13
+ "type": "git"
14
14
  },
15
15
  "type": "module",
16
16
  "main": "./esm/index.js",
@@ -0,0 +1,157 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { ClossirCore } from "../core.js";
6
+ import { matchStatusCode } from "../lib/http.js";
7
+ import * as M from "../lib/matchers.js";
8
+ import { compactMap } from "../lib/primitives.js";
9
+ import { RequestOptions } from "../lib/sdks.js";
10
+ import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
11
+ import { pathToFunc } from "../lib/url.js";
12
+ import {
13
+ ConnectionError,
14
+ InvalidRequestError,
15
+ RequestAbortedError,
16
+ RequestTimeoutError,
17
+ UnexpectedClientError,
18
+ } from "../models/errors/http-client-errors.js";
19
+ import * as errors from "../models/errors/index.js";
20
+ import { ResponseValidationError } from "../models/errors/response-validation-error.js";
21
+ import { SDKError } from "../models/errors/sdk-error.js";
22
+ import { SDKValidationError } from "../models/errors/sdk-validation-error.js";
23
+ import * as operations from "../models/operations/index.js";
24
+ import { APICall, APIPromise } from "../types/async.js";
25
+ import { Result } from "../types/fp.js";
26
+
27
+ /**
28
+ * Cash assets the platform supports
29
+ *
30
+ * @remarks
31
+ * The cash assets (stablecoins) the platform supports, with the token address on each chain. The same for every caller. API keys are refused.
32
+ *
33
+ * If set, this operation will use {@link Security.bearerAuth} from the global security.
34
+ */
35
+ export function accountsGetAccountsCashAssets(
36
+ client: ClossirCore,
37
+ options?: RequestOptions,
38
+ ): APIPromise<
39
+ Result<
40
+ operations.GetAccountsCashAssetsResponse,
41
+ | errors.ProblemDetailsError
42
+ | SDKError
43
+ | ResponseValidationError
44
+ | ConnectionError
45
+ | RequestAbortedError
46
+ | RequestTimeoutError
47
+ | InvalidRequestError
48
+ | UnexpectedClientError
49
+ | SDKValidationError
50
+ >
51
+ > {
52
+ return new APIPromise($do(
53
+ client,
54
+ options,
55
+ ));
56
+ }
57
+
58
+ async function $do(
59
+ client: ClossirCore,
60
+ options?: RequestOptions,
61
+ ): Promise<
62
+ [
63
+ Result<
64
+ operations.GetAccountsCashAssetsResponse,
65
+ | errors.ProblemDetailsError
66
+ | SDKError
67
+ | ResponseValidationError
68
+ | ConnectionError
69
+ | RequestAbortedError
70
+ | RequestTimeoutError
71
+ | InvalidRequestError
72
+ | UnexpectedClientError
73
+ | SDKValidationError
74
+ >,
75
+ APICall,
76
+ ]
77
+ > {
78
+ const path = pathToFunc("/accounts/cash-assets")();
79
+
80
+ const headers = new Headers(compactMap({
81
+ Accept: "application/json",
82
+ }));
83
+
84
+ const secConfig = await extractSecurity(client._options.bearerAuth);
85
+ const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
86
+ const requestSecurity = resolveGlobalSecurity(securityInput, [0]);
87
+
88
+ const context = {
89
+ options: client._options,
90
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
91
+ operationID: "getAccountsCash-assets",
92
+ oAuth2Scopes: null,
93
+
94
+ resolvedSecurity: requestSecurity,
95
+
96
+ securitySource: client._options.bearerAuth,
97
+ retryConfig: options?.retries
98
+ || client._options.retryConfig
99
+ || { strategy: "none" },
100
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
101
+ };
102
+
103
+ const requestRes = client._createRequest(context, {
104
+ security: requestSecurity,
105
+ method: "GET",
106
+ baseURL: options?.serverURL,
107
+ path: path,
108
+ headers: headers,
109
+ userAgent: client._options.userAgent,
110
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
111
+ }, options);
112
+ if (!requestRes.ok) {
113
+ return [requestRes, { status: "invalid" }];
114
+ }
115
+ const req = requestRes.value;
116
+
117
+ const doResult = await client._do(req, {
118
+ context,
119
+ isErrorStatusCode: (statusCode: number) =>
120
+ matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
121
+ retryConfig: context.retryConfig,
122
+ retryCodes: context.retryCodes,
123
+ });
124
+ if (!doResult.ok) {
125
+ return [doResult, { status: "request-error", request: req }];
126
+ }
127
+ const response = doResult.value;
128
+
129
+ const responseFields = {
130
+ HttpMeta: { Response: response, Request: req },
131
+ };
132
+
133
+ const [result] = await M.match<
134
+ operations.GetAccountsCashAssetsResponse,
135
+ | errors.ProblemDetailsError
136
+ | SDKError
137
+ | ResponseValidationError
138
+ | ConnectionError
139
+ | RequestAbortedError
140
+ | RequestTimeoutError
141
+ | InvalidRequestError
142
+ | UnexpectedClientError
143
+ | SDKValidationError
144
+ >(
145
+ M.json(200, operations.GetAccountsCashAssetsResponse$inboundSchema),
146
+ M.jsonErr([401, 428], errors.ProblemDetailsError$inboundSchema, {
147
+ ctype: "application/problem+json",
148
+ }),
149
+ M.fail("4XX"),
150
+ M.fail("5XX"),
151
+ )(response, req, { extraFields: responseFields });
152
+ if (!result.ok) {
153
+ return [result, { status: "complete", request: req, response }];
154
+ }
155
+
156
+ return [result, { status: "complete", request: req, response }];
157
+ }