@clossir-tech/ts-sdk 0.11.0 → 0.11.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (248) hide show
  1. package/README.md +45 -33
  2. package/esm/funcs/accounts-get-accounts-cash-assets.d.ts +20 -0
  3. package/esm/funcs/accounts-get-accounts-cash-assets.d.ts.map +1 -0
  4. package/esm/funcs/accounts-get-accounts-cash-assets.js +77 -0
  5. package/esm/funcs/accounts-get-accounts-cash-assets.js.map +1 -0
  6. package/esm/funcs/accounts-get-accounts-deposit-addresses.d.ts +20 -0
  7. package/esm/funcs/accounts-get-accounts-deposit-addresses.d.ts.map +1 -0
  8. package/esm/funcs/accounts-get-accounts-deposit-addresses.js +94 -0
  9. package/esm/funcs/accounts-get-accounts-deposit-addresses.js.map +1 -0
  10. package/esm/funcs/accounts-get-accounts-movable-wallets.d.ts +20 -0
  11. package/esm/funcs/accounts-get-accounts-movable-wallets.d.ts.map +1 -0
  12. package/esm/funcs/accounts-get-accounts-movable-wallets.js +94 -0
  13. package/esm/funcs/accounts-get-accounts-movable-wallets.js.map +1 -0
  14. package/esm/funcs/approvals-post-approvals-by-approval-id-approve.d.ts +20 -0
  15. package/esm/funcs/approvals-post-approvals-by-approval-id-approve.d.ts.map +1 -0
  16. package/esm/funcs/approvals-post-approvals-by-approval-id-approve.js +100 -0
  17. package/esm/funcs/approvals-post-approvals-by-approval-id-approve.js.map +1 -0
  18. package/esm/funcs/approvals-post-approvals-by-approval-id-reject.d.ts +20 -0
  19. package/esm/funcs/approvals-post-approvals-by-approval-id-reject.d.ts.map +1 -0
  20. package/esm/funcs/approvals-post-approvals-by-approval-id-reject.js +100 -0
  21. package/esm/funcs/approvals-post-approvals-by-approval-id-reject.js.map +1 -0
  22. package/esm/funcs/assets-patch-orgs-by-org-id-assets-by-asset-id.d.ts +1 -1
  23. package/esm/funcs/assets-patch-orgs-by-org-id-assets-by-asset-id.js +1 -1
  24. package/esm/funcs/assets-post-orgs-by-org-id-assets-by-asset-id-allocate.js +1 -1
  25. package/esm/funcs/assets-post-orgs-by-org-id-assets-by-asset-id-allocate.js.map +1 -1
  26. package/esm/funcs/assets-post-orgs-by-org-id-assets-by-asset-id-deploy.js +1 -1
  27. package/esm/funcs/assets-post-orgs-by-org-id-assets-by-asset-id-deploy.js.map +1 -1
  28. package/esm/funcs/assets-post-orgs-by-org-id-assets.d.ts +1 -1
  29. package/esm/funcs/assets-post-orgs-by-org-id-assets.js +1 -1
  30. package/esm/funcs/attestations-delete-attestations-by-id.d.ts +1 -1
  31. package/esm/funcs/attestations-delete-attestations-by-id.js +2 -2
  32. package/esm/funcs/attestations-delete-attestations-by-id.js.map +1 -1
  33. package/esm/funcs/attestations-post-attestations.js +1 -1
  34. package/esm/funcs/attestations-post-attestations.js.map +1 -1
  35. package/esm/funcs/commands-get-commands-by-command-id.d.ts +1 -1
  36. package/esm/funcs/commands-get-commands-by-command-id.js +1 -1
  37. package/esm/funcs/compliance-post-orgs-by-org-id-assets-by-asset-id-compliance-policy.d.ts +1 -1
  38. package/esm/funcs/compliance-post-orgs-by-org-id-assets-by-asset-id-compliance-policy.js +2 -2
  39. package/esm/funcs/compliance-post-orgs-by-org-id-assets-by-asset-id-compliance-policy.js.map +1 -1
  40. package/esm/funcs/distributions-post-orgs-by-org-id-assets-by-asset-id-distributions-by-dist-id-activate.js +2 -0
  41. package/esm/funcs/distributions-post-orgs-by-org-id-assets-by-asset-id-distributions-by-dist-id-activate.js.map +1 -1
  42. package/esm/funcs/distributions-post-orgs-by-org-id-assets-by-asset-id-distributions.js +2 -0
  43. package/esm/funcs/distributions-post-orgs-by-org-id-assets-by-asset-id-distributions.js.map +1 -1
  44. package/esm/funcs/fees-post-orgs-by-org-id-assets-by-asset-id-fees-distribute.js +3 -1
  45. package/esm/funcs/fees-post-orgs-by-org-id-assets-by-asset-id-fees-distribute.js.map +1 -1
  46. package/esm/funcs/markets-delete-orgs-by-org-id-assets-by-asset-id-markets-by-market-id-orders-by-order-id.js +2 -0
  47. package/esm/funcs/markets-delete-orgs-by-org-id-assets-by-asset-id-markets-by-market-id-orders-by-order-id.js.map +1 -1
  48. package/esm/funcs/markets-post-orgs-by-org-id-assets-by-asset-id-markets-by-market-id-deposit-hypercore.js +1 -1
  49. package/esm/funcs/markets-post-orgs-by-org-id-assets-by-asset-id-markets-by-market-id-deposit-hypercore.js.map +1 -1
  50. package/esm/funcs/markets-post-orgs-by-org-id-assets-by-asset-id-markets-by-market-id-orders.js +3 -1
  51. package/esm/funcs/markets-post-orgs-by-org-id-assets-by-asset-id-markets-by-market-id-orders.js.map +1 -1
  52. package/esm/funcs/markets-post-orgs-by-org-id-assets-by-asset-id-markets.js +1 -1
  53. package/esm/funcs/markets-post-orgs-by-org-id-assets-by-asset-id-markets.js.map +1 -1
  54. package/esm/funcs/nav-post-orgs-by-org-id-assets-by-asset-id-nav-configure.js +2 -0
  55. package/esm/funcs/nav-post-orgs-by-org-id-assets-by-asset-id-nav-configure.js.map +1 -1
  56. package/esm/funcs/nav-post-orgs-by-org-id-assets-by-asset-id-nav-publish.js +2 -0
  57. package/esm/funcs/nav-post-orgs-by-org-id-assets-by-asset-id-nav-publish.js.map +1 -1
  58. package/esm/funcs/organizations-get-orgs-by-org-id-server-wallet.js +2 -0
  59. package/esm/funcs/organizations-get-orgs-by-org-id-server-wallet.js.map +1 -1
  60. package/esm/funcs/organizations-post-orgs-by-org-id-issuer-register.js +1 -1
  61. package/esm/funcs/organizations-post-orgs-by-org-id-issuer-register.js.map +1 -1
  62. package/esm/funcs/organizations-post-orgs-by-org-id-members-by-user-id-attest.d.ts +1 -1
  63. package/esm/funcs/organizations-post-orgs-by-org-id-members-by-user-id-attest.js +4 -2
  64. package/esm/funcs/organizations-post-orgs-by-org-id-members-by-user-id-attest.js.map +1 -1
  65. package/esm/funcs/organizations-post-orgs-by-org-id-server-wallet.js +1 -1
  66. package/esm/funcs/organizations-post-orgs-by-org-id-server-wallet.js.map +1 -1
  67. package/esm/funcs/organizations-put-orgs-by-org-id-compliance.d.ts +1 -1
  68. package/esm/funcs/organizations-put-orgs-by-org-id-compliance.js +2 -4
  69. package/esm/funcs/organizations-put-orgs-by-org-id-compliance.js.map +1 -1
  70. package/esm/funcs/vaults-post-orgs-by-org-id-assets-by-asset-id-vault-deprecate.js +3 -1
  71. package/esm/funcs/vaults-post-orgs-by-org-id-assets-by-asset-id-vault-deprecate.js.map +1 -1
  72. package/esm/funcs/vaults-post-orgs-by-org-id-assets-by-asset-id-vault-pause.js +3 -1
  73. package/esm/funcs/vaults-post-orgs-by-org-id-assets-by-asset-id-vault-pause.js.map +1 -1
  74. package/esm/funcs/vaults-post-orgs-by-org-id-assets-by-asset-id-vault-settle.js +3 -1
  75. package/esm/funcs/vaults-post-orgs-by-org-id-assets-by-asset-id-vault-settle.js.map +1 -1
  76. package/esm/lib/config.d.ts +2 -2
  77. package/esm/lib/config.js +2 -2
  78. package/esm/models/errors/get-oauth-authorize.d.ts +6 -6
  79. package/esm/models/errors/get-oauth-authorize.js +3 -3
  80. package/esm/models/errors/get-oauth-userinfo.d.ts +8 -8
  81. package/esm/models/errors/get-oauth-userinfo.js +4 -4
  82. package/esm/models/errors/get-passport-home.d.ts +2 -2
  83. package/esm/models/errors/get-passport-home.js +1 -1
  84. package/esm/models/errors/get-passport-sign-in.d.ts +2 -2
  85. package/esm/models/errors/get-passport-sign-in.js +1 -1
  86. package/esm/models/errors/index.d.ts +2 -0
  87. package/esm/models/errors/index.d.ts.map +1 -1
  88. package/esm/models/errors/index.js +2 -0
  89. package/esm/models/errors/index.js.map +1 -1
  90. package/esm/models/errors/o-auth-error-response.d.ts +2 -2
  91. package/esm/models/errors/o-auth-error-response.js +1 -1
  92. package/esm/models/errors/post-approvals-by-approval-id-approve.d.ts +41 -0
  93. package/esm/models/errors/post-approvals-by-approval-id-approve.d.ts.map +1 -0
  94. package/esm/models/errors/post-approvals-by-approval-id-approve.js +52 -0
  95. package/esm/models/errors/post-approvals-by-approval-id-approve.js.map +1 -0
  96. package/esm/models/errors/post-approvals-by-approval-id-reject.d.ts +41 -0
  97. package/esm/models/errors/post-approvals-by-approval-id-reject.d.ts.map +1 -0
  98. package/esm/models/errors/post-approvals-by-approval-id-reject.js +53 -0
  99. package/esm/models/errors/post-approvals-by-approval-id-reject.js.map +1 -0
  100. package/esm/models/errors/post-eligibility-check.d.ts +2 -2
  101. package/esm/models/errors/post-eligibility-check.js +1 -1
  102. package/esm/models/errors/post-oauth-par.d.ts +10 -10
  103. package/esm/models/errors/post-oauth-par.js +5 -5
  104. package/esm/models/errors/post-oauth-revoke.d.ts +10 -10
  105. package/esm/models/errors/post-oauth-revoke.js +5 -5
  106. package/esm/models/errors/post-oauth-token.d.ts +8 -8
  107. package/esm/models/errors/post-oauth-token.js +4 -4
  108. package/esm/models/errors/post-passport-sign-in-decision.d.ts +2 -2
  109. package/esm/models/errors/post-passport-sign-in-decision.js +1 -1
  110. package/esm/models/operations/get-accounts-cash-assets.d.ts +44 -0
  111. package/esm/models/operations/get-accounts-cash-assets.d.ts.map +1 -0
  112. package/esm/models/operations/get-accounts-cash-assets.js +30 -0
  113. package/esm/models/operations/get-accounts-cash-assets.js.map +1 -0
  114. package/esm/models/operations/get-accounts-deposit-addresses.d.ts +146 -0
  115. package/esm/models/operations/get-accounts-deposit-addresses.d.ts.map +1 -0
  116. package/esm/models/operations/get-accounts-deposit-addresses.js +117 -0
  117. package/esm/models/operations/get-accounts-deposit-addresses.js.map +1 -0
  118. package/esm/models/operations/get-accounts-movable-wallets.d.ts +104 -0
  119. package/esm/models/operations/get-accounts-movable-wallets.d.ts.map +1 -0
  120. package/esm/models/operations/get-accounts-movable-wallets.js +75 -0
  121. package/esm/models/operations/get-accounts-movable-wallets.js.map +1 -0
  122. package/esm/models/operations/get-commands-by-command-id.d.ts +105 -0
  123. package/esm/models/operations/get-commands-by-command-id.d.ts.map +1 -1
  124. package/esm/models/operations/get-commands-by-command-id.js +119 -0
  125. package/esm/models/operations/get-commands-by-command-id.js.map +1 -1
  126. package/esm/models/operations/get-login-passport-status.d.ts +3 -3
  127. package/esm/models/operations/get-login-passport-status.d.ts.map +1 -1
  128. package/esm/models/operations/get-login-passport-status.js +3 -3
  129. package/esm/models/operations/get-login-passport-status.js.map +1 -1
  130. package/esm/models/operations/get-preflight-results-by-result-id.d.ts +25 -0
  131. package/esm/models/operations/get-preflight-results-by-result-id.d.ts.map +1 -1
  132. package/esm/models/operations/get-preflight-results-by-result-id.js +11 -0
  133. package/esm/models/operations/get-preflight-results-by-result-id.js.map +1 -1
  134. package/esm/models/operations/index.d.ts +5 -0
  135. package/esm/models/operations/index.d.ts.map +1 -1
  136. package/esm/models/operations/index.js +5 -0
  137. package/esm/models/operations/index.js.map +1 -1
  138. package/esm/models/operations/post-accounts-wallets-sync.d.ts +3 -1
  139. package/esm/models/operations/post-accounts-wallets-sync.d.ts.map +1 -1
  140. package/esm/models/operations/post-accounts-wallets-sync.js.map +1 -1
  141. package/esm/models/operations/post-approvals-by-approval-id-approve.d.ts +53 -0
  142. package/esm/models/operations/post-approvals-by-approval-id-approve.d.ts.map +1 -0
  143. package/esm/models/operations/post-approvals-by-approval-id-approve.js +41 -0
  144. package/esm/models/operations/post-approvals-by-approval-id-approve.js.map +1 -0
  145. package/esm/models/operations/post-approvals-by-approval-id-reject.d.ts +105 -0
  146. package/esm/models/operations/post-approvals-by-approval-id-reject.d.ts.map +1 -0
  147. package/esm/models/operations/post-approvals-by-approval-id-reject.js +71 -0
  148. package/esm/models/operations/post-approvals-by-approval-id-reject.js.map +1 -0
  149. package/esm/models/operations/post-attestations.d.ts +1 -1
  150. package/esm/models/operations/post-eligibility-check.d.ts +4 -4
  151. package/esm/models/operations/post-eligibility-check.d.ts.map +1 -1
  152. package/esm/models/operations/post-eligibility-check.js +4 -4
  153. package/esm/models/operations/post-eligibility-check.js.map +1 -1
  154. package/esm/models/operations/post-orgs-by-org-id-assets-by-asset-id-markets-by-market-id-orders.d.ts +1 -1
  155. package/esm/models/operations/post-orgs-by-org-id-members-by-user-id-attest.d.ts +9 -5
  156. package/esm/models/operations/post-orgs-by-org-id-members-by-user-id-attest.d.ts.map +1 -1
  157. package/esm/models/operations/post-orgs-by-org-id-members-by-user-id-attest.js +1 -1
  158. package/esm/models/operations/post-orgs-by-org-id-members-by-user-id-attest.js.map +1 -1
  159. package/esm/models/operations/post-preflight-intents.d.ts +25 -0
  160. package/esm/models/operations/post-preflight-intents.d.ts.map +1 -1
  161. package/esm/models/operations/post-preflight-intents.js +11 -0
  162. package/esm/models/operations/post-preflight-intents.js.map +1 -1
  163. package/esm/sdk/accounts.d.ts +21 -0
  164. package/esm/sdk/accounts.d.ts.map +1 -1
  165. package/esm/sdk/accounts.js +30 -0
  166. package/esm/sdk/accounts.js.map +1 -1
  167. package/esm/sdk/approvals.d.ts +14 -0
  168. package/esm/sdk/approvals.d.ts.map +1 -1
  169. package/esm/sdk/approvals.js +20 -0
  170. package/esm/sdk/approvals.js.map +1 -1
  171. package/esm/sdk/assets.d.ts +2 -2
  172. package/esm/sdk/assets.js +2 -2
  173. package/esm/sdk/attestations.d.ts +1 -1
  174. package/esm/sdk/attestations.js +1 -1
  175. package/esm/sdk/commands.d.ts +1 -1
  176. package/esm/sdk/commands.js +1 -1
  177. package/esm/sdk/compliance.d.ts +1 -1
  178. package/esm/sdk/compliance.js +1 -1
  179. package/esm/sdk/organizations.d.ts +2 -2
  180. package/esm/sdk/organizations.js +2 -2
  181. package/jsr.json +1 -1
  182. package/package.json +3 -3
  183. package/src/funcs/accounts-get-accounts-cash-assets.ts +157 -0
  184. package/src/funcs/accounts-get-accounts-deposit-addresses.ts +193 -0
  185. package/src/funcs/accounts-get-accounts-movable-wallets.ts +193 -0
  186. package/src/funcs/approvals-post-approvals-by-approval-id-approve.ts +217 -0
  187. package/src/funcs/approvals-post-approvals-by-approval-id-reject.ts +217 -0
  188. package/src/funcs/assets-patch-orgs-by-org-id-assets-by-asset-id.ts +1 -1
  189. package/src/funcs/assets-post-orgs-by-org-id-assets-by-asset-id-allocate.ts +1 -1
  190. package/src/funcs/assets-post-orgs-by-org-id-assets-by-asset-id-deploy.ts +1 -1
  191. package/src/funcs/assets-post-orgs-by-org-id-assets.ts +1 -1
  192. package/src/funcs/attestations-delete-attestations-by-id.ts +2 -2
  193. package/src/funcs/attestations-post-attestations.ts +1 -1
  194. package/src/funcs/commands-get-commands-by-command-id.ts +1 -1
  195. package/src/funcs/compliance-post-orgs-by-org-id-assets-by-asset-id-compliance-policy.ts +2 -2
  196. package/src/funcs/distributions-post-orgs-by-org-id-assets-by-asset-id-distributions-by-dist-id-activate.ts +3 -0
  197. package/src/funcs/distributions-post-orgs-by-org-id-assets-by-asset-id-distributions.ts +3 -0
  198. package/src/funcs/fees-post-orgs-by-org-id-assets-by-asset-id-fees-distribute.ts +3 -0
  199. package/src/funcs/markets-delete-orgs-by-org-id-assets-by-asset-id-markets-by-market-id-orders-by-order-id.ts +3 -0
  200. package/src/funcs/markets-post-orgs-by-org-id-assets-by-asset-id-markets-by-market-id-deposit-hypercore.ts +1 -1
  201. package/src/funcs/markets-post-orgs-by-org-id-assets-by-asset-id-markets-by-market-id-orders.ts +3 -0
  202. package/src/funcs/markets-post-orgs-by-org-id-assets-by-asset-id-markets.ts +1 -1
  203. package/src/funcs/nav-post-orgs-by-org-id-assets-by-asset-id-nav-configure.ts +3 -0
  204. package/src/funcs/nav-post-orgs-by-org-id-assets-by-asset-id-nav-publish.ts +3 -0
  205. package/src/funcs/organizations-get-orgs-by-org-id-server-wallet.ts +3 -0
  206. package/src/funcs/organizations-post-orgs-by-org-id-issuer-register.ts +1 -1
  207. package/src/funcs/organizations-post-orgs-by-org-id-members-by-user-id-attest.ts +4 -1
  208. package/src/funcs/organizations-post-orgs-by-org-id-server-wallet.ts +1 -1
  209. package/src/funcs/organizations-put-orgs-by-org-id-compliance.ts +6 -4
  210. package/src/funcs/vaults-post-orgs-by-org-id-assets-by-asset-id-vault-deprecate.ts +3 -0
  211. package/src/funcs/vaults-post-orgs-by-org-id-assets-by-asset-id-vault-pause.ts +3 -0
  212. package/src/funcs/vaults-post-orgs-by-org-id-assets-by-asset-id-vault-settle.ts +3 -0
  213. package/src/lib/config.ts +2 -2
  214. package/src/models/errors/get-oauth-authorize.ts +6 -6
  215. package/src/models/errors/get-oauth-userinfo.ts +8 -8
  216. package/src/models/errors/get-passport-home.ts +2 -2
  217. package/src/models/errors/get-passport-sign-in.ts +2 -2
  218. package/src/models/errors/index.ts +2 -0
  219. package/src/models/errors/o-auth-error-response.ts +2 -2
  220. package/src/models/errors/post-approvals-by-approval-id-approve.ts +85 -0
  221. package/src/models/errors/post-approvals-by-approval-id-reject.ts +85 -0
  222. package/src/models/errors/post-eligibility-check.ts +2 -2
  223. package/src/models/errors/post-oauth-par.ts +10 -10
  224. package/src/models/errors/post-oauth-revoke.ts +10 -10
  225. package/src/models/errors/post-oauth-token.ts +8 -8
  226. package/src/models/errors/post-passport-sign-in-decision.ts +2 -2
  227. package/src/models/operations/get-accounts-cash-assets.ts +89 -0
  228. package/src/models/operations/get-accounts-deposit-addresses.ts +346 -0
  229. package/src/models/operations/get-accounts-movable-wallets.ts +240 -0
  230. package/src/models/operations/get-commands-by-command-id.ts +267 -0
  231. package/src/models/operations/get-login-passport-status.ts +12 -6
  232. package/src/models/operations/get-preflight-results-by-result-id.ts +51 -0
  233. package/src/models/operations/index.ts +5 -0
  234. package/src/models/operations/post-accounts-wallets-sync.ts +3 -1
  235. package/src/models/operations/post-approvals-by-approval-id-approve.ts +134 -0
  236. package/src/models/operations/post-approvals-by-approval-id-reject.ts +207 -0
  237. package/src/models/operations/post-attestations.ts +1 -1
  238. package/src/models/operations/post-eligibility-check.ts +11 -8
  239. package/src/models/operations/post-orgs-by-org-id-assets-by-asset-id-markets-by-market-id-orders.ts +1 -1
  240. package/src/models/operations/post-orgs-by-org-id-members-by-user-id-attest.ts +10 -6
  241. package/src/models/operations/post-preflight-intents.ts +47 -0
  242. package/src/sdk/accounts.ts +52 -0
  243. package/src/sdk/approvals.ts +40 -0
  244. package/src/sdk/assets.ts +2 -2
  245. package/src/sdk/attestations.ts +1 -1
  246. package/src/sdk/commands.ts +1 -1
  247. package/src/sdk/compliance.ts +1 -1
  248. package/src/sdk/organizations.ts +2 -2
