@routeflow/types 1.0.18 → 1.0.20

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/src/index.ts CHANGED
@@ -225,6 +225,40 @@ export interface paths {
225
225
  patch?: never;
226
226
  trace?: never;
227
227
  };
228
+ "/api/auth/e2e/verification-code": {
229
+ parameters: {
230
+ query?: never;
231
+ header?: never;
232
+ path?: never;
233
+ cookie?: never;
234
+ };
235
+ /** [E2E Test] Get verification code for email */
236
+ get: operations["AuthController_getVerificationCodeForE2E"];
237
+ put?: never;
238
+ post?: never;
239
+ delete?: never;
240
+ options?: never;
241
+ head?: never;
242
+ patch?: never;
243
+ trace?: never;
244
+ };
245
+ "/api/auth/e2e/user": {
246
+ parameters: {
247
+ query?: never;
248
+ header?: never;
249
+ path?: never;
250
+ cookie?: never;
251
+ };
252
+ get?: never;
253
+ put?: never;
254
+ post?: never;
255
+ /** [E2E Test] Delete test user and their organization */
256
+ delete: operations["AuthController_deleteUserForE2E"];
257
+ options?: never;
258
+ head?: never;
259
+ patch?: never;
260
+ trace?: never;
261
+ };
228
262
  "/api/users": {
229
263
  parameters: {
230
264
  query?: never;
@@ -932,6 +966,23 @@ export interface paths {
932
966
  patch?: never;
933
967
  trace?: never;
934
968
  };
969
+ "/api/runs/{id}/stops/{stopId}/revert": {
970
+ parameters: {
971
+ query?: never;
972
+ header?: never;
973
+ path?: never;
974
+ cookie?: never;
975
+ };
976
+ get?: never;
977
+ put?: never;
978
+ /** Revert stop status to previous status (undo) */
979
+ post: operations["RunsController_revertStopStatus"];
980
+ delete?: never;
981
+ options?: never;
982
+ head?: never;
983
+ patch?: never;
984
+ trace?: never;
985
+ };
935
986
  "/api/runs/{id}/geocode-stops": {
936
987
  parameters: {
937
988
  query?: never;
@@ -2952,12 +3003,32 @@ export interface paths {
2952
3003
  patch?: never;
2953
3004
  trace?: never;
2954
3005
  };
3006
+ "/api/search": {
3007
+ parameters: {
3008
+ query?: never;
3009
+ header?: never;
3010
+ path?: never;
3011
+ cookie?: never;
3012
+ };
3013
+ /** Global search across runs, drivers, trucks, trailers, and customers */
3014
+ get: operations["SearchController_search"];
3015
+ put?: never;
3016
+ post?: never;
3017
+ delete?: never;
3018
+ options?: never;
3019
+ head?: never;
3020
+ patch?: never;
3021
+ trace?: never;
3022
+ };
2955
3023
  }
2956
3024
  export type webhooks = Record<string, never>;
2957
3025
  export interface components {
2958
3026
  schemas: {
2959
3027
  RegisterDto: {
2960
- /** @example user@example.com */
3028
+ /**
3029
+ * Format: email
3030
+ * @example user@example.com
3031
+ */
2961
3032
  email: string;
2962
3033
  /** @example password123 */
2963
3034
  password: string;
@@ -3006,6 +3077,56 @@ export interface components {
3006
3077
  /** Format: date-time */
3007
3078
  updatedAt: string;
3008
3079
  };
3080
+ TruckResponseDto: {
3081
+ id: string;
3082
+ truckNumber: string;
3083
+ year?: number;
3084
+ make?: string;
3085
+ model?: string;
3086
+ vin?: string;
3087
+ licensePlate?: string;
3088
+ /** @enum {string} */
3089
+ status: "ACTIVE" | "IN_SHOP" | "INACTIVE";
3090
+ mileage?: number;
3091
+ /** @enum {string} */
3092
+ fuelType?: "DIESEL" | "GASOLINE" | "ELECTRIC" | "HYBRID";
3093
+ /** Format: date-time */
3094
+ insuranceExpiry?: string;
3095
+ /** Format: date-time */
3096
+ lastServiceDate?: string;
3097
+ notes?: string;
3098
+ orgId: string;
3099
+ assignedDriverId?: string;
3100
+ assignedDriver?: components["schemas"]["UserResponseDto"];
3101
+ /** Format: date-time */
3102
+ createdAt: string;
3103
+ /** Format: date-time */
3104
+ updatedAt: string;
3105
+ };
3106
+ TrailerResponseDto: {
3107
+ id: string;
3108
+ trailerNumber: string;
3109
+ /** @enum {string} */
3110
+ type: "RGN" | "SD" | "FLATBED" | "REEFER" | "DRY_VAN" | "STEP_DECK" | "LOWBOY";
3111
+ length?: string;
3112
+ weightCapacity?: string;
3113
+ /** @enum {string} */
3114
+ status: "ACTIVE" | "IN_SHOP" | "INACTIVE";
3115
+ vin?: string;
3116
+ licensePlate?: string;
3117
+ /** Format: date-time */
3118
+ registrationExpiry?: string;
3119
+ /** Format: date-time */
3120
+ lastInspectionDate?: string;
3121
+ notes?: string;
3122
+ orgId: string;
3123
+ assignedDriverId?: string;
3124
+ assignedDriver?: components["schemas"]["UserResponseDto"];
3125
+ /** Format: date-time */
3126
+ createdAt: string;
3127
+ /** Format: date-time */
3128
+ updatedAt: string;
3129
+ };
3009
3130
  UserResponseDto: {
3010
3131
  id: string;
3011
3132
  email?: string;
@@ -3018,6 +3139,8 @@ export interface components {
3018
3139
  isActive: boolean;
3019
3140
  orgId: string;
3020
3141
  org?: components["schemas"]["OrganizationResponseDto"];
3142
+ assignedTruck?: components["schemas"]["TruckResponseDto"];
3143
+ assignedTrailer?: components["schemas"]["TrailerResponseDto"];
3021
3144
  /** Format: date-time */
3022
3145
  createdAt: string;
3023
3146
  /** Format: date-time */
@@ -3029,13 +3152,17 @@ export interface components {
3029
3152
  user: components["schemas"]["UserResponseDto"];
3030
3153
  };
3031
3154
  LoginDto: {
3032
- /** @example user@example.com */
3155
+ /**
3156
+ * Format: email
3157
+ * @example user@example.com
3158
+ */
3033
3159
  email: string;
3034
3160
  /** @example password123 */
3035
3161
  password: string;
3036
3162
  };
3037
3163
  VerifyEmailDto: {
3038
3164
  /**
3165
+ * Format: email
3039
3166
  * @description Email address
3040
3167
  * @example user@example.com
3041
3168
  */
@@ -3048,6 +3175,7 @@ export interface components {
3048
3175
  };
3049
3176
  ResendCodeDto: {
3050
3177
  /**
3178
+ * Format: email
3051
3179
  * @description Email address
3052
3180
  * @example user@example.com
3053
3181
  */
@@ -3089,6 +3217,7 @@ export interface components {
3089
3217
  };
3090
3218
  ForgotPasswordDto: {
3091
3219
  /**
3220
+ * Format: email
3092
3221
  * @description Email address to send password reset link
3093
3222
  * @example driver@example.com
3094
3223
  */
@@ -3107,7 +3236,10 @@ export interface components {
3107
3236
  newPassword: string;
3108
3237
  };
3109
3238
  CreateUserDto: {
3110
- /** @example user@example.com */
3239
+ /**
3240
+ * Format: email
3241
+ * @example user@example.com
3242
+ */
3111
3243
  email?: string;
3112
3244
  /** @example password123 */
3113
3245
  password?: string;
@@ -3130,7 +3262,10 @@ export interface components {
3130
3262
  UpdateUserDto: {
3131
3263
  /** @example John Doe */
3132
3264
  name?: string;
3133
- /** @example user@example.com */
3265
+ /**
3266
+ * Format: email
3267
+ * @example user@example.com
3268
+ */
3134
3269
  email?: string;
3135
3270
  /** @example +1234567890 */
3136
3271
  phone?: string;
@@ -3171,7 +3306,10 @@ export interface components {
3171
3306
  settings?: Record<string, never>;
3172
3307
  };
3173
3308
  InviteUserDto: {
3174
- /** @example user@example.com */
3309
+ /**
3310
+ * Format: email
3311
+ * @example user@example.com
3312
+ */
3175
3313
  email?: string;
3176
3314
  /**
3177
3315
  * @example DRIVER
@@ -3200,7 +3338,10 @@ export interface components {
3200
3338
  zipCode?: string;
3201
3339
  /** @example 555-123-4567 */
3202
3340
  phone?: string;
3203
- /** @example dispatch@acmetrucking.com */
3341
+ /**
3342
+ * Format: email
3343
+ * @example dispatch@acmetrucking.com
3344
+ */
3204
3345
  email?: string;
3205
3346
  /** @example 10 */
3206
3347
  fleetSize?: number;
@@ -3222,7 +3363,10 @@ export interface components {
3222
3363
  ExpressFactoringInterestDto: {
3223
3364
  /** @example OTR_CAPITAL */
3224
3365
  partner: string;
3225
- /** @example dispatch@acmetrucking.com */
3366
+ /**
3367
+ * Format: email
3368
+ * @example dispatch@acmetrucking.com
3369
+ */
3226
3370
  contactEmail?: string;
3227
3371
  /** @example 555-123-4567 */
3228
3372
  contactPhone?: string;
@@ -3408,6 +3552,10 @@ export interface components {
3408
3552
  stopsTotal: number;
3409
3553
  stopsCompleted: number;
3410
3554
  };
3555
+ RunSummaryListResponseDto: {
3556
+ items: components["schemas"]["RunSummaryResponseDto"][];
3557
+ total: number;
3558
+ };
3411
3559
  UpdateRunDto: {
3412
3560
  /** @example Morning Route - Updated */
3413
3561
  name?: string;
@@ -3430,6 +3578,16 @@ export interface components {
3430
3578
  * @example uuid
3431
3579
  */
3432
3580
  commissionUserId?: string;
3581
+ /**
3582
+ * @description Empty miles from driver location to first pickup
3583
+ * @example 150
3584
+ */
3585
+ emptyMiles?: number;
3586
+ /**
3587
+ * @description Starting location for empty miles calculation
3588
+ * @example Chicago, IL
3589
+ */
3590
+ emptyMilesLocation?: string;
3433
3591
  };
3434
3592
  AssignDriverDto: {
3435
3593
  /** @example clxxx... */
@@ -3482,11 +3640,11 @@ export interface components {
3482
3640
  /** @example -74.006 */
3483
3641
  lng: number;
3484
3642
  /** @example John Smith */
3485
- contactName?: Record<string, never> | null;
3643
+ contactName?: string;
3486
3644
  /** @example +1 (555) 123-4567 */
3487
- contactPhone?: Record<string, never> | null;
3645
+ contactPhone?: string;
3488
3646
  /** @example Ring doorbell twice */
3489
- notes?: Record<string, never> | null;
3647
+ notes?: string;
3490
3648
  /** @example 2025-12-09T08:00:00Z */
3491
3649
  timeWindowStart?: string;
3492
3650
  /** @example 2025-12-09T12:00:00Z */
@@ -3529,11 +3687,11 @@ export interface components {
3529
3687
  /** @example -74.006 */
3530
3688
  lng?: number;
3531
3689
  /** @example John Smith */
3532
- contactName?: Record<string, never> | null;
3690
+ contactName?: string;
3533
3691
  /** @example +1 (555) 123-4567 */
3534
- contactPhone?: Record<string, never> | null;
3692
+ contactPhone?: string;
3535
3693
  /** @example Ring doorbell twice */
3536
- notes?: Record<string, never> | null;
3694
+ notes?: string;
3537
3695
  /** @example 2025-12-09T08:00:00Z */
3538
3696
  timeWindowStart?: string;
3539
3697
  /** @example 2025-12-09T12:00:00Z */
@@ -3577,7 +3735,7 @@ export interface components {
3577
3735
  * @example ARRIVED
3578
3736
  * @enum {string}
3579
3737
  */
3580
- status: "PENDING" | "EN_ROUTE" | "ARRIVED" | "LOADING" | "LOADED" | "DELIVERING" | "DELIVERED" | "EXCEPTION" | "SKIPPED";
3738
+ status: "PENDING" | "EN_ROUTE" | "ARRIVED" | "LOADING" | "LOADED" | "DELIVERING" | "DELIVERED" | "EXCEPTION" | "SKIPPED" | "CANCELLED";
3581
3739
  /** @example 40.7128 */
3582
3740
  lat?: number;
3583
3741
  /** @example -74.006 */
@@ -3585,6 +3743,10 @@ export interface components {
3585
3743
  /** @example Customer not available, left at door */
3586
3744
  notes?: string;
3587
3745
  };
3746
+ RevertStopStatusDto: {
3747
+ /** @example Driver marked arrived by mistake */
3748
+ reason?: string;
3749
+ };
3588
3750
  RunChargeCreatedByDto: {
3589
3751
  id: string;
3590
3752
  name: string;
@@ -3603,6 +3765,10 @@ export interface components {
3603
3765
  /** Format: date-time */
3604
3766
  updatedAt: string;
3605
3767
  };
3768
+ RunChargeListResponseDto: {
3769
+ items: components["schemas"]["RunChargeResponseDto"][];
3770
+ total: number;
3771
+ };
3606
3772
  CreateRunChargeDto: {
3607
3773
  /**
3608
3774
  * @description Type of charge
@@ -3644,12 +3810,12 @@ export interface components {
3644
3810
  fileKey: string;
3645
3811
  };
3646
3812
  UnifiedUploadDto: {
3647
- /** @description Base64 encoded file */
3813
+ /** @description Base64 encoded file (max 20MB) */
3648
3814
  fileBase64: string;
3649
3815
  /** @description Original file name */
3650
3816
  fileName: string;
3651
3817
  /**
3652
- * @description MIME type of the file
3818
+ * @description MIME type of the file (allowed: application/pdf, image/jpeg, image/png, image/gif, image/webp, image/tiff)
3653
3819
  * @default application/pdf
3654
3820
  */
3655
3821
  mimeType: string;
@@ -3671,39 +3837,39 @@ export interface components {
3671
3837
  };
3672
3838
  ExtractedAssetFieldDto: {
3673
3839
  /** @description Driver name */
3674
- name?: Record<string, never>;
3840
+ name?: string | null;
3675
3841
  /** @description Phone number */
3676
- phone?: Record<string, never>;
3842
+ phone?: string | null;
3677
3843
  /** @description Email address */
3678
- email?: Record<string, never>;
3844
+ email?: string | null;
3679
3845
  /** @description License number */
3680
- licenseNumber?: Record<string, never>;
3846
+ licenseNumber?: string | null;
3681
3847
  /** @description License expiry date */
3682
- licenseExpiry?: Record<string, never>;
3848
+ licenseExpiry?: string | null;
3683
3849
  /** @description License state */
3684
- licenseState?: Record<string, never>;
3850
+ licenseState?: string | null;
3685
3851
  /** @description Truck number/ID */
3686
- truckNumber?: Record<string, never>;
3852
+ truckNumber?: string | null;
3687
3853
  /** @description Vehicle Identification Number */
3688
- vin?: Record<string, never>;
3854
+ vin?: string | null;
3689
3855
  /** @description Vehicle make */
3690
- make?: Record<string, never>;
3856
+ make?: string | null;
3691
3857
  /** @description Vehicle model */
3692
- model?: Record<string, never>;
3858
+ model?: string | null;
3693
3859
  /** @description Vehicle year */
3694
- year?: Record<string, never>;
3860
+ year?: number | null;
3695
3861
  /** @description License plate number */
3696
- licensePlate?: Record<string, never>;
3862
+ licensePlate?: string | null;
3697
3863
  /** @description Plate state */
3698
- plateState?: Record<string, never>;
3864
+ plateState?: string | null;
3699
3865
  /** @description Trailer number/ID */
3700
- trailerNumber?: Record<string, never>;
3866
+ trailerNumber?: string | null;
3701
3867
  /** @description Trailer type */
3702
- trailerType?: Record<string, never>;
3868
+ trailerType?: string | null;
3703
3869
  /** @description Trailer length */
3704
- length?: Record<string, never>;
3870
+ length?: number | null;
3705
3871
  /** @description Weight capacity */
3706
- weightCapacity?: Record<string, never>;
3872
+ weightCapacity?: number | null;
3707
3873
  };
3708
3874
  ExtractedAssetResponseDto: {
3709
3875
  /** @description Unique identifier */
@@ -3727,17 +3893,17 @@ export interface components {
3727
3893
  /** @description Type of source document */
3728
3894
  sourceDocumentType: string;
3729
3895
  /** @description Original file name */
3730
- fileName?: Record<string, never>;
3896
+ fileName?: string | null;
3731
3897
  /** @description ID of potential duplicate asset */
3732
- potentialDuplicateId?: Record<string, never>;
3898
+ potentialDuplicateId?: string | null;
3733
3899
  /** @description Type of potential duplicate */
3734
- potentialDuplicateType?: Record<string, never>;
3900
+ potentialDuplicateType?: string | null;
3735
3901
  /** @description ID of reviewer */
3736
- reviewedById?: Record<string, never>;
3902
+ reviewedById?: string | null;
3737
3903
  /** @description Review timestamp */
3738
- reviewedAt?: Record<string, never>;
3904
+ reviewedAt?: string | null;
3739
3905
  /** @description Review notes */
3740
- reviewNotes?: Record<string, never>;
3906
+ reviewNotes?: string | null;
3741
3907
  /** @description Creation timestamp */
3742
3908
  createdAt: string;
3743
3909
  /** @description Last update timestamp */
@@ -3968,7 +4134,8 @@ export interface components {
3968
4134
  suggestedDrivers?: components["schemas"]["SuggestedDriverDto"][];
3969
4135
  /** @description Assigned driver ID if auto-assign was enabled */
3970
4136
  assignedDriverId?: string;
3971
- parsedData: Record<string, never>;
4137
+ /** @description Parsed document data - either BOL or Rate Confirmation, null if parsing failed */
4138
+ parsedData: Record<string, never> | null;
3972
4139
  warnings?: string[];
3973
4140
  errors?: string[];
3974
4141
  processingTimeMs: number;
@@ -4014,6 +4181,13 @@ export interface components {
4014
4181
  /** @example 2025-12-31T00:00:00Z */
4015
4182
  expiryDate?: string;
4016
4183
  };
4184
+ CompanyDocumentListResponseDto: {
4185
+ items: components["schemas"]["CompanyDocumentResponseDto"][];
4186
+ total: number;
4187
+ page: number;
4188
+ limit: number;
4189
+ totalPages: number;
4190
+ };
4017
4191
  UpdateManualHosDto: {
4018
4192
  /**
4019
4193
  * @description Available driving minutes (typically 0-660 for 11 hours)
@@ -4044,7 +4218,10 @@ export interface components {
4044
4218
  runId: string;
4045
4219
  /** @example stop-id */
4046
4220
  stopId?: string;
4047
- /** @example customer@example.com */
4221
+ /**
4222
+ * Format: email
4223
+ * @example customer@example.com
4224
+ */
4048
4225
  customerEmail?: string;
4049
4226
  /** @example +1234567890 */
4050
4227
  customerPhone?: string;
@@ -4074,7 +4251,12 @@ export interface components {
4074
4251
  status: "DRAFT" | "QUEUED" | "DISPATCHED" | "IN_PROGRESS" | "COMPLETED" | "CANCELLED" | "TONU";
4075
4252
  /** Format: date-time */
4076
4253
  estimatedArrival?: string;
4077
- currentStop?: Record<string, never>;
4254
+ currentStop?: {
4255
+ id: string;
4256
+ address: string;
4257
+ /** @enum {string} */
4258
+ status: "PENDING" | "EN_ROUTE" | "ARRIVED" | "LOADING" | "LOADED" | "DELIVERING" | "DELIVERED" | "EXCEPTION" | "SKIPPED";
4259
+ };
4078
4260
  stopsTotal: number;
4079
4261
  stopsCompleted: number;
4080
4262
  };
@@ -4084,6 +4266,10 @@ export interface components {
4084
4266
  /** Format: date-time */
4085
4267
  updatedAt: string;
4086
4268
  };
4269
+ MagicLinkListResponseDto: {
4270
+ items: components["schemas"]["MagicLinkResponseDto"][];
4271
+ total: number;
4272
+ };
4087
4273
  CreateTruckDto: {
4088
4274
  /** @example TRK-001 */
4089
4275
  truckNumber: string;
@@ -4115,32 +4301,52 @@ export interface components {
4115
4301
  lastServiceDate?: string;
4116
4302
  /** @example New tires installed */
4117
4303
  notes?: string;
4118
- };
4119
- TruckResponseDto: {
4120
- id: string;
4121
- truckNumber: string;
4122
- year?: number;
4123
- make?: string;
4124
- model?: string;
4125
- vin?: string;
4126
- licensePlate?: string;
4127
- /** @enum {string} */
4128
- status: "ACTIVE" | "IN_SHOP" | "INACTIVE";
4129
- mileage?: number;
4130
- /** @enum {string} */
4131
- fuelType?: "DIESEL" | "GASOLINE" | "ELECTRIC" | "HYBRID";
4132
- /** Format: date-time */
4133
- insuranceExpiry?: string;
4134
- /** Format: date-time */
4135
- lastServiceDate?: string;
4136
- notes?: string;
4137
- orgId: string;
4138
- assignedDriverId?: string;
4139
- assignedDriver?: components["schemas"]["UserResponseDto"];
4140
- /** Format: date-time */
4141
- createdAt: string;
4142
- /** Format: date-time */
4143
- updatedAt: string;
4304
+ /**
4305
+ * @description License plate state
4306
+ * @example TX
4307
+ */
4308
+ licenseState?: string;
4309
+ /**
4310
+ * @description Truck color
4311
+ * @example White
4312
+ */
4313
+ color?: string;
4314
+ /**
4315
+ * @description Registration expiry date
4316
+ * @example 2025-12-31
4317
+ */
4318
+ registrationExpiry?: string;
4319
+ /**
4320
+ * @description URL to registration document
4321
+ * @example https://storage.example.com/registration.pdf
4322
+ */
4323
+ registrationFileUrl?: string;
4324
+ /**
4325
+ * @description Annual inspection expiry date
4326
+ * @example 2025-06-30
4327
+ */
4328
+ annualInspectionExpiry?: string;
4329
+ /**
4330
+ * @description URL to annual inspection document
4331
+ * @example https://storage.example.com/inspection.pdf
4332
+ */
4333
+ annualInspectionFileUrl?: string;
4334
+ /**
4335
+ * @description Fleet status
4336
+ * @example AVAILABLE
4337
+ * @enum {string}
4338
+ */
4339
+ fleetStatus?: "AVAILABLE" | "UNASSIGNED" | "SHOP" | "SOLD";
4340
+ /**
4341
+ * @description Ownership type
4342
+ * @example COMPANY
4343
+ * @enum {string}
4344
+ */
4345
+ ownershipType?: "COMPANY" | "OWNER_OPERATOR";
4346
+ /** @description Owner ID for owner operator trucks */
4347
+ ownerId?: string;
4348
+ /** @description Notes about ownership */
4349
+ ownerNotes?: string;
4144
4350
  };
4145
4351
  TruckListResponseDto: {
4146
4352
  items: components["schemas"]["TruckResponseDto"][];
@@ -4180,6 +4386,52 @@ export interface components {
4180
4386
  lastServiceDate?: string;
4181
4387
  /** @example New tires installed */
4182
4388
  notes?: string;
4389
+ /**
4390
+ * @description License plate state
4391
+ * @example TX
4392
+ */
4393
+ licenseState?: string;
4394
+ /**
4395
+ * @description Truck color
4396
+ * @example White
4397
+ */
4398
+ color?: string;
4399
+ /**
4400
+ * @description Registration expiry date
4401
+ * @example 2025-12-31
4402
+ */
4403
+ registrationExpiry?: string;
4404
+ /**
4405
+ * @description URL to registration document
4406
+ * @example https://storage.example.com/registration.pdf
4407
+ */
4408
+ registrationFileUrl?: string;
4409
+ /**
4410
+ * @description Annual inspection expiry date
4411
+ * @example 2025-06-30
4412
+ */
4413
+ annualInspectionExpiry?: string;
4414
+ /**
4415
+ * @description URL to annual inspection document
4416
+ * @example https://storage.example.com/inspection.pdf
4417
+ */
4418
+ annualInspectionFileUrl?: string;
4419
+ /**
4420
+ * @description Fleet status
4421
+ * @example AVAILABLE
4422
+ * @enum {string}
4423
+ */
4424
+ fleetStatus?: "AVAILABLE" | "UNASSIGNED" | "SHOP" | "SOLD";
4425
+ /**
4426
+ * @description Ownership type
4427
+ * @example COMPANY
4428
+ * @enum {string}
4429
+ */
4430
+ ownershipType?: "COMPANY" | "OWNER_OPERATOR";
4431
+ /** @description Owner ID for owner operator trucks */
4432
+ ownerId?: string;
4433
+ /** @description Notes about ownership */
4434
+ ownerNotes?: string;
4183
4435
  };
4184
4436
  AssignAssetDto: {
4185
4437
  /** @example driver-cuid-123 */
@@ -4212,30 +4464,42 @@ export interface components {
4212
4464
  lastInspectionDate?: string;
4213
4465
  /** @example New brakes installed */
4214
4466
  notes?: string;
4215
- };
4216
- TrailerResponseDto: {
4217
- id: string;
4218
- trailerNumber: string;
4219
- /** @enum {string} */
4220
- type: "RGN" | "SD" | "FLATBED" | "REEFER" | "DRY_VAN" | "STEP_DECK" | "LOWBOY";
4221
- length?: string;
4222
- weightCapacity?: string;
4223
- /** @enum {string} */
4224
- status: "ACTIVE" | "IN_SHOP" | "INACTIVE";
4225
- vin?: string;
4226
- licensePlate?: string;
4227
- /** Format: date-time */
4228
- registrationExpiry?: string;
4229
- /** Format: date-time */
4230
- lastInspectionDate?: string;
4231
- notes?: string;
4232
- orgId: string;
4233
- assignedDriverId?: string;
4234
- assignedDriver?: components["schemas"]["UserResponseDto"];
4235
- /** Format: date-time */
4236
- createdAt: string;
4237
- /** Format: date-time */
4238
- updatedAt: string;
4467
+ /**
4468
+ * @description License plate state
4469
+ * @example TX
4470
+ */
4471
+ licenseState?: string;
4472
+ /**
4473
+ * @description URL to registration document
4474
+ * @example https://storage.example.com/registration.pdf
4475
+ */
4476
+ registrationFileUrl?: string;
4477
+ /**
4478
+ * @description Annual inspection expiry date
4479
+ * @example 2025-06-30
4480
+ */
4481
+ annualInspectionExpiry?: string;
4482
+ /**
4483
+ * @description URL to annual inspection document
4484
+ * @example https://storage.example.com/inspection.pdf
4485
+ */
4486
+ annualInspectionFileUrl?: string;
4487
+ /**
4488
+ * @description Fleet status
4489
+ * @example AVAILABLE
4490
+ * @enum {string}
4491
+ */
4492
+ fleetStatus?: "AVAILABLE" | "UNASSIGNED" | "SHOP" | "SOLD";
4493
+ /**
4494
+ * @description Ownership type
4495
+ * @example COMPANY
4496
+ * @enum {string}
4497
+ */
4498
+ ownershipType?: "COMPANY" | "OWNER_OPERATOR";
4499
+ /** @description Owner ID for owner operator trailers */
4500
+ ownerId?: string;
4501
+ /** @description Notes about ownership */
4502
+ ownerNotes?: string;
4239
4503
  };
4240
4504
  TrailerListResponseDto: {
4241
4505
  items: components["schemas"]["TrailerResponseDto"][];
@@ -4271,6 +4535,42 @@ export interface components {
4271
4535
  lastInspectionDate?: string;
4272
4536
  /** @example New brakes installed */
4273
4537
  notes?: string;
4538
+ /**
4539
+ * @description License plate state
4540
+ * @example TX
4541
+ */
4542
+ licenseState?: string;
4543
+ /**
4544
+ * @description URL to registration document
4545
+ * @example https://storage.example.com/registration.pdf
4546
+ */
4547
+ registrationFileUrl?: string;
4548
+ /**
4549
+ * @description Annual inspection expiry date
4550
+ * @example 2025-06-30
4551
+ */
4552
+ annualInspectionExpiry?: string;
4553
+ /**
4554
+ * @description URL to annual inspection document
4555
+ * @example https://storage.example.com/inspection.pdf
4556
+ */
4557
+ annualInspectionFileUrl?: string;
4558
+ /**
4559
+ * @description Fleet status
4560
+ * @example AVAILABLE
4561
+ * @enum {string}
4562
+ */
4563
+ fleetStatus?: "AVAILABLE" | "UNASSIGNED" | "SHOP" | "SOLD";
4564
+ /**
4565
+ * @description Ownership type
4566
+ * @example COMPANY
4567
+ * @enum {string}
4568
+ */
4569
+ ownershipType?: "COMPANY" | "OWNER_OPERATOR";
4570
+ /** @description Owner ID for owner operator trailers */
4571
+ ownerId?: string;
4572
+ /** @description Notes about ownership */
4573
+ ownerNotes?: string;
4274
4574
  };
4275
4575
  AssignedRunSummaryResponseDto: {
4276
4576
  id: string;
@@ -4284,6 +4584,10 @@ export interface components {
4284
4584
  totalPay?: number;
4285
4585
  stopsCount: number;
4286
4586
  };
4587
+ AssignedRunListResponseDto: {
4588
+ items: components["schemas"]["AssignedRunSummaryResponseDto"][];
4589
+ total: number;
4590
+ };
4287
4591
  DriverResponseDto: {
4288
4592
  id: string;
4289
4593
  /** @enum {string} */
@@ -4347,7 +4651,16 @@ export interface components {
4347
4651
  /** Format: date-time */
4348
4652
  updatedAt: string;
4349
4653
  };
4654
+ DriverListResponseDto: {
4655
+ items: components["schemas"]["DriverResponseDto"][];
4656
+ total: number;
4657
+ page: number;
4658
+ limit: number;
4659
+ totalPages: number;
4660
+ };
4350
4661
  UpdateDriverDto: {
4662
+ /** @enum {string} */
4663
+ dispatchStatus?: "AVAILABLE" | "HOME" | "IN_TRANSIT" | "INACTIVE" | "SHOP" | "REST" | "DISPATCHED" | "ASSIGNED";
4351
4664
  /** @example 123 Main St */
4352
4665
  streetAddress?: string;
4353
4666
  /** @example Los Angeles */
@@ -4430,6 +4743,10 @@ export interface components {
4430
4743
  /** Format: date-time */
4431
4744
  createdAt: string;
4432
4745
  };
4746
+ DispatcherAssignmentHistoryListResponseDto: {
4747
+ items: components["schemas"]["DispatcherAssignmentHistoryResponseDto"][];
4748
+ total: number;
4749
+ };
4433
4750
  LinkTeamDriverDto: {
4434
4751
  /**
4435
4752
  * @description ID of the co-driver to link as team partner
@@ -4453,6 +4770,10 @@ export interface components {
4453
4770
  /** @enum {string} */
4454
4771
  status: "COMPLIANT" | "WARNING" | "EXPIRED" | "PENDING";
4455
4772
  };
4773
+ ComplianceWarningListResponseDto: {
4774
+ items: components["schemas"]["ComplianceWarningResponseDto"][];
4775
+ total: number;
4776
+ };
4456
4777
  DriverLocationResponseDto: {
4457
4778
  id: string;
4458
4779
  lat: number;
@@ -4466,6 +4787,10 @@ export interface components {
4466
4787
  /** Format: date-time */
4467
4788
  createdAt: string;
4468
4789
  };
4790
+ DriverLocationHistoryResponseDto: {
4791
+ items: components["schemas"]["DriverLocationResponseDto"][];
4792
+ total: number;
4793
+ };
4469
4794
  ChatMessageDto: {
4470
4795
  /** @enum {string} */
4471
4796
  role: "user" | "assistant" | "system";
@@ -4483,6 +4808,106 @@ export interface components {
4483
4808
  /** @enum {string} */
4484
4809
  documentType?: "BOL" | "POD" | "INVOICE" | "OTHER";
4485
4810
  };
4811
+ ToolCallDto: {
4812
+ /** @description Unique identifier for the tool call */
4813
+ id: string;
4814
+ /** @description Name of the tool that was called */
4815
+ name: string;
4816
+ /** @description Input parameters passed to the tool */
4817
+ input: {
4818
+ [key: string]: unknown;
4819
+ };
4820
+ /** @description Output returned by the tool */
4821
+ output: {
4822
+ [key: string]: unknown;
4823
+ };
4824
+ /**
4825
+ * @description State of the tool call
4826
+ * @enum {string}
4827
+ */
4828
+ state: "completed" | "error";
4829
+ };
4830
+ TokenUsageDto: {
4831
+ /** @description Number of input tokens used */
4832
+ input_tokens: number;
4833
+ /** @description Number of output tokens used */
4834
+ output_tokens: number;
4835
+ };
4836
+ ChatResponseDto: {
4837
+ /** @description AI response content */
4838
+ content: string;
4839
+ /** @description Tool calls made during the conversation */
4840
+ toolCalls?: components["schemas"]["ToolCallDto"][];
4841
+ /** @description Token usage statistics */
4842
+ usage?: components["schemas"]["TokenUsageDto"];
4843
+ };
4844
+ AnalyzeDocumentResponseDto: {
4845
+ /** @description Analysis results */
4846
+ analysis: {
4847
+ [key: string]: unknown;
4848
+ };
4849
+ /** @description Detected document type */
4850
+ documentType?: string;
4851
+ /** @description Token usage statistics */
4852
+ usage?: components["schemas"]["TokenUsageDto"];
4853
+ };
4854
+ DailyCheckOrgResultDto: {
4855
+ /** @description Organization ID */
4856
+ orgId: string;
4857
+ /** @description Total number of issues found */
4858
+ issues: number;
4859
+ /** @description Number of critical issues */
4860
+ critical: number;
4861
+ /** @description Whether a notification was sent */
4862
+ notificationSent: boolean;
4863
+ };
4864
+ DailyCheckResponseDto: {
4865
+ /** @description Whether the check was successful */
4866
+ success: boolean;
4867
+ /** @description Number of organizations checked */
4868
+ checkedOrgs: number;
4869
+ /** @description Results for each organization */
4870
+ results: components["schemas"]["DailyCheckOrgResultDto"][];
4871
+ };
4872
+ ChatHistoryMessageDto: {
4873
+ id: string;
4874
+ sessionId: string;
4875
+ /** @enum {string} */
4876
+ role: "user" | "assistant" | "system";
4877
+ content: string;
4878
+ toolCalls?: components["schemas"]["ToolCallDto"][] | null;
4879
+ /** Format: date-time */
4880
+ createdAt: string;
4881
+ };
4882
+ ChatHistoryResponseDto: {
4883
+ messages: components["schemas"]["ChatHistoryMessageDto"][];
4884
+ sessionId?: string;
4885
+ };
4886
+ CustomerContactDto: {
4887
+ /** @description Contact ID (for updates) */
4888
+ id?: string;
4889
+ /** @example John Smith */
4890
+ name: string;
4891
+ /**
4892
+ * Format: email
4893
+ * @example john@example.com
4894
+ */
4895
+ email?: string;
4896
+ /** @example +1-555-123-4567 */
4897
+ phone?: string;
4898
+ /**
4899
+ * @description Role/department of the contact
4900
+ * @example Dispatch
4901
+ */
4902
+ role?: string;
4903
+ /**
4904
+ * @description Whether this is the primary contact
4905
+ * @example true
4906
+ */
4907
+ isPrimary?: boolean;
4908
+ /** @description Notes about this contact */
4909
+ notes?: string;
4910
+ };
4486
4911
  CreateCustomerDto: {
4487
4912
  /**
4488
4913
  * @default BROKER
@@ -4493,7 +4918,10 @@ export interface components {
4493
4918
  companyName: string;
4494
4919
  /** @example John Smith */
4495
4920
  contactName?: string;
4496
- /** @example john@abcfreight.com */
4921
+ /**
4922
+ * Format: email
4923
+ * @example john@abcfreight.com
4924
+ */
4497
4925
  email?: string;
4498
4926
  /** @example +1-555-123-4567 */
4499
4927
  phone?: string;
@@ -4512,6 +4940,8 @@ export interface components {
4512
4940
  /** @example US */
4513
4941
  country?: string;
4514
4942
  notes?: string;
4943
+ /** @description Array of contacts for this customer */
4944
+ contacts?: components["schemas"]["CustomerContactDto"][];
4515
4945
  };
4516
4946
  CustomerResponseDto: {
4517
4947
  id: string;
@@ -4557,7 +4987,10 @@ export interface components {
4557
4987
  companyName?: string;
4558
4988
  /** @example John Smith */
4559
4989
  contactName?: string;
4560
- /** @example john@abcfreight.com */
4990
+ /**
4991
+ * Format: email
4992
+ * @example john@abcfreight.com
4993
+ */
4561
4994
  email?: string;
4562
4995
  /** @example +1-555-123-4567 */
4563
4996
  phone?: string;
@@ -4576,6 +5009,8 @@ export interface components {
4576
5009
  /** @example US */
4577
5010
  country?: string;
4578
5011
  notes?: string;
5012
+ /** @description Array of contacts for this customer */
5013
+ contacts?: components["schemas"]["CustomerContactDto"][];
4579
5014
  isActive?: boolean;
4580
5015
  };
4581
5016
  CreateMessageDto: {
@@ -4593,24 +5028,30 @@ export interface components {
4593
5028
  /** @description Run ID for context */
4594
5029
  runId?: string;
4595
5030
  };
5031
+ MessageParticipantDto: {
5032
+ id: string;
5033
+ name: string;
5034
+ role: string;
5035
+ };
4596
5036
  MessageResponseDto: {
4597
5037
  id: string;
5038
+ /** @enum {string} */
5039
+ type: "TEXT" | "IMAGE" | "DOCUMENT" | "SYSTEM";
4598
5040
  content: string;
4599
- type: string;
4600
- senderId: string;
4601
- receiverId?: string;
4602
- runId?: string;
5041
+ metadata?: Record<string, never>;
4603
5042
  isRead: boolean;
4604
- orgId: string;
4605
- senderName?: string;
4606
- receiverName?: string;
4607
5043
  /** Format: date-time */
4608
5044
  createdAt: string;
5045
+ senderId: string;
5046
+ sender?: components["schemas"]["MessageParticipantDto"];
5047
+ recipientId?: string;
5048
+ recipient?: components["schemas"]["MessageParticipantDto"];
5049
+ runId?: string;
4609
5050
  };
4610
5051
  MessageListResponseDto: {
4611
5052
  items: components["schemas"]["MessageResponseDto"][];
4612
5053
  total: number;
4613
- hasMore?: boolean;
5054
+ hasMore: boolean;
4614
5055
  };
4615
5056
  ConversationResponseDto: {
4616
5057
  partnerId: string;
@@ -4633,7 +5074,7 @@ export interface components {
4633
5074
  };
4634
5075
  StatementLineItem: {
4635
5076
  description: string;
4636
- type: string;
5077
+ type: Record<string, never>;
4637
5078
  amount: number;
4638
5079
  runId?: string;
4639
5080
  loadNumber?: string;
@@ -4660,27 +5101,22 @@ export interface components {
4660
5101
  };
4661
5102
  StatementResponseDto: {
4662
5103
  id: string;
5104
+ driverId: string;
4663
5105
  /** Format: date-time */
4664
5106
  periodStart: string;
4665
5107
  /** Format: date-time */
4666
5108
  periodEnd: string;
4667
- /** @enum {string} */
4668
- status: "DRAFT" | "PENDING" | "APPROVED" | "PAID";
4669
- totalMiles: number;
4670
- totalLoads: number;
4671
- grossPay: number;
4672
- deductions: number;
5109
+ totalEarnings: number;
5110
+ totalDeductions: number;
4673
5111
  netPay: number;
4674
- lineItems?: string[];
4675
- notes?: string;
4676
- /** Format: date-time */
4677
- paidAt?: string;
5112
+ status: string;
5113
+ lineItems?: components["schemas"]["StatementLineItem"][];
5114
+ driverName?: string;
5115
+ orgId: string;
4678
5116
  /** Format: date-time */
4679
5117
  createdAt: string;
4680
5118
  /** Format: date-time */
4681
5119
  updatedAt: string;
4682
- driverId: string;
4683
- driver?: Record<string, never>;
4684
5120
  };
4685
5121
  GenerateStatementDto: {
4686
5122
  /** @description Driver user ID */
@@ -4695,6 +5131,7 @@ export interface components {
4695
5131
  total: number;
4696
5132
  page: number;
4697
5133
  limit: number;
5134
+ totalPages: number;
4698
5135
  };
4699
5136
  UpdateStatementDto: {
4700
5137
  /** @description Driver user ID */
@@ -4728,6 +5165,10 @@ export interface components {
4728
5165
  /** @description Expiration date */
4729
5166
  expiresAt?: string;
4730
5167
  };
5168
+ ReferralCreatedByDto: {
5169
+ id: string;
5170
+ name: string;
5171
+ };
4731
5172
  ReferralResponseDto: {
4732
5173
  id: string;
4733
5174
  code: string;
@@ -4740,17 +5181,22 @@ export interface components {
4740
5181
  /** Format: date-time */
4741
5182
  createdAt: string;
4742
5183
  createdById: string;
4743
- createdBy?: Record<string, never>;
5184
+ createdBy?: components["schemas"]["ReferralCreatedByDto"];
4744
5185
  };
4745
5186
  ReferralListResponseDto: {
4746
5187
  items: components["schemas"]["ReferralResponseDto"][];
4747
5188
  total: number;
4748
5189
  };
5190
+ TopReferrerDto: {
5191
+ userId: string;
5192
+ userName: string;
5193
+ signupCount: number;
5194
+ };
4749
5195
  ReferralStatsDto: {
4750
5196
  totalReferrals: number;
4751
5197
  activeReferrals: number;
4752
5198
  totalSignups: number;
4753
- topReferrers: Record<string, never>[];
5199
+ topReferrers: components["schemas"]["TopReferrerDto"][];
4754
5200
  };
4755
5201
  UpdateReferralDto: {
4756
5202
  /** @description Custom referral code (auto-generated if not provided) */
@@ -4787,6 +5233,18 @@ export interface components {
4787
5233
  /** Format: date-time */
4788
5234
  updatedAt?: string;
4789
5235
  };
5236
+ AISuggestionDto: {
5237
+ driverId?: string;
5238
+ driverName?: string;
5239
+ truckId?: string;
5240
+ truckNumber?: string;
5241
+ trailerId?: string;
5242
+ trailerNumber?: string;
5243
+ runId?: string;
5244
+ runName?: string;
5245
+ /** @example 0.85 */
5246
+ confidence: number;
5247
+ };
4790
5248
  CreateExpenseDto: {
4791
5249
  /** @enum {string} */
4792
5250
  type: "FUEL" | "REPAIR" | "MAINTENANCE" | "TOLL" | "PARKING" | "SCALE" | "LUMPER" | "DETENTION" | "INSURANCE" | "OTHER";
@@ -4804,6 +5262,8 @@ export interface components {
4804
5262
  truckId?: string;
4805
5263
  trailerId?: string;
4806
5264
  runId?: string;
5265
+ /** @description Stop ID for stop-specific fees (lumper, escort, etc.) */
5266
+ stopId?: string;
4807
5267
  };
4808
5268
  ExpenseResponseDto: {
4809
5269
  id: string;
@@ -4836,6 +5296,7 @@ export interface components {
4836
5296
  truckNumber?: string;
4837
5297
  trailerNumber?: string;
4838
5298
  runName?: string;
5299
+ aiSuggestion?: components["schemas"]["AISuggestionDto"];
4839
5300
  /** Format: date-time */
4840
5301
  createdAt: string;
4841
5302
  /** Format: date-time */
@@ -4875,6 +5336,8 @@ export interface components {
4875
5336
  truckId?: string;
4876
5337
  trailerId?: string;
4877
5338
  runId?: string;
5339
+ /** @description Stop ID for stop-specific fees (lumper, escort, etc.) */
5340
+ stopId?: string;
4878
5341
  };
4879
5342
  AssociateExpenseDto: {
4880
5343
  driverId?: string;
@@ -4944,6 +5407,7 @@ export interface components {
4944
5407
  };
4945
5408
  SendInvitationDto: {
4946
5409
  /**
5410
+ * Format: email
4947
5411
  * @description Email address to send invitation to
4948
5412
  * @example broker@example.com
4949
5413
  */
@@ -4991,7 +5455,7 @@ export interface components {
4991
5455
  };
4992
5456
  SendGridWebhookDto: {
4993
5457
  /** @description Raw email headers */
4994
- headers: string;
5458
+ headers?: string;
4995
5459
  /** @description DKIM verification result */
4996
5460
  dkim?: string;
4997
5461
  /**
@@ -5070,6 +5534,7 @@ export interface components {
5070
5534
  */
5071
5535
  signedByName?: string;
5072
5536
  /**
5537
+ * Format: email
5073
5538
  * @description Email of person signing
5074
5539
  * @example john@example.com
5075
5540
  */
@@ -5088,6 +5553,33 @@ export interface components {
5088
5553
  forwardedTo?: string[];
5089
5554
  signedPdfUrl?: string;
5090
5555
  };
5556
+ SearchResultItemDto: {
5557
+ /** @description Entity ID */
5558
+ id: string;
5559
+ /**
5560
+ * @description Entity type
5561
+ * @enum {string}
5562
+ */
5563
+ type: "run" | "driver" | "truck" | "trailer" | "customer";
5564
+ /** @description Display title */
5565
+ title: string;
5566
+ /** @description Secondary display text */
5567
+ subtitle?: string;
5568
+ /** @description Navigation URL */
5569
+ url: string;
5570
+ };
5571
+ SearchResultDto: {
5572
+ /** @description Matching runs */
5573
+ runs: components["schemas"]["SearchResultItemDto"][];
5574
+ /** @description Matching drivers */
5575
+ drivers: components["schemas"]["SearchResultItemDto"][];
5576
+ /** @description Matching trucks */
5577
+ trucks: components["schemas"]["SearchResultItemDto"][];
5578
+ /** @description Matching trailers */
5579
+ trailers: components["schemas"]["SearchResultItemDto"][];
5580
+ /** @description Matching customers */
5581
+ customers: components["schemas"]["SearchResultItemDto"][];
5582
+ };
5091
5583
  };
5092
5584
  responses: never;
5093
5585
  parameters: never;
@@ -5379,6 +5871,12 @@ export interface operations {
5379
5871
  };
5380
5872
  content?: never;
5381
5873
  };
5874
+ 201: {
5875
+ headers: {
5876
+ [name: string]: unknown;
5877
+ };
5878
+ content?: never;
5879
+ };
5382
5880
  };
5383
5881
  };
5384
5882
  AuthController_logout: {
@@ -5399,6 +5897,62 @@ export interface operations {
5399
5897
  };
5400
5898
  };
5401
5899
  };
5900
+ AuthController_getVerificationCodeForE2E: {
5901
+ parameters: {
5902
+ query: {
5903
+ email: string;
5904
+ secret: string;
5905
+ };
5906
+ header?: never;
5907
+ path?: never;
5908
+ cookie?: never;
5909
+ };
5910
+ requestBody?: never;
5911
+ responses: {
5912
+ /** @description Verification code returned */
5913
+ 200: {
5914
+ headers: {
5915
+ [name: string]: unknown;
5916
+ };
5917
+ content?: never;
5918
+ };
5919
+ /** @description Invalid E2E test secret */
5920
+ 401: {
5921
+ headers: {
5922
+ [name: string]: unknown;
5923
+ };
5924
+ content?: never;
5925
+ };
5926
+ };
5927
+ };
5928
+ AuthController_deleteUserForE2E: {
5929
+ parameters: {
5930
+ query: {
5931
+ email: string;
5932
+ secret: string;
5933
+ };
5934
+ header?: never;
5935
+ path?: never;
5936
+ cookie?: never;
5937
+ };
5938
+ requestBody?: never;
5939
+ responses: {
5940
+ /** @description User deleted */
5941
+ 200: {
5942
+ headers: {
5943
+ [name: string]: unknown;
5944
+ };
5945
+ content?: never;
5946
+ };
5947
+ /** @description Invalid E2E test secret */
5948
+ 401: {
5949
+ headers: {
5950
+ [name: string]: unknown;
5951
+ };
5952
+ content?: never;
5953
+ };
5954
+ };
5955
+ };
5402
5956
  UsersController_findAll: {
5403
5957
  parameters: {
5404
5958
  query: {
@@ -5577,6 +6131,12 @@ export interface operations {
5577
6131
  };
5578
6132
  content?: never;
5579
6133
  };
6134
+ 201: {
6135
+ headers: {
6136
+ [name: string]: unknown;
6137
+ };
6138
+ content?: never;
6139
+ };
5580
6140
  };
5581
6141
  };
5582
6142
  UsersController_unlinkTelegram: {
@@ -5597,6 +6157,12 @@ export interface operations {
5597
6157
  };
5598
6158
  content?: never;
5599
6159
  };
6160
+ 201: {
6161
+ headers: {
6162
+ [name: string]: unknown;
6163
+ };
6164
+ content?: never;
6165
+ };
5600
6166
  };
5601
6167
  };
5602
6168
  UsersController_updateDispatchStatus: {
@@ -5637,6 +6203,12 @@ export interface operations {
5637
6203
  };
5638
6204
  content?: never;
5639
6205
  };
6206
+ 201: {
6207
+ headers: {
6208
+ [name: string]: unknown;
6209
+ };
6210
+ content?: never;
6211
+ };
5640
6212
  };
5641
6213
  };
5642
6214
  OrgsController_findAll: {
@@ -5934,6 +6506,12 @@ export interface operations {
5934
6506
  };
5935
6507
  content?: never;
5936
6508
  };
6509
+ 201: {
6510
+ headers: {
6511
+ [name: string]: unknown;
6512
+ };
6513
+ content?: never;
6514
+ };
5937
6515
  };
5938
6516
  };
5939
6517
  OrgsController_completeOnboarding: {
@@ -5956,6 +6534,12 @@ export interface operations {
5956
6534
  };
5957
6535
  content?: never;
5958
6536
  };
6537
+ 201: {
6538
+ headers: {
6539
+ [name: string]: unknown;
6540
+ };
6541
+ content?: never;
6542
+ };
5959
6543
  };
5960
6544
  };
5961
6545
  OrgsController_getFactoringPartners: {
@@ -6084,7 +6668,7 @@ export interface operations {
6084
6668
  [name: string]: unknown;
6085
6669
  };
6086
6670
  content: {
6087
- "application/json": components["schemas"]["RunSummaryResponseDto"][];
6671
+ "application/json": components["schemas"]["RunSummaryListResponseDto"];
6088
6672
  };
6089
6673
  };
6090
6674
  };
@@ -6233,6 +6817,14 @@ export interface operations {
6233
6817
  };
6234
6818
  content?: never;
6235
6819
  };
6820
+ 201: {
6821
+ headers: {
6822
+ [name: string]: unknown;
6823
+ };
6824
+ content: {
6825
+ "application/json": Record<string, never>;
6826
+ };
6827
+ };
6236
6828
  };
6237
6829
  };
6238
6830
  RunsController_unassignDriver: {
@@ -6253,6 +6845,12 @@ export interface operations {
6253
6845
  };
6254
6846
  content?: never;
6255
6847
  };
6848
+ 201: {
6849
+ headers: {
6850
+ [name: string]: unknown;
6851
+ };
6852
+ content?: never;
6853
+ };
6256
6854
  };
6257
6855
  };
6258
6856
  RunsController_startRun: {
@@ -6361,6 +6959,14 @@ export interface operations {
6361
6959
  };
6362
6960
  content?: never;
6363
6961
  };
6962
+ 201: {
6963
+ headers: {
6964
+ [name: string]: unknown;
6965
+ };
6966
+ content: {
6967
+ "application/json": Record<string, never>;
6968
+ };
6969
+ };
6364
6970
  };
6365
6971
  };
6366
6972
  RunsController_addStop: {
@@ -6480,6 +7086,14 @@ export interface operations {
6480
7086
  };
6481
7087
  content?: never;
6482
7088
  };
7089
+ 201: {
7090
+ headers: {
7091
+ [name: string]: unknown;
7092
+ };
7093
+ content: {
7094
+ "application/json": Record<string, never>;
7095
+ };
7096
+ };
6483
7097
  };
6484
7098
  };
6485
7099
  RunsController_uploadSignature: {
@@ -6503,6 +7117,37 @@ export interface operations {
6503
7117
  };
6504
7118
  };
6505
7119
  };
7120
+ RunsController_revertStopStatus: {
7121
+ parameters: {
7122
+ query?: never;
7123
+ header?: never;
7124
+ path: {
7125
+ id: string;
7126
+ stopId: string;
7127
+ };
7128
+ cookie?: never;
7129
+ };
7130
+ requestBody: {
7131
+ content: {
7132
+ "application/json": components["schemas"]["RevertStopStatusDto"];
7133
+ };
7134
+ };
7135
+ responses: {
7136
+ /** @description Stop status reverted successfully */
7137
+ 200: {
7138
+ headers: {
7139
+ [name: string]: unknown;
7140
+ };
7141
+ content?: never;
7142
+ };
7143
+ 201: {
7144
+ headers: {
7145
+ [name: string]: unknown;
7146
+ };
7147
+ content?: never;
7148
+ };
7149
+ };
7150
+ };
6506
7151
  RunsController_geocodeStops: {
6507
7152
  parameters: {
6508
7153
  query?: never;
@@ -6521,6 +7166,12 @@ export interface operations {
6521
7166
  };
6522
7167
  content?: never;
6523
7168
  };
7169
+ 201: {
7170
+ headers: {
7171
+ [name: string]: unknown;
7172
+ };
7173
+ content?: never;
7174
+ };
6524
7175
  };
6525
7176
  };
6526
7177
  RunsController_queueLoad: {
@@ -6541,6 +7192,14 @@ export interface operations {
6541
7192
  };
6542
7193
  content?: never;
6543
7194
  };
7195
+ 201: {
7196
+ headers: {
7197
+ [name: string]: unknown;
7198
+ };
7199
+ content: {
7200
+ "application/json": Record<string, never>;
7201
+ };
7202
+ };
6544
7203
  };
6545
7204
  };
6546
7205
  RunsController_dispatchLoad: {
@@ -6561,6 +7220,12 @@ export interface operations {
6561
7220
  };
6562
7221
  content?: never;
6563
7222
  };
7223
+ 201: {
7224
+ headers: {
7225
+ [name: string]: unknown;
7226
+ };
7227
+ content?: never;
7228
+ };
6564
7229
  };
6565
7230
  };
6566
7231
  RunsController_completeAndUnlockNext: {
@@ -6581,6 +7246,14 @@ export interface operations {
6581
7246
  };
6582
7247
  content?: never;
6583
7248
  };
7249
+ 201: {
7250
+ headers: {
7251
+ [name: string]: unknown;
7252
+ };
7253
+ content: {
7254
+ "application/json": Record<string, never>;
7255
+ };
7256
+ };
6584
7257
  };
6585
7258
  };
6586
7259
  RunsController_unlockLoad: {
@@ -6601,6 +7274,14 @@ export interface operations {
6601
7274
  };
6602
7275
  content?: never;
6603
7276
  };
7277
+ 201: {
7278
+ headers: {
7279
+ [name: string]: unknown;
7280
+ };
7281
+ content: {
7282
+ "application/json": Record<string, never>;
7283
+ };
7284
+ };
6604
7285
  };
6605
7286
  };
6606
7287
  RunsController_getTrackingLink: {
@@ -6640,7 +7321,7 @@ export interface operations {
6640
7321
  [name: string]: unknown;
6641
7322
  };
6642
7323
  content: {
6643
- "application/json": components["schemas"]["RunChargeResponseDto"][];
7324
+ "application/json": components["schemas"]["RunChargeListResponseDto"];
6644
7325
  };
6645
7326
  };
6646
7327
  };
@@ -6753,6 +7434,12 @@ export interface operations {
6753
7434
  };
6754
7435
  content?: never;
6755
7436
  };
7437
+ 201: {
7438
+ headers: {
7439
+ [name: string]: unknown;
7440
+ };
7441
+ content?: never;
7442
+ };
6756
7443
  };
6757
7444
  };
6758
7445
  DocumentsController_getUploadUrl: {
@@ -6773,6 +7460,12 @@ export interface operations {
6773
7460
  "application/json": components["schemas"]["UploadUrlResponseDto"];
6774
7461
  };
6775
7462
  };
7463
+ 201: {
7464
+ headers: {
7465
+ [name: string]: unknown;
7466
+ };
7467
+ content?: never;
7468
+ };
6776
7469
  };
6777
7470
  };
6778
7471
  DocumentsController_uploadFile: {
@@ -7230,6 +7923,12 @@ export interface operations {
7230
7923
  };
7231
7924
  content?: never;
7232
7925
  };
7926
+ 201: {
7927
+ headers: {
7928
+ [name: string]: unknown;
7929
+ };
7930
+ content?: never;
7931
+ };
7233
7932
  };
7234
7933
  };
7235
7934
  CompanyDocumentsController_uploadDocument: {
@@ -7287,6 +7986,12 @@ export interface operations {
7287
7986
  };
7288
7987
  content?: never;
7289
7988
  };
7989
+ 201: {
7990
+ headers: {
7991
+ [name: string]: unknown;
7992
+ };
7993
+ content?: never;
7994
+ };
7290
7995
  };
7291
7996
  };
7292
7997
  CompanyDocumentsController_findAll: {
@@ -7308,7 +8013,7 @@ export interface operations {
7308
8013
  [name: string]: unknown;
7309
8014
  };
7310
8015
  content: {
7311
- "application/json": components["schemas"]["CompanyDocumentResponseDto"][];
8016
+ "application/json": components["schemas"]["CompanyDocumentListResponseDto"];
7312
8017
  };
7313
8018
  };
7314
8019
  };
@@ -7520,6 +8225,14 @@ export interface operations {
7520
8225
  };
7521
8226
  content?: never;
7522
8227
  };
8228
+ 201: {
8229
+ headers: {
8230
+ [name: string]: unknown;
8231
+ };
8232
+ content: {
8233
+ "application/json": Record<string, never>;
8234
+ };
8235
+ };
7523
8236
  /** @description Driver not found */
7524
8237
  404: {
7525
8238
  headers: {
@@ -7551,6 +8264,12 @@ export interface operations {
7551
8264
  };
7552
8265
  content?: never;
7553
8266
  };
8267
+ 201: {
8268
+ headers: {
8269
+ [name: string]: unknown;
8270
+ };
8271
+ content?: never;
8272
+ };
7554
8273
  /** @description Driver not found */
7555
8274
  404: {
7556
8275
  headers: {
@@ -7645,7 +8364,7 @@ export interface operations {
7645
8364
  [name: string]: unknown;
7646
8365
  };
7647
8366
  content: {
7648
- "application/json": components["schemas"]["MagicLinkResponseDto"][];
8367
+ "application/json": components["schemas"]["MagicLinkListResponseDto"];
7649
8368
  };
7650
8369
  };
7651
8370
  };
@@ -7789,6 +8508,14 @@ export interface operations {
7789
8508
  };
7790
8509
  content?: never;
7791
8510
  };
8511
+ 201: {
8512
+ headers: {
8513
+ [name: string]: unknown;
8514
+ };
8515
+ content: {
8516
+ "application/json": Record<string, never>;
8517
+ };
8518
+ };
7792
8519
  };
7793
8520
  };
7794
8521
  TrucksController_unassign: {
@@ -7809,6 +8536,14 @@ export interface operations {
7809
8536
  };
7810
8537
  content?: never;
7811
8538
  };
8539
+ 201: {
8540
+ headers: {
8541
+ [name: string]: unknown;
8542
+ };
8543
+ content: {
8544
+ "application/json": Record<string, never>;
8545
+ };
8546
+ };
7812
8547
  };
7813
8548
  };
7814
8549
  TrailersController_findAll: {
@@ -7951,6 +8686,14 @@ export interface operations {
7951
8686
  };
7952
8687
  content?: never;
7953
8688
  };
8689
+ 201: {
8690
+ headers: {
8691
+ [name: string]: unknown;
8692
+ };
8693
+ content: {
8694
+ "application/json": Record<string, never>;
8695
+ };
8696
+ };
7954
8697
  };
7955
8698
  };
7956
8699
  TrailersController_unassign: {
@@ -7971,6 +8714,14 @@ export interface operations {
7971
8714
  };
7972
8715
  content?: never;
7973
8716
  };
8717
+ 201: {
8718
+ headers: {
8719
+ [name: string]: unknown;
8720
+ };
8721
+ content: {
8722
+ "application/json": Record<string, never>;
8723
+ };
8724
+ };
7974
8725
  };
7975
8726
  };
