@teslemetry/tesla-protocol 0.6.0 → 1.1.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 +1 -3
- package/dist/command/car_server.cjs +223 -9
- package/dist/command/car_server.d.cts +123 -96
- package/dist/command/car_server.d.mts +123 -96
- package/dist/command/car_server.mjs +217 -10
- package/dist/command/common.cjs +43 -0
- package/dist/command/common.d.cts +6 -2
- package/dist/command/common.d.mts +6 -2
- package/dist/command/common.mjs +43 -1
- package/dist/command/managed_charging.d.cts +1 -1
- package/dist/command/managed_charging.d.mts +1 -1
- package/dist/command/session.d.cts +0 -4
- package/dist/command/session.d.mts +0 -4
- package/dist/command/universal_message.cjs +4 -4
- package/dist/command/universal_message.d.cts +4 -4
- package/dist/command/universal_message.d.mts +4 -4
- package/dist/command/universal_message.mjs +4 -4
- package/dist/command/vcsec.cjs +37 -37
- package/dist/command/vcsec.d.cts +41 -41
- package/dist/command/vcsec.d.mts +41 -41
- package/dist/command/vcsec.mjs +37 -37
- package/dist/command/vehicle.cjs +129 -18
- package/dist/command/vehicle.d.cts +66 -57
- package/dist/command/vehicle.d.mts +66 -57
- package/dist/command/vehicle.mjs +129 -20
- package/dist/energy_command/identifier_type.cjs +0 -5
- package/dist/energy_command/identifier_type.d.cts +0 -5
- package/dist/energy_command/identifier_type.d.mts +0 -5
- package/dist/energy_command/identifier_type.mjs +0 -5
- package/dist/energy_device/authorization_api.d.cts +0 -5
- package/dist/energy_device/authorization_api.d.mts +0 -5
- package/dist/energy_device/authorization_types.cjs +0 -5
- package/dist/energy_device/authorization_types.d.cts +0 -5
- package/dist/energy_device/authorization_types.d.mts +0 -5
- package/dist/energy_device/authorization_types.mjs +0 -5
- package/dist/energy_device/common_api.d.cts +0 -5
- package/dist/energy_device/common_api.d.mts +0 -5
- package/dist/energy_device/device.cjs +0 -5
- package/dist/energy_device/device.d.cts +0 -5
- package/dist/energy_device/device.d.mts +0 -5
- package/dist/energy_device/device.mjs +0 -5
- package/dist/energy_device/energy.cjs +0 -5
- package/dist/energy_device/energy.d.cts +0 -5
- package/dist/energy_device/energy.d.mts +0 -5
- package/dist/energy_device/energy.mjs +0 -5
- package/dist/energy_device/energy_site_net.cjs +0 -5
- package/dist/energy_device/energy_site_net.d.cts +0 -5
- package/dist/energy_device/energy_site_net.d.mts +0 -5
- package/dist/energy_device/energy_site_net.mjs +0 -5
- package/dist/energy_device/error.d.cts +0 -5
- package/dist/energy_device/error.d.mts +0 -5
- package/dist/energy_device/filestore_api.cjs +0 -5
- package/dist/energy_device/filestore_api.d.cts +0 -5
- package/dist/energy_device/filestore_api.d.mts +0 -5
- package/dist/energy_device/filestore_api.mjs +0 -5
- package/dist/energy_device/graphql_api.cjs +0 -5
- package/dist/energy_device/graphql_api.d.cts +0 -5
- package/dist/energy_device/graphql_api.d.mts +0 -5
- package/dist/energy_device/graphql_api.mjs +0 -5
- package/dist/energy_device/intra_site_api.cjs +0 -5
- package/dist/energy_device/intra_site_api.d.cts +0 -5
- package/dist/energy_device/intra_site_api.d.mts +0 -5
- package/dist/energy_device/intra_site_api.mjs +0 -5
- package/dist/energy_device/local_auth_api.cjs +0 -5
- package/dist/energy_device/local_auth_api.d.cts +0 -5
- package/dist/energy_device/local_auth_api.d.mts +0 -5
- package/dist/energy_device/local_auth_api.mjs +0 -5
- package/dist/energy_device/networking.cjs +0 -5
- package/dist/energy_device/networking.d.cts +0 -5
- package/dist/energy_device/networking.d.mts +0 -5
- package/dist/energy_device/networking.mjs +0 -5
- package/dist/energy_device/neurio_meter_api.cjs +0 -5
- package/dist/energy_device/neurio_meter_api.d.cts +0 -5
- package/dist/energy_device/neurio_meter_api.d.mts +0 -5
- package/dist/energy_device/neurio_meter_api.mjs +0 -5
- package/dist/energy_device/pvi_api.cjs +0 -5
- package/dist/energy_device/pvi_api.d.cts +0 -5
- package/dist/energy_device/pvi_api.d.mts +0 -5
- package/dist/energy_device/pvi_api.mjs +0 -5
- package/dist/energy_device/teg_api.cjs +0 -5
- package/dist/energy_device/teg_api.d.cts +0 -5
- package/dist/energy_device/teg_api.d.mts +0 -5
- package/dist/energy_device/teg_api.mjs +0 -5
- package/dist/energy_device/transport.cjs +0 -5
- package/dist/energy_device/transport.d.cts +0 -5
- package/dist/energy_device/transport.d.mts +0 -5
- package/dist/energy_device/transport.mjs +0 -5
- package/dist/energy_device/update.cjs +0 -5
- package/dist/energy_device/update.d.cts +0 -5
- package/dist/energy_device/update.d.mts +0 -5
- package/dist/energy_device/update.mjs +0 -5
- package/dist/energy_device/wall_connector.cjs +0 -5
- package/dist/energy_device/wall_connector.d.cts +0 -5
- package/dist/energy_device/wall_connector.d.mts +0 -5
- package/dist/energy_device/wall_connector.mjs +0 -5
- package/dist/telemetry/vehicle_data.cjs +1 -1
- package/dist/telemetry/vehicle_data.d.cts +1 -1
- package/dist/telemetry/vehicle_data.d.mts +1 -1
- package/dist/telemetry/vehicle_data.mjs +1 -1
- package/package.json +1 -1
package/dist/command/vehicle.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChargePortLatchState, ChargeSchedule, ChargingAlert, LatLong, OffPeakChargingTimes, PreconditionSchedule, PreconditioningTimes, Void, accessoryLightbarTypeFromJSON, accessoryLightbarTypeToJSON, chassisTypeFromJSON, chassisTypeToJSON, fasciaTypeFromJSON, fasciaTypeToJSON, gtwDiagLevelFromJSON, gtwDiagLevelToJSON, mediaPlaybackStatusFromJSON, mediaPlaybackStatusToJSON, rearSeatHeaterTypeFromJSON, rearSeatHeaterTypeToJSON, stwHeatLevelFromJSON, stwHeatLevelToJSON, suspensionActuationStateFromJSON, suspensionActuationStateToJSON, suspensionLevelFromJSON, suspensionLevelToJSON, zoneLightRequestFromJSON, zoneLightRequestToJSON } from "./common.mjs";
|
|
1
|
+
import { ChargePortLatchState, ChargeSchedule, ChargingAlert, LatLong, OffPeakChargingTimes, PreconditionSchedule, PreconditioningTimes, SuspensionLevelObj, Void, accessoryLightbarTypeFromJSON, accessoryLightbarTypeToJSON, chassisTypeFromJSON, chassisTypeToJSON, fasciaTypeFromJSON, fasciaTypeToJSON, gtwDiagLevelFromJSON, gtwDiagLevelToJSON, mediaPlaybackStatusFromJSON, mediaPlaybackStatusToJSON, rearSeatHeaterTypeFromJSON, rearSeatHeaterTypeToJSON, stwHeatLevelFromJSON, stwHeatLevelToJSON, suspensionActuationStateFromJSON, suspensionActuationStateToJSON, suspensionLevelFromJSON, suspensionLevelToJSON, zoneLightRequestFromJSON, zoneLightRequestToJSON } from "./common.mjs";
|
|
2
2
|
import { Timestamp } from "./google/protobuf/timestamp.mjs";
|
|
3
3
|
import { closureStateEFromJSON, closureStateEToJSON } from "./vcsec.mjs";
|
|
4
4
|
import { chargeOnSolarNoChargeReasonFromJSON, chargeOnSolarNoChargeReasonToJSON } from "./managed_charging.mjs";
|
|
@@ -11,7 +11,7 @@ const protobufPackage = "CarServer";
|
|
|
11
11
|
* UPSTREAM-COMMIT: see upstream.json
|
|
12
12
|
* This file = upstream base + Teslemetry extensions marked TESLEMETRY-EXT.
|
|
13
13
|
*/
|
|
14
|
-
/** ===== TESLEMETRY-EXT BEGIN
|
|
14
|
+
/** ===== TESLEMETRY-EXT BEGIN ===== */
|
|
15
15
|
let AutopilotBase = /* @__PURE__ */ function(AutopilotBase) {
|
|
16
16
|
AutopilotBase[AutopilotBase["AutopilotBase_NONE"] = 0] = "AutopilotBase_NONE";
|
|
17
17
|
AutopilotBase[AutopilotBase["AutopilotBase_HIGHWAY"] = 1] = "AutopilotBase_HIGHWAY";
|
|
@@ -96,7 +96,7 @@ function autopilotOverrideStateToJSON(object) {
|
|
|
96
96
|
default: return "UNRECOGNIZED";
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
|
-
/** ===== TESLEMETRY-EXT BEGIN
|
|
99
|
+
/** ===== TESLEMETRY-EXT BEGIN ===== */
|
|
100
100
|
let DashCamState = /* @__PURE__ */ function(DashCamState) {
|
|
101
101
|
DashCamState[DashCamState["DashCamState_UNAVAILABLE"] = 0] = "DashCamState_UNAVAILABLE";
|
|
102
102
|
DashCamState[DashCamState["DashCamState_AVAILABLE"] = 1] = "DashCamState_AVAILABLE";
|
|
@@ -143,7 +143,7 @@ function dashCamStateToJSON(object) {
|
|
|
143
143
|
default: return "UNRECOGNIZED";
|
|
144
144
|
}
|
|
145
145
|
}
|
|
146
|
-
/** ===== TESLEMETRY-EXT BEGIN
|
|
146
|
+
/** ===== TESLEMETRY-EXT BEGIN ===== */
|
|
147
147
|
let TheaterSource = /* @__PURE__ */ function(TheaterSource) {
|
|
148
148
|
TheaterSource[TheaterSource["TheaterSource_None"] = 0] = "TheaterSource_None";
|
|
149
149
|
TheaterSource[TheaterSource["TheaterSource_YouTube"] = 1] = "TheaterSource_YouTube";
|
|
@@ -254,7 +254,7 @@ let MediaSourceType = /* @__PURE__ */ function(MediaSourceType) {
|
|
|
254
254
|
MediaSourceType[MediaSourceType["MediaSourceType_OnlineRadio"] = 24] = "MediaSourceType_OnlineRadio";
|
|
255
255
|
MediaSourceType[MediaSourceType["MediaSourceType_OnlineRadio2"] = 25] = "MediaSourceType_OnlineRadio2";
|
|
256
256
|
MediaSourceType[MediaSourceType["MediaSourceType_NetEaseMusic"] = 26] = "MediaSourceType_NetEaseMusic";
|
|
257
|
-
/** MediaSourceType_AppleMusic - TESLEMETRY-EXT
|
|
257
|
+
/** MediaSourceType_AppleMusic - TESLEMETRY-EXT */
|
|
258
258
|
MediaSourceType[MediaSourceType["MediaSourceType_AppleMusic"] = 27] = "MediaSourceType_AppleMusic";
|
|
259
259
|
/** MediaSourceType_Browser - Entertainment sources */
|
|
260
260
|
MediaSourceType[MediaSourceType["MediaSourceType_Browser"] = 28] = "MediaSourceType_Browser";
|
|
@@ -265,23 +265,23 @@ let MediaSourceType = /* @__PURE__ */ function(MediaSourceType) {
|
|
|
265
265
|
MediaSourceType[MediaSourceType["MediaSourceType_RecentsFavorites"] = 33] = "MediaSourceType_RecentsFavorites";
|
|
266
266
|
MediaSourceType[MediaSourceType["MediaSourceType_HomeApps"] = 34] = "MediaSourceType_HomeApps";
|
|
267
267
|
MediaSourceType[MediaSourceType["MediaSourceType_Search"] = 35] = "MediaSourceType_Search";
|
|
268
|
-
/** MediaSourceType_ApplePodcasts - TESLEMETRY-EXT
|
|
268
|
+
/** MediaSourceType_ApplePodcasts - TESLEMETRY-EXT */
|
|
269
269
|
MediaSourceType[MediaSourceType["MediaSourceType_ApplePodcasts"] = 36] = "MediaSourceType_ApplePodcasts";
|
|
270
|
-
/** MediaSourceType_Audible - TESLEMETRY-EXT
|
|
270
|
+
/** MediaSourceType_Audible - TESLEMETRY-EXT */
|
|
271
271
|
MediaSourceType[MediaSourceType["MediaSourceType_Audible"] = 37] = "MediaSourceType_Audible";
|
|
272
|
-
/** MediaSourceType_AmazonMusic - TESLEMETRY-EXT
|
|
272
|
+
/** MediaSourceType_AmazonMusic - TESLEMETRY-EXT */
|
|
273
273
|
MediaSourceType[MediaSourceType["MediaSourceType_AmazonMusic"] = 38] = "MediaSourceType_AmazonMusic";
|
|
274
|
-
/** MediaSourceType_YouTubeMusic - TESLEMETRY-EXT
|
|
274
|
+
/** MediaSourceType_YouTubeMusic - TESLEMETRY-EXT */
|
|
275
275
|
MediaSourceType[MediaSourceType["MediaSourceType_YouTubeMusic"] = 39] = "MediaSourceType_YouTubeMusic";
|
|
276
|
-
/** MediaSourceType_SiriusXmWeb - TESLEMETRY-EXT
|
|
276
|
+
/** MediaSourceType_SiriusXmWeb - TESLEMETRY-EXT */
|
|
277
277
|
MediaSourceType[MediaSourceType["MediaSourceType_SiriusXmWeb"] = 40] = "MediaSourceType_SiriusXmWeb";
|
|
278
|
-
/** MediaSourceType_Yunting - TESLEMETRY-EXT
|
|
278
|
+
/** MediaSourceType_Yunting - TESLEMETRY-EXT */
|
|
279
279
|
MediaSourceType[MediaSourceType["MediaSourceType_Yunting"] = 41] = "MediaSourceType_Yunting";
|
|
280
|
-
/** MediaSourceType_TuneInWeb - TESLEMETRY-EXT
|
|
280
|
+
/** MediaSourceType_TuneInWeb - TESLEMETRY-EXT */
|
|
281
281
|
MediaSourceType[MediaSourceType["MediaSourceType_TuneInWeb"] = 42] = "MediaSourceType_TuneInWeb";
|
|
282
|
-
/** MediaSourceType_Kugou - TESLEMETRY-EXT
|
|
282
|
+
/** MediaSourceType_Kugou - TESLEMETRY-EXT */
|
|
283
283
|
MediaSourceType[MediaSourceType["MediaSourceType_Kugou"] = 43] = "MediaSourceType_Kugou";
|
|
284
|
-
/** MediaSourceType_Vohico - TESLEMETRY-EXT
|
|
284
|
+
/** MediaSourceType_Vohico - TESLEMETRY-EXT */
|
|
285
285
|
MediaSourceType[MediaSourceType["MediaSourceType_Vohico"] = 44] = "MediaSourceType_Vohico";
|
|
286
286
|
MediaSourceType[MediaSourceType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
287
287
|
return MediaSourceType;
|
|
@@ -542,7 +542,7 @@ let ChargeState_ChargeLimitReason = /* @__PURE__ */ function(ChargeState_ChargeL
|
|
|
542
542
|
ChargeState_ChargeLimitReason[ChargeState_ChargeLimitReason["ChargeLimitReasonBattTempLow"] = 3] = "ChargeLimitReasonBattTempLow";
|
|
543
543
|
ChargeState_ChargeLimitReason[ChargeState_ChargeLimitReason["ChargeLimitReasonHighSoc"] = 4] = "ChargeLimitReasonHighSoc";
|
|
544
544
|
ChargeState_ChargeLimitReason[ChargeState_ChargeLimitReason["ChargeLimitReasonCabin"] = 5] = "ChargeLimitReasonCabin";
|
|
545
|
-
/** ChargeLimitReasonEvseRelocationRecommended - TESLEMETRY-EXT
|
|
545
|
+
/** ChargeLimitReasonEvseRelocationRecommended - TESLEMETRY-EXT */
|
|
546
546
|
ChargeState_ChargeLimitReason[ChargeState_ChargeLimitReason["ChargeLimitReasonEvseRelocationRecommended"] = 6] = "ChargeLimitReasonEvseRelocationRecommended";
|
|
547
547
|
ChargeState_ChargeLimitReason[ChargeState_ChargeLimitReason["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
548
548
|
return ChargeState_ChargeLimitReason;
|
|
@@ -678,7 +678,7 @@ let ChargeState_PowershareType = /* @__PURE__ */ function(ChargeState_Powershare
|
|
|
678
678
|
ChargeState_PowershareType[ChargeState_PowershareType["PowershareTypeNone"] = 0] = "PowershareTypeNone";
|
|
679
679
|
ChargeState_PowershareType[ChargeState_PowershareType["PowershareTypeLoad"] = 1] = "PowershareTypeLoad";
|
|
680
680
|
ChargeState_PowershareType[ChargeState_PowershareType["PowershareTypeHome"] = 2] = "PowershareTypeHome";
|
|
681
|
-
/** PowershareTypeGrid - TESLEMETRY-EXT
|
|
681
|
+
/** PowershareTypeGrid - TESLEMETRY-EXT */
|
|
682
682
|
ChargeState_PowershareType[ChargeState_PowershareType["PowershareTypeGrid"] = 3] = "PowershareTypeGrid";
|
|
683
683
|
ChargeState_PowershareType[ChargeState_PowershareType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
684
684
|
return ChargeState_PowershareType;
|
|
@@ -713,9 +713,9 @@ let ChargeState_PowershareStopReason = /* @__PURE__ */ function(ChargeState_Powe
|
|
|
713
713
|
ChargeState_PowershareStopReason[ChargeState_PowershareStopReason["PowershareStopReasonUser"] = 4] = "PowershareStopReasonUser";
|
|
714
714
|
ChargeState_PowershareStopReason[ChargeState_PowershareStopReason["PowershareStopReasonReconnecting"] = 5] = "PowershareStopReasonReconnecting";
|
|
715
715
|
ChargeState_PowershareStopReason[ChargeState_PowershareStopReason["PowershareStopReasonAuthentication"] = 6] = "PowershareStopReasonAuthentication";
|
|
716
|
-
/** PowershareStopReasonAdapterUpdating - TESLEMETRY-EXT
|
|
716
|
+
/** PowershareStopReasonAdapterUpdating - TESLEMETRY-EXT */
|
|
717
717
|
ChargeState_PowershareStopReason[ChargeState_PowershareStopReason["PowershareStopReasonAdapterUpdating"] = 7] = "PowershareStopReasonAdapterUpdating";
|
|
718
|
-
/** PowershareStopReasonAdapterInitializationFailed - TESLEMETRY-EXT
|
|
718
|
+
/** PowershareStopReasonAdapterInitializationFailed - TESLEMETRY-EXT */
|
|
719
719
|
ChargeState_PowershareStopReason[ChargeState_PowershareStopReason["PowershareStopReasonAdapterInitializationFailed"] = 8] = "PowershareStopReasonAdapterInitializationFailed";
|
|
720
720
|
ChargeState_PowershareStopReason[ChargeState_PowershareStopReason["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
721
721
|
return ChargeState_PowershareStopReason;
|
|
@@ -937,7 +937,7 @@ function climateState_COPNotRunningReasonToJSON(object) {
|
|
|
937
937
|
default: return "UNRECOGNIZED";
|
|
938
938
|
}
|
|
939
939
|
}
|
|
940
|
-
/** TESLEMETRY-EXT
|
|
940
|
+
/** TESLEMETRY-EXT */
|
|
941
941
|
let ClimateState_DogModeState = /* @__PURE__ */ function(ClimateState_DogModeState) {
|
|
942
942
|
ClimateState_DogModeState[ClimateState_DogModeState["DogModeStateUnavailableFault"] = 0] = "DogModeStateUnavailableFault";
|
|
943
943
|
ClimateState_DogModeState[ClimateState_DogModeState["DogModeStateUnavailableTooHot"] = 1] = "DogModeStateUnavailableTooHot";
|
|
@@ -9192,6 +9192,7 @@ const ParkedAccessoryState = {
|
|
|
9192
9192
|
function createBaseSohState() {
|
|
9193
9193
|
return {
|
|
9194
9194
|
sohTestState: void 0,
|
|
9195
|
+
sohTestEndMode: void 0,
|
|
9195
9196
|
sohResult: void 0,
|
|
9196
9197
|
timestamp: void 0
|
|
9197
9198
|
};
|
|
@@ -9199,6 +9200,7 @@ function createBaseSohState() {
|
|
|
9199
9200
|
const SohState = {
|
|
9200
9201
|
encode(message, writer = new BinaryWriter()) {
|
|
9201
9202
|
if (message.sohTestState !== void 0) SohState_SohTestState.encode(message.sohTestState, writer.uint32(10).fork()).join();
|
|
9203
|
+
if (message.sohTestEndMode !== void 0) SohState_SohTestEndMode.encode(message.sohTestEndMode, writer.uint32(18).fork()).join();
|
|
9202
9204
|
if (message.sohResult !== void 0) SohState_SohResult.encode(message.sohResult, writer.uint32(26).fork()).join();
|
|
9203
9205
|
if (message.timestamp !== void 0) Timestamp.encode(toTimestamp(message.timestamp), writer.uint32(34).fork()).join();
|
|
9204
9206
|
return writer;
|
|
@@ -9214,6 +9216,10 @@ const SohState = {
|
|
|
9214
9216
|
if (tag !== 10) break;
|
|
9215
9217
|
message.sohTestState = SohState_SohTestState.decode(reader, reader.uint32());
|
|
9216
9218
|
continue;
|
|
9219
|
+
case 2:
|
|
9220
|
+
if (tag !== 18) break;
|
|
9221
|
+
message.sohTestEndMode = SohState_SohTestEndMode.decode(reader, reader.uint32());
|
|
9222
|
+
continue;
|
|
9217
9223
|
case 3:
|
|
9218
9224
|
if (tag !== 26) break;
|
|
9219
9225
|
message.sohResult = SohState_SohResult.decode(reader, reader.uint32());
|
|
@@ -9231,6 +9237,7 @@ const SohState = {
|
|
|
9231
9237
|
fromJSON(object) {
|
|
9232
9238
|
return {
|
|
9233
9239
|
sohTestState: isSet(object.sohTestState) ? SohState_SohTestState.fromJSON(object.sohTestState) : void 0,
|
|
9240
|
+
sohTestEndMode: isSet(object.sohTestEndMode) ? SohState_SohTestEndMode.fromJSON(object.sohTestEndMode) : void 0,
|
|
9234
9241
|
sohResult: isSet(object.sohResult) ? SohState_SohResult.fromJSON(object.sohResult) : void 0,
|
|
9235
9242
|
timestamp: isSet(object.timestamp) ? fromJsonTimestamp(object.timestamp) : void 0
|
|
9236
9243
|
};
|
|
@@ -9238,6 +9245,7 @@ const SohState = {
|
|
|
9238
9245
|
toJSON(message) {
|
|
9239
9246
|
const obj = {};
|
|
9240
9247
|
if (message.sohTestState !== void 0) obj.sohTestState = SohState_SohTestState.toJSON(message.sohTestState);
|
|
9248
|
+
if (message.sohTestEndMode !== void 0) obj.sohTestEndMode = SohState_SohTestEndMode.toJSON(message.sohTestEndMode);
|
|
9241
9249
|
if (message.sohResult !== void 0) obj.sohResult = SohState_SohResult.toJSON(message.sohResult);
|
|
9242
9250
|
if (message.timestamp !== void 0) obj.timestamp = message.timestamp.toISOString();
|
|
9243
9251
|
return obj;
|
|
@@ -9248,19 +9256,86 @@ const SohState = {
|
|
|
9248
9256
|
fromPartial(object) {
|
|
9249
9257
|
const message = createBaseSohState();
|
|
9250
9258
|
message.sohTestState = object.sohTestState !== void 0 && object.sohTestState !== null ? SohState_SohTestState.fromPartial(object.sohTestState) : void 0;
|
|
9259
|
+
message.sohTestEndMode = object.sohTestEndMode !== void 0 && object.sohTestEndMode !== null ? SohState_SohTestEndMode.fromPartial(object.sohTestEndMode) : void 0;
|
|
9251
9260
|
message.sohResult = object.sohResult !== void 0 && object.sohResult !== null ? SohState_SohResult.fromPartial(object.sohResult) : void 0;
|
|
9252
9261
|
message.timestamp = object.timestamp ?? void 0;
|
|
9253
9262
|
return message;
|
|
9254
9263
|
}
|
|
9255
9264
|
};
|
|
9265
|
+
function createBaseSohState_SohTestPhase() {
|
|
9266
|
+
return {};
|
|
9267
|
+
}
|
|
9268
|
+
const SohState_SohTestPhase = {
|
|
9269
|
+
encode(_, writer = new BinaryWriter()) {
|
|
9270
|
+
return writer;
|
|
9271
|
+
},
|
|
9272
|
+
decode(input, length) {
|
|
9273
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
9274
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
9275
|
+
const message = createBaseSohState_SohTestPhase();
|
|
9276
|
+
while (reader.pos < end) {
|
|
9277
|
+
const tag = reader.uint32();
|
|
9278
|
+
switch (tag >>> 3) {}
|
|
9279
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
9280
|
+
reader.skip(tag & 7);
|
|
9281
|
+
}
|
|
9282
|
+
return message;
|
|
9283
|
+
},
|
|
9284
|
+
fromJSON(_) {
|
|
9285
|
+
return {};
|
|
9286
|
+
},
|
|
9287
|
+
toJSON(_) {
|
|
9288
|
+
return {};
|
|
9289
|
+
},
|
|
9290
|
+
create(base) {
|
|
9291
|
+
return SohState_SohTestPhase.fromPartial(base ?? {});
|
|
9292
|
+
},
|
|
9293
|
+
fromPartial(_) {
|
|
9294
|
+
return createBaseSohState_SohTestPhase();
|
|
9295
|
+
}
|
|
9296
|
+
};
|
|
9297
|
+
function createBaseSohState_SohTestEndMode() {
|
|
9298
|
+
return {};
|
|
9299
|
+
}
|
|
9300
|
+
const SohState_SohTestEndMode = {
|
|
9301
|
+
encode(_, writer = new BinaryWriter()) {
|
|
9302
|
+
return writer;
|
|
9303
|
+
},
|
|
9304
|
+
decode(input, length) {
|
|
9305
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
9306
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
9307
|
+
const message = createBaseSohState_SohTestEndMode();
|
|
9308
|
+
while (reader.pos < end) {
|
|
9309
|
+
const tag = reader.uint32();
|
|
9310
|
+
switch (tag >>> 3) {}
|
|
9311
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
9312
|
+
reader.skip(tag & 7);
|
|
9313
|
+
}
|
|
9314
|
+
return message;
|
|
9315
|
+
},
|
|
9316
|
+
fromJSON(_) {
|
|
9317
|
+
return {};
|
|
9318
|
+
},
|
|
9319
|
+
toJSON(_) {
|
|
9320
|
+
return {};
|
|
9321
|
+
},
|
|
9322
|
+
create(base) {
|
|
9323
|
+
return SohState_SohTestEndMode.fromPartial(base ?? {});
|
|
9324
|
+
},
|
|
9325
|
+
fromPartial(_) {
|
|
9326
|
+
return createBaseSohState_SohTestEndMode();
|
|
9327
|
+
}
|
|
9328
|
+
};
|
|
9256
9329
|
function createBaseSohState_SohTestState() {
|
|
9257
9330
|
return {
|
|
9331
|
+
sohTestPhase: void 0,
|
|
9258
9332
|
sohTimeEstimate: void 0,
|
|
9259
9333
|
sohTimeRemaining: void 0
|
|
9260
9334
|
};
|
|
9261
9335
|
}
|
|
9262
9336
|
const SohState_SohTestState = {
|
|
9263
9337
|
encode(message, writer = new BinaryWriter()) {
|
|
9338
|
+
if (message.sohTestPhase !== void 0) SohState_SohTestPhase.encode(message.sohTestPhase, writer.uint32(10).fork()).join();
|
|
9264
9339
|
if (message.sohTimeEstimate !== void 0) writer.uint32(21).float(message.sohTimeEstimate);
|
|
9265
9340
|
if (message.sohTimeRemaining !== void 0) writer.uint32(29).float(message.sohTimeRemaining);
|
|
9266
9341
|
return writer;
|
|
@@ -9272,6 +9347,10 @@ const SohState_SohTestState = {
|
|
|
9272
9347
|
while (reader.pos < end) {
|
|
9273
9348
|
const tag = reader.uint32();
|
|
9274
9349
|
switch (tag >>> 3) {
|
|
9350
|
+
case 1:
|
|
9351
|
+
if (tag !== 10) break;
|
|
9352
|
+
message.sohTestPhase = SohState_SohTestPhase.decode(reader, reader.uint32());
|
|
9353
|
+
continue;
|
|
9275
9354
|
case 2:
|
|
9276
9355
|
if (tag !== 21) break;
|
|
9277
9356
|
message.sohTimeEstimate = reader.float();
|
|
@@ -9288,12 +9367,14 @@ const SohState_SohTestState = {
|
|
|
9288
9367
|
},
|
|
9289
9368
|
fromJSON(object) {
|
|
9290
9369
|
return {
|
|
9370
|
+
sohTestPhase: isSet(object.sohTestPhase) ? SohState_SohTestPhase.fromJSON(object.sohTestPhase) : void 0,
|
|
9291
9371
|
sohTimeEstimate: isSet(object.sohTimeEstimate) ? globalThis.Number(object.sohTimeEstimate) : void 0,
|
|
9292
9372
|
sohTimeRemaining: isSet(object.sohTimeRemaining) ? globalThis.Number(object.sohTimeRemaining) : void 0
|
|
9293
9373
|
};
|
|
9294
9374
|
},
|
|
9295
9375
|
toJSON(message) {
|
|
9296
9376
|
const obj = {};
|
|
9377
|
+
if (message.sohTestPhase !== void 0) obj.sohTestPhase = SohState_SohTestPhase.toJSON(message.sohTestPhase);
|
|
9297
9378
|
if (message.sohTimeEstimate !== void 0) obj.sohTimeEstimate = message.sohTimeEstimate;
|
|
9298
9379
|
if (message.sohTimeRemaining !== void 0) obj.sohTimeRemaining = message.sohTimeRemaining;
|
|
9299
9380
|
return obj;
|
|
@@ -9303,6 +9384,7 @@ const SohState_SohTestState = {
|
|
|
9303
9384
|
},
|
|
9304
9385
|
fromPartial(object) {
|
|
9305
9386
|
const message = createBaseSohState_SohTestState();
|
|
9387
|
+
message.sohTestPhase = object.sohTestPhase !== void 0 && object.sohTestPhase !== null ? SohState_SohTestPhase.fromPartial(object.sohTestPhase) : void 0;
|
|
9306
9388
|
message.sohTimeEstimate = object.sohTimeEstimate ?? void 0;
|
|
9307
9389
|
message.sohTimeRemaining = object.sohTimeRemaining ?? void 0;
|
|
9308
9390
|
return message;
|
|
@@ -9750,6 +9832,7 @@ function createBaseVehicleImage() {
|
|
|
9750
9832
|
return {
|
|
9751
9833
|
imageId: /* @__PURE__ */ new Uint8Array(0),
|
|
9752
9834
|
assetData: void 0,
|
|
9835
|
+
imageType: 0,
|
|
9753
9836
|
isLocalImage: false,
|
|
9754
9837
|
totalImageSize: 0
|
|
9755
9838
|
};
|
|
@@ -9758,6 +9841,7 @@ const VehicleImage = {
|
|
|
9758
9841
|
encode(message, writer = new BinaryWriter()) {
|
|
9759
9842
|
if (message.imageId.length !== 0) writer.uint32(10).bytes(message.imageId);
|
|
9760
9843
|
if (message.assetData !== void 0) VehicleImageData.encode(message.assetData, writer.uint32(18).fork()).join();
|
|
9844
|
+
if (message.imageType !== 0) writer.uint32(24).int32(message.imageType);
|
|
9761
9845
|
if (message.isLocalImage !== false) writer.uint32(32).bool(message.isLocalImage);
|
|
9762
9846
|
if (message.totalImageSize !== 0) writer.uint32(40).uint32(message.totalImageSize);
|
|
9763
9847
|
return writer;
|
|
@@ -9777,6 +9861,10 @@ const VehicleImage = {
|
|
|
9777
9861
|
if (tag !== 18) break;
|
|
9778
9862
|
message.assetData = VehicleImageData.decode(reader, reader.uint32());
|
|
9779
9863
|
continue;
|
|
9864
|
+
case 3:
|
|
9865
|
+
if (tag !== 24) break;
|
|
9866
|
+
message.imageType = reader.int32();
|
|
9867
|
+
continue;
|
|
9780
9868
|
case 4:
|
|
9781
9869
|
if (tag !== 32) break;
|
|
9782
9870
|
message.isLocalImage = reader.bool();
|
|
@@ -9795,6 +9883,7 @@ const VehicleImage = {
|
|
|
9795
9883
|
return {
|
|
9796
9884
|
imageId: isSet(object.imageId) ? bytesFromBase64(object.imageId) : /* @__PURE__ */ new Uint8Array(0),
|
|
9797
9885
|
assetData: isSet(object.assetData) ? VehicleImageData.fromJSON(object.assetData) : void 0,
|
|
9886
|
+
imageType: isSet(object.imageType) ? vehicleImageStateTypeFromJSON(object.imageType) : 0,
|
|
9798
9887
|
isLocalImage: isSet(object.isLocalImage) ? globalThis.Boolean(object.isLocalImage) : false,
|
|
9799
9888
|
totalImageSize: isSet(object.totalImageSize) ? globalThis.Number(object.totalImageSize) : 0
|
|
9800
9889
|
};
|
|
@@ -9803,6 +9892,7 @@ const VehicleImage = {
|
|
|
9803
9892
|
const obj = {};
|
|
9804
9893
|
if (message.imageId !== void 0) obj.imageId = base64FromBytes(message.imageId);
|
|
9805
9894
|
if (message.assetData !== void 0) obj.assetData = VehicleImageData.toJSON(message.assetData);
|
|
9895
|
+
if (message.imageType !== void 0) obj.imageType = vehicleImageStateTypeToJSON(message.imageType);
|
|
9806
9896
|
if (message.isLocalImage !== void 0) obj.isLocalImage = message.isLocalImage;
|
|
9807
9897
|
if (message.totalImageSize !== void 0) obj.totalImageSize = Math.round(message.totalImageSize);
|
|
9808
9898
|
return obj;
|
|
@@ -9814,6 +9904,7 @@ const VehicleImage = {
|
|
|
9814
9904
|
const message = createBaseVehicleImage();
|
|
9815
9905
|
message.imageId = object.imageId ?? /* @__PURE__ */ new Uint8Array(0);
|
|
9816
9906
|
message.assetData = object.assetData !== void 0 && object.assetData !== null ? VehicleImageData.fromPartial(object.assetData) : void 0;
|
|
9907
|
+
message.imageType = object.imageType ?? 0;
|
|
9817
9908
|
message.isLocalImage = object.isLocalImage ?? false;
|
|
9818
9909
|
message.totalImageSize = object.totalImageSize ?? 0;
|
|
9819
9910
|
return message;
|
|
@@ -9876,21 +9967,25 @@ const VehicleImageState = {
|
|
|
9876
9967
|
};
|
|
9877
9968
|
function createBaseSuspensionState() {
|
|
9878
9969
|
return {
|
|
9970
|
+
allowedLevels: [],
|
|
9879
9971
|
currentLevel: void 0,
|
|
9880
9972
|
targetLevel: void 0,
|
|
9881
9973
|
movementState: void 0,
|
|
9882
9974
|
offroadOn: void 0,
|
|
9883
9975
|
disabledReason: void 0,
|
|
9976
|
+
levelOptions: [],
|
|
9884
9977
|
timestamp: void 0
|
|
9885
9978
|
};
|
|
9886
9979
|
}
|
|
9887
9980
|
const SuspensionState = {
|
|
9888
9981
|
encode(message, writer = new BinaryWriter()) {
|
|
9982
|
+
for (const v of message.allowedLevels) SuspensionLevelObj.encode(v, writer.uint32(10).fork()).join();
|
|
9889
9983
|
if (message.currentLevel !== void 0) writer.uint32(16).int32(message.currentLevel);
|
|
9890
9984
|
if (message.targetLevel !== void 0) writer.uint32(24).int32(message.targetLevel);
|
|
9891
9985
|
if (message.movementState !== void 0) writer.uint32(32).int32(message.movementState);
|
|
9892
9986
|
if (message.offroadOn !== void 0) writer.uint32(40).bool(message.offroadOn);
|
|
9893
9987
|
if (message.disabledReason !== void 0) writer.uint32(50).string(message.disabledReason);
|
|
9988
|
+
for (const v of message.levelOptions) SuspensionLevelObj.encode(v, writer.uint32(58).fork()).join();
|
|
9894
9989
|
if (message.timestamp !== void 0) Timestamp.encode(toTimestamp(message.timestamp), writer.uint32(16002).fork()).join();
|
|
9895
9990
|
return writer;
|
|
9896
9991
|
},
|
|
@@ -9901,6 +9996,10 @@ const SuspensionState = {
|
|
|
9901
9996
|
while (reader.pos < end) {
|
|
9902
9997
|
const tag = reader.uint32();
|
|
9903
9998
|
switch (tag >>> 3) {
|
|
9999
|
+
case 1:
|
|
10000
|
+
if (tag !== 10) break;
|
|
10001
|
+
message.allowedLevels.push(SuspensionLevelObj.decode(reader, reader.uint32()));
|
|
10002
|
+
continue;
|
|
9904
10003
|
case 2:
|
|
9905
10004
|
if (tag !== 16) break;
|
|
9906
10005
|
message.currentLevel = reader.int32();
|
|
@@ -9921,6 +10020,10 @@ const SuspensionState = {
|
|
|
9921
10020
|
if (tag !== 50) break;
|
|
9922
10021
|
message.disabledReason = reader.string();
|
|
9923
10022
|
continue;
|
|
10023
|
+
case 7:
|
|
10024
|
+
if (tag !== 58) break;
|
|
10025
|
+
message.levelOptions.push(SuspensionLevelObj.decode(reader, reader.uint32()));
|
|
10026
|
+
continue;
|
|
9924
10027
|
case 2e3:
|
|
9925
10028
|
if (tag !== 16002) break;
|
|
9926
10029
|
message.timestamp = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
@@ -9933,21 +10036,25 @@ const SuspensionState = {
|
|
|
9933
10036
|
},
|
|
9934
10037
|
fromJSON(object) {
|
|
9935
10038
|
return {
|
|
10039
|
+
allowedLevels: globalThis.Array.isArray(object?.allowedLevels) ? object.allowedLevels.map((e) => SuspensionLevelObj.fromJSON(e)) : [],
|
|
9936
10040
|
currentLevel: isSet(object.currentLevel) ? suspensionLevelFromJSON(object.currentLevel) : void 0,
|
|
9937
10041
|
targetLevel: isSet(object.targetLevel) ? suspensionLevelFromJSON(object.targetLevel) : void 0,
|
|
9938
10042
|
movementState: isSet(object.movementState) ? suspensionActuationStateFromJSON(object.movementState) : void 0,
|
|
9939
10043
|
offroadOn: isSet(object.offroadOn) ? globalThis.Boolean(object.offroadOn) : void 0,
|
|
9940
10044
|
disabledReason: isSet(object.disabledReason) ? globalThis.String(object.disabledReason) : void 0,
|
|
10045
|
+
levelOptions: globalThis.Array.isArray(object?.levelOptions) ? object.levelOptions.map((e) => SuspensionLevelObj.fromJSON(e)) : [],
|
|
9941
10046
|
timestamp: isSet(object.timestamp) ? fromJsonTimestamp(object.timestamp) : void 0
|
|
9942
10047
|
};
|
|
9943
10048
|
},
|
|
9944
10049
|
toJSON(message) {
|
|
9945
10050
|
const obj = {};
|
|
10051
|
+
if (message.allowedLevels?.length) obj.allowedLevels = message.allowedLevels.map((e) => SuspensionLevelObj.toJSON(e));
|
|
9946
10052
|
if (message.currentLevel !== void 0) obj.currentLevel = suspensionLevelToJSON(message.currentLevel);
|
|
9947
10053
|
if (message.targetLevel !== void 0) obj.targetLevel = suspensionLevelToJSON(message.targetLevel);
|
|
9948
10054
|
if (message.movementState !== void 0) obj.movementState = suspensionActuationStateToJSON(message.movementState);
|
|
9949
10055
|
if (message.offroadOn !== void 0) obj.offroadOn = message.offroadOn;
|
|
9950
10056
|
if (message.disabledReason !== void 0) obj.disabledReason = message.disabledReason;
|
|
10057
|
+
if (message.levelOptions?.length) obj.levelOptions = message.levelOptions.map((e) => SuspensionLevelObj.toJSON(e));
|
|
9951
10058
|
if (message.timestamp !== void 0) obj.timestamp = message.timestamp.toISOString();
|
|
9952
10059
|
return obj;
|
|
9953
10060
|
},
|
|
@@ -9956,11 +10063,13 @@ const SuspensionState = {
|
|
|
9956
10063
|
},
|
|
9957
10064
|
fromPartial(object) {
|
|
9958
10065
|
const message = createBaseSuspensionState();
|
|
10066
|
+
message.allowedLevels = object.allowedLevels?.map((e) => SuspensionLevelObj.fromPartial(e)) || [];
|
|
9959
10067
|
message.currentLevel = object.currentLevel ?? void 0;
|
|
9960
10068
|
message.targetLevel = object.targetLevel ?? void 0;
|
|
9961
10069
|
message.movementState = object.movementState ?? void 0;
|
|
9962
10070
|
message.offroadOn = object.offroadOn ?? void 0;
|
|
9963
10071
|
message.disabledReason = object.disabledReason ?? void 0;
|
|
10072
|
+
message.levelOptions = object.levelOptions?.map((e) => SuspensionLevelObj.fromPartial(e)) || [];
|
|
9964
10073
|
message.timestamp = object.timestamp ?? void 0;
|
|
9965
10074
|
return message;
|
|
9966
10075
|
}
|
|
@@ -10192,4 +10301,4 @@ function isSet(value) {
|
|
|
10192
10301
|
return value !== null && value !== void 0;
|
|
10193
10302
|
}
|
|
10194
10303
|
//#endregion
|
|
10195
|
-
export { AlertState, AutopilotBase, AutopilotOverrideState, ChargeOnSolarState, ChargeOnSolarStateChargingOnAnything, ChargeOnSolarStateChargingOnExcessSolar, ChargeOnSolarStateError, ChargeOnSolarStateNoChargeRecommended, ChargeOnSolarStateNotAllowed, ChargeOnSolarStateUserDisabled, ChargeOnSolarStateUserStopped, ChargeOnSolarStateWaitingForServer, ChargeScheduleState, ChargeState, ChargeState_CableType, ChargeState_ChargeLimitReason, ChargeState_ChargePortColorE, ChargeState_ChargerBrand, ChargeState_ChargerType, ChargeState_ChargingState, ChargeState_OutletState, ChargeState_PowerFeedState, ChargeState_PowershareStatus, ChargeState_PowershareStopReason, ChargeState_PowershareType, ChargeState_ScheduledChargingMode, ChildPresenceDetectionState, ClimateState, ClimateState_COPNotRunningReason, ClimateState_CabinOverheatProtectionE, ClimateState_ClimateKeeperMode, ClimateState_CopActivationTemp, ClimateState_DefrostMode, ClimateState_DogModeState, ClimateState_HvacAutoRequest, ClimateState_SeatCoolingLevelE, ClimateState_SeatHeaterLevelE, ClosuresState, ClosuresState_DisplayState, ClosuresState_SentryModeState, ClosuresState_SunRoofState, DashCamState, DriveState, DriveState_FsdLast7DaysUsage, DriveState_FsdMonthlyMileage, GuiSettings, GuiSettings_TirePressureUnit, LegacyMediaInfo, LegacyMediaState, LightShowOption, LightShowSettings, LightShowState, LocationState, LocationState_GPSCoordinateType, ManagedChargingState, MediaDetailState, MediaSourceType, MediaState, ParentalControlsSettings, ParentalControlsState, ParkedAccessoryState, PreconditioningScheduleState, ShiftState, SoftwareUpdateState, SoftwareUpdateState_SoftwareUpdateStatus, SohState, SohState_SohResult, SohState_SohTestState, SohState_WarrantyServiceResult, SpeedLimitMode, SuspensionState, TheaterSource, TirePressureState, VehicleConfig, VehicleConfig_AuxParkLampsE, VehicleConfig_BadgingMaterialType, VehicleConfig_BedLightingType, VehicleConfig_DrivetrainType, VehicleConfig_ExteriorTrimType, VehicleConfig_FrontFasciaCameraType, VehicleConfig_HeadlampTypeE, VehicleConfig_InteriorTrimType, VehicleConfig_InteriorUpperTrimType, VehicleConfig_RearLightHardwareVariant, VehicleConfig_RearLightType, VehicleConfig_SeatTrimType, VehicleConfig_TurnIndicatorControlType, VehicleData, VehicleDetailState, VehicleImage, VehicleImageData, VehicleImageState, VehicleImageStateType, VehicleState, VehicleState_GuestMode, autopilotBaseFromJSON, autopilotBaseToJSON, autopilotOverrideStateFromJSON, autopilotOverrideStateToJSON, chargeState_ChargeLimitReasonFromJSON, chargeState_ChargeLimitReasonToJSON, chargeState_ChargePortColorEFromJSON, chargeState_ChargePortColorEToJSON, chargeState_OutletStateFromJSON, chargeState_OutletStateToJSON, chargeState_PowerFeedStateFromJSON, chargeState_PowerFeedStateToJSON, chargeState_PowershareStatusFromJSON, chargeState_PowershareStatusToJSON, chargeState_PowershareStopReasonFromJSON, chargeState_PowershareStopReasonToJSON, chargeState_PowershareTypeFromJSON, chargeState_PowershareTypeToJSON, chargeState_ScheduledChargingModeFromJSON, chargeState_ScheduledChargingModeToJSON, climateState_COPNotRunningReasonFromJSON, climateState_COPNotRunningReasonToJSON, climateState_CabinOverheatProtectionEFromJSON, climateState_CabinOverheatProtectionEToJSON, climateState_CopActivationTempFromJSON, climateState_CopActivationTempToJSON, climateState_DogModeStateFromJSON, climateState_DogModeStateToJSON, climateState_HvacAutoRequestFromJSON, climateState_HvacAutoRequestToJSON, climateState_SeatCoolingLevelEFromJSON, climateState_SeatCoolingLevelEToJSON, climateState_SeatHeaterLevelEFromJSON, climateState_SeatHeaterLevelEToJSON, dashCamStateFromJSON, dashCamStateToJSON, guiSettings_TirePressureUnitFromJSON, guiSettings_TirePressureUnitToJSON, mediaSourceTypeFromJSON, mediaSourceTypeToJSON, protobufPackage, sohState_WarrantyServiceResultFromJSON, sohState_WarrantyServiceResultToJSON, theaterSourceFromJSON, theaterSourceToJSON, vehicleConfig_AuxParkLampsEFromJSON, vehicleConfig_AuxParkLampsEToJSON, vehicleConfig_BadgingMaterialTypeFromJSON, vehicleConfig_BadgingMaterialTypeToJSON, vehicleConfig_BedLightingTypeFromJSON, vehicleConfig_BedLightingTypeToJSON, vehicleConfig_DrivetrainTypeFromJSON, vehicleConfig_DrivetrainTypeToJSON, vehicleConfig_FrontFasciaCameraTypeFromJSON, vehicleConfig_FrontFasciaCameraTypeToJSON, vehicleConfig_HeadlampTypeEFromJSON, vehicleConfig_HeadlampTypeEToJSON, vehicleConfig_InteriorUpperTrimTypeFromJSON, vehicleConfig_InteriorUpperTrimTypeToJSON, vehicleConfig_RearLightHardwareVariantFromJSON, vehicleConfig_RearLightHardwareVariantToJSON, vehicleConfig_RearLightTypeFromJSON, vehicleConfig_RearLightTypeToJSON, vehicleConfig_SeatTrimTypeFromJSON, vehicleConfig_SeatTrimTypeToJSON, vehicleConfig_TurnIndicatorControlTypeFromJSON, vehicleConfig_TurnIndicatorControlTypeToJSON, vehicleImageStateTypeFromJSON, vehicleImageStateTypeToJSON };
|
|
10304
|
+
export { AlertState, AutopilotBase, AutopilotOverrideState, ChargeOnSolarState, ChargeOnSolarStateChargingOnAnything, ChargeOnSolarStateChargingOnExcessSolar, ChargeOnSolarStateError, ChargeOnSolarStateNoChargeRecommended, ChargeOnSolarStateNotAllowed, ChargeOnSolarStateUserDisabled, ChargeOnSolarStateUserStopped, ChargeOnSolarStateWaitingForServer, ChargeScheduleState, ChargeState, ChargeState_CableType, ChargeState_ChargeLimitReason, ChargeState_ChargePortColorE, ChargeState_ChargerBrand, ChargeState_ChargerType, ChargeState_ChargingState, ChargeState_OutletState, ChargeState_PowerFeedState, ChargeState_PowershareStatus, ChargeState_PowershareStopReason, ChargeState_PowershareType, ChargeState_ScheduledChargingMode, ChildPresenceDetectionState, ClimateState, ClimateState_COPNotRunningReason, ClimateState_CabinOverheatProtectionE, ClimateState_ClimateKeeperMode, ClimateState_CopActivationTemp, ClimateState_DefrostMode, ClimateState_DogModeState, ClimateState_HvacAutoRequest, ClimateState_SeatCoolingLevelE, ClimateState_SeatHeaterLevelE, ClosuresState, ClosuresState_DisplayState, ClosuresState_SentryModeState, ClosuresState_SunRoofState, DashCamState, DriveState, DriveState_FsdLast7DaysUsage, DriveState_FsdMonthlyMileage, GuiSettings, GuiSettings_TirePressureUnit, LegacyMediaInfo, LegacyMediaState, LightShowOption, LightShowSettings, LightShowState, LocationState, LocationState_GPSCoordinateType, ManagedChargingState, MediaDetailState, MediaSourceType, MediaState, ParentalControlsSettings, ParentalControlsState, ParkedAccessoryState, PreconditioningScheduleState, ShiftState, SoftwareUpdateState, SoftwareUpdateState_SoftwareUpdateStatus, SohState, SohState_SohResult, SohState_SohTestEndMode, SohState_SohTestPhase, SohState_SohTestState, SohState_WarrantyServiceResult, SpeedLimitMode, SuspensionState, TheaterSource, TirePressureState, VehicleConfig, VehicleConfig_AuxParkLampsE, VehicleConfig_BadgingMaterialType, VehicleConfig_BedLightingType, VehicleConfig_DrivetrainType, VehicleConfig_ExteriorTrimType, VehicleConfig_FrontFasciaCameraType, VehicleConfig_HeadlampTypeE, VehicleConfig_InteriorTrimType, VehicleConfig_InteriorUpperTrimType, VehicleConfig_RearLightHardwareVariant, VehicleConfig_RearLightType, VehicleConfig_SeatTrimType, VehicleConfig_TurnIndicatorControlType, VehicleData, VehicleDetailState, VehicleImage, VehicleImageData, VehicleImageState, VehicleImageStateType, VehicleState, VehicleState_GuestMode, autopilotBaseFromJSON, autopilotBaseToJSON, autopilotOverrideStateFromJSON, autopilotOverrideStateToJSON, chargeState_ChargeLimitReasonFromJSON, chargeState_ChargeLimitReasonToJSON, chargeState_ChargePortColorEFromJSON, chargeState_ChargePortColorEToJSON, chargeState_OutletStateFromJSON, chargeState_OutletStateToJSON, chargeState_PowerFeedStateFromJSON, chargeState_PowerFeedStateToJSON, chargeState_PowershareStatusFromJSON, chargeState_PowershareStatusToJSON, chargeState_PowershareStopReasonFromJSON, chargeState_PowershareStopReasonToJSON, chargeState_PowershareTypeFromJSON, chargeState_PowershareTypeToJSON, chargeState_ScheduledChargingModeFromJSON, chargeState_ScheduledChargingModeToJSON, climateState_COPNotRunningReasonFromJSON, climateState_COPNotRunningReasonToJSON, climateState_CabinOverheatProtectionEFromJSON, climateState_CabinOverheatProtectionEToJSON, climateState_CopActivationTempFromJSON, climateState_CopActivationTempToJSON, climateState_DogModeStateFromJSON, climateState_DogModeStateToJSON, climateState_HvacAutoRequestFromJSON, climateState_HvacAutoRequestToJSON, climateState_SeatCoolingLevelEFromJSON, climateState_SeatCoolingLevelEToJSON, climateState_SeatHeaterLevelEFromJSON, climateState_SeatHeaterLevelEToJSON, dashCamStateFromJSON, dashCamStateToJSON, guiSettings_TirePressureUnitFromJSON, guiSettings_TirePressureUnitToJSON, mediaSourceTypeFromJSON, mediaSourceTypeToJSON, protobufPackage, sohState_WarrantyServiceResultFromJSON, sohState_WarrantyServiceResultToJSON, theaterSourceFromJSON, theaterSourceToJSON, vehicleConfig_AuxParkLampsEFromJSON, vehicleConfig_AuxParkLampsEToJSON, vehicleConfig_BadgingMaterialTypeFromJSON, vehicleConfig_BadgingMaterialTypeToJSON, vehicleConfig_BedLightingTypeFromJSON, vehicleConfig_BedLightingTypeToJSON, vehicleConfig_DrivetrainTypeFromJSON, vehicleConfig_DrivetrainTypeToJSON, vehicleConfig_FrontFasciaCameraTypeFromJSON, vehicleConfig_FrontFasciaCameraTypeToJSON, vehicleConfig_HeadlampTypeEFromJSON, vehicleConfig_HeadlampTypeEToJSON, vehicleConfig_InteriorUpperTrimTypeFromJSON, vehicleConfig_InteriorUpperTrimTypeToJSON, vehicleConfig_RearLightHardwareVariantFromJSON, vehicleConfig_RearLightHardwareVariantToJSON, vehicleConfig_RearLightTypeFromJSON, vehicleConfig_RearLightTypeToJSON, vehicleConfig_SeatTrimTypeFromJSON, vehicleConfig_SeatTrimTypeToJSON, vehicleConfig_TurnIndicatorControlTypeFromJSON, vehicleConfig_TurnIndicatorControlTypeToJSON, vehicleImageStateTypeFromJSON, vehicleImageStateTypeToJSON };
|
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
//#region src/energy_command/identifier_type.ts
|
|
3
3
|
const protobufPackage = "tesla.proto.energy.command.v1";
|
|
4
|
-
/**
|
|
5
|
-
* TESLEMETRY SOURCE-OF-RECORD - no upstream.
|
|
6
|
-
* Provenance: Tesla Energy gateway (TEG) local API, from our own
|
|
7
|
-
* observations and contributions from the community
|
|
8
|
-
*/
|
|
9
4
|
let IdentifierType = /* @__PURE__ */ function(IdentifierType) {
|
|
10
5
|
IdentifierType[IdentifierType["IDENTIFIER_TYPE_INVALID"] = 0] = "IDENTIFIER_TYPE_INVALID";
|
|
11
6
|
IdentifierType[IdentifierType["IDENTIFIER_TYPE_GATEWAY_DIN"] = 1] = "IDENTIFIER_TYPE_GATEWAY_DIN";
|
|
@@ -1,10 +1,5 @@
|
|
|
1
1
|
//#region src/energy_command/identifier_type.d.ts
|
|
2
2
|
declare const protobufPackage = "tesla.proto.energy.command.v1";
|
|
3
|
-
/**
|
|
4
|
-
* TESLEMETRY SOURCE-OF-RECORD - no upstream.
|
|
5
|
-
* Provenance: Tesla Energy gateway (TEG) local API, from our own
|
|
6
|
-
* observations and contributions from the community
|
|
7
|
-
*/
|
|
8
3
|
declare enum IdentifierType {
|
|
9
4
|
IDENTIFIER_TYPE_INVALID = 0,
|
|
10
5
|
IDENTIFIER_TYPE_GATEWAY_DIN = 1,
|
|
@@ -1,10 +1,5 @@
|
|
|
1
1
|
//#region src/energy_command/identifier_type.d.ts
|
|
2
2
|
declare const protobufPackage = "tesla.proto.energy.command.v1";
|
|
3
|
-
/**
|
|
4
|
-
* TESLEMETRY SOURCE-OF-RECORD - no upstream.
|
|
5
|
-
* Provenance: Tesla Energy gateway (TEG) local API, from our own
|
|
6
|
-
* observations and contributions from the community
|
|
7
|
-
*/
|
|
8
3
|
declare enum IdentifierType {
|
|
9
4
|
IDENTIFIER_TYPE_INVALID = 0,
|
|
10
5
|
IDENTIFIER_TYPE_GATEWAY_DIN = 1,
|
|
@@ -1,10 +1,5 @@
|
|
|
1
1
|
//#region src/energy_command/identifier_type.ts
|
|
2
2
|
const protobufPackage = "tesla.proto.energy.command.v1";
|
|
3
|
-
/**
|
|
4
|
-
* TESLEMETRY SOURCE-OF-RECORD - no upstream.
|
|
5
|
-
* Provenance: Tesla Energy gateway (TEG) local API, from our own
|
|
6
|
-
* observations and contributions from the community
|
|
7
|
-
*/
|
|
8
3
|
let IdentifierType = /* @__PURE__ */ function(IdentifierType) {
|
|
9
4
|
IdentifierType[IdentifierType["IDENTIFIER_TYPE_INVALID"] = 0] = "IDENTIFIER_TYPE_INVALID";
|
|
10
5
|
IdentifierType[IdentifierType["IDENTIFIER_TYPE_GATEWAY_DIN"] = 1] = "IDENTIFIER_TYPE_GATEWAY_DIN";
|
|
@@ -2,11 +2,6 @@ import { AuthorizationRecord, AuthorizationRole, AuthorizedClientType, Authorize
|
|
|
2
2
|
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
3
3
|
//#region src/energy_device/authorization_api.d.ts
|
|
4
4
|
declare const protobufPackage = "tesla.proto.energy_device.v1";
|
|
5
|
-
/**
|
|
6
|
-
* TESLEMETRY SOURCE-OF-RECORD - no upstream.
|
|
7
|
-
* Provenance: Tesla Energy gateway (TEG) local API, from our own
|
|
8
|
-
* observations and contributions from the community
|
|
9
|
-
*/
|
|
10
5
|
interface AuthorizationAPIAddAuthorizedClientRequest {
|
|
11
6
|
type: AuthorizedClientType;
|
|
12
7
|
description: string;
|
|
@@ -2,11 +2,6 @@ import { AuthorizationRecord, AuthorizationRole, AuthorizedClientType, Authorize
|
|
|
2
2
|
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
3
3
|
//#region src/energy_device/authorization_api.d.ts
|
|
4
4
|
declare const protobufPackage = "tesla.proto.energy_device.v1";
|
|
5
|
-
/**
|
|
6
|
-
* TESLEMETRY SOURCE-OF-RECORD - no upstream.
|
|
7
|
-
* Provenance: Tesla Energy gateway (TEG) local API, from our own
|
|
8
|
-
* observations and contributions from the community
|
|
9
|
-
*/
|
|
10
5
|
interface AuthorizationAPIAddAuthorizedClientRequest {
|
|
11
6
|
type: AuthorizedClientType;
|
|
12
7
|
description: string;
|
|
@@ -3,11 +3,6 @@ const require_energy_device_google_protobuf_timestamp = require("./google/protob
|
|
|
3
3
|
let _bufbuild_protobuf_wire = require("@bufbuild/protobuf/wire");
|
|
4
4
|
//#region src/energy_device/authorization_types.ts
|
|
5
5
|
const protobufPackage = "tesla.proto.energy_device.v1";
|
|
6
|
-
/**
|
|
7
|
-
* TESLEMETRY SOURCE-OF-RECORD - no upstream.
|
|
8
|
-
* Provenance: Tesla Energy gateway (TEG) local API, from our own
|
|
9
|
-
* observations and contributions from the community
|
|
10
|
-
*/
|
|
11
6
|
let AuthorizationRole = /* @__PURE__ */ function(AuthorizationRole) {
|
|
12
7
|
AuthorizationRole[AuthorizationRole["AUTHORIZATION_ROLE_INVALID"] = 0] = "AUTHORIZATION_ROLE_INVALID";
|
|
13
8
|
AuthorizationRole[AuthorizationRole["AUTHORIZATION_ROLE_CUSTOMER"] = 1] = "AUTHORIZATION_ROLE_CUSTOMER";
|
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
2
|
//#region src/energy_device/authorization_types.d.ts
|
|
3
3
|
declare const protobufPackage = "tesla.proto.energy_device.v1";
|
|
4
|
-
/**
|
|
5
|
-
* TESLEMETRY SOURCE-OF-RECORD - no upstream.
|
|
6
|
-
* Provenance: Tesla Energy gateway (TEG) local API, from our own
|
|
7
|
-
* observations and contributions from the community
|
|
8
|
-
*/
|
|
9
4
|
declare enum AuthorizationRole {
|
|
10
5
|
AUTHORIZATION_ROLE_INVALID = 0,
|
|
11
6
|
AUTHORIZATION_ROLE_CUSTOMER = 1,
|
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
2
|
//#region src/energy_device/authorization_types.d.ts
|
|
3
3
|
declare const protobufPackage = "tesla.proto.energy_device.v1";
|
|
4
|
-
/**
|
|
5
|
-
* TESLEMETRY SOURCE-OF-RECORD - no upstream.
|
|
6
|
-
* Provenance: Tesla Energy gateway (TEG) local API, from our own
|
|
7
|
-
* observations and contributions from the community
|
|
8
|
-
*/
|
|
9
4
|
declare enum AuthorizationRole {
|
|
10
5
|
AUTHORIZATION_ROLE_INVALID = 0,
|
|
11
6
|
AUTHORIZATION_ROLE_CUSTOMER = 1,
|
|
@@ -2,11 +2,6 @@ import { Timestamp } from "./google/protobuf/timestamp.mjs";
|
|
|
2
2
|
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
3
3
|
//#region src/energy_device/authorization_types.ts
|
|
4
4
|
const protobufPackage = "tesla.proto.energy_device.v1";
|
|
5
|
-
/**
|
|
6
|
-
* TESLEMETRY SOURCE-OF-RECORD - no upstream.
|
|
7
|
-
* Provenance: Tesla Energy gateway (TEG) local API, from our own
|
|
8
|
-
* observations and contributions from the community
|
|
9
|
-
*/
|
|
10
5
|
let AuthorizationRole = /* @__PURE__ */ function(AuthorizationRole) {
|
|
11
6
|
AuthorizationRole[AuthorizationRole["AUTHORIZATION_ROLE_INVALID"] = 0] = "AUTHORIZATION_ROLE_INVALID";
|
|
12
7
|
AuthorizationRole[AuthorizationRole["AUTHORIZATION_ROLE_CUSTOMER"] = 1] = "AUTHORIZATION_ROLE_CUSTOMER";
|
|
@@ -6,11 +6,6 @@ import { AcceptedPackage, FirmwareVersion, LocallyAvailablePackage, SystemUpdate
|
|
|
6
6
|
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
7
7
|
//#region src/energy_device/common_api.d.ts
|
|
8
8
|
declare const protobufPackage = "tesla.proto.energy_device.v1";
|
|
9
|
-
/**
|
|
10
|
-
* TESLEMETRY SOURCE-OF-RECORD - no upstream.
|
|
11
|
-
* Provenance: Tesla Energy gateway (TEG) local API, from our own
|
|
12
|
-
* observations and contributions from the community
|
|
13
|
-
*/
|
|
14
9
|
interface CommonAPIGetSystemInfoRequest {}
|
|
15
10
|
interface RadioLegalInformation {
|
|
16
11
|
manufacturer: string | undefined;
|
|
@@ -6,11 +6,6 @@ import { AcceptedPackage, FirmwareVersion, LocallyAvailablePackage, SystemUpdate
|
|
|
6
6
|
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
7
7
|
//#region src/energy_device/common_api.d.ts
|
|
8
8
|
declare const protobufPackage = "tesla.proto.energy_device.v1";
|
|
9
|
-
/**
|
|
10
|
-
* TESLEMETRY SOURCE-OF-RECORD - no upstream.
|
|
11
|
-
* Provenance: Tesla Energy gateway (TEG) local API, from our own
|
|
12
|
-
* observations and contributions from the community
|
|
13
|
-
*/
|
|
14
9
|
interface CommonAPIGetSystemInfoRequest {}
|
|
15
10
|
interface RadioLegalInformation {
|
|
16
11
|
manufacturer: string | undefined;
|
|
@@ -2,11 +2,6 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
2
2
|
let _bufbuild_protobuf_wire = require("@bufbuild/protobuf/wire");
|
|
3
3
|
//#region src/energy_device/device.ts
|
|
4
4
|
const protobufPackage = "tesla.proto.energy_device.v1";
|
|
5
|
-
/**
|
|
6
|
-
* TESLEMETRY SOURCE-OF-RECORD - no upstream.
|
|
7
|
-
* Provenance: Tesla Energy gateway (TEG) local API, from our own
|
|
8
|
-
* observations and contributions from the community
|
|
9
|
-
*/
|
|
10
5
|
let DeviceType = /* @__PURE__ */ function(DeviceType) {
|
|
11
6
|
DeviceType[DeviceType["DEVICE_TYPE_INVALID"] = 0] = "DEVICE_TYPE_INVALID";
|
|
12
7
|
DeviceType[DeviceType["DEVICE_TYPE_GEN3WC"] = 1] = "DEVICE_TYPE_GEN3WC";
|
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
2
|
//#region src/energy_device/device.d.ts
|
|
3
3
|
declare const protobufPackage = "tesla.proto.energy_device.v1";
|
|
4
|
-
/**
|
|
5
|
-
* TESLEMETRY SOURCE-OF-RECORD - no upstream.
|
|
6
|
-
* Provenance: Tesla Energy gateway (TEG) local API, from our own
|
|
7
|
-
* observations and contributions from the community
|
|
8
|
-
*/
|
|
9
4
|
declare enum DeviceType {
|
|
10
5
|
DEVICE_TYPE_INVALID = 0,
|
|
11
6
|
DEVICE_TYPE_GEN3WC = 1,
|
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
2
|
//#region src/energy_device/device.d.ts
|
|
3
3
|
declare const protobufPackage = "tesla.proto.energy_device.v1";
|
|
4
|
-
/**
|
|
5
|
-
* TESLEMETRY SOURCE-OF-RECORD - no upstream.
|
|
6
|
-
* Provenance: Tesla Energy gateway (TEG) local API, from our own
|
|
7
|
-
* observations and contributions from the community
|
|
8
|
-
*/
|
|
9
4
|
declare enum DeviceType {
|
|
10
5
|
DEVICE_TYPE_INVALID = 0,
|
|
11
6
|
DEVICE_TYPE_GEN3WC = 1,
|
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
2
|
//#region src/energy_device/device.ts
|
|
3
3
|
const protobufPackage = "tesla.proto.energy_device.v1";
|
|
4
|
-
/**
|
|
5
|
-
* TESLEMETRY SOURCE-OF-RECORD - no upstream.
|
|
6
|
-
* Provenance: Tesla Energy gateway (TEG) local API, from our own
|
|
7
|
-
* observations and contributions from the community
|
|
8
|
-
*/
|
|
9
4
|
let DeviceType = /* @__PURE__ */ function(DeviceType) {
|
|
10
5
|
DeviceType[DeviceType["DEVICE_TYPE_INVALID"] = 0] = "DEVICE_TYPE_INVALID";
|
|
11
6
|
DeviceType[DeviceType["DEVICE_TYPE_GEN3WC"] = 1] = "DEVICE_TYPE_GEN3WC";
|