@clossir-tech/ts-sdk 0.10.6 → 0.11.0

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 (399) hide show
  1. package/README.md +69 -19
  2. package/esm/funcs/approvals-get-approvals-by-approval-id-status.d.ts +20 -0
  3. package/esm/funcs/approvals-get-approvals-by-approval-id-status.d.ts.map +1 -0
  4. package/esm/funcs/approvals-get-approvals-by-approval-id-status.js +96 -0
  5. package/esm/funcs/approvals-get-approvals-by-approval-id-status.js.map +1 -0
  6. package/esm/funcs/approvals-get-approvals-by-approval-id.d.ts +20 -0
  7. package/esm/funcs/approvals-get-approvals-by-approval-id.d.ts.map +1 -0
  8. package/esm/funcs/approvals-get-approvals-by-approval-id.js +100 -0
  9. package/esm/funcs/approvals-get-approvals-by-approval-id.js.map +1 -0
  10. package/esm/funcs/approvals-post-approvals.d.ts +20 -0
  11. package/esm/funcs/approvals-post-approvals.d.ts.map +1 -0
  12. package/esm/funcs/approvals-post-approvals.js +90 -0
  13. package/esm/funcs/approvals-post-approvals.js.map +1 -0
  14. package/esm/funcs/assets-post-orgs-by-org-id-assets-by-asset-id-allocate.js +3 -1
  15. package/esm/funcs/assets-post-orgs-by-org-id-assets-by-asset-id-allocate.js.map +1 -1
  16. package/esm/funcs/assets-post-orgs-by-org-id-assets-by-asset-id-documents.d.ts +4 -2
  17. package/esm/funcs/assets-post-orgs-by-org-id-assets-by-asset-id-documents.d.ts.map +1 -1
  18. package/esm/funcs/assets-post-orgs-by-org-id-assets-by-asset-id-documents.js +11 -19
  19. package/esm/funcs/assets-post-orgs-by-org-id-assets-by-asset-id-documents.js.map +1 -1
  20. package/esm/funcs/attestations-post-attestations.d.ts +1 -1
  21. package/esm/funcs/attestations-post-attestations.js +2 -2
  22. package/esm/funcs/attestations-post-attestations.js.map +1 -1
  23. package/esm/funcs/auth-post-auth-accept-invite.js +1 -1
  24. package/esm/funcs/auth-post-auth-accept-invite.js.map +1 -1
  25. package/esm/funcs/auth-post-auth-login.js +1 -1
  26. package/esm/funcs/auth-post-auth-login.js.map +1 -1
  27. package/esm/funcs/auth-post-auth-refresh.d.ts +1 -1
  28. package/esm/funcs/auth-post-auth-refresh.js +1 -1
  29. package/esm/funcs/bridge-get-orgs-by-org-id-bridge-history.d.ts +1 -1
  30. package/esm/funcs/bridge-get-orgs-by-org-id-bridge-history.js +1 -1
  31. package/esm/funcs/bridge-post-orgs-by-org-id-assets-by-asset-id-bridge.js +1 -1
  32. package/esm/funcs/bridge-post-orgs-by-org-id-assets-by-asset-id-bridge.js.map +1 -1
  33. package/esm/funcs/eligibility-post-eligibility-check.d.ts +20 -0
  34. package/esm/funcs/eligibility-post-eligibility-check.d.ts.map +1 -0
  35. package/esm/funcs/eligibility-post-eligibility-check.js +90 -0
  36. package/esm/funcs/eligibility-post-eligibility-check.js.map +1 -0
  37. package/esm/funcs/health-get-health.d.ts +1 -1
  38. package/esm/funcs/health-get-health.js +1 -1
  39. package/esm/funcs/mfa-post-auth-mfa-verify.js +2 -2
  40. package/esm/funcs/mfa-post-auth-mfa-verify.js.map +1 -1
  41. package/esm/funcs/o-auth-get-oauth-authorize.d.ts +1 -1
  42. package/esm/funcs/o-auth-get-oauth-authorize.js +1 -1
  43. package/esm/funcs/o-auth-get-oauth-userinfo.d.ts +2 -2
  44. package/esm/funcs/o-auth-get-oauth-userinfo.d.ts.map +1 -1
  45. package/esm/funcs/o-auth-get-oauth-userinfo.js +2 -2
  46. package/esm/funcs/o-auth-get-oauth-userinfo.js.map +1 -1
  47. package/esm/funcs/o-auth-management-delete-orgs-by-org-id-oauth-clients-by-client-id.js +2 -0
  48. package/esm/funcs/o-auth-management-delete-orgs-by-org-id-oauth-clients-by-client-id.js.map +1 -1
  49. package/esm/funcs/o-auth-management-post-orgs-by-org-id-oauth-clients.js +1 -1
  50. package/esm/funcs/o-auth-management-post-orgs-by-org-id-oauth-clients.js.map +1 -1
  51. package/esm/funcs/o-auth-management-put-orgs-by-org-id-oauth-clients-by-client-id.js +3 -1
  52. package/esm/funcs/o-auth-management-put-orgs-by-org-id-oauth-clients-by-client-id.js.map +1 -1
  53. package/esm/funcs/o-auth-post-oauth-token.d.ts +2 -2
  54. package/esm/funcs/o-auth-post-oauth-token.d.ts.map +1 -1
  55. package/esm/funcs/o-auth-post-oauth-token.js +2 -2
  56. package/esm/funcs/o-auth-post-oauth-token.js.map +1 -1
  57. package/esm/funcs/organizations-put-orgs-by-org-id-sub-orgs-by-sub-org-id-move.d.ts +4 -2
  58. package/esm/funcs/organizations-put-orgs-by-org-id-sub-orgs-by-sub-org-id-move.d.ts.map +1 -1
  59. package/esm/funcs/organizations-put-orgs-by-org-id-sub-orgs-by-sub-org-id-move.js +12 -22
  60. package/esm/funcs/organizations-put-orgs-by-org-id-sub-orgs-by-sub-org-id-move.js.map +1 -1
  61. package/esm/funcs/passport-get-login-passport-status.d.ts +18 -0
  62. package/esm/funcs/passport-get-login-passport-status.d.ts.map +1 -0
  63. package/esm/funcs/passport-get-login-passport-status.js +77 -0
  64. package/esm/funcs/passport-get-login-passport-status.js.map +1 -0
  65. package/esm/funcs/passport-get-passport-home.d.ts +17 -0
  66. package/esm/funcs/passport-get-passport-home.d.ts.map +1 -0
  67. package/esm/funcs/passport-get-passport-home.js +77 -0
  68. package/esm/funcs/passport-get-passport-home.js.map +1 -0
  69. package/esm/funcs/passport-get-passport-sign-in.d.ts +17 -0
  70. package/esm/funcs/passport-get-passport-sign-in.d.ts.map +1 -0
  71. package/esm/funcs/passport-get-passport-sign-in.js +75 -0
  72. package/esm/funcs/passport-get-passport-sign-in.js.map +1 -0
  73. package/esm/funcs/passport-post-login-passport-finish.d.ts +18 -0
  74. package/esm/funcs/passport-post-login-passport-finish.d.ts.map +1 -0
  75. package/esm/funcs/passport-post-login-passport-finish.js +89 -0
  76. package/esm/funcs/passport-post-login-passport-finish.js.map +1 -0
  77. package/esm/funcs/passport-post-passport-sign-in-decision.d.ts +18 -0
  78. package/esm/funcs/passport-post-passport-sign-in-decision.d.ts.map +1 -0
  79. package/esm/funcs/passport-post-passport-sign-in-decision.js +86 -0
  80. package/esm/funcs/passport-post-passport-sign-in-decision.js.map +1 -0
  81. package/esm/funcs/preflight-get-preflight-results-by-result-id.d.ts +20 -0
  82. package/esm/funcs/preflight-get-preflight-results-by-result-id.d.ts.map +1 -0
  83. package/esm/funcs/preflight-get-preflight-results-by-result-id.js +98 -0
  84. package/esm/funcs/preflight-get-preflight-results-by-result-id.js.map +1 -0
  85. package/esm/funcs/preflight-post-preflight-intents.d.ts +20 -0
  86. package/esm/funcs/preflight-post-preflight-intents.d.ts.map +1 -0
  87. package/esm/funcs/preflight-post-preflight-intents.js +90 -0
  88. package/esm/funcs/preflight-post-preflight-intents.js.map +1 -0
  89. package/esm/funcs/transfers-get-transfers.d.ts +1 -1
  90. package/esm/funcs/transfers-get-transfers.js +1 -1
  91. package/esm/funcs/travel-rule-post-travel-rule-records.d.ts +20 -0
  92. package/esm/funcs/travel-rule-post-travel-rule-records.d.ts.map +1 -0
  93. package/esm/funcs/travel-rule-post-travel-rule-records.js +90 -0
  94. package/esm/funcs/travel-rule-post-travel-rule-records.js.map +1 -0
  95. package/esm/funcs/ui-get-login.js +1 -0
  96. package/esm/funcs/ui-get-login.js.map +1 -1
  97. package/esm/lib/config.d.ts +2 -2
  98. package/esm/lib/config.js +2 -2
  99. package/esm/models/errors/get-approvals-by-approval-id.d.ts +41 -0
  100. package/esm/models/errors/get-approvals-by-approval-id.d.ts.map +1 -0
  101. package/esm/models/errors/get-approvals-by-approval-id.js +56 -0
  102. package/esm/models/errors/get-approvals-by-approval-id.js.map +1 -0
  103. package/esm/models/errors/get-oauth-authorize.d.ts +6 -6
  104. package/esm/models/errors/get-oauth-authorize.js +3 -3
  105. package/esm/models/errors/get-oauth-userinfo.d.ts +152 -4
  106. package/esm/models/errors/get-oauth-userinfo.d.ts.map +1 -1
  107. package/esm/models/errors/get-oauth-userinfo.js +166 -2
  108. package/esm/models/errors/get-oauth-userinfo.js.map +1 -1
  109. package/esm/models/errors/get-passport-home.d.ts +96 -0
  110. package/esm/models/errors/get-passport-home.d.ts.map +1 -0
  111. package/esm/models/errors/get-passport-home.js +114 -0
  112. package/esm/models/errors/get-passport-home.js.map +1 -0
  113. package/esm/models/errors/get-passport-sign-in.d.ts +96 -0
  114. package/esm/models/errors/get-passport-sign-in.d.ts.map +1 -0
  115. package/esm/models/errors/get-passport-sign-in.js +114 -0
  116. package/esm/models/errors/get-passport-sign-in.js.map +1 -0
  117. package/esm/models/errors/index.d.ts +6 -0
  118. package/esm/models/errors/index.d.ts.map +1 -1
  119. package/esm/models/errors/index.js +6 -0
  120. package/esm/models/errors/index.js.map +1 -1
  121. package/esm/models/errors/o-auth-error-response.d.ts +52 -0
  122. package/esm/models/errors/o-auth-error-response.d.ts.map +1 -0
  123. package/esm/models/errors/o-auth-error-response.js +63 -0
  124. package/esm/models/errors/o-auth-error-response.js.map +1 -0
  125. package/esm/models/errors/post-eligibility-check.d.ts +58 -0
  126. package/esm/models/errors/post-eligibility-check.d.ts.map +1 -0
  127. package/esm/models/errors/post-eligibility-check.js +66 -0
  128. package/esm/models/errors/post-eligibility-check.js.map +1 -0
  129. package/esm/models/errors/post-oauth-par.d.ts +10 -10
  130. package/esm/models/errors/post-oauth-par.js +5 -5
  131. package/esm/models/errors/post-oauth-revoke.d.ts +10 -10
  132. package/esm/models/errors/post-oauth-revoke.js +5 -5
  133. package/esm/models/errors/post-oauth-token.d.ts +99 -6
  134. package/esm/models/errors/post-oauth-token.d.ts.map +1 -1
  135. package/esm/models/errors/post-oauth-token.js +109 -3
  136. package/esm/models/errors/post-oauth-token.js.map +1 -1
  137. package/esm/models/errors/post-passport-sign-in-decision.d.ts +96 -0
  138. package/esm/models/errors/post-passport-sign-in-decision.d.ts.map +1 -0
  139. package/esm/models/errors/post-passport-sign-in-decision.js +115 -0
  140. package/esm/models/errors/post-passport-sign-in-decision.js.map +1 -0
  141. package/esm/models/errors/problem-details-error.d.ts +24 -0
  142. package/esm/models/errors/problem-details-error.d.ts.map +1 -1
  143. package/esm/models/errors/problem-details-error.js +21 -0
  144. package/esm/models/errors/problem-details-error.js.map +1 -1
  145. package/esm/models/operations/get-approvals-by-approval-id-status.d.ts +91 -0
  146. package/esm/models/operations/get-approvals-by-approval-id-status.d.ts.map +1 -0
  147. package/esm/models/operations/get-approvals-by-approval-id-status.js +60 -0
  148. package/esm/models/operations/get-approvals-by-approval-id-status.js.map +1 -0
  149. package/esm/models/operations/get-approvals-by-approval-id.d.ts +391 -0
  150. package/esm/models/operations/get-approvals-by-approval-id.d.ts.map +1 -0
  151. package/esm/models/operations/get-approvals-by-approval-id.js +299 -0
  152. package/esm/models/operations/get-approvals-by-approval-id.js.map +1 -0
  153. package/esm/models/operations/get-health.d.ts +8 -0
  154. package/esm/models/operations/get-health.d.ts.map +1 -1
  155. package/esm/models/operations/get-health.js +2 -0
  156. package/esm/models/operations/get-health.js.map +1 -1
  157. package/esm/models/operations/get-login-passport-status.d.ts +42 -0
  158. package/esm/models/operations/get-login-passport-status.d.ts.map +1 -0
  159. package/esm/models/operations/get-login-passport-status.js +45 -0
  160. package/esm/models/operations/get-login-passport-status.js.map +1 -0
  161. package/esm/models/operations/get-login.d.ts +2 -0
  162. package/esm/models/operations/get-login.d.ts.map +1 -1
  163. package/esm/models/operations/get-login.js +1 -0
  164. package/esm/models/operations/get-login.js.map +1 -1
  165. package/esm/models/operations/get-oauth-userinfo.d.ts +48 -0
  166. package/esm/models/operations/get-oauth-userinfo.d.ts.map +1 -1
  167. package/esm/models/operations/get-oauth-userinfo.js +32 -0
  168. package/esm/models/operations/get-oauth-userinfo.js.map +1 -1
  169. package/esm/models/operations/get-orgs-by-org-id-assets-by-asset-id-compliance-policy.d.ts +1 -0
  170. package/esm/models/operations/get-orgs-by-org-id-assets-by-asset-id-compliance-policy.d.ts.map +1 -1
  171. package/esm/models/operations/get-orgs-by-org-id-assets-by-asset-id-compliance-policy.js +1 -0
  172. package/esm/models/operations/get-orgs-by-org-id-assets-by-asset-id-compliance-policy.js.map +1 -1
  173. package/esm/models/operations/get-orgs-by-org-id-oauth-clients-by-client-id.d.ts +47 -0
  174. package/esm/models/operations/get-orgs-by-org-id-oauth-clients-by-client-id.d.ts.map +1 -1
  175. package/esm/models/operations/get-orgs-by-org-id-oauth-clients-by-client-id.js +41 -0
  176. package/esm/models/operations/get-orgs-by-org-id-oauth-clients-by-client-id.js.map +1 -1
  177. package/esm/models/operations/get-orgs-by-org-id-oauth-clients.d.ts +47 -0
  178. package/esm/models/operations/get-orgs-by-org-id-oauth-clients.d.ts.map +1 -1
  179. package/esm/models/operations/get-orgs-by-org-id-oauth-clients.js +40 -0
  180. package/esm/models/operations/get-orgs-by-org-id-oauth-clients.js.map +1 -1
  181. package/esm/models/operations/get-passport-home.d.ts +9 -0
  182. package/esm/models/operations/get-passport-home.d.ts.map +1 -0
  183. package/esm/models/operations/get-passport-home.js +10 -0
  184. package/esm/models/operations/get-passport-home.js.map +1 -0
  185. package/esm/models/operations/get-passport-sign-in.d.ts +9 -0
  186. package/esm/models/operations/get-passport-sign-in.d.ts.map +1 -0
  187. package/esm/models/operations/get-passport-sign-in.js +10 -0
  188. package/esm/models/operations/get-passport-sign-in.js.map +1 -0
  189. package/esm/models/operations/get-preflight-results-by-result-id.d.ts +329 -0
  190. package/esm/models/operations/get-preflight-results-by-result-id.d.ts.map +1 -0
  191. package/esm/models/operations/get-preflight-results-by-result-id.js +280 -0
  192. package/esm/models/operations/get-preflight-results-by-result-id.js.map +1 -0
  193. package/esm/models/operations/index.d.ts +12 -0
  194. package/esm/models/operations/index.d.ts.map +1 -1
  195. package/esm/models/operations/index.js +12 -0
  196. package/esm/models/operations/index.js.map +1 -1
  197. package/esm/models/operations/post-approvals.d.ts +114 -0
  198. package/esm/models/operations/post-approvals.d.ts.map +1 -0
  199. package/esm/models/operations/post-approvals.js +76 -0
  200. package/esm/models/operations/post-approvals.js.map +1 -0
  201. package/esm/models/operations/post-attestations.d.ts +24 -7
  202. package/esm/models/operations/post-attestations.d.ts.map +1 -1
  203. package/esm/models/operations/post-attestations.js +7 -1
  204. package/esm/models/operations/post-attestations.js.map +1 -1
  205. package/esm/models/operations/post-auth-verify-email.d.ts +10 -10
  206. package/esm/models/operations/post-auth-verify-email.d.ts.map +1 -1
  207. package/esm/models/operations/post-auth-verify-email.js +8 -8
  208. package/esm/models/operations/post-auth-verify-email.js.map +1 -1
  209. package/esm/models/operations/post-consent.d.ts +2 -0
  210. package/esm/models/operations/post-consent.d.ts.map +1 -1
  211. package/esm/models/operations/post-consent.js +2 -0
  212. package/esm/models/operations/post-consent.js.map +1 -1
  213. package/esm/models/operations/post-eligibility-check.d.ts +45 -0
  214. package/esm/models/operations/post-eligibility-check.d.ts.map +1 -0
  215. package/esm/models/operations/post-eligibility-check.js +43 -0
  216. package/esm/models/operations/post-eligibility-check.js.map +1 -0
  217. package/esm/models/operations/post-login-passport-finish.d.ts +24 -0
  218. package/esm/models/operations/post-login-passport-finish.d.ts.map +1 -0
  219. package/esm/models/operations/post-login-passport-finish.js +31 -0
  220. package/esm/models/operations/post-login-passport-finish.js.map +1 -0
  221. package/esm/models/operations/post-oauth-token.d.ts +22 -9
  222. package/esm/models/operations/post-oauth-token.d.ts.map +1 -1
  223. package/esm/models/operations/post-oauth-token.js +25 -6
  224. package/esm/models/operations/post-oauth-token.js.map +1 -1
  225. package/esm/models/operations/post-orgs-by-org-id-assets-by-asset-id-allocate.d.ts +4 -4
  226. package/esm/models/operations/post-orgs-by-org-id-assets-by-asset-id-allocate.d.ts.map +1 -1
  227. package/esm/models/operations/post-orgs-by-org-id-assets-by-asset-id-allocate.js +5 -4
  228. package/esm/models/operations/post-orgs-by-org-id-assets-by-asset-id-allocate.js.map +1 -1
  229. package/esm/models/operations/post-orgs-by-org-id-assets-by-asset-id-compliance-policy.d.ts +2 -0
  230. package/esm/models/operations/post-orgs-by-org-id-assets-by-asset-id-compliance-policy.d.ts.map +1 -1
  231. package/esm/models/operations/post-orgs-by-org-id-assets-by-asset-id-compliance-policy.js +2 -0
  232. package/esm/models/operations/post-orgs-by-org-id-assets-by-asset-id-compliance-policy.js.map +1 -1
  233. package/esm/models/operations/post-orgs-by-org-id-assets-by-asset-id-documents.d.ts +0 -12
  234. package/esm/models/operations/post-orgs-by-org-id-assets-by-asset-id-documents.d.ts.map +1 -1
  235. package/esm/models/operations/post-orgs-by-org-id-assets-by-asset-id-documents.js +0 -8
  236. package/esm/models/operations/post-orgs-by-org-id-assets-by-asset-id-documents.js.map +1 -1
  237. package/esm/models/operations/post-orgs-by-org-id-oauth-clients.d.ts +101 -0
  238. package/esm/models/operations/post-orgs-by-org-id-oauth-clients.d.ts.map +1 -1
  239. package/esm/models/operations/post-orgs-by-org-id-oauth-clients.js +81 -0
  240. package/esm/models/operations/post-orgs-by-org-id-oauth-clients.js.map +1 -1
  241. package/esm/models/operations/post-passport-sign-in-decision.d.ts +25 -0
  242. package/esm/models/operations/post-passport-sign-in-decision.d.ts.map +1 -0
  243. package/esm/models/operations/post-passport-sign-in-decision.js +27 -0
  244. package/esm/models/operations/post-passport-sign-in-decision.js.map +1 -0
  245. package/esm/models/operations/post-preflight-intents.d.ts +367 -0
  246. package/esm/models/operations/post-preflight-intents.d.ts.map +1 -0
  247. package/esm/models/operations/post-preflight-intents.js +299 -0
  248. package/esm/models/operations/post-preflight-intents.js.map +1 -0
  249. package/esm/models/operations/post-preflight.d.ts +8 -8
  250. package/esm/models/operations/post-preflight.d.ts.map +1 -1
  251. package/esm/models/operations/post-preflight.js +7 -7
  252. package/esm/models/operations/post-preflight.js.map +1 -1
  253. package/esm/models/operations/post-travel-rule-records.d.ts +27 -0
  254. package/esm/models/operations/post-travel-rule-records.d.ts.map +1 -0
  255. package/esm/models/operations/post-travel-rule-records.js +24 -0
  256. package/esm/models/operations/post-travel-rule-records.js.map +1 -0
  257. package/esm/models/operations/put-orgs-by-org-id-oauth-clients-by-client-id.d.ts +101 -0
  258. package/esm/models/operations/put-orgs-by-org-id-oauth-clients-by-client-id.d.ts.map +1 -1
  259. package/esm/models/operations/put-orgs-by-org-id-oauth-clients-by-client-id.js +79 -0
  260. package/esm/models/operations/put-orgs-by-org-id-oauth-clients-by-client-id.js.map +1 -1
  261. package/esm/models/operations/put-orgs-by-org-id-sub-orgs-by-sub-org-id-move.d.ts +0 -12
  262. package/esm/models/operations/put-orgs-by-org-id-sub-orgs-by-sub-org-id-move.d.ts.map +1 -1
  263. package/esm/models/operations/put-orgs-by-org-id-sub-orgs-by-sub-org-id-move.js +0 -8
  264. package/esm/models/operations/put-orgs-by-org-id-sub-orgs-by-sub-org-id-move.js.map +1 -1
  265. package/esm/sdk/approvals.d.ts +26 -0
  266. package/esm/sdk/approvals.d.ts.map +1 -0
  267. package/esm/sdk/approvals.js +38 -0
  268. package/esm/sdk/approvals.js.map +1 -0
  269. package/esm/sdk/assets.d.ts +2 -2
  270. package/esm/sdk/assets.d.ts.map +1 -1
  271. package/esm/sdk/assets.js +3 -3
  272. package/esm/sdk/assets.js.map +1 -1
  273. package/esm/sdk/attestations.d.ts +1 -1
  274. package/esm/sdk/attestations.js +1 -1
  275. package/esm/sdk/auth.d.ts +1 -1
  276. package/esm/sdk/auth.js +1 -1
  277. package/esm/sdk/bridge.d.ts +1 -1
  278. package/esm/sdk/bridge.js +1 -1
  279. package/esm/sdk/eligibility.d.ts +12 -0
  280. package/esm/sdk/eligibility.d.ts.map +1 -0
  281. package/esm/sdk/eligibility.js +18 -0
  282. package/esm/sdk/eligibility.js.map +1 -0
  283. package/esm/sdk/health.d.ts +1 -1
  284. package/esm/sdk/health.js +1 -1
  285. package/esm/sdk/o-auth.d.ts +3 -3
  286. package/esm/sdk/o-auth.js +3 -3
  287. package/esm/sdk/organizations.d.ts +2 -2
  288. package/esm/sdk/organizations.d.ts.map +1 -1
  289. package/esm/sdk/organizations.js +3 -3
  290. package/esm/sdk/organizations.js.map +1 -1
  291. package/esm/sdk/passport.d.ts +40 -0
  292. package/esm/sdk/passport.d.ts.map +1 -0
  293. package/esm/sdk/passport.js +58 -0
  294. package/esm/sdk/passport.js.map +1 -0
  295. package/esm/sdk/preflight.d.ts +14 -0
  296. package/esm/sdk/preflight.d.ts.map +1 -1
  297. package/esm/sdk/preflight.js +20 -0
  298. package/esm/sdk/preflight.js.map +1 -1
  299. package/esm/sdk/sdk.d.ts +12 -0
  300. package/esm/sdk/sdk.d.ts.map +1 -1
  301. package/esm/sdk/sdk.js +20 -0
  302. package/esm/sdk/sdk.js.map +1 -1
  303. package/esm/sdk/transfers.d.ts +1 -1
  304. package/esm/sdk/transfers.js +1 -1
  305. package/esm/sdk/travel-rule.d.ts +12 -0
  306. package/esm/sdk/travel-rule.d.ts.map +1 -0
  307. package/esm/sdk/travel-rule.js +18 -0
  308. package/esm/sdk/travel-rule.js.map +1 -0
  309. package/jsr.json +1 -1
  310. package/package.json +1 -1
  311. package/src/funcs/approvals-get-approvals-by-approval-id-status.ts +197 -0
  312. package/src/funcs/approvals-get-approvals-by-approval-id.ts +204 -0
  313. package/src/funcs/approvals-post-approvals.ts +189 -0
  314. package/src/funcs/assets-post-orgs-by-org-id-assets-by-asset-id-allocate.ts +3 -0
  315. package/src/funcs/assets-post-orgs-by-org-id-assets-by-asset-id-documents.ts +8 -22
  316. package/src/funcs/attestations-post-attestations.ts +2 -2
  317. package/src/funcs/auth-post-auth-accept-invite.ts +1 -1
  318. package/src/funcs/auth-post-auth-login.ts +1 -1
  319. package/src/funcs/auth-post-auth-refresh.ts +1 -1
  320. package/src/funcs/bridge-get-orgs-by-org-id-bridge-history.ts +1 -1
  321. package/src/funcs/bridge-post-orgs-by-org-id-assets-by-asset-id-bridge.ts +1 -1
  322. package/src/funcs/eligibility-post-eligibility-check.ts +191 -0
  323. package/src/funcs/health-get-health.ts +1 -1
  324. package/src/funcs/mfa-post-auth-mfa-verify.ts +2 -2
  325. package/src/funcs/o-auth-get-oauth-authorize.ts +1 -1
  326. package/src/funcs/o-auth-get-oauth-userinfo.ts +16 -1
  327. package/src/funcs/o-auth-management-delete-orgs-by-org-id-oauth-clients-by-client-id.ts +3 -0
  328. package/src/funcs/o-auth-management-post-orgs-by-org-id-oauth-clients.ts +6 -1
  329. package/src/funcs/o-auth-management-put-orgs-by-org-id-oauth-clients-by-client-id.ts +4 -1
  330. package/src/funcs/o-auth-post-oauth-token.ts +9 -1
  331. package/src/funcs/organizations-put-orgs-by-org-id-sub-orgs-by-sub-org-id-move.ts +13 -25
  332. package/src/funcs/passport-get-login-passport-status.ts +158 -0
  333. package/src/funcs/passport-get-passport-home.ts +170 -0
  334. package/src/funcs/passport-get-passport-sign-in.ts +172 -0
  335. package/src/funcs/passport-post-login-passport-finish.ts +184 -0
  336. package/src/funcs/passport-post-passport-sign-in-decision.ts +201 -0
  337. package/src/funcs/preflight-get-preflight-results-by-result-id.ts +202 -0
  338. package/src/funcs/preflight-post-preflight-intents.ts +190 -0
  339. package/src/funcs/transfers-get-transfers.ts +1 -1
  340. package/src/funcs/travel-rule-post-travel-rule-records.ts +190 -0
  341. package/src/funcs/ui-get-login.ts +1 -0
  342. package/src/lib/config.ts +2 -2
  343. package/src/models/errors/get-approvals-by-approval-id.ts +83 -0
  344. package/src/models/errors/get-oauth-authorize.ts +6 -6
  345. package/src/models/errors/get-oauth-userinfo.ts +273 -4
  346. package/src/models/errors/get-passport-home.ts +182 -0
  347. package/src/models/errors/get-passport-sign-in.ts +182 -0
  348. package/src/models/errors/index.ts +6 -0
  349. package/src/models/errors/o-auth-error-response.ts +99 -0
  350. package/src/models/errors/post-eligibility-check.ts +103 -0
  351. package/src/models/errors/post-oauth-par.ts +10 -10
  352. package/src/models/errors/post-oauth-revoke.ts +10 -10
  353. package/src/models/errors/post-oauth-token.ts +180 -6
  354. package/src/models/errors/post-passport-sign-in-decision.ts +179 -0
  355. package/src/models/errors/problem-details-error.ts +30 -0
  356. package/src/models/operations/get-approvals-by-approval-id-status.ts +161 -0
  357. package/src/models/operations/get-approvals-by-approval-id.ts +735 -0
  358. package/src/models/operations/get-health.ts +10 -0
  359. package/src/models/operations/get-login-passport-status.ts +91 -0
  360. package/src/models/operations/get-login.ts +3 -0
  361. package/src/models/operations/get-oauth-userinfo.ts +112 -0
  362. package/src/models/operations/get-orgs-by-org-id-assets-by-asset-id-compliance-policy.ts +2 -0
  363. package/src/models/operations/get-orgs-by-org-id-oauth-clients-by-client-id.ts +118 -0
  364. package/src/models/operations/get-orgs-by-org-id-oauth-clients.ts +113 -0
  365. package/src/models/operations/get-passport-home.ts +16 -0
  366. package/src/models/operations/get-passport-sign-in.ts +16 -0
  367. package/src/models/operations/get-preflight-results-by-result-id.ts +653 -0
  368. package/src/models/operations/index.ts +12 -0
  369. package/src/models/operations/post-approvals.ts +192 -0
  370. package/src/models/operations/post-attestations.ts +39 -8
  371. package/src/models/operations/post-auth-verify-email.ts +33 -19
  372. package/src/models/operations/post-consent.ts +4 -0
  373. package/src/models/operations/post-eligibility-check.ts +120 -0
  374. package/src/models/operations/post-login-passport-finish.ts +76 -0
  375. package/src/models/operations/post-oauth-token.ts +53 -14
  376. package/src/models/operations/post-orgs-by-org-id-assets-by-asset-id-allocate.ts +23 -11
  377. package/src/models/operations/post-orgs-by-org-id-assets-by-asset-id-compliance-policy.ts +4 -0
  378. package/src/models/operations/post-orgs-by-org-id-assets-by-asset-id-documents.ts +0 -32
  379. package/src/models/operations/post-orgs-by-org-id-oauth-clients.ts +248 -0
  380. package/src/models/operations/post-passport-sign-in-decision.ts +67 -0
  381. package/src/models/operations/post-preflight-intents.ts +728 -0
  382. package/src/models/operations/post-preflight.ts +18 -15
  383. package/src/models/operations/post-travel-rule-records.ts +68 -0
  384. package/src/models/operations/put-orgs-by-org-id-oauth-clients-by-client-id.ts +263 -0
  385. package/src/models/operations/put-orgs-by-org-id-sub-orgs-by-sub-org-id-move.ts +0 -32
  386. package/src/sdk/approvals.ts +63 -0
  387. package/src/sdk/assets.ts +1 -3
  388. package/src/sdk/attestations.ts +1 -1
  389. package/src/sdk/auth.ts +1 -1
  390. package/src/sdk/bridge.ts +1 -1
  391. package/src/sdk/eligibility.ts +27 -0
  392. package/src/sdk/health.ts +1 -1
  393. package/src/sdk/o-auth.ts +3 -3
  394. package/src/sdk/organizations.ts +1 -3
  395. package/src/sdk/passport.ts +93 -0
  396. package/src/sdk/preflight.ts +36 -0
  397. package/src/sdk/sdk.ts +24 -0
  398. package/src/sdk/transfers.ts +1 -1
  399. package/src/sdk/travel-rule.ts +27 -0
