@lightsparkdev/grid 0.2.1

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 (610) hide show
  1. package/.DS_Store +0 -0
  2. package/CHANGELOG.md +85 -0
  3. package/LICENSE +201 -0
  4. package/README.md +516 -0
  5. package/api-promise.d.mts +2 -0
  6. package/api-promise.d.mts.map +1 -0
  7. package/api-promise.d.ts +2 -0
  8. package/api-promise.d.ts.map +1 -0
  9. package/api-promise.js +6 -0
  10. package/api-promise.js.map +1 -0
  11. package/api-promise.mjs +2 -0
  12. package/api-promise.mjs.map +1 -0
  13. package/client.d.mts +302 -0
  14. package/client.d.mts.map +1 -0
  15. package/client.d.ts +302 -0
  16. package/client.d.ts.map +1 -0
  17. package/client.js +588 -0
  18. package/client.js.map +1 -0
  19. package/client.mjs +584 -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 +2055 -0
  30. package/core/error.d.mts.map +1 -0
  31. package/core/error.d.ts +2055 -0
  32. package/core/error.d.ts.map +1 -0
  33. package/core/error.js +857 -0
  34. package/core/error.js.map +1 -0
  35. package/core/error.mjs +787 -0
  36. package/core/error.mjs.map +1 -0
  37. package/core/pagination.d.mts +58 -0
  38. package/core/pagination.d.mts.map +1 -0
  39. package/core/pagination.d.ts +58 -0
  40. package/core/pagination.d.ts.map +1 -0
  41. package/core/pagination.js +109 -0
  42. package/core/pagination.js.map +1 -0
  43. package/core/pagination.mjs +103 -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 +2 -0
  64. package/error.d.ts.map +1 -0
  65. package/error.js +6 -0
  66. package/error.js.map +1 -0
  67. package/error.mjs +2 -0
  68. package/error.mjs.map +1 -0
  69. package/index.d.mts +7 -0
  70. package/index.d.mts.map +1 -0
  71. package/index.d.ts +7 -0
  72. package/index.d.ts.map +1 -0
  73. package/index.js +86 -0
  74. package/index.js.map +1 -0
  75. package/index.mjs +8 -0
  76. package/index.mjs.map +1 -0
  77. package/internal/.DS_Store +0 -0
  78. package/internal/builtin-types.d.mts +73 -0
  79. package/internal/builtin-types.d.mts.map +1 -0
  80. package/internal/builtin-types.d.ts +73 -0
  81. package/internal/builtin-types.d.ts.map +1 -0
  82. package/internal/builtin-types.js +4 -0
  83. package/internal/builtin-types.js.map +1 -0
  84. package/internal/builtin-types.mjs +3 -0
  85. package/internal/builtin-types.mjs.map +1 -0
  86. package/internal/detect-platform.d.mts +15 -0
  87. package/internal/detect-platform.d.mts.map +1 -0
  88. package/internal/detect-platform.d.ts +15 -0
  89. package/internal/detect-platform.d.ts.map +1 -0
  90. package/internal/detect-platform.js +162 -0
  91. package/internal/detect-platform.js.map +1 -0
  92. package/internal/detect-platform.mjs +157 -0
  93. package/internal/detect-platform.mjs.map +1 -0
  94. package/internal/errors.d.mts +3 -0
  95. package/internal/errors.d.mts.map +1 -0
  96. package/internal/errors.d.ts +3 -0
  97. package/internal/errors.d.ts.map +1 -0
  98. package/internal/errors.js +41 -0
  99. package/internal/errors.js.map +1 -0
  100. package/internal/errors.mjs +36 -0
  101. package/internal/errors.mjs.map +1 -0
  102. package/internal/headers.d.mts +20 -0
  103. package/internal/headers.d.mts.map +1 -0
  104. package/internal/headers.d.ts +20 -0
  105. package/internal/headers.d.ts.map +1 -0
  106. package/internal/headers.js +79 -0
  107. package/internal/headers.js.map +1 -0
  108. package/internal/headers.mjs +74 -0
  109. package/internal/headers.mjs.map +1 -0
  110. package/internal/parse.d.mts +12 -0
  111. package/internal/parse.d.mts.map +1 -0
  112. package/internal/parse.d.ts +12 -0
  113. package/internal/parse.d.ts.map +1 -0
  114. package/internal/parse.js +40 -0
  115. package/internal/parse.js.map +1 -0
  116. package/internal/parse.mjs +37 -0
  117. package/internal/parse.mjs.map +1 -0
  118. package/internal/qs/formats.d.mts +7 -0
  119. package/internal/qs/formats.d.mts.map +1 -0
  120. package/internal/qs/formats.d.ts +7 -0
  121. package/internal/qs/formats.d.ts.map +1 -0
  122. package/internal/qs/formats.js +13 -0
  123. package/internal/qs/formats.js.map +1 -0
  124. package/internal/qs/formats.mjs +9 -0
  125. package/internal/qs/formats.mjs.map +1 -0
  126. package/internal/qs/index.d.mts +10 -0
  127. package/internal/qs/index.d.mts.map +1 -0
  128. package/internal/qs/index.d.ts +10 -0
  129. package/internal/qs/index.d.ts.map +1 -0
  130. package/internal/qs/index.js +14 -0
  131. package/internal/qs/index.js.map +1 -0
  132. package/internal/qs/index.mjs +10 -0
  133. package/internal/qs/index.mjs.map +1 -0
  134. package/internal/qs/stringify.d.mts +3 -0
  135. package/internal/qs/stringify.d.mts.map +1 -0
  136. package/internal/qs/stringify.d.ts +3 -0
  137. package/internal/qs/stringify.d.ts.map +1 -0
  138. package/internal/qs/stringify.js +277 -0
  139. package/internal/qs/stringify.js.map +1 -0
  140. package/internal/qs/stringify.mjs +274 -0
  141. package/internal/qs/stringify.mjs.map +1 -0
  142. package/internal/qs/types.d.mts +57 -0
  143. package/internal/qs/types.d.mts.map +1 -0
  144. package/internal/qs/types.d.ts +57 -0
  145. package/internal/qs/types.d.ts.map +1 -0
  146. package/internal/qs/types.js +3 -0
  147. package/internal/qs/types.js.map +1 -0
  148. package/internal/qs/types.mjs +2 -0
  149. package/internal/qs/types.mjs.map +1 -0
  150. package/internal/qs/utils.d.mts +15 -0
  151. package/internal/qs/utils.d.mts.map +1 -0
  152. package/internal/qs/utils.d.ts +15 -0
  153. package/internal/qs/utils.d.ts.map +1 -0
  154. package/internal/qs/utils.js +230 -0
  155. package/internal/qs/utils.js.map +1 -0
  156. package/internal/qs/utils.mjs +217 -0
  157. package/internal/qs/utils.mjs.map +1 -0
  158. package/internal/request-options.d.mts +75 -0
  159. package/internal/request-options.d.mts.map +1 -0
  160. package/internal/request-options.d.ts +75 -0
  161. package/internal/request-options.d.ts.map +1 -0
  162. package/internal/request-options.js +14 -0
  163. package/internal/request-options.js.map +1 -0
  164. package/internal/request-options.mjs +10 -0
  165. package/internal/request-options.mjs.map +1 -0
  166. package/internal/shim-types.d.mts +17 -0
  167. package/internal/shim-types.d.mts.map +1 -0
  168. package/internal/shim-types.d.ts +17 -0
  169. package/internal/shim-types.d.ts.map +1 -0
  170. package/internal/shim-types.js +4 -0
  171. package/internal/shim-types.js.map +1 -0
  172. package/internal/shim-types.mjs +3 -0
  173. package/internal/shim-types.mjs.map +1 -0
  174. package/internal/shims.d.mts +20 -0
  175. package/internal/shims.d.mts.map +1 -0
  176. package/internal/shims.d.ts +20 -0
  177. package/internal/shims.d.ts.map +1 -0
  178. package/internal/shims.js +92 -0
  179. package/internal/shims.js.map +1 -0
  180. package/internal/shims.mjs +85 -0
  181. package/internal/shims.mjs.map +1 -0
  182. package/internal/to-file.d.mts +45 -0
  183. package/internal/to-file.d.mts.map +1 -0
  184. package/internal/to-file.d.ts +45 -0
  185. package/internal/to-file.d.ts.map +1 -0
  186. package/internal/to-file.js +91 -0
  187. package/internal/to-file.js.map +1 -0
  188. package/internal/to-file.mjs +88 -0
  189. package/internal/to-file.mjs.map +1 -0
  190. package/internal/tslib.js +81 -0
  191. package/internal/tslib.mjs +17 -0
  192. package/internal/types.d.mts +69 -0
  193. package/internal/types.d.mts.map +1 -0
  194. package/internal/types.d.ts +69 -0
  195. package/internal/types.d.ts.map +1 -0
  196. package/internal/types.js +4 -0
  197. package/internal/types.js.map +1 -0
  198. package/internal/types.mjs +3 -0
  199. package/internal/types.mjs.map +1 -0
  200. package/internal/uploads.d.mts +42 -0
  201. package/internal/uploads.d.mts.map +1 -0
  202. package/internal/uploads.d.ts +42 -0
  203. package/internal/uploads.d.ts.map +1 -0
  204. package/internal/uploads.js +141 -0
  205. package/internal/uploads.js.map +1 -0
  206. package/internal/uploads.mjs +131 -0
  207. package/internal/uploads.mjs.map +1 -0
  208. package/internal/utils/base64.d.mts +3 -0
  209. package/internal/utils/base64.d.mts.map +1 -0
  210. package/internal/utils/base64.d.ts +3 -0
  211. package/internal/utils/base64.d.ts.map +1 -0
  212. package/internal/utils/base64.js +38 -0
  213. package/internal/utils/base64.js.map +1 -0
  214. package/internal/utils/base64.mjs +33 -0
  215. package/internal/utils/base64.mjs.map +1 -0
  216. package/internal/utils/bytes.d.mts +4 -0
  217. package/internal/utils/bytes.d.mts.map +1 -0
  218. package/internal/utils/bytes.d.ts +4 -0
  219. package/internal/utils/bytes.d.ts.map +1 -0
  220. package/internal/utils/bytes.js +31 -0
  221. package/internal/utils/bytes.js.map +1 -0
  222. package/internal/utils/bytes.mjs +26 -0
  223. package/internal/utils/bytes.mjs.map +1 -0
  224. package/internal/utils/env.d.mts +9 -0
  225. package/internal/utils/env.d.mts.map +1 -0
  226. package/internal/utils/env.d.ts +9 -0
  227. package/internal/utils/env.d.ts.map +1 -0
  228. package/internal/utils/env.js +22 -0
  229. package/internal/utils/env.js.map +1 -0
  230. package/internal/utils/env.mjs +18 -0
  231. package/internal/utils/env.mjs.map +1 -0
  232. package/internal/utils/log.d.mts +37 -0
  233. package/internal/utils/log.d.mts.map +1 -0
  234. package/internal/utils/log.d.ts +37 -0
  235. package/internal/utils/log.d.ts.map +1 -0
  236. package/internal/utils/log.js +86 -0
  237. package/internal/utils/log.js.map +1 -0
  238. package/internal/utils/log.mjs +80 -0
  239. package/internal/utils/log.mjs.map +1 -0
  240. package/internal/utils/path.d.mts +15 -0
  241. package/internal/utils/path.d.mts.map +1 -0
  242. package/internal/utils/path.d.ts +15 -0
  243. package/internal/utils/path.d.ts.map +1 -0
  244. package/internal/utils/path.js +79 -0
  245. package/internal/utils/path.js.map +1 -0
  246. package/internal/utils/path.mjs +74 -0
  247. package/internal/utils/path.mjs.map +1 -0
  248. package/internal/utils/sleep.d.mts +2 -0
  249. package/internal/utils/sleep.d.mts.map +1 -0
  250. package/internal/utils/sleep.d.ts +2 -0
  251. package/internal/utils/sleep.d.ts.map +1 -0
  252. package/internal/utils/sleep.js +7 -0
  253. package/internal/utils/sleep.js.map +1 -0
  254. package/internal/utils/sleep.mjs +3 -0
  255. package/internal/utils/sleep.mjs.map +1 -0
  256. package/internal/utils/uuid.d.mts +5 -0
  257. package/internal/utils/uuid.d.mts.map +1 -0
  258. package/internal/utils/uuid.d.ts +5 -0
  259. package/internal/utils/uuid.d.ts.map +1 -0
  260. package/internal/utils/uuid.js +19 -0
  261. package/internal/utils/uuid.js.map +1 -0
  262. package/internal/utils/uuid.mjs +15 -0
  263. package/internal/utils/uuid.mjs.map +1 -0
  264. package/internal/utils/values.d.mts +18 -0
  265. package/internal/utils/values.d.mts.map +1 -0
  266. package/internal/utils/values.d.ts +18 -0
  267. package/internal/utils/values.d.ts.map +1 -0
  268. package/internal/utils/values.js +112 -0
  269. package/internal/utils/values.js.map +1 -0
  270. package/internal/utils/values.mjs +94 -0
  271. package/internal/utils/values.mjs.map +1 -0
  272. package/internal/utils.d.mts +7 -0
  273. package/internal/utils.d.mts.map +1 -0
  274. package/internal/utils.d.ts +7 -0
  275. package/internal/utils.d.ts.map +1 -0
  276. package/internal/utils.js +11 -0
  277. package/internal/utils.js.map +1 -0
  278. package/internal/utils.mjs +8 -0
  279. package/internal/utils.mjs.map +1 -0
  280. package/package.json +147 -0
  281. package/pagination.d.mts +2 -0
  282. package/pagination.d.mts.map +1 -0
  283. package/pagination.d.ts +2 -0
  284. package/pagination.d.ts.map +1 -0
  285. package/pagination.js +6 -0
  286. package/pagination.js.map +1 -0
  287. package/pagination.mjs +2 -0
  288. package/pagination.mjs.map +1 -0
  289. package/resource.d.mts +2 -0
  290. package/resource.d.mts.map +1 -0
  291. package/resource.d.ts +2 -0
  292. package/resource.d.ts.map +1 -0
  293. package/resource.js +6 -0
  294. package/resource.js.map +1 -0
  295. package/resource.mjs +2 -0
  296. package/resource.mjs.map +1 -0
  297. package/resources/.DS_Store +0 -0
  298. package/resources/config.d.mts +130 -0
  299. package/resources/config.d.mts.map +1 -0
  300. package/resources/config.d.ts +130 -0
  301. package/resources/config.d.ts.map +1 -0
  302. package/resources/config.js +47 -0
  303. package/resources/config.js.map +1 -0
  304. package/resources/config.mjs +43 -0
  305. package/resources/config.mjs.map +1 -0
  306. package/resources/customers/bulk.d.mts +170 -0
  307. package/resources/customers/bulk.d.mts.map +1 -0
  308. package/resources/customers/bulk.d.ts +170 -0
  309. package/resources/customers/bulk.d.ts.map +1 -0
  310. package/resources/customers/bulk.js +103 -0
  311. package/resources/customers/bulk.js.map +1 -0
  312. package/resources/customers/bulk.mjs +99 -0
  313. package/resources/customers/bulk.mjs.map +1 -0
  314. package/resources/customers/customers.d.mts +1238 -0
  315. package/resources/customers/customers.d.mts.map +1 -0
  316. package/resources/customers/customers.d.ts +1238 -0
  317. package/resources/customers/customers.d.ts.map +1 -0
  318. package/resources/customers/customers.js +130 -0
  319. package/resources/customers/customers.js.map +1 -0
  320. package/resources/customers/customers.mjs +125 -0
  321. package/resources/customers/customers.mjs.map +1 -0
  322. package/resources/customers/external-accounts.d.mts +461 -0
  323. package/resources/customers/external-accounts.d.mts.map +1 -0
  324. package/resources/customers/external-accounts.d.ts +461 -0
  325. package/resources/customers/external-accounts.d.ts.map +1 -0
  326. package/resources/customers/external-accounts.js +83 -0
  327. package/resources/customers/external-accounts.js.map +1 -0
  328. package/resources/customers/external-accounts.mjs +79 -0
  329. package/resources/customers/external-accounts.mjs.map +1 -0
  330. package/resources/customers/index.d.mts +4 -0
  331. package/resources/customers/index.d.mts.map +1 -0
  332. package/resources/customers/index.d.ts +4 -0
  333. package/resources/customers/index.d.ts.map +1 -0
  334. package/resources/customers/index.js +11 -0
  335. package/resources/customers/index.js.map +1 -0
  336. package/resources/customers/index.mjs +5 -0
  337. package/resources/customers/index.mjs.map +1 -0
  338. package/resources/customers.d.mts +2 -0
  339. package/resources/customers.d.mts.map +1 -0
  340. package/resources/customers.d.ts +2 -0
  341. package/resources/customers.d.ts.map +1 -0
  342. package/resources/customers.js +6 -0
  343. package/resources/customers.js.map +1 -0
  344. package/resources/customers.mjs +3 -0
  345. package/resources/customers.mjs.map +1 -0
  346. package/resources/exchange-rates.d.mts +101 -0
  347. package/resources/exchange-rates.d.mts.map +1 -0
  348. package/resources/exchange-rates.d.ts +101 -0
  349. package/resources/exchange-rates.d.ts.map +1 -0
  350. package/resources/exchange-rates.js +23 -0
  351. package/resources/exchange-rates.js.map +1 -0
  352. package/resources/exchange-rates.mjs +19 -0
  353. package/resources/exchange-rates.mjs.map +1 -0
  354. package/resources/index.d.mts +16 -0
  355. package/resources/index.d.mts.map +1 -0
  356. package/resources/index.d.ts +16 -0
  357. package/resources/index.d.ts.map +1 -0
  358. package/resources/index.js +35 -0
  359. package/resources/index.js.map +1 -0
  360. package/resources/index.mjs +17 -0
  361. package/resources/index.mjs.map +1 -0
  362. package/resources/invitations.d.mts +166 -0
  363. package/resources/invitations.d.mts.map +1 -0
  364. package/resources/invitations.d.ts +166 -0
  365. package/resources/invitations.d.ts.map +1 -0
  366. package/resources/invitations.js +83 -0
  367. package/resources/invitations.js.map +1 -0
  368. package/resources/invitations.mjs +79 -0
  369. package/resources/invitations.mjs.map +1 -0
  370. package/resources/plaid.d.mts +101 -0
  371. package/resources/plaid.d.mts.map +1 -0
  372. package/resources/plaid.d.ts +101 -0
  373. package/resources/plaid.d.ts.map +1 -0
  374. package/resources/plaid.js +64 -0
  375. package/resources/plaid.js.map +1 -0
  376. package/resources/plaid.mjs +60 -0
  377. package/resources/plaid.mjs.map +1 -0
  378. package/resources/platform/external-accounts.d.mts +111 -0
  379. package/resources/platform/external-accounts.d.mts.map +1 -0
  380. package/resources/platform/external-accounts.d.ts +111 -0
  381. package/resources/platform/external-accounts.d.ts.map +1 -0
  382. package/resources/platform/external-accounts.js +74 -0
  383. package/resources/platform/external-accounts.js.map +1 -0
  384. package/resources/platform/external-accounts.mjs +70 -0
  385. package/resources/platform/external-accounts.mjs.map +1 -0
  386. package/resources/platform/index.d.mts +3 -0
  387. package/resources/platform/index.d.mts.map +1 -0
  388. package/resources/platform/index.d.ts +3 -0
  389. package/resources/platform/index.d.ts.map +1 -0
  390. package/resources/platform/index.js +9 -0
  391. package/resources/platform/index.js.map +1 -0
  392. package/resources/platform/index.mjs +4 -0
  393. package/resources/platform/index.mjs.map +1 -0
  394. package/resources/platform/platform.d.mts +41 -0
  395. package/resources/platform/platform.d.mts.map +1 -0
  396. package/resources/platform/platform.d.ts +41 -0
  397. package/resources/platform/platform.d.ts.map +1 -0
  398. package/resources/platform/platform.js +34 -0
  399. package/resources/platform/platform.js.map +1 -0
  400. package/resources/platform/platform.mjs +29 -0
  401. package/resources/platform/platform.mjs.map +1 -0
  402. package/resources/platform.d.mts +2 -0
  403. package/resources/platform.d.mts.map +1 -0
  404. package/resources/platform.d.ts +2 -0
  405. package/resources/platform.d.ts.map +1 -0
  406. package/resources/platform.js +6 -0
  407. package/resources/platform.js.map +1 -0
  408. package/resources/platform.mjs +3 -0
  409. package/resources/platform.mjs.map +1 -0
  410. package/resources/quotes.d.mts +580 -0
  411. package/resources/quotes.d.mts.map +1 -0
  412. package/resources/quotes.d.ts +580 -0
  413. package/resources/quotes.d.ts.map +1 -0
  414. package/resources/quotes.js +122 -0
  415. package/resources/quotes.js.map +1 -0
  416. package/resources/quotes.mjs +118 -0
  417. package/resources/quotes.mjs.map +1 -0
  418. package/resources/receiver.d.mts +100 -0
  419. package/resources/receiver.d.mts.map +1 -0
  420. package/resources/receiver.d.ts +100 -0
  421. package/resources/receiver.d.ts.map +1 -0
  422. package/resources/receiver.js +27 -0
  423. package/resources/receiver.js.map +1 -0
  424. package/resources/receiver.mjs +23 -0
  425. package/resources/receiver.mjs.map +1 -0
  426. package/resources/sandbox/index.d.mts +4 -0
  427. package/resources/sandbox/index.d.mts.map +1 -0
  428. package/resources/sandbox/index.d.ts +4 -0
  429. package/resources/sandbox/index.d.ts.map +1 -0
  430. package/resources/sandbox/index.js +11 -0
  431. package/resources/sandbox/index.js.map +1 -0
  432. package/resources/sandbox/index.mjs +5 -0
  433. package/resources/sandbox/index.mjs.map +1 -0
  434. package/resources/sandbox/internal-accounts.d.mts +61 -0
  435. package/resources/sandbox/internal-accounts.d.mts.map +1 -0
  436. package/resources/sandbox/internal-accounts.d.ts +61 -0
  437. package/resources/sandbox/internal-accounts.d.ts.map +1 -0
  438. package/resources/sandbox/internal-accounts.js +29 -0
  439. package/resources/sandbox/internal-accounts.js.map +1 -0
  440. package/resources/sandbox/internal-accounts.mjs +25 -0
  441. package/resources/sandbox/internal-accounts.mjs.map +1 -0
  442. package/resources/sandbox/sandbox.d.mts +116 -0
  443. package/resources/sandbox/sandbox.d.mts.map +1 -0
  444. package/resources/sandbox/sandbox.d.ts +116 -0
  445. package/resources/sandbox/sandbox.d.ts.map +1 -0
  446. package/resources/sandbox/sandbox.js +37 -0
  447. package/resources/sandbox/sandbox.js.map +1 -0
  448. package/resources/sandbox/sandbox.mjs +32 -0
  449. package/resources/sandbox/sandbox.mjs.map +1 -0
  450. package/resources/sandbox/uma.d.mts +48 -0
  451. package/resources/sandbox/uma.d.mts.map +1 -0
  452. package/resources/sandbox/uma.d.ts +48 -0
  453. package/resources/sandbox/uma.d.ts.map +1 -0
  454. package/resources/sandbox/uma.js +27 -0
  455. package/resources/sandbox/uma.js.map +1 -0
  456. package/resources/sandbox/uma.mjs +23 -0
  457. package/resources/sandbox/uma.mjs.map +1 -0
  458. package/resources/sandbox.d.mts +2 -0
  459. package/resources/sandbox.d.mts.map +1 -0
  460. package/resources/sandbox.d.ts +2 -0
  461. package/resources/sandbox.d.ts.map +1 -0
  462. package/resources/sandbox.js +6 -0
  463. package/resources/sandbox.js.map +1 -0
  464. package/resources/sandbox.mjs +3 -0
  465. package/resources/sandbox.mjs.map +1 -0
  466. package/resources/tokens.d.mts +131 -0
  467. package/resources/tokens.d.mts.map +1 -0
  468. package/resources/tokens.d.ts +131 -0
  469. package/resources/tokens.d.ts.map +1 -0
  470. package/resources/tokens.js +67 -0
  471. package/resources/tokens.js.map +1 -0
  472. package/resources/tokens.mjs +63 -0
  473. package/resources/tokens.mjs.map +1 -0
  474. package/resources/transactions.d.mts +226 -0
  475. package/resources/transactions.d.mts.map +1 -0
  476. package/resources/transactions.d.ts +226 -0
  477. package/resources/transactions.d.ts.map +1 -0
  478. package/resources/transactions.js +71 -0
  479. package/resources/transactions.js.map +1 -0
  480. package/resources/transactions.mjs +67 -0
  481. package/resources/transactions.mjs.map +1 -0
  482. package/resources/transfer-in.d.mts +154 -0
  483. package/resources/transfer-in.d.mts.map +1 -0
  484. package/resources/transfer-in.d.ts +154 -0
  485. package/resources/transfer-in.d.ts.map +1 -0
  486. package/resources/transfer-in.js +42 -0
  487. package/resources/transfer-in.js.map +1 -0
  488. package/resources/transfer-in.mjs +38 -0
  489. package/resources/transfer-in.mjs.map +1 -0
  490. package/resources/transfer-out.d.mts +70 -0
  491. package/resources/transfer-out.d.mts.map +1 -0
  492. package/resources/transfer-out.d.ts +70 -0
  493. package/resources/transfer-out.d.ts.map +1 -0
  494. package/resources/transfer-out.js +40 -0
  495. package/resources/transfer-out.js.map +1 -0
  496. package/resources/transfer-out.mjs +36 -0
  497. package/resources/transfer-out.mjs.map +1 -0
  498. package/resources/uma-providers.d.mts +70 -0
  499. package/resources/uma-providers.d.mts.map +1 -0
  500. package/resources/uma-providers.d.ts +70 -0
  501. package/resources/uma-providers.d.ts.map +1 -0
  502. package/resources/uma-providers.js +21 -0
  503. package/resources/uma-providers.js.map +1 -0
  504. package/resources/uma-providers.mjs +17 -0
  505. package/resources/uma-providers.mjs.map +1 -0
  506. package/resources/webhooks.d.mts +27 -0
  507. package/resources/webhooks.d.mts.map +1 -0
  508. package/resources/webhooks.d.ts +27 -0
  509. package/resources/webhooks.d.ts.map +1 -0
  510. package/resources/webhooks.js +15 -0
  511. package/resources/webhooks.js.map +1 -0
  512. package/resources/webhooks.mjs +11 -0
  513. package/resources/webhooks.mjs.map +1 -0
  514. package/resources.d.mts +2 -0
  515. package/resources.d.mts.map +1 -0
  516. package/resources.d.ts +2 -0
  517. package/resources.d.ts.map +1 -0
  518. package/resources.js +5 -0
  519. package/resources.js.map +1 -0
  520. package/resources.mjs +2 -0
  521. package/resources.mjs.map +1 -0
  522. package/src/.DS_Store +0 -0
  523. package/src/api-promise.ts +2 -0
  524. package/src/client.ts +1111 -0
  525. package/src/core/README.md +3 -0
  526. package/src/core/api-promise.ts +92 -0
  527. package/src/core/error.ts +2936 -0
  528. package/src/core/pagination.ts +173 -0
  529. package/src/core/resource.ts +11 -0
  530. package/src/core/uploads.ts +2 -0
  531. package/src/error.ts +2 -0
  532. package/src/index.ts +76 -0
  533. package/src/internal/README.md +3 -0
  534. package/src/internal/builtin-types.ts +93 -0
  535. package/src/internal/detect-platform.ts +196 -0
  536. package/src/internal/errors.ts +33 -0
  537. package/src/internal/headers.ts +97 -0
  538. package/src/internal/parse.ts +56 -0
  539. package/src/internal/qs/LICENSE.md +13 -0
  540. package/src/internal/qs/README.md +3 -0
  541. package/src/internal/qs/formats.ts +10 -0
  542. package/src/internal/qs/index.ts +13 -0
  543. package/src/internal/qs/stringify.ts +385 -0
  544. package/src/internal/qs/types.ts +71 -0
  545. package/src/internal/qs/utils.ts +265 -0
  546. package/src/internal/request-options.ts +91 -0
  547. package/src/internal/shim-types.ts +26 -0
  548. package/src/internal/shims.ts +107 -0
  549. package/src/internal/to-file.ts +154 -0
  550. package/src/internal/types.ts +95 -0
  551. package/src/internal/uploads.ts +187 -0
  552. package/src/internal/utils/base64.ts +40 -0
  553. package/src/internal/utils/bytes.ts +32 -0
  554. package/src/internal/utils/env.ts +18 -0
  555. package/src/internal/utils/log.ts +127 -0
  556. package/src/internal/utils/path.ts +88 -0
  557. package/src/internal/utils/sleep.ts +3 -0
  558. package/src/internal/utils/uuid.ts +17 -0
  559. package/src/internal/utils/values.ts +105 -0
  560. package/src/internal/utils.ts +8 -0
  561. package/src/lib/.keep +4 -0
  562. package/src/pagination.ts +2 -0
  563. package/src/resource.ts +2 -0
  564. package/src/resources/config.ts +178 -0
  565. package/src/resources/customers/bulk.ts +201 -0
  566. package/src/resources/customers/customers.ts +1687 -0
  567. package/src/resources/customers/external-accounts.ts +630 -0
  568. package/src/resources/customers/index.ts +51 -0
  569. package/src/resources/customers.ts +3 -0
  570. package/src/resources/exchange-rates.ts +127 -0
  571. package/src/resources/index.ts +104 -0
  572. package/src/resources/invitations.ts +207 -0
  573. package/src/resources/plaid.ts +128 -0
  574. package/src/resources/platform/external-accounts.ts +136 -0
  575. package/src/resources/platform/index.ts +13 -0
  576. package/src/resources/platform/platform.ts +70 -0
  577. package/src/resources/platform.ts +3 -0
  578. package/src/resources/quotes.ts +726 -0
  579. package/src/resources/receiver.ts +139 -0
  580. package/src/resources/sandbox/index.ts +10 -0
  581. package/src/resources/sandbox/internal-accounts.ts +82 -0
  582. package/src/resources/sandbox/sandbox.ts +159 -0
  583. package/src/resources/sandbox/uma.ts +61 -0
  584. package/src/resources/sandbox.ts +3 -0
  585. package/src/resources/tokens.ts +176 -0
  586. package/src/resources/transactions.ts +312 -0
  587. package/src/resources/transfer-in.ts +193 -0
  588. package/src/resources/transfer-out.ts +90 -0
  589. package/src/resources/uma-providers.ts +98 -0
  590. package/src/resources/webhooks.ts +35 -0
  591. package/src/resources.ts +1 -0
  592. package/src/tsconfig.json +11 -0
  593. package/src/uploads.ts +2 -0
  594. package/src/version.ts +1 -0
  595. package/uploads.d.mts +2 -0
  596. package/uploads.d.mts.map +1 -0
  597. package/uploads.d.ts +2 -0
  598. package/uploads.d.ts.map +1 -0
  599. package/uploads.js +6 -0
  600. package/uploads.js.map +1 -0
  601. package/uploads.mjs +2 -0
  602. package/uploads.mjs.map +1 -0
  603. package/version.d.mts +2 -0
  604. package/version.d.mts.map +1 -0
  605. package/version.d.ts +2 -0
  606. package/version.d.ts.map +1 -0
  607. package/version.js +5 -0
  608. package/version.js.map +1 -0
  609. package/version.mjs +2 -0
  610. package/version.mjs.map +1 -0
