@rippling/rippling-sdk 0.2.0-alpha.110 → 0.2.0-alpha.111

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 (570) hide show
  1. package/client.d.mts +58 -7
  2. package/client.d.mts.map +1 -1
  3. package/client.d.ts +58 -7
  4. package/client.d.ts.map +1 -1
  5. package/client.js +54 -3
  6. package/client.js.map +1 -1
  7. package/client.mjs +54 -3
  8. package/client.mjs.map +1 -1
  9. package/core/platform/custom-objects/manager.d.mts +43 -23
  10. package/core/platform/custom-objects/manager.d.mts.map +1 -1
  11. package/core/platform/custom-objects/manager.d.ts +43 -23
  12. package/core/platform/custom-objects/manager.d.ts.map +1 -1
  13. package/core/platform/custom-objects/manager.js +21 -17
  14. package/core/platform/custom-objects/manager.js.map +1 -1
  15. package/core/platform/custom-objects/manager.mjs +21 -17
  16. package/core/platform/custom-objects/manager.mjs.map +1 -1
  17. package/core/platform/custom-objects.d.mts +1 -1
  18. package/core/platform/custom-objects.d.mts.map +1 -1
  19. package/core/platform/custom-objects.d.ts +1 -1
  20. package/core/platform/custom-objects.d.ts.map +1 -1
  21. package/core/platform/custom-objects.js.map +1 -1
  22. package/core/platform/custom-objects.mjs.map +1 -1
  23. package/examples/manifest/acp-agent/acp-agent.ts +27 -23
  24. package/lib/manifest/acp-agent.d.mts +1 -1
  25. package/lib/manifest/acp-agent.d.mts.map +1 -1
  26. package/lib/manifest/acp-agent.d.ts +1 -1
  27. package/lib/manifest/acp-agent.d.ts.map +1 -1
  28. package/lib/manifest/acp-agent.js +6 -0
  29. package/lib/manifest/acp-agent.js.map +1 -1
  30. package/lib/manifest/acp-agent.mjs +6 -0
  31. package/lib/manifest/acp-agent.mjs.map +1 -1
  32. package/lib/manifest/definitions/_object-records.d.mts.map +1 -1
  33. package/lib/manifest/definitions/_object-records.d.ts.map +1 -1
  34. package/lib/manifest/definitions/_object-records.js +10 -8
  35. package/lib/manifest/definitions/_object-records.js.map +1 -1
  36. package/lib/manifest/definitions/_object-records.mjs +10 -8
  37. package/lib/manifest/definitions/_object-records.mjs.map +1 -1
  38. package/lib/manifest/definitions/custom-object.d.mts +10 -10
  39. package/lib/manifest/definitions/custom-object.d.mts.map +1 -1
  40. package/lib/manifest/definitions/custom-object.d.ts +10 -10
  41. package/lib/manifest/definitions/custom-object.d.ts.map +1 -1
  42. package/lib/manifest/definitions/custom-object.js.map +1 -1
  43. package/lib/manifest/definitions/custom-object.mjs.map +1 -1
  44. package/package.json +1 -1
  45. package/resources/activity-log.d.mts +1 -1
  46. package/resources/activity-log.d.ts +1 -1
  47. package/resources/activity-log.js +1 -1
  48. package/resources/activity-log.mjs +1 -1
  49. package/resources/agents/sessions/messages.d.mts +10 -1
  50. package/resources/agents/sessions/messages.d.mts.map +1 -1
  51. package/resources/agents/sessions/messages.d.ts +10 -1
  52. package/resources/agents/sessions/messages.d.ts.map +1 -1
  53. package/resources/agents/sessions/sessions.d.mts +30 -3
  54. package/resources/agents/sessions/sessions.d.mts.map +1 -1
  55. package/resources/agents/sessions/sessions.d.ts +30 -3
  56. package/resources/agents/sessions/sessions.d.ts.map +1 -1
  57. package/resources/agents/sessions/sessions.js.map +1 -1
  58. package/resources/agents/sessions/sessions.mjs.map +1 -1
  59. package/resources/bills.d.mts +1343 -0
  60. package/resources/bills.d.mts.map +1 -0
  61. package/resources/bills.d.ts +1343 -0
  62. package/resources/bills.d.ts.map +1 -0
  63. package/resources/bills.js +214 -0
  64. package/resources/bills.js.map +1 -0
  65. package/resources/bills.mjs +210 -0
  66. package/resources/bills.mjs.map +1 -0
  67. package/resources/card-transactions.d.mts +607 -49
  68. package/resources/card-transactions.d.mts.map +1 -1
  69. package/resources/card-transactions.d.ts +607 -49
  70. package/resources/card-transactions.d.ts.map +1 -1
  71. package/resources/card-transactions.js +73 -12
  72. package/resources/card-transactions.js.map +1 -1
  73. package/resources/card-transactions.mjs +73 -12
  74. package/resources/card-transactions.mjs.map +1 -1
  75. package/resources/custom-objects/custom-objects.d.mts +39 -3
  76. package/resources/custom-objects/custom-objects.d.mts.map +1 -1
  77. package/resources/custom-objects/custom-objects.d.ts +39 -3
  78. package/resources/custom-objects/custom-objects.d.ts.map +1 -1
  79. package/resources/custom-objects/custom-objects.js +38 -2
  80. package/resources/custom-objects/custom-objects.js.map +1 -1
  81. package/resources/custom-objects/custom-objects.mjs +38 -2
  82. package/resources/custom-objects/custom-objects.mjs.map +1 -1
  83. package/resources/custom-objects/fields.d.mts +44 -0
  84. package/resources/custom-objects/fields.d.mts.map +1 -1
  85. package/resources/custom-objects/fields.d.ts +44 -0
  86. package/resources/custom-objects/fields.d.ts.map +1 -1
  87. package/resources/custom-objects/fields.js +44 -0
  88. package/resources/custom-objects/fields.js.map +1 -1
  89. package/resources/custom-objects/fields.mjs +44 -0
  90. package/resources/custom-objects/fields.mjs.map +1 -1
  91. package/resources/custom-objects/index.d.mts +2 -1
  92. package/resources/custom-objects/index.d.mts.map +1 -1
  93. package/resources/custom-objects/index.d.ts +2 -1
  94. package/resources/custom-objects/index.d.ts.map +1 -1
  95. package/resources/custom-objects/index.js +5 -3
  96. package/resources/custom-objects/index.js.map +1 -1
  97. package/resources/custom-objects/index.mjs +2 -1
  98. package/resources/custom-objects/index.mjs.map +1 -1
  99. package/resources/custom-objects/list-views/capabilities.d.mts +63 -0
  100. package/resources/custom-objects/list-views/capabilities.d.mts.map +1 -0
  101. package/resources/custom-objects/list-views/capabilities.d.ts +63 -0
  102. package/resources/custom-objects/list-views/capabilities.d.ts.map +1 -0
  103. package/resources/custom-objects/list-views/capabilities.js +48 -0
  104. package/resources/custom-objects/list-views/capabilities.js.map +1 -0
  105. package/resources/custom-objects/list-views/capabilities.mjs +44 -0
  106. package/resources/custom-objects/list-views/capabilities.mjs.map +1 -0
  107. package/resources/custom-objects/list-views/default.d.mts +69 -0
  108. package/resources/custom-objects/list-views/default.d.mts.map +1 -0
  109. package/resources/custom-objects/list-views/default.d.ts +69 -0
  110. package/resources/custom-objects/list-views/default.d.ts.map +1 -0
  111. package/resources/custom-objects/list-views/default.js +59 -0
  112. package/resources/custom-objects/list-views/default.js.map +1 -0
  113. package/resources/custom-objects/list-views/default.mjs +55 -0
  114. package/resources/custom-objects/list-views/default.mjs.map +1 -0
  115. package/resources/custom-objects/list-views/index.d.mts +4 -0
  116. package/resources/custom-objects/list-views/index.d.mts.map +1 -0
  117. package/resources/custom-objects/list-views/index.d.ts +4 -0
  118. package/resources/custom-objects/list-views/index.d.ts.map +1 -0
  119. package/resources/custom-objects/list-views/index.js +11 -0
  120. package/resources/custom-objects/list-views/index.js.map +1 -0
  121. package/resources/custom-objects/list-views/index.mjs +5 -0
  122. package/resources/custom-objects/list-views/index.mjs.map +1 -0
  123. package/resources/custom-objects/list-views/list-views.d.mts +806 -0
  124. package/resources/custom-objects/list-views/list-views.d.mts.map +1 -0
  125. package/resources/custom-objects/list-views/list-views.d.ts +806 -0
  126. package/resources/custom-objects/list-views/list-views.d.ts.map +1 -0
  127. package/resources/custom-objects/list-views/list-views.js +314 -0
  128. package/resources/custom-objects/list-views/list-views.js.map +1 -0
  129. package/resources/custom-objects/list-views/list-views.mjs +309 -0
  130. package/resources/custom-objects/list-views/list-views.mjs.map +1 -0
  131. package/resources/custom-objects/list-views.d.mts +2 -0
  132. package/resources/custom-objects/list-views.d.mts.map +1 -0
  133. package/resources/custom-objects/list-views.d.ts +2 -0
  134. package/resources/custom-objects/list-views.d.ts.map +1 -0
  135. package/resources/custom-objects/list-views.js +6 -0
  136. package/resources/custom-objects/list-views.js.map +1 -0
  137. package/resources/custom-objects/list-views.mjs +3 -0
  138. package/resources/custom-objects/list-views.mjs.map +1 -0
  139. package/resources/custom-objects/records/capabilities.d.mts +61 -0
  140. package/resources/custom-objects/records/capabilities.d.mts.map +1 -0
  141. package/resources/custom-objects/records/capabilities.d.ts +61 -0
  142. package/resources/custom-objects/records/capabilities.d.ts.map +1 -0
  143. package/resources/custom-objects/records/capabilities.js +47 -0
  144. package/resources/custom-objects/records/capabilities.js.map +1 -0
  145. package/resources/custom-objects/records/capabilities.mjs +43 -0
  146. package/resources/custom-objects/records/capabilities.mjs.map +1 -0
  147. package/resources/custom-objects/records/index.d.mts +3 -0
  148. package/resources/custom-objects/records/index.d.mts.map +1 -0
  149. package/resources/custom-objects/records/index.d.ts +3 -0
  150. package/resources/custom-objects/records/index.d.ts.map +1 -0
  151. package/resources/custom-objects/records/index.js +9 -0
  152. package/resources/custom-objects/records/index.js.map +1 -0
  153. package/resources/custom-objects/records/index.mjs +4 -0
  154. package/resources/custom-objects/records/index.mjs.map +1 -0
  155. package/resources/custom-objects/records/records.d.mts +787 -0
  156. package/resources/custom-objects/records/records.d.mts.map +1 -0
  157. package/resources/custom-objects/records/records.d.ts +787 -0
  158. package/resources/custom-objects/records/records.d.ts.map +1 -0
  159. package/resources/custom-objects/records/records.js +543 -0
  160. package/resources/custom-objects/records/records.js.map +1 -0
  161. package/resources/custom-objects/records/records.mjs +538 -0
  162. package/resources/custom-objects/records/records.mjs.map +1 -0
  163. package/resources/custom-objects/records.d.mts +1 -561
  164. package/resources/custom-objects/records.d.mts.map +1 -1
  165. package/resources/custom-objects/records.d.ts +1 -561
  166. package/resources/custom-objects/records.d.ts.map +1 -1
  167. package/resources/custom-objects/records.js +2 -444
  168. package/resources/custom-objects/records.js.map +1 -1
  169. package/resources/custom-objects/records.mjs +1 -442
  170. package/resources/custom-objects/records.mjs.map +1 -1
  171. package/resources/devices.d.mts +2 -2
  172. package/resources/devices.d.mts.map +1 -1
  173. package/resources/devices.d.ts +2 -2
  174. package/resources/devices.d.ts.map +1 -1
  175. package/resources/draft-transitions.d.mts +241 -307
  176. package/resources/draft-transitions.d.mts.map +1 -1
  177. package/resources/draft-transitions.d.ts +241 -307
  178. package/resources/draft-transitions.d.ts.map +1 -1
  179. package/resources/draft-transitions.js +49 -23
  180. package/resources/draft-transitions.js.map +1 -1
  181. package/resources/draft-transitions.mjs +49 -23
  182. package/resources/draft-transitions.mjs.map +1 -1
  183. package/resources/employee-documents.d.mts +2 -2
  184. package/resources/employee-documents.d.ts +2 -2
  185. package/resources/{spend-categories.d.mts → finance-categories.d.mts} +21 -18
  186. package/resources/finance-categories.d.mts.map +1 -0
  187. package/resources/{spend-categories.d.ts → finance-categories.d.ts} +21 -18
  188. package/resources/finance-categories.d.ts.map +1 -0
  189. package/resources/{spend-categories.js → finance-categories.js} +14 -11
  190. package/resources/finance-categories.js.map +1 -0
  191. package/resources/{spend-categories.mjs → finance-categories.mjs} +12 -9
  192. package/resources/finance-categories.mjs.map +1 -0
  193. package/resources/finance-vendors.d.mts +154 -0
  194. package/resources/finance-vendors.d.mts.map +1 -0
  195. package/resources/finance-vendors.d.ts +154 -0
  196. package/resources/finance-vendors.d.ts.map +1 -0
  197. package/resources/finance-vendors.js +87 -0
  198. package/resources/finance-vendors.js.map +1 -0
  199. package/resources/finance-vendors.mjs +83 -0
  200. package/resources/finance-vendors.mjs.map +1 -0
  201. package/resources/functions/executions.d.mts +4 -1
  202. package/resources/functions/executions.d.mts.map +1 -1
  203. package/resources/functions/executions.d.ts +4 -1
  204. package/resources/functions/executions.d.ts.map +1 -1
  205. package/resources/functions/executions.js +4 -1
  206. package/resources/functions/executions.js.map +1 -1
  207. package/resources/functions/executions.mjs +4 -1
  208. package/resources/functions/executions.mjs.map +1 -1
  209. package/resources/functions/functions.d.mts +192 -4
  210. package/resources/functions/functions.d.mts.map +1 -1
  211. package/resources/functions/functions.d.ts +192 -4
  212. package/resources/functions/functions.d.ts.map +1 -1
  213. package/resources/functions/functions.js +72 -4
  214. package/resources/functions/functions.js.map +1 -1
  215. package/resources/functions/functions.mjs +72 -4
  216. package/resources/functions/functions.mjs.map +1 -1
  217. package/resources/hire-requirements.d.mts +98 -9
  218. package/resources/hire-requirements.d.mts.map +1 -1
  219. package/resources/hire-requirements.d.ts +98 -9
  220. package/resources/hire-requirements.d.ts.map +1 -1
  221. package/resources/hire-requirements.js +23 -4
  222. package/resources/hire-requirements.js.map +1 -1
  223. package/resources/hire-requirements.mjs +23 -4
  224. package/resources/hire-requirements.mjs.map +1 -1
  225. package/resources/hires.d.mts +1636 -510
  226. package/resources/hires.d.mts.map +1 -1
  227. package/resources/hires.d.ts +1636 -510
  228. package/resources/hires.d.ts.map +1 -1
  229. package/resources/hires.js +10 -4
  230. package/resources/hires.js.map +1 -1
  231. package/resources/hires.mjs +10 -4
  232. package/resources/hires.mjs.map +1 -1
  233. package/resources/index.d.mts +11 -3
  234. package/resources/index.d.mts.map +1 -1
  235. package/resources/index.d.ts +11 -3
  236. package/resources/index.d.ts.map +1 -1
  237. package/resources/index.js +21 -5
  238. package/resources/index.js.map +1 -1
  239. package/resources/index.mjs +9 -1
  240. package/resources/index.mjs.map +1 -1
  241. package/resources/leave-requests.d.mts +11 -2
  242. package/resources/leave-requests.d.mts.map +1 -1
  243. package/resources/leave-requests.d.ts +11 -2
  244. package/resources/leave-requests.d.ts.map +1 -1
  245. package/resources/leave-requests.js +11 -2
  246. package/resources/leave-requests.js.map +1 -1
  247. package/resources/leave-requests.mjs +11 -2
  248. package/resources/leave-requests.mjs.map +1 -1
  249. package/resources/object-categories.d.mts +2 -1
  250. package/resources/object-categories.d.mts.map +1 -1
  251. package/resources/object-categories.d.ts +2 -1
  252. package/resources/object-categories.d.ts.map +1 -1
  253. package/resources/object-categories.js +2 -1
  254. package/resources/object-categories.js.map +1 -1
  255. package/resources/object-categories.mjs +2 -1
  256. package/resources/object-categories.mjs.map +1 -1
  257. package/resources/package-components/extract.d.mts +121 -0
  258. package/resources/package-components/extract.d.mts.map +1 -0
  259. package/resources/package-components/extract.d.ts +121 -0
  260. package/resources/package-components/extract.d.ts.map +1 -0
  261. package/resources/package-components/extract.js +69 -0
  262. package/resources/package-components/extract.js.map +1 -0
  263. package/resources/package-components/extract.mjs +65 -0
  264. package/resources/package-components/extract.mjs.map +1 -0
  265. package/resources/package-components/index.d.mts +4 -0
  266. package/resources/package-components/index.d.mts.map +1 -0
  267. package/resources/package-components/index.d.ts +4 -0
  268. package/resources/package-components/index.d.ts.map +1 -0
  269. package/resources/package-components/index.js +11 -0
  270. package/resources/package-components/index.js.map +1 -0
  271. package/resources/package-components/index.mjs +5 -0
  272. package/resources/package-components/index.mjs.map +1 -0
  273. package/resources/package-components/package-components.d.mts +99 -0
  274. package/resources/package-components/package-components.d.mts.map +1 -0
  275. package/resources/package-components/package-components.d.ts +99 -0
  276. package/resources/package-components/package-components.d.ts.map +1 -0
  277. package/resources/package-components/package-components.js +63 -0
  278. package/resources/package-components/package-components.js.map +1 -0
  279. package/resources/package-components/package-components.mjs +58 -0
  280. package/resources/package-components/package-components.mjs.map +1 -0
  281. package/resources/package-components/types.d.mts +56 -0
  282. package/resources/package-components/types.d.mts.map +1 -0
  283. package/resources/package-components/types.d.ts +56 -0
  284. package/resources/package-components/types.d.ts.map +1 -0
  285. package/resources/package-components/types.js +40 -0
  286. package/resources/package-components/types.js.map +1 -0
  287. package/resources/package-components/types.mjs +36 -0
  288. package/resources/package-components/types.mjs.map +1 -0
  289. package/resources/package-components.d.mts +2 -0
  290. package/resources/package-components.d.mts.map +1 -0
  291. package/resources/package-components.d.ts +2 -0
  292. package/resources/package-components.d.ts.map +1 -0
  293. package/resources/package-components.js +6 -0
  294. package/resources/package-components.js.map +1 -0
  295. package/resources/package-components.mjs +3 -0
  296. package/resources/package-components.mjs.map +1 -0
  297. package/resources/package-installs.d.mts +96 -9
  298. package/resources/package-installs.d.mts.map +1 -1
  299. package/resources/package-installs.d.ts +96 -9
  300. package/resources/package-installs.d.ts.map +1 -1
  301. package/resources/package-installs.js +20 -3
  302. package/resources/package-installs.js.map +1 -1
  303. package/resources/package-installs.mjs +20 -3
  304. package/resources/package-installs.mjs.map +1 -1
  305. package/resources/package-managed-installs.d.mts +104 -7
  306. package/resources/package-managed-installs.d.mts.map +1 -1
  307. package/resources/package-managed-installs.d.ts +104 -7
  308. package/resources/package-managed-installs.d.ts.map +1 -1
  309. package/resources/package-managed-installs.js +22 -3
  310. package/resources/package-managed-installs.js.map +1 -1
  311. package/resources/package-managed-installs.mjs +22 -3
  312. package/resources/package-managed-installs.mjs.map +1 -1
  313. package/resources/package-manifests/index.d.mts +4 -0
  314. package/resources/package-manifests/index.d.mts.map +1 -0
  315. package/resources/package-manifests/index.d.ts +4 -0
  316. package/resources/package-manifests/index.d.ts.map +1 -0
  317. package/resources/package-manifests/index.js +11 -0
  318. package/resources/package-manifests/index.js.map +1 -0
  319. package/resources/package-manifests/index.mjs +5 -0
  320. package/resources/package-manifests/index.mjs.map +1 -0
  321. package/resources/package-manifests/package-manifests.d.mts +14 -0
  322. package/resources/package-manifests/package-manifests.d.mts.map +1 -0
  323. package/resources/package-manifests/package-manifests.d.ts +14 -0
  324. package/resources/package-manifests/package-manifests.d.ts.map +1 -0
  325. package/resources/package-manifests/package-manifests.js +21 -0
  326. package/resources/package-manifests/package-manifests.js.map +1 -0
  327. package/resources/package-manifests/package-manifests.mjs +16 -0
  328. package/resources/package-manifests/package-manifests.mjs.map +1 -0
  329. package/resources/package-manifests/packages/index.d.mts +3 -0
  330. package/resources/package-manifests/packages/index.d.mts.map +1 -0
  331. package/resources/package-manifests/packages/index.d.ts +3 -0
  332. package/resources/package-manifests/packages/index.d.ts.map +1 -0
  333. package/resources/package-manifests/packages/index.js +9 -0
  334. package/resources/package-manifests/packages/index.js.map +1 -0
  335. package/resources/package-manifests/packages/index.mjs +4 -0
  336. package/resources/package-manifests/packages/index.mjs.map +1 -0
  337. package/resources/package-manifests/packages/packages.d.mts +10 -0
  338. package/resources/package-manifests/packages/packages.d.mts.map +1 -0
  339. package/resources/package-manifests/packages/packages.d.ts +10 -0
  340. package/resources/package-manifests/packages/packages.d.ts.map +1 -0
  341. package/resources/package-manifests/packages/packages.js +17 -0
  342. package/resources/package-manifests/packages/packages.js.map +1 -0
  343. package/resources/package-manifests/packages/packages.mjs +12 -0
  344. package/resources/package-manifests/packages/packages.mjs.map +1 -0
  345. package/resources/package-manifests/packages/versions.d.mts +199 -0
  346. package/resources/package-manifests/packages/versions.d.mts.map +1 -0
  347. package/resources/package-manifests/packages/versions.d.ts +199 -0
  348. package/resources/package-manifests/packages/versions.d.ts.map +1 -0
  349. package/resources/package-manifests/packages/versions.js +68 -0
  350. package/resources/package-manifests/packages/versions.js.map +1 -0
  351. package/resources/package-manifests/packages/versions.mjs +64 -0
  352. package/resources/package-manifests/packages/versions.mjs.map +1 -0
  353. package/resources/package-manifests/packages.d.mts +2 -0
  354. package/resources/package-manifests/packages.d.mts.map +1 -0
  355. package/resources/package-manifests/packages.d.ts +2 -0
  356. package/resources/package-manifests/packages.d.ts.map +1 -0
  357. package/resources/package-manifests/packages.js +6 -0
  358. package/resources/package-manifests/packages.js.map +1 -0
  359. package/resources/package-manifests/packages.mjs +3 -0
  360. package/resources/package-manifests/packages.mjs.map +1 -0
  361. package/resources/package-manifests/versions.d.mts +84 -0
  362. package/resources/package-manifests/versions.d.mts.map +1 -0
  363. package/resources/package-manifests/versions.d.ts +84 -0
  364. package/resources/package-manifests/versions.d.ts.map +1 -0
  365. package/resources/package-manifests/versions.js +44 -0
  366. package/resources/package-manifests/versions.js.map +1 -0
  367. package/resources/package-manifests/versions.mjs +40 -0
  368. package/resources/package-manifests/versions.mjs.map +1 -0
  369. package/resources/package-manifests.d.mts +2 -0
  370. package/resources/package-manifests.d.mts.map +1 -0
  371. package/resources/package-manifests.d.ts +2 -0
  372. package/resources/package-manifests.d.ts.map +1 -0
  373. package/resources/package-manifests.js +6 -0
  374. package/resources/package-manifests.js.map +1 -0
  375. package/resources/package-manifests.mjs +3 -0
  376. package/resources/package-manifests.mjs.map +1 -0
  377. package/resources/package-versions/package-versions.d.mts +104 -14
  378. package/resources/package-versions/package-versions.d.mts.map +1 -1
  379. package/resources/package-versions/package-versions.d.ts +104 -14
  380. package/resources/package-versions/package-versions.d.ts.map +1 -1
  381. package/resources/package-versions/package-versions.js +30 -9
  382. package/resources/package-versions/package-versions.js.map +1 -1
  383. package/resources/package-versions/package-versions.mjs +30 -9
  384. package/resources/package-versions/package-versions.mjs.map +1 -1
  385. package/resources/package-versions/publish.d.mts +40 -4
  386. package/resources/package-versions/publish.d.mts.map +1 -1
  387. package/resources/package-versions/publish.d.ts +40 -4
  388. package/resources/package-versions/publish.d.ts.map +1 -1
  389. package/resources/package-versions/publish.js +8 -2
  390. package/resources/package-versions/publish.js.map +1 -1
  391. package/resources/package-versions/publish.mjs +8 -2
  392. package/resources/package-versions/publish.mjs.map +1 -1
  393. package/resources/packages/next-versions.d.mts +40 -4
  394. package/resources/packages/next-versions.d.mts.map +1 -1
  395. package/resources/packages/next-versions.d.ts +40 -4
  396. package/resources/packages/next-versions.d.ts.map +1 -1
  397. package/resources/packages/next-versions.js +8 -2
  398. package/resources/packages/next-versions.js.map +1 -1
  399. package/resources/packages/next-versions.mjs +8 -2
  400. package/resources/packages/next-versions.mjs.map +1 -1
  401. package/resources/packages/versions.d.mts +80 -9
  402. package/resources/packages/versions.d.mts.map +1 -1
  403. package/resources/packages/versions.d.ts +80 -9
  404. package/resources/packages/versions.d.ts.map +1 -1
  405. package/resources/packages/versions.js +16 -5
  406. package/resources/packages/versions.js.map +1 -1
  407. package/resources/packages/versions.mjs +16 -5
  408. package/resources/packages/versions.mjs.map +1 -1
  409. package/resources/payroll-runs/off-cycle.d.mts +17 -9
  410. package/resources/payroll-runs/off-cycle.d.mts.map +1 -1
  411. package/resources/payroll-runs/off-cycle.d.ts +17 -9
  412. package/resources/payroll-runs/off-cycle.d.ts.map +1 -1
  413. package/resources/payroll-runs/off-cycle.js +9 -5
  414. package/resources/payroll-runs/off-cycle.js.map +1 -1
  415. package/resources/payroll-runs/off-cycle.mjs +9 -5
  416. package/resources/payroll-runs/off-cycle.mjs.map +1 -1
  417. package/resources/permissions/index.d.mts +3 -0
  418. package/resources/permissions/index.d.mts.map +1 -0
  419. package/resources/permissions/index.d.ts +3 -0
  420. package/resources/permissions/index.d.ts.map +1 -0
  421. package/resources/permissions/index.js +9 -0
  422. package/resources/permissions/index.js.map +1 -0
  423. package/resources/permissions/index.mjs +4 -0
  424. package/resources/permissions/index.mjs.map +1 -0
  425. package/resources/permissions/permission-profiles.d.mts +43 -0
  426. package/resources/permissions/permission-profiles.d.mts.map +1 -0
  427. package/resources/permissions/permission-profiles.d.ts +43 -0
  428. package/resources/permissions/permission-profiles.d.ts.map +1 -0
  429. package/resources/permissions/permission-profiles.js +36 -0
  430. package/resources/permissions/permission-profiles.js.map +1 -0
  431. package/resources/permissions/permission-profiles.mjs +32 -0
  432. package/resources/permissions/permission-profiles.mjs.map +1 -0
  433. package/resources/permissions/permissions.d.mts +10 -0
  434. package/resources/permissions/permissions.d.mts.map +1 -0
  435. package/resources/permissions/permissions.d.ts +10 -0
  436. package/resources/permissions/permissions.d.ts.map +1 -0
  437. package/resources/permissions/permissions.js +17 -0
  438. package/resources/permissions/permissions.js.map +1 -0
  439. package/resources/permissions/permissions.mjs +12 -0
  440. package/resources/permissions/permissions.mjs.map +1 -0
  441. package/resources/permissions.d.mts +2 -0
  442. package/resources/permissions.d.mts.map +1 -0
  443. package/resources/permissions.d.ts +2 -0
  444. package/resources/permissions.d.ts.map +1 -0
  445. package/resources/permissions.js +6 -0
  446. package/resources/permissions.js.map +1 -0
  447. package/resources/permissions.mjs +3 -0
  448. package/resources/permissions.mjs.map +1 -0
  449. package/resources/record-detail-reference-options.d.mts +111 -0
  450. package/resources/record-detail-reference-options.d.mts.map +1 -0
  451. package/resources/record-detail-reference-options.d.ts +111 -0
  452. package/resources/record-detail-reference-options.d.ts.map +1 -0
  453. package/resources/record-detail-reference-options.js +54 -0
  454. package/resources/record-detail-reference-options.js.map +1 -0
  455. package/resources/record-detail-reference-options.mjs +50 -0
  456. package/resources/record-detail-reference-options.mjs.map +1 -0
  457. package/resources/record-detail-related-records.d.mts +1070 -0
  458. package/resources/record-detail-related-records.d.mts.map +1 -0
  459. package/resources/record-detail-related-records.d.ts +1070 -0
  460. package/resources/record-detail-related-records.d.ts.map +1 -0
  461. package/resources/record-detail-related-records.js +49 -0
  462. package/resources/record-detail-related-records.js.map +1 -0
  463. package/resources/record-detail-related-records.mjs +45 -0
  464. package/resources/record-detail-related-records.mjs.map +1 -0
  465. package/resources/record-details.d.mts +1227 -0
  466. package/resources/record-details.d.mts.map +1 -0
  467. package/resources/record-details.d.ts +1227 -0
  468. package/resources/record-details.d.ts.map +1 -0
  469. package/resources/record-details.js +71 -0
  470. package/resources/record-details.js.map +1 -0
  471. package/resources/record-details.mjs +67 -0
  472. package/resources/record-details.mjs.map +1 -0
  473. package/resources/reimbursements.d.mts +2158 -90
  474. package/resources/reimbursements.d.mts.map +1 -1
  475. package/resources/reimbursements.d.ts +2158 -90
  476. package/resources/reimbursements.d.ts.map +1 -1
  477. package/resources/reimbursements.js +306 -16
  478. package/resources/reimbursements.js.map +1 -1
  479. package/resources/reimbursements.mjs +306 -16
  480. package/resources/reimbursements.mjs.map +1 -1
  481. package/resources/report-runs.d.mts +2 -1
  482. package/resources/report-runs.d.mts.map +1 -1
  483. package/resources/report-runs.d.ts +2 -1
  484. package/resources/report-runs.d.ts.map +1 -1
  485. package/resources/report-runs.js +2 -1
  486. package/resources/report-runs.js.map +1 -1
  487. package/resources/report-runs.mjs +2 -1
  488. package/resources/report-runs.mjs.map +1 -1
  489. package/resources/sandboxes.d.mts +20 -624
  490. package/resources/sandboxes.d.mts.map +1 -1
  491. package/resources/sandboxes.d.ts +20 -624
  492. package/resources/sandboxes.d.ts.map +1 -1
  493. package/resources/sandboxes.js +5 -60
  494. package/resources/sandboxes.js.map +1 -1
  495. package/resources/sandboxes.mjs +5 -60
  496. package/resources/sandboxes.mjs.map +1 -1
  497. package/src/client.ts +156 -17
  498. package/src/core/platform/custom-objects/manager.ts +65 -42
  499. package/src/core/platform/custom-objects.ts +3 -0
  500. package/src/lib/manifest/acp-agent.ts +7 -1
  501. package/src/lib/manifest/definitions/_object-records.ts +17 -10
  502. package/src/lib/manifest/definitions/custom-object.ts +14 -9
  503. package/src/resources/activity-log.ts +1 -1
  504. package/src/resources/agents/sessions/messages.ts +10 -1
  505. package/src/resources/agents/sessions/sessions.ts +30 -3
  506. package/src/resources/bills.ts +1660 -0
  507. package/src/resources/card-transactions.ts +742 -49
  508. package/src/resources/custom-objects/custom-objects.ts +62 -2
  509. package/src/resources/custom-objects/fields.ts +44 -0
  510. package/src/resources/custom-objects/index.ts +13 -1
  511. package/src/resources/custom-objects/list-views/capabilities.ts +72 -0
  512. package/src/resources/custom-objects/list-views/default.ts +87 -0
  513. package/src/resources/custom-objects/list-views/index.ts +15 -0
  514. package/src/resources/custom-objects/list-views/list-views.ts +973 -0
  515. package/src/resources/custom-objects/list-views.ts +3 -0
  516. package/src/resources/custom-objects/records/capabilities.ts +73 -0
  517. package/src/resources/custom-objects/records/index.ts +21 -0
  518. package/src/resources/custom-objects/records/records.ts +955 -0
  519. package/src/resources/custom-objects/records.ts +1 -703
  520. package/src/resources/devices.ts +2 -0
  521. package/src/resources/draft-transitions.ts +276 -347
  522. package/src/resources/employee-documents.ts +2 -2
  523. package/src/resources/{spend-categories.ts → finance-categories.ts} +26 -23
  524. package/src/resources/finance-vendors.ts +191 -0
  525. package/src/resources/functions/executions.ts +4 -1
  526. package/src/resources/functions/functions.ts +216 -4
  527. package/src/resources/hire-requirements.ts +107 -9
  528. package/src/resources/hires.ts +1768 -539
  529. package/src/resources/index.ts +51 -7
  530. package/src/resources/leave-requests.ts +11 -2
  531. package/src/resources/object-categories.ts +2 -1
  532. package/src/resources/package-components/extract.ts +139 -0
  533. package/src/resources/package-components/index.ts +10 -0
  534. package/src/resources/package-components/package-components.ts +134 -0
  535. package/src/resources/package-components/types.ts +64 -0
  536. package/src/resources/package-components.ts +3 -0
  537. package/src/resources/package-installs.ts +120 -9
  538. package/src/resources/package-managed-installs.ts +146 -7
  539. package/src/resources/package-manifests/index.ts +5 -0
  540. package/src/resources/package-manifests/package-manifests.ts +21 -0
  541. package/src/resources/package-manifests/packages/index.ts +4 -0
  542. package/src/resources/package-manifests/packages/packages.ts +19 -0
  543. package/src/resources/package-manifests/packages/versions.ts +237 -0
  544. package/src/resources/package-manifests/packages.ts +3 -0
  545. package/src/resources/package-manifests/versions.ts +96 -0
  546. package/src/resources/package-manifests.ts +3 -0
  547. package/src/resources/package-versions/package-versions.ts +117 -14
  548. package/src/resources/package-versions/publish.ts +46 -4
  549. package/src/resources/packages/next-versions.ts +46 -4
  550. package/src/resources/packages/versions.ts +92 -9
  551. package/src/resources/payroll-runs/off-cycle.ts +17 -9
  552. package/src/resources/permissions/index.ts +4 -0
  553. package/src/resources/permissions/permission-profiles.ts +50 -0
  554. package/src/resources/permissions/permissions.ts +20 -0
  555. package/src/resources/permissions.ts +3 -0
  556. package/src/resources/record-detail-reference-options.ts +142 -0
  557. package/src/resources/record-detail-related-records.ts +1380 -0
  558. package/src/resources/record-details.ts +1554 -0
  559. package/src/resources/reimbursements.ts +2591 -126
  560. package/src/resources/report-runs.ts +2 -1
  561. package/src/resources/sandboxes.ts +48 -742
  562. package/src/version.ts +1 -1
  563. package/version.d.mts +1 -1
  564. package/version.d.ts +1 -1
  565. package/version.js +1 -1
  566. package/version.mjs +1 -1
  567. package/resources/spend-categories.d.mts.map +0 -1
  568. package/resources/spend-categories.d.ts.map +0 -1
  569. package/resources/spend-categories.js.map +0 -1
  570. package/resources/spend-categories.mjs.map +0 -1
