increase 0.377.0 → 0.378.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 (1262) hide show
  1. package/CHANGELOG.md +180 -4442
  2. package/README.md +115 -50
  3. package/api-promise.d.mts +2 -0
  4. package/api-promise.d.mts.map +1 -0
  5. package/api-promise.d.ts +2 -0
  6. package/api-promise.d.ts.map +1 -0
  7. package/api-promise.js +6 -0
  8. package/api-promise.js.map +1 -0
  9. package/api-promise.mjs +2 -0
  10. package/api-promise.mjs.map +1 -0
  11. package/bin/cli +46 -0
  12. package/bin/migration-config.json +6 -0
  13. package/client.d.mts +382 -0
  14. package/client.d.mts.map +1 -0
  15. package/client.d.ts +382 -0
  16. package/client.d.ts.map +1 -0
  17. package/client.js +650 -0
  18. package/client.js.map +1 -0
  19. package/client.mjs +646 -0
  20. package/client.mjs.map +1 -0
  21. package/core/api-promise.d.mts +46 -0
  22. package/core/api-promise.d.mts.map +1 -0
  23. package/core/api-promise.d.ts +46 -0
  24. package/core/api-promise.d.ts.map +1 -0
  25. package/core/api-promise.js +74 -0
  26. package/core/api-promise.js.map +1 -0
  27. package/core/api-promise.mjs +70 -0
  28. package/core/api-promise.mjs.map +1 -0
  29. package/core/error.d.mts +145 -0
  30. package/core/error.d.mts.map +1 -0
  31. package/core/error.d.ts +145 -0
  32. package/core/error.d.ts.map +1 -0
  33. package/core/error.js +280 -0
  34. package/core/error.js.map +1 -0
  35. package/core/error.mjs +253 -0
  36. package/core/error.mjs.map +1 -0
  37. package/core/pagination.d.mts +67 -0
  38. package/core/pagination.d.mts.map +1 -0
  39. package/core/pagination.d.ts +67 -0
  40. package/core/pagination.d.ts.map +1 -0
  41. package/core/pagination.js +101 -0
  42. package/core/pagination.js.map +1 -0
  43. package/core/pagination.mjs +95 -0
  44. package/core/pagination.mjs.map +1 -0
  45. package/core/resource.d.mts +6 -0
  46. package/core/resource.d.mts.map +1 -0
  47. package/core/resource.d.ts +6 -0
  48. package/core/resource.d.ts.map +1 -0
  49. package/core/resource.js +11 -0
  50. package/core/resource.js.map +1 -0
  51. package/core/resource.mjs +7 -0
  52. package/core/resource.mjs.map +1 -0
  53. package/core/uploads.d.mts +3 -0
  54. package/core/uploads.d.mts.map +1 -0
  55. package/core/uploads.d.ts +3 -0
  56. package/core/uploads.d.ts.map +1 -0
  57. package/core/uploads.js +6 -0
  58. package/core/uploads.js.map +1 -0
  59. package/core/uploads.mjs +2 -0
  60. package/core/uploads.mjs.map +1 -0
  61. package/error.d.mts +2 -0
  62. package/error.d.mts.map +1 -0
  63. package/error.d.ts +1 -145
  64. package/error.d.ts.map +1 -1
  65. package/error.js +3 -277
  66. package/error.js.map +1 -1
  67. package/error.mjs +1 -252
  68. package/error.mjs.map +1 -1
  69. package/index.d.mts +7 -320
  70. package/index.d.mts.map +1 -0
  71. package/index.d.ts +6 -319
  72. package/index.d.ts.map +1 -1
  73. package/index.js +14 -358
  74. package/index.js.map +1 -1
  75. package/index.mjs +6 -331
  76. package/index.mjs.map +1 -1
  77. package/internal/builtin-types.d.mts +73 -0
  78. package/internal/builtin-types.d.mts.map +1 -0
  79. package/internal/builtin-types.d.ts +73 -0
  80. package/internal/builtin-types.d.ts.map +1 -0
  81. package/internal/builtin-types.js +4 -0
  82. package/internal/builtin-types.js.map +1 -0
  83. package/internal/builtin-types.mjs +3 -0
  84. package/internal/builtin-types.mjs.map +1 -0
  85. package/internal/detect-platform.d.mts +15 -0
  86. package/internal/detect-platform.d.mts.map +1 -0
  87. package/internal/detect-platform.d.ts +15 -0
  88. package/internal/detect-platform.d.ts.map +1 -0
  89. package/internal/detect-platform.js +162 -0
  90. package/internal/detect-platform.js.map +1 -0
  91. package/internal/detect-platform.mjs +157 -0
  92. package/internal/detect-platform.mjs.map +1 -0
  93. package/internal/errors.d.mts +3 -0
  94. package/internal/errors.d.mts.map +1 -0
  95. package/internal/errors.d.ts +3 -0
  96. package/internal/errors.d.ts.map +1 -0
  97. package/internal/errors.js +41 -0
  98. package/internal/errors.js.map +1 -0
  99. package/internal/errors.mjs +36 -0
  100. package/internal/errors.mjs.map +1 -0
  101. package/internal/headers.d.mts +20 -0
  102. package/internal/headers.d.mts.map +1 -0
  103. package/internal/headers.d.ts +20 -0
  104. package/internal/headers.d.ts.map +1 -0
  105. package/internal/headers.js +79 -0
  106. package/internal/headers.js.map +1 -0
  107. package/internal/headers.mjs +74 -0
  108. package/internal/headers.mjs.map +1 -0
  109. package/internal/parse.d.mts +12 -0
  110. package/internal/parse.d.mts.map +1 -0
  111. package/internal/parse.d.ts +12 -0
  112. package/internal/parse.d.ts.map +1 -0
  113. package/internal/parse.js +35 -0
  114. package/internal/parse.js.map +1 -0
  115. package/internal/parse.mjs +32 -0
  116. package/internal/parse.mjs.map +1 -0
  117. package/internal/qs/formats.d.mts +7 -0
  118. package/internal/qs/formats.d.mts.map +1 -0
  119. package/internal/qs/formats.d.ts +1 -0
  120. package/internal/qs/formats.d.ts.map +1 -1
  121. package/internal/qs/formats.js +4 -2
  122. package/internal/qs/formats.js.map +1 -1
  123. package/internal/qs/formats.mjs +2 -1
  124. package/internal/qs/formats.mjs.map +1 -1
  125. package/internal/qs/index.d.mts +10 -0
  126. package/internal/qs/index.d.mts.map +1 -0
  127. package/internal/qs/index.d.ts.map +1 -1
  128. package/internal/qs/stringify.d.mts +3 -0
  129. package/internal/qs/stringify.d.mts.map +1 -0
  130. package/internal/qs/stringify.d.ts.map +1 -1
  131. package/internal/qs/stringify.js +16 -19
  132. package/internal/qs/stringify.js.map +1 -1
  133. package/internal/qs/stringify.mjs +17 -19
  134. package/internal/qs/stringify.mjs.map +1 -1
  135. package/internal/qs/types.d.mts +57 -0
  136. package/internal/qs/types.d.mts.map +1 -0
  137. package/internal/qs/utils.d.mts +15 -0
  138. package/internal/qs/utils.d.mts.map +1 -0
  139. package/internal/qs/utils.d.ts +1 -0
  140. package/internal/qs/utils.d.ts.map +1 -1
  141. package/internal/qs/utils.js +22 -21
  142. package/internal/qs/utils.js.map +1 -1
  143. package/internal/qs/utils.mjs +12 -12
  144. package/internal/qs/utils.mjs.map +1 -1
  145. package/internal/request-options.d.mts +75 -0
  146. package/internal/request-options.d.mts.map +1 -0
  147. package/internal/request-options.d.ts +75 -0
  148. package/internal/request-options.d.ts.map +1 -0
  149. package/internal/request-options.js +14 -0
  150. package/internal/request-options.js.map +1 -0
  151. package/internal/request-options.mjs +10 -0
  152. package/internal/request-options.mjs.map +1 -0
  153. package/internal/shim-types.d.mts +17 -0
  154. package/internal/shim-types.d.mts.map +1 -0
  155. package/internal/shim-types.d.ts +17 -0
  156. package/internal/shim-types.d.ts.map +1 -0
  157. package/internal/shim-types.js +4 -0
  158. package/internal/shim-types.js.map +1 -0
  159. package/internal/shim-types.mjs +3 -0
  160. package/internal/shim-types.mjs.map +1 -0
  161. package/internal/shims.d.mts +20 -0
  162. package/internal/shims.d.mts.map +1 -0
  163. package/internal/shims.d.ts +20 -0
  164. package/internal/shims.d.ts.map +1 -0
  165. package/internal/shims.js +92 -0
  166. package/internal/shims.js.map +1 -0
  167. package/internal/shims.mjs +85 -0
  168. package/internal/shims.mjs.map +1 -0
  169. package/internal/to-file.d.mts +45 -0
  170. package/internal/to-file.d.mts.map +1 -0
  171. package/internal/to-file.d.ts +45 -0
  172. package/internal/to-file.d.ts.map +1 -0
  173. package/internal/to-file.js +91 -0
  174. package/internal/to-file.js.map +1 -0
  175. package/internal/to-file.mjs +88 -0
  176. package/internal/to-file.mjs.map +1 -0
  177. package/internal/tslib.js +81 -0
  178. package/internal/tslib.mjs +17 -0
  179. package/internal/types.d.mts +69 -0
  180. package/internal/types.d.mts.map +1 -0
  181. package/internal/types.d.ts +69 -0
  182. package/internal/types.d.ts.map +1 -0
  183. package/internal/types.js +4 -0
  184. package/internal/types.js.map +1 -0
  185. package/internal/types.mjs +3 -0
  186. package/internal/types.mjs.map +1 -0
  187. package/internal/uploads.d.mts +42 -0
  188. package/internal/uploads.d.mts.map +1 -0
  189. package/internal/uploads.d.ts +42 -0
  190. package/internal/uploads.d.ts.map +1 -0
  191. package/internal/uploads.js +141 -0
  192. package/internal/uploads.js.map +1 -0
  193. package/internal/uploads.mjs +131 -0
  194. package/internal/uploads.mjs.map +1 -0
  195. package/internal/utils/base64.d.mts +3 -0
  196. package/internal/utils/base64.d.mts.map +1 -0
  197. package/internal/utils/base64.d.ts +3 -0
  198. package/internal/utils/base64.d.ts.map +1 -0
  199. package/internal/utils/base64.js +38 -0
  200. package/internal/utils/base64.js.map +1 -0
  201. package/internal/utils/base64.mjs +33 -0
  202. package/internal/utils/base64.mjs.map +1 -0
  203. package/internal/utils/bytes.d.mts +4 -0
  204. package/internal/utils/bytes.d.mts.map +1 -0
  205. package/internal/utils/bytes.d.ts +4 -0
  206. package/internal/utils/bytes.d.ts.map +1 -0
  207. package/internal/utils/bytes.js +31 -0
  208. package/internal/utils/bytes.js.map +1 -0
  209. package/internal/utils/bytes.mjs +26 -0
  210. package/internal/utils/bytes.mjs.map +1 -0
  211. package/internal/utils/env.d.mts +9 -0
  212. package/internal/utils/env.d.mts.map +1 -0
  213. package/internal/utils/env.d.ts +9 -0
  214. package/internal/utils/env.d.ts.map +1 -0
  215. package/internal/utils/env.js +22 -0
  216. package/internal/utils/env.js.map +1 -0
  217. package/internal/utils/env.mjs +18 -0
  218. package/internal/utils/env.mjs.map +1 -0
  219. package/internal/utils/log.d.mts +37 -0
  220. package/internal/utils/log.d.mts.map +1 -0
  221. package/internal/utils/log.d.ts +37 -0
  222. package/internal/utils/log.d.ts.map +1 -0
  223. package/internal/utils/log.js +85 -0
  224. package/internal/utils/log.js.map +1 -0
  225. package/internal/utils/log.mjs +79 -0
  226. package/internal/utils/log.mjs.map +1 -0
  227. package/internal/utils/path.d.mts +15 -0
  228. package/internal/utils/path.d.mts.map +1 -0
  229. package/internal/utils/path.d.ts +15 -0
  230. package/internal/utils/path.d.ts.map +1 -0
  231. package/internal/utils/path.js +79 -0
  232. package/internal/utils/path.js.map +1 -0
  233. package/internal/utils/path.mjs +74 -0
  234. package/internal/utils/path.mjs.map +1 -0
  235. package/internal/utils/sleep.d.mts +2 -0
  236. package/internal/utils/sleep.d.mts.map +1 -0
  237. package/internal/utils/sleep.d.ts +2 -0
  238. package/internal/utils/sleep.d.ts.map +1 -0
  239. package/internal/utils/sleep.js +7 -0
  240. package/internal/utils/sleep.js.map +1 -0
  241. package/internal/utils/sleep.mjs +3 -0
  242. package/internal/utils/sleep.mjs.map +1 -0
  243. package/internal/utils/uuid.d.mts +5 -0
  244. package/internal/utils/uuid.d.mts.map +1 -0
  245. package/internal/utils/uuid.d.ts +5 -0
  246. package/internal/utils/uuid.d.ts.map +1 -0
  247. package/internal/utils/uuid.js +19 -0
  248. package/internal/utils/uuid.js.map +1 -0
  249. package/internal/utils/uuid.mjs +15 -0
  250. package/internal/utils/uuid.mjs.map +1 -0
  251. package/internal/utils/values.d.mts +18 -0
  252. package/internal/utils/values.d.mts.map +1 -0
  253. package/internal/utils/values.d.ts +18 -0
  254. package/internal/utils/values.d.ts.map +1 -0
  255. package/internal/utils/values.js +112 -0
  256. package/internal/utils/values.js.map +1 -0
  257. package/internal/utils/values.mjs +94 -0
  258. package/internal/utils/values.mjs.map +1 -0
  259. package/internal/utils.d.mts +7 -0
  260. package/internal/utils.d.mts.map +1 -0
  261. package/internal/utils.d.ts +7 -0
  262. package/internal/utils.d.ts.map +1 -0
  263. package/internal/utils.js +11 -0
  264. package/internal/utils.js.map +1 -0
  265. package/internal/utils.mjs +8 -0
  266. package/internal/utils.mjs.map +1 -0
  267. package/package.json +114 -66
  268. package/pagination.d.mts +2 -0
  269. package/pagination.d.mts.map +1 -0
  270. package/pagination.d.ts +1 -30
  271. package/pagination.d.ts.map +1 -1
  272. package/pagination.js +3 -37
  273. package/pagination.js.map +1 -1
  274. package/pagination.mjs +1 -35
  275. package/pagination.mjs.map +1 -1
  276. package/resource.d.mts +2 -0
  277. package/resource.d.mts.map +1 -0
  278. package/resource.d.ts +1 -5
  279. package/resource.d.ts.map +1 -1
  280. package/resource.js +3 -8
  281. package/resource.js.map +1 -1
  282. package/resource.mjs +1 -6
  283. package/resource.mjs.map +1 -1
  284. package/resources/account-numbers.d.mts +309 -0
  285. package/resources/account-numbers.d.mts.map +1 -0
  286. package/resources/account-numbers.d.ts +10 -11
  287. package/resources/account-numbers.d.ts.map +1 -1
  288. package/resources/account-numbers.js +20 -16
  289. package/resources/account-numbers.js.map +1 -1
  290. package/resources/account-numbers.mjs +19 -14
  291. package/resources/account-numbers.mjs.map +1 -1
  292. package/resources/account-statements.d.mts +113 -0
  293. package/resources/account-statements.d.mts.map +1 -0
  294. package/resources/account-statements.d.ts +8 -9
  295. package/resources/account-statements.d.ts.map +1 -1
  296. package/resources/account-statements.js +18 -14
  297. package/resources/account-statements.js.map +1 -1
  298. package/resources/account-statements.mjs +17 -12
  299. package/resources/account-statements.mjs.map +1 -1
  300. package/resources/account-transfers.d.mts +325 -0
  301. package/resources/account-transfers.d.mts.map +1 -0
  302. package/resources/account-transfers.d.ts +11 -12
  303. package/resources/account-transfers.d.ts.map +1 -1
  304. package/resources/account-transfers.js +22 -18
  305. package/resources/account-transfers.js.map +1 -1
  306. package/resources/account-transfers.mjs +21 -16
  307. package/resources/account-transfers.mjs.map +1 -1
  308. package/resources/accounts.d.mts +291 -0
  309. package/resources/accounts.d.mts.map +1 -0
  310. package/resources/accounts.d.ts +12 -14
  311. package/resources/accounts.d.ts.map +1 -1
  312. package/resources/accounts.js +35 -23
  313. package/resources/accounts.js.map +1 -1
  314. package/resources/accounts.mjs +34 -21
  315. package/resources/accounts.mjs.map +1 -1
  316. package/resources/ach-prenotifications.d.mts +473 -0
  317. package/resources/ach-prenotifications.d.mts.map +1 -0
  318. package/resources/ach-prenotifications.d.ts +9 -10
  319. package/resources/ach-prenotifications.d.ts.map +1 -1
  320. package/resources/ach-prenotifications.js +18 -14
  321. package/resources/ach-prenotifications.js.map +1 -1
  322. package/resources/ach-prenotifications.mjs +17 -12
  323. package/resources/ach-prenotifications.mjs.map +1 -1
  324. package/resources/ach-transfers.d.mts +1091 -0
  325. package/resources/ach-transfers.d.mts.map +1 -0
  326. package/resources/ach-transfers.d.ts +11 -12
  327. package/resources/ach-transfers.d.ts.map +1 -1
  328. package/resources/ach-transfers.js +22 -18
  329. package/resources/ach-transfers.js.map +1 -1
  330. package/resources/ach-transfers.mjs +21 -16
  331. package/resources/ach-transfers.mjs.map +1 -1
  332. package/resources/bookkeeping-accounts.d.mts +164 -0
  333. package/resources/bookkeeping-accounts.d.mts.map +1 -0
  334. package/resources/bookkeeping-accounts.d.ts +10 -12
  335. package/resources/bookkeeping-accounts.d.ts.map +1 -1
  336. package/resources/bookkeeping-accounts.js +34 -19
  337. package/resources/bookkeeping-accounts.js.map +1 -1
  338. package/resources/bookkeeping-accounts.mjs +33 -17
  339. package/resources/bookkeeping-accounts.mjs.map +1 -1
  340. package/resources/bookkeeping-entries.d.mts +74 -0
  341. package/resources/bookkeeping-entries.d.mts.map +1 -0
  342. package/resources/bookkeeping-entries.d.ts +8 -9
  343. package/resources/bookkeeping-entries.d.ts.map +1 -1
  344. package/resources/bookkeeping-entries.js +18 -14
  345. package/resources/bookkeeping-entries.js.map +1 -1
  346. package/resources/bookkeeping-entries.mjs +17 -12
  347. package/resources/bookkeeping-entries.mjs.map +1 -1
  348. package/resources/bookkeeping-entry-sets.d.mts +156 -0
  349. package/resources/bookkeeping-entry-sets.d.mts.map +1 -0
  350. package/resources/bookkeeping-entry-sets.d.ts +9 -10
  351. package/resources/bookkeeping-entry-sets.d.ts.map +1 -1
  352. package/resources/bookkeeping-entry-sets.js +18 -14
  353. package/resources/bookkeeping-entry-sets.js.map +1 -1
  354. package/resources/bookkeeping-entry-sets.mjs +17 -12
  355. package/resources/bookkeeping-entry-sets.mjs.map +1 -1
  356. package/resources/card-disputes.d.mts +5657 -0
  357. package/resources/card-disputes.d.mts.map +1 -0
  358. package/resources/card-disputes.d.ts +11 -12
  359. package/resources/card-disputes.d.ts.map +1 -1
  360. package/resources/card-disputes.js +25 -18
  361. package/resources/card-disputes.js.map +1 -1
  362. package/resources/card-disputes.mjs +24 -16
  363. package/resources/card-disputes.mjs.map +1 -1
  364. package/resources/card-payments.d.mts +4523 -0
  365. package/resources/card-payments.d.mts.map +1 -0
  366. package/resources/card-payments.d.ts +8 -9
  367. package/resources/card-payments.d.ts.map +1 -1
  368. package/resources/card-payments.js +18 -14
  369. package/resources/card-payments.js.map +1 -1
  370. package/resources/card-payments.mjs +17 -12
  371. package/resources/card-payments.mjs.map +1 -1
  372. package/resources/card-purchase-supplements.d.mts +266 -0
  373. package/resources/card-purchase-supplements.d.mts.map +1 -0
  374. package/resources/card-purchase-supplements.d.ts +8 -9
  375. package/resources/card-purchase-supplements.d.ts.map +1 -1
  376. package/resources/card-purchase-supplements.js +18 -14
  377. package/resources/card-purchase-supplements.js.map +1 -1
  378. package/resources/card-purchase-supplements.mjs +17 -12
  379. package/resources/card-purchase-supplements.mjs.map +1 -1
  380. package/resources/card-push-transfers.d.mts +992 -0
  381. package/resources/card-push-transfers.d.mts.map +1 -0
  382. package/resources/card-push-transfers.d.ts +11 -12
  383. package/resources/card-push-transfers.d.ts.map +1 -1
  384. package/resources/card-push-transfers.js +22 -18
  385. package/resources/card-push-transfers.js.map +1 -1
  386. package/resources/card-push-transfers.mjs +21 -16
  387. package/resources/card-push-transfers.mjs.map +1 -1
  388. package/resources/card-tokens.d.mts +153 -0
  389. package/resources/card-tokens.d.mts.map +1 -0
  390. package/resources/card-tokens.d.ts +9 -10
  391. package/resources/card-tokens.d.ts.map +1 -1
  392. package/resources/card-tokens.js +20 -16
  393. package/resources/card-tokens.js.map +1 -1
  394. package/resources/card-tokens.mjs +19 -14
  395. package/resources/card-tokens.mjs.map +1 -1
  396. package/resources/card-validations.d.mts +513 -0
  397. package/resources/card-validations.d.mts.map +1 -0
  398. package/resources/card-validations.d.ts +9 -10
  399. package/resources/card-validations.d.ts.map +1 -1
  400. package/resources/card-validations.js +18 -14
  401. package/resources/card-validations.js.map +1 -1
  402. package/resources/card-validations.mjs +17 -12
  403. package/resources/card-validations.mjs.map +1 -1
  404. package/resources/cards.d.mts +486 -0
  405. package/resources/cards.d.mts.map +1 -0
  406. package/resources/cards.d.ts +13 -14
  407. package/resources/cards.d.ts.map +1 -1
  408. package/resources/cards.js +26 -22
  409. package/resources/cards.js.map +1 -1
  410. package/resources/cards.mjs +25 -20
  411. package/resources/cards.mjs.map +1 -1
  412. package/resources/check-deposits.d.mts +453 -0
  413. package/resources/check-deposits.d.mts.map +1 -0
  414. package/resources/check-deposits.d.ts +9 -10
  415. package/resources/check-deposits.d.ts.map +1 -1
  416. package/resources/check-deposits.js +18 -14
  417. package/resources/check-deposits.js.map +1 -1
  418. package/resources/check-deposits.mjs +17 -12
  419. package/resources/check-deposits.mjs.map +1 -1
  420. package/resources/check-transfers.d.mts +874 -0
  421. package/resources/check-transfers.d.mts.map +1 -0
  422. package/resources/check-transfers.d.ts +12 -13
  423. package/resources/check-transfers.d.ts.map +1 -1
  424. package/resources/check-transfers.js +24 -20
  425. package/resources/check-transfers.js.map +1 -1
  426. package/resources/check-transfers.mjs +23 -18
  427. package/resources/check-transfers.mjs.map +1 -1
  428. package/resources/declined-transactions.d.mts +1161 -0
  429. package/resources/declined-transactions.d.mts.map +1 -0
  430. package/resources/declined-transactions.d.ts +8 -9
  431. package/resources/declined-transactions.d.ts.map +1 -1
  432. package/resources/declined-transactions.js +21 -14
  433. package/resources/declined-transactions.js.map +1 -1
  434. package/resources/declined-transactions.mjs +20 -12
  435. package/resources/declined-transactions.mjs.map +1 -1
  436. package/resources/digital-card-profiles.d.mts +303 -0
  437. package/resources/digital-card-profiles.d.mts.map +1 -0
  438. package/resources/digital-card-profiles.d.ts +11 -12
  439. package/resources/digital-card-profiles.d.ts.map +1 -1
  440. package/resources/digital-card-profiles.js +25 -18
  441. package/resources/digital-card-profiles.js.map +1 -1
  442. package/resources/digital-card-profiles.mjs +24 -16
  443. package/resources/digital-card-profiles.mjs.map +1 -1
  444. package/resources/digital-wallet-tokens.d.mts +181 -0
  445. package/resources/digital-wallet-tokens.d.mts.map +1 -0
  446. package/resources/digital-wallet-tokens.d.ts +8 -9
  447. package/resources/digital-wallet-tokens.d.ts.map +1 -1
  448. package/resources/digital-wallet-tokens.js +18 -14
  449. package/resources/digital-wallet-tokens.js.map +1 -1
  450. package/resources/digital-wallet-tokens.mjs +17 -12
  451. package/resources/digital-wallet-tokens.mjs.map +1 -1
  452. package/resources/documents.d.mts +213 -0
  453. package/resources/documents.d.mts.map +1 -0
  454. package/resources/documents.d.ts +9 -10
  455. package/resources/documents.d.ts.map +1 -1
  456. package/resources/documents.js +18 -14
  457. package/resources/documents.js.map +1 -1
  458. package/resources/documents.mjs +17 -12
  459. package/resources/documents.mjs.map +1 -1
  460. package/resources/entities.d.mts +2759 -0
  461. package/resources/entities.d.mts.map +1 -0
  462. package/resources/entities.d.ts +17 -18
  463. package/resources/entities.d.ts.map +1 -1
  464. package/resources/entities.js +37 -30
  465. package/resources/entities.js.map +1 -1
  466. package/resources/entities.mjs +36 -28
  467. package/resources/entities.mjs.map +1 -1
  468. package/resources/event-subscriptions.d.mts +471 -0
  469. package/resources/event-subscriptions.d.mts.map +1 -0
  470. package/resources/event-subscriptions.d.ts +10 -11
  471. package/resources/event-subscriptions.d.ts.map +1 -1
  472. package/resources/event-subscriptions.js +20 -16
  473. package/resources/event-subscriptions.js.map +1 -1
  474. package/resources/event-subscriptions.mjs +19 -14
  475. package/resources/event-subscriptions.mjs.map +1 -1
  476. package/resources/events.d.mts +261 -0
  477. package/resources/events.d.mts.map +1 -0
  478. package/resources/events.d.ts +8 -9
  479. package/resources/events.d.ts.map +1 -1
  480. package/resources/events.js +18 -14
  481. package/resources/events.js.map +1 -1
  482. package/resources/events.mjs +17 -12
  483. package/resources/events.mjs.map +1 -1
  484. package/resources/exports.d.mts +440 -0
  485. package/resources/exports.d.mts.map +1 -0
  486. package/resources/exports.d.ts +9 -10
  487. package/resources/exports.d.ts.map +1 -1
  488. package/resources/exports.js +18 -14
  489. package/resources/exports.js.map +1 -1
  490. package/resources/exports.mjs +17 -12
  491. package/resources/exports.mjs.map +1 -1
  492. package/resources/external-accounts.d.mts +212 -0
  493. package/resources/external-accounts.d.mts.map +1 -0
  494. package/resources/external-accounts.d.ts +10 -11
  495. package/resources/external-accounts.d.ts.map +1 -1
  496. package/resources/external-accounts.js +20 -16
  497. package/resources/external-accounts.js.map +1 -1
  498. package/resources/external-accounts.mjs +19 -14
  499. package/resources/external-accounts.mjs.map +1 -1
  500. package/resources/fednow-transfers.d.mts +474 -0
  501. package/resources/fednow-transfers.d.mts.map +1 -0
  502. package/resources/fednow-transfers.d.ts +11 -12
  503. package/resources/fednow-transfers.d.ts.map +1 -1
  504. package/resources/fednow-transfers.js +22 -18
  505. package/resources/fednow-transfers.js.map +1 -1
  506. package/resources/fednow-transfers.mjs +21 -16
  507. package/resources/fednow-transfers.mjs.map +1 -1
  508. package/resources/file-links.d.mts +72 -0
  509. package/resources/file-links.d.mts.map +1 -0
  510. package/resources/file-links.d.ts +4 -3
  511. package/resources/file-links.d.ts.map +1 -1
  512. package/resources/file-links.js +1 -1
  513. package/resources/file-links.js.map +1 -1
  514. package/resources/file-links.mjs +1 -1
  515. package/resources/file-links.mjs.map +1 -1
  516. package/resources/files.d.mts +242 -0
  517. package/resources/files.d.mts.map +1 -0
  518. package/resources/files.d.ts +11 -11
  519. package/resources/files.d.ts.map +1 -1
  520. package/resources/files.js +20 -39
  521. package/resources/files.js.map +1 -1
  522. package/resources/files.mjs +19 -14
  523. package/resources/files.mjs.map +1 -1
  524. package/resources/groups.d.mts +54 -0
  525. package/resources/groups.d.mts.map +1 -0
  526. package/resources/groups.d.ts +4 -3
  527. package/resources/groups.d.ts.map +1 -1
  528. package/resources/groups.js +1 -1
  529. package/resources/groups.js.map +1 -1
  530. package/resources/groups.mjs +1 -1
  531. package/resources/groups.mjs.map +1 -1
  532. package/resources/inbound-ach-transfers.d.mts +704 -0
  533. package/resources/inbound-ach-transfers.d.mts.map +1 -0
  534. package/resources/inbound-ach-transfers.d.ts +11 -12
  535. package/resources/inbound-ach-transfers.d.ts.map +1 -1
  536. package/resources/inbound-ach-transfers.js +27 -23
  537. package/resources/inbound-ach-transfers.js.map +1 -1
  538. package/resources/inbound-ach-transfers.mjs +26 -21
  539. package/resources/inbound-ach-transfers.mjs.map +1 -1
  540. package/resources/inbound-check-deposits.d.mts +278 -0
  541. package/resources/inbound-check-deposits.d.mts.map +1 -0
  542. package/resources/inbound-check-deposits.d.ts +10 -11
  543. package/resources/inbound-check-deposits.d.ts.map +1 -1
  544. package/resources/inbound-check-deposits.js +25 -18
  545. package/resources/inbound-check-deposits.js.map +1 -1
  546. package/resources/inbound-check-deposits.mjs +24 -16
  547. package/resources/inbound-check-deposits.mjs.map +1 -1
  548. package/resources/inbound-fednow-transfers.d.mts +188 -0
  549. package/resources/inbound-fednow-transfers.d.mts.map +1 -0
  550. package/resources/inbound-fednow-transfers.d.ts +8 -9
  551. package/resources/inbound-fednow-transfers.d.ts.map +1 -1
  552. package/resources/inbound-fednow-transfers.js +18 -14
  553. package/resources/inbound-fednow-transfers.js.map +1 -1
  554. package/resources/inbound-fednow-transfers.mjs +17 -12
  555. package/resources/inbound-fednow-transfers.mjs.map +1 -1
  556. package/resources/inbound-mail-items.d.mts +187 -0
  557. package/resources/inbound-mail-items.d.mts.map +1 -0
  558. package/resources/inbound-mail-items.d.ts +9 -10
  559. package/resources/inbound-mail-items.d.ts.map +1 -1
  560. package/resources/inbound-mail-items.js +20 -16
  561. package/resources/inbound-mail-items.js.map +1 -1
  562. package/resources/inbound-mail-items.mjs +19 -14
  563. package/resources/inbound-mail-items.mjs.map +1 -1
  564. package/resources/inbound-real-time-payments-transfers.d.mts +192 -0
  565. package/resources/inbound-real-time-payments-transfers.d.mts.map +1 -0
  566. package/resources/inbound-real-time-payments-transfers.d.ts +8 -9
  567. package/resources/inbound-real-time-payments-transfers.d.ts.map +1 -1
  568. package/resources/inbound-real-time-payments-transfers.js +18 -14
  569. package/resources/inbound-real-time-payments-transfers.js.map +1 -1
  570. package/resources/inbound-real-time-payments-transfers.mjs +17 -12
  571. package/resources/inbound-real-time-payments-transfers.mjs.map +1 -1
  572. package/resources/inbound-wire-drawdown-requests.d.mts +138 -0
  573. package/resources/inbound-wire-drawdown-requests.d.mts.map +1 -0
  574. package/resources/inbound-wire-drawdown-requests.d.ts +8 -9
  575. package/resources/inbound-wire-drawdown-requests.d.ts.map +1 -1
  576. package/resources/inbound-wire-drawdown-requests.js +18 -14
  577. package/resources/inbound-wire-drawdown-requests.js.map +1 -1
  578. package/resources/inbound-wire-drawdown-requests.mjs +17 -12
  579. package/resources/inbound-wire-drawdown-requests.mjs.map +1 -1
  580. package/resources/inbound-wire-transfers.d.mts +245 -0
  581. package/resources/inbound-wire-transfers.d.mts.map +1 -0
  582. package/resources/inbound-wire-transfers.d.ts +9 -10
  583. package/resources/inbound-wire-transfers.d.ts.map +1 -1
  584. package/resources/inbound-wire-transfers.js +20 -16
  585. package/resources/inbound-wire-transfers.js.map +1 -1
  586. package/resources/inbound-wire-transfers.mjs +19 -14
  587. package/resources/inbound-wire-transfers.mjs.map +1 -1
  588. package/resources/index.d.mts +58 -0
  589. package/resources/index.d.mts.map +1 -0
  590. package/resources/index.d.ts +51 -52
  591. package/resources/index.d.ts.map +1 -1
  592. package/resources/index.js +4 -58
  593. package/resources/index.js.map +1 -1
  594. package/resources/index.mjs +51 -52
  595. package/resources/index.mjs.map +1 -1
  596. package/resources/intrafi-account-enrollments.d.mts +153 -0
  597. package/resources/intrafi-account-enrollments.d.mts.map +1 -0
  598. package/resources/intrafi-account-enrollments.d.ts +10 -11
  599. package/resources/intrafi-account-enrollments.d.ts.map +1 -1
  600. package/resources/intrafi-account-enrollments.js +20 -16
  601. package/resources/intrafi-account-enrollments.js.map +1 -1
  602. package/resources/intrafi-account-enrollments.mjs +19 -14
  603. package/resources/intrafi-account-enrollments.mjs.map +1 -1
  604. package/resources/intrafi-balances.d.mts +101 -0
  605. package/resources/intrafi-balances.d.mts.map +1 -0
  606. package/resources/intrafi-balances.d.ts +4 -3
  607. package/resources/intrafi-balances.d.ts.map +1 -1
  608. package/resources/intrafi-balances.js +4 -3
  609. package/resources/intrafi-balances.js.map +1 -1
  610. package/resources/intrafi-balances.mjs +4 -3
  611. package/resources/intrafi-balances.mjs.map +1 -1
  612. package/resources/intrafi-exclusions.d.mts +141 -0
  613. package/resources/intrafi-exclusions.d.mts.map +1 -0
  614. package/resources/intrafi-exclusions.d.ts +10 -11
  615. package/resources/intrafi-exclusions.d.ts.map +1 -1
  616. package/resources/intrafi-exclusions.js +20 -16
  617. package/resources/intrafi-exclusions.js.map +1 -1
  618. package/resources/intrafi-exclusions.mjs +19 -14
  619. package/resources/intrafi-exclusions.mjs.map +1 -1
  620. package/resources/lockboxes.d.mts +215 -0
  621. package/resources/lockboxes.d.mts.map +1 -0
  622. package/resources/lockboxes.d.ts +10 -11
  623. package/resources/lockboxes.d.ts.map +1 -1
  624. package/resources/lockboxes.js +20 -16
  625. package/resources/lockboxes.js.map +1 -1
  626. package/resources/lockboxes.mjs +19 -14
  627. package/resources/lockboxes.mjs.map +1 -1
  628. package/resources/oauth-applications.d.mts +113 -0
  629. package/resources/oauth-applications.d.mts.map +1 -0
  630. package/resources/oauth-applications.d.ts +8 -9
  631. package/resources/oauth-applications.d.ts.map +1 -1
  632. package/resources/oauth-applications.js +18 -14
  633. package/resources/oauth-applications.js.map +1 -1
  634. package/resources/oauth-applications.mjs +17 -12
  635. package/resources/oauth-applications.mjs.map +1 -1
  636. package/resources/oauth-connections.d.mts +94 -0
  637. package/resources/oauth-connections.d.mts.map +1 -0
  638. package/resources/oauth-connections.d.ts +8 -9
  639. package/resources/oauth-connections.d.ts.map +1 -1
  640. package/resources/oauth-connections.js +18 -14
  641. package/resources/oauth-connections.js.map +1 -1
  642. package/resources/oauth-connections.mjs +17 -12
  643. package/resources/oauth-connections.mjs.map +1 -1
  644. package/resources/oauth-tokens.d.mts +77 -0
  645. package/resources/oauth-tokens.d.mts.map +1 -0
  646. package/resources/oauth-tokens.d.ts +4 -3
  647. package/resources/oauth-tokens.d.ts.map +1 -1
  648. package/resources/oauth-tokens.js +1 -1
  649. package/resources/oauth-tokens.js.map +1 -1
  650. package/resources/oauth-tokens.mjs +1 -1
  651. package/resources/oauth-tokens.mjs.map +1 -1
  652. package/resources/pending-transactions.d.mts +1182 -0
  653. package/resources/pending-transactions.d.mts.map +1 -0
  654. package/resources/pending-transactions.d.ts +10 -11
  655. package/resources/pending-transactions.d.ts.map +1 -1
  656. package/resources/pending-transactions.js +20 -16
  657. package/resources/pending-transactions.js.map +1 -1
  658. package/resources/pending-transactions.mjs +19 -14
  659. package/resources/pending-transactions.mjs.map +1 -1
  660. package/resources/physical-card-profiles.d.mts +268 -0
  661. package/resources/physical-card-profiles.d.mts.map +1 -0
  662. package/resources/physical-card-profiles.d.ts +11 -12
  663. package/resources/physical-card-profiles.d.ts.map +1 -1
  664. package/resources/physical-card-profiles.js +25 -18
  665. package/resources/physical-card-profiles.js.map +1 -1
  666. package/resources/physical-card-profiles.mjs +24 -16
  667. package/resources/physical-card-profiles.mjs.map +1 -1
  668. package/resources/physical-cards.d.mts +455 -0
  669. package/resources/physical-cards.d.mts.map +1 -0
  670. package/resources/physical-cards.d.ts +10 -11
  671. package/resources/physical-cards.d.ts.map +1 -1
  672. package/resources/physical-cards.js +20 -16
  673. package/resources/physical-cards.js.map +1 -1
  674. package/resources/physical-cards.mjs +19 -14
  675. package/resources/physical-cards.mjs.map +1 -1
  676. package/resources/programs.d.mts +89 -0
  677. package/resources/programs.d.mts.map +1 -0
  678. package/resources/programs.d.ts +8 -9
  679. package/resources/programs.d.ts.map +1 -1
  680. package/resources/programs.js +18 -14
  681. package/resources/programs.js.map +1 -1
  682. package/resources/programs.mjs +17 -12
  683. package/resources/programs.mjs.map +1 -1
  684. package/resources/real-time-decisions.d.mts +1132 -0
  685. package/resources/real-time-decisions.d.mts.map +1 -0
  686. package/resources/real-time-decisions.d.ts +5 -4
  687. package/resources/real-time-decisions.d.ts.map +1 -1
  688. package/resources/real-time-decisions.js +6 -5
  689. package/resources/real-time-decisions.js.map +1 -1
  690. package/resources/real-time-decisions.mjs +6 -5
  691. package/resources/real-time-decisions.mjs.map +1 -1
  692. package/resources/real-time-payments-transfers.d.mts +504 -0
  693. package/resources/real-time-payments-transfers.d.mts.map +1 -0
  694. package/resources/real-time-payments-transfers.d.ts +11 -12
  695. package/resources/real-time-payments-transfers.d.ts.map +1 -1
  696. package/resources/real-time-payments-transfers.js +22 -18
  697. package/resources/real-time-payments-transfers.js.map +1 -1
  698. package/resources/real-time-payments-transfers.mjs +21 -16
  699. package/resources/real-time-payments-transfers.mjs.map +1 -1
  700. package/resources/routing-numbers.d.mts +79 -0
  701. package/resources/routing-numbers.d.mts.map +1 -0
  702. package/resources/routing-numbers.d.ts +6 -7
  703. package/resources/routing-numbers.d.ts.map +1 -1
  704. package/resources/routing-numbers.js +7 -8
  705. package/resources/routing-numbers.js.map +1 -1
  706. package/resources/routing-numbers.mjs +6 -6
  707. package/resources/routing-numbers.mjs.map +1 -1
  708. package/resources/simulations/account-statements.d.mts +29 -0
  709. package/resources/simulations/account-statements.d.mts.map +1 -0
  710. package/resources/simulations/account-statements.d.ts +4 -3
  711. package/resources/simulations/account-statements.d.ts.map +1 -1
  712. package/resources/simulations/account-statements.js +1 -1
  713. package/resources/simulations/account-statements.js.map +1 -1
  714. package/resources/simulations/account-statements.mjs +1 -1
  715. package/resources/simulations/account-statements.mjs.map +1 -1
  716. package/resources/simulations/account-transfers.d.mts +22 -0
  717. package/resources/simulations/account-transfers.d.mts.map +1 -0
  718. package/resources/simulations/account-transfers.d.ts +4 -3
  719. package/resources/simulations/account-transfers.d.ts.map +1 -1
  720. package/resources/simulations/account-transfers.js +4 -3
  721. package/resources/simulations/account-transfers.js.map +1 -1
  722. package/resources/simulations/account-transfers.mjs +4 -3
  723. package/resources/simulations/account-transfers.mjs.map +1 -1
  724. package/resources/simulations/ach-transfers.d.mts +307 -0
  725. package/resources/simulations/ach-transfers.d.mts.map +1 -0
  726. package/resources/simulations/ach-transfers.d.ts +8 -7
  727. package/resources/simulations/ach-transfers.d.ts.map +1 -1
  728. package/resources/simulations/ach-transfers.js +12 -14
  729. package/resources/simulations/ach-transfers.js.map +1 -1
  730. package/resources/simulations/ach-transfers.mjs +12 -14
  731. package/resources/simulations/ach-transfers.mjs.map +1 -1
  732. package/resources/simulations/card-authorization-expirations.d.mts +30 -0
  733. package/resources/simulations/card-authorization-expirations.d.mts.map +1 -0
  734. package/resources/simulations/card-authorization-expirations.d.ts +4 -3
  735. package/resources/simulations/card-authorization-expirations.d.ts.map +1 -1
  736. package/resources/simulations/card-authorization-expirations.js +1 -1
  737. package/resources/simulations/card-authorization-expirations.js.map +1 -1
  738. package/resources/simulations/card-authorization-expirations.mjs +1 -1
  739. package/resources/simulations/card-authorization-expirations.mjs.map +1 -1
  740. package/resources/simulations/card-authorizations.d.mts +244 -0
  741. package/resources/simulations/card-authorizations.d.mts.map +1 -0
  742. package/resources/simulations/card-authorizations.d.ts +4 -3
  743. package/resources/simulations/card-authorizations.d.ts.map +1 -1
  744. package/resources/simulations/card-authorizations.js +1 -1
  745. package/resources/simulations/card-authorizations.js.map +1 -1
  746. package/resources/simulations/card-authorizations.mjs +1 -1
  747. package/resources/simulations/card-authorizations.mjs.map +1 -1
  748. package/resources/simulations/card-disputes.d.mts +192 -0
  749. package/resources/simulations/card-disputes.d.mts.map +1 -0
  750. package/resources/simulations/card-disputes.d.ts +4 -3
  751. package/resources/simulations/card-disputes.d.ts.map +1 -1
  752. package/resources/simulations/card-disputes.js +4 -3
  753. package/resources/simulations/card-disputes.js.map +1 -1
  754. package/resources/simulations/card-disputes.mjs +4 -3
  755. package/resources/simulations/card-disputes.mjs.map +1 -1
  756. package/resources/simulations/card-fuel-confirmations.d.mts +36 -0
  757. package/resources/simulations/card-fuel-confirmations.d.mts.map +1 -0
  758. package/resources/simulations/card-fuel-confirmations.d.ts +4 -3
  759. package/resources/simulations/card-fuel-confirmations.d.ts.map +1 -1
  760. package/resources/simulations/card-fuel-confirmations.js +1 -1
  761. package/resources/simulations/card-fuel-confirmations.js.map +1 -1
  762. package/resources/simulations/card-fuel-confirmations.mjs +1 -1
  763. package/resources/simulations/card-fuel-confirmations.mjs.map +1 -1
  764. package/resources/simulations/card-increments.d.mts +41 -0
  765. package/resources/simulations/card-increments.d.mts.map +1 -0
  766. package/resources/simulations/card-increments.d.ts +4 -3
  767. package/resources/simulations/card-increments.d.ts.map +1 -1
  768. package/resources/simulations/card-increments.js +1 -1
  769. package/resources/simulations/card-increments.js.map +1 -1
  770. package/resources/simulations/card-increments.mjs +1 -1
  771. package/resources/simulations/card-increments.mjs.map +1 -1
  772. package/resources/simulations/card-refunds.d.mts +39 -0
  773. package/resources/simulations/card-refunds.d.mts.map +1 -0
  774. package/resources/simulations/card-refunds.d.ts +4 -3
  775. package/resources/simulations/card-refunds.d.ts.map +1 -1
  776. package/resources/simulations/card-refunds.js +1 -1
  777. package/resources/simulations/card-refunds.js.map +1 -1
  778. package/resources/simulations/card-refunds.mjs +1 -1
  779. package/resources/simulations/card-refunds.mjs.map +1 -1
  780. package/resources/simulations/card-reversals.d.mts +36 -0
  781. package/resources/simulations/card-reversals.d.mts.map +1 -0
  782. package/resources/simulations/card-reversals.d.ts +4 -3
  783. package/resources/simulations/card-reversals.d.ts.map +1 -1
  784. package/resources/simulations/card-reversals.js +1 -1
  785. package/resources/simulations/card-reversals.js.map +1 -1
  786. package/resources/simulations/card-reversals.mjs +1 -1
  787. package/resources/simulations/card-reversals.mjs.map +1 -1
  788. package/resources/simulations/card-settlements.d.mts +44 -0
  789. package/resources/simulations/card-settlements.d.mts.map +1 -0
  790. package/resources/simulations/card-settlements.d.ts +4 -3
  791. package/resources/simulations/card-settlements.d.ts.map +1 -1
  792. package/resources/simulations/card-settlements.js +1 -1
  793. package/resources/simulations/card-settlements.js.map +1 -1
  794. package/resources/simulations/card-settlements.mjs +1 -1
  795. package/resources/simulations/card-settlements.mjs.map +1 -1
  796. package/resources/simulations/card-tokens.d.mts +67 -0
  797. package/resources/simulations/card-tokens.d.mts.map +1 -0
  798. package/resources/simulations/card-tokens.d.ts +4 -3
  799. package/resources/simulations/card-tokens.d.ts.map +1 -1
  800. package/resources/simulations/card-tokens.js +1 -1
  801. package/resources/simulations/card-tokens.js.map +1 -1
  802. package/resources/simulations/card-tokens.mjs +1 -1
  803. package/resources/simulations/card-tokens.mjs.map +1 -1
  804. package/resources/simulations/check-deposits.d.mts +47 -0
  805. package/resources/simulations/check-deposits.d.mts.map +1 -0
  806. package/resources/simulations/check-deposits.d.ts +6 -5
  807. package/resources/simulations/check-deposits.d.ts.map +1 -1
  808. package/resources/simulations/check-deposits.js +8 -7
  809. package/resources/simulations/check-deposits.js.map +1 -1
  810. package/resources/simulations/check-deposits.mjs +8 -7
  811. package/resources/simulations/check-deposits.mjs.map +1 -1
  812. package/resources/simulations/check-transfers.d.mts +22 -0
  813. package/resources/simulations/check-transfers.d.mts.map +1 -0
  814. package/resources/simulations/check-transfers.d.ts +4 -3
  815. package/resources/simulations/check-transfers.d.ts.map +1 -1
  816. package/resources/simulations/check-transfers.js +4 -3
  817. package/resources/simulations/check-transfers.js.map +1 -1
  818. package/resources/simulations/check-transfers.mjs +4 -3
  819. package/resources/simulations/check-transfers.mjs.map +1 -1
  820. package/resources/simulations/digital-wallet-token-requests.d.mts +55 -0
  821. package/resources/simulations/digital-wallet-token-requests.d.mts.map +1 -0
  822. package/resources/simulations/digital-wallet-token-requests.d.ts +4 -3
  823. package/resources/simulations/digital-wallet-token-requests.d.ts.map +1 -1
  824. package/resources/simulations/digital-wallet-token-requests.js +1 -1
  825. package/resources/simulations/digital-wallet-token-requests.js.map +1 -1
  826. package/resources/simulations/digital-wallet-token-requests.mjs +1 -1
  827. package/resources/simulations/digital-wallet-token-requests.mjs.map +1 -1
  828. package/resources/simulations/documents.d.mts +27 -0
  829. package/resources/simulations/documents.d.mts.map +1 -0
  830. package/resources/simulations/documents.d.ts +4 -3
  831. package/resources/simulations/documents.d.ts.map +1 -1
  832. package/resources/simulations/documents.js +1 -1
  833. package/resources/simulations/documents.js.map +1 -1
  834. package/resources/simulations/documents.mjs +1 -1
  835. package/resources/simulations/documents.mjs.map +1 -1
  836. package/resources/simulations/inbound-ach-transfers.d.mts +140 -0
  837. package/resources/simulations/inbound-ach-transfers.d.mts.map +1 -0
  838. package/resources/simulations/inbound-ach-transfers.d.ts +4 -3
  839. package/resources/simulations/inbound-ach-transfers.d.ts.map +1 -1
  840. package/resources/simulations/inbound-ach-transfers.js +1 -1
  841. package/resources/simulations/inbound-ach-transfers.js.map +1 -1
  842. package/resources/simulations/inbound-ach-transfers.mjs +1 -1
  843. package/resources/simulations/inbound-ach-transfers.mjs.map +1 -1
  844. package/resources/simulations/inbound-check-deposits.d.mts +56 -0
  845. package/resources/simulations/inbound-check-deposits.d.mts.map +1 -0
  846. package/resources/simulations/inbound-check-deposits.d.ts +4 -3
  847. package/resources/simulations/inbound-check-deposits.d.ts.map +1 -1
  848. package/resources/simulations/inbound-check-deposits.js +1 -1
  849. package/resources/simulations/inbound-check-deposits.js.map +1 -1
  850. package/resources/simulations/inbound-check-deposits.mjs +1 -1
  851. package/resources/simulations/inbound-check-deposits.mjs.map +1 -1
  852. package/resources/simulations/inbound-fednow-transfers.d.mts +51 -0
  853. package/resources/simulations/inbound-fednow-transfers.d.mts.map +1 -0
  854. package/resources/simulations/inbound-fednow-transfers.d.ts +4 -3
  855. package/resources/simulations/inbound-fednow-transfers.d.ts.map +1 -1
  856. package/resources/simulations/inbound-fednow-transfers.js +1 -1
  857. package/resources/simulations/inbound-fednow-transfers.js.map +1 -1
  858. package/resources/simulations/inbound-fednow-transfers.mjs +1 -1
  859. package/resources/simulations/inbound-fednow-transfers.mjs.map +1 -1
  860. package/resources/simulations/inbound-mail-items.d.mts +39 -0
  861. package/resources/simulations/inbound-mail-items.d.mts.map +1 -0
  862. package/resources/simulations/inbound-mail-items.d.ts +4 -3
  863. package/resources/simulations/inbound-mail-items.d.ts.map +1 -1
  864. package/resources/simulations/inbound-mail-items.js +1 -1
  865. package/resources/simulations/inbound-mail-items.js.map +1 -1
  866. package/resources/simulations/inbound-mail-items.mjs +1 -1
  867. package/resources/simulations/inbound-mail-items.mjs.map +1 -1
  868. package/resources/simulations/inbound-real-time-payments-transfers.d.mts +59 -0
  869. package/resources/simulations/inbound-real-time-payments-transfers.d.mts.map +1 -0
  870. package/resources/simulations/inbound-real-time-payments-transfers.d.ts +4 -3
  871. package/resources/simulations/inbound-real-time-payments-transfers.d.ts.map +1 -1
  872. package/resources/simulations/inbound-real-time-payments-transfers.js +1 -1
  873. package/resources/simulations/inbound-real-time-payments-transfers.js.map +1 -1
  874. package/resources/simulations/inbound-real-time-payments-transfers.mjs +1 -1
  875. package/resources/simulations/inbound-real-time-payments-transfers.mjs.map +1 -1
  876. package/resources/simulations/inbound-wire-drawdown-requests.d.mts +117 -0
  877. package/resources/simulations/inbound-wire-drawdown-requests.d.mts.map +1 -0
  878. package/resources/simulations/inbound-wire-drawdown-requests.d.ts +4 -3
  879. package/resources/simulations/inbound-wire-drawdown-requests.d.ts.map +1 -1
  880. package/resources/simulations/inbound-wire-drawdown-requests.js +1 -1
  881. package/resources/simulations/inbound-wire-drawdown-requests.js.map +1 -1
  882. package/resources/simulations/inbound-wire-drawdown-requests.mjs +1 -1
  883. package/resources/simulations/inbound-wire-drawdown-requests.mjs.map +1 -1
  884. package/resources/simulations/inbound-wire-transfers.d.mts +104 -0
  885. package/resources/simulations/inbound-wire-transfers.d.mts.map +1 -0
  886. package/resources/simulations/inbound-wire-transfers.d.ts +4 -3
  887. package/resources/simulations/inbound-wire-transfers.d.ts.map +1 -1
  888. package/resources/simulations/inbound-wire-transfers.js +1 -1
  889. package/resources/simulations/inbound-wire-transfers.js.map +1 -1
  890. package/resources/simulations/inbound-wire-transfers.mjs +1 -1
  891. package/resources/simulations/inbound-wire-transfers.mjs.map +1 -1
  892. package/resources/simulations/index.d.mts +32 -0
  893. package/resources/simulations/index.d.mts.map +1 -0
  894. package/resources/simulations/index.d.ts.map +1 -1
  895. package/resources/simulations/interest-payments.d.mts +46 -0
  896. package/resources/simulations/interest-payments.d.mts.map +1 -0
  897. package/resources/simulations/interest-payments.d.ts +4 -3
  898. package/resources/simulations/interest-payments.d.ts.map +1 -1
  899. package/resources/simulations/interest-payments.js +1 -1
  900. package/resources/simulations/interest-payments.js.map +1 -1
  901. package/resources/simulations/interest-payments.mjs +1 -1
  902. package/resources/simulations/interest-payments.mjs.map +1 -1
  903. package/resources/simulations/pending-transactions.d.mts +20 -0
  904. package/resources/simulations/pending-transactions.d.mts.map +1 -0
  905. package/resources/simulations/pending-transactions.d.ts +4 -3
  906. package/resources/simulations/pending-transactions.d.ts.map +1 -1
  907. package/resources/simulations/pending-transactions.js +4 -3
  908. package/resources/simulations/pending-transactions.js.map +1 -1
  909. package/resources/simulations/pending-transactions.mjs +4 -3
  910. package/resources/simulations/pending-transactions.mjs.map +1 -1
  911. package/resources/simulations/physical-cards.d.mts +88 -0
  912. package/resources/simulations/physical-cards.d.mts.map +1 -0
  913. package/resources/simulations/physical-cards.d.ts +5 -4
  914. package/resources/simulations/physical-cards.d.ts.map +1 -1
  915. package/resources/simulations/physical-cards.js +6 -5
  916. package/resources/simulations/physical-cards.js.map +1 -1
  917. package/resources/simulations/physical-cards.mjs +6 -5
  918. package/resources/simulations/physical-cards.mjs.map +1 -1
  919. package/resources/simulations/programs.d.mts +46 -0
  920. package/resources/simulations/programs.d.mts.map +1 -0
  921. package/resources/simulations/programs.d.ts +4 -3
  922. package/resources/simulations/programs.d.ts.map +1 -1
  923. package/resources/simulations/programs.js +1 -1
  924. package/resources/simulations/programs.js.map +1 -1
  925. package/resources/simulations/programs.mjs +1 -1
  926. package/resources/simulations/programs.mjs.map +1 -1
  927. package/resources/simulations/real-time-payments-transfers.d.mts +91 -0
  928. package/resources/simulations/real-time-payments-transfers.d.mts.map +1 -0
  929. package/resources/simulations/real-time-payments-transfers.d.ts +4 -3
  930. package/resources/simulations/real-time-payments-transfers.d.ts.map +1 -1
  931. package/resources/simulations/real-time-payments-transfers.js +4 -3
  932. package/resources/simulations/real-time-payments-transfers.js.map +1 -1
  933. package/resources/simulations/real-time-payments-transfers.mjs +4 -3
  934. package/resources/simulations/real-time-payments-transfers.mjs.map +1 -1
  935. package/resources/simulations/simulations.d.mts +126 -0
  936. package/resources/simulations/simulations.d.mts.map +1 -0
  937. package/resources/simulations/simulations.d.ts +1 -1
  938. package/resources/simulations/simulations.d.ts.map +1 -1
  939. package/resources/simulations/simulations.js +32 -54
  940. package/resources/simulations/simulations.js.map +1 -1
  941. package/resources/simulations/simulations.mjs +1 -1
  942. package/resources/simulations/wire-drawdown-requests.d.mts +31 -0
  943. package/resources/simulations/wire-drawdown-requests.d.mts.map +1 -0
  944. package/resources/simulations/wire-drawdown-requests.d.ts +5 -4
  945. package/resources/simulations/wire-drawdown-requests.d.ts.map +1 -1
  946. package/resources/simulations/wire-drawdown-requests.js +6 -5
  947. package/resources/simulations/wire-drawdown-requests.js.map +1 -1
  948. package/resources/simulations/wire-drawdown-requests.mjs +6 -5
  949. package/resources/simulations/wire-drawdown-requests.mjs.map +1 -1
  950. package/resources/simulations/wire-transfers.d.mts +36 -0
  951. package/resources/simulations/wire-transfers.d.mts.map +1 -0
  952. package/resources/simulations/wire-transfers.d.ts +5 -4
  953. package/resources/simulations/wire-transfers.d.ts.map +1 -1
  954. package/resources/simulations/wire-transfers.js +6 -5
  955. package/resources/simulations/wire-transfers.js.map +1 -1
  956. package/resources/simulations/wire-transfers.mjs +6 -5
  957. package/resources/simulations/wire-transfers.mjs.map +1 -1
  958. package/resources/simulations.d.mts +2 -0
  959. package/resources/simulations.d.mts.map +1 -0
  960. package/resources/simulations.d.ts.map +1 -1
  961. package/resources/simulations.js +2 -15
  962. package/resources/simulations.js.map +1 -1
  963. package/resources/supplemental-documents.d.mts +92 -0
  964. package/resources/supplemental-documents.d.mts.map +1 -0
  965. package/resources/supplemental-documents.d.ts +8 -8
  966. package/resources/supplemental-documents.d.ts.map +1 -1
  967. package/resources/supplemental-documents.js +4 -8
  968. package/resources/supplemental-documents.js.map +1 -1
  969. package/resources/supplemental-documents.mjs +3 -6
  970. package/resources/supplemental-documents.mjs.map +1 -1
  971. package/resources/transactions.d.mts +3483 -0
  972. package/resources/transactions.d.mts.map +1 -0
  973. package/resources/transactions.d.ts +8 -9
  974. package/resources/transactions.d.ts.map +1 -1
  975. package/resources/transactions.js +18 -14
  976. package/resources/transactions.js.map +1 -1
  977. package/resources/transactions.mjs +17 -12
  978. package/resources/transactions.mjs.map +1 -1
  979. package/resources/wire-drawdown-requests.d.mts +362 -0
  980. package/resources/wire-drawdown-requests.d.mts.map +1 -0
  981. package/resources/wire-drawdown-requests.d.ts +9 -10
  982. package/resources/wire-drawdown-requests.d.ts.map +1 -1
  983. package/resources/wire-drawdown-requests.js +18 -14
  984. package/resources/wire-drawdown-requests.js.map +1 -1
  985. package/resources/wire-drawdown-requests.mjs +17 -12
  986. package/resources/wire-drawdown-requests.mjs.map +1 -1
  987. package/resources/wire-transfers.d.mts +751 -0
  988. package/resources/wire-transfers.d.mts.map +1 -0
  989. package/resources/wire-transfers.d.ts +11 -12
  990. package/resources/wire-transfers.d.ts.map +1 -1
  991. package/resources/wire-transfers.js +22 -18
  992. package/resources/wire-transfers.js.map +1 -1
  993. package/resources/wire-transfers.mjs +21 -16
  994. package/resources/wire-transfers.mjs.map +1 -1
  995. package/resources.d.mts +2 -0
  996. package/resources.d.mts.map +1 -0
  997. package/resources.d.ts.map +1 -1
  998. package/resources.js +2 -15
  999. package/resources.js.map +1 -1
  1000. package/src/api-promise.ts +2 -0
  1001. package/src/client.ts +1692 -0
  1002. package/src/core/README.md +3 -0
  1003. package/src/core/api-promise.ts +92 -0
  1004. package/src/core/error.ts +443 -0
  1005. package/src/core/pagination.ts +165 -0
  1006. package/src/core/resource.ts +11 -0
  1007. package/src/core/uploads.ts +2 -0
  1008. package/src/error.ts +2 -443
  1009. package/src/index.ts +6 -1199
  1010. package/src/internal/README.md +3 -0
  1011. package/src/internal/builtin-types.ts +93 -0
  1012. package/src/internal/detect-platform.ts +196 -0
  1013. package/src/internal/errors.ts +33 -0
  1014. package/src/internal/headers.ts +97 -0
  1015. package/src/internal/parse.ts +50 -0
  1016. package/src/internal/qs/formats.ts +2 -1
  1017. package/src/internal/qs/stringify.ts +17 -20
  1018. package/src/internal/qs/utils.ts +14 -14
  1019. package/src/internal/request-options.ts +91 -0
  1020. package/src/internal/shim-types.ts +26 -0
  1021. package/src/internal/shims.ts +107 -0
  1022. package/src/internal/to-file.ts +154 -0
  1023. package/src/internal/types.ts +95 -0
  1024. package/src/internal/uploads.ts +187 -0
  1025. package/src/internal/utils/base64.ts +40 -0
  1026. package/src/internal/utils/bytes.ts +32 -0
  1027. package/src/internal/utils/env.ts +18 -0
  1028. package/src/internal/utils/log.ts +126 -0
  1029. package/src/internal/utils/path.ts +88 -0
  1030. package/src/internal/utils/sleep.ts +3 -0
  1031. package/src/internal/utils/uuid.ts +17 -0
  1032. package/src/internal/utils/values.ts +105 -0
  1033. package/src/internal/utils.ts +8 -0
  1034. package/src/pagination.ts +2 -68
  1035. package/src/resource.ts +2 -11
  1036. package/src/resources/account-numbers.ts +18 -27
  1037. package/src/resources/account-statements.ts +13 -22
  1038. package/src/resources/account-transfers.ts +18 -27
  1039. package/src/resources/accounts.ts +23 -42
  1040. package/src/resources/ach-prenotifications.ts +14 -26
  1041. package/src/resources/ach-transfers.ts +18 -27
  1042. package/src/resources/bookkeeping-accounts.ts +24 -45
  1043. package/src/resources/bookkeeping-entries.ts +13 -22
  1044. package/src/resources/bookkeeping-entry-sets.ts +14 -29
  1045. package/src/resources/card-disputes.ts +23 -29
  1046. package/src/resources/card-payments.ts +13 -22
  1047. package/src/resources/card-purchase-supplements.ts +13 -25
  1048. package/src/resources/card-push-transfers.ts +18 -30
  1049. package/src/resources/card-tokens.ts +15 -24
  1050. package/src/resources/card-validations.ts +14 -23
  1051. package/src/resources/cards.ts +24 -34
  1052. package/src/resources/check-deposits.ts +14 -23
  1053. package/src/resources/check-transfers.ts +22 -31
  1054. package/src/resources/declined-transactions.ts +16 -25
  1055. package/src/resources/digital-card-profiles.ts +23 -32
  1056. package/src/resources/digital-wallet-tokens.ts +13 -22
  1057. package/src/resources/documents.ts +14 -20
  1058. package/src/resources/entities.ts +43 -50
  1059. package/src/resources/event-subscriptions.ts +18 -30
  1060. package/src/resources/events.ts +13 -19
  1061. package/src/resources/exports.ts +14 -20
  1062. package/src/resources/external-accounts.ts +18 -27
  1063. package/src/resources/fednow-transfers.ts +18 -27
  1064. package/src/resources/file-links.ts +4 -3
  1065. package/src/resources/files.ts +18 -22
  1066. package/src/resources/groups.ts +4 -3
  1067. package/src/resources/inbound-ach-transfers.ts +31 -37
  1068. package/src/resources/inbound-check-deposits.ts +22 -34
  1069. package/src/resources/inbound-fednow-transfers.ts +13 -25
  1070. package/src/resources/inbound-mail-items.ts +17 -26
  1071. package/src/resources/inbound-real-time-payments-transfers.ts +15 -26
  1072. package/src/resources/inbound-wire-drawdown-requests.ts +15 -26
  1073. package/src/resources/inbound-wire-transfers.ts +17 -29
  1074. package/src/resources/index.ts +68 -58
  1075. package/src/resources/intrafi-account-enrollments.ts +24 -32
  1076. package/src/resources/intrafi-balances.ts +6 -4
  1077. package/src/resources/intrafi-exclusions.ts +16 -28
  1078. package/src/resources/lockboxes.ts +16 -26
  1079. package/src/resources/oauth-applications.ts +13 -22
  1080. package/src/resources/oauth-connections.ts +13 -22
  1081. package/src/resources/oauth-tokens.ts +4 -3
  1082. package/src/resources/pending-transactions.ts +16 -28
  1083. package/src/resources/physical-card-profiles.ts +23 -38
  1084. package/src/resources/physical-cards.ts +18 -27
  1085. package/src/resources/programs.ts +13 -19
  1086. package/src/resources/real-time-decisions.ts +10 -8
  1087. package/src/resources/real-time-payments-transfers.ts +29 -37
  1088. package/src/resources/routing-numbers.ts +11 -10
  1089. package/src/resources/simulations/account-statements.ts +5 -4
  1090. package/src/resources/simulations/account-transfers.ts +8 -6
  1091. package/src/resources/simulations/ach-transfers.ts +23 -24
  1092. package/src/resources/simulations/card-authorization-expirations.ts +5 -4
  1093. package/src/resources/simulations/card-authorizations.ts +5 -4
  1094. package/src/resources/simulations/card-disputes.ts +8 -6
  1095. package/src/resources/simulations/card-fuel-confirmations.ts +5 -4
  1096. package/src/resources/simulations/card-increments.ts +4 -6
  1097. package/src/resources/simulations/card-refunds.ts +4 -6
  1098. package/src/resources/simulations/card-reversals.ts +4 -6
  1099. package/src/resources/simulations/card-settlements.ts +5 -4
  1100. package/src/resources/simulations/card-tokens.ts +4 -6
  1101. package/src/resources/simulations/check-deposits.ts +10 -17
  1102. package/src/resources/simulations/check-transfers.ts +6 -7
  1103. package/src/resources/simulations/digital-wallet-token-requests.ts +5 -4
  1104. package/src/resources/simulations/documents.ts +4 -3
  1105. package/src/resources/simulations/inbound-ach-transfers.ts +5 -4
  1106. package/src/resources/simulations/inbound-check-deposits.ts +5 -4
  1107. package/src/resources/simulations/inbound-fednow-transfers.ts +5 -4
  1108. package/src/resources/simulations/inbound-mail-items.ts +5 -4
  1109. package/src/resources/simulations/inbound-real-time-payments-transfers.ts +5 -4
  1110. package/src/resources/simulations/inbound-wire-drawdown-requests.ts +5 -4
  1111. package/src/resources/simulations/inbound-wire-transfers.ts +5 -4
  1112. package/src/resources/simulations/interest-payments.ts +5 -4
  1113. package/src/resources/simulations/pending-transactions.ts +8 -6
  1114. package/src/resources/simulations/physical-cards.ts +12 -10
  1115. package/src/resources/simulations/programs.ts +4 -3
  1116. package/src/resources/simulations/real-time-payments-transfers.ts +8 -6
  1117. package/src/resources/simulations/simulations.ts +1 -1
  1118. package/src/resources/simulations/wire-drawdown-requests.ts +18 -10
  1119. package/src/resources/simulations/wire-transfers.ts +8 -12
  1120. package/src/resources/supplemental-documents.ts +11 -12
  1121. package/src/resources/transactions.ts +13 -22
  1122. package/src/resources/wire-drawdown-requests.ts +14 -29
  1123. package/src/resources/wire-transfers.ts +18 -27
  1124. package/src/tsconfig.json +2 -2
  1125. package/src/uploads.ts +2 -255
  1126. package/src/version.ts +1 -1
  1127. package/uploads.d.mts +2 -0
  1128. package/uploads.d.mts.map +1 -0
  1129. package/uploads.d.ts +1 -74
  1130. package/uploads.d.ts.map +1 -1
  1131. package/uploads.js +3 -168
  1132. package/uploads.js.map +1 -1
  1133. package/uploads.mjs +1 -157
  1134. package/uploads.mjs.map +1 -1
  1135. package/version.d.mts +2 -0
  1136. package/version.d.mts.map +1 -0
  1137. package/version.d.ts +1 -1
  1138. package/version.js +1 -1
  1139. package/version.mjs +1 -1
  1140. package/_shims/MultipartBody.d.ts +0 -9
  1141. package/_shims/MultipartBody.d.ts.map +0 -1
  1142. package/_shims/MultipartBody.js +0 -16
  1143. package/_shims/MultipartBody.js.map +0 -1
  1144. package/_shims/MultipartBody.mjs +0 -12
  1145. package/_shims/MultipartBody.mjs.map +0 -1
  1146. package/_shims/README.md +0 -46
  1147. package/_shims/auto/runtime-bun.d.ts +0 -5
  1148. package/_shims/auto/runtime-bun.d.ts.map +0 -1
  1149. package/_shims/auto/runtime-bun.js +0 -21
  1150. package/_shims/auto/runtime-bun.js.map +0 -1
  1151. package/_shims/auto/runtime-bun.mjs +0 -2
  1152. package/_shims/auto/runtime-bun.mjs.map +0 -1
  1153. package/_shims/auto/runtime-node.d.ts +0 -5
  1154. package/_shims/auto/runtime-node.d.ts.map +0 -1
  1155. package/_shims/auto/runtime-node.js +0 -21
  1156. package/_shims/auto/runtime-node.js.map +0 -1
  1157. package/_shims/auto/runtime-node.mjs +0 -2
  1158. package/_shims/auto/runtime-node.mjs.map +0 -1
  1159. package/_shims/auto/runtime.d.ts +0 -5
  1160. package/_shims/auto/runtime.d.ts.map +0 -1
  1161. package/_shims/auto/runtime.js +0 -21
  1162. package/_shims/auto/runtime.js.map +0 -1
  1163. package/_shims/auto/runtime.mjs +0 -2
  1164. package/_shims/auto/runtime.mjs.map +0 -1
  1165. package/_shims/auto/types-node.d.ts +0 -5
  1166. package/_shims/auto/types-node.d.ts.map +0 -1
  1167. package/_shims/auto/types-node.js +0 -21
  1168. package/_shims/auto/types-node.js.map +0 -1
  1169. package/_shims/auto/types-node.mjs +0 -2
  1170. package/_shims/auto/types-node.mjs.map +0 -1
  1171. package/_shims/auto/types.d.ts +0 -101
  1172. package/_shims/auto/types.js +0 -3
  1173. package/_shims/auto/types.mjs +0 -3
  1174. package/_shims/bun-runtime.d.ts +0 -6
  1175. package/_shims/bun-runtime.d.ts.map +0 -1
  1176. package/_shims/bun-runtime.js +0 -14
  1177. package/_shims/bun-runtime.js.map +0 -1
  1178. package/_shims/bun-runtime.mjs +0 -10
  1179. package/_shims/bun-runtime.mjs.map +0 -1
  1180. package/_shims/index.d.ts +0 -83
  1181. package/_shims/index.js +0 -17
  1182. package/_shims/index.mjs +0 -11
  1183. package/_shims/manual-types.d.ts +0 -12
  1184. package/_shims/manual-types.js +0 -3
  1185. package/_shims/manual-types.mjs +0 -3
  1186. package/_shims/node-runtime.d.ts +0 -3
  1187. package/_shims/node-runtime.d.ts.map +0 -1
  1188. package/_shims/node-runtime.js +0 -89
  1189. package/_shims/node-runtime.js.map +0 -1
  1190. package/_shims/node-runtime.mjs +0 -56
  1191. package/_shims/node-runtime.mjs.map +0 -1
  1192. package/_shims/node-types.d.ts +0 -42
  1193. package/_shims/node-types.js +0 -3
  1194. package/_shims/node-types.mjs +0 -3
  1195. package/_shims/registry.d.ts +0 -37
  1196. package/_shims/registry.d.ts.map +0 -1
  1197. package/_shims/registry.js +0 -41
  1198. package/_shims/registry.js.map +0 -1
  1199. package/_shims/registry.mjs +0 -37
  1200. package/_shims/registry.mjs.map +0 -1
  1201. package/_shims/web-runtime.d.ts +0 -5
  1202. package/_shims/web-runtime.d.ts.map +0 -1
  1203. package/_shims/web-runtime.js +0 -78
  1204. package/_shims/web-runtime.js.map +0 -1
  1205. package/_shims/web-runtime.mjs +0 -71
  1206. package/_shims/web-runtime.mjs.map +0 -1
  1207. package/_shims/web-types.d.ts +0 -83
  1208. package/_shims/web-types.js +0 -3
  1209. package/_shims/web-types.mjs +0 -3
  1210. package/core.d.ts +0 -255
  1211. package/core.d.ts.map +0 -1
  1212. package/core.js +0 -924
  1213. package/core.js.map +0 -1
  1214. package/core.mjs +0 -892
  1215. package/core.mjs.map +0 -1
  1216. package/resources/webhooks.d.ts +0 -22
  1217. package/resources/webhooks.d.ts.map +0 -1
  1218. package/resources/webhooks.js +0 -82
  1219. package/resources/webhooks.js.map +0 -1
  1220. package/resources/webhooks.mjs +0 -78
  1221. package/resources/webhooks.mjs.map +0 -1
  1222. package/shims/node.d.ts +0 -30
  1223. package/shims/node.d.ts.map +0 -1
  1224. package/shims/node.js +0 -31
  1225. package/shims/node.js.map +0 -1
  1226. package/shims/node.mjs +0 -5
  1227. package/shims/node.mjs.map +0 -1
  1228. package/shims/web.d.ts +0 -26
  1229. package/shims/web.d.ts.map +0 -1
  1230. package/shims/web.js +0 -31
  1231. package/shims/web.js.map +0 -1
  1232. package/shims/web.mjs +0 -5
  1233. package/shims/web.mjs.map +0 -1
  1234. package/src/_shims/MultipartBody.ts +0 -9
  1235. package/src/_shims/README.md +0 -46
  1236. package/src/_shims/auto/runtime-bun.ts +0 -4
  1237. package/src/_shims/auto/runtime-node.ts +0 -4
  1238. package/src/_shims/auto/runtime.ts +0 -4
  1239. package/src/_shims/auto/types-node.ts +0 -4
  1240. package/src/_shims/auto/types.d.ts +0 -101
  1241. package/src/_shims/auto/types.js +0 -3
  1242. package/src/_shims/auto/types.mjs +0 -3
  1243. package/src/_shims/bun-runtime.ts +0 -14
  1244. package/src/_shims/index.d.ts +0 -83
  1245. package/src/_shims/index.js +0 -17
  1246. package/src/_shims/index.mjs +0 -11
  1247. package/src/_shims/manual-types.d.ts +0 -12
  1248. package/src/_shims/manual-types.js +0 -3
  1249. package/src/_shims/manual-types.mjs +0 -3
  1250. package/src/_shims/node-runtime.ts +0 -81
  1251. package/src/_shims/node-types.d.ts +0 -42
  1252. package/src/_shims/node-types.js +0 -3
  1253. package/src/_shims/node-types.mjs +0 -3
  1254. package/src/_shims/registry.ts +0 -67
  1255. package/src/_shims/web-runtime.ts +0 -103
  1256. package/src/_shims/web-types.d.ts +0 -83
  1257. package/src/_shims/web-types.js +0 -3
  1258. package/src/_shims/web-types.mjs +0 -3
  1259. package/src/core.ts +0 -1236
  1260. package/src/resources/webhooks.ts +0 -110
  1261. package/src/shims/node.ts +0 -50
  1262. package/src/shims/web.ts +0 -50
