@rainapi/rain-sdk 0.1.0-alpha.3

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 (678) hide show
  1. package/CHANGELOG.md +71 -0
  2. package/LICENSE +201 -0
  3. package/README.md +412 -0
  4. package/api-promise.d.mts +2 -0
  5. package/api-promise.d.mts.map +1 -0
  6. package/api-promise.d.ts +2 -0
  7. package/api-promise.d.ts.map +1 -0
  8. package/api-promise.js +6 -0
  9. package/api-promise.js.map +1 -0
  10. package/api-promise.mjs +2 -0
  11. package/api-promise.mjs.map +1 -0
  12. package/client.d.mts +222 -0
  13. package/client.d.mts.map +1 -0
  14. package/client.d.ts +222 -0
  15. package/client.d.ts.map +1 -0
  16. package/client.js +501 -0
  17. package/client.js.map +1 -0
  18. package/client.mjs +497 -0
  19. package/client.mjs.map +1 -0
  20. package/core/api-promise.d.mts +46 -0
  21. package/core/api-promise.d.mts.map +1 -0
  22. package/core/api-promise.d.ts +46 -0
  23. package/core/api-promise.d.ts.map +1 -0
  24. package/core/api-promise.js +74 -0
  25. package/core/api-promise.js.map +1 -0
  26. package/core/api-promise.mjs +70 -0
  27. package/core/api-promise.mjs.map +1 -0
  28. package/core/error.d.mts +46 -0
  29. package/core/error.d.mts.map +1 -0
  30. package/core/error.d.ts +46 -0
  31. package/core/error.d.ts.map +1 -0
  32. package/core/error.js +113 -0
  33. package/core/error.js.map +1 -0
  34. package/core/error.mjs +97 -0
  35. package/core/error.mjs.map +1 -0
  36. package/core/resource.d.mts +6 -0
  37. package/core/resource.d.mts.map +1 -0
  38. package/core/resource.d.ts +6 -0
  39. package/core/resource.d.ts.map +1 -0
  40. package/core/resource.js +11 -0
  41. package/core/resource.js.map +1 -0
  42. package/core/resource.mjs +7 -0
  43. package/core/resource.mjs.map +1 -0
  44. package/core/uploads.d.mts +3 -0
  45. package/core/uploads.d.mts.map +1 -0
  46. package/core/uploads.d.ts +3 -0
  47. package/core/uploads.d.ts.map +1 -0
  48. package/core/uploads.js +6 -0
  49. package/core/uploads.js.map +1 -0
  50. package/core/uploads.mjs +2 -0
  51. package/core/uploads.mjs.map +1 -0
  52. package/error.d.mts +2 -0
  53. package/error.d.mts.map +1 -0
  54. package/error.d.ts +2 -0
  55. package/error.d.ts.map +1 -0
  56. package/error.js +6 -0
  57. package/error.js.map +1 -0
  58. package/error.mjs +2 -0
  59. package/error.mjs.map +1 -0
  60. package/index.d.mts +6 -0
  61. package/index.d.mts.map +1 -0
  62. package/index.d.ts +6 -0
  63. package/index.d.ts.map +1 -0
  64. package/index.js +30 -0
  65. package/index.js.map +1 -0
  66. package/index.mjs +7 -0
  67. package/index.mjs.map +1 -0
  68. package/internal/builtin-types.d.mts +73 -0
  69. package/internal/builtin-types.d.mts.map +1 -0
  70. package/internal/builtin-types.d.ts +73 -0
  71. package/internal/builtin-types.d.ts.map +1 -0
  72. package/internal/builtin-types.js +4 -0
  73. package/internal/builtin-types.js.map +1 -0
  74. package/internal/builtin-types.mjs +3 -0
  75. package/internal/builtin-types.mjs.map +1 -0
  76. package/internal/detect-platform.d.mts +15 -0
  77. package/internal/detect-platform.d.mts.map +1 -0
  78. package/internal/detect-platform.d.ts +15 -0
  79. package/internal/detect-platform.d.ts.map +1 -0
  80. package/internal/detect-platform.js +162 -0
  81. package/internal/detect-platform.js.map +1 -0
  82. package/internal/detect-platform.mjs +157 -0
  83. package/internal/detect-platform.mjs.map +1 -0
  84. package/internal/errors.d.mts +3 -0
  85. package/internal/errors.d.mts.map +1 -0
  86. package/internal/errors.d.ts +3 -0
  87. package/internal/errors.d.ts.map +1 -0
  88. package/internal/errors.js +41 -0
  89. package/internal/errors.js.map +1 -0
  90. package/internal/errors.mjs +36 -0
  91. package/internal/errors.mjs.map +1 -0
  92. package/internal/headers.d.mts +20 -0
  93. package/internal/headers.d.mts.map +1 -0
  94. package/internal/headers.d.ts +20 -0
  95. package/internal/headers.d.ts.map +1 -0
  96. package/internal/headers.js +79 -0
  97. package/internal/headers.js.map +1 -0
  98. package/internal/headers.mjs +74 -0
  99. package/internal/headers.mjs.map +1 -0
  100. package/internal/parse.d.mts +12 -0
  101. package/internal/parse.d.mts.map +1 -0
  102. package/internal/parse.d.ts +12 -0
  103. package/internal/parse.d.ts.map +1 -0
  104. package/internal/parse.js +40 -0
  105. package/internal/parse.js.map +1 -0
  106. package/internal/parse.mjs +37 -0
  107. package/internal/parse.mjs.map +1 -0
  108. package/internal/qs/formats.d.mts +7 -0
  109. package/internal/qs/formats.d.mts.map +1 -0
  110. package/internal/qs/formats.d.ts +7 -0
  111. package/internal/qs/formats.d.ts.map +1 -0
  112. package/internal/qs/formats.js +13 -0
  113. package/internal/qs/formats.js.map +1 -0
  114. package/internal/qs/formats.mjs +9 -0
  115. package/internal/qs/formats.mjs.map +1 -0
  116. package/internal/qs/index.d.mts +10 -0
  117. package/internal/qs/index.d.mts.map +1 -0
  118. package/internal/qs/index.d.ts +10 -0
  119. package/internal/qs/index.d.ts.map +1 -0
  120. package/internal/qs/index.js +14 -0
  121. package/internal/qs/index.js.map +1 -0
  122. package/internal/qs/index.mjs +10 -0
  123. package/internal/qs/index.mjs.map +1 -0
  124. package/internal/qs/stringify.d.mts +3 -0
  125. package/internal/qs/stringify.d.mts.map +1 -0
  126. package/internal/qs/stringify.d.ts +3 -0
  127. package/internal/qs/stringify.d.ts.map +1 -0
  128. package/internal/qs/stringify.js +277 -0
  129. package/internal/qs/stringify.js.map +1 -0
  130. package/internal/qs/stringify.mjs +274 -0
  131. package/internal/qs/stringify.mjs.map +1 -0
  132. package/internal/qs/types.d.mts +57 -0
  133. package/internal/qs/types.d.mts.map +1 -0
  134. package/internal/qs/types.d.ts +57 -0
  135. package/internal/qs/types.d.ts.map +1 -0
  136. package/internal/qs/types.js +3 -0
  137. package/internal/qs/types.js.map +1 -0
  138. package/internal/qs/types.mjs +2 -0
  139. package/internal/qs/types.mjs.map +1 -0
  140. package/internal/qs/utils.d.mts +15 -0
  141. package/internal/qs/utils.d.mts.map +1 -0
  142. package/internal/qs/utils.d.ts +15 -0
  143. package/internal/qs/utils.d.ts.map +1 -0
  144. package/internal/qs/utils.js +230 -0
  145. package/internal/qs/utils.js.map +1 -0
  146. package/internal/qs/utils.mjs +217 -0
  147. package/internal/qs/utils.mjs.map +1 -0
  148. package/internal/request-options.d.mts +75 -0
  149. package/internal/request-options.d.mts.map +1 -0
  150. package/internal/request-options.d.ts +75 -0
  151. package/internal/request-options.d.ts.map +1 -0
  152. package/internal/request-options.js +14 -0
  153. package/internal/request-options.js.map +1 -0
  154. package/internal/request-options.mjs +10 -0
  155. package/internal/request-options.mjs.map +1 -0
  156. package/internal/shim-types.d.mts +17 -0
  157. package/internal/shim-types.d.mts.map +1 -0
  158. package/internal/shim-types.d.ts +17 -0
  159. package/internal/shim-types.d.ts.map +1 -0
  160. package/internal/shim-types.js +4 -0
  161. package/internal/shim-types.js.map +1 -0
  162. package/internal/shim-types.mjs +3 -0
  163. package/internal/shim-types.mjs.map +1 -0
  164. package/internal/shims.d.mts +20 -0
  165. package/internal/shims.d.mts.map +1 -0
  166. package/internal/shims.d.ts +20 -0
  167. package/internal/shims.d.ts.map +1 -0
  168. package/internal/shims.js +92 -0
  169. package/internal/shims.js.map +1 -0
  170. package/internal/shims.mjs +85 -0
  171. package/internal/shims.mjs.map +1 -0
  172. package/internal/to-file.d.mts +45 -0
  173. package/internal/to-file.d.mts.map +1 -0
  174. package/internal/to-file.d.ts +45 -0
  175. package/internal/to-file.d.ts.map +1 -0
  176. package/internal/to-file.js +91 -0
  177. package/internal/to-file.js.map +1 -0
  178. package/internal/to-file.mjs +88 -0
  179. package/internal/to-file.mjs.map +1 -0
  180. package/internal/tslib.js +81 -0
  181. package/internal/tslib.mjs +17 -0
  182. package/internal/types.d.mts +69 -0
  183. package/internal/types.d.mts.map +1 -0
  184. package/internal/types.d.ts +69 -0
  185. package/internal/types.d.ts.map +1 -0
  186. package/internal/types.js +4 -0
  187. package/internal/types.js.map +1 -0
  188. package/internal/types.mjs +3 -0
  189. package/internal/types.mjs.map +1 -0
  190. package/internal/uploads.d.mts +42 -0
  191. package/internal/uploads.d.mts.map +1 -0
  192. package/internal/uploads.d.ts +42 -0
  193. package/internal/uploads.d.ts.map +1 -0
  194. package/internal/uploads.js +141 -0
  195. package/internal/uploads.js.map +1 -0
  196. package/internal/uploads.mjs +131 -0
  197. package/internal/uploads.mjs.map +1 -0
  198. package/internal/utils/base64.d.mts +3 -0
  199. package/internal/utils/base64.d.mts.map +1 -0
  200. package/internal/utils/base64.d.ts +3 -0
  201. package/internal/utils/base64.d.ts.map +1 -0
  202. package/internal/utils/base64.js +38 -0
  203. package/internal/utils/base64.js.map +1 -0
  204. package/internal/utils/base64.mjs +33 -0
  205. package/internal/utils/base64.mjs.map +1 -0
  206. package/internal/utils/bytes.d.mts +4 -0
  207. package/internal/utils/bytes.d.mts.map +1 -0
  208. package/internal/utils/bytes.d.ts +4 -0
  209. package/internal/utils/bytes.d.ts.map +1 -0
  210. package/internal/utils/bytes.js +31 -0
  211. package/internal/utils/bytes.js.map +1 -0
  212. package/internal/utils/bytes.mjs +26 -0
  213. package/internal/utils/bytes.mjs.map +1 -0
  214. package/internal/utils/env.d.mts +9 -0
  215. package/internal/utils/env.d.mts.map +1 -0
  216. package/internal/utils/env.d.ts +9 -0
  217. package/internal/utils/env.d.ts.map +1 -0
  218. package/internal/utils/env.js +22 -0
  219. package/internal/utils/env.js.map +1 -0
  220. package/internal/utils/env.mjs +18 -0
  221. package/internal/utils/env.mjs.map +1 -0
  222. package/internal/utils/log.d.mts +37 -0
  223. package/internal/utils/log.d.mts.map +1 -0
  224. package/internal/utils/log.d.ts +37 -0
  225. package/internal/utils/log.d.ts.map +1 -0
  226. package/internal/utils/log.js +86 -0
  227. package/internal/utils/log.js.map +1 -0
  228. package/internal/utils/log.mjs +80 -0
  229. package/internal/utils/log.mjs.map +1 -0
  230. package/internal/utils/path.d.mts +15 -0
  231. package/internal/utils/path.d.mts.map +1 -0
  232. package/internal/utils/path.d.ts +15 -0
  233. package/internal/utils/path.d.ts.map +1 -0
  234. package/internal/utils/path.js +79 -0
  235. package/internal/utils/path.js.map +1 -0
  236. package/internal/utils/path.mjs +74 -0
  237. package/internal/utils/path.mjs.map +1 -0
  238. package/internal/utils/sleep.d.mts +2 -0
  239. package/internal/utils/sleep.d.mts.map +1 -0
  240. package/internal/utils/sleep.d.ts +2 -0
  241. package/internal/utils/sleep.d.ts.map +1 -0
  242. package/internal/utils/sleep.js +7 -0
  243. package/internal/utils/sleep.js.map +1 -0
  244. package/internal/utils/sleep.mjs +3 -0
  245. package/internal/utils/sleep.mjs.map +1 -0
  246. package/internal/utils/uuid.d.mts +5 -0
  247. package/internal/utils/uuid.d.mts.map +1 -0
  248. package/internal/utils/uuid.d.ts +5 -0
  249. package/internal/utils/uuid.d.ts.map +1 -0
  250. package/internal/utils/uuid.js +19 -0
  251. package/internal/utils/uuid.js.map +1 -0
  252. package/internal/utils/uuid.mjs +15 -0
  253. package/internal/utils/uuid.mjs.map +1 -0
  254. package/internal/utils/values.d.mts +18 -0
  255. package/internal/utils/values.d.mts.map +1 -0
  256. package/internal/utils/values.d.ts +18 -0
  257. package/internal/utils/values.d.ts.map +1 -0
  258. package/internal/utils/values.js +112 -0
  259. package/internal/utils/values.js.map +1 -0
  260. package/internal/utils/values.mjs +94 -0
  261. package/internal/utils/values.mjs.map +1 -0
  262. package/internal/utils.d.mts +7 -0
  263. package/internal/utils.d.mts.map +1 -0
  264. package/internal/utils.d.ts +7 -0
  265. package/internal/utils.d.ts.map +1 -0
  266. package/internal/utils.js +11 -0
  267. package/internal/utils.js.map +1 -0
  268. package/internal/utils.mjs +8 -0
  269. package/internal/utils.mjs.map +1 -0
  270. package/package.json +138 -0
  271. package/resource.d.mts +2 -0
  272. package/resource.d.mts.map +1 -0
  273. package/resource.d.ts +2 -0
  274. package/resource.d.ts.map +1 -0
  275. package/resource.js +6 -0
  276. package/resource.js.map +1 -0
  277. package/resource.mjs +2 -0
  278. package/resource.mjs.map +1 -0
  279. package/resources/applications/applications.d.mts +14 -0
  280. package/resources/applications/applications.d.mts.map +1 -0
  281. package/resources/applications/applications.d.ts +14 -0
  282. package/resources/applications/applications.d.ts.map +1 -0
  283. package/resources/applications/applications.js +21 -0
  284. package/resources/applications/applications.js.map +1 -0
  285. package/resources/applications/applications.mjs +16 -0
  286. package/resources/applications/applications.mjs.map +1 -0
  287. package/resources/applications/company/company.d.mts +584 -0
  288. package/resources/applications/company/company.d.mts.map +1 -0
  289. package/resources/applications/company/company.d.ts +584 -0
  290. package/resources/applications/company/company.d.ts.map +1 -0
  291. package/resources/applications/company/company.js +138 -0
  292. package/resources/applications/company/company.js.map +1 -0
  293. package/resources/applications/company/company.mjs +133 -0
  294. package/resources/applications/company/company.mjs.map +1 -0
  295. package/resources/applications/company/index.d.mts +3 -0
  296. package/resources/applications/company/index.d.mts.map +1 -0
  297. package/resources/applications/company/index.d.ts +3 -0
  298. package/resources/applications/company/index.d.ts.map +1 -0
  299. package/resources/applications/company/index.js +9 -0
  300. package/resources/applications/company/index.js.map +1 -0
  301. package/resources/applications/company/index.mjs +4 -0
  302. package/resources/applications/company/index.mjs.map +1 -0
  303. package/resources/applications/company/ubo/document.d.mts +50 -0
  304. package/resources/applications/company/ubo/document.d.mts.map +1 -0
  305. package/resources/applications/company/ubo/document.d.ts +50 -0
  306. package/resources/applications/company/ubo/document.d.ts.map +1 -0
  307. package/resources/applications/company/ubo/document.js +32 -0
  308. package/resources/applications/company/ubo/document.js.map +1 -0
  309. package/resources/applications/company/ubo/document.mjs +28 -0
  310. package/resources/applications/company/ubo/document.mjs.map +1 -0
  311. package/resources/applications/company/ubo/index.d.mts +3 -0
  312. package/resources/applications/company/ubo/index.d.mts.map +1 -0
  313. package/resources/applications/company/ubo/index.d.ts +3 -0
  314. package/resources/applications/company/ubo/index.d.ts.map +1 -0
  315. package/resources/applications/company/ubo/index.js +9 -0
  316. package/resources/applications/company/ubo/index.js.map +1 -0
  317. package/resources/applications/company/ubo/index.mjs +4 -0
  318. package/resources/applications/company/ubo/index.mjs.map +1 -0
  319. package/resources/applications/company/ubo/ubo.d.mts +96 -0
  320. package/resources/applications/company/ubo/ubo.d.mts.map +1 -0
  321. package/resources/applications/company/ubo/ubo.d.ts +96 -0
  322. package/resources/applications/company/ubo/ubo.d.ts.map +1 -0
  323. package/resources/applications/company/ubo/ubo.js +48 -0
  324. package/resources/applications/company/ubo/ubo.js.map +1 -0
  325. package/resources/applications/company/ubo/ubo.mjs +43 -0
  326. package/resources/applications/company/ubo/ubo.mjs.map +1 -0
  327. package/resources/applications/company/ubo.d.mts +2 -0
  328. package/resources/applications/company/ubo.d.mts.map +1 -0
  329. package/resources/applications/company/ubo.d.ts +2 -0
  330. package/resources/applications/company/ubo.d.ts.map +1 -0
  331. package/resources/applications/company/ubo.js +6 -0
  332. package/resources/applications/company/ubo.js.map +1 -0
  333. package/resources/applications/company/ubo.mjs +3 -0
  334. package/resources/applications/company/ubo.mjs.map +1 -0
  335. package/resources/applications/company.d.mts +2 -0
  336. package/resources/applications/company.d.mts.map +1 -0
  337. package/resources/applications/company.d.ts +2 -0
  338. package/resources/applications/company.d.ts.map +1 -0
  339. package/resources/applications/company.js +6 -0
  340. package/resources/applications/company.js.map +1 -0
  341. package/resources/applications/company.mjs +3 -0
  342. package/resources/applications/company.mjs.map +1 -0
  343. package/resources/applications/index.d.mts +4 -0
  344. package/resources/applications/index.d.mts.map +1 -0
  345. package/resources/applications/index.d.ts +4 -0
  346. package/resources/applications/index.d.ts.map +1 -0
  347. package/resources/applications/index.js +11 -0
  348. package/resources/applications/index.js.map +1 -0
  349. package/resources/applications/index.mjs +5 -0
  350. package/resources/applications/index.mjs.map +1 -0
  351. package/resources/applications/user.d.mts +507 -0
  352. package/resources/applications/user.d.mts.map +1 -0
  353. package/resources/applications/user.d.ts +507 -0
  354. package/resources/applications/user.d.ts.map +1 -0
  355. package/resources/applications/user.js +103 -0
  356. package/resources/applications/user.js.map +1 -0
  357. package/resources/applications/user.mjs +99 -0
  358. package/resources/applications/user.mjs.map +1 -0
  359. package/resources/applications.d.mts +2 -0
  360. package/resources/applications.d.mts.map +1 -0
  361. package/resources/applications.d.ts +2 -0
  362. package/resources/applications.d.ts.map +1 -0
  363. package/resources/applications.js +6 -0
  364. package/resources/applications.js.map +1 -0
  365. package/resources/applications.mjs +3 -0
  366. package/resources/applications.mjs.map +1 -0
  367. package/resources/balances.d.mts +37 -0
  368. package/resources/balances.d.mts.map +1 -0
  369. package/resources/balances.d.ts +37 -0
  370. package/resources/balances.d.ts.map +1 -0
  371. package/resources/balances.js +17 -0
  372. package/resources/balances.js.map +1 -0
  373. package/resources/balances.mjs +13 -0
  374. package/resources/balances.mjs.map +1 -0
  375. package/resources/cards/cards.d.mts +188 -0
  376. package/resources/cards/cards.d.mts.map +1 -0
  377. package/resources/cards/cards.d.ts +188 -0
  378. package/resources/cards/cards.d.ts.map +1 -0
  379. package/resources/cards/cards.js +50 -0
  380. package/resources/cards/cards.js.map +1 -0
  381. package/resources/cards/cards.mjs +45 -0
  382. package/resources/cards/cards.mjs.map +1 -0
  383. package/resources/cards/index.d.mts +3 -0
  384. package/resources/cards/index.d.mts.map +1 -0
  385. package/resources/cards/index.d.ts +3 -0
  386. package/resources/cards/index.d.ts.map +1 -0
  387. package/resources/cards/index.js +9 -0
  388. package/resources/cards/index.js.map +1 -0
  389. package/resources/cards/index.mjs +4 -0
  390. package/resources/cards/index.mjs.map +1 -0
  391. package/resources/cards/pin.d.mts +73 -0
  392. package/resources/cards/pin.d.mts.map +1 -0
  393. package/resources/cards/pin.d.ts +73 -0
  394. package/resources/cards/pin.d.ts.map +1 -0
  395. package/resources/cards/pin.js +32 -0
  396. package/resources/cards/pin.js.map +1 -0
  397. package/resources/cards/pin.mjs +28 -0
  398. package/resources/cards/pin.mjs.map +1 -0
  399. package/resources/cards.d.mts +2 -0
  400. package/resources/cards.d.mts.map +1 -0
  401. package/resources/cards.d.ts +2 -0
  402. package/resources/cards.d.ts.map +1 -0
  403. package/resources/cards.js +6 -0
  404. package/resources/cards.js.map +1 -0
  405. package/resources/cards.mjs +3 -0
  406. package/resources/cards.mjs.map +1 -0
  407. package/resources/companies/companies.d.mts +252 -0
  408. package/resources/companies/companies.d.mts.map +1 -0
  409. package/resources/companies/companies.d.ts +252 -0
  410. package/resources/companies/companies.d.ts.map +1 -0
  411. package/resources/companies/companies.js +69 -0
  412. package/resources/companies/companies.js.map +1 -0
  413. package/resources/companies/companies.mjs +64 -0
  414. package/resources/companies/companies.mjs.map +1 -0
  415. package/resources/companies/index.d.mts +3 -0
  416. package/resources/companies/index.d.mts.map +1 -0
  417. package/resources/companies/index.d.ts +3 -0
  418. package/resources/companies/index.d.ts.map +1 -0
  419. package/resources/companies/index.js +9 -0
  420. package/resources/companies/index.js.map +1 -0
  421. package/resources/companies/index.mjs +4 -0
  422. package/resources/companies/index.mjs.map +1 -0
  423. package/resources/companies/signatures.d.mts +122 -0
  424. package/resources/companies/signatures.d.mts.map +1 -0
  425. package/resources/companies/signatures.d.ts +122 -0
  426. package/resources/companies/signatures.d.ts.map +1 -0
  427. package/resources/companies/signatures.js +24 -0
  428. package/resources/companies/signatures.js.map +1 -0
  429. package/resources/companies/signatures.mjs +20 -0
  430. package/resources/companies/signatures.mjs.map +1 -0
  431. package/resources/companies.d.mts +2 -0
  432. package/resources/companies.d.mts.map +1 -0
  433. package/resources/companies.d.ts +2 -0
  434. package/resources/companies.d.ts.map +1 -0
  435. package/resources/companies.js +6 -0
  436. package/resources/companies.js.map +1 -0
  437. package/resources/companies.mjs +3 -0
  438. package/resources/companies.mjs.map +1 -0
  439. package/resources/contracts.d.mts +15 -0
  440. package/resources/contracts.d.mts.map +1 -0
  441. package/resources/contracts.d.ts +15 -0
  442. package/resources/contracts.d.ts.map +1 -0
  443. package/resources/contracts.js +15 -0
  444. package/resources/contracts.js.map +1 -0
  445. package/resources/contracts.mjs +11 -0
  446. package/resources/contracts.mjs.map +1 -0
  447. package/resources/disputes/disputes.d.mts +88 -0
  448. package/resources/disputes/disputes.d.mts.map +1 -0
  449. package/resources/disputes/disputes.d.ts +88 -0
  450. package/resources/disputes/disputes.d.ts.map +1 -0
  451. package/resources/disputes/disputes.js +42 -0
  452. package/resources/disputes/disputes.js.map +1 -0
  453. package/resources/disputes/disputes.mjs +37 -0
  454. package/resources/disputes/disputes.mjs.map +1 -0
  455. package/resources/disputes/evidence.d.mts +32 -0
  456. package/resources/disputes/evidence.d.mts.map +1 -0
  457. package/resources/disputes/evidence.d.ts +32 -0
  458. package/resources/disputes/evidence.d.ts.map +1 -0
  459. package/resources/disputes/evidence.js +28 -0
  460. package/resources/disputes/evidence.js.map +1 -0
  461. package/resources/disputes/evidence.mjs +24 -0
  462. package/resources/disputes/evidence.mjs.map +1 -0
  463. package/resources/disputes/index.d.mts +3 -0
  464. package/resources/disputes/index.d.mts.map +1 -0
  465. package/resources/disputes/index.d.ts +3 -0
  466. package/resources/disputes/index.d.ts.map +1 -0
  467. package/resources/disputes/index.js +9 -0
  468. package/resources/disputes/index.js.map +1 -0
  469. package/resources/disputes/index.mjs +4 -0
  470. package/resources/disputes/index.mjs.map +1 -0
  471. package/resources/disputes.d.mts +2 -0
  472. package/resources/disputes.d.mts.map +1 -0
  473. package/resources/disputes.d.ts +2 -0
  474. package/resources/disputes.d.ts.map +1 -0
  475. package/resources/disputes.js +6 -0
  476. package/resources/disputes.js.map +1 -0
  477. package/resources/disputes.mjs +3 -0
  478. package/resources/disputes.mjs.map +1 -0
  479. package/resources/index.d.mts +12 -0
  480. package/resources/index.d.mts.map +1 -0
  481. package/resources/index.d.ts +12 -0
  482. package/resources/index.d.ts.map +1 -0
  483. package/resources/index.js +27 -0
  484. package/resources/index.js.map +1 -0
  485. package/resources/index.mjs +13 -0
  486. package/resources/index.mjs.map +1 -0
  487. package/resources/keys.d.mts +51 -0
  488. package/resources/keys.d.mts.map +1 -0
  489. package/resources/keys.d.ts +51 -0
  490. package/resources/keys.d.ts.map +1 -0
  491. package/resources/keys.js +28 -0
  492. package/resources/keys.js.map +1 -0
  493. package/resources/keys.mjs +24 -0
  494. package/resources/keys.mjs.map +1 -0
  495. package/resources/payments.d.mts +35 -0
  496. package/resources/payments.d.mts.map +1 -0
  497. package/resources/payments.d.ts +35 -0
  498. package/resources/payments.d.ts.map +1 -0
  499. package/resources/payments.js +17 -0
  500. package/resources/payments.js.map +1 -0
  501. package/resources/payments.mjs +13 -0
  502. package/resources/payments.mjs.map +1 -0
  503. package/resources/signatures.d.mts +65 -0
  504. package/resources/signatures.d.mts.map +1 -0
  505. package/resources/signatures.d.ts +65 -0
  506. package/resources/signatures.d.ts.map +1 -0
  507. package/resources/signatures.js +23 -0
  508. package/resources/signatures.js.map +1 -0
  509. package/resources/signatures.mjs +19 -0
  510. package/resources/signatures.mjs.map +1 -0
  511. package/resources/transactions/index.d.mts +3 -0
  512. package/resources/transactions/index.d.mts.map +1 -0
  513. package/resources/transactions/index.d.ts +3 -0
  514. package/resources/transactions/index.d.ts.map +1 -0
  515. package/resources/transactions/index.js +9 -0
  516. package/resources/transactions/index.js.map +1 -0
  517. package/resources/transactions/index.mjs +4 -0
  518. package/resources/transactions/index.mjs.map +1 -0
  519. package/resources/transactions/receipt.d.mts +26 -0
  520. package/resources/transactions/receipt.d.mts.map +1 -0
  521. package/resources/transactions/receipt.d.ts +26 -0
  522. package/resources/transactions/receipt.d.ts.map +1 -0
  523. package/resources/transactions/receipt.js +30 -0
  524. package/resources/transactions/receipt.js.map +1 -0
  525. package/resources/transactions/receipt.mjs +26 -0
  526. package/resources/transactions/receipt.mjs.map +1 -0
  527. package/resources/transactions/transactions.d.mts +401 -0
  528. package/resources/transactions/transactions.d.mts.map +1 -0
  529. package/resources/transactions/transactions.d.ts +401 -0
  530. package/resources/transactions/transactions.d.ts.map +1 -0
  531. package/resources/transactions/transactions.js +52 -0
  532. package/resources/transactions/transactions.js.map +1 -0
  533. package/resources/transactions/transactions.mjs +47 -0
  534. package/resources/transactions/transactions.mjs.map +1 -0
  535. package/resources/transactions.d.mts +2 -0
  536. package/resources/transactions.d.mts.map +1 -0
  537. package/resources/transactions.d.ts +2 -0
  538. package/resources/transactions.d.ts.map +1 -0
  539. package/resources/transactions.js +6 -0
  540. package/resources/transactions.js.map +1 -0
  541. package/resources/transactions.mjs +3 -0
  542. package/resources/transactions.mjs.map +1 -0
  543. package/resources/users/index.d.mts +3 -0
  544. package/resources/users/index.d.mts.map +1 -0
  545. package/resources/users/index.d.ts +3 -0
  546. package/resources/users/index.d.ts.map +1 -0
  547. package/resources/users/index.js +9 -0
  548. package/resources/users/index.js.map +1 -0
  549. package/resources/users/index.mjs +4 -0
  550. package/resources/users/index.mjs.map +1 -0
  551. package/resources/users/signatures.d.mts +92 -0
  552. package/resources/users/signatures.d.mts.map +1 -0
  553. package/resources/users/signatures.d.ts +92 -0
  554. package/resources/users/signatures.d.ts.map +1 -0
  555. package/resources/users/signatures.js +51 -0
  556. package/resources/users/signatures.js.map +1 -0
  557. package/resources/users/signatures.mjs +47 -0
  558. package/resources/users/signatures.mjs.map +1 -0
  559. package/resources/users/users.d.mts +349 -0
  560. package/resources/users/users.d.mts.map +1 -0
  561. package/resources/users/users.d.ts +349 -0
  562. package/resources/users/users.d.ts.map +1 -0
  563. package/resources/users/users.js +174 -0
  564. package/resources/users/users.js.map +1 -0
  565. package/resources/users/users.mjs +169 -0
  566. package/resources/users/users.mjs.map +1 -0
  567. package/resources/users.d.mts +2 -0
  568. package/resources/users.d.mts.map +1 -0
  569. package/resources/users.d.ts +2 -0
  570. package/resources/users.d.ts.map +1 -0
  571. package/resources/users.js +6 -0
  572. package/resources/users.js.map +1 -0
  573. package/resources/users.mjs +3 -0
  574. package/resources/users.mjs.map +1 -0
  575. package/resources.d.mts +2 -0
  576. package/resources.d.mts.map +1 -0
  577. package/resources.d.ts +2 -0
  578. package/resources.d.ts.map +1 -0
  579. package/resources.js +5 -0
  580. package/resources.js.map +1 -0
  581. package/resources.mjs +2 -0
  582. package/resources.mjs.map +1 -0
  583. package/src/api-promise.ts +2 -0
  584. package/src/client.ts +914 -0
  585. package/src/core/README.md +3 -0
  586. package/src/core/api-promise.ts +92 -0
  587. package/src/core/error.ts +130 -0
  588. package/src/core/resource.ts +11 -0
  589. package/src/core/uploads.ts +2 -0
  590. package/src/error.ts +2 -0
  591. package/src/index.ts +22 -0
  592. package/src/internal/README.md +3 -0
  593. package/src/internal/builtin-types.ts +93 -0
  594. package/src/internal/detect-platform.ts +196 -0
  595. package/src/internal/errors.ts +33 -0
  596. package/src/internal/headers.ts +97 -0
  597. package/src/internal/parse.ts +56 -0
  598. package/src/internal/qs/LICENSE.md +13 -0
  599. package/src/internal/qs/README.md +3 -0
  600. package/src/internal/qs/formats.ts +10 -0
  601. package/src/internal/qs/index.ts +13 -0
  602. package/src/internal/qs/stringify.ts +385 -0
  603. package/src/internal/qs/types.ts +71 -0
  604. package/src/internal/qs/utils.ts +265 -0
  605. package/src/internal/request-options.ts +91 -0
  606. package/src/internal/shim-types.ts +26 -0
  607. package/src/internal/shims.ts +107 -0
  608. package/src/internal/to-file.ts +154 -0
  609. package/src/internal/types.ts +95 -0
  610. package/src/internal/uploads.ts +187 -0
  611. package/src/internal/utils/base64.ts +40 -0
  612. package/src/internal/utils/bytes.ts +32 -0
  613. package/src/internal/utils/env.ts +18 -0
  614. package/src/internal/utils/log.ts +127 -0
  615. package/src/internal/utils/path.ts +88 -0
  616. package/src/internal/utils/sleep.ts +3 -0
  617. package/src/internal/utils/uuid.ts +17 -0
  618. package/src/internal/utils/values.ts +105 -0
  619. package/src/internal/utils.ts +8 -0
  620. package/src/lib/.keep +4 -0
  621. package/src/resource.ts +2 -0
  622. package/src/resources/applications/applications.ts +61 -0
  623. package/src/resources/applications/company/company.ts +750 -0
  624. package/src/resources/applications/company/index.ts +15 -0
  625. package/src/resources/applications/company/ubo/document.ts +89 -0
  626. package/src/resources/applications/company/ubo/index.ts +4 -0
  627. package/src/resources/applications/company/ubo/ubo.ts +158 -0
  628. package/src/resources/applications/company/ubo.ts +3 -0
  629. package/src/resources/applications/company.ts +3 -0
  630. package/src/resources/applications/index.ts +25 -0
  631. package/src/resources/applications/user.ts +666 -0
  632. package/src/resources/applications.ts +3 -0
  633. package/src/resources/balances.ts +47 -0
  634. package/src/resources/cards/cards.ts +274 -0
  635. package/src/resources/cards/index.ts +14 -0
  636. package/src/resources/cards/pin.ts +108 -0
  637. package/src/resources/cards.ts +3 -0
  638. package/src/resources/companies/companies.ts +371 -0
  639. package/src/resources/companies/index.ts +23 -0
  640. package/src/resources/companies/signatures.ts +162 -0
  641. package/src/resources/companies.ts +3 -0
  642. package/src/resources/contracts.ts +21 -0
  643. package/src/resources/disputes/disputes.ts +135 -0
  644. package/src/resources/disputes/evidence.ts +56 -0
  645. package/src/resources/disputes/index.ts +10 -0
  646. package/src/resources/disputes.ts +3 -0
  647. package/src/resources/index.ts +66 -0
  648. package/src/resources/keys.ts +70 -0
  649. package/src/resources/payments.ts +47 -0
  650. package/src/resources/signatures.ts +91 -0
  651. package/src/resources/transactions/index.ts +11 -0
  652. package/src/resources/transactions/receipt.ts +48 -0
  653. package/src/resources/transactions/transactions.ts +522 -0
  654. package/src/resources/transactions.ts +3 -0
  655. package/src/resources/users/index.ts +20 -0
  656. package/src/resources/users/signatures.ts +121 -0
  657. package/src/resources/users/users.ts +471 -0
  658. package/src/resources/users.ts +3 -0
  659. package/src/resources.ts +1 -0
  660. package/src/tsconfig.json +11 -0
  661. package/src/uploads.ts +2 -0
  662. package/src/version.ts +1 -0
  663. package/uploads.d.mts +2 -0
  664. package/uploads.d.mts.map +1 -0
  665. package/uploads.d.ts +2 -0
  666. package/uploads.d.ts.map +1 -0
  667. package/uploads.js +6 -0
  668. package/uploads.js.map +1 -0
  669. package/uploads.mjs +2 -0
  670. package/uploads.mjs.map +1 -0
  671. package/version.d.mts +2 -0
  672. package/version.d.mts.map +1 -0
  673. package/version.d.ts +2 -0
  674. package/version.d.ts.map +1 -0
  675. package/version.js +5 -0
  676. package/version.js.map +1 -0
  677. package/version.mjs +2 -0
  678. package/version.mjs.map +1 -0
