@tryfinch/finch-api 5.0.0 → 5.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (364) hide show
  1. package/CHANGELOG.md +51 -0
  2. package/README.md +61 -21
  3. package/_shims/MultipartBody.d.ts +9 -0
  4. package/_shims/MultipartBody.d.ts.map +1 -0
  5. package/_shims/MultipartBody.js +16 -0
  6. package/_shims/MultipartBody.js.map +1 -0
  7. package/_shims/MultipartBody.mjs +12 -0
  8. package/_shims/MultipartBody.mjs.map +1 -0
  9. package/_shims/README.md +46 -0
  10. package/{src/_shims/ReadableStream.node.ts → _shims/auto/runtime-bun.d.ts} +2 -3
  11. package/_shims/auto/runtime-bun.d.ts.map +1 -0
  12. package/_shims/auto/runtime-bun.js +21 -0
  13. package/_shims/auto/runtime-bun.js.map +1 -0
  14. package/_shims/auto/runtime-bun.mjs +2 -0
  15. package/_shims/auto/runtime-bun.mjs.map +1 -0
  16. package/_shims/auto/runtime-node.d.ts +5 -0
  17. package/_shims/auto/runtime-node.d.ts.map +1 -0
  18. package/_shims/auto/runtime-node.js +21 -0
  19. package/_shims/auto/runtime-node.js.map +1 -0
  20. package/_shims/auto/runtime-node.mjs +2 -0
  21. package/_shims/auto/runtime-node.mjs.map +1 -0
  22. package/_shims/auto/runtime.d.ts +5 -0
  23. package/_shims/auto/runtime.d.ts.map +1 -0
  24. package/_shims/auto/runtime.js +21 -0
  25. package/_shims/auto/runtime.js.map +1 -0
  26. package/_shims/auto/runtime.mjs +2 -0
  27. package/_shims/auto/runtime.mjs.map +1 -0
  28. package/_shims/auto/types-node.d.ts +5 -0
  29. package/_shims/auto/types-node.d.ts.map +1 -0
  30. package/_shims/auto/types-node.js +21 -0
  31. package/_shims/auto/types-node.js.map +1 -0
  32. package/_shims/auto/types-node.mjs +2 -0
  33. package/_shims/auto/types-node.mjs.map +1 -0
  34. package/_shims/auto/types.d.ts +99 -0
  35. package/{src/_shims/ReadableStream.js → _shims/auto/types.js} +0 -2
  36. package/_shims/{ReadableStream.js → auto/types.mjs} +0 -2
  37. package/_shims/bun-runtime.d.ts +6 -0
  38. package/_shims/bun-runtime.d.ts.map +1 -0
  39. package/_shims/bun-runtime.js +14 -0
  40. package/_shims/bun-runtime.js.map +1 -0
  41. package/_shims/bun-runtime.mjs +10 -0
  42. package/_shims/bun-runtime.mjs.map +1 -0
  43. package/_shims/index.d.ts +79 -0
  44. package/_shims/index.js +13 -0
  45. package/_shims/index.mjs +7 -0
  46. package/_shims/manual-types.d.ts +12 -0
  47. package/_shims/manual-types.js +3 -0
  48. package/_shims/manual-types.mjs +3 -0
  49. package/_shims/node-runtime.d.ts +3 -0
  50. package/_shims/node-runtime.d.ts.map +1 -0
  51. package/_shims/node-runtime.js +87 -0
  52. package/_shims/node-runtime.js.map +1 -0
  53. package/_shims/node-runtime.mjs +54 -0
  54. package/_shims/node-runtime.mjs.map +1 -0
  55. package/_shims/node-types.d.ts +42 -0
  56. package/_shims/node-types.js +3 -0
  57. package/_shims/node-types.mjs +3 -0
  58. package/_shims/registry.d.ts +35 -0
  59. package/_shims/registry.d.ts.map +1 -0
  60. package/_shims/registry.js +39 -0
  61. package/_shims/registry.js.map +1 -0
  62. package/_shims/registry.mjs +35 -0
  63. package/_shims/registry.mjs.map +1 -0
  64. package/_shims/web-runtime.d.ts +5 -0
  65. package/_shims/web-runtime.d.ts.map +1 -0
  66. package/_shims/web-runtime.js +70 -0
  67. package/_shims/web-runtime.js.map +1 -0
  68. package/_shims/web-runtime.mjs +63 -0
  69. package/_shims/web-runtime.mjs.map +1 -0
  70. package/_shims/web-types.d.ts +82 -0
  71. package/_shims/web-types.js +3 -0
  72. package/_shims/web-types.mjs +3 -0
  73. package/core.d.ts +171 -223
  74. package/core.d.ts.map +1 -1
  75. package/core.js +674 -728
  76. package/core.js.map +1 -1
  77. package/core.mjs +668 -681
  78. package/core.mjs.map +1 -1
  79. package/error.d.ts +29 -31
  80. package/error.d.ts.map +1 -1
  81. package/error.js +91 -105
  82. package/error.js.map +1 -1
  83. package/error.mjs +88 -90
  84. package/error.mjs.map +1 -1
  85. package/index.d.mts +144 -173
  86. package/index.d.ts +144 -173
  87. package/index.d.ts.map +1 -1
  88. package/index.js +144 -195
  89. package/index.js.map +1 -1
  90. package/index.mjs +122 -143
  91. package/index.mjs.map +1 -1
  92. package/package.json +33 -20
  93. package/pagination.d.ts +47 -167
  94. package/pagination.d.ts.map +1 -1
  95. package/pagination.js +72 -202
  96. package/pagination.js.map +1 -1
  97. package/pagination.mjs +68 -187
  98. package/pagination.mjs.map +1 -1
  99. package/resource.d.ts +10 -10
  100. package/resource.js +12 -12
  101. package/resource.mjs +10 -10
  102. package/resources/account.d.ts +44 -44
  103. package/resources/account.js +20 -19
  104. package/resources/account.mjs +17 -16
  105. package/resources/hris/benefits/benefits.d.ts +127 -154
  106. package/resources/hris/benefits/benefits.js +74 -89
  107. package/resources/hris/benefits/benefits.mjs +50 -48
  108. package/resources/hris/benefits/index.d.ts +3 -28
  109. package/resources/hris/benefits/index.js +13 -55
  110. package/resources/hris/benefits/index.mjs +3 -8
  111. package/resources/hris/benefits/individuals.d.ts +129 -147
  112. package/resources/hris/benefits/individuals.js +59 -59
  113. package/resources/hris/benefits/individuals.mjs +53 -49
  114. package/resources/hris/company.d.ts +80 -80
  115. package/resources/hris/company.js +12 -13
  116. package/resources/hris/company.mjs +9 -8
  117. package/resources/hris/directory.d.ts +53 -55
  118. package/resources/hris/directory.js +13 -12
  119. package/resources/hris/directory.mjs +8 -7
  120. package/resources/hris/employments.d.ts +124 -126
  121. package/resources/hris/employments.js +23 -21
  122. package/resources/hris/employments.mjs +19 -17
  123. package/resources/hris/hris.d.ts +113 -123
  124. package/resources/hris/hris.js +54 -71
  125. package/resources/hris/hris.mjs +32 -32
  126. package/resources/hris/index.d.ts +9 -41
  127. package/resources/hris/index.js +26 -110
  128. package/resources/hris/index.mjs +9 -9
  129. package/resources/hris/individuals.d.ts +65 -67
  130. package/resources/hris/individuals.js +19 -17
  131. package/resources/hris/individuals.mjs +14 -12
  132. package/resources/hris/pay-statements.d.ts +146 -162
  133. package/resources/hris/pay-statements.js +22 -20
  134. package/resources/hris/pay-statements.mjs +18 -16
  135. package/resources/hris/payments.d.ts +47 -49
  136. package/resources/hris/payments.js +15 -13
  137. package/resources/hris/payments.mjs +11 -9
  138. package/resources/index.d.ts +6 -6
  139. package/resources/index.d.ts.map +1 -1
  140. package/resources/index.js +13 -38
  141. package/resources/index.js.map +1 -1
  142. package/resources/index.mjs +5 -5
  143. package/resources/index.mjs.map +1 -1
  144. package/resources/providers.d.ts +43 -42
  145. package/resources/providers.js +15 -13
  146. package/resources/providers.mjs +11 -9
  147. package/resources/top-level.d.ts +1 -1
  148. package/resources/top-level.js +3 -3
  149. package/resources/top-level.mjs +1 -1
  150. package/resources/webhooks.d.ts +22 -0
  151. package/resources/webhooks.d.ts.map +1 -0
  152. package/resources/webhooks.js +114 -0
  153. package/resources/webhooks.js.map +1 -0
  154. package/resources/webhooks.mjs +110 -0
  155. package/resources/webhooks.mjs.map +1 -0
  156. package/shims/node.d.ts +29 -0
  157. package/shims/node.d.ts.map +1 -0
  158. package/shims/node.js +31 -0
  159. package/shims/node.js.map +1 -0
  160. package/shims/node.mjs +5 -0
  161. package/shims/node.mjs.map +1 -0
  162. package/shims/web.d.ts +26 -0
  163. package/shims/web.d.ts.map +1 -0
  164. package/shims/web.js +31 -0
  165. package/shims/web.js.map +1 -0
  166. package/shims/web.mjs +5 -0
  167. package/shims/web.mjs.map +1 -0
  168. package/src/_shims/MultipartBody.ts +9 -0
  169. package/src/_shims/README.md +46 -0
  170. package/src/_shims/auto/runtime-bun.ts +4 -0
  171. package/src/_shims/auto/runtime-node.ts +4 -0
  172. package/src/_shims/auto/runtime.ts +4 -0
  173. package/src/_shims/auto/types-node.ts +4 -0
  174. package/src/_shims/auto/types.d.ts +99 -0
  175. package/src/_shims/auto/types.js +3 -0
  176. package/src/_shims/auto/types.mjs +3 -0
  177. package/src/_shims/bun-runtime.ts +14 -0
  178. package/src/_shims/index.d.ts +79 -0
  179. package/src/_shims/index.js +13 -0
  180. package/src/_shims/index.mjs +7 -0
  181. package/src/_shims/manual-types.d.ts +12 -0
  182. package/src/_shims/manual-types.js +3 -0
  183. package/src/_shims/manual-types.mjs +3 -0
  184. package/src/_shims/node-runtime.ts +79 -0
  185. package/src/_shims/node-types.d.ts +42 -0
  186. package/src/_shims/node-types.js +3 -0
  187. package/src/_shims/node-types.mjs +3 -0
  188. package/src/_shims/registry.ts +64 -0
  189. package/src/_shims/web-runtime.ts +91 -0
  190. package/src/_shims/web-types.d.ts +82 -0
  191. package/src/_shims/web-types.js +3 -0
  192. package/src/_shims/web-types.mjs +3 -0
  193. package/src/core.ts +38 -17
  194. package/src/error.ts +4 -4
  195. package/src/index.ts +12 -21
  196. package/src/pagination.ts +0 -259
  197. package/src/resources/account.ts +2 -2
  198. package/src/resources/hris/benefits/benefits.ts +4 -4
  199. package/src/resources/hris/benefits/individuals.ts +5 -5
  200. package/src/resources/hris/company.ts +3 -3
  201. package/src/resources/hris/directory.ts +4 -4
  202. package/src/resources/hris/employments.ts +4 -4
  203. package/src/resources/hris/hris.ts +1 -1
  204. package/src/resources/hris/individuals.ts +5 -5
  205. package/src/resources/hris/pay-statements.ts +5 -5
  206. package/src/resources/hris/payments.ts +4 -4
  207. package/src/resources/index.ts +1 -1
  208. package/src/resources/providers.ts +3 -3
  209. package/src/resources/webhooks.ts +151 -0
  210. package/src/shims/node.ts +50 -0
  211. package/src/shims/web.ts +50 -0
  212. package/src/tsconfig.json +11 -0
  213. package/src/uploads.ts +11 -15
  214. package/src/version.ts +1 -1
  215. package/uploads.d.ts +23 -39
  216. package/uploads.d.ts.map +1 -1
  217. package/uploads.js +115 -157
  218. package/uploads.js.map +1 -1
  219. package/uploads.mjs +111 -133
  220. package/uploads.mjs.map +1 -1
  221. package/version.d.ts +2 -2
  222. package/version.js +4 -4
  223. package/version.mjs +2 -2
  224. package/_shims/ReadableStream.d.ts +0 -38
  225. package/_shims/ReadableStream.mjs +0 -7
  226. package/_shims/ReadableStream.node.d.ts +0 -6
  227. package/_shims/ReadableStream.node.d.ts.map +0 -1
  228. package/_shims/ReadableStream.node.js +0 -14
  229. package/_shims/ReadableStream.node.js.map +0 -1
  230. package/_shims/ReadableStream.node.mjs +0 -3
  231. package/_shims/ReadableStream.node.mjs.map +0 -1
  232. package/_shims/agent.d.ts +0 -9
  233. package/_shims/agent.d.ts.map +0 -1
  234. package/_shims/agent.js +0 -14
  235. package/_shims/agent.js.map +0 -1
  236. package/_shims/agent.mjs +0 -10
  237. package/_shims/agent.mjs.map +0 -1
  238. package/_shims/agent.node.d.ts +0 -7
  239. package/_shims/agent.node.d.ts.map +0 -1
  240. package/_shims/agent.node.js +0 -28
  241. package/_shims/agent.node.js.map +0 -1
  242. package/_shims/agent.node.mjs +0 -16
  243. package/_shims/agent.node.mjs.map +0 -1
  244. package/_shims/fetch.d.ts +0 -60
  245. package/_shims/fetch.js +0 -13
  246. package/_shims/fetch.mjs +0 -15
  247. package/_shims/fetch.node.d.ts +0 -64
  248. package/_shims/fetch.node.js +0 -12
  249. package/_shims/fetch.node.mjs +0 -14
  250. package/_shims/fileFromPath.d.ts +0 -22
  251. package/_shims/fileFromPath.d.ts.map +0 -1
  252. package/_shims/fileFromPath.js +0 -16
  253. package/_shims/fileFromPath.js.map +0 -1
  254. package/_shims/fileFromPath.mjs +0 -12
  255. package/_shims/fileFromPath.mjs.map +0 -1
  256. package/_shims/fileFromPath.node.d.ts +0 -17
  257. package/_shims/fileFromPath.node.d.ts.map +0 -1
  258. package/_shims/fileFromPath.node.js +0 -17
  259. package/_shims/fileFromPath.node.js.map +0 -1
  260. package/_shims/fileFromPath.node.mjs +0 -13
  261. package/_shims/fileFromPath.node.mjs.map +0 -1
  262. package/_shims/formdata.d.ts +0 -43
  263. package/_shims/formdata.js +0 -17
  264. package/_shims/formdata.mjs +0 -20
  265. package/_shims/formdata.node.d.ts +0 -45
  266. package/_shims/formdata.node.js +0 -11
  267. package/_shims/formdata.node.mjs +0 -9
  268. package/_shims/getMultipartRequestOptions.d.ts +0 -10
  269. package/_shims/getMultipartRequestOptions.d.ts.map +0 -1
  270. package/_shims/getMultipartRequestOptions.js +0 -12
  271. package/_shims/getMultipartRequestOptions.js.map +0 -1
  272. package/_shims/getMultipartRequestOptions.mjs +0 -8
  273. package/_shims/getMultipartRequestOptions.mjs.map +0 -1
  274. package/_shims/getMultipartRequestOptions.node.d.ts +0 -10
  275. package/_shims/getMultipartRequestOptions.node.d.ts.map +0 -1
  276. package/_shims/getMultipartRequestOptions.node.js +0 -22
  277. package/_shims/getMultipartRequestOptions.node.js.map +0 -1
  278. package/_shims/getMultipartRequestOptions.node.mjs +0 -18
  279. package/_shims/getMultipartRequestOptions.node.mjs.map +0 -1
  280. package/_shims/node-readable.d.ts +0 -23
  281. package/_shims/node-readable.d.ts.map +0 -1
  282. package/_shims/node-readable.js +0 -11
  283. package/_shims/node-readable.js.map +0 -1
  284. package/_shims/node-readable.mjs +0 -7
  285. package/_shims/node-readable.mjs.map +0 -1
  286. package/_shims/node-readable.node.d.ts +0 -8
  287. package/_shims/node-readable.node.d.ts.map +0 -1
  288. package/_shims/node-readable.node.js +0 -9
  289. package/_shims/node-readable.node.js.map +0 -1
  290. package/_shims/node-readable.node.mjs +0 -5
  291. package/_shims/node-readable.node.mjs.map +0 -1
  292. package/resources/ats/applications.d.ts +0 -39
  293. package/resources/ats/applications.d.ts.map +0 -1
  294. package/resources/ats/applications.js +0 -24
  295. package/resources/ats/applications.js.map +0 -1
  296. package/resources/ats/applications.mjs +0 -20
  297. package/resources/ats/applications.mjs.map +0 -1
  298. package/resources/ats/ats.d.ts +0 -32
  299. package/resources/ats/ats.d.ts.map +0 -1
  300. package/resources/ats/ats.js +0 -71
  301. package/resources/ats/ats.js.map +0 -1
  302. package/resources/ats/ats.mjs +0 -27
  303. package/resources/ats/ats.mjs.map +0 -1
  304. package/resources/ats/candidates.d.ts +0 -53
  305. package/resources/ats/candidates.d.ts.map +0 -1
  306. package/resources/ats/candidates.js +0 -25
  307. package/resources/ats/candidates.js.map +0 -1
  308. package/resources/ats/candidates.mjs +0 -21
  309. package/resources/ats/candidates.mjs.map +0 -1
  310. package/resources/ats/index.d.ts +0 -7
  311. package/resources/ats/index.d.ts.map +0 -1
  312. package/resources/ats/index.js +0 -60
  313. package/resources/ats/index.js.map +0 -1
  314. package/resources/ats/index.mjs +0 -8
  315. package/resources/ats/index.mjs.map +0 -1
  316. package/resources/ats/jobs.d.ts +0 -47
  317. package/resources/ats/jobs.d.ts.map +0 -1
  318. package/resources/ats/jobs.js +0 -24
  319. package/resources/ats/jobs.js.map +0 -1
  320. package/resources/ats/jobs.mjs +0 -20
  321. package/resources/ats/jobs.mjs.map +0 -1
  322. package/resources/ats/offers.d.ts +0 -39
  323. package/resources/ats/offers.d.ts.map +0 -1
  324. package/resources/ats/offers.js +0 -24
  325. package/resources/ats/offers.js.map +0 -1
  326. package/resources/ats/offers.mjs +0 -20
  327. package/resources/ats/offers.mjs.map +0 -1
  328. package/resources/ats/stages.d.ts +0 -30
  329. package/resources/ats/stages.d.ts.map +0 -1
  330. package/resources/ats/stages.js +0 -22
  331. package/resources/ats/stages.js.map +0 -1
  332. package/resources/ats/stages.mjs +0 -17
  333. package/resources/ats/stages.mjs.map +0 -1
  334. package/src/_shims/ReadableStream.d.ts +0 -38
  335. package/src/_shims/ReadableStream.mjs +0 -7
  336. package/src/_shims/agent.node.ts +0 -22
  337. package/src/_shims/agent.ts +0 -12
  338. package/src/_shims/fetch.d.ts +0 -60
  339. package/src/_shims/fetch.deno.ts +0 -23
  340. package/src/_shims/fetch.js +0 -13
  341. package/src/_shims/fetch.mjs +0 -15
  342. package/src/_shims/fetch.node.d.ts +0 -64
  343. package/src/_shims/fetch.node.js +0 -12
  344. package/src/_shims/fetch.node.mjs +0 -14
  345. package/src/_shims/fileFromPath.node.ts +0 -29
  346. package/src/_shims/fileFromPath.ts +0 -29
  347. package/src/_shims/formdata.d.ts +0 -43
  348. package/src/_shims/formdata.deno.ts +0 -16
  349. package/src/_shims/formdata.js +0 -17
  350. package/src/_shims/formdata.mjs +0 -20
  351. package/src/_shims/formdata.node.d.ts +0 -45
  352. package/src/_shims/formdata.node.js +0 -11
  353. package/src/_shims/formdata.node.mjs +0 -9
  354. package/src/_shims/getMultipartRequestOptions.node.ts +0 -25
  355. package/src/_shims/getMultipartRequestOptions.ts +0 -14
  356. package/src/_shims/node-readable.node.ts +0 -10
  357. package/src/_shims/node-readable.ts +0 -30
  358. package/src/resources/ats/applications.ts +0 -64
  359. package/src/resources/ats/ats.ts +0 -39
  360. package/src/resources/ats/candidates.ts +0 -83
  361. package/src/resources/ats/index.ts +0 -8
  362. package/src/resources/ats/jobs.ts +0 -76
  363. package/src/resources/ats/offers.ts +0 -63
  364. package/src/resources/ats/stages.ts +0 -39
