@routeflow/types 1.0.25 → 1.0.26

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
@@ -603,23 +603,6 @@ export interface paths {
603
603
  patch?: never;
604
604
  trace?: never;
605
605
  };
606
- "/api/carrier-partnerships/invite": {
607
- parameters: {
608
- query?: never;
609
- header?: never;
610
- path?: never;
611
- cookie?: never;
612
- };
613
- get?: never;
614
- put?: never;
615
- /** Invite a carrier to form a dispatch partnership */
616
- post: operations["CarrierPartnershipsController_invite"];
617
- delete?: never;
618
- options?: never;
619
- head?: never;
620
- patch?: never;
621
- trace?: never;
622
- };
623
606
  "/api/carrier-partnerships/{id}/accept": {
624
607
  parameters: {
625
608
  query?: never;
@@ -629,7 +612,7 @@ export interface paths {
629
612
  };
630
613
  get?: never;
631
614
  put?: never;
632
- /** Accept a partnership invitation (carrier side) */
615
+ /** Accept a partnership invitation (dispatch accepts carrier invite — per spec) */
633
616
  post: operations["CarrierPartnershipsController_accept"];
634
617
  delete?: never;
635
618
  options?: never;
@@ -4387,6 +4370,40 @@ export interface paths {
4387
4370
  patch: operations["InboundEmailController_updateTags"];
4388
4371
  trace?: never;
4389
4372
  };
4373
+ "/api/inbound-emails/{id}/archive": {
4374
+ parameters: {
4375
+ query?: never;
4376
+ header?: never;
4377
+ path?: never;
4378
+ cookie?: never;
4379
+ };
4380
+ get?: never;
4381
+ put?: never;
4382
+ /** Archive an inbound email */
4383
+ post: operations["InboundEmailController_archive"];
4384
+ delete?: never;
4385
+ options?: never;
4386
+ head?: never;
4387
+ patch?: never;
4388
+ trace?: never;
4389
+ };
4390
+ "/api/inbound-emails/{id}/reply": {
4391
+ parameters: {
4392
+ query?: never;
4393
+ header?: never;
4394
+ path?: never;
4395
+ cookie?: never;
4396
+ };
4397
+ get?: never;
4398
+ put?: never;
4399
+ /** Reply to an inbound email */
4400
+ post: operations["InboundEmailController_reply"];
4401
+ delete?: never;
4402
+ options?: never;
4403
+ head?: never;
4404
+ patch?: never;
4405
+ trace?: never;
4406
+ };
4390
4407
  "/api/webhooks/email/inbound": {
4391
4408
  parameters: {
4392
4409
  query?: never;
@@ -4892,6 +4909,23 @@ export interface paths {
4892
4909
  patch?: never;
4893
4910
  trace?: never;
4894
4911
  };
4912
+ "/api/reports/payouts": {
4913
+ parameters: {
4914
+ query?: never;
4915
+ header?: never;
4916
+ path?: never;
4917
+ cookie?: never;
4918
+ };
4919
+ /** Get compensation payout report (driver/dispatcher/manager) */
4920
+ get: operations["ReportsController_getPayoutReport"];
4921
+ put?: never;
4922
+ post?: never;
4923
+ delete?: never;
4924
+ options?: never;
4925
+ head?: never;
4926
+ patch?: never;
4927
+ trace?: never;
4928
+ };
4895
4929
  "/api/dispatch/carriers": {
4896
4930
  parameters: {
4897
4931
  query?: never;
@@ -4948,7 +4982,10 @@ export type webhooks = Record<string, never>;
4948
4982
  export interface components {
4949
4983
  schemas: {
4950
4984
  RegisterDto: {
4951
- /** @example user@example.com */
4985
+ /**
4986
+ * Format: email
4987
+ * @example user@example.com
4988
+ */
4952
4989
  email: string;
4953
4990
  /** @example Password1! */
4954
4991
  password: string;
@@ -5048,7 +5085,10 @@ export interface components {
5048
5085
  user: components["schemas"]["UserResponseDto"];
5049
5086
  };
5050
5087
  LoginDto: {
5051
- /** @example user@example.com */
5088
+ /**
5089
+ * Format: email
5090
+ * @example user@example.com
5091
+ */
5052
5092
  email: string;
5053
5093
  /** @example password123 */
5054
5094
  password: string;
@@ -5060,6 +5100,7 @@ export interface components {
5060
5100
  };
5061
5101
  VerifyEmailDto: {
5062
5102
  /**
5103
+ * Format: email
5063
5104
  * @description Email address
5064
5105
  * @example user@example.com
5065
5106
  */
@@ -5072,6 +5113,7 @@ export interface components {
5072
5113
  };
5073
5114
  ResendCodeDto: {
5074
5115
  /**
5116
+ * Format: email
5075
5117
  * @description Email address
5076
5118
  * @example user@example.com
5077
5119
  */
@@ -5125,6 +5167,7 @@ export interface components {
5125
5167
  };
5126
5168
  ForgotPasswordDto: {
5127
5169
  /**
5170
+ * Format: email
5128
5171
  * @description Email address to send password reset link
5129
5172
  * @example driver@example.com
5130
5173
  */
@@ -5216,7 +5259,10 @@ export interface components {
5216
5259
  message: string;
5217
5260
  };
5218
5261
  CreateUserDto: {
5219
- /** @example user@example.com */
5262
+ /**
5263
+ * Format: email
5264
+ * @example user@example.com
5265
+ */
5220
5266
  email?: string;
5221
5267
  /** @example password123 */
5222
5268
  password?: string;
@@ -5228,7 +5274,10 @@ export interface components {
5228
5274
  lastName?: string;
5229
5275
  /** @example +1234567890 */
5230
5276
  phone?: string;
5231
- /** @example personal@email.com */
5277
+ /**
5278
+ * Format: email
5279
+ * @example personal@email.com
5280
+ */
5232
5281
  personalEmail?: string;
5233
5282
  /** @example 1990-01-15 */
5234
5283
  birthday?: string;
@@ -5256,6 +5305,7 @@ export interface components {
5256
5305
  */
5257
5306
  commissionValue?: number;
5258
5307
  /**
5308
+ * Format: email
5259
5309
  * @description @logistio.pro email for company login
5260
5310
  * @example john.doe@logistio.pro
5261
5311
  */
@@ -5265,6 +5315,11 @@ export interface components {
5265
5315
  * @enum {string}
5266
5316
  */
5267
5317
  eldProvider?: "SAMSARA" | "GEOTAB" | "MOTIVE" | "MANUAL";
5318
+ /**
5319
+ * @description Target carrier ID when a dispatch user creates a driver on a partnered carrier's behalf. Required for dispatch users creating drivers.
5320
+ * @example cuid
5321
+ */
5322
+ carrierId?: string;
5268
5323
  };
5269
5324
  UserListResponseDto: {
5270
5325
  items: components["schemas"]["UserResponseDto"][];
@@ -5280,9 +5335,15 @@ export interface components {
5280
5335
  firstName?: string;
5281
5336
  /** @example Doe */
5282
5337
  lastName?: string;
5283
- /** @example user@example.com */
5338
+ /**
5339
+ * Format: email
5340
+ * @example user@example.com
5341
+ */
5284
5342
  email?: string;
5285
- /** @example personal@example.com */
5343
+ /**
5344
+ * Format: email
5345
+ * @example personal@example.com
5346
+ */
5286
5347
  personalEmail?: string;
5287
5348
  /** @example +1234567890 */
5288
5349
  phone?: string;
@@ -5297,6 +5358,16 @@ export interface components {
5297
5358
  birthday?: string;
5298
5359
  /** @example newpassword123 */
5299
5360
  password?: string;
5361
+ /**
5362
+ * @example PERCENTAGE_PER_LOAD
5363
+ * @enum {string}
5364
+ */
5365
+ compensationType?: "PERCENTAGE_PER_LOAD" | "PER_TRUCK" | "FIXED_PER_WEEK" | "FIXED_PER_LOAD";
5366
+ /**
5367
+ * @description Compensation value (percentage or fixed amount)
5368
+ * @example 10
5369
+ */
5370
+ compensationValue?: number;
5300
5371
  };
5301
5372
  LinkTelegramDto: {
5302
5373
  /** @example 123456789 */
@@ -5437,7 +5508,10 @@ export interface components {
5437
5508
  mcNumber?: string;
5438
5509
  /** @example 789012 */
5439
5510
  dotNumber?: string;
5440
- /** @example org@example.com */
5511
+ /**
5512
+ * Format: email
5513
+ * @example org@example.com
5514
+ */
5441
5515
  email?: string;
5442
5516
  /** @example +15551234567 */
5443
5517
  phone?: string;
@@ -5467,7 +5541,10 @@ export interface components {
5467
5541
  phoneCountryCode?: string;
5468
5542
  };
5469
5543
  InviteUserDto: {
5470
- /** @example user@example.com */
5544
+ /**
5545
+ * Format: email
5546
+ * @example user@example.com
5547
+ */
5471
5548
  email?: string;
5472
5549
  /**
5473
5550
  * @example DRIVER
@@ -5562,7 +5639,10 @@ export interface components {
5562
5639
  zipCode?: string;
5563
5640
  /** @example 555-123-4567 */
5564
5641
  phone?: string;
5565
- /** @example dispatch@acmetrucking.com */
5642
+ /**
5643
+ * Format: email
5644
+ * @example dispatch@acmetrucking.com
5645
+ */
5566
5646
  email?: string;
5567
5647
  /** @example 10 */
5568
5648
  fleetSize?: number;
@@ -5593,7 +5673,10 @@ export interface components {
5593
5673
  ExpressFactoringInterestDto: {
5594
5674
  /** @example OTR_CAPITAL */
5595
5675
  partner: string;
5596
- /** @example dispatch@acmetrucking.com */
5676
+ /**
5677
+ * Format: email
5678
+ * @example dispatch@acmetrucking.com
5679
+ */
5597
5680
  contactEmail?: string;
5598
5681
  /** @example 555-123-4567 */
5599
5682
  contactPhone?: string;
@@ -5725,6 +5808,11 @@ export interface components {
5725
5808
  * @example cuid
5726
5809
  */
5727
5810
  trailerId?: string;
5811
+ /**
5812
+ * @description Freight/cargo type for trailer compatibility
5813
+ * @example Refrigerated
5814
+ */
5815
+ freightType?: string;
5728
5816
  /**
5729
5817
  * @description Carrier subdivision ID
5730
5818
  * @example cuid
@@ -5956,12 +6044,12 @@ export interface components {
5956
6044
  * @description Truck assigned to this run
5957
6045
  * @example cuid
5958
6046
  */
5959
- truckId?: Record<string, never>;
6047
+ truckId?: string | null;
5960
6048
  /**
5961
6049
  * @description Trailer assigned to this run
5962
6050
  * @example cuid
5963
6051
  */
5964
- trailerId?: Record<string, never>;
6052
+ trailerId?: string | null;
5965
6053
  /**
5966
6054
  * @example STANDARD
5967
6055
  * @enum {string}
@@ -5975,6 +6063,11 @@ export interface components {
5975
6063
  totalDistance?: number;
5976
6064
  /** @example Broker Name */
5977
6065
  brokerName?: string;
6066
+ /**
6067
+ * @description Freight/cargo type for trailer compatibility
6068
+ * @example Refrigerated
6069
+ */
6070
+ freightType?: string;
5978
6071
  };
5979
6072
  AssignDriverDto: {
5980
6073
  /** @example clxxx... */
@@ -6195,7 +6288,10 @@ export interface components {
6195
6288
  UnifiedUploadDto: {
6196
6289
  /** @description Base64 encoded file (max 20MB, provide this OR fileUrl) */
6197
6290
  fileBase64?: string;
6198
- /** @description Vercel Blob URL to the file (provide this OR fileBase64) */
6291
+ /**
6292
+ * Format: uri
6293
+ * @description Vercel Blob URL to the file (provide this OR fileBase64)
6294
+ */
6199
6295
  fileUrl?: string;
6200
6296
  /** @description Original file name */
6201
6297
  fileName: string;
@@ -6232,39 +6328,39 @@ export interface components {
6232
6328
  };
6233
6329
  ExtractedAssetFieldDto: {
6234
6330
  /** @description Driver name */
6235
- name?: Record<string, never>;
6331
+ name?: string | null;
6236
6332
  /** @description Phone number */
6237
- phone?: Record<string, never>;
6333
+ phone?: string | null;
6238
6334
  /** @description Email address */
6239
- email?: Record<string, never>;
6335
+ email?: string | null;
6240
6336
  /** @description License number */
6241
- licenseNumber?: Record<string, never>;
6337
+ licenseNumber?: string | null;
6242
6338
  /** @description License expiry date */
6243
- licenseExpiry?: Record<string, never>;
6339
+ licenseExpiry?: string | null;
6244
6340
  /** @description License state */
6245
- licenseState?: Record<string, never>;
6341
+ licenseState?: string | null;
6246
6342
  /** @description Truck number/ID */
6247
- truckNumber?: Record<string, never>;
6343
+ truckNumber?: string | null;
6248
6344
  /** @description Vehicle Identification Number */
6249
- vin?: Record<string, never>;
6345
+ vin?: string | null;
6250
6346
  /** @description Vehicle make */
6251
- make?: Record<string, never>;
6347
+ make?: string | null;
6252
6348
  /** @description Vehicle model */
6253
- model?: Record<string, never>;
6349
+ model?: string | null;
6254
6350
  /** @description Vehicle year */
6255
- year?: Record<string, never>;
6351
+ year?: number | null;
6256
6352
  /** @description License plate number */
6257
- licensePlate?: Record<string, never>;
6353
+ licensePlate?: string | null;
6258
6354
  /** @description Plate state */
6259
- plateState?: Record<string, never>;
6355
+ plateState?: string | null;
6260
6356
  /** @description Trailer number/ID */
6261
- trailerNumber?: Record<string, never>;
6357
+ trailerNumber?: string | null;
6262
6358
  /** @description Trailer type */
6263
- trailerType?: Record<string, never>;
6359
+ trailerType?: string | null;
6264
6360
  /** @description Trailer length */
6265
- length?: Record<string, never>;
6361
+ length?: number | null;
6266
6362
  /** @description Weight capacity */
6267
- weightCapacity?: Record<string, never>;
6363
+ weightCapacity?: number | null;
6268
6364
  };
6269
6365
  ExtractedAssetResponseDto: {
6270
6366
  /** @description Unique identifier */
@@ -6288,17 +6384,17 @@ export interface components {
6288
6384
  /** @description Type of source document */
6289
6385
  sourceDocumentType: string;
6290
6386
  /** @description Original file name */
6291
- fileName?: Record<string, never>;
6387
+ fileName?: string | null;
6292
6388
  /** @description ID of potential duplicate asset */
6293
- potentialDuplicateId?: Record<string, never>;
6389
+ potentialDuplicateId?: string | null;
6294
6390
  /** @description Type of potential duplicate */
6295
- potentialDuplicateType?: Record<string, never>;
6391
+ potentialDuplicateType?: string | null;
6296
6392
  /** @description ID of reviewer */
6297
- reviewedById?: Record<string, never>;
6393
+ reviewedById?: string | null;
6298
6394
  /** @description Review timestamp */
6299
- reviewedAt?: Record<string, never>;
6395
+ reviewedAt?: string | null;
6300
6396
  /** @description Review notes */
6301
- reviewNotes?: Record<string, never>;
6397
+ reviewNotes?: string | null;
6302
6398
  /** @description Creation timestamp */
6303
6399
  createdAt: string;
6304
6400
  /** @description Last update timestamp */
@@ -6372,7 +6468,10 @@ export interface components {
6372
6468
  ExtractAssetsDto: {
6373
6469
  /** @description Base64 encoded file (provide this OR fileUrl) */
6374
6470
  fileBase64?: string;
6375
- /** @description Vercel Blob URL to the file (provide this OR fileBase64) */
6471
+ /**
6472
+ * Format: uri
6473
+ * @description Vercel Blob URL to the file (provide this OR fileBase64)
6474
+ */
6376
6475
  fileUrl?: string;
6377
6476
  /** @description Original file name */
6378
6477
  fileName: string;
@@ -6387,8 +6486,25 @@ export interface components {
6387
6486
  extractedAssets: components["schemas"]["ExtractedAssetResponseDto"][];
6388
6487
  /** @description Document type detected */
6389
6488
  documentType: string;
6390
- /** @description Extracted company data */
6391
- companyData?: Record<string, never>;
6489
+ companyData?: {
6490
+ companyName?: string;
6491
+ dbaName?: string;
6492
+ mcNumber?: string;
6493
+ dotNumber?: string;
6494
+ address?: string;
6495
+ city?: string;
6496
+ state?: string;
6497
+ zipCode?: string;
6498
+ phone?: string;
6499
+ email?: string;
6500
+ ownerFirstName?: string;
6501
+ ownerLastName?: string;
6502
+ einNumber?: string;
6503
+ insuranceProvider?: string;
6504
+ policyNumber?: string;
6505
+ effectiveDate?: string;
6506
+ expirationDate?: string;
6507
+ };
6392
6508
  };
6393
6509
  ExtractionResultResponseDto: {
6394
6510
  /** @description Whether extraction was successful */
@@ -6452,7 +6568,7 @@ export interface components {
6452
6568
  mimeType?: string;
6453
6569
  fileSize?: number;
6454
6570
  /** @enum {string} */
6455
- status: "PENDING" | "PROCESSED" | "FAILED" | "NEEDS_REVIEW";
6571
+ status: "PENDING" | "PROCESSED" | "SIGNED" | "FAILED" | "NEEDS_REVIEW";
6456
6572
  parsedData?: Record<string, never>;
6457
6573
  confidence?: number;
6458
6574
  errorMessage?: string;
@@ -6488,7 +6604,10 @@ export interface components {
6488
6604
  ParseRateConDto: {
6489
6605
  /** @description Base64 encoded PDF file (provide this OR fileUrl) */
6490
6606
  fileBase64?: string;
6491
- /** @description Vercel Blob URL to the file (provide this OR fileBase64) */
6607
+ /**
6608
+ * Format: uri
6609
+ * @description Vercel Blob URL to the file (provide this OR fileBase64)
6610
+ */
6492
6611
  fileUrl?: string;
6493
6612
  /**
6494
6613
  * @description MIME type of the file
@@ -6499,7 +6618,10 @@ export interface components {
6499
6618
  ParseBolDto: {
6500
6619
  /** @description Base64 encoded PDF file (provide this OR fileUrl) */
6501
6620
  fileBase64?: string;
6502
- /** @description Vercel Blob URL to the file (provide this OR fileBase64) */
6621
+ /**
6622
+ * Format: uri
6623
+ * @description Vercel Blob URL to the file (provide this OR fileBase64)
6624
+ */
6503
6625
  fileUrl?: string;
6504
6626
  /**
6505
6627
  * @description MIME type of the file
@@ -6708,7 +6830,10 @@ export interface components {
6708
6830
  runId: string;
6709
6831
  /** @example stop-id */
6710
6832
  stopId?: string;
6711
- /** @example customer@example.com */
6833
+ /**
6834
+ * Format: email
6835
+ * @example customer@example.com
6836
+ */
6712
6837
  customerEmail?: string;
6713
6838
  /** @example +1234567890 */
6714
6839
  customerPhone?: string;
@@ -6738,7 +6863,11 @@ export interface components {
6738
6863
  status: "DRAFT" | "QUEUED" | "DISPATCHED" | "ACCEPTED" | "AT_PICKUP" | "LOADED" | "IN_PROGRESS" | "IN_TRANSIT" | "AT_DELIVERY" | "DELIVERED" | "COMPLETED" | "CANCELLED" | "REJECTED" | "TONU" | "OFFERED";
6739
6864
  /** Format: date-time */
6740
6865
  estimatedArrival?: string;
6741
- currentStop?: Record<string, never>;
6866
+ currentStop?: {
6867
+ id: string;
6868
+ address: string;
6869
+ status: Record<string, never>;
6870
+ };
6742
6871
  stopsTotal: number;
6743
6872
  stopsCompleted: number;
6744
6873
  };
@@ -7355,6 +7484,12 @@ export interface components {
7355
7484
  runId?: string;
7356
7485
  stopId?: string;
7357
7486
  skipDuplicateCheck?: boolean;
7487
+ /** @description GPS latitude at capture time */
7488
+ captureLat?: number;
7489
+ /** @description GPS longitude at capture time */
7490
+ captureLng?: number;
7491
+ /** @description Client-side capture timestamp */
7492
+ capturedAt?: string;
7358
7493
  };
7359
7494
  UpdateDocumentDto: {
7360
7495
  name?: string;
@@ -7723,7 +7858,7 @@ export interface components {
7723
7858
  /** @enum {string} */
7724
7859
  role: "user" | "assistant" | "system";
7725
7860
  content: string;
7726
- toolCalls?: components["schemas"]["ToolCallDto"][];
7861
+ toolCalls?: components["schemas"]["ToolCallDto"][] | null;
7727
7862
  /** Format: date-time */
7728
7863
  createdAt: string;
7729
7864
  };
@@ -7736,7 +7871,10 @@ export interface components {
7736
7871
  id?: string;
7737
7872
  /** @example John Smith */
7738
7873
  name: string;
7739
- /** @example john@example.com */
7874
+ /**
7875
+ * Format: email
7876
+ * @example john@example.com
7877
+ */
7740
7878
  email?: string;
7741
7879
  /** @example +1-555-123-4567 */
7742
7880
  phone?: string;
@@ -7763,7 +7901,10 @@ export interface components {
7763
7901
  companyName: string;
7764
7902
  /** @example John Smith */
7765
7903
  contactName?: string;
7766
- /** @example john@abcfreight.com */
7904
+ /**
7905
+ * Format: email
7906
+ * @example john@abcfreight.com
7907
+ */
7767
7908
  email?: string;
7768
7909
  /** @example +1-555-123-4567 */
7769
7910
  phone?: string;
@@ -7835,7 +7976,10 @@ export interface components {
7835
7976
  companyName?: string;
7836
7977
  /** @example John Smith */
7837
7978
  contactName?: string;
7838
- /** @example john@abcfreight.com */
7979
+ /**
7980
+ * Format: email
7981
+ * @example john@abcfreight.com
7982
+ */
7839
7983
  email?: string;
7840
7984
  /** @example +1-555-123-4567 */
7841
7985
  phone?: string;
@@ -7905,7 +8049,7 @@ export interface components {
7905
8049
  };
7906
8050
  StatementLineItem: {
7907
8051
  description: string;
7908
- type: string;
8052
+ type: Record<string, never>;
7909
8053
  amount: number;
7910
8054
  runId?: string;
7911
8055
  loadNumber?: string;
@@ -8061,7 +8205,12 @@ export interface components {
8061
8205
  };
8062
8206
  CreateExpenseDto: {
8063
8207
  /** @enum {string} */
8064
- type: "FUEL" | "REPAIR" | "MAINTENANCE" | "TOLL" | "PARKING" | "SCALE" | "LUMPER" | "DETENTION" | "INSURANCE" | "OTHER";
8208
+ type: "FUEL" | "REPAIR" | "MAINTENANCE" | "TOLL" | "PARKING" | "SCALE" | "LUMPER" | "DETENTION" | "INSURANCE" | "PERMIT" | "FINE" | "OTHER";
8209
+ /**
8210
+ * @description Expense category: RUN, DRIVER, VEHICLE, CARRIER, or MIXED (auto-detected if not provided)
8211
+ * @enum {string}
8212
+ */
8213
+ category?: "RUN" | "DRIVER" | "VEHICLE" | "CARRIER" | "MIXED";
8065
8214
  /** @example 487.32 */
8066
8215
  amount: number;
8067
8216
  /** @example Fuel purchase at Houston */
@@ -8078,6 +8227,11 @@ export interface components {
8078
8227
  runId?: string;
8079
8228
  /** @description Stop ID for stop-specific fees (lumper, escort, etc.) */
8080
8229
  stopId?: string;
8230
+ /**
8231
+ * @description Target carrier ID when a dispatch user creates an expense on a partnered carrier's behalf. If omitted, the carrier is derived from the associated run (if any). Required for dispatch users creating expenses that are not linked to a run.
8232
+ * @example cuid
8233
+ */
8234
+ carrierId?: string;
8081
8235
  };
8082
8236
  ExpenseResponseDto: {
8083
8237
  id: string;
@@ -8135,7 +8289,12 @@ export interface components {
8135
8289
  };
8136
8290
  UpdateExpenseDto: {
8137
8291
  /** @enum {string} */
8138
- type?: "FUEL" | "REPAIR" | "MAINTENANCE" | "TOLL" | "PARKING" | "SCALE" | "LUMPER" | "DETENTION" | "INSURANCE" | "OTHER";
8292
+ type?: "FUEL" | "REPAIR" | "MAINTENANCE" | "TOLL" | "PARKING" | "SCALE" | "LUMPER" | "DETENTION" | "INSURANCE" | "PERMIT" | "FINE" | "OTHER";
8293
+ /**
8294
+ * @description Expense category: RUN, DRIVER, VEHICLE, CARRIER, or MIXED (auto-detected if not provided)
8295
+ * @enum {string}
8296
+ */
8297
+ category?: "RUN" | "DRIVER" | "VEHICLE" | "CARRIER" | "MIXED";
8139
8298
  /** @example 487.32 */
8140
8299
  amount?: number;
8141
8300
  /** @example Fuel purchase at Houston */
@@ -8152,6 +8311,11 @@ export interface components {
8152
8311
  runId?: string;
8153
8312
  /** @description Stop ID for stop-specific fees (lumper, escort, etc.) */
8154
8313
  stopId?: string;
8314
+ /**
8315
+ * @description Target carrier ID when a dispatch user creates an expense on a partnered carrier's behalf. If omitted, the carrier is derived from the associated run (if any). Required for dispatch users creating expenses that are not linked to a run.
8316
+ * @example cuid
8317
+ */
8318
+ carrierId?: string;
8155
8319
  };
8156
8320
  AssociateExpenseDto: {
8157
8321
  driverId?: string;
@@ -8233,6 +8397,7 @@ export interface components {
8233
8397
  };
8234
8398
  SendInvitationDto: {
8235
8399
  /**
8400
+ * Format: email
8236
8401
  * @description Email address to send invitation to
8237
8402
  * @example broker@example.com
8238
8403
  */
@@ -8280,13 +8445,13 @@ export interface components {
8280
8445
  };
8281
8446
  UpdateEmailTagsDto: {
8282
8447
  /** @description Driver ID to tag this email with */
8283
- taggedDriverId?: Record<string, never>;
8448
+ taggedDriverId?: string | null;
8284
8449
  /** @description Run ID to tag this email with */
8285
- taggedRunId?: Record<string, never>;
8450
+ taggedRunId?: string | null;
8286
8451
  };
8287
8452
  SendGridWebhookDto: {
8288
8453
  /** @description Raw email headers */
8289
- headers: string;
8454
+ headers?: string;
8290
8455
  /** @description DKIM verification result */
8291
8456
  dkim?: string;
8292
8457
  /**
@@ -8365,6 +8530,7 @@ export interface components {
8365
8530
  */
8366
8531
  signedByName?: string;
8367
8532
  /**
8533
+ * Format: email
8368
8534
  * @description Email of person signing
8369
8535
  * @example john@example.com
8370
8536
  */
@@ -8419,7 +8585,10 @@ export interface components {
8419
8585
  documents: components["schemas"]["SearchResultItemDto"][];
8420
8586
  };
8421
8587
  CreateInvitationDto: {
8422
- /** @example user@example.com */
8588
+ /**
8589
+ * Format: email
8590
+ * @example user@example.com
8591
+ */
8423
8592
  email: string;
8424
8593
  /**
8425
8594
  * @example DISPATCHER
@@ -8536,6 +8705,7 @@ export interface components {
8536
8705
  /** @example +1234567890 */
8537
8706
  phone?: string;
8538
8707
  /**
8708
+ * Format: email
8539
8709
  * @description Carrier contact email (used for partnership lookups)
8540
8710
  * @example dispatch@carrier.com
8541
8711
  */
@@ -8546,7 +8716,10 @@ export interface components {
8546
8716
  ownerLastName?: string;
8547
8717
  /** @example +1234567890 */
8548
8718
  ownerPhone?: string;
8549
- /** @example owner@abctrucking.com */
8719
+ /**
8720
+ * Format: email
8721
+ * @example owner@abctrucking.com
8722
+ */
8550
8723
  ownerEmail?: string;
8551
8724
  /** @example https://s3.amazonaws.com/... */
8552
8725
  authorityDoc?: string;
@@ -8601,6 +8774,7 @@ export interface components {
8601
8774
  /** @example +1234567890 */
8602
8775
  phone?: string;
8603
8776
  /**
8777
+ * Format: email
8604
8778
  * @description Carrier contact email (used for partnership lookups)
8605
8779
  * @example dispatch@carrier.com
8606
8780
  */
@@ -8611,7 +8785,10 @@ export interface components {
8611
8785
  ownerLastName?: string;
8612
8786
  /** @example +1234567890 */
8613
8787
  ownerPhone?: string;
8614
- /** @example owner@abctrucking.com */
8788
+ /**
8789
+ * Format: email
8790
+ * @example owner@abctrucking.com
8791
+ */
8615
8792
  ownerEmail?: string;
8616
8793
  /** @example https://s3.amazonaws.com/... */
8617
8794
  authorityDoc?: string;
@@ -9061,7 +9238,12 @@ export interface components {
9061
9238
  /** @description Array of notification preferences to update */
9062
9239
  preferences: components["schemas"]["UpdateNotificationPreferenceDto"][];
9063
9240
  };
9064
- CreateApiKeyDto: Record<string, never>;
9241
+ CreateApiKeyDto: {
9242
+ name: string;
9243
+ description?: string;
9244
+ scopes?: string[];
9245
+ expiresAt?: string;
9246
+ };
9065
9247
  ApiKeyCreatedResponseDto: {
9066
9248
  id: string;
9067
9249
  name: string;
@@ -9102,7 +9284,12 @@ export interface components {
9102
9284
  /** Format: date-time */
9103
9285
  updatedAt: string;
9104
9286
  };
9105
- UpdateApiKeyDto: Record<string, never>;
9287
+ UpdateApiKeyDto: {
9288
+ name?: string;
9289
+ description?: string;
9290
+ scopes?: string[];
9291
+ expiresAt?: string;
9292
+ };
9106
9293
  OverviewReportDto: {
9107
9294
  totalRuns: number;
9108
9295
  completedRuns: number;
@@ -9154,22 +9341,22 @@ export interface components {
9154
9341
  carrierId: string;
9155
9342
  carrierName: string;
9156
9343
  mcNumber: string;
9157
- dotNumber?: Record<string, never>;
9158
- email?: Record<string, never>;
9159
- phone?: Record<string, never>;
9344
+ dotNumber?: string | null;
9345
+ email?: string | null;
9346
+ phone?: string | null;
9160
9347
  accountStatus: string;
9161
9348
  partnershipId: string;
9162
- permissions?: Record<string, never>;
9163
- accessScope?: Record<string, never>;
9349
+ permissions?: Record<string, never> | null;
9350
+ accessScope?: string | null;
9164
9351
  };
9165
9352
  DispatchContextResponseDto: {
9166
9353
  carrierId: string;
9167
9354
  carrierName: string;
9168
9355
  mcNumber: string;
9169
- dotNumber?: Record<string, never>;
9356
+ dotNumber?: string | null;
9170
9357
  partnershipId: string;
9171
- permissions?: Record<string, never>;
9172
- accessScope?: Record<string, never>;
9358
+ permissions?: Record<string, never> | null;
9359
+ accessScope?: string | null;
9173
9360
  };
9174
9361
  };
9175
9362
  responses: never;
@@ -9511,6 +9698,12 @@ export interface operations {
9511
9698
  "application/json": components["schemas"]["LinkingCodeResponseDto"];
9512
9699
  };
9513
9700
  };
9701
+ 201: {
9702
+ headers: {
9703
+ [name: string]: unknown;
9704
+ };
9705
+ content?: never;
9706
+ };
9514
9707
  };
9515
9708
  };
9516
9709
  AuthController_changePassword: {
@@ -10026,6 +10219,12 @@ export interface operations {
10026
10219
  "application/json": components["schemas"]["MessageResponseDto"];
10027
10220
  };
10028
10221
  };
10222
+ 201: {
10223
+ headers: {
10224
+ [name: string]: unknown;
10225
+ };
10226
+ content?: never;
10227
+ };
10029
10228
  };
10030
10229
  };
10031
10230
  UsersController_unlinkTelegram: {
@@ -10048,6 +10247,12 @@ export interface operations {
10048
10247
  "application/json": components["schemas"]["MessageResponseDto"];
10049
10248
  };
10050
10249
  };
10250
+ 201: {
10251
+ headers: {
10252
+ [name: string]: unknown;
10253
+ };
10254
+ content?: never;
10255
+ };
10051
10256
  };
10052
10257
  };
10053
10258
  UsersController_deactivate: {
@@ -10136,24 +10341,11 @@ export interface operations {
10136
10341
  "application/json": components["schemas"]["DriverLinkingCodeResponseDto"];
10137
10342
  };
10138
10343
  };
10139
- };
10140
- };
10141
- CarrierPartnershipsController_invite: {
10142
- parameters: {
10143
- query?: never;
10144
- header?: never;
10145
- path?: never;
10146
- cookie?: never;
10147
- };
10148
- requestBody?: never;
10149
- responses: {
10150
10344
  201: {
10151
10345
  headers: {
10152
10346
  [name: string]: unknown;
10153
10347
  };
10154
- content: {
10155
- "application/json": components["schemas"]["PartnershipResponseDto"];
10156
- };
10348
+ content?: never;
10157
10349
  };
10158
10350
  };
10159
10351
  };
@@ -10176,6 +10368,14 @@ export interface operations {
10176
10368
  "application/json": components["schemas"]["PartnershipResponseDto"];
10177
10369
  };
10178
10370
  };
10371
+ 201: {
10372
+ headers: {
10373
+ [name: string]: unknown;
10374
+ };
10375
+ content: {
10376
+ "application/json": Record<string, never>;
10377
+ };
10378
+ };
10179
10379
  };
10180
10380
  };
10181
10381
  CarrierPartnershipsController_findAll: {
@@ -10239,6 +10439,12 @@ export interface operations {
10239
10439
  "application/json": components["schemas"]["PartnershipResponseDto"];
10240
10440
  };
10241
10441
  };
10442
+ 201: {
10443
+ headers: {
10444
+ [name: string]: unknown;
10445
+ };
10446
+ content?: never;
10447
+ };
10242
10448
  };
10243
10449
  };
10244
10450
  CarrierPartnershipsController_terminate: {
@@ -10260,6 +10466,12 @@ export interface operations {
10260
10466
  "application/json": components["schemas"]["PartnershipResponseDto"];
10261
10467
  };
10262
10468
  };
10469
+ 201: {
10470
+ headers: {
10471
+ [name: string]: unknown;
10472
+ };
10473
+ content?: never;
10474
+ };
10263
10475
  };
10264
10476
  };
10265
10477
  CarrierPartnershipsController_allocate: {
@@ -10453,6 +10665,12 @@ export interface operations {
10453
10665
  "application/json": components["schemas"]["FmcsaCheckResponseDto"];
10454
10666
  };
10455
10667
  };
10668
+ 201: {
10669
+ headers: {
10670
+ [name: string]: unknown;
10671
+ };
10672
+ content?: never;
10673
+ };
10456
10674
  /** @description Inactive carrier or missing DOT number */
10457
10675
  400: {
10458
10676
  headers: {
@@ -10483,6 +10701,12 @@ export interface operations {
10483
10701
  "application/json": components["schemas"]["OrganizationResponseDto"];
10484
10702
  };
10485
10703
  };
10704
+ 201: {
10705
+ headers: {
10706
+ [name: string]: unknown;
10707
+ };
10708
+ content?: never;
10709
+ };
10486
10710
  };
10487
10711
  };
10488
10712
  VerificationController_getStatus: {
@@ -10527,6 +10751,12 @@ export interface operations {
10527
10751
  "application/json": components["schemas"]["OrganizationResponseDto"];
10528
10752
  };
10529
10753
  };
10754
+ 201: {
10755
+ headers: {
10756
+ [name: string]: unknown;
10757
+ };
10758
+ content?: never;
10759
+ };
10530
10760
  };
10531
10761
  };
10532
10762
  OrgsController_findAll: {
@@ -10852,6 +11082,12 @@ export interface operations {
10852
11082
  "application/json": components["schemas"]["SuccessResponseDto"];
10853
11083
  };
10854
11084
  };
11085
+ 201: {
11086
+ headers: {
11087
+ [name: string]: unknown;
11088
+ };
11089
+ content?: never;
11090
+ };
10855
11091
  };
10856
11092
  };
10857
11093
  OrgsController_completeOnboarding: {
@@ -10876,6 +11112,12 @@ export interface operations {
10876
11112
  "application/json": components["schemas"]["CompleteOnboardingResponseDto"];
10877
11113
  };
10878
11114
  };
11115
+ 201: {
11116
+ headers: {
11117
+ [name: string]: unknown;
11118
+ };
11119
+ content?: never;
11120
+ };
10879
11121
  };
10880
11122
  };
10881
11123
  OrgsController_setDemoStatus: {
@@ -10896,6 +11138,12 @@ export interface operations {
10896
11138
  "application/json": components["schemas"]["SetDemoStatusResponseDto"];
10897
11139
  };
10898
11140
  };
11141
+ 201: {
11142
+ headers: {
11143
+ [name: string]: unknown;
11144
+ };
11145
+ content?: never;
11146
+ };
10899
11147
  };
10900
11148
  };
10901
11149
  OrgsController_clearDemoData: {
@@ -10916,6 +11164,12 @@ export interface operations {
10916
11164
  "application/json": components["schemas"]["ClearDemoDataResponseDto"];
10917
11165
  };
10918
11166
  };
11167
+ 201: {
11168
+ headers: {
11169
+ [name: string]: unknown;
11170
+ };
11171
+ content?: never;
11172
+ };
10919
11173
  };
10920
11174
  };
10921
11175
  OrgsController_getFactoringPartners: {
@@ -10969,6 +11223,7 @@ export interface operations {
10969
11223
  status?: string;
10970
11224
  driverId?: string;
10971
11225
  customerId?: string;
11226
+ carrierId: string;
10972
11227
  };
10973
11228
  header?: never;
10974
11229
  path?: never;
@@ -11120,6 +11375,7 @@ export interface operations {
11120
11375
  startDate: string;
11121
11376
  endDate: string;
11122
11377
  driverId?: string;
11378
+ dispatcherId?: string;
11123
11379
  };
11124
11380
  header?: never;
11125
11381
  path?: never;
@@ -11272,6 +11528,12 @@ export interface operations {
11272
11528
  "application/json": components["schemas"]["RunResponseDto"];
11273
11529
  };
11274
11530
  };
11531
+ 201: {
11532
+ headers: {
11533
+ [name: string]: unknown;
11534
+ };
11535
+ content?: never;
11536
+ };
11275
11537
  };
11276
11538
  };
11277
11539
  RunsController_unassignDriver: {
@@ -11294,11 +11556,17 @@ export interface operations {
11294
11556
  "application/json": components["schemas"]["RunResponseDto"];
11295
11557
  };
11296
11558
  };
11297
- };
11298
- };
11299
- RunsController_acceptRun: {
11300
- parameters: {
11301
- query?: never;
11559
+ 201: {
11560
+ headers: {
11561
+ [name: string]: unknown;
11562
+ };
11563
+ content?: never;
11564
+ };
11565
+ };
11566
+ };
11567
+ RunsController_acceptRun: {
11568
+ parameters: {
11569
+ query?: never;
11302
11570
  header?: never;
11303
11571
  path: {
11304
11572
  id: string;
@@ -11316,6 +11584,14 @@ export interface operations {
11316
11584
  "application/json": components["schemas"]["RunResponseDto"];
11317
11585
  };
11318
11586
  };
11587
+ 201: {
11588
+ headers: {
11589
+ [name: string]: unknown;
11590
+ };
11591
+ content: {
11592
+ "application/json": Record<string, never>;
11593
+ };
11594
+ };
11319
11595
  };
11320
11596
  };
11321
11597
  RunsController_rejectRun: {
@@ -11338,6 +11614,14 @@ export interface operations {
11338
11614
  "application/json": components["schemas"]["RunResponseDto"];
11339
11615
  };
11340
11616
  };
11617
+ 201: {
11618
+ headers: {
11619
+ [name: string]: unknown;
11620
+ };
11621
+ content: {
11622
+ "application/json": Record<string, never>;
11623
+ };
11624
+ };
11341
11625
  };
11342
11626
  };
11343
11627
  RunsController_startRun: {
@@ -11456,6 +11740,14 @@ export interface operations {
11456
11740
  "application/json": components["schemas"]["RunResponseDto"];
11457
11741
  };
11458
11742
  };
11743
+ 201: {
11744
+ headers: {
11745
+ [name: string]: unknown;
11746
+ };
11747
+ content: {
11748
+ "application/json": Record<string, never>;
11749
+ };
11750
+ };
11459
11751
  };
11460
11752
  };
11461
11753
  RunsController_addStop: {
@@ -11585,6 +11877,14 @@ export interface operations {
11585
11877
  "application/json": components["schemas"]["StopResponseDto"];
11586
11878
  };
11587
11879
  };
11880
+ 201: {
11881
+ headers: {
11882
+ [name: string]: unknown;
11883
+ };
11884
+ content: {
11885
+ "application/json": Record<string, never>;
11886
+ };
11887
+ };
11588
11888
  };
11589
11889
  };
11590
11890
  RunsController_uploadSignature: {
@@ -11639,6 +11939,12 @@ export interface operations {
11639
11939
  "application/json": components["schemas"]["StopResponseDto"];
11640
11940
  };
11641
11941
  };
11942
+ 201: {
11943
+ headers: {
11944
+ [name: string]: unknown;
11945
+ };
11946
+ content?: never;
11947
+ };
11642
11948
  };
11643
11949
  };
11644
11950
  RunsController_geocodeStops: {
@@ -11661,6 +11967,12 @@ export interface operations {
11661
11967
  "application/json": components["schemas"]["RunResponseDto"];
11662
11968
  };
11663
11969
  };
11970
+ 201: {
11971
+ headers: {
11972
+ [name: string]: unknown;
11973
+ };
11974
+ content?: never;
11975
+ };
11664
11976
  };
11665
11977
  };
11666
11978
  RunsController_queueLoad: {
@@ -11687,6 +11999,14 @@ export interface operations {
11687
11999
  "application/json": components["schemas"]["RunResponseDto"];
11688
12000
  };
11689
12001
  };
12002
+ 201: {
12003
+ headers: {
12004
+ [name: string]: unknown;
12005
+ };
12006
+ content: {
12007
+ "application/json": Record<string, never>;
12008
+ };
12009
+ };
11690
12010
  };
11691
12011
  };
11692
12012
  RunsController_dispatchLoad: {
@@ -11713,6 +12033,12 @@ export interface operations {
11713
12033
  "application/json": components["schemas"]["RunResponseDto"];
11714
12034
  };
11715
12035
  };
12036
+ 201: {
12037
+ headers: {
12038
+ [name: string]: unknown;
12039
+ };
12040
+ content?: never;
12041
+ };
11716
12042
  };
11717
12043
  };
11718
12044
  RunsController_completeAndUnlockNext: {
@@ -11735,6 +12061,14 @@ export interface operations {
11735
12061
  "application/json": components["schemas"]["RunResponseDto"];
11736
12062
  };
11737
12063
  };
12064
+ 201: {
12065
+ headers: {
12066
+ [name: string]: unknown;
12067
+ };
12068
+ content: {
12069
+ "application/json": Record<string, never>;
12070
+ };
12071
+ };
11738
12072
  };
11739
12073
  };
11740
12074
  RunsController_unlockLoad: {
@@ -11757,6 +12091,14 @@ export interface operations {
11757
12091
  "application/json": components["schemas"]["RunResponseDto"];
11758
12092
  };
11759
12093
  };
12094
+ 201: {
12095
+ headers: {
12096
+ [name: string]: unknown;
12097
+ };
12098
+ content: {
12099
+ "application/json": Record<string, never>;
12100
+ };
12101
+ };
11760
12102
  };
11761
12103
  };
11762
12104
  RunsController_getTrackingLink: {
@@ -11917,6 +12259,12 @@ export interface operations {
11917
12259
  "application/json": components["schemas"]["MessageResponseDto"];
11918
12260
  };
11919
12261
  };
12262
+ 201: {
12263
+ headers: {
12264
+ [name: string]: unknown;
12265
+ };
12266
+ content?: never;
12267
+ };
11920
12268
  };