7976
8727
  TelegramController_getCurrentRun: {
@@ -8062,6 +8813,12 @@ export interface operations {
8062
8813
  };
8063
8814
  content?: never;
8064
8815
  };
8816
+ 201: {
8817
+ headers: {
8818
+ [name: string]: unknown;
8819
+ };
8820
+ content?: never;
8821
+ };
8065
8822
  };
8066
8823
  };
8067
8824
  TelegramController_sendRunInvite: {
@@ -8080,6 +8837,12 @@ export interface operations {
8080
8837
  };
8081
8838
  content?: never;
8082
8839
  };
8840
+ 201: {
8841
+ headers: {
8842
+ [name: string]: unknown;
8843
+ };
8844
+ content?: never;
8845
+ };
8083
8846
  };
8084
8847
  };
8085
8848
  TelegramController_sendDriverInvite: {
@@ -8098,6 +8861,14 @@ export interface operations {
8098
8861
  };
8099
8862
  content?: never;
8100
8863
  };
8864
+ 201: {
8865
+ headers: {
8866
+ [name: string]: unknown;
8867
+ };
8868
+ content: {
8869
+ "application/json": Record<string, never>;
8870
+ };
8871
+ };
8101
8872
  };
8102
8873
  };
8103
8874
  TelegramController_getBotInfo: {
@@ -8162,7 +8933,7 @@ export interface operations {
8162
8933
  [name: string]: unknown;
8163
8934
  };
8164
8935
  content: {
8165
- "application/json": components["schemas"]["AssignedRunSummaryResponseDto"][];
8936
+ "application/json": components["schemas"]["AssignedRunListResponseDto"];
8166
8937
  };
8167
8938
  };
