@routeflow/types 1.0.17 → 1.0.19

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.
package/dist/index.d.ts CHANGED
@@ -2956,7 +2956,10 @@ export type webhooks = Record<string, never>;
2956
2956
  export interface components {
2957
2957
  schemas: {
2958
2958
  RegisterDto: {
2959
- /** @example user@example.com */
2959
+ /**
2960
+ * Format: email
2961
+ * @example user@example.com
2962
+ */
2960
2963
  email: string;
2961
2964
  /** @example password123 */
2962
2965
  password: string;
@@ -3005,6 +3008,56 @@ export interface components {
3005
3008
  /** Format: date-time */
3006
3009
  updatedAt: string;
3007
3010
  };
3011
+ TruckResponseDto: {
3012
+ id: string;
3013
+ truckNumber: string;
3014
+ year?: number;
3015
+ make?: string;
3016
+ model?: string;
3017
+ vin?: string;
3018
+ licensePlate?: string;
3019
+ /** @enum {string} */
3020
+ status: "ACTIVE" | "IN_SHOP" | "INACTIVE";
3021
+ mileage?: number;
3022
+ /** @enum {string} */
3023
+ fuelType?: "DIESEL" | "GASOLINE" | "ELECTRIC" | "HYBRID";
3024
+ /** Format: date-time */
3025
+ insuranceExpiry?: string;
3026
+ /** Format: date-time */
3027
+ lastServiceDate?: string;
3028
+ notes?: string;
3029
+ orgId: string;
3030
+ assignedDriverId?: string;
3031
+ assignedDriver?: components["schemas"]["UserResponseDto"];
3032
+ /** Format: date-time */
3033
+ createdAt: string;
3034
+ /** Format: date-time */
3035
+ updatedAt: string;
3036
+ };
3037
+ TrailerResponseDto: {
3038
+ id: string;
3039
+ trailerNumber: string;
3040
+ /** @enum {string} */
3041
+ type: "RGN" | "SD" | "FLATBED" | "REEFER" | "DRY_VAN" | "STEP_DECK" | "LOWBOY";
3042
+ length?: string;
3043
+ weightCapacity?: string;
3044
+ /** @enum {string} */
3045
+ status: "ACTIVE" | "IN_SHOP" | "INACTIVE";
3046
+ vin?: string;
3047
+ licensePlate?: string;
3048
+ /** Format: date-time */
3049
+ registrationExpiry?: string;
3050
+ /** Format: date-time */
3051
+ lastInspectionDate?: string;
3052
+ notes?: string;
3053
+ orgId: string;
3054
+ assignedDriverId?: string;
3055
+ assignedDriver?: components["schemas"]["UserResponseDto"];
3056
+ /** Format: date-time */
3057
+ createdAt: string;
3058
+ /** Format: date-time */
3059
+ updatedAt: string;
3060
+ };
3008
3061
  UserResponseDto: {
3009
3062
  id: string;
3010
3063
  email?: string;
@@ -3017,6 +3070,8 @@ export interface components {
3017
3070
  isActive: boolean;
3018
3071
  orgId: string;
3019
3072
  org?: components["schemas"]["OrganizationResponseDto"];
3073
+ assignedTruck?: components["schemas"]["TruckResponseDto"];
3074
+ assignedTrailer?: components["schemas"]["TrailerResponseDto"];
3020
3075
  /** Format: date-time */
3021
3076
  createdAt: string;
3022
3077
  /** Format: date-time */
@@ -3028,13 +3083,17 @@ export interface components {
3028
3083
  user: components["schemas"]["UserResponseDto"];
3029
3084
  };
3030
3085
  LoginDto: {
3031
- /** @example user@example.com */
3086
+ /**
3087
+ * Format: email
3088
+ * @example user@example.com
3089
+ */
3032
3090
  email: string;
3033
3091
  /** @example password123 */
3034
3092
  password: string;
3035
3093
  };
3036
3094
  VerifyEmailDto: {
3037
3095
  /**
3096
+ * Format: email
3038
3097
  * @description Email address
3039
3098
  * @example user@example.com
3040
3099
  */
@@ -3047,6 +3106,7 @@ export interface components {
3047
3106
  };
3048
3107
  ResendCodeDto: {
3049
3108
  /**
3109
+ * Format: email
3050
3110
  * @description Email address
3051
3111
  * @example user@example.com
3052
3112
  */
@@ -3088,6 +3148,7 @@ export interface components {
3088
3148
  };
3089
3149
  ForgotPasswordDto: {
3090
3150
  /**
3151
+ * Format: email
3091
3152
  * @description Email address to send password reset link
3092
3153
  * @example driver@example.com
3093
3154
  */
@@ -3106,7 +3167,10 @@ export interface components {
3106
3167
  newPassword: string;
3107
3168
  };
3108
3169
  CreateUserDto: {
3109
- /** @example user@example.com */
3170
+ /**
3171
+ * Format: email
3172
+ * @example user@example.com
3173
+ */
3110
3174
  email?: string;
3111
3175
  /** @example password123 */
3112
3176
  password?: string;
@@ -3129,7 +3193,10 @@ export interface components {
3129
3193
  UpdateUserDto: {
3130
3194
  /** @example John Doe */
3131
3195
  name?: string;
3132
- /** @example user@example.com */
3196
+ /**
3197
+ * Format: email
3198
+ * @example user@example.com
3199
+ */
3133
3200
  email?: string;
3134
3201
  /** @example +1234567890 */
3135
3202
  phone?: string;
@@ -3170,7 +3237,10 @@ export interface components {
3170
3237
  settings?: Record<string, never>;
3171
3238
  };
3172
3239
  InviteUserDto: {
3173
- /** @example user@example.com */
3240
+ /**
3241
+ * Format: email
3242
+ * @example user@example.com
3243
+ */
3174
3244
  email?: string;
3175
3245
  /**
3176
3246
  * @example DRIVER
@@ -3199,7 +3269,10 @@ export interface components {
3199
3269
  zipCode?: string;
3200
3270
  /** @example 555-123-4567 */
3201
3271
  phone?: string;
3202
- /** @example dispatch@acmetrucking.com */
3272
+ /**
3273
+ * Format: email
3274
+ * @example dispatch@acmetrucking.com
3275
+ */
3203
3276
  email?: string;
3204
3277
  /** @example 10 */
3205
3278
  fleetSize?: number;
@@ -3221,7 +3294,10 @@ export interface components {
3221
3294
  ExpressFactoringInterestDto: {
3222
3295
  /** @example OTR_CAPITAL */
3223
3296
  partner: string;
3224
- /** @example dispatch@acmetrucking.com */
3297
+ /**
3298
+ * Format: email
3299
+ * @example dispatch@acmetrucking.com
3300
+ */
3225
3301
  contactEmail?: string;
3226
3302
  /** @example 555-123-4567 */
3227
3303
  contactPhone?: string;
@@ -3407,6 +3483,10 @@ export interface components {
3407
3483
  stopsTotal: number;
3408
3484
  stopsCompleted: number;
3409
3485
  };
3486
+ RunSummaryListResponseDto: {
3487
+ items: components["schemas"]["RunSummaryResponseDto"][];
3488
+ total: number;
3489
+ };
3410
3490
  UpdateRunDto: {
3411
3491
  /** @example Morning Route - Updated */
3412
3492
  name?: string;
@@ -3481,11 +3561,11 @@ export interface components {
3481
3561
  /** @example -74.006 */
3482
3562
  lng: number;
3483
3563
  /** @example John Smith */
3484
- contactName?: Record<string, never> | null;
3564
+ contactName?: string;
3485
3565
  /** @example +1 (555) 123-4567 */
3486
- contactPhone?: Record<string, never> | null;
3566
+ contactPhone?: string;
3487
3567
  /** @example Ring doorbell twice */
3488
- notes?: Record<string, never> | null;
3568
+ notes?: string;
3489
3569
  /** @example 2025-12-09T08:00:00Z */
3490
3570
  timeWindowStart?: string;
3491
3571
  /** @example 2025-12-09T12:00:00Z */
@@ -3528,11 +3608,11 @@ export interface components {
3528
3608
  /** @example -74.006 */
3529
3609
  lng?: number;
3530
3610
  /** @example John Smith */
3531
- contactName?: Record<string, never> | null;
3611
+ contactName?: string;
3532
3612
  /** @example +1 (555) 123-4567 */
3533
- contactPhone?: Record<string, never> | null;
3613
+ contactPhone?: string;
3534
3614
  /** @example Ring doorbell twice */
3535
- notes?: Record<string, never> | null;
3615
+ notes?: string;
3536
3616
  /** @example 2025-12-09T08:00:00Z */
3537
3617
  timeWindowStart?: string;
3538
3618
  /** @example 2025-12-09T12:00:00Z */
@@ -3602,6 +3682,10 @@ export interface components {
3602
3682
  /** Format: date-time */
3603
3683
  updatedAt: string;
3604
3684
  };
3685
+ RunChargeListResponseDto: {
3686
+ items: components["schemas"]["RunChargeResponseDto"][];
3687
+ total: number;
3688
+ };
3605
3689
  CreateRunChargeDto: {
3606
3690
  /**
3607
3691
  * @description Type of charge
@@ -3638,13 +3722,17 @@ export interface components {
3638
3722
  */
3639
3723
  amount?: number;
3640
3724
  };
3725
+ UploadUrlResponseDto: {
3726
+ url: string;
3727
+ fileKey: string;
3728
+ };
3641
3729
  UnifiedUploadDto: {
3642
- /** @description Base64 encoded file */
3730
+ /** @description Base64 encoded file (max 20MB) */
3643
3731
  fileBase64: string;
3644
3732
  /** @description Original file name */
3645
3733
  fileName: string;
3646
3734
  /**
3647
- * @description MIME type of the file
3735
+ * @description MIME type of the file (allowed: application/pdf, image/jpeg, image/png, image/gif, image/webp, image/tiff)
3648
3736
  * @default application/pdf
3649
3737
  */
3650
3738
  mimeType: string;
@@ -3666,39 +3754,39 @@ export interface components {
3666
3754
  };
3667
3755
  ExtractedAssetFieldDto: {
3668
3756
  /** @description Driver name */
3669
- name?: Record<string, never>;
3757
+ name?: string | null;
3670
3758
  /** @description Phone number */
3671
- phone?: Record<string, never>;
3759
+ phone?: string | null;
3672
3760
  /** @description Email address */
3673
- email?: Record<string, never>;
3761
+ email?: string | null;
3674
3762
  /** @description License number */
3675
- licenseNumber?: Record<string, never>;
3763
+ licenseNumber?: string | null;
3676
3764
  /** @description License expiry date */
3677
- licenseExpiry?: Record<string, never>;
3765
+ licenseExpiry?: string | null;
3678
3766
  /** @description License state */
3679
- licenseState?: Record<string, never>;
3767
+ licenseState?: string | null;
3680
3768
  /** @description Truck number/ID */
3681
- truckNumber?: Record<string, never>;
3769
+ truckNumber?: string | null;
3682
3770
  /** @description Vehicle Identification Number */
3683
- vin?: Record<string, never>;
3771
+ vin?: string | null;
3684
3772
  /** @description Vehicle make */
3685
- make?: Record<string, never>;
3773
+ make?: string | null;
3686
3774
  /** @description Vehicle model */
3687
- model?: Record<string, never>;
3775
+ model?: string | null;
3688
3776
  /** @description Vehicle year */
3689
- year?: Record<string, never>;
3777
+ year?: number | null;
3690
3778
  /** @description License plate number */
3691
- licensePlate?: Record<string, never>;
3779
+ licensePlate?: string | null;
3692
3780
  /** @description Plate state */
3693
- plateState?: Record<string, never>;
3781
+ plateState?: string | null;
3694
3782
  /** @description Trailer number/ID */
3695
- trailerNumber?: Record<string, never>;
3783
+ trailerNumber?: string | null;
3696
3784
  /** @description Trailer type */
3697
- trailerType?: Record<string, never>;
3785
+ trailerType?: string | null;
3698
3786
  /** @description Trailer length */
3699
- length?: Record<string, never>;
3787
+ length?: number | null;
3700
3788
  /** @description Weight capacity */
3701
- weightCapacity?: Record<string, never>;
3789
+ weightCapacity?: number | null;
3702
3790
  };
3703
3791
  ExtractedAssetResponseDto: {
3704
3792
  /** @description Unique identifier */
@@ -3722,17 +3810,17 @@ export interface components {
3722
3810
  /** @description Type of source document */
3723
3811
  sourceDocumentType: string;
3724
3812
  /** @description Original file name */
3725
- fileName?: Record<string, never>;
3813
+ fileName?: string | null;
3726
3814
  /** @description ID of potential duplicate asset */
3727
- potentialDuplicateId?: Record<string, never>;
3815
+ potentialDuplicateId?: string | null;
3728
3816
  /** @description Type of potential duplicate */
3729
- potentialDuplicateType?: Record<string, never>;
3817
+ potentialDuplicateType?: string | null;
3730
3818
  /** @description ID of reviewer */
3731
- reviewedById?: Record<string, never>;
3819
+ reviewedById?: string | null;
3732
3820
  /** @description Review timestamp */
3733
- reviewedAt?: Record<string, never>;
3821
+ reviewedAt?: string | null;
3734
3822
  /** @description Review notes */
3735
- reviewNotes?: Record<string, never>;
3823
+ reviewNotes?: string | null;
3736
3824
  /** @description Creation timestamp */
3737
3825
  createdAt: string;
3738
3826
  /** @description Last update timestamp */
@@ -3790,6 +3878,13 @@ export interface components {
3790
3878
  /** @example stop-id */
3791
3879
  stopId?: string;
3792
3880
  };
3881
+ DocumentListResponseDto: {
3882
+ items: components["schemas"]["DocumentResponseDto"][];
3883
+ total: number;
3884
+ page: number;
3885
+ limit: number;
3886
+ totalPages: number;
3887
+ };
3793
3888
  ExtractAssetsDto: {
3794
3889
  /** @description Base64 encoded file */
3795
3890
  fileBase64: string;
@@ -3889,6 +3984,13 @@ export interface components {
3889
3984
  /** Format: date-time */
3890
3985
  updatedAt: string;
3891
3986
  };
3987
+ ParsedDocumentListResponseDto: {
3988
+ items: components["schemas"]["ParsedDocumentResponseDto"][];
3989
+ total: number;
3990
+ page: number;
3991
+ limit: number;
3992
+ totalPages: number;
3993
+ };
3892
3994
  ParseRateConDto: {
3893
3995
  /** @description Base64 encoded PDF file */
3894
3996
  fileBase64: string;
@@ -3949,7 +4051,8 @@ export interface components {
3949
4051
  suggestedDrivers?: components["schemas"]["SuggestedDriverDto"][];
3950
4052
  /** @description Assigned driver ID if auto-assign was enabled */
3951
4053
  assignedDriverId?: string;
3952
- parsedData: Record<string, never>;
4054
+ /** @description Parsed document data - either BOL or Rate Confirmation, null if parsing failed */
4055
+ parsedData: Record<string, never> | null;
3953
4056
  warnings?: string[];
3954
4057
  errors?: string[];
3955
4058
  processingTimeMs: number;
@@ -3995,6 +4098,13 @@ export interface components {
3995
4098
  /** @example 2025-12-31T00:00:00Z */
3996
4099
  expiryDate?: string;
3997
4100
  };
4101
+ CompanyDocumentListResponseDto: {
4102
+ items: components["schemas"]["CompanyDocumentResponseDto"][];
4103
+ total: number;
4104
+ page: number;
4105
+ limit: number;
4106
+ totalPages: number;
4107
+ };
3998
4108
  UpdateManualHosDto: {
3999
4109
  /**
4000
4110
  * @description Available driving minutes (typically 0-660 for 11 hours)
@@ -4025,7 +4135,10 @@ export interface components {
4025
4135
  runId: string;
4026
4136
  /** @example stop-id */
4027
4137
  stopId?: string;
4028
- /** @example customer@example.com */
4138
+ /**
4139
+ * Format: email
4140
+ * @example customer@example.com
4141
+ */
4029
4142
  customerEmail?: string;
4030
4143
  /** @example +1234567890 */
4031
4144
  customerPhone?: string;
@@ -4055,7 +4168,12 @@ export interface components {
4055
4168
  status: "DRAFT" | "QUEUED" | "DISPATCHED" | "IN_PROGRESS" | "COMPLETED" | "CANCELLED" | "TONU";
4056
4169
  /** Format: date-time */
4057
4170
  estimatedArrival?: string;
4058
- currentStop?: Record<string, never>;
4171
+ currentStop?: {
4172
+ id: string;
4173
+ address: string;
4174
+ /** @enum {string} */
4175
+ status: "PENDING" | "EN_ROUTE" | "ARRIVED" | "LOADING" | "LOADED" | "DELIVERING" | "DELIVERED" | "EXCEPTION" | "SKIPPED";
4176
+ };
4059
4177
  stopsTotal: number;
4060
4178
  stopsCompleted: number;
4061
4179
  };
@@ -4065,6 +4183,10 @@ export interface components {
4065
4183
  /** Format: date-time */
4066
4184
  updatedAt: string;
4067
4185
  };
4186
+ MagicLinkListResponseDto: {
4187
+ items: components["schemas"]["MagicLinkResponseDto"][];
4188
+ total: number;
4189
+ };
4068
4190
  CreateTruckDto: {
4069
4191
  /** @example TRK-001 */
4070
4192
  truckNumber: string;
@@ -4097,32 +4219,6 @@ export interface components {
4097
4219
  /** @example New tires installed */
4098
4220
  notes?: string;
4099
4221
  };
4100
- TruckResponseDto: {
4101
- id: string;
4102
- truckNumber: string;
4103
- year?: number;
4104
- make?: string;
4105
- model?: string;
4106
- vin?: string;
4107
- licensePlate?: string;
4108
- /** @enum {string} */
4109
- status: "ACTIVE" | "IN_SHOP" | "INACTIVE";
4110
- mileage?: number;
4111
- /** @enum {string} */
4112
- fuelType?: "DIESEL" | "GASOLINE" | "ELECTRIC" | "HYBRID";
4113
- /** Format: date-time */
4114
- insuranceExpiry?: string;
4115
- /** Format: date-time */
4116
- lastServiceDate?: string;
4117
- notes?: string;
4118
- orgId: string;
4119
- assignedDriverId?: string;
4120
- assignedDriver?: components["schemas"]["UserResponseDto"];
4121
- /** Format: date-time */
4122
- createdAt: string;
4123
- /** Format: date-time */
4124
- updatedAt: string;
4125
- };
4126
4222
  TruckListResponseDto: {
4127
4223
  items: components["schemas"]["TruckResponseDto"][];
4128
4224
  total: number;
@@ -4194,30 +4290,6 @@ export interface components {
4194
4290
  /** @example New brakes installed */
4195
4291
  notes?: string;
4196
4292
  };
4197
- TrailerResponseDto: {
4198
- id: string;
4199
- trailerNumber: string;
4200
- /** @enum {string} */
4201
- type: "RGN" | "SD" | "FLATBED" | "REEFER" | "DRY_VAN" | "STEP_DECK" | "LOWBOY";
4202
- length?: string;
4203
- weightCapacity?: string;
4204
- /** @enum {string} */
4205
- status: "ACTIVE" | "IN_SHOP" | "INACTIVE";
4206
- vin?: string;
4207
- licensePlate?: string;
4208
- /** Format: date-time */
4209
- registrationExpiry?: string;
4210
- /** Format: date-time */
4211
- lastInspectionDate?: string;
4212
- notes?: string;
4213
- orgId: string;
4214
- assignedDriverId?: string;
4215
- assignedDriver?: components["schemas"]["UserResponseDto"];
4216
- /** Format: date-time */
4217
- createdAt: string;
4218
- /** Format: date-time */
4219
- updatedAt: string;
4220
- };
4221
4293
  TrailerListResponseDto: {
4222
4294
  items: components["schemas"]["TrailerResponseDto"][];
4223
4295
  total: number;
@@ -4253,6 +4325,22 @@ export interface components {
4253
4325
  /** @example New brakes installed */
4254
4326
  notes?: string;
4255
4327
  };
4328
+ AssignedRunSummaryResponseDto: {
4329
+ id: string;
4330
+ name: string;
4331
+ /** @enum {string} */
4332
+ status: "DRAFT" | "QUEUED" | "DISPATCHED" | "IN_PROGRESS" | "COMPLETED" | "CANCELLED" | "TONU";
4333
+ /** Format: date-time */
4334
+ plannedDate: string;
4335
+ totalDistance?: number;
4336
+ totalDuration?: number;
4337
+ totalPay?: number;
4338
+ stopsCount: number;
4339
+ };
4340
+ AssignedRunListResponseDto: {
4341
+ items: components["schemas"]["AssignedRunSummaryResponseDto"][];
4342
+ total: number;
4343
+ };
4256
4344
  DriverResponseDto: {
4257
4345
  id: string;
4258
4346
  /** @enum {string} */
@@ -4316,7 +4404,16 @@ export interface components {
4316
4404
  /** Format: date-time */
4317
4405
  updatedAt: string;
4318
4406
  };
4407
+ DriverListResponseDto: {
4408
+ items: components["schemas"]["DriverResponseDto"][];
4409
+ total: number;
4410
+ page: number;
4411
+ limit: number;
4412
+ totalPages: number;
4413
+ };
4319
4414
  UpdateDriverDto: {
4415
+ /** @enum {string} */
4416
+ dispatchStatus?: "AVAILABLE" | "HOME" | "IN_TRANSIT" | "INACTIVE" | "SHOP" | "REST" | "DISPATCHED" | "ASSIGNED";
4320
4417
  /** @example 123 Main St */
4321
4418
  streetAddress?: string;
4322
4419
  /** @example Los Angeles */
@@ -4399,6 +4496,10 @@ export interface components {
4399
4496
  /** Format: date-time */
4400
4497
  createdAt: string;
4401
4498
  };
4499
+ DispatcherAssignmentHistoryListResponseDto: {
4500
+ items: components["schemas"]["DispatcherAssignmentHistoryResponseDto"][];
4501
+ total: number;
4502
+ };
4402
4503
  LinkTeamDriverDto: {
4403
4504
  /**
4404
4505
  * @description ID of the co-driver to link as team partner
@@ -4422,6 +4523,10 @@ export interface components {
4422
4523
  /** @enum {string} */
4423
4524
  status: "COMPLIANT" | "WARNING" | "EXPIRED" | "PENDING";
4424
4525
  };
4526
+ ComplianceWarningListResponseDto: {
4527
+ items: components["schemas"]["ComplianceWarningResponseDto"][];
4528
+ total: number;
4529
+ };
4425
4530
  DriverLocationResponseDto: {
4426
4531
  id: string;
4427
4532
  lat: number;
@@ -4435,6 +4540,10 @@ export interface components {
4435
4540
  /** Format: date-time */
4436
4541
  createdAt: string;
4437
4542
  };
4543
+ DriverLocationHistoryResponseDto: {
4544
+ items: components["schemas"]["DriverLocationResponseDto"][];
4545
+ total: number;
4546
+ };
4438
4547
  ChatMessageDto: {
4439
4548
  /** @enum {string} */
4440
4549
  role: "user" | "assistant" | "system";
@@ -4452,6 +4561,81 @@ export interface components {
4452
4561
  /** @enum {string} */
4453
4562
  documentType?: "BOL" | "POD" | "INVOICE" | "OTHER";
4454
4563
  };
4564
+ ToolCallDto: {
4565
+ /** @description Unique identifier for the tool call */
4566
+ id: string;
4567
+ /** @description Name of the tool that was called */
4568
+ name: string;
4569
+ /** @description Input parameters passed to the tool */
4570
+ input: {
4571
+ [key: string]: unknown;
4572
+ };
4573
+ /** @description Output returned by the tool */
4574
+ output: {
4575
+ [key: string]: unknown;
4576
+ };
4577
+ /**
4578
+ * @description State of the tool call
4579
+ * @enum {string}
4580
+ */
4581
+ state: "completed" | "error";
4582
+ };
4583
+ TokenUsageDto: {
4584
+ /** @description Number of input tokens used */
4585
+ input_tokens: number;
4586
+ /** @description Number of output tokens used */
4587
+ output_tokens: number;
4588
+ };
4589
+ ChatResponseDto: {
4590
+ /** @description AI response content */
4591
+ content: string;
4592
+ /** @description Tool calls made during the conversation */
4593
+ toolCalls?: components["schemas"]["ToolCallDto"][];
4594
+ /** @description Token usage statistics */
4595
+ usage?: components["schemas"]["TokenUsageDto"];
4596
+ };
4597
+ AnalyzeDocumentResponseDto: {
4598
+ /** @description Analysis results */
4599
+ analysis: {
4600
+ [key: string]: unknown;
4601
+ };
4602
+ /** @description Detected document type */
4603
+ documentType?: string;
4604
+ /** @description Token usage statistics */
4605
+ usage?: components["schemas"]["TokenUsageDto"];
4606
+ };
4607
+ DailyCheckOrgResultDto: {
4608
+ /** @description Organization ID */
4609
+ orgId: string;
4610
+ /** @description Total number of issues found */
4611
+ issues: number;
4612
+ /** @description Number of critical issues */
4613
+ critical: number;
4614
+ /** @description Whether a notification was sent */
4615
+ notificationSent: boolean;
4616
+ };
4617
+ DailyCheckResponseDto: {
4618
+ /** @description Whether the check was successful */
4619
+ success: boolean;
4620
+ /** @description Number of organizations checked */
4621
+ checkedOrgs: number;
4622
+ /** @description Results for each organization */
4623
+ results: components["schemas"]["DailyCheckOrgResultDto"][];
4624
+ };
4625
+ ChatHistoryMessageDto: {
4626
+ id: string;
4627
+ sessionId: string;
4628
+ /** @enum {string} */
4629
+ role: "user" | "assistant" | "system";
4630
+ content: string;
4631
+ toolCalls?: components["schemas"]["ToolCallDto"][] | null;
4632
+ /** Format: date-time */
4633
+ createdAt: string;
4634
+ };
4635
+ ChatHistoryResponseDto: {
4636
+ messages: components["schemas"]["ChatHistoryMessageDto"][];
4637
+ sessionId?: string;
4638
+ };
4455
4639
  CreateCustomerDto: {
4456
4640
  /**
4457
4641
  * @default BROKER
@@ -4462,7 +4646,10 @@ export interface components {
4462
4646
  companyName: string;
4463
4647
  /** @example John Smith */
4464
4648
  contactName?: string;
4465
- /** @example john@abcfreight.com */
4649
+ /**
4650
+ * Format: email
4651
+ * @example john@abcfreight.com
4652
+ */
4466
4653
  email?: string;
4467
4654
  /** @example +1-555-123-4567 */
4468
4655
  phone?: string;
@@ -4484,21 +4671,20 @@ export interface components {
4484
4671
  };
4485
4672
  CustomerResponseDto: {
4486
4673
  id: string;
4487
- /** @enum {string} */
4488
- type: "BROKER" | "SHIPPER" | "CARRIER";
4489
4674
  companyName: string;
4490
4675
  contactName?: string;
4491
4676
  email?: string;
4492
4677
  phone?: string;
4493
- mcNumber?: string;
4494
- dotNumber?: string;
4495
4678
  address?: string;
4496
4679
  city?: string;
4497
4680
  state?: string;
4498
4681
  zipCode?: string;
4499
- country?: string;
4500
- notes?: string;
4682
+ type: string;
4501
4683
  isActive: boolean;
4684
+ notes?: string;
4685
+ defaultRate?: number;
4686
+ paymentTerms?: string;
4687
+ orgId: string;
4502
4688
  /** Format: date-time */
4503
4689
  createdAt: string;
4504
4690
  /** Format: date-time */
@@ -4511,6 +4697,12 @@ export interface components {
4511
4697
  limit: number;
4512
4698
  totalPages: number;
4513
4699
  };
4700
+ CustomerStatsResponseDto: {
4701
+ total: number;
4702
+ active: number;
4703
+ inactive: number;
4704
+ byType: Record<string, never>;
4705
+ };
4514
4706
  UpdateCustomerDto: {
4515
4707
  /**
4516
4708
  * @default BROKER
@@ -4521,7 +4713,10 @@ export interface components {
4521
4713
  companyName?: string;
4522
4714
  /** @example John Smith */
4523
4715
  contactName?: string;
4524
- /** @example john@abcfreight.com */
4716
+ /**
4717
+ * Format: email
4718
+ * @example john@abcfreight.com
4719
+ */
4525
4720
  email?: string;
4526
4721
  /** @example +1-555-123-4567 */
4527
4722
  phone?: string;
@@ -4557,6 +4752,11 @@ export interface components {
4557
4752
  /** @description Run ID for context */
4558
4753
  runId?: string;
4559
4754
  };
4755
+ MessageParticipantDto: {
4756
+ id: string;
4757
+ name: string;
4758
+ role: string;
4759
+ };
4560
4760
  MessageResponseDto: {
4561
4761
  id: string;
4562
4762
  /** @enum {string} */
@@ -4567,9 +4767,9 @@ export interface components {
4567
4767
  /** Format: date-time */
4568
4768
  createdAt: string;
4569
4769
  senderId: string;
4570
- sender?: Record<string, never>;
4770
+ sender?: components["schemas"]["MessageParticipantDto"];
4571
4771
  recipientId?: string;
4572
- recipient?: Record<string, never>;
4772
+ recipient?: components["schemas"]["MessageParticipantDto"];
4573
4773
  runId?: string;
4574
4774
  };
4575
4775
  MessageListResponseDto: {
@@ -4577,12 +4777,28 @@ export interface components {
4577
4777
  total: number;
4578
4778
  hasMore: boolean;
4579
4779
  };
4780
+ ConversationResponseDto: {
4781
+ partnerId: string;
4782
+ partnerName: string;
4783
+ partnerRole: string;
4784
+ lastMessage: string;
4785
+ /** Format: date-time */
4786
+ lastMessageAt: string;
4787
+ unreadCount: number;
4788
+ };
4789
+ ConversationListResponseDto: {
4790
+ items: components["schemas"]["ConversationResponseDto"][];
4791
+ total: number;
4792
+ };
4793
+ UnreadCountResponseDto: {
4794
+ unreadCount: number;
4795
+ };
4580
4796
  MarkReadDto: {
4581
4797
  messageIds: string[];
4582
4798
  };
4583
4799
  StatementLineItem: {
4584
4800
  description: string;
4585
- type: string;
4801
+ type: Record<string, never>;
4586
4802
  amount: number;
4587
4803
  runId?: string;
4588
4804
  loadNumber?: string;
@@ -4609,27 +4825,22 @@ export interface components {
4609
4825
  };
4610
4826
  StatementResponseDto: {
4611
4827
  id: string;
4828
+ driverId: string;
4612
4829
  /** Format: date-time */
4613
4830
  periodStart: string;
4614
4831
  /** Format: date-time */
4615
4832
  periodEnd: string;
4616
- /** @enum {string} */
4617
- status: "DRAFT" | "PENDING" | "APPROVED" | "PAID";
4618
- totalMiles: number;
4619
- totalLoads: number;
4620
- grossPay: number;
4621
- deductions: number;
4833
+ totalEarnings: number;
4834
+ totalDeductions: number;
4622
4835
  netPay: number;
4623
- lineItems?: string[];
4624
- notes?: string;
4625
- /** Format: date-time */
4626
- paidAt?: string;
4836
+ status: string;
4837
+ lineItems?: components["schemas"]["StatementLineItem"][];
4838
+ driverName?: string;
4839
+ orgId: string;
4627
4840
  /** Format: date-time */
4628
4841
  createdAt: string;
4629
4842
  /** Format: date-time */
4630
4843
  updatedAt: string;
4631
- driverId: string;
4632
- driver?: Record<string, never>;
4633
4844
  };
4634
4845
  GenerateStatementDto: {
4635
4846
  /** @description Driver user ID */
@@ -4644,6 +4855,7 @@ export interface components {
4644
4855
  total: number;
4645
4856
  page: number;
4646
4857
  limit: number;
4858
+ totalPages: number;
4647
4859
  };
4648
4860
  UpdateStatementDto: {
4649
4861
  /** @description Driver user ID */
@@ -4677,6 +4889,10 @@ export interface components {
4677
4889
  /** @description Expiration date */
4678
4890
  expiresAt?: string;
4679
4891
  };
4892
+ ReferralCreatedByDto: {
4893
+ id: string;
4894
+ name: string;
4895
+ };
4680
4896
  ReferralResponseDto: {
4681
4897
  id: string;
4682
4898
  code: string;
@@ -4689,17 +4905,22 @@ export interface components {
4689
4905
  /** Format: date-time */
4690
4906
  createdAt: string;
4691
4907
  createdById: string;
4692
- createdBy?: Record<string, never>;
4908
+ createdBy?: components["schemas"]["ReferralCreatedByDto"];
4693
4909
  };
4694
4910
  ReferralListResponseDto: {
4695
4911
  items: components["schemas"]["ReferralResponseDto"][];
4696
4912
  total: number;
4697
4913
  };
4914
+ TopReferrerDto: {
4915
+ userId: string;
4916
+ userName: string;
4917
+ signupCount: number;
4918
+ };
4698
4919
  ReferralStatsDto: {
4699
4920
  totalReferrals: number;
4700
4921
  activeReferrals: number;
4701
4922
  totalSignups: number;
4702
- topReferrers: Record<string, never>[];
4923
+ topReferrers: components["schemas"]["TopReferrerDto"][];
4703
4924
  };
4704
4925
  UpdateReferralDto: {
4705
4926
  /** @description Custom referral code (auto-generated if not provided) */
@@ -4719,25 +4940,35 @@ export interface components {
4719
4940
  */
4720
4941
  signatureData: string;
4721
4942
  };
4722
- SignatureResponseDto: {
4943
+ UserSignatureResponseDto: {
4723
4944
  id: string;
4724
- /** @description Base64 encoded signature image */
4725
4945
  signatureData: string;
4946
+ userId: string;
4726
4947
  /** Format: date-time */
4727
4948
  createdAt: string;
4728
4949
  /** Format: date-time */
4729
4950
  updatedAt: string;
4730
4951
  };
4731
4952
  SignatureExistsResponseDto: {
4732
- /** @description Whether user has a saved signature */
4733
4953
  hasSignature: boolean;
4734
- /** @description Preview thumbnail of signature */
4735
4954
  preview?: string;
4736
4955
  /** Format: date-time */
4737
4956
  createdAt?: string;
4738
4957
  /** Format: date-time */
4739
4958
  updatedAt?: string;
4740
4959
  };
4960
+ AISuggestionDto: {
4961
+ driverId?: string;
4962
+ driverName?: string;
4963
+ truckId?: string;
4964
+ truckNumber?: string;
4965
+ trailerId?: string;
4966
+ trailerNumber?: string;
4967
+ runId?: string;
4968
+ runName?: string;
4969
+ /** @example 0.85 */
4970
+ confidence: number;
4971
+ };
4741
4972
  CreateExpenseDto: {
4742
4973
  /** @enum {string} */
4743
4974
  type: "FUEL" | "REPAIR" | "MAINTENANCE" | "TOLL" | "PARKING" | "SCALE" | "LUMPER" | "DETENTION" | "INSURANCE" | "OTHER";
@@ -4756,18 +4987,6 @@ export interface components {
4756
4987
  trailerId?: string;
4757
4988
  runId?: string;
4758
4989
  };
4759
- AISuggestionDto: {
4760
- driverId?: string;
4761
- driverName?: string;
4762
- truckId?: string;
4763
- truckNumber?: string;
4764
- trailerId?: string;
4765
- trailerNumber?: string;
4766
- runId?: string;
4767
- runName?: string;
4768
- /** @example 0.85 */
4769
- confidence: number;
4770
- };
4771
4990
  ExpenseResponseDto: {
4772
4991
  id: string;
4773
4992
  /** @enum {string} */
@@ -4783,13 +5002,21 @@ export interface components {
4783
5002
  aiConfidence?: number;
4784
5003
  aiMatchNotes?: string;
4785
5004
  sourceEmailId?: string;
5005
+ approvedById?: string;
5006
+ /** Format: date-time */
5007
+ approvedAt?: string;
5008
+ rejectedById?: string;
5009
+ /** Format: date-time */
5010
+ rejectedAt?: string;
5011
+ rejectionReason?: string;
5012
+ orgId: string;
5013
+ runId?: string;
4786
5014
  driverId?: string;
4787
- driverName?: string;
4788
5015
  truckId?: string;
4789
- truckNumber?: string;
4790
5016
  trailerId?: string;
5017
+ driverName?: string;
5018
+ truckNumber?: string;
4791
5019
  trailerNumber?: string;
4792
- runId?: string;
4793
5020
  runName?: string;
4794
5021
  aiSuggestion?: components["schemas"]["AISuggestionDto"];
4795
5022
  /** Format: date-time */
@@ -4802,7 +5029,6 @@ export interface components {
4802
5029
  total: number;
4803
5030
  page: number;
4804
5031
  limit: number;
4805
- /** @description Count of pending expenses */
4806
5032
  pendingCount?: number;
4807
5033
  };
4808
5034
  ExpenseStatsDto: {
@@ -4810,9 +5036,10 @@ export interface components {
4810
5036
  totalApproved: number;
4811
5037
  pendingAmount: number;
4812
5038
  approvedAmount: number;
4813
- byType: {
4814
- [key: string]: number;
4815
- };
5039
+ totalAmount: number;
5040
+ pendingCount: number;
5041
+ rejectedCount: number;
5042
+ byType: Record<string, never>;
4816
5043
  };
4817
5044
  UpdateExpenseDto: {
4818
5045
  /** @enum {string} */
@@ -4861,15 +5088,14 @@ export interface components {
4861
5088
  };
4862
5089
  ClientEmailResponseDto: {
4863
5090
  id: string;
4864
- /** @example acme-logistics */
4865
5091
  localPart: string;
4866
- /** @example acme-logistics@logistio.pro */
4867
- fullEmail: string;
4868
5092
  isActive: boolean;
4869
5093
  forwardTo: string[];
5094
+ orgId: string;
4870
5095
  customerId?: string;
5096
+ fullEmail?: string;
4871
5097
  customerName?: string;
4872
- emailCount: number;
5098
+ emailCount?: number;
4873
5099
  /** Format: date-time */
4874
5100
  lastEmailAt?: string;
4875
5101
  /** Format: date-time */
@@ -4901,6 +5127,7 @@ export interface components {
4901
5127
  };
4902
5128
  SendInvitationDto: {
4903
5129
  /**
5130
+ * Format: email
4904
5131
  * @description Email address to send invitation to
4905
5132
  * @example broker@example.com
4906
5133
  */
@@ -4908,50 +5135,15 @@ export interface components {
4908
5135
  /** @description Custom message to include in invitation */
4909
5136
  customMessage?: string;
4910
5137
  };
4911
- ParsedDocumentDataDto: {
4912
- /** @description Document type detected by AI */
4913
- documentType?: string;
4914
- brokerName?: string;
4915
- rate?: number;
4916
- pickupCity?: string;
4917
- deliveryCity?: string;
4918
- pickupDate?: string;
4919
- deliveryDate?: string;
4920
- loadNumber?: string;
4921
- /** @description For invoices: vendor name */
4922
- vendor?: string;
4923
- /** @description For invoices: amount */
4924
- amount?: number;
4925
- /** @description For invoices: truck number detected */
4926
- truckNumber?: string;
4927
- };
4928
- ParsedDocumentSummaryDto: {
4929
- id: string;
4930
- /** @description Processing status: PENDING, PROCESSED, FAILED */
4931
- status: string;
4932
- confidence?: number;
4933
- parsedData?: components["schemas"]["ParsedDocumentDataDto"];
4934
- /** @description Whether document needs signature */
4935
- needsSignature?: boolean;
4936
- /** @description Magic link token for signing */
4937
- signingToken?: string;
4938
- /**
4939
- * Format: date-time
4940
- * @description When document was signed
4941
- */
4942
- signedAt?: string;
4943
- /** @description ID of run created from this document */
4944
- createdRunId?: string;
4945
- };
4946
5138
  EmailAttachmentResponseDto: {
4947
5139
  id: string;
4948
5140
  fileName: string;
4949
5141
  mimeType: string;
5142
+ contentType: string;
4950
5143
  fileSize: number;
4951
5144
  fileUrl: string;
5145
+ inboundEmailId: string;
4952
5146
  parsedDocumentId?: string;
4953
- /** @description Parsed document info if available */
4954
- parsedDocument?: components["schemas"]["ParsedDocumentSummaryDto"];
4955
5147
  };
4956
5148
  InboundEmailResponseDto: {
4957
5149
  id: string;
@@ -4960,26 +5152,30 @@ export interface components {
4960
5152
  fromName?: string;
4961
5153
  subject?: string;
4962
5154
  textBody?: string;
4963
- /** @enum {string} */
4964
- status: "RECEIVED" | "PROCESSING" | "AWAITING_SIGNATURE" | "SIGNED" | "FORWARDED" | "COMPLETED" | "FAILED";
4965
- errorMessage?: string;
5155
+ htmlBody?: string;
4966
5156
  /** Format: date-time */
4967
5157
  receivedAt: string;
4968
5158
  /** Format: date-time */
4969
5159
  processedAt?: string;
5160
+ /** @enum {string} */
5161
+ status: "RECEIVED" | "PROCESSING" | "AWAITING_SIGNATURE" | "SIGNED" | "FORWARDED" | "COMPLETED" | "FAILED";
5162
+ errorMessage?: string;
4970
5163
  clientEmailId: string;
4971
5164
  clientEmailLocalPart?: string;
4972
- attachments: components["schemas"]["EmailAttachmentResponseDto"][];
5165
+ attachments?: components["schemas"]["EmailAttachmentResponseDto"][];
5166
+ /** Format: date-time */
5167
+ createdAt: string;
4973
5168
  };
4974
5169
  InboundEmailListResponseDto: {
4975
5170
  items: components["schemas"]["InboundEmailResponseDto"][];
4976
5171
  total: number;
4977
5172
  page: number;
4978
5173
  limit: number;
5174
+ totalPages: number;
4979
5175
  };
4980
5176
  SendGridWebhookDto: {
4981
5177
  /** @description Raw email headers */
4982
- headers: string;
5178
+ headers?: string;
4983
5179
  /** @description DKIM verification result */
4984
5180
  dkim?: string;
4985
5181
  /**
@@ -5022,48 +5218,28 @@ export interface components {
5022
5218
  };
5023
5219
  DocumentToSignResponseDto: {
5024
5220
  id: string;
5025
- /** @description URL to the original document PDF */
5026
5221
  documentUrl: string;
5027
5222
  fileName?: string;
5028
5223
  mimeType?: string;
5029
- /** @description Has this document already been signed */
5030
5224
  isSigned: boolean;
5225
+ alreadySigned: boolean;
5031
5226
  /** Format: date-time */
5032
5227
  signedAt?: string;
5033
- /** @description Is the signing token still valid */
5034
5228
  isExpired: boolean;
5035
5229
  /** Format: date-time */
5036
5230
  expiresAt?: string;
5037
- /** @description Broker/Company name */
5038
5231
  brokerName?: string;
5039
- /** @description Load/Reference number */
5040
5232
  loadNumber?: string;
5041
- /** @description Rate amount */
5042
5233
  rate?: number;
5043
- /** @description Pickup location */
5044
5234
  pickupLocation?: string;
5045
- /** @description Delivery location */
5046
5235
  deliveryLocation?: string;
5047
- /**
5048
- * Format: date-time
5049
- * @description Pickup date
5050
- */
5051
5236
  pickupDate?: string;
5052
- /**
5053
- * Format: date-time
5054
- * @description Delivery date
5055
- */
5056
5237
  deliveryDate?: string;
5057
- /** @description Equipment type required */
5058
5238
  equipmentType?: string;
5059
- /** @description Commodity description */
5060
5239
  commodity?: string;
5061
- /** @description Weight in lbs */
5062
5240
  weight?: number;
5063
5241
  organizationName: string;
5064
- /** @description User has a saved signature available */
5065
5242
  hasSavedSignature?: boolean;
5066
- /** @description Preview of saved signature (thumbnail) */
5067
5243
  savedSignaturePreview?: string;
5068
5244
  };
5069
5245
  SignDocumentDto: {
@@ -5078,6 +5254,7 @@ export interface components {
5078
5254
  */
5079
5255
  signedByName?: string;
5080
5256
  /**
5257
+ * Format: email
5081
5258
  * @description Email of person signing
5082
5259
  * @example john@example.com
5083
5260
  */
@@ -5088,16 +5265,12 @@ export interface components {
5088
5265
  */
5089
5266
  useSavedSignature: boolean;
5090
5267
  };
5091
- SignDocumentResponseDto: {
5268
+ SignDocumentResultDto: {
5092
5269
  success: boolean;
5093
5270
  message: string;
5094
- /** @description ID of the created run, if applicable */
5095
5271
  createdRunId?: string;
5096
- /** @description Whether the signed document was forwarded */
5097
5272
  forwarded?: boolean;
5098
- /** @description Email addresses it was forwarded to */
5099
5273
  forwardedTo?: string[];
5100
- /** @description URL to download signed PDF */
5101
5274
  signedPdfUrl?: string;
5102
5275
  };
5103
5276
  };
@@ -5391,6 +5564,12 @@ export interface operations {
5391
5564
  };
5392
5565
  content?: never;
5393
5566
  };
5567
+ 201: {
5568
+ headers: {
5569
+ [name: string]: unknown;
5570
+ };
5571
+ content?: never;
5572
+ };
5394
5573
  };
5395
5574
  };
5396
5575
  AuthController_logout: {
@@ -5589,6 +5768,12 @@ export interface operations {
5589
5768
  };
5590
5769
  content?: never;
5591
5770
  };
5771
+ 201: {
5772
+ headers: {
5773
+ [name: string]: unknown;
5774
+ };
5775
+ content?: never;
5776
+ };
5592
5777
  };
5593
5778
  };
5594
5779
  UsersController_unlinkTelegram: {
@@ -5609,6 +5794,12 @@ export interface operations {
5609
5794
  };
5610
5795
  content?: never;
5611
5796
  };
5797
+ 201: {
5798
+ headers: {
5799
+ [name: string]: unknown;
5800
+ };
5801
+ content?: never;
5802
+ };
5612
5803
  };
5613
5804
  };
5614
5805
  UsersController_updateDispatchStatus: {
@@ -5649,6 +5840,12 @@ export interface operations {
5649
5840
  };
5650
5841
  content?: never;
5651
5842
  };
5843
+ 201: {
5844
+ headers: {
5845
+ [name: string]: unknown;
5846
+ };
5847
+ content?: never;
5848
+ };
5652
5849
  };
5653
5850
  };
5654
5851
  OrgsController_findAll: {
@@ -5946,6 +6143,12 @@ export interface operations {
5946
6143
  };
5947
6144
  content?: never;
5948
6145
  };
6146
+ 201: {
6147
+ headers: {
6148
+ [name: string]: unknown;
6149
+ };
6150
+ content?: never;
6151
+ };
5949
6152
  };
5950
6153
  };
5951
6154
  OrgsController_completeOnboarding: {
@@ -5968,6 +6171,12 @@ export interface operations {
5968
6171
  };
5969
6172
  content?: never;
5970
6173
  };
6174
+ 201: {
6175
+ headers: {
6176
+ [name: string]: unknown;
6177
+ };
6178
+ content?: never;
6179
+ };
5971
6180
  };
5972
6181
  };
5973
6182
  OrgsController_getFactoringPartners: {
@@ -6096,7 +6305,7 @@ export interface operations {
6096
6305
  [name: string]: unknown;
6097
6306
  };
6098
6307
  content: {
6099
- "application/json": components["schemas"]["RunSummaryResponseDto"][];
6308
+ "application/json": components["schemas"]["RunSummaryListResponseDto"];
6100
6309
  };
6101
6310
  };
6102
6311
  };
@@ -6245,6 +6454,14 @@ export interface operations {
6245
6454
  };
6246
6455
  content?: never;
6247
6456
  };
6457
+ 201: {
6458
+ headers: {
6459
+ [name: string]: unknown;
6460
+ };
6461
+ content: {
6462
+ "application/json": Record<string, never>;
6463
+ };
6464
+ };
6248
6465
  };
6249
6466
  };
6250
6467
  RunsController_unassignDriver: {
@@ -6265,6 +6482,12 @@ export interface operations {
6265
6482
  };
6266
6483
  content?: never;
6267
6484
  };
6485
+ 201: {
6486
+ headers: {
6487
+ [name: string]: unknown;
6488
+ };
6489
+ content?: never;
6490
+ };
6268
6491
  };
6269
6492
  };
6270
6493
  RunsController_startRun: {
@@ -6373,6 +6596,14 @@ export interface operations {
6373
6596
  };
6374
6597
  content?: never;
6375
6598
  };
6599
+ 201: {
6600
+ headers: {
6601
+ [name: string]: unknown;
6602
+ };
6603
+ content: {
6604
+ "application/json": Record<string, never>;
6605
+ };
6606
+ };
6376
6607
  };
6377
6608
  };
6378
6609
  RunsController_addStop: {
@@ -6492,6 +6723,14 @@ export interface operations {
6492
6723
  };
6493
6724
  content?: never;
6494
6725
  };
6726
+ 201: {
6727
+ headers: {
6728
+ [name: string]: unknown;
6729
+ };
6730
+ content: {
6731
+ "application/json": Record<string, never>;
6732
+ };
6733
+ };
6495
6734
  };
6496
6735
  };
6497
6736
  RunsController_uploadSignature: {
@@ -6533,6 +6772,12 @@ export interface operations {
6533
6772
  };
6534
6773
  content?: never;
6535
6774
  };
6775
+ 201: {
6776
+ headers: {
6777
+ [name: string]: unknown;
6778
+ };
6779
+ content?: never;
6780
+ };
6536
6781
  };
6537
6782
  };
6538
6783
  RunsController_queueLoad: {
@@ -6553,6 +6798,14 @@ export interface operations {
6553
6798
  };
6554
6799
  content?: never;
6555
6800
  };
6801
+ 201: {
6802
+ headers: {
6803
+ [name: string]: unknown;
6804
+ };
6805
+ content: {
6806
+ "application/json": Record<string, never>;
6807
+ };
6808
+ };
6556
6809
  };
6557
6810
  };
6558
6811
  RunsController_dispatchLoad: {
@@ -6573,6 +6826,12 @@ export interface operations {
6573
6826
  };
6574
6827
  content?: never;
6575
6828
  };
6829
+ 201: {
6830
+ headers: {
6831
+ [name: string]: unknown;
6832
+ };
6833
+ content?: never;
6834
+ };
6576
6835
  };
6577
6836
  };
6578
6837
  RunsController_completeAndUnlockNext: {
@@ -6593,6 +6852,14 @@ export interface operations {
6593
6852
  };
6594
6853
  content?: never;
6595
6854
  };
6855
+ 201: {
6856
+ headers: {
6857
+ [name: string]: unknown;
6858
+ };
6859
+ content: {
6860
+ "application/json": Record<string, never>;
6861
+ };
6862
+ };
6596
6863
  };
6597
6864
  };
6598
6865
  RunsController_unlockLoad: {
@@ -6613,6 +6880,14 @@ export interface operations {
6613
6880
  };
6614
6881
  content?: never;
6615
6882
  };
6883
+ 201: {
6884
+ headers: {
6885
+ [name: string]: unknown;
6886
+ };
6887
+ content: {
6888
+ "application/json": Record<string, never>;
6889
+ };
6890
+ };
6616
6891
  };
6617
6892
  };
6618
6893
  RunsController_getTrackingLink: {
@@ -6652,7 +6927,7 @@ export interface operations {
6652
6927
  [name: string]: unknown;
6653
6928
  };
6654
6929
  content: {
6655
- "application/json": components["schemas"]["RunChargeResponseDto"][];
6930
+ "application/json": components["schemas"]["RunChargeListResponseDto"];
6656
6931
  };
6657
6932
  };
6658
6933
  };
@@ -6765,6 +7040,12 @@ export interface operations {
6765
7040
  };
6766
7041
  content?: never;
6767
7042
  };
7043
+ 201: {
7044
+ headers: {
7045
+ [name: string]: unknown;
7046
+ };
7047
+ content?: never;
7048
+ };
6768
7049
  };
6769
7050
  };
6770
7051
  DocumentsController_getUploadUrl: {
@@ -6778,6 +7059,14 @@ export interface operations {
6778
7059
  responses: {
6779
7060
  /** @description Upload configuration generated */
6780
7061
  200: {
7062
+ headers: {
7063
+ [name: string]: unknown;
7064
+ };
7065
+ content: {
7066
+ "application/json": components["schemas"]["UploadUrlResponseDto"];
7067
+ };
7068
+ };
7069
+ 201: {
6781
7070
  headers: {
6782
7071
  [name: string]: unknown;
6783
7072
  };
@@ -6847,7 +7136,9 @@ export interface operations {
6847
7136
  headers: {
6848
7137
  [name: string]: unknown;
6849
7138
  };
6850
- content?: never;
7139
+ content: {
7140
+ "application/json": components["schemas"]["DocumentListResponseDto"];
7141
+ };
6851
7142
  };
6852
7143
  };
6853
7144
  };
@@ -7087,7 +7378,7 @@ export interface operations {
7087
7378
  [name: string]: unknown;
7088
7379
  };
7089
7380
  content: {
7090
- "application/json": components["schemas"]["ParsedDocumentResponseDto"][];
7381
+ "application/json": components["schemas"]["ParsedDocumentListResponseDto"];
7091
7382
  };
7092
7383
  };
7093
7384
  };
@@ -7238,6 +7529,12 @@ export interface operations {
7238
7529
  };
7239
7530
  content?: never;
7240
7531
  };
7532
+ 201: {
7533
+ headers: {
7534
+ [name: string]: unknown;
7535
+ };
7536
+ content?: never;
7537
+ };
7241
7538
  };
7242
7539
  };
7243
7540
  CompanyDocumentsController_uploadDocument: {
@@ -7295,6 +7592,12 @@ export interface operations {
7295
7592
  };
7296
7593
  content?: never;
7297
7594
  };
7595
+ 201: {
7596
+ headers: {
7597
+ [name: string]: unknown;
7598
+ };
7599
+ content?: never;
7600
+ };
7298
7601
  };
7299
7602
  };
7300
7603
  CompanyDocumentsController_findAll: {
@@ -7316,7 +7619,7 @@ export interface operations {
7316
7619
  [name: string]: unknown;
7317
7620
  };
7318
7621
  content: {
7319
- "application/json": components["schemas"]["CompanyDocumentResponseDto"][];
7622
+ "application/json": components["schemas"]["CompanyDocumentListResponseDto"];
7320
7623
  };
7321
7624
  };
7322
7625
  };
@@ -7528,6 +7831,14 @@ export interface operations {
7528
7831
  };
7529
7832
  content?: never;
7530
7833
  };
7834
+ 201: {
7835
+ headers: {
7836
+ [name: string]: unknown;
7837
+ };
7838
+ content: {
7839
+ "application/json": Record<string, never>;
7840
+ };
7841
+ };
7531
7842
  /** @description Driver not found */
7532
7843
  404: {
7533
7844
  headers: {
@@ -7559,6 +7870,12 @@ export interface operations {
7559
7870
  };
7560
7871
  content?: never;
7561
7872
  };
7873
+ 201: {
7874
+ headers: {
7875
+ [name: string]: unknown;
7876
+ };
7877
+ content?: never;
7878
+ };
7562
7879
  /** @description Driver not found */
7563
7880
  404: {
7564
7881
  headers: {
@@ -7653,7 +7970,7 @@ export interface operations {
7653
7970
  [name: string]: unknown;
7654
7971
  };
7655
7972
  content: {
7656
- "application/json": components["schemas"]["MagicLinkResponseDto"][];
7973
+ "application/json": components["schemas"]["MagicLinkListResponseDto"];
7657
7974
  };
7658
7975
  };
7659
7976
  };
@@ -7797,6 +8114,14 @@ export interface operations {
7797
8114
  };
7798
8115
  content?: never;
7799
8116
  };
8117
+ 201: {
8118
+ headers: {
8119
+ [name: string]: unknown;
8120
+ };
8121
+ content: {
8122
+ "application/json": Record<string, never>;
8123
+ };
8124
+ };
7800
8125
  };
7801
8126
  };
7802
8127
  TrucksController_unassign: {
@@ -7817,6 +8142,14 @@ export interface operations {
7817
8142
  };
7818
8143
  content?: never;
7819
8144
  };
8145
+ 201: {
8146
+ headers: {
8147
+ [name: string]: unknown;
8148
+ };
8149
+ content: {
8150
+ "application/json": Record<string, never>;
8151
+ };
8152
+ };
7820
8153
  };
7821
8154
  };
7822
8155
  TrailersController_findAll: {
@@ -7959,6 +8292,14 @@ export interface operations {
7959
8292
  };
7960
8293
  content?: never;
7961
8294
  };
8295
+ 201: {
8296
+ headers: {
8297
+ [name: string]: unknown;
8298
+ };
8299
+ content: {
8300
+ "application/json": Record<string, never>;
8301
+ };
8302
+ };
7962
8303
  };
7963
8304
  };
7964
8305
  TrailersController_unassign: {
@@ -7979,6 +8320,14 @@ export interface operations {
7979
8320
  };
7980
8321
  content?: never;
7981
8322
  };
8323
+ 201: {
8324
+ headers: {
8325
+ [name: string]: unknown;
8326
+ };
8327
+ content: {
8328
+ "application/json": Record<string, never>;
8329
+ };
8330
+ };
7982
8331
  };
7983
8332
  };