@@ -1,8 +1,8 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  import { APIResource } from '../core/resource';
4
- import * as BusinessPartnersAPI from './business-partners';
5
4
  import { APIPromise } from '../core/api-promise';
5
+ import { buildHeaders } from '../internal/headers';
6
6
  import { RequestOptions } from '../internal/request-options';
7
7
  import { path } from '../internal/utils/path';
8
8
 
@@ -11,7 +11,10 @@ import { path } from '../internal/utils/path';
11
11
  */
12
12
  export class DraftTransitions extends APIResource {
13
13
  /**
14
- * Retrieve a specific draft transition
14
+ * Retrieve the current result of an asynchronously processed draft transition
15
+ * request. Poll while status is ACCEPTED or PROCESSING. Other statuses are
16
+ * terminal; inspect warning_items and failed_items for details. Completed drafts
17
+ * still require review and application.
15
18
  *
16
19
  * @example HTTP
17
20
  * Representative request and response shapes.
@@ -25,11 +28,32 @@ export class DraftTransitions extends APIResource {
25
28
  * Content-Type: application/json
26
29
  *
27
30
  * {
28
- * "__meta": {
29
- * "redacted_fields": [
30
- * {}
31
- * ]
32
- * }
31
+ * "request_id": "string",
32
+ * "status": "ACCEPTED",
33
+ * "submitted_count": 0,
34
+ * "completed_count": 0,
35
+ * "warning_count": 0,
36
+ * "failed_count": 0,
37
+ * "warning_items": [
38
+ * {
39
+ * "index": 0,
40
+ * "worker_id": "string",
41
+ * "status": "ACCEPTED",
42
+ * "warnings": [
43
+ * {}
44
+ * ]
45
+ * }
46
+ * ],
47
+ * "failed_items": [
48
+ * {
49
+ * "index": 0,
50
+ * "worker_id": "string",
51
+ * "status": "ACCEPTED",
52
+ * "errors": [
53
+ * {}
54
+ * ]
55
+ * }
56
+ * ]
33
57
  * }
34
58
  * ```
35
59
  */
@@ -38,7 +62,11 @@ export class DraftTransitions extends APIResource {
38
62
  }
39
63
 
40
64
  /**
41
- * Create a new draft transition
65
+ * Accept a batch of draft employment changes for asynchronous processing. This
66
+ * creates drafts, not applied employment changes. Poll GET
67
+ * /draft-transitions/{id}/ using the returned request_id until processing reaches
68
+ * a terminal status; inspect warning_items and failed_items for item-level
69
+ * outcomes. Reuse the same Idempotency-Key and payload when retrying.
42
70
  *
43
71
  * @example HTTP
44
72
  * Representative request and response shapes.
@@ -48,13 +76,14 @@ export class DraftTransitions extends APIResource {
48
76
  * Content-Type: application/json
49
77
  * Accept: application/json
50
78
  * Rippling-Api-Version: 2024-08-01
79
+ * Idempotency-Key: Idempotency-Key
51
80
  *
52
81
  * {
53
82
  * "effective_at": "effective_at",
54
83
  * "items": [
55
84
  * {
56
85
  * "changes": {},
57
- * "role_id": "role_id"
86
+ * "worker_id": "worker_id"
58
87
  * }
59
88
  * ],
60
89
  * "timezone": "timezone"
@@ -64,242 +93,229 @@ export class DraftTransitions extends APIResource {
64
93
  * Content-Type: application/json
65
94
  *
66
95
  * {
67
- * "effective_at": "string",
68
- * "timezone": "string",
69
- * "items": [
70
- * {
71
- * "role_id": "string",
72
- * "draft_grouping_preference": "APPEND_TO_MATCHING_DRAFT",
73
- * "changes": {
74
- * "employment_info": {},
75
- * "work_location_info": {},
76
- * "country_specific_info": {}
77
- * }
78
- * }
79
- * ]
96
+ * "request_id": "string",
97
+ * "status": "ACCEPTED",
98
+ * "submitted_count": 0,
99
+ * "created": false
80
100
  * }
81
101
  * ```
82
102
  */
83
103
  create(
84
- body: DraftTransitionCreateParams,
104
+ params: DraftTransitionCreateParams,
85
105
  options?: RequestOptions,
86
106
  ): APIPromise<DraftTransitionCreateResponse> {
87
- return this._client.post('/draft-transitions/', { body, ...options });
107
+ const { 'Idempotency-Key': idempotencyKey, ...body } = params;
108
+ return this._client.post('/draft-transitions/', {
109
+ body,
110
+ ...options,
111
+ headers: buildHeaders([{ 'Idempotency-Key': idempotencyKey }, options?.headers]),
112
+ });
88
113
  }
89
114
  }
