rehive 3.1.3 → 4.0.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 (425) hide show
  1. package/README.md +211 -494
  2. package/dist/admin.d.mts +31284 -0
  3. package/dist/admin.d.ts +31284 -0
  4. package/dist/admin.js +1 -0
  5. package/dist/admin.mjs +1 -0
  6. package/dist/auth.d.mts +23 -0
  7. package/dist/auth.d.ts +23 -0
  8. package/dist/auth.js +1 -0
  9. package/dist/auth.mjs +1 -0
  10. package/dist/chunk-53JJUQ4V.js +1 -0
  11. package/dist/chunk-5MRX4DHT.js +1 -0
  12. package/dist/chunk-7WWCXCY2.mjs +1 -0
  13. package/dist/chunk-HF5XDXOU.mjs +1 -0
  14. package/dist/chunk-NFN3B6SG.mjs +1 -0
  15. package/dist/chunk-OEIQFP6T.js +1 -0
  16. package/dist/chunk-Q2ZX3WFY.mjs +7 -0
  17. package/dist/chunk-QWQ6ZENI.js +1 -0
  18. package/dist/chunk-RKDIBDG6.js +7 -0
  19. package/dist/chunk-S4QKN5WW.mjs +1 -0
  20. package/dist/chunk-UYUMXTPF.js +7 -0
  21. package/dist/chunk-V277OEVY.mjs +7 -0
  22. package/dist/create-api-client-BMeX50D6.d.ts +25 -0
  23. package/dist/create-api-client-BrsH1l8c.d.mts +25 -0
  24. package/dist/create-auth-UTklIOTc.d.mts +18340 -0
  25. package/dist/create-auth-UTklIOTc.d.ts +18340 -0
  26. package/dist/extensions/alchemy.d.mts +1114 -0
  27. package/dist/extensions/alchemy.d.ts +1114 -0
  28. package/dist/extensions/alchemy.js +7 -0
  29. package/dist/extensions/alchemy.mjs +7 -0
  30. package/dist/extensions/app.d.mts +2042 -0
  31. package/dist/extensions/app.d.ts +2042 -0
  32. package/dist/extensions/app.js +7 -0
  33. package/dist/extensions/app.mjs +7 -0
  34. package/dist/extensions/billing.d.mts +828 -0
  35. package/dist/extensions/billing.d.ts +828 -0
  36. package/dist/extensions/billing.js +7 -0
  37. package/dist/extensions/billing.mjs +7 -0
  38. package/dist/extensions/bridge.d.mts +2028 -0
  39. package/dist/extensions/bridge.d.ts +2028 -0
  40. package/dist/extensions/bridge.js +7 -0
  41. package/dist/extensions/bridge.mjs +7 -0
  42. package/dist/extensions/builder.d.mts +542 -0
  43. package/dist/extensions/builder.d.ts +542 -0
  44. package/dist/extensions/builder.js +7 -0
  45. package/dist/extensions/builder.mjs +7 -0
  46. package/dist/extensions/business.d.mts +8972 -0
  47. package/dist/extensions/business.d.ts +8972 -0
  48. package/dist/extensions/business.js +7 -0
  49. package/dist/extensions/business.mjs +7 -0
  50. package/dist/extensions/conversion.d.mts +2786 -0
  51. package/dist/extensions/conversion.d.ts +2786 -0
  52. package/dist/extensions/conversion.js +7 -0
  53. package/dist/extensions/conversion.mjs +7 -0
  54. package/dist/extensions/mass-send.d.mts +1294 -0
  55. package/dist/extensions/mass-send.d.ts +1294 -0
  56. package/dist/extensions/mass-send.js +7 -0
  57. package/dist/extensions/mass-send.mjs +7 -0
  58. package/dist/extensions/notifications.d.mts +2035 -0
  59. package/dist/extensions/notifications.d.ts +2035 -0
  60. package/dist/extensions/notifications.js +7 -0
  61. package/dist/extensions/notifications.mjs +7 -0
  62. package/dist/extensions/payment-requests.d.mts +3746 -0
  63. package/dist/extensions/payment-requests.d.ts +3746 -0
  64. package/dist/extensions/payment-requests.js +7 -0
  65. package/dist/extensions/payment-requests.mjs +7 -0
  66. package/dist/extensions/products.d.mts +10092 -0
  67. package/dist/extensions/products.d.ts +10092 -0
  68. package/dist/extensions/products.js +7 -0
  69. package/dist/extensions/products.mjs +7 -0
  70. package/dist/extensions/rain.d.mts +1896 -0
  71. package/dist/extensions/rain.d.ts +1896 -0
  72. package/dist/extensions/rain.js +7 -0
  73. package/dist/extensions/rain.mjs +7 -0
  74. package/dist/extensions/rewards.d.mts +2038 -0
  75. package/dist/extensions/rewards.d.ts +2038 -0
  76. package/dist/extensions/rewards.js +7 -0
  77. package/dist/extensions/rewards.mjs +7 -0
  78. package/dist/extensions/stellar-testnet.d.mts +3922 -0
  79. package/dist/extensions/stellar-testnet.d.ts +3922 -0
  80. package/dist/extensions/stellar-testnet.js +7 -0
  81. package/dist/extensions/stellar-testnet.mjs +7 -0
  82. package/dist/extensions/stellar.d.mts +3922 -0
  83. package/dist/extensions/stellar.d.ts +3922 -0
  84. package/dist/extensions/stellar.js +7 -0
  85. package/dist/extensions/stellar.mjs +7 -0
  86. package/dist/index.d.mts +6 -61050
  87. package/dist/index.d.ts +6 -61050
  88. package/dist/index.js +1 -1
  89. package/dist/index.mjs +1 -1
  90. package/dist/react.d.mts +8 -61087
  91. package/dist/react.d.ts +8 -61087
  92. package/dist/react.js +1 -1
  93. package/dist/react.mjs +1 -1
  94. package/dist/user.d.mts +1347 -0
  95. package/dist/user.d.ts +1347 -0
  96. package/dist/user.js +1 -0
  97. package/dist/user.mjs +1 -0
  98. package/package.json +99 -32
  99. package/src/auth/core/storage-adapters.ts +58 -0
  100. package/src/auth/create-auth.ts +563 -0
  101. package/src/auth/index.ts +4 -0
  102. package/src/auth/types/index.ts +28 -0
  103. package/src/extensions/alchemy/create-api.ts +13 -0
  104. package/src/extensions/alchemy/index.ts +3 -0
  105. package/src/extensions/alchemy/openapi-ts/client/client.gen.ts +288 -0
  106. package/src/extensions/alchemy/openapi-ts/client/index.ts +25 -0
  107. package/src/extensions/alchemy/openapi-ts/client/types.gen.ts +213 -0
  108. package/src/extensions/alchemy/openapi-ts/client/utils.gen.ts +316 -0
  109. package/src/extensions/alchemy/openapi-ts/client.gen.ts +16 -0
  110. package/src/extensions/alchemy/openapi-ts/core/auth.gen.ts +41 -0
  111. package/src/extensions/alchemy/openapi-ts/core/bodySerializer.gen.ts +84 -0
  112. package/src/extensions/alchemy/openapi-ts/core/params.gen.ts +169 -0
  113. package/src/extensions/alchemy/openapi-ts/core/pathSerializer.gen.ts +171 -0
  114. package/src/extensions/alchemy/openapi-ts/core/queryKeySerializer.gen.ts +117 -0
  115. package/src/extensions/alchemy/openapi-ts/core/serverSentEvents.gen.ts +243 -0
  116. package/src/extensions/alchemy/openapi-ts/core/types.gen.ts +104 -0
  117. package/src/extensions/alchemy/openapi-ts/core/utils.gen.ts +140 -0
  118. package/src/extensions/alchemy/openapi-ts/index.ts +4 -0
  119. package/src/extensions/alchemy/openapi-ts/sdk.gen.ts +179 -0
  120. package/src/extensions/alchemy/openapi-ts/types.gen.ts +851 -0
  121. package/src/extensions/app/create-api.ts +13 -0
  122. package/src/extensions/app/index.ts +3 -0
  123. package/src/extensions/app/openapi-ts/client/client.gen.ts +288 -0
  124. package/src/extensions/app/openapi-ts/client/index.ts +25 -0
  125. package/src/extensions/app/openapi-ts/client/types.gen.ts +213 -0
  126. package/src/extensions/app/openapi-ts/client/utils.gen.ts +316 -0
  127. package/src/extensions/app/openapi-ts/client.gen.ts +16 -0
  128. package/src/extensions/app/openapi-ts/core/auth.gen.ts +41 -0
  129. package/src/extensions/app/openapi-ts/core/bodySerializer.gen.ts +84 -0
  130. package/src/extensions/app/openapi-ts/core/params.gen.ts +169 -0
  131. package/src/extensions/app/openapi-ts/core/pathSerializer.gen.ts +171 -0
  132. package/src/extensions/app/openapi-ts/core/queryKeySerializer.gen.ts +117 -0
  133. package/src/extensions/app/openapi-ts/core/serverSentEvents.gen.ts +243 -0
  134. package/src/extensions/app/openapi-ts/core/types.gen.ts +104 -0
  135. package/src/extensions/app/openapi-ts/core/utils.gen.ts +140 -0
  136. package/src/extensions/app/openapi-ts/index.ts +4 -0
  137. package/src/extensions/app/openapi-ts/sdk.gen.ts +539 -0
  138. package/src/extensions/app/openapi-ts/types.gen.ts +1702 -0
  139. package/src/extensions/billing/create-api.ts +13 -0
  140. package/src/extensions/billing/index.ts +3 -0
  141. package/src/extensions/billing/openapi-ts/client/client.gen.ts +288 -0
  142. package/src/extensions/billing/openapi-ts/client/index.ts +25 -0
  143. package/src/extensions/billing/openapi-ts/client/types.gen.ts +213 -0
  144. package/src/extensions/billing/openapi-ts/client/utils.gen.ts +316 -0
  145. package/src/extensions/billing/openapi-ts/client.gen.ts +16 -0
  146. package/src/extensions/billing/openapi-ts/core/auth.gen.ts +41 -0
  147. package/src/extensions/billing/openapi-ts/core/bodySerializer.gen.ts +84 -0
  148. package/src/extensions/billing/openapi-ts/core/params.gen.ts +169 -0
  149. package/src/extensions/billing/openapi-ts/core/pathSerializer.gen.ts +171 -0
  150. package/src/extensions/billing/openapi-ts/core/queryKeySerializer.gen.ts +117 -0
  151. package/src/extensions/billing/openapi-ts/core/serverSentEvents.gen.ts +243 -0
  152. package/src/extensions/billing/openapi-ts/core/types.gen.ts +104 -0
  153. package/src/extensions/billing/openapi-ts/core/utils.gen.ts +140 -0
  154. package/src/extensions/billing/openapi-ts/index.ts +4 -0
  155. package/src/extensions/billing/openapi-ts/sdk.gen.ts +155 -0
  156. package/src/extensions/billing/openapi-ts/types.gen.ts +508 -0
  157. package/src/extensions/bridge/create-api.ts +13 -0
  158. package/src/extensions/bridge/index.ts +3 -0
  159. package/src/extensions/bridge/openapi-ts/client/client.gen.ts +288 -0
  160. package/src/extensions/bridge/openapi-ts/client/index.ts +25 -0
  161. package/src/extensions/bridge/openapi-ts/client/types.gen.ts +213 -0
  162. package/src/extensions/bridge/openapi-ts/client/utils.gen.ts +316 -0
  163. package/src/extensions/bridge/openapi-ts/client.gen.ts +16 -0
  164. package/src/extensions/bridge/openapi-ts/core/auth.gen.ts +41 -0
  165. package/src/extensions/bridge/openapi-ts/core/bodySerializer.gen.ts +84 -0
  166. package/src/extensions/bridge/openapi-ts/core/params.gen.ts +169 -0
  167. package/src/extensions/bridge/openapi-ts/core/pathSerializer.gen.ts +171 -0
  168. package/src/extensions/bridge/openapi-ts/core/queryKeySerializer.gen.ts +117 -0
  169. package/src/extensions/bridge/openapi-ts/core/serverSentEvents.gen.ts +243 -0
  170. package/src/extensions/bridge/openapi-ts/core/types.gen.ts +104 -0
  171. package/src/extensions/bridge/openapi-ts/core/utils.gen.ts +140 -0
  172. package/src/extensions/bridge/openapi-ts/index.ts +4 -0
  173. package/src/extensions/bridge/openapi-ts/sdk.gen.ts +383 -0
  174. package/src/extensions/bridge/openapi-ts/types.gen.ts +1855 -0
  175. package/src/extensions/builder/create-api.ts +13 -0
  176. package/src/extensions/builder/index.ts +3 -0
  177. package/src/extensions/builder/openapi-ts/client/client.gen.ts +288 -0
  178. package/src/extensions/builder/openapi-ts/client/index.ts +25 -0
  179. package/src/extensions/builder/openapi-ts/client/types.gen.ts +213 -0
  180. package/src/extensions/builder/openapi-ts/client/utils.gen.ts +316 -0
  181. package/src/extensions/builder/openapi-ts/client.gen.ts +16 -0
  182. package/src/extensions/builder/openapi-ts/core/auth.gen.ts +41 -0
  183. package/src/extensions/builder/openapi-ts/core/bodySerializer.gen.ts +84 -0
  184. package/src/extensions/builder/openapi-ts/core/params.gen.ts +169 -0
  185. package/src/extensions/builder/openapi-ts/core/pathSerializer.gen.ts +171 -0
  186. package/src/extensions/builder/openapi-ts/core/queryKeySerializer.gen.ts +117 -0
  187. package/src/extensions/builder/openapi-ts/core/serverSentEvents.gen.ts +243 -0
  188. package/src/extensions/builder/openapi-ts/core/types.gen.ts +104 -0
  189. package/src/extensions/builder/openapi-ts/core/utils.gen.ts +140 -0
  190. package/src/extensions/builder/openapi-ts/index.ts +4 -0
  191. package/src/extensions/builder/openapi-ts/sdk.gen.ts +60 -0
  192. package/src/extensions/builder/openapi-ts/types.gen.ts +215 -0
  193. package/src/extensions/business/create-api.ts +13 -0
  194. package/src/extensions/business/index.ts +3 -0
  195. package/src/extensions/business/openapi-ts/client/client.gen.ts +288 -0
  196. package/src/extensions/business/openapi-ts/client/index.ts +25 -0
  197. package/src/extensions/business/openapi-ts/client/types.gen.ts +213 -0
  198. package/src/extensions/business/openapi-ts/client/utils.gen.ts +316 -0
  199. package/src/extensions/business/openapi-ts/client.gen.ts +16 -0
  200. package/src/extensions/business/openapi-ts/core/auth.gen.ts +41 -0
  201. package/src/extensions/business/openapi-ts/core/bodySerializer.gen.ts +84 -0
  202. package/src/extensions/business/openapi-ts/core/params.gen.ts +169 -0
  203. package/src/extensions/business/openapi-ts/core/pathSerializer.gen.ts +171 -0
  204. package/src/extensions/business/openapi-ts/core/queryKeySerializer.gen.ts +117 -0
  205. package/src/extensions/business/openapi-ts/core/serverSentEvents.gen.ts +243 -0
  206. package/src/extensions/business/openapi-ts/core/types.gen.ts +104 -0
  207. package/src/extensions/business/openapi-ts/core/utils.gen.ts +140 -0
  208. package/src/extensions/business/openapi-ts/index.ts +4 -0
  209. package/src/extensions/business/openapi-ts/sdk.gen.ts +903 -0
  210. package/src/extensions/business/openapi-ts/types.gen.ts +8718 -0
  211. package/src/extensions/conversion/create-api.ts +13 -0
  212. package/src/extensions/conversion/index.ts +3 -0
  213. package/src/extensions/conversion/openapi-ts/client/client.gen.ts +288 -0
  214. package/src/extensions/conversion/openapi-ts/client/index.ts +25 -0
  215. package/src/extensions/conversion/openapi-ts/client/types.gen.ts +213 -0
  216. package/src/extensions/conversion/openapi-ts/client/utils.gen.ts +316 -0
  217. package/src/extensions/conversion/openapi-ts/client.gen.ts +16 -0
  218. package/src/extensions/conversion/openapi-ts/core/auth.gen.ts +41 -0
  219. package/src/extensions/conversion/openapi-ts/core/bodySerializer.gen.ts +84 -0
  220. package/src/extensions/conversion/openapi-ts/core/params.gen.ts +169 -0
  221. package/src/extensions/conversion/openapi-ts/core/pathSerializer.gen.ts +171 -0
  222. package/src/extensions/conversion/openapi-ts/core/queryKeySerializer.gen.ts +117 -0
  223. package/src/extensions/conversion/openapi-ts/core/serverSentEvents.gen.ts +243 -0
  224. package/src/extensions/conversion/openapi-ts/core/types.gen.ts +104 -0
  225. package/src/extensions/conversion/openapi-ts/core/utils.gen.ts +140 -0
  226. package/src/extensions/conversion/openapi-ts/index.ts +4 -0
  227. package/src/extensions/conversion/openapi-ts/sdk.gen.ts +684 -0
  228. package/src/extensions/conversion/openapi-ts/types.gen.ts +2467 -0
  229. package/src/extensions/mass-send/create-api.ts +13 -0
  230. package/src/extensions/mass-send/index.ts +3 -0
  231. package/src/extensions/mass-send/openapi-ts/client/client.gen.ts +288 -0
  232. package/src/extensions/mass-send/openapi-ts/client/index.ts +25 -0
  233. package/src/extensions/mass-send/openapi-ts/client/types.gen.ts +213 -0
  234. package/src/extensions/mass-send/openapi-ts/client/utils.gen.ts +316 -0
  235. package/src/extensions/mass-send/openapi-ts/client.gen.ts +16 -0
  236. package/src/extensions/mass-send/openapi-ts/core/auth.gen.ts +41 -0
  237. package/src/extensions/mass-send/openapi-ts/core/bodySerializer.gen.ts +84 -0
  238. package/src/extensions/mass-send/openapi-ts/core/params.gen.ts +169 -0
  239. package/src/extensions/mass-send/openapi-ts/core/pathSerializer.gen.ts +171 -0
  240. package/src/extensions/mass-send/openapi-ts/core/queryKeySerializer.gen.ts +117 -0
  241. package/src/extensions/mass-send/openapi-ts/core/serverSentEvents.gen.ts +243 -0
  242. package/src/extensions/mass-send/openapi-ts/core/types.gen.ts +104 -0
  243. package/src/extensions/mass-send/openapi-ts/core/utils.gen.ts +140 -0
  244. package/src/extensions/mass-send/openapi-ts/index.ts +4 -0
  245. package/src/extensions/mass-send/openapi-ts/sdk.gen.ts +270 -0
  246. package/src/extensions/mass-send/openapi-ts/types.gen.ts +988 -0
  247. package/src/extensions/notifications/create-api.ts +13 -0
  248. package/src/extensions/notifications/index.ts +3 -0
  249. package/src/extensions/notifications/openapi-ts/client/client.gen.ts +288 -0
  250. package/src/extensions/notifications/openapi-ts/client/index.ts +25 -0
  251. package/src/extensions/notifications/openapi-ts/client/types.gen.ts +213 -0
  252. package/src/extensions/notifications/openapi-ts/client/utils.gen.ts +316 -0
  253. package/src/extensions/notifications/openapi-ts/client.gen.ts +16 -0
  254. package/src/extensions/notifications/openapi-ts/core/auth.gen.ts +41 -0
  255. package/src/extensions/notifications/openapi-ts/core/bodySerializer.gen.ts +84 -0
  256. package/src/extensions/notifications/openapi-ts/core/params.gen.ts +169 -0
  257. package/src/extensions/notifications/openapi-ts/core/pathSerializer.gen.ts +171 -0
  258. package/src/extensions/notifications/openapi-ts/core/queryKeySerializer.gen.ts +117 -0
  259. package/src/extensions/notifications/openapi-ts/core/serverSentEvents.gen.ts +243 -0
  260. package/src/extensions/notifications/openapi-ts/core/types.gen.ts +104 -0
  261. package/src/extensions/notifications/openapi-ts/core/utils.gen.ts +140 -0
  262. package/src/extensions/notifications/openapi-ts/index.ts +4 -0
  263. package/src/extensions/notifications/openapi-ts/sdk.gen.ts +450 -0
  264. package/src/extensions/notifications/openapi-ts/types.gen.ts +1732 -0
  265. package/src/extensions/payment-requests/create-api.ts +13 -0
  266. package/src/extensions/payment-requests/index.ts +3 -0
  267. package/src/extensions/payment-requests/openapi-ts/client/client.gen.ts +288 -0
  268. package/src/extensions/payment-requests/openapi-ts/client/index.ts +25 -0
  269. package/src/extensions/payment-requests/openapi-ts/client/types.gen.ts +213 -0
  270. package/src/extensions/payment-requests/openapi-ts/client/utils.gen.ts +316 -0
  271. package/src/extensions/payment-requests/openapi-ts/client.gen.ts +16 -0
  272. package/src/extensions/payment-requests/openapi-ts/core/auth.gen.ts +41 -0
  273. package/src/extensions/payment-requests/openapi-ts/core/bodySerializer.gen.ts +84 -0
  274. package/src/extensions/payment-requests/openapi-ts/core/params.gen.ts +169 -0
  275. package/src/extensions/payment-requests/openapi-ts/core/pathSerializer.gen.ts +171 -0
  276. package/src/extensions/payment-requests/openapi-ts/core/queryKeySerializer.gen.ts +117 -0
  277. package/src/extensions/payment-requests/openapi-ts/core/serverSentEvents.gen.ts +243 -0
  278. package/src/extensions/payment-requests/openapi-ts/core/types.gen.ts +104 -0
  279. package/src/extensions/payment-requests/openapi-ts/core/utils.gen.ts +140 -0
  280. package/src/extensions/payment-requests/openapi-ts/index.ts +4 -0
  281. package/src/extensions/payment-requests/openapi-ts/sdk.gen.ts +845 -0
  282. package/src/extensions/payment-requests/openapi-ts/types.gen.ts +3415 -0
  283. package/src/extensions/products/create-api.ts +13 -0
  284. package/src/extensions/products/index.ts +3 -0
  285. package/src/extensions/products/openapi-ts/client/client.gen.ts +288 -0
  286. package/src/extensions/products/openapi-ts/client/index.ts +25 -0
  287. package/src/extensions/products/openapi-ts/client/types.gen.ts +213 -0
  288. package/src/extensions/products/openapi-ts/client/utils.gen.ts +316 -0
  289. package/src/extensions/products/openapi-ts/client.gen.ts +16 -0
  290. package/src/extensions/products/openapi-ts/core/auth.gen.ts +41 -0
  291. package/src/extensions/products/openapi-ts/core/bodySerializer.gen.ts +84 -0
  292. package/src/extensions/products/openapi-ts/core/params.gen.ts +169 -0
  293. package/src/extensions/products/openapi-ts/core/pathSerializer.gen.ts +171 -0
  294. package/src/extensions/products/openapi-ts/core/queryKeySerializer.gen.ts +117 -0
  295. package/src/extensions/products/openapi-ts/core/serverSentEvents.gen.ts +243 -0
  296. package/src/extensions/products/openapi-ts/core/types.gen.ts +104 -0
  297. package/src/extensions/products/openapi-ts/core/utils.gen.ts +140 -0
  298. package/src/extensions/products/openapi-ts/index.ts +4 -0
  299. package/src/extensions/products/openapi-ts/sdk.gen.ts +2619 -0
  300. package/src/extensions/products/openapi-ts/types.gen.ts +9717 -0
  301. package/src/extensions/rain/create-api.ts +13 -0
  302. package/src/extensions/rain/index.ts +3 -0
  303. package/src/extensions/rain/openapi-ts/client/client.gen.ts +288 -0
  304. package/src/extensions/rain/openapi-ts/client/index.ts +25 -0
  305. package/src/extensions/rain/openapi-ts/client/types.gen.ts +213 -0
  306. package/src/extensions/rain/openapi-ts/client/utils.gen.ts +316 -0
  307. package/src/extensions/rain/openapi-ts/client.gen.ts +16 -0
  308. package/src/extensions/rain/openapi-ts/core/auth.gen.ts +41 -0
  309. package/src/extensions/rain/openapi-ts/core/bodySerializer.gen.ts +84 -0
  310. package/src/extensions/rain/openapi-ts/core/params.gen.ts +169 -0
  311. package/src/extensions/rain/openapi-ts/core/pathSerializer.gen.ts +171 -0
  312. package/src/extensions/rain/openapi-ts/core/queryKeySerializer.gen.ts +117 -0
  313. package/src/extensions/rain/openapi-ts/core/serverSentEvents.gen.ts +243 -0
  314. package/src/extensions/rain/openapi-ts/core/types.gen.ts +104 -0
  315. package/src/extensions/rain/openapi-ts/core/utils.gen.ts +140 -0
  316. package/src/extensions/rain/openapi-ts/index.ts +4 -0
  317. package/src/extensions/rain/openapi-ts/sdk.gen.ts +227 -0
  318. package/src/extensions/rain/openapi-ts/types.gen.ts +1660 -0
  319. package/src/extensions/rewards/create-api.ts +13 -0
  320. package/src/extensions/rewards/index.ts +3 -0
  321. package/src/extensions/rewards/openapi-ts/client/client.gen.ts +288 -0
  322. package/src/extensions/rewards/openapi-ts/client/index.ts +25 -0
  323. package/src/extensions/rewards/openapi-ts/client/types.gen.ts +213 -0
  324. package/src/extensions/rewards/openapi-ts/client/utils.gen.ts +316 -0
  325. package/src/extensions/rewards/openapi-ts/client.gen.ts +16 -0
  326. package/src/extensions/rewards/openapi-ts/core/auth.gen.ts +41 -0
  327. package/src/extensions/rewards/openapi-ts/core/bodySerializer.gen.ts +84 -0
  328. package/src/extensions/rewards/openapi-ts/core/params.gen.ts +169 -0
  329. package/src/extensions/rewards/openapi-ts/core/pathSerializer.gen.ts +171 -0
  330. package/src/extensions/rewards/openapi-ts/core/queryKeySerializer.gen.ts +117 -0
  331. package/src/extensions/rewards/openapi-ts/core/serverSentEvents.gen.ts +243 -0
  332. package/src/extensions/rewards/openapi-ts/core/types.gen.ts +104 -0
  333. package/src/extensions/rewards/openapi-ts/core/utils.gen.ts +140 -0
  334. package/src/extensions/rewards/openapi-ts/index.ts +4 -0
  335. package/src/extensions/rewards/openapi-ts/sdk.gen.ts +345 -0
  336. package/src/extensions/rewards/openapi-ts/types.gen.ts +1718 -0
  337. package/src/extensions/stellar/create-api.ts +13 -0
  338. package/src/extensions/stellar/index.ts +3 -0
  339. package/src/extensions/stellar/openapi-ts/client/client.gen.ts +288 -0
  340. package/src/extensions/stellar/openapi-ts/client/index.ts +25 -0
  341. package/src/extensions/stellar/openapi-ts/client/types.gen.ts +213 -0
  342. package/src/extensions/stellar/openapi-ts/client/utils.gen.ts +316 -0
  343. package/src/extensions/stellar/openapi-ts/client.gen.ts +16 -0
  344. package/src/extensions/stellar/openapi-ts/core/auth.gen.ts +41 -0
  345. package/src/extensions/stellar/openapi-ts/core/bodySerializer.gen.ts +84 -0
  346. package/src/extensions/stellar/openapi-ts/core/params.gen.ts +169 -0
  347. package/src/extensions/stellar/openapi-ts/core/pathSerializer.gen.ts +171 -0
  348. package/src/extensions/stellar/openapi-ts/core/queryKeySerializer.gen.ts +117 -0
  349. package/src/extensions/stellar/openapi-ts/core/serverSentEvents.gen.ts +243 -0
  350. package/src/extensions/stellar/openapi-ts/core/types.gen.ts +104 -0
  351. package/src/extensions/stellar/openapi-ts/core/utils.gen.ts +140 -0
  352. package/src/extensions/stellar/openapi-ts/index.ts +4 -0
  353. package/src/extensions/stellar/openapi-ts/sdk.gen.ts +1049 -0
  354. package/src/extensions/stellar/openapi-ts/types.gen.ts +3543 -0
  355. package/src/extensions/stellar-testnet/create-api.ts +13 -0
  356. package/src/extensions/stellar-testnet/index.ts +3 -0
  357. package/src/extensions/stellar-testnet/openapi-ts/client/client.gen.ts +288 -0
  358. package/src/extensions/stellar-testnet/openapi-ts/client/index.ts +25 -0
  359. package/src/extensions/stellar-testnet/openapi-ts/client/types.gen.ts +213 -0
  360. package/src/extensions/stellar-testnet/openapi-ts/client/utils.gen.ts +316 -0
  361. package/src/extensions/stellar-testnet/openapi-ts/client.gen.ts +16 -0
  362. package/src/extensions/stellar-testnet/openapi-ts/core/auth.gen.ts +41 -0
  363. package/src/extensions/stellar-testnet/openapi-ts/core/bodySerializer.gen.ts +84 -0
  364. package/src/extensions/stellar-testnet/openapi-ts/core/params.gen.ts +169 -0
  365. package/src/extensions/stellar-testnet/openapi-ts/core/pathSerializer.gen.ts +171 -0
  366. package/src/extensions/stellar-testnet/openapi-ts/core/queryKeySerializer.gen.ts +117 -0
  367. package/src/extensions/stellar-testnet/openapi-ts/core/serverSentEvents.gen.ts +243 -0
  368. package/src/extensions/stellar-testnet/openapi-ts/core/types.gen.ts +104 -0
  369. package/src/extensions/stellar-testnet/openapi-ts/core/utils.gen.ts +140 -0
  370. package/src/extensions/stellar-testnet/openapi-ts/index.ts +4 -0
  371. package/src/extensions/stellar-testnet/openapi-ts/sdk.gen.ts +1049 -0
  372. package/src/extensions/stellar-testnet/openapi-ts/types.gen.ts +3543 -0
  373. package/src/platform/admin/create-api.ts +11 -0
  374. package/src/platform/admin/index.ts +3 -42
  375. package/src/platform/admin/openapi-ts/client/client.gen.ts +288 -0
  376. package/src/platform/admin/openapi-ts/client/index.ts +25 -0
  377. package/src/platform/admin/openapi-ts/client/types.gen.ts +213 -0
  378. package/src/platform/admin/openapi-ts/client/utils.gen.ts +316 -0
  379. package/src/platform/admin/openapi-ts/client.gen.ts +16 -0
  380. package/src/platform/admin/openapi-ts/core/auth.gen.ts +41 -0
  381. package/src/platform/admin/openapi-ts/core/bodySerializer.gen.ts +84 -0
  382. package/src/platform/admin/openapi-ts/core/params.gen.ts +169 -0
  383. package/src/platform/admin/openapi-ts/core/pathSerializer.gen.ts +171 -0
  384. package/src/platform/admin/openapi-ts/core/queryKeySerializer.gen.ts +117 -0
  385. package/src/platform/admin/openapi-ts/core/serverSentEvents.gen.ts +243 -0
  386. package/src/platform/admin/openapi-ts/core/types.gen.ts +104 -0
  387. package/src/platform/admin/openapi-ts/core/utils.gen.ts +140 -0
  388. package/src/platform/admin/openapi-ts/index.ts +4 -0
  389. package/src/platform/admin/openapi-ts/sdk.gen.ts +3975 -0
  390. package/src/platform/admin/openapi-ts/types.gen.ts +31193 -0
  391. package/src/platform/user/create-api.ts +11 -0
  392. package/src/platform/user/index.ts +3 -42
  393. package/src/platform/user/openapi-ts/client/client.gen.ts +288 -0
  394. package/src/platform/user/openapi-ts/client/index.ts +25 -0
  395. package/src/platform/user/openapi-ts/client/types.gen.ts +213 -0
  396. package/src/platform/user/openapi-ts/client/utils.gen.ts +316 -0
  397. package/src/platform/user/openapi-ts/client.gen.ts +16 -0
  398. package/src/platform/user/openapi-ts/core/auth.gen.ts +41 -0
  399. package/src/platform/user/openapi-ts/core/bodySerializer.gen.ts +84 -0
  400. package/src/platform/user/openapi-ts/core/params.gen.ts +169 -0
  401. package/src/platform/user/openapi-ts/core/pathSerializer.gen.ts +171 -0
  402. package/src/platform/user/openapi-ts/core/queryKeySerializer.gen.ts +117 -0
  403. package/src/platform/user/openapi-ts/core/serverSentEvents.gen.ts +243 -0
  404. package/src/platform/user/openapi-ts/core/types.gen.ts +104 -0
  405. package/src/platform/user/openapi-ts/core/utils.gen.ts +140 -0
  406. package/src/platform/user/openapi-ts/index.ts +4 -0
  407. package/src/platform/user/openapi-ts/sdk.gen.ts +2090 -0
  408. package/src/platform/user/openapi-ts/types.gen.ts +19540 -0
  409. package/src/shared/api-utils.ts +22 -0
  410. package/src/shared/bind-sdk.ts +48 -0
  411. package/src/shared/create-api-client.ts +54 -0
  412. package/src/extensions/app/http-client.ts +0 -1
  413. package/src/extensions/app/rehive-app-api.ts +0 -1827
  414. package/src/extensions/bridge/rehive-bridge-api.ts +0 -1436
  415. package/src/extensions/business/rehive-business-api.ts +0 -9480
  416. package/src/extensions/conversion/rehive-conversion-api.ts +0 -3054
  417. package/src/extensions/mass-send/rehive-mass-send-api.ts +0 -1061
  418. package/src/extensions/notifications/rehive-notifications-api.ts +0 -1964
  419. package/src/extensions/payment-requests/rehive-payment-requests-api.ts +0 -4026
  420. package/src/extensions/products/rehive-products-api.ts +0 -13107
  421. package/src/extensions/rewards/rehive-rewards-api.ts +0 -2139
  422. package/src/extensions/stellar/rehive-stellar-api.ts +0 -4219
  423. package/src/extensions/stellar-testnet/rehive-stellar-testnet-api.ts +0 -4219
  424. package/src/platform/admin/rehive-platform-admin-api.ts +0 -35075
  425. package/src/platform/user/rehive-platform-user-api.ts +0 -21554