@@ -193,7 +193,7 @@ export type PostPreflightStatusUnion =
193
193
  | StatusSkip
194
194
  | PostPreflightStatusPending;
195
195
 
196
- export type Check = {
196
+ export type PostPreflightCheck = {
197
197
  id: string;
198
198
  label: string;
199
199
  status:
@@ -222,14 +222,14 @@ export type PostPreflightResponseBody = {
222
222
  | OverallStatusAmber
223
223
  | OverallStatusRed
224
224
  | OverallStatusPending;
225
- checks: Array<Check>;
225
+ checks: Array<PostPreflightCheck>;
226
226
  [additionalProperties: string]: unknown;
227
227
  };
228
228
 
229
- export const Algorithm = {
229
+ export const PostPreflightAlgorithm = {
230
230
  Ed25519: "ed25519",
231
231
  } as const;
232
- export type Algorithm = ClosedEnum<typeof Algorithm>;
232
+ export type PostPreflightAlgorithm = ClosedEnum<typeof PostPreflightAlgorithm>;
233
233
 
234
234
  /**
235
235
  * Signed preflight report (gateway passthrough). Verify client-side via verifyPreflightReport.
@@ -238,7 +238,7 @@ export type Ed25519 = {
238
238
  report: { [k: string]: any };
239
239
  signature: string;
240
240
  keyId: string;
241
- algorithm: Algorithm;
241
+ algorithm: PostPreflightAlgorithm;
242
242
  [additionalProperties: string]: unknown;
243
243
  };
244
244
 
@@ -580,7 +580,10 @@ export function postPreflightStatusUnionFromJSON(
580
580
  }
581
581
 
582
582
  /** @internal */
583
- export const Check$inboundSchema: z.ZodMiniType<Check, unknown> = z.catchall(
583
+ export const PostPreflightCheck$inboundSchema: z.ZodMiniType<
584
+ PostPreflightCheck,
585
+ unknown
586
+ > = z.catchall(
584
587
  z.object({
585
588
  id: types.string(),
586
589
  label: types.string(),
@@ -598,13 +601,13 @@ export const Check$inboundSchema: z.ZodMiniType<Check, unknown> = z.catchall(
598
601
  z.any(),
599
602
  );
600
603
 
601
- export function checkFromJSON(
604
+ export function postPreflightCheckFromJSON(
602
605
  jsonString: string,
603
- ): SafeParseResult<Check, SDKValidationError> {
606
+ ): SafeParseResult<PostPreflightCheck, SDKValidationError> {
604
607
  return safeParse(
605
608
  jsonString,
606
- (x) => Check$inboundSchema.parse(JSON.parse(x)),
607
- `Failed to parse 'Check' from JSON`,
609
+ (x) => PostPreflightCheck$inboundSchema.parse(JSON.parse(x)),
610
+ `Failed to parse 'PostPreflightCheck' from JSON`,
608
611
  );
609
612
  }
610
613
 
@@ -625,7 +628,7 @@ export const PostPreflightResponseBody$inboundSchema: z.ZodMiniType<
625
628
  OverallStatusRed$inboundSchema,
626
629
  OverallStatusPending$inboundSchema,
627
630
  ]),
628
- checks: z.array(z.lazy(() => Check$inboundSchema)),
631
+ checks: z.array(z.lazy(() => PostPreflightCheck$inboundSchema)),
629
632
  }),
630
633
  z.any(),
631
634
  );
@@ -641,9 +644,9 @@ export function postPreflightResponseBodyFromJSON(
641
644
  }
642
645
 
643
646
  /** @internal */
644
- export const Algorithm$inboundSchema: z.ZodMiniEnum<typeof Algorithm> = z.enum(
645
- Algorithm,
646
- );
647
+ export const PostPreflightAlgorithm$inboundSchema: z.ZodMiniEnum<
648
+ typeof PostPreflightAlgorithm
649
+ > = z.enum(PostPreflightAlgorithm);
647
650
 
648
651
  /** @internal */
649
652
  export const Ed25519$inboundSchema: z.ZodMiniType<Ed25519, unknown> = z
@@ -652,7 +655,7 @@ export const Ed25519$inboundSchema: z.ZodMiniType<Ed25519, unknown> = z
652
655
  report: z.record(z.string(), z.any()),
653
656
  signature: types.string(),
654
657
  keyId: types.string(),
655
- algorithm: Algorithm$inboundSchema,
658
+ algorithm: PostPreflightAlgorithm$inboundSchema,
656
659
  }),
657
660
  z.any(),
658
661
  );
