@blueid/access-proto 0.22.0 → 0.24.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/BlueCore.proto +13 -2
- package/BlueLock.proto +2 -2
- package/BlueSDK.proto +21 -0
- package/BlueSystem.proto +1 -7
- package/cjs/BlueCore_pb.d.ts +36 -3
- package/cjs/BlueCore_pb.js +11 -1
- package/cjs/BlueLock_pb.d.ts +3 -3
- package/cjs/BlueLock_pb.js +7 -1
- package/cjs/BlueSDK_pb.d.ts +98 -1
- package/cjs/BlueSDK_pb.js +38 -0
- package/cjs/BlueSystem_pb.d.ts +1 -26
- package/cjs/BlueSystem_pb.js +1 -36
- package/es/BlueCore_pb.d.ts +36 -3
- package/es/BlueCore_pb.js +14 -1
- package/es/BlueLock_pb.d.ts +3 -3
- package/es/BlueLock_pb.js +1 -1
- package/es/BlueSDK_pb.d.ts +98 -1
- package/es/BlueSDK_pb.js +36 -1
- package/es/BlueSystem_pb.d.ts +1 -26
- package/es/BlueSystem_pb.js +1 -6
- package/nanopb/BlueCore.pb.c +1 -0
- package/nanopb/BlueCore.pb.h +24 -8
- package/nanopb/BlueLock.pb.c +1 -1
- package/nanopb/BlueLock.pb.h +7 -8
- package/nanopb/BlueSDK.pb.c +9 -0
- package/nanopb/BlueSDK.pb.h +70 -0
- package/nanopb/BlueSystem.pb.h +8 -23
- package/package.json +1 -1
- package/swift/BlueCore.pb.swift +73 -14
- package/swift/BlueLock.pb.swift +17 -8
- package/swift/BlueSDK.pb.swift +261 -0
- package/swift/BlueSystem.pb.swift +3 -93
package/BlueCore.proto
CHANGED
|
@@ -231,6 +231,17 @@ message BlueCredentialId {
|
|
|
231
231
|
required string id = 1 [ (nanopb).max_length = 10 ];
|
|
232
232
|
}
|
|
233
233
|
|
|
234
|
+
enum BlueCredentialType {
|
|
235
|
+
/* Regular credential can only open / enter */
|
|
236
|
+
Regular = 1;
|
|
237
|
+
/* Maintenance can open and update all locks within the site */
|
|
238
|
+
Maintenance = 2;
|
|
239
|
+
/* Master can open all locks within the given site and requires no refresh */
|
|
240
|
+
Master = 3;
|
|
241
|
+
/* Nfc writer allows to write any credential within this site on cards & fobs */
|
|
242
|
+
NfcWriter = 4;
|
|
243
|
+
}
|
|
244
|
+
|
|
234
245
|
message BlueBlacklistEntry {
|
|
235
246
|
required BlueCredentialId credentialId = 1;
|
|
236
247
|
required BlueLocalTimestamp expiresAt = 2;
|
|
@@ -395,8 +406,8 @@ message BlueEvent {
|
|
|
395
406
|
|
|
396
407
|
required int32 eventInfo = 5;
|
|
397
408
|
|
|
398
|
-
// Set if
|
|
399
|
-
optional
|
|
409
|
+
// Set if credential related
|
|
410
|
+
optional BlueCredentialId credentialId = 6;
|
|
400
411
|
|
|
401
412
|
// Set if eventId =
|
|
402
413
|
optional string command = 7 [ (nanopb).max_length = 8 ];
|
package/BlueLock.proto
CHANGED
|
@@ -19,8 +19,8 @@ message BlueLockConfig {
|
|
|
19
19
|
// opened by an authenticated user and is within any of the open schedules
|
|
20
20
|
required bool openScheduleByUser = 2 [ default = false ];
|
|
21
21
|
|
|
22
|
-
//
|
|
23
|
-
|
|
22
|
+
// If set keeps the lock closed on federal vacation days
|
|
23
|
+
required bool keepClosedOnHolidays = 20;
|
|
24
24
|
|
|
25
25
|
// Default time in seconds to keep the lock open
|
|
26
26
|
required uint32 defaultOpenTimeSec = 21 [ default = 5 ];
|
package/BlueSDK.proto
CHANGED
|
@@ -53,4 +53,25 @@ message BlueDeviceInfo {
|
|
|
53
53
|
BlueDeviceDetailsBluetooth bluetooth = 5;
|
|
54
54
|
BlueDeviceDetailsUWB uwb = 6;
|
|
55
55
|
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
///////////////////////////////////////////////////////////////////////
|
|
59
|
+
// Credential
|
|
60
|
+
///////////////////////////////////////////////////////////////////////
|
|
61
|
+
|
|
62
|
+
message BlueAccessCredential {
|
|
63
|
+
required BlueCredentialId credentialId = 1;
|
|
64
|
+
required BlueCredentialType credentialType = 2;
|
|
65
|
+
optional BlueLocalTimestamp validFrom = 3;
|
|
66
|
+
optional BlueLocalTimestamp validTo = 4;
|
|
67
|
+
required bytes privateKey = 5;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
message BlueAccessDevice {
|
|
71
|
+
required string deviceId = 1;
|
|
72
|
+
optional string name = 2;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
message BlueAccessDeviceList {
|
|
76
|
+
repeated BlueAccessDevice devices = 1;
|
|
56
77
|
}
|
package/BlueSystem.proto
CHANGED
|
@@ -208,14 +208,9 @@ message BlueSystemStatus {
|
|
|
208
208
|
required uint32 applicationVersion = 6;
|
|
209
209
|
required BlueLocalTimestamp localTime = 7;
|
|
210
210
|
required BlueSystemSettings settings = 8;
|
|
211
|
-
required uint32 blacklistEntriesCount = 9 [ (nanopb).int_size = IS_16 ];
|
|
212
|
-
required uint32 eventLogEntriesCount = 10 [ (nanopb).int_size = IS_16 ];
|
|
213
|
-
required uint32 eventLogSequenceId = 11;
|
|
214
|
-
required uint32 systemLogEntriesCount = 12 [ (nanopb).int_size = IS_16 ];
|
|
215
|
-
required uint32 systemLogSequenceId = 13;
|
|
216
211
|
|
|
217
212
|
// -- Custom
|
|
218
|
-
optional BlueLockStatus lock =
|
|
213
|
+
optional BlueLockStatus lock = 9;
|
|
219
214
|
}
|
|
220
215
|
|
|
221
216
|
///////////////////////////////////////////////////////////////////////
|
|
@@ -239,7 +234,6 @@ message BlueSystemLogEntry {
|
|
|
239
234
|
required uint32 severity = 3 [ (nanopb).int_size = IS_8 ];
|
|
240
235
|
|
|
241
236
|
required uint32 line = 4 [ (nanopb).int_size = IS_16 ];
|
|
242
|
-
;
|
|
243
237
|
|
|
244
238
|
required string file = 5 [ (nanopb).max_length = 20 ];
|
|
245
239
|
|
package/cjs/BlueCore_pb.d.ts
CHANGED
|
@@ -479,6 +479,39 @@ export declare enum BlueWeekday {
|
|
|
479
479
|
Sunday = 6,
|
|
480
480
|
}
|
|
481
481
|
|
|
482
|
+
/**
|
|
483
|
+
* @generated from enum BlueCredentialType
|
|
484
|
+
*/
|
|
485
|
+
export declare enum BlueCredentialType {
|
|
486
|
+
/**
|
|
487
|
+
* Regular credential can only open / enter
|
|
488
|
+
*
|
|
489
|
+
* @generated from enum value: Regular = 1;
|
|
490
|
+
*/
|
|
491
|
+
Regular = 1,
|
|
492
|
+
|
|
493
|
+
/**
|
|
494
|
+
* Maintenance can open and update all locks within the site
|
|
495
|
+
*
|
|
496
|
+
* @generated from enum value: Maintenance = 2;
|
|
497
|
+
*/
|
|
498
|
+
Maintenance = 2,
|
|
499
|
+
|
|
500
|
+
/**
|
|
501
|
+
* Master can open all locks within the given site and requires no refresh
|
|
502
|
+
*
|
|
503
|
+
* @generated from enum value: Master = 3;
|
|
504
|
+
*/
|
|
505
|
+
Master = 3,
|
|
506
|
+
|
|
507
|
+
/**
|
|
508
|
+
* Nfc writer allows to write any credential within this site on cards & fobs
|
|
509
|
+
*
|
|
510
|
+
* @generated from enum value: NfcWriter = 4;
|
|
511
|
+
*/
|
|
512
|
+
NfcWriter = 4,
|
|
513
|
+
}
|
|
514
|
+
|
|
482
515
|
/**
|
|
483
516
|
* @generated from enum BlueAccessType
|
|
484
517
|
*/
|
|
@@ -1271,11 +1304,11 @@ export declare class BlueEvent extends Message<BlueEvent> {
|
|
|
1271
1304
|
eventInfo: number;
|
|
1272
1305
|
|
|
1273
1306
|
/**
|
|
1274
|
-
* Set if
|
|
1307
|
+
* Set if credential related
|
|
1275
1308
|
*
|
|
1276
|
-
* @generated from field: optional
|
|
1309
|
+
* @generated from field: optional BlueCredentialId credentialId = 6;
|
|
1277
1310
|
*/
|
|
1278
|
-
|
|
1311
|
+
credentialId?: BlueCredentialId;
|
|
1279
1312
|
|
|
1280
1313
|
/**
|
|
1281
1314
|
* Set if eventId =
|
package/cjs/BlueCore_pb.js
CHANGED
|
@@ -23,6 +23,7 @@ __export(BlueCore_pb_exports, {
|
|
|
23
23
|
BlueBleAdvertisementInfo: () => BlueBleAdvertisementInfo,
|
|
24
24
|
BlueBleManufacturerInfo: () => BlueBleManufacturerInfo,
|
|
25
25
|
BlueCredentialId: () => BlueCredentialId,
|
|
26
|
+
BlueCredentialType: () => BlueCredentialType,
|
|
26
27
|
BlueEvent: () => BlueEvent,
|
|
27
28
|
BlueEventId: () => BlueEventId,
|
|
28
29
|
BlueEventInfoAccess: () => BlueEventInfoAccess,
|
|
@@ -192,6 +193,15 @@ const BlueWeekday = import_protobuf.proto2.makeEnum(
|
|
|
192
193
|
{ no: 6, name: "Sunday" }
|
|
193
194
|
]
|
|
194
195
|
);
|
|
196
|
+
const BlueCredentialType = import_protobuf.proto2.makeEnum(
|
|
197
|
+
"BlueCredentialType",
|
|
198
|
+
[
|
|
199
|
+
{ no: 1, name: "Regular" },
|
|
200
|
+
{ no: 2, name: "Maintenance" },
|
|
201
|
+
{ no: 3, name: "Master" },
|
|
202
|
+
{ no: 4, name: "NfcWriter" }
|
|
203
|
+
]
|
|
204
|
+
);
|
|
195
205
|
const BlueAccessType = import_protobuf.proto2.makeEnum(
|
|
196
206
|
"BlueAccessType",
|
|
197
207
|
[
|
|
@@ -526,7 +536,7 @@ const BlueEvent = import_protobuf.proto2.makeMessageType(
|
|
|
526
536
|
T: 5
|
|
527
537
|
/* ScalarType.INT32 */
|
|
528
538
|
},
|
|
529
|
-
{ no: 6, name: "
|
|
539
|
+
{ no: 6, name: "credentialId", kind: "message", T: BlueCredentialId, opt: true },
|
|
530
540
|
{ no: 7, name: "command", kind: "scalar", T: 9, opt: true }
|
|
531
541
|
]
|
|
532
542
|
);
|
package/cjs/BlueLock_pb.d.ts
CHANGED
|
@@ -52,11 +52,11 @@ export declare class BlueLockConfig extends Message<BlueLockConfig> {
|
|
|
52
52
|
openScheduleByUser: boolean;
|
|
53
53
|
|
|
54
54
|
/**
|
|
55
|
-
*
|
|
55
|
+
* If set keeps the lock closed on federal vacation days
|
|
56
56
|
*
|
|
57
|
-
* @generated from field:
|
|
57
|
+
* @generated from field: required bool keepClosedOnHolidays = 20;
|
|
58
58
|
*/
|
|
59
|
-
|
|
59
|
+
keepClosedOnHolidays: boolean;
|
|
60
60
|
|
|
61
61
|
/**
|
|
62
62
|
* Default time in seconds to keep the lock open
|
package/cjs/BlueLock_pb.js
CHANGED
|
@@ -38,7 +38,13 @@ const BlueLockConfig = import_protobuf.proto2.makeMessageType(
|
|
|
38
38
|
() => [
|
|
39
39
|
{ no: 1, name: "openSchedules", kind: "message", T: import_BlueCore_pb.BlueLocalTimeSchedule, repeated: true },
|
|
40
40
|
{ no: 2, name: "openScheduleByUser", kind: "scalar", T: 8, default: false },
|
|
41
|
-
{
|
|
41
|
+
{
|
|
42
|
+
no: 20,
|
|
43
|
+
name: "keepClosedOnHolidays",
|
|
44
|
+
kind: "scalar",
|
|
45
|
+
T: 8
|
|
46
|
+
/* ScalarType.BOOL */
|
|
47
|
+
},
|
|
42
48
|
{ no: 21, name: "defaultOpenTimeSec", kind: "scalar", T: 13, default: 5 },
|
|
43
49
|
{ no: 22, name: "extendedOpenTimeSec", kind: "scalar", T: 13, default: 3600 }
|
|
44
50
|
]
|
package/cjs/BlueSDK_pb.d.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
|
7
7
|
import { Message, proto2 } from "@bufbuild/protobuf";
|
|
8
|
-
import type { BlueBleManufacturerInfo } from "./BlueCore_pb.js";
|
|
8
|
+
import type { BlueBleManufacturerInfo, BlueCredentialId, BlueCredentialType, BlueLocalTimestamp } from "./BlueCore_pb.js";
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* @generated from enum BlueDeviceType
|
|
@@ -195,3 +195,100 @@ export declare class BlueDeviceInfo extends Message<BlueDeviceInfo> {
|
|
|
195
195
|
static equals(a: BlueDeviceInfo | PlainMessage<BlueDeviceInfo> | undefined, b: BlueDeviceInfo | PlainMessage<BlueDeviceInfo> | undefined): boolean;
|
|
196
196
|
}
|
|
197
197
|
|
|
198
|
+
/**
|
|
199
|
+
* @generated from message BlueAccessCredential
|
|
200
|
+
*/
|
|
201
|
+
export declare class BlueAccessCredential extends Message<BlueAccessCredential> {
|
|
202
|
+
/**
|
|
203
|
+
* @generated from field: required BlueCredentialId credentialId = 1;
|
|
204
|
+
*/
|
|
205
|
+
credentialId?: BlueCredentialId;
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* @generated from field: required BlueCredentialType credentialType = 2;
|
|
209
|
+
*/
|
|
210
|
+
credentialType: BlueCredentialType;
|
|
211
|
+
|
|
212
|
+
/**
|
|
213
|
+
* @generated from field: optional BlueLocalTimestamp validFrom = 3;
|
|
214
|
+
*/
|
|
215
|
+
validFrom?: BlueLocalTimestamp;
|
|
216
|
+
|
|
217
|
+
/**
|
|
218
|
+
* @generated from field: optional BlueLocalTimestamp validTo = 4;
|
|
219
|
+
*/
|
|
220
|
+
validTo?: BlueLocalTimestamp;
|
|
221
|
+
|
|
222
|
+
/**
|
|
223
|
+
* @generated from field: required bytes privateKey = 5;
|
|
224
|
+
*/
|
|
225
|
+
privateKey: Uint8Array;
|
|
226
|
+
|
|
227
|
+
constructor(data?: PartialMessage<BlueAccessCredential>);
|
|
228
|
+
|
|
229
|
+
static readonly runtime: typeof proto2;
|
|
230
|
+
static readonly typeName = "BlueAccessCredential";
|
|
231
|
+
static readonly fields: FieldList;
|
|
232
|
+
|
|
233
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): BlueAccessCredential;
|
|
234
|
+
|
|
235
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): BlueAccessCredential;
|
|
236
|
+
|
|
237
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): BlueAccessCredential;
|
|
238
|
+
|
|
239
|
+
static equals(a: BlueAccessCredential | PlainMessage<BlueAccessCredential> | undefined, b: BlueAccessCredential | PlainMessage<BlueAccessCredential> | undefined): boolean;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
/**
|
|
243
|
+
* @generated from message BlueAccessDevice
|
|
244
|
+
*/
|
|
245
|
+
export declare class BlueAccessDevice extends Message<BlueAccessDevice> {
|
|
246
|
+
/**
|
|
247
|
+
* @generated from field: required string deviceId = 1;
|
|
248
|
+
*/
|
|
249
|
+
deviceId: string;
|
|
250
|
+
|
|
251
|
+
/**
|
|
252
|
+
* @generated from field: optional string name = 2;
|
|
253
|
+
*/
|
|
254
|
+
name?: string;
|
|
255
|
+
|
|
256
|
+
constructor(data?: PartialMessage<BlueAccessDevice>);
|
|
257
|
+
|
|
258
|
+
static readonly runtime: typeof proto2;
|
|
259
|
+
static readonly typeName = "BlueAccessDevice";
|
|
260
|
+
static readonly fields: FieldList;
|
|
261
|
+
|
|
262
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): BlueAccessDevice;
|
|
263
|
+
|
|
264
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): BlueAccessDevice;
|
|
265
|
+
|
|
266
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): BlueAccessDevice;
|
|
267
|
+
|
|
268
|
+
static equals(a: BlueAccessDevice | PlainMessage<BlueAccessDevice> | undefined, b: BlueAccessDevice | PlainMessage<BlueAccessDevice> | undefined): boolean;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
/**
|
|
272
|
+
* @generated from message BlueAccessDeviceList
|
|
273
|
+
*/
|
|
274
|
+
export declare class BlueAccessDeviceList extends Message<BlueAccessDeviceList> {
|
|
275
|
+
/**
|
|
276
|
+
* @generated from field: repeated BlueAccessDevice devices = 1;
|
|
277
|
+
*/
|
|
278
|
+
devices: BlueAccessDevice[];
|
|
279
|
+
|
|
280
|
+
constructor(data?: PartialMessage<BlueAccessDeviceList>);
|
|
281
|
+
|
|
282
|
+
static readonly runtime: typeof proto2;
|
|
283
|
+
static readonly typeName = "BlueAccessDeviceList";
|
|
284
|
+
static readonly fields: FieldList;
|
|
285
|
+
|
|
286
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): BlueAccessDeviceList;
|
|
287
|
+
|
|
288
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): BlueAccessDeviceList;
|
|
289
|
+
|
|
290
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): BlueAccessDeviceList;
|
|
291
|
+
|
|
292
|
+
static equals(a: BlueAccessDeviceList | PlainMessage<BlueAccessDeviceList> | undefined, b: BlueAccessDeviceList | PlainMessage<BlueAccessDeviceList> | undefined): boolean;
|
|
293
|
+
}
|
|
294
|
+
|
package/cjs/BlueSDK_pb.js
CHANGED
|
@@ -17,6 +17,9 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
17
17
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
18
|
var BlueSDK_pb_exports = {};
|
|
19
19
|
__export(BlueSDK_pb_exports, {
|
|
20
|
+
BlueAccessCredential: () => BlueAccessCredential,
|
|
21
|
+
BlueAccessDevice: () => BlueAccessDevice,
|
|
22
|
+
BlueAccessDeviceList: () => BlueAccessDeviceList,
|
|
20
23
|
BlueDeviceDetailsBluetooth: () => BlueDeviceDetailsBluetooth,
|
|
21
24
|
BlueDeviceDetailsUWB: () => BlueDeviceDetailsUWB,
|
|
22
25
|
BlueDeviceInfo: () => BlueDeviceInfo,
|
|
@@ -107,3 +110,38 @@ const BlueDeviceInfo = import_protobuf.proto2.makeMessageType(
|
|
|
107
110
|
{ no: 6, name: "uwb", kind: "message", T: BlueDeviceDetailsUWB, oneof: "details" }
|
|
108
111
|
]
|
|
109
112
|
);
|
|
113
|
+
const BlueAccessCredential = import_protobuf.proto2.makeMessageType(
|
|
114
|
+
"BlueAccessCredential",
|
|
115
|
+
() => [
|
|
116
|
+
{ no: 1, name: "credentialId", kind: "message", T: import_BlueCore_pb.BlueCredentialId },
|
|
117
|
+
{ no: 2, name: "credentialType", kind: "enum", T: import_protobuf.proto2.getEnumType(import_BlueCore_pb.BlueCredentialType) },
|
|
118
|
+
{ no: 3, name: "validFrom", kind: "message", T: import_BlueCore_pb.BlueLocalTimestamp, opt: true },
|
|
119
|
+
{ no: 4, name: "validTo", kind: "message", T: import_BlueCore_pb.BlueLocalTimestamp, opt: true },
|
|
120
|
+
{
|
|
121
|
+
no: 5,
|
|
122
|
+
name: "privateKey",
|
|
123
|
+
kind: "scalar",
|
|
124
|
+
T: 12
|
|
125
|
+
/* ScalarType.BYTES */
|
|
126
|
+
}
|
|
127
|
+
]
|
|
128
|
+
);
|
|
129
|
+
const BlueAccessDevice = import_protobuf.proto2.makeMessageType(
|
|
130
|
+
"BlueAccessDevice",
|
|
131
|
+
() => [
|
|
132
|
+
{
|
|
133
|
+
no: 1,
|
|
134
|
+
name: "deviceId",
|
|
135
|
+
kind: "scalar",
|
|
136
|
+
T: 9
|
|
137
|
+
/* ScalarType.STRING */
|
|
138
|
+
},
|
|
139
|
+
{ no: 2, name: "name", kind: "scalar", T: 9, opt: true }
|
|
140
|
+
]
|
|
141
|
+
);
|
|
142
|
+
const BlueAccessDeviceList = import_protobuf.proto2.makeMessageType(
|
|
143
|
+
"BlueAccessDeviceList",
|
|
144
|
+
() => [
|
|
145
|
+
{ no: 1, name: "devices", kind: "message", T: BlueAccessDevice, repeated: true }
|
|
146
|
+
]
|
|
147
|
+
);
|
package/cjs/BlueSystem_pb.d.ts
CHANGED
|
@@ -622,35 +622,10 @@ export declare class BlueSystemStatus extends Message<BlueSystemStatus> {
|
|
|
622
622
|
*/
|
|
623
623
|
settings?: BlueSystemSettings;
|
|
624
624
|
|
|
625
|
-
/**
|
|
626
|
-
* @generated from field: required uint32 blacklistEntriesCount = 9;
|
|
627
|
-
*/
|
|
628
|
-
blacklistEntriesCount: number;
|
|
629
|
-
|
|
630
|
-
/**
|
|
631
|
-
* @generated from field: required uint32 eventLogEntriesCount = 10;
|
|
632
|
-
*/
|
|
633
|
-
eventLogEntriesCount: number;
|
|
634
|
-
|
|
635
|
-
/**
|
|
636
|
-
* @generated from field: required uint32 eventLogSequenceId = 11;
|
|
637
|
-
*/
|
|
638
|
-
eventLogSequenceId: number;
|
|
639
|
-
|
|
640
|
-
/**
|
|
641
|
-
* @generated from field: required uint32 systemLogEntriesCount = 12;
|
|
642
|
-
*/
|
|
643
|
-
systemLogEntriesCount: number;
|
|
644
|
-
|
|
645
|
-
/**
|
|
646
|
-
* @generated from field: required uint32 systemLogSequenceId = 13;
|
|
647
|
-
*/
|
|
648
|
-
systemLogSequenceId: number;
|
|
649
|
-
|
|
650
625
|
/**
|
|
651
626
|
* -- Custom
|
|
652
627
|
*
|
|
653
|
-
* @generated from field: optional BlueLockStatus lock =
|
|
628
|
+
* @generated from field: optional BlueLockStatus lock = 9;
|
|
654
629
|
*/
|
|
655
630
|
lock?: BlueLockStatus;
|
|
656
631
|
|
package/cjs/BlueSystem_pb.js
CHANGED
|
@@ -264,42 +264,7 @@ const BlueSystemStatus = import_protobuf.proto2.makeMessageType(
|
|
|
264
264
|
},
|
|
265
265
|
{ no: 7, name: "localTime", kind: "message", T: import_BlueCore_pb.BlueLocalTimestamp },
|
|
266
266
|
{ no: 8, name: "settings", kind: "message", T: BlueSystemSettings },
|
|
267
|
-
{
|
|
268
|
-
no: 9,
|
|
269
|
-
name: "blacklistEntriesCount",
|
|
270
|
-
kind: "scalar",
|
|
271
|
-
T: 13
|
|
272
|
-
/* ScalarType.UINT32 */
|
|
273
|
-
},
|
|
274
|
-
{
|
|
275
|
-
no: 10,
|
|
276
|
-
name: "eventLogEntriesCount",
|
|
277
|
-
kind: "scalar",
|
|
278
|
-
T: 13
|
|
279
|
-
/* ScalarType.UINT32 */
|
|
280
|
-
},
|
|
281
|
-
{
|
|
282
|
-
no: 11,
|
|
283
|
-
name: "eventLogSequenceId",
|
|
284
|
-
kind: "scalar",
|
|
285
|
-
T: 13
|
|
286
|
-
/* ScalarType.UINT32 */
|
|
287
|
-
},
|
|
288
|
-
{
|
|
289
|
-
no: 12,
|
|
290
|
-
name: "systemLogEntriesCount",
|
|
291
|
-
kind: "scalar",
|
|
292
|
-
T: 13
|
|
293
|
-
/* ScalarType.UINT32 */
|
|
294
|
-
},
|
|
295
|
-
{
|
|
296
|
-
no: 13,
|
|
297
|
-
name: "systemLogSequenceId",
|
|
298
|
-
kind: "scalar",
|
|
299
|
-
T: 13
|
|
300
|
-
/* ScalarType.UINT32 */
|
|
301
|
-
},
|
|
302
|
-
{ no: 14, name: "lock", kind: "message", T: import_BlueLock_pb.BlueLockStatus, opt: true }
|
|
267
|
+
{ no: 9, name: "lock", kind: "message", T: import_BlueLock_pb.BlueLockStatus, opt: true }
|
|
303
268
|
]
|
|
304
269
|
);
|
|
305
270
|
const BlueSystemLogQuery = import_protobuf.proto2.makeMessageType(
|
package/es/BlueCore_pb.d.ts
CHANGED
|
@@ -479,6 +479,39 @@ export declare enum BlueWeekday {
|
|
|
479
479
|
Sunday = 6,
|
|
480
480
|
}
|
|
481
481
|
|
|
482
|
+
/**
|
|
483
|
+
* @generated from enum BlueCredentialType
|
|
484
|
+
*/
|
|
485
|
+
export declare enum BlueCredentialType {
|
|
486
|
+
/**
|
|
487
|
+
* Regular credential can only open / enter
|
|
488
|
+
*
|
|
489
|
+
* @generated from enum value: Regular = 1;
|
|
490
|
+
*/
|
|
491
|
+
Regular = 1,
|
|
492
|
+
|
|
493
|
+
/**
|
|
494
|
+
* Maintenance can open and update all locks within the site
|
|
495
|
+
*
|
|
496
|
+
* @generated from enum value: Maintenance = 2;
|
|
497
|
+
*/
|
|
498
|
+
Maintenance = 2,
|
|
499
|
+
|
|
500
|
+
/**
|
|
501
|
+
* Master can open all locks within the given site and requires no refresh
|
|
502
|
+
*
|
|
503
|
+
* @generated from enum value: Master = 3;
|
|
504
|
+
*/
|
|
505
|
+
Master = 3,
|
|
506
|
+
|
|
507
|
+
/**
|
|
508
|
+
* Nfc writer allows to write any credential within this site on cards & fobs
|
|
509
|
+
*
|
|
510
|
+
* @generated from enum value: NfcWriter = 4;
|
|
511
|
+
*/
|
|
512
|
+
NfcWriter = 4,
|
|
513
|
+
}
|
|
514
|
+
|
|
482
515
|
/**
|
|
483
516
|
* @generated from enum BlueAccessType
|
|
484
517
|
*/
|
|
@@ -1271,11 +1304,11 @@ export declare class BlueEvent extends Message<BlueEvent> {
|
|
|
1271
1304
|
eventInfo: number;
|
|
1272
1305
|
|
|
1273
1306
|
/**
|
|
1274
|
-
* Set if
|
|
1307
|
+
* Set if credential related
|
|
1275
1308
|
*
|
|
1276
|
-
* @generated from field: optional
|
|
1309
|
+
* @generated from field: optional BlueCredentialId credentialId = 6;
|
|
1277
1310
|
*/
|
|
1278
|
-
|
|
1311
|
+
credentialId?: BlueCredentialId;
|
|
1279
1312
|
|
|
1280
1313
|
/**
|
|
1281
1314
|
* Set if eventId =
|
package/es/BlueCore_pb.js
CHANGED
|
@@ -122,6 +122,19 @@ export const BlueWeekday = proto2.makeEnum(
|
|
|
122
122
|
],
|
|
123
123
|
);
|
|
124
124
|
|
|
125
|
+
/**
|
|
126
|
+
* @generated from enum BlueCredentialType
|
|
127
|
+
*/
|
|
128
|
+
export const BlueCredentialType = proto2.makeEnum(
|
|
129
|
+
"BlueCredentialType",
|
|
130
|
+
[
|
|
131
|
+
{no: 1, name: "Regular"},
|
|
132
|
+
{no: 2, name: "Maintenance"},
|
|
133
|
+
{no: 3, name: "Master"},
|
|
134
|
+
{no: 4, name: "NfcWriter"},
|
|
135
|
+
],
|
|
136
|
+
);
|
|
137
|
+
|
|
125
138
|
/**
|
|
126
139
|
* @generated from enum BlueAccessType
|
|
127
140
|
*/
|
|
@@ -413,7 +426,7 @@ export const BlueEvent = proto2.makeMessageType(
|
|
|
413
426
|
{ no: 2, name: "eventTime", kind: "message", T: BlueLocalTimestamp },
|
|
414
427
|
{ no: 4, name: "eventId", kind: "enum", T: proto2.getEnumType(BlueEventId) },
|
|
415
428
|
{ no: 5, name: "eventInfo", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
416
|
-
{ no: 6, name: "
|
|
429
|
+
{ no: 6, name: "credentialId", kind: "message", T: BlueCredentialId, opt: true },
|
|
417
430
|
{ no: 7, name: "command", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
418
431
|
],
|
|
419
432
|
);
|
package/es/BlueLock_pb.d.ts
CHANGED
|
@@ -52,11 +52,11 @@ export declare class BlueLockConfig extends Message<BlueLockConfig> {
|
|
|
52
52
|
openScheduleByUser: boolean;
|
|
53
53
|
|
|
54
54
|
/**
|
|
55
|
-
*
|
|
55
|
+
* If set keeps the lock closed on federal vacation days
|
|
56
56
|
*
|
|
57
|
-
* @generated from field:
|
|
57
|
+
* @generated from field: required bool keepClosedOnHolidays = 20;
|
|
58
58
|
*/
|
|
59
|
-
|
|
59
|
+
keepClosedOnHolidays: boolean;
|
|
60
60
|
|
|
61
61
|
/**
|
|
62
62
|
* Default time in seconds to keep the lock open
|
package/es/BlueLock_pb.js
CHANGED
|
@@ -27,7 +27,7 @@ export const BlueLockConfig = proto2.makeMessageType(
|
|
|
27
27
|
() => [
|
|
28
28
|
{ no: 1, name: "openSchedules", kind: "message", T: BlueLocalTimeSchedule, repeated: true },
|
|
29
29
|
{ no: 2, name: "openScheduleByUser", kind: "scalar", T: 8 /* ScalarType.BOOL */, default: false },
|
|
30
|
-
{ no: 20, name: "
|
|
30
|
+
{ no: 20, name: "keepClosedOnHolidays", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
31
31
|
{ no: 21, name: "defaultOpenTimeSec", kind: "scalar", T: 13 /* ScalarType.UINT32 */, default: 5 },
|
|
32
32
|
{ no: 22, name: "extendedOpenTimeSec", kind: "scalar", T: 13 /* ScalarType.UINT32 */, default: 3600 },
|
|
33
33
|
],
|
package/es/BlueSDK_pb.d.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
|
7
7
|
import { Message, proto2 } from "@bufbuild/protobuf";
|
|
8
|
-
import type { BlueBleManufacturerInfo } from "./BlueCore_pb.js";
|
|
8
|
+
import type { BlueBleManufacturerInfo, BlueCredentialId, BlueCredentialType, BlueLocalTimestamp } from "./BlueCore_pb.js";
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* @generated from enum BlueDeviceType
|
|
@@ -195,3 +195,100 @@ export declare class BlueDeviceInfo extends Message<BlueDeviceInfo> {
|
|
|
195
195
|
static equals(a: BlueDeviceInfo | PlainMessage<BlueDeviceInfo> | undefined, b: BlueDeviceInfo | PlainMessage<BlueDeviceInfo> | undefined): boolean;
|
|
196
196
|
}
|
|
197
197
|
|
|
198
|
+
/**
|
|
199
|
+
* @generated from message BlueAccessCredential
|
|
200
|
+
*/
|
|
201
|
+
export declare class BlueAccessCredential extends Message<BlueAccessCredential> {
|
|
202
|
+
/**
|
|
203
|
+
* @generated from field: required BlueCredentialId credentialId = 1;
|
|
204
|
+
*/
|
|
205
|
+
credentialId?: BlueCredentialId;
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* @generated from field: required BlueCredentialType credentialType = 2;
|
|
209
|
+
*/
|
|
210
|
+
credentialType: BlueCredentialType;
|
|
211
|
+
|
|
212
|
+
/**
|
|
213
|
+
* @generated from field: optional BlueLocalTimestamp validFrom = 3;
|
|
214
|
+
*/
|
|
215
|
+
validFrom?: BlueLocalTimestamp;
|
|
216
|
+
|
|
217
|
+
/**
|
|
218
|
+
* @generated from field: optional BlueLocalTimestamp validTo = 4;
|
|
219
|
+
*/
|
|
220
|
+
validTo?: BlueLocalTimestamp;
|
|
221
|
+
|
|
222
|
+
/**
|
|
223
|
+
* @generated from field: required bytes privateKey = 5;
|
|
224
|
+
*/
|
|
225
|
+
privateKey: Uint8Array;
|
|
226
|
+
|
|
227
|
+
constructor(data?: PartialMessage<BlueAccessCredential>);
|
|
228
|
+
|
|
229
|
+
static readonly runtime: typeof proto2;
|
|
230
|
+
static readonly typeName = "BlueAccessCredential";
|
|
231
|
+
static readonly fields: FieldList;
|
|
232
|
+
|
|
233
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): BlueAccessCredential;
|
|
234
|
+
|
|
235
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): BlueAccessCredential;
|
|
236
|
+
|
|
237
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): BlueAccessCredential;
|
|
238
|
+
|
|
239
|
+
static equals(a: BlueAccessCredential | PlainMessage<BlueAccessCredential> | undefined, b: BlueAccessCredential | PlainMessage<BlueAccessCredential> | undefined): boolean;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
/**
|
|
243
|
+
* @generated from message BlueAccessDevice
|
|
244
|
+
*/
|
|
245
|
+
export declare class BlueAccessDevice extends Message<BlueAccessDevice> {
|
|
246
|
+
/**
|
|
247
|
+
* @generated from field: required string deviceId = 1;
|
|
248
|
+
*/
|
|
249
|
+
deviceId: string;
|
|
250
|
+
|
|
251
|
+
/**
|
|
252
|
+
* @generated from field: optional string name = 2;
|
|
253
|
+
*/
|
|
254
|
+
name?: string;
|
|
255
|
+
|
|
256
|
+
constructor(data?: PartialMessage<BlueAccessDevice>);
|
|
257
|
+
|
|
258
|
+
static readonly runtime: typeof proto2;
|
|
259
|
+
static readonly typeName = "BlueAccessDevice";
|
|
260
|
+
static readonly fields: FieldList;
|
|
261
|
+
|
|
262
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): BlueAccessDevice;
|
|
263
|
+
|
|
264
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): BlueAccessDevice;
|
|
265
|
+
|
|
266
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): BlueAccessDevice;
|
|
267
|
+
|
|
268
|
+
static equals(a: BlueAccessDevice | PlainMessage<BlueAccessDevice> | undefined, b: BlueAccessDevice | PlainMessage<BlueAccessDevice> | undefined): boolean;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
/**
|
|
272
|
+
* @generated from message BlueAccessDeviceList
|
|
273
|
+
*/
|
|
274
|
+
export declare class BlueAccessDeviceList extends Message<BlueAccessDeviceList> {
|
|
275
|
+
/**
|
|
276
|
+
* @generated from field: repeated BlueAccessDevice devices = 1;
|
|
277
|
+
*/
|
|
278
|
+
devices: BlueAccessDevice[];
|
|
279
|
+
|
|
280
|
+
constructor(data?: PartialMessage<BlueAccessDeviceList>);
|
|
281
|
+
|
|
282
|
+
static readonly runtime: typeof proto2;
|
|
283
|
+
static readonly typeName = "BlueAccessDeviceList";
|
|
284
|
+
static readonly fields: FieldList;
|
|
285
|
+
|
|
286
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): BlueAccessDeviceList;
|
|
287
|
+
|
|
288
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): BlueAccessDeviceList;
|
|
289
|
+
|
|
290
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): BlueAccessDeviceList;
|
|
291
|
+
|
|
292
|
+
static equals(a: BlueAccessDeviceList | PlainMessage<BlueAccessDeviceList> | undefined, b: BlueAccessDeviceList | PlainMessage<BlueAccessDeviceList> | undefined): boolean;
|
|
293
|
+
}
|
|
294
|
+
|