@chrt-inc/typescript-sdk 1.692.0 → 1.704.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 (186) hide show
  1. package/dist/cjs/Client.js +2 -2
  2. package/dist/cjs/api/resources/operations/client/Client.d.ts +6 -0
  3. package/dist/cjs/api/resources/operations/client/Client.js +12 -2
  4. package/dist/cjs/api/resources/operations/resources/cases/client/Client.d.ts +100 -0
  5. package/dist/cjs/api/resources/operations/resources/cases/client/Client.js +394 -0
  6. package/dist/cjs/api/resources/operations/resources/cases/client/requests/CaseChecksApplyChecklistReq.d.ts +12 -0
  7. package/dist/cjs/api/resources/operations/resources/cases/client/requests/CaseChecksApplyChecklistReq.js +5 -0
  8. package/dist/cjs/api/resources/operations/resources/cases/client/requests/CaseChecksRecordImageAnalysisResultsReq.d.ts +15 -0
  9. package/dist/cjs/api/resources/operations/resources/cases/client/requests/CaseChecksRecordImageAnalysisResultsReq.js +5 -0
  10. package/dist/cjs/api/resources/operations/resources/cases/client/requests/index.d.ts +2 -0
  11. package/dist/cjs/api/resources/operations/resources/checklists/client/Client.d.ts +150 -0
  12. package/dist/cjs/api/resources/operations/resources/checklists/client/Client.js +581 -0
  13. package/dist/cjs/api/resources/operations/resources/checklists/client/index.d.ts +2 -0
  14. package/dist/cjs/api/resources/operations/resources/checklists/client/index.js +17 -0
  15. package/dist/cjs/api/resources/operations/resources/checklists/client/requests/ChecklistChecksAdd1.d.ts +11 -0
  16. package/dist/cjs/api/resources/operations/resources/checklists/client/requests/ChecklistChecksAdd1.js +5 -0
  17. package/dist/cjs/api/resources/operations/resources/checklists/client/requests/ChecklistChecksRemove1.d.ts +11 -0
  18. package/dist/cjs/api/resources/operations/resources/checklists/client/requests/ChecklistChecksRemove1.js +5 -0
  19. package/dist/cjs/api/resources/operations/resources/checklists/client/requests/ChecklistClientCreate1.d.ts +17 -0
  20. package/dist/cjs/api/resources/operations/resources/checklists/client/requests/ChecklistClientCreate1.js +5 -0
  21. package/dist/cjs/api/resources/operations/resources/checklists/client/requests/ChecklistClientUpdate1.d.ts +12 -0
  22. package/dist/cjs/api/resources/operations/resources/checklists/client/requests/ChecklistClientUpdate1.js +5 -0
  23. package/dist/cjs/api/resources/operations/resources/checklists/client/requests/ChecklistsListV1Request.d.ts +24 -0
  24. package/dist/cjs/api/resources/operations/resources/checklists/client/requests/ChecklistsListV1Request.js +5 -0
  25. package/dist/cjs/api/resources/operations/resources/checklists/client/requests/index.d.ts +5 -0
  26. package/dist/cjs/api/resources/operations/resources/checklists/client/requests/index.js +2 -0
  27. package/dist/cjs/api/resources/operations/resources/checklists/index.d.ts +1 -0
  28. package/dist/cjs/api/resources/operations/resources/checklists/index.js +17 -0
  29. package/dist/cjs/api/resources/operations/resources/index.d.ts +4 -0
  30. package/dist/cjs/api/resources/operations/resources/index.js +5 -1
  31. package/dist/cjs/api/resources/operations/resources/operationsTasks/client/Client.d.ts +170 -0
  32. package/dist/cjs/api/resources/operations/resources/operationsTasks/client/Client.js +653 -0
  33. package/dist/cjs/api/resources/operations/resources/operationsTasks/client/index.d.ts +2 -0
  34. package/dist/cjs/api/resources/operations/resources/operationsTasks/client/index.js +17 -0
  35. package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/OperationsTaskAddCommentReq1.d.ts +12 -0
  36. package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/OperationsTaskAddCommentReq1.js +5 -0
  37. package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/OperationsTaskClientCreate1.d.ts +19 -0
  38. package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/OperationsTaskClientCreate1.js +5 -0
  39. package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/OperationsTaskClientUpdate1.d.ts +12 -0
  40. package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/OperationsTaskClientUpdate1.js +5 -0
  41. package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/OperationsTasksListV1Request.d.ts +33 -0
  42. package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/OperationsTasksListV1Request.js +5 -0
  43. package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/index.d.ts +4 -0
  44. package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/index.js +2 -0
  45. package/dist/cjs/api/resources/operations/resources/operationsTasks/index.d.ts +1 -0
  46. package/dist/cjs/api/resources/operations/resources/operationsTasks/index.js +17 -0
  47. package/dist/cjs/api/resources/shipping/resources/taskArtifacts/resources/s3Object/client/Client.d.ts +26 -0
  48. package/dist/cjs/api/resources/shipping/resources/taskArtifacts/resources/s3Object/client/Client.js +75 -0
  49. package/dist/cjs/api/resources/tracking/resources/sessions/client/Client.d.ts +3 -0
  50. package/dist/cjs/api/resources/tracking/resources/sessions/client/Client.js +17 -5
  51. package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/SessionsListV1Request.d.ts +9 -0
  52. package/dist/cjs/api/types/AiImageDescription.d.ts +30 -0
  53. package/dist/cjs/api/types/AiImageDescription.js +5 -0
  54. package/dist/cjs/api/types/Case1.d.ts +4 -0
  55. package/dist/cjs/api/types/CaseChecksDisableReq.d.ts +7 -0
  56. package/dist/cjs/api/types/CaseChecksDisableReq.js +5 -0
  57. package/dist/cjs/api/types/CaseChecksDismissReq.d.ts +8 -0
  58. package/dist/cjs/api/types/CaseChecksDismissReq.js +5 -0
  59. package/dist/cjs/api/types/CaseChecksSummary1.d.ts +27 -0
  60. package/dist/cjs/api/types/CaseChecksSummary1.js +5 -0
  61. package/dist/cjs/api/types/Check1.d.ts +33 -0
  62. package/dist/cjs/api/types/Check1.js +5 -0
  63. package/dist/cjs/api/types/CheckEnum.d.ts +46 -0
  64. package/dist/cjs/api/types/CheckEnum.js +23 -0
  65. package/dist/cjs/api/types/CheckStatusEnum.d.ts +32 -0
  66. package/dist/cjs/api/types/CheckStatusEnum.js +15 -0
  67. package/dist/cjs/api/types/Checklist1.d.ts +18 -0
  68. package/dist/cjs/api/types/Checklist1.js +5 -0
  69. package/dist/cjs/api/types/ChecklistCheck1.d.ts +15 -0
  70. package/dist/cjs/api/types/ChecklistCheck1.js +5 -0
  71. package/dist/cjs/api/types/ChecklistListRes.d.ts +8 -0
  72. package/dist/cjs/api/types/ChecklistListRes.js +5 -0
  73. package/dist/cjs/api/types/ChecklistSortByEnum.d.ts +9 -0
  74. package/dist/cjs/api/types/ChecklistSortByEnum.js +11 -0
  75. package/dist/cjs/api/types/LlmModelEnum.d.ts +12 -0
  76. package/dist/cjs/api/types/LlmModelEnum.js +14 -0
  77. package/dist/cjs/api/types/OperationsTask1.d.ts +19 -0
  78. package/dist/cjs/api/types/OperationsTask1.js +5 -0
  79. package/dist/cjs/api/types/OperationsTaskComment1.d.ts +10 -0
  80. package/dist/cjs/api/types/OperationsTaskComment1.js +5 -0
  81. package/dist/cjs/api/types/OperationsTaskListRes.d.ts +8 -0
  82. package/dist/cjs/api/types/OperationsTaskListRes.js +5 -0
  83. package/dist/cjs/api/types/OperationsTaskSortByEnum.d.ts +8 -0
  84. package/dist/cjs/api/types/OperationsTaskSortByEnum.js +10 -0
  85. package/dist/cjs/api/types/Session1.d.ts +2 -0
  86. package/dist/cjs/api/types/SessionSortByEnum.d.ts +2 -1
  87. package/dist/cjs/api/types/SessionSortByEnum.js +1 -0
  88. package/dist/cjs/api/types/TaskArtifactS3ObjectMetadata1.d.ts +2 -0
  89. package/dist/cjs/api/types/index.d.ts +16 -0
  90. package/dist/cjs/api/types/index.js +16 -0
  91. package/dist/cjs/version.d.ts +1 -1
  92. package/dist/cjs/version.js +1 -1
  93. package/dist/esm/Client.mjs +2 -2
  94. package/dist/esm/api/resources/operations/client/Client.d.mts +6 -0
  95. package/dist/esm/api/resources/operations/client/Client.mjs +10 -0
  96. package/dist/esm/api/resources/operations/resources/cases/client/Client.d.mts +100 -0
  97. package/dist/esm/api/resources/operations/resources/cases/client/Client.mjs +394 -0
  98. package/dist/esm/api/resources/operations/resources/cases/client/requests/CaseChecksApplyChecklistReq.d.mts +12 -0
  99. package/dist/esm/api/resources/operations/resources/cases/client/requests/CaseChecksApplyChecklistReq.mjs +4 -0
  100. package/dist/esm/api/resources/operations/resources/cases/client/requests/CaseChecksRecordImageAnalysisResultsReq.d.mts +15 -0
  101. package/dist/esm/api/resources/operations/resources/cases/client/requests/CaseChecksRecordImageAnalysisResultsReq.mjs +4 -0
  102. package/dist/esm/api/resources/operations/resources/cases/client/requests/index.d.mts +2 -0
  103. package/dist/esm/api/resources/operations/resources/checklists/client/Client.d.mts +150 -0
  104. package/dist/esm/api/resources/operations/resources/checklists/client/Client.mjs +544 -0
  105. package/dist/esm/api/resources/operations/resources/checklists/client/index.d.mts +2 -0
  106. package/dist/esm/api/resources/operations/resources/checklists/client/index.mjs +1 -0
  107. package/dist/esm/api/resources/operations/resources/checklists/client/requests/ChecklistChecksAdd1.d.mts +11 -0
  108. package/dist/esm/api/resources/operations/resources/checklists/client/requests/ChecklistChecksAdd1.mjs +4 -0
  109. package/dist/esm/api/resources/operations/resources/checklists/client/requests/ChecklistChecksRemove1.d.mts +11 -0
  110. package/dist/esm/api/resources/operations/resources/checklists/client/requests/ChecklistChecksRemove1.mjs +4 -0
  111. package/dist/esm/api/resources/operations/resources/checklists/client/requests/ChecklistClientCreate1.d.mts +17 -0
  112. package/dist/esm/api/resources/operations/resources/checklists/client/requests/ChecklistClientCreate1.mjs +4 -0
  113. package/dist/esm/api/resources/operations/resources/checklists/client/requests/ChecklistClientUpdate1.d.mts +12 -0
  114. package/dist/esm/api/resources/operations/resources/checklists/client/requests/ChecklistClientUpdate1.mjs +4 -0
  115. package/dist/esm/api/resources/operations/resources/checklists/client/requests/ChecklistsListV1Request.d.mts +24 -0
  116. package/dist/esm/api/resources/operations/resources/checklists/client/requests/ChecklistsListV1Request.mjs +4 -0
  117. package/dist/esm/api/resources/operations/resources/checklists/client/requests/index.d.mts +5 -0
  118. package/dist/esm/api/resources/operations/resources/checklists/client/requests/index.mjs +1 -0
  119. package/dist/esm/api/resources/operations/resources/checklists/index.d.mts +1 -0
  120. package/dist/esm/api/resources/operations/resources/checklists/index.mjs +1 -0
  121. package/dist/esm/api/resources/operations/resources/index.d.mts +4 -0
  122. package/dist/esm/api/resources/operations/resources/index.mjs +4 -0
  123. package/dist/esm/api/resources/operations/resources/operationsTasks/client/Client.d.mts +170 -0
  124. package/dist/esm/api/resources/operations/resources/operationsTasks/client/Client.mjs +616 -0
  125. package/dist/esm/api/resources/operations/resources/operationsTasks/client/index.d.mts +2 -0
  126. package/dist/esm/api/resources/operations/resources/operationsTasks/client/index.mjs +1 -0
  127. package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/OperationsTaskAddCommentReq1.d.mts +12 -0
  128. package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/OperationsTaskAddCommentReq1.mjs +4 -0
  129. package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/OperationsTaskClientCreate1.d.mts +19 -0
  130. package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/OperationsTaskClientCreate1.mjs +4 -0
  131. package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/OperationsTaskClientUpdate1.d.mts +12 -0
  132. package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/OperationsTaskClientUpdate1.mjs +4 -0
  133. package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/OperationsTasksListV1Request.d.mts +33 -0
  134. package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/OperationsTasksListV1Request.mjs +4 -0
  135. package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/index.d.mts +4 -0
  136. package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/index.mjs +1 -0
  137. package/dist/esm/api/resources/operations/resources/operationsTasks/index.d.mts +1 -0
  138. package/dist/esm/api/resources/operations/resources/operationsTasks/index.mjs +1 -0
  139. package/dist/esm/api/resources/shipping/resources/taskArtifacts/resources/s3Object/client/Client.d.mts +26 -0
  140. package/dist/esm/api/resources/shipping/resources/taskArtifacts/resources/s3Object/client/Client.mjs +75 -0
  141. package/dist/esm/api/resources/tracking/resources/sessions/client/Client.d.mts +3 -0
  142. package/dist/esm/api/resources/tracking/resources/sessions/client/Client.mjs +17 -5
  143. package/dist/esm/api/resources/tracking/resources/sessions/client/requests/SessionsListV1Request.d.mts +9 -0
  144. package/dist/esm/api/types/AiImageDescription.d.mts +30 -0
  145. package/dist/esm/api/types/AiImageDescription.mjs +4 -0
  146. package/dist/esm/api/types/Case1.d.mts +4 -0
  147. package/dist/esm/api/types/CaseChecksDisableReq.d.mts +7 -0
  148. package/dist/esm/api/types/CaseChecksDisableReq.mjs +4 -0
  149. package/dist/esm/api/types/CaseChecksDismissReq.d.mts +8 -0
  150. package/dist/esm/api/types/CaseChecksDismissReq.mjs +4 -0
  151. package/dist/esm/api/types/CaseChecksSummary1.d.mts +27 -0
  152. package/dist/esm/api/types/CaseChecksSummary1.mjs +4 -0
  153. package/dist/esm/api/types/Check1.d.mts +33 -0
  154. package/dist/esm/api/types/Check1.mjs +4 -0
  155. package/dist/esm/api/types/CheckEnum.d.mts +46 -0
  156. package/dist/esm/api/types/CheckEnum.mjs +20 -0
  157. package/dist/esm/api/types/CheckStatusEnum.d.mts +32 -0
  158. package/dist/esm/api/types/CheckStatusEnum.mjs +12 -0
  159. package/dist/esm/api/types/Checklist1.d.mts +18 -0
  160. package/dist/esm/api/types/Checklist1.mjs +4 -0
  161. package/dist/esm/api/types/ChecklistCheck1.d.mts +15 -0
  162. package/dist/esm/api/types/ChecklistCheck1.mjs +4 -0
  163. package/dist/esm/api/types/ChecklistListRes.d.mts +8 -0
  164. package/dist/esm/api/types/ChecklistListRes.mjs +4 -0
  165. package/dist/esm/api/types/ChecklistSortByEnum.d.mts +9 -0
  166. package/dist/esm/api/types/ChecklistSortByEnum.mjs +8 -0
  167. package/dist/esm/api/types/LlmModelEnum.d.mts +12 -0
  168. package/dist/esm/api/types/LlmModelEnum.mjs +11 -0
  169. package/dist/esm/api/types/OperationsTask1.d.mts +19 -0
  170. package/dist/esm/api/types/OperationsTask1.mjs +4 -0
  171. package/dist/esm/api/types/OperationsTaskComment1.d.mts +10 -0
  172. package/dist/esm/api/types/OperationsTaskComment1.mjs +4 -0
  173. package/dist/esm/api/types/OperationsTaskListRes.d.mts +8 -0
  174. package/dist/esm/api/types/OperationsTaskListRes.mjs +4 -0
  175. package/dist/esm/api/types/OperationsTaskSortByEnum.d.mts +8 -0
  176. package/dist/esm/api/types/OperationsTaskSortByEnum.mjs +7 -0
  177. package/dist/esm/api/types/Session1.d.mts +2 -0
  178. package/dist/esm/api/types/SessionSortByEnum.d.mts +2 -1
  179. package/dist/esm/api/types/SessionSortByEnum.mjs +1 -0
  180. package/dist/esm/api/types/TaskArtifactS3ObjectMetadata1.d.mts +2 -0
  181. package/dist/esm/api/types/index.d.mts +16 -0
  182. package/dist/esm/api/types/index.mjs +16 -0
  183. package/dist/esm/version.d.mts +1 -1
  184. package/dist/esm/version.mjs +1 -1
  185. package/package.json +1 -1
  186. package/reference.md +1829 -153
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./requests/index.js"), exports);
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {
7
+ * comment: "comment"
8
+ * }
9
+ */
10
+ export interface OperationsTaskAddCommentReq1 {
11
+ comment: string;
12
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,19 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {
7
+ * schema_version: 1,
8
+ * case_id: "case_id",
9
+ * title: "title",
10
+ * description: "description"
11
+ * }
12
+ */
13
+ export interface OperationsTaskClientCreate1 {
14
+ schema_version: number;
15
+ case_id: string;
16
+ title: string;
17
+ description: string;
18
+ deadline_timestamp?: string;
19
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {}
7
+ */
8
+ export interface OperationsTaskClientUpdate1 {
9
+ title?: string | null;
10
+ description?: string | null;
11
+ deadline_timestamp?: string | null;
12
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,33 @@
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
+ * sort_by: "deadline_timestamp",
9
+ * sort_order: "asc",
10
+ * page: 1,
11
+ * page_size: 1,
12
+ * filter_case_id: "filter_case_id",
13
+ * filter_completed: true,
14
+ * filter_deadline_gte: "2024-01-15T09:30:00Z",
15
+ * filter_deadline_lte: "2024-01-15T09:30:00Z"
16
+ * }
17
+ */
18
+ export interface OperationsTasksListV1Request {
19
+ /** Field to sort by */
20
+ sort_by?: Chrt.OperationsTaskSortByEnum | null;
21
+ /** Sort order (asc or desc) */
22
+ sort_order?: Chrt.SortOrderEnum | null;
23
+ page?: number | null;
24
+ page_size?: number | null;
25
+ /** Filter by case id */
26
+ filter_case_id?: string | null;
27
+ /** Filter by completed flag. Defaults to False for incomplete tasks. */
28
+ filter_completed?: boolean | null;
29
+ /** Filter to tasks with deadline >= this timestamp */
30
+ filter_deadline_gte?: string | null;
31
+ /** Filter to tasks with deadline <= this timestamp */
32
+ filter_deadline_lte?: string | null;
33
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ export { type OperationsTasksListV1Request } from "./OperationsTasksListV1Request.js";
2
+ export { type OperationsTaskClientUpdate1 } from "./OperationsTaskClientUpdate1.js";
3
+ export { type OperationsTaskClientCreate1 } from "./OperationsTaskClientCreate1.js";
4
+ export { type OperationsTaskAddCommentReq1 } from "./OperationsTaskAddCommentReq1.js";
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export * from "./client/index.js";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./client/index.js"), exports);
@@ -79,5 +79,31 @@ export declare class S3Object {
79
79
  */
80
80
  deleteV1(taskArtifactS3ObjectMetadataId: string, requestOptions?: S3Object.RequestOptions): core.HttpResponsePromise<boolean>;
81
81
  private __deleteV1;
82
+ /**
83
+ * Writes the AI-generated image description onto an existing TaskArtifactS3ObjectMetadata. Called by the shipping_task_image_analysis Temporal workflow via a delegation JWT. | authz_personas=[driver_for_executor, executor_org_operators, shipper_org_operators, coordinator_org_operators] | (AIImageDescription) -> (bool)
84
+ *
85
+ * @param {string} taskArtifactS3ObjectMetadataId
86
+ * @param {Chrt.AiImageDescription} request
87
+ * @param {S3Object.RequestOptions} requestOptions - Request-specific configuration.
88
+ *
89
+ * @throws {@link Chrt.UnprocessableEntityError}
90
+ *
91
+ * @example
92
+ * await client.shipping.taskArtifacts.s3Object.writeAiImageDescriptionV1("task_artifact_s3_object_metadata_id", {
93
+ * model: "gpt-5.5",
94
+ * summary: "summary",
95
+ * package_types: ["package_types"],
96
+ * package_appearance: "package_appearance",
97
+ * readable_package_text: ["readable_package_text"],
98
+ * cargo_identity_assessment: "cargo_identity_assessment",
99
+ * location_description: "location_description",
100
+ * location_identifiers: ["location_identifiers"],
101
+ * completion_evidence: "completion_evidence",
102
+ * proof_notes: ["proof_notes"],
103
+ * dispute_defensibility: "dispute_defensibility"
104
+ * })
105
+ */
106
+ writeAiImageDescriptionV1(taskArtifactS3ObjectMetadataId: string, request: Chrt.AiImageDescription, requestOptions?: S3Object.RequestOptions): core.HttpResponsePromise<boolean>;
107
+ private __writeAiImageDescriptionV1;
82
108
  protected _getAuthorizationHeader(): Promise<string | undefined>;
83
109
  }
@@ -295,6 +295,81 @@ class S3Object {
295
295
  }
296
296
  });
297
297
  }
298
+ /**
299
+ * Writes the AI-generated image description onto an existing TaskArtifactS3ObjectMetadata. Called by the shipping_task_image_analysis Temporal workflow via a delegation JWT. | authz_personas=[driver_for_executor, executor_org_operators, shipper_org_operators, coordinator_org_operators] | (AIImageDescription) -> (bool)
300
+ *
301
+ * @param {string} taskArtifactS3ObjectMetadataId
302
+ * @param {Chrt.AiImageDescription} request
303
+ * @param {S3Object.RequestOptions} requestOptions - Request-specific configuration.
304
+ *
305
+ * @throws {@link Chrt.UnprocessableEntityError}
306
+ *
307
+ * @example
308
+ * await client.shipping.taskArtifacts.s3Object.writeAiImageDescriptionV1("task_artifact_s3_object_metadata_id", {
309
+ * model: "gpt-5.5",
310
+ * summary: "summary",
311
+ * package_types: ["package_types"],
312
+ * package_appearance: "package_appearance",
313
+ * readable_package_text: ["readable_package_text"],
314
+ * cargo_identity_assessment: "cargo_identity_assessment",
315
+ * location_description: "location_description",
316
+ * location_identifiers: ["location_identifiers"],
317
+ * completion_evidence: "completion_evidence",
318
+ * proof_notes: ["proof_notes"],
319
+ * dispute_defensibility: "dispute_defensibility"
320
+ * })
321
+ */
322
+ writeAiImageDescriptionV1(taskArtifactS3ObjectMetadataId, request, requestOptions) {
323
+ return core.HttpResponsePromise.fromPromise(this.__writeAiImageDescriptionV1(taskArtifactS3ObjectMetadataId, request, requestOptions));
324
+ }
325
+ __writeAiImageDescriptionV1(taskArtifactS3ObjectMetadataId, request, requestOptions) {
326
+ return __awaiter(this, void 0, void 0, function* () {
327
+ var _a, _b, _c, _d;
328
+ let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
329
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
330
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, `shipping/task_artifacts/s3_object/ai_image_description/v1/${encodeURIComponent(taskArtifactS3ObjectMetadataId)}`),
331
+ method: "PATCH",
332
+ headers: _headers,
333
+ contentType: "application/json",
334
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
335
+ requestType: "json",
336
+ body: request,
337
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
338
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
339
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
340
+ });
341
+ if (_response.ok) {
342
+ return { data: _response.body, rawResponse: _response.rawResponse };
343
+ }
344
+ if (_response.error.reason === "status-code") {
345
+ switch (_response.error.statusCode) {
346
+ case 422:
347
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
348
+ default:
349
+ throw new errors.ChrtError({
350
+ statusCode: _response.error.statusCode,
351
+ body: _response.error.body,
352
+ rawResponse: _response.rawResponse,
353
+ });
354
+ }
355
+ }
356
+ switch (_response.error.reason) {
357
+ case "non-json":
358
+ throw new errors.ChrtError({
359
+ statusCode: _response.error.statusCode,
360
+ body: _response.error.rawBody,
361
+ rawResponse: _response.rawResponse,
362
+ });
363
+ case "timeout":
364
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /shipping/task_artifacts/s3_object/ai_image_description/v1/{task_artifact_s3_object_metadata_id}.");
365
+ case "unknown":
366
+ throw new errors.ChrtError({
367
+ message: _response.error.errorMessage,
368
+ rawResponse: _response.rawResponse,
369
+ });
370
+ }
371
+ });
372
+ }
298
373
  _getAuthorizationHeader() {
299
374
  return __awaiter(this, void 0, void 0, function* () {
300
375
  const bearer = yield core.Supplier.get(this._options.token);
@@ -53,8 +53,11 @@ export declare class Sessions {
53
53
  * filter_flight_number: "filter_flight_number",
54
54
  * filter_fa_flight_id: "filter_fa_flight_id",
55
55
  * filter_flight_loaded_status: "filter_flight_loaded_status",
56
+ * filter_has_last_seen: true,
56
57
  * filter_created_at_timestamp_gte: "2024-01-15T09:30:00Z",
57
58
  * filter_created_at_timestamp_lte: "2024-01-15T09:30:00Z",
59
+ * filter_last_seen_at_timestamp_gte: "2024-01-15T09:30:00Z",
60
+ * filter_last_seen_at_timestamp_lte: "2024-01-15T09:30:00Z",
58
61
  * filter_termination_scheduled_for_timestamp_gte: "2024-01-15T09:30:00Z",
59
62
  * filter_termination_scheduled_for_timestamp_lte: "2024-01-15T09:30:00Z",
60
63
  * filter_terminated_at_timestamp_gte: "2024-01-15T09:30:00Z",
@@ -89,8 +89,11 @@ class Sessions {
89
89
  * filter_flight_number: "filter_flight_number",
90
90
  * filter_fa_flight_id: "filter_fa_flight_id",
91
91
  * filter_flight_loaded_status: "filter_flight_loaded_status",
92
+ * filter_has_last_seen: true,
92
93
  * filter_created_at_timestamp_gte: "2024-01-15T09:30:00Z",
93
94
  * filter_created_at_timestamp_lte: "2024-01-15T09:30:00Z",
95
+ * filter_last_seen_at_timestamp_gte: "2024-01-15T09:30:00Z",
96
+ * filter_last_seen_at_timestamp_lte: "2024-01-15T09:30:00Z",
94
97
  * filter_termination_scheduled_for_timestamp_gte: "2024-01-15T09:30:00Z",
95
98
  * filter_termination_scheduled_for_timestamp_lte: "2024-01-15T09:30:00Z",
96
99
  * filter_terminated_at_timestamp_gte: "2024-01-15T09:30:00Z",
@@ -102,8 +105,8 @@ class Sessions {
102
105
  }
103
106
  __listV1() {
104
107
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
105
- var _a, _b, _c, _d, _e, _f, _g, _h;
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;
108
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
109
+ const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, search, org_scope: orgScope, filter_terminated: filterTerminated, filter_public: filterPublic, filter_device_id: filterDeviceId, filter_off_chrt_reference_id: filterOffChrtReferenceId, filter_flight_number: filterFlightNumber, filter_fa_flight_id: filterFaFlightId, filter_flight_loaded_status: filterFlightLoadedStatus, filter_has_last_seen: filterHasLastSeen, filter_created_at_timestamp_gte: filterCreatedAtTimestampGte, filter_created_at_timestamp_lte: filterCreatedAtTimestampLte, filter_last_seen_at_timestamp_gte: filterLastSeenAtTimestampGte, filter_last_seen_at_timestamp_lte: filterLastSeenAtTimestampLte, filter_termination_scheduled_for_timestamp_gte: filterTerminationScheduledForTimestampGte, filter_termination_scheduled_for_timestamp_lte: filterTerminationScheduledForTimestampLte, filter_terminated_at_timestamp_gte: filterTerminatedAtTimestampGte, filter_terminated_at_timestamp_lte: filterTerminatedAtTimestampLte, } = request;
107
110
  const _queryParams = {};
108
111
  if (sortBy !== undefined) {
109
112
  _queryParams["sort_by"] = sortBy;
@@ -144,12 +147,21 @@ class Sessions {
144
147
  if (filterFlightLoadedStatus !== undefined) {
145
148
  _queryParams["filter_flight_loaded_status"] = filterFlightLoadedStatus;
146
149
  }
150
+ if (filterHasLastSeen !== undefined) {
151
+ _queryParams["filter_has_last_seen"] = (_e = filterHasLastSeen === null || filterHasLastSeen === void 0 ? void 0 : filterHasLastSeen.toString()) !== null && _e !== void 0 ? _e : null;
152
+ }
147
153
  if (filterCreatedAtTimestampGte !== undefined) {
148
154
  _queryParams["filter_created_at_timestamp_gte"] = filterCreatedAtTimestampGte;
149
155
  }
150
156
  if (filterCreatedAtTimestampLte !== undefined) {
151
157
  _queryParams["filter_created_at_timestamp_lte"] = filterCreatedAtTimestampLte;
152
158
  }
159
+ if (filterLastSeenAtTimestampGte !== undefined) {
160
+ _queryParams["filter_last_seen_at_timestamp_gte"] = filterLastSeenAtTimestampGte;
161
+ }
162
+ if (filterLastSeenAtTimestampLte !== undefined) {
163
+ _queryParams["filter_last_seen_at_timestamp_lte"] = filterLastSeenAtTimestampLte;
164
+ }
153
165
  if (filterTerminationScheduledForTimestampGte !== undefined) {
154
166
  _queryParams["filter_termination_scheduled_for_timestamp_gte"] = filterTerminationScheduledForTimestampGte;
155
167
  }
@@ -162,9 +174,9 @@ class Sessions {
162
174
  if (filterTerminatedAtTimestampLte !== undefined) {
163
175
  _queryParams["filter_terminated_at_timestamp_lte"] = filterTerminatedAtTimestampLte;
164
176
  }
165
- let _headers = (0, headers_js_1.mergeHeaders)((_e = this._options) === null || _e === void 0 ? void 0 : _e.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
166
- const _response = yield ((_f = this._options.fetcher) !== null && _f !== void 0 ? _f : core.fetcher)({
167
- url: core.url.join((_h = (_g = (yield core.Supplier.get(this._options.baseUrl))) !== null && _g !== void 0 ? _g : (yield core.Supplier.get(this._options.environment))) !== null && _h !== void 0 ? _h : environments.ChrtEnvironment.Local, "tracking/sessions/list/v1"),
177
+ let _headers = (0, headers_js_1.mergeHeaders)((_f = this._options) === null || _f === void 0 ? void 0 : _f.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
178
+ const _response = yield ((_g = this._options.fetcher) !== null && _g !== void 0 ? _g : core.fetcher)({
179
+ url: core.url.join((_j = (_h = (yield core.Supplier.get(this._options.baseUrl))) !== null && _h !== void 0 ? _h : (yield core.Supplier.get(this._options.environment))) !== null && _j !== void 0 ? _j : environments.ChrtEnvironment.Local, "tracking/sessions/list/v1"),
168
180
  method: "GET",
169
181
  headers: _headers,
170
182
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
@@ -18,8 +18,11 @@ import * as Chrt from "../../../../../../index.js";
18
18
  * filter_flight_number: "filter_flight_number",
19
19
  * filter_fa_flight_id: "filter_fa_flight_id",
20
20
  * filter_flight_loaded_status: "filter_flight_loaded_status",
21
+ * filter_has_last_seen: true,
21
22
  * filter_created_at_timestamp_gte: "2024-01-15T09:30:00Z",
22
23
  * filter_created_at_timestamp_lte: "2024-01-15T09:30:00Z",
24
+ * filter_last_seen_at_timestamp_gte: "2024-01-15T09:30:00Z",
25
+ * filter_last_seen_at_timestamp_lte: "2024-01-15T09:30:00Z",
23
26
  * filter_termination_scheduled_for_timestamp_gte: "2024-01-15T09:30:00Z",
24
27
  * filter_termination_scheduled_for_timestamp_lte: "2024-01-15T09:30:00Z",
25
28
  * filter_terminated_at_timestamp_gte: "2024-01-15T09:30:00Z",
@@ -51,10 +54,16 @@ export interface SessionsListV1Request {
51
54
  filter_fa_flight_id?: string | null;
52
55
  /** Filter by flight loaded status (exact match) */
53
56
  filter_flight_loaded_status?: string | null;
57
+ /** Filter by whether both last_seen_at_location and last_seen_at_timestamp are set */
58
+ filter_has_last_seen?: boolean | null;
54
59
  /** Filter by created_at_timestamp >= value */
55
60
  filter_created_at_timestamp_gte?: string | null;
56
61
  /** Filter by created_at_timestamp <= value */
57
62
  filter_created_at_timestamp_lte?: string | null;
63
+ /** Filter by last_seen_at_timestamp >= value */
64
+ filter_last_seen_at_timestamp_gte?: string | null;
65
+ /** Filter by last_seen_at_timestamp <= value */
66
+ filter_last_seen_at_timestamp_lte?: string | null;
58
67
  /** Filter by termination_scheduled_for_timestamp >= value */
59
68
  filter_termination_scheduled_for_timestamp_gte?: string | null;
60
69
  /** Filter by termination_scheduled_for_timestamp <= value */
@@ -0,0 +1,30 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../index.js";
5
+ /**
6
+ * Structured, factual description of a task-artifact image produced by an LLM.
7
+ *
8
+ * Stored on `TaskArtifactS3ObjectMetadata1.ai_image_description` so downstream
9
+ * consumers (Q&A, search, audit, case checks) can answer questions about the
10
+ * artifact without re-sending the image. `model` records which LLM produced
11
+ * the description; `provider` is derived from `model` so the two can never
12
+ * disagree.
13
+ */
14
+ export interface AiImageDescription {
15
+ schema_version?: number;
16
+ model: Chrt.LlmModelEnum;
17
+ summary: string;
18
+ package_count?: number | null;
19
+ package_types: string[];
20
+ package_appearance: string;
21
+ readable_package_text: string[];
22
+ cargo_identity_assessment: string;
23
+ location_description: string;
24
+ location_identifiers: string[];
25
+ completion_evidence: string;
26
+ proof_notes: string[];
27
+ dispute_defensibility: string;
28
+ searchable_facts?: string[];
29
+ unresolved_questions?: string[];
30
+ }
@@ -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 });
@@ -17,6 +17,10 @@ export interface Case1 {
17
17
  status?: Chrt.CaseStatusEnum;
18
18
  needs_action?: boolean;
19
19
  messages?: Chrt.CaseMessage1[];
20
+ enabled_check_keys?: Chrt.CheckEnum[];
21
+ disabled_check_keys?: Chrt.CheckEnum[];
22
+ checks?: Chrt.Check1[];
23
+ checks_summary?: Chrt.CaseChecksSummary1;
20
24
  /** Must be a string starting with `user_` */
21
25
  created_by_user_id: string;
22
26
  created_at: string;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../index.js";
5
+ export interface CaseChecksDisableReq {
6
+ check: Chrt.CheckEnum;
7
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,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 CaseChecksDismissReq {
6
+ check: Chrt.CheckEnum;
7
+ entity_id: string;
8
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,27 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../index.js";
5
+ /**
6
+ * Denormalized summary cache for `Case.checks` plus applied-Checklist log.
7
+ *
8
+ * Embedded at `Case.checks_summary`. Rewritten on every mutation of
9
+ * `Case.checks` (or `applied_checklist_ids`) so the operator dashboard
10
+ * can filter / sort / count Cases without scanning the `checks` array.
11
+ * Dismissed checks are excluded from every cache field.
12
+ *
13
+ * `OperationsEventEnum` is exported alongside this model because the
14
+ * Case-level event log (forthcoming) will key off the same vocabulary;
15
+ * keeping the import here documents the shared dependency.
16
+ */
17
+ export interface CaseChecksSummary1 {
18
+ schema_version: number;
19
+ applied_checklist_ids?: string[];
20
+ success_count?: number;
21
+ failure_count?: number;
22
+ unsure_count?: number;
23
+ error_count?: number;
24
+ failure_check_keys?: Chrt.CheckEnum[];
25
+ unsure_check_keys?: Chrt.CheckEnum[];
26
+ error_check_keys?: Chrt.CheckEnum[];
27
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,33 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../index.js";
5
+ /**
6
+ * One evaluation of a check against a specific event-entity instance.
7
+ *
8
+ * Embedded as a list element on `Case.checks`. Uniqueness on the Case
9
+ * is `(check, entity_id)` — each Checklist'd check fans out into one
10
+ * `Check1` per event-entity it fires against. `entity_id` is whatever
11
+ * identifies the unique "instance of this event" — `order_id` for
12
+ * `order.*` events (1× per Case), `task_group_id` for
13
+ * `task_group.driver_assigned`, `task_artifact_id` for
14
+ * `task_artifact.*`, `task_id` for `task.completed`. See
15
+ * `CheckEnum`'s docstring for the per-event mapping.
16
+ *
17
+ * The workflow that runs the check writes `status` and
18
+ * `completed_at_timestamp` back when it finishes. Operators dismiss a
19
+ * specific run (one `(check, entity_id)`) by transitioning its
20
+ * `status` to `DISMISSED`; dismissing does *not* affect future runs
21
+ * of the same check on different `entity_id`s. `DISMISSED` is just
22
+ * another status, not a side-flag, so workflows can short-circuit
23
+ * with a single predicate and the dashboard cache counts naturally
24
+ * exclude it. The *who* / *when* of every status transition lives in
25
+ * the forthcoming Case event log, not on `Check1`.
26
+ */
27
+ export interface Check1 {
28
+ schema_version: number;
29
+ check: Chrt.CheckEnum;
30
+ entity_id: string;
31
+ status?: Chrt.CheckStatusEnum;
32
+ completed_at_timestamp?: string | null;
33
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,46 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * *What* is being verified.
6
+ *
7
+ * Each member is a single, narrowly-scoped check that runs on a specific
8
+ * `OperationsEventEnum`, encoded in the `event` property (backed by
9
+ * `_CHECK_EVENT_MAP` below) — never stored separately, or the two can drift.
10
+ *
11
+ * Each `Check1` evaluation is keyed by `(check, entity_id)` on a Case;
12
+ * `entity_id` is the id of the entity in the event's `Domain.Entity.Action`
13
+ * slug:
14
+ *
15
+ * | Event | entity_id |
16
+ * |----------------------------------------|------------------|
17
+ * | shipping.order.* | order_id |
18
+ * | shipping.task_group.driver_assigned | task_group_id |
19
+ * | shipping.task.completed | task_id |
20
+ * | shipping.task_artifact.* | task_artifact_id |
21
+ *
22
+ * `entity_type` is intentionally not stored — it's a strict function of
23
+ * `check.event.entity` (same drift-avoidance rationale as the removed
24
+ * `event` field). If you ever need it to differ (e.g. a check fires on
25
+ * `task.completed` but is logically about the parent task_group), the
26
+ * first answer is adding the right event; the escape hatch is promoting
27
+ * `entity_type` to its own `_CHECK_ENTITY_MAP`.
28
+ */
29
+ export type CheckEnum = "shipping.order.placed.order_details_reviewed" | "shipping.order.staged.flight_task_groups_have_flights" | "shipping.order.staged.flight_task_groups_have_cargo" | "shipping.order.staged.recipient_contacts_present" | "shipping.task_group.driver_assigned.license_valid" | "shipping.task_group.driver_assigned.insurance_valid" | "shipping.task_group.driver_assigned.employment_classification_eligible" | "shipping.task_group.driver_assigned.vehicle_type_compatible" | "shipping.task_artifact.image_uploaded.cargo_visible" | "shipping.task_artifact.image_uploaded.matches_cargo_description" | "shipping.task_artifact.image_uploaded.satisfies_delivery_instructions" | "shipping.task_artifact.barcode_scanned.expected_values_match" | "shipping.task.completed.eta_within_window" | "shipping.task.completed.completed_within_window" | "shipping.order.completed.wait_time_submitted";
30
+ export declare const CheckEnum: {
31
+ readonly ShippingOrderPlacedOrderDetailsReviewed: "shipping.order.placed.order_details_reviewed";
32
+ readonly ShippingOrderStagedFlightTaskGroupsHaveFlights: "shipping.order.staged.flight_task_groups_have_flights";
33
+ readonly ShippingOrderStagedFlightTaskGroupsHaveCargo: "shipping.order.staged.flight_task_groups_have_cargo";
34
+ readonly ShippingOrderStagedRecipientContactsPresent: "shipping.order.staged.recipient_contacts_present";
35
+ readonly ShippingTaskGroupDriverAssignedLicenseValid: "shipping.task_group.driver_assigned.license_valid";
36
+ readonly ShippingTaskGroupDriverAssignedInsuranceValid: "shipping.task_group.driver_assigned.insurance_valid";
37
+ readonly ShippingTaskGroupDriverAssignedEmploymentClassificationEligible: "shipping.task_group.driver_assigned.employment_classification_eligible";
38
+ readonly ShippingTaskGroupDriverAssignedVehicleTypeCompatible: "shipping.task_group.driver_assigned.vehicle_type_compatible";
39
+ readonly ShippingTaskArtifactImageUploadedCargoVisible: "shipping.task_artifact.image_uploaded.cargo_visible";
40
+ readonly ShippingTaskArtifactImageUploadedMatchesCargoDescription: "shipping.task_artifact.image_uploaded.matches_cargo_description";
41
+ readonly ShippingTaskArtifactImageUploadedSatisfiesDeliveryInstructions: "shipping.task_artifact.image_uploaded.satisfies_delivery_instructions";
42
+ readonly ShippingTaskArtifactBarcodeScannedExpectedValuesMatch: "shipping.task_artifact.barcode_scanned.expected_values_match";
43
+ readonly ShippingTaskCompletedEtaWithinWindow: "shipping.task.completed.eta_within_window";
44
+ readonly ShippingTaskCompletedCompletedWithinWindow: "shipping.task.completed.completed_within_window";
45
+ readonly ShippingOrderCompletedWaitTimeSubmitted: "shipping.order.completed.wait_time_submitted";
46
+ };
@@ -0,0 +1,23 @@
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.CheckEnum = void 0;
7
+ exports.CheckEnum = {
8
+ ShippingOrderPlacedOrderDetailsReviewed: "shipping.order.placed.order_details_reviewed",
9
+ ShippingOrderStagedFlightTaskGroupsHaveFlights: "shipping.order.staged.flight_task_groups_have_flights",
10
+ ShippingOrderStagedFlightTaskGroupsHaveCargo: "shipping.order.staged.flight_task_groups_have_cargo",
11
+ ShippingOrderStagedRecipientContactsPresent: "shipping.order.staged.recipient_contacts_present",
12
+ ShippingTaskGroupDriverAssignedLicenseValid: "shipping.task_group.driver_assigned.license_valid",
13
+ ShippingTaskGroupDriverAssignedInsuranceValid: "shipping.task_group.driver_assigned.insurance_valid",
14
+ ShippingTaskGroupDriverAssignedEmploymentClassificationEligible: "shipping.task_group.driver_assigned.employment_classification_eligible",
15
+ ShippingTaskGroupDriverAssignedVehicleTypeCompatible: "shipping.task_group.driver_assigned.vehicle_type_compatible",
16
+ ShippingTaskArtifactImageUploadedCargoVisible: "shipping.task_artifact.image_uploaded.cargo_visible",
17
+ ShippingTaskArtifactImageUploadedMatchesCargoDescription: "shipping.task_artifact.image_uploaded.matches_cargo_description",
18
+ ShippingTaskArtifactImageUploadedSatisfiesDeliveryInstructions: "shipping.task_artifact.image_uploaded.satisfies_delivery_instructions",
19
+ ShippingTaskArtifactBarcodeScannedExpectedValuesMatch: "shipping.task_artifact.barcode_scanned.expected_values_match",
20
+ ShippingTaskCompletedEtaWithinWindow: "shipping.task.completed.eta_within_window",
21
+ ShippingTaskCompletedCompletedWithinWindow: "shipping.task.completed.completed_within_window",
22
+ ShippingOrderCompletedWaitTimeSubmitted: "shipping.order.completed.wait_time_submitted",
23
+ };