@@ -1,8 +1,8 @@
1
1
  // File generated from our OpenAPI spec by Stainless.
2
2
 
3
- import * as Core from '../../core';
4
- import { APIResource } from '../../resource';
5
- import * as HRIS from './index';
3
+ import * as Core from "../../ch/finch-api/core";
4
+ import { APIResource } from "../../ch/finch-api/resource";
5
+ import * as HRIS from "../../ch/finch-api/resources/hris/index";
6
6
  import * as API from './index';
7
7
 
8
8
  export class CompanyResource extends APIResource {
@@ -1,10 +1,10 @@
1
1
  // File generated from our OpenAPI spec by Stainless.
2
2
 
3
- import * as Core from '../../core';
4
- import { APIResource } from '../../resource';
5
- import { isRequestOptions } from '../../core';
3
+ import * as Core from "../../ch/finch-api/core";
4
+ import { APIResource } from "../../ch/finch-api/resource";
5
+ import { isRequestOptions } from "../../ch/finch-api/core";
6
6
  import * as API from './index';
7
- import { IndividualsPage, IndividualsPageParams } from '../../pagination';
7
+ import { IndividualsPage, IndividualsPageParams } from "../../ch/finch-api/pagination";
8
8
 
9
9
  export class Directory extends APIResource {
10
10
  /**
@@ -1,10 +1,10 @@
1
1
  // File generated from our OpenAPI spec by Stainless.
2
2
 
3
- import * as Core from '../../core';
4
- import { APIResource } from '../../resource';
5
- import * as HRIS from './index';
3
+ import * as Core from "../../ch/finch-api/core";
4
+ import { APIResource } from "../../ch/finch-api/resource";
5
+ import * as HRIS from "../../ch/finch-api/resources/hris/index";
6
6
  import * as API from './index';
7
- import { ResponsesPage } from '../../pagination';
7
+ import { ResponsesPage } from "../../ch/finch-api/pagination";
8
8
 
9
9
  export class Employments extends APIResource {
10
10
  /**
@@ -1,6 +1,6 @@
1
1
  // File generated from our OpenAPI spec by Stainless.
2
2
 
3
- import { APIResource } from '../../resource';
3
+ import { APIResource } from "../../ch/finch-api/resource";
4
4
  import { CompanyResource } from './company';
5
5
  import { Directory } from './directory';
6
6
  import { Individuals } from './individuals';
@@ -1,11 +1,11 @@
1
1
  // File generated from our OpenAPI spec by Stainless.
2
2
 
3
- import * as Core from '../../core';
4
- import { APIResource } from '../../resource';
5
- import { isRequestOptions } from '../../core';
6
- import * as HRIS from './index';
3
+ import * as Core from "../../ch/finch-api/core";
4
+ import { APIResource } from "../../ch/finch-api/resource";
5
+ import { isRequestOptions } from "../../ch/finch-api/core";
6
+ import * as HRIS from "../../ch/finch-api/resources/hris/index";
7
7
  import * as API from './index';
8
- import { ResponsesPage } from '../../pagination';
8
+ import { ResponsesPage } from "../../ch/finch-api/pagination";
9
9
 
10
10
  export class Individuals extends APIResource {
11
11
  /**
@@ -1,11 +1,11 @@
1
1
  // File generated from our OpenAPI spec by Stainless.
2
2
 
3
- import * as Core from '../../core';
4
- import { APIResource } from '../../resource';
5
- import * as HRIS from './index';
6
- import * as Benefits from './benefits/index';
3
+ import * as Core from "../../ch/finch-api/core";
4
+ import { APIResource } from "../../ch/finch-api/resource";
5
+ import * as HRIS from "../../ch/finch-api/resources/hris/index";
6
+ import * as Benefits from "../../ch/finch-api/resources/hris/benefits/index";
7
7
  import * as API from './index';
8
- import { ResponsesPage } from '../../pagination';
8
+ import { ResponsesPage } from "../../ch/finch-api/pagination";
9
9
 
10
10
  export class PayStatements extends APIResource {
11
11
  /**
@@ -1,10 +1,10 @@
1
1
  // File generated from our OpenAPI spec by Stainless.
2
2
 
3
- import * as Core from '../../core';
4
- import { APIResource } from '../../resource';
5
- import * as HRIS from './index';
3
+ import * as Core from "../../ch/finch-api/core";
4
+ import { APIResource } from "../../ch/finch-api/resource";
5
+ import * as HRIS from "../../ch/finch-api/resources/hris/index";
6
6
  import * as API from './index';
7
- import { SinglePage } from '../../pagination';
7
+ import { SinglePage } from "../../ch/finch-api/pagination";
8
8
 
9
9
  export class Payments extends APIResource {
10
10
  /**
@@ -1,7 +1,7 @@
1
1
  // File generated from our OpenAPI spec by Stainless.
2
2
 
3
3
  export {} from './top-level';
4
- export { ATS } from './ats/ats';
5
4
  export { DisconnectResponse, Introspection, Account } from './account';
6
5
  export { Income, Location, Money, Paging, HRIS } from './hris/hris';
7
6
  export { Provider, ProvidersSinglePage, Providers } from './providers';
7
+ export { Webhooks } from './webhooks';
@@ -1,9 +1,9 @@
1
1
  // File generated from our OpenAPI spec by Stainless.
2
2
 
3
- import * as Core from '../core';
4
- import { APIResource } from '../resource';
3
+ import * as Core from "../ch/finch-api/core";
4
+ import { APIResource } from "../ch/finch-api/resource";
5
5
  import * as API from './index';
6
- import { SinglePage } from '../pagination';
6
+ import { SinglePage } from "../ch/finch-api/pagination";
7
7
 
8
8
  export class Providers extends APIResource {
9
9
  /**
@@ -0,0 +1,151 @@
1
+ // File generated from our OpenAPI spec by Stainless.
2
+
3
+ import { APIResource } from "../ch/finch-api/resource";
4
+ import { createHmac } from 'crypto';
5
+ import { getHeader, HeadersLike } from "../ch/finch-api/core";
6
+
7
+ export class Webhooks extends APIResource {
8
+ /**
9
+ * Validates that the given payload was sent by Finch and parses the payload.
10
+ */
11
+ unwrap(
12
+ payload: string,
13
+ headers: HeadersLike,
14
+ secret: string | undefined | null = this.client.webhookSecret,
15
+ ): Object {
16
+ this.verifySignature(payload, headers, secret);
17
+ return JSON.parse(payload);
18
+ }
19
+
20
+ private parseSecret(secret: string | null | undefined): Uint8Array {
21
+ if (!secret) {
22
+ throw new Error(
23
+ "The webhook secret must either be set using the env var, FINCH_WEBHOOK_SECRET, on the client class, Finch({ webhook_secret: '123' }), or passed to this function",
24
+ );
25
+ }
26
+
27
+ const buf = Buffer.from(secret, 'base64');
28
+ if (buf.toString('base64') !== secret) {
29
+ throw new Error(`Given secret is not valid`);
30
+ }
31
+
32
+ return new Uint8Array(buf);
33
+ }
34
+
35
+ private signPayload(
36
+ payload: string,
37
+ { eventId, timestamp, secret }: { eventId: string; timestamp: Date; secret: Uint8Array },
38
+ ) {
39
+ const encoder = new TextEncoder();
40
+ const toSign = encoder.encode(`${eventId}.${timestamp.getTime() / 1000}.${payload}`);
41
+
42
+ const hmac = createHmac('sha256', secret);
43
+ hmac.update(toSign);
44
+
45
+ return `v1,${hmac.digest('base64')}`;
46
+ }
47
+
48
+ /** Make an assertion, if not `true`, then throw. */
49
+ private assert(expr: unknown, msg = ''): asserts expr {
50
+ if (!expr) {
51
+ throw new Error(msg);
52
+ }
53
+ }
54
+
55
+ /** Compare to array buffers or data views in a way that timing based attacks
56
+ * cannot gain information about the platform. */
57
+ private timingSafeEqual(
58
+ a: ArrayBufferView | ArrayBufferLike | DataView,
59
+ b: ArrayBufferView | ArrayBufferLike | DataView,
60
+ ): boolean {
61
+ if (a.byteLength !== b.byteLength) {
62
+ return false;
63
+ }
64
+ if (!(a instanceof DataView)) {
65
+ a = new DataView(ArrayBuffer.isView(a) ? a.buffer : a);
66
+ }
67
+ if (!(b instanceof DataView)) {
68
+ b = new DataView(ArrayBuffer.isView(b) ? b.buffer : b);
69
+ }
70
+ this.assert(a instanceof DataView);
71
+ this.assert(b instanceof DataView);
72
+ const length = a.byteLength;
73
+ let out = 0;
74
+ let i = -1;
75
+ while (++i < length) {
76
+ out |= a.getUint8(i) ^ b.getUint8(i);
77
+ }
78
+ return out === 0;
79
+ }
80
+
81
+ /**
82
+ * Validates whether or not the webhook payload was sent by Finch.
83
+ *
84
+ * An error will be raised if the webhook payload was not sent by Finch.
85
+ */
86
+ verifySignature(
87
+ body: string,
88
+ headers: HeadersLike,
89
+ secret: string | undefined | null = this.client.webhookSecret,
90
+ ): void {
91
+ const parsedSecret = this.parseSecret(secret);
92
+
93
+ const eventId = getHeader(headers, 'finch-event-id');
94
+ if (!eventId) {
95
+ throw new Error('Could not find finch-event-id header');
96
+ }
97
+
98
+ const msgTimestamp = getHeader(headers, 'finch-timestamp');
99
+ if (!msgTimestamp) {
100
+ throw new Error('Could not find finch-timestamp header');
101
+ }
102
+
103
+ const msgSignature = getHeader(headers, 'finch-signature');
104
+ if (!msgSignature) {
105
+ throw new Error('Could not find finch-signature header');
106
+ }
107
+
108
+ const now = Math.floor(Date.now() / 1000);
109
+ const timestampSeconds = parseInt(msgTimestamp, 10);
110
+ if (isNaN(timestampSeconds)) {
111
+ throw new Error(`Invalid timestamp header: ${msgTimestamp}`);
112
+ }
113
+
114
+ if (typeof body !== 'string') {
115
+ throw new Error(
116
+ 'Webhook body must be passed as the raw JSON string sent from the server (do not parse it first).',
117
+ );
118
+ }
119
+
120
+ const webhook_tolerance_in_seconds = 5 * 60; // 5 minutes
121
+ if (now - timestampSeconds > webhook_tolerance_in_seconds) {
122
+ throw new Error('Webhook timestamp is too old');
123
+ }
124
+
125
+ if (timestampSeconds > now + webhook_tolerance_in_seconds) {
126
+ throw new Error('Webhook timestamp is too new');
127
+ }
128
+
129
+ const timestamp = new Date(timestampSeconds * 1000);
130
+
131
+ const computedSignature = this.signPayload(body, { eventId, timestamp, secret: parsedSecret });
132
+ const expectedSignature = computedSignature.split(',')[1];
133
+
134
+ const passedSignatures = msgSignature.split(' ');
135
+
136
+ const encoder = new globalThis.TextEncoder();
137
+ for (const versionedSignature of passedSignatures) {
138
+ const [version, signature] = versionedSignature.split(',');
139
+ if (version !== 'v1') {
140
+ continue;
141
+ }
142
+
143
+ if (this.timingSafeEqual(encoder.encode(signature), encoder.encode(expectedSignature))) {
144
+ // valid!
145
+ return;
146
+ }
147
+ }
148
+
149
+ throw new Error('None of the given webhook signatures match the expected signature');
150
+ }
151
+ }
@@ -0,0 +1,50 @@
1
+ // @ts-ignore
2
+ import * as types from '../_shims/node-types';
3
+ import { setShims } from '../_shims/registry';
4
+ import { getRuntime } from '../_shims/node-runtime';
5
+ setShims(getRuntime());
6
+
7
+ declare module '../_shims/manual-types' {
8
+ export namespace manual {
9
+ // @ts-ignore
10
+ export type Agent = types.Agent;
11
+ // @ts-ignore
12
+ export import fetch = types.fetch;
13
+ // @ts-ignore
14
+ export type Request = types.Request;
15
+ // @ts-ignore
16
+ export type RequestInfo = types.RequestInfo;
17
+ // @ts-ignore
18
+ export type RequestInit = types.RequestInit;
19
+ // @ts-ignore
20
+ export type Response = types.Response;
21
+ // @ts-ignore
22
+ export type ResponseInit = types.ResponseInit;
23
+ // @ts-ignore
24
+ export type ResponseType = types.ResponseType;
25
+ // @ts-ignore
26
+ export type BodyInit = types.BodyInit;
27
+ // @ts-ignore
28
+ export type Headers = types.Headers;
29
+ // @ts-ignore
30
+ export type HeadersInit = types.HeadersInit;
31
+ // @ts-ignore
32
+ export type BlobPropertyBag = types.BlobPropertyBag;
33
+ // @ts-ignore
34
+ export type FilePropertyBag = types.FilePropertyBag;
35
+ // @ts-ignore
36
+ export type FileFromPathOptions = types.FileFromPathOptions;
37
+ // @ts-ignore
38
+ export import FormData = types.FormData;
39
+ // @ts-ignore
40
+ export import File = types.File;
41
+ // @ts-ignore
42
+ export import Blob = types.Blob;
43
+ // @ts-ignore
44
+ export type Readable = types.Readable;
45
+ // @ts-ignore
46
+ export type FsReadStream = types.FsReadStream;
47
+ // @ts-ignore
48
+ export type ReadableStream = types.ReadableStream;
49
+ }
50
+ }
@@ -0,0 +1,50 @@
1
+ // @ts-ignore
2
+ import * as types from '../_shims/web-types';
3
+ import { setShims } from '../_shims/registry';
4
+ import { getRuntime } from '../_shims/web-runtime';
5
+ setShims(getRuntime({ manuallyImported: true }));
6
+
7
+ declare module '../_shims/manual-types' {
8
+ export namespace manual {
9
+ // @ts-ignore
10
+ export type Agent = types.Agent;
11
+ // @ts-ignore
12
+ export import fetch = types.fetch;
13
+ // @ts-ignore
14
+ export type Request = types.Request;
15
+ // @ts-ignore
16
+ export type RequestInfo = types.RequestInfo;
17
+ // @ts-ignore
18
+ export type RequestInit = types.RequestInit;
19
+ // @ts-ignore
20
+ export type Response = types.Response;
21
+ // @ts-ignore
22
+ export type ResponseInit = types.ResponseInit;
23
+ // @ts-ignore
24
+ export type ResponseType = types.ResponseType;
25
+ // @ts-ignore
26
+ export type BodyInit = types.BodyInit;
27
+ // @ts-ignore
28
+ export type Headers = types.Headers;
29
+ // @ts-ignore
30
+ export type HeadersInit = types.HeadersInit;
31
+ // @ts-ignore
32
+ export type BlobPropertyBag = types.BlobPropertyBag;
33
+ // @ts-ignore
34
+ export type FilePropertyBag = types.FilePropertyBag;
35
+ // @ts-ignore
36
+ export type FileFromPathOptions = types.FileFromPathOptions;
37
+ // @ts-ignore
38
+ export import FormData = types.FormData;
39
+ // @ts-ignore
40
+ export import File = types.File;
41
+ // @ts-ignore
42
+ export import Blob = types.Blob;
43
+ // @ts-ignore
44
+ export type Readable = types.Readable;
45
+ // @ts-ignore
46
+ export type FsReadStream = types.FsReadStream;
47
+ // @ts-ignore
48
+ export type ReadableStream = types.ReadableStream;
49
+ }
50
+ }
@@ -0,0 +1,11 @@
1
+ {
2
+ // this config is included in the published src directory to prevent TS errors
3
+ // from appearing when users go to source, and VSCode opens the source .ts file
4
+ // via declaration maps
5
+ "include": ["index.ts"],
6
+ "compilerOptions": {
7
+ "target": "es2015",
8
+ "lib": ["DOM"],
9
+ "moduleResolution": "node"
10
+ }
11
+ }
package/src/uploads.ts CHANGED
@@ -1,12 +1,15 @@
1
1
  import { type RequestOptions } from './core';
2
- import { type Readable } from './_shims/node-readable';
3
- import { type BodyInit } from './_shims/fetch.js';
4
- import { FormData, File, type Blob, type FilePropertyBag } from './_shims/formdata.js';
5
- import { getMultipartRequestOptions } from './_shims/getMultipartRequestOptions';
6
- import { fileFromPath } from './_shims/fileFromPath';
7
- import { type FsReadStream, isFsReadStream } from './_shims/node-readable';
8
-
9
- export { fileFromPath };
2
+ import {
3
+ FormData,
4
+ File,
5
+ type Blob,
6
+ type FilePropertyBag,
7
+ getMultipartRequestOptions,
8
+ type FsReadStream,
9
+ isFsReadStream,
10
+ } from './_shims/index';
11
+ import { MultipartBody } from './_shims/MultipartBody';
12
+ export { fileFromPath } from './_shims/index';
10
13
 
11
14
  type BlobLikePart = string | ArrayBuffer | ArrayBufferView | BlobLike | Uint8Array | DataView;
12
15
  export type BlobPart = string | ArrayBuffer | ArrayBufferView | Blob | Uint8Array | DataView;
@@ -175,13 +178,6 @@ const getStringFromMaybeBuffer = (x: string | Buffer | unknown): string | undefi
175
178
  const isAsyncIterableIterator = (value: any): value is AsyncIterableIterator<unknown> =>
176
179
  value != null && typeof value === 'object' && typeof value[Symbol.asyncIterator] === 'function';
177
180
 
178
- export class MultipartBody {
179
- constructor(public body: Readable | BodyInit) {}
180
- get [Symbol.toStringTag](): string {
181
- return 'MultipartBody';
182
- }
183
- }
184
-
185
181
  export const isMultipartBody = (body: any): body is MultipartBody =>
186
182
  body && typeof body === 'object' && body.body && body[Symbol.toStringTag] === 'MultipartBody';
187
183
 
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '5.0.0'; // x-release-please-version
1
+ export const VERSION = '5.2.0'; // x-release-please-version
package/uploads.d.ts CHANGED
@@ -1,10 +1,7 @@
1
- import { type RequestOptions } from './core.js';
2
- import { type Readable } from '@tryfinch/finch-api/_shims/node-readable';
3
- import { type BodyInit } from '@tryfinch/finch-api/_shims/fetch';
4
- import { FormData, type Blob, type FilePropertyBag } from '@tryfinch/finch-api/_shims/formdata';
5
- import { fileFromPath } from '@tryfinch/finch-api/_shims/fileFromPath';
6
- import { type FsReadStream } from '@tryfinch/finch-api/_shims/node-readable';
7
- export { fileFromPath };
1
+ import { type RequestOptions } from "./core.js";
2
+ import { FormData, type Blob, type FilePropertyBag, type FsReadStream } from "./_shims/index.js";
3
+ import { MultipartBody } from "./_shims/MultipartBody.js";
4
+ export { fileFromPath } from "./_shims/index.js";
8
5
  type BlobLikePart = string | ArrayBuffer | ArrayBufferView | BlobLike | Uint8Array | DataView;
9
6
  export type BlobPart = string | ArrayBuffer | ArrayBufferView | Blob | Uint8Array | DataView;
10
7
  /**
@@ -21,30 +18,30 @@ export type Uploadable = FileLike | ResponseLike | FsReadStream;
21
18
  * Intended to match web.Blob, node.Blob, node-fetch.Blob, etc.
22
19
  */
23
20
  export interface BlobLike {
24
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/size) */
25
- readonly size: number;
26
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/type) */
27
- readonly type: string;
28
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/text) */
29
- text(): Promise<string>;
30
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/slice) */
31
- slice(start?: number, end?: number): BlobLike;
21
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/size) */
22
+ readonly size: number;
23
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/type) */
24
+ readonly type: string;
25
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/text) */
26
+ text(): Promise<string>;
27
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/slice) */
28
+ slice(start?: number, end?: number): BlobLike;
32
29
  }