@@ -0,0 +1,68 @@
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 { Result as SafeParseResult } from "../../types/fp.js";
8
+ import * as types from "../../types/primitives.js";
9
+ import { SDKValidationError } from "../errors/sdk-validation-error.js";
10
+
11
+ export type PostTravelRuleRecordsRequest = {
12
+ intentId: string;
13
+ beneficiaryName: string;
14
+ };
15
+
16
+ /**
17
+ * Response
18
+ */
19
+ export type PostTravelRuleRecordsResponse = {
20
+ intentId: string;
21
+ recordId: string;
22
+ createdAt: string;
23
+ };
24
+
25
+ /** @internal */
26
+ export type PostTravelRuleRecordsRequest$Outbound = {
27
+ intentId: string;
28
+ beneficiaryName: string;
29
+ };
30
+
31
+ /** @internal */
32
+ export const PostTravelRuleRecordsRequest$outboundSchema: z.ZodMiniType<
33
+ PostTravelRuleRecordsRequest$Outbound,
34
+ PostTravelRuleRecordsRequest
35
+ > = z.object({
36
+ intentId: z.string(),
37
+ beneficiaryName: z.string(),
38
+ });
39
+
40
+ export function postTravelRuleRecordsRequestToJSON(
41
+ postTravelRuleRecordsRequest: PostTravelRuleRecordsRequest,
42
+ ): string {
43
+ return JSON.stringify(
44
+ PostTravelRuleRecordsRequest$outboundSchema.parse(
45
+ postTravelRuleRecordsRequest,
46
+ ),
47
+ );
48
+ }
49
+
50
+ /** @internal */
51
+ export const PostTravelRuleRecordsResponse$inboundSchema: z.ZodMiniType<
52
+ PostTravelRuleRecordsResponse,
53
+ unknown
54
+ > = z.object({
55
+ intentId: types.string(),
56
+ recordId: types.string(),
57
+ createdAt: types.string(),
58
+ });
59
+
60
+ export function postTravelRuleRecordsResponseFromJSON(
61
+ jsonString: string,
62
+ ): SafeParseResult<PostTravelRuleRecordsResponse, SDKValidationError> {
63
+ return safeParse(
64
+ jsonString,
65
+ (x) => PostTravelRuleRecordsResponse$inboundSchema.parse(JSON.parse(x)),
66
+ `Failed to parse 'PostTravelRuleRecordsResponse' from JSON`,
67
+ );
68
+ }
@@ -5,15 +5,77 @@
5
5
  import * as z from "zod/v4-mini";