@@ -0,0 +1,217 @@
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, encodeSimple } 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
+ * Reject an approval as its designated approver
32
+ *
33
+ * @remarks
34
+ * Declines a requested approval; its intent can no longer be executed through it. Synchronous 200 with the approval (status rejected). No Kafka. Body: {} (strict; empty is {}). A consumed approval is 409 approval_consumed, a rejected or withdrawn one 409 illegal_transition, an expired one 409 approval_expired. Requires a Clossir Passport client's DPoP-bound access token with a fresh DPoP proof; a caller who is not the designated approver gets the same 404 approval_not_found as an unknown id. A body over 4096 bytes is 413.
35
+ *
36
+ * If set, this operation will use {@link Security.bearerAuth} from the global security.
37
+ */
38
+ export function approvalsPostApprovalsByApprovalIdReject(
39
+ client: ClossirCore,
40
+ approvalId: string,
41
+ body?: operations.PostApprovalsByApprovalIdRejectRequestBody | undefined,
42
+ options?: RequestOptions,
43
+ ): APIPromise<
44
+ Result<
45
+ operations.PostApprovalsByApprovalIdRejectResponse,
46
+ | errors.ProblemDetailsError
47
+ | errors.OAuthErrorResponse
48
+ | errors.PostApprovalsByApprovalIdRejectUpdateRequiredError
49
+ | SDKError
50
+ | ResponseValidationError
51
+ | ConnectionError
52
+ | RequestAbortedError
53
+ | RequestTimeoutError
54
+ | InvalidRequestError
55
+ | UnexpectedClientError
56
+ | SDKValidationError
57
+ >
58
+ > {
59
+ return new APIPromise($do(
60
+ client,
61
+ approvalId,
62
+ body,
63
+ options,
64
+ ));
65
+ }
66
+
67
+ async function $do(
68
+ client: ClossirCore,
69
+ approvalId: string,
70
+ body?: operations.PostApprovalsByApprovalIdRejectRequestBody | undefined,
71
+ options?: RequestOptions,
72
+ ): Promise<
73
+ [
74
+ Result<
75
+ operations.PostApprovalsByApprovalIdRejectResponse,
76
+ | errors.ProblemDetailsError
77
+ | errors.OAuthErrorResponse
78
+ | errors.PostApprovalsByApprovalIdRejectUpdateRequiredError
79
+ | SDKError
80
+ | ResponseValidationError
81
+ | ConnectionError
82
+ | RequestAbortedError
83
+ | RequestTimeoutError
84
+ | InvalidRequestError
85
+ | UnexpectedClientError
86
+ | SDKValidationError
87
+ >,
88
+ APICall,
89
+ ]
90
+ > {
91
+ const input: operations.PostApprovalsByApprovalIdRejectRequest = {
92
+ approvalId: approvalId,
93
+ body: body,
94
+ };
95
+
96
+ const parsed = safeParse(
97
+ input,
98
+ (value) =>
99
+ z.parse(
100
+ operations.PostApprovalsByApprovalIdRejectRequest$outboundSchema,
101
+ value,
102
+ ),
103
+ "Input validation failed",
104
+ );
105
+ if (!parsed.ok) {
106
+ return [parsed, { status: "invalid" }];
107
+ }
108
+ const payload = parsed.value;
109
+ const body$ = encodeJSON("body", payload.body, { explode: true });
110
+
111
+ const pathParams = {
112
+ approvalId: encodeSimple("approvalId", payload.approvalId, {
113
+ explode: false,
114
+ charEncoding: "percent",
115
+ }),
116
+ };
117
+ const path = pathToFunc("/approvals/{approvalId}/reject")(pathParams);
118
+
119
+ const headers = new Headers(compactMap({
120
+ "Content-Type": "application/json",
121
+ Accept: "application/json",
122
+ }));
123
+
124
+ const secConfig = await extractSecurity(client._options.bearerAuth);
125
+ const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
126
+ const requestSecurity = resolveGlobalSecurity(securityInput, [0]);
127
+
128
+ const context = {
129
+ options: client._options,
130
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
131
+ operationID: "postApprovalsByApprovalIdReject",
132
+ oAuth2Scopes: null,
133
+
134
+ resolvedSecurity: requestSecurity,
135
+
136
+ securitySource: client._options.bearerAuth,
137
+ retryConfig: options?.retries
138
+ || client._options.retryConfig
139
+ || { strategy: "none" },
140
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
141
+ };
142
+
143
+ const requestRes = client._createRequest(context, {
144
+ security: requestSecurity,
145
+ method: "POST",
146
+ baseURL: options?.serverURL,
147
+ path: path,
148
+ headers: headers,
149
+ body: body$,
150
+ userAgent: client._options.userAgent,
151
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
152
+ }, options);
153
+ if (!requestRes.ok) {
154
+ return [requestRes, { status: "invalid" }];
155
+ }
156
+ const req = requestRes.value;
157
+
158
+ const doResult = await client._do(req, {
159
+ context,
160
+ isErrorStatusCode: (statusCode: number) =>
161
+ matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
162
+ retryConfig: context.retryConfig,
163
+ retryCodes: context.retryCodes,
164
+ });
165
+ if (!doResult.ok) {
166
+ return [doResult, { status: "request-error", request: req }];
167
+ }
168
+ const response = doResult.value;
169
+
170
+ const responseFields = {
171
+ HttpMeta: { Response: response, Request: req },
172
+ };
173
+
174
+ const [result] = await M.match<
175
+ operations.PostApprovalsByApprovalIdRejectResponse,
176
+ | errors.ProblemDetailsError
177
+ | errors.OAuthErrorResponse
178
+ | errors.PostApprovalsByApprovalIdRejectUpdateRequiredError
179
+ | SDKError
180
+ | ResponseValidationError
181
+ | ConnectionError
182
+ | RequestAbortedError
183
+ | RequestTimeoutError
184
+ | InvalidRequestError
185
+ | UnexpectedClientError
186
+ | SDKValidationError
187
+ >(
188
+ M.json(
189
+ 200,
190
+ operations.PostApprovalsByApprovalIdRejectResponse$inboundSchema,
191
+ ),
192
+ M.jsonErr(401, errors.ProblemDetailsError$inboundSchema, {
193
+ ctype: "application/problem+json",
194
+ }),
195
+ M.jsonErr(401, errors.OAuthErrorResponse$inboundSchema),
196
+ M.jsonErr(
197
+ 426,
198
+ errors.PostApprovalsByApprovalIdRejectUpdateRequiredError$inboundSchema,
199
+ ),
200
+ M.jsonErr(
201
+ [400, 404, 409, 413, 428, 429],
202
+ errors.ProblemDetailsError$inboundSchema,
203
+ { ctype: "application/problem+json" },
204
+ ),
205
+ M.jsonErr([500, 503], errors.ProblemDetailsError$inboundSchema, {
206
+ ctype: "application/problem+json",
207
+ }),
208
+ M.jsonErr([500, 503], errors.OAuthErrorResponse$inboundSchema),
209
+ M.fail("4XX"),
210
+ M.fail("5XX"),
211
+ )(response, req, { extraFields: responseFields });
212
+ if (!result.ok) {
213
+ return [result, { status: "complete", request: req, response }];
214
+ }
215
+
216
+ return [result, { status: "complete", request: req, response }];
217
+ }
@@ -31,7 +31,7 @@ import { Result } from "../types/fp.js";
31
31
  * Update asset
