@chrt-inc/typescript-sdk 1.530.1 → 1.539.1

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 (359) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/Client.js +2 -2
  3. package/dist/cjs/api/resources/billing/index.d.ts +1 -1
  4. package/dist/cjs/api/resources/billing/index.js +1 -1
  5. package/dist/cjs/api/resources/billing/resources/index.d.ts +1 -2
  6. package/dist/cjs/api/resources/billing/resources/index.js +2 -3
  7. package/dist/cjs/api/resources/billing/resources/lineItemGroups/client/Client.d.ts +1 -0
  8. package/dist/cjs/api/resources/billing/resources/lineItemGroups/client/Client.js +5 -1
  9. package/dist/cjs/api/resources/billing/resources/lineItemGroups/client/requests/LineItemGroupsListForCourierOrgV1Request.d.ts +3 -0
  10. package/dist/cjs/api/resources/billing/resources/rateSheets/client/Client.d.ts +3 -2
  11. package/dist/cjs/api/resources/billing/resources/rateSheets/client/Client.js +7 -3
  12. package/dist/cjs/api/resources/billing/resources/rateSheets/client/requests/RateSheetsListByOrgV1Request.d.ts +6 -2
  13. package/dist/cjs/api/resources/billing/resources/rateSheets/index.d.ts +0 -1
  14. package/dist/cjs/api/resources/billing/resources/rateSheets/index.js +0 -1
  15. package/dist/cjs/api/resources/billing/resources/statements/client/Client.d.ts +8 -2
  16. package/dist/cjs/api/resources/billing/resources/statements/client/Client.js +28 -4
  17. package/dist/cjs/api/resources/billing/resources/statements/client/requests/StatementsExpandedListV1Request.d.ts +10 -1
  18. package/dist/cjs/api/resources/billing/resources/statements/client/requests/StatementsListV1Request.d.ts +10 -1
  19. package/dist/cjs/api/resources/index.d.ts +2 -2
  20. package/dist/cjs/api/resources/index.js +3 -3
  21. package/dist/cjs/api/resources/notifications/resources/adHoc/client/Client.d.ts +7 -3
  22. package/dist/cjs/api/resources/notifications/resources/adHoc/client/Client.js +23 -11
  23. package/dist/cjs/api/resources/notifications/resources/adHoc/client/requests/AdHocListByOrderIdV1Request.d.ts +14 -0
  24. package/dist/cjs/api/resources/notifications/resources/adHoc/client/requests/index.d.ts +1 -0
  25. package/dist/cjs/api/resources/notifications/resources/groups/client/Client.d.ts +18 -6
  26. package/dist/cjs/api/resources/notifications/resources/groups/client/Client.js +71 -36
  27. package/dist/cjs/api/resources/notifications/resources/groups/client/requests/GroupsListByOrgV1Request.d.ts +14 -0
  28. package/dist/cjs/api/resources/notifications/resources/groups/client/requests/GroupsListByUserV1Request.d.ts +14 -0
  29. package/dist/cjs/api/resources/notifications/resources/groups/client/requests/index.d.ts +2 -0
  30. package/dist/cjs/api/resources/orgs/client/Client.d.ts +11 -3
  31. package/dist/cjs/api/resources/orgs/client/Client.js +51 -16
  32. package/dist/cjs/api/resources/orgs/client/requests/OrgsListMembersV1Request.d.ts +23 -0
  33. package/dist/cjs/api/resources/orgs/client/requests/index.d.ts +1 -0
  34. package/dist/cjs/api/resources/orgs/resources/connections/client/Client.d.ts +27 -9
  35. package/dist/cjs/api/resources/orgs/resources/connections/client/Client.js +105 -48
  36. package/dist/cjs/api/resources/orgs/resources/connections/client/index.d.ts +1 -0
  37. package/dist/cjs/api/resources/orgs/resources/connections/client/index.js +15 -0
  38. package/dist/cjs/api/resources/orgs/resources/connections/client/requests/ConnectionsListCouriersV1Request.d.ts +14 -0
  39. package/dist/cjs/api/resources/orgs/resources/connections/client/requests/ConnectionsListCouriersV1Request.js +5 -0
  40. package/dist/cjs/api/resources/orgs/resources/connections/client/requests/ConnectionsListForwardersV1Request.d.ts +14 -0
  41. package/dist/cjs/api/resources/orgs/resources/connections/client/requests/ConnectionsListForwardersV1Request.js +5 -0
  42. package/dist/cjs/api/resources/orgs/resources/connections/client/requests/ConnectionsListShippersV1Request.d.ts +14 -0
  43. package/dist/cjs/api/resources/orgs/resources/connections/client/requests/ConnectionsListShippersV1Request.js +5 -0
  44. package/dist/cjs/api/resources/orgs/resources/connections/client/requests/index.d.ts +3 -0
  45. package/dist/cjs/api/resources/orgs/resources/connections/client/requests/index.js +2 -0
  46. package/dist/cjs/api/resources/orgs/resources/index.d.ts +1 -0
  47. package/dist/cjs/api/resources/orgs/resources/index.js +1 -0
  48. package/dist/cjs/api/resources/orgs/resources/offChrtShipperOrg/client/Client.d.ts +9 -3
  49. package/dist/cjs/api/resources/orgs/resources/offChrtShipperOrg/client/Client.js +35 -16
  50. package/dist/cjs/api/resources/orgs/resources/offChrtShipperOrg/client/requests/OffChrtShipperOrgListV1Request.d.ts +14 -0
  51. package/dist/cjs/api/resources/orgs/resources/offChrtShipperOrg/client/requests/OffChrtShipperOrgListV1Request.js +5 -0
  52. package/dist/cjs/api/resources/orgs/resources/offChrtShipperOrg/client/requests/index.d.ts +1 -0
  53. package/dist/cjs/api/resources/shipping/index.d.ts +1 -1
  54. package/dist/cjs/api/resources/shipping/index.js +1 -1
  55. package/dist/cjs/api/resources/shipping/resources/drivers/client/Client.d.ts +14 -8
  56. package/dist/cjs/api/resources/shipping/resources/drivers/client/Client.js +58 -24
  57. package/dist/cjs/api/resources/shipping/resources/drivers/client/requests/DriversListOrgMembersAndDriversV1Request.d.ts +11 -4
  58. package/dist/cjs/api/resources/shipping/resources/drivers/client/requests/DriversListV1Request.d.ts +17 -6
  59. package/dist/cjs/api/resources/shipping/resources/index.d.ts +3 -3
  60. package/dist/cjs/api/resources/shipping/resources/index.js +4 -4
  61. package/dist/cjs/api/resources/shipping/resources/orderDrafts/client/requests/OrdersDraftUpdateReq.d.ts +3 -0
  62. package/dist/cjs/api/resources/shipping/resources/orderDrafts/index.d.ts +1 -1
  63. package/dist/cjs/api/resources/shipping/resources/orderDrafts/index.js +1 -1
  64. package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/expanded/client/Client.d.ts +1 -1
  65. package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/expanded/client/Client.js +1 -1
  66. package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/expanded/client/requests/ExpandedListV1Request.d.ts +3 -2
  67. package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/expanded/index.d.ts +0 -1
  68. package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/expanded/index.js +0 -1
  69. package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/index.d.ts +1 -2
  70. package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/index.js +2 -3
  71. package/dist/cjs/api/resources/shipping/resources/orders/index.d.ts +1 -1
  72. package/dist/cjs/api/resources/shipping/resources/orders/index.js +1 -1
  73. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.d.ts +22 -4
  74. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.js +82 -6
  75. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForForwarderOperatorsV1Request.d.ts +6 -2
  76. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForShipperOperatorsV1Request.d.ts +6 -2
  77. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedTypeaheadV1Request.d.ts +16 -0
  78. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedTypeaheadV1Request.js +5 -0
  79. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/index.d.ts +1 -0
  80. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/index.d.ts +0 -1
  81. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/index.js +0 -1
  82. package/dist/cjs/api/resources/shipping/resources/orders/resources/index.d.ts +0 -1
  83. package/dist/cjs/api/resources/shipping/resources/orders/resources/index.js +0 -1
  84. package/dist/cjs/api/resources/shipping/resources/taskGroups/index.d.ts +1 -1
  85. package/dist/cjs/api/resources/shipping/resources/taskGroups/index.js +1 -1
  86. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.d.ts +22 -4
  87. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.js +82 -6
  88. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForCourierDriverV1Request.d.ts +6 -2
  89. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForCourierOperatorsV1Request.d.ts +6 -2
  90. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedTypeaheadV1Request.d.ts +16 -0
  91. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedTypeaheadV1Request.js +5 -0
  92. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/index.d.ts +1 -0
  93. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/index.d.ts +0 -1
  94. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/index.js +0 -1
  95. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/index.d.ts +1 -2
  96. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/index.js +2 -3
  97. package/dist/cjs/api/resources/tracking/resources/devices/client/Client.d.ts +5 -20
  98. package/dist/cjs/api/resources/tracking/resources/devices/client/Client.js +15 -79
  99. package/dist/cjs/api/resources/tracking/resources/devices/client/requests/DevicesListV1Request.d.ts +10 -1
  100. package/dist/cjs/api/resources/tracking/resources/devices/client/requests/index.d.ts +0 -1
  101. package/dist/cjs/api/resources/tracking/resources/sessions/client/Client.d.ts +4 -21
  102. package/dist/cjs/api/resources/tracking/resources/sessions/client/Client.js +8 -80
  103. package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/SessionsListV1Request.d.ts +4 -1
  104. package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/index.d.ts +0 -1
  105. package/dist/cjs/api/resources/tracking/resources/timeseries/resources/sessionByDevice/client/Client.d.ts +2 -2
  106. package/dist/cjs/api/resources/tracking/resources/timeseries/resources/sessionByDevice/client/Client.js +2 -2
  107. package/dist/cjs/api/resources/users/resources/directoryEntries/client/Client.d.ts +12 -3
  108. package/dist/cjs/api/resources/users/resources/directoryEntries/client/Client.js +47 -16
  109. package/dist/cjs/api/resources/users/resources/directoryEntries/client/requests/DirectoryEntriesListV1Request.d.ts +24 -0
  110. package/dist/cjs/api/resources/users/resources/directoryEntries/client/requests/DirectoryEntriesListV1Request.js +5 -0
  111. package/dist/cjs/api/resources/users/resources/directoryEntries/client/requests/index.d.ts +1 -0
  112. package/dist/cjs/api/types/CourierConnectionListRes.d.ts +8 -0
  113. package/dist/cjs/api/types/CourierConnectionListRes.js +5 -0
  114. package/dist/cjs/api/types/DeviceLimitedForList1.d.ts +1 -0
  115. package/dist/cjs/api/types/DeviceListRes.d.ts +1 -1
  116. package/dist/cjs/api/types/DevicePausedTimeWindow1.d.ts +7 -0
  117. package/dist/cjs/api/types/DevicePausedTimeWindow1.js +5 -0
  118. package/dist/cjs/api/types/{DeviceSearchRes.d.ts → DirectoryEntryListRes.d.ts} +2 -2
  119. package/dist/cjs/api/types/DirectoryEntryListRes.js +5 -0
  120. package/dist/cjs/api/types/DirectoryEntrySortByEnum.d.ts +9 -0
  121. package/dist/cjs/api/types/DirectoryEntrySortByEnum.js +11 -0
  122. package/dist/cjs/api/types/{SessionSearchRes.d.ts → DriverListRes.d.ts} +2 -2
  123. package/dist/cjs/api/types/DriverListRes.js +5 -0
  124. package/dist/cjs/api/types/ForwarderConnectionListRes.d.ts +8 -0
  125. package/dist/cjs/api/types/ForwarderConnectionListRes.js +5 -0
  126. package/dist/cjs/api/types/LineItemGroupListRes.d.ts +1 -1
  127. package/dist/cjs/api/types/NotificationAdHocListRes.d.ts +8 -0
  128. package/dist/cjs/api/types/NotificationAdHocListRes.js +5 -0
  129. package/dist/cjs/api/types/NotificationGroupListRes.d.ts +8 -0
  130. package/dist/cjs/api/types/NotificationGroupListRes.js +5 -0
  131. package/dist/cjs/api/types/NotificationGroupUserListRes.d.ts +8 -0
  132. package/dist/cjs/api/types/NotificationGroupUserListRes.js +5 -0
  133. package/dist/cjs/api/types/OffChrtShipperOrgListRes.d.ts +8 -0
  134. package/dist/cjs/api/types/OffChrtShipperOrgListRes.js +5 -0
  135. package/dist/cjs/api/types/OrderDraftExpandedListRes.d.ts +1 -1
  136. package/dist/cjs/api/types/OrdersExpandedListRes.d.ts +1 -1
  137. package/dist/cjs/api/types/OrgMemberListRes.d.ts +8 -0
  138. package/dist/cjs/api/types/OrgMemberListRes.js +5 -0
  139. package/dist/cjs/api/types/OrgMemberSortByEnum.d.ts +8 -0
  140. package/dist/cjs/api/types/OrgMemberSortByEnum.js +10 -0
  141. package/dist/cjs/api/types/OrgMembersAndDriversListRes.d.ts +8 -0
  142. package/dist/cjs/api/types/OrgMembersAndDriversListRes.js +5 -0
  143. package/dist/cjs/api/types/RateSheetListResponse.d.ts +1 -1
  144. package/dist/cjs/api/types/SessionListRes.d.ts +1 -1
  145. package/dist/cjs/api/types/ShipperConnectionListRes.d.ts +8 -0
  146. package/dist/cjs/api/types/ShipperConnectionListRes.js +5 -0
  147. package/dist/cjs/api/types/StatementsExpandedListRes.d.ts +1 -1
  148. package/dist/cjs/api/types/StatementsListRes.d.ts +1 -1
  149. package/dist/cjs/api/types/TaskGroupExpandedListRes.d.ts +1 -1
  150. package/dist/cjs/api/types/index.d.ts +14 -2
  151. package/dist/cjs/api/types/index.js +14 -2
  152. package/dist/cjs/version.d.ts +1 -1
  153. package/dist/cjs/version.js +1 -1
  154. package/dist/esm/Client.mjs +2 -2
  155. package/dist/esm/api/resources/billing/index.d.mts +1 -1
  156. package/dist/esm/api/resources/billing/index.mjs +1 -1
  157. package/dist/esm/api/resources/billing/resources/index.d.mts +1 -2
  158. package/dist/esm/api/resources/billing/resources/index.mjs +1 -2
  159. package/dist/esm/api/resources/billing/resources/lineItemGroups/client/Client.d.mts +1 -0
  160. package/dist/esm/api/resources/billing/resources/lineItemGroups/client/Client.mjs +5 -1
  161. package/dist/esm/api/resources/billing/resources/lineItemGroups/client/requests/LineItemGroupsListForCourierOrgV1Request.d.mts +3 -0
  162. package/dist/esm/api/resources/billing/resources/rateSheets/client/Client.d.mts +3 -2
  163. package/dist/esm/api/resources/billing/resources/rateSheets/client/Client.mjs +7 -3
  164. package/dist/esm/api/resources/billing/resources/rateSheets/client/requests/RateSheetsListByOrgV1Request.d.mts +6 -2
  165. package/dist/esm/api/resources/billing/resources/rateSheets/index.d.mts +0 -1
  166. package/dist/esm/api/resources/billing/resources/rateSheets/index.mjs +0 -1
  167. package/dist/esm/api/resources/billing/resources/statements/client/Client.d.mts +8 -2
  168. package/dist/esm/api/resources/billing/resources/statements/client/Client.mjs +28 -4
  169. package/dist/esm/api/resources/billing/resources/statements/client/requests/StatementsExpandedListV1Request.d.mts +10 -1
  170. package/dist/esm/api/resources/billing/resources/statements/client/requests/StatementsListV1Request.d.mts +10 -1
  171. package/dist/esm/api/resources/index.d.mts +2 -2
  172. package/dist/esm/api/resources/index.mjs +2 -2
  173. package/dist/esm/api/resources/notifications/resources/adHoc/client/Client.d.mts +7 -3
  174. package/dist/esm/api/resources/notifications/resources/adHoc/client/Client.mjs +23 -11
  175. package/dist/esm/api/resources/notifications/resources/adHoc/client/requests/AdHocListByOrderIdV1Request.d.mts +14 -0
  176. package/dist/esm/api/resources/notifications/resources/adHoc/client/requests/index.d.mts +1 -0
  177. package/dist/esm/api/resources/notifications/resources/groups/client/Client.d.mts +18 -6
  178. package/dist/esm/api/resources/notifications/resources/groups/client/Client.mjs +71 -36
  179. package/dist/esm/api/resources/notifications/resources/groups/client/requests/GroupsListByOrgV1Request.d.mts +14 -0
  180. package/dist/esm/api/resources/notifications/resources/groups/client/requests/GroupsListByUserV1Request.d.mts +14 -0
  181. package/dist/esm/api/resources/notifications/resources/groups/client/requests/index.d.mts +2 -0
  182. package/dist/esm/api/resources/orgs/client/Client.d.mts +11 -3
  183. package/dist/esm/api/resources/orgs/client/Client.mjs +51 -16
  184. package/dist/esm/api/resources/orgs/client/requests/OrgsListMembersV1Request.d.mts +23 -0
  185. package/dist/esm/api/resources/orgs/client/requests/index.d.mts +1 -0
  186. package/dist/esm/api/resources/orgs/resources/connections/client/Client.d.mts +27 -9
  187. package/dist/esm/api/resources/orgs/resources/connections/client/Client.mjs +105 -48
  188. package/dist/esm/api/resources/orgs/resources/connections/client/index.d.mts +1 -0
  189. package/dist/esm/api/resources/orgs/resources/connections/client/index.mjs +1 -1
  190. package/dist/esm/api/resources/orgs/resources/connections/client/requests/ConnectionsListCouriersV1Request.d.mts +14 -0
  191. package/dist/esm/api/resources/orgs/resources/connections/client/requests/ConnectionsListCouriersV1Request.mjs +4 -0
  192. package/dist/esm/api/resources/orgs/resources/connections/client/requests/ConnectionsListForwardersV1Request.d.mts +14 -0
  193. package/dist/esm/api/resources/orgs/resources/connections/client/requests/ConnectionsListForwardersV1Request.mjs +4 -0
  194. package/dist/esm/api/resources/orgs/resources/connections/client/requests/ConnectionsListShippersV1Request.d.mts +14 -0
  195. package/dist/esm/api/resources/orgs/resources/connections/client/requests/ConnectionsListShippersV1Request.mjs +4 -0
  196. package/dist/esm/api/resources/orgs/resources/connections/client/requests/index.d.mts +3 -0
  197. package/dist/esm/api/resources/orgs/resources/connections/client/requests/index.mjs +1 -0
  198. package/dist/esm/api/resources/orgs/resources/index.d.mts +1 -0
  199. package/dist/esm/api/resources/orgs/resources/index.mjs +1 -0
  200. package/dist/esm/api/resources/orgs/resources/offChrtShipperOrg/client/Client.d.mts +9 -3
  201. package/dist/esm/api/resources/orgs/resources/offChrtShipperOrg/client/Client.mjs +35 -16
  202. package/dist/esm/api/resources/orgs/resources/offChrtShipperOrg/client/requests/OffChrtShipperOrgListV1Request.d.mts +14 -0
  203. package/dist/esm/api/resources/orgs/resources/offChrtShipperOrg/client/requests/OffChrtShipperOrgListV1Request.mjs +4 -0
  204. package/dist/esm/api/resources/orgs/resources/offChrtShipperOrg/client/requests/index.d.mts +1 -0
  205. package/dist/esm/api/resources/shipping/index.d.mts +1 -1
  206. package/dist/esm/api/resources/shipping/index.mjs +1 -1
  207. package/dist/esm/api/resources/shipping/resources/drivers/client/Client.d.mts +14 -8
  208. package/dist/esm/api/resources/shipping/resources/drivers/client/Client.mjs +58 -24
  209. package/dist/esm/api/resources/shipping/resources/drivers/client/requests/DriversListOrgMembersAndDriversV1Request.d.mts +11 -4
  210. package/dist/esm/api/resources/shipping/resources/drivers/client/requests/DriversListV1Request.d.mts +17 -6
  211. package/dist/esm/api/resources/shipping/resources/index.d.mts +3 -3
  212. package/dist/esm/api/resources/shipping/resources/index.mjs +3 -3
  213. package/dist/esm/api/resources/shipping/resources/orderDrafts/client/requests/OrdersDraftUpdateReq.d.mts +3 -0
  214. package/dist/esm/api/resources/shipping/resources/orderDrafts/index.d.mts +1 -1
  215. package/dist/esm/api/resources/shipping/resources/orderDrafts/index.mjs +1 -1
  216. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/expanded/client/Client.d.mts +1 -1
  217. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/expanded/client/Client.mjs +1 -1
  218. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/expanded/client/requests/ExpandedListV1Request.d.mts +3 -2
  219. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/expanded/index.d.mts +0 -1
  220. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/expanded/index.mjs +0 -1
  221. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/index.d.mts +1 -2
  222. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/index.mjs +1 -2
  223. package/dist/esm/api/resources/shipping/resources/orders/index.d.mts +1 -1
  224. package/dist/esm/api/resources/shipping/resources/orders/index.mjs +1 -1
  225. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.d.mts +22 -4
  226. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.mjs +82 -6
  227. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForForwarderOperatorsV1Request.d.mts +6 -2
  228. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForShipperOperatorsV1Request.d.mts +6 -2
  229. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedTypeaheadV1Request.d.mts +16 -0
  230. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedTypeaheadV1Request.mjs +4 -0
  231. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/index.d.mts +1 -0
  232. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/index.d.mts +0 -1
  233. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/index.mjs +0 -1
  234. package/dist/esm/api/resources/shipping/resources/orders/resources/index.d.mts +0 -1
  235. package/dist/esm/api/resources/shipping/resources/orders/resources/index.mjs +0 -1
  236. package/dist/esm/api/resources/shipping/resources/taskGroups/index.d.mts +1 -1
  237. package/dist/esm/api/resources/shipping/resources/taskGroups/index.mjs +1 -1
  238. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.d.mts +22 -4
  239. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.mjs +82 -6
  240. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForCourierDriverV1Request.d.mts +6 -2
  241. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForCourierOperatorsV1Request.d.mts +6 -2
  242. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedTypeaheadV1Request.d.mts +16 -0
  243. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedTypeaheadV1Request.mjs +4 -0
  244. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/index.d.mts +1 -0
  245. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/index.d.mts +0 -1
  246. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/index.mjs +0 -1
  247. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/index.d.mts +1 -2
  248. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/index.mjs +1 -2
  249. package/dist/esm/api/resources/tracking/resources/devices/client/Client.d.mts +5 -20
  250. package/dist/esm/api/resources/tracking/resources/devices/client/Client.mjs +15 -79
  251. package/dist/esm/api/resources/tracking/resources/devices/client/requests/DevicesListV1Request.d.mts +10 -1
  252. package/dist/esm/api/resources/tracking/resources/devices/client/requests/index.d.mts +0 -1
  253. package/dist/esm/api/resources/tracking/resources/sessions/client/Client.d.mts +4 -21
  254. package/dist/esm/api/resources/tracking/resources/sessions/client/Client.mjs +8 -80
  255. package/dist/esm/api/resources/tracking/resources/sessions/client/requests/SessionsListV1Request.d.mts +4 -1
  256. package/dist/esm/api/resources/tracking/resources/sessions/client/requests/index.d.mts +0 -1
  257. package/dist/esm/api/resources/tracking/resources/timeseries/resources/sessionByDevice/client/Client.d.mts +2 -2
  258. package/dist/esm/api/resources/tracking/resources/timeseries/resources/sessionByDevice/client/Client.mjs +2 -2
  259. package/dist/esm/api/resources/users/resources/directoryEntries/client/Client.d.mts +12 -3
  260. package/dist/esm/api/resources/users/resources/directoryEntries/client/Client.mjs +47 -16
  261. package/dist/esm/api/resources/users/resources/directoryEntries/client/requests/DirectoryEntriesListV1Request.d.mts +24 -0
  262. package/dist/esm/api/resources/users/resources/directoryEntries/client/requests/DirectoryEntriesListV1Request.mjs +4 -0
  263. package/dist/esm/api/resources/users/resources/directoryEntries/client/requests/index.d.mts +1 -0
  264. package/dist/esm/api/types/CourierConnectionListRes.d.mts +8 -0
  265. package/dist/esm/api/types/CourierConnectionListRes.mjs +4 -0
  266. package/dist/esm/api/types/DeviceLimitedForList1.d.mts +1 -0
  267. package/dist/esm/api/types/DeviceListRes.d.mts +1 -1
  268. package/dist/esm/api/types/DevicePausedTimeWindow1.d.mts +7 -0
  269. package/dist/esm/api/types/DevicePausedTimeWindow1.mjs +4 -0
  270. package/dist/esm/api/types/{DeviceSearchRes.d.mts → DirectoryEntryListRes.d.mts} +2 -2
  271. package/dist/esm/api/types/DirectoryEntryListRes.mjs +4 -0
  272. package/dist/esm/api/types/DirectoryEntrySortByEnum.d.mts +9 -0
  273. package/dist/esm/api/types/DirectoryEntrySortByEnum.mjs +8 -0
  274. package/dist/esm/api/types/{SessionSearchRes.d.mts → DriverListRes.d.mts} +2 -2
  275. package/dist/esm/api/types/DriverListRes.mjs +4 -0
  276. package/dist/esm/api/types/ForwarderConnectionListRes.d.mts +8 -0
  277. package/dist/esm/api/types/ForwarderConnectionListRes.mjs +4 -0
  278. package/dist/esm/api/types/LineItemGroupListRes.d.mts +1 -1
  279. package/dist/esm/api/types/NotificationAdHocListRes.d.mts +8 -0
  280. package/dist/esm/api/types/NotificationAdHocListRes.mjs +4 -0
  281. package/dist/esm/api/types/NotificationGroupListRes.d.mts +8 -0
  282. package/dist/esm/api/types/NotificationGroupListRes.mjs +4 -0
  283. package/dist/esm/api/types/NotificationGroupUserListRes.d.mts +8 -0
  284. package/dist/esm/api/types/NotificationGroupUserListRes.mjs +4 -0
  285. package/dist/esm/api/types/OffChrtShipperOrgListRes.d.mts +8 -0
  286. package/dist/esm/api/types/OffChrtShipperOrgListRes.mjs +4 -0
  287. package/dist/esm/api/types/OrderDraftExpandedListRes.d.mts +1 -1
  288. package/dist/esm/api/types/OrdersExpandedListRes.d.mts +1 -1
  289. package/dist/esm/api/types/OrgMemberListRes.d.mts +8 -0
  290. package/dist/esm/api/types/OrgMemberListRes.mjs +4 -0
  291. package/dist/esm/api/types/OrgMemberSortByEnum.d.mts +8 -0
  292. package/dist/esm/api/types/OrgMemberSortByEnum.mjs +7 -0
  293. package/dist/esm/api/types/OrgMembersAndDriversListRes.d.mts +8 -0
  294. package/dist/esm/api/types/OrgMembersAndDriversListRes.mjs +4 -0
  295. package/dist/esm/api/types/RateSheetListResponse.d.mts +1 -1
  296. package/dist/esm/api/types/SessionListRes.d.mts +1 -1
  297. package/dist/esm/api/types/ShipperConnectionListRes.d.mts +8 -0
  298. package/dist/esm/api/types/ShipperConnectionListRes.mjs +4 -0
  299. package/dist/esm/api/types/StatementsExpandedListRes.d.mts +1 -1
  300. package/dist/esm/api/types/StatementsListRes.d.mts +1 -1
  301. package/dist/esm/api/types/TaskGroupExpandedListRes.d.mts +1 -1
  302. package/dist/esm/api/types/index.d.mts +14 -2
  303. package/dist/esm/api/types/index.mjs +14 -2
  304. package/dist/esm/version.d.mts +1 -1
  305. package/dist/esm/version.mjs +1 -1
  306. package/package.json +1 -1
  307. package/reference.md +307 -185
  308. package/dist/cjs/api/resources/billing/resources/rateSheets/types/RateSheetsListByOrgV1RequestSortOrder.d.ts +0 -8
  309. package/dist/cjs/api/resources/billing/resources/rateSheets/types/RateSheetsListByOrgV1RequestSortOrder.js +0 -10
  310. package/dist/cjs/api/resources/billing/resources/rateSheets/types/index.d.ts +0 -1
  311. package/dist/cjs/api/resources/billing/resources/rateSheets/types/index.js +0 -17
  312. package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/expanded/types/ExpandedListV1RequestSortOrder.d.ts +0 -8
  313. package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/expanded/types/ExpandedListV1RequestSortOrder.js +0 -10
  314. package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/expanded/types/index.d.ts +0 -1
  315. package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/expanded/types/index.js +0 -17
  316. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/types/ExpandedListForForwarderOperatorsV1RequestSortOrder.d.ts +0 -8
  317. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/types/ExpandedListForForwarderOperatorsV1RequestSortOrder.js +0 -10
  318. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/types/ExpandedListForShipperOperatorsV1RequestSortOrder.d.ts +0 -8
  319. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/types/ExpandedListForShipperOperatorsV1RequestSortOrder.js +0 -10
  320. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/types/index.d.ts +0 -2
  321. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/types/index.js +0 -18
  322. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/types/ExpandedListForCourierDriverV1RequestSortOrder.d.ts +0 -8
  323. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/types/ExpandedListForCourierDriverV1RequestSortOrder.js +0 -10
  324. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/types/ExpandedListForCourierOperatorsV1RequestSortOrder.d.ts +0 -8
  325. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/types/ExpandedListForCourierOperatorsV1RequestSortOrder.js +0 -10
  326. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/types/index.d.ts +0 -2
  327. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/types/index.js +0 -18
  328. package/dist/cjs/api/resources/tracking/resources/devices/client/requests/DevicesSearchV1Request.d.ts +0 -21
  329. package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/SessionsSearchV1Request.d.ts +0 -21
  330. package/dist/esm/api/resources/billing/resources/rateSheets/types/RateSheetsListByOrgV1RequestSortOrder.d.mts +0 -8
  331. package/dist/esm/api/resources/billing/resources/rateSheets/types/RateSheetsListByOrgV1RequestSortOrder.mjs +0 -7
  332. package/dist/esm/api/resources/billing/resources/rateSheets/types/index.d.mts +0 -1
  333. package/dist/esm/api/resources/billing/resources/rateSheets/types/index.mjs +0 -1
  334. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/expanded/types/ExpandedListV1RequestSortOrder.d.mts +0 -8
  335. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/expanded/types/ExpandedListV1RequestSortOrder.mjs +0 -7
  336. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/expanded/types/index.d.mts +0 -1
  337. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/expanded/types/index.mjs +0 -1
  338. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/types/ExpandedListForForwarderOperatorsV1RequestSortOrder.d.mts +0 -8
  339. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/types/ExpandedListForForwarderOperatorsV1RequestSortOrder.mjs +0 -7
  340. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/types/ExpandedListForShipperOperatorsV1RequestSortOrder.d.mts +0 -8
  341. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/types/ExpandedListForShipperOperatorsV1RequestSortOrder.mjs +0 -7
  342. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/types/index.d.mts +0 -2
  343. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/types/index.mjs +0 -2
  344. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/types/ExpandedListForCourierDriverV1RequestSortOrder.d.mts +0 -8
  345. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/types/ExpandedListForCourierDriverV1RequestSortOrder.mjs +0 -7
  346. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/types/ExpandedListForCourierOperatorsV1RequestSortOrder.d.mts +0 -8
  347. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/types/ExpandedListForCourierOperatorsV1RequestSortOrder.mjs +0 -7
  348. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/types/index.d.mts +0 -2
  349. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/types/index.mjs +0 -2
  350. package/dist/esm/api/resources/tracking/resources/devices/client/requests/DevicesSearchV1Request.d.mts +0 -21
  351. package/dist/esm/api/resources/tracking/resources/sessions/client/requests/SessionsSearchV1Request.d.mts +0 -21
  352. /package/dist/cjs/api/resources/{tracking/resources/devices/client/requests/DevicesSearchV1Request.js → notifications/resources/adHoc/client/requests/AdHocListByOrderIdV1Request.js} +0 -0
  353. /package/dist/cjs/api/resources/{tracking/resources/sessions/client/requests/SessionsSearchV1Request.js → notifications/resources/groups/client/requests/GroupsListByOrgV1Request.js} +0 -0
  354. /package/dist/cjs/api/{types/DeviceSearchRes.js → resources/notifications/resources/groups/client/requests/GroupsListByUserV1Request.js} +0 -0
  355. /package/dist/cjs/api/{types/SessionSearchRes.js → resources/orgs/client/requests/OrgsListMembersV1Request.js} +0 -0
  356. /package/dist/esm/api/resources/{tracking/resources/devices/client/requests/DevicesSearchV1Request.mjs → notifications/resources/adHoc/client/requests/AdHocListByOrderIdV1Request.mjs} +0 -0
  357. /package/dist/esm/api/resources/{tracking/resources/sessions/client/requests/SessionsSearchV1Request.mjs → notifications/resources/groups/client/requests/GroupsListByOrgV1Request.mjs} +0 -0
  358. /package/dist/esm/api/{types/DeviceSearchRes.mjs → resources/notifications/resources/groups/client/requests/GroupsListByUserV1Request.mjs} +0 -0
  359. /package/dist/esm/api/{types/SessionSearchRes.mjs → resources/orgs/client/requests/OrgsListMembersV1Request.mjs} +0 -0
