@blueid/access-proto 12.14.0 → 12.16.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,6 +231,11 @@ 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
+
234
239
  enum BlueTimeUnit {
235
240
  option (nanopb_enumopt).packed_enum = true;
236
241
 
@@ -425,6 +430,7 @@ enum BlueEventInfoSystem {
425
430
 
426
431
  SystemRestart = 0x01;
427
432
  SystemConfigured = 0x2;
433
+ UnknownTransponderDetected= 0x3;
428
434
 
429
435
  // -- Oss So events
430
436
 
@@ -481,6 +487,9 @@ message BlueEvent {
481
487
 
482
488
  // Set if eventId =
483
489
  optional string command = 6 [ (nanopb).max_length = 8 ];
490
+
491
+ // Set if credential related
492
+ // optional BlueTransponderId transponderId = 7;
484
493
  }
485
494
 
486
495
  ///////////////////////////////////////////////////////////////////////
@@ -504,7 +513,7 @@ message BlueSPTokenCommand {
504
513
  required BlueLocalTimestamp validityEnd = 3;
505
514
  required string command = 4 [ (nanopb).max_length = 8 ];
506
515
  required bytes data = 5
507
- [ (nanopb).max_size = 1792 ]; // we'll add 256b for add. data
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
508
517
  }
509
518
 
510
519
  message BlueSPToken {
@@ -522,43 +531,6 @@ message BlueSPResult {
522
531
  [ (nanopb).max_size = 1792 ]; // we'll add 256b for add. data
523
532
  }
524
533
 
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
-
562
534
 
563
535
  ///////////////////////////////////////////////////////////////////////
564
536
  // Oss shared types
@@ -1000,4 +972,4 @@ message _BlueTestEncodeDecode {
1000
972
  required string hardware_name = 2 [ (nanopb).max_length = 32 ];
1001
973
  required int32 hardware_version = 3;
1002
974
  required int32 application_version = 4;
1003
- }
975
+ }
@@ -0,0 +1,122 @@
1
+ syntax = "proto2";
2
+ option java_package = "blueid.access.sdk.pb";
3
+ import "nanopb.proto";
4
+
5
+ import "BlueCore.proto";
6
+
7
+ ///////////////////////////////////////////////////////////////////////
8
+ // Secure Protocol over WebSocket
9
+ ///////////////////////////////////////////////////////////////////////
10
+
11
+ message BlueErrorResult {
12
+ required string data = 1;
13
+ }
14
+
15
+ message BlueWebSPHandshake {
16
+ required bytes salt = 1
17
+ [ (nanopb).max_size = 16, (nanopb).fixed_length = true ];
18
+ }
19
+
20
+ message BlueWebSPHandshakeReply {
21
+ required string deviceId = 1 [ (nanopb).max_length = 8 ];
22
+ required bytes signature = 2 [ (nanopb).max_size = 74 ];
23
+ }
24
+
25
+ message BlueWebSPMessage {
26
+ required uint32 transactionId = 1 [ (nanopb).int_size = IS_8 ];
27
+ required BlueSPResult payload = 2;
28
+ optional bool isContinued = 3 [ default = false ];
29
+ }
30
+
31
+
32
+ message BlueWebSPStatusMessage {
33
+ required BlueReturnCode status = 1;
34
+ }
35
+
36
+ message BlueTransponderId {
37
+ 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
38
+ }
39
+
40
+ message BlueSocketConfigurationResponse{
41
+ required BlueTransponderId transponderId = 2;
42
+ required BlueOssSoConfiguration config = 1;
43
+ optional BlueErrorResult error = 3;
44
+ }
45
+
46
+ message BlueSocketRequestConfiguration {
47
+ required BlueTransponderId transponderId = 1;
48
+ required uint32 aid = 2;
49
+ required uint32 miniRefreshDays = 3;
50
+ required bool updateBlackListed = 4;
51
+ required bool writePendingEvents = 5;
52
+ }
53
+
54
+ // Message sent by the server to the device
55
+ message BlueWebSPServerMessage {
56
+ oneof payload {
57
+ BlueWebSPHandshake handshake = 2;
58
+ BlueSPTokenCommand command = 3;
59
+ BlueOssSoMobile ossSo = 4;
60
+ BlueOssSidMobile ossSid = 5;
61
+ BlueSocketConfigurationResponse configResponse = 6;
62
+ BlueWebSPServerSocketMessage socketMessage = 7;
63
+ }
64
+ }
65
+
66
+ message BlueWebSPClientRequest {
67
+ oneof payload{
68
+ BlueSocketRequestConfiguration requestConfig = 1;
69
+ }
70
+ }
71
+
72
+ message BlueWebSPClientResponse {
73
+ oneof payload{
74
+ BlueWebSPMessage message = 1;
75
+ }
76
+ }
77
+
78
+ // Message sent to the server by the device
79
+ message BlueWebSPClientMessage {
80
+
81
+ oneof payload {
82
+ BlueWebSPClientRequest request = 1;
83
+ BlueWebSPClientResponse response = 2;
84
+ }
85
+ }
86
+
87
+ message BlueWebSPServerSocketMessageSuccess{
88
+ required BlueSPResult result = 1;
89
+ }
90
+
91
+ message BlueWebSPServerSocketMessageFailed{
92
+ required BlueErrorResult result = 1;
93
+ }
94
+
95
+ message BlueWebSPServerSocketMessageDone{
96
+ optional BlueSPResult result = 1;
97
+ }
98
+
99
+
100
+ // Message sent by the server to the device as stream like APDUs
101
+ message BlueWebSPServerSocketMessage {
102
+ required uint32 transactionId = 1 [ (nanopb).int_size = IS_8 ];
103
+ oneof payload{
104
+ BlueWebSPServerSocketMessageSuccess success = 2;
105
+ BlueWebSPServerSocketMessageFailed failed = 3;
106
+ BlueWebSPServerSocketMessageDone done = 4;
107
+ }
108
+ }
109
+
110
+ message BlueWebSPClientSocketMessageSuccess{
111
+ required BlueSPResult result = 1;
112
+ }
113
+
114
+
115
+ // Message sent to the server by the device as stream like APDUs
116
+ message BlueWebSPClientSocketMessage {
117
+
118
+ oneof payload {
119
+ BlueWebSPClientSocketMessageSuccess success = 1;
120
+ BlueReturnCode failed = 2;
121
+ }
122
+ }
package/BlueSystem.proto CHANGED
@@ -140,6 +140,9 @@ 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 ];
143
146
  }
