@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
package/client.d.mts ADDED
@@ -0,0 +1,302 @@
1
+ import type { RequestInit, RequestInfo } from "./internal/builtin-types.mjs";
2
+ import type { PromiseOrValue, MergedRequestInit, FinalizedRequestInit } from "./internal/types.mjs";
3
+ export type { Logger, LogLevel } from "./internal/utils/log.mjs";
4
+ import * as Opts from "./internal/request-options.mjs";
5
+ import * as Errors from "./core/error.mjs";
6
+ import * as Pagination from "./core/pagination.mjs";
7
+ import { type DefaultPaginationParams, DefaultPaginationResponse } from "./core/pagination.mjs";
8
+ import * as Uploads from "./core/uploads.mjs";
9
+ import * as API from "./resources/index.mjs";
10
+ import { APIPromise } from "./core/api-promise.mjs";
11
+ import { Config, ConfigUpdateParams, CustomerInfoFieldName, PlatformConfig, PlatformCurrencyConfig } from "./resources/config.mjs";
12
+ import { ExchangeRateListParams, ExchangeRateListResponse, ExchangeRates } from "./resources/exchange-rates.mjs";
13
+ import { CurrencyAmount, InvitationClaimParams, InvitationCreateParams, Invitations, UmaInvitation } from "./resources/invitations.mjs";
14
+ import { Plaid, PlaidCreateLinkTokenParams, PlaidCreateLinkTokenResponse, PlaidSubmitPublicTokenParams } from "./resources/plaid.mjs";
15
+ import { BaseDestination, BasePaymentAccountInfo, BaseQuoteSource, Currency, OutgoingRateDetails, PaymentInstructions, Quote, QuoteCreateParams, QuoteDestinationOneOf, QuoteListParams, QuoteSourceOneOf, Quotes, QuotesDefaultPagination } from "./resources/quotes.mjs";
16
+ import { CounterpartyFieldDefinition, LookupResponse, Receiver, ReceiverLookupExternalAccountParams, ReceiverLookupExternalAccountResponse, ReceiverLookupUmaParams, ReceiverLookupUmaResponse } from "./resources/receiver.mjs";
17
+ import { APIToken, APITokensDefaultPagination, Permission, TokenCreateParams, TokenListParams, Tokens } from "./resources/tokens.mjs";
18
+ import { BaseTransactionSource, IncomingTransaction, TransactionApproveParams, TransactionListParams, TransactionRejectParams, TransactionSourceOneOf, TransactionStatus, TransactionType, Transactions } from "./resources/transactions.mjs";
19
+ import { BaseTransactionDestination, Transaction, TransferIn, TransferInCreateParams } from "./resources/transfer-in.mjs";
20
+ import { TransferOut, TransferOutCreateParams } from "./resources/transfer-out.mjs";
21
+ import { UmaProviderListParams, UmaProviderListResponse, UmaProviderListResponsesDefaultPagination, UmaProviders } from "./resources/uma-providers.mjs";
22
+ import { WebhookSendTestResponse, Webhooks } from "./resources/webhooks.mjs";
23
+ import { Customer, CustomerCreate, CustomerCreateParams, CustomerDeleteResponse, CustomerGetKYCLinkParams, CustomerGetKYCLinkResponse, CustomerListInternalAccountsParams, CustomerListParams, CustomerOneOf, CustomerOneovesDefaultPagination, CustomerRetrieveResponse, CustomerUpdate, CustomerUpdateParams, CustomerUpdateResponse, Customers } from "./resources/customers/customers.mjs";
24
+ import { Platform, PlatformListInternalAccountsParams, PlatformListInternalAccountsResponse } from "./resources/platform/platform.mjs";
25
+ import { Sandbox, SandboxSendFundsParams, SandboxSendFundsResponse } from "./resources/sandbox/sandbox.mjs";
26
+ import { type Fetch } from "./internal/builtin-types.mjs";
27
+ import { HeadersLike, NullableHeaders } from "./internal/headers.mjs";
28
+ import { FinalRequestOptions, RequestOptions } from "./internal/request-options.mjs";
29
+ import { type LogLevel, type Logger } from "./internal/utils/log.mjs";
30
+ export interface ClientOptions {
31
+ /**
32
+ * API token authentication using format `<api token id>:<api client secret>`
33
+ */
34
+ username?: string | undefined;
35
+ /**
36
+ * API token authentication using format `<api token id>:<api client secret>`
37
+ */
38
+ password?: string | undefined;
39
+ /**
40
+ * Secp256r1 (P-256) asymmetric signature of the webhook payload, which can be used to verify that the webhook was sent by Grid.
41
+ *
42
+ * To verify the signature:
43
+ * 1. Get the Grid public key provided to you during integration
44
+ * 2. Decode the base64 signature from the header
45
+ * 3. Create a SHA-256 hash of the request body
46
+ * 4. Verify the signature using the public key and the hash
47
+ *
48
+ * If the signature verification succeeds, the webhook is authentic. If not, it should be rejected.
49
+ *
50
+ */
51
+ webhookSignature?: string | null | undefined;
52
+ /**
53
+ * Override the default base URL for the API, e.g., "https://api.example.com/v2/"
54
+ *
55
+ * Defaults to process.env['LIGHTSPARK_GRID_BASE_URL'].
56
+ */
57
+ baseURL?: string | null | undefined;
58
+ /**
59
+ * The maximum amount of time (in milliseconds) that the client should wait for a response
60
+ * from the server before timing out a single request.
61
+ *
62
+ * Note that request timeouts are retried by default, so in a worst-case scenario you may wait
63
+ * much longer than this timeout before the promise succeeds or fails.
64
+ *
65
+ * @unit milliseconds
66
+ */
67
+ timeout?: number | undefined;
68
+ /**
69
+ * Additional `RequestInit` options to be passed to `fetch` calls.
70
+ * Properties will be overridden by per-request `fetchOptions`.
71
+ */
72
+ fetchOptions?: MergedRequestInit | undefined;
73
+ /**
74
+ * Specify a custom `fetch` function implementation.
75
+ *
76
+ * If not provided, we expect that `fetch` is defined globally.
77
+ */
78
+ fetch?: Fetch | undefined;
79
+ /**
80
+ * The maximum number of times that the client will retry a request in case of a
81
+ * temporary failure, like a network error or a 5XX error from the server.
82
+ *
83
+ * @default 2
84
+ */
85
+ maxRetries?: number | undefined;
86
+ /**
87
+ * Default headers to include with every request to the API.
88
+ *
89
+ * These can be removed in individual requests by explicitly setting the
90
+ * header to `null` in request options.
91
+ */
92
+ defaultHeaders?: HeadersLike | undefined;
93
+ /**
94
+ * Default query parameters to include with every request to the API.
95
+ *
96
+ * These can be removed in individual requests by explicitly setting the
97
+ * param to `undefined` in request options.
98
+ */
99
+ defaultQuery?: Record<string, string | undefined> | undefined;
100
+ /**
101
+ * Set the log level.
102
+ *
103
+ * Defaults to process.env['LIGHTSPARK_GRID_LOG'] or 'warn' if it isn't set.
104
+ */
105
+ logLevel?: LogLevel | undefined;
106
+ /**
107
+ * Set the logger.
108
+ *
109
+ * Defaults to globalThis.console.
110
+ */
111
+ logger?: Logger | undefined;
112
+ }
113
+ /**
114
+ * API Client for interfacing with the Lightspark Grid API.
115
+ */
116
+ export declare class LightsparkGrid {
117
+ #private;
118
+ username: string;
119
+ password: string;
120
+ webhookSignature: string | null;
121
+ baseURL: string;
122
+ maxRetries: number;
123
+ timeout: number;
124
+ logger: Logger;
125
+ logLevel: LogLevel | undefined;
126
+ fetchOptions: MergedRequestInit | undefined;
127
+ private fetch;
128
+ protected idempotencyHeader?: string;
129
+ private _options;
130
+ /**
131
+ * API Client for interfacing with the Lightspark Grid API.
132
+ *
133
+ * @param {string | undefined} [opts.username=process.env['GRID_CLIENT_ID'] ?? undefined]
134
+ * @param {string | undefined} [opts.password=process.env['GRID_CLIENT_SECRET'] ?? undefined]
135
+ * @param {string | null | undefined} [opts.webhookSignature=process.env['GRID_WEBHOOK_PUBKEY'] ?? null]
136
+ * @param {string} [opts.baseURL=process.env['LIGHTSPARK_GRID_BASE_URL'] ?? https://api.lightspark.com/grid/2025-10-13] - Override the default base URL for the API.
137
+ * @param {number} [opts.timeout=1 minute] - The maximum amount of time (in milliseconds) the client will wait for a response before timing out.
138
+ * @param {MergedRequestInit} [opts.fetchOptions] - Additional `RequestInit` options to be passed to `fetch` calls.
139
+ * @param {Fetch} [opts.fetch] - Specify a custom `fetch` function implementation.
140
+ * @param {number} [opts.maxRetries=2] - The maximum number of times the client will retry a request.
141
+ * @param {HeadersLike} opts.defaultHeaders - Default headers to include with every request to the API.
142
+ * @param {Record<string, string | undefined>} opts.defaultQuery - Default query parameters to include with every request to the API.
143
+ */
144
+ constructor({ baseURL, username, password, webhookSignature, ...opts }?: ClientOptions);
145
+ /**
146
+ * Create a new client instance re-using the same options given to the current client with optional overriding.
147
+ */
148
+ withOptions(options: Partial<ClientOptions>): this;
149
+ protected defaultQuery(): Record<string, string | undefined> | undefined;
150
+ protected validateHeaders({ values, nulls }: NullableHeaders): void;
151
+ protected authHeaders(opts: FinalRequestOptions): Promise<NullableHeaders | undefined>;
152
+ protected basicAuth(opts: FinalRequestOptions): Promise<NullableHeaders | undefined>;
153
+ protected webhookSignatureAuth(opts: FinalRequestOptions): Promise<NullableHeaders | undefined>;
154
+ protected stringifyQuery(query: Record<string, unknown>): string;
155
+ private getUserAgent;
156
+ protected defaultIdempotencyKey(): string;
157
+ protected makeStatusError(status: number, error: Object, message: string | undefined, headers: Headers): Errors.APIError;
158
+ buildURL(path: string, query: Record<string, unknown> | null | undefined, defaultBaseURL?: string | undefined): string;
159
+ /**
160
+ * Used as a callback for mutating the given `FinalRequestOptions` object.
161
+ */
162
+ protected prepareOptions(options: FinalRequestOptions): Promise<void>;
163
+ /**
164
+ * Used as a callback for mutating the given `RequestInit` object.
165
+ *
166
+ * This is useful for cases where you want to add certain headers based off of
167
+ * the request properties, e.g. `method` or `url`.
168
+ */
169
+ protected prepareRequest(request: RequestInit, { url, options }: {
170
+ url: string;
171
+ options: FinalRequestOptions;
172
+ }): Promise<void>;
173
+ get<Rsp>(path: string, opts?: PromiseOrValue<RequestOptions>): APIPromise<Rsp>;
174
+ post<Rsp>(path: string, opts?: PromiseOrValue<RequestOptions>): APIPromise<Rsp>;
175
+ patch<Rsp>(path: string, opts?: PromiseOrValue<RequestOptions>): APIPromise<Rsp>;
176
+ put<Rsp>(path: string, opts?: PromiseOrValue<RequestOptions>): APIPromise<Rsp>;
177
+ delete<Rsp>(path: string, opts?: PromiseOrValue<RequestOptions>): APIPromise<Rsp>;
178
+ private methodRequest;
179
+ request<Rsp>(options: PromiseOrValue<FinalRequestOptions>, remainingRetries?: number | null): APIPromise<Rsp>;
180
+ private makeRequest;
181
+ getAPIList<Item, PageClass extends Pagination.AbstractPage<Item> = Pagination.AbstractPage<Item>>(path: string, Page: new (...args: any[]) => PageClass, opts?: PromiseOrValue<RequestOptions>): Pagination.PagePromise<PageClass, Item>;
182
+ requestAPIList<Item = unknown, PageClass extends Pagination.AbstractPage<Item> = Pagination.AbstractPage<Item>>(Page: new (...args: ConstructorParameters<typeof Pagination.AbstractPage>) => PageClass, options: PromiseOrValue<FinalRequestOptions>): Pagination.PagePromise<PageClass, Item>;
183
+ fetchWithTimeout(url: RequestInfo, init: RequestInit | undefined, ms: number, controller: AbortController): Promise<Response>;
184
+ private shouldRetry;
185
+ private retryRequest;
186
+ private calculateDefaultRetryTimeoutMillis;
187
+ buildRequest(inputOptions: FinalRequestOptions, { retryCount }?: {
188
+ retryCount?: number;
189
+ }): Promise<{
190
+ req: FinalizedRequestInit;
191
+ url: string;
192
+ timeout: number;
193
+ }>;
194
+ private buildHeaders;
195
+ private _makeAbort;
196
+ private buildBody;
197
+ static LightsparkGrid: typeof LightsparkGrid;
198
+ static DEFAULT_TIMEOUT: number;
199
+ static LightsparkGridError: typeof Errors.LightsparkGridError;
200
+ static APIError: typeof Errors.APIError;
201
+ static APIConnectionError: typeof Errors.APIConnectionError;
202
+ static APIConnectionTimeoutError: typeof Errors.APIConnectionTimeoutError;
203
+ static APIUserAbortError: typeof Errors.APIUserAbortError;
204
+ static Forbidden: typeof Errors.Forbidden;
205
+ static SelfPayment: typeof Errors.SelfPayment;
206
+ static InvalidInput: typeof Errors.InvalidInput;
207
+ static InvalidNonce: typeof Errors.InvalidNonce;
208
+ static Unauthorized: typeof Errors.Unauthorized;
209
+ static UserNotReady: typeof Errors.UserNotReady;
210
+ static UserNotFound: typeof Errors.UserNotFound;
211
+ static NotFoundError: typeof Errors.NotFoundError;
212
+ static ConflictError: typeof Errors.ConflictError;
213
+ static InvalidAmount: typeof Errors.InvalidAmount;
214
+ static QuoteNotFound: typeof Errors.QuoteNotFound;
215
+ static TokenNotFound: typeof Errors.TokenNotFound;
216
+ static InternalError: typeof Errors.InternalError;
217
+ static RateLimitError: typeof Errors.RateLimitError;
218
+ static NotImplemented: typeof Errors.NotImplemented;
219
+ static BadRequestError: typeof Errors.BadRequestError;
220
+ static InvalidReceiver: typeof Errors.InvalidReceiver;
221
+ static InvalidCurrency: typeof Errors.InvalidCurrency;
222
+ static CustomerDeleted: typeof Errors.CustomerDeleted;
223
+ static GridSwitchError: typeof Errors.GridSwitchError;
224
+ static CertChainInvalid: typeof Errors.CertChainInvalid;
225
+ static CertChainExpired: typeof Errors.CertChainExpired;
226
+ static AmountOutOfRange: typeof Errors.AmountOutOfRange;
227
+ static InvalidTimestamp: typeof Errors.InvalidTimestamp;
228
+ static InvalidSignature: typeof Errors.InvalidSignature;
229
+ static UmaAddressExists: typeof Errors.UmaAddressExists;
230
+ static InvalidUmaAddress: typeof Errors.InvalidUmaAddress;
231
+ static SenderNotAccepted: typeof Errors.SenderNotAccepted;
232
+ static ReferenceNotFound: typeof Errors.ReferenceNotFound;
233
+ static QuoteRequestFailed: typeof Errors.QuoteRequestFailed;
234
+ static InvalidBankAccount: typeof Errors.InvalidBankAccount;
235
+ static InvitationNotFound: typeof Errors.InvitationNotFound;
236
+ static AuthenticationError: typeof Errors.AuthenticationError;
237
+ static InternalServerError: typeof Errors.InternalServerError;
238
+ static InvitationCancelled: typeof Errors.InvitationCancelled;
239
+ static InvalidPubkeyFormat: typeof Errors.InvalidPubkeyFormat;
240
+ static LookupRequestFailed: typeof Errors.LookupRequestFailed;
241
+ static TransactionNotFound: typeof Errors.TransactionNotFound;
242
+ static PayreqRequestFailed: typeof Errors.PayreqRequestFailed;
243
+ static LnurlpRequestFailed: typeof Errors.LnurlpRequestFailed;
244
+ static InvalidRequestFormat: typeof Errors.InvalidRequestFormat;
245
+ static WebhookDeliveryError: typeof Errors.WebhookDeliveryError;
246
+ static PermissionDeniedError: typeof Errors.PermissionDeniedError;
247
+ static InvalidPayreqResponse: typeof Errors.InvalidPayreqResponse;
248
+ static WebhookEndpointNotSet: typeof Errors.WebhookEndpointNotSet;
249
+ static VelocityLimitExceeded: typeof Errors.VelocityLimitExceeded;
250
+ static LookupRequestNotFound: typeof Errors.LookupRequestNotFound;
251
+ static BulkUploadJobNotFound: typeof Errors.BulkUploadJobNotFound;
252
+ static UnsupportedUmaVersion: typeof Errors.UnsupportedUmaVersion;
253
+ static CounterpartyNotAllowed: typeof Errors.CounterpartyNotAllowed;
254
+ static NoCompatibleUmaVersion: typeof Errors.NoCompatibleUmaVersion;
255
+ static UnprocessableEntityError: typeof Errors.UnprocessableEntityError;
256
+ static MissingMandatoryUserInfo: typeof Errors.MissingMandatoryUserInfo;
257
+ static InvitationAlreadyClaimed: typeof Errors.InvitationAlreadyClaimed;
258
+ static InvitationsNotConfigured: typeof Errors.InvitationsNotConfigured;
259
+ static ParsePayreqResponseError: typeof Errors.ParsePayreqResponseError;
260
+ static ParseLnurlpResponseError: typeof Errors.ParseLnurlpResponseError;
261
+ static MissingRequiredUmaParameters: typeof Errors.MissingRequiredUmaParameters;
262
+ static CounterpartyPubkeyFetchError: typeof Errors.CounterpartyPubkeyFetchError;
263
+ static UnrecognizedMandatoryPayeeDataKey: typeof Errors.UnrecognizedMandatoryPayeeDataKey;
264
+ static TransactionNotPendingPlatformApproval: typeof Errors.TransactionNotPendingPlatformApproval;
265
+ static toFile: typeof Uploads.toFile;
266
+ config: API.Config;
267
+ customers: API.Customers;
268
+ platform: API.Platform;
269
+ plaid: API.Plaid;
270
+ transferIn: API.TransferIn;
271
+ transferOut: API.TransferOut;
272
+ receiver: API.Receiver;
273
+ quotes: API.Quotes;
274
+ transactions: API.Transactions;
275
+ webhooks: API.Webhooks;
276
+ invitations: API.Invitations;
277
+ sandbox: API.Sandbox;
278
+ umaProviders: API.UmaProviders;
279
+ tokens: API.Tokens;
280
+ exchangeRates: API.ExchangeRates;
281
+ }
282
+ export declare namespace LightsparkGrid {
283
+ export type RequestOptions = Opts.RequestOptions;
284
+ export import DefaultPagination = Pagination.DefaultPagination;
285
+ export { type DefaultPaginationParams as DefaultPaginationParams, type DefaultPaginationResponse as DefaultPaginationResponse, };
286
+ export { Config as Config, type CustomerInfoFieldName as CustomerInfoFieldName, type PlatformConfig as PlatformConfig, type PlatformCurrencyConfig as PlatformCurrencyConfig, type ConfigUpdateParams as ConfigUpdateParams, };
287
+ export { Customers as Customers, type Customer as Customer, type CustomerCreate as CustomerCreate, type CustomerOneOf as CustomerOneOf, type CustomerUpdate as CustomerUpdate, type CustomerRetrieveResponse as CustomerRetrieveResponse, type CustomerUpdateResponse as CustomerUpdateResponse, type CustomerDeleteResponse as CustomerDeleteResponse, type CustomerGetKYCLinkResponse as CustomerGetKYCLinkResponse, type CustomerOneovesDefaultPagination as CustomerOneovesDefaultPagination, type CustomerCreateParams as CustomerCreateParams, type CustomerUpdateParams as CustomerUpdateParams, type CustomerListParams as CustomerListParams, type CustomerGetKYCLinkParams as CustomerGetKYCLinkParams, type CustomerListInternalAccountsParams as CustomerListInternalAccountsParams, };
288
+ export { Platform as Platform, type PlatformListInternalAccountsResponse as PlatformListInternalAccountsResponse, type PlatformListInternalAccountsParams as PlatformListInternalAccountsParams, };
289
+ export { Plaid as Plaid, type PlaidCreateLinkTokenResponse as PlaidCreateLinkTokenResponse, type PlaidCreateLinkTokenParams as PlaidCreateLinkTokenParams, type PlaidSubmitPublicTokenParams as PlaidSubmitPublicTokenParams, };
290
+ export { TransferIn as TransferIn, type BaseTransactionDestination as BaseTransactionDestination, type Transaction as Transaction, type TransferInCreateParams as TransferInCreateParams, };
291
+ export { TransferOut as TransferOut, type TransferOutCreateParams as TransferOutCreateParams };
292
+ export { Receiver as Receiver, type CounterpartyFieldDefinition as CounterpartyFieldDefinition, type LookupResponse as LookupResponse, type ReceiverLookupExternalAccountResponse as ReceiverLookupExternalAccountResponse, type ReceiverLookupUmaResponse as ReceiverLookupUmaResponse, type ReceiverLookupExternalAccountParams as ReceiverLookupExternalAccountParams, type ReceiverLookupUmaParams as ReceiverLookupUmaParams, };
293
+ export { Quotes as Quotes, 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, };
294
+ export { Transactions as Transactions, type BaseTransactionSource as BaseTransactionSource, type IncomingTransaction as IncomingTransaction, type TransactionSourceOneOf as TransactionSourceOneOf, type TransactionStatus as TransactionStatus, type TransactionType as TransactionType, type TransactionListParams as TransactionListParams, type TransactionApproveParams as TransactionApproveParams, type TransactionRejectParams as TransactionRejectParams, };
295
+ export { Webhooks as Webhooks, type WebhookSendTestResponse as WebhookSendTestResponse };
296
+ export { Invitations as Invitations, type CurrencyAmount as CurrencyAmount, type UmaInvitation as UmaInvitation, type InvitationCreateParams as InvitationCreateParams, type InvitationClaimParams as InvitationClaimParams, };
297
+ export { Sandbox as Sandbox, type SandboxSendFundsResponse as SandboxSendFundsResponse, type SandboxSendFundsParams as SandboxSendFundsParams, };
298
+ export { UmaProviders as UmaProviders, type UmaProviderListResponse as UmaProviderListResponse, type UmaProviderListResponsesDefaultPagination as UmaProviderListResponsesDefaultPagination, type UmaProviderListParams as UmaProviderListParams, };
299
+ export { Tokens as Tokens, type APIToken as APIToken, type Permission as Permission, type APITokensDefaultPagination as APITokensDefaultPagination, type TokenCreateParams as TokenCreateParams, type TokenListParams as TokenListParams, };
300
+ export { ExchangeRates as ExchangeRates, type ExchangeRateListResponse as ExchangeRateListResponse, type ExchangeRateListParams as ExchangeRateListParams, };
301
+ }
302
+ //# sourceMappingURL=client.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client.d.mts","sourceRoot":"","sources":["src/client.ts"],"names":[],"mappings":"OAEO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAY;OAC3C,KAAK,EAAc,cAAc,EAAE,iBAAiB,EAAE,oBAAoB,EAAE;YAIvE,EAAE,MAAM,EAAE,QAAQ,EAAE;OAKzB,KAAK,IAAI;OAGT,KAAK,MAAM;OACX,KAAK,UAAU;OACf,EAAgB,KAAK,uBAAuB,EAAE,yBAAyB,EAAE;OACzE,KAAK,OAAO;OACZ,KAAK,GAAG;OACR,EAAE,UAAU,EAAE;OACd,EACL,MAAM,EACN,kBAAkB,EAClB,qBAAqB,EACrB,cAAc,EACd,sBAAsB,EACvB;OACM,EAAE,sBAAsB,EAAE,wBAAwB,EAAE,aAAa,EAAE;OACnE,EACL,cAAc,EACd,qBAAqB,EACrB,sBAAsB,EACtB,WAAW,EACX,aAAa,EACd;OACM,EACL,KAAK,EACL,0BAA0B,EAC1B,4BAA4B,EAC5B,4BAA4B,EAC7B;OACM,EACL,eAAe,EACf,sBAAsB,EACtB,eAAe,EACf,QAAQ,EACR,mBAAmB,EACnB,mBAAmB,EACnB,KAAK,EACL,iBAAiB,EACjB,qBAAqB,EACrB,eAAe,EACf,gBAAgB,EAChB,MAAM,EACN,uBAAuB,EACxB;OACM,EACL,2BAA2B,EAC3B,cAAc,EACd,QAAQ,EACR,mCAAmC,EACnC,qCAAqC,EACrC,uBAAuB,EACvB,yBAAyB,EAC1B;OACM,EACL,QAAQ,EACR,0BAA0B,EAC1B,UAAU,EACV,iBAAiB,EACjB,eAAe,EACf,MAAM,EACP;OACM,EACL,qBAAqB,EACrB,mBAAmB,EACnB,wBAAwB,EACxB,qBAAqB,EACrB,uBAAuB,EACvB,sBAAsB,EACtB,iBAAiB,EACjB,eAAe,EACf,YAAY,EACb;OACM,EACL,0BAA0B,EAC1B,WAAW,EACX,UAAU,EACV,sBAAsB,EACvB;OACM,EAAE,WAAW,EAAE,uBAAuB,EAAE;OACxC,EACL,qBAAqB,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,OAAO,IAAI,OAAO,EAClB,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;IAEF,OAAO,EACL,YAAY,IAAI,YAAY,EAC5B,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,yCAAyC,IAAI,yCAAyC,EAC3F,KAAK,qBAAqB,IAAI,qBAAqB,GACpD,CAAC;IAEF,OAAO,EACL,MAAM,IAAI,MAAM,EAChB,KAAK,QAAQ,IAAI,QAAQ,EACzB,KAAK,UAAU,IAAI,UAAU,EAC7B,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,eAAe,IAAI,eAAe,GACxC,CAAC;IAEF,OAAO,EACL,aAAa,IAAI,aAAa,EAC9B,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
package/client.d.ts ADDED
@@ -0,0 +1,302 @@
1
+ import type { RequestInit, RequestInfo } from "./internal/builtin-types.js";
2
+ import type { PromiseOrValue, MergedRequestInit, FinalizedRequestInit } from "./internal/types.js";
3
+ export type { Logger, LogLevel } from "./internal/utils/log.js";
4
+ import * as Opts from "./internal/request-options.js";
5
+ import * as Errors from "./core/error.js";
6
+ import * as Pagination from "./core/pagination.js";
7
+ import { type DefaultPaginationParams, DefaultPaginationResponse } from "./core/pagination.js";
8
+ import * as Uploads from "./core/uploads.js";
9
+ import * as API from "./resources/index.js";
10
+ import { APIPromise } from "./core/api-promise.js";
11
+ import { Config, ConfigUpdateParams, CustomerInfoFieldName, PlatformConfig, PlatformCurrencyConfig } from "./resources/config.js";
12
+ import { ExchangeRateListParams, ExchangeRateListResponse, ExchangeRates } from "./resources/exchange-rates.js";
13
+ import { CurrencyAmount, InvitationClaimParams, InvitationCreateParams, Invitations, UmaInvitation } from "./resources/invitations.js";
14
+ import { Plaid, PlaidCreateLinkTokenParams, PlaidCreateLinkTokenResponse, PlaidSubmitPublicTokenParams } from "./resources/plaid.js";
15
+ import { BaseDestination, BasePaymentAccountInfo, BaseQuoteSource, Currency, OutgoingRateDetails, PaymentInstructions, Quote, QuoteCreateParams, QuoteDestinationOneOf, QuoteListParams, QuoteSourceOneOf, Quotes, QuotesDefaultPagination } from "./resources/quotes.js";
16
+ import { CounterpartyFieldDefinition, LookupResponse, Receiver, ReceiverLookupExternalAccountParams, ReceiverLookupExternalAccountResponse, ReceiverLookupUmaParams, ReceiverLookupUmaResponse } from "./resources/receiver.js";
17
+ import { APIToken, APITokensDefaultPagination, Permission, TokenCreateParams, TokenListParams, Tokens } from "./resources/tokens.js";
18
+ import { BaseTransactionSource, IncomingTransaction, TransactionApproveParams, TransactionListParams, TransactionRejectParams, TransactionSourceOneOf, TransactionStatus, TransactionType, Transactions } from "./resources/transactions.js";
19
+ import { BaseTransactionDestination, Transaction, TransferIn, TransferInCreateParams } from "./resources/transfer-in.js";
20
+ import { TransferOut, TransferOutCreateParams } from "./resources/transfer-out.js";
21
+ import { UmaProviderListParams, UmaProviderListResponse, UmaProviderListResponsesDefaultPagination, UmaProviders } from "./resources/uma-providers.js";
22
+ import { WebhookSendTestResponse, Webhooks } from "./resources/webhooks.js";
23
+ import { Customer, CustomerCreate, CustomerCreateParams, CustomerDeleteResponse, CustomerGetKYCLinkParams, CustomerGetKYCLinkResponse, CustomerListInternalAccountsParams, CustomerListParams, CustomerOneOf, CustomerOneovesDefaultPagination, CustomerRetrieveResponse, CustomerUpdate, CustomerUpdateParams, CustomerUpdateResponse, Customers } from "./resources/customers/customers.js";
24
+ import { Platform, PlatformListInternalAccountsParams, PlatformListInternalAccountsResponse } from "./resources/platform/platform.js";
25
+ import { Sandbox, SandboxSendFundsParams, SandboxSendFundsResponse } from "./resources/sandbox/sandbox.js";
26
+ import { type Fetch } from "./internal/builtin-types.js";
27
+ import { HeadersLike, NullableHeaders } from "./internal/headers.js";
28
+ import { FinalRequestOptions, RequestOptions } from "./internal/request-options.js";
29
+ import { type LogLevel, type Logger } from "./internal/utils/log.js";
30
+ export interface ClientOptions {
31
+ /**
32
+ * API token authentication using format `<api token id>:<api client secret>`
33
+ */
34
+ username?: string | undefined;
35
+ /**
36
+ * API token authentication using format `<api token id>:<api client secret>`
37
+ */
38
+ password?: string | undefined;
39
+ /**
40
+ * Secp256r1 (P-256) asymmetric signature of the webhook payload, which can be used to verify that the webhook was sent by Grid.
41
+ *
42
+ * To verify the signature:
43
+ * 1. Get the Grid public key provided to you during integration
44
+ * 2. Decode the base64 signature from the header
45
+ * 3. Create a SHA-256 hash of the request body
46
+ * 4. Verify the signature using the public key and the hash
47
+ *
48
+ * If the signature verification succeeds, the webhook is authentic. If not, it should be rejected.
49
+ *
50
+ */
51
+ webhookSignature?: string | null | undefined;
52
+ /**
53
+ * Override the default base URL for the API, e.g., "https://api.example.com/v2/"
54
+ *
55
+ * Defaults to process.env['LIGHTSPARK_GRID_BASE_URL'].
56
+ */
57
+ baseURL?: string | null | undefined;
58
+ /**
59
+ * The maximum amount of time (in milliseconds) that the client should wait for a response
60
+ * from the server before timing out a single request.
61
+ *
62
+ * Note that request timeouts are retried by default, so in a worst-case scenario you may wait
63
+ * much longer than this timeout before the promise succeeds or fails.
64
+ *
65
+ * @unit milliseconds
66
+ */
67
+ timeout?: number | undefined;
68
+ /**
69
+ * Additional `RequestInit` options to be passed to `fetch` calls.
70
+ * Properties will be overridden by per-request `fetchOptions`.
71
+ */
72
+ fetchOptions?: MergedRequestInit | undefined;
73
+ /**
74
+ * Specify a custom `fetch` function implementation.
75
+ *
76
+ * If not provided, we expect that `fetch` is defined globally.
77
+ */
78
+ fetch?: Fetch | undefined;
79
+ /**
80
+ * The maximum number of times that the client will retry a request in case of a
81
+ * temporary failure, like a network error or a 5XX error from the server.
82
+ *
83
+ * @default 2
84
+ */
85
+ maxRetries?: number | undefined;
86
+ /**
87
+ * Default headers to include with every request to the API.
88
+ *
89
+ * These can be removed in individual requests by explicitly setting the
90
+ * header to `null` in request options.
91
+ */
92
+ defaultHeaders?: HeadersLike | undefined;
93
+ /**
94
+ * Default query parameters to include with every request to the API.
95
+ *
96
+ * These can be removed in individual requests by explicitly setting the
97
+ * param to `undefined` in request options.
98
+ */
99
+ defaultQuery?: Record<string, string | undefined> | undefined;
100
+ /**
101
+ * Set the log level.
102
+ *
103
+ * Defaults to process.env['LIGHTSPARK_GRID_LOG'] or 'warn' if it isn't set.
104
+ */
105
+ logLevel?: LogLevel | undefined;
106
+ /**
107
+ * Set the logger.
108
+ *
109
+ * Defaults to globalThis.console.
110
+ */
111
+ logger?: Logger | undefined;
112
+ }
113
+ /**
114
+ * API Client for interfacing with the Lightspark Grid API.
115
+ */
116
+ export declare class LightsparkGrid {
117
+ #private;
118
+ username: string;
119
+ password: string;
120
+ webhookSignature: string | null;
121
+ baseURL: string;
122
+ maxRetries: number;
123
+ timeout: number;
124
+ logger: Logger;
125
+ logLevel: LogLevel | undefined;
126
+ fetchOptions: MergedRequestInit | undefined;
127
+ private fetch;
128
+ protected idempotencyHeader?: string;
129
+ private _options;
130
+ /**
131
+ * API Client for interfacing with the Lightspark Grid API.
132
+ *
133
+ * @param {string | undefined} [opts.username=process.env['GRID_CLIENT_ID'] ?? undefined]
134
+ * @param {string | undefined} [opts.password=process.env['GRID_CLIENT_SECRET'] ?? undefined]
135
+ * @param {string | null | undefined} [opts.webhookSignature=process.env['GRID_WEBHOOK_PUBKEY'] ?? null]
136
+ * @param {string} [opts.baseURL=process.env['LIGHTSPARK_GRID_BASE_URL'] ?? https://api.lightspark.com/grid/2025-10-13] - Override the default base URL for the API.
137
+ * @param {number} [opts.timeout=1 minute] - The maximum amount of time (in milliseconds) the client will wait for a response before timing out.
138
+ * @param {MergedRequestInit} [opts.fetchOptions] - Additional `RequestInit` options to be passed to `fetch` calls.
139
+ * @param {Fetch} [opts.fetch] - Specify a custom `fetch` function implementation.
140
+ * @param {number} [opts.maxRetries=2] - The maximum number of times the client will retry a request.
141
+ * @param {HeadersLike} opts.defaultHeaders - Default headers to include with every request to the API.
142
+ * @param {Record<string, string | undefined>} opts.defaultQuery - Default query parameters to include with every request to the API.
143
+ */
144
+ constructor({ baseURL, username, password, webhookSignature, ...opts }?: ClientOptions);
145
+ /**
146
+ * Create a new client instance re-using the same options given to the current client with optional overriding.
147
+ */
148
+ withOptions(options: Partial<ClientOptions>): this;
149
+ protected defaultQuery(): Record<string, string | undefined> | undefined;
150
+ protected validateHeaders({ values, nulls }: NullableHeaders): void;
151
+ protected authHeaders(opts: FinalRequestOptions): Promise<NullableHeaders | undefined>;
152
+ protected basicAuth(opts: FinalRequestOptions): Promise<NullableHeaders | undefined>;
153
+ protected webhookSignatureAuth(opts: FinalRequestOptions): Promise<NullableHeaders | undefined>;
154
+ protected stringifyQuery(query: Record<string, unknown>): string;
155
+ private getUserAgent;
156
+ protected defaultIdempotencyKey(): string;
157
+ protected makeStatusError(status: number, error: Object, message: string | undefined, headers: Headers): Errors.APIError;
158
+ buildURL(path: string, query: Record<string, unknown> | null | undefined, defaultBaseURL?: string | undefined): string;
159
+ /**
160
+ * Used as a callback for mutating the given `FinalRequestOptions` object.
161
+ */
162
+ protected prepareOptions(options: FinalRequestOptions): Promise<void>;
163
+ /**
164
+ * Used as a callback for mutating the given `RequestInit` object.
165
+ *
166
+ * This is useful for cases where you want to add certain headers based off of
167
+ * the request properties, e.g. `method` or `url`.
168
+ */
169
+ protected prepareRequest(request: RequestInit, { url, options }: {
170
+ url: string;
171
+ options: FinalRequestOptions;
172
+ }): Promise<void>;
173
+ get<Rsp>(path: string, opts?: PromiseOrValue<RequestOptions>): APIPromise<Rsp>;
174
+ post<Rsp>(path: string, opts?: PromiseOrValue<RequestOptions>): APIPromise<Rsp>;
175
+ patch<Rsp>(path: string, opts?: PromiseOrValue<RequestOptions>): APIPromise<Rsp>;
176
+ put<Rsp>(path: string, opts?: PromiseOrValue<RequestOptions>): APIPromise<Rsp>;
177
+ delete<Rsp>(path: string, opts?: PromiseOrValue<RequestOptions>): APIPromise<Rsp>;
178
+ private methodRequest;
179
+ request<Rsp>(options: PromiseOrValue<FinalRequestOptions>, remainingRetries?: number | null): APIPromise<Rsp>;
180
+ private makeRequest;
181
+ getAPIList<Item, PageClass extends Pagination.AbstractPage<Item> = Pagination.AbstractPage<Item>>(path: string, Page: new (...args: any[]) => PageClass, opts?: PromiseOrValue<RequestOptions>): Pagination.PagePromise<PageClass, Item>;
182
+ requestAPIList<Item = unknown, PageClass extends Pagination.AbstractPage<Item> = Pagination.AbstractPage<Item>>(Page: new (...args: ConstructorParameters<typeof Pagination.AbstractPage>) => PageClass, options: PromiseOrValue<FinalRequestOptions>): Pagination.PagePromise<PageClass, Item>;
183
+ fetchWithTimeout(url: RequestInfo, init: RequestInit | undefined, ms: number, controller: AbortController): Promise<Response>;
184
+ private shouldRetry;
185
+ private retryRequest;
186
+ private calculateDefaultRetryTimeoutMillis;
187
+ buildRequest(inputOptions: FinalRequestOptions, { retryCount }?: {
188
+ retryCount?: number;
189
+ }): Promise<{
190
+ req: FinalizedRequestInit;
191
+ url: string;
192
+ timeout: number;
193
+ }>;
194
+ private buildHeaders;
195
+ private _makeAbort;
196
+ private buildBody;
197
+ static LightsparkGrid: typeof LightsparkGrid;
198
+ static DEFAULT_TIMEOUT: number;
199
+ static LightsparkGridError: typeof Errors.LightsparkGridError;
200
+ static APIError: typeof Errors.APIError;
201
+ static APIConnectionError: typeof Errors.APIConnectionError;
202
+ static APIConnectionTimeoutError: typeof Errors.APIConnectionTimeoutError;
203
+ static APIUserAbortError: typeof Errors.APIUserAbortError;
204
+ static Forbidden: typeof Errors.Forbidden;
205
+ static SelfPayment: typeof Errors.SelfPayment;
206
+ static InvalidInput: typeof Errors.InvalidInput;
207
+ static InvalidNonce: typeof Errors.InvalidNonce;
208
+ static Unauthorized: typeof Errors.Unauthorized;
209
+ static UserNotReady: typeof Errors.UserNotReady;
210
+ static UserNotFound: typeof Errors.UserNotFound;
211
+ static NotFoundError: typeof Errors.NotFoundError;
212
+ static ConflictError: typeof Errors.ConflictError;
213
+ static InvalidAmount: typeof Errors.InvalidAmount;
214
+ static QuoteNotFound: typeof Errors.QuoteNotFound;
215
+ static TokenNotFound: typeof Errors.TokenNotFound;
216
+ static InternalError: typeof Errors.InternalError;
217
+ static RateLimitError: typeof Errors.RateLimitError;
218
+ static NotImplemented: typeof Errors.NotImplemented;
219
+ static BadRequestError: typeof Errors.BadRequestError;
220
+ static InvalidReceiver: typeof Errors.InvalidReceiver;
221
+ static InvalidCurrency: typeof Errors.InvalidCurrency;
222
+ static CustomerDeleted: typeof Errors.CustomerDeleted;
223
+ static GridSwitchError: typeof Errors.GridSwitchError;
224
+ static CertChainInvalid: typeof Errors.CertChainInvalid;
225
+ static CertChainExpired: typeof Errors.CertChainExpired;
226
+ static AmountOutOfRange: typeof Errors.AmountOutOfRange;
227
+ static InvalidTimestamp: typeof Errors.InvalidTimestamp;
228
+ static InvalidSignature: typeof Errors.InvalidSignature;
229
+ static UmaAddressExists: typeof Errors.UmaAddressExists;
230
+ static InvalidUmaAddress: typeof Errors.InvalidUmaAddress;
231
+ static SenderNotAccepted: typeof Errors.SenderNotAccepted;
232
+ static ReferenceNotFound: typeof Errors.ReferenceNotFound;
233
+ static QuoteRequestFailed: typeof Errors.QuoteRequestFailed;
234
+ static InvalidBankAccount: typeof Errors.InvalidBankAccount;
235
+ static InvitationNotFound: typeof Errors.InvitationNotFound;
236
+ static AuthenticationError: typeof Errors.AuthenticationError;
237
+ static InternalServerError: typeof Errors.InternalServerError;
238
+ static InvitationCancelled: typeof Errors.InvitationCancelled;
239
+ static InvalidPubkeyFormat: typeof Errors.InvalidPubkeyFormat;
240
+ static LookupRequestFailed: typeof Errors.LookupRequestFailed;
241
+ static TransactionNotFound: typeof Errors.TransactionNotFound;
242
+ static PayreqRequestFailed: typeof Errors.PayreqRequestFailed;
243
+ static LnurlpRequestFailed: typeof Errors.LnurlpRequestFailed;
244
+ static InvalidRequestFormat: typeof Errors.InvalidRequestFormat;
245
+ static WebhookDeliveryError: typeof Errors.WebhookDeliveryError;
246
+ static PermissionDeniedError: typeof Errors.PermissionDeniedError;
247
+ static InvalidPayreqResponse: typeof Errors.InvalidPayreqResponse;
248
+ static WebhookEndpointNotSet: typeof Errors.WebhookEndpointNotSet;
249
+ static VelocityLimitExceeded: typeof Errors.VelocityLimitExceeded;
250
+ static LookupRequestNotFound: typeof Errors.LookupRequestNotFound;
251
+ static BulkUploadJobNotFound: typeof Errors.BulkUploadJobNotFound;
252
+ static UnsupportedUmaVersion: typeof Errors.UnsupportedUmaVersion;
253
+ static CounterpartyNotAllowed: typeof Errors.CounterpartyNotAllowed;
254
+ static NoCompatibleUmaVersion: typeof Errors.NoCompatibleUmaVersion;
255
+ static UnprocessableEntityError: typeof Errors.UnprocessableEntityError;
256
+ static MissingMandatoryUserInfo: typeof Errors.MissingMandatoryUserInfo;
257
+ static InvitationAlreadyClaimed: typeof Errors.InvitationAlreadyClaimed;
258
+ static InvitationsNotConfigured: typeof Errors.InvitationsNotConfigured;
259
+ static ParsePayreqResponseError: typeof Errors.ParsePayreqResponseError;
260
+ static ParseLnurlpResponseError: typeof Errors.ParseLnurlpResponseError;
261
+ static MissingRequiredUmaParameters: typeof Errors.MissingRequiredUmaParameters;
262
+ static CounterpartyPubkeyFetchError: typeof Errors.CounterpartyPubkeyFetchError;
263
+ static UnrecognizedMandatoryPayeeDataKey: typeof Errors.UnrecognizedMandatoryPayeeDataKey;
264
+ static TransactionNotPendingPlatformApproval: typeof Errors.TransactionNotPendingPlatformApproval;
265
+ static toFile: typeof Uploads.toFile;
266
+ config: API.Config;
267
+ customers: API.Customers;
268
+ platform: API.Platform;
269
+ plaid: API.Plaid;
270
+ transferIn: API.TransferIn;
271
+ transferOut: API.TransferOut;
272
+ receiver: API.Receiver;
273
+ quotes: API.Quotes;
274
+ transactions: API.Transactions;
275
+ webhooks: API.Webhooks;
276
+ invitations: API.Invitations;
277
+ sandbox: API.Sandbox;
278
+ umaProviders: API.UmaProviders;
279
+ tokens: API.Tokens;
280
+ exchangeRates: API.ExchangeRates;
281
+ }
282
+ export declare namespace LightsparkGrid {
283
+ export type RequestOptions = Opts.RequestOptions;
284
+ export import DefaultPagination = Pagination.DefaultPagination;
285
+ export { type DefaultPaginationParams as DefaultPaginationParams, type DefaultPaginationResponse as DefaultPaginationResponse, };
286
+ export { Config as Config, type CustomerInfoFieldName as CustomerInfoFieldName, type PlatformConfig as PlatformConfig, type PlatformCurrencyConfig as PlatformCurrencyConfig, type ConfigUpdateParams as ConfigUpdateParams, };
287
+ export { Customers as Customers, type Customer as Customer, type CustomerCreate as CustomerCreate, type CustomerOneOf as CustomerOneOf, type CustomerUpdate as CustomerUpdate, type CustomerRetrieveResponse as CustomerRetrieveResponse, type CustomerUpdateResponse as CustomerUpdateResponse, type CustomerDeleteResponse as CustomerDeleteResponse, type CustomerGetKYCLinkResponse as CustomerGetKYCLinkResponse, type CustomerOneovesDefaultPagination as CustomerOneovesDefaultPagination, type CustomerCreateParams as CustomerCreateParams, type CustomerUpdateParams as CustomerUpdateParams, type CustomerListParams as CustomerListParams, type CustomerGetKYCLinkParams as CustomerGetKYCLinkParams, type CustomerListInternalAccountsParams as CustomerListInternalAccountsParams, };
288
+ export { Platform as Platform, type PlatformListInternalAccountsResponse as PlatformListInternalAccountsResponse, type PlatformListInternalAccountsParams as PlatformListInternalAccountsParams, };
289
+ export { Plaid as Plaid, type PlaidCreateLinkTokenResponse as PlaidCreateLinkTokenResponse, type PlaidCreateLinkTokenParams as PlaidCreateLinkTokenParams, type PlaidSubmitPublicTokenParams as PlaidSubmitPublicTokenParams, };
290
+ export { TransferIn as TransferIn, type BaseTransactionDestination as BaseTransactionDestination, type Transaction as Transaction, type TransferInCreateParams as TransferInCreateParams, };
291
+ export { TransferOut as TransferOut, type TransferOutCreateParams as TransferOutCreateParams };
292
+ export { Receiver as Receiver, type CounterpartyFieldDefinition as CounterpartyFieldDefinition, type LookupResponse as LookupResponse, type ReceiverLookupExternalAccountResponse as ReceiverLookupExternalAccountResponse, type ReceiverLookupUmaResponse as ReceiverLookupUmaResponse, type ReceiverLookupExternalAccountParams as ReceiverLookupExternalAccountParams, type ReceiverLookupUmaParams as ReceiverLookupUmaParams, };
293
+ export { Quotes as Quotes, 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, };
294
+ export { Transactions as Transactions, type BaseTransactionSource as BaseTransactionSource, type IncomingTransaction as IncomingTransaction, type TransactionSourceOneOf as TransactionSourceOneOf, type TransactionStatus as TransactionStatus, type TransactionType as TransactionType, type TransactionListParams as TransactionListParams, type TransactionApproveParams as TransactionApproveParams, type TransactionRejectParams as TransactionRejectParams, };
295
+ export { Webhooks as Webhooks, type WebhookSendTestResponse as WebhookSendTestResponse };
296
+ export { Invitations as Invitations, type CurrencyAmount as CurrencyAmount, type UmaInvitation as UmaInvitation, type InvitationCreateParams as InvitationCreateParams, type InvitationClaimParams as InvitationClaimParams, };
297
+ export { Sandbox as Sandbox, type SandboxSendFundsResponse as SandboxSendFundsResponse, type SandboxSendFundsParams as SandboxSendFundsParams, };
298
+ export { UmaProviders as UmaProviders, type UmaProviderListResponse as UmaProviderListResponse, type UmaProviderListResponsesDefaultPagination as UmaProviderListResponsesDefaultPagination, type UmaProviderListParams as UmaProviderListParams, };
299
+ export { Tokens as Tokens, type APIToken as APIToken, type Permission as Permission, type APITokensDefaultPagination as APITokensDefaultPagination, type TokenCreateParams as TokenCreateParams, type TokenListParams as TokenListParams, };
300
+ export { ExchangeRates as ExchangeRates, type ExchangeRateListResponse as ExchangeRateListResponse, type ExchangeRateListParams as ExchangeRateListParams, };
301
+ }
302
+ //# sourceMappingURL=client.d.ts.map