32
32
  *
33
33
  * @remarks
34
- * Queue an update to the asset's details, compliance configuration, holding restriction (`org_only`) or discovery visibility (`visibility`). Server-managed fields (status, deployed_chains, contract_addresses, launched_at, created_by, organization_id, id) are ignored. `visibility: "public"` together with `org_only: true` in one body is rejected 422 `visibility_conflict`; `visibility: "public"` on an asset that is already `org_only` is accepted but the asset stays undiscoverable until `org_only` is false. The asset must belong to the organization in the path, otherwise 404. Returns 202; poll GET /orgs/:orgId/assets/:assetId for the applied state. JWT callers need the admin or operator role in that organization; API keys need the assets:write permission.
34
+ * Queue an update to the asset's details, compliance configuration, holding restriction (`org_only`) or discovery visibility (`visibility`). Server-managed fields (status, deployed_chains, contract_addresses, launched_at, created_by, organization_id, id) are ignored. `visibility: "public"` together with `org_only: true` in one body is rejected 422 `visibility_conflict`; `visibility: "public"` on an asset that is already `org_only` is accepted but the asset stays undiscoverable until `org_only` is false. The asset must belong to the organization in the path, otherwise 404. A compliance_rules.blocked_countries entry that names no country returns 422 validation_failed with property pointing at the entry; the value is not echoed. Resending the stored list unchanged, in any order, is accepted. Returns 202; poll GET /orgs/:orgId/assets/:assetId for the applied state. JWT callers need the admin or operator role in that organization; API keys need the assets:write permission.
35
35
  */