@@ -1,3054 +0,0 @@
1
- /* eslint-disable */
2
- /* tslint:disable */
3
- // @ts-nocheck
4
- /*
5
- * ---------------------------------------------------------------
6
- * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
7
- * ## ##
8
- * ## AUTHOR: acacode ##
9
- * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
10
- * ---------------------------------------------------------------
11
- */
12
-
13
- /** This serializer can be used if only a `status` is required in the response. */
14
- export interface ActionResponse {
15
- /** @default "sucess" */
16
- status?: string;
17
- }
18
-
19
- export interface Activate {
20
- token: string;
21
- identifier: string;
22
- name: string;
23
- /** @format uuid */
24
- secret: string;
25
- }
26
-
27
- /**
28
- * A ModelSerializer that takes additional arguments for
29
- * "fields", "omit" and "expand" in order to
30
- * control which fields are displayed, and whether to replace simple
31
- * values with complex, nested serializations
32
- */
33
- export interface AdminCompany {
34
- id: string;
35
- /** @format uuid */
36
- secret: string;
37
- name: string;
38
- display_currency?: string;
39
- operational_account?: string | null;
40
- }
41
-
42
- export interface AdminCompanyResponse {
43
- /** @example "success" */
44
- status?: string;
45
- /**
46
- * A ModelSerializer that takes additional arguments for
47
- * "fields", "omit" and "expand" in order to
48
- * control which fields are displayed, and whether to replace simple
49
- * values with complex, nested serializations
50
- */
51
- data?: AdminCompany;
52
- }
53
-
54
- /**
55
- * A ModelSerializer that takes additional arguments for
56
- * "fields", "omit" and "expand" in order to
57
- * control which fields are displayed, and whether to replace simple
58
- * values with complex, nested serializations
59
- */
60
- export interface AdminConversion {
61
- id: string;
62
- user: string;
63
- key: string;
64
- from_amount: number;
65
- from_fee: number;
66
- from_total_amount: number;
67
- to_amount: number;
68
- to_fee: number;
69
- to_total_amount: number;
70
- /**
71
- * @format decimal
72
- * @pattern ^-?\d{0,12}(?:\.\d{0,18})?$
73
- */
74
- rate?: string;
75
- debit_account: string | null;
76
- credit_account: string | null;
77
- operational_account: string;
78
- /**
79
- * * `quoted` - Quoted
80
- * * `pending` - Pending
81
- * * `complete` - Complete
82
- * * `failed` - Failed
83
- */
84
- status?: "quoted" | "pending" | "complete" | "failed";
85
- collection: string | null;
86
- txns: string[];
87
- metadata: Record<string, any>;
88
- expires: number;
89
- created: number;
90
- updated: number;
91
- }
92
-
93
- /**
94
- * A ModelSerializer that takes additional arguments for
95
- * "fields", "omit" and "expand" in order to
96
- * control which fields are displayed, and whether to replace simple
97
- * values with complex, nested serializations
98
- */
99
- export interface AdminConversionPair {
100
- id: string;
101
- key: string;
102
- path?: string | null;
103
- /**
104
- * @format decimal
105
- * @pattern ^-?\d{0,12}(?:\.\d{0,18})?$
106
- */
107
- rate?: string | null;
108
- operational_account?: string | null;
109
- /** @min 1 */
110
- quote_duration?: number;
111
- enabled?: boolean;
112
- created: number;
113
- updated: number;
114
- /**
115
- * A ModelSerializer that takes additional arguments for
116
- * "fields", "omit" and "expand" in order to
117
- * control which fields are displayed, and whether to replace simple
118
- * values with complex, nested serializations
119
- */
120
- integration?: AdminIntegration;
121
- /**
122
- * * `operational` - Operational
123
- * * `non_operational` - Non Operational
124
- */
125
- transaction_type?: "operational" | "non_operational";
126
- }
127
-
128
- export interface AdminConversionPairResponse {
129
- /** @example "success" */
130
- status?: string;
131
- /**
132
- * A ModelSerializer that takes additional arguments for
133
- * "fields", "omit" and "expand" in order to
134
- * control which fields are displayed, and whether to replace simple
135
- * values with complex, nested serializations
136
- */
137
- data?: AdminConversionPair;
138
- }
139
-
140
- export interface AdminConversionResponse {
141
- /** @example "success" */
142
- status?: string;
143
- /**
144
- * A ModelSerializer that takes additional arguments for
145
- * "fields", "omit" and "expand" in order to
146
- * control which fields are displayed, and whether to replace simple
147
- * values with complex, nested serializations
148
- */
149
- data?: AdminConversion;
150
- }
151
-
152
- /**
153
- * A ModelSerializer that takes additional arguments for
154
- * "fields", "omit" and "expand" in order to
155
- * control which fields are displayed, and whether to replace simple
156
- * values with complex, nested serializations
157
- */
158
- export interface AdminCreateConversion {
159
- id: string;
160
- user: string;
161
- key: string;
162
- from_amount?: number | null;
163
- from_fee: number;
164
- from_total_amount: number;
165
- to_amount?: number | null;
166
- to_fee: number;
167
- to_total_amount: number;
168
- /**
169
- * @format decimal
170
- * @pattern ^-?\d{0,12}(?:\.\d{0,18})?$
171
- */
172
- rate?: string | null;
173
- /** @maxLength 64 */
174
- debit_account?: string | null;
175
- /** @maxLength 64 */
176
- credit_account?: string | null;
177
- operational_account: string;
178
- /**
179
- * * `quoted` - Quoted
180
- * * `pending` - Pending
181
- * * `complete` - Complete
182
- * * `failed` - Failed
183
- */
184
- status: "quoted" | "pending" | "complete" | "failed";
185
- collection: string | null;
186
- txns: string[];
187
- metadata?: Record<string, any>;
188
- quote_duration?: number | null;
189
- expires: number;
190
- created: number;
191
- updated: number;
192
- }
193
-
194
- /**
195
- * A ModelSerializer that takes additional arguments for
196
- * "fields", "omit" and "expand" in order to
197
- * control which fields are displayed, and whether to replace simple
198
- * values with complex, nested serializations
199
- */
200
- export interface AdminCreateConversionPair {
201
- id: string;
202
- key: string;
203
- path?: string | null;
204
- /**
205
- * @format decimal
206
- * @pattern ^-?\d{0,12}(?:\.\d{0,18})?$
207
- */
208
- rate?: string | null;
209
- operational_account?: string | null;
210
- /** @min 1 */
211
- quote_duration?: number;
212
- enabled?: boolean;
213
- created: number;
214
- updated: number;
215
- integration?: string | null;
216
- /**
217
- * * `operational` - Operational
218
- * * `non_operational` - Non Operational
219
- */
220
- transaction_type?: "operational" | "non_operational";
221
- }
222
-
223
- /**
224
- * A ModelSerializer that takes additional arguments for
225
- * "fields", "omit" and "expand" in order to
226
- * control which fields are displayed, and whether to replace simple
227
- * values with complex, nested serializations
228
- */
229
- export interface AdminCreateRatePair {
230
- id: string;
231
- key: string;
232
- path?: string | null;
233
- /**
234
- * @format decimal
235
- * @pattern ^-?\d{0,12}(?:\.\d{0,18})?$
236
- */
237
- rate?: string | null;
238
- created: number;
239
- updated: number;
240
- }
241
-
242
- /**
243
- * A ModelSerializer that takes additional arguments for
244
- * "fields", "omit" and "expand" in order to
245
- * control which fields are displayed, and whether to replace simple
246
- * values with complex, nested serializations
247
- */
248
- export interface AdminCurrency {
249
- /** @maxLength 30 */
250
- code: string;
251
- /** @maxLength 30 */
252
- display_code?: string | null;
253
- /** @maxLength 255 */
254
- description?: string | null;
255
- /** @maxLength 30 */
256
- symbol?: string | null;
257
- /** @maxLength 30 */
258
- unit?: string | null;
259
- /**
260
- * @min -2147483648
261
- * @max 2147483647
262
- */
263
- divisibility?: number;
264
- archived?: boolean;
265
- }
266
-
267
- export interface AdminCurrencyResponse {
268
- /** @example "success" */
269
- status?: string;
270
- /**
271
- * A ModelSerializer that takes additional arguments for
272
- * "fields", "omit" and "expand" in order to
273
- * control which fields are displayed, and whether to replace simple
274
- * values with complex, nested serializations
275
- */
276
- data?: AdminCurrency;
277
- }
278
-
279
- /**
280
- * A ModelSerializer that takes additional arguments for
281
- * "fields", "omit" and "expand" in order to
282
- * control which fields are displayed, and whether to replace simple
283
- * values with complex, nested serializations
284
- */
285
- export interface AdminIntegration {
286
- id: string;
287
- /** @maxLength 50 */
288
- slug: string;
289
- /** @maxLength 50 */
290
- name: string;
291
- /** @maxLength 255 */
292
- description?: string | null;
293
- created: number;
294
- updated: number;
295
- events: ("conversion.quote" | "conversion.execute")[];
296
- }
297
-
298
- export interface AdminIntegrationResponse {
299
- /** @example "success" */
300
- status?: string;
301
- /**
302
- * A ModelSerializer that takes additional arguments for
303
- * "fields", "omit" and "expand" in order to
304
- * control which fields are displayed, and whether to replace simple
305
- * values with complex, nested serializations
306
- */
307
- data?: AdminIntegration;
308
- }
309
-
310
- /**
311
- * A ModelSerializer that takes additional arguments for
312
- * "fields", "omit" and "expand" in order to
313
- * control which fields are displayed, and whether to replace simple
314
- * values with complex, nested serializations
315
- */
316
- export interface AdminIntegrationWebhook {
317
- id: string;
318
- /** @format uri */
319
- url: string;
320
- /**
321
- * * `conversion.quote` - conversion.quote
322
- * * `conversion.execute` - conversion.execute
323
- */
324
- event: "conversion.quote" | "conversion.execute";
325
- /** @maxLength 250 */
326
- secret?: string;
327
- created: number;
328
- updated: number;
329
- }
330
-
331
- export interface AdminIntegrationWebhookResponse {
332
- /** @example "success" */
333
- status?: string;
334
- /**
335
- * A ModelSerializer that takes additional arguments for
336
- * "fields", "omit" and "expand" in order to
337
- * control which fields are displayed, and whether to replace simple
338
- * values with complex, nested serializations
339
- */
340
- data?: AdminIntegrationWebhook;
341
- }
342
-
343
- /**
344
- * A ModelSerializer that takes additional arguments for
345
- * "fields", "omit" and "expand" in order to
346
- * control which fields are displayed, and whether to replace simple
347
- * values with complex, nested serializations
348
- */
349
- export interface AdminRatePair {
350
- id: string;
351
- key: string;
352
- path?: string | null;
353
- /**
354
- * @format decimal
355
- * @pattern ^-?\d{0,12}(?:\.\d{0,18})?$
356
- */
357
- rate?: string | null;
358
- created: number;
359
- updated: number;
360
- }
361
-
362
- export interface AdminRatePairResponse {
363
- /** @example "success" */
364
- status?: string;
365
- /**
366
- * A ModelSerializer that takes additional arguments for
367
- * "fields", "omit" and "expand" in order to
368
- * control which fields are displayed, and whether to replace simple
369
- * values with complex, nested serializations
370
- */
371
- data?: AdminRatePair;
372
- }
373
-
374
- /**
375
- * A ModelSerializer that takes additional arguments for
376
- * "fields", "omit" and "expand" in order to
377
- * control which fields are displayed, and whether to replace simple
378
- * values with complex, nested serializations
379
- */
380
- export interface AdminUpdateConversion {
381
- id: string;
382
- user: string;
383
- key: string;
384
- from_amount: number;
385
- from_fee: number;
386
- from_total_amount: number;
387
- to_amount: number;
388
- to_fee: number;
389
- to_total_amount: number;
390
- /**
391
- * @format decimal
392
- * @pattern ^-?\d{0,12}(?:\.\d{0,18})?$
393
- */
394
- rate?: string;
395
- debit_account: string | null;
396
- credit_account: string | null;
397
- operational_account: string;
398
- /**
399
- * * `quoted` - Quoted
400
- * * `pending` - Pending
401
- * * `complete` - Complete
402
- * * `failed` - Failed
403
- */
404
- status: "quoted" | "pending" | "complete" | "failed";
405
- collection: string | null;
406
- txns: string[];
407
- metadata: Record<string, any>;
408
- expires: number;
409
- created: number;
410
- updated: number;
411
- }
412
-
413
- /**
414
- * A ModelSerializer that takes additional arguments for
415
- * "fields", "omit" and "expand" in order to
416
- * control which fields are displayed, and whether to replace simple
417
- * values with complex, nested serializations
418
- */
419
- export interface AdminUser {
420
- id: string;
421
- /** @maxLength 12 */
422
- display_currency?: string | null;
423
- }
424
-
425
- export interface AdminUserResponse {
426
- /** @example "success" */
427
- status?: string;
428
- /**
429
- * A ModelSerializer that takes additional arguments for
430
- * "fields", "omit" and "expand" in order to
431
- * control which fields are displayed, and whether to replace simple
432
- * values with complex, nested serializations
433
- */
434
- data?: AdminUser;
435
- }
436
-
437
- export interface Deactivate {
438
- token: string;
439
- /** @default false */
440
- purge?: boolean;
441
- }
442
-
443
- /**
444
- * A ModelSerializer that takes additional arguments for
445
- * "fields", "omit" and "expand" in order to
446
- * control which fields are displayed, and whether to replace simple
447
- * values with complex, nested serializations
448
- */
449
- export interface NewSnapshotRate {
450
- key: string;
451
- date: number;
452
- /**
453
- * A ModelSerializer that takes additional arguments for
454
- * "fields", "omit" and "expand" in order to
455
- * control which fields are displayed, and whether to replace simple
456
- * values with complex, nested serializations
457
- */
458
- rate: Rate;
459
- }
460
-
461
- export type NewSnapshotRateList = NewSnapshotRate[];
462
-
463
- export interface NewSnapshotRateListResponse {
464
- /** @example "success" */
465
- status?: string;
466
- data?: NewSnapshotRateList;
467
- }
468
-
469
- export interface PaginatedAdminConversionList {
470
- /** @example 123 */
471
- count?: number;
472
- /**
473
- * @format uri
474
- * @example "http://api.example.org/accounts/?page=4"
475
- */
476
- next?: string | null;
477
- /**
478
- * @format uri
479
- * @example "http://api.example.org/accounts/?page=2"
480
- */
481
- previous?: string | null;
482
- results?: AdminConversion[];
483
- }
484
-
485
- export interface PaginatedAdminConversionListResponse {
486
- /** @example "success" */
487
- status?: string;
488
- data?: PaginatedAdminConversionList;
489
- }
490
-
491
- export interface PaginatedAdminConversionPairList {
492
- /** @example 123 */
493
- count?: number;
494
- /**
495
- * @format uri
496
- * @example "http://api.example.org/accounts/?page=4"
497
- */
498
- next?: string | null;
499
- /**
500
- * @format uri
501
- * @example "http://api.example.org/accounts/?page=2"
502
- */
503
- previous?: string | null;
504
- results?: AdminConversionPair[];
505
- }
506
-
507
- export interface PaginatedAdminConversionPairListResponse {
508
- /** @example "success" */
509
- status?: string;
510
- data?: PaginatedAdminConversionPairList;
511
- }
512
-
513
- export interface PaginatedAdminCurrencyList {
514
- /** @example 123 */
515
- count?: number;
516
- /**
517
- * @format uri
518
- * @example "http://api.example.org/accounts/?page=4"
519
- */
520
- next?: string | null;
521
- /**
522
- * @format uri
523
- * @example "http://api.example.org/accounts/?page=2"
524
- */
525
- previous?: string | null;
526
- results?: AdminCurrency[];
527
- }
528
-
529
- export interface PaginatedAdminCurrencyListResponse {
530
- /** @example "success" */
531
- status?: string;
532
- data?: PaginatedAdminCurrencyList;
533
- }
534
-
535
- export interface PaginatedAdminIntegrationList {
536
- /** @example 123 */
537
- count?: number;
538
- /**
539
- * @format uri
540
- * @example "http://api.example.org/accounts/?page=4"
541
- */
542
- next?: string | null;
543
- /**
544
- * @format uri
545
- * @example "http://api.example.org/accounts/?page=2"
546
- */
547
- previous?: string | null;
548
- results?: AdminIntegration[];
549
- }
550
-
551
- export interface PaginatedAdminIntegrationListResponse {
552
- /** @example "success" */
553
- status?: string;
554
- data?: PaginatedAdminIntegrationList;
555
- }
556
-
557
- export interface PaginatedAdminIntegrationWebhookList {
558
- /** @example 123 */
559
- count?: number;
560
- /**
561
- * @format uri
562
- * @example "http://api.example.org/accounts/?page=4"
563
- */
564
- next?: string | null;
565
- /**
566
- * @format uri
567
- * @example "http://api.example.org/accounts/?page=2"
568
- */
569
- previous?: string | null;
570
- results?: AdminIntegrationWebhook[];
571
- }
572
-
573
- export interface PaginatedAdminIntegrationWebhookListResponse {
574
- /** @example "success" */
575
- status?: string;
576
- data?: PaginatedAdminIntegrationWebhookList;
577
- }
578
-
579
- export interface PaginatedAdminRatePairList {
580
- /** @example 123 */
581
- count?: number;
582
- /**
583
- * @format uri
584
- * @example "http://api.example.org/accounts/?page=4"
585
- */
586
- next?: string | null;
587
- /**
588
- * @format uri
589
- * @example "http://api.example.org/accounts/?page=2"
590
- */
591
- previous?: string | null;
592
- results?: AdminRatePair[];
593
- }
594
-
595
- export interface PaginatedAdminRatePairListResponse {
596
- /** @example "success" */
597
- status?: string;
598
- data?: PaginatedAdminRatePairList;
599
- }
600
-
601
- export interface PaginatedAdminUserList {
602
- /** @example 123 */
603
- count?: number;
604
- /**
605
- * @format uri
606
- * @example "http://api.example.org/accounts/?page=4"
607
- */
608
- next?: string | null;
609
- /**
610
- * @format uri
611
- * @example "http://api.example.org/accounts/?page=2"
612
- */
613
- previous?: string | null;
614
- results?: AdminUser[];
615
- }
616
-
617
- export interface PaginatedAdminUserListResponse {
618
- /** @example "success" */
619
- status?: string;
620
- data?: PaginatedAdminUserList;
621
- }
622
-
623
- export interface PaginatedUserConversionList {
624
- /** @example 123 */
625
- count?: number;
626
- /**
627
- * @format uri
628
- * @example "http://api.example.org/accounts/?page=4"
629
- */
630
- next?: string | null;
631
- /**
632
- * @format uri
633
- * @example "http://api.example.org/accounts/?page=2"
634
- */
635
- previous?: string | null;
636
- results?: UserConversion[];
637
- }
638
-
639
- export interface PaginatedUserConversionListResponse {
640
- /** @example "success" */
641
- status?: string;
642
- data?: PaginatedUserConversionList;
643
- }
644
-
645
- export interface PaginatedUserConversionPairList {
646
- /** @example 123 */
647
- count?: number;
648
- /**
649
- * @format uri
650
- * @example "http://api.example.org/accounts/?page=4"
651
- */
652
- next?: string | null;
653
- /**
654
- * @format uri
655
- * @example "http://api.example.org/accounts/?page=2"
656
- */
657
- previous?: string | null;
658
- results?: UserConversionPair[];
659
- }
660
-
661
- export interface PaginatedUserConversionPairListResponse {
662
- /** @example "success" */
663
- status?: string;
664
- data?: PaginatedUserConversionPairList;
665
- }
666
-
667
- export interface PaginatedUserCurrencyList {
668
- /** @example 123 */
669
- count?: number;
670
- /**
671
- * @format uri
672
- * @example "http://api.example.org/accounts/?page=4"
673
- */
674
- next?: string | null;
675
- /**
676
- * @format uri
677
- * @example "http://api.example.org/accounts/?page=2"
678
- */
679
- previous?: string | null;
680
- results?: UserCurrency[];
681
- }
682
-
683
- export interface PaginatedUserCurrencyListResponse {
684
- /** @example "success" */
685
- status?: string;
686
- data?: PaginatedUserCurrencyList;
687
- }
688
-
689
- export interface PaginatedUserRateList {
690
- /** @example 123 */
691
- count?: number;
692
- /**
693
- * @format uri
694
- * @example "http://api.example.org/accounts/?page=4"
695
- */
696
- next?: string | null;
697
- /**
698
- * @format uri
699
- * @example "http://api.example.org/accounts/?page=2"
700
- */
701
- previous?: string | null;
702
- results?: UserRate[];
703
- }
704
-
705
- export interface PaginatedUserRateListResponse {
706
- /** @example "success" */
707
- status?: string;
708
- data?: PaginatedUserRateList;
709
- }
710
-
711
- /**
712
- * A ModelSerializer that takes additional arguments for
713
- * "fields", "omit" and "expand" in order to
714
- * control which fields are displayed, and whether to replace simple
715
- * values with complex, nested serializations
716
- */
717
- export interface PatchedAdminCompany {
718
- id?: string;
719
- /** @format uuid */
720
- secret?: string;
721
- name?: string;
722
- display_currency?: string;
723
- operational_account?: string | null;
724
- }
725
-
726
- /**
727
- * A ModelSerializer that takes additional arguments for
728
- * "fields", "omit" and "expand" in order to
729
- * control which fields are displayed, and whether to replace simple
730
- * values with complex, nested serializations
731
- */
732
- export interface PatchedAdminCurrency {
733
- /** @maxLength 30 */
734
- code?: string;
735
- /** @maxLength 30 */
736
- display_code?: string | null;
737
- /** @maxLength 255 */
738
- description?: string | null;
739
- /** @maxLength 30 */
740
- symbol?: string | null;
741
- /** @maxLength 30 */
742
- unit?: string | null;
743
- /**
744
- * @min -2147483648
745
- * @max 2147483647
746
- */
747
- divisibility?: number;
748
- archived?: boolean;
749
- }
750
-
751
- /**
752
- * A ModelSerializer that takes additional arguments for
753
- * "fields", "omit" and "expand" in order to
754
- * control which fields are displayed, and whether to replace simple
755
- * values with complex, nested serializations
756
- */
757
- export interface PatchedAdminIntegration {
758
- id?: string;
759
- /** @maxLength 50 */
760
- slug?: string;
761
- /** @maxLength 50 */
762
- name?: string;
763
- /** @maxLength 255 */
764
- description?: string | null;
765
- created?: number;
766
- updated?: number;
767
- events?: ("conversion.quote" | "conversion.execute")[];
768
- }
769
-
770
- /**
771
- * A ModelSerializer that takes additional arguments for
772
- * "fields", "omit" and "expand" in order to
773
- * control which fields are displayed, and whether to replace simple
774
- * values with complex, nested serializations
775
- */
776
- export interface PatchedAdminIntegrationWebhook {
777
- id?: string;
778
- /** @format uri */
779
- url?: string;
780
- /**
781
- * * `conversion.quote` - conversion.quote
782
- * * `conversion.execute` - conversion.execute
783
- */
784
- event?: "conversion.quote" | "conversion.execute";
785
- /** @maxLength 250 */
786
- secret?: string;
787
- created?: number;
788
- updated?: number;
789
- }
790
-
791
- /**
792
- * A ModelSerializer that takes additional arguments for
793
- * "fields", "omit" and "expand" in order to
794
- * control which fields are displayed, and whether to replace simple
795
- * values with complex, nested serializations
796
- */
797
- export interface PatchedAdminRatePair {
798
- id?: string;
799
- key?: string;
800
- path?: string | null;
801
- /**
802
- * @format decimal
803
- * @pattern ^-?\d{0,12}(?:\.\d{0,18})?$
804
- */
805
- rate?: string | null;
806
- created?: number;
807
- updated?: number;
808
- }
809
-
810
- /**
811
- * A ModelSerializer that takes additional arguments for
812
- * "fields", "omit" and "expand" in order to
813
- * control which fields are displayed, and whether to replace simple
814
- * values with complex, nested serializations
815
- */
816
- export interface PatchedAdminUpdateConversion {
817
- id?: string;
818
- user?: string;
819
- key?: string;
820
- from_amount?: number;
821
- from_fee?: number;
822
- from_total_amount?: number;
823
- to_amount?: number;
824
- to_fee?: number;
825
- to_total_amount?: number;
826
- /**
827
- * @format decimal
828
- * @pattern ^-?\d{0,12}(?:\.\d{0,18})?$
829
- */
830
- rate?: string;
831
- debit_account?: string | null;
832
- credit_account?: string | null;
833
- operational_account?: string;
834
- /**
835
- * * `quoted` - Quoted
836
- * * `pending` - Pending
837
- * * `complete` - Complete
838
- * * `failed` - Failed
839
- */
840
- status?: "quoted" | "pending" | "complete" | "failed";
841
- collection?: string | null;
842
- txns?: string[];
843
- metadata?: Record<string, any>;
844
- expires?: number;
845
- created?: number;
846
- updated?: number;
847
- }
848
-
849
- /**
850
- * A ModelSerializer that takes additional arguments for
851
- * "fields", "omit" and "expand" in order to
852
- * control which fields are displayed, and whether to replace simple
853
- * values with complex, nested serializations
854
- */
855
- export interface PatchedAdminUpdateConversionPair {
856
- id?: string;
857
- key?: string;
858
- path?: string | null;
859
- /**
860
- * @format decimal
861
- * @pattern ^-?\d{0,12}(?:\.\d{0,18})?$
862
- */
863
- rate?: string | null;
864
- operational_account?: string | null;
865
- /** @min 1 */
866
- quote_duration?: number;
867
- enabled?: boolean;
868
- created?: number;
869
- updated?: number;
870
- integration?: string | null;
871
- /**
872
- * * `operational` - Operational
873
- * * `non_operational` - Non Operational
874
- */
875
- transaction_type?: "operational" | "non_operational";
876
- }
877
-
878
- /**
879
- * A ModelSerializer that takes additional arguments for
880
- * "fields", "omit" and "expand" in order to
881
- * control which fields are displayed, and whether to replace simple
882
- * values with complex, nested serializations
883
- */
884
- export interface PatchedAdminUser {
885
- id?: string;
886
- /** @maxLength 12 */
887
- display_currency?: string | null;
888
- }
889
-
890
- /**
891
- * A ModelSerializer that takes additional arguments for
892
- * "fields", "omit" and "expand" in order to
893
- * control which fields are displayed, and whether to replace simple
894
- * values with complex, nested serializations
895
- */
896
- export interface PatchedUserUpdateConversion {
897
- id?: string;
898
- key?: string;
899
- from_amount?: number;
900
- from_fee?: number;
901
- from_total_amount?: number;
902
- to_amount?: number;
903
- to_fee?: number;
904
- to_total_amount?: number;
905
- /**
906
- * @format decimal
907
- * @pattern ^-?\d{0,12}(?:\.\d{0,18})?$
908
- */
909
- rate?: string;
910
- debit_account?: string | null;
911
- credit_account?: string | null;
912
- /**
913
- * * `quoted` - Quoted
914
- * * `pending` - Pending
915
- * * `complete` - Complete
916
- * * `failed` - Failed
917
- */
918
- status?: "quoted" | "pending" | "complete" | "failed";
919
- collection?: string | null;
920
- txns?: string[];
921
- metadata?: Record<string, any>;
922
- expires?: number;
923
- created?: number;
924
- updated?: number;
925
- }
926
-
927
- /**
928
- * A ModelSerializer that takes additional arguments for
929
- * "fields", "omit" and "expand" in order to
930
- * control which fields are displayed, and whether to replace simple
931
- * values with complex, nested serializations
932
- */
933
- export interface PatchedUserUpdateSettings {
934
- display_currency?: string | null;
935
- }
936
-
937
- /**
938
- * A ModelSerializer that takes additional arguments for
939
- * "fields", "omit" and "expand" in order to
940
- * control which fields are displayed, and whether to replace simple
941
- * values with complex, nested serializations
942
- */
943
- export interface Rate {
944
- id: string;
945
- key: string;
946
- /**
947
- * @format decimal
948
- * @pattern ^-?\d{0,12}(?:\.\d{0,18})?$
949
- */
950
- rate: string;
951
- created: number;
952
- }
953
-
954
- /**
955
- * A ModelSerializer that takes additional arguments for
956
- * "fields", "omit" and "expand" in order to
957
- * control which fields are displayed, and whether to replace simple
958
- * values with complex, nested serializations
959
- */
960
- export interface UserConversion {
961
- id: string;
962
- key: string;
963
- from_amount: number;
964
- from_fee: number;
965
- from_total_amount: number;
966
- to_amount: number;
967
- to_fee: number;
968
- to_total_amount: number;
969
- /**
970
- * @format decimal
971
- * @pattern ^-?\d{0,12}(?:\.\d{0,18})?$
972
- */
973
- rate: string;
974
- debit_account: string | null;
975
- credit_account: string | null;
976
- /**
977
- * * `quoted` - Quoted
978
- * * `pending` - Pending
979
- * * `complete` - Complete
980
- * * `failed` - Failed
981
- */
982
- status?: "quoted" | "pending" | "complete" | "failed";
983
- collection: string | null;
984
- txns: string[];
985
- metadata: Record<string, any>;
986
- expires: number;
987
- created: number;
988
- updated: number;
989
- }
990
-
991
- /**
992
- * A ModelSerializer that takes additional arguments for
993
- * "fields", "omit" and "expand" in order to
994
- * control which fields are displayed, and whether to replace simple
995
- * values with complex, nested serializations
996
- */
997
- export interface UserConversionPair {
998
- id: string;
999
- key: string;
1000
- created: number;
1001
- updated: number;
1002
- }
1003
-
1004
- export interface UserConversionPairResponse {
1005
- /** @example "success" */
1006
- status?: string;
1007
- /**
1008
- * A ModelSerializer that takes additional arguments for
1009
- * "fields", "omit" and "expand" in order to
1010
- * control which fields are displayed, and whether to replace simple
1011
- * values with complex, nested serializations
1012
- */
1013
- data?: UserConversionPair;
1014
- }
1015
-
1016
- export interface UserConversionResponse {
1017
- /** @example "success" */
1018
- status?: string;
1019
- /**
1020
- * A ModelSerializer that takes additional arguments for
1021
- * "fields", "omit" and "expand" in order to
1022
- * control which fields are displayed, and whether to replace simple
1023
- * values with complex, nested serializations
1024
- */
1025
- data?: UserConversion;
1026
- }
1027
-
1028
- /**
1029
- * A ModelSerializer that takes additional arguments for
1030
- * "fields", "omit" and "expand" in order to
1031
- * control which fields are displayed, and whether to replace simple
1032
- * values with complex, nested serializations
1033
- */
1034
- export interface UserCreateConversion {
1035
- id: string;
1036
- key: string;
1037
- from_amount?: number | null;
1038
- from_fee: number;
1039
- from_total_amount: number;
1040
- to_amount?: number | null;
1041
- to_fee: number;
1042
- to_total_amount: number;
1043
- /**
1044
- * @format decimal
1045
- * @pattern ^-?\d{0,12}(?:\.\d{0,18})?$
1046
- */
1047
- rate: string;
1048
- /** @maxLength 64 */
1049
- debit_account?: string | null;
1050
- /** @maxLength 64 */
1051
- credit_account?: string | null;
1052
- /**
1053
- * * `quoted` - Quoted
1054
- * * `pending` - Pending
1055
- * * `complete` - Complete
1056
- * * `failed` - Failed
1057
- */
1058
- status: "quoted" | "pending" | "complete" | "failed";
1059
- collection: string | null;
1060
- txns: string[];
1061
- metadata?: Record<string, any>;
1062
- expires: number;
1063
- created: number;
1064
- updated: number;
1065
- }
1066
-
1067
- /**
1068
- * A ModelSerializer that takes additional arguments for
1069
- * "fields", "omit" and "expand" in order to
1070
- * control which fields are displayed, and whether to replace simple
1071
- * values with complex, nested serializations
1072
- */
1073
- export interface UserCurrency {
1074
- /** @maxLength 30 */
1075
- code: string;
1076
- /** @maxLength 30 */
1077
- display_code?: string | null;
1078
- /** @maxLength 255 */
1079
- description?: string | null;
1080
- /** @maxLength 30 */
1081
- symbol?: string | null;
1082
- /** @maxLength 30 */
1083
- unit?: string | null;
1084
- /**
1085
- * @min -2147483648
1086
- * @max 2147483647
1087
- */
1088
- divisibility?: number;
1089
- }
1090
-
1091
- export interface UserCurrencyResponse {
1092
- /** @example "success" */
1093
- status?: string;
1094
- /**
1095
- * A ModelSerializer that takes additional arguments for
1096
- * "fields", "omit" and "expand" in order to
1097
- * control which fields are displayed, and whether to replace simple
1098
- * values with complex, nested serializations
1099
- */
1100
- data?: UserCurrency;
1101
- }
1102
-
1103
- /**
1104
- * A ModelSerializer that takes additional arguments for
1105
- * "fields", "omit" and "expand" in order to
1106
- * control which fields are displayed, and whether to replace simple
1107
- * values with complex, nested serializations
1108
- */
1109
- export interface UserRate {
1110
- id: string;
1111
- key: string;
1112
- /**
1113
- * @format decimal
1114
- * @pattern ^-?\d{0,12}(?:\.\d{0,18})?$
1115
- */
1116
- rate: string;
1117
- created: number;
1118
- }
1119
-
1120
- export interface UserRateResponse {
1121
- /** @example "success" */
1122
- status?: string;
1123
- /**
1124
- * A ModelSerializer that takes additional arguments for
1125
- * "fields", "omit" and "expand" in order to
1126
- * control which fields are displayed, and whether to replace simple
1127
- * values with complex, nested serializations
1128
- */
1129
- data?: UserRate;
1130
- }
1131
-
1132
- /**
1133
- * A ModelSerializer that takes additional arguments for
1134
- * "fields", "omit" and "expand" in order to
1135
- * control which fields are displayed, and whether to replace simple
1136
- * values with complex, nested serializations
1137
- */
1138
- export interface UserSettings {
1139
- display_currency: string;
1140
- }
1141
-
1142
- export interface UserSettingsResponse {
1143
- /** @example "success" */
1144
- status?: string;
1145
- /**
1146
- * A ModelSerializer that takes additional arguments for
1147
- * "fields", "omit" and "expand" in order to
1148
- * control which fields are displayed, and whether to replace simple
1149
- * values with complex, nested serializations
1150
- */
1151
- data?: UserSettings;
1152
- }
1153
-
1154
- export interface UserSnapshotRate {
1155
- rates: Record<
1156
- string,
1157
- {
1158
- rate?: string;
1159
- created?: number;
1160
- }
1161
- >;
1162
- }
1163
-
1164
- export interface UserSnapshotRateResponse {
1165
- /** @example "success" */
1166
- status?: string;
1167
- data?: UserSnapshotRate;
1168
- }
1169
-
1170
- /**
1171
- * A ModelSerializer that takes additional arguments for
1172
- * "fields", "omit" and "expand" in order to
1173
- * control which fields are displayed, and whether to replace simple
1174
- * values with complex, nested serializations
1175
- */
1176
- export interface UserUpdateConversion {
1177
- id: string;
1178
- key: string;
1179
- from_amount: number;
1180
- from_fee: number;
1181
- from_total_amount: number;
1182
- to_amount: number;
1183
- to_fee: number;
1184
- to_total_amount: number;
1185
- /**
1186
- * @format decimal
1187
- * @pattern ^-?\d{0,12}(?:\.\d{0,18})?$
1188
- */
1189
- rate: string;
1190
- debit_account: string | null;
1191
- credit_account: string | null;
1192
- /**
1193
- * * `quoted` - Quoted
1194
- * * `pending` - Pending
1195
- * * `complete` - Complete
1196
- * * `failed` - Failed
1197
- */
1198
- status: "quoted" | "pending" | "complete" | "failed";
1199
- collection: string | null;
1200
- txns: string[];
1201
- metadata: Record<string, any>;
1202
- expires: number;
1203
- created: number;
1204
- updated: number;
1205
- }
1206
-
1207
- /**
1208
- * A ModelSerializer that takes additional arguments for
1209
- * "fields", "omit" and "expand" in order to
1210
- * control which fields are displayed, and whether to replace simple
1211
- * values with complex, nested serializations
1212
- */
1213
- export interface UserUpdateSettings {
1214
- display_currency?: string | null;
1215
- }
1216
-
1217
- export interface Webhook {
1218
- id: string;
1219
- /**
1220
- * * `currency.create` - currency.create
1221
- * * `currency.update` - currency.update
1222
- * * `transaction.execute` - transaction.execute
1223
- */
1224
- event: "currency.create" | "currency.update" | "transaction.execute";
1225
- company: string;
1226
- data: Record<string, any>;
1227
- }
1228
-
1229
- export type ActivateCreateData = ActionResponse;
1230
-
1231
- export type AdminCompanyRetrieveData = AdminCompanyResponse;
1232
-
1233
- export type AdminCompanyUpdateData = AdminCompanyResponse;
1234
-
1235
- export type AdminCompanyPartialUpdateData = AdminCompanyResponse;
1236
-
1237
- export interface AdminConversionPairsListParams {
1238
- id?: number;
1239
- key?: string;
1240
- /** Multiple values may be separated by commas. */
1241
- key__in?: string[];
1242
- /** A page number within the paginated result set. */
1243
- page?: number;
1244
- /** Number of results to return per page. */
1245
- page_size?: number;
1246
- }
1247
-
1248
- export type AdminConversionPairsListData =
1249
- PaginatedAdminConversionPairListResponse;
1250
-
1251
- export type AdminConversionPairsCreateData = AdminConversionPairResponse;
1252
-
1253
- export type AdminConversionPairsRetrieveData = AdminConversionPairResponse;
1254
-
1255
- export type AdminConversionPairsUpdateData = AdminConversionPairResponse;
1256
-
1257
- export type AdminConversionPairsPartialUpdateData = AdminConversionPairResponse;
1258
-
1259
- export type AdminConversionPairsDestroyData = AdminConversionPairResponse;
1260
-
1261
- export interface AdminConversionsListParams {
1262
- created?: string;
1263
- created__gt?: string;
1264
- created__gte?: string;
1265
- created__lt?: string;
1266
- created__lte?: string;
1267
- id?: number;
1268
- key?: string;
1269
- /** Multiple values may be separated by commas. */
1270
- key__in?: string[];
1271
- /** A page number within the paginated result set. */
1272
- page?: number;
1273
- /** Number of results to return per page. */
1274
- page_size?: number;
1275
- status?: string;
1276
- user?: string;
1277
- }
1278
-
1279
- export type AdminConversionsListData = PaginatedAdminConversionListResponse;
1280
-
1281
- export type AdminConversionsCreateData = AdminConversionResponse;
1282
-
1283
- export type AdminConversionsRetrieveData = AdminConversionResponse;
1284
-
1285
- export type AdminConversionsUpdateData = AdminConversionResponse;
1286
-
1287
- export type AdminConversionsPartialUpdateData = AdminConversionResponse;
1288
-
1289
- export interface AdminCurrenciesListParams {
1290
- code?: string;
1291
- /** Multiple values may be separated by commas. */
1292
- code__in?: string[];
1293
- /** A page number within the paginated result set. */
1294
- page?: number;
1295
- /** Number of results to return per page. */
1296
- page_size?: number;
1297
- unit?: string;
1298
- }
1299
-
1300
- export type AdminCurrenciesListData = PaginatedAdminCurrencyListResponse;
1301
-
1302
- export type AdminCurrenciesCreateData = AdminCurrencyResponse;
1303
-
1304
- export type AdminCurrenciesRetrieveData = AdminCurrencyResponse;
1305
-
1306
- export type AdminCurrenciesUpdateData = AdminCurrencyResponse;
1307
-
1308
- export type AdminCurrenciesPartialUpdateData = AdminCurrencyResponse;
1309
-
1310
- export interface AdminIntegrationsListParams {
1311
- /** A page number within the paginated result set. */
1312
- page?: number;
1313
- /** Number of results to return per page. */
1314
- page_size?: number;
1315
- }
1316
-
1317
- export type AdminIntegrationsListData = PaginatedAdminIntegrationListResponse;
1318
-
1319
- export type AdminIntegrationsCreateData = AdminIntegrationResponse;
1320
-
1321
- export type AdminIntegrationsRetrieveData = AdminIntegrationResponse;
1322
-
1323
- export type AdminIntegrationsUpdateData = AdminIntegrationResponse;
1324
-
1325
- export type AdminIntegrationsPartialUpdateData = AdminIntegrationResponse;
1326
-
1327
- export type AdminIntegrationsDestroyData = AdminIntegrationResponse;
1328
-
1329
- export interface AdminIntegrationsWebhooksListParams {
1330
- /** A page number within the paginated result set. */
1331
- page?: number;
1332
- /** Number of results to return per page. */
1333
- page_size?: number;
1334
- /** @pattern ^([a-zA-Z0-9\_\-]+)$ */
1335
- identifier: string;
1336
- }
1337
-
1338
- export type AdminIntegrationsWebhooksListData =
1339
- PaginatedAdminIntegrationWebhookListResponse;
1340
-
1341
- export type AdminIntegrationsWebhooksCreateData =
1342
- AdminIntegrationWebhookResponse;
1343
-
1344
- export type AdminIntegrationsWebhooksRetrieveData =
1345
- AdminIntegrationWebhookResponse;
1346
-
1347
- export type AdminIntegrationsWebhooksUpdateData =
1348
- AdminIntegrationWebhookResponse;
1349
-
1350
- export type AdminIntegrationsWebhooksPartialUpdateData =
1351
- AdminIntegrationWebhookResponse;
1352
-
1353
- export type AdminIntegrationsWebhooksDestroyData =
1354
- AdminIntegrationWebhookResponse;
1355
-
1356
- export interface AdminRatePairsListParams {
1357
- id?: number;
1358
- /** A page number within the paginated result set. */
1359
- page?: number;
1360
- /** Number of results to return per page. */
1361
- page_size?: number;
1362
- }
1363
-
1364
- export type AdminRatePairsListData = PaginatedAdminRatePairListResponse;
1365
-
1366
- export type AdminRatePairsCreateData = AdminRatePairResponse;
1367
-
1368
- export type AdminRatePairsRetrieveData = AdminRatePairResponse;
1369
-
1370
- export type AdminRatePairsUpdateData = AdminRatePairResponse;
1371
-
1372
- export type AdminRatePairsPartialUpdateData = AdminRatePairResponse;
1373
-
1374
- export type AdminRatePairsDestroyData = AdminRatePairResponse;
1375
-
1376
- export interface AdminUsersListParams {
1377
- display_currency?: string;
1378
- /** Multiple values may be separated by commas. */
1379
- display_currency__in?: string[];
1380
- id?: number;
1381
- /** A page number within the paginated result set. */
1382
- page?: number;
1383
- /** Number of results to return per page. */
1384
- page_size?: number;
1385
- }
1386
-
1387
- export type AdminUsersListData = PaginatedAdminUserListResponse;
1388
-
1389
- export type AdminUsersRetrieveData = AdminUserResponse;
1390
-
1391
- export type AdminUsersUpdateData = AdminUserResponse;
1392
-
1393
- export type AdminUsersPartialUpdateData = AdminUserResponse;
1394
-
1395
- export type DeactivateCreateData = ActionResponse;
1396
-
1397
- export interface UserConversionPairsListParams {
1398
- id?: number;
1399
- key?: string;
1400
- /** Multiple values may be separated by commas. */
1401
- key__in?: string[];
1402
- /** A page number within the paginated result set. */
1403
- page?: number;
1404
- /** Number of results to return per page. */
1405
- page_size?: number;
1406
- }
1407
-
1408
- export type UserConversionPairsListData =
1409
- PaginatedUserConversionPairListResponse;
1410
-
1411
- export type UserConversionPairsRetrieveData = UserConversionPairResponse;
1412
-
1413
- export interface UserConversionsListParams {
1414
- created?: string;
1415
- created__gt?: string;
1416
- created__gte?: string;
1417
- created__lt?: string;
1418
- created__lte?: string;
1419
- id?: number;
1420
- key?: string;
1421
- /** Multiple values may be separated by commas. */
1422
- key__in?: string[];
1423
- /** A page number within the paginated result set. */
1424
- page?: number;
1425
- /** Number of results to return per page. */
1426
- page_size?: number;
1427
- status?: string;
1428
- }
1429
-
1430
- export type UserConversionsListData = PaginatedUserConversionListResponse;
1431
-
1432
- export type UserConversionsCreateData = UserConversionResponse;
1433
-
1434
- export type UserConversionsRetrieveData = UserConversionResponse;
1435
-
1436
- export type UserConversionsUpdateData = UserConversionResponse;
1437
-
1438
- export type UserConversionsPartialUpdateData = UserConversionResponse;
1439
-
1440
- export interface UserCurrenciesListParams {
1441
- code?: string;
1442
- /** Multiple values may be separated by commas. */
1443
- code__in?: string[];
1444
- /** A page number within the paginated result set. */
1445
- page?: number;
1446
- /** Number of results to return per page. */
1447
- page_size?: number;
1448
- unit?: string;
1449
- }
1450
-
1451
- export type UserCurrenciesListData = PaginatedUserCurrencyListResponse;
1452
-
1453
- export type UserCurrenciesRetrieveData = UserCurrencyResponse;
1454
-
1455
- export interface UserRatesListParams {
1456
- created?: string;
1457
- created__gt?: string;
1458
- created__gte?: string;
1459
- created__lt?: string;
1460
- created__lte?: string;
1461
- id?: number;
1462
- key?: string;
1463
- /** Multiple values may be separated by commas. */
1464
- key__in?: string[];
1465
- /** A page number within the paginated result set. */
1466
- page?: number;
1467
- /** Number of results to return per page. */
1468
- page_size?: number;
1469
- }
1470
-
1471
- export type UserRatesListData = PaginatedUserRateListResponse;
1472
-
1473
- export type UserRatesRetrieveData = UserRateResponse;
1474
-
1475
- export type UserRatesSnapshotRetrieveData = UserSnapshotRateResponse;
1476
-
1477
- export type UserRatesSnapshotsListData = NewSnapshotRateListResponse;
1478
-
1479
- export type UserSettingsRetrieveData = UserSettingsResponse;
1480
-
1481
- export type UserSettingsUpdateData = UserSettingsResponse;
1482
-
1483
- export type UserSettingsPartialUpdateData = UserSettingsResponse;
1484
-
1485
- export type WebhookCreateData = ActionResponse;
1486
-
1487
- export type QueryParamsType = Record<string | number, any>;
1488
- export type ResponseFormat = keyof Omit<Body, "body" | "bodyUsed">;
1489
-
1490
- export interface FullRequestParams extends Omit<RequestInit, "body"> {
1491
- /** set parameter to `true` for call `securityWorker` for this request */
1492
- secure?: boolean;
1493
- /** request path */
1494
- path: string;
1495
- /** content type of request body */
1496
- type?: ContentType;
1497
- /** query params */
1498
- query?: QueryParamsType;
1499
- /** format of response (i.e. response.json() -> format: "json") */
1500
- format?: ResponseFormat;
1501
- /** request body */
1502
- body?: unknown;
1503
- /** base url */
1504
- baseUrl?: string;
1505
- /** request cancellation token */
1506
- cancelToken?: CancelToken;
1507
- }
1508
-
1509
- export type RequestParams = Omit<
1510
- FullRequestParams,
1511
- "body" | "method" | "query" | "path"
1512
- >;
1513
-
1514
- export interface ApiConfig<SecurityDataType = unknown> {
1515
- baseUrl?: string;
1516
- baseApiParams?: Omit<RequestParams, "baseUrl" | "cancelToken" | "signal">;
1517
- securityWorker?: (
1518
- securityData: SecurityDataType | null,
1519
- ) => Promise<RequestParams | void> | RequestParams | void;
1520
- customFetch?: typeof fetch;
1521
- }
1522
-
1523
- export interface HttpResponse<D extends unknown, E extends unknown = unknown>
1524
- extends Response {
1525
- data: D;
1526
- error: E;
1527
- }
1528
-
1529
- type CancelToken = Symbol | string | number;
1530
-
1531
- export enum ContentType {
1532
- Json = "application/json",
1533
- JsonApi = "application/vnd.api+json",
1534
- FormData = "multipart/form-data",
1535
- UrlEncoded = "application/x-www-form-urlencoded",
1536
- Text = "text/plain",
1537
- }
1538
-
1539
- export class HttpClient<SecurityDataType = unknown> {
1540
- public baseUrl: string = "https://conversion.services.rehive.com/api/";
1541
- private securityData: SecurityDataType | null = null;
1542
- private securityWorker?: ApiConfig<SecurityDataType>["securityWorker"];
1543
- private abortControllers = new Map<CancelToken, AbortController>();
1544
- private customFetch = (...fetchParams: Parameters<typeof fetch>) =>
1545
- fetch(...fetchParams);
1546
-
1547
- private baseApiParams: RequestParams = {
1548
- credentials: "same-origin",
1549
- headers: {},
1550
- redirect: "follow",
1551
- referrerPolicy: "no-referrer",
1552
- };
1553
-
1554
- constructor(apiConfig: ApiConfig<SecurityDataType> = {}) {
1555
- Object.assign(this, apiConfig);
1556
- }
1557
-
1558
- public setSecurityData = (data: SecurityDataType | null) => {
1559
- this.securityData = data;
1560
- };
1561
-
1562
- protected encodeQueryParam(key: string, value: any) {
1563
- const encodedKey = encodeURIComponent(key);
1564
- return `${encodedKey}=${encodeURIComponent(typeof value === "number" ? value : `${value}`)}`;
1565
- }
1566
-
1567
- protected addQueryParam(query: QueryParamsType, key: string) {
1568
- return this.encodeQueryParam(key, query[key]);
1569
- }
1570
-
1571
- protected addArrayQueryParam(query: QueryParamsType, key: string) {
1572
- const value = query[key];
1573
- return value.map((v: any) => this.encodeQueryParam(key, v)).join("&");
1574
- }
1575
-
1576
- protected toQueryString(rawQuery?: QueryParamsType): string {
1577
- const query = rawQuery || {};
1578
- const keys = Object.keys(query).filter(
1579
- (key) => "undefined" !== typeof query[key],
1580
- );
1581
- return keys
1582
- .map((key) =>
1583
- Array.isArray(query[key])
1584
- ? this.addArrayQueryParam(query, key)
1585
- : this.addQueryParam(query, key),
1586
- )
1587
- .join("&");
1588
- }
1589
-
1590
- protected addQueryParams(rawQuery?: QueryParamsType): string {
1591
- const queryString = this.toQueryString(rawQuery);
1592
- return queryString ? `?${queryString}` : "";
1593
- }
1594
-
1595
- private contentFormatters: Record<ContentType, (input: any) => any> = {
1596
- [ContentType.Json]: (input: any) =>
1597
- input !== null && (typeof input === "object" || typeof input === "string")
1598
- ? JSON.stringify(input)
1599
- : input,
1600
- [ContentType.JsonApi]: (input: any) =>
1601
- input !== null && (typeof input === "object" || typeof input === "string")
1602
- ? JSON.stringify(input)
1603
- : input,
1604
- [ContentType.Text]: (input: any) =>
1605
- input !== null && typeof input !== "string"
1606
- ? JSON.stringify(input)
1607
- : input,
1608
- [ContentType.FormData]: (input: any) =>
1609
- Object.keys(input || {}).reduce((formData, key) => {
1610
- const property = input[key];
1611
- formData.append(
1612
- key,
1613
- property instanceof Blob
1614
- ? property
1615
- : typeof property === "object" && property !== null
1616
- ? JSON.stringify(property)
1617
- : `${property}`,
1618
- );
1619
- return formData;
1620
- }, new FormData()),
1621
- [ContentType.UrlEncoded]: (input: any) => this.toQueryString(input),
1622
- };
1623
-
1624
- protected mergeRequestParams(
1625
- params1: RequestParams,
1626
- params2?: RequestParams,
1627
- ): RequestParams {
1628
- return {
1629
- ...this.baseApiParams,
1630
- ...params1,
1631
- ...(params2 || {}),
1632
- headers: {
1633
- ...(this.baseApiParams.headers || {}),
1634
- ...(params1.headers || {}),
1635
- ...((params2 && params2.headers) || {}),
1636
- },
1637
- };
1638
- }
1639
-
1640
- protected createAbortSignal = (
1641
- cancelToken: CancelToken,
1642
- ): AbortSignal | undefined => {
1643
- if (this.abortControllers.has(cancelToken)) {
1644
- const abortController = this.abortControllers.get(cancelToken);
1645
- if (abortController) {
1646
- return abortController.signal;
1647
- }
1648
- return void 0;
1649
- }
1650
-
1651
- const abortController = new AbortController();
1652
- this.abortControllers.set(cancelToken, abortController);
1653
- return abortController.signal;
1654
- };
1655
-
1656
- public abortRequest = (cancelToken: CancelToken) => {
1657
- const abortController = this.abortControllers.get(cancelToken);
1658
-
1659
- if (abortController) {
1660
- abortController.abort();
1661
- this.abortControllers.delete(cancelToken);
1662
- }
1663
- };
1664
-
1665
- public request = async <T = any, E = any>({
1666
- body,
1667
- secure,
1668
- path,
1669
- type,
1670
- query,
1671
- format,
1672
- baseUrl,
1673
- cancelToken,
1674
- ...params
1675
- }: FullRequestParams): Promise<HttpResponse<T, E>> => {
1676
- const secureParams =
1677
- ((typeof secure === "boolean" ? secure : this.baseApiParams.secure) &&
1678
- this.securityWorker &&
1679
- (await this.securityWorker(this.securityData))) ||
1680
- {};
1681
- const requestParams = this.mergeRequestParams(params, secureParams);
1682
- const queryString = query && this.toQueryString(query);
1683
- const payloadFormatter = this.contentFormatters[type || ContentType.Json];
1684
- const responseFormat = format || requestParams.format;
1685
-
1686
- return this.customFetch(
1687
- `${baseUrl || this.baseUrl || ""}${path}${queryString ? `?${queryString}` : ""}`,
1688
- {
1689
- ...requestParams,
1690
- headers: {
1691
- ...(requestParams.headers || {}),
1692
- ...(type && type !== ContentType.FormData
1693
- ? { "Content-Type": type }
1694
- : {}),
1695
- },
1696
- signal:
1697
- (cancelToken
1698
- ? this.createAbortSignal(cancelToken)
1699
- : requestParams.signal) || null,
1700
- body:
1701
- typeof body === "undefined" || body === null
1702
- ? null
1703
- : payloadFormatter(body),
1704
- },
1705
- ).then(async (response) => {
1706
- const r = response.clone() as HttpResponse<T, E>;
1707
- r.data = null as unknown as T;
1708
- r.error = null as unknown as E;
1709
-
1710
- const data = !responseFormat
1711
- ? r
1712
- : await response[responseFormat]()
1713
- .then((data) => {
1714
- if (r.ok) {
1715
- r.data = data;
1716
- } else {
1717
- r.error = data;
1718
- }
1719
- return r;
1720
- })
1721
- .catch((e) => {
1722
- r.error = e;
1723
- return r;
1724
- });
1725
-
1726
- if (cancelToken) {
1727
- this.abortControllers.delete(cancelToken);
1728
- }
1729
-
1730
- if (!response.ok) throw data;
1731
- return data;
1732
- });
1733
- };
1734
- }
1735
-
1736
- /**
1737
- * @title Conversion Service API
1738
- * @version 1 (1)
1739
- * @termsOfService https://rehive.com/terms/
1740
- * @baseUrl https://conversion.services.rehive.com/api/
1741
- * @externalDocs https://docs.rehive.com
1742
- * @contact Rehive Support <support@rehive.com> (https://rehive.com/support/)
1743
- *
1744
- *
1745
- * The **Conversion Service API** is used for currency rates and conversions in Rehive.
1746
- *
1747
- */
1748
- export class Api<
1749
- SecurityDataType extends unknown,
1750
- > extends HttpClient<SecurityDataType> {
1751
- activate = {
1752
- /**
1753
- * No description
1754
- *
1755
- * @tags activate
1756
- * @name ActivateCreate
1757
- * @summary Activate service
1758
- * @request POST:/activate/
1759
- * @secure
1760
- */
1761
- activateCreate: (data: Activate, params: RequestParams = {}) =>
1762
- this.request<ActivateCreateData, any>({
1763
- path: `/activate/`,
1764
- method: "POST",
1765
- body: data,
1766
- secure: true,
1767
- type: ContentType.Json,
1768
- format: "json",
1769
- ...params,
1770
- }),
1771
- };
1772
- admin = {
1773
- /**
1774
- * No description
1775
- *
1776
- * @tags admin
1777
- * @name AdminCompanyRetrieve
1778
- * @summary Retrieve company
1779
- * @request GET:/admin/company/
1780
- * @secure
1781
- */
1782
- adminCompanyRetrieve: (params: RequestParams = {}) =>
1783
- this.request<AdminCompanyRetrieveData, any>({
1784
- path: `/admin/company/`,
1785
- method: "GET",
1786
- secure: true,
1787
- format: "json",
1788
- ...params,
1789
- }),
1790
-
1791
- /**
1792
- * No description
1793
- *
1794
- * @tags admin
1795
- * @name AdminCompanyUpdate
1796
- * @summary Update company
1797
- * @request PUT:/admin/company/
1798
- * @secure
1799
- */
1800
- adminCompanyUpdate: (data: AdminCompany, params: RequestParams = {}) =>
1801
- this.request<AdminCompanyUpdateData, any>({
1802
- path: `/admin/company/`,
1803
- method: "PUT",
1804
- body: data,
1805
- secure: true,
1806
- type: ContentType.Json,
1807
- format: "json",
1808
- ...params,
1809
- }),
1810
-
1811
- /**
1812
- * No description
1813
- *
1814
- * @tags admin
1815
- * @name AdminCompanyPartialUpdate
1816
- * @summary Partially update company
1817
- * @request PATCH:/admin/company/
1818
- * @secure
1819
- */
1820
- adminCompanyPartialUpdate: (
1821
- data: PatchedAdminCompany,
1822
- params: RequestParams = {},
1823
- ) =>
1824
- this.request<AdminCompanyPartialUpdateData, any>({
1825
- path: `/admin/company/`,
1826
- method: "PATCH",
1827
- body: data,
1828
- secure: true,
1829
- type: ContentType.Json,
1830
- format: "json",
1831
- ...params,
1832
- }),
1833
-
1834
- /**
1835
- * No description
1836
- *
1837
- * @tags admin
1838
- * @name AdminConversionPairsList
1839
- * @summary List conversion pairs
1840
- * @request GET:/admin/conversion-pairs/
1841
- * @secure
1842
- */
1843
- adminConversionPairsList: (
1844
- query: AdminConversionPairsListParams,
1845
- params: RequestParams = {},
1846
- ) =>
1847
- this.request<AdminConversionPairsListData, any>({
1848
- path: `/admin/conversion-pairs/`,
1849
- method: "GET",
1850
- query: query,
1851
- secure: true,
1852
- format: "json",
1853
- ...params,
1854
- }),
1855
-
1856
- /**
1857
- * No description
1858
- *
1859
- * @tags admin
1860
- * @name AdminConversionPairsCreate
1861
- * @summary Create conversion pair
1862
- * @request POST:/admin/conversion-pairs/
1863
- * @secure
1864
- */
1865
- adminConversionPairsCreate: (
1866
- data: AdminCreateConversionPair,
1867
- params: RequestParams = {},
1868
- ) =>
1869
- this.request<AdminConversionPairsCreateData, any>({
1870
- path: `/admin/conversion-pairs/`,
1871
- method: "POST",
1872
- body: data,
1873
- secure: true,
1874
- type: ContentType.Json,
1875
- format: "json",
1876
- ...params,
1877
- }),
1878
-
1879
- /**
1880
- * No description
1881
- *
1882
- * @tags admin
1883
- * @name AdminConversionPairsRetrieve
1884
- * @summary Retrieve conversion pair
1885
- * @request GET:/admin/conversion-pairs/{identifier}/
1886
- * @secure
1887
- */
1888
- adminConversionPairsRetrieve: (
1889
- identifier: string,
1890
- params: RequestParams = {},
1891
- ) =>
1892
- this.request<AdminConversionPairsRetrieveData, any>({
1893
- path: `/admin/conversion-pairs/${identifier}/`,
1894
- method: "GET",
1895
- secure: true,
1896
- format: "json",
1897
- ...params,
1898
- }),
1899
-
1900
- /**
1901
- * No description
1902
- *
1903
- * @tags admin
1904
- * @name AdminConversionPairsUpdate
1905
- * @summary Update conversion pair
1906
- * @request PUT:/admin/conversion-pairs/{identifier}/
1907
- * @secure
1908
- */
1909
- adminConversionPairsUpdate: (
1910
- identifier: string,
1911
- data: AdminConversionPair,
1912
- params: RequestParams = {},
1913
- ) =>
1914
- this.request<AdminConversionPairsUpdateData, any>({
1915
- path: `/admin/conversion-pairs/${identifier}/`,
1916
- method: "PUT",
1917
- body: data,
1918
- secure: true,
1919
- type: ContentType.Json,
1920
- format: "json",
1921
- ...params,
1922
- }),
1923
-
1924
- /**
1925
- * No description
1926
- *
1927
- * @tags admin
1928
- * @name AdminConversionPairsPartialUpdate
1929
- * @summary Partially update conversion pair
1930
- * @request PATCH:/admin/conversion-pairs/{identifier}/
1931
- * @secure
1932
- */
1933
- adminConversionPairsPartialUpdate: (
1934
- identifier: string,
1935
- data: PatchedAdminUpdateConversionPair,
1936
- params: RequestParams = {},
1937
- ) =>
1938
- this.request<AdminConversionPairsPartialUpdateData, any>({
1939
- path: `/admin/conversion-pairs/${identifier}/`,
1940
- method: "PATCH",
1941
- body: data,
1942
- secure: true,
1943
- type: ContentType.Json,
1944
- format: "json",
1945
- ...params,
1946
- }),
1947
-
1948
- /**
1949
- * No description
1950
- *
1951
- * @tags admin
1952
- * @name AdminConversionPairsDestroy
1953
- * @summary Delete conversion pair
1954
- * @request DELETE:/admin/conversion-pairs/{identifier}/
1955
- * @secure
1956
- */
1957
- adminConversionPairsDestroy: (
1958
- identifier: string,
1959
- params: RequestParams = {},
1960
- ) =>
1961
- this.request<AdminConversionPairsDestroyData, any>({
1962
- path: `/admin/conversion-pairs/${identifier}/`,
1963
- method: "DELETE",
1964
- secure: true,
1965
- format: "json",
1966
- ...params,
1967
- }),
1968
-
1969
- /**
1970
- * No description
1971
- *
1972
- * @tags admin
1973
- * @name AdminConversionsList
1974
- * @summary List conversions
1975
- * @request GET:/admin/conversions/
1976
- * @secure
1977
- */
1978
- adminConversionsList: (
1979
- query: AdminConversionsListParams,
1980
- params: RequestParams = {},
1981
- ) =>
1982
- this.request<AdminConversionsListData, any>({
1983
- path: `/admin/conversions/`,
1984
- method: "GET",
1985
- query: query,
1986
- secure: true,
1987
- format: "json",
1988
- ...params,
1989
- }),
1990
-
1991
- /**
1992
- * No description
1993
- *
1994
- * @tags admin
1995
- * @name AdminConversionsCreate
1996
- * @summary Create conversion
1997
- * @request POST:/admin/conversions/
1998
- * @secure
1999
- */
2000
- adminConversionsCreate: (
2001
- data: AdminCreateConversion,
2002
- params: RequestParams = {},
2003
- ) =>
2004
- this.request<AdminConversionsCreateData, any>({
2005
- path: `/admin/conversions/`,
2006
- method: "POST",
2007
- body: data,
2008
- secure: true,
2009
- type: ContentType.Json,
2010
- format: "json",
2011
- ...params,
2012
- }),
2013
-
2014
- /**
2015
- * No description
2016
- *
2017
- * @tags admin
2018
- * @name AdminConversionsRetrieve
2019
- * @summary Retrieve conversion
2020
- * @request GET:/admin/conversions/{identifier}/
2021
- * @secure
2022
- */
2023
- adminConversionsRetrieve: (
2024
- identifier: string,
2025
- params: RequestParams = {},
2026
- ) =>
2027
- this.request<AdminConversionsRetrieveData, any>({
2028
- path: `/admin/conversions/${identifier}/`,
2029
- method: "GET",
2030
- secure: true,
2031
- format: "json",
2032
- ...params,
2033
- }),
2034
-
2035
- /**
2036
- * No description
2037
- *
2038
- * @tags admin
2039
- * @name AdminConversionsUpdate
2040
- * @summary Update conversion
2041
- * @request PUT:/admin/conversions/{identifier}/
2042
- * @secure
2043
- */
2044
- adminConversionsUpdate: (
2045
- identifier: string,
2046
- data: AdminUpdateConversion,
2047
- params: RequestParams = {},
2048
- ) =>
2049
- this.request<AdminConversionsUpdateData, any>({
2050
- path: `/admin/conversions/${identifier}/`,
2051
- method: "PUT",
2052
- body: data,
2053
- secure: true,
2054
- type: ContentType.Json,
2055
- format: "json",
2056
- ...params,
2057
- }),
2058
-
2059
- /**
2060
- * No description
2061
- *
2062
- * @tags admin
2063
- * @name AdminConversionsPartialUpdate
2064
- * @summary Partially update conversion
2065
- * @request PATCH:/admin/conversions/{identifier}/
2066
- * @secure
2067
- */
2068
- adminConversionsPartialUpdate: (
2069
- identifier: string,
2070
- data: PatchedAdminUpdateConversion,
2071
- params: RequestParams = {},
2072
- ) =>
2073
- this.request<AdminConversionsPartialUpdateData, any>({
2074
- path: `/admin/conversions/${identifier}/`,
2075
- method: "PATCH",
2076
- body: data,
2077
- secure: true,
2078
- type: ContentType.Json,
2079
- format: "json",
2080
- ...params,
2081
- }),
2082
-
2083
- /**
2084
- * No description
2085
- *
2086
- * @tags admin
2087
- * @name AdminCurrenciesList
2088
- * @summary List currencies
2089
- * @request GET:/admin/currencies/
2090
- * @secure
2091
- */
2092
- adminCurrenciesList: (
2093
- query: AdminCurrenciesListParams,
2094
- params: RequestParams = {},
2095
- ) =>
2096
- this.request<AdminCurrenciesListData, any>({
2097
- path: `/admin/currencies/`,
2098
- method: "GET",
2099
- query: query,
2100
- secure: true,
2101
- format: "json",
2102
- ...params,
2103
- }),
2104
-
2105
- /**
2106
- * No description
2107
- *
2108
- * @tags admin
2109
- * @name AdminCurrenciesCreate
2110
- * @summary Create currency
2111
- * @request POST:/admin/currencies/
2112
- * @secure
2113
- */
2114
- adminCurrenciesCreate: (data: AdminCurrency, params: RequestParams = {}) =>
2115
- this.request<AdminCurrenciesCreateData, any>({
2116
- path: `/admin/currencies/`,
2117
- method: "POST",
2118
- body: data,
2119
- secure: true,
2120
- type: ContentType.Json,
2121
- format: "json",
2122
- ...params,
2123
- }),
2124
-
2125
- /**
2126
- * No description
2127
- *
2128
- * @tags admin
2129
- * @name AdminCurrenciesRetrieve
2130
- * @summary Retrieve currency
2131
- * @request GET:/admin/currencies/{code}/
2132
- * @secure
2133
- */
2134
- adminCurrenciesRetrieve: (code: string, params: RequestParams = {}) =>
2135
- this.request<AdminCurrenciesRetrieveData, any>({
2136
- path: `/admin/currencies/${code}/`,
2137
- method: "GET",
2138
- secure: true,
2139
- format: "json",
2140
- ...params,
2141
- }),
2142
-
2143
- /**
2144
- * No description
2145
- *
2146
- * @tags admin
2147
- * @name AdminCurrenciesUpdate
2148
- * @summary Update currency
2149
- * @request PUT:/admin/currencies/{code}/
2150
- * @secure
2151
- */
2152
- adminCurrenciesUpdate: (
2153
- code: string,
2154
- data: AdminCurrency,
2155
- params: RequestParams = {},
2156
- ) =>
2157
- this.request<AdminCurrenciesUpdateData, any>({
2158
- path: `/admin/currencies/${code}/`,
2159
- method: "PUT",
2160
- body: data,
2161
- secure: true,
2162
- type: ContentType.Json,
2163
- format: "json",
2164
- ...params,
2165
- }),
2166
-
2167
- /**
2168
- * No description
2169
- *
2170
- * @tags admin
2171
- * @name AdminCurrenciesPartialUpdate
2172
- * @summary Partially update currency
2173
- * @request PATCH:/admin/currencies/{code}/
2174
- * @secure
2175
- */
2176
- adminCurrenciesPartialUpdate: (
2177
- code: string,
2178
- data: PatchedAdminCurrency,
2179
- params: RequestParams = {},
2180
- ) =>
2181
- this.request<AdminCurrenciesPartialUpdateData, any>({
2182
- path: `/admin/currencies/${code}/`,
2183
- method: "PATCH",
2184
- body: data,
2185
- secure: true,
2186
- type: ContentType.Json,
2187
- format: "json",
2188
- ...params,
2189
- }),
2190
-
2191
- /**
2192
- * No description
2193
- *
2194
- * @tags admin
2195
- * @name AdminIntegrationsList
2196
- * @summary List integration
2197
- * @request GET:/admin/integrations/
2198
- * @secure
2199
- */
2200
- adminIntegrationsList: (
2201
- query: AdminIntegrationsListParams,
2202
- params: RequestParams = {},
2203
- ) =>
2204
- this.request<AdminIntegrationsListData, any>({
2205
- path: `/admin/integrations/`,
2206
- method: "GET",
2207
- query: query,
2208
- secure: true,
2209
- format: "json",
2210
- ...params,
2211
- }),
2212
-
2213
- /**
2214
- * No description
2215
- *
2216
- * @tags admin
2217
- * @name AdminIntegrationsCreate
2218
- * @summary Create integration
2219
- * @request POST:/admin/integrations/
2220
- * @secure
2221
- */
2222
- adminIntegrationsCreate: (
2223
- data: AdminIntegration,
2224
- params: RequestParams = {},
2225
- ) =>
2226
- this.request<AdminIntegrationsCreateData, any>({
2227
- path: `/admin/integrations/`,
2228
- method: "POST",
2229
- body: data,
2230
- secure: true,
2231
- type: ContentType.Json,
2232
- format: "json",
2233
- ...params,
2234
- }),
2235
-
2236
- /**
2237
- * No description
2238
- *
2239
- * @tags admin
2240
- * @name AdminIntegrationsRetrieve
2241
- * @summary Retrieve integration
2242
- * @request GET:/admin/integrations/{identifier}/
2243
- * @secure
2244
- */
2245
- adminIntegrationsRetrieve: (
2246
- identifier: string,
2247
- params: RequestParams = {},
2248
- ) =>
2249
- this.request<AdminIntegrationsRetrieveData, any>({
2250
- path: `/admin/integrations/${identifier}/`,
2251
- method: "GET",
2252
- secure: true,
2253
- format: "json",
2254
- ...params,
2255
- }),
2256
-
2257
- /**
2258
- * No description
2259
- *
2260
- * @tags admin
2261
- * @name AdminIntegrationsUpdate
2262
- * @summary Update integration
2263
- * @request PUT:/admin/integrations/{identifier}/
2264
- * @secure
2265
- */
2266
- adminIntegrationsUpdate: (
2267
- identifier: string,
2268
- data: AdminIntegration,
2269
- params: RequestParams = {},
2270
- ) =>
2271
- this.request<AdminIntegrationsUpdateData, any>({
2272
- path: `/admin/integrations/${identifier}/`,
2273
- method: "PUT",
2274
- body: data,
2275
- secure: true,
2276
- type: ContentType.Json,
2277
- format: "json",
2278
- ...params,
2279
- }),
2280
-
2281
- /**
2282
- * No description
2283
- *
2284
- * @tags admin
2285
- * @name AdminIntegrationsPartialUpdate
2286
- * @summary Partially update integration
2287
- * @request PATCH:/admin/integrations/{identifier}/
2288
- * @secure
2289
- */
2290
- adminIntegrationsPartialUpdate: (
2291
- identifier: string,
2292
- data: PatchedAdminIntegration,
2293
- params: RequestParams = {},
2294
- ) =>
2295
- this.request<AdminIntegrationsPartialUpdateData, any>({
2296
- path: `/admin/integrations/${identifier}/`,
2297
- method: "PATCH",
2298
- body: data,
2299
- secure: true,
2300
- type: ContentType.Json,
2301
- format: "json",
2302
- ...params,
2303
- }),
2304
-
2305
- /**
2306
- * No description
2307
- *
2308
- * @tags admin
2309
- * @name AdminIntegrationsDestroy
2310
- * @summary Delete integration
2311
- * @request DELETE:/admin/integrations/{identifier}/
2312
- * @secure
2313
- */
2314
- adminIntegrationsDestroy: (
2315
- identifier: string,
2316
- params: RequestParams = {},
2317
- ) =>
2318
- this.request<AdminIntegrationsDestroyData, any>({
2319
- path: `/admin/integrations/${identifier}/`,
2320
- method: "DELETE",
2321
- secure: true,
2322
- format: "json",
2323
- ...params,
2324
- }),
2325
-
2326
- /**
2327
- * No description
2328
- *
2329
- * @tags admin
2330
- * @name AdminIntegrationsWebhooksList
2331
- * @summary List integration webhooks
2332
- * @request GET:/admin/integrations/{identifier}/webhooks/
2333
- * @secure
2334
- */
2335
- adminIntegrationsWebhooksList: (
2336
- { identifier, ...query }: AdminIntegrationsWebhooksListParams,
2337
- params: RequestParams = {},
2338
- ) =>
2339
- this.request<AdminIntegrationsWebhooksListData, any>({
2340
- path: `/admin/integrations/${identifier}/webhooks/`,
2341
- method: "GET",
2342
- query: query,
2343
- secure: true,
2344
- format: "json",
2345
- ...params,
2346
- }),
2347
-
2348
- /**
2349
- * No description
2350
- *
2351
- * @tags admin
2352
- * @name AdminIntegrationsWebhooksCreate
2353
- * @summary Create integration webhook
2354
- * @request POST:/admin/integrations/{identifier}/webhooks/
2355
- * @secure
2356
- */
2357
- adminIntegrationsWebhooksCreate: (
2358
- identifier: string,
2359
- data: AdminIntegrationWebhook,
2360
- params: RequestParams = {},
2361
- ) =>
2362
- this.request<AdminIntegrationsWebhooksCreateData, any>({
2363
- path: `/admin/integrations/${identifier}/webhooks/`,
2364
- method: "POST",
2365
- body: data,
2366
- secure: true,
2367
- type: ContentType.Json,
2368
- format: "json",
2369
- ...params,
2370
- }),
2371
-
2372
- /**
2373
- * No description
2374
- *
2375
- * @tags admin
2376
- * @name AdminIntegrationsWebhooksRetrieve
2377
- * @summary Retrieve integration webhook
2378
- * @request GET:/admin/integrations/{integration_id}/webhooks/{webhook_id}/
2379
- * @secure
2380
- */
2381
- adminIntegrationsWebhooksRetrieve: (
2382
- integrationId: string,
2383
- webhookId: string,
2384
- params: RequestParams = {},
2385
- ) =>
2386
- this.request<AdminIntegrationsWebhooksRetrieveData, any>({
2387
- path: `/admin/integrations/${integrationId}/webhooks/${webhookId}/`,
2388
- method: "GET",
2389
- secure: true,
2390
- format: "json",
2391
- ...params,
2392
- }),
2393
-
2394
- /**
2395
- * No description
2396
- *
2397
- * @tags admin
2398
- * @name AdminIntegrationsWebhooksUpdate
2399
- * @summary Update integration webhook
2400
- * @request PUT:/admin/integrations/{integration_id}/webhooks/{webhook_id}/
2401
- * @secure
2402
- */
2403
- adminIntegrationsWebhooksUpdate: (
2404
- integrationId: string,
2405
- webhookId: string,
2406
- data: AdminIntegrationWebhook,
2407
- params: RequestParams = {},
2408
- ) =>
2409
- this.request<AdminIntegrationsWebhooksUpdateData, any>({
2410
- path: `/admin/integrations/${integrationId}/webhooks/${webhookId}/`,
2411
- method: "PUT",
2412
- body: data,
2413
- secure: true,
2414
- type: ContentType.Json,
2415
- format: "json",
2416
- ...params,
2417
- }),
2418
-
2419
- /**
2420
- * No description
2421
- *
2422
- * @tags admin
2423
- * @name AdminIntegrationsWebhooksPartialUpdate
2424
- * @summary Partially update integration webhook
2425
- * @request PATCH:/admin/integrations/{integration_id}/webhooks/{webhook_id}/
2426
- * @secure
2427
- */
2428
- adminIntegrationsWebhooksPartialUpdate: (
2429
- integrationId: string,
2430
- webhookId: string,
2431
- data: PatchedAdminIntegrationWebhook,
2432
- params: RequestParams = {},
2433
- ) =>
2434
- this.request<AdminIntegrationsWebhooksPartialUpdateData, any>({
2435
- path: `/admin/integrations/${integrationId}/webhooks/${webhookId}/`,
2436
- method: "PATCH",
2437
- body: data,
2438
- secure: true,
2439
- type: ContentType.Json,
2440
- format: "json",
2441
- ...params,
2442
- }),
2443
-
2444
- /**
2445
- * No description
2446
- *
2447
- * @tags admin
2448
- * @name AdminIntegrationsWebhooksDestroy
2449
- * @summary Delete integration webhook
2450
- * @request DELETE:/admin/integrations/{integration_id}/webhooks/{webhook_id}/
2451
- * @secure
2452
- */
2453
- adminIntegrationsWebhooksDestroy: (
2454
- integrationId: string,
2455
- webhookId: string,
2456
- params: RequestParams = {},
2457
- ) =>
2458
- this.request<AdminIntegrationsWebhooksDestroyData, any>({
2459
- path: `/admin/integrations/${integrationId}/webhooks/${webhookId}/`,
2460
- method: "DELETE",
2461
- secure: true,
2462
- format: "json",
2463
- ...params,
2464
- }),
2465
-
2466
- /**
2467
- * No description
2468
- *
2469
- * @tags admin
2470
- * @name AdminRatePairsList
2471
- * @summary List rate pairs
2472
- * @request GET:/admin/rate-pairs/
2473
- * @secure
2474
- */
2475
- adminRatePairsList: (
2476
- query: AdminRatePairsListParams,
2477
- params: RequestParams = {},
2478
- ) =>
2479
- this.request<AdminRatePairsListData, any>({
2480
- path: `/admin/rate-pairs/`,
2481
- method: "GET",
2482
- query: query,
2483
- secure: true,
2484
- format: "json",
2485
- ...params,
2486
- }),
2487
-
2488
- /**
2489
- * No description
2490
- *
2491
- * @tags admin
2492
- * @name AdminRatePairsCreate
2493
- * @summary Create rate pair
2494
- * @request POST:/admin/rate-pairs/
2495
- * @secure
2496
- */
2497
- adminRatePairsCreate: (
2498
- data: AdminCreateRatePair,
2499
- params: RequestParams = {},
2500
- ) =>
2501
- this.request<AdminRatePairsCreateData, any>({
2502
- path: `/admin/rate-pairs/`,
2503
- method: "POST",
2504
- body: data,
2505
- secure: true,
2506
- type: ContentType.Json,
2507
- format: "json",
2508
- ...params,
2509
- }),
2510
-
2511
- /**
2512
- * No description
2513
- *
2514
- * @tags admin
2515
- * @name AdminRatePairsRetrieve
2516
- * @summary Retrieve rate pair
2517
- * @request GET:/admin/rate-pairs/{identifier}/
2518
- * @secure
2519
- */
2520
- adminRatePairsRetrieve: (identifier: string, params: RequestParams = {}) =>
2521
- this.request<AdminRatePairsRetrieveData, any>({
2522
- path: `/admin/rate-pairs/${identifier}/`,
2523
- method: "GET",
2524
- secure: true,
2525
- format: "json",
2526
- ...params,
2527
- }),
2528
-
2529
- /**
2530
- * No description
2531
- *
2532
- * @tags admin
2533
- * @name AdminRatePairsUpdate
2534
- * @summary Update rate pair
2535
- * @request PUT:/admin/rate-pairs/{identifier}/
2536
- * @secure
2537
- */
2538
- adminRatePairsUpdate: (
2539
- identifier: string,
2540
- data: AdminRatePair,
2541
- params: RequestParams = {},
2542
- ) =>
2543
- this.request<AdminRatePairsUpdateData, any>({
2544
- path: `/admin/rate-pairs/${identifier}/`,
2545
- method: "PUT",
2546
- body: data,
2547
- secure: true,
2548
- type: ContentType.Json,
2549
- format: "json",
2550
- ...params,
2551
- }),
2552
-
2553
- /**
2554
- * No description
2555
- *
2556
- * @tags admin
2557
- * @name AdminRatePairsPartialUpdate
2558
- * @summary Partially update rate pair
2559
- * @request PATCH:/admin/rate-pairs/{identifier}/
2560
- * @secure
2561
- */
2562
- adminRatePairsPartialUpdate: (
2563
- identifier: string,
2564
- data: PatchedAdminRatePair,
2565
- params: RequestParams = {},
2566
- ) =>
2567
- this.request<AdminRatePairsPartialUpdateData, any>({
2568
- path: `/admin/rate-pairs/${identifier}/`,
2569
- method: "PATCH",
2570
- body: data,
2571
- secure: true,
2572
- type: ContentType.Json,
2573
- format: "json",
2574
- ...params,
2575
- }),
2576
-
2577
- /**
2578
- * No description
2579
- *
2580
- * @tags admin
2581
- * @name AdminRatePairsDestroy
2582
- * @summary Delete rate pair
2583
- * @request DELETE:/admin/rate-pairs/{identifier}/
2584
- * @secure
2585
- */
2586
- adminRatePairsDestroy: (identifier: string, params: RequestParams = {}) =>
2587
- this.request<AdminRatePairsDestroyData, any>({
2588
- path: `/admin/rate-pairs/${identifier}/`,
2589
- method: "DELETE",
2590
- secure: true,
2591
- format: "json",
2592
- ...params,
2593
- }),
2594
-
2595
- /**
2596
- * No description
2597
- *
2598
- * @tags admin
2599
- * @name AdminUsersList
2600
- * @summary List users
2601
- * @request GET:/admin/users/
2602
- * @secure
2603
- */
2604
- adminUsersList: (query: AdminUsersListParams, params: RequestParams = {}) =>
2605
- this.request<AdminUsersListData, any>({
2606
- path: `/admin/users/`,
2607
- method: "GET",
2608
- query: query,
2609
- secure: true,
2610
- format: "json",
2611
- ...params,
2612
- }),
2613
-
2614
- /**
2615
- * No description
2616
- *
2617
- * @tags admin
2618
- * @name AdminUsersRetrieve
2619
- * @summary Retrieve user
2620
- * @request GET:/admin/users/{identifier}/
2621
- * @secure
2622
- */
2623
- adminUsersRetrieve: (identifier: string, params: RequestParams = {}) =>
2624
- this.request<AdminUsersRetrieveData, any>({
2625
- path: `/admin/users/${identifier}/`,
2626
- method: "GET",
2627
- secure: true,
2628
- format: "json",
2629
- ...params,
2630
- }),
2631
-
2632
- /**
2633
- * No description
2634
- *
2635
- * @tags admin
2636
- * @name AdminUsersUpdate
2637
- * @summary Update user
2638
- * @request PUT:/admin/users/{identifier}/
2639
- * @secure
2640
- */
2641
- adminUsersUpdate: (
2642
- identifier: string,
2643
- data: AdminUser,
2644
- params: RequestParams = {},
2645
- ) =>
2646
- this.request<AdminUsersUpdateData, any>({
2647
- path: `/admin/users/${identifier}/`,
2648
- method: "PUT",
2649
- body: data,
2650
- secure: true,
2651
- type: ContentType.Json,
2652
- format: "json",
2653
- ...params,
2654
- }),
2655
-
2656
- /**
2657
- * No description
2658
- *
2659
- * @tags admin
2660
- * @name AdminUsersPartialUpdate
2661
- * @summary Partially update user
2662
- * @request PATCH:/admin/users/{identifier}/
2663
- * @secure
2664
- */
2665
- adminUsersPartialUpdate: (
2666
- identifier: string,
2667
- data: PatchedAdminUser,
2668
- params: RequestParams = {},
2669
- ) =>
2670
- this.request<AdminUsersPartialUpdateData, any>({
2671
- path: `/admin/users/${identifier}/`,
2672
- method: "PATCH",
2673
- body: data,
2674
- secure: true,
2675
- type: ContentType.Json,
2676
- format: "json",
2677
- ...params,
2678
- }),
2679
- };
2680
- deactivate = {
2681
- /**
2682
- * No description
2683
- *
2684
- * @tags deactivate
2685
- * @name DeactivateCreate
2686
- * @summary Deactivate service
2687
- * @request POST:/deactivate/
2688
- * @secure
2689
- */
2690
- deactivateCreate: (data: Deactivate, params: RequestParams = {}) =>
2691
- this.request<DeactivateCreateData, any>({
2692
- path: `/deactivate/`,
2693
- method: "POST",
2694
- body: data,
2695
- secure: true,
2696
- type: ContentType.Json,
2697
- format: "json",
2698
- ...params,
2699
- }),
2700
- };
2701
- user = {
2702
- /**
2703
- * No description
2704
- *
2705
- * @tags user
2706
- * @name UserConversionPairsList
2707
- * @summary List conversion pairs
2708
- * @request GET:/user/conversion-pairs/
2709
- * @secure
2710
- */
2711
- userConversionPairsList: (
2712
- query: UserConversionPairsListParams,
2713
- params: RequestParams = {},
2714
- ) =>
2715
- this.request<UserConversionPairsListData, any>({
2716
- path: `/user/conversion-pairs/`,
2717
- method: "GET",
2718
- query: query,
2719
- secure: true,
2720
- format: "json",
2721
- ...params,
2722
- }),
2723
-
2724
- /**
2725
- * No description
2726
- *
2727
- * @tags user
2728
- * @name UserConversionPairsRetrieve
2729
- * @summary Retrieve conversion pair
2730
- * @request GET:/user/conversion-pairs/{identifier}/
2731
- * @secure
2732
- */
2733
- userConversionPairsRetrieve: (
2734
- identifier: string,
2735
- params: RequestParams = {},
2736
- ) =>
2737
- this.request<UserConversionPairsRetrieveData, any>({
2738
- path: `/user/conversion-pairs/${identifier}/`,
2739
- method: "GET",
2740
- secure: true,
2741
- format: "json",
2742
- ...params,
2743
- }),
2744
-
2745
- /**
2746
- * No description
2747
- *
2748
- * @tags user
2749
- * @name UserConversionsList
2750
- * @summary List conversions
2751
- * @request GET:/user/conversions/
2752
- * @secure
2753
- */
2754
- userConversionsList: (
2755
- query: UserConversionsListParams,
2756
- params: RequestParams = {},
2757
- ) =>
2758
- this.request<UserConversionsListData, any>({
2759
- path: `/user/conversions/`,
2760
- method: "GET",
2761
- query: query,
2762
- secure: true,
2763
- format: "json",
2764
- ...params,
2765
- }),
2766
-
2767
- /**
2768
- * No description
2769
- *
2770
- * @tags user
2771
- * @name UserConversionsCreate
2772
- * @summary Create conversion
2773
- * @request POST:/user/conversions/
2774
- * @secure
2775
- */
2776
- userConversionsCreate: (
2777
- data: UserCreateConversion,
2778
- params: RequestParams = {},
2779
- ) =>
2780
- this.request<UserConversionsCreateData, any>({
2781
- path: `/user/conversions/`,
2782
- method: "POST",
2783
- body: data,
2784
- secure: true,
2785
- type: ContentType.Json,
2786
- format: "json",
2787
- ...params,
2788
- }),
2789
-
2790
- /**
2791
- * No description
2792
- *
2793
- * @tags user
2794
- * @name UserConversionsRetrieve
2795
- * @summary Retrieve conversion
2796
- * @request GET:/user/conversions/{identifier}/
2797
- * @secure
2798
- */
2799
- userConversionsRetrieve: (identifier: string, params: RequestParams = {}) =>
2800
- this.request<UserConversionsRetrieveData, any>({
2801
- path: `/user/conversions/${identifier}/`,
2802
- method: "GET",
2803
- secure: true,
2804
- format: "json",
2805
- ...params,
2806
- }),
2807
-
2808
- /**
2809
- * No description
2810
- *
2811
- * @tags user
2812
- * @name UserConversionsUpdate
2813
- * @summary Update conversion
2814
- * @request PUT:/user/conversions/{identifier}/
2815
- * @secure
2816
- */
2817
- userConversionsUpdate: (
2818
- identifier: string,
2819
- data: UserUpdateConversion,
2820
- params: RequestParams = {},
2821
- ) =>
2822
- this.request<UserConversionsUpdateData, any>({
2823
- path: `/user/conversions/${identifier}/`,
2824
- method: "PUT",
2825
- body: data,
2826
- secure: true,
2827
- type: ContentType.Json,
2828
- format: "json",
2829
- ...params,
2830
- }),
2831
-
2832
- /**
2833
- * No description
2834
- *
2835
- * @tags user
2836
- * @name UserConversionsPartialUpdate
2837
- * @summary Partially update conversion
2838
- * @request PATCH:/user/conversions/{identifier}/
2839
- * @secure
2840
- */
2841
- userConversionsPartialUpdate: (
2842
- identifier: string,
2843
- data: PatchedUserUpdateConversion,
2844
- params: RequestParams = {},
2845
- ) =>
2846
- this.request<UserConversionsPartialUpdateData, any>({
2847
- path: `/user/conversions/${identifier}/`,
2848
- method: "PATCH",
2849
- body: data,
2850
- secure: true,
2851
- type: ContentType.Json,
2852
- format: "json",
2853
- ...params,
2854
- }),
2855
-
2856
- /**
2857
- * No description
2858
- *
2859
- * @tags user
2860
- * @name UserCurrenciesList
2861
- * @summary List currencies
2862
- * @request GET:/user/currencies/
2863
- * @secure
2864
- */
2865
- userCurrenciesList: (
2866
- query: UserCurrenciesListParams,
2867
- params: RequestParams = {},
2868
- ) =>
2869
- this.request<UserCurrenciesListData, any>({
2870
- path: `/user/currencies/`,
2871
- method: "GET",
2872
- query: query,
2873
- secure: true,
2874
- format: "json",
2875
- ...params,
2876
- }),
2877
-
2878
- /**
2879
- * No description
2880
- *
2881
- * @tags user
2882
- * @name UserCurrenciesRetrieve
2883
- * @summary Retrieve currency
2884
- * @request GET:/user/currencies/{code}/
2885
- * @secure
2886
- */
2887
- userCurrenciesRetrieve: (code: string, params: RequestParams = {}) =>
2888
- this.request<UserCurrenciesRetrieveData, any>({
2889
- path: `/user/currencies/${code}/`,
2890
- method: "GET",
2891
- secure: true,
2892
- format: "json",
2893
- ...params,
2894
- }),
2895
-
2896
- /**
2897
- * No description
2898
- *
2899
- * @tags user
2900
- * @name UserRatesList
2901
- * @summary List rates
2902
- * @request GET:/user/rates/
2903
- * @secure
2904
- */
2905
- userRatesList: (query: UserRatesListParams, params: RequestParams = {}) =>
2906
- this.request<UserRatesListData, any>({
2907
- path: `/user/rates/`,
2908
- method: "GET",
2909
- query: query,
2910
- secure: true,
2911
- format: "json",
2912
- ...params,
2913
- }),
2914
-
2915
- /**
2916
- * No description
2917
- *
2918
- * @tags user
2919
- * @name UserRatesRetrieve
2920
- * @summary Retrieve rate
2921
- * @request GET:/user/rates/{identifier}/
2922
- * @secure
2923
- */
2924
- userRatesRetrieve: (identifier: string, params: RequestParams = {}) =>
2925
- this.request<UserRatesRetrieveData, any>({
2926
- path: `/user/rates/${identifier}/`,
2927
- method: "GET",
2928
- secure: true,
2929
- format: "json",
2930
- ...params,
2931
- }),
2932
-
2933
- /**
2934
- * No description
2935
- *
2936
- * @tags user
2937
- * @name UserRatesSnapshotRetrieve
2938
- * @summary Retrieve rate snapshot
2939
- * @request GET:/user/rates/snapshot/
2940
- * @secure
2941
- */
2942
- userRatesSnapshotRetrieve: (params: RequestParams = {}) =>
2943
- this.request<UserRatesSnapshotRetrieveData, any>({
2944
- path: `/user/rates/snapshot/`,
2945
- method: "GET",
2946
- secure: true,
2947
- format: "json",
2948
- ...params,
2949
- }),
2950
-
2951
- /**
2952
- * No description
2953
- *
2954
- * @tags user
2955
- * @name UserRatesSnapshotsList
2956
- * @summary List rate snapshots
2957
- * @request GET:/user/rates/snapshots/
2958
- * @secure
2959
- */
2960
- userRatesSnapshotsList: (params: RequestParams = {}) =>
2961
- this.request<UserRatesSnapshotsListData, any>({
2962
- path: `/user/rates/snapshots/`,
2963
- method: "GET",
2964
- secure: true,
2965
- format: "json",
2966
- ...params,
2967
- }),
2968
-
2969
- /**
2970
- * No description
2971
- *
2972
- * @tags user
2973
- * @name UserSettingsRetrieve
2974
- * @summary Retrieve user settings
2975
- * @request GET:/user/settings/
2976
- * @secure
2977
- */
2978
- userSettingsRetrieve: (params: RequestParams = {}) =>
2979
- this.request<UserSettingsRetrieveData, any>({
2980
- path: `/user/settings/`,
2981
- method: "GET",
2982
- secure: true,
2983
- format: "json",
2984
- ...params,
2985
- }),
2986
-
2987
- /**
2988
- * No description
2989
- *
2990
- * @tags user
2991
- * @name UserSettingsUpdate
2992
- * @summary Update user settings
2993
- * @request PUT:/user/settings/
2994
- * @secure
2995
- */
2996
- userSettingsUpdate: (
2997
- data: UserUpdateSettings,
2998
- params: RequestParams = {},
2999
- ) =>
3000
- this.request<UserSettingsUpdateData, any>({
3001
- path: `/user/settings/`,
3002
- method: "PUT",
3003
- body: data,
3004
- secure: true,
3005
- type: ContentType.Json,
3006
- format: "json",
3007
- ...params,
3008
- }),
3009
-
3010
- /**
3011
- * No description
3012
- *
3013
- * @tags user
3014
- * @name UserSettingsPartialUpdate
3015
- * @summary Partially update user settings
3016
- * @request PATCH:/user/settings/
3017
- * @secure
3018
- */
3019
- userSettingsPartialUpdate: (
3020
- data: PatchedUserUpdateSettings,
3021
- params: RequestParams = {},
3022
- ) =>
3023
- this.request<UserSettingsPartialUpdateData, any>({
3024
- path: `/user/settings/`,
3025
- method: "PATCH",
3026
- body: data,
3027
- secure: true,
3028
- type: ContentType.Json,
3029
- format: "json",
3030
- ...params,
3031
- }),
3032
- };
3033
- webhook = {
3034
- /**
3035
- * No description
3036
- *
3037
- * @tags webhook
3038
- * @name WebhookCreate
3039
- * @summary Receive Platform webhook
3040
- * @request POST:/webhook/
3041
- * @secure
3042
- */
3043
- webhookCreate: (data: Webhook, params: RequestParams = {}) =>
3044
- this.request<WebhookCreateData, any>({
3045
- path: `/webhook/`,
3046
- method: "POST",
3047
- body: data,
3048
- secure: true,
3049
- type: ContentType.Json,
3050
- format: "json",
3051
- ...params,
3052
- }),
3053
- };
3054
- }