@oway/sdk 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -273,7 +273,7 @@ interface paths {
273
273
  };
274
274
  /**
275
275
  * Get a shipment document by order number
276
- * @description Retrieves a download link for a shipment document using the order number (PRO number). Supported document types: BILL_OF_LADING, INVOICE, SHIPPING_LABEL.
276
+ * @description Retrieves a download link for a shipment document using the order number (PRO number). Supported document types: BILL_OF_LADING, INVOICE, SHIPPING_LABEL, POD.
277
277
  */
278
278
  get: operations["getDocument"];
279
279
  put?: never;
@@ -347,6 +347,35 @@ interface paths {
347
347
  }
348
348
  interface components {
349
349
  schemas: {
350
+ /** @description RFC 9457 Problem Details error response */
351
+ ProblemDetail: {
352
+ /**
353
+ * @description A URI reference that identifies the problem type
354
+ * @example https://api.oway.io/errors/location-not-serviceable
355
+ */
356
+ type?: string;
357
+ /**
358
+ * @description A short, human-readable summary of the problem type
359
+ * @example Bad Request
360
+ */
361
+ title?: string;
362
+ /**
363
+ * Format: int32
364
+ * @description The HTTP status code
365
+ * @example 400
366
+ */
367
+ status?: number;
368
+ /**
369
+ * @description A human-readable explanation specific to this occurrence of the problem
370
+ * @example pickupAddress.zipCode must be a 5-digit ZIP code
371
+ */
372
+ detail?: string;
373
+ /**
374
+ * @description A machine-readable reason code for programmatic handling
375
+ * @example pickup_not_covered
376
+ */
377
+ reason?: string;
378
+ };
350
379
  /** @description Shipment/Order details */
351
380
  Shipment: {
352
381
  /**
@@ -370,7 +399,7 @@ interface components {
370
399
  */
371
400
  orderNumber?: string;
372
401
  /**
373
- * @description Current status of the order
402
+ * @description Current shipment status in the order lifecycle
374
403
  * @example CONFIRMED
375
404
  * @enum {string}
376
405
  */
@@ -536,6 +565,12 @@ interface components {
536
565
  deliveryAddress: components["schemas"]["Address"];
537
566
  /** @description List of pallets or freight pieces. */
538
567
  orderComponents: components["schemas"]["OrderComponent"][];
568
+ /**
569
+ * Format: date-time
570
+ * @description Required pickup date (ISO 8601).
571
+ * @example 2026-04-01T08:00:00Z
572
+ */
573
+ requiredPickupDate?: string;
539
574
  };
540
575
  /** @description Response containing a shipping quote */
541
576
  QuoteResponse: {
@@ -557,17 +592,6 @@ interface components {
557
592
  */
558
593
  quoteExpirationTime?: string;
559
594
  };
560
- Trip: {
561
- id?: string;
562
- carrierId?: string;
563
- vehicleId?: string;
564
- tripNo?: string;
565
- legs?: components["schemas"]["TripLeg"][];
566
- /** Format: date-time */
567
- createdAt?: string;
568
- /** Format: date-time */
569
- updatedAt?: string;
570
- };
571
595
  TripLeg: {
572
596
  /** Format: double */
573
597
  startLat?: number;
@@ -589,6 +613,13 @@ interface components {
589
613
  /** Format: int32 */
590
614
  stopNumber?: number;
591
615
  };
616
+ TripRequest: {
617
+ id?: string;
618
+ carrierId?: string;
619
+ vehicleId?: string;
620
+ tripNo?: string;
621
+ legs?: components["schemas"]["TripLeg"][];
622
+ };
592
623
  /** @description GPS location data point for a vehicle */
593
624
  GpsData: {
594
625
  /**
@@ -640,19 +671,6 @@ interface components {
640
671
  */
641
672
  clientSecret: string;
642
673
  };
643
- /** @description Error response for token requests */
644
- TokenErrorResponse: {
645
- /**
646
- * @description Error code
647
- * @example invalid_client
648
- */
649
- error?: string;
650
- /**
651
- * @description Human-readable error description
652
- * @example Invalid client credentials
653
- */
654
- errorDescription?: string;
655
- };
656
674
  /** @description Successful token response */
657
675
  TokenResponse: {
658
676
  /**
@@ -672,6 +690,19 @@ interface components {
672
690
  */
673
691
  expiresIn?: number;
674
692
  };
693
+ /** @description Error response for token requests */
694
+ TokenErrorResponse: {
695
+ /**
696
+ * @description Error code
697
+ * @example invalid_client
698
+ */
699
+ error?: string;
700
+ /**
701
+ * @description Human-readable error description
702
+ * @example Invalid client credentials
703
+ */
704
+ errorDescription?: string;
705
+ };
675
706
  /** @description Shipment tracking information */
676
707
  Tracking: {
677
708
  /**
@@ -685,7 +716,7 @@ interface components {
685
716
  */
686
717
  orderNumber?: string;
687
718
  /**
688
- * @description Current status of the order
719
+ * @description Current shipment status in the order lifecycle
689
720
  * @example PICKED_UP
690
721
  * @enum {string}
691
722
  */
@@ -921,6 +952,8 @@ interface components {
921
952
  deliveryPin?: string;
922
953
  contacted?: boolean;
923
954
  communicationExpired?: boolean;
955
+ /** Format: int32 */
956
+ carrierCounterOfferPriceInCents?: number;
924
957
  emailThreadId?: string;
925
958
  /** Format: int32 */
926
959
  manualCentsPayoutOverride?: number;
@@ -945,6 +978,7 @@ interface components {
945
978
  customerId?: string;
946
979
  companyId?: string;
947
980
  additionalCustomerIds?: string[];
981
+ apiOrder?: boolean;
948
982
  orderNumber?: string;
949
983
  pickupAddressId?: string;
950
984
  deliveryAddressId?: string;
@@ -968,7 +1002,7 @@ interface components {
968
1002
  confirmed?: boolean;
969
1003
  state?: string;
970
1004
  /** @enum {string} */
971
- cancellationReason?: "unspecified" | "customer_cancellation" | "shipment_entry_error" | "low_coverage" | "unacceptable_margin" | "expired" | "carrier_exception" | "shipper_exception";
1005
+ cancellationReason?: "unspecified" | "customer_cancellation" | "shipment_entry_error" | "low_coverage" | "unacceptable_margin" | "expired" | "carrier_exception" | "shipper_exception" | "tonu" | "chargeback_other";
972
1006
  orderComponents?: components["schemas"]["ComponentDetails"][];
973
1007
  poNumber?: string;
974
1008
  refNumber?: string;
@@ -1014,6 +1048,7 @@ interface components {
1014
1048
  /** Format: date-time */
1015
1049
  timeStamp?: string;
1016
1050
  exposePrice?: boolean;
1051
+ coverageDenialReason?: string;
1017
1052
  /** Format: int32 */
1018
1053
  suggestedCarrierPayoutCents?: number;
1019
1054
  /** Format: double */
@@ -1041,6 +1076,8 @@ interface components {
1041
1076
  createdAt?: string;
1042
1077
  /** Format: date-time */
1043
1078
  updatedAt?: string;
1079
+ /** Format: int32 */
1080
+ totalCentsChargeWithBrokerCharges?: number;
1044
1081
  /** @enum {string} */
1045
1082
  status?: "open" | "display" | "price_locked" | "confirmed" | "rejected";
1046
1083
  /** @enum {string} */
@@ -1124,7 +1161,7 @@ interface operations {
1124
1161
  [name: string]: unknown;
1125
1162
  };
1126
1163
  content: {
1127
- "application/json": components["schemas"]["Shipment"];
1164
+ "application/json": components["schemas"]["ProblemDetail"];
1128
1165
  };
1129
1166
  };
1130
1167
  /** @description Unauthorized: missing or invalid Bearer token (authentication failed) */
@@ -1133,7 +1170,7 @@ interface operations {
1133
1170
  [name: string]: unknown;
1134
1171
  };
1135
1172
  content: {
1136
- "application/json": components["schemas"]["Shipment"];
1173
+ "application/json": components["schemas"]["ProblemDetail"];
1137
1174
  };
1138
1175
  };
1139
1176
  /** @description Forbidden: missing/invalid API key, or shipment does not belong to your company */
@@ -1142,7 +1179,7 @@ interface operations {
1142
1179
  [name: string]: unknown;
1143
1180
  };
1144
1181
  content: {
1145
- "application/json": components["schemas"]["Shipment"];
1182
+ "application/json": components["schemas"]["ProblemDetail"];
1146
1183
  };
1147
1184
  };
1148
1185
  /** @description Shipment not found */
@@ -1151,7 +1188,7 @@ interface operations {
1151
1188
  [name: string]: unknown;
1152
1189
  };
1153
1190
  content: {
1154
- "application/json": components["schemas"]["Shipment"];
1191
+ "application/json": components["schemas"]["ProblemDetail"];
1155
1192
  };
1156
1193
  };
1157
1194
  /** @description Internal server error */
@@ -1160,7 +1197,7 @@ interface operations {
1160
1197
  [name: string]: unknown;
1161
1198
  };
1162
1199
  content: {
1163
- "application/json": components["schemas"]["Shipment"];
1200
+ "application/json": components["schemas"]["ProblemDetail"];
1164
1201
  };
1165
1202
  };
1166
1203
  };
@@ -1195,7 +1232,7 @@ interface operations {
1195
1232
  [name: string]: unknown;
1196
1233
  };
1197
1234
  content: {
1198
- "application/json": components["schemas"]["Shipment"];
1235
+ "application/json": components["schemas"]["ProblemDetail"];
1199
1236
  };
1200
1237
  };
1201
1238
  /** @description Unauthorized: missing or invalid Bearer token (authentication failed) */
@@ -1204,7 +1241,7 @@ interface operations {
1204
1241
  [name: string]: unknown;
1205
1242
  };
1206
1243
  content: {
1207
- "application/json": components["schemas"]["Shipment"];
1244
+ "application/json": components["schemas"]["ProblemDetail"];
1208
1245
  };
1209
1246
  };
1210
1247
  /** @description Forbidden: missing/invalid API key, or shipment does not belong to your company */
@@ -1213,7 +1250,7 @@ interface operations {
1213
1250
  [name: string]: unknown;
1214
1251
  };
1215
1252
  content: {
1216
- "application/json": components["schemas"]["Shipment"];
1253
+ "application/json": components["schemas"]["ProblemDetail"];
1217
1254
  };
1218
1255
  };
1219
1256
  /** @description Shipment not found */
@@ -1222,7 +1259,7 @@ interface operations {
1222
1259
  [name: string]: unknown;
1223
1260
  };
1224
1261
  content: {
1225
- "application/json": components["schemas"]["Shipment"];
1262
+ "application/json": components["schemas"]["ProblemDetail"];
1226
1263
  };
1227
1264
  };
1228
1265
  /** @description Internal server error */
@@ -1231,7 +1268,7 @@ interface operations {
1231
1268
  [name: string]: unknown;
1232
1269
  };
1233
1270
  content: {
1234
- "application/json": components["schemas"]["Shipment"];
1271
+ "application/json": components["schemas"]["ProblemDetail"];
1235
1272
  };
1236
1273
  };