@@ -0,0 +1,584 @@
1
+ import { APIResource } from "../../../core/resource.js";
2
+ import * as CompanyAPI from "./company.js";
3
+ import * as UboAPI from "./ubo/ubo.js";
4
+ import { Ubo, UboUpdateParams, UboUploadDocumentParams } from "./ubo/ubo.js";
5
+ import { APIPromise } from "../../../core/api-promise.js";
6
+ import { type Uploadable } from "../../../core/uploads.js";
7
+ import { RequestOptions } from "../../../internal/request-options.js";
8
+ export declare class Company extends APIResource {
9
+ ubo: UboAPI.Ubo;
10
+ /**
11
+ * Submits an application to create a corporate account. The application requires
12
+ * details about the company, its legal entity, representatives, and beneficial
13
+ * owners. The initial user must provide a wallet address.
14
+ *
15
+ * @example
16
+ * ```ts
17
+ * const issuingCompany = await client.applications.company.create({
18
+ * address: {
19
+ * city: 'city',
20
+ * country: 'country',
21
+ * countryCode: 'xx',
22
+ * line1: 'line1',
23
+ * postalCode: 'postalCode',
24
+ * region: 'region',
25
+ * },
26
+ * entity: {
27
+ * name: 'name',
28
+ * registrationNumber: 'registrationNumber',
29
+ * taxId: 'taxId',
30
+ * website: 'website',
31
+ * },
32
+ * initialUser: {
33
+ * address: { ... },
34
+ * birthDate: '2000-01-01',
35
+ * countryOfIssue: 'xx',
36
+ * email: 'email',
37
+ * firstName: 'firstName',
38
+ * lastName: 'lastName',
39
+ * nationalId: 'nationalId',
40
+ * ipAddress: 'ipAddress',
41
+ * isTermsOfServiceAccepted: true,
42
+ * },
43
+ * name: 'name',
44
+ * representatives: [
45
+ * {
46
+ * address: { ... },
47
+ * birthDate: '2000-01-01',
48
+ * countryOfIssue: 'xx',
49
+ * email: 'email',
50
+ * firstName: 'firstName',
51
+ * lastName: 'lastName',
52
+ * nationalId: 'nationalId',
53
+ * },
54
+ * ],
55
+ * ultimateBeneficialOwners: [
56
+ * {
57
+ * address: { ... },
58
+ * birthDate: '2000-01-01',
59
+ * countryOfIssue: 'xx',
60
+ * email: 'email',
61
+ * firstName: 'firstName',
62
+ * lastName: 'lastName',
63
+ * nationalId: 'nationalId',
64
+ * },
65
+ * ],
66
+ * });
67
+ * ```
68
+ */
69
+ create(body: CompanyCreateParams, options?: RequestOptions): APIPromise<IssuingCompany>;
70
+ /**
71
+ * Retrieves the current status and details of a company's corporate application,
72
+ * including the company's ultimate beneficial owners and application progress.
73
+ *
74
+ * @example
75
+ * ```ts
76
+ * const company = await client.applications.company.retrieve(
77
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
78
+ * );
79
+ * ```
80
+ */
81
+ retrieve(companyID: string, options?: RequestOptions): APIPromise<CompanyRetrieveResponse>;
82
+ /**
83
+ * Updates the information for an existing corporate account application. The
84
+ * company's details, including name, address, and legal entity information, can be
85
+ * modified through this endpoint.
86
+ *
87
+ * @example
88
+ * ```ts
89
+ * const issuingCompany =
90
+ * await client.applications.company.update(
91
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
92
+ * );
93
+ * ```
94
+ */
95
+ update(companyID: string, body?: CompanyUpdateParams | null | undefined, options?: RequestOptions): APIPromise<IssuingCompany>;
96
+ /**
97
+ * Allows a company to reapply or respond to a request for information after
98
+ * submitting their corporate application. This endpoint is typically used when
99
+ * additional information or corrections are needed.
100
+ *
101
+ * @deprecated
102
+ */
103
+ reapply(companyID: string, body: CompanyReapplyParams, options?: RequestOptions): APIPromise<IssuingCompany>;
104
+ /**
105
+ * Uploads a document that supports a company's corporate application. This is
106
+ * typically used to provide additional documentation, such as proof of address,
107
+ * incorporation certificates, or other required legal documents.
108
+ *
109
+ * @example
110
+ * ```ts
111
+ * await client.applications.company.uploadDocument(
112
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
113
+ * { document: fs.createReadStream('path/to/file') },
114
+ * );
115
+ * ```
116
+ */
117
+ uploadDocument(companyID: string, body: CompanyUploadDocumentParams, options?: RequestOptions): APIPromise<void>;
118
+ }
119
+ /**
120
+ * The details of an issuing application.
121
+ */
122
+ export interface IssuingApplication {
123
+ /**
124
+ * Represents the possible statuses of an application.
125
+ */
126
+ applicationStatus: 'approved' | 'pending' | 'needsInformation' | 'needsVerification' | 'manualReview' | 'denied' | 'locked' | 'canceled';
127
+ /**
128
+ * The link to the application completion page
129
+ */
130
+ applicationCompletionLink?: IssuingApplication.ApplicationCompletionLink;
131
+ /**
132
+ * @deprecated The link to the external verification page for the application
133
+ */
134
+ applicationExternalVerificationLink?: IssuingApplication.ApplicationExternalVerificationLink;
135
+ /**
136
+ * The reason behind the current application status
137
+ */
138
+ applicationReason?: string;
139
+ }
140
+ export declare namespace IssuingApplication {
141
+ /**
142
+ * The link to the application completion page
143
+ */
144
+ interface ApplicationCompletionLink {
145
+ /**
146
+ * The URL for the completion page
147
+ */
148
+ url: string;
149
+ params?: ApplicationCompletionLink.Params;
150
+ }
151
+ namespace ApplicationCompletionLink {
152
+ interface Params {
153
+ /**
154
+ * The user's unique identifier
155
+ */
156
+ userId?: string;
157
+ }
158
+ }
159
+ /**
160
+ * @deprecated The link to the external verification page for the application
161
+ */
162
+ interface ApplicationExternalVerificationLink {
163
+ /**
164
+ * The URL for the external verification page
165
+ */
166
+ url: string;
167
+ params?: ApplicationExternalVerificationLink.Params;
168
+ }
169
+ namespace ApplicationExternalVerificationLink {
170
+ interface Params {
171
+ /**
172
+ * The user's unique identifier
173
+ */
174
+ userId?: string;
175
+ }
176
+ }
177
+ }
178
+ export interface IssuingApplicationPerson {
179
+ /**
180
+ * The person's address
181
+ */
182
+ address: PhysicalAddress;
183
+ /**
184
+ * The person's birth date
185
+ */
186
+ birthDate: string;
187
+ /**
188
+ * The 2-digit country code of the person's national ID issuer
189
+ */
190
+ countryOfIssue: string;
191
+ /**
192
+ * The user's email address
193
+ */
194
+ email: string;
195
+ /**
196
+ * The person's first name
197
+ */
198
+ firstName: string;
199
+ /**
200
+ * The person's last name
201
+ */
202
+ lastName: string;
203
+ /**
204
+ * The person's national ID number. For the US, this is a 9-digit SSN
205
+ */
206
+ nationalId: string;
207
+ /**
208
+ * The person's unique identifier
209
+ */
210
+ id?: string;
211
+ /**
212
+ * The country code for the phone number
213
+ */
214
+ phoneCountryCode?: string;
215
+ /**
216
+ * The phone number of the person
217
+ */
218
+ phoneNumber?: string;
219
+ }
220
+ /**
221
+ * The details of an issuing application.
222
+ */
223
+ export interface IssuingCompany extends IssuingApplication {
224
+ /**
225
+ * The company's unique identifier
226
+ */
227
+ id: string;
228
+ /**
229
+ * The company's physical address
230
+ */
231
+ address: PhysicalAddress;
232
+ /**
233
+ * The company's name on the Rain platform
234
+ */
235
+ name: string;
236
+ /**
237
+ * The company's ultimate beneficial owners (UBOs)
238
+ */
239
+ ultimateBeneficialOwners?: Array<IssuingCompany.UltimateBeneficialOwner>;
240
+ }
241
+ export declare namespace IssuingCompany {
242
+ /**
243
+ * The details of an issuing application.
244
+ */
245
+ interface UltimateBeneficialOwner extends CompanyAPI.IssuingApplication {
246
+ /**
247
+ * The UBO's unique identifier
248
+ */
249
+ id: string;
250
+ }
251
+ }
252
+ /**
253
+ * Represents a physical address with components like street, city, region, postal
254
+ * code, and country.
255
+ */
256
+ export interface PhysicalAddress {
257
+ /**
258
+ * The city of the address
259
+ */
260
+ city: string;
261
+ /**
262
+ * The full name of the country
263
+ */
264
+ country: string;
265
+ /**
266
+ * The 2-letter country code of the address
267
+ */
268
+ countryCode: string;
269
+ /**
270
+ * The first line of the street address
271
+ */
272
+ line1: string;
273
+ /**
274
+ * The postal or zip code of the address
275
+ */
276
+ postalCode: string;
277
+ /**
278
+ * The region or state of the address
279
+ */
280
+ region: string;
281
+ /**
282
+ * The second line of the street address (optional)
283
+ */
284
+ line2?: string;
285
+ }
286
+ /**
287
+ * The details of an issuing application.
288
+ */
289
+ export interface CompanyRetrieveResponse extends IssuingApplication {
290
+ /**
291
+ * The identifier of the company application
292
+ */
293
+ id: string;
294
+ /**
295
+ * The company's ultimate beneficial owners (UBOs)
296
+ */
297
+ ultimateBeneficialOwners: Array<CompanyRetrieveResponse.UltimateBeneficialOwner>;
298
+ }
299
+ export declare namespace CompanyRetrieveResponse {
300
+ /**
301
+ * The details of an issuing application.
302
+ */
303
+ interface UltimateBeneficialOwner extends CompanyAPI.IssuingApplication {
304
+ /**
305
+ * The UBO's unique identifier
306
+ */
307
+ id: string;
308
+ /**
309
+ * The UBO's email address
310
+ */
311
+ email?: string;
312
+ /**
313
+ * The UBO's first name
314
+ */
315
+ firstName?: string;
316
+ /**
317
+ * The UBO's last name
318
+ */
319
+ lastName?: string;
320
+ }
321
+ }
322
+ export interface CompanyCreateParams {
323
+ /**
324
+ * The company's physical address
325
+ */
326
+ address: PhysicalAddress;
327
+ /**
328
+ * The company's legal entity details.
329
+ */
330
+ entity: CompanyCreateParams.Entity;
331
+ /**
332
+ * The initial user of the company. This user must have a wallet address, and their
333
+ * wallet address will be associated as an owner on the company's Rain smart
334
+ * contract.
335
+ */
336
+ initialUser: CompanyCreateParams.InitialUser;
337
+ /**
338
+ * The name of the company requesting to create an account
339
+ */
340
+ name: string;
341
+ /**
342
+ * The company's representatives
343
+ */
344
+ representatives: Array<IssuingApplicationPerson>;
345
+ /**
346
+ * The company's ultimate beneficial owners (UBOs)
347
+ */
348
+ ultimateBeneficialOwners: Array<IssuingApplicationPerson>;
349
+ /**
350
+ * The chain ID of the external collateral contract, if used. Not required when
351
+ * using Rain's collateral contracts.
352
+ */
353
+ chainId?: string;
354
+ /**
355
+ * The address of the external collateral contract, if used. Not required when
356
+ * using Rain's collateral contracts.
357
+ */
358
+ contractAddress?: string;
359
+ /**
360
+ * A unique identifier for the origin of the user
361
+ */
362
+ sourceKey?: string;
363
+ }
364
+ export declare namespace CompanyCreateParams {
365
+ /**
366
+ * The company's legal entity details.
367
+ */
368
+ interface Entity {
369
+ /**
370
+ * The legal entity's name
371
+ */
372
+ name: string;
373
+ /**
374
+ * The legal entity's registration number
375
+ */
376
+ registrationNumber: string;
377
+ /**
378
+ * The legal entity's national tax id
379
+ */
380
+ taxId: string;
381
+ /**
382
+ * The legal entity's website
383
+ */
384
+ website: string;
385
+ /**
386
+ * A brief description of the legal entity and its activities
387
+ */
388
+ description?: string;
389
+ /**
390
+ * The estimated monthly spending by the legal entity
391
+ */
392
+ expectedSpend?: string;
393
+ /**
394
+ * The type of legal entity (e.g., LLC, S Corp)
395
+ */
396
+ type?: string;
397
+ }
398
+ /**
399
+ * The initial user of the company. This user must have a wallet address, and their
400
+ * wallet address will be associated as an owner on the company's Rain smart
401
+ * contract.
402
+ */
403
+ interface InitialUser extends CompanyAPI.IssuingApplicationPerson {
404
+ /**
405
+ * This user's IP address
406
+ */
407
+ ipAddress: string;
408
+ /**
409
+ * Indicates whether the user has accepted the terms of service
410
+ */
411
+ isTermsOfServiceAccepted: true;
412
+ /**
413
+ * This user's role at their company (not their role on the Rain platform)
414
+ */
415
+ role?: string;
416
+ /**
417
+ * The user's Solana address. Either this or a EVM address is required if using a
418
+ * Rain-managed solution, but optional otherwise.
419
+ */
420
+ solanaAddress?: string;
421
+ /**
422
+ * The user's Ethereum Virtual Machine (EVM) address. Either this or a Solana
423
+ * address is required if using a Rain-managed solution, but optional otherwise.
424
+ */
425
+ walletAddress?: string;
426
+ }
427
+ }
428
+ export interface CompanyUpdateParams {
429
+ /**
430
+ * The company's physical address
431
+ */
432
+ address?: PhysicalAddress;
433
+ /**
434
+ * The company's legal entity details.
435
+ */
436
+ entity?: CompanyUpdateParams.Entity;
437
+ /**
438
+ * The name of the company for the corporate application
439
+ */
440
+ name?: string;
441
+ }
442
+ export declare namespace CompanyUpdateParams {
443
+ /**
444
+ * The company's legal entity details.
445
+ */
446
+ interface Entity {
447
+ /**
448
+ * A brief description of the legal entity and its activities
449
+ */
450
+ description?: string;
451
+ /**
452
+ * The estimated monthly spending by the legal entity
453
+ */
454
+ expectedSpend?: string;
455
+ /**
456
+ * The legal entity's registration number
457
+ */
458
+ registrationNumber?: string;
459
+ /**
460
+ * The legal entity's national tax ID
461
+ */
462
+ taxId?: string;
463
+ /**
464
+ * The type of legal entity (e.g., LLC, S Corp)
465
+ */
466
+ type?: string;
467
+ /**
468
+ * The legal entity's website
469
+ */
470
+ website?: string;
471
+ }
472
+ }
473
+ export interface CompanyReapplyParams {
474
+ /**
475
+ * The company's physical address
476
+ */
477
+ address: PhysicalAddress;
478
+ /**
479
+ * The company's legal entity details.
480
+ */
481
+ entity: CompanyReapplyParams.Entity;
482
+ /**
483
+ * The initial user of the company who will be the owner on the Rain smart
484
+ * contract. This user must provide various personal details.
485
+ */
486
+ initialUser: CompanyReapplyParams.InitialUser;
487
+ /**
488
+ * The name of the company reapplying for the corporate application
489
+ */
490
+ name: string;
491
+ /**
492
+ * The company's representatives
493
+ */
494
+ representatives: Array<IssuingApplicationPerson>;
495
+ /**
496
+ * The company's ultimate beneficial owners (UBOs)
497
+ */
498
+ ultimateBeneficialOwners: Array<IssuingApplicationPerson>;
499
+ }
500
+ export declare namespace CompanyReapplyParams {
501
+ /**
502
+ * The company's legal entity details.
503
+ */
504
+ interface Entity {
505
+ /**
506
+ * The legal entity's website
507
+ */
508
+ website: string;
509
+ /**
510
+ * A brief description of the legal entity, and its activities
511
+ */
512
+ description?: string;
513
+ /**
514
+ * The estimated monthly spending by the legal entity
515
+ */
516
+ expectedSpend?: string;
517
+ /**
518
+ * The type of legal entity (e.g., LLC, S Corp)
519
+ */
520
+ type?: string;
521
+ }
522
+ /**
523
+ * The initial user of the company who will be the owner on the Rain smart
524
+ * contract. This user must provide various personal details.
525
+ */
526
+ interface InitialUser {
527
+ /**
528
+ * The user's address
529
+ */
530
+ address: CompanyAPI.PhysicalAddress;
531
+ /**
532
+ * The user's birth date
533
+ */
534
+ birthDate: string;
535
+ /**
536
+ * The 2-digit country code of the user's national ID issuer
537
+ */
538
+ countryOfIssue: string;
539
+ /**
540
+ * The user's IP address
541
+ */
542
+ ipAddress: string;
543
+ /**
544
+ * Indicates whether the user has accepted the terms of service
545
+ */
546
+ isTermsOfServiceAccepted: true;
547
+ /**
548
+ * The user's national ID number. For the US, this is a 9-digit SSN
549
+ */
550
+ nationalId: string;
551
+ /**
552
+ * This user's role at their company (not their role on the Rain platform)
553
+ */
554
+ role?: string;
555
+ }
556
+ }
557
+ export interface CompanyUploadDocumentParams {
558
+ /**
559
+ * The actual document file to be uploaded. The document must be in binary format,
560
+ * and the maximum allowed size is 20 MB.
561
+ */
562
+ document: Uploadable;
563
+ /**
564
+ * The country where the document was issued
565
+ */
566
+ country?: string;
567
+ /**
568
+ * The name of the document being uploaded
569
+ */
570
+ name?: string;
571
+ /**
572
+ * The side of the document being uploaded
573
+ */
574
+ side?: 'front' | 'back';
575
+ /**
576
+ * The type of the document being uploaded
577
+ */
578
+ type?: 'directorsRegistry' | 'stateRegistry' | 'incumbencyCert' | 'proofOfAddress' | 'trustAgreement' | 'informationStatement' | 'incorporationCert' | 'incorporationArticles' | 'shareholderRegistry' | 'goodStandingCert' | 'powerOfAttorney' | 'other';
579
+ }
580
+ export declare namespace Company {
581
+ export { type IssuingApplication as IssuingApplication, type IssuingApplicationPerson as IssuingApplicationPerson, type IssuingCompany as IssuingCompany, type PhysicalAddress as PhysicalAddress, type CompanyRetrieveResponse as CompanyRetrieveResponse, type CompanyCreateParams as CompanyCreateParams, type CompanyUpdateParams as CompanyUpdateParams, type CompanyReapplyParams as CompanyReapplyParams, type CompanyUploadDocumentParams as CompanyUploadDocumentParams, };
582
+ export { Ubo as Ubo, type UboUpdateParams as UboUpdateParams, type UboUploadDocumentParams as UboUploadDocumentParams, };
583
+ }
584
+ //# sourceMappingURL=company.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"company.d.ts","sourceRoot":"","sources":["../../../src/resources/applications/company/company.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,UAAU;OACf,KAAK,MAAM;OACX,EAAE,GAAG,EAAE,eAAe,EAAE,uBAAuB,EAAE;OACjD,EAAE,UAAU,EAAE;OACd,EAAE,KAAK,UAAU,EAAE;OAEnB,EAAE,cAAc,EAAE;AAIzB,qBAAa,OAAQ,SAAQ,W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