@blueid/access-cli 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.
|
@@ -57,7 +57,7 @@ export default async ({ vendorIdentity, hardwareType, hardwareVersion, hardwareS
|
|
|
57
57
|
throw new Error(`Failed to create signature with: ${e.message}`)
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
-
const response = await apiPost('/access/
|
|
60
|
+
const response = await apiPost('/access/registerDevice', payload)
|
|
61
61
|
|
|
62
62
|
const {
|
|
63
63
|
deviceId,
|
package/lib/proto/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/lib/proto/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/lib/proto/BlueSDK_pb.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
// @ts-nocheck
|
|
5
5
|
|
|
6
6
|
import { proto2 } from "@bufbuild/protobuf";
|
|
7
|
-
import { BlueBleManufacturerInfo } from "./BlueCore_pb.js";
|
|
7
|
+
import { BlueBleManufacturerInfo, BlueCredentialId, BlueCredentialType, BlueLocalTimestamp } from "./BlueCore_pb.js";
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* @generated from enum BlueDeviceType
|
|
@@ -71,3 +71,38 @@ export const BlueDeviceInfo = proto2.makeMessageType(
|
|
|
71
71
|
],
|
|
72
72
|
);
|
|
73
73
|
|
|
74
|
+
/**
|
|
75
|
+
* @generated from message BlueAccessCredential
|
|
76
|
+
*/
|
|
77
|
+
export const BlueAccessCredential = proto2.makeMessageType(
|
|
78
|
+
"BlueAccessCredential",
|
|
79
|
+
() => [
|
|
80
|
+
{ no: 1, name: "credentialId", kind: "message", T: BlueCredentialId },
|
|
81
|
+
{ no: 2, name: "credentialType", kind: "enum", T: proto2.getEnumType(BlueCredentialType) },
|
|
82
|
+
{ no: 3, name: "validFrom", kind: "message", T: BlueLocalTimestamp, opt: true },
|
|
83
|
+
{ no: 4, name: "validTo", kind: "message", T: BlueLocalTimestamp, opt: true },
|
|
84
|
+
{ no: 5, name: "privateKey", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
|
|
85
|
+
],
|
|
86
|
+
);
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* @generated from message BlueAccessDevice
|
|
90
|
+
*/
|
|
91
|
+
export const BlueAccessDevice = proto2.makeMessageType(
|
|
92
|
+
"BlueAccessDevice",
|
|
93
|
+
() => [
|
|
94
|
+
{ no: 1, name: "deviceId", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
95
|
+
{ no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
96
|
+
],
|
|
97
|
+
);
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* @generated from message BlueAccessDeviceList
|
|
101
|
+
*/
|
|
102
|
+
export const BlueAccessDeviceList = proto2.makeMessageType(
|
|
103
|
+
"BlueAccessDeviceList",
|
|
104
|
+
() => [
|
|
105
|
+
{ no: 1, name: "devices", kind: "message", T: BlueAccessDevice, repeated: true },
|
|
106
|
+
],
|
|
107
|
+
);
|
|
108
|
+
|
|
@@ -180,12 +180,7 @@ export const BlueSystemStatus = proto2.makeMessageType(
|
|
|
180
180
|
{ no: 6, name: "applicationVersion", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
181
181
|
{ no: 7, name: "localTime", kind: "message", T: BlueLocalTimestamp },
|
|
182
182
|
{ no: 8, name: "settings", kind: "message", T: BlueSystemSettings },
|
|
183
|
-
{ no: 9, name: "
|
|
184
|
-
{ no: 10, name: "eventLogEntriesCount", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
185
|
-
{ no: 11, name: "eventLogSequenceId", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
186
|
-
{ no: 12, name: "systemLogEntriesCount", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
187
|
-
{ no: 13, name: "systemLogSequenceId", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
188
|
-
{ no: 14, name: "lock", kind: "message", T: BlueLockStatus, opt: true },
|
|
183
|
+
{ no: 9, name: "lock", kind: "message", T: BlueLockStatus, opt: true },
|
|
189
184
|
],
|
|
190
185
|
);
|
|
191
186
|
|