@chargetrip/types 1.48.0 → 1.49.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -469,6 +469,16 @@ export declare enum ChargingBehaviourCode {
469
469
  /** Mainly morning charging, with some afternoon charging. */
470
470
  OFFICE_CHARGING = "OFFICE_CHARGING"
471
471
  }
472
+ export declare enum CongestionLevel {
473
+ /** Congestion level is unknown or could not be determined. */
474
+ UNKNOWN = "unknown",
475
+ /** Traffic is flowing freely with little to no delay. */
476
+ LOW = "low",
477
+ /** Increased traffic volume causing minor delays. */
478
+ MEDIUM = "medium",
479
+ /** Significant traffic volume causing heavy delays and potential standstills. */
480
+ HIGH = "high"
481
+ }
472
482
  export declare type Connect = {
473
483
  /** List of connectivity providers to which the vehicle can connect. This field returns null for free users. Please contact customer success for more information. */
474
484
  providers?: Maybe<Array<ConnectProvider>>;
@@ -1207,6 +1217,8 @@ export declare type CreateRoute = {
1207
1217
  weather?: Maybe<RouteWeather>;
1208
1218
  /** Charging stations preferences for route calculation. */
1209
1219
  station_preferences?: Maybe<RouteStationPreferences>;
1220
+ /** [BETA] Indicates whether current traffic conditions were considered during route calculation. This feature is disabled by default and requires explicit enablement for your project. Please contact Chargetrip support for more information. */
1221
+ traffic_aware?: Maybe<Scalars["Boolean"]>;
1210
1222
  };
1211
1223
  /** Input for the create route mutation. */
1212
1224
  export declare type CreateRouteInput = {
@@ -1234,6 +1246,8 @@ export declare type CreateRouteInput = {
1234
1246
  station_preferences?: Maybe<RouteStationPreferencesInput>;
1235
1247
  /** [BETA] Configuration options for the route's driving conditions. Includes factors to adjust average speed, set a maximum speed, and define a base driving style. If not specified, no adjustments are applied. */
1236
1248
  driving_preferences?: Maybe<RouteDrivingPreferencesInput>;
1249
+ /** [BETA] Route should consider current traffic conditions. This feature is disabled by default and requires explicit enablement for your project. Please contact Chargetrip support for more information. */
1250
+ traffic_aware?: Maybe<Scalars["Boolean"]>;
1237
1251
  };
1238
1252
  /** Currency in the ISO 4217 format. */
1239
1253
  export declare enum Currency {
@@ -3797,6 +3811,8 @@ export declare type RouteDetails = {
3797
3811
  charges: Scalars["Int"];
3798
3812
  /** [BETA] Warnings that certain conditions specified in a route mutation are not respected. */
3799
3813
  warnings?: Maybe<Array<RouteWarning>>;
3814
+ /** [BETA] Information regarding traffic conditions along the route. Available for routes created with traffic_aware set. */
3815
+ traffic?: Maybe<RouteDetailsTraffic>;
3800
3816
  };
3801
3817
  export declare type RouteDetailsdistanceArgs = {
3802
3818
  unit?: Maybe<DistanceUnit>;
@@ -3906,6 +3922,8 @@ export declare type RouteDetailsLeg = {
3906
3922
  sections: Array<RouteDetailsLegSection>;
3907
3923
  /** [BETA] Warnings that certain conditions specified in a route mutation are not respected. */
3908
3924
  warnings?: Maybe<Array<RouteDetailsLegWarning>>;
3925
+ /** [BETA] Information regarding traffic conditions along the route's leg . Available for routes created with traffic_aware set to true. */
3926
+ traffic?: Maybe<RouteDetailsLegTraffic>;
3909
3927
  };
3910
3928
  /** Leg of a route detail. */
3911
3929
  export declare type RouteDetailsLegdistanceArgs = {
@@ -4019,6 +4037,8 @@ export declare type RouteDetailsLegSection = {
4019
4037
  duration: Scalars["Float"];
4020
4038
  /** Total energy used in a section in kilowatt-hours. The value will be 0 for walking sections. */
4021
4039
  consumption?: Maybe<Scalars["Float"]>;
4040
+ /** [BETA] Information regarding traffic conditions along the leg's section. Available for routes created with traffic_aware set to true. */
4041
+ traffic?: Maybe<RouteDetailsLegSectionTraffic>;
4022
4042
  };
4023
4043
  export declare type RouteDetailsLegSectionpolylineArgs = {
4024
4044
  decimals?: Maybe<PolylineInputDecimals>;
@@ -4050,6 +4070,10 @@ export declare type RouteDetailsLegSectionFeaturePointPropertiestotal_occupant_w
4050
4070
  export declare type RouteDetailsLegSectionFeaturePointPropertiestotal_cargo_weightArgs = {
4051
4071
  unit?: Maybe<WeightUnit>;
4052
4072
  };
4073
+ export declare type RouteDetailsLegSectionTraffic = {
4074
+ /** [BETA] Traffic congestion intervals mapped to the polyline indices of the leg's section. */
4075
+ congestions: Array<TrafficCongestionInterval>;
4076
+ };
4053
4077
  /** Type of a route details leg section. */
4054
4078
  export declare enum RouteDetailsLegSectionType {
4055
4079
  DRIVING = "driving",
@@ -4064,6 +4088,10 @@ export declare type RouteDetailsLegStation = {
4064
4088
  /** ID of the connector that was selected in a route. */
4065
4089
  connector_id: Scalars["ID"];
4066
4090
  };
4091
+ export declare type RouteDetailsLegTraffic = {
4092
+ /** [BETA] Traffic congestion intervals mapped to the polyline indices of the leg. */
4093
+ congestions: Array<TrafficCongestionInterval>;
4094
+ };
4067
4095
  /** Type of a leg. */
4068
4096
  export declare enum RouteDetailsLegType {
4069
4097
  /** This leg ends at a charging station and the vehicle must recharge. */
@@ -4185,6 +4213,12 @@ export declare enum RouteDetailsTag {
4185
4213
  WALKING = "walking",
4186
4214
  CROSSBORDER = "crossborder"
4187
4215
  }
4216
+ export declare type RouteDetailsTraffic = {
4217
+ /** [BETA] Additional driving duration, in seconds, caused by traffic congestion compared to free-flow conditions. This value is already included in route total and driving durations. */
4218
+ delay: Scalars["Int"];
4219
+ /** [BETA] Traffic congestion intervals mapped to the polyline indices of the leg. */
4220
+ congestions: Array<Maybe<TrafficCongestionInterval>>;
4221
+ };
4188
4222
  export declare type RouteDrivingPreferences = {
4189
4223
  /** [BETA] Factor to adjust the route's calculated average speed. Accepts values between 0.80 and 1.20. 1.0 is neutral. Values below 1.0 reduce speed (e.g. 0.95 is -5%), values above increase it. If provided in combination with style, this overrides the speed factor implied by the selected 'style'. */
4190
4224
  speed_factor?: Maybe<Scalars["Float"]>;
@@ -6214,6 +6248,14 @@ export declare type TotalOccupantWeightInput = {
6214
6248
  /** Source of inputted data, defaults to 'manual'. */
6215
6249
  source?: Maybe<TelemetryInputSource>;
6216
6250
  };
6251
+ export declare type TrafficCongestionInterval = {
6252
+ /** Starting index of this interval in the polyline. */
6253
+ start_index: Scalars["Int"];
6254
+ /** Ending index of this interval in the polyline. */
6255
+ end_index: Scalars["Int"];
6256
+ /** Congestion level for this specific interval. */
6257
+ level: CongestionLevel;
6258
+ };
6217
6259
  export declare enum TurningCircleUnit {
6218
6260
  /** Return the turning circle in meters. */
6219
6261
  METER = "meter",
@@ -2195,6 +2195,41 @@
2195
2195
  ],
2196
2196
  "possibleTypes": null
2197
2197
  },
2198
+ {
2199
+ "kind": "ENUM",
2200
+ "name": "CongestionLevel",
2201
+ "description": null,
2202
+ "fields": null,
2203
+ "inputFields": null,
2204
+ "interfaces": null,
2205
+ "enumValues": [
2206
+ {
2207
+ "name": "unknown",
2208
+ "description": "Congestion level is unknown or could not be determined.",
2209
+ "isDeprecated": false,
2210
+ "deprecationReason": null
2211
+ },
2212
+ {
2213
+ "name": "low",
2214
+ "description": "Traffic is flowing freely with little to no delay.",
2215
+ "isDeprecated": false,
2216
+ "deprecationReason": null
2217
+ },
2218
+ {
2219
+ "name": "medium",
2220
+ "description": "Increased traffic volume causing minor delays.",
2221
+ "isDeprecated": false,
2222
+ "deprecationReason": null
2223
+ },
2224
+ {
2225
+ "name": "high",
2226
+ "description": "Significant traffic volume causing heavy delays and potential standstills.",
2227
+ "isDeprecated": false,
2228
+ "deprecationReason": null
2229
+ }
2230
+ ],
2231
+ "possibleTypes": null
2232
+ },
2198
2233
  {
2199
2234
  "kind": "OBJECT",
2200
2235
  "name": "Connect",
@@ -6120,6 +6155,18 @@
6120
6155
  },
6121
6156
  "isDeprecated": false,
6122
6157
  "deprecationReason": null
6158
+ },
6159
+ {
6160
+ "name": "traffic_aware",
6161
+ "description": "[BETA] Indicates whether current traffic conditions were considered during route calculation. This feature is disabled by default and requires explicit enablement for your project. Please contact Chargetrip support for more information.",
6162
+ "args": [],
6163
+ "type": {
6164
+ "kind": "SCALAR",
6165
+ "name": "Boolean",
6166
+ "ofType": null
6167
+ },
6168
+ "isDeprecated": false,
6169
+ "deprecationReason": null
6123
6170
  }
6124
6171
  ],
6125
6172
  "inputFields": null,
@@ -6304,6 +6351,18 @@
6304
6351
  "defaultValue": null,
6305
6352
  "isDeprecated": false,
6306
6353
  "deprecationReason": null
6354
+ },
6355
+ {
6356
+ "name": "traffic_aware",
6357
+ "description": "[BETA] Route should consider current traffic conditions. This feature is disabled by default and requires explicit enablement for your project. Please contact Chargetrip support for more information.",
6358
+ "type": {
6359
+ "kind": "SCALAR",
6360
+ "name": "Boolean",
6361
+ "ofType": null
6362
+ },
6363
+ "defaultValue": "false",
6364
+ "isDeprecated": false,
6365
+ "deprecationReason": null
6307
6366
  }
6308
6367
  ],
6309
6368
  "interfaces": null,
@@ -20559,6 +20618,18 @@
20559
20618
  },
20560
20619
  "isDeprecated": false,
20561
20620
  "deprecationReason": null
20621
+ },
20622
+ {
20623
+ "name": "traffic",
20624
+ "description": "[BETA] Information regarding traffic conditions along the route. Available for routes created with traffic_aware set.",
20625
+ "args": [],
20626
+ "type": {
20627
+ "kind": "OBJECT",
20628
+ "name": "RouteDetailsTraffic",
20629
+ "ofType": null
20630
+ },
20631
+ "isDeprecated": false,
20632
+ "deprecationReason": null
20562
20633
  }
20563
20634
  ],
20564
20635
  "inputFields": null,
@@ -21317,6 +21388,18 @@
21317
21388
  },
