@tryfinch/finch-api-mcp 6.27.0 → 6.29.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 (465) hide show
  1. package/README.md +77 -3
  2. package/compat.d.mts +52 -0
  3. package/compat.d.mts.map +1 -0
  4. package/compat.d.ts +52 -0
  5. package/compat.d.ts.map +1 -0
  6. package/compat.js +342 -0
  7. package/compat.js.map +1 -0
  8. package/compat.mjs +332 -0
  9. package/compat.mjs.map +1 -0
  10. package/dynamic-tools.d.mts +12 -0
  11. package/dynamic-tools.d.mts.map +1 -0
  12. package/dynamic-tools.d.ts +12 -0
  13. package/dynamic-tools.d.ts.map +1 -0
  14. package/dynamic-tools.js +133 -0
  15. package/dynamic-tools.js.map +1 -0
  16. package/dynamic-tools.mjs +130 -0
  17. package/dynamic-tools.mjs.map +1 -0
  18. package/index.js +40 -116
  19. package/index.js.map +1 -1
  20. package/index.mjs +42 -115
  21. package/index.mjs.map +1 -1
  22. package/options.d.mts +11 -0
  23. package/options.d.mts.map +1 -0
  24. package/options.d.ts +11 -0
  25. package/options.d.ts.map +1 -0
  26. package/options.js +337 -0
  27. package/options.js.map +1 -0
  28. package/options.mjs +331 -0
  29. package/options.mjs.map +1 -0
  30. package/package.json +6 -3
  31. package/server.d.mts +9 -2
  32. package/server.d.mts.map +1 -1
  33. package/server.d.ts +9 -2
  34. package/server.d.ts.map +1 -1
  35. package/server.js +34 -11
  36. package/server.js.map +1 -1
  37. package/server.mjs +31 -9
  38. package/server.mjs.map +1 -1
  39. package/src/compat.ts +429 -0
  40. package/src/dynamic-tools.ts +152 -0
  41. package/src/index.ts +42 -130
  42. package/src/options.ts +361 -0
  43. package/src/server.ts +46 -11
  44. package/src/tools/access-tokens/create-access-tokens.ts +2 -2
  45. package/src/tools/account/disconnect-account.ts +1 -2
  46. package/src/tools/account/introspect-account.ts +1 -2
  47. package/src/tools/connect/sessions/new-connect-sessions.ts +2 -2
  48. package/src/tools/connect/sessions/reauthenticate-connect-sessions.ts +2 -2
  49. package/src/tools/hris/benefits/create-hris-benefits.ts +38 -3
  50. package/src/tools/hris/benefits/individuals/enroll-many-benefits-hris-individuals.ts +2 -2
  51. package/src/tools/hris/benefits/individuals/enrolled-ids-benefits-hris-individuals.ts +2 -2
  52. package/src/tools/hris/benefits/individuals/retrieve-many-benefits-benefits-hris-individuals.ts +2 -2
  53. package/src/tools/hris/benefits/individuals/unenroll-many-benefits-hris-individuals.ts +2 -2
  54. package/src/tools/hris/benefits/list-hris-benefits.ts +1 -2
  55. package/src/tools/hris/benefits/list-supported-benefits-hris-benefits.ts +1 -2
  56. package/src/tools/hris/benefits/retrieve-hris-benefits.ts +2 -2
  57. package/src/tools/hris/benefits/update-hris-benefits.ts +2 -2
  58. package/src/tools/hris/company/pay-statement-item/list-company-hris-pay-statement-item.ts +2 -2
  59. package/src/tools/hris/company/pay-statement-item/rules/create-pay-statement-item-company-hris-rules.ts +2 -2
  60. package/src/tools/hris/company/pay-statement-item/rules/delete-pay-statement-item-company-hris-rules.ts +2 -2
  61. package/src/tools/hris/company/pay-statement-item/rules/list-pay-statement-item-company-hris-rules.ts +1 -2
  62. package/src/tools/hris/company/pay-statement-item/rules/update-pay-statement-item-company-hris-rules.ts +2 -2
  63. package/src/tools/hris/company/retrieve-hris-company.ts +1 -2
  64. package/src/tools/hris/directory/list-hris-directory.ts +2 -2
  65. package/src/tools/hris/directory/list-individuals-hris-directory.ts +2 -2
  66. package/src/tools/hris/documents/list-hris-documents.ts +2 -2
  67. package/src/tools/hris/documents/retreive-hris-documents.ts +2 -2
  68. package/src/tools/hris/employments/retrieve-many-hris-employments.ts +2 -2
  69. package/src/tools/hris/individuals/retrieve-many-hris-individuals.ts +2 -2
  70. package/src/tools/hris/pay-statements/retrieve-many-hris-pay-statements.ts +2 -2
  71. package/src/tools/hris/payments/list-hris-payments.ts +2 -2
  72. package/src/tools/index.ts +16 -6
  73. package/src/tools/jobs/automated/create-jobs-automated.ts +2 -2
  74. package/src/tools/jobs/automated/list-jobs-automated.ts +2 -2
  75. package/src/tools/jobs/automated/retrieve-jobs-automated.ts +2 -2
  76. package/src/tools/jobs/manual/retrieve-jobs-manual.ts +2 -2
  77. package/src/tools/payroll/pay-groups/list-payroll-pay-groups.ts +2 -2
  78. package/src/tools/payroll/pay-groups/retrieve-payroll-pay-groups.ts +2 -2
  79. package/src/tools/providers/list-providers.ts +1 -2
  80. package/src/tools/request-forwarding/forward-request-forwarding.ts +2 -2
  81. package/src/tools/sandbox/company/update-sandbox-company.ts +42 -37
  82. package/src/tools/sandbox/connections/accounts/create-connections-sandbox-accounts.ts +2 -2
  83. package/src/tools/sandbox/connections/accounts/update-connections-sandbox-accounts.ts +7 -2
  84. package/src/tools/sandbox/connections/create-sandbox-connections.ts +2 -2
  85. package/src/tools/sandbox/directory/create-sandbox-directory.ts +82 -74
  86. package/src/tools/sandbox/employment/update-sandbox-employment.ts +62 -54
  87. package/src/tools/sandbox/individual/update-sandbox-individual.ts +19 -14
  88. package/src/tools/sandbox/jobs/configuration/retrieve-jobs-sandbox-configuration.ts +1 -2
  89. package/src/tools/sandbox/jobs/configuration/update-jobs-sandbox-configuration.ts +2 -2
  90. package/src/tools/sandbox/jobs/create-sandbox-jobs.ts +2 -2
  91. package/src/tools/sandbox/payment/create-sandbox-payment.ts +49 -41
  92. package/tools/access-tokens/create-access-tokens.d.mts +10 -2
  93. package/tools/access-tokens/create-access-tokens.d.mts.map +1 -1
  94. package/tools/access-tokens/create-access-tokens.d.ts +10 -2
  95. package/tools/access-tokens/create-access-tokens.d.ts.map +1 -1
  96. package/tools/access-tokens/create-access-tokens.js +1 -1
  97. package/tools/access-tokens/create-access-tokens.js.map +1 -1
  98. package/tools/access-tokens/create-access-tokens.mjs +1 -1
  99. package/tools/access-tokens/create-access-tokens.mjs.map +1 -1
  100. package/tools/account/disconnect-account.d.mts +10 -2
  101. package/tools/account/disconnect-account.d.mts.map +1 -1
  102. package/tools/account/disconnect-account.d.ts +10 -2
  103. package/tools/account/disconnect-account.d.ts.map +1 -1
  104. package/tools/account/disconnect-account.js +0 -1
  105. package/tools/account/disconnect-account.js.map +1 -1
  106. package/tools/account/disconnect-account.mjs +0 -1
  107. package/tools/account/disconnect-account.mjs.map +1 -1
  108. package/tools/account/introspect-account.d.mts +10 -2
  109. package/tools/account/introspect-account.d.mts.map +1 -1
  110. package/tools/account/introspect-account.d.ts +10 -2
  111. package/tools/account/introspect-account.d.ts.map +1 -1
  112. package/tools/account/introspect-account.js +0 -1
  113. package/tools/account/introspect-account.js.map +1 -1
  114. package/tools/account/introspect-account.mjs +0 -1
  115. package/tools/account/introspect-account.mjs.map +1 -1
  116. package/tools/connect/sessions/new-connect-sessions.d.mts +10 -2
  117. package/tools/connect/sessions/new-connect-sessions.d.mts.map +1 -1
  118. package/tools/connect/sessions/new-connect-sessions.d.ts +10 -2
  119. package/tools/connect/sessions/new-connect-sessions.d.ts.map +1 -1
  120. package/tools/connect/sessions/new-connect-sessions.js +1 -1
  121. package/tools/connect/sessions/new-connect-sessions.js.map +1 -1
  122. package/tools/connect/sessions/new-connect-sessions.mjs +1 -1
  123. package/tools/connect/sessions/new-connect-sessions.mjs.map +1 -1
  124. package/tools/connect/sessions/reauthenticate-connect-sessions.d.mts +10 -2
  125. package/tools/connect/sessions/reauthenticate-connect-sessions.d.mts.map +1 -1
  126. package/tools/connect/sessions/reauthenticate-connect-sessions.d.ts +10 -2
  127. package/tools/connect/sessions/reauthenticate-connect-sessions.d.ts.map +1 -1
  128. package/tools/connect/sessions/reauthenticate-connect-sessions.js +1 -1
  129. package/tools/connect/sessions/reauthenticate-connect-sessions.js.map +1 -1
  130. package/tools/connect/sessions/reauthenticate-connect-sessions.mjs +1 -1
  131. package/tools/connect/sessions/reauthenticate-connect-sessions.mjs.map +1 -1
  132. package/tools/hris/benefits/create-hris-benefits.d.mts +10 -2
  133. package/tools/hris/benefits/create-hris-benefits.d.mts.map +1 -1
  134. package/tools/hris/benefits/create-hris-benefits.d.ts +10 -2
  135. package/tools/hris/benefits/create-hris-benefits.d.ts.map +1 -1
  136. package/tools/hris/benefits/create-hris-benefits.js +37 -2
  137. package/tools/hris/benefits/create-hris-benefits.js.map +1 -1
  138. package/tools/hris/benefits/create-hris-benefits.mjs +37 -2
  139. package/tools/hris/benefits/create-hris-benefits.mjs.map +1 -1
  140. package/tools/hris/benefits/individuals/enroll-many-benefits-hris-individuals.d.mts +10 -2
  141. package/tools/hris/benefits/individuals/enroll-many-benefits-hris-individuals.d.mts.map +1 -1
  142. package/tools/hris/benefits/individuals/enroll-many-benefits-hris-individuals.d.ts +10 -2
  143. package/tools/hris/benefits/individuals/enroll-many-benefits-hris-individuals.d.ts.map +1 -1
  144. package/tools/hris/benefits/individuals/enroll-many-benefits-hris-individuals.js.map +1 -1
  145. package/tools/hris/benefits/individuals/enroll-many-benefits-hris-individuals.mjs.map +1 -1
  146. package/tools/hris/benefits/individuals/enrolled-ids-benefits-hris-individuals.d.mts +10 -2
  147. package/tools/hris/benefits/individuals/enrolled-ids-benefits-hris-individuals.d.mts.map +1 -1
  148. package/tools/hris/benefits/individuals/enrolled-ids-benefits-hris-individuals.d.ts +10 -2
  149. package/tools/hris/benefits/individuals/enrolled-ids-benefits-hris-individuals.d.ts.map +1 -1
  150. package/tools/hris/benefits/individuals/enrolled-ids-benefits-hris-individuals.js +1 -1
  151. package/tools/hris/benefits/individuals/enrolled-ids-benefits-hris-individuals.js.map +1 -1
  152. package/tools/hris/benefits/individuals/enrolled-ids-benefits-hris-individuals.mjs +1 -1
  153. package/tools/hris/benefits/individuals/enrolled-ids-benefits-hris-individuals.mjs.map +1 -1
  154. package/tools/hris/benefits/individuals/retrieve-many-benefits-benefits-hris-individuals.d.mts +10 -2
  155. package/tools/hris/benefits/individuals/retrieve-many-benefits-benefits-hris-individuals.d.mts.map +1 -1
  156. package/tools/hris/benefits/individuals/retrieve-many-benefits-benefits-hris-individuals.d.ts +10 -2
  157. package/tools/hris/benefits/individuals/retrieve-many-benefits-benefits-hris-individuals.d.ts.map +1 -1
  158. package/tools/hris/benefits/individuals/retrieve-many-benefits-benefits-hris-individuals.js.map +1 -1
  159. package/tools/hris/benefits/individuals/retrieve-many-benefits-benefits-hris-individuals.mjs.map +1 -1
  160. package/tools/hris/benefits/individuals/unenroll-many-benefits-hris-individuals.d.mts +10 -2
  161. package/tools/hris/benefits/individuals/unenroll-many-benefits-hris-individuals.d.mts.map +1 -1
  162. package/tools/hris/benefits/individuals/unenroll-many-benefits-hris-individuals.d.ts +10 -2
  163. package/tools/hris/benefits/individuals/unenroll-many-benefits-hris-individuals.d.ts.map +1 -1
  164. package/tools/hris/benefits/individuals/unenroll-many-benefits-hris-individuals.js.map +1 -1
  165. package/tools/hris/benefits/individuals/unenroll-many-benefits-hris-individuals.mjs.map +1 -1
  166. package/tools/hris/benefits/list-hris-benefits.d.mts +10 -2
  167. package/tools/hris/benefits/list-hris-benefits.d.mts.map +1 -1
  168. package/tools/hris/benefits/list-hris-benefits.d.ts +10 -2
  169. package/tools/hris/benefits/list-hris-benefits.d.ts.map +1 -1
  170. package/tools/hris/benefits/list-hris-benefits.js +0 -1
  171. package/tools/hris/benefits/list-hris-benefits.js.map +1 -1
  172. package/tools/hris/benefits/list-hris-benefits.mjs +0 -1
  173. package/tools/hris/benefits/list-hris-benefits.mjs.map +1 -1
  174. package/tools/hris/benefits/list-supported-benefits-hris-benefits.d.mts +10 -2
  175. package/tools/hris/benefits/list-supported-benefits-hris-benefits.d.mts.map +1 -1
  176. package/tools/hris/benefits/list-supported-benefits-hris-benefits.d.ts +10 -2
  177. package/tools/hris/benefits/list-supported-benefits-hris-benefits.d.ts.map +1 -1
  178. package/tools/hris/benefits/list-supported-benefits-hris-benefits.js +0 -1
  179. package/tools/hris/benefits/list-supported-benefits-hris-benefits.js.map +1 -1
  180. package/tools/hris/benefits/list-supported-benefits-hris-benefits.mjs +0 -1
  181. package/tools/hris/benefits/list-supported-benefits-hris-benefits.mjs.map +1 -1
  182. package/tools/hris/benefits/retrieve-hris-benefits.d.mts +10 -2
  183. package/tools/hris/benefits/retrieve-hris-benefits.d.mts.map +1 -1
  184. package/tools/hris/benefits/retrieve-hris-benefits.d.ts +10 -2
  185. package/tools/hris/benefits/retrieve-hris-benefits.d.ts.map +1 -1
  186. package/tools/hris/benefits/retrieve-hris-benefits.js +1 -1
  187. package/tools/hris/benefits/retrieve-hris-benefits.js.map +1 -1
  188. package/tools/hris/benefits/retrieve-hris-benefits.mjs +1 -1
  189. package/tools/hris/benefits/retrieve-hris-benefits.mjs.map +1 -1
  190. package/tools/hris/benefits/update-hris-benefits.d.mts +10 -2
  191. package/tools/hris/benefits/update-hris-benefits.d.mts.map +1 -1
  192. package/tools/hris/benefits/update-hris-benefits.d.ts +10 -2
  193. package/tools/hris/benefits/update-hris-benefits.d.ts.map +1 -1
  194. package/tools/hris/benefits/update-hris-benefits.js.map +1 -1
  195. package/tools/hris/benefits/update-hris-benefits.mjs.map +1 -1
  196. package/tools/hris/company/pay-statement-item/list-company-hris-pay-statement-item.d.mts +10 -2
  197. package/tools/hris/company/pay-statement-item/list-company-hris-pay-statement-item.d.mts.map +1 -1
  198. package/tools/hris/company/pay-statement-item/list-company-hris-pay-statement-item.d.ts +10 -2
  199. package/tools/hris/company/pay-statement-item/list-company-hris-pay-statement-item.d.ts.map +1 -1
  200. package/tools/hris/company/pay-statement-item/list-company-hris-pay-statement-item.js +1 -1
  201. package/tools/hris/company/pay-statement-item/list-company-hris-pay-statement-item.js.map +1 -1
  202. package/tools/hris/company/pay-statement-item/list-company-hris-pay-statement-item.mjs +1 -1
  203. package/tools/hris/company/pay-statement-item/list-company-hris-pay-statement-item.mjs.map +1 -1
  204. package/tools/hris/company/pay-statement-item/rules/create-pay-statement-item-company-hris-rules.d.mts +10 -2
  205. package/tools/hris/company/pay-statement-item/rules/create-pay-statement-item-company-hris-rules.d.mts.map +1 -1
  206. package/tools/hris/company/pay-statement-item/rules/create-pay-statement-item-company-hris-rules.d.ts +10 -2
  207. package/tools/hris/company/pay-statement-item/rules/create-pay-statement-item-company-hris-rules.d.ts.map +1 -1
  208. package/tools/hris/company/pay-statement-item/rules/create-pay-statement-item-company-hris-rules.js +1 -1
  209. package/tools/hris/company/pay-statement-item/rules/create-pay-statement-item-company-hris-rules.js.map +1 -1
  210. package/tools/hris/company/pay-statement-item/rules/create-pay-statement-item-company-hris-rules.mjs +1 -1
  211. package/tools/hris/company/pay-statement-item/rules/create-pay-statement-item-company-hris-rules.mjs.map +1 -1
  212. package/tools/hris/company/pay-statement-item/rules/delete-pay-statement-item-company-hris-rules.d.mts +10 -2
  213. package/tools/hris/company/pay-statement-item/rules/delete-pay-statement-item-company-hris-rules.d.mts.map +1 -1
  214. package/tools/hris/company/pay-statement-item/rules/delete-pay-statement-item-company-hris-rules.d.ts +10 -2
  215. package/tools/hris/company/pay-statement-item/rules/delete-pay-statement-item-company-hris-rules.d.ts.map +1 -1
  216. package/tools/hris/company/pay-statement-item/rules/delete-pay-statement-item-company-hris-rules.js +1 -1
  217. package/tools/hris/company/pay-statement-item/rules/delete-pay-statement-item-company-hris-rules.js.map +1 -1
  218. package/tools/hris/company/pay-statement-item/rules/delete-pay-statement-item-company-hris-rules.mjs +1 -1
  219. package/tools/hris/company/pay-statement-item/rules/delete-pay-statement-item-company-hris-rules.mjs.map +1 -1
  220. package/tools/hris/company/pay-statement-item/rules/list-pay-statement-item-company-hris-rules.d.mts +10 -2
  221. package/tools/hris/company/pay-statement-item/rules/list-pay-statement-item-company-hris-rules.d.mts.map +1 -1
  222. package/tools/hris/company/pay-statement-item/rules/list-pay-statement-item-company-hris-rules.d.ts +10 -2
  223. package/tools/hris/company/pay-statement-item/rules/list-pay-statement-item-company-hris-rules.d.ts.map +1 -1
  224. package/tools/hris/company/pay-statement-item/rules/list-pay-statement-item-company-hris-rules.js +0 -1
  225. package/tools/hris/company/pay-statement-item/rules/list-pay-statement-item-company-hris-rules.js.map +1 -1
  226. package/tools/hris/company/pay-statement-item/rules/list-pay-statement-item-company-hris-rules.mjs +0 -1
  227. package/tools/hris/company/pay-statement-item/rules/list-pay-statement-item-company-hris-rules.mjs.map +1 -1
  228. package/tools/hris/company/pay-statement-item/rules/update-pay-statement-item-company-hris-rules.d.mts +10 -2
  229. package/tools/hris/company/pay-statement-item/rules/update-pay-statement-item-company-hris-rules.d.mts.map +1 -1
  230. package/tools/hris/company/pay-statement-item/rules/update-pay-statement-item-company-hris-rules.d.ts +10 -2
  231. package/tools/hris/company/pay-statement-item/rules/update-pay-statement-item-company-hris-rules.d.ts.map +1 -1
  232. package/tools/hris/company/pay-statement-item/rules/update-pay-statement-item-company-hris-rules.js.map +1 -1
  233. package/tools/hris/company/pay-statement-item/rules/update-pay-statement-item-company-hris-rules.mjs.map +1 -1
  234. package/tools/hris/company/retrieve-hris-company.d.mts +10 -2
  235. package/tools/hris/company/retrieve-hris-company.d.mts.map +1 -1
  236. package/tools/hris/company/retrieve-hris-company.d.ts +10 -2
  237. package/tools/hris/company/retrieve-hris-company.d.ts.map +1 -1
  238. package/tools/hris/company/retrieve-hris-company.js +0 -1
  239. package/tools/hris/company/retrieve-hris-company.js.map +1 -1
  240. package/tools/hris/company/retrieve-hris-company.mjs +0 -1
  241. package/tools/hris/company/retrieve-hris-company.mjs.map +1 -1
  242. package/tools/hris/directory/list-hris-directory.d.mts +10 -2
  243. package/tools/hris/directory/list-hris-directory.d.mts.map +1 -1
  244. package/tools/hris/directory/list-hris-directory.d.ts +10 -2
  245. package/tools/hris/directory/list-hris-directory.d.ts.map +1 -1
  246. package/tools/hris/directory/list-hris-directory.js +1 -1
  247. package/tools/hris/directory/list-hris-directory.js.map +1 -1
  248. package/tools/hris/directory/list-hris-directory.mjs +1 -1
  249. package/tools/hris/directory/list-hris-directory.mjs.map +1 -1
  250. package/tools/hris/directory/list-individuals-hris-directory.d.mts +10 -2
  251. package/tools/hris/directory/list-individuals-hris-directory.d.mts.map +1 -1
  252. package/tools/hris/directory/list-individuals-hris-directory.d.ts +10 -2
  253. package/tools/hris/directory/list-individuals-hris-directory.d.ts.map +1 -1
  254. package/tools/hris/directory/list-individuals-hris-directory.js +1 -1
  255. package/tools/hris/directory/list-individuals-hris-directory.js.map +1 -1
  256. package/tools/hris/directory/list-individuals-hris-directory.mjs +1 -1
  257. package/tools/hris/directory/list-individuals-hris-directory.mjs.map +1 -1
  258. package/tools/hris/documents/list-hris-documents.d.mts +10 -2
  259. package/tools/hris/documents/list-hris-documents.d.mts.map +1 -1
  260. package/tools/hris/documents/list-hris-documents.d.ts +10 -2
  261. package/tools/hris/documents/list-hris-documents.d.ts.map +1 -1
  262. package/tools/hris/documents/list-hris-documents.js +1 -1
  263. package/tools/hris/documents/list-hris-documents.js.map +1 -1
  264. package/tools/hris/documents/list-hris-documents.mjs +1 -1
  265. package/tools/hris/documents/list-hris-documents.mjs.map +1 -1
  266. package/tools/hris/documents/retreive-hris-documents.d.mts +10 -2
  267. package/tools/hris/documents/retreive-hris-documents.d.mts.map +1 -1
  268. package/tools/hris/documents/retreive-hris-documents.d.ts +10 -2
  269. package/tools/hris/documents/retreive-hris-documents.d.ts.map +1 -1
  270. package/tools/hris/documents/retreive-hris-documents.js +1 -1
  271. package/tools/hris/documents/retreive-hris-documents.js.map +1 -1
  272. package/tools/hris/documents/retreive-hris-documents.mjs +1 -1
  273. package/tools/hris/documents/retreive-hris-documents.mjs.map +1 -1
  274. package/tools/hris/employments/retrieve-many-hris-employments.d.mts +10 -2
  275. package/tools/hris/employments/retrieve-many-hris-employments.d.mts.map +1 -1
  276. package/tools/hris/employments/retrieve-many-hris-employments.d.ts +10 -2
  277. package/tools/hris/employments/retrieve-many-hris-employments.d.ts.map +1 -1
  278. package/tools/hris/employments/retrieve-many-hris-employments.js +1 -1
  279. package/tools/hris/employments/retrieve-many-hris-employments.js.map +1 -1
  280. package/tools/hris/employments/retrieve-many-hris-employments.mjs +1 -1
  281. package/tools/hris/employments/retrieve-many-hris-employments.mjs.map +1 -1
  282. package/tools/hris/individuals/retrieve-many-hris-individuals.d.mts +10 -2
  283. package/tools/hris/individuals/retrieve-many-hris-individuals.d.mts.map +1 -1
  284. package/tools/hris/individuals/retrieve-many-hris-individuals.d.ts +10 -2
  285. package/tools/hris/individuals/retrieve-many-hris-individuals.d.ts.map +1 -1
  286. package/tools/hris/individuals/retrieve-many-hris-individuals.js +1 -1
  287. package/tools/hris/individuals/retrieve-many-hris-individuals.js.map +1 -1
  288. package/tools/hris/individuals/retrieve-many-hris-individuals.mjs +1 -1
  289. package/tools/hris/individuals/retrieve-many-hris-individuals.mjs.map +1 -1
  290. package/tools/hris/pay-statements/retrieve-many-hris-pay-statements.d.mts +10 -2
  291. package/tools/hris/pay-statements/retrieve-many-hris-pay-statements.d.mts.map +1 -1
  292. package/tools/hris/pay-statements/retrieve-many-hris-pay-statements.d.ts +10 -2
  293. package/tools/hris/pay-statements/retrieve-many-hris-pay-statements.d.ts.map +1 -1
  294. package/tools/hris/pay-statements/retrieve-many-hris-pay-statements.js +1 -1
  295. package/tools/hris/pay-statements/retrieve-many-hris-pay-statements.js.map +1 -1
  296. package/tools/hris/pay-statements/retrieve-many-hris-pay-statements.mjs +1 -1
  297. package/tools/hris/pay-statements/retrieve-many-hris-pay-statements.mjs.map +1 -1
  298. package/tools/hris/payments/list-hris-payments.d.mts +10 -2
  299. package/tools/hris/payments/list-hris-payments.d.mts.map +1 -1
  300. package/tools/hris/payments/list-hris-payments.d.ts +10 -2
  301. package/tools/hris/payments/list-hris-payments.d.ts.map +1 -1
  302. package/tools/hris/payments/list-hris-payments.js +1 -1
  303. package/tools/hris/payments/list-hris-payments.js.map +1 -1
  304. package/tools/hris/payments/list-hris-payments.mjs +1 -1
  305. package/tools/hris/payments/list-hris-payments.mjs.map +1 -1
  306. package/tools/index.d.mts +1 -1
  307. package/tools/index.d.mts.map +1 -1
  308. package/tools/index.d.ts +1 -1
  309. package/tools/index.d.ts.map +1 -1
  310. package/tools/index.js +13 -7
  311. package/tools/index.js.map +1 -1
  312. package/tools/index.mjs +11 -5
  313. package/tools/index.mjs.map +1 -1
  314. package/tools/jobs/automated/create-jobs-automated.d.mts +10 -2
  315. package/tools/jobs/automated/create-jobs-automated.d.mts.map +1 -1
  316. package/tools/jobs/automated/create-jobs-automated.d.ts +10 -2
  317. package/tools/jobs/automated/create-jobs-automated.d.ts.map +1 -1
  318. package/tools/jobs/automated/create-jobs-automated.js +1 -1
  319. package/tools/jobs/automated/create-jobs-automated.js.map +1 -1
  320. package/tools/jobs/automated/create-jobs-automated.mjs +1 -1
  321. package/tools/jobs/automated/create-jobs-automated.mjs.map +1 -1
  322. package/tools/jobs/automated/list-jobs-automated.d.mts +10 -2
  323. package/tools/jobs/automated/list-jobs-automated.d.mts.map +1 -1
  324. package/tools/jobs/automated/list-jobs-automated.d.ts +10 -2
  325. package/tools/jobs/automated/list-jobs-automated.d.ts.map +1 -1
  326. package/tools/jobs/automated/list-jobs-automated.js +1 -1
  327. package/tools/jobs/automated/list-jobs-automated.js.map +1 -1
  328. package/tools/jobs/automated/list-jobs-automated.mjs +1 -1
  329. package/tools/jobs/automated/list-jobs-automated.mjs.map +1 -1
  330. package/tools/jobs/automated/retrieve-jobs-automated.d.mts +10 -2
  331. package/tools/jobs/automated/retrieve-jobs-automated.d.mts.map +1 -1
  332. package/tools/jobs/automated/retrieve-jobs-automated.d.ts +10 -2
  333. package/tools/jobs/automated/retrieve-jobs-automated.d.ts.map +1 -1
  334. package/tools/jobs/automated/retrieve-jobs-automated.js +1 -1
  335. package/tools/jobs/automated/retrieve-jobs-automated.js.map +1 -1
  336. package/tools/jobs/automated/retrieve-jobs-automated.mjs +1 -1
  337. package/tools/jobs/automated/retrieve-jobs-automated.mjs.map +1 -1
  338. package/tools/jobs/manual/retrieve-jobs-manual.d.mts +10 -2
  339. package/tools/jobs/manual/retrieve-jobs-manual.d.mts.map +1 -1
  340. package/tools/jobs/manual/retrieve-jobs-manual.d.ts +10 -2
  341. package/tools/jobs/manual/retrieve-jobs-manual.d.ts.map +1 -1
  342. package/tools/jobs/manual/retrieve-jobs-manual.js +1 -1
  343. package/tools/jobs/manual/retrieve-jobs-manual.js.map +1 -1
  344. package/tools/jobs/manual/retrieve-jobs-manual.mjs +1 -1
  345. package/tools/jobs/manual/retrieve-jobs-manual.mjs.map +1 -1
  346. package/tools/payroll/pay-groups/list-payroll-pay-groups.d.mts +10 -2
  347. package/tools/payroll/pay-groups/list-payroll-pay-groups.d.mts.map +1 -1
  348. package/tools/payroll/pay-groups/list-payroll-pay-groups.d.ts +10 -2
  349. package/tools/payroll/pay-groups/list-payroll-pay-groups.d.ts.map +1 -1
  350. package/tools/payroll/pay-groups/list-payroll-pay-groups.js +1 -1
  351. package/tools/payroll/pay-groups/list-payroll-pay-groups.js.map +1 -1
  352. package/tools/payroll/pay-groups/list-payroll-pay-groups.mjs +1 -1
  353. package/tools/payroll/pay-groups/list-payroll-pay-groups.mjs.map +1 -1
  354. package/tools/payroll/pay-groups/retrieve-payroll-pay-groups.d.mts +10 -2
  355. package/tools/payroll/pay-groups/retrieve-payroll-pay-groups.d.mts.map +1 -1
  356. package/tools/payroll/pay-groups/retrieve-payroll-pay-groups.d.ts +10 -2
  357. package/tools/payroll/pay-groups/retrieve-payroll-pay-groups.d.ts.map +1 -1
  358. package/tools/payroll/pay-groups/retrieve-payroll-pay-groups.js +1 -1
  359. package/tools/payroll/pay-groups/retrieve-payroll-pay-groups.js.map +1 -1
  360. package/tools/payroll/pay-groups/retrieve-payroll-pay-groups.mjs +1 -1
  361. package/tools/payroll/pay-groups/retrieve-payroll-pay-groups.mjs.map +1 -1
  362. package/tools/providers/list-providers.d.mts +10 -2
  363. package/tools/providers/list-providers.d.mts.map +1 -1
  364. package/tools/providers/list-providers.d.ts +10 -2
  365. package/tools/providers/list-providers.d.ts.map +1 -1
  366. package/tools/providers/list-providers.js +0 -1
  367. package/tools/providers/list-providers.js.map +1 -1
  368. package/tools/providers/list-providers.mjs +0 -1
  369. package/tools/providers/list-providers.mjs.map +1 -1
  370. package/tools/request-forwarding/forward-request-forwarding.d.mts +10 -2
  371. package/tools/request-forwarding/forward-request-forwarding.d.mts.map +1 -1
  372. package/tools/request-forwarding/forward-request-forwarding.d.ts +10 -2
  373. package/tools/request-forwarding/forward-request-forwarding.d.ts.map +1 -1
  374. package/tools/request-forwarding/forward-request-forwarding.js +1 -1
  375. package/tools/request-forwarding/forward-request-forwarding.js.map +1 -1
  376. package/tools/request-forwarding/forward-request-forwarding.mjs +1 -1
  377. package/tools/request-forwarding/forward-request-forwarding.mjs.map +1 -1
  378. package/tools/sandbox/company/update-sandbox-company.d.mts +10 -2
  379. package/tools/sandbox/company/update-sandbox-company.d.mts.map +1 -1
  380. package/tools/sandbox/company/update-sandbox-company.d.ts +10 -2
  381. package/tools/sandbox/company/update-sandbox-company.d.ts.map +1 -1
  382. package/tools/sandbox/company/update-sandbox-company.js +41 -36
  383. package/tools/sandbox/company/update-sandbox-company.js.map +1 -1
  384. package/tools/sandbox/company/update-sandbox-company.mjs +41 -36
  385. package/tools/sandbox/company/update-sandbox-company.mjs.map +1 -1
  386. package/tools/sandbox/connections/accounts/create-connections-sandbox-accounts.d.mts +10 -2
  387. package/tools/sandbox/connections/accounts/create-connections-sandbox-accounts.d.mts.map +1 -1
  388. package/tools/sandbox/connections/accounts/create-connections-sandbox-accounts.d.ts +10 -2
  389. package/tools/sandbox/connections/accounts/create-connections-sandbox-accounts.d.ts.map +1 -1
  390. package/tools/sandbox/connections/accounts/create-connections-sandbox-accounts.js +1 -1
  391. package/tools/sandbox/connections/accounts/create-connections-sandbox-accounts.js.map +1 -1
  392. package/tools/sandbox/connections/accounts/create-connections-sandbox-accounts.mjs +1 -1
  393. package/tools/sandbox/connections/accounts/create-connections-sandbox-accounts.mjs.map +1 -1
  394. package/tools/sandbox/connections/accounts/update-connections-sandbox-accounts.d.mts +10 -2
  395. package/tools/sandbox/connections/accounts/update-connections-sandbox-accounts.d.mts.map +1 -1
  396. package/tools/sandbox/connections/accounts/update-connections-sandbox-accounts.d.ts +10 -2
  397. package/tools/sandbox/connections/accounts/update-connections-sandbox-accounts.d.ts.map +1 -1
  398. package/tools/sandbox/connections/accounts/update-connections-sandbox-accounts.js +6 -1
  399. package/tools/sandbox/connections/accounts/update-connections-sandbox-accounts.js.map +1 -1
  400. package/tools/sandbox/connections/accounts/update-connections-sandbox-accounts.mjs +6 -1
  401. package/tools/sandbox/connections/accounts/update-connections-sandbox-accounts.mjs.map +1 -1
  402. package/tools/sandbox/connections/create-sandbox-connections.d.mts +10 -2
  403. package/tools/sandbox/connections/create-sandbox-connections.d.mts.map +1 -1
  404. package/tools/sandbox/connections/create-sandbox-connections.d.ts +10 -2
  405. package/tools/sandbox/connections/create-sandbox-connections.d.ts.map +1 -1
  406. package/tools/sandbox/connections/create-sandbox-connections.js +1 -1
  407. package/tools/sandbox/connections/create-sandbox-connections.js.map +1 -1
  408. package/tools/sandbox/connections/create-sandbox-connections.mjs +1 -1
  409. package/tools/sandbox/connections/create-sandbox-connections.mjs.map +1 -1
  410. package/tools/sandbox/directory/create-sandbox-directory.d.mts +10 -2
  411. package/tools/sandbox/directory/create-sandbox-directory.d.mts.map +1 -1
  412. package/tools/sandbox/directory/create-sandbox-directory.d.ts +10 -2
  413. package/tools/sandbox/directory/create-sandbox-directory.d.ts.map +1 -1
  414. package/tools/sandbox/directory/create-sandbox-directory.js +79 -71
  415. package/tools/sandbox/directory/create-sandbox-directory.js.map +1 -1
  416. package/tools/sandbox/directory/create-sandbox-directory.mjs +79 -71
  417. package/tools/sandbox/directory/create-sandbox-directory.mjs.map +1 -1
  418. package/tools/sandbox/employment/update-sandbox-employment.d.mts +10 -2
  419. package/tools/sandbox/employment/update-sandbox-employment.d.mts.map +1 -1
  420. package/tools/sandbox/employment/update-sandbox-employment.d.ts +10 -2
  421. package/tools/sandbox/employment/update-sandbox-employment.d.ts.map +1 -1
  422. package/tools/sandbox/employment/update-sandbox-employment.js +60 -52
  423. package/tools/sandbox/employment/update-sandbox-employment.js.map +1 -1
  424. package/tools/sandbox/employment/update-sandbox-employment.mjs +60 -52
  425. package/tools/sandbox/employment/update-sandbox-employment.mjs.map +1 -1
  426. package/tools/sandbox/individual/update-sandbox-individual.d.mts +10 -2
  427. package/tools/sandbox/individual/update-sandbox-individual.d.mts.map +1 -1
  428. package/tools/sandbox/individual/update-sandbox-individual.d.ts +10 -2
  429. package/tools/sandbox/individual/update-sandbox-individual.d.ts.map +1 -1
  430. package/tools/sandbox/individual/update-sandbox-individual.js +16 -11
  431. package/tools/sandbox/individual/update-sandbox-individual.js.map +1 -1
  432. package/tools/sandbox/individual/update-sandbox-individual.mjs +16 -11
  433. package/tools/sandbox/individual/update-sandbox-individual.mjs.map +1 -1
  434. package/tools/sandbox/jobs/configuration/retrieve-jobs-sandbox-configuration.d.mts +10 -2
  435. package/tools/sandbox/jobs/configuration/retrieve-jobs-sandbox-configuration.d.mts.map +1 -1
  436. package/tools/sandbox/jobs/configuration/retrieve-jobs-sandbox-configuration.d.ts +10 -2
  437. package/tools/sandbox/jobs/configuration/retrieve-jobs-sandbox-configuration.d.ts.map +1 -1
  438. package/tools/sandbox/jobs/configuration/retrieve-jobs-sandbox-configuration.js +0 -1
  439. package/tools/sandbox/jobs/configuration/retrieve-jobs-sandbox-configuration.js.map +1 -1
  440. package/tools/sandbox/jobs/configuration/retrieve-jobs-sandbox-configuration.mjs +0 -1
  441. package/tools/sandbox/jobs/configuration/retrieve-jobs-sandbox-configuration.mjs.map +1 -1
  442. package/tools/sandbox/jobs/configuration/update-jobs-sandbox-configuration.d.mts +10 -2
  443. package/tools/sandbox/jobs/configuration/update-jobs-sandbox-configuration.d.mts.map +1 -1
  444. package/tools/sandbox/jobs/configuration/update-jobs-sandbox-configuration.d.ts +10 -2
  445. package/tools/sandbox/jobs/configuration/update-jobs-sandbox-configuration.d.ts.map +1 -1
  446. package/tools/sandbox/jobs/configuration/update-jobs-sandbox-configuration.js +1 -1
  447. package/tools/sandbox/jobs/configuration/update-jobs-sandbox-configuration.js.map +1 -1
  448. package/tools/sandbox/jobs/configuration/update-jobs-sandbox-configuration.mjs +1 -1
  449. package/tools/sandbox/jobs/configuration/update-jobs-sandbox-configuration.mjs.map +1 -1
  450. package/tools/sandbox/jobs/create-sandbox-jobs.d.mts +10 -2
  451. package/tools/sandbox/jobs/create-sandbox-jobs.d.mts.map +1 -1
  452. package/tools/sandbox/jobs/create-sandbox-jobs.d.ts +10 -2
  453. package/tools/sandbox/jobs/create-sandbox-jobs.d.ts.map +1 -1
  454. package/tools/sandbox/jobs/create-sandbox-jobs.js +1 -1
  455. package/tools/sandbox/jobs/create-sandbox-jobs.js.map +1 -1
  456. package/tools/sandbox/jobs/create-sandbox-jobs.mjs +1 -1
  457. package/tools/sandbox/jobs/create-sandbox-jobs.mjs.map +1 -1
  458. package/tools/sandbox/payment/create-sandbox-payment.d.mts +10 -2
  459. package/tools/sandbox/payment/create-sandbox-payment.d.mts.map +1 -1
  460. package/tools/sandbox/payment/create-sandbox-payment.d.ts +10 -2
  461. package/tools/sandbox/payment/create-sandbox-payment.d.ts.map +1 -1
  462. package/tools/sandbox/payment/create-sandbox-payment.js +48 -40
  463. package/tools/sandbox/payment/create-sandbox-payment.js.map +1 -1
  464. package/tools/sandbox/payment/create-sandbox-payment.mjs +48 -40
  465. package/tools/sandbox/payment/create-sandbox-payment.mjs.map +1 -1
