@chrt-inc/typescript-sdk 1.320.0 → 1.321.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (284) hide show
  1. package/dist/cjs/Client.d.ts +6 -3
  2. package/dist/cjs/Client.js +36 -31
  3. package/dist/cjs/api/resources/drivers/client/Client.d.ts +59 -61
  4. package/dist/cjs/api/resources/drivers/client/Client.js +140 -139
  5. package/dist/cjs/api/resources/drivers/client/requests/DriverClientCreate1.d.ts +20 -0
  6. package/dist/cjs/api/resources/drivers/client/requests/{UpdateDriverDetailsReq.d.ts → DriverClientUpdate1.d.ts} +4 -5
  7. package/dist/cjs/api/resources/drivers/client/requests/DriverLastSeenReq.d.ts +1 -0
  8. package/dist/cjs/api/resources/drivers/client/requests/index.d.ts +2 -3
  9. package/dist/cjs/api/resources/index.d.ts +4 -1
  10. package/dist/cjs/api/resources/index.js +5 -2
  11. package/dist/cjs/api/resources/orders/client/Client.d.ts +13 -0
  12. package/dist/cjs/api/resources/orders/client/Client.js +59 -0
  13. package/dist/cjs/api/resources/taskArtifacts/client/Client.d.ts +79 -6
  14. package/dist/cjs/api/resources/taskArtifacts/client/Client.js +308 -6
  15. package/dist/cjs/api/resources/taskArtifacts/client/index.d.ts +1 -0
  16. package/dist/cjs/api/resources/taskArtifacts/client/index.js +15 -0
  17. package/dist/cjs/api/resources/taskArtifacts/client/requests/AddTaskArtifactReq.d.ts +19 -0
  18. package/dist/cjs/api/resources/taskArtifacts/client/requests/index.d.ts +1 -0
  19. package/dist/cjs/api/resources/taskArtifacts/resources/index.d.ts +2 -2
  20. package/dist/cjs/api/resources/taskArtifacts/resources/index.js +3 -3
  21. package/dist/cjs/api/resources/taskArtifacts/resources/{blurhash → s3Object}/client/Client.d.ts +9 -9
  22. package/dist/cjs/api/resources/taskArtifacts/resources/{blurhash → s3Object}/client/Client.js +11 -11
  23. package/dist/cjs/api/resources/taskArtifacts/resources/s3ObjectMetadata/client/Client.d.ts +47 -0
  24. package/dist/cjs/api/resources/taskArtifacts/resources/s3ObjectMetadata/client/Client.js +127 -0
  25. package/dist/cjs/api/resources/taskArtifacts/resources/s3ObjectMetadata/client/index.js +2 -0
  26. package/dist/cjs/api/resources/taskGroups/client/Client.d.ts +79 -33
  27. package/dist/cjs/api/resources/taskGroups/client/Client.js +220 -67
  28. package/dist/cjs/api/resources/taskGroups/client/requests/AddMessageReq.d.ts +13 -0
  29. package/dist/cjs/api/resources/taskGroups/client/requests/BodyPostAddS3ObjectV1OortTaskGroupsAddS3ObjectV1TaskGroupIdPost.d.ts +13 -0
  30. package/dist/cjs/api/resources/taskGroups/client/requests/SetFlightNumberReq.d.ts +1 -0
  31. package/dist/cjs/api/resources/taskGroups/client/requests/SetTaskOrderingReq.d.ts +3 -2
  32. package/dist/cjs/api/resources/taskGroups/client/requests/UpdateCourierOrgReq.d.ts +13 -0
  33. package/dist/cjs/api/resources/taskGroups/client/requests/UpdateCourierOrgReq.js +5 -0
  34. package/dist/cjs/api/resources/taskGroups/client/requests/UpdateDriverReq.d.ts +13 -0
  35. package/dist/cjs/api/resources/taskGroups/client/requests/UpdateDriverReq.js +5 -0
  36. package/dist/cjs/api/resources/taskGroups/client/requests/index.d.ts +4 -2
  37. package/dist/cjs/api/resources/taskGroups/resources/expanded/client/Client.d.ts +4 -0
  38. package/dist/cjs/api/resources/taskGroups/resources/expanded/client/Client.js +18 -2
  39. package/dist/cjs/api/resources/taskGroups/resources/expanded/client/requests/ExpandedListForCourierDriverV1Request.d.ts +4 -0
  40. package/dist/cjs/api/resources/taskGroups/resources/expanded/client/requests/ExpandedListForCourierOperatorsV1Request.d.ts +4 -0
  41. package/dist/cjs/api/resources/taskGroups/resources/index.d.ts +3 -0
  42. package/dist/cjs/api/resources/taskGroups/resources/index.js +4 -1
  43. package/dist/cjs/api/resources/{taskArtifacts/resources/images → taskGroups/resources/s3Object}/client/Client.d.ts +14 -7
  44. package/dist/cjs/api/resources/{taskArtifacts/resources/images → taskGroups/resources/s3Object}/client/Client.js +16 -10
  45. package/dist/cjs/api/resources/taskGroups/resources/s3Object/client/index.js +2 -0
  46. package/dist/cjs/api/resources/taskGroups/resources/s3Object/index.d.ts +1 -0
  47. package/dist/cjs/api/resources/taskGroups/resources/s3Object/index.js +17 -0
  48. package/dist/cjs/api/resources/taskGroups/resources/s3ObjectMetadata/client/Client.d.ts +47 -0
  49. package/dist/cjs/api/resources/taskGroups/resources/s3ObjectMetadata/client/Client.js +127 -0
  50. package/dist/cjs/api/resources/taskGroups/resources/s3ObjectMetadata/client/index.js +2 -0
  51. package/dist/cjs/api/resources/taskGroups/resources/s3ObjectMetadata/index.d.ts +1 -0
  52. package/dist/cjs/api/resources/taskGroups/resources/s3ObjectMetadata/index.js +17 -0
  53. package/dist/cjs/api/resources/taskGroups/resources/taskGroupId/client/Client.d.ts +59 -0
  54. package/dist/cjs/api/resources/taskGroups/resources/taskGroupId/client/Client.js +186 -0
  55. package/dist/cjs/api/resources/taskGroups/resources/taskGroupId/client/index.js +2 -0
  56. package/dist/cjs/api/resources/taskGroups/resources/taskGroupId/index.d.ts +1 -0
  57. package/dist/cjs/api/resources/taskGroups/resources/taskGroupId/index.js +17 -0
  58. package/dist/cjs/api/resources/tasks/client/Client.d.ts +107 -0
  59. package/dist/cjs/api/resources/tasks/client/Client.js +377 -0
  60. package/dist/cjs/api/resources/tasks/client/index.d.ts +2 -0
  61. package/dist/cjs/api/resources/tasks/client/index.js +17 -0
  62. package/dist/cjs/api/resources/tasks/client/requests/AddTaskToGroupReq.d.ts +21 -0
  63. package/dist/cjs/api/resources/tasks/client/requests/AddTaskToGroupReq.js +5 -0
  64. package/dist/cjs/api/resources/tasks/client/requests/index.d.ts +1 -0
  65. package/dist/cjs/api/resources/tasks/client/requests/index.js +2 -0
  66. package/dist/cjs/api/resources/tasks/index.d.ts +1 -0
  67. package/dist/cjs/api/resources/tasks/index.js +17 -0
  68. package/dist/cjs/api/types/Cargo1.d.ts +1 -0
  69. package/dist/cjs/api/types/CargoStatusEnum1.d.ts +2 -1
  70. package/dist/cjs/api/types/CargoStatusEnum1.js +1 -0
  71. package/dist/cjs/api/types/ChrtGroundCourierTaskActionEnum1.d.ts +2 -2
  72. package/dist/cjs/api/types/ChrtGroundCourierTaskActionEnum1.js +1 -1
  73. package/dist/cjs/api/types/Driver1.d.ts +6 -4
  74. package/dist/cjs/api/types/DriverStatusEnum.d.ts +3 -3
  75. package/dist/cjs/api/types/DriverStatusEnum.js +2 -2
  76. package/dist/cjs/api/types/DriverUpdateAvailabilityReq.d.ts +6 -0
  77. package/dist/cjs/api/types/DriverUpdateAvailabilityReq.js +5 -0
  78. package/dist/cjs/api/types/Task1.d.ts +1 -0
  79. package/dist/cjs/api/types/TaskArtifact1.d.ts +1 -0
  80. package/dist/cjs/api/types/TaskArtifactClientCreate1.d.ts +8 -0
  81. package/dist/cjs/api/types/TaskArtifactClientCreate1.js +5 -0
  82. package/dist/cjs/api/types/TaskArtifactS3ObjectMetadata1.d.ts +15 -0
  83. package/dist/cjs/api/types/TaskArtifactS3ObjectMetadata1.js +5 -0
  84. package/dist/cjs/api/types/TaskArtifactStatusEnum1.d.ts +2 -1
  85. package/dist/cjs/api/types/TaskArtifactStatusEnum1.js +1 -0
  86. package/dist/cjs/api/types/TaskClientUpdate1.d.ts +0 -1
  87. package/dist/cjs/api/types/TaskGroup1.d.ts +1 -0
  88. package/dist/cjs/api/types/TaskGroupS3ObjectMetadata1.d.ts +15 -0
  89. package/dist/cjs/api/types/TaskGroupS3ObjectMetadata1.js +5 -0
  90. package/dist/cjs/api/types/TaskGroupSortByEnum.d.ts +2 -1
  91. package/dist/cjs/api/types/TaskGroupSortByEnum.js +1 -0
  92. package/dist/cjs/api/types/TaskGroupStatusEnum1.d.ts +2 -1
  93. package/dist/cjs/api/types/TaskGroupStatusEnum1.js +1 -0
  94. package/dist/cjs/api/types/TaskStatusEnum1.d.ts +2 -1
  95. package/dist/cjs/api/types/TaskStatusEnum1.js +1 -0
  96. package/dist/cjs/api/types/index.d.ts +4 -0
  97. package/dist/cjs/api/types/index.js +4 -0
  98. package/dist/cjs/core/exports.d.ts +1 -0
  99. package/dist/cjs/core/exports.js +17 -0
  100. package/dist/cjs/core/file/exports.d.ts +1 -0
  101. package/dist/cjs/core/file/exports.js +2 -0
  102. package/dist/cjs/core/file/file.d.ts +5 -0
  103. package/dist/cjs/core/file/file.js +203 -0
  104. package/dist/cjs/core/file/index.d.ts +2 -0
  105. package/dist/cjs/core/file/index.js +18 -0
  106. package/dist/cjs/core/file/types.d.ts +66 -0
  107. package/dist/cjs/core/file/types.js +2 -0
  108. package/dist/cjs/core/form-data-utils/FormDataWrapper.d.ts +16 -0
  109. package/dist/cjs/core/form-data-utils/FormDataWrapper.js +208 -0
  110. package/dist/cjs/core/form-data-utils/encodeAsFormParameter.d.ts +1 -0
  111. package/dist/cjs/core/form-data-utils/encodeAsFormParameter.js +12 -0
  112. package/dist/cjs/core/form-data-utils/index.d.ts +2 -0
  113. package/dist/cjs/core/form-data-utils/index.js +20 -0
  114. package/dist/cjs/core/index.d.ts +2 -0
  115. package/dist/cjs/core/index.js +3 -1
  116. package/dist/cjs/exports.d.ts +1 -0
  117. package/dist/cjs/exports.js +17 -0
  118. package/dist/cjs/index.d.ts +1 -0
  119. package/dist/cjs/index.js +4 -0
  120. package/dist/cjs/version.d.ts +1 -1
  121. package/dist/cjs/version.js +1 -1
  122. package/dist/esm/Client.d.mts +6 -3
  123. package/dist/esm/Client.mjs +12 -7
  124. package/dist/esm/api/resources/drivers/client/Client.d.mts +59 -61
  125. package/dist/esm/api/resources/drivers/client/Client.mjs +140 -139
  126. package/dist/esm/api/resources/drivers/client/requests/DriverClientCreate1.d.mts +20 -0
  127. package/dist/esm/api/resources/drivers/client/requests/{UpdateDriverDetailsReq.d.mts → DriverClientUpdate1.d.mts} +4 -5
  128. package/dist/esm/api/resources/drivers/client/requests/DriverLastSeenReq.d.mts +1 -0
  129. package/dist/esm/api/resources/drivers/client/requests/index.d.mts +2 -3
  130. package/dist/esm/api/resources/index.d.mts +4 -1
  131. package/dist/esm/api/resources/index.mjs +4 -1
  132. package/dist/esm/api/resources/orders/client/Client.d.mts +13 -0
  133. package/dist/esm/api/resources/orders/client/Client.mjs +59 -0
  134. package/dist/esm/api/resources/taskArtifacts/client/Client.d.mts +79 -6
  135. package/dist/esm/api/resources/taskArtifacts/client/Client.mjs +275 -6
  136. package/dist/esm/api/resources/taskArtifacts/client/index.d.mts +1 -0
  137. package/dist/esm/api/resources/taskArtifacts/client/index.mjs +1 -1
  138. package/dist/esm/api/resources/taskArtifacts/client/requests/AddTaskArtifactReq.d.mts +19 -0
  139. package/dist/esm/api/resources/taskArtifacts/client/requests/index.d.mts +1 -0
  140. package/dist/esm/api/resources/taskArtifacts/resources/index.d.mts +2 -2
  141. package/dist/esm/api/resources/taskArtifacts/resources/index.mjs +2 -2
  142. package/dist/esm/api/resources/taskArtifacts/resources/{blurhash → s3Object}/client/Client.d.mts +9 -9
  143. package/dist/esm/api/resources/taskArtifacts/resources/{blurhash → s3Object}/client/Client.mjs +9 -9
  144. package/dist/esm/api/resources/taskArtifacts/resources/s3Object/client/index.d.mts +1 -0
  145. package/dist/esm/api/resources/taskArtifacts/resources/s3Object/client/index.mjs +1 -0
  146. package/dist/esm/api/resources/taskArtifacts/resources/s3ObjectMetadata/client/Client.d.mts +47 -0
  147. package/dist/esm/api/resources/taskArtifacts/resources/s3ObjectMetadata/client/Client.mjs +90 -0
  148. package/dist/esm/api/resources/taskArtifacts/resources/s3ObjectMetadata/client/index.d.mts +1 -0
  149. package/dist/esm/api/resources/taskArtifacts/resources/s3ObjectMetadata/client/index.mjs +1 -0
  150. package/dist/esm/api/resources/taskGroups/client/Client.d.mts +79 -33
  151. package/dist/esm/api/resources/taskGroups/client/Client.mjs +218 -65
  152. package/dist/esm/api/resources/taskGroups/client/requests/AddMessageReq.d.mts +13 -0
  153. package/dist/esm/api/resources/taskGroups/client/requests/BodyPostAddS3ObjectV1OortTaskGroupsAddS3ObjectV1TaskGroupIdPost.d.mts +13 -0
  154. package/dist/esm/api/resources/taskGroups/client/requests/SetFlightNumberReq.d.mts +1 -0
  155. package/dist/esm/api/resources/taskGroups/client/requests/SetTaskOrderingReq.d.mts +3 -2
  156. package/dist/esm/api/resources/taskGroups/client/requests/UpdateCourierOrgReq.d.mts +13 -0
  157. package/dist/esm/api/resources/taskGroups/client/requests/UpdateCourierOrgReq.mjs +4 -0
  158. package/dist/esm/api/resources/taskGroups/client/requests/UpdateDriverReq.d.mts +13 -0
  159. package/dist/esm/api/resources/taskGroups/client/requests/UpdateDriverReq.mjs +4 -0
  160. package/dist/esm/api/resources/taskGroups/client/requests/index.d.mts +4 -2
  161. package/dist/esm/api/resources/taskGroups/resources/expanded/client/Client.d.mts +4 -0
  162. package/dist/esm/api/resources/taskGroups/resources/expanded/client/Client.mjs +18 -2
  163. package/dist/esm/api/resources/taskGroups/resources/expanded/client/requests/ExpandedListForCourierDriverV1Request.d.mts +4 -0
  164. package/dist/esm/api/resources/taskGroups/resources/expanded/client/requests/ExpandedListForCourierOperatorsV1Request.d.mts +4 -0
  165. package/dist/esm/api/resources/taskGroups/resources/index.d.mts +3 -0
  166. package/dist/esm/api/resources/taskGroups/resources/index.mjs +3 -0
  167. package/dist/esm/api/resources/{taskArtifacts/resources/images → taskGroups/resources/s3Object}/client/Client.d.mts +14 -7
  168. package/dist/esm/api/resources/{taskArtifacts/resources/images → taskGroups/resources/s3Object}/client/Client.mjs +14 -8
  169. package/dist/esm/api/resources/taskGroups/resources/s3Object/client/index.d.mts +1 -0
  170. package/dist/esm/api/resources/taskGroups/resources/s3Object/client/index.mjs +1 -0
  171. package/dist/esm/api/resources/taskGroups/resources/s3Object/index.d.mts +1 -0
  172. package/dist/esm/api/resources/taskGroups/resources/s3Object/index.mjs +1 -0
  173. package/dist/esm/api/resources/taskGroups/resources/s3ObjectMetadata/client/Client.d.mts +47 -0
  174. package/dist/esm/api/resources/taskGroups/resources/s3ObjectMetadata/client/Client.mjs +90 -0
  175. package/dist/esm/api/resources/taskGroups/resources/s3ObjectMetadata/client/index.d.mts +1 -0
  176. package/dist/esm/api/resources/taskGroups/resources/s3ObjectMetadata/client/index.mjs +1 -0
  177. package/dist/esm/api/resources/taskGroups/resources/s3ObjectMetadata/index.d.mts +1 -0
  178. package/dist/esm/api/resources/taskGroups/resources/s3ObjectMetadata/index.mjs +1 -0
  179. package/dist/esm/api/resources/taskGroups/resources/taskGroupId/client/Client.d.mts +59 -0
  180. package/dist/esm/api/resources/taskGroups/resources/taskGroupId/client/Client.mjs +149 -0
  181. package/dist/esm/api/resources/taskGroups/resources/taskGroupId/client/index.d.mts +1 -0
  182. package/dist/esm/api/resources/taskGroups/resources/taskGroupId/client/index.mjs +1 -0
  183. package/dist/esm/api/resources/taskGroups/resources/taskGroupId/index.d.mts +1 -0
  184. package/dist/esm/api/resources/taskGroups/resources/taskGroupId/index.mjs +1 -0
  185. package/dist/esm/api/resources/tasks/client/Client.d.mts +107 -0
  186. package/dist/esm/api/resources/tasks/client/Client.mjs +340 -0
  187. package/dist/esm/api/resources/tasks/client/index.d.mts +2 -0
  188. package/dist/esm/api/resources/tasks/client/index.mjs +1 -0
  189. package/dist/esm/api/resources/tasks/client/requests/AddTaskToGroupReq.d.mts +21 -0
  190. package/dist/esm/api/resources/tasks/client/requests/AddTaskToGroupReq.mjs +4 -0
  191. package/dist/esm/api/resources/tasks/client/requests/index.d.mts +1 -0
  192. package/dist/esm/api/resources/tasks/client/requests/index.mjs +1 -0
  193. package/dist/esm/api/resources/tasks/index.d.mts +1 -0
  194. package/dist/esm/api/resources/tasks/index.mjs +1 -0
  195. package/dist/esm/api/types/Cargo1.d.mts +1 -0
  196. package/dist/esm/api/types/CargoStatusEnum1.d.mts +2 -1
  197. package/dist/esm/api/types/CargoStatusEnum1.mjs +1 -0
  198. package/dist/esm/api/types/ChrtGroundCourierTaskActionEnum1.d.mts +2 -2
  199. package/dist/esm/api/types/ChrtGroundCourierTaskActionEnum1.mjs +1 -1
  200. package/dist/esm/api/types/Driver1.d.mts +6 -4
  201. package/dist/esm/api/types/DriverStatusEnum.d.mts +3 -3
  202. package/dist/esm/api/types/DriverStatusEnum.mjs +2 -2
  203. package/dist/esm/api/types/DriverUpdateAvailabilityReq.d.mts +6 -0
  204. package/dist/esm/api/types/DriverUpdateAvailabilityReq.mjs +4 -0
  205. package/dist/esm/api/types/Task1.d.mts +1 -0
  206. package/dist/esm/api/types/TaskArtifact1.d.mts +1 -0
  207. package/dist/esm/api/types/TaskArtifactClientCreate1.d.mts +8 -0
  208. package/dist/esm/api/types/TaskArtifactClientCreate1.mjs +4 -0
  209. package/dist/esm/api/types/TaskArtifactS3ObjectMetadata1.d.mts +15 -0
  210. package/dist/esm/api/types/TaskArtifactS3ObjectMetadata1.mjs +4 -0
  211. package/dist/esm/api/types/TaskArtifactStatusEnum1.d.mts +2 -1
  212. package/dist/esm/api/types/TaskArtifactStatusEnum1.mjs +1 -0
  213. package/dist/esm/api/types/TaskClientUpdate1.d.mts +0 -1
  214. package/dist/esm/api/types/TaskGroup1.d.mts +1 -0
  215. package/dist/esm/api/types/TaskGroupS3ObjectMetadata1.d.mts +15 -0
  216. package/dist/esm/api/types/TaskGroupS3ObjectMetadata1.mjs +4 -0
  217. package/dist/esm/api/types/TaskGroupSortByEnum.d.mts +2 -1
  218. package/dist/esm/api/types/TaskGroupSortByEnum.mjs +1 -0
  219. package/dist/esm/api/types/TaskGroupStatusEnum1.d.mts +2 -1
  220. package/dist/esm/api/types/TaskGroupStatusEnum1.mjs +1 -0
  221. package/dist/esm/api/types/TaskStatusEnum1.d.mts +2 -1
  222. package/dist/esm/api/types/TaskStatusEnum1.mjs +1 -0
  223. package/dist/esm/api/types/index.d.mts +4 -0
  224. package/dist/esm/api/types/index.mjs +4 -0
  225. package/dist/esm/core/exports.d.mts +1 -0
  226. package/dist/esm/core/exports.mjs +1 -0
  227. package/dist/esm/core/file/exports.d.mts +1 -0
  228. package/dist/esm/core/file/exports.mjs +1 -0
  229. package/dist/esm/core/file/file.d.mts +5 -0
  230. package/dist/esm/core/file/file.mjs +167 -0
  231. package/dist/esm/core/file/index.d.mts +2 -0
  232. package/dist/esm/core/file/index.mjs +2 -0
  233. package/dist/esm/core/file/types.d.mts +66 -0
  234. package/dist/esm/core/file/types.mjs +1 -0
  235. package/dist/esm/core/form-data-utils/FormDataWrapper.d.mts +16 -0
  236. package/dist/esm/core/form-data-utils/FormDataWrapper.mjs +170 -0
  237. package/dist/esm/core/form-data-utils/encodeAsFormParameter.d.mts +1 -0
  238. package/dist/esm/core/form-data-utils/encodeAsFormParameter.mjs +9 -0
  239. package/dist/esm/core/form-data-utils/index.d.mts +2 -0
  240. package/dist/esm/core/form-data-utils/index.mjs +2 -0
  241. package/dist/esm/core/index.d.mts +2 -0
  242. package/dist/esm/core/index.mjs +2 -0
  243. package/dist/esm/exports.d.mts +1 -0
  244. package/dist/esm/exports.mjs +1 -0
  245. package/dist/esm/index.d.mts +1 -0
  246. package/dist/esm/index.mjs +1 -0
  247. package/dist/esm/version.d.mts +1 -1
  248. package/dist/esm/version.mjs +1 -1
  249. package/package.json +1 -1
  250. package/reference.md +1300 -206
  251. package/dist/cjs/api/resources/drivers/client/requests/DriverCreateReq.d.ts +0 -17
  252. package/dist/cjs/api/resources/drivers/client/requests/SetDriverActivationReq.d.ts +0 -14
  253. package/dist/cjs/api/resources/taskGroups/client/requests/UpdateTaskGroupCourierOrgReq.d.ts +0 -12
  254. package/dist/cjs/api/resources/taskGroups/client/requests/UpdateTaskGroupDriverReq.d.ts +0 -11
  255. package/dist/esm/api/resources/drivers/client/requests/DriverCreateReq.d.mts +0 -17
  256. package/dist/esm/api/resources/drivers/client/requests/SetDriverActivationReq.d.mts +0 -14
  257. package/dist/esm/api/resources/taskGroups/client/requests/UpdateTaskGroupCourierOrgReq.d.mts +0 -12
  258. package/dist/esm/api/resources/taskGroups/client/requests/UpdateTaskGroupDriverReq.d.mts +0 -11
  259. /package/dist/cjs/api/resources/drivers/client/requests/{DriverCreateReq.js → DriverClientCreate1.js} +0 -0
  260. /package/dist/cjs/api/resources/drivers/client/requests/{SetDriverActivationReq.js → DriverClientUpdate1.js} +0 -0
  261. /package/dist/cjs/api/resources/{drivers/client/requests/UpdateDriverDetailsReq.js → taskArtifacts/client/requests/AddTaskArtifactReq.js} +0 -0
  262. /package/dist/cjs/api/resources/taskArtifacts/{resources/blurhash/client → client/requests}/index.js +0 -0
  263. /package/dist/cjs/api/resources/taskArtifacts/resources/{blurhash → s3Object}/client/index.d.ts +0 -0
  264. /package/dist/cjs/api/resources/taskArtifacts/resources/{images → s3Object}/client/index.js +0 -0
  265. /package/dist/cjs/api/resources/taskArtifacts/resources/{blurhash → s3Object}/index.d.ts +0 -0
  266. /package/dist/cjs/api/resources/taskArtifacts/resources/{blurhash → s3Object}/index.js +0 -0
  267. /package/dist/cjs/api/resources/taskArtifacts/resources/{images → s3ObjectMetadata}/client/index.d.ts +0 -0
  268. /package/dist/cjs/api/resources/taskArtifacts/resources/{images → s3ObjectMetadata}/index.d.ts +0 -0
  269. /package/dist/cjs/api/resources/taskArtifacts/resources/{images → s3ObjectMetadata}/index.js +0 -0
  270. /package/dist/cjs/api/resources/taskGroups/client/requests/{UpdateTaskGroupCourierOrgReq.js → AddMessageReq.js} +0 -0
  271. /package/dist/cjs/api/resources/taskGroups/client/requests/{UpdateTaskGroupDriverReq.js → BodyPostAddS3ObjectV1OortTaskGroupsAddS3ObjectV1TaskGroupIdPost.js} +0 -0
  272. /package/dist/{esm/api/resources/taskArtifacts/resources/blurhash/client/index.d.mts → cjs/api/resources/taskGroups/resources/s3Object/client/index.d.ts} +0 -0
  273. /package/dist/{esm/api/resources/taskArtifacts/resources/blurhash/client/index.mjs → cjs/api/resources/taskGroups/resources/s3ObjectMetadata/client/index.d.ts} +0 -0
  274. /package/dist/{esm/api/resources/taskArtifacts/resources/images/client/index.d.mts → cjs/api/resources/taskGroups/resources/taskGroupId/client/index.d.ts} +0 -0
  275. /package/dist/esm/api/resources/drivers/client/requests/{DriverCreateReq.mjs → DriverClientCreate1.mjs} +0 -0
  276. /package/dist/esm/api/resources/drivers/client/requests/{SetDriverActivationReq.mjs → DriverClientUpdate1.mjs} +0 -0
  277. /package/dist/esm/api/resources/{drivers/client/requests/UpdateDriverDetailsReq.mjs → taskArtifacts/client/requests/AddTaskArtifactReq.mjs} +0 -0
  278. /package/dist/esm/api/resources/taskArtifacts/{resources/images/client → client/requests}/index.mjs +0 -0
  279. /package/dist/esm/api/resources/taskArtifacts/resources/{blurhash → s3Object}/index.d.mts +0 -0
  280. /package/dist/esm/api/resources/taskArtifacts/resources/{blurhash → s3Object}/index.mjs +0 -0
  281. /package/dist/esm/api/resources/taskArtifacts/resources/{images → s3ObjectMetadata}/index.d.mts +0 -0
  282. /package/dist/esm/api/resources/taskArtifacts/resources/{images → s3ObjectMetadata}/index.mjs +0 -0
  283. /package/dist/esm/api/resources/taskGroups/client/requests/{UpdateTaskGroupCourierOrgReq.mjs → AddMessageReq.mjs} +0 -0
  284. /package/dist/esm/api/resources/taskGroups/client/requests/{UpdateTaskGroupDriverReq.mjs → BodyPostAddS3ObjectV1OortTaskGroupsAddS3ObjectV1TaskGroupIdPost.mjs} +0 -0
