@chrt-inc/typescript-sdk 1.378.0 → 1.381.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 (78) hide show
  1. package/dist/cjs/Client.js +2 -2
  2. package/dist/cjs/api/resources/drivers/client/Client.d.ts +3 -3
  3. package/dist/cjs/api/types/BillingLineItemGroupMessageWebhookPayload.d.ts +2 -2
  4. package/dist/cjs/api/types/BillingLineItemGroupS3ObjectAddedWebhookPayload.d.ts +2 -5
  5. package/dist/cjs/api/types/BillingStatementOpenedWebhookPayload.d.ts +1 -2
  6. package/dist/cjs/api/types/BillingStatementPaidWebhookPayload.d.ts +1 -2
  7. package/dist/cjs/api/types/ChrtGroundCourierTaskActionEnum1.d.ts +0 -17
  8. package/dist/cjs/api/types/{Driver1Input.d.ts → Driver1.d.ts} +1 -1
  9. package/dist/cjs/api/types/FlightTaskActionEnum1.d.ts +0 -4
  10. package/dist/cjs/api/types/NotificationEventsForOrgsEnum.d.ts +4 -3
  11. package/dist/cjs/api/types/NotificationEventsForOrgsEnum.js +3 -2
  12. package/dist/cjs/api/types/NotificationGroupLimitedForDriver1.d.ts +4 -0
  13. package/dist/cjs/api/types/OnboardCourierTaskActionEnum1.d.ts +0 -7
  14. package/dist/cjs/api/types/OrgMembersAndDrivers.d.ts +1 -1
  15. package/dist/cjs/api/types/ShippingOrderCancelledWebhookPayload.d.ts +1 -2
  16. package/dist/cjs/api/types/ShippingOrderCompletedWebhookPayload.d.ts +1 -2
  17. package/dist/cjs/api/types/ShippingOrderStagedWebhookPayload.d.ts +1 -2
  18. package/dist/cjs/api/types/ShippingTaskAddedWebhookPayload.d.ts +8 -1
  19. package/dist/cjs/api/types/ShippingTaskCompletedWebhookPayload.d.ts +10 -1
  20. package/dist/cjs/api/types/ShippingTaskDeletedWebhookPayload.d.ts +8 -0
  21. package/dist/cjs/api/types/ShippingTaskGroupDriverAssignedWebhookPayload.d.ts +1 -2
  22. package/dist/cjs/api/types/ShippingTaskGroupInProgressWebhookPayload.d.ts +1 -2
  23. package/dist/cjs/api/types/ShippingTaskGroupS3ObjectAddedWebhookPayload.d.ts +2 -5
  24. package/dist/cjs/api/types/ShippingTaskSkippedWebhookPayload.d.ts +8 -1
  25. package/dist/cjs/api/types/ShippingTaskTaskArtifactCompletedWebhookPayload.d.ts +19 -0
  26. package/dist/cjs/api/types/{Task1Input.d.ts → Task1.d.ts} +3 -3
  27. package/dist/cjs/api/types/TaskExpanded.d.ts +1 -1
  28. package/dist/cjs/api/types/TaskGroupExpanded.d.ts +1 -1
  29. package/dist/cjs/api/types/index.d.ts +3 -4
  30. package/dist/cjs/api/types/index.js +3 -4
  31. package/dist/cjs/version.d.ts +1 -1
  32. package/dist/cjs/version.js +1 -1
  33. package/dist/esm/Client.mjs +2 -2
  34. package/dist/esm/api/resources/drivers/client/Client.d.mts +3 -3
  35. package/dist/esm/api/types/BillingLineItemGroupMessageWebhookPayload.d.mts +2 -2
  36. package/dist/esm/api/types/BillingLineItemGroupS3ObjectAddedWebhookPayload.d.mts +2 -5
  37. package/dist/esm/api/types/BillingStatementOpenedWebhookPayload.d.mts +1 -2
  38. package/dist/esm/api/types/BillingStatementPaidWebhookPayload.d.mts +1 -2
  39. package/dist/esm/api/types/ChrtGroundCourierTaskActionEnum1.d.mts +0 -17
  40. package/dist/esm/api/types/{Driver1Input.d.mts → Driver1.d.mts} +1 -1
  41. package/dist/esm/api/types/FlightTaskActionEnum1.d.mts +0 -4
  42. package/dist/esm/api/types/NotificationEventsForOrgsEnum.d.mts +4 -3
  43. package/dist/esm/api/types/NotificationEventsForOrgsEnum.mjs +3 -2
  44. package/dist/esm/api/types/NotificationGroupLimitedForDriver1.d.mts +4 -0
  45. package/dist/esm/api/types/OnboardCourierTaskActionEnum1.d.mts +0 -7
  46. package/dist/esm/api/types/OrgMembersAndDrivers.d.mts +1 -1
  47. package/dist/esm/api/types/ShippingOrderCancelledWebhookPayload.d.mts +1 -2
  48. package/dist/esm/api/types/ShippingOrderCompletedWebhookPayload.d.mts +1 -2
  49. package/dist/esm/api/types/ShippingOrderStagedWebhookPayload.d.mts +1 -2
  50. package/dist/esm/api/types/ShippingTaskAddedWebhookPayload.d.mts +8 -1
  51. package/dist/esm/api/types/ShippingTaskCompletedWebhookPayload.d.mts +10 -1
  52. package/dist/esm/api/types/ShippingTaskDeletedWebhookPayload.d.mts +8 -0
  53. package/dist/esm/api/types/ShippingTaskGroupDriverAssignedWebhookPayload.d.mts +1 -2
  54. package/dist/esm/api/types/ShippingTaskGroupInProgressWebhookPayload.d.mts +1 -2
  55. package/dist/esm/api/types/ShippingTaskGroupS3ObjectAddedWebhookPayload.d.mts +2 -5
  56. package/dist/esm/api/types/ShippingTaskSkippedWebhookPayload.d.mts +8 -1
  57. package/dist/esm/api/types/ShippingTaskTaskArtifactCompletedWebhookPayload.d.mts +19 -0
  58. package/dist/esm/api/types/{Task1Input.d.mts → Task1.d.mts} +3 -3
  59. package/dist/esm/api/types/TaskExpanded.d.mts +1 -1
  60. package/dist/esm/api/types/TaskGroupExpanded.d.mts +1 -1
  61. package/dist/esm/api/types/index.d.mts +3 -4
  62. package/dist/esm/api/types/index.mjs +3 -4
  63. package/dist/esm/version.d.mts +1 -1
  64. package/dist/esm/version.mjs +1 -1
  65. package/package.json +1 -1
  66. package/reference.md +3 -3
  67. package/dist/cjs/api/types/Driver1Output.d.ts +0 -27
  68. package/dist/cjs/api/types/Task1Output.d.ts +0 -36
  69. package/dist/cjs/api/types/Task1Output.js +0 -5
  70. package/dist/esm/api/types/Driver1Output.d.mts +0 -27
  71. package/dist/esm/api/types/Task1Output.d.mts +0 -36
  72. package/dist/esm/api/types/Task1Output.mjs +0 -4
  73. /package/dist/cjs/api/types/{Driver1Input.js → Driver1.js} +0 -0
  74. /package/dist/cjs/api/types/{Driver1Output.js → ShippingTaskTaskArtifactCompletedWebhookPayload.js} +0 -0
  75. /package/dist/cjs/api/types/{Task1Input.js → Task1.js} +0 -0
  76. /package/dist/esm/api/types/{Driver1Input.mjs → Driver1.mjs} +0 -0
  77. /package/dist/esm/api/types/{Driver1Output.mjs → ShippingTaskTaskArtifactCompletedWebhookPayload.mjs} +0 -0
  78. /package/dist/esm/api/types/{Task1Input.mjs → Task1.mjs} +0 -0