21318
21389
  "isDeprecated": false,
21319
21390
  "deprecationReason": null
21391
+ },
21392
+ {
21393
+ "name": "traffic",
21394
+ "description": "[BETA] Information regarding traffic conditions along the route's leg . Available for routes created with traffic_aware set to true.",
21395
+ "args": [],
21396
+ "type": {
21397
+ "kind": "OBJECT",
21398
+ "name": "RouteDetailsLegTraffic",
21399
+ "ofType": null
21400
+ },
21401
+ "isDeprecated": false,
21402
+ "deprecationReason": null
21320
21403
  }
21321
21404
  ],
21322
21405
  "inputFields": null,
@@ -21917,6 +22000,18 @@
21917
22000
  },
21918
22001
  "isDeprecated": false,
21919
22002
  "deprecationReason": null
22003
+ },
22004
+ {
22005
+ "name": "traffic",
22006
+ "description": "[BETA] Information regarding traffic conditions along the leg's section. Available for routes created with traffic_aware set to true.",
22007
+ "args": [],
22008
+ "type": {
22009
+ "kind": "OBJECT",
22010
+ "name": "RouteDetailsLegSectionTraffic",
22011
+ "ofType": null
22012
+ },
22013
+ "isDeprecated": false,
22014
+ "deprecationReason": null
21920
22015
  }