1237
1274
  };
@@ -1264,7 +1301,7 @@ interface operations {
1264
1301
  [name: string]: unknown;
1265
1302
  };
1266
1303
  content: {
1267
- "application/json": components["schemas"]["Shipment"];
1304
+ "application/json": components["schemas"]["ProblemDetail"];
1268
1305
  };
1269
1306
  };
1270
1307
  /** @description Unauthorized: missing or invalid Bearer token (authentication failed) */
@@ -1273,7 +1310,7 @@ interface operations {
1273
1310
  [name: string]: unknown;
1274
1311
  };
1275
1312
  content: {
1276
- "application/json": components["schemas"]["Shipment"];
1313
+ "application/json": components["schemas"]["ProblemDetail"];
1277
1314
  };
1278
1315
  };
1279
1316
  /** @description Forbidden: missing/invalid API key, user not in company, or quote not owned by company */
@@ -1282,7 +1319,22 @@ interface operations {
1282
1319
  [name: string]: unknown;
1283
1320
  };
1284
1321
  content: {
1285
- "application/json": components["schemas"]["Shipment"];
1322
+ "application/json": components["schemas"]["ProblemDetail"];
1323
+ };
1324
+ };
1325
+ /**
1326
+ * @description Unprocessable Entity. Possible reasons:
1327
+ *
1328
+ * - **Location Not Serviceable** (`reason: no_coverage`) — the lane is not within Oway's active coverage area.
1329
+ * - **Request Not Permitted** (`reason: account_restriction`) — the requested truck type or accessorial is not enabled for your account. Contact your Oway representative to update your available options.
1330
+ * - **Daily Trip Limit Reached** (`reason: daily_trip_limit`) — your account has reached its maximum shipments for the requested pickup date. You can still place orders for other dates.
1331
+ */
1332
+ 422: {
1333
+ headers: {
1334
+ [name: string]: unknown;
1335
+ };
1336
+ content: {
1337
+ "application/json": components["schemas"]["ProblemDetail"];
1286
1338
  };
1287
1339
  };
1288
1340
  /** @description Internal server error */
@@ -1291,7 +1343,7 @@ interface operations {
1291
1343
  [name: string]: unknown;
1292
1344
  };
1293
1345
  content: {
1294
- "application/json": components["schemas"]["Shipment"];
1346
+ "application/json": components["schemas"]["ProblemDetail"];
1295
1347
  };
1296
1348
  };
1297
1349
  };
@@ -1324,7 +1376,7 @@ interface operations {
1324
1376
  [name: string]: unknown;
1325
1377
  };
1326
1378
  content: {
1327
- "application/json": components["schemas"]["QuoteResponse"];
1379
+ "application/json": components["schemas"]["ProblemDetail"];
1328
1380
  };
1329
1381
  };
1330
1382
  /** @description Unauthorized: missing or invalid Bearer token (authentication failed) */
@@ -1333,7 +1385,7 @@ interface operations {
1333
1385
  [name: string]: unknown;
1334
1386
  };
1335
1387
  content: {
1336
- "application/json": components["schemas"]["QuoteResponse"];
1388
+ "application/json": components["schemas"]["ProblemDetail"];
1337
1389
  };
1338
1390
  };
1339
1391
  /** @description Forbidden: missing/invalid API key, or user does not belong to the authorized company */
@@ -1342,7 +1394,22 @@ interface operations {
1342
1394
  [name: string]: unknown;
1343
1395
  };
1344
1396
  content: {
1345
- "application/json": components["schemas"]["QuoteResponse"];
1397
+ "application/json": components["schemas"]["ProblemDetail"];
1398
+ };
1399
+ };
1400
+ /**
1401
+ * @description Unprocessable Entity. Possible reasons:
1402
+ *
1403
+ * - **Location Not Serviceable** (`reason: no_coverage`) — the lane is not within Oway's active coverage area.
1404
+ * - **Request Not Permitted** (`reason: account_restriction`) — the requested truck type or accessorial is not enabled for your account. Contact your Oway representative to update your available options.
1405
+ * - **Daily Trip Limit Reached** (`reason: daily_trip_limit`) — your account has reached its maximum shipments for the requested pickup date. You can still place orders for other dates.
1406
+ */
1407
+ 422: {
1408
+ headers: {
1409
+ [name: string]: unknown;
1410
+ };
1411
+ content: {
1412
+ "application/json": components["schemas"]["ProblemDetail"];
1346
1413
  };
1347
1414
  };
1348
1415
  /** @description Internal server error */
@@ -1351,7 +1418,7 @@ interface operations {
1351
1418
  [name: string]: unknown;
1352
1419
  };
1353
1420
  content: {
1354
- "application/json": components["schemas"]["QuoteResponse"];
1421
+ "application/json": components["schemas"]["ProblemDetail"];
1355
1422
  };
1356
1423
  };
1357
1424
  };
@@ -1368,7 +1435,7 @@ interface operations {
1368
1435
  };
1369
1436
  requestBody: {
1370
1437
  content: {
1371
- "application/json": components["schemas"]["Trip"][];
1438
+ "application/json": components["schemas"]["TripRequest"][];
1372
1439
  };
1373
1440
  };
1374
1441
  responses: {
@@ -1387,7 +1454,7 @@ interface operations {
1387
1454
  [name: string]: unknown;
1388
1455
  };
1389
1456
  content: {
1390
- "application/json": number;
1457
+ "application/json": components["schemas"]["ProblemDetail"];
1391
1458
  };
1392
1459
  };