@@ -66,8 +66,8 @@ class ChrtClient {
66
66
  this._options = Object.assign(Object.assign({}, _options), { headers: (0, headers_js_1.mergeHeaders)({
67
67
  "X-Fern-Language": "JavaScript",
68
68
  "X-Fern-SDK-Name": "@chrt-inc/typescript-sdk",
69
- "X-Fern-SDK-Version": "1.378.0",
70
- "User-Agent": "@chrt-inc/typescript-sdk/1.378.0",
69
+ "X-Fern-SDK-Version": "1.381.0",
70
+ "User-Agent": "@chrt-inc/typescript-sdk/1.381.0",
71
71
  "X-Fern-Runtime": core.RUNTIME.type,
72
72
  "X-Fern-Runtime-Version": core.RUNTIME.version,
73
73
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -38,7 +38,7 @@ export declare class Drivers {
38
38
  * @example
39
39
  * await client.drivers.getForCallerV1()
40
40
  */
41
- getForCallerV1(requestOptions?: Drivers.RequestOptions): core.HttpResponsePromise<Chrt.Driver1Output>;
41
+ getForCallerV1(requestOptions?: Drivers.RequestOptions): core.HttpResponsePromise<Chrt.Driver1>;
42
42
  private __getForCallerV1;
43
43
  /**
44
44
  * Retrieves detailed driver information by driver ID within the organization. | () -> (Driver1)
@@ -51,7 +51,7 @@ export declare class Drivers {
51
51
  * @example
52
52
  * await client.drivers.getByDriverIdV1("driver_id")
53
53
  */
54
- getByDriverIdV1(driverId: string, requestOptions?: Drivers.RequestOptions): core.HttpResponsePromise<Chrt.Driver1Output>;
54
+ getByDriverIdV1(driverId: string, requestOptions?: Drivers.RequestOptions): core.HttpResponsePromise<Chrt.Driver1>;
55
55
  private __getByDriverIdV1;
56
56
  /**
57
57
  * Lists all organization members paired with their driver information if they are drivers. Filter by availability. | () -> (list[OrgMembersAndDrivers])
@@ -83,7 +83,7 @@ export declare class Drivers {
83
83
  * available_according_to_operators: true
84
84
  * })
85
85
  */
86
- listV1(request?: Chrt.DriversListV1Request, requestOptions?: Drivers.RequestOptions): core.HttpResponsePromise<Chrt.Driver1Output[]>;
86
+ listV1(request?: Chrt.DriversListV1Request, requestOptions?: Drivers.RequestOptions): core.HttpResponsePromise<Chrt.Driver1[]>;
87
87
  private __listV1;
88
88
  /**
89
89
  * Creates a new driver profile for the target user (defaults to caller). Drivers can create themselves; operators+ can create any org member. Courier orgs only. | (DriverClientCreate1) -> (PydanticObjectId)
@@ -6,8 +6,8 @@ export interface BillingLineItemGroupMessageWebhookPayload {
6
6
  event_type?: "billing.line_item_group.message";
7
7
  /** UTC timestamp when the event occurred */
8
8
  event_timestamp: string;
9
- /** The message that was added to the line item group */
10
- message: Chrt.LineItemGroupMessage1;
11
9
  /** The line item group the message was added to */
12
10
  line_item_group_id: string;
11
+ /** The message that was added to the line item group */
12
+ message: Chrt.LineItemGroupMessage1;
13
13
  }
@@ -1,13 +1,10 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as Chrt from "../index.js";
5
4
  export interface BillingLineItemGroupS3ObjectAddedWebhookPayload {
6
- event_type?: "billing.line_item_group.s3_object_added";
5
+ event_type?: "billing.line_item_group.file_added";
7
6
  /** UTC timestamp when the event occurred */
8
7
  event_timestamp: string;
9
- /** Metadata for the S3 object that was added */
10
- s3_object_metadata: Chrt.LineItemGroupS3ObjectMetadata1;
11
- /** The line item group the S3 object was added to */
8
+ /** The line item group the file was added to */
12
9
  line_item_group_id: string;
13
10
  }
@@ -1,11 +1,10 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as Chrt from "../index.js";
5
4
  export interface BillingStatementOpenedWebhookPayload {
6
5
  event_type?: "billing.statement.opened";
7
6
  /** UTC timestamp when the event occurred */
8
7
  event_timestamp: string;
9
8
  /** The statement that was opened */
10
- statement: Chrt.Statement1;
9
+ statement_id: string;
11
10
  }
@@ -1,11 +1,10 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as Chrt from "../index.js";
5
4
  export interface BillingStatementPaidWebhookPayload {
6
5
  event_type?: "billing.statement.paid";
7
6
  /** UTC timestamp when the event occurred */
8
7
  event_timestamp: string;
9
8
  /** The statement that was paid */
10
- statement: Chrt.Statement1;
9
+ statement_id: string;
11
10
  }
@@ -1,23 +1,6 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- /**
5
- * Notes for order validation logic
6
- * - actions that obtain cargo are {PICKUP, RECOVER_FROM_AIRLINE}
7
- * - actions that release cargo are {DELIVER, TENDER_TO_AIRLINE}
8
- * - actions that maintain cargo are {CONSOLIDATE, HOLD}
9
- * - action that is a wildcard is {OTHER}
10
- * - actions where cargo is maintained must occur between obtain and release actions
11
- * - The wildcard OTHER is given maximum opportunity to satisfy constraints, e.g.:
12
- * - these are okay:
13
- * - OTHER (with no more tasks)
14
- * - PICKUP then OTHER
15
- * - OTHER then OTHER
16
- * - OTHER then DELIVER
17
- * - these are not okay:
18
- * - OTHER then PICKUP then no more tasks (because the cargo is not released after PICKUP)
19
- * - DELIVER then OTHER (because the cargo is not obtained before DELIVER)
20
- */
21
4
  export type ChrtGroundCourierTaskActionEnum1 = "chrt_ground_courier__pickup" | "chrt_ground_courier__deliver" | "chrt_ground_courier__recover_from_airline" | "chrt_ground_courier__tender_to_airline" | "chrt_ground_courier__consolidate" | "chrt_ground_courier__hold" | "chrt_ground_courier__other";
22
5
  export declare const ChrtGroundCourierTaskActionEnum1: {
23
6
  readonly ChrtGroundCourierPickup: "chrt_ground_courier__pickup";
@@ -2,7 +2,7 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Chrt from "../index.js";
5
- export interface Driver1Input {
5
+ export interface Driver1 {
6
6
  schema_version: number;
7
7
  email_address_primary?: string | null;
8
8
  email_address_secondary?: string | null;
@@ -1,10 +1,6 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- /**
5
- * Notes for order validation logic
6
- * - the tasks below are already in sequential order, they might not all be present in the task group, but they must follow this order
7
- */
8
4
  export type FlightTaskActionEnum1 = "flight__cargo_received_by_airline" | "flight__cargo_loaded_onto_flight" | "flight__flight_departed" | "flight__flight_arrived" | "flight__cargo_offloaded_from_flight" | "flight__cargo_cleared_customs" | "flight__cargo_ready_for_recovery";
9
5
  export declare const FlightTaskActionEnum1: {
10
6
  readonly FlightCargoReceivedByAirline: "flight__cargo_received_by_airline";
@@ -6,14 +6,14 @@
6
6
  * Controlled by Groups that admins configure.
7
7
  * Individual users in the group can opt out.
8
8
  */
9
- export type NotificationEventsForOrgsEnum = "shipping.order.staged" | "shipping.order.completed" | "shipping.order.cancelled" | "shipping.task_group.courier_org_assigned" | "shipping.task_group.in_progress" | "shipping.task_group.s3_object_added" | "shipping.task_group.driver_assigned" | "shipping.task_group.message" | "shipping.task_group.tasks_ordering_updated" | "shipping.task_group.flight_info_updated" | "shipping.task.added" | "shipping.task.completed" | "shipping.task.skipped" | "shipping.task.deleted" | "billing.statement.opened" | "billing.statement.paid" | "billing.line_item_group.message" | "billing.line_item_group.s3_object_added";
9
+ export type NotificationEventsForOrgsEnum = "shipping.order.staged" | "shipping.order.completed" | "shipping.order.cancelled" | "shipping.task_group.courier_org_assigned" | "shipping.task_group.in_progress" | "shipping.task_group.file_added" | "shipping.task_group.driver_assigned" | "shipping.task_group.message" | "shipping.task_group.tasks_ordering_updated" | "shipping.task_group.flight_info_updated" | "shipping.task.added" | "shipping.task.completed" | "shipping.task.skipped" | "shipping.task.deleted" | "shipping.task.task_artifact_completed" | "billing.statement.opened" | "billing.statement.paid" | "billing.line_item_group.message" | "billing.line_item_group.file_added";
10
10
  export declare const NotificationEventsForOrgsEnum: {
11
11
  readonly ShippingOrderStaged: "shipping.order.staged";
12
12
  readonly ShippingOrderCompleted: "shipping.order.completed";
13
13
  readonly ShippingOrderCancelled: "shipping.order.cancelled";
14
14
  readonly ShippingTaskGroupCourierOrgAssigned: "shipping.task_group.courier_org_assigned";
15
15
  readonly ShippingTaskGroupInProgress: "shipping.task_group.in_progress";
16
- readonly ShippingTaskGroupS3ObjectAdded: "shipping.task_group.s3_object_added";
16
+ readonly ShippingTaskGroupFileAdded: "shipping.task_group.file_added";
17
17
  readonly ShippingTaskGroupDriverAssigned: "shipping.task_group.driver_assigned";
18
18
  readonly ShippingTaskGroupMessage: "shipping.task_group.message";
19
19
  readonly ShippingTaskGroupTasksOrderingUpdated: "shipping.task_group.tasks_ordering_updated";
@@ -22,8 +22,9 @@ export declare const NotificationEventsForOrgsEnum: {
22
22
  readonly ShippingTaskCompleted: "shipping.task.completed";
23
23
  readonly ShippingTaskSkipped: "shipping.task.skipped";
24
24
  readonly ShippingTaskDeleted: "shipping.task.deleted";
25
+ readonly ShippingTaskTaskArtifactCompleted: "shipping.task.task_artifact_completed";
25
26
  readonly BillingStatementOpened: "billing.statement.opened";
26
27
  readonly BillingStatementPaid: "billing.statement.paid";
27
28
  readonly BillingLineItemGroupMessage: "billing.line_item_group.message";
28
- readonly BillingLineItemGroupS3ObjectAdded: "billing.line_item_group.s3_object_added";
29
+ readonly BillingLineItemGroupFileAdded: "billing.line_item_group.file_added";
29
30
  };
@@ -10,7 +10,7 @@ exports.NotificationEventsForOrgsEnum = {
10
10
  ShippingOrderCancelled: "shipping.order.cancelled",
11
11
  ShippingTaskGroupCourierOrgAssigned: "shipping.task_group.courier_org_assigned",
12
12
  ShippingTaskGroupInProgress: "shipping.task_group.in_progress",
13
- ShippingTaskGroupS3ObjectAdded: "shipping.task_group.s3_object_added",
13
+ ShippingTaskGroupFileAdded: "shipping.task_group.file_added",
14
14
  ShippingTaskGroupDriverAssigned: "shipping.task_group.driver_assigned",
15
15
  ShippingTaskGroupMessage: "shipping.task_group.message",
16
16
  ShippingTaskGroupTasksOrderingUpdated: "shipping.task_group.tasks_ordering_updated",
@@ -19,8 +19,9 @@ exports.NotificationEventsForOrgsEnum = {
19
19
  ShippingTaskCompleted: "shipping.task.completed",
20
20
  ShippingTaskSkipped: "shipping.task.skipped",
21
21
  ShippingTaskDeleted: "shipping.task.deleted",
22
+ ShippingTaskTaskArtifactCompleted: "shipping.task.task_artifact_completed",
22
23
  BillingStatementOpened: "billing.statement.opened",
23
24
  BillingStatementPaid: "billing.statement.paid",
24
25
  BillingLineItemGroupMessage: "billing.line_item_group.message",
25
- BillingLineItemGroupS3ObjectAdded: "billing.line_item_group.s3_object_added",
26
+ BillingLineItemGroupFileAdded: "billing.line_item_group.file_added",
26
27
  };
@@ -9,6 +9,9 @@ import * as Chrt from "../index.js";
9
9
  * - created_at_timestamp
10
10
  * - user_ids
11
11
  * - user_ids_opted_out
12
+ *
13
+ * Includes computed fields:
14
+ * - is_opted_out: True if the requesting user is in user_ids_opted_out
12
15
  */
13
16
  export interface NotificationGroupLimitedForDriver1 {
14
17
  _id: string;
@@ -20,4 +23,5 @@ export interface NotificationGroupLimitedForDriver1 {
20
23
  email_events: Chrt.NotificationEventsForOrgsEnum[];
21
24
  push_events: Chrt.NotificationEventsForOrgsEnum[];
22
25
  sms_events: Chrt.NotificationEventsForOrgsEnum[];
26
+ is_opted_out: boolean;
23
27
  }
@@ -1,13 +1,6 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- /**
5
- * Notes for order validation logic
6
- * - the tasks below are already in sequential order, they might not all be present in the task group, but they must follow this order
7
- * - exceptions
8
- * - a courier might have multiple flights, thus these four can occur in "loops" but otherwise must be in proper order: {COURIER_BOARDED_FLIGHT, FLIGHT_DEPARTED, FLIGHT_ARRIVED, COURIER_DEBOARDED_FLIGHT}
9
- * - CARGO_RECEIVED_BY_AIRLINE and COURIER_RECOVERED_CARGO which can occur at any time
10
- */
11
4
  export type OnboardCourierTaskActionEnum1 = "obc__courier_departed_for_pickup_location" | "obc__courier_arrived_at_pickup_location" | "obc__cargo_picked_up" | "obc__courier_departed_for_airport" | "obc__courier_arrived_at_airport" | "obc__courier_thru_security" | "obc__cargo_received_by_airline" | "obc__courier_boarded_flight" | "obc__flight_departed" | "obc__flight_arrived" | "obc__courier_deboarded_flight" | "obc__courier_cleared_customs" | "obc__courier_recovered_cargo" | "obc__courier_departed_for_delivery_location" | "obc__courier_arrived_at_delivery_location" | "obc__cargo_delivered";
12
5
  export declare const OnboardCourierTaskActionEnum1: {
13
6
  readonly ObcCourierDepartedForPickupLocation: "obc__courier_departed_for_pickup_location";
@@ -4,5 +4,5 @@
4
4
  import * as Chrt from "../index.js";
5
5
  export interface OrgMembersAndDrivers {
6
6
  org_member: Chrt.OrgMemberDetails;
7
- driver?: Chrt.Driver1Output | null;
7
+ driver?: Chrt.Driver1 | null;
8
8
  }
@@ -1,11 +1,10 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as Chrt from "../index.js";
5
4
  export interface ShippingOrderCancelledWebhookPayload {
6
5
  event_type?: "shipping.order.cancelled";
7
6
  /** UTC timestamp when the event occurred */
8
7
  event_timestamp: string;
9
8
  /** The order that was cancelled */
10
- order: Chrt.Order1;
9
+ order_id: string;
11
10
  }
@@ -1,11 +1,10 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as Chrt from "../index.js";
5
4
  export interface ShippingOrderCompletedWebhookPayload {
6
5
  event_type?: "shipping.order.completed";
7
6
  /** UTC timestamp when the event occurred */
8
7
  event_timestamp: string;
9
8
  /** The order that was completed */
10
- order: Chrt.Order1;
9
+ order_id: string;
11
10
  }
@@ -1,11 +1,10 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as Chrt from "../index.js";
5
4
  export interface ShippingOrderStagedWebhookPayload {
6
5
  event_type?: "shipping.order.staged";
7
6
  /** UTC timestamp when the event occurred */
8
7
  event_timestamp: string;
9
8
  /** The order that was staged */
10
- order: Chrt.Order1;
9
+ order_id: string;
11
10
  }
@@ -11,5 +11,12 @@ export interface ShippingTaskAddedWebhookPayload {
11
11
  /** The task group the task was added to */
12
12
  task_group_id: string;
13
13
  /** The task that was added */
14
- task: Chrt.Task1Input;
14
+ task_id: string;
15
+ /** The task action type (e.g., PICKUP, DELIVER) */
16
+ action?: ShippingTaskAddedWebhookPayload.Action | null;
17
+ /** The location where the task is to be performed */
18
+ location?: Chrt.LocationFeature | null;
19
+ }
20
+ export declare namespace ShippingTaskAddedWebhookPayload {
21
+ type Action = Chrt.ChrtGroundCourierTaskActionEnum1 | Chrt.FlightTaskActionEnum1 | Chrt.OnboardCourierTaskActionEnum1;
15
22
  }
@@ -10,6 +10,15 @@ export interface ShippingTaskCompletedWebhookPayload {
10
10
  order_id: string;
11
11
  /** The task group containing the task */
12
12
  task_group_id: string;
13
+ /** The type of task group (CHRT_GROUND_COURIER, FLIGHT, ONBOARD_COURIER) */
14
+ task_group_type: Chrt.TaskGroupTypeEnum1;
13
15
  /** The task that was completed */
14
- task: Chrt.Task1Input;
16
+ task_id: string;
17
+ /** The task action type (e.g., PICKUP, DELIVER) */
18
+ action?: ShippingTaskCompletedWebhookPayload.Action | null;
19
+ /** The location where the task was performed */
20
+ location?: Chrt.LocationFeature | null;
21
+ }
22
+ export declare namespace ShippingTaskCompletedWebhookPayload {
23
+ type Action = Chrt.ChrtGroundCourierTaskActionEnum1 | Chrt.FlightTaskActionEnum1 | Chrt.OnboardCourierTaskActionEnum1;
15
24
  }
@@ -1,6 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ import * as Chrt from "../index.js";
4
5
  export interface ShippingTaskDeletedWebhookPayload {
5
6
  event_type?: "shipping.task.deleted";
6
7
  /** UTC timestamp when the event occurred */
@@ -11,4 +12,11 @@ export interface ShippingTaskDeletedWebhookPayload {
11
12
  task_group_id: string;
12
13
  /** The ID of the task that was deleted */
13
14
  task_id: string;
15
+ /** The task action type (e.g., PICKUP, DELIVER) */
16
+ action?: ShippingTaskDeletedWebhookPayload.Action | null;
17
+ /** The location where the task was to be performed */
18
+ location?: Chrt.LocationFeature | null;
19
+ }
20
+ export declare namespace ShippingTaskDeletedWebhookPayload {
21
+ type Action = Chrt.ChrtGroundCourierTaskActionEnum1 | Chrt.FlightTaskActionEnum1 | Chrt.OnboardCourierTaskActionEnum1;
14
22
  }
@@ -1,7 +1,6 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as Chrt from "../index.js";
5
4
  export interface ShippingTaskGroupDriverAssignedWebhookPayload {
6
5
  event_type?: "shipping.task_group.driver_assigned";
7
6
  /** UTC timestamp when the event occurred */
@@ -11,5 +10,5 @@ export interface ShippingTaskGroupDriverAssignedWebhookPayload {
11
10
  /** The specific task group the driver was assigned to */
12
11
  task_group_id: string;
13
12
  /** The driver that was assigned */
14
- driver: Chrt.Driver1Input;
13
+ driver_id: string;
15
14
  }
@@ -1,7 +1,6 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as Chrt from "../index.js";
5
4
  export interface ShippingTaskGroupInProgressWebhookPayload {
6
5
  event_type?: "shipping.task_group.in_progress";
7
6
  /** UTC timestamp when the event occurred */
@@ -9,5 +8,5 @@ export interface ShippingTaskGroupInProgressWebhookPayload {
9
8
  /** The order containing the task group */
10
9
  order_id: string;
11
10
  /** The task group that is now in progress */
12
- task_group: Chrt.TaskGroup1;
11
+ task_group_id: string;
13
12
  }
@@ -1,15 +1,12 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as Chrt from "../index.js";
5
4
  export interface ShippingTaskGroupS3ObjectAddedWebhookPayload {
6
- event_type?: "shipping.task_group.s3_object_added";
5
+ event_type?: "shipping.task_group.file_added";
7
6
  /** UTC timestamp when the event occurred */
8
7
  event_timestamp: string;
9
8
  /** The order containing the task group */
10
9
  order_id: string;
11
- /** The task group the S3 object was added to */
10
+ /** The task group the file was added to */
12
11
  task_group_id: string;
13
- /** Metadata for the S3 object that was added */
14
- s3_object_metadata: Chrt.TaskGroupS3ObjectMetadata1;
15
12
  }
@@ -11,5 +11,12 @@ export interface ShippingTaskSkippedWebhookPayload {
11
11
  /** The task group containing the task */
12
12
  task_group_id: string;
13
13
  /** The task that was skipped */
14
- task: Chrt.Task1Input;
14
+ task_id: string;
15
+ /** The task action type (e.g., PICKUP, DELIVER) */
16
+ action?: ShippingTaskSkippedWebhookPayload.Action | null;
17
+ /** The location where the task was to be performed */
18
+ location?: Chrt.LocationFeature | null;
19
+ }
20
+ export declare namespace ShippingTaskSkippedWebhookPayload {
21
+ type Action = Chrt.ChrtGroundCourierTaskActionEnum1 | Chrt.FlightTaskActionEnum1 | Chrt.OnboardCourierTaskActionEnum1;
15
22
  }
@@ -0,0 +1,19 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../index.js";
5
+ export interface ShippingTaskTaskArtifactCompletedWebhookPayload {
6
+ event_type?: "shipping.task.task_artifact_completed";
7
+ /** UTC timestamp when the event occurred */
8
+ event_timestamp: string;
9
+ /** The order containing the task */
10
+ order_id: string;
11
+ /** The task group containing the task */
12
+ task_group_id: string;
13
+ /** The task the artifact belongs to */
14
+ task_id: string;
15
+ /** The task artifact that was completed */
16
+ task_artifact_id: string;
17
+ /** The type of task artifact (e.g., IMAGE, SIGNATURE) */
18
+ task_artifact_type: Chrt.TaskArtifactTypeEnum1;
19
+ }
@@ -2,10 +2,10 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Chrt from "../index.js";
5
- export interface Task1Input {
5
+ export interface Task1 {
6
6
  schema_version: number;
7
7
  location?: Chrt.LocationFeature | null;
8
- action?: Task1Input.Action | null;
8
+ action?: Task1.Action | null;
9
9
  time_windows?: Chrt.TimeWindow1[];
10
10
  order_placer_comments?: string | null;
11
11
  directory_entry_ids?: string[];
@@ -31,6 +31,6 @@ export interface Task1Input {
31
31
  exception_at_timestamp?: string | null;
32
32
  order_cancelled?: boolean;
33
33
  }
34
- export declare namespace Task1Input {
34
+ export declare namespace Task1 {
35
35
  type Action = Chrt.ChrtGroundCourierTaskActionEnum1 | Chrt.FlightTaskActionEnum1 | Chrt.OnboardCourierTaskActionEnum1;
36
36
  }
@@ -3,7 +3,7 @@
3
3
  */
4
4
  import * as Chrt from "../index.js";
5
5
  export interface TaskExpanded {
6
- task: Chrt.Task1Output;
6
+ task: Chrt.Task1;
7
7
  cargos?: Chrt.Cargo1[] | null;
8
8
  task_artifacts?: Chrt.TaskArtifact1[] | null;
9
9
  directory_entries?: Chrt.DirectoryEntry1[] | null;
@@ -5,7 +5,7 @@ import * as Chrt from "../index.js";
5
5
  export interface TaskGroupExpanded {
6
6
  task_group: Chrt.TaskGroup1;
7
7
  tasks_expanded?: Chrt.TaskExpanded[] | null;
8
- driver?: Chrt.Driver1Output | null;
8
+ driver?: Chrt.Driver1 | null;
9
9
  courier_org_company_name?: string | null;
10
10
  courier_org_handle?: string | null;
11
11
  forwarder_org_company_name?: string | null;
@@ -26,8 +26,7 @@ export * from "./CreateStripeConnectAccountRes.js";
26
26
  export * from "./DecodedJwtWithOrgAndUserId.js";
27
27
  export * from "./Device1.js";
28
28
  export * from "./DirectoryEntry1.js";
29
- export * from "./Driver1Input.js";
30
- export * from "./Driver1Output.js";
29
+ export * from "./Driver1.js";
31
30
  export * from "./DriverStatusEnum.js";
32
31
  export * from "./DriverUpdateAvailabilityReq.js";
33
32
  export * from "./DriverUpdateRes.js";
@@ -121,6 +120,7 @@ export * from "./ShippingTaskGroupMessageWebhookPayload.js";
121
120
  export * from "./ShippingTaskGroupS3ObjectAddedWebhookPayload.js";
122
121
  export * from "./ShippingTaskGroupTasksOrderingUpdatedWebhookPayload.js";
123
122
  export * from "./ShippingTaskSkippedWebhookPayload.js";
123
+ export * from "./ShippingTaskTaskArtifactCompletedWebhookPayload.js";
124
124
  export * from "./SortOrderEnum.js";
125
125
  export * from "./Statement1.js";
126
126
  export * from "./StatementExpandedRes.js";
@@ -129,8 +129,7 @@ export * from "./StatementStatusEnum1.js";
129
129
  export * from "./StatementsListRes.js";
130
130
  export * from "./StripeConnectAccountOnboardingLinkRes.js";
131
131
  export * from "./StripeConnectInvoiceStatusEnum.js";
132
- export * from "./Task1Input.js";
133
- export * from "./Task1Output.js";
132
+ export * from "./Task1.js";
134
133
  export * from "./TaskArtifact1.js";
135
134
  export * from "./TaskArtifactClientCreate1.js";
136
135
  export * from "./TaskArtifactS3ObjectMetadata1.js";
@@ -42,8 +42,7 @@ __exportStar(require("./CreateStripeConnectAccountRes.js"), exports);
42
42
  __exportStar(require("./DecodedJwtWithOrgAndUserId.js"), exports);
43
43
  __exportStar(require("./Device1.js"), exports);
44
44
  __exportStar(require("./DirectoryEntry1.js"), exports);
45
- __exportStar(require("./Driver1Input.js"), exports);
46
- __exportStar(require("./Driver1Output.js"), exports);
45
+ __exportStar(require("./Driver1.js"), exports);
47
46
  __exportStar(require("./DriverStatusEnum.js"), exports);
48
47
  __exportStar(require("./DriverUpdateAvailabilityReq.js"), exports);
49
48
  __exportStar(require("./DriverUpdateRes.js"), exports);
@@ -137,6 +136,7 @@ __exportStar(require("./ShippingTaskGroupMessageWebhookPayload.js"), exports);
137
136
  __exportStar(require("./ShippingTaskGroupS3ObjectAddedWebhookPayload.js"), exports);
138
137
  __exportStar(require("./ShippingTaskGroupTasksOrderingUpdatedWebhookPayload.js"), exports);
139
138
  __exportStar(require("./ShippingTaskSkippedWebhookPayload.js"), exports);
139
+ __exportStar(require("./ShippingTaskTaskArtifactCompletedWebhookPayload.js"), exports);
140
140
  __exportStar(require("./SortOrderEnum.js"), exports);
141
141
  __exportStar(require("./Statement1.js"), exports);
142
142
  __exportStar(require("./StatementExpandedRes.js"), exports);
@@ -145,8 +145,7 @@ __exportStar(require("./StatementStatusEnum1.js"), exports);
145
145
  __exportStar(require("./StatementsListRes.js"), exports);
146
146
  __exportStar(require("./StripeConnectAccountOnboardingLinkRes.js"), exports);
147
147
  __exportStar(require("./StripeConnectInvoiceStatusEnum.js"), exports);
148
- __exportStar(require("./Task1Input.js"), exports);
149
- __exportStar(require("./Task1Output.js"), exports);
148
+ __exportStar(require("./Task1.js"), exports);
150
149
  __exportStar(require("./TaskArtifact1.js"), exports);
151
150
  __exportStar(require("./TaskArtifactClientCreate1.js"), exports);
152
151
  __exportStar(require("./TaskArtifactS3ObjectMetadata1.js"), exports);
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.378.0";
1
+ export declare const SDK_VERSION = "1.381.0";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "1.378.0";
4
+ exports.SDK_VERSION = "1.381.0";
@@ -30,8 +30,8 @@ export class ChrtClient {
30
30
  this._options = Object.assign(Object.assign({}, _options), { headers: mergeHeaders({
31
31
  "X-Fern-Language": "JavaScript",
32
32
  "X-Fern-SDK-Name": "@chrt-inc/typescript-sdk",
33
- "X-Fern-SDK-Version": "1.378.0",
34
- "User-Agent": "@chrt-inc/typescript-sdk/1.378.0",
33
+ "X-Fern-SDK-Version": "1.381.0",
34
+ "User-Agent": "@chrt-inc/typescript-sdk/1.381.0",
35
35
  "X-Fern-Runtime": core.RUNTIME.type,
36
36
  "X-Fern-Runtime-Version": core.RUNTIME.version,
37
37
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -38,7 +38,7 @@ export declare class Drivers {
38
38
  * @example
39
39
  * await client.drivers.getForCallerV1()
40
40
  */
41
- getForCallerV1(requestOptions?: Drivers.RequestOptions): core.HttpResponsePromise<Chrt.Driver1Output>;
41
+ getForCallerV1(requestOptions?: Drivers.RequestOptions): core.HttpResponsePromise<Chrt.Driver1>;
42
42
  private __getForCallerV1;
43
43
  /**
44
44
  * Retrieves detailed driver information by driver ID within the organization. | () -> (Driver1)
@@ -51,7 +51,7 @@ export declare class Drivers {
51
51
  * @example
52
52
  * await client.drivers.getByDriverIdV1("driver_id")
53
53
  */
54
- getByDriverIdV1(driverId: string, requestOptions?: Drivers.RequestOptions): core.HttpResponsePromise<Chrt.Driver1Output>;
54
+ getByDriverIdV1(driverId: string, requestOptions?: Drivers.RequestOptions): core.HttpResponsePromise<Chrt.Driver1>;
55
55
  private __getByDriverIdV1;
56
56
  /**
57
57
  * Lists all organization members paired with their driver information if they are drivers. Filter by availability. | () -> (list[OrgMembersAndDrivers])
@@ -83,7 +83,7 @@ export declare class Drivers {
83
83
  * available_according_to_operators: true
84
84
  * })
85
85
  */
86
- listV1(request?: Chrt.DriversListV1Request, requestOptions?: Drivers.RequestOptions): core.HttpResponsePromise<Chrt.Driver1Output[]>;
86
+ listV1(request?: Chrt.DriversListV1Request, requestOptions?: Drivers.RequestOptions): core.HttpResponsePromise<Chrt.Driver1[]>;
87
87
  private __listV1;
88
88
  /**
89
89
  * Creates a new driver profile for the target user (defaults to caller). Drivers can create themselves; operators+ can create any org member. Courier orgs only. | (DriverClientCreate1) -> (PydanticObjectId)
@@ -6,8 +6,8 @@ export interface BillingLineItemGroupMessageWebhookPayload {
6
6
  event_type?: "billing.line_item_group.message";
7
7
  /** UTC timestamp when the event occurred */
8
8
  event_timestamp: string;
9
- /** The message that was added to the line item group */
10
- message: Chrt.LineItemGroupMessage1;
11
9
  /** The line item group the message was added to */
12
10
  line_item_group_id: string;
11
+ /** The message that was added to the line item group */
12
+ message: Chrt.LineItemGroupMessage1;
13
13
  }
@@ -1,13 +1,10 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as Chrt from "../index.mjs";
5
4
  export interface BillingLineItemGroupS3ObjectAddedWebhookPayload {
6
- event_type?: "billing.line_item_group.s3_object_added";
5
+ event_type?: "billing.line_item_group.file_added";
7
6
  /** UTC timestamp when the event occurred */
8
7
  event_timestamp: string;
9
- /** Metadata for the S3 object that was added */
10
- s3_object_metadata: Chrt.LineItemGroupS3ObjectMetadata1;
11
- /** The line item group the S3 object was added to */
8
+ /** The line item group the file was added to */
12
9
  line_item_group_id: string;
13
10
  }
@@ -1,11 +1,10 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as Chrt from "../index.mjs";
5
4
  export interface BillingStatementOpenedWebhookPayload {
6
5
  event_type?: "billing.statement.opened";
7
6
  /** UTC timestamp when the event occurred */
8
7
  event_timestamp: string;
9
8
  /** The statement that was opened */
10
- statement: Chrt.Statement1;
9
+ statement_id: string;
11
10
  }
@@ -1,11 +1,10 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as Chrt from "../index.mjs";
5
4
  export interface BillingStatementPaidWebhookPayload {
6
5
  event_type?: "billing.statement.paid";
7
6
  /** UTC timestamp when the event occurred */
8
7
  event_timestamp: string;
9
8
  /** The statement that was paid */
10
- statement: Chrt.Statement1;
9
+ statement_id: string;
11
10
  }