@teslemetry/tesla-protocol 0.2.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";
@@ -2731,179 +2767,1248 @@ const GetLocationState = {
2731
2767
  const message = createBaseGetLocationState();
2732
2768
  while (reader.pos < end) {
2733
2769
  const tag = reader.uint32();
2734
- switch (tag >>> 3) {}
2770
+ switch (tag >>> 3) {}
2771
+ if ((tag & 7) === 4 || tag === 0) break;
2772
+ reader.skip(tag & 7);
2773
+ }
2774
+ return message;
2775
+ },
2776
+ fromJSON(_) {
2777
+ return {};
2778
+ },
2779
+ toJSON(_) {
2780
+ return {};
2781
+ },
2782
+ create(base) {
2783
+ return GetLocationState.fromPartial(base ?? {});
2784
+ },
2785
+ fromPartial(_) {
2786
+ return createBaseGetLocationState();
2787
+ }
2788
+ };
2789
+ function createBaseGetClosuresState() {
2790
+ return {};
2791
+ }
2792
+ const GetClosuresState = {
2793
+ encode(_, writer = new BinaryWriter()) {
2794
+ return writer;
2795
+ },
2796
+ decode(input, length) {
2797
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2798
+ const end = length === void 0 ? reader.len : reader.pos + length;
2799
+ const message = createBaseGetClosuresState();
2800
+ while (reader.pos < end) {
2801
+ const tag = reader.uint32();
2802
+ switch (tag >>> 3) {}
2803
+ if ((tag & 7) === 4 || tag === 0) break;
2804
+ reader.skip(tag & 7);
2805
+ }
2806
+ return message;
2807
+ },
2808
+ fromJSON(_) {
2809
+ return {};
2810
+ },
2811
+ toJSON(_) {
2812
+ return {};
2813
+ },
2814
+ create(base) {
2815
+ return GetClosuresState.fromPartial(base ?? {});
2816
+ },
2817
+ fromPartial(_) {
2818
+ return createBaseGetClosuresState();
2819
+ }
2820
+ };
2821
+ function createBaseGetChargeScheduleState() {
2822
+ return {};
2823
+ }
2824
+ const GetChargeScheduleState = {
2825
+ encode(_, writer = new BinaryWriter()) {
2826
+ return writer;
2827
+ },
2828
+ decode(input, length) {
2829
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2830
+ const end = length === void 0 ? reader.len : reader.pos + length;
2831
+ const message = createBaseGetChargeScheduleState();
2832
+ while (reader.pos < end) {
2833
+ const tag = reader.uint32();
2834
+ switch (tag >>> 3) {}
2835
+ if ((tag & 7) === 4 || tag === 0) break;
2836
+ reader.skip(tag & 7);
2837
+ }
2838
+ return message;
2839
+ },
2840
+ fromJSON(_) {
2841
+ return {};
2842
+ },
2843
+ toJSON(_) {
2844
+ return {};
2845
+ },
2846
+ create(base) {
2847
+ return GetChargeScheduleState.fromPartial(base ?? {});
2848
+ },
2849
+ fromPartial(_) {
2850
+ return createBaseGetChargeScheduleState();
2851
+ }
2852
+ };
2853
+ function createBaseGetPreconditioningScheduleState() {
2854
+ return {};
2855
+ }
2856
+ const GetPreconditioningScheduleState = {
2857
+ encode(_, writer = new BinaryWriter()) {
2858
+ return writer;
2859
+ },
2860
+ decode(input, length) {
2861
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2862
+ const end = length === void 0 ? reader.len : reader.pos + length;
2863
+ const message = createBaseGetPreconditioningScheduleState();
2864
+ while (reader.pos < end) {
2865
+ const tag = reader.uint32();
2866
+ switch (tag >>> 3) {}
2867
+ if ((tag & 7) === 4 || tag === 0) break;
2868
+ reader.skip(tag & 7);
2869
+ }
2870
+ return message;
2871
+ },
2872
+ fromJSON(_) {
2873
+ return {};
2874
+ },
2875
+ toJSON(_) {
2876
+ return {};
2877
+ },
2878
+ create(base) {
2879
+ return GetPreconditioningScheduleState.fromPartial(base ?? {});
2880
+ },
2881
+ fromPartial(_) {
2882
+ return createBaseGetPreconditioningScheduleState();
2883
+ }
2884
+ };
2885
+ function createBaseGetParentalControlsState() {
2886
+ return {};
2887
+ }
2888
+ const GetParentalControlsState = {
2889
+ encode(_, writer = new BinaryWriter()) {
2890
+ return writer;
2891
+ },
2892
+ decode(input, length) {
2893
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2894
+ const end = length === void 0 ? reader.len : reader.pos + length;
2895
+ const message = createBaseGetParentalControlsState();
2896
+ while (reader.pos < end) {
2897
+ const tag = reader.uint32();
2898
+ switch (tag >>> 3) {}
2899
+ if ((tag & 7) === 4 || tag === 0) break;
2900
+ reader.skip(tag & 7);
2901
+ }
2902
+ return message;
2903
+ },
2904
+ fromJSON(_) {
2905
+ return {};
2906
+ },
2907
+ toJSON(_) {
2908
+ return {};
2909
+ },
2910
+ create(base) {
2911
+ return GetParentalControlsState.fromPartial(base ?? {});
2912
+ },
2913
+ fromPartial(_) {
2914
+ return createBaseGetParentalControlsState();
2915
+ }
2916
+ };
2917
+ function createBaseEraseUserDataAction() {
2918
+ return {
2919
+ reason: "",
2920
+ triggerOnPark: false
2921
+ };
2922
+ }
2923
+ const EraseUserDataAction = {
2924
+ encode(message, writer = new BinaryWriter()) {
2925
+ if (message.reason !== "") writer.uint32(10).string(message.reason);
2926
+ if (message.triggerOnPark !== false) writer.uint32(16).bool(message.triggerOnPark);
2927
+ return writer;
2928
+ },
2929
+ decode(input, length) {
2930
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2931
+ const end = length === void 0 ? reader.len : reader.pos + length;
2932
+ const message = createBaseEraseUserDataAction();
2933
+ while (reader.pos < end) {
2934
+ const tag = reader.uint32();
2935
+ switch (tag >>> 3) {
2936
+ case 1:
2937
+ if (tag !== 10) break;
2938
+ message.reason = reader.string();
2939
+ continue;
2940
+ case 2:
2941
+ if (tag !== 16) break;
2942
+ message.triggerOnPark = reader.bool();
2943
+ continue;
2944
+ }
2945
+ if ((tag & 7) === 4 || tag === 0) break;
2946
+ reader.skip(tag & 7);
2947
+ }
2948
+ return message;
2949
+ },
2950
+ fromJSON(object) {
2951
+ return {
2952
+ reason: isSet(object.reason) ? globalThis.String(object.reason) : "",
2953
+ triggerOnPark: isSet(object.triggerOnPark) ? globalThis.Boolean(object.triggerOnPark) : false
2954
+ };
2955
+ },
2956
+ toJSON(message) {
2957
+ const obj = {};
2958
+ if (message.reason !== void 0) obj.reason = message.reason;
2959
+ if (message.triggerOnPark !== void 0) obj.triggerOnPark = message.triggerOnPark;
2960
+ return obj;
2961
+ },
2962
+ create(base) {
2963
+ return EraseUserDataAction.fromPartial(base ?? {});
2964
+ },
2965
+ fromPartial(object) {
2966
+ const message = createBaseEraseUserDataAction();
2967
+ message.reason = object.reason ?? "";
2968
+ message.triggerOnPark = object.triggerOnPark ?? false;
2969
+ return message;
2970
+ }
2971
+ };
2972
+ function createBaseResponse() {
2973
+ return {
2974
+ actionStatus: void 0,
2975
+ vehicleData: void 0,
2976
+ getSessionInfoResponse: void 0,
2977
+ streamMessage: void 0,
2978
+ getNearbyChargingSites: void 0,
2979
+ vehicleDataSubscriptionResponse: void 0,
2980
+ vitalsSubscriptionResponse: void 0,
2981
+ ping: 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
2992
+ };
2993
+ }
2994
+ const Response = {
2995
+ encode(message, writer = new BinaryWriter()) {
2996
+ if (message.actionStatus !== void 0) ActionStatus.encode(message.actionStatus, writer.uint32(10).fork()).join();
2997
+ if (message.vehicleData !== void 0) VehicleData.encode(message.vehicleData, writer.uint32(18).fork()).join();
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();
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();
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();
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();
3014
+ return writer;
3015
+ },
3016
+ decode(input, length) {
3017
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3018
+ const end = length === void 0 ? reader.len : reader.pos + length;
3019
+ const message = createBaseResponse();
3020
+ while (reader.pos < end) {
3021
+ const tag = reader.uint32();
3022
+ switch (tag >>> 3) {
3023
+ case 1:
3024
+ if (tag !== 10) break;
3025
+ message.actionStatus = ActionStatus.decode(reader, reader.uint32());
3026
+ continue;
3027
+ case 2:
3028
+ if (tag !== 18) break;
3029
+ message.vehicleData = VehicleData.decode(reader, reader.uint32());
3030
+ continue;
3031
+ case 3:
3032
+ if (tag !== 26) break;
3033
+ message.getSessionInfoResponse = SessionInfo.decode(reader, reader.uint32());
3034
+ continue;
3035
+ case 4:
3036
+ if (tag !== 34) break;
3037
+ message.streamMessage = StreamMessage.decode(reader, reader.uint32());
3038
+ continue;
3039
+ case 5:
3040
+ if (tag !== 42) break;
3041
+ message.getNearbyChargingSites = NearbyChargingSites.decode(reader, reader.uint32());
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;
3051
+ case 9:
3052
+ if (tag !== 74) break;
3053
+ message.ping = Ping.decode(reader, reader.uint32());
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;
3071
+ case 15:
3072
+ if (tag !== 122) break;
3073
+ message.getChargeOnSolarFeatureResponse = GetChargeOnSolarFeatureResponse.decode(reader, reader.uint32());
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;
3095
+ }
3096
+ if ((tag & 7) === 4 || tag === 0) break;
3097
+ reader.skip(tag & 7);
3098
+ }
3099
+ return message;
3100
+ },
3101
+ fromJSON(object) {
3102
+ return {
3103
+ actionStatus: isSet(object.actionStatus) ? ActionStatus.fromJSON(object.actionStatus) : void 0,
3104
+ vehicleData: isSet(object.vehicleData) ? VehicleData.fromJSON(object.vehicleData) : void 0,
3105
+ getSessionInfoResponse: isSet(object.getSessionInfoResponse) ? SessionInfo.fromJSON(object.getSessionInfoResponse) : void 0,
3106
+ streamMessage: isSet(object.streamMessage) ? StreamMessage.fromJSON(object.streamMessage) : void 0,
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,
3110
+ ping: isSet(object.ping) ? Ping.fromJSON(object.ping) : 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
3121
+ };
3122
+ },
3123
+ toJSON(message) {
3124
+ const obj = {};
3125
+ if (message.actionStatus !== void 0) obj.actionStatus = ActionStatus.toJSON(message.actionStatus);
3126
+ if (message.vehicleData !== void 0) obj.vehicleData = VehicleData.toJSON(message.vehicleData);
3127
+ if (message.getSessionInfoResponse !== void 0) obj.getSessionInfoResponse = SessionInfo.toJSON(message.getSessionInfoResponse);
3128
+ if (message.streamMessage !== void 0) obj.streamMessage = StreamMessage.toJSON(message.streamMessage);
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);
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);
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);
3143
+ return obj;
3144
+ },
3145
+ create(base) {
3146
+ return Response.fromPartial(base ?? {});
3147
+ },
3148
+ fromPartial(object) {
3149
+ const message = createBaseResponse();
3150
+ message.actionStatus = object.actionStatus !== void 0 && object.actionStatus !== null ? ActionStatus.fromPartial(object.actionStatus) : void 0;
3151
+ message.vehicleData = object.vehicleData !== void 0 && object.vehicleData !== null ? VehicleData.fromPartial(object.vehicleData) : void 0;
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;
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;
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;
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
+ }
2735
3742
  if ((tag & 7) === 4 || tag === 0) break;
