@chrt-inc/typescript-sdk 1.421.0 → 1.431.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 (136) hide show
  1. package/dist/cjs/Client.js +2 -2
  2. package/dist/cjs/api/resources/tracking/resources/devices/client/Client.d.ts +39 -52
  3. package/dist/cjs/api/resources/tracking/resources/devices/client/Client.js +94 -147
  4. package/dist/cjs/api/resources/tracking/resources/devices/client/requests/{DevicesRegisterToOrgReq1.d.ts → DeviceClientCreate1.d.ts} +4 -2
  5. package/dist/cjs/api/resources/tracking/resources/devices/client/requests/DeviceClientUpdate1.d.ts +19 -0
  6. package/dist/{esm/api/resources/tracking/resources/sessions/client/requests/SessionsStartV1Request.d.mts → cjs/api/resources/tracking/resources/devices/client/requests/DevicesArchiveV1Request.d.ts} +3 -3
  7. package/dist/cjs/api/resources/tracking/resources/devices/client/requests/DevicesGetV1Request.d.ts +1 -3
  8. package/dist/cjs/api/resources/tracking/resources/devices/client/requests/DevicesListV1Request.d.ts +12 -12
  9. package/dist/cjs/api/resources/tracking/resources/devices/client/requests/DevicesSearchV1Request.d.ts +6 -2
  10. package/dist/cjs/api/resources/tracking/resources/devices/client/requests/DevicesTypeaheadV1Request.d.ts +20 -0
  11. package/dist/cjs/api/resources/tracking/resources/devices/client/requests/DevicesUpdateSharedOrgsReq1.d.ts +14 -0
  12. package/dist/cjs/api/resources/tracking/resources/devices/client/requests/index.d.ts +5 -6
  13. package/dist/cjs/api/resources/tracking/resources/sessions/client/Client.d.ts +65 -52
  14. package/dist/cjs/api/resources/tracking/resources/sessions/client/Client.js +160 -106
  15. package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/SessionAddFlightReq1.d.ts +16 -0
  16. package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/SessionClientCreate1.d.ts +22 -0
  17. package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/SessionClientUpdate1.d.ts +19 -0
  18. package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/SessionRemoveFlightReq1.d.ts +16 -0
  19. package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/SessionsListV1Request.d.ts +31 -19
  20. package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/SessionsSearchV1Request.d.ts +6 -2
  21. package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/{SessionsPauseRecordingV1Request.d.ts → SessionsSyncFlightStatusV1Request.d.ts} +1 -1
  22. package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/SessionsTypeaheadV1Request.d.ts +20 -0
  23. package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/{SessionsStartV1Request.d.ts → SessionsUpdateSharedOrgsReq1.d.ts} +3 -1
  24. package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/index.d.ts +7 -7
  25. package/dist/cjs/api/types/DeviceExpandedRes.d.ts +11 -0
  26. package/dist/cjs/api/types/{Device1.d.ts → DeviceLimitedForList1.d.ts} +16 -6
  27. package/dist/cjs/api/types/DeviceListRes.d.ts +1 -1
  28. package/dist/cjs/api/types/DeviceSearchRes.d.ts +1 -1
  29. package/dist/cjs/api/types/FlightStatusEnum.d.ts +14 -0
  30. package/dist/cjs/api/types/FlightStatusEnum.js +16 -0
  31. package/dist/cjs/api/types/Session1.d.ts +15 -8
  32. package/dist/cjs/api/types/SessionSortByEnum.d.ts +4 -3
  33. package/dist/cjs/api/types/SessionSortByEnum.js +3 -2
  34. package/dist/cjs/api/types/TrackingOrgScopeEnum.d.ts +9 -0
  35. package/dist/cjs/api/types/TrackingOrgScopeEnum.js +11 -0
  36. package/dist/cjs/api/types/TrackingTypeaheadFieldEnum.d.ts +8 -0
  37. package/dist/cjs/api/types/TrackingTypeaheadFieldEnum.js +10 -0
  38. package/dist/cjs/api/types/TrackingTypeaheadResult.d.ts +8 -0
  39. package/dist/cjs/api/types/index.d.ts +6 -2
  40. package/dist/cjs/api/types/index.js +6 -2
  41. package/dist/cjs/version.d.ts +1 -1
  42. package/dist/cjs/version.js +1 -1
  43. package/dist/esm/Client.mjs +2 -2
  44. package/dist/esm/api/resources/tracking/resources/devices/client/Client.d.mts +39 -52
  45. package/dist/esm/api/resources/tracking/resources/devices/client/Client.mjs +94 -147
  46. package/dist/esm/api/resources/tracking/resources/devices/client/requests/{DevicesRegisterToOrgReq1.d.mts → DeviceClientCreate1.d.mts} +4 -2
  47. package/dist/esm/api/resources/tracking/resources/devices/client/requests/DeviceClientUpdate1.d.mts +19 -0
  48. package/dist/esm/api/resources/tracking/resources/{sessions/client/requests/SessionsDeleteV1Request.d.mts → devices/client/requests/DevicesArchiveV1Request.d.mts} +3 -3
  49. package/dist/esm/api/resources/tracking/resources/devices/client/requests/DevicesGetV1Request.d.mts +1 -3
  50. package/dist/esm/api/resources/tracking/resources/devices/client/requests/DevicesListV1Request.d.mts +12 -12
  51. package/dist/esm/api/resources/tracking/resources/devices/client/requests/DevicesSearchV1Request.d.mts +6 -2
  52. package/dist/esm/api/resources/tracking/resources/devices/client/requests/DevicesTypeaheadV1Request.d.mts +20 -0
  53. package/dist/esm/api/resources/tracking/resources/devices/client/requests/DevicesUpdateSharedOrgsReq1.d.mts +14 -0
  54. package/dist/esm/api/resources/tracking/resources/devices/client/requests/index.d.mts +5 -6
  55. package/dist/esm/api/resources/tracking/resources/sessions/client/Client.d.mts +65 -52
  56. package/dist/esm/api/resources/tracking/resources/sessions/client/Client.mjs +160 -106
  57. package/dist/esm/api/resources/tracking/resources/sessions/client/requests/SessionAddFlightReq1.d.mts +16 -0
  58. package/dist/esm/api/resources/tracking/resources/sessions/client/requests/SessionClientCreate1.d.mts +22 -0
  59. package/dist/esm/api/resources/tracking/resources/sessions/client/requests/SessionClientUpdate1.d.mts +19 -0
  60. package/dist/esm/api/resources/tracking/resources/sessions/client/requests/SessionRemoveFlightReq1.d.mts +16 -0
  61. package/dist/esm/api/resources/tracking/resources/sessions/client/requests/SessionsListV1Request.d.mts +31 -19
  62. package/dist/esm/api/resources/tracking/resources/sessions/client/requests/SessionsSearchV1Request.d.mts +6 -2
  63. package/dist/{cjs/api/resources/tracking/resources/sessions/client/requests/SessionsDeleteV1Request.d.ts → esm/api/resources/tracking/resources/sessions/client/requests/SessionsSyncFlightStatusV1Request.d.mts} +1 -1
  64. package/dist/esm/api/resources/tracking/resources/sessions/client/requests/SessionsTypeaheadV1Request.d.mts +20 -0
  65. package/dist/{cjs/api/resources/tracking/resources/sessions/client/requests/SessionsResumeRecordingV1Request.d.ts → esm/api/resources/tracking/resources/sessions/client/requests/SessionsUpdateSharedOrgsReq1.d.mts} +3 -1
  66. package/dist/esm/api/resources/tracking/resources/sessions/client/requests/index.d.mts +7 -7
  67. package/dist/esm/api/types/DeviceExpandedRes.d.mts +11 -0
  68. package/dist/esm/api/types/{Device1.d.mts → DeviceLimitedForList1.d.mts} +16 -6
  69. package/dist/esm/api/types/DeviceListRes.d.mts +1 -1
  70. package/dist/esm/api/types/DeviceSearchRes.d.mts +1 -1
  71. package/dist/esm/api/types/FlightStatusEnum.d.mts +14 -0
  72. package/dist/esm/api/types/FlightStatusEnum.mjs +13 -0
  73. package/dist/esm/api/types/Session1.d.mts +15 -8
  74. package/dist/esm/api/types/SessionSortByEnum.d.mts +4 -3
  75. package/dist/esm/api/types/SessionSortByEnum.mjs +3 -2
  76. package/dist/esm/api/types/TrackingOrgScopeEnum.d.mts +9 -0
  77. package/dist/esm/api/types/TrackingOrgScopeEnum.mjs +8 -0
  78. package/dist/esm/api/types/TrackingTypeaheadFieldEnum.d.mts +8 -0
  79. package/dist/esm/api/types/TrackingTypeaheadFieldEnum.mjs +7 -0
  80. package/dist/esm/api/types/TrackingTypeaheadResult.d.mts +8 -0
  81. package/dist/esm/api/types/index.d.mts +6 -2
  82. package/dist/esm/api/types/index.mjs +6 -2
  83. package/dist/esm/version.d.mts +1 -1
  84. package/dist/esm/version.mjs +1 -1
  85. package/package.json +1 -1
  86. package/reference.md +82 -132
  87. package/dist/cjs/api/resources/tracking/resources/devices/client/requests/DevicesDeleteV1Request.d.ts +0 -14
  88. package/dist/cjs/api/resources/tracking/resources/devices/client/requests/DevicesLinkToCargoV1Request.d.ts +0 -14
  89. package/dist/cjs/api/resources/tracking/resources/devices/client/requests/DevicesTypeaheadOffChrtOrderIdV1Request.d.ts +0 -16
  90. package/dist/cjs/api/resources/tracking/resources/devices/client/requests/DevicesUnlinkFromCargoV1Request.d.ts +0 -12
  91. package/dist/cjs/api/resources/tracking/resources/devices/client/requests/DevicesUpdateRequest1.d.ts +0 -18
  92. package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/SessionCreateSessionRequest1.d.ts +0 -16
  93. package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/SessionUpdateRequest1.d.ts +0 -20
  94. package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/SessionsTypeaheadOffChrtOrderIdV1Request.d.ts +0 -16
  95. package/dist/cjs/api/types/SessionDeleteResponse1.d.ts +0 -7
  96. package/dist/esm/api/resources/tracking/resources/devices/client/requests/DevicesDeleteV1Request.d.mts +0 -14
  97. package/dist/esm/api/resources/tracking/resources/devices/client/requests/DevicesLinkToCargoV1Request.d.mts +0 -14
  98. package/dist/esm/api/resources/tracking/resources/devices/client/requests/DevicesTypeaheadOffChrtOrderIdV1Request.d.mts +0 -16
  99. package/dist/esm/api/resources/tracking/resources/devices/client/requests/DevicesUnlinkFromCargoV1Request.d.mts +0 -12
  100. package/dist/esm/api/resources/tracking/resources/devices/client/requests/DevicesUpdateRequest1.d.mts +0 -18
  101. package/dist/esm/api/resources/tracking/resources/sessions/client/requests/SessionCreateSessionRequest1.d.mts +0 -16
  102. package/dist/esm/api/resources/tracking/resources/sessions/client/requests/SessionUpdateRequest1.d.mts +0 -20
  103. package/dist/esm/api/resources/tracking/resources/sessions/client/requests/SessionsPauseRecordingV1Request.d.mts +0 -12
  104. package/dist/esm/api/resources/tracking/resources/sessions/client/requests/SessionsResumeRecordingV1Request.d.mts +0 -12
  105. package/dist/esm/api/resources/tracking/resources/sessions/client/requests/SessionsTypeaheadOffChrtOrderIdV1Request.d.mts +0 -16
  106. package/dist/esm/api/types/SessionDeleteResponse1.d.mts +0 -7
  107. /package/dist/cjs/api/resources/tracking/resources/devices/client/requests/{DevicesDeleteV1Request.js → DeviceClientCreate1.js} +0 -0
  108. /package/dist/cjs/api/resources/tracking/resources/devices/client/requests/{DevicesLinkToCargoV1Request.js → DeviceClientUpdate1.js} +0 -0
  109. /package/dist/cjs/api/resources/tracking/resources/devices/client/requests/{DevicesRegisterToOrgReq1.js → DevicesArchiveV1Request.js} +0 -0
  110. /package/dist/cjs/api/resources/tracking/resources/devices/client/requests/{DevicesTypeaheadOffChrtOrderIdV1Request.js → DevicesTypeaheadV1Request.js} +0 -0
  111. /package/dist/cjs/api/resources/tracking/resources/devices/client/requests/{DevicesUnlinkFromCargoV1Request.js → DevicesUpdateSharedOrgsReq1.js} +0 -0
  112. /package/dist/cjs/api/resources/tracking/resources/{devices/client/requests/DevicesUpdateRequest1.js → sessions/client/requests/SessionAddFlightReq1.js} +0 -0
  113. /package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/{SessionCreateSessionRequest1.js → SessionClientCreate1.js} +0 -0
  114. /package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/{SessionUpdateRequest1.js → SessionClientUpdate1.js} +0 -0
  115. /package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/{SessionsDeleteV1Request.js → SessionRemoveFlightReq1.js} +0 -0
  116. /package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/{SessionsPauseRecordingV1Request.js → SessionsSyncFlightStatusV1Request.js} +0 -0
  117. /package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/{SessionsResumeRecordingV1Request.js → SessionsTypeaheadV1Request.js} +0 -0
  118. /package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/{SessionsStartV1Request.js → SessionsUpdateSharedOrgsReq1.js} +0 -0
  119. /package/dist/cjs/api/{resources/tracking/resources/sessions/client/requests/SessionsTypeaheadOffChrtOrderIdV1Request.js → types/DeviceExpandedRes.js} +0 -0
  120. /package/dist/cjs/api/types/{Device1.js → DeviceLimitedForList1.js} +0 -0
  121. /package/dist/cjs/api/types/{SessionDeleteResponse1.js → TrackingTypeaheadResult.js} +0 -0
  122. /package/dist/esm/api/resources/tracking/resources/devices/client/requests/{DevicesDeleteV1Request.mjs → DeviceClientCreate1.mjs} +0 -0
  123. /package/dist/esm/api/resources/tracking/resources/devices/client/requests/{DevicesLinkToCargoV1Request.mjs → DeviceClientUpdate1.mjs} +0 -0
  124. /package/dist/esm/api/resources/tracking/resources/devices/client/requests/{DevicesRegisterToOrgReq1.mjs → DevicesArchiveV1Request.mjs} +0 -0
  125. /package/dist/esm/api/resources/tracking/resources/devices/client/requests/{DevicesTypeaheadOffChrtOrderIdV1Request.mjs → DevicesTypeaheadV1Request.mjs} +0 -0
  126. /package/dist/esm/api/resources/tracking/resources/devices/client/requests/{DevicesUnlinkFromCargoV1Request.mjs → DevicesUpdateSharedOrgsReq1.mjs} +0 -0
  127. /package/dist/esm/api/resources/tracking/resources/{devices/client/requests/DevicesUpdateRequest1.mjs → sessions/client/requests/SessionAddFlightReq1.mjs} +0 -0
  128. /package/dist/esm/api/resources/tracking/resources/sessions/client/requests/{SessionCreateSessionRequest1.mjs → SessionClientCreate1.mjs} +0 -0
  129. /package/dist/esm/api/resources/tracking/resources/sessions/client/requests/{SessionUpdateRequest1.mjs → SessionClientUpdate1.mjs} +0 -0
  130. /package/dist/esm/api/resources/tracking/resources/sessions/client/requests/{SessionsDeleteV1Request.mjs → SessionRemoveFlightReq1.mjs} +0 -0
  131. /package/dist/esm/api/resources/tracking/resources/sessions/client/requests/{SessionsPauseRecordingV1Request.mjs → SessionsSyncFlightStatusV1Request.mjs} +0 -0
  132. /package/dist/esm/api/resources/tracking/resources/sessions/client/requests/{SessionsResumeRecordingV1Request.mjs → SessionsTypeaheadV1Request.mjs} +0 -0
  133. /package/dist/esm/api/resources/tracking/resources/sessions/client/requests/{SessionsStartV1Request.mjs → SessionsUpdateSharedOrgsReq1.mjs} +0 -0
  134. /package/dist/esm/api/{resources/tracking/resources/sessions/client/requests/SessionsTypeaheadOffChrtOrderIdV1Request.mjs → types/DeviceExpandedRes.mjs} +0 -0
  135. /package/dist/esm/api/types/{Device1.mjs → DeviceLimitedForList1.mjs} +0 -0
  136. /package/dist/esm/api/types/{SessionDeleteResponse1.mjs → TrackingTypeaheadResult.mjs} +0 -0