33
30
  /**
34
31
  * Intended to match web.File, node.File, node-fetch.File, etc.
35
32
  */
36
33
  export interface FileLike extends BlobLike {
37
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/lastModified) */
38
- readonly lastModified: number;
39
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/name) */
40
- readonly name: string;
34
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/lastModified) */
35
+ readonly lastModified: number;
36
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/name) */
37
+ readonly name: string;
41
38
  }
42
39
  /**
43
40
  * Intended to match web.Response, node.Response, node-fetch.Response, etc.
44
41
  */
45
42
  export interface ResponseLike {
46
- url: string;
47
- blob(): Promise<BlobLike>;
43
+ url: string;
44
+ blob(): Promise<BlobLike>;
48
45
  }
49
46
  export declare const isResponseLike: (value: any) => value is ResponseLike;
50
47
  export declare const isFileLike: (value: any) => value is FileLike;
@@ -53,7 +50,7 @@ export declare const isFileLike: (value: any) => value is FileLike;
53
50
  * adds the arrayBuffer() method type because it is available and used at runtime
54
51
  */
55
52
  export declare const isBlobLike: (value: any) => value is BlobLike & {
56
- arrayBuffer(): Promise<ArrayBuffer>;
53
+ arrayBuffer(): Promise<ArrayBuffer>;
57
54
  };