7984
8333
  TelegramController_getCurrentRun: {
@@ -8070,6 +8419,12 @@ export interface operations {
8070
8419
  };
8071
8420
  content?: never;
8072
8421
  };
8422
+ 201: {
8423
+ headers: {
8424
+ [name: string]: unknown;
8425
+ };
8426
+ content?: never;
8427
+ };
8073
8428
  };
8074
8429
  };
8075
8430
  TelegramController_sendRunInvite: {
@@ -8088,6 +8443,12 @@ export interface operations {
8088
8443
  };
8089
8444
  content?: never;
8090
8445
  };
8446
+ 201: {
8447
+ headers: {
8448
+ [name: string]: unknown;
8449
+ };
8450
+ content?: never;
8451
+ };
8091
8452
  };
8092
8453
  };
8093
8454
  TelegramController_sendDriverInvite: {
@@ -8106,6 +8467,14 @@ export interface operations {
8106
8467
  };
8107
8468
  content?: never;
8108
8469
  };
8470
+ 201: {
8471
+ headers: {
8472
+ [name: string]: unknown;
8473
+ };
8474
+ content: {
8475
+ "application/json": Record<string, never>;
8476
+ };
8477
+ };
8109
8478
  };
8110
8479
  };
8111
8480
  TelegramController_getBotInfo: {
@@ -8170,7 +8539,7 @@ export interface operations {
8170
8539
  [name: string]: unknown;
8171
8540
  };
8172
8541
  content: {
8173
- "application/json": components["schemas"]["RunResponseDto"][];
8542
+ "application/json": components["schemas"]["AssignedRunListResponseDto"];
8174
8543
  };
8175
8544
  };
