@kombo-api/sdk 1.0.1 → 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 (319) hide show
  1. package/README.md +7 -3
  2. package/esm/funcs/assessmentUpdateOrderResult.js.map +1 -1
  3. package/esm/funcs/atsAddApplicationAttachment.js.map +1 -1
  4. package/esm/funcs/atsAddApplicationNote.js.map +1 -1
  5. package/esm/funcs/atsAddApplicationResultLink.js.map +1 -1
  6. package/esm/funcs/atsAddCandidateAttachment.js.map +1 -1
  7. package/esm/funcs/atsAddCandidateResultLink.js.map +1 -1
  8. package/esm/funcs/atsAddCandidateTag.js.map +1 -1
  9. package/esm/funcs/atsCreateApplication.js.map +1 -1
  10. package/esm/funcs/atsGetApplicationAttachments.js.map +1 -1
  11. package/esm/funcs/atsGetCandidateAttachments.js.map +1 -1
  12. package/esm/funcs/atsGetRoles.d.ts +25 -0
  13. package/esm/funcs/atsGetRoles.d.ts.map +1 -0
  14. package/esm/funcs/atsGetRoles.js +125 -0
  15. package/esm/funcs/atsGetRoles.js.map +1 -0
  16. package/esm/funcs/atsMoveApplicationToStage.d.ts +2 -1
  17. package/esm/funcs/atsMoveApplicationToStage.d.ts.map +1 -1
  18. package/esm/funcs/atsMoveApplicationToStage.js +2 -1
  19. package/esm/funcs/atsMoveApplicationToStage.js.map +1 -1
  20. package/esm/funcs/atsRejectApplication.js.map +1 -1
  21. package/esm/funcs/atsRemoveCandidateTag.js.map +1 -1
  22. package/esm/funcs/connectGetIntegrationByToken.js.map +1 -1
  23. package/esm/funcs/generalCreateReconnectionLink.js.map +1 -1
  24. package/esm/funcs/generalDeleteIntegration.js.map +1 -1
  25. package/esm/funcs/generalGetCustomFields.js.map +1 -1
  26. package/esm/funcs/generalGetIntegrationDetails.js.map +1 -1
  27. package/esm/funcs/generalGetIntegrationFields.js.map +1 -1
  28. package/esm/funcs/generalGetTools.js.map +1 -1
  29. package/esm/funcs/generalSendPassthroughRequest.d.ts +18 -5
  30. package/esm/funcs/generalSendPassthroughRequest.d.ts.map +1 -1
  31. package/esm/funcs/generalSendPassthroughRequest.js +18 -5
  32. package/esm/funcs/generalSendPassthroughRequest.js.map +1 -1
  33. package/esm/funcs/generalSetIntegrationEnabled.js.map +1 -1
  34. package/esm/funcs/generalUpdateCustomFieldMapping.js.map +1 -1
  35. package/esm/funcs/generalUpdateIntegrationField.js.map +1 -1
  36. package/esm/funcs/hrisAddEmployeeDocument.js.map +1 -1
  37. package/esm/funcs/hrisDeleteAbsence.js.map +1 -1
  38. package/esm/funcs/hrisGetPerformanceReviewCycles.d.ts +0 -2
  39. package/esm/funcs/hrisGetPerformanceReviewCycles.d.ts.map +1 -1
  40. package/esm/funcs/hrisGetPerformanceReviewCycles.js +0 -2
  41. package/esm/funcs/hrisGetPerformanceReviewCycles.js.map +1 -1
  42. package/esm/funcs/hrisGetPerformanceReviews.d.ts +0 -2
  43. package/esm/funcs/hrisGetPerformanceReviews.d.ts.map +1 -1
  44. package/esm/funcs/hrisGetPerformanceReviews.js +0 -2
  45. package/esm/funcs/hrisGetPerformanceReviews.js.map +1 -1
  46. package/esm/funcs/hrisGetStaffingEntities.d.ts +33 -0
  47. package/esm/funcs/hrisGetStaffingEntities.d.ts.map +1 -0
  48. package/esm/funcs/hrisGetStaffingEntities.js +134 -0
  49. package/esm/funcs/hrisGetStaffingEntities.js.map +1 -0
  50. package/esm/lib/config.d.ts +3 -3
  51. package/esm/lib/config.js +3 -3
  52. package/esm/lib/config.js.map +1 -1
  53. package/esm/lib/encodings.d.ts.map +1 -1
  54. package/esm/lib/encodings.js +20 -5
  55. package/esm/lib/encodings.js.map +1 -1
  56. package/esm/lib/files.d.ts +13 -0
  57. package/esm/lib/files.d.ts.map +1 -1
  58. package/esm/lib/files.js +18 -0
  59. package/esm/lib/files.js.map +1 -1
  60. package/esm/lib/matchers.d.ts.map +1 -1
  61. package/esm/lib/matchers.js +0 -1
  62. package/esm/lib/matchers.js.map +1 -1
  63. package/esm/lib/sdks.d.ts.map +1 -1
  64. package/esm/lib/sdks.js +8 -4
  65. package/esm/lib/sdks.js.map +1 -1
  66. package/esm/lib/security.d.ts.map +1 -1
  67. package/esm/lib/security.js +1 -2
  68. package/esm/lib/security.js.map +1 -1
  69. package/esm/lib/url.d.ts.map +1 -1
  70. package/esm/lib/url.js +4 -2
  71. package/esm/lib/url.js.map +1 -1
  72. package/esm/models/assessmentorderreceivedwebhookpayload.d.ts +5 -2
  73. package/esm/models/assessmentorderreceivedwebhookpayload.d.ts.map +1 -1
  74. package/esm/models/assessmentorderreceivedwebhookpayload.js +5 -2
  75. package/esm/models/assessmentorderreceivedwebhookpayload.js.map +1 -1
  76. package/esm/models/datachangedwebhookpayload.d.ts +7 -0
  77. package/esm/models/datachangedwebhookpayload.d.ts.map +1 -1
  78. package/esm/models/datachangedwebhookpayload.js +7 -0
  79. package/esm/models/datachangedwebhookpayload.js.map +1 -1
  80. package/esm/models/getassessmentordersopenpositiveresponse.d.ts +4 -1
  81. package/esm/models/getassessmentordersopenpositiveresponse.d.ts.map +1 -1
  82. package/esm/models/getassessmentordersopenpositiveresponse.js +4 -1
  83. package/esm/models/getassessmentordersopenpositiveresponse.js.map +1 -1
  84. package/esm/models/getatsjobspositiveresponse.d.ts +67 -1
  85. package/esm/models/getatsjobspositiveresponse.d.ts.map +1 -1
  86. package/esm/models/getatsjobspositiveresponse.js +36 -0
  87. package/esm/models/getatsjobspositiveresponse.js.map +1 -1
  88. package/esm/models/getatsrolespositiveresponse.d.ts +85 -0
  89. package/esm/models/getatsrolespositiveresponse.d.ts.map +1 -0
  90. package/esm/models/getatsrolespositiveresponse.js +57 -0
  91. package/esm/models/getatsrolespositiveresponse.js.map +1 -0
  92. package/esm/models/getatsuserspositiveresponse.d.ts +61 -0
  93. package/esm/models/getatsuserspositiveresponse.d.ts.map +1 -1
  94. package/esm/models/getatsuserspositiveresponse.js +33 -0
  95. package/esm/models/getatsuserspositiveresponse.js.map +1 -1
  96. package/esm/models/gethrisemployeespositiveresponse.d.ts +12 -12
  97. package/esm/models/gethrisemployeespositiveresponse.d.ts.map +1 -1
  98. package/esm/models/gethrisemployeespositiveresponse.js +12 -13
  99. package/esm/models/gethrisemployeespositiveresponse.js.map +1 -1
  100. package/esm/models/gethrisstaffingentitiespositiveresponse.d.ts +261 -0
  101. package/esm/models/gethrisstaffingentitiespositiveresponse.d.ts.map +1 -0
  102. package/esm/models/gethrisstaffingentitiespositiveresponse.js +143 -0
  103. package/esm/models/gethrisstaffingentitiespositiveresponse.js.map +1 -0
  104. package/esm/models/index.d.ts +2 -0
  105. package/esm/models/index.d.ts.map +1 -1
  106. package/esm/models/index.js +2 -0
  107. package/esm/models/index.js.map +1 -1
  108. package/esm/models/inlineassessmentorderreceivedwebhookpayload.d.ts +5 -2
  109. package/esm/models/inlineassessmentorderreceivedwebhookpayload.d.ts.map +1 -1
  110. package/esm/models/inlineassessmentorderreceivedwebhookpayload.js +5 -2
  111. package/esm/models/inlineassessmentorderreceivedwebhookpayload.js.map +1 -1
  112. package/esm/models/komboatserror.d.ts +1 -0
  113. package/esm/models/komboatserror.d.ts.map +1 -1
  114. package/esm/models/komboatserror.js +1 -0
  115. package/esm/models/komboatserror.js.map +1 -1
  116. package/esm/models/kombogeneralerror.d.ts +1 -0
  117. package/esm/models/kombogeneralerror.d.ts.map +1 -1
  118. package/esm/models/kombogeneralerror.js +1 -0
  119. package/esm/models/kombogeneralerror.js.map +1 -1
  120. package/esm/models/kombohriserror.d.ts +1 -0
  121. package/esm/models/kombohriserror.d.ts.map +1 -1
  122. package/esm/models/kombohriserror.js +1 -0
  123. package/esm/models/kombohriserror.js.map +1 -1
  124. package/esm/models/operations/getatsapplications.d.ts +9 -0
  125. package/esm/models/operations/getatsapplications.d.ts.map +1 -1
  126. package/esm/models/operations/getatsapplications.js.map +1 -1
  127. package/esm/models/operations/getatsapplicationstages.d.ts +2 -0
  128. package/esm/models/operations/getatsapplicationstages.d.ts.map +1 -1
  129. package/esm/models/operations/getatsapplicationstages.js.map +1 -1
  130. package/esm/models/operations/getatscandidates.d.ts +8 -0
  131. package/esm/models/operations/getatscandidates.d.ts.map +1 -1
  132. package/esm/models/operations/getatscandidates.js.map +1 -1
  133. package/esm/models/operations/getatsinterviews.d.ts +8 -0
  134. package/esm/models/operations/getatsinterviews.d.ts.map +1 -1
  135. package/esm/models/operations/getatsinterviews.js.map +1 -1
  136. package/esm/models/operations/getatsjobs.d.ts +11 -0
  137. package/esm/models/operations/getatsjobs.d.ts.map +1 -1
  138. package/esm/models/operations/getatsjobs.js.map +1 -1
  139. package/esm/models/operations/getatsoffers.d.ts +6 -0
  140. package/esm/models/operations/getatsoffers.d.ts.map +1 -1
  141. package/esm/models/operations/getatsoffers.js.map +1 -1
  142. package/esm/models/operations/getatsrejectionreasons.d.ts +2 -0
  143. package/esm/models/operations/getatsrejectionreasons.d.ts.map +1 -1
  144. package/esm/models/operations/getatsrejectionreasons.js.map +1 -1
  145. package/esm/models/operations/getatsroles.d.ts +79 -0
  146. package/esm/models/operations/getatsroles.d.ts.map +1 -0
  147. package/esm/models/operations/getatsroles.js +33 -0
  148. package/esm/models/operations/getatsroles.js.map +1 -0
  149. package/esm/models/operations/getatstags.d.ts +2 -0
  150. package/esm/models/operations/getatstags.d.ts.map +1 -1
  151. package/esm/models/operations/getatstags.js.map +1 -1
  152. package/esm/models/operations/getatsusers.d.ts +5 -0
  153. package/esm/models/operations/getatsusers.d.ts.map +1 -1
  154. package/esm/models/operations/getatsusers.js.map +1 -1
  155. package/esm/models/operations/gethrisabsences.d.ts +4 -0
  156. package/esm/models/operations/gethrisabsences.d.ts.map +1 -1
  157. package/esm/models/operations/gethrisabsences.js.map +1 -1
  158. package/esm/models/operations/gethrisabsencetypes.d.ts +2 -0
  159. package/esm/models/operations/gethrisabsencetypes.d.ts.map +1 -1
  160. package/esm/models/operations/gethrisabsencetypes.js.map +1 -1
  161. package/esm/models/operations/gethrisemployeedocumentcategories.d.ts +2 -0
  162. package/esm/models/operations/gethrisemployeedocumentcategories.d.ts.map +1 -1
  163. package/esm/models/operations/gethrisemployeedocumentcategories.js.map +1 -1
  164. package/esm/models/operations/gethrisemployees.d.ts +10 -0
  165. package/esm/models/operations/gethrisemployees.d.ts.map +1 -1
  166. package/esm/models/operations/gethrisemployees.js.map +1 -1
  167. package/esm/models/operations/gethrisemployments.d.ts +2 -0
  168. package/esm/models/operations/gethrisemployments.d.ts.map +1 -1
  169. package/esm/models/operations/gethrisemployments.js.map +1 -1
  170. package/esm/models/operations/gethrisgroups.d.ts +2 -0
  171. package/esm/models/operations/gethrisgroups.d.ts.map +1 -1
  172. package/esm/models/operations/gethrisgroups.js.map +1 -1
  173. package/esm/models/operations/gethrislegalentities.d.ts +2 -0
  174. package/esm/models/operations/gethrislegalentities.d.ts.map +1 -1
  175. package/esm/models/operations/gethrislegalentities.js.map +1 -1
  176. package/esm/models/operations/gethrislocations.d.ts +2 -0
  177. package/esm/models/operations/gethrislocations.d.ts.map +1 -1
  178. package/esm/models/operations/gethrislocations.js.map +1 -1
  179. package/esm/models/operations/gethrisperformancereviewcycles.d.ts +2 -0
  180. package/esm/models/operations/gethrisperformancereviewcycles.d.ts.map +1 -1
  181. package/esm/models/operations/gethrisperformancereviewcycles.js.map +1 -1
  182. package/esm/models/operations/gethrisperformancereviews.d.ts +6 -0
  183. package/esm/models/operations/gethrisperformancereviews.d.ts.map +1 -1
  184. package/esm/models/operations/gethrisperformancereviews.js.map +1 -1
  185. package/esm/models/operations/gethrisstaffingentities.d.ts +93 -0
  186. package/esm/models/operations/gethrisstaffingentities.d.ts.map +1 -0
  187. package/esm/models/operations/gethrisstaffingentities.js +34 -0
  188. package/esm/models/operations/gethrisstaffingentities.js.map +1 -0
  189. package/esm/models/operations/gethristimeoffbalances.d.ts +4 -0
  190. package/esm/models/operations/gethristimeoffbalances.d.ts.map +1 -1
  191. package/esm/models/operations/gethristimeoffbalances.js.map +1 -1
  192. package/esm/models/operations/gethristimesheets.d.ts +2 -0
  193. package/esm/models/operations/gethristimesheets.d.ts.map +1 -1
  194. package/esm/models/operations/gethristimesheets.js.map +1 -1
  195. package/esm/models/operations/index.d.ts +2 -0
  196. package/esm/models/operations/index.d.ts.map +1 -1
  197. package/esm/models/operations/index.js +2 -0
  198. package/esm/models/operations/index.js.map +1 -1
  199. package/esm/models/postatsapplicationsapplicationidnotesrequestbody.d.ts +21 -0
  200. package/esm/models/postatsapplicationsapplicationidnotesrequestbody.d.ts.map +1 -1
  201. package/esm/models/postatsapplicationsapplicationidnotesrequestbody.js +8 -0
  202. package/esm/models/postatsapplicationsapplicationidnotesrequestbody.js.map +1 -1
  203. package/esm/models/postatscandidatesrequestbody.d.ts +60 -0
  204. package/esm/models/postatscandidatesrequestbody.d.ts.map +1 -1
  205. package/esm/models/postatscandidatesrequestbody.js +30 -0
  206. package/esm/models/postatscandidatesrequestbody.js.map +1 -1
  207. package/esm/models/postatsjobsjobidapplicationsrequestbody.d.ts +60 -0
  208. package/esm/models/postatsjobsjobidapplicationsrequestbody.d.ts.map +1 -1
  209. package/esm/models/postatsjobsjobidapplicationsrequestbody.js +30 -0
  210. package/esm/models/postatsjobsjobidapplicationsrequestbody.js.map +1 -1
  211. package/esm/models/postconnectcreatelinkrequestbody.d.ts +4 -0
  212. package/esm/models/postconnectcreatelinkrequestbody.d.ts.map +1 -1
  213. package/esm/models/postconnectcreatelinkrequestbody.js +4 -0
  214. package/esm/models/postconnectcreatelinkrequestbody.js.map +1 -1
  215. package/esm/models/putassessmentordersassessmentorderidresultrequestbody.d.ts +15 -0
  216. package/esm/models/putassessmentordersassessmentorderidresultrequestbody.d.ts.map +1 -1
  217. package/esm/models/putassessmentordersassessmentorderidresultrequestbody.js +9 -0
  218. package/esm/models/putassessmentordersassessmentorderidresultrequestbody.js.map +1 -1
  219. package/esm/models/putatsapplicationsapplicationidstagerequestbody.d.ts +40 -0
  220. package/esm/models/putatsapplicationsapplicationidstagerequestbody.d.ts.map +1 -1
  221. package/esm/models/putatsapplicationsapplicationidstagerequestbody.js +24 -0
  222. package/esm/models/putatsapplicationsapplicationidstagerequestbody.js.map +1 -1
  223. package/esm/sdk/ats.d.ts +15 -1
  224. package/esm/sdk/ats.d.ts.map +1 -1
  225. package/esm/sdk/ats.js +16 -1
  226. package/esm/sdk/ats.js.map +1 -1
  227. package/esm/sdk/general.d.ts +18 -5
  228. package/esm/sdk/general.d.ts.map +1 -1
  229. package/esm/sdk/general.js +18 -5
  230. package/esm/sdk/general.js.map +1 -1
  231. package/esm/sdk/hris.d.ts +21 -4
  232. package/esm/sdk/hris.d.ts.map +1 -1
  233. package/esm/sdk/hris.js +22 -4
  234. package/esm/sdk/hris.js.map +1 -1
  235. package/jsr.json +1 -1
  236. package/package.json +1 -1
  237. package/src/funcs/assessmentUpdateOrderResult.ts +0 -1
  238. package/src/funcs/atsAddApplicationAttachment.ts +0 -1
  239. package/src/funcs/atsAddApplicationNote.ts +0 -1
  240. package/src/funcs/atsAddApplicationResultLink.ts +0 -1
  241. package/src/funcs/atsAddCandidateAttachment.ts +0 -1
  242. package/src/funcs/atsAddCandidateResultLink.ts +0 -1
  243. package/src/funcs/atsAddCandidateTag.ts +0 -1
  244. package/src/funcs/atsCreateApplication.ts +0 -1
  245. package/src/funcs/atsGetApplicationAttachments.ts +0 -1
  246. package/src/funcs/atsGetCandidateAttachments.ts +0 -1
  247. package/src/funcs/atsGetRoles.ts +256 -0
  248. package/src/funcs/atsMoveApplicationToStage.ts +2 -2
  249. package/src/funcs/atsRejectApplication.ts +0 -1
  250. package/src/funcs/atsRemoveCandidateTag.ts +0 -1
  251. package/src/funcs/connectGetIntegrationByToken.ts +0 -1
  252. package/src/funcs/generalCreateReconnectionLink.ts +0 -1
  253. package/src/funcs/generalDeleteIntegration.ts +0 -1
  254. package/src/funcs/generalGetCustomFields.ts +0 -1
  255. package/src/funcs/generalGetIntegrationDetails.ts +0 -1
  256. package/src/funcs/generalGetIntegrationFields.ts +0 -1
  257. package/src/funcs/generalGetTools.ts +0 -1
  258. package/src/funcs/generalSendPassthroughRequest.ts +18 -6
  259. package/src/funcs/generalSetIntegrationEnabled.ts +0 -1
  260. package/src/funcs/generalUpdateCustomFieldMapping.ts +0 -1
  261. package/src/funcs/generalUpdateIntegrationField.ts +0 -1
  262. package/src/funcs/hrisAddEmployeeDocument.ts +0 -1
  263. package/src/funcs/hrisDeleteAbsence.ts +0 -1
  264. package/src/funcs/hrisGetPerformanceReviewCycles.ts +0 -2
  265. package/src/funcs/hrisGetPerformanceReviews.ts +0 -2
  266. package/src/funcs/hrisGetStaffingEntities.ts +267 -0
  267. package/src/lib/config.ts +3 -3
  268. package/src/lib/encodings.ts +23 -4
  269. package/src/lib/files.ts +22 -0
  270. package/src/lib/matchers.ts +3 -2
  271. package/src/lib/sdks.ts +7 -5
  272. package/src/lib/security.ts +1 -2
  273. package/src/lib/url.ts +16 -14
  274. package/src/models/assessmentorderreceivedwebhookpayload.ts +7 -4
  275. package/src/models/datachangedwebhookpayload.ts +8 -0
  276. package/src/models/getassessmentordersopenpositiveresponse.ts +5 -2
  277. package/src/models/getatsjobspositiveresponse.ts +100 -1
  278. package/src/models/getatsrolespositiveresponse.ts +167 -0
  279. package/src/models/getatsuserspositiveresponse.ts +97 -0
  280. package/src/models/gethrisemployeespositiveresponse.ts +55 -37
  281. package/src/models/gethrisstaffingentitiespositiveresponse.ts +509 -0
  282. package/src/models/index.ts +2 -0
  283. package/src/models/inlineassessmentorderreceivedwebhookpayload.ts +7 -4
  284. package/src/models/komboatserror.ts +1 -0
  285. package/src/models/kombogeneralerror.ts +1 -0
  286. package/src/models/kombohriserror.ts +1 -0
  287. package/src/models/operations/getatsapplications.ts +9 -0
  288. package/src/models/operations/getatsapplicationstages.ts +2 -0
  289. package/src/models/operations/getatscandidates.ts +8 -0
  290. package/src/models/operations/getatsinterviews.ts +8 -0
  291. package/src/models/operations/getatsjobs.ts +11 -0
  292. package/src/models/operations/getatsoffers.ts +6 -0
  293. package/src/models/operations/getatsrejectionreasons.ts +2 -0
  294. package/src/models/operations/getatsroles.ts +129 -0
  295. package/src/models/operations/getatstags.ts +2 -0
  296. package/src/models/operations/getatsusers.ts +5 -0
  297. package/src/models/operations/gethrisabsences.ts +4 -0
  298. package/src/models/operations/gethrisabsencetypes.ts +2 -0
  299. package/src/models/operations/gethrisemployeedocumentcategories.ts +2 -0
  300. package/src/models/operations/gethrisemployees.ts +10 -0
  301. package/src/models/operations/gethrisemployments.ts +2 -0
  302. package/src/models/operations/gethrisgroups.ts +2 -0
  303. package/src/models/operations/gethrislegalentities.ts +2 -0
  304. package/src/models/operations/gethrislocations.ts +2 -0
  305. package/src/models/operations/gethrisperformancereviewcycles.ts +2 -0
  306. package/src/models/operations/gethrisperformancereviews.ts +6 -0
  307. package/src/models/operations/gethrisstaffingentities.ts +146 -0
  308. package/src/models/operations/gethristimeoffbalances.ts +4 -0
  309. package/src/models/operations/gethristimesheets.ts +2 -0
  310. package/src/models/operations/index.ts +2 -0
  311. package/src/models/postatsapplicationsapplicationidnotesrequestbody.ts +46 -0
  312. package/src/models/postatscandidatesrequestbody.ts +110 -0
  313. package/src/models/postatsjobsjobidapplicationsrequestbody.ts +114 -0
  314. package/src/models/postconnectcreatelinkrequestbody.ts +4 -0
  315. package/src/models/putassessmentordersassessmentorderidresultrequestbody.ts +42 -0
  316. package/src/models/putatsapplicationsapplicationidstagerequestbody.ts +74 -0
  317. package/src/sdk/ats.ts +24 -1
  318. package/src/sdk/general.ts +18 -5
  319. package/src/sdk/hris.ts +32 -4
