@chrt-inc/typescript-sdk 1.923.0 → 1.925.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 (298) hide show
  1. package/dist/cjs/Client.d.ts +3 -0
  2. package/dist/cjs/Client.js +29 -24
  3. package/dist/cjs/api/resources/agent/client/Client.d.ts +23 -0
  4. package/dist/cjs/api/resources/agent/client/Client.js +17 -0
  5. package/dist/cjs/api/resources/agent/client/index.d.ts +1 -0
  6. package/dist/cjs/api/resources/agent/client/index.js +2 -0
  7. package/dist/cjs/api/resources/agent/index.d.ts +2 -0
  8. package/dist/cjs/api/resources/agent/index.js +18 -0
  9. package/dist/cjs/api/resources/agent/resources/index.d.ts +2 -0
  10. package/dist/cjs/api/resources/agent/resources/index.js +41 -0
  11. package/dist/cjs/api/resources/agent/resources/orderInformation/client/Client.d.ts +79 -0
  12. package/dist/cjs/api/resources/agent/resources/orderInformation/client/Client.js +260 -0
  13. package/dist/cjs/api/resources/agent/resources/orderInformation/client/index.d.ts +2 -0
  14. package/dist/cjs/api/resources/agent/resources/orderInformation/client/index.js +17 -0
  15. package/dist/cjs/api/resources/agent/resources/orderInformation/client/requests/OrderInformationConversationClientUpdate1.d.ts +11 -0
  16. package/dist/cjs/api/resources/agent/resources/orderInformation/client/requests/OrderInformationConversationMessageReq.d.ts +12 -0
  17. package/dist/cjs/api/resources/agent/resources/orderInformation/client/requests/OrderInformationConversationStartReq.d.ts +13 -0
  18. package/dist/cjs/api/resources/agent/resources/orderInformation/client/requests/index.d.ts +3 -0
  19. package/dist/cjs/api/resources/agent/resources/orderInformation/client/requests/index.js +2 -0
  20. package/dist/cjs/api/resources/agent/resources/orderInformation/index.d.ts +1 -0
  21. package/dist/cjs/api/resources/agent/resources/orderInformation/index.js +17 -0
  22. package/dist/cjs/api/resources/billingNew/resources/chrtGroundProviderRates/client/Client.d.ts +0 -1
  23. package/dist/cjs/api/resources/billingNew/resources/chrtGroundProviderRates/client/Client.js +1 -5
  24. package/dist/cjs/api/resources/billingNew/resources/chrtGroundProviderRates/client/requests/ChrtGroundProviderRatesClientCreate1.d.ts +0 -1
  25. package/dist/cjs/api/resources/billingNew/resources/chrtGroundProviderRates/client/requests/ChrtGroundProviderRatesListV1Request.d.ts +0 -3
  26. package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/Client.d.ts +1 -1
  27. package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/Client.js +1 -1
  28. package/dist/cjs/api/resources/billingNew/resources/invoices/client/Client.d.ts +19 -2
  29. package/dist/cjs/api/resources/billingNew/resources/invoices/client/Client.js +68 -2
  30. package/dist/cjs/api/resources/billingNew/resources/invoices/client/requests/InvoiceClientCreate1.d.ts +2 -0
  31. package/dist/cjs/api/resources/billingNew/resources/invoices/client/requests/InvoicePeriodUpdateReq.d.ts +14 -0
  32. package/dist/cjs/api/resources/billingNew/resources/invoices/client/requests/index.d.ts +1 -0
  33. package/dist/cjs/api/resources/billingNew/resources/orders/client/Client.d.ts +3 -0
  34. package/dist/cjs/api/resources/billingNew/resources/orders/client/Client.js +5 -0
  35. package/dist/cjs/api/resources/billingNew/resources/orders/index.d.ts +1 -0
  36. package/dist/cjs/api/resources/billingNew/resources/orders/index.js +1 -0
  37. package/dist/cjs/api/resources/billingNew/resources/orders/resources/index.d.ts +2 -0
  38. package/dist/cjs/api/resources/billingNew/resources/orders/resources/index.js +41 -0
  39. package/dist/cjs/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/client/Client.d.ts +49 -0
  40. package/dist/cjs/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/client/Client.js +135 -0
  41. package/dist/cjs/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/client/index.d.ts +2 -0
  42. package/dist/cjs/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/client/index.js +17 -0
  43. package/dist/cjs/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/client/requests/OrderRateSheetLineItemsGenerateManyReq.d.ts +12 -0
  44. package/dist/cjs/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/client/requests/index.d.ts +1 -0
  45. package/dist/cjs/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/client/requests/index.js +2 -0
  46. package/dist/cjs/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/index.d.ts +1 -0
  47. package/dist/cjs/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/index.js +17 -0
  48. package/dist/cjs/api/resources/index.d.ts +1 -0
  49. package/dist/cjs/api/resources/index.js +2 -1
  50. package/dist/cjs/api/resources/operations/resources/operationsTasks/client/Client.d.ts +7 -7
  51. package/dist/cjs/api/resources/operations/resources/operationsTasks/client/Client.js +10 -10
  52. package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/{OperationsTaskStatusReq.d.ts → OperationsTasksSetStatusReq1.d.ts} +3 -1
  53. package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/index.d.ts +1 -1
  54. package/dist/cjs/api/resources/operations/resources/orderInternalMessages/resources/s3Objects/client/Client.d.ts +2 -2
  55. package/dist/cjs/api/resources/operations/resources/orderInternalMessages/resources/s3Objects/client/Client.js +5 -2
  56. package/dist/cjs/api/resources/orgs/resources/complianceDocuments/resources/s3Object/client/Client.d.ts +2 -2
  57. package/dist/cjs/api/resources/orgs/resources/complianceDocuments/resources/s3Object/client/Client.js +5 -2
  58. package/dist/cjs/api/resources/orgs/resources/contacts/client/Client.d.ts +1 -1
  59. package/dist/cjs/api/resources/orgs/resources/contacts/client/Client.js +1 -1
  60. package/dist/cjs/api/resources/shipping/resources/drivers/resources/complianceDocuments/resources/s3Object/client/Client.d.ts +2 -2
  61. package/dist/cjs/api/resources/shipping/resources/drivers/resources/complianceDocuments/resources/s3Object/client/Client.js +5 -2
  62. package/dist/cjs/api/resources/shipping/resources/orderTemplatesNew/resources/cargos/client/Client.d.ts +14 -0
  63. package/dist/cjs/api/resources/shipping/resources/orderTemplatesNew/resources/cargos/client/Client.js +60 -0
  64. package/dist/cjs/api/resources/shipping/resources/orders/resources/cargo/client/Client.d.ts +13 -0
  65. package/dist/cjs/api/resources/shipping/resources/orders/resources/cargo/client/Client.js +59 -0
  66. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.d.ts +2 -105
  67. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.js +6 -518
  68. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForProviderOperatorsV1Request.d.ts +3 -0
  69. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/index.d.ts +0 -2
  70. package/dist/cjs/api/resources/shipping/resources/taskArtifacts/resources/s3Object/client/Client.d.ts +3 -3
  71. package/dist/cjs/api/resources/shipping/resources/taskArtifacts/resources/s3Object/client/Client.js +2 -2
  72. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.d.ts +18 -31
  73. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.js +34 -93
  74. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/{ExpandedListForDriverForExecutorV1Request.d.ts → ExpandedListForDriverV1Request.d.ts} +1 -1
  75. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/{ExpandedListForExecutorOperatorsV1Request.d.ts → ExpandedListForProviderOperatorsV1Request.d.ts} +3 -1
  76. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/index.d.ts +2 -2
  77. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/index.d.ts +1 -0
  78. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/index.js +1 -0
  79. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/s3Object/client/Client.d.ts +2 -2
  80. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/s3Object/client/Client.js +1 -1
  81. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/taskGroupId/client/Client.d.ts +11 -7
  82. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/taskGroupId/client/Client.js +23 -15
  83. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/taskGroupId/client/index.d.ts +1 -0
  84. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/taskGroupId/client/index.js +15 -0
  85. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/taskGroupId/client/requests/TaskGroupIdForProviderOperatorsV1Request.d.ts +13 -0
  86. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/taskGroupId/client/requests/index.d.ts +1 -0
  87. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/taskGroupId/client/requests/index.js +2 -0
  88. package/dist/cjs/api/resources/tracking/resources/timeseries/resources/taskGroupByDriver/client/Client.d.ts +4 -4
  89. package/dist/cjs/api/resources/tracking/resources/timeseries/resources/taskGroupByDriver/client/Client.js +2 -2
  90. package/dist/cjs/api/types/AiImageDescription.d.ts +1 -1
  91. package/dist/cjs/api/types/{LlmModelEnum.d.ts → ArchivedModel.d.ts} +5 -2
  92. package/dist/cjs/api/types/{LlmModelEnum.js → ArchivedModel.js} +2 -2
  93. package/dist/cjs/api/types/ChrtGroundProviderRates1.d.ts +0 -1
  94. package/dist/cjs/api/types/ContactExpandedListItem.d.ts +10 -0
  95. package/dist/cjs/api/types/ContactListRes.d.ts +1 -1
  96. package/dist/cjs/api/types/Invoice1.d.ts +2 -0
  97. package/dist/cjs/api/types/InvoiceExpandedListItem.d.ts +11 -0
  98. package/dist/cjs/api/types/InvoiceLineItemExpandedListItem.d.ts +8 -0
  99. package/dist/cjs/api/types/InvoiceLineItemExpandedListItem.js +5 -0
  100. package/dist/cjs/api/types/InvoiceLineItemListRes.d.ts +1 -1
  101. package/dist/cjs/api/types/InvoiceListRes.d.ts +1 -1
  102. package/dist/cjs/api/types/Model.d.ts +12 -0
  103. package/dist/cjs/api/types/Model.js +11 -0
  104. package/dist/cjs/api/types/OperationsTaskExpandedListItem.d.ts +1 -0
  105. package/dist/cjs/api/types/OperationsTasksStatusUpdateRes1.d.ts +7 -0
  106. package/dist/cjs/api/types/OperationsTasksStatusUpdateRes1.js +5 -0
  107. package/dist/cjs/api/types/OrderAndTaskGroupExpandedReq.d.ts +1 -0
  108. package/dist/cjs/api/types/OrderExpandedForProvider.d.ts +2 -0
  109. package/dist/cjs/api/types/OrderExpandedForShipper.d.ts +1 -0
  110. package/dist/cjs/api/types/OrderInformationConversationRes.d.ts +7 -0
  111. package/dist/cjs/api/types/OrderInformationConversationRes.js +5 -0
  112. package/dist/cjs/api/types/OrderRateSheetLineItemsGenerateManyRes.d.ts +12 -0
  113. package/dist/cjs/api/types/OrderRateSheetLineItemsGenerateManyRes.js +5 -0
  114. package/dist/cjs/api/types/OrderRateSheetLineItemsGenerateManyResult1.d.ts +11 -0
  115. package/dist/cjs/api/types/OrderRateSheetLineItemsGenerateManyResult1.js +5 -0
  116. package/dist/cjs/api/types/OrderRateSheetLineItemsGenerateManyStatusEnum.d.ts +9 -0
  117. package/dist/cjs/api/types/OrderRateSheetLineItemsGenerateManyStatusEnum.js +11 -0
  118. package/dist/cjs/api/types/StoredModel.d.ts +5 -0
  119. package/dist/cjs/api/types/StoredModel.js +5 -0
  120. package/dist/cjs/api/types/TaskGroupByDriverDataPointsRes.d.ts +8 -0
  121. package/dist/cjs/api/types/TaskGroupByDriverDataPointsRes.js +5 -0
  122. package/dist/cjs/api/types/TaskGroupByDriverLastSeenRes.d.ts +8 -0
  123. package/dist/cjs/api/types/TaskGroupByDriverLastSeenRes.js +5 -0
  124. package/dist/cjs/api/types/TaskGroupProviderRoleFilterEnum.d.ts +9 -0
  125. package/dist/cjs/api/types/TaskGroupProviderRoleFilterEnum.js +11 -0
  126. package/dist/cjs/api/types/index.d.ts +14 -7
  127. package/dist/cjs/api/types/index.js +14 -7
  128. package/dist/cjs/version.d.ts +1 -1
  129. package/dist/cjs/version.js +1 -1
  130. package/dist/esm/Client.d.mts +3 -0
  131. package/dist/esm/Client.mjs +7 -2
  132. package/dist/esm/api/resources/agent/client/Client.d.mts +23 -0
  133. package/dist/esm/api/resources/agent/client/Client.mjs +13 -0
  134. package/dist/esm/api/resources/agent/client/index.d.mts +1 -0
  135. package/dist/esm/api/resources/agent/client/index.mjs +1 -0
  136. package/dist/esm/api/resources/agent/index.d.mts +2 -0
  137. package/dist/esm/api/resources/agent/index.mjs +2 -0
  138. package/dist/esm/api/resources/agent/resources/index.d.mts +2 -0
  139. package/dist/esm/api/resources/agent/resources/index.mjs +2 -0
  140. package/dist/esm/api/resources/agent/resources/orderInformation/client/Client.d.mts +79 -0
  141. package/dist/esm/api/resources/agent/resources/orderInformation/client/Client.mjs +223 -0
  142. package/dist/esm/api/resources/agent/resources/orderInformation/client/index.d.mts +2 -0
  143. package/dist/esm/api/resources/agent/resources/orderInformation/client/index.mjs +1 -0
  144. package/dist/esm/api/resources/agent/resources/orderInformation/client/requests/OrderInformationConversationClientUpdate1.d.mts +11 -0
  145. package/dist/esm/api/resources/agent/resources/orderInformation/client/requests/OrderInformationConversationMessageReq.d.mts +12 -0
  146. package/dist/esm/api/resources/agent/resources/orderInformation/client/requests/OrderInformationConversationStartReq.d.mts +13 -0
  147. package/dist/esm/api/resources/agent/resources/orderInformation/client/requests/index.d.mts +3 -0
  148. package/dist/esm/api/resources/agent/resources/orderInformation/client/requests/index.mjs +1 -0
  149. package/dist/esm/api/resources/agent/resources/orderInformation/index.d.mts +1 -0
  150. package/dist/esm/api/resources/agent/resources/orderInformation/index.mjs +1 -0
  151. package/dist/esm/api/resources/billingNew/resources/chrtGroundProviderRates/client/Client.d.mts +0 -1
  152. package/dist/esm/api/resources/billingNew/resources/chrtGroundProviderRates/client/Client.mjs +1 -5
  153. package/dist/esm/api/resources/billingNew/resources/chrtGroundProviderRates/client/requests/ChrtGroundProviderRatesClientCreate1.d.mts +0 -1
  154. package/dist/esm/api/resources/billingNew/resources/chrtGroundProviderRates/client/requests/ChrtGroundProviderRatesListV1Request.d.mts +0 -3
  155. package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/Client.d.mts +1 -1
  156. package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/Client.mjs +1 -1
  157. package/dist/esm/api/resources/billingNew/resources/invoices/client/Client.d.mts +19 -2
  158. package/dist/esm/api/resources/billingNew/resources/invoices/client/Client.mjs +68 -2
  159. package/dist/esm/api/resources/billingNew/resources/invoices/client/requests/InvoiceClientCreate1.d.mts +2 -0
  160. package/dist/esm/api/resources/billingNew/resources/invoices/client/requests/InvoicePeriodUpdateReq.d.mts +14 -0
  161. package/dist/esm/api/resources/billingNew/resources/invoices/client/requests/index.d.mts +1 -0
  162. package/dist/esm/api/resources/billingNew/resources/orders/client/Client.d.mts +3 -0
  163. package/dist/esm/api/resources/billingNew/resources/orders/client/Client.mjs +5 -0
  164. package/dist/esm/api/resources/billingNew/resources/orders/index.d.mts +1 -0
  165. package/dist/esm/api/resources/billingNew/resources/orders/index.mjs +1 -0
  166. package/dist/esm/api/resources/billingNew/resources/orders/resources/index.d.mts +2 -0
  167. package/dist/esm/api/resources/billingNew/resources/orders/resources/index.mjs +2 -0
  168. package/dist/esm/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/client/Client.d.mts +49 -0
  169. package/dist/esm/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/client/Client.mjs +98 -0
  170. package/dist/esm/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/client/index.d.mts +2 -0
  171. package/dist/esm/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/client/index.mjs +1 -0
  172. package/dist/esm/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/client/requests/OrderRateSheetLineItemsGenerateManyReq.d.mts +12 -0
  173. package/dist/esm/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/client/requests/index.d.mts +1 -0
  174. package/dist/esm/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/client/requests/index.mjs +1 -0
  175. package/dist/esm/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/index.d.mts +1 -0
  176. package/dist/esm/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/index.mjs +1 -0
  177. package/dist/esm/api/resources/index.d.mts +1 -0
  178. package/dist/esm/api/resources/index.mjs +1 -0
  179. package/dist/esm/api/resources/operations/resources/operationsTasks/client/Client.d.mts +7 -7
  180. package/dist/esm/api/resources/operations/resources/operationsTasks/client/Client.mjs +10 -10
  181. package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/{OperationsTaskStatusReq.d.mts → OperationsTasksSetStatusReq1.d.mts} +3 -1
  182. package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/index.d.mts +1 -1
  183. package/dist/esm/api/resources/operations/resources/orderInternalMessages/resources/s3Objects/client/Client.d.mts +2 -2
  184. package/dist/esm/api/resources/operations/resources/orderInternalMessages/resources/s3Objects/client/Client.mjs +5 -2
  185. package/dist/esm/api/resources/orgs/resources/complianceDocuments/resources/s3Object/client/Client.d.mts +2 -2
  186. package/dist/esm/api/resources/orgs/resources/complianceDocuments/resources/s3Object/client/Client.mjs +5 -2
  187. package/dist/esm/api/resources/orgs/resources/contacts/client/Client.d.mts +1 -1
  188. package/dist/esm/api/resources/orgs/resources/contacts/client/Client.mjs +1 -1
  189. package/dist/esm/api/resources/shipping/resources/drivers/resources/complianceDocuments/resources/s3Object/client/Client.d.mts +2 -2
  190. package/dist/esm/api/resources/shipping/resources/drivers/resources/complianceDocuments/resources/s3Object/client/Client.mjs +5 -2
  191. package/dist/esm/api/resources/shipping/resources/orderTemplatesNew/resources/cargos/client/Client.d.mts +14 -0
  192. package/dist/esm/api/resources/shipping/resources/orderTemplatesNew/resources/cargos/client/Client.mjs +60 -0
  193. package/dist/esm/api/resources/shipping/resources/orders/resources/cargo/client/Client.d.mts +13 -0
  194. package/dist/esm/api/resources/shipping/resources/orders/resources/cargo/client/Client.mjs +59 -0
  195. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.d.mts +2 -105
  196. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.mjs +6 -518
  197. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForProviderOperatorsV1Request.d.mts +3 -0
  198. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/index.d.mts +0 -2
  199. package/dist/esm/api/resources/shipping/resources/taskArtifacts/resources/s3Object/client/Client.d.mts +3 -3
  200. package/dist/esm/api/resources/shipping/resources/taskArtifacts/resources/s3Object/client/Client.mjs +2 -2
  201. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.d.mts +18 -31
  202. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.mjs +34 -93
  203. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/{ExpandedListForDriverForExecutorV1Request.d.mts → ExpandedListForDriverV1Request.d.mts} +1 -1
  204. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/{ExpandedListForExecutorOperatorsV1Request.d.mts → ExpandedListForProviderOperatorsV1Request.d.mts} +3 -1
  205. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/index.d.mts +2 -2
  206. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/index.d.mts +1 -0
  207. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/index.mjs +1 -0
  208. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/s3Object/client/Client.d.mts +2 -2
  209. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/s3Object/client/Client.mjs +1 -1
  210. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/taskGroupId/client/Client.d.mts +11 -7
  211. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/taskGroupId/client/Client.mjs +23 -15
  212. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/taskGroupId/client/index.d.mts +1 -0
  213. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/taskGroupId/client/index.mjs +1 -1
  214. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/taskGroupId/client/requests/TaskGroupIdForProviderOperatorsV1Request.d.mts +13 -0
  215. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/taskGroupId/client/requests/index.d.mts +1 -0
  216. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/taskGroupId/client/requests/index.mjs +1 -0
  217. package/dist/esm/api/resources/tracking/resources/timeseries/resources/taskGroupByDriver/client/Client.d.mts +4 -4
  218. package/dist/esm/api/resources/tracking/resources/timeseries/resources/taskGroupByDriver/client/Client.mjs +2 -2
  219. package/dist/esm/api/types/AiImageDescription.d.mts +1 -1
  220. package/dist/esm/api/types/{LlmModelEnum.d.mts → ArchivedModel.d.mts} +5 -2
  221. package/dist/esm/api/types/{LlmModelEnum.mjs → ArchivedModel.mjs} +1 -1
  222. package/dist/esm/api/types/ChrtGroundProviderRates1.d.mts +0 -1
  223. package/dist/esm/api/types/ContactExpandedListItem.d.mts +10 -0
  224. package/dist/esm/api/types/ContactListRes.d.mts +1 -1
  225. package/dist/esm/api/types/Invoice1.d.mts +2 -0
  226. package/dist/esm/api/types/InvoiceExpandedListItem.d.mts +11 -0
  227. package/dist/esm/api/types/InvoiceLineItemExpandedListItem.d.mts +8 -0
  228. package/dist/esm/api/types/InvoiceLineItemExpandedListItem.mjs +4 -0
  229. package/dist/esm/api/types/InvoiceLineItemListRes.d.mts +1 -1
  230. package/dist/esm/api/types/InvoiceListRes.d.mts +1 -1
  231. package/dist/esm/api/types/Model.d.mts +12 -0
  232. package/dist/esm/api/types/Model.mjs +8 -0
  233. package/dist/esm/api/types/OperationsTaskExpandedListItem.d.mts +1 -0
  234. package/dist/esm/api/types/OperationsTasksStatusUpdateRes1.d.mts +7 -0
  235. package/dist/esm/api/types/OperationsTasksStatusUpdateRes1.mjs +4 -0
  236. package/dist/esm/api/types/OrderAndTaskGroupExpandedReq.d.mts +1 -0
  237. package/dist/esm/api/types/OrderExpandedForProvider.d.mts +2 -0
  238. package/dist/esm/api/types/OrderExpandedForShipper.d.mts +1 -0
  239. package/dist/esm/api/types/OrderInformationConversationRes.d.mts +7 -0
  240. package/dist/esm/api/types/OrderInformationConversationRes.mjs +4 -0
  241. package/dist/esm/api/types/OrderRateSheetLineItemsGenerateManyRes.d.mts +12 -0
  242. package/dist/esm/api/types/OrderRateSheetLineItemsGenerateManyRes.mjs +4 -0
  243. package/dist/esm/api/types/OrderRateSheetLineItemsGenerateManyResult1.d.mts +11 -0
  244. package/dist/esm/api/types/OrderRateSheetLineItemsGenerateManyResult1.mjs +4 -0
  245. package/dist/esm/api/types/OrderRateSheetLineItemsGenerateManyStatusEnum.d.mts +9 -0
  246. package/dist/esm/api/types/OrderRateSheetLineItemsGenerateManyStatusEnum.mjs +8 -0
  247. package/dist/esm/api/types/StoredModel.d.mts +5 -0
  248. package/dist/esm/api/types/StoredModel.mjs +4 -0
  249. package/dist/esm/api/types/TaskGroupByDriverDataPointsRes.d.mts +8 -0
  250. package/dist/esm/api/types/TaskGroupByDriverDataPointsRes.mjs +4 -0
  251. package/dist/esm/api/types/TaskGroupByDriverLastSeenRes.d.mts +8 -0
  252. package/dist/esm/api/types/TaskGroupByDriverLastSeenRes.mjs +4 -0
  253. package/dist/esm/api/types/TaskGroupProviderRoleFilterEnum.d.mts +9 -0
  254. package/dist/esm/api/types/TaskGroupProviderRoleFilterEnum.mjs +8 -0
  255. package/dist/esm/api/types/index.d.mts +14 -7
  256. package/dist/esm/api/types/index.mjs +14 -7
  257. package/dist/esm/version.d.mts +1 -1
  258. package/dist/esm/version.mjs +1 -1
  259. package/package.json +1 -1
  260. package/reference.md +587 -486
  261. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForCoordinatorOperatorsV1Request.d.ts +0 -73
  262. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForExecutorOperatorsV1Request.d.ts +0 -66
  263. package/dist/cjs/api/types/OrderExpandedForCoordinator.d.ts +0 -15
  264. package/dist/cjs/api/types/OrderExpandedForExecutor.d.ts +0 -14
  265. package/dist/cjs/api/types/OrderLimitedForCoordinator1.d.ts +0 -47
  266. package/dist/cjs/api/types/OrderLimitedForExecutor1.d.ts +0 -27
  267. package/dist/cjs/api/types/OrdersExpandedListForCoordinatorRes.d.ts +0 -8
  268. package/dist/cjs/api/types/OrdersExpandedListForExecutorRes.d.ts +0 -8
  269. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForCoordinatorOperatorsV1Request.d.mts +0 -73
  270. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForExecutorOperatorsV1Request.d.mts +0 -66
  271. package/dist/esm/api/types/OrderExpandedForCoordinator.d.mts +0 -15
  272. package/dist/esm/api/types/OrderExpandedForExecutor.d.mts +0 -14
  273. package/dist/esm/api/types/OrderLimitedForCoordinator1.d.mts +0 -47
  274. package/dist/esm/api/types/OrderLimitedForExecutor1.d.mts +0 -27
  275. package/dist/esm/api/types/OrdersExpandedListForCoordinatorRes.d.mts +0 -8
  276. package/dist/esm/api/types/OrdersExpandedListForExecutorRes.d.mts +0 -8
  277. /package/dist/cjs/api/resources/{operations/resources/operationsTasks/client/requests/OperationsTaskStatusReq.js → agent/resources/orderInformation/client/requests/OrderInformationConversationClientUpdate1.js} +0 -0
  278. /package/dist/cjs/api/resources/{shipping/resources/orders/resources/expanded/client/requests/ExpandedListForCoordinatorOperatorsV1Request.js → agent/resources/orderInformation/client/requests/OrderInformationConversationMessageReq.js} +0 -0
  279. /package/dist/cjs/api/resources/{shipping/resources/orders/resources/expanded/client/requests/ExpandedListForExecutorOperatorsV1Request.js → agent/resources/orderInformation/client/requests/OrderInformationConversationStartReq.js} +0 -0
  280. /package/dist/cjs/api/resources/{shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForDriverForExecutorV1Request.js → billingNew/resources/invoices/client/requests/InvoicePeriodUpdateReq.js} +0 -0
  281. /package/dist/cjs/api/resources/{shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForExecutorOperatorsV1Request.js → billingNew/resources/orders/resources/rateSheetLineItems/client/requests/OrderRateSheetLineItemsGenerateManyReq.js} +0 -0
  282. /package/dist/cjs/api/{types/OrderExpandedForCoordinator.js → resources/operations/resources/operationsTasks/client/requests/OperationsTasksSetStatusReq1.js} +0 -0
  283. /package/dist/cjs/api/{types/OrderExpandedForExecutor.js → resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForDriverV1Request.js} +0 -0
  284. /package/dist/cjs/api/{types/OrderLimitedForCoordinator1.js → resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForProviderOperatorsV1Request.js} +0 -0
  285. /package/dist/cjs/api/{types/OrderLimitedForExecutor1.js → resources/shipping/resources/taskGroups/resources/taskGroupId/client/requests/TaskGroupIdForProviderOperatorsV1Request.js} +0 -0
  286. /package/dist/cjs/api/types/{OrdersExpandedListForCoordinatorRes.js → ContactExpandedListItem.js} +0 -0
  287. /package/dist/cjs/api/types/{OrdersExpandedListForExecutorRes.js → InvoiceExpandedListItem.js} +0 -0
  288. /package/dist/esm/api/resources/{operations/resources/operationsTasks/client/requests/OperationsTaskStatusReq.mjs → agent/resources/orderInformation/client/requests/OrderInformationConversationClientUpdate1.mjs} +0 -0
  289. /package/dist/esm/api/resources/{shipping/resources/orders/resources/expanded/client/requests/ExpandedListForCoordinatorOperatorsV1Request.mjs → agent/resources/orderInformation/client/requests/OrderInformationConversationMessageReq.mjs} +0 -0
  290. /package/dist/esm/api/resources/{shipping/resources/orders/resources/expanded/client/requests/ExpandedListForExecutorOperatorsV1Request.mjs → agent/resources/orderInformation/client/requests/OrderInformationConversationStartReq.mjs} +0 -0
  291. /package/dist/esm/api/resources/{shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForDriverForExecutorV1Request.mjs → billingNew/resources/invoices/client/requests/InvoicePeriodUpdateReq.mjs} +0 -0
  292. /package/dist/esm/api/resources/{shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForExecutorOperatorsV1Request.mjs → billingNew/resources/orders/resources/rateSheetLineItems/client/requests/OrderRateSheetLineItemsGenerateManyReq.mjs} +0 -0
  293. /package/dist/esm/api/{types/OrderExpandedForCoordinator.mjs → resources/operations/resources/operationsTasks/client/requests/OperationsTasksSetStatusReq1.mjs} +0 -0
  294. /package/dist/esm/api/{types/OrderExpandedForExecutor.mjs → resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForDriverV1Request.mjs} +0 -0
  295. /package/dist/esm/api/{types/OrderLimitedForCoordinator1.mjs → resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForProviderOperatorsV1Request.mjs} +0 -0
  296. /package/dist/esm/api/{types/OrderLimitedForExecutor1.mjs → resources/shipping/resources/taskGroups/resources/taskGroupId/client/requests/TaskGroupIdForProviderOperatorsV1Request.mjs} +0 -0
  297. /package/dist/esm/api/types/{OrdersExpandedListForCoordinatorRes.mjs → ContactExpandedListItem.mjs} +0 -0
  298. /package/dist/esm/api/types/{OrdersExpandedListForExecutorRes.mjs → InvoiceExpandedListItem.mjs} +0 -0