8168
8939
  };
@@ -8207,7 +8978,7 @@ export interface operations {
8207
8978
  [name: string]: unknown;
8208
8979
  };
8209
8980
  content: {
8210
- "application/json": components["schemas"]["DriverResponseDto"][];
8981
+ "application/json": components["schemas"]["DriverListResponseDto"];
8211
8982
  };
8212
8983
  };
8213
8984
  };
@@ -8308,6 +9079,12 @@ export interface operations {
8308
9079
  };
8309
9080
  content?: never;
8310
9081
  };
9082
+ 201: {
9083
+ headers: {
9084
+ [name: string]: unknown;
9085
+ };
9086
+ content?: never;
9087
+ };
8311
9088
  };
8312
9089
  };
8313
9090
  DriversAdminController_getDispatcherHistory: {
@@ -8327,7 +9104,7 @@ export interface operations {
8327
9104
  [name: string]: unknown;
8328
9105
  };
8329
9106
  content: {
8330
- "application/json": components["schemas"]["DispatcherAssignmentHistoryResponseDto"][];
9107
+ "application/json": components["schemas"]["DispatcherAssignmentHistoryListResponseDto"];
8331
9108
  };
8332
9109
  };
8333
9110
  };
@@ -8354,6 +9131,12 @@ export interface operations {
8354
9131
  };