8176
8545
  };
@@ -8215,7 +8584,7 @@ export interface operations {
8215
8584
  [name: string]: unknown;
8216
8585
  };
8217
8586
  content: {
8218
- "application/json": components["schemas"]["DriverResponseDto"][];
8587
+ "application/json": components["schemas"]["DriverListResponseDto"];
8219
8588
  };
8220
8589
  };
8221
8590
  };
@@ -8316,6 +8685,12 @@ export interface operations {
8316
8685
  };
8317
8686
  content?: never;
8318
8687
  };
8688
+ 201: {
8689
+ headers: {
8690
+ [name: string]: unknown;
8691
+ };
8692
+ content?: never;
8693
+ };
8319
8694
  };
8320
8695
  };
8321
8696
  DriversAdminController_getDispatcherHistory: {
@@ -8335,7 +8710,7 @@ export interface operations {
8335
8710
  [name: string]: unknown;
8336
8711
  };
8337
8712
  content: {
8338
- "application/json": components["schemas"]["DispatcherAssignmentHistoryResponseDto"][];
8713
+ "application/json": components["schemas"]["DispatcherAssignmentHistoryListResponseDto"];
8339
8714
  };
8340
8715
  };
8341
8716
  };
@@ -8362,6 +8737,12 @@ export interface operations {
8362
8737
  };