144
147
 
145
148
  message BlueSystemAVRInfo {
@@ -227,6 +230,15 @@ message BlueSystemStatus {
227
230
  optional uint32 applicationVersionTest = 10;
228
231
  }
229
232
 
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
+
230
242
  ///////////////////////////////////////////////////////////////////////
231
243
  // System Log
232
244
  ///////////////////////////////////////////////////////////////////////
@@ -281,4 +293,4 @@ message BlueEventLogResult {
281
293
 
282
294
  message BlueBlacklistEntries {
283
295
  repeated BlueBlacklistEntry entries = 1 [ (nanopb).max_count = 75 ];
284
- }
296
+ }
@@ -981,6 +981,11 @@ 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,
984
989
  }
985
990
 
986
991
  /**
@@ -1653,7 +1658,7 @@ export declare class BlueSPTokenCommand extends Message<BlueSPTokenCommand> {
1653
1658
  command: string;
1654
1659
 
1655
1660
  /**
1656
- * we'll add 256b for add. data
1661
+ * we'll add 256b for add. data. The normal data for UUZ device would be 1792 however Nexus device will use 8216 buffer
1657
1662
  *
1658
1663
  * @generated from field: required bytes data = 5;
1659
1664
  */
@@ -1747,183 +1752,6 @@ export declare class BlueSPResult extends Message<BlueSPResult> {
1747
1752
  static equals(a: BlueSPResult | PlainMessage<BlueSPResult> | undefined, b: BlueSPResult | PlainMessage<BlueSPResult> | undefined): boolean;
1748
1753
  }
1749
1754
 
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
-
1927
1755
  /**
1928
1756
  * @generated from message BlueOssAccessResult
1929
1757
  */
@@ -88,12 +88,6 @@ __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,
97
91
  BlueWeekday: () => BlueWeekday,
98
92
  _BlueTestEncodeDecode: () => _BlueTestEncodeDecode
99
93
  });
@@ -316,7 +310,8 @@ const BlueEventInfoSystem = import_protobuf.proto2.makeEnum(
316
310
  "BlueEventInfoSystem",
317
311
  [
318
312
  { no: 1, name: "SystemRestart" },
319
- { no: 2, name: "SystemConfigured" }
313
+ { no: 2, name: "SystemConfigured" },
314
+ { no: 3, name: "UnknownTransponderDetected" }
320
315
  ]
321
316
  );
322
317
  const BlueEventInfoAccess = import_protobuf.proto2.makeEnum(
@@ -690,69 +685,6 @@ const BlueSPResult = import_protobuf.proto2.makeMessageType(
690
685
  }
691
686
  ]
692
687
  );
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
- );
756
688
  const BlueOssAccessResult = import_protobuf.proto2.makeMessageType(
757
689
  "BlueOssAccessResult",
758
690
  () => [