@teslemetry/tesla-protocol 1.1.0 → 1.2.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.
@@ -58,6 +58,144 @@ function vehicleImageRequest_TypeToJSON(object) {
58
58
  default: return "UNRECOGNIZED";
59
59
  }
60
60
  }
61
+ let PrepareMobileUploadResponse_Status = /* @__PURE__ */ function(PrepareMobileUploadResponse_Status) {
62
+ PrepareMobileUploadResponse_Status[PrepareMobileUploadResponse_Status["OK"] = 0] = "OK";
63
+ PrepareMobileUploadResponse_Status[PrepareMobileUploadResponse_Status["SIZE_EXCEEDED"] = 1] = "SIZE_EXCEEDED";
64
+ PrepareMobileUploadResponse_Status[PrepareMobileUploadResponse_Status["INVALID_FORMAT"] = 2] = "INVALID_FORMAT";
65
+ PrepareMobileUploadResponse_Status[PrepareMobileUploadResponse_Status["INVALID_DIMENSIONS"] = 3] = "INVALID_DIMENSIONS";
66
+ PrepareMobileUploadResponse_Status[PrepareMobileUploadResponse_Status["UNSUPPORTED_ASSET_TYPE"] = 4] = "UNSUPPORTED_ASSET_TYPE";
67
+ PrepareMobileUploadResponse_Status[PrepareMobileUploadResponse_Status["OUT_OF_SPACE"] = 5] = "OUT_OF_SPACE";
68
+ PrepareMobileUploadResponse_Status[PrepareMobileUploadResponse_Status["ALREADY_EXISTS"] = 6] = "ALREADY_EXISTS";
69
+ PrepareMobileUploadResponse_Status[PrepareMobileUploadResponse_Status["INTERNAL_ERROR"] = 7] = "INTERNAL_ERROR";
70
+ PrepareMobileUploadResponse_Status[PrepareMobileUploadResponse_Status["UPLOAD_CAP_REACHED"] = 8] = "UPLOAD_CAP_REACHED";
71
+ PrepareMobileUploadResponse_Status[PrepareMobileUploadResponse_Status["INVALID_REQUEST"] = 9] = "INVALID_REQUEST";
72
+ PrepareMobileUploadResponse_Status[PrepareMobileUploadResponse_Status["UPLOAD_IN_PROGRESS"] = 10] = "UPLOAD_IN_PROGRESS";
73
+ PrepareMobileUploadResponse_Status[PrepareMobileUploadResponse_Status["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
74
+ return PrepareMobileUploadResponse_Status;
75
+ }({});
76
+ function prepareMobileUploadResponse_StatusFromJSON(object) {
77
+ switch (object) {
78
+ case 0:
79
+ case "OK": return 0;
80
+ case 1:
81
+ case "SIZE_EXCEEDED": return 1;
82
+ case 2:
83
+ case "INVALID_FORMAT": return 2;
84
+ case 3:
85
+ case "INVALID_DIMENSIONS": return 3;
86
+ case 4:
87
+ case "UNSUPPORTED_ASSET_TYPE": return 4;
88
+ case 5:
89
+ case "OUT_OF_SPACE": return 5;
90
+ case 6:
91
+ case "ALREADY_EXISTS": return 6;
92
+ case 7:
93
+ case "INTERNAL_ERROR": return 7;
94
+ case 8:
95
+ case "UPLOAD_CAP_REACHED": return 8;
96
+ case 9:
97
+ case "INVALID_REQUEST": return 9;
98
+ case 10:
99
+ case "UPLOAD_IN_PROGRESS": return 10;
100
+ default: return -1;
101
+ }
102
+ }
103
+ function prepareMobileUploadResponse_StatusToJSON(object) {
104
+ switch (object) {
105
+ case 0: return "OK";
106
+ case 1: return "SIZE_EXCEEDED";
107
+ case 2: return "INVALID_FORMAT";
108
+ case 3: return "INVALID_DIMENSIONS";
109
+ case 4: return "UNSUPPORTED_ASSET_TYPE";
110
+ case 5: return "OUT_OF_SPACE";
111
+ case 6: return "ALREADY_EXISTS";
112
+ case 7: return "INTERNAL_ERROR";
113
+ case 8: return "UPLOAD_CAP_REACHED";
114
+ case 9: return "INVALID_REQUEST";
115
+ case 10: return "UPLOAD_IN_PROGRESS";
116
+ default: return "UNRECOGNIZED";
117
+ }
118
+ }
119
+ let PutMobileUploadChunkResponse_Status = /* @__PURE__ */ function(PutMobileUploadChunkResponse_Status) {
120
+ PutMobileUploadChunkResponse_Status[PutMobileUploadChunkResponse_Status["OK"] = 0] = "OK";
121
+ PutMobileUploadChunkResponse_Status[PutMobileUploadChunkResponse_Status["COMPLETE"] = 1] = "COMPLETE";
122
+ PutMobileUploadChunkResponse_Status[PutMobileUploadChunkResponse_Status["UNKNOWN_UPLOAD"] = 2] = "UNKNOWN_UPLOAD";
123
+ PutMobileUploadChunkResponse_Status[PutMobileUploadChunkResponse_Status["OUT_OF_ORDER"] = 3] = "OUT_OF_ORDER";
124
+ PutMobileUploadChunkResponse_Status[PutMobileUploadChunkResponse_Status["SIZE_EXCEEDED"] = 4] = "SIZE_EXCEEDED";
125
+ PutMobileUploadChunkResponse_Status[PutMobileUploadChunkResponse_Status["HASH_MISMATCH"] = 5] = "HASH_MISMATCH";
126
+ PutMobileUploadChunkResponse_Status[PutMobileUploadChunkResponse_Status["INVALID_FORMAT"] = 6] = "INVALID_FORMAT";
127
+ PutMobileUploadChunkResponse_Status[PutMobileUploadChunkResponse_Status["INVALID_DIMENSIONS"] = 7] = "INVALID_DIMENSIONS";
128
+ PutMobileUploadChunkResponse_Status[PutMobileUploadChunkResponse_Status["INTERNAL_ERROR"] = 8] = "INTERNAL_ERROR";
129
+ PutMobileUploadChunkResponse_Status[PutMobileUploadChunkResponse_Status["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
130
+ return PutMobileUploadChunkResponse_Status;
131
+ }({});
132
+ function putMobileUploadChunkResponse_StatusFromJSON(object) {
133
+ switch (object) {
134
+ case 0:
135
+ case "OK": return 0;
136
+ case 1:
137
+ case "COMPLETE": return 1;
138
+ case 2:
139
+ case "UNKNOWN_UPLOAD": return 2;
140
+ case 3:
141
+ case "OUT_OF_ORDER": return 3;
142
+ case 4:
143
+ case "SIZE_EXCEEDED": return 4;
144
+ case 5:
145
+ case "HASH_MISMATCH": return 5;
146
+ case 6:
147
+ case "INVALID_FORMAT": return 6;
148
+ case 7:
149
+ case "INVALID_DIMENSIONS": return 7;
150
+ case 8:
151
+ case "INTERNAL_ERROR": return 8;
152
+ default: return -1;
153
+ }
154
+ }
155
+ function putMobileUploadChunkResponse_StatusToJSON(object) {
156
+ switch (object) {
157
+ case 0: return "OK";
158
+ case 1: return "COMPLETE";
159
+ case 2: return "UNKNOWN_UPLOAD";
160
+ case 3: return "OUT_OF_ORDER";
161
+ case 4: return "SIZE_EXCEEDED";
162
+ case 5: return "HASH_MISMATCH";
163
+ case 6: return "INVALID_FORMAT";
164
+ case 7: return "INVALID_DIMENSIONS";
165
+ case 8: return "INTERNAL_ERROR";
166
+ default: return "UNRECOGNIZED";
167
+ }
168
+ }
169
+ let DogModeLiveActivityData_DisabledReason = /* @__PURE__ */ function(DogModeLiveActivityData_DisabledReason) {
170
+ DogModeLiveActivityData_DisabledReason[DogModeLiveActivityData_DisabledReason["REASON_UNKNOWN"] = 0] = "REASON_UNKNOWN";
171
+ DogModeLiveActivityData_DisabledReason[DogModeLiveActivityData_DisabledReason["REASON_NO_PREMIUM_CONNECTIVITY"] = 1] = "REASON_NO_PREMIUM_CONNECTIVITY";
172
+ DogModeLiveActivityData_DisabledReason[DogModeLiveActivityData_DisabledReason["REASON_TOGGLE_OFF"] = 2] = "REASON_TOGGLE_OFF";
173
+ DogModeLiveActivityData_DisabledReason[DogModeLiveActivityData_DisabledReason["REASON_DISALLOWED_COUNTRY"] = 3] = "REASON_DISALLOWED_COUNTRY";
174
+ DogModeLiveActivityData_DisabledReason[DogModeLiveActivityData_DisabledReason["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
175
+ return DogModeLiveActivityData_DisabledReason;
176
+ }({});
177
+ function dogModeLiveActivityData_DisabledReasonFromJSON(object) {
178
+ switch (object) {
179
+ case 0:
180
+ case "REASON_UNKNOWN": return 0;
181
+ case 1:
182
+ case "REASON_NO_PREMIUM_CONNECTIVITY": return 1;
183
+ case 2:
184
+ case "REASON_TOGGLE_OFF": return 2;
185
+ case 3:
186
+ case "REASON_DISALLOWED_COUNTRY": return 3;
187
+ default: return -1;
188
+ }
189
+ }
190
+ function dogModeLiveActivityData_DisabledReasonToJSON(object) {
191
+ switch (object) {
192
+ case 0: return "REASON_UNKNOWN";
193
+ case 1: return "REASON_NO_PREMIUM_CONNECTIVITY";
194
+ case 2: return "REASON_TOGGLE_OFF";
195
+ case 3: return "REASON_DISALLOWED_COUNTRY";
196
+ default: return "UNRECOGNIZED";
197
+ }
198
+ }
61
199
  let NavigationRouteResponse_TrafficStatus = /* @__PURE__ */ function(NavigationRouteResponse_TrafficStatus) {
62
200
  NavigationRouteResponse_TrafficStatus[NavigationRouteResponse_TrafficStatus["TS_NO_DATA"] = 0] = "TS_NO_DATA";
63
201
  NavigationRouteResponse_TrafficStatus[NavigationRouteResponse_TrafficStatus["TS_LIGHT"] = 1] = "TS_LIGHT";
@@ -1984,7 +2122,8 @@ function createBaseGetVehicleData() {
1984
2122
  getLightShowState: void 0,
1985
2123
  getVehicleImageState: void 0,
1986
2124
  getSuspensionState: void 0,
1987
- getChildPresenceDetectionState: void 0
2125
+ getChildPresenceDetectionState: void 0,
2126
+ getDisplayState: void 0
1988
2127
  };
1989
2128
  }
1990
2129
  const GetVehicleData = {
@@ -2013,6 +2152,7 @@ const GetVehicleData = {
2013
2152
  if (message.getVehicleImageState !== void 0) GetVehicleImageState.encode(message.getVehicleImageState, writer.uint32(178).fork()).join();
2014
2153
  if (message.getSuspensionState !== void 0) GetSuspensionState.encode(message.getSuspensionState, writer.uint32(186).fork()).join();
2015
2154
  if (message.getChildPresenceDetectionState !== void 0) GetChildPresenceDetectionState.encode(message.getChildPresenceDetectionState, writer.uint32(202).fork()).join();
2155
+ if (message.getDisplayState !== void 0) GetDisplayState.encode(message.getDisplayState, writer.uint32(250).fork()).join();
2016
2156
  return writer;
2017
2157
  },
2018
2158
  decode(input, length) {
@@ -2118,6 +2258,10 @@ const GetVehicleData = {
2118
2258
  if (tag !== 202) break;
2119
2259
  message.getChildPresenceDetectionState = GetChildPresenceDetectionState.decode(reader, reader.uint32());
2120
2260
  continue;
2261
+ case 31:
2262
+ if (tag !== 250) break;
2263
+ message.getDisplayState = GetDisplayState.decode(reader, reader.uint32());
2264
+ continue;
2121
2265
  }
2122
2266
  if ((tag & 7) === 4 || tag === 0) break;
2123
2267
  reader.skip(tag & 7);
@@ -2149,7 +2293,8 @@ const GetVehicleData = {
2149
2293
  getLightShowState: isSet(object.getLightShowState) ? GetLightShowState.fromJSON(object.getLightShowState) : void 0,
2150
2294
  getVehicleImageState: isSet(object.getVehicleImageState) ? GetVehicleImageState.fromJSON(object.getVehicleImageState) : void 0,
2151
2295
  getSuspensionState: isSet(object.getSuspensionState) ? GetSuspensionState.fromJSON(object.getSuspensionState) : void 0,
2152
- getChildPresenceDetectionState: isSet(object.getChildPresenceDetectionState) ? GetChildPresenceDetectionState.fromJSON(object.getChildPresenceDetectionState) : void 0
2296
+ getChildPresenceDetectionState: isSet(object.getChildPresenceDetectionState) ? GetChildPresenceDetectionState.fromJSON(object.getChildPresenceDetectionState) : void 0,
2297
+ getDisplayState: isSet(object.getDisplayState) ? GetDisplayState.fromJSON(object.getDisplayState) : void 0
2153
2298
  };
2154
2299
  },
2155
2300
  toJSON(message) {
@@ -2178,6 +2323,7 @@ const GetVehicleData = {
2178
2323
  if (message.getVehicleImageState !== void 0) obj.getVehicleImageState = GetVehicleImageState.toJSON(message.getVehicleImageState);
2179
2324
  if (message.getSuspensionState !== void 0) obj.getSuspensionState = GetSuspensionState.toJSON(message.getSuspensionState);
2180
2325
  if (message.getChildPresenceDetectionState !== void 0) obj.getChildPresenceDetectionState = GetChildPresenceDetectionState.toJSON(message.getChildPresenceDetectionState);
2326
+ if (message.getDisplayState !== void 0) obj.getDisplayState = GetDisplayState.toJSON(message.getDisplayState);
2181
2327
  return obj;
2182
2328
  },
2183
2329
  create(base) {
@@ -2209,6 +2355,7 @@ const GetVehicleData = {
2209
2355
  message.getVehicleImageState = object.getVehicleImageState !== void 0 && object.getVehicleImageState !== null ? GetVehicleImageState.fromPartial(object.getVehicleImageState) : void 0;
2210
2356
  message.getSuspensionState = object.getSuspensionState !== void 0 && object.getSuspensionState !== null ? GetSuspensionState.fromPartial(object.getSuspensionState) : void 0;
2211
2357
  message.getChildPresenceDetectionState = object.getChildPresenceDetectionState !== void 0 && object.getChildPresenceDetectionState !== null ? GetChildPresenceDetectionState.fromPartial(object.getChildPresenceDetectionState) : void 0;
2358
+ message.getDisplayState = object.getDisplayState !== void 0 && object.getDisplayState !== null ? GetDisplayState.fromPartial(object.getDisplayState) : void 0;
2212
2359
  return message;
2213
2360
  }
2214
2361
  };
@@ -2606,6 +2753,38 @@ const GetChildPresenceDetectionState = {
2606
2753
  return createBaseGetChildPresenceDetectionState();
2607
2754
  }
2608
2755
  };
2756
+ function createBaseGetDisplayState() {
2757
+ return {};
2758
+ }
2759
+ const GetDisplayState = {
2760
+ encode(_, writer = new _bufbuild_protobuf_wire.BinaryWriter()) {
2761
+ return writer;
2762
+ },
2763
+ decode(input, length) {
2764
+ const reader = input instanceof _bufbuild_protobuf_wire.BinaryReader ? input : new _bufbuild_protobuf_wire.BinaryReader(input);
2765
+ const end = length === void 0 ? reader.len : reader.pos + length;
2766
+ const message = createBaseGetDisplayState();
2767
+ while (reader.pos < end) {
2768
+ const tag = reader.uint32();
2769
+ switch (tag >>> 3) {}
2770
+ if ((tag & 7) === 4 || tag === 0) break;
2771
+ reader.skip(tag & 7);
2772
+ }
2773
+ return message;
2774
+ },
2775
+ fromJSON(_) {
2776
+ return {};
2777
+ },
2778
+ toJSON(_) {
2779
+ return {};
2780
+ },
2781
+ create(base) {
2782
+ return GetDisplayState.fromPartial(base ?? {});
2783
+ },
2784
+ fromPartial(_) {
2785
+ return createBaseGetDisplayState();
2786
+ }
2787
+ };
2609
2788
  function createBaseVehicleImageDataChunkRequest() {
2610
2789
  return {
2611
2790
  chunkOffset: 0,
@@ -2725,6 +2904,463 @@ const VehicleImageRequest = {
2725
2904
  return message;
2726
2905
  }
2727
2906
  };
2907
+ function createBaseMobileImageUploadParams() {
2908
+ return {
2909
+ imageType: 0,
2910
+ widthPx: 0,
2911
+ heightPx: 0,
2912
+ mimeType: ""
2913
+ };
2914
+ }
2915
+ const MobileImageUploadParams = {
2916
+ encode(message, writer = new _bufbuild_protobuf_wire.BinaryWriter()) {
2917
+ if (message.imageType !== 0) writer.uint32(8).int32(message.imageType);
2918
+ if (message.widthPx !== 0) writer.uint32(16).uint32(message.widthPx);
2919
+ if (message.heightPx !== 0) writer.uint32(24).uint32(message.heightPx);
2920
+ if (message.mimeType !== "") writer.uint32(34).string(message.mimeType);
2921
+ return writer;
2922
+ },
2923
+ decode(input, length) {
2924
+ const reader = input instanceof _bufbuild_protobuf_wire.BinaryReader ? input : new _bufbuild_protobuf_wire.BinaryReader(input);
2925
+ const end = length === void 0 ? reader.len : reader.pos + length;
2926
+ const message = createBaseMobileImageUploadParams();
2927
+ while (reader.pos < end) {
2928
+ const tag = reader.uint32();
2929
+ switch (tag >>> 3) {
2930
+ case 1:
2931
+ if (tag !== 8) break;
2932
+ message.imageType = reader.int32();
2933
+ continue;
2934
+ case 2:
2935
+ if (tag !== 16) break;
2936
+ message.widthPx = reader.uint32();
2937
+ continue;
2938
+ case 3:
2939
+ if (tag !== 24) break;
2940
+ message.heightPx = reader.uint32();
2941
+ continue;
2942
+ case 4:
2943
+ if (tag !== 34) break;
2944
+ message.mimeType = reader.string();
2945
+ continue;
2946
+ }
2947
+ if ((tag & 7) === 4 || tag === 0) break;
2948
+ reader.skip(tag & 7);
2949
+ }
2950
+ return message;
2951
+ },
2952
+ fromJSON(object) {
2953
+ return {
2954
+ imageType: isSet(object.imageType) ? require_command_vehicle.vehicleImageStateTypeFromJSON(object.imageType) : 0,
2955
+ widthPx: isSet(object.widthPx) ? globalThis.Number(object.widthPx) : 0,
2956
+ heightPx: isSet(object.heightPx) ? globalThis.Number(object.heightPx) : 0,
2957
+ mimeType: isSet(object.mimeType) ? globalThis.String(object.mimeType) : ""
2958
+ };
2959
+ },
2960
+ toJSON(message) {
2961
+ const obj = {};
2962
+ if (message.imageType !== void 0) obj.imageType = require_command_vehicle.vehicleImageStateTypeToJSON(message.imageType);
2963
+ if (message.widthPx !== void 0) obj.widthPx = Math.round(message.widthPx);
2964
+ if (message.heightPx !== void 0) obj.heightPx = Math.round(message.heightPx);
2965
+ if (message.mimeType !== void 0) obj.mimeType = message.mimeType;
2966
+ return obj;
2967
+ },
2968
+ create(base) {
2969
+ return MobileImageUploadParams.fromPartial(base ?? {});
2970
+ },
2971
+ fromPartial(object) {
2972
+ const message = createBaseMobileImageUploadParams();
2973
+ message.imageType = object.imageType ?? 0;
2974
+ message.widthPx = object.widthPx ?? 0;
2975
+ message.heightPx = object.heightPx ?? 0;
2976
+ message.mimeType = object.mimeType ?? "";
2977
+ return message;
2978
+ }
2979
+ };
2980
+ function createBaseMobileUploadParams() {
2981
+ return {
2982
+ totalSize: 0,
2983
+ contentSha256: /* @__PURE__ */ new Uint8Array(0)
2984
+ };
2985
+ }
2986
+ const MobileUploadParams = {
2987
+ encode(message, writer = new _bufbuild_protobuf_wire.BinaryWriter()) {
2988
+ if (message.totalSize !== 0) writer.uint32(8).uint32(message.totalSize);
2989
+ if (message.contentSha256.length !== 0) writer.uint32(18).bytes(message.contentSha256);
2990
+ return writer;
2991
+ },
2992
+ decode(input, length) {
2993
+ const reader = input instanceof _bufbuild_protobuf_wire.BinaryReader ? input : new _bufbuild_protobuf_wire.BinaryReader(input);
2994
+ const end = length === void 0 ? reader.len : reader.pos + length;
2995
+ const message = createBaseMobileUploadParams();
2996
+ while (reader.pos < end) {
2997
+ const tag = reader.uint32();
2998
+ switch (tag >>> 3) {
2999
+ case 1:
3000
+ if (tag !== 8) break;
3001
+ message.totalSize = reader.uint32();
3002
+ continue;
3003
+ case 2:
3004
+ if (tag !== 18) break;
3005
+ message.contentSha256 = reader.bytes();
3006
+ continue;
3007
+ }
3008
+ if ((tag & 7) === 4 || tag === 0) break;
3009
+ reader.skip(tag & 7);
3010
+ }
3011
+ return message;
3012
+ },
3013
+ fromJSON(object) {
3014
+ return {
3015
+ totalSize: isSet(object.totalSize) ? globalThis.Number(object.totalSize) : 0,
3016
+ contentSha256: isSet(object.contentSha256) ? bytesFromBase64(object.contentSha256) : /* @__PURE__ */ new Uint8Array(0)
3017
+ };
3018
+ },
3019
+ toJSON(message) {
3020
+ const obj = {};
3021
+ if (message.totalSize !== void 0) obj.totalSize = Math.round(message.totalSize);
3022
+ if (message.contentSha256 !== void 0) obj.contentSha256 = base64FromBytes(message.contentSha256);
3023
+ return obj;
3024
+ },
3025
+ create(base) {
3026
+ return MobileUploadParams.fromPartial(base ?? {});
3027
+ },
3028
+ fromPartial(object) {
3029
+ const message = createBaseMobileUploadParams();
3030
+ message.totalSize = object.totalSize ?? 0;
3031
+ message.contentSha256 = object.contentSha256 ?? /* @__PURE__ */ new Uint8Array(0);
3032
+ return message;
3033
+ }
3034
+ };
3035
+ function createBasePrepareMobileUploadAction() {
3036
+ return {
3037
+ uploadParams: void 0,
3038
+ imageParams: void 0,
3039
+ overwriteOldestIfFull: false
3040
+ };
3041
+ }
3042
+ const PrepareMobileUploadAction = {
3043
+ encode(message, writer = new _bufbuild_protobuf_wire.BinaryWriter()) {
3044
+ if (message.uploadParams !== void 0) MobileUploadParams.encode(message.uploadParams, writer.uint32(10).fork()).join();
3045
+ if (message.imageParams !== void 0) MobileImageUploadParams.encode(message.imageParams, writer.uint32(18).fork()).join();
3046
+ if (message.overwriteOldestIfFull !== false) writer.uint32(32).bool(message.overwriteOldestIfFull);
3047
+ return writer;
3048
+ },
3049
+ decode(input, length) {
3050
+ const reader = input instanceof _bufbuild_protobuf_wire.BinaryReader ? input : new _bufbuild_protobuf_wire.BinaryReader(input);
3051
+ const end = length === void 0 ? reader.len : reader.pos + length;
3052
+ const message = createBasePrepareMobileUploadAction();
3053
+ while (reader.pos < end) {
3054
+ const tag = reader.uint32();
3055
+ switch (tag >>> 3) {
3056
+ case 1:
3057
+ if (tag !== 10) break;
3058
+ message.uploadParams = MobileUploadParams.decode(reader, reader.uint32());
3059
+ continue;
3060
+ case 2:
3061
+ if (tag !== 18) break;
3062
+ message.imageParams = MobileImageUploadParams.decode(reader, reader.uint32());
3063
+ continue;
3064
+ case 4:
3065
+ if (tag !== 32) break;
3066
+ message.overwriteOldestIfFull = reader.bool();
3067
+ continue;
3068
+ }
3069
+ if ((tag & 7) === 4 || tag === 0) break;
3070
+ reader.skip(tag & 7);
3071
+ }
3072
+ return message;
3073
+ },
3074
+ fromJSON(object) {
3075
+ return {
3076
+ uploadParams: isSet(object.uploadParams) ? MobileUploadParams.fromJSON(object.uploadParams) : void 0,
3077
+ imageParams: isSet(object.imageParams) ? MobileImageUploadParams.fromJSON(object.imageParams) : void 0,
3078
+ overwriteOldestIfFull: isSet(object.overwriteOldestIfFull) ? globalThis.Boolean(object.overwriteOldestIfFull) : false
3079
+ };
3080
+ },
3081
+ toJSON(message) {
3082
+ const obj = {};
3083
+ if (message.uploadParams !== void 0) obj.uploadParams = MobileUploadParams.toJSON(message.uploadParams);
3084
+ if (message.imageParams !== void 0) obj.imageParams = MobileImageUploadParams.toJSON(message.imageParams);
3085
+ if (message.overwriteOldestIfFull !== void 0) obj.overwriteOldestIfFull = message.overwriteOldestIfFull;
3086
+ return obj;
3087
+ },
3088
+ create(base) {
3089
+ return PrepareMobileUploadAction.fromPartial(base ?? {});
3090
+ },
3091
+ fromPartial(object) {
3092
+ const message = createBasePrepareMobileUploadAction();
3093
+ message.uploadParams = object.uploadParams !== void 0 && object.uploadParams !== null ? MobileUploadParams.fromPartial(object.uploadParams) : void 0;
3094
+ message.imageParams = object.imageParams !== void 0 && object.imageParams !== null ? MobileImageUploadParams.fromPartial(object.imageParams) : void 0;
3095
+ message.overwriteOldestIfFull = object.overwriteOldestIfFull ?? false;
3096
+ return message;
3097
+ }
3098
+ };
3099
+ function createBasePrepareMobileUploadResponse() {
3100
+ return {
3101
+ status: 0,
3102
+ uploadId: "",
3103
+ maxChunkSize: 0
3104
+ };
3105
+ }
3106
+ const PrepareMobileUploadResponse = {
3107
+ encode(message, writer = new _bufbuild_protobuf_wire.BinaryWriter()) {
3108
+ if (message.status !== 0) writer.uint32(8).int32(message.status);
3109
+ if (message.uploadId !== "") writer.uint32(18).string(message.uploadId);
3110
+ if (message.maxChunkSize !== 0) writer.uint32(24).uint32(message.maxChunkSize);
3111
+ return writer;
3112
+ },
3113
+ decode(input, length) {
3114
+ const reader = input instanceof _bufbuild_protobuf_wire.BinaryReader ? input : new _bufbuild_protobuf_wire.BinaryReader(input);
3115
+ const end = length === void 0 ? reader.len : reader.pos + length;
3116
+ const message = createBasePrepareMobileUploadResponse();
3117
+ while (reader.pos < end) {
3118
+ const tag = reader.uint32();
3119
+ switch (tag >>> 3) {
3120
+ case 1:
3121
+ if (tag !== 8) break;
3122
+ message.status = reader.int32();
3123
+ continue;
3124
+ case 2:
3125
+ if (tag !== 18) break;
3126
+ message.uploadId = reader.string();
3127
+ continue;
3128
+ case 3:
3129
+ if (tag !== 24) break;
3130
+ message.maxChunkSize = reader.uint32();
3131
+ continue;
3132
+ }
3133
+ if ((tag & 7) === 4 || tag === 0) break;
3134
+ reader.skip(tag & 7);
3135
+ }
3136
+ return message;
3137
+ },
3138
+ fromJSON(object) {
3139
+ return {
3140
+ status: isSet(object.status) ? prepareMobileUploadResponse_StatusFromJSON(object.status) : 0,
3141
+ uploadId: isSet(object.uploadId) ? globalThis.String(object.uploadId) : "",
3142
+ maxChunkSize: isSet(object.maxChunkSize) ? globalThis.Number(object.maxChunkSize) : 0
3143
+ };
3144
+ },
3145
+ toJSON(message) {
3146
+ const obj = {};
3147
+ if (message.status !== void 0) obj.status = prepareMobileUploadResponse_StatusToJSON(message.status);
3148
+ if (message.uploadId !== void 0) obj.uploadId = message.uploadId;
3149
+ if (message.maxChunkSize !== void 0) obj.maxChunkSize = Math.round(message.maxChunkSize);
3150
+ return obj;
3151
+ },
3152
+ create(base) {
3153
+ return PrepareMobileUploadResponse.fromPartial(base ?? {});
3154
+ },
3155
+ fromPartial(object) {
3156
+ const message = createBasePrepareMobileUploadResponse();
3157
+ message.status = object.status ?? 0;
3158
+ message.uploadId = object.uploadId ?? "";
3159
+ message.maxChunkSize = object.maxChunkSize ?? 0;
3160
+ return message;
3161
+ }
3162
+ };
3163
+ function createBasePutMobileUploadChunkAction() {
3164
+ return {
3165
+ uploadId: "",
3166
+ chunkOffset: 0,
3167
+ chunkData: /* @__PURE__ */ new Uint8Array(0)
3168
+ };
3169
+ }
3170
+ const PutMobileUploadChunkAction = {
3171
+ encode(message, writer = new _bufbuild_protobuf_wire.BinaryWriter()) {
3172
+ if (message.uploadId !== "") writer.uint32(10).string(message.uploadId);
3173
+ if (message.chunkOffset !== 0) writer.uint32(16).uint32(message.chunkOffset);
3174
+ if (message.chunkData.length !== 0) writer.uint32(26).bytes(message.chunkData);
3175
+ return writer;
3176
+ },
3177
+ decode(input, length) {
3178
+ const reader = input instanceof _bufbuild_protobuf_wire.BinaryReader ? input : new _bufbuild_protobuf_wire.BinaryReader(input);
3179
+ const end = length === void 0 ? reader.len : reader.pos + length;
3180
+ const message = createBasePutMobileUploadChunkAction();
3181
+ while (reader.pos < end) {
3182
+ const tag = reader.uint32();
3183
+ switch (tag >>> 3) {
3184
+ case 1:
3185
+ if (tag !== 10) break;
3186
+ message.uploadId = reader.string();
3187
+ continue;
3188
+ case 2:
3189
+ if (tag !== 16) break;
3190
+ message.chunkOffset = reader.uint32();
3191
+ continue;
3192
+ case 3:
3193
+ if (tag !== 26) break;
3194
+ message.chunkData = reader.bytes();
3195
+ continue;
3196
+ }
3197
+ if ((tag & 7) === 4 || tag === 0) break;
3198
+ reader.skip(tag & 7);
3199
+ }
3200
+ return message;
3201
+ },
3202
+ fromJSON(object) {
3203
+ return {
3204
+ uploadId: isSet(object.uploadId) ? globalThis.String(object.uploadId) : "",
3205
+ chunkOffset: isSet(object.chunkOffset) ? globalThis.Number(object.chunkOffset) : 0,
3206
+ chunkData: isSet(object.chunkData) ? bytesFromBase64(object.chunkData) : /* @__PURE__ */ new Uint8Array(0)
3207
+ };
3208
+ },
3209
+ toJSON(message) {
3210
+ const obj = {};
3211
+ if (message.uploadId !== void 0) obj.uploadId = message.uploadId;
3212
+ if (message.chunkOffset !== void 0) obj.chunkOffset = Math.round(message.chunkOffset);
3213
+ if (message.chunkData !== void 0) obj.chunkData = base64FromBytes(message.chunkData);
3214
+ return obj;
3215
+ },
3216
+ create(base) {
3217
+ return PutMobileUploadChunkAction.fromPartial(base ?? {});
3218
+ },
3219
+ fromPartial(object) {
3220
+ const message = createBasePutMobileUploadChunkAction();
3221
+ message.uploadId = object.uploadId ?? "";
3222
+ message.chunkOffset = object.chunkOffset ?? 0;
3223
+ message.chunkData = object.chunkData ?? /* @__PURE__ */ new Uint8Array(0);
3224
+ return message;
3225
+ }
3226
+ };
3227
+ function createBasePutMobileUploadChunkResponse() {
3228
+ return {
3229
+ status: 0,
3230
+ resourceId: /* @__PURE__ */ new Uint8Array(0)
3231
+ };
3232
+ }
3233
+ const PutMobileUploadChunkResponse = {
3234
+ encode(message, writer = new _bufbuild_protobuf_wire.BinaryWriter()) {
3235
+ if (message.status !== 0) writer.uint32(8).int32(message.status);
3236
+ if (message.resourceId.length !== 0) writer.uint32(18).bytes(message.resourceId);
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 = createBasePutMobileUploadChunkResponse();
3243
+ while (reader.pos < end) {
3244
+ const tag = reader.uint32();
3245
+ switch (tag >>> 3) {
3246
+ case 1:
3247
+ if (tag !== 8) break;
3248
+ message.status = reader.int32();
3249
+ continue;
3250
+ case 2:
3251
+ if (tag !== 18) break;
3252
+ message.resourceId = reader.bytes();
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
+ status: isSet(object.status) ? putMobileUploadChunkResponse_StatusFromJSON(object.status) : 0,
3263
+ resourceId: isSet(object.resourceId) ? bytesFromBase64(object.resourceId) : /* @__PURE__ */ new Uint8Array(0)
3264
+ };
3265
+ },
3266
+ toJSON(message) {
3267
+ const obj = {};
3268
+ if (message.status !== void 0) obj.status = putMobileUploadChunkResponse_StatusToJSON(message.status);
3269
+ if (message.resourceId !== void 0) obj.resourceId = base64FromBytes(message.resourceId);
3270
+ return obj;
3271
+ },
3272
+ create(base) {
3273
+ return PutMobileUploadChunkResponse.fromPartial(base ?? {});
3274
+ },
3275
+ fromPartial(object) {
3276
+ const message = createBasePutMobileUploadChunkResponse();
3277
+ message.status = object.status ?? 0;
3278
+ message.resourceId = object.resourceId ?? /* @__PURE__ */ new Uint8Array(0);
3279
+ return message;
3280
+ }
3281
+ };
3282
+ function createBaseDogModeLiveActivityData() {
3283
+ return {
3284
+ disabledReason: 0,
3285
+ insideTemperatureCelsius: 0,
3286
+ faultState: 0,
3287
+ temperatureUnit: 0,
3288
+ batteryLevel: 0
3289
+ };
3290
+ }
3291
+ const DogModeLiveActivityData = {
3292
+ encode(message, writer = new _bufbuild_protobuf_wire.BinaryWriter()) {
3293
+ if (message.disabledReason !== 0) writer.uint32(8).int32(message.disabledReason);
3294
+ if (message.insideTemperatureCelsius !== 0) writer.uint32(45).float(message.insideTemperatureCelsius);
3295
+ if (message.faultState !== 0) writer.uint32(48).int32(message.faultState);
3296
+ if (message.temperatureUnit !== 0) writer.uint32(56).int32(message.temperatureUnit);
3297
+ if (message.batteryLevel !== 0) writer.uint32(69).float(message.batteryLevel);
3298
+ return writer;
3299
+ },
3300
+ decode(input, length) {
3301
+ const reader = input instanceof _bufbuild_protobuf_wire.BinaryReader ? input : new _bufbuild_protobuf_wire.BinaryReader(input);
3302
+ const end = length === void 0 ? reader.len : reader.pos + length;
3303
+ const message = createBaseDogModeLiveActivityData();
3304
+ while (reader.pos < end) {
3305
+ const tag = reader.uint32();
3306
+ switch (tag >>> 3) {
3307
+ case 1:
3308
+ if (tag !== 8) break;
3309
+ message.disabledReason = reader.int32();
3310
+ continue;
3311
+ case 5:
3312
+ if (tag !== 45) break;
3313
+ message.insideTemperatureCelsius = reader.float();
3314
+ continue;
3315
+ case 6:
3316
+ if (tag !== 48) break;
3317
+ message.faultState = reader.int32();
3318
+ continue;
3319
+ case 7:
3320
+ if (tag !== 56) break;
3321
+ message.temperatureUnit = reader.int32();
3322
+ continue;
3323
+ case 8:
3324
+ if (tag !== 69) break;
3325
+ message.batteryLevel = reader.float();
3326
+ continue;
3327
+ }
3328
+ if ((tag & 7) === 4 || tag === 0) break;
3329
+ reader.skip(tag & 7);
3330
+ }
3331
+ return message;
3332
+ },
3333
+ fromJSON(object) {
3334
+ return {
3335
+ disabledReason: isSet(object.disabledReason) ? dogModeLiveActivityData_DisabledReasonFromJSON(object.disabledReason) : 0,
3336
+ insideTemperatureCelsius: isSet(object.insideTemperatureCelsius) ? globalThis.Number(object.insideTemperatureCelsius) : 0,
3337
+ faultState: isSet(object.faultState) ? require_command_vehicle.climateState_DogModeStateFromJSON(object.faultState) : 0,
3338
+ temperatureUnit: isSet(object.temperatureUnit) ? setTemperatureUnitAction_UnitFromJSON(object.temperatureUnit) : 0,
3339
+ batteryLevel: isSet(object.batteryLevel) ? globalThis.Number(object.batteryLevel) : 0
3340
+ };
3341
+ },
3342
+ toJSON(message) {
3343
+ const obj = {};
3344
+ if (message.disabledReason !== void 0) obj.disabledReason = dogModeLiveActivityData_DisabledReasonToJSON(message.disabledReason);
3345
+ if (message.insideTemperatureCelsius !== void 0) obj.insideTemperatureCelsius = message.insideTemperatureCelsius;
3346
+ if (message.faultState !== void 0) obj.faultState = require_command_vehicle.climateState_DogModeStateToJSON(message.faultState);
3347
+ if (message.temperatureUnit !== void 0) obj.temperatureUnit = setTemperatureUnitAction_UnitToJSON(message.temperatureUnit);
3348
+ if (message.batteryLevel !== void 0) obj.batteryLevel = message.batteryLevel;
3349
+ return obj;
3350
+ },
3351
+ create(base) {
3352
+ return DogModeLiveActivityData.fromPartial(base ?? {});
3353
+ },
3354
+ fromPartial(object) {
3355
+ const message = createBaseDogModeLiveActivityData();
3356
+ message.disabledReason = object.disabledReason ?? 0;
3357
+ message.insideTemperatureCelsius = object.insideTemperatureCelsius ?? 0;
3358
+ message.faultState = object.faultState ?? 0;
3359
+ message.temperatureUnit = object.temperatureUnit ?? 0;
3360
+ message.batteryLevel = object.batteryLevel ?? 0;
3361
+ return message;
3362
+ }
3363
+ };
2728
3364
  function createBaseGetTirePressureState() {
2729
3365
  return {};
2730
3366
  }
@@ -3184,7 +3820,9 @@ function createBaseResponse() {
3184
3820
  getMessagesResponse: void 0,
3185
3821
  getLocalProfilesResponse: void 0,
3186
3822
  keysInfoResponse: void 0,
3187
- bandwidthTestResponse: void 0
3823
+ bandwidthTestResponse: void 0,
3824
+ prepareMobileUploadResponse: void 0,
3825
+ putMobileUploadChunkResponse: void 0
3188
3826
  };
3189
3827
  }
3190
3828
  const Response = {
@@ -3208,6 +3846,8 @@ const Response = {
3208
3846
  if (message.getLocalProfilesResponse !== void 0) GetLocalProfilesResponse.encode(message.getLocalProfilesResponse, writer.uint32(162).fork()).join();
3209
3847
  if (message.keysInfoResponse !== void 0) KeysInfoResponse.encode(message.keysInfoResponse, writer.uint32(194).fork()).join();
3210
3848
  if (message.bandwidthTestResponse !== void 0) BandwidthTestResponse.encode(message.bandwidthTestResponse, writer.uint32(202).fork()).join();
3849
+ if (message.prepareMobileUploadResponse !== void 0) PrepareMobileUploadResponse.encode(message.prepareMobileUploadResponse, writer.uint32(250).fork()).join();
3850
+ if (message.putMobileUploadChunkResponse !== void 0) PutMobileUploadChunkResponse.encode(message.putMobileUploadChunkResponse, writer.uint32(258).fork()).join();
3211
3851
  return writer;
3212
3852
  },
3213
3853
  decode(input, length) {
@@ -3293,6 +3933,14 @@ const Response = {
3293
3933
  if (tag !== 202) break;
3294
3934
  message.bandwidthTestResponse = BandwidthTestResponse.decode(reader, reader.uint32());
3295
3935
  continue;
3936
+ case 31:
3937
+ if (tag !== 250) break;
3938
+ message.prepareMobileUploadResponse = PrepareMobileUploadResponse.decode(reader, reader.uint32());
3939
+ continue;
3940
+ case 32:
3941
+ if (tag !== 258) break;
3942
+ message.putMobileUploadChunkResponse = PutMobileUploadChunkResponse.decode(reader, reader.uint32());
3943
+ continue;
3296
3944
  }
3297
3945
  if ((tag & 7) === 4 || tag === 0) break;
3298
3946
  reader.skip(tag & 7);
@@ -3319,7 +3967,9 @@ const Response = {
3319
3967
  getMessagesResponse: isSet(object.getMessagesResponse) ? GetMessagesResponse.fromJSON(object.getMessagesResponse) : void 0,
3320
3968
  getLocalProfilesResponse: isSet(object.getLocalProfilesResponse) ? GetLocalProfilesResponse.fromJSON(object.getLocalProfilesResponse) : void 0,
3321
3969
  keysInfoResponse: isSet(object.keysInfoResponse) ? KeysInfoResponse.fromJSON(object.keysInfoResponse) : void 0,
3322
- bandwidthTestResponse: isSet(object.bandwidthTestResponse) ? BandwidthTestResponse.fromJSON(object.bandwidthTestResponse) : void 0
3970
+ bandwidthTestResponse: isSet(object.bandwidthTestResponse) ? BandwidthTestResponse.fromJSON(object.bandwidthTestResponse) : void 0,
3971
+ prepareMobileUploadResponse: isSet(object.prepareMobileUploadResponse) ? PrepareMobileUploadResponse.fromJSON(object.prepareMobileUploadResponse) : void 0,
3972
+ putMobileUploadChunkResponse: isSet(object.putMobileUploadChunkResponse) ? PutMobileUploadChunkResponse.fromJSON(object.putMobileUploadChunkResponse) : void 0
3323
3973
  };
3324
3974
  },
3325
3975
  toJSON(message) {
@@ -3343,6 +3993,8 @@ const Response = {
3343
3993
  if (message.getLocalProfilesResponse !== void 0) obj.getLocalProfilesResponse = GetLocalProfilesResponse.toJSON(message.getLocalProfilesResponse);
3344
3994
  if (message.keysInfoResponse !== void 0) obj.keysInfoResponse = KeysInfoResponse.toJSON(message.keysInfoResponse);
3345
3995
  if (message.bandwidthTestResponse !== void 0) obj.bandwidthTestResponse = BandwidthTestResponse.toJSON(message.bandwidthTestResponse);
3996
+ if (message.prepareMobileUploadResponse !== void 0) obj.prepareMobileUploadResponse = PrepareMobileUploadResponse.toJSON(message.prepareMobileUploadResponse);
3997
+ if (message.putMobileUploadChunkResponse !== void 0) obj.putMobileUploadChunkResponse = PutMobileUploadChunkResponse.toJSON(message.putMobileUploadChunkResponse);
3346
3998
  return obj;
3347
3999
  },
3348
4000
  create(base) {
@@ -3369,6 +4021,8 @@ const Response = {
3369
4021
  message.getLocalProfilesResponse = object.getLocalProfilesResponse !== void 0 && object.getLocalProfilesResponse !== null ? GetLocalProfilesResponse.fromPartial(object.getLocalProfilesResponse) : void 0;
3370
4022
  message.keysInfoResponse = object.keysInfoResponse !== void 0 && object.keysInfoResponse !== null ? KeysInfoResponse.fromPartial(object.keysInfoResponse) : void 0;
3371
4023
  message.bandwidthTestResponse = object.bandwidthTestResponse !== void 0 && object.bandwidthTestResponse !== null ? BandwidthTestResponse.fromPartial(object.bandwidthTestResponse) : void 0;
4024
+ message.prepareMobileUploadResponse = object.prepareMobileUploadResponse !== void 0 && object.prepareMobileUploadResponse !== null ? PrepareMobileUploadResponse.fromPartial(object.prepareMobileUploadResponse) : void 0;
4025
+ message.putMobileUploadChunkResponse = object.putMobileUploadChunkResponse !== void 0 && object.putMobileUploadChunkResponse !== null ? PutMobileUploadChunkResponse.fromPartial(object.putMobileUploadChunkResponse) : void 0;
3372
4026
  return message;
3373
4027
  }
3374
4028
  };
@@ -7965,7 +8619,8 @@ function createBaseVehicleDataSubscription() {
7965
8619
  preconditioningScheduleStateMaxUpdateRateMs: 0,
7966
8620
  alertStateMaxUpdateRateMs: 0,
7967
8621
  suspensionStateMaxUpdateRateMs: 0,
7968
- childPresenceDetectionStateMaxUpdateRateMs: 0
8622
+ childPresenceDetectionStateMaxUpdateRateMs: 0,
8623
+ displayStateMaxUpdateRateMs: 0
7969
8624
  };
7970
8625
  }
7971
8626
  const VehicleDataSubscription = {
@@ -7987,6 +8642,7 @@ const VehicleDataSubscription = {
7987
8642
  if (message.alertStateMaxUpdateRateMs !== 0) writer.uint32(136).int32(message.alertStateMaxUpdateRateMs);
7988
8643
  if (message.suspensionStateMaxUpdateRateMs !== 0) writer.uint32(144).int32(message.suspensionStateMaxUpdateRateMs);
7989
8644
  if (message.childPresenceDetectionStateMaxUpdateRateMs !== 0) writer.uint32(152).int32(message.childPresenceDetectionStateMaxUpdateRateMs);
8645
+ if (message.displayStateMaxUpdateRateMs !== 0) writer.uint32(224).int32(message.displayStateMaxUpdateRateMs);
7990
8646
  return writer;
7991
8647
  },
7992
8648
  decode(input, length) {
@@ -8064,6 +8720,10 @@ const VehicleDataSubscription = {
8064
8720
  if (tag !== 152) break;
8065
8721
  message.childPresenceDetectionStateMaxUpdateRateMs = reader.int32();
8066
8722
  continue;
8723
+ case 28:
8724
+ if (tag !== 224) break;
8725
+ message.displayStateMaxUpdateRateMs = reader.int32();
8726
+ continue;
8067
8727
  }
8068
8728
  if ((tag & 7) === 4 || tag === 0) break;
8069
8729
  reader.skip(tag & 7);
@@ -8088,7 +8748,8 @@ const VehicleDataSubscription = {
8088
8748
  preconditioningScheduleStateMaxUpdateRateMs: isSet(object.preconditioningScheduleStateMaxUpdateRateMs) ? globalThis.Number(object.preconditioningScheduleStateMaxUpdateRateMs) : 0,
8089
8749
  alertStateMaxUpdateRateMs: isSet(object.alertStateMaxUpdateRateMs) ? globalThis.Number(object.alertStateMaxUpdateRateMs) : 0,
8090
8750
  suspensionStateMaxUpdateRateMs: isSet(object.suspensionStateMaxUpdateRateMs) ? globalThis.Number(object.suspensionStateMaxUpdateRateMs) : 0,
8091
- childPresenceDetectionStateMaxUpdateRateMs: isSet(object.childPresenceDetectionStateMaxUpdateRateMs) ? globalThis.Number(object.childPresenceDetectionStateMaxUpdateRateMs) : 0
8751
+ childPresenceDetectionStateMaxUpdateRateMs: isSet(object.childPresenceDetectionStateMaxUpdateRateMs) ? globalThis.Number(object.childPresenceDetectionStateMaxUpdateRateMs) : 0,
8752
+ displayStateMaxUpdateRateMs: isSet(object.displayStateMaxUpdateRateMs) ? globalThis.Number(object.displayStateMaxUpdateRateMs) : 0
8092
8753
  };
8093
8754
  },
8094
8755
  toJSON(message) {
@@ -8110,6 +8771,7 @@ const VehicleDataSubscription = {
8110
8771
  if (message.alertStateMaxUpdateRateMs !== void 0) obj.alertStateMaxUpdateRateMs = Math.round(message.alertStateMaxUpdateRateMs);
8111
8772
  if (message.suspensionStateMaxUpdateRateMs !== void 0) obj.suspensionStateMaxUpdateRateMs = Math.round(message.suspensionStateMaxUpdateRateMs);
8112
8773
  if (message.childPresenceDetectionStateMaxUpdateRateMs !== void 0) obj.childPresenceDetectionStateMaxUpdateRateMs = Math.round(message.childPresenceDetectionStateMaxUpdateRateMs);
8774
+ if (message.displayStateMaxUpdateRateMs !== void 0) obj.displayStateMaxUpdateRateMs = Math.round(message.displayStateMaxUpdateRateMs);
8113
8775
  return obj;
8114
8776
  },
8115
8777
  create(base) {
@@ -8134,6 +8796,7 @@ const VehicleDataSubscription = {
8134
8796
  message.alertStateMaxUpdateRateMs = object.alertStateMaxUpdateRateMs ?? 0;
8135
8797
  message.suspensionStateMaxUpdateRateMs = object.suspensionStateMaxUpdateRateMs ?? 0;
8136
8798
  message.childPresenceDetectionStateMaxUpdateRateMs = object.childPresenceDetectionStateMaxUpdateRateMs ?? 0;
8799
+ message.displayStateMaxUpdateRateMs = object.displayStateMaxUpdateRateMs ?? 0;
8137
8800
  return message;
8138
8801
  }
8139
8802
  };
@@ -8194,6 +8857,7 @@ function createBaseVehicleDataAck() {
8194
8857
  preconditioningScheduleStateTimestamp: void 0,
8195
8858
  alertStateTimestamp: void 0,
8196
8859
  suspensionStateTimestamp: void 0,
8860
+ displayStateTimestamp: void 0,
8197
8861
  decryptionErrorField: []
8198
8862
  };
8199
8863
  }
@@ -8212,6 +8876,7 @@ const VehicleDataAck = {
8212
8876
  if (message.preconditioningScheduleStateTimestamp !== void 0) require_command_google_protobuf_timestamp.Timestamp.encode(toTimestamp(message.preconditioningScheduleStateTimestamp), writer.uint32(106).fork()).join();
8213
8877
  if (message.alertStateTimestamp !== void 0) require_command_google_protobuf_timestamp.Timestamp.encode(toTimestamp(message.alertStateTimestamp), writer.uint32(114).fork()).join();
8214
8878
  if (message.suspensionStateTimestamp !== void 0) require_command_google_protobuf_timestamp.Timestamp.encode(toTimestamp(message.suspensionStateTimestamp), writer.uint32(122).fork()).join();
8879
+ if (message.displayStateTimestamp !== void 0) require_command_google_protobuf_timestamp.Timestamp.encode(toTimestamp(message.displayStateTimestamp), writer.uint32(194).fork()).join();
8215
8880
  writer.uint32(82).fork();
8216
8881
  for (const v of message.decryptionErrorField) writer.int32(v);
8217
8882
  writer.join();
@@ -8276,6 +8941,10 @@ const VehicleDataAck = {
8276
8941
  if (tag !== 122) break;
8277
8942
  message.suspensionStateTimestamp = fromTimestamp(require_command_google_protobuf_timestamp.Timestamp.decode(reader, reader.uint32()));
8278
8943
  continue;
8944
+ case 24:
8945
+ if (tag !== 194) break;
8946
+ message.displayStateTimestamp = fromTimestamp(require_command_google_protobuf_timestamp.Timestamp.decode(reader, reader.uint32()));
8947
+ continue;
8279
8948
  case 10:
8280
8949
  if (tag === 80) {
8281
8950
  message.decryptionErrorField.push(reader.int32());
@@ -8308,6 +8977,7 @@ const VehicleDataAck = {
8308
8977
  preconditioningScheduleStateTimestamp: isSet(object.preconditioningScheduleStateTimestamp) ? fromJsonTimestamp(object.preconditioningScheduleStateTimestamp) : void 0,
8309
8978
  alertStateTimestamp: isSet(object.alertStateTimestamp) ? fromJsonTimestamp(object.alertStateTimestamp) : void 0,
8310
8979
  suspensionStateTimestamp: isSet(object.suspensionStateTimestamp) ? fromJsonTimestamp(object.suspensionStateTimestamp) : void 0,
8980
+ displayStateTimestamp: isSet(object.displayStateTimestamp) ? fromJsonTimestamp(object.displayStateTimestamp) : void 0,
8311
8981
  decryptionErrorField: globalThis.Array.isArray(object?.decryptionErrorField) ? object.decryptionErrorField.map((e) => globalThis.Number(e)) : []
8312
8982
  };
8313
8983
  },
@@ -8326,6 +8996,7 @@ const VehicleDataAck = {
8326
8996
  if (message.preconditioningScheduleStateTimestamp !== void 0) obj.preconditioningScheduleStateTimestamp = message.preconditioningScheduleStateTimestamp.toISOString();
8327
8997
  if (message.alertStateTimestamp !== void 0) obj.alertStateTimestamp = message.alertStateTimestamp.toISOString();
8328
8998
  if (message.suspensionStateTimestamp !== void 0) obj.suspensionStateTimestamp = message.suspensionStateTimestamp.toISOString();
8999
+ if (message.displayStateTimestamp !== void 0) obj.displayStateTimestamp = message.displayStateTimestamp.toISOString();
8329
9000
  if (message.decryptionErrorField?.length) obj.decryptionErrorField = message.decryptionErrorField.map((e) => Math.round(e));
8330
9001
  return obj;
8331
9002
  },
@@ -8347,6 +9018,7 @@ const VehicleDataAck = {
8347
9018
  message.preconditioningScheduleStateTimestamp = object.preconditioningScheduleStateTimestamp ?? void 0;
8348
9019
  message.alertStateTimestamp = object.alertStateTimestamp ?? void 0;
8349
9020
  message.suspensionStateTimestamp = object.suspensionStateTimestamp ?? void 0;
9021
+ message.displayStateTimestamp = object.displayStateTimestamp ?? void 0;
8350
9022
  message.decryptionErrorField = object.decryptionErrorField?.map((e) => e) || [];
8351
9023
  return message;
8352
9024
  }
@@ -11771,6 +12443,61 @@ const SetEnergyDisplayFormatAction = {
11771
12443
  return message;
11772
12444
  }
11773
12445
  };
12446
+ function createBaseDisplayStateAction() {
12447
+ return {
12448
+ displayBrightnessAutoRequest: false,
12449
+ displayBrightnessScalePreferenceRequest: 0
12450
+ };
12451
+ }
12452
+ const DisplayStateAction = {
12453
+ encode(message, writer = new _bufbuild_protobuf_wire.BinaryWriter()) {
12454
+ if (message.displayBrightnessAutoRequest !== false) writer.uint32(8).bool(message.displayBrightnessAutoRequest);
12455
+ if (message.displayBrightnessScalePreferenceRequest !== 0) writer.uint32(16).uint32(message.displayBrightnessScalePreferenceRequest);
12456
+ return writer;
12457
+ },
12458
+ decode(input, length) {
12459
+ const reader = input instanceof _bufbuild_protobuf_wire.BinaryReader ? input : new _bufbuild_protobuf_wire.BinaryReader(input);
12460
+ const end = length === void 0 ? reader.len : reader.pos + length;
12461
+ const message = createBaseDisplayStateAction();
12462
+ while (reader.pos < end) {
12463
+ const tag = reader.uint32();
12464
+ switch (tag >>> 3) {
12465
+ case 1:
12466
+ if (tag !== 8) break;
12467
+ message.displayBrightnessAutoRequest = reader.bool();
12468
+ continue;
12469
+ case 2:
12470
+ if (tag !== 16) break;
12471
+ message.displayBrightnessScalePreferenceRequest = reader.uint32();
12472
+ continue;
12473
+ }
12474
+ if ((tag & 7) === 4 || tag === 0) break;
12475
+ reader.skip(tag & 7);
12476
+ }
12477
+ return message;
12478
+ },
12479
+ fromJSON(object) {
12480
+ return {
12481
+ displayBrightnessAutoRequest: isSet(object.displayBrightnessAutoRequest) ? globalThis.Boolean(object.displayBrightnessAutoRequest) : false,
12482
+ displayBrightnessScalePreferenceRequest: isSet(object.displayBrightnessScalePreferenceRequest) ? globalThis.Number(object.displayBrightnessScalePreferenceRequest) : 0
12483
+ };
12484
+ },
12485
+ toJSON(message) {
12486
+ const obj = {};
12487
+ if (message.displayBrightnessAutoRequest !== void 0) obj.displayBrightnessAutoRequest = message.displayBrightnessAutoRequest;
12488
+ if (message.displayBrightnessScalePreferenceRequest !== void 0) obj.displayBrightnessScalePreferenceRequest = Math.round(message.displayBrightnessScalePreferenceRequest);
12489
+ return obj;
12490
+ },
12491
+ create(base) {
12492
+ return DisplayStateAction.fromPartial(base ?? {});
12493
+ },
12494
+ fromPartial(object) {
12495
+ const message = createBaseDisplayStateAction();
12496
+ message.displayBrightnessAutoRequest = object.displayBrightnessAutoRequest ?? false;
12497
+ message.displayBrightnessScalePreferenceRequest = object.displayBrightnessScalePreferenceRequest ?? 0;
12498
+ return message;
12499
+ }
12500
+ };
11774
12501
  function createBaseSetKeepAccessoryPowerModeAction() {
11775
12502
  return { keepAccessoryPowerMode: false };
11776
12503
  }
@@ -12289,6 +13016,9 @@ exports.CreateStreamSession = CreateStreamSession;
12289
13016
  exports.DashcamSaveClipAction = DashcamSaveClipAction;
12290
13017
  exports.DeleteDashcamClipsAction = DeleteDashcamClipsAction;
12291
13018
  exports.DestinationCharging = DestinationCharging;
13019
+ exports.DisplayStateAction = DisplayStateAction;
13020
+ exports.DogModeLiveActivityData = DogModeLiveActivityData;
13021
+ exports.DogModeLiveActivityData_DisabledReason = DogModeLiveActivityData_DisabledReason;
12292
13022
  exports.DrivingClearSpeedLimitPinAction = DrivingClearSpeedLimitPinAction;
12293
13023
  exports.DrivingClearSpeedLimitPinAdminAction = DrivingClearSpeedLimitPinAdminAction;
12294
13024
  exports.DrivingSetSpeedLimitAction = DrivingSetSpeedLimitAction;
@@ -12306,6 +13036,7 @@ exports.GetChargeState = GetChargeState;
12306
13036
  exports.GetChildPresenceDetectionState = GetChildPresenceDetectionState;
12307
13037
  exports.GetClimateState = GetClimateState;
12308
13038
  exports.GetClosuresState = GetClosuresState;
13039
+ exports.GetDisplayState = GetDisplayState;
12309
13040
  exports.GetDriveState = GetDriveState;
12310
13041
  exports.GetGuiSettings = GetGuiSettings;
12311
13042
  exports.GetLegacyVehicleState = GetLegacyVehicleState;
@@ -12364,6 +13095,8 @@ exports.MediaPreviousFavorite = MediaPreviousFavorite;
12364
13095
  exports.MediaPreviousTrack = MediaPreviousTrack;
12365
13096
  exports.MediaUpdateVolume = MediaUpdateVolume;
12366
13097
  exports.MobileAppMessage = MobileAppMessage;
13098
+ exports.MobileImageUploadParams = MobileImageUploadParams;
13099
+ exports.MobileUploadParams = MobileUploadParams;
12367
13100
  exports.NavigationGpsDestinationRequest = NavigationGpsDestinationRequest;
12368
13101
  exports.NavigationGpsDestinationRequest_RemoteNavTripOrder = NavigationGpsDestinationRequest_RemoteNavTripOrder;
12369
13102
  exports.NavigationGpsRequest = NavigationGpsRequest;
@@ -12389,9 +13122,15 @@ exports.PhoneUnitPreferences = PhoneUnitPreferences;
12389
13122
  exports.PiiKeyRequest = PiiKeyRequest;
12390
13123
  exports.PiiKeyResponse = PiiKeyResponse;
12391
13124
  exports.Ping = Ping;
13125
+ exports.PrepareMobileUploadAction = PrepareMobileUploadAction;
13126
+ exports.PrepareMobileUploadResponse = PrepareMobileUploadResponse;
13127
+ exports.PrepareMobileUploadResponse_Status = PrepareMobileUploadResponse_Status;
12392
13128
  exports.Profile = Profile;
12393
13129
  exports.PseudonymSyncRequest = PseudonymSyncRequest;
12394
13130
  exports.PseudonymSyncResponse = PseudonymSyncResponse;
13131
+ exports.PutMobileUploadChunkAction = PutMobileUploadChunkAction;
13132
+ exports.PutMobileUploadChunkResponse = PutMobileUploadChunkResponse;
13133
+ exports.PutMobileUploadChunkResponse_Status = PutMobileUploadChunkResponse_Status;
12395
13134
  exports.RemoteStartDrive = RemoteStartDrive;
12396
13135
  exports.RemoveChargeScheduleAction = RemoveChargeScheduleAction;
12397
13136
  exports.RemoveManagedChargingSiteRequest = RemoveManagedChargingSiteRequest;
@@ -12491,6 +13230,8 @@ exports.VitalsSubscription = VitalsSubscription;
12491
13230
  exports.VitalsSubscriptionResponse = VitalsSubscriptionResponse;
12492
13231
  exports.autoSeatClimateAction_AutoSeatPositionEFromJSON = autoSeatClimateAction_AutoSeatPositionEFromJSON;
12493
13232
  exports.autoSeatClimateAction_AutoSeatPositionEToJSON = autoSeatClimateAction_AutoSeatPositionEToJSON;
13233
+ exports.dogModeLiveActivityData_DisabledReasonFromJSON = dogModeLiveActivityData_DisabledReasonFromJSON;
13234
+ exports.dogModeLiveActivityData_DisabledReasonToJSON = dogModeLiveActivityData_DisabledReasonToJSON;
12494
13235
  exports.hvacClimateKeeperAction_ClimateKeeperActionEFromJSON = hvacClimateKeeperAction_ClimateKeeperActionEFromJSON;
12495
13236
  exports.hvacClimateKeeperAction_ClimateKeeperActionEToJSON = hvacClimateKeeperAction_ClimateKeeperActionEToJSON;
12496
13237
  exports.hvacClimateKeeperAction_ManualOverrideModeEFromJSON = hvacClimateKeeperAction_ManualOverrideModeEFromJSON;
@@ -12513,7 +13254,11 @@ exports.operationStatusEFromJSON = operationStatusEFromJSON;
12513
13254
  exports.operationStatusEToJSON = operationStatusEToJSON;
12514
13255
  exports.parentalControlsEnableSettingsAction_ParentalControlsSettingEFromJSON = parentalControlsEnableSettingsAction_ParentalControlsSettingEFromJSON;
12515
13256
  exports.parentalControlsEnableSettingsAction_ParentalControlsSettingEToJSON = parentalControlsEnableSettingsAction_ParentalControlsSettingEToJSON;
13257
+ exports.prepareMobileUploadResponse_StatusFromJSON = prepareMobileUploadResponse_StatusFromJSON;
13258
+ exports.prepareMobileUploadResponse_StatusToJSON = prepareMobileUploadResponse_StatusToJSON;
12516
13259
  exports.protobufPackage = protobufPackage;
13260
+ exports.putMobileUploadChunkResponse_StatusFromJSON = putMobileUploadChunkResponse_StatusFromJSON;
13261
+ exports.putMobileUploadChunkResponse_StatusToJSON = putMobileUploadChunkResponse_StatusToJSON;
12517
13262
  exports.setDistanceUnitAction_UnitFromJSON = setDistanceUnitAction_UnitFromJSON;
12518
13263
  exports.setDistanceUnitAction_UnitToJSON = setDistanceUnitAction_UnitToJSON;
12519
13264
  exports.setEnergyDisplayFormatAction_FormatFromJSON = setEnergyDisplayFormatAction_FormatFromJSON;