@teslemetry/tesla-protocol 0.3.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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,21 @@ 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
+ navigationRouteResponse: void 0,
2985
+ getManagedChargingSitesResponse: void 0,
2986
+ getChargeOnSolarFeatureResponse: void 0,
2987
+ addManagedChargingSiteResponse: void 0,
2988
+ getMessagesResponse: void 0,
2989
+ getLocalProfilesResponse: void 0,
2990
+ keysInfoResponse: void 0,
2991
+ bandwidthTestResponse: void 0
2944
2992
  };
2945
2993
  }
2946
2994
  const Response = {
@@ -2948,9 +2996,21 @@ const Response = {
2948
2996
  if (message.actionStatus !== void 0) ActionStatus.encode(message.actionStatus, writer.uint32(10).fork()).join();
2949
2997
  if (message.vehicleData !== void 0) VehicleData.encode(message.vehicleData, writer.uint32(18).fork()).join();
2950
2998
  if (message.getSessionInfoResponse !== void 0) SessionInfo.encode(message.getSessionInfoResponse, writer.uint32(26).fork()).join();
2999
+ if (message.streamMessage !== void 0) StreamMessage.encode(message.streamMessage, writer.uint32(34).fork()).join();
2951
3000
  if (message.getNearbyChargingSites !== void 0) NearbyChargingSites.encode(message.getNearbyChargingSites, writer.uint32(42).fork()).join();
3001
+ if (message.vehicleDataSubscriptionResponse !== void 0) VehicleDataSubscriptionResponse.encode(message.vehicleDataSubscriptionResponse, writer.uint32(50).fork()).join();
3002
+ if (message.vitalsSubscriptionResponse !== void 0) VitalsSubscriptionResponse.encode(message.vitalsSubscriptionResponse, writer.uint32(66).fork()).join();
2952
3003
  if (message.ping !== void 0) Ping.encode(message.ping, writer.uint32(74).fork()).join();
3004
+ if (message.piiKeyResponse !== void 0) PiiKeyResponse.encode(message.piiKeyResponse, writer.uint32(82).fork()).join();
3005
+ if (message.pseudonymSyncResponse !== void 0) PseudonymSyncResponse.encode(message.pseudonymSyncResponse, writer.uint32(90).fork()).join();
3006
+ if (message.navigationRouteResponse !== void 0) NavigationRouteResponse.encode(message.navigationRouteResponse, writer.uint32(106).fork()).join();
3007
+ if (message.getManagedChargingSitesResponse !== void 0) GetManagedChargingSitesResponse.encode(message.getManagedChargingSitesResponse, writer.uint32(114).fork()).join();
2953
3008
  if (message.getChargeOnSolarFeatureResponse !== void 0) GetChargeOnSolarFeatureResponse.encode(message.getChargeOnSolarFeatureResponse, writer.uint32(122).fork()).join();
3009
+ if (message.addManagedChargingSiteResponse !== void 0) AddManagedChargingSiteResponse.encode(message.addManagedChargingSiteResponse, writer.uint32(130).fork()).join();
3010
+ if (message.getMessagesResponse !== void 0) GetMessagesResponse.encode(message.getMessagesResponse, writer.uint32(146).fork()).join();
3011
+ if (message.getLocalProfilesResponse !== void 0) GetLocalProfilesResponse.encode(message.getLocalProfilesResponse, writer.uint32(162).fork()).join();
3012
+ if (message.keysInfoResponse !== void 0) KeysInfoResponse.encode(message.keysInfoResponse, writer.uint32(194).fork()).join();
3013
+ if (message.bandwidthTestResponse !== void 0) BandwidthTestResponse.encode(message.bandwidthTestResponse, writer.uint32(202).fork()).join();
2954
3014
  return writer;
2955
3015
  },
2956
3016
  decode(input, length) {
@@ -2972,18 +3032,66 @@ const Response = {
2972
3032
  if (tag !== 26) break;
2973
3033
  message.getSessionInfoResponse = SessionInfo.decode(reader, reader.uint32());
2974
3034
  continue;
3035
+ case 4:
3036
+ if (tag !== 34) break;
3037
+ message.streamMessage = StreamMessage.decode(reader, reader.uint32());
3038
+ continue;
2975
3039
  case 5:
2976
3040
  if (tag !== 42) break;
2977
3041
  message.getNearbyChargingSites = NearbyChargingSites.decode(reader, reader.uint32());
2978
3042
  continue;
3043
+ case 6:
3044
+ if (tag !== 50) break;
3045
+ message.vehicleDataSubscriptionResponse = VehicleDataSubscriptionResponse.decode(reader, reader.uint32());
3046
+ continue;
3047
+ case 8:
3048
+ if (tag !== 66) break;
3049
+ message.vitalsSubscriptionResponse = VitalsSubscriptionResponse.decode(reader, reader.uint32());
3050
+ continue;
2979
3051
  case 9:
2980
3052
  if (tag !== 74) break;
2981
3053
  message.ping = Ping.decode(reader, reader.uint32());
2982
3054
  continue;
3055
+ case 10:
3056
+ if (tag !== 82) break;
3057
+ message.piiKeyResponse = PiiKeyResponse.decode(reader, reader.uint32());
3058
+ continue;
3059
+ case 11:
3060
+ if (tag !== 90) break;
3061
+ message.pseudonymSyncResponse = PseudonymSyncResponse.decode(reader, reader.uint32());
3062
+ continue;
3063
+ case 13:
3064
+ if (tag !== 106) break;
3065
+ message.navigationRouteResponse = NavigationRouteResponse.decode(reader, reader.uint32());
3066
+ continue;
3067
+ case 14:
3068
+ if (tag !== 114) break;
3069
+ message.getManagedChargingSitesResponse = GetManagedChargingSitesResponse.decode(reader, reader.uint32());
3070
+ continue;
2983
3071
  case 15:
2984
3072
  if (tag !== 122) break;
2985
3073
  message.getChargeOnSolarFeatureResponse = GetChargeOnSolarFeatureResponse.decode(reader, reader.uint32());
2986
3074
  continue;
3075
+ case 16:
3076
+ if (tag !== 130) break;
3077
+ message.addManagedChargingSiteResponse = AddManagedChargingSiteResponse.decode(reader, reader.uint32());
3078
+ continue;
3079
+ case 18:
3080
+ if (tag !== 146) break;
3081
+ message.getMessagesResponse = GetMessagesResponse.decode(reader, reader.uint32());
3082
+ continue;
3083
+ case 20:
3084
+ if (tag !== 162) break;
3085
+ message.getLocalProfilesResponse = GetLocalProfilesResponse.decode(reader, reader.uint32());
3086
+ continue;
3087
+ case 24:
3088
+ if (tag !== 194) break;
3089
+ message.keysInfoResponse = KeysInfoResponse.decode(reader, reader.uint32());
3090
+ continue;
3091
+ case 25:
3092
+ if (tag !== 202) break;
3093
+ message.bandwidthTestResponse = BandwidthTestResponse.decode(reader, reader.uint32());
3094
+ continue;
2987
3095
  }
2988
3096
  if ((tag & 7) === 4 || tag === 0) break;
2989
3097
  reader.skip(tag & 7);
@@ -2995,9 +3103,21 @@ const Response = {
2995
3103
  actionStatus: isSet(object.actionStatus) ? ActionStatus.fromJSON(object.actionStatus) : void 0,
2996
3104
  vehicleData: isSet(object.vehicleData) ? VehicleData.fromJSON(object.vehicleData) : void 0,
2997
3105
  getSessionInfoResponse: isSet(object.getSessionInfoResponse) ? SessionInfo.fromJSON(object.getSessionInfoResponse) : void 0,
3106
+ streamMessage: isSet(object.streamMessage) ? StreamMessage.fromJSON(object.streamMessage) : void 0,
2998
3107
  getNearbyChargingSites: isSet(object.getNearbyChargingSites) ? NearbyChargingSites.fromJSON(object.getNearbyChargingSites) : void 0,
3108
+ vehicleDataSubscriptionResponse: isSet(object.vehicleDataSubscriptionResponse) ? VehicleDataSubscriptionResponse.fromJSON(object.vehicleDataSubscriptionResponse) : void 0,
3109
+ vitalsSubscriptionResponse: isSet(object.vitalsSubscriptionResponse) ? VitalsSubscriptionResponse.fromJSON(object.vitalsSubscriptionResponse) : void 0,
2999
3110
  ping: isSet(object.ping) ? Ping.fromJSON(object.ping) : void 0,
3000
- getChargeOnSolarFeatureResponse: isSet(object.getChargeOnSolarFeatureResponse) ? GetChargeOnSolarFeatureResponse.fromJSON(object.getChargeOnSolarFeatureResponse) : void 0
3111
+ piiKeyResponse: isSet(object.piiKeyResponse) ? PiiKeyResponse.fromJSON(object.piiKeyResponse) : void 0,
3112
+ pseudonymSyncResponse: isSet(object.pseudonymSyncResponse) ? PseudonymSyncResponse.fromJSON(object.pseudonymSyncResponse) : void 0,
3113
+ navigationRouteResponse: isSet(object.navigationRouteResponse) ? NavigationRouteResponse.fromJSON(object.navigationRouteResponse) : void 0,
3114
+ getManagedChargingSitesResponse: isSet(object.getManagedChargingSitesResponse) ? GetManagedChargingSitesResponse.fromJSON(object.getManagedChargingSitesResponse) : void 0,
3115
+ getChargeOnSolarFeatureResponse: isSet(object.getChargeOnSolarFeatureResponse) ? GetChargeOnSolarFeatureResponse.fromJSON(object.getChargeOnSolarFeatureResponse) : void 0,
3116
+ addManagedChargingSiteResponse: isSet(object.addManagedChargingSiteResponse) ? AddManagedChargingSiteResponse.fromJSON(object.addManagedChargingSiteResponse) : void 0,
3117
+ getMessagesResponse: isSet(object.getMessagesResponse) ? GetMessagesResponse.fromJSON(object.getMessagesResponse) : void 0,
3118
+ getLocalProfilesResponse: isSet(object.getLocalProfilesResponse) ? GetLocalProfilesResponse.fromJSON(object.getLocalProfilesResponse) : void 0,
3119
+ keysInfoResponse: isSet(object.keysInfoResponse) ? KeysInfoResponse.fromJSON(object.keysInfoResponse) : void 0,
3120
+ bandwidthTestResponse: isSet(object.bandwidthTestResponse) ? BandwidthTestResponse.fromJSON(object.bandwidthTestResponse) : void 0
3001
3121
  };
3002
3122
  },
3003
3123
  toJSON(message) {
@@ -3005,9 +3125,21 @@ const Response = {
3005
3125
  if (message.actionStatus !== void 0) obj.actionStatus = ActionStatus.toJSON(message.actionStatus);
3006
3126
  if (message.vehicleData !== void 0) obj.vehicleData = VehicleData.toJSON(message.vehicleData);
3007
3127
  if (message.getSessionInfoResponse !== void 0) obj.getSessionInfoResponse = SessionInfo.toJSON(message.getSessionInfoResponse);
3128
+ if (message.streamMessage !== void 0) obj.streamMessage = StreamMessage.toJSON(message.streamMessage);
3008
3129
  if (message.getNearbyChargingSites !== void 0) obj.getNearbyChargingSites = NearbyChargingSites.toJSON(message.getNearbyChargingSites);
3130
+ if (message.vehicleDataSubscriptionResponse !== void 0) obj.vehicleDataSubscriptionResponse = VehicleDataSubscriptionResponse.toJSON(message.vehicleDataSubscriptionResponse);
3131
+ if (message.vitalsSubscriptionResponse !== void 0) obj.vitalsSubscriptionResponse = VitalsSubscriptionResponse.toJSON(message.vitalsSubscriptionResponse);
3009
3132
  if (message.ping !== void 0) obj.ping = Ping.toJSON(message.ping);
3133
+ if (message.piiKeyResponse !== void 0) obj.piiKeyResponse = PiiKeyResponse.toJSON(message.piiKeyResponse);
3134
+ if (message.pseudonymSyncResponse !== void 0) obj.pseudonymSyncResponse = PseudonymSyncResponse.toJSON(message.pseudonymSyncResponse);
3135
+ if (message.navigationRouteResponse !== void 0) obj.navigationRouteResponse = NavigationRouteResponse.toJSON(message.navigationRouteResponse);
3136
+ if (message.getManagedChargingSitesResponse !== void 0) obj.getManagedChargingSitesResponse = GetManagedChargingSitesResponse.toJSON(message.getManagedChargingSitesResponse);
3010
3137
  if (message.getChargeOnSolarFeatureResponse !== void 0) obj.getChargeOnSolarFeatureResponse = GetChargeOnSolarFeatureResponse.toJSON(message.getChargeOnSolarFeatureResponse);
3138
+ if (message.addManagedChargingSiteResponse !== void 0) obj.addManagedChargingSiteResponse = AddManagedChargingSiteResponse.toJSON(message.addManagedChargingSiteResponse);
3139
+ if (message.getMessagesResponse !== void 0) obj.getMessagesResponse = GetMessagesResponse.toJSON(message.getMessagesResponse);
3140
+ if (message.getLocalProfilesResponse !== void 0) obj.getLocalProfilesResponse = GetLocalProfilesResponse.toJSON(message.getLocalProfilesResponse);
3141
+ if (message.keysInfoResponse !== void 0) obj.keysInfoResponse = KeysInfoResponse.toJSON(message.keysInfoResponse);
3142
+ if (message.bandwidthTestResponse !== void 0) obj.bandwidthTestResponse = BandwidthTestResponse.toJSON(message.bandwidthTestResponse);
3011
3143
  return obj;
3012
3144
  },
3013
3145
  create(base) {
@@ -3018,9 +3150,941 @@ const Response = {
3018
3150
  message.actionStatus = object.actionStatus !== void 0 && object.actionStatus !== null ? ActionStatus.fromPartial(object.actionStatus) : void 0;
3019
3151
  message.vehicleData = object.vehicleData !== void 0 && object.vehicleData !== null ? VehicleData.fromPartial(object.vehicleData) : void 0;
3020
3152
  message.getSessionInfoResponse = object.getSessionInfoResponse !== void 0 && object.getSessionInfoResponse !== null ? SessionInfo.fromPartial(object.getSessionInfoResponse) : void 0;
3153
+ message.streamMessage = object.streamMessage !== void 0 && object.streamMessage !== null ? StreamMessage.fromPartial(object.streamMessage) : void 0;
3021
3154
  message.getNearbyChargingSites = object.getNearbyChargingSites !== void 0 && object.getNearbyChargingSites !== null ? NearbyChargingSites.fromPartial(object.getNearbyChargingSites) : void 0;
3155
+ message.vehicleDataSubscriptionResponse = object.vehicleDataSubscriptionResponse !== void 0 && object.vehicleDataSubscriptionResponse !== null ? VehicleDataSubscriptionResponse.fromPartial(object.vehicleDataSubscriptionResponse) : void 0;
3156
+ message.vitalsSubscriptionResponse = object.vitalsSubscriptionResponse !== void 0 && object.vitalsSubscriptionResponse !== null ? VitalsSubscriptionResponse.fromPartial(object.vitalsSubscriptionResponse) : void 0;
3022
3157
  message.ping = object.ping !== void 0 && object.ping !== null ? Ping.fromPartial(object.ping) : void 0;
3158
+ message.piiKeyResponse = object.piiKeyResponse !== void 0 && object.piiKeyResponse !== null ? PiiKeyResponse.fromPartial(object.piiKeyResponse) : void 0;
3159
+ message.pseudonymSyncResponse = object.pseudonymSyncResponse !== void 0 && object.pseudonymSyncResponse !== null ? PseudonymSyncResponse.fromPartial(object.pseudonymSyncResponse) : void 0;
3160
+ message.navigationRouteResponse = object.navigationRouteResponse !== void 0 && object.navigationRouteResponse !== null ? NavigationRouteResponse.fromPartial(object.navigationRouteResponse) : void 0;
3161
+ message.getManagedChargingSitesResponse = object.getManagedChargingSitesResponse !== void 0 && object.getManagedChargingSitesResponse !== null ? GetManagedChargingSitesResponse.fromPartial(object.getManagedChargingSitesResponse) : void 0;
3023
3162
  message.getChargeOnSolarFeatureResponse = object.getChargeOnSolarFeatureResponse !== void 0 && object.getChargeOnSolarFeatureResponse !== null ? GetChargeOnSolarFeatureResponse.fromPartial(object.getChargeOnSolarFeatureResponse) : void 0;
3163
+ message.addManagedChargingSiteResponse = object.addManagedChargingSiteResponse !== void 0 && object.addManagedChargingSiteResponse !== null ? AddManagedChargingSiteResponse.fromPartial(object.addManagedChargingSiteResponse) : void 0;
3164
+ message.getMessagesResponse = object.getMessagesResponse !== void 0 && object.getMessagesResponse !== null ? GetMessagesResponse.fromPartial(object.getMessagesResponse) : void 0;
3165
+ message.getLocalProfilesResponse = object.getLocalProfilesResponse !== void 0 && object.getLocalProfilesResponse !== null ? GetLocalProfilesResponse.fromPartial(object.getLocalProfilesResponse) : void 0;
3166
+ message.keysInfoResponse = object.keysInfoResponse !== void 0 && object.keysInfoResponse !== null ? KeysInfoResponse.fromPartial(object.keysInfoResponse) : void 0;
3167
+ message.bandwidthTestResponse = object.bandwidthTestResponse !== void 0 && object.bandwidthTestResponse !== null ? BandwidthTestResponse.fromPartial(object.bandwidthTestResponse) : void 0;
3168
+ return message;
3169
+ }
3170
+ };
3171
+ function createBaseVehicleDataSubscriptionResponse() {
3172
+ return {
3173
+ unknown: "",
3174
+ piiKeyResponse: void 0
3175
+ };
3176
+ }
3177
+ const VehicleDataSubscriptionResponse = {
3178
+ encode(message, writer = new BinaryWriter()) {
3179
+ if (message.unknown !== "") writer.uint32(26).string(message.unknown);
3180
+ if (message.piiKeyResponse !== void 0) PiiKeyResponse.encode(message.piiKeyResponse, writer.uint32(34).fork()).join();
3181
+ return writer;
3182
+ },
3183
+ decode(input, length) {
3184
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3185
+ const end = length === void 0 ? reader.len : reader.pos + length;
3186
+ const message = createBaseVehicleDataSubscriptionResponse();
3187
+ while (reader.pos < end) {
3188
+ const tag = reader.uint32();
3189
+ switch (tag >>> 3) {
3190
+ case 3:
3191
+ if (tag !== 26) break;
3192
+ message.unknown = reader.string();
3193
+ continue;
3194
+ case 4:
3195
+ if (tag !== 34) break;
3196
+ message.piiKeyResponse = PiiKeyResponse.decode(reader, reader.uint32());
3197
+ continue;
3198
+ }
3199
+ if ((tag & 7) === 4 || tag === 0) break;
3200
+ reader.skip(tag & 7);
3201
+ }
3202
+ return message;
3203
+ },
3204
+ fromJSON(object) {
3205
+ return {
3206
+ unknown: isSet(object.unknown) ? globalThis.String(object.unknown) : "",
3207
+ piiKeyResponse: isSet(object.piiKeyResponse) ? PiiKeyResponse.fromJSON(object.piiKeyResponse) : void 0
3208
+ };
3209
+ },
3210
+ toJSON(message) {
3211
+ const obj = {};
3212
+ if (message.unknown !== void 0) obj.unknown = message.unknown;
3213
+ if (message.piiKeyResponse !== void 0) obj.piiKeyResponse = PiiKeyResponse.toJSON(message.piiKeyResponse);
3214
+ return obj;
3215
+ },
3216
+ create(base) {
3217
+ return VehicleDataSubscriptionResponse.fromPartial(base ?? {});
3218
+ },
3219
+ fromPartial(object) {
3220
+ const message = createBaseVehicleDataSubscriptionResponse();
3221
+ message.unknown = object.unknown ?? "";
3222
+ message.piiKeyResponse = object.piiKeyResponse !== void 0 && object.piiKeyResponse !== null ? PiiKeyResponse.fromPartial(object.piiKeyResponse) : void 0;
3223
+ return message;
3224
+ }
3225
+ };
3226
+ function createBaseVitalsSubscriptionResponse() {
3227
+ return {
3228
+ sessionId: 0,
3229
+ unknown: ""
3230
+ };
3231
+ }
3232
+ const VitalsSubscriptionResponse = {
3233
+ encode(message, writer = new BinaryWriter()) {
3234
+ if (message.sessionId !== 0) writer.uint32(8).int32(message.sessionId);
3235
+ if (message.unknown !== "") writer.uint32(18).string(message.unknown);
3236
+ return writer;
3237
+ },
3238
+ decode(input, length) {
3239
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3240
+ const end = length === void 0 ? reader.len : reader.pos + length;
3241
+ const message = createBaseVitalsSubscriptionResponse();
3242
+ while (reader.pos < end) {
3243
+ const tag = reader.uint32();
3244
+ switch (tag >>> 3) {
3245
+ case 1:
3246
+ if (tag !== 8) break;
3247
+ message.sessionId = reader.int32();
3248
+ continue;
3249
+ case 2:
3250
+ if (tag !== 18) break;
3251
+ message.unknown = reader.string();
3252
+ continue;
3253
+ }
3254
+ if ((tag & 7) === 4 || tag === 0) break;
3255
+ reader.skip(tag & 7);
3256
+ }
3257
+ return message;
3258
+ },
3259
+ fromJSON(object) {
3260
+ return {
3261
+ sessionId: isSet(object.sessionId) ? globalThis.Number(object.sessionId) : 0,
3262
+ unknown: isSet(object.unknown) ? globalThis.String(object.unknown) : ""
3263
+ };
3264
+ },
3265
+ toJSON(message) {
3266
+ const obj = {};
3267
+ if (message.sessionId !== void 0) obj.sessionId = Math.round(message.sessionId);
3268
+ if (message.unknown !== void 0) obj.unknown = message.unknown;
3269
+ return obj;
3270
+ },
3271
+ create(base) {
3272
+ return VitalsSubscriptionResponse.fromPartial(base ?? {});
3273
+ },
3274
+ fromPartial(object) {
3275
+ const message = createBaseVitalsSubscriptionResponse();
3276
+ message.sessionId = object.sessionId ?? 0;
3277
+ message.unknown = object.unknown ?? "";
3278
+ return message;
3279
+ }
3280
+ };
3281
+ function createBasePiiKeyResponse() {
3282
+ return {
3283
+ encryptedPiiKey: /* @__PURE__ */ new Uint8Array(0),
3284
+ piiKeyExpiration: void 0,
3285
+ subscriberPublicKeyExpiration: void 0
3286
+ };
3287
+ }
3288
+ const PiiKeyResponse = {
3289
+ encode(message, writer = new BinaryWriter()) {
3290
+ if (message.encryptedPiiKey.length !== 0) writer.uint32(18).bytes(message.encryptedPiiKey);
3291
+ if (message.piiKeyExpiration !== void 0) Timestamp.encode(toTimestamp(message.piiKeyExpiration), writer.uint32(26).fork()).join();
3292
+ if (message.subscriberPublicKeyExpiration !== void 0) Timestamp.encode(toTimestamp(message.subscriberPublicKeyExpiration), writer.uint32(34).fork()).join();
3293
+ return writer;
3294
+ },
3295
+ decode(input, length) {
3296
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3297
+ const end = length === void 0 ? reader.len : reader.pos + length;
3298
+ const message = createBasePiiKeyResponse();
3299
+ while (reader.pos < end) {
3300
+ const tag = reader.uint32();
3301
+ switch (tag >>> 3) {
3302
+ case 2:
3303
+ if (tag !== 18) break;
3304
+ message.encryptedPiiKey = reader.bytes();
3305
+ continue;
3306
+ case 3:
3307
+ if (tag !== 26) break;
3308
+ message.piiKeyExpiration = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
3309
+ continue;
3310
+ case 4:
3311
+ if (tag !== 34) break;
3312
+ message.subscriberPublicKeyExpiration = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
3313
+ continue;
3314
+ }
3315
+ if ((tag & 7) === 4 || tag === 0) break;
3316
+ reader.skip(tag & 7);
3317
+ }
3318
+ return message;
3319
+ },
3320
+ fromJSON(object) {
3321
+ return {
3322
+ encryptedPiiKey: isSet(object.encryptedPiiKey) ? bytesFromBase64(object.encryptedPiiKey) : /* @__PURE__ */ new Uint8Array(0),
3323
+ piiKeyExpiration: isSet(object.piiKeyExpiration) ? fromJsonTimestamp(object.piiKeyExpiration) : void 0,
3324
+ subscriberPublicKeyExpiration: isSet(object.subscriberPublicKeyExpiration) ? fromJsonTimestamp(object.subscriberPublicKeyExpiration) : void 0
3325
+ };
3326
+ },
3327
+ toJSON(message) {
3328
+ const obj = {};
3329
+ if (message.encryptedPiiKey !== void 0) obj.encryptedPiiKey = base64FromBytes(message.encryptedPiiKey);
3330
+ if (message.piiKeyExpiration !== void 0) obj.piiKeyExpiration = message.piiKeyExpiration.toISOString();
3331
+ if (message.subscriberPublicKeyExpiration !== void 0) obj.subscriberPublicKeyExpiration = message.subscriberPublicKeyExpiration.toISOString();
3332
+ return obj;
3333
+ },
3334
+ create(base) {
3335
+ return PiiKeyResponse.fromPartial(base ?? {});
3336
+ },
3337
+ fromPartial(object) {
3338
+ const message = createBasePiiKeyResponse();
3339
+ message.encryptedPiiKey = object.encryptedPiiKey ?? /* @__PURE__ */ new Uint8Array(0);
3340
+ message.piiKeyExpiration = object.piiKeyExpiration ?? void 0;
3341
+ message.subscriberPublicKeyExpiration = object.subscriberPublicKeyExpiration ?? void 0;
3342
+ return message;
3343
+ }
3344
+ };
3345
+ function createBasePseudonymSyncResponse() {
3346
+ return { unknown: "" };
3347
+ }
3348
+ const PseudonymSyncResponse = {
3349
+ encode(message, writer = new BinaryWriter()) {
3350
+ if (message.unknown !== "") writer.uint32(10).string(message.unknown);
3351
+ return writer;
3352
+ },
3353
+ decode(input, length) {
3354
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3355
+ const end = length === void 0 ? reader.len : reader.pos + length;
3356
+ const message = createBasePseudonymSyncResponse();
3357
+ while (reader.pos < end) {
3358
+ const tag = reader.uint32();
3359
+ switch (tag >>> 3) {
3360
+ case 1:
3361
+ if (tag !== 10) break;
3362
+ message.unknown = reader.string();
3363
+ continue;
3364
+ }
3365
+ if ((tag & 7) === 4 || tag === 0) break;
3366
+ reader.skip(tag & 7);
3367
+ }
3368
+ return message;
3369
+ },
3370
+ fromJSON(object) {
3371
+ return { unknown: isSet(object.unknown) ? globalThis.String(object.unknown) : "" };
3372
+ },
3373
+ toJSON(message) {
3374
+ const obj = {};
3375
+ if (message.unknown !== void 0) obj.unknown = message.unknown;
3376
+ return obj;
3377
+ },
3378
+ create(base) {
3379
+ return PseudonymSyncResponse.fromPartial(base ?? {});
3380
+ },
3381
+ fromPartial(object) {
3382
+ const message = createBasePseudonymSyncResponse();
3383
+ message.unknown = object.unknown ?? "";
3384
+ return message;
3385
+ }
3386
+ };
3387
+ function createBaseNavigationRouteResponse() {
3388
+ return {
3389
+ unknown: "",
3390
+ trafficDetail: []
3391
+ };
3392
+ }
3393
+ const NavigationRouteResponse = {
3394
+ encode(message, writer = new BinaryWriter()) {
3395
+ if (message.unknown !== "") writer.uint32(10).string(message.unknown);
3396
+ for (const v of message.trafficDetail) NavigationRouteResponse_TrafficDetail.encode(v, writer.uint32(18).fork()).join();
3397
+ return writer;
3398
+ },
3399
+ decode(input, length) {
3400
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3401
+ const end = length === void 0 ? reader.len : reader.pos + length;
3402
+ const message = createBaseNavigationRouteResponse();
3403
+ while (reader.pos < end) {
3404
+ const tag = reader.uint32();
3405
+ switch (tag >>> 3) {
3406
+ case 1:
3407
+ if (tag !== 10) break;
3408
+ message.unknown = reader.string();
3409
+ continue;
3410
+ case 2:
3411
+ if (tag !== 18) break;
3412
+ message.trafficDetail.push(NavigationRouteResponse_TrafficDetail.decode(reader, reader.uint32()));
3413
+ continue;
3414
+ }
3415
+ if ((tag & 7) === 4 || tag === 0) break;
3416
+ reader.skip(tag & 7);
3417
+ }
3418
+ return message;
3419
+ },
3420
+ fromJSON(object) {
3421
+ return {
3422
+ unknown: isSet(object.unknown) ? globalThis.String(object.unknown) : "",
3423
+ trafficDetail: globalThis.Array.isArray(object?.trafficDetail) ? object.trafficDetail.map((e) => NavigationRouteResponse_TrafficDetail.fromJSON(e)) : []
3424
+ };
3425
+ },
3426
+ toJSON(message) {
3427
+ const obj = {};
3428
+ if (message.unknown !== void 0) obj.unknown = message.unknown;
3429
+ if (message.trafficDetail?.length) obj.trafficDetail = message.trafficDetail.map((e) => NavigationRouteResponse_TrafficDetail.toJSON(e));
3430
+ return obj;
3431
+ },
3432
+ create(base) {
3433
+ return NavigationRouteResponse.fromPartial(base ?? {});
3434
+ },
3435
+ fromPartial(object) {
3436
+ const message = createBaseNavigationRouteResponse();
3437
+ message.unknown = object.unknown ?? "";
3438
+ message.trafficDetail = object.trafficDetail?.map((e) => NavigationRouteResponse_TrafficDetail.fromPartial(e)) || [];
3439
+ return message;
3440
+ }
3441
+ };
3442
+ function createBaseNavigationRouteResponse_TrafficDetail() {
3443
+ return {
3444
+ offsetToDest: 0,
3445
+ trafficStatus: 0
3446
+ };
3447
+ }
3448
+ const NavigationRouteResponse_TrafficDetail = {
3449
+ encode(message, writer = new BinaryWriter()) {
3450
+ if (message.offsetToDest !== 0) writer.uint32(13).float(message.offsetToDest);
3451
+ if (message.trafficStatus !== 0) writer.uint32(16).int32(message.trafficStatus);
3452
+ return writer;
3453
+ },
3454
+ decode(input, length) {
3455
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3456
+ const end = length === void 0 ? reader.len : reader.pos + length;
3457
+ const message = createBaseNavigationRouteResponse_TrafficDetail();
3458
+ while (reader.pos < end) {
3459
+ const tag = reader.uint32();
3460
+ switch (tag >>> 3) {
3461
+ case 1:
3462
+ if (tag !== 13) break;
3463
+ message.offsetToDest = reader.float();
3464
+ continue;
3465
+ case 2:
3466
+ if (tag !== 16) break;
3467
+ message.trafficStatus = reader.int32();
3468
+ continue;
3469
+ }
3470
+ if ((tag & 7) === 4 || tag === 0) break;
3471
+ reader.skip(tag & 7);
3472
+ }
3473
+ return message;
3474
+ },
3475
+ fromJSON(object) {
3476
+ return {
3477
+ offsetToDest: isSet(object.offsetToDest) ? globalThis.Number(object.offsetToDest) : 0,
3478
+ trafficStatus: isSet(object.trafficStatus) ? navigationRouteResponse_TrafficStatusFromJSON(object.trafficStatus) : 0
3479
+ };
3480
+ },
3481
+ toJSON(message) {
3482
+ const obj = {};
3483
+ if (message.offsetToDest !== void 0) obj.offsetToDest = message.offsetToDest;
3484
+ if (message.trafficStatus !== void 0) obj.trafficStatus = navigationRouteResponse_TrafficStatusToJSON(message.trafficStatus);
3485
+ return obj;
3486
+ },
3487
+ create(base) {
3488
+ return NavigationRouteResponse_TrafficDetail.fromPartial(base ?? {});
3489
+ },
3490
+ fromPartial(object) {
3491
+ const message = createBaseNavigationRouteResponse_TrafficDetail();
3492
+ message.offsetToDest = object.offsetToDest ?? 0;
3493
+ message.trafficStatus = object.trafficStatus ?? 0;
3494
+ return message;
3495
+ }
3496
+ };
3497
+ function createBaseGetManagedChargingSitesResponse() {
3498
+ return { sites: [] };
3499
+ }
3500
+ const GetManagedChargingSitesResponse = {
3501
+ encode(message, writer = new BinaryWriter()) {
3502
+ for (const v of message.sites) ManagedChargingSite.encode(v, writer.uint32(10).fork()).join();
3503
+ return writer;
3504
+ },
3505
+ decode(input, length) {
3506
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3507
+ const end = length === void 0 ? reader.len : reader.pos + length;
3508
+ const message = createBaseGetManagedChargingSitesResponse();
3509
+ while (reader.pos < end) {
3510
+ const tag = reader.uint32();
3511
+ switch (tag >>> 3) {
3512
+ case 1:
3513
+ if (tag !== 10) break;
3514
+ message.sites.push(ManagedChargingSite.decode(reader, reader.uint32()));
3515
+ continue;
3516
+ }
3517
+ if ((tag & 7) === 4 || tag === 0) break;
3518
+ reader.skip(tag & 7);
3519
+ }
3520
+ return message;
3521
+ },
3522
+ fromJSON(object) {
3523
+ return { sites: globalThis.Array.isArray(object?.sites) ? object.sites.map((e) => ManagedChargingSite.fromJSON(e)) : [] };
3524
+ },
3525
+ toJSON(message) {
3526
+ const obj = {};
3527
+ if (message.sites?.length) obj.sites = message.sites.map((e) => ManagedChargingSite.toJSON(e));
3528
+ return obj;
3529
+ },
3530
+ create(base) {
3531
+ return GetManagedChargingSitesResponse.fromPartial(base ?? {});
3532
+ },
3533
+ fromPartial(object) {
3534
+ const message = createBaseGetManagedChargingSitesResponse();
3535
+ message.sites = object.sites?.map((e) => ManagedChargingSite.fromPartial(e)) || [];
3536
+ return message;
3537
+ }
3538
+ };
3539
+ function createBaseManagedChargingSiteAddedOrUpdated() {
3540
+ return {};
3541
+ }
3542
+ const ManagedChargingSiteAddedOrUpdated = {
3543
+ encode(_, writer = new BinaryWriter()) {
3544
+ return writer;
3545
+ },
3546
+ decode(input, length) {
3547
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3548
+ const end = length === void 0 ? reader.len : reader.pos + length;
3549
+ const message = createBaseManagedChargingSiteAddedOrUpdated();
3550
+ while (reader.pos < end) {
3551
+ const tag = reader.uint32();
3552
+ switch (tag >>> 3) {}
3553
+ if ((tag & 7) === 4 || tag === 0) break;
3554
+ reader.skip(tag & 7);
3555
+ }
3556
+ return message;
3557
+ },
3558
+ fromJSON(_) {
3559
+ return {};
3560
+ },
3561
+ toJSON(_) {
3562
+ return {};
3563
+ },
3564
+ create(base) {
3565
+ return ManagedChargingSiteAddedOrUpdated.fromPartial(base ?? {});
3566
+ },
3567
+ fromPartial(_) {
3568
+ return createBaseManagedChargingSiteAddedOrUpdated();
3569
+ }
3570
+ };
3571
+ function createBaseExistingManagedChargingSiteNearby() {
3572
+ return {};
3573
+ }
3574
+ const ExistingManagedChargingSiteNearby = {
3575
+ encode(_, writer = new BinaryWriter()) {
3576
+ return writer;
3577
+ },
3578
+ decode(input, length) {
3579
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3580
+ const end = length === void 0 ? reader.len : reader.pos + length;
3581
+ const message = createBaseExistingManagedChargingSiteNearby();
3582
+ while (reader.pos < end) {
3583
+ const tag = reader.uint32();
3584
+ switch (tag >>> 3) {}
3585
+ if ((tag & 7) === 4 || tag === 0) break;
3586
+ reader.skip(tag & 7);
3587
+ }
3588
+ return message;
3589
+ },
3590
+ fromJSON(_) {
3591
+ return {};
3592
+ },
3593
+ toJSON(_) {
3594
+ return {};
3595
+ },
3596
+ create(base) {
3597
+ return ExistingManagedChargingSiteNearby.fromPartial(base ?? {});
3598
+ },
3599
+ fromPartial(_) {
3600
+ return createBaseExistingManagedChargingSiteNearby();
3601
+ }
3602
+ };
3603
+ function createBaseAddManagedChargingSiteResponse() {
3604
+ return {
3605
+ addedOrUpdated: void 0,
3606
+ existingSiteNearby: void 0
3607
+ };
3608
+ }
3609
+ const AddManagedChargingSiteResponse = {
3610
+ encode(message, writer = new BinaryWriter()) {
3611
+ if (message.addedOrUpdated !== void 0) ManagedChargingSiteAddedOrUpdated.encode(message.addedOrUpdated, writer.uint32(10).fork()).join();
3612
+ if (message.existingSiteNearby !== void 0) ExistingManagedChargingSiteNearby.encode(message.existingSiteNearby, writer.uint32(18).fork()).join();
3613
+ return writer;
3614
+ },
3615
+ decode(input, length) {
3616
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3617
+ const end = length === void 0 ? reader.len : reader.pos + length;
3618
+ const message = createBaseAddManagedChargingSiteResponse();
3619
+ while (reader.pos < end) {
3620
+ const tag = reader.uint32();
3621
+ switch (tag >>> 3) {
3622
+ case 1:
3623
+ if (tag !== 10) break;
3624
+ message.addedOrUpdated = ManagedChargingSiteAddedOrUpdated.decode(reader, reader.uint32());
3625
+ continue;
3626
+ case 2:
3627
+ if (tag !== 18) break;
3628
+ message.existingSiteNearby = ExistingManagedChargingSiteNearby.decode(reader, reader.uint32());
3629
+ continue;
3630
+ }
3631
+ if ((tag & 7) === 4 || tag === 0) break;
3632
+ reader.skip(tag & 7);
3633
+ }
3634
+ return message;
3635
+ },
3636
+ fromJSON(object) {
3637
+ return {
3638
+ addedOrUpdated: isSet(object.addedOrUpdated) ? ManagedChargingSiteAddedOrUpdated.fromJSON(object.addedOrUpdated) : void 0,
3639
+ existingSiteNearby: isSet(object.existingSiteNearby) ? ExistingManagedChargingSiteNearby.fromJSON(object.existingSiteNearby) : void 0
3640
+ };
3641
+ },
3642
+ toJSON(message) {
3643
+ const obj = {};
3644
+ if (message.addedOrUpdated !== void 0) obj.addedOrUpdated = ManagedChargingSiteAddedOrUpdated.toJSON(message.addedOrUpdated);
3645
+ if (message.existingSiteNearby !== void 0) obj.existingSiteNearby = ExistingManagedChargingSiteNearby.toJSON(message.existingSiteNearby);
3646
+ return obj;
3647
+ },
3648
+ create(base) {
3649
+ return AddManagedChargingSiteResponse.fromPartial(base ?? {});
3650
+ },
3651
+ fromPartial(object) {
3652
+ const message = createBaseAddManagedChargingSiteResponse();
3653
+ message.addedOrUpdated = object.addedOrUpdated !== void 0 && object.addedOrUpdated !== null ? ManagedChargingSiteAddedOrUpdated.fromPartial(object.addedOrUpdated) : void 0;
3654
+ message.existingSiteNearby = object.existingSiteNearby !== void 0 && object.existingSiteNearby !== null ? ExistingManagedChargingSiteNearby.fromPartial(object.existingSiteNearby) : void 0;
3655
+ return message;
3656
+ }
3657
+ };
3658
+ function createBaseRequestTeslaAuthCommand() {
3659
+ return {
3660
+ clientId: "",
3661
+ unknown: "",
3662
+ returnScopedToken: false
3663
+ };
3664
+ }
3665
+ const RequestTeslaAuthCommand = {
3666
+ encode(message, writer = new BinaryWriter()) {
3667
+ if (message.clientId !== "") writer.uint32(10).string(message.clientId);
3668
+ if (message.unknown !== "") writer.uint32(18).string(message.unknown);
3669
+ if (message.returnScopedToken !== false) writer.uint32(24).bool(message.returnScopedToken);
3670
+ return writer;
3671
+ },
3672
+ decode(input, length) {
3673
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3674
+ const end = length === void 0 ? reader.len : reader.pos + length;
3675
+ const message = createBaseRequestTeslaAuthCommand();
3676
+ while (reader.pos < end) {
3677
+ const tag = reader.uint32();
3678
+ switch (tag >>> 3) {
3679
+ case 1:
3680
+ if (tag !== 10) break;
3681
+ message.clientId = reader.string();
3682
+ continue;
3683
+ case 2:
3684
+ if (tag !== 18) break;
3685
+ message.unknown = reader.string();
3686
+ continue;
3687
+ case 3:
3688
+ if (tag !== 24) break;
3689
+ message.returnScopedToken = reader.bool();
3690
+ continue;
3691
+ }
3692
+ if ((tag & 7) === 4 || tag === 0) break;
3693
+ reader.skip(tag & 7);
3694
+ }
3695
+ return message;
3696
+ },
3697
+ fromJSON(object) {
3698
+ return {
3699
+ clientId: isSet(object.clientId) ? globalThis.String(object.clientId) : "",
3700
+ unknown: isSet(object.unknown) ? globalThis.String(object.unknown) : "",
3701
+ returnScopedToken: isSet(object.returnScopedToken) ? globalThis.Boolean(object.returnScopedToken) : false
3702
+ };
3703
+ },
3704
+ toJSON(message) {
3705
+ const obj = {};
3706
+ if (message.clientId !== void 0) obj.clientId = message.clientId;
3707
+ if (message.unknown !== void 0) obj.unknown = message.unknown;
3708
+ if (message.returnScopedToken !== void 0) obj.returnScopedToken = message.returnScopedToken;
3709
+ return obj;
3710
+ },
3711
+ create(base) {
3712
+ return RequestTeslaAuthCommand.fromPartial(base ?? {});
3713
+ },
3714
+ fromPartial(object) {
3715
+ const message = createBaseRequestTeslaAuthCommand();
3716
+ message.clientId = object.clientId ?? "";
3717
+ message.unknown = object.unknown ?? "";
3718
+ message.returnScopedToken = object.returnScopedToken ?? false;
3719
+ return message;
3720
+ }
3721
+ };
3722
+ function createBaseMobileAppMessage() {
3723
+ return { requestTeslaAuthCommand: void 0 };
3724
+ }
3725
+ const MobileAppMessage = {
3726
+ encode(message, writer = new BinaryWriter()) {
3727
+ if (message.requestTeslaAuthCommand !== void 0) RequestTeslaAuthCommand.encode(message.requestTeslaAuthCommand, writer.uint32(10).fork()).join();
3728
+ return writer;
3729
+ },
3730
+ decode(input, length) {
3731
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3732
+ const end = length === void 0 ? reader.len : reader.pos + length;
3733
+ const message = createBaseMobileAppMessage();
3734
+ while (reader.pos < end) {
3735
+ const tag = reader.uint32();
3736
+ switch (tag >>> 3) {
3737
+ case 1:
3738
+ if (tag !== 10) break;
3739
+ message.requestTeslaAuthCommand = RequestTeslaAuthCommand.decode(reader, reader.uint32());
3740
+ continue;
3741
+ }
3742
+ if ((tag & 7) === 4 || tag === 0) break;
3743
+ reader.skip(tag & 7);
3744
+ }
3745
+ return message;
3746
+ },
3747
+ fromJSON(object) {
3748
+ return { requestTeslaAuthCommand: isSet(object.requestTeslaAuthCommand) ? RequestTeslaAuthCommand.fromJSON(object.requestTeslaAuthCommand) : void 0 };
3749
+ },
3750
+ toJSON(message) {
3751
+ const obj = {};
3752
+ if (message.requestTeslaAuthCommand !== void 0) obj.requestTeslaAuthCommand = RequestTeslaAuthCommand.toJSON(message.requestTeslaAuthCommand);
3753
+ return obj;
3754
+ },
3755
+ create(base) {
3756
+ return MobileAppMessage.fromPartial(base ?? {});
3757
+ },
3758
+ fromPartial(object) {
3759
+ const message = createBaseMobileAppMessage();
3760
+ message.requestTeslaAuthCommand = object.requestTeslaAuthCommand !== void 0 && object.requestTeslaAuthCommand !== null ? RequestTeslaAuthCommand.fromPartial(object.requestTeslaAuthCommand) : void 0;
3761
+ return message;
3762
+ }
3763
+ };
3764
+ function createBaseGetMessagesResponse() {
3765
+ return { mobileAppMessages: [] };
3766
+ }
3767
+ const GetMessagesResponse = {
3768
+ encode(message, writer = new BinaryWriter()) {
3769
+ for (const v of message.mobileAppMessages) MobileAppMessage.encode(v, writer.uint32(10).fork()).join();
3770
+ return writer;
3771
+ },
3772
+ decode(input, length) {
3773
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3774
+ const end = length === void 0 ? reader.len : reader.pos + length;
3775
+ const message = createBaseGetMessagesResponse();
3776
+ while (reader.pos < end) {
3777
+ const tag = reader.uint32();
3778
+ switch (tag >>> 3) {
3779
+ case 1:
3780
+ if (tag !== 10) break;
3781
+ message.mobileAppMessages.push(MobileAppMessage.decode(reader, reader.uint32()));
3782
+ continue;
3783
+ }
3784
+ if ((tag & 7) === 4 || tag === 0) break;
3785
+ reader.skip(tag & 7);
3786
+ }
3787
+ return message;
3788
+ },
3789
+ fromJSON(object) {
3790
+ return { mobileAppMessages: globalThis.Array.isArray(object?.mobileAppMessages) ? object.mobileAppMessages.map((e) => MobileAppMessage.fromJSON(e)) : [] };
3791
+ },
3792
+ toJSON(message) {
3793
+ const obj = {};
3794
+ if (message.mobileAppMessages?.length) obj.mobileAppMessages = message.mobileAppMessages.map((e) => MobileAppMessage.toJSON(e));
3795
+ return obj;
3796
+ },
3797
+ create(base) {
3798
+ return GetMessagesResponse.fromPartial(base ?? {});
3799
+ },
3800
+ fromPartial(object) {
3801
+ const message = createBaseGetMessagesResponse();
3802
+ message.mobileAppMessages = object.mobileAppMessages?.map((e) => MobileAppMessage.fromPartial(e)) || [];
3803
+ return message;
3804
+ }
3805
+ };
3806
+ function createBaseProfile() {
3807
+ return {
3808
+ unknown1: "",
3809
+ unknown2: ""
3810
+ };
3811
+ }
3812
+ const Profile = {
3813
+ encode(message, writer = new BinaryWriter()) {
3814
+ if (message.unknown1 !== "") writer.uint32(10).string(message.unknown1);
3815
+ if (message.unknown2 !== "") writer.uint32(18).string(message.unknown2);
3816
+ return writer;
3817
+ },
3818
+ decode(input, length) {
3819
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3820
+ const end = length === void 0 ? reader.len : reader.pos + length;
3821
+ const message = createBaseProfile();
3822
+ while (reader.pos < end) {
3823
+ const tag = reader.uint32();
3824
+ switch (tag >>> 3) {
3825
+ case 1:
3826
+ if (tag !== 10) break;
3827
+ message.unknown1 = reader.string();
3828
+ continue;
3829
+ case 2:
3830
+ if (tag !== 18) break;
3831
+ message.unknown2 = reader.string();
3832
+ continue;
3833
+ }
3834
+ if ((tag & 7) === 4 || tag === 0) break;
3835
+ reader.skip(tag & 7);
3836
+ }
3837
+ return message;
3838
+ },
3839
+ fromJSON(object) {
3840
+ return {
3841
+ unknown1: isSet(object.unknown1) ? globalThis.String(object.unknown1) : "",
3842
+ unknown2: isSet(object.unknown2) ? globalThis.String(object.unknown2) : ""
3843
+ };
3844
+ },
3845
+ toJSON(message) {
3846
+ const obj = {};
3847
+ if (message.unknown1 !== void 0) obj.unknown1 = message.unknown1;
3848
+ if (message.unknown2 !== void 0) obj.unknown2 = message.unknown2;
3849
+ return obj;
3850
+ },
3851
+ create(base) {
3852
+ return Profile.fromPartial(base ?? {});
3853
+ },
3854
+ fromPartial(object) {
3855
+ const message = createBaseProfile();
3856
+ message.unknown1 = object.unknown1 ?? "";
3857
+ message.unknown2 = object.unknown2 ?? "";
3858
+ return message;
3859
+ }
3860
+ };
3861
+ function createBaseGetLocalProfilesResponse() {
3862
+ return { profiles: [] };
3863
+ }
3864
+ const GetLocalProfilesResponse = {
3865
+ encode(message, writer = new BinaryWriter()) {
3866
+ for (const v of message.profiles) Profile.encode(v, writer.uint32(10).fork()).join();
3867
+ return writer;
3868
+ },
3869
+ decode(input, length) {
3870
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3871
+ const end = length === void 0 ? reader.len : reader.pos + length;
3872
+ const message = createBaseGetLocalProfilesResponse();
3873
+ while (reader.pos < end) {
3874
+ const tag = reader.uint32();
3875
+ switch (tag >>> 3) {
3876
+ case 1:
3877
+ if (tag !== 10) break;
3878
+ message.profiles.push(Profile.decode(reader, reader.uint32()));
3879
+ continue;
3880
+ }
3881
+ if ((tag & 7) === 4 || tag === 0) break;
3882
+ reader.skip(tag & 7);
3883
+ }
3884
+ return message;
3885
+ },
3886
+ fromJSON(object) {
3887
+ return { profiles: globalThis.Array.isArray(object?.profiles) ? object.profiles.map((e) => Profile.fromJSON(e)) : [] };
3888
+ },
3889
+ toJSON(message) {
3890
+ const obj = {};
3891
+ if (message.profiles?.length) obj.profiles = message.profiles.map((e) => Profile.toJSON(e));
3892
+ return obj;
3893
+ },
3894
+ create(base) {
3895
+ return GetLocalProfilesResponse.fromPartial(base ?? {});
3896
+ },
3897
+ fromPartial(object) {
3898
+ const message = createBaseGetLocalProfilesResponse();
3899
+ message.profiles = object.profiles?.map((e) => Profile.fromPartial(e)) || [];
3900
+ return message;
3901
+ }
3902
+ };
3903
+ function createBaseKeyInfo() {
3904
+ return {
3905
+ unknown1: "",
3906
+ unknown2: "",
3907
+ publicKey: /* @__PURE__ */ new Uint8Array(0),
3908
+ lastSeen: void 0,
3909
+ role: 0,
3910
+ formFactor: 0
3911
+ };
3912
+ }
3913
+ const KeyInfo = {
3914
+ encode(message, writer = new BinaryWriter()) {
3915
+ if (message.unknown1 !== "") writer.uint32(10).string(message.unknown1);
3916
+ if (message.unknown2 !== "") writer.uint32(18).string(message.unknown2);
3917
+ if (message.publicKey.length !== 0) writer.uint32(26).bytes(message.publicKey);
3918
+ if (message.lastSeen !== void 0) Timestamp.encode(toTimestamp(message.lastSeen), writer.uint32(34).fork()).join();
3919
+ if (message.role !== 0) writer.uint32(40).int32(message.role);
3920
+ if (message.formFactor !== 0) writer.uint32(48).int32(message.formFactor);
3921
+ return writer;
3922
+ },
3923
+ decode(input, length) {
3924
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3925
+ const end = length === void 0 ? reader.len : reader.pos + length;
3926
+ const message = createBaseKeyInfo();
3927
+ while (reader.pos < end) {
3928
+ const tag = reader.uint32();
3929
+ switch (tag >>> 3) {
3930
+ case 1:
3931
+ if (tag !== 10) break;
3932
+ message.unknown1 = reader.string();
3933
+ continue;
3934
+ case 2:
3935
+ if (tag !== 18) break;
3936
+ message.unknown2 = reader.string();
3937
+ continue;
3938
+ case 3:
3939
+ if (tag !== 26) break;
3940
+ message.publicKey = reader.bytes();
3941
+ continue;
3942
+ case 4:
3943
+ if (tag !== 34) break;
3944
+ message.lastSeen = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
3945
+ continue;
3946
+ case 5:
3947
+ if (tag !== 40) break;
3948
+ message.role = reader.int32();
3949
+ continue;
3950
+ case 6:
3951
+ if (tag !== 48) break;
3952
+ message.formFactor = reader.int32();
3953
+ continue;
3954
+ }
3955
+ if ((tag & 7) === 4 || tag === 0) break;
3956
+ reader.skip(tag & 7);
3957
+ }
3958
+ return message;
3959
+ },
3960
+ fromJSON(object) {
3961
+ return {
3962
+ unknown1: isSet(object.unknown1) ? globalThis.String(object.unknown1) : "",
3963
+ unknown2: isSet(object.unknown2) ? globalThis.String(object.unknown2) : "",
3964
+ publicKey: isSet(object.publicKey) ? bytesFromBase64(object.publicKey) : /* @__PURE__ */ new Uint8Array(0),
3965
+ lastSeen: isSet(object.lastSeen) ? fromJsonTimestamp(object.lastSeen) : void 0,
3966
+ role: isSet(object.role) ? roleFromJSON(object.role) : 0,
3967
+ formFactor: isSet(object.formFactor) ? keyFormFactorFromJSON(object.formFactor) : 0
3968
+ };
3969
+ },
3970
+ toJSON(message) {
3971
+ const obj = {};
3972
+ if (message.unknown1 !== void 0) obj.unknown1 = message.unknown1;
3973
+ if (message.unknown2 !== void 0) obj.unknown2 = message.unknown2;
3974
+ if (message.publicKey !== void 0) obj.publicKey = base64FromBytes(message.publicKey);
3975
+ if (message.lastSeen !== void 0) obj.lastSeen = message.lastSeen.toISOString();
3976
+ if (message.role !== void 0) obj.role = roleToJSON(message.role);
3977
+ if (message.formFactor !== void 0) obj.formFactor = keyFormFactorToJSON(message.formFactor);
3978
+ return obj;
3979
+ },
3980
+ create(base) {
3981
+ return KeyInfo.fromPartial(base ?? {});
3982
+ },
3983
+ fromPartial(object) {
3984
+ const message = createBaseKeyInfo();
3985
+ message.unknown1 = object.unknown1 ?? "";
3986
+ message.unknown2 = object.unknown2 ?? "";
3987
+ message.publicKey = object.publicKey ?? /* @__PURE__ */ new Uint8Array(0);
3988
+ message.lastSeen = object.lastSeen ?? void 0;
3989
+ message.role = object.role ?? 0;
3990
+ message.formFactor = object.formFactor ?? 0;
3991
+ return message;
3992
+ }
3993
+ };
3994
+ function createBaseKeysInfoResponse() {
3995
+ return { keysInfo: [] };
3996
+ }
3997
+ const KeysInfoResponse = {
3998
+ encode(message, writer = new BinaryWriter()) {
3999
+ for (const v of message.keysInfo) KeyInfo.encode(v, writer.uint32(10).fork()).join();
4000
+ return writer;
4001
+ },
4002
+ decode(input, length) {
4003
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
4004
+ const end = length === void 0 ? reader.len : reader.pos + length;
4005
+ const message = createBaseKeysInfoResponse();
4006
+ while (reader.pos < end) {
4007
+ const tag = reader.uint32();
4008
+ switch (tag >>> 3) {
4009
+ case 1:
4010
+ if (tag !== 10) break;
4011
+ message.keysInfo.push(KeyInfo.decode(reader, reader.uint32()));
4012
+ continue;
4013
+ }
4014
+ if ((tag & 7) === 4 || tag === 0) break;
4015
+ reader.skip(tag & 7);
4016
+ }
4017
+ return message;
4018
+ },
4019
+ fromJSON(object) {
4020
+ return { keysInfo: globalThis.Array.isArray(object?.keysInfo) ? object.keysInfo.map((e) => KeyInfo.fromJSON(e)) : [] };
4021
+ },
4022
+ toJSON(message) {
4023
+ const obj = {};
4024
+ if (message.keysInfo?.length) obj.keysInfo = message.keysInfo.map((e) => KeyInfo.toJSON(e));
4025
+ return obj;
4026
+ },
4027
+ create(base) {
4028
+ return KeysInfoResponse.fromPartial(base ?? {});
4029
+ },
4030
+ fromPartial(object) {
4031
+ const message = createBaseKeysInfoResponse();
4032
+ message.keysInfo = object.keysInfo?.map((e) => KeyInfo.fromPartial(e)) || [];
4033
+ return message;
4034
+ }
4035
+ };
4036
+ function createBaseBandwidthTestResponse() {
4037
+ return {
4038
+ data: /* @__PURE__ */ new Uint8Array(0),
4039
+ requestedSize: 0
4040
+ };
4041
+ }
4042
+ const BandwidthTestResponse = {
4043
+ encode(message, writer = new BinaryWriter()) {
4044
+ if (message.data.length !== 0) writer.uint32(10).bytes(message.data);
4045
+ if (message.requestedSize !== 0) writer.uint32(16).uint32(message.requestedSize);
4046
+ return writer;
4047
+ },
4048
+ decode(input, length) {
4049
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
4050
+ const end = length === void 0 ? reader.len : reader.pos + length;
4051
+ const message = createBaseBandwidthTestResponse();
4052
+ while (reader.pos < end) {
4053
+ const tag = reader.uint32();
4054
+ switch (tag >>> 3) {
4055
+ case 1:
4056
+ if (tag !== 10) break;
4057
+ message.data = reader.bytes();
4058
+ continue;
4059
+ case 2:
4060
+ if (tag !== 16) break;
4061
+ message.requestedSize = reader.uint32();
4062
+ continue;
4063
+ }
4064
+ if ((tag & 7) === 4 || tag === 0) break;
4065
+ reader.skip(tag & 7);
4066
+ }
4067
+ return message;
4068
+ },
4069
+ fromJSON(object) {
4070
+ return {
4071
+ data: isSet(object.data) ? bytesFromBase64(object.data) : /* @__PURE__ */ new Uint8Array(0),
4072
+ requestedSize: isSet(object.requestedSize) ? globalThis.Number(object.requestedSize) : 0
4073
+ };
4074
+ },
4075
+ toJSON(message) {
4076
+ const obj = {};
4077
+ if (message.data !== void 0) obj.data = base64FromBytes(message.data);
4078
+ if (message.requestedSize !== void 0) obj.requestedSize = Math.round(message.requestedSize);
4079
+ return obj;
4080
+ },
4081
+ create(base) {
4082
+ return BandwidthTestResponse.fromPartial(base ?? {});
4083
+ },
4084
+ fromPartial(object) {
4085
+ const message = createBaseBandwidthTestResponse();
4086
+ message.data = object.data ?? /* @__PURE__ */ new Uint8Array(0);
4087
+ message.requestedSize = object.requestedSize ?? 0;
3024
4088
  return message;
3025
4089
  }
3026
4090
  };
@@ -10928,4 +11992,4 @@ function isSet(value) {
10928
11992
  return value !== null && value !== void 0;
10929
11993
  }
10930
11994
  //#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 };
11995
+ 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, 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 };