tesla-fleet-api 0.3.0 → 0.4.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.
Files changed (192) hide show
  1. package/dist/_virtual/_rolldown/runtime.cjs +22 -0
  2. package/dist/_virtual/_rolldown/runtime.mjs +12 -0
  3. package/dist/charging.cjs +53 -0
  4. package/dist/charging.d.cts +31 -0
  5. package/dist/charging.d.mts +30 -0
  6. package/dist/charging.mjs +53 -0
  7. package/dist/commands.cjs +802 -0
  8. package/dist/commands.d.cts +350 -0
  9. package/dist/commands.d.mts +349 -0
  10. package/dist/commands.mjs +800 -0
  11. package/dist/const.cjs +300 -0
  12. package/dist/const.d.cts +287 -0
  13. package/dist/const.d.mts +287 -0
  14. package/dist/const.mjs +263 -0
  15. package/dist/energy.cjs +137 -0
  16. package/dist/energy.d.cts +95 -0
  17. package/{src/energy.ts → dist/energy.d.mts} +17 -140
  18. package/dist/energy.mjs +137 -0
  19. package/dist/energyspecific.cjs +99 -0
  20. package/dist/energyspecific.d.cts +78 -0
  21. package/dist/energyspecific.d.mts +77 -0
  22. package/dist/energyspecific.mjs +99 -0
  23. package/dist/exceptions.cjs +1487 -0
  24. package/dist/exceptions.d.cts +1142 -0
  25. package/dist/exceptions.d.mts +1142 -0
  26. package/dist/exceptions.mjs +1324 -0
  27. package/dist/index.cjs +226 -0
  28. package/dist/index.d.cts +14 -0
  29. package/dist/index.d.mts +14 -0
  30. package/dist/index.mjs +14 -0
  31. package/dist/partner.cjs +32 -0
  32. package/dist/partner.d.cts +24 -0
  33. package/dist/partner.d.mts +23 -0
  34. package/dist/partner.mjs +32 -0
  35. package/dist/router.cjs +0 -0
  36. package/dist/router.d.cts +1 -0
  37. package/dist/router.d.mts +1 -0
  38. package/dist/router.mjs +1 -0
  39. package/dist/signing/crypto.cjs +31 -0
  40. package/dist/signing/crypto.mjs +27 -0
  41. package/dist/signing/session.cjs +112 -0
  42. package/dist/signing/session.d.cts +69 -0
  43. package/dist/signing/session.d.mts +69 -0
  44. package/dist/signing/session.mjs +110 -0
  45. package/dist/tariff.cjs +292 -0
  46. package/dist/{tariff.d.ts → tariff.d.cts} +17 -17
  47. package/dist/tariff.d.mts +29 -0
  48. package/dist/tariff.mjs +291 -0
  49. package/dist/teslafleetapi.cjs +125 -0
  50. package/dist/teslafleetapi.d.cts +64 -0
  51. package/dist/teslafleetapi.d.mts +64 -0
  52. package/dist/teslafleetapi.mjs +125 -0
  53. package/dist/teslemetry.cjs +36 -0
  54. package/dist/teslemetry.d.cts +23 -0
  55. package/dist/teslemetry.d.mts +23 -0
  56. package/dist/teslemetry.mjs +36 -0
  57. package/dist/tessie.cjs +34 -0
  58. package/dist/tessie.d.cts +23 -0
  59. package/dist/tessie.d.mts +23 -0
  60. package/dist/tessie.mjs +34 -0
  61. package/dist/types/commands.d.cts +28 -0
  62. package/dist/types/commands.d.mts +28 -0
  63. package/dist/types/live_status.d.cts +30 -0
  64. package/dist/types/live_status.d.mts +30 -0
  65. package/dist/types/products.d.cts +58 -0
  66. package/dist/types/products.d.mts +58 -0
  67. package/dist/types/responses.d.cts +9 -0
  68. package/dist/types/responses.d.mts +9 -0
  69. package/dist/types/site_info.d.cts +154 -0
  70. package/dist/types/site_info.d.mts +154 -0
  71. package/dist/types/vehicle.d.cts +27 -0
  72. package/dist/types/vehicle.d.mts +27 -0
  73. package/dist/types/vehicle_data.d.cts +278 -0
  74. package/dist/types/vehicle_data.d.mts +278 -0
  75. package/dist/types.cjs +0 -0
  76. package/dist/types.d.cts +9 -0
  77. package/dist/types.d.mts +9 -0
  78. package/dist/types.mjs +1 -0
  79. package/dist/user.cjs +28 -0
  80. package/dist/user.d.cts +17 -0
  81. package/dist/user.d.mts +16 -0
  82. package/dist/user.mjs +28 -0
  83. package/dist/vehicle.cjs +804 -0
  84. package/dist/vehicle.d.cts +550 -0
  85. package/dist/vehicle.d.mts +549 -0
  86. package/dist/vehicle.mjs +804 -0
  87. package/dist/vehiclesigned.cjs +20 -0
  88. package/dist/vehiclesigned.d.cts +14 -0
  89. package/dist/{vehiclesigned.d.ts → vehiclesigned.d.mts} +3 -3
  90. package/dist/vehiclesigned.mjs +20 -0
  91. package/dist/vehiclespecific.cjs +604 -0
  92. package/dist/vehiclespecific.d.cts +433 -0
  93. package/dist/vehiclespecific.d.mts +432 -0
  94. package/dist/vehiclespecific.mjs +604 -0
  95. package/package.json +108 -35
  96. package/dist/charging.d.ts +0 -30
  97. package/dist/charging.js +0 -51
  98. package/dist/charging.js.map +0 -1
  99. package/dist/commands.d.ts +0 -352
  100. package/dist/commands.js +0 -875
  101. package/dist/commands.js.map +0 -1
  102. package/dist/energy.d.ts +0 -94
  103. package/dist/energy.js +0 -125
  104. package/dist/energy.js.map +0 -1
  105. package/dist/energyspecific.d.ts +0 -77
  106. package/dist/energyspecific.js +0 -97
  107. package/dist/energyspecific.js.map +0 -1
  108. package/dist/helpers.d.ts +0 -2
  109. package/dist/helpers.js +0 -10
  110. package/dist/helpers.js.map +0 -1
  111. package/dist/index.d.ts +0 -15
  112. package/dist/index.js +0 -15
  113. package/dist/index.js.map +0 -1
  114. package/dist/partner.d.ts +0 -23
  115. package/dist/partner.js +0 -31
  116. package/dist/partner.js.map +0 -1
  117. package/dist/signing/crypto.d.ts +0 -10
  118. package/dist/signing/crypto.js +0 -26
  119. package/dist/signing/crypto.js.map +0 -1
  120. package/dist/signing/errors.d.ts +0 -29
  121. package/dist/signing/errors.js +0 -40
  122. package/dist/signing/errors.js.map +0 -1
  123. package/dist/signing/session.d.ts +0 -69
  124. package/dist/signing/session.js +0 -102
  125. package/dist/signing/session.js.map +0 -1
  126. package/dist/tariff.js +0 -302
  127. package/dist/tariff.js.map +0 -1
  128. package/dist/teslafleetapi.d.ts +0 -58
  129. package/dist/teslafleetapi.js +0 -120
  130. package/dist/teslafleetapi.js.map +0 -1
  131. package/dist/teslemetry.d.ts +0 -29
  132. package/dist/teslemetry.js +0 -39
  133. package/dist/teslemetry.js.map +0 -1
  134. package/dist/tessie.d.ts +0 -23
  135. package/dist/tessie.js +0 -28
  136. package/dist/tessie.js.map +0 -1
  137. package/dist/types/commands.d.ts +0 -44
  138. package/dist/types/commands.js +0 -11
  139. package/dist/types/commands.js.map +0 -1
  140. package/dist/types/live_status.d.ts +0 -26
  141. package/dist/types/live_status.js +0 -2
  142. package/dist/types/live_status.js.map +0 -1
  143. package/dist/types/products.d.ts +0 -54
  144. package/dist/types/products.js +0 -2
  145. package/dist/types/products.js.map +0 -1
  146. package/dist/types/responses.d.ts +0 -5
  147. package/dist/types/responses.js +0 -2
  148. package/dist/types/responses.js.map +0 -1
  149. package/dist/types/site_info.d.ts +0 -150
  150. package/dist/types/site_info.js +0 -2
  151. package/dist/types/site_info.js.map +0 -1
  152. package/dist/types/vehicle.d.ts +0 -23
  153. package/dist/types/vehicle.js +0 -10
  154. package/dist/types/vehicle.js.map +0 -1
  155. package/dist/types/vehicle_data.d.ts +0 -274
  156. package/dist/types/vehicle_data.js +0 -2
  157. package/dist/types/vehicle_data.js.map +0 -1
  158. package/dist/user.d.ts +0 -16
  159. package/dist/user.js +0 -26
  160. package/dist/user.js.map +0 -1
  161. package/dist/vehicle.d.ts +0 -548
  162. package/dist/vehicle.js +0 -774
  163. package/dist/vehicle.js.map +0 -1
  164. package/dist/vehiclesigned.js +0 -19
  165. package/dist/vehiclesigned.js.map +0 -1
  166. package/dist/vehiclespecific.d.ts +0 -432
  167. package/dist/vehiclespecific.js +0 -601
  168. package/dist/vehiclespecific.js.map +0 -1
  169. package/src/charging.ts +0 -66
  170. package/src/commands.ts +0 -1134
  171. package/src/energyspecific.ts +0 -116
  172. package/src/helpers.ts +0 -11
  173. package/src/index.ts +0 -21
  174. package/src/partner.ts +0 -37
  175. package/src/signing/crypto.ts +0 -29
  176. package/src/signing/errors.ts +0 -50
  177. package/src/signing/session.ts +0 -132
  178. package/src/tariff.ts +0 -375
  179. package/src/teslafleetapi.ts +0 -182
  180. package/src/teslemetry.ts +0 -54
  181. package/src/tessie.ts +0 -42
  182. package/src/types/commands.ts +0 -62
  183. package/src/types/live_status.ts +0 -27
  184. package/src/types/products.ts +0 -61
  185. package/src/types/responses.ts +0 -1
  186. package/src/types/site_info.ts +0 -159
  187. package/src/types/vehicle.ts +0 -33
  188. package/src/types/vehicle_data.ts +0 -286
  189. package/src/user.ts +0 -35
  190. package/src/vehicle.ts +0 -886
  191. package/src/vehiclesigned.ts +0 -20
  192. package/src/vehiclespecific.ts +0 -818
