@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
@@ -0,0 +1,207 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v4-mini";
6
+ import { safeParse } from "../../lib/schemas.js";
7
+ import * as openEnums from "../../types/enums.js";
8
+ import { ClosedEnum, OpenEnum } from "../../types/enums.js";
9
+ import { Result as SafeParseResult } from "../../types/fp.js";
10
+ import * as types from "../../types/primitives.js";
11
+ import { SDKValidationError } from "../errors/sdk-validation-error.js";
12
+
13
+ export type PostApprovalsByApprovalIdRejectRequestBody = {};
14
+
15
+ export type PostApprovalsByApprovalIdRejectRequest = {
16
+ approvalId: string;
17
+ body?: PostApprovalsByApprovalIdRejectRequestBody | undefined;
18
+ };
19
+
20
+ export const PostApprovalsByApprovalIdRejectError = {
21
+ UpdateRequired: "update_required",
22
+ } as const;
23
+ export type PostApprovalsByApprovalIdRejectError = ClosedEnum<
24
+ typeof PostApprovalsByApprovalIdRejectError
25
+ >;
26
+
27
+ /**
28
+ * How the approval is to be decided.
29
+ */
30
+ export const PostApprovalsByApprovalIdRejectMethod = {
31
+ Session: "session",
32
+ Passkey: "passkey",
33
+ } as const;
34
+ /**
35
+ * How the approval is to be decided.
36
+ */
37
+ export type PostApprovalsByApprovalIdRejectMethod = OpenEnum<
38
+ typeof PostApprovalsByApprovalIdRejectMethod
39
+ >;
40
+
41
+ export const PostApprovalsByApprovalIdRejectStatus = {
42
+ Requested: "requested",
43
+ Approved: "approved",
44
+ Consumed: "consumed",
45
+ Rejected: "rejected",
46
+ Expired: "expired",
47
+ Withdrawn: "withdrawn",
48
+ } as const;
49
+ export type PostApprovalsByApprovalIdRejectStatus = OpenEnum<
50
+ typeof PostApprovalsByApprovalIdRejectStatus
51
+ >;
52
+
53
+ export const PostApprovalsByApprovalIdRejectFeePayer = {
54
+ User: "user",
55
+ Org: "org",
56
+ Platform: "platform",
57
+ } as const;
58
+ export type PostApprovalsByApprovalIdRejectFeePayer = OpenEnum<
59
+ typeof PostApprovalsByApprovalIdRejectFeePayer
60
+ >;
61
+
62
+ /**
63
+ * ApprovalResponse. Validated server-side against ApprovalResponseSchema from @signum-tech/contracts before it is sent.
64
+ */
65
+ export type PostApprovalsByApprovalIdRejectResponse = {
66
+ id: string;
67
+ intentId: string;
68
+ /**
69
+ * The organization the approval belongs to; null for a personal approval.
70
+ */
71
+ orgId: string | null;
72
+ /**
73
+ * How the approval is to be decided.
74
+ */
75
+ method: PostApprovalsByApprovalIdRejectMethod;
76
+ status: PostApprovalsByApprovalIdRejectStatus;
77
+ /**
78
+ * The requester's stated purpose, as plain text.
79
+ */
80
+ purpose: string;
81
+ /**
82
+ * The origin the request came from, when the requester sent one.
83
+ */
84
+ sourceOrigin: string | null;
85
+ feePayer: PostApprovalsByApprovalIdRejectFeePayer;
86
+ /**
87
+ * ISO 8601 UTC time, millisecond precision.
88
+ */
89
+ createdAt: string;
90
+ /**
91
+ * ISO 8601 UTC time, millisecond precision.
92
+ */
93
+ expiresAt: string;
94
+ /**
95
+ * ISO 8601 UTC time, millisecond precision. Null until the approval is decided.
96
+ */
97
+ decidedAt: string | null;
98
+ /**
99
+ * ISO 8601 UTC time, millisecond precision. Null until the approval is consumed.
100
+ */
101
+ consumedAt: string | null;
102
+ };
103
+
104
+ /** @internal */
105
+ export type PostApprovalsByApprovalIdRejectRequestBody$Outbound = {};
106
+
107
+ /** @internal */
108
+ export const PostApprovalsByApprovalIdRejectRequestBody$outboundSchema:
109
+ z.ZodMiniType<
110
+ PostApprovalsByApprovalIdRejectRequestBody$Outbound,
111
+ PostApprovalsByApprovalIdRejectRequestBody
112
+ > = z.object({});
113
+
114
+ export function postApprovalsByApprovalIdRejectRequestBodyToJSON(
115
+ postApprovalsByApprovalIdRejectRequestBody:
116
+ PostApprovalsByApprovalIdRejectRequestBody,
117
+ ): string {
118
+ return JSON.stringify(
119
+ PostApprovalsByApprovalIdRejectRequestBody$outboundSchema.parse(
120
+ postApprovalsByApprovalIdRejectRequestBody,
121
+ ),
122
+ );
123
+ }
124
+
125
+ /** @internal */
126
+ export type PostApprovalsByApprovalIdRejectRequest$Outbound = {
127
+ approvalId: string;
128
+ body?: PostApprovalsByApprovalIdRejectRequestBody$Outbound | undefined;
129
+ };
130
+
131
+ /** @internal */
132
+ export const PostApprovalsByApprovalIdRejectRequest$outboundSchema:
133
+ z.ZodMiniType<
134
+ PostApprovalsByApprovalIdRejectRequest$Outbound,
135
+ PostApprovalsByApprovalIdRejectRequest
136
+ > = z.object({
137
+ approvalId: z.string(),
138
+ body: z.optional(
139
+ z.lazy(() => PostApprovalsByApprovalIdRejectRequestBody$outboundSchema),
140
+ ),
141
+ });
142
+
143
+ export function postApprovalsByApprovalIdRejectRequestToJSON(
144
+ postApprovalsByApprovalIdRejectRequest:
145
+ PostApprovalsByApprovalIdRejectRequest,
146
+ ): string {
147
+ return JSON.stringify(
148
+ PostApprovalsByApprovalIdRejectRequest$outboundSchema.parse(
149
+ postApprovalsByApprovalIdRejectRequest,
150
+ ),
151
+ );
152
+ }
153
+
154
+ /** @internal */
155
+ export const PostApprovalsByApprovalIdRejectError$inboundSchema: z.ZodMiniEnum<
156
+ typeof PostApprovalsByApprovalIdRejectError
157
+ > = z.enum(PostApprovalsByApprovalIdRejectError);
158
+
159
+ /** @internal */
160
+ export const PostApprovalsByApprovalIdRejectMethod$inboundSchema: z.ZodMiniType<
161
+ PostApprovalsByApprovalIdRejectMethod,
162
+ unknown
163
+ > = openEnums.inboundSchema(PostApprovalsByApprovalIdRejectMethod);
164
+
165
+ /** @internal */
166
+ export const PostApprovalsByApprovalIdRejectStatus$inboundSchema: z.ZodMiniType<
167
+ PostApprovalsByApprovalIdRejectStatus,
168
+ unknown
169
+ > = openEnums.inboundSchema(PostApprovalsByApprovalIdRejectStatus);
170
+
171
+ /** @internal */
172
+ export const PostApprovalsByApprovalIdRejectFeePayer$inboundSchema:
173
+ z.ZodMiniType<PostApprovalsByApprovalIdRejectFeePayer, unknown> = openEnums
174
+ .inboundSchema(PostApprovalsByApprovalIdRejectFeePayer);
175
+
176
+ /** @internal */
177
+ export const PostApprovalsByApprovalIdRejectResponse$inboundSchema:
178
+ z.ZodMiniType<PostApprovalsByApprovalIdRejectResponse, unknown> = z.object({
179
+ id: types.string(),
180
+ intentId: types.string(),
181
+ orgId: types.nullable(types.string()),
182
+ method: PostApprovalsByApprovalIdRejectMethod$inboundSchema,
183
+ status: PostApprovalsByApprovalIdRejectStatus$inboundSchema,
184
+ purpose: types.string(),
185
+ sourceOrigin: types.nullable(types.string()),
186
+ feePayer: PostApprovalsByApprovalIdRejectFeePayer$inboundSchema,
187
+ createdAt: types.string(),
188
+ expiresAt: types.string(),
189
+ decidedAt: types.nullable(types.string()),
190
+ consumedAt: types.nullable(types.string()),
191
+ });
192
+
193
+ export function postApprovalsByApprovalIdRejectResponseFromJSON(
194
+ jsonString: string,
195
+ ): SafeParseResult<
196
+ PostApprovalsByApprovalIdRejectResponse,
197
+ SDKValidationError
198
+ > {
199
+ return safeParse(
200
+ jsonString,
201
+ (x) =>
202
+ PostApprovalsByApprovalIdRejectResponse$inboundSchema.parse(
203
+ JSON.parse(x),
204
+ ),
205
+ `Failed to parse 'PostApprovalsByApprovalIdRejectResponse' from JSON`,
206
+ );
207
+ }
@@ -31,7 +31,7 @@ export type PostAttestationsRequest = {
31
31
  */
32
32
  kycLevel?: number | undefined;
33
33
  /**
34
- * Ignored. Jurisdiction is not self-asserted; it is set only by an organization attestation.
34
+ * Ignored. Jurisdiction is not self-asserted.
35
35
  *
36
36
  * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
37
37
  */
@@ -14,7 +14,7 @@ export type PostEligibilityCheckRequest = {
14
14
  partnerClientId?: string | undefined;
15
15
  };
16
16
 
17
- export type Reason = {
17
+ export type PostEligibilityCheckReason = {
18
18
  gate: string;
19
19
  status: string;
20
20
  code?: string | undefined;
@@ -25,7 +25,7 @@ export type PostEligibilityCheckResult = {
25
25
  eligible: boolean | null;
26
26
  requiredLevel: string | null;
27
27
  currentLevel: string | null;
28
- reasons: Array<Reason>;
28
+ reasons: Array<PostEligibilityCheckReason>;
29
29
  };
30
30
 
31
31
  /**
@@ -63,19 +63,22 @@ export function postEligibilityCheckRequestToJSON(
63
63
  }
64
64
 
65
65
  /** @internal */
66
- export const Reason$inboundSchema: z.ZodMiniType<Reason, unknown> = z.object({
66
+ export const PostEligibilityCheckReason$inboundSchema: z.ZodMiniType<
67
+ PostEligibilityCheckReason,
68
+ unknown
69
+ > = z.object({
67
70
  gate: types.string(),
68
71
  status: types.string(),
69
72
  code: types.optional(types.string()),
70
73
  });
71
74
 
72
- export function reasonFromJSON(
75
+ export function postEligibilityCheckReasonFromJSON(
73
76
  jsonString: string,
74
- ): SafeParseResult<Reason, SDKValidationError> {
77
+ ): SafeParseResult<PostEligibilityCheckReason, SDKValidationError> {
75
78
  return safeParse(
76
79
  jsonString,
77
- (x) => Reason$inboundSchema.parse(JSON.parse(x)),
78
- `Failed to parse 'Reason' from JSON`,
80
+ (x) => PostEligibilityCheckReason$inboundSchema.parse(JSON.parse(x)),
81
+ `Failed to parse 'PostEligibilityCheckReason' from JSON`,
79
82
  );
80
83
  }
81
84
 
@@ -88,7 +91,7 @@ export const PostEligibilityCheckResult$inboundSchema: z.ZodMiniType<
88
91
  eligible: types.nullable(types.boolean()),
89
92
  requiredLevel: types.nullable(types.string()),
90
93
  currentLevel: types.nullable(types.string()),
91
- reasons: z.array(z.lazy(() => Reason$inboundSchema)),
94
+ reasons: z.array(z.lazy(() => PostEligibilityCheckReason$inboundSchema)),
92
95
  });
93
96
 
94
97
  export function postEligibilityCheckResultFromJSON(
@@ -55,7 +55,7 @@ export type PostOrgsByOrgIdAssetsByAssetIdMarketsByMarketIdOrdersRequestBody = {
55
55
  */
56
56
  size: string;
57
57
  /**
58
- * Maker wallet address — resolves user's signing wallet. Defaults to org server wallet if omitted.
58
+ * Your own wallet or the organisation's wallet. Defaults to the organisation's wallet if omitted.
59
59
  */
60
60
  makerAddress?: string | undefined;
61
61
  };
@@ -24,15 +24,19 @@ export type PostOrgsByOrgIdMembersByUserIdAttestRequestBody = {
24
24
  */
25
25
  chainEid?: number | undefined;
26
26
  /**
27
- * KYC level (0-4)
27
+ * Ignored. The attestation's KYC level is the member's approved, current Clossir verification level; a member without one is refused with 409 member_kyc_required.
28
+ *
29
+ * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
28
30
  */
29
- kycLevel: number;
31
+ kycLevel?: number | undefined;
30
32
  /**
31
- * ISO 3166-1 alpha-2 country code
33
+ * Ignored. Jurisdiction is not set by the organization.
34
+ *
35
+ * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
32
36
  */
33
37
  countryCode?: string | undefined;
34
38
  /**
35
- * Attestation expiry, an ISO 8601 date-time strictly in the future (400 otherwise). Also sent to the chain.
39
+ * Attestation expiry, an ISO 8601 date-time strictly in the future (400 otherwise). Capped at the member's KYC expiry. Also sent to the chain.
36
40
  */
37
41
  expiresAt?: string | undefined;
38
42
  /**
@@ -105,7 +109,7 @@ export function postOrgsByOrgIdMembersByUserIdAttestSecurityToJSON(
105
109
  export type PostOrgsByOrgIdMembersByUserIdAttestRequestBody$Outbound = {
106
110
  walletAddresses?: Array<string> | undefined;
107
111
  chainEid?: number | undefined;
108
- kycLevel: number;
112
+ kycLevel?: number | undefined;
109
113
  countryCode?: string | undefined;
110
114
  expiresAt?: string | undefined;
111
115
  isAccredited?: boolean | undefined;
@@ -120,7 +124,7 @@ export const PostOrgsByOrgIdMembersByUserIdAttestRequestBody$outboundSchema:
120
124
  > = z.object({
121
125
  walletAddresses: z.optional(z.array(z.string())),
122
126
  chainEid: z.optional(z.number()),
123
- kycLevel: z.number(),
127
+ kycLevel: z.optional(z.number()),
124
128
  countryCode: z.optional(z.string()),
125
129
  expiresAt: z.optional(z.string()),
126
130
  isAccredited: z.optional(z.boolean()),
@@ -323,6 +323,25 @@ export type PostPreflightIntentsSignedReport = {
323
323
  [additionalProperties: string]: unknown;
324
324
  };
325
325
 
326
+ export type PostPreflightIntentsIntentEcho = {
327
+ /**
328
+ * The chain the calls run on, an integer, as hashed.
329
+ */
330
+ chainId: number;
331
+ /**
332
+ * The sender, a lowercase 0x address, as hashed.
333
+ */
334
+ from: string;
335
+ /**
336
+ * The stored intent's asset id, as asserted by the server, null exactly when result.assetKind is cash, outside the hash.
337
+ */
338
+ assetId: string | null;
339
+ /**
340
+ * The intent nonce, plain text, as hashed.
341
+ */
342
+ intentNonce: string;
343
+ };
344
+
326
345
  /**
327
346
  * Response
328
347
  */
@@ -338,6 +357,10 @@ export type PostPreflightIntentsResponse = {
338
357
  * The gateway's signed report, or null when no simulation ran.
339
358
  */
340
359
  signedReport: PostPreflightIntentsSignedReport | null;
360
+ /**
361
+ * The chain, sender and nonce this answer is for. Null: not verified or not disclosed, do not sign. On the result read a first-party null comes with empty calls. Recompute result.intentHash from this body alone: the sha256 of the canonical JSON of {v: 1, chainId, from, calls: [{to, data, value}], typedData: [], intentNonce}, with v: 1 and typedData: [] constant. assetId and result.action are asserted by the server and outside the hash. Always null for a partner. Not null is necessary, not sufficient: also compare intentId, resultId, chainId, from, assetId and the decoded calls with the request, require result.status pass and an unexpired result.expiresAt, and treat a consumed intent as unsignable (the result read does not check that).
362
+ */
363
+ intentEcho: PostPreflightIntentsIntentEcho | null;
341
364
  };
342
365
 
343
366
  /** @internal */
@@ -703,6 +726,27 @@ export function postPreflightIntentsSignedReportFromJSON(
703
726
  );
704
727
  }
705
728
 
729
+ /** @internal */
730
+ export const PostPreflightIntentsIntentEcho$inboundSchema: z.ZodMiniType<
731
+ PostPreflightIntentsIntentEcho,
732
+ unknown
733
+ > = z.object({
734
+ chainId: types.number(),
735
+ from: types.string(),
736
+ assetId: types.nullable(types.string()),
737
+ intentNonce: types.string(),
738
+ });
739
+
740
+ export function postPreflightIntentsIntentEchoFromJSON(
741
+ jsonString: string,
742
+ ): SafeParseResult<PostPreflightIntentsIntentEcho, SDKValidationError> {
743
+ return safeParse(
744
+ jsonString,
745
+ (x) => PostPreflightIntentsIntentEcho$inboundSchema.parse(JSON.parse(x)),
746
+ `Failed to parse 'PostPreflightIntentsIntentEcho' from JSON`,
747
+ );
748
+ }
749
+
706
750
  /** @internal */
707
751
  export const PostPreflightIntentsResponse$inboundSchema: z.ZodMiniType<
708
752
  PostPreflightIntentsResponse,
@@ -715,6 +759,9 @@ export const PostPreflightIntentsResponse$inboundSchema: z.ZodMiniType<
715
759
  signedReport: types.nullable(
716
760
  z.lazy(() => PostPreflightIntentsSignedReport$inboundSchema),
717
761
  ),
762
+ intentEcho: types.nullable(
763
+ z.lazy(() => PostPreflightIntentsIntentEcho$inboundSchema),
764
+ ),
718
765
  });
719
766
 
720
767
  export function postPreflightIntentsResponseFromJSON(
@@ -4,7 +4,10 @@
4
4
 
5
5
  import { accountsDeleteAccountsEvmByAddress } from "../funcs/accounts-delete-accounts-evm-by-address.js";
6
6
  import { accountsDeleteAccountsSolanaByAddress } from "../funcs/accounts-delete-accounts-solana-by-address.js";
7
+ import { accountsGetAccountsCashAssets } from "../funcs/accounts-get-accounts-cash-assets.js";
8
+ import { accountsGetAccountsDepositAddresses } from "../funcs/accounts-get-accounts-deposit-addresses.js";
7
9
  import { accountsGetAccountsEvm } from "../funcs/accounts-get-accounts-evm.js";
10
+ import { accountsGetAccountsMovableWallets } from "../funcs/accounts-get-accounts-movable-wallets.js";
8
11
  import { accountsGetAccountsSolana } from "../funcs/accounts-get-accounts-solana.js";
9
12
  import { accountsGetAccountsSummary } from "../funcs/accounts-get-accounts-summary.js";
10
13
  import { accountsGetAccountsWalletsAll } from "../funcs/accounts-get-accounts-wallets-all.js";
@@ -260,4 +263,53 @@ export class Accounts extends ClientSDK {
260
263
  options,
261
264
  ));
262
265
  }
266
+
267
+ /**
268
+ * Cash assets the platform supports
269
+ *
270
+ * @remarks
271
+ * The cash assets (stablecoins) the platform supports, with the token address on each chain. The same for every caller. API keys are refused.
272
+ */
273
+ async getAccountsCashAssets(
274
+ options?: RequestOptions,
275
+ ): Promise<operations.GetAccountsCashAssetsResponse> {
276
+ return unwrapAsync(accountsGetAccountsCashAssets(
277
+ this,
278
+ options,
279
+ ));
280
+ }
281
+
282
+ /**
283
+ * Wallets the caller may move an asset from
284
+ *
285
+ * @remarks
286
+ * 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.
287
+ */
288
+ async getAccountsMovableWallets(
289
+ assetId: string,
290
+ options?: RequestOptions,
291
+ ): Promise<operations.GetAccountsMovableWalletsResponse> {
292
+ return unwrapAsync(accountsGetAccountsMovableWallets(
293
+ this,
294
+ assetId,
295
+ options,
296
+ ));
297
+ }
298
+
299
+ /**
300
+ * Where the caller can receive an asset
301
+ *
302
+ * @remarks
303
+ * 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.
304
+ */
305
+ async getAccountsDepositAddresses(
306
+ assetId: string,
307
+ options?: RequestOptions,
308
+ ): Promise<operations.GetAccountsDepositAddressesResponse> {
309
+ return unwrapAsync(accountsGetAccountsDepositAddresses(
310
+ this,
311
+ assetId,
312
+ options,
313
+ ));
314
+ }
263
315
  }