11921
12269
  };
11922
12270
  DocumentsController_getUploadUrl: {
@@ -11941,6 +12289,12 @@ export interface operations {
11941
12289
  "application/json": components["schemas"]["UploadUrlResponseDto"];
11942
12290
  };
11943
12291
  };
12292
+ 201: {
12293
+ headers: {
12294
+ [name: string]: unknown;
12295
+ };
12296
+ content?: never;
12297
+ };
11944
12298
  };
11945
12299
  };
11946
12300
  DocumentsController_uploadFile: {
@@ -11999,6 +12353,7 @@ export interface operations {
11999
12353
  type: string;
12000
12354
  page: number;
12001
12355
  limit: number;
12356
+ carrierId: string;
12002
12357
  };
12003
12358
  header?: never;
12004
12359
  path?: never;
@@ -12424,6 +12779,12 @@ export interface operations {
12424
12779
  "application/json": components["schemas"]["ParsedDocumentResponseDto"];
12425
12780
  };
12426
12781
  };
12782
+ 201: {
12783
+ headers: {
12784
+ [name: string]: unknown;
12785
+ };
12786
+ content?: never;
12787
+ };
12427
12788
  };
12428
12789
  };
12429
12790
  CompanyDocumentsController_uploadDocument: {
@@ -12487,6 +12848,12 @@ export interface operations {
12487
12848
  "application/json": components["schemas"]["CompanyDocumentResponseDto"];
12488
12849
  };
12489
12850
  };
