@blueid/access-proto 12.8.0 → 12.10.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 CHANGED
@@ -231,11 +231,6 @@ message BlueLocalTimeperiod {
231
231
  required uint32 minutesTo = 4 [ (nanopb).int_size = IS_8 ];
232
232
  }
233
233
 
234
- //message BlueTransponderId {
235
- // required string id = 1 [ (nanopb).max_length = 21 ]; // Most NFC UIDs are 4, 7, or 10 bytes (not 15). When converted to hex, each byte becomes 2 hex characters → maximum 20 characters + null = 21 bytes
236
- //}
237
-
238
-
239
234
  enum BlueTimeUnit {
240
235
  option (nanopb_enumopt).packed_enum = true;
241
236
 
@@ -430,7 +425,6 @@ enum BlueEventInfoSystem {
430
425
 
431
426
  SystemRestart = 0x01;
432
427
  SystemConfigured = 0x2;
433
- UnknownTransponderDetected= 0x3;
434
428
 
435
429
  // -- Oss So events
436
430
 
@@ -487,9 +481,6 @@ message BlueEvent {
487
481
 
488
482
  // Set if eventId =
489
483
  optional string command = 6 [ (nanopb).max_length = 8 ];
490
-
491
- // Set if credential related
492
- // optional BlueTransponderId transponderId = 7;
493
484
  }
494
485
 
495
486
  ///////////////////////////////////////////////////////////////////////
@@ -513,7 +504,7 @@ message BlueSPTokenCommand {
513
504
  required BlueLocalTimestamp validityEnd = 3;
514
505
  required string command = 4 [ (nanopb).max_length = 8 ];
515
506
  required bytes data = 5
516
- [ (nanopb).max_size = 8216 ]; // we'll add 256b for add. data. The normal data for UUZ device would be 1792 however Nexus device will use 8216 buffer
507
+ [ (nanopb).max_size = 1792 ]; // we'll add 256b for add. data
517
508
  }
518
509
 
519
510
  message BlueSPToken {
@@ -531,6 +522,43 @@ message BlueSPResult {
531
522
  [ (nanopb).max_size = 1792 ]; // we'll add 256b for add. data
532
523
  }
533
524
 
525
+ ///////////////////////////////////////////////////////////////////////
526
+ // Secure Protocol over WebSocket
527
+ ///////////////////////////////////////////////////////////////////////
528
+
529
+ message BlueWebSPHandshake {
530
+ required bytes salt = 1
531
+ [ (nanopb).max_size = 16, (nanopb).fixed_length = true ];
532
+ }
533
+
534
+ message BlueWebSPHandshakeReply {
535
+ required string deviceId = 1 [ (nanopb).max_length = 8 ];
536
+ required bytes signature = 2 [ (nanopb).max_size = 74 ];
537
+ }
538
+
539
+ message BlueWebSPMessage {
540
+ required uint32 transactionId = 1 [ (nanopb).int_size = IS_8 ];
541
+ required BlueSPResult payload = 2;
542
+ }
543
+
544
+ // Message sent by the server to the device
545
+ message BlueWebSPServerMessage {
546
+ oneof payload {
547
+ BlueWebSPHandshake handshake = 2;
548
+ BlueSPTokenCommand command = 3;
549
+ BlueOssSoMobile ossSo = 4;
550
+ BlueOssSidMobile ossSid = 5;
551
+ }
552
+ }
553
+
554
+ message BlueWebSPClientMessage {
555
+ // TODO: payload
556
+ }
557
+
558
+ message BlueWebSPStatusMessage {
559
+ required BlueReturnCode status = 1;
560
+ }
561
+
534
562
 
535
563
  ///////////////////////////////////////////////////////////////////////
536
564
  // Oss shared types
@@ -972,4 +1000,4 @@ message _BlueTestEncodeDecode {
972
1000
  required string hardware_name = 2 [ (nanopb).max_length = 32 ];
973
1001
  required int32 hardware_version = 3;
974
1002
  required int32 application_version = 4;
975
- }
1003
+ }
package/BlueSystem.proto CHANGED
@@ -140,9 +140,6 @@ message BlueOssConfig {
140
140
  // The mifare application id for the oss offline application, default is the
141
141
  // oss so default aid. A value of 0 disables Oss So Mifare support.
142
142
  required uint32 soMifareAid = 8 [ default = 16076800 ];
143
-
144
- // The card will request to refresh if the existing days passed. It can become required after stable
145
- optional uint32 minRefreshDays = 9 [ default = 5, (nanopb).int_size = IS_8 ];
146
143
  }
147
144
 
148
145
  message BlueSystemAVRInfo {
@@ -230,15 +227,6 @@ message BlueSystemStatus {
230
227
  optional uint32 applicationVersionTest = 10;
231
228
  }
232
229
 
233
- enum BlueNetworkType {
234
- option (nanopb_enumopt).packed_enum = true;
235
-
236
- None = 1;
237
- Ethernet = 2;
238
- Wifi = 3;
239
- Gsm = 4;
240
- }
241
-
242
230
  ///////////////////////////////////////////////////////////////////////
243
231
  // System Log
244
232
  ///////////////////////////////////////////////////////////////////////
@@ -293,4 +281,4 @@ message BlueEventLogResult {
293
281
 
294
282
  message BlueBlacklistEntries {
295
283
  repeated BlueBlacklistEntry entries = 1 [ (nanopb).max_count = 75 ];
296
- }
284
+ }
@@ -981,11 +981,6 @@ export declare enum BlueEventInfoSystem {
981
981
  * @generated from enum value: SystemConfigured = 2;
982
982
  */
983
983
  SystemConfigured = 2,
984
-
985
- /**
986
- * @generated from enum value: UnknownTransponderDetected = 3;
987
- */
988
- UnknownTransponderDetected = 3,
989
984
  }
990
985
 
991
986
  /**
@@ -1658,7 +1653,7 @@ export declare class BlueSPTokenCommand extends Message<BlueSPTokenCommand> {
1658
1653
  command: string;
1659
1654
 
1660
1655
  /**
1661
- * we'll add 256b for add. data. The normal data for UUZ device would be 1792 however Nexus device will use 8216 buffer
1656
+ * we'll add 256b for add. data
1662
1657
  *
1663
1658
  * @generated from field: required bytes data = 5;
1664
1659
  */
@@ -1752,6 +1747,183 @@ export declare class BlueSPResult extends Message<BlueSPResult> {
1752
1747
  static equals(a: BlueSPResult | PlainMessage<BlueSPResult> | undefined, b: BlueSPResult | PlainMessage<BlueSPResult> | undefined): boolean;
1753
1748
  }
1754
1749
 
1750
+ /**
1751
+ * @generated from message BlueWebSPHandshake
1752
+ */
1753
+ export declare class BlueWebSPHandshake extends Message<BlueWebSPHandshake> {
1754
+ /**
1755
+ * @generated from field: required bytes salt = 1;
1756
+ */
1757
+ salt: Uint8Array;
1758
+
1759
+ constructor(data?: PartialMessage<BlueWebSPHandshake>);
1760
+
1761
+ static readonly runtime: typeof proto2;
1762
+ static readonly typeName = "BlueWebSPHandshake";
1763
+ static readonly fields: FieldList;
1764
+
1765
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): BlueWebSPHandshake;
1766
+
1767
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): BlueWebSPHandshake;
1768
+
1769
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): BlueWebSPHandshake;
1770
+
1771
+ static equals(a: BlueWebSPHandshake | PlainMessage<BlueWebSPHandshake> | undefined, b: BlueWebSPHandshake | PlainMessage<BlueWebSPHandshake> | undefined): boolean;
1772
+ }
1773
+
1774
+ /**
1775
+ * @generated from message BlueWebSPHandshakeReply
1776
+ */
1777
+ export declare class BlueWebSPHandshakeReply extends Message<BlueWebSPHandshakeReply> {
1778
+ /**
1779
+ * @generated from field: required string deviceId = 1;
1780
+ */
1781
+ deviceId: string;
1782
+
1783
+ /**
1784
+ * @generated from field: required bytes signature = 2;
1785
+ */
1786
+ signature: Uint8Array;
1787
+
1788
+ constructor(data?: PartialMessage<BlueWebSPHandshakeReply>);
1789
+
1790
+ static readonly runtime: typeof proto2;
1791
+ static readonly typeName = "BlueWebSPHandshakeReply";
1792
+ static readonly fields: FieldList;
1793
+
1794
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): BlueWebSPHandshakeReply;
1795
+
1796
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): BlueWebSPHandshakeReply;
1797
+
1798
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): BlueWebSPHandshakeReply;
1799
+
1800
+ static equals(a: BlueWebSPHandshakeReply | PlainMessage<BlueWebSPHandshakeReply> | undefined, b: BlueWebSPHandshakeReply | PlainMessage<BlueWebSPHandshakeReply> | undefined): boolean;
1801
+ }
1802
+
1803
+ /**
1804
+ * @generated from message BlueWebSPMessage
1805
+ */
1806
+ export declare class BlueWebSPMessage extends Message<BlueWebSPMessage> {
1807
+ /**
1808
+ * @generated from field: required uint32 transactionId = 1;
1809
+ */
1810
+ transactionId: number;
1811
+
1812
+ /**
1813
+ * @generated from field: required BlueSPResult payload = 2;
1814
+ */
1815
+ payload?: BlueSPResult;
1816
+
1817
+ constructor(data?: PartialMessage<BlueWebSPMessage>);
1818
+
1819
+ static readonly runtime: typeof proto2;
1820
+ static readonly typeName = "BlueWebSPMessage";
1821
+ static readonly fields: FieldList;
1822
+
1823
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): BlueWebSPMessage;
1824
+
1825
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): BlueWebSPMessage;
1826
+
1827
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): BlueWebSPMessage;
1828
+
1829
+ static equals(a: BlueWebSPMessage | PlainMessage<BlueWebSPMessage> | undefined, b: BlueWebSPMessage | PlainMessage<BlueWebSPMessage> | undefined): boolean;
1830
+ }
1831
+
1832
+ /**
1833
+ * Message sent by the server to the device
1834
+ *
1835
+ * @generated from message BlueWebSPServerMessage
1836
+ */
1837
+ export declare class BlueWebSPServerMessage extends Message<BlueWebSPServerMessage> {
1838
+ /**
1839
+ * @generated from oneof BlueWebSPServerMessage.payload
1840
+ */
1841
+ payload: {
1842
+ /**
1843
+ * @generated from field: BlueWebSPHandshake handshake = 2;
1844
+ */
1845
+ value: BlueWebSPHandshake;
1846
+ case: "handshake";
1847
+ } | {
1848
+ /**
1849
+ * @generated from field: BlueSPTokenCommand command = 3;
1850
+ */
1851
+ value: BlueSPTokenCommand;
1852
+ case: "command";
1853
+ } | {
1854
+ /**
1855
+ * @generated from field: BlueOssSoMobile ossSo = 4;
1856
+ */
1857
+ value: BlueOssSoMobile;
1858
+ case: "ossSo";
1859
+ } | {
1860
+ /**
1861
+ * @generated from field: BlueOssSidMobile ossSid = 5;
1862
+ */
1863
+ value: BlueOssSidMobile;
1864
+ case: "ossSid";
1865
+ } | { case: undefined; value?: undefined };
1866
+
1867
+ constructor(data?: PartialMessage<BlueWebSPServerMessage>);
1868
+
1869
+ static readonly runtime: typeof proto2;
1870
+ static readonly typeName = "BlueWebSPServerMessage";
1871
+ static readonly fields: FieldList;
1872
+
1873
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): BlueWebSPServerMessage;
1874
+
1875
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): BlueWebSPServerMessage;
1876
+
1877
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): BlueWebSPServerMessage;
1878
+
1879
+ static equals(a: BlueWebSPServerMessage | PlainMessage<BlueWebSPServerMessage> | undefined, b: BlueWebSPServerMessage | PlainMessage<BlueWebSPServerMessage> | undefined): boolean;
1880
+ }
1881
+
1882
+ /**
1883
+ * TODO: payload
1884
+ *
1885
+ * @generated from message BlueWebSPClientMessage
1886
+ */
1887
+ export declare class BlueWebSPClientMessage extends Message<BlueWebSPClientMessage> {
1888
+ constructor(data?: PartialMessage<BlueWebSPClientMessage>);
1889
+
1890
+ static readonly runtime: typeof proto2;
1891
+ static readonly typeName = "BlueWebSPClientMessage";
1892
+ static readonly fields: FieldList;
1893
+
1894
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): BlueWebSPClientMessage;
1895
+
1896
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): BlueWebSPClientMessage;
1897
+
1898
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): BlueWebSPClientMessage;
1899
+
1900
+ static equals(a: BlueWebSPClientMessage | PlainMessage<BlueWebSPClientMessage> | undefined, b: BlueWebSPClientMessage | PlainMessage<BlueWebSPClientMessage> | undefined): boolean;
1901
+ }
1902
+
1903
+ /**
1904
+ * @generated from message BlueWebSPStatusMessage
1905
+ */
1906
+ export declare class BlueWebSPStatusMessage extends Message<BlueWebSPStatusMessage> {
1907
+ /**
1908
+ * @generated from field: required BlueReturnCode status = 1;
1909
+ */
1910
+ status: BlueReturnCode;
1911
+
1912
+ constructor(data?: PartialMessage<BlueWebSPStatusMessage>);
1913
+
1914
+ static readonly runtime: typeof proto2;
1915
+ static readonly typeName = "BlueWebSPStatusMessage";
1916
+ static readonly fields: FieldList;
1917
+
1918
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): BlueWebSPStatusMessage;
1919
+
1920
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): BlueWebSPStatusMessage;
1921
+
1922
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): BlueWebSPStatusMessage;
1923
+
1924
+ static equals(a: BlueWebSPStatusMessage | PlainMessage<BlueWebSPStatusMessage> | undefined, b: BlueWebSPStatusMessage | PlainMessage<BlueWebSPStatusMessage> | undefined): boolean;
1925
+ }
1926
+
1755
1927
  /**
1756
1928
  * @generated from message BlueOssAccessResult
1757
1929
  */