58
55
  export declare const isUploadable: (value: any) => value is Uploadable;
59
56
  export type ToFileInput = Uploadable | Exclude<BlobLikePart, string> | AsyncIterable<BlobLikePart>;
@@ -66,26 +63,13 @@ export type ToFileInput = Uploadable | Exclude<BlobLikePart, string> | AsyncIter
66
63
  * @param {number=} options.lastModified the last modified timestamp
67
64
  * @returns a {@link File} with the given properties
68
65
  */
69
- export declare function toFile(
70
- value: ToFileInput | PromiseLike<ToFileInput>,
71
- name?: string | null | undefined,
72
- options?: FilePropertyBag | undefined,
73
- ): Promise<FileLike>;
74
- export declare class MultipartBody {
75
- body: Readable | BodyInit;
76
- constructor(body: Readable | BodyInit);
77
- get [Symbol.toStringTag](): string;
78
- }
66
+ export declare function toFile(value: ToFileInput | PromiseLike<ToFileInput>, name?: string | null | undefined, options?: FilePropertyBag | undefined): Promise<FileLike>;
79
67
  export declare const isMultipartBody: (body: any) => body is MultipartBody;
80
68
  /**
81
69
  * Returns a multipart/form-data request if any part of the given request body contains a File / Blob value.
82
70
  * Otherwise returns the request as is.
83
71
  */