8363
8738
  content?: never;
8364
8739
  };
8740
+ 201: {
8741
+ headers: {
8742
+ [name: string]: unknown;
8743
+ };
8744
+ content?: never;
8745
+ };
8365
8746
  };
8366
8747
  };
8367
8748
  DriversAdminController_unlinkTeamDriver: {
@@ -8399,7 +8780,7 @@ export interface operations {
8399
8780
  [name: string]: unknown;
8400
8781
  };
8401
8782
  content: {
8402
- "application/json": components["schemas"]["ComplianceWarningResponseDto"][];
8783
+ "application/json": components["schemas"]["ComplianceWarningListResponseDto"];
8403
8784
  };
8404
8785
  };
8405
8786
  };
@@ -8424,7 +8805,7 @@ export interface operations {
8424
8805
  [name: string]: unknown;
8425
8806
  };
8426
8807
  content: {
8427
- "application/json": components["schemas"]["RunResponseDto"][];
8808
+ "application/json": components["schemas"]["AssignedRunListResponseDto"];
8428
8809
  };
8429
8810
  };
8430
8811
  };
@@ -8471,7 +8852,7 @@ export interface operations {
8471
8852
  [name: string]: unknown;
8472
8853
  };
8473
8854
  content: {
8474
- "application/json": components["schemas"]["DriverLocationResponseDto"][];
8855
+ "application/json": components["schemas"]["DriverLocationHistoryResponseDto"];
8475
8856
  };
