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