21921
22016
  ],
21922
22017
  "inputFields": null,
@@ -22072,6 +22167,41 @@
22072
22167
  "enumValues": null,
22073
22168
  "possibleTypes": null
22074
22169
  },
22170
+ {
22171
+ "kind": "OBJECT",
22172
+ "name": "RouteDetailsLegSectionTraffic",
22173
+ "description": null,
22174
+ "fields": [
22175
+ {
22176
+ "name": "congestions",
22177
+ "description": "[BETA] Traffic congestion intervals mapped to the polyline indices of the leg's section.",
22178
+ "args": [],
22179
+ "type": {
22180
+ "kind": "NON_NULL",
22181
+ "name": null,
22182
+ "ofType": {
22183
+ "kind": "LIST",
22184
+ "name": null,
22185
+ "ofType": {
22186
+ "kind": "NON_NULL",
22187
+ "name": null,
22188
+ "ofType": {
22189
+ "kind": "OBJECT",
22190
+ "name": "TrafficCongestionInterval",
22191
+ "ofType": null
22192
+ }
22193
+ }
22194
+ }
22195
+ },
22196
+ "isDeprecated": false,
22197
+ "deprecationReason": null
22198
+ }
22199
+ ],
22200
+ "inputFields": null,
22201
+ "interfaces": [],
22202
+ "enumValues": null,
22203
+ "possibleTypes": null
22204
+ },
22075
22205
  {
22076
22206
  "kind": "ENUM",
22077
22207
  "name": "RouteDetailsLegSectionType",
@@ -22156,6 +22286,41 @@
22156
22286
  "enumValues": null,
22157
22287
  "possibleTypes": null
22158
22288
  },