8476
8857
  };
8477
8858
  };
@@ -8489,11 +8870,14 @@ export interface operations {
8489
8870
  };
8490
8871
  };
8491
8872
  responses: {
8873
+ /** @description AI response with optional tool calls */
8492
8874
  200: {
8493
8875
  headers: {
8494
8876
  [name: string]: unknown;
8495
8877
  };
8496
- content?: never;
8878
+ content: {
8879
+ "application/json": components["schemas"]["ChatResponseDto"];
8880
+ };
8497
8881
  };
8498
8882
  };
8499
8883
  };
@@ -8510,11 +8894,14 @@ export interface operations {
8510
8894
  };
8511
8895
  };
8512
8896
  responses: {
8897
+ /** @description Document analysis result */
8513
8898
  200: {
8514
8899
  headers: {
8515
8900
  [name: string]: unknown;
8516
8901
  };
8517
- content?: never;
8902
+ content: {
8903
+ "application/json": components["schemas"]["AnalyzeDocumentResponseDto"];
8904
+ };
8518
8905
  };
8519
8906
  };
8520
8907
  };
@@ -8527,11 +8914,14 @@ export interface operations {
8527
8914
  };
8528
8915
  requestBody?: never;
8529
8916
  responses: {
8917
+ /** @description Daily check results */
8530
8918
  200: {
8531
8919
  headers: {
8532
8920
  [name: string]: unknown;
8533
8921
  };
8534
- content?: never;
8922
+ content: {
8923
+ "application/json": components["schemas"]["DailyCheckResponseDto"];
8924
+ };
8535
8925
  };
8536
8926
  };
