@kombo-api/sdk 1.0.0 → 1.0.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 (364) hide show
  1. package/README.md +7 -3
  2. package/esm/funcs/assessmentGetOpenOrders.js.map +1 -1
  3. package/esm/funcs/assessmentUpdateOrderResult.js.map +1 -1
  4. package/esm/funcs/atsAddApplicationAttachment.js.map +1 -1
  5. package/esm/funcs/atsAddApplicationNote.js.map +1 -1
  6. package/esm/funcs/atsAddApplicationResultLink.js.map +1 -1
  7. package/esm/funcs/atsAddCandidateAttachment.js.map +1 -1
  8. package/esm/funcs/atsAddCandidateResultLink.js.map +1 -1
  9. package/esm/funcs/atsAddCandidateTag.js.map +1 -1
  10. package/esm/funcs/atsCreateApplication.js.map +1 -1
  11. package/esm/funcs/atsGetApplicationAttachments.js.map +1 -1
  12. package/esm/funcs/atsGetApplicationStages.js.map +1 -1
  13. package/esm/funcs/atsGetApplications.js.map +1 -1
  14. package/esm/funcs/atsGetCandidateAttachments.js.map +1 -1
  15. package/esm/funcs/atsGetCandidates.js.map +1 -1
  16. package/esm/funcs/atsGetInterviews.js.map +1 -1
  17. package/esm/funcs/atsGetJobs.js.map +1 -1
  18. package/esm/funcs/atsGetOffers.js.map +1 -1
  19. package/esm/funcs/atsGetRejectionReasons.js.map +1 -1
  20. package/esm/funcs/atsGetRoles.d.ts +25 -0
  21. package/esm/funcs/atsGetRoles.d.ts.map +1 -0
  22. package/esm/funcs/atsGetRoles.js +125 -0
  23. package/esm/funcs/atsGetRoles.js.map +1 -0
  24. package/esm/funcs/atsGetTags.js.map +1 -1
  25. package/esm/funcs/atsGetUsers.js.map +1 -1
  26. package/esm/funcs/atsMoveApplicationToStage.d.ts +2 -1
  27. package/esm/funcs/atsMoveApplicationToStage.d.ts.map +1 -1
  28. package/esm/funcs/atsMoveApplicationToStage.js +2 -1
  29. package/esm/funcs/atsMoveApplicationToStage.js.map +1 -1
  30. package/esm/funcs/atsRejectApplication.js.map +1 -1
  31. package/esm/funcs/atsRemoveCandidateTag.js.map +1 -1
  32. package/esm/funcs/connectGetIntegrationByToken.js.map +1 -1
  33. package/esm/funcs/generalCreateReconnectionLink.js.map +1 -1
  34. package/esm/funcs/generalDeleteIntegration.js.map +1 -1
  35. package/esm/funcs/generalGetCustomFields.js.map +1 -1
  36. package/esm/funcs/generalGetIntegrationDetails.js.map +1 -1
  37. package/esm/funcs/generalGetIntegrationFields.js.map +1 -1
  38. package/esm/funcs/generalGetTools.js.map +1 -1
  39. package/esm/funcs/generalSendPassthroughRequest.d.ts +18 -5
  40. package/esm/funcs/generalSendPassthroughRequest.d.ts.map +1 -1
  41. package/esm/funcs/generalSendPassthroughRequest.js +18 -5
  42. package/esm/funcs/generalSendPassthroughRequest.js.map +1 -1
  43. package/esm/funcs/generalSetIntegrationEnabled.js.map +1 -1
  44. package/esm/funcs/generalUpdateCustomFieldMapping.js.map +1 -1
  45. package/esm/funcs/generalUpdateIntegrationField.js.map +1 -1
  46. package/esm/funcs/hrisAddEmployeeDocument.js.map +1 -1
  47. package/esm/funcs/hrisDeleteAbsence.js.map +1 -1
  48. package/esm/funcs/hrisGetAbsenceTypes.js.map +1 -1
  49. package/esm/funcs/hrisGetAbsences.js.map +1 -1
  50. package/esm/funcs/hrisGetEmployeeDocumentCategories.js.map +1 -1
  51. package/esm/funcs/hrisGetEmployees.js.map +1 -1
  52. package/esm/funcs/hrisGetEmployments.js.map +1 -1
  53. package/esm/funcs/hrisGetGroups.js.map +1 -1
  54. package/esm/funcs/hrisGetLegalEntities.js.map +1 -1
  55. package/esm/funcs/hrisGetLocations.js.map +1 -1
  56. package/esm/funcs/hrisGetPerformanceReviewCycles.d.ts +0 -2
  57. package/esm/funcs/hrisGetPerformanceReviewCycles.d.ts.map +1 -1
  58. package/esm/funcs/hrisGetPerformanceReviewCycles.js +0 -2
  59. package/esm/funcs/hrisGetPerformanceReviewCycles.js.map +1 -1
  60. package/esm/funcs/hrisGetPerformanceReviews.d.ts +0 -2
  61. package/esm/funcs/hrisGetPerformanceReviews.d.ts.map +1 -1
  62. package/esm/funcs/hrisGetPerformanceReviews.js +0 -2
  63. package/esm/funcs/hrisGetPerformanceReviews.js.map +1 -1
  64. package/esm/funcs/hrisGetStaffingEntities.d.ts +33 -0
  65. package/esm/funcs/hrisGetStaffingEntities.d.ts.map +1 -0
  66. package/esm/funcs/hrisGetStaffingEntities.js +134 -0
  67. package/esm/funcs/hrisGetStaffingEntities.js.map +1 -0
  68. package/esm/funcs/hrisGetTimeOffBalances.js.map +1 -1
  69. package/esm/funcs/hrisGetTimesheets.js.map +1 -1
  70. package/esm/lib/config.d.ts +3 -3
  71. package/esm/lib/config.js +3 -3
  72. package/esm/lib/config.js.map +1 -1
  73. package/esm/lib/encodings.d.ts.map +1 -1
  74. package/esm/lib/encodings.js +20 -5
  75. package/esm/lib/encodings.js.map +1 -1
  76. package/esm/lib/files.d.ts +13 -0
  77. package/esm/lib/files.d.ts.map +1 -1
  78. package/esm/lib/files.js +18 -0
  79. package/esm/lib/files.js.map +1 -1
  80. package/esm/lib/matchers.d.ts.map +1 -1
  81. package/esm/lib/matchers.js +0 -1
  82. package/esm/lib/matchers.js.map +1 -1
  83. package/esm/lib/sdks.d.ts.map +1 -1
  84. package/esm/lib/sdks.js +8 -4
  85. package/esm/lib/sdks.js.map +1 -1
  86. package/esm/lib/security.d.ts.map +1 -1
  87. package/esm/lib/security.js +1 -2
  88. package/esm/lib/security.js.map +1 -1
  89. package/esm/lib/url.d.ts.map +1 -1
  90. package/esm/lib/url.js +4 -2
  91. package/esm/lib/url.js.map +1 -1
  92. package/esm/models/assessmentorderreceivedwebhookpayload.d.ts +5 -2
  93. package/esm/models/assessmentorderreceivedwebhookpayload.d.ts.map +1 -1
  94. package/esm/models/assessmentorderreceivedwebhookpayload.js +5 -2
  95. package/esm/models/assessmentorderreceivedwebhookpayload.js.map +1 -1
  96. package/esm/models/datachangedwebhookpayload.d.ts +7 -0
  97. package/esm/models/datachangedwebhookpayload.d.ts.map +1 -1
  98. package/esm/models/datachangedwebhookpayload.js +7 -0
  99. package/esm/models/datachangedwebhookpayload.js.map +1 -1
  100. package/esm/models/getassessmentordersopenpositiveresponse.d.ts +4 -1
  101. package/esm/models/getassessmentordersopenpositiveresponse.d.ts.map +1 -1
  102. package/esm/models/getassessmentordersopenpositiveresponse.js +4 -1
  103. package/esm/models/getassessmentordersopenpositiveresponse.js.map +1 -1
  104. package/esm/models/getatsjobspositiveresponse.d.ts +67 -1
  105. package/esm/models/getatsjobspositiveresponse.d.ts.map +1 -1
  106. package/esm/models/getatsjobspositiveresponse.js +36 -0
  107. package/esm/models/getatsjobspositiveresponse.js.map +1 -1
  108. package/esm/models/getatsrolespositiveresponse.d.ts +85 -0
  109. package/esm/models/getatsrolespositiveresponse.d.ts.map +1 -0
  110. package/esm/models/getatsrolespositiveresponse.js +57 -0
  111. package/esm/models/getatsrolespositiveresponse.js.map +1 -0
  112. package/esm/models/getatsuserspositiveresponse.d.ts +61 -0
  113. package/esm/models/getatsuserspositiveresponse.d.ts.map +1 -1
  114. package/esm/models/getatsuserspositiveresponse.js +33 -0
  115. package/esm/models/getatsuserspositiveresponse.js.map +1 -1
  116. package/esm/models/gethrisemployeespositiveresponse.d.ts +12 -12
  117. package/esm/models/gethrisemployeespositiveresponse.d.ts.map +1 -1
  118. package/esm/models/gethrisemployeespositiveresponse.js +12 -13
  119. package/esm/models/gethrisemployeespositiveresponse.js.map +1 -1
  120. package/esm/models/gethrisstaffingentitiespositiveresponse.d.ts +261 -0
  121. package/esm/models/gethrisstaffingentitiespositiveresponse.d.ts.map +1 -0
  122. package/esm/models/gethrisstaffingentitiespositiveresponse.js +143 -0
  123. package/esm/models/gethrisstaffingentitiespositiveresponse.js.map +1 -0
  124. package/esm/models/index.d.ts +2 -0
  125. package/esm/models/index.d.ts.map +1 -1
  126. package/esm/models/index.js +2 -0
  127. package/esm/models/index.js.map +1 -1
  128. package/esm/models/inlineassessmentorderreceivedwebhookpayload.d.ts +5 -2
  129. package/esm/models/inlineassessmentorderreceivedwebhookpayload.d.ts.map +1 -1
  130. package/esm/models/inlineassessmentorderreceivedwebhookpayload.js +5 -2
  131. package/esm/models/inlineassessmentorderreceivedwebhookpayload.js.map +1 -1
  132. package/esm/models/komboatserror.d.ts +1 -0
  133. package/esm/models/komboatserror.d.ts.map +1 -1
  134. package/esm/models/komboatserror.js +1 -0
  135. package/esm/models/komboatserror.js.map +1 -1
  136. package/esm/models/kombogeneralerror.d.ts +1 -0
  137. package/esm/models/kombogeneralerror.d.ts.map +1 -1
  138. package/esm/models/kombogeneralerror.js +1 -0
  139. package/esm/models/kombogeneralerror.js.map +1 -1
  140. package/esm/models/kombohriserror.d.ts +1 -0
  141. package/esm/models/kombohriserror.d.ts.map +1 -1
  142. package/esm/models/kombohriserror.js +1 -0
  143. package/esm/models/kombohriserror.js.map +1 -1
  144. package/esm/models/operations/getatsapplications.d.ts +9 -0
  145. package/esm/models/operations/getatsapplications.d.ts.map +1 -1
  146. package/esm/models/operations/getatsapplications.js.map +1 -1
  147. package/esm/models/operations/getatsapplicationstages.d.ts +2 -0
  148. package/esm/models/operations/getatsapplicationstages.d.ts.map +1 -1
  149. package/esm/models/operations/getatsapplicationstages.js.map +1 -1
  150. package/esm/models/operations/getatscandidates.d.ts +8 -0
  151. package/esm/models/operations/getatscandidates.d.ts.map +1 -1
  152. package/esm/models/operations/getatscandidates.js.map +1 -1
  153. package/esm/models/operations/getatsinterviews.d.ts +8 -0
  154. package/esm/models/operations/getatsinterviews.d.ts.map +1 -1
  155. package/esm/models/operations/getatsinterviews.js.map +1 -1
  156. package/esm/models/operations/getatsjobs.d.ts +11 -0
  157. package/esm/models/operations/getatsjobs.d.ts.map +1 -1
  158. package/esm/models/operations/getatsjobs.js.map +1 -1
  159. package/esm/models/operations/getatsoffers.d.ts +6 -0
  160. package/esm/models/operations/getatsoffers.d.ts.map +1 -1
  161. package/esm/models/operations/getatsoffers.js.map +1 -1
  162. package/esm/models/operations/getatsrejectionreasons.d.ts +2 -0
  163. package/esm/models/operations/getatsrejectionreasons.d.ts.map +1 -1
  164. package/esm/models/operations/getatsrejectionreasons.js.map +1 -1
  165. package/esm/models/operations/getatsroles.d.ts +79 -0
  166. package/esm/models/operations/getatsroles.d.ts.map +1 -0
  167. package/esm/models/operations/getatsroles.js +33 -0
  168. package/esm/models/operations/getatsroles.js.map +1 -0
  169. package/esm/models/operations/getatstags.d.ts +2 -0
  170. package/esm/models/operations/getatstags.d.ts.map +1 -1
  171. package/esm/models/operations/getatstags.js.map +1 -1
  172. package/esm/models/operations/getatsusers.d.ts +5 -0
  173. package/esm/models/operations/getatsusers.d.ts.map +1 -1
  174. package/esm/models/operations/getatsusers.js.map +1 -1
  175. package/esm/models/operations/gethrisabsences.d.ts +4 -0
  176. package/esm/models/operations/gethrisabsences.d.ts.map +1 -1
  177. package/esm/models/operations/gethrisabsences.js.map +1 -1
  178. package/esm/models/operations/gethrisabsencetypes.d.ts +2 -0
  179. package/esm/models/operations/gethrisabsencetypes.d.ts.map +1 -1
  180. package/esm/models/operations/gethrisabsencetypes.js.map +1 -1
  181. package/esm/models/operations/gethrisemployeedocumentcategories.d.ts +2 -0
  182. package/esm/models/operations/gethrisemployeedocumentcategories.d.ts.map +1 -1
  183. package/esm/models/operations/gethrisemployeedocumentcategories.js.map +1 -1
  184. package/esm/models/operations/gethrisemployees.d.ts +10 -0
  185. package/esm/models/operations/gethrisemployees.d.ts.map +1 -1
  186. package/esm/models/operations/gethrisemployees.js.map +1 -1
  187. package/esm/models/operations/gethrisemployments.d.ts +2 -0
  188. package/esm/models/operations/gethrisemployments.d.ts.map +1 -1
  189. package/esm/models/operations/gethrisemployments.js.map +1 -1
  190. package/esm/models/operations/gethrisgroups.d.ts +2 -0
  191. package/esm/models/operations/gethrisgroups.d.ts.map +1 -1
  192. package/esm/models/operations/gethrisgroups.js.map +1 -1
  193. package/esm/models/operations/gethrislegalentities.d.ts +2 -0
  194. package/esm/models/operations/gethrislegalentities.d.ts.map +1 -1
  195. package/esm/models/operations/gethrislegalentities.js.map +1 -1
  196. package/esm/models/operations/gethrislocations.d.ts +2 -0
  197. package/esm/models/operations/gethrislocations.d.ts.map +1 -1
  198. package/esm/models/operations/gethrislocations.js.map +1 -1
  199. package/esm/models/operations/gethrisperformancereviewcycles.d.ts +2 -0
  200. package/esm/models/operations/gethrisperformancereviewcycles.d.ts.map +1 -1
  201. package/esm/models/operations/gethrisperformancereviewcycles.js.map +1 -1
  202. package/esm/models/operations/gethrisperformancereviews.d.ts +6 -0
  203. package/esm/models/operations/gethrisperformancereviews.d.ts.map +1 -1
  204. package/esm/models/operations/gethrisperformancereviews.js.map +1 -1
  205. package/esm/models/operations/gethrisstaffingentities.d.ts +93 -0
  206. package/esm/models/operations/gethrisstaffingentities.d.ts.map +1 -0
  207. package/esm/models/operations/gethrisstaffingentities.js +34 -0
  208. package/esm/models/operations/gethrisstaffingentities.js.map +1 -0
  209. package/esm/models/operations/gethristimeoffbalances.d.ts +4 -0
  210. package/esm/models/operations/gethristimeoffbalances.d.ts.map +1 -1
  211. package/esm/models/operations/gethristimeoffbalances.js.map +1 -1
  212. package/esm/models/operations/gethristimesheets.d.ts +2 -0
  213. package/esm/models/operations/gethristimesheets.d.ts.map +1 -1
  214. package/esm/models/operations/gethristimesheets.js.map +1 -1
  215. package/esm/models/operations/index.d.ts +2 -0
  216. package/esm/models/operations/index.d.ts.map +1 -1
  217. package/esm/models/operations/index.js +2 -0
  218. package/esm/models/operations/index.js.map +1 -1
  219. package/esm/models/postatsapplicationsapplicationidnotesrequestbody.d.ts +21 -0
  220. package/esm/models/postatsapplicationsapplicationidnotesrequestbody.d.ts.map +1 -1
  221. package/esm/models/postatsapplicationsapplicationidnotesrequestbody.js +8 -0
  222. package/esm/models/postatsapplicationsapplicationidnotesrequestbody.js.map +1 -1
  223. package/esm/models/postatscandidatesrequestbody.d.ts +60 -0
  224. package/esm/models/postatscandidatesrequestbody.d.ts.map +1 -1
  225. package/esm/models/postatscandidatesrequestbody.js +30 -0
  226. package/esm/models/postatscandidatesrequestbody.js.map +1 -1
  227. package/esm/models/postatsjobsjobidapplicationsrequestbody.d.ts +60 -0
  228. package/esm/models/postatsjobsjobidapplicationsrequestbody.d.ts.map +1 -1
  229. package/esm/models/postatsjobsjobidapplicationsrequestbody.js +30 -0
  230. package/esm/models/postatsjobsjobidapplicationsrequestbody.js.map +1 -1
  231. package/esm/models/postconnectcreatelinkrequestbody.d.ts +4 -0
  232. package/esm/models/postconnectcreatelinkrequestbody.d.ts.map +1 -1
  233. package/esm/models/postconnectcreatelinkrequestbody.js +4 -0
  234. package/esm/models/postconnectcreatelinkrequestbody.js.map +1 -1
  235. package/esm/models/putassessmentordersassessmentorderidresultrequestbody.d.ts +15 -0
  236. package/esm/models/putassessmentordersassessmentorderidresultrequestbody.d.ts.map +1 -1
  237. package/esm/models/putassessmentordersassessmentorderidresultrequestbody.js +9 -0
  238. package/esm/models/putassessmentordersassessmentorderidresultrequestbody.js.map +1 -1
  239. package/esm/models/putatsapplicationsapplicationidstagerequestbody.d.ts +40 -0
  240. package/esm/models/putatsapplicationsapplicationidstagerequestbody.d.ts.map +1 -1
  241. package/esm/models/putatsapplicationsapplicationidstagerequestbody.js +24 -0
  242. package/esm/models/putatsapplicationsapplicationidstagerequestbody.js.map +1 -1
  243. package/esm/sdk/ats.d.ts +15 -1
  244. package/esm/sdk/ats.d.ts.map +1 -1
  245. package/esm/sdk/ats.js +16 -1
  246. package/esm/sdk/ats.js.map +1 -1
  247. package/esm/sdk/general.d.ts +18 -5
  248. package/esm/sdk/general.d.ts.map +1 -1
  249. package/esm/sdk/general.js +18 -5
  250. package/esm/sdk/general.js.map +1 -1
  251. package/esm/sdk/hris.d.ts +21 -4
  252. package/esm/sdk/hris.d.ts.map +1 -1
  253. package/esm/sdk/hris.js +22 -4
  254. package/esm/sdk/hris.js.map +1 -1
  255. package/jsr.json +1 -1
  256. package/package.json +1 -1
  257. package/src/funcs/assessmentGetOpenOrders.ts +1 -1
  258. package/src/funcs/assessmentUpdateOrderResult.ts +0 -1
  259. package/src/funcs/atsAddApplicationAttachment.ts +0 -1
  260. package/src/funcs/atsAddApplicationNote.ts +0 -1
  261. package/src/funcs/atsAddApplicationResultLink.ts +0 -1
  262. package/src/funcs/atsAddCandidateAttachment.ts +0 -1
  263. package/src/funcs/atsAddCandidateResultLink.ts +0 -1
  264. package/src/funcs/atsAddCandidateTag.ts +0 -1
  265. package/src/funcs/atsCreateApplication.ts +0 -1
  266. package/src/funcs/atsGetApplicationAttachments.ts +0 -1
  267. package/src/funcs/atsGetApplicationStages.ts +1 -1
  268. package/src/funcs/atsGetApplications.ts +1 -1
  269. package/src/funcs/atsGetCandidateAttachments.ts +0 -1
  270. package/src/funcs/atsGetCandidates.ts +1 -1
  271. package/src/funcs/atsGetInterviews.ts +1 -1
  272. package/src/funcs/atsGetJobs.ts +1 -1
  273. package/src/funcs/atsGetOffers.ts +1 -1
  274. package/src/funcs/atsGetRejectionReasons.ts +1 -1
  275. package/src/funcs/atsGetRoles.ts +256 -0
  276. package/src/funcs/atsGetTags.ts +1 -1
  277. package/src/funcs/atsGetUsers.ts +1 -1
  278. package/src/funcs/atsMoveApplicationToStage.ts +2 -2
  279. package/src/funcs/atsRejectApplication.ts +0 -1
  280. package/src/funcs/atsRemoveCandidateTag.ts +0 -1
  281. package/src/funcs/connectGetIntegrationByToken.ts +0 -1
  282. package/src/funcs/generalCreateReconnectionLink.ts +0 -1
  283. package/src/funcs/generalDeleteIntegration.ts +0 -1
  284. package/src/funcs/generalGetCustomFields.ts +0 -1
  285. package/src/funcs/generalGetIntegrationDetails.ts +0 -1
  286. package/src/funcs/generalGetIntegrationFields.ts +0 -1
  287. package/src/funcs/generalGetTools.ts +0 -1
  288. package/src/funcs/generalSendPassthroughRequest.ts +18 -6
  289. package/src/funcs/generalSetIntegrationEnabled.ts +0 -1
  290. package/src/funcs/generalUpdateCustomFieldMapping.ts +0 -1
  291. package/src/funcs/generalUpdateIntegrationField.ts +0 -1
  292. package/src/funcs/hrisAddEmployeeDocument.ts +0 -1
  293. package/src/funcs/hrisDeleteAbsence.ts +0 -1
  294. package/src/funcs/hrisGetAbsenceTypes.ts +1 -1
  295. package/src/funcs/hrisGetAbsences.ts +1 -1
  296. package/src/funcs/hrisGetEmployeeDocumentCategories.ts +1 -1
  297. package/src/funcs/hrisGetEmployees.ts +1 -1
  298. package/src/funcs/hrisGetEmployments.ts +1 -1
  299. package/src/funcs/hrisGetGroups.ts +1 -1
  300. package/src/funcs/hrisGetLegalEntities.ts +1 -1
  301. package/src/funcs/hrisGetLocations.ts +1 -1
  302. package/src/funcs/hrisGetPerformanceReviewCycles.ts +1 -3
  303. package/src/funcs/hrisGetPerformanceReviews.ts +1 -3
  304. package/src/funcs/hrisGetStaffingEntities.ts +267 -0
  305. package/src/funcs/hrisGetTimeOffBalances.ts +1 -1
  306. package/src/funcs/hrisGetTimesheets.ts +1 -1
  307. package/src/lib/config.ts +3 -3
  308. package/src/lib/encodings.ts +23 -4
  309. package/src/lib/files.ts +22 -0
  310. package/src/lib/matchers.ts +3 -2
  311. package/src/lib/sdks.ts +7 -5
  312. package/src/lib/security.ts +1 -2
  313. package/src/lib/url.ts +16 -14
  314. package/src/models/assessmentorderreceivedwebhookpayload.ts +7 -4
  315. package/src/models/datachangedwebhookpayload.ts +8 -0
  316. package/src/models/getassessmentordersopenpositiveresponse.ts +5 -2
  317. package/src/models/getatsjobspositiveresponse.ts +100 -1
  318. package/src/models/getatsrolespositiveresponse.ts +167 -0
  319. package/src/models/getatsuserspositiveresponse.ts +97 -0
  320. package/src/models/gethrisemployeespositiveresponse.ts +55 -37
  321. package/src/models/gethrisstaffingentitiespositiveresponse.ts +509 -0
  322. package/src/models/index.ts +2 -0
  323. package/src/models/inlineassessmentorderreceivedwebhookpayload.ts +7 -4
  324. package/src/models/komboatserror.ts +1 -0
  325. package/src/models/kombogeneralerror.ts +1 -0
  326. package/src/models/kombohriserror.ts +1 -0
  327. package/src/models/operations/getatsapplications.ts +9 -0
  328. package/src/models/operations/getatsapplicationstages.ts +2 -0
  329. package/src/models/operations/getatscandidates.ts +8 -0
  330. package/src/models/operations/getatsinterviews.ts +8 -0
  331. package/src/models/operations/getatsjobs.ts +11 -0
  332. package/src/models/operations/getatsoffers.ts +6 -0
  333. package/src/models/operations/getatsrejectionreasons.ts +2 -0
  334. package/src/models/operations/getatsroles.ts +129 -0
  335. package/src/models/operations/getatstags.ts +2 -0
  336. package/src/models/operations/getatsusers.ts +5 -0
  337. package/src/models/operations/gethrisabsences.ts +4 -0
  338. package/src/models/operations/gethrisabsencetypes.ts +2 -0
  339. package/src/models/operations/gethrisemployeedocumentcategories.ts +2 -0
  340. package/src/models/operations/gethrisemployees.ts +10 -0
  341. package/src/models/operations/gethrisemployments.ts +2 -0
  342. package/src/models/operations/gethrisgroups.ts +2 -0
  343. package/src/models/operations/gethrislegalentities.ts +2 -0
  344. package/src/models/operations/gethrislocations.ts +2 -0
  345. package/src/models/operations/gethrisperformancereviewcycles.ts +2 -0
  346. package/src/models/operations/gethrisperformancereviews.ts +6 -0
  347. package/src/models/operations/gethrisstaffingentities.ts +146 -0
  348. package/src/models/operations/gethristimeoffbalances.ts +4 -0
  349. package/src/models/operations/gethristimesheets.ts +2 -0
  350. package/src/models/operations/index.ts +2 -0
  351. package/src/models/postatsapplicationsapplicationidnotesrequestbody.ts +46 -0
  352. package/src/models/postatscandidatesrequestbody.ts +110 -0
  353. package/src/models/postatsjobsjobidapplicationsrequestbody.ts +114 -0
  354. package/src/models/postconnectcreatelinkrequestbody.ts +4 -0
  355. package/src/models/putassessmentordersassessmentorderidresultrequestbody.ts +42 -0
  356. package/src/models/putatsapplicationsapplicationidstagerequestbody.ts +74 -0
  357. package/src/sdk/ats.ts +24 -1
  358. package/src/sdk/general.ts +18 -5
  359. package/src/sdk/hris.ts +32 -4
  360. package/_speakeasy/.github/action-inputs-config.json +0 -53
  361. package/_speakeasy/.github/action-security-config.json +0 -88
  362. package/examples/package-lock.json +0 -613
  363. package/examples/package.json +0 -18
  364. package/tsconfig.json +0 -40