6
6
  import { remap as remap$ } from "../../lib/primitives.js";
7
7
  import { safeParse } from "../../lib/schemas.js";
8
+ import { ClosedEnum } from "../../types/enums.js";
8
9
  import { Result as SafeParseResult } from "../../types/fp.js";
9
10
  import * as types from "../../types/primitives.js";
11
+ import { smartUnion } from "../../types/smart-union.js";
10
12
  import { SDKValidationError } from "../errors/sdk-validation-error.js";
11
13
 
14
+ export const PutOrgsByOrgIdOauthClientsByClientIdAutoProvisionRequest = {
15
+ Investor: "investor",
16
+ } as const;
17
+ export type PutOrgsByOrgIdOauthClientsByClientIdAutoProvisionRequest =
18
+ ClosedEnum<typeof PutOrgsByOrgIdOauthClientsByClientIdAutoProvisionRequest>;
19
+
20
+ export const PutOrgsByOrgIdOauthClientsByClientIdAcceptedAccountTypeEntityRequest =
21
+ {
22
+ Entity: "entity",
23
+ } as const;
24
+ export type PutOrgsByOrgIdOauthClientsByClientIdAcceptedAccountTypeEntityRequest =
25
+ ClosedEnum<
26
+ typeof PutOrgsByOrgIdOauthClientsByClientIdAcceptedAccountTypeEntityRequest
27
+ >;
28
+
29
+ export const PutOrgsByOrgIdOauthClientsByClientIdAcceptedAccountTypeIndividualRequest =
30
+ {
31
+ Individual: "individual",
32
+ } as const;
33
+ export type PutOrgsByOrgIdOauthClientsByClientIdAcceptedAccountTypeIndividualRequest =
34
+ ClosedEnum<
35
+ typeof PutOrgsByOrgIdOauthClientsByClientIdAcceptedAccountTypeIndividualRequest
36
+ >;
37
+
38
+ export type PutOrgsByOrgIdOauthClientsByClientIdAcceptedAccountTypeRequestUnion =
39
+ | PutOrgsByOrgIdOauthClientsByClientIdAcceptedAccountTypeIndividualRequest
40
+ | PutOrgsByOrgIdOauthClientsByClientIdAcceptedAccountTypeEntityRequest;
41
+
12
42
  export type PutOrgsByOrgIdOauthClientsByClientIdRequestBody = {
13
43
  name?: string | undefined;
14
44
  redirectUris?: Array<string> | undefined;
15
45
  allowedScopes?: Array<string> | undefined;
16
46
  description?: string | null | undefined;
47
+ /**
48
+ * Stored only; not enforced yet.
49
+ */
50
+ autoProvision?:
51
+ | PutOrgsByOrgIdOauthClientsByClientIdAutoProvisionRequest
52
+ | null
53
+ | undefined;
54
+ /**
55
+ * Stored only; not enforced yet.
56
+ */
57
+ acceptedAccountTypes?:
58
+ | Array<
59
+ | PutOrgsByOrgIdOauthClientsByClientIdAcceptedAccountTypeIndividualRequest
60
+ | PutOrgsByOrgIdOauthClientsByClientIdAcceptedAccountTypeEntityRequest
61
+ >
62
+ | undefined;
63
+ /**
64
+ * Stored and validated; claim release ignores it until enforced. null = not configured, [] = release nothing (target semantics).
65
+ */
66
+ allowedClaims?: Array<string> | null | undefined;
67
+ /**
68
+ * Enforced: authorization requests must use PAR.
69
+ */
70
+ requirePar?: boolean | undefined;
71
+ /**
72
+ * Stored only; not enforced yet. Never fetched. No userinfo, query or fragment.
73
+ */
74
+ jwksUri?: string | null | undefined;
75
+ /**
76
+ * Pairwise sector host; changes partners' subject identifiers; frozen after first login. Must be one of the organization's allowed domains (or a subdomain of one), and every redirect URI host must equal it.
77
+ */
78
+ sectorIdentifier?: string | null | undefined;
17
79
  };