@@ -6,9 +6,10 @@ import * as Chrt from "../../../../../../../../index.js";
6
6
  * @example
7
7
  * {
8
8
  * sort_by: "draft_started_at_timestamp",
9
- * sort_order: "ascending",
9
+ * sort_order: "asc",
10
10
  * page: 1,
11
11
  * page_size: 1,
12
+ * search: "search",
12
13
  * filter_draft_started_at_timestamp_lte: "2024-01-15T09:30:00Z",
13
14
  * filter_draft_started_at_timestamp_gte: "2024-01-15T09:30:00Z",
14
15
  * filter_staged_at_timestamp_lte: "2024-01-15T09:30:00Z",
@@ -26,9 +27,12 @@ import * as Chrt from "../../../../../../../../index.js";
26
27
  */
27
28
  export interface ExpandedListForCourierOperatorsV1Request {
28
29
  sort_by?: Chrt.TaskGroupSortByEnum | null;
29
- sort_order?: Chrt.shipping.taskGroups.ExpandedListForCourierOperatorsV1RequestSortOrder | null;
30
+ /** Sort order (asc or desc) */
31
+ sort_order?: Chrt.SortOrderEnum | null;
30
32
  page?: number | null;
31
33
  page_size?: number | null;
34
+ /** Full-text search query (searches order_short_id, flight_number) */
35
+ search?: string | null;
32
36
  filter_status?: (Chrt.TaskGroupStatusEnum1 | null) | (Chrt.TaskGroupStatusEnum1 | null)[];
33
37
  filter_draft_started_at_timestamp_lte?: string | null;
34
38
  filter_draft_started_at_timestamp_gte?: string | null;
@@ -0,0 +1,16 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {
7
+ * query: "query",
8
+ * limit: 1
9
+ * }
10
+ */
11
+ export interface ExpandedTypeaheadV1Request {
12
+ /** Typeahead search query */
13
+ query: string;
14
+ /** Max results */
15
+ limit?: number | null;
16
+ }
@@ -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,2 +1,3 @@
1
1
  export { type ExpandedListForCourierOperatorsV1Request } from "./ExpandedListForCourierOperatorsV1Request.js";
2
2
  export { type ExpandedListForCourierDriverV1Request } from "./ExpandedListForCourierDriverV1Request.js";
3
+ export { type ExpandedTypeaheadV1Request } from "./ExpandedTypeaheadV1Request.js";
@@ -1,2 +1 @@
1
- export * from "./types/index.js";
2
1
  export * from "./client/index.js";
@@ -14,5 +14,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./types/index.js"), exports);
18
17
  __exportStar(require("./client/index.js"), exports);
@@ -1,6 +1,5 @@
1
- export * as expanded from "./expanded/index.js";
2
- export * from "./expanded/types/index.js";
3
1
  export * as taskGroupId from "./taskGroupId/index.js";
4
2
  export * as s3Object from "./s3Object/index.js";
3
+ export * as expanded from "./expanded/index.js";
5
4
  export * from "./s3Object/client/requests/index.js";
6
5
  export * from "./expanded/client/requests/index.js";
@@ -36,10 +36,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
36
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.s3Object = exports.taskGroupId = exports.expanded = void 0;
40
- exports.expanded = __importStar(require("./expanded/index.js"));
41
- __exportStar(require("./expanded/types/index.js"), exports);
39
+ exports.expanded = exports.s3Object = exports.taskGroupId = void 0;
42
40
  exports.taskGroupId = __importStar(require("./taskGroupId/index.js"));
43
41
  exports.s3Object = __importStar(require("./s3Object/index.js"));
42
+ exports.expanded = __importStar(require("./expanded/index.js"));
44
43
  __exportStar(require("./s3Object/client/requests/index.js"), exports);
45
44
  __exportStar(require("./expanded/client/requests/index.js"), exports);
@@ -77,7 +77,7 @@ export declare class Devices {
77
77
  archiveV1(request: Chrt.tracking.DevicesArchiveV1Request, requestOptions?: Devices.RequestOptions): core.HttpResponsePromise<boolean>;
78
78
  private __archiveV1;
79
79
  /**
80
- * Pauses a device. Cargo-by-device and session-by-device data points are marked as paused and excluded from data point queries. | () -> (bool)
80
+ * Pauses a device and opens a new pause time window. | () -> (bool)
81
81
  *
82
82
  * @param {Chrt.tracking.DevicesPauseV1Request} request
83
83
  * @param {Devices.RequestOptions} requestOptions - Request-specific configuration.
@@ -92,7 +92,7 @@ export declare class Devices {
92
92
  pauseV1(request: Chrt.tracking.DevicesPauseV1Request, requestOptions?: Devices.RequestOptions): core.HttpResponsePromise<boolean>;
93
93
  private __pauseV1;
94
94
  /**
95
- * Unpauses a device. | () -> (bool)
95
+ * Unpauses a device. Closes the open pause time window. | () -> (bool)
96
96
  *
97
97
  * @param {Chrt.tracking.DevicesUnpauseV1Request} request
98
98
  * @param {Devices.RequestOptions} requestOptions - Request-specific configuration.
@@ -150,6 +150,7 @@ export declare class Devices {
150
150
  * sort_order: "asc",
151
151
  * page: 1,
152
152
  * page_size: 1,
153
+ * search: "search",
153
154
  * org_scope: "owned",
154
155
  * filter_off_chrt_reference_id: "filter_off_chrt_reference_id",
155
156
  * filter_type: "D15N-tag",
@@ -161,6 +162,8 @@ export declare class Devices {
161
162
  * filter_registered_at_timestamp_lte: "2024-01-15T09:30:00Z",
162
163
  * filter_last_seen_at_timestamp_gte: "2024-01-15T09:30:00Z",
163
164
  * filter_last_seen_at_timestamp_lte: "2024-01-15T09:30:00Z",
165
+ * filter_first_seen_at_timestamp_gte: "2024-01-15T09:30:00Z",
166
+ * filter_first_seen_at_timestamp_lte: "2024-01-15T09:30:00Z",
164
167
  * filter_archived: true
165
168
  * })
166
169
  */
@@ -183,23 +186,5 @@ export declare class Devices {
183
186
  */
184
187
  typeaheadV1(request: Chrt.tracking.DevicesTypeaheadV1Request, requestOptions?: Devices.RequestOptions): core.HttpResponsePromise<Chrt.TrackingTypeaheadResult[]>;
185
188
  private __typeaheadV1;
186
- /**
187
- * Search across device device_mac_address, comments, and off_chrt_reference_id. Handles both partial (typing) and full query submission. Use org_scope to restrict to owned, shared, or both (default). | authz: min_org_role=operator | () -> (DeviceSearchRes)
188
- *
189
- * @param {Chrt.tracking.DevicesSearchV1Request} request
190
- * @param {Devices.RequestOptions} requestOptions - Request-specific configuration.
191
- *
192
- * @throws {@link Chrt.UnprocessableEntityError}
193
- *
194
- * @example
195
- * await client.tracking.devices.searchV1({
196
- * query: "query",
197
- * page: 1,
198
- * page_size: 1,
199
- * org_scope: "owned"
200
- * })
201
- */
202
- searchV1(request: Chrt.tracking.DevicesSearchV1Request, requestOptions?: Devices.RequestOptions): core.HttpResponsePromise<Chrt.DeviceSearchRes>;
203
- private __searchV1;
204
189
  protected _getAuthorizationHeader(): Promise<string | undefined>;
205
190
  }
@@ -263,7 +263,7 @@ class Devices {
263
263
  });
264
264
  }
265
265
  /**
266
- * Pauses a device. Cargo-by-device and session-by-device data points are marked as paused and excluded from data point queries. | () -> (bool)
266
+ * Pauses a device and opens a new pause time window. | () -> (bool)
267
267
  *
268
268
  * @param {Chrt.tracking.DevicesPauseV1Request} request
269
269
  * @param {Devices.RequestOptions} requestOptions - Request-specific configuration.
@@ -327,7 +327,7 @@ class Devices {
327
327
  });
328
328
  }
329
329
  /**
330
- * Unpauses a device. | () -> (bool)
330
+ * Unpauses a device. Closes the open pause time window. | () -> (bool)
331
331
  *
332
332
  * @param {Chrt.tracking.DevicesUnpauseV1Request} request
333
333
  * @param {Devices.RequestOptions} requestOptions - Request-specific configuration.
@@ -532,6 +532,7 @@ class Devices {
532
532
  * sort_order: "asc",
533
533
  * page: 1,
534
534
  * page_size: 1,
535
+ * search: "search",
535
536
  * org_scope: "owned",
536
537
  * filter_off_chrt_reference_id: "filter_off_chrt_reference_id",
537
538
  * filter_type: "D15N-tag",
@@ -543,6 +544,8 @@ class Devices {
543
544
  * filter_registered_at_timestamp_lte: "2024-01-15T09:30:00Z",
544
545
  * filter_last_seen_at_timestamp_gte: "2024-01-15T09:30:00Z",
545
546
  * filter_last_seen_at_timestamp_lte: "2024-01-15T09:30:00Z",
547
+ * filter_first_seen_at_timestamp_gte: "2024-01-15T09:30:00Z",
548
+ * filter_first_seen_at_timestamp_lte: "2024-01-15T09:30:00Z",
546
549
  * filter_archived: true
547
550
  * })
548
551
  */
@@ -552,7 +555,7 @@ class Devices {
552
555
  __listV1() {
553
556
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
554
557
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
555
- const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, org_scope: orgScope, filter_off_chrt_reference_id: filterOffChrtReferenceId, filter_type: filterType, filter_active_cargo_id: filterActiveCargoId, filter_active_session_id: filterActiveSessionId, filter_has_active_session: filterHasActiveSession, filter_has_active_cargo: filterHasActiveCargo, filter_registered_at_timestamp_gte: filterRegisteredAtTimestampGte, filter_registered_at_timestamp_lte: filterRegisteredAtTimestampLte, filter_last_seen_at_timestamp_gte: filterLastSeenAtTimestampGte, filter_last_seen_at_timestamp_lte: filterLastSeenAtTimestampLte, filter_archived: filterArchived, } = request;
558
+ const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, search, org_scope: orgScope, filter_off_chrt_reference_id: filterOffChrtReferenceId, filter_type: filterType, filter_active_cargo_id: filterActiveCargoId, filter_active_session_id: filterActiveSessionId, filter_has_active_session: filterHasActiveSession, filter_has_active_cargo: filterHasActiveCargo, filter_registered_at_timestamp_gte: filterRegisteredAtTimestampGte, filter_registered_at_timestamp_lte: filterRegisteredAtTimestampLte, filter_last_seen_at_timestamp_gte: filterLastSeenAtTimestampGte, filter_last_seen_at_timestamp_lte: filterLastSeenAtTimestampLte, filter_first_seen_at_timestamp_gte: filterFirstSeenAtTimestampGte, filter_first_seen_at_timestamp_lte: filterFirstSeenAtTimestampLte, filter_archived: filterArchived, } = request;
556
559
  const _queryParams = {};
557
560
  if (sortBy !== undefined) {
558
561
  _queryParams["sort_by"] = sortBy;
@@ -566,6 +569,9 @@ class Devices {
566
569
  if (pageSize !== undefined) {
567
570
  _queryParams["page_size"] = (_b = pageSize === null || pageSize === void 0 ? void 0 : pageSize.toString()) !== null && _b !== void 0 ? _b : null;
568
571
  }
572
+ if (search !== undefined) {
573
+ _queryParams["search"] = search;
574
+ }
569
575
  if (orgScope !== undefined) {
570
576
  _queryParams["org_scope"] = orgScope;
571
577
  }
@@ -599,6 +605,12 @@ class Devices {
599
605
  if (filterLastSeenAtTimestampLte !== undefined) {
600
606
  _queryParams["filter_last_seen_at_timestamp_lte"] = filterLastSeenAtTimestampLte;
601
607
  }
608
+ if (filterFirstSeenAtTimestampGte !== undefined) {
609
+ _queryParams["filter_first_seen_at_timestamp_gte"] = filterFirstSeenAtTimestampGte;
610
+ }
611
+ if (filterFirstSeenAtTimestampLte !== undefined) {
612
+ _queryParams["filter_first_seen_at_timestamp_lte"] = filterFirstSeenAtTimestampLte;
613
+ }
602
614
  if (filterArchived !== undefined) {
603
615
  _queryParams["filter_archived"] = (_e = filterArchived === null || filterArchived === void 0 ? void 0 : filterArchived.toString()) !== null && _e !== void 0 ? _e : null;
604
616
  }
@@ -716,82 +728,6 @@ class Devices {
716
728
  }
717
729
  });
718
730
  }
719
- /**
720
- * Search across device device_mac_address, comments, and off_chrt_reference_id. Handles both partial (typing) and full query submission. Use org_scope to restrict to owned, shared, or both (default). | authz: min_org_role=operator | () -> (DeviceSearchRes)
721
- *
722
- * @param {Chrt.tracking.DevicesSearchV1Request} request
723
- * @param {Devices.RequestOptions} requestOptions - Request-specific configuration.
724
- *
725
- * @throws {@link Chrt.UnprocessableEntityError}
726
- *
727
- * @example
728
- * await client.tracking.devices.searchV1({
729
- * query: "query",
730
- * page: 1,
731
- * page_size: 1,
732
- * org_scope: "owned"
733
- * })
734
- */
735
- searchV1(request, requestOptions) {
736
- return core.HttpResponsePromise.fromPromise(this.__searchV1(request, requestOptions));
737
- }
738
- __searchV1(request, requestOptions) {
739
- return __awaiter(this, void 0, void 0, function* () {
740
- var _a, _b, _c, _d, _e, _f;
741
- const { query, page, page_size: pageSize, org_scope: orgScope } = request;
742
- const _queryParams = {};
743
- _queryParams["query"] = query;
744
- if (page !== undefined) {
745
- _queryParams["page"] = (_a = page === null || page === void 0 ? void 0 : page.toString()) !== null && _a !== void 0 ? _a : null;
746
- }
747
- if (pageSize !== undefined) {
748
- _queryParams["page_size"] = (_b = pageSize === null || pageSize === void 0 ? void 0 : pageSize.toString()) !== null && _b !== void 0 ? _b : null;
749
- }
750
- if (orgScope !== undefined) {
751
- _queryParams["org_scope"] = orgScope;
752
- }
753
- 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);
754
- const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
755
- 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, "tracking/devices/search/v1"),
756
- method: "GET",
757
- headers: _headers,
758
- queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
759
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
760
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
761
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
762
- });
763
- if (_response.ok) {
764
- return { data: _response.body, rawResponse: _response.rawResponse };
765
- }
766
- if (_response.error.reason === "status-code") {
767
- switch (_response.error.statusCode) {
768
- case 422:
769
- throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
770
- default:
771
- throw new errors.ChrtError({
772
- statusCode: _response.error.statusCode,
773
- body: _response.error.body,
774
- rawResponse: _response.rawResponse,
775
- });
776
- }
777
- }
778
- switch (_response.error.reason) {
779
- case "non-json":
780
- throw new errors.ChrtError({
781
- statusCode: _response.error.statusCode,
782
- body: _response.error.rawBody,
783
- rawResponse: _response.rawResponse,
784
- });
785
- case "timeout":
786
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /tracking/devices/search/v1.");
787
- case "unknown":
788
- throw new errors.ChrtError({
789
- message: _response.error.errorMessage,
790
- rawResponse: _response.rawResponse,
791
- });
792
- }
793
- });
794
- }
795
731
  _getAuthorizationHeader() {
796
732
  return __awaiter(this, void 0, void 0, function* () {
797
733
  const bearer = yield core.Supplier.get(this._options.token);
@@ -9,6 +9,7 @@ import * as Chrt from "../../../../../../index.js";
9
9
  * sort_order: "asc",
10
10
  * page: 1,
11
11
  * page_size: 1,
12
+ * search: "search",
12
13
  * org_scope: "owned",
13
14
  * filter_off_chrt_reference_id: "filter_off_chrt_reference_id",
14
15
  * filter_type: "D15N-tag",
@@ -20,16 +21,20 @@ import * as Chrt from "../../../../../../index.js";
20
21
  * filter_registered_at_timestamp_lte: "2024-01-15T09:30:00Z",
21
22
  * filter_last_seen_at_timestamp_gte: "2024-01-15T09:30:00Z",
22
23
  * filter_last_seen_at_timestamp_lte: "2024-01-15T09:30:00Z",
24
+ * filter_first_seen_at_timestamp_gte: "2024-01-15T09:30:00Z",
25
+ * filter_first_seen_at_timestamp_lte: "2024-01-15T09:30:00Z",
23
26
  * filter_archived: true
24
27
  * }
25
28
  */
26
29
  export interface DevicesListV1Request {
27
30
  /** Field to sort by */
28
31
  sort_by?: Chrt.DeviceSortByEnum | null;
29
- /** Sort order (ascending or descending) */
32
+ /** Sort order (asc or desc) */
30
33
  sort_order?: Chrt.SortOrderEnum | null;
31
34
  page?: number | null;
32
35
  page_size?: number | null;
36
+ /** Full-text search query */
37
+ search?: string | null;
33
38
  /** Filter by org ownership: owned, shared, or owned_and_shared */
34
39
  org_scope?: Chrt.TrackingOrgScopeEnum | null;
35
40
  /** Filter by off-CHRT reference ID (exact match) */
@@ -52,6 +57,10 @@ export interface DevicesListV1Request {
52
57
  filter_last_seen_at_timestamp_gte?: string | null;
53
58
  /** Filter by last_seen_at_timestamp <= value */
54
59
  filter_last_seen_at_timestamp_lte?: string | null;
60
+ /** Filter by first_seen_at_timestamp >= value */
61
+ filter_first_seen_at_timestamp_gte?: string | null;
62
+ /** Filter by first_seen_at_timestamp <= value */
63
+ filter_first_seen_at_timestamp_lte?: string | null;
55
64
  /** Filter by archived status */
56
65
  filter_archived?: boolean | null;
57
66
  }
@@ -7,4 +7,3 @@ export { type DevicesUpdateSharedOrgsReq1 } from "./DevicesUpdateSharedOrgsReq1.
7
7
  export { type DevicesGetV1Request } from "./DevicesGetV1Request.js";
8
8
  export { type DevicesListV1Request } from "./DevicesListV1Request.js";
9
9
  export { type DevicesTypeaheadV1Request } from "./DevicesTypeaheadV1Request.js";
10
- export { type DevicesSearchV1Request } from "./DevicesSearchV1Request.js";
@@ -31,7 +31,7 @@ export declare class Sessions {
31
31
  protected readonly _options: Sessions.Options;
32
32
  constructor(_options?: Sessions.Options);
33
33
  /**
34
- * Lists sessions with filtering, sorting, and pagination. Use org_scope to restrict to owned, shared, or both (default). | authz: min_org_role=operator | () -> (SessionListRes)
34
+ * Lists sessions with filtering, sorting, and pagination. Use org_scope to restrict to owned, shared, or both (default). | auth: api_key | authz: min_org_role=operator | () -> (SessionListRes)
35
35
  *
36
36
  * @param {Chrt.tracking.SessionsListV1Request} request
37
37
  * @param {Sessions.RequestOptions} requestOptions - Request-specific configuration.
@@ -44,6 +44,7 @@ export declare class Sessions {
44
44
  * sort_order: "asc",
45
45
  * page: 1,
46
46
  * page_size: 1,
47
+ * search: "search",
47
48
  * org_scope: "owned",
48
49
  * filter_terminated: true,
49
50
  * filter_public: true,
@@ -63,7 +64,7 @@ export declare class Sessions {
63
64
  listV1(request?: Chrt.tracking.SessionsListV1Request, requestOptions?: Sessions.RequestOptions): core.HttpResponsePromise<Chrt.SessionListRes>;
64
65
  private __listV1;
65
66
  /**
66
- * Retrieves a single session by its ID. Access restricted to the caller's organization or shared organizations. | authz: min_org_role=operator | () -> (Session1)
67
+ * Retrieves a single session by its ID. Access restricted to the caller's organization or shared organizations. | auth: api_key | authz: min_org_role=operator | () -> (Session1)
67
68
  *
68
69
  * @param {Chrt.tracking.SessionsGetV1Request} request
69
70
  * @param {Sessions.RequestOptions} requestOptions - Request-specific configuration.
@@ -78,7 +79,7 @@ export declare class Sessions {
78
79
  getV1(request: Chrt.tracking.SessionsGetV1Request, requestOptions?: Sessions.RequestOptions): core.HttpResponsePromise<Chrt.Session1>;
79
80
  private __getV1;
80
81
  /**
81
- * Returns distinct device_mac_address and off_chrt_reference_id values matching the query via case-insensitive regex, searching sessions. Use org_scope to restrict to owned, shared, or both (default). | authz: min_org_role=operator | () -> (list[TrackingTypeaheadResult])
82
+ * Returns distinct device_mac_address and off_chrt_reference_id values matching the query via case-insensitive regex, searching sessions. Use org_scope to restrict to owned, shared, or both (default). | auth: api_key | authz: min_org_role=operator | () -> (list[TrackingTypeaheadResult])
82
83
  *
83
84
  * @param {Chrt.tracking.SessionsTypeaheadV1Request} request
84
85
  * @param {Sessions.RequestOptions} requestOptions - Request-specific configuration.
@@ -94,24 +95,6 @@ export declare class Sessions {
94
95
  */
95
96
  typeaheadV1(request: Chrt.tracking.SessionsTypeaheadV1Request, requestOptions?: Sessions.RequestOptions): core.HttpResponsePromise<Chrt.TrackingTypeaheadResult[]>;
96
97
  private __typeaheadV1;
97
- /**
98
- * Search across session comments, device_mac_address, flight_numbers, and off_chrt_reference_id. Handles both partial and full matches. Use org_scope to restrict to owned, shared, or both (default). | authz: min_org_role=operator | () -> (SessionSearchRes)
99
- *
100
- * @param {Chrt.tracking.SessionsSearchV1Request} request
101
- * @param {Sessions.RequestOptions} requestOptions - Request-specific configuration.
102
- *
103
- * @throws {@link Chrt.UnprocessableEntityError}
104
- *
105
- * @example
106
- * await client.tracking.sessions.searchV1({
107
- * query: "query",
108
- * page: 1,
109
- * page_size: 1,
110
- * org_scope: "owned"
111
- * })
112
- */
113
- searchV1(request: Chrt.tracking.SessionsSearchV1Request, requestOptions?: Sessions.RequestOptions): core.HttpResponsePromise<Chrt.SessionSearchRes>;
114
- private __searchV1;
115
98
  /**
116
99
  * 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 ~3 days out at 8 PM PT. Prevent auto termination with `no_auto_termination=True` | (SessionClientCreate1) -> (PydanticObjectId)
117
100
  *
@@ -67,7 +67,7 @@ class Sessions {
67
67
  this._options = _options;
68
68
  }
69
69
  /**
70
- * Lists sessions with filtering, sorting, and pagination. Use org_scope to restrict to owned, shared, or both (default). | authz: min_org_role=operator | () -> (SessionListRes)
70
+ * Lists sessions with filtering, sorting, and pagination. Use org_scope to restrict to owned, shared, or both (default). | auth: api_key | authz: min_org_role=operator | () -> (SessionListRes)
71
71
  *
72
72
  * @param {Chrt.tracking.SessionsListV1Request} request
73
73
  * @param {Sessions.RequestOptions} requestOptions - Request-specific configuration.
@@ -80,6 +80,7 @@ class Sessions {
80
80
  * sort_order: "asc",
81
81
  * page: 1,
82
82
  * page_size: 1,
83
+ * search: "search",
83
84
  * org_scope: "owned",
84
85
  * filter_terminated: true,
85
86
  * filter_public: true,
@@ -102,7 +103,7 @@ class Sessions {
102
103
  __listV1() {
103
104
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
104
105
  var _a, _b, _c, _d, _e, _f, _g, _h;
105
- const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, 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_created_at_timestamp_gte: filterCreatedAtTimestampGte, filter_created_at_timestamp_lte: filterCreatedAtTimestampLte, 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;
106
+ 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_created_at_timestamp_gte: filterCreatedAtTimestampGte, filter_created_at_timestamp_lte: filterCreatedAtTimestampLte, 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;
106
107
  const _queryParams = {};
107
108
  if (sortBy !== undefined) {
108
109
  _queryParams["sort_by"] = sortBy;
@@ -116,6 +117,9 @@ class Sessions {
116
117
  if (pageSize !== undefined) {
117
118
  _queryParams["page_size"] = (_b = pageSize === null || pageSize === void 0 ? void 0 : pageSize.toString()) !== null && _b !== void 0 ? _b : null;
118
119
  }
120
+ if (search !== undefined) {
121
+ _queryParams["search"] = search;
122
+ }
119
123
  if (orgScope !== undefined) {
120
124
  _queryParams["org_scope"] = orgScope;
121
125
  }
@@ -201,7 +205,7 @@ class Sessions {
201
205
  });
202
206
  }
203
207
  /**
204
- * Retrieves a single session by its ID. Access restricted to the caller's organization or shared organizations. | authz: min_org_role=operator | () -> (Session1)
208
+ * Retrieves a single session by its ID. Access restricted to the caller's organization or shared organizations. | auth: api_key | authz: min_org_role=operator | () -> (Session1)
205
209
  *
206
210
  * @param {Chrt.tracking.SessionsGetV1Request} request
207
211
  * @param {Sessions.RequestOptions} requestOptions - Request-specific configuration.
@@ -265,7 +269,7 @@ class Sessions {
265
269
  });
266
270
  }
267
271
  /**
268
- * Returns distinct device_mac_address and off_chrt_reference_id values matching the query via case-insensitive regex, searching sessions. Use org_scope to restrict to owned, shared, or both (default). | authz: min_org_role=operator | () -> (list[TrackingTypeaheadResult])
272
+ * Returns distinct device_mac_address and off_chrt_reference_id values matching the query via case-insensitive regex, searching sessions. Use org_scope to restrict to owned, shared, or both (default). | auth: api_key | authz: min_org_role=operator | () -> (list[TrackingTypeaheadResult])
269
273
  *
270
274
  * @param {Chrt.tracking.SessionsTypeaheadV1Request} request
271
275
  * @param {Sessions.RequestOptions} requestOptions - Request-specific configuration.
@@ -336,82 +340,6 @@ class Sessions {
336
340
  }
337
341
  });
338
342
  }
339
- /**
340
- * Search across session comments, device_mac_address, flight_numbers, and off_chrt_reference_id. Handles both partial and full matches. Use org_scope to restrict to owned, shared, or both (default). | authz: min_org_role=operator | () -> (SessionSearchRes)
341
- *
342
- * @param {Chrt.tracking.SessionsSearchV1Request} request
343
- * @param {Sessions.RequestOptions} requestOptions - Request-specific configuration.
344
- *
345
- * @throws {@link Chrt.UnprocessableEntityError}
346
- *
347
- * @example
348
- * await client.tracking.sessions.searchV1({
349
- * query: "query",
350
- * page: 1,
351
- * page_size: 1,
352
- * org_scope: "owned"
353
- * })
354
- */
355
- searchV1(request, requestOptions) {
356
- return core.HttpResponsePromise.fromPromise(this.__searchV1(request, requestOptions));
357
- }
358
- __searchV1(request, requestOptions) {
359
- return __awaiter(this, void 0, void 0, function* () {
360
- var _a, _b, _c, _d, _e, _f;
361
- const { query, page, page_size: pageSize, org_scope: orgScope } = request;
362
- const _queryParams = {};
363
- _queryParams["query"] = query;
364
- if (page !== undefined) {
365
- _queryParams["page"] = (_a = page === null || page === void 0 ? void 0 : page.toString()) !== null && _a !== void 0 ? _a : null;
366
- }
367
- if (pageSize !== undefined) {
368
- _queryParams["page_size"] = (_b = pageSize === null || pageSize === void 0 ? void 0 : pageSize.toString()) !== null && _b !== void 0 ? _b : null;
369
- }
370
- if (orgScope !== undefined) {
371
- _queryParams["org_scope"] = orgScope;
372
- }
373
- 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);
374
- const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
375
- 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, "tracking/sessions/search/v1"),
376
- method: "GET",
377
- headers: _headers,
378
- queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
379
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
380
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
381
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
382
- });
383
- if (_response.ok) {
384
- return { data: _response.body, rawResponse: _response.rawResponse };
385
- }
386
- if (_response.error.reason === "status-code") {
387
- switch (_response.error.statusCode) {
388
- case 422:
389
- throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
390
- default:
391
- throw new errors.ChrtError({
392
- statusCode: _response.error.statusCode,
393
- body: _response.error.body,
394
- rawResponse: _response.rawResponse,
395
- });
396
- }
397
- }
398
- switch (_response.error.reason) {
399
- case "non-json":
400
- throw new errors.ChrtError({
401
- statusCode: _response.error.statusCode,
402
- body: _response.error.rawBody,
403
- rawResponse: _response.rawResponse,
404
- });
405
- case "timeout":
406
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /tracking/sessions/search/v1.");
407
- case "unknown":
408
- throw new errors.ChrtError({
409
- message: _response.error.errorMessage,
410
- rawResponse: _response.rawResponse,
411
- });
412
- }
413
- });
414
- }
415
343
  /**
416
344
  * 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 ~3 days out at 8 PM PT. Prevent auto termination with `no_auto_termination=True` | (SessionClientCreate1) -> (PydanticObjectId)
417
345
  *
@@ -9,6 +9,7 @@ import * as Chrt from "../../../../../../index.js";
9
9
  * sort_order: "asc",
10
10
  * page: 1,
11
11
  * page_size: 1,
12
+ * search: "search",
12
13
  * org_scope: "owned",
13
14
  * filter_terminated: true,
14
15
  * filter_public: true,
@@ -28,10 +29,12 @@ import * as Chrt from "../../../../../../index.js";
28
29
  export interface SessionsListV1Request {
29
30
  /** Field to sort by */
