tesla-fleet-api 0.4.0 → 0.6.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.
- package/README.md +269 -1
- package/dist/_virtual/_rolldown/runtime.cjs +10 -0
- package/dist/bluetooth/adapters/shared.cjs +38 -0
- package/dist/bluetooth/adapters/shared.mjs +36 -0
- package/dist/bluetooth/async.cjs +121 -0
- package/dist/bluetooth/async.d.cts +10 -0
- package/dist/bluetooth/async.d.mts +10 -0
- package/dist/bluetooth/async.mjs +116 -0
- package/dist/bluetooth/broadcast.cjs +153 -0
- package/dist/bluetooth/broadcast.d.cts +59 -0
- package/dist/bluetooth/broadcast.d.mts +59 -0
- package/dist/bluetooth/broadcast.mjs +151 -0
- package/dist/bluetooth/constants.cjs +96 -0
- package/dist/bluetooth/constants.d.cts +68 -0
- package/dist/bluetooth/constants.d.mts +68 -0
- package/dist/bluetooth/constants.mjs +70 -0
- package/dist/bluetooth/framing.cjs +125 -0
- package/dist/bluetooth/framing.d.cts +45 -0
- package/dist/bluetooth/framing.d.mts +45 -0
- package/dist/bluetooth/framing.mjs +122 -0
- package/dist/bluetooth/homey.cjs +165 -0
- package/dist/bluetooth/homey.d.cts +84 -0
- package/dist/bluetooth/homey.d.mts +84 -0
- package/dist/bluetooth/homey.mjs +159 -0
- package/dist/bluetooth/names.cjs +24 -0
- package/dist/bluetooth/names.d.cts +10 -0
- package/dist/bluetooth/names.d.mts +10 -0
- package/dist/bluetooth/names.mjs +20 -0
- package/dist/bluetooth/noble.cjs +178 -0
- package/dist/bluetooth/noble.d.cts +58 -0
- package/dist/bluetooth/noble.d.mts +58 -0
- package/dist/bluetooth/noble.mjs +177 -0
- package/dist/bluetooth/streamglue.cjs +157 -0
- package/dist/bluetooth/streamglue.d.cts +37 -0
- package/dist/bluetooth/streamglue.d.mts +37 -0
- package/dist/bluetooth/streamglue.mjs +154 -0
- package/dist/bluetooth/teslabluetooth.cjs +67 -0
- package/dist/bluetooth/teslabluetooth.d.cts +41 -0
- package/dist/bluetooth/teslabluetooth.d.mts +41 -0
- package/dist/bluetooth/teslabluetooth.mjs +66 -0
- package/dist/bluetooth/transport.cjs +10 -0
- package/dist/bluetooth/transport.d.cts +97 -0
- package/dist/bluetooth/transport.d.mts +97 -0
- package/dist/bluetooth/transport.mjs +10 -0
- package/dist/bluetooth/vehiclebluetooth.cjs +1272 -0
- package/dist/bluetooth/vehiclebluetooth.d.cts +495 -0
- package/dist/bluetooth/vehiclebluetooth.d.mts +495 -0
- package/dist/bluetooth/vehiclebluetooth.mjs +1270 -0
- package/dist/bluetooth/verify.cjs +93 -0
- package/dist/bluetooth/verify.d.cts +35 -0
- package/dist/bluetooth/verify.d.mts +35 -0
- package/dist/bluetooth/verify.mjs +91 -0
- package/dist/bluetooth.cjs +52 -0
- package/dist/bluetooth.d.cts +10 -0
- package/dist/bluetooth.d.mts +10 -0
- package/dist/bluetooth.mjs +9 -0
- package/dist/commands.cjs +1080 -85
- package/dist/commands.d.cts +585 -54
- package/dist/commands.d.mts +583 -51
- package/dist/commands.mjs +1084 -93
- package/dist/const.cjs +22 -0
- package/dist/const.d.cts +21 -0
- package/dist/const.d.mts +21 -0
- package/dist/const.mjs +20 -1
- package/dist/energy.cjs +24 -19
- package/dist/energy.d.cts +21 -15
- package/dist/energy.d.mts +21 -15
- package/dist/energy.mjs +24 -19
- package/dist/energyisland.cjs +38 -0
- package/dist/energyisland.mjs +37 -0
- package/dist/energyparsers.cjs +118 -0
- package/dist/energyparsers.d.cts +39 -0
- package/dist/energyparsers.d.mts +39 -0
- package/dist/energyparsers.mjs +116 -0
- package/dist/energyspecific.cjs +375 -17
- package/dist/energyspecific.d.cts +199 -19
- package/dist/energyspecific.d.mts +197 -16
- package/dist/energyspecific.mjs +370 -18
- package/dist/exceptions.cjs +3 -2
- package/dist/exceptions.d.cts +3 -2
- package/dist/exceptions.d.mts +3 -2
- package/dist/exceptions.mjs +3 -2
- package/dist/funnel.cjs +297 -0
- package/dist/funnel.d.cts +118 -0
- package/dist/funnel.d.mts +118 -0
- package/dist/funnel.mjs +292 -0
- package/dist/index.cjs +61 -0
- package/dist/index.d.cts +22 -8
- package/dist/index.d.mts +22 -8
- package/dist/index.mjs +19 -6
- package/dist/log.cjs +75 -0
- package/dist/log.d.cts +4 -0
- package/dist/log.d.mts +4 -0
- package/dist/log.mjs +71 -0
- package/dist/oauth.cjs +143 -0
- package/dist/oauth.d.cts +69 -0
- package/dist/oauth.d.mts +69 -0
- package/dist/oauth.mjs +143 -0
- package/dist/powerwall/client.cjs +818 -0
- package/dist/powerwall/client.d.cts +297 -0
- package/dist/powerwall/client.d.mts +297 -0
- package/dist/powerwall/client.mjs +807 -0
- package/dist/powerwall/components.cjs +188 -0
- package/dist/powerwall/components.d.cts +45 -0
- package/dist/powerwall/components.d.mts +45 -0
- package/dist/powerwall/components.mjs +182 -0
- package/dist/powerwall/energysite.cjs +216 -0
- package/dist/powerwall/energysite.d.cts +104 -0
- package/dist/powerwall/energysite.d.mts +104 -0
- package/dist/powerwall/energysite.mjs +214 -0
- package/dist/powerwall/exceptions.cjs +59 -0
- package/dist/powerwall/exceptions.d.cts +38 -0
- package/dist/powerwall/exceptions.d.mts +38 -0
- package/dist/powerwall/exceptions.mjs +51 -0
- package/dist/powerwall/gateway.cjs +102 -0
- package/dist/powerwall/gateway.d.cts +57 -0
- package/dist/powerwall/gateway.d.mts +57 -0
- package/dist/powerwall/gateway.mjs +101 -0
- package/dist/powerwall/merge.cjs +163 -0
- package/dist/powerwall/merge.d.cts +63 -0
- package/dist/powerwall/merge.d.mts +63 -0
- package/dist/powerwall/merge.mjs +159 -0
- package/dist/powerwall/models.d.cts +95 -0
- package/dist/powerwall/models.d.mts +95 -0
- package/dist/powerwall/queries.cjs +17 -0
- package/dist/powerwall/queries.mjs +10 -0
- package/dist/powerwall/transport.cjs +232 -0
- package/dist/powerwall/transport.mjs +227 -0
- package/dist/powerwall.cjs +47 -0
- package/dist/powerwall.d.cts +9 -0
- package/dist/powerwall.d.mts +9 -0
- package/dist/powerwall.mjs +8 -0
- package/dist/router/base.cjs +203 -0
- package/dist/router/base.d.cts +112 -0
- package/dist/router/base.d.mts +112 -0
- package/dist/router/base.mjs +200 -0
- package/dist/router/energysite.cjs +65 -0
- package/dist/router/energysite.d.cts +47 -0
- package/dist/router/energysite.d.mts +47 -0
- package/dist/router/energysite.mjs +60 -0
- package/dist/router.cjs +13 -0
- package/dist/router.d.cts +3 -1
- package/dist/router.d.mts +3 -1
- package/dist/router.mjs +3 -1
- package/dist/signing/crypto.cjs +28 -0
- package/dist/signing/crypto.mjs +26 -1
- package/dist/signing/energy.cjs +123 -0
- package/dist/signing/energy.d.cts +45 -0
- package/dist/signing/energy.d.mts +45 -0
- package/dist/signing/energy.mjs +120 -0
- package/dist/signing/jws.cjs +229 -0
- package/dist/signing/jws.d.cts +45 -0
- package/dist/signing/jws.d.mts +45 -0
- package/dist/signing/jws.mjs +211 -0
- package/dist/signing/keys.cjs +191 -0
- package/dist/signing/keys.d.cts +21 -0
- package/dist/signing/keys.d.mts +21 -0
- package/dist/signing/keys.mjs +182 -0
- package/dist/signing/session.cjs +104 -30
- package/dist/signing/session.d.cts +60 -23
- package/dist/signing/session.d.mts +60 -23
- package/dist/signing/session.mjs +105 -31
- package/dist/tariff.cjs +27 -0
- package/dist/tariff.d.cts +11 -0
- package/dist/tariff.d.mts +11 -0
- package/dist/tariff.mjs +27 -1
- package/dist/teslafleetapi.cjs +256 -55
- package/dist/teslafleetapi.d.cts +110 -14
- package/dist/teslafleetapi.d.mts +110 -14
- package/dist/teslafleetapi.mjs +258 -57
- package/dist/teslemetry.cjs +152 -5
- package/dist/teslemetry.d.cts +95 -5
- package/dist/teslemetry.d.mts +93 -3
- package/dist/teslemetry.mjs +151 -6
- package/dist/teslemetryenergy.cjs +287 -0
- package/dist/teslemetryenergy.d.cts +154 -0
- package/dist/teslemetryenergy.d.mts +154 -0
- package/dist/teslemetryenergy.mjs +282 -0
- package/dist/teslemetryvehicle.cjs +407 -0
- package/dist/teslemetryvehicle.d.cts +238 -0
- package/dist/teslemetryvehicle.d.mts +238 -0
- package/dist/teslemetryvehicle.mjs +405 -0
- package/dist/tessie.cjs +42 -5
- package/dist/tessie.d.cts +51 -5
- package/dist/tessie.d.mts +49 -3
- package/dist/tessie.mjs +42 -5
- package/dist/tessievehicle.cjs +514 -0
- package/dist/tessievehicle.d.cts +333 -0
- package/dist/tessievehicle.d.mts +333 -0
- package/dist/tessievehicle.mjs +513 -0
- package/dist/types/live_status.d.cts +16 -16
- package/dist/types/live_status.d.mts +16 -16
- package/dist/types/responses.d.cts +5 -1
- package/dist/types/responses.d.mts +5 -1
- package/dist/types/vehicle.d.cts +7 -1
- package/dist/types/vehicle.d.mts +7 -1
- package/dist/types.d.cts +3 -3
- package/dist/types.d.mts +3 -3
- package/dist/util.cjs +41 -0
- package/dist/util.d.cts +18 -0
- package/dist/util.d.mts +18 -0
- package/dist/util.mjs +40 -0
- package/dist/vehicle.cjs +79 -36
- package/dist/vehicle.d.cts +42 -26
- package/dist/vehicle.d.mts +42 -26
- package/dist/vehicle.mjs +80 -37
- package/dist/vehiclesigned.cjs +20 -5
- package/dist/vehiclesigned.d.cts +14 -5
- package/dist/vehiclesigned.d.mts +14 -5
- package/dist/vehiclesigned.mjs +20 -5
- package/dist/vehiclespecific.cjs +126 -15
- package/dist/vehiclespecific.d.cts +82 -18
- package/dist/vehiclespecific.d.mts +82 -18
- package/dist/vehiclespecific.mjs +126 -15
- package/package.json +56 -3
package/dist/vehiclespecific.mjs
CHANGED
|
@@ -14,8 +14,8 @@ var VehicleSpecific = class {
|
|
|
14
14
|
* Controls the front (which_trunk: "front") or rear (which_trunk: "rear") trunk.
|
|
15
15
|
* @param which_trunk "front" or "rear"
|
|
16
16
|
*/
|
|
17
|
-
async
|
|
18
|
-
return this.parent.
|
|
17
|
+
async actuate_trunk(which_trunk) {
|
|
18
|
+
return this.parent.actuate_trunk(this.vin, which_trunk);
|
|
19
19
|
}
|
|
20
20
|
/**
|
|
21
21
|
* Adjusts vehicle media playback volume.
|
|
@@ -80,9 +80,10 @@ var VehicleSpecific = class {
|
|
|
80
80
|
}
|
|
81
81
|
/**
|
|
82
82
|
* 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.
|
|
83
|
+
* @param pin Optional four-digit PIN
|
|
83
84
|
*/
|
|
84
|
-
async clear_pin_to_drive_admin() {
|
|
85
|
-
return this.parent.clear_pin_to_drive_admin(this.vin);
|
|
85
|
+
async clear_pin_to_drive_admin(pin) {
|
|
86
|
+
return this.parent.clear_pin_to_drive_admin(this.vin, pin);
|
|
86
87
|
}
|
|
87
88
|
/**
|
|
88
89
|
* Locks the vehicle.
|
|
@@ -168,12 +169,13 @@ var VehicleSpecific = class {
|
|
|
168
169
|
}
|
|
169
170
|
/**
|
|
170
171
|
* Sends a location to the in-vehicle navigation system.
|
|
172
|
+
* @param value Destination text
|
|
171
173
|
* @param type "share_ext_content_raw"
|
|
172
|
-
* @param locale ISO locale such as "en-US"
|
|
173
|
-
* @param timestamp_ms
|
|
174
|
+
* @param locale ISO locale such as "en-US". Defaults to `DEFAULT_LOCALE`.
|
|
175
|
+
* @param timestamp_ms Defaults to now
|
|
174
176
|
*/
|
|
175
|
-
async navigation_request(value,
|
|
176
|
-
return this.parent.navigation_request(this.vin, value, locale,
|
|
177
|
+
async navigation_request(value, type = "share_ext_content_raw", locale, timestamp_ms) {
|
|
178
|
+
return this.parent.navigation_request(this.vin, value, type, locale, timestamp_ms);
|
|
177
179
|
}
|
|
178
180
|
/**
|
|
179
181
|
* Start navigation to a supercharger.
|
|
@@ -185,6 +187,13 @@ var VehicleSpecific = class {
|
|
|
185
187
|
return this.parent.navigation_sc_request(this.vin, id, order);
|
|
186
188
|
}
|
|
187
189
|
/**
|
|
190
|
+
* Sends a list of waypoints to the vehicle's navigation system.
|
|
191
|
+
* @param waypoints Comma-separated Google Maps place IDs, e.g. `"refId:ChIJ...,refId:ChIJ..."`
|
|
192
|
+
*/
|
|
193
|
+
async navigation_waypoints_request(waypoints) {
|
|
194
|
+
return this.parent.parent._request("POST", `api/1/vehicles/${this.vin}/command/navigation_waypoints_request`, null, { waypoints });
|
|
195
|
+
}
|
|
196
|
+
/**
|
|
188
197
|
* Sets automatic seat heating and cooling.
|
|
189
198
|
* @param auto_seat_position `AutoSeat` position (1-indexed: front left is 1, front right is 2)
|
|
190
199
|
* @param auto_climate_on `true` or `false`
|
|
@@ -208,7 +217,7 @@ var VehicleSpecific = class {
|
|
|
208
217
|
}
|
|
209
218
|
/**
|
|
210
219
|
* Sets seat cooling.
|
|
211
|
-
* @param seat_position
|
|
220
|
+
* @param seat_position `AutoSeat` position (1-indexed: front left is 1, front right is 2), unlike seat heating
|
|
212
221
|
* @param seat_cooler_level Cooling level
|
|
213
222
|
*/
|
|
214
223
|
async remote_seat_cooler_request(seat_position, seat_cooler_level) {
|
|
@@ -344,6 +353,95 @@ var VehicleSpecific = class {
|
|
|
344
353
|
return this.parent.set_scheduled_departure(this.vin, enable, preconditioning_enabled, preconditioning_weekdays_only, departure_time, off_peak_charging_enabled, off_peak_charging_weekdays_only, end_off_peak_time);
|
|
345
354
|
}
|
|
346
355
|
/**
|
|
356
|
+
* Add or modify a charging schedule. At least one of `start_time` or `end_time` is required.
|
|
357
|
+
* @param days_of_week Comma-joined day names (e.g. `"Mon,Wed"`, `"All"`, `"Weekdays"`) or a day bitmask
|
|
358
|
+
* @param enabled `true` or `false`
|
|
359
|
+
* @param lat Latitude of the schedule's location
|
|
360
|
+
* @param lon Longitude of the schedule's location
|
|
361
|
+
* @param start_time Minutes after midnight to start charging
|
|
362
|
+
* @param end_time Minutes after midnight to stop charging
|
|
363
|
+
* @param one_time Run the schedule only once
|
|
364
|
+
* @param id Schedule ID to modify an existing schedule
|
|
365
|
+
* @param _name Only the signed path carries a schedule name; REST accepts it for parity and does not send it
|
|
366
|
+
*/
|
|
367
|
+
async add_charge_schedule(days_of_week, enabled, lat, lon, start_time, end_time, one_time, id, _name) {
|
|
368
|
+
if (start_time == null && end_time == null) throw new Error("Either start_time or end_time or both must be provided");
|
|
369
|
+
return this.parent.parent._request("POST", `api/1/vehicles/${this.vin}/command/add_charge_schedule`, null, {
|
|
370
|
+
days_of_week,
|
|
371
|
+
enabled,
|
|
372
|
+
end_enabled: end_time != null,
|
|
373
|
+
lat,
|
|
374
|
+
lon,
|
|
375
|
+
start_enabled: start_time != null,
|
|
376
|
+
start_time,
|
|
377
|
+
end_time,
|
|
378
|
+
id,
|
|
379
|
+
one_time
|
|
380
|
+
});
|
|
381
|
+
}
|
|
382
|
+
/**
|
|
383
|
+
* Add or modify a preconditioning schedule.
|
|
384
|
+
* @param days_of_week Comma-joined day names (e.g. `"Mon,Wed"`, `"All"`, `"Weekdays"`) or a day bitmask
|
|
385
|
+
* @param enabled `true` or `false`
|
|
386
|
+
* @param lat Latitude of the schedule's location
|
|
387
|
+
* @param lon Longitude of the schedule's location
|
|
388
|
+
* @param precondition_time Minutes after midnight to be preconditioned by
|
|
389
|
+
* @param id Schedule ID to modify an existing schedule
|
|
390
|
+
* @param one_time Run the schedule only once
|
|
391
|
+
* @param _name Only the signed path carries a schedule name; REST accepts it for parity and does not send it
|
|
392
|
+
*/
|
|
393
|
+
async add_precondition_schedule(days_of_week, enabled, lat, lon, precondition_time, id, one_time, _name) {
|
|
394
|
+
return this.parent.parent._request("POST", `api/1/vehicles/${this.vin}/command/add_precondition_schedule`, null, {
|
|
395
|
+
days_of_week,
|
|
396
|
+
enabled,
|
|
397
|
+
lat,
|
|
398
|
+
lon,
|
|
399
|
+
precondition_time,
|
|
400
|
+
id,
|
|
401
|
+
one_time
|
|
402
|
+
});
|
|
403
|
+
}
|
|
404
|
+
/**
|
|
405
|
+
* Removes a charging schedule.
|
|
406
|
+
* @param id Schedule ID
|
|
407
|
+
*/
|
|
408
|
+
async remove_charge_schedule(id) {
|
|
409
|
+
return this.parent.parent._request("POST", `api/1/vehicles/${this.vin}/command/remove_charge_schedule`, null, { id });
|
|
410
|
+
}
|
|
411
|
+
/**
|
|
412
|
+
* Removes a preconditioning schedule.
|
|
413
|
+
* @param id Schedule ID
|
|
414
|
+
*/
|
|
415
|
+
async remove_precondition_schedule(id) {
|
|
416
|
+
return this.parent.parent._request("POST", `api/1/vehicles/${this.vin}/command/remove_precondition_schedule`, null, { id });
|
|
417
|
+
}
|
|
418
|
+
/**
|
|
419
|
+
* Removes charging schedules by location type.
|
|
420
|
+
* @param home Remove schedules at home
|
|
421
|
+
* @param work Remove schedules at work
|
|
422
|
+
* @param other Remove schedules at other locations
|
|
423
|
+
*/
|
|
424
|
+
async batch_remove_charge_schedules(home, work, other) {
|
|
425
|
+
return this.parent.parent._request("POST", `api/1/vehicles/${this.vin}/command/batch_remove_charge_schedules`, null, {
|
|
426
|
+
home,
|
|
427
|
+
work,
|
|
428
|
+
other
|
|
429
|
+
});
|
|
430
|
+
}
|
|
431
|
+
/**
|
|
432
|
+
* Removes preconditioning schedules by location type.
|
|
433
|
+
* @param home Remove schedules at home
|
|
434
|
+
* @param work Remove schedules at work
|
|
435
|
+
* @param other Remove schedules at other locations
|
|
436
|
+
*/
|
|
437
|
+
async batch_remove_precondition_schedules(home, work, other) {
|
|
438
|
+
return this.parent.parent._request("POST", `api/1/vehicles/${this.vin}/command/batch_remove_precondition_schedules`, null, {
|
|
439
|
+
home,
|
|
440
|
+
work,
|
|
441
|
+
other
|
|
442
|
+
});
|
|
443
|
+
}
|
|
444
|
+
/**
|
|
347
445
|
* 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.
|
|
348
446
|
* @param on `true` or `false`
|
|
349
447
|
*/
|
|
@@ -427,8 +525,8 @@ var VehicleSpecific = class {
|
|
|
427
525
|
* @param lat Latitude
|
|
428
526
|
* @param lon Longitude
|
|
429
527
|
*/
|
|
430
|
-
async trigger_homelink(lat, lon
|
|
431
|
-
return this.parent.trigger_homelink(this.vin, lat, lon
|
|
528
|
+
async trigger_homelink(token, lat, lon) {
|
|
529
|
+
return this.parent.trigger_homelink(this.vin, token, lat, lon);
|
|
432
530
|
}
|
|
433
531
|
/**
|
|
434
532
|
* Upcoming calendar entries stored on the vehicle.
|
|
@@ -486,13 +584,24 @@ var VehicleSpecific = class {
|
|
|
486
584
|
* @param config A dictionary description the fleet telemetry configuration
|
|
487
585
|
* @returns
|
|
488
586
|
*/
|
|
489
|
-
async
|
|
490
|
-
return this.parent.
|
|
587
|
+
async fleet_telemetry_config_create(config) {
|
|
588
|
+
return this.parent.fleet_telemetry_config_create({
|
|
491
589
|
vins: [this.vin],
|
|
492
590
|
config
|
|
493
591
|
});
|
|
494
592
|
}
|
|
495
593
|
/**
|
|
594
|
+
* Configures fleet telemetry with a Tesla.SS256-signed JWS token, signed by the partner's registered command key.
|
|
595
|
+
* @param vins Vehicle Identification Numbers to configure
|
|
596
|
+
* @param token JWS token wrapping the fleet telemetry configuration
|
|
597
|
+
*/
|
|
598
|
+
async fleet_telemetry_config_jws(vins, token) {
|
|
599
|
+
return this.parent.parent._request("POST", "api/1/vehicles/fleet_telemetry_config_jws", null, {
|
|
600
|
+
vins,
|
|
601
|
+
token
|
|
602
|
+
});
|
|
603
|
+
}
|
|
604
|
+
/**
|
|
496
605
|
* Disconnects vehicles to stream telemetry data to self hosted fleet-telemetry server.
|
|
497
606
|
* @returns
|
|
498
607
|
*/
|
|
@@ -589,9 +698,11 @@ var VehicleSpecific = class {
|
|
|
589
698
|
}
|
|
590
699
|
/**
|
|
591
700
|
* Wakes the vehicle from sleep, which is a state to minimize idle energy consumption.
|
|
701
|
+
* @param options.wait Poll `vehicle()` until the vehicle reports `online`, raising `VehicleOffline` at the deadline
|
|
702
|
+
* @param options.timeoutMs Deadline for `wait`, in milliseconds (default 60000)
|
|
592
703
|
*/
|
|
593
|
-
async wake_up() {
|
|
594
|
-
return this.parent.wake_up(this.vin);
|
|
704
|
+
async wake_up(options) {
|
|
705
|
+
return this.parent.wake_up(this.vin, options);
|
|
595
706
|
}
|
|
596
707
|
/**
|
|
597
708
|
* Returns warranty details.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tesla-fleet-api",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -17,8 +17,10 @@
|
|
|
17
17
|
"@eslint/js": "^10.0.1",
|
|
18
18
|
"@types/node": "^24.13.3",
|
|
19
19
|
"eslint": "^10.8.0",
|
|
20
|
+
"homey-apps-sdk-v3-types": "0.3.12",
|
|
20
21
|
"publint": "^0.3.23",
|
|
21
22
|
"tsdown": "^0.23.4",
|
|
23
|
+
"tsx": "^4.23.15",
|
|
22
24
|
"typescript": "^5.9.2",
|
|
23
25
|
"typescript-eslint": "^8.66.0",
|
|
24
26
|
"vitest": "^4.1.10"
|
|
@@ -90,6 +92,46 @@
|
|
|
90
92
|
"default": "./dist/types.cjs"
|
|
91
93
|
}
|
|
92
94
|
},
|
|
95
|
+
"./bluetooth": {
|
|
96
|
+
"import": {
|
|
97
|
+
"types": "./dist/bluetooth.d.mts",
|
|
98
|
+
"default": "./dist/bluetooth.mjs"
|
|
99
|
+
},
|
|
100
|
+
"require": {
|
|
101
|
+
"types": "./dist/bluetooth.d.cts",
|
|
102
|
+
"default": "./dist/bluetooth.cjs"
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
"./bluetooth/homey": {
|
|
106
|
+
"import": {
|
|
107
|
+
"types": "./dist/bluetooth/homey.d.mts",
|
|
108
|
+
"default": "./dist/bluetooth/homey.mjs"
|
|
109
|
+
},
|
|
110
|
+
"require": {
|
|
111
|
+
"types": "./dist/bluetooth/homey.d.cts",
|
|
112
|
+
"default": "./dist/bluetooth/homey.cjs"
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
"./bluetooth/noble": {
|
|
116
|
+
"import": {
|
|
117
|
+
"types": "./dist/bluetooth/noble.d.mts",
|
|
118
|
+
"default": "./dist/bluetooth/noble.mjs"
|
|
119
|
+
},
|
|
120
|
+
"require": {
|
|
121
|
+
"types": "./dist/bluetooth/noble.d.cts",
|
|
122
|
+
"default": "./dist/bluetooth/noble.cjs"
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
"./powerwall": {
|
|
126
|
+
"import": {
|
|
127
|
+
"types": "./dist/powerwall.d.mts",
|
|
128
|
+
"default": "./dist/powerwall.mjs"
|
|
129
|
+
},
|
|
130
|
+
"require": {
|
|
131
|
+
"types": "./dist/powerwall.d.cts",
|
|
132
|
+
"default": "./dist/powerwall.cjs"
|
|
133
|
+
}
|
|
134
|
+
},
|
|
93
135
|
"./package.json": "./package.json"
|
|
94
136
|
},
|
|
95
137
|
"sideEffects": false,
|
|
@@ -98,7 +140,15 @@
|
|
|
98
140
|
},
|
|
99
141
|
"license": "Apache-2.0",
|
|
100
142
|
"dependencies": {
|
|
101
|
-
"@teslemetry/tesla-protocol": "~6.
|
|
143
|
+
"@teslemetry/tesla-protocol": "~6.1.0"
|
|
144
|
+
},
|
|
145
|
+
"peerDependencies": {
|
|
146
|
+
"@stoprocent/noble": "^2.8.0"
|
|
147
|
+
},
|
|
148
|
+
"peerDependenciesMeta": {
|
|
149
|
+
"@stoprocent/noble": {
|
|
150
|
+
"optional": true
|
|
151
|
+
}
|
|
102
152
|
},
|
|
103
153
|
"scripts": {
|
|
104
154
|
"watch": "tsdown --watch",
|
|
@@ -108,6 +158,9 @@
|
|
|
108
158
|
"pack:check": "publint && attw --pack . --profile node16",
|
|
109
159
|
"changeset": "changeset",
|
|
110
160
|
"ci:publish": "changeset publish",
|
|
111
|
-
"build": "tsdown"
|
|
161
|
+
"build": "tsdown",
|
|
162
|
+
"powerwall:check": "tsx scripts/powerwall-readonly-check.ts",
|
|
163
|
+
"ble:live": "tsx scripts/ble-live/run.ts",
|
|
164
|
+
"parity": "tsx scripts/parity.ts"
|
|
112
165
|
}
|
|
113
166
|
}
|