@@ -0,0 +1,804 @@
1
+ import { AutoSeat, ClimateModes, Models, Seats } from "./const.mjs";
2
+ import VehicleSpecific from "./vehiclespecific.mjs";
3
+ import VehicleSigned from "./vehiclesigned.mjs";
4
+ // src/vehicle.ts
5
+ var Vehicle = class {
6
+ parent;
7
+ /** Fallback private key for `signed()` when a call site doesn't pass one explicitly. */
8
+ private_key;
9
+ constructor(parent) {
10
+ this.parent = parent;
11
+ }
12
+ /**
13
+ * Returns a class for a single vehicle.
14
+ * @param vin
15
+ * @returns
16
+ */
17
+ specific(vin) {
18
+ return new VehicleSpecific(this, vin);
19
+ }
20
+ /**
21
+ * Returns a class for a single vehicle that signs commands with the
22
+ * Tesla Vehicle Command Protocol and dispatches them through the Fleet
23
+ * API `/signed_command` endpoint, instead of the plaintext REST commands.
24
+ * @param vin
25
+ * @param private_key Raw 32-byte P-256 private key scalar. Falls back to `this.private_key`.
26
+ * @param public_key Uncompressed P-256 public key point. Derived from `private_key` if omitted.
27
+ */
28
+ signed(vin, private_key, public_key) {
29
+ return new VehicleSigned(this, vin, private_key, public_key);
30
+ }
31
+ /**
32
+ * Return the vehicle model name
33
+ * @param vin
34
+ * @returns
35
+ */
36
+ model(vin) {
37
+ return Models?.[vin[3]] || "Unknown";
38
+ }
39
+ /**
40
+ * Return if the vehicle was build before 2021 and cannot sleep without a break
41
+ * @param vin
42
+ * @returns
43
+ */
44
+ pre2021(vin) {
45
+ return (vin[3] === "S" || vin[3] === "X") && vin[9] < "L";
46
+ }
47
+ /**
48
+ * Controls the front (which_trunk: "front") or rear (which_trunk: "rear") trunk.
49
+ * @param vehicle_tag VIN or id field of a vehicle
50
+ * @param which_trunk "front" or "rear"
51
+ */
52
+ async actuate_truck(vehicle_tag, which_trunk) {
53
+ return this.parent._request("POST", `api/1/vehicles/${vehicle_tag}/command/actuate_trunk`, null, { which_trunk });
54
+ }
55
+ /**
56
+ * Adjusts vehicle media playback volume.
57
+ * @param vehicle_tag VIN or id field of a vehicle
58
+ * @param volume A floating point number from 0.0 to 11.0.
59
+ */
60
+ async adjust_volume(vehicle_tag, volume) {
61
+ if (volume < 0 || volume > 11) throw new Error("Volume must a number from 0.0 to 11.0");
62
+ return this.parent._request("POST", `api/1/vehicles/${vehicle_tag}/command/adjust_volume`, null, { volume });
63
+ }
64
+ /**
65
+ * Starts climate preconditioning.
66
+ * @param vehicle_tag VIN or id field of a vehicle
67
+ */
68
+ async auto_conditioning_start(vehicle_tag) {
69
+ return this.parent._request("POST", `api/1/vehicles/${vehicle_tag}/command/auto_conditioning_start`);
70
+ }
71
+ /**
72
+ * Stops climate preconditioning.
73
+ * @param vehicle_tag VIN or id field of a vehicle
74
+ */
75
+ async auto_conditioning_stop(vehicle_tag) {
76
+ return this.parent._request("POST", `api/1/vehicles/${vehicle_tag}/command/auto_conditioning_stop`);
77
+ }
78
+ /**
79
+ * Cancels the countdown to install the vehicle software update.
80
+ * @param vehicle_tag VIN or id field of a vehicle
81
+ */
82
+ async cancel_software_update(vehicle_tag) {
83
+ return this.parent._request("POST", `api/1/vehicles/${vehicle_tag}/command/cancel_software_update`);
84
+ }
85
+ /**
86
+ * Charges in max range mode -- we recommend limiting the use of this mode to long trips.
87
+ * @param vehicle_tag VIN or id field of a vehicle
88
+ */
89
+ async charge_max_range(vehicle_tag) {
90
+ return this.parent._request("POST", `api/1/vehicles/${vehicle_tag}/command/charge_max_range`);
91
+ }
92
+ /**
93
+ * Closes the charge port door.
94
+ * @param vehicle_tag VIN or id field of a vehicle
95
+ */
96
+ async charge_port_door_close(vehicle_tag) {
97
+ return this.parent._request("POST", `api/1/vehicles/${vehicle_tag}/command/charge_port_door_close`);
98
+ }
99
+ /**
100
+ * Opens the charge port door.
101
+ * @param vehicle_tag VIN or id field of a vehicle
102
+ */
103
+ async charge_port_door_open(vehicle_tag) {
104
+ return this.parent._request("POST", `api/1/vehicles/${vehicle_tag}/command/charge_port_door_open`);
105
+ }
106
+ /**
107
+ * Charges in Standard mode.
108
+ * @param vehicle_tag VIN or id field of a vehicle
109
+ */
110
+ async charge_standard(vehicle_tag) {
111
+ return this.parent._request("POST", `api/1/vehicles/${vehicle_tag}/command/charge_standard`);
112
+ }
113
+ /**
114
+ * Starts charging the vehicle.
115
+ * @param vehicle_tag VIN or id field of a vehicle
116
+ */
117
+ async charge_start(vehicle_tag) {
118
+ return this.parent._request("POST", `api/1/vehicles/${vehicle_tag}/command/charge_start`);
119
+ }
120
+ /**
121
+ * Stops charging the vehicle.
122
+ * @param vehicle_tag VIN or id field of a vehicle
123
+ */
124
+ async charge_stop(vehicle_tag) {
125
+ return this.parent._request("POST", `api/1/vehicles/${vehicle_tag}/command/charge_stop`);
126
+ }
127
+ /**
128
+ * Deactivates PIN to Drive and resets the associated PIN for vehicles running firmware versions 2023.44+. This command is only accessible to fleet managers or owners.
129
+ * @param vehicle_tag VIN or id field of a vehicle
130
+ */
131
+ async clear_pin_to_drive_admin(vehicle_tag) {
132
+ return this.parent._request("POST", `api/1/vehicles/${vehicle_tag}/command/clear_pin_to_drive_admin`);
133
+ }
134
+ /**
135
+ * Locks the vehicle.
136
+ * @param vehicle_tag VIN or id field of a vehicle
137
+ */
138
+ async door_lock(vehicle_tag) {
139
+ return this.parent._request("POST", `api/1/vehicles/${vehicle_tag}/command/door_lock`);
140
+ }
141
+ /**
142
+ * Unlocks the vehicle.
143
+ * @param vehicle_tag VIN or id field of a vehicle
144
+ */
145
+ async door_unlock(vehicle_tag) {
146
+ return this.parent._request("POST", `api/1/vehicles/${vehicle_tag}/command/door_unlock`);
147
+ }
148
+ /**
149
+ * Erases user's data from the user interface. Requires the vehicle to be in park.
150
+ * @param vehicle_tag VIN or id field of a vehicle
151
+ */
152
+ async erase_user_data(vehicle_tag) {
153
+ return this.parent._request("POST", `api/1/vehicles/${vehicle_tag}/command/erase_user_data`);
154
+ }
155
+ /**
156
+ * Briefly flashes the vehicle headlights. Requires the vehicle to be in park.
157
+ * @param vehicle_tag VIN or id field of a vehicle
158
+ */
159
+ async flash_lights(vehicle_tag) {
160
+ return this.parent._request("POST", `api/1/vehicles/${vehicle_tag}/command/flash_lights`);
161
+ }
162
+ /**
163
+ * Restricts certain vehicle UI functionality from guest users
164
+ * @param vehicle_tag VIN or id field of a vehicle
165
+ * @param enable `true` or `false`
166
+ */
167
+ async guest_mode(vehicle_tag, enable) {
168
+ return this.parent._request("POST", `api/1/vehicles/${vehicle_tag}/command/guest_mode`, null, { enable });
169
+ }
170
+ /**
171
+ * Honks the vehicle horn. Requires the vehicle to be in park.
172
+ * @param vehicle_tag VIN or id field of a vehicle
173
+ */
174
+ async honk_horn(vehicle_tag) {
175
+ return this.parent._request("POST", `api/1/vehicles/${vehicle_tag}/command/honk_horn`);
176
+ }
177
+ /**
178
+ * Advances media player to next favorite track.
179
+ * @param vehicle_tag VIN or id field of a vehicle
180
+ */
181
+ async media_next_fav(vehicle_tag) {
182
+ return this.parent._request("POST", `api/1/vehicles/${vehicle_tag}/command/media_next_fav`);
183
+ }
184
+ /**
185
+ * Advances media player to next track.
186
+ * @param vehicle_tag VIN or id field of a vehicle
187
+ */
188
+ async media_next_track(vehicle_tag) {
189
+ return this.parent._request("POST", `api/1/vehicles/${vehicle_tag}/command/media_next_track`);
190
+ }
191
+ /**
192
+ * Advances media player to previous favorite track.
193
+ * @param vehicle_tag VIN or id field of a vehicle
194
+ */
195
+ async media_prev_fav(vehicle_tag) {
196
+ return this.parent._request("POST", `api/1/vehicles/${vehicle_tag}/command/media_prev_fav`);
197
+ }
198
+ /**
199
+ * Advances media player to previous track.
200
+ * @param vehicle_tag VIN or id field of a vehicle
201
+ */
202
+ async media_prev_track(vehicle_tag) {
203
+ return this.parent._request("POST", `api/1/vehicles/${vehicle_tag}/command/media_prev_track`);
204
+ }
205
+ /**
206
+ * Toggles current play/pause state.
207
+ * @param vehicle_tag VIN or id field of a vehicle
208
+ */
209
+ async media_toggle_playback(vehicle_tag) {
210
+ return this.parent._request("POST", `api/1/vehicles/${vehicle_tag}/command/media_toggle_playback`);
211
+ }
212
+ /**
213
+ * Turns the volume down by one.
214
+ * @param vehicle_tag VIN or id field of a vehicle
215
+ */
216
+ async media_volume_down(vehicle_tag) {
217
+ return this.parent._request("POST", `api/1/vehicles/${vehicle_tag}/command/media_volume_down`);
218
+ }
219
+ /**
220
+ * Start navigation to given coordinates. Order can be used to specify order of multiple stops.
221
+ * @param vehicle_tag VIN or id field of a vehicle
222
+ * @param lat Latitude
223
+ * @param lon Longitude
224
+ * @param order Order of multiple stops
225
+ */
226
+ async navigation_gps_request(vehicle_tag, lat, lon, order) {
227
+ return this.parent._request("POST", `api/1/vehicles/${vehicle_tag}/command/navigation_gps_request`, null, {
228
+ lat,
229
+ lon,
230
+ order
231
+ });
232
+ }
233
+ /**
234
+ * Sends a location to the in-vehicle navigation system.
235
+ * @param vehicle_tag VIN or id field of a vehicle
236
+ * @param type "share_ext_content_raw"
237
+ * @param locale ISO locale such as "en-US"
238
+ * @param timestamp_ms
239
+ */
240
+ async navigation_request(vehicle_tag, value, locale, type = "share_ext_content_raw") {
241
+ return this.parent._request("POST", `api/1/vehicles/${vehicle_tag}/command/navigation_request`, null, {
242
+ type,
243
+ locale,
244
+ timestamp_ms: String(Date.now()),
245
+ value: { "android.intent.extra.TEXT": value }
246
+ });
247
+ }
248
+ /**
249
+ * Start navigation to a supercharger.
250
+ * @param vehicle_tag VIN or id field of a vehicle
251
+ * @param id Supercharger ID
252
+ * @param order Order of multiple stops
253
+ * @returns
254
+ */
255
+ async navigation_sc_request(vehicle_tag, id, order) {
256
+ return this.parent._request("POST", `api/1/vehicles/${vehicle_tag}/command/navigation_sc_request`, null, {
257
+ id,
258
+ order
259
+ });
260
+ }
261
+ /**
262
+ * Sets automatic seat heating and cooling.
263
+ * @param vehicle_tag VIN or id field of a vehicle
264
+ * @param auto_seat_position `AutoSeat` position (1-indexed: front left is 1, front right is 2)
265
+ * @param auto_climate_on `true` or `false`
266
+ */
267
+ async remote_auto_seat_climate_request(vehicle_tag, auto_seat_position, auto_climate_on) {
268
+ if (typeof auto_seat_position === "string") auto_seat_position = AutoSeat[auto_seat_position];
269
+ return this.parent._request("POST", `api/1/vehicles/${vehicle_tag}/command/remote_auto_seat_climate_request`, null, {
270
+ auto_seat_position,
271
+ auto_climate_on
272
+ });
273
+ }
274
+ /**
275
+ * Sets automatic steering wheel heating on/off.
276
+ * @param vehicle_tag VIN or id field of a vehicle
277
+ * @param on `true` or `false`
278
+ */
279
+ async remote_auto_steering_wheel_heat_climate_request(vehicle_tag, on) {
280
+ return this.parent._request("POST", `api/1/vehicles/${vehicle_tag}/command/remote_auto_steering_wheel_heat_climate_request`, null, { on });
281
+ }
282
+ /**
283
+ * Plays a sound through the vehicle external speaker.
284
+ * @param vehicle_tag VIN or id field of a vehicle
285
+ * @param sound Fart is `0`, Locate ping is `2000`
286
+ */
287
+ async remote_boombox(vehicle_tag, sound = 0) {
288
+ return this.parent._request("POST", `api/1/vehicles/${vehicle_tag}/command/remote_boombox`, null, { sound });
289
+ }
290
+ /**
291
+ * Sets seat cooling.
292
+ * @param vehicle_tag VIN or id field of a vehicle
293
+ * @param seat_position Seat position
294
+ * @param seat_cooler_level Cooling level
295
+ */
296
+ async remote_seat_cooler_request(vehicle_tag, seat_position, seat_cooler_level) {
297
+ if (typeof seat_position === "string") seat_position = Seats[seat_position];
298
+ return this.parent._request("POST", `api/1/vehicles/${vehicle_tag}/command/remote_seat_cooler_request`, null, {
299
+ seat_position,
300
+ seat_cooler_level
301
+ });
302
+ }
303
+ /**
304
+ * Sets seat heating.
305
+ * @param vehicle_tag VIN or id field of a vehicle
306
+ * @param seat_position Seat position
307
+ * @param seat_heater_level Heating level
308
+ */
309
+ async remote_seat_heater_request(vehicle_tag, seat_position, seat_heater_level) {
310
+ if (typeof seat_position === "string") seat_position = Seats[seat_position];
311
+ return this.parent._request("POST", `api/1/vehicles/${vehicle_tag}/command/remote_seat_heater_request`, null, {
312
+ seat_position,
313
+ seat_heater_level
314
+ });
315
+ }
316
+ /**
317
+ * Starts the vehicle remotely. Requires keyless driving to be enabled.
318
+ * @param vehicle_tag VIN or id field of a vehicle
319
+ */
320
+ async remote_start_drive(vehicle_tag) {
321
+ return this.parent._request("POST", `api/1/vehicles/${vehicle_tag}/command/remote_start_drive`);
322
+ }
323
+ /**
324
+ * Sets steering wheel heat level.
325
+ * @param vehicle_tag VIN or id field of a vehicle
326
+ * @param level Heating level
327
+ */
328
+ async remote_steering_wheel_heat_level_request(vehicle_tag, level) {
329
+ return this.parent._request("POST", `api/1/vehicles/${vehicle_tag}/command/remote_steering_wheel_heat_level_request`, null, { level });
330
+ }
331
+ /**
332
+ * Sets steering wheel heating on/off. For vehicles that do not support auto steering wheel heat.
333
+ * @param vehicle_tag VIN or id field of a vehicle
334
+ * @param on `true` or `false`
335
+ */
336
+ async remote_steering_wheel_heater_request(vehicle_tag, on) {
337
+ return this.parent._request("POST", `api/1/vehicles/${vehicle_tag}/command/remote_steering_wheel_heater_request`, null, { on });
338
+ }
339
+ /**
340
+ * Removes PIN to Drive. Requires the car to be in Pin to Drive mode and not in Valet mode. Note that this only works if PIN to Drive is not active. This command also requires the Tesla Vehicle Command Protocol - for more information, please see refer to the documentation here.
341
+ * @param vehicle_tag VIN or id field of a vehicle
342
+ */
343
+ async reset_pin_to_drive_pin(vehicle_tag) {
344
+ return this.parent._request("POST", `api/1/vehicles/${vehicle_tag}/command/reset_pin_to_drive_pin`);
345
+ }
346
+ /**
347
+ * Removes PIN for Valet Mode.
348
+ * @param vehicle_tag VIN or id field of a vehicle
349
+ */
350
+ async reset_valet_pin(vehicle_tag) {
351
+ return this.parent._request("POST", `api/1/vehicles/${vehicle_tag}/command/reset_valet_pin`);
352
+ }
353
+ /**
354
+ * Schedules a vehicle software update (over the air "OTA") to be installed in the future.
355
+ * @param vehicle_tag VIN or id field of a vehicle
356
+ * @param offset_sec Offset in seconds
357
+ */
358
+ async schedule_software_update(vehicle_tag, offset_sec) {
359
+ return this.parent._request("POST", `api/1/vehicles/${vehicle_tag}/command/schedule_software_update`, null, { offset_sec });
360
+ }
361
+ /**
362
+ * Turns Bioweapon Defense Mode on and off.
363
+ * @param vehicle_tag VIN or id field of a vehicle
364
+ * @param on `true` or `false`
365
+ * @param manual_override `true` or `false`
366
+ */
367
+ async set_bioweapon_mode(vehicle_tag, on, manual_override) {
368
+ return this.parent._request("POST", `api/1/vehicles/${vehicle_tag}/command/set_bioweapon_mode`, null, {
369
+ on,
370
+ manual_override
371
+ });
372
+ }
373
+ /**
374
+ * Sets the vehicle overheat protection.
375
+ * @param vehicle_tag VIN or id field of a vehicle
376
+ * @param on `true` or `false`
377
+ * @param fan_only `true` or `false`
378
+ */
379
+ async set_cabin_overheat_protection(vehicle_tag, on, fan_only) {
380
+ return this.parent._request("POST", `api/1/vehicles/${vehicle_tag}/command/set_cabin_overheat_protection`, null, {
381
+ on,
382
+ fan_only
383
+ });
384
+ }
385
+ /**
386
+ * Sets the vehicle's charge limit to a custom percentage.
387
+ * @param vehicle_tag VIN or id field of a vehicle
388
+ * @param percent Charge limit percentage typically between 50-100
389
+ */
390
+ async set_charge_limit(vehicle_tag, percent) {
391
+ return this.parent._request("POST", `api/1/vehicles/${vehicle_tag}/command/set_charge_limit`, null, { percent });
392
+ }
393
+ /**
394
+ * Sets the charge limit to the standard setting.
395
+ * @param vehicle_tag VIN or id field of a vehicle
396
+ * @param percent Current limit in Amps typically between 5-32
397
+ */
398
+ async set_charging_amps(vehicle_tag, charging_amps) {
399
+ return this.parent._request("POST", `api/1/vehicles/${vehicle_tag}/command/set_charging_amps`, null, { charging_amps });
400
+ }
401
+ /**
402
+ * Enables climate keeper mode.
403
+ * @param vehicle_tag VIN or id field of a vehicle
404
+ * @param climate_keeper_mode `0` is Off, `1` is Keep, `2` is Dog, `3` is Camp
405
+ */
406
+ async set_climate_keeper_mode(vehicle_tag, climate_keeper_mode) {
407
+ if (typeof climate_keeper_mode === "string") climate_keeper_mode = ClimateModes[climate_keeper_mode];
408
+ return this.parent._request("POST", `api/1/vehicles/${vehicle_tag}/command/set_climate_keeper_mode`, null, { climate_keeper_mode });
409
+ }
410
+ /**
411
+ * Adjusts the Cabin Overheat Protection temperature (COP).
412
+ * @param vehicle_tag VIN or id field of a vehicle
413
+ * @param cop_temp Integer representing Low (0/30C/90F), Medium (1/35C/95F), or High (2/40C/100F)
414
+ */
415
+ async set_cop_temp(vehicle_tag, cop_temp) {
416
+ if (cop_temp >= 90) cop_temp = (cop_temp - 90) / 5;
417
+ else if (cop_temp >= 30) cop_temp = (cop_temp - 30) / 5;
418
+ return this.parent._request("POST", `api/1/vehicles/${vehicle_tag}/command/set_cop_temp`, null, { cop_temp });
419
+ }
420
+ /**
421
+ * Sets a four-digit passcode for PIN to Drive. This PIN must then be entered before the vehicle can be driven.
422
+ * @param vehicle_tag VIN or id field of a vehicle
423
+ * @param on `true` or `false`
424
+ * @param password Four-digit passcode
425
+ */
426
+ async set_pin_to_drive(vehicle_tag, on, password) {
427
+ return this.parent._request("POST", `api/1/vehicles/${vehicle_tag}/command/set_pin_to_drive`, null, {
428
+ on,
429
+ password: String(password)
430
+ });
431
+ }
432
+ /**
433
+ * Sets an override for preconditioning — it should default to empty if no override is used.
434
+ * Also known as "Defrost Mode"
435
+ * @param vehicle_tag VIN or id field of a vehicle
436
+ * @param on `true` or `false`
437
+ * @param manual_override `true` or `false`
438
+ */
439
+ async set_preconditioning_max(vehicle_tag, on, manual_override) {
440
+ return this.parent._request("POST", `api/1/vehicles/${vehicle_tag}/command/set_preconditioning_max`, null, {
441
+ on,
442
+ manual_override
443
+ });
444
+ }
445
+ /**
446
+ * Sets a time at which charging should be completed. The time parameter is minutes after midnight (e.g: time=120 schedules charging for 2:00am vehicle local time).
447
+ * @param vehicle_tag VIN or id field of a vehicle
448
+ * @param enable `true` or `false`
449
+ * @param time Minutes after midnight
450
+ */
451
+ async set_scheduled_charging(vehicle_tag, enable, time) {
452
+ return this.parent._request("POST", `api/1/vehicles/${vehicle_tag}/command/set_scheduled_charging`, null, {
453
+ enable,
454
+ time
455
+ });
456
+ }
457
+ /**
458
+ * Sets a time at which departure should be completed. The time parameter is minutes after midnight (e.g: time=120 schedules departure for 2:00am vehicle local time).
459
+ * @param vehicle_tag VIN or id field of a vehicle
460
+ * @param enable `true` or `false`
461
+ * @param preconditioning_enabled `true` or `false`
462
+ * @param preconditioning_weekdays_only `true` or `false`
463
+ * @param departure_time Minutes after midnight
464
+ * @param off_peak_charging_enabled `true` or `false`
465
+ * @param off_peak_charging_weekdays_only `true` or `false`
466
+ * @param end_off_peak_time Minutes after midnight
467
+ */
468
+ async set_scheduled_departure(vehicle_tag, enable = true, preconditioning_enabled = false, preconditioning_weekdays_only = false, departure_time = 0, off_peak_charging_enabled = false, off_peak_charging_weekdays_only = false, end_off_peak_time = 0) {
469
+ return this.parent._request("POST", `api/1/vehicles/${vehicle_tag}/command/set_scheduled_departure`, null, {
470
+ enable,
471
+ preconditioning_enabled,
472
+ preconditioning_weekdays_only,
473
+ departure_time,
474
+ off_peak_charging_enabled,
475
+ off_peak_charging_weekdays_only,
476
+ end_off_peak_time
477
+ });
478
+ }
479
+ /**
480
+ * Enables and disables Sentry Mode. Sentry Mode allows customers to watch the vehicle cameras live from the mobile app, as well as record sentry events.
481
+ * @param vehicle_tag VIN or id field of a vehicle
482
+ * @param on `true` or `false`
483
+ */
484
+ async set_sentry_mode(vehicle_tag, on) {
485
+ return this.parent._request("POST", `api/1/vehicles/${vehicle_tag}/command/set_sentry_mode`, null, { on });
486
+ }
487
+ /**
488
+ * Sets the driver and/or passenger-side cabin temperature (and other zones if sync is enabled).
489
+ * @param vehicle_tag VIN or id field of a vehicle
490
+ * @param driver_temp Driver temperature
491
+ * @param passenger_temp Passenger temperature
492
+ */
493
+ async set_temps(vehicle_tag, driver_temp, passenger_temp) {
494
+ return this.parent._request("POST", `api/1/vehicles/${vehicle_tag}/command/set_temps`, null, {
495
+ driver_temp,
496
+ passenger_temp
497
+ });
498
+ }
499
+ /**
500
+ * Turns on Valet Mode and sets a four-digit passcode that must then be entered to disable Valet Mode.
501
+ * @param vehicle_tag VIN or id field of a vehicle
502
+ * @param on `true` or `false`
503
+ * @param password Four-digit passcode
504
+ */
505
+ async set_valet_mode(vehicle_tag, on, password) {
506
+ return this.parent._request("POST", `api/1/vehicles/${vehicle_tag}/command/set_valet_mode`, null, {
507
+ on,
508
+ password: String(password)
509
+ });
510
+ }
511
+ /**
512
+ * Changes the name of a vehicle. This command also requires the Tesla Vehicle Command Protocol - for more information, please see refer to the documentation here.
513
+ * @param vehicle_tag VIN or id field of a vehicle
514
+ * @param vehicle_name New name
515
+ */
516
+ async set_vehicle_name(vehicle_tag, vehicle_name) {
517
+ return this.parent._request("POST", `api/1/vehicles/${vehicle_tag}/command/set_vehicle_name`, null, { vehicle_name });
518
+ }
519
+ /**
520
+ * Activates Speed Limit Mode with a four-digit PIN.
521
+ * @param vehicle_tag VIN or id field of a vehicle
522
+ * @param pin Four-digit PIN
523
+ */
524
+ async speed_limit_activate(vehicle_tag, pin) {
525
+ return this.parent._request("POST", `api/1/vehicles/${vehicle_tag}/command/speed_limit_activate`, null, { pin: String(pin) });
526
+ }
527
+ /**
528
+ * Deactivates Speed Limit Mode and resets the associated PIN.
529
+ * @param vehicle_tag VIN or id field of a vehicle
530
+ * @param pin Four-digit PIN
531
+ */
532
+ async speed_limit_clear_pin(vehicle_tag, pin) {
533
+ return this.parent._request("POST", `api/1/vehicles/${vehicle_tag}/command/speed_limit_clear_pin`, null, { pin: String(pin) });
534
+ }
535
+ /**
536
+ * Deactivates Speed Limit Mode and resets the associated PIN for vehicles running firmware versions 2023.38+. This command is only accessible to fleet managers or owners.
537
+ * @param vehicle_tag VIN or id field of a vehicle
538
+ */
539
+ async speed_limit_clear_pin_admin(vehicle_tag) {
540
+ return this.parent._request("POST", `api/1/vehicles/${vehicle_tag}/command/speed_limit_clear_pin_admin`);
541
+ }
542
+ /**
543
+ * Deactivates Speed Limit Mode.
544
+ * @param vehicle_tag VIN or id field of a vehicle
545
+ * @param pin Four-digit PIN
546
+ */
547
+ async speed_limit_deactivate(vehicle_tag, pin) {
548
+ return this.parent._request("POST", `api/1/vehicles/${vehicle_tag}/command/speed_limit_deactivate`, null, { pin: String(pin) });
549
+ }
550
+ /**
551
+ * Sets the maximum speed allowed when Speed Limit Mode is active.
552
+ * @param vehicle_tag VIN or id field of a vehicle
553
+ * @param limit_mph Maximum speed in MPH
554
+ */
555
+ async speed_limit_set_limit(vehicle_tag, limit_mph) {
556
+ return this.parent._request("POST", `api/1/vehicles/${vehicle_tag}/command/speed_limit_set_limit`, null, { limit_mph });
557
+ }
558
+ /**
559
+ * Controls the panoramic sunroof on the Model S.
560
+ * @param vehicle_tag VIN or id field of a vehicle
561
+ * @param state "stop", "close" or "vent"
562
+ */
563
+ async sun_roof_control(vehicle_tag, state) {
564
+ return this.parent._request("POST", `api/1/vehicles/${vehicle_tag}/command/sun_roof_control`, null, { state });
565
+ }
566
+ /**
567
+ * Records a drive note. The note parameter is truncated to 80 characters in length.
568
+ * @param vehicle_tag VIN or id field of a vehicle
569
+ * @param note Drive note
570
+ */
571
+ async take_drivenote(vehicle_tag, note) {
572
+ return this.parent._request("POST", `api/1/vehicles/${vehicle_tag}/command/take_drivenote`, null, { note });
573
+ }
574
+ /**
575
+ * Turns on HomeLink (used to open and close garage doors).
576
+ * @param vehicle_tag VIN or id field of a vehicle
577
+ * @param token
578
+ * @param lat Latitude
579
+ * @param lon Longitude
580
+ */
581
+ async trigger_homelink(vehicle_tag, lat, lon, token) {
582
+ return this.parent._request("POST", `api/1/vehicles/${vehicle_tag}/command/trigger_homelink`, null, {
583
+ token,
584
+ lat,
585
+ lon
586
+ });
587
+ }
588
+ /**
589
+ * Upcoming calendar entries stored on the vehicle.
590
+ * @param vehicle_tag VIN or id field of a vehicle
591
+ * @param calendar_data Calendar data
592
+ */
593
+ async upcoming_calendar_entries(vehicle_tag, calendar_data) {
594
+ return this.parent._request("POST", `api/1/vehicles/${vehicle_tag}/command/upcoming_calendar_entries`, null, { calendar_data });
595
+ }
596
+ /**
597
+ * Control the windows of a parked vehicle. Supported commands: vent and close. When closing, specify lat and lon of user to ensure they are within range of vehicle (unless this is an M3 platform vehicle).
598
+ * @param vehicle_tag VIN or id field of a vehicle
599
+ * @param command "vent" or "close"
600
+ * @param lat Latitude
601
+ * @param lon Longitude
602
+ */
603
+ async window_control(vehicle_tag, command, lat, lon) {
604
+ return this.parent._request("POST", `api/1/vehicles/${vehicle_tag}/command/window_control`, null, {
605
+ command,
606
+ lat,
607
+ lon
608
+ });
609
+ }
610
+ /**
611
+ * Returns all allowed drivers for a vehicle. This endpoint is only available for the vehicle owner.
612
+ * @param vehicle_tag VIN or id field of a vehicle
613
+ */
614
+ async drivers(vehicle_tag) {
615
+ return this.parent._request("GET", `api/1/vehicles/${vehicle_tag}/drivers`).then(({ response }) => response);
616
+ }
617
+ /**
618
+ * Removes driver access from a vehicle. Share users can only remove their own access. Owners can remove share access or their own.
619
+ * @param vehicle_tag VIN or id field of a vehicle
620
+ * @param share_user_id
621
+ */
622
+ async drivers_remove(vehicle_tag, share_user_id) {
623
+ return this.parent._request("DELETE", `api/1/vehicles/${vehicle_tag}/drivers`, null, { share_user_id });
624
+ }
625
+ /**
626
+ * Returns eligible vehicle subscriptions.
627
+ * @param vin Vehicle Identification Number
628
+ */
629
+ async eligible_subscriptions(vin) {
630
+ return this.parent._request("GET", "api/1/dx/vehicles/subscriptions/eligibility", { vin });
631
+ }
632
+ /**
633
+ * Returns eligibile vehicle upgrades.
634
+ * @param vin Vehicle Identification Number
635
+ */
636
+ async eligible_upgrades(vin) {
637
+ return this.parent._request("GET", "api/1/dx/vehicles/upgrades/eligibility", { vin });
638
+ }
639
+ /**
640
+ * Checks whether vehicles can accept Tesla commands protocol for the partner's public key
641
+ * @param vins list of Vehicle Identification Number
642
+ * @returns
643
+ */
644
+ async fleet_status(vins) {
645
+ return this.parent._request("POST", "api/1/vehicles/fleet_status", null, { vins });
646
+ }
647
+ /**
648
+ * Configures vehicles to connect to self-hosted fleet-telemetry server. This endpoint has concurrency 1 (status 429 will be returned if many calls are made at the same time). Multiple vehicles can be configured with a single call.
649
+ * @param config A dictionary description the fleet telemetry configuration
650
+ * @returns
651
+ */
652
+ async fleet_telemetry_config(config) {
653
+ return this.parent._request("POST", "api/1/vehicles/fleet_telemetry_config", null, config);
654
+ }
655
+ /**
656
+ * Disconnects vehicles to stream telemetry data to self hosted fleet-telemetry server.
657
+ * @param vehicle_tag VIN or id field of a vehicle
658
+ * @returns
659
+ */
660
+ async fleet_telemetry_config_delete(vehicle_tag) {
661
+ return this.parent._request("DELETE", `api/1/vehicles/${vehicle_tag}/fleet_telemetry_config`);
662
+ }
663
+ /**
664
+ * Fetches a vehicle's fleet telemetry config. synced set to true means the vehicle has adopted the target config. synced set to false means the vehicle will attempt to adopt the target config when it next establishes a backend connection.
665
+ * @param vehicle_tag VIN or id field of a vehicle
666
+ * @returns
667
+ */
668
+ async fleet_telemetry_config_get(vehicle_tag) {
669
+ return this.parent._request("GET", `api/1/vehicles/${vehicle_tag}/fleet_telemetry_config`);
670
+ }
671
+ /**
672
+ * Returns vehicles belonging to the account.
673
+ * @param page Page number
674
+ * @param per_page Number of items per page
675
+ */
676
+ async list(page, per_page) {
677
+ return this.parent._request("GET", "api/1/vehicles", {
678
+ page,
679
+ per_page
680
+ });
681
+ }
682
+ /**
683
+ * Returns whether or not mobile access is enabled for the vehicle.
684
+ * @param vehicle_tag VIN or id field of a vehicle
685
+ */
686
+ async mobile_enabled(vehicle_tag) {
687
+ return this.parent._request("GET", `api/1/vehicles/${vehicle_tag}/mobile_enabled`);
688
+ }
689
+ /**
690
+ * Returns the charging sites near the current location of the vehicle.
691
+ * @param vehicle_tag VIN or id field of a vehicle
692
+ * @param count
693
+ * @param radius
694
+ * @param detail
695
+ */
696
+ async nearby_charging_sites(vehicle_tag, count, radius, detail) {
697
+ return this.parent._request("GET", `api/1/vehicles/${vehicle_tag}/nearby_charging_sites`, {
698
+ count,
699
+ radius,
700
+ detail
701
+ });
702
+ }
703
+ /**
704
+ * Returns vehicle option details.
705
+ * @param vin Vehicle Identification Number
706
+ */
707
+ async options(vin) {
708
+ return this.parent._request("GET", "api/1/dx/vehicles/options", { vin }).then(({ codes }) => codes);
709
+ }
710
+ /**
711
+ * List of recent alerts
712
+ * @param vehicle_tag VIN or id field of a vehicle
713
+ */
714
+ async recent_alerts(vehicle_tag) {
715
+ return this.parent._request("GET", `api/1/vehicles/${vehicle_tag}/recent_alerts`);
716
+ }
717
+ /**
718
+ * Returns firmware release notes.
719
+ * @param vehicle_tag VIN or id field of a vehicle
720
+ * @param staged
721
+ * @param language
722
+ */
723
+ async release_notes(vehicle_tag, staged, language) {
724
+ return this.parent._request("GET", `api/1/vehicles/${vehicle_tag}/release_notes`, {
725
+ staged,
726
+ language
727
+ });
728
+ }
729
+ /**
730
+ * Returns service data.
731
+ * @param vehicle_tag VIN or id field of a vehicle
732
+ */
733
+ async service_data(vehicle_tag) {
734
+ return this.parent._request("GET", `api/1/vehicles/${vehicle_tag}/service_data`);
735
+ }
736
+ /**
737
+ * Returns the share invites for a vehicle.
738
+ * @param vehicle_tag VIN or id field of a vehicle
739
+ */
740
+ async share_invites(vehicle_tag) {
741
+ return this.parent._request("GET", `api/1/vehicles/${vehicle_tag}/invitations`);
742
+ }
743
+ /**
744
+ * Creates a share invite for a vehicle.
745
+ * @param vehicle_tag VIN or id field of a vehicle
746
+ */
747
+ async share_invites_create(vehicle_tag) {
748
+ return this.parent._request("POST", `api/1/vehicles/${vehicle_tag}/invitations`);
749
+ }
750
+ /**
751
+ * Redeems a share invite.
752
+ * @param code
753
+ */
754
+ async share_invites_redeem(code) {
755
+ return this.parent._request("POST", "api/1/invitations/redeem", { code });
756
+ }
757
+ /**
758
+ * Revokes a share invite.
759
+ * @param vehicle_tag VIN or id field of a vehicle
760
+ * @param id
761
+ */
762
+ async share_invites_revoke(vehicle_tag, id) {
763
+ return this.parent._request("POST", `api/1/vehicles/${vehicle_tag}/invitations/${id}/revoke`);
764
+ }
765
+ /**
766
+ * Signed Commands is a generic endpoint replacing legacy commands.
767
+ * @param vehicle_tag VIN or id field of a vehicle
768
+ * @param routable_message
769
+ */
770
+ async signed_command(vehicle_tag, routable_message) {
771
+ return this.parent._request("POST", `api/1/vehicles/${vehicle_tag}/signed_command`, null, { routable_message });
772
+ }
773
+ /**
774
+ * Returns information about a vehicle.
775
+ * @param vehicle_tag VIN or id field of a vehicle
776
+ */
777
+ async vehicle(vehicle_tag) {
778
+ return this.parent._request("GET", `api/1/vehicles/${vehicle_tag}`).then(({ response }) => response);
779
+ }
780
+ /**
781
+ * Makes a live call to the vehicle. This may return cached data if the vehicle is offline. For vehicles running firmware versions 2023.38+, location_data is required to fetch vehicle location. This will result in a location sharing icon to show on the vehicle UI.
782
+ * @param vehicle_tag VIN or id field of a vehicle
783
+ * @param endpoints
784
+ */
785
+ async vehicle_data(vehicle_tag, endpoints) {
786
+ if (typeof endpoints === "object") endpoints = endpoints.join(";");
787
+ return this.parent._request("GET", `api/1/vehicles/${vehicle_tag}/vehicle_data`, { endpoints }).then(({ response }) => response);
788
+ }
789
+ /**
790
+ * Wakes the vehicle from sleep, which is a state to minimize idle energy consumption.
791
+ * @param vehicle_tag VIN or id field of a vehicle
792
+ */
793
+ async wake_up(vehicle_tag) {
794
+ return this.parent._request("POST", `api/1/vehicles/${vehicle_tag}/wake_up`);
795
+ }
796
+ /**
797
+ * Returns warranty details.
798
+ * @param vin
799
+ */
800
+ async warranty_details(vin) {
801
+ return this.parent._request("GET", "api/1/dx/warranty/details", { vin });
802
+ }
803
+ };
804
+ export { Vehicle as default };