@@ -88,6 +88,12 @@ __export(BlueCore_pb_exports, {
88
88
  BlueTimeUnit: () => BlueTimeUnit,
89
89
  BlueTransponderType: () => BlueTransponderType,
90
90
  BlueVersionInfo: () => BlueVersionInfo,
91
+ BlueWebSPClientMessage: () => BlueWebSPClientMessage,
92
+ BlueWebSPHandshake: () => BlueWebSPHandshake,
93
+ BlueWebSPHandshakeReply: () => BlueWebSPHandshakeReply,
94
+ BlueWebSPMessage: () => BlueWebSPMessage,
95
+ BlueWebSPServerMessage: () => BlueWebSPServerMessage,
96
+ BlueWebSPStatusMessage: () => BlueWebSPStatusMessage,
91
97
  BlueWeekday: () => BlueWeekday,
92
98
  _BlueTestEncodeDecode: () => _BlueTestEncodeDecode
93
99
  });
@@ -310,8 +316,7 @@ const BlueEventInfoSystem = import_protobuf.proto2.makeEnum(
310
316
  "BlueEventInfoSystem",
311
317
  [
312
318
  { no: 1, name: "SystemRestart" },
313
- { no: 2, name: "SystemConfigured" },
314
- { no: 3, name: "UnknownTransponderDetected" }
319
+ { no: 2, name: "SystemConfigured" }
315
320
  ]
316
321
  );