18
80
 
19
81
  export type PutOrgsByOrgIdOauthClientsByClientIdRequest = {
@@ -22,6 +84,34 @@ export type PutOrgsByOrgIdOauthClientsByClientIdRequest = {
22
84
  body: PutOrgsByOrgIdOauthClientsByClientIdRequestBody;
23
85
  };
24
86
 
87
+ export const PutOrgsByOrgIdOauthClientsByClientIdAutoProvisionResponse = {
88
+ Investor: "investor",
89
+ } as const;
90
+ export type PutOrgsByOrgIdOauthClientsByClientIdAutoProvisionResponse =
91
+ ClosedEnum<typeof PutOrgsByOrgIdOauthClientsByClientIdAutoProvisionResponse>;
92
+
93
+ export const PutOrgsByOrgIdOauthClientsByClientIdAcceptedAccountTypeEntityResponse =
94
+ {
95
+ Entity: "entity",
96
+ } as const;
97
+ export type PutOrgsByOrgIdOauthClientsByClientIdAcceptedAccountTypeEntityResponse =
98
+ ClosedEnum<
99
+ typeof PutOrgsByOrgIdOauthClientsByClientIdAcceptedAccountTypeEntityResponse
100
+ >;
101
+
102
+ export const PutOrgsByOrgIdOauthClientsByClientIdAcceptedAccountTypeIndividualResponse =
103
+ {
104
+ Individual: "individual",
105
+ } as const;
106
+ export type PutOrgsByOrgIdOauthClientsByClientIdAcceptedAccountTypeIndividualResponse =
107
+ ClosedEnum<
108
+ typeof PutOrgsByOrgIdOauthClientsByClientIdAcceptedAccountTypeIndividualResponse
109
+ >;
110
+
111
+ export type PutOrgsByOrgIdOauthClientsByClientIdAcceptedAccountTypeResponseUnion =
112
+ | PutOrgsByOrgIdOauthClientsByClientIdAcceptedAccountTypeIndividualResponse
113
+ | PutOrgsByOrgIdOauthClientsByClientIdAcceptedAccountTypeEntityResponse;
114
+
25
115
  /**
26
116
  * Response
27
117
  */
@@ -33,16 +123,100 @@ export type PutOrgsByOrgIdOauthClientsByClientIdResponse = {
33
123
  allowedScopes: Array<string>;
34
124
  isConfidential: boolean;
35
125
  description: string | null;
126
+ /**
127
+ * Stored only; not enforced yet.
128
+ */
129
+ autoProvision:
130
+ | PutOrgsByOrgIdOauthClientsByClientIdAutoProvisionResponse
131
+ | null;
132
+ /**
133
+ * Stored only; not enforced yet.
134
+ */
135
+ acceptedAccountTypes: Array<
136
+ | PutOrgsByOrgIdOauthClientsByClientIdAcceptedAccountTypeIndividualResponse
137
+ | PutOrgsByOrgIdOauthClientsByClientIdAcceptedAccountTypeEntityResponse
138
+ >;
139
+ /**
140
+ * Stored and validated; claim release ignores it until enforced. null = not configured, [] = release nothing (target semantics).
141
+ */
142
+ allowedClaims: Array<string> | null;
143
+ /**
144
+ * Enforced: authorization requests must use PAR.
145
+ */
146
+ requirePar: boolean;
147
+ /**
148
+ * Stored only; not enforced yet. Never fetched. No userinfo, query or fragment.
149
+ */
150
+ jwksUri: string | null;
151
+ /**
152
+ * Pairwise sector host; changes partners' subject identifiers; frozen after first login. Must be one of the organization's allowed domains (or a subdomain of one), and every redirect URI host must equal it.
153
+ */
154
+ sectorIdentifier: string | null;
36
155
  createdAt: string;
37
156
  updatedAt: string;
38
157
  };
39
158
 
159
+ /** @internal */
160
+ export const PutOrgsByOrgIdOauthClientsByClientIdAutoProvisionRequest$outboundSchema:
161
+ z.ZodMiniEnum<
162
+ typeof PutOrgsByOrgIdOauthClientsByClientIdAutoProvisionRequest
163
+ > = z.enum(PutOrgsByOrgIdOauthClientsByClientIdAutoProvisionRequest);
164
+
165
+ /** @internal */
166
+ export const PutOrgsByOrgIdOauthClientsByClientIdAcceptedAccountTypeEntityRequest$outboundSchema:
167
+ z.ZodMiniEnum<
168
+ typeof PutOrgsByOrgIdOauthClientsByClientIdAcceptedAccountTypeEntityRequest
169
+ > = z.enum(
170
+ PutOrgsByOrgIdOauthClientsByClientIdAcceptedAccountTypeEntityRequest,
171
+ );
172
+
173
+ /** @internal */
174
+ export const PutOrgsByOrgIdOauthClientsByClientIdAcceptedAccountTypeIndividualRequest$outboundSchema:
175
+ z.ZodMiniEnum<
176
+ typeof PutOrgsByOrgIdOauthClientsByClientIdAcceptedAccountTypeIndividualRequest
177
+ > = z.enum(
178
+ PutOrgsByOrgIdOauthClientsByClientIdAcceptedAccountTypeIndividualRequest,
179
+ );
180
+
181
+ /** @internal */
182
+ export type PutOrgsByOrgIdOauthClientsByClientIdAcceptedAccountTypeRequestUnion$Outbound =
183
+ | string
184
+ | string;
185
+
186
+ /** @internal */
187
+ export const PutOrgsByOrgIdOauthClientsByClientIdAcceptedAccountTypeRequestUnion$outboundSchema:
188
+ z.ZodMiniType<
189
+ PutOrgsByOrgIdOauthClientsByClientIdAcceptedAccountTypeRequestUnion$Outbound,
190
+ PutOrgsByOrgIdOauthClientsByClientIdAcceptedAccountTypeRequestUnion
191
+ > = smartUnion([
192
+ PutOrgsByOrgIdOauthClientsByClientIdAcceptedAccountTypeIndividualRequest$outboundSchema,
193
+ PutOrgsByOrgIdOauthClientsByClientIdAcceptedAccountTypeEntityRequest$outboundSchema,
194
+ ]);
195
+
196
+ export function putOrgsByOrgIdOauthClientsByClientIdAcceptedAccountTypeRequestUnionToJSON(
197
+ putOrgsByOrgIdOauthClientsByClientIdAcceptedAccountTypeRequestUnion:
198
+ PutOrgsByOrgIdOauthClientsByClientIdAcceptedAccountTypeRequestUnion,
199
+ ): string {
200
+ return JSON.stringify(
201
+ PutOrgsByOrgIdOauthClientsByClientIdAcceptedAccountTypeRequestUnion$outboundSchema
202
+ .parse(
203
+ putOrgsByOrgIdOauthClientsByClientIdAcceptedAccountTypeRequestUnion,
204
+ ),
205
+ );
206
+ }
207
+
40
208
  /** @internal */
41
209
  export type PutOrgsByOrgIdOauthClientsByClientIdRequestBody$Outbound = {
42
210
  name?: string | undefined;
43
211
  redirect_uris?: Array<string> | undefined;
44
212
  allowed_scopes?: Array<string> | undefined;
45
213
  description?: string | null | undefined;
214
+ auto_provision?: string | null | undefined;
215
+ accepted_account_types?: Array<string | string> | undefined;
216
+ allowed_claims?: Array<string> | null | undefined;
217
+ require_par?: boolean | undefined;
218
+ jwks_uri?: string | null | undefined;
219
+ sector_identifier?: string | null | undefined;
46
220
  };
47
221
 
48
222
  /** @internal */
@@ -56,11 +230,34 @@ export const PutOrgsByOrgIdOauthClientsByClientIdRequestBody$outboundSchema:
56
230
  redirectUris: z.optional(z.array(z.string())),
57
231
  allowedScopes: z.optional(z.array(z.string())),
58
232
  description: z.optional(z.nullable(z.string())),
233
+ autoProvision: z.optional(
234
+ z.nullable(
235
+ PutOrgsByOrgIdOauthClientsByClientIdAutoProvisionRequest$outboundSchema,
236
+ ),
237
+ ),
238
+ acceptedAccountTypes: z.optional(
239
+ z.array(
240
+ smartUnion([
241
+ PutOrgsByOrgIdOauthClientsByClientIdAcceptedAccountTypeIndividualRequest$outboundSchema,
242
+ PutOrgsByOrgIdOauthClientsByClientIdAcceptedAccountTypeEntityRequest$outboundSchema,
243
+ ]),
244
+ ),
245
+ ),
246
+ allowedClaims: z.optional(z.nullable(z.array(z.string()))),
247
+ requirePar: z.optional(z.boolean()),
248
+ jwksUri: z.optional(z.nullable(z.string())),
249
+ sectorIdentifier: z.optional(z.nullable(z.string())),
59
250
  }),
