@tryfinch/finch-api 5.20.0 → 5.20.2

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 (235) hide show
  1. package/CHANGELOG.md +45 -0
  2. package/README.md +53 -11
  3. package/core.d.ts.map +1 -1
  4. package/core.js +2 -2
  5. package/core.js.map +1 -1
  6. package/core.mjs +2 -2
  7. package/core.mjs.map +1 -1
  8. package/error.js +1 -1
  9. package/error.js.map +1 -1
  10. package/error.mjs +1 -1
  11. package/error.mjs.map +1 -1
  12. package/index.d.mts +1 -2
  13. package/index.d.ts +1 -2
  14. package/index.d.ts.map +1 -1
  15. package/index.js +2 -6
  16. package/index.js.map +1 -1
  17. package/index.mjs +2 -6
  18. package/index.mjs.map +1 -1
  19. package/package.json +2 -3
  20. package/pagination.js +1 -1
  21. package/pagination.js.map +1 -1
  22. package/pagination.mjs +1 -1
  23. package/pagination.mjs.map +1 -1
  24. package/resource.js +1 -1
  25. package/resource.js.map +1 -1
  26. package/resource.mjs +1 -1
  27. package/resource.mjs.map +1 -1
  28. package/resources/access-tokens.js +1 -1
  29. package/resources/access-tokens.js.map +1 -1
  30. package/resources/access-tokens.mjs +1 -1
  31. package/resources/access-tokens.mjs.map +1 -1
  32. package/resources/account.d.ts +1 -3
  33. package/resources/account.d.ts.map +1 -1
  34. package/resources/account.js +2 -4
  35. package/resources/account.js.map +1 -1
  36. package/resources/account.mjs +2 -4
  37. package/resources/account.mjs.map +1 -1
  38. package/resources/hris/benefits/benefits.d.ts +6 -17
  39. package/resources/hris/benefits/benefits.d.ts.map +1 -1
  40. package/resources/hris/benefits/benefits.js +4 -11
  41. package/resources/hris/benefits/benefits.js.map +1 -1
  42. package/resources/hris/benefits/benefits.mjs +4 -11
  43. package/resources/hris/benefits/benefits.mjs.map +1 -1
  44. package/resources/hris/benefits/index.js +1 -1
  45. package/resources/hris/benefits/index.js.map +1 -1
  46. package/resources/hris/benefits/index.mjs +1 -1
  47. package/resources/hris/benefits/index.mjs.map +1 -1
  48. package/resources/hris/benefits/individuals.d.ts +7 -19
  49. package/resources/hris/benefits/individuals.d.ts.map +1 -1
  50. package/resources/hris/benefits/individuals.js +6 -14
  51. package/resources/hris/benefits/individuals.js.map +1 -1
  52. package/resources/hris/benefits/individuals.mjs +6 -14
  53. package/resources/hris/benefits/individuals.mjs.map +1 -1
  54. package/resources/hris/company.js +1 -1
  55. package/resources/hris/company.js.map +1 -1
  56. package/resources/hris/company.mjs +1 -1
  57. package/resources/hris/company.mjs.map +1 -1
  58. package/resources/hris/directory.js +1 -1
  59. package/resources/hris/directory.js.map +1 -1
  60. package/resources/hris/directory.mjs +1 -1
  61. package/resources/hris/directory.mjs.map +1 -1
  62. package/resources/hris/employments.d.ts +1 -16
  63. package/resources/hris/employments.d.ts.map +1 -1
  64. package/resources/hris/employments.js +1 -5
  65. package/resources/hris/employments.js.map +1 -1
  66. package/resources/hris/employments.mjs +1 -5
  67. package/resources/hris/employments.mjs.map +1 -1
  68. package/resources/hris/hris.js +1 -1
  69. package/resources/hris/hris.js.map +1 -1
  70. package/resources/hris/hris.mjs +1 -1
  71. package/resources/hris/hris.mjs.map +1 -1
  72. package/resources/hris/index.js +1 -1
  73. package/resources/hris/index.js.map +1 -1
  74. package/resources/hris/index.mjs +1 -1
  75. package/resources/hris/index.mjs.map +1 -1
  76. package/resources/hris/individuals.d.ts +6 -4
  77. package/resources/hris/individuals.d.ts.map +1 -1
  78. package/resources/hris/individuals.js +1 -1
  79. package/resources/hris/individuals.js.map +1 -1
  80. package/resources/hris/individuals.mjs +1 -1
  81. package/resources/hris/individuals.mjs.map +1 -1
  82. package/resources/hris/pay-statements.d.ts +1 -1
  83. package/resources/hris/pay-statements.js +2 -2
  84. package/resources/hris/pay-statements.js.map +1 -1
  85. package/resources/hris/pay-statements.mjs +2 -2
  86. package/resources/hris/pay-statements.mjs.map +1 -1
  87. package/resources/hris/payments.js +1 -1
  88. package/resources/hris/payments.js.map +1 -1
  89. package/resources/hris/payments.mjs +1 -1
  90. package/resources/hris/payments.mjs.map +1 -1
  91. package/resources/index.js +1 -1
  92. package/resources/index.js.map +1 -1
  93. package/resources/index.mjs +1 -1
  94. package/resources/index.mjs.map +1 -1
  95. package/resources/jobs/automated.js +1 -1
  96. package/resources/jobs/automated.js.map +1 -1
  97. package/resources/jobs/automated.mjs +1 -1
  98. package/resources/jobs/automated.mjs.map +1 -1
  99. package/resources/jobs/index.js +1 -1
  100. package/resources/jobs/index.js.map +1 -1
  101. package/resources/jobs/index.mjs +1 -1
  102. package/resources/jobs/index.mjs.map +1 -1
  103. package/resources/jobs/jobs.js +1 -1
  104. package/resources/jobs/jobs.js.map +1 -1
  105. package/resources/jobs/jobs.mjs +1 -1
  106. package/resources/jobs/jobs.mjs.map +1 -1
  107. package/resources/jobs/manual.js +1 -1
  108. package/resources/jobs/manual.js.map +1 -1
  109. package/resources/jobs/manual.mjs +1 -1
  110. package/resources/jobs/manual.mjs.map +1 -1
  111. package/resources/providers.d.ts +2 -2
  112. package/resources/providers.js +1 -1
  113. package/resources/providers.js.map +1 -1
  114. package/resources/providers.mjs +1 -1
  115. package/resources/providers.mjs.map +1 -1
  116. package/resources/request-forwarding.js +1 -1
  117. package/resources/request-forwarding.js.map +1 -1
  118. package/resources/request-forwarding.mjs +1 -1
  119. package/resources/request-forwarding.mjs.map +1 -1
  120. package/resources/sandbox/company.js +1 -1
  121. package/resources/sandbox/company.js.map +1 -1
  122. package/resources/sandbox/company.mjs +1 -1
  123. package/resources/sandbox/company.mjs.map +1 -1
  124. package/resources/sandbox/connections/accounts.js +1 -1
  125. package/resources/sandbox/connections/accounts.js.map +1 -1
  126. package/resources/sandbox/connections/accounts.mjs +1 -1
  127. package/resources/sandbox/connections/accounts.mjs.map +1 -1
  128. package/resources/sandbox/connections/connections.js +1 -1
  129. package/resources/sandbox/connections/connections.js.map +1 -1
  130. package/resources/sandbox/connections/connections.mjs +1 -1
  131. package/resources/sandbox/connections/connections.mjs.map +1 -1
  132. package/resources/sandbox/connections/index.js +1 -1
  133. package/resources/sandbox/connections/index.js.map +1 -1
  134. package/resources/sandbox/connections/index.mjs +1 -1
  135. package/resources/sandbox/connections/index.mjs.map +1 -1
  136. package/resources/sandbox/directory.js +1 -1
  137. package/resources/sandbox/directory.js.map +1 -1
  138. package/resources/sandbox/directory.mjs +1 -1
  139. package/resources/sandbox/directory.mjs.map +1 -1
  140. package/resources/sandbox/employment.js +1 -1
  141. package/resources/sandbox/employment.js.map +1 -1
  142. package/resources/sandbox/employment.mjs +1 -1
  143. package/resources/sandbox/employment.mjs.map +1 -1
  144. package/resources/sandbox/index.js +1 -1
  145. package/resources/sandbox/index.js.map +1 -1
  146. package/resources/sandbox/index.mjs +1 -1
  147. package/resources/sandbox/index.mjs.map +1 -1
  148. package/resources/sandbox/individual.js +1 -1
  149. package/resources/sandbox/individual.js.map +1 -1
  150. package/resources/sandbox/individual.mjs +1 -1
  151. package/resources/sandbox/individual.mjs.map +1 -1
  152. package/resources/sandbox/jobs/configuration.js +1 -1
  153. package/resources/sandbox/jobs/configuration.js.map +1 -1
  154. package/resources/sandbox/jobs/configuration.mjs +1 -1
  155. package/resources/sandbox/jobs/configuration.mjs.map +1 -1
  156. package/resources/sandbox/jobs/index.js +1 -1
  157. package/resources/sandbox/jobs/index.js.map +1 -1
  158. package/resources/sandbox/jobs/index.mjs +1 -1
  159. package/resources/sandbox/jobs/index.mjs.map +1 -1
  160. package/resources/sandbox/jobs/jobs.js +1 -1
  161. package/resources/sandbox/jobs/jobs.js.map +1 -1
  162. package/resources/sandbox/jobs/jobs.mjs +1 -1
  163. package/resources/sandbox/jobs/jobs.mjs.map +1 -1
  164. package/resources/sandbox/payment.js +1 -1
  165. package/resources/sandbox/payment.js.map +1 -1
  166. package/resources/sandbox/payment.mjs +1 -1
  167. package/resources/sandbox/payment.mjs.map +1 -1
  168. package/resources/sandbox/sandbox.js +1 -1
  169. package/resources/sandbox/sandbox.js.map +1 -1
  170. package/resources/sandbox/sandbox.mjs +1 -1
  171. package/resources/sandbox/sandbox.mjs.map +1 -1
  172. package/resources/shared.js +1 -1
  173. package/resources/shared.js.map +1 -1
  174. package/resources/shared.mjs +1 -1
  175. package/resources/shared.mjs.map +1 -1
  176. package/resources/top-level.js +1 -1
  177. package/resources/top-level.js.map +1 -1
  178. package/resources/top-level.mjs +1 -1
  179. package/resources/top-level.mjs.map +1 -1
  180. package/resources/webhooks.d.ts +2 -2
  181. package/resources/webhooks.js +1 -1
  182. package/resources/webhooks.js.map +1 -1
  183. package/resources/webhooks.mjs +1 -1
  184. package/resources/webhooks.mjs.map +1 -1
  185. package/src/core.ts +3 -2
  186. package/src/error.ts +1 -1
  187. package/src/index.ts +2 -7
  188. package/src/pagination.ts +1 -1
  189. package/src/resource.ts +1 -1
  190. package/src/resources/access-tokens.ts +1 -1
  191. package/src/resources/account.ts +2 -4
  192. package/src/resources/hris/benefits/benefits.ts +7 -18
  193. package/src/resources/hris/benefits/index.ts +1 -1
  194. package/src/resources/hris/benefits/individuals.ts +8 -20
  195. package/src/resources/hris/company.ts +1 -1
  196. package/src/resources/hris/directory.ts +1 -1
  197. package/src/resources/hris/employments.ts +2 -19
  198. package/src/resources/hris/hris.ts +1 -1
  199. package/src/resources/hris/index.ts +1 -1
  200. package/src/resources/hris/individuals.ts +7 -5
  201. package/src/resources/hris/pay-statements.ts +2 -2
  202. package/src/resources/hris/payments.ts +1 -1
  203. package/src/resources/index.ts +1 -1
  204. package/src/resources/jobs/automated.ts +1 -1
  205. package/src/resources/jobs/index.ts +1 -1
  206. package/src/resources/jobs/jobs.ts +1 -1
  207. package/src/resources/jobs/manual.ts +1 -1
  208. package/src/resources/providers.ts +3 -3
  209. package/src/resources/request-forwarding.ts +1 -1
  210. package/src/resources/sandbox/company.ts +1 -1
  211. package/src/resources/sandbox/connections/accounts.ts +1 -1
  212. package/src/resources/sandbox/connections/connections.ts +1 -1
  213. package/src/resources/sandbox/connections/index.ts +1 -1
  214. package/src/resources/sandbox/directory.ts +1 -1
  215. package/src/resources/sandbox/employment.ts +1 -1
  216. package/src/resources/sandbox/index.ts +1 -1
  217. package/src/resources/sandbox/individual.ts +1 -1
  218. package/src/resources/sandbox/jobs/configuration.ts +1 -1
  219. package/src/resources/sandbox/jobs/index.ts +1 -1
  220. package/src/resources/sandbox/jobs/jobs.ts +1 -1
  221. package/src/resources/sandbox/payment.ts +1 -1
  222. package/src/resources/sandbox/sandbox.ts +1 -1
  223. package/src/resources/shared.ts +1 -1
  224. package/src/resources/top-level.ts +1 -1
  225. package/src/resources/webhooks.ts +3 -3
  226. package/src/uploads.ts +4 -1
  227. package/src/version.ts +1 -1
  228. package/uploads.d.ts.map +1 -1
  229. package/uploads.js +3 -1
  230. package/uploads.js.map +1 -1
  231. package/uploads.mjs +3 -1
  232. package/uploads.mjs.map +1 -1
  233. package/version.d.ts +1 -1
  234. package/version.js +1 -1
  235. package/version.mjs +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"webhooks.js","sourceRoot":"","sources":["../src/resources/webhooks.ts"],"names":[],"mappings":";AAAA,qDAAqD;;;AAErD,2DAA2D;AAC3D,mCAAoC;AACpC,mDAA0E;AAK1E,MAAa,QAAS,SAAQ,sBAAW;IACvC;;OAEG;IACH,MAAM,CACJ,OAAe,EACf,OAAoB,EACpB,SAAoC,IAAI,CAAC,OAAO,CAAC,aAAa;QAE9D,IAAI,CAAC,eAAe,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;QAC/C,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAiB,CAAC;IAC7C,CAAC;IAEO,WAAW,CAAC,MAAiC;QACnD,IAAI,CAAC,MAAM,EAAE;YACX,MAAM,IAAI,KAAK,CACb,kKAAkK,CACnK,CAAC;SACH;QAED,MAAM,GAAG,GAAG,MAAM,CAAC,IAAI,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QAC1C,IAAI,GAAG,CAAC,QAAQ,CAAC,QAAQ,CAAC,KAAK,MAAM,EAA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C;QAC/F,MAAM,iBAAiB,GAAG,iBAAiB,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;QAE1D,MAAM,gBAAgB,GAAG,YAAY,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QAEjD,MAAM,OAAO,GAAG,IAAI,UAAU,CAAC,WAAW,EAAE,CAAC;QAC7C,KAAK,MAAM,kBAAkB,IAAI,gBAAgB,EAAE;YACjD,MAAM,CAAC,OAAO,EAAE,SAAS,CAAC,GAAG,kBAAkB,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;YAC3D,IAAI,OAAO,KAAK,IAAI,EAAE;gBACpB,SAAS;aACV;YAED,IAAI,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC,EAAE;gBACtF,SAAS;gBACT,OAAO;aACR;SACF;QAED,MAAM,IAAI,KAAK,CAAC,mEAAmE,CAAC,CAAC;IACvF,CAAC;CACF;AArID,4BAqIC;AAwiBD,WAAiB,QAAQ;AAWzB,CAAC,EAXgB,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAWxB"}
