@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.
- package/dist/command/car_server.cjs +1266 -129
- package/dist/command/car_server.d.cts +129 -1
- package/dist/command/car_server.d.mts +129 -1
- package/dist/command/car_server.mjs +1245 -130
- 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";
|
|
@@ -2732,179 +2768,1248 @@ const GetLocationState = {
|
|
|
2732
2768
|
const message = createBaseGetLocationState();
|
|
2733
2769
|
while (reader.pos < end) {
|
|
2734
2770
|
const tag = reader.uint32();
|
|
2735
|
-
switch (tag >>> 3) {}
|
|
2771
|
+
switch (tag >>> 3) {}
|
|
2772
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
2773
|
+
reader.skip(tag & 7);
|
|
2774
|
+
}
|
|
2775
|
+
return message;
|
|
2776
|
+
},
|
|
2777
|
+
fromJSON(_) {
|
|
2778
|
+
return {};
|
|
2779
|
+
},
|
|
2780
|
+
toJSON(_) {
|
|
2781
|
+
return {};
|
|
2782
|
+
},
|
|
2783
|
+
create(base) {
|
|
2784
|
+
return GetLocationState.fromPartial(base ?? {});
|
|
2785
|
+
},
|
|
2786
|
+
fromPartial(_) {
|
|
2787
|
+
return createBaseGetLocationState();
|
|
2788
|
+
}
|
|
2789
|
+
};
|
|
2790
|
+
function createBaseGetClosuresState() {
|
|
2791
|
+
return {};
|
|
2792
|
+
}
|
|
2793
|
+
const GetClosuresState = {
|
|
2794
|
+
encode(_, writer = new _bufbuild_protobuf_wire.BinaryWriter()) {
|
|
2795
|
+
return writer;
|
|
2796
|
+
},
|
|
2797
|
+
decode(input, length) {
|
|
2798
|
+
const reader = input instanceof _bufbuild_protobuf_wire.BinaryReader ? input : new _bufbuild_protobuf_wire.BinaryReader(input);
|
|
2799
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
2800
|
+
const message = createBaseGetClosuresState();
|
|
2801
|
+
while (reader.pos < end) {
|
|
2802
|
+
const tag = reader.uint32();
|
|
2803
|
+
switch (tag >>> 3) {}
|
|
2804
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
2805
|
+
reader.skip(tag & 7);
|
|
2806
|
+
}
|
|
2807
|
+
return message;
|
|
2808
|
+
},
|
|
2809
|
+
fromJSON(_) {
|
|
2810
|
+
return {};
|
|
2811
|
+
},
|
|
2812
|
+
toJSON(_) {
|
|
2813
|
+
return {};
|
|
2814
|
+
},
|
|
2815
|
+
create(base) {
|
|
2816
|
+
return GetClosuresState.fromPartial(base ?? {});
|
|
2817
|
+
},
|
|
2818
|
+
fromPartial(_) {
|
|
2819
|
+
return createBaseGetClosuresState();
|
|
2820
|
+
}
|
|
2821
|
+
};
|
|
2822
|
+
function createBaseGetChargeScheduleState() {
|
|
2823
|
+
return {};
|
|
2824
|
+
}
|
|
2825
|
+
const GetChargeScheduleState = {
|
|
2826
|
+
encode(_, writer = new _bufbuild_protobuf_wire.BinaryWriter()) {
|
|
2827
|
+
return writer;
|
|
2828
|
+
},
|
|
2829
|
+
decode(input, length) {
|
|
2830
|
+
const reader = input instanceof _bufbuild_protobuf_wire.BinaryReader ? input : new _bufbuild_protobuf_wire.BinaryReader(input);
|
|
2831
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
2832
|
+
const message = createBaseGetChargeScheduleState();
|
|
2833
|
+
while (reader.pos < end) {
|
|
2834
|
+
const tag = reader.uint32();
|
|
2835
|
+
switch (tag >>> 3) {}
|
|
2836
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
2837
|
+
reader.skip(tag & 7);
|
|
2838
|
+
}
|
|
2839
|
+
return message;
|
|
2840
|
+
},
|
|
2841
|
+
fromJSON(_) {
|
|
2842
|
+
return {};
|
|
2843
|
+
},
|
|
2844
|
+
toJSON(_) {
|
|
2845
|
+
return {};
|
|
2846
|
+
},
|
|
2847
|
+
create(base) {
|
|
2848
|
+
return GetChargeScheduleState.fromPartial(base ?? {});
|
|
2849
|
+
},
|
|
2850
|
+
fromPartial(_) {
|
|
2851
|
+
return createBaseGetChargeScheduleState();
|
|
2852
|
+
}
|
|
2853
|
+
};
|
|
2854
|
+
function createBaseGetPreconditioningScheduleState() {
|
|
2855
|
+
return {};
|
|
2856
|
+
}
|
|
2857
|
+
const GetPreconditioningScheduleState = {
|
|
2858
|
+
encode(_, writer = new _bufbuild_protobuf_wire.BinaryWriter()) {
|
|
2859
|
+
return writer;
|
|
2860
|
+
},
|
|
2861
|
+
decode(input, length) {
|
|
2862
|
+
const reader = input instanceof _bufbuild_protobuf_wire.BinaryReader ? input : new _bufbuild_protobuf_wire.BinaryReader(input);
|
|
2863
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
2864
|
+
const message = createBaseGetPreconditioningScheduleState();
|
|
2865
|
+
while (reader.pos < end) {
|
|
2866
|
+
const tag = reader.uint32();
|
|
2867
|
+
switch (tag >>> 3) {}
|
|
2868
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
2869
|
+
reader.skip(tag & 7);
|
|
2870
|
+
}
|
|
2871
|
+
return message;
|
|
2872
|
+
},
|
|
2873
|
+
fromJSON(_) {
|
|
2874
|
+
return {};
|
|
2875
|
+
},
|
|
2876
|
+
toJSON(_) {
|
|
2877
|
+
return {};
|
|
2878
|
+
},
|
|
2879
|
+
create(base) {
|
|
2880
|
+
return GetPreconditioningScheduleState.fromPartial(base ?? {});
|
|
2881
|
+
},
|
|
2882
|
+
fromPartial(_) {
|
|
2883
|
+
return createBaseGetPreconditioningScheduleState();
|
|
2884
|
+
}
|
|
2885
|
+
};
|
|
2886
|
+
function createBaseGetParentalControlsState() {
|
|
2887
|
+
return {};
|
|
2888
|
+
}
|
|
2889
|
+
const GetParentalControlsState = {
|
|
2890
|
+
encode(_, writer = new _bufbuild_protobuf_wire.BinaryWriter()) {
|
|
2891
|
+
return writer;
|
|
2892
|
+
},
|
|
2893
|
+
decode(input, length) {
|
|
2894
|
+
const reader = input instanceof _bufbuild_protobuf_wire.BinaryReader ? input : new _bufbuild_protobuf_wire.BinaryReader(input);
|
|
2895
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
2896
|
+
const message = createBaseGetParentalControlsState();
|
|
2897
|
+
while (reader.pos < end) {
|
|
2898
|
+
const tag = reader.uint32();
|
|
2899
|
+
switch (tag >>> 3) {}
|
|
2900
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
2901
|
+
reader.skip(tag & 7);
|
|
2902
|
+
}
|
|
2903
|
+
return message;
|
|
2904
|
+
},
|
|
2905
|
+
fromJSON(_) {
|
|
2906
|
+
return {};
|
|
2907
|
+
},
|
|
2908
|
+
toJSON(_) {
|
|
2909
|
+
return {};
|
|
2910
|
+
},
|
|
2911
|
+
create(base) {
|
|
2912
|
+
return GetParentalControlsState.fromPartial(base ?? {});
|
|
2913
|
+
},
|
|
2914
|
+
fromPartial(_) {
|
|
2915
|
+
return createBaseGetParentalControlsState();
|
|
2916
|
+
}
|
|
2917
|
+
};
|
|
2918
|
+
function createBaseEraseUserDataAction() {
|
|
2919
|
+
return {
|
|
2920
|
+
reason: "",
|
|
2921
|
+
triggerOnPark: false
|
|
2922
|
+
};
|
|
2923
|
+
}
|
|
2924
|
+
const EraseUserDataAction = {
|
|
2925
|
+
encode(message, writer = new _bufbuild_protobuf_wire.BinaryWriter()) {
|
|
2926
|
+
if (message.reason !== "") writer.uint32(10).string(message.reason);
|
|
2927
|
+
if (message.triggerOnPark !== false) writer.uint32(16).bool(message.triggerOnPark);
|
|
2928
|
+
return writer;
|
|
2929
|
+
},
|
|
2930
|
+
decode(input, length) {
|
|
2931
|
+
const reader = input instanceof _bufbuild_protobuf_wire.BinaryReader ? input : new _bufbuild_protobuf_wire.BinaryReader(input);
|
|
2932
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
2933
|
+
const message = createBaseEraseUserDataAction();
|
|
2934
|
+
while (reader.pos < end) {
|
|
2935
|
+
const tag = reader.uint32();
|
|
2936
|
+
switch (tag >>> 3) {
|
|
2937
|
+
case 1:
|
|
2938
|
+
if (tag !== 10) break;
|
|
2939
|
+
message.reason = reader.string();
|
|
2940
|
+
continue;
|
|
2941
|
+
case 2:
|
|
2942
|
+
if (tag !== 16) break;
|
|
2943
|
+
message.triggerOnPark = reader.bool();
|
|
2944
|
+
continue;
|
|
2945
|
+
}
|
|
2946
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
2947
|
+
reader.skip(tag & 7);
|
|
2948
|
+
}
|
|
2949
|
+
return message;
|
|
2950
|
+
},
|
|
2951
|
+
fromJSON(object) {
|
|
2952
|
+
return {
|
|
2953
|
+
reason: isSet(object.reason) ? globalThis.String(object.reason) : "",
|
|
2954
|
+
triggerOnPark: isSet(object.triggerOnPark) ? globalThis.Boolean(object.triggerOnPark) : false
|
|
2955
|
+
};
|
|
2956
|
+
},
|
|
2957
|
+
toJSON(message) {
|
|
2958
|
+
const obj = {};
|
|
2959
|
+
if (message.reason !== void 0) obj.reason = message.reason;
|
|
2960
|
+
if (message.triggerOnPark !== void 0) obj.triggerOnPark = message.triggerOnPark;
|
|
2961
|
+
return obj;
|
|
2962
|
+
},
|
|
2963
|
+
create(base) {
|
|
2964
|
+
return EraseUserDataAction.fromPartial(base ?? {});
|
|
2965
|
+
},
|
|
2966
|
+
fromPartial(object) {
|
|
2967
|
+
const message = createBaseEraseUserDataAction();
|
|
2968
|
+
message.reason = object.reason ?? "";
|
|
2969
|
+
message.triggerOnPark = object.triggerOnPark ?? false;
|
|
2970
|
+
return message;
|
|
2971
|
+
}
|
|
2972
|
+
};
|
|
2973
|
+
function createBaseResponse() {
|
|
2974
|
+
return {
|
|
2975
|
+
actionStatus: void 0,
|
|
2976
|
+
vehicleData: void 0,
|
|
2977
|
+
getSessionInfoResponse: void 0,
|
|
2978
|
+
streamMessage: void 0,
|
|
2979
|
+
getNearbyChargingSites: void 0,
|
|
2980
|
+
vehicleDataSubscriptionResponse: void 0,
|
|
2981
|
+
vitalsSubscriptionResponse: void 0,
|
|
2982
|
+
ping: void 0,
|
|
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
|
|
2993
|
+
};
|
|
2994
|
+
}
|
|
2995
|
+
const Response = {
|
|
2996
|
+
encode(message, writer = new _bufbuild_protobuf_wire.BinaryWriter()) {
|
|
2997
|
+
if (message.actionStatus !== void 0) ActionStatus.encode(message.actionStatus, writer.uint32(10).fork()).join();
|
|
2998
|
+
if (message.vehicleData !== void 0) require_command_vehicle.VehicleData.encode(message.vehicleData, writer.uint32(18).fork()).join();
|
|
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();
|
|
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();
|
|
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();
|
|
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();
|
|
3015
|
+
return writer;
|
|
3016
|
+
},
|
|
3017
|
+
decode(input, length) {
|
|
3018
|
+
const reader = input instanceof _bufbuild_protobuf_wire.BinaryReader ? input : new _bufbuild_protobuf_wire.BinaryReader(input);
|
|
3019
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
3020
|
+
const message = createBaseResponse();
|
|
3021
|
+
while (reader.pos < end) {
|
|
3022
|
+
const tag = reader.uint32();
|
|
3023
|
+
switch (tag >>> 3) {
|
|
3024
|
+
case 1:
|
|
3025
|
+
if (tag !== 10) break;
|
|
3026
|
+
message.actionStatus = ActionStatus.decode(reader, reader.uint32());
|
|
3027
|
+
continue;
|
|
3028
|
+
case 2:
|
|
3029
|
+
if (tag !== 18) break;
|
|
3030
|
+
message.vehicleData = require_command_vehicle.VehicleData.decode(reader, reader.uint32());
|
|
3031
|
+
continue;
|
|
3032
|
+
case 3:
|
|
3033
|
+
if (tag !== 26) break;
|
|
3034
|
+
message.getSessionInfoResponse = require_command_signatures.SessionInfo.decode(reader, reader.uint32());
|
|
3035
|
+
continue;
|
|
3036
|
+
case 4:
|
|
3037
|
+
if (tag !== 34) break;
|
|
3038
|
+
message.streamMessage = StreamMessage.decode(reader, reader.uint32());
|
|
3039
|
+
continue;
|
|
3040
|
+
case 5:
|
|
3041
|
+
if (tag !== 42) break;
|
|
3042
|
+
message.getNearbyChargingSites = NearbyChargingSites.decode(reader, reader.uint32());
|
|
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;
|
|
3052
|
+
case 9:
|
|
3053
|
+
if (tag !== 74) break;
|
|
3054
|
+
message.ping = Ping.decode(reader, reader.uint32());
|
|
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;
|
|
3072
|
+
case 15:
|
|
3073
|
+
if (tag !== 122) break;
|
|
3074
|
+
message.getChargeOnSolarFeatureResponse = GetChargeOnSolarFeatureResponse.decode(reader, reader.uint32());
|
|
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;
|
|
3096
|
+
}
|
|
3097
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
3098
|
+
reader.skip(tag & 7);
|
|
3099
|
+
}
|
|
3100
|
+
return message;
|
|
3101
|
+
},
|
|
3102
|
+
fromJSON(object) {
|
|
3103
|
+
return {
|
|
3104
|
+
actionStatus: isSet(object.actionStatus) ? ActionStatus.fromJSON(object.actionStatus) : void 0,
|
|
3105
|
+
vehicleData: isSet(object.vehicleData) ? require_command_vehicle.VehicleData.fromJSON(object.vehicleData) : void 0,
|
|
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,
|
|
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,
|
|
3111
|
+
ping: isSet(object.ping) ? Ping.fromJSON(object.ping) : void 0,
|
|
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
|
|
3122
|
+
};
|
|
3123
|
+
},
|
|
3124
|
+
toJSON(message) {
|
|
3125
|
+
const obj = {};
|
|
3126
|
+
if (message.actionStatus !== void 0) obj.actionStatus = ActionStatus.toJSON(message.actionStatus);
|
|
3127
|
+
if (message.vehicleData !== void 0) obj.vehicleData = require_command_vehicle.VehicleData.toJSON(message.vehicleData);
|
|
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);
|
|
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);
|
|
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);
|
|
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);
|
|
3144
|
+
return obj;
|
|
3145
|
+
},
|
|
3146
|
+
create(base) {
|
|
3147
|
+
return Response.fromPartial(base ?? {});
|
|
3148
|
+
},
|
|
3149
|
+
fromPartial(object) {
|
|
3150
|
+
const message = createBaseResponse();
|
|
3151
|
+
message.actionStatus = object.actionStatus !== void 0 && object.actionStatus !== null ? ActionStatus.fromPartial(object.actionStatus) : void 0;
|
|
3152
|
+
message.vehicleData = object.vehicleData !== void 0 && object.vehicleData !== null ? require_command_vehicle.VehicleData.fromPartial(object.vehicleData) : void 0;
|
|
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;
|
|
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;
|
|
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;
|
|
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
|
+
}
|
|
2736
3743
|
if ((tag & 7) === 4 || tag === 0) break;
|
|
2737
3744
|
reader.skip(tag & 7);
|
|
2738
3745
|
}
|
|
2739
3746
|
return message;
|
|
2740
3747
|
},
|
|
2741
|
-
fromJSON(
|
|
2742
|
-
return {};
|
|
3748
|
+
fromJSON(object) {
|
|
3749
|
+
return { requestTeslaAuthCommand: isSet(object.requestTeslaAuthCommand) ? RequestTeslaAuthCommand.fromJSON(object.requestTeslaAuthCommand) : void 0 };
|
|
2743
3750
|
},
|
|
2744
|
-
toJSON(
|
|
2745
|
-
|
|
3751
|
+
toJSON(message) {
|
|
3752
|
+
const obj = {};
|
|
3753
|
+
if (message.requestTeslaAuthCommand !== void 0) obj.requestTeslaAuthCommand = RequestTeslaAuthCommand.toJSON(message.requestTeslaAuthCommand);
|
|
3754
|
+
return obj;
|
|
2746
3755
|
},
|
|
2747
3756
|
create(base) {
|
|
2748
|
-
return
|
|
3757
|
+
return MobileAppMessage.fromPartial(base ?? {});
|
|
2749
3758
|
},
|
|
2750
|
-
fromPartial(
|
|
2751
|
-
|
|
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;
|
|
2752
3763
|
}
|
|
2753
3764
|
};
|
|
2754
|
-
function
|
|
2755
|
-
return {};
|
|
3765
|
+
function createBaseGetMessagesResponse() {
|
|
3766
|
+
return { mobileAppMessages: [] };
|
|
2756
3767
|
}
|
|
2757
|
-
const
|
|
2758
|
-
encode(
|
|
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();
|
|
2759
3771
|
return writer;
|
|
2760
3772
|
},
|
|
2761
3773
|
decode(input, length) {
|
|
2762
3774
|
const reader = input instanceof _bufbuild_protobuf_wire.BinaryReader ? input : new _bufbuild_protobuf_wire.BinaryReader(input);
|
|
2763
3775
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
2764
|
-
const message =
|
|
3776
|
+
const message = createBaseGetMessagesResponse();
|
|
2765
3777
|
while (reader.pos < end) {
|
|
2766
3778
|
const tag = reader.uint32();
|
|
2767
|
-
switch (tag >>> 3) {
|
|
3779
|
+
switch (tag >>> 3) {
|
|
3780
|
+
case 1:
|
|
3781
|
+
if (tag !== 10) break;
|
|
3782
|
+
message.mobileAppMessages.push(MobileAppMessage.decode(reader, reader.uint32()));
|
|
3783
|
+
continue;
|
|
3784
|
+
}
|
|
2768
3785
|
if ((tag & 7) === 4 || tag === 0) break;
|
|
2769
3786
|
reader.skip(tag & 7);
|
|
2770
3787
|
}
|
|
2771
3788
|
return message;
|
|
2772
3789
|
},
|
|
2773
|
-
fromJSON(
|
|
2774
|
-
return {};
|
|
3790
|
+
fromJSON(object) {
|
|
3791
|
+
return { mobileAppMessages: globalThis.Array.isArray(object?.mobileAppMessages) ? object.mobileAppMessages.map((e) => MobileAppMessage.fromJSON(e)) : [] };
|
|
2775
3792
|
},
|
|
2776
|
-
toJSON(
|
|
2777
|
-
|
|
3793
|
+
toJSON(message) {
|
|
3794
|
+
const obj = {};
|
|
3795
|
+
if (message.mobileAppMessages?.length) obj.mobileAppMessages = message.mobileAppMessages.map((e) => MobileAppMessage.toJSON(e));
|
|
3796
|
+
return obj;
|
|
2778
3797
|
},
|
|
2779
3798
|
create(base) {
|
|
2780
|
-
return
|
|
3799
|
+
return GetMessagesResponse.fromPartial(base ?? {});
|
|
2781
3800
|
},
|
|
2782
|
-
fromPartial(
|
|
2783
|
-
|
|
3801
|
+
fromPartial(object) {
|
|
3802
|
+
const message = createBaseGetMessagesResponse();
|
|
3803
|
+
message.mobileAppMessages = object.mobileAppMessages?.map((e) => MobileAppMessage.fromPartial(e)) || [];
|
|
3804
|
+
return message;
|
|
2784
3805
|
}
|
|
2785
3806
|
};
|
|
2786
|
-
function
|
|
2787
|
-
return {
|
|
3807
|
+
function createBaseProfile() {
|
|
3808
|
+
return {
|
|
3809
|
+
unknown1: "",
|
|
3810
|
+
unknown2: ""
|
|
3811
|
+
};
|
|
2788
3812
|
}
|
|
2789
|
-
const
|
|
2790
|
-
encode(
|
|
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);
|
|
2791
3817
|
return writer;
|
|
2792
3818
|
},
|
|
2793
3819
|
decode(input, length) {
|
|
2794
3820
|
const reader = input instanceof _bufbuild_protobuf_wire.BinaryReader ? input : new _bufbuild_protobuf_wire.BinaryReader(input);
|
|
2795
3821
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
2796
|
-
const message =
|
|
3822
|
+
const message = createBaseProfile();
|
|
2797
3823
|
while (reader.pos < end) {
|
|
2798
3824
|
const tag = reader.uint32();
|
|
2799
|
-
switch (tag >>> 3) {
|
|
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
|
+
}
|
|
2800
3835
|
if ((tag & 7) === 4 || tag === 0) break;
|
|
2801
3836
|
reader.skip(tag & 7);
|
|
2802
3837
|
}
|
|
2803
3838
|
return message;
|
|
2804
3839
|
},
|
|
2805
|
-
fromJSON(
|
|
2806
|
-
return {
|
|
3840
|
+
fromJSON(object) {
|
|
3841
|
+
return {
|
|
3842
|
+
unknown1: isSet(object.unknown1) ? globalThis.String(object.unknown1) : "",
|
|
3843
|
+
unknown2: isSet(object.unknown2) ? globalThis.String(object.unknown2) : ""
|
|
3844
|
+
};
|
|
2807
3845
|
},
|
|
2808
|
-
toJSON(
|
|
2809
|
-
|
|
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;
|
|
2810
3851
|
},
|
|
2811
3852
|
create(base) {
|
|
2812
|
-
return
|
|
3853
|
+
return Profile.fromPartial(base ?? {});
|
|
2813
3854
|
},
|
|
2814
|
-
fromPartial(
|
|
2815
|
-
|
|
3855
|
+
fromPartial(object) {
|
|
3856
|
+
const message = createBaseProfile();
|
|
3857
|
+
message.unknown1 = object.unknown1 ?? "";
|
|
3858
|
+
message.unknown2 = object.unknown2 ?? "";
|
|
3859
|
+
return message;
|
|
2816
3860
|
}
|
|
2817
3861
|
};
|
|
2818
|
-
function
|
|
2819
|
-
return {};
|
|
3862
|
+
function createBaseGetLocalProfilesResponse() {
|
|
3863
|
+
return { profiles: [] };
|
|
2820
3864
|
}
|
|
2821
|
-
const
|
|
2822
|
-
encode(
|
|
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();
|
|
2823
3868
|
return writer;
|
|
2824
3869
|
},
|
|
2825
3870
|
decode(input, length) {
|
|
2826
3871
|
const reader = input instanceof _bufbuild_protobuf_wire.BinaryReader ? input : new _bufbuild_protobuf_wire.BinaryReader(input);
|
|
2827
3872
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
2828
|
-
const message =
|
|
3873
|
+
const message = createBaseGetLocalProfilesResponse();
|
|
2829
3874
|
while (reader.pos < end) {
|
|
2830
3875
|
const tag = reader.uint32();
|
|
2831
|
-
switch (tag >>> 3) {
|
|
3876
|
+
switch (tag >>> 3) {
|
|
3877
|
+
case 1:
|
|
3878
|
+
if (tag !== 10) break;
|
|
3879
|
+
message.profiles.push(Profile.decode(reader, reader.uint32()));
|
|
3880
|
+
continue;
|
|
3881
|
+
}
|
|
2832
3882
|
if ((tag & 7) === 4 || tag === 0) break;
|
|
2833
3883
|
reader.skip(tag & 7);
|
|
2834
3884
|
}
|
|
2835
3885
|
return message;
|
|
2836
3886
|
},
|
|
2837
|
-
fromJSON(
|
|
2838
|
-
return {};
|
|
3887
|
+
fromJSON(object) {
|
|
3888
|
+
return { profiles: globalThis.Array.isArray(object?.profiles) ? object.profiles.map((e) => Profile.fromJSON(e)) : [] };
|
|
2839
3889
|
},
|
|
2840
|
-
toJSON(
|
|
2841
|
-
|
|
3890
|
+
toJSON(message) {
|
|
3891
|
+
const obj = {};
|
|
3892
|
+
if (message.profiles?.length) obj.profiles = message.profiles.map((e) => Profile.toJSON(e));
|
|
3893
|
+
return obj;
|
|
2842
3894
|
},
|
|
2843
3895
|
create(base) {
|
|
2844
|
-
return
|
|
3896
|
+
return GetLocalProfilesResponse.fromPartial(base ?? {});
|
|
2845
3897
|
},
|
|
2846
|
-
fromPartial(
|
|
2847
|
-
|
|
3898
|
+
fromPartial(object) {
|
|
3899
|
+
const message = createBaseGetLocalProfilesResponse();
|
|
3900
|
+
message.profiles = object.profiles?.map((e) => Profile.fromPartial(e)) || [];
|
|
3901
|
+
return message;
|
|
2848
3902
|
}
|
|
2849
3903
|
};
|
|
2850
|
-
function
|
|
2851
|
-
return {
|
|
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
|
+
};
|
|
2852
3913
|
}
|
|
2853
|
-
const
|
|
2854
|
-
encode(
|
|
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);
|
|
2855
3922
|
return writer;
|
|
2856
3923
|
},
|
|
2857
3924
|
decode(input, length) {
|
|
2858
3925
|
const reader = input instanceof _bufbuild_protobuf_wire.BinaryReader ? input : new _bufbuild_protobuf_wire.BinaryReader(input);
|
|
2859
3926
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
2860
|
-
const message =
|
|
3927
|
+
const message = createBaseKeyInfo();
|
|
2861
3928
|
while (reader.pos < end) {
|
|
2862
3929
|
const tag = reader.uint32();
|
|
2863
|
-
switch (tag >>> 3) {
|
|
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
|
+
}
|
|
2864
3956
|
if ((tag & 7) === 4 || tag === 0) break;
|
|
2865
3957
|
reader.skip(tag & 7);
|
|
2866
3958
|
}
|
|
2867
3959
|
return message;
|
|
2868
3960
|
},
|
|
2869
|
-
fromJSON(
|
|
2870
|
-
return {
|
|
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
|
+
};
|
|
2871
3970
|
},
|
|
2872
|
-
toJSON(
|
|
2873
|
-
|
|
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;
|
|
2874
3980
|
},
|
|
2875
3981
|
create(base) {
|
|
2876
|
-
return
|
|
3982
|
+
return KeyInfo.fromPartial(base ?? {});
|
|
2877
3983
|
},
|
|
2878
|
-
fromPartial(
|
|
2879
|
-
|
|
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;
|
|
2880
3993
|
}
|
|
2881
3994
|
};
|
|
2882
|
-
function
|
|
2883
|
-
return {
|
|
2884
|
-
reason: "",
|
|
2885
|
-
triggerOnPark: false
|
|
2886
|
-
};
|
|
3995
|
+
function createBaseKeysInfoResponse() {
|
|
3996
|
+
return { keysInfo: [] };
|
|
2887
3997
|
}
|
|
2888
|
-
const
|
|
3998
|
+
const KeysInfoResponse = {
|
|
2889
3999
|
encode(message, writer = new _bufbuild_protobuf_wire.BinaryWriter()) {
|
|
2890
|
-
|
|
2891
|
-
if (message.triggerOnPark !== false) writer.uint32(16).bool(message.triggerOnPark);
|
|
4000
|
+
for (const v of message.keysInfo) KeyInfo.encode(v, writer.uint32(10).fork()).join();
|
|
2892
4001
|
return writer;
|
|
2893
4002
|
},
|
|
2894
4003
|
decode(input, length) {
|
|
2895
4004
|
const reader = input instanceof _bufbuild_protobuf_wire.BinaryReader ? input : new _bufbuild_protobuf_wire.BinaryReader(input);
|
|
2896
4005
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
2897
|
-
const message =
|
|
4006
|
+
const message = createBaseKeysInfoResponse();
|
|
2898
4007
|
while (reader.pos < end) {
|
|
2899
4008
|
const tag = reader.uint32();
|
|
2900
4009
|
switch (tag >>> 3) {
|
|
2901
4010
|
case 1:
|
|
2902
4011
|
if (tag !== 10) break;
|
|
2903
|
-
message.
|
|
2904
|
-
continue;
|
|
2905
|
-
case 2:
|
|
2906
|
-
if (tag !== 16) break;
|
|
2907
|
-
message.triggerOnPark = reader.bool();
|
|
4012
|
+
message.keysInfo.push(KeyInfo.decode(reader, reader.uint32()));
|
|
2908
4013
|
continue;
|
|
2909
4014
|
}
|
|
2910
4015
|
if ((tag & 7) === 4 || tag === 0) break;
|
|
@@ -2913,71 +4018,48 @@ const EraseUserDataAction = {
|
|
|
2913
4018
|
return message;
|
|
2914
4019
|
},
|
|
2915
4020
|
fromJSON(object) {
|
|
2916
|
-
return {
|
|
2917
|
-
reason: isSet(object.reason) ? globalThis.String(object.reason) : "",
|
|
2918
|
-
triggerOnPark: isSet(object.triggerOnPark) ? globalThis.Boolean(object.triggerOnPark) : false
|
|
2919
|
-
};
|
|
4021
|
+
return { keysInfo: globalThis.Array.isArray(object?.keysInfo) ? object.keysInfo.map((e) => KeyInfo.fromJSON(e)) : [] };
|
|
2920
4022
|
},
|
|
2921
4023
|
toJSON(message) {
|
|
2922
4024
|
const obj = {};
|
|
2923
|
-
if (message.
|
|
2924
|
-
if (message.triggerOnPark !== void 0) obj.triggerOnPark = message.triggerOnPark;
|
|
4025
|
+
if (message.keysInfo?.length) obj.keysInfo = message.keysInfo.map((e) => KeyInfo.toJSON(e));
|
|
2925
4026
|
return obj;
|
|
2926
4027
|
},
|
|
2927
4028
|
create(base) {
|
|
2928
|
-
return
|
|
4029
|
+
return KeysInfoResponse.fromPartial(base ?? {});
|
|
2929
4030
|
},
|
|
2930
4031
|
fromPartial(object) {
|
|
2931
|
-
const message =
|
|
2932
|
-
message.
|
|
2933
|
-
message.triggerOnPark = object.triggerOnPark ?? false;
|
|
4032
|
+
const message = createBaseKeysInfoResponse();
|
|
4033
|
+
message.keysInfo = object.keysInfo?.map((e) => KeyInfo.fromPartial(e)) || [];
|
|
2934
4034
|
return message;
|
|
2935
4035
|
}
|
|
2936
4036
|
};
|
|
2937
|
-
function
|
|
4037
|
+
function createBaseBandwidthTestResponse() {
|
|
2938
4038
|
return {
|
|
2939
|
-
|
|
2940
|
-
|
|
2941
|
-
getSessionInfoResponse: void 0,
|
|
2942
|
-
getNearbyChargingSites: void 0,
|
|
2943
|
-
ping: void 0
|
|
4039
|
+
data: /* @__PURE__ */ new Uint8Array(0),
|
|
4040
|
+
requestedSize: 0
|
|
2944
4041
|
};
|
|
2945
4042
|
}
|
|
2946
|
-
const
|
|
4043
|
+
const BandwidthTestResponse = {
|
|
2947
4044
|
encode(message, writer = new _bufbuild_protobuf_wire.BinaryWriter()) {
|
|
2948
|
-
if (message.
|
|
2949
|
-
if (message.
|
|
2950
|
-
if (message.getSessionInfoResponse !== void 0) require_command_signatures.SessionInfo.encode(message.getSessionInfoResponse, writer.uint32(26).fork()).join();
|
|
2951
|
-
if (message.getNearbyChargingSites !== void 0) NearbyChargingSites.encode(message.getNearbyChargingSites, writer.uint32(42).fork()).join();
|
|
2952
|
-
if (message.ping !== void 0) Ping.encode(message.ping, writer.uint32(74).fork()).join();
|
|
4045
|
+
if (message.data.length !== 0) writer.uint32(10).bytes(message.data);
|
|
4046
|
+
if (message.requestedSize !== 0) writer.uint32(16).uint32(message.requestedSize);
|
|
2953
4047
|
return writer;
|
|
2954
4048
|
},
|
|
2955
4049
|
decode(input, length) {
|
|
2956
4050
|
const reader = input instanceof _bufbuild_protobuf_wire.BinaryReader ? input : new _bufbuild_protobuf_wire.BinaryReader(input);
|
|
2957
4051
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
2958
|
-
const message =
|
|
4052
|
+
const message = createBaseBandwidthTestResponse();
|
|
2959
4053
|
while (reader.pos < end) {
|
|
2960
4054
|
const tag = reader.uint32();
|
|
2961
4055
|
switch (tag >>> 3) {
|
|
2962
4056
|
case 1:
|
|
2963
4057
|
if (tag !== 10) break;
|
|
2964
|
-
message.
|
|
4058
|
+
message.data = reader.bytes();
|
|
2965
4059
|
continue;
|
|
2966
4060
|
case 2:
|
|
2967
|
-
if (tag !==
|
|
2968
|
-
message.
|
|
2969
|
-
continue;
|
|
2970
|
-
case 3:
|
|
2971
|
-
if (tag !== 26) break;
|
|
2972
|
-
message.getSessionInfoResponse = require_command_signatures.SessionInfo.decode(reader, reader.uint32());
|
|
2973
|
-
continue;
|
|
2974
|
-
case 5:
|
|
2975
|
-
if (tag !== 42) break;
|
|
2976
|
-
message.getNearbyChargingSites = NearbyChargingSites.decode(reader, reader.uint32());
|
|
2977
|
-
continue;
|
|
2978
|
-
case 9:
|
|
2979
|
-
if (tag !== 74) break;
|
|
2980
|
-
message.ping = Ping.decode(reader, reader.uint32());
|
|
4061
|
+
if (tag !== 16) break;
|
|
4062
|
+
message.requestedSize = reader.uint32();
|
|
2981
4063
|
continue;
|
|
2982
4064
|
}
|
|
2983
4065
|
if ((tag & 7) === 4 || tag === 0) break;
|
|
@@ -2987,32 +4069,23 @@ const Response = {
|
|
|
2987
4069
|
},
|
|
2988
4070
|
fromJSON(object) {
|
|
2989
4071
|
return {
|
|
2990
|
-
|
|
2991
|
-
|
|
2992
|
-
getSessionInfoResponse: isSet(object.getSessionInfoResponse) ? require_command_signatures.SessionInfo.fromJSON(object.getSessionInfoResponse) : void 0,
|
|
2993
|
-
getNearbyChargingSites: isSet(object.getNearbyChargingSites) ? NearbyChargingSites.fromJSON(object.getNearbyChargingSites) : void 0,
|
|
2994
|
-
ping: isSet(object.ping) ? Ping.fromJSON(object.ping) : void 0
|
|
4072
|
+
data: isSet(object.data) ? bytesFromBase64(object.data) : /* @__PURE__ */ new Uint8Array(0),
|
|
4073
|
+
requestedSize: isSet(object.requestedSize) ? globalThis.Number(object.requestedSize) : 0
|
|
2995
4074
|
};
|
|
2996
4075
|
},
|
|
2997
4076
|
toJSON(message) {
|
|
2998
4077
|
const obj = {};
|
|
2999
|
-
if (message.
|
|
3000
|
-
if (message.
|
|
3001
|
-
if (message.getSessionInfoResponse !== void 0) obj.getSessionInfoResponse = require_command_signatures.SessionInfo.toJSON(message.getSessionInfoResponse);
|
|
3002
|
-
if (message.getNearbyChargingSites !== void 0) obj.getNearbyChargingSites = NearbyChargingSites.toJSON(message.getNearbyChargingSites);
|
|
3003
|
-
if (message.ping !== void 0) obj.ping = Ping.toJSON(message.ping);
|
|
4078
|
+
if (message.data !== void 0) obj.data = base64FromBytes(message.data);
|
|
4079
|
+
if (message.requestedSize !== void 0) obj.requestedSize = Math.round(message.requestedSize);
|
|
3004
4080
|
return obj;
|
|
3005
4081
|
},
|
|
3006
4082
|
create(base) {
|
|
3007
|
-
return
|
|
4083
|
+
return BandwidthTestResponse.fromPartial(base ?? {});
|
|
3008
4084
|
},
|
|
3009
4085
|
fromPartial(object) {
|
|
3010
|
-
const message =
|
|
3011
|
-
message.
|
|
3012
|
-
message.
|
|
3013
|
-
message.getSessionInfoResponse = object.getSessionInfoResponse !== void 0 && object.getSessionInfoResponse !== null ? require_command_signatures.SessionInfo.fromPartial(object.getSessionInfoResponse) : void 0;
|
|
3014
|
-
message.getNearbyChargingSites = object.getNearbyChargingSites !== void 0 && object.getNearbyChargingSites !== null ? NearbyChargingSites.fromPartial(object.getNearbyChargingSites) : void 0;
|
|
3015
|
-
message.ping = object.ping !== void 0 && object.ping !== null ? Ping.fromPartial(object.ping) : void 0;
|
|
4086
|
+
const message = createBaseBandwidthTestResponse();
|
|
4087
|
+
message.data = object.data ?? /* @__PURE__ */ new Uint8Array(0);
|
|
4088
|
+
message.requestedSize = object.requestedSize ?? 0;
|
|
3016
4089
|
return message;
|
|
3017
4090
|
}
|
|
3018
4091
|
};
|
|
@@ -8529,6 +9602,48 @@ const GetChargeOnSolarFeatureRequest = {
|
|
|
8529
9602
|
return createBaseGetChargeOnSolarFeatureRequest();
|
|
8530
9603
|
}
|
|
8531
9604
|
};
|
|
9605
|
+
function createBaseGetChargeOnSolarFeatureResponse() {
|
|
9606
|
+
return { chargeOnSolar: void 0 };
|
|
9607
|
+
}
|
|
9608
|
+
const GetChargeOnSolarFeatureResponse = {
|
|
9609
|
+
encode(message, writer = new _bufbuild_protobuf_wire.BinaryWriter()) {
|
|
9610
|
+
if (message.chargeOnSolar !== void 0) ChargeOnSolarFeature.encode(message.chargeOnSolar, writer.uint32(10).fork()).join();
|
|
9611
|
+
return writer;
|
|
9612
|
+
},
|
|
9613
|
+
decode(input, length) {
|
|
9614
|
+
const reader = input instanceof _bufbuild_protobuf_wire.BinaryReader ? input : new _bufbuild_protobuf_wire.BinaryReader(input);
|
|
9615
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
9616
|
+
const message = createBaseGetChargeOnSolarFeatureResponse();
|
|
9617
|
+
while (reader.pos < end) {
|
|
9618
|
+
const tag = reader.uint32();
|
|
9619
|
+
switch (tag >>> 3) {
|
|
9620
|
+
case 1:
|
|
9621
|
+
if (tag !== 10) break;
|
|
9622
|
+
message.chargeOnSolar = ChargeOnSolarFeature.decode(reader, reader.uint32());
|
|
9623
|
+
continue;
|
|
9624
|
+
}
|
|
9625
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
9626
|
+
reader.skip(tag & 7);
|
|
9627
|
+
}
|
|
9628
|
+
return message;
|
|
9629
|
+
},
|
|
9630
|
+
fromJSON(object) {
|
|
9631
|
+
return { chargeOnSolar: isSet(object.chargeOnSolar) ? ChargeOnSolarFeature.fromJSON(object.chargeOnSolar) : void 0 };
|
|
9632
|
+
},
|
|
9633
|
+
toJSON(message) {
|
|
9634
|
+
const obj = {};
|
|
9635
|
+
if (message.chargeOnSolar !== void 0) obj.chargeOnSolar = ChargeOnSolarFeature.toJSON(message.chargeOnSolar);
|
|
9636
|
+
return obj;
|
|
9637
|
+
},
|
|
9638
|
+
create(base) {
|
|
9639
|
+
return GetChargeOnSolarFeatureResponse.fromPartial(base ?? {});
|
|
9640
|
+
},
|
|
9641
|
+
fromPartial(object) {
|
|
9642
|
+
const message = createBaseGetChargeOnSolarFeatureResponse();
|
|
9643
|
+
message.chargeOnSolar = object.chargeOnSolar !== void 0 && object.chargeOnSolar !== null ? ChargeOnSolarFeature.fromPartial(object.chargeOnSolar) : void 0;
|
|
9644
|
+
return message;
|
|
9645
|
+
}
|
|
9646
|
+
};
|
|
8532
9647
|
function createBaseChargeOnSolarFeature() {
|
|
8533
9648
|
return {
|
|
8534
9649
|
enabled: false,
|
|
@@ -10881,11 +11996,13 @@ function isSet(value) {
|
|
|
10881
11996
|
exports.Action = Action;
|
|
10882
11997
|
exports.ActionStatus = ActionStatus;
|
|
10883
11998
|
exports.AddManagedChargingSiteRequest = AddManagedChargingSiteRequest;
|
|
11999
|
+
exports.AddManagedChargingSiteResponse = AddManagedChargingSiteResponse;
|
|
10884
12000
|
exports.AutoSeatClimateAction = AutoSeatClimateAction;
|
|
10885
12001
|
exports.AutoSeatClimateAction_AutoSeatPositionE = AutoSeatClimateAction_AutoSeatPositionE;
|
|
10886
12002
|
exports.AutoSeatClimateAction_CarSeat = AutoSeatClimateAction_CarSeat;
|
|
10887
12003
|
exports.AutoStwHeatAction = AutoStwHeatAction;
|
|
10888
12004
|
exports.BandwidthTest = BandwidthTest;
|
|
12005
|
+
exports.BandwidthTestResponse = BandwidthTestResponse;
|
|
10889
12006
|
exports.BatchRemoveChargeSchedulesAction = BatchRemoveChargeSchedulesAction;
|
|
10890
12007
|
exports.BatchRemovePreconditionSchedulesAction = BatchRemovePreconditionSchedulesAction;
|
|
10891
12008
|
exports.BluetoothClassicPairingRequest = BluetoothClassicPairingRequest;
|
|
@@ -10907,10 +12024,12 @@ exports.DrivingSetSpeedLimitAction = DrivingSetSpeedLimitAction;
|
|
|
10907
12024
|
exports.DrivingSpeedLimitAction = DrivingSpeedLimitAction;
|
|
10908
12025
|
exports.EncryptedData = EncryptedData;
|
|
10909
12026
|
exports.EraseUserDataAction = EraseUserDataAction;
|
|
12027
|
+
exports.ExistingManagedChargingSiteNearby = ExistingManagedChargingSiteNearby;
|
|
10910
12028
|
exports.FetchKeysInfoAction = FetchKeysInfoAction;
|
|
10911
12029
|
exports.FormatUSBAction = FormatUSBAction;
|
|
10912
12030
|
exports.GetAlertState = GetAlertState;
|
|
10913
12031
|
exports.GetChargeOnSolarFeatureRequest = GetChargeOnSolarFeatureRequest;
|
|
12032
|
+
exports.GetChargeOnSolarFeatureResponse = GetChargeOnSolarFeatureResponse;
|
|
10914
12033
|
exports.GetChargeScheduleState = GetChargeScheduleState;
|
|
10915
12034
|
exports.GetChargeState = GetChargeState;
|
|
10916
12035
|
exports.GetChildPresenceDetectionState = GetChildPresenceDetectionState;
|
|
@@ -10920,11 +12039,14 @@ exports.GetDriveState = GetDriveState;
|
|
|
10920
12039
|
exports.GetGuiSettings = GetGuiSettings;
|
|
10921
12040
|
exports.GetLightShowState = GetLightShowState;
|
|
10922
12041
|
exports.GetLocalProfilesForVaultUuidAction = GetLocalProfilesForVaultUuidAction;
|
|
12042
|
+
exports.GetLocalProfilesResponse = GetLocalProfilesResponse;
|
|
10923
12043
|
exports.GetLocationState = GetLocationState;
|
|
10924
12044
|
exports.GetManagedChargingSitesRequest = GetManagedChargingSitesRequest;
|
|
12045
|
+
exports.GetManagedChargingSitesResponse = GetManagedChargingSitesResponse;
|
|
10925
12046
|
exports.GetMediaDetailState = GetMediaDetailState;
|
|
10926
12047
|
exports.GetMediaState = GetMediaState;
|
|
10927
12048
|
exports.GetMessagesAction = GetMessagesAction;
|
|
12049
|
+
exports.GetMessagesResponse = GetMessagesResponse;
|
|
10928
12050
|
exports.GetNearbyChargingSites = GetNearbyChargingSites;
|
|
10929
12051
|
exports.GetParentalControlsState = GetParentalControlsState;
|
|
10930
12052
|
exports.GetParkedAccessoryState = GetParkedAccessoryState;
|
|
@@ -10954,7 +12076,10 @@ exports.HvacSteeringWheelHeaterAction = HvacSteeringWheelHeaterAction;
|
|
|
10954
12076
|
exports.HvacTemperatureAdjustmentAction = HvacTemperatureAdjustmentAction;
|
|
10955
12077
|
exports.HvacTemperatureAdjustmentAction_HvacTemperatureZone = HvacTemperatureAdjustmentAction_HvacTemperatureZone;
|
|
10956
12078
|
exports.HvacTemperatureAdjustmentAction_Temperature = HvacTemperatureAdjustmentAction_Temperature;
|
|
12079
|
+
exports.KeyInfo = KeyInfo;
|
|
12080
|
+
exports.KeysInfoResponse = KeysInfoResponse;
|
|
10957
12081
|
exports.ManagedChargingSite = ManagedChargingSite;
|
|
12082
|
+
exports.ManagedChargingSiteAddedOrUpdated = ManagedChargingSiteAddedOrUpdated;
|
|
10958
12083
|
exports.ManagerType = ManagerType;
|
|
10959
12084
|
exports.MediaNextFavorite = MediaNextFavorite;
|
|
10960
12085
|
exports.MediaNextTrack = MediaNextTrack;
|
|
@@ -10962,12 +12087,16 @@ exports.MediaPlayAction = MediaPlayAction;
|
|
|
10962
12087
|
exports.MediaPreviousFavorite = MediaPreviousFavorite;
|
|
10963
12088
|
exports.MediaPreviousTrack = MediaPreviousTrack;
|
|
10964
12089
|
exports.MediaUpdateVolume = MediaUpdateVolume;
|
|
12090
|
+
exports.MobileAppMessage = MobileAppMessage;
|
|
10965
12091
|
exports.NavigationGpsDestinationRequest = NavigationGpsDestinationRequest;
|
|
10966
12092
|
exports.NavigationGpsDestinationRequest_RemoteNavTripOrder = NavigationGpsDestinationRequest_RemoteNavTripOrder;
|
|
10967
12093
|
exports.NavigationGpsRequest = NavigationGpsRequest;
|
|
10968
12094
|
exports.NavigationGpsRequest_RemoteNavTripOrder = NavigationGpsRequest_RemoteNavTripOrder;
|
|
10969
12095
|
exports.NavigationRequest = NavigationRequest;
|
|
10970
12096
|
exports.NavigationRouteAction = NavigationRouteAction;
|
|
12097
|
+
exports.NavigationRouteResponse = NavigationRouteResponse;
|
|
12098
|
+
exports.NavigationRouteResponse_TrafficDetail = NavigationRouteResponse_TrafficDetail;
|
|
12099
|
+
exports.NavigationRouteResponse_TrafficStatus = NavigationRouteResponse_TrafficStatus;
|
|
10971
12100
|
exports.NavigationSuperchargerRequest = NavigationSuperchargerRequest;
|
|
10972
12101
|
exports.NavigationWaypointsRequest = NavigationWaypointsRequest;
|
|
10973
12102
|
exports.NavigationWaypointsRequest_TripPlanOptions = NavigationWaypointsRequest_TripPlanOptions;
|
|
@@ -10981,12 +12110,16 @@ exports.ParentalControlsEnableSettingsAction_ParentalControlsSettingE = Parental
|
|
|
10981
12110
|
exports.ParentalControlsSetSpeedLimitAction = ParentalControlsSetSpeedLimitAction;
|
|
10982
12111
|
exports.PhoneUnitPreferences = PhoneUnitPreferences;
|
|
10983
12112
|
exports.PiiKeyRequest = PiiKeyRequest;
|
|
12113
|
+
exports.PiiKeyResponse = PiiKeyResponse;
|
|
10984
12114
|
exports.Ping = Ping;
|
|
12115
|
+
exports.Profile = Profile;
|
|
10985
12116
|
exports.PseudonymSyncRequest = PseudonymSyncRequest;
|
|
12117
|
+
exports.PseudonymSyncResponse = PseudonymSyncResponse;
|
|
10986
12118
|
exports.RemoteStartDrive = RemoteStartDrive;
|
|
10987
12119
|
exports.RemoveChargeScheduleAction = RemoveChargeScheduleAction;
|
|
10988
12120
|
exports.RemoveManagedChargingSiteRequest = RemoveManagedChargingSiteRequest;
|
|
10989
12121
|
exports.RemovePreconditionScheduleAction = RemovePreconditionScheduleAction;
|
|
12122
|
+
exports.RequestTeslaAuthCommand = RequestTeslaAuthCommand;
|
|
10990
12123
|
exports.Response = Response;
|
|
10991
12124
|
exports.ResultReason = ResultReason;
|
|
10992
12125
|
exports.ScheduledChargingAction = ScheduledChargingAction;
|
|
@@ -11070,6 +12203,7 @@ exports.VehicleControlTriggerHomelinkAction = VehicleControlTriggerHomelinkActio
|
|
|
11070
12203
|
exports.VehicleControlWindowAction = VehicleControlWindowAction;
|
|
11071
12204
|
exports.VehicleDataAck = VehicleDataAck;
|
|
11072
12205
|
exports.VehicleDataSubscription = VehicleDataSubscription;
|
|
12206
|
+
exports.VehicleDataSubscriptionResponse = VehicleDataSubscriptionResponse;
|
|
11073
12207
|
exports.VehicleDataSubscription_PiiKeyRequest = VehicleDataSubscription_PiiKeyRequest;
|
|
11074
12208
|
exports.VehicleImageDataChunkRequest = VehicleImageDataChunkRequest;
|
|
11075
12209
|
exports.VehicleImageRequest = VehicleImageRequest;
|
|
@@ -11077,6 +12211,7 @@ exports.VehicleImageRequest_Type = VehicleImageRequest_Type;
|
|
|
11077
12211
|
exports.VideoRequestAction = VideoRequestAction;
|
|
11078
12212
|
exports.VitalsAck = VitalsAck;
|
|
11079
12213
|
exports.VitalsSubscription = VitalsSubscription;
|
|
12214
|
+
exports.VitalsSubscriptionResponse = VitalsSubscriptionResponse;
|
|
11080
12215
|
exports.autoSeatClimateAction_AutoSeatPositionEFromJSON = autoSeatClimateAction_AutoSeatPositionEFromJSON;
|
|
11081
12216
|
exports.autoSeatClimateAction_AutoSeatPositionEToJSON = autoSeatClimateAction_AutoSeatPositionEToJSON;
|
|
11082
12217
|
exports.hvacClimateKeeperAction_ClimateKeeperActionEFromJSON = hvacClimateKeeperAction_ClimateKeeperActionEFromJSON;
|
|
@@ -11093,6 +12228,8 @@ exports.navigationGpsDestinationRequest_RemoteNavTripOrderFromJSON = navigationG
|
|
|
11093
12228
|
exports.navigationGpsDestinationRequest_RemoteNavTripOrderToJSON = navigationGpsDestinationRequest_RemoteNavTripOrderToJSON;
|
|
11094
12229
|
exports.navigationGpsRequest_RemoteNavTripOrderFromJSON = navigationGpsRequest_RemoteNavTripOrderFromJSON;
|
|
11095
12230
|
exports.navigationGpsRequest_RemoteNavTripOrderToJSON = navigationGpsRequest_RemoteNavTripOrderToJSON;
|
|
12231
|
+
exports.navigationRouteResponse_TrafficStatusFromJSON = navigationRouteResponse_TrafficStatusFromJSON;
|
|
12232
|
+
exports.navigationRouteResponse_TrafficStatusToJSON = navigationRouteResponse_TrafficStatusToJSON;
|
|
11096
12233
|
exports.operationStatusEFromJSON = operationStatusEFromJSON;
|
|
11097
12234
|
exports.operationStatusEToJSON = operationStatusEToJSON;
|
|
11098
12235
|
exports.parentalControlsEnableSettingsAction_ParentalControlsSettingEFromJSON = parentalControlsEnableSettingsAction_ParentalControlsSettingEFromJSON;
|