36
36
  export function assetsPatchOrgsByOrgIdAssetsByAssetId(
37
37
  client: ClossirCore,
@@ -212,7 +212,7 @@ async function $do(
212
212
  errors.ProblemDetailsError$inboundSchema,
213
213
  { ctype: "application/problem+json" },
214
214
  ),
215
- M.jsonErr(500, errors.ProblemDetailsError$inboundSchema, {
215
+ M.jsonErr([500, 503], errors.ProblemDetailsError$inboundSchema, {
216
216
  ctype: "application/problem+json",
217
217
  }),
218
218
  M.fail("4XX"),
@@ -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
  * 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"),
@@ -168,7 +168,7 @@ async function $do(
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"),
@@ -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 });
@@ -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 });
@@ -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"),
@@ -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 });
@@ -192,6 +192,9 @@ async function $do(
192
192
  M.jsonErr([403, 428], errors.ProblemDetailsError$inboundSchema, {
193
193
  ctype: "application/problem+json",
194
194
  }),
195
+ M.jsonErr(503, errors.ProblemDetailsError$inboundSchema, {
196
+ ctype: "application/problem+json",
197
+ }),
195
198
  M.fail("4XX"),
196
199
  M.fail("5XX"),
197
200
  )(response, req, { extraFields: responseFields });