22289
+ {
22290
+ "kind": "OBJECT",
22291
+ "name": "RouteDetailsLegTraffic",
22292
+ "description": null,
22293
+ "fields": [
22294
+ {
22295
+ "name": "congestions",
22296
+ "description": "[BETA] Traffic congestion intervals mapped to the polyline indices of the leg.",
22297
+ "args": [],
22298
+ "type": {
22299
+ "kind": "NON_NULL",
22300
+ "name": null,
22301
+ "ofType": {
22302
+ "kind": "LIST",
22303
+ "name": null,
22304
+ "ofType": {
22305
+ "kind": "NON_NULL",
22306
+ "name": null,
22307
+ "ofType": {
22308
+ "kind": "OBJECT",
22309
+ "name": "TrafficCongestionInterval",
22310
+ "ofType": null
22311
+ }
22312
+ }
22313
+ }
22314
+ },
22315
+ "isDeprecated": false,
22316
+ "deprecationReason": null
22317
+ }
22318
+ ],
22319
+ "inputFields": null,
22320
+ "interfaces": [],
22321
+ "enumValues": null,
22322
+ "possibleTypes": null
22323
+ },
22159
22324
  {
22160
22325
  "kind": "ENUM",
22161
22326
  "name": "RouteDetailsLegType",
@@ -22762,6 +22927,53 @@
22762
22927
  ],
22763
22928
  "possibleTypes": null
22764
22929
  },
22930
+ {
22931
+ "kind": "OBJECT",
22932
+ "name": "RouteDetailsTraffic",
22933
+ "description": null,
22934
+ "fields": [
22935
+ {
22936
+ "name": "delay",
22937
+ "description": "[BETA] Additional driving duration, in seconds, caused by traffic congestion compared to free-flow conditions. This value is already included in route total and driving durations.",
22938
+ "args": [],
22939
+ "type": {
22940
+ "kind": "NON_NULL",
22941
+ "name": null,
22942
+ "ofType": {
22943
+ "kind": "SCALAR",
22944
+ "name": "Int",
22945
+ "ofType": null
22946
+ }
22947
+ },
22948
+ "isDeprecated": false,
22949
+ "deprecationReason": null
22950
+ },
22951
+ {
22952
+ "name": "congestions",
22953
+ "description": "[BETA] Traffic congestion intervals mapped to the polyline indices of the leg.",
22954
+ "args": [],
22955
+ "type": {
22956
+ "kind": "NON_NULL",
22957
+ "name": null,
22958
+ "ofType": {
22959
+ "kind": "LIST",
22960
+ "name": null,
22961
+ "ofType": {
22962
+ "kind": "OBJECT",
22963
+ "name": "TrafficCongestionInterval",
22964
+ "ofType": null
22965
+ }
22966
+ }
22967
+ },
22968
+ "isDeprecated": false,
22969
+ "deprecationReason": null
22970
+ }
22971
+ ],
22972
+ "inputFields": null,
22973
+ "interfaces": [],
22974
+ "enumValues": null,
22975
+ "possibleTypes": null
22976
+ },
22765
22977
  {
22766
22978
  "kind": "OBJECT",
22767
22979
  "name": "RouteDrivingPreferences",
@@ -34745,6 +34957,65 @@
34745
34957
  "enumValues": null,
34746
34958
  "possibleTypes": null
34747
34959
  },