8537
8927
  };
@@ -8544,11 +8934,14 @@ export interface operations {
8544
8934
  };
8545
8935
  requestBody?: never;
8546
8936
  responses: {
8937
+ /** @description Chat history */
8547
8938
  200: {
8548
8939
  headers: {
8549
8940
  [name: string]: unknown;
8550
8941
  };
8551
- content?: never;
8942
+ content: {
8943
+ "application/json": components["schemas"]["ChatHistoryResponseDto"];
8944
+ };
8552
8945
  };
8553
8946
  };
8554
8947
  };
@@ -8616,7 +9009,9 @@ export interface operations {
8616
9009
  headers: {
8617
9010
  [name: string]: unknown;
8618
9011
  };
8619
- content?: never;
9012
+ content: {
9013
+ "application/json": components["schemas"]["CustomerStatsResponseDto"];
9014
+ };
8620
9015
  };
8621
9016
  };
8622
9017
  };
@@ -8751,7 +9146,9 @@ export interface operations {
8751
9146
  headers: {
8752
9147
  [name: string]: unknown;
8753
9148
  };
8754
- content?: never;
9149
+ content: {
9150
+ "application/json": components["schemas"]["ConversationListResponseDto"];
9151
+ };
8755
9152
  };
8756
9153
  };
8757
9154
  };
