@chrt-inc/typescript-sdk 1.762.0 → 1.787.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 (273) hide show
  1. package/README.md +13 -10
  2. package/dist/cjs/Client.d.ts +3 -0
  3. package/dist/cjs/Client.js +31 -26
  4. package/dist/cjs/api/resources/billing/resources/lineItemGroups/client/Client.d.ts +35 -0
  5. package/dist/cjs/api/resources/billing/resources/lineItemGroups/client/Client.js +133 -0
  6. package/dist/cjs/api/resources/billing/resources/lineItemGroups/client/requests/SharedTaskGroupMileageCreateForProviderPayDriverClientReq.d.ts +23 -0
  7. package/dist/cjs/api/resources/billing/resources/lineItemGroups/client/requests/SharedTaskGroupMileageCreateForProviderPayProviderClientReq.d.ts +24 -0
  8. package/dist/cjs/api/resources/billing/resources/lineItemGroups/client/requests/index.d.ts +2 -0
  9. package/dist/cjs/api/resources/flights/client/Client.d.ts +52 -0
  10. package/dist/cjs/api/resources/flights/client/Client.js +135 -0
  11. package/dist/cjs/api/resources/flights/client/index.d.ts +2 -0
  12. package/dist/cjs/api/resources/flights/client/index.js +17 -0
  13. package/dist/cjs/api/resources/flights/client/requests/FlightConnectionsSearchReq.d.ts +45 -0
  14. package/dist/cjs/api/resources/flights/client/requests/index.d.ts +1 -0
  15. package/dist/cjs/api/resources/flights/client/requests/index.js +2 -0
  16. package/dist/cjs/api/resources/flights/index.d.ts +1 -0
  17. package/dist/cjs/api/resources/flights/index.js +17 -0
  18. package/dist/cjs/api/resources/index.d.ts +2 -0
  19. package/dist/cjs/api/resources/index.js +3 -1
  20. package/dist/cjs/api/resources/notifications/resources/adHoc/client/Client.d.ts +36 -2
  21. package/dist/cjs/api/resources/notifications/resources/adHoc/client/Client.js +138 -1
  22. package/dist/cjs/api/resources/notifications/resources/adHoc/client/requests/AdHocListBySessionIdV1Request.d.ts +14 -0
  23. package/dist/cjs/api/resources/notifications/resources/adHoc/client/requests/index.d.ts +1 -1
  24. package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/Client.d.ts +47 -10
  25. package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/Client.js +149 -17
  26. package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/requests/OperationsTaskListClientCreate1.d.ts +1 -1
  27. package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/requests/OperationsTaskListReorderEntries1.d.ts +1 -1
  28. package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/requests/index.d.ts +0 -1
  29. package/dist/cjs/api/resources/operations/resources/operationsTasks/client/Client.d.ts +19 -1
  30. package/dist/cjs/api/resources/operations/resources/operationsTasks/client/Client.js +71 -1
  31. package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/OperationsTasksBulkUpdateDeadlinesReq1.d.ts +16 -0
  32. package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/index.d.ts +1 -0
  33. package/dist/cjs/api/resources/shipping/resources/drivers/client/Client.d.ts +4 -4
  34. package/dist/cjs/api/resources/shipping/resources/drivers/client/Client.js +11 -3
  35. package/dist/cjs/api/resources/shipping/resources/drivers/client/requests/DriversListV1Request.d.ts +2 -0
  36. package/dist/cjs/api/resources/shipping/resources/orderDrafts/client/requests/OrdersNewDraftReq.d.ts +4 -0
  37. package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/OrderDraftAddTaskGroupReq.d.ts +1 -0
  38. package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateClientCreate1.d.ts +1 -0
  39. package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateClientUpdate1.d.ts +1 -0
  40. package/dist/cjs/api/resources/tracking/resources/sessions/client/Client.d.ts +30 -25
  41. package/dist/cjs/api/resources/tracking/resources/sessions/client/Client.js +55 -52
  42. package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/SessionClientCreate1.d.ts +3 -2
  43. package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/SessionClientUpdate1.d.ts +4 -0
  44. package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/SessionSetFlightInfoReq1.d.ts +24 -0
  45. package/dist/{esm/api/resources/tracking/resources/sessions/client/requests/SessionsSyncFlightStatusV1Request.d.mts → cjs/api/resources/tracking/resources/sessions/client/requests/SessionsFlightLegsV1Request.d.ts} +1 -1
  46. package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/SessionsFlightTrackV1Request.d.ts +14 -0
  47. package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/SessionsListV1Request.d.ts +0 -3
  48. package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/index.d.ts +3 -3
  49. package/dist/cjs/api/types/AlertCallback.d.ts +7 -0
  50. package/dist/cjs/api/types/AlertCallback.js +5 -0
  51. package/dist/cjs/api/types/AlertEvent.d.ts +6 -0
  52. package/dist/cjs/api/types/AlertEvent.js +5 -0
  53. package/dist/cjs/api/types/AlertMessage.d.ts +10 -0
  54. package/dist/cjs/api/types/AlertMessage.js +5 -0
  55. package/dist/cjs/api/types/AlertNameValue.d.ts +7 -0
  56. package/dist/cjs/api/types/AlertNameValue.js +5 -0
  57. package/dist/cjs/api/types/AlertNameValues.d.ts +7 -0
  58. package/dist/cjs/api/types/AlertNameValues.js +5 -0
  59. package/dist/cjs/api/types/AlertRuleEnvelope.d.ts +7 -0
  60. package/dist/cjs/api/types/AlertRuleEnvelope.js +5 -0
  61. package/dist/cjs/api/types/CiriumAirportResources.d.ts +9 -0
  62. package/dist/cjs/api/types/CiriumAirportResources.js +5 -0
  63. package/dist/cjs/api/types/CiriumDate.d.ts +6 -0
  64. package/dist/cjs/api/types/CiriumDate.js +5 -0
  65. package/dist/cjs/api/types/{FlightAwareWebhookResponse.d.ts → CiriumFlightAlertsWebhookResponse.d.ts} +1 -1
  66. package/dist/cjs/api/types/CiriumFlightAlertsWebhookResponse.js +5 -0
  67. package/dist/cjs/api/types/CiriumFlightStatus.d.ts +15 -0
  68. package/dist/cjs/api/types/CiriumFlightStatus.js +5 -0
  69. package/dist/cjs/api/types/CiriumOperationalTimes.d.ts +17 -0
  70. package/dist/cjs/api/types/CiriumOperationalTimes.js +5 -0
  71. package/dist/cjs/api/types/ConnectionSearchByEnum.d.ts +8 -0
  72. package/dist/cjs/api/types/ConnectionSearchByEnum.js +10 -0
  73. package/dist/cjs/api/types/ConnectionSearchPreferenceEnum.d.ts +8 -0
  74. package/dist/cjs/api/types/ConnectionSearchPreferenceEnum.js +10 -0
  75. package/dist/cjs/api/types/Driver1.d.ts +0 -1
  76. package/dist/cjs/api/types/DriverListRes.d.ts +1 -1
  77. package/dist/cjs/api/types/DriverWithActiveTaskGroupIds1.d.ts +35 -0
  78. package/dist/cjs/api/types/DriverWithActiveTaskGroupIds1.js +5 -0
  79. package/dist/cjs/api/types/FlightConnection.d.ts +10 -0
  80. package/dist/cjs/api/types/FlightConnection.js +5 -0
  81. package/dist/cjs/api/types/FlightConnectionLeg.d.ts +22 -0
  82. package/dist/cjs/api/types/FlightConnectionLeg.js +5 -0
  83. package/dist/cjs/api/types/FlightConnectionsSearchRes.d.ts +7 -0
  84. package/dist/cjs/api/types/FlightConnectionsSearchRes.js +5 -0
  85. package/dist/cjs/api/types/FlightLeg1.d.ts +3 -2
  86. package/dist/cjs/api/types/LineItem1.d.ts +1 -0
  87. package/dist/cjs/api/types/NotificationEventsForAdHocEnum.d.ts +4 -3
  88. package/dist/cjs/api/types/NotificationEventsForAdHocEnum.js +1 -0
  89. package/dist/cjs/api/types/NotificationEventsForOrgsEnum.d.ts +2 -1
  90. package/dist/cjs/api/types/NotificationEventsForOrgsEnum.js +1 -0
  91. package/dist/cjs/api/types/NotificationEventsForUsersEnum.d.ts +2 -1
  92. package/dist/cjs/api/types/NotificationEventsForUsersEnum.js +1 -0
  93. package/dist/cjs/api/types/NotificationIntentAdHoc1.d.ts +2 -1
  94. package/dist/cjs/api/{resources/notifications/resources/adHoc/client/requests → types}/NotificationIntentAdHocClientCreate1.d.ts +1 -8
  95. package/dist/cjs/api/types/NotificationIntentAdHocClientCreate1.js +5 -0
  96. package/dist/cjs/api/types/OnboardCourierTaskActionEnum1.d.ts +1 -11
  97. package/dist/cjs/api/types/OnboardCourierTaskActionEnum1.js +0 -10
  98. package/dist/cjs/api/types/OperationsTaskDeadlineUpdate1.d.ts +7 -0
  99. package/dist/cjs/api/types/OperationsTaskDeadlineUpdate1.js +5 -0
  100. package/dist/cjs/api/types/OperationsTaskListEntry1.d.ts +4 -12
  101. package/dist/cjs/api/types/OperationsTaskListEntryClientCreate1.d.ts +15 -0
  102. package/dist/cjs/api/types/OperationsTaskListEntryClientCreate1.js +5 -0
  103. package/dist/cjs/api/types/OperationsTaskListRemoveFromCaseRes1.d.ts +1 -1
  104. package/dist/cjs/api/types/OperationsTaskStatusEnum.d.ts +2 -1
  105. package/dist/cjs/api/types/OperationsTaskStatusEnum.js +1 -0
  106. package/dist/cjs/api/types/OperationsTasksBulkUpdateDeadlinesRes1.d.ts +7 -0
  107. package/dist/cjs/api/types/OperationsTasksBulkUpdateDeadlinesRes1.js +5 -0
  108. package/dist/cjs/api/types/OrderBuilderReq.d.ts +2 -0
  109. package/dist/cjs/api/types/OrderDraftValidationRequirements.d.ts +1 -0
  110. package/dist/cjs/api/types/OrderManifestValidationRequirements.d.ts +1 -0
  111. package/dist/cjs/api/types/OrderTemplate1.d.ts +1 -0
  112. package/dist/cjs/api/types/OrderTemplateCore1.d.ts +1 -0
  113. package/dist/cjs/api/types/OrgMembersAndDrivers.d.ts +1 -1
  114. package/dist/cjs/api/types/Session1.d.ts +6 -6
  115. package/dist/cjs/api/types/TaskGroup1.d.ts +1 -0
  116. package/dist/cjs/api/types/TrackingSessionDestinationGeofenceEnteredWebhookPayload.d.ts +10 -0
  117. package/dist/cjs/api/types/TrackingSessionDestinationGeofenceEnteredWebhookPayload.js +5 -0
  118. package/dist/cjs/api/types/index.d.ts +22 -4
  119. package/dist/cjs/api/types/index.js +22 -4
  120. package/dist/cjs/version.d.ts +1 -1
  121. package/dist/cjs/version.js +1 -1
  122. package/dist/esm/Client.d.mts +3 -0
  123. package/dist/esm/Client.mjs +7 -2
  124. package/dist/esm/api/resources/billing/resources/lineItemGroups/client/Client.d.mts +35 -0
  125. package/dist/esm/api/resources/billing/resources/lineItemGroups/client/Client.mjs +133 -0
  126. package/dist/esm/api/resources/billing/resources/lineItemGroups/client/requests/SharedTaskGroupMileageCreateForProviderPayDriverClientReq.d.mts +23 -0
  127. package/dist/esm/api/resources/billing/resources/lineItemGroups/client/requests/SharedTaskGroupMileageCreateForProviderPayProviderClientReq.d.mts +24 -0
  128. package/dist/esm/api/resources/billing/resources/lineItemGroups/client/requests/index.d.mts +2 -0
  129. package/dist/esm/api/resources/flights/client/Client.d.mts +52 -0
  130. package/dist/esm/api/resources/flights/client/Client.mjs +98 -0
  131. package/dist/esm/api/resources/flights/client/index.d.mts +2 -0
  132. package/dist/esm/api/resources/flights/client/index.mjs +1 -0
  133. package/dist/esm/api/resources/flights/client/requests/FlightConnectionsSearchReq.d.mts +45 -0
  134. package/dist/esm/api/resources/flights/client/requests/index.d.mts +1 -0
  135. package/dist/esm/api/resources/flights/client/requests/index.mjs +1 -0
  136. package/dist/esm/api/resources/flights/index.d.mts +1 -0
  137. package/dist/esm/api/resources/flights/index.mjs +1 -0
  138. package/dist/esm/api/resources/index.d.mts +2 -0
  139. package/dist/esm/api/resources/index.mjs +2 -0
  140. package/dist/esm/api/resources/notifications/resources/adHoc/client/Client.d.mts +36 -2
  141. package/dist/esm/api/resources/notifications/resources/adHoc/client/Client.mjs +138 -1
  142. package/dist/esm/api/resources/notifications/resources/adHoc/client/requests/AdHocListBySessionIdV1Request.d.mts +14 -0
  143. package/dist/esm/api/resources/notifications/resources/adHoc/client/requests/index.d.mts +1 -1
  144. package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/Client.d.mts +47 -10
  145. package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/Client.mjs +149 -17
  146. package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/requests/OperationsTaskListClientCreate1.d.mts +1 -1
  147. package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/requests/OperationsTaskListReorderEntries1.d.mts +1 -1
  148. package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/requests/index.d.mts +0 -1
  149. package/dist/esm/api/resources/operations/resources/operationsTasks/client/Client.d.mts +19 -1
  150. package/dist/esm/api/resources/operations/resources/operationsTasks/client/Client.mjs +71 -1
  151. package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/OperationsTasksBulkUpdateDeadlinesReq1.d.mts +16 -0
  152. package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/index.d.mts +1 -0
  153. package/dist/esm/api/resources/shipping/resources/drivers/client/Client.d.mts +4 -4
  154. package/dist/esm/api/resources/shipping/resources/drivers/client/Client.mjs +11 -3
  155. package/dist/esm/api/resources/shipping/resources/drivers/client/requests/DriversListV1Request.d.mts +2 -0
  156. package/dist/esm/api/resources/shipping/resources/orderDrafts/client/requests/OrdersNewDraftReq.d.mts +4 -0
  157. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/OrderDraftAddTaskGroupReq.d.mts +1 -0
  158. package/dist/esm/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateClientCreate1.d.mts +1 -0
  159. package/dist/esm/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateClientUpdate1.d.mts +1 -0
  160. package/dist/esm/api/resources/tracking/resources/sessions/client/Client.d.mts +30 -25
  161. package/dist/esm/api/resources/tracking/resources/sessions/client/Client.mjs +55 -52
  162. package/dist/esm/api/resources/tracking/resources/sessions/client/requests/SessionClientCreate1.d.mts +3 -2
  163. package/dist/esm/api/resources/tracking/resources/sessions/client/requests/SessionClientUpdate1.d.mts +4 -0
  164. package/dist/esm/api/resources/tracking/resources/sessions/client/requests/SessionSetFlightInfoReq1.d.mts +24 -0
  165. package/dist/{cjs/api/resources/tracking/resources/sessions/client/requests/SessionsSyncFlightStatusV1Request.d.ts → esm/api/resources/tracking/resources/sessions/client/requests/SessionsFlightLegsV1Request.d.mts} +1 -1
  166. package/dist/esm/api/resources/tracking/resources/sessions/client/requests/SessionsFlightTrackV1Request.d.mts +14 -0
  167. package/dist/esm/api/resources/tracking/resources/sessions/client/requests/SessionsListV1Request.d.mts +0 -3
  168. package/dist/esm/api/resources/tracking/resources/sessions/client/requests/index.d.mts +3 -3
  169. package/dist/esm/api/types/AlertCallback.d.mts +7 -0
  170. package/dist/esm/api/types/AlertCallback.mjs +4 -0
  171. package/dist/esm/api/types/AlertEvent.d.mts +6 -0
  172. package/dist/esm/api/types/AlertEvent.mjs +4 -0
  173. package/dist/esm/api/types/AlertMessage.d.mts +10 -0
  174. package/dist/esm/api/types/AlertMessage.mjs +4 -0
  175. package/dist/esm/api/types/AlertNameValue.d.mts +7 -0
  176. package/dist/esm/api/types/AlertNameValue.mjs +4 -0
  177. package/dist/esm/api/types/AlertNameValues.d.mts +7 -0
  178. package/dist/esm/api/types/AlertNameValues.mjs +4 -0
  179. package/dist/esm/api/types/AlertRuleEnvelope.d.mts +7 -0
  180. package/dist/esm/api/types/AlertRuleEnvelope.mjs +4 -0
  181. package/dist/esm/api/types/CiriumAirportResources.d.mts +9 -0
  182. package/dist/esm/api/types/CiriumAirportResources.mjs +4 -0
  183. package/dist/esm/api/types/CiriumDate.d.mts +6 -0
  184. package/dist/esm/api/types/CiriumDate.mjs +4 -0
  185. package/dist/esm/api/types/{FlightAwareWebhookResponse.d.mts → CiriumFlightAlertsWebhookResponse.d.mts} +1 -1
  186. package/dist/esm/api/types/CiriumFlightAlertsWebhookResponse.mjs +4 -0
  187. package/dist/esm/api/types/CiriumFlightStatus.d.mts +15 -0
  188. package/dist/esm/api/types/CiriumFlightStatus.mjs +4 -0
  189. package/dist/esm/api/types/CiriumOperationalTimes.d.mts +17 -0
  190. package/dist/esm/api/types/CiriumOperationalTimes.mjs +4 -0
  191. package/dist/esm/api/types/ConnectionSearchByEnum.d.mts +8 -0
  192. package/dist/esm/api/types/ConnectionSearchByEnum.mjs +7 -0
  193. package/dist/esm/api/types/ConnectionSearchPreferenceEnum.d.mts +8 -0
  194. package/dist/esm/api/types/ConnectionSearchPreferenceEnum.mjs +7 -0
  195. package/dist/esm/api/types/Driver1.d.mts +0 -1
  196. package/dist/esm/api/types/DriverListRes.d.mts +1 -1
  197. package/dist/esm/api/types/DriverWithActiveTaskGroupIds1.d.mts +35 -0
  198. package/dist/esm/api/types/DriverWithActiveTaskGroupIds1.mjs +4 -0
  199. package/dist/esm/api/types/FlightConnection.d.mts +10 -0
  200. package/dist/esm/api/types/FlightConnection.mjs +4 -0
  201. package/dist/esm/api/types/FlightConnectionLeg.d.mts +22 -0
  202. package/dist/esm/api/types/FlightConnectionLeg.mjs +4 -0
  203. package/dist/esm/api/types/FlightConnectionsSearchRes.d.mts +7 -0
  204. package/dist/esm/api/types/FlightConnectionsSearchRes.mjs +4 -0
  205. package/dist/esm/api/types/FlightLeg1.d.mts +3 -2
  206. package/dist/esm/api/types/LineItem1.d.mts +1 -0
  207. package/dist/esm/api/types/NotificationEventsForAdHocEnum.d.mts +4 -3
  208. package/dist/esm/api/types/NotificationEventsForAdHocEnum.mjs +1 -0
  209. package/dist/esm/api/types/NotificationEventsForOrgsEnum.d.mts +2 -1
  210. package/dist/esm/api/types/NotificationEventsForOrgsEnum.mjs +1 -0
  211. package/dist/esm/api/types/NotificationEventsForUsersEnum.d.mts +2 -1
  212. package/dist/esm/api/types/NotificationEventsForUsersEnum.mjs +1 -0
  213. package/dist/esm/api/types/NotificationIntentAdHoc1.d.mts +2 -1
  214. package/dist/esm/api/{resources/notifications/resources/adHoc/client/requests → types}/NotificationIntentAdHocClientCreate1.d.mts +1 -8
  215. package/dist/esm/api/types/NotificationIntentAdHocClientCreate1.mjs +4 -0
  216. package/dist/esm/api/types/OnboardCourierTaskActionEnum1.d.mts +1 -11
  217. package/dist/esm/api/types/OnboardCourierTaskActionEnum1.mjs +0 -10
  218. package/dist/esm/api/types/OperationsTaskDeadlineUpdate1.d.mts +7 -0
  219. package/dist/esm/api/types/OperationsTaskDeadlineUpdate1.mjs +4 -0
  220. package/dist/esm/api/types/OperationsTaskListEntry1.d.mts +4 -12
  221. package/dist/esm/api/types/OperationsTaskListEntryClientCreate1.d.mts +15 -0
  222. package/dist/esm/api/types/OperationsTaskListEntryClientCreate1.mjs +4 -0
  223. package/dist/esm/api/types/OperationsTaskListRemoveFromCaseRes1.d.mts +1 -1
  224. package/dist/esm/api/types/OperationsTaskStatusEnum.d.mts +2 -1
  225. package/dist/esm/api/types/OperationsTaskStatusEnum.mjs +1 -0
  226. package/dist/esm/api/types/OperationsTasksBulkUpdateDeadlinesRes1.d.mts +7 -0
  227. package/dist/esm/api/types/OperationsTasksBulkUpdateDeadlinesRes1.mjs +4 -0
  228. package/dist/esm/api/types/OrderBuilderReq.d.mts +2 -0
  229. package/dist/esm/api/types/OrderDraftValidationRequirements.d.mts +1 -0
  230. package/dist/esm/api/types/OrderManifestValidationRequirements.d.mts +1 -0
  231. package/dist/esm/api/types/OrderTemplate1.d.mts +1 -0
  232. package/dist/esm/api/types/OrderTemplateCore1.d.mts +1 -0
  233. package/dist/esm/api/types/OrgMembersAndDrivers.d.mts +1 -1
  234. package/dist/esm/api/types/Session1.d.mts +6 -6
  235. package/dist/esm/api/types/TaskGroup1.d.mts +1 -0
  236. package/dist/esm/api/types/TrackingSessionDestinationGeofenceEnteredWebhookPayload.d.mts +10 -0
  237. package/dist/esm/api/types/TrackingSessionDestinationGeofenceEnteredWebhookPayload.mjs +4 -0
  238. package/dist/esm/api/types/index.d.mts +22 -4
  239. package/dist/esm/api/types/index.mjs +22 -4
  240. package/dist/esm/version.d.mts +1 -1
  241. package/dist/esm/version.mjs +1 -1
  242. package/package.json +1 -1
  243. package/reference.md +639 -51
  244. package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/requests/OperationsTaskListSetEntries1.d.ts +0 -11
  245. package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/SessionAddFlightReq1.d.ts +0 -16
  246. package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/SessionRemoveFlightReq1.d.ts +0 -16
  247. package/dist/cjs/api/types/FlightAwareAlertFlight.d.ts +0 -16
  248. package/dist/cjs/api/types/FlightAwareAlertPayload.d.ts +0 -17
  249. package/dist/cjs/api/types/FlightStatusEnum.d.ts +0 -14
  250. package/dist/cjs/api/types/FlightStatusEnum.js +0 -16
  251. package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/requests/OperationsTaskListSetEntries1.d.mts +0 -11
  252. package/dist/esm/api/resources/tracking/resources/sessions/client/requests/SessionAddFlightReq1.d.mts +0 -16
  253. package/dist/esm/api/resources/tracking/resources/sessions/client/requests/SessionRemoveFlightReq1.d.mts +0 -16
  254. package/dist/esm/api/types/FlightAwareAlertFlight.d.mts +0 -16
  255. package/dist/esm/api/types/FlightAwareAlertPayload.d.mts +0 -17
  256. package/dist/esm/api/types/FlightStatusEnum.d.mts +0 -14
  257. package/dist/esm/api/types/FlightStatusEnum.mjs +0 -13
  258. /package/dist/cjs/api/resources/{notifications/resources/adHoc/client/requests/NotificationIntentAdHocClientCreate1.js → billing/resources/lineItemGroups/client/requests/SharedTaskGroupMileageCreateForProviderPayDriverClientReq.js} +0 -0
  259. /package/dist/cjs/api/resources/{operations/resources/operationsTaskLists/client/requests/OperationsTaskListSetEntries1.js → billing/resources/lineItemGroups/client/requests/SharedTaskGroupMileageCreateForProviderPayProviderClientReq.js} +0 -0
  260. /package/dist/cjs/api/resources/{tracking/resources/sessions/client/requests/SessionAddFlightReq1.js → flights/client/requests/FlightConnectionsSearchReq.js} +0 -0
  261. /package/dist/cjs/api/resources/{tracking/resources/sessions/client/requests/SessionRemoveFlightReq1.js → notifications/resources/adHoc/client/requests/AdHocListBySessionIdV1Request.js} +0 -0
  262. /package/dist/cjs/api/resources/{tracking/resources/sessions/client/requests/SessionsSyncFlightStatusV1Request.js → operations/resources/operationsTasks/client/requests/OperationsTasksBulkUpdateDeadlinesReq1.js} +0 -0
  263. /package/dist/cjs/api/{types/FlightAwareAlertFlight.js → resources/tracking/resources/sessions/client/requests/SessionSetFlightInfoReq1.js} +0 -0
  264. /package/dist/cjs/api/{types/FlightAwareAlertPayload.js → resources/tracking/resources/sessions/client/requests/SessionsFlightLegsV1Request.js} +0 -0
  265. /package/dist/cjs/api/{types/FlightAwareWebhookResponse.js → resources/tracking/resources/sessions/client/requests/SessionsFlightTrackV1Request.js} +0 -0
  266. /package/dist/esm/api/resources/{notifications/resources/adHoc/client/requests/NotificationIntentAdHocClientCreate1.mjs → billing/resources/lineItemGroups/client/requests/SharedTaskGroupMileageCreateForProviderPayDriverClientReq.mjs} +0 -0
  267. /package/dist/esm/api/resources/{operations/resources/operationsTaskLists/client/requests/OperationsTaskListSetEntries1.mjs → billing/resources/lineItemGroups/client/requests/SharedTaskGroupMileageCreateForProviderPayProviderClientReq.mjs} +0 -0
  268. /package/dist/esm/api/resources/{tracking/resources/sessions/client/requests/SessionAddFlightReq1.mjs → flights/client/requests/FlightConnectionsSearchReq.mjs} +0 -0
  269. /package/dist/esm/api/resources/{tracking/resources/sessions/client/requests/SessionRemoveFlightReq1.mjs → notifications/resources/adHoc/client/requests/AdHocListBySessionIdV1Request.mjs} +0 -0
  270. /package/dist/esm/api/resources/{tracking/resources/sessions/client/requests/SessionsSyncFlightStatusV1Request.mjs → operations/resources/operationsTasks/client/requests/OperationsTasksBulkUpdateDeadlinesReq1.mjs} +0 -0
  271. /package/dist/esm/api/{types/FlightAwareAlertFlight.mjs → resources/tracking/resources/sessions/client/requests/SessionSetFlightInfoReq1.mjs} +0 -0
  272. /package/dist/esm/api/{types/FlightAwareAlertPayload.mjs → resources/tracking/resources/sessions/client/requests/SessionsFlightLegsV1Request.mjs} +0 -0
  273. /package/dist/esm/api/{types/FlightAwareWebhookResponse.mjs → resources/tracking/resources/sessions/client/requests/SessionsFlightTrackV1Request.mjs} +0 -0