12851
+ 201: {
12852
+ headers: {
12853
+ [name: string]: unknown;
12854
+ };
12855
+ content?: never;
12856
+ };
12490
12857
  };
12491
12858
  };
12492
12859
  CompanyDocumentsController_linkByUrl: {
@@ -12511,6 +12878,12 @@ export interface operations {
12511
12878
  "application/json": components["schemas"]["CompanyDocumentResponseDto"];
12512
12879
  };
12513
12880
  };
12881
+ 201: {
12882
+ headers: {
12883
+ [name: string]: unknown;
12884
+ };
12885
+ content?: never;
12886
+ };
12514
12887
  };
12515
12888
  };
12516
12889
  CompanyDocumentsController_findAll: {
@@ -12804,6 +13177,14 @@ export interface operations {
12804
13177
  "application/json": components["schemas"]["HosResponseDto"];
12805
13178
  };
12806
13179
  };
13180
+ 201: {
13181
+ headers: {
13182
+ [name: string]: unknown;
13183
+ };
13184
+ content: {
13185
+ "application/json": Record<string, never>;
13186
+ };
13187
+ };
12807
13188
  /** @description Driver not found */
12808
13189
  404: {
12809
13190
  headers: {
@@ -12837,6 +13218,12 @@ export interface operations {
12837
13218
  "application/json": components["schemas"]["MessageResponseDto"];
12838
13219
  };
12839
13220
  };
13221
+ 201: {
13222
+ headers: {
13223
+ [name: string]: unknown;
13224
+ };
13225
+ content?: never;
13226
+ };
12840
13227
  /** @description Driver not found */
12841
13228
  404: {
12842
13229
  headers: {
@@ -12943,6 +13330,7 @@ export interface operations {
12943
13330
  limit: number;
12944
13331
  status: string;
12945
13332
  search: string;
13333
+ carrierId: string;
12946
13334
  };
12947
13335
  header?: never;
12948
13336
  path?: never;
@@ -13079,6 +13467,14 @@ export interface operations {
13079
13467
  "application/json": components["schemas"]["TruckResponseDto"];
13080
13468
  };
13081
13469
  };
13470
+ 201: {
13471
+ headers: {
13472
+ [name: string]: unknown;
13473
+ };
13474
+ content: {
13475
+ "application/json": Record<string, never>;
13476
+ };
13477
+ };
13082
13478
  };
13083
13479
  };