8355
9132
  content?: never;
8356
9133
  };
9134
+ 201: {
9135
+ headers: {
9136
+ [name: string]: unknown;
9137
+ };
9138
+ content?: never;
9139
+ };
8357
9140
  };
8358
9141
  };
8359
9142
  DriversAdminController_unlinkTeamDriver: {
@@ -8391,7 +9174,7 @@ export interface operations {
8391
9174
  [name: string]: unknown;
8392
9175
  };
8393
9176
  content: {
8394
- "application/json": components["schemas"]["ComplianceWarningResponseDto"][];
9177
+ "application/json": components["schemas"]["ComplianceWarningListResponseDto"];
8395
9178
  };
8396
9179
  };
8397
9180
  };
@@ -8416,7 +9199,7 @@ export interface operations {
8416
9199
  [name: string]: unknown;
8417
9200
  };
8418
9201
  content: {
8419
- "application/json": components["schemas"]["AssignedRunSummaryResponseDto"][];
9202
+ "application/json": components["schemas"]["AssignedRunListResponseDto"];
8420
9203
  };
8421
9204
  };
8422
9205
  };
@@ -8463,7 +9246,7 @@ export interface operations {
8463
9246
  [name: string]: unknown;
8464
9247
  };
8465
9248
  content: {
8466
- "application/json": components["schemas"]["DriverLocationResponseDto"][];
9249
+ "application/json": components["schemas"]["DriverLocationHistoryResponseDto"];
8467
9250
  };