60
251
  z.transform((v) => {
61
252
  return remap$(v, {
62
253
  redirectUris: "redirect_uris",
63
254
  allowedScopes: "allowed_scopes",
255
+ autoProvision: "auto_provision",
256
+ acceptedAccountTypes: "accepted_account_types",
257
+ allowedClaims: "allowed_claims",
258
+ requirePar: "require_par",
259
+ jwksUri: "jwks_uri",
260
+ sectorIdentifier: "sector_identifier",
64
261
  });
65
262
  }),
66
263
  );
@@ -107,6 +304,53 @@ export function putOrgsByOrgIdOauthClientsByClientIdRequestToJSON(
107
304
  );
108
305
  }
109
306
 
307
+ /** @internal */
308
+ export const PutOrgsByOrgIdOauthClientsByClientIdAutoProvisionResponse$inboundSchema:
309
+ z.ZodMiniEnum<
310
+ typeof PutOrgsByOrgIdOauthClientsByClientIdAutoProvisionResponse
311
+ > = z.enum(PutOrgsByOrgIdOauthClientsByClientIdAutoProvisionResponse);
312
+
313
+ /** @internal */
314
+ export const PutOrgsByOrgIdOauthClientsByClientIdAcceptedAccountTypeEntityResponse$inboundSchema:
315
+ z.ZodMiniEnum<
316
+ typeof PutOrgsByOrgIdOauthClientsByClientIdAcceptedAccountTypeEntityResponse
317
+ > = z.enum(
318
+ PutOrgsByOrgIdOauthClientsByClientIdAcceptedAccountTypeEntityResponse,
319
+ );
320
+
321
+ /** @internal */
322
+ export const PutOrgsByOrgIdOauthClientsByClientIdAcceptedAccountTypeIndividualResponse$inboundSchema:
323
+ z.ZodMiniEnum<
324
+ typeof PutOrgsByOrgIdOauthClientsByClientIdAcceptedAccountTypeIndividualResponse
325
+ > = z.enum(
326
+ PutOrgsByOrgIdOauthClientsByClientIdAcceptedAccountTypeIndividualResponse,
327
+ );
328
+
329
+ /** @internal */
330
+ export const PutOrgsByOrgIdOauthClientsByClientIdAcceptedAccountTypeResponseUnion$inboundSchema:
331
+ z.ZodMiniType<
332
+ PutOrgsByOrgIdOauthClientsByClientIdAcceptedAccountTypeResponseUnion,
333
+ unknown
334
+ > = smartUnion([
335
+ PutOrgsByOrgIdOauthClientsByClientIdAcceptedAccountTypeIndividualResponse$inboundSchema,
336
+ PutOrgsByOrgIdOauthClientsByClientIdAcceptedAccountTypeEntityResponse$inboundSchema,
337
+ ]);
338
+
339
+ export function putOrgsByOrgIdOauthClientsByClientIdAcceptedAccountTypeResponseUnionFromJSON(
340
+ jsonString: string,
341
+ ): SafeParseResult<
342
+ PutOrgsByOrgIdOauthClientsByClientIdAcceptedAccountTypeResponseUnion,
343
+ SDKValidationError
344
+ > {
345
+ return safeParse(
346
+ jsonString,
347
+ (x) =>
348
+ PutOrgsByOrgIdOauthClientsByClientIdAcceptedAccountTypeResponseUnion$inboundSchema
349
+ .parse(JSON.parse(x)),
350
+ `Failed to parse 'PutOrgsByOrgIdOauthClientsByClientIdAcceptedAccountTypeResponseUnion' from JSON`,
351
+ );
352
+ }
353
+
110
354
  /** @internal */