30
31
  sort_by?: Chrt.SessionSortByEnum | null;
31
- /** Sort order (ascending or descending) */
32
+ /** Sort order (asc or desc) */
32
33
  sort_order?: Chrt.SortOrderEnum | null;
33
34
  page?: number | null;
34
35
  page_size?: number | null;
36
+ /** Full-text search query */
37
+ search?: string | null;
35
38
  /** Filter by org ownership: owned, shared, or owned_and_shared */
36
39
  org_scope?: Chrt.TrackingOrgScopeEnum | null;
37
40
  /** Filter by terminated status */
@@ -1,7 +1,6 @@
1
1
  export { type SessionsListV1Request } from "./SessionsListV1Request.js";
2
2
  export { type SessionsGetV1Request } from "./SessionsGetV1Request.js";
3
3
  export { type SessionsTypeaheadV1Request } from "./SessionsTypeaheadV1Request.js";
4
- export { type SessionsSearchV1Request } from "./SessionsSearchV1Request.js";
5
4
  export { type SessionClientCreate1 } from "./SessionClientCreate1.js";
6
5
  export { type SessionClientUpdate1 } from "./SessionClientUpdate1.js";
7
6
  export { type SessionsUpdateSharedOrgsReq1 } from "./SessionsUpdateSharedOrgsReq1.js";