8468
9251
  };
8469
9252
  };
@@ -8481,11 +9264,14 @@ export interface operations {
8481
9264
  };
8482
9265
  };
8483
9266
  responses: {
9267
+ /** @description AI response with optional tool calls */
8484
9268
  200: {
8485
9269
  headers: {
8486
9270
  [name: string]: unknown;
8487
9271
  };
8488
- content?: never;
9272
+ content: {
9273
+ "application/json": components["schemas"]["ChatResponseDto"];
9274
+ };
8489
9275
  };
8490
9276
  };
8491
9277
  };
@@ -8502,11 +9288,14 @@ export interface operations {
8502
9288
  };
8503
9289
  };
8504
9290
  responses: {
9291
+ /** @description Document analysis result */
8505
9292
  200: {
8506
9293
  headers: {
8507
9294
  [name: string]: unknown;
8508
9295
  };
8509
- content?: never;
9296
+ content: {
9297
+ "application/json": components["schemas"]["AnalyzeDocumentResponseDto"];
9298
+ };
8510
9299
  };
8511
9300
  };
8512
9301
  };
@@ -8519,11 +9308,14 @@ export interface operations {
8519
9308
  };
8520
9309
  requestBody?: never;
8521
9310
  responses: {
9311
+ /** @description Daily check results */
8522
9312
  200: {
8523
9313
  headers: {
8524
9314
  [name: string]: unknown;
8525
9315
  };
8526
- content?: never;
9316
+ content: {
9317
+ "application/json": components["schemas"]["DailyCheckResponseDto"];
9318
+ };
8527
9319
  };
8528
9320
  };
