@teslemetry/tesla-protocol 0.3.0 → 0.5.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.
@@ -1,6 +1,8 @@
1
1
  import { ChargeSchedule, LatLong, OffPeakChargingTimes, PreconditionSchedule, PreconditioningTimes, Void, stwHeatLevelFromJSON, stwHeatLevelToJSON } from "./common.mjs";
2
2
  import { Timestamp } from "./google/protobuf/timestamp.mjs";
3
+ import { roleFromJSON, roleToJSON } from "./keys.mjs";
3
4
  import { SessionInfo } from "./signatures.mjs";
5
+ import { keyFormFactorFromJSON, keyFormFactorToJSON } from "./vcsec.mjs";
4
6
  import { VehicleData, VehicleState_GuestMode, climateState_CopActivationTempFromJSON, climateState_CopActivationTempToJSON, vehicleImageStateTypeFromJSON, vehicleImageStateTypeToJSON } from "./vehicle.mjs";
5
7
  import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
6
8
  //#region src/command/car_server.ts
@@ -55,6 +57,40 @@ function vehicleImageRequest_TypeToJSON(object) {
55
57
  default: return "UNRECOGNIZED";
56
58
  }
57
59
  }
60
+ let NavigationRouteResponse_TrafficStatus = /* @__PURE__ */ function(NavigationRouteResponse_TrafficStatus) {
61
+ NavigationRouteResponse_TrafficStatus[NavigationRouteResponse_TrafficStatus["TS_NO_DATA"] = 0] = "TS_NO_DATA";
62
+ NavigationRouteResponse_TrafficStatus[NavigationRouteResponse_TrafficStatus["TS_LIGHT"] = 1] = "TS_LIGHT";
63
+ NavigationRouteResponse_TrafficStatus[NavigationRouteResponse_TrafficStatus["TS_MODERATE"] = 2] = "TS_MODERATE";
64
+ NavigationRouteResponse_TrafficStatus[NavigationRouteResponse_TrafficStatus["TS_CONGESTION"] = 3] = "TS_CONGESTION";
65
+ NavigationRouteResponse_TrafficStatus[NavigationRouteResponse_TrafficStatus["TS_SEVERE_CONGESTION"] = 4] = "TS_SEVERE_CONGESTION";
66
+ NavigationRouteResponse_TrafficStatus[NavigationRouteResponse_TrafficStatus["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
67
+ return NavigationRouteResponse_TrafficStatus;
68
+ }({});
69
+ function navigationRouteResponse_TrafficStatusFromJSON(object) {
70
+ switch (object) {
71
+ case 0:
72
+ case "TS_NO_DATA": return 0;
73
+ case 1:
74
+ case "TS_LIGHT": return 1;
75
+ case 2:
76
+ case "TS_MODERATE": return 2;
77
+ case 3:
78
+ case "TS_CONGESTION": return 3;
79
+ case 4:
80
+ case "TS_SEVERE_CONGESTION": return 4;
81
+ default: return -1;
82
+ }
83
+ }
84
+ function navigationRouteResponse_TrafficStatusToJSON(object) {
85
+ switch (object) {
86
+ case 0: return "TS_NO_DATA";
87
+ case 1: return "TS_LIGHT";
88
+ case 2: return "TS_MODERATE";
89
+ case 3: return "TS_CONGESTION";
90
+ case 4: return "TS_SEVERE_CONGESTION";
91
+ default: return "UNRECOGNIZED";
92
+ }
93
+ }
58
94
  let HvacSeatCoolerActions_HvacSeatCoolerLevelE = /* @__PURE__ */ function(HvacSeatCoolerActions_HvacSeatCoolerLevelE) {
59
95
  HvacSeatCoolerActions_HvacSeatCoolerLevelE[HvacSeatCoolerActions_HvacSeatCoolerLevelE["HvacSeatCoolerLevel_Unknown"] = 0] = "HvacSeatCoolerLevel_Unknown";
60
96
  HvacSeatCoolerActions_HvacSeatCoolerLevelE[HvacSeatCoolerActions_HvacSeatCoolerLevelE["HvacSeatCoolerLevel_Off"] = 1] = "HvacSeatCoolerLevel_Off";
@@ -2938,9 +2974,22 @@ function createBaseResponse() {
2938
2974
  actionStatus: void 0,
2939
2975
  vehicleData: void 0,
2940
2976
  getSessionInfoResponse: void 0,
2977
+ streamMessage: void 0,
2941
2978
  getNearbyChargingSites: void 0,
2979
+ vehicleDataSubscriptionResponse: void 0,
2980
+ vitalsSubscriptionResponse: void 0,
2942
2981
  ping: void 0,
2943
- getChargeOnSolarFeatureResponse: void 0
2982
+ piiKeyResponse: void 0,
2983
+ pseudonymSyncResponse: void 0,
2984
+ getRateTariffResponse: void 0,
2985
+ navigationRouteResponse: void 0,
2986
+ getManagedChargingSitesResponse: void 0,
2987
+ getChargeOnSolarFeatureResponse: void 0,
2988
+ addManagedChargingSiteResponse: void 0,
2989
+ getMessagesResponse: void 0,
2990
+ getLocalProfilesResponse: void 0,
2991
+ keysInfoResponse: void 0,
2992
+ bandwidthTestResponse: void 0
2944
2993
  };
2945
2994
  }
2946
2995
  const Response = {
@@ -2948,9 +2997,22 @@ const Response = {
2948
2997
  if (message.actionStatus !== void 0) ActionStatus.encode(message.actionStatus, writer.uint32(10).fork()).join();
2949
2998
  if (message.vehicleData !== void 0) VehicleData.encode(message.vehicleData, writer.uint32(18).fork()).join();
2950
2999
  if (message.getSessionInfoResponse !== void 0) SessionInfo.encode(message.getSessionInfoResponse, writer.uint32(26).fork()).join();
3000
+ if (message.streamMessage !== void 0) StreamMessage.encode(message.streamMessage, writer.uint32(34).fork()).join();
2951
3001
  if (message.getNearbyChargingSites !== void 0) NearbyChargingSites.encode(message.getNearbyChargingSites, writer.uint32(42).fork()).join();
3002
+ if (message.vehicleDataSubscriptionResponse !== void 0) VehicleDataSubscriptionResponse.encode(message.vehicleDataSubscriptionResponse, writer.uint32(50).fork()).join();
3003
+ if (message.vitalsSubscriptionResponse !== void 0) VitalsSubscriptionResponse.encode(message.vitalsSubscriptionResponse, writer.uint32(66).fork()).join();
2952
3004
  if (message.ping !== void 0) Ping.encode(message.ping, writer.uint32(74).fork()).join();
3005
+ if (message.piiKeyResponse !== void 0) PiiKeyResponse.encode(message.piiKeyResponse, writer.uint32(82).fork()).join();
3006
+ if (message.pseudonymSyncResponse !== void 0) PseudonymSyncResponse.encode(message.pseudonymSyncResponse, writer.uint32(90).fork()).join();
3007
+ if (message.getRateTariffResponse !== void 0) GetRateTariffResponse.encode(message.getRateTariffResponse, writer.uint32(98).fork()).join();
3008
+ if (message.navigationRouteResponse !== void 0) NavigationRouteResponse.encode(message.navigationRouteResponse, writer.uint32(106).fork()).join();
3009
+ if (message.getManagedChargingSitesResponse !== void 0) GetManagedChargingSitesResponse.encode(message.getManagedChargingSitesResponse, writer.uint32(114).fork()).join();
2953
3010
  if (message.getChargeOnSolarFeatureResponse !== void 0) GetChargeOnSolarFeatureResponse.encode(message.getChargeOnSolarFeatureResponse, writer.uint32(122).fork()).join();
3011
+ if (message.addManagedChargingSiteResponse !== void 0) AddManagedChargingSiteResponse.encode(message.addManagedChargingSiteResponse, writer.uint32(130).fork()).join();
3012
+ if (message.getMessagesResponse !== void 0) GetMessagesResponse.encode(message.getMessagesResponse, writer.uint32(146).fork()).join();
3013
+ if (message.getLocalProfilesResponse !== void 0) GetLocalProfilesResponse.encode(message.getLocalProfilesResponse, writer.uint32(162).fork()).join();
3014
+ if (message.keysInfoResponse !== void 0) KeysInfoResponse.encode(message.keysInfoResponse, writer.uint32(194).fork()).join();
3015
+ if (message.bandwidthTestResponse !== void 0) BandwidthTestResponse.encode(message.bandwidthTestResponse, writer.uint32(202).fork()).join();
2954
3016
  return writer;
2955
3017
  },
2956
3018
  decode(input, length) {
@@ -2972,18 +3034,70 @@ const Response = {
2972
3034
  if (tag !== 26) break;
2973
3035
  message.getSessionInfoResponse = SessionInfo.decode(reader, reader.uint32());
2974
3036
  continue;
3037
+ case 4:
3038
+ if (tag !== 34) break;
3039
+ message.streamMessage = StreamMessage.decode(reader, reader.uint32());
3040
+ continue;
2975
3041
  case 5:
2976
3042
  if (tag !== 42) break;
2977
3043
  message.getNearbyChargingSites = NearbyChargingSites.decode(reader, reader.uint32());
2978
3044
  continue;
3045
+ case 6:
3046
+ if (tag !== 50) break;
3047
+ message.vehicleDataSubscriptionResponse = VehicleDataSubscriptionResponse.decode(reader, reader.uint32());
3048
+ continue;
3049
+ case 8:
3050
+ if (tag !== 66) break;
3051
+ message.vitalsSubscriptionResponse = VitalsSubscriptionResponse.decode(reader, reader.uint32());
3052
+ continue;
2979
3053
  case 9:
2980
3054
  if (tag !== 74) break;
2981
3055
  message.ping = Ping.decode(reader, reader.uint32());
2982
3056
  continue;
3057
+ case 10:
3058
+ if (tag !== 82) break;
3059
+ message.piiKeyResponse = PiiKeyResponse.decode(reader, reader.uint32());
3060
+ continue;
3061
+ case 11:
3062
+ if (tag !== 90) break;
3063
+ message.pseudonymSyncResponse = PseudonymSyncResponse.decode(reader, reader.uint32());
3064
+ continue;
3065
+ case 12:
3066
+ if (tag !== 98) break;
3067
+ message.getRateTariffResponse = GetRateTariffResponse.decode(reader, reader.uint32());
3068
+ continue;
3069
+ case 13:
3070
+ if (tag !== 106) break;
3071
+ message.navigationRouteResponse = NavigationRouteResponse.decode(reader, reader.uint32());
3072
+ continue;
3073
+ case 14:
3074
+ if (tag !== 114) break;
3075
+ message.getManagedChargingSitesResponse = GetManagedChargingSitesResponse.decode(reader, reader.uint32());
3076
+ continue;
2983
3077
  case 15:
2984
3078
  if (tag !== 122) break;
2985
3079
  message.getChargeOnSolarFeatureResponse = GetChargeOnSolarFeatureResponse.decode(reader, reader.uint32());
2986
3080
  continue;
3081
+ case 16:
3082
+ if (tag !== 130) break;
3083
+ message.addManagedChargingSiteResponse = AddManagedChargingSiteResponse.decode(reader, reader.uint32());
3084
+ continue;
3085
+ case 18:
3086
+ if (tag !== 146) break;
3087
+ message.getMessagesResponse = GetMessagesResponse.decode(reader, reader.uint32());
3088
+ continue;
3089
+ case 20:
3090
+ if (tag !== 162) break;
3091
+ message.getLocalProfilesResponse = GetLocalProfilesResponse.decode(reader, reader.uint32());
3092
+ continue;
3093
+ case 24:
3094
+ if (tag !== 194) break;
3095
+ message.keysInfoResponse = KeysInfoResponse.decode(reader, reader.uint32());
3096
+ continue;
3097
+ case 25:
3098
+ if (tag !== 202) break;
3099
+ message.bandwidthTestResponse = BandwidthTestResponse.decode(reader, reader.uint32());
3100
+ continue;
2987
3101
  }
2988
3102
  if ((tag & 7) === 4 || tag === 0) break;
2989
3103
  reader.skip(tag & 7);
@@ -2995,9 +3109,22 @@ const Response = {
2995
3109
  actionStatus: isSet(object.actionStatus) ? ActionStatus.fromJSON(object.actionStatus) : void 0,
2996
3110
  vehicleData: isSet(object.vehicleData) ? VehicleData.fromJSON(object.vehicleData) : void 0,
2997
3111
  getSessionInfoResponse: isSet(object.getSessionInfoResponse) ? SessionInfo.fromJSON(object.getSessionInfoResponse) : void 0,
3112
+ streamMessage: isSet(object.streamMessage) ? StreamMessage.fromJSON(object.streamMessage) : void 0,
2998
3113
  getNearbyChargingSites: isSet(object.getNearbyChargingSites) ? NearbyChargingSites.fromJSON(object.getNearbyChargingSites) : void 0,
3114
+ vehicleDataSubscriptionResponse: isSet(object.vehicleDataSubscriptionResponse) ? VehicleDataSubscriptionResponse.fromJSON(object.vehicleDataSubscriptionResponse) : void 0,
3115
+ vitalsSubscriptionResponse: isSet(object.vitalsSubscriptionResponse) ? VitalsSubscriptionResponse.fromJSON(object.vitalsSubscriptionResponse) : void 0,
2999
3116
  ping: isSet(object.ping) ? Ping.fromJSON(object.ping) : void 0,
3000
- getChargeOnSolarFeatureResponse: isSet(object.getChargeOnSolarFeatureResponse) ? GetChargeOnSolarFeatureResponse.fromJSON(object.getChargeOnSolarFeatureResponse) : void 0
3117
+ piiKeyResponse: isSet(object.piiKeyResponse) ? PiiKeyResponse.fromJSON(object.piiKeyResponse) : void 0,
3118
+ pseudonymSyncResponse: isSet(object.pseudonymSyncResponse) ? PseudonymSyncResponse.fromJSON(object.pseudonymSyncResponse) : void 0,
3119
+ getRateTariffResponse: isSet(object.getRateTariffResponse) ? GetRateTariffResponse.fromJSON(object.getRateTariffResponse) : void 0,
3120
+ navigationRouteResponse: isSet(object.navigationRouteResponse) ? NavigationRouteResponse.fromJSON(object.navigationRouteResponse) : void 0,
3121
+ getManagedChargingSitesResponse: isSet(object.getManagedChargingSitesResponse) ? GetManagedChargingSitesResponse.fromJSON(object.getManagedChargingSitesResponse) : void 0,
3122
+ getChargeOnSolarFeatureResponse: isSet(object.getChargeOnSolarFeatureResponse) ? GetChargeOnSolarFeatureResponse.fromJSON(object.getChargeOnSolarFeatureResponse) : void 0,
3123
+ addManagedChargingSiteResponse: isSet(object.addManagedChargingSiteResponse) ? AddManagedChargingSiteResponse.fromJSON(object.addManagedChargingSiteResponse) : void 0,
3124
+ getMessagesResponse: isSet(object.getMessagesResponse) ? GetMessagesResponse.fromJSON(object.getMessagesResponse) : void 0,
3125
+ getLocalProfilesResponse: isSet(object.getLocalProfilesResponse) ? GetLocalProfilesResponse.fromJSON(object.getLocalProfilesResponse) : void 0,
3126
+ keysInfoResponse: isSet(object.keysInfoResponse) ? KeysInfoResponse.fromJSON(object.keysInfoResponse) : void 0,
3127
+ bandwidthTestResponse: isSet(object.bandwidthTestResponse) ? BandwidthTestResponse.fromJSON(object.bandwidthTestResponse) : void 0
3001
3128
  };
3002
3129
  },
3003
3130
  toJSON(message) {
@@ -3005,9 +3132,22 @@ const Response = {
3005
3132
  if (message.actionStatus !== void 0) obj.actionStatus = ActionStatus.toJSON(message.actionStatus);
3006
3133
  if (message.vehicleData !== void 0) obj.vehicleData = VehicleData.toJSON(message.vehicleData);
3007
3134
  if (message.getSessionInfoResponse !== void 0) obj.getSessionInfoResponse = SessionInfo.toJSON(message.getSessionInfoResponse);
3135
+ if (message.streamMessage !== void 0) obj.streamMessage = StreamMessage.toJSON(message.streamMessage);
3008
3136
  if (message.getNearbyChargingSites !== void 0) obj.getNearbyChargingSites = NearbyChargingSites.toJSON(message.getNearbyChargingSites);
3137
+ if (message.vehicleDataSubscriptionResponse !== void 0) obj.vehicleDataSubscriptionResponse = VehicleDataSubscriptionResponse.toJSON(message.vehicleDataSubscriptionResponse);
3138
+ if (message.vitalsSubscriptionResponse !== void 0) obj.vitalsSubscriptionResponse = VitalsSubscriptionResponse.toJSON(message.vitalsSubscriptionResponse);
3009
3139
  if (message.ping !== void 0) obj.ping = Ping.toJSON(message.ping);
3140
+ if (message.piiKeyResponse !== void 0) obj.piiKeyResponse = PiiKeyResponse.toJSON(message.piiKeyResponse);
3141
+ if (message.pseudonymSyncResponse !== void 0) obj.pseudonymSyncResponse = PseudonymSyncResponse.toJSON(message.pseudonymSyncResponse);
3142
+ if (message.getRateTariffResponse !== void 0) obj.getRateTariffResponse = GetRateTariffResponse.toJSON(message.getRateTariffResponse);
3143
+ if (message.navigationRouteResponse !== void 0) obj.navigationRouteResponse = NavigationRouteResponse.toJSON(message.navigationRouteResponse);
3144
+ if (message.getManagedChargingSitesResponse !== void 0) obj.getManagedChargingSitesResponse = GetManagedChargingSitesResponse.toJSON(message.getManagedChargingSitesResponse);
3010
3145
  if (message.getChargeOnSolarFeatureResponse !== void 0) obj.getChargeOnSolarFeatureResponse = GetChargeOnSolarFeatureResponse.toJSON(message.getChargeOnSolarFeatureResponse);
3146
+ if (message.addManagedChargingSiteResponse !== void 0) obj.addManagedChargingSiteResponse = AddManagedChargingSiteResponse.toJSON(message.addManagedChargingSiteResponse);
3147
+ if (message.getMessagesResponse !== void 0) obj.getMessagesResponse = GetMessagesResponse.toJSON(message.getMessagesResponse);
3148
+ if (message.getLocalProfilesResponse !== void 0) obj.getLocalProfilesResponse = GetLocalProfilesResponse.toJSON(message.getLocalProfilesResponse);
3149
+ if (message.keysInfoResponse !== void 0) obj.keysInfoResponse = KeysInfoResponse.toJSON(message.keysInfoResponse);
3150
+ if (message.bandwidthTestResponse !== void 0) obj.bandwidthTestResponse = BandwidthTestResponse.toJSON(message.bandwidthTestResponse);
3011
3151
  return obj;
3012
3152
  },
3013
3153
  create(base) {
@@ -3018,9 +3158,997 @@ const Response = {
3018
3158
  message.actionStatus = object.actionStatus !== void 0 && object.actionStatus !== null ? ActionStatus.fromPartial(object.actionStatus) : void 0;
3019
3159
  message.vehicleData = object.vehicleData !== void 0 && object.vehicleData !== null ? VehicleData.fromPartial(object.vehicleData) : void 0;
3020
3160
  message.getSessionInfoResponse = object.getSessionInfoResponse !== void 0 && object.getSessionInfoResponse !== null ? SessionInfo.fromPartial(object.getSessionInfoResponse) : void 0;
3161
+ message.streamMessage = object.streamMessage !== void 0 && object.streamMessage !== null ? StreamMessage.fromPartial(object.streamMessage) : void 0;
3021
3162
  message.getNearbyChargingSites = object.getNearbyChargingSites !== void 0 && object.getNearbyChargingSites !== null ? NearbyChargingSites.fromPartial(object.getNearbyChargingSites) : void 0;
3163
+ message.vehicleDataSubscriptionResponse = object.vehicleDataSubscriptionResponse !== void 0 && object.vehicleDataSubscriptionResponse !== null ? VehicleDataSubscriptionResponse.fromPartial(object.vehicleDataSubscriptionResponse) : void 0;
3164
+ message.vitalsSubscriptionResponse = object.vitalsSubscriptionResponse !== void 0 && object.vitalsSubscriptionResponse !== null ? VitalsSubscriptionResponse.fromPartial(object.vitalsSubscriptionResponse) : void 0;
3022
3165
  message.ping = object.ping !== void 0 && object.ping !== null ? Ping.fromPartial(object.ping) : void 0;
3166
+ message.piiKeyResponse = object.piiKeyResponse !== void 0 && object.piiKeyResponse !== null ? PiiKeyResponse.fromPartial(object.piiKeyResponse) : void 0;
3167
+ message.pseudonymSyncResponse = object.pseudonymSyncResponse !== void 0 && object.pseudonymSyncResponse !== null ? PseudonymSyncResponse.fromPartial(object.pseudonymSyncResponse) : void 0;
3168
+ message.getRateTariffResponse = object.getRateTariffResponse !== void 0 && object.getRateTariffResponse !== null ? GetRateTariffResponse.fromPartial(object.getRateTariffResponse) : void 0;
3169
+ message.navigationRouteResponse = object.navigationRouteResponse !== void 0 && object.navigationRouteResponse !== null ? NavigationRouteResponse.fromPartial(object.navigationRouteResponse) : void 0;
3170
+ message.getManagedChargingSitesResponse = object.getManagedChargingSitesResponse !== void 0 && object.getManagedChargingSitesResponse !== null ? GetManagedChargingSitesResponse.fromPartial(object.getManagedChargingSitesResponse) : void 0;
3023
3171
  message.getChargeOnSolarFeatureResponse = object.getChargeOnSolarFeatureResponse !== void 0 && object.getChargeOnSolarFeatureResponse !== null ? GetChargeOnSolarFeatureResponse.fromPartial(object.getChargeOnSolarFeatureResponse) : void 0;
3172
+ message.addManagedChargingSiteResponse = object.addManagedChargingSiteResponse !== void 0 && object.addManagedChargingSiteResponse !== null ? AddManagedChargingSiteResponse.fromPartial(object.addManagedChargingSiteResponse) : void 0;
3173
+ message.getMessagesResponse = object.getMessagesResponse !== void 0 && object.getMessagesResponse !== null ? GetMessagesResponse.fromPartial(object.getMessagesResponse) : void 0;
3174
+ message.getLocalProfilesResponse = object.getLocalProfilesResponse !== void 0 && object.getLocalProfilesResponse !== null ? GetLocalProfilesResponse.fromPartial(object.getLocalProfilesResponse) : void 0;
3175
+ message.keysInfoResponse = object.keysInfoResponse !== void 0 && object.keysInfoResponse !== null ? KeysInfoResponse.fromPartial(object.keysInfoResponse) : void 0;
3176
+ message.bandwidthTestResponse = object.bandwidthTestResponse !== void 0 && object.bandwidthTestResponse !== null ? BandwidthTestResponse.fromPartial(object.bandwidthTestResponse) : void 0;
3177
+ return message;
3178
+ }
3179
+ };
3180
+ function createBaseVehicleDataSubscriptionResponse() {
3181
+ return {
3182
+ unknown: "",
3183
+ piiKeyResponse: void 0
3184
+ };
3185
+ }
3186
+ const VehicleDataSubscriptionResponse = {
3187
+ encode(message, writer = new BinaryWriter()) {
3188
+ if (message.unknown !== "") writer.uint32(26).string(message.unknown);
3189
+ if (message.piiKeyResponse !== void 0) PiiKeyResponse.encode(message.piiKeyResponse, writer.uint32(34).fork()).join();
3190
+ return writer;
3191
+ },
3192
+ decode(input, length) {
3193
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3194
+ const end = length === void 0 ? reader.len : reader.pos + length;
3195
+ const message = createBaseVehicleDataSubscriptionResponse();
3196
+ while (reader.pos < end) {
3197
+ const tag = reader.uint32();
3198
+ switch (tag >>> 3) {
3199
+ case 3:
3200
+ if (tag !== 26) break;
3201
+ message.unknown = reader.string();
3202
+ continue;
3203
+ case 4:
3204
+ if (tag !== 34) break;
3205
+ message.piiKeyResponse = PiiKeyResponse.decode(reader, reader.uint32());
3206
+ continue;
3207
+ }
3208
+ if ((tag & 7) === 4 || tag === 0) break;
3209
+ reader.skip(tag & 7);
3210
+ }
3211
+ return message;
3212
+ },
3213
+ fromJSON(object) {
3214
+ return {
3215
+ unknown: isSet(object.unknown) ? globalThis.String(object.unknown) : "",
3216
+ piiKeyResponse: isSet(object.piiKeyResponse) ? PiiKeyResponse.fromJSON(object.piiKeyResponse) : void 0
3217
+ };
3218
+ },
3219
+ toJSON(message) {
3220
+ const obj = {};
3221
+ if (message.unknown !== void 0) obj.unknown = message.unknown;
3222
+ if (message.piiKeyResponse !== void 0) obj.piiKeyResponse = PiiKeyResponse.toJSON(message.piiKeyResponse);
3223
+ return obj;
3224
+ },
3225
+ create(base) {
3226
+ return VehicleDataSubscriptionResponse.fromPartial(base ?? {});
3227
+ },
3228
+ fromPartial(object) {
3229
+ const message = createBaseVehicleDataSubscriptionResponse();
3230
+ message.unknown = object.unknown ?? "";
3231
+ message.piiKeyResponse = object.piiKeyResponse !== void 0 && object.piiKeyResponse !== null ? PiiKeyResponse.fromPartial(object.piiKeyResponse) : void 0;
3232
+ return message;
3233
+ }
3234
+ };
3235
+ function createBaseVitalsSubscriptionResponse() {
3236
+ return {
3237
+ sessionId: 0,
3238
+ unknown: ""
3239
+ };
3240
+ }
3241
+ const VitalsSubscriptionResponse = {
3242
+ encode(message, writer = new BinaryWriter()) {
3243
+ if (message.sessionId !== 0) writer.uint32(8).int32(message.sessionId);
3244
+ if (message.unknown !== "") writer.uint32(18).string(message.unknown);
3245
+ return writer;
3246
+ },
3247
+ decode(input, length) {
3248
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3249
+ const end = length === void 0 ? reader.len : reader.pos + length;
3250
+ const message = createBaseVitalsSubscriptionResponse();
3251
+ while (reader.pos < end) {
3252
+ const tag = reader.uint32();
3253
+ switch (tag >>> 3) {
3254
+ case 1:
3255
+ if (tag !== 8) break;
3256
+ message.sessionId = reader.int32();
3257
+ continue;
3258
+ case 2:
3259
+ if (tag !== 18) break;
3260
+ message.unknown = reader.string();
3261
+ continue;
3262
+ }
3263
+ if ((tag & 7) === 4 || tag === 0) break;
3264
+ reader.skip(tag & 7);
3265
+ }
3266
+ return message;
3267
+ },
3268
+ fromJSON(object) {
3269
+ return {
3270
+ sessionId: isSet(object.sessionId) ? globalThis.Number(object.sessionId) : 0,
3271
+ unknown: isSet(object.unknown) ? globalThis.String(object.unknown) : ""
3272
+ };
3273
+ },
3274
+ toJSON(message) {
3275
+ const obj = {};
3276
+ if (message.sessionId !== void 0) obj.sessionId = Math.round(message.sessionId);
3277
+ if (message.unknown !== void 0) obj.unknown = message.unknown;
3278
+ return obj;
3279
+ },
3280
+ create(base) {
3281
+ return VitalsSubscriptionResponse.fromPartial(base ?? {});
3282
+ },
3283
+ fromPartial(object) {
3284
+ const message = createBaseVitalsSubscriptionResponse();
3285
+ message.sessionId = object.sessionId ?? 0;
3286
+ message.unknown = object.unknown ?? "";
3287
+ return message;
3288
+ }
3289
+ };
3290
+ function createBasePiiKeyResponse() {
3291
+ return {
3292
+ encryptedPiiKey: /* @__PURE__ */ new Uint8Array(0),
3293
+ piiKeyExpiration: void 0,
3294
+ subscriberPublicKeyExpiration: void 0
3295
+ };
3296
+ }
3297
+ const PiiKeyResponse = {
3298
+ encode(message, writer = new BinaryWriter()) {
3299
+ if (message.encryptedPiiKey.length !== 0) writer.uint32(18).bytes(message.encryptedPiiKey);
3300
+ if (message.piiKeyExpiration !== void 0) Timestamp.encode(toTimestamp(message.piiKeyExpiration), writer.uint32(26).fork()).join();
3301
+ if (message.subscriberPublicKeyExpiration !== void 0) Timestamp.encode(toTimestamp(message.subscriberPublicKeyExpiration), writer.uint32(34).fork()).join();
3302
+ return writer;
3303
+ },
3304
+ decode(input, length) {
3305
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3306
+ const end = length === void 0 ? reader.len : reader.pos + length;
3307
+ const message = createBasePiiKeyResponse();
3308
+ while (reader.pos < end) {
3309
+ const tag = reader.uint32();
3310
+ switch (tag >>> 3) {
3311
+ case 2:
3312
+ if (tag !== 18) break;
3313
+ message.encryptedPiiKey = reader.bytes();
3314
+ continue;
3315
+ case 3:
3316
+ if (tag !== 26) break;
3317
+ message.piiKeyExpiration = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
3318
+ continue;
3319
+ case 4:
3320
+ if (tag !== 34) break;
3321
+ message.subscriberPublicKeyExpiration = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
3322
+ continue;
3323
+ }
3324
+ if ((tag & 7) === 4 || tag === 0) break;
3325
+ reader.skip(tag & 7);
3326
+ }
3327
+ return message;
3328
+ },
3329
+ fromJSON(object) {
3330
+ return {
3331
+ encryptedPiiKey: isSet(object.encryptedPiiKey) ? bytesFromBase64(object.encryptedPiiKey) : /* @__PURE__ */ new Uint8Array(0),
3332
+ piiKeyExpiration: isSet(object.piiKeyExpiration) ? fromJsonTimestamp(object.piiKeyExpiration) : void 0,
3333
+ subscriberPublicKeyExpiration: isSet(object.subscriberPublicKeyExpiration) ? fromJsonTimestamp(object.subscriberPublicKeyExpiration) : void 0
3334
+ };
3335
+ },
3336
+ toJSON(message) {
3337
+ const obj = {};
3338
+ if (message.encryptedPiiKey !== void 0) obj.encryptedPiiKey = base64FromBytes(message.encryptedPiiKey);
3339
+ if (message.piiKeyExpiration !== void 0) obj.piiKeyExpiration = message.piiKeyExpiration.toISOString();
3340
+ if (message.subscriberPublicKeyExpiration !== void 0) obj.subscriberPublicKeyExpiration = message.subscriberPublicKeyExpiration.toISOString();
3341
+ return obj;
3342
+ },
3343
+ create(base) {
3344
+ return PiiKeyResponse.fromPartial(base ?? {});
3345
+ },
3346
+ fromPartial(object) {
3347
+ const message = createBasePiiKeyResponse();
3348
+ message.encryptedPiiKey = object.encryptedPiiKey ?? /* @__PURE__ */ new Uint8Array(0);
3349
+ message.piiKeyExpiration = object.piiKeyExpiration ?? void 0;
3350
+ message.subscriberPublicKeyExpiration = object.subscriberPublicKeyExpiration ?? void 0;
3351
+ return message;
3352
+ }
3353
+ };
3354
+ function createBasePseudonymSyncResponse() {
3355
+ return { unknown: "" };
3356
+ }
3357
+ const PseudonymSyncResponse = {
3358
+ encode(message, writer = new BinaryWriter()) {
3359
+ if (message.unknown !== "") writer.uint32(10).string(message.unknown);
3360
+ return writer;
3361
+ },
3362
+ decode(input, length) {
3363
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3364
+ const end = length === void 0 ? reader.len : reader.pos + length;
3365
+ const message = createBasePseudonymSyncResponse();
3366
+ while (reader.pos < end) {
3367
+ const tag = reader.uint32();
3368
+ switch (tag >>> 3) {
3369
+ case 1:
3370
+ if (tag !== 10) break;
3371
+ message.unknown = reader.string();
3372
+ continue;
3373
+ }
3374
+ if ((tag & 7) === 4 || tag === 0) break;
3375
+ reader.skip(tag & 7);
3376
+ }
3377
+ return message;
3378
+ },
3379
+ fromJSON(object) {
3380
+ return { unknown: isSet(object.unknown) ? globalThis.String(object.unknown) : "" };
3381
+ },
3382
+ toJSON(message) {
3383
+ const obj = {};
3384
+ if (message.unknown !== void 0) obj.unknown = message.unknown;
3385
+ return obj;
3386
+ },
3387
+ create(base) {
3388
+ return PseudonymSyncResponse.fromPartial(base ?? {});
3389
+ },
3390
+ fromPartial(object) {
3391
+ const message = createBasePseudonymSyncResponse();
3392
+ message.unknown = object.unknown ?? "";
3393
+ return message;
3394
+ }
3395
+ };
3396
+ function createBaseNavigationRouteResponse() {
3397
+ return {
3398
+ unknown: "",
3399
+ trafficDetail: []
3400
+ };
3401
+ }
3402
+ const NavigationRouteResponse = {
3403
+ encode(message, writer = new BinaryWriter()) {
3404
+ if (message.unknown !== "") writer.uint32(10).string(message.unknown);
3405
+ for (const v of message.trafficDetail) NavigationRouteResponse_TrafficDetail.encode(v, writer.uint32(18).fork()).join();
3406
+ return writer;
3407
+ },
3408
+ decode(input, length) {
3409
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3410
+ const end = length === void 0 ? reader.len : reader.pos + length;
3411
+ const message = createBaseNavigationRouteResponse();
3412
+ while (reader.pos < end) {
3413
+ const tag = reader.uint32();
3414
+ switch (tag >>> 3) {
3415
+ case 1:
3416
+ if (tag !== 10) break;
3417
+ message.unknown = reader.string();
3418
+ continue;
3419
+ case 2:
3420
+ if (tag !== 18) break;
3421
+ message.trafficDetail.push(NavigationRouteResponse_TrafficDetail.decode(reader, reader.uint32()));
3422
+ continue;
3423
+ }
3424
+ if ((tag & 7) === 4 || tag === 0) break;
3425
+ reader.skip(tag & 7);
3426
+ }
3427
+ return message;
3428
+ },
3429
+ fromJSON(object) {
3430
+ return {
3431
+ unknown: isSet(object.unknown) ? globalThis.String(object.unknown) : "",
3432
+ trafficDetail: globalThis.Array.isArray(object?.trafficDetail) ? object.trafficDetail.map((e) => NavigationRouteResponse_TrafficDetail.fromJSON(e)) : []
3433
+ };
3434
+ },
3435
+ toJSON(message) {
3436
+ const obj = {};
3437
+ if (message.unknown !== void 0) obj.unknown = message.unknown;
3438
+ if (message.trafficDetail?.length) obj.trafficDetail = message.trafficDetail.map((e) => NavigationRouteResponse_TrafficDetail.toJSON(e));
3439
+ return obj;
3440
+ },
3441
+ create(base) {
3442
+ return NavigationRouteResponse.fromPartial(base ?? {});
3443
+ },
3444
+ fromPartial(object) {
3445
+ const message = createBaseNavigationRouteResponse();
3446
+ message.unknown = object.unknown ?? "";
3447
+ message.trafficDetail = object.trafficDetail?.map((e) => NavigationRouteResponse_TrafficDetail.fromPartial(e)) || [];
3448
+ return message;
3449
+ }
3450
+ };
3451
+ function createBaseNavigationRouteResponse_TrafficDetail() {
3452
+ return {
3453
+ offsetToDest: 0,
3454
+ trafficStatus: 0
3455
+ };
3456
+ }
3457
+ const NavigationRouteResponse_TrafficDetail = {
3458
+ encode(message, writer = new BinaryWriter()) {
3459
+ if (message.offsetToDest !== 0) writer.uint32(13).float(message.offsetToDest);
3460
+ if (message.trafficStatus !== 0) writer.uint32(16).int32(message.trafficStatus);
3461
+ return writer;
3462
+ },
3463
+ decode(input, length) {
3464
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3465
+ const end = length === void 0 ? reader.len : reader.pos + length;
3466
+ const message = createBaseNavigationRouteResponse_TrafficDetail();
3467
+ while (reader.pos < end) {
3468
+ const tag = reader.uint32();
3469
+ switch (tag >>> 3) {
3470
+ case 1:
3471
+ if (tag !== 13) break;
3472
+ message.offsetToDest = reader.float();
3473
+ continue;
3474
+ case 2:
3475
+ if (tag !== 16) break;
3476
+ message.trafficStatus = reader.int32();
3477
+ continue;
3478
+ }
3479
+ if ((tag & 7) === 4 || tag === 0) break;
3480
+ reader.skip(tag & 7);
3481
+ }
3482
+ return message;
3483
+ },
3484
+ fromJSON(object) {
3485
+ return {
3486
+ offsetToDest: isSet(object.offsetToDest) ? globalThis.Number(object.offsetToDest) : 0,
3487
+ trafficStatus: isSet(object.trafficStatus) ? navigationRouteResponse_TrafficStatusFromJSON(object.trafficStatus) : 0
3488
+ };
3489
+ },
3490
+ toJSON(message) {
3491
+ const obj = {};
3492
+ if (message.offsetToDest !== void 0) obj.offsetToDest = message.offsetToDest;
3493
+ if (message.trafficStatus !== void 0) obj.trafficStatus = navigationRouteResponse_TrafficStatusToJSON(message.trafficStatus);
3494
+ return obj;
3495
+ },
3496
+ create(base) {
3497
+ return NavigationRouteResponse_TrafficDetail.fromPartial(base ?? {});
3498
+ },
3499
+ fromPartial(object) {
3500
+ const message = createBaseNavigationRouteResponse_TrafficDetail();
3501
+ message.offsetToDest = object.offsetToDest ?? 0;
3502
+ message.trafficStatus = object.trafficStatus ?? 0;
3503
+ return message;
3504
+ }
3505
+ };
3506
+ function createBaseGetManagedChargingSitesResponse() {
3507
+ return { sites: [] };
3508
+ }
3509
+ const GetManagedChargingSitesResponse = {
3510
+ encode(message, writer = new BinaryWriter()) {
3511
+ for (const v of message.sites) ManagedChargingSite.encode(v, writer.uint32(10).fork()).join();
3512
+ return writer;
3513
+ },
3514
+ decode(input, length) {
3515
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3516
+ const end = length === void 0 ? reader.len : reader.pos + length;
3517
+ const message = createBaseGetManagedChargingSitesResponse();
3518
+ while (reader.pos < end) {
3519
+ const tag = reader.uint32();
3520
+ switch (tag >>> 3) {
3521
+ case 1:
3522
+ if (tag !== 10) break;
3523
+ message.sites.push(ManagedChargingSite.decode(reader, reader.uint32()));
3524
+ continue;
3525
+ }
3526
+ if ((tag & 7) === 4 || tag === 0) break;
3527
+ reader.skip(tag & 7);
3528
+ }
3529
+ return message;
3530
+ },
3531
+ fromJSON(object) {
3532
+ return { sites: globalThis.Array.isArray(object?.sites) ? object.sites.map((e) => ManagedChargingSite.fromJSON(e)) : [] };
3533
+ },
3534
+ toJSON(message) {
3535
+ const obj = {};
3536
+ if (message.sites?.length) obj.sites = message.sites.map((e) => ManagedChargingSite.toJSON(e));
3537
+ return obj;
3538
+ },
3539
+ create(base) {
3540
+ return GetManagedChargingSitesResponse.fromPartial(base ?? {});
3541
+ },
3542
+ fromPartial(object) {
3543
+ const message = createBaseGetManagedChargingSitesResponse();
3544
+ message.sites = object.sites?.map((e) => ManagedChargingSite.fromPartial(e)) || [];
3545
+ return message;
3546
+ }
3547
+ };
3548
+ function createBaseManagedChargingSiteAddedOrUpdated() {
3549
+ return {};
3550
+ }
3551
+ const ManagedChargingSiteAddedOrUpdated = {
3552
+ encode(_, writer = new BinaryWriter()) {
3553
+ return writer;
3554
+ },
3555
+ decode(input, length) {
3556
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3557
+ const end = length === void 0 ? reader.len : reader.pos + length;
3558
+ const message = createBaseManagedChargingSiteAddedOrUpdated();
3559
+ while (reader.pos < end) {
3560
+ const tag = reader.uint32();
3561
+ switch (tag >>> 3) {}
3562
+ if ((tag & 7) === 4 || tag === 0) break;
3563
+ reader.skip(tag & 7);
3564
+ }
3565
+ return message;
3566
+ },
3567
+ fromJSON(_) {
3568
+ return {};
3569
+ },
3570
+ toJSON(_) {
3571
+ return {};
3572
+ },
3573
+ create(base) {
3574
+ return ManagedChargingSiteAddedOrUpdated.fromPartial(base ?? {});
3575
+ },
3576
+ fromPartial(_) {
3577
+ return createBaseManagedChargingSiteAddedOrUpdated();
3578
+ }
3579
+ };
3580
+ function createBaseExistingManagedChargingSiteNearby() {
3581
+ return {};
3582
+ }
3583
+ const ExistingManagedChargingSiteNearby = {
3584
+ encode(_, writer = new BinaryWriter()) {
3585
+ return writer;
3586
+ },
3587
+ decode(input, length) {
3588
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3589
+ const end = length === void 0 ? reader.len : reader.pos + length;
3590
+ const message = createBaseExistingManagedChargingSiteNearby();
3591
+ while (reader.pos < end) {
3592
+ const tag = reader.uint32();
3593
+ switch (tag >>> 3) {}
3594
+ if ((tag & 7) === 4 || tag === 0) break;
3595
+ reader.skip(tag & 7);
3596
+ }
3597
+ return message;
3598
+ },
3599
+ fromJSON(_) {
3600
+ return {};
3601
+ },
3602
+ toJSON(_) {
3603
+ return {};
3604
+ },
3605
+ create(base) {
3606
+ return ExistingManagedChargingSiteNearby.fromPartial(base ?? {});
3607
+ },
3608
+ fromPartial(_) {
3609
+ return createBaseExistingManagedChargingSiteNearby();
3610
+ }
3611
+ };
3612
+ function createBaseAddManagedChargingSiteResponse() {
3613
+ return {
3614
+ addedOrUpdated: void 0,
3615
+ existingSiteNearby: void 0
3616
+ };
3617
+ }
3618
+ const AddManagedChargingSiteResponse = {
3619
+ encode(message, writer = new BinaryWriter()) {
3620
+ if (message.addedOrUpdated !== void 0) ManagedChargingSiteAddedOrUpdated.encode(message.addedOrUpdated, writer.uint32(10).fork()).join();
3621
+ if (message.existingSiteNearby !== void 0) ExistingManagedChargingSiteNearby.encode(message.existingSiteNearby, writer.uint32(18).fork()).join();
3622
+ return writer;
3623
+ },
3624
+ decode(input, length) {
3625
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3626
+ const end = length === void 0 ? reader.len : reader.pos + length;
3627
+ const message = createBaseAddManagedChargingSiteResponse();
3628
+ while (reader.pos < end) {
3629
+ const tag = reader.uint32();
3630
+ switch (tag >>> 3) {
3631
+ case 1:
3632
+ if (tag !== 10) break;
3633
+ message.addedOrUpdated = ManagedChargingSiteAddedOrUpdated.decode(reader, reader.uint32());
3634
+ continue;
3635
+ case 2:
3636
+ if (tag !== 18) break;
3637
+ message.existingSiteNearby = ExistingManagedChargingSiteNearby.decode(reader, reader.uint32());
3638
+ continue;
3639
+ }
3640
+ if ((tag & 7) === 4 || tag === 0) break;
3641
+ reader.skip(tag & 7);
3642
+ }
3643
+ return message;
3644
+ },
3645
+ fromJSON(object) {
3646
+ return {
3647
+ addedOrUpdated: isSet(object.addedOrUpdated) ? ManagedChargingSiteAddedOrUpdated.fromJSON(object.addedOrUpdated) : void 0,
3648
+ existingSiteNearby: isSet(object.existingSiteNearby) ? ExistingManagedChargingSiteNearby.fromJSON(object.existingSiteNearby) : void 0
3649
+ };
3650
+ },
3651
+ toJSON(message) {
3652
+ const obj = {};
3653
+ if (message.addedOrUpdated !== void 0) obj.addedOrUpdated = ManagedChargingSiteAddedOrUpdated.toJSON(message.addedOrUpdated);
3654
+ if (message.existingSiteNearby !== void 0) obj.existingSiteNearby = ExistingManagedChargingSiteNearby.toJSON(message.existingSiteNearby);
3655
+ return obj;
3656
+ },
3657
+ create(base) {
3658
+ return AddManagedChargingSiteResponse.fromPartial(base ?? {});
3659
+ },
3660
+ fromPartial(object) {
3661
+ const message = createBaseAddManagedChargingSiteResponse();
3662
+ message.addedOrUpdated = object.addedOrUpdated !== void 0 && object.addedOrUpdated !== null ? ManagedChargingSiteAddedOrUpdated.fromPartial(object.addedOrUpdated) : void 0;
3663
+ message.existingSiteNearby = object.existingSiteNearby !== void 0 && object.existingSiteNearby !== null ? ExistingManagedChargingSiteNearby.fromPartial(object.existingSiteNearby) : void 0;
3664
+ return message;
3665
+ }
3666
+ };
3667
+ function createBaseRequestTeslaAuthCommand() {
3668
+ return {
3669
+ clientId: "",
3670
+ unknown: "",
3671
+ returnScopedToken: false
3672
+ };
3673
+ }
3674
+ const RequestTeslaAuthCommand = {
3675
+ encode(message, writer = new BinaryWriter()) {
3676
+ if (message.clientId !== "") writer.uint32(10).string(message.clientId);
3677
+ if (message.unknown !== "") writer.uint32(18).string(message.unknown);
3678
+ if (message.returnScopedToken !== false) writer.uint32(24).bool(message.returnScopedToken);
3679
+ return writer;
3680
+ },
3681
+ decode(input, length) {
3682
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3683
+ const end = length === void 0 ? reader.len : reader.pos + length;
3684
+ const message = createBaseRequestTeslaAuthCommand();
3685
+ while (reader.pos < end) {
3686
+ const tag = reader.uint32();
3687
+ switch (tag >>> 3) {
3688
+ case 1:
3689
+ if (tag !== 10) break;
3690
+ message.clientId = reader.string();
3691
+ continue;
3692
+ case 2:
3693
+ if (tag !== 18) break;
3694
+ message.unknown = reader.string();
3695
+ continue;
3696
+ case 3:
3697
+ if (tag !== 24) break;
3698
+ message.returnScopedToken = reader.bool();
3699
+ continue;
3700
+ }
3701
+ if ((tag & 7) === 4 || tag === 0) break;
3702
+ reader.skip(tag & 7);
3703
+ }
3704
+ return message;
3705
+ },
3706
+ fromJSON(object) {
3707
+ return {
3708
+ clientId: isSet(object.clientId) ? globalThis.String(object.clientId) : "",
3709
+ unknown: isSet(object.unknown) ? globalThis.String(object.unknown) : "",
3710
+ returnScopedToken: isSet(object.returnScopedToken) ? globalThis.Boolean(object.returnScopedToken) : false
3711
+ };
3712
+ },
3713
+ toJSON(message) {
3714
+ const obj = {};
3715
+ if (message.clientId !== void 0) obj.clientId = message.clientId;
3716
+ if (message.unknown !== void 0) obj.unknown = message.unknown;
3717
+ if (message.returnScopedToken !== void 0) obj.returnScopedToken = message.returnScopedToken;
3718
+ return obj;
3719
+ },
3720
+ create(base) {
3721
+ return RequestTeslaAuthCommand.fromPartial(base ?? {});
3722
+ },
3723
+ fromPartial(object) {
3724
+ const message = createBaseRequestTeslaAuthCommand();
3725
+ message.clientId = object.clientId ?? "";
3726
+ message.unknown = object.unknown ?? "";
3727
+ message.returnScopedToken = object.returnScopedToken ?? false;
3728
+ return message;
3729
+ }
3730
+ };
3731
+ function createBaseMobileAppMessage() {
3732
+ return { requestTeslaAuthCommand: void 0 };
3733
+ }
3734
+ const MobileAppMessage = {
3735
+ encode(message, writer = new BinaryWriter()) {
3736
+ if (message.requestTeslaAuthCommand !== void 0) RequestTeslaAuthCommand.encode(message.requestTeslaAuthCommand, writer.uint32(10).fork()).join();
3737
+ return writer;
3738
+ },
3739
+ decode(input, length) {
3740
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3741
+ const end = length === void 0 ? reader.len : reader.pos + length;
3742
+ const message = createBaseMobileAppMessage();
3743
+ while (reader.pos < end) {
3744
+ const tag = reader.uint32();
3745
+ switch (tag >>> 3) {
3746
+ case 1:
3747
+ if (tag !== 10) break;
3748
+ message.requestTeslaAuthCommand = RequestTeslaAuthCommand.decode(reader, reader.uint32());
3749
+ continue;
3750
+ }
3751
+ if ((tag & 7) === 4 || tag === 0) break;
3752
+ reader.skip(tag & 7);
3753
+ }
3754
+ return message;
3755
+ },
3756
+ fromJSON(object) {
3757
+ return { requestTeslaAuthCommand: isSet(object.requestTeslaAuthCommand) ? RequestTeslaAuthCommand.fromJSON(object.requestTeslaAuthCommand) : void 0 };
3758
+ },
3759
+ toJSON(message) {
3760
+ const obj = {};
3761
+ if (message.requestTeslaAuthCommand !== void 0) obj.requestTeslaAuthCommand = RequestTeslaAuthCommand.toJSON(message.requestTeslaAuthCommand);
3762
+ return obj;
3763
+ },
3764
+ create(base) {
3765
+ return MobileAppMessage.fromPartial(base ?? {});
3766
+ },
3767
+ fromPartial(object) {
3768
+ const message = createBaseMobileAppMessage();
3769
+ message.requestTeslaAuthCommand = object.requestTeslaAuthCommand !== void 0 && object.requestTeslaAuthCommand !== null ? RequestTeslaAuthCommand.fromPartial(object.requestTeslaAuthCommand) : void 0;
3770
+ return message;
3771
+ }
3772
+ };
3773
+ function createBaseGetMessagesResponse() {
3774
+ return { mobileAppMessages: [] };
3775
+ }
3776
+ const GetMessagesResponse = {
3777
+ encode(message, writer = new BinaryWriter()) {
3778
+ for (const v of message.mobileAppMessages) MobileAppMessage.encode(v, writer.uint32(10).fork()).join();
3779
+ return writer;
3780
+ },
3781
+ decode(input, length) {
3782
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3783
+ const end = length === void 0 ? reader.len : reader.pos + length;
3784
+ const message = createBaseGetMessagesResponse();
3785
+ while (reader.pos < end) {
3786
+ const tag = reader.uint32();
3787
+ switch (tag >>> 3) {
3788
+ case 1:
3789
+ if (tag !== 10) break;
3790
+ message.mobileAppMessages.push(MobileAppMessage.decode(reader, reader.uint32()));
3791
+ continue;
3792
+ }
3793
+ if ((tag & 7) === 4 || tag === 0) break;
3794
+ reader.skip(tag & 7);
3795
+ }
3796
+ return message;
3797
+ },
3798
+ fromJSON(object) {
3799
+ return { mobileAppMessages: globalThis.Array.isArray(object?.mobileAppMessages) ? object.mobileAppMessages.map((e) => MobileAppMessage.fromJSON(e)) : [] };
3800
+ },
3801
+ toJSON(message) {
3802
+ const obj = {};
3803
+ if (message.mobileAppMessages?.length) obj.mobileAppMessages = message.mobileAppMessages.map((e) => MobileAppMessage.toJSON(e));
3804
+ return obj;
3805
+ },
3806
+ create(base) {
3807
+ return GetMessagesResponse.fromPartial(base ?? {});
3808
+ },
3809
+ fromPartial(object) {
3810
+ const message = createBaseGetMessagesResponse();
3811
+ message.mobileAppMessages = object.mobileAppMessages?.map((e) => MobileAppMessage.fromPartial(e)) || [];
3812
+ return message;
3813
+ }
3814
+ };
3815
+ function createBaseProfile() {
3816
+ return {
3817
+ unknown1: "",
3818
+ unknown2: ""
3819
+ };
3820
+ }
3821
+ const Profile = {
3822
+ encode(message, writer = new BinaryWriter()) {
3823
+ if (message.unknown1 !== "") writer.uint32(10).string(message.unknown1);
3824
+ if (message.unknown2 !== "") writer.uint32(18).string(message.unknown2);
3825
+ return writer;
3826
+ },
3827
+ decode(input, length) {
3828
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3829
+ const end = length === void 0 ? reader.len : reader.pos + length;
3830
+ const message = createBaseProfile();
3831
+ while (reader.pos < end) {
3832
+ const tag = reader.uint32();
3833
+ switch (tag >>> 3) {
3834
+ case 1:
3835
+ if (tag !== 10) break;
3836
+ message.unknown1 = reader.string();
3837
+ continue;
3838
+ case 2:
3839
+ if (tag !== 18) break;
3840
+ message.unknown2 = reader.string();
3841
+ continue;
3842
+ }
3843
+ if ((tag & 7) === 4 || tag === 0) break;
3844
+ reader.skip(tag & 7);
3845
+ }
3846
+ return message;
3847
+ },
3848
+ fromJSON(object) {
3849
+ return {
3850
+ unknown1: isSet(object.unknown1) ? globalThis.String(object.unknown1) : "",
3851
+ unknown2: isSet(object.unknown2) ? globalThis.String(object.unknown2) : ""
3852
+ };
3853
+ },
3854
+ toJSON(message) {
3855
+ const obj = {};
3856
+ if (message.unknown1 !== void 0) obj.unknown1 = message.unknown1;
3857
+ if (message.unknown2 !== void 0) obj.unknown2 = message.unknown2;
3858
+ return obj;
3859
+ },
3860
+ create(base) {
3861
+ return Profile.fromPartial(base ?? {});
3862
+ },
3863
+ fromPartial(object) {
3864
+ const message = createBaseProfile();
3865
+ message.unknown1 = object.unknown1 ?? "";
3866
+ message.unknown2 = object.unknown2 ?? "";
3867
+ return message;
3868
+ }
3869
+ };
3870
+ function createBaseGetLocalProfilesResponse() {
3871
+ return { profiles: [] };
3872
+ }
3873
+ const GetLocalProfilesResponse = {
3874
+ encode(message, writer = new BinaryWriter()) {
3875
+ for (const v of message.profiles) Profile.encode(v, writer.uint32(10).fork()).join();
3876
+ return writer;
3877
+ },
3878
+ decode(input, length) {
3879
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3880
+ const end = length === void 0 ? reader.len : reader.pos + length;
3881
+ const message = createBaseGetLocalProfilesResponse();
3882
+ while (reader.pos < end) {
3883
+ const tag = reader.uint32();
3884
+ switch (tag >>> 3) {
3885
+ case 1:
3886
+ if (tag !== 10) break;
3887
+ message.profiles.push(Profile.decode(reader, reader.uint32()));
3888
+ continue;
3889
+ }
3890
+ if ((tag & 7) === 4 || tag === 0) break;
3891
+ reader.skip(tag & 7);
3892
+ }
3893
+ return message;
3894
+ },
3895
+ fromJSON(object) {
3896
+ return { profiles: globalThis.Array.isArray(object?.profiles) ? object.profiles.map((e) => Profile.fromJSON(e)) : [] };
3897
+ },
3898
+ toJSON(message) {
3899
+ const obj = {};
3900
+ if (message.profiles?.length) obj.profiles = message.profiles.map((e) => Profile.toJSON(e));
3901
+ return obj;
3902
+ },
3903
+ create(base) {
3904
+ return GetLocalProfilesResponse.fromPartial(base ?? {});
3905
+ },
3906
+ fromPartial(object) {
3907
+ const message = createBaseGetLocalProfilesResponse();
3908
+ message.profiles = object.profiles?.map((e) => Profile.fromPartial(e)) || [];
3909
+ return message;
3910
+ }
3911
+ };
3912
+ function createBaseKeyInfo() {
3913
+ return {
3914
+ unknown1: "",
3915
+ unknown2: "",
3916
+ publicKey: /* @__PURE__ */ new Uint8Array(0),
3917
+ lastSeen: void 0,
3918
+ role: 0,
3919
+ formFactor: 0
3920
+ };
3921
+ }
3922
+ const KeyInfo = {
3923
+ encode(message, writer = new BinaryWriter()) {
3924
+ if (message.unknown1 !== "") writer.uint32(10).string(message.unknown1);
3925
+ if (message.unknown2 !== "") writer.uint32(18).string(message.unknown2);
3926
+ if (message.publicKey.length !== 0) writer.uint32(26).bytes(message.publicKey);
3927
+ if (message.lastSeen !== void 0) Timestamp.encode(toTimestamp(message.lastSeen), writer.uint32(34).fork()).join();
3928
+ if (message.role !== 0) writer.uint32(40).int32(message.role);
3929
+ if (message.formFactor !== 0) writer.uint32(48).int32(message.formFactor);
3930
+ return writer;
3931
+ },
3932
+ decode(input, length) {
3933
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3934
+ const end = length === void 0 ? reader.len : reader.pos + length;
3935
+ const message = createBaseKeyInfo();
3936
+ while (reader.pos < end) {
3937
+ const tag = reader.uint32();
3938
+ switch (tag >>> 3) {
3939
+ case 1:
3940
+ if (tag !== 10) break;
3941
+ message.unknown1 = reader.string();
3942
+ continue;
3943
+ case 2:
3944
+ if (tag !== 18) break;
3945
+ message.unknown2 = reader.string();
3946
+ continue;
3947
+ case 3:
3948
+ if (tag !== 26) break;
3949
+ message.publicKey = reader.bytes();
3950
+ continue;
3951
+ case 4:
3952
+ if (tag !== 34) break;
3953
+ message.lastSeen = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
3954
+ continue;
3955
+ case 5:
3956
+ if (tag !== 40) break;
3957
+ message.role = reader.int32();
3958
+ continue;
3959
+ case 6:
3960
+ if (tag !== 48) break;
3961
+ message.formFactor = reader.int32();
3962
+ continue;
3963
+ }
3964
+ if ((tag & 7) === 4 || tag === 0) break;
3965
+ reader.skip(tag & 7);
3966
+ }
3967
+ return message;
3968
+ },
3969
+ fromJSON(object) {
3970
+ return {
3971
+ unknown1: isSet(object.unknown1) ? globalThis.String(object.unknown1) : "",
3972
+ unknown2: isSet(object.unknown2) ? globalThis.String(object.unknown2) : "",
3973
+ publicKey: isSet(object.publicKey) ? bytesFromBase64(object.publicKey) : /* @__PURE__ */ new Uint8Array(0),
3974
+ lastSeen: isSet(object.lastSeen) ? fromJsonTimestamp(object.lastSeen) : void 0,
3975
+ role: isSet(object.role) ? roleFromJSON(object.role) : 0,
3976
+ formFactor: isSet(object.formFactor) ? keyFormFactorFromJSON(object.formFactor) : 0
3977
+ };
3978
+ },
3979
+ toJSON(message) {
3980
+ const obj = {};
3981
+ if (message.unknown1 !== void 0) obj.unknown1 = message.unknown1;
3982
+ if (message.unknown2 !== void 0) obj.unknown2 = message.unknown2;
3983
+ if (message.publicKey !== void 0) obj.publicKey = base64FromBytes(message.publicKey);
3984
+ if (message.lastSeen !== void 0) obj.lastSeen = message.lastSeen.toISOString();
3985
+ if (message.role !== void 0) obj.role = roleToJSON(message.role);
3986
+ if (message.formFactor !== void 0) obj.formFactor = keyFormFactorToJSON(message.formFactor);
3987
+ return obj;
3988
+ },
3989
+ create(base) {
3990
+ return KeyInfo.fromPartial(base ?? {});
3991
+ },
3992
+ fromPartial(object) {
3993
+ const message = createBaseKeyInfo();
3994
+ message.unknown1 = object.unknown1 ?? "";
3995
+ message.unknown2 = object.unknown2 ?? "";
3996
+ message.publicKey = object.publicKey ?? /* @__PURE__ */ new Uint8Array(0);
3997
+ message.lastSeen = object.lastSeen ?? void 0;
3998
+ message.role = object.role ?? 0;
3999
+ message.formFactor = object.formFactor ?? 0;
4000
+ return message;
4001
+ }
4002
+ };
4003
+ function createBaseKeysInfoResponse() {
4004
+ return { keysInfo: [] };
4005
+ }
4006
+ const KeysInfoResponse = {
4007
+ encode(message, writer = new BinaryWriter()) {
4008
+ for (const v of message.keysInfo) KeyInfo.encode(v, writer.uint32(10).fork()).join();
4009
+ return writer;
4010
+ },
4011
+ decode(input, length) {
4012
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
4013
+ const end = length === void 0 ? reader.len : reader.pos + length;
4014
+ const message = createBaseKeysInfoResponse();
4015
+ while (reader.pos < end) {
4016
+ const tag = reader.uint32();
4017
+ switch (tag >>> 3) {
4018
+ case 1:
4019
+ if (tag !== 10) break;
4020
+ message.keysInfo.push(KeyInfo.decode(reader, reader.uint32()));
4021
+ continue;
4022
+ }
4023
+ if ((tag & 7) === 4 || tag === 0) break;
4024
+ reader.skip(tag & 7);
4025
+ }
4026
+ return message;
4027
+ },
4028
+ fromJSON(object) {
4029
+ return { keysInfo: globalThis.Array.isArray(object?.keysInfo) ? object.keysInfo.map((e) => KeyInfo.fromJSON(e)) : [] };
4030
+ },
4031
+ toJSON(message) {
4032
+ const obj = {};
4033
+ if (message.keysInfo?.length) obj.keysInfo = message.keysInfo.map((e) => KeyInfo.toJSON(e));
4034
+ return obj;
4035
+ },
4036
+ create(base) {
4037
+ return KeysInfoResponse.fromPartial(base ?? {});
4038
+ },
4039
+ fromPartial(object) {
4040
+ const message = createBaseKeysInfoResponse();
4041
+ message.keysInfo = object.keysInfo?.map((e) => KeyInfo.fromPartial(e)) || [];
4042
+ return message;
4043
+ }
4044
+ };
4045
+ function createBaseBandwidthTestResponse() {
4046
+ return {
4047
+ data: /* @__PURE__ */ new Uint8Array(0),
4048
+ requestedSize: 0
4049
+ };
4050
+ }
4051
+ const BandwidthTestResponse = {
4052
+ encode(message, writer = new BinaryWriter()) {
4053
+ if (message.data.length !== 0) writer.uint32(10).bytes(message.data);
4054
+ if (message.requestedSize !== 0) writer.uint32(16).uint32(message.requestedSize);
4055
+ return writer;
4056
+ },
4057
+ decode(input, length) {
4058
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
4059
+ const end = length === void 0 ? reader.len : reader.pos + length;
4060
+ const message = createBaseBandwidthTestResponse();
4061
+ while (reader.pos < end) {
4062
+ const tag = reader.uint32();
4063
+ switch (tag >>> 3) {
4064
+ case 1:
4065
+ if (tag !== 10) break;
4066
+ message.data = reader.bytes();
4067
+ continue;
4068
+ case 2:
4069
+ if (tag !== 16) break;
4070
+ message.requestedSize = reader.uint32();
4071
+ continue;
4072
+ }
4073
+ if ((tag & 7) === 4 || tag === 0) break;
4074
+ reader.skip(tag & 7);
4075
+ }
4076
+ return message;
4077
+ },
4078
+ fromJSON(object) {
4079
+ return {
4080
+ data: isSet(object.data) ? bytesFromBase64(object.data) : /* @__PURE__ */ new Uint8Array(0),
4081
+ requestedSize: isSet(object.requestedSize) ? globalThis.Number(object.requestedSize) : 0
4082
+ };
4083
+ },
4084
+ toJSON(message) {
4085
+ const obj = {};
4086
+ if (message.data !== void 0) obj.data = base64FromBytes(message.data);
4087
+ if (message.requestedSize !== void 0) obj.requestedSize = Math.round(message.requestedSize);
4088
+ return obj;
4089
+ },
4090
+ create(base) {
4091
+ return BandwidthTestResponse.fromPartial(base ?? {});
4092
+ },
4093
+ fromPartial(object) {
4094
+ const message = createBaseBandwidthTestResponse();
4095
+ message.data = object.data ?? /* @__PURE__ */ new Uint8Array(0);
4096
+ message.requestedSize = object.requestedSize ?? 0;
4097
+ return message;
4098
+ }
4099
+ };
4100
+ function createBaseGetRateTariffResponse() {
4101
+ return {
4102
+ seasons: void 0,
4103
+ tariff: void 0
4104
+ };
4105
+ }
4106
+ const GetRateTariffResponse = {
4107
+ encode(message, writer = new BinaryWriter()) {
4108
+ if (message.seasons !== void 0) SetRateTariffRequest_Seasons.encode(message.seasons, writer.uint32(106).fork()).join();
4109
+ if (message.tariff !== void 0) SetRateTariffRequest_Tariff.encode(message.tariff, writer.uint32(114).fork()).join();
4110
+ return writer;
4111
+ },
4112
+ decode(input, length) {
4113
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
4114
+ const end = length === void 0 ? reader.len : reader.pos + length;
4115
+ const message = createBaseGetRateTariffResponse();
4116
+ while (reader.pos < end) {
4117
+ const tag = reader.uint32();
4118
+ switch (tag >>> 3) {
4119
+ case 13:
4120
+ if (tag !== 106) break;
4121
+ message.seasons = SetRateTariffRequest_Seasons.decode(reader, reader.uint32());
4122
+ continue;
4123
+ case 14:
4124
+ if (tag !== 114) break;
4125
+ message.tariff = SetRateTariffRequest_Tariff.decode(reader, reader.uint32());
4126
+ continue;
4127
+ }
4128
+ if ((tag & 7) === 4 || tag === 0) break;
4129
+ reader.skip(tag & 7);
4130
+ }
4131
+ return message;
4132
+ },
4133
+ fromJSON(object) {
4134
+ return {
4135
+ seasons: isSet(object.seasons) ? SetRateTariffRequest_Seasons.fromJSON(object.seasons) : void 0,
4136
+ tariff: isSet(object.tariff) ? SetRateTariffRequest_Tariff.fromJSON(object.tariff) : void 0
4137
+ };
4138
+ },
4139
+ toJSON(message) {
4140
+ const obj = {};
4141
+ if (message.seasons !== void 0) obj.seasons = SetRateTariffRequest_Seasons.toJSON(message.seasons);
4142
+ if (message.tariff !== void 0) obj.tariff = SetRateTariffRequest_Tariff.toJSON(message.tariff);
4143
+ return obj;
4144
+ },
4145
+ create(base) {
4146
+ return GetRateTariffResponse.fromPartial(base ?? {});
4147
+ },
4148
+ fromPartial(object) {
4149
+ const message = createBaseGetRateTariffResponse();
4150
+ message.seasons = object.seasons !== void 0 && object.seasons !== null ? SetRateTariffRequest_Seasons.fromPartial(object.seasons) : void 0;
4151
+ message.tariff = object.tariff !== void 0 && object.tariff !== null ? SetRateTariffRequest_Tariff.fromPartial(object.tariff) : void 0;
3024
4152
  return message;
3025
4153
  }
3026
4154
  };
@@ -10928,4 +12056,4 @@ function isSet(value) {
10928
12056
  return value !== null && value !== void 0;
10929
12057
  }
10930
12058
  //#endregion
10931
- export { Action, ActionStatus, AddManagedChargingSiteRequest, AutoSeatClimateAction, AutoSeatClimateAction_AutoSeatPositionE, AutoSeatClimateAction_CarSeat, AutoStwHeatAction, BandwidthTest, BatchRemoveChargeSchedulesAction, BatchRemovePreconditionSchedulesAction, BluetoothClassicPairingRequest, BoomboxAction, CancelSohTestAction, CancelVehicleDataSubscription, ChargeOnSolarFeature, ChargePortDoorClose, ChargePortDoorOpen, ChargingSetLimitAction, ChargingStartStopAction, CreateStreamSession, DashcamSaveClipAction, DeleteDashcamClipsAction, DestinationCharging, DrivingClearSpeedLimitPinAction, DrivingClearSpeedLimitPinAdminAction, DrivingSetSpeedLimitAction, DrivingSpeedLimitAction, EncryptedData, EraseUserDataAction, FetchKeysInfoAction, FormatUSBAction, GetAlertState, GetChargeOnSolarFeatureRequest, GetChargeOnSolarFeatureResponse, GetChargeScheduleState, GetChargeState, GetChildPresenceDetectionState, GetClimateState, GetClosuresState, GetDriveState, GetGuiSettings, GetLightShowState, GetLocalProfilesForVaultUuidAction, GetLocationState, GetManagedChargingSitesRequest, GetMediaDetailState, GetMediaState, GetMessagesAction, GetNearbyChargingSites, GetParentalControlsState, GetParkedAccessoryState, GetPreconditioningScheduleState, GetRateTariffRequest, GetSoftwareUpdateState, GetSuspensionState, GetTirePressureState, GetVehicleData, GetVehicleImageState, GetVehicleState, HvacAutoAction, HvacBioweaponModeAction, HvacClimateKeeperAction, HvacClimateKeeperAction_ClimateKeeperActionE, HvacClimateKeeperAction_ManualOverrideModeE, HvacRecirculationAction, HvacSeatCoolerActions, HvacSeatCoolerActions_HvacSeatCoolerAction, HvacSeatCoolerActions_HvacSeatCoolerLevelE, HvacSeatCoolerActions_HvacSeatCoolerPositionE, HvacSeatHeaterActions, HvacSeatHeaterActions_HvacSeatHeaterAction, HvacSetPreconditioningMaxAction, HvacSetPreconditioningMaxAction_ManualOverrideModeE, HvacSteeringWheelHeaterAction, HvacTemperatureAdjustmentAction, HvacTemperatureAdjustmentAction_HvacTemperatureZone, HvacTemperatureAdjustmentAction_Temperature, ManagedChargingSite, ManagerType, MediaNextFavorite, MediaNextTrack, MediaPlayAction, MediaPreviousFavorite, MediaPreviousTrack, MediaUpdateVolume, NavigationGpsDestinationRequest, NavigationGpsDestinationRequest_RemoteNavTripOrder, NavigationGpsRequest, NavigationGpsRequest_RemoteNavTripOrder, NavigationRequest, NavigationRouteAction, NavigationSuperchargerRequest, NavigationWaypointsRequest, NavigationWaypointsRequest_TripPlanOptions, NearbyChargingSites, OperationStatusE, ParentalControlsAction, ParentalControlsClearPinAction, ParentalControlsClearPinAdminAction, ParentalControlsEnableSettingsAction, ParentalControlsEnableSettingsAction_ParentalControlsSettingE, ParentalControlsSetSpeedLimitAction, PhoneUnitPreferences, PiiKeyRequest, Ping, PseudonymSyncRequest, RemoteStartDrive, RemoveChargeScheduleAction, RemoveManagedChargingSiteRequest, RemovePreconditionScheduleAction, Response, ResultReason, ScheduledChargingAction, ScheduledDepartureAction, SetCabinOverheatProtectionAction, SetChargingAmpsAction, SetCopTempAction, SetDischargeLimitAction, SetDistanceUnitAction, SetDistanceUnitAction_Unit, SetEnergyDisplayFormatAction, SetEnergyDisplayFormatAction_Format, SetKeepAccessoryPowerModeAction, SetLightbarBrightnessAction, SetLightbarDitchAction, SetLightbarMiddleAction, SetLowPowerModeAction, SetOutletSocLimitAction, SetOutletTimerAction, SetOutletsOnOffAction, SetOutletsOnOffAction_OutletRequest, SetPhoneSettingPreferencesAction, SetPhoneSettingPreferencesAction_FontSize, SetPowerFeedOnOffAction, SetPowerFeedOnOffAction_PowerFeedRequest, SetPowerFeedSocLimitAction, SetPowerFeedTimerAction, SetPowershareDischargeLimitAction, SetPowershareFeatureAction, SetPowershareFeatureAction_PowershareFeatureRequest, SetPowershareRequestAction, SetPowershareRequestAction_PowershareRequest, SetRateTariffRequest, SetRateTariffRequest_Charges, SetRateTariffRequest_FixedCharge, SetRateTariffRequest_RateBand, SetRateTariffRequest_Season, SetRateTariffRequest_Seasons, SetRateTariffRequest_TOUPeriod, SetRateTariffRequest_TOUPeriods, SetRateTariffRequest_Tariff, SetSuspensionLevelAction, SetSuspensionLevelAction_SuspensionLevel, SetTemperatureUnitAction, SetTemperatureUnitAction_Unit, SetTentModeRequestAction, SetTimeDisplayFormatAction, SetTimeDisplayFormatAction_Format, SetTirePressureUnitAction, SetTirePressureUnitAction_Unit, SetTrailerLightTestStartStopAction, SetTruckBedLightAutoStateAction, SetTruckBedLightBrightnessAction, SetVehicleNameAction, SetZoneLightRequestAction, SetZoneLightRequestAction_ZoneLightRequest, SetupCloudProfileWithLocalProfileUuidAction, SiteController, StartLightShowAction, StopLightShowAction, StreamMessage, StwHeatLevelAction, Superchargers, TakeDrivenoteAction, TeslaAuthResponseAction, UiSetUpcomingCalendarEntries, UpdateChargeOnSolarFeatureRequest, VehicleAction, VehicleControlCancelSoftwareUpdateAction, VehicleControlFlashLightsAction, VehicleControlHonkHornAction, VehicleControlResetPinToDriveAction, VehicleControlResetPinToDriveAdminAction, VehicleControlResetValetPinAction, VehicleControlScheduleSoftwareUpdateAction, VehicleControlSetPinToDriveAction, VehicleControlSetSentryModeAction, VehicleControlSetValetModeAction, VehicleControlSunroofOpenCloseAction, VehicleControlTriggerHomelinkAction, VehicleControlWindowAction, VehicleDataAck, VehicleDataSubscription, VehicleDataSubscription_PiiKeyRequest, VehicleImageDataChunkRequest, VehicleImageRequest, VehicleImageRequest_Type, VideoRequestAction, VitalsAck, VitalsSubscription, autoSeatClimateAction_AutoSeatPositionEFromJSON, autoSeatClimateAction_AutoSeatPositionEToJSON, hvacClimateKeeperAction_ClimateKeeperActionEFromJSON, hvacClimateKeeperAction_ClimateKeeperActionEToJSON, hvacClimateKeeperAction_ManualOverrideModeEFromJSON, hvacClimateKeeperAction_ManualOverrideModeEToJSON, hvacSeatCoolerActions_HvacSeatCoolerLevelEFromJSON, hvacSeatCoolerActions_HvacSeatCoolerLevelEToJSON, hvacSeatCoolerActions_HvacSeatCoolerPositionEFromJSON, hvacSeatCoolerActions_HvacSeatCoolerPositionEToJSON, hvacSetPreconditioningMaxAction_ManualOverrideModeEFromJSON, hvacSetPreconditioningMaxAction_ManualOverrideModeEToJSON, navigationGpsDestinationRequest_RemoteNavTripOrderFromJSON, navigationGpsDestinationRequest_RemoteNavTripOrderToJSON, navigationGpsRequest_RemoteNavTripOrderFromJSON, navigationGpsRequest_RemoteNavTripOrderToJSON, operationStatusEFromJSON, operationStatusEToJSON, parentalControlsEnableSettingsAction_ParentalControlsSettingEFromJSON, parentalControlsEnableSettingsAction_ParentalControlsSettingEToJSON, protobufPackage, setDistanceUnitAction_UnitFromJSON, setDistanceUnitAction_UnitToJSON, setEnergyDisplayFormatAction_FormatFromJSON, setEnergyDisplayFormatAction_FormatToJSON, setOutletsOnOffAction_OutletRequestFromJSON, setOutletsOnOffAction_OutletRequestToJSON, setPhoneSettingPreferencesAction_FontSizeFromJSON, setPhoneSettingPreferencesAction_FontSizeToJSON, setPowerFeedOnOffAction_PowerFeedRequestFromJSON, setPowerFeedOnOffAction_PowerFeedRequestToJSON, setPowershareFeatureAction_PowershareFeatureRequestFromJSON, setPowershareFeatureAction_PowershareFeatureRequestToJSON, setPowershareRequestAction_PowershareRequestFromJSON, setPowershareRequestAction_PowershareRequestToJSON, setSuspensionLevelAction_SuspensionLevelFromJSON, setSuspensionLevelAction_SuspensionLevelToJSON, setTemperatureUnitAction_UnitFromJSON, setTemperatureUnitAction_UnitToJSON, setTimeDisplayFormatAction_FormatFromJSON, setTimeDisplayFormatAction_FormatToJSON, setTirePressureUnitAction_UnitFromJSON, setTirePressureUnitAction_UnitToJSON, setZoneLightRequestAction_ZoneLightRequestFromJSON, setZoneLightRequestAction_ZoneLightRequestToJSON, vehicleImageRequest_TypeFromJSON, vehicleImageRequest_TypeToJSON };
12059
+ export { Action, ActionStatus, AddManagedChargingSiteRequest, AddManagedChargingSiteResponse, AutoSeatClimateAction, AutoSeatClimateAction_AutoSeatPositionE, AutoSeatClimateAction_CarSeat, AutoStwHeatAction, BandwidthTest, BandwidthTestResponse, BatchRemoveChargeSchedulesAction, BatchRemovePreconditionSchedulesAction, BluetoothClassicPairingRequest, BoomboxAction, CancelSohTestAction, CancelVehicleDataSubscription, ChargeOnSolarFeature, ChargePortDoorClose, ChargePortDoorOpen, ChargingSetLimitAction, ChargingStartStopAction, CreateStreamSession, DashcamSaveClipAction, DeleteDashcamClipsAction, DestinationCharging, DrivingClearSpeedLimitPinAction, DrivingClearSpeedLimitPinAdminAction, DrivingSetSpeedLimitAction, DrivingSpeedLimitAction, EncryptedData, EraseUserDataAction, ExistingManagedChargingSiteNearby, FetchKeysInfoAction, FormatUSBAction, GetAlertState, GetChargeOnSolarFeatureRequest, GetChargeOnSolarFeatureResponse, GetChargeScheduleState, GetChargeState, GetChildPresenceDetectionState, GetClimateState, GetClosuresState, GetDriveState, GetGuiSettings, GetLightShowState, GetLocalProfilesForVaultUuidAction, GetLocalProfilesResponse, GetLocationState, GetManagedChargingSitesRequest, GetManagedChargingSitesResponse, GetMediaDetailState, GetMediaState, GetMessagesAction, GetMessagesResponse, GetNearbyChargingSites, GetParentalControlsState, GetParkedAccessoryState, GetPreconditioningScheduleState, GetRateTariffRequest, GetRateTariffResponse, GetSoftwareUpdateState, GetSuspensionState, GetTirePressureState, GetVehicleData, GetVehicleImageState, GetVehicleState, HvacAutoAction, HvacBioweaponModeAction, HvacClimateKeeperAction, HvacClimateKeeperAction_ClimateKeeperActionE, HvacClimateKeeperAction_ManualOverrideModeE, HvacRecirculationAction, HvacSeatCoolerActions, HvacSeatCoolerActions_HvacSeatCoolerAction, HvacSeatCoolerActions_HvacSeatCoolerLevelE, HvacSeatCoolerActions_HvacSeatCoolerPositionE, HvacSeatHeaterActions, HvacSeatHeaterActions_HvacSeatHeaterAction, HvacSetPreconditioningMaxAction, HvacSetPreconditioningMaxAction_ManualOverrideModeE, HvacSteeringWheelHeaterAction, HvacTemperatureAdjustmentAction, HvacTemperatureAdjustmentAction_HvacTemperatureZone, HvacTemperatureAdjustmentAction_Temperature, KeyInfo, KeysInfoResponse, ManagedChargingSite, ManagedChargingSiteAddedOrUpdated, ManagerType, MediaNextFavorite, MediaNextTrack, MediaPlayAction, MediaPreviousFavorite, MediaPreviousTrack, MediaUpdateVolume, MobileAppMessage, NavigationGpsDestinationRequest, NavigationGpsDestinationRequest_RemoteNavTripOrder, NavigationGpsRequest, NavigationGpsRequest_RemoteNavTripOrder, NavigationRequest, NavigationRouteAction, NavigationRouteResponse, NavigationRouteResponse_TrafficDetail, NavigationRouteResponse_TrafficStatus, NavigationSuperchargerRequest, NavigationWaypointsRequest, NavigationWaypointsRequest_TripPlanOptions, NearbyChargingSites, OperationStatusE, ParentalControlsAction, ParentalControlsClearPinAction, ParentalControlsClearPinAdminAction, ParentalControlsEnableSettingsAction, ParentalControlsEnableSettingsAction_ParentalControlsSettingE, ParentalControlsSetSpeedLimitAction, PhoneUnitPreferences, PiiKeyRequest, PiiKeyResponse, Ping, Profile, PseudonymSyncRequest, PseudonymSyncResponse, RemoteStartDrive, RemoveChargeScheduleAction, RemoveManagedChargingSiteRequest, RemovePreconditionScheduleAction, RequestTeslaAuthCommand, Response, ResultReason, ScheduledChargingAction, ScheduledDepartureAction, SetCabinOverheatProtectionAction, SetChargingAmpsAction, SetCopTempAction, SetDischargeLimitAction, SetDistanceUnitAction, SetDistanceUnitAction_Unit, SetEnergyDisplayFormatAction, SetEnergyDisplayFormatAction_Format, SetKeepAccessoryPowerModeAction, SetLightbarBrightnessAction, SetLightbarDitchAction, SetLightbarMiddleAction, SetLowPowerModeAction, SetOutletSocLimitAction, SetOutletTimerAction, SetOutletsOnOffAction, SetOutletsOnOffAction_OutletRequest, SetPhoneSettingPreferencesAction, SetPhoneSettingPreferencesAction_FontSize, SetPowerFeedOnOffAction, SetPowerFeedOnOffAction_PowerFeedRequest, SetPowerFeedSocLimitAction, SetPowerFeedTimerAction, SetPowershareDischargeLimitAction, SetPowershareFeatureAction, SetPowershareFeatureAction_PowershareFeatureRequest, SetPowershareRequestAction, SetPowershareRequestAction_PowershareRequest, SetRateTariffRequest, SetRateTariffRequest_Charges, SetRateTariffRequest_FixedCharge, SetRateTariffRequest_RateBand, SetRateTariffRequest_Season, SetRateTariffRequest_Seasons, SetRateTariffRequest_TOUPeriod, SetRateTariffRequest_TOUPeriods, SetRateTariffRequest_Tariff, SetSuspensionLevelAction, SetSuspensionLevelAction_SuspensionLevel, SetTemperatureUnitAction, SetTemperatureUnitAction_Unit, SetTentModeRequestAction, SetTimeDisplayFormatAction, SetTimeDisplayFormatAction_Format, SetTirePressureUnitAction, SetTirePressureUnitAction_Unit, SetTrailerLightTestStartStopAction, SetTruckBedLightAutoStateAction, SetTruckBedLightBrightnessAction, SetVehicleNameAction, SetZoneLightRequestAction, SetZoneLightRequestAction_ZoneLightRequest, SetupCloudProfileWithLocalProfileUuidAction, SiteController, StartLightShowAction, StopLightShowAction, StreamMessage, StwHeatLevelAction, Superchargers, TakeDrivenoteAction, TeslaAuthResponseAction, UiSetUpcomingCalendarEntries, UpdateChargeOnSolarFeatureRequest, VehicleAction, VehicleControlCancelSoftwareUpdateAction, VehicleControlFlashLightsAction, VehicleControlHonkHornAction, VehicleControlResetPinToDriveAction, VehicleControlResetPinToDriveAdminAction, VehicleControlResetValetPinAction, VehicleControlScheduleSoftwareUpdateAction, VehicleControlSetPinToDriveAction, VehicleControlSetSentryModeAction, VehicleControlSetValetModeAction, VehicleControlSunroofOpenCloseAction, VehicleControlTriggerHomelinkAction, VehicleControlWindowAction, VehicleDataAck, VehicleDataSubscription, VehicleDataSubscriptionResponse, VehicleDataSubscription_PiiKeyRequest, VehicleImageDataChunkRequest, VehicleImageRequest, VehicleImageRequest_Type, VideoRequestAction, VitalsAck, VitalsSubscription, VitalsSubscriptionResponse, autoSeatClimateAction_AutoSeatPositionEFromJSON, autoSeatClimateAction_AutoSeatPositionEToJSON, hvacClimateKeeperAction_ClimateKeeperActionEFromJSON, hvacClimateKeeperAction_ClimateKeeperActionEToJSON, hvacClimateKeeperAction_ManualOverrideModeEFromJSON, hvacClimateKeeperAction_ManualOverrideModeEToJSON, hvacSeatCoolerActions_HvacSeatCoolerLevelEFromJSON, hvacSeatCoolerActions_HvacSeatCoolerLevelEToJSON, hvacSeatCoolerActions_HvacSeatCoolerPositionEFromJSON, hvacSeatCoolerActions_HvacSeatCoolerPositionEToJSON, hvacSetPreconditioningMaxAction_ManualOverrideModeEFromJSON, hvacSetPreconditioningMaxAction_ManualOverrideModeEToJSON, navigationGpsDestinationRequest_RemoteNavTripOrderFromJSON, navigationGpsDestinationRequest_RemoteNavTripOrderToJSON, navigationGpsRequest_RemoteNavTripOrderFromJSON, navigationGpsRequest_RemoteNavTripOrderToJSON, navigationRouteResponse_TrafficStatusFromJSON, navigationRouteResponse_TrafficStatusToJSON, operationStatusEFromJSON, operationStatusEToJSON, parentalControlsEnableSettingsAction_ParentalControlsSettingEFromJSON, parentalControlsEnableSettingsAction_ParentalControlsSettingEToJSON, protobufPackage, setDistanceUnitAction_UnitFromJSON, setDistanceUnitAction_UnitToJSON, setEnergyDisplayFormatAction_FormatFromJSON, setEnergyDisplayFormatAction_FormatToJSON, setOutletsOnOffAction_OutletRequestFromJSON, setOutletsOnOffAction_OutletRequestToJSON, setPhoneSettingPreferencesAction_FontSizeFromJSON, setPhoneSettingPreferencesAction_FontSizeToJSON, setPowerFeedOnOffAction_PowerFeedRequestFromJSON, setPowerFeedOnOffAction_PowerFeedRequestToJSON, setPowershareFeatureAction_PowershareFeatureRequestFromJSON, setPowershareFeatureAction_PowershareFeatureRequestToJSON, setPowershareRequestAction_PowershareRequestFromJSON, setPowershareRequestAction_PowershareRequestToJSON, setSuspensionLevelAction_SuspensionLevelFromJSON, setSuspensionLevelAction_SuspensionLevelToJSON, setTemperatureUnitAction_UnitFromJSON, setTemperatureUnitAction_UnitToJSON, setTimeDisplayFormatAction_FormatFromJSON, setTimeDisplayFormatAction_FormatToJSON, setTirePressureUnitAction_UnitFromJSON, setTirePressureUnitAction_UnitToJSON, setZoneLightRequestAction_ZoneLightRequestFromJSON, setZoneLightRequestAction_ZoneLightRequestToJSON, vehicleImageRequest_TypeFromJSON, vehicleImageRequest_TypeToJSON };