@@ -31,7 +31,7 @@ export declare class SessionByDevice {
31
31
  protected readonly _options: SessionByDevice.Options;
32
32
  constructor(_options?: SessionByDevice.Options);
33
33
  /**
34
- * Returns the most recent data point for a session, excluding outliers. Access restricted to the caller's organization. | authz: min_org_role=operator | () -> (SessionByDeviceDataPoint1 | None)
34
+ * Returns the most recent data point for a session, excluding outliers. Access restricted to the caller's organization. | auth: api_key | authz: min_org_role=operator | () -> (SessionByDeviceDataPoint1 | None)
35
35
  *
36
36
  * @param {Chrt.tracking.timeseries.SessionByDeviceLastSeenV1Request} request
37
37
  * @param {SessionByDevice.RequestOptions} requestOptions - Request-specific configuration.
@@ -46,7 +46,7 @@ export declare class SessionByDevice {
46
46
  lastSeenV1(request: Chrt.tracking.timeseries.SessionByDeviceLastSeenV1Request, requestOptions?: SessionByDevice.RequestOptions): core.HttpResponsePromise<(Chrt.SessionByDeviceDataPoint1 | null) | undefined>;
47
47
  private __lastSeenV1;
48
48
  /**
49
- * Returns time-bucketed data points and stationary clusters for a session within the given time range. start_timestamp and end_timestamp are required. | authz: min_org_role=operator | () -> SessionByDeviceHistoryRes1
49
+ * Returns time-bucketed data points and stationary clusters for a session within the given time range. start_timestamp and end_timestamp are required. | auth: api_key | authz: min_org_role=operator | () -> SessionByDeviceHistoryRes1
50
50
  *
51
51
  * @param {Chrt.tracking.timeseries.SessionByDeviceDataPointsV1Request} request
52
52
  * @param {SessionByDevice.RequestOptions} requestOptions - Request-specific configuration.
@@ -56,7 +56,7 @@ class SessionByDevice {
56
56
  this._options = _options;
57
57
  }
58
58
  /**
59
- * Returns the most recent data point for a session, excluding outliers. Access restricted to the caller's organization. | authz: min_org_role=operator | () -> (SessionByDeviceDataPoint1 | None)
59
+ * Returns the most recent data point for a session, excluding outliers. Access restricted to the caller's organization. | auth: api_key | authz: min_org_role=operator | () -> (SessionByDeviceDataPoint1 | None)
60
60
  *
61
61
  * @param {Chrt.tracking.timeseries.SessionByDeviceLastSeenV1Request} request
62
62
  * @param {SessionByDevice.RequestOptions} requestOptions - Request-specific configuration.
@@ -123,7 +123,7 @@ class SessionByDevice {
123
123
  });
124
124
  }
125
125
  /**
126
- * Returns time-bucketed data points and stationary clusters for a session within the given time range. start_timestamp and end_timestamp are required. | authz: min_org_role=operator | () -> SessionByDeviceHistoryRes1
126
+ * Returns time-bucketed data points and stationary clusters for a session within the given time range. start_timestamp and end_timestamp are required. | auth: api_key | authz: min_org_role=operator | () -> SessionByDeviceHistoryRes1
127
127
  *
128
128
  * @param {Chrt.tracking.timeseries.SessionByDeviceDataPointsV1Request} request
129
129
  * @param {SessionByDevice.RequestOptions} requestOptions - Request-specific configuration.