8529
9321
  };
@@ -8536,11 +9328,14 @@ export interface operations {
8536
9328
  };
8537
9329
  requestBody?: never;
8538
9330
  responses: {
9331
+ /** @description Chat history */
8539
9332
  200: {
8540
9333
  headers: {
8541
9334
  [name: string]: unknown;
8542
9335
  };
8543
- content?: never;
9336
+ content: {
9337
+ "application/json": components["schemas"]["ChatHistoryResponseDto"];
9338
+ };
8544
9339
  };
8545
9340
  };
8546
9341
  };
@@ -8791,6 +9586,12 @@ export interface operations {
8791
9586
  };
8792
9587
  content?: never;
8793
9588
  };
9589
+ 201: {
9590
+ headers: {
9591
+ [name: string]: unknown;
9592
+ };
9593
+ content?: never;
9594
+ };
8794
9595
  };
8795
9596
  };
8796
9597
  StatementsController_findAll: {
@@ -8881,7 +9682,7 @@ export interface operations {
8881
9682
  [name: string]: unknown;
8882
9683
  };
8883
9684
  content: {
8884
- "application/json": components["schemas"]["StatementResponseDto"][];
9685
+ "application/json": components["schemas"]["StatementListResponseDto"];
8885
9686
  };
8886
9687
  };