111
355
  export const PutOrgsByOrgIdOauthClientsByClientIdResponse$inboundSchema:
112
356
  z.ZodMiniType<PutOrgsByOrgIdOauthClientsByClientIdResponse, unknown> = z.pipe(
@@ -118,6 +362,19 @@ export const PutOrgsByOrgIdOauthClientsByClientIdResponse$inboundSchema:
118
362
  allowed_scopes: z.array(types.string()),
119
363
  is_confidential: types.boolean(),
120
364
  description: types.nullable(types.string()),
365
+ auto_provision: types.nullable(
366
+ PutOrgsByOrgIdOauthClientsByClientIdAutoProvisionResponse$inboundSchema,
367
+ ),
368
+ accepted_account_types: z.array(
369
+ smartUnion([
370
+ PutOrgsByOrgIdOauthClientsByClientIdAcceptedAccountTypeIndividualResponse$inboundSchema,
371
+ PutOrgsByOrgIdOauthClientsByClientIdAcceptedAccountTypeEntityResponse$inboundSchema,
372
+ ]),
373
+ ),
374
+ allowed_claims: types.nullable(z.array(types.string())),
375
+ require_par: types.boolean(),
376
+ jwks_uri: types.nullable(types.string()),
377
+ sector_identifier: types.nullable(types.string()),
121
378
  created_at: types.string(),
122
379
  updated_at: types.string(),
123
380
  }),
@@ -127,6 +384,12 @@ export const PutOrgsByOrgIdOauthClientsByClientIdResponse$inboundSchema:
127
384
  "redirect_uris": "redirectUris",
128
385
  "allowed_scopes": "allowedScopes",
129
386
  "is_confidential": "isConfidential",
387
+ "auto_provision": "autoProvision",
388
+ "accepted_account_types": "acceptedAccountTypes",
389
+ "allowed_claims": "allowedClaims",
390
+ "require_par": "requirePar",
391
+ "jwks_uri": "jwksUri",
392
+ "sector_identifier": "sectorIdentifier",
130
393
  "created_at": "createdAt",
131
394
  "updated_at": "updatedAt",
132
395
  });
@@ -9,11 +9,6 @@ import { Result as SafeParseResult } from "../../types/fp.js";
9
9
  import * as types from "../../types/primitives.js";
10
10
  import { SDKValidationError } from "../errors/sdk-validation-error.js";
11
11
 
12
- export type PutOrgsByOrgIdSubOrgsBySubOrgIdMoveSecurity = {
13
- bearerAuth?: string | undefined;
14
- apiKeyAuth?: string | undefined;
15
- };
16
-
17
12
  export type PutOrgsByOrgIdSubOrgsBySubOrgIdMoveRequestBody = {
18
13
  newParentId: string;
19
14
  };
@@ -45,33 +40,6 @@ export type PutOrgsByOrgIdSubOrgsBySubOrgIdMoveResponse = {
45
40
  updatedAt: string;
46
41
  };
47
42
 
