import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire"; //#region src/telemetry/vehicle_data.d.ts declare const protobufPackage = "telemetry.vehicle_data"; /** * UPSTREAM-SOURCE: teslamotors/fleet-telemetry * UPSTREAM-PATH: protos/vehicle_data.proto * UPSTREAM-COMMIT: see upstream.json * This file tracks upstream verbatim, plus marked Teslemetry extensions * (TESLEMETRY-EXT); reserved numbers annotated "expected" are not-yet- * confirmed candidates and are not active members. */ declare enum Field { Unknown = 0, DriveRail = 1, ChargeState = 2, BmsFullchargecomplete = 3, VehicleSpeed = 4, Odometer = 5, PackVoltage = 6, PackCurrent = 7, Soc = 8, DCDCEnable = 9, Gear = 10, IsolationResistance = 11, PedalPosition = 12, BrakePedal = 13, DiStateR = 14, DiHeatsinkTR = 15, DiAxleSpeedR = 16, DiTorquemotor = 17, DiStatorTempR = 18, DiVBatR = 19, DiMotorCurrentR = 20, Location = 21, GpsState = 22, GpsHeading = 23, NumBrickVoltageMax = 24, BrickVoltageMax = 25, NumBrickVoltageMin = 26, BrickVoltageMin = 27, NumModuleTempMax = 28, ModuleTempMax = 29, NumModuleTempMin = 30, ModuleTempMin = 31, RatedRange = 32, Hvil = 33, DCChargingEnergyIn = 34, DCChargingPower = 35, ACChargingEnergyIn = 36, ACChargingPower = 37, ChargeLimitSoc = 38, FastChargerPresent = 39, EstBatteryRange = 40, IdealBatteryRange = 41, BatteryLevel = 42, TimeToFullCharge = 43, ScheduledChargingStartTime = 44, ScheduledChargingPending = 45, ScheduledDepartureTime = 46, PreconditioningEnabled = 47, ScheduledChargingMode = 48, ChargeAmps = 49, ChargeEnableRequest = 50, ChargerPhases = 51, ChargePortColdWeatherMode = 52, ChargeCurrentRequest = 53, ChargeCurrentRequestMax = 54, BatteryHeaterOn = 55, NotEnoughPowerToHeat = 56, SuperchargerSessionTripPlanner = 57, DoorState = 58, Locked = 59, FdWindow = 60, FpWindow = 61, RdWindow = 62, RpWindow = 63, VehicleName = 64, SentryMode = 65, SpeedLimitMode = 66, CurrentLimitMph = 67, Version = 68, TpmsPressureFl = 69, TpmsPressureFr = 70, TpmsPressureRl = 71, TpmsPressureRr = 72, /** SemitruckTpmsPressureRe1L0 - Semi-truck only */ SemitruckTpmsPressureRe1L0 = 73, /** SemitruckTpmsPressureRe1L1 - Semi-truck only */ SemitruckTpmsPressureRe1L1 = 74, /** SemitruckTpmsPressureRe1R0 - Semi-truck only */ SemitruckTpmsPressureRe1R0 = 75, /** SemitruckTpmsPressureRe1R1 - Semi-truck only */ SemitruckTpmsPressureRe1R1 = 76, /** SemitruckTpmsPressureRe2L0 - Semi-truck only */ SemitruckTpmsPressureRe2L0 = 77, /** SemitruckTpmsPressureRe2L1 - Semi-truck only */ SemitruckTpmsPressureRe2L1 = 78, /** SemitruckTpmsPressureRe2R0 - Semi-truck only */ SemitruckTpmsPressureRe2R0 = 79, /** SemitruckTpmsPressureRe2R1 - Semi-truck only */ SemitruckTpmsPressureRe2R1 = 80, TpmsLastSeenPressureTimeFl = 81, TpmsLastSeenPressureTimeFr = 82, TpmsLastSeenPressureTimeRl = 83, TpmsLastSeenPressureTimeRr = 84, InsideTemp = 85, OutsideTemp = 86, SeatHeaterLeft = 87, SeatHeaterRight = 88, SeatHeaterRearLeft = 89, SeatHeaterRearRight = 90, SeatHeaterRearCenter = 91, AutoSeatClimateLeft = 92, AutoSeatClimateRight = 93, DriverSeatBelt = 94, PassengerSeatBelt = 95, DriverSeatOccupied = 96, /** SemitruckPassengerSeatFoldPosition - Semi-truck only */ SemitruckPassengerSeatFoldPosition = 97, LateralAcceleration = 98, LongitudinalAcceleration = 99, Deprecated_2 = 100, CruiseSetSpeed = 101, LifetimeEnergyUsed = 102, /** LifetimeEnergyUsedDrive - Semi-truck only */ LifetimeEnergyUsedDrive = 103, /** SemitruckTractorParkBrakeStatus - Semi-truck only */ SemitruckTractorParkBrakeStatus = 104, /** SemitruckTrailerParkBrakeStatus - Semi-truck only */ SemitruckTrailerParkBrakeStatus = 105, BrakePedalPos = 106, /** RouteLastUpdated - Requires firmware version 2024.26 or later */ RouteLastUpdated = 107, /** RouteLine - Requires firmware version 2024.26 or later */ RouteLine = 108, /** MilesToArrival - Requires firmware version 2024.26 or later */ MilesToArrival = 109, /** MinutesToArrival - Requires firmware version 2024.26 or later */ MinutesToArrival = 110, /** OriginLocation - Requires firmware version 2024.26 or later */ OriginLocation = 111, /** DestinationLocation - Requires firmware version 2024.26 or later */ DestinationLocation = 112, CarType = 113, Trim = 114, ExteriorColor = 115, RoofColor = 116, ChargePort = 117, ChargePortLatch = 118, Experimental_1 = 119, Experimental_2 = 120, Experimental_3 = 121, Experimental_4 = 122, GuestModeEnabled = 123, PinToDriveEnabled = 124, PairedPhoneKeyAndKeyFobQty = 125, CruiseFollowDistance = 126, AutomaticBlindSpotCamera = 127, BlindSpotCollisionWarningChime = 128, SpeedLimitWarning = 129, ForwardCollisionWarning = 130, LaneDepartureAvoidance = 131, EmergencyLaneDepartureAvoidance = 132, AutomaticEmergencyBrakingOff = 133, LifetimeEnergyGainedRegen = 134, DiStateF = 135, DiStateREL = 136, DiStateRER = 137, DiHeatsinkTF = 138, DiHeatsinkTREL = 139, DiHeatsinkTRER = 140, DiAxleSpeedF = 141, DiAxleSpeedREL = 142, DiAxleSpeedRER = 143, DiSlaveTorqueCmd = 144, DiTorqueActualR = 145, DiTorqueActualF = 146, DiTorqueActualREL = 147, DiTorqueActualRER = 148, DiStatorTempF = 149, DiStatorTempREL = 150, DiStatorTempRER = 151, DiVBatF = 152, DiVBatREL = 153, DiVBatRER = 154, DiMotorCurrentF = 155, DiMotorCurrentREL = 156, DiMotorCurrentRER = 157, EnergyRemaining = 158, ServiceMode = 159, BMSState = 160, GuestModeMobileAccessState = 161, Deprecated_1 = 162, /** DestinationName - Requires firmware version 2024.26 or later */ DestinationName = 163, DiInverterTR = 164, DiInverterTF = 165, DiInverterTREL = 166, DiInverterTRER = 167, Experimental_5 = 168, Experimental_6 = 169, Experimental_7 = 170, Experimental_8 = 171, Experimental_9 = 172, Experimental_10 = 173, Experimental_11 = 174, Experimental_12 = 175, Experimental_13 = 176, Experimental_14 = 177, Experimental_15 = 178, DetailedChargeState = 179, CabinOverheatProtectionMode = 180, CabinOverheatProtectionTemperatureLimit = 181, CenterDisplay = 182, ChargePortDoorOpen = 183, ChargerVoltage = 184, ChargingCableType = 185, ClimateKeeperMode = 186, DefrostForPreconditioning = 187, DefrostMode = 188, EfficiencyPackage = 189, EstimatedHoursToChargeTermination = 190, EuropeVehicle = 191, ExpectedEnergyPercentAtTripArrival = 192, FastChargerType = 193, HomelinkDeviceCount = 194, HomelinkNearby = 195, HvacACEnabled = 196, HvacAutoMode = 197, HvacFanSpeed = 198, HvacFanStatus = 199, HvacLeftTemperatureRequest = 200, HvacPower = 201, HvacRightTemperatureRequest = 202, HvacSteeringWheelHeatAuto = 203, HvacSteeringWheelHeatLevel = 204, OffroadLightbarPresent = 205, PowershareHoursLeft = 206, PowershareInstantaneousPowerKW = 207, PowershareStatus = 208, PowershareStopReason = 209, PowershareType = 210, RearDisplayHvacEnabled = 211, RearSeatHeaters = 212, RemoteStartEnabled = 213, RightHandDrive = 214, RouteTrafficMinutesDelay = 215, SoftwareUpdateDownloadPercentComplete = 216, SoftwareUpdateExpectedDurationMinutes = 217, SoftwareUpdateInstallationPercentComplete = 218, SoftwareUpdateScheduledStartTime = 219, SoftwareUpdateVersion = 220, TonneauOpenPercent = 221, TonneauPosition = 222, TonneauTentMode = 223, TpmsHardWarnings = 224, TpmsSoftWarnings = 225, ValetModeEnabled = 226, WheelType = 227, WiperHeatEnabled = 228, LocatedAtHome = 229, LocatedAtWork = 230, LocatedAtFavorite = 231, SettingDistanceUnit = 232, SettingTemperatureUnit = 233, Setting24HourTime = 234, SettingTirePressureUnit = 235, SettingChargeUnit = 236, ClimateSeatCoolingFrontLeft = 237, ClimateSeatCoolingFrontRight = 238, LightsHazardsActive = 239, LightsTurnSignal = 240, LightsHighBeams = 241, MediaPlaybackStatus = 242, MediaPlaybackSource = 243, MediaAudioVolume = 244, MediaNowPlayingDuration = 245, MediaNowPlayingElapsed = 246, MediaNowPlayingArtist = 247, MediaNowPlayingTitle = 248, MediaNowPlayingAlbum = 249, MediaNowPlayingStation = 250, MediaAudioVolumeIncrement = 251, MediaAudioVolumeMax = 252, SunroofInstalled = 253, SeatVentEnabled = 254, RearDefrostEnabled = 255, ChargeRateMilePerHour = 256, Deprecated_3 = 257, MilesSinceReset = 258, SelfDrivingMilesSinceReset = 259, GpsAccuracyMeters = 260, LifetimeEnergyChargedKwh = 261, BrickSocMinPercent = 262, NominalFullPackEnergyKwh = 263, GradeEstimatePercent = 264, MaxSpeedToReachDestinationMph = 265, SoftwareUpdateAvailable = 266, SoftwareUpdateInProgress = 267, RemoteStartActive = 268, /** SemiCruiseSpeedLimitMph - Semi-truck only */ SemiCruiseSpeedLimitMph = 269, /** Cabin12vPortKeepOn - Semi-truck only */ Cabin12vPortKeepOn = 270, /** Cabin48vPortKeepOn - Semi-truck only */ Cabin48vPortKeepOn = 271, AccessoryRail = 272, PowerTransferStatus = 273, AutomaticEmergencyBrakingState = 274, RollingResistanceCoefficient = 275, LifetimeDcChargeEnergyKwh = 276, /** SemiVehicleMassKg - Semi-truck only */ SemiVehicleMassKg = 277, SelfDrivingSoftwareVersion = 278, /** SemiTrailerLatched - Semi-truck only */ SemiTrailerLatched = 279, /** SemiCruiseActive - Semi-truck V2 only */ SemiCruiseActive = 280, UNRECOGNIZED = -1 } declare function fieldFromJSON(object: any): Field; declare function fieldToJSON(object: Field): string; /** ChargingState is deprecated and not used */ declare enum ChargingState { ChargeStateUnknown = 0, ChargeStateDisconnected = 1, ChargeStateNoPower = 2, ChargeStateStarting = 3, ChargeStateCharging = 4, ChargeStateComplete = 5, ChargeStateStopped = 6, UNRECOGNIZED = -1 } declare function chargingStateFromJSON(object: any): ChargingState; declare function chargingStateToJSON(object: ChargingState): string; declare enum DetailedChargeStateValue { DetailedChargeStateUnknown = 0, DetailedChargeStateDisconnected = 1, DetailedChargeStateNoPower = 2, DetailedChargeStateStarting = 3, DetailedChargeStateCharging = 4, DetailedChargeStateComplete = 5, DetailedChargeStateStopped = 6, /** DetailedChargeStateCalibrating - TESLEMETRY-EXT (teslamotors/vehicle-command ChargeState.ChargingState.Calibrating=8, offset -1 to match this enum's established numbering) */ DetailedChargeStateCalibrating = 7, UNRECOGNIZED = -1 } declare function detailedChargeStateValueFromJSON(object: any): DetailedChargeStateValue; declare function detailedChargeStateValueToJSON(object: DetailedChargeStateValue): string; /** ShiftState are the gear options */ declare enum ShiftState { ShiftStateUnknown = 0, ShiftStateInvalid = 1, ShiftStateP = 2, ShiftStateR = 3, ShiftStateN = 4, ShiftStateD = 5, ShiftStateSNA = 6, UNRECOGNIZED = -1 } declare function shiftStateFromJSON(object: any): ShiftState; declare function shiftStateToJSON(object: ShiftState): string; declare enum FollowDistance { FollowDistanceUnknown = 0, FollowDistance1 = 1, FollowDistance2 = 2, FollowDistance3 = 3, FollowDistance4 = 4, FollowDistance5 = 5, FollowDistance6 = 6, FollowDistance7 = 7, UNRECOGNIZED = -1 } declare function followDistanceFromJSON(object: any): FollowDistance; declare function followDistanceToJSON(object: FollowDistance): string; declare enum ForwardCollisionSensitivity { ForwardCollisionSensitivityUnknown = 0, ForwardCollisionSensitivityOff = 1, ForwardCollisionSensitivityLate = 2, ForwardCollisionSensitivityAverage = 3, ForwardCollisionSensitivityEarly = 4, UNRECOGNIZED = -1 } declare function forwardCollisionSensitivityFromJSON(object: any): ForwardCollisionSensitivity; declare function forwardCollisionSensitivityToJSON(object: ForwardCollisionSensitivity): string; declare enum GuestModeMobileAccess { GuestModeMobileAccessUnknown = 0, GuestModeMobileAccessInit = 1, GuestModeMobileAccessNotAuthenticated = 2, GuestModeMobileAccessAuthenticated = 3, GuestModeMobileAccessAbortedDriving = 4, GuestModeMobileAccessAbortedUsingRemoteStart = 5, GuestModeMobileAccessAbortedUsingBLEKeys = 6, GuestModeMobileAccessAbortedValetMode = 7, GuestModeMobileAccessAbortedGuestModeOff = 8, GuestModeMobileAccessAbortedDriveAuthTimeExceeded = 9, GuestModeMobileAccessAbortedNoDataReceived = 10, GuestModeMobileAccessRequestingFromMothership = 11, GuestModeMobileAccessRequestingFromAuthD = 12, GuestModeMobileAccessAbortedFetchFailed = 13, GuestModeMobileAccessAbortedBadDataReceived = 14, GuestModeMobileAccessShowingQRCode = 15, GuestModeMobileAccessSwipedAway = 16, GuestModeMobileAccessDismissedQRCodeExpired = 17, GuestModeMobileAccessSucceededPairedNewBLEKey = 18, UNRECOGNIZED = -1 } declare function guestModeMobileAccessFromJSON(object: any): GuestModeMobileAccess; declare function guestModeMobileAccessToJSON(object: GuestModeMobileAccess): string; declare enum LaneAssistLevel { LaneAssistLevelUnknown = 0, LaneAssistLevelNone = 1, LaneAssistLevelWarning = 2, LaneAssistLevelAssist = 3, UNRECOGNIZED = -1 } declare function laneAssistLevelFromJSON(object: any): LaneAssistLevel; declare function laneAssistLevelToJSON(object: LaneAssistLevel): string; declare enum ScheduledChargingModeValue { ScheduledChargingModeUnknown = 0, ScheduledChargingModeOff = 1, ScheduledChargingModeStartAt = 2, ScheduledChargingModeDepartBy = 3, UNRECOGNIZED = -1 } declare function scheduledChargingModeValueFromJSON(object: any): ScheduledChargingModeValue; declare function scheduledChargingModeValueToJSON(object: ScheduledChargingModeValue): string; declare enum SentryModeState { SentryModeStateUnknown = 0, SentryModeStateOff = 1, SentryModeStateIdle = 2, SentryModeStateArmed = 3, SentryModeStateAware = 4, SentryModeStatePanic = 5, SentryModeStateQuiet = 6, UNRECOGNIZED = -1 } declare function sentryModeStateFromJSON(object: any): SentryModeState; declare function sentryModeStateToJSON(object: SentryModeState): string; declare enum SpeedAssistLevel { SpeedAssistLevelUnknown = 0, SpeedAssistLevelNone = 1, SpeedAssistLevelDisplay = 2, SpeedAssistLevelChime = 3, UNRECOGNIZED = -1 } declare function speedAssistLevelFromJSON(object: any): SpeedAssistLevel; declare function speedAssistLevelToJSON(object: SpeedAssistLevel): string; declare enum BMSStateValue { BMSStateUnknown = 0, BMSStateStandby = 1, BMSStateDrive = 2, BMSStateSupport = 3, BMSStateCharge = 4, BMSStateFEIM = 5, BMSStateClearFault = 6, BMSStateFault = 7, BMSStateWeld = 8, BMSStateTest = 9, BMSStateSNA = 10, UNRECOGNIZED = -1 } declare function bMSStateValueFromJSON(object: any): BMSStateValue; declare function bMSStateValueToJSON(object: BMSStateValue): string; declare enum BuckleStatus { BuckleStatusUnknown = 0, BuckleStatusUnlatched = 1, BuckleStatusLatched = 2, BuckleStatusFaulted = 3, /** BuckleStatusSNA - TESLEMETRY-EXT */ BuckleStatusSNA = 4, UNRECOGNIZED = -1 } declare function buckleStatusFromJSON(object: any): BuckleStatus; declare function buckleStatusToJSON(object: BuckleStatus): string; declare enum CarTypeValue { CarTypeUnknown = 0, CarTypeModelS = 1, CarTypeModelX = 2, CarTypeModel3 = 3, CarTypeModelY = 4, CarTypeSemiTruck = 5, CarTypeCybertruck = 6, CarTypeSemiTruckV2 = 7, CarTypeCybercab = 8, UNRECOGNIZED = -1 } declare function carTypeValueFromJSON(object: any): CarTypeValue; declare function carTypeValueToJSON(object: CarTypeValue): string; declare enum ChargePortValue { ChargePortUnknown = 0, ChargePortUS = 1, ChargePortEU = 2, ChargePortGB = 3, ChargePortCCS = 4, UNRECOGNIZED = -1 } declare function chargePortValueFromJSON(object: any): ChargePortValue; declare function chargePortValueToJSON(object: ChargePortValue): string; declare enum ChargePortLatchValue { ChargePortLatchUnknown = 0, ChargePortLatchSNA = 1, ChargePortLatchDisengaged = 2, ChargePortLatchEngaged = 3, ChargePortLatchBlocking = 4, UNRECOGNIZED = -1 } declare function chargePortLatchValueFromJSON(object: any): ChargePortLatchValue; declare function chargePortLatchValueToJSON(object: ChargePortLatchValue): string; declare enum DriveInverterState { DriveInverterStateUnknown = 0, DriveInverterStateUnavailable = 1, DriveInverterStateStandby = 2, DriveInverterStateFault = 3, DriveInverterStateAbort = 4, DriveInverterStateEnable = 5, UNRECOGNIZED = -1 } declare function driveInverterStateFromJSON(object: any): DriveInverterState; declare function driveInverterStateToJSON(object: DriveInverterState): string; declare enum HvilStatus { HvilStatusUnknown = 0, HvilStatusFault = 1, HvilStatusOK = 2, UNRECOGNIZED = -1 } declare function hvilStatusFromJSON(object: any): HvilStatus; declare function hvilStatusToJSON(object: HvilStatus): string; declare enum WindowState { WindowStateUnknown = 0, WindowStateClosed = 1, WindowStatePartiallyOpen = 2, WindowStateOpened = 3, UNRECOGNIZED = -1 } declare function windowStateFromJSON(object: any): WindowState; declare function windowStateToJSON(object: WindowState): string; declare enum SeatFoldPosition { SeatFoldPositionUnknown = 0, SeatFoldPositionSNA = 1, SeatFoldPositionFaulted = 2, SeatFoldPositionNotConfigured = 3, SeatFoldPositionFolded = 4, SeatFoldPositionUnfolded = 5, UNRECOGNIZED = -1 } declare function seatFoldPositionFromJSON(object: any): SeatFoldPosition; declare function seatFoldPositionToJSON(object: SeatFoldPosition): string; declare enum TractorAirStatus { TractorAirStatusUnknown = 0, TractorAirStatusNotAvailable = 1, TractorAirStatusError = 2, TractorAirStatusCharged = 3, TractorAirStatusBuildingPressureIntermediate = 4, TractorAirStatusExhaustingPressureIntermediate = 5, TractorAirStatusExhausted = 6, UNRECOGNIZED = -1 } declare function tractorAirStatusFromJSON(object: any): TractorAirStatus; declare function tractorAirStatusToJSON(object: TractorAirStatus): string; declare enum TrailerAirStatus { TrailerAirStatusUnknown = 0, TrailerAirStatusSNA = 1, TrailerAirStatusInvalid = 2, TrailerAirStatusBobtailMode = 3, TrailerAirStatusCharged = 4, TrailerAirStatusBuildingPressureIntermediate = 5, TrailerAirStatusExhaustingPressureIntermediate = 6, TrailerAirStatusExhausted = 7, UNRECOGNIZED = -1 } declare function trailerAirStatusFromJSON(object: any): TrailerAirStatus; declare function trailerAirStatusToJSON(object: TrailerAirStatus): string; declare enum HvacAutoModeState { HvacAutoModeStateUnknown = 0, HvacAutoModeStateOn = 1, HvacAutoModeStateOverride = 2, UNRECOGNIZED = -1 } declare function hvacAutoModeStateFromJSON(object: any): HvacAutoModeState; declare function hvacAutoModeStateToJSON(object: HvacAutoModeState): string; declare enum CabinOverheatProtectionModeState { CabinOverheatProtectionModeStateUnknown = 0, CabinOverheatProtectionModeStateOff = 1, CabinOverheatProtectionModeStateOn = 2, CabinOverheatProtectionModeStateFanOnly = 3, UNRECOGNIZED = -1 } declare function cabinOverheatProtectionModeStateFromJSON(object: any): CabinOverheatProtectionModeState; declare function cabinOverheatProtectionModeStateToJSON(object: CabinOverheatProtectionModeState): string; declare enum ClimateOverheatProtectionTempLimit { ClimateOverheatProtectionTempLimitUnknown = 0, ClimateOverheatProtectionTempLimitHigh = 1, ClimateOverheatProtectionTempLimitMedium = 2, ClimateOverheatProtectionTempLimitLow = 3, UNRECOGNIZED = -1 } declare function climateOverheatProtectionTempLimitFromJSON(object: any): ClimateOverheatProtectionTempLimit; declare function climateOverheatProtectionTempLimitToJSON(object: ClimateOverheatProtectionTempLimit): string; declare enum DefrostModeState { DefrostModeStateUnknown = 0, DefrostModeStateOff = 1, DefrostModeStateNormal = 2, DefrostModeStateMax = 3, DefrostModeStateAutoDefog = 4, UNRECOGNIZED = -1 } declare function defrostModeStateFromJSON(object: any): DefrostModeState; declare function defrostModeStateToJSON(object: DefrostModeState): string; declare enum ClimateKeeperModeState { ClimateKeeperModeStateUnknown = 0, ClimateKeeperModeStateOff = 1, ClimateKeeperModeStateOn = 2, ClimateKeeperModeStateDog = 3, ClimateKeeperModeStateParty = 4, UNRECOGNIZED = -1 } declare function climateKeeperModeStateFromJSON(object: any): ClimateKeeperModeState; declare function climateKeeperModeStateToJSON(object: ClimateKeeperModeState): string; declare enum HvacPowerState { HvacPowerStateUnknown = 0, HvacPowerStateOff = 1, HvacPowerStateOn = 2, HvacPowerStatePrecondition = 3, HvacPowerStateOverheatProtect = 4, UNRECOGNIZED = -1 } declare function hvacPowerStateFromJSON(object: any): HvacPowerState; declare function hvacPowerStateToJSON(object: HvacPowerState): string; declare enum FastCharger { FastChargerUnknown = 0, FastChargerSupercharger = 1, FastChargerCHAdeMO = 2, FastChargerGB = 3, FastChargerACSingleWireCAN = 4, FastChargerCombo = 5, FastChargerMCSingleWireCAN = 6, FastChargerOther = 7, FastChargerSNA = 8, UNRECOGNIZED = -1 } declare function fastChargerFromJSON(object: any): FastCharger; declare function fastChargerToJSON(object: FastCharger): string; declare enum CableType { CableTypeUnknown = 0, CableTypeIEC = 1, CableTypeSAE = 2, CableTypeGB_AC = 3, CableTypeGB_DC = 4, CableTypeSNA = 5, UNRECOGNIZED = -1 } declare function cableTypeFromJSON(object: any): CableType; declare function cableTypeToJSON(object: CableType): string; declare enum TonneauTentModeState { TonneauTentModeStateUnknown = 0, TonneauTentModeStateInactive = 1, TonneauTentModeStateMoving = 2, TonneauTentModeStateFailed = 3, TonneauTentModeStateActive = 4, UNRECOGNIZED = -1 } declare function tonneauTentModeStateFromJSON(object: any): TonneauTentModeState; declare function tonneauTentModeStateToJSON(object: TonneauTentModeState): string; declare enum TonneauPositionState { TonneauPositionStateUnknown = 0, TonneauPositionStateInvalid = 1, TonneauPositionStateClosed = 2, TonneauPositionStatePartiallyOpen = 3, TonneauPositionStateFullyOpen = 4, UNRECOGNIZED = -1 } declare function tonneauPositionStateFromJSON(object: any): TonneauPositionState; declare function tonneauPositionStateToJSON(object: TonneauPositionState): string; declare enum PowershareState { PowershareStateUnknown = 0, PowershareStateInactive = 1, PowershareStateHandshaking = 2, PowershareStateInit = 3, PowershareStateEnabled = 4, PowershareStateEnabledReconnectingSoon = 5, PowershareStateStopped = 6, UNRECOGNIZED = -1 } declare function powershareStateFromJSON(object: any): PowershareState; declare function powershareStateToJSON(object: PowershareState): string; declare enum PowershareStopReasonStatus { PowershareStopReasonStatusUnknown = 0, PowershareStopReasonStatusNone = 1, PowershareStopReasonStatusSOCTooLow = 2, PowershareStopReasonStatusRetry = 3, PowershareStopReasonStatusFault = 4, PowershareStopReasonStatusUser = 5, PowershareStopReasonStatusReconnecting = 6, PowershareStopReasonStatusAuthentication = 7, UNRECOGNIZED = -1 } declare function powershareStopReasonStatusFromJSON(object: any): PowershareStopReasonStatus; declare function powershareStopReasonStatusToJSON(object: PowershareStopReasonStatus): string; declare enum PowershareTypeStatus { PowershareTypeStatusUnknown = 0, PowershareTypeStatusNone = 1, PowershareTypeStatusLoad = 2, PowershareTypeStatusHome = 3, UNRECOGNIZED = -1 } declare function powershareTypeStatusFromJSON(object: any): PowershareTypeStatus; declare function powershareTypeStatusToJSON(object: PowershareTypeStatus): string; declare enum DisplayState { DisplayStateUnknown = 0, DisplayStateOff = 1, DisplayStateDim = 2, DisplayStateAccessory = 3, DisplayStateOn = 4, DisplayStateDriving = 5, DisplayStateCharging = 6, DisplayStateLock = 7, DisplayStateSentry = 8, DisplayStateDog = 9, DisplayStateEntertainment = 10, UNRECOGNIZED = -1 } declare function displayStateFromJSON(object: any): DisplayState; declare function displayStateToJSON(object: DisplayState): string; declare enum DistanceUnit { DistanceUnitUnknown = 0, DistanceUnitMiles = 1, DistanceUnitKilometers = 2, UNRECOGNIZED = -1 } declare function distanceUnitFromJSON(object: any): DistanceUnit; declare function distanceUnitToJSON(object: DistanceUnit): string; declare enum TemperatureUnit { TemperatureUnitUnknown = 0, TemperatureUnitFahrenheit = 1, TemperatureUnitCelsius = 2, UNRECOGNIZED = -1 } declare function temperatureUnitFromJSON(object: any): TemperatureUnit; declare function temperatureUnitToJSON(object: TemperatureUnit): string; declare enum PressureUnit { PressureUnitUnknown = 0, PressureUnitPsi = 1, PressureUnitBar = 2, UNRECOGNIZED = -1 } declare function pressureUnitFromJSON(object: any): PressureUnit; declare function pressureUnitToJSON(object: PressureUnit): string; declare enum ChargeUnitPreference { ChargeUnitUnknown = 0, ChargeUnitDistance = 1, ChargeUnitPercent = 2, UNRECOGNIZED = -1 } declare function chargeUnitPreferenceFromJSON(object: any): ChargeUnitPreference; declare function chargeUnitPreferenceToJSON(object: ChargeUnitPreference): string; declare enum SunroofInstalledState { SunroofInstalledStateUnknown = 0, SunroofInstalledStateNotInstalled = 1, SunroofInstalledStateGen1Installed = 2, SunroofInstalledStateGen2Installed = 3, UNRECOGNIZED = -1 } declare function sunroofInstalledStateFromJSON(object: any): SunroofInstalledState; declare function sunroofInstalledStateToJSON(object: SunroofInstalledState): string; declare enum CabinPortKeepOnState { CabinPortKeepOnStateUnknown = 0, CabinPortKeepOnStateOff = 1, CabinPortKeepOnStateOn = 2, UNRECOGNIZED = -1 } declare function cabinPortKeepOnStateFromJSON(object: any): CabinPortKeepOnState; declare function cabinPortKeepOnStateToJSON(object: CabinPortKeepOnState): string; declare enum AutomaticEmergencyBrakingStateValue { AutomaticEmergencyBrakingStateUnknown = 0, AutomaticEmergencyBrakingStateUnavailable = 1, AutomaticEmergencyBrakingStateStandby = 2, AutomaticEmergencyBrakingStateEnabled = 3, AutomaticEmergencyBrakingStateStandstill = 4, UNRECOGNIZED = -1 } declare function automaticEmergencyBrakingStateValueFromJSON(object: any): AutomaticEmergencyBrakingStateValue; declare function automaticEmergencyBrakingStateValueToJSON(object: AutomaticEmergencyBrakingStateValue): string; declare enum PowerTransferStatusValue { PowerTransferStatusUnknown = 0, PowerTransferStatusStandby = 1, PowerTransferStatusFaulted = 2, PowerTransferStatusEmergencyShutdown = 3, PowerTransferStatusExtEvseTestAllowed = 4, PowerTransferStatusExtPrechargeAllowed = 5, PowerTransferStatusChargeEnabling = 6, PowerTransferStatusChargeEnabled = 7, PowerTransferStatusGracefulShutdown = 8, PowerTransferStatusBlocked = 9, UNRECOGNIZED = -1 } declare function powerTransferStatusValueFromJSON(object: any): PowerTransferStatusValue; declare function powerTransferStatusValueToJSON(object: PowerTransferStatusValue): string; declare enum TurnSignalState { TurnSignalStateUnknown = 0, TurnSignalStateOff = 1, TurnSignalStateLeft = 2, TurnSignalStateRight = 3, TurnSignalStateBoth = 4, UNRECOGNIZED = -1 } declare function turnSignalStateFromJSON(object: any): TurnSignalState; declare function turnSignalStateToJSON(object: TurnSignalState): string; declare enum MediaStatus { MediaStatusUnknown = 0, MediaStatusStopped = 1, MediaStatusPlaying = 2, MediaStatusPaused = 3, UNRECOGNIZED = -1 } declare function mediaStatusFromJSON(object: any): MediaStatus; declare function mediaStatusToJSON(object: MediaStatus): string; /** LocationValue is a Datum value type */ interface LocationValue { latitude: number; longitude: number; } interface Doors { DriverFront: boolean; DriverRear: boolean; PassengerFront: boolean; PassengerRear: boolean; TrunkFront: boolean; TrunkRear: boolean; } interface TireLocation { frontLeft: boolean; frontRight: boolean; rearLeft: boolean; rearRight: boolean; semiMiddleAxleLeft2: boolean; semiMiddleAxleRight2: boolean; semiRearAxleLeft: boolean; semiRearAxleRight: boolean; semiRearAxleLeft2: boolean; semiRearAxleRight2: boolean; } interface Time { hour: number; minute: number; second: number; } /** * Value is a dynamic Datum type. Most Datums are strings and is the default format * Note: Fields may have their types updated with different software and vehicle * versions to optimize for precision or space */ interface Value { stringValue?: string | undefined; intValue?: number | undefined; longValue?: number | undefined; floatValue?: number | undefined; doubleValue?: number | undefined; booleanValue?: boolean | undefined; locationValue?: LocationValue | undefined; chargingValue?: ChargingState | undefined; shiftStateValue?: ShiftState | undefined; invalid?: boolean | undefined; laneAssistLevelValue?: LaneAssistLevel | undefined; scheduledChargingModeValue?: ScheduledChargingModeValue | undefined; sentryModeStateValue?: SentryModeState | undefined; speedAssistLevelValue?: SpeedAssistLevel | undefined; bmsStateValue?: BMSStateValue | undefined; buckleStatusValue?: BuckleStatus | undefined; carTypeValue?: CarTypeValue | undefined; chargePortValue?: ChargePortValue | undefined; chargePortLatchValue?: ChargePortLatchValue | undefined; doorValue?: Doors | undefined; driveInverterStateValue?: DriveInverterState | undefined; hvilStatusValue?: HvilStatus | undefined; windowStateValue?: WindowState | undefined; seatFoldPositionValue?: SeatFoldPosition | undefined; tractorAirStatusValue?: TractorAirStatus | undefined; followDistanceValue?: FollowDistance | undefined; forwardCollisionSensitivityValue?: ForwardCollisionSensitivity | undefined; guestModeMobileAccessValue?: GuestModeMobileAccess | undefined; trailerAirStatusValue?: TrailerAirStatus | undefined; timeValue?: Time | undefined; detailedChargeStateValue?: DetailedChargeStateValue | undefined; hvacAutoModeValue?: HvacAutoModeState | undefined; cabinOverheatProtectionModeValue?: CabinOverheatProtectionModeState | undefined; cabinOverheatProtectionTemperatureLimitValue?: ClimateOverheatProtectionTempLimit | undefined; defrostModeValue?: DefrostModeState | undefined; climateKeeperModeValue?: ClimateKeeperModeState | undefined; hvacPowerValue?: HvacPowerState | undefined; tireLocationValue?: TireLocation | undefined; fastChargerValue?: FastCharger | undefined; cableTypeValue?: CableType | undefined; tonneauTentModeValue?: TonneauTentModeState | undefined; tonneauPositionValue?: TonneauPositionState | undefined; powershareTypeValue?: PowershareTypeStatus | undefined; powershareStateValue?: PowershareState | undefined; powershareStopReasonValue?: PowershareStopReasonStatus | undefined; displayStateValue?: DisplayState | undefined; distanceUnitValue?: DistanceUnit | undefined; temperatureUnitValue?: TemperatureUnit | undefined; pressureUnitValue?: PressureUnit | undefined; chargeUnitPreferenceValue?: ChargeUnitPreference | undefined; turnSignalStateValue?: TurnSignalState | undefined; mediaStatusValue?: MediaStatus | undefined; sunroofInstalledStateValue?: SunroofInstalledState | undefined; cabinPortKeepOnValue?: CabinPortKeepOnState | undefined; powerTransferStatusValue?: PowerTransferStatusValue | undefined; automaticEmergencyBrakingStateValue?: AutomaticEmergencyBrakingStateValue | undefined; } /** Datum represents a single field and its value */ interface Datum { key: Field; value: Value | undefined; } /** Payload holds a collection of values, and may not have a vin */ interface Payload { data: Datum[]; createdAt: Date | undefined; vin: string; isResend: boolean; } declare const LocationValue: MessageFns; declare const Doors: MessageFns; declare const TireLocation: MessageFns; declare const Time: MessageFns