@@ -0,0 +1,22 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {
7
+ * device_id: "device_id",
8
+ * termination_scheduled_for_timestamp: "2024-01-15T09:30:00Z",
9
+ * schema_version: 1
10
+ * }
11
+ */
12
+ export interface SessionClientCreate1 {
13
+ device_id: string;
14
+ termination_scheduled_for_timestamp?: string | null;
15
+ schema_version: number;
16
+ off_chrt_reference_id?: string | null;
17
+ comments?: string | null;
18
+ public?: boolean;
19
+ off_chrt_shipper_org_id?: string | null;
20
+ flight_numbers?: string[];
21
+ fa_flight_ids?: string[];
22
+ }
@@ -0,0 +1,19 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {
7
+ * session_id: "session_id",
8
+ * termination_scheduled_for_timestamp: "2024-01-15T09:30:00Z"
9
+ * }
10
+ */
11
+ export interface SessionClientUpdate1 {
12
+ session_id: string;
13
+ termination_scheduled_for_timestamp?: string | null;
14
+ off_chrt_reference_id?: string | null;
15
+ comments?: string | null;
16
+ public?: boolean | null;
17
+ off_chrt_reference_id__set_to_None?: boolean;
18
+ comments__set_to_None?: boolean;
19
+ }
@@ -0,0 +1,16 @@
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_number: "flight_number",
9
+ * fa_flight_ids: ["fa_flight_ids"]
10
+ * }
11
+ */
12
+ export interface SessionRemoveFlightReq1 {
13
+ session_id: string;
14
+ flight_number: string;
15
+ fa_flight_ids: string[];
16
+ }
@@ -5,20 +5,24 @@ import * as Chrt from "../../../../../../index.js";
5
5
  /**
6
6
  * @example
7
7
  * {
8
- * sort_by: "session_created_at_timestamp",
8
+ * sort_by: "created_at_timestamp",
9
9
  * sort_order: "asc",
10
10
  * page: 1,
11
11
  * page_size: 1,
12
- * filter_recording: true,
12
+ * org_scope: "owned",
13
13
  * filter_terminated: true,
14
14
  * filter_public: true,
15
15
  * filter_device_id: "filter_device_id",
16
- * filter_off_chrt_order_id: "filter_off_chrt_order_id",
16
+ * filter_off_chrt_reference_id: "filter_off_chrt_reference_id",
17
17
  * filter_flight_number: "filter_flight_number",
18
- * filter_session_created_at_timestamp_gte: "2024-01-15T09:30:00Z",
19
- * filter_session_created_at_timestamp_lte: "2024-01-15T09:30:00Z",
20
- * filter_recording_initiated_at_timestamp_gte: "2024-01-15T09:30:00Z",
21
- * filter_recording_initiated_at_timestamp_lte: "2024-01-15T09:30:00Z"
18
+ * filter_fa_flight_id: "filter_fa_flight_id",
19
+ * filter_flight_loaded_status: "filter_flight_loaded_status",
20
+ * filter_created_at_timestamp_gte: "2024-01-15T09:30:00Z",
21
+ * filter_created_at_timestamp_lte: "2024-01-15T09:30:00Z",
22
+ * filter_termination_scheduled_for_timestamp_gte: "2024-01-15T09:30:00Z",
23
+ * filter_termination_scheduled_for_timestamp_lte: "2024-01-15T09:30:00Z",
24
+ * filter_terminated_at_timestamp_gte: "2024-01-15T09:30:00Z",
25
+ * filter_terminated_at_timestamp_lte: "2024-01-15T09:30:00Z"
22
26
  * }
23
27
  */