@@ -8769,7 +9166,9 @@ export interface operations {
8769
9166
  headers: {
8770
9167
  [name: string]: unknown;
8771
9168
  };
8772
- content?: never;
9169
+ content: {
9170
+ "application/json": components["schemas"]["UnreadCountResponseDto"];
9171
+ };
8773
9172
  };
8774
9173
  };
8775
9174
  };
@@ -8793,6 +9192,12 @@ export interface operations {
8793
9192
  };
8794
9193
  content?: never;
8795
9194
  };
9195
+ 201: {
9196
+ headers: {
9197
+ [name: string]: unknown;
9198
+ };
9199
+ content?: never;
9200
+ };
8796
9201
  };
8797
9202
  };
8798
9203
  StatementsController_findAll: {
@@ -8883,7 +9288,7 @@ export interface operations {
8883
9288
  [name: string]: unknown;
8884
9289
  };
8885
9290
  content: {
8886
- "application/json": components["schemas"]["StatementResponseDto"][];
9291
+ "application/json": components["schemas"]["StatementListResponseDto"];
8887
9292
  };
8888
9293
  };
8889
9294
  };
@@ -9034,6 +9439,14 @@ export interface operations {
9034
9439
  };
9035
9440
  content?: never;
9036
9441
  };
9442
+ 201: {
9443
+ headers: {
9444
+ [name: string]: unknown;
9445
+ };
9446
+ content: {
9447
+ "application/json": Record<string, never>;
9448
+ };
9449
+ };
9037
9450
  };
