@clossir-tech/ts-sdk 0.10.5 → 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 (511) hide show
  1. package/README.md +75 -24
  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-get-assets-by-asset-id.d.ts +2 -2
  15. package/esm/funcs/assets-get-assets-by-asset-id.js +3 -3
  16. package/esm/funcs/assets-get-assets-by-asset-id.js.map +1 -1
  17. package/esm/funcs/assets-get-assets.d.ts +2 -2
  18. package/esm/funcs/assets-get-assets.js +3 -3
  19. package/esm/funcs/assets-get-assets.js.map +1 -1
  20. package/esm/funcs/assets-patch-orgs-by-org-id-assets-by-asset-id.d.ts +1 -1
  21. package/esm/funcs/assets-patch-orgs-by-org-id-assets-by-asset-id.js +2 -4
  22. package/esm/funcs/assets-patch-orgs-by-org-id-assets-by-asset-id.js.map +1 -1
  23. package/esm/funcs/assets-post-orgs-by-org-id-assets-by-asset-id-allocate.js +3 -1
  24. package/esm/funcs/assets-post-orgs-by-org-id-assets-by-asset-id-allocate.js.map +1 -1
  25. package/esm/funcs/assets-post-orgs-by-org-id-assets-by-asset-id-documents.d.ts +4 -2
  26. package/esm/funcs/assets-post-orgs-by-org-id-assets-by-asset-id-documents.d.ts.map +1 -1
  27. package/esm/funcs/assets-post-orgs-by-org-id-assets-by-asset-id-documents.js +11 -19
  28. package/esm/funcs/assets-post-orgs-by-org-id-assets-by-asset-id-documents.js.map +1 -1
  29. package/esm/funcs/attestations-post-attestations.d.ts +1 -1
  30. package/esm/funcs/attestations-post-attestations.js +2 -2
  31. package/esm/funcs/attestations-post-attestations.js.map +1 -1
  32. package/esm/funcs/auth-post-auth-accept-invite.js +1 -1
  33. package/esm/funcs/auth-post-auth-accept-invite.js.map +1 -1
  34. package/esm/funcs/auth-post-auth-login.js +1 -1
  35. package/esm/funcs/auth-post-auth-login.js.map +1 -1
  36. package/esm/funcs/auth-post-auth-refresh.d.ts +1 -1
  37. package/esm/funcs/auth-post-auth-refresh.js +1 -1
  38. package/esm/funcs/bridge-get-orgs-by-org-id-bridge-history.d.ts +1 -1
  39. package/esm/funcs/bridge-get-orgs-by-org-id-bridge-history.js +1 -1
  40. package/esm/funcs/bridge-post-orgs-by-org-id-assets-by-asset-id-bridge.js +1 -1
  41. package/esm/funcs/bridge-post-orgs-by-org-id-assets-by-asset-id-bridge.js.map +1 -1
  42. package/esm/funcs/eligibility-post-eligibility-check.d.ts +20 -0
  43. package/esm/funcs/eligibility-post-eligibility-check.d.ts.map +1 -0
  44. package/esm/funcs/eligibility-post-eligibility-check.js +90 -0
  45. package/esm/funcs/eligibility-post-eligibility-check.js.map +1 -0
  46. package/esm/funcs/health-get-health.d.ts +1 -1
  47. package/esm/funcs/health-get-health.js +1 -1
  48. package/esm/funcs/mfa-post-auth-mfa-verify.js +2 -2
  49. package/esm/funcs/mfa-post-auth-mfa-verify.js.map +1 -1
  50. package/esm/funcs/o-auth-get-oauth-authorize.d.ts +1 -1
  51. package/esm/funcs/o-auth-get-oauth-authorize.js +2 -1
  52. package/esm/funcs/o-auth-get-oauth-authorize.js.map +1 -1
  53. package/esm/funcs/o-auth-get-oauth-userinfo.d.ts +2 -2
  54. package/esm/funcs/o-auth-get-oauth-userinfo.d.ts.map +1 -1
  55. package/esm/funcs/o-auth-get-oauth-userinfo.js +2 -2
  56. package/esm/funcs/o-auth-get-oauth-userinfo.js.map +1 -1
  57. package/esm/funcs/o-auth-management-delete-orgs-by-org-id-oauth-clients-by-client-id.js +2 -0
  58. package/esm/funcs/o-auth-management-delete-orgs-by-org-id-oauth-clients-by-client-id.js.map +1 -1
  59. package/esm/funcs/o-auth-management-post-orgs-by-org-id-oauth-clients.js +1 -1
  60. package/esm/funcs/o-auth-management-post-orgs-by-org-id-oauth-clients.js.map +1 -1
  61. package/esm/funcs/o-auth-management-put-orgs-by-org-id-oauth-clients-by-client-id.js +3 -1
  62. package/esm/funcs/o-auth-management-put-orgs-by-org-id-oauth-clients-by-client-id.js.map +1 -1
  63. package/esm/funcs/o-auth-post-oauth-par.d.ts +18 -0
  64. package/esm/funcs/o-auth-post-oauth-par.d.ts.map +1 -0
  65. package/esm/funcs/{o-auth-post-oauth-authorize-callback.js → o-auth-post-oauth-par.js} +15 -11
  66. package/esm/funcs/o-auth-post-oauth-par.js.map +1 -0
  67. package/esm/funcs/o-auth-post-oauth-revoke.d.ts +2 -2
  68. package/esm/funcs/o-auth-post-oauth-revoke.d.ts.map +1 -1
  69. package/esm/funcs/o-auth-post-oauth-revoke.js +4 -2
  70. package/esm/funcs/o-auth-post-oauth-revoke.js.map +1 -1
  71. package/esm/funcs/o-auth-post-oauth-token.d.ts +2 -2
  72. package/esm/funcs/o-auth-post-oauth-token.d.ts.map +1 -1
  73. package/esm/funcs/o-auth-post-oauth-token.js +4 -2
  74. package/esm/funcs/o-auth-post-oauth-token.js.map +1 -1
  75. package/esm/funcs/organizations-get-orgs-by-org-id-attestations.d.ts +1 -1
  76. package/esm/funcs/organizations-get-orgs-by-org-id-attestations.js +1 -1
  77. package/esm/funcs/organizations-get-orgs-by-org-id-audit-logs.d.ts +3 -0
  78. package/esm/funcs/organizations-get-orgs-by-org-id-audit-logs.d.ts.map +1 -1
  79. package/esm/funcs/organizations-get-orgs-by-org-id-audit-logs.js +3 -0
  80. package/esm/funcs/organizations-get-orgs-by-org-id-audit-logs.js.map +1 -1
  81. package/esm/funcs/organizations-get-orgs-by-org-id-issuer.d.ts +1 -1
  82. package/esm/funcs/organizations-get-orgs-by-org-id-issuer.js +1 -1
  83. package/esm/funcs/organizations-get-orgs-by-org-id-members.d.ts +1 -1
  84. package/esm/funcs/organizations-get-orgs-by-org-id-members.js +1 -1
  85. package/esm/funcs/organizations-get-orgs-by-org-id-summary.d.ts +1 -1
  86. package/esm/funcs/organizations-get-orgs-by-org-id-summary.js +1 -1
  87. package/esm/funcs/organizations-get-orgs-by-org-id-users-by-user-id-wallets.d.ts +3 -0
  88. package/esm/funcs/organizations-get-orgs-by-org-id-users-by-user-id-wallets.d.ts.map +1 -1
  89. package/esm/funcs/organizations-get-orgs-by-org-id-users-by-user-id-wallets.js +4 -1
  90. package/esm/funcs/organizations-get-orgs-by-org-id-users-by-user-id-wallets.js.map +1 -1
  91. package/esm/funcs/organizations-get-orgs-by-org-id-users.d.ts +3 -0
  92. package/esm/funcs/organizations-get-orgs-by-org-id-users.d.ts.map +1 -1
  93. package/esm/funcs/organizations-get-orgs-by-org-id-users.js +3 -0
  94. package/esm/funcs/organizations-get-orgs-by-org-id-users.js.map +1 -1
  95. package/esm/funcs/organizations-put-orgs-by-org-id-sub-orgs-by-sub-org-id-move.d.ts +4 -2
  96. package/esm/funcs/organizations-put-orgs-by-org-id-sub-orgs-by-sub-org-id-move.d.ts.map +1 -1
  97. package/esm/funcs/organizations-put-orgs-by-org-id-sub-orgs-by-sub-org-id-move.js +12 -22
  98. package/esm/funcs/organizations-put-orgs-by-org-id-sub-orgs-by-sub-org-id-move.js.map +1 -1
  99. package/esm/funcs/passport-get-login-passport-status.d.ts +18 -0
  100. package/esm/funcs/passport-get-login-passport-status.d.ts.map +1 -0
  101. package/esm/funcs/passport-get-login-passport-status.js +77 -0
  102. package/esm/funcs/passport-get-login-passport-status.js.map +1 -0
  103. package/esm/funcs/passport-get-passport-home.d.ts +17 -0
  104. package/esm/funcs/passport-get-passport-home.d.ts.map +1 -0
  105. package/esm/funcs/passport-get-passport-home.js +77 -0
  106. package/esm/funcs/passport-get-passport-home.js.map +1 -0
  107. package/esm/funcs/passport-get-passport-sign-in.d.ts +17 -0
  108. package/esm/funcs/passport-get-passport-sign-in.d.ts.map +1 -0
  109. package/esm/funcs/passport-get-passport-sign-in.js +75 -0
  110. package/esm/funcs/passport-get-passport-sign-in.js.map +1 -0
  111. package/esm/funcs/passport-post-login-passport-finish.d.ts +18 -0
  112. package/esm/funcs/passport-post-login-passport-finish.d.ts.map +1 -0
  113. package/esm/funcs/passport-post-login-passport-finish.js +89 -0
  114. package/esm/funcs/passport-post-login-passport-finish.js.map +1 -0
  115. package/esm/funcs/passport-post-passport-sign-in-decision.d.ts +18 -0
  116. package/esm/funcs/passport-post-passport-sign-in-decision.d.ts.map +1 -0
  117. package/esm/funcs/passport-post-passport-sign-in-decision.js +86 -0
  118. package/esm/funcs/passport-post-passport-sign-in-decision.js.map +1 -0
  119. package/esm/funcs/preflight-get-preflight-results-by-result-id.d.ts +20 -0
  120. package/esm/funcs/preflight-get-preflight-results-by-result-id.d.ts.map +1 -0
  121. package/esm/funcs/preflight-get-preflight-results-by-result-id.js +98 -0
  122. package/esm/funcs/preflight-get-preflight-results-by-result-id.js.map +1 -0
  123. package/esm/funcs/preflight-post-preflight-intents.d.ts +20 -0
  124. package/esm/funcs/preflight-post-preflight-intents.d.ts.map +1 -0
  125. package/esm/funcs/preflight-post-preflight-intents.js +90 -0
  126. package/esm/funcs/preflight-post-preflight-intents.js.map +1 -0
  127. package/esm/funcs/transfers-get-transfers.d.ts +1 -1
  128. package/esm/funcs/transfers-get-transfers.js +1 -1
  129. package/esm/funcs/travel-rule-post-travel-rule-records.d.ts +20 -0
  130. package/esm/funcs/travel-rule-post-travel-rule-records.d.ts.map +1 -0
  131. package/esm/funcs/travel-rule-post-travel-rule-records.js +90 -0
  132. package/esm/funcs/travel-rule-post-travel-rule-records.js.map +1 -0
  133. package/esm/funcs/ui-get-login.js +1 -0
  134. package/esm/funcs/ui-get-login.js.map +1 -1
  135. package/esm/lib/config.d.ts +2 -2
  136. package/esm/lib/config.js +2 -2
  137. package/esm/models/errors/get-approvals-by-approval-id.d.ts +41 -0
  138. package/esm/models/errors/get-approvals-by-approval-id.d.ts.map +1 -0
  139. package/esm/models/errors/get-approvals-by-approval-id.js +56 -0
  140. package/esm/models/errors/get-approvals-by-approval-id.js.map +1 -0
  141. package/esm/models/errors/get-oauth-authorize.d.ts +6 -6
  142. package/esm/models/errors/get-oauth-authorize.js +3 -3
  143. package/esm/models/errors/get-oauth-userinfo.d.ts +152 -4
  144. package/esm/models/errors/get-oauth-userinfo.d.ts.map +1 -1
  145. package/esm/models/errors/get-oauth-userinfo.js +166 -2
  146. package/esm/models/errors/get-oauth-userinfo.js.map +1 -1
  147. package/esm/models/errors/get-passport-home.d.ts +96 -0
  148. package/esm/models/errors/get-passport-home.d.ts.map +1 -0
  149. package/esm/models/errors/get-passport-home.js +114 -0
  150. package/esm/models/errors/get-passport-home.js.map +1 -0
  151. package/esm/models/errors/get-passport-sign-in.d.ts +96 -0
  152. package/esm/models/errors/get-passport-sign-in.d.ts.map +1 -0
  153. package/esm/models/errors/get-passport-sign-in.js +114 -0
  154. package/esm/models/errors/get-passport-sign-in.js.map +1 -0
  155. package/esm/models/errors/index.d.ts +7 -1
  156. package/esm/models/errors/index.d.ts.map +1 -1
  157. package/esm/models/errors/index.js +7 -1
  158. package/esm/models/errors/index.js.map +1 -1
  159. package/esm/models/errors/o-auth-error-response.d.ts +52 -0
  160. package/esm/models/errors/o-auth-error-response.d.ts.map +1 -0
  161. package/esm/models/errors/o-auth-error-response.js +63 -0
  162. package/esm/models/errors/o-auth-error-response.js.map +1 -0
  163. package/esm/models/errors/post-eligibility-check.d.ts +58 -0
  164. package/esm/models/errors/post-eligibility-check.d.ts.map +1 -0
  165. package/esm/models/errors/post-eligibility-check.js +66 -0
  166. package/esm/models/errors/post-eligibility-check.js.map +1 -0
  167. package/esm/models/errors/{post-oauth-authorize-callback.d.ts → post-oauth-par.d.ts} +84 -29
  168. package/esm/models/errors/post-oauth-par.d.ts.map +1 -0
  169. package/esm/models/errors/{post-oauth-authorize-callback.js → post-oauth-par.js} +79 -23
  170. package/esm/models/errors/post-oauth-par.js.map +1 -0
  171. package/esm/models/errors/post-oauth-revoke.d.ts +15 -15
  172. package/esm/models/errors/post-oauth-revoke.d.ts.map +1 -1
  173. package/esm/models/errors/post-oauth-revoke.js +9 -9
  174. package/esm/models/errors/post-oauth-revoke.js.map +1 -1
  175. package/esm/models/errors/post-oauth-token.d.ts +99 -6
  176. package/esm/models/errors/post-oauth-token.d.ts.map +1 -1
  177. package/esm/models/errors/post-oauth-token.js +109 -3
  178. package/esm/models/errors/post-oauth-token.js.map +1 -1
  179. package/esm/models/errors/post-passport-sign-in-decision.d.ts +96 -0
  180. package/esm/models/errors/post-passport-sign-in-decision.d.ts.map +1 -0
  181. package/esm/models/errors/post-passport-sign-in-decision.js +115 -0
  182. package/esm/models/errors/post-passport-sign-in-decision.js.map +1 -0
  183. package/esm/models/errors/problem-details-error.d.ts +24 -0
  184. package/esm/models/errors/problem-details-error.d.ts.map +1 -1
  185. package/esm/models/errors/problem-details-error.js +21 -0
  186. package/esm/models/errors/problem-details-error.js.map +1 -1
  187. package/esm/models/operations/get-approvals-by-approval-id-status.d.ts +91 -0
  188. package/esm/models/operations/get-approvals-by-approval-id-status.d.ts.map +1 -0
  189. package/esm/models/operations/get-approvals-by-approval-id-status.js +60 -0
  190. package/esm/models/operations/get-approvals-by-approval-id-status.js.map +1 -0
  191. package/esm/models/operations/get-approvals-by-approval-id.d.ts +391 -0
  192. package/esm/models/operations/get-approvals-by-approval-id.d.ts.map +1 -0
  193. package/esm/models/operations/get-approvals-by-approval-id.js +299 -0
  194. package/esm/models/operations/get-approvals-by-approval-id.js.map +1 -0
  195. package/esm/models/operations/get-assets-by-asset-id.d.ts +53 -0
  196. package/esm/models/operations/get-assets-by-asset-id.d.ts.map +1 -1
  197. package/esm/models/operations/get-assets-by-asset-id.js +35 -0
  198. package/esm/models/operations/get-assets-by-asset-id.js.map +1 -1
  199. package/esm/models/operations/get-assets.d.ts +55 -2
  200. package/esm/models/operations/get-assets.d.ts.map +1 -1
  201. package/esm/models/operations/get-assets.js +35 -0
  202. package/esm/models/operations/get-assets.js.map +1 -1
  203. package/esm/models/operations/get-health.d.ts +8 -0
  204. package/esm/models/operations/get-health.d.ts.map +1 -1
  205. package/esm/models/operations/get-health.js +2 -0
  206. package/esm/models/operations/get-health.js.map +1 -1
  207. package/esm/models/operations/get-login-passport-status.d.ts +42 -0
  208. package/esm/models/operations/get-login-passport-status.d.ts.map +1 -0
  209. package/esm/models/operations/get-login-passport-status.js +45 -0
  210. package/esm/models/operations/get-login-passport-status.js.map +1 -0
  211. package/esm/models/operations/get-login.d.ts +2 -0
  212. package/esm/models/operations/get-login.d.ts.map +1 -1
  213. package/esm/models/operations/get-login.js +1 -0
  214. package/esm/models/operations/get-login.js.map +1 -1
  215. package/esm/models/operations/get-oauth-authorize.d.ts +6 -1
  216. package/esm/models/operations/get-oauth-authorize.d.ts.map +1 -1
  217. package/esm/models/operations/get-oauth-authorize.js +2 -0
  218. package/esm/models/operations/get-oauth-authorize.js.map +1 -1
  219. package/esm/models/operations/get-oauth-userinfo.d.ts +48 -0
  220. package/esm/models/operations/get-oauth-userinfo.d.ts.map +1 -1
  221. package/esm/models/operations/get-oauth-userinfo.js +32 -0
  222. package/esm/models/operations/get-oauth-userinfo.js.map +1 -1
  223. package/esm/models/operations/get-orgs-by-org-id-assets-by-asset-id-compliance-policy.d.ts +1 -0
  224. package/esm/models/operations/get-orgs-by-org-id-assets-by-asset-id-compliance-policy.d.ts.map +1 -1
  225. package/esm/models/operations/get-orgs-by-org-id-assets-by-asset-id-compliance-policy.js +1 -0
  226. package/esm/models/operations/get-orgs-by-org-id-assets-by-asset-id-compliance-policy.js.map +1 -1
  227. package/esm/models/operations/get-orgs-by-org-id-assets-by-asset-id.d.ts +17 -0
  228. package/esm/models/operations/get-orgs-by-org-id-assets-by-asset-id.d.ts.map +1 -1
  229. package/esm/models/operations/get-orgs-by-org-id-assets-by-asset-id.js +11 -0
  230. package/esm/models/operations/get-orgs-by-org-id-assets-by-asset-id.js.map +1 -1
  231. package/esm/models/operations/get-orgs-by-org-id-assets.d.ts +17 -0
  232. package/esm/models/operations/get-orgs-by-org-id-assets.d.ts.map +1 -1
  233. package/esm/models/operations/get-orgs-by-org-id-assets.js +10 -0
  234. package/esm/models/operations/get-orgs-by-org-id-assets.js.map +1 -1
  235. package/esm/models/operations/get-orgs-by-org-id-issuer.d.ts +1 -0
  236. package/esm/models/operations/get-orgs-by-org-id-issuer.d.ts.map +1 -1
  237. package/esm/models/operations/get-orgs-by-org-id-issuer.js +8 -2
  238. package/esm/models/operations/get-orgs-by-org-id-issuer.js.map +1 -1
  239. package/esm/models/operations/get-orgs-by-org-id-oauth-clients-by-client-id.d.ts +47 -0
  240. package/esm/models/operations/get-orgs-by-org-id-oauth-clients-by-client-id.d.ts.map +1 -1
  241. package/esm/models/operations/get-orgs-by-org-id-oauth-clients-by-client-id.js +41 -0
  242. package/esm/models/operations/get-orgs-by-org-id-oauth-clients-by-client-id.js.map +1 -1
  243. package/esm/models/operations/get-orgs-by-org-id-oauth-clients.d.ts +47 -0
  244. package/esm/models/operations/get-orgs-by-org-id-oauth-clients.d.ts.map +1 -1
  245. package/esm/models/operations/get-orgs-by-org-id-oauth-clients.js +40 -0
  246. package/esm/models/operations/get-orgs-by-org-id-oauth-clients.js.map +1 -1
  247. package/esm/models/operations/get-orgs-permission-scopes.d.ts +21 -1
  248. package/esm/models/operations/get-orgs-permission-scopes.d.ts.map +1 -1
  249. package/esm/models/operations/get-orgs-permission-scopes.js +3 -1
  250. package/esm/models/operations/get-orgs-permission-scopes.js.map +1 -1
  251. package/esm/models/operations/get-passport-home.d.ts +9 -0
  252. package/esm/models/operations/get-passport-home.d.ts.map +1 -0
  253. package/esm/models/operations/get-passport-home.js +10 -0
  254. package/esm/models/operations/get-passport-home.js.map +1 -0
  255. package/esm/models/operations/get-passport-sign-in.d.ts +9 -0
  256. package/esm/models/operations/get-passport-sign-in.d.ts.map +1 -0
  257. package/esm/models/operations/get-passport-sign-in.js +10 -0
  258. package/esm/models/operations/get-passport-sign-in.js.map +1 -0
  259. package/esm/models/operations/get-preflight-results-by-result-id.d.ts +329 -0
  260. package/esm/models/operations/get-preflight-results-by-result-id.d.ts.map +1 -0
  261. package/esm/models/operations/get-preflight-results-by-result-id.js +280 -0
  262. package/esm/models/operations/get-preflight-results-by-result-id.js.map +1 -0
  263. package/esm/models/operations/index.d.ts +13 -1
  264. package/esm/models/operations/index.d.ts.map +1 -1
  265. package/esm/models/operations/index.js +13 -1
  266. package/esm/models/operations/index.js.map +1 -1
  267. package/esm/models/operations/patch-orgs-by-org-id-assets-by-asset-id.d.ts +18 -0
  268. package/esm/models/operations/patch-orgs-by-org-id-assets-by-asset-id.d.ts.map +1 -1
  269. package/esm/models/operations/patch-orgs-by-org-id-assets-by-asset-id.js +10 -0
  270. package/esm/models/operations/patch-orgs-by-org-id-assets-by-asset-id.js.map +1 -1
  271. package/esm/models/operations/post-approvals.d.ts +114 -0
  272. package/esm/models/operations/post-approvals.d.ts.map +1 -0
  273. package/esm/models/operations/post-approvals.js +76 -0
  274. package/esm/models/operations/post-approvals.js.map +1 -0
  275. package/esm/models/operations/post-attestations.d.ts +24 -7
  276. package/esm/models/operations/post-attestations.d.ts.map +1 -1
  277. package/esm/models/operations/post-attestations.js +7 -1
  278. package/esm/models/operations/post-attestations.js.map +1 -1
  279. package/esm/models/operations/post-auth-verify-email.d.ts +10 -10
  280. package/esm/models/operations/post-auth-verify-email.d.ts.map +1 -1
  281. package/esm/models/operations/post-auth-verify-email.js +8 -8
  282. package/esm/models/operations/post-auth-verify-email.js.map +1 -1
  283. package/esm/models/operations/post-consent.d.ts +2 -0
  284. package/esm/models/operations/post-consent.d.ts.map +1 -1
  285. package/esm/models/operations/post-consent.js +2 -0
  286. package/esm/models/operations/post-consent.js.map +1 -1
  287. package/esm/models/operations/post-eligibility-check.d.ts +45 -0
  288. package/esm/models/operations/post-eligibility-check.d.ts.map +1 -0
  289. package/esm/models/operations/post-eligibility-check.js +43 -0
  290. package/esm/models/operations/post-eligibility-check.js.map +1 -0
  291. package/esm/models/operations/post-login-passport-finish.d.ts +24 -0
  292. package/esm/models/operations/post-login-passport-finish.d.ts.map +1 -0
  293. package/esm/models/operations/post-login-passport-finish.js +31 -0
  294. package/esm/models/operations/post-login-passport-finish.js.map +1 -0
  295. package/esm/models/operations/post-oauth-par.d.ts +98 -0
  296. package/esm/models/operations/post-oauth-par.d.ts.map +1 -0
  297. package/esm/models/operations/post-oauth-par.js +53 -0
  298. package/esm/models/operations/post-oauth-par.js.map +1 -0
  299. package/esm/models/operations/post-oauth-token.d.ts +22 -9
  300. package/esm/models/operations/post-oauth-token.d.ts.map +1 -1
  301. package/esm/models/operations/post-oauth-token.js +25 -6
  302. package/esm/models/operations/post-oauth-token.js.map +1 -1
  303. package/esm/models/operations/post-orgs-by-org-id-assets-by-asset-id-allocate.d.ts +4 -4
  304. package/esm/models/operations/post-orgs-by-org-id-assets-by-asset-id-allocate.d.ts.map +1 -1
  305. package/esm/models/operations/post-orgs-by-org-id-assets-by-asset-id-allocate.js +5 -4
  306. package/esm/models/operations/post-orgs-by-org-id-assets-by-asset-id-allocate.js.map +1 -1
  307. package/esm/models/operations/post-orgs-by-org-id-assets-by-asset-id-compliance-policy.d.ts +2 -0
  308. package/esm/models/operations/post-orgs-by-org-id-assets-by-asset-id-compliance-policy.d.ts.map +1 -1
  309. package/esm/models/operations/post-orgs-by-org-id-assets-by-asset-id-compliance-policy.js +2 -0
  310. package/esm/models/operations/post-orgs-by-org-id-assets-by-asset-id-compliance-policy.js.map +1 -1
  311. package/esm/models/operations/post-orgs-by-org-id-assets-by-asset-id-documents.d.ts +0 -12
  312. package/esm/models/operations/post-orgs-by-org-id-assets-by-asset-id-documents.d.ts.map +1 -1
  313. package/esm/models/operations/post-orgs-by-org-id-assets-by-asset-id-documents.js +0 -8
  314. package/esm/models/operations/post-orgs-by-org-id-assets-by-asset-id-documents.js.map +1 -1
  315. package/esm/models/operations/post-orgs-by-org-id-oauth-clients.d.ts +101 -0
  316. package/esm/models/operations/post-orgs-by-org-id-oauth-clients.d.ts.map +1 -1
  317. package/esm/models/operations/post-orgs-by-org-id-oauth-clients.js +81 -0
  318. package/esm/models/operations/post-orgs-by-org-id-oauth-clients.js.map +1 -1
  319. package/esm/models/operations/post-passport-sign-in-decision.d.ts +25 -0
  320. package/esm/models/operations/post-passport-sign-in-decision.d.ts.map +1 -0
  321. package/esm/models/operations/post-passport-sign-in-decision.js +27 -0
  322. package/esm/models/operations/post-passport-sign-in-decision.js.map +1 -0
  323. package/esm/models/operations/post-preflight-intents.d.ts +367 -0
  324. package/esm/models/operations/post-preflight-intents.d.ts.map +1 -0
  325. package/esm/models/operations/post-preflight-intents.js +299 -0
  326. package/esm/models/operations/post-preflight-intents.js.map +1 -0
  327. package/esm/models/operations/post-preflight.d.ts +8 -8
  328. package/esm/models/operations/post-preflight.d.ts.map +1 -1
  329. package/esm/models/operations/post-preflight.js +7 -7
  330. package/esm/models/operations/post-preflight.js.map +1 -1
  331. package/esm/models/operations/post-travel-rule-records.d.ts +27 -0
  332. package/esm/models/operations/post-travel-rule-records.d.ts.map +1 -0
  333. package/esm/models/operations/post-travel-rule-records.js +24 -0
  334. package/esm/models/operations/post-travel-rule-records.js.map +1 -0
  335. package/esm/models/operations/put-orgs-by-org-id-oauth-clients-by-client-id.d.ts +101 -0
  336. package/esm/models/operations/put-orgs-by-org-id-oauth-clients-by-client-id.d.ts.map +1 -1
  337. package/esm/models/operations/put-orgs-by-org-id-oauth-clients-by-client-id.js +79 -0
  338. package/esm/models/operations/put-orgs-by-org-id-oauth-clients-by-client-id.js.map +1 -1
  339. package/esm/models/operations/put-orgs-by-org-id-sub-orgs-by-sub-org-id-move.d.ts +0 -12
  340. package/esm/models/operations/put-orgs-by-org-id-sub-orgs-by-sub-org-id-move.d.ts.map +1 -1
  341. package/esm/models/operations/put-orgs-by-org-id-sub-orgs-by-sub-org-id-move.js +0 -8
  342. package/esm/models/operations/put-orgs-by-org-id-sub-orgs-by-sub-org-id-move.js.map +1 -1
  343. package/esm/sdk/approvals.d.ts +26 -0
  344. package/esm/sdk/approvals.d.ts.map +1 -0
  345. package/esm/sdk/approvals.js +38 -0
  346. package/esm/sdk/approvals.js.map +1 -0
  347. package/esm/sdk/assets.d.ts +7 -7
  348. package/esm/sdk/assets.d.ts.map +1 -1
  349. package/esm/sdk/assets.js +8 -8
  350. package/esm/sdk/assets.js.map +1 -1
  351. package/esm/sdk/attestations.d.ts +1 -1
  352. package/esm/sdk/attestations.js +1 -1
  353. package/esm/sdk/auth.d.ts +1 -1
  354. package/esm/sdk/auth.js +1 -1
  355. package/esm/sdk/bridge.d.ts +1 -1
  356. package/esm/sdk/bridge.js +1 -1
  357. package/esm/sdk/eligibility.d.ts +12 -0
  358. package/esm/sdk/eligibility.d.ts.map +1 -0
  359. package/esm/sdk/eligibility.js +18 -0
  360. package/esm/sdk/eligibility.js.map +1 -0
  361. package/esm/sdk/health.d.ts +1 -1
  362. package/esm/sdk/health.js +1 -1
  363. package/esm/sdk/o-auth.d.ts +7 -7
  364. package/esm/sdk/o-auth.d.ts.map +1 -1
  365. package/esm/sdk/o-auth.js +9 -9
  366. package/esm/sdk/o-auth.js.map +1 -1
  367. package/esm/sdk/organizations.d.ts +15 -6
  368. package/esm/sdk/organizations.d.ts.map +1 -1
  369. package/esm/sdk/organizations.js +16 -7
  370. package/esm/sdk/organizations.js.map +1 -1
  371. package/esm/sdk/passport.d.ts +40 -0
  372. package/esm/sdk/passport.d.ts.map +1 -0
  373. package/esm/sdk/passport.js +58 -0
  374. package/esm/sdk/passport.js.map +1 -0
  375. package/esm/sdk/preflight.d.ts +14 -0
  376. package/esm/sdk/preflight.d.ts.map +1 -1
  377. package/esm/sdk/preflight.js +20 -0
  378. package/esm/sdk/preflight.js.map +1 -1
  379. package/esm/sdk/sdk.d.ts +12 -0
  380. package/esm/sdk/sdk.d.ts.map +1 -1
  381. package/esm/sdk/sdk.js +20 -0
  382. package/esm/sdk/sdk.js.map +1 -1
  383. package/esm/sdk/transfers.d.ts +1 -1
  384. package/esm/sdk/transfers.js +1 -1
  385. package/esm/sdk/travel-rule.d.ts +12 -0
  386. package/esm/sdk/travel-rule.d.ts.map +1 -0
  387. package/esm/sdk/travel-rule.js +18 -0
  388. package/esm/sdk/travel-rule.js.map +1 -0
  389. package/jsr.json +1 -1
  390. package/package.json +1 -1
  391. package/src/funcs/approvals-get-approvals-by-approval-id-status.ts +197 -0
  392. package/src/funcs/approvals-get-approvals-by-approval-id.ts +204 -0
  393. package/src/funcs/approvals-post-approvals.ts +189 -0
  394. package/src/funcs/assets-get-assets-by-asset-id.ts +3 -3
  395. package/src/funcs/assets-get-assets.ts +3 -3
  396. package/src/funcs/assets-patch-orgs-by-org-id-assets-by-asset-id.ts +6 -4
  397. package/src/funcs/assets-post-orgs-by-org-id-assets-by-asset-id-allocate.ts +3 -0
  398. package/src/funcs/assets-post-orgs-by-org-id-assets-by-asset-id-documents.ts +8 -22
  399. package/src/funcs/attestations-post-attestations.ts +2 -2
  400. package/src/funcs/auth-post-auth-accept-invite.ts +1 -1
  401. package/src/funcs/auth-post-auth-login.ts +1 -1
  402. package/src/funcs/auth-post-auth-refresh.ts +1 -1
  403. package/src/funcs/bridge-get-orgs-by-org-id-bridge-history.ts +1 -1
  404. package/src/funcs/bridge-post-orgs-by-org-id-assets-by-asset-id-bridge.ts +1 -1
  405. package/src/funcs/eligibility-post-eligibility-check.ts +191 -0
  406. package/src/funcs/health-get-health.ts +1 -1
  407. package/src/funcs/mfa-post-auth-mfa-verify.ts +2 -2
  408. package/src/funcs/o-auth-get-oauth-authorize.ts +2 -1
  409. package/src/funcs/o-auth-get-oauth-userinfo.ts +16 -1
  410. package/src/funcs/o-auth-management-delete-orgs-by-org-id-oauth-clients-by-client-id.ts +3 -0
  411. package/src/funcs/o-auth-management-post-orgs-by-org-id-oauth-clients.ts +6 -1
  412. package/src/funcs/o-auth-management-put-orgs-by-org-id-oauth-clients-by-client-id.ts +4 -1
  413. package/src/funcs/o-auth-post-oauth-par.ts +191 -0
  414. package/src/funcs/o-auth-post-oauth-revoke.ts +11 -5
  415. package/src/funcs/o-auth-post-oauth-token.ts +15 -1
  416. package/src/funcs/organizations-get-orgs-by-org-id-attestations.ts +1 -1
  417. package/src/funcs/organizations-get-orgs-by-org-id-audit-logs.ts +3 -0
  418. package/src/funcs/organizations-get-orgs-by-org-id-issuer.ts +1 -1
  419. package/src/funcs/organizations-get-orgs-by-org-id-members.ts +1 -1
  420. package/src/funcs/organizations-get-orgs-by-org-id-summary.ts +1 -1
  421. package/src/funcs/organizations-get-orgs-by-org-id-users-by-user-id-wallets.ts +4 -1
  422. package/src/funcs/organizations-get-orgs-by-org-id-users.ts +3 -0
  423. package/src/funcs/organizations-put-orgs-by-org-id-sub-orgs-by-sub-org-id-move.ts +13 -25
  424. package/src/funcs/passport-get-login-passport-status.ts +158 -0
  425. package/src/funcs/passport-get-passport-home.ts +170 -0
  426. package/src/funcs/passport-get-passport-sign-in.ts +172 -0
  427. package/src/funcs/passport-post-login-passport-finish.ts +184 -0
  428. package/src/funcs/passport-post-passport-sign-in-decision.ts +201 -0
  429. package/src/funcs/preflight-get-preflight-results-by-result-id.ts +202 -0
  430. package/src/funcs/{o-auth-post-oauth-authorize-callback.ts → preflight-post-preflight-intents.ts} +39 -43
  431. package/src/funcs/transfers-get-transfers.ts +1 -1
  432. package/src/funcs/travel-rule-post-travel-rule-records.ts +190 -0
  433. package/src/funcs/ui-get-login.ts +1 -0
  434. package/src/lib/config.ts +2 -2
  435. package/src/models/errors/get-approvals-by-approval-id.ts +83 -0
  436. package/src/models/errors/get-oauth-authorize.ts +6 -6
  437. package/src/models/errors/get-oauth-userinfo.ts +273 -4
  438. package/src/models/errors/get-passport-home.ts +182 -0
  439. package/src/models/errors/get-passport-sign-in.ts +182 -0
  440. package/src/models/errors/index.ts +7 -1
  441. package/src/models/errors/o-auth-error-response.ts +99 -0
  442. package/src/models/errors/post-eligibility-check.ts +103 -0
  443. package/src/models/errors/post-oauth-par.ts +493 -0
  444. package/src/models/errors/post-oauth-revoke.ts +40 -42
  445. package/src/models/errors/post-oauth-token.ts +180 -6
  446. package/src/models/errors/post-passport-sign-in-decision.ts +179 -0
  447. package/src/models/errors/problem-details-error.ts +30 -0
  448. package/src/models/operations/get-approvals-by-approval-id-status.ts +161 -0
  449. package/src/models/operations/get-approvals-by-approval-id.ts +735 -0
  450. package/src/models/operations/get-assets-by-asset-id.ts +95 -0
  451. package/src/models/operations/get-assets.ts +93 -2
  452. package/src/models/operations/get-health.ts +10 -0
  453. package/src/models/operations/get-login-passport-status.ts +91 -0
  454. package/src/models/operations/get-login.ts +3 -0
  455. package/src/models/operations/get-oauth-authorize.ts +8 -1
  456. package/src/models/operations/get-oauth-userinfo.ts +112 -0
  457. package/src/models/operations/get-orgs-by-org-id-assets-by-asset-id-compliance-policy.ts +2 -0
  458. package/src/models/operations/get-orgs-by-org-id-assets-by-asset-id.ts +26 -0
  459. package/src/models/operations/get-orgs-by-org-id-assets.ts +25 -0
  460. package/src/models/operations/get-orgs-by-org-id-issuer.ts +14 -4
  461. package/src/models/operations/get-orgs-by-org-id-oauth-clients-by-client-id.ts +118 -0
  462. package/src/models/operations/get-orgs-by-org-id-oauth-clients.ts +113 -0
  463. package/src/models/operations/get-orgs-permission-scopes.ts +24 -2
  464. package/src/models/operations/get-passport-home.ts +16 -0
  465. package/src/models/operations/get-passport-sign-in.ts +16 -0
  466. package/src/models/operations/get-preflight-results-by-result-id.ts +653 -0
  467. package/src/models/operations/index.ts +13 -1
  468. package/src/models/operations/patch-orgs-by-org-id-assets-by-asset-id.ts +28 -0
  469. package/src/models/operations/post-approvals.ts +192 -0
  470. package/src/models/operations/post-attestations.ts +39 -8
  471. package/src/models/operations/post-auth-verify-email.ts +33 -19
  472. package/src/models/operations/post-consent.ts +4 -0
  473. package/src/models/operations/post-eligibility-check.ts +120 -0
  474. package/src/models/operations/post-login-passport-finish.ts +76 -0
  475. package/src/models/operations/post-oauth-par.ts +172 -0
  476. package/src/models/operations/post-oauth-token.ts +53 -14
  477. package/src/models/operations/post-orgs-by-org-id-assets-by-asset-id-allocate.ts +23 -11
  478. package/src/models/operations/post-orgs-by-org-id-assets-by-asset-id-compliance-policy.ts +4 -0
  479. package/src/models/operations/post-orgs-by-org-id-assets-by-asset-id-documents.ts +0 -32
  480. package/src/models/operations/post-orgs-by-org-id-oauth-clients.ts +248 -0
  481. package/src/models/operations/post-passport-sign-in-decision.ts +67 -0
  482. package/src/models/operations/post-preflight-intents.ts +728 -0
  483. package/src/models/operations/post-preflight.ts +18 -15
  484. package/src/models/operations/post-travel-rule-records.ts +68 -0
  485. package/src/models/operations/put-orgs-by-org-id-oauth-clients-by-client-id.ts +263 -0
  486. package/src/models/operations/put-orgs-by-org-id-sub-orgs-by-sub-org-id-move.ts +0 -32
  487. package/src/sdk/approvals.ts +63 -0
  488. package/src/sdk/assets.ts +6 -8
  489. package/src/sdk/attestations.ts +1 -1
  490. package/src/sdk/auth.ts +1 -1
  491. package/src/sdk/bridge.ts +1 -1
  492. package/src/sdk/eligibility.ts +27 -0
  493. package/src/sdk/health.ts +1 -1
  494. package/src/sdk/o-auth.ts +11 -11
  495. package/src/sdk/organizations.ts +14 -7
  496. package/src/sdk/passport.ts +93 -0
  497. package/src/sdk/preflight.ts +36 -0
  498. package/src/sdk/sdk.ts +24 -0
  499. package/src/sdk/transfers.ts +1 -1
  500. package/src/sdk/travel-rule.ts +27 -0
  501. package/esm/funcs/o-auth-post-oauth-authorize-callback.d.ts +0 -18
  502. package/esm/funcs/o-auth-post-oauth-authorize-callback.d.ts.map +0 -1
  503. package/esm/funcs/o-auth-post-oauth-authorize-callback.js.map +0 -1
  504. package/esm/models/errors/post-oauth-authorize-callback.d.ts.map +0 -1
  505. package/esm/models/errors/post-oauth-authorize-callback.js.map +0 -1
  506. package/esm/models/operations/post-oauth-authorize-callback.d.ts +0 -50
  507. package/esm/models/operations/post-oauth-authorize-callback.d.ts.map +0 -1
  508. package/esm/models/operations/post-oauth-authorize-callback.js +0 -39
  509. package/esm/models/operations/post-oauth-authorize-callback.js.map +0 -1
  510. package/src/models/errors/post-oauth-authorize-callback.ts +0 -390
  511. package/src/models/operations/post-oauth-authorize-callback.ts +0 -113
