@teslemetry/tesla-protocol 0.5.0 → 1.0.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/README.md +1 -3
- package/dist/charging/charging.cjs +550 -0
- package/dist/charging/charging.d.cts +75 -0
- package/dist/charging/charging.d.mts +75 -0
- package/dist/charging/charging.mjs +543 -0
- package/dist/command/car_server.cjs +212 -11
- package/dist/command/car_server.d.cts +121 -96
- package/dist/command/car_server.d.mts +121 -96
- package/dist/command/car_server.mjs +206 -12
- package/dist/command/common.cjs +43 -0
- package/dist/command/common.d.cts +6 -2
- package/dist/command/common.d.mts +6 -2
- package/dist/command/common.mjs +43 -1
- package/dist/command/managed_charging.d.cts +1 -1
- package/dist/command/managed_charging.d.mts +1 -1
- package/dist/command/session.d.cts +0 -4
- package/dist/command/session.d.mts +0 -4
- package/dist/command/universal_message.cjs +8 -3
- package/dist/command/universal_message.d.cts +5 -3
- package/dist/command/universal_message.d.mts +5 -3
- package/dist/command/universal_message.mjs +8 -3
- package/dist/command/vcsec.cjs +124 -39
- package/dist/command/vcsec.d.cts +50 -40
- package/dist/command/vcsec.d.mts +50 -40
- package/dist/command/vcsec.mjs +123 -40
- package/dist/command/vehicle.cjs +156 -18
- package/dist/command/vehicle.d.cts +70 -57
- package/dist/command/vehicle.d.mts +70 -57
- package/dist/command/vehicle.mjs +156 -20
- package/dist/dashcam/dashcam_sei.cjs +263 -0
- package/dist/dashcam/dashcam_sei.d.cts +60 -0
- package/dist/dashcam/dashcam_sei.d.mts +60 -0
- package/dist/dashcam/dashcam_sei.mjs +255 -0
- package/dist/energy_command/identifier_type.cjs +0 -5
- package/dist/energy_command/identifier_type.d.cts +0 -5
- package/dist/energy_command/identifier_type.d.mts +0 -5
- package/dist/energy_command/identifier_type.mjs +0 -5
- package/dist/energy_device/authorization_api.d.cts +0 -5
- package/dist/energy_device/authorization_api.d.mts +0 -5
- package/dist/energy_device/authorization_types.cjs +0 -5
- package/dist/energy_device/authorization_types.d.cts +0 -5
- package/dist/energy_device/authorization_types.d.mts +0 -5
- package/dist/energy_device/authorization_types.mjs +0 -5
- package/dist/energy_device/common_api.cjs +604 -11
- package/dist/energy_device/common_api.d.cts +60 -8
- package/dist/energy_device/common_api.d.mts +60 -8
- package/dist/energy_device/common_api.mjs +596 -12
- package/dist/energy_device/device.cjs +129 -5
- package/dist/energy_device/device.d.cts +13 -6
- package/dist/energy_device/device.d.mts +13 -6
- package/dist/energy_device/device.mjs +127 -6
- package/dist/energy_device/energy.cjs +0 -5
- package/dist/energy_device/energy.d.cts +0 -5
- package/dist/energy_device/energy.d.mts +0 -5
- package/dist/energy_device/energy.mjs +0 -5
- package/dist/energy_device/energy_site_net.cjs +747 -5
- package/dist/energy_device/energy_site_net.d.cts +84 -6
- package/dist/energy_device/energy_site_net.d.mts +84 -6
- package/dist/energy_device/energy_site_net.mjs +736 -6
- package/dist/energy_device/error.d.cts +0 -5
- package/dist/energy_device/error.d.mts +0 -5
- package/dist/energy_device/filestore_api.cjs +570 -0
- package/dist/energy_device/filestore_api.d.cts +76 -0
- package/dist/energy_device/filestore_api.d.mts +76 -0
- package/dist/energy_device/filestore_api.mjs +558 -0
- package/dist/energy_device/google/protobuf/duration.cjs +71 -0
- package/dist/energy_device/google/protobuf/duration.d.cts +95 -0
- package/dist/energy_device/google/protobuf/duration.d.mts +95 -0
- package/dist/energy_device/google/protobuf/duration.mjs +69 -0
- package/dist/energy_device/graphql_api.cjs +444 -0
- package/dist/energy_device/graphql_api.d.cts +73 -0
- package/dist/energy_device/graphql_api.d.mts +73 -0
- package/dist/energy_device/graphql_api.mjs +429 -0
- package/dist/energy_device/intra_site_api.cjs +1693 -0
- package/dist/energy_device/intra_site_api.d.cts +222 -0
- package/dist/energy_device/intra_site_api.d.mts +222 -0
- package/dist/energy_device/intra_site_api.mjs +1639 -0
- package/dist/energy_device/local_auth_api.cjs +500 -0
- package/dist/energy_device/local_auth_api.d.cts +68 -0
- package/dist/energy_device/local_auth_api.d.mts +68 -0
- package/dist/energy_device/local_auth_api.mjs +487 -0
- package/dist/energy_device/networking.cjs +20 -7
- package/dist/energy_device/networking.d.cts +2 -5
- package/dist/energy_device/networking.d.mts +2 -5
- package/dist/energy_device/networking.mjs +20 -7
- package/dist/energy_device/neurio_meter_api.cjs +1437 -0
- package/dist/energy_device/neurio_meter_api.d.cts +197 -0
- package/dist/energy_device/neurio_meter_api.d.mts +197 -0
- package/dist/energy_device/neurio_meter_api.mjs +1396 -0
- package/dist/energy_device/pvi_api.cjs +2949 -0
- package/dist/energy_device/pvi_api.d.cts +314 -0
- package/dist/energy_device/pvi_api.d.mts +314 -0
- package/dist/energy_device/pvi_api.mjs +2887 -0
- package/dist/energy_device/teg_api.cjs +5179 -147
- package/dist/energy_device/teg_api.d.cts +490 -80
- package/dist/energy_device/teg_api.d.mts +490 -80
- package/dist/energy_device/teg_api.mjs +5059 -148
- package/dist/energy_device/transport.cjs +82 -7
- package/dist/energy_device/transport.d.cts +16 -10
- package/dist/energy_device/transport.d.mts +16 -10
- package/dist/energy_device/transport.mjs +82 -7
- package/dist/energy_device/update.cjs +33 -11
- package/dist/energy_device/update.d.cts +3 -5
- package/dist/energy_device/update.d.mts +3 -5
- package/dist/energy_device/update.mjs +33 -11
- package/dist/energy_device/wall_connector.cjs +6729 -10
- package/dist/energy_device/wall_connector.d.cts +696 -7
- package/dist/energy_device/wall_connector.d.mts +696 -7
- package/dist/energy_device/wall_connector.mjs +6591 -11
- package/dist/telemetry/vehicle_data.cjs +1 -1
- package/dist/telemetry/vehicle_data.d.cts +1 -1
- package/dist/telemetry/vehicle_data.d.mts +1 -1
- package/dist/telemetry/vehicle_data.mjs +1 -1
- package/package.json +1 -1
|
@@ -2,11 +2,6 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
2
2
|
let _bufbuild_protobuf_wire = require("@bufbuild/protobuf/wire");
|
|
3
3
|
//#region src/energy_device/device.ts
|
|
4
4
|
const protobufPackage = "tesla.proto.energy_device.v1";
|
|
5
|
-
/**
|
|
6
|
-
* TESLEMETRY SOURCE-OF-RECORD - no upstream.
|
|
7
|
-
* Provenance: Tesla Energy gateway (TEG) local API, from our own
|
|
8
|
-
* observations and contributions from the community
|
|
9
|
-
*/
|
|
10
5
|
let DeviceType = /* @__PURE__ */ function(DeviceType) {
|
|
11
6
|
DeviceType[DeviceType["DEVICE_TYPE_INVALID"] = 0] = "DEVICE_TYPE_INVALID";
|
|
12
7
|
DeviceType[DeviceType["DEVICE_TYPE_GEN3WC"] = 1] = "DEVICE_TYPE_GEN3WC";
|
|
@@ -300,6 +295,132 @@ const EcuId = {
|
|
|
300
295
|
return message;
|
|
301
296
|
}
|
|
302
297
|
};
|
|
298
|
+
function createBaseVIN() {
|
|
299
|
+
return { value: "" };
|
|
300
|
+
}
|
|
301
|
+
const VIN = {
|
|
302
|
+
encode(message, writer = new _bufbuild_protobuf_wire.BinaryWriter()) {
|
|
303
|
+
if (message.value !== "") writer.uint32(10).string(message.value);
|
|
304
|
+
return writer;
|
|
305
|
+
},
|
|
306
|
+
decode(input, length) {
|
|
307
|
+
const reader = input instanceof _bufbuild_protobuf_wire.BinaryReader ? input : new _bufbuild_protobuf_wire.BinaryReader(input);
|
|
308
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
309
|
+
const message = createBaseVIN();
|
|
310
|
+
while (reader.pos < end) {
|
|
311
|
+
const tag = reader.uint32();
|
|
312
|
+
switch (tag >>> 3) {
|
|
313
|
+
case 1:
|
|
314
|
+
if (tag !== 10) break;
|
|
315
|
+
message.value = reader.string();
|
|
316
|
+
continue;
|
|
317
|
+
}
|
|
318
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
319
|
+
reader.skip(tag & 7);
|
|
320
|
+
}
|
|
321
|
+
return message;
|
|
322
|
+
},
|
|
323
|
+
fromJSON(object) {
|
|
324
|
+
return { value: isSet(object.value) ? globalThis.String(object.value) : "" };
|
|
325
|
+
},
|
|
326
|
+
toJSON(message) {
|
|
327
|
+
const obj = {};
|
|
328
|
+
if (message.value !== void 0) obj.value = message.value;
|
|
329
|
+
return obj;
|
|
330
|
+
},
|
|
331
|
+
create(base) {
|
|
332
|
+
return VIN.fromPartial(base ?? {});
|
|
333
|
+
},
|
|
334
|
+
fromPartial(object) {
|
|
335
|
+
const message = createBaseVIN();
|
|
336
|
+
message.value = object.value ?? "";
|
|
337
|
+
return message;
|
|
338
|
+
}
|
|
339
|
+
};
|
|
340
|
+
function createBaseUUIDv4Bytes() {
|
|
341
|
+
return { value: /* @__PURE__ */ new Uint8Array(0) };
|
|
342
|
+
}
|
|
343
|
+
const UUIDv4Bytes = {
|
|
344
|
+
encode(message, writer = new _bufbuild_protobuf_wire.BinaryWriter()) {
|
|
345
|
+
if (message.value.length !== 0) writer.uint32(10).bytes(message.value);
|
|
346
|
+
return writer;
|
|
347
|
+
},
|
|
348
|
+
decode(input, length) {
|
|
349
|
+
const reader = input instanceof _bufbuild_protobuf_wire.BinaryReader ? input : new _bufbuild_protobuf_wire.BinaryReader(input);
|
|
350
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
351
|
+
const message = createBaseUUIDv4Bytes();
|
|
352
|
+
while (reader.pos < end) {
|
|
353
|
+
const tag = reader.uint32();
|
|
354
|
+
switch (tag >>> 3) {
|
|
355
|
+
case 1:
|
|
356
|
+
if (tag !== 10) break;
|
|
357
|
+
message.value = reader.bytes();
|
|
358
|
+
continue;
|
|
359
|
+
}
|
|
360
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
361
|
+
reader.skip(tag & 7);
|
|
362
|
+
}
|
|
363
|
+
return message;
|
|
364
|
+
},
|
|
365
|
+
fromJSON(object) {
|
|
366
|
+
return { value: isSet(object.value) ? bytesFromBase64(object.value) : /* @__PURE__ */ new Uint8Array(0) };
|
|
367
|
+
},
|
|
368
|
+
toJSON(message) {
|
|
369
|
+
const obj = {};
|
|
370
|
+
if (message.value !== void 0) obj.value = base64FromBytes(message.value);
|
|
371
|
+
return obj;
|
|
372
|
+
},
|
|
373
|
+
create(base) {
|
|
374
|
+
return UUIDv4Bytes.fromPartial(base ?? {});
|
|
375
|
+
},
|
|
376
|
+
fromPartial(object) {
|
|
377
|
+
const message = createBaseUUIDv4Bytes();
|
|
378
|
+
message.value = object.value ?? /* @__PURE__ */ new Uint8Array(0);
|
|
379
|
+
return message;
|
|
380
|
+
}
|
|
381
|
+
};
|
|
382
|
+
function createBaseUUIDv4() {
|
|
383
|
+
return { text: "" };
|
|
384
|
+
}
|
|
385
|
+
const UUIDv4 = {
|
|
386
|
+
encode(message, writer = new _bufbuild_protobuf_wire.BinaryWriter()) {
|
|
387
|
+
if (message.text !== "") writer.uint32(10).string(message.text);
|
|
388
|
+
return writer;
|
|
389
|
+
},
|
|
390
|
+
decode(input, length) {
|
|
391
|
+
const reader = input instanceof _bufbuild_protobuf_wire.BinaryReader ? input : new _bufbuild_protobuf_wire.BinaryReader(input);
|
|
392
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
393
|
+
const message = createBaseUUIDv4();
|
|
394
|
+
while (reader.pos < end) {
|
|
395
|
+
const tag = reader.uint32();
|
|
396
|
+
switch (tag >>> 3) {
|
|
397
|
+
case 1:
|
|
398
|
+
if (tag !== 10) break;
|
|
399
|
+
message.text = reader.string();
|
|
400
|
+
continue;
|
|
401
|
+
}
|
|
402
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
403
|
+
reader.skip(tag & 7);
|
|
404
|
+
}
|
|
405
|
+
return message;
|
|
406
|
+
},
|
|
407
|
+
fromJSON(object) {
|
|
408
|
+
return { text: isSet(object.text) ? globalThis.String(object.text) : "" };
|
|
409
|
+
},
|
|
410
|
+
toJSON(message) {
|
|
411
|
+
const obj = {};
|
|
412
|
+
if (message.text !== void 0) obj.text = message.text;
|
|
413
|
+
return obj;
|
|
414
|
+
},
|
|
415
|
+
create(base) {
|
|
416
|
+
return UUIDv4.fromPartial(base ?? {});
|
|
417
|
+
},
|
|
418
|
+
fromPartial(object) {
|
|
419
|
+
const message = createBaseUUIDv4();
|
|
420
|
+
message.text = object.text ?? "";
|
|
421
|
+
return message;
|
|
422
|
+
}
|
|
423
|
+
};
|
|
303
424
|
function createBaseDeviceSignedPayload() {
|
|
304
425
|
return {
|
|
305
426
|
payload: /* @__PURE__ */ new Uint8Array(0),
|
|
@@ -469,6 +590,9 @@ exports.Din = Din;
|
|
|
469
590
|
exports.EcuId = EcuId;
|
|
470
591
|
exports.EncryptedMessage = EncryptedMessage;
|
|
471
592
|
exports.TEGDeviceType = TEGDeviceType;
|
|
593
|
+
exports.UUIDv4 = UUIDv4;
|
|
594
|
+
exports.UUIDv4Bytes = UUIDv4Bytes;
|
|
595
|
+
exports.VIN = VIN;
|
|
472
596
|
exports.cipherFromJSON = cipherFromJSON;
|
|
473
597
|
exports.cipherToJSON = cipherToJSON;
|
|
474
598
|
exports.deviceCertFormatFromJSON = deviceCertFormatFromJSON;
|
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
2
|
//#region src/energy_device/device.d.ts
|
|
3
3
|
declare const protobufPackage = "tesla.proto.energy_device.v1";
|
|
4
|
-
/**
|
|
5
|
-
* TESLEMETRY SOURCE-OF-RECORD - no upstream.
|
|
6
|
-
* Provenance: Tesla Energy gateway (TEG) local API, from our own
|
|
7
|
-
* observations and contributions from the community
|
|
8
|
-
*/
|
|
9
4
|
declare enum DeviceType {
|
|
10
5
|
DEVICE_TYPE_INVALID = 0,
|
|
11
6
|
DEVICE_TYPE_GEN3WC = 1,
|
|
@@ -71,6 +66,15 @@ interface EcuId {
|
|
|
71
66
|
partNumber: string;
|
|
72
67
|
serialNumber: string;
|
|
73
68
|
}
|
|
69
|
+
interface VIN {
|
|
70
|
+
value: string;
|
|
71
|
+
}
|
|
72
|
+
interface UUIDv4Bytes {
|
|
73
|
+
value: Uint8Array;
|
|
74
|
+
}
|
|
75
|
+
interface UUIDv4 {
|
|
76
|
+
text: string;
|
|
77
|
+
}
|
|
74
78
|
interface DeviceSignedPayload {
|
|
75
79
|
payload: Uint8Array;
|
|
76
80
|
deviceSignatureType: DeviceSignatureType;
|
|
@@ -84,6 +88,9 @@ interface EncryptedMessage {
|
|
|
84
88
|
}
|
|
85
89
|
declare const Din: MessageFns<Din>;
|
|
86
90
|
declare const EcuId: MessageFns<EcuId>;
|
|
91
|
+
declare const VIN: MessageFns<VIN>;
|
|
92
|
+
declare const UUIDv4Bytes: MessageFns<UUIDv4Bytes>;
|
|
93
|
+
declare const UUIDv4: MessageFns<UUIDv4>;
|
|
87
94
|
declare const DeviceSignedPayload: MessageFns<DeviceSignedPayload>;
|
|
88
95
|
declare const EncryptedMessage: MessageFns<EncryptedMessage>;
|
|
89
96
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
@@ -99,4 +106,4 @@ interface MessageFns<T> {
|
|
|
99
106
|
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
100
107
|
}
|
|
101
108
|
//#endregion
|
|
102
|
-
export { Cipher, DeepPartial, DeviceCertFormat, DeviceSignatureType, DeviceSignedPayload, DeviceType, Din, EcuId, EncryptedMessage, Exact, MessageFns, TEGDeviceType, cipherFromJSON, cipherToJSON, deviceCertFormatFromJSON, deviceCertFormatToJSON, deviceSignatureTypeFromJSON, deviceSignatureTypeToJSON, deviceTypeFromJSON, deviceTypeToJSON, iPMDeviceType, iPMDeviceTypeFromJSON, iPMDeviceTypeToJSON, protobufPackage, tEGDeviceTypeFromJSON, tEGDeviceTypeToJSON };
|
|
109
|
+
export { Cipher, DeepPartial, DeviceCertFormat, DeviceSignatureType, DeviceSignedPayload, DeviceType, Din, EcuId, EncryptedMessage, Exact, MessageFns, TEGDeviceType, UUIDv4, UUIDv4Bytes, VIN, cipherFromJSON, cipherToJSON, deviceCertFormatFromJSON, deviceCertFormatToJSON, deviceSignatureTypeFromJSON, deviceSignatureTypeToJSON, deviceTypeFromJSON, deviceTypeToJSON, iPMDeviceType, iPMDeviceTypeFromJSON, iPMDeviceTypeToJSON, protobufPackage, tEGDeviceTypeFromJSON, tEGDeviceTypeToJSON };
|
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
2
|
//#region src/energy_device/device.d.ts
|
|
3
3
|
declare const protobufPackage = "tesla.proto.energy_device.v1";
|
|
4
|
-
/**
|
|
5
|
-
* TESLEMETRY SOURCE-OF-RECORD - no upstream.
|
|
6
|
-
* Provenance: Tesla Energy gateway (TEG) local API, from our own
|
|
7
|
-
* observations and contributions from the community
|
|
8
|
-
*/
|
|
9
4
|
declare enum DeviceType {
|
|
10
5
|
DEVICE_TYPE_INVALID = 0,
|
|
11
6
|
DEVICE_TYPE_GEN3WC = 1,
|
|
@@ -71,6 +66,15 @@ interface EcuId {
|
|
|
71
66
|
partNumber: string;
|
|
72
67
|
serialNumber: string;
|
|
73
68
|
}
|
|
69
|
+
interface VIN {
|
|
70
|
+
value: string;
|
|
71
|
+
}
|
|
72
|
+
interface UUIDv4Bytes {
|
|
73
|
+
value: Uint8Array;
|
|
74
|
+
}
|
|
75
|
+
interface UUIDv4 {
|
|
76
|
+
text: string;
|
|
77
|
+
}
|
|
74
78
|
interface DeviceSignedPayload {
|
|
75
79
|
payload: Uint8Array;
|
|
76
80
|
deviceSignatureType: DeviceSignatureType;
|
|
@@ -84,6 +88,9 @@ interface EncryptedMessage {
|
|
|
84
88
|
}
|
|
85
89
|
declare const Din: MessageFns<Din>;
|
|
86
90
|
declare const EcuId: MessageFns<EcuId>;
|
|
91
|
+
declare const VIN: MessageFns<VIN>;
|
|
92
|
+
declare const UUIDv4Bytes: MessageFns<UUIDv4Bytes>;
|
|
93
|
+
declare const UUIDv4: MessageFns<UUIDv4>;
|
|
87
94
|
declare const DeviceSignedPayload: MessageFns<DeviceSignedPayload>;
|
|
88
95
|
declare const EncryptedMessage: MessageFns<EncryptedMessage>;
|
|
89
96
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
@@ -99,4 +106,4 @@ interface MessageFns<T> {
|
|
|
99
106
|
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
100
107
|
}
|
|
101
108
|
//#endregion
|
|
102
|
-
export { Cipher, DeepPartial, DeviceCertFormat, DeviceSignatureType, DeviceSignedPayload, DeviceType, Din, EcuId, EncryptedMessage, Exact, MessageFns, TEGDeviceType, cipherFromJSON, cipherToJSON, deviceCertFormatFromJSON, deviceCertFormatToJSON, deviceSignatureTypeFromJSON, deviceSignatureTypeToJSON, deviceTypeFromJSON, deviceTypeToJSON, iPMDeviceType, iPMDeviceTypeFromJSON, iPMDeviceTypeToJSON, protobufPackage, tEGDeviceTypeFromJSON, tEGDeviceTypeToJSON };
|
|
109
|
+
export { Cipher, DeepPartial, DeviceCertFormat, DeviceSignatureType, DeviceSignedPayload, DeviceType, Din, EcuId, EncryptedMessage, Exact, MessageFns, TEGDeviceType, UUIDv4, UUIDv4Bytes, VIN, cipherFromJSON, cipherToJSON, deviceCertFormatFromJSON, deviceCertFormatToJSON, deviceSignatureTypeFromJSON, deviceSignatureTypeToJSON, deviceTypeFromJSON, deviceTypeToJSON, iPMDeviceType, iPMDeviceTypeFromJSON, iPMDeviceTypeToJSON, protobufPackage, tEGDeviceTypeFromJSON, tEGDeviceTypeToJSON };
|
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
2
|
//#region src/energy_device/device.ts
|
|
3
3
|
const protobufPackage = "tesla.proto.energy_device.v1";
|
|
4
|
-
/**
|
|
5
|
-
* TESLEMETRY SOURCE-OF-RECORD - no upstream.
|
|
6
|
-
* Provenance: Tesla Energy gateway (TEG) local API, from our own
|
|
7
|
-
* observations and contributions from the community
|
|
8
|
-
*/
|
|
9
4
|
let DeviceType = /* @__PURE__ */ function(DeviceType) {
|
|
10
5
|
DeviceType[DeviceType["DEVICE_TYPE_INVALID"] = 0] = "DEVICE_TYPE_INVALID";
|
|
11
6
|
DeviceType[DeviceType["DEVICE_TYPE_GEN3WC"] = 1] = "DEVICE_TYPE_GEN3WC";
|
|
@@ -299,6 +294,132 @@ const EcuId = {
|
|
|
299
294
|
return message;
|
|
300
295
|
}
|
|
301
296
|
};
|
|
297
|
+
function createBaseVIN() {
|
|
298
|
+
return { value: "" };
|
|
299
|
+
}
|
|
300
|
+
const VIN = {
|
|
301
|
+
encode(message, writer = new BinaryWriter()) {
|
|
302
|
+
if (message.value !== "") writer.uint32(10).string(message.value);
|
|
303
|
+
return writer;
|
|
304
|
+
},
|
|
305
|
+
decode(input, length) {
|
|
306
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
307
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
308
|
+
const message = createBaseVIN();
|
|
309
|
+
while (reader.pos < end) {
|
|
310
|
+
const tag = reader.uint32();
|
|
311
|
+
switch (tag >>> 3) {
|
|
312
|
+
case 1:
|
|
313
|
+
if (tag !== 10) break;
|
|
314
|
+
message.value = reader.string();
|
|
315
|
+
continue;
|
|
316
|
+
}
|
|
317
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
318
|
+
reader.skip(tag & 7);
|
|
319
|
+
}
|
|
320
|
+
return message;
|
|
321
|
+
},
|
|
322
|
+
fromJSON(object) {
|
|
323
|
+
return { value: isSet(object.value) ? globalThis.String(object.value) : "" };
|
|
324
|
+
},
|
|
325
|
+
toJSON(message) {
|
|
326
|
+
const obj = {};
|
|
327
|
+
if (message.value !== void 0) obj.value = message.value;
|
|
328
|
+
return obj;
|
|
329
|
+
},
|
|
330
|
+
create(base) {
|
|
331
|
+
return VIN.fromPartial(base ?? {});
|
|
332
|
+
},
|
|
333
|
+
fromPartial(object) {
|
|
334
|
+
const message = createBaseVIN();
|
|
335
|
+
message.value = object.value ?? "";
|
|
336
|
+
return message;
|
|
337
|
+
}
|
|
338
|
+
};
|
|
339
|
+
function createBaseUUIDv4Bytes() {
|
|
340
|
+
return { value: /* @__PURE__ */ new Uint8Array(0) };
|
|
341
|
+
}
|
|
342
|
+
const UUIDv4Bytes = {
|
|
343
|
+
encode(message, writer = new BinaryWriter()) {
|
|
344
|
+
if (message.value.length !== 0) writer.uint32(10).bytes(message.value);
|
|
345
|
+
return writer;
|
|
346
|
+
},
|
|
347
|
+
decode(input, length) {
|
|
348
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
349
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
350
|
+
const message = createBaseUUIDv4Bytes();
|
|
351
|
+
while (reader.pos < end) {
|
|
352
|
+
const tag = reader.uint32();
|
|
353
|
+
switch (tag >>> 3) {
|
|
354
|
+
case 1:
|
|
355
|
+
if (tag !== 10) break;
|
|
356
|
+
message.value = reader.bytes();
|
|
357
|
+
continue;
|
|
358
|
+
}
|
|
359
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
360
|
+
reader.skip(tag & 7);
|
|
361
|
+
}
|
|
362
|
+
return message;
|
|
363
|
+
},
|
|
364
|
+
fromJSON(object) {
|
|
365
|
+
return { value: isSet(object.value) ? bytesFromBase64(object.value) : /* @__PURE__ */ new Uint8Array(0) };
|
|
366
|
+
},
|
|
367
|
+
toJSON(message) {
|
|
368
|
+
const obj = {};
|
|
369
|
+
if (message.value !== void 0) obj.value = base64FromBytes(message.value);
|
|
370
|
+
return obj;
|
|
371
|
+
},
|
|
372
|
+
create(base) {
|
|
373
|
+
return UUIDv4Bytes.fromPartial(base ?? {});
|
|
374
|
+
},
|
|
375
|
+
fromPartial(object) {
|
|
376
|
+
const message = createBaseUUIDv4Bytes();
|
|
377
|
+
message.value = object.value ?? /* @__PURE__ */ new Uint8Array(0);
|
|
378
|
+
return message;
|
|
379
|
+
}
|
|
380
|
+
};
|
|
381
|
+
function createBaseUUIDv4() {
|
|
382
|
+
return { text: "" };
|
|
383
|
+
}
|
|
384
|
+
const UUIDv4 = {
|
|
385
|
+
encode(message, writer = new BinaryWriter()) {
|
|
386
|
+
if (message.text !== "") writer.uint32(10).string(message.text);
|
|
387
|
+
return writer;
|
|
388
|
+
},
|
|
389
|
+
decode(input, length) {
|
|
390
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
391
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
392
|
+
const message = createBaseUUIDv4();
|
|
393
|
+
while (reader.pos < end) {
|
|
394
|
+
const tag = reader.uint32();
|
|
395
|
+
switch (tag >>> 3) {
|
|
396
|
+
case 1:
|
|
397
|
+
if (tag !== 10) break;
|
|
398
|
+
message.text = reader.string();
|
|
399
|
+
continue;
|
|
400
|
+
}
|
|
401
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
402
|
+
reader.skip(tag & 7);
|
|
403
|
+
}
|
|
404
|
+
return message;
|
|
405
|
+
},
|
|
406
|
+
fromJSON(object) {
|
|
407
|
+
return { text: isSet(object.text) ? globalThis.String(object.text) : "" };
|
|
408
|
+
},
|
|
409
|
+
toJSON(message) {
|
|
410
|
+
const obj = {};
|
|
411
|
+
if (message.text !== void 0) obj.text = message.text;
|
|
412
|
+
return obj;
|
|
413
|
+
},
|
|
414
|
+
create(base) {
|
|
415
|
+
return UUIDv4.fromPartial(base ?? {});
|
|
416
|
+
},
|
|
417
|
+
fromPartial(object) {
|
|
418
|
+
const message = createBaseUUIDv4();
|
|
419
|
+
message.text = object.text ?? "";
|
|
420
|
+
return message;
|
|
421
|
+
}
|
|
422
|
+
};
|
|
302
423
|
function createBaseDeviceSignedPayload() {
|
|
303
424
|
return {
|
|
304
425
|
payload: /* @__PURE__ */ new Uint8Array(0),
|
|
@@ -459,4 +580,4 @@ function isSet(value) {
|
|
|
459
580
|
return value !== null && value !== void 0;
|
|
460
581
|
}
|
|
461
582
|
//#endregion
|
|
462
|
-
export { Cipher, DeviceCertFormat, DeviceSignatureType, DeviceSignedPayload, DeviceType, Din, EcuId, EncryptedMessage, TEGDeviceType, cipherFromJSON, cipherToJSON, deviceCertFormatFromJSON, deviceCertFormatToJSON, deviceSignatureTypeFromJSON, deviceSignatureTypeToJSON, deviceTypeFromJSON, deviceTypeToJSON, iPMDeviceType, iPMDeviceTypeFromJSON, iPMDeviceTypeToJSON, protobufPackage, tEGDeviceTypeFromJSON, tEGDeviceTypeToJSON };
|
|
583
|
+
export { Cipher, DeviceCertFormat, DeviceSignatureType, DeviceSignedPayload, DeviceType, Din, EcuId, EncryptedMessage, TEGDeviceType, UUIDv4, UUIDv4Bytes, VIN, cipherFromJSON, cipherToJSON, deviceCertFormatFromJSON, deviceCertFormatToJSON, deviceSignatureTypeFromJSON, deviceSignatureTypeToJSON, deviceTypeFromJSON, deviceTypeToJSON, iPMDeviceType, iPMDeviceTypeFromJSON, iPMDeviceTypeToJSON, protobufPackage, tEGDeviceTypeFromJSON, tEGDeviceTypeToJSON };
|
|
@@ -3,11 +3,6 @@ const require_energy_device_google_protobuf_wrappers = require("./google/protobu
|
|
|
3
3
|
let _bufbuild_protobuf_wire = require("@bufbuild/protobuf/wire");
|
|
4
4
|
//#region src/energy_device/energy.ts
|
|
5
5
|
const protobufPackage = "tesla.proto.energy_device.v1";
|
|
6
|
-
/**
|
|
7
|
-
* TESLEMETRY SOURCE-OF-RECORD - no upstream.
|
|
8
|
-
* Provenance: Tesla Energy gateway (TEG) local API, from our own
|
|
9
|
-
* observations and contributions from the community
|
|
10
|
-
*/
|
|
11
6
|
let EnergyAccumulationType = /* @__PURE__ */ function(EnergyAccumulationType) {
|
|
12
7
|
EnergyAccumulationType[EnergyAccumulationType["ENERGY_ACCUMULATION_TYPE_INVALID"] = 0] = "ENERGY_ACCUMULATION_TYPE_INVALID";
|
|
13
8
|
EnergyAccumulationType[EnergyAccumulationType["ENERGY_ACCUMULATION_TYPE_LIFETIME"] = 1] = "ENERGY_ACCUMULATION_TYPE_LIFETIME";
|
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
2
|
//#region src/energy_device/energy.d.ts
|
|
3
3
|
declare const protobufPackage = "tesla.proto.energy_device.v1";
|
|
4
|
-
/**
|
|
5
|
-
* TESLEMETRY SOURCE-OF-RECORD - no upstream.
|
|
6
|
-
* Provenance: Tesla Energy gateway (TEG) local API, from our own
|
|
7
|
-
* observations and contributions from the community
|
|
8
|
-
*/
|
|
9
4
|
declare enum EnergyAccumulationType {
|
|
10
5
|
ENERGY_ACCUMULATION_TYPE_INVALID = 0,
|
|
11
6
|
ENERGY_ACCUMULATION_TYPE_LIFETIME = 1,
|
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
2
|
//#region src/energy_device/energy.d.ts
|
|
3
3
|
declare const protobufPackage = "tesla.proto.energy_device.v1";
|
|
4
|
-
/**
|
|
5
|
-
* TESLEMETRY SOURCE-OF-RECORD - no upstream.
|
|
6
|
-
* Provenance: Tesla Energy gateway (TEG) local API, from our own
|
|
7
|
-
* observations and contributions from the community
|
|
8
|
-
*/
|
|
9
4
|
declare enum EnergyAccumulationType {
|
|
10
5
|
ENERGY_ACCUMULATION_TYPE_INVALID = 0,
|
|
11
6
|
ENERGY_ACCUMULATION_TYPE_LIFETIME = 1,
|
|
@@ -2,11 +2,6 @@ import { FloatValue, UInt64Value } from "./google/protobuf/wrappers.mjs";
|
|
|
2
2
|
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
3
3
|
//#region src/energy_device/energy.ts
|
|
4
4
|
const protobufPackage = "tesla.proto.energy_device.v1";
|
|
5
|
-
/**
|
|
6
|
-
* TESLEMETRY SOURCE-OF-RECORD - no upstream.
|
|
7
|
-
* Provenance: Tesla Energy gateway (TEG) local API, from our own
|
|
8
|
-
* observations and contributions from the community
|
|
9
|
-
*/
|
|
10
5
|
let EnergyAccumulationType = /* @__PURE__ */ function(EnergyAccumulationType) {
|
|
11
6
|
EnergyAccumulationType[EnergyAccumulationType["ENERGY_ACCUMULATION_TYPE_INVALID"] = 0] = "ENERGY_ACCUMULATION_TYPE_INVALID";
|
|
12
7
|
EnergyAccumulationType[EnergyAccumulationType["ENERGY_ACCUMULATION_TYPE_LIFETIME"] = 1] = "ENERGY_ACCUMULATION_TYPE_LIFETIME";
|