@clossir-tech/ts-sdk 0.10.6 → 0.11.1

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 (543) hide show
  1. package/README.md +79 -19
  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-movable-wallets.d.ts +20 -0
  7. package/esm/funcs/accounts-get-accounts-movable-wallets.d.ts.map +1 -0
  8. package/esm/funcs/accounts-get-accounts-movable-wallets.js +94 -0
  9. package/esm/funcs/accounts-get-accounts-movable-wallets.js.map +1 -0
  10. package/esm/funcs/approvals-get-approvals-by-approval-id-status.d.ts +20 -0
  11. package/esm/funcs/approvals-get-approvals-by-approval-id-status.d.ts.map +1 -0
  12. package/esm/funcs/approvals-get-approvals-by-approval-id-status.js +96 -0
  13. package/esm/funcs/approvals-get-approvals-by-approval-id-status.js.map +1 -0
  14. package/esm/funcs/approvals-get-approvals-by-approval-id.d.ts +20 -0
  15. package/esm/funcs/approvals-get-approvals-by-approval-id.d.ts.map +1 -0
  16. package/esm/funcs/approvals-get-approvals-by-approval-id.js +100 -0
  17. package/esm/funcs/approvals-get-approvals-by-approval-id.js.map +1 -0
  18. package/esm/funcs/approvals-post-approvals-by-approval-id-approve.d.ts +20 -0
  19. package/esm/funcs/approvals-post-approvals-by-approval-id-approve.d.ts.map +1 -0
  20. package/esm/funcs/approvals-post-approvals-by-approval-id-approve.js +100 -0
  21. package/esm/funcs/approvals-post-approvals-by-approval-id-approve.js.map +1 -0
  22. package/esm/funcs/approvals-post-approvals-by-approval-id-reject.d.ts +20 -0
  23. package/esm/funcs/approvals-post-approvals-by-approval-id-reject.d.ts.map +1 -0
  24. package/esm/funcs/approvals-post-approvals-by-approval-id-reject.js +100 -0
  25. package/esm/funcs/approvals-post-approvals-by-approval-id-reject.js.map +1 -0
  26. package/esm/funcs/approvals-post-approvals.d.ts +20 -0
  27. package/esm/funcs/approvals-post-approvals.d.ts.map +1 -0
  28. package/esm/funcs/approvals-post-approvals.js +90 -0
  29. package/esm/funcs/approvals-post-approvals.js.map +1 -0
  30. package/esm/funcs/assets-patch-orgs-by-org-id-assets-by-asset-id.d.ts +1 -1
  31. package/esm/funcs/assets-patch-orgs-by-org-id-assets-by-asset-id.js +1 -1
  32. package/esm/funcs/assets-post-orgs-by-org-id-assets-by-asset-id-allocate.js +3 -1
  33. package/esm/funcs/assets-post-orgs-by-org-id-assets-by-asset-id-allocate.js.map +1 -1
  34. package/esm/funcs/assets-post-orgs-by-org-id-assets-by-asset-id-deploy.js +1 -1
  35. package/esm/funcs/assets-post-orgs-by-org-id-assets-by-asset-id-deploy.js.map +1 -1
  36. package/esm/funcs/assets-post-orgs-by-org-id-assets-by-asset-id-documents.d.ts +4 -2
  37. package/esm/funcs/assets-post-orgs-by-org-id-assets-by-asset-id-documents.d.ts.map +1 -1
  38. package/esm/funcs/assets-post-orgs-by-org-id-assets-by-asset-id-documents.js +11 -19
  39. package/esm/funcs/assets-post-orgs-by-org-id-assets-by-asset-id-documents.js.map +1 -1
  40. package/esm/funcs/assets-post-orgs-by-org-id-assets.d.ts +1 -1
  41. package/esm/funcs/assets-post-orgs-by-org-id-assets.js +1 -1
  42. package/esm/funcs/attestations-delete-attestations-by-id.d.ts +1 -1
  43. package/esm/funcs/attestations-delete-attestations-by-id.js +2 -2
  44. package/esm/funcs/attestations-delete-attestations-by-id.js.map +1 -1
  45. package/esm/funcs/attestations-post-attestations.d.ts +1 -1
  46. package/esm/funcs/attestations-post-attestations.js +2 -2
  47. package/esm/funcs/attestations-post-attestations.js.map +1 -1
  48. package/esm/funcs/auth-post-auth-accept-invite.js +1 -1
  49. package/esm/funcs/auth-post-auth-accept-invite.js.map +1 -1
  50. package/esm/funcs/auth-post-auth-login.js +1 -1
  51. package/esm/funcs/auth-post-auth-login.js.map +1 -1
  52. package/esm/funcs/auth-post-auth-refresh.d.ts +1 -1
  53. package/esm/funcs/auth-post-auth-refresh.js +1 -1
  54. package/esm/funcs/bridge-get-orgs-by-org-id-bridge-history.d.ts +1 -1
  55. package/esm/funcs/bridge-get-orgs-by-org-id-bridge-history.js +1 -1
  56. package/esm/funcs/bridge-post-orgs-by-org-id-assets-by-asset-id-bridge.js +1 -1
  57. package/esm/funcs/bridge-post-orgs-by-org-id-assets-by-asset-id-bridge.js.map +1 -1
  58. package/esm/funcs/commands-get-commands-by-command-id.d.ts +1 -1
  59. package/esm/funcs/commands-get-commands-by-command-id.js +1 -1
  60. package/esm/funcs/compliance-post-orgs-by-org-id-assets-by-asset-id-compliance-policy.d.ts +1 -1
  61. package/esm/funcs/compliance-post-orgs-by-org-id-assets-by-asset-id-compliance-policy.js +2 -2
  62. package/esm/funcs/compliance-post-orgs-by-org-id-assets-by-asset-id-compliance-policy.js.map +1 -1
  63. package/esm/funcs/distributions-post-orgs-by-org-id-assets-by-asset-id-distributions-by-dist-id-activate.js +2 -0
  64. package/esm/funcs/distributions-post-orgs-by-org-id-assets-by-asset-id-distributions-by-dist-id-activate.js.map +1 -1
  65. package/esm/funcs/distributions-post-orgs-by-org-id-assets-by-asset-id-distributions.js +2 -0
  66. package/esm/funcs/distributions-post-orgs-by-org-id-assets-by-asset-id-distributions.js.map +1 -1
  67. package/esm/funcs/eligibility-post-eligibility-check.d.ts +20 -0
  68. package/esm/funcs/eligibility-post-eligibility-check.d.ts.map +1 -0
  69. package/esm/funcs/eligibility-post-eligibility-check.js +90 -0
  70. package/esm/funcs/eligibility-post-eligibility-check.js.map +1 -0
  71. package/esm/funcs/fees-post-orgs-by-org-id-assets-by-asset-id-fees-distribute.js +3 -1
  72. package/esm/funcs/fees-post-orgs-by-org-id-assets-by-asset-id-fees-distribute.js.map +1 -1
  73. package/esm/funcs/health-get-health.d.ts +1 -1
  74. package/esm/funcs/health-get-health.js +1 -1
  75. package/esm/funcs/markets-delete-orgs-by-org-id-assets-by-asset-id-markets-by-market-id-orders-by-order-id.js +2 -0
  76. 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
  77. package/esm/funcs/markets-post-orgs-by-org-id-assets-by-asset-id-markets-by-market-id-deposit-hypercore.js +1 -1
  78. package/esm/funcs/markets-post-orgs-by-org-id-assets-by-asset-id-markets-by-market-id-deposit-hypercore.js.map +1 -1
  79. package/esm/funcs/markets-post-orgs-by-org-id-assets-by-asset-id-markets-by-market-id-orders.js +3 -1
  80. package/esm/funcs/markets-post-orgs-by-org-id-assets-by-asset-id-markets-by-market-id-orders.js.map +1 -1
  81. package/esm/funcs/markets-post-orgs-by-org-id-assets-by-asset-id-markets.js +1 -1
  82. package/esm/funcs/markets-post-orgs-by-org-id-assets-by-asset-id-markets.js.map +1 -1
  83. package/esm/funcs/mfa-post-auth-mfa-verify.js +2 -2
  84. package/esm/funcs/mfa-post-auth-mfa-verify.js.map +1 -1
  85. package/esm/funcs/nav-post-orgs-by-org-id-assets-by-asset-id-nav-configure.js +2 -0
  86. package/esm/funcs/nav-post-orgs-by-org-id-assets-by-asset-id-nav-configure.js.map +1 -1
  87. package/esm/funcs/nav-post-orgs-by-org-id-assets-by-asset-id-nav-publish.js +2 -0
  88. package/esm/funcs/nav-post-orgs-by-org-id-assets-by-asset-id-nav-publish.js.map +1 -1
  89. package/esm/funcs/o-auth-get-oauth-authorize.d.ts +1 -1
  90. package/esm/funcs/o-auth-get-oauth-authorize.js +1 -1
  91. package/esm/funcs/o-auth-get-oauth-userinfo.d.ts +2 -2
  92. package/esm/funcs/o-auth-get-oauth-userinfo.d.ts.map +1 -1
  93. package/esm/funcs/o-auth-get-oauth-userinfo.js +2 -2
  94. package/esm/funcs/o-auth-get-oauth-userinfo.js.map +1 -1
  95. package/esm/funcs/o-auth-management-delete-orgs-by-org-id-oauth-clients-by-client-id.js +2 -0
  96. package/esm/funcs/o-auth-management-delete-orgs-by-org-id-oauth-clients-by-client-id.js.map +1 -1
  97. package/esm/funcs/o-auth-management-post-orgs-by-org-id-oauth-clients.js +1 -1
  98. package/esm/funcs/o-auth-management-post-orgs-by-org-id-oauth-clients.js.map +1 -1
  99. package/esm/funcs/o-auth-management-put-orgs-by-org-id-oauth-clients-by-client-id.js +3 -1
  100. package/esm/funcs/o-auth-management-put-orgs-by-org-id-oauth-clients-by-client-id.js.map +1 -1
  101. package/esm/funcs/o-auth-post-oauth-token.d.ts +2 -2
  102. package/esm/funcs/o-auth-post-oauth-token.d.ts.map +1 -1
  103. package/esm/funcs/o-auth-post-oauth-token.js +2 -2
  104. package/esm/funcs/o-auth-post-oauth-token.js.map +1 -1
  105. package/esm/funcs/organizations-get-orgs-by-org-id-server-wallet.js +2 -0
  106. package/esm/funcs/organizations-get-orgs-by-org-id-server-wallet.js.map +1 -1
  107. package/esm/funcs/organizations-post-orgs-by-org-id-issuer-register.js +1 -1
  108. package/esm/funcs/organizations-post-orgs-by-org-id-issuer-register.js.map +1 -1
  109. package/esm/funcs/organizations-post-orgs-by-org-id-members-by-user-id-attest.js +3 -1
  110. package/esm/funcs/organizations-post-orgs-by-org-id-members-by-user-id-attest.js.map +1 -1
  111. package/esm/funcs/organizations-post-orgs-by-org-id-server-wallet.js +1 -1
  112. package/esm/funcs/organizations-post-orgs-by-org-id-server-wallet.js.map +1 -1
  113. package/esm/funcs/organizations-put-orgs-by-org-id-compliance.d.ts +1 -1
  114. package/esm/funcs/organizations-put-orgs-by-org-id-compliance.js +2 -4
  115. package/esm/funcs/organizations-put-orgs-by-org-id-compliance.js.map +1 -1
  116. package/esm/funcs/organizations-put-orgs-by-org-id-sub-orgs-by-sub-org-id-move.d.ts +4 -2
  117. package/esm/funcs/organizations-put-orgs-by-org-id-sub-orgs-by-sub-org-id-move.d.ts.map +1 -1
  118. package/esm/funcs/organizations-put-orgs-by-org-id-sub-orgs-by-sub-org-id-move.js +12 -22
  119. package/esm/funcs/organizations-put-orgs-by-org-id-sub-orgs-by-sub-org-id-move.js.map +1 -1
  120. package/esm/funcs/passport-get-login-passport-status.d.ts +18 -0
  121. package/esm/funcs/passport-get-login-passport-status.d.ts.map +1 -0
  122. package/esm/funcs/passport-get-login-passport-status.js +77 -0
  123. package/esm/funcs/passport-get-login-passport-status.js.map +1 -0
  124. package/esm/funcs/passport-get-passport-home.d.ts +17 -0
  125. package/esm/funcs/passport-get-passport-home.d.ts.map +1 -0
  126. package/esm/funcs/passport-get-passport-home.js +77 -0
  127. package/esm/funcs/passport-get-passport-home.js.map +1 -0
  128. package/esm/funcs/passport-get-passport-sign-in.d.ts +17 -0
  129. package/esm/funcs/passport-get-passport-sign-in.d.ts.map +1 -0
  130. package/esm/funcs/passport-get-passport-sign-in.js +75 -0
  131. package/esm/funcs/passport-get-passport-sign-in.js.map +1 -0
  132. package/esm/funcs/passport-post-login-passport-finish.d.ts +18 -0
  133. package/esm/funcs/passport-post-login-passport-finish.d.ts.map +1 -0
  134. package/esm/funcs/passport-post-login-passport-finish.js +89 -0
  135. package/esm/funcs/passport-post-login-passport-finish.js.map +1 -0
  136. package/esm/funcs/passport-post-passport-sign-in-decision.d.ts +18 -0
  137. package/esm/funcs/passport-post-passport-sign-in-decision.d.ts.map +1 -0
  138. package/esm/funcs/passport-post-passport-sign-in-decision.js +86 -0
  139. package/esm/funcs/passport-post-passport-sign-in-decision.js.map +1 -0
  140. package/esm/funcs/preflight-get-preflight-results-by-result-id.d.ts +20 -0
  141. package/esm/funcs/preflight-get-preflight-results-by-result-id.d.ts.map +1 -0
  142. package/esm/funcs/preflight-get-preflight-results-by-result-id.js +98 -0
  143. package/esm/funcs/preflight-get-preflight-results-by-result-id.js.map +1 -0
  144. package/esm/funcs/preflight-post-preflight-intents.d.ts +20 -0
  145. package/esm/funcs/preflight-post-preflight-intents.d.ts.map +1 -0
  146. package/esm/funcs/preflight-post-preflight-intents.js +90 -0
  147. package/esm/funcs/preflight-post-preflight-intents.js.map +1 -0
  148. package/esm/funcs/transfers-get-transfers.d.ts +1 -1
  149. package/esm/funcs/transfers-get-transfers.js +1 -1
  150. package/esm/funcs/travel-rule-post-travel-rule-records.d.ts +20 -0
  151. package/esm/funcs/travel-rule-post-travel-rule-records.d.ts.map +1 -0
  152. package/esm/funcs/travel-rule-post-travel-rule-records.js +90 -0
  153. package/esm/funcs/travel-rule-post-travel-rule-records.js.map +1 -0
  154. package/esm/funcs/ui-get-login.js +1 -0
  155. package/esm/funcs/ui-get-login.js.map +1 -1
  156. package/esm/funcs/vaults-post-orgs-by-org-id-assets-by-asset-id-vault-deprecate.js +3 -1
  157. package/esm/funcs/vaults-post-orgs-by-org-id-assets-by-asset-id-vault-deprecate.js.map +1 -1
  158. package/esm/funcs/vaults-post-orgs-by-org-id-assets-by-asset-id-vault-pause.js +3 -1
  159. package/esm/funcs/vaults-post-orgs-by-org-id-assets-by-asset-id-vault-pause.js.map +1 -1
  160. package/esm/funcs/vaults-post-orgs-by-org-id-assets-by-asset-id-vault-settle.js +3 -1
  161. package/esm/funcs/vaults-post-orgs-by-org-id-assets-by-asset-id-vault-settle.js.map +1 -1
  162. package/esm/lib/config.d.ts +2 -2
  163. package/esm/lib/config.js +2 -2
  164. package/esm/models/errors/get-approvals-by-approval-id.d.ts +41 -0
  165. package/esm/models/errors/get-approvals-by-approval-id.d.ts.map +1 -0
  166. package/esm/models/errors/get-approvals-by-approval-id.js +56 -0
  167. package/esm/models/errors/get-approvals-by-approval-id.js.map +1 -0
  168. package/esm/models/errors/get-oauth-authorize.d.ts +6 -6
  169. package/esm/models/errors/get-oauth-authorize.js +3 -3
  170. package/esm/models/errors/get-oauth-userinfo.d.ts +152 -4
  171. package/esm/models/errors/get-oauth-userinfo.d.ts.map +1 -1
  172. package/esm/models/errors/get-oauth-userinfo.js +166 -2
  173. package/esm/models/errors/get-oauth-userinfo.js.map +1 -1
  174. package/esm/models/errors/get-passport-home.d.ts +96 -0
  175. package/esm/models/errors/get-passport-home.d.ts.map +1 -0
  176. package/esm/models/errors/get-passport-home.js +114 -0
  177. package/esm/models/errors/get-passport-home.js.map +1 -0
  178. package/esm/models/errors/get-passport-sign-in.d.ts +96 -0
  179. package/esm/models/errors/get-passport-sign-in.d.ts.map +1 -0
  180. package/esm/models/errors/get-passport-sign-in.js +114 -0
  181. package/esm/models/errors/get-passport-sign-in.js.map +1 -0
  182. package/esm/models/errors/index.d.ts +8 -0
  183. package/esm/models/errors/index.d.ts.map +1 -1
  184. package/esm/models/errors/index.js +8 -0
  185. package/esm/models/errors/index.js.map +1 -1
  186. package/esm/models/errors/o-auth-error-response.d.ts +52 -0
  187. package/esm/models/errors/o-auth-error-response.d.ts.map +1 -0
  188. package/esm/models/errors/o-auth-error-response.js +63 -0
  189. package/esm/models/errors/o-auth-error-response.js.map +1 -0
  190. package/esm/models/errors/post-approvals-by-approval-id-approve.d.ts +41 -0
  191. package/esm/models/errors/post-approvals-by-approval-id-approve.d.ts.map +1 -0
  192. package/esm/models/errors/post-approvals-by-approval-id-approve.js +52 -0
  193. package/esm/models/errors/post-approvals-by-approval-id-approve.js.map +1 -0
  194. package/esm/models/errors/post-approvals-by-approval-id-reject.d.ts +41 -0
  195. package/esm/models/errors/post-approvals-by-approval-id-reject.d.ts.map +1 -0
  196. package/esm/models/errors/post-approvals-by-approval-id-reject.js +53 -0
  197. package/esm/models/errors/post-approvals-by-approval-id-reject.js.map +1 -0
  198. package/esm/models/errors/post-eligibility-check.d.ts +58 -0
  199. package/esm/models/errors/post-eligibility-check.d.ts.map +1 -0
  200. package/esm/models/errors/post-eligibility-check.js +66 -0
  201. package/esm/models/errors/post-eligibility-check.js.map +1 -0
  202. package/esm/models/errors/post-oauth-par.d.ts +10 -10
  203. package/esm/models/errors/post-oauth-par.js +5 -5
  204. package/esm/models/errors/post-oauth-revoke.d.ts +10 -10
  205. package/esm/models/errors/post-oauth-revoke.js +5 -5
  206. package/esm/models/errors/post-oauth-token.d.ts +99 -6
  207. package/esm/models/errors/post-oauth-token.d.ts.map +1 -1
  208. package/esm/models/errors/post-oauth-token.js +109 -3
  209. package/esm/models/errors/post-oauth-token.js.map +1 -1
  210. package/esm/models/errors/post-passport-sign-in-decision.d.ts +96 -0
  211. package/esm/models/errors/post-passport-sign-in-decision.d.ts.map +1 -0
  212. package/esm/models/errors/post-passport-sign-in-decision.js +115 -0
  213. package/esm/models/errors/post-passport-sign-in-decision.js.map +1 -0
  214. package/esm/models/errors/problem-details-error.d.ts +24 -0
  215. package/esm/models/errors/problem-details-error.d.ts.map +1 -1
  216. package/esm/models/errors/problem-details-error.js +21 -0
  217. package/esm/models/errors/problem-details-error.js.map +1 -1
  218. package/esm/models/operations/get-accounts-cash-assets.d.ts +44 -0
  219. package/esm/models/operations/get-accounts-cash-assets.d.ts.map +1 -0
  220. package/esm/models/operations/get-accounts-cash-assets.js +30 -0
  221. package/esm/models/operations/get-accounts-cash-assets.js.map +1 -0
  222. package/esm/models/operations/get-accounts-movable-wallets.d.ts +104 -0
  223. package/esm/models/operations/get-accounts-movable-wallets.d.ts.map +1 -0
  224. package/esm/models/operations/get-accounts-movable-wallets.js +75 -0
  225. package/esm/models/operations/get-accounts-movable-wallets.js.map +1 -0
  226. package/esm/models/operations/get-approvals-by-approval-id-status.d.ts +91 -0
  227. package/esm/models/operations/get-approvals-by-approval-id-status.d.ts.map +1 -0
  228. package/esm/models/operations/get-approvals-by-approval-id-status.js +60 -0
  229. package/esm/models/operations/get-approvals-by-approval-id-status.js.map +1 -0
  230. package/esm/models/operations/get-approvals-by-approval-id.d.ts +391 -0
  231. package/esm/models/operations/get-approvals-by-approval-id.d.ts.map +1 -0
  232. package/esm/models/operations/get-approvals-by-approval-id.js +299 -0
  233. package/esm/models/operations/get-approvals-by-approval-id.js.map +1 -0
  234. package/esm/models/operations/get-commands-by-command-id.d.ts +105 -0
  235. package/esm/models/operations/get-commands-by-command-id.d.ts.map +1 -1
  236. package/esm/models/operations/get-commands-by-command-id.js +119 -0
  237. package/esm/models/operations/get-commands-by-command-id.js.map +1 -1
  238. package/esm/models/operations/get-health.d.ts +8 -0
  239. package/esm/models/operations/get-health.d.ts.map +1 -1
  240. package/esm/models/operations/get-health.js +2 -0
  241. package/esm/models/operations/get-health.js.map +1 -1
  242. package/esm/models/operations/get-login-passport-status.d.ts +42 -0
  243. package/esm/models/operations/get-login-passport-status.d.ts.map +1 -0
  244. package/esm/models/operations/get-login-passport-status.js +45 -0
  245. package/esm/models/operations/get-login-passport-status.js.map +1 -0
  246. package/esm/models/operations/get-login.d.ts +2 -0
  247. package/esm/models/operations/get-login.d.ts.map +1 -1
  248. package/esm/models/operations/get-login.js +1 -0
  249. package/esm/models/operations/get-login.js.map +1 -1
  250. package/esm/models/operations/get-oauth-userinfo.d.ts +48 -0
  251. package/esm/models/operations/get-oauth-userinfo.d.ts.map +1 -1
  252. package/esm/models/operations/get-oauth-userinfo.js +32 -0
  253. package/esm/models/operations/get-oauth-userinfo.js.map +1 -1
  254. package/esm/models/operations/get-orgs-by-org-id-assets-by-asset-id-compliance-policy.d.ts +1 -0
  255. package/esm/models/operations/get-orgs-by-org-id-assets-by-asset-id-compliance-policy.d.ts.map +1 -1
  256. package/esm/models/operations/get-orgs-by-org-id-assets-by-asset-id-compliance-policy.js +1 -0
  257. package/esm/models/operations/get-orgs-by-org-id-assets-by-asset-id-compliance-policy.js.map +1 -1
  258. package/esm/models/operations/get-orgs-by-org-id-oauth-clients-by-client-id.d.ts +47 -0
  259. package/esm/models/operations/get-orgs-by-org-id-oauth-clients-by-client-id.d.ts.map +1 -1
  260. package/esm/models/operations/get-orgs-by-org-id-oauth-clients-by-client-id.js +41 -0
  261. package/esm/models/operations/get-orgs-by-org-id-oauth-clients-by-client-id.js.map +1 -1
  262. package/esm/models/operations/get-orgs-by-org-id-oauth-clients.d.ts +47 -0
  263. package/esm/models/operations/get-orgs-by-org-id-oauth-clients.d.ts.map +1 -1
  264. package/esm/models/operations/get-orgs-by-org-id-oauth-clients.js +40 -0
  265. package/esm/models/operations/get-orgs-by-org-id-oauth-clients.js.map +1 -1
  266. package/esm/models/operations/get-passport-home.d.ts +9 -0
  267. package/esm/models/operations/get-passport-home.d.ts.map +1 -0
  268. package/esm/models/operations/get-passport-home.js +10 -0
  269. package/esm/models/operations/get-passport-home.js.map +1 -0
  270. package/esm/models/operations/get-passport-sign-in.d.ts +9 -0
  271. package/esm/models/operations/get-passport-sign-in.d.ts.map +1 -0
  272. package/esm/models/operations/get-passport-sign-in.js +10 -0
  273. package/esm/models/operations/get-passport-sign-in.js.map +1 -0
  274. package/esm/models/operations/get-preflight-results-by-result-id.d.ts +354 -0
  275. package/esm/models/operations/get-preflight-results-by-result-id.d.ts.map +1 -0
  276. package/esm/models/operations/get-preflight-results-by-result-id.js +291 -0
  277. package/esm/models/operations/get-preflight-results-by-result-id.js.map +1 -0
  278. package/esm/models/operations/index.d.ts +16 -0
  279. package/esm/models/operations/index.d.ts.map +1 -1
  280. package/esm/models/operations/index.js +16 -0
  281. package/esm/models/operations/index.js.map +1 -1
  282. package/esm/models/operations/post-accounts-wallets-sync.d.ts +3 -1
  283. package/esm/models/operations/post-accounts-wallets-sync.d.ts.map +1 -1
  284. package/esm/models/operations/post-accounts-wallets-sync.js.map +1 -1
  285. package/esm/models/operations/post-approvals-by-approval-id-approve.d.ts +53 -0
  286. package/esm/models/operations/post-approvals-by-approval-id-approve.d.ts.map +1 -0
  287. package/esm/models/operations/post-approvals-by-approval-id-approve.js +41 -0
  288. package/esm/models/operations/post-approvals-by-approval-id-approve.js.map +1 -0
  289. package/esm/models/operations/post-approvals-by-approval-id-reject.d.ts +105 -0
  290. package/esm/models/operations/post-approvals-by-approval-id-reject.d.ts.map +1 -0
  291. package/esm/models/operations/post-approvals-by-approval-id-reject.js +71 -0
  292. package/esm/models/operations/post-approvals-by-approval-id-reject.js.map +1 -0
  293. package/esm/models/operations/post-approvals.d.ts +114 -0
  294. package/esm/models/operations/post-approvals.d.ts.map +1 -0
  295. package/esm/models/operations/post-approvals.js +76 -0
  296. package/esm/models/operations/post-approvals.js.map +1 -0
  297. package/esm/models/operations/post-attestations.d.ts +24 -7
  298. package/esm/models/operations/post-attestations.d.ts.map +1 -1
  299. package/esm/models/operations/post-attestations.js +7 -1
  300. package/esm/models/operations/post-attestations.js.map +1 -1
  301. package/esm/models/operations/post-auth-verify-email.d.ts +10 -10
  302. package/esm/models/operations/post-auth-verify-email.d.ts.map +1 -1
  303. package/esm/models/operations/post-auth-verify-email.js +8 -8
  304. package/esm/models/operations/post-auth-verify-email.js.map +1 -1
  305. package/esm/models/operations/post-consent.d.ts +2 -0
  306. package/esm/models/operations/post-consent.d.ts.map +1 -1
  307. package/esm/models/operations/post-consent.js +2 -0
  308. package/esm/models/operations/post-consent.js.map +1 -1
  309. package/esm/models/operations/post-eligibility-check.d.ts +45 -0
  310. package/esm/models/operations/post-eligibility-check.d.ts.map +1 -0
  311. package/esm/models/operations/post-eligibility-check.js +43 -0
  312. package/esm/models/operations/post-eligibility-check.js.map +1 -0
  313. package/esm/models/operations/post-login-passport-finish.d.ts +24 -0
  314. package/esm/models/operations/post-login-passport-finish.d.ts.map +1 -0
  315. package/esm/models/operations/post-login-passport-finish.js +31 -0
  316. package/esm/models/operations/post-login-passport-finish.js.map +1 -0
  317. package/esm/models/operations/post-oauth-token.d.ts +22 -9
  318. package/esm/models/operations/post-oauth-token.d.ts.map +1 -1
  319. package/esm/models/operations/post-oauth-token.js +25 -6
  320. package/esm/models/operations/post-oauth-token.js.map +1 -1
  321. package/esm/models/operations/post-orgs-by-org-id-assets-by-asset-id-allocate.d.ts +4 -4
  322. package/esm/models/operations/post-orgs-by-org-id-assets-by-asset-id-allocate.d.ts.map +1 -1
  323. package/esm/models/operations/post-orgs-by-org-id-assets-by-asset-id-allocate.js +5 -4
  324. package/esm/models/operations/post-orgs-by-org-id-assets-by-asset-id-allocate.js.map +1 -1
  325. package/esm/models/operations/post-orgs-by-org-id-assets-by-asset-id-compliance-policy.d.ts +2 -0
  326. package/esm/models/operations/post-orgs-by-org-id-assets-by-asset-id-compliance-policy.d.ts.map +1 -1
  327. package/esm/models/operations/post-orgs-by-org-id-assets-by-asset-id-compliance-policy.js +2 -0
  328. package/esm/models/operations/post-orgs-by-org-id-assets-by-asset-id-compliance-policy.js.map +1 -1
  329. package/esm/models/operations/post-orgs-by-org-id-assets-by-asset-id-documents.d.ts +0 -12
  330. package/esm/models/operations/post-orgs-by-org-id-assets-by-asset-id-documents.d.ts.map +1 -1
  331. package/esm/models/operations/post-orgs-by-org-id-assets-by-asset-id-documents.js +0 -8
  332. package/esm/models/operations/post-orgs-by-org-id-assets-by-asset-id-documents.js.map +1 -1
  333. package/esm/models/operations/post-orgs-by-org-id-assets-by-asset-id-markets-by-market-id-orders.d.ts +1 -1
  334. package/esm/models/operations/post-orgs-by-org-id-oauth-clients.d.ts +101 -0
  335. package/esm/models/operations/post-orgs-by-org-id-oauth-clients.d.ts.map +1 -1
  336. package/esm/models/operations/post-orgs-by-org-id-oauth-clients.js +81 -0
  337. package/esm/models/operations/post-orgs-by-org-id-oauth-clients.js.map +1 -1
  338. package/esm/models/operations/post-passport-sign-in-decision.d.ts +25 -0
  339. package/esm/models/operations/post-passport-sign-in-decision.d.ts.map +1 -0
  340. package/esm/models/operations/post-passport-sign-in-decision.js +27 -0
  341. package/esm/models/operations/post-passport-sign-in-decision.js.map +1 -0
  342. package/esm/models/operations/post-preflight-intents.d.ts +392 -0
  343. package/esm/models/operations/post-preflight-intents.d.ts.map +1 -0
  344. package/esm/models/operations/post-preflight-intents.js +310 -0
  345. package/esm/models/operations/post-preflight-intents.js.map +1 -0
  346. package/esm/models/operations/post-preflight.d.ts +8 -8
  347. package/esm/models/operations/post-preflight.d.ts.map +1 -1
  348. package/esm/models/operations/post-preflight.js +7 -7
  349. package/esm/models/operations/post-preflight.js.map +1 -1
  350. package/esm/models/operations/post-travel-rule-records.d.ts +27 -0
  351. package/esm/models/operations/post-travel-rule-records.d.ts.map +1 -0
  352. package/esm/models/operations/post-travel-rule-records.js +24 -0
  353. package/esm/models/operations/post-travel-rule-records.js.map +1 -0
  354. package/esm/models/operations/put-orgs-by-org-id-oauth-clients-by-client-id.d.ts +101 -0
  355. package/esm/models/operations/put-orgs-by-org-id-oauth-clients-by-client-id.d.ts.map +1 -1
  356. package/esm/models/operations/put-orgs-by-org-id-oauth-clients-by-client-id.js +79 -0
  357. package/esm/models/operations/put-orgs-by-org-id-oauth-clients-by-client-id.js.map +1 -1
  358. package/esm/models/operations/put-orgs-by-org-id-sub-orgs-by-sub-org-id-move.d.ts +0 -12
  359. package/esm/models/operations/put-orgs-by-org-id-sub-orgs-by-sub-org-id-move.d.ts.map +1 -1
  360. package/esm/models/operations/put-orgs-by-org-id-sub-orgs-by-sub-org-id-move.js +0 -8
  361. package/esm/models/operations/put-orgs-by-org-id-sub-orgs-by-sub-org-id-move.js.map +1 -1
  362. package/esm/sdk/accounts.d.ts +14 -0
  363. package/esm/sdk/accounts.d.ts.map +1 -1
  364. package/esm/sdk/accounts.js +20 -0
  365. package/esm/sdk/accounts.js.map +1 -1
  366. package/esm/sdk/approvals.d.ts +40 -0
  367. package/esm/sdk/approvals.d.ts.map +1 -0
  368. package/esm/sdk/approvals.js +58 -0
  369. package/esm/sdk/approvals.js.map +1 -0
  370. package/esm/sdk/assets.d.ts +4 -4
  371. package/esm/sdk/assets.d.ts.map +1 -1
  372. package/esm/sdk/assets.js +5 -5
  373. package/esm/sdk/assets.js.map +1 -1
  374. package/esm/sdk/attestations.d.ts +2 -2
  375. package/esm/sdk/attestations.js +2 -2
  376. package/esm/sdk/auth.d.ts +1 -1
  377. package/esm/sdk/auth.js +1 -1
  378. package/esm/sdk/bridge.d.ts +1 -1
  379. package/esm/sdk/bridge.js +1 -1
  380. package/esm/sdk/commands.d.ts +1 -1
  381. package/esm/sdk/commands.js +1 -1
  382. package/esm/sdk/compliance.d.ts +1 -1
  383. package/esm/sdk/compliance.js +1 -1
  384. package/esm/sdk/eligibility.d.ts +12 -0
  385. package/esm/sdk/eligibility.d.ts.map +1 -0
  386. package/esm/sdk/eligibility.js +18 -0
  387. package/esm/sdk/eligibility.js.map +1 -0
  388. package/esm/sdk/health.d.ts +1 -1
  389. package/esm/sdk/health.js +1 -1
  390. package/esm/sdk/o-auth.d.ts +3 -3
  391. package/esm/sdk/o-auth.js +3 -3
  392. package/esm/sdk/organizations.d.ts +3 -3
  393. package/esm/sdk/organizations.d.ts.map +1 -1
  394. package/esm/sdk/organizations.js +4 -4
  395. package/esm/sdk/organizations.js.map +1 -1
  396. package/esm/sdk/passport.d.ts +40 -0
  397. package/esm/sdk/passport.d.ts.map +1 -0
  398. package/esm/sdk/passport.js +58 -0
  399. package/esm/sdk/passport.js.map +1 -0
  400. package/esm/sdk/preflight.d.ts +14 -0
  401. package/esm/sdk/preflight.d.ts.map +1 -1
  402. package/esm/sdk/preflight.js +20 -0
  403. package/esm/sdk/preflight.js.map +1 -1
  404. package/esm/sdk/sdk.d.ts +12 -0
  405. package/esm/sdk/sdk.d.ts.map +1 -1
  406. package/esm/sdk/sdk.js +20 -0
  407. package/esm/sdk/sdk.js.map +1 -1
  408. package/esm/sdk/transfers.d.ts +1 -1
  409. package/esm/sdk/transfers.js +1 -1
  410. package/esm/sdk/travel-rule.d.ts +12 -0
  411. package/esm/sdk/travel-rule.d.ts.map +1 -0
  412. package/esm/sdk/travel-rule.js +18 -0
  413. package/esm/sdk/travel-rule.js.map +1 -0
  414. package/jsr.json +1 -1
  415. package/package.json +1 -1
  416. package/src/funcs/accounts-get-accounts-cash-assets.ts +157 -0
  417. package/src/funcs/accounts-get-accounts-movable-wallets.ts +193 -0
  418. package/src/funcs/approvals-get-approvals-by-approval-id-status.ts +197 -0
  419. package/src/funcs/approvals-get-approvals-by-approval-id.ts +204 -0
  420. package/src/funcs/approvals-post-approvals-by-approval-id-approve.ts +217 -0
  421. package/src/funcs/approvals-post-approvals-by-approval-id-reject.ts +217 -0
  422. package/src/funcs/approvals-post-approvals.ts +189 -0
  423. package/src/funcs/assets-patch-orgs-by-org-id-assets-by-asset-id.ts +1 -1
  424. package/src/funcs/assets-post-orgs-by-org-id-assets-by-asset-id-allocate.ts +3 -0
  425. package/src/funcs/assets-post-orgs-by-org-id-assets-by-asset-id-deploy.ts +1 -1
  426. package/src/funcs/assets-post-orgs-by-org-id-assets-by-asset-id-documents.ts +8 -22
  427. package/src/funcs/assets-post-orgs-by-org-id-assets.ts +1 -1
  428. package/src/funcs/attestations-delete-attestations-by-id.ts +2 -2
  429. package/src/funcs/attestations-post-attestations.ts +3 -3
  430. package/src/funcs/auth-post-auth-accept-invite.ts +1 -1
  431. package/src/funcs/auth-post-auth-login.ts +1 -1
  432. package/src/funcs/auth-post-auth-refresh.ts +1 -1
  433. package/src/funcs/bridge-get-orgs-by-org-id-bridge-history.ts +1 -1
  434. package/src/funcs/bridge-post-orgs-by-org-id-assets-by-asset-id-bridge.ts +1 -1
  435. package/src/funcs/commands-get-commands-by-command-id.ts +1 -1
  436. package/src/funcs/compliance-post-orgs-by-org-id-assets-by-asset-id-compliance-policy.ts +2 -2
  437. package/src/funcs/distributions-post-orgs-by-org-id-assets-by-asset-id-distributions-by-dist-id-activate.ts +3 -0
  438. package/src/funcs/distributions-post-orgs-by-org-id-assets-by-asset-id-distributions.ts +3 -0
  439. package/src/funcs/eligibility-post-eligibility-check.ts +191 -0
  440. package/src/funcs/fees-post-orgs-by-org-id-assets-by-asset-id-fees-distribute.ts +3 -0
  441. package/src/funcs/health-get-health.ts +1 -1
  442. package/src/funcs/markets-delete-orgs-by-org-id-assets-by-asset-id-markets-by-market-id-orders-by-order-id.ts +3 -0
  443. package/src/funcs/markets-post-orgs-by-org-id-assets-by-asset-id-markets-by-market-id-deposit-hypercore.ts +1 -1
  444. package/src/funcs/markets-post-orgs-by-org-id-assets-by-asset-id-markets-by-market-id-orders.ts +3 -0
  445. package/src/funcs/markets-post-orgs-by-org-id-assets-by-asset-id-markets.ts +1 -1
  446. package/src/funcs/mfa-post-auth-mfa-verify.ts +2 -2
  447. package/src/funcs/nav-post-orgs-by-org-id-assets-by-asset-id-nav-configure.ts +3 -0
  448. package/src/funcs/nav-post-orgs-by-org-id-assets-by-asset-id-nav-publish.ts +3 -0
  449. package/src/funcs/o-auth-get-oauth-authorize.ts +1 -1
  450. package/src/funcs/o-auth-get-oauth-userinfo.ts +16 -1
  451. package/src/funcs/o-auth-management-delete-orgs-by-org-id-oauth-clients-by-client-id.ts +3 -0
  452. package/src/funcs/o-auth-management-post-orgs-by-org-id-oauth-clients.ts +6 -1
  453. package/src/funcs/o-auth-management-put-orgs-by-org-id-oauth-clients-by-client-id.ts +4 -1
  454. package/src/funcs/o-auth-post-oauth-token.ts +9 -1
  455. package/src/funcs/organizations-get-orgs-by-org-id-server-wallet.ts +3 -0
  456. package/src/funcs/organizations-post-orgs-by-org-id-issuer-register.ts +1 -1
  457. package/src/funcs/organizations-post-orgs-by-org-id-members-by-user-id-attest.ts +3 -0
  458. package/src/funcs/organizations-post-orgs-by-org-id-server-wallet.ts +1 -1
  459. package/src/funcs/organizations-put-orgs-by-org-id-compliance.ts +6 -4
  460. package/src/funcs/organizations-put-orgs-by-org-id-sub-orgs-by-sub-org-id-move.ts +13 -25
  461. package/src/funcs/passport-get-login-passport-status.ts +158 -0
  462. package/src/funcs/passport-get-passport-home.ts +170 -0
  463. package/src/funcs/passport-get-passport-sign-in.ts +172 -0
  464. package/src/funcs/passport-post-login-passport-finish.ts +184 -0
  465. package/src/funcs/passport-post-passport-sign-in-decision.ts +201 -0
  466. package/src/funcs/preflight-get-preflight-results-by-result-id.ts +202 -0
  467. package/src/funcs/preflight-post-preflight-intents.ts +190 -0
  468. package/src/funcs/transfers-get-transfers.ts +1 -1
  469. package/src/funcs/travel-rule-post-travel-rule-records.ts +190 -0
  470. package/src/funcs/ui-get-login.ts +1 -0
  471. package/src/funcs/vaults-post-orgs-by-org-id-assets-by-asset-id-vault-deprecate.ts +3 -0
  472. package/src/funcs/vaults-post-orgs-by-org-id-assets-by-asset-id-vault-pause.ts +3 -0
  473. package/src/funcs/vaults-post-orgs-by-org-id-assets-by-asset-id-vault-settle.ts +3 -0
  474. package/src/lib/config.ts +2 -2
  475. package/src/models/errors/get-approvals-by-approval-id.ts +83 -0
  476. package/src/models/errors/get-oauth-authorize.ts +6 -6
  477. package/src/models/errors/get-oauth-userinfo.ts +273 -4
  478. package/src/models/errors/get-passport-home.ts +182 -0
  479. package/src/models/errors/get-passport-sign-in.ts +182 -0
  480. package/src/models/errors/index.ts +8 -0
  481. package/src/models/errors/o-auth-error-response.ts +99 -0
  482. package/src/models/errors/post-approvals-by-approval-id-approve.ts +85 -0
  483. package/src/models/errors/post-approvals-by-approval-id-reject.ts +85 -0
  484. package/src/models/errors/post-eligibility-check.ts +103 -0
  485. package/src/models/errors/post-oauth-par.ts +10 -10
  486. package/src/models/errors/post-oauth-revoke.ts +10 -10
  487. package/src/models/errors/post-oauth-token.ts +180 -6
  488. package/src/models/errors/post-passport-sign-in-decision.ts +179 -0
  489. package/src/models/errors/problem-details-error.ts +30 -0
  490. package/src/models/operations/get-accounts-cash-assets.ts +89 -0
  491. package/src/models/operations/get-accounts-movable-wallets.ts +240 -0
  492. package/src/models/operations/get-approvals-by-approval-id-status.ts +161 -0
  493. package/src/models/operations/get-approvals-by-approval-id.ts +735 -0
  494. package/src/models/operations/get-commands-by-command-id.ts +267 -0
  495. package/src/models/operations/get-health.ts +10 -0
  496. package/src/models/operations/get-login-passport-status.ts +97 -0
  497. package/src/models/operations/get-login.ts +3 -0
  498. package/src/models/operations/get-oauth-userinfo.ts +112 -0
  499. package/src/models/operations/get-orgs-by-org-id-assets-by-asset-id-compliance-policy.ts +2 -0
  500. package/src/models/operations/get-orgs-by-org-id-oauth-clients-by-client-id.ts +118 -0
  501. package/src/models/operations/get-orgs-by-org-id-oauth-clients.ts +113 -0
  502. package/src/models/operations/get-passport-home.ts +16 -0
  503. package/src/models/operations/get-passport-sign-in.ts +16 -0
  504. package/src/models/operations/get-preflight-results-by-result-id.ts +704 -0
  505. package/src/models/operations/index.ts +16 -0
  506. package/src/models/operations/post-accounts-wallets-sync.ts +3 -1
  507. package/src/models/operations/post-approvals-by-approval-id-approve.ts +134 -0
  508. package/src/models/operations/post-approvals-by-approval-id-reject.ts +207 -0
  509. package/src/models/operations/post-approvals.ts +192 -0
  510. package/src/models/operations/post-attestations.ts +39 -8
  511. package/src/models/operations/post-auth-verify-email.ts +33 -19
  512. package/src/models/operations/post-consent.ts +4 -0
  513. package/src/models/operations/post-eligibility-check.ts +123 -0
  514. package/src/models/operations/post-login-passport-finish.ts +76 -0
  515. package/src/models/operations/post-oauth-token.ts +53 -14
  516. package/src/models/operations/post-orgs-by-org-id-assets-by-asset-id-allocate.ts +23 -11
  517. package/src/models/operations/post-orgs-by-org-id-assets-by-asset-id-compliance-policy.ts +4 -0
  518. package/src/models/operations/post-orgs-by-org-id-assets-by-asset-id-documents.ts +0 -32
  519. package/src/models/operations/post-orgs-by-org-id-assets-by-asset-id-markets-by-market-id-orders.ts +1 -1
  520. package/src/models/operations/post-orgs-by-org-id-oauth-clients.ts +248 -0
  521. package/src/models/operations/post-passport-sign-in-decision.ts +67 -0
  522. package/src/models/operations/post-preflight-intents.ts +775 -0
  523. package/src/models/operations/post-preflight.ts +18 -15
  524. package/src/models/operations/post-travel-rule-records.ts +68 -0
  525. package/src/models/operations/put-orgs-by-org-id-oauth-clients-by-client-id.ts +263 -0
  526. package/src/models/operations/put-orgs-by-org-id-sub-orgs-by-sub-org-id-move.ts +0 -32
  527. package/src/sdk/accounts.ts +34 -0
  528. package/src/sdk/approvals.ts +103 -0
  529. package/src/sdk/assets.ts +3 -5
  530. package/src/sdk/attestations.ts +2 -2
  531. package/src/sdk/auth.ts +1 -1
  532. package/src/sdk/bridge.ts +1 -1
  533. package/src/sdk/commands.ts +1 -1
  534. package/src/sdk/compliance.ts +1 -1
  535. package/src/sdk/eligibility.ts +27 -0
  536. package/src/sdk/health.ts +1 -1
  537. package/src/sdk/o-auth.ts +3 -3
  538. package/src/sdk/organizations.ts +2 -4
  539. package/src/sdk/passport.ts +93 -0
  540. package/src/sdk/preflight.ts +36 -0
  541. package/src/sdk/sdk.ts +24 -0
  542. package/src/sdk/transfers.ts +1 -1
  543. package/src/sdk/travel-rule.ts +27 -0