13084
13480
  TrucksController_unassign: {
@@ -13101,6 +13497,14 @@ export interface operations {
13101
13497
  "application/json": components["schemas"]["TruckResponseDto"];
13102
13498
  };
13103
13499
  };
13500
+ 201: {
13501
+ headers: {
13502
+ [name: string]: unknown;
13503
+ };
13504
+ content: {
13505
+ "application/json": Record<string, never>;
13506
+ };
13507
+ };
13104
13508
  };
13105
13509
  };
13106
13510
  TrailersController_findAll: {
@@ -13111,6 +13515,7 @@ export interface operations {
13111
13515
  status: string;
13112
13516
  type: string;
13113
13517
  search: string;
13518
+ carrierId: string;
13114
13519
  };
13115
13520
  header?: never;
13116
13521
  path?: never;
@@ -13247,6 +13652,14 @@ export interface operations {
13247
13652
  "application/json": components["schemas"]["TrailerResponseDto"];
13248
13653
  };
13249
13654
  };
13655
+ 201: {
13656
+ headers: {
13657
+ [name: string]: unknown;
13658
+ };
13659
+ content: {
13660
+ "application/json": Record<string, never>;
13661
+ };
13662
+ };
13250
13663
  };
13251
13664
  };
13252
13665
  TrailersController_unassign: {
@@ -13269,6 +13682,14 @@ export interface operations {
13269
13682
  "application/json": components["schemas"]["TrailerResponseDto"];
13270
13683
  };
13271
13684
  };