@@ -0,0 +1,2759 @@
1
+ import { APIResource } from "../core/resource.mjs";
2
+ import * as SupplementalDocumentsAPI from "./supplemental-documents.mjs";
3
+ import { APIPromise } from "../core/api-promise.mjs";
4
+ import { Page, type PageParams, PagePromise } from "../core/pagination.mjs";
5
+ import { RequestOptions } from "../internal/request-options.mjs";
6
+ export declare class Entities extends APIResource {
7
+ /**
8
+ * Create an Entity
9
+ *
10
+ * @example
11
+ * ```ts
12
+ * const entity = await client.entities.create({
13
+ * structure: 'corporation',
14
+ * });
15
+ * ```
16
+ */
17
+ create(body: EntityCreateParams, options?: RequestOptions): APIPromise<Entity>;
18
+ /**
19
+ * Retrieve an Entity
20
+ *
21
+ * @example
22
+ * ```ts
23
+ * const entity = await client.entities.retrieve(
24
+ * 'entity_n8y8tnk2p9339ti393yi',
25
+ * );
26
+ * ```
27
+ */
28
+ retrieve(entityID: string, options?: RequestOptions): APIPromise<Entity>;
29
+ /**
30
+ * Update an Entity
31
+ *
32
+ * @example
33
+ * ```ts
34
+ * const entity = await client.entities.update(
35
+ * 'entity_n8y8tnk2p9339ti393yi',
36
+ * );
37
+ * ```
38
+ */
39
+ update(entityID: string, body: EntityUpdateParams, options?: RequestOptions): APIPromise<Entity>;
40
+ /**
41
+ * List Entities
42
+ *
43
+ * @example
44
+ * ```ts
45
+ * // Automatically fetches more pages as needed.
46
+ * for await (const entity of client.entities.list()) {
47
+ * // ...
48
+ * }
49
+ * ```
50
+ */
51
+ list(query?: EntityListParams | null | undefined, options?: RequestOptions): PagePromise<EntitiesPage, Entity>;
52
+ /**
53
+ * Archive an Entity
54
+ *
55
+ * @example
56
+ * ```ts
57
+ * const entity = await client.entities.archive(
58
+ * 'entity_n8y8tnk2p9339ti393yi',
59
+ * );
60
+ * ```
61
+ */
62
+ archive(entityID: string, options?: RequestOptions): APIPromise<Entity>;
63
+ /**
64
+ * Archive a beneficial owner for a corporate Entity
65
+ *
66
+ * @example
67
+ * ```ts
68
+ * const entity = await client.entities.archiveBeneficialOwner(
69
+ * 'entity_n8y8tnk2p9339ti393yi',
70
+ * {
71
+ * beneficial_owner_id:
72
+ * 'entity_setup_beneficial_owner_submission_vgkyk7dj5eb4sfhdbkx7',
73
+ * },
74
+ * );
75
+ * ```
76
+ */
77
+ archiveBeneficialOwner(entityID: string, body: EntityArchiveBeneficialOwnerParams, options?: RequestOptions): APIPromise<Entity>;
78
+ /**
79
+ * Depending on your program, you may be required to re-confirm an Entity's details
80
+ * on a recurring basis. After making any required updates, call this endpoint to
81
+ * record that your user confirmed their details.
82
+ *
83
+ * @example
84
+ * ```ts
85
+ * const entity = await client.entities.confirm(
86
+ * 'entity_n8y8tnk2p9339ti393yi',
87
+ * );
88
+ * ```
89
+ */
90
+ confirm(entityID: string, body: EntityConfirmParams, options?: RequestOptions): APIPromise<Entity>;
91
+ /**
92
+ * Create a beneficial owner for a corporate Entity
93
+ *
94
+ * @example
95
+ * ```ts
96
+ * const entity = await client.entities.createBeneficialOwner(
97
+ * 'entity_n8y8tnk2p9339ti393yi',
98
+ * {
99
+ * beneficial_owner: {
100
+ * individual: {
101
+ * address: {
102
+ * city: 'New York',
103
+ * country: 'US',
104
+ * line1: '33 Liberty Street',
105
+ * },
106
+ * date_of_birth: '1970-01-31',
107
+ * identification: {
108
+ * method: 'social_security_number',
109
+ * number: '078051120',
110
+ * },
111
+ * name: 'Ian Crease',
112
+ * },
113
+ * prongs: ['control'],
114
+ * },
115
+ * },
116
+ * );
117
+ * ```
118
+ */
119
+ createBeneficialOwner(entityID: string, body: EntityCreateBeneficialOwnerParams, options?: RequestOptions): APIPromise<Entity>;
120
+ /**
121
+ * Update a Natural Person or Corporation's address
122
+ *
123
+ * @example
124
+ * ```ts
125
+ * const entity = await client.entities.updateAddress(
126
+ * 'entity_n8y8tnk2p9339ti393yi',
127
+ * {
128
+ * address: {
129
+ * city: 'New York',
130
+ * line1: '33 Liberty Street',
131
+ * state: 'NY',
132
+ * zip: '10045',
133
+ * },
134
+ * },
135
+ * );
136
+ * ```
137
+ */
138
+ updateAddress(entityID: string, body: EntityUpdateAddressParams, options?: RequestOptions): APIPromise<Entity>;
139
+ /**
140
+ * Update the address for a beneficial owner belonging to a corporate Entity
141
+ *
142
+ * @example
143
+ * ```ts
144
+ * const entity =
145
+ * await client.entities.updateBeneficialOwnerAddress(
146
+ * 'entity_n8y8tnk2p9339ti393yi',
147
+ * {
148
+ * address: {
149
+ * city: 'New York',
150
+ * country: 'US',
151
+ * line1: '33 Liberty Street',
152
+ * },
153
+ * beneficial_owner_id:
154
+ * 'entity_setup_beneficial_owner_submission_vgkyk7dj5eb4sfhdbkx7',
155
+ * },
156
+ * );
157
+ * ```
158
+ */
159
+ updateBeneficialOwnerAddress(entityID: string, body: EntityUpdateBeneficialOwnerAddressParams, options?: RequestOptions): APIPromise<Entity>;
160
+ /**
161
+ * Update the industry code for a corporate Entity
162
+ *
163
+ * @example
164
+ * ```ts
165
+ * const entity = await client.entities.updateIndustryCode(
166
+ * 'entity_n8y8tnk2p9339ti393yi',
167
+ * { industry_code: '5132' },
168
+ * );
169
+ * ```
170
+ */
171
+ updateIndustryCode(entityID: string, body: EntityUpdateIndustryCodeParams, options?: RequestOptions): APIPromise<Entity>;
172
+ }
173
+ export type EntitiesPage = Page<Entity>;
174
+ /**
175
+ * Entities are the legal entities that own accounts. They can be people,
176
+ * corporations, partnerships, government authorities, or trusts.
177
+ */
178
+ export interface Entity {
179
+ /**
180
+ * The entity's identifier.
181
+ */
182
+ id: string;
183
+ /**
184
+ * Details of the corporation entity. Will be present if `structure` is equal to
185
+ * `corporation`.
186
+ */
187
+ corporation: Entity.Corporation | null;
188
+ /**
189
+ * The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the Entity
190
+ * was created.
191
+ */
192
+ created_at: string;
193
+ /**
194
+ * The entity's description for display purposes.
195
+ */
196
+ description: string | null;
197
+ /**
198
+ * The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the
199
+ * Entity's details were most recently confirmed.
200
+ */
201
+ details_confirmed_at: string | null;
202
+ /**
203
+ * Details of the government authority entity. Will be present if `structure` is
204
+ * equal to `government_authority`.
205
+ */
206
+ government_authority: Entity.GovernmentAuthority | null;
207
+ /**
208
+ * The idempotency key you chose for this object. This value is unique across
209
+ * Increase and is used to ensure that a request is only processed once. Learn more
210
+ * about [idempotency](https://increase.com/documentation/idempotency-keys).
211
+ */
212
+ idempotency_key: string | null;
213
+ /**
214
+ * Details of the joint entity. Will be present if `structure` is equal to `joint`.
215
+ */
216
+ joint: Entity.Joint | null;
217
+ /**
218
+ * Details of the natural person entity. Will be present if `structure` is equal to
219
+ * `natural_person`.
220
+ */
221
+ natural_person: Entity.NaturalPerson | null;
222
+ /**
223
+ * An assessment of the entity’s potential risk of involvement in financial crimes,
224
+ * such as money laundering.
225
+ */
226
+ risk_rating: Entity.RiskRating | null;
227
+ /**
228
+ * The status of the entity.
229
+ *
230
+ * - `active` - The entity is active.
231
+ * - `archived` - The entity is archived, and can no longer be used to create
232
+ * accounts.
233
+ * - `disabled` - The entity is temporarily disabled and cannot be used for
234
+ * financial activity.
235
+ */
236
+ status: 'active' | 'archived' | 'disabled';
237
+ /**
238
+ * The entity's legal structure.
239
+ *
240
+ * - `corporation` - A corporation.
241
+ * - `natural_person` - An individual person.
242
+ * - `joint` - Multiple individual people.
243
+ * - `trust` - A trust.
244
+ * - `government_authority` - A government authority.
245
+ */
246
+ structure: 'corporation' | 'natural_person' | 'joint' | 'trust' | 'government_authority';
247
+ /**
248
+ * Additional documentation associated with the entity. This is limited to the
249
+ * first 10 documents for an entity. If an entity has more than 10 documents, use
250
+ * the GET /entity_supplemental_documents list endpoint to retrieve them.
251
+ */
252
+ supplemental_documents: Array<SupplementalDocumentsAPI.EntitySupplementalDocument>;
253
+ /**
254
+ * If you are using a third-party service for identity verification, you can use
255
+ * this field to associate this Entity with the identifier that represents them in
256
+ * that service.
257
+ */
258
+ third_party_verification: Entity.ThirdPartyVerification | null;
259
+ /**
260
+ * Details of the trust entity. Will be present if `structure` is equal to `trust`.
261
+ */
262
+ trust: Entity.Trust | null;
263
+ /**
264
+ * A constant representing the object's type. For this resource it will always be
265
+ * `entity`.
266
+ */
267
+ type: 'entity';
268
+ }
269
+ export declare namespace Entity {
270
+ /**
271
+ * Details of the corporation entity. Will be present if `structure` is equal to
272
+ * `corporation`.
273
+ */
274
+ interface Corporation {
275
+ /**
276
+ * The corporation's address.
277
+ */
278
+ address: Corporation.Address;
279
+ /**
280
+ * The identifying details of anyone controlling or owning 25% or more of the
281
+ * corporation.
282
+ */
283
+ beneficial_owners: Array<Corporation.BeneficialOwner>;
284
+ /**
285
+ * The two-letter United States Postal Service (USPS) abbreviation for the
286
+ * corporation's state of incorporation.
287
+ */
288
+ incorporation_state: string | null;
289
+ /**
290
+ * The numeric North American Industry Classification System (NAICS) code submitted
291
+ * for the corporation.
292
+ */
293
+ industry_code: string | null;
294
+ /**
295
+ * The legal name of the corporation.
296
+ */
297
+ name: string;
298
+ /**
299
+ * The Employer Identification Number (EIN) for the corporation.
300
+ */
301
+ tax_identifier: string | null;
302
+ /**
303
+ * The website of the corporation.
304
+ */
305
+ website: string | null;
306
+ }
307
+ namespace Corporation {
308
+ /**
309
+ * The corporation's address.
310
+ */
311
+ interface Address {
312
+ /**
313
+ * The city of the address.
314
+ */
315
+ city: string;
316
+ /**
317
+ * The first line of the address.
318
+ */
319
+ line1: string;
320
+ /**
321
+ * The second line of the address.
322
+ */
323
+ line2: string | null;
324
+ /**
325
+ * The two-letter United States Postal Service (USPS) abbreviation for the state of
326
+ * the address.
327
+ */
328
+ state: string;
329
+ /**
330
+ * The ZIP code of the address.
331
+ */
332
+ zip: string;
333
+ }
334
+ interface BeneficialOwner {
335
+ /**
336
+ * The identifier of this beneficial owner.
337
+ */
338
+ beneficial_owner_id: string;
339
+ /**
340
+ * This person's role or title within the entity.
341
+ */
342
+ company_title: string | null;
343
+ /**
344
+ * Personal details for the beneficial owner.
345
+ */
346
+ individual: BeneficialOwner.Individual;
347
+ /**
348
+ * Why this person is considered a beneficial owner of the entity.
349
+ *
350
+ * - `ownership` - A person with 25% or greater direct or indirect ownership of the
351
+ * entity.
352
+ * - `control` - A person who manages, directs, or has significant control of the
353
+ * entity.
354
+ */
355
+ prong: 'ownership' | 'control';
356
+ }
357
+ namespace BeneficialOwner {
358
+ /**
359
+ * Personal details for the beneficial owner.
360
+ */
361
+ interface Individual {
362
+ /**
363
+ * The person's address.
364
+ */
365
+ address: Individual.Address;
366
+ /**
367
+ * The person's date of birth in YYYY-MM-DD format.
368
+ */
369
+ date_of_birth: string;
370
+ /**
371
+ * A means of verifying the person's identity.
372
+ */
373
+ identification: Individual.Identification;
374
+ /**
375
+ * The person's legal name.
376
+ */
377
+ name: string;
378
+ }
379
+ namespace Individual {
380
+ /**
381
+ * The person's address.
382
+ */
383
+ interface Address {
384
+ /**
385
+ * The city, district, town, or village of the address.
386
+ */
387
+ city: string | null;
388
+ /**
389
+ * The two-letter ISO 3166-1 alpha-2 code for the country of the address.
390
+ */
391
+ country: string;
392
+ /**
393
+ * The first line of the address.
394
+ */
395
+ line1: string;
396
+ /**
397
+ * The second line of the address.
398
+ */
399
+ line2: string | null;
400
+ /**
401
+ * The two-letter United States Postal Service (USPS) abbreviation for the US
402
+ * state, province, or region of the address.
403
+ */
404
+ state: string | null;
405
+ /**
406
+ * The ZIP or postal code of the address.
407
+ */
408
+ zip: string | null;
409
+ }
410
+ /**
411
+ * A means of verifying the person's identity.
412
+ */
413
+ interface Identification {
414
+ /**
415
+ * A method that can be used to verify the individual's identity.
416
+ *
417
+ * - `social_security_number` - A social security number.
418
+ * - `individual_taxpayer_identification_number` - An individual taxpayer
419
+ * identification number (ITIN).
420
+ * - `passport` - A passport number.
421
+ * - `drivers_license` - A driver's license number.
422
+ * - `other` - Another identifying document.
423
+ */
424
+ method: 'social_security_number' | 'individual_taxpayer_identification_number' | 'passport' | 'drivers_license' | 'other';
425
+ /**
426
+ * The last 4 digits of the identification number that can be used to verify the
427
+ * individual's identity.
428
+ */
429
+ number_last4: string;
430
+ [k: string]: unknown;
431
+ }
432
+ }
433
+ }
434
+ }
435
+ /**
436
+ * Details of the government authority entity. Will be present if `structure` is
437
+ * equal to `government_authority`.
438
+ */
439
+ interface GovernmentAuthority {
440
+ /**
441
+ * The government authority's address.
442
+ */
443
+ address: GovernmentAuthority.Address;
444
+ /**
445
+ * The identifying details of authorized persons of the government authority.
446
+ */
447
+ authorized_persons: Array<GovernmentAuthority.AuthorizedPerson>;
448
+ /**
449
+ * The category of the government authority.
450
+ *
451
+ * - `municipality` - A municipality.
452
+ * - `state_agency` - A state agency.
453
+ * - `state_government` - A state government.
454
+ * - `federal_agency` - A federal agency.
455
+ */
456
+ category: 'municipality' | 'state_agency' | 'state_government' | 'federal_agency';
457
+ /**
458
+ * The government authority's name.
459
+ */
460
+ name: string;
461
+ /**
462
+ * The Employer Identification Number (EIN) of the government authority.
463
+ */
464
+ tax_identifier: string | null;
465
+ /**
466
+ * The government authority's website.
467
+ */
468
+ website: string | null;
469
+ }
470
+ namespace GovernmentAuthority {
471
+ /**
472
+ * The government authority's address.
473
+ */
474
+ interface Address {
475
+ /**
476
+ * The city of the address.
477
+ */
478
+ city: string;
479
+ /**
480
+ * The first line of the address.
481
+ */
482
+ line1: string;
483
+ /**
484
+ * The second line of the address.
485
+ */
486
+ line2: string | null;
487
+ /**
488
+ * The two-letter United States Postal Service (USPS) abbreviation for the state of
489
+ * the address.
490
+ */
491
+ state: string;
492
+ /**
493
+ * The ZIP code of the address.
494
+ */
495
+ zip: string;
496
+ }
497
+ interface AuthorizedPerson {
498
+ /**
499
+ * The identifier of this authorized person.
500
+ */
501
+ authorized_person_id: string;
502
+ /**
503
+ * The person's legal name.
504
+ */
505
+ name: string;
506
+ }
507
+ }
508
+ /**
509
+ * Details of the joint entity. Will be present if `structure` is equal to `joint`.
510
+ */
511
+ interface Joint {
512
+ /**
513
+ * The two individuals that share control of the entity.
514
+ */
515
+ individuals: Array<Joint.Individual>;
516
+ /**
517
+ * The entity's name.
518
+ */
519
+ name: string;
520
+ }
521
+ namespace Joint {
522
+ interface Individual {
523
+ /**
524
+ * The person's address.
525
+ */
526
+ address: Individual.Address;
527
+ /**
528
+ * The person's date of birth in YYYY-MM-DD format.
529
+ */
530
+ date_of_birth: string;
531
+ /**
532
+ * A means of verifying the person's identity.
533
+ */
534
+ identification: Individual.Identification;
535
+ /**
536
+ * The person's legal name.
537
+ */
538
+ name: string;
539
+ }
540
+ namespace Individual {
541
+ /**
542
+ * The person's address.
543
+ */
544
+ interface Address {
545
+ /**
546
+ * The city of the address.
547
+ */
548
+ city: string;
549
+ /**
550
+ * The first line of the address.
551
+ */
552
+ line1: string;
553
+ /**
554
+ * The second line of the address.
555
+ */
556
+ line2: string | null;
557
+ /**
558
+ * The two-letter United States Postal Service (USPS) abbreviation for the state of
559
+ * the address.
560
+ */
561
+ state: string;
562
+ /**
563
+ * The ZIP code of the address.
564
+ */
565
+ zip: string;
566
+ }
567
+ /**
568
+ * A means of verifying the person's identity.
569
+ */
570
+ interface Identification {
571
+ /**
572
+ * A method that can be used to verify the individual's identity.
573
+ *
574
+ * - `social_security_number` - A social security number.
575
+ * - `individual_taxpayer_identification_number` - An individual taxpayer
576
+ * identification number (ITIN).
577
+ * - `passport` - A passport number.
578
+ * - `drivers_license` - A driver's license number.
579
+ * - `other` - Another identifying document.
580
+ */
581
+ method: 'social_security_number' | 'individual_taxpayer_identification_number' | 'passport' | 'drivers_license' | 'other';
582
+ /**
583
+ * The last 4 digits of the identification number that can be used to verify the
584
+ * individual's identity.
585
+ */
586
+ number_last4: string;
587
+ [k: string]: unknown;
588
+ }
589
+ }
590
+ }
591
+ /**
592
+ * Details of the natural person entity. Will be present if `structure` is equal to
593
+ * `natural_person`.
594
+ */
595
+ interface NaturalPerson {
596
+ /**
597
+ * The person's address.
598
+ */
599
+ address: NaturalPerson.Address;
600
+ /**
601
+ * The person's date of birth in YYYY-MM-DD format.
602
+ */
603
+ date_of_birth: string;
604
+ /**
605
+ * A means of verifying the person's identity.
606
+ */
607
+ identification: NaturalPerson.Identification;
608
+ /**
609
+ * The person's legal name.
610
+ */
611
+ name: string;
612
+ }
613
+ namespace NaturalPerson {
614
+ /**
615
+ * The person's address.
616
+ */
617
+ interface Address {
618
+ /**
619
+ * The city of the address.
620
+ */
621
+ city: string;
622
+ /**
623
+ * The first line of the address.
624
+ */
625
+ line1: string;
626
+ /**
627
+ * The second line of the address.
628
+ */
629
+ line2: string | null;
630
+ /**
631
+ * The two-letter United States Postal Service (USPS) abbreviation for the state of
632
+ * the address.
633
+ */
634
+ state: string;
635
+ /**
636
+ * The ZIP code of the address.
637
+ */
638
+ zip: string;
639
+ }
640
+ /**
641
+ * A means of verifying the person's identity.
642
+ */
643
+ interface Identification {
644
+ /**
645
+ * A method that can be used to verify the individual's identity.
646
+ *
647
+ * - `social_security_number` - A social security number.
648
+ * - `individual_taxpayer_identification_number` - An individual taxpayer
649
+ * identification number (ITIN).
650
+ * - `passport` - A passport number.
651
+ * - `drivers_license` - A driver's license number.
652
+ * - `other` - Another identifying document.
653
+ */
654
+ method: 'social_security_number' | 'individual_taxpayer_identification_number' | 'passport' | 'drivers_license' | 'other';
655
+ /**
656
+ * The last 4 digits of the identification number that can be used to verify the
657
+ * individual's identity.
658
+ */
659
+ number_last4: string;
660
+ [k: string]: unknown;
661
+ }
662
+ }
663
+ /**
664
+ * An assessment of the entity’s potential risk of involvement in financial crimes,
665
+ * such as money laundering.
666
+ */
667
+ interface RiskRating {
668
+ /**
669
+ * The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the risk
670
+ * rating was performed.
671
+ */
672
+ rated_at: string;
673
+ /**
674
+ * The rating given to this entity.
675
+ *
676
+ * - `low` - Minimal risk of involvement in financial crime.
677
+ * - `medium` - Moderate risk of involvement in financial crime.
678
+ * - `high` - Elevated risk of involvement in financial crime.
679
+ */
680
+ rating: 'low' | 'medium' | 'high';
681
+ }
682
+ /**
683
+ * If you are using a third-party service for identity verification, you can use
684
+ * this field to associate this Entity with the identifier that represents them in
685
+ * that service.
686
+ */
687
+ interface ThirdPartyVerification {
688
+ /**
689
+ * The reference identifier for the third party verification.
690
+ */
691
+ reference: string;
692
+ /**
693
+ * The vendor that was used to perform the verification.
694
+ *
695
+ * - `alloy` - Alloy. See https://alloy.com for more information.
696
+ * - `middesk` - Middesk. See https://middesk.com for more information.
697
+ * - `oscilar` - Oscilar. See https://oscilar.com for more information.
698
+ */
699
+ vendor: 'alloy' | 'middesk' | 'oscilar';
700
+ }
701
+ /**
702
+ * Details of the trust entity. Will be present if `structure` is equal to `trust`.
703
+ */
704
+ interface Trust {
705
+ /**
706
+ * The trust's address.
707
+ */
708
+ address: Trust.Address;
709
+ /**
710
+ * Whether the trust is `revocable` or `irrevocable`.
711
+ *
712
+ * - `revocable` - The trust is revocable by the grantor.
713
+ * - `irrevocable` - The trust cannot be revoked.
714
+ */
715
+ category: 'revocable' | 'irrevocable';
716
+ /**
717
+ * The ID for the File containing the formation document of the trust.
718
+ */
719
+ formation_document_file_id: string | null;
720
+ /**
721
+ * The two-letter United States Postal Service (USPS) abbreviation for the state in
722
+ * which the trust was formed.
723
+ */
724
+ formation_state: string | null;
725
+ /**
726
+ * The grantor of the trust. Will be present if the `category` is `revocable`.
727
+ */
728
+ grantor: Trust.Grantor | null;
729
+ /**
730
+ * The trust's name.
731
+ */
732
+ name: string;
733
+ /**
734
+ * The Employer Identification Number (EIN) of the trust itself.
735
+ */
736
+ tax_identifier: string | null;
737
+ /**
738
+ * The trustees of the trust.
739
+ */
740
+ trustees: Array<Trust.Trustee>;
741
+ }
742
+ namespace Trust {
743
+ /**
744
+ * The trust's address.
745
+ */
746
+ interface Address {
747
+ /**
748
+ * The city of the address.
749
+ */
750
+ city: string;
751
+ /**
752
+ * The first line of the address.
753
+ */
754
+ line1: string;
755
+ /**
756
+ * The second line of the address.
757
+ */
758
+ line2: string | null;
759
+ /**
760
+ * The two-letter United States Postal Service (USPS) abbreviation for the state of
761
+ * the address.
762
+ */
763
+ state: string;
764
+ /**
765
+ * The ZIP code of the address.
766
+ */
767
+ zip: string;
768
+ }
769
+ /**
770
+ * The grantor of the trust. Will be present if the `category` is `revocable`.
771
+ */
772
+ interface Grantor {
773
+ /**
774
+ * The person's address.
775
+ */
776
+ address: Grantor.Address;
777
+ /**
778
+ * The person's date of birth in YYYY-MM-DD format.
779
+ */
780
+ date_of_birth: string;
781
+ /**
782
+ * A means of verifying the person's identity.
783
+ */
784
+ identification: Grantor.Identification;
785
+ /**
786
+ * The person's legal name.
787
+ */
788
+ name: string;
789
+ }
790
+ namespace Grantor {
791
+ /**
792
+ * The person's address.
793
+ */
794
+ interface Address {
795
+ /**
796
+ * The city of the address.
797
+ */
798
+ city: string;
799
+ /**
800
+ * The first line of the address.
801
+ */
802
+ line1: string;
803
+ /**
804
+ * The second line of the address.
805
+ */
806
+ line2: string | null;
807
+ /**
808
+ * The two-letter United States Postal Service (USPS) abbreviation for the state of
809
+ * the address.
810
+ */
811
+ state: string;
812
+ /**
813
+ * The ZIP code of the address.
814
+ */
815
+ zip: string;
816
+ }
817
+ /**
818
+ * A means of verifying the person's identity.
819
+ */
820
+ interface Identification {
821
+ /**
822
+ * A method that can be used to verify the individual's identity.
823
+ *
824
+ * - `social_security_number` - A social security number.
825
+ * - `individual_taxpayer_identification_number` - An individual taxpayer
826
+ * identification number (ITIN).
827
+ * - `passport` - A passport number.
828
+ * - `drivers_license` - A driver's license number.
829
+ * - `other` - Another identifying document.
830
+ */
831
+ method: 'social_security_number' | 'individual_taxpayer_identification_number' | 'passport' | 'drivers_license' | 'other';
832
+ /**
833
+ * The last 4 digits of the identification number that can be used to verify the
834
+ * individual's identity.
835
+ */
836
+ number_last4: string;
837
+ [k: string]: unknown;
838
+ }
839
+ }
840
+ interface Trustee {
841
+ /**
842
+ * The individual trustee of the trust. Will be present if the trustee's
843
+ * `structure` is equal to `individual`.
844
+ */
845
+ individual: Trustee.Individual | null;
846
+ /**
847
+ * The structure of the trustee. Will always be equal to `individual`.
848
+ *
849
+ * - `individual` - The trustee is an individual.
850
+ */
851
+ structure: 'individual';
852
+ }
853
+ namespace Trustee {
854
+ /**
855
+ * The individual trustee of the trust. Will be present if the trustee's
856
+ * `structure` is equal to `individual`.
857
+ */
858
+ interface Individual {
859
+ /**
860
+ * The person's address.
861
+ */
862
+ address: Individual.Address;
863
+ /**
864
+ * The person's date of birth in YYYY-MM-DD format.
865
+ */
866
+ date_of_birth: string;
867
+ /**
868
+ * A means of verifying the person's identity.
869
+ */
870
+ identification: Individual.Identification;
871
+ /**
872
+ * The person's legal name.
873
+ */
874
+ name: string;
875
+ }
876
+ namespace Individual {
877
+ /**
878
+ * The person's address.
879
+ */
880
+ interface Address {
881
+ /**
882
+ * The city of the address.
883
+ */
884
+ city: string;
885
+ /**
886
+ * The first line of the address.
887
+ */
888
+ line1: string;
889
+ /**
890
+ * The second line of the address.
891
+ */
892
+ line2: string | null;
893
+ /**
894
+ * The two-letter United States Postal Service (USPS) abbreviation for the state of
895
+ * the address.
896
+ */
897
+ state: string;
898
+ /**
899
+ * The ZIP code of the address.
900
+ */
901
+ zip: string;
902
+ }
903
+ /**
904
+ * A means of verifying the person's identity.
905
+ */
906
+ interface Identification {
907
+ /**
908
+ * A method that can be used to verify the individual's identity.
909
+ *
910
+ * - `social_security_number` - A social security number.
911
+ * - `individual_taxpayer_identification_number` - An individual taxpayer
912
+ * identification number (ITIN).
913
+ * - `passport` - A passport number.
914
+ * - `drivers_license` - A driver's license number.
915
+ * - `other` - Another identifying document.
916
+ */
917
+ method: 'social_security_number' | 'individual_taxpayer_identification_number' | 'passport' | 'drivers_license' | 'other';
918
+ /**
919
+ * The last 4 digits of the identification number that can be used to verify the
920
+ * individual's identity.
921
+ */
922
+ number_last4: string;
923
+ [k: string]: unknown;
924
+ }
925
+ }
926
+ }
927
+ }
928
+ }
929
+ export interface EntityCreateParams {
930
+ /**
931
+ * The type of Entity to create.
932
+ *
933
+ * - `corporation` - A corporation.
934
+ * - `natural_person` - An individual person.
935
+ * - `joint` - Multiple individual people.
936
+ * - `trust` - A trust.
937
+ * - `government_authority` - A government authority.
938
+ */
939
+ structure: 'corporation' | 'natural_person' | 'joint' | 'trust' | 'government_authority';
940
+ /**
941
+ * Details of the corporation entity to create. Required if `structure` is equal to
942
+ * `corporation`.
943
+ */
944
+ corporation?: EntityCreateParams.Corporation;
945
+ /**
946
+ * The description you choose to give the entity.
947
+ */
948
+ description?: string;
949
+ /**
950
+ * Details of the Government Authority entity to create. Required if `structure` is
951
+ * equal to `government_authority`.
952
+ */
953
+ government_authority?: EntityCreateParams.GovernmentAuthority;
954
+ /**
955
+ * Details of the joint entity to create. Required if `structure` is equal to
956
+ * `joint`.
957
+ */
958
+ joint?: EntityCreateParams.Joint;
959
+ /**
960
+ * Details of the natural person entity to create. Required if `structure` is equal
961
+ * to `natural_person`. Natural people entities should be submitted with
962
+ * `social_security_number` or `individual_taxpayer_identification_number`
963
+ * identification methods.
964
+ */
965
+ natural_person?: EntityCreateParams.NaturalPerson;
966
+ /**
967
+ * An assessment of the entity’s potential risk of involvement in financial crimes,
968
+ * such as money laundering.
969
+ */
970
+ risk_rating?: EntityCreateParams.RiskRating;
971
+ /**
972
+ * Additional documentation associated with the entity.
973
+ */
974
+ supplemental_documents?: Array<EntityCreateParams.SupplementalDocument>;
975
+ /**
976
+ * If you are using a third-party service for identity verification, you can use
977
+ * this field to associate this Entity with the identifier that represents them in
978
+ * that service.
979
+ */
980
+ third_party_verification?: EntityCreateParams.ThirdPartyVerification;
981
+ /**
982
+ * Details of the trust entity to create. Required if `structure` is equal to
983
+ * `trust`.
984
+ */
985
+ trust?: EntityCreateParams.Trust;
986
+ [k: string]: unknown;
987
+ }
988
+ export declare namespace EntityCreateParams {
989
+ /**
990
+ * Details of the corporation entity to create. Required if `structure` is equal to
991
+ * `corporation`.
992
+ */
993
+ interface Corporation {
994
+ /**
995
+ * The entity's physical address. Mail receiving locations like PO Boxes and PMB's
996
+ * are disallowed.
997
+ */
998
+ address: Corporation.Address;
999
+ /**
1000
+ * The identifying details of each person who owns 25% or more of the business and
1001
+ * one control person, like the CEO, CFO, or other executive. You can submit
1002
+ * between 1 and 5 people to this list.
1003
+ */
1004
+ beneficial_owners: Array<Corporation.BeneficialOwner>;
1005
+ /**
1006
+ * The legal name of the corporation.
1007
+ */
1008
+ name: string;
1009
+ /**
1010
+ * The Employer Identification Number (EIN) for the corporation.
1011
+ */
1012
+ tax_identifier: string;
1013
+ /**
1014
+ * If the entity is exempt from the requirement to submit beneficial owners,
1015
+ * provide the justification. If a reason is provided, you do not need to submit a
1016
+ * list of beneficial owners.
1017
+ *
1018
+ * - `regulated_financial_institution` - A regulated financial institution.
1019
+ * - `publicly_traded_company` - A publicly traded company.
1020
+ * - `public_entity` - A public entity acting on behalf of the federal or a state
1021
+ * government.
1022
+ * - `other` - Any other reason why this entity is exempt from the requirement to
1023
+ * submit beneficial owners. You can only use this exemption after approval from
1024
+ * your bank partner.
1025
+ */
1026
+ beneficial_ownership_exemption_reason?: 'regulated_financial_institution' | 'publicly_traded_company' | 'public_entity' | 'other';
1027
+ /**
1028
+ * The two-letter United States Postal Service (USPS) abbreviation for the
1029
+ * corporation's state of incorporation.
1030
+ */
1031
+ incorporation_state?: string;
1032
+ /**
1033
+ * The North American Industry Classification System (NAICS) code for the
1034
+ * corporation's primary line of business. This is a number, like `5132` for
1035
+ * `Software Publishers`. A full list of classification codes is available
1036
+ * [here](https://increase.com/documentation/data-dictionary#north-american-industry-classification-system-codes).
1037
+ */
1038
+ industry_code?: string;
1039
+ /**
1040
+ * The website of the corporation.
1041
+ */
1042
+ website?: string;
1043
+ }
1044
+ namespace Corporation {
1045
+ /**
1046
+ * The entity's physical address. Mail receiving locations like PO Boxes and PMB's
1047
+ * are disallowed.
1048
+ */
1049
+ interface Address {
1050
+ /**
1051
+ * The city of the address.
1052
+ */
1053
+ city: string;
1054
+ /**
1055
+ * The first line of the address. This is usually the street number and street.
1056
+ */
1057
+ line1: string;
1058
+ /**
1059
+ * The two-letter United States Postal Service (USPS) abbreviation for the state of
1060
+ * the address.
1061
+ */
1062
+ state: string;
1063
+ /**
1064
+ * The ZIP code of the address.
1065
+ */
1066
+ zip: string;
1067
+ /**
1068
+ * The second line of the address. This might be the floor or room number.
1069
+ */
1070
+ line2?: string;
1071
+ }
1072
+ interface BeneficialOwner {
1073
+ /**
1074
+ * Personal details for the beneficial owner.
1075
+ */
1076
+ individual: BeneficialOwner.Individual;
1077
+ /**
1078
+ * Why this person is considered a beneficial owner of the entity. At least one
1079
+ * option is required, if a person is both a control person and owner, submit an
1080
+ * array containing both.
1081
+ */
1082
+ prongs: Array<'ownership' | 'control'>;
1083
+ /**
1084
+ * This person's role or title within the entity.
1085
+ */
1086
+ company_title?: string;
1087
+ [k: string]: unknown;
1088
+ }
1089
+ namespace BeneficialOwner {
1090
+ /**
1091
+ * Personal details for the beneficial owner.
1092
+ */
1093
+ interface Individual {
1094
+ /**
1095
+ * The individual's physical address. Mail receiving locations like PO Boxes and
1096
+ * PMB's are disallowed.
1097
+ */
1098
+ address: Individual.Address;
1099
+ /**
1100
+ * The person's date of birth in YYYY-MM-DD format.
1101
+ */
1102
+ date_of_birth: string;
1103
+ /**
1104
+ * A means of verifying the person's identity.
1105
+ */
1106
+ identification: Individual.Identification;
1107
+ /**
1108
+ * The person's legal name.
1109
+ */
1110
+ name: string;
1111
+ /**
1112
+ * The identification method for an individual can only be a passport, driver's
1113
+ * license, or other document if you've confirmed the individual does not have a US
1114
+ * tax id (either a Social Security Number or Individual Taxpayer Identification
1115
+ * Number).
1116
+ */
1117
+ confirmed_no_us_tax_id?: boolean;
1118
+ }
1119
+ namespace Individual {
1120
+ /**
1121
+ * The individual's physical address. Mail receiving locations like PO Boxes and
1122
+ * PMB's are disallowed.
1123
+ */
1124
+ interface Address {
1125
+ /**
1126
+ * The city, district, town, or village of the address.
1127
+ */
1128
+ city: string;
1129
+ /**
1130
+ * The two-letter ISO 3166-1 alpha-2 code for the country of the address.
1131
+ */
1132
+ country: string;
1133
+ /**
1134
+ * The first line of the address. This is usually the street number and street.
1135
+ */
1136
+ line1: string;
1137
+ /**
1138
+ * The second line of the address. This might be the floor or room number.
1139
+ */
1140
+ line2?: string;
1141
+ /**
1142
+ * The two-letter United States Postal Service (USPS) abbreviation for the US
1143
+ * state, province, or region of the address. Required in certain countries.
1144
+ */
1145
+ state?: string;
1146
+ /**
1147
+ * The ZIP or postal code of the address. Required in certain countries.
1148
+ */
1149
+ zip?: string;
1150
+ }
1151
+ /**
1152
+ * A means of verifying the person's identity.
1153
+ */
1154
+ interface Identification {
1155
+ /**
1156
+ * A method that can be used to verify the individual's identity.
1157
+ *
1158
+ * - `social_security_number` - A social security number.
1159
+ * - `individual_taxpayer_identification_number` - An individual taxpayer
1160
+ * identification number (ITIN).
1161
+ * - `passport` - A passport number.
1162
+ * - `drivers_license` - A driver's license number.
1163
+ * - `other` - Another identifying document.
1164
+ */
1165
+ method: 'social_security_number' | 'individual_taxpayer_identification_number' | 'passport' | 'drivers_license' | 'other';
1166
+ /**
1167
+ * An identification number that can be used to verify the individual's identity,
1168
+ * such as a social security number.
1169
+ */
1170
+ number: string;
1171
+ /**
1172
+ * Information about the United States driver's license used for identification.
1173
+ * Required if `method` is equal to `drivers_license`.
1174
+ */
1175
+ drivers_license?: Identification.DriversLicense;
1176
+ /**
1177
+ * Information about the identification document provided. Required if `method` is
1178
+ * equal to `other`.
1179
+ */
1180
+ other?: Identification.Other;
1181
+ /**
1182
+ * Information about the passport used for identification. Required if `method` is
1183
+ * equal to `passport`.
1184
+ */
1185
+ passport?: Identification.Passport;
1186
+ [k: string]: unknown;
1187
+ }
1188
+ namespace Identification {
1189
+ /**
1190
+ * Information about the United States driver's license used for identification.
1191
+ * Required if `method` is equal to `drivers_license`.
1192
+ */
1193
+ interface DriversLicense {
1194
+ /**
1195
+ * The driver's license's expiration date in YYYY-MM-DD format.
1196
+ */
1197
+ expiration_date: string;
1198
+ /**
1199
+ * The identifier of the File containing the front of the driver's license.
1200
+ */
1201
+ file_id: string;
1202
+ /**
1203
+ * The state that issued the provided driver's license.
1204
+ */
1205
+ state: string;
1206
+ /**
1207
+ * The identifier of the File containing the back of the driver's license.
1208
+ */
1209
+ back_file_id?: string;
1210
+ }
1211
+ /**
1212
+ * Information about the identification document provided. Required if `method` is
1213
+ * equal to `other`.
1214
+ */
1215
+ interface Other {
1216
+ /**
1217
+ * The two-character ISO 3166-1 code representing the country that issued the
1218
+ * document (e.g., `US`).
1219
+ */
1220
+ country: string;
1221
+ /**
1222
+ * A description of the document submitted.
1223
+ */
1224
+ description: string;
1225
+ /**
1226
+ * The identifier of the File containing the front of the document.
1227
+ */
1228
+ file_id: string;
1229
+ /**
1230
+ * The identifier of the File containing the back of the document. Not every
1231
+ * document has a reverse side.
1232
+ */
1233
+ back_file_id?: string;
1234
+ /**
1235
+ * The document's expiration date in YYYY-MM-DD format.
1236
+ */
1237
+ expiration_date?: string;
1238
+ }
1239
+ /**
1240
+ * Information about the passport used for identification. Required if `method` is
1241
+ * equal to `passport`.
1242
+ */
1243
+ interface Passport {
1244
+ /**
1245
+ * The two-character ISO 3166-1 code representing the country that issued the
1246
+ * document (e.g., `US`).
1247
+ */
1248
+ country: string;
1249
+ /**
1250
+ * The passport's expiration date in YYYY-MM-DD format.
1251
+ */
1252
+ expiration_date: string;
1253
+ /**
1254
+ * The identifier of the File containing the passport.
1255
+ */
1256
+ file_id: string;
1257
+ }
1258
+ }
1259
+ }
1260
+ }
1261
+ }
1262
+ /**
1263
+ * Details of the Government Authority entity to create. Required if `structure` is
1264
+ * equal to `government_authority`.
1265
+ */
1266
+ interface GovernmentAuthority {
1267
+ /**
1268
+ * The entity's physical address. Mail receiving locations like PO Boxes and PMB's
1269
+ * are disallowed.
1270
+ */
1271
+ address: GovernmentAuthority.Address;
1272
+ /**
1273
+ * The identifying details of authorized officials acting on the entity's behalf.
1274
+ */
1275
+ authorized_persons: Array<GovernmentAuthority.AuthorizedPerson>;
1276
+ /**
1277
+ * The category of the government authority.
1278
+ *
1279
+ * - `municipality` - A municipality.
1280
+ * - `state_agency` - A state agency.
1281
+ * - `state_government` - A state government.
1282
+ * - `federal_agency` - A federal agency.
1283
+ */
1284
+ category: 'municipality' | 'state_agency' | 'state_government' | 'federal_agency';
1285
+ /**
1286
+ * The legal name of the government authority.
1287
+ */
1288
+ name: string;
1289
+ /**
1290
+ * The Employer Identification Number (EIN) for the government authority.
1291
+ */
1292
+ tax_identifier: string;
1293
+ /**
1294
+ * The website of the government authority.
1295
+ */
1296
+ website?: string;
1297
+ }
1298
+ namespace GovernmentAuthority {
1299
+ /**
1300
+ * The entity's physical address. Mail receiving locations like PO Boxes and PMB's
1301
+ * are disallowed.
1302
+ */
1303
+ interface Address {
1304
+ /**
1305
+ * The city of the address.
1306
+ */
1307
+ city: string;
1308
+ /**
1309
+ * The first line of the address. This is usually the street number and street.
1310
+ */
1311
+ line1: string;
1312
+ /**
1313
+ * The two-letter United States Postal Service (USPS) abbreviation for the state of
1314
+ * the address.
1315
+ */
1316
+ state: string;
1317
+ /**
1318
+ * The ZIP code of the address.
1319
+ */
1320
+ zip: string;
1321
+ /**
1322
+ * The second line of the address. This might be the floor or room number.
1323
+ */
1324
+ line2?: string;
1325
+ }
1326
+ interface AuthorizedPerson {
1327
+ /**
1328
+ * The person's legal name.
1329
+ */
1330
+ name: string;
1331
+ }
1332
+ }
1333
+ /**
1334
+ * Details of the joint entity to create. Required if `structure` is equal to
1335
+ * `joint`.
1336
+ */
1337
+ interface Joint {
1338
+ /**
1339
+ * The two individuals that share control of the entity.
1340
+ */
1341
+ individuals: Array<Joint.Individual>;
1342
+ }
1343
+ namespace Joint {
1344
+ interface Individual {
1345
+ /**
1346
+ * The individual's physical address. Mail receiving locations like PO Boxes and
1347
+ * PMB's are disallowed.
1348
+ */
1349
+ address: Individual.Address;
1350
+ /**
1351
+ * The person's date of birth in YYYY-MM-DD format.
1352
+ */
1353
+ date_of_birth: string;
1354
+ /**
1355
+ * A means of verifying the person's identity.
1356
+ */
1357
+ identification: Individual.Identification;
1358
+ /**
1359
+ * The person's legal name.
1360
+ */
1361
+ name: string;
1362
+ /**
1363
+ * The identification method for an individual can only be a passport, driver's
1364
+ * license, or other document if you've confirmed the individual does not have a US
1365
+ * tax id (either a Social Security Number or Individual Taxpayer Identification
1366
+ * Number).
1367
+ */
1368
+ confirmed_no_us_tax_id?: boolean;
1369
+ }
1370
+ namespace Individual {
1371
+ /**
1372
+ * The individual's physical address. Mail receiving locations like PO Boxes and
1373
+ * PMB's are disallowed.
1374
+ */
1375
+ interface Address {
1376
+ /**
1377
+ * The city of the address.
1378
+ */
1379
+ city: string;
1380
+ /**
1381
+ * The first line of the address. This is usually the street number and street.
1382
+ */
1383
+ line1: string;
1384
+ /**
1385
+ * The two-letter United States Postal Service (USPS) abbreviation for the state of
1386
+ * the address.
1387
+ */
1388
+ state: string;
1389
+ /**
1390
+ * The ZIP code of the address.
1391
+ */
1392
+ zip: string;
1393
+ /**
1394
+ * The second line of the address. This might be the floor or room number.
1395
+ */
1396
+ line2?: string;
1397
+ }
1398
+ /**
1399
+ * A means of verifying the person's identity.
1400
+ */
1401
+ interface Identification {
1402
+ /**
1403
+ * A method that can be used to verify the individual's identity.
1404
+ *
1405
+ * - `social_security_number` - A social security number.
1406
+ * - `individual_taxpayer_identification_number` - An individual taxpayer
1407
+ * identification number (ITIN).
1408
+ * - `passport` - A passport number.
1409
+ * - `drivers_license` - A driver's license number.
1410
+ * - `other` - Another identifying document.
1411
+ */
1412
+ method: 'social_security_number' | 'individual_taxpayer_identification_number' | 'passport' | 'drivers_license' | 'other';
1413
+ /**
1414
+ * An identification number that can be used to verify the individual's identity,
1415
+ * such as a social security number.
1416
+ */
1417
+ number: string;
1418
+ /**
1419
+ * Information about the United States driver's license used for identification.
1420
+ * Required if `method` is equal to `drivers_license`.
1421
+ */
1422
+ drivers_license?: Identification.DriversLicense;
1423
+ /**
1424
+ * Information about the identification document provided. Required if `method` is
1425
+ * equal to `other`.
1426
+ */
1427
+ other?: Identification.Other;
1428
+ /**
1429
+ * Information about the passport used for identification. Required if `method` is
1430
+ * equal to `passport`.
1431
+ */
1432
+ passport?: Identification.Passport;
1433
+ [k: string]: unknown;
1434
+ }
1435
+ namespace Identification {
1436
+ /**
1437
+ * Information about the United States driver's license used for identification.
1438
+ * Required if `method` is equal to `drivers_license`.
1439
+ */
1440
+ interface DriversLicense {
1441
+ /**
1442
+ * The driver's license's expiration date in YYYY-MM-DD format.
1443
+ */
1444
+ expiration_date: string;
1445
+ /**
1446
+ * The identifier of the File containing the front of the driver's license.
1447
+ */
1448
+ file_id: string;
1449
+ /**
1450
+ * The state that issued the provided driver's license.
1451
+ */
1452
+ state: string;
1453
+ /**
1454
+ * The identifier of the File containing the back of the driver's license.
1455
+ */
1456
+ back_file_id?: string;
1457
+ }
1458
+ /**
1459
+ * Information about the identification document provided. Required if `method` is
1460
+ * equal to `other`.
1461
+ */
1462
+ interface Other {
1463
+ /**
1464
+ * The two-character ISO 3166-1 code representing the country that issued the
1465
+ * document (e.g., `US`).
1466
+ */
1467
+ country: string;
1468
+ /**
1469
+ * A description of the document submitted.
1470
+ */
1471
+ description: string;
1472
+ /**
1473
+ * The identifier of the File containing the front of the document.
1474
+ */
1475
+ file_id: string;
1476
+ /**
1477
+ * The identifier of the File containing the back of the document. Not every
1478
+ * document has a reverse side.
1479
+ */
1480
+ back_file_id?: string;
1481
+ /**
1482
+ * The document's expiration date in YYYY-MM-DD format.
1483
+ */
1484
+ expiration_date?: string;
1485
+ }
1486
+ /**
1487
+ * Information about the passport used for identification. Required if `method` is
1488
+ * equal to `passport`.
1489
+ */
1490
+ interface Passport {
1491
+ /**
1492
+ * The two-character ISO 3166-1 code representing the country that issued the
1493
+ * passport (e.g., `US`).
1494
+ */
1495
+ country: string;
1496
+ /**
1497
+ * The passport's expiration date in YYYY-MM-DD format.
1498
+ */
1499
+ expiration_date: string;
1500
+ /**
1501
+ * The identifier of the File containing the passport.
1502
+ */
1503
+ file_id: string;
1504
+ }
1505
+ }
1506
+ }
1507
+ }
1508
+ /**
1509
+ * Details of the natural person entity to create. Required if `structure` is equal
1510
+ * to `natural_person`. Natural people entities should be submitted with
1511
+ * `social_security_number` or `individual_taxpayer_identification_number`
1512
+ * identification methods.
1513
+ */
1514
+ interface NaturalPerson {
1515
+ /**
1516
+ * The individual's physical address. Mail receiving locations like PO Boxes and
1517
+ * PMB's are disallowed.
1518
+ */
1519
+ address: NaturalPerson.Address;
1520
+ /**
1521
+ * The person's date of birth in YYYY-MM-DD format.
1522
+ */
1523
+ date_of_birth: string;
1524
+ /**
1525
+ * A means of verifying the person's identity.
1526
+ */
1527
+ identification: NaturalPerson.Identification;
1528
+ /**
1529
+ * The person's legal name.
1530
+ */
1531
+ name: string;
1532
+ /**
1533
+ * The identification method for an individual can only be a passport, driver's
1534
+ * license, or other document if you've confirmed the individual does not have a US
1535
+ * tax id (either a Social Security Number or Individual Taxpayer Identification
1536
+ * Number).
1537
+ */
1538
+ confirmed_no_us_tax_id?: boolean;
1539
+ }
1540
+ namespace NaturalPerson {
1541
+ /**
1542
+ * The individual's physical address. Mail receiving locations like PO Boxes and
1543
+ * PMB's are disallowed.
1544
+ */
1545
+ interface Address {
1546
+ /**
1547
+ * The city of the address.
1548
+ */
1549
+ city: string;
1550
+ /**
1551
+ * The first line of the address. This is usually the street number and street.
1552
+ */
1553
+ line1: string;
1554
+ /**
1555
+ * The two-letter United States Postal Service (USPS) abbreviation for the state of
1556
+ * the address.
1557
+ */
1558
+ state: string;
1559
+ /**
1560
+ * The ZIP code of the address.
1561
+ */
1562
+ zip: string;
1563
+ /**
1564
+ * The second line of the address. This might be the floor or room number.
1565
+ */
1566
+ line2?: string;
1567
+ }
1568
+ /**
1569
+ * A means of verifying the person's identity.
1570
+ */
1571
+ interface Identification {
1572
+ /**
1573
+ * A method that can be used to verify the individual's identity.
1574
+ *
1575
+ * - `social_security_number` - A social security number.
1576
+ * - `individual_taxpayer_identification_number` - An individual taxpayer
1577
+ * identification number (ITIN).
1578
+ * - `passport` - A passport number.
1579
+ * - `drivers_license` - A driver's license number.
1580
+ * - `other` - Another identifying document.
1581
+ */
1582
+ method: 'social_security_number' | 'individual_taxpayer_identification_number' | 'passport' | 'drivers_license' | 'other';
1583
+ /**
1584
+ * An identification number that can be used to verify the individual's identity,
1585
+ * such as a social security number.
1586
+ */
1587
+ number: string;
1588
+ /**
1589
+ * Information about the United States driver's license used for identification.
1590
+ * Required if `method` is equal to `drivers_license`.
1591
+ */
1592
+ drivers_license?: Identification.DriversLicense;
1593
+ /**
1594
+ * Information about the identification document provided. Required if `method` is
1595
+ * equal to `other`.
1596
+ */
1597
+ other?: Identification.Other;
1598
+ /**
1599
+ * Information about the passport used for identification. Required if `method` is
1600
+ * equal to `passport`.
1601
+ */
1602
+ passport?: Identification.Passport;
1603
+ [k: string]: unknown;
1604
+ }
1605
+ namespace Identification {
1606
+ /**
1607
+ * Information about the United States driver's license used for identification.
1608
+ * Required if `method` is equal to `drivers_license`.
1609
+ */
1610
+ interface DriversLicense {
1611
+ /**
1612
+ * The driver's license's expiration date in YYYY-MM-DD format.
1613
+ */
1614
+ expiration_date: string;
1615
+ /**
1616
+ * The identifier of the File containing the front of the driver's license.
1617
+ */
1618
+ file_id: string;
1619
+ /**
1620
+ * The state that issued the provided driver's license.
1621
+ */
1622
+ state: string;
1623
+ /**
1624
+ * The identifier of the File containing the back of the driver's license.
1625
+ */
1626
+ back_file_id?: string;
1627
+ }
1628
+ /**
1629
+ * Information about the identification document provided. Required if `method` is
1630
+ * equal to `other`.
1631
+ */
1632
+ interface Other {
1633
+ /**
1634
+ * The two-character ISO 3166-1 code representing the country that issued the
1635
+ * document (e.g., `US`).
1636
+ */
1637
+ country: string;
1638
+ /**
1639
+ * A description of the document submitted.
1640
+ */
1641
+ description: string;
1642
+ /**
1643
+ * The identifier of the File containing the front of the document.
1644
+ */
1645
+ file_id: string;
1646
+ /**
1647
+ * The identifier of the File containing the back of the document. Not every
1648
+ * document has a reverse side.
1649
+ */
1650
+ back_file_id?: string;
1651
+ /**
1652
+ * The document's expiration date in YYYY-MM-DD format.
1653
+ */
1654
+ expiration_date?: string;
1655
+ }
1656
+ /**
1657
+ * Information about the passport used for identification. Required if `method` is
1658
+ * equal to `passport`.
1659
+ */
1660
+ interface Passport {
1661
+ /**
1662
+ * The two-character ISO 3166-1 code representing the country that issued the
1663
+ * passport (e.g., `US`).
1664
+ */
1665
+ country: string;
1666
+ /**
1667
+ * The passport's expiration date in YYYY-MM-DD format.
1668
+ */
1669
+ expiration_date: string;
1670
+ /**
1671
+ * The identifier of the File containing the passport.
1672
+ */
1673
+ file_id: string;
1674
+ }
1675
+ }
1676
+ }
1677
+ /**
1678
+ * An assessment of the entity’s potential risk of involvement in financial crimes,
1679
+ * such as money laundering.
1680
+ */
1681
+ interface RiskRating {
1682
+ /**
1683
+ * The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the risk
1684
+ * rating was performed.
1685
+ */
1686
+ rated_at: string;
1687
+ /**
1688
+ * The rating given to this entity.
1689
+ *
1690
+ * - `low` - Minimal risk of involvement in financial crime.
1691
+ * - `medium` - Moderate risk of involvement in financial crime.
1692
+ * - `high` - Elevated risk of involvement in financial crime.
1693
+ */
1694
+ rating: 'low' | 'medium' | 'high';
1695
+ }
1696
+ interface SupplementalDocument {
1697
+ /**
1698
+ * The identifier of the File containing the document.
1699
+ */
1700
+ file_id: string;
1701
+ }
1702
+ /**
1703
+ * If you are using a third-party service for identity verification, you can use
1704
+ * this field to associate this Entity with the identifier that represents them in
1705
+ * that service.
1706
+ */
1707
+ interface ThirdPartyVerification {
1708
+ /**
1709
+ * The reference identifier for the third party verification.
1710
+ */
1711
+ reference: string;
1712
+ /**
1713
+ * The vendor that was used to perform the verification.
1714
+ *
1715
+ * - `alloy` - Alloy. See https://alloy.com for more information.
1716
+ * - `middesk` - Middesk. See https://middesk.com for more information.
1717
+ * - `oscilar` - Oscilar. See https://oscilar.com for more information.
1718
+ */
1719
+ vendor: 'alloy' | 'middesk' | 'oscilar';
1720
+ }
1721
+ /**
1722
+ * Details of the trust entity to create. Required if `structure` is equal to
1723
+ * `trust`.
1724
+ */
1725
+ interface Trust {
1726
+ /**
1727
+ * The trust's physical address. Mail receiving locations like PO Boxes and PMB's
1728
+ * are disallowed.
1729
+ */
1730
+ address: Trust.Address;
1731
+ /**
1732
+ * Whether the trust is `revocable` or `irrevocable`. Irrevocable trusts require
1733
+ * their own Employer Identification Number. Revocable trusts require information
1734
+ * about the individual `grantor` who created the trust.
1735
+ *
1736
+ * - `revocable` - The trust is revocable by the grantor.
1737
+ * - `irrevocable` - The trust cannot be revoked.
1738
+ */
1739
+ category: 'revocable' | 'irrevocable';
1740
+ /**
1741
+ * The legal name of the trust.
1742
+ */
1743
+ name: string;
1744
+ /**
1745
+ * The trustees of the trust.
1746
+ */
1747
+ trustees: Array<Trust.Trustee>;
1748
+ /**
1749
+ * The identifier of the File containing the formation document of the trust.
1750
+ */
1751
+ formation_document_file_id?: string;
1752
+ /**
1753
+ * The two-letter United States Postal Service (USPS) abbreviation for the state in
1754
+ * which the trust was formed.
1755
+ */
1756
+ formation_state?: string;
1757
+ /**
1758
+ * The grantor of the trust. Required if `category` is equal to `revocable`.
1759
+ */
1760
+ grantor?: Trust.Grantor;
1761
+ /**
1762
+ * The Employer Identification Number (EIN) for the trust. Required if `category`
1763
+ * is equal to `irrevocable`.
1764
+ */
1765
+ tax_identifier?: string;
1766
+ }
1767
+ namespace Trust {
1768
+ /**
1769
+ * The trust's physical address. Mail receiving locations like PO Boxes and PMB's
1770
+ * are disallowed.
1771
+ */
1772
+ interface Address {
1773
+ /**
1774
+ * The city of the address.
1775
+ */
1776
+ city: string;
1777
+ /**
1778
+ * The first line of the address. This is usually the street number and street.
1779
+ */
1780
+ line1: string;
1781
+ /**
1782
+ * The two-letter United States Postal Service (USPS) abbreviation for the state of
1783
+ * the address.
1784
+ */
1785
+ state: string;
1786
+ /**
1787
+ * The ZIP code of the address.
1788
+ */
1789
+ zip: string;
1790
+ /**
1791
+ * The second line of the address. This might be the floor or room number.
1792
+ */
1793
+ line2?: string;
1794
+ }
1795
+ interface Trustee {
1796
+ /**
1797
+ * The structure of the trustee.
1798
+ *
1799
+ * - `individual` - The trustee is an individual.
1800
+ */
1801
+ structure: 'individual';
1802
+ /**
1803
+ * Details of the individual trustee. Within the trustee object, this is required
1804
+ * if `structure` is equal to `individual`.
1805
+ */
1806
+ individual?: Trustee.Individual;
1807
+ }
1808
+ namespace Trustee {
1809
+ /**
1810
+ * Details of the individual trustee. Within the trustee object, this is required
1811
+ * if `structure` is equal to `individual`.
1812
+ */
1813
+ interface Individual {
1814
+ /**
1815
+ * The individual's physical address. Mail receiving locations like PO Boxes and
1816
+ * PMB's are disallowed.
1817
+ */
1818
+ address: Individual.Address;
1819
+ /**
1820
+ * The person's date of birth in YYYY-MM-DD format.
1821
+ */
1822
+ date_of_birth: string;
1823
+ /**
1824
+ * A means of verifying the person's identity.
1825
+ */
1826
+ identification: Individual.Identification;
1827
+ /**
1828
+ * The person's legal name.
1829
+ */
1830
+ name: string;
1831
+ /**
1832
+ * The identification method for an individual can only be a passport, driver's
1833
+ * license, or other document if you've confirmed the individual does not have a US
1834
+ * tax id (either a Social Security Number or Individual Taxpayer Identification
1835
+ * Number).
1836
+ */
1837
+ confirmed_no_us_tax_id?: boolean;
1838
+ }
1839
+ namespace Individual {
1840
+ /**
1841
+ * The individual's physical address. Mail receiving locations like PO Boxes and
1842
+ * PMB's are disallowed.
1843
+ */
1844
+ interface Address {
1845
+ /**
1846
+ * The city of the address.
1847
+ */
1848
+ city: string;
1849
+ /**
1850
+ * The first line of the address. This is usually the street number and street.
1851
+ */
1852
+ line1: string;
1853
+ /**
1854
+ * The two-letter United States Postal Service (USPS) abbreviation for the state of
1855
+ * the address.
1856
+ */
1857
+ state: string;
1858
+ /**
1859
+ * The ZIP code of the address.
1860
+ */
1861
+ zip: string;
1862
+ /**
1863
+ * The second line of the address. This might be the floor or room number.
1864
+ */
1865
+ line2?: string;
1866
+ }
1867
+ /**
1868
+ * A means of verifying the person's identity.
1869
+ */
1870
+ interface Identification {
1871
+ /**
1872
+ * A method that can be used to verify the individual's identity.
1873
+ *
1874
+ * - `social_security_number` - A social security number.
1875
+ * - `individual_taxpayer_identification_number` - An individual taxpayer
1876
+ * identification number (ITIN).
1877
+ * - `passport` - A passport number.
1878
+ * - `drivers_license` - A driver's license number.
1879
+ * - `other` - Another identifying document.
1880
+ */
1881
+ method: 'social_security_number' | 'individual_taxpayer_identification_number' | 'passport' | 'drivers_license' | 'other';
1882
+ /**
1883
+ * An identification number that can be used to verify the individual's identity,
1884
+ * such as a social security number.
1885
+ */
1886
+ number: string;
1887
+ /**
1888
+ * Information about the United States driver's license used for identification.
1889
+ * Required if `method` is equal to `drivers_license`.
1890
+ */
1891
+ drivers_license?: Identification.DriversLicense;
1892
+ /**
1893
+ * Information about the identification document provided. Required if `method` is
1894
+ * equal to `other`.
1895
+ */
1896
+ other?: Identification.Other;
1897
+ /**
1898
+ * Information about the passport used for identification. Required if `method` is
1899
+ * equal to `passport`.
1900
+ */
1901
+ passport?: Identification.Passport;
1902
+ [k: string]: unknown;
1903
+ }
1904
+ namespace Identification {
1905
+ /**
1906
+ * Information about the United States driver's license used for identification.
1907
+ * Required if `method` is equal to `drivers_license`.
1908
+ */
1909
+ interface DriversLicense {
1910
+ /**
1911
+ * The driver's license's expiration date in YYYY-MM-DD format.
1912
+ */
1913
+ expiration_date: string;
1914
+ /**
1915
+ * The identifier of the File containing the front of the driver's license.
1916
+ */
1917
+ file_id: string;
1918
+ /**
1919
+ * The state that issued the provided driver's license.
1920
+ */
1921
+ state: string;
1922
+ /**
1923
+ * The identifier of the File containing the back of the driver's license.
1924
+ */
1925
+ back_file_id?: string;
1926
+ }
1927
+ /**
1928
+ * Information about the identification document provided. Required if `method` is
1929
+ * equal to `other`.
1930
+ */
1931
+ interface Other {
1932
+ /**
1933
+ * The two-character ISO 3166-1 code representing the country that issued the
1934
+ * document (e.g., `US`).
1935
+ */
1936
+ country: string;
1937
+ /**
1938
+ * A description of the document submitted.
1939
+ */
1940
+ description: string;
1941
+ /**
1942
+ * The identifier of the File containing the front of the document.
1943
+ */
1944
+ file_id: string;
1945
+ /**
1946
+ * The identifier of the File containing the back of the document. Not every
1947
+ * document has a reverse side.
1948
+ */
1949
+ back_file_id?: string;
1950
+ /**
1951
+ * The document's expiration date in YYYY-MM-DD format.
1952
+ */
1953
+ expiration_date?: string;
1954
+ }
1955
+ /**
1956
+ * Information about the passport used for identification. Required if `method` is
1957
+ * equal to `passport`.
1958
+ */
1959
+ interface Passport {
1960
+ /**
1961
+ * The two-character ISO 3166-1 code representing the country that issued the
1962
+ * passport (e.g., `US`).
1963
+ */
1964
+ country: string;
1965
+ /**
1966
+ * The passport's expiration date in YYYY-MM-DD format.
1967
+ */
1968
+ expiration_date: string;
1969
+ /**
1970
+ * The identifier of the File containing the passport.
1971
+ */
1972
+ file_id: string;
1973
+ }
1974
+ }
1975
+ }
1976
+ }
1977
+ /**
1978
+ * The grantor of the trust. Required if `category` is equal to `revocable`.
1979
+ */
1980
+ interface Grantor {
1981
+ /**
1982
+ * The individual's physical address. Mail receiving locations like PO Boxes and
1983
+ * PMB's are disallowed.
1984
+ */
1985
+ address: Grantor.Address;
1986
+ /**
1987
+ * The person's date of birth in YYYY-MM-DD format.
1988
+ */
1989
+ date_of_birth: string;
1990
+ /**
1991
+ * A means of verifying the person's identity.
1992
+ */
1993
+ identification: Grantor.Identification;
1994
+ /**
1995
+ * The person's legal name.
1996
+ */
1997
+ name: string;
1998
+ /**
1999
+ * The identification method for an individual can only be a passport, driver's
2000
+ * license, or other document if you've confirmed the individual does not have a US
2001
+ * tax id (either a Social Security Number or Individual Taxpayer Identification
2002
+ * Number).
2003
+ */
2004
+ confirmed_no_us_tax_id?: boolean;
2005
+ }
2006
+ namespace Grantor {
2007
+ /**
2008
+ * The individual's physical address. Mail receiving locations like PO Boxes and
2009
+ * PMB's are disallowed.
2010
+ */
2011
+ interface Address {
2012
+ /**
2013
+ * The city of the address.
2014
+ */
2015
+ city: string;
2016
+ /**
2017
+ * The first line of the address. This is usually the street number and street.
2018
+ */
2019
+ line1: string;
2020
+ /**
2021
+ * The two-letter United States Postal Service (USPS) abbreviation for the state of
2022
+ * the address.
2023
+ */
2024
+ state: string;
2025
+ /**
2026
+ * The ZIP code of the address.
2027
+ */
2028
+ zip: string;
2029
+ /**
2030
+ * The second line of the address. This might be the floor or room number.
2031
+ */
2032
+ line2?: string;
2033
+ }
2034
+ /**
2035
+ * A means of verifying the person's identity.
2036
+ */
2037
+ interface Identification {
2038
+ /**
2039
+ * A method that can be used to verify the individual's identity.
2040
+ *
2041
+ * - `social_security_number` - A social security number.
2042
+ * - `individual_taxpayer_identification_number` - An individual taxpayer
2043
+ * identification number (ITIN).
2044
+ * - `passport` - A passport number.
2045
+ * - `drivers_license` - A driver's license number.
2046
+ * - `other` - Another identifying document.
2047
+ */
2048
+ method: 'social_security_number' | 'individual_taxpayer_identification_number' | 'passport' | 'drivers_license' | 'other';
2049
+ /**
2050
+ * An identification number that can be used to verify the individual's identity,
2051
+ * such as a social security number.
2052
+ */
2053
+ number: string;
2054
+ /**
2055
+ * Information about the United States driver's license used for identification.
2056
+ * Required if `method` is equal to `drivers_license`.
2057
+ */
2058
+ drivers_license?: Identification.DriversLicense;
2059
+ /**
2060
+ * Information about the identification document provided. Required if `method` is
2061
+ * equal to `other`.
2062
+ */
2063
+ other?: Identification.Other;
2064
+ /**
2065
+ * Information about the passport used for identification. Required if `method` is
2066
+ * equal to `passport`.
2067
+ */
2068
+ passport?: Identification.Passport;
2069
+ [k: string]: unknown;
2070
+ }
2071
+ namespace Identification {
2072
+ /**
2073
+ * Information about the United States driver's license used for identification.
2074
+ * Required if `method` is equal to `drivers_license`.
2075
+ */
2076
+ interface DriversLicense {
2077
+ /**
2078
+ * The driver's license's expiration date in YYYY-MM-DD format.
2079
+ */
2080
+ expiration_date: string;
2081
+ /**
2082
+ * The identifier of the File containing the front of the driver's license.
2083
+ */
2084
+ file_id: string;
2085
+ /**
2086
+ * The state that issued the provided driver's license.
2087
+ */
2088
+ state: string;
2089
+ /**
2090
+ * The identifier of the File containing the back of the driver's license.
2091
+ */
2092
+ back_file_id?: string;
2093
+ }
2094
+ /**
2095
+ * Information about the identification document provided. Required if `method` is
2096
+ * equal to `other`.
2097
+ */
2098
+ interface Other {
2099
+ /**
2100
+ * The two-character ISO 3166-1 code representing the country that issued the
2101
+ * document (e.g., `US`).
2102
+ */
2103
+ country: string;
2104
+ /**
2105
+ * A description of the document submitted.
2106
+ */
2107
+ description: string;
2108
+ /**
2109
+ * The identifier of the File containing the front of the document.
2110
+ */
2111
+ file_id: string;
2112
+ /**
2113
+ * The identifier of the File containing the back of the document. Not every
2114
+ * document has a reverse side.
2115
+ */
2116
+ back_file_id?: string;
2117
+ /**
2118
+ * The document's expiration date in YYYY-MM-DD format.
2119
+ */
2120
+ expiration_date?: string;
2121
+ }
2122
+ /**
2123
+ * Information about the passport used for identification. Required if `method` is
2124
+ * equal to `passport`.
2125
+ */
2126
+ interface Passport {
2127
+ /**
2128
+ * The two-character ISO 3166-1 code representing the country that issued the
2129
+ * passport (e.g., `US`).
2130
+ */
2131
+ country: string;
2132
+ /**
2133
+ * The passport's expiration date in YYYY-MM-DD format.
2134
+ */
2135
+ expiration_date: string;
2136
+ /**
2137
+ * The identifier of the File containing the passport.
2138
+ */
2139
+ file_id: string;
2140
+ }
2141
+ }
2142
+ }
2143
+ }
2144
+ }
2145
+ export interface EntityUpdateParams {
2146
+ /**
2147
+ * Details of the corporation entity to update. If you specify this parameter and
2148
+ * the entity is not a corporation, the request will fail.
2149
+ */
2150
+ corporation?: EntityUpdateParams.Corporation;
2151
+ /**
2152
+ * When your user last confirmed the Entity's details. Depending on your program,
2153
+ * you may be required to affirmatively confirm details with your users on an
2154
+ * annual basis.
2155
+ */
2156
+ details_confirmed_at?: string;
2157
+ /**
2158
+ * Details of the government authority entity to update. If you specify this
2159
+ * parameter and the entity is not a government authority, the request will fail.
2160
+ */
2161
+ government_authority?: EntityUpdateParams.GovernmentAuthority;
2162
+ /**
2163
+ * Details of the natural person entity to update. If you specify this parameter
2164
+ * and the entity is not a natural person, the request will fail.
2165
+ */
2166
+ natural_person?: EntityUpdateParams.NaturalPerson;
2167
+ /**
2168
+ * An assessment of the entity’s potential risk of involvement in financial crimes,
2169
+ * such as money laundering.
2170
+ */
2171
+ risk_rating?: EntityUpdateParams.RiskRating;
2172
+ /**
2173
+ * If you are using a third-party service for identity verification, you can use
2174
+ * this field to associate this Entity with the identifier that represents them in
2175
+ * that service.
2176
+ */
2177
+ third_party_verification?: EntityUpdateParams.ThirdPartyVerification;
2178
+ /**
2179
+ * Details of the trust entity to update. If you specify this parameter and the
2180
+ * entity is not a trust, the request will fail.
2181
+ */
2182
+ trust?: EntityUpdateParams.Trust;
2183
+ }
2184
+ export declare namespace EntityUpdateParams {
2185
+ /**
2186
+ * Details of the corporation entity to update. If you specify this parameter and
2187
+ * the entity is not a corporation, the request will fail.
2188
+ */
2189
+ interface Corporation {
2190
+ /**
2191
+ * The entity's physical address. Mail receiving locations like PO Boxes and PMB's
2192
+ * are disallowed.
2193
+ */
2194
+ address?: Corporation.Address;
2195
+ /**
2196
+ * The North American Industry Classification System (NAICS) code for the
2197
+ * corporation's primary line of business. This is a number, like `5132` for
2198
+ * `Software Publishers`. A full list of classification codes is available
2199
+ * [here](https://increase.com/documentation/data-dictionary#north-american-industry-classification-system-codes).
2200
+ */
2201
+ industry_code?: string;
2202
+ /**
2203
+ * The legal name of the corporation.
2204
+ */
2205
+ name?: string;
2206
+ }
2207
+ namespace Corporation {
2208
+ /**
2209
+ * The entity's physical address. Mail receiving locations like PO Boxes and PMB's
2210
+ * are disallowed.
2211
+ */
2212
+ interface Address {
2213
+ /**
2214
+ * The city of the address.
2215
+ */
2216
+ city: string;
2217
+ /**
2218
+ * The first line of the address. This is usually the street number and street.
2219
+ */
2220
+ line1: string;
2221
+ /**
2222
+ * The two-letter United States Postal Service (USPS) abbreviation for the state of
2223
+ * the address.
2224
+ */
2225
+ state: string;
2226
+ /**
2227
+ * The ZIP code of the address.
2228
+ */
2229
+ zip: string;
2230
+ /**
2231
+ * The second line of the address. This might be the floor or room number.
2232
+ */
2233
+ line2?: string;
2234
+ }
2235
+ }
2236
+ /**
2237
+ * Details of the government authority entity to update. If you specify this
2238
+ * parameter and the entity is not a government authority, the request will fail.
2239
+ */
2240
+ interface GovernmentAuthority {
2241
+ /**
2242
+ * The entity's physical address. Mail receiving locations like PO Boxes and PMB's
2243
+ * are disallowed.
2244
+ */
2245
+ address?: GovernmentAuthority.Address;
2246
+ /**
2247
+ * The legal name of the government authority.
2248
+ */
2249
+ name?: string;
2250
+ }
2251
+ namespace GovernmentAuthority {
2252
+ /**
2253
+ * The entity's physical address. Mail receiving locations like PO Boxes and PMB's
2254
+ * are disallowed.
2255
+ */
2256
+ interface Address {
2257
+ /**
2258
+ * The city of the address.
2259
+ */
2260
+ city: string;
2261
+ /**
2262
+ * The first line of the address. This is usually the street number and street.
2263
+ */
2264
+ line1: string;
2265
+ /**
2266
+ * The two-letter United States Postal Service (USPS) abbreviation for the state of
2267
+ * the address.
2268
+ */
2269
+ state: string;
2270
+ /**
2271
+ * The ZIP code of the address.
2272
+ */
2273
+ zip: string;
2274
+ /**
2275
+ * The second line of the address. This might be the floor or room number.
2276
+ */
2277
+ line2?: string;
2278
+ }
2279
+ }
2280
+ /**
2281
+ * Details of the natural person entity to update. If you specify this parameter
2282
+ * and the entity is not a natural person, the request will fail.
2283
+ */
2284
+ interface NaturalPerson {
2285
+ /**
2286
+ * The entity's physical address. Mail receiving locations like PO Boxes and PMB's
2287
+ * are disallowed.
2288
+ */
2289
+ address?: NaturalPerson.Address;
2290
+ /**
2291
+ * The legal name of the natural person.
2292
+ */
2293
+ name?: string;
2294
+ }
2295
+ namespace NaturalPerson {
2296
+ /**
2297
+ * The entity's physical address. Mail receiving locations like PO Boxes and PMB's
2298
+ * are disallowed.
2299
+ */
2300
+ interface Address {
2301
+ /**
2302
+ * The city of the address.
2303
+ */
2304
+ city: string;
2305
+ /**
2306
+ * The first line of the address. This is usually the street number and street.
2307
+ */
2308
+ line1: string;
2309
+ /**
2310
+ * The two-letter United States Postal Service (USPS) abbreviation for the state of
2311
+ * the address.
2312
+ */
2313
+ state: string;
2314
+ /**
2315
+ * The ZIP code of the address.
2316
+ */
2317
+ zip: string;
2318
+ /**
2319
+ * The second line of the address. This might be the floor or room number.
2320
+ */
2321
+ line2?: string;
2322
+ }
2323
+ }
2324
+ /**
2325
+ * An assessment of the entity’s potential risk of involvement in financial crimes,
2326
+ * such as money laundering.
2327
+ */
2328
+ interface RiskRating {
2329
+ /**
2330
+ * The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the risk
2331
+ * rating was performed.
2332
+ */
2333
+ rated_at: string;
2334
+ /**
2335
+ * The rating given to this entity.
2336
+ *
2337
+ * - `low` - Minimal risk of involvement in financial crime.
2338
+ * - `medium` - Moderate risk of involvement in financial crime.
2339
+ * - `high` - Elevated risk of involvement in financial crime.
2340
+ */
2341
+ rating: 'low' | 'medium' | 'high';
2342
+ }
2343
+ /**
2344
+ * If you are using a third-party service for identity verification, you can use
2345
+ * this field to associate this Entity with the identifier that represents them in
2346
+ * that service.
2347
+ */
2348
+ interface ThirdPartyVerification {
2349
+ /**
2350
+ * The reference identifier for the third party verification.
2351
+ */
2352
+ reference: string;
2353
+ /**
2354
+ * The vendor that was used to perform the verification.
2355
+ *
2356
+ * - `alloy` - Alloy. See https://alloy.com for more information.
2357
+ * - `middesk` - Middesk. See https://middesk.com for more information.
2358
+ * - `oscilar` - Oscilar. See https://oscilar.com for more information.
2359
+ */
2360
+ vendor: 'alloy' | 'middesk' | 'oscilar';
2361
+ }
2362
+ /**
2363
+ * Details of the trust entity to update. If you specify this parameter and the
2364
+ * entity is not a trust, the request will fail.
2365
+ */
2366
+ interface Trust {
2367
+ /**
2368
+ * The entity's physical address. Mail receiving locations like PO Boxes and PMB's
2369
+ * are disallowed.
2370
+ */
2371
+ address?: Trust.Address;
2372
+ /**
2373
+ * The legal name of the trust.
2374
+ */
2375
+ name?: string;
2376
+ }
2377
+ namespace Trust {
2378
+ /**
2379
+ * The entity's physical address. Mail receiving locations like PO Boxes and PMB's
2380
+ * are disallowed.
2381
+ */
2382
+ interface Address {
2383
+ /**
2384
+ * The city of the address.
2385
+ */
2386
+ city: string;
2387
+ /**
2388
+ * The first line of the address. This is usually the street number and street.
2389
+ */
2390
+ line1: string;
2391
+ /**
2392
+ * The two-letter United States Postal Service (USPS) abbreviation for the state of
2393
+ * the address.
2394
+ */
2395
+ state: string;
2396
+ /**
2397
+ * The ZIP code of the address.
2398
+ */
2399
+ zip: string;
2400
+ /**
2401
+ * The second line of the address. This might be the floor or room number.
2402
+ */
2403
+ line2?: string;
2404
+ }
2405
+ }
2406
+ }
2407
+ export interface EntityListParams extends PageParams {
2408
+ created_at?: EntityListParams.CreatedAt;
2409
+ /**
2410
+ * Filter records to the one with the specified `idempotency_key` you chose for
2411
+ * that object. This value is unique across Increase and is used to ensure that a
2412
+ * request is only processed once. Learn more about
2413
+ * [idempotency](https://increase.com/documentation/idempotency-keys).
2414
+ */
2415
+ idempotency_key?: string;
2416
+ status?: EntityListParams.Status;
2417
+ }
2418
+ export declare namespace EntityListParams {
2419
+ interface CreatedAt {
2420
+ /**
2421
+ * Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
2422
+ * timestamp.
2423
+ */
2424
+ after?: string;
2425
+ /**
2426
+ * Return results before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
2427
+ * timestamp.
2428
+ */
2429
+ before?: string;
2430
+ /**
2431
+ * Return results on or after this
2432
+ * [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
2433
+ */
2434
+ on_or_after?: string;
2435
+ /**
2436
+ * Return results on or before this
2437
+ * [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
2438
+ */
2439
+ on_or_before?: string;
2440
+ }
2441
+ interface Status {
2442
+ /**
2443
+ * Filter Entities for those with the specified status or statuses. For GET
2444
+ * requests, this should be encoded as a comma-delimited string, such as
2445
+ * `?in=one,two,three`.
2446
+ */
2447
+ in?: Array<'active' | 'archived' | 'disabled'>;
2448
+ }
2449
+ }
2450
+ export interface EntityArchiveBeneficialOwnerParams {
2451
+ /**
2452
+ * The identifying details of anyone controlling or owning 25% or more of the
2453
+ * corporation.
2454
+ */
2455
+ beneficial_owner_id: string;
2456
+ }
2457
+ export interface EntityConfirmParams {
2458
+ /**
2459
+ * When your user confirmed the Entity's details. If not provided, the current time
2460
+ * will be used.
2461
+ */
2462
+ confirmed_at?: string;
2463
+ }
2464
+ export interface EntityCreateBeneficialOwnerParams {
2465
+ /**
2466
+ * The identifying details of anyone controlling or owning 25% or more of the
2467
+ * corporation.
2468
+ */
2469
+ beneficial_owner: EntityCreateBeneficialOwnerParams.BeneficialOwner;
2470
+ }
2471
+ export declare namespace EntityCreateBeneficialOwnerParams {
2472
+ /**
2473
+ * The identifying details of anyone controlling or owning 25% or more of the
2474
+ * corporation.
2475
+ */
2476
+ interface BeneficialOwner {
2477
+ /**
2478
+ * Personal details for the beneficial owner.
2479
+ */
2480
+ individual: BeneficialOwner.Individual;
2481
+ /**
2482
+ * Why this person is considered a beneficial owner of the entity. At least one
2483
+ * option is required, if a person is both a control person and owner, submit an
2484
+ * array containing both.
2485
+ */
2486
+ prongs: Array<'ownership' | 'control'>;
2487
+ /**
2488
+ * This person's role or title within the entity.
2489
+ */
2490
+ company_title?: string;
2491
+ [k: string]: unknown;
2492
+ }
2493
+ namespace BeneficialOwner {
2494
+ /**
2495
+ * Personal details for the beneficial owner.
2496
+ */
2497
+ interface Individual {
2498
+ /**
2499
+ * The individual's physical address. Mail receiving locations like PO Boxes and
2500
+ * PMB's are disallowed.
2501
+ */
2502
+ address: Individual.Address;
2503
+ /**
2504
+ * The person's date of birth in YYYY-MM-DD format.
2505
+ */
2506
+ date_of_birth: string;
2507
+ /**
2508
+ * A means of verifying the person's identity.
2509
+ */
2510
+ identification: Individual.Identification;
2511
+ /**
2512
+ * The person's legal name.
2513
+ */
2514
+ name: string;
2515
+ /**
2516
+ * The identification method for an individual can only be a passport, driver's
2517
+ * license, or other document if you've confirmed the individual does not have a US
2518
+ * tax id (either a Social Security Number or Individual Taxpayer Identification
2519
+ * Number).
2520
+ */
2521
+ confirmed_no_us_tax_id?: boolean;
2522
+ }
2523
+ namespace Individual {
2524
+ /**
2525
+ * The individual's physical address. Mail receiving locations like PO Boxes and
2526
+ * PMB's are disallowed.
2527
+ */
2528
+ interface Address {
2529
+ /**
2530
+ * The city, district, town, or village of the address.
2531
+ */
2532
+ city: string;
2533
+ /**
2534
+ * The two-letter ISO 3166-1 alpha-2 code for the country of the address.
2535
+ */
2536
+ country: string;
2537
+ /**
2538
+ * The first line of the address. This is usually the street number and street.
2539
+ */
2540
+ line1: string;
2541
+ /**
2542
+ * The second line of the address. This might be the floor or room number.
2543
+ */
2544
+ line2?: string;
2545
+ /**
2546
+ * The two-letter United States Postal Service (USPS) abbreviation for the US
2547
+ * state, province, or region of the address. Required in certain countries.
2548
+ */
2549
+ state?: string;
2550
+ /**
2551
+ * The ZIP or postal code of the address. Required in certain countries.
2552
+ */
2553
+ zip?: string;
2554
+ }
2555
+ /**
2556
+ * A means of verifying the person's identity.
2557
+ */
2558
+ interface Identification {
2559
+ /**
2560
+ * A method that can be used to verify the individual's identity.
2561
+ *
2562
+ * - `social_security_number` - A social security number.
2563
+ * - `individual_taxpayer_identification_number` - An individual taxpayer
2564
+ * identification number (ITIN).
2565
+ * - `passport` - A passport number.
2566
+ * - `drivers_license` - A driver's license number.
2567
+ * - `other` - Another identifying document.
2568
+ */
2569
+ method: 'social_security_number' | 'individual_taxpayer_identification_number' | 'passport' | 'drivers_license' | 'other';
2570
+ /**
2571
+ * An identification number that can be used to verify the individual's identity,
2572
+ * such as a social security number.
2573
+ */
2574
+ number: string;
2575
+ /**
2576
+ * Information about the United States driver's license used for identification.
2577
+ * Required if `method` is equal to `drivers_license`.
2578
+ */
2579
+ drivers_license?: Identification.DriversLicense;
2580
+ /**
2581
+ * Information about the identification document provided. Required if `method` is
2582
+ * equal to `other`.
2583
+ */
2584
+ other?: Identification.Other;
2585
+ /**
2586
+ * Information about the passport used for identification. Required if `method` is
2587
+ * equal to `passport`.
2588
+ */
2589
+ passport?: Identification.Passport;
2590
+ [k: string]: unknown;
2591
+ }
2592
+ namespace Identification {
2593
+ /**
2594
+ * Information about the United States driver's license used for identification.
2595
+ * Required if `method` is equal to `drivers_license`.
2596
+ */
2597
+ interface DriversLicense {
2598
+ /**
2599
+ * The driver's license's expiration date in YYYY-MM-DD format.
2600
+ */
2601
+ expiration_date: string;
2602
+ /**
2603
+ * The identifier of the File containing the front of the driver's license.
2604
+ */
2605
+ file_id: string;
2606
+ /**
2607
+ * The state that issued the provided driver's license.
2608
+ */
2609
+ state: string;
2610
+ /**
2611
+ * The identifier of the File containing the back of the driver's license.
2612
+ */
2613
+ back_file_id?: string;
2614
+ }
2615
+ /**
2616
+ * Information about the identification document provided. Required if `method` is
2617
+ * equal to `other`.
2618
+ */
2619
+ interface Other {
2620
+ /**
2621
+ * The two-character ISO 3166-1 code representing the country that issued the
2622
+ * document (e.g., `US`).
2623
+ */
2624
+ country: string;
2625
+ /**
2626
+ * A description of the document submitted.
2627
+ */
2628
+ description: string;
2629
+ /**
2630
+ * The identifier of the File containing the front of the document.
2631
+ */
2632
+ file_id: string;
2633
+ /**
2634
+ * The identifier of the File containing the back of the document. Not every
2635
+ * document has a reverse side.
2636
+ */
2637
+ back_file_id?: string;
2638
+ /**
2639
+ * The document's expiration date in YYYY-MM-DD format.
2640
+ */
2641
+ expiration_date?: string;
2642
+ }
2643
+ /**
2644
+ * Information about the passport used for identification. Required if `method` is
2645
+ * equal to `passport`.
2646
+ */
2647
+ interface Passport {
2648
+ /**
2649
+ * The two-character ISO 3166-1 code representing the country that issued the
2650
+ * document (e.g., `US`).
2651
+ */
2652
+ country: string;
2653
+ /**
2654
+ * The passport's expiration date in YYYY-MM-DD format.
2655
+ */
2656
+ expiration_date: string;
2657
+ /**
2658
+ * The identifier of the File containing the passport.
2659
+ */
2660
+ file_id: string;
2661
+ }
2662
+ }
2663
+ }
2664
+ }
2665
+ }
2666
+ export interface EntityUpdateAddressParams {
2667
+ /**
2668
+ * The entity's physical address. Mail receiving locations like PO Boxes and PMB's
2669
+ * are disallowed.
2670
+ */
2671
+ address: EntityUpdateAddressParams.Address;
2672
+ }
2673
+ export declare namespace EntityUpdateAddressParams {
2674
+ /**
2675
+ * The entity's physical address. Mail receiving locations like PO Boxes and PMB's
2676
+ * are disallowed.
2677
+ */
2678
+ interface Address {
2679
+ /**
2680
+ * The city of the address.
2681
+ */
2682
+ city: string;
2683
+ /**
2684
+ * The first line of the address. This is usually the street number and street.
2685
+ */
2686
+ line1: string;
2687
+ /**
2688
+ * The two-letter United States Postal Service (USPS) abbreviation for the state of
2689
+ * the address.
2690
+ */
2691
+ state: string;
2692
+ /**
2693
+ * The ZIP code of the address.
2694
+ */
2695
+ zip: string;
2696
+ /**
2697
+ * The second line of the address. This might be the floor or room number.
2698
+ */
2699
+ line2?: string;
2700
+ }
2701
+ }
2702
+ export interface EntityUpdateBeneficialOwnerAddressParams {
2703
+ /**
2704
+ * The individual's physical address. Mail receiving locations like PO Boxes and
2705
+ * PMB's are disallowed.
2706
+ */
2707
+ address: EntityUpdateBeneficialOwnerAddressParams.Address;
2708
+ /**
2709
+ * The identifying details of anyone controlling or owning 25% or more of the
2710
+ * corporation.
2711
+ */
2712
+ beneficial_owner_id: string;
2713
+ }
2714
+ export declare namespace EntityUpdateBeneficialOwnerAddressParams {
2715
+ /**
2716
+ * The individual's physical address. Mail receiving locations like PO Boxes and
2717
+ * PMB's are disallowed.
2718
+ */
2719
+ interface Address {
2720
+ /**
2721
+ * The city, district, town, or village of the address.
2722
+ */
2723
+ city: string;
2724
+ /**
2725
+ * The two-letter ISO 3166-1 alpha-2 code for the country of the address.
2726
+ */
2727
+ country: string;
2728
+ /**
2729
+ * The first line of the address. This is usually the street number and street.
2730
+ */
2731
+ line1: string;
2732
+ /**
2733
+ * The second line of the address. This might be the floor or room number.
2734
+ */
2735
+ line2?: string;
2736
+ /**
2737
+ * The two-letter United States Postal Service (USPS) abbreviation for the US
2738
+ * state, province, or region of the address. Required in certain countries.
2739
+ */
2740
+ state?: string;
2741
+ /**
2742
+ * The ZIP or postal code of the address. Required in certain countries.
2743
+ */
2744
+ zip?: string;
2745
+ }
2746
+ }
2747
+ export interface EntityUpdateIndustryCodeParams {
2748
+ /**
2749
+ * The North American Industry Classification System (NAICS) code for the
2750
+ * corporation's primary line of business. This is a number, like `5132` for
2751
+ * `Software Publishers`. A full list of classification codes is available
2752
+ * [here](https://increase.com/documentation/data-dictionary#north-american-industry-classification-system-codes).
2753
+ */
2754
+ industry_code: string;
2755
+ }
2756
+ export declare namespace Entities {
2757
+ export { type Entity as Entity, type EntitiesPage as EntitiesPage, type EntityCreateParams as EntityCreateParams, type EntityUpdateParams as EntityUpdateParams, type EntityListParams as EntityListParams, type EntityArchiveBeneficialOwnerParams as EntityArchiveBeneficialOwnerParams, type EntityConfirmParams as EntityConfirmParams, type EntityCreateBeneficialOwnerParams as EntityCreateBeneficialOwnerParams, type EntityUpdateAddressParams as EntityUpdateAddressParams, type EntityUpdateBeneficialOwnerAddressParams as EntityUpdateBeneficialOwnerAddressParams, type EntityUpdateIndustryCodeParams as EntityUpdateIndustryCodeParams, };
2758
+ }
2759
+ //# sourceMappingURL=entities.d.mts.map