@@ -87,7 +87,6 @@ class Sessions {
87
87
  * filter_device_id: "filter_device_id",
88
88
  * filter_off_chrt_reference_id: "filter_off_chrt_reference_id",
89
89
  * filter_flight_number: "filter_flight_number",
90
- * filter_fa_flight_id: "filter_fa_flight_id",
91
90
  * filter_flight_loaded_status: "filter_flight_loaded_status",
92
91
  * filter_has_last_seen: true,
93
92
  * filter_created_at_timestamp_gte: "2024-01-15T09:30:00Z",
@@ -106,7 +105,7 @@ class Sessions {
106
105
  __listV1() {
107
106
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
108
107
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
109
- const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, search, org_scope: orgScope, filter_terminated: filterTerminated, filter_public: filterPublic, filter_device_id: filterDeviceId, filter_off_chrt_reference_id: filterOffChrtReferenceId, filter_flight_number: filterFlightNumber, filter_fa_flight_id: filterFaFlightId, filter_flight_loaded_status: filterFlightLoadedStatus, filter_has_last_seen: filterHasLastSeen, filter_created_at_timestamp_gte: filterCreatedAtTimestampGte, filter_created_at_timestamp_lte: filterCreatedAtTimestampLte, filter_last_seen_at_timestamp_gte: filterLastSeenAtTimestampGte, filter_last_seen_at_timestamp_lte: filterLastSeenAtTimestampLte, filter_termination_scheduled_for_timestamp_gte: filterTerminationScheduledForTimestampGte, filter_termination_scheduled_for_timestamp_lte: filterTerminationScheduledForTimestampLte, filter_terminated_at_timestamp_gte: filterTerminatedAtTimestampGte, filter_terminated_at_timestamp_lte: filterTerminatedAtTimestampLte, } = request;
108
+ const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, search, org_scope: orgScope, filter_terminated: filterTerminated, filter_public: filterPublic, filter_device_id: filterDeviceId, filter_off_chrt_reference_id: filterOffChrtReferenceId, filter_flight_number: filterFlightNumber, filter_flight_loaded_status: filterFlightLoadedStatus, filter_has_last_seen: filterHasLastSeen, filter_created_at_timestamp_gte: filterCreatedAtTimestampGte, filter_created_at_timestamp_lte: filterCreatedAtTimestampLte, filter_last_seen_at_timestamp_gte: filterLastSeenAtTimestampGte, filter_last_seen_at_timestamp_lte: filterLastSeenAtTimestampLte, filter_termination_scheduled_for_timestamp_gte: filterTerminationScheduledForTimestampGte, filter_termination_scheduled_for_timestamp_lte: filterTerminationScheduledForTimestampLte, filter_terminated_at_timestamp_gte: filterTerminatedAtTimestampGte, filter_terminated_at_timestamp_lte: filterTerminatedAtTimestampLte, } = request;
110
109
  const _queryParams = {};
111
110
  if (sortBy !== undefined) {
112
111
  _queryParams["sort_by"] = sortBy;
@@ -141,9 +140,6 @@ class Sessions {
141
140
  if (filterFlightNumber !== undefined) {
142
141
  _queryParams["filter_flight_number"] = filterFlightNumber;
143
142
  }
144
- if (filterFaFlightId !== undefined) {
145
- _queryParams["filter_fa_flight_id"] = filterFaFlightId;
146
- }
147
143
  if (filterFlightLoadedStatus !== undefined) {
148
144
  _queryParams["filter_flight_loaded_status"] = filterFlightLoadedStatus;
149
145
  }
@@ -353,7 +349,7 @@ class Sessions {
353
349
  });
354
350
  }
355
351
  /**
356
- * Creates a new tracking session for a device and automatically starts recording data points. The caller must be the device owner or belong to an org the device is shared with. The device owner remains the session owner (org_id). The device's shared_with_org_ids are copied to the session. The device must not have an active session. Auto-termination is scheduled for ~1 week out at 8 PM PT. Prevent auto termination with `no_auto_termination=True` | auth: api_key | (SessionClientCreate1) -> (PydanticObjectId)
352
+ * Creates a new tracking session for a device and automatically starts recording data points. The caller must be the device owner or belong to an org the device is shared with. The device owner remains the session owner (org_id). The device's shared_with_org_ids are copied to the session. The device must not have an active session. Optionally seed a destination geofence (location + radius) to fire a destination geofence entered notification; attach flights afterwards via set_flight_info. Auto-termination is scheduled for ~1 week out at 8 PM PT. Prevent auto termination with `no_auto_termination=True` | auth: api_key | (SessionClientCreate1) -> (PydanticObjectId)
357
353
  *
358
354
  * @param {Chrt.tracking.SessionClientCreate1} request
359
355
  * @param {Sessions.RequestOptions} requestOptions - Request-specific configuration.
@@ -425,7 +421,7 @@ class Sessions {
425
421
  });
426
422
  }
427
423
  /**
428
- * Updates a session's metadata. | auth: api_key | (SessionClientUpdate1) -> (bool)
424
+ * Updates a session's mutable metadata (off_chrt_reference_id, comments, public, termination_scheduled_for_timestamp, destination_geofence_location, destination_geofence_radius_miles). Setting or replacing the destination geofence location resets the entered latch so it can fire again; clearing it (destination_geofence_location__set_to_None) also resets the latch. | auth: api_key | (SessionClientUpdate1) -> (bool)
429
425
  *
430
426
  * @param {Chrt.tracking.SessionClientUpdate1} request
431
427
  * @param {Sessions.RequestOptions} requestOptions - Request-specific configuration.
@@ -556,7 +552,7 @@ class Sessions {
556
552
  });
557
553
  }
558
554
  /**
559
- * Terminates a session. Moves device.active_session_id to device.past_session_ids. | auth: api_key | () -> (bool)
555
+ * Terminates a session. Moves device.active_session_id to device.past_session_ids and deactivates the device. | auth: api_key | () -> (bool)
560
556
  *
561
557
  * @param {Chrt.tracking.SessionsTerminateV1Request} request
562
558
  * @param {Sessions.RequestOptions} requestOptions - Request-specific configuration.
@@ -620,35 +616,33 @@ class Sessions {
620
616
  });
621
617
  }
622
618
  /**
623
- * Adds a flight number and FA flight IDs to an existing session. Creates or reuses a FlightAware alert. | auth: api_key | authz: min_org_role=operator | (SessionAddFlightReq1) -> (bool)
619
+ * Returns the session's flight legs in order, with Cirium-sourced status lazily resolved and refreshed on read. Access restricted to the caller's organization or shared organizations. | auth: api_key | authz: min_org_role=operator | () -> (list[FlightLeg1])
624
620
  *
625
- * @param {Chrt.tracking.SessionAddFlightReq1} request
621
+ * @param {Chrt.tracking.SessionsFlightLegsV1Request} request
626
622
  * @param {Sessions.RequestOptions} requestOptions - Request-specific configuration.
627
623
  *
628
624
  * @throws {@link Chrt.UnprocessableEntityError}
629
625
  *
630
626
  * @example
631
- * await client.tracking.sessions.addFlightV1({
632
- * session_id: "session_id",
633
- * flight_number: "flight_number",
634
- * fa_flight_ids: ["fa_flight_ids"]
627
+ * await client.tracking.sessions.flightLegsV1({
628
+ * session_id: "session_id"
635
629
  * })
636
630
  */
637
- addFlightV1(request, requestOptions) {
638
- return core.HttpResponsePromise.fromPromise(this.__addFlightV1(request, requestOptions));
631
+ flightLegsV1(request, requestOptions) {
632
+ return core.HttpResponsePromise.fromPromise(this.__flightLegsV1(request, requestOptions));
639
633
  }
640
- __addFlightV1(request, requestOptions) {
634
+ __flightLegsV1(request, requestOptions) {
641
635
  return __awaiter(this, void 0, void 0, function* () {
642
636
  var _a, _b, _c, _d;
637
+ const { session_id: sessionId } = request;
638
+ const _queryParams = {};
639
+ _queryParams["session_id"] = sessionId;
643
640
  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);
644
641
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
645
- 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, "tracking/sessions/add_flight/v1"),
646
- method: "POST",
642
+ 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, "tracking/sessions/flight_legs/v1"),
643
+ method: "GET",
647
644
  headers: _headers,
648
- contentType: "application/json",
649
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
650
- requestType: "json",
651
- body: request,
645
+ queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
652
646
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
653
647
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
654
648
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -676,7 +670,7 @@ class Sessions {
676
670
  rawResponse: _response.rawResponse,
677
671
  });
678
672
  case "timeout":
679
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /tracking/sessions/add_flight/v1.");
673
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /tracking/sessions/flight_legs/v1.");
680
674
  case "unknown":
681
675
  throw new errors.ChrtError({
682
676
  message: _response.error.errorMessage,
@@ -686,35 +680,35 @@ class Sessions {
686
680
  });
687
681
  }
688
682
  /**
689
- * Removes a flight number and FA flight IDs from a session. Runs the shared-aware FlightAware unsubscribe cycle before removing. | auth: api_key | authz: min_org_role=operator | (SessionRemoveFlightReq1) -> (bool)
683
+ * Returns the Cirium-sourced positional track for one of the session's flight legs the live breadcrumb trail plus the planned path (waypoints + legacy route) — cached on read. Access restricted to the caller's organization or shared organizations. | auth: api_key | authz: min_org_role=operator | () -> (FlightTrackRes)
690
684
  *
691
- * @param {Chrt.tracking.SessionRemoveFlightReq1} request
685
+ * @param {Chrt.tracking.SessionsFlightTrackV1Request} request
692
686
  * @param {Sessions.RequestOptions} requestOptions - Request-specific configuration.
693
687
  *
694
688
  * @throws {@link Chrt.UnprocessableEntityError}
695
689
  *
696
690
  * @example
697
- * await client.tracking.sessions.removeFlightV1({
691
+ * await client.tracking.sessions.flightTrackV1({
698
692
  * session_id: "session_id",
699
- * flight_number: "flight_number",
700
- * fa_flight_ids: ["fa_flight_ids"]
693
+ * flight_leg_id: "flight_leg_id"
701
694
  * })
702
695
  */
703
- removeFlightV1(request, requestOptions) {
704
- return core.HttpResponsePromise.fromPromise(this.__removeFlightV1(request, requestOptions));
696
+ flightTrackV1(request, requestOptions) {
697
+ return core.HttpResponsePromise.fromPromise(this.__flightTrackV1(request, requestOptions));
705
698
  }
706
- __removeFlightV1(request, requestOptions) {
699
+ __flightTrackV1(request, requestOptions) {
707
700
  return __awaiter(this, void 0, void 0, function* () {
708
701
  var _a, _b, _c, _d;
702
+ const { session_id: sessionId, flight_leg_id: flightLegId } = request;
703
+ const _queryParams = {};
704
+ _queryParams["session_id"] = sessionId;
705
+ _queryParams["flight_leg_id"] = flightLegId;
709
706
  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);
710
707
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
711
- 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, "tracking/sessions/remove_flight/v1"),
712
- method: "POST",
708
+ 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, "tracking/sessions/flight_track/v1"),
709
+ method: "GET",
713
710
  headers: _headers,
714
- contentType: "application/json",
715
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
716
- requestType: "json",
717
- body: request,
711
+ queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
718
712
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
719
713
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
720
714
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -742,7 +736,7 @@ class Sessions {
742
736
  rawResponse: _response.rawResponse,
743
737
  });
744
738
  case "timeout":
745
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /tracking/sessions/remove_flight/v1.");
739
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /tracking/sessions/flight_track/v1.");
746
740
  case "unknown":
747
741
  throw new errors.ChrtError({
748
742
  message: _response.error.errorMessage,
@@ -752,33 +746,42 @@ class Sessions {
752
746
  });
753
747
  }
754
748
  /**
755
- * Fetches current OOOI timestamps from FlightAware for each fa_flight_id on the session and updates flight_status_by_fa_flight_id. Use when the webhook may have left state out of sync. | auth: api_key | authz: min_org_role=operator | () -> (bool)
749
+ * Replaces the session's followed flights: deletes the existing session-owned FlightLeg documents and creates new ones from the supplied flight details. Each leg's Cirium flightId and status resolve lazily on read. Pass an empty list to clear all flights. | auth: api_key | authz: min_org_role=operator | (SessionSetFlightInfoReq1) -> (bool)
756
750
  *
757
- * @param {Chrt.tracking.SessionsSyncFlightStatusV1Request} request
751
+ * @param {Chrt.tracking.SessionSetFlightInfoReq1} request
758
752
  * @param {Sessions.RequestOptions} requestOptions - Request-specific configuration.
759
753
  *
760
754
  * @throws {@link Chrt.UnprocessableEntityError}
761
755
  *
762
756
  * @example
763
- * await client.tracking.sessions.syncFlightStatusV1({
764
- * session_id: "session_id"
757
+ * await client.tracking.sessions.setFlightInfoV1({
758
+ * session_id: "session_id",
759
+ * flight_legs: [{
760
+ * schema_version: 1,
761
+ * flight_number: "flight_number",
762
+ * provenance: "manual",
763
+ * origin_iata: "origin_iata",
764
+ * destination_iata: "destination_iata",
765
+ * scheduled_departure_utc: "2024-01-15T09:30:00Z",
766
+ * carrier_iata: "carrier_iata"
767
+ * }]
765
768
  * })
766
769
  */
767
- syncFlightStatusV1(request, requestOptions) {
768
- return core.HttpResponsePromise.fromPromise(this.__syncFlightStatusV1(request, requestOptions));
770
+ setFlightInfoV1(request, requestOptions) {
771
+ return core.HttpResponsePromise.fromPromise(this.__setFlightInfoV1(request, requestOptions));
769
772
  }
770
- __syncFlightStatusV1(request, requestOptions) {
773
+ __setFlightInfoV1(request, requestOptions) {
771
774
  return __awaiter(this, void 0, void 0, function* () {
772
775
  var _a, _b, _c, _d;
773
- const { session_id: sessionId } = request;
774
- const _queryParams = {};
775
- _queryParams["session_id"] = sessionId;
776
776
  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);
777
777
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
778
- 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, "tracking/sessions/sync_flight_status/v1"),
778
+ 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, "tracking/sessions/set_flight_info/v1"),
779
779
  method: "POST",
780
780
  headers: _headers,
781
- queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
781
+ contentType: "application/json",
782
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
783
+ requestType: "json",
784
+ body: request,
782
785
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
783
786
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
784
787
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -806,7 +809,7 @@ class Sessions {
806
809
  rawResponse: _response.rawResponse,
807
810
  });
808
811
  case "timeout":
809
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /tracking/sessions/sync_flight_status/v1.");
812
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /tracking/sessions/set_flight_info/v1.");
810
813
  case "unknown":
811
814
  throw new errors.ChrtError({
812
815
  message: _response.error.errorMessage,
@@ -1,6 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ import * as Chrt from "../../../../../../index.js";
4
5
  /**
5
6
  * @example
6
7
  * {
@@ -19,6 +20,6 @@ export interface SessionClientCreate1 {
19
20
  public?: boolean;
20
21
  off_chrt_shipper_org_id?: string | null;
21
22
  termination_scheduled_for_timestamp?: string | null;
22
- flight_numbers?: string[];
23
- fa_flight_ids?: string[];
23
+ destination_geofence_location?: Chrt.LocationFeature | null;
24
+ destination_geofence_radius_miles?: number;
24
25
  }
@@ -1,6 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ import * as Chrt from "../../../../../../index.js";
4
5
  /**
5
6
  * @example
6
7
  * {
@@ -14,7 +15,10 @@ export interface SessionClientUpdate1 {
14
15
  comments?: string | null;
15
16
  public?: boolean | null;
16
17
  termination_scheduled_for_timestamp?: string | null;
18
+ destination_geofence_location?: Chrt.LocationFeature | null;
19
+ destination_geofence_radius_miles?: number | null;
17
20
  off_chrt_reference_id__set_to_None?: boolean;
18
21
  comments__set_to_None?: boolean;
19
22
  termination_scheduled_for_timestamp__set_to_None?: boolean;
23
+ destination_geofence_location__set_to_None?: boolean;
20
24
  }
@@ -0,0 +1,24 @@
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
+ * session_id: "session_id",
9
+ * flight_legs: [{
10
+ * schema_version: 1,
11
+ * flight_number: "flight_number",
12
+ * provenance: "manual",
13
+ * origin_iata: "origin_iata",
14
+ * destination_iata: "destination_iata",
15
+ * scheduled_departure_utc: "2024-01-15T09:30:00Z",
16
+ * carrier_iata: "carrier_iata"
17
+ * }]
18
+ * }
19
+ */
20
+ export interface SessionSetFlightInfoReq1 {
21
+ session_id: string;
22
+ /** Ordered list of flights to follow for the session. Replaces any existing flight legs. Pass an empty list to clear all flight legs. */
23
+ flight_legs: Chrt.FlightLegClientCreate1[];
24
+ }
@@ -7,6 +7,6 @@
7
7
  * session_id: "session_id"
8
8
  * }
9
9
  */
10
- export interface SessionsSyncFlightStatusV1Request {
10
+ export interface SessionsFlightLegsV1Request {
11
11
  session_id: string;
12
12
  }
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {
7
+ * session_id: "session_id",
8
+ * flight_leg_id: "flight_leg_id"
9
+ * }
10
+ */
11
+ export interface SessionsFlightTrackV1Request {
12
+ session_id: string;
13
+ flight_leg_id: string;
14
+ }
@@ -16,7 +16,6 @@ import * as Chrt from "../../../../../../index.js";
16
16
  * filter_device_id: "filter_device_id",
17
17
  * filter_off_chrt_reference_id: "filter_off_chrt_reference_id",
18
18
  * filter_flight_number: "filter_flight_number",
19
- * filter_fa_flight_id: "filter_fa_flight_id",
20
19
  * filter_flight_loaded_status: "filter_flight_loaded_status",
21
20
  * filter_has_last_seen: true,
22
21
  * filter_created_at_timestamp_gte: "2024-01-15T09:30:00Z",
@@ -50,8 +49,6 @@ export interface SessionsListV1Request {
50
49
  filter_off_chrt_reference_id?: string | null;
51
50
  /** Filter by flight number (exact match) */
52
51
  filter_flight_number?: string | null;
53
- /** Filter by FlightAware flight ID (exact match) */
54
- filter_fa_flight_id?: string | null;
55
52
  /** Filter by flight loaded status (exact match) */
56
53
  filter_flight_loaded_status?: string | null;
57
54
  /** Filter by whether both last_seen_at_location and last_seen_at_timestamp are set */
@@ -5,6 +5,6 @@ export { type SessionClientCreate1 } from "./SessionClientCreate1.js";
5
5
  export { type SessionClientUpdate1 } from "./SessionClientUpdate1.js";
6
6
  export { type SessionsUpdateSharedOrgsReq1 } from "./SessionsUpdateSharedOrgsReq1.js";
7
7
  export { type SessionsTerminateV1Request } from "./SessionsTerminateV1Request.js";
8
- export { type SessionAddFlightReq1 } from "./SessionAddFlightReq1.js";
9
- export { type SessionRemoveFlightReq1 } from "./SessionRemoveFlightReq1.js";
10
- export { type SessionsSyncFlightStatusV1Request } from "./SessionsSyncFlightStatusV1Request.js";
8
+ export { type SessionsFlightLegsV1Request } from "./SessionsFlightLegsV1Request.js";
9
+ export { type SessionsFlightTrackV1Request } from "./SessionsFlightTrackV1Request.js";
10
+ export { type SessionSetFlightInfoReq1 } from "./SessionSetFlightInfoReq1.js";
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../index.js";
5
+ export interface AlertCallback {
6
+ alert?: Chrt.AlertMessage | null;
7
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface AlertEvent {
5
+ type?: string | null;
6
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../index.js";
5
+ export interface AlertMessage {
6
+ rule?: Chrt.AlertRuleEnvelope;
7
+ event?: Chrt.AlertEvent;
8
+ dateTimeRecorded?: string | null;
9
+ flightStatus?: Chrt.CiriumFlightStatus | null;
10
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface AlertNameValue {
5
+ name?: string | null;
6
+ value?: string | null;
7
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../index.js";
5
+ export interface AlertNameValues {
6
+ nameValue?: Chrt.AlertNameValue[];
7
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../index.js";
5
+ export interface AlertRuleEnvelope {
6
+ nameValues?: Chrt.AlertNameValues;
7
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface CiriumAirportResources {
5
+ departureTerminal?: string | null;
6
+ departureGate?: string | null;
7
+ arrivalTerminal?: string | null;
8
+ arrivalGate?: string | null;
9
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface CiriumDate {
5
+ dateUtc?: string | null;
6
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export interface FlightAwareWebhookResponse {
4
+ export interface CiriumFlightAlertsWebhookResponse {
5
5
  success: boolean;
6
6
  message: string;
7
7
  }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../index.js";
5
+ export interface CiriumFlightStatus {
6
+ flightId?: number | null;
7
+ status?: string | null;
8
+ carrierFsCode?: string | null;
9
+ flightNumber?: string | null;
10
+ departureAirportFsCode?: string | null;
11
+ arrivalAirportFsCode?: string | null;
12
+ departureDate?: Chrt.CiriumDate | null;
13
+ operationalTimes?: Chrt.CiriumOperationalTimes;
14
+ airportResources?: Chrt.CiriumAirportResources;
15
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,17 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../index.js";
5
+ /**
6
+ * OOOI-equivalent times. Gate = out/in, runway = off/on.
7
+ */
8
+ export interface CiriumOperationalTimes {
9
+ estimatedGateDeparture?: Chrt.CiriumDate | null;
10
+ actualGateDeparture?: Chrt.CiriumDate | null;
11
+ estimatedRunwayDeparture?: Chrt.CiriumDate | null;
12
+ actualRunwayDeparture?: Chrt.CiriumDate | null;
13
+ estimatedGateArrival?: Chrt.CiriumDate | null;
14
+ actualGateArrival?: Chrt.CiriumDate | null;
15
+ estimatedRunwayArrival?: Chrt.CiriumDate | null;
16
+ actualRunwayArrival?: Chrt.CiriumDate | null;
17
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export type ConnectionSearchByEnum = "departure_time" | "arrival_time";
5
+ export declare const ConnectionSearchByEnum: {
6
+ readonly DepartureTime: "departure_time";
7
+ readonly ArrivalTime: "arrival_time";
8
+ };
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.ConnectionSearchByEnum = void 0;
7
+ exports.ConnectionSearchByEnum = {
8
+ DepartureTime: "departure_time",
9
+ ArrivalTime: "arrival_time",
10
+ };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export type ConnectionSearchPreferenceEnum = "earliest" | "latest";
5
+ export declare const ConnectionSearchPreferenceEnum: {
6
+ readonly Earliest: "earliest";
7
+ readonly Latest: "latest";
8
+ };
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.ConnectionSearchPreferenceEnum = void 0;
7
+ exports.ConnectionSearchPreferenceEnum = {
8
+ Earliest: "earliest",
9
+ Latest: "latest",
10
+ };
@@ -21,7 +21,6 @@ export interface Driver1 {
21
21
  available_according_to_operators?: boolean;
22
22
  waiting?: boolean;
23
23
  auto_assign_enabled?: boolean;
24
- active_task_group_ids?: string[];
25
24
  last_seen_at_location?: Chrt.LocationFeature | null;
26
25
  last_seen_at_timestamp?: string | null;
27
26
  last_seen_at_location_city?: string | null;
@@ -3,6 +3,6 @@
3
3
  */
4
4
  import * as Chrt from "../index.js";
5
5
  export interface DriverListRes {
6
- items: Chrt.Driver1[];
6
+ items: Chrt.DriverWithActiveTaskGroupIds1[];
7
7
  total_count: number;
8
8
  }