1393
1460
  /** @description Unauthorized: missing or invalid bearer token */
@@ -1396,7 +1463,7 @@ interface operations {
1396
1463
  [name: string]: unknown;
1397
1464
  };
1398
1465
  content: {
1399
- "application/json": number;
1466
+ "application/json": components["schemas"]["ProblemDetail"];
1400
1467
  };
1401
1468
  };
1402
1469
  /** @description Forbidden: API access is not enabled for this carrier */
@@ -1405,7 +1472,7 @@ interface operations {
1405
1472
  [name: string]: unknown;
1406
1473
  };
1407
1474
  content: {
1408
- "application/json": number;
1475
+ "application/json": components["schemas"]["ProblemDetail"];
1409
1476
  };
1410
1477
  };
1411
1478
  /** @description Carrier not found */
@@ -1414,7 +1481,7 @@ interface operations {
1414
1481
  [name: string]: unknown;
1415
1482
  };
1416
1483
  content: {
1417
- "application/json": number;
1484
+ "application/json": components["schemas"]["ProblemDetail"];
1418
1485
  };
1419
1486
  };
1420
1487
  /** @description Internal server error */
@@ -1423,7 +1490,7 @@ interface operations {
1423
1490
  [name: string]: unknown;
1424
1491
  };
1425
1492
  content: {
1426
- "application/json": number;
1493
+ "application/json": components["schemas"]["ProblemDetail"];
1427
1494
  };
1428
1495
  };
1429
1496
  };
@@ -1459,7 +1526,7 @@ interface operations {
1459
1526
  [name: string]: unknown;
1460
1527
  };
1461
1528
  content: {
1462
- "application/json": number;
1529
+ "application/json": components["schemas"]["ProblemDetail"];
1463
1530
  };
1464
1531
  };
1465
1532
  /** @description Unauthorized: missing or invalid bearer token */
@@ -1468,7 +1535,7 @@ interface operations {
1468
1535
  [name: string]: unknown;
1469
1536
  };
1470
1537
  content: {
1471
- "application/json": number;
1538
+ "application/json": components["schemas"]["ProblemDetail"];
1472
1539
  };
1473
1540
  };
1474
1541
  /** @description Forbidden: API access is not enabled for this carrier */
@@ -1477,7 +1544,7 @@ interface operations {
1477
1544
  [name: string]: unknown;
1478
1545
  };
1479
1546
  content: {
1480
- "application/json": number;
1547
+ "application/json": components["schemas"]["ProblemDetail"];
1481
1548
  };
1482
1549
  };
1483
1550
  /** @description Carrier not found */
@@ -1486,7 +1553,7 @@ interface operations {
1486
1553
  [name: string]: unknown;
1487
1554
  };
1488
1555
  content: {
1489
- "application/json": number;
1556
+ "application/json": components["schemas"]["ProblemDetail"];
1490
1557
  };
1491
1558
  };
1492
1559
  /** @description Internal server error */
@@ -1495,7 +1562,7 @@ interface operations {
1495
1562
  [name: string]: unknown;
1496
1563
  };
1497
1564
  content: {
1498
- "application/json": number;
1565
+ "application/json": components["schemas"]["ProblemDetail"];
1499
1566
  };
1500
1567
  };
1501
1568
  };
@@ -1572,7 +1639,7 @@ interface operations {
1572
1639
  [name: string]: unknown;
1573
1640
  };
1574
1641
  content: {
1575
- "application/json": components["schemas"]["Shipment"];
1642
+ "application/json": components["schemas"]["ProblemDetail"];
1576
1643
  };
1577
1644
  };
1578
1645
  /** @description Unauthorized: missing or invalid Bearer token (authentication failed) */
@@ -1581,7 +1648,7 @@ interface operations {
1581
1648
  [name: string]: unknown;
1582
1649
  };
1583
1650
  content: {
1584
- "application/json": components["schemas"]["Shipment"];
1651
+ "application/json": components["schemas"]["ProblemDetail"];
1585
1652
  };
1586
1653
  };
1587
1654
  /** @description Forbidden: missing/invalid API key, or shipment does not belong to your company */