@@ -31,7 +31,7 @@ export declare class Expanded {
31
31
  protected readonly _options: Expanded.Options;
32
32
  constructor(_options?: Expanded.Options);
33
33
  /**
34
- * Retrieves an expanded task group with optional related data for coordinator operators (the provider org coordinating the order). | authz_personas=[coordinator_org_operators] | (OrderAndTaskGroupExpandedReq) -> (TaskGroupExpanded)
34
+ * Retrieves an expanded task group with optional related data for its assigned driver. | authz_personas=[driver_for_executor] | (OrderAndTaskGroupExpandedReq) -> (TaskGroupExpanded)
35
35
  *
36
36
  * @param {string} taskGroupId
37
37
  * @param {Chrt.OrderAndTaskGroupExpandedReq} request
@@ -40,12 +40,12 @@ export declare class Expanded {
40
40
  * @throws {@link Chrt.UnprocessableEntityError}
41
41
  *
42
42
  * @example
43
- * await client.shipping.taskGroups.expanded.forCoordinatorOperatorsV1("task_group_id", {})
43
+ * await client.shipping.taskGroups.expanded.forDriverV1("task_group_id", {})
44
44
  */
45
- forCoordinatorOperatorsV1(taskGroupId: string, request: Chrt.OrderAndTaskGroupExpandedReq, requestOptions?: Expanded.RequestOptions): core.HttpResponsePromise<Chrt.TaskGroupExpanded>;
46
- private __forCoordinatorOperatorsV1;
45
+ forDriverV1(taskGroupId: string, request: Chrt.OrderAndTaskGroupExpandedReq, requestOptions?: Expanded.RequestOptions): core.HttpResponsePromise<Chrt.TaskGroupExpanded>;
46
+ private __forDriverV1;
47
47
  /**
48
- * Retrieves an expanded task group with optional related data for the driver assigned to it (a driver of the executor provider org). | authz_personas=[driver_for_executor] | (OrderAndTaskGroupExpandedReq) -> (TaskGroupExpanded)
48
+ * Retrieves an expanded task group when the caller's provider org is its coordinator, executor, or both. Coordinator-only callers receive empty executor_org_notes; executor-only callers receive empty coordinator_shipper_account_ids. Executor notes are limited to the caller's org. | authz_personas=[coordinator_org_operators, executor_org_operators] | (OrderAndTaskGroupExpandedReq) -> (TaskGroupExpanded)
49
49
  *
50
50
  * @param {string} taskGroupId
51
51
  * @param {Chrt.OrderAndTaskGroupExpandedReq} request
@@ -54,24 +54,10 @@ export declare class Expanded {
54
54
  * @throws {@link Chrt.UnprocessableEntityError}
55
55
  *
56
56
  * @example
57
- * await client.shipping.taskGroups.expanded.forDriverForExecutorV1("task_group_id", {})
57
+ * await client.shipping.taskGroups.expanded.forProviderOperatorsV1("task_group_id", {})
58
58
  */
59
- forDriverForExecutorV1(taskGroupId: string, request: Chrt.OrderAndTaskGroupExpandedReq, requestOptions?: Expanded.RequestOptions): core.HttpResponsePromise<Chrt.TaskGroupExpanded>;
60
- private __forDriverForExecutorV1;
61
- /**
62
- * Retrieves an expanded task group with optional related data for executor operators (the provider org doing the work on this task group). | authz_personas=[executor_org_operators] | (OrderAndTaskGroupExpandedReq) -> (TaskGroupExpanded)
63
- *
64
- * @param {string} taskGroupId
65
- * @param {Chrt.OrderAndTaskGroupExpandedReq} request
66
- * @param {Expanded.RequestOptions} requestOptions - Request-specific configuration.
67
- *
68
- * @throws {@link Chrt.UnprocessableEntityError}
69
- *
70
- * @example
71
- * await client.shipping.taskGroups.expanded.forExecutorOperatorsV1("task_group_id", {})
72
- */
73
- forExecutorOperatorsV1(taskGroupId: string, request: Chrt.OrderAndTaskGroupExpandedReq, requestOptions?: Expanded.RequestOptions): core.HttpResponsePromise<Chrt.TaskGroupExpanded>;
74
- private __forExecutorOperatorsV1;
59
+ forProviderOperatorsV1(taskGroupId: string, request: Chrt.OrderAndTaskGroupExpandedReq, requestOptions?: Expanded.RequestOptions): core.HttpResponsePromise<Chrt.TaskGroupExpanded>;
60
+ private __forProviderOperatorsV1;
75
61
  /**
76
62
  * Retrieves an expanded task group with optional related data for shipper operators. | authz_personas=[shipper_org_operators] | (OrderAndTaskGroupExpandedReq) -> (TaskGroupExpanded)
77
63
  *
@@ -89,13 +75,13 @@ export declare class Expanded {
89
75
  /**
90
76
  * Lists expanded task groups assigned to the caller (a driver of the executor provider) with filtering, sorting, pagination, and optional full-text search. | authz_personas=[driver_for_executor] | (OrderAndTaskGroupExpandedReq) -> (TaskGroupExpandedListRes)
91
77
  *
92
- * @param {Chrt.shipping.taskGroups.ExpandedListForDriverForExecutorV1Request} request
78
+ * @param {Chrt.shipping.taskGroups.ExpandedListForDriverV1Request} request
93
79
  * @param {Expanded.RequestOptions} requestOptions - Request-specific configuration.
94
80
  *
95
81
  * @throws {@link Chrt.UnprocessableEntityError}
96
82
  *
97
83
  * @example
98
- * await client.shipping.taskGroups.expanded.listForDriverForExecutorV1({
84
+ * await client.shipping.taskGroups.expanded.listForDriverV1({
99
85
  * sort_by: "draft_started_at_timestamp",
100
86
  * sort_order: "asc",
101
87
  * page: 1,
@@ -121,18 +107,19 @@ export declare class Expanded {
121
107
  * body: {}
122
108
  * })
123
109
  */
124
- listForDriverForExecutorV1(request: Chrt.shipping.taskGroups.ExpandedListForDriverForExecutorV1Request, requestOptions?: Expanded.RequestOptions): core.HttpResponsePromise<Chrt.TaskGroupExpandedListRes>;
125
- private __listForDriverForExecutorV1;
110
+ listForDriverV1(request: Chrt.shipping.taskGroups.ExpandedListForDriverV1Request, requestOptions?: Expanded.RequestOptions): core.HttpResponsePromise<Chrt.TaskGroupExpandedListRes>;
111
+ private __listForDriverV1;
126
112
  /**
127
- * Lists expanded task groups where the caller's provider org is the executor. Filtering, sorting, pagination, optional full-text search. | authz_personas=[executor_org_operators] | (OrderAndTaskGroupExpandedReq) -> (TaskGroupExpandedListRes)
113
+ * Lists expanded task groups where the caller's provider org is the coordinator, executor, or both. Filtering, sorting, pagination, optional full-text search. | authz: allowed_org_types=[provider], min_org_role=operator | (OrderAndTaskGroupExpandedReq) -> (TaskGroupExpandedListRes)
128
114
  *
129
- * @param {Chrt.shipping.taskGroups.ExpandedListForExecutorOperatorsV1Request} request
115
+ * @param {Chrt.shipping.taskGroups.ExpandedListForProviderOperatorsV1Request} request
130
116
  * @param {Expanded.RequestOptions} requestOptions - Request-specific configuration.
131
117
  *
132
118
  * @throws {@link Chrt.UnprocessableEntityError}
133
119
  *
134
120
  * @example
135
- * await client.shipping.taskGroups.expanded.listForExecutorOperatorsV1({
121
+ * await client.shipping.taskGroups.expanded.listForProviderOperatorsV1({
122
+ * provider_role: "all",
136
123
  * sort_by: "draft_started_at_timestamp",
137
124
  * sort_order: "asc",
138
125
  * page: 1,
@@ -159,7 +146,7 @@ export declare class Expanded {
159
146
  * body: {}
160
147
  * })
161
148
  */
162
- listForExecutorOperatorsV1(request: Chrt.shipping.taskGroups.ExpandedListForExecutorOperatorsV1Request, requestOptions?: Expanded.RequestOptions): core.HttpResponsePromise<Chrt.TaskGroupExpandedListRes>;
163
- private __listForExecutorOperatorsV1;
149
+ listForProviderOperatorsV1(request: Chrt.shipping.taskGroups.ExpandedListForProviderOperatorsV1Request, requestOptions?: Expanded.RequestOptions): core.HttpResponsePromise<Chrt.TaskGroupExpandedListRes>;
150
+ private __listForProviderOperatorsV1;
164
151
  protected _getAuthorizationHeader(): Promise<string | undefined>;
165
152
  }