13685
+ 201: {
13686
+ headers: {
13687
+ [name: string]: unknown;
13688
+ };
13689
+ content: {
13690
+ "application/json": Record<string, never>;
13691
+ };
13692
+ };
13272
13693
  };
13273
13694
  };
13274
13695
  TelegramController_getCurrentRun: {
@@ -13360,6 +13781,12 @@ export interface operations {
13360
13781
  "application/json": components["schemas"]["StopResponseDto"];
13361
13782
  };
13362
13783
  };
13784
+ 201: {
13785
+ headers: {
13786
+ [name: string]: unknown;
13787
+ };
13788
+ content?: never;
13789
+ };
13363
13790
  };
13364
13791
  };
13365
13792
  TelegramController_getRunCharges: {
@@ -13420,6 +13847,12 @@ export interface operations {
13420
13847
  "application/json": components["schemas"]["TelegramMessageResponseDto"];
13421
13848
  };
13422
13849
  };
13850
+ 201: {
13851
+ headers: {
13852
+ [name: string]: unknown;
13853
+ };
13854
+ content?: never;
13855
+ };
13423
13856
  };
13424
13857
  };
13425
13858
  TelegramController_acceptRun: {
@@ -13441,6 +13874,12 @@ export interface operations {
13441
13874
  "application/json": components["schemas"]["TelegramRunActionResponseDto"];
13442
13875
  };
13443
13876
  };