24
28
  export interface SessionsListV1Request {
@@ -28,24 +32,32 @@ export interface SessionsListV1Request {
28
32
  sort_order?: Chrt.SortOrderEnum | null;
29
33
  page?: number | null;
30
34
  page_size?: number | null;
31
- /** Filter by recording status */
32
- filter_recording?: boolean | null;
35
+ /** Filter by org ownership: owned, shared, or owned_and_shared */
36
+ org_scope?: Chrt.TrackingOrgScopeEnum | null;
33
37
  /** Filter by terminated status */
34
38
  filter_terminated?: boolean | null;
35
39
  /** Filter by public visibility */
36
40
  filter_public?: boolean | null;
37
41
  /** Filter by device ID */
38
42
  filter_device_id?: string | null;
39
- /** Filter by off-CHRT order ID (exact match) */
40
- filter_off_chrt_order_id?: string | null;
43
+ /** Filter by off-CHRT reference ID (exact match) */
44
+ filter_off_chrt_reference_id?: string | null;
41
45
  /** Filter by flight number (exact match) */
42
46
  filter_flight_number?: string | null;
43
- /** Filter by session_created_at_timestamp >= value */
44
- filter_session_created_at_timestamp_gte?: string | null;
45
- /** Filter by session_created_at_timestamp <= value */
46
- filter_session_created_at_timestamp_lte?: string | null;
47
- /** Filter by recording_initiated_at_timestamp >= value */
48
- filter_recording_initiated_at_timestamp_gte?: string | null;
49
- /** Filter by recording_initiated_at_timestamp <= value */
50
- filter_recording_initiated_at_timestamp_lte?: string | null;
47
+ /** Filter by FlightAware flight ID (exact match) */
48
+ filter_fa_flight_id?: string | null;
49
+ /** Filter by flight loaded status (exact match) */
50
+ filter_flight_loaded_status?: string | null;
51
+ /** Filter by created_at_timestamp >= value */
52
+ filter_created_at_timestamp_gte?: string | null;
53
+ /** Filter by created_at_timestamp <= value */
54
+ filter_created_at_timestamp_lte?: string | null;
55
+ /** Filter by termination_scheduled_for_timestamp >= value */
56
+ filter_termination_scheduled_for_timestamp_gte?: string | null;
57
+ /** Filter by termination_scheduled_for_timestamp <= value */
58
+ filter_termination_scheduled_for_timestamp_lte?: string | null;
59
+ /** Filter by terminated_at_timestamp >= value */
60
+ filter_terminated_at_timestamp_gte?: string | null;
61
+ /** Filter by terminated_at_timestamp <= value */
62
+ filter_terminated_at_timestamp_lte?: string | null;
51
63
  }
@@ -1,17 +1,21 @@
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
  * {
7
8
  * query: "query",
8
9
  * page: 1,
9
- * page_size: 1
10
+ * page_size: 1,
11
+ * org_scope: "owned"
10
12
  * }
11
13
  */
12
14
  export interface SessionsSearchV1Request {
13
- /** Full-text search query */
15
+ /** Search query */
14
16
  query: string;
15
17
  page?: number | null;
16
18
  page_size?: number | null;
19
+ /** Filter by org ownership: owned, shared, or owned_and_shared */
20
+ org_scope?: Chrt.TrackingOrgScopeEnum | null;
17
21
  }
@@ -7,6 +7,6 @@
7
7
  * session_id: "session_id"
8
8
  * }