@@ -56,7 +56,7 @@ class Expanded {
56
56
  this._options = _options;
57
57
  }
58
58
  /**
59
- * Retrieves an expanded task group with optional related data for coordinator operators (the provider org coordinating the order). | authz_personas=[coordinator_org_operators] | (OrderAndTaskGroupExpandedReq) -> (TaskGroupExpanded)
59
+ * Retrieves an expanded task group with optional related data for its assigned driver. | authz_personas=[driver_for_executor] | (OrderAndTaskGroupExpandedReq) -> (TaskGroupExpanded)
60
60
  *
61
61
  * @param {string} taskGroupId
62
62
  * @param {Chrt.OrderAndTaskGroupExpandedReq} request
@@ -65,17 +65,17 @@ class Expanded {
65
65
  * @throws {@link Chrt.UnprocessableEntityError}
66
66
  *
67
67
  * @example
68
- * await client.shipping.taskGroups.expanded.forCoordinatorOperatorsV1("task_group_id", {})
68
+ * await client.shipping.taskGroups.expanded.forDriverV1("task_group_id", {})
69
69
  */
70
- forCoordinatorOperatorsV1(taskGroupId, request, requestOptions) {
71
- return core.HttpResponsePromise.fromPromise(this.__forCoordinatorOperatorsV1(taskGroupId, request, requestOptions));
70
+ forDriverV1(taskGroupId, request, requestOptions) {
71
+ return core.HttpResponsePromise.fromPromise(this.__forDriverV1(taskGroupId, request, requestOptions));
72
72
  }
73
- __forCoordinatorOperatorsV1(taskGroupId, request, requestOptions) {
73
+ __forDriverV1(taskGroupId, request, requestOptions) {
74
74
  return __awaiter(this, void 0, void 0, function* () {
75
75
  var _a, _b, _c, _d;
76
76
  let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
77
77
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
78
- 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, `shipping/task_groups/expanded/for_coordinator_operators/v1/${encodeURIComponent(taskGroupId)}`),
78
+ 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, `shipping/task_groups/expanded/for_driver/v1/${encodeURIComponent(taskGroupId)}`),
79
79
  method: "POST",
80
80
  headers: _headers,
81
81
  contentType: "application/json",
@@ -109,7 +109,7 @@ class Expanded {
109
109
  rawResponse: _response.rawResponse,
110
110
  });
111
111
  case "timeout":
112
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /shipping/task_groups/expanded/for_coordinator_operators/v1/{task_group_id}.");
112
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /shipping/task_groups/expanded/for_driver/v1/{task_group_id}.");
113
113
  case "unknown":
114
114
  throw new errors.ChrtError({
115
115
  message: _response.error.errorMessage,
@@ -119,7 +119,7 @@ class Expanded {
119
119
  });
120
120
  }
121
121
  /**
122
- * Retrieves an expanded task group with optional related data for the driver assigned to it (a driver of the executor provider org). | authz_personas=[driver_for_executor] | (OrderAndTaskGroupExpandedReq) -> (TaskGroupExpanded)
122
+ * Retrieves an expanded task group when the caller's provider org is its coordinator, executor, or both. Coordinator-only callers receive empty executor_org_notes; executor-only callers receive empty coordinator_shipper_account_ids. Executor notes are limited to the caller's org. | authz_personas=[coordinator_org_operators, executor_org_operators] | (OrderAndTaskGroupExpandedReq) -> (TaskGroupExpanded)
123
123
  *
124
124
  * @param {string} taskGroupId
125
125
  * @param {Chrt.OrderAndTaskGroupExpandedReq} request
@@ -128,17 +128,17 @@ class Expanded {
128
128
  * @throws {@link Chrt.UnprocessableEntityError}
129
129
  *
130
130
  * @example
131
- * await client.shipping.taskGroups.expanded.forDriverForExecutorV1("task_group_id", {})
131
+ * await client.shipping.taskGroups.expanded.forProviderOperatorsV1("task_group_id", {})
132
132
  */
133
- forDriverForExecutorV1(taskGroupId, request, requestOptions) {
134
- return core.HttpResponsePromise.fromPromise(this.__forDriverForExecutorV1(taskGroupId, request, requestOptions));
133
+ forProviderOperatorsV1(taskGroupId, request, requestOptions) {
134
+ return core.HttpResponsePromise.fromPromise(this.__forProviderOperatorsV1(taskGroupId, request, requestOptions));
135
135
  }
136
- __forDriverForExecutorV1(taskGroupId, request, requestOptions) {
136
+ __forProviderOperatorsV1(taskGroupId, request, requestOptions) {
137
137
  return __awaiter(this, void 0, void 0, function* () {
138
138
  var _a, _b, _c, _d;
139
139
  let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
140
140
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
141
- 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, `shipping/task_groups/expanded/for_driver_for_executor/v1/${encodeURIComponent(taskGroupId)}`),
141
+ 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, `shipping/task_groups/expanded/for_provider_operators/v1/${encodeURIComponent(taskGroupId)}`),
142
142
  method: "POST",
143
143
  headers: _headers,
144
144
  contentType: "application/json",
@@ -172,70 +172,7 @@ class Expanded {
172
172
  rawResponse: _response.rawResponse,
173
173
  });
174
174
  case "timeout":
175
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /shipping/task_groups/expanded/for_driver_for_executor/v1/{task_group_id}.");
176
- case "unknown":
177
- throw new errors.ChrtError({
178
- message: _response.error.errorMessage,
179
- rawResponse: _response.rawResponse,
180
- });
181
- }
182
- });
183
- }
184
- /**
185
- * Retrieves an expanded task group with optional related data for executor operators (the provider org doing the work on this task group). | authz_personas=[executor_org_operators] | (OrderAndTaskGroupExpandedReq) -> (TaskGroupExpanded)
186
- *
187
- * @param {string} taskGroupId
188
- * @param {Chrt.OrderAndTaskGroupExpandedReq} request
189
- * @param {Expanded.RequestOptions} requestOptions - Request-specific configuration.
190
- *
191
- * @throws {@link Chrt.UnprocessableEntityError}
192
- *
193
- * @example
194
- * await client.shipping.taskGroups.expanded.forExecutorOperatorsV1("task_group_id", {})
195
- */
196
- forExecutorOperatorsV1(taskGroupId, request, requestOptions) {
197
- return core.HttpResponsePromise.fromPromise(this.__forExecutorOperatorsV1(taskGroupId, request, requestOptions));
198
- }
199
- __forExecutorOperatorsV1(taskGroupId, request, requestOptions) {
200
- return __awaiter(this, void 0, void 0, function* () {
201
- var _a, _b, _c, _d;
202
- let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
203
- const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
204
- 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, `shipping/task_groups/expanded/for_executor_operators/v1/${encodeURIComponent(taskGroupId)}`),
205
- method: "POST",
206
- headers: _headers,
207
- contentType: "application/json",
208
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
209
- requestType: "json",
210
- body: request,
211
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
212
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
213
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
214
- });
215
- if (_response.ok) {
216
- return { data: _response.body, rawResponse: _response.rawResponse };
217
- }
218
- if (_response.error.reason === "status-code") {
219
- switch (_response.error.statusCode) {
220
- case 422:
221
- throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
222
- default:
223
- throw new errors.ChrtError({
224
- statusCode: _response.error.statusCode,
225
- body: _response.error.body,
226
- rawResponse: _response.rawResponse,
227
- });
228
- }
229
- }
230
- switch (_response.error.reason) {
231
- case "non-json":
232
- throw new errors.ChrtError({
233
- statusCode: _response.error.statusCode,
234
- body: _response.error.rawBody,
235
- rawResponse: _response.rawResponse,
236
- });
237
- case "timeout":
238
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /shipping/task_groups/expanded/for_executor_operators/v1/{task_group_id}.");
175
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /shipping/task_groups/expanded/for_provider_operators/v1/{task_group_id}.");
239
176
  case "unknown":
240
177
  throw new errors.ChrtError({
241
178
  message: _response.error.errorMessage,
@@ -310,13 +247,13 @@ class Expanded {
310
247
  /**
311
248
  * Lists expanded task groups assigned to the caller (a driver of the executor provider) with filtering, sorting, pagination, and optional full-text search. | authz_personas=[driver_for_executor] | (OrderAndTaskGroupExpandedReq) -> (TaskGroupExpandedListRes)
312
249
  *
313
- * @param {Chrt.shipping.taskGroups.ExpandedListForDriverForExecutorV1Request} request
250
+ * @param {Chrt.shipping.taskGroups.ExpandedListForDriverV1Request} request
314
251
  * @param {Expanded.RequestOptions} requestOptions - Request-specific configuration.
315
252
  *
316
253
  * @throws {@link Chrt.UnprocessableEntityError}
317
254
  *
318
255
  * @example
319
- * await client.shipping.taskGroups.expanded.listForDriverForExecutorV1({
256
+ * await client.shipping.taskGroups.expanded.listForDriverV1({
320
257
  * sort_by: "draft_started_at_timestamp",
321
258
  * sort_order: "asc",
322
259
  * page: 1,
@@ -342,10 +279,10 @@ class Expanded {
342
279
  * body: {}
343
280
  * })
344
281
  */
345
- listForDriverForExecutorV1(request, requestOptions) {
346
- return core.HttpResponsePromise.fromPromise(this.__listForDriverForExecutorV1(request, requestOptions));
282
+ listForDriverV1(request, requestOptions) {
283
+ return core.HttpResponsePromise.fromPromise(this.__listForDriverV1(request, requestOptions));
347
284
  }
348
- __listForDriverForExecutorV1(request, requestOptions) {
285
+ __listForDriverV1(request, requestOptions) {
349
286
  return __awaiter(this, void 0, void 0, function* () {
350
287
  var _a, _b, _c, _d, _e, _f;
351
288
  const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, search, filter_status: filterStatus, filter_draft_started_at_timestamp_lte: filterDraftStartedAtTimestampLte, filter_draft_started_at_timestamp_gte: filterDraftStartedAtTimestampGte, filter_staged_at_timestamp_lte: filterStagedAtTimestampLte, filter_staged_at_timestamp_gte: filterStagedAtTimestampGte, filter_in_progress_at_timestamp_lte: filterInProgressAtTimestampLte, filter_in_progress_at_timestamp_gte: filterInProgressAtTimestampGte, filter_completed_at_timestamp_lte: filterCompletedAtTimestampLte, filter_completed_at_timestamp_gte: filterCompletedAtTimestampGte, filter_skipped_at_timestamp_lte: filterSkippedAtTimestampLte, filter_skipped_at_timestamp_gte: filterSkippedAtTimestampGte, filter_cancelled_at_timestamp_lte: filterCancelledAtTimestampLte, filter_cancelled_at_timestamp_gte: filterCancelledAtTimestampGte, filter_exception_at_timestamp_lte: filterExceptionAtTimestampLte, filter_exception_at_timestamp_gte: filterExceptionAtTimestampGte, filter_coordinator_org_id: filterCoordinatorOrgId, filter_shipper_org_id: filterShipperOrgId, filter_off_chrt_shipper_org_data_id: filterOffChrtShipperOrgDataId, body: _body, } = request;
@@ -426,7 +363,7 @@ class Expanded {
426
363
  }
427
364
  let _headers = (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
428
365
  const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
429
- url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.ChrtEnvironment.Local, "shipping/task_groups/expanded/list/for_driver_for_executor/v1"),
366
+ url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.ChrtEnvironment.Local, "shipping/task_groups/expanded/list/for_driver/v1"),
430
367
  method: "POST",
431
368
  headers: _headers,
432
369
  contentType: "application/json",
@@ -460,7 +397,7 @@ class Expanded {
460
397
  rawResponse: _response.rawResponse,
461
398
  });
462
399
  case "timeout":
463
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /shipping/task_groups/expanded/list/for_driver_for_executor/v1.");
400
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /shipping/task_groups/expanded/list/for_driver/v1.");
464
401
  case "unknown":
465
402
  throw new errors.ChrtError({
466
403
  message: _response.error.errorMessage,
@@ -470,15 +407,16 @@ class Expanded {
470
407
  });
471
408
  }
472
409
  /**
473
- * Lists expanded task groups where the caller's provider org is the executor. Filtering, sorting, pagination, optional full-text search. | authz_personas=[executor_org_operators] | (OrderAndTaskGroupExpandedReq) -> (TaskGroupExpandedListRes)
410
+ * Lists expanded task groups where the caller's provider org is the coordinator, executor, or both. Filtering, sorting, pagination, optional full-text search. | authz: allowed_org_types=[provider], min_org_role=operator | (OrderAndTaskGroupExpandedReq) -> (TaskGroupExpandedListRes)
474
411
  *
475
- * @param {Chrt.shipping.taskGroups.ExpandedListForExecutorOperatorsV1Request} request
412
+ * @param {Chrt.shipping.taskGroups.ExpandedListForProviderOperatorsV1Request} request
476
413
  * @param {Expanded.RequestOptions} requestOptions - Request-specific configuration.
477
414
  *
478
415
  * @throws {@link Chrt.UnprocessableEntityError}
479
416
  *
480
417
  * @example
481
- * await client.shipping.taskGroups.expanded.listForExecutorOperatorsV1({
418
+ * await client.shipping.taskGroups.expanded.listForProviderOperatorsV1({
419
+ * provider_role: "all",
482
420
  * sort_by: "draft_started_at_timestamp",
483
421
  * sort_order: "asc",
484
422
  * page: 1,
@@ -505,14 +443,17 @@ class Expanded {
505
443
  * body: {}
506
444
  * })
507
445
  */
508
- listForExecutorOperatorsV1(request, requestOptions) {
509
- return core.HttpResponsePromise.fromPromise(this.__listForExecutorOperatorsV1(request, requestOptions));
446
+ listForProviderOperatorsV1(request, requestOptions) {
447
+ return core.HttpResponsePromise.fromPromise(this.__listForProviderOperatorsV1(request, requestOptions));
510
448
  }
511
- __listForExecutorOperatorsV1(request, requestOptions) {
449
+ __listForProviderOperatorsV1(request, requestOptions) {
512
450
  return __awaiter(this, void 0, void 0, function* () {
513
451
  var _a, _b, _c, _d, _e, _f;
514
- const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, search, filter_status: filterStatus, filter_draft_started_at_timestamp_lte: filterDraftStartedAtTimestampLte, filter_draft_started_at_timestamp_gte: filterDraftStartedAtTimestampGte, filter_staged_at_timestamp_lte: filterStagedAtTimestampLte, filter_staged_at_timestamp_gte: filterStagedAtTimestampGte, filter_in_progress_at_timestamp_lte: filterInProgressAtTimestampLte, filter_in_progress_at_timestamp_gte: filterInProgressAtTimestampGte, filter_completed_at_timestamp_lte: filterCompletedAtTimestampLte, filter_completed_at_timestamp_gte: filterCompletedAtTimestampGte, filter_skipped_at_timestamp_lte: filterSkippedAtTimestampLte, filter_skipped_at_timestamp_gte: filterSkippedAtTimestampGte, filter_cancelled_at_timestamp_lte: filterCancelledAtTimestampLte, filter_cancelled_at_timestamp_gte: filterCancelledAtTimestampGte, filter_exception_at_timestamp_lte: filterExceptionAtTimestampLte, filter_exception_at_timestamp_gte: filterExceptionAtTimestampGte, filter_driver_id: filterDriverId, filter_coordinator_org_id: filterCoordinatorOrgId, filter_shipper_org_id: filterShipperOrgId, filter_off_chrt_shipper_org_data_id: filterOffChrtShipperOrgDataId, body: _body, } = request;
452
+ const { provider_role: providerRole, sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, search, filter_status: filterStatus, filter_draft_started_at_timestamp_lte: filterDraftStartedAtTimestampLte, filter_draft_started_at_timestamp_gte: filterDraftStartedAtTimestampGte, filter_staged_at_timestamp_lte: filterStagedAtTimestampLte, filter_staged_at_timestamp_gte: filterStagedAtTimestampGte, filter_in_progress_at_timestamp_lte: filterInProgressAtTimestampLte, filter_in_progress_at_timestamp_gte: filterInProgressAtTimestampGte, filter_completed_at_timestamp_lte: filterCompletedAtTimestampLte, filter_completed_at_timestamp_gte: filterCompletedAtTimestampGte, filter_skipped_at_timestamp_lte: filterSkippedAtTimestampLte, filter_skipped_at_timestamp_gte: filterSkippedAtTimestampGte, filter_cancelled_at_timestamp_lte: filterCancelledAtTimestampLte, filter_cancelled_at_timestamp_gte: filterCancelledAtTimestampGte, filter_exception_at_timestamp_lte: filterExceptionAtTimestampLte, filter_exception_at_timestamp_gte: filterExceptionAtTimestampGte, filter_driver_id: filterDriverId, filter_coordinator_org_id: filterCoordinatorOrgId, filter_shipper_org_id: filterShipperOrgId, filter_off_chrt_shipper_org_data_id: filterOffChrtShipperOrgDataId, body: _body, } = request;
515
453
  const _queryParams = {};
454
+ if (providerRole !== undefined) {
455
+ _queryParams["provider_role"] = providerRole;
456
+ }
516
457
  if (sortBy !== undefined) {
517
458
  _queryParams["sort_by"] = sortBy;
518
459
  }
@@ -592,7 +533,7 @@ class Expanded {
592
533
  }
593
534
  let _headers = (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
594
535
  const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
595
- url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.ChrtEnvironment.Local, "shipping/task_groups/expanded/list/for_executor_operators/v1"),
536
+ url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.ChrtEnvironment.Local, "shipping/task_groups/expanded/list/for_provider_operators/v1"),
596
537
  method: "POST",
597
538
  headers: _headers,
598
539
  contentType: "application/json",
@@ -626,7 +567,7 @@ class Expanded {
626
567
  rawResponse: _response.rawResponse,
627
568
  });
628
569
  case "timeout":
629
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /shipping/task_groups/expanded/list/for_executor_operators/v1.");
570
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /shipping/task_groups/expanded/list/for_provider_operators/v1.");
630
571
  case "unknown":
631
572
  throw new errors.ChrtError({
632
573
  message: _response.error.errorMessage,
@@ -30,7 +30,7 @@ import * as Chrt from "../../../../../../../../index.js";
30
30
  * body: {}
31
31
  * }
32
32
  */
33
- export interface ExpandedListForDriverForExecutorV1Request {
33
+ export interface ExpandedListForDriverV1Request {
34
34
  sort_by?: Chrt.TaskGroupSortByEnum | null;
35
35
  /** Sort order (asc or desc) */
36
36
  sort_order?: Chrt.SortOrderEnum | null;
@@ -5,6 +5,7 @@ import * as Chrt from "../../../../../../../../index.js";
5
5
  /**
6
6
  * @example
7
7
  * {
8
+ * provider_role: "all",
8
9
  * sort_by: "draft_started_at_timestamp",
9
10
  * sort_order: "asc",
10
11
  * page: 1,
@@ -31,7 +32,8 @@ import * as Chrt from "../../../../../../../../index.js";
31
32
  * body: {}
32
33
  * }
33
34
  */
34
- export interface ExpandedListForExecutorOperatorsV1Request {
35
+ export interface ExpandedListForProviderOperatorsV1Request {
36
+ provider_role?: Chrt.TaskGroupProviderRoleFilterEnum | null;
35
37
  sort_by?: Chrt.TaskGroupSortByEnum | null;
36
38
  /** Sort order (asc or desc) */
37
39
  sort_order?: Chrt.SortOrderEnum | null;
@@ -1,2 +1,2 @@
1
- export { type ExpandedListForDriverForExecutorV1Request } from "./ExpandedListForDriverForExecutorV1Request.js";
2
- export { type ExpandedListForExecutorOperatorsV1Request } from "./ExpandedListForExecutorOperatorsV1Request.js";
1
+ export { type ExpandedListForDriverV1Request } from "./ExpandedListForDriverV1Request.js";
2
+ export { type ExpandedListForProviderOperatorsV1Request } from "./ExpandedListForProviderOperatorsV1Request.js";
@@ -3,3 +3,4 @@ export * as s3Object from "./s3Object/index.js";
3
3
  export * as taskGroupId from "./taskGroupId/index.js";
4
4
  export * from "./expanded/client/requests/index.js";
5
5
  export * from "./s3Object/client/requests/index.js";
6
+ export * from "./taskGroupId/client/requests/index.js";
@@ -42,3 +42,4 @@ exports.s3Object = __importStar(require("./s3Object/index.js"));
42
42
  exports.taskGroupId = __importStar(require("./taskGroupId/index.js"));
43
43
  __exportStar(require("./expanded/client/requests/index.js"), exports);
44
44
  __exportStar(require("./s3Object/client/requests/index.js"), exports);
45
+ __exportStar(require("./taskGroupId/client/requests/index.js"), exports);
@@ -31,7 +31,7 @@ export declare class S3Object {
31
31
  protected readonly _options: S3Object.Options;
32
32
  constructor(_options?: S3Object.Options);
33
33
  /**
34
- * Uploads a file (image, PDF, etc.) to a task group. Automatic blurhash generation for images. | authz_personas=[driver_for_executor, executor_org_operators, coordinator_org_operators, shipper_org_operators] | (UploadFile) -> (bool)
34
+ * Uploads a file (image, PDF, etc.) to a task group. Automatic blurhash generation for images. | authz_personas=[driver_for_executor, executor_org_operators, coordinator_org_operators, shipper_org_operators] | (UploadFile) -> (TaskGroupS3ObjectMetadata1)
35
35
  *
36
36
  * @param {string} taskGroupId
37
37
  * @param {Chrt.shipping.taskGroups.BodyPostTaskGroupsS3ObjectAddV1} request
@@ -45,7 +45,7 @@ export declare class S3Object {
45
45
  * file: fs.createReadStream("/path/to/your/file")
46
46
  * })
47
47
  */
48
- addV1(taskGroupId: string, request: Chrt.shipping.taskGroups.BodyPostTaskGroupsS3ObjectAddV1, requestOptions?: S3Object.RequestOptions): core.HttpResponsePromise<boolean>;
48
+ addV1(taskGroupId: string, request: Chrt.shipping.taskGroups.BodyPostTaskGroupsS3ObjectAddV1, requestOptions?: S3Object.RequestOptions): core.HttpResponsePromise<Chrt.TaskGroupS3ObjectMetadata1>;
49
49
  private __addV1;
50
50
  /**
51
51
  * Deletes an S3 object metadata and the associated S3 object from a task group. Only the uploader or an operator from the uploading org can delete. | () -> (bool)
@@ -56,7 +56,7 @@ class S3Object {
56
56
  this._options = _options;
57
57
  }
58
58
  /**
59
- * Uploads a file (image, PDF, etc.) to a task group. Automatic blurhash generation for images. | authz_personas=[driver_for_executor, executor_org_operators, coordinator_org_operators, shipper_org_operators] | (UploadFile) -> (bool)
59
+ * Uploads a file (image, PDF, etc.) to a task group. Automatic blurhash generation for images. | authz_personas=[driver_for_executor, executor_org_operators, coordinator_org_operators, shipper_org_operators] | (UploadFile) -> (TaskGroupS3ObjectMetadata1)
60
60
  *
61
61
  * @param {string} taskGroupId
62
62
  * @param {Chrt.shipping.taskGroups.BodyPostTaskGroupsS3ObjectAddV1} request
@@ -3,6 +3,7 @@
3
3
  */
4
4
  import * as environments from "../../../../../../../../environments.js";
5
5
  import * as core from "../../../../../../../../core/index.js";
6
+ import * as Chrt from "../../../../../../../index.js";
6
7
  export declare namespace TaskGroupId {
7
8
  interface Options {
8
9
  environment?: core.Supplier<environments.ChrtEnvironment | string>;
@@ -38,22 +39,25 @@ export declare class TaskGroupId {
38
39
  * @throws {@link Chrt.UnprocessableEntityError}
39
40
  *
40
41
  * @example
41
- * await client.shipping.taskGroups.taskGroupId.forDriverForExecutorV1("order_ref")
42
+ * await client.shipping.taskGroups.taskGroupId.forDriverV1("order_ref")
42
43
  */
43
- forDriverForExecutorV1(orderRef: string, requestOptions?: TaskGroupId.RequestOptions): core.HttpResponsePromise<string[]>;
44
- private __forDriverForExecutorV1;
44
+ forDriverV1(orderRef: string, requestOptions?: TaskGroupId.RequestOptions): core.HttpResponsePromise<string[]>;
45
+ private __forDriverV1;
45
46
  /**
46
- * Retrieves the task group IDs where the caller's provider org is the executor for an order's task groups. | authz_personas=[executor_org_operators] | () -> (list[PydanticObjectId])
47
+ * Retrieves task group IDs where the caller's provider org is the coordinator, executor, or both. | authz_personas=[coordinator_org_operators, executor_org_operators] | () -> (list[PydanticObjectId])
47
48
  *
48
49
  * @param {string} orderRef - Order ID, short ID, or off-chrt reference ID
50
+ * @param {Chrt.shipping.taskGroups.TaskGroupIdForProviderOperatorsV1Request} request
49
51
  * @param {TaskGroupId.RequestOptions} requestOptions - Request-specific configuration.
50
52
  *
51
53
  * @throws {@link Chrt.UnprocessableEntityError}
52
54
  *
53
55
  * @example
54
- * await client.shipping.taskGroups.taskGroupId.forExecutorOperatorsV1("order_ref")
56
+ * await client.shipping.taskGroups.taskGroupId.forProviderOperatorsV1("order_ref", {
57
+ * provider_role: "all"
58
+ * })
55
59
  */
56
- forExecutorOperatorsV1(orderRef: string, requestOptions?: TaskGroupId.RequestOptions): core.HttpResponsePromise<string[]>;
57
- private __forExecutorOperatorsV1;
60
+ forProviderOperatorsV1(orderRef: string, request?: Chrt.shipping.taskGroups.TaskGroupIdForProviderOperatorsV1Request, requestOptions?: TaskGroupId.RequestOptions): core.HttpResponsePromise<string[]>;
61
+ private __forProviderOperatorsV1;
58
62
  protected _getAuthorizationHeader(): Promise<string | undefined>;
59
63
  }
@@ -64,17 +64,17 @@ class TaskGroupId {
64
64
  * @throws {@link Chrt.UnprocessableEntityError}
65
65
  *
66
66
  * @example
67
- * await client.shipping.taskGroups.taskGroupId.forDriverForExecutorV1("order_ref")
67
+ * await client.shipping.taskGroups.taskGroupId.forDriverV1("order_ref")
68
68
  */
69
- forDriverForExecutorV1(orderRef, requestOptions) {
70
- return core.HttpResponsePromise.fromPromise(this.__forDriverForExecutorV1(orderRef, requestOptions));
69
+ forDriverV1(orderRef, requestOptions) {
70
+ return core.HttpResponsePromise.fromPromise(this.__forDriverV1(orderRef, requestOptions));
71
71
  }
72
- __forDriverForExecutorV1(orderRef, requestOptions) {
72
+ __forDriverV1(orderRef, requestOptions) {
73
73
  return __awaiter(this, void 0, void 0, function* () {
74
74
  var _a, _b, _c, _d;
75
75
  let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
76
76
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
77
- 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, `shipping/task_groups/task_group_id/for_driver_for_executor/v1/${encodeURIComponent(orderRef)}`),
77
+ 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, `shipping/task_groups/task_group_id/for_driver/v1/${encodeURIComponent(orderRef)}`),
78
78
  method: "GET",
79
79
  headers: _headers,
80
80
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
@@ -105,7 +105,7 @@ class TaskGroupId {
105
105
  rawResponse: _response.rawResponse,
106
106
  });
107
107
  case "timeout":
108
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /shipping/task_groups/task_group_id/for_driver_for_executor/v1/{order_ref}.");
108
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /shipping/task_groups/task_group_id/for_driver/v1/{order_ref}.");
109
109
  case "unknown":
110
110
  throw new errors.ChrtError({
111
111
  message: _response.error.errorMessage,
@@ -115,28 +115,36 @@ class TaskGroupId {
115
115
  });
116
116
  }
117
117
  /**
118
- * Retrieves the task group IDs where the caller's provider org is the executor for an order's task groups. | authz_personas=[executor_org_operators] | () -> (list[PydanticObjectId])
118
+ * Retrieves task group IDs where the caller's provider org is the coordinator, executor, or both. | authz_personas=[coordinator_org_operators, executor_org_operators] | () -> (list[PydanticObjectId])
119
119
  *
120
120
  * @param {string} orderRef - Order ID, short ID, or off-chrt reference ID
121
+ * @param {Chrt.shipping.taskGroups.TaskGroupIdForProviderOperatorsV1Request} request
121
122
  * @param {TaskGroupId.RequestOptions} requestOptions - Request-specific configuration.
122
123
  *
123
124
  * @throws {@link Chrt.UnprocessableEntityError}
124
125
  *
125
126
  * @example
126
- * await client.shipping.taskGroups.taskGroupId.forExecutorOperatorsV1("order_ref")
127
+ * await client.shipping.taskGroups.taskGroupId.forProviderOperatorsV1("order_ref", {
128
+ * provider_role: "all"
129
+ * })
127
130
  */
128
- forExecutorOperatorsV1(orderRef, requestOptions) {
129
- return core.HttpResponsePromise.fromPromise(this.__forExecutorOperatorsV1(orderRef, requestOptions));
131
+ forProviderOperatorsV1(orderRef, request = {}, requestOptions) {
132
+ return core.HttpResponsePromise.fromPromise(this.__forProviderOperatorsV1(orderRef, request, requestOptions));
130
133
  }
131
- __forExecutorOperatorsV1(orderRef, requestOptions) {
132
- return __awaiter(this, void 0, void 0, function* () {
134
+ __forProviderOperatorsV1(orderRef_1) {
135
+ return __awaiter(this, arguments, void 0, function* (orderRef, request = {}, requestOptions) {
133
136
  var _a, _b, _c, _d;
137
+ const { provider_role: providerRole } = request;
138
+ const _queryParams = {};
139
+ if (providerRole !== undefined) {
140
+ _queryParams["provider_role"] = providerRole;
141
+ }
134
142
  let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
135
143
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
136
- 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, `shipping/task_groups/task_group_id/for_executor_operators/v1/${encodeURIComponent(orderRef)}`),
144
+ 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, `shipping/task_groups/task_group_id/for_provider_operators/v1/${encodeURIComponent(orderRef)}`),
137
145
  method: "GET",
138
146
  headers: _headers,
139
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
147
+ queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
140
148
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
141
149
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
142
150
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -164,7 +172,7 @@ class TaskGroupId {
164
172
  rawResponse: _response.rawResponse,
165
173
  });
166
174
  case "timeout":
167
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /shipping/task_groups/task_group_id/for_executor_operators/v1/{order_ref}.");
175
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /shipping/task_groups/task_group_id/for_provider_operators/v1/{order_ref}.");
168
176
  case "unknown":
169
177
  throw new errors.ChrtError({
170
178
  message: _response.error.errorMessage,
@@ -1 +1,2 @@
1
1
  export {};
2
+ export * from "./requests/index.js";
@@ -1,2 +1,17 @@
1
1
  "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
2
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./requests/index.js"), exports);
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../../../../../../../../index.js";
5
+ /**
6
+ * @example
7
+ * {
8
+ * provider_role: "all"
9
+ * }
10
+ */
11
+ export interface TaskGroupIdForProviderOperatorsV1Request {
12
+ provider_role?: Chrt.TaskGroupProviderRoleFilterEnum | null;
13
+ }
@@ -0,0 +1 @@
1
+ export { type TaskGroupIdForProviderOperatorsV1Request } from "./TaskGroupIdForProviderOperatorsV1Request.js";
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });