@blueid/access-proto 11.9.0 → 12.1.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
  ///////////////////////////////////////////////////////////////////////
@@ -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,121 @@
1
+ syntax = "proto2";
2
+ option java_package = "blueid.access.sdk.pb";
3
+ import "nanopb.proto";
4
+
5
+ import "BlueCore.proto";
6
+
7
+ message BlueTransponderId {
8
+ 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
9
+ }
10
+
11
+
12
+ ///////////////////////////////////////////////////////////////////////
13
+ // Secure Protocol over WebSocket
14
+ ///////////////////////////////////////////////////////////////////////
15
+
16
+ message BlueErrorResult {
17
+ required string data = 1;
18
+ }
19
+
20
+ message BlueWebSPHandshake {
21
+ required bytes salt = 1
22
+ [ (nanopb).max_size = 16, (nanopb).fixed_length = true ];
23
+ }
24
+
25
+ message BlueWebSPHandshakeReply {
26
+ required string deviceId = 1 [ (nanopb).max_length = 8 ];
27
+ required bytes signature = 2 [ (nanopb).max_size = 74 ];
28
+ }
29
+
30
+ message BlueWebSPMessage {
31
+ required uint32 transactionId = 1 [ (nanopb).int_size = IS_8 ];
32
+ required BlueSPResult payload = 2;
33
+ optional bool isContinued = 3 [ default = false ];
34
+ }
35
+
36
+
37
+ message BlueWebSPStatusMessage {
38
+ required BlueReturnCode status = 1;
39
+ }
40
+
41
+
42
+ message BlueSocketConfigurationResponse{
43
+ required BlueTransponderId transponderId = 2;
44
+ required BlueOssSoConfiguration config = 1;
45
+ optional BlueErrorResult error = 3;
46
+ }
47
+
48
+ message BlueSocketRequestConfiguration {
49
+ required BlueTransponderId transponderId = 2;
50
+ required uint32 aid = 4;
51
+ }
52
+
53
+ // Message sent by the server to the device
54
+ message BlueWebSPServerMessage {
55
+ oneof payload {
56
+ BlueWebSPHandshake handshake = 2;
57
+ BlueSPTokenCommand command = 3;
58
+ BlueOssSoMobile ossSo = 4;
59
+ BlueOssSidMobile ossSid = 5;
60
+ BlueSocketConfigurationResponse configResponse = 6;
61
+ BlueWebSPServerSocketMessage socketMessage = 7;
62
+ }
63
+ }
64
+
65
+ message BlueWebSPClientRequest {
66
+ oneof payload{
67
+ BlueSocketRequestConfiguration requestConfig = 1;
68
+ }
69
+ }
70
+
71
+ message BlueWebSPClientResponse {
72
+ oneof payload{
73
+ BlueWebSPMessage message = 1;
74
+ }
75
+ }
76
+
77
+ // Message sent to the server by the device
78
+ message BlueWebSPClientMessage {
79
+
80
+ oneof payload {
81
+ BlueWebSPClientRequest request = 1;
82
+ BlueWebSPClientResponse response = 2;
83
+ }
84
+ }
85
+
86
+ message BlueWebSPServerSocketMessageSuccess{
87
+ required BlueSPResult result = 1;
88
+ }
89
+
90
+ message BlueWebSPServerSocketMessageFailed{
91
+ required BlueErrorResult result = 1;
92
+ }
93
+
94
+ message BlueWebSPServerSocketMessageDone{
95
+ optional BlueSPResult result = 1;
96
+ }
97
+
98
+
99
+ // Message sent by the server to the device as stream like APDUs
100
+ message BlueWebSPServerSocketMessage {
101
+ required uint32 transactionId = 1 [ (nanopb).int_size = IS_8 ];
102
+ oneof payload{
103
+ BlueWebSPServerSocketMessageSuccess success = 2;
104
+ BlueWebSPServerSocketMessageFailed failed = 3;
105
+ BlueWebSPServerSocketMessageDone done = 4;
106
+ }
107
+ }
108
+
109
+ message BlueWebSPClientSocketMessageSuccess{
110
+ required BlueSPResult result = 1;
111
+ }
112
+
113
+
114
+ // Message sent to the server by the device as stream like APDUs
115
+ message BlueWebSPClientSocketMessage {
116
+
117
+ oneof payload {
118
+ BlueWebSPClientSocketMessageSuccess success = 1;
119
+ BlueReturnCode failed = 2;
120
+ }
121
+ }
@@ -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
  /**
@@ -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
  () => [