9
9
  */
10
- export interface SessionsPauseRecordingV1Request {
10
+ export interface SessionsSyncFlightStatusV1Request {
11
11
  session_id: string;
12
12
  }
@@ -0,0 +1,20 @@
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
+ * query: "query",
9
+ * limit: 1,
10
+ * org_scope: "owned"
11
+ * }
12
+ */
13
+ export interface SessionsTypeaheadV1Request {
14
+ /** Typeahead search query */
15
+ query: string;
16
+ /** Max results per field */
17
+ limit?: number | null;
18
+ /** Filter by org ownership: owned, shared, or owned_and_shared */
19
+ org_scope?: Chrt.TrackingOrgScopeEnum | null;
20
+ }
@@ -7,6 +7,8 @@
7
7
  * session_id: "session_id"
8
8
  * }
9
9
  */
10
- export interface SessionsStartV1Request {
10
+ export interface SessionsUpdateSharedOrgsReq1 {
11
11
  session_id: string;
12
+ add_org_ids?: string[];
13
+ remove_org_ids?: string[];
12
14
  }
@@ -1,11 +1,11 @@
1
1
  export { type SessionsListV1Request } from "./SessionsListV1Request.js";
2
2
  export { type SessionsGetV1Request } from "./SessionsGetV1Request.js";
3
- export { type SessionsTypeaheadOffChrtOrderIdV1Request } from "./SessionsTypeaheadOffChrtOrderIdV1Request.js";
3
+ export { type SessionsTypeaheadV1Request } from "./SessionsTypeaheadV1Request.js";
4
4
  export { type SessionsSearchV1Request } from "./SessionsSearchV1Request.js";
5
- export { type SessionCreateSessionRequest1 } from "./SessionCreateSessionRequest1.js";
6
- export { type SessionUpdateRequest1 } from "./SessionUpdateRequest1.js";
7
- export { type SessionsStartV1Request } from "./SessionsStartV1Request.js";
8
- export { type SessionsPauseRecordingV1Request } from "./SessionsPauseRecordingV1Request.js";
9
- export { type SessionsResumeRecordingV1Request } from "./SessionsResumeRecordingV1Request.js";
5
+ export { type SessionClientCreate1 } from "./SessionClientCreate1.js";
6
+ export { type SessionClientUpdate1 } from "./SessionClientUpdate1.js";
7
+ export { type SessionsUpdateSharedOrgsReq1 } from "./SessionsUpdateSharedOrgsReq1.js";
10
8
  export { type SessionsTerminateV1Request } from "./SessionsTerminateV1Request.js";
11
- export { type SessionsDeleteV1Request } from "./SessionsDeleteV1Request.js";
9
+ export { type SessionAddFlightReq1 } from "./SessionAddFlightReq1.js";
10
+ export { type SessionRemoveFlightReq1 } from "./SessionRemoveFlightReq1.js";
11
+ export { type SessionsSyncFlightStatusV1Request } from "./SessionsSyncFlightStatusV1Request.js";
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../index.js";
5
+ export interface DeviceExpandedRes {
6
+ device: Chrt.DeviceLimitedForList1;
7
+ active_session?: Chrt.Session1 | null;
8
+ active_cargo?: Chrt.Cargo1 | null;
9
+ past_sessions?: Chrt.Session1[];
10
+ past_cargos?: Chrt.Cargo1[];
11
+ }
@@ -2,21 +2,31 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Chrt from "../index.js";
5
- export interface Device1 {
5
+ /**
6
+ * Response model for list/search views.
7
+ *
8
+ * Excludes historical relationship fields:
9
+ * - past_session_ids
10
+ * - past_cargo_ids
11
+ */
12
+ export interface DeviceLimitedForList1 {
13
+ _id: string;
6
14
  schema_version: number;
7
15
  /** Must be a string starting with `org_` */
8
16
  org_id: string;
9
17
  device_mac_address: string;
10
18
  device_token?: string | null;
11
19
  type?: Chrt.TrackingDeviceTypeEnum1 | null;
20
+ comments?: string | null;
21
+ off_chrt_reference_id?: string | null;
12
22
  registered_at_timestamp?: string | null;
13
23
  first_seen_at_timestamp?: string | null;
14
24
  last_seen_at_location?: Chrt.LocationFeature | null;
15
25
  last_seen_at_timestamp?: string | null;
16
26
  last_seen_battery_level?: string | null;
17
- session_id?: string | null;
18
- cargo_id?: string | null;
19
- comments?: string | null;
20
- off_chrt_order_id?: string | null;
21
- _id: string;
27
+ archived?: boolean;
28
+ shared_with_org_ids?: string[];
29
+ off_chrt_shipper_org_id?: string | null;
30
+ active_session_id?: string | null;
31
+ active_cargo_id?: string | null;
22
32
  }
@@ -3,6 +3,6 @@
3
3
  */
4
4
  import * as Chrt from "../index.js";
5
5
  export interface DeviceListRes {
6
- devices: Chrt.Device1[];
6
+ devices: Chrt.DeviceLimitedForList1[];
7
7
  total_count: number;
8
8
  }
@@ -3,6 +3,6 @@
3
3
  */
4
4
  import * as Chrt from "../index.js";
5
5
  export interface DeviceSearchRes {
6
- devices: Chrt.Device1[];
6
+ devices: Chrt.DeviceLimitedForList1[];
7
7
  total_count: number;
8
8
  }
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export type FlightStatusEnum = "unknown" | "scheduled" | "departed_from_gate" | "in_flight" | "landed" | "arrived_at_gate" | "diverted" | "cancelled";
5
+ export declare const FlightStatusEnum: {
6
+ readonly Unknown: "unknown";
7
+ readonly Scheduled: "scheduled";
8
+ readonly DepartedFromGate: "departed_from_gate";
9
+ readonly InFlight: "in_flight";
10
+ readonly Landed: "landed";
11
+ readonly ArrivedAtGate: "arrived_at_gate";
12
+ readonly Diverted: "diverted";
13
+ readonly Cancelled: "cancelled";
14
+ };
@@ -0,0 +1,16 @@
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.FlightStatusEnum = void 0;
7
+ exports.FlightStatusEnum = {
8
+ Unknown: "unknown",
9
+ Scheduled: "scheduled",
10
+ DepartedFromGate: "departed_from_gate",
11
+ InFlight: "in_flight",
12
+ Landed: "landed",
13
+ ArrivedAtGate: "arrived_at_gate",
14
+ Diverted: "diverted",
15
+ Cancelled: "cancelled",
16
+ };
@@ -1,21 +1,28 @@
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
  export interface Session1 {
5
6
  schema_version: number;
7
+ off_chrt_reference_id?: string | null;
8
+ comments?: string | null;
9
+ public?: boolean;
10
+ off_chrt_shipper_org_id?: string | null;
11
+ flight_numbers?: string[];
12
+ fa_flight_ids?: string[];
6
13
  device_id: string;
7
14
  device_mac_address: string;
8
15
  /** Must be a string starting with `org_` */
9
16
  org_id: string;
10
- comments?: string | null;
11
- recording?: boolean;
17
+ shared_with_org_ids?: string[];
18
+ created_at_timestamp: string;
12
19
  terminated?: boolean;
13
- session_created_at_timestamp: string;
14
- recording_initiated_at_timestamp?: string | null;
15
- public?: boolean;
16
- flight_number?: string | null;
17
- fa_flight_ids?: string[];
18
- off_chrt_order_id?: string | null;
20
+ termination_scheduled_for_timestamp?: string | null;
21
+ terminated_at_timestamp?: string | null;
19
22
  fa_alert_ids?: number[];
23
+ flight_loaded_statuses?: string[];
24
+ fa_alert_id_by_flight_number?: Record<string, number>;
25
+ flight_status_by_fa_flight_id?: Record<string, Chrt.FlightStatusEnum>;
26
+ flight_loaded_status_by_fa_flight_id?: Record<string, (string | null) | undefined>;
20
27
  _id: string;
21
28
  }
@@ -1,8 +1,9 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export type SessionSortByEnum = "session_created_at_timestamp" | "recording_initiated_at_timestamp";
4
+ export type SessionSortByEnum = "created_at_timestamp" | "termination_scheduled_for_timestamp" | "terminated_at_timestamp";
5
5
  export declare const SessionSortByEnum: {
6
- readonly SessionCreatedAtTimestamp: "session_created_at_timestamp";
7
- readonly RecordingInitiatedAtTimestamp: "recording_initiated_at_timestamp";
6
+ readonly CreatedAtTimestamp: "created_at_timestamp";
7
+ readonly TerminationScheduledForTimestamp: "termination_scheduled_for_timestamp";
8
+ readonly TerminatedAtTimestamp: "terminated_at_timestamp";
8
9
  };
@@ -5,6 +5,7 @@
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.SessionSortByEnum = void 0;
7
7
  exports.SessionSortByEnum = {
8
- SessionCreatedAtTimestamp: "session_created_at_timestamp",
9
- RecordingInitiatedAtTimestamp: "recording_initiated_at_timestamp",
8
+ CreatedAtTimestamp: "created_at_timestamp",
9
+ TerminationScheduledForTimestamp: "termination_scheduled_for_timestamp",
10
+ TerminatedAtTimestamp: "terminated_at_timestamp",
10
11
  };
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export type TrackingOrgScopeEnum = "owned" | "shared" | "owned_and_shared";
5
+ export declare const TrackingOrgScopeEnum: {
6
+ readonly Owned: "owned";
7
+ readonly Shared: "shared";
8
+ readonly OwnedAndShared: "owned_and_shared";
9
+ };
@@ -0,0 +1,11 @@
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.TrackingOrgScopeEnum = void 0;
7
+ exports.TrackingOrgScopeEnum = {
8
+ Owned: "owned",
9
+ Shared: "shared",
10
+ OwnedAndShared: "owned_and_shared",
11
+ };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export type TrackingTypeaheadFieldEnum = "device_mac_address" | "off_chrt_reference_id";
5
+ export declare const TrackingTypeaheadFieldEnum: {
6
+ readonly DeviceMacAddress: "device_mac_address";
7
+ readonly OffChrtReferenceId: "off_chrt_reference_id";
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.TrackingTypeaheadFieldEnum = void 0;
7
+ exports.TrackingTypeaheadFieldEnum = {
8
+ DeviceMacAddress: "device_mac_address",
9
+ OffChrtReferenceId: "off_chrt_reference_id",
10
+ };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../index.js";
5
+ export interface TrackingTypeaheadResult {
6
+ type: Chrt.TrackingTypeaheadFieldEnum;
7
+ values: string[];
8
+ }
@@ -26,7 +26,8 @@ export * from "./CreateConnectionReq.js";
26
26
  export * from "./CreateOrgPublicDataRes.js";
27
27
  export * from "./CreateStripeConnectAccountRes.js";
28
28
  export * from "./DecodedJwtWithOrgAndUserId.js";
29
- export * from "./Device1.js";
29
+ export * from "./DeviceExpandedRes.js";
30
+ export * from "./DeviceLimitedForList1.js";
30
31
  export * from "./DeviceListRes.js";
31
32
  export * from "./DeviceSearchRes.js";
32
33
  export * from "./DeviceSortByEnum.js";
@@ -40,6 +41,7 @@ export * from "./FlightAwareAlertFlight.js";
40
41
  export * from "./FlightAwareAlertPayload.js";
41
42
  export * from "./FlightAwareWebhookResponse.js";
42
43
  export * from "./FlightInfoForTaskRes.js";
44
+ export * from "./FlightStatusEnum.js";
43
45
  export * from "./FlightTaskActionEnum1.js";
44
46
  export * from "./ForwarderConnectionRes.js";
45
47
  export * from "./ForwarderCourierConnection1.js";
@@ -110,7 +112,6 @@ export * from "./Session1.js";
110
112
  export * from "./SessionByDeviceDataPoint1.js";
111
113
  export * from "./SessionByDeviceDataPointMetadata1.js";
112
114
  export * from "./SessionByDeviceMarkOutliersResponse1.js";
113
- export * from "./SessionDeleteResponse1.js";
114
115
  export * from "./SessionListRes.js";
115
116
  export * from "./SessionSearchRes.js";
116
117
  export * from "./SessionSortByEnum.js";
@@ -172,7 +173,10 @@ export * from "./TimeWindow1.js";
172
173
  export * from "./TimezoneEnum.js";
173
174
  export * from "./TimezoneResponse.js";
174
175
  export * from "./TrackingDeviceTypeEnum1.js";
176
+ export * from "./TrackingOrgScopeEnum.js";
175
177
  export * from "./TrackingSharingSettingsRes.js";
178
+ export * from "./TrackingTypeaheadFieldEnum.js";
179
+ export * from "./TrackingTypeaheadResult.js";
176
180
  export * from "./TrackingWebhookResponse.js";
177
181
  export * from "./UnitsEnum.js";
178
182
  export * from "./UserPrivateData1.js";
@@ -42,7 +42,8 @@ __exportStar(require("./CreateConnectionReq.js"), exports);
42
42
  __exportStar(require("./CreateOrgPublicDataRes.js"), exports);
43
43
  __exportStar(require("./CreateStripeConnectAccountRes.js"), exports);
44
44
  __exportStar(require("./DecodedJwtWithOrgAndUserId.js"), exports);
45
- __exportStar(require("./Device1.js"), exports);
45
+ __exportStar(require("./DeviceExpandedRes.js"), exports);
46
+ __exportStar(require("./DeviceLimitedForList1.js"), exports);
46
47
  __exportStar(require("./DeviceListRes.js"), exports);
47
48
  __exportStar(require("./DeviceSearchRes.js"), exports);
48
49
  __exportStar(require("./DeviceSortByEnum.js"), exports);
@@ -56,6 +57,7 @@ __exportStar(require("./FlightAwareAlertFlight.js"), exports);
56
57
  __exportStar(require("./FlightAwareAlertPayload.js"), exports);
57
58
  __exportStar(require("./FlightAwareWebhookResponse.js"), exports);
58
59
  __exportStar(require("./FlightInfoForTaskRes.js"), exports);
60
+ __exportStar(require("./FlightStatusEnum.js"), exports);
59
61
  __exportStar(require("./FlightTaskActionEnum1.js"), exports);
60
62
  __exportStar(require("./ForwarderConnectionRes.js"), exports);
61
63
  __exportStar(require("./ForwarderCourierConnection1.js"), exports);
@@ -126,7 +128,6 @@ __exportStar(require("./Session1.js"), exports);
126
128
  __exportStar(require("./SessionByDeviceDataPoint1.js"), exports);
127
129
  __exportStar(require("./SessionByDeviceDataPointMetadata1.js"), exports);
128
130
  __exportStar(require("./SessionByDeviceMarkOutliersResponse1.js"), exports);
129
- __exportStar(require("./SessionDeleteResponse1.js"), exports);
130
131
  __exportStar(require("./SessionListRes.js"), exports);
131
132
  __exportStar(require("./SessionSearchRes.js"), exports);
132
133
  __exportStar(require("./SessionSortByEnum.js"), exports);
@@ -188,7 +189,10 @@ __exportStar(require("./TimeWindow1.js"), exports);
188
189
  __exportStar(require("./TimezoneEnum.js"), exports);
189
190
  __exportStar(require("./TimezoneResponse.js"), exports);
190
191
  __exportStar(require("./TrackingDeviceTypeEnum1.js"), exports);
192
+ __exportStar(require("./TrackingOrgScopeEnum.js"), exports);
191
193
  __exportStar(require("./TrackingSharingSettingsRes.js"), exports);
194
+ __exportStar(require("./TrackingTypeaheadFieldEnum.js"), exports);
195
+ __exportStar(require("./TrackingTypeaheadResult.js"), exports);
192
196
  __exportStar(require("./TrackingWebhookResponse.js"), exports);
193
197
  __exportStar(require("./UnitsEnum.js"), exports);
194
198
  __exportStar(require("./UserPrivateData1.js"), exports);
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.421.0";
1
+ export declare const SDK_VERSION = "1.431.0";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "1.421.0";
4
+ exports.SDK_VERSION = "1.431.0";
@@ -31,8 +31,8 @@ export class ChrtClient {
31
31
  this._options = Object.assign(Object.assign({}, _options), { headers: mergeHeaders({
32
32
  "X-Fern-Language": "JavaScript",
33
33
  "X-Fern-SDK-Name": "@chrt-inc/typescript-sdk",
34
- "X-Fern-SDK-Version": "1.421.0",
35
- "User-Agent": "@chrt-inc/typescript-sdk/1.421.0",
34
+ "X-Fern-SDK-Version": "1.431.0",
35
+ "User-Agent": "@chrt-inc/typescript-sdk/1.431.0",
36
36
  "X-Fern-Runtime": core.RUNTIME.type,
37
37
  "X-Fern-Runtime-Version": core.RUNTIME.version,
38
38
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });