@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,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -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,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -0,0 +1,33 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../../../../../../index.mjs";
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,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -0,0 +1,4 @@
1
+ export { type OperationsTasksListV1Request } from "./OperationsTasksListV1Request.mjs";
2
+ export { type OperationsTaskClientUpdate1 } from "./OperationsTaskClientUpdate1.mjs";
3
+ export { type OperationsTaskClientCreate1 } from "./OperationsTaskClientCreate1.mjs";
4
+ export { type OperationsTaskAddCommentReq1 } from "./OperationsTaskAddCommentReq1.mjs";
@@ -0,0 +1 @@
1
+ export * from "./client/index.mjs";
@@ -0,0 +1 @@
1
+ export * from "./client/index.mjs";
@@ -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
  }
@@ -259,6 +259,81 @@ export class S3Object {
259
259
  }
260
260
  });
261
261
  }
262
+ /**
263
+ * 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)
264
+ *
265
+ * @param {string} taskArtifactS3ObjectMetadataId
266
+ * @param {Chrt.AiImageDescription} request
267
+ * @param {S3Object.RequestOptions} requestOptions - Request-specific configuration.
268
+ *
269
+ * @throws {@link Chrt.UnprocessableEntityError}
270
+ *
271
+ * @example
272
+ * await client.shipping.taskArtifacts.s3Object.writeAiImageDescriptionV1("task_artifact_s3_object_metadata_id", {
273
+ * model: "gpt-5.5",
274
+ * summary: "summary",
275
+ * package_types: ["package_types"],
276
+ * package_appearance: "package_appearance",
277
+ * readable_package_text: ["readable_package_text"],
278
+ * cargo_identity_assessment: "cargo_identity_assessment",
279
+ * location_description: "location_description",
280
+ * location_identifiers: ["location_identifiers"],
281
+ * completion_evidence: "completion_evidence",
282
+ * proof_notes: ["proof_notes"],
283
+ * dispute_defensibility: "dispute_defensibility"
284
+ * })
285
+ */
286
+ writeAiImageDescriptionV1(taskArtifactS3ObjectMetadataId, request, requestOptions) {
287
+ return core.HttpResponsePromise.fromPromise(this.__writeAiImageDescriptionV1(taskArtifactS3ObjectMetadataId, request, requestOptions));
288
+ }
289
+ __writeAiImageDescriptionV1(taskArtifactS3ObjectMetadataId, request, requestOptions) {
290
+ return __awaiter(this, void 0, void 0, function* () {
291
+ var _a, _b, _c, _d;
292
+ let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
293
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
294
+ 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)}`),
295
+ method: "PATCH",
296
+ headers: _headers,
297
+ contentType: "application/json",
298
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
299
+ requestType: "json",
300
+ body: request,
301
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
302
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
303
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
304
+ });
305
+ if (_response.ok) {
306
+ return { data: _response.body, rawResponse: _response.rawResponse };
307
+ }
308
+ if (_response.error.reason === "status-code") {
309
+ switch (_response.error.statusCode) {
310
+ case 422:
311
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
312
+ default:
313
+ throw new errors.ChrtError({
314
+ statusCode: _response.error.statusCode,
315
+ body: _response.error.body,
316
+ rawResponse: _response.rawResponse,
317
+ });
318
+ }
319
+ }
320
+ switch (_response.error.reason) {
321
+ case "non-json":
322
+ throw new errors.ChrtError({
323
+ statusCode: _response.error.statusCode,
324
+ body: _response.error.rawBody,
325
+ rawResponse: _response.rawResponse,
326
+ });
327
+ case "timeout":
328
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /shipping/task_artifacts/s3_object/ai_image_description/v1/{task_artifact_s3_object_metadata_id}.");
329
+ case "unknown":
330
+ throw new errors.ChrtError({
331
+ message: _response.error.errorMessage,
332
+ rawResponse: _response.rawResponse,
333
+ });
334
+ }
335
+ });
336
+ }
262
337
  _getAuthorizationHeader() {
263
338
  return __awaiter(this, void 0, void 0, function* () {
264
339
  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",
@@ -53,8 +53,11 @@ export 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",
@@ -66,8 +69,8 @@ export class Sessions {
66
69
  }
67
70
  __listV1() {
68
71
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
69
- var _a, _b, _c, _d, _e, _f, _g, _h;
70
- 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;
72
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
73
+ 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;
71
74
  const _queryParams = {};
72
75
  if (sortBy !== undefined) {
73
76
  _queryParams["sort_by"] = sortBy;
@@ -108,12 +111,21 @@ export class Sessions {
108
111
  if (filterFlightLoadedStatus !== undefined) {
109
112
  _queryParams["filter_flight_loaded_status"] = filterFlightLoadedStatus;
110
113
  }
114
+ if (filterHasLastSeen !== undefined) {
115
+ _queryParams["filter_has_last_seen"] = (_e = filterHasLastSeen === null || filterHasLastSeen === void 0 ? void 0 : filterHasLastSeen.toString()) !== null && _e !== void 0 ? _e : null;
116
+ }
111
117
  if (filterCreatedAtTimestampGte !== undefined) {
112
118
  _queryParams["filter_created_at_timestamp_gte"] = filterCreatedAtTimestampGte;
113
119
  }
114
120
  if (filterCreatedAtTimestampLte !== undefined) {
115
121
  _queryParams["filter_created_at_timestamp_lte"] = filterCreatedAtTimestampLte;
116
122
  }
123
+ if (filterLastSeenAtTimestampGte !== undefined) {
124
+ _queryParams["filter_last_seen_at_timestamp_gte"] = filterLastSeenAtTimestampGte;
125
+ }
126
+ if (filterLastSeenAtTimestampLte !== undefined) {
127
+ _queryParams["filter_last_seen_at_timestamp_lte"] = filterLastSeenAtTimestampLte;
128
+ }
117
129
  if (filterTerminationScheduledForTimestampGte !== undefined) {
118
130
  _queryParams["filter_termination_scheduled_for_timestamp_gte"] = filterTerminationScheduledForTimestampGte;
119
131
  }
@@ -126,9 +138,9 @@ export class Sessions {
126
138
  if (filterTerminatedAtTimestampLte !== undefined) {
127
139
  _queryParams["filter_terminated_at_timestamp_lte"] = filterTerminatedAtTimestampLte;
128
140
  }
129
- let _headers = mergeHeaders((_e = this._options) === null || _e === void 0 ? void 0 : _e.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
130
- const _response = yield ((_f = this._options.fetcher) !== null && _f !== void 0 ? _f : core.fetcher)({
131
- 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"),
141
+ let _headers = mergeHeaders((_f = this._options) === null || _f === void 0 ? void 0 : _f.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
142
+ const _response = yield ((_g = this._options.fetcher) !== null && _g !== void 0 ? _g : core.fetcher)({
143
+ 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"),
132
144
  method: "GET",
133
145
  headers: _headers,
134
146
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
@@ -18,8 +18,11 @@ import * as Chrt from "../../../../../../index.mjs";
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.mjs";
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,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -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.mjs";
5
+ export interface CaseChecksDisableReq {
6
+ check: Chrt.CheckEnum;
7
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../index.mjs";
5
+ export interface CaseChecksDismissReq {
6
+ check: Chrt.CheckEnum;
7
+ entity_id: string;
8
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -0,0 +1,27 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../index.mjs";
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,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -0,0 +1,33 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../index.mjs";
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,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -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,20 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export const CheckEnum = {
5
+ ShippingOrderPlacedOrderDetailsReviewed: "shipping.order.placed.order_details_reviewed",
6
+ ShippingOrderStagedFlightTaskGroupsHaveFlights: "shipping.order.staged.flight_task_groups_have_flights",
7
+ ShippingOrderStagedFlightTaskGroupsHaveCargo: "shipping.order.staged.flight_task_groups_have_cargo",
8
+ ShippingOrderStagedRecipientContactsPresent: "shipping.order.staged.recipient_contacts_present",
9
+ ShippingTaskGroupDriverAssignedLicenseValid: "shipping.task_group.driver_assigned.license_valid",
10
+ ShippingTaskGroupDriverAssignedInsuranceValid: "shipping.task_group.driver_assigned.insurance_valid",
11
+ ShippingTaskGroupDriverAssignedEmploymentClassificationEligible: "shipping.task_group.driver_assigned.employment_classification_eligible",
12
+ ShippingTaskGroupDriverAssignedVehicleTypeCompatible: "shipping.task_group.driver_assigned.vehicle_type_compatible",
13
+ ShippingTaskArtifactImageUploadedCargoVisible: "shipping.task_artifact.image_uploaded.cargo_visible",
14
+ ShippingTaskArtifactImageUploadedMatchesCargoDescription: "shipping.task_artifact.image_uploaded.matches_cargo_description",
15
+ ShippingTaskArtifactImageUploadedSatisfiesDeliveryInstructions: "shipping.task_artifact.image_uploaded.satisfies_delivery_instructions",
16
+ ShippingTaskArtifactBarcodeScannedExpectedValuesMatch: "shipping.task_artifact.barcode_scanned.expected_values_match",
17
+ ShippingTaskCompletedEtaWithinWindow: "shipping.task.completed.eta_within_window",
18
+ ShippingTaskCompletedCompletedWithinWindow: "shipping.task.completed.completed_within_window",
19
+ ShippingOrderCompletedWaitTimeSubmitted: "shipping.order.completed.wait_time_submitted",
20
+ };
@@ -0,0 +1,32 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Lifecycle + stoplight outcome of a single check on a Case.
6
+ *
7
+ * ```
8
+ * NOT_STARTED → IN_PROGRESS → SUCCESS | UNSURE | FAILURE | ERROR
9
+ * ↑ ↓
10
+ * └────────── undismiss ────────── DISMISSED ── dismiss (from any status)
11
+ * ```
12
+ *
13
+ * - `UNSURE` — yellow stoplight; signal borderline (e.g. vision confidence
14
+ * on the edge). Counts as "needs attention" in roll-ups, filterable
15
+ * separately for triage.
16
+ * - `ERROR` — workflow couldn't produce a measurement (distinct from
17
+ * `FAILURE` so broken pipelines are triaged separately from data issues).
18
+ * - `DISMISSED` — operator override; excludes from needs-attention
19
+ * roll-ups *and* from event re-runs. The prior stoplight outcome is
20
+ * intentionally lost on `Check1` — the Case event log (forthcoming)
21
+ * holds the full status-transition history.
22
+ */
23
+ export type CheckStatusEnum = "not_started" | "in_progress" | "success" | "unsure" | "failure" | "error" | "dismissed";
24
+ export declare const CheckStatusEnum: {
25
+ readonly NotStarted: "not_started";
26
+ readonly InProgress: "in_progress";
27
+ readonly Success: "success";
28
+ readonly Unsure: "unsure";
29
+ readonly Failure: "failure";
30
+ readonly Error: "error";
31
+ readonly Dismissed: "dismissed";
32
+ };
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export const CheckStatusEnum = {
5
+ NotStarted: "not_started",
6
+ InProgress: "in_progress",
7
+ Success: "success",
8
+ Unsure: "unsure",
9
+ Failure: "failure",
10
+ Error: "error",
11
+ Dismissed: "dismissed",
12
+ };
@@ -0,0 +1,18 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../index.mjs";
5
+ export interface Checklist1 {
6
+ schema_version: number;
7
+ name: string;
8
+ description?: string | null;
9
+ checks?: Chrt.ChecklistCheck1[];
10
+ _id: string;
11
+ /** Must be a string starting with `org_` */
12
+ org_id: string;
13
+ archived?: boolean;
14
+ /** Must be a string starting with `user_` */
15
+ created_by_user_id: string;
16
+ created_at_timestamp: string;
17
+ updated_at_timestamp: string;
18
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../index.mjs";
5
+ /**
6
+ * One check entry declared in a Checklist.
7
+ *
8
+ * Names a single catalog check; the event it fires on is derivable as
9
+ * `entry.check.event` (see `CheckEnum.event`). Checklist-application
10
+ * logic copies each `ChecklistCheck1` into the target Case as a `Check1`
11
+ * in `NOT_STARTED` status.
12
+ */
13
+ export interface ChecklistCheck1 {
14
+ check: Chrt.CheckEnum;
15
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../index.mjs";
5
+ export interface ChecklistListRes {
6
+ items: Chrt.Checklist1[];
7
+ total_count: number;
8
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};