13877
+ 201: {
13878
+ headers: {
13879
+ [name: string]: unknown;
13880
+ };
13881
+ content?: never;
13882
+ };
13444
13883
  };
13445
13884
  };
13446
13885
  TelegramController_startRun: {
@@ -13462,6 +13901,12 @@ export interface operations {
13462
13901
  "application/json": components["schemas"]["TelegramRunActionResponseDto"];
13463
13902
  };
13464
13903
  };
13904
+ 201: {
13905
+ headers: {
13906
+ [name: string]: unknown;
13907
+ };
13908
+ content?: never;
13909
+ };
13465
13910
  };
13466
13911
  };
13467
13912
  TelegramController_completeRun: {
@@ -13483,6 +13928,12 @@ export interface operations {
13483
13928
  "application/json": components["schemas"]["TelegramRunActionResponseDto"];
13484
13929
  };
13485
13930
  };
13931
+ 201: {
13932
+ headers: {
13933
+ [name: string]: unknown;
13934
+ };
13935
+ content?: never;
13936
+ };
13486
13937
  };
13487
13938
  };
13488
13939
  TelegramController_reportException: {
@@ -13508,6 +13959,12 @@ export interface operations {
13508
13959
  "application/json": components["schemas"]["TelegramExceptionResponseDto"];
13509
13960
  };
13510
13961
  };
13962
+ 201: {
13963
+ headers: {
13964
+ [name: string]: unknown;
13965
+ };
13966
+ content?: never;
13967
+ };
13511
13968
  };