8887
9688
  };
@@ -9032,6 +9833,14 @@ export interface operations {
9032
9833
  };
9033
9834
  content?: never;
9034
9835
  };
9836
+ 201: {
9837
+ headers: {
9838
+ [name: string]: unknown;
9839
+ };
9840
+ content: {
9841
+ "application/json": Record<string, never>;
9842
+ };
9843
+ };
9035
9844
  };
9036
9845
  };
9037
9846
  StatementsController_markPaid: {
@@ -9052,6 +9861,14 @@ export interface operations {
9052
9861
  };
9053
9862
  content?: never;
9054
9863
  };
9864
+ 201: {
9865
+ headers: {
9866
+ [name: string]: unknown;
9867
+ };
9868
+ content: {
9869
+ "application/json": Record<string, never>;
9870
+ };
9871
+ };
9055
9872
  };
9056
9873
  };
9057
9874
  ReferralsController_findAll: {
@@ -9133,7 +9950,7 @@ export interface operations {
9133
9950
  [name: string]: unknown;
9134
9951
  };
9135
9952
  content: {
9136
- "application/json": components["schemas"]["ReferralResponseDto"][];
9953
+ "application/json": components["schemas"]["ReferralListResponseDto"];
9137
9954
  };
9138
9955
  };
9139
9956
  };