@@ -1590,7 +1657,7 @@ interface operations {
1590
1657
  [name: string]: unknown;
1591
1658
  };
1592
1659
  content: {
1593
- "application/json": components["schemas"]["Shipment"];
1660
+ "application/json": components["schemas"]["ProblemDetail"];
1594
1661
  };
1595
1662
  };
1596
1663
  /** @description Shipment not found */
@@ -1599,7 +1666,7 @@ interface operations {
1599
1666
  [name: string]: unknown;
1600
1667
  };
1601
1668
  content: {
1602
- "application/json": components["schemas"]["Shipment"];
1669
+ "application/json": components["schemas"]["ProblemDetail"];
1603
1670
  };
1604
1671
  };
1605
1672
  };
@@ -1634,7 +1701,7 @@ interface operations {
1634
1701
  [name: string]: unknown;
1635
1702
  };
1636
1703
  content: {
1637
- "application/json": components["schemas"]["Tracking"];
1704
+ "application/json": components["schemas"]["ProblemDetail"];
1638
1705
  };
1639
1706
  };
1640
1707
  /** @description Unauthorized: missing or invalid Bearer token (authentication failed) */
@@ -1643,7 +1710,7 @@ interface operations {
1643
1710
  [name: string]: unknown;
1644
1711
  };
1645
1712
  content: {
1646
- "application/json": components["schemas"]["Tracking"];
1713
+ "application/json": components["schemas"]["ProblemDetail"];
1647
1714
  };
1648
1715
  };
1649
1716
  /** @description Forbidden: missing/invalid API key, or shipment does not belong to your company */
@@ -1652,7 +1719,7 @@ interface operations {
1652
1719
  [name: string]: unknown;
1653
1720
  };
1654
1721
  content: {
1655
- "application/json": components["schemas"]["Tracking"];
1722
+ "application/json": components["schemas"]["ProblemDetail"];
1656
1723
  };
1657
1724
  };
1658
1725
  /** @description Shipment not found */
@@ -1661,7 +1728,7 @@ interface operations {
1661
1728
  [name: string]: unknown;
1662
1729
  };
1663
1730
  content: {
1664
- "application/json": components["schemas"]["Tracking"];
1731
+ "application/json": components["schemas"]["ProblemDetail"];
1665
1732
  };
1666
1733
  };
1667
1734
  };
@@ -1696,7 +1763,7 @@ interface operations {
1696
1763
  [name: string]: unknown;
1697
1764
  };
1698
1765
  content: {
1699
- "application/json": components["schemas"]["InvoiceResponse"];
1766
+ "application/json": components["schemas"]["ProblemDetail"];
1700
1767
  };
1701
1768
  };
1702
1769
  /** @description Unauthorized: missing or invalid Bearer token (authentication failed) */
@@ -1705,7 +1772,7 @@ interface operations {
1705
1772
  [name: string]: unknown;
1706
1773
  };
1707
1774
  content: {
1708
- "application/json": components["schemas"]["InvoiceResponse"];
1775
+ "application/json": components["schemas"]["ProblemDetail"];
1709
1776
  };
1710
1777
  };
1711
1778
  /** @description Forbidden: missing/invalid API key, or shipment does not belong to your company */
@@ -1714,7 +1781,7 @@ interface operations {
1714
1781
  [name: string]: unknown;
1715
1782
  };
1716
1783
  content: {
1717
- "application/json": components["schemas"]["InvoiceResponse"];
1784
+ "application/json": components["schemas"]["ProblemDetail"];
1718
1785
  };
1719
1786
  };
1720
1787
  /** @description Shipment not found */
@@ -1723,7 +1790,7 @@ interface operations {
1723
1790
  [name: string]: unknown;
1724
1791
  };
1725
1792
  content: {
1726
- "application/json": components["schemas"]["InvoiceResponse"];
1793
+ "application/json": components["schemas"]["ProblemDetail"];
1727
1794
  };
1728
1795
  };
1729
1796
  };
@@ -1739,7 +1806,7 @@ interface operations {
1739
1806
  */
1740
1807
  orderNumber: string;
1741
1808
  /** @description Type of document to retrieve */
1742
- documentType: "BILL_OF_LADING" | "INVOICE" | "SHIPPING_LABEL";
1809
+ documentType: "BILL_OF_LADING" | "INVOICE" | "SHIPPING_LABEL" | "POD";
1743
1810
  };