13512
13969
  };
13513
13970
  TelegramController_createExpense: {
@@ -13554,6 +14011,12 @@ export interface operations {
13554
14011
  "application/json": components["schemas"]["TelegramMessageResponseDto"];
13555
14012
  };
13556
14013
  };
14014
+ 201: {
14015
+ headers: {
14016
+ [name: string]: unknown;
14017
+ };
14018
+ content?: never;
14019
+ };
13557
14020
  };
13558
14021
  };
13559
14022
  TelegramController_getDriverStatus: {
@@ -13595,6 +14058,12 @@ export interface operations {
13595
14058
  "application/json": components["schemas"]["TelegramMessageResponseDto"];
13596
14059
  };
13597
14060
  };
14061
+ 201: {
14062
+ headers: {
14063
+ [name: string]: unknown;
14064
+ };
14065
+ content?: never;
14066
+ };
13598
14067
  };
13599
14068
  };
13600
14069
  TelegramController_getHosDetail: {
@@ -13864,6 +14333,12 @@ export interface operations {
13864
14333
  "application/json": components["schemas"]["TelegramMessageResponseDto"];
13865
14334
  };
13866
14335
  };
14336
+ 201: {
14337
+ headers: {
14338
+ [name: string]: unknown;
14339
+ };
14340
+ content?: never;
14341
+ };
13867
14342
  };
13868
14343
  };
13869
14344
  TelegramController_sendDriverInvite: {
@@ -13887,6 +14362,14 @@ export interface operations {
13887
14362
  "application/json": components["schemas"]["TelegramInviteLinkResponseDto"];
13888
14363
  };
13889
14364
  };
14365
+ 201: {
14366
+ headers: {
14367
+ [name: string]: unknown;
14368
+ };
14369
+ content: {
14370
+ "application/json": Record<string, never>;
14371
+ };
14372
+ };
13890
14373
  };
13891
14374
  };
13892
14375
  TelegramController_getNotifications: {
@@ -13945,6 +14428,12 @@ export interface operations {
13945
14428
  "application/json": components["schemas"]["TelegramMessageResponseDto"];
13946
14429
  };
13947
14430
  };
14431
+ 201: {
14432
+ headers: {
14433
+ [name: string]: unknown;
14434
+ };
14435
+ content?: never;
14436
+ };
13948
14437
  };
13949
14438
  };
13950
14439
  TelegramController_getBotInfo: {
@@ -14136,6 +14625,12 @@ export interface operations {
14136
14625
  "application/json": components["schemas"]["MessageResponseDto"];
14137
14626
  };
14138
14627
  };
14628
+ 201: {
14629
+ headers: {
14630
+ [name: string]: unknown;
14631
+ };
14632
+ content?: never;
14633
+ };
14139
14634
  };
14140
14635
  };
14141
14636
  DriversController_updateStopStatus: {
@@ -14162,6 +14657,14 @@ export interface operations {
14162
14657
  "application/json": components["schemas"]["StopResponseDto"];
14163
14658
  };
14164
14659
  };
14660
+ 201: {
14661
+ headers: {
14662
+ [name: string]: unknown;
14663
+ };
14664
+ content: {
14665
+ "application/json": Record<string, never>;
14666
+ };
14667
+ };
14165
14668
  };
14166
14669
  };
14167
14670
  DriversController_revertStopStatus: {
@@ -14188,6 +14691,12 @@ export interface operations {
14188
14691
  "application/json": components["schemas"]["StopResponseDto"];
14189
14692
  };
14190
14693
  };
14694
+ 201: {
14695
+ headers: {
14696
+ [name: string]: unknown;
14697
+ };
14698
+ content?: never;
14699
+ };
14191
14700
  };
14192
14701
  };
14193
14702
  DriversController_uploadDocument: {
@@ -14280,6 +14789,12 @@ export interface operations {
14280
14789
  "application/json": components["schemas"]["UserSignatureResponseDto"];
14281
14790
  };
14282
14791
  };
14792
+ 201: {
14793
+ headers: {
14794
+ [name: string]: unknown;
14795
+ };
14796
+ content?: never;
14797
+ };
14283
14798
  };
14284
14799
  };
14285
14800
  DriversController_checkSignatureExists: {
@@ -14402,12 +14917,19 @@ export interface operations {
14402
14917
  "application/json": components["schemas"]["SuccessResponseDto"];
14403
14918
  };
14404
14919
  };
14920
+ 201: {
14921
+ headers: {
14922
+ [name: string]: unknown;
14923
+ };
14924
+ content?: never;
14925
+ };
14405
14926
  };
14406
14927
  };
14407
14928
  DriversAdminController_listDrivers: {
14408
14929
  parameters: {
14409
14930
  query: {
14410
14931
  onlineOnly: boolean;
14932
+ carrierId: string;
14411
14933
  };
14412
14934
  header?: never;
14413
14935
  path?: never;
@@ -14524,6 +15046,12 @@ export interface operations {
14524
15046
  "application/json": components["schemas"]["DriverResponseDto"];
14525
15047
  };
14526
15048
  };
15049
+ 201: {
15050
+ headers: {
15051
+ [name: string]: unknown;
15052
+ };
15053
+ content?: never;
15054
+ };
14527
15055
  };
14528
15056
  };
14529
15057
  DriversAdminController_getDispatcherHistory: {
@@ -14572,6 +15100,12 @@ export interface operations {
14572
15100
  "application/json": components["schemas"]["DriverResponseDto"];
14573
15101
  };
14574
15102
  };
15103
+ 201: {
15104
+ headers: {
15105
+ [name: string]: unknown;
15106
+ };
15107
+ content?: never;
15108
+ };
14575
15109
  };
14576
15110
  };
14577
15111
  DriversAdminController_unlinkTeamDriver: {
@@ -14616,6 +15150,12 @@ export interface operations {
14616
15150
  "application/json": components["schemas"]["DriverResponseDto"];
14617
15151
  };
14618
15152
  };
15153
+ 201: {
15154
+ headers: {
15155
+ [name: string]: unknown;
15156
+ };
15157
+ content?: never;
15158
+ };
14619
15159
  };
14620
15160
  };
14621
15161
  DriversAdminController_unlinkUser: {
@@ -15069,6 +15609,12 @@ export interface operations {
15069
15609
  "application/json": components["schemas"]["SuccessResponseDto"];
15070
15610
  };
15071
15611
  };
15612
+ 201: {
15613
+ headers: {
15614
+ [name: string]: unknown;
15615
+ };
15616
+ content?: never;
15617
+ };
15072
15618
  };
15073
15619
  };
15074
15620
  StatementsController_findAll: {
@@ -15318,6 +15864,14 @@ export interface operations {
15318
15864
  "application/json": components["schemas"]["StatementResponseDto"];
15319
15865
  };
15320
15866
  };
15867
+ 201: {
15868
+ headers: {
15869
+ [name: string]: unknown;
15870
+ };
15871
+ content: {
15872
+ "application/json": Record<string, never>;
15873
+ };
15874
+ };
15321
15875
  };
15322
15876
  };
15323
15877
  StatementsController_markPaid: {
@@ -15340,6 +15894,14 @@ export interface operations {
15340
15894
  "application/json": components["schemas"]["StatementResponseDto"];
15341
15895
  };
15342
15896
  };
15897
+ 201: {
15898
+ headers: {
15899
+ [name: string]: unknown;
15900
+ };
15901
+ content: {
15902
+ "application/json": Record<string, never>;
15903
+ };
15904
+ };
15343
15905
  };
15344
15906
  };
15345
15907
  ReferralsController_findAll: {
@@ -15565,6 +16127,12 @@ export interface operations {
15565
16127
  "application/json": components["schemas"]["UserSignatureResponseDto"];
15566
16128
  };
15567
16129
  };
16130
+ 201: {
16131
+ headers: {
16132
+ [name: string]: unknown;
16133
+ };
16134
+ content?: never;
16135
+ };
15568
16136
  };
15569
16137
  };