@@ -1 +1 @@
1
- {"version":3,"file":"hris.d.ts","sourceRoot":"","sources":["../../src/sdk/hris.ts"],"names":[],"mappings":"AAqBA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,MAAM,MAAM,oBAAoB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAE5D,OAAO,EAAE,YAAY,EAAwB,MAAM,wBAAwB,CAAC;AAE5E,qBAAa,IAAK,SAAQ,SAAS;IACjC;;;;;;;;;OASG;IACG,YAAY,CAChB,OAAO,CAAC,EAAE,UAAU,CAAC,uBAAuB,GAAG,SAAS,EACxD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CACR,YAAY,CAAC,UAAU,CAAC,wBAAwB,EAAE;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC,CACtE;IAQD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAkFG;IACG,eAAe,CACnB,OAAO,CAAC,EAAE,UAAU,CAAC,2BAA2B,GAAG,SAAS,EAC5D,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,MAAM,CAAC,oCAAoC,CAAC;IAQvD;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4BG;IACG,sBAAsB,CAC1B,OAAO,EAAE,MAAM,CAAC,gCAAgC,EAChD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,MAAM,CAAC,qCAAqC,CAAC;IAQxD;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACG,mBAAmB,CACvB,OAAO,EAAE,UAAU,CAAC,2CAA2C,EAC/D,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,MAAM,CAAC,oDAAoD,CAAC;IAQvE;;;;;;;OAOG;IACG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AAC,yBAAyB,EAAE;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC,CACvE;IAQD;;;;;;;;;OASG;IACG,0BAA0B,CAC9B,OAAO,CAAC,EAAE,UAAU,CAAC,qCAAqC,GAAG,SAAS,EACtE,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CACR,YAAY,CACV,UAAU,CAAC,sCAAsC,EACjD;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE,CACnB,CACF;IAQD;;;;;;;;;OASG;IACG,qBAAqB,CACzB,OAAO,CAAC,EAAE,UAAU,CAAC,gCAAgC,GAAG,SAAS,EACjE,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CACR,YAAY,CACV,UAAU,CAAC,iCAAiC,EAC5C;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE,CACnB,CACF;IAQD;;;;;;;;;;;;;;;;;OAiBG;IACG,mBAAmB,CACvB,OAAO,CAAC,EAAE,UAAU,CAAC,8BAA8B,GAAG,SAAS,EAC/D,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CACR,YAAY,CAAC,UAAU,CAAC,+BAA+B,EAAE;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC,CAC7E;CAOF"}
package/esm/sdk/hris.js CHANGED
@@ -16,6 +16,7 @@ import { hrisGetLegalEntities } from "../funcs/hrisGetLegalEntities.js";
16
16
  import { hrisGetLocations } from "../funcs/hrisGetLocations.js";