@@ -18,10 +18,12 @@ import { Dev } from "./api/resources/dev/client/Client.js";
18
18
  import { TaskArtifactNotifications } from "./api/resources/taskArtifactNotifications/client/Client.js";
19
19
  import { Drivers } from "./api/resources/drivers/client/Client.js";
20
20
  import { Cargos } from "./api/resources/cargos/client/Client.js";
21
+ import { TaskArtifacts } from "./api/resources/taskArtifacts/client/Client.js";
21
22
  import { OffChrtShipperOrg } from "./api/resources/offChrtShipperOrg/client/Client.js";
22
23
  import { Orders } from "./api/resources/orders/client/Client.js";
23
24
  import { OrderDrafts } from "./api/resources/orderDrafts/client/Client.js";
24
25
  import { TaskGroups } from "./api/resources/taskGroups/client/Client.js";
26
+ import { Tasks } from "./api/resources/tasks/client/Client.js";
25
27
  import { ShipperContactInfo } from "./api/resources/shipperContactInfo/client/Client.js";
26
28
  import { Orgs } from "./api/resources/orgs/client/Client.js";
27
29
  import { Root } from "./api/resources/root/client/Client.js";
@@ -29,7 +31,6 @@ import { Users } from "./api/resources/users/client/Client.js";
29
31
  import { Utils } from "./api/resources/utils/client/Client.js";