@@ -1,4 +1,4 @@
1
- // File generated from our OpenAPI spec by Stainless.
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
  import { APIResource } from '@tryfinch/finch-api/resource';
3
3
  import { createHmac } from 'crypto';
4
4
  import { getRequiredHeader } from '@tryfinch/finch-api/core';
@@ -1 +1 @@
1
- {"version":3,"file":"webhooks.mjs","sourceRoot":"","sources":["../src/resources/webhooks.ts"],"names":[],"mappings":"AAAA,qDAAqD;OAE9C,EAAE,WAAW,EAAE,MAAM,8BAA8B;OACnD,EAAE,UAAU,EAAE,MAAM,QAAQ;OAC5B,EAAE,iBAAiB,EAAe,MAAM,0BAA0B;AAKzE,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC;;OAEG;IACH,MAAM,C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(): PlatformProperties => {
802
802
  'X-Stainless-OS': normalizePlatform(Deno.build.os),
803
803
  'X-Stainless-Arch': normalizeArch(Deno.build.arch),
804
804
  'X-Stainless-Runtime': 'deno',
805
- 'X-Stainless-Runtime-Version': Deno.version,
805
+ 'X-Stainless-Runtime-Version':
806
+ typeof Deno.version === 'string' ? Deno.version : Deno.version?.deno ?? 'unknown',
806
807
  };