48
- /** @internal */
49
- export type PutOrgsByOrgIdSubOrgsBySubOrgIdMoveSecurity$Outbound = {
50
- bearerAuth?: string | undefined;
51
- apiKeyAuth?: string | undefined;
52
- };
53
-
54
- /** @internal */
55
- export const PutOrgsByOrgIdSubOrgsBySubOrgIdMoveSecurity$outboundSchema:
56
- z.ZodMiniType<
57
- PutOrgsByOrgIdSubOrgsBySubOrgIdMoveSecurity$Outbound,
58
- PutOrgsByOrgIdSubOrgsBySubOrgIdMoveSecurity
59
- > = z.object({
60
- bearerAuth: z.optional(z.string()),
61
- apiKeyAuth: z.optional(z.string()),
62
- });
63
-
64
- export function putOrgsByOrgIdSubOrgsBySubOrgIdMoveSecurityToJSON(
65
- putOrgsByOrgIdSubOrgsBySubOrgIdMoveSecurity:
66
- PutOrgsByOrgIdSubOrgsBySubOrgIdMoveSecurity,
67
- ): string {
68
- return JSON.stringify(
69
- PutOrgsByOrgIdSubOrgsBySubOrgIdMoveSecurity$outboundSchema.parse(
70
- putOrgsByOrgIdSubOrgsBySubOrgIdMoveSecurity,
71
- ),
72
- );
73
- }
74
-
75
43
  /** @internal */
76
44
  export type PutOrgsByOrgIdSubOrgsBySubOrgIdMoveRequestBody$Outbound = {
77
45
  newParentId: string;
@@ -0,0 +1,63 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { approvalsGetApprovalsByApprovalIdStatus } from "../funcs/approvals-get-approvals-by-approval-id-status.js";
6
+ import { approvalsGetApprovalsByApprovalId } from "../funcs/approvals-get-approvals-by-approval-id.js";
7
+ import { approvalsPostApprovals } from "../funcs/approvals-post-approvals.js";
8
+ import { ClientSDK, RequestOptions } from "../lib/sdks.js";
9
+ import * as operations from "../models/operations/index.js";
10
+ import { unwrapAsync } from "../types/fp.js";
11
+
12
+ export class Approvals extends ClientSDK {
13
+ /**
14
+ * Request the user's approval for a preflight intent
15
+ *
16
+ * @remarks
17
+ * Requests an approval, by session or by passkey, for a transfer intent the caller submitted, whose newest preflight result is an unexpired signed pass. Answers 201 with the approval (status requested, 900 s TTL). Requesting decides nothing: deciding needs a designated approver and a fresh step-up, whatever the method. Refuses anything the approver's detail view could not render (400 invalid_argument). An intent that is missing or not the caller's is 409 intent_mismatch. Session JWT only: API keys are 403 actor_required, partner tokens 403 partner_scope_denied. The credential is checked before the body: an unauthenticated request is 401 whatever it sent. A body over 4096 bytes is 413 payload_too_large. Synchronous 201 DB write (CQRS exception). No Kafka.
18
+ */
19
+ async postApprovals(
20
+ request: operations.PostApprovalsRequest,
21
+ options?: RequestOptions,
22
+ ): Promise<operations.PostApprovalsResponse> {
23
+ return unwrapAsync(approvalsPostApprovals(
24
+ this,
25
+ request,
26
+ options,
27
+ ));
28
+ }
29
+
30
+ /**
31
+ * Read an approval as its designated approver
32
+ *
33
+ * @remarks
34
+ * What the designated approver is approving: the approval, the decoded transfer, the server-built call display, the canonical intent pre-image and the preflight result. Requires a Clossir Passport client's DPoP-bound access token with a fresh DPoP proof; session JWTs, API keys and partner tokens answer 401. A caller who is not the designated approver gets the same 404 approval_not_found as an unknown id.
35
+ */
36
+ async getApprovalsByApprovalId(
37
+ approvalId: string,
38
+ options?: RequestOptions,
39
+ ): Promise<operations.GetApprovalsByApprovalIdResponse> {
40
+ return unwrapAsync(approvalsGetApprovalsByApprovalId(
41
+ this,
42
+ approvalId,
43
+ options,
44
+ ));
45
+ }
46
+
47
+ /**
48
+ * Read the status of an approval you requested or may decide
49
+ *
50
+ * @remarks
51
+ * 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.
52
+ */
53
+ async getApprovalsByApprovalIdStatus(
54
+ approvalId: string,
55
+ options?: RequestOptions,
56
+ ): Promise<operations.GetApprovalsByApprovalIdStatusResponse> {
57
+ return unwrapAsync(approvalsGetApprovalsByApprovalIdStatus(
58
+ this,
59
+ approvalId,
60
+ options,
61
+ ));
62
+ }
63
+ }
package/src/sdk/assets.ts CHANGED
@@ -157,10 +157,9 @@ export class Assets extends ClientSDK {
157
157
  * Upload asset document
158
158
  *
159
159
  * @remarks
160
- * Attach a compliance document to the asset. Provide the document URL and type.
160
+ * Attach a compliance document to the asset. Provide the document URL and type. Requires a user session with the admin or operator role; API keys receive 403.
161
161
  */
162
162
  async postOrgsByOrgIdAssetsByAssetIdDocuments(
163
- security: operations.PostOrgsByOrgIdAssetsByAssetIdDocumentsSecurity,
164
163
  orgId: string,
165
164
  assetId: string,
166
165
  body: operations.PostOrgsByOrgIdAssetsByAssetIdDocumentsRequestBody,
@@ -168,7 +167,6 @@ export class Assets extends ClientSDK {
168
167
  ): Promise<operations.PostOrgsByOrgIdAssetsByAssetIdDocumentsResponse> {
169
168
  return unwrapAsync(assetsPostOrgsByOrgIdAssetsByAssetIdDocuments(
170
169
  this,
171
- security,
172
170
  orgId,
173
171
  assetId,
174
172
  body,
@@ -33,7 +33,7 @@ export class Attestations extends ClientSDK {
33
33
  * Create attestation (async)
34
34
  *
35
35
  * @remarks
36
- * Queues an on-chain attestation via LayerZero (CQRS pattern). Creates a pending record and publishes a command to Kafka for the chain agents (evm-agent / solana-agent). Returns 202 Accepted immediately. Poll GET /attestations/:id to track completion. The claim_hash (<chainEid>_<walletAddress>) is used for deduplication — an active or pending attestation cannot be re-created.
36
+ * Queues an on-chain attestation via LayerZero (CQRS pattern). Creates a pending record and publishes a command to Kafka for the chain agents (evm-agent / solana-agent). Returns 202 Accepted immediately. Poll GET /attestations/:id to track completion. The claim_hash (<chainEid>_<walletAddress>) is used for deduplication — an active or pending attestation cannot be re-created. A caller without approved, unexpired KYC verification gets 403 kyc_required.
37
37
  */
38
38
  async postAttestations(
39
39
  request: operations.PostAttestationsRequest,
package/src/sdk/auth.ts CHANGED
@@ -59,7 +59,7 @@ export class Auth extends ClientSDK {
59
59
  * Refresh tokens
60
60
  *
61
61
  * @remarks
62
- * Exchange a refresh token for new access and refresh tokens.
62
+ * Exchange a refresh token for new access and refresh tokens. 503 when the token or its user cannot be read (with Retry-After) or when rotation faults; on either the presented token is not consumed and can be re-presented.
63
63
  */
64
64
  async postAuthRefresh(
65
65
  request: operations.PostAuthRefreshRequest,
package/src/sdk/bridge.ts CHANGED
@@ -62,7 +62,7 @@ export class Bridge extends ClientSDK {
62
62
  * List bridge transactions
63
63
  *
64
64
  * @remarks
65
- * Returns the bridge transactions initiated by the organization's active members (rows are selected by member user id, so a member's bridges of another organization's assets are included unless `assetId` narrows them). Supports filtering by asset ID and status, with cursor-based pagination. Readable by admin, operator or compliance_officer in the organization; an API key needs `assets:read`.
65
+ * Returns bridge transactions of the organization's own assets (for a user token, assets owned by the organization or any of its sub-organizations; for an API key, exactly that organization). Row-level security limits the list to bridges the caller initiated themselves, so an API key receives none. Supports filtering by asset ID and status, with cursor-based pagination. Readable by admin, operator or compliance_officer in the organization; an API key needs `assets:read`.
66
66
  */
67
67
  async getOrgsByOrgIdBridgeHistory(
68
68
  security: operations.GetOrgsByOrgIdBridgeHistorySecurity,