@@ -0,0 +1,167 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { safeParse } from "../lib/schemas.js";
7
+ import { ClosedEnum } from "../types/enums.js";
8
+ import { Result as SafeParseResult } from "../types/fp.js";
9
+ import { SDKValidationError } from "./errors/sdkvalidationerror.js";
10
+
11
+ /**
12
+ * Whether the role applies globally or is scoped to a specific job.
13
+ */
14
+ export const GetAtsRolesPositiveResponseScope = {
15
+ System: "SYSTEM",
16
+ Job: "JOB",
17
+ } as const;
18
+ /**
19
+ * Whether the role applies globally or is scoped to a specific job.
20
+ */
21
+ export type GetAtsRolesPositiveResponseScope = ClosedEnum<
22
+ typeof GetAtsRolesPositiveResponseScope
23
+ >;
24
+
25
+ /**
26
+ * Unified role type if Kombo can map it.
27
+ */
28
+ export const GetAtsRolesPositiveResponseUnifiedType = {
29
+ HiringManager: "HIRING_MANAGER",
30
+ Recruiter: "RECRUITER",
31
+ Coordinator: "COORDINATOR",
32
+ Sourcer: "SOURCER",
33
+ Interviewer: "INTERVIEWER",
34
+ Admin: "ADMIN",
35
+ } as const;
36
+ /**
37
+ * Unified role type if Kombo can map it.
38
+ */
39
+ export type GetAtsRolesPositiveResponseUnifiedType = ClosedEnum<
40
+ typeof GetAtsRolesPositiveResponseUnifiedType
41
+ >;
42
+
43
+ export type GetAtsRolesPositiveResponseResult = {
44
+ /**
45
+ * The globally unique ID of this object generated by Kombo. We recommend using this as a stable primary key for syncing.
46
+ */
47
+ id: string;
48
+ /**
49
+ * The raw ID of the object in the remote system. We don't recommend using this as a primary key on your side as it might sometimes be compromised of multiple identifiers if a system doesn't provide a clear primary key.
50
+ */
51
+ remote_id: string | null;
52
+ /**
53
+ * The label of the role.
54
+ */
55
+ remote_label: string | null;
56
+ /**
57
+ * Whether the role applies globally or is scoped to a specific job.
58
+ */
59
+ scope: GetAtsRolesPositiveResponseScope | null;
60
+ /**
61
+ * Unified role type if Kombo can map it.
62
+ */
63
+ unified_type: GetAtsRolesPositiveResponseUnifiedType | null;
64
+ /**
65
+ * The timestamp when this specific record was last modified. This field only updates when properties directly on this record change, NOT when related or nested models change. For filtering that considers nested data changes, use the `updated_after` parameter which will return records when either the record itself OR its related models have been updated.
66
+ */
67
+ changed_at: Date;
68
+ /**
69
+ * The date and time the object was deleted in the remote system. Objects are automatically marked as deleted when Kombo can't retrieve them from the remote system anymore. Kombo will also anonymize entries 14 days after they disappear.
70
+ */
71
+ remote_deleted_at: Date | null;
72
+ };
73
+
74
+ export type GetAtsRolesPositiveResponseData = {
75
+ /**
76
+ * Cursor string that can be passed to the `cursor` query parameter to get the next page. If this is `null`, then there are no more pages.
77
+ */
78
+ next: string | null;
79
+ results: Array<GetAtsRolesPositiveResponseResult>;
80
+ };
81
+
82
+ export type GetAtsRolesPositiveResponse = {
83
+ status: "success";
84
+ data: GetAtsRolesPositiveResponseData;
85
+ };
86
+
87
+ /** @internal */
88
+ export const GetAtsRolesPositiveResponseScope$inboundSchema: z.ZodNativeEnum<
89
+ typeof GetAtsRolesPositiveResponseScope
90
+ > = z.nativeEnum(GetAtsRolesPositiveResponseScope);
91
+
92
+ /** @internal */
93
+ export const GetAtsRolesPositiveResponseUnifiedType$inboundSchema:
94
+ z.ZodNativeEnum<typeof GetAtsRolesPositiveResponseUnifiedType> = z.nativeEnum(
95
+ GetAtsRolesPositiveResponseUnifiedType,
96
+ );
97
+
98
+ /** @internal */
99
+ export const GetAtsRolesPositiveResponseResult$inboundSchema: z.ZodType<
100
+ GetAtsRolesPositiveResponseResult,
101
+ z.ZodTypeDef,
102
+ unknown
103
+ > = z.object({
104
+ id: z.string(),
105
+ remote_id: z.nullable(z.string()),
106
+ remote_label: z.nullable(z.string()),
107
+ scope: z.nullable(GetAtsRolesPositiveResponseScope$inboundSchema),
108
+ unified_type: z.nullable(
109
+ GetAtsRolesPositiveResponseUnifiedType$inboundSchema,
110
+ ),
111
+ changed_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
112
+ remote_deleted_at: z.nullable(
113
+ z.string().datetime({ offset: true }).transform(v => new Date(v)),
114
+ ),
115
+ });
116
+
117
+ export function getAtsRolesPositiveResponseResultFromJSON(
118
+ jsonString: string,
119
+ ): SafeParseResult<GetAtsRolesPositiveResponseResult, SDKValidationError> {
120
+ return safeParse(
121
+ jsonString,
122
+ (x) => GetAtsRolesPositiveResponseResult$inboundSchema.parse(JSON.parse(x)),
123
+ `Failed to parse 'GetAtsRolesPositiveResponseResult' from JSON`,
124
+ );
125
+ }
126
+
127
+ /** @internal */
128
+ export const GetAtsRolesPositiveResponseData$inboundSchema: z.ZodType<
129
+ GetAtsRolesPositiveResponseData,
130
+ z.ZodTypeDef,
131
+ unknown
132
+ > = z.object({
133
+ next: z.nullable(z.string()),
134
+ results: z.array(
135
+ z.lazy(() => GetAtsRolesPositiveResponseResult$inboundSchema),
136
+ ),
137
+ });
138
+
139
+ export function getAtsRolesPositiveResponseDataFromJSON(
140
+ jsonString: string,
141
+ ): SafeParseResult<GetAtsRolesPositiveResponseData, SDKValidationError> {
142
+ return safeParse(
143
+ jsonString,
144
+ (x) => GetAtsRolesPositiveResponseData$inboundSchema.parse(JSON.parse(x)),
145
+ `Failed to parse 'GetAtsRolesPositiveResponseData' from JSON`,
146
+ );
147
+ }
148
+
149
+ /** @internal */
150
+ export const GetAtsRolesPositiveResponse$inboundSchema: z.ZodType<
151
+ GetAtsRolesPositiveResponse,
152
+ z.ZodTypeDef,
153
+ unknown
154
+ > = z.object({
155
+ status: z.literal("success"),
156
+ data: z.lazy(() => GetAtsRolesPositiveResponseData$inboundSchema),
157
+ });
158
+
159
+ export function getAtsRolesPositiveResponseFromJSON(
160
+ jsonString: string,
161
+ ): SafeParseResult<GetAtsRolesPositiveResponse, SDKValidationError> {
162
+ return safeParse(
163
+ jsonString,
164
+ (x) => GetAtsRolesPositiveResponse$inboundSchema.parse(JSON.parse(x)),
165
+ `Failed to parse 'GetAtsRolesPositiveResponse' from JSON`,
166
+ );
167
+ }
@@ -22,6 +22,57 @@ export type GetAtsUsersPositiveResponseStatus = ClosedEnum<
22
22
  typeof GetAtsUsersPositiveResponseStatus