807
808
  }
808
809
  if (typeof EdgeRuntime !== 'undefined') {
@@ -1059,7 +1060,7 @@ function applyHeadersMut(targetHeaders: Headers, newHeaders: Headers): void {
1059
1060
  }
1060
1061
 
1061
1062
  export function debug(action: string, ...args: any[]) {
1062
- if (typeof process !== 'undefined' && process.env['DEBUG'] === 'true') {
1063
+ if (typeof process !== 'undefined' && process?.env?.['DEBUG'] === 'true') {
1063
1064
  console.log(`Finch:DEBUG:${action}`, ...args);
1064
1065
  }
1065
1066
  }
package/src/error.ts CHANGED
@@ -1,4 +1,4 @@
1
- // File generated from our OpenAPI spec by Stainless.
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  import { castToError, Headers } from './core';
4
4
 
package/src/index.ts CHANGED
@@ -1,4 +1,4 @@
1
- // File generated from our OpenAPI spec by Stainless.
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  import * as Core from './core';
4
4
  import * as Errors from './error';
@@ -168,8 +168,7 @@ export class Finch extends Core.APIClient {
168
168
  sandbox: API.Sandbox = new API.Sandbox(this);
169
169
 
170
170
  /**
171
- * Returns an access token for the Finch API given an authorization code. An
172
- * authorization code can be obtained by visiting the url returned by getAuthURL().
171
+ * DEPRECATED: use client.accessTokens.create instead.
173
172
  */
174
173
  getAccessToken(code: string, options?: { redirectUri: string }): Promise<string> {
175
174
  if (!this.clientId) {
@@ -265,10 +264,6 @@ export class Finch extends Core.APIClient {
265
264
  if (bearerAuth != null && !Core.isEmptyObj(bearerAuth)) {
266
265
  return bearerAuth;
267
266
  }
268
-
269
- if (basicAuth != null && !Core.isEmptyObj(basicAuth)) {
270
- return basicAuth;
271
- }
272
267
  return {};
273
268
  }
274
269
 
package/src/pagination.ts CHANGED
@@ -1,4 +1,4 @@
1
- // File generated from our OpenAPI spec by Stainless.
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  import { AbstractPage, Response, APIClient, FinalRequestOptions, PageInfo } from './core';
4
4
  import * as Shared from "./resources/shared";
package/src/resource.ts CHANGED
@@ -1,4 +1,4 @@
1
- // File generated from our OpenAPI spec by Stainless.
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  import type { Finch } from './index';
4
4
 
@@ -1,4 +1,4 @@
1
- // File generated from our OpenAPI spec by Stainless.
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  import * as Core from "../core";
4
4
  import { APIResource } from "../resource";
@@ -1,4 +1,4 @@
1
- // File generated from our OpenAPI spec by Stainless.
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  import * as Core from "../core";
4
4
  import { APIResource } from "../resource";
@@ -7,9 +7,7 @@ import * as Shared from "./shared";
7
7
 
8
8
  export class Account extends APIResource {
9
9
  /**
10
- * Disconnect an employer from your application and invalidate all `access_token`s
11
- * associated with the employer. We require applications to implement the
12
- * Disconnect endpoint for billing and security purposes.
10
+ * Disconnect one or more `access_token`s from your application.
13
11
  */
14
12
  disconnect(options?: Core.RequestOptions): Core.APIPromise<DisconnectResponse> {
15
13
  return this._client.post('/disconnect', options);
@@ -1,4 +1,4 @@
1
- // File generated from our OpenAPI spec by Stainless.
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  import * as Core from "../../../core";
4
4
  import { APIResource } from "../../../resource";
@@ -12,10 +12,8 @@ export class Benefits extends APIResource {
12
12
  individuals: IndividualsAPI.Individuals = new IndividualsAPI.Individuals(this._client);
13
13
 
14
14
  /**
15
- * **Availability: Automated and Assisted Benefits providers**
16
- *
17
- * Creates a new company-wide benefit. Please use the `/meta` endpoint to view
18
- * available types for each provider.
15
+ * Creates a new company-wide deduction or contribution. Please use the
16
+ * `/providers` endpoint to view available types for each provider.
19
17
  */
20
18
  create(
21
19
  body?: BenefitCreateParams,
@@ -33,18 +31,14 @@ export class Benefits extends APIResource {
33
31
  }
34
32
 
35
33
  /**
36
- * **Availability: Automated Benefits providers only**
37
- *
38
- * Lists benefit information for a given benefit
34
+ * Lists deductions and contributions information for a given item
39
35
  */
40
36
  retrieve(benefitId: string, options?: Core.RequestOptions): Core.APIPromise<CompanyBenefit> {
41
37
  return this._client.get(`/employer/benefits/${benefitId}`, options);
42
38
  }
43
39
 
44
40
  /**
45
- * **Availability: Automated and Assisted Benefits providers**
46
- *
47
- * Updates an existing company-wide benefit
41
+ * Updates an existing company-wide deduction or contribution
48
42
  */
49
43
  update(
50
44
  benefitId: string,
@@ -64,19 +58,14 @@ export class Benefits extends APIResource {
64
58
  }
65
59
 
66
60
  /**
67
- * **Availability: Automated Benefits providers only**
68
- *
69
- * List all company-wide benefits.
61
+ * List all company-wide deductions and contributions.
70
62
  */
71
63
  list(options?: Core.RequestOptions): Core.PagePromise<CompanyBenefitsSinglePage, CompanyBenefit> {
72
64
  return this._client.getAPIList('/employer/benefits', CompanyBenefitsSinglePage, options);
73
65
  }
74
66
 
75
67
  /**
76
- * **Availability: Automated and Assisted Benefits providers**
77
- *
78
- * Lists available types and configurations for the provider associated with the
79
- * access token.
68
+ * Get deductions metadata
80
69
  */
81
70
  listSupportedBenefits(
82
71
  options?: Core.RequestOptions,
@@ -1,4 +1,4 @@
1
- // File generated from our OpenAPI spec by Stainless.
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  export {
4
4
  BenefitContribution,
@@ -1,4 +1,4 @@
1
- // File generated from our OpenAPI spec by Stainless.
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  import * as Core from "../../../core";
4
4
  import { APIResource } from "../../../resource";
@@ -9,16 +9,10 @@ import { SinglePage } from "../../../pagination";
9
9
 
10
10
  export class Individuals extends APIResource {
11
11
  /**
12
- * **Availability: Automated and Assisted Benefits providers**
13
- *
14
- * Enroll an individual into a benefit. If the employee is already enrolled, the
15
- * enrollment amounts will be adjusted.
16
- *
17
- * <!-- theme: warning -->
18
- *
19
- * > Making changes to an individual's benefits may have tax consequences based on
20
- * > IRS regulations. Please consult a tax expert to ensure all changes being made
21
- * > to the system are compliant with local, state, and federal law.
12
+ * Enroll an individual into a deduction or contribution. This is an overwrite
13
+ * operation. If the employee is already enrolled, the enrollment amounts will be
14
+ * adjusted. Making the same request multiple times will not create new
15
+ * enrollments, but will continue to set the state of the existing enrollment.
22
16
  */
23
17
  enrollMany(
24
18
  benefitId: string,
@@ -33,9 +27,7 @@ export class Individuals extends APIResource {
33
27
  }
34
28
 
35
29
  /**
36
- * **Availability: Automated Benefits providers only**
37
- *
38
- * Lists individuals currently enrolled in a given benefit.
30
+ * Lists individuals currently enrolled in a given deduction.
39
31
  */
40
32
  enrolledIds(
41
33
  benefitId: string,
@@ -45,9 +37,7 @@ export class Individuals extends APIResource {
45
37
  }
46
38
 
47
39
  /**
48
- * **Availability: Automated Benefits providers only**
49
- *
50
- * Get enrolled benefit information for the given individuals.
40
+ * Get enrollment information for the given individuals.
51
41
  */
52
42
  retrieveManyBenefits(
53
43
  benefitId: string,
@@ -74,9 +64,7 @@ export class Individuals extends APIResource {
74
64
  }
75
65
 
76
66
  /**
77
- * **Availability: Automated and Assisted Benefits providers**
78
- *
79
- * Unenroll individuals from a benefit
67
+ * Unenroll individuals from a deduction or contribution
80
68
  */
81
69
  unenrollMany(
82
70
  benefitId: string,
@@ -1,4 +1,4 @@
1
- // File generated from our OpenAPI spec by Stainless.
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  import * as Core from "../../core";
4
4
  import { APIResource } from "../../resource";
@@ -1,4 +1,4 @@
1
- // File generated from our OpenAPI spec by Stainless.
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  import * as Core from "../../core";
4
4
  import { APIResource } from "../../resource";
@@ -1,4 +1,4 @@
1
- // File generated from our OpenAPI spec by Stainless.
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  import * as Core from "../../core";
4
4
  import { APIResource } from "../../resource";
@@ -9,10 +9,6 @@ import { ResponsesPage } from "../../pagination";
9
9
  export class Employments extends APIResource {
10
10
  /**
11
11
  * Read individual employment and income data
12
- *
13
- * Note: Income information is returned as reported by the provider. This may not
14
- * always be annualized income, but may be in units of bi-weekly, semi-monthly,
15
- * daily, etc, depending on what information the provider returns.
16
12
  */
17
13
  retrieveMany(
18
14
  body: EmploymentRetrieveManyParams,
@@ -96,12 +92,6 @@ export interface EmploymentData {
96
92
  */
97
93
  middle_name?: string | null;
98
94
 
99
- /**
100
- * Note: This property is only available if enabled for your account. Please reach
101
- * out to your Finch representative if you would like access.
102
- */
103
- pay_group_ids?: Array<string> | null;
104
-
105
95
  /**
106
96
  * The source system's unique employment identifier for this individual
107
97
  */
@@ -115,16 +105,9 @@ export interface EmploymentData {
115
105
  title?: string | null;
116
106
 
117
107
  /**
118
- * Note: This property is only available if enabled for your account. Please reach
119
- * out to your Finch representative if you would like access.
108
+ * This field is deprecated in favour of `source_id`
120
109
  */
121
110
  work_id?: string | null;
122
-
123
- /**
124
- * Note: This property is only available if enabled for your account. Please reach
125
- * out to your Finch representative if you would like access.
126
- */
127
- work_id_2?: string | null;
128
111
  }
129
112
 
130
113
  export namespace EmploymentData {
@@ -1,4 +1,4 @@
1
- // File generated from our OpenAPI spec by Stainless.
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  import { APIResource } from "../../resource";
4
4
  import * as HRISAPI from "./hris";
@@ -1,4 +1,4 @@
1
- // File generated from our OpenAPI spec by Stainless.
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  export {
4
4
  BenefitContribution,
@@ -1,4 +1,4 @@
1
- // File generated from our OpenAPI spec by Stainless.
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  import * as Core from "../../core";
4
4
  import { APIResource } from "../../resource";
@@ -44,8 +44,9 @@ export interface Individual {
44
44
  emails?: Array<Individual.Email> | null;
45
45
 
46
46
  /**
47
- * Note: This property is only available if enabled for your account. Please reach
48
- * out to your Finch representative if you would like access.
47
+ * Social Security Number of the individual in **encrypted** format. This field is
48
+ * only available with the `ssn` scope enabled and the
49
+ * `options: { include: ['ssn'] }` param set in the body.
49
50
  */
50
51
  encrypted_ssn?: string | null;
51
52
 
@@ -93,8 +94,9 @@ export interface Individual {
93
94
  residence?: HRISAPI.Location | null;
94
95
 
95
96
  /**
96
- * Note: This property is only available if enabled for your account. Please reach
97
- * out to your Finch representative if you would like access.
97
+ * Social Security Number of the individual. This field is only available with the
98
+ * `ssn` scope enabled and the `options: { include: ['ssn'] }` param set in the
99
+ * body.
98
100
  */
99
101
  ssn?: string | null;
100
102
  }
@@ -1,4 +1,4 @@
1
- // File generated from our OpenAPI spec by Stainless.
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  import * as Core from "../../core";
4
4
  import { APIResource } from "../../resource";
@@ -13,7 +13,7 @@ export class PayStatements extends APIResource {
13
13
  * Read detailed pay statements for each individual.
14
14
  *
15
15
  * Deduction and contribution types are supported by the payroll systems that
16
- * support Benefits.
16
+ * supports Benefits.
17
17
  */
18
18
  retrieveMany(
19
19
  body: PayStatementRetrieveManyParams,
@@ -1,4 +1,4 @@
1
- // File generated from our OpenAPI spec by Stainless.
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  import * as Core from "../../core";
4
4
  import { APIResource } from "../../resource";
@@ -1,4 +1,4 @@
1
- // File generated from our OpenAPI spec by Stainless.
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  export * from './shared';
4
4
  export {
@@ -1,4 +1,4 @@
1
- // File generated from our OpenAPI spec by Stainless.
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  import * as Core from "../../core";
4
4
  import { APIResource } from "../../resource";
@@ -1,4 +1,4 @@
1
- // File generated from our OpenAPI spec by Stainless.
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  export {
4
4
  AutomatedAsyncJob,
@@ -1,4 +1,4 @@
1
- // File generated from our OpenAPI spec by Stainless.
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  import { APIResource } from "../../resource";
4
4
  import * as AutomatedAPI from "./automated";
@@ -1,4 +1,4 @@
1
- // File generated from our OpenAPI spec by Stainless.
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  import * as Core from "../../core";
4
4
  import { APIResource } from "../../resource";
@@ -1,4 +1,4 @@
1
- // File generated from our OpenAPI spec by Stainless.
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  import * as Core from "../core";
4
4
  import { APIResource } from "../resource";
@@ -355,7 +355,7 @@ export namespace Provider {
355
355
  employer_contributions?: PayStatements.EmployerContributions;
356
356
 
357
357
  /**
358
- * [DEPRECATED] Use `employer_contributions` instead
358
+ * @deprecated: [DEPRECATED] Use `employer_contributions` instead
359
359
  */
360
360
  employer_deductions?: PayStatements.EmployerDeductions;
361
361
 
@@ -406,7 +406,7 @@ export namespace Provider {
406
406
  }
407
407
 
408
408
  /**
409
- * [DEPRECATED] Use `employer_contributions` instead
409
+ * @deprecated: [DEPRECATED] Use `employer_contributions` instead
410
410
  */
411
411
  export interface EmployerDeductions {
412
412
  amount?: boolean;
@@ -1,4 +1,4 @@
1
- // File generated from our OpenAPI spec by Stainless.
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  import * as Core from "../core";
4
4
  import { APIResource } from "../resource";
@@ -1,4 +1,4 @@
1
- // File generated from our OpenAPI spec by Stainless.
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  import * as Core from "../../core";
4
4
  import { APIResource } from "../../resource";
@@ -1,4 +1,4 @@
1
- // File generated from our OpenAPI spec by Stainless.
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  import * as Core from "../../../core";
4
4
  import { APIResource } from "../../../resource";
@@ -1,4 +1,4 @@
1
- // File generated from our OpenAPI spec by Stainless.
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  import * as Core from "../../../core";
4
4
  import { APIResource } from "../../../resource";
@@ -1,4 +1,4 @@
1
- // File generated from our OpenAPI spec by Stainless.
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  export {
4
4
  AccountCreateResponse,
@@ -1,4 +1,4 @@
1
- // File generated from our OpenAPI spec by Stainless.
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  import * as Core from "../../core";
4
4
  import { APIResource } from "../../resource";
@@ -1,4 +1,4 @@
1
- // File generated from our OpenAPI spec by Stainless.
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  import * as Core from "../../core";
4
4
  import { APIResource } from "../../resource";
@@ -1,4 +1,4 @@
1
- // File generated from our OpenAPI spec by Stainless.
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  export { CompanyUpdateResponse, CompanyUpdateParams, Company } from './company';
4
4
  export { ConnectionCreateResponse, ConnectionCreateParams, Connections } from './connections/index';
@@ -1,4 +1,4 @@
1
- // File generated from our OpenAPI spec by Stainless.
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  import * as Core from "../../core";
4
4
  import { APIResource } from "../../resource";
@@ -1,4 +1,4 @@
1
- // File generated from our OpenAPI spec by Stainless.
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  import * as Core from "../../../core";
4
4
  import { APIResource } from "../../../resource";
@@ -1,4 +1,4 @@
1
- // File generated from our OpenAPI spec by Stainless.
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  export { JobCreateResponse, JobCreateParams, Jobs } from './jobs';
4
4
  export {
@@ -1,4 +1,4 @@
1
- // File generated from our OpenAPI spec by Stainless.
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  import * as Core from "../../../core";
4
4
  import { APIResource } from "../../../resource";
@@ -1,4 +1,4 @@
1
- // File generated from our OpenAPI spec by Stainless.
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  import * as Core from "../../core";
4
4
  import { APIResource } from "../../resource";
@@ -1,4 +1,4 @@
1
- // File generated from our OpenAPI spec by Stainless.
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  import { APIResource } from "../../resource";
4
4
  import * as CompanyAPI from "./company";
@@ -1,4 +1,4 @@
1
- // File generated from our OpenAPI spec by Stainless.
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  export type ConnectionStatusType =
4
4
  | 'pending'
@@ -1,3 +1,3 @@
1
- // File generated from our OpenAPI spec by Stainless.
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  export {};
@@ -1,4 +1,4 @@
1
- // File generated from our OpenAPI spec by Stainless.
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  import { APIResource } from "../resource";
4
4
  import { createHmac } from 'crypto';
@@ -444,7 +444,7 @@ export namespace AccountUpdateEvent {
444
444
  employer_contributions?: PayStatements.EmployerContributions;
445
445
 
446
446
  /**
447
- * [DEPRECATED] Use `employer_contributions` instead
447
+ * @deprecated: [DEPRECATED] Use `employer_contributions` instead
448
448
  */
449
449
  employer_deductions?: PayStatements.EmployerDeductions;
450
450
 
@@ -495,7 +495,7 @@ export namespace AccountUpdateEvent {
495
495
  }
496
496
 
497
497
  /**
498
- * [DEPRECATED] Use `employer_contributions` instead
498
+ * @deprecated: [DEPRECATED] Use `employer_contributions` instead
499
499
  */
500
500
  export interface EmployerDeductions {
501
501
  amount?: boolean;
package/src/uploads.ts CHANGED
@@ -102,11 +102,14 @@ export type ToFileInput = Uploadable | Exclude<BlobLikePart, string> | AsyncIter
102
102
  export async function toFile(
103
103
  value: ToFileInput | PromiseLike<ToFileInput>,
104
104
  name?: string | null | undefined,
105
- options: FilePropertyBag | undefined = {},
105
+ options?: FilePropertyBag | undefined,
106
106
  ): Promise<FileLike> {
107
107
  // If it's a promise, resolve it.
108
108
  value = await value;
109
109
 
110
+ // Use the file's options if there isn't one provided
111
+ options ??= isFileLike(value) ? { lastModified: value.lastModified, type: value.type } : {};
112
+
110
113
  if (isResponseLike(value)) {
111
114
  const blob = await value.blob();
112
115
  name ||= new URL(value.url).pathname.split(/[\\/]/).pop() ?? 'unknown_file';
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '5.20.0'; // x-release-please-version
1
+ export const VERSION = '5.20.2'; // x-release-please-version