34960
+ {
34961
+ "kind": "OBJECT",
34962
+ "name": "TrafficCongestionInterval",
34963
+ "description": null,
34964
+ "fields": [
34965
+ {
34966
+ "name": "start_index",
34967
+ "description": "Starting index of this interval in the polyline.",
34968
+ "args": [],
34969
+ "type": {
34970
+ "kind": "NON_NULL",
34971
+ "name": null,
34972
+ "ofType": {
34973
+ "kind": "SCALAR",
34974
+ "name": "Int",
34975
+ "ofType": null
34976
+ }
34977
+ },
34978
+ "isDeprecated": false,
34979
+ "deprecationReason": null
34980
+ },
34981
+ {
34982
+ "name": "end_index",
34983
+ "description": "Ending index of this interval in the polyline.",
34984
+ "args": [],
34985
+ "type": {
34986
+ "kind": "NON_NULL",
34987
+ "name": null,
34988
+ "ofType": {
34989
+ "kind": "SCALAR",
34990
+ "name": "Int",
34991
+ "ofType": null
34992
+ }
34993
+ },
34994
+ "isDeprecated": false,
34995
+ "deprecationReason": null
34996
+ },
34997
+ {
34998
+ "name": "level",
34999
+ "description": "Congestion level for this specific interval.",
35000
+ "args": [],
35001
+ "type": {
35002
+ "kind": "NON_NULL",
35003
+ "name": null,
35004
+ "ofType": {
35005
+ "kind": "ENUM",
35006
+ "name": "CongestionLevel",
35007
+ "ofType": null
35008
+ }
35009
+ },
35010
+ "isDeprecated": false,
35011
+ "deprecationReason": null
35012
+ }
35013
+ ],
35014
+ "inputFields": null,
35015
+ "interfaces": [],
35016
+ "enumValues": null,
35017
+ "possibleTypes": null
35018
+ },
34748
35019
  {
34749
35020
  "kind": "ENUM",
34750
35021
  "name": "TurningCircleUnit",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chargetrip/types",
3
- "version": "1.48.0",
3
+ "version": "1.49.0",
4
4
  "license": "MIT",
5
5
  "keywords": [
6
6
  "chargetrip",
package/src/graphql.ts CHANGED
@@ -507,6 +507,17 @@ export enum ChargingBehaviourCode {
507
507
  OFFICE_CHARGING = "OFFICE_CHARGING"
508
508
  }
509
509
 
510
+ export enum CongestionLevel {
511
+ /** Congestion level is unknown or could not be determined. */
512
+ UNKNOWN = "unknown",
513
+ /** Traffic is flowing freely with little to no delay. */
514
+ LOW = "low",
515
+ /** Increased traffic volume causing minor delays. */
516
+ MEDIUM = "medium",
517
+ /** Significant traffic volume causing heavy delays and potential standstills. */
518
+ HIGH = "high"
519
+ }
520
+
510
521
  export type Connect = {
511
522
  /** List of connectivity providers to which the vehicle can connect. This field returns null for free users. Please contact customer success for more information. */
512
523
  providers?: Maybe<Array<ConnectProvider>>;
@@ -1280,6 +1291,8 @@ export type CreateRoute = {
1280
1291
  weather?: Maybe<RouteWeather>;
1281
1292
  /** Charging stations preferences for route calculation. */
1282
1293
  station_preferences?: Maybe<RouteStationPreferences>;
1294
+ /** [BETA] Indicates whether current traffic conditions were considered during route calculation. This feature is disabled by default and requires explicit enablement for your project. Please contact Chargetrip support for more information. */
1295
+ traffic_aware?: Maybe<Scalars["Boolean"]>;
1283
1296
  };
1284
1297
 
1285
1298
  /** Input for the create route mutation. */
@@ -1308,6 +1321,8 @@ export type CreateRouteInput = {
1308
1321
  station_preferences?: Maybe<RouteStationPreferencesInput>;
1309
1322
  /** [BETA] Configuration options for the route's driving conditions. Includes factors to adjust average speed, set a maximum speed, and define a base driving style. If not specified, no adjustments are applied. */
1310
1323
  driving_preferences?: Maybe<RouteDrivingPreferencesInput>;
1324
+ /** [BETA] Route should consider current traffic conditions. This feature is disabled by default and requires explicit enablement for your project. Please contact Chargetrip support for more information. */
1325
+ traffic_aware?: Maybe<Scalars["Boolean"]>;
1311
1326
  };
1312
1327
 
1313
1328
  /** Currency in the ISO 4217 format. */
@@ -4097,6 +4112,8 @@ export type RouteDetails = {
4097
4112
  charges: Scalars["Int"];
4098
4113
  /** [BETA] Warnings that certain conditions specified in a route mutation are not respected. */
4099
4114
  warnings?: Maybe<Array<RouteWarning>>;
4115
+ /** [BETA] Information regarding traffic conditions along the route. Available for routes created with traffic_aware set. */
4116
+ traffic?: Maybe<RouteDetailsTraffic>;
4100
4117
  };
4101
4118
 
4102
4119
  export type RouteDetailsdistanceArgs = {
@@ -4221,6 +4238,8 @@ export type RouteDetailsLeg = {
4221
4238
  sections: Array<RouteDetailsLegSection>;
4222
4239
  /** [BETA] Warnings that certain conditions specified in a route mutation are not respected. */
4223
4240
  warnings?: Maybe<Array<RouteDetailsLegWarning>>;
4241
+ /** [BETA] Information regarding traffic conditions along the route's leg . Available for routes created with traffic_aware set to true. */
4242
+ traffic?: Maybe<RouteDetailsLegTraffic>;
4224
4243
  };
4225
4244
 
4226
4245
  /** Leg of a route detail. */
@@ -4347,6 +4366,8 @@ export type RouteDetailsLegSection = {
4347
4366
  duration: Scalars["Float"];
4348
4367
  /** Total energy used in a section in kilowatt-hours. The value will be 0 for walking sections. */
4349
4368
  consumption?: Maybe<Scalars["Float"]>;
4369
+ /** [BETA] Information regarding traffic conditions along the leg's section. Available for routes created with traffic_aware set to true. */
4370
+ traffic?: Maybe<RouteDetailsLegSectionTraffic>;
4350
4371
  };
4351
4372
 
4352
4373
  export type RouteDetailsLegSectionpolylineArgs = {
@@ -4385,6 +4406,11 @@ export type RouteDetailsLegSectionFeaturePointPropertiestotal_cargo_weightArgs =
4385
4406
  unit?: Maybe<WeightUnit>;
4386
4407
  };
4387
4408
 
4409
+ export type RouteDetailsLegSectionTraffic = {
4410
+ /** [BETA] Traffic congestion intervals mapped to the polyline indices of the leg's section. */
4411
+ congestions: Array<TrafficCongestionInterval>;
4412
+ };
4413
+
4388
4414
  /** Type of a route details leg section. */
4389
4415
  export enum RouteDetailsLegSectionType {
4390
4416
  DRIVING = "driving",
@@ -4401,6 +4427,11 @@ export type RouteDetailsLegStation = {
4401
4427
  connector_id: Scalars["ID"];
4402
4428
  };
4403
4429
 
4430
+ export type RouteDetailsLegTraffic = {
4431
+ /** [BETA] Traffic congestion intervals mapped to the polyline indices of the leg. */
4432
+ congestions: Array<TrafficCongestionInterval>;
4433
+ };
4434
+
4404
4435
  /** Type of a leg. */
4405
4436
  export enum RouteDetailsLegType {
4406
4437
  /** This leg ends at a charging station and the vehicle must recharge. */
@@ -4538,6 +4569,13 @@ export enum RouteDetailsTag {
4538
4569
  CROSSBORDER = "crossborder"
4539
4570
  }
4540
4571
 
4572
+ export type RouteDetailsTraffic = {
4573
+ /** [BETA] Additional driving duration, in seconds, caused by traffic congestion compared to free-flow conditions. This value is already included in route total and driving durations. */
4574
+ delay: Scalars["Int"];
4575
+ /** [BETA] Traffic congestion intervals mapped to the polyline indices of the leg. */
4576
+ congestions: Array<Maybe<TrafficCongestionInterval>>;
4577
+ };
4578
+
4541
4579
  export type RouteDrivingPreferences = {
4542
4580
  /** [BETA] Factor to adjust the route's calculated average speed. Accepts values between 0.80 and 1.20. 1.0 is neutral. Values below 1.0 reduce speed (e.g. 0.95 is -5%), values above increase it. If provided in combination with style, this overrides the speed factor implied by the selected 'style'. */
4543
4581
  speed_factor?: Maybe<Scalars["Float"]>;
@@ -6796,6 +6834,15 @@ export type TotalOccupantWeightInput = {
6796
6834
  source?: Maybe<TelemetryInputSource>;
6797
6835
  };
6798
6836
 
6837
+ export type TrafficCongestionInterval = {
6838
+ /** Starting index of this interval in the polyline. */
6839
+ start_index: Scalars["Int"];
6840
+ /** Ending index of this interval in the polyline. */
6841
+ end_index: Scalars["Int"];
6842
+ /** Congestion level for this specific interval. */
6843
+ level: CongestionLevel;
6844
+ };
6845
+
6799
6846
  export enum TurningCircleUnit {
6800
6847
  /** Return the turning circle in meters. */
6801
6848
  METER = "meter",