23
23
  >;
24
24
 
25
+ /**
26
+ * Whether the role applies globally or is scoped to a specific job.
27
+ */
28
+ export const GetAtsUsersPositiveResponseScope = {
29
+ System: "SYSTEM",
30
+ Job: "JOB",
31
+ } as const;
32
+ /**
33
+ * Whether the role applies globally or is scoped to a specific job.
34
+ */
35
+ export type GetAtsUsersPositiveResponseScope = ClosedEnum<
36
+ typeof GetAtsUsersPositiveResponseScope
37
+ >;
38
+
39
+ /**
40
+ * Unified role type if Kombo can map it.
41
+ */
42
+ export const GetAtsUsersPositiveResponseUnifiedType = {
43
+ HiringManager: "HIRING_MANAGER",
44
+ Recruiter: "RECRUITER",
45
+ Coordinator: "COORDINATOR",
46
+ Sourcer: "SOURCER",
47
+ Interviewer: "INTERVIEWER",
48
+ Admin: "ADMIN",
49
+ } as const;
50
+ /**
51
+ * Unified role type if Kombo can map it.
52
+ */
53
+ export type GetAtsUsersPositiveResponseUnifiedType = ClosedEnum<
54
+ typeof GetAtsUsersPositiveResponseUnifiedType
55
+ >;
56
+
57
+ export type SystemRole = {
58
+ /**
59
+ * The raw ID of the object in the remote system. We don't recommend using this as a primary key on your side as it might sometimes be compromised of multiple identifiers if a system doesn't provide a clear primary key.
60
+ */
61
+ remote_id: string | null;
62
+ /**
63
+ * The label of the role.
64
+ */
65
+ remote_label: string | null;
66
+ /**
67
+ * Whether the role applies globally or is scoped to a specific job.
68
+ */
69
+ scope: GetAtsUsersPositiveResponseScope | null;
70
+ /**
71
+ * Unified role type if Kombo can map it.
72
+ */
73
+ unified_type: GetAtsUsersPositiveResponseUnifiedType | null;
74
+ };
75
+
25
76
  export type GetAtsUsersPositiveResponseResult = {
26
77
  /**
27
78
  * The globally unique ID of this object generated by Kombo. We recommend using this as a stable primary key for syncing.
@@ -55,6 +106,16 @@ export type GetAtsUsersPositiveResponseResult = {
55
106
  * The date and time the object was deleted in the remote system. Objects are automatically marked as deleted when Kombo can't retrieve them from the remote system anymore. Kombo will also anonymize entries 14 days after they disappear.
56
107
  */
57
108
  remote_deleted_at: Date | null;
109
+ /**
110
+ * System-wide roles assigned to this user in the ATS.
111
+ *
112
+ * @remarks
113
+ *
114
+ * Visit our in-depth guide about [roles](/ats/features/roles) to learn more.
115
+ *
116
+ * Note: Use `job_roles` on the `/v1/ats/jobs` endpoint for job-specific roles.
117
+ */
118
+ system_roles: Array<SystemRole>;
58
119
  };