17
17
  import { hrisGetPerformanceReviewCycles } from "../funcs/hrisGetPerformanceReviewCycles.js";
18
18
  import { hrisGetPerformanceReviews } from "../funcs/hrisGetPerformanceReviews.js";
19
+ import { hrisGetStaffingEntities } from "../funcs/hrisGetStaffingEntities.js";
19
20
  import { hrisGetTimeOffBalances } from "../funcs/hrisGetTimeOffBalances.js";
20
21
  import { hrisGetTimesheets } from "../funcs/hrisGetTimesheets.js";
21
22
  import { ClientSDK } from "../lib/sdks.js";
@@ -344,8 +345,6 @@ export class Hris extends ClientSDK {
344
345
  *
345
346
  * Retrieve performance review cycles data from HRIS tools.
346
347
  *
347
- * <Warning>**Open Beta Feature:** This endpoint is currently in beta. Please reach out to our support team if you need assistance with implementation.</Warning>
348
- *
349
348
  * Top level filters use AND, while individual filters use OR if they accept multiple arguments. That means filters will be resolved like this: `(id IN ids) AND (remote_id IN remote_ids)`
350
349
  */
351
350
  async getPerformanceReviewCycles(request, options) {
@@ -359,12 +358,31 @@ export class Hris extends ClientSDK {
359
358
  *
360
359
  * Retrieve performance review data from HRIS tools.
361
360
  *
362
- * <Warning>**Open Beta Feature:** This endpoint is currently in beta. Please reach out to our support team if you need assistance with implementation.</Warning>
363
- *
364
361
  * Top level filters use AND, while individual filters use OR if they accept multiple arguments. That means filters will be resolved like this: `(id IN ids) AND (remote_id IN remote_ids)`
365
362
  */
366
363
  async getPerformanceReviews(request, options) {
367
364
  return unwrapResultIterator(hrisGetPerformanceReviews(this, request, options));
368
365
  }
366
+ /**
367
+ * Get staffing entities
368
+ *
369
+ * @remarks
370
+ * Retrieve all staffing entities.
371
+ *
372
+ * Retrieve all staffing entities (positions, requisitions, and jobs) from the HRIS system.
373
+ *
374
+ * Many enterprise HRIS platforms distinguish between **positions**, **requisitions**, and **jobs** — three related but different concepts used to manage headcount and hiring. Not every HRIS uses all three, and naming varies across systems, but here is a general overview:
375
+ *
376
+ * - **Position**: A slot in the organizational structure that represents a role to be filled (or already filled) by one or more employees. Positions typically carry metadata like department, location, cost center, and reporting line. Think of it as "a chair at a desk" — it exists whether someone is sitting in it or not.
377
+ * - **Requisition**: A formal request to fill a position. When a manager wants to hire for an open position, they usually create a requisition that goes through an approval workflow. Requisitions are time-bound and tied to a specific hiring need. In Kombo's data model, a requisition's `parent_id` points to the position it was opened for.
378
+ * - **Job**: Some systems use "job" as a more generic or lightweight alternative to a requisition. Jobs often represent an ongoing, unlimited hiring need (e.g., a company that is always hiring for "Software Engineer") rather than a one-off backfill. This is reflected in the `OPEN_UNLIMITED` status.
379
+ *
380
+ * You can use the `model_types` filter to retrieve only the type(s) relevant to your use case. Each record's `model_type` field tells you which of the three concepts it represents.
381
+ *
382
+ * Top level filters use AND, while individual filters use OR if they accept multiple arguments. That means filters will be resolved like this: `(id IN ids) AND (remote_id IN remote_ids)`
383
+ */
384
+ async getStaffingEntities(request, options) {
385
+ return unwrapResultIterator(hrisGetStaffingEntities(this, request, options));
386
+ }
369
387
  }
370
388
  //# sourceMappingURL=hris.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"hris.js","sourceRoot":"","sources":["../../src/sdk/hris.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAC9E,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,0BAA0B,EAAE,MAAM,wCAAwC,CAAC;AACpF,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAC9D,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,EAAE,iCAAiC,EAAE,MAAM,+CAA+C,CAAC;AAClG,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AACxE,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,8BAA8B,EAAE,MAAM,4CAA4C,CAAC;AAC5F,OAAO,EAAE,yBAAyB,EAAE,MAAM,uCAAuC,CAAC;AAClF,OAAO,EAAE,sBAAsB,EAAE,MAAM,oCAAoC,CAAC;AAC5E,OAAO,EAAE,iBAAiB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B,CACzB,OAAiE,EACjE,OAAwB;QAOxB,OAAO,oBAAoB,CAAC,yBAAyB,CACnD,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;;;OAiBG;IACH,KAAK,CAAC,mBAAmB,CACvB,OAA+D,EAC/D,OAAwB;QAIxB,OAAO,oBAAoB,CAAC,uBAAuB,CACjD,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF"}
package/jsr.json CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  {
4
4
  "name": "@kombo-api/sdk",
5
- "version": "1.0.0",
5
+ "version": "1.0.2",
6
6
  "exports": {
7
7
  ".": "./src/index.ts",
8
8
  "./models/errors": "./src/models/errors/index.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kombo-api/sdk",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "author": "Kombo Technologies GmbH <support@kombo.dev> (https://www.kombo.dev)",
5
5
  "description": "The official TypeScript/JavaScript SDK for the Kombo Unified API",
6
6
  "homepage": "https://github.com/kombohq/typescript-sdk#readme",
@@ -226,7 +226,7 @@ async function $do(
226
226
  assessmentGetOpenOrders(
227
227
  client,
228
228
  {
229
- ...request,
229
+ ...request!,
230
230
  cursor: nextCursor,
231
231
  },
232
232
  options,
@@ -136,7 +136,6 @@ async function $do(
136
136
  { explode: false, charEncoding: "percent" },
137
137
  ),
138
138
  };
139
-
140
139
  const path = pathToFunc("/assessment/orders/{assessment_order_id}/result")(
141
140
  pathParams,
142
141
  );
@@ -121,7 +121,6 @@ async function $do(
121
121
  charEncoding: "percent",
122
122
  }),
123
123
  };
124
-
125
124
  const path = pathToFunc("/ats/applications/{application_id}/attachments")(
126
125
  pathParams,
127
126
  );
@@ -113,7 +113,6 @@ async function $do(
113
113
  charEncoding: "percent",
114
114
  }),
115
115
  };
116
-
117
116
  const path = pathToFunc("/ats/applications/{application_id}/notes")(
118
117
  pathParams,
119
118
  );
@@ -128,7 +128,6 @@ async function $do(
128
128
  charEncoding: "percent",
129
129
  }),