2736
3743
  reader.skip(tag & 7);
2737
3744
  }
2738
3745
  return message;
2739
3746
  },
2740
- fromJSON(_) {
2741
- return {};
3747
+ fromJSON(object) {
3748
+ return { requestTeslaAuthCommand: isSet(object.requestTeslaAuthCommand) ? RequestTeslaAuthCommand.fromJSON(object.requestTeslaAuthCommand) : void 0 };
2742
3749
  },
2743
- toJSON(_) {
2744
- return {};
3750
+ toJSON(message) {
3751
+ const obj = {};
3752
+ if (message.requestTeslaAuthCommand !== void 0) obj.requestTeslaAuthCommand = RequestTeslaAuthCommand.toJSON(message.requestTeslaAuthCommand);
3753
+ return obj;
2745
3754
  },
2746
3755
  create(base) {
2747
- return GetLocationState.fromPartial(base ?? {});
3756
+ return MobileAppMessage.fromPartial(base ?? {});
2748
3757
  },
2749
- fromPartial(_) {
2750
- return createBaseGetLocationState();
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;
2751
3762
  }
2752
3763
  };
2753
- function createBaseGetClosuresState() {
2754
- return {};
3764
+ function createBaseGetMessagesResponse() {
3765
+ return { mobileAppMessages: [] };
2755
3766
  }
2756
- const GetClosuresState = {
2757
- encode(_, writer = new BinaryWriter()) {
3767
+ const GetMessagesResponse = {
3768
+ encode(message, writer = new BinaryWriter()) {
3769
+ for (const v of message.mobileAppMessages) MobileAppMessage.encode(v, writer.uint32(10).fork()).join();
2758
3770
  return writer;
2759
3771
  },
2760
3772
  decode(input, length) {
2761
3773
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2762
3774
  const end = length === void 0 ? reader.len : reader.pos + length;
2763
- const message = createBaseGetClosuresState();
3775
+ const message = createBaseGetMessagesResponse();
2764
3776
  while (reader.pos < end) {
2765
3777
  const tag = reader.uint32();
2766
- switch (tag >>> 3) {}
3778
+ switch (tag >>> 3) {
3779
+ case 1:
3780
+ if (tag !== 10) break;
3781
+ message.mobileAppMessages.push(MobileAppMessage.decode(reader, reader.uint32()));
3782
+ continue;
3783
+ }
2767
3784
  if ((tag & 7) === 4 || tag === 0) break;
2768
3785
  reader.skip(tag & 7);
2769
3786
  }
2770
3787
  return message;
2771
3788
  },
2772
- fromJSON(_) {
2773
- return {};
3789
+ fromJSON(object) {
3790
+ return { mobileAppMessages: globalThis.Array.isArray(object?.mobileAppMessages) ? object.mobileAppMessages.map((e) => MobileAppMessage.fromJSON(e)) : [] };
2774
3791
  },
2775
- toJSON(_) {
2776
- return {};
3792
+ toJSON(message) {
3793
+ const obj = {};
3794
+ if (message.mobileAppMessages?.length) obj.mobileAppMessages = message.mobileAppMessages.map((e) => MobileAppMessage.toJSON(e));
3795
+ return obj;
2777
3796
  },
2778
3797
  create(base) {
2779
- return GetClosuresState.fromPartial(base ?? {});
3798
+ return GetMessagesResponse.fromPartial(base ?? {});
2780
3799
  },
2781
- fromPartial(_) {
2782
- return createBaseGetClosuresState();
3800
+ fromPartial(object) {
3801
+ const message = createBaseGetMessagesResponse();
3802
+ message.mobileAppMessages = object.mobileAppMessages?.map((e) => MobileAppMessage.fromPartial(e)) || [];
3803
+ return message;
2783
3804
  }
2784
3805
  };
2785
- function createBaseGetChargeScheduleState() {
2786
- return {};
3806
+ function createBaseProfile() {
3807
+ return {
3808
+ unknown1: "",
3809
+ unknown2: ""
3810
+ };
2787
3811
  }
2788
- const GetChargeScheduleState = {
2789
- encode(_, writer = new BinaryWriter()) {
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);
2790
3816
  return writer;
2791
3817
  },
2792
3818
  decode(input, length) {
2793
3819
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2794
3820
  const end = length === void 0 ? reader.len : reader.pos + length;
2795
- const message = createBaseGetChargeScheduleState();
3821
+ const message = createBaseProfile();
2796
3822
  while (reader.pos < end) {
2797
3823
  const tag = reader.uint32();
2798
- switch (tag >>> 3) {}
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
+ }
2799
3834
  if ((tag & 7) === 4 || tag === 0) break;
2800
3835
  reader.skip(tag & 7);
2801
3836
  }
2802
3837
  return message;
2803
3838
  },
2804
- fromJSON(_) {
2805
- return {};
3839
+ fromJSON(object) {
3840
+ return {
3841
+ unknown1: isSet(object.unknown1) ? globalThis.String(object.unknown1) : "",
3842
+ unknown2: isSet(object.unknown2) ? globalThis.String(object.unknown2) : ""
3843
+ };
2806
3844
  },
2807
- toJSON(_) {
2808
- return {};
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;
2809
3850
  },
2810
3851
  create(base) {
2811
- return GetChargeScheduleState.fromPartial(base ?? {});
3852
+ return Profile.fromPartial(base ?? {});
2812
3853
  },
2813
- fromPartial(_) {
2814
- return createBaseGetChargeScheduleState();
3854
+ fromPartial(object) {
3855
+ const message = createBaseProfile();
3856
+ message.unknown1 = object.unknown1 ?? "";
3857
+ message.unknown2 = object.unknown2 ?? "";
3858
+ return message;
2815
3859
  }
2816
3860
  };
2817
- function createBaseGetPreconditioningScheduleState() {
2818
- return {};
3861
+ function createBaseGetLocalProfilesResponse() {
3862
+ return { profiles: [] };
2819
3863
  }
2820
- const GetPreconditioningScheduleState = {
2821
- encode(_, writer = new BinaryWriter()) {
3864
+ const GetLocalProfilesResponse = {
3865
+ encode(message, writer = new BinaryWriter()) {
3866
+ for (const v of message.profiles) Profile.encode(v, writer.uint32(10).fork()).join();
2822
3867
  return writer;
2823
3868
  },
2824
3869
  decode(input, length) {
2825
3870
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2826
3871
  const end = length === void 0 ? reader.len : reader.pos + length;
2827
- const message = createBaseGetPreconditioningScheduleState();
3872
+ const message = createBaseGetLocalProfilesResponse();
2828
3873
  while (reader.pos < end) {
2829
3874
  const tag = reader.uint32();
2830
- switch (tag >>> 3) {}
3875
+ switch (tag >>> 3) {
3876
+ case 1:
3877
+ if (tag !== 10) break;
3878
+ message.profiles.push(Profile.decode(reader, reader.uint32()));
3879
+ continue;
3880
+ }
2831
3881
  if ((tag & 7) === 4 || tag === 0) break;
2832
3882
  reader.skip(tag & 7);
2833
3883
  }
2834
3884
  return message;
2835
3885
  },
2836
- fromJSON(_) {
2837
- return {};
3886
+ fromJSON(object) {
3887
+ return { profiles: globalThis.Array.isArray(object?.profiles) ? object.profiles.map((e) => Profile.fromJSON(e)) : [] };
2838
3888
  },
2839
- toJSON(_) {
2840
- return {};
3889
+ toJSON(message) {
3890
+ const obj = {};
3891
+ if (message.profiles?.length) obj.profiles = message.profiles.map((e) => Profile.toJSON(e));
3892
+ return obj;
2841
3893
  },
2842
3894
  create(base) {
2843
- return GetPreconditioningScheduleState.fromPartial(base ?? {});
3895
+ return GetLocalProfilesResponse.fromPartial(base ?? {});
2844
3896
  },
2845
- fromPartial(_) {
2846
- return createBaseGetPreconditioningScheduleState();
3897
+ fromPartial(object) {
3898
+ const message = createBaseGetLocalProfilesResponse();
3899
+ message.profiles = object.profiles?.map((e) => Profile.fromPartial(e)) || [];
3900
+ return message;
2847
3901
  }
2848
3902
  };
2849
- function createBaseGetParentalControlsState() {
2850
- return {};
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
+ };
2851
3912
  }
2852
- const GetParentalControlsState = {
2853
- encode(_, writer = new BinaryWriter()) {
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);
2854
3921
  return writer;
2855
3922
  },
2856
3923
  decode(input, length) {
2857
3924
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2858
3925
  const end = length === void 0 ? reader.len : reader.pos + length;
2859
- const message = createBaseGetParentalControlsState();
3926
+ const message = createBaseKeyInfo();
2860
3927
  while (reader.pos < end) {
2861
3928
  const tag = reader.uint32();
2862
- switch (tag >>> 3) {}
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
+ }
2863
3955
  if ((tag & 7) === 4 || tag === 0) break;
2864
3956
  reader.skip(tag & 7);
2865
3957
  }
2866
3958
  return message;
2867
3959
  },
2868
- fromJSON(_) {
2869
- return {};
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
+ };
2870
3969
  },
2871
- toJSON(_) {
2872
- return {};
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;
2873
3979
  },
2874
3980
  create(base) {
2875
- return GetParentalControlsState.fromPartial(base ?? {});
3981
+ return KeyInfo.fromPartial(base ?? {});
2876
3982
  },
2877
- fromPartial(_) {
2878
- return createBaseGetParentalControlsState();
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;
2879
3992
  }
2880
3993
  };
2881
- function createBaseEraseUserDataAction() {
2882
- return {
2883
- reason: "",
2884
- triggerOnPark: false
2885
- };
3994
+ function createBaseKeysInfoResponse() {
3995
+ return { keysInfo: [] };
2886
3996
  }
2887
- const EraseUserDataAction = {
3997
+ const KeysInfoResponse = {
2888
3998
  encode(message, writer = new BinaryWriter()) {
2889
- if (message.reason !== "") writer.uint32(10).string(message.reason);
2890
- if (message.triggerOnPark !== false) writer.uint32(16).bool(message.triggerOnPark);
3999
+ for (const v of message.keysInfo) KeyInfo.encode(v, writer.uint32(10).fork()).join();
2891
4000
  return writer;
2892
4001
  },
2893
4002
  decode(input, length) {
2894
4003
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2895
4004
  const end = length === void 0 ? reader.len : reader.pos + length;
2896
- const message = createBaseEraseUserDataAction();
4005
+ const message = createBaseKeysInfoResponse();
2897
4006
  while (reader.pos < end) {
2898
4007
  const tag = reader.uint32();
2899
4008
  switch (tag >>> 3) {
2900
4009
  case 1:
2901
4010
  if (tag !== 10) break;
2902
- message.reason = reader.string();
2903
- continue;
2904
- case 2:
2905
- if (tag !== 16) break;
2906
- message.triggerOnPark = reader.bool();
4011
+ message.keysInfo.push(KeyInfo.decode(reader, reader.uint32()));
2907
4012
  continue;
2908
4013
  }
2909
4014
  if ((tag & 7) === 4 || tag === 0) break;
@@ -2912,71 +4017,48 @@ const EraseUserDataAction = {
2912
4017
  return message;
2913
4018
  },
2914
4019
  fromJSON(object) {
2915
- return {
2916
- reason: isSet(object.reason) ? globalThis.String(object.reason) : "",
2917
- triggerOnPark: isSet(object.triggerOnPark) ? globalThis.Boolean(object.triggerOnPark) : false
2918
- };
4020
+ return { keysInfo: globalThis.Array.isArray(object?.keysInfo) ? object.keysInfo.map((e) => KeyInfo.fromJSON(e)) : [] };
2919
4021
  },
2920
4022
  toJSON(message) {
2921
4023
  const obj = {};
2922
- if (message.reason !== void 0) obj.reason = message.reason;
2923
- if (message.triggerOnPark !== void 0) obj.triggerOnPark = message.triggerOnPark;
4024
+ if (message.keysInfo?.length) obj.keysInfo = message.keysInfo.map((e) => KeyInfo.toJSON(e));
2924
4025
  return obj;
2925
4026
  },
2926
4027
  create(base) {
2927
- return EraseUserDataAction.fromPartial(base ?? {});
4028
+ return KeysInfoResponse.fromPartial(base ?? {});
2928
4029
  },
2929
4030
  fromPartial(object) {
2930
- const message = createBaseEraseUserDataAction();
2931
- message.reason = object.reason ?? "";
2932
- message.triggerOnPark = object.triggerOnPark ?? false;
4031
+ const message = createBaseKeysInfoResponse();
4032
+ message.keysInfo = object.keysInfo?.map((e) => KeyInfo.fromPartial(e)) || [];
2933
4033
  return message;
2934
4034
  }
2935
4035
  };
2936
- function createBaseResponse() {
4036
+ function createBaseBandwidthTestResponse() {
2937
4037
  return {
2938
- actionStatus: void 0,
2939
- vehicleData: void 0,
2940
- getSessionInfoResponse: void 0,
2941
- getNearbyChargingSites: void 0,
2942
- ping: void 0
4038
+ data: /* @__PURE__ */ new Uint8Array(0),
4039
+ requestedSize: 0
2943
4040
  };
2944
4041
  }
2945
- const Response = {
4042
+ const BandwidthTestResponse = {
2946
4043
  encode(message, writer = new BinaryWriter()) {
2947
- if (message.actionStatus !== void 0) ActionStatus.encode(message.actionStatus, writer.uint32(10).fork()).join();
2948
- if (message.vehicleData !== void 0) VehicleData.encode(message.vehicleData, writer.uint32(18).fork()).join();
2949
- if (message.getSessionInfoResponse !== void 0) SessionInfo.encode(message.getSessionInfoResponse, writer.uint32(26).fork()).join();
2950
- if (message.getNearbyChargingSites !== void 0) NearbyChargingSites.encode(message.getNearbyChargingSites, writer.uint32(42).fork()).join();
2951
- if (message.ping !== void 0) Ping.encode(message.ping, writer.uint32(74).fork()).join();
4044
+ if (message.data.length !== 0) writer.uint32(10).bytes(message.data);
4045
+ if (message.requestedSize !== 0) writer.uint32(16).uint32(message.requestedSize);
2952
4046
  return writer;
2953
4047
  },
2954
4048
  decode(input, length) {
2955
4049
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2956
4050
  const end = length === void 0 ? reader.len : reader.pos + length;
2957
- const message = createBaseResponse();
4051
+ const message = createBaseBandwidthTestResponse();
2958
4052
  while (reader.pos < end) {
2959
4053
  const tag = reader.uint32();
2960
4054
  switch (tag >>> 3) {
2961
4055
  case 1:
2962
4056
  if (tag !== 10) break;
2963
- message.actionStatus = ActionStatus.decode(reader, reader.uint32());
4057
+ message.data = reader.bytes();
2964
4058
  continue;
2965
4059
  case 2:
2966
- if (tag !== 18) break;
2967
- message.vehicleData = VehicleData.decode(reader, reader.uint32());
2968
- continue;
2969
- case 3:
2970
- if (tag !== 26) break;
2971
- message.getSessionInfoResponse = SessionInfo.decode(reader, reader.uint32());
2972
- continue;
2973
- case 5:
2974
- if (tag !== 42) break;
2975
- message.getNearbyChargingSites = NearbyChargingSites.decode(reader, reader.uint32());
2976
- continue;
2977
- case 9:
2978
- if (tag !== 74) break;
2979
- message.ping = Ping.decode(reader, reader.uint32());
4060
+ if (tag !== 16) break;
4061
+ message.requestedSize = reader.uint32();
2980
4062
  continue;
2981
4063
  }
2982
4064
  if ((tag & 7) === 4 || tag === 0) break;
@@ -2986,32 +4068,23 @@ const Response = {
2986
4068
  },
2987
4069
  fromJSON(object) {
2988
4070
  return {
2989
- actionStatus: isSet(object.actionStatus) ? ActionStatus.fromJSON(object.actionStatus) : void 0,
2990
- vehicleData: isSet(object.vehicleData) ? VehicleData.fromJSON(object.vehicleData) : void 0,
2991
- getSessionInfoResponse: isSet(object.getSessionInfoResponse) ? SessionInfo.fromJSON(object.getSessionInfoResponse) : void 0,
2992
- getNearbyChargingSites: isSet(object.getNearbyChargingSites) ? NearbyChargingSites.fromJSON(object.getNearbyChargingSites) : void 0,
2993
- ping: isSet(object.ping) ? Ping.fromJSON(object.ping) : void 0
4071
+ data: isSet(object.data) ? bytesFromBase64(object.data) : /* @__PURE__ */ new Uint8Array(0),
4072
+ requestedSize: isSet(object.requestedSize) ? globalThis.Number(object.requestedSize) : 0
2994
4073
  };
2995
4074
  },
2996
4075
  toJSON(message) {
2997
4076
  const obj = {};
2998
- if (message.actionStatus !== void 0) obj.actionStatus = ActionStatus.toJSON(message.actionStatus);
2999
- if (message.vehicleData !== void 0) obj.vehicleData = VehicleData.toJSON(message.vehicleData);
3000
- if (message.getSessionInfoResponse !== void 0) obj.getSessionInfoResponse = SessionInfo.toJSON(message.getSessionInfoResponse);
3001
- if (message.getNearbyChargingSites !== void 0) obj.getNearbyChargingSites = NearbyChargingSites.toJSON(message.getNearbyChargingSites);
3002
- if (message.ping !== void 0) obj.ping = Ping.toJSON(message.ping);
4077
+ if (message.data !== void 0) obj.data = base64FromBytes(message.data);
4078
+ if (message.requestedSize !== void 0) obj.requestedSize = Math.round(message.requestedSize);
3003
4079
  return obj;
3004
4080
  },
3005
4081
  create(base) {
3006
- return Response.fromPartial(base ?? {});
4082
+ return BandwidthTestResponse.fromPartial(base ?? {});
3007
4083
  },
3008
4084
  fromPartial(object) {
3009
- const message = createBaseResponse();
3010
- message.actionStatus = object.actionStatus !== void 0 && object.actionStatus !== null ? ActionStatus.fromPartial(object.actionStatus) : void 0;
3011
- message.vehicleData = object.vehicleData !== void 0 && object.vehicleData !== null ? VehicleData.fromPartial(object.vehicleData) : void 0;
3012
- message.getSessionInfoResponse = object.getSessionInfoResponse !== void 0 && object.getSessionInfoResponse !== null ? SessionInfo.fromPartial(object.getSessionInfoResponse) : void 0;
3013
- message.getNearbyChargingSites = object.getNearbyChargingSites !== void 0 && object.getNearbyChargingSites !== null ? NearbyChargingSites.fromPartial(object.getNearbyChargingSites) : void 0;
3014
- message.ping = object.ping !== void 0 && object.ping !== null ? Ping.fromPartial(object.ping) : void 0;
4085
+ const message = createBaseBandwidthTestResponse();
4086
+ message.data = object.data ?? /* @__PURE__ */ new Uint8Array(0);
4087
+ message.requestedSize = object.requestedSize ?? 0;
3015
4088
  return message;
3016
4089
  }
3017
4090
  };
@@ -8528,6 +9601,48 @@ const GetChargeOnSolarFeatureRequest = {
8528
9601
  return createBaseGetChargeOnSolarFeatureRequest();
8529
9602
  }
8530
9603
  };
9604
+ function createBaseGetChargeOnSolarFeatureResponse() {
9605
+ return { chargeOnSolar: void 0 };
9606
+ }
9607
+ const GetChargeOnSolarFeatureResponse = {
9608
+ encode(message, writer = new BinaryWriter()) {
9609
+ if (message.chargeOnSolar !== void 0) ChargeOnSolarFeature.encode(message.chargeOnSolar, writer.uint32(10).fork()).join();
9610
+ return writer;
9611
+ },
9612
+ decode(input, length) {
9613
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
9614
+ const end = length === void 0 ? reader.len : reader.pos + length;
9615
+ const message = createBaseGetChargeOnSolarFeatureResponse();
9616
+ while (reader.pos < end) {
9617
+ const tag = reader.uint32();
9618
+ switch (tag >>> 3) {
9619
+ case 1:
9620
+ if (tag !== 10) break;
9621
+ message.chargeOnSolar = ChargeOnSolarFeature.decode(reader, reader.uint32());
9622
+ continue;
9623
+ }
9624
+ if ((tag & 7) === 4 || tag === 0) break;
9625
+ reader.skip(tag & 7);
9626
+ }
9627
+ return message;
9628
+ },
9629
+ fromJSON(object) {
9630
+ return { chargeOnSolar: isSet(object.chargeOnSolar) ? ChargeOnSolarFeature.fromJSON(object.chargeOnSolar) : void 0 };
9631
+ },
9632
+ toJSON(message) {
9633
+ const obj = {};
9634
+ if (message.chargeOnSolar !== void 0) obj.chargeOnSolar = ChargeOnSolarFeature.toJSON(message.chargeOnSolar);
9635
+ return obj;
9636
+ },
9637
+ create(base) {
9638
+ return GetChargeOnSolarFeatureResponse.fromPartial(base ?? {});
9639
+ },
9640
+ fromPartial(object) {
9641
+ const message = createBaseGetChargeOnSolarFeatureResponse();
9642
+ message.chargeOnSolar = object.chargeOnSolar !== void 0 && object.chargeOnSolar !== null ? ChargeOnSolarFeature.fromPartial(object.chargeOnSolar) : void 0;
9643
+ return message;
9644
+ }
9645
+ };
8531
9646
  function createBaseChargeOnSolarFeature() {
8532
9647
  return {
8533
9648
  enabled: false,
@@ -10877,4 +11992,4 @@ function isSet(value) {
10877
11992
  return value !== null && value !== void 0;
10878
11993
  }
10879
11994
  //#endregion
10880
- 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, 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 };