59
120
 
60
121
  export type GetAtsUsersPositiveResponseData = {
@@ -75,6 +136,41 @@ export const GetAtsUsersPositiveResponseStatus$inboundSchema: z.ZodNativeEnum<
75
136
  typeof GetAtsUsersPositiveResponseStatus
76
137
  > = z.nativeEnum(GetAtsUsersPositiveResponseStatus);
77
138
 
139
+ /** @internal */
140
+ export const GetAtsUsersPositiveResponseScope$inboundSchema: z.ZodNativeEnum<
141
+ typeof GetAtsUsersPositiveResponseScope
142
+ > = z.nativeEnum(GetAtsUsersPositiveResponseScope);
143
+
144
+ /** @internal */
145
+ export const GetAtsUsersPositiveResponseUnifiedType$inboundSchema:
146
+ z.ZodNativeEnum<typeof GetAtsUsersPositiveResponseUnifiedType> = z.nativeEnum(
147
+ GetAtsUsersPositiveResponseUnifiedType,
148
+ );
149
+
150
+ /** @internal */
151
+ export const SystemRole$inboundSchema: z.ZodType<
152
+ SystemRole,
153
+ z.ZodTypeDef,
154
+ unknown
155
+ > = z.object({
156
+ remote_id: z.nullable(z.string()),
157
+ remote_label: z.nullable(z.string()),
158
+ scope: z.nullable(GetAtsUsersPositiveResponseScope$inboundSchema),
159
+ unified_type: z.nullable(
160
+ GetAtsUsersPositiveResponseUnifiedType$inboundSchema,
161
+ ),
162
+ });
163
+
164
+ export function systemRoleFromJSON(
165
+ jsonString: string,
166
+ ): SafeParseResult<SystemRole, SDKValidationError> {
167
+ return safeParse(
168
+ jsonString,
169
+ (x) => SystemRole$inboundSchema.parse(JSON.parse(x)),
170
+ `Failed to parse 'SystemRole' from JSON`,
171
+ );
172
+ }
173
+
78
174
  /** @internal */
79
175
  export const GetAtsUsersPositiveResponseResult$inboundSchema: z.ZodType<
80
176
  GetAtsUsersPositiveResponseResult,
@@ -91,6 +187,7 @@ export const GetAtsUsersPositiveResponseResult$inboundSchema: z.ZodType<
91
187
  remote_deleted_at: z.nullable(
92
188
  z.string().datetime({ offset: true }).transform(v => new Date(v)),
93
189
  ),
190
+ system_roles: z.array(z.lazy(() => SystemRole$inboundSchema)),
94
191
  });