1744
1811
  cookie?: never;
1745
1812
  };
@@ -1760,7 +1827,7 @@ interface operations {
1760
1827
  [name: string]: unknown;
1761
1828
  };
1762
1829
  content: {
1763
- "application/json": components["schemas"]["DocumentResponse"];
1830
+ "application/json": components["schemas"]["ProblemDetail"];
1764
1831
  };
1765
1832
  };
1766
1833
  /** @description Unauthorized: missing or invalid Bearer token (authentication failed) */
@@ -1769,7 +1836,7 @@ interface operations {
1769
1836
  [name: string]: unknown;
1770
1837
  };
1771
1838
  content: {
1772
- "application/json": components["schemas"]["DocumentResponse"];
1839
+ "application/json": components["schemas"]["ProblemDetail"];
1773
1840
  };
1774
1841
  };
1775
1842
  /** @description Forbidden: missing/invalid API key, or shipment does not belong to your company */
@@ -1778,7 +1845,7 @@ interface operations {
1778
1845
  [name: string]: unknown;
1779
1846
  };
1780
1847
  content: {
1781
- "application/json": components["schemas"]["DocumentResponse"];
1848
+ "application/json": components["schemas"]["ProblemDetail"];
1782
1849
  };
1783
1850
  };
1784
1851
  /** @description Shipment or document not found */
@@ -1787,7 +1854,7 @@ interface operations {
1787
1854
  [name: string]: unknown;
1788
1855
  };
1789
1856
  content: {
1790
- "application/json": components["schemas"]["DocumentResponse"];
1857
+ "application/json": components["schemas"]["ProblemDetail"];
1791
1858
  };
1792
1859
  };
1793
1860
  /** @description Internal server error */
@@ -1796,7 +1863,7 @@ interface operations {
1796
1863
  [name: string]: unknown;
1797
1864
  };
1798
1865
  content: {
1799
- "application/json": components["schemas"]["DocumentResponse"];
1866
+ "application/json": components["schemas"]["ProblemDetail"];
1800
1867
  };
1801
1868
  };
1802
1869
  };
@@ -1828,7 +1895,7 @@ interface operations {
1828
1895
  [name: string]: unknown;
1829
1896
  };
1830
1897
  content: {
1831
- "application/json": components["schemas"]["QuoteResponse"];
1898
+ "application/json": components["schemas"]["ProblemDetail"];
1832
1899
  };
1833
1900
  };
1834
1901
  /** @description Unauthorized: missing or invalid Bearer token (authentication failed) */
@@ -1837,7 +1904,7 @@ interface operations {
1837
1904
  [name: string]: unknown;
1838
1905
  };
1839
1906
  content: {
1840
- "application/json": components["schemas"]["QuoteResponse"];
1907
+ "application/json": components["schemas"]["ProblemDetail"];
1841
1908
  };
1842
1909
  };
1843
1910
  /** @description Forbidden: missing, invalid, or expired API key (authorization failed) */
@@ -1846,7 +1913,7 @@ interface operations {
1846
1913
  [name: string]: unknown;
1847
1914
  };
1848
1915
  content: {
1849
- "application/json": components["schemas"]["QuoteResponse"];
1916
+ "application/json": components["schemas"]["ProblemDetail"];
1850
1917
  };
1851
1918
  };
1852
1919
  /** @description Quote not found */
@@ -1855,7 +1922,7 @@ interface operations {
1855
1922
  [name: string]: unknown;
1856
1923
  };
1857
1924
  content: {
1858
- "application/json": components["schemas"]["QuoteResponse"];
1925
+ "application/json": components["schemas"]["ProblemDetail"];
1859
1926
  };
1860
1927
  };
1861
1928
  };
@@ -1887,7 +1954,7 @@ interface operations {
1887
1954
  [name: string]: unknown;
1888
1955
  };
1889
1956
  content: {
1890
- "application/json": components["schemas"]["CarrierApiConfigResponse"];
1957
+ "application/json": components["schemas"]["ProblemDetail"];
1891
1958
  };
1892
1959
  };
1893
1960
  /** @description Forbidden: API access is not enabled for this carrier */