30
32
  import { Notifications } from "./api/resources/notifications/client/Client.js";
31
33
  import { OrgInfoForConnections } from "./api/resources/orgInfoForConnections/client/Client.js";
32
- import { TaskArtifacts } from "./api/resources/taskArtifacts/client/Client.js";
33
34
  import { Tracking } from "./api/resources/tracking/client/Client.js";
34
35
  export declare namespace ChrtClient {
35
36
  interface Options {
@@ -71,10 +72,12 @@ export declare class ChrtClient {
71
72
  protected _taskArtifactNotifications: TaskArtifactNotifications | undefined;
72
73
  protected _drivers: Drivers | undefined;
73
74
  protected _cargos: Cargos | undefined;
75
+ protected _taskArtifacts: TaskArtifacts | undefined;
74
76
  protected _offChrtShipperOrg: OffChrtShipperOrg | undefined;
75
77
  protected _orders: Orders | undefined;
76
78
  protected _orderDrafts: OrderDrafts | undefined;
77
79
  protected _taskGroups: TaskGroups | undefined;
80
+ protected _tasks: Tasks | undefined;
78
81
  protected _shipperContactInfo: ShipperContactInfo | undefined;
79
82
  protected _orgs: Orgs | undefined;
80
83
  protected _root: Root | undefined;
@@ -82,7 +85,6 @@ export declare class ChrtClient {
82
85
  protected _utils: Utils | undefined;
83
86
  protected _notifications: Notifications | undefined;
84
87
  protected _orgInfoForConnections: OrgInfoForConnections | undefined;
85
- protected _taskArtifacts: TaskArtifacts | undefined;
86
88
  protected _tracking: Tracking | undefined;
87
89
  constructor(_options?: ChrtClient.Options);
88
90
  get payments(): Payments;
@@ -100,10 +102,12 @@ export declare class ChrtClient {
100
102
  get taskArtifactNotifications(): TaskArtifactNotifications;
101
103
  get drivers(): Drivers;
102
104
  get cargos(): Cargos;
105
+ get taskArtifacts(): TaskArtifacts;
103
106
  get offChrtShipperOrg(): OffChrtShipperOrg;
104
107
  get orders(): Orders;
105
108
  get orderDrafts(): OrderDrafts;
106
109
  get taskGroups(): TaskGroups;
110
+ get tasks(): Tasks;
107
111
  get shipperContactInfo(): ShipperContactInfo;
108
112
  get orgs(): Orgs;
109
113
  get root(): Root;
@@ -111,6 +115,5 @@ export declare class ChrtClient {
111
115
  get utils(): Utils;
112
116
  get notifications(): Notifications;
113
117
  get orgInfoForConnections(): OrgInfoForConnections;
114
- get taskArtifacts(): TaskArtifacts;
115
118
  get tracking(): Tracking;
116
119
  }
@@ -54,26 +54,27 @@ const Client_js_12 = require("./api/resources/dev/client/Client.js");
54
54
  const Client_js_13 = require("./api/resources/taskArtifactNotifications/client/Client.js");
55
55
  const Client_js_14 = require("./api/resources/drivers/client/Client.js");
56
56
  const Client_js_15 = require("./api/resources/cargos/client/Client.js");
57
- const Client_js_16 = require("./api/resources/offChrtShipperOrg/client/Client.js");
58
- const Client_js_17 = require("./api/resources/orders/client/Client.js");
59
- const Client_js_18 = require("./api/resources/orderDrafts/client/Client.js");
60
- const Client_js_19 = require("./api/resources/taskGroups/client/Client.js");
61
- const Client_js_20 = require("./api/resources/shipperContactInfo/client/Client.js");
62
- const Client_js_21 = require("./api/resources/orgs/client/Client.js");
63
- const Client_js_22 = require("./api/resources/root/client/Client.js");
64
- const Client_js_23 = require("./api/resources/users/client/Client.js");
65
- const Client_js_24 = require("./api/resources/utils/client/Client.js");
66
- const Client_js_25 = require("./api/resources/notifications/client/Client.js");
67
- const Client_js_26 = require("./api/resources/orgInfoForConnections/client/Client.js");
68
- const Client_js_27 = require("./api/resources/taskArtifacts/client/Client.js");
69
- const Client_js_28 = require("./api/resources/tracking/client/Client.js");
57
+ const Client_js_16 = require("./api/resources/taskArtifacts/client/Client.js");
58
+ const Client_js_17 = require("./api/resources/offChrtShipperOrg/client/Client.js");
59
+ const Client_js_18 = require("./api/resources/orders/client/Client.js");
60
+ const Client_js_19 = require("./api/resources/orderDrafts/client/Client.js");
61
+ const Client_js_20 = require("./api/resources/taskGroups/client/Client.js");
62
+ const Client_js_21 = require("./api/resources/tasks/client/Client.js");
63
+ const Client_js_22 = require("./api/resources/shipperContactInfo/client/Client.js");
64
+ const Client_js_23 = require("./api/resources/orgs/client/Client.js");
65
+ const Client_js_24 = require("./api/resources/root/client/Client.js");
66
+ const Client_js_25 = require("./api/resources/users/client/Client.js");
67
+ const Client_js_26 = require("./api/resources/utils/client/Client.js");
68
+ const Client_js_27 = require("./api/resources/notifications/client/Client.js");
69
+ const Client_js_28 = require("./api/resources/orgInfoForConnections/client/Client.js");
70
+ const Client_js_29 = require("./api/resources/tracking/client/Client.js");
70
71
  class ChrtClient {
71
72
  constructor(_options = {}) {
72
73
  this._options = Object.assign(Object.assign({}, _options), { headers: (0, headers_js_1.mergeHeaders)({
73
74
  "X-Fern-Language": "JavaScript",
74
75
  "X-Fern-SDK-Name": "@chrt-inc/typescript-sdk",
75
- "X-Fern-SDK-Version": "1.320.0",
76
- "User-Agent": "@chrt-inc/typescript-sdk/1.320.0",
76
+ "X-Fern-SDK-Version": "1.321.0",
77
+ "User-Agent": "@chrt-inc/typescript-sdk/1.321.0",
77
78
  "X-Fern-Runtime": core.RUNTIME.type,
78
79
  "X-Fern-Runtime-Version": core.RUNTIME.version,
79
80
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -138,57 +139,61 @@ class ChrtClient {
138
139
  var _a;
139
140
  return ((_a = this._cargos) !== null && _a !== void 0 ? _a : (this._cargos = new Client_js_15.Cargos(this._options)));
140
141
  }
142
+ get taskArtifacts() {
143
+ var _a;
144
+ return ((_a = this._taskArtifacts) !== null && _a !== void 0 ? _a : (this._taskArtifacts = new Client_js_16.TaskArtifacts(this._options)));
145
+ }
141
146
  get offChrtShipperOrg() {
142
147
  var _a;
143
- return ((_a = this._offChrtShipperOrg) !== null && _a !== void 0 ? _a : (this._offChrtShipperOrg = new Client_js_16.OffChrtShipperOrg(this._options)));
148
+ return ((_a = this._offChrtShipperOrg) !== null && _a !== void 0 ? _a : (this._offChrtShipperOrg = new Client_js_17.OffChrtShipperOrg(this._options)));
144
149
  }
145
150
  get orders() {
146
151
  var _a;
147
- return ((_a = this._orders) !== null && _a !== void 0 ? _a : (this._orders = new Client_js_17.Orders(this._options)));
152
+ return ((_a = this._orders) !== null && _a !== void 0 ? _a : (this._orders = new Client_js_18.Orders(this._options)));
148
153
  }
149
154
  get orderDrafts() {
150
155
  var _a;
151
- return ((_a = this._orderDrafts) !== null && _a !== void 0 ? _a : (this._orderDrafts = new Client_js_18.OrderDrafts(this._options)));
156
+ return ((_a = this._orderDrafts) !== null && _a !== void 0 ? _a : (this._orderDrafts = new Client_js_19.OrderDrafts(this._options)));
152
157
  }
153
158
  get taskGroups() {
154
159
  var _a;
155
- return ((_a = this._taskGroups) !== null && _a !== void 0 ? _a : (this._taskGroups = new Client_js_19.TaskGroups(this._options)));
160
+ return ((_a = this._taskGroups) !== null && _a !== void 0 ? _a : (this._taskGroups = new Client_js_20.TaskGroups(this._options)));
161
+ }
162
+ get tasks() {
163
+ var _a;
164
+ return ((_a = this._tasks) !== null && _a !== void 0 ? _a : (this._tasks = new Client_js_21.Tasks(this._options)));
156
165
  }
157
166
  get shipperContactInfo() {
158
167
  var _a;
159
- return ((_a = this._shipperContactInfo) !== null && _a !== void 0 ? _a : (this._shipperContactInfo = new Client_js_20.ShipperContactInfo(this._options)));
168
+ return ((_a = this._shipperContactInfo) !== null && _a !== void 0 ? _a : (this._shipperContactInfo = new Client_js_22.ShipperContactInfo(this._options)));
160
169
  }
161
170
  get orgs() {
162
171
  var _a;
163
- return ((_a = this._orgs) !== null && _a !== void 0 ? _a : (this._orgs = new Client_js_21.Orgs(this._options)));
172
+ return ((_a = this._orgs) !== null && _a !== void 0 ? _a : (this._orgs = new Client_js_23.Orgs(this._options)));
164
173
  }
165
174
  get root() {
166
175
  var _a;
167
- return ((_a = this._root) !== null && _a !== void 0 ? _a : (this._root = new Client_js_22.Root(this._options)));
176
+ return ((_a = this._root) !== null && _a !== void 0 ? _a : (this._root = new Client_js_24.Root(this._options)));
168
177
  }
169
178
  get users() {
170
179
  var _a;
171
- return ((_a = this._users) !== null && _a !== void 0 ? _a : (this._users = new Client_js_23.Users(this._options)));
180
+ return ((_a = this._users) !== null && _a !== void 0 ? _a : (this._users = new Client_js_25.Users(this._options)));
172
181
  }
173
182
  get utils() {
174
183
  var _a;
175
- return ((_a = this._utils) !== null && _a !== void 0 ? _a : (this._utils = new Client_js_24.Utils(this._options)));
184
+ return ((_a = this._utils) !== null && _a !== void 0 ? _a : (this._utils = new Client_js_26.Utils(this._options)));
176
185
  }
177
186
  get notifications() {
178
187
  var _a;
179
- return ((_a = this._notifications) !== null && _a !== void 0 ? _a : (this._notifications = new Client_js_25.Notifications(this._options)));
188
+ return ((_a = this._notifications) !== null && _a !== void 0 ? _a : (this._notifications = new Client_js_27.Notifications(this._options)));
180
189
  }
181
190
  get orgInfoForConnections() {
182
191
  var _a;
183
- return ((_a = this._orgInfoForConnections) !== null && _a !== void 0 ? _a : (this._orgInfoForConnections = new Client_js_26.OrgInfoForConnections(this._options)));
184
- }
185
- get taskArtifacts() {
186
- var _a;
187
- return ((_a = this._taskArtifacts) !== null && _a !== void 0 ? _a : (this._taskArtifacts = new Client_js_27.TaskArtifacts(this._options)));
192
+ return ((_a = this._orgInfoForConnections) !== null && _a !== void 0 ? _a : (this._orgInfoForConnections = new Client_js_28.OrgInfoForConnections(this._options)));
188
193
  }
189
194
  get tracking() {
190
195
  var _a;
191
- return ((_a = this._tracking) !== null && _a !== void 0 ? _a : (this._tracking = new Client_js_28.Tracking(this._options)));
196
+ return ((_a = this._tracking) !== null && _a !== void 0 ? _a : (this._tracking = new Client_js_29.Tracking(this._options)));
192
197
  }
193
198
  }
194
199
  exports.ChrtClient = ChrtClient;
@@ -31,97 +31,79 @@ export declare class Drivers {
31
31
  protected readonly _options: Drivers.Options;
32
32
  constructor(_options?: Drivers.Options);
33
33
  /**
34
- * Lists all organization members paired with their driver information if they are drivers. | () -> (list[OrgMembersAndDrivers])
35
- *
36
- * @param {Drivers.RequestOptions} requestOptions - Request-specific configuration.
37
- *
38
- * @example
39
- * await client.drivers.listOrgMembersAndDriversV1()
40
- */
41
- listOrgMembersAndDriversV1(requestOptions?: Drivers.RequestOptions): core.HttpResponsePromise<Chrt.OrgMembersAndDrivers[]>;
42
- private __listOrgMembersAndDriversV1;
43
- /**
44
- * Lists all drivers belonging to the caller's organization. | () -> (list[Driver1])
34
+ * Retrieves driver information for the caller within their organization. | () -> (Driver1)
45
35
  *
46
36
  * @param {Drivers.RequestOptions} requestOptions - Request-specific configuration.
47
37
  *
48
38
  * @example
49
- * await client.drivers.listV1()
39
+ * await client.drivers.getForCallerV1()
50
40
  */
51
- listV1(requestOptions?: Drivers.RequestOptions): core.HttpResponsePromise<Chrt.Driver1[]>;
52
- private __listV1;
41
+ getForCallerV1(requestOptions?: Drivers.RequestOptions): core.HttpResponsePromise<Chrt.Driver1>;
42
+ private __getForCallerV1;
53
43
  /**
54
- * Creates a new driver profile for an organization member with optional vehicle type assignments. | (DriverCreateReq) -> (PydanticObjectId)
44
+ * Retrieves detailed driver information by driver ID within the organization. | () -> (Driver1)
55
45
  *
56
- * @param {Chrt.DriverCreateReq} request
46
+ * @param {string} driverId
57
47
  * @param {Drivers.RequestOptions} requestOptions - Request-specific configuration.
58
48
  *
59
49
  * @throws {@link Chrt.UnprocessableEntityError}
60
50
  *
61
51
  * @example
62
- * await client.drivers.createV1({
63
- * org_member: {
64
- * role: "owner",
65
- * user_id: "user_id"
66
- * }
67
- * })
52
+ * await client.drivers.getByDriverIdV1("driver_id")
68
53
  */
69
- createV1(request: Chrt.DriverCreateReq, requestOptions?: Drivers.RequestOptions): core.HttpResponsePromise<string>;
70
- private __createV1;
54
+ getByDriverIdV1(driverId: string, requestOptions?: Drivers.RequestOptions): core.HttpResponsePromise<Chrt.Driver1>;
55
+ private __getByDriverIdV1;
71
56
  /**
72
- * Retrieves driver information for the caller within their organization. | () -> (Driver1)
57
+ * Lists all organization members paired with their driver information if they are drivers. | () -> (list[OrgMembersAndDrivers])
73
58
  *
74
59
  * @param {Drivers.RequestOptions} requestOptions - Request-specific configuration.
75
60
  *
76
61
  * @example
77
- * await client.drivers.getV1()
62
+ * await client.drivers.listOrgMembersAndDriversV1()
78
63
  */
79
- getV1(requestOptions?: Drivers.RequestOptions): core.HttpResponsePromise<Chrt.Driver1>;
80
- private __getV1;
64
+ listOrgMembersAndDriversV1(requestOptions?: Drivers.RequestOptions): core.HttpResponsePromise<Chrt.OrgMembersAndDrivers[]>;
65
+ private __listOrgMembersAndDriversV1;
81
66
  /**
82
- * Retrieves detailed driver information by driver ID within the organization. | () -> (Driver1)
67
+ * Lists all drivers belonging to the caller's organization. | () -> (list[Driver1])
83
68
  *
84
- * @param {string} driverId
85
69
  * @param {Drivers.RequestOptions} requestOptions - Request-specific configuration.
86
70
  *
87
- * @throws {@link Chrt.UnprocessableEntityError}
88
- *
89
71
  * @example
90
- * await client.drivers.getByDriverIdV1("driver_id")
72
+ * await client.drivers.listV1()
91
73
  */
92
- getByDriverIdV1(driverId: string, requestOptions?: Drivers.RequestOptions): core.HttpResponsePromise<Chrt.Driver1>;
93
- private __getByDriverIdV1;
74
+ listV1(requestOptions?: Drivers.RequestOptions): core.HttpResponsePromise<Chrt.Driver1[]>;
75
+ private __listV1;
94
76
  /**
95
- * Deletes a driver from the organization and removes them from associated rate sheets. | () -> (bool)
77
+ * Creates a new driver profile for the caller. Returns existing driver ID if one already exists. Courier orgs only, min role: operator. | (DriverClientCreate1) -> (PydanticObjectId)
96
78
  *
97
- * @param {string} driverId
79
+ * @param {Chrt.DriverClientCreate1} request
98
80
  * @param {Drivers.RequestOptions} requestOptions - Request-specific configuration.
99
81
  *
100
82
  * @throws {@link Chrt.UnprocessableEntityError}
101
83
  *
102
84
  * @example
103
- * await client.drivers.deleteV1("driver_id")
85
+ * await client.drivers.createV1({
86
+ * schema_version: 1
87
+ * })
104
88
  */
105
- deleteV1(driverId: string, requestOptions?: Drivers.RequestOptions): core.HttpResponsePromise<boolean>;
106
- private __deleteV1;
89
+ createV1(request: Chrt.DriverClientCreate1, requestOptions?: Drivers.RequestOptions): core.HttpResponsePromise<string>;
90
+ private __createV1;
107
91
  /**
108
- * Sets the activation status of a driver (active/inactive) within the organization. | (SetDriverActivationReq) -> (bool)
92
+ * Updates driver contact details and vehicle type assignments. Courier orgs only; caller must be the driver (self) or an operator+. | (DriverClientUpdate1) -> (bool)
109
93
  *
110
- * @param {Chrt.SetDriverActivationReq} request
94
+ * @param {string} driverId
95
+ * @param {Chrt.DriverClientUpdate1} request
111
96
  * @param {Drivers.RequestOptions} requestOptions - Request-specific configuration.
112
97
  *
113
98
  * @throws {@link Chrt.UnprocessableEntityError}
114
99
  *
115
100
  * @example
116
- * await client.drivers.setActivationV1({
117
- * driver_object_id: "driver_object_id",
118
- * active: true
119
- * })
101
+ * await client.drivers.updateV1("driver_id")
120
102
  */
121
- setActivationV1(request: Chrt.SetDriverActivationReq, requestOptions?: Drivers.RequestOptions): core.HttpResponsePromise<boolean>;
122
- private __setActivationV1;
103
+ updateV1(driverId: string, request?: Chrt.DriverClientUpdate1, requestOptions?: Drivers.RequestOptions): core.HttpResponsePromise<boolean>;
104
+ private __updateV1;
123
105
  /**
124
- * Updates the driver's last known location and timestamp for tracking purposes. | (DriverLastSeenReq) -> (bool)
106
+ * Updates the caller's driver last known location and timestamp for tracking. Only updates if timestamp is newer than existing (DB-side validation). Returns False if driver not found or timestamp is stale. | (DriverLastSeenReq) -> (bool)
125
107
  *
126
108
  * @param {Chrt.DriverLastSeenReq} request
127
109
  * @param {Drivers.RequestOptions} requestOptions - Request-specific configuration.
@@ -129,7 +111,7 @@ export declare class Drivers {
129
111
  * @throws {@link Chrt.UnprocessableEntityError}
130
112
  *
131
113
  * @example
132
- * await client.drivers.lastSeenV1({
114
+ * await client.drivers.updateLastSeenV1({
133
115
  * location: {
134
116
  * type: "Feature",
135
117
  * geometry: {
@@ -142,32 +124,48 @@ export declare class Drivers {
142
124
  * }
143
125
  * })
144
126
  */
145
- lastSeenV1(request: Chrt.DriverLastSeenReq, requestOptions?: Drivers.RequestOptions): core.HttpResponsePromise<boolean>;
146
- private __lastSeenV1;
127
+ updateLastSeenV1(request: Chrt.DriverLastSeenReq, requestOptions?: Drivers.RequestOptions): core.HttpResponsePromise<boolean>;
128
+ private __updateLastSeenV1;
147
129
  /**
148
130
  * Clears the driver's last known location and timestamp. | () -> (bool)
149
131
  *
150
132
  * @param {Drivers.RequestOptions} requestOptions - Request-specific configuration.
151
133
  *
152
134
  * @example
153
- * await client.drivers.lastSeenClearV1()
135
+ * await client.drivers.clearLastSeenV1()
136
+ */
137
+ clearLastSeenV1(requestOptions?: Drivers.RequestOptions): core.HttpResponsePromise<boolean>;
138
+ private __clearLastSeenV1;
139
+ /**
140
+ * Updates the caller's driver availability status. Must have status UNASSIGNED to set availability to False; always allows setting to True. Courier orgs only. | (DriverUpdateAvailabilityReq) -> (bool)
141
+ *
142
+ * @param {Chrt.DriverUpdateAvailabilityReq} request
143
+ * @param {Drivers.RequestOptions} requestOptions - Request-specific configuration.
144
+ *
145
+ * @throws {@link Chrt.UnprocessableEntityError}
146
+ *
147
+ * @example
148
+ * await client.drivers.updateAvailabilityAccordingToDriverV1({
149
+ * available: true
150
+ * })
154
151
  */
155
- lastSeenClearV1(requestOptions?: Drivers.RequestOptions): core.HttpResponsePromise<boolean>;
156
- private __lastSeenClearV1;
152
+ updateAvailabilityAccordingToDriverV1(request: Chrt.DriverUpdateAvailabilityReq, requestOptions?: Drivers.RequestOptions): core.HttpResponsePromise<boolean>;
153
+ private __updateAvailabilityAccordingToDriverV1;
157
154
  /**
158
- * Updates driver contact details and vehicle type assignments within the organization. | (UpdateDriverDetailsReq) -> (bool)
155
+ * Updates a driver's availability status. Must have status UNASSIGNED to set availability to False; always allows setting to True. Courier orgs only, min role: operator. | (DriverUpdateAvailabilityReq) -> (bool)
159
156
  *
160
- * @param {Chrt.UpdateDriverDetailsReq} request
157
+ * @param {string} driverId
158
+ * @param {Chrt.DriverUpdateAvailabilityReq} request
161
159
  * @param {Drivers.RequestOptions} requestOptions - Request-specific configuration.
162
160
  *
163
161
  * @throws {@link Chrt.UnprocessableEntityError}
164
162
  *
165
163
  * @example
166
- * await client.drivers.updateDriverV1({
167
- * driver_object_id: "driver_object_id"
164
+ * await client.drivers.updateAvailabilityAccordingToOperatorsV1("driver_id", {
165
+ * available: true
168
166
  * })
169
167
  */
170
- updateDriverV1(request: Chrt.UpdateDriverDetailsReq, requestOptions?: Drivers.RequestOptions): core.HttpResponsePromise<boolean>;
171
- private __updateDriverV1;
168
+ updateAvailabilityAccordingToOperatorsV1(driverId: string, request: Chrt.DriverUpdateAvailabilityReq, requestOptions?: Drivers.RequestOptions): core.HttpResponsePromise<boolean>;
169
+ private __updateAvailabilityAccordingToOperatorsV1;
172
170
  protected _getAuthorizationHeader(): Promise<string | undefined>;
173
171
  }