130
130
  };
131
-
132
131
  const path = pathToFunc("/ats/applications/{application_id}/result-links")(
133
132
  pathParams,
134
133
  );
@@ -121,7 +121,6 @@ async function $do(
121
121
  charEncoding: "percent",
122
122
  }),
123
123
  };
124
-
125
124
  const path = pathToFunc("/ats/candidates/{candidate_id}/attachments")(
126
125
  pathParams,
127
126
  );
@@ -131,7 +131,6 @@ async function $do(
131
131
  charEncoding: "percent",
132
132
  }),
133
133
  };
134
-
135
134
  const path = pathToFunc("/ats/candidates/{candidate_id}/result-links")(
136
135
  pathParams,
137
136
  );
@@ -114,7 +114,6 @@ async function $do(
114
114
  charEncoding: "percent",
115
115
  }),
116
116
  };
117
-
118
117
  const path = pathToFunc("/ats/candidates/{candidate_id}/tags")(pathParams);
119
118
 
120
119
  const headers = new Headers(compactMap({
@@ -161,7 +161,6 @@ async function $do(
161
161
  charEncoding: "percent",
162
162
  }),
163
163
  };
164
-
165
164
  const path = pathToFunc("/ats/jobs/{job_id}/applications")(pathParams);
166
165
 
167
166
  const headers = new Headers(compactMap({
@@ -105,7 +105,6 @@ async function $do(
105
105
  charEncoding: "percent",
106
106
  }),
107
107
  };
108
-
109
108
  const path = pathToFunc("/ats/applications/{application_id}/attachments")(
110
109
  pathParams,
111
110
  );
@@ -247,7 +247,7 @@ async function $do(
247
247
  atsGetApplicationStages(
248
248
  client,
249
249
  {
250
- ...request,
250
+ ...request!,
251
251
  cursor: nextCursor,
252
252
  },
253
253
  options,
@@ -249,7 +249,7 @@ async function $do(
249
249
  atsGetApplications(
250
250
  client,
251
251
  {
252
- ...request,
252
+ ...request!,
253
253
  cursor: nextCursor,
254
254
  },
255
255
  options,
@@ -101,7 +101,6 @@ async function $do(
101
101
  charEncoding: "percent",
102
102
  }),
103
103
  };
104
-
105
104
  const path = pathToFunc("/ats/candidates/{candidate_id}/attachments")(
106
105
  pathParams,
107
106
  );
@@ -239,7 +239,7 @@ async function $do(
239
239
  atsGetCandidates(
240
240
  client,
241
241
  {
242
- ...request,
242
+ ...request!,
243
243
  cursor: nextCursor,
244
244
  },
245
245
  options,
@@ -236,7 +236,7 @@ async function $do(
236
236
  atsGetInterviews(
237
237
  client,
238
238
  {
239
- ...request,
239
+ ...request!,
240
240
  cursor: nextCursor,
241
241
  },
242
242
  options,
@@ -248,7 +248,7 @@ async function $do(
248
248
  atsGetJobs(
249
249
  client,
250
250
  {
251
- ...request,
251
+ ...request!,
252
252
  cursor: nextCursor,
253
253
  },
254
254
  options,
@@ -235,7 +235,7 @@ async function $do(
235
235
  atsGetOffers(
236
236
  client,
237
237
  {
238
- ...request,
238
+ ...request!,
239
239
  cursor: nextCursor,
240
240
  },
241
241
  options,
@@ -239,7 +239,7 @@ async function $do(
239
239
  atsGetRejectionReasons(
240
240
  client,
241
241
  {
242
- ...request,
242
+ ...request!,
243
243
  cursor: nextCursor,
244
244
  },
245
245
  options,
@@ -0,0 +1,256 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { KomboCore } from "../core.js";
6
+ import { dlv } from "../lib/dlv.js";
7
+ import { encodeFormQuery, encodeSimple, queryJoin } from "../lib/encodings.js";
8
+ import * as M from "../lib/matchers.js";
9
+ import { compactMap } from "../lib/primitives.js";
10
+ import { safeParse } from "../lib/schemas.js";
11
+ import { RequestOptions } from "../lib/sdks.js";
12
+ import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
13
+ import { pathToFunc } from "../lib/url.js";
14
+ import {
15
+ ConnectionError,
16
+ InvalidRequestError,
17
+ RequestAbortedError,
18
+ RequestTimeoutError,
19
+ UnexpectedClientError,
20
+ } from "../models/errors/httpclienterrors.js";
21
+ import * as errors from "../models/errors/index.js";
22
+ import { KomboError } from "../models/errors/komboerror.js";
23
+ import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
24
+ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
25
+ import * as operations from "../models/operations/index.js";
26
+ import { APICall, APIPromise } from "../types/async.js";
27
+ import { Result } from "../types/fp.js";
28
+ import {
29
+ createPageIterator,
30
+ haltIterator,
31
+ PageIterator,
32
+ Paginator,
33
+ } from "../types/operations.js";
34
+
35
+ /**
36
+ * Get roles
37
+ *
38
+ * @remarks
39
+ * Retrieve all roles.
40
+ *
41
+ * Visit our in-depth guide about [roles](/ats/features/roles) to learn more.
42
+ *
43
+ * Top level filters use AND, while individual filters use OR if they accept multiple arguments. That means filters will be resolved like this: `(id IN ids) AND (remote_id IN remote_ids)`
44
+ */
45
+ export function atsGetRoles(
46
+ client: KomboCore,
47
+ request?: operations.GetAtsRolesRequest | undefined,
48
+ options?: RequestOptions,
49
+ ): APIPromise<
50
+ PageIterator<
51
+ Result<
52
+ operations.GetAtsRolesResponse,
53
+ | errors.KomboAtsError
54
+ | KomboError
55
+ | ResponseValidationError
56
+ | ConnectionError
57
+ | RequestAbortedError
58
+ | RequestTimeoutError
59
+ | InvalidRequestError
60
+ | UnexpectedClientError
61
+ | SDKValidationError
62
+ >,
63
+ { cursor: string }
64
+ >
65
+ > {
66
+ return new APIPromise($do(
67
+ client,
68
+ request,
69
+ options,
70
+ ));
71
+ }
72
+
73
+ async function $do(
74
+ client: KomboCore,
75
+ request?: operations.GetAtsRolesRequest | undefined,
76
+ options?: RequestOptions,
77
+ ): Promise<
78
+ [
79
+ PageIterator<
80
+ Result<
81
+ operations.GetAtsRolesResponse,
82
+ | errors.KomboAtsError
83
+ | KomboError
84
+ | ResponseValidationError
85
+ | ConnectionError
86
+ | RequestAbortedError
87
+ | RequestTimeoutError
88
+ | InvalidRequestError
89
+ | UnexpectedClientError
90
+ | SDKValidationError
91
+ >,
92
+ { cursor: string }
93
+ >,
94
+ APICall,
95
+ ]
96
+ > {
97
+ const parsed = safeParse(
98
+ request,
99
+ (value) =>
100
+ operations.GetAtsRolesRequest$outboundSchema.optional().parse(value),
101
+ "Input validation failed",
102
+ );
103
+ if (!parsed.ok) {
104
+ return [haltIterator(parsed), { status: "invalid" }];
105
+ }
106
+ const payload = parsed.value;
107
+ const body = null;
108
+
109
+ const path = pathToFunc("/ats/roles")();
110
+
111
+ const query = queryJoin(
112
+ encodeFormQuery({
113
+ "ids": payload?.ids,
114
+ "remote_ids": payload?.remote_ids,
115
+ "scopes": payload?.scopes,
116
+ }, { explode: false }),
117
+ encodeFormQuery({
118
+ "cursor": payload?.cursor,
119
+ "ignore_unsupported_filters": payload?.ignore_unsupported_filters,
120
+ "include_deleted": payload?.include_deleted,
121
+ "page_size": payload?.page_size,
122
+ "updated_after": payload?.updated_after,
123
+ }),
124
+ );
125
+
126
+ const headers = new Headers(compactMap({
127
+ Accept: "application/json",
128
+ "X-Integration-Id": encodeSimple(
129
+ "X-Integration-Id",
130
+ client._options.integration_id,
131
+ { explode: false, charEncoding: "none" },
132
+ ),
133
+ }));
134
+
135
+ const secConfig = await extractSecurity(client._options.api_key);
136
+ const securityInput = secConfig == null ? {} : { api_key: secConfig };
137
+ const requestSecurity = resolveGlobalSecurity(securityInput);
138
+
139
+ const context = {
140
+ options: client._options,
141
+ base_url: options?.server_url ?? client._baseURL ?? "",
142
+ operation_id: "GetAtsRoles",
143
+ o_auth2_scopes: null,
144
+
145
+ resolved_security: requestSecurity,
146
+
147
+ security_source: client._options.api_key,
148
+ retry_config: options?.retries
149
+ || client._options.retry_config
150
+ || { strategy: "none" },
151
+ retry_codes: options?.retry_codes || ["429", "500", "502", "503", "504"],
152
+ };
153
+
154
+ const requestRes = client._createRequest(context, {
155
+ security: requestSecurity,
156
+ method: "GET",
157
+ baseURL: options?.server_url,
158
+ path: path,
159
+ headers: headers,
160
+ query: query,
161
+ body: body,
162
+ userAgent: client._options.user_agent,
163
+ timeout_ms: options?.timeout_ms || client._options.timeout_ms || -1,
164
+ }, options);
165
+ if (!requestRes.ok) {
166
+ return [haltIterator(requestRes), { status: "invalid" }];
167
+ }
168
+ const req = requestRes.value;
169
+
170
+ const doResult = await client._do(req, {
171
+ context,
172
+ errorCodes: ["default"],
173
+ retryConfig: context.retry_config,
174
+ retryCodes: context.retry_codes,
175
+ });
176
+ if (!doResult.ok) {
177
+ return [haltIterator(doResult), { status: "request-error", request: req }];
178
+ }
179
+ const response = doResult.value;
180
+
181
+ const responseFields = {
182
+ HttpMeta: { Response: response, Request: req },
183
+ };
184
+
185
+ const [result, raw] = await M.match<
186
+ operations.GetAtsRolesResponse,
187
+ | errors.KomboAtsError
188
+ | KomboError
189
+ | ResponseValidationError
190
+ | ConnectionError
191
+ | RequestAbortedError
192
+ | RequestTimeoutError
193
+ | InvalidRequestError
194
+ | UnexpectedClientError
195
+ | SDKValidationError
196
+ >(
197
+ M.json(200, operations.GetAtsRolesResponse$inboundSchema, {
198
+ key: "Result",
199
+ }),
200
+ M.jsonErr("default", errors.KomboAtsError$inboundSchema),
201
+ )(response, req, { extraFields: responseFields });
202
+ if (!result.ok) {
203
+ return [haltIterator(result), {
204
+ status: "complete",
205
+ request: req,
206
+ response,
207
+ }];
208
+ }
209
+
210
+ const nextFunc = (
211
+ responseData: unknown,
212
+ ): {
213
+ next: Paginator<
214
+ Result<
215
+ operations.GetAtsRolesResponse,
216
+ | errors.KomboAtsError
217
+ | KomboError
218
+ | ResponseValidationError
219
+ | ConnectionError
220
+ | RequestAbortedError
221
+ | RequestTimeoutError
222
+ | InvalidRequestError
223
+ | UnexpectedClientError
224
+ | SDKValidationError
225
+ >
226
+ >;
227
+ "~next"?: { cursor: string };
228
+ } => {
229
+ const nextCursor = dlv(responseData, "data.next");
230
+ if (typeof nextCursor !== "string") {
231
+ return { next: () => null };
232
+ }
233
+ if (nextCursor.trim() === "") {
234
+ return { next: () => null };
235
+ }
236
+
237
+ const nextVal = () =>
238
+ atsGetRoles(
239
+ client,
240
+ {
241
+ ...request!,
242
+ cursor: nextCursor,
243
+ },
244
+ options,
245
+ );
246
+
247
+ return { next: nextVal, "~next": { cursor: nextCursor } };
248
+ };
249
+
250
+ const page = { ...result, ...nextFunc(raw) };
251
+ return [{ ...page, ...createPageIterator(page, (v) => !v.ok) }, {
252
+ status: "complete",
253
+ request: req,
254
+ response,
255
+ }];
256
+ }
@@ -233,7 +233,7 @@ async function $do(
233
233
  atsGetTags(
234
234
  client,
235
235
  {
236
- ...request,
236
+ ...request!,
237
237
  cursor: nextCursor,
238
238
  },
239
239
  options,
@@ -236,7 +236,7 @@ async function $do(
236
236
  atsGetUsers(
237
237
  client,
238
238
  {
239
- ...request,
239
+ ...request!,
240
240
  cursor: nextCursor,
241
241
  },
242
242
  options,
@@ -40,7 +40,8 @@ import { Result } from "../types/fp.js";
40
40
  *
41
41
  * ```json
42
42
  * {
43
- * "stage_id": "3PJ8PZhZZa1eEdd2DtPNtVup"
43
+ * "stage_id": "3PJ8PZhZZa1eEdd2DtPNtVup",
44
+ * "remote_fields": {}
44
45
  * }
45
46
  * ```
46
47
  */
@@ -109,7 +110,6 @@ async function $do(
109
110
  charEncoding: "percent",
110
111
  }),
111
112
  };
112
-
113
113
  const path = pathToFunc("/ats/applications/{application_id}/stage")(
114
114
  pathParams,
115
115
  );
@@ -113,7 +113,6 @@ async function $do(
113
113
  charEncoding: "percent",
114
114
  }),
115
115
  };
116
-
117
116
  const path = pathToFunc("/ats/applications/{application_id}/reject")(
118
117
  pathParams,
119
118
  );
@@ -114,7 +114,6 @@ async function $do(
114
114
  charEncoding: "percent",
115
115
  }),
116
116
  };
117
-
118
117
  const path = pathToFunc("/ats/candidates/{candidate_id}/tags")(pathParams);
119
118
 
120
119
  const headers = new Headers(compactMap({
@@ -108,7 +108,6 @@ async function $do(
108
108
  charEncoding: "percent",
109
109
  }),
110
110
  };
111
-
112
111
  const path = pathToFunc("/connect/integration-by-token/{token}")(pathParams);
113
112
 
114
113
  const headers = new Headers(compactMap({
@@ -109,7 +109,6 @@ async function $do(
109
109
  charEncoding: "percent",
110
110
  }),
111
111
  };
112
-
113
112
  const path = pathToFunc("/integrations/{integration_id}/relink")(pathParams);
114
113
 
115
114
  const headers = new Headers(compactMap({
@@ -99,7 +99,6 @@ async function $do(
99
99
  charEncoding: "percent",
100
100
  }),
101
101
  };
102
-
103
102
  const path = pathToFunc("/integrations/{integration_id}")(pathParams);
104
103
 
105
104
  const headers = new Headers(compactMap({
@@ -110,7 +110,6 @@ async function $do(
110
110
  charEncoding: "percent",
111
111
  }),
112
112
  };
113
-
114
113
  const path = pathToFunc("/integrations/{integration_id}/custom-fields")(
115
114
  pathParams,
116
115
  );
@@ -98,7 +98,6 @@ async function $do(
98
98
  charEncoding: "percent",
99
99
  }),
100
100
  };
101
-
102
101
  const path = pathToFunc("/integrations/{integration_id}")(pathParams);
103
102
 
104
103
  const headers = new Headers(compactMap({
@@ -111,7 +111,6 @@ async function $do(
111
111
  charEncoding: "percent",
112
112
  }),
113
113
  };
114
-
115
114
  const path = pathToFunc("/integrations/{integration_id}/integration-fields")(
116
115
  pathParams,
117
116
  );
@@ -96,7 +96,6 @@ async function $do(
96
96
  charEncoding: "percent",
97
97
  }),
98
98
  };
99
-
100
99
  const path = pathToFunc("/tools/{category}")(pathParams);
101
100
 
102
101
  const headers = new Headers(compactMap({