90
115
 
91
- /**
92
- * Meta information for the response.
93
- */
94
- export interface DraftTransitionRetrieveResponse extends BusinessPartnersAPI.Meta {
116
+ export interface DraftTransitionRetrieveResponse {
95
117
  /**
96
- * Effective timestamp applied to the entire draft transition request.
118
+ * Number of completed items, including items completed with warnings.
97
119
  */
98
- effective_at: string;
120
+ completed_count: number;
99
121
 
100
122
  /**
101
- * Draft transition items to accept for asynchronous processing.
123
+ * Number of failed items.
102
124
  */
103
- items: Array<DraftTransitionRetrieveResponse.Item>;
125
+ failed_count: number;
104
126
 
105
127
  /**
106
- * IANA timezone used to interpret and display the request's effective timestamp.
128
+ * Details for failed items; empty when none have failed.
107
129
  */
108
- timezone: string;
130
+ failed_items: Array<DraftTransitionRetrieveResponse.FailedItem>;
131
+
132
+ /**
133
+ * Identifier of the submitted draft transition request.
134
+ */
135
+ request_id: string;
136
+
137
+ /**
138
+ * Current processing state. Continue polling while ACCEPTED or PROCESSING.
139
+ * COMPLETED, COMPLETED_WITH_WARNINGS, COMPLETED_WITH_ERRORS, and FAILED are
140
+ * terminal states.
141
+ */
142
+ status:
143
+ | 'ACCEPTED'
144
+ | 'PROCESSING'
145
+ | 'COMPLETED'
146
+ | 'COMPLETED_WITH_WARNINGS'
147
+ | 'COMPLETED_WITH_ERRORS'
148
+ | 'FAILED';
149
+
150
+ /**
151
+ * Total number of items accepted in the original request.
152
+ */
153
+ submitted_count: number;
154
+
155
+ /**
156
+ * Number of items completed with warnings; these are also included in
157
+ * completed_count.
158
+ */
159
+ warning_count: number;
160
+
161
+ /**
162
+ * Details for items completed with warnings; empty when none have warnings.
163
+ */
164
+ warning_items: Array<DraftTransitionRetrieveResponse.WarningItem>;
109
165
  }
110
166
 
111
167
  export namespace DraftTransitionRetrieveResponse {
112
- export interface Item {
168
+ export interface FailedItem {
113
169
  /**
114
- * Requested role/profile changes for this item.
170
+ * Errors explaining why this item failed.
115
171
  */
116
- changes: Item.Changes;
172
+ errors: Array<FailedItem.Error>;
117
173
 
118
174
  /**
119
- * Target role identifier for this draft transition item.
175
+ * Zero-based index of this item in the submitted items array.
120
176
  */
121
- role_id: string;
177
+ index: number;
122
178
 
123
179
  /**
124
- * Controls whether this item should append to a compatible existing draft or
125
- * create a new draft.
180
+ * Item processing state; failed items have FAILED status.
126
181
  */
127
- draft_grouping_preference?: 'APPEND_TO_MATCHING_DRAFT' | 'CREATE_NEW_DRAFT';
128
- }
182
+ status: 'ACCEPTED' | 'PROCESSING' | 'COMPLETED' | 'COMPLETED_WITH_WARNINGS' | 'FAILED';
129
183
 
130
- export namespace Item {
131
184
  /**
132
- * Requested role/profile changes for this item.
185
+ * Target worker identifier, matching the id returned by GET /workers/{id}/.
133
186
  */
134
- export interface Changes {
135
- /**
136
- * Country-specific field changes supported by current draft transition flows.
137
- */
138
- country_specific_info?: unknown;
187
+ worker_id: string;
188
+ }
139
189
 
190
+ export namespace FailedItem {
191
+ export interface Error {
140
192
  /**
141
- * Employment information changes for the target role.
193
+ * Machine-readable warning or error code.
142
194
  */
143
- employment_info?: Changes.EmploymentInfo;
195
+ code: string;
144
196
 
145
197
  /**
146
- * Work location changes for the target role.
198
+ * Explanation of the issue and, when applicable, how to correct it.
147
199
  */
148
- work_location_info?: Changes.WorkLocationInfo;
149
- }
200
+ message: string;
150
201
 
151
- export namespace Changes {
152
202
  /**
153
- * Employment information changes for the target role.
203
+ * Path to the affected request field, when available.
154
204
  */
155
- export interface EmploymentInfo {
156
- /**
157
- * New annual salary equivalent.
158
- */
159
- annual_salary_equivalent?: number;
160
-
161
- /**
162
- * New compensation currency.
163
- */
164
- currency?: string;
165
-
166
- /**
167
- * New department identifier for the target role.
168
- */
169
- department_id?: string;
170
-
171
- /**
172
- * New company employment type identifier for the target role.
173
- */
174
- employment_type_id?: string;
175
-
176
- /**
177
- * New offer letter equity share count.
178
- */
179
- equity_num_shares?: number;
180
-
181
- /**
182
- * New offer letter equity value.
183
- */
184
- equity_value?: number;
185
-
186
- /**
187
- * New equity vesting package identifier.
188
- */
189
- equity_vesting_package_id?: string;
190
-
191
- /**
192
- * New job family identifier for the target role.
193
- */
194
- job_family_id?: string;
195
-
196
- /**
197
- * New level identifier for the target role.
198
- */
199
- level_id?: string;
200
-
201
- /**
202
- * New manager role identifier for the target role.
203
- */
204
- manager_id?: string;
205
-
206
- /**
207
- * New annual on-target commission amount.
208
- */
209
- on_target_commission?: number;
210
-
211
- /**
212
- * New relocation reimbursement amount.
213
- */
214
- relocation_reimbursement?: number;
215
-
216
- /**
217
- * New compensation amount per salary unit.
218
- */
219
- salary_per_unit?: number;
220
-
221
- /**
222
- * New salary unit.
223
- */
224
- salary_unit?: string;
225
-
226
- /**
227
- * New start date for the target role.
228
- */
229
- start_date?: string;
205
+ field_path?: string | null;
206
+ }
207
+ }
230
208
 
231
- /**
232
- * New target annual bonus amount.
233
- */
234
- target_annual_bonus?: number;
209
+ export interface WarningItem {
210
+ /**
211
+ * Zero-based index of this item in the submitted items array.
212
+ */
213
+ index: number;
235
214
 
236
- /**
237
- * New target annual bonus payment frequency.
238
- */
239
- target_annual_bonus_payment_frequency_unit?: 'MONTH' | 'QUARTER' | 'YEAR' | 'SEMI_ANNUAL';
215
+ /**
216
+ * Item processing state; warning items have COMPLETED_WITH_WARNINGS status.
217
+ */
218
+ status: 'ACCEPTED' | 'PROCESSING' | 'COMPLETED' | 'COMPLETED_WITH_WARNINGS' | 'FAILED';
240
219
 
241
- /**
242
- * New target annual bonus percentage.
243
- */
244
- target_annual_bonus_percent?: number;
220
+ /**
221
+ * Warnings associated with this completed item. Review the draft before applying
222
+ * it.
223
+ */
224
+ warnings: Array<WarningItem.Warning>;
245
225
 
246
- /**
247
- * New team identifiers for the target role.
248
- */
249
- teams_ids?: Array<string>;
226
+ /**
227
+ * Target worker identifier, matching the id returned by GET /workers/{id}/.
228
+ */
229
+ worker_id: string;
230
+ }
250
231
 
251
- /**
252
- * New job title for the target role.
253
- */
254
- title?: string;
255
- }
232
+ export namespace WarningItem {
233
+ export interface Warning {
234
+ /**
235
+ * Machine-readable warning or error code.
236
+ */
237
+ code: string;
256
238
 
257
239
  /**
258
- * Work location changes for the target role.
240
+ * Explanation of the issue and, when applicable, how to correct it.
259
241
  */
260
- export interface WorkLocationInfo {
261
- /**
262
- * New work country code for the target role.
263
- */
264
- country_code?: string;
242
+ message: string;
265
243
 
266
- /**
267
- * New work location identifier for the target role.
268
- */
269
- location_id?: string;
270
- }
244
+ /**
245
+ * Path to the affected request field, when available.
246
+ */
247
+ field_path?: string | null;
271
248
  }
272
249
  }
273
250
  }
274
251
 
275
252
  export interface DraftTransitionCreateResponse {
276
253
  /**
277
- * Effective timestamp applied to the entire draft transition request.
254
+ * True for a newly accepted request; false for an idempotent replay.
255
+ */
256
+ created: boolean;
257
+
258
+ /**
259
+ * Request identifier to poll with GET /draft-transitions/{id}/.
260
+ */
261
+ request_id: string;
262
+
263
+ /**
264
+ * Current processing state. ACCEPTED is queued; PROCESSING is in progress.
265
+ * COMPLETED, COMPLETED_WITH_WARNINGS, COMPLETED_WITH_ERRORS, and FAILED are
266
+ * terminal states.
267
+ */
268
+ status:
269
+ | 'ACCEPTED'
270
+ | 'PROCESSING'
271
+ | 'COMPLETED'
272
+ | 'COMPLETED_WITH_WARNINGS'
273
+ | 'COMPLETED_WITH_ERRORS'
274
+ | 'FAILED';
275
+
276
+ /**
277
+ * Number of items accepted in the original request.
278
+ */
279
+ submitted_count: number;
280
+ }
281
+
282
+ export interface DraftTransitionCreateParams {
283
+ /**
284
+ * Body param: Effective timestamp applied to the entire draft transition request.
278
285
  */
279
286
  effective_at: string;
280
287
 
281
288
  /**
282
- * Draft transition items to accept for asynchronous processing.
289
+ * Body param: Draft transition items to accept for asynchronous processing.
290
+ * Maximum 500 items per request. Split larger batches into separate requests with
291
+ * distinct Idempotency-Key values.
283
292
  */
284
- items: Array<DraftTransitionCreateResponse.Item>;
293
+ items: Array<DraftTransitionCreateParams.Item>;
285
294
 
286
295
  /**
287
- * IANA timezone used to interpret and display the request's effective timestamp.
296
+ * Body param: IANA timezone used to interpret and display the request's effective
297
+ * timestamp.
288
298
  */
289
299
  timezone: string;
300
+
301
+ /**
302
+ * Header param: Non-empty key identifying this submission. Reuse it with the same
303
+ * payload to retrieve the existing request instead of creating another.
304
+ */
305
+ 'Idempotency-Key': string;
290
306
  }
291
307
 
292
- export namespace DraftTransitionCreateResponse {
308
+ export namespace DraftTransitionCreateParams {
293
309
  export interface Item {
294
310
  /**
295
- * Requested role/profile changes for this item.
311
+ * Requested employment changes for this item.
296
312
  */
297
313
  changes: Item.Changes;
298
314
 
299
315
  /**
300
- * Target role identifier for this draft transition item.
316
+ * Target worker identifier, matching the id returned by GET /workers/{id}/.
301
317
  */
302
- role_id: string;
318
+ worker_id: string;
303
319
 
304
320
  /**
305
321
  * Controls whether this item should append to a compatible existing draft or
@@ -310,7 +326,7 @@ export namespace DraftTransitionCreateResponse {
310
326
 
311
327
  export namespace Item {
312
328
  /**
313
- * Requested role/profile changes for this item.
329
+ * Requested employment changes for this item.
314
330
  */
315
331
  export interface Changes {
316
332
  /**
@@ -319,38 +335,40 @@ export namespace DraftTransitionCreateResponse {
319
335
  country_specific_info?: unknown;
320
336
 
321
337
  /**
322
- * Employment information changes for the target role.
338
+ * Employment information changes for the target worker.
323
339
  */
324
340
  employment_info?: Changes.EmploymentInfo;
325
341
 
326
342
  /**
327
- * Work location changes for the target role.
343
+ * Work location changes for the target worker.
328
344
  */
329
345
  work_location_info?: Changes.WorkLocationInfo;
330
346
  }
331
347
 
332
348
  export namespace Changes {
333
349
  /**
334
- * Employment information changes for the target role.
350
+ * Employment information changes for the target worker.
335
351
  */
336
352
  export interface EmploymentInfo {
337
353
  /**
338
354
  * New annual salary equivalent.
339
355
  */
340
- annual_salary_equivalent?: number;
356
+ annual_salary_equivalent?: EmploymentInfo.AnnualSalaryEquivalent;
341
357
 
342
358
  /**
343
- * New compensation currency.
359
+ * New compensation currency for a currency-only change. When monetary amounts are
360
+ * also supplied, this must match their currency_type. All monetary fields in one
361
+ * item must use the same currency.
344
362
  */
345
363
  currency?: string;
346
364
 
347
365
  /**
348
- * New department identifier for the target role.
366
+ * New department identifier for the target worker.
349
367
  */
350
368
  department_id?: string;
351
369
 
352
370
  /**
353
- * New company employment type identifier for the target role.
371
+ * New company employment type identifier for the target worker.
354
372
  */
355
373
  employment_type_id?: string;
356
374
 
@@ -362,7 +380,7 @@ export namespace DraftTransitionCreateResponse {
362
380
  /**
363
381
  * New offer letter equity value.
364
382
  */
365
- equity_value?: number;
383
+ equity_value?: EmploymentInfo.EquityValue;
366
384
 
367
385
  /**
368
386
  * New equity vesting package identifier.
@@ -370,34 +388,34 @@ export namespace DraftTransitionCreateResponse {
370
388
  equity_vesting_package_id?: string;
371
389
 
372
390
  /**
373
- * New job family identifier for the target role.
391
+ * New job family identifier for the target worker.
374
392
  */
375
393
  job_family_id?: string;
376
394
 
377
395
  /**
378
- * New level identifier for the target role.
396
+ * New level identifier for the target worker.
379
397
  */
380
398
  level_id?: string;
381
399
 
382
400
  /**
383
- * New manager role identifier for the target role.
401
+ * New manager worker identifier, matching the id returned by GET /workers/{id}/.
384
402
  */
385
403
  manager_id?: string;
386
404
 
387
405
  /**
388
406
  * New annual on-target commission amount.
389
407
  */
390
- on_target_commission?: number;
408
+ on_target_commission?: EmploymentInfo.OnTargetCommission;
391
409
 
392
410
  /**
393
411
  * New relocation reimbursement amount.
394
412
  */
395
- relocation_reimbursement?: number;
413
+ relocation_reimbursement?: EmploymentInfo.RelocationReimbursement;
396
414
 
397
415
  /**
398
416
  * New compensation amount per salary unit.
399
417
  */
400
- salary_per_unit?: number;
418
+ salary_per_unit?: EmploymentInfo.SalaryPerUnit;
401
419
 
402
420
  /**
403
421
  * New salary unit.
@@ -405,14 +423,14 @@ export namespace DraftTransitionCreateResponse {
405
423
  salary_unit?: string;
406
424
 
407
425
  /**
408
- * New start date for the target role.
426
+ * New start date for the target worker.
409
427
  */
410
428
  start_date?: string;
411
429
 
412
430
  /**
413
431
  * New target annual bonus amount.
414
432
  */
415
- target_annual_bonus?: number;
433
+ target_annual_bonus?: EmploymentInfo.TargetAnnualBonus;
416
434
 
417
435
  /**
418
436
  * New target annual bonus payment frequency.
@@ -425,208 +443,119 @@ export namespace DraftTransitionCreateResponse {
425
443
  target_annual_bonus_percent?: number;
426
444
 
427
445
  /**
428
- * New team identifiers for the target role.
446
+ * New team identifiers for the target worker.
429
447
  */
430
448
  teams_ids?: Array<string>;
431
449
 
432
450
  /**
433
- * New job title for the target role.
451
+ * New job title for the target worker.
434
452
  */
435
453
  title?: string;
436
454
  }
437
455
 
438
- /**
439
- * Work location changes for the target role.
440
- */
441
- export interface WorkLocationInfo {
442
- /**
443
- * New work country code for the target role.
444
- */
445
- country_code?: string;
446
-
447
- /**
448
- * New work location identifier for the target role.
449
- */
450
- location_id?: string;
451
- }
452
- }
453
- }
454
- }
455
-
456
- export interface DraftTransitionCreateParams {
457
- /**
458
- * Effective timestamp applied to the entire draft transition request.
459
- */
460
- effective_at: string;
461
-
462
- /**
463
- * Draft transition items to accept for asynchronous processing.
464
- */
465
- items: Array<DraftTransitionCreateParams.Item>;
466
-
467
- /**
468
- * IANA timezone used to interpret and display the request's effective timestamp.
469
- */
470
- timezone: string;
471
- }
472
-
473
- export namespace DraftTransitionCreateParams {
474
- export interface Item {
475
- /**
476
- * Requested role/profile changes for this item.
477
- */
478
- changes: Item.Changes;
479
-
480
- /**
481
- * Target role identifier for this draft transition item.
482
- */
483
- role_id: string;
484
-
485
- /**
486
- * Controls whether this item should append to a compatible existing draft or
487
- * create a new draft.
488
- */
489
- draft_grouping_preference?: 'APPEND_TO_MATCHING_DRAFT' | 'CREATE_NEW_DRAFT';
490
- }
491
-
492
- export namespace Item {
493
- /**
494
- * Requested role/profile changes for this item.
495
- */
496
- export interface Changes {
497
- /**
498
- * Country-specific field changes supported by current draft transition flows.
499
- */
500
- country_specific_info?: unknown;
501
-
502
- /**
503
- * Employment information changes for the target role.
504
- */
505
- employment_info?: Changes.EmploymentInfo;
506
-
507
- /**
508
- * Work location changes for the target role.
509
- */
510
- work_location_info?: Changes.WorkLocationInfo;
511
- }
512
-
513
- export namespace Changes {
514
- /**
515
- * Employment information changes for the target role.
516
- */
517
- export interface EmploymentInfo {
456
+ export namespace EmploymentInfo {
518
457
  /**
519
458
  * New annual salary equivalent.
520
459
  */
521
- annual_salary_equivalent?: number;
460
+ export interface AnnualSalaryEquivalent {
461
+ /**
462
+ * The currency type, ex: USD, EUR, etc.
463
+ */
464
+ currency_type?: string;
522
465
 
523
- /**
524
- * New compensation currency.
525
- */
526
- currency?: string;
527
-
528
- /**
529
- * New department identifier for the target role.
530
- */
531
- department_id?: string;
532
-
533
- /**
534
- * New company employment type identifier for the target role.
535
- */
536
- employment_type_id?: string;
537
-
538
- /**
539
- * New offer letter equity share count.
540
- */
541
- equity_num_shares?: number;
466
+ /**
467
+ * The decimal amount for the currency.
468
+ */
469
+ value?: number;
470
+ }
542
471
 
543
472
  /**
544
473
  * New offer letter equity value.
545
474
  */
546
- equity_value?: number;
547
-
548
- /**
549
- * New equity vesting package identifier.
550
- */
551
- equity_vesting_package_id?: string;
552
-
553
- /**
554
- * New job family identifier for the target role.
555
- */
556
- job_family_id?: string;
557
-
558
- /**
559
- * New level identifier for the target role.
560
- */
561
- level_id?: string;
475
+ export interface EquityValue {
476
+ /**
477
+ * The currency type, ex: USD, EUR, etc.
478
+ */
479
+ currency_type?: string;
562
480
 
563
- /**
564
- * New manager role identifier for the target role.
565
- */
566
- manager_id?: string;
481
+ /**
482
+ * The decimal amount for the currency.
483
+ */
484
+ value?: number;
485
+ }
567
486
 
568
487
  /**
569
488
  * New annual on-target commission amount.
570
489
  */
571
- on_target_commission?: number;
490
+ export interface OnTargetCommission {
491
+ /**
492
+ * The currency type, ex: USD, EUR, etc.
493
+ */
494
+ currency_type?: string;
495
+
496
+ /**
497
+ * The decimal amount for the currency.
498
+ */
499
+ value?: number;
500
+ }
572
501
 
573
502
  /**
574
503
  * New relocation reimbursement amount.
575
504
  */
576
- relocation_reimbursement?: number;
505
+ export interface RelocationReimbursement {
506
+ /**
507
+ * The currency type, ex: USD, EUR, etc.
508
+ */
509
+ currency_type?: string;
510
+
511
+ /**
512
+ * The decimal amount for the currency.
513
+ */
514
+ value?: number;
515
+ }
577
516
 
578
517
  /**
579
518
  * New compensation amount per salary unit.
580
519
  */
581
- salary_per_unit?: number;
520
+ export interface SalaryPerUnit {
521
+ /**
522
+ * The currency type, ex: USD, EUR, etc.
523
+ */
524
+ currency_type?: string;
582
525
 
583
- /**
584
- * New salary unit.
585
- */
586
- salary_unit?: string;
587
-
588
- /**
589
- * New start date for the target role.
590
- */
591
- start_date?: string;
526
+ /**
527
+ * The decimal amount for the currency.
528
+ */
529
+ value?: number;
530
+ }
592
531
 
593
532
  /**
594
533
  * New target annual bonus amount.
595
534
  */
596
- target_annual_bonus?: number;
597
-
598
- /**
599
- * New target annual bonus payment frequency.
600
- */
601
- target_annual_bonus_payment_frequency_unit?: 'MONTH' | 'QUARTER' | 'YEAR' | 'SEMI_ANNUAL';
602
-
603
- /**
604
- * New target annual bonus percentage.
605
- */
606
- target_annual_bonus_percent?: number;
607
-
608
- /**
609
- * New team identifiers for the target role.
610
- */
611
- teams_ids?: Array<string>;
612
-
613
- /**
614
- * New job title for the target role.
615
- */
616
- title?: string;
535
+ export interface TargetAnnualBonus {
536
+ /**
537
+ * The currency type, ex: USD, EUR, etc.
538
+ */
539
+ currency_type?: string;
540
+
541
+ /**
542
+ * The decimal amount for the currency.
543
+ */
544
+ value?: number;
545
+ }
617
546
  }
618
547
 
619
548
  /**
620
- * Work location changes for the target role.
549
+ * Work location changes for the target worker.
621
550
  */
622
551
  export interface WorkLocationInfo {
623
552
  /**
624
- * New work country code for the target role.
553
+ * New work country code for the target worker.
625
554
  */
626
555
  country_code?: string;
627
556
 
628
557
  /**
629
- * New work location identifier for the target role.
558
+ * New work location identifier for the target worker.
630
559
  */
631
560
  location_id?: string;
632
561
  }