317
322
  const BlueEventInfoAccess = import_protobuf.proto2.makeEnum(
@@ -685,6 +690,69 @@ const BlueSPResult = import_protobuf.proto2.makeMessageType(
685
690
  }
686
691
  ]
687
692
  );
693
+ const BlueWebSPHandshake = import_protobuf.proto2.makeMessageType(
694
+ "BlueWebSPHandshake",
695
+ () => [
696
+ {
697
+ no: 1,
698
+ name: "salt",
699
+ kind: "scalar",
700
+ T: 12
701
+ /* ScalarType.BYTES */
702
+ }
703
+ ]
704
+ );
705
+ const BlueWebSPHandshakeReply = import_protobuf.proto2.makeMessageType(
706
+ "BlueWebSPHandshakeReply",
707
+ () => [
708
+ {
709
+ no: 1,
710
+ name: "deviceId",
711
+ kind: "scalar",
712
+ T: 9
713
+ /* ScalarType.STRING */
714
+ },
715
+ {
716
+ no: 2,
717
+ name: "signature",
718
+ kind: "scalar",
719
+ T: 12
720
+ /* ScalarType.BYTES */
721
+ }
722
+ ]
723
+ );
724
+ const BlueWebSPMessage = import_protobuf.proto2.makeMessageType(
725
+ "BlueWebSPMessage",
726
+ () => [
727
+ {
728
+ no: 1,
729
+ name: "transactionId",
730
+ kind: "scalar",
731
+ T: 13
732
+ /* ScalarType.UINT32 */
733
+ },
734
+ { no: 2, name: "payload", kind: "message", T: BlueSPResult }
735
+ ]
736
+ );
737
+ const BlueWebSPServerMessage = import_protobuf.proto2.makeMessageType(
738
+ "BlueWebSPServerMessage",
739
+ () => [
740
+ { no: 2, name: "handshake", kind: "message", T: BlueWebSPHandshake, oneof: "payload" },
741
+ { no: 3, name: "command", kind: "message", T: BlueSPTokenCommand, oneof: "payload" },
742
+ { no: 4, name: "ossSo", kind: "message", T: BlueOssSoMobile, oneof: "payload" },
743
+ { no: 5, name: "ossSid", kind: "message", T: BlueOssSidMobile, oneof: "payload" }
744
+ ]
745
+ );
746
+ const BlueWebSPClientMessage = import_protobuf.proto2.makeMessageType(
747
+ "BlueWebSPClientMessage",
748
+ []
749
+ );
750
+ const BlueWebSPStatusMessage = import_protobuf.proto2.makeMessageType(
751
+ "BlueWebSPStatusMessage",
752
+ () => [
753
+ { no: 1, name: "status", kind: "enum", T: import_protobuf.proto2.getEnumType(BlueReturnCode) }
754
+ ]
755
+ );
688
756
  const BlueOssAccessResult = import_protobuf.proto2.makeMessageType(
689
757
  "BlueOssAccessResult",
690
758
  () => [
@@ -8,31 +8,6 @@ import { Message, proto2 } from "@bufbuild/protobuf";
8
8
  import type { BlueBatteryLevel, BlueBlacklistEntry, BlueEvent, BlueHardwareType, BlueLocalTimeSchedule, BlueLocalTimestamp } from "./BlueCore_pb.js";
9
9
  import type { BlueLockConfig, BlueLockStatus } from "./BlueLock_pb.js";
10
10
 
11
- /**
12
- * @generated from enum BlueNetworkType
13
- */
14
- export declare enum BlueNetworkType {
15
- /**
16
- * @generated from enum value: None = 1;
17
- */
18
- None = 1,
19
-
20
- /**
21
- * @generated from enum value: Ethernet = 2;
22
- */
23
- Ethernet = 2,
24
-
25
- /**
26
- * @generated from enum value: Wifi = 3;
27
- */
28
- Wifi = 3,
29
-
30
- /**
31
- * @generated from enum value: Gsm = 4;
32
- */
33
- Gsm = 4,
34
- }
35
-
36
11
  /**
37
12
  * @generated from message BlueBaseConfig
38
13
  */
@@ -350,13 +325,6 @@ export declare class BlueOssConfig extends Message<BlueOssConfig> {
350
325
  */
351
326
  soMifareAid: number;
352
327
 
353
- /**
354
- * The card will request to refresh if the existing days passed. It can become required after stable
355
- *
356
- * @generated from field: optional uint32 minRefreshDays = 9 [default = 5];
357
- */
358
- minRefreshDays?: number;
359
-
360
328
  constructor(data?: PartialMessage<BlueOssConfig>);
361
329
 
362
330
  static readonly runtime: typeof proto2;
@@ -24,7 +24,6 @@ __export(BlueSystem_pb_exports, {
24
24
  BlueBleConfig: () => BlueBleConfig,
25
25
  BlueEventLogQuery: () => BlueEventLogQuery,
26
26
  BlueEventLogResult: () => BlueEventLogResult,
27
- BlueNetworkType: () => BlueNetworkType,
28
27
  BlueOnlineConfig: () => BlueOnlineConfig,
29
28
  BlueOssConfig: () => BlueOssConfig,
30
29
  BlueSystemAVRInfo: () => BlueSystemAVRInfo,
@@ -42,15 +41,6 @@ module.exports = __toCommonJS(BlueSystem_pb_exports);
42
41
  var import_protobuf = require("@bufbuild/protobuf");
43
42
  var import_BlueCore_pb = require("./BlueCore_pb.js");
44
43
  var import_BlueLock_pb = require("./BlueLock_pb.js");
45
- const BlueNetworkType = import_protobuf.proto2.makeEnum(
46
- "BlueNetworkType",
47
- [
48
- { no: 1, name: "None" },
49
- { no: 2, name: "Ethernet" },
50
- { no: 3, name: "Wifi" },
51
- { no: 4, name: "Gsm" }
52
- ]
53
- );
54
44
  const BlueBaseConfig = import_protobuf.proto2.makeMessageType(
55
45
  "BlueBaseConfig",
56
46
  () => [
@@ -144,8 +134,7 @@ const BlueOssConfig = import_protobuf.proto2.makeMessageType(
144
134
  { no: 5, name: "soWritePendingEvents", kind: "scalar", T: 8, default: true },
145
135
  { no: 6, name: "soUpdateFromBlacklist", kind: "scalar", T: 8, default: true },
146
136
  { 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]) },
147
- { no: 8, name: "soMifareAid", kind: "scalar", T: 13, default: 16076800 },
148
- { no: 9, name: "minRefreshDays", kind: "scalar", T: 13, opt: true, default: 5 }
137
+ { no: 8, name: "soMifareAid", kind: "scalar", T: 13, default: 16076800 }
149
138
  ]
150
139
  );
151
140
  const BlueSystemAVRInfo = import_protobuf.proto2.makeMessageType(
package/cjs/index.d.ts CHANGED
@@ -1,6 +1,5 @@
1
1
  export * from "./BlueCore_pb"
2
2
  export * from "./BlueLock_pb"
3
- export * from "./BlueNetworkCore_pb"
4
3
  export * from "./BlueSDK_pb"
5
4
  export * from "./BlueSystem_pb"
6
5
 
package/cjs/index.js CHANGED
@@ -16,6 +16,5 @@ var es_exports = {};
16
16
  module.exports = __toCommonJS(es_exports);
17
17
  __reExport(es_exports, require("./BlueCore_pb.js"), module.exports);
18
18
  __reExport(es_exports, require("./BlueLock_pb.js"), module.exports);
19
- __reExport(es_exports, require("./BlueNetworkCore_pb.js"), module.exports);
20
19
  __reExport(es_exports, require("./BlueSDK_pb.js"), module.exports);
21
20
  __reExport(es_exports, require("./BlueSystem_pb.js"), module.exports);