9038
9451
  };
9039
9452
  StatementsController_markPaid: {
@@ -9054,6 +9467,14 @@ export interface operations {
9054
9467
  };
9055
9468
  content?: never;
9056
9469
  };
9470
+ 201: {
9471
+ headers: {
9472
+ [name: string]: unknown;
9473
+ };
9474
+ content: {
9475
+ "application/json": Record<string, never>;
9476
+ };
9477
+ };
9057
9478
  };
9058
9479
  };
9059
9480
  ReferralsController_findAll: {
@@ -9135,7 +9556,7 @@ export interface operations {
9135
9556
  [name: string]: unknown;
9136
9557
  };
9137
9558
  content: {
9138
- "application/json": components["schemas"]["ReferralResponseDto"][];
9559
+ "application/json": components["schemas"]["ReferralListResponseDto"];
9139
9560
  };
9140
9561
  };
9141
9562
  };
@@ -9242,7 +9663,7 @@ export interface operations {
9242
9663
  [name: string]: unknown;
9243
9664
  };
9244
9665
  content: {
9245
- "application/json": components["schemas"]["SignatureResponseDto"];
9666
+ "application/json": components["schemas"]["UserSignatureResponseDto"];
9246
9667
  };
9247
9668
  };
9248
9669
  /** @description No signature found */
@@ -9272,9 +9693,15 @@ export interface operations {
9272
9693
  [name: string]: unknown;
9273
9694
  };
9274
9695
  content: {
9275
- "application/json": components["schemas"]["SignatureResponseDto"];
9696
+ "application/json": components["schemas"]["UserSignatureResponseDto"];
9276
9697
  };
9277
9698
  };
9699
+ 201: {
9700
+ headers: {
9701
+ [name: string]: unknown;
9702
+ };
9703
+ content?: never;
9704
+ };
9278
9705
  };
9279
9706
  };
9280
9707
  SignaturesController_deleteSignature: {
@@ -9473,6 +9900,14 @@ export interface operations {
9473
9900
  "application/json": components["schemas"]["ExpenseResponseDto"];
9474
9901
  };
9475
9902
  };
9903
+ 201: {
9904
+ headers: {
9905
+ [name: string]: unknown;
9906
+ };
9907
+ content: {
9908
+ "application/json": Record<string, never>;
9909
+ };
9910
+ };
9476
9911
  };
9477
9912
  };
9478
9913
  ExpensesController_approve: {
@@ -9494,6 +9929,12 @@ export interface operations {
9494
9929
  "application/json": components["schemas"]["ExpenseResponseDto"];
9495
9930
  };
9496
9931
  };
9932
+ 201: {
9933
+ headers: {
9934
+ [name: string]: unknown;
9935
+ };
9936
+ content?: never;
9937
+ };
9497
9938
  };
9498
9939
  };
9499
9940
  ExpensesController_reject: {
@@ -9519,6 +9960,12 @@ export interface operations {
9519
9960
  "application/json": components["schemas"]["ExpenseResponseDto"];
9520
9961
  };
9521
9962
  };
9963
+ 201: {
9964
+ headers: {
9965
+ [name: string]: unknown;
9966
+ };
9967
+ content?: never;
9968
+ };
9522
9969
  };
9523
9970
  };
9524
9971
  ClientEmailController_findAll: {
@@ -9649,6 +10096,12 @@ export interface operations {
9649
10096
  };
9650
10097
  content?: never;
9651
10098
  };
10099
+ 201: {
10100
+ headers: {
10101
+ [name: string]: unknown;
10102
+ };
10103
+ content?: never;
10104
+ };
9652
10105
  };
9653
10106
  };
9654
10107
  InboundEmailController_findAll: {
@@ -9785,8 +10238,14 @@ export interface operations {
9785
10238
  [name: string]: unknown;
9786
10239
  };
9787
10240
  content: {
9788
- "application/json": components["schemas"]["SignDocumentResponseDto"];
10241
+ "application/json": components["schemas"]["SignDocumentResultDto"];
10242
+ };
10243
+ };
10244
+ 201: {
10245
+ headers: {
10246
+ [name: string]: unknown;
9789
10247
  };
10248
+ content?: never;
9790
10249
  };
9791
10250
  /** @description Document already signed or link expired */
9792
10251
  400: {
@@ -9829,7 +10288,9 @@ export interface operations {
9829
10288
  headers: {
9830
10289
  [name: string]: unknown;
9831
10290
  };
9832
- content?: never;
10291
+ content: {
10292
+ "application/json": Record<string, never>;
10293
+ };
9833
10294
  };
9834
10295
  };
9835
10296
  };