@chrt-inc/typescript-sdk 1.692.0 → 1.702.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 (174) 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/types/AiImageDescription.d.ts +30 -0
  50. package/dist/cjs/api/types/AiImageDescription.js +5 -0
  51. package/dist/cjs/api/types/Case1.d.ts +4 -0
  52. package/dist/cjs/api/types/CaseChecksDisableReq.d.ts +7 -0
  53. package/dist/cjs/api/types/CaseChecksDisableReq.js +5 -0
  54. package/dist/cjs/api/types/CaseChecksDismissReq.d.ts +8 -0
  55. package/dist/cjs/api/types/CaseChecksDismissReq.js +5 -0
  56. package/dist/cjs/api/types/CaseChecksSummary1.d.ts +27 -0
  57. package/dist/cjs/api/types/CaseChecksSummary1.js +5 -0
  58. package/dist/cjs/api/types/Check1.d.ts +33 -0
  59. package/dist/cjs/api/types/Check1.js +5 -0
  60. package/dist/cjs/api/types/CheckEnum.d.ts +46 -0
  61. package/dist/cjs/api/types/CheckEnum.js +23 -0
  62. package/dist/cjs/api/types/CheckStatusEnum.d.ts +32 -0
  63. package/dist/cjs/api/types/CheckStatusEnum.js +15 -0
  64. package/dist/cjs/api/types/Checklist1.d.ts +18 -0
  65. package/dist/cjs/api/types/Checklist1.js +5 -0
  66. package/dist/cjs/api/types/ChecklistCheck1.d.ts +15 -0
  67. package/dist/cjs/api/types/ChecklistCheck1.js +5 -0
  68. package/dist/cjs/api/types/ChecklistListRes.d.ts +8 -0
  69. package/dist/cjs/api/types/ChecklistListRes.js +5 -0
  70. package/dist/cjs/api/types/ChecklistSortByEnum.d.ts +9 -0
  71. package/dist/cjs/api/types/ChecklistSortByEnum.js +11 -0
  72. package/dist/cjs/api/types/LlmModelEnum.d.ts +12 -0
  73. package/dist/cjs/api/types/LlmModelEnum.js +14 -0
  74. package/dist/cjs/api/types/OperationsTask1.d.ts +19 -0
  75. package/dist/cjs/api/types/OperationsTask1.js +5 -0
  76. package/dist/cjs/api/types/OperationsTaskComment1.d.ts +10 -0
  77. package/dist/cjs/api/types/OperationsTaskComment1.js +5 -0
  78. package/dist/cjs/api/types/OperationsTaskListRes.d.ts +8 -0
  79. package/dist/cjs/api/types/OperationsTaskListRes.js +5 -0
  80. package/dist/cjs/api/types/OperationsTaskSortByEnum.d.ts +8 -0
  81. package/dist/cjs/api/types/OperationsTaskSortByEnum.js +10 -0
  82. package/dist/cjs/api/types/TaskArtifactS3ObjectMetadata1.d.ts +2 -0
  83. package/dist/cjs/api/types/index.d.ts +16 -0
  84. package/dist/cjs/api/types/index.js +16 -0
  85. package/dist/cjs/version.d.ts +1 -1
  86. package/dist/cjs/version.js +1 -1
  87. package/dist/esm/Client.mjs +2 -2
  88. package/dist/esm/api/resources/operations/client/Client.d.mts +6 -0
  89. package/dist/esm/api/resources/operations/client/Client.mjs +10 -0
  90. package/dist/esm/api/resources/operations/resources/cases/client/Client.d.mts +100 -0
  91. package/dist/esm/api/resources/operations/resources/cases/client/Client.mjs +394 -0
  92. package/dist/esm/api/resources/operations/resources/cases/client/requests/CaseChecksApplyChecklistReq.d.mts +12 -0
  93. package/dist/esm/api/resources/operations/resources/cases/client/requests/CaseChecksApplyChecklistReq.mjs +4 -0
  94. package/dist/esm/api/resources/operations/resources/cases/client/requests/CaseChecksRecordImageAnalysisResultsReq.d.mts +15 -0
  95. package/dist/esm/api/resources/operations/resources/cases/client/requests/CaseChecksRecordImageAnalysisResultsReq.mjs +4 -0
  96. package/dist/esm/api/resources/operations/resources/cases/client/requests/index.d.mts +2 -0
  97. package/dist/esm/api/resources/operations/resources/checklists/client/Client.d.mts +150 -0
  98. package/dist/esm/api/resources/operations/resources/checklists/client/Client.mjs +544 -0
  99. package/dist/esm/api/resources/operations/resources/checklists/client/index.d.mts +2 -0
  100. package/dist/esm/api/resources/operations/resources/checklists/client/index.mjs +1 -0
  101. package/dist/esm/api/resources/operations/resources/checklists/client/requests/ChecklistChecksAdd1.d.mts +11 -0
  102. package/dist/esm/api/resources/operations/resources/checklists/client/requests/ChecklistChecksAdd1.mjs +4 -0
  103. package/dist/esm/api/resources/operations/resources/checklists/client/requests/ChecklistChecksRemove1.d.mts +11 -0
  104. package/dist/esm/api/resources/operations/resources/checklists/client/requests/ChecklistChecksRemove1.mjs +4 -0
  105. package/dist/esm/api/resources/operations/resources/checklists/client/requests/ChecklistClientCreate1.d.mts +17 -0
  106. package/dist/esm/api/resources/operations/resources/checklists/client/requests/ChecklistClientCreate1.mjs +4 -0
  107. package/dist/esm/api/resources/operations/resources/checklists/client/requests/ChecklistClientUpdate1.d.mts +12 -0
  108. package/dist/esm/api/resources/operations/resources/checklists/client/requests/ChecklistClientUpdate1.mjs +4 -0
  109. package/dist/esm/api/resources/operations/resources/checklists/client/requests/ChecklistsListV1Request.d.mts +24 -0
  110. package/dist/esm/api/resources/operations/resources/checklists/client/requests/ChecklistsListV1Request.mjs +4 -0
  111. package/dist/esm/api/resources/operations/resources/checklists/client/requests/index.d.mts +5 -0
  112. package/dist/esm/api/resources/operations/resources/checklists/client/requests/index.mjs +1 -0
  113. package/dist/esm/api/resources/operations/resources/checklists/index.d.mts +1 -0
  114. package/dist/esm/api/resources/operations/resources/checklists/index.mjs +1 -0
  115. package/dist/esm/api/resources/operations/resources/index.d.mts +4 -0
  116. package/dist/esm/api/resources/operations/resources/index.mjs +4 -0
  117. package/dist/esm/api/resources/operations/resources/operationsTasks/client/Client.d.mts +170 -0
  118. package/dist/esm/api/resources/operations/resources/operationsTasks/client/Client.mjs +616 -0
  119. package/dist/esm/api/resources/operations/resources/operationsTasks/client/index.d.mts +2 -0
  120. package/dist/esm/api/resources/operations/resources/operationsTasks/client/index.mjs +1 -0
  121. package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/OperationsTaskAddCommentReq1.d.mts +12 -0
  122. package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/OperationsTaskAddCommentReq1.mjs +4 -0
  123. package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/OperationsTaskClientCreate1.d.mts +19 -0
  124. package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/OperationsTaskClientCreate1.mjs +4 -0
  125. package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/OperationsTaskClientUpdate1.d.mts +12 -0
  126. package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/OperationsTaskClientUpdate1.mjs +4 -0
  127. package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/OperationsTasksListV1Request.d.mts +33 -0
  128. package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/OperationsTasksListV1Request.mjs +4 -0
  129. package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/index.d.mts +4 -0
  130. package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/index.mjs +1 -0
  131. package/dist/esm/api/resources/operations/resources/operationsTasks/index.d.mts +1 -0
  132. package/dist/esm/api/resources/operations/resources/operationsTasks/index.mjs +1 -0
  133. package/dist/esm/api/resources/shipping/resources/taskArtifacts/resources/s3Object/client/Client.d.mts +26 -0
  134. package/dist/esm/api/resources/shipping/resources/taskArtifacts/resources/s3Object/client/Client.mjs +75 -0
  135. package/dist/esm/api/types/AiImageDescription.d.mts +30 -0
  136. package/dist/esm/api/types/AiImageDescription.mjs +4 -0
  137. package/dist/esm/api/types/Case1.d.mts +4 -0
  138. package/dist/esm/api/types/CaseChecksDisableReq.d.mts +7 -0
  139. package/dist/esm/api/types/CaseChecksDisableReq.mjs +4 -0
  140. package/dist/esm/api/types/CaseChecksDismissReq.d.mts +8 -0
  141. package/dist/esm/api/types/CaseChecksDismissReq.mjs +4 -0
  142. package/dist/esm/api/types/CaseChecksSummary1.d.mts +27 -0
  143. package/dist/esm/api/types/CaseChecksSummary1.mjs +4 -0
  144. package/dist/esm/api/types/Check1.d.mts +33 -0
  145. package/dist/esm/api/types/Check1.mjs +4 -0
  146. package/dist/esm/api/types/CheckEnum.d.mts +46 -0
  147. package/dist/esm/api/types/CheckEnum.mjs +20 -0
  148. package/dist/esm/api/types/CheckStatusEnum.d.mts +32 -0
  149. package/dist/esm/api/types/CheckStatusEnum.mjs +12 -0
  150. package/dist/esm/api/types/Checklist1.d.mts +18 -0
  151. package/dist/esm/api/types/Checklist1.mjs +4 -0
  152. package/dist/esm/api/types/ChecklistCheck1.d.mts +15 -0
  153. package/dist/esm/api/types/ChecklistCheck1.mjs +4 -0
  154. package/dist/esm/api/types/ChecklistListRes.d.mts +8 -0
  155. package/dist/esm/api/types/ChecklistListRes.mjs +4 -0
  156. package/dist/esm/api/types/ChecklistSortByEnum.d.mts +9 -0
  157. package/dist/esm/api/types/ChecklistSortByEnum.mjs +8 -0
  158. package/dist/esm/api/types/LlmModelEnum.d.mts +12 -0
  159. package/dist/esm/api/types/LlmModelEnum.mjs +11 -0
  160. package/dist/esm/api/types/OperationsTask1.d.mts +19 -0
  161. package/dist/esm/api/types/OperationsTask1.mjs +4 -0
  162. package/dist/esm/api/types/OperationsTaskComment1.d.mts +10 -0
  163. package/dist/esm/api/types/OperationsTaskComment1.mjs +4 -0
  164. package/dist/esm/api/types/OperationsTaskListRes.d.mts +8 -0
  165. package/dist/esm/api/types/OperationsTaskListRes.mjs +4 -0
  166. package/dist/esm/api/types/OperationsTaskSortByEnum.d.mts +8 -0
  167. package/dist/esm/api/types/OperationsTaskSortByEnum.mjs +7 -0
  168. package/dist/esm/api/types/TaskArtifactS3ObjectMetadata1.d.mts +2 -0
  169. package/dist/esm/api/types/index.d.mts +16 -0
  170. package/dist/esm/api/types/index.mjs +16 -0
  171. package/dist/esm/version.d.mts +1 -1
  172. package/dist/esm/version.mjs +1 -1
  173. package/package.json +1 -1
  174. package/reference.md +1826 -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);
@@ -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
+ };
@@ -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,15 @@
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.CheckStatusEnum = void 0;
7
+ exports.CheckStatusEnum = {
8
+ NotStarted: "not_started",
9
+ InProgress: "in_progress",
10
+ Success: "success",
11
+ Unsure: "unsure",
12
+ Failure: "failure",
13
+ Error: "error",
14
+ Dismissed: "dismissed",
15
+ };
@@ -0,0 +1,18 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../index.js";
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,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../index.js";
5
+ /**
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,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 ChecklistListRes {
6
+ items: Chrt.Checklist1[];
7
+ total_count: number;
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,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export type ChecklistSortByEnum = "created_at_timestamp" | "updated_at_timestamp" | "name";
5
+ export declare const ChecklistSortByEnum: {
6
+ readonly CreatedAtTimestamp: "created_at_timestamp";
7
+ readonly UpdatedAtTimestamp: "updated_at_timestamp";
8
+ readonly Name: "name";
9
+ };