@@ -0,0 +1,580 @@
1
+ import { APIResource } from "../core/resource.js";
2
+ import * as ExternalAccountsAPI from "./customers/external-accounts.js";
3
+ import { APIPromise } from "../core/api-promise.js";
4
+ import { DefaultPagination, type DefaultPaginationParams, PagePromise } from "../core/pagination.js";
5
+ import { RequestOptions } from "../internal/request-options.js";
6
+ export declare class Quotes extends APIResource {
7
+ /**
8
+ * Generate a quote for a cross-currency transfer between any combination of
9
+ * accounts and UMA addresses. This endpoint handles currency exchange and provides
10
+ * the necessary instructions to execute the transfer.
11
+ *
12
+ * **Transfer Types Supported:**
13
+ *
14
+ * - **Account to Account**: Transfer between internal/external accounts with
15
+ * currency exchange.
16
+ * - **Account to UMA**: Transfer from an internal account to an UMA address.
17
+ * - **UMA to Account or UMA to UMA**: This transfer type will only be funded by
18
+ * payment instructions, not from an internal account.
19
+ *
20
+ * **Key Features:**
21
+ *
22
+ * - **Flexible Amount Locking**: Always specify whether you want to lock the
23
+ * sending amount or receiving amount
24
+ * - **Currency Exchange**: Handles all cross-currency transfers with real-time
25
+ * exchange rates
26
+ * - **Payment Instructions**: For UMA or customer ID sources, provides banking
27
+ * details needed for execution
28
+ *
29
+ * **Important:** If you are transferring funds in the same currency (no exchange
30
+ * required), use the `/transfer-in` or `/transfer-out` endpoints instead.
31
+ *
32
+ * **Sandbox Testing:** When using the `externalAccountDetails` destination type in
33
+ * sandbox mode, use account number patterns ending in specific digits to test
34
+ * different scenarios. These patterns should be used with the primary alias,
35
+ * address, or identifier of whatever account type you're testing. For example, the
36
+ * US account number, a CLABE, an IBAN, a spark wallet address, etc. The failure
37
+ * patterns are:
38
+ *
39
+ * - Account numbers ending in **002**: Insufficient funds (transfer-in will fail)
40
+ * - Account numbers ending in **003**: Account closed/invalid (transfers will
41
+ * fail)
42
+ * - Account numbers ending in **004**: Transfer rejected (bank rejects the
43
+ * transfer)
44
+ * - Account numbers ending in **005**: Timeout/delayed failure (stays pending
45
+ * ~30s, then fails)
46
+ * - Any other account number: Success (transfers complete normally)
47
+ *
48
+ * @example
49
+ * ```ts
50
+ * const quote = await client.quotes.create({
51
+ * destination: {
52
+ * accountId:
53
+ * 'ExternalAccount:a12dcbd6-dced-4ec4-b756-3c3a9ea3d123',
54
+ * },
55
+ * lockedCurrencyAmount: 10000,
56
+ * lockedCurrencySide: 'SENDING',
57
+ * source: {
58
+ * accountId:
59
+ * 'InternalAccount:e85dcbd6-dced-4ec4-b756-3c3a9ea3d965',
60
+ * },
61
+ * description:
62
+ * 'Transfer between accounts, either internal or external.',
63
+ * });
64
+ * ```
65
+ */
66
+ create(body: QuoteCreateParams, options?: RequestOptions): APIPromise<Quote>;
67
+ /**
68
+ * Retrieve a quote by its ID. If the quote has been settled, it will include the
69
+ * transaction ID. This allows clients to track the full lifecycle of a payment
70
+ * from quote creation to settlement.
71
+ *
72
+ * @example
73
+ * ```ts
74
+ * const quote = await client.quotes.retrieve('quoteId');
75
+ * ```
76
+ */
77
+ retrieve(quoteID: string, options?: RequestOptions): APIPromise<Quote>;
78
+ /**
79
+ * Retrieve a list of transfer quotes with optional filtering parameters. Returns
80
+ * all quotes that match the specified filters. If no filters are provided, returns
81
+ * all quotes (paginated).
82
+ *
83
+ * @example
84
+ * ```ts
85
+ * // Automatically fetches more pages as needed.
86
+ * for await (const quote of client.quotes.list()) {
87
+ * // ...
88
+ * }
89
+ * ```
90
+ */
91
+ list(query?: QuoteListParams | null | undefined, options?: RequestOptions): PagePromise<QuotesDefaultPagination, Quote>;
92
+ /**
93
+ * Execute a quote by its ID. This endpoint initiates the transfer between the
94
+ * source and destination accounts.
95
+ *
96
+ * This endpoint can only be used for quotes with a `source` which is either an
97
+ * internal account, or has direct pull functionality (e.g. ACH pull with an
98
+ * external account).
99
+ *
100
+ * Once executed, the quote cannot be cancelled and the transfer will be processed.
101
+ *
102
+ * @example
103
+ * ```ts
104
+ * const quote = await client.quotes.execute(
105
+ * 'Quote:019542f5-b3e7-1d02-0000-000000000001',
106
+ * );
107
+ * ```
108
+ */
109
+ execute(quoteID: string, options?: RequestOptions): APIPromise<Quote>;
110
+ }
111
+ export type QuotesDefaultPagination = DefaultPagination<Quote>;
112
+ export type BaseDestination = unknown;
113
+ export type BasePaymentAccountInfo = unknown;
114
+ export type BaseQuoteSource = unknown;
115
+ export interface Currency {
116
+ /**
117
+ * Three-letter currency code (ISO 4217) for fiat currencies. Some cryptocurrencies
118
+ * may use their own ticker symbols (e.g. "BTC" for Bitcoin, "USDC" for USDC, etc.)
119
+ */
120
+ code?: string;
121
+ /**
122
+ * Number of decimal places for the currency
123
+ */
124
+ decimals?: number;
125
+ /**
126
+ * Full name of the currency
127
+ */
128
+ name?: string;
129
+ /**
130
+ * Symbol of the currency
131
+ */
132
+ symbol?: string;
133
+ }
134
+ /**
135
+ * Details about the rate and fees for an outgoing transaction or quote.
136
+ */
137
+ export interface OutgoingRateDetails {
138
+ /**
139
+ * The fixed fee charged by the counterparty institution to execute the quote in
140
+ * the smallest unit of the receiving currency (eg. cents).
141
+ */
142
+ counterpartyFixedFee: number;
143
+ /**
144
+ * The underlying multiplier from mSATs to the receiving currency as returned by
145
+ * the counterparty institution.
146
+ */
147
+ counterpartyMultiplier: number;
148
+ /**
149
+ * The fixed fee charged by the Grid product to execute the quote in the smallest
150
+ * unit of the sending currency (eg. cents).
151
+ */
152
+ gridApiFixedFee: number;
153
+ /**
154
+ * The underlying multiplier from the sending currency to mSATS, including variable
155
+ * fees.
156
+ */
157
+ gridApiMultiplier: number;
158
+ /**
159
+ * The variable fee amount charged by the Grid product to execute the quote in the
160
+ * smallest unit of the sending currency (eg. cents). This is the sending amount
161
+ * times gridApiVariableFeeRate.
162
+ */
163
+ gridApiVariableFeeAmount: number;
164
+ /**
165
+ * The variable fee rate charged by the Grid product to execute the quote as a
166
+ * percentage of the sending currency amount.
167
+ */
168
+ gridApiVariableFeeRate: number;
169
+ }
170
+ export interface PaymentInstructions {
171
+ accountOrWalletInfo: PaymentInstructions.PaymentClabeAccountInfo | PaymentInstructions.PaymentUsAccountInfo | PaymentInstructions.PixAccountInfo | PaymentInstructions.PaymentIbanAccountInfo | PaymentInstructions.UpiAccountInfo | PaymentInstructions.PaymentSparkWalletInfo | PaymentInstructions.PaymentLightningInvoiceInfo | PaymentInstructions.PaymentSolanaWalletInfo | PaymentInstructions.PaymentTronWalletInfo | PaymentInstructions.PaymentPolygonWalletInfo | PaymentInstructions.PaymentBaseWalletInfo;
172
+ /**
173
+ * Additional human-readable instructions for making the payment
174
+ */
175
+ instructionsNotes?: string;
176
+ /**
177
+ * Indicates whether the account is a platform account or a customer account.
178
+ */
179
+ isPlatformAccount?: boolean;
180
+ }
181
+ export declare namespace PaymentInstructions {
182
+ interface PaymentClabeAccountInfo {
183
+ accountType: 'CLABE';
184
+ /**
185
+ * 18-digit CLABE number (Mexican banking standard)
186
+ */
187
+ clabeNumber: string;
188
+ /**
189
+ * Unique reference code that must be included with the payment to properly credit
190
+ * it
191
+ */
192
+ reference: string;
193
+ }
194
+ interface PaymentUsAccountInfo {
195
+ /**
196
+ * Type of account (checking or savings)
197
+ */
198
+ accountCategory: 'CHECKING' | 'SAVINGS';
199
+ /**
200
+ * US bank account number
201
+ */
202
+ accountNumber: string;
203
+ accountType: 'US_ACCOUNT';
204
+ /**
205
+ * Unique reference code that must be included with the payment to properly credit
206
+ * it
207
+ */
208
+ reference: string;
209
+ /**
210
+ * ACH routing number (9 digits)
211
+ */
212
+ routingNumber: string;
213
+ /**
214
+ * Name of the bank
215
+ */
216
+ bankName?: string;
217
+ }
218
+ interface PixAccountInfo {
219
+ accountType: 'PIX';
220
+ /**
221
+ * PIX key for Brazilian instant payments
222
+ */
223
+ pixKey: string;
224
+ /**
225
+ * Type of PIX key being used
226
+ */
227
+ pixKeyType: 'CPF' | 'CNPJ' | 'EMAIL' | 'PHONE' | 'RANDOM';
228
+ /**
229
+ * Tax ID of the account holder
230
+ */
231
+ taxId: string;
232
+ }
233
+ interface PaymentIbanAccountInfo {
234
+ accountType: 'IBAN';
235
+ /**
236
+ * International Bank Account Number
237
+ */
238
+ iban: string;
239
+ /**
240
+ * Unique reference code that must be included with the payment to properly credit
241
+ * it
242
+ */
243
+ reference: string;
244
+ /**
245
+ * SWIFT/BIC code (8 or 11 characters)
246
+ */
247
+ swiftBic: string;
248
+ }
249
+ interface UpiAccountInfo {
250
+ accountType: 'UPI';
251
+ /**
252
+ * Virtual Payment Address for UPI payments
253
+ */
254
+ vpa: string;
255
+ }
256
+ interface PaymentSparkWalletInfo {
257
+ accountType: 'SPARK_WALLET';
258
+ /**
259
+ * Spark wallet address
260
+ */
261
+ address: string;
262
+ /**
263
+ * Type of asset
264
+ */
265
+ assetType: 'BTC' | 'USDB';
266
+ /**
267
+ * Invoice for the payment
268
+ */
269
+ invoice?: string;
270
+ }
271
+ interface PaymentLightningInvoiceInfo {
272
+ /**
273
+ * Invoice for the payment
274
+ */
275
+ invoice: string;
276
+ accountType?: 'LIGHTNING';
277
+ }
278
+ interface PaymentSolanaWalletInfo {
279
+ accountType: 'SOLANA_WALLET';
280
+ /**
281
+ * Solana wallet address
282
+ */
283
+ address: string;
284
+ /**
285
+ * Type of asset
286
+ */
287
+ assetType?: 'USDC' | 'USDT';
288
+ }
289
+ interface PaymentTronWalletInfo {
290
+ accountType: 'TRON_WALLET';
291
+ /**
292
+ * Tron wallet address
293
+ */
294
+ address: string;
295
+ /**
296
+ * Type of asset
297
+ */
298
+ assetType?: 'USDT';
299
+ }
300
+ interface PaymentPolygonWalletInfo {
301
+ accountType: 'POLYGON_WALLET';
302
+ /**
303
+ * Polygon eth wallet address
304
+ */
305
+ address: string;
306
+ /**
307
+ * Type of asset
308
+ */
309
+ assetType?: 'USDC';
310
+ }
311
+ interface PaymentBaseWalletInfo {
312
+ accountType: 'BASE_WALLET';
313
+ /**
314
+ * Base eth wallet address
315
+ */
316
+ address: string;
317
+ /**
318
+ * Type of asset
319
+ */
320
+ assetType?: 'USDC';
321
+ }
322
+ }
323
+ export interface Quote {
324
+ /**
325
+ * When this quote was created
326
+ */
327
+ createdAt: string;
328
+ /**
329
+ * Destination account details
330
+ */
331
+ destination: QuoteDestinationOneOf;
332
+ /**
333
+ * Number of sending currency units per receiving currency unit.
334
+ */
335
+ exchangeRate: number;
336
+ /**
337
+ * When this quote expires (typically 1-5 minutes after creation)
338
+ */
339
+ expiresAt: string;
340
+ /**
341
+ * The fees associated with the quote in the smallest unit of the sending currency
342
+ * (eg. cents).
343
+ */
344
+ feesIncluded: number;
345
+ /**
346
+ * Unique identifier for this quote
347
+ */
348
+ quoteId: string;
349
+ /**
350
+ * Currency for the receiving amount
351
+ */
352
+ receivingCurrency: Currency;
353
+ /**
354
+ * Currency for the sending amount
355
+ */
356
+ sendingCurrency: Currency;
357
+ /**
358
+ * Source account details
359
+ */
360
+ source: QuoteSourceOneOf;
361
+ /**
362
+ * Current status of the quote
363
+ */
364
+ status: 'PENDING' | 'PROCESSING' | 'COMPLETED' | 'FAILED' | 'EXPIRED';
365
+ /**
366
+ * The total amount that will be received in the smallest unit of the receiving
367
+ * currency (eg. cents).
368
+ */
369
+ totalReceivingAmount: number;
370
+ /**
371
+ * The total amount that will be sent in the smallest unit of the sending currency
372
+ * (eg. cents).
373
+ */
374
+ totalSendingAmount: number;
375
+ /**
376
+ * The ID of the transaction created from this quote.
377
+ */
378
+ transactionId: string;
379
+ /**
380
+ * ID of the quote that is being retried
381
+ */
382
+ originalQuoteId?: string;
383
+ /**
384
+ * Payment instructions for executing the payment. This is not required when using
385
+ * an internal account source.
386
+ */
387
+ paymentInstructions?: Array<PaymentInstructions>;
388
+ /**
389
+ * Details about the rate and fees for the transaction.
390
+ */
391
+ rateDetails?: OutgoingRateDetails;
392
+ }
393
+ /**
394
+ * Destination account details
395
+ */
396
+ export type QuoteDestinationOneOf = QuoteDestinationOneOf.AccountDestination | QuoteDestinationOneOf.UmaAddressDestination | QuoteDestinationOneOf.ExternalAccountDetailsDestination;
397
+ export declare namespace QuoteDestinationOneOf {
398
+ /**
399
+ * Destination account details
400
+ */
401
+ interface AccountDestination {
402
+ /**
403
+ * Destination account identifier
404
+ */
405
+ accountId: string;
406
+ destinationType: 'ACCOUNT';
407
+ }
408
+ /**
409
+ * UMA address destination details
410
+ */
411
+ interface UmaAddressDestination {
412
+ destinationType: 'UMA_ADDRESS';
413
+ /**
414
+ * UMA address of the recipient
415
+ */
416
+ umaAddress: string;
417
+ /**
418
+ * Information about the recipient, as required by the platform in their
419
+ * configuration.
420
+ */
421
+ counterpartyInformation?: {
422
+ [key: string]: unknown;
423
+ };
424
+ /**
425
+ * Currency code for the destination. See
426
+ * [Supported Currencies](https://grid.lightspark.com/platform-overview/core-concepts/currencies-and-rails)
427
+ * for the full list of supported fiat and crypto currencies.
428
+ */
429
+ currency?: string;
430
+ }
431
+ /**
432
+ * A convenient destination option which adds the external account and creates the
433
+ * quote in one step rather than first needing to call /external-accounts to add
434
+ * the account. Useful for one-off payments to some destination. See the external
435
+ * accounts endpoints for test values in sandbox mode.
436
+ */
437
+ interface ExternalAccountDetailsDestination {
438
+ destinationType: 'EXTERNAL_ACCOUNT_DETAILS';
439
+ externalAccountDetails: ExternalAccountsAPI.ExternalAccountCreate;
440
+ }
441
+ }
442
+ /**
443
+ * Source account details
444
+ */
445
+ export type QuoteSourceOneOf = QuoteSourceOneOf.AccountQuoteSource | QuoteSourceOneOf.RealtimeFundingQuoteSource;
446
+ export declare namespace QuoteSourceOneOf {
447
+ /**
448
+ * Source account details
449
+ */
450
+ interface AccountQuoteSource {
451
+ /**
452
+ * Source account identifier
453
+ */
454
+ accountId: string;
455
+ sourceType: 'ACCOUNT';
456
+ /**
457
+ * Required when funding from an FBO account to identify the customer on whose
458
+ * behalf the transaction is being initiated. Otherwise, will default to the
459
+ * customerId of the account owner.
460
+ */
461
+ customerId?: string;
462
+ }
463
+ /**
464
+ * Fund the quote using a real-time funding source (RTP, SEPA Instant, Spark,
465
+ * Stables, etc.). This will require manual just-in-time funding using
466
+ * `paymentInstructions` in the response. Because quotes expire quickly, this
467
+ * option is only valid for instant payment methods. Do not try to fund a quote
468
+ * with a non-instant payment method (ACH, etc.).
469
+ */
470
+ interface RealtimeFundingQuoteSource {
471
+ /**
472
+ * Currency code for the funding source. See
473
+ * [Supported Currencies](https://grid.lightspark.com/platform-overview/core-concepts/currencies-and-rails)
474
+ * for the full list of supported fiat and crypto currencies.
475
+ */
476
+ currency: string;
477
+ sourceType: 'REALTIME_FUNDING';
478
+ /**
479
+ * Source customer ID. If this transaction is being initiated on behalf of a
480
+ * customer, this is required. If customerId is not provided, the quote will be
481
+ * created on behalf of the platform itself.
482
+ */
483
+ customerId?: string;
484
+ }
485
+ }
486
+ export interface QuoteCreateParams {
487
+ /**
488
+ * Destination account details
489
+ */
490
+ destination: QuoteDestinationOneOf;
491
+ /**
492
+ * The amount to send/receive in the smallest unit of the locked currency (eg.
493
+ * cents). See `lockedCurrencySide` for more information.
494
+ */
495
+ lockedCurrencyAmount: number;
496
+ /**
497
+ * The side of the quote which should be locked and specified in the
498
+ * `lockedCurrencyAmount`. For example, if I want to send exactly $5 MXN from my
499
+ * wallet, I would set this to "sending", and the `lockedCurrencyAmount` to 500 (in
500
+ * cents). If I want the receiver to receive exactly $10 USD, I would set this to
501
+ * "receiving" and the `lockedCurrencyAmount` to 10000 (in cents).
502
+ */
503
+ lockedCurrencySide: 'SENDING' | 'RECEIVING';
504
+ /**
505
+ * Source account details
506
+ */
507
+ source: QuoteSourceOneOf;
508
+ /**
509
+ * Optional description/memo for the transfer
510
+ */
511
+ description?: string;
512
+ /**
513
+ * Whether to immediately execute the quote after creation. If true, the quote will
514
+ * be executed and the transaction will be created at the current exchange rate. It
515
+ * should only be used if you don't want to lock and view rate details before
516
+ * executing the quote. If you are executing a pre-existing quote, use the
517
+ * `/quotes/{quoteId}/execute` endpoint instead. This is false by default.
518
+ */
519
+ immediatelyExecute?: boolean;
520
+ /**
521
+ * Lookup ID from a previous receiver lookup request. If provided, this can make
522
+ * the quote creation more efficient by reusing cached lookup data. NOTE: This is
523
+ * required for UMA destinations due to counterparty institution requirements. See
524
+ * `senderCustomerInfo` for more information.
525
+ */
526
+ lookupId?: string;
527
+ /**
528
+ * Only relevant for UMA destinations. Key-value pairs of information about the
529
+ * sender which was requested by the counterparty (recipient) institution. Any
530
+ * fields specified in `requiredPayerDataFields` from the response of the
531
+ * `/receiver/uma/{receiverUmaAddress}` (lookupUma) endpoint MUST be provided here
532
+ * if they were requested. If the counterparty (recipient) institution did not
533
+ * request any information, this field can be omitted.
534
+ */
535
+ senderCustomerInfo?: {
536
+ [key: string]: unknown;
537
+ };
538
+ }
539
+ export interface QuoteListParams extends DefaultPaginationParams {
540
+ /**
541
+ * Filter quotes created after this timestamp (inclusive)
542
+ */
543
+ createdAfter?: string;
544
+ /**
545
+ * Filter quotes created before this timestamp (inclusive)
546
+ */
547
+ createdBefore?: string;
548
+ /**
549
+ * Filter by sending customer ID
550
+ */
551
+ customerId?: string;
552
+ /**
553
+ * Maximum number of results to return (default 20, max 100)
554
+ */
555
+ limit?: number;
556
+ /**
557
+ * Filter by receiving account ID
558
+ */
559
+ receivingAccountId?: string;
560
+ /**
561
+ * Filter by receiving UMA address
562
+ */
563
+ receivingUmaAddress?: string;
564
+ /**
565
+ * Filter by sending account ID
566
+ */
567
+ sendingAccountId?: string;
568
+ /**
569
+ * Filter by sending UMA address
570
+ */
571
+ sendingUmaAddress?: string;
572
+ /**
573
+ * Filter by quote status
574
+ */
575
+ status?: 'PENDING' | 'PROCESSING' | 'COMPLETED' | 'FAILED' | 'EXPIRED';
576
+ }
577
+ export declare namespace Quotes {
578
+ export { type BaseDestination as BaseDestination, type BasePaymentAccountInfo as BasePaymentAccountInfo, type BaseQuoteSource as BaseQuoteSource, type Currency as Currency, type OutgoingRateDetails as OutgoingRateDetails, type PaymentInstructions as PaymentInstructions, type Quote as Quote, type QuoteDestinationOneOf as QuoteDestinationOneOf, type QuoteSourceOneOf as QuoteSourceOneOf, type QuotesDefaultPagination as QuotesDefaultPagination, type QuoteCreateParams as QuoteCreateParams, type QuoteListParams as QuoteListParams, };
579
+ }
580
+ //# sourceMappingURL=quotes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"quotes.d.ts","sourceRoot":"","sources":["../src/resources/quotes.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,mBAAmB;OACxB,EAAE,UAAU,EAAE;OACd,EAAE,iBAAiB,EAAE,KAAK,uBAAuB,EAAE,WAAW,EAAE;OAChE,EAAE,cAAc,EAAE;AAGzB,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA0DG;IACH,MAAM,CAAC,IAAI,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,KAAK,CAAC;IAI5E;;;;;;;;;OASG;IACH,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,KAAK,CAAC;IAItE;;;;;;;;;;;;OAYG;IACH,IAAI,CACF,KAAK,GAAE,eAAe,GAAG,IAAI,GAAG,SAAc,EAC9C,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,uBAAuB,EAAE,KAAK,CAAC;IAI9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