@@ -4,6 +4,8 @@
4
4
 
5
5
  import { approvalsGetApprovalsByApprovalIdStatus } from "../funcs/approvals-get-approvals-by-approval-id-status.js";
6
6
  import { approvalsGetApprovalsByApprovalId } from "../funcs/approvals-get-approvals-by-approval-id.js";
7
+ import { approvalsPostApprovalsByApprovalIdApprove } from "../funcs/approvals-post-approvals-by-approval-id-approve.js";
8
+ import { approvalsPostApprovalsByApprovalIdReject } from "../funcs/approvals-post-approvals-by-approval-id-reject.js";
7
9
  import { approvalsPostApprovals } from "../funcs/approvals-post-approvals.js";
8
10
  import { ClientSDK, RequestOptions } from "../lib/sdks.js";
9
11
  import * as operations from "../models/operations/index.js";
@@ -60,4 +62,42 @@ export class Approvals extends ClientSDK {
60
62
  options,
61
63
  ));
62
64
  }
65
+
66
+ /**
67
+ * Approve an approval as its designated approver
68
+ *
69
+ * @remarks
70
+ * 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.
71
+ */
72
+ async postApprovalsByApprovalIdApprove(
73
+ approvalId: string,
74
+ body?: operations.PostApprovalsByApprovalIdApproveRequestBody | undefined,
75
+ options?: RequestOptions,
76
+ ): Promise<operations.PostApprovalsByApprovalIdApproveResponse> {
77
+ return unwrapAsync(approvalsPostApprovalsByApprovalIdApprove(
78
+ this,
79
+ approvalId,
80
+ body,
81
+ options,
82
+ ));
83
+ }
84
+
85
+ /**
86
+ * Reject an approval as its designated approver
87
+ *
88
+ * @remarks
89
+ * 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.
90
+ */
91
+ async postApprovalsByApprovalIdReject(
92
+ approvalId: string,
93
+ body?: operations.PostApprovalsByApprovalIdRejectRequestBody | undefined,
94
+ options?: RequestOptions,
95
+ ): Promise<operations.PostApprovalsByApprovalIdRejectResponse> {
96
+ return unwrapAsync(approvalsPostApprovalsByApprovalIdReject(
97
+ this,
98
+ approvalId,
99
+ body,
100
+ options,
101
+ ));
102
+ }
63
103
  }
