@teslemetry/tesla-protocol 0.4.0 → 0.6.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/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 +65 -0
- package/dist/command/car_server.d.cts +13 -1
- package/dist/command/car_server.d.mts +13 -1
- package/dist/command/car_server.mjs +65 -1
- package/dist/command/universal_message.cjs +5 -0
- package/dist/command/universal_message.d.cts +2 -0
- package/dist/command/universal_message.d.mts +2 -0
- package/dist/command/universal_message.mjs +5 -0
- package/dist/command/vcsec.cjs +87 -2
- package/dist/command/vcsec.d.cts +11 -1
- package/dist/command/vcsec.d.mts +11 -1
- package/dist/command/vcsec.mjs +86 -3
- package/dist/command/vehicle.cjs +27 -0
- package/dist/command/vehicle.d.cts +4 -0
- package/dist/command/vehicle.d.mts +4 -0
- package/dist/command/vehicle.mjs +27 -0
- 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_device/common_api.cjs +604 -11
- package/dist/energy_device/common_api.d.cts +60 -3
- package/dist/energy_device/common_api.d.mts +60 -3
- package/dist/energy_device/common_api.mjs +596 -12
- package/dist/energy_device/device.cjs +129 -0
- package/dist/energy_device/device.d.cts +13 -1
- package/dist/energy_device/device.d.mts +13 -1
- package/dist/energy_device/device.mjs +127 -1
- package/dist/energy_device/energy_site_net.cjs +747 -0
- package/dist/energy_device/energy_site_net.d.cts +84 -1
- package/dist/energy_device/energy_site_net.d.mts +84 -1
- package/dist/energy_device/energy_site_net.mjs +736 -1
- package/dist/energy_device/filestore_api.cjs +575 -0
- package/dist/energy_device/filestore_api.d.cts +81 -0
- package/dist/energy_device/filestore_api.d.mts +81 -0
- package/dist/energy_device/filestore_api.mjs +563 -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 +449 -0
- package/dist/energy_device/graphql_api.d.cts +78 -0
- package/dist/energy_device/graphql_api.d.mts +78 -0
- package/dist/energy_device/graphql_api.mjs +434 -0
- package/dist/energy_device/intra_site_api.cjs +1698 -0
- package/dist/energy_device/intra_site_api.d.cts +227 -0
- package/dist/energy_device/intra_site_api.d.mts +227 -0
- package/dist/energy_device/intra_site_api.mjs +1644 -0
- package/dist/energy_device/local_auth_api.cjs +505 -0
- package/dist/energy_device/local_auth_api.d.cts +73 -0
- package/dist/energy_device/local_auth_api.d.mts +73 -0
- package/dist/energy_device/local_auth_api.mjs +492 -0
- package/dist/energy_device/networking.cjs +20 -2
- package/dist/energy_device/networking.d.cts +2 -0
- package/dist/energy_device/networking.d.mts +2 -0
- package/dist/energy_device/networking.mjs +20 -2
- package/dist/energy_device/neurio_meter_api.cjs +1442 -0
- package/dist/energy_device/neurio_meter_api.d.cts +202 -0
- package/dist/energy_device/neurio_meter_api.d.mts +202 -0
- package/dist/energy_device/neurio_meter_api.mjs +1401 -0
- package/dist/energy_device/pvi_api.cjs +2954 -0
- package/dist/energy_device/pvi_api.d.cts +319 -0
- package/dist/energy_device/pvi_api.d.mts +319 -0
- package/dist/energy_device/pvi_api.mjs +2892 -0
- package/dist/energy_device/teg_api.cjs +5184 -147
- package/dist/energy_device/teg_api.d.cts +492 -77
- package/dist/energy_device/teg_api.d.mts +492 -77
- package/dist/energy_device/teg_api.mjs +5064 -148
- package/dist/energy_device/transport.cjs +82 -2
- package/dist/energy_device/transport.d.cts +16 -5
- package/dist/energy_device/transport.d.mts +16 -5
- package/dist/energy_device/transport.mjs +82 -2
- package/dist/energy_device/update.cjs +33 -6
- package/dist/energy_device/update.d.cts +3 -0
- package/dist/energy_device/update.d.mts +3 -0
- package/dist/energy_device/update.mjs +33 -6
- package/dist/energy_device/wall_connector.cjs +6729 -5
- package/dist/energy_device/wall_connector.d.cts +696 -2
- package/dist/energy_device/wall_connector.d.mts +696 -2
- package/dist/energy_device/wall_connector.mjs +6591 -6
- package/package.json +1 -1
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_energy_device_device = require("./device.cjs");
|
|
3
3
|
const require_energy_device_error = require("./error.cjs");
|
|
4
|
+
const require_energy_device_google_protobuf_duration = require("./google/protobuf/duration.cjs");
|
|
5
|
+
const require_energy_device_google_protobuf_wrappers = require("./google/protobuf/wrappers.cjs");
|
|
4
6
|
const require_energy_device_networking = require("./networking.cjs");
|
|
5
7
|
const require_energy_device_update = require("./update.cjs");
|
|
6
8
|
let _bufbuild_protobuf_wire = require("@bufbuild/protobuf/wire");
|
|
@@ -38,6 +40,121 @@ const CommonAPIGetSystemInfoRequest = {
|
|
|
38
40
|
return createBaseCommonAPIGetSystemInfoRequest();
|
|
39
41
|
}
|
|
40
42
|
};
|
|
43
|
+
function createBaseRadioLegalInformation() {
|
|
44
|
+
return {
|
|
45
|
+
manufacturer: void 0,
|
|
46
|
+
model: void 0,
|
|
47
|
+
fccId: void 0,
|
|
48
|
+
icId: void 0
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
const RadioLegalInformation = {
|
|
52
|
+
encode(message, writer = new _bufbuild_protobuf_wire.BinaryWriter()) {
|
|
53
|
+
if (message.manufacturer !== void 0) require_energy_device_google_protobuf_wrappers.StringValue.encode({ value: message.manufacturer }, writer.uint32(10).fork()).join();
|
|
54
|
+
if (message.model !== void 0) require_energy_device_google_protobuf_wrappers.StringValue.encode({ value: message.model }, writer.uint32(18).fork()).join();
|
|
55
|
+
if (message.fccId !== void 0) require_energy_device_google_protobuf_wrappers.StringValue.encode({ value: message.fccId }, writer.uint32(26).fork()).join();
|
|
56
|
+
if (message.icId !== void 0) require_energy_device_google_protobuf_wrappers.StringValue.encode({ value: message.icId }, writer.uint32(34).fork()).join();
|
|
57
|
+
return writer;
|
|
58
|
+
},
|
|
59
|
+
decode(input, length) {
|
|
60
|
+
const reader = input instanceof _bufbuild_protobuf_wire.BinaryReader ? input : new _bufbuild_protobuf_wire.BinaryReader(input);
|
|
61
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
62
|
+
const message = createBaseRadioLegalInformation();
|
|
63
|
+
while (reader.pos < end) {
|
|
64
|
+
const tag = reader.uint32();
|
|
65
|
+
switch (tag >>> 3) {
|
|
66
|
+
case 1:
|
|
67
|
+
if (tag !== 10) break;
|
|
68
|
+
message.manufacturer = require_energy_device_google_protobuf_wrappers.StringValue.decode(reader, reader.uint32()).value;
|
|
69
|
+
continue;
|
|
70
|
+
case 2:
|
|
71
|
+
if (tag !== 18) break;
|
|
72
|
+
message.model = require_energy_device_google_protobuf_wrappers.StringValue.decode(reader, reader.uint32()).value;
|
|
73
|
+
continue;
|
|
74
|
+
case 3:
|
|
75
|
+
if (tag !== 26) break;
|
|
76
|
+
message.fccId = require_energy_device_google_protobuf_wrappers.StringValue.decode(reader, reader.uint32()).value;
|
|
77
|
+
continue;
|
|
78
|
+
case 4:
|
|
79
|
+
if (tag !== 34) break;
|
|
80
|
+
message.icId = require_energy_device_google_protobuf_wrappers.StringValue.decode(reader, reader.uint32()).value;
|
|
81
|
+
continue;
|
|
82
|
+
}
|
|
83
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
84
|
+
reader.skip(tag & 7);
|
|
85
|
+
}
|
|
86
|
+
return message;
|
|
87
|
+
},
|
|
88
|
+
fromJSON(object) {
|
|
89
|
+
return {
|
|
90
|
+
manufacturer: isSet(object.manufacturer) ? String(object.manufacturer) : void 0,
|
|
91
|
+
model: isSet(object.model) ? String(object.model) : void 0,
|
|
92
|
+
fccId: isSet(object.fccId) ? String(object.fccId) : void 0,
|
|
93
|
+
icId: isSet(object.icId) ? String(object.icId) : void 0
|
|
94
|
+
};
|
|
95
|
+
},
|
|
96
|
+
toJSON(message) {
|
|
97
|
+
const obj = {};
|
|
98
|
+
if (message.manufacturer !== void 0) obj.manufacturer = message.manufacturer;
|
|
99
|
+
if (message.model !== void 0) obj.model = message.model;
|
|
100
|
+
if (message.fccId !== void 0) obj.fccId = message.fccId;
|
|
101
|
+
if (message.icId !== void 0) obj.icId = message.icId;
|
|
102
|
+
return obj;
|
|
103
|
+
},
|
|
104
|
+
create(base) {
|
|
105
|
+
return RadioLegalInformation.fromPartial(base ?? {});
|
|
106
|
+
},
|
|
107
|
+
fromPartial(object) {
|
|
108
|
+
const message = createBaseRadioLegalInformation();
|
|
109
|
+
message.manufacturer = object.manufacturer ?? void 0;
|
|
110
|
+
message.model = object.model ?? void 0;
|
|
111
|
+
message.fccId = object.fccId ?? void 0;
|
|
112
|
+
message.icId = object.icId ?? void 0;
|
|
113
|
+
return message;
|
|
114
|
+
}
|
|
115
|
+
};
|
|
116
|
+
function createBaseComplianceInformation() {
|
|
117
|
+
return { radioLegalInformation: [] };
|
|
118
|
+
}
|
|
119
|
+
const ComplianceInformation = {
|
|
120
|
+
encode(message, writer = new _bufbuild_protobuf_wire.BinaryWriter()) {
|
|
121
|
+
for (const v of message.radioLegalInformation) RadioLegalInformation.encode(v, writer.uint32(10).fork()).join();
|
|
122
|
+
return writer;
|
|
123
|
+
},
|
|
124
|
+
decode(input, length) {
|
|
125
|
+
const reader = input instanceof _bufbuild_protobuf_wire.BinaryReader ? input : new _bufbuild_protobuf_wire.BinaryReader(input);
|
|
126
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
127
|
+
const message = createBaseComplianceInformation();
|
|
128
|
+
while (reader.pos < end) {
|
|
129
|
+
const tag = reader.uint32();
|
|
130
|
+
switch (tag >>> 3) {
|
|
131
|
+
case 1:
|
|
132
|
+
if (tag !== 10) break;
|
|
133
|
+
message.radioLegalInformation.push(RadioLegalInformation.decode(reader, reader.uint32()));
|
|
134
|
+
continue;
|
|
135
|
+
}
|
|
136
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
137
|
+
reader.skip(tag & 7);
|
|
138
|
+
}
|
|
139
|
+
return message;
|
|
140
|
+
},
|
|
141
|
+
fromJSON(object) {
|
|
142
|
+
return { radioLegalInformation: globalThis.Array.isArray(object?.radioLegalInformation) ? object.radioLegalInformation.map((e) => RadioLegalInformation.fromJSON(e)) : [] };
|
|
143
|
+
},
|
|
144
|
+
toJSON(message) {
|
|
145
|
+
const obj = {};
|
|
146
|
+
if (message.radioLegalInformation?.length) obj.radioLegalInformation = message.radioLegalInformation.map((e) => RadioLegalInformation.toJSON(e));
|
|
147
|
+
return obj;
|
|
148
|
+
},
|
|
149
|
+
create(base) {
|
|
150
|
+
return ComplianceInformation.fromPartial(base ?? {});
|
|
151
|
+
},
|
|
152
|
+
fromPartial(object) {
|
|
153
|
+
const message = createBaseComplianceInformation();
|
|
154
|
+
message.radioLegalInformation = object.radioLegalInformation?.map((e) => RadioLegalInformation.fromPartial(e)) || [];
|
|
155
|
+
return message;
|
|
156
|
+
}
|
|
157
|
+
};
|
|
41
158
|
function createBaseCommonAPIGetSystemInfoResponse() {
|
|
42
159
|
return {
|
|
43
160
|
deviceId: void 0,
|
|
@@ -666,10 +783,11 @@ const CommonAPIConfigureWifiWithEncryptedPasswordResponse = {
|
|
|
666
783
|
}
|
|
667
784
|
};
|
|
668
785
|
function createBaseCommonAPICheckForUpdateRequest() {
|
|
669
|
-
return {};
|
|
786
|
+
return { downloadIfAvailable: false };
|
|
670
787
|
}
|
|
671
788
|
const CommonAPICheckForUpdateRequest = {
|
|
672
|
-
encode(
|
|
789
|
+
encode(message, writer = new _bufbuild_protobuf_wire.BinaryWriter()) {
|
|
790
|
+
if (message.downloadIfAvailable !== false) writer.uint32(8).bool(message.downloadIfAvailable);
|
|
673
791
|
return writer;
|
|
674
792
|
},
|
|
675
793
|
decode(input, length) {
|
|
@@ -678,23 +796,32 @@ const CommonAPICheckForUpdateRequest = {
|
|
|
678
796
|
const message = createBaseCommonAPICheckForUpdateRequest();
|
|
679
797
|
while (reader.pos < end) {
|
|
680
798
|
const tag = reader.uint32();
|
|
681
|
-
switch (tag >>> 3) {
|
|
799
|
+
switch (tag >>> 3) {
|
|
800
|
+
case 1:
|
|
801
|
+
if (tag !== 8) break;
|
|
802
|
+
message.downloadIfAvailable = reader.bool();
|
|
803
|
+
continue;
|
|
804
|
+
}
|
|
682
805
|
if ((tag & 7) === 4 || tag === 0) break;
|
|
683
806
|
reader.skip(tag & 7);
|
|
684
807
|
}
|
|
685
808
|
return message;
|
|
686
809
|
},
|
|
687
|
-
fromJSON(
|
|
688
|
-
return {};
|
|
810
|
+
fromJSON(object) {
|
|
811
|
+
return { downloadIfAvailable: isSet(object.downloadIfAvailable) ? globalThis.Boolean(object.downloadIfAvailable) : false };
|
|
689
812
|
},
|
|
690
|
-
toJSON(
|
|
691
|
-
|
|
813
|
+
toJSON(message) {
|
|
814
|
+
const obj = {};
|
|
815
|
+
if (message.downloadIfAvailable !== void 0) obj.downloadIfAvailable = message.downloadIfAvailable;
|
|
816
|
+
return obj;
|
|
692
817
|
},
|
|
693
818
|
create(base) {
|
|
694
819
|
return CommonAPICheckForUpdateRequest.fromPartial(base ?? {});
|
|
695
820
|
},
|
|
696
|
-
fromPartial(
|
|
697
|
-
|
|
821
|
+
fromPartial(object) {
|
|
822
|
+
const message = createBaseCommonAPICheckForUpdateRequest();
|
|
823
|
+
message.downloadIfAvailable = object.downloadIfAvailable ?? false;
|
|
824
|
+
return message;
|
|
698
825
|
}
|
|
699
826
|
};
|
|
700
827
|
function createBaseCommonAPICheckForUpdateResponse() {
|
|
@@ -1651,6 +1778,403 @@ const CommonAPIPrepareRegistrationPayloadResponse = {
|
|
|
1651
1778
|
return message;
|
|
1652
1779
|
}
|
|
1653
1780
|
};
|
|
1781
|
+
function createBaseTcpdumpInfo() {
|
|
1782
|
+
return {
|
|
1783
|
+
path: "",
|
|
1784
|
+
pid: 0,
|
|
1785
|
+
interface: "",
|
|
1786
|
+
expression: "",
|
|
1787
|
+
duration: void 0,
|
|
1788
|
+
maxDuration: void 0,
|
|
1789
|
+
size: 0,
|
|
1790
|
+
maxSize: 0
|
|
1791
|
+
};
|
|
1792
|
+
}
|
|
1793
|
+
const TcpdumpInfo = {
|
|
1794
|
+
encode(message, writer = new _bufbuild_protobuf_wire.BinaryWriter()) {
|
|
1795
|
+
if (message.path !== "") writer.uint32(10).string(message.path);
|
|
1796
|
+
if (message.pid !== 0) writer.uint32(16).int64(message.pid);
|
|
1797
|
+
if (message.interface !== "") writer.uint32(26).string(message.interface);
|
|
1798
|
+
if (message.expression !== "") writer.uint32(34).string(message.expression);
|
|
1799
|
+
if (message.duration !== void 0) require_energy_device_google_protobuf_duration.Duration.encode(message.duration, writer.uint32(42).fork()).join();
|
|
1800
|
+
if (message.maxDuration !== void 0) require_energy_device_google_protobuf_duration.Duration.encode(message.maxDuration, writer.uint32(50).fork()).join();
|
|
1801
|
+
if (message.size !== 0) writer.uint32(56).uint64(message.size);
|
|
1802
|
+
if (message.maxSize !== 0) writer.uint32(64).uint64(message.maxSize);
|
|
1803
|
+
return writer;
|
|
1804
|
+
},
|
|
1805
|
+
decode(input, length) {
|
|
1806
|
+
const reader = input instanceof _bufbuild_protobuf_wire.BinaryReader ? input : new _bufbuild_protobuf_wire.BinaryReader(input);
|
|
1807
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
1808
|
+
const message = createBaseTcpdumpInfo();
|
|
1809
|
+
while (reader.pos < end) {
|
|
1810
|
+
const tag = reader.uint32();
|
|
1811
|
+
switch (tag >>> 3) {
|
|
1812
|
+
case 1:
|
|
1813
|
+
if (tag !== 10) break;
|
|
1814
|
+
message.path = reader.string();
|
|
1815
|
+
continue;
|
|
1816
|
+
case 2:
|
|
1817
|
+
if (tag !== 16) break;
|
|
1818
|
+
message.pid = longToNumber(reader.int64());
|
|
1819
|
+
continue;
|
|
1820
|
+
case 3:
|
|
1821
|
+
if (tag !== 26) break;
|
|
1822
|
+
message.interface = reader.string();
|
|
1823
|
+
continue;
|
|
1824
|
+
case 4:
|
|
1825
|
+
if (tag !== 34) break;
|
|
1826
|
+
message.expression = reader.string();
|
|
1827
|
+
continue;
|
|
1828
|
+
case 5:
|
|
1829
|
+
if (tag !== 42) break;
|
|
1830
|
+
message.duration = require_energy_device_google_protobuf_duration.Duration.decode(reader, reader.uint32());
|
|
1831
|
+
continue;
|
|
1832
|
+
case 6:
|
|
1833
|
+
if (tag !== 50) break;
|
|
1834
|
+
message.maxDuration = require_energy_device_google_protobuf_duration.Duration.decode(reader, reader.uint32());
|
|
1835
|
+
continue;
|
|
1836
|
+
case 7:
|
|
1837
|
+
if (tag !== 56) break;
|
|
1838
|
+
message.size = longToNumber(reader.uint64());
|
|
1839
|
+
continue;
|
|
1840
|
+
case 8:
|
|
1841
|
+
if (tag !== 64) break;
|
|
1842
|
+
message.maxSize = longToNumber(reader.uint64());
|
|
1843
|
+
continue;
|
|
1844
|
+
}
|
|
1845
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
1846
|
+
reader.skip(tag & 7);
|
|
1847
|
+
}
|
|
1848
|
+
return message;
|
|
1849
|
+
},
|
|
1850
|
+
fromJSON(object) {
|
|
1851
|
+
return {
|
|
1852
|
+
path: isSet(object.path) ? globalThis.String(object.path) : "",
|
|
1853
|
+
pid: isSet(object.pid) ? globalThis.Number(object.pid) : 0,
|
|
1854
|
+
interface: isSet(object.interface) ? globalThis.String(object.interface) : "",
|
|
1855
|
+
expression: isSet(object.expression) ? globalThis.String(object.expression) : "",
|
|
1856
|
+
duration: isSet(object.duration) ? require_energy_device_google_protobuf_duration.Duration.fromJSON(object.duration) : void 0,
|
|
1857
|
+
maxDuration: isSet(object.maxDuration) ? require_energy_device_google_protobuf_duration.Duration.fromJSON(object.maxDuration) : void 0,
|
|
1858
|
+
size: isSet(object.size) ? globalThis.Number(object.size) : 0,
|
|
1859
|
+
maxSize: isSet(object.maxSize) ? globalThis.Number(object.maxSize) : 0
|
|
1860
|
+
};
|
|
1861
|
+
},
|
|
1862
|
+
toJSON(message) {
|
|
1863
|
+
const obj = {};
|
|
1864
|
+
if (message.path !== void 0) obj.path = message.path;
|
|
1865
|
+
if (message.pid !== void 0) obj.pid = Math.round(message.pid);
|
|
1866
|
+
if (message.interface !== void 0) obj.interface = message.interface;
|
|
1867
|
+
if (message.expression !== void 0) obj.expression = message.expression;
|
|
1868
|
+
if (message.duration !== void 0) obj.duration = require_energy_device_google_protobuf_duration.Duration.toJSON(message.duration);
|
|
1869
|
+
if (message.maxDuration !== void 0) obj.maxDuration = require_energy_device_google_protobuf_duration.Duration.toJSON(message.maxDuration);
|
|
1870
|
+
if (message.size !== void 0) obj.size = Math.round(message.size);
|
|
1871
|
+
if (message.maxSize !== void 0) obj.maxSize = Math.round(message.maxSize);
|
|
1872
|
+
return obj;
|
|
1873
|
+
},
|
|
1874
|
+
create(base) {
|
|
1875
|
+
return TcpdumpInfo.fromPartial(base ?? {});
|
|
1876
|
+
},
|
|
1877
|
+
fromPartial(object) {
|
|
1878
|
+
const message = createBaseTcpdumpInfo();
|
|
1879
|
+
message.path = object.path ?? "";
|
|
1880
|
+
message.pid = object.pid ?? 0;
|
|
1881
|
+
message.interface = object.interface ?? "";
|
|
1882
|
+
message.expression = object.expression ?? "";
|
|
1883
|
+
message.duration = object.duration !== void 0 && object.duration !== null ? require_energy_device_google_protobuf_duration.Duration.fromPartial(object.duration) : void 0;
|
|
1884
|
+
message.maxDuration = object.maxDuration !== void 0 && object.maxDuration !== null ? require_energy_device_google_protobuf_duration.Duration.fromPartial(object.maxDuration) : void 0;
|
|
1885
|
+
message.size = object.size ?? 0;
|
|
1886
|
+
message.maxSize = object.maxSize ?? 0;
|
|
1887
|
+
return message;
|
|
1888
|
+
}
|
|
1889
|
+
};
|
|
1890
|
+
function createBaseCommonAPIStartTcpdumpRequest() {
|
|
1891
|
+
return {
|
|
1892
|
+
name: "",
|
|
1893
|
+
interface: "",
|
|
1894
|
+
expression: "",
|
|
1895
|
+
maxDuration: void 0,
|
|
1896
|
+
maxSize: 0
|
|
1897
|
+
};
|
|
1898
|
+
}
|
|
1899
|
+
const CommonAPIStartTcpdumpRequest = {
|
|
1900
|
+
encode(message, writer = new _bufbuild_protobuf_wire.BinaryWriter()) {
|
|
1901
|
+
if (message.name !== "") writer.uint32(10).string(message.name);
|
|
1902
|
+
if (message.interface !== "") writer.uint32(18).string(message.interface);
|
|
1903
|
+
if (message.expression !== "") writer.uint32(26).string(message.expression);
|
|
1904
|
+
if (message.maxDuration !== void 0) require_energy_device_google_protobuf_duration.Duration.encode(message.maxDuration, writer.uint32(34).fork()).join();
|
|
1905
|
+
if (message.maxSize !== 0) writer.uint32(40).uint64(message.maxSize);
|
|
1906
|
+
return writer;
|
|
1907
|
+
},
|
|
1908
|
+
decode(input, length) {
|
|
1909
|
+
const reader = input instanceof _bufbuild_protobuf_wire.BinaryReader ? input : new _bufbuild_protobuf_wire.BinaryReader(input);
|
|
1910
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
1911
|
+
const message = createBaseCommonAPIStartTcpdumpRequest();
|
|
1912
|
+
while (reader.pos < end) {
|
|
1913
|
+
const tag = reader.uint32();
|
|
1914
|
+
switch (tag >>> 3) {
|
|
1915
|
+
case 1:
|
|
1916
|
+
if (tag !== 10) break;
|
|
1917
|
+
message.name = reader.string();
|
|
1918
|
+
continue;
|
|
1919
|
+
case 2:
|
|
1920
|
+
if (tag !== 18) break;
|
|
1921
|
+
message.interface = reader.string();
|
|
1922
|
+
continue;
|
|
1923
|
+
case 3:
|
|
1924
|
+
if (tag !== 26) break;
|
|
1925
|
+
message.expression = reader.string();
|
|
1926
|
+
continue;
|
|
1927
|
+
case 4:
|
|
1928
|
+
if (tag !== 34) break;
|
|
1929
|
+
message.maxDuration = require_energy_device_google_protobuf_duration.Duration.decode(reader, reader.uint32());
|
|
1930
|
+
continue;
|
|
1931
|
+
case 5:
|
|
1932
|
+
if (tag !== 40) break;
|
|
1933
|
+
message.maxSize = longToNumber(reader.uint64());
|
|
1934
|
+
continue;
|
|
1935
|
+
}
|
|
1936
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
1937
|
+
reader.skip(tag & 7);
|
|
1938
|
+
}
|
|
1939
|
+
return message;
|
|
1940
|
+
},
|
|
1941
|
+
fromJSON(object) {
|
|
1942
|
+
return {
|
|
1943
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
1944
|
+
interface: isSet(object.interface) ? globalThis.String(object.interface) : "",
|
|
1945
|
+
expression: isSet(object.expression) ? globalThis.String(object.expression) : "",
|
|
1946
|
+
maxDuration: isSet(object.maxDuration) ? require_energy_device_google_protobuf_duration.Duration.fromJSON(object.maxDuration) : void 0,
|
|
1947
|
+
maxSize: isSet(object.maxSize) ? globalThis.Number(object.maxSize) : 0
|
|
1948
|
+
};
|
|
1949
|
+
},
|
|
1950
|
+
toJSON(message) {
|
|
1951
|
+
const obj = {};
|
|
1952
|
+
if (message.name !== void 0) obj.name = message.name;
|
|
1953
|
+
if (message.interface !== void 0) obj.interface = message.interface;
|
|
1954
|
+
if (message.expression !== void 0) obj.expression = message.expression;
|
|
1955
|
+
if (message.maxDuration !== void 0) obj.maxDuration = require_energy_device_google_protobuf_duration.Duration.toJSON(message.maxDuration);
|
|
1956
|
+
if (message.maxSize !== void 0) obj.maxSize = Math.round(message.maxSize);
|
|
1957
|
+
return obj;
|
|
1958
|
+
},
|
|
1959
|
+
create(base) {
|
|
1960
|
+
return CommonAPIStartTcpdumpRequest.fromPartial(base ?? {});
|
|
1961
|
+
},
|
|
1962
|
+
fromPartial(object) {
|
|
1963
|
+
const message = createBaseCommonAPIStartTcpdumpRequest();
|
|
1964
|
+
message.name = object.name ?? "";
|
|
1965
|
+
message.interface = object.interface ?? "";
|
|
1966
|
+
message.expression = object.expression ?? "";
|
|
1967
|
+
message.maxDuration = object.maxDuration !== void 0 && object.maxDuration !== null ? require_energy_device_google_protobuf_duration.Duration.fromPartial(object.maxDuration) : void 0;
|
|
1968
|
+
message.maxSize = object.maxSize ?? 0;
|
|
1969
|
+
return message;
|
|
1970
|
+
}
|
|
1971
|
+
};
|
|
1972
|
+
function createBaseCommonAPIStartTcpdumpResponse() {
|
|
1973
|
+
return {};
|
|
1974
|
+
}
|
|
1975
|
+
const CommonAPIStartTcpdumpResponse = {
|
|
1976
|
+
encode(_, writer = new _bufbuild_protobuf_wire.BinaryWriter()) {
|
|
1977
|
+
return writer;
|
|
1978
|
+
},
|
|
1979
|
+
decode(input, length) {
|
|
1980
|
+
const reader = input instanceof _bufbuild_protobuf_wire.BinaryReader ? input : new _bufbuild_protobuf_wire.BinaryReader(input);
|
|
1981
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
1982
|
+
const message = createBaseCommonAPIStartTcpdumpResponse();
|
|
1983
|
+
while (reader.pos < end) {
|
|
1984
|
+
const tag = reader.uint32();
|
|
1985
|
+
switch (tag >>> 3) {}
|
|
1986
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
1987
|
+
reader.skip(tag & 7);
|
|
1988
|
+
}
|
|
1989
|
+
return message;
|
|
1990
|
+
},
|
|
1991
|
+
fromJSON(_) {
|
|
1992
|
+
return {};
|
|
1993
|
+
},
|
|
1994
|
+
toJSON(_) {
|
|
1995
|
+
return {};
|
|
1996
|
+
},
|
|
1997
|
+
create(base) {
|
|
1998
|
+
return CommonAPIStartTcpdumpResponse.fromPartial(base ?? {});
|
|
1999
|
+
},
|
|
2000
|
+
fromPartial(_) {
|
|
2001
|
+
return createBaseCommonAPIStartTcpdumpResponse();
|
|
2002
|
+
}
|
|
2003
|
+
};
|
|
2004
|
+
function createBaseCommonAPIStopTcpdumpRequest() {
|
|
2005
|
+
return {
|
|
2006
|
+
name: "",
|
|
2007
|
+
remove: false
|
|
2008
|
+
};
|
|
2009
|
+
}
|
|
2010
|
+
const CommonAPIStopTcpdumpRequest = {
|
|
2011
|
+
encode(message, writer = new _bufbuild_protobuf_wire.BinaryWriter()) {
|
|
2012
|
+
if (message.name !== "") writer.uint32(10).string(message.name);
|
|
2013
|
+
if (message.remove !== false) writer.uint32(16).bool(message.remove);
|
|
2014
|
+
return writer;
|
|
2015
|
+
},
|
|
2016
|
+
decode(input, length) {
|
|
2017
|
+
const reader = input instanceof _bufbuild_protobuf_wire.BinaryReader ? input : new _bufbuild_protobuf_wire.BinaryReader(input);
|
|
2018
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
2019
|
+
const message = createBaseCommonAPIStopTcpdumpRequest();
|
|
2020
|
+
while (reader.pos < end) {
|
|
2021
|
+
const tag = reader.uint32();
|
|
2022
|
+
switch (tag >>> 3) {
|
|
2023
|
+
case 1:
|
|
2024
|
+
if (tag !== 10) break;
|
|
2025
|
+
message.name = reader.string();
|
|
2026
|
+
continue;
|
|
2027
|
+
case 2:
|
|
2028
|
+
if (tag !== 16) break;
|
|
2029
|
+
message.remove = reader.bool();
|
|
2030
|
+
continue;
|
|
2031
|
+
}
|
|
2032
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
2033
|
+
reader.skip(tag & 7);
|
|
2034
|
+
}
|
|
2035
|
+
return message;
|
|
2036
|
+
},
|
|
2037
|
+
fromJSON(object) {
|
|
2038
|
+
return {
|
|
2039
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
2040
|
+
remove: isSet(object.remove) ? globalThis.Boolean(object.remove) : false
|
|
2041
|
+
};
|
|
2042
|
+
},
|
|
2043
|
+
toJSON(message) {
|
|
2044
|
+
const obj = {};
|
|
2045
|
+
if (message.name !== void 0) obj.name = message.name;
|
|
2046
|
+
if (message.remove !== void 0) obj.remove = message.remove;
|
|
2047
|
+
return obj;
|
|
2048
|
+
},
|
|
2049
|
+
create(base) {
|
|
2050
|
+
return CommonAPIStopTcpdumpRequest.fromPartial(base ?? {});
|
|
2051
|
+
},
|
|
2052
|
+
fromPartial(object) {
|
|
2053
|
+
const message = createBaseCommonAPIStopTcpdumpRequest();
|
|
2054
|
+
message.name = object.name ?? "";
|
|
2055
|
+
message.remove = object.remove ?? false;
|
|
2056
|
+
return message;
|
|
2057
|
+
}
|
|
2058
|
+
};
|
|
2059
|
+
function createBaseCommonAPIStopTcpdumpResponse() {
|
|
2060
|
+
return {};
|
|
2061
|
+
}
|
|
2062
|
+
const CommonAPIStopTcpdumpResponse = {
|
|
2063
|
+
encode(_, writer = new _bufbuild_protobuf_wire.BinaryWriter()) {
|
|
2064
|
+
return writer;
|
|
2065
|
+
},
|
|
2066
|
+
decode(input, length) {
|
|
2067
|
+
const reader = input instanceof _bufbuild_protobuf_wire.BinaryReader ? input : new _bufbuild_protobuf_wire.BinaryReader(input);
|
|
2068
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
2069
|
+
const message = createBaseCommonAPIStopTcpdumpResponse();
|
|
2070
|
+
while (reader.pos < end) {
|
|
2071
|
+
const tag = reader.uint32();
|
|
2072
|
+
switch (tag >>> 3) {}
|
|
2073
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
2074
|
+
reader.skip(tag & 7);
|
|
2075
|
+
}
|
|
2076
|
+
return message;
|
|
2077
|
+
},
|
|
2078
|
+
fromJSON(_) {
|
|
2079
|
+
return {};
|
|
2080
|
+
},
|
|
2081
|
+
toJSON(_) {
|
|
2082
|
+
return {};
|
|
2083
|
+
},
|
|
2084
|
+
create(base) {
|
|
2085
|
+
return CommonAPIStopTcpdumpResponse.fromPartial(base ?? {});
|
|
2086
|
+
},
|
|
2087
|
+
fromPartial(_) {
|
|
2088
|
+
return createBaseCommonAPIStopTcpdumpResponse();
|
|
2089
|
+
}
|
|
2090
|
+
};
|
|
2091
|
+
function createBaseCommonAPIGetTcpdumpInfoRequest() {
|
|
2092
|
+
return {};
|
|
2093
|
+
}
|
|
2094
|
+
const CommonAPIGetTcpdumpInfoRequest = {
|
|
2095
|
+
encode(_, writer = new _bufbuild_protobuf_wire.BinaryWriter()) {
|
|
2096
|
+
return writer;
|
|
2097
|
+
},
|
|
2098
|
+
decode(input, length) {
|
|
2099
|
+
const reader = input instanceof _bufbuild_protobuf_wire.BinaryReader ? input : new _bufbuild_protobuf_wire.BinaryReader(input);
|
|
2100
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
2101
|
+
const message = createBaseCommonAPIGetTcpdumpInfoRequest();
|
|
2102
|
+
while (reader.pos < end) {
|
|
2103
|
+
const tag = reader.uint32();
|
|
2104
|
+
switch (tag >>> 3) {}
|
|
2105
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
2106
|
+
reader.skip(tag & 7);
|
|
2107
|
+
}
|
|
2108
|
+
return message;
|
|
2109
|
+
},
|
|
2110
|
+
fromJSON(_) {
|
|
2111
|
+
return {};
|
|
2112
|
+
},
|
|
2113
|
+
toJSON(_) {
|
|
2114
|
+
return {};
|
|
2115
|
+
},
|
|
2116
|
+
create(base) {
|
|
2117
|
+
return CommonAPIGetTcpdumpInfoRequest.fromPartial(base ?? {});
|
|
2118
|
+
},
|
|
2119
|
+
fromPartial(_) {
|
|
2120
|
+
return createBaseCommonAPIGetTcpdumpInfoRequest();
|
|
2121
|
+
}
|
|
2122
|
+
};
|
|
2123
|
+
function createBaseCommonAPIGetTcpdumpInfoResponse() {
|
|
2124
|
+
return {
|
|
2125
|
+
list: [],
|
|
2126
|
+
diskQuota: 0
|
|
2127
|
+
};
|
|
2128
|
+
}
|
|
2129
|
+
const CommonAPIGetTcpdumpInfoResponse = {
|
|
2130
|
+
encode(message, writer = new _bufbuild_protobuf_wire.BinaryWriter()) {
|
|
2131
|
+
for (const v of message.list) TcpdumpInfo.encode(v, writer.uint32(10).fork()).join();
|
|
2132
|
+
if (message.diskQuota !== 0) writer.uint32(16).int64(message.diskQuota);
|
|
2133
|
+
return writer;
|
|
2134
|
+
},
|
|
2135
|
+
decode(input, length) {
|
|
2136
|
+
const reader = input instanceof _bufbuild_protobuf_wire.BinaryReader ? input : new _bufbuild_protobuf_wire.BinaryReader(input);
|
|
2137
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
2138
|
+
const message = createBaseCommonAPIGetTcpdumpInfoResponse();
|
|
2139
|
+
while (reader.pos < end) {
|
|
2140
|
+
const tag = reader.uint32();
|
|
2141
|
+
switch (tag >>> 3) {
|
|
2142
|
+
case 1:
|
|
2143
|
+
if (tag !== 10) break;
|
|
2144
|
+
message.list.push(TcpdumpInfo.decode(reader, reader.uint32()));
|
|
2145
|
+
continue;
|
|
2146
|
+
case 2:
|
|
2147
|
+
if (tag !== 16) break;
|
|
2148
|
+
message.diskQuota = longToNumber(reader.int64());
|
|
2149
|
+
continue;
|
|
2150
|
+
}
|
|
2151
|
+
if ((tag & 7) === 4 || tag === 0) break;
|
|
2152
|
+
reader.skip(tag & 7);
|
|
2153
|
+
}
|
|
2154
|
+
return message;
|
|
2155
|
+
},
|
|
2156
|
+
fromJSON(object) {
|
|
2157
|
+
return {
|
|
2158
|
+
list: globalThis.Array.isArray(object?.list) ? object.list.map((e) => TcpdumpInfo.fromJSON(e)) : [],
|
|
2159
|
+
diskQuota: isSet(object.diskQuota) ? globalThis.Number(object.diskQuota) : 0
|
|
2160
|
+
};
|
|
2161
|
+
},
|
|
2162
|
+
toJSON(message) {
|
|
2163
|
+
const obj = {};
|
|
2164
|
+
if (message.list?.length) obj.list = message.list.map((e) => TcpdumpInfo.toJSON(e));
|
|
2165
|
+
if (message.diskQuota !== void 0) obj.diskQuota = Math.round(message.diskQuota);
|
|
2166
|
+
return obj;
|
|
2167
|
+
},
|
|
2168
|
+
create(base) {
|
|
2169
|
+
return CommonAPIGetTcpdumpInfoResponse.fromPartial(base ?? {});
|
|
2170
|
+
},
|
|
2171
|
+
fromPartial(object) {
|
|
2172
|
+
const message = createBaseCommonAPIGetTcpdumpInfoResponse();
|
|
2173
|
+
message.list = object.list?.map((e) => TcpdumpInfo.fromPartial(e)) || [];
|
|
2174
|
+
message.diskQuota = object.diskQuota ?? 0;
|
|
2175
|
+
return message;
|
|
2176
|
+
}
|
|
2177
|
+
};
|
|
1654
2178
|
function createBaseCommonMessages() {
|
|
1655
2179
|
return {
|
|
1656
2180
|
errorResponse: void 0,
|
|
@@ -1691,7 +2215,13 @@ function createBaseCommonMessages() {
|
|
|
1691
2215
|
prepareRegistrationPayloadRequest: void 0,
|
|
1692
2216
|
prepareRegistrationPayloadResponse: void 0,
|
|
1693
2217
|
performUpdateFromLocallyAvailablePackagesRequest: void 0,
|
|
1694
|
-
performUpdateFromLocallyAvailablePackagesResponse: void 0
|
|
2218
|
+
performUpdateFromLocallyAvailablePackagesResponse: void 0,
|
|
2219
|
+
startTcpdumpRequest: void 0,
|
|
2220
|
+
startTcpdumpResponse: void 0,
|
|
2221
|
+
stopTcpdumpRequest: void 0,
|
|
2222
|
+
stopTcpdumpResponse: void 0,
|
|
2223
|
+
getTcpdumpInfoRequest: void 0,
|
|
2224
|
+
getTcpdumpInfoResponse: void 0
|
|
1695
2225
|
};
|
|
1696
2226
|
}
|
|
1697
2227
|
const CommonMessages = {
|
|
@@ -1735,6 +2265,12 @@ const CommonMessages = {
|
|
|
1735
2265
|
if (message.prepareRegistrationPayloadResponse !== void 0) CommonAPIPrepareRegistrationPayloadResponse.encode(message.prepareRegistrationPayloadResponse, writer.uint32(298).fork()).join();
|
|
1736
2266
|
if (message.performUpdateFromLocallyAvailablePackagesRequest !== void 0) CommonAPIPerformUpdateFromLocallyAvailablePackagesRequest.encode(message.performUpdateFromLocallyAvailablePackagesRequest, writer.uint32(306).fork()).join();
|
|
1737
2267
|
if (message.performUpdateFromLocallyAvailablePackagesResponse !== void 0) CommonAPIPerformUpdateFromLocallyAvailablePackagesResponse.encode(message.performUpdateFromLocallyAvailablePackagesResponse, writer.uint32(314).fork()).join();
|
|
2268
|
+
if (message.startTcpdumpRequest !== void 0) CommonAPIStartTcpdumpRequest.encode(message.startTcpdumpRequest, writer.uint32(370).fork()).join();
|
|
2269
|
+
if (message.startTcpdumpResponse !== void 0) CommonAPIStartTcpdumpResponse.encode(message.startTcpdumpResponse, writer.uint32(378).fork()).join();
|
|
2270
|
+
if (message.stopTcpdumpRequest !== void 0) CommonAPIStopTcpdumpRequest.encode(message.stopTcpdumpRequest, writer.uint32(386).fork()).join();
|
|
2271
|
+
if (message.stopTcpdumpResponse !== void 0) CommonAPIStopTcpdumpResponse.encode(message.stopTcpdumpResponse, writer.uint32(394).fork()).join();
|
|
2272
|
+
if (message.getTcpdumpInfoRequest !== void 0) CommonAPIGetTcpdumpInfoRequest.encode(message.getTcpdumpInfoRequest, writer.uint32(402).fork()).join();
|
|
2273
|
+
if (message.getTcpdumpInfoResponse !== void 0) CommonAPIGetTcpdumpInfoResponse.encode(message.getTcpdumpInfoResponse, writer.uint32(410).fork()).join();
|
|
1738
2274
|
return writer;
|
|
1739
2275
|
},
|
|
1740
2276
|
decode(input, length) {
|
|
@@ -1900,6 +2436,30 @@ const CommonMessages = {
|
|
|
1900
2436
|
if (tag !== 314) break;
|
|
1901
2437
|
message.performUpdateFromLocallyAvailablePackagesResponse = CommonAPIPerformUpdateFromLocallyAvailablePackagesResponse.decode(reader, reader.uint32());
|
|
1902
2438
|
continue;
|
|
2439
|
+
case 46:
|
|
2440
|
+
if (tag !== 370) break;
|
|
2441
|
+
message.startTcpdumpRequest = CommonAPIStartTcpdumpRequest.decode(reader, reader.uint32());
|
|
2442
|
+
continue;
|
|
2443
|
+
case 47:
|
|
2444
|
+
if (tag !== 378) break;
|
|
2445
|
+
message.startTcpdumpResponse = CommonAPIStartTcpdumpResponse.decode(reader, reader.uint32());
|
|
2446
|
+
continue;
|
|
2447
|
+
case 48:
|
|
2448
|
+
if (tag !== 386) break;
|
|
2449
|
+
message.stopTcpdumpRequest = CommonAPIStopTcpdumpRequest.decode(reader, reader.uint32());
|
|
2450
|
+
continue;
|
|
2451
|
+
case 49:
|
|
2452
|
+
if (tag !== 394) break;
|
|
2453
|
+
message.stopTcpdumpResponse = CommonAPIStopTcpdumpResponse.decode(reader, reader.uint32());
|
|
2454
|
+
continue;
|
|
2455
|
+
case 50:
|
|
2456
|
+
if (tag !== 402) break;
|
|
2457
|
+
message.getTcpdumpInfoRequest = CommonAPIGetTcpdumpInfoRequest.decode(reader, reader.uint32());
|
|
2458
|
+
continue;
|
|
2459
|
+
case 51:
|
|
2460
|
+
if (tag !== 410) break;
|
|
2461
|
+
message.getTcpdumpInfoResponse = CommonAPIGetTcpdumpInfoResponse.decode(reader, reader.uint32());
|
|
2462
|
+
continue;
|
|
1903
2463
|
}
|
|
1904
2464
|
if ((tag & 7) === 4 || tag === 0) break;
|
|
1905
2465
|
reader.skip(tag & 7);
|
|
@@ -1946,7 +2506,13 @@ const CommonMessages = {
|
|
|
1946
2506
|
prepareRegistrationPayloadRequest: isSet(object.prepareRegistrationPayloadRequest) ? CommonAPIPrepareRegistrationPayloadRequest.fromJSON(object.prepareRegistrationPayloadRequest) : void 0,
|
|
1947
2507
|
prepareRegistrationPayloadResponse: isSet(object.prepareRegistrationPayloadResponse) ? CommonAPIPrepareRegistrationPayloadResponse.fromJSON(object.prepareRegistrationPayloadResponse) : void 0,
|
|
1948
2508
|
performUpdateFromLocallyAvailablePackagesRequest: isSet(object.performUpdateFromLocallyAvailablePackagesRequest) ? CommonAPIPerformUpdateFromLocallyAvailablePackagesRequest.fromJSON(object.performUpdateFromLocallyAvailablePackagesRequest) : void 0,
|
|
1949
|
-
performUpdateFromLocallyAvailablePackagesResponse: isSet(object.performUpdateFromLocallyAvailablePackagesResponse) ? CommonAPIPerformUpdateFromLocallyAvailablePackagesResponse.fromJSON(object.performUpdateFromLocallyAvailablePackagesResponse) : void 0
|
|
2509
|
+
performUpdateFromLocallyAvailablePackagesResponse: isSet(object.performUpdateFromLocallyAvailablePackagesResponse) ? CommonAPIPerformUpdateFromLocallyAvailablePackagesResponse.fromJSON(object.performUpdateFromLocallyAvailablePackagesResponse) : void 0,
|
|
2510
|
+
startTcpdumpRequest: isSet(object.startTcpdumpRequest) ? CommonAPIStartTcpdumpRequest.fromJSON(object.startTcpdumpRequest) : void 0,
|
|
2511
|
+
startTcpdumpResponse: isSet(object.startTcpdumpResponse) ? CommonAPIStartTcpdumpResponse.fromJSON(object.startTcpdumpResponse) : void 0,
|
|
2512
|
+
stopTcpdumpRequest: isSet(object.stopTcpdumpRequest) ? CommonAPIStopTcpdumpRequest.fromJSON(object.stopTcpdumpRequest) : void 0,
|
|
2513
|
+
stopTcpdumpResponse: isSet(object.stopTcpdumpResponse) ? CommonAPIStopTcpdumpResponse.fromJSON(object.stopTcpdumpResponse) : void 0,
|
|
2514
|
+
getTcpdumpInfoRequest: isSet(object.getTcpdumpInfoRequest) ? CommonAPIGetTcpdumpInfoRequest.fromJSON(object.getTcpdumpInfoRequest) : void 0,
|
|
2515
|
+
getTcpdumpInfoResponse: isSet(object.getTcpdumpInfoResponse) ? CommonAPIGetTcpdumpInfoResponse.fromJSON(object.getTcpdumpInfoResponse) : void 0
|
|
1950
2516
|
};
|
|
1951
2517
|
},
|
|
1952
2518
|
toJSON(message) {
|
|
@@ -1990,6 +2556,12 @@ const CommonMessages = {
|
|
|
1990
2556
|
if (message.prepareRegistrationPayloadResponse !== void 0) obj.prepareRegistrationPayloadResponse = CommonAPIPrepareRegistrationPayloadResponse.toJSON(message.prepareRegistrationPayloadResponse);
|
|
1991
2557
|
if (message.performUpdateFromLocallyAvailablePackagesRequest !== void 0) obj.performUpdateFromLocallyAvailablePackagesRequest = CommonAPIPerformUpdateFromLocallyAvailablePackagesRequest.toJSON(message.performUpdateFromLocallyAvailablePackagesRequest);
|
|
1992
2558
|
if (message.performUpdateFromLocallyAvailablePackagesResponse !== void 0) obj.performUpdateFromLocallyAvailablePackagesResponse = CommonAPIPerformUpdateFromLocallyAvailablePackagesResponse.toJSON(message.performUpdateFromLocallyAvailablePackagesResponse);
|
|
2559
|
+
if (message.startTcpdumpRequest !== void 0) obj.startTcpdumpRequest = CommonAPIStartTcpdumpRequest.toJSON(message.startTcpdumpRequest);
|
|
2560
|
+
if (message.startTcpdumpResponse !== void 0) obj.startTcpdumpResponse = CommonAPIStartTcpdumpResponse.toJSON(message.startTcpdumpResponse);
|
|
2561
|
+
if (message.stopTcpdumpRequest !== void 0) obj.stopTcpdumpRequest = CommonAPIStopTcpdumpRequest.toJSON(message.stopTcpdumpRequest);
|
|
2562
|
+
if (message.stopTcpdumpResponse !== void 0) obj.stopTcpdumpResponse = CommonAPIStopTcpdumpResponse.toJSON(message.stopTcpdumpResponse);
|
|
2563
|
+
if (message.getTcpdumpInfoRequest !== void 0) obj.getTcpdumpInfoRequest = CommonAPIGetTcpdumpInfoRequest.toJSON(message.getTcpdumpInfoRequest);
|
|
2564
|
+
if (message.getTcpdumpInfoResponse !== void 0) obj.getTcpdumpInfoResponse = CommonAPIGetTcpdumpInfoResponse.toJSON(message.getTcpdumpInfoResponse);
|
|
1993
2565
|
return obj;
|
|
1994
2566
|
},
|
|
1995
2567
|
create(base) {
|
|
@@ -2036,6 +2608,12 @@ const CommonMessages = {
|
|
|
2036
2608
|
message.prepareRegistrationPayloadResponse = object.prepareRegistrationPayloadResponse !== void 0 && object.prepareRegistrationPayloadResponse !== null ? CommonAPIPrepareRegistrationPayloadResponse.fromPartial(object.prepareRegistrationPayloadResponse) : void 0;
|
|
2037
2609
|
message.performUpdateFromLocallyAvailablePackagesRequest = object.performUpdateFromLocallyAvailablePackagesRequest !== void 0 && object.performUpdateFromLocallyAvailablePackagesRequest !== null ? CommonAPIPerformUpdateFromLocallyAvailablePackagesRequest.fromPartial(object.performUpdateFromLocallyAvailablePackagesRequest) : void 0;
|
|
2038
2610
|
message.performUpdateFromLocallyAvailablePackagesResponse = object.performUpdateFromLocallyAvailablePackagesResponse !== void 0 && object.performUpdateFromLocallyAvailablePackagesResponse !== null ? CommonAPIPerformUpdateFromLocallyAvailablePackagesResponse.fromPartial(object.performUpdateFromLocallyAvailablePackagesResponse) : void 0;
|
|
2611
|
+
message.startTcpdumpRequest = object.startTcpdumpRequest !== void 0 && object.startTcpdumpRequest !== null ? CommonAPIStartTcpdumpRequest.fromPartial(object.startTcpdumpRequest) : void 0;
|
|
2612
|
+
message.startTcpdumpResponse = object.startTcpdumpResponse !== void 0 && object.startTcpdumpResponse !== null ? CommonAPIStartTcpdumpResponse.fromPartial(object.startTcpdumpResponse) : void 0;
|
|
2613
|
+
message.stopTcpdumpRequest = object.stopTcpdumpRequest !== void 0 && object.stopTcpdumpRequest !== null ? CommonAPIStopTcpdumpRequest.fromPartial(object.stopTcpdumpRequest) : void 0;
|
|
2614
|
+
message.stopTcpdumpResponse = object.stopTcpdumpResponse !== void 0 && object.stopTcpdumpResponse !== null ? CommonAPIStopTcpdumpResponse.fromPartial(object.stopTcpdumpResponse) : void 0;
|
|
2615
|
+
message.getTcpdumpInfoRequest = object.getTcpdumpInfoRequest !== void 0 && object.getTcpdumpInfoRequest !== null ? CommonAPIGetTcpdumpInfoRequest.fromPartial(object.getTcpdumpInfoRequest) : void 0;
|
|
2616
|
+
message.getTcpdumpInfoResponse = object.getTcpdumpInfoResponse !== void 0 && object.getTcpdumpInfoResponse !== null ? CommonAPIGetTcpdumpInfoResponse.fromPartial(object.getTcpdumpInfoResponse) : void 0;
|
|
2039
2617
|
return message;
|
|
2040
2618
|
}
|
|
2041
2619
|
};
|
|
@@ -2058,6 +2636,12 @@ function base64FromBytes(arr) {
|
|
|
2058
2636
|
return globalThis.btoa(bin.join(""));
|
|
2059
2637
|
}
|
|
2060
2638
|
}
|
|
2639
|
+
function longToNumber(int64) {
|
|
2640
|
+
const num = globalThis.Number(int64.toString());
|
|
2641
|
+
if (num > globalThis.Number.MAX_SAFE_INTEGER) throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
2642
|
+
if (num < globalThis.Number.MIN_SAFE_INTEGER) throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
|
|
2643
|
+
return num;
|
|
2644
|
+
}
|
|
2061
2645
|
function isSet(value) {
|
|
2062
2646
|
return value !== null && value !== void 0;
|
|
2063
2647
|
}
|
|
@@ -2088,6 +2672,8 @@ exports.CommonAPIGetNetworkingStatusRequest = CommonAPIGetNetworkingStatusReques
|
|
|
2088
2672
|
exports.CommonAPIGetNetworkingStatusResponse = CommonAPIGetNetworkingStatusResponse;
|
|
2089
2673
|
exports.CommonAPIGetSystemInfoRequest = CommonAPIGetSystemInfoRequest;
|
|
2090
2674
|
exports.CommonAPIGetSystemInfoResponse = CommonAPIGetSystemInfoResponse;
|
|
2675
|
+
exports.CommonAPIGetTcpdumpInfoRequest = CommonAPIGetTcpdumpInfoRequest;
|
|
2676
|
+
exports.CommonAPIGetTcpdumpInfoResponse = CommonAPIGetTcpdumpInfoResponse;
|
|
2091
2677
|
exports.CommonAPINegotiateUpdateWithLocallyAvailablePackagesRequest = CommonAPINegotiateUpdateWithLocallyAvailablePackagesRequest;
|
|
2092
2678
|
exports.CommonAPINegotiateUpdateWithLocallyAvailablePackagesResponse = CommonAPINegotiateUpdateWithLocallyAvailablePackagesResponse;
|
|
2093
2679
|
exports.CommonAPIPerformUpdateFromLocallyAvailablePackagesRequest = CommonAPIPerformUpdateFromLocallyAvailablePackagesRequest;
|
|
@@ -2098,7 +2684,14 @@ exports.CommonAPIPrepareRegistrationPayloadRequest = CommonAPIPrepareRegistratio
|
|
|
2098
2684
|
exports.CommonAPIPrepareRegistrationPayloadResponse = CommonAPIPrepareRegistrationPayloadResponse;
|
|
2099
2685
|
exports.CommonAPISetLocalSiteConfigRequest = CommonAPISetLocalSiteConfigRequest;
|
|
2100
2686
|
exports.CommonAPISetLocalSiteConfigResponse = CommonAPISetLocalSiteConfigResponse;
|
|
2687
|
+
exports.CommonAPIStartTcpdumpRequest = CommonAPIStartTcpdumpRequest;
|
|
2688
|
+
exports.CommonAPIStartTcpdumpResponse = CommonAPIStartTcpdumpResponse;
|
|
2689
|
+
exports.CommonAPIStopTcpdumpRequest = CommonAPIStopTcpdumpRequest;
|
|
2690
|
+
exports.CommonAPIStopTcpdumpResponse = CommonAPIStopTcpdumpResponse;
|
|
2101
2691
|
exports.CommonAPIWifiScanRequest = CommonAPIWifiScanRequest;
|
|
2102
2692
|
exports.CommonAPIWifiScanResponse = CommonAPIWifiScanResponse;
|
|
2103
2693
|
exports.CommonMessages = CommonMessages;
|
|
2694
|
+
exports.ComplianceInformation = ComplianceInformation;
|
|
2695
|
+
exports.RadioLegalInformation = RadioLegalInformation;
|
|
2696
|
+
exports.TcpdumpInfo = TcpdumpInfo;
|
|
2104
2697
|
exports.protobufPackage = protobufPackage;
|