@@ -19,8 +19,7 @@ export const tool: Tool = {
19
19
  },
20
20
  };
21
21
 
22
- export const handler = (client: Finch, args: any) => {
23
- const {} = args;
22
+ export const handler = (client: Finch, args: Record<string, unknown> | undefined) => {
24
23
  return client.account.introspect();
25
24
  };
26
25
 
@@ -75,8 +75,8 @@ export const tool: Tool = {
75
75
  },
76
76
  };
77
77
 
78
- export const handler = (client: Finch, args: any) => {
79
- const { ...body } = args;
78
+ export const handler = (client: Finch, args: Record<string, unknown> | undefined) => {
79
+ const body = args as any;
80
80
  return client.connect.sessions.new(body);
81
81
  };
82
82
 
@@ -52,8 +52,8 @@ export const tool: Tool = {
52
52
  },
53
53
  };
54
54
 
55
- export const handler = (client: Finch, args: any) => {
56
- const { ...body } = args;
55
+ export const handler = (client: Finch, args: Record<string, unknown> | undefined) => {
56
+ const body = args as any;
57
57
  return client.connect.sessions.reauthenticate(body);
58
58
  };
59
59
 
@@ -17,6 +17,33 @@ export const tool: Tool = {
17
17
  inputSchema: {
18
18
  type: 'object',
19
19
  properties: {
20
+ company_contribution: {
21
+ type: 'object',
22
+ title: 'BenefitCompanyMatchContribution',
23
+ description: 'The company match for this benefit.',
24
+ properties: {
25
+ tiers: {
26
+ type: 'array',
27
+ items: {
28
+ type: 'object',
29
+ properties: {
30
+ match: {
31
+ type: 'integer',
32
+ },
33
+ threshold: {
34
+ type: 'integer',
35
+ },
36
+ },
37
+ required: [],
38
+ },
39
+ },
40
+ type: {
41
+ type: 'string',
42
+ enum: ['match'],
43
+ },
44
+ },
45
+ required: [],
46
+ },
20
47
  description: {
21
48
  type: 'string',
22
49
  title: 'BenefitDescription',
@@ -24,12 +51,20 @@ export const tool: Tool = {
24
51
  'Name of the benefit as it appears in the provider and pay statements. Recommend limiting this to <30 characters due to limitations in specific providers (e.g. Justworks).',
25
52
  },
26
53
  frequency: {
54
+ $ref: '#/$defs/benefit_frequency',
55
+ },
56
+ type: {
57
+ $ref: '#/$defs/benefit_type',
58
+ },
59
+ },
60
+ $defs: {
61
+ benefit_frequency: {
27
62
  type: 'string',
28
63
  title: 'BenefitFrequency',
29
64
  description: 'The frequency of the benefit deduction/contribution.',
30
65
  enum: ['one_time', 'every_paycheck', 'monthly'],
31
66
  },
32
- type: {
67
+ benefit_type: {
33
68
  type: 'string',
34
69
  title: 'BenefitType',
35
70
  description: 'Type of benefit.',
@@ -59,8 +94,8 @@ export const tool: Tool = {
59
94
  },
60
95
  };
61
96
 
62
- export const handler = (client: Finch, args: any) => {
63
- const { ...body } = args;
97
+ export const handler = (client: Finch, args: Record<string, unknown> | undefined) => {
98
+ const body = args as any;
64
99
  return client.hris.benefits.create(body);
65
100
  };
66
101
 
@@ -93,8 +93,8 @@ export const tool: Tool = {
93
93
  },
94
94
  };
95
95
 
96
- export const handler = (client: Finch, args: any) => {
97
- const { benefit_id, ...body } = args;
96
+ export const handler = (client: Finch, args: Record<string, unknown> | undefined) => {
97
+ const { benefit_id, ...body } = args as any;
98
98
  return client.hris.benefits.individuals.enrollMany(benefit_id, body['individuals']);
99
99
  };
100
100
 
@@ -23,8 +23,8 @@ export const tool: Tool = {
23
23
  },
24
24
  };
25
25
 
26
- export const handler = (client: Finch, args: any) => {
27
- const { benefit_id } = args;
26
+ export const handler = (client: Finch, args: Record<string, unknown> | undefined) => {
27
+ const { benefit_id, ...body } = args as any;
28
28
  return client.hris.benefits.individuals.enrolledIds(benefit_id);
29
29
  };
30
30
 
@@ -28,8 +28,8 @@ export const tool: Tool = {
28
28
  },
29
29
  };
30
30
 
31
- export const handler = (client: Finch, args: any) => {
32
- const { benefit_id, ...body } = args;
31
+ export const handler = (client: Finch, args: Record<string, unknown> | undefined) => {
32
+ const { benefit_id, ...body } = args as any;
33
33
  return client.hris.benefits.individuals.retrieveManyBenefits(benefit_id, body);
34
34
  };
35
35
 
@@ -30,8 +30,8 @@ export const tool: Tool = {
30
30
  },
31
31
  };
32
32
 
33
- export const handler = (client: Finch, args: any) => {
34
- const { benefit_id, ...body } = args;
33
+ export const handler = (client: Finch, args: Record<string, unknown> | undefined) => {
34
+ const { benefit_id, ...body } = args as any;
35
35
  return client.hris.benefits.individuals.unenrollMany(benefit_id, body);
36
36
  };
37
37
 
@@ -19,8 +19,7 @@ export const tool: Tool = {
19
19
  },
20
20
  };
21
21
 
22
- export const handler = (client: Finch, args: any) => {
23
- const {} = args;
22
+ export const handler = (client: Finch, args: Record<string, unknown> | undefined) => {
24
23
  return client.hris.benefits.list();
25
24
  };
26
25
 
@@ -19,8 +19,7 @@ export const tool: Tool = {
19
19
  },
20
20
  };
21
21
 
22
- export const handler = (client: Finch, args: any) => {
23
- const {} = args;
22
+ export const handler = (client: Finch, args: Record<string, unknown> | undefined) => {
24
23
  return client.hris.benefits.listSupportedBenefits();
25
24
  };
26
25
 
@@ -23,8 +23,8 @@ export const tool: Tool = {
23
23
  },
24
24
  };
25
25
 
26
- export const handler = (client: Finch, args: any) => {
27
- const { benefit_id } = args;
26
+ export const handler = (client: Finch, args: Record<string, unknown> | undefined) => {
27
+ const { benefit_id, ...body } = args as any;
28
28
  return client.hris.benefits.retrieve(benefit_id);
29
29
  };
30
30
 
@@ -27,8 +27,8 @@ export const tool: Tool = {
27
27
  },
28
28
  };
29
29
 
30
- export const handler = (client: Finch, args: any) => {
31
- const { benefit_id, ...body } = args;
30
+ export const handler = (client: Finch, args: Record<string, unknown> | undefined) => {
31
+ const { benefit_id, ...body } = args as any;
32
32
  return client.hris.benefits.update(benefit_id, body);
33
33
  };
34
34
 
@@ -50,8 +50,8 @@ export const tool: Tool = {
50
50
  },
51
51
  };
52
52
 
53
- export const handler = (client: Finch, args: any) => {
54
- const { ...body } = args;
53
+ export const handler = (client: Finch, args: Record<string, unknown> | undefined) => {
54
+ const body = args as any;
55
55
  return client.hris.company.payStatementItem.list(body);
56
56
  };
57
57
 
@@ -70,8 +70,8 @@ export const tool: Tool = {
70
70
  },
71
71
  };
72
72
 
73
- export const handler = (client: Finch, args: any) => {
74
- const { ...body } = args;
73
+ export const handler = (client: Finch, args: Record<string, unknown> | undefined) => {
74
+ const body = args as any;
75
75
  return client.hris.company.payStatementItem.rules.create(body);
76
76
  };
77
77
 
@@ -24,8 +24,8 @@ export const tool: Tool = {
24
24
  },
25
25
  };
26
26
 
27
- export const handler = (client: Finch, args: any) => {
28
- const { rule_id } = args;
27
+ export const handler = (client: Finch, args: Record<string, unknown> | undefined) => {
28
+ const { rule_id, ...body } = args as any;
29
29
  return client.hris.company.payStatementItem.rules.delete(rule_id);
30
30
  };
31
31
 
@@ -20,8 +20,7 @@ export const tool: Tool = {
20
20
  },
21
21
  };
22
22
 
23
- export const handler = (client: Finch, args: any) => {
24
- const {} = args;
23
+ export const handler = (client: Finch, args: Record<string, unknown> | undefined) => {
25
24
  return client.hris.company.payStatementItem.rules.list();
26
25
  };
27
26
 
@@ -27,8 +27,8 @@ export const tool: Tool = {
27
27
  },
28
28
  };
29
29
 
30
- export const handler = (client: Finch, args: any) => {
31
- const { rule_id, ...body } = args;
30
+ export const handler = (client: Finch, args: Record<string, unknown> | undefined) => {
31
+ const { rule_id, ...body } = args as any;
32
32
  return client.hris.company.payStatementItem.rules.update(rule_id, body);
33
33
  };
34
34
 
@@ -19,8 +19,7 @@ export const tool: Tool = {
19
19
  },
20
20
  };
21
21
 
22
- export const handler = (client: Finch, args: any) => {
23
- const {} = args;
22
+ export const handler = (client: Finch, args: Record<string, unknown> | undefined) => {
24
23
  return client.hris.company.retrieve();
25
24
  };
26
25
 
@@ -28,8 +28,8 @@ export const tool: Tool = {
28
28
  },
29
29
  };
30
30
 
31
- export const handler = (client: Finch, args: any) => {
32
- const { ...body } = args;
31
+ export const handler = (client: Finch, args: Record<string, unknown> | undefined) => {
32
+ const body = args as any;
33
33
  return client.hris.directory.list(body);
34
34
  };
35
35
 
@@ -28,8 +28,8 @@ export const tool: Tool = {
28
28
  },
29
29
  };
30
30
 
31
- export const handler = (client: Finch, args: any) => {
32
- const { ...body } = args;
31
+ export const handler = (client: Finch, args: Record<string, unknown> | undefined) => {
32
+ const body = args as any;
33
33
  return client.hris.directory.listIndividuals(body);
34
34
  };
35
35
 
@@ -45,8 +45,8 @@ export const tool: Tool = {
45
45
  },
46
46
  };
47
47
 
48
- export const handler = (client: Finch, args: any) => {
49
- const { ...body } = args;
48
+ export const handler = (client: Finch, args: Record<string, unknown> | undefined) => {
49
+ const body = args as any;
50
50
  return client.hris.documents.list(body);
51
51
  };
52
52
 
@@ -24,8 +24,8 @@ export const tool: Tool = {
24
24
  },
25
25
  };
26
26
 
27
- export const handler = (client: Finch, args: any) => {
28
- const { document_id } = args;
27
+ export const handler = (client: Finch, args: Record<string, unknown> | undefined) => {
28
+ const { document_id, ...body } = args as any;
29
29
  return client.hris.documents.retreive(document_id);
30
30
  };
31
31
 
@@ -35,8 +35,8 @@ export const tool: Tool = {
35
35
  },
36
36
  };
37
37
 
38
- export const handler = (client: Finch, args: any) => {
39
- const { ...body } = args;
38
+ export const handler = (client: Finch, args: Record<string, unknown> | undefined) => {
39
+ const body = args as any;
40
40
  return client.hris.employments.retrieveMany(body);
41
41
  };
42
42
 
@@ -44,8 +44,8 @@ export const tool: Tool = {
44
44
  },
45
45
  };
46
46
 
47
- export const handler = (client: Finch, args: any) => {
48
- const { ...body } = args;
47
+ export const handler = (client: Finch, args: Record<string, unknown> | undefined) => {
48
+ const body = args as any;
49
49
  return client.hris.individuals.retrieveMany(body);
50
50
  };
51
51
 
@@ -43,8 +43,8 @@ export const tool: Tool = {
43
43
  },
44
44
  };
45
45
 
46
- export const handler = (client: Finch, args: any) => {
47
- const { ...body } = args;
46
+ export const handler = (client: Finch, args: Record<string, unknown> | undefined) => {
47
+ const body = args as any;
48
48
  return client.hris.payStatements.retrieveMany(body);
49
49
  };
50
50
 
@@ -30,8 +30,8 @@ export const tool: Tool = {
30
30
  },
31
31
  };
32
32
 
33
- export const handler = (client: Finch, args: any) => {
34
- const { ...body } = args;
33
+ export const handler = (client: Finch, args: Record<string, unknown> | undefined) => {
34
+ const body = args as any;
35
35
  return client.hris.payments.list(body);
36
36
  };
37
37
 
@@ -51,7 +51,7 @@ import list_payroll_pay_groups from './payroll/pay-groups/list-payroll-pay-group
51
51
  import new_connect_sessions from './connect/sessions/new-connect-sessions';
52
52
  import reauthenticate_connect_sessions from './connect/sessions/reauthenticate-connect-sessions';
53
53
 
54
- export type HandlerFunction = (client: Finch, args: any) => Promise<any>;
54
+ export type HandlerFunction = (client: Finch, args: Record<string, unknown> | undefined) => Promise<any>;
55
55
 
56
56
  export type Metadata = {
57
57
  resource: string;
@@ -126,22 +126,32 @@ export type Filter = {
126
126
  };
127
127
 
128
128
  export function query(filters: Filter[], endpoints: Endpoint[]): Endpoint[] {
129
- if (filters.length === 0) {
130
- return endpoints;
131
- }
132
- const allExcludes = filters.every((filter) => filter.op === 'exclude');
129
+ const allExcludes = filters.length > 0 && filters.every((filter) => filter.op === 'exclude');
130
+ const unmatchedFilters = new Set(filters);
133
131
 
134
- return endpoints.filter((endpoint: Endpoint) => {
132
+ const filtered = endpoints.filter((endpoint: Endpoint) => {
135
133
  let included = false || allExcludes;
136
134
 
137
135
  for (const filter of filters) {
138
136
  if (match(filter, endpoint)) {
137
+ unmatchedFilters.delete(filter);
139
138
  included = filter.op === 'include';
140
139
  }
141
140
  }
142
141
 
143
142
  return included;
144
143
  });
144
+
145
+ // Check if any filters didn't match
146
+ if (unmatchedFilters.size > 0) {
147
+ throw new Error(
148
+ `The following filters did not match any endpoints: ${[...unmatchedFilters]
149
+ .map((f) => `${f.type}=${f.value}`)
150
+ .join(', ')}`,
151
+ );
152
+ }
153
+
154
+ return filtered;
145
155
  }
146
156
 
147
157
  function match({ type, value }: Filter, endpoint: Endpoint): boolean {
@@ -51,8 +51,8 @@ export const tool: Tool = {
51
51
  },
52
52
  };
53
53
 
54
- export const handler = (client: Finch, args: any) => {
55
- const { ...body } = args;
54
+ export const handler = (client: Finch, args: Record<string, unknown> | undefined) => {
55
+ const body = args as any;
56
56
  return client.jobs.automated.create(body);
57
57
  };
58
58
 
@@ -29,8 +29,8 @@ export const tool: Tool = {
29
29
  },
30
30
  };
31
31
 
32
- export const handler = (client: Finch, args: any) => {
33
- const { ...body } = args;
32
+ export const handler = (client: Finch, args: Record<string, unknown> | undefined) => {
33
+ const body = args as any;
34
34
  return client.jobs.automated.list(body);
35
35
  };
36
36
 
@@ -23,8 +23,8 @@ export const tool: Tool = {
23
23
  },
24
24
  };
25
25
 
26
- export const handler = (client: Finch, args: any) => {
27
- const { job_id } = args;
26
+ export const handler = (client: Finch, args: Record<string, unknown> | undefined) => {
27
+ const { job_id, ...body } = args as any;
28
28
  return client.jobs.automated.retrieve(job_id);
29
29
  };
30
30
 
@@ -24,8 +24,8 @@ export const tool: Tool = {
24
24
  },
25
25
  };
26
26
 
27
- export const handler = (client: Finch, args: any) => {
28
- const { job_id } = args;
27
+ export const handler = (client: Finch, args: Record<string, unknown> | undefined) => {
28
+ const { job_id, ...body } = args as any;
29
29
  return client.jobs.manual.retrieve(job_id);
30
30
  };
31
31
 
@@ -29,8 +29,8 @@ export const tool: Tool = {
29
29
  },
30
30
  };
31
31
 
32
- export const handler = (client: Finch, args: any) => {
33
- const { ...body } = args;
32
+ export const handler = (client: Finch, args: Record<string, unknown> | undefined) => {
33
+ const body = args as any;
34
34
  return client.payroll.payGroups.list(body);
35
35
  };
36
36
 
@@ -23,8 +23,8 @@ export const tool: Tool = {
23
23
  },
24
24
  };
25
25
 
26
- export const handler = (client: Finch, args: any) => {
27
- const { pay_group_id } = args;
26
+ export const handler = (client: Finch, args: Record<string, unknown> | undefined) => {
27
+ const { pay_group_id, ...body } = args as any;
28
28
  return client.payroll.payGroups.retrieve(pay_group_id);
29
29
  };
30
30
 
@@ -19,8 +19,7 @@ export const tool: Tool = {
19
19
  },
20
20
  };
21
21
 
22
- export const handler = (client: Finch, args: any) => {
23
- const {} = args;
22
+ export const handler = (client: Finch, args: Record<string, unknown> | undefined) => {
24
23
  return client.providers.list();
25
24
  };
26
25
 
@@ -46,8 +46,8 @@ export const tool: Tool = {
46
46
  },
47
47
  };
48
48
 
49
- export const handler = (client: Finch, args: any) => {
50
- const { ...body } = args;
49
+ export const handler = (client: Finch, args: Record<string, unknown> | undefined) => {
50
+ const body = args as any;
51
51
  return client.requestForwarding.forward(body);
52
52
  };
53
53
 
@@ -101,41 +101,7 @@ export const tool: Tool = {
101
101
  locations: {
102
102
  type: 'array',
103
103
  items: {
104
- type: 'object',
105
- title: 'Location',
106
- properties: {
107
- city: {
108
- type: 'string',
109
- description: 'City, district, suburb, town, or village.',
110
- },
111
- country: {
112
- type: 'string',
113
- description: 'The 2-letter ISO 3166 country code.',
114
- },
115
- line1: {
116
- type: 'string',
117
- description: 'Street address or PO box.',
118
- },
119
- line2: {
120
- type: 'string',
121
- description: 'Apartment, suite, unit, or building.',
122
- },
123
- name: {
124
- type: 'string',
125
- },
126
- postal_code: {
127
- type: 'string',
128
- description: 'The postal code or zip code.',
129
- },
130
- source_id: {
131
- type: 'string',
132
- },
133
- state: {
134
- type: 'string',
135
- description: 'The state code.',
136
- },
137
- },
138
- required: [],
104
+ $ref: '#/$defs/location',
139
105
  },
140
106
  },
141
107
  primary_email: {
@@ -148,11 +114,50 @@ export const tool: Tool = {
148
114
  'The phone number of the main administrator on the account. Format: E.164, with extension where applicable, e.g. `+NNNNNNNNNNN xExtension`',
149
115
  },
150
116
  },
117
+ $defs: {
118
+ location: {
119
+ type: 'object',
120
+ title: 'Location',
121
+ properties: {
122
+ city: {
123
+ type: 'string',
124
+ description: 'City, district, suburb, town, or village.',
125
+ },
126
+ country: {
127
+ type: 'string',
128
+ description: 'The 2-letter ISO 3166 country code.',
129
+ },
130
+ line1: {
131
+ type: 'string',
132
+ description: 'Street address or PO box.',
133
+ },
134
+ line2: {
135
+ type: 'string',
136
+ description: 'Apartment, suite, unit, or building.',
137
+ },
138
+ postal_code: {
139
+ type: 'string',
140
+ description: 'The postal code or zip code.',
141
+ },
142
+ state: {
143
+ type: 'string',
144
+ description: 'The state code.',
145
+ },
146
+ name: {
147
+ type: 'string',
148
+ },
149
+ source_id: {
150
+ type: 'string',
151
+ },
152
+ },
153
+ required: ['city', 'country', 'line1', 'line2', 'postal_code', 'state'],
154
+ },
155
+ },
151
156
  },
152
157
  };
153
158
 
154
- export const handler = (client: Finch, args: any) => {
155
- const { ...body } = args;
159
+ export const handler = (client: Finch, args: Record<string, unknown> | undefined) => {
160
+ const body = args as any;
156
161
  return client.sandbox.company.update(body);
157
162
  };
158
163
 
@@ -40,8 +40,8 @@ export const tool: Tool = {
40
40
  },
41
41
  };
42
42
 
43
- export const handler = (client: Finch, args: any) => {
44
- const { ...body } = args;
43
+ export const handler = (client: Finch, args: Record<string, unknown> | undefined) => {
44
+ const body = args as any;
45
45
  return client.sandbox.connections.accounts.create(body);
46
46
  };
47
47
 
@@ -18,6 +18,11 @@ export const tool: Tool = {
18
18
  type: 'object',
19
19
  properties: {
20
20
  connection_status: {
21
+ $ref: '#/$defs/connection_status_type',
22
+ },
23
+ },
24
+ $defs: {
25
+ connection_status_type: {
21
26
  type: 'string',
22
27
  title: 'ConnectionStatus',
23
28
  enum: ['pending', 'processing', 'connected', 'error_no_account_setup', 'error_permissions', 'reauth'],
@@ -26,8 +31,8 @@ export const tool: Tool = {
26
31
  },
27
32
  };
28
33
 
29
- export const handler = (client: Finch, args: any) => {
30
- const { ...body } = args;
34
+ export const handler = (client: Finch, args: Record<string, unknown> | undefined) => {
35
+ const body = args as any;
31
36
  return client.sandbox.connections.accounts.update(body);
32
37
  };
33
38
 
@@ -40,8 +40,8 @@ export const tool: Tool = {
40
40
  },
41
41
  };
42
42
 
43
- export const handler = (client: Finch, args: any) => {
44
- const { ...body } = args;
43
+ export const handler = (client: Finch, args: Record<string, unknown> | undefined) => {
44
+ const body = args as any;
45
45
  return client.sandbox.connections.create(body);
46
46
  };
47
47