@@ -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
+ }
@@ -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,
@@ -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"),
@@ -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.
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,
@@ -103,6 +103,7 @@ async function $do(
103
103
  "code_challenge_method": payload.code_challenge_method,
104
104
  "nonce": payload.nonce,
105
105
  "redirect_uri": payload.redirect_uri,
106
+ "request_uri": payload.request_uri,
106
107
  "response_type": payload.response_type,
107
108
  "scope": payload.scope,
108
109
  "state": payload.state,
@@ -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 });
@@ -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 { encodeBodyForm } 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 { pathToFunc } from "../lib/url.js";
14
+ import {
15
+ ConnectionError,
16
+ InvalidRequestError,
17
+ RequestAbortedError,
18
+ RequestTimeoutError,
19
+ UnexpectedClientError,
20
+ } from "../models/errors/http-client-errors.js";
21
+ import * as errors from "../models/errors/index.js";
22
+ import { ResponseValidationError } from "../models/errors/response-validation-error.js";
23
+ import { SDKError } from "../models/errors/sdk-error.js";
24
+ import { SDKValidationError } from "../models/errors/sdk-validation-error.js";
25
+ import * as operations from "../models/operations/index.js";
26
+ import { APICall, APIPromise } from "../types/async.js";
27
+ import { Result } from "../types/fp.js";
28
+
29
+ /**
30
+ * Pushed authorization request (RFC 9126)
31
+ *
32
+ * @remarks
33
+ * Push the authorization request parameters over an authenticated back channel (client_secret_basic, client_secret_post, or client_id alone for public clients). Form-encoded body, at most 16 KiB. Returns a single-use request_uri valid for 60 seconds; start the authorization with GET /oauth/authorize?client_id=…&request_uri=…. Clients registered to require PAR can start an authorization only this way. prompt, max_age and acr_values are accepted and stored with the request; they are not yet enforced.
34
+ */
35
+ export function oAuthPostOauthPar(
36
+ client: ClossirCore,
37
+ request: operations.PostOauthParRequest,
38
+ options?: RequestOptions,
39
+ ): APIPromise<
40
+ Result<
41
+ operations.PostOauthParResponse,
42
+ | errors.PostOauthParBadRequestError
43
+ | errors.PostOauthParUnauthorizedError
44
+ | errors.ProblemDetailsError
45
+ | errors.PostOauthParTooManyRequestsError
46
+ | errors.PostOauthParInternalServerError
47
+ | errors.PostOauthParServiceUnavailableError
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.PostOauthParRequest,
68
+ options?: RequestOptions,
69
+ ): Promise<
70
+ [
71
+ Result<
72
+ operations.PostOauthParResponse,
73
+ | errors.PostOauthParBadRequestError
74
+ | errors.PostOauthParUnauthorizedError
75
+ | errors.ProblemDetailsError
76
+ | errors.PostOauthParTooManyRequestsError
77
+ | errors.PostOauthParInternalServerError
78
+ | errors.PostOauthParServiceUnavailableError
79
+ | SDKError
80
+ | ResponseValidationError
81
+ | ConnectionError
82
+ | RequestAbortedError
83
+ | RequestTimeoutError
84
+ | InvalidRequestError
85
+ | UnexpectedClientError
86
+ | SDKValidationError
87
+ >,
88
+ APICall,
89
+ ]
90
+ > {
91
+ const parsed = safeParse(
92
+ request,
93
+ (value) => z.parse(operations.PostOauthParRequest$outboundSchema, value),
94
+ "Input validation failed",
95
+ );
96
+ if (!parsed.ok) {
97
+ return [parsed, { status: "invalid" }];
98
+ }
99
+ const payload = parsed.value;
100
+
101
+ const body = Object.entries(payload || {}).map(([k, v]) => {
102
+ return encodeBodyForm(k, v, { charEncoding: "percent" });
103
+ }).join("&");
104
+
105
+ const path = pathToFunc("/oauth/par")();
106
+
107
+ const headers = new Headers(compactMap({
108
+ "Content-Type": "application/x-www-form-urlencoded",
109
+ Accept: "application/json",
110
+ }));
111
+
112
+ const context = {
113
+ options: client._options,
114
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
115
+ operationID: "postOauthPar",
116
+ oAuth2Scopes: null,
117
+
118
+ resolvedSecurity: null,
119
+
120
+ securitySource: null,
121
+ retryConfig: options?.retries
122
+ || client._options.retryConfig
123
+ || { strategy: "none" },
124
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
125
+ };
126
+
127
+ const requestRes = client._createRequest(context, {
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.PostOauthParResponse,
159
+ | errors.PostOauthParBadRequestError
160
+ | errors.PostOauthParUnauthorizedError
161
+ | errors.ProblemDetailsError
162
+ | errors.PostOauthParTooManyRequestsError
163
+ | errors.PostOauthParInternalServerError
164
+ | errors.PostOauthParServiceUnavailableError
165
+ | SDKError
166
+ | ResponseValidationError
167
+ | ConnectionError
168
+ | RequestAbortedError
169
+ | RequestTimeoutError
170
+ | InvalidRequestError
171
+ | UnexpectedClientError
172
+ | SDKValidationError
173
+ >(
174
+ M.json(201, operations.PostOauthParResponse$inboundSchema),
175
+ M.jsonErr(400, errors.PostOauthParBadRequestError$inboundSchema),
176
+ M.jsonErr(401, errors.PostOauthParUnauthorizedError$inboundSchema),
177
+ M.jsonErr(413, errors.ProblemDetailsError$inboundSchema, {
178
+ ctype: "application/problem+json",
179
+ }),
180
+ M.jsonErr(429, errors.PostOauthParTooManyRequestsError$inboundSchema),
181
+ M.jsonErr(500, errors.PostOauthParInternalServerError$inboundSchema),
182
+ M.jsonErr(503, errors.PostOauthParServiceUnavailableError$inboundSchema),
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
+ }
@@ -30,7 +30,7 @@ import { Result } from "../types/fp.js";
30
30
  * Revoke token
31
31
  *
32
32
  * @remarks
33
- * Revoke an access or refresh token. Requires client authentication (client_secret_basic, client_secret_post, or client_id for public clients). A refresh token is revoked only for the client it was issued to. Unknown tokens, and tokens of another client, return 200 per RFC 7009 §2.2; 503 temporarily_unavailable (retryable) when the revocation could not be recorded.
33
+ * Revoke an access or refresh token. Requires client authentication (client_secret_basic, client_secret_post, or client_id for public clients). A token is revoked only for the client it was issued to; first-party session tokens are revoked via /auth/logout, not here. Unknown tokens, and tokens of another client, return 200 per RFC 7009 §2.2 and nothing is revoked; 503 temporarily_unavailable (retryable) when the revocation could not be recorded.
34
34
  */
35
35
  export function oAuthPostOauthRevoke(
36
36
  client: ClossirCore,
@@ -41,9 +41,10 @@ export function oAuthPostOauthRevoke(
41
41
  operations.PostOauthRevokeResponse,
42
42
  | errors.PostOauthRevokeBadRequestError
43
43
  | errors.PostOauthRevokeUnauthorizedError
44
+ | errors.ProblemDetailsError
44
45
  | errors.PostOauthRevokeTooManyRequestsError
45
46
  | errors.PostOauthRevokeInternalServerError
46
- | errors.ServiceUnavailableError
47
+ | errors.PostOauthRevokeServiceUnavailableError
47
48
  | SDKError
48
49
  | ResponseValidationError
49
50
  | ConnectionError
@@ -71,9 +72,10 @@ async function $do(
71
72
  operations.PostOauthRevokeResponse,
72
73
  | errors.PostOauthRevokeBadRequestError
73
74
  | errors.PostOauthRevokeUnauthorizedError
75
+ | errors.ProblemDetailsError
74
76
  | errors.PostOauthRevokeTooManyRequestsError
75
77
  | errors.PostOauthRevokeInternalServerError
76
- | errors.ServiceUnavailableError
78
+ | errors.PostOauthRevokeServiceUnavailableError
77
79
  | SDKError
78
80
  | ResponseValidationError
79
81
  | ConnectionError
@@ -153,9 +155,10 @@ async function $do(
153
155
  operations.PostOauthRevokeResponse,
154
156
  | errors.PostOauthRevokeBadRequestError
155
157
  | errors.PostOauthRevokeUnauthorizedError
158
+ | errors.ProblemDetailsError
156
159
  | errors.PostOauthRevokeTooManyRequestsError
157
160
  | errors.PostOauthRevokeInternalServerError
158
- | errors.ServiceUnavailableError
161
+ | errors.PostOauthRevokeServiceUnavailableError
159
162
  | SDKError
160
163
  | ResponseValidationError
161
164
  | ConnectionError
@@ -168,9 +171,12 @@ async function $do(
168
171
  M.json(200, operations.PostOauthRevokeResponse$inboundSchema),
169
172
  M.jsonErr(400, errors.PostOauthRevokeBadRequestError$inboundSchema),
170
173
  M.jsonErr(401, errors.PostOauthRevokeUnauthorizedError$inboundSchema),
174
+ M.jsonErr(413, errors.ProblemDetailsError$inboundSchema, {
175
+ ctype: "application/problem+json",
176
+ }),
171
177
  M.jsonErr(429, errors.PostOauthRevokeTooManyRequestsError$inboundSchema),
172
178
  M.jsonErr(500, errors.PostOauthRevokeInternalServerError$inboundSchema),
173
- M.jsonErr(503, errors.ServiceUnavailableError$inboundSchema),
179
+ M.jsonErr(503, errors.PostOauthRevokeServiceUnavailableError$inboundSchema),
174
180
  M.fail("4XX"),
175
181
  M.fail("5XX"),
176
182
  )(response, req, { extraFields: responseFields });
@@ -30,7 +30,7 @@ import { Result } from "../types/fp.js";
30
30
  * Token exchange
31
31
  *
32
32
  * @remarks
33
- * Exchange authorization code for tokens or refresh existing tokens.
33
+ * Exchange authorization code for tokens or refresh existing tokens. Clossir Passport extension clients must send X-Clossir-Passport-Version (Chrome manifest version format); a missing, malformed or below-minimum version answers 426 update_required (minimum_version only on below-minimum) and nothing is consumed; 503 temporarily_unavailable when the version policy has never loaded. DPoP (RFC 9449): a DPoP header carrying an ES256 proof binds the issued access token (cnf.jkt) and, for a public client, the refresh token to the proof key, and token_type is DPoP; a client registered to require DPoP must send one. A proof without the server nonce answers 400 use_dpop_nonce with a DPoP-Nonce header; an invalid or replayed proof answers 400 invalid_dpop_proof; nothing is consumed on either. On the refresh_token grant, when MFA enforcement cannot be evaluated or the token or its user cannot be read, the answer is 503 temporarily_unavailable with Retry-After, never invalid_grant; the refresh token is neither rotated nor revoked and can be re-presented. On the authorization_code grant the same faults answer 503 temporarily_unavailable without Retry-After: the code is already consumed, so the client must restart authorization.
34
34
  */
35
35
  export function oAuthPostOauthToken(
36
36
  client: ClossirCore,
@@ -41,7 +41,10 @@ export function oAuthPostOauthToken(
41
41
  operations.PostOauthTokenResponse,
42
42
  | errors.PostOauthTokenBadRequestError
43
43
  | errors.PostOauthTokenUnauthorizedError
44
+ | errors.ProblemDetailsError
45
+ | errors.PostOauthTokenUpdateRequiredError
44
46
  | errors.PostOauthTokenInternalServerError
47
+ | errors.PostOauthTokenServiceUnavailableError
45
48
  | SDKError
46
49
  | ResponseValidationError
47
50
  | ConnectionError
@@ -69,7 +72,10 @@ async function $do(
69
72
  operations.PostOauthTokenResponse,
70
73
  | errors.PostOauthTokenBadRequestError
71
74
  | errors.PostOauthTokenUnauthorizedError
75
+ | errors.ProblemDetailsError
76
+ | errors.PostOauthTokenUpdateRequiredError
72
77
  | errors.PostOauthTokenInternalServerError
78
+ | errors.PostOauthTokenServiceUnavailableError
73
79
  | SDKError
74
80
  | ResponseValidationError
75
81
  | ConnectionError
@@ -149,7 +155,10 @@ async function $do(
149
155
  operations.PostOauthTokenResponse,
150
156
  | errors.PostOauthTokenBadRequestError
151
157
  | errors.PostOauthTokenUnauthorizedError
158
+ | errors.ProblemDetailsError
159
+ | errors.PostOauthTokenUpdateRequiredError
152
160
  | errors.PostOauthTokenInternalServerError
161
+ | errors.PostOauthTokenServiceUnavailableError
153
162
  | SDKError
154
163
  | ResponseValidationError
155
164
  | ConnectionError
@@ -162,7 +171,12 @@ async function $do(
162
171
  M.json(200, operations.PostOauthTokenResponse$inboundSchema),
163
172
  M.jsonErr(400, errors.PostOauthTokenBadRequestError$inboundSchema),
164
173
  M.jsonErr(401, errors.PostOauthTokenUnauthorizedError$inboundSchema),
174
+ M.jsonErr(413, errors.ProblemDetailsError$inboundSchema, {
175
+ ctype: "application/problem+json",
176
+ }),
177
+ M.jsonErr(426, errors.PostOauthTokenUpdateRequiredError$inboundSchema),
165
178
  M.jsonErr(500, errors.PostOauthTokenInternalServerError$inboundSchema),
179
+ M.jsonErr(503, errors.PostOauthTokenServiceUnavailableError$inboundSchema),
166
180
  M.fail("4XX"),
167
181
  M.fail("5XX"),
168
182
  )(response, req, { extraFields: responseFields });
@@ -31,7 +31,7 @@ import { Result } from "../types/fp.js";
31
31
  * List attestations for org members
32
32
  *
33
33
  * @remarks
34
- * Returns all attestations for members of this organization, with pagination. Includes user email/display_name for each attestation. Requires org membership (JWT) or API key with read:org or read:attestations permission.
34
+ * Returns all attestations for members of this organization, with pagination. Includes user email/display_name for each attestation. Readable by admin, operator or compliance_officer in the organization; an API key needs `attestations:read`. Operators and API keys may receive reduced user detail (null user fields or empty lists) where database row-level security does not admit them.
35
35
  */
36
36
  export function organizationsGetOrgsByOrgIdAttestations(
37
37
  client: ClossirCore,
@@ -29,6 +29,9 @@ import { Result } from "../types/fp.js";
29
29
 
30
30
  /**
31
31
  * List org audit logs
32
+ *
33
+ * @remarks
34
+ * Returns the organization's audit log, newest first, with each actor's email where readable. Readable by admin, operator or compliance_officer in the organization; an API key needs `audit:read`. Operators and API keys may receive reduced user detail (null user fields or empty lists) where database row-level security does not admit them.
32
35
  */
33
36
  export function organizationsGetOrgsByOrgIdAuditLogs(
34
37
  client: ClossirCore,
@@ -31,7 +31,7 @@ import { Result } from "../types/fp.js";
31
31
  * Get issuer status for organization
32
32
  *
33
33
  * @remarks
34
- * Returns the issuer registration status and details for this organization.
34
+ * Returns the issuer registration status and details for this organization, including the jurisdictions where the platform operates.
35
35
  */
36
36
  export function organizationsGetOrgsByOrgIdIssuer(
37
37
  client: ClossirCore,