@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.
- package/dist/command/car_server.cjs +1087 -2
- package/dist/command/car_server.d.cts +122 -1
- package/dist/command/car_server.d.mts +122 -1
- package/dist/command/car_server.mjs +1067 -3
- package/dist/command/vcsec.cjs +1 -1
- package/dist/command/vcsec.d.cts +1 -1
- package/dist/command/vcsec.d.mts +1 -1
- package/dist/command/vcsec.mjs +1 -1
- package/dist/command/vehicle.cjs +1 -1
- package/dist/command/vehicle.d.cts +1 -1
- package/dist/command/vehicle.d.mts +1 -1
- package/dist/command/vehicle.mjs +1 -1
- package/dist/telemetry/vehicle_data.cjs +5 -0
- package/dist/telemetry/vehicle_data.d.cts +2 -0
- package/dist/telemetry/vehicle_data.d.mts +2 -0
- package/dist/telemetry/vehicle_data.mjs +5 -0
- package/package.json +1 -1
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_command_common = require("./common.cjs");
|
|
3
3
|
const require_command_google_protobuf_timestamp = require("./google/protobuf/timestamp.cjs");
|
|
4
|
+
const require_command_keys = require("./keys.cjs");
|
|
4
5
|
const require_command_signatures = require("./signatures.cjs");
|
|
6
|
+
const require_command_vcsec = require("./vcsec.cjs");
|
|
5
7
|
const require_command_vehicle = require("./vehicle.cjs");
|
|
6
8
|
let _bufbuild_protobuf_wire = require("@bufbuild/protobuf/wire");
|
|
7
9
|
//#region src/command/car_server.ts
|
|
@@ -56,6 +58,40 @@ function vehicleImageRequest_TypeToJSON(object) {
|
|
|
56
58
|
default: return "UNRECOGNIZED";
|
|
57
59
|
}
|
|
58
60
|
}
|
|
61
|
+
let NavigationRouteResponse_TrafficStatus = /* @__PURE__ */ function(NavigationRouteResponse_TrafficStatus) {
|
|
62
|
+
NavigationRouteResponse_TrafficStatus[NavigationRouteResponse_TrafficStatus["TS_NO_DATA"] = 0] = "TS_NO_DATA";
|
|
63
|
+
NavigationRouteResponse_TrafficStatus[NavigationRouteResponse_TrafficStatus["TS_LIGHT"] = 1] = "TS_LIGHT";
|
|
64
|
+
NavigationRouteResponse_TrafficStatus[NavigationRouteResponse_TrafficStatus["TS_MODERATE"] = 2] = "TS_MODERATE";
|
|
65
|
+
NavigationRouteResponse_TrafficStatus[NavigationRouteResponse_TrafficStatus["TS_CONGESTION"] = 3] = "TS_CONGESTION";
|
|
66
|
+
NavigationRouteResponse_TrafficStatus[NavigationRouteResponse_TrafficStatus["TS_SEVERE_CONGESTION"] = 4] = "TS_SEVERE_CONGESTION";
|
|
67
|
+
NavigationRouteResponse_TrafficStatus[NavigationRouteResponse_TrafficStatus["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
68
|
+
return NavigationRouteResponse_TrafficStatus;
|
|
69
|
+
}({});
|
|
70
|
+
function navigationRouteResponse_TrafficStatusFromJSON(object) {
|
|
71
|
+
switch (object) {
|
|
72
|
+
case 0:
|
|
73
|
+
case "TS_NO_DATA": return 0;
|
|
74
|
+
case 1:
|
|
75
|
+
case "TS_LIGHT": return 1;
|
|
76
|
+
case 2:
|
|
77
|
+
case "TS_MODERATE": return 2;
|
|
78
|
+
case 3:
|
|
79
|
+
case "TS_CONGESTION": return 3;
|
|
80
|
+
case 4:
|
|
81
|
+
case "TS_SEVERE_CONGESTION": return 4;
|
|
82
|
+
default: return -1;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
function navigationRouteResponse_TrafficStatusToJSON(object) {
|
|
86
|
+
switch (object) {
|
|
87
|
+
case 0: return "TS_NO_DATA";
|
|
88
|
+
case 1: return "TS_LIGHT";
|
|
89
|
+
case 2: return "TS_MODERATE";
|
|
90
|
+
case 3: return "TS_CONGESTION";
|
|
91
|
+
case 4: return "TS_SEVERE_CONGESTION";
|
|
92
|
+
default: return "UNRECOGNIZED";
|
|
93
|
+
}
|
|
94
|
+
}
|
|
59
95
|
let HvacSeatCoolerActions_HvacSeatCoolerLevelE = /* @__PURE__ */ function(HvacSeatCoolerActions_HvacSeatCoolerLevelE) {
|
|
60
96
|
HvacSeatCoolerActions_HvacSeatCoolerLevelE[HvacSeatCoolerActions_HvacSeatCoolerLevelE["HvacSeatCoolerLevel_Unknown"] = 0] = "HvacSeatCoolerLevel_Unknown";
|
|
61
97
|
HvacSeatCoolerActions_HvacSeatCoolerLevelE[HvacSeatCoolerActions_HvacSeatCoolerLevelE["HvacSeatCoolerLevel_Off"] = 1] = "HvacSeatCoolerLevel_Off";
|
|
@@ -2939,9 +2975,21 @@ function createBaseResponse() {
|
|
|
2939
2975
|
actionStatus: void 0,
|
|
2940
2976
|
vehicleData: void 0,
|
|
2941
2977
|
getSessionInfoResponse: void 0,
|
|
2978
|
+
streamMessage: void 0,
|
|
2942
2979
|
getNearbyChargingSites: void 0,
|
|
2980
|
+
vehicleDataSubscriptionResponse: void 0,
|
|
2981
|
+
vitalsSubscriptionResponse: void 0,
|
|
2943
2982
|
ping: void 0,
|
|
2944
|
-
|
|
2983
|
+
piiKeyResponse: void 0,
|
|
2984
|
+
pseudonymSyncResponse: void 0,
|
|
2985
|
+
navigationRouteResponse: void 0,
|
|
2986
|
+
getManagedChargingSitesResponse: void 0,
|
|
2987
|
+
getChargeOnSolarFeatureResponse: void 0,
|
|
2988
|
+
addManagedChargingSiteResponse: void 0,
|
|
2989
|
+
getMessagesResponse: void 0,
|
|
2990
|
+
getLocalProfilesResponse: void 0,
|
|
2991
|
+
keysInfoResponse: void 0,
|
|
2992
|
+
bandwidthTestResponse: void 0
|
|
2945
2993
|
};
|
|
2946
2994
|
}
|
|
2947
2995
|
const Response = {
|
|
@@ -2949,9 +2997,21 @@ const Response = {
|
|
|
2949
2997
|
if (message.actionStatus !== void 0) ActionStatus.encode(message.actionStatus, writer.uint32(10).fork()).join();
|
|
2950
2998
|
if (message.vehicleData !== void 0) require_command_vehicle.VehicleData.encode(message.vehicleData, writer.uint32(18).fork()).join();
|
|
2951
2999
|
if (message.getSessionInfoResponse !== void 0) require_command_signatures.SessionInfo.encode(message.getSessionInfoResponse, writer.uint32(26).fork()).join();
|
|
3000
|
+
if (message.streamMessage !== void 0) StreamMessage.encode(message.streamMessage, writer.uint32(34).fork()).join();
|
|
2952
3001
|
if (message.getNearbyChargingSites !== void 0) NearbyChargingSites.encode(message.getNearbyChargingSites, writer.uint32(42).fork()).join();
|
|
3002
|
+
if (message.vehicleDataSubscriptionResponse !== void 0) VehicleDataSubscriptionResponse.encode(message.vehicleDataSubscriptionResponse, writer.uint32(50).fork()).join();
|
|
3003
|
+
if (message.vitalsSubscriptionResponse !== void 0) VitalsSubscriptionResponse.encode(message.vitalsSubscriptionResponse, writer.uint32(66).fork()).join();
|
|
2953
3004
|
if (message.ping !== void 0) Ping.encode(message.ping, writer.uint32(74).fork()).join();
|
|
3005
|
+
if (message.piiKeyResponse !== void 0) PiiKeyResponse.encode(message.piiKeyResponse, writer.uint32(82).fork()).join();
|
|
3006
|
+
if (message.pseudonymSyncResponse !== void 0) PseudonymSyncResponse.encode(message.pseudonymSyncResponse, writer.uint32(90).fork()).join();
|
|
3007
|
+
if (message.navigationRouteResponse !== void 0) NavigationRouteResponse.encode(message.navigationRouteResponse, writer.uint32(106).fork()).join();
|
|
3008
|
+
if (message.getManagedChargingSitesResponse !== void 0) GetManagedChargingSitesResponse.encode(message.getManagedChargingSitesResponse, writer.uint32(114).fork()).join();
|
|
2954
3009
|
if (message.getChargeOnSolarFeatureResponse !== void 0) GetChargeOnSolarFeatureResponse.encode(message.getChargeOnSolarFeatureResponse, writer.uint32(122).fork()).join();
|
|
3010
|
+
if (message.addManagedChargingSiteResponse !== void 0) AddManagedChargingSiteResponse.encode(message.addManagedChargingSiteResponse, writer.uint32(130).fork()).join();
|
|
3011
|
+
if (message.getMessagesResponse !== void 0) GetMessagesResponse.encode(message.getMessagesResponse, writer.uint32(146).fork()).join();
|
|
3012
|
+
if (message.getLocalProfilesResponse !== void 0) GetLocalProfilesResponse.encode(message.getLocalProfilesResponse, writer.uint32(162).fork()).join();
|
|
3013
|
+
if (message.keysInfoResponse !== void 0) KeysInfoResponse.encode(message.keysInfoResponse, writer.uint32(194).fork()).join();
|
|
3014
|
+
if (message.bandwidthTestResponse !== void 0) BandwidthTestResponse.encode(message.bandwidthTestResponse, writer.uint32(202).fork()).join();
|
|
2955
3015
|
return writer;
|
|
2956
3016
|
},
|
|
2957
3017
|
decode(input, length) {
|
|
@@ -2973,18 +3033,66 @@ const Response = {
|
|
|
2973
3033
|
if (tag !== 26) break;
|
|
2974
3034
|
message.getSessionInfoResponse = require_command_signatures.SessionInfo.decode(reader, reader.uint32());
|
|
2975
3035
|
continue;
|
|
3036
|
+
case 4:
|
|
3037
|
+
if (tag !== 34) break;
|
|
3038
|
+
message.streamMessage = StreamMessage.decode(reader, reader.uint32());
|
|
3039
|
+
continue;
|
|
2976
3040
|
case 5:
|
|
2977
3041
|
if (tag !== 42) break;
|
|
2978
3042
|
message.getNearbyChargingSites = NearbyChargingSites.decode(reader, reader.uint32());
|
|
2979
3043
|
continue;
|
|
3044
|
+
case 6:
|
|
3045
|
+
if (tag !== 50) break;
|
|
3046
|
+
message.vehicleDataSubscriptionResponse = VehicleDataSubscriptionResponse.decode(reader, reader.uint32());
|
|
3047
|
+
continue;
|
|
3048
|
+
case 8:
|
|
3049
|
+
if (tag !== 66) break;
|
|
3050
|
+
message.vitalsSubscriptionResponse = VitalsSubscriptionResponse.decode(reader, reader.uint32());
|
|
3051
|
+
continue;
|
|
2980
3052
|
case 9:
|
|
2981
3053
|
if (tag !== 74) break;
|
|
2982
3054
|
message.ping = Ping.decode(reader, reader.uint32());
|
|
2983
3055
|
continue;
|
|
3056
|
+
case 10:
|
|
3057
|
+
if (tag !== 82) break;
|
|
3058
|
+
message.piiKeyResponse = PiiKeyResponse.decode(reader, reader.uint32());
|
|
3059
|
+
continue;
|
|
3060
|
+
case 11:
|
|
3061
|
+
if (tag !== 90) break;
|
|
3062
|
+
message.pseudonymSyncResponse = PseudonymSyncResponse.decode(reader, reader.uint32());
|
|
3063
|
+
continue;
|
|
3064
|
+
case 13:
|
|
3065
|
+
if (tag !== 106) break;
|
|
3066
|
+
message.navigationRouteResponse = NavigationRouteResponse.decode(reader, reader.uint32());
|
|
3067
|
+
continue;
|
|
3068
|
+
case 14:
|
|
3069
|
+
if (tag !== 114) break;
|
|
3070
|
+
message.getManagedChargingSitesResponse = GetManagedChargingSitesResponse.decode(reader, reader.uint32());
|
|
3071
|
+
continue;
|
|
2984
3072
|
case 15:
|
|
2985
3073
|
if (tag !== 122) break;
|
|
2986
3074
|
message.getChargeOnSolarFeatureResponse = GetChargeOnSolarFeatureResponse.decode(reader, reader.uint32());
|
|
2987
3075
|
continue;
|
|
3076
|
+
case 16:
|
|
3077
|
+
if (tag !== 130) break;
|
|
3078
|
+
message.addManagedChargingSiteResponse = AddManagedChargingSiteResponse.decode(reader, reader.uint32());
|
|
3079
|
+
continue;
|
|
3080
|
+
case 18:
|
|
3081
|
+
if (tag !== 146) break;
|
|
3082
|
+
message.getMessagesResponse = GetMessagesResponse.decode(reader, reader.uint32());
|
|
3083
|
+
continue;
|
|
3084
|
+
case 20:
|
|
3085
|
+
if (tag !== 162) break;
|
|
3086
|
+
message.getLocalProfilesResponse = GetLocalProfilesResponse.decode(reader, reader.uint32());
|
|
3087
|
+
continue;
|
|
3088
|
+
case 24:
|
|
3089
|
+
if (tag !== 194) break;
|
|
3090
|
+
message.keysInfoResponse = KeysInfoResponse.decode(reader, reader.uint32());
|
|
3091
|
+
continue;
|
|
3092
|
+
case 25:
|
|
3093
|
+
if (tag !== 202) break;
|
|
3094
|
+
message.bandwidthTestResponse = BandwidthTestResponse.decode(reader, reader.uint32());
|
|
3095
|
+
continue;
|
|
2988
3096
|
}
|
|
2989
3097
|
if ((tag & 7) === 4 || tag === 0) break;
|
|
2990
3098
|
reader.skip(tag & 7);
|
|
@@ -2996,9 +3104,21 @@ const Response = {
|
|
|
2996
3104
|
actionStatus: isSet(object.actionStatus) ? ActionStatus.fromJSON(object.actionStatus) : void 0,
|
|
2997
3105
|
vehicleData: isSet(object.vehicleData) ? require_command_vehicle.VehicleData.fromJSON(object.vehicleData) : void 0,
|
|
2998
3106
|
getSessionInfoResponse: isSet(object.getSessionInfoResponse) ? require_command_signatures.SessionInfo.fromJSON(object.getSessionInfoResponse) : void 0,
|
|
3107
|
+
streamMessage: isSet(object.streamMessage) ? StreamMessage.fromJSON(object.streamMessage) : void 0,
|
|
2999
3108
|
getNearbyChargingSites: isSet(object.getNearbyChargingSites) ? NearbyChargingSites.fromJSON(object.getNearbyChargingSites) : void 0,
|
|
3109
|
+
vehicleDataSubscriptionResponse: isSet(object.vehicleDataSubscriptionResponse) ? VehicleDataSubscriptionResponse.fromJSON(object.vehicleDataSubscriptionResponse) : void 0,
|
|
3110
|
+
vitalsSubscriptionResponse: isSet(object.vitalsSubscriptionResponse) ? VitalsSubscriptionResponse.fromJSON(object.vitalsSubscriptionResponse) : void 0,
|
|
3000
3111
|
ping: isSet(object.ping) ? Ping.fromJSON(object.ping) : void 0,
|
|
3001
|
-
|
|
3112
|
+
piiKeyResponse: isSet(object.piiKeyResponse) ? PiiKeyResponse.fromJSON(object.piiKeyResponse) : void 0,
|
|
3113
|
+
pseudonymSyncResponse: isSet(object.pseudonymSyncResponse) ? PseudonymSyncResponse.fromJSON(object.pseudonymSyncResponse) : void 0,
|
|
3114
|
+
navigationRouteResponse: isSet(object.navigationRouteResponse) ? NavigationRouteResponse.fromJSON(object.navigationRouteResponse) : void 0,
|
|
3115
|
+
getManagedChargingSitesResponse: isSet(object.getManagedChargingSitesResponse) ? GetManagedChargingSitesResponse.fromJSON(object.getManagedChargingSitesResponse) : void 0,
|
|
3116
|
+
getChargeOnSolarFeatureResponse: isSet(object.getChargeOnSolarFeatureResponse) ? GetChargeOnSolarFeatureResponse.fromJSON(object.getChargeOnSolarFeatureResponse) : void 0,
|
|
3117
|
+
addManagedChargingSiteResponse: isSet(object.addManagedChargingSiteResponse) ? AddManagedChargingSiteResponse.fromJSON(object.addManagedChargingSiteResponse) : void 0,
|
|
3118
|
+
getMessagesResponse: isSet(object.getMessagesResponse) ? GetMessagesResponse.fromJSON(object.getMessagesResponse) : void 0,
|
|
3119
|
+
getLocalProfilesResponse: isSet(object.getLocalProfilesResponse) ? GetLocalProfilesResponse.fromJSON(object.getLocalProfilesResponse) : void 0,
|
|
3120
|
+
keysInfoResponse: isSet(object.keysInfoResponse) ? KeysInfoResponse.fromJSON(object.keysInfoResponse) : void 0,
|
|
3121
|
+
bandwidthTestResponse: isSet(object.bandwidthTestResponse) ? BandwidthTestResponse.fromJSON(object.bandwidthTestResponse) : void 0
|
|
3002
3122
|
};
|
|
3003
3123
|
},
|
|
3004
3124
|
toJSON(message) {
|
|
@@ -3006,9 +3126,21 @@ const Response = {
|
|
|
3006
3126
|
if (message.actionStatus !== void 0) obj.actionStatus = ActionStatus.toJSON(message.actionStatus);
|
|
3007
3127
|
if (message.vehicleData !== void 0) obj.vehicleData = require_command_vehicle.VehicleData.toJSON(message.vehicleData);
|
|
3008
3128
|
if (message.getSessionInfoResponse !== void 0) obj.getSessionInfoResponse = require_command_signatures.SessionInfo.toJSON(message.getSessionInfoResponse);
|
|
3129
|
+
if (message.streamMessage !== void 0) obj.streamMessage = StreamMessage.toJSON(message.streamMessage);
|
|
3009
3130
|
if (message.getNearbyChargingSites !== void 0) obj.getNearbyChargingSites = NearbyChargingSites.toJSON(message.getNearbyChargingSites);
|
|
3131
|
+
if (message.vehicleDataSubscriptionResponse !== void 0) obj.vehicleDataSubscriptionResponse = VehicleDataSubscriptionResponse.toJSON(message.vehicleDataSubscriptionResponse);
|
|
3132
|
+
if (message.vitalsSubscriptionResponse !== void 0) obj.vitalsSubscriptionResponse = VitalsSubscriptionResponse.toJSON(message.vitalsSubscriptionResponse);
|
|
3010
3133
|
if (message.ping !== void 0) obj.ping = Ping.toJSON(message.ping);
|
|
3134
|
+
if (message.piiKeyResponse !== void 0) obj.piiKeyResponse = PiiKeyResponse.toJSON(message.piiKeyResponse);
|
|
3135
|
+
if (message.pseudonymSyncResponse !== void 0) obj.pseudonymSyncResponse = PseudonymSyncResponse.toJSON(message.pseudonymSyncResponse);
|
|
3136
|
+
if (message.navigationRouteResponse !== void 0) obj.navigationRouteResponse = NavigationRouteResponse.toJSON(message.navigationRouteResponse);
|
|
3137
|
+
if (message.getManagedChargingSitesResponse !== void 0) obj.getManagedChargingSitesResponse = GetManagedChargingSitesResponse.toJSON(message.getManagedChargingSitesResponse);
|
|
3011
3138
|
if (message.getChargeOnSolarFeatureResponse !== void 0) obj.getChargeOnSolarFeatureResponse = GetChargeOnSolarFeatureResponse.toJSON(message.getChargeOnSolarFeatureResponse);
|
|
3139
|
+
if (message.addManagedChargingSiteResponse !== void 0) obj.addManagedChargingSiteResponse = AddManagedChargingSiteResponse.toJSON(message.addManagedChargingSiteResponse);
|
|
3140
|
+
if (message.getMessagesResponse !== void 0) obj.getMessagesResponse = GetMessagesResponse.toJSON(message.getMessagesResponse);
|
|
3141
|
+
if (message.getLocalProfilesResponse !== void 0) obj.getLocalProfilesResponse = GetLocalProfilesResponse.toJSON(message.getLocalProfilesResponse);
|
|
3142
|
+
if (message.keysInfoResponse !== void 0) obj.keysInfoResponse = KeysInfoResponse.toJSON(message.keysInfoResponse);
|
|
3143
|
+
if (message.bandwidthTestResponse !== void 0) obj.bandwidthTestResponse = BandwidthTestResponse.toJSON(message.bandwidthTestResponse);
|
|
3012
3144
|
return obj;
|
|
3013
3145
|
},
|
|
3014
3146
|
create(base) {
|
|
@@ -3019,9 +3151,941 @@ const Response = {
|
|
|
3019
3151
|
message.actionStatus = object.actionStatus !== void 0 && object.actionStatus !== null ? ActionStatus.fromPartial(object.actionStatus) : void 0;
|
|
3020
3152
|
message.vehicleData = object.vehicleData !== void 0 && object.vehicleData !== null ? require_command_vehicle.VehicleData.fromPartial(object.vehicleData) : void 0;
|
|
3021
3153
|
message.getSessionInfoResponse = object.getSessionInfoResponse !== void 0 && object.getSessionInfoResponse !== null ? require_command_signatures.SessionInfo.fromPartial(object.getSessionInfoResponse) : void 0;
|
|
3154
|
+
message.streamMessage = object.streamMessage !== void 0 && object.streamMessage !== null ? StreamMessage.fromPartial(object.streamMessage) : void 0;
|
|
3022
3155
|
message.getNearbyChargingSites = object.getNearbyChargingSites !== void 0 && object.getNearbyChargingSites !== null ? NearbyChargingSites.fromPartial(object.getNearbyChargingSites) : void 0;
|
|
3156
|
+
message.vehicleDataSubscriptionResponse = object.vehicleDataSubscriptionResponse !== void 0 && object.vehicleDataSubscriptionResponse !== null ? VehicleDataSubscriptionResponse.fromPartial(object.vehicleDataSubscriptionResponse) : void 0;
|
|
3157
|
+
message.vitalsSubscriptionResponse = object.vitalsSubscriptionResponse !== void 0 && object.vitalsSubscriptionResponse !== null ? VitalsSubscriptionResponse.fromPartial(object.vitalsSubscriptionResponse) : void 0;
|
|
3023
3158
|
message.ping = object.ping !== void 0 && object.ping !== null ? Ping.fromPartial(object.ping) : void 0;
|
|
3159
|
+
message.piiKeyResponse = object.piiKeyResponse !== void 0 && object.piiKeyResponse !== null ? PiiKeyResponse.fromPartial(object.piiKeyResponse) : void 0;
|
|
3160
|
+
message.pseudonymSyncResponse = object.pseudonymSyncResponse !== void 0 && object.pseudonymSyncResponse !== null ? PseudonymSyncResponse.fromPartial(object.pseudonymSyncResponse) : void 0;
|
|
3161
|
+
message.navigationRouteResponse = object.navigationRouteResponse !== void 0 && object.navigationRouteResponse !== null ? NavigationRouteResponse.fromPartial(object.navigationRouteResponse) : void 0;
|
|
3162
|
+
message.getManagedChargingSitesResponse = object.getManagedChargingSitesResponse !== void 0 && object.getManagedChargingSitesResponse !== null ? GetManagedChargingSitesResponse.fromPartial(object.getManagedChargingSitesResponse) : void 0;
|
|
3024
3163
|
message.getChargeOnSolarFeatureResponse = object.getChargeOnSolarFeatureResponse !== void 0 && object.getChargeOnSolarFeatureResponse !== null ? GetChargeOnSolarFeatureResponse.fromPartial(object.getChargeOnSolarFeatureResponse) : void 0;
|
|
3164
|
+
message.addManagedChargingSiteResponse = object.addManagedChargingSiteResponse !== void 0 && object.addManagedChargingSiteResponse !== null ? AddManagedChargingSiteResponse.fromPartial(object.addManagedChargingSiteResponse) : void 0;
|
|
3165
|
+
message.getMessagesResponse = object.getMessagesResponse !== void 0 && object.getMessagesResponse !== null ? GetMessagesResponse.fromPartial(object.getMessagesResponse) : void 0;
|
|
3166
|
+
message.getLocalProfilesResponse = object.getLocalProfilesResponse !== void 0 && object.getLocalProfilesResponse !== null ? GetLocalProfilesResponse.fromPartial(object.getLocalProfilesResponse) : void 0;
|
|
3167
|
+
message.keysInfoResponse = object.keysInfoResponse !== void 0 && object.keysInfoResponse !== null ? KeysInfoResponse.fromPartial(object.keysInfoResponse) : void 0;
|
|
3168
|
+
message.bandwidthTestResponse = object.bandwidthTestResponse !== void 0 && object.bandwidthTestResponse !== null ? BandwidthTestResponse.fromPartial(object.bandwidthTestResponse) : void 0;
|
|
3169
|
+
return message;
|
|
3170
|
+
}
|
|
3171
|
+
};
|
|
3172
|
+
function createBaseVehicleDataSubscriptionResponse() {
|
|
3173
|
+
return {
|
|
3174
|
+
unknown: "",
|
|
3175
|
+
piiKeyResponse: void 0
|
|
3176
|
+
};
|
|
3177
|
+
}
|
|
3178
|
+
const VehicleDataSubscriptionResponse = {
|
|
3179
|
+
encode(message, writer = new _bufbuild_protobuf_wire.BinaryWriter()) {
|
|
3180
|
+
if (message.unknown !== "") writer.uint32(26).string(message.unknown);
|
|
3181
|
+
if (message.piiKeyResponse !== void 0) PiiKeyResponse.encode(message.piiKeyResponse, writer.uint32(34).fork()).join();
|
|
3182
|
+
return writer;
|
|
3183
|
+
},
|
|
3184
|
+
decode(input, length) {
|
|
3185
|
+
const reader = input instanceof _bufbuild_protobuf_wire.BinaryReader ? input : new _bufbuild_protobuf_wire.BinaryReader(input);
|
|
3186
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
3187
|
+
const message = createBaseVehicleDataSubscriptionResponse();
|
|
3188
|
+
while (reader.pos < end) {
|
|
3189
|
+
const tag = reader.uint32();
|
|
3190
|
+
switch (tag >>> 3) {
|
|
3191
|
+
case 3:
|
|
3192
|
+
if (tag !== 26) break;
|
|
3193
|
+
message.unknown = reader.string();
|
|
3194
|
+
continue;
|
|
3195
|
+
case 4:
|
|
3196
|
+
if (tag !== 34) break;
|
|
3197
|
+
message.piiKeyResponse = PiiKeyResponse.decode(reader, reader.uint32());
|
|
3198
|
+
continue;
|
|
3199
|
+
}
|
|
3200
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
3201
|
+
reader.skip(tag & 7);
|
|
3202
|
+
}
|
|
3203
|
+
return message;
|
|
3204
|
+
},
|
|
3205
|
+
fromJSON(object) {
|
|
3206
|
+
return {
|
|
3207
|
+
unknown: isSet(object.unknown) ? globalThis.String(object.unknown) : "",
|
|
3208
|
+
piiKeyResponse: isSet(object.piiKeyResponse) ? PiiKeyResponse.fromJSON(object.piiKeyResponse) : void 0
|
|
3209
|
+
};
|
|
3210
|
+
},
|
|
3211
|
+
toJSON(message) {
|
|
3212
|
+
const obj = {};
|
|
3213
|
+
if (message.unknown !== void 0) obj.unknown = message.unknown;
|
|
3214
|
+
if (message.piiKeyResponse !== void 0) obj.piiKeyResponse = PiiKeyResponse.toJSON(message.piiKeyResponse);
|
|
3215
|
+
return obj;
|
|
3216
|
+
},
|
|
3217
|
+
create(base) {
|
|
3218
|
+
return VehicleDataSubscriptionResponse.fromPartial(base ?? {});
|
|
3219
|
+
},
|
|
3220
|
+
fromPartial(object) {
|
|
3221
|
+
const message = createBaseVehicleDataSubscriptionResponse();
|
|
3222
|
+
message.unknown = object.unknown ?? "";
|
|
3223
|
+
message.piiKeyResponse = object.piiKeyResponse !== void 0 && object.piiKeyResponse !== null ? PiiKeyResponse.fromPartial(object.piiKeyResponse) : void 0;
|
|
3224
|
+
return message;
|
|
3225
|
+
}
|
|
3226
|
+
};
|
|
3227
|
+
function createBaseVitalsSubscriptionResponse() {
|
|
3228
|
+
return {
|
|
3229
|
+
sessionId: 0,
|
|
3230
|
+
unknown: ""
|
|
3231
|
+
};
|
|
3232
|
+
}
|
|
3233
|
+
const VitalsSubscriptionResponse = {
|
|
3234
|
+
encode(message, writer = new _bufbuild_protobuf_wire.BinaryWriter()) {
|
|
3235
|
+
if (message.sessionId !== 0) writer.uint32(8).int32(message.sessionId);
|
|
3236
|
+
if (message.unknown !== "") writer.uint32(18).string(message.unknown);
|
|
3237
|
+
return writer;
|
|
3238
|
+
},
|
|
3239
|
+
decode(input, length) {
|
|
3240
|
+
const reader = input instanceof _bufbuild_protobuf_wire.BinaryReader ? input : new _bufbuild_protobuf_wire.BinaryReader(input);
|
|
3241
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
3242
|
+
const message = createBaseVitalsSubscriptionResponse();
|
|
3243
|
+
while (reader.pos < end) {
|
|
3244
|
+
const tag = reader.uint32();
|
|
3245
|
+
switch (tag >>> 3) {
|
|
3246
|
+
case 1:
|
|
3247
|
+
if (tag !== 8) break;
|
|
3248
|
+
message.sessionId = reader.int32();
|
|
3249
|
+
continue;
|
|
3250
|
+
case 2:
|
|
3251
|
+
if (tag !== 18) break;
|
|
3252
|
+
message.unknown = reader.string();
|
|
3253
|
+
continue;
|
|
3254
|
+
}
|
|
3255
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
3256
|
+
reader.skip(tag & 7);
|
|
3257
|
+
}
|
|
3258
|
+
return message;
|
|
3259
|
+
},
|
|
3260
|
+
fromJSON(object) {
|
|
3261
|
+
return {
|
|
3262
|
+
sessionId: isSet(object.sessionId) ? globalThis.Number(object.sessionId) : 0,
|
|
3263
|
+
unknown: isSet(object.unknown) ? globalThis.String(object.unknown) : ""
|
|
3264
|
+
};
|
|
3265
|
+
},
|
|
3266
|
+
toJSON(message) {
|
|
3267
|
+
const obj = {};
|
|
3268
|
+
if (message.sessionId !== void 0) obj.sessionId = Math.round(message.sessionId);
|
|
3269
|
+
if (message.unknown !== void 0) obj.unknown = message.unknown;
|
|
3270
|
+
return obj;
|
|
3271
|
+
},
|
|
3272
|
+
create(base) {
|
|
3273
|
+
return VitalsSubscriptionResponse.fromPartial(base ?? {});
|
|
3274
|
+
},
|
|
3275
|
+
fromPartial(object) {
|
|
3276
|
+
const message = createBaseVitalsSubscriptionResponse();
|
|
3277
|
+
message.sessionId = object.sessionId ?? 0;
|
|
3278
|
+
message.unknown = object.unknown ?? "";
|
|
3279
|
+
return message;
|
|
3280
|
+
}
|
|
3281
|
+
};
|
|
3282
|
+
function createBasePiiKeyResponse() {
|
|
3283
|
+
return {
|
|
3284
|
+
encryptedPiiKey: /* @__PURE__ */ new Uint8Array(0),
|
|
3285
|
+
piiKeyExpiration: void 0,
|
|
3286
|
+
subscriberPublicKeyExpiration: void 0
|
|
3287
|
+
};
|
|
3288
|
+
}
|
|
3289
|
+
const PiiKeyResponse = {
|
|
3290
|
+
encode(message, writer = new _bufbuild_protobuf_wire.BinaryWriter()) {
|
|
3291
|
+
if (message.encryptedPiiKey.length !== 0) writer.uint32(18).bytes(message.encryptedPiiKey);
|
|
3292
|
+
if (message.piiKeyExpiration !== void 0) require_command_google_protobuf_timestamp.Timestamp.encode(toTimestamp(message.piiKeyExpiration), writer.uint32(26).fork()).join();
|
|
3293
|
+
if (message.subscriberPublicKeyExpiration !== void 0) require_command_google_protobuf_timestamp.Timestamp.encode(toTimestamp(message.subscriberPublicKeyExpiration), writer.uint32(34).fork()).join();
|
|
3294
|
+
return writer;
|
|
3295
|
+
},
|
|
3296
|
+
decode(input, length) {
|
|
3297
|
+
const reader = input instanceof _bufbuild_protobuf_wire.BinaryReader ? input : new _bufbuild_protobuf_wire.BinaryReader(input);
|
|
3298
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
3299
|
+
const message = createBasePiiKeyResponse();
|
|
3300
|
+
while (reader.pos < end) {
|
|
3301
|
+
const tag = reader.uint32();
|
|
3302
|
+
switch (tag >>> 3) {
|
|
3303
|
+
case 2:
|
|
3304
|
+
if (tag !== 18) break;
|
|
3305
|
+
message.encryptedPiiKey = reader.bytes();
|
|
3306
|
+
continue;
|
|
3307
|
+
case 3:
|
|
3308
|
+
if (tag !== 26) break;
|
|
3309
|
+
message.piiKeyExpiration = fromTimestamp(require_command_google_protobuf_timestamp.Timestamp.decode(reader, reader.uint32()));
|
|
3310
|
+
continue;
|
|
3311
|
+
case 4:
|
|
3312
|
+
if (tag !== 34) break;
|
|
3313
|
+
message.subscriberPublicKeyExpiration = fromTimestamp(require_command_google_protobuf_timestamp.Timestamp.decode(reader, reader.uint32()));
|
|
3314
|
+
continue;
|
|
3315
|
+
}
|
|
3316
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
3317
|
+
reader.skip(tag & 7);
|
|
3318
|
+
}
|
|
3319
|
+
return message;
|
|
3320
|
+
},
|
|
3321
|
+
fromJSON(object) {
|
|
3322
|
+
return {
|
|
3323
|
+
encryptedPiiKey: isSet(object.encryptedPiiKey) ? bytesFromBase64(object.encryptedPiiKey) : /* @__PURE__ */ new Uint8Array(0),
|
|
3324
|
+
piiKeyExpiration: isSet(object.piiKeyExpiration) ? fromJsonTimestamp(object.piiKeyExpiration) : void 0,
|
|
3325
|
+
subscriberPublicKeyExpiration: isSet(object.subscriberPublicKeyExpiration) ? fromJsonTimestamp(object.subscriberPublicKeyExpiration) : void 0
|
|
3326
|
+
};
|
|
3327
|
+
},
|
|
3328
|
+
toJSON(message) {
|
|
3329
|
+
const obj = {};
|
|
3330
|
+
if (message.encryptedPiiKey !== void 0) obj.encryptedPiiKey = base64FromBytes(message.encryptedPiiKey);
|
|
3331
|
+
if (message.piiKeyExpiration !== void 0) obj.piiKeyExpiration = message.piiKeyExpiration.toISOString();
|
|
3332
|
+
if (message.subscriberPublicKeyExpiration !== void 0) obj.subscriberPublicKeyExpiration = message.subscriberPublicKeyExpiration.toISOString();
|
|
3333
|
+
return obj;
|
|
3334
|
+
},
|
|
3335
|
+
create(base) {
|
|
3336
|
+
return PiiKeyResponse.fromPartial(base ?? {});
|
|
3337
|
+
},
|
|
3338
|
+
fromPartial(object) {
|
|
3339
|
+
const message = createBasePiiKeyResponse();
|
|
3340
|
+
message.encryptedPiiKey = object.encryptedPiiKey ?? /* @__PURE__ */ new Uint8Array(0);
|
|
3341
|
+
message.piiKeyExpiration = object.piiKeyExpiration ?? void 0;
|
|
3342
|
+
message.subscriberPublicKeyExpiration = object.subscriberPublicKeyExpiration ?? void 0;
|
|
3343
|
+
return message;
|
|
3344
|
+
}
|
|
3345
|
+
};
|
|
3346
|
+
function createBasePseudonymSyncResponse() {
|
|
3347
|
+
return { unknown: "" };
|
|
3348
|
+
}
|
|
3349
|
+
const PseudonymSyncResponse = {
|
|
3350
|
+
encode(message, writer = new _bufbuild_protobuf_wire.BinaryWriter()) {
|
|
3351
|
+
if (message.unknown !== "") writer.uint32(10).string(message.unknown);
|
|
3352
|
+
return writer;
|
|
3353
|
+
},
|
|
3354
|
+
decode(input, length) {
|
|
3355
|
+
const reader = input instanceof _bufbuild_protobuf_wire.BinaryReader ? input : new _bufbuild_protobuf_wire.BinaryReader(input);
|
|
3356
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
3357
|
+
const message = createBasePseudonymSyncResponse();
|
|
3358
|
+
while (reader.pos < end) {
|
|
3359
|
+
const tag = reader.uint32();
|
|
3360
|
+
switch (tag >>> 3) {
|
|
3361
|
+
case 1:
|
|
3362
|
+
if (tag !== 10) break;
|
|
3363
|
+
message.unknown = reader.string();
|
|
3364
|
+
continue;
|
|
3365
|
+
}
|
|
3366
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
3367
|
+
reader.skip(tag & 7);
|
|
3368
|
+
}
|
|
3369
|
+
return message;
|
|
3370
|
+
},
|
|
3371
|
+
fromJSON(object) {
|
|
3372
|
+
return { unknown: isSet(object.unknown) ? globalThis.String(object.unknown) : "" };
|
|
3373
|
+
},
|
|
3374
|
+
toJSON(message) {
|
|
3375
|
+
const obj = {};
|
|
3376
|
+
if (message.unknown !== void 0) obj.unknown = message.unknown;
|
|
3377
|
+
return obj;
|
|
3378
|
+
},
|
|
3379
|
+
create(base) {
|
|
3380
|
+
return PseudonymSyncResponse.fromPartial(base ?? {});
|
|
3381
|
+
},
|
|
3382
|
+
fromPartial(object) {
|
|
3383
|
+
const message = createBasePseudonymSyncResponse();
|
|
3384
|
+
message.unknown = object.unknown ?? "";
|
|
3385
|
+
return message;
|
|
3386
|
+
}
|
|
3387
|
+
};
|
|
3388
|
+
function createBaseNavigationRouteResponse() {
|
|
3389
|
+
return {
|
|
3390
|
+
unknown: "",
|
|
3391
|
+
trafficDetail: []
|
|
3392
|
+
};
|
|
3393
|
+
}
|
|
3394
|
+
const NavigationRouteResponse = {
|
|
3395
|
+
encode(message, writer = new _bufbuild_protobuf_wire.BinaryWriter()) {
|
|
3396
|
+
if (message.unknown !== "") writer.uint32(10).string(message.unknown);
|
|
3397
|
+
for (const v of message.trafficDetail) NavigationRouteResponse_TrafficDetail.encode(v, writer.uint32(18).fork()).join();
|
|
3398
|
+
return writer;
|
|
3399
|
+
},
|
|
3400
|
+
decode(input, length) {
|
|
3401
|
+
const reader = input instanceof _bufbuild_protobuf_wire.BinaryReader ? input : new _bufbuild_protobuf_wire.BinaryReader(input);
|
|
3402
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
3403
|
+
const message = createBaseNavigationRouteResponse();
|
|
3404
|
+
while (reader.pos < end) {
|
|
3405
|
+
const tag = reader.uint32();
|
|
3406
|
+
switch (tag >>> 3) {
|
|
3407
|
+
case 1:
|
|
3408
|
+
if (tag !== 10) break;
|
|
3409
|
+
message.unknown = reader.string();
|
|
3410
|
+
continue;
|
|
3411
|
+
case 2:
|
|
3412
|
+
if (tag !== 18) break;
|
|
3413
|
+
message.trafficDetail.push(NavigationRouteResponse_TrafficDetail.decode(reader, reader.uint32()));
|
|
3414
|
+
continue;
|
|
3415
|
+
}
|
|
3416
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
3417
|
+
reader.skip(tag & 7);
|
|
3418
|
+
}
|
|
3419
|
+
return message;
|
|
3420
|
+
},
|
|
3421
|
+
fromJSON(object) {
|
|
3422
|
+
return {
|
|
3423
|
+
unknown: isSet(object.unknown) ? globalThis.String(object.unknown) : "",
|
|
3424
|
+
trafficDetail: globalThis.Array.isArray(object?.trafficDetail) ? object.trafficDetail.map((e) => NavigationRouteResponse_TrafficDetail.fromJSON(e)) : []
|
|
3425
|
+
};
|
|
3426
|
+
},
|
|
3427
|
+
toJSON(message) {
|
|
3428
|
+
const obj = {};
|
|
3429
|
+
if (message.unknown !== void 0) obj.unknown = message.unknown;
|
|
3430
|
+
if (message.trafficDetail?.length) obj.trafficDetail = message.trafficDetail.map((e) => NavigationRouteResponse_TrafficDetail.toJSON(e));
|
|
3431
|
+
return obj;
|
|
3432
|
+
},
|
|
3433
|
+
create(base) {
|
|
3434
|
+
return NavigationRouteResponse.fromPartial(base ?? {});
|
|
3435
|
+
},
|
|
3436
|
+
fromPartial(object) {
|
|
3437
|
+
const message = createBaseNavigationRouteResponse();
|
|
3438
|
+
message.unknown = object.unknown ?? "";
|
|
3439
|
+
message.trafficDetail = object.trafficDetail?.map((e) => NavigationRouteResponse_TrafficDetail.fromPartial(e)) || [];
|
|
3440
|
+
return message;
|
|
3441
|
+
}
|
|
3442
|
+
};
|
|
3443
|
+
function createBaseNavigationRouteResponse_TrafficDetail() {
|
|
3444
|
+
return {
|
|
3445
|
+
offsetToDest: 0,
|
|
3446
|
+
trafficStatus: 0
|
|
3447
|
+
};
|
|
3448
|
+
}
|
|
3449
|
+
const NavigationRouteResponse_TrafficDetail = {
|
|
3450
|
+
encode(message, writer = new _bufbuild_protobuf_wire.BinaryWriter()) {
|
|
3451
|
+
if (message.offsetToDest !== 0) writer.uint32(13).float(message.offsetToDest);
|
|
3452
|
+
if (message.trafficStatus !== 0) writer.uint32(16).int32(message.trafficStatus);
|
|
3453
|
+
return writer;
|
|
3454
|
+
},
|
|
3455
|
+
decode(input, length) {
|
|
3456
|
+
const reader = input instanceof _bufbuild_protobuf_wire.BinaryReader ? input : new _bufbuild_protobuf_wire.BinaryReader(input);
|
|
3457
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
3458
|
+
const message = createBaseNavigationRouteResponse_TrafficDetail();
|
|
3459
|
+
while (reader.pos < end) {
|
|
3460
|
+
const tag = reader.uint32();
|
|
3461
|
+
switch (tag >>> 3) {
|
|
3462
|
+
case 1:
|
|
3463
|
+
if (tag !== 13) break;
|
|
3464
|
+
message.offsetToDest = reader.float();
|
|
3465
|
+
continue;
|
|
3466
|
+
case 2:
|
|
3467
|
+
if (tag !== 16) break;
|
|
3468
|
+
message.trafficStatus = reader.int32();
|
|
3469
|
+
continue;
|
|
3470
|
+
}
|
|
3471
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
3472
|
+
reader.skip(tag & 7);
|
|
3473
|
+
}
|
|
3474
|
+
return message;
|
|
3475
|
+
},
|
|
3476
|
+
fromJSON(object) {
|
|
3477
|
+
return {
|
|
3478
|
+
offsetToDest: isSet(object.offsetToDest) ? globalThis.Number(object.offsetToDest) : 0,
|
|
3479
|
+
trafficStatus: isSet(object.trafficStatus) ? navigationRouteResponse_TrafficStatusFromJSON(object.trafficStatus) : 0
|
|
3480
|
+
};
|
|
3481
|
+
},
|
|
3482
|
+
toJSON(message) {
|
|
3483
|
+
const obj = {};
|
|
3484
|
+
if (message.offsetToDest !== void 0) obj.offsetToDest = message.offsetToDest;
|
|
3485
|
+
if (message.trafficStatus !== void 0) obj.trafficStatus = navigationRouteResponse_TrafficStatusToJSON(message.trafficStatus);
|
|
3486
|
+
return obj;
|
|
3487
|
+
},
|
|
3488
|
+
create(base) {
|
|
3489
|
+
return NavigationRouteResponse_TrafficDetail.fromPartial(base ?? {});
|
|
3490
|
+
},
|
|
3491
|
+
fromPartial(object) {
|
|
3492
|
+
const message = createBaseNavigationRouteResponse_TrafficDetail();
|
|
3493
|
+
message.offsetToDest = object.offsetToDest ?? 0;
|
|
3494
|
+
message.trafficStatus = object.trafficStatus ?? 0;
|
|
3495
|
+
return message;
|
|
3496
|
+
}
|
|
3497
|
+
};
|
|
3498
|
+
function createBaseGetManagedChargingSitesResponse() {
|
|
3499
|
+
return { sites: [] };
|
|
3500
|
+
}
|
|
3501
|
+
const GetManagedChargingSitesResponse = {
|
|
3502
|
+
encode(message, writer = new _bufbuild_protobuf_wire.BinaryWriter()) {
|
|
3503
|
+
for (const v of message.sites) ManagedChargingSite.encode(v, writer.uint32(10).fork()).join();
|
|
3504
|
+
return writer;
|
|
3505
|
+
},
|
|
3506
|
+
decode(input, length) {
|
|
3507
|
+
const reader = input instanceof _bufbuild_protobuf_wire.BinaryReader ? input : new _bufbuild_protobuf_wire.BinaryReader(input);
|
|
3508
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
3509
|
+
const message = createBaseGetManagedChargingSitesResponse();
|
|
3510
|
+
while (reader.pos < end) {
|
|
3511
|
+
const tag = reader.uint32();
|
|
3512
|
+
switch (tag >>> 3) {
|
|
3513
|
+
case 1:
|
|
3514
|
+
if (tag !== 10) break;
|
|
3515
|
+
message.sites.push(ManagedChargingSite.decode(reader, reader.uint32()));
|
|
3516
|
+
continue;
|
|
3517
|
+
}
|
|
3518
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
3519
|
+
reader.skip(tag & 7);
|
|
3520
|
+
}
|
|
3521
|
+
return message;
|
|
3522
|
+
},
|
|
3523
|
+
fromJSON(object) {
|
|
3524
|
+
return { sites: globalThis.Array.isArray(object?.sites) ? object.sites.map((e) => ManagedChargingSite.fromJSON(e)) : [] };
|
|
3525
|
+
},
|
|
3526
|
+
toJSON(message) {
|
|
3527
|
+
const obj = {};
|
|
3528
|
+
if (message.sites?.length) obj.sites = message.sites.map((e) => ManagedChargingSite.toJSON(e));
|
|
3529
|
+
return obj;
|
|
3530
|
+
},
|
|
3531
|
+
create(base) {
|
|
3532
|
+
return GetManagedChargingSitesResponse.fromPartial(base ?? {});
|
|
3533
|
+
},
|
|
3534
|
+
fromPartial(object) {
|
|
3535
|
+
const message = createBaseGetManagedChargingSitesResponse();
|
|
3536
|
+
message.sites = object.sites?.map((e) => ManagedChargingSite.fromPartial(e)) || [];
|
|
3537
|
+
return message;
|
|
3538
|
+
}
|
|
3539
|
+
};
|
|
3540
|
+
function createBaseManagedChargingSiteAddedOrUpdated() {
|
|
3541
|
+
return {};
|
|
3542
|
+
}
|
|
3543
|
+
const ManagedChargingSiteAddedOrUpdated = {
|
|
3544
|
+
encode(_, writer = new _bufbuild_protobuf_wire.BinaryWriter()) {
|
|
3545
|
+
return writer;
|
|
3546
|
+
},
|
|
3547
|
+
decode(input, length) {
|
|
3548
|
+
const reader = input instanceof _bufbuild_protobuf_wire.BinaryReader ? input : new _bufbuild_protobuf_wire.BinaryReader(input);
|
|
3549
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
3550
|
+
const message = createBaseManagedChargingSiteAddedOrUpdated();
|
|
3551
|
+
while (reader.pos < end) {
|
|
3552
|
+
const tag = reader.uint32();
|
|
3553
|
+
switch (tag >>> 3) {}
|
|
3554
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
3555
|
+
reader.skip(tag & 7);
|
|
3556
|
+
}
|
|
3557
|
+
return message;
|
|
3558
|
+
},
|
|
3559
|
+
fromJSON(_) {
|
|
3560
|
+
return {};
|
|
3561
|
+
},
|
|
3562
|
+
toJSON(_) {
|
|
3563
|
+
return {};
|
|
3564
|
+
},
|
|
3565
|
+
create(base) {
|
|
3566
|
+
return ManagedChargingSiteAddedOrUpdated.fromPartial(base ?? {});
|
|
3567
|
+
},
|
|
3568
|
+
fromPartial(_) {
|
|
3569
|
+
return createBaseManagedChargingSiteAddedOrUpdated();
|
|
3570
|
+
}
|
|
3571
|
+
};
|
|
3572
|
+
function createBaseExistingManagedChargingSiteNearby() {
|
|
3573
|
+
return {};
|
|
3574
|
+
}
|
|
3575
|
+
const ExistingManagedChargingSiteNearby = {
|
|
3576
|
+
encode(_, writer = new _bufbuild_protobuf_wire.BinaryWriter()) {
|
|
3577
|
+
return writer;
|
|
3578
|
+
},
|
|
3579
|
+
decode(input, length) {
|
|
3580
|
+
const reader = input instanceof _bufbuild_protobuf_wire.BinaryReader ? input : new _bufbuild_protobuf_wire.BinaryReader(input);
|
|
3581
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
3582
|
+
const message = createBaseExistingManagedChargingSiteNearby();
|
|
3583
|
+
while (reader.pos < end) {
|
|
3584
|
+
const tag = reader.uint32();
|
|
3585
|
+
switch (tag >>> 3) {}
|
|
3586
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
3587
|
+
reader.skip(tag & 7);
|
|
3588
|
+
}
|
|
3589
|
+
return message;
|
|
3590
|
+
},
|
|
3591
|
+
fromJSON(_) {
|
|
3592
|
+
return {};
|
|
3593
|
+
},
|
|
3594
|
+
toJSON(_) {
|
|
3595
|
+
return {};
|
|
3596
|
+
},
|
|
3597
|
+
create(base) {
|
|
3598
|
+
return ExistingManagedChargingSiteNearby.fromPartial(base ?? {});
|
|
3599
|
+
},
|
|
3600
|
+
fromPartial(_) {
|
|
3601
|
+
return createBaseExistingManagedChargingSiteNearby();
|
|
3602
|
+
}
|
|
3603
|
+
};
|
|
3604
|
+
function createBaseAddManagedChargingSiteResponse() {
|
|
3605
|
+
return {
|
|
3606
|
+
addedOrUpdated: void 0,
|
|
3607
|
+
existingSiteNearby: void 0
|
|
3608
|
+
};
|
|
3609
|
+
}
|
|
3610
|
+
const AddManagedChargingSiteResponse = {
|
|
3611
|
+
encode(message, writer = new _bufbuild_protobuf_wire.BinaryWriter()) {
|
|
3612
|
+
if (message.addedOrUpdated !== void 0) ManagedChargingSiteAddedOrUpdated.encode(message.addedOrUpdated, writer.uint32(10).fork()).join();
|
|
3613
|
+
if (message.existingSiteNearby !== void 0) ExistingManagedChargingSiteNearby.encode(message.existingSiteNearby, writer.uint32(18).fork()).join();
|
|
3614
|
+
return writer;
|
|
3615
|
+
},
|
|
3616
|
+
decode(input, length) {
|
|
3617
|
+
const reader = input instanceof _bufbuild_protobuf_wire.BinaryReader ? input : new _bufbuild_protobuf_wire.BinaryReader(input);
|
|
3618
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
3619
|
+
const message = createBaseAddManagedChargingSiteResponse();
|
|
3620
|
+
while (reader.pos < end) {
|
|
3621
|
+
const tag = reader.uint32();
|
|
3622
|
+
switch (tag >>> 3) {
|
|
3623
|
+
case 1:
|
|
3624
|
+
if (tag !== 10) break;
|
|
3625
|
+
message.addedOrUpdated = ManagedChargingSiteAddedOrUpdated.decode(reader, reader.uint32());
|
|
3626
|
+
continue;
|
|
3627
|
+
case 2:
|
|
3628
|
+
if (tag !== 18) break;
|
|
3629
|
+
message.existingSiteNearby = ExistingManagedChargingSiteNearby.decode(reader, reader.uint32());
|
|
3630
|
+
continue;
|
|
3631
|
+
}
|
|
3632
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
3633
|
+
reader.skip(tag & 7);
|
|
3634
|
+
}
|
|
3635
|
+
return message;
|
|
3636
|
+
},
|
|
3637
|
+
fromJSON(object) {
|
|
3638
|
+
return {
|
|
3639
|
+
addedOrUpdated: isSet(object.addedOrUpdated) ? ManagedChargingSiteAddedOrUpdated.fromJSON(object.addedOrUpdated) : void 0,
|
|
3640
|
+
existingSiteNearby: isSet(object.existingSiteNearby) ? ExistingManagedChargingSiteNearby.fromJSON(object.existingSiteNearby) : void 0
|
|
3641
|
+
};
|
|
3642
|
+
},
|
|
3643
|
+
toJSON(message) {
|
|
3644
|
+
const obj = {};
|
|
3645
|
+
if (message.addedOrUpdated !== void 0) obj.addedOrUpdated = ManagedChargingSiteAddedOrUpdated.toJSON(message.addedOrUpdated);
|
|
3646
|
+
if (message.existingSiteNearby !== void 0) obj.existingSiteNearby = ExistingManagedChargingSiteNearby.toJSON(message.existingSiteNearby);
|
|
3647
|
+
return obj;
|
|
3648
|
+
},
|
|
3649
|
+
create(base) {
|
|
3650
|
+
return AddManagedChargingSiteResponse.fromPartial(base ?? {});
|
|
3651
|
+
},
|
|
3652
|
+
fromPartial(object) {
|
|
3653
|
+
const message = createBaseAddManagedChargingSiteResponse();
|
|
3654
|
+
message.addedOrUpdated = object.addedOrUpdated !== void 0 && object.addedOrUpdated !== null ? ManagedChargingSiteAddedOrUpdated.fromPartial(object.addedOrUpdated) : void 0;
|
|
3655
|
+
message.existingSiteNearby = object.existingSiteNearby !== void 0 && object.existingSiteNearby !== null ? ExistingManagedChargingSiteNearby.fromPartial(object.existingSiteNearby) : void 0;
|
|
3656
|
+
return message;
|
|
3657
|
+
}
|
|
3658
|
+
};
|
|
3659
|
+
function createBaseRequestTeslaAuthCommand() {
|
|
3660
|
+
return {
|
|
3661
|
+
clientId: "",
|
|
3662
|
+
unknown: "",
|
|
3663
|
+
returnScopedToken: false
|
|
3664
|
+
};
|
|
3665
|
+
}
|
|
3666
|
+
const RequestTeslaAuthCommand = {
|
|
3667
|
+
encode(message, writer = new _bufbuild_protobuf_wire.BinaryWriter()) {
|
|
3668
|
+
if (message.clientId !== "") writer.uint32(10).string(message.clientId);
|
|
3669
|
+
if (message.unknown !== "") writer.uint32(18).string(message.unknown);
|
|
3670
|
+
if (message.returnScopedToken !== false) writer.uint32(24).bool(message.returnScopedToken);
|
|
3671
|
+
return writer;
|
|
3672
|
+
},
|
|
3673
|
+
decode(input, length) {
|
|
3674
|
+
const reader = input instanceof _bufbuild_protobuf_wire.BinaryReader ? input : new _bufbuild_protobuf_wire.BinaryReader(input);
|
|
3675
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
3676
|
+
const message = createBaseRequestTeslaAuthCommand();
|
|
3677
|
+
while (reader.pos < end) {
|
|
3678
|
+
const tag = reader.uint32();
|
|
3679
|
+
switch (tag >>> 3) {
|
|
3680
|
+
case 1:
|
|
3681
|
+
if (tag !== 10) break;
|
|
3682
|
+
message.clientId = reader.string();
|
|
3683
|
+
continue;
|
|
3684
|
+
case 2:
|
|
3685
|
+
if (tag !== 18) break;
|
|
3686
|
+
message.unknown = reader.string();
|
|
3687
|
+
continue;
|
|
3688
|
+
case 3:
|
|
3689
|
+
if (tag !== 24) break;
|
|
3690
|
+
message.returnScopedToken = reader.bool();
|
|
3691
|
+
continue;
|
|
3692
|
+
}
|
|
3693
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
3694
|
+
reader.skip(tag & 7);
|
|
3695
|
+
}
|
|
3696
|
+
return message;
|
|
3697
|
+
},
|
|
3698
|
+
fromJSON(object) {
|
|
3699
|
+
return {
|
|
3700
|
+
clientId: isSet(object.clientId) ? globalThis.String(object.clientId) : "",
|
|
3701
|
+
unknown: isSet(object.unknown) ? globalThis.String(object.unknown) : "",
|
|
3702
|
+
returnScopedToken: isSet(object.returnScopedToken) ? globalThis.Boolean(object.returnScopedToken) : false
|
|
3703
|
+
};
|
|
3704
|
+
},
|
|
3705
|
+
toJSON(message) {
|
|
3706
|
+
const obj = {};
|
|
3707
|
+
if (message.clientId !== void 0) obj.clientId = message.clientId;
|
|
3708
|
+
if (message.unknown !== void 0) obj.unknown = message.unknown;
|
|
3709
|
+
if (message.returnScopedToken !== void 0) obj.returnScopedToken = message.returnScopedToken;
|
|
3710
|
+
return obj;
|
|
3711
|
+
},
|
|
3712
|
+
create(base) {
|
|
3713
|
+
return RequestTeslaAuthCommand.fromPartial(base ?? {});
|
|
3714
|
+
},
|
|
3715
|
+
fromPartial(object) {
|
|
3716
|
+
const message = createBaseRequestTeslaAuthCommand();
|
|
3717
|
+
message.clientId = object.clientId ?? "";
|
|
3718
|
+
message.unknown = object.unknown ?? "";
|
|
3719
|
+
message.returnScopedToken = object.returnScopedToken ?? false;
|
|
3720
|
+
return message;
|
|
3721
|
+
}
|
|
3722
|
+
};
|
|
3723
|
+
function createBaseMobileAppMessage() {
|
|
3724
|
+
return { requestTeslaAuthCommand: void 0 };
|
|
3725
|
+
}
|
|
3726
|
+
const MobileAppMessage = {
|
|
3727
|
+
encode(message, writer = new _bufbuild_protobuf_wire.BinaryWriter()) {
|
|
3728
|
+
if (message.requestTeslaAuthCommand !== void 0) RequestTeslaAuthCommand.encode(message.requestTeslaAuthCommand, writer.uint32(10).fork()).join();
|
|
3729
|
+
return writer;
|
|
3730
|
+
},
|
|
3731
|
+
decode(input, length) {
|
|
3732
|
+
const reader = input instanceof _bufbuild_protobuf_wire.BinaryReader ? input : new _bufbuild_protobuf_wire.BinaryReader(input);
|
|
3733
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
3734
|
+
const message = createBaseMobileAppMessage();
|
|
3735
|
+
while (reader.pos < end) {
|
|
3736
|
+
const tag = reader.uint32();
|
|
3737
|
+
switch (tag >>> 3) {
|
|
3738
|
+
case 1:
|
|
3739
|
+
if (tag !== 10) break;
|
|
3740
|
+
message.requestTeslaAuthCommand = RequestTeslaAuthCommand.decode(reader, reader.uint32());
|
|
3741
|
+
continue;
|
|
3742
|
+
}
|
|
3743
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
3744
|
+
reader.skip(tag & 7);
|
|
3745
|
+
}
|
|
3746
|
+
return message;
|
|
3747
|
+
},
|
|
3748
|
+
fromJSON(object) {
|
|
3749
|
+
return { requestTeslaAuthCommand: isSet(object.requestTeslaAuthCommand) ? RequestTeslaAuthCommand.fromJSON(object.requestTeslaAuthCommand) : void 0 };
|
|
3750
|
+
},
|
|
3751
|
+
toJSON(message) {
|
|
3752
|
+
const obj = {};
|
|
3753
|
+
if (message.requestTeslaAuthCommand !== void 0) obj.requestTeslaAuthCommand = RequestTeslaAuthCommand.toJSON(message.requestTeslaAuthCommand);
|
|
3754
|
+
return obj;
|
|
3755
|
+
},
|
|
3756
|
+
create(base) {
|
|
3757
|
+
return MobileAppMessage.fromPartial(base ?? {});
|
|
3758
|
+
},
|
|
3759
|
+
fromPartial(object) {
|
|
3760
|
+
const message = createBaseMobileAppMessage();
|
|
3761
|
+
message.requestTeslaAuthCommand = object.requestTeslaAuthCommand !== void 0 && object.requestTeslaAuthCommand !== null ? RequestTeslaAuthCommand.fromPartial(object.requestTeslaAuthCommand) : void 0;
|
|
3762
|
+
return message;
|
|
3763
|
+
}
|
|
3764
|
+
};
|
|
3765
|
+
function createBaseGetMessagesResponse() {
|
|
3766
|
+
return { mobileAppMessages: [] };
|
|
3767
|
+
}
|
|
3768
|
+
const GetMessagesResponse = {
|
|
3769
|
+
encode(message, writer = new _bufbuild_protobuf_wire.BinaryWriter()) {
|
|
3770
|
+
for (const v of message.mobileAppMessages) MobileAppMessage.encode(v, writer.uint32(10).fork()).join();
|
|
3771
|
+
return writer;
|
|
3772
|
+
},
|
|
3773
|
+
decode(input, length) {
|
|
3774
|
+
const reader = input instanceof _bufbuild_protobuf_wire.BinaryReader ? input : new _bufbuild_protobuf_wire.BinaryReader(input);
|
|
3775
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
3776
|
+
const message = createBaseGetMessagesResponse();
|
|
3777
|
+
while (reader.pos < end) {
|
|
3778
|
+
const tag = reader.uint32();
|
|
3779
|
+
switch (tag >>> 3) {
|
|
3780
|
+
case 1:
|
|
3781
|
+
if (tag !== 10) break;
|
|
3782
|
+
message.mobileAppMessages.push(MobileAppMessage.decode(reader, reader.uint32()));
|
|
3783
|
+
continue;
|
|
3784
|
+
}
|
|
3785
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
3786
|
+
reader.skip(tag & 7);
|
|
3787
|
+
}
|
|
3788
|
+
return message;
|
|
3789
|
+
},
|
|
3790
|
+
fromJSON(object) {
|
|
3791
|
+
return { mobileAppMessages: globalThis.Array.isArray(object?.mobileAppMessages) ? object.mobileAppMessages.map((e) => MobileAppMessage.fromJSON(e)) : [] };
|
|
3792
|
+
},
|
|
3793
|
+
toJSON(message) {
|
|
3794
|
+
const obj = {};
|
|
3795
|
+
if (message.mobileAppMessages?.length) obj.mobileAppMessages = message.mobileAppMessages.map((e) => MobileAppMessage.toJSON(e));
|
|
3796
|
+
return obj;
|
|
3797
|
+
},
|
|
3798
|
+
create(base) {
|
|
3799
|
+
return GetMessagesResponse.fromPartial(base ?? {});
|
|
3800
|
+
},
|
|
3801
|
+
fromPartial(object) {
|
|
3802
|
+
const message = createBaseGetMessagesResponse();
|
|
3803
|
+
message.mobileAppMessages = object.mobileAppMessages?.map((e) => MobileAppMessage.fromPartial(e)) || [];
|
|
3804
|
+
return message;
|
|
3805
|
+
}
|
|
3806
|
+
};
|
|
3807
|
+
function createBaseProfile() {
|
|
3808
|
+
return {
|
|
3809
|
+
unknown1: "",
|
|
3810
|
+
unknown2: ""
|
|
3811
|
+
};
|
|
3812
|
+
}
|
|
3813
|
+
const Profile = {
|
|
3814
|
+
encode(message, writer = new _bufbuild_protobuf_wire.BinaryWriter()) {
|
|
3815
|
+
if (message.unknown1 !== "") writer.uint32(10).string(message.unknown1);
|
|
3816
|
+
if (message.unknown2 !== "") writer.uint32(18).string(message.unknown2);
|
|
3817
|
+
return writer;
|
|
3818
|
+
},
|
|
3819
|
+
decode(input, length) {
|
|
3820
|
+
const reader = input instanceof _bufbuild_protobuf_wire.BinaryReader ? input : new _bufbuild_protobuf_wire.BinaryReader(input);
|
|
3821
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
3822
|
+
const message = createBaseProfile();
|
|
3823
|
+
while (reader.pos < end) {
|
|
3824
|
+
const tag = reader.uint32();
|
|
3825
|
+
switch (tag >>> 3) {
|
|
3826
|
+
case 1:
|
|
3827
|
+
if (tag !== 10) break;
|
|
3828
|
+
message.unknown1 = reader.string();
|
|
3829
|
+
continue;
|
|
3830
|
+
case 2:
|
|
3831
|
+
if (tag !== 18) break;
|
|
3832
|
+
message.unknown2 = reader.string();
|
|
3833
|
+
continue;
|
|
3834
|
+
}
|
|
3835
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
3836
|
+
reader.skip(tag & 7);
|
|
3837
|
+
}
|
|
3838
|
+
return message;
|
|
3839
|
+
},
|
|
3840
|
+
fromJSON(object) {
|
|
3841
|
+
return {
|
|
3842
|
+
unknown1: isSet(object.unknown1) ? globalThis.String(object.unknown1) : "",
|
|
3843
|
+
unknown2: isSet(object.unknown2) ? globalThis.String(object.unknown2) : ""
|
|
3844
|
+
};
|
|
3845
|
+
},
|
|
3846
|
+
toJSON(message) {
|
|
3847
|
+
const obj = {};
|
|
3848
|
+
if (message.unknown1 !== void 0) obj.unknown1 = message.unknown1;
|
|
3849
|
+
if (message.unknown2 !== void 0) obj.unknown2 = message.unknown2;
|
|
3850
|
+
return obj;
|
|
3851
|
+
},
|
|
3852
|
+
create(base) {
|
|
3853
|
+
return Profile.fromPartial(base ?? {});
|
|
3854
|
+
},
|
|
3855
|
+
fromPartial(object) {
|
|
3856
|
+
const message = createBaseProfile();
|
|
3857
|
+
message.unknown1 = object.unknown1 ?? "";
|
|
3858
|
+
message.unknown2 = object.unknown2 ?? "";
|
|
3859
|
+
return message;
|
|
3860
|
+
}
|
|
3861
|
+
};
|
|
3862
|
+
function createBaseGetLocalProfilesResponse() {
|
|
3863
|
+
return { profiles: [] };
|
|
3864
|
+
}
|
|
3865
|
+
const GetLocalProfilesResponse = {
|
|
3866
|
+
encode(message, writer = new _bufbuild_protobuf_wire.BinaryWriter()) {
|
|
3867
|
+
for (const v of message.profiles) Profile.encode(v, writer.uint32(10).fork()).join();
|
|
3868
|
+
return writer;
|
|
3869
|
+
},
|
|
3870
|
+
decode(input, length) {
|
|
3871
|
+
const reader = input instanceof _bufbuild_protobuf_wire.BinaryReader ? input : new _bufbuild_protobuf_wire.BinaryReader(input);
|
|
3872
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
3873
|
+
const message = createBaseGetLocalProfilesResponse();
|
|
3874
|
+
while (reader.pos < end) {
|
|
3875
|
+
const tag = reader.uint32();
|
|
3876
|
+
switch (tag >>> 3) {
|
|
3877
|
+
case 1:
|
|
3878
|
+
if (tag !== 10) break;
|
|
3879
|
+
message.profiles.push(Profile.decode(reader, reader.uint32()));
|
|
3880
|
+
continue;
|
|
3881
|
+
}
|
|
3882
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
3883
|
+
reader.skip(tag & 7);
|
|
3884
|
+
}
|
|
3885
|
+
return message;
|
|
3886
|
+
},
|
|
3887
|
+
fromJSON(object) {
|
|
3888
|
+
return { profiles: globalThis.Array.isArray(object?.profiles) ? object.profiles.map((e) => Profile.fromJSON(e)) : [] };
|
|
3889
|
+
},
|
|
3890
|
+
toJSON(message) {
|
|
3891
|
+
const obj = {};
|
|
3892
|
+
if (message.profiles?.length) obj.profiles = message.profiles.map((e) => Profile.toJSON(e));
|
|
3893
|
+
return obj;
|
|
3894
|
+
},
|
|
3895
|
+
create(base) {
|
|
3896
|
+
return GetLocalProfilesResponse.fromPartial(base ?? {});
|
|
3897
|
+
},
|
|
3898
|
+
fromPartial(object) {
|
|
3899
|
+
const message = createBaseGetLocalProfilesResponse();
|
|
3900
|
+
message.profiles = object.profiles?.map((e) => Profile.fromPartial(e)) || [];
|
|
3901
|
+
return message;
|
|
3902
|
+
}
|
|
3903
|
+
};
|
|
3904
|
+
function createBaseKeyInfo() {
|
|
3905
|
+
return {
|
|
3906
|
+
unknown1: "",
|
|
3907
|
+
unknown2: "",
|
|
3908
|
+
publicKey: /* @__PURE__ */ new Uint8Array(0),
|
|
3909
|
+
lastSeen: void 0,
|
|
3910
|
+
role: 0,
|
|
3911
|
+
formFactor: 0
|
|
3912
|
+
};
|
|
3913
|
+
}
|
|
3914
|
+
const KeyInfo = {
|
|
3915
|
+
encode(message, writer = new _bufbuild_protobuf_wire.BinaryWriter()) {
|
|
3916
|
+
if (message.unknown1 !== "") writer.uint32(10).string(message.unknown1);
|
|
3917
|
+
if (message.unknown2 !== "") writer.uint32(18).string(message.unknown2);
|
|
3918
|
+
if (message.publicKey.length !== 0) writer.uint32(26).bytes(message.publicKey);
|
|
3919
|
+
if (message.lastSeen !== void 0) require_command_google_protobuf_timestamp.Timestamp.encode(toTimestamp(message.lastSeen), writer.uint32(34).fork()).join();
|
|
3920
|
+
if (message.role !== 0) writer.uint32(40).int32(message.role);
|
|
3921
|
+
if (message.formFactor !== 0) writer.uint32(48).int32(message.formFactor);
|
|
3922
|
+
return writer;
|
|
3923
|
+
},
|
|
3924
|
+
decode(input, length) {
|
|
3925
|
+
const reader = input instanceof _bufbuild_protobuf_wire.BinaryReader ? input : new _bufbuild_protobuf_wire.BinaryReader(input);
|
|
3926
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
3927
|
+
const message = createBaseKeyInfo();
|
|
3928
|
+
while (reader.pos < end) {
|
|
3929
|
+
const tag = reader.uint32();
|
|
3930
|
+
switch (tag >>> 3) {
|
|
3931
|
+
case 1:
|
|
3932
|
+
if (tag !== 10) break;
|
|
3933
|
+
message.unknown1 = reader.string();
|
|
3934
|
+
continue;
|
|
3935
|
+
case 2:
|
|
3936
|
+
if (tag !== 18) break;
|
|
3937
|
+
message.unknown2 = reader.string();
|
|
3938
|
+
continue;
|
|
3939
|
+
case 3:
|
|
3940
|
+
if (tag !== 26) break;
|
|
3941
|
+
message.publicKey = reader.bytes();
|
|
3942
|
+
continue;
|
|
3943
|
+
case 4:
|
|
3944
|
+
if (tag !== 34) break;
|
|
3945
|
+
message.lastSeen = fromTimestamp(require_command_google_protobuf_timestamp.Timestamp.decode(reader, reader.uint32()));
|
|
3946
|
+
continue;
|
|
3947
|
+
case 5:
|
|
3948
|
+
if (tag !== 40) break;
|
|
3949
|
+
message.role = reader.int32();
|
|
3950
|
+
continue;
|
|
3951
|
+
case 6:
|
|
3952
|
+
if (tag !== 48) break;
|
|
3953
|
+
message.formFactor = reader.int32();
|
|
3954
|
+
continue;
|
|
3955
|
+
}
|
|
3956
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
3957
|
+
reader.skip(tag & 7);
|
|
3958
|
+
}
|
|
3959
|
+
return message;
|
|
3960
|
+
},
|
|
3961
|
+
fromJSON(object) {
|
|
3962
|
+
return {
|
|
3963
|
+
unknown1: isSet(object.unknown1) ? globalThis.String(object.unknown1) : "",
|
|
3964
|
+
unknown2: isSet(object.unknown2) ? globalThis.String(object.unknown2) : "",
|
|
3965
|
+
publicKey: isSet(object.publicKey) ? bytesFromBase64(object.publicKey) : /* @__PURE__ */ new Uint8Array(0),
|
|
3966
|
+
lastSeen: isSet(object.lastSeen) ? fromJsonTimestamp(object.lastSeen) : void 0,
|
|
3967
|
+
role: isSet(object.role) ? require_command_keys.roleFromJSON(object.role) : 0,
|
|
3968
|
+
formFactor: isSet(object.formFactor) ? require_command_vcsec.keyFormFactorFromJSON(object.formFactor) : 0
|
|
3969
|
+
};
|
|
3970
|
+
},
|
|
3971
|
+
toJSON(message) {
|
|
3972
|
+
const obj = {};
|
|
3973
|
+
if (message.unknown1 !== void 0) obj.unknown1 = message.unknown1;
|
|
3974
|
+
if (message.unknown2 !== void 0) obj.unknown2 = message.unknown2;
|
|
3975
|
+
if (message.publicKey !== void 0) obj.publicKey = base64FromBytes(message.publicKey);
|
|
3976
|
+
if (message.lastSeen !== void 0) obj.lastSeen = message.lastSeen.toISOString();
|
|
3977
|
+
if (message.role !== void 0) obj.role = require_command_keys.roleToJSON(message.role);
|
|
3978
|
+
if (message.formFactor !== void 0) obj.formFactor = require_command_vcsec.keyFormFactorToJSON(message.formFactor);
|
|
3979
|
+
return obj;
|
|
3980
|
+
},
|
|
3981
|
+
create(base) {
|
|
3982
|
+
return KeyInfo.fromPartial(base ?? {});
|
|
3983
|
+
},
|
|
3984
|
+
fromPartial(object) {
|
|
3985
|
+
const message = createBaseKeyInfo();
|
|
3986
|
+
message.unknown1 = object.unknown1 ?? "";
|
|
3987
|
+
message.unknown2 = object.unknown2 ?? "";
|
|
3988
|
+
message.publicKey = object.publicKey ?? /* @__PURE__ */ new Uint8Array(0);
|
|
3989
|
+
message.lastSeen = object.lastSeen ?? void 0;
|
|
3990
|
+
message.role = object.role ?? 0;
|
|
3991
|
+
message.formFactor = object.formFactor ?? 0;
|
|
3992
|
+
return message;
|
|
3993
|
+
}
|
|
3994
|
+
};
|
|
3995
|
+
function createBaseKeysInfoResponse() {
|
|
3996
|
+
return { keysInfo: [] };
|
|
3997
|
+
}
|
|
3998
|
+
const KeysInfoResponse = {
|
|
3999
|
+
encode(message, writer = new _bufbuild_protobuf_wire.BinaryWriter()) {
|
|
4000
|
+
for (const v of message.keysInfo) KeyInfo.encode(v, writer.uint32(10).fork()).join();
|
|
4001
|
+
return writer;
|
|
4002
|
+
},
|
|
4003
|
+
decode(input, length) {
|
|
4004
|
+
const reader = input instanceof _bufbuild_protobuf_wire.BinaryReader ? input : new _bufbuild_protobuf_wire.BinaryReader(input);
|
|
4005
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
4006
|
+
const message = createBaseKeysInfoResponse();
|
|
4007
|
+
while (reader.pos < end) {
|
|
4008
|
+
const tag = reader.uint32();
|
|
4009
|
+
switch (tag >>> 3) {
|
|
4010
|
+
case 1:
|
|
4011
|
+
if (tag !== 10) break;
|
|
4012
|
+
message.keysInfo.push(KeyInfo.decode(reader, reader.uint32()));
|
|
4013
|
+
continue;
|
|
4014
|
+
}
|
|
4015
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
4016
|
+
reader.skip(tag & 7);
|
|
4017
|
+
}
|
|
4018
|
+
return message;
|
|
4019
|
+
},
|
|
4020
|
+
fromJSON(object) {
|
|
4021
|
+
return { keysInfo: globalThis.Array.isArray(object?.keysInfo) ? object.keysInfo.map((e) => KeyInfo.fromJSON(e)) : [] };
|
|
4022
|
+
},
|
|
4023
|
+
toJSON(message) {
|
|
4024
|
+
const obj = {};
|
|
4025
|
+
if (message.keysInfo?.length) obj.keysInfo = message.keysInfo.map((e) => KeyInfo.toJSON(e));
|
|
4026
|
+
return obj;
|
|
4027
|
+
},
|
|
4028
|
+
create(base) {
|
|
4029
|
+
return KeysInfoResponse.fromPartial(base ?? {});
|
|
4030
|
+
},
|
|
4031
|
+
fromPartial(object) {
|
|
4032
|
+
const message = createBaseKeysInfoResponse();
|
|
4033
|
+
message.keysInfo = object.keysInfo?.map((e) => KeyInfo.fromPartial(e)) || [];
|
|
4034
|
+
return message;
|
|
4035
|
+
}
|
|
4036
|
+
};
|
|
4037
|
+
function createBaseBandwidthTestResponse() {
|
|
4038
|
+
return {
|
|
4039
|
+
data: /* @__PURE__ */ new Uint8Array(0),
|
|
4040
|
+
requestedSize: 0
|
|
4041
|
+
};
|
|
4042
|
+
}
|
|
4043
|
+
const BandwidthTestResponse = {
|
|
4044
|
+
encode(message, writer = new _bufbuild_protobuf_wire.BinaryWriter()) {
|
|
4045
|
+
if (message.data.length !== 0) writer.uint32(10).bytes(message.data);
|
|
4046
|
+
if (message.requestedSize !== 0) writer.uint32(16).uint32(message.requestedSize);
|
|
4047
|
+
return writer;
|
|
4048
|
+
},
|
|
4049
|
+
decode(input, length) {
|
|
4050
|
+
const reader = input instanceof _bufbuild_protobuf_wire.BinaryReader ? input : new _bufbuild_protobuf_wire.BinaryReader(input);
|
|
4051
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
4052
|
+
const message = createBaseBandwidthTestResponse();
|
|
4053
|
+
while (reader.pos < end) {
|
|
4054
|
+
const tag = reader.uint32();
|
|
4055
|
+
switch (tag >>> 3) {
|
|
4056
|
+
case 1:
|
|
4057
|
+
if (tag !== 10) break;
|
|
4058
|
+
message.data = reader.bytes();
|
|
4059
|
+
continue;
|
|
4060
|
+
case 2:
|
|
4061
|
+
if (tag !== 16) break;
|
|
4062
|
+
message.requestedSize = reader.uint32();
|
|
4063
|
+
continue;
|
|
4064
|
+
}
|
|
4065
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
4066
|
+
reader.skip(tag & 7);
|
|
4067
|
+
}
|
|
4068
|
+
return message;
|
|
4069
|
+
},
|
|
4070
|
+
fromJSON(object) {
|
|
4071
|
+
return {
|
|
4072
|
+
data: isSet(object.data) ? bytesFromBase64(object.data) : /* @__PURE__ */ new Uint8Array(0),
|
|
4073
|
+
requestedSize: isSet(object.requestedSize) ? globalThis.Number(object.requestedSize) : 0
|
|
4074
|
+
};
|
|
4075
|
+
},
|
|
4076
|
+
toJSON(message) {
|
|
4077
|
+
const obj = {};
|
|
4078
|
+
if (message.data !== void 0) obj.data = base64FromBytes(message.data);
|
|
4079
|
+
if (message.requestedSize !== void 0) obj.requestedSize = Math.round(message.requestedSize);
|
|
4080
|
+
return obj;
|
|
4081
|
+
},
|
|
4082
|
+
create(base) {
|
|
4083
|
+
return BandwidthTestResponse.fromPartial(base ?? {});
|
|
4084
|
+
},
|
|
4085
|
+
fromPartial(object) {
|
|
4086
|
+
const message = createBaseBandwidthTestResponse();
|
|
4087
|
+
message.data = object.data ?? /* @__PURE__ */ new Uint8Array(0);
|
|
4088
|
+
message.requestedSize = object.requestedSize ?? 0;
|
|
3025
4089
|
return message;
|
|
3026
4090
|
}
|
|
3027
4091
|
};
|
|
@@ -10932,11 +11996,13 @@ function isSet(value) {
|
|
|
10932
11996
|
exports.Action = Action;
|
|
10933
11997
|
exports.ActionStatus = ActionStatus;
|
|
10934
11998
|
exports.AddManagedChargingSiteRequest = AddManagedChargingSiteRequest;
|
|
11999
|
+
exports.AddManagedChargingSiteResponse = AddManagedChargingSiteResponse;
|
|
10935
12000
|
exports.AutoSeatClimateAction = AutoSeatClimateAction;
|
|
10936
12001
|
exports.AutoSeatClimateAction_AutoSeatPositionE = AutoSeatClimateAction_AutoSeatPositionE;
|
|
10937
12002
|
exports.AutoSeatClimateAction_CarSeat = AutoSeatClimateAction_CarSeat;
|
|
10938
12003
|
exports.AutoStwHeatAction = AutoStwHeatAction;
|
|
10939
12004
|
exports.BandwidthTest = BandwidthTest;
|
|
12005
|
+
exports.BandwidthTestResponse = BandwidthTestResponse;
|
|
10940
12006
|
exports.BatchRemoveChargeSchedulesAction = BatchRemoveChargeSchedulesAction;
|
|
10941
12007
|
exports.BatchRemovePreconditionSchedulesAction = BatchRemovePreconditionSchedulesAction;
|
|
10942
12008
|
exports.BluetoothClassicPairingRequest = BluetoothClassicPairingRequest;
|
|
@@ -10958,6 +12024,7 @@ exports.DrivingSetSpeedLimitAction = DrivingSetSpeedLimitAction;
|
|
|
10958
12024
|
exports.DrivingSpeedLimitAction = DrivingSpeedLimitAction;
|
|
10959
12025
|
exports.EncryptedData = EncryptedData;
|
|
10960
12026
|
exports.EraseUserDataAction = EraseUserDataAction;
|
|
12027
|
+
exports.ExistingManagedChargingSiteNearby = ExistingManagedChargingSiteNearby;
|
|
10961
12028
|
exports.FetchKeysInfoAction = FetchKeysInfoAction;
|
|
10962
12029
|
exports.FormatUSBAction = FormatUSBAction;
|
|
10963
12030
|
exports.GetAlertState = GetAlertState;
|
|
@@ -10972,11 +12039,14 @@ exports.GetDriveState = GetDriveState;
|
|
|
10972
12039
|
exports.GetGuiSettings = GetGuiSettings;
|
|
10973
12040
|
exports.GetLightShowState = GetLightShowState;
|
|
10974
12041
|
exports.GetLocalProfilesForVaultUuidAction = GetLocalProfilesForVaultUuidAction;
|
|
12042
|
+
exports.GetLocalProfilesResponse = GetLocalProfilesResponse;
|
|
10975
12043
|
exports.GetLocationState = GetLocationState;
|
|
10976
12044
|
exports.GetManagedChargingSitesRequest = GetManagedChargingSitesRequest;
|
|
12045
|
+
exports.GetManagedChargingSitesResponse = GetManagedChargingSitesResponse;
|
|
10977
12046
|
exports.GetMediaDetailState = GetMediaDetailState;
|
|
10978
12047
|
exports.GetMediaState = GetMediaState;
|
|
10979
12048
|
exports.GetMessagesAction = GetMessagesAction;
|
|
12049
|
+
exports.GetMessagesResponse = GetMessagesResponse;
|
|
10980
12050
|
exports.GetNearbyChargingSites = GetNearbyChargingSites;
|
|
10981
12051
|
exports.GetParentalControlsState = GetParentalControlsState;
|
|
10982
12052
|
exports.GetParkedAccessoryState = GetParkedAccessoryState;
|
|
@@ -11006,7 +12076,10 @@ exports.HvacSteeringWheelHeaterAction = HvacSteeringWheelHeaterAction;
|
|
|
11006
12076
|
exports.HvacTemperatureAdjustmentAction = HvacTemperatureAdjustmentAction;
|
|
11007
12077
|
exports.HvacTemperatureAdjustmentAction_HvacTemperatureZone = HvacTemperatureAdjustmentAction_HvacTemperatureZone;
|
|
11008
12078
|
exports.HvacTemperatureAdjustmentAction_Temperature = HvacTemperatureAdjustmentAction_Temperature;
|
|
12079
|
+
exports.KeyInfo = KeyInfo;
|
|
12080
|
+
exports.KeysInfoResponse = KeysInfoResponse;
|
|
11009
12081
|
exports.ManagedChargingSite = ManagedChargingSite;
|
|
12082
|
+
exports.ManagedChargingSiteAddedOrUpdated = ManagedChargingSiteAddedOrUpdated;
|
|
11010
12083
|
exports.ManagerType = ManagerType;
|
|
11011
12084
|
exports.MediaNextFavorite = MediaNextFavorite;
|
|
11012
12085
|
exports.MediaNextTrack = MediaNextTrack;
|
|
@@ -11014,12 +12087,16 @@ exports.MediaPlayAction = MediaPlayAction;
|
|
|
11014
12087
|
exports.MediaPreviousFavorite = MediaPreviousFavorite;
|
|
11015
12088
|
exports.MediaPreviousTrack = MediaPreviousTrack;
|
|
11016
12089
|
exports.MediaUpdateVolume = MediaUpdateVolume;
|
|
12090
|
+
exports.MobileAppMessage = MobileAppMessage;
|
|
11017
12091
|
exports.NavigationGpsDestinationRequest = NavigationGpsDestinationRequest;
|
|
11018
12092
|
exports.NavigationGpsDestinationRequest_RemoteNavTripOrder = NavigationGpsDestinationRequest_RemoteNavTripOrder;
|
|
11019
12093
|
exports.NavigationGpsRequest = NavigationGpsRequest;
|
|
11020
12094
|
exports.NavigationGpsRequest_RemoteNavTripOrder = NavigationGpsRequest_RemoteNavTripOrder;
|
|
11021
12095
|
exports.NavigationRequest = NavigationRequest;
|
|
11022
12096
|
exports.NavigationRouteAction = NavigationRouteAction;
|
|
12097
|
+
exports.NavigationRouteResponse = NavigationRouteResponse;
|
|
12098
|
+
exports.NavigationRouteResponse_TrafficDetail = NavigationRouteResponse_TrafficDetail;
|
|
12099
|
+
exports.NavigationRouteResponse_TrafficStatus = NavigationRouteResponse_TrafficStatus;
|
|
11023
12100
|
exports.NavigationSuperchargerRequest = NavigationSuperchargerRequest;
|
|
11024
12101
|
exports.NavigationWaypointsRequest = NavigationWaypointsRequest;
|
|
11025
12102
|
exports.NavigationWaypointsRequest_TripPlanOptions = NavigationWaypointsRequest_TripPlanOptions;
|
|
@@ -11033,12 +12110,16 @@ exports.ParentalControlsEnableSettingsAction_ParentalControlsSettingE = Parental
|
|
|
11033
12110
|
exports.ParentalControlsSetSpeedLimitAction = ParentalControlsSetSpeedLimitAction;
|
|
11034
12111
|
exports.PhoneUnitPreferences = PhoneUnitPreferences;
|
|
11035
12112
|
exports.PiiKeyRequest = PiiKeyRequest;
|
|
12113
|
+
exports.PiiKeyResponse = PiiKeyResponse;
|
|
11036
12114
|
exports.Ping = Ping;
|
|
12115
|
+
exports.Profile = Profile;
|
|
11037
12116
|
exports.PseudonymSyncRequest = PseudonymSyncRequest;
|
|
12117
|
+
exports.PseudonymSyncResponse = PseudonymSyncResponse;
|
|
11038
12118
|
exports.RemoteStartDrive = RemoteStartDrive;
|
|
11039
12119
|
exports.RemoveChargeScheduleAction = RemoveChargeScheduleAction;
|
|
11040
12120
|
exports.RemoveManagedChargingSiteRequest = RemoveManagedChargingSiteRequest;
|
|
11041
12121
|
exports.RemovePreconditionScheduleAction = RemovePreconditionScheduleAction;
|
|
12122
|
+
exports.RequestTeslaAuthCommand = RequestTeslaAuthCommand;
|
|
11042
12123
|
exports.Response = Response;
|
|
11043
12124
|
exports.ResultReason = ResultReason;
|
|
11044
12125
|
exports.ScheduledChargingAction = ScheduledChargingAction;
|
|
@@ -11122,6 +12203,7 @@ exports.VehicleControlTriggerHomelinkAction = VehicleControlTriggerHomelinkActio
|
|
|
11122
12203
|
exports.VehicleControlWindowAction = VehicleControlWindowAction;
|
|
11123
12204
|
exports.VehicleDataAck = VehicleDataAck;
|
|
11124
12205
|
exports.VehicleDataSubscription = VehicleDataSubscription;
|
|
12206
|
+
exports.VehicleDataSubscriptionResponse = VehicleDataSubscriptionResponse;
|
|
11125
12207
|
exports.VehicleDataSubscription_PiiKeyRequest = VehicleDataSubscription_PiiKeyRequest;
|
|
11126
12208
|
exports.VehicleImageDataChunkRequest = VehicleImageDataChunkRequest;
|
|
11127
12209
|
exports.VehicleImageRequest = VehicleImageRequest;
|
|
@@ -11129,6 +12211,7 @@ exports.VehicleImageRequest_Type = VehicleImageRequest_Type;
|
|
|
11129
12211
|
exports.VideoRequestAction = VideoRequestAction;
|
|
11130
12212
|
exports.VitalsAck = VitalsAck;
|
|
11131
12213
|
exports.VitalsSubscription = VitalsSubscription;
|
|
12214
|
+
exports.VitalsSubscriptionResponse = VitalsSubscriptionResponse;
|
|
11132
12215
|
exports.autoSeatClimateAction_AutoSeatPositionEFromJSON = autoSeatClimateAction_AutoSeatPositionEFromJSON;
|
|
11133
12216
|
exports.autoSeatClimateAction_AutoSeatPositionEToJSON = autoSeatClimateAction_AutoSeatPositionEToJSON;
|
|
11134
12217
|
exports.hvacClimateKeeperAction_ClimateKeeperActionEFromJSON = hvacClimateKeeperAction_ClimateKeeperActionEFromJSON;
|
|
@@ -11145,6 +12228,8 @@ exports.navigationGpsDestinationRequest_RemoteNavTripOrderFromJSON = navigationG
|
|
|
11145
12228
|
exports.navigationGpsDestinationRequest_RemoteNavTripOrderToJSON = navigationGpsDestinationRequest_RemoteNavTripOrderToJSON;
|
|
11146
12229
|
exports.navigationGpsRequest_RemoteNavTripOrderFromJSON = navigationGpsRequest_RemoteNavTripOrderFromJSON;
|
|
11147
12230
|
exports.navigationGpsRequest_RemoteNavTripOrderToJSON = navigationGpsRequest_RemoteNavTripOrderToJSON;
|
|
12231
|
+
exports.navigationRouteResponse_TrafficStatusFromJSON = navigationRouteResponse_TrafficStatusFromJSON;
|
|
12232
|
+
exports.navigationRouteResponse_TrafficStatusToJSON = navigationRouteResponse_TrafficStatusToJSON;
|
|
11148
12233
|
exports.operationStatusEFromJSON = operationStatusEFromJSON;
|
|
11149
12234
|
exports.operationStatusEToJSON = operationStatusEToJSON;
|
|
11150
12235
|
exports.parentalControlsEnableSettingsAction_ParentalControlsSettingEFromJSON = parentalControlsEnableSettingsAction_ParentalControlsSettingEFromJSON;
|