95
192
 
96
193
  export function getAtsUsersPositiveResponseResultFromJSON(
@@ -390,7 +390,7 @@ export type Manager = {
390
390
  /**
391
391
  * Type of the group.
392
392
  */
393
- export const GroupType = {
393
+ export const GetHrisEmployeesPositiveResponseGroupType = {
394
394
  Department: "DEPARTMENT",
395
395
  Team: "TEAM",
396
396
  CostCenter: "COST_CENTER",
@@ -398,9 +398,11 @@ export const GroupType = {
398
398
  /**
399
399
  * Type of the group.
400
400
  */
401
- export type GroupType = ClosedEnum<typeof GroupType>;
401
+ export type GetHrisEmployeesPositiveResponseGroupType = ClosedEnum<
402
+ typeof GetHrisEmployeesPositiveResponseGroupType
403
+ >;
402
404
 
403
- export type Group = {
405
+ export type GetHrisEmployeesPositiveResponseGroup = {
404
406
  /**
405
407
  * The globally unique ID of this object generated by Kombo. We recommend using this as a stable primary key for syncing.
406
408
  */
@@ -416,7 +418,7 @@ export type Group = {
416
418
  /**
417
419
  * Type of the group.
418
420
  */
419
- type: GroupType | null;
421
+ type: GetHrisEmployeesPositiveResponseGroupType | null;
420
422
  };
421
423
 
422
424
  /**
@@ -441,7 +443,7 @@ export type LegalEntityAddress = {
441
443
  zip_code?: string | null | undefined;
442
444
  };
443
445
 
444
- export type LegalEntity = {
446
+ export type GetHrisEmployeesPositiveResponseLegalEntity = {
445
447
  /**
446
448
  * The globally unique ID of this object generated by Kombo. We recommend using this as a stable primary key for syncing.
447
449
  */
@@ -670,8 +672,8 @@ export type GetHrisEmployeesPositiveResponseResult = {
670
672
  employments: Array<Employment>;
671
673
  time_off_balances: Array<TimeOffBalance>;
672
674
  manager: Manager | null;
673
- groups: Array<Group>;
674
- legal_entity: LegalEntity | null;
675
+ groups: Array<GetHrisEmployeesPositiveResponseGroup>;
676
+ legal_entity: GetHrisEmployeesPositiveResponseLegalEntity | null;
675
677
  work_location: WorkLocation | null;
676
678
  };
677
679
 
@@ -939,25 +941,30 @@ export function managerFromJSON(
939
941
  }
940
942
 
941
943
  /** @internal */
942
- export const GroupType$inboundSchema: z.ZodNativeEnum<typeof GroupType> = z
943
- .nativeEnum(GroupType);
944
+ export const GetHrisEmployeesPositiveResponseGroupType$inboundSchema:
945
+ z.ZodNativeEnum<typeof GetHrisEmployeesPositiveResponseGroupType> = z
946
+ .nativeEnum(GetHrisEmployeesPositiveResponseGroupType);
944
947
 
945
948
  /** @internal */
946
- export const Group$inboundSchema: z.ZodType<Group, z.ZodTypeDef, unknown> = z
947
- .object({
948
- id: z.string(),
949
- remote_id: z.string(),
950
- name: z.nullable(z.string()),
951
- type: z.nullable(GroupType$inboundSchema),
952
- });
949
+ export const GetHrisEmployeesPositiveResponseGroup$inboundSchema: z.ZodType<
950
+ GetHrisEmployeesPositiveResponseGroup,
951
+ z.ZodTypeDef,
952
+ unknown
953
+ > = z.object({
954
+ id: z.string(),
955
+ remote_id: z.string(),
956
+ name: z.nullable(z.string()),
957
+ type: z.nullable(GetHrisEmployeesPositiveResponseGroupType$inboundSchema),
958
+ });
953
959
 
954
- export function groupFromJSON(
960
+ export function getHrisEmployeesPositiveResponseGroupFromJSON(
955
961
  jsonString: string,
956
- ): SafeParseResult<Group, SDKValidationError> {
962
+ ): SafeParseResult<GetHrisEmployeesPositiveResponseGroup, SDKValidationError> {
957
963
  return safeParse(
958
964
  jsonString,
959
- (x) => Group$inboundSchema.parse(JSON.parse(x)),
960
- `Failed to parse 'Group' from JSON`,
965
+ (x) =>
966
+ GetHrisEmployeesPositiveResponseGroup$inboundSchema.parse(JSON.parse(x)),
967
+ `Failed to parse 'GetHrisEmployeesPositiveResponseGroup' from JSON`,
961
968
  );
962
969
  }
963
970
 
@@ -987,25 +994,32 @@ export function legalEntityAddressFromJSON(
987
994
  }
988
995
 
989
996
  /** @internal */
990
- export const LegalEntity$inboundSchema: z.ZodType<
991
- LegalEntity,
992
- z.ZodTypeDef,
993
- unknown
994
- > = z.object({
995
- id: z.string(),
996
- remote_id: z.nullable(z.string()),
997
- name: z.nullable(z.string()),
998
- address: z.nullable(z.lazy(() => LegalEntityAddress$inboundSchema))
999
- .optional(),
1000
- });
997
+ export const GetHrisEmployeesPositiveResponseLegalEntity$inboundSchema:
998
+ z.ZodType<
999
+ GetHrisEmployeesPositiveResponseLegalEntity,
1000
+ z.ZodTypeDef,
1001
+ unknown
1002
+ > = z.object({
1003
+ id: z.string(),
1004
+ remote_id: z.nullable(z.string()),
1005
+ name: z.nullable(z.string()),
1006
+ address: z.nullable(z.lazy(() => LegalEntityAddress$inboundSchema))
1007
+ .optional(),
1008
+ });
1001
1009
 
1002
- export function legalEntityFromJSON(
1010
+ export function getHrisEmployeesPositiveResponseLegalEntityFromJSON(
1003
1011
  jsonString: string,
1004
- ): SafeParseResult<LegalEntity, SDKValidationError> {
1012
+ ): SafeParseResult<
1013
+ GetHrisEmployeesPositiveResponseLegalEntity,
1014
+ SDKValidationError
1015
+ > {
1005
1016
  return safeParse(
1006
1017
  jsonString,
1007
- (x) => LegalEntity$inboundSchema.parse(JSON.parse(x)),
1008
- `Failed to parse 'LegalEntity' from JSON`,
1018
+ (x) =>
1019
+ GetHrisEmployeesPositiveResponseLegalEntity$inboundSchema.parse(
1020
+ JSON.parse(x),
1021
+ ),
1022
+ `Failed to parse 'GetHrisEmployeesPositiveResponseLegalEntity' from JSON`,
1009
1023
  );
1010
1024
  }
1011
1025
 
@@ -1117,8 +1131,12 @@ export const GetHrisEmployeesPositiveResponseResult$inboundSchema: z.ZodType<
1117
1131
  employments: z.array(z.lazy(() => Employment$inboundSchema)),
1118
1132
  time_off_balances: z.array(z.lazy(() => TimeOffBalance$inboundSchema)),
1119
1133
  manager: z.nullable(z.lazy(() => Manager$inboundSchema)),
1120
- groups: z.array(z.lazy(() => Group$inboundSchema)),
1121
- legal_entity: z.nullable(z.lazy(() => LegalEntity$inboundSchema)),
1134
+ groups: z.array(
1135
+ z.lazy(() => GetHrisEmployeesPositiveResponseGroup$inboundSchema),
1136
+ ),
1137
+ legal_entity: z.nullable(
1138
+ z.lazy(() => GetHrisEmployeesPositiveResponseLegalEntity$inboundSchema),
1139
+ ),
1122
1140
  work_location: z.nullable(z.lazy(() => WorkLocation$inboundSchema)),
1123
1141
  });
1124
1142