@chrt-inc/typescript-sdk 1.319.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 (338) hide show
  1. package/dist/cjs/Client.d.ts +6 -0
  2. package/dist/cjs/Client.js +38 -28
  3. package/dist/cjs/api/resources/cargos/client/Client.d.ts +48 -0
  4. package/dist/cjs/api/resources/cargos/client/Client.js +131 -0
  5. package/dist/cjs/api/resources/connections/client/Client.d.ts +4 -4
  6. package/dist/cjs/api/resources/connections/client/Client.js +4 -4
  7. package/dist/cjs/api/resources/courierPayDriverPayouts/client/Client.d.ts +2 -2
  8. package/dist/cjs/api/resources/courierPayDriverPayouts/client/Client.js +2 -2
  9. package/dist/cjs/api/resources/courierPayDriverRateSheets/client/Client.d.ts +3 -3
  10. package/dist/cjs/api/resources/courierPayDriverRateSheets/client/Client.js +3 -3
  11. package/dist/cjs/api/resources/courierPayDriverStatements/client/Client.d.ts +2 -2
  12. package/dist/cjs/api/resources/courierPayDriverStatements/client/Client.js +2 -2
  13. package/dist/cjs/api/resources/dev/client/Client.d.ts +4 -4
  14. package/dist/cjs/api/resources/dev/client/Client.js +4 -4
  15. package/dist/cjs/api/resources/drivers/client/Client.d.ts +59 -61
  16. package/dist/cjs/api/resources/drivers/client/Client.js +140 -139
  17. package/dist/cjs/api/resources/drivers/client/requests/DriverClientCreate1.d.ts +20 -0
  18. package/dist/cjs/api/resources/drivers/client/requests/{UpdateDriverDetailsReq.d.ts → DriverClientUpdate1.d.ts} +4 -5
  19. package/dist/cjs/api/resources/drivers/client/requests/DriverLastSeenReq.d.ts +1 -0
  20. package/dist/cjs/api/resources/drivers/client/requests/index.d.ts +2 -3
  21. package/dist/cjs/api/resources/index.d.ts +3 -0
  22. package/dist/cjs/api/resources/index.js +4 -1
  23. package/dist/cjs/api/resources/notifications/resources/courier/client/Client.d.ts +2 -2
  24. package/dist/cjs/api/resources/notifications/resources/courier/client/Client.js +2 -2
  25. package/dist/cjs/api/resources/notifications/resources/shipper/client/Client.d.ts +2 -2
  26. package/dist/cjs/api/resources/notifications/resources/shipper/client/Client.js +2 -2
  27. package/dist/cjs/api/resources/offChrtShipperOrg/client/Client.d.ts +3 -3
  28. package/dist/cjs/api/resources/offChrtShipperOrg/client/Client.js +3 -3
  29. package/dist/cjs/api/resources/orders/client/Client.d.ts +13 -0
  30. package/dist/cjs/api/resources/orders/client/Client.js +59 -0
  31. package/dist/cjs/api/resources/orgInfoForConnections/resources/courier/client/Client.d.ts +1 -1
  32. package/dist/cjs/api/resources/orgInfoForConnections/resources/courier/client/Client.js +1 -1
  33. package/dist/cjs/api/resources/orgInfoForConnections/resources/forwarder/client/Client.d.ts +1 -1
  34. package/dist/cjs/api/resources/orgInfoForConnections/resources/forwarder/client/Client.js +1 -1
  35. package/dist/cjs/api/resources/orgInfoForConnections/resources/shipper/client/Client.d.ts +1 -1
  36. package/dist/cjs/api/resources/orgInfoForConnections/resources/shipper/client/Client.js +1 -1
  37. package/dist/cjs/api/resources/orgProfiles/client/Client.d.ts +1 -1
  38. package/dist/cjs/api/resources/orgProfiles/client/Client.js +1 -1
  39. package/dist/cjs/api/resources/orgs/client/Client.d.ts +5 -5
  40. package/dist/cjs/api/resources/orgs/client/Client.js +5 -5
  41. package/dist/cjs/api/resources/shipperContactInfo/client/Client.d.ts +36 -23
  42. package/dist/cjs/api/resources/shipperContactInfo/client/Client.js +94 -35
  43. package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/client/Client.d.ts +2 -2
  44. package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/client/Client.js +2 -2
  45. package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/resources/courier/client/Client.d.ts +1 -1
  46. package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/resources/courier/client/Client.js +1 -1
  47. package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/resources/shipper/client/Client.d.ts +3 -3
  48. package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/resources/shipper/client/Client.js +3 -3
  49. package/dist/cjs/api/resources/taskArtifactNotifications/client/Client.d.ts +2 -2
  50. package/dist/cjs/api/resources/taskArtifactNotifications/client/Client.js +2 -2
  51. package/dist/cjs/api/resources/taskArtifacts/client/Client.d.ts +37 -24
  52. package/dist/cjs/api/resources/taskArtifacts/client/Client.js +96 -40
  53. package/dist/cjs/api/resources/taskArtifacts/client/requests/AddTaskArtifactReq.d.ts +19 -0
  54. package/dist/cjs/api/resources/taskArtifacts/client/requests/index.d.ts +1 -2
  55. package/dist/cjs/api/resources/taskArtifacts/resources/index.d.ts +2 -3
  56. package/dist/cjs/api/resources/taskArtifacts/resources/index.js +3 -7
  57. package/dist/cjs/api/resources/taskArtifacts/resources/{blurhash → s3Object}/client/Client.d.ts +9 -9
  58. package/dist/cjs/api/resources/taskArtifacts/resources/{blurhash → s3Object}/client/Client.js +11 -11
  59. package/dist/cjs/api/resources/taskArtifacts/resources/s3ObjectMetadata/client/Client.d.ts +47 -0
  60. package/dist/cjs/api/resources/taskArtifacts/resources/s3ObjectMetadata/client/Client.js +127 -0
  61. package/dist/cjs/api/resources/taskArtifacts/resources/s3ObjectMetadata/client/index.js +2 -0
  62. package/dist/cjs/api/resources/taskArtifacts/resources/s3ObjectMetadata/index.d.ts +1 -0
  63. package/dist/cjs/api/resources/taskArtifacts/resources/s3ObjectMetadata/index.js +17 -0
  64. package/dist/cjs/api/resources/taskGroups/client/Client.d.ts +79 -33
  65. package/dist/cjs/api/resources/taskGroups/client/Client.js +220 -67
  66. package/dist/cjs/api/resources/taskGroups/client/requests/AddMessageReq.d.ts +13 -0
  67. package/dist/cjs/api/resources/{taskArtifacts/resources/images/client/requests/BodyPostTaskArtifactsUploadImageV1OortTaskArtifactsImagesUploadV1TaskArtifactIdPost.d.ts → taskGroups/client/requests/BodyPostAddS3ObjectV1OortTaskGroupsAddS3ObjectV1TaskGroupIdPost.d.ts} +2 -2
  68. package/dist/cjs/api/resources/taskGroups/client/requests/SetFlightNumberReq.d.ts +1 -0
  69. package/dist/cjs/api/resources/taskGroups/client/requests/SetTaskOrderingReq.d.ts +3 -2
  70. package/dist/cjs/api/resources/taskGroups/client/requests/UpdateCourierOrgReq.d.ts +13 -0
  71. package/dist/cjs/api/resources/taskGroups/client/requests/UpdateDriverReq.d.ts +13 -0
  72. package/dist/cjs/api/resources/taskGroups/client/requests/index.d.ts +4 -2
  73. package/dist/cjs/api/resources/taskGroups/resources/expanded/client/Client.d.ts +4 -0
  74. package/dist/cjs/api/resources/taskGroups/resources/expanded/client/Client.js +18 -2
  75. package/dist/cjs/api/resources/taskGroups/resources/expanded/client/requests/ExpandedListForCourierDriverV1Request.d.ts +4 -0
  76. package/dist/cjs/api/resources/taskGroups/resources/expanded/client/requests/ExpandedListForCourierOperatorsV1Request.d.ts +4 -0
  77. package/dist/cjs/api/resources/taskGroups/resources/index.d.ts +3 -0
  78. package/dist/cjs/api/resources/taskGroups/resources/index.js +4 -1
  79. package/dist/cjs/api/resources/taskGroups/resources/s3Object/client/Client.d.ts +46 -0
  80. package/dist/cjs/api/resources/taskGroups/resources/s3Object/client/Client.js +127 -0
  81. package/dist/cjs/api/resources/taskGroups/resources/s3Object/client/index.js +2 -0
  82. package/dist/cjs/api/resources/taskGroups/resources/s3Object/index.d.ts +1 -0
  83. package/dist/cjs/api/resources/taskGroups/resources/s3Object/index.js +17 -0
  84. package/dist/cjs/api/resources/taskGroups/resources/s3ObjectMetadata/client/Client.d.ts +47 -0
  85. package/dist/cjs/api/resources/taskGroups/resources/s3ObjectMetadata/client/Client.js +127 -0
  86. package/dist/cjs/api/resources/taskGroups/resources/s3ObjectMetadata/client/index.d.ts +1 -0
  87. package/dist/cjs/api/resources/taskGroups/resources/s3ObjectMetadata/client/index.js +2 -0
  88. package/dist/cjs/api/resources/taskGroups/resources/s3ObjectMetadata/index.d.ts +1 -0
  89. package/dist/cjs/api/resources/taskGroups/resources/s3ObjectMetadata/index.js +17 -0
  90. package/dist/cjs/api/resources/taskGroups/resources/taskGroupId/client/Client.d.ts +59 -0
  91. package/dist/cjs/api/resources/{taskArtifacts/resources/images → taskGroups/resources/taskGroupId}/client/Client.js +24 -87
  92. package/dist/cjs/api/resources/taskGroups/resources/taskGroupId/client/index.d.ts +1 -0
  93. package/dist/cjs/api/resources/taskGroups/resources/taskGroupId/client/index.js +2 -0
  94. package/dist/cjs/api/resources/taskGroups/resources/taskGroupId/index.d.ts +1 -0
  95. package/dist/cjs/api/resources/taskGroups/resources/taskGroupId/index.js +17 -0
  96. package/dist/cjs/api/resources/tasks/client/Client.d.ts +107 -0
  97. package/dist/cjs/api/resources/tasks/client/Client.js +377 -0
  98. package/dist/cjs/api/resources/tasks/client/requests/AddTaskToGroupReq.d.ts +21 -0
  99. package/dist/cjs/api/resources/tasks/client/requests/index.d.ts +1 -0
  100. package/dist/cjs/api/resources/tasks/client/requests/index.js +2 -0
  101. package/dist/cjs/api/resources/tasks/index.d.ts +1 -0
  102. package/dist/cjs/api/resources/tasks/index.js +17 -0
  103. package/dist/cjs/api/resources/tracking/resources/devices/client/Client.d.ts +3 -3
  104. package/dist/cjs/api/resources/tracking/resources/devices/client/Client.js +3 -3
  105. package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/Client.d.ts +3 -3
  106. package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/Client.js +3 -3
  107. package/dist/cjs/api/resources/users/client/Client.d.ts +1 -1
  108. package/dist/cjs/api/resources/users/client/Client.js +1 -1
  109. package/dist/cjs/api/types/Cargo1.d.ts +1 -0
  110. package/dist/cjs/api/types/CargoStatusEnum1.d.ts +2 -1
  111. package/dist/cjs/api/types/CargoStatusEnum1.js +1 -0
  112. package/dist/cjs/api/types/ChrtGroundCourierTaskActionEnum1.d.ts +3 -3
  113. package/dist/cjs/api/types/ChrtGroundCourierTaskActionEnum1.js +2 -2
  114. package/dist/cjs/api/types/Driver1.d.ts +6 -4
  115. package/dist/cjs/api/types/DriverStatusEnum.d.ts +3 -3
  116. package/dist/cjs/api/types/DriverStatusEnum.js +2 -2
  117. package/dist/cjs/api/types/DriverUpdateAvailabilityReq.d.ts +6 -0
  118. package/dist/cjs/api/types/DriverUpdateAvailabilityReq.js +5 -0
  119. package/dist/cjs/api/types/Task1.d.ts +1 -0
  120. package/dist/cjs/api/types/TaskArtifact1.d.ts +1 -0
  121. package/dist/cjs/api/types/TaskArtifactClientCreate1.d.ts +8 -0
  122. package/dist/cjs/api/types/TaskArtifactClientCreate1.js +5 -0
  123. package/dist/cjs/api/types/TaskArtifactS3ObjectMetadata1.d.ts +15 -0
  124. package/dist/cjs/api/types/TaskArtifactS3ObjectMetadata1.js +5 -0
  125. package/dist/cjs/api/types/TaskArtifactStatusEnum1.d.ts +2 -1
  126. package/dist/cjs/api/types/TaskArtifactStatusEnum1.js +1 -0
  127. package/dist/cjs/api/types/TaskClientUpdate1.d.ts +0 -1
  128. package/dist/cjs/api/types/TaskGroup1.d.ts +1 -0
  129. package/dist/cjs/api/types/TaskGroupS3ObjectMetadata1.d.ts +15 -0
  130. package/dist/cjs/api/types/TaskGroupS3ObjectMetadata1.js +5 -0
  131. package/dist/cjs/api/types/TaskGroupSortByEnum.d.ts +2 -1
  132. package/dist/cjs/api/types/TaskGroupSortByEnum.js +1 -0
  133. package/dist/cjs/api/types/TaskGroupStatusEnum1.d.ts +2 -1
  134. package/dist/cjs/api/types/TaskGroupStatusEnum1.js +1 -0
  135. package/dist/cjs/api/types/TaskStatusEnum1.d.ts +2 -1
  136. package/dist/cjs/api/types/TaskStatusEnum1.js +1 -0
  137. package/dist/cjs/api/types/index.d.ts +4 -0
  138. package/dist/cjs/api/types/index.js +4 -0
  139. package/dist/cjs/version.d.ts +1 -1
  140. package/dist/cjs/version.js +1 -1
  141. package/dist/esm/Client.d.mts +6 -0
  142. package/dist/esm/Client.mjs +12 -2
  143. package/dist/esm/api/resources/cargos/client/Client.d.mts +48 -0
  144. package/dist/esm/api/resources/cargos/client/Client.mjs +94 -0
  145. package/dist/esm/api/resources/cargos/client/index.d.mts +1 -0
  146. package/dist/esm/api/resources/cargos/client/index.mjs +1 -0
  147. package/dist/esm/api/resources/connections/client/Client.d.mts +4 -4
  148. package/dist/esm/api/resources/connections/client/Client.mjs +4 -4
  149. package/dist/esm/api/resources/courierPayDriverPayouts/client/Client.d.mts +2 -2
  150. package/dist/esm/api/resources/courierPayDriverPayouts/client/Client.mjs +2 -2
  151. package/dist/esm/api/resources/courierPayDriverRateSheets/client/Client.d.mts +3 -3
  152. package/dist/esm/api/resources/courierPayDriverRateSheets/client/Client.mjs +3 -3
  153. package/dist/esm/api/resources/courierPayDriverStatements/client/Client.d.mts +2 -2
  154. package/dist/esm/api/resources/courierPayDriverStatements/client/Client.mjs +2 -2
  155. package/dist/esm/api/resources/dev/client/Client.d.mts +4 -4
  156. package/dist/esm/api/resources/dev/client/Client.mjs +4 -4
  157. package/dist/esm/api/resources/drivers/client/Client.d.mts +59 -61
  158. package/dist/esm/api/resources/drivers/client/Client.mjs +140 -139
  159. package/dist/esm/api/resources/drivers/client/requests/DriverClientCreate1.d.mts +20 -0
  160. package/dist/esm/api/resources/drivers/client/requests/{UpdateDriverDetailsReq.d.mts → DriverClientUpdate1.d.mts} +4 -5
  161. package/dist/esm/api/resources/drivers/client/requests/DriverLastSeenReq.d.mts +1 -0
  162. package/dist/esm/api/resources/drivers/client/requests/index.d.mts +2 -3
  163. package/dist/esm/api/resources/index.d.mts +3 -0
  164. package/dist/esm/api/resources/index.mjs +3 -0
  165. package/dist/esm/api/resources/notifications/resources/courier/client/Client.d.mts +2 -2
  166. package/dist/esm/api/resources/notifications/resources/courier/client/Client.mjs +2 -2
  167. package/dist/esm/api/resources/notifications/resources/shipper/client/Client.d.mts +2 -2
  168. package/dist/esm/api/resources/notifications/resources/shipper/client/Client.mjs +2 -2
  169. package/dist/esm/api/resources/offChrtShipperOrg/client/Client.d.mts +3 -3
  170. package/dist/esm/api/resources/offChrtShipperOrg/client/Client.mjs +3 -3
  171. package/dist/esm/api/resources/orders/client/Client.d.mts +13 -0
  172. package/dist/esm/api/resources/orders/client/Client.mjs +59 -0
  173. package/dist/esm/api/resources/orgInfoForConnections/resources/courier/client/Client.d.mts +1 -1
  174. package/dist/esm/api/resources/orgInfoForConnections/resources/courier/client/Client.mjs +1 -1
  175. package/dist/esm/api/resources/orgInfoForConnections/resources/forwarder/client/Client.d.mts +1 -1
  176. package/dist/esm/api/resources/orgInfoForConnections/resources/forwarder/client/Client.mjs +1 -1
  177. package/dist/esm/api/resources/orgInfoForConnections/resources/shipper/client/Client.d.mts +1 -1
  178. package/dist/esm/api/resources/orgInfoForConnections/resources/shipper/client/Client.mjs +1 -1
  179. package/dist/esm/api/resources/orgProfiles/client/Client.d.mts +1 -1
  180. package/dist/esm/api/resources/orgProfiles/client/Client.mjs +1 -1
  181. package/dist/esm/api/resources/orgs/client/Client.d.mts +5 -5
  182. package/dist/esm/api/resources/orgs/client/Client.mjs +5 -5
  183. package/dist/esm/api/resources/shipperContactInfo/client/Client.d.mts +36 -23
  184. package/dist/esm/api/resources/shipperContactInfo/client/Client.mjs +94 -35
  185. package/dist/esm/api/resources/shipperPayCourierLineItemGroups/client/Client.d.mts +2 -2
  186. package/dist/esm/api/resources/shipperPayCourierLineItemGroups/client/Client.mjs +2 -2
  187. package/dist/esm/api/resources/shipperPayCourierLineItemGroups/resources/courier/client/Client.d.mts +1 -1
  188. package/dist/esm/api/resources/shipperPayCourierLineItemGroups/resources/courier/client/Client.mjs +1 -1
  189. package/dist/esm/api/resources/shipperPayCourierLineItemGroups/resources/shipper/client/Client.d.mts +3 -3
  190. package/dist/esm/api/resources/shipperPayCourierLineItemGroups/resources/shipper/client/Client.mjs +3 -3
  191. package/dist/esm/api/resources/taskArtifactNotifications/client/Client.d.mts +2 -2
  192. package/dist/esm/api/resources/taskArtifactNotifications/client/Client.mjs +2 -2
  193. package/dist/esm/api/resources/taskArtifacts/client/Client.d.mts +37 -24
  194. package/dist/esm/api/resources/taskArtifacts/client/Client.mjs +96 -40
  195. package/dist/esm/api/resources/taskArtifacts/client/requests/AddTaskArtifactReq.d.mts +19 -0
  196. package/dist/esm/api/resources/taskArtifacts/client/requests/index.d.mts +1 -2
  197. package/dist/esm/api/resources/taskArtifacts/resources/index.d.mts +2 -3
  198. package/dist/esm/api/resources/taskArtifacts/resources/index.mjs +2 -3
  199. package/dist/esm/api/resources/taskArtifacts/resources/{blurhash → s3Object}/client/Client.d.mts +9 -9
  200. package/dist/esm/api/resources/taskArtifacts/resources/{blurhash → s3Object}/client/Client.mjs +9 -9
  201. package/dist/esm/api/resources/taskArtifacts/resources/s3Object/client/index.d.mts +1 -0
  202. package/dist/esm/api/resources/taskArtifacts/resources/s3Object/client/index.mjs +1 -0
  203. package/dist/esm/api/resources/taskArtifacts/resources/s3ObjectMetadata/client/Client.d.mts +47 -0
  204. package/dist/esm/api/resources/taskArtifacts/resources/s3ObjectMetadata/client/Client.mjs +90 -0
  205. package/dist/esm/api/resources/taskArtifacts/resources/s3ObjectMetadata/client/index.d.mts +1 -0
  206. package/dist/esm/api/resources/taskArtifacts/resources/s3ObjectMetadata/client/index.mjs +1 -0
  207. package/dist/esm/api/resources/taskArtifacts/resources/s3ObjectMetadata/index.d.mts +1 -0
  208. package/dist/esm/api/resources/taskArtifacts/resources/s3ObjectMetadata/index.mjs +1 -0
  209. package/dist/esm/api/resources/taskGroups/client/Client.d.mts +79 -33
  210. package/dist/esm/api/resources/taskGroups/client/Client.mjs +218 -65
  211. package/dist/esm/api/resources/taskGroups/client/requests/AddMessageReq.d.mts +13 -0
  212. package/dist/esm/api/resources/{taskArtifacts/resources/images/client/requests/BodyPostTaskArtifactsUploadImageV1OortTaskArtifactsImagesUploadV1TaskArtifactIdPost.d.mts → taskGroups/client/requests/BodyPostAddS3ObjectV1OortTaskGroupsAddS3ObjectV1TaskGroupIdPost.d.mts} +2 -2
  213. package/dist/esm/api/resources/taskGroups/client/requests/SetFlightNumberReq.d.mts +1 -0
  214. package/dist/esm/api/resources/taskGroups/client/requests/SetTaskOrderingReq.d.mts +3 -2
  215. package/dist/esm/api/resources/taskGroups/client/requests/UpdateCourierOrgReq.d.mts +13 -0
  216. package/dist/esm/api/resources/taskGroups/client/requests/UpdateDriverReq.d.mts +13 -0
  217. package/dist/esm/api/resources/taskGroups/client/requests/index.d.mts +4 -2
  218. package/dist/esm/api/resources/taskGroups/resources/expanded/client/Client.d.mts +4 -0
  219. package/dist/esm/api/resources/taskGroups/resources/expanded/client/Client.mjs +18 -2
  220. package/dist/esm/api/resources/taskGroups/resources/expanded/client/requests/ExpandedListForCourierDriverV1Request.d.mts +4 -0
  221. package/dist/esm/api/resources/taskGroups/resources/expanded/client/requests/ExpandedListForCourierOperatorsV1Request.d.mts +4 -0
  222. package/dist/esm/api/resources/taskGroups/resources/index.d.mts +3 -0
  223. package/dist/esm/api/resources/taskGroups/resources/index.mjs +3 -0
  224. package/dist/esm/api/resources/taskGroups/resources/s3Object/client/Client.d.mts +46 -0
  225. package/dist/esm/api/resources/taskGroups/resources/s3Object/client/Client.mjs +90 -0
  226. package/dist/esm/api/resources/taskGroups/resources/s3Object/client/index.d.mts +1 -0
  227. package/dist/esm/api/resources/taskGroups/resources/s3Object/client/index.mjs +1 -0
  228. package/dist/esm/api/resources/taskGroups/resources/s3Object/index.d.mts +1 -0
  229. package/dist/esm/api/resources/taskGroups/resources/s3Object/index.mjs +1 -0
  230. package/dist/esm/api/resources/taskGroups/resources/s3ObjectMetadata/client/Client.d.mts +47 -0
  231. package/dist/esm/api/resources/taskGroups/resources/s3ObjectMetadata/client/Client.mjs +90 -0
  232. package/dist/esm/api/resources/taskGroups/resources/s3ObjectMetadata/client/index.d.mts +1 -0
  233. package/dist/esm/api/resources/taskGroups/resources/s3ObjectMetadata/client/index.mjs +1 -0
  234. package/dist/esm/api/resources/taskGroups/resources/s3ObjectMetadata/index.d.mts +1 -0
  235. package/dist/esm/api/resources/taskGroups/resources/s3ObjectMetadata/index.mjs +1 -0
  236. package/dist/esm/api/resources/taskGroups/resources/taskGroupId/client/Client.d.mts +59 -0
  237. package/dist/esm/api/resources/{taskArtifacts/resources/images → taskGroups/resources/taskGroupId}/client/Client.mjs +22 -85
  238. package/dist/esm/api/resources/taskGroups/resources/taskGroupId/client/index.d.mts +1 -0
  239. package/dist/esm/api/resources/taskGroups/resources/taskGroupId/client/index.mjs +1 -0
  240. package/dist/esm/api/resources/taskGroups/resources/taskGroupId/index.d.mts +1 -0
  241. package/dist/esm/api/resources/taskGroups/resources/taskGroupId/index.mjs +1 -0
  242. package/dist/esm/api/resources/tasks/client/Client.d.mts +107 -0
  243. package/dist/esm/api/resources/tasks/client/Client.mjs +340 -0
  244. package/dist/esm/api/resources/tasks/client/requests/AddTaskToGroupReq.d.mts +21 -0
  245. package/dist/esm/api/resources/tasks/client/requests/index.d.mts +1 -0
  246. package/dist/esm/api/resources/tasks/client/requests/index.mjs +1 -0
  247. package/dist/esm/api/resources/tasks/index.d.mts +1 -0
  248. package/dist/esm/api/resources/tasks/index.mjs +1 -0
  249. package/dist/esm/api/resources/tracking/resources/devices/client/Client.d.mts +3 -3
  250. package/dist/esm/api/resources/tracking/resources/devices/client/Client.mjs +3 -3
  251. package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/Client.d.mts +3 -3
  252. package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/Client.mjs +3 -3
  253. package/dist/esm/api/resources/users/client/Client.d.mts +1 -1
  254. package/dist/esm/api/resources/users/client/Client.mjs +1 -1
  255. package/dist/esm/api/types/Cargo1.d.mts +1 -0
  256. package/dist/esm/api/types/CargoStatusEnum1.d.mts +2 -1
  257. package/dist/esm/api/types/CargoStatusEnum1.mjs +1 -0
  258. package/dist/esm/api/types/ChrtGroundCourierTaskActionEnum1.d.mts +3 -3
  259. package/dist/esm/api/types/ChrtGroundCourierTaskActionEnum1.mjs +2 -2
  260. package/dist/esm/api/types/Driver1.d.mts +6 -4
  261. package/dist/esm/api/types/DriverStatusEnum.d.mts +3 -3
  262. package/dist/esm/api/types/DriverStatusEnum.mjs +2 -2
  263. package/dist/esm/api/types/DriverUpdateAvailabilityReq.d.mts +6 -0
  264. package/dist/esm/api/types/DriverUpdateAvailabilityReq.mjs +4 -0
  265. package/dist/esm/api/types/Task1.d.mts +1 -0
  266. package/dist/esm/api/types/TaskArtifact1.d.mts +1 -0
  267. package/dist/esm/api/types/TaskArtifactClientCreate1.d.mts +8 -0
  268. package/dist/esm/api/types/TaskArtifactClientCreate1.mjs +4 -0
  269. package/dist/esm/api/types/TaskArtifactS3ObjectMetadata1.d.mts +15 -0
  270. package/dist/esm/api/types/TaskArtifactS3ObjectMetadata1.mjs +4 -0
  271. package/dist/esm/api/types/TaskArtifactStatusEnum1.d.mts +2 -1
  272. package/dist/esm/api/types/TaskArtifactStatusEnum1.mjs +1 -0
  273. package/dist/esm/api/types/TaskClientUpdate1.d.mts +0 -1
  274. package/dist/esm/api/types/TaskGroup1.d.mts +1 -0
  275. package/dist/esm/api/types/TaskGroupS3ObjectMetadata1.d.mts +15 -0
  276. package/dist/esm/api/types/TaskGroupS3ObjectMetadata1.mjs +4 -0
  277. package/dist/esm/api/types/TaskGroupSortByEnum.d.mts +2 -1
  278. package/dist/esm/api/types/TaskGroupSortByEnum.mjs +1 -0
  279. package/dist/esm/api/types/TaskGroupStatusEnum1.d.mts +2 -1
  280. package/dist/esm/api/types/TaskGroupStatusEnum1.mjs +1 -0
  281. package/dist/esm/api/types/TaskStatusEnum1.d.mts +2 -1
  282. package/dist/esm/api/types/TaskStatusEnum1.mjs +1 -0
  283. package/dist/esm/api/types/index.d.mts +4 -0
  284. package/dist/esm/api/types/index.mjs +4 -0
  285. package/dist/esm/version.d.mts +1 -1
  286. package/dist/esm/version.mjs +1 -1
  287. package/package.json +1 -1
  288. package/reference.md +1163 -267
  289. package/dist/cjs/api/resources/drivers/client/requests/DriverCreateReq.d.ts +0 -17
  290. package/dist/cjs/api/resources/drivers/client/requests/SetDriverActivationReq.d.ts +0 -14
  291. package/dist/cjs/api/resources/taskArtifacts/client/requests/TaskArtifactAddToTaskReq.d.ts +0 -19
  292. package/dist/cjs/api/resources/taskArtifacts/client/requests/TaskArtifactUpdateCommentsReq.d.ts +0 -14
  293. package/dist/cjs/api/resources/taskArtifacts/resources/images/client/Client.d.ts +0 -70
  294. package/dist/cjs/api/resources/taskArtifacts/resources/images/client/requests/index.d.ts +0 -1
  295. package/dist/cjs/api/resources/taskGroups/client/requests/UpdateTaskGroupCourierOrgReq.d.ts +0 -12
  296. package/dist/cjs/api/resources/taskGroups/client/requests/UpdateTaskGroupDriverReq.d.ts +0 -11
  297. package/dist/esm/api/resources/drivers/client/requests/DriverCreateReq.d.mts +0 -17
  298. package/dist/esm/api/resources/drivers/client/requests/SetDriverActivationReq.d.mts +0 -14
  299. package/dist/esm/api/resources/taskArtifacts/client/requests/TaskArtifactAddToTaskReq.d.mts +0 -19
  300. package/dist/esm/api/resources/taskArtifacts/client/requests/TaskArtifactUpdateCommentsReq.d.mts +0 -14
  301. package/dist/esm/api/resources/taskArtifacts/resources/images/client/Client.d.mts +0 -70
  302. package/dist/esm/api/resources/taskArtifacts/resources/images/client/requests/index.d.mts +0 -1
  303. package/dist/esm/api/resources/taskGroups/client/requests/UpdateTaskGroupCourierOrgReq.d.mts +0 -12
  304. package/dist/esm/api/resources/taskGroups/client/requests/UpdateTaskGroupDriverReq.d.mts +0 -11
  305. /package/dist/cjs/api/resources/{taskArtifacts/resources/blurhash → cargos}/client/index.d.ts +0 -0
  306. /package/dist/cjs/api/resources/{taskArtifacts/resources/blurhash → cargos}/client/index.js +0 -0
  307. /package/dist/cjs/api/resources/{taskArtifacts/resources/blurhash → cargos}/index.d.ts +0 -0
  308. /package/dist/cjs/api/resources/{taskArtifacts/resources/blurhash → cargos}/index.js +0 -0
  309. /package/dist/cjs/api/resources/drivers/client/requests/{DriverCreateReq.js → DriverClientCreate1.js} +0 -0
  310. /package/dist/cjs/api/resources/drivers/client/requests/{SetDriverActivationReq.js → DriverClientUpdate1.js} +0 -0
  311. /package/dist/cjs/api/resources/{drivers/client/requests/UpdateDriverDetailsReq.js → taskArtifacts/client/requests/AddTaskArtifactReq.js} +0 -0
  312. /package/dist/{esm/api/resources/taskArtifacts/resources/blurhash/client/index.d.mts → cjs/api/resources/taskArtifacts/resources/s3Object/client/index.d.ts} +0 -0
  313. /package/dist/cjs/api/resources/taskArtifacts/resources/{images/client/requests → s3Object/client}/index.js +0 -0
  314. /package/dist/cjs/api/resources/taskArtifacts/resources/{images → s3Object}/index.d.ts +0 -0
  315. /package/dist/cjs/api/resources/taskArtifacts/resources/{images → s3Object}/index.js +0 -0
  316. /package/dist/{esm/api/resources/taskArtifacts/resources/blurhash/client/index.mjs → cjs/api/resources/taskArtifacts/resources/s3ObjectMetadata/client/index.d.ts} +0 -0
  317. /package/dist/cjs/api/resources/{taskArtifacts/client/requests/TaskArtifactAddToTaskReq.js → taskGroups/client/requests/AddMessageReq.js} +0 -0
  318. /package/dist/cjs/api/resources/{taskArtifacts/client/requests/TaskArtifactUpdateCommentsReq.js → taskGroups/client/requests/BodyPostAddS3ObjectV1OortTaskGroupsAddS3ObjectV1TaskGroupIdPost.js} +0 -0
  319. /package/dist/cjs/api/resources/{taskArtifacts/resources/images/client/requests/BodyPostTaskArtifactsUploadImageV1OortTaskArtifactsImagesUploadV1TaskArtifactIdPost.js → taskGroups/client/requests/UpdateCourierOrgReq.js} +0 -0
  320. /package/dist/cjs/api/resources/taskGroups/client/requests/{UpdateTaskGroupCourierOrgReq.js → UpdateDriverReq.js} +0 -0
  321. /package/dist/{esm/api/resources/taskArtifacts/resources/images/client/requests/index.mjs → cjs/api/resources/taskGroups/resources/s3Object/client/index.d.ts} +0 -0
  322. /package/dist/cjs/api/resources/{taskArtifacts/resources/images → tasks}/client/index.d.ts +0 -0
  323. /package/dist/cjs/api/resources/{taskArtifacts/resources/images → tasks}/client/index.js +0 -0
  324. /package/dist/cjs/api/resources/{taskGroups/client/requests/UpdateTaskGroupDriverReq.js → tasks/client/requests/AddTaskToGroupReq.js} +0 -0
  325. /package/dist/esm/api/resources/{taskArtifacts/resources/blurhash → cargos}/index.d.mts +0 -0
  326. /package/dist/esm/api/resources/{taskArtifacts/resources/blurhash → cargos}/index.mjs +0 -0
  327. /package/dist/esm/api/resources/drivers/client/requests/{DriverCreateReq.mjs → DriverClientCreate1.mjs} +0 -0
  328. /package/dist/esm/api/resources/drivers/client/requests/{SetDriverActivationReq.mjs → DriverClientUpdate1.mjs} +0 -0
  329. /package/dist/esm/api/resources/{drivers/client/requests/UpdateDriverDetailsReq.mjs → taskArtifacts/client/requests/AddTaskArtifactReq.mjs} +0 -0
  330. /package/dist/esm/api/resources/taskArtifacts/resources/{images → s3Object}/index.d.mts +0 -0
  331. /package/dist/esm/api/resources/taskArtifacts/resources/{images → s3Object}/index.mjs +0 -0
  332. /package/dist/esm/api/resources/{taskArtifacts/client/requests/TaskArtifactAddToTaskReq.mjs → taskGroups/client/requests/AddMessageReq.mjs} +0 -0
  333. /package/dist/esm/api/resources/{taskArtifacts/client/requests/TaskArtifactUpdateCommentsReq.mjs → taskGroups/client/requests/BodyPostAddS3ObjectV1OortTaskGroupsAddS3ObjectV1TaskGroupIdPost.mjs} +0 -0
  334. /package/dist/esm/api/resources/{taskArtifacts/resources/images/client/requests/BodyPostTaskArtifactsUploadImageV1OortTaskArtifactsImagesUploadV1TaskArtifactIdPost.mjs → taskGroups/client/requests/UpdateCourierOrgReq.mjs} +0 -0
  335. /package/dist/esm/api/resources/taskGroups/client/requests/{UpdateTaskGroupCourierOrgReq.mjs → UpdateDriverReq.mjs} +0 -0
  336. /package/dist/esm/api/resources/{taskArtifacts/resources/images → tasks}/client/index.d.mts +0 -0
  337. /package/dist/esm/api/resources/{taskArtifacts/resources/images → tasks}/client/index.mjs +0 -0
  338. /package/dist/esm/api/resources/{taskGroups/client/requests/UpdateTaskGroupDriverReq.mjs → tasks/client/requests/AddTaskToGroupReq.mjs} +0 -0