@@ -9273,6 +10090,12 @@ export interface operations {
9273
10090
  "application/json": components["schemas"]["UserSignatureResponseDto"];
9274
10091
  };
9275
10092
  };
10093
+ 201: {
10094
+ headers: {
10095
+ [name: string]: unknown;
10096
+ };
10097
+ content?: never;
10098
+ };
9276
10099
  };
9277
10100
  };
9278
10101
  SignaturesController_deleteSignature: {
@@ -9471,6 +10294,14 @@ export interface operations {
9471
10294
  "application/json": components["schemas"]["ExpenseResponseDto"];
9472
10295
  };
9473
10296
  };
10297
+ 201: {
10298
+ headers: {
10299
+ [name: string]: unknown;
10300
+ };
10301
+ content: {
10302
+ "application/json": Record<string, never>;
10303
+ };
10304
+ };
9474
10305
  };
9475
10306
  };
9476
10307
  ExpensesController_approve: {
@@ -9492,6 +10323,12 @@ export interface operations {
9492
10323
  "application/json": components["schemas"]["ExpenseResponseDto"];
9493
10324
  };
9494
10325
  };
10326
+ 201: {
10327
+ headers: {
10328
+ [name: string]: unknown;
10329
+ };
10330
+ content?: never;
10331
+ };
9495
10332
  };
9496
10333
  };
9497
10334
  ExpensesController_reject: {
@@ -9517,11 +10354,24 @@ export interface operations {
9517
10354
  "application/json": components["schemas"]["ExpenseResponseDto"];
9518
10355
  };
9519
10356
  };
10357
+ 201: {
10358
+ headers: {
10359
+ [name: string]: unknown;
10360
+ };
10361
+ content?: never;
10362
+ };
9520
10363
  };
9521
10364
  };
9522
10365
  ClientEmailController_findAll: {
9523
10366
  parameters: {
9524
- query?: never;
10367
+ query?: {
10368
+ /** @description Filter by active status */
10369
+ isActive?: boolean;
10370
+ /** @description Filter by associated run status (DISPATCHED, IN_PROGRESS, COMPLETED, etc.) */
10371
+ runStatus?: string;
10372
+ /** @description Search by local part or customer name */
10373
+ search?: string;
10374
+ };
9525
10375
  header?: never;
9526
10376
  path?: never;
9527
10377
  cookie?: never;
@@ -9647,6 +10497,12 @@ export interface operations {
9647
10497
  };
9648
10498
  content?: never;
9649
10499
  };
10500
+ 201: {
10501
+ headers: {
10502
+ [name: string]: unknown;
10503
+ };
10504
+ content?: never;
10505
+ };
9650
10506
  };
9651
10507
  };
9652
10508
  InboundEmailController_findAll: {
@@ -9786,6 +10642,12 @@ export interface operations {
9786
10642
  "application/json": components["schemas"]["SignDocumentResultDto"];
9787
10643
  };
9788
10644
  };
10645
+ 201: {
10646
+ headers: {
10647
+ [name: string]: unknown;
10648
+ };
10649
+ content?: never;
10650
+ };
9789
10651
  /** @description Document already signed or link expired */
9790
10652
  400: {
9791
10653
  headers: {
@@ -9827,7 +10689,34 @@ export interface operations {
9827
10689
  headers: {
9828
10690
  [name: string]: unknown;
9829
10691
  };
9830
- content?: never;
10692
+ content: {
10693
+ "application/json": Record<string, never>;
10694
+ };
10695
+ };
10696
+ };
10697
+ };
10698
+ SearchController_search: {
10699
+ parameters: {
10700
+ query: {
10701
+ /** @description Search term (min 2 characters) */
10702
+ q: string;
10703
+ /** @description Max results per category (default: 10) */
10704
+ limit?: number;
10705
+ };
10706
+ header?: never;
10707
+ path?: never;
10708
+ cookie?: never;
10709
+ };
10710
+ requestBody?: never;
10711
+ responses: {
10712
+ /** @description Search results grouped by entity type */
10713
+ 200: {
10714
+ headers: {
10715
+ [name: string]: unknown;
10716
+ };
10717
+ content: {
10718
+ "application/json": components["schemas"]["SearchResultDto"];
10719
+ };
9831
10720
  };
9832
10721
  };
9833
10722
  };