@@ -10,7 +10,7 @@ import * as M from "../lib/matchers.js";
10
10
  import { compactMap } from "../lib/primitives.js";
11
11
  import { safeParse } from "../lib/schemas.js";
12
12
  import { RequestOptions } from "../lib/sdks.js";
13
- import { resolveSecurity } from "../lib/security.js";
13
+ import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
14
14
  import { pathToFunc } from "../lib/url.js";
15
15
  import {
16
16
  ConnectionError,
@@ -31,11 +31,12 @@ import { Result } from "../types/fp.js";
31
31
  * Upload asset document
32
32
  *
33
33
  * @remarks
34
- * Attach a compliance document to the asset. Provide the document URL and type.
34
+ * 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.
35
+ *
36
+ * If set, this operation will use {@link Security.bearerAuth} from the global security.
35
37
  */
36
38
  export function assetsPostOrgsByOrgIdAssetsByAssetIdDocuments(
37
39
  client: ClossirCore,
38
- security: operations.PostOrgsByOrgIdAssetsByAssetIdDocumentsSecurity,
39
40
  orgId: string,
40
41
  assetId: string,
41
42
  body: operations.PostOrgsByOrgIdAssetsByAssetIdDocumentsRequestBody,
@@ -56,7 +57,6 @@ export function assetsPostOrgsByOrgIdAssetsByAssetIdDocuments(
56
57
  > {
57
58
  return new APIPromise($do(
58
59
  client,
59
- security,
60
60
  orgId,
61
61
  assetId,
62
62
  body,
@@ -66,7 +66,6 @@ export function assetsPostOrgsByOrgIdAssetsByAssetIdDocuments(
66
66
 
67
67
  async function $do(
68
68
  client: ClossirCore,
69
- security: operations.PostOrgsByOrgIdAssetsByAssetIdDocumentsSecurity,
70
69
  orgId: string,
71
70
  assetId: string,
72
71
  body: operations.PostOrgsByOrgIdAssetsByAssetIdDocumentsRequestBody,
@@ -129,22 +128,9 @@ async function $do(
129
128
  Accept: "application/json",
130
129
  }));
131
130
 
132
- const requestSecurity = resolveSecurity(
133
- [
134
- {
135
- fieldName: "Authorization",
136
- type: "http:bearer",
137
- value: security?.bearerAuth,
138
- },
139
- ],
140
- [
141
- {
142
- fieldName: "x-api-key",
143
- type: "apiKey:header",
144
- value: security?.apiKeyAuth,
145
- },
146
- ],
147
- );
131
+ const secConfig = await extractSecurity(client._options.bearerAuth);
132
+ const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
133
+ const requestSecurity = resolveGlobalSecurity(securityInput, [0]);
148
134
 
149
135
  const context = {
150
136
  options: client._options,
@@ -154,7 +140,7 @@ async function $do(
154
140
 
155
141
  resolvedSecurity: requestSecurity,
156
142
 
157
- securitySource: security,
143
+ securitySource: client._options.bearerAuth,
158
144
  retryConfig: options?.retries
159
145
  || client._options.retryConfig
160
146
  || { strategy: "none" },
@@ -31,7 +31,7 @@ import { Result } from "../types/fp.js";
31
31
  * Create a new asset
32
32
  *
33
33
  * @remarks
34
- * 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.
34
+ * 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.
35
35
  */
36
36
  export function assetsPostOrgsByOrgIdAssets(
37
37
  client: ClossirCore,
@@ -31,7 +31,7 @@ import { Result } from "../types/fp.js";
31
31
  * Revoke attestation (async)
32
32
  *
33
33
  * @remarks
34
- * 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.
34
+ * 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).
35
35
  *
36
36
  * If set, this operation will use {@link Security.bearerAuth} from the global security.
37
37
  */
@@ -182,7 +182,7 @@ async function $do(
182
182
  errors.ProblemDetailsError$inboundSchema,
183
183
  { ctype: "application/problem+json" },
184
184
  ),
185
- M.jsonErr(500, errors.ProblemDetailsError$inboundSchema, {
185
+ M.jsonErr([500, 503], errors.ProblemDetailsError$inboundSchema, {
186
186
  ctype: "application/problem+json",
187
187
  }),
188
188
  M.fail("4XX"),
@@ -31,7 +31,7 @@ import { Result } from "../types/fp.js";
31
31
  * Create attestation (async)
32
32
  *
33
33
  * @remarks
34
- * 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.
34
+ * 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.
35
35
  *
36
36
  * If set, this operation will use {@link Security.bearerAuth} from the global security.
37
37
  */
@@ -164,11 +164,11 @@ async function $do(
164
164
  >(
165
165
  M.json(202, operations.PostAttestationsResponse$inboundSchema),
166
166
  M.jsonErr(
167
- [400, 401, 409, 428, 429],
167
+ [400, 401, 403, 409, 428, 429],
168
168
  errors.ProblemDetailsError$inboundSchema,
169
169
  { ctype: "application/problem+json" },
170
170
  ),
171
- M.jsonErr(500, errors.ProblemDetailsError$inboundSchema, {
171
+ M.jsonErr([500, 503], errors.ProblemDetailsError$inboundSchema, {
172
172
  ctype: "application/problem+json",
173
173
  }),
174
174
  M.fail("4XX"),
@@ -164,7 +164,7 @@ async function $do(
164
164
  M.jsonErr([400, 403, 422, 429], errors.ProblemDetailsError$inboundSchema, {
165
165
  ctype: "application/problem+json",
166
166
  }),
167
- M.jsonErr(500, errors.ProblemDetailsError$inboundSchema, {
167
+ M.jsonErr([500, 503], errors.ProblemDetailsError$inboundSchema, {
168
168
  ctype: "application/problem+json",
169
169
  }),
170
170
  M.fail("4XX"),
@@ -159,7 +159,7 @@ async function $do(
159
159
  errors.ProblemDetailsError$inboundSchema,
160
160
  { ctype: "application/problem+json" },
161
161
  ),
162
- M.jsonErr(500, errors.ProblemDetailsError$inboundSchema, {
162
+ M.jsonErr([500, 503], errors.ProblemDetailsError$inboundSchema, {
163
163
  ctype: "application/problem+json",
164
164
  }),
165
165
  M.fail("4XX"),
@@ -30,7 +30,7 @@ import { Result } from "../types/fp.js";
30
30
  * Refresh tokens
31
31
  *
32
32
  * @remarks
33
- * Exchange a refresh token for new access and refresh tokens.
33
+ * 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.
34
34
  */
35
35
  export function authPostAuthRefresh(
36
36
  client: ClossirCore,
@@ -31,7 +31,7 @@ import { Result } from "../types/fp.js";
31
31
  * List bridge transactions
32
32
  *
33
33
  * @remarks
34
- * 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`.
34
+ * 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`.
35
35
  */
36
36
  export function bridgeGetOrgsByOrgIdBridgeHistory(
37
37
  client: ClossirCore,
@@ -210,7 +210,7 @@ async function $do(
210
210
  errors.ProblemDetailsError$inboundSchema,
211
211
  { ctype: "application/problem+json" },
212
212
  ),
213
- M.jsonErr(500, errors.ProblemDetailsError$inboundSchema, {
213
+ M.jsonErr([500, 503], errors.ProblemDetailsError$inboundSchema, {
214
214
  ctype: "application/problem+json",
215
215
  }),
216
216
  M.fail("4XX"),
@@ -31,7 +31,7 @@ import { Result } from "../types/fp.js";
31
31
  * Get command lifecycle
32
32
  *
33
33
  * @remarks
34
- * 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.
34
+ * 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.
35
35
  *
36
36
  * If set, this operation will use {@link Security.bearerAuth} from the global security.
37
37
  */
@@ -31,7 +31,7 @@ import { Result } from "../types/fp.js";
31
31
  * Update asset compliance policy
32
32
  *
33
33
  * @remarks
34
- * 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.
34
+ * 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.
35
35
  */
36
36
  export function compliancePostOrgsByOrgIdAssetsByAssetIdCompliancePolicy(
37
37
  client: ClossirCore,
@@ -218,7 +218,7 @@ async function $do(
218
218
  M.jsonErr([403, 404, 422, 428], errors.ProblemDetailsError$inboundSchema, {
219
219
  ctype: "application/problem+json",
220
220
  }),
221
- M.jsonErr(500, errors.ProblemDetailsError$inboundSchema, {
221
+ M.jsonErr([500, 503], errors.ProblemDetailsError$inboundSchema, {
222
222
  ctype: "application/problem+json",
223
223
  }),
224
224
  M.fail("4XX"),
@@ -202,6 +202,9 @@ async function $do(
202
202
  M.jsonErr([400, 403, 404, 428], errors.ProblemDetailsError$inboundSchema, {
203
203
  ctype: "application/problem+json",
204
204
  }),
205
+ M.jsonErr([500, 503], errors.ProblemDetailsError$inboundSchema, {
206
+ ctype: "application/problem+json",
207
+ }),
205
208
  M.fail("4XX"),
206
209
  M.fail("5XX"),
207
210
  )(response, req, { extraFields: responseFields });
@@ -190,6 +190,9 @@ async function $do(
190
190
  M.jsonErr([400, 403, 404, 428], errors.ProblemDetailsError$inboundSchema, {
191
191
  ctype: "application/problem+json",
192
192
  }),
193
+ M.jsonErr(503, errors.ProblemDetailsError$inboundSchema, {
194
+ ctype: "application/problem+json",
195
+ }),
193
196
  M.fail("4XX"),
194
197
  M.fail("5XX"),
195
198
  )(response, req, { extraFields: responseFields });
@@ -0,0 +1,191 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v4-mini";
6
+ import { ClossirCore } from "../core.js";
7
+ import { encodeJSON } from "../lib/encodings.js";
8
+ import { matchStatusCode } from "../lib/http.js";
9
+ import * as M from "../lib/matchers.js";
10
+ import { compactMap } from "../lib/primitives.js";
11
+ import { safeParse } from "../lib/schemas.js";
12
+ import { RequestOptions } from "../lib/sdks.js";
13
+ import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
14
+ import { pathToFunc } from "../lib/url.js";
15
+ import {
16
+ ConnectionError,
17
+ InvalidRequestError,
18
+ RequestAbortedError,
19
+ RequestTimeoutError,
20
+ UnexpectedClientError,
21
+ } from "../models/errors/http-client-errors.js";
22
+ import * as errors from "../models/errors/index.js";
23
+ import { ResponseValidationError } from "../models/errors/response-validation-error.js";
24
+ import { SDKError } from "../models/errors/sdk-error.js";
25
+ import { SDKValidationError } from "../models/errors/sdk-validation-error.js";
26
+ import * as operations from "../models/operations/index.js";
27
+ import { APICall, APIPromise } from "../types/async.js";
28
+ import { Result } from "../types/fp.js";
29
+
30
+ /**
31
+ * Check holder eligibility for target assets
32
+ *
33
+ * @remarks
34
+ * Evaluates whether the authenticated holder is eligible to subscribe to one or more target assets, returning a per-gate breakdown driven by the compliance engine. Accepts JWT callers and partner (DPoP-bound OAuth) callers with the clossir:eligibility scope. API-key callers receive 403. A partner call answers 503 temporarily_unavailable when MFA enforcement or the consent check cannot be read; MFA-gate outages carry Retry-After.
35
+ *
36
+ * If set, this operation will use {@link Security.bearerAuth} from the global security.
37
+ */
38
+ export function eligibilityPostEligibilityCheck(
39
+ client: ClossirCore,
40
+ request: operations.PostEligibilityCheckRequest,
41
+ options?: RequestOptions,
42
+ ): APIPromise<
43
+ Result<
44
+ operations.PostEligibilityCheckResponse,
45
+ | errors.ProblemDetailsError
46
+ | errors.OAuthErrorResponse
47
+ | errors.PostEligibilityCheckServiceUnavailableError
48
+ | SDKError
49
+ | ResponseValidationError
50
+ | ConnectionError
51
+ | RequestAbortedError
52
+ | RequestTimeoutError
53
+ | InvalidRequestError
54
+ | UnexpectedClientError
55
+ | SDKValidationError
56
+ >
57
+ > {
58
+ return new APIPromise($do(
59
+ client,
60
+ request,
61
+ options,
62
+ ));
63
+ }
64
+
65
+ async function $do(
66
+ client: ClossirCore,
67
+ request: operations.PostEligibilityCheckRequest,
68
+ options?: RequestOptions,
69
+ ): Promise<
70
+ [
71
+ Result<
72
+ operations.PostEligibilityCheckResponse,
73
+ | errors.ProblemDetailsError
74
+ | errors.OAuthErrorResponse
75
+ | errors.PostEligibilityCheckServiceUnavailableError
76
+ | SDKError
77
+ | ResponseValidationError
78
+ | ConnectionError
79
+ | RequestAbortedError
80
+ | RequestTimeoutError
81
+ | InvalidRequestError
82
+ | UnexpectedClientError
83
+ | SDKValidationError
84
+ >,
85
+ APICall,
86
+ ]
87
+ > {
88
+ const parsed = safeParse(
89
+ request,
90
+ (value) =>
91
+ z.parse(operations.PostEligibilityCheckRequest$outboundSchema, value),
92
+ "Input validation failed",
93
+ );
94
+ if (!parsed.ok) {
95
+ return [parsed, { status: "invalid" }];
96
+ }
97
+ const payload = parsed.value;
98
+ const body = encodeJSON("body", payload, { explode: true });
99
+
100
+ const path = pathToFunc("/eligibility/check")();
101
+
102
+ const headers = new Headers(compactMap({
103
+ "Content-Type": "application/json",
104
+ Accept: "application/json",
105
+ }));
106
+
107
+ const secConfig = await extractSecurity(client._options.bearerAuth);
108
+ const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
109
+ const requestSecurity = resolveGlobalSecurity(securityInput, [0]);
110
+
111
+ const context = {
112
+ options: client._options,
113
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
114
+ operationID: "postEligibilityCheck",
115
+ oAuth2Scopes: null,
116
+
117
+ resolvedSecurity: requestSecurity,
118
+
119
+ securitySource: client._options.bearerAuth,
120
+ retryConfig: options?.retries
121
+ || client._options.retryConfig
122
+ || { strategy: "none" },
123
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
124
+ };
125
+
126
+ const requestRes = client._createRequest(context, {
127
+ security: requestSecurity,
128
+ method: "POST",
129
+ baseURL: options?.serverURL,
130
+ path: path,
131
+ headers: headers,
132
+ body: body,
133
+ userAgent: client._options.userAgent,
134
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
135
+ }, options);
136
+ if (!requestRes.ok) {
137
+ return [requestRes, { status: "invalid" }];
138
+ }
139
+ const req = requestRes.value;
140
+
141
+ const doResult = await client._do(req, {
142
+ context,
143
+ isErrorStatusCode: (statusCode: number) =>
144
+ matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
145
+ retryConfig: context.retryConfig,
146
+ retryCodes: context.retryCodes,
147
+ });
148
+ if (!doResult.ok) {
149
+ return [doResult, { status: "request-error", request: req }];
150
+ }
151
+ const response = doResult.value;
152
+
153
+ const responseFields = {
154
+ HttpMeta: { Response: response, Request: req },
155
+ };
156
+
157
+ const [result] = await M.match<
158
+ operations.PostEligibilityCheckResponse,
159
+ | errors.ProblemDetailsError
160
+ | errors.OAuthErrorResponse
161
+ | errors.PostEligibilityCheckServiceUnavailableError
162
+ | SDKError
163
+ | ResponseValidationError
164
+ | ConnectionError
165
+ | RequestAbortedError
166
+ | RequestTimeoutError
167
+ | InvalidRequestError
168
+ | UnexpectedClientError
169
+ | SDKValidationError
170
+ >(
171
+ M.json(200, operations.PostEligibilityCheckResponse$inboundSchema),
172
+ M.jsonErr(401, errors.ProblemDetailsError$inboundSchema, {
173
+ ctype: "application/problem+json",
174
+ }),
175
+ M.jsonErr(401, errors.OAuthErrorResponse$inboundSchema),
176
+ M.jsonErr([400, 403, 428], errors.ProblemDetailsError$inboundSchema, {
177
+ ctype: "application/problem+json",
178
+ }),
179
+ M.jsonErr(
180
+ 503,
181
+ errors.PostEligibilityCheckServiceUnavailableError$inboundSchema,
182
+ ),
183
+ M.fail("4XX"),
184
+ M.fail("5XX"),
185
+ )(response, req, { extraFields: responseFields });
186
+ if (!result.ok) {
187
+ return [result, { status: "complete", request: req, response }];
188
+ }
189
+
190
+ return [result, { status: "complete", request: req, response }];
191
+ }
@@ -193,6 +193,9 @@ async function $do(
193
193
  errors.ProblemDetailsError$inboundSchema,
194
194
  { ctype: "application/problem+json" },
195
195
  ),
196
+ M.jsonErr(503, errors.ProblemDetailsError$inboundSchema, {
197
+ ctype: "application/problem+json",
198
+ }),
196
199
  M.fail("4XX"),
197
200
  M.fail("5XX"),
198
201
  )(response, req, { extraFields: responseFields });
@@ -26,7 +26,7 @@ import { Result } from "../types/fp.js";
26
26
  * Health check
27
27
  *
28
28
  * @remarks
29
- * Returns the service health status, version, and issuer URL
29
+ * Returns the service health status, version, build commit, and issuer URL
30
30
  */
31
31
  export function healthGetHealth(
32
32
  client: ClossirCore,
@@ -228,6 +228,9 @@ async function $do(
228
228
  M.jsonErr([400, 403, 404, 428], errors.ProblemDetailsError$inboundSchema, {
229
229
  ctype: "application/problem+json",
230
230
  }),
231
+ M.jsonErr(503, errors.ProblemDetailsError$inboundSchema, {
232
+ ctype: "application/problem+json",
233
+ }),
231
234
  M.fail("4XX"),
232
235
  M.fail("5XX"),
233
236
  )(response, req, { extraFields: responseFields });
@@ -227,7 +227,7 @@ async function $do(
227
227
  M.jsonErr([400, 403, 404, 428], errors.ProblemDetailsError$inboundSchema, {
228
228
  ctype: "application/problem+json",
229
229
  }),
230
- M.jsonErr(500, errors.ProblemDetailsError$inboundSchema, {
230
+ M.jsonErr([500, 503], errors.ProblemDetailsError$inboundSchema, {
231
231
  ctype: "application/problem+json",
232
232
  }),
233
233
  M.fail("4XX"),
@@ -227,6 +227,9 @@ async function $do(
227
227
  errors.ProblemDetailsError$inboundSchema,
228
228
  { ctype: "application/problem+json" },
229
229
  ),
230
+ M.jsonErr(503, errors.ProblemDetailsError$inboundSchema, {
231
+ ctype: "application/problem+json",
232
+ }),
230
233
  M.fail("4XX"),
231
234
  M.fail("5XX"),
232
235
  )(response, req, { extraFields: responseFields });
@@ -210,7 +210,7 @@ async function $do(
210
210
  errors.ProblemDetailsError$inboundSchema,
211
211
  { ctype: "application/problem+json" },
212
212
  ),
213
- M.jsonErr(500, errors.ProblemDetailsError$inboundSchema, {
213
+ M.jsonErr([500, 503], errors.ProblemDetailsError$inboundSchema, {
214
214
  ctype: "application/problem+json",
215
215
  }),
216
216
  M.fail("4XX"),
@@ -155,10 +155,10 @@ async function $do(
155
155
  | SDKValidationError
156
156
  >(
157
157
  M.json(200, operations.PostAuthMfaVerifyResponse$inboundSchema),
158
- M.jsonErr([400, 401, 429], errors.ProblemDetailsError$inboundSchema, {
158
+ M.jsonErr([400, 401, 423, 429], errors.ProblemDetailsError$inboundSchema, {
159
159
  ctype: "application/problem+json",
160
160
  }),
161
- M.jsonErr(500, errors.ProblemDetailsError$inboundSchema, {
161
+ M.jsonErr([500, 503], errors.ProblemDetailsError$inboundSchema, {
162
162
  ctype: "application/problem+json",
163
163
  }),
164
164
  M.fail("4XX"),
@@ -190,6 +190,9 @@ async function $do(
190
190
  M.jsonErr([400, 403, 404, 428], errors.ProblemDetailsError$inboundSchema, {
191
191
  ctype: "application/problem+json",
192
192
  }),
193
+ M.jsonErr(503, errors.ProblemDetailsError$inboundSchema, {
194
+ ctype: "application/problem+json",
195
+ }),
193
196
  M.fail("4XX"),
194
197
  M.fail("5XX"),
195
198
  )(response, req, { extraFields: responseFields });
@@ -189,6 +189,9 @@ async function $do(
189
189
  M.jsonErr([400, 403, 404, 428], errors.ProblemDetailsError$inboundSchema, {
190
190
  ctype: "application/problem+json",
191
191
  }),
192
+ M.jsonErr(503, errors.ProblemDetailsError$inboundSchema, {
193
+ ctype: "application/problem+json",
194
+ }),
192
195
  M.fail("4XX"),
193
196
  M.fail("5XX"),
194
197
  )(response, req, { extraFields: responseFields });
@@ -31,7 +31,7 @@ import * as types$ from "../types/primitives.js";
31
31
  * OAuth2 Authorization
32
32
  *
33
33
  * @remarks
34
- * Initiate OAuth2 authorization code flow. Redirects to login page for user authentication. Either pass the authorization parameters in the query, or pass client_id and a request_uri from POST /oauth/par (RFC 9126); clients registered to require PAR must use the latter. A bad, expired, reused or foreign request_uri is a 400 invalid_request_uri.
34
+ * Initiate OAuth2 authorization code flow. Redirects to login page for user authentication. Either pass the authorization parameters in the query, or pass client_id and a request_uri from POST /oauth/par (RFC 9126); clients registered to require PAR must use the latter. A bad, expired, reused or foreign request_uri is a 400 invalid_request_uri. A browser request (Accept: text/html) with an unknown client or an unregistered redirect_uri gets a 400 HTML page instead of the JSON error; nothing is redirected.
35
35
  */
36
36
  export function oAuthGetOauthAuthorize(
37
37
  client: ClossirCore,
@@ -28,7 +28,7 @@ import { Result } from "../types/fp.js";
28
28
  * OIDC UserInfo
29
29
  *
30
30
  * @remarks
31
- * Get user claims based on granted scopes. Standard OIDC UserInfo endpoint.
31
+ * Get user claims based on granted scopes. Standard OIDC UserInfo endpoint. The access token is accepted only in the Authorization header (Bearer, or DPoP); access_token in the query string or a form body answers 400 invalid_request, also next to a valid header (RFC 6750 §2: exactly one method). A token issued to a Clossir Passport extension client additionally requires X-Clossir-Passport-Version: 426 update_required when missing, malformed or below the minimum; 503 temporarily_unavailable when the version policy has never loaded. A DPoP-bound access token (token_type DPoP) must be sent as Authorization: DPoP with a DPoP proof over the token (RFC 9449); presenting it as Bearer, or a proof by another key, answers 401 with a WWW-Authenticate: DPoP challenge, and 401 use_dpop_nonce carries the DPoP-Nonce to sign. When MFA enforcement cannot be evaluated, or the token's user cannot be read, the answer is 503 temporarily_unavailable with Retry-After and no WWW-Authenticate challenge: the token was not judged invalid.
32
32
  */
33
33
  export function oAuthGetOauthUserinfo(
34
34
  client: ClossirCore,
@@ -36,8 +36,11 @@ export function oAuthGetOauthUserinfo(
36
36
  ): APIPromise<
37
37
  Result<
38
38
  operations.GetOauthUserinfoResponse,
39
+ | errors.GetOauthUserinfoBadRequestError
39
40
  | errors.GetOauthUserinfoUnauthorizedError
41
+ | errors.GetOauthUserinfoUpdateRequiredError
40
42
  | errors.GetOauthUserinfoInternalServerError
43
+ | errors.GetOauthUserinfoServiceUnavailableError
41
44
  | SDKError
42
45
  | ResponseValidationError
43
46
  | ConnectionError
@@ -61,8 +64,11 @@ async function $do(
61
64
  [
62
65
  Result<
63
66
  operations.GetOauthUserinfoResponse,
67
+ | errors.GetOauthUserinfoBadRequestError
64
68
  | errors.GetOauthUserinfoUnauthorizedError
69
+ | errors.GetOauthUserinfoUpdateRequiredError
65
70
  | errors.GetOauthUserinfoInternalServerError
71
+ | errors.GetOauthUserinfoServiceUnavailableError
66
72
  | SDKError
67
73
  | ResponseValidationError
68
74
  | ConnectionError
@@ -132,8 +138,11 @@ async function $do(
132
138
 
133
139
  const [result] = await M.match<
134
140
  operations.GetOauthUserinfoResponse,
141
+ | errors.GetOauthUserinfoBadRequestError
135
142
  | errors.GetOauthUserinfoUnauthorizedError
143
+ | errors.GetOauthUserinfoUpdateRequiredError
136
144
  | errors.GetOauthUserinfoInternalServerError
145
+ | errors.GetOauthUserinfoServiceUnavailableError
137
146
  | SDKError
138
147
  | ResponseValidationError
139
148
  | ConnectionError
@@ -144,8 +153,14 @@ async function $do(
144
153
  | SDKValidationError
145
154
  >(
146
155
  M.json(200, operations.GetOauthUserinfoResponse$inboundSchema),
156
+ M.jsonErr(400, errors.GetOauthUserinfoBadRequestError$inboundSchema),
147
157
  M.jsonErr(401, errors.GetOauthUserinfoUnauthorizedError$inboundSchema),
158
+ M.jsonErr(426, errors.GetOauthUserinfoUpdateRequiredError$inboundSchema),
148
159
  M.jsonErr(500, errors.GetOauthUserinfoInternalServerError$inboundSchema),
160
+ M.jsonErr(
161
+ 503,
162
+ errors.GetOauthUserinfoServiceUnavailableError$inboundSchema,
163
+ ),
149
164
  M.fail("4XX"),
150
165
  M.fail("5XX"),
151
166
  )(response, req, { extraFields: responseFields });
@@ -185,6 +185,9 @@ async function $do(
185
185
  M.jsonErr([401, 403, 404, 428], errors.ProblemDetailsError$inboundSchema, {
186
186
  ctype: "application/problem+json",
187
187
  }),
188
+ M.jsonErr(503, errors.ProblemDetailsError$inboundSchema, {
189
+ ctype: "application/problem+json",
190
+ }),
188
191
  M.fail("4XX"),
189
192
  M.fail("5XX"),
190
193
  )(response, req, { extraFields: responseFields });
@@ -175,7 +175,12 @@ async function $do(
175
175
  | SDKValidationError
176
176
  >(
177
177
  M.json(201, operations.PostOrgsByOrgIdOauthClientsResponse$inboundSchema),
178
- M.jsonErr([400, 401, 403, 428], errors.ProblemDetailsError$inboundSchema, {
178
+ M.jsonErr(
179
+ [400, 401, 403, 409, 428],
180
+ errors.ProblemDetailsError$inboundSchema,
181
+ { ctype: "application/problem+json" },
182
+ ),
183
+ M.jsonErr(503, errors.ProblemDetailsError$inboundSchema, {
179
184
  ctype: "application/problem+json",
180
185
  }),
181
186
  M.fail("4XX"),
@@ -187,10 +187,13 @@ async function $do(
187
187
  operations.PutOrgsByOrgIdOauthClientsByClientIdResponse$inboundSchema,
188
188
  ),
189
189
  M.jsonErr(
190
- [400, 401, 403, 404, 428],
190
+ [400, 401, 403, 404, 409, 428],
191
191
  errors.ProblemDetailsError$inboundSchema,
192
192
  { ctype: "application/problem+json" },
193
193
  ),
194
+ M.jsonErr(503, errors.ProblemDetailsError$inboundSchema, {
195
+ ctype: "application/problem+json",
196
+ }),
194
197
  M.fail("4XX"),
195
198
  M.fail("5XX"),
196
199
  )(response, req, { extraFields: responseFields });