@@ -197,7 +197,7 @@ async function $do(
197
197
  M.jsonErr([400, 403, 428], errors.ProblemDetailsError$inboundSchema, {
198
198
  ctype: "application/problem+json",
199
199
  }),
200
- M.jsonErr(500, errors.ProblemDetailsError$inboundSchema, {
200
+ M.jsonErr([500, 503], errors.ProblemDetailsError$inboundSchema, {
201
201
  ctype: "application/problem+json",
202
202
  }),
203
203
  M.fail("4XX"),
@@ -31,7 +31,7 @@ import { Result } from "../types/fp.js";
31
31
  * Attest member wallets on behalf of org
32
32
  *
33
33
  * @remarks
34
- * Triggers an attestation for one or more of a member's wallets. The organization acts as the attesting authority (e.g., a bank completing KYC for a client). If walletAddresses is omitted, all user wallets are attested. If chainEid is omitted, attestations are created on all chains where wallets exist. Returns 202 Accepted — attestations are processed asynchronously via Kafka workers. Returns 409 attestation_in_force, and writes nothing, if any selected wallet already holds an attestation on that chain that is pending, submitting or active; a new attestation can be issued once it has failed, expired or been revoked. Returns 409 attestation_reinstate_unsupported for a revoked attestation on Solana. expiresAt, when given, must be a future ISO 8601 date-time (400 otherwise). Requires staff role (admin, operator, compliance_officer) or API key with write:attestations permission.
34
+ * Triggers an attestation for one or more of a member's wallets. The organization acts as the attesting authority (e.g., a bank completing KYC for a client). If walletAddresses is omitted, all user wallets are attested. If chainEid is omitted, attestations are created on all chains where wallets exist. Returns 202 Accepted — attestations are processed asynchronously via Kafka workers. The member must hold an approved, current Clossir verification: the attestation's KYC level is that verification's level and its expiry is capped at the verification's expiry. Returns 409 member_kyc_required, and writes nothing, when the member has no approved, current Clossir verification. kycLevel and countryCode are deprecated and ignored. Returns 409 attestation_in_force, and writes nothing, if any selected wallet already holds an attestation on that chain that is pending, submitting or active; a new attestation can be issued once it has failed, expired or been revoked. Returns 409 attestation_reinstate_unsupported for a revoked attestation on Solana. expiresAt, when given, must be a future ISO 8601 date-time (400 otherwise). Requires staff role (admin, operator, compliance_officer) or API key with write:attestations permission.
35
35
  */
36
36
  export function organizationsPostOrgsByOrgIdMembersByUserIdAttest(
37
37
  client: ClossirCore,
@@ -210,6 +210,9 @@ async function $do(
210
210
  errors.ProblemDetailsError$inboundSchema,
211
211
  { ctype: "application/problem+json" },
212
212
  ),
213
+ M.jsonErr([500, 503], errors.ProblemDetailsError$inboundSchema, {
214
+ ctype: "application/problem+json",
215
+ }),
213
216
  M.fail("4XX"),
214
217
  M.fail("5XX"),
215
218
  )(response, req, { extraFields: responseFields });
@@ -192,7 +192,7 @@ async function $do(
192
192
  M.jsonErr([403, 428], errors.ProblemDetailsError$inboundSchema, {
193
193
  ctype: "application/problem+json",
194
194
  }),
195
- M.jsonErr(500, errors.ProblemDetailsError$inboundSchema, {
195
+ M.jsonErr([500, 503], errors.ProblemDetailsError$inboundSchema, {
196
196
  ctype: "application/problem+json",
197
197
  }),
198
198
  M.fail("4XX"),
@@ -31,7 +31,7 @@ import { Result } from "../types/fp.js";
31
31
  * Update organization compliance config
32
32
  *
33
33
  * @remarks
34
- * Creates or updates the compliance configuration for an organization. Requires admin or compliance_officer role.
34
+ * Creates or updates the compliance configuration for an organization. Requires admin or compliance_officer role. A blocked_jurisdictions entry that is not the canonical ISO 3166-1 upper-case alpha-2 form — including a mappable alias such as UK — returns 422 validation_failed with property pointing at the entry; the value is not echoed. Resending the stored list unchanged, in any order, is accepted.
35
35
  *
36
36
  * If set, this operation will use {@link Security.bearerAuth} from the global security.
37
37
  */
@@ -177,9 +177,11 @@ async function $do(
177
177
  | SDKValidationError
178
178
  >(
179
179
  M.json(200, operations.PutOrgsByOrgIdComplianceResponse$inboundSchema),
180
- M.jsonErr([400, 401, 403, 428], errors.ProblemDetailsError$inboundSchema, {
181
- ctype: "application/problem+json",
182
- }),
180
+ M.jsonErr(
181
+ [400, 401, 403, 422, 428],
182
+ errors.ProblemDetailsError$inboundSchema,
183
+ { ctype: "application/problem+json" },
184
+ ),
183
185
  M.jsonErr(500, errors.ProblemDetailsError$inboundSchema, {
184
186
  ctype: "application/problem+json",
185
187
  }),
@@ -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 });
@@ -191,6 +191,9 @@ async function $do(
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 });
@@ -192,6 +192,9 @@ async function $do(
192
192
  errors.ProblemDetailsError$inboundSchema,
193
193
  { ctype: "application/problem+json" },
194
194
  ),
195
+ M.jsonErr(503, errors.ProblemDetailsError$inboundSchema, {
196
+ ctype: "application/problem+json",
197
+ }),
195
198
  M.fail("4XX"),
196
199
  M.fail("5XX"),
197
200
  )(response, req, { extraFields: responseFields });
package/src/lib/config.ts CHANGED
@@ -65,8 +65,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
65
65
  export const SDK_METADATA = {
66
66
  language: "typescript",
67
67
  openapiDocVersion: "2.0.0",
68
- sdkVersion: "0.11.0",
68
+ sdkVersion: "0.11.2",
69
69
  genVersion: "2.916.4",
70
70
  userAgent:
71
- "speakeasy-sdk/typescript 0.11.0 2.916.4 2.0.0 @clossir-tech/ts-sdk",
71
+ "speakeasy-sdk/typescript 0.11.2 2.916.4 2.0.0 @clossir-tech/ts-sdk",
72
72
  } as const;
@@ -12,7 +12,7 @@ import { SDKError } from "./sdk-error.js";
12
12
  */
13
13
  export type GetOauthAuthorizeInternalServerErrorData = {
14
14
  /**
15
- * One of: invalid_request, invalid_client, invalid_grant, unauthorized_client, unsupported_grant_type, invalid_scope, access_denied, unsupported_response_type, server_error, temporarily_unavailable, unsupported_token_type, invalid_token, insufficient_scope, invalid_request_uri, invalid_dpop_proof, use_dpop_nonce, or "rate_limited" (Signum-wide rate-limit middleware)
15
+ * One of: invalid_request, invalid_client, invalid_grant, unauthorized_client, unsupported_grant_type, invalid_scope, access_denied, unsupported_response_type, server_error, temporarily_unavailable, unsupported_token_type, invalid_token, insufficient_scope, invalid_request_uri, invalid_dpop_proof, use_dpop_nonce, login_required, consent_required, or "rate_limited" (Signum-wide rate-limit middleware)
16
16
  */
17
17
  error: string;
18
18
  /**
@@ -38,7 +38,7 @@ export type GetOauthAuthorizeInternalServerErrorData = {
38
38
  */
39
39
  export class GetOauthAuthorizeInternalServerError extends SDKError {
40
40
  /**
41
- * One of: invalid_request, invalid_client, invalid_grant, unauthorized_client, unsupported_grant_type, invalid_scope, access_denied, unsupported_response_type, server_error, temporarily_unavailable, unsupported_token_type, invalid_token, insufficient_scope, invalid_request_uri, invalid_dpop_proof, use_dpop_nonce, or "rate_limited" (Signum-wide rate-limit middleware)
41
+ * One of: invalid_request, invalid_client, invalid_grant, unauthorized_client, unsupported_grant_type, invalid_scope, access_denied, unsupported_response_type, server_error, temporarily_unavailable, unsupported_token_type, invalid_token, insufficient_scope, invalid_request_uri, invalid_dpop_proof, use_dpop_nonce, login_required, consent_required, or "rate_limited" (Signum-wide rate-limit middleware)
42
42
  */
43
43
  error: string;
44
44
  /**
@@ -80,7 +80,7 @@ export class GetOauthAuthorizeInternalServerError extends SDKError {
80
80
  */
81
81
  export type GetOauthAuthorizeTooManyRequestsErrorData = {
82
82
  /**
83
- * One of: invalid_request, invalid_client, invalid_grant, unauthorized_client, unsupported_grant_type, invalid_scope, access_denied, unsupported_response_type, server_error, temporarily_unavailable, unsupported_token_type, invalid_token, insufficient_scope, invalid_request_uri, invalid_dpop_proof, use_dpop_nonce, or "rate_limited" (Signum-wide rate-limit middleware)
83
+ * One of: invalid_request, invalid_client, invalid_grant, unauthorized_client, unsupported_grant_type, invalid_scope, access_denied, unsupported_response_type, server_error, temporarily_unavailable, unsupported_token_type, invalid_token, insufficient_scope, invalid_request_uri, invalid_dpop_proof, use_dpop_nonce, login_required, consent_required, or "rate_limited" (Signum-wide rate-limit middleware)
84
84
  */
85
85
  error: string;
86
86
  /**
@@ -106,7 +106,7 @@ export type GetOauthAuthorizeTooManyRequestsErrorData = {
106
106
  */
107
107
  export class GetOauthAuthorizeTooManyRequestsError extends SDKError {
108
108
  /**
109
- * One of: invalid_request, invalid_client, invalid_grant, unauthorized_client, unsupported_grant_type, invalid_scope, access_denied, unsupported_response_type, server_error, temporarily_unavailable, unsupported_token_type, invalid_token, insufficient_scope, invalid_request_uri, invalid_dpop_proof, use_dpop_nonce, or "rate_limited" (Signum-wide rate-limit middleware)
109
+ * One of: invalid_request, invalid_client, invalid_grant, unauthorized_client, unsupported_grant_type, invalid_scope, access_denied, unsupported_response_type, server_error, temporarily_unavailable, unsupported_token_type, invalid_token, insufficient_scope, invalid_request_uri, invalid_dpop_proof, use_dpop_nonce, login_required, consent_required, or "rate_limited" (Signum-wide rate-limit middleware)
110
110
  */
111
111
  error: string;
112
112
  /**
@@ -148,7 +148,7 @@ export class GetOauthAuthorizeTooManyRequestsError extends SDKError {
148
148
  */
149
149
  export type GetOauthAuthorizeBadRequestErrorData = {
150
150
  /**
151
- * One of: invalid_request, invalid_client, invalid_grant, unauthorized_client, unsupported_grant_type, invalid_scope, access_denied, unsupported_response_type, server_error, temporarily_unavailable, unsupported_token_type, invalid_token, insufficient_scope, invalid_request_uri, invalid_dpop_proof, use_dpop_nonce, or "rate_limited" (Signum-wide rate-limit middleware)
151
+ * One of: invalid_request, invalid_client, invalid_grant, unauthorized_client, unsupported_grant_type, invalid_scope, access_denied, unsupported_response_type, server_error, temporarily_unavailable, unsupported_token_type, invalid_token, insufficient_scope, invalid_request_uri, invalid_dpop_proof, use_dpop_nonce, login_required, consent_required, or "rate_limited" (Signum-wide rate-limit middleware)
152
152
  */
153
153
  error: string;
154
154
  /**
@@ -174,7 +174,7 @@ export type GetOauthAuthorizeBadRequestErrorData = {
174
174
  */
175
175
  export class GetOauthAuthorizeBadRequestError extends SDKError {
176
176
  /**
177
- * One of: invalid_request, invalid_client, invalid_grant, unauthorized_client, unsupported_grant_type, invalid_scope, access_denied, unsupported_response_type, server_error, temporarily_unavailable, unsupported_token_type, invalid_token, insufficient_scope, invalid_request_uri, invalid_dpop_proof, use_dpop_nonce, or "rate_limited" (Signum-wide rate-limit middleware)
177
+ * One of: invalid_request, invalid_client, invalid_grant, unauthorized_client, unsupported_grant_type, invalid_scope, access_denied, unsupported_response_type, server_error, temporarily_unavailable, unsupported_token_type, invalid_token, insufficient_scope, invalid_request_uri, invalid_dpop_proof, use_dpop_nonce, login_required, consent_required, or "rate_limited" (Signum-wide rate-limit middleware)
178
178
  */
179
179
  error: string;
180
180
  /**