15570
16138
  SignaturesController_deleteSignature: {
@@ -15606,7 +16174,7 @@ export interface operations {
15606
16174
  ExpensesController_findAll: {
15607
16175
  parameters: {
15608
16176
  query?: {
15609
- type?: "FUEL" | "REPAIR" | "MAINTENANCE" | "TOLL" | "PARKING" | "SCALE" | "LUMPER" | "DETENTION" | "INSURANCE" | "OTHER";
16177
+ type?: "FUEL" | "REPAIR" | "MAINTENANCE" | "TOLL" | "PARKING" | "SCALE" | "LUMPER" | "DETENTION" | "INSURANCE" | "PERMIT" | "FINE" | "OTHER";
15610
16178
  status?: "PENDING" | "APPROVED" | "REJECTED" | "PAID";
15611
16179
  driverId?: string;
15612
16180
  truckId?: string;
@@ -15614,6 +16182,8 @@ export interface operations {
15614
16182
  fromDate?: string;
15615
16183
  toDate?: string;
15616
16184
  search?: string;
16185
+ /** @description Narrow results to a single partnered carrier (dispatch users) */
16186
+ carrierId?: string;
15617
16187
  page?: number;
15618
16188
  limit?: number;
15619
16189
  };
@@ -15659,7 +16229,7 @@ export interface operations {
15659
16229
  ExpensesController_getStats: {
15660
16230
  parameters: {
15661
16231
  query?: {
15662
- type?: "FUEL" | "REPAIR" | "MAINTENANCE" | "TOLL" | "PARKING" | "SCALE" | "LUMPER" | "DETENTION" | "INSURANCE" | "OTHER";
16232
+ type?: "FUEL" | "REPAIR" | "MAINTENANCE" | "TOLL" | "PARKING" | "SCALE" | "LUMPER" | "DETENTION" | "INSURANCE" | "PERMIT" | "FINE" | "OTHER";
15663
16233
  status?: "PENDING" | "APPROVED" | "REJECTED" | "PAID";
15664
16234
  driverId?: string;
15665
16235
  truckId?: string;
@@ -15667,6 +16237,8 @@ export interface operations {
15667
16237
  fromDate?: string;
15668
16238
  toDate?: string;
15669
16239
  search?: string;
16240
+ /** @description Narrow results to a single partnered carrier (dispatch users) */
16241
+ carrierId?: string;
15670
16242
  page?: number;
15671
16243
  limit?: number;
15672
16244
  };
@@ -15703,6 +16275,12 @@ export interface operations {
15703
16275
  "application/json": components["schemas"]["ExpenseResponseDto"];
15704
16276
  };
15705
16277
  };
16278
+ 201: {
16279
+ headers: {
16280
+ [name: string]: unknown;
16281
+ };
16282
+ content?: never;
16283
+ };
15706
16284
  };
15707
16285
  };
15708
16286
  ExpensesController_findOne: {
@@ -15793,6 +16371,14 @@ export interface operations {
15793
16371
  "application/json": components["schemas"]["ExpenseResponseDto"];
15794
16372
  };
15795
16373
  };
16374
+ 201: {
16375
+ headers: {
16376
+ [name: string]: unknown;
16377
+ };
16378
+ content: {
16379
+ "application/json": Record<string, never>;
16380
+ };
16381
+ };
15796
16382
  };
15797
16383
  };
15798
16384
  ExpensesController_approve: {
@@ -15814,6 +16400,12 @@ export interface operations {
15814
16400
  "application/json": components["schemas"]["ExpenseResponseDto"];
15815
16401
  };
15816
16402
  };
16403
+ 201: {
16404
+ headers: {
16405
+ [name: string]: unknown;
16406
+ };
16407
+ content?: never;
16408
+ };
15817
16409
  };
15818
16410
  };
15819
16411
  ExpensesController_reject: {
@@ -15839,6 +16431,12 @@ export interface operations {
15839
16431
  "application/json": components["schemas"]["ExpenseResponseDto"];
15840
16432
  };
15841
16433
  };
16434
+ 201: {
16435
+ headers: {
16436
+ [name: string]: unknown;
16437
+ };
16438
+ content?: never;
16439
+ };
15842
16440
  };
15843
16441
  };
15844
16442
  ExpensesController_reopen: {
@@ -15860,6 +16458,12 @@ export interface operations {
15860
16458
  "application/json": components["schemas"]["ExpenseResponseDto"];
15861
16459
  };
15862
16460
  };
16461
+ 201: {
16462
+ headers: {
16463
+ [name: string]: unknown;
16464
+ };
16465
+ content?: never;
16466
+ };
15863
16467
  };
15864
16468
  };
15865
16469
  ExpensesController_markAsPaid: {
@@ -15885,6 +16489,12 @@ export interface operations {
15885
16489
  "application/json": components["schemas"]["ExpenseResponseDto"];
15886
16490
  };
15887
16491
  };
16492
+ 201: {
16493
+ headers: {
16494
+ [name: string]: unknown;
16495
+ };
16496
+ content?: never;
16497
+ };
15888
16498
  };
15889
16499
  };
15890
16500
  ClientEmailController_findAll: {
@@ -16045,6 +16655,12 @@ export interface operations {
16045
16655
  "application/json": components["schemas"]["MessageResponseDto"];
16046
16656
  };
16047
16657
  };
16658
+ 201: {
16659
+ headers: {
16660
+ [name: string]: unknown;
16661
+ };
16662
+ content?: never;
16663
+ };
16048
16664
  };
16049
16665
  };
16050
16666
  InboundEmailController_findAll: {
@@ -16145,6 +16761,60 @@ export interface operations {
16145
16761
  };
16146
16762
  };
16147
16763
  };
16764
+ InboundEmailController_archive: {
16765
+ parameters: {
16766
+ query?: never;
16767
+ header?: never;
16768
+ path: {
16769
+ id: string;
16770
+ };
16771
+ cookie?: never;
16772
+ };
16773
+ requestBody?: never;
16774
+ responses: {
16775
+ 200: {
16776
+ headers: {
16777
+ [name: string]: unknown;
16778
+ };
16779
+ content: {
16780
+ "application/json": components["schemas"]["InboundEmailResponseDto"];
16781
+ };
16782
+ };
16783
+ 201: {
16784
+ headers: {
16785
+ [name: string]: unknown;
16786
+ };
16787
+ content?: never;
16788
+ };
16789
+ };
16790
+ };
16791
+ InboundEmailController_reply: {
16792
+ parameters: {
16793
+ query?: never;
16794
+ header?: never;
16795
+ path: {
16796
+ id: string;
16797
+ };
16798
+ cookie?: never;
16799
+ };
16800
+ requestBody?: never;
16801
+ responses: {
16802
+ 200: {
16803
+ headers: {
16804
+ [name: string]: unknown;
16805
+ };
16806
+ content: {
16807
+ "application/json": components["schemas"]["SuccessResponseDto"];
16808
+ };
16809
+ };
16810
+ 201: {
16811
+ headers: {
16812
+ [name: string]: unknown;
16813
+ };
16814
+ content?: never;
16815
+ };
16816
+ };
16817
+ };
16148
16818
  EmailWebhookController_handleInboundEmail: {
16149
16819
  parameters: {
16150
16820
  query?: never;
@@ -16247,6 +16917,12 @@ export interface operations {
16247
16917
  "application/json": components["schemas"]["SignDocumentResultDto"];
16248
16918
  };
16249
16919
  };
16920
+ 201: {
16921
+ headers: {
16922
+ [name: string]: unknown;
16923
+ };
16924
+ content?: never;
16925
+ };
16250
16926
  /** @description Document already signed or link expired */
16251
16927
  400: {
16252
16928
  headers: {
@@ -16296,6 +16972,14 @@ export interface operations {
16296
16972
  "application/json": components["schemas"]["DocumentToSignResponseDto"];
16297
16973
  };
16298
16974
  };
16975
+ 201: {
16976
+ headers: {
16977
+ [name: string]: unknown;
16978
+ };
16979
+ content: {
16980
+ "application/json": Record<string, never>;
16981
+ };
16982
+ };
16299
16983
  };
16300
16984
  };
16301
16985
  SearchController_search: {
@@ -16459,6 +17143,12 @@ export interface operations {
16459
17143
  "application/json": components["schemas"]["ResendInvitationResponseDto"];
16460
17144
  };
16461
17145
  };
17146
+ 201: {
17147
+ headers: {
17148
+ [name: string]: unknown;
17149
+ };
17150
+ content?: never;
17151
+ };
16462
17152
  };
16463
17153
  };
16464
17154
  CarriersController_findAll: {
@@ -16728,6 +17418,14 @@ export interface operations {
16728
17418
  "application/json": components["schemas"]["PermitRequestResponseDto"];
16729
17419
  };
16730
17420
  };
17421
+ 201: {
17422
+ headers: {
17423
+ [name: string]: unknown;
17424
+ };
17425
+ content: {
17426
+ "application/json": Record<string, never>;
17427
+ };
17428
+ };
16731
17429
  };
16732
17430
  };
16733
17431
  AuditController_findAll: {
@@ -17106,6 +17804,29 @@ export interface operations {
17106
17804
  };
17107
17805
  };
17108
17806
  };
17807
+ ReportsController_getPayoutReport: {
17808
+ parameters: {
17809
+ query?: {
17810
+ startDate?: string;
17811
+ endDate?: string;
17812
+ carrierId?: string;
17813
+ driverId?: string;
17814
+ customerId?: string;
17815
+ };
17816
+ header?: never;
17817
+ path?: never;
17818
+ cookie?: never;
17819
+ };
17820
+ requestBody?: never;
17821
+ responses: {
17822
+ 200: {
17823
+ headers: {
17824
+ [name: string]: unknown;
17825
+ };
17826
+ content?: never;
17827
+ };
17828
+ };
17829
+ };
17109
17830
  DispatchController_getConnectedCarriers: {
17110
17831
  parameters: {
17111
17832
  query?: never;