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