package/src/sdk/assets.ts CHANGED
@@ -50,7 +50,7 @@ export class Assets extends ClientSDK {
50
50
  * Create a new asset
51
51
  *
52
52
  * @remarks
53
- * 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.
53
+ * 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.
54
54
  */
55
55
  async postOrgsByOrgIdAssets(
56
56
  security: operations.PostOrgsByOrgIdAssetsSecurity,
@@ -92,7 +92,7 @@ export class Assets extends ClientSDK {
92
92
  * Update asset
93
93
  *
94
94
  * @remarks
95
- * 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.
95
+ * 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.
96
96
  */
97
97
  async patchOrgsByOrgIdAssetsByAssetId(
98
98
  security: operations.PatchOrgsByOrgIdAssetsByAssetIdSecurity,
@@ -67,7 +67,7 @@ export class Attestations extends ClientSDK {
67
67
  * Revoke attestation (async)
68
68
  *
69
69
  * @remarks
70
- * 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.
70
+ * 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).
71
71
  */
72
72
  async deleteAttestationsById(
73
73
  id: string,
@@ -12,7 +12,7 @@ export class Commands extends ClientSDK {
12
12
  * Get command lifecycle
13
13
  *
14
14
  * @remarks
15
- * 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.
15
+ * 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.
16
16
  */
17
17
  async getCommandsByCommandId(
18
18
  commandId: string,
@@ -38,7 +38,7 @@ export class Compliance extends ClientSDK {
38
38
  * Update asset compliance policy
39
39
  *
40
40
  * @remarks
41
- * 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.
41
+ * 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.
42
42
  */
43
43
  async postOrgsByOrgIdAssetsByAssetIdCompliancePolicy(
44
44
  security: operations.PostOrgsByOrgIdAssetsByAssetIdCompliancePolicySecurity,
@@ -648,7 +648,7 @@ export class Organizations extends ClientSDK {
648
648
  * Attest member wallets on behalf of org
649
649
  *
650
650
  * @remarks
651
- * 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.
651
+ * 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.
652
652
  */
653
653
  async postOrgsByOrgIdMembersByUserIdAttest(
654
654
  security: operations.PostOrgsByOrgIdMembersByUserIdAttestSecurity,
@@ -1086,7 +1086,7 @@ export class Organizations extends ClientSDK {
1086
1086
  * Update organization compliance config
1087
1087
  *
1088
1088
  * @remarks
1089
- * Creates or updates the compliance configuration for an organization. Requires admin or compliance_officer role.
1089
+ * 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.
1090
1090
  */
1091
1091
  async putOrgsByOrgIdCompliance(
1092
1092
  orgId: string,