@blueid/access-proto 0.19.0 → 0.21.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.
@@ -0,0 +1,394 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+ var BlueSystem_pb_exports = {};
19
+ __export(BlueSystem_pb_exports, {
20
+ BlueAccessConfig: () => BlueAccessConfig,
21
+ BlueBaseConfig: () => BlueBaseConfig,
22
+ BlueBlacklistEntries: () => BlueBlacklistEntries,
23
+ BlueBleConfig: () => BlueBleConfig,
24
+ BlueEventLogQuery: () => BlueEventLogQuery,
25
+ BlueEventLogResult: () => BlueEventLogResult,
26
+ BlueOnlineConfig: () => BlueOnlineConfig,
27
+ BlueOnlineMode: () => BlueOnlineMode,
28
+ BlueOssConfig: () => BlueOssConfig,
29
+ BlueSystemConfig: () => BlueSystemConfig,
30
+ BlueSystemLogEntry: () => BlueSystemLogEntry,
31
+ BlueSystemLogQuery: () => BlueSystemLogQuery,
32
+ BlueSystemLogResult: () => BlueSystemLogResult,
33
+ BlueSystemProvisioning: () => BlueSystemProvisioning,
34
+ BlueSystemSettings: () => BlueSystemSettings,
35
+ BlueSystemStatus: () => BlueSystemStatus,
36
+ BlueSystemTimeUnix: () => BlueSystemTimeUnix,
37
+ BlueSystemUpdate: () => BlueSystemUpdate,
38
+ BlueTimeOffsetPeriod: () => BlueTimeOffsetPeriod
39
+ });
40
+ module.exports = __toCommonJS(BlueSystem_pb_exports);
41
+ var import_protobuf = require("@bufbuild/protobuf");
42
+ var import_BlueCore_pb = require("./BlueCore_pb.js");
43
+ var import_BlueLock_pb = require("./BlueLock_pb.js");
44
+ const BlueOnlineMode = import_protobuf.proto2.makeEnum(
45
+ "BlueOnlineMode",
46
+ [
47
+ { no: 0, name: "OfflineMode" },
48
+ { no: 1, name: "ManualWifi" },
49
+ { no: 2, name: "AlwaysOnWifi" },
50
+ { no: 3, name: "UseLan" }
51
+ ]
52
+ );
53
+ const BlueTimeOffsetPeriod = import_protobuf.proto2.makeMessageType(
54
+ "BlueTimeOffsetPeriod",
55
+ () => [
56
+ {
57
+ no: 1,
58
+ name: "epoch",
59
+ kind: "scalar",
60
+ T: 13
61
+ /* ScalarType.UINT32 */
62
+ },
63
+ {
64
+ no: 2,
65
+ name: "offset",
66
+ kind: "scalar",
67
+ T: 5
68
+ /* ScalarType.INT32 */
69
+ }
70
+ ]
71
+ );
72
+ const BlueBaseConfig = import_protobuf.proto2.makeMessageType(
73
+ "BlueBaseConfig",
74
+ () => [
75
+ { no: 1, name: "timeOffsetPeriods", kind: "message", T: BlueTimeOffsetPeriod, repeated: true },
76
+ { no: 2, name: "autoCheckSystemStatus", kind: "scalar", T: 8, default: false }
77
+ ]
78
+ );
79
+ const BlueBleConfig = import_protobuf.proto2.makeMessageType(
80
+ "BlueBleConfig",
81
+ () => [
82
+ { no: 1, name: "isAdvertising", kind: "scalar", T: 8, default: true },
83
+ { no: 2, name: "advertisingSchedules", kind: "message", T: import_BlueCore_pb.BlueLocalTimeSchedule, repeated: true },
84
+ { no: 3, name: "maxPowerAdvertisingSchedulesIndices", kind: "scalar", T: 13, repeated: true },
85
+ { no: 4, name: "advertisingIntervalMs", kind: "scalar", T: 13, default: 500 },
86
+ { no: 5, name: "maxConnectionTimeoutMs", kind: "scalar", T: 13, default: 3e3 },
87
+ { no: 6, name: "txPowerLevel", kind: "scalar", T: 13, default: 3 },
88
+ { no: 7, name: "advertisedTxPower1Meter", kind: "scalar", T: 5, default: -77 },
89
+ {
90
+ no: 8,
91
+ name: "isIBeaconAdvertisement",
92
+ kind: "scalar",
93
+ T: 8
94
+ /* ScalarType.BOOL */
95
+ }
96
+ ]
97
+ );
98
+ const BlueOnlineConfig = import_protobuf.proto2.makeMessageType(
99
+ "BlueOnlineConfig",
100
+ () => [
101
+ { no: 1, name: "mode", kind: "enum", T: import_protobuf.proto2.getEnumType(BlueOnlineMode), default: BlueOnlineMode.OfflineMode },
102
+ { no: 2, name: "connectSchedules", kind: "message", T: import_BlueCore_pb.BlueLocalTimeSchedule, repeated: true },
103
+ {
104
+ no: 3,
105
+ name: "wifiSSID",
106
+ kind: "scalar",
107
+ T: 9
108
+ /* ScalarType.STRING */
109
+ },
110
+ {
111
+ no: 4,
112
+ name: "wifiPassword",
113
+ kind: "scalar",
114
+ T: 9
115
+ /* ScalarType.STRING */
116
+ },
117
+ { no: 5, name: "timeoutSec", kind: "scalar", T: 13, default: 30 }
118
+ ]
119
+ );
120
+ const BlueAccessConfig = import_protobuf.proto2.makeMessageType(
121
+ "BlueAccessConfig",
122
+ () => [
123
+ { no: 1, name: "id", kind: "scalar", T: 13, default: 1 },
124
+ { no: 2, name: "siteId", kind: "scalar", T: 13, default: 1 },
125
+ { no: 3, name: "groupIds", kind: "scalar", T: 13, repeated: true }
126
+ ]
127
+ );
128
+ const BlueOssConfig = import_protobuf.proto2.makeMessageType(
129
+ "BlueOssConfig",
130
+ () => [
131
+ { no: 1, name: "sidMifareAesKey", kind: "scalar", T: 12, default: new Uint8Array([255, 238, 221, 204, 187, 170, 153, 136, 119, 102, 85, 68, 51, 17, 0]) },
132
+ { no: 2, name: "sidMifareAid", kind: "scalar", T: 13, default: 16076801 },
133
+ { no: 3, name: "soUpdater", kind: "scalar", T: 8, default: false },
134
+ { no: 4, name: "soPushEvents", kind: "scalar", T: 8, default: false },
135
+ { no: 5, name: "soWritePendingEvents", kind: "scalar", T: 8, default: true },
136
+ { no: 6, name: "soUpdateFromBlacklist", kind: "scalar", T: 8, default: true },
137
+ { no: 7, name: "soMifareAesKey", kind: "scalar", T: 12, default: new Uint8Array([16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31]) },
138
+ { no: 8, name: "soMifareAid", kind: "scalar", T: 13, default: 16076800 }
139
+ ]
140
+ );
141
+ const BlueSystemConfig = import_protobuf.proto2.makeMessageType(
142
+ "BlueSystemConfig",
143
+ () => [
144
+ {
145
+ no: 1,
146
+ name: "version",
147
+ kind: "scalar",
148
+ T: 13
149
+ /* ScalarType.UINT32 */
150
+ },
151
+ { no: 2, name: "base", kind: "message", T: BlueBaseConfig },
152
+ { no: 3, name: "ble", kind: "message", T: BlueBleConfig },
153
+ { no: 4, name: "online", kind: "message", T: BlueOnlineConfig },
154
+ { no: 5, name: "access", kind: "message", T: BlueAccessConfig },
155
+ { no: 6, name: "oss", kind: "message", T: BlueOssConfig },
156
+ { no: 7, name: "lock", kind: "message", T: import_BlueLock_pb.BlueLockConfig, opt: true }
157
+ ]
158
+ );
159
+ const BlueSystemTimeUnix = import_protobuf.proto2.makeMessageType(
160
+ "BlueSystemTimeUnix",
161
+ () => [
162
+ {
163
+ no: 1,
164
+ name: "epoch",
165
+ kind: "scalar",
166
+ T: 13
167
+ /* ScalarType.UINT32 */
168
+ }
169
+ ]
170
+ );
171
+ const BlueSystemUpdate = import_protobuf.proto2.makeMessageType(
172
+ "BlueSystemUpdate",
173
+ () => [
174
+ { no: 1, name: "config", kind: "message", T: BlueSystemConfig, opt: true },
175
+ { no: 2, name: "timeUnix", kind: "message", T: BlueSystemTimeUnix, opt: true }
176
+ ]
177
+ );
178
+ const BlueSystemSettings = import_protobuf.proto2.makeMessageType(
179
+ "BlueSystemSettings",
180
+ () => [
181
+ { no: 1, name: "blacklistMaxEntriesCount", kind: "scalar", T: 13, default: 0 },
182
+ { no: 2, name: "blacklistEntriesCount", kind: "scalar", T: 13, default: 0 },
183
+ { no: 3, name: "eventLogMaxEntriesCount", kind: "scalar", T: 13, default: 0 },
184
+ { no: 4, name: "eventLogEntriesCount", kind: "scalar", T: 13, default: 0 },
185
+ { no: 5, name: "eventLogSequenceId", kind: "scalar", T: 13, default: 0 },
186
+ { no: 6, name: "eventLogIndex", kind: "scalar", T: 13, default: 0 },
187
+ { no: 7, name: "systemLogMaxEntriesCount", kind: "scalar", T: 13, default: 0 },
188
+ { no: 8, name: "systemLogEntriesCount", kind: "scalar", T: 13, default: 0 },
189
+ { no: 9, name: "systemLogSequenceId", kind: "scalar", T: 13, default: 0 },
190
+ { no: 10, name: "systemLogIndex", kind: "scalar", T: 13, default: 0 },
191
+ {
192
+ no: 11,
193
+ name: "timeWasSet",
194
+ kind: "scalar",
195
+ T: 8
196
+ /* ScalarType.BOOL */
197
+ },
198
+ {
199
+ no: 12,
200
+ name: "isBatteryLow",
201
+ kind: "scalar",
202
+ T: 8
203
+ /* ScalarType.BOOL */
204
+ }
205
+ ]
206
+ );
207
+ const BlueSystemProvisioning = import_protobuf.proto2.makeMessageType(
208
+ "BlueSystemProvisioning",
209
+ () => [
210
+ { no: 1, name: "hardwareType", kind: "enum", T: import_protobuf.proto2.getEnumType(import_BlueCore_pb.BlueHardwareType), default: import_BlueCore_pb.BlueHardwareType.TestHardware },
211
+ {
212
+ no: 2,
213
+ name: "deviceId",
214
+ kind: "scalar",
215
+ T: 9
216
+ /* ScalarType.STRING */
217
+ },
218
+ { no: 3, name: "serialNumber", kind: "scalar", T: 9, default: "00000000000000000000" },
219
+ {
220
+ no: 4,
221
+ name: "terminalPrivateKey",
222
+ kind: "scalar",
223
+ T: 12
224
+ /* ScalarType.BYTES */
225
+ },
226
+ {
227
+ no: 5,
228
+ name: "signaturePublicKey",
229
+ kind: "scalar",
230
+ T: 12
231
+ /* ScalarType.BYTES */
232
+ }
233
+ ]
234
+ );
235
+ const BlueSystemStatus = import_protobuf.proto2.makeMessageType(
236
+ "BlueSystemStatus",
237
+ () => [
238
+ {
239
+ no: 1,
240
+ name: "configVersion",
241
+ kind: "scalar",
242
+ T: 13
243
+ /* ScalarType.UINT32 */
244
+ },
245
+ {
246
+ no: 2,
247
+ name: "deviceId",
248
+ kind: "scalar",
249
+ T: 9
250
+ /* ScalarType.STRING */
251
+ },
252
+ {
253
+ no: 3,
254
+ name: "serialNumber",
255
+ kind: "scalar",
256
+ T: 9
257
+ /* ScalarType.STRING */
258
+ },
259
+ { no: 4, name: "hardwareType", kind: "enum", T: import_protobuf.proto2.getEnumType(import_BlueCore_pb.BlueHardwareType) },
260
+ { no: 5, name: "batteryLevel", kind: "enum", T: import_protobuf.proto2.getEnumType(import_BlueCore_pb.BlueBatteryLevel) },
261
+ {
262
+ no: 6,
263
+ name: "applicationVersion",
264
+ kind: "scalar",
265
+ T: 13
266
+ /* ScalarType.UINT32 */
267
+ },
268
+ { no: 7, name: "localTime", kind: "message", T: import_BlueCore_pb.BlueLocalTimestamp },
269
+ { no: 8, name: "settings", kind: "message", T: BlueSystemSettings },
270
+ {
271
+ no: 9,
272
+ name: "blacklistEntriesCount",
273
+ kind: "scalar",
274
+ T: 13
275
+ /* ScalarType.UINT32 */
276
+ },
277
+ {
278
+ no: 10,
279
+ name: "eventLogEntriesCount",
280
+ kind: "scalar",
281
+ T: 13
282
+ /* ScalarType.UINT32 */
283
+ },
284
+ {
285
+ no: 11,
286
+ name: "eventLogSequenceId",
287
+ kind: "scalar",
288
+ T: 13
289
+ /* ScalarType.UINT32 */
290
+ },
291
+ {
292
+ no: 12,
293
+ name: "systemLogEntriesCount",
294
+ kind: "scalar",
295
+ T: 13
296
+ /* ScalarType.UINT32 */
297
+ },
298
+ {
299
+ no: 13,
300
+ name: "systemLogSequenceId",
301
+ kind: "scalar",
302
+ T: 13
303
+ /* ScalarType.UINT32 */
304
+ },
305
+ { no: 14, name: "lock", kind: "message", T: import_BlueLock_pb.BlueLockStatus, opt: true }
306
+ ]
307
+ );
308
+ const BlueSystemLogQuery = import_protobuf.proto2.makeMessageType(
309
+ "BlueSystemLogQuery",
310
+ () => [
311
+ {
312
+ no: 1,
313
+ name: "maxCount",
314
+ kind: "scalar",
315
+ T: 13
316
+ /* ScalarType.UINT32 */
317
+ },
318
+ { no: 2, name: "sequenceId", kind: "scalar", T: 13, oneof: "start" },
319
+ { no: 3, name: "fromHead", kind: "scalar", T: 8, oneof: "start" }
320
+ ]
321
+ );
322
+ const BlueSystemLogEntry = import_protobuf.proto2.makeMessageType(
323
+ "BlueSystemLogEntry",
324
+ () => [
325
+ {
326
+ no: 1,
327
+ name: "sequenceId",
328
+ kind: "scalar",
329
+ T: 13
330
+ /* ScalarType.UINT32 */
331
+ },
332
+ { no: 2, name: "time", kind: "message", T: import_BlueCore_pb.BlueLocalTimestamp },
333
+ {
334
+ no: 3,
335
+ name: "severity",
336
+ kind: "scalar",
337
+ T: 13
338
+ /* ScalarType.UINT32 */
339
+ },
340
+ {
341
+ no: 4,
342
+ name: "line",
343
+ kind: "scalar",
344
+ T: 13
345
+ /* ScalarType.UINT32 */
346
+ },
347
+ {
348
+ no: 5,
349
+ name: "file",
350
+ kind: "scalar",
351
+ T: 9
352
+ /* ScalarType.STRING */
353
+ },
354
+ {
355
+ no: 6,
356
+ name: "message",
357
+ kind: "scalar",
358
+ T: 9
359
+ /* ScalarType.STRING */
360
+ }
361
+ ]
362
+ );
363
+ const BlueSystemLogResult = import_protobuf.proto2.makeMessageType(
364
+ "BlueSystemLogResult",
365
+ () => [
366
+ { no: 1, name: "entries", kind: "message", T: BlueSystemLogEntry, repeated: true }
367
+ ]
368
+ );
369
+ const BlueEventLogQuery = import_protobuf.proto2.makeMessageType(
370
+ "BlueEventLogQuery",
371
+ () => [
372
+ {
373
+ no: 1,
374
+ name: "maxCount",
375
+ kind: "scalar",
376
+ T: 13
377
+ /* ScalarType.UINT32 */
378
+ },
379
+ { no: 2, name: "sequenceId", kind: "scalar", T: 13, oneof: "start" },
380
+ { no: 3, name: "fromHead", kind: "scalar", T: 8, oneof: "start" }
381
+ ]
382
+ );
383
+ const BlueEventLogResult = import_protobuf.proto2.makeMessageType(
384
+ "BlueEventLogResult",
385
+ () => [
386
+ { no: 1, name: "events", kind: "message", T: import_BlueCore_pb.BlueEvent, repeated: true }
387
+ ]
388
+ );
389
+ const BlueBlacklistEntries = import_protobuf.proto2.makeMessageType(
390
+ "BlueBlacklistEntries",
391
+ () => [
392
+ { no: 1, name: "entries", kind: "message", T: import_BlueCore_pb.BlueBlacklistEntry, repeated: true }
393
+ ]
394
+ );
package/cjs/index.d.ts ADDED
@@ -0,0 +1,5 @@
1
+ export * from "./BlueCore_pb"
2
+ export * from "./BlueLock_pb"
3
+ export * from "./BlueSDK_pb"
4
+ export * from "./BlueSystem_pb"
5
+
package/cjs/index.js ADDED
@@ -0,0 +1,20 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __copyProps = (to, from, except, desc) => {
6
+ if (from && typeof from === "object" || typeof from === "function") {
7
+ for (let key of __getOwnPropNames(from))
8
+ if (!__hasOwnProp.call(to, key) && key !== except)
9
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
10
+ }
11
+ return to;
12
+ };
13
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
14
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
+ var es_exports = {};
16
+ module.exports = __toCommonJS(es_exports);
17
+ __reExport(es_exports, require("./BlueCore_pb.js"), module.exports);
18
+ __reExport(es_exports, require("./BlueLock_pb.js"), module.exports);
19
+ __reExport(es_exports, require("./BlueSDK_pb.js"), module.exports);
20
+ __reExport(es_exports, require("./BlueSystem_pb.js"), module.exports);