84
- export declare const maybeMultipartFormRequestOptions: <T extends {} = Record<string, unknown>>(
85
- opts: RequestOptions<T>,
86
- ) => Promise<RequestOptions<MultipartBody | T>>;
87
- export declare const multipartFormRequestOptions: <T extends {} = Record<string, unknown>>(
88
- opts: RequestOptions<T>,
89
- ) => Promise<RequestOptions<MultipartBody | T>>;
72
+ export declare const maybeMultipartFormRequestOptions: <T extends {} = Record<string, unknown>>(opts: RequestOptions<T>) => Promise<RequestOptions<MultipartBody | T>>;
73
+ export declare const multipartFormRequestOptions: <T extends {} = Record<string, unknown>>(opts: RequestOptions<T>) => Promise<RequestOptions<MultipartBody | T>>;
90
74
  export declare const createForm: <T = Record<string, unknown>>(body: T | undefined) => Promise<FormData>;
91
- //# sourceMappingURL=uploads.d.ts.map
75
+ //# sourceMappingURL=uploads.d.ts.map
package/uploads.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"uploads.d.ts","sourceRoot":"","sources":["src/uploads.ts"],"names":[],"mappings":";;AAAA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,QAAQ,CAAC;AAC7C,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,0CAA0C,CAAC;AACzE,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AACjE,OAAO,EAAE,QAAQ,EAAQ,KAAK,IAAI,EAAE,KAAK,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAEtG,OAAO,EAAE,YAAY,EAAE,MAAM,yCAAyC,CAAC;AACvE,OAAO,EAAE,KAAK,YAAY,EAAkB,MAAM,0CAA0C,CAAC;AAE7F,OAAO,EAAE,YAAY,EAAE,CAAC;AAExB,KAAK,YAAY,GAAG,MAAM,GAAG,WAAW,GAAG,eAAe,GAAG,QAAQ,GAAG,UAAU,GAAG,QAAQ,CAAC;AAC9F,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG,WAAW,GAAG,eAAe,GAAG,IAAI,GAAG,UAAU,GAAG,QAAQ,CAAC;AAE7F;;;;;;;;GAQG;AACH,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,YAAY,GAAG,YAAY,CAAC;AAEhE;;GAEG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