@@ -20,22 +20,22 @@ export class ShipperContactInfo {
20
20
  this._options = _options;
21
21
  }
22
22
  /**
23
- * Retrieves the authenticated user's own shipper contact information. | () -> (ShipperContact1)
23
+ * Retrieves the shipper contact information associated with the caller's ID. | () -> (ShipperContact1)
24
24
  *
25
25
  * @param {ShipperContactInfo.RequestOptions} requestOptions - Request-specific configuration.
26
26
  *
27
27
  * @example
28
- * await client.shipperContactInfo.getByJwtUserIdV1()
28
+ * await client.shipperContactInfo.getCallerV1()
29
29
  */
30
- getByJwtUserIdV1(requestOptions) {
31
- return core.HttpResponsePromise.fromPromise(this.__getByJwtUserIdV1(requestOptions));
30
+ getCallerV1(requestOptions) {
31
+ return core.HttpResponsePromise.fromPromise(this.__getCallerV1(requestOptions));
32
32
  }
33
- __getByJwtUserIdV1(requestOptions) {
33
+ __getCallerV1(requestOptions) {
34
34
  return __awaiter(this, void 0, void 0, function* () {
35
35
  var _a, _b, _c, _d;
36
36
  let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
37
37
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
38
- url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "oort/shipper_contact_info/by_jwt_user_id/v1"),
38
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "oort/shipper_contact_info/self/v1"),
39
39
  method: "GET",
40
40
  headers: _headers,
41
41
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
@@ -61,7 +61,7 @@ export class ShipperContactInfo {
61
61
  rawResponse: _response.rawResponse,
62
62
  });
63
63
  case "timeout":
64
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/shipper_contact_info/by_jwt_user_id/v1.");
64
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/shipper_contact_info/self/v1.");
65
65
  case "unknown":
66
66
  throw new errors.ChrtError({
67
67
  message: _response.error.errorMessage,
@@ -71,22 +71,22 @@ export class ShipperContactInfo {
71
71
  });
72
72
  }
73
73
  /**
74
- * Lists all shipper contacts created by the authenticated organization. | () -> (list[ShipperContact1])
74
+ * Lists all shipper contacts for the caller's organization. | () -> (list[ShipperContact1])
75
75
  *
76
76
  * @param {ShipperContactInfo.RequestOptions} requestOptions - Request-specific configuration.
77
77
  *
78
78
  * @example
79
- * await client.shipperContactInfo.listByJwtOrgIdV1()
79
+ * await client.shipperContactInfo.listV1()
80
80
  */
81
- listByJwtOrgIdV1(requestOptions) {
82
- return core.HttpResponsePromise.fromPromise(this.__listByJwtOrgIdV1(requestOptions));
81
+ listV1(requestOptions) {
82
+ return core.HttpResponsePromise.fromPromise(this.__listV1(requestOptions));
83
83
  }
84
- __listByJwtOrgIdV1(requestOptions) {
84
+ __listV1(requestOptions) {
85
85
  return __awaiter(this, void 0, void 0, function* () {
86
86
  var _a, _b, _c, _d;
87
87
  let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
88
88
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
89
- url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "oort/shipper_contact_info/list/by_jwt_org_id/v1"),
89
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "oort/shipper_contact_info/list/v1"),
90
90
  method: "GET",
91
91
  headers: _headers,
92
92
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
@@ -112,7 +112,7 @@ export class ShipperContactInfo {
112
112
  rawResponse: _response.rawResponse,
113
113
  });
114
114
  case "timeout":
115
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/shipper_contact_info/list/by_jwt_org_id/v1.");
115
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/shipper_contact_info/list/v1.");
116
116
  case "unknown":
117
117
  throw new errors.ChrtError({
118
118
  message: _response.error.errorMessage,
@@ -130,12 +130,12 @@ export class ShipperContactInfo {
130
130
  * @throws {@link Chrt.UnprocessableEntityError}
131
131
  *
132
132
  * @example
133
- * await client.shipperContactInfo.listCourierContactsByShipperOrgIdV1("shipper_org_id")
133
+ * await client.shipperContactInfo.listCourierContactsV1("shipper_org_id")
134
134
  */
135
- listCourierContactsByShipperOrgIdV1(shipperOrgId, requestOptions) {
136
- return core.HttpResponsePromise.fromPromise(this.__listCourierContactsByShipperOrgIdV1(shipperOrgId, requestOptions));
135
+ listCourierContactsV1(shipperOrgId, requestOptions) {
136
+ return core.HttpResponsePromise.fromPromise(this.__listCourierContactsV1(shipperOrgId, requestOptions));
137
137
  }
138
- __listCourierContactsByShipperOrgIdV1(shipperOrgId, requestOptions) {
138
+ __listCourierContactsV1(shipperOrgId, requestOptions) {
139
139
  return __awaiter(this, void 0, void 0, function* () {
140
140
  var _a, _b, _c, _d;
141
141
  let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
@@ -181,7 +181,66 @@ export class ShipperContactInfo {
181
181
  });
182
182
  }
183
183
  /**
184
- * Lists all shipper contacts for a specific off-platform shipper connection. | () -> (list[ShipperContact1])
184
+ * Lists all shipper contacts accessible to the forwarder organization for a specific on-platform shipper. | () -> (list[ShipperContact1])
185
+ *
186
+ * @param {string} shipperOrgId
187
+ * @param {ShipperContactInfo.RequestOptions} requestOptions - Request-specific configuration.
188
+ *
189
+ * @throws {@link Chrt.UnprocessableEntityError}
190
+ *
191
+ * @example
192
+ * await client.shipperContactInfo.listForwarderContactsV1("shipper_org_id")
193
+ */
194
+ listForwarderContactsV1(shipperOrgId, requestOptions) {
195
+ return core.HttpResponsePromise.fromPromise(this.__listForwarderContactsV1(shipperOrgId, requestOptions));
196
+ }
197
+ __listForwarderContactsV1(shipperOrgId, requestOptions) {
198
+ return __awaiter(this, void 0, void 0, function* () {
199
+ var _a, _b, _c, _d;
200
+ let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
201
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
202
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, `oort/shipper_contact_info/forwarder_contacts/list/v1/${encodeURIComponent(shipperOrgId)}`),
203
+ method: "GET",
204
+ headers: _headers,
205
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
206
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
207
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
208
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
209
+ });
210
+ if (_response.ok) {
211
+ return { data: _response.body, rawResponse: _response.rawResponse };
212
+ }
213
+ if (_response.error.reason === "status-code") {
214
+ switch (_response.error.statusCode) {
215
+ case 422:
216
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
217
+ default:
218
+ throw new errors.ChrtError({
219
+ statusCode: _response.error.statusCode,
220
+ body: _response.error.body,
221
+ rawResponse: _response.rawResponse,
222
+ });
223
+ }
224
+ }
225
+ switch (_response.error.reason) {
226
+ case "non-json":
227
+ throw new errors.ChrtError({
228
+ statusCode: _response.error.statusCode,
229
+ body: _response.error.rawBody,
230
+ rawResponse: _response.rawResponse,
231
+ });
232
+ case "timeout":
233
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/shipper_contact_info/forwarder_contacts/list/v1/{shipper_org_id}.");
234
+ case "unknown":
235
+ throw new errors.ChrtError({
236
+ message: _response.error.errorMessage,
237
+ rawResponse: _response.rawResponse,
238
+ });
239
+ }
240
+ });
241
+ }
242
+ /**
243
+ * Lists all shipper contacts for a specific off-platform shipper. | () -> (list[ShipperContact1])
185
244
  *
186
245
  * @param {string} offChrtShipperOrgId
187
246
  * @param {ShipperContactInfo.RequestOptions} requestOptions - Request-specific configuration.
@@ -189,17 +248,17 @@ export class ShipperContactInfo {
189
248
  * @throws {@link Chrt.UnprocessableEntityError}
190
249
  *
191
250
  * @example
192
- * await client.shipperContactInfo.listByOffChrtShipperOrgIdV1("off_chrt_shipper_org_id")
251
+ * await client.shipperContactInfo.listOffPlatformContactsV1("off_chrt_shipper_org_id")
193
252
  */
194
- listByOffChrtShipperOrgIdV1(offChrtShipperOrgId, requestOptions) {
195
- return core.HttpResponsePromise.fromPromise(this.__listByOffChrtShipperOrgIdV1(offChrtShipperOrgId, requestOptions));
253
+ listOffPlatformContactsV1(offChrtShipperOrgId, requestOptions) {
254
+ return core.HttpResponsePromise.fromPromise(this.__listOffPlatformContactsV1(offChrtShipperOrgId, requestOptions));
196
255
  }
197
- __listByOffChrtShipperOrgIdV1(offChrtShipperOrgId, requestOptions) {
256
+ __listOffPlatformContactsV1(offChrtShipperOrgId, requestOptions) {
198
257
  return __awaiter(this, void 0, void 0, function* () {
199
258
  var _a, _b, _c, _d;
200
259
  let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
201
260
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
202
- url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, `oort/shipper_contact_info/list/v1/${encodeURIComponent(offChrtShipperOrgId)}`),
261
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, `oort/shipper_contact_info/off_platform_contacts/list/v1/${encodeURIComponent(offChrtShipperOrgId)}`),
203
262
  method: "GET",
204
263
  headers: _headers,
205
264
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
@@ -230,7 +289,7 @@ export class ShipperContactInfo {
230
289
  rawResponse: _response.rawResponse,
231
290
  });
232
291
  case "timeout":
233
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/shipper_contact_info/list/v1/{off_chrt_shipper_org_id}.");
292
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/shipper_contact_info/off_platform_contacts/list/v1/{off_chrt_shipper_org_id}.");
234
293
  case "unknown":
235
294
  throw new errors.ChrtError({
236
295
  message: _response.error.errorMessage,
@@ -248,12 +307,12 @@ export class ShipperContactInfo {
248
307
  * @throws {@link Chrt.UnprocessableEntityError}
249
308
  *
250
309
  * @example
251
- * await client.shipperContactInfo.getByIdV1("id")
310
+ * await client.shipperContactInfo.getV1("id")
252
311
  */
253
- getByIdV1(id, requestOptions) {
254
- return core.HttpResponsePromise.fromPromise(this.__getByIdV1(id, requestOptions));
312
+ getV1(id, requestOptions) {
313
+ return core.HttpResponsePromise.fromPromise(this.__getV1(id, requestOptions));
255
314
  }
256
- __getByIdV1(id, requestOptions) {
315
+ __getV1(id, requestOptions) {
257
316
  return __awaiter(this, void 0, void 0, function* () {
258
317
  var _a, _b, _c, _d;
259
318
  let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
@@ -427,7 +486,7 @@ export class ShipperContactInfo {
427
486
  });
428
487
  }
429
488
  /**
430
- * Updates existing shipper contact information owned by the authenticated organization. | (ShipperContactClientUpdate1) -> (bool)
489
+ * Updates existing shipper contact information owned by the caller's organization. | (ShipperContactClientUpdate1) -> (bool)
431
490
  *
432
491
  * @param {string} shipperContactInfoId
433
492
  * @param {Chrt.ShipperContactClientUpdate1} request
@@ -490,7 +549,7 @@ export class ShipperContactInfo {
490
549
  });
491
550
  }
492
551
  /**
493
- * Deletes shipper contact information owned by the authenticated organization. | () -> (bool)
552
+ * Deletes shipper contact information owned by the caller's organization. | () -> (bool)
494
553
  *
495
554
  * @param {string} id
496
555
  * @param {ShipperContactInfo.RequestOptions} requestOptions - Request-specific configuration.
@@ -498,12 +557,12 @@ export class ShipperContactInfo {
498
557
  * @throws {@link Chrt.UnprocessableEntityError}
499
558
  *
500
559
  * @example
501
- * await client.shipperContactInfo.deleteByIdV1("id")
560
+ * await client.shipperContactInfo.deleteV1("id")
502
561
  */
503
- deleteByIdV1(id, requestOptions) {
504
- return core.HttpResponsePromise.fromPromise(this.__deleteByIdV1(id, requestOptions));
562
+ deleteV1(id, requestOptions) {
563
+ return core.HttpResponsePromise.fromPromise(this.__deleteV1(id, requestOptions));
505
564
  }
506
- __deleteByIdV1(id, requestOptions) {
565
+ __deleteV1(id, requestOptions) {
507
566
  return __awaiter(this, void 0, void 0, function* () {
508
567
  var _a, _b, _c, _d;
509
568
  let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
@@ -43,7 +43,7 @@ export declare class ShipperPayCourierLineItemGroups {
43
43
  get addLineItems(): AddLineItems;
44
44
  get removeLineItems(): RemoveLineItems;
45
45
  /**
46
- * Retrieves a shipper pay courier line item group by its ID for the authenticated courier organization.
46
+ * Retrieves a shipper pay courier line item group by its ID for the caller's courier organization.
47
47
  *
48
48
  * @param {string} id
49
49
  * @param {ShipperPayCourierLineItemGroups.RequestOptions} requestOptions - Request-specific configuration.
@@ -69,7 +69,7 @@ export declare class ShipperPayCourierLineItemGroups {
69
69
  deleteByIdV1(id: string, requestOptions?: ShipperPayCourierLineItemGroups.RequestOptions): core.HttpResponsePromise<boolean>;
70
70
  private __deleteByIdV1;
71
71
  /**
72
- * Retrieves a shipper pay courier line item group by its associated task group ID for the authenticated courier organization.
72
+ * Retrieves a shipper pay courier line item group by its associated task group ID for the caller's courier organization.
73
73
  *
74
74
  * @param {string} taskGroupId
75
75
  * @param {ShipperPayCourierLineItemGroups.RequestOptions} requestOptions - Request-specific configuration.
@@ -40,7 +40,7 @@ export class ShipperPayCourierLineItemGroups {
40
40
  return ((_a = this._removeLineItems) !== null && _a !== void 0 ? _a : (this._removeLineItems = new RemoveLineItems(this._options)));
41
41
  }
42
42
  /**
43
- * Retrieves a shipper pay courier line item group by its ID for the authenticated courier organization.
43
+ * Retrieves a shipper pay courier line item group by its ID for the caller's courier organization.
44
44
  *
45
45
  * @param {string} id
46
46
  * @param {ShipperPayCourierLineItemGroups.RequestOptions} requestOptions - Request-specific configuration.
@@ -158,7 +158,7 @@ export class ShipperPayCourierLineItemGroups {
158
158
  });
159
159
  }
160
160
  /**
161
- * Retrieves a shipper pay courier line item group by its associated task group ID for the authenticated courier organization.
161
+ * Retrieves a shipper pay courier line item group by its associated task group ID for the caller's courier organization.
162
162
  *
163
163
  * @param {string} taskGroupId
164
164
  * @param {ShipperPayCourierLineItemGroups.RequestOptions} requestOptions - Request-specific configuration.
@@ -31,7 +31,7 @@ export declare class Courier {
31
31
  protected readonly _options: Courier.Options;
32
32
  constructor(_options?: Courier.Options);
33
33
  /**
34
- * Lists all shipper pay courier line item groups for the authenticated courier organization.
34
+ * Lists all shipper pay courier line item groups for the caller's courier organization.
35
35
  *
36
36
  * @param {Courier.RequestOptions} requestOptions - Request-specific configuration.
37
37
  *
@@ -19,7 +19,7 @@ export class Courier {
19
19
  this._options = _options;
20
20
  }
21
21
  /**
22
- * Lists all shipper pay courier line item groups for the authenticated courier organization.
22
+ * Lists all shipper pay courier line item groups for the caller's courier organization.
23
23
  *
24
24
  * @param {Courier.RequestOptions} requestOptions - Request-specific configuration.
25
25
  *
@@ -31,7 +31,7 @@ export declare class Shipper {
31
31
  protected readonly _options: Shipper.Options;
32
32
  constructor(_options?: Shipper.Options);
33
33
  /**
34
- * Lists all shipper pay courier line item groups for the authenticated shipper organization.
34
+ * Lists all shipper pay courier line item groups for the caller's shipper organization.
35
35
  *
36
36
  * @param {Shipper.RequestOptions} requestOptions - Request-specific configuration.
37
37
  *
@@ -41,7 +41,7 @@ export declare class Shipper {
41
41
  listV1(requestOptions?: Shipper.RequestOptions): core.HttpResponsePromise<Chrt.ShipperPayCourierLineItemGroup1[]>;
42
42
  private __listV1;
43
43
  /**
44
- * Retrieves a shipper pay courier line item group by its ID for the authenticated shipper organization.
44
+ * Retrieves a shipper pay courier line item group by its ID for the caller's shipper organization.
45
45
  *
46
46
  * @param {string} id
47
47
  * @param {Shipper.RequestOptions} requestOptions - Request-specific configuration.
@@ -54,7 +54,7 @@ export declare class Shipper {
54
54
  getByIdV1(id: string, requestOptions?: Shipper.RequestOptions): core.HttpResponsePromise<Chrt.ShipperPayCourierLineItemGroup1>;
55
55
  private __getByIdV1;
56
56
  /**
57
- * Retrieves a shipper pay courier line item group by its associated task group ID for the authenticated shipper organization.
57
+ * Retrieves a shipper pay courier line item group by its associated task group ID for the caller's shipper organization.
58
58
  *
59
59
  * @param {string} taskGroupId
60
60
  * @param {Shipper.RequestOptions} requestOptions - Request-specific configuration.
@@ -20,7 +20,7 @@ export class Shipper {
20
20
  this._options = _options;
21
21
  }
22
22
  /**
23
- * Lists all shipper pay courier line item groups for the authenticated shipper organization.
23
+ * Lists all shipper pay courier line item groups for the caller's shipper organization.
24
24
  *
25
25
  * @param {Shipper.RequestOptions} requestOptions - Request-specific configuration.
26
26
  *
@@ -74,7 +74,7 @@ export class Shipper {
74
74
  });
75
75
  }
76
76
  /**
77
- * Retrieves a shipper pay courier line item group by its ID for the authenticated shipper organization.
77
+ * Retrieves a shipper pay courier line item group by its ID for the caller's shipper organization.
78
78
  *
79
79
  * @param {string} id
80
80
  * @param {Shipper.RequestOptions} requestOptions - Request-specific configuration.
@@ -133,7 +133,7 @@ export class Shipper {
133
133
  });
134
134
  }
135
135
  /**
136
- * Retrieves a shipper pay courier line item group by its associated task group ID for the authenticated shipper organization.
136
+ * Retrieves a shipper pay courier line item group by its associated task group ID for the caller's shipper organization.
137
137
  *
138
138
  * @param {string} taskGroupId
139
139
  * @param {Shipper.RequestOptions} requestOptions - Request-specific configuration.
@@ -31,7 +31,7 @@ export declare class TaskArtifactNotifications {
31
31
  protected readonly _options: TaskArtifactNotifications.Options;
32
32
  constructor(_options?: TaskArtifactNotifications.Options);
33
33
  /**
34
- * Retrieves task_artifact notification preferences for the authenticated organization. | () -> (TaskArtifactNotificationPreferences1)
34
+ * Retrieves task_artifact notification preferences for the caller's organization. | () -> (TaskArtifactNotificationPreferences1)
35
35
  *
36
36
  * @param {TaskArtifactNotifications.RequestOptions} requestOptions - Request-specific configuration.
37
37
  *
@@ -41,7 +41,7 @@ export declare class TaskArtifactNotifications {
41
41
  getPreferencesV1(requestOptions?: TaskArtifactNotifications.RequestOptions): core.HttpResponsePromise<Chrt.TaskArtifactNotificationPreferences1>;
42
42
  private __getPreferencesV1;
43
43
  /**
44
- * Creates or updates task_artifact notification preferences for the authenticated organization. | (TaskArtifactNotificationPreferencesClientCreate1) -> (PydanticObjectId)
44
+ * Creates or updates task_artifact notification preferences for the caller's organization. | (TaskArtifactNotificationPreferencesClientCreate1) -> (PydanticObjectId)
45
45
  *
46
46
  * @param {Chrt.TaskArtifactNotificationPreferencesClientCreate1} request
47
47
  * @param {TaskArtifactNotifications.RequestOptions} requestOptions - Request-specific configuration.
@@ -20,7 +20,7 @@ export class TaskArtifactNotifications {
20
20
  this._options = _options;
21
21
  }
22
22
  /**
23
- * Retrieves task_artifact notification preferences for the authenticated organization. | () -> (TaskArtifactNotificationPreferences1)
23
+ * Retrieves task_artifact notification preferences for the caller's organization. | () -> (TaskArtifactNotificationPreferences1)
24
24
  *
25
25
  * @param {TaskArtifactNotifications.RequestOptions} requestOptions - Request-specific configuration.
26
26
  *
@@ -74,7 +74,7 @@ export class TaskArtifactNotifications {
74
74
  });
75
75
  }
76
76
  /**
77
- * Creates or updates task_artifact notification preferences for the authenticated organization. | (TaskArtifactNotificationPreferencesClientCreate1) -> (PydanticObjectId)
77
+ * Creates or updates task_artifact notification preferences for the caller's organization. | (TaskArtifactNotificationPreferencesClientCreate1) -> (PydanticObjectId)
78
78
  *
79
79
  * @param {Chrt.TaskArtifactNotificationPreferencesClientCreate1} request
80
80
  * @param {TaskArtifactNotifications.RequestOptions} requestOptions - Request-specific configuration.
@@ -4,8 +4,8 @@
4
4
  import * as environments from "../../../../environments.mjs";
5
5
  import * as core from "../../../../core/index.mjs";
6
6
  import * as Chrt from "../../../index.mjs";
7
- import { Images } from "../resources/images/client/Client.mjs";
8
- import { Blurhash } from "../resources/blurhash/client/Client.mjs";
7
+ import { S3ObjectMetadata } from "../resources/s3ObjectMetadata/client/Client.mjs";
8
+ import { S3Object } from "../resources/s3Object/client/Client.mjs";
9
9
  export declare namespace TaskArtifacts {
10
10
  interface Options {
11
11
  environment?: core.Supplier<environments.ChrtEnvironment | string>;
@@ -31,13 +31,33 @@ export declare namespace TaskArtifacts {
31
31
  }
32
32
  export declare class TaskArtifacts {
33
33
  protected readonly _options: TaskArtifacts.Options;
34
- protected _images: Images | undefined;
35
- protected _blurhash: Blurhash | undefined;
34
+ protected _s3ObjectMetadata: S3ObjectMetadata | undefined;
35
+ protected _s3Object: S3Object | undefined;
36
36
  constructor(_options?: TaskArtifacts.Options);
37
- get images(): Images;
38
- get blurhash(): Blurhash;
37
+ get s3ObjectMetadata(): S3ObjectMetadata;
38
+ get s3Object(): S3Object;
39
39
  /**
40
- * Completes a task_artifact and updates all related task, cargo, task group, and order statuses. | () -> (bool)
40
+ * Adds a new task artifact to a task. | authz_personas=[courier_driver, courier_org_operators, forwarder_org_operators] | (AddTaskArtifactReq) -> (PydanticObjectId)
41
+ *
42
+ * @param {string} taskId
43
+ * @param {Chrt.AddTaskArtifactReq} request
44
+ * @param {TaskArtifacts.RequestOptions} requestOptions - Request-specific configuration.
45
+ *
46
+ * @throws {@link Chrt.UnprocessableEntityError}
47
+ *
48
+ * @example
49
+ * await client.taskArtifacts.addToTaskV1("task_id", {
50
+ * task_artifact: {
51
+ * schema_version: 1,
52
+ * type: "image"
53
+ * },
54
+ * status: "draft"
55
+ * })
56
+ */
57
+ addToTaskV1(taskId: string, request: Chrt.AddTaskArtifactReq, requestOptions?: TaskArtifacts.RequestOptions): core.HttpResponsePromise<string>;
58
+ private __addToTaskV1;
59
+ /**
60
+ * Marks a task artifact as COMPLETED. | authz_personas=[courier_driver, courier_org_operators, forwarder_org_operators] | () -> (bool)
41
61
  *
42
62
  * @param {string} taskArtifactId
43
63
  * @param {TaskArtifacts.RequestOptions} requestOptions - Request-specific configuration.
@@ -50,37 +70,30 @@ export declare class TaskArtifacts {
50
70
  completeV1(taskArtifactId: string, requestOptions?: TaskArtifacts.RequestOptions): core.HttpResponsePromise<boolean>;
51
71
  private __completeV1;
52
72
  /**
53
- * Updates the completor comments on a task_artifact without affecting completion status. | (TaskArtifactUpdateCommentsReq) -> (bool)
73
+ * Marks a task artifact as SKIPPED. | authz_personas=[courier_driver, courier_org_operators, forwarder_org_operators] | () -> (bool)
54
74
  *
55
- * @param {Chrt.TaskArtifactUpdateCommentsReq} request
75
+ * @param {string} taskArtifactId
56
76
  * @param {TaskArtifacts.RequestOptions} requestOptions - Request-specific configuration.
57
77
  *
58
78
  * @throws {@link Chrt.UnprocessableEntityError}
59
79
  *
60
80
  * @example
61
- * await client.taskArtifacts.updateCommentsV1({
62
- * task_artifact_id: "task_artifact_id",
63
- * completor_comments: "completor_comments"
64
- * })
81
+ * await client.taskArtifacts.skipV1("task_artifact_id")
65
82
  */
66
- updateCommentsV1(request: Chrt.TaskArtifactUpdateCommentsReq, requestOptions?: TaskArtifacts.RequestOptions): core.HttpResponsePromise<boolean>;
67
- private __updateCommentsV1;
83
+ skipV1(taskArtifactId: string, requestOptions?: TaskArtifacts.RequestOptions): core.HttpResponsePromise<boolean>;
84
+ private __skipV1;
68
85
  /**
69
- * Adds a new task_artifact to an existing task. | (TaskArtifactAddToTaskReq) -> (PydanticObjectId)
86
+ * Deletes a task artifact. | authz_personas=[lig_org_operators] | () -> (bool)
70
87
  *
71
- * @param {Chrt.TaskArtifactAddToTaskReq} request
88
+ * @param {string} taskArtifactId
72
89
  * @param {TaskArtifacts.RequestOptions} requestOptions - Request-specific configuration.
73
90
  *
74
91
  * @throws {@link Chrt.UnprocessableEntityError}
75
92
  *
76
93
  * @example
77
- * await client.taskArtifacts.addToTaskV1({
78
- * task_id: "task_id",
79
- * task_artifact_type: "image",
80
- * task_artifact_is_completed: true
81
- * })
94
+ * await client.taskArtifacts.deleteV1("task_artifact_id")
82
95
  */
83
- addToTaskV1(request: Chrt.TaskArtifactAddToTaskReq, requestOptions?: TaskArtifacts.RequestOptions): core.HttpResponsePromise<string>;
84
- private __addToTaskV1;
96
+ deleteV1(taskArtifactId: string, requestOptions?: TaskArtifacts.RequestOptions): core.HttpResponsePromise<boolean>;
97
+ private __deleteV1;
85
98
  protected _getAuthorizationHeader(): Promise<string | undefined>;
86
99
  }