@@ -1896,7 +1963,7 @@ interface operations {
1896
1963
  [name: string]: unknown;
1897
1964
  };
1898
1965
  content: {
1899
- "application/json": components["schemas"]["CarrierApiConfigResponse"];
1966
+ "application/json": components["schemas"]["ProblemDetail"];
1900
1967
  };
1901
1968
  };
1902
1969
  /** @description Carrier not found */
@@ -1905,7 +1972,7 @@ interface operations {
1905
1972
  [name: string]: unknown;
1906
1973
  };
1907
1974
  content: {
1908
- "application/json": components["schemas"]["CarrierApiConfigResponse"];
1975
+ "application/json": components["schemas"]["ProblemDetail"];
1909
1976
  };
1910
1977
  };
1911
1978
  /** @description Internal server error */
@@ -1914,7 +1981,7 @@ interface operations {
1914
1981
  [name: string]: unknown;
1915
1982
  };
1916
1983
  content: {
1917
- "application/json": components["schemas"]["CarrierApiConfigResponse"];
1984
+ "application/json": components["schemas"]["ProblemDetail"];
1918
1985
  };
1919
1986
  };
1920
1987
  };
@@ -1953,7 +2020,7 @@ interface operations {
1953
2020
  [name: string]: unknown;
1954
2021
  };
1955
2022
  content: {
1956
- "application/json": components["schemas"]["OfferWithOrderDataDTO"][];
2023
+ "application/json": components["schemas"]["ProblemDetail"];
1957
2024
  };
1958
2025
  };
1959
2026
  /** @description Forbidden: API access is not enabled for this carrier */
@@ -1962,7 +2029,7 @@ interface operations {
1962
2029
  [name: string]: unknown;
1963
2030
  };
1964
2031
  content: {
1965
- "application/json": components["schemas"]["OfferWithOrderDataDTO"][];
2032
+ "application/json": components["schemas"]["ProblemDetail"];
1966
2033
  };
1967
2034
  };
1968
2035
  /** @description Carrier not found */
@@ -1971,7 +2038,7 @@ interface operations {
1971
2038
  [name: string]: unknown;
1972
2039
  };
1973
2040
  content: {
1974
- "application/json": components["schemas"]["OfferWithOrderDataDTO"][];
2041
+ "application/json": components["schemas"]["ProblemDetail"];
1975
2042
  };
1976
2043
  };
1977
2044
  /** @description Internal server error */
@@ -1980,7 +2047,7 @@ interface operations {
1980
2047
  [name: string]: unknown;
1981
2048
  };
1982
2049
  content: {
1983
- "application/json": components["schemas"]["OfferWithOrderDataDTO"][];
2050
+ "application/json": components["schemas"]["ProblemDetail"];
1984
2051
  };
1985
2052
  };
1986
2053
  };
@@ -2009,12 +2076,12 @@ interface OwayConfig {
2009
2076
  apiKey?: string;
2010
2077
  /**
2011
2078
  * Base URL for the Oway API
2012
- * @default "https://rest-api.sandbox.oway.io"
2079
+ * @default "https://api.sandbox.oway.io"
2013
2080
  */
2014
2081
  baseUrl?: string;
2015
2082
  /**
2016
2083
  * Token endpoint for authentication
2017
- * @default "https://rest-api.sandbox.oway.io/v1/auth/token"
2084
+ * @default "https://api.sandbox.oway.io/v1/auth/token"
2018
2085
  */
2019
2086
  tokenUrl?: string;
2020
2087
  /**
@@ -2150,12 +2217,12 @@ declare const OwayEnvironments: {
2150
2217
  * Sandbox environment for development and testing
2151
2218
  * Safe to use - no real shipments created
2152
2219
  */
2153
- readonly SANDBOX: "https://rest-api.sandbox.oway.io";
2220
+ readonly SANDBOX: "https://api.sandbox.oway.io";
2154
2221
  /**
2155
2222
  * Production environment for live traffic
2156
2223
  * Real shipments will be created and billed
2157
2224
  */
2158
- readonly PRODUCTION: "https://rest-api.oway.io";
2225
+ readonly PRODUCTION: "https://api.oway.io";
2159
2226
  };
2160
2227
 
2161
2228
  /**