@blueid/access-proto 12.9.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 +39 -11
- package/BlueSystem.proto +1 -13
- package/cjs/BlueCore_pb.d.ts +178 -6
- package/cjs/BlueCore_pb.js +70 -2
- package/cjs/BlueSystem_pb.d.ts +0 -32
- package/cjs/BlueSystem_pb.js +1 -12
- package/cjs/index.d.ts +0 -1
- package/cjs/index.js +0 -1
- package/es/BlueCore_pb.d.ts +178 -6
- package/es/BlueCore_pb.js +67 -1
- package/es/BlueSystem_pb.d.ts +0 -32
- package/es/BlueSystem_pb.js +0 -14
- package/es/index.d.ts +0 -1
- package/es/index.js +0 -1
- package/nanopb/BlueCore.pb.c +20 -2
- package/nanopb/BlueCore.pb.h +128 -8
- package/nanopb/BlueSystem.pb.c +0 -1
- package/nanopb/BlueSystem.pb.h +7 -48
- package/package.json +1 -1
- package/swift/BlueCore.pb.swift +488 -3
- package/swift/BlueSystem.pb.swift +1 -33
- package/BlueNetworkCore.proto +0 -122
- package/cjs/BlueNetworkCore_pb.d.ts +0 -591
- package/cjs/BlueNetworkCore_pb.js +0 -234
- package/es/BlueNetworkCore_pb.d.ts +0 -591
- package/es/BlueNetworkCore_pb.js +0 -215
- package/nanopb/BlueNetworkCore.pb.c +0 -63
- package/nanopb/BlueNetworkCore.pb.h +0 -409
- package/swift/BlueNetworkCore.pb.swift +0 -1700
|
@@ -21,18 +21,6 @@ fileprivate struct _GeneratedWithProtocGenSwiftVersion: SwiftProtobuf.ProtobufAP
|
|
|
21
21
|
typealias Version = _2
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
public enum BlueNetworkType: Int, SwiftProtobuf.Enum, Swift.CaseIterable {
|
|
25
|
-
case none = 1
|
|
26
|
-
case ethernet = 2
|
|
27
|
-
case wifi = 3
|
|
28
|
-
case gsm = 4
|
|
29
|
-
|
|
30
|
-
public init() {
|
|
31
|
-
self = .none
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
}
|
|
35
|
-
|
|
36
24
|
public struct BlueBaseConfig: Sendable {
|
|
37
25
|
// SwiftProtobuf.Message conformance is added in an extension below. See the
|
|
38
26
|
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
|
|
@@ -386,16 +374,6 @@ public struct BlueOssConfig: Sendable {
|
|
|
386
374
|
/// Clears the value of `soMifareAid`. Subsequent reads from it will return its default value.
|
|
387
375
|
public mutating func clearSoMifareAid() {self._soMifareAid = nil}
|
|
388
376
|
|
|
389
|
-
/// The card will request to refresh if the existing days passed. It can become required after stable
|
|
390
|
-
public var minRefreshDays: UInt32 {
|
|
391
|
-
get {return _minRefreshDays ?? 5}
|
|
392
|
-
set {_minRefreshDays = newValue}
|
|
393
|
-
}
|
|
394
|
-
/// Returns true if `minRefreshDays` has been explicitly set.
|
|
395
|
-
public var hasMinRefreshDays: Bool {return self._minRefreshDays != nil}
|
|
396
|
-
/// Clears the value of `minRefreshDays`. Subsequent reads from it will return its default value.
|
|
397
|
-
public mutating func clearMinRefreshDays() {self._minRefreshDays = nil}
|
|
398
|
-
|
|
399
377
|
public var unknownFields = SwiftProtobuf.UnknownStorage()
|
|
400
378
|
|
|
401
379
|
public init() {}
|
|
@@ -408,7 +386,6 @@ public struct BlueOssConfig: Sendable {
|
|
|
408
386
|
fileprivate var _soUpdateFromBlacklist: Bool? = nil
|
|
409
387
|
fileprivate var _soMifareAesKey: Data? = nil
|
|
410
388
|
fileprivate var _soMifareAid: UInt32? = nil
|
|
411
|
-
fileprivate var _minRefreshDays: UInt32? = nil
|
|
412
389
|
}
|
|
413
390
|
|
|
414
391
|
public struct BlueSystemAVRInfo: Sendable {
|
|
@@ -1097,10 +1074,6 @@ public struct BlueBlacklistEntries: Sendable {
|
|
|
1097
1074
|
|
|
1098
1075
|
// MARK: - Code below here is support for the SwiftProtobuf runtime.
|
|
1099
1076
|
|
|
1100
|
-
extension BlueNetworkType: SwiftProtobuf._ProtoNameProviding {
|
|
1101
|
-
public static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}None\0\u{1}Ethernet\0\u{1}Wifi\0\u{1}Gsm\0")
|
|
1102
|
-
}
|
|
1103
|
-
|
|
1104
1077
|
extension BlueBaseConfig: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
1105
1078
|
public static let protoMessageName: String = "BlueBaseConfig"
|
|
1106
1079
|
public static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}isoCountry\0\u{1}isoState\0\u{1}utcOffsetMinutes\0\u{1}autoCheckSystemStatus\0")
|
|
@@ -1398,7 +1371,7 @@ extension BlueAccessConfig: SwiftProtobuf.Message, SwiftProtobuf._MessageImpleme
|
|
|
1398
1371
|
|
|
1399
1372
|
extension BlueOssConfig: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
1400
1373
|
public static let protoMessageName: String = "BlueOssConfig"
|
|
1401
|
-
public static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}sidMifareAesKey\0\u{1}sidMifareAid\0\u{1}soUpdater\0\u{1}soPushEvents\0\u{1}soWritePendingEvents\0\u{1}soUpdateFromBlacklist\0\u{1}soMifareAesKey\0\u{1}soMifareAid\0
|
|
1374
|
+
public static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}sidMifareAesKey\0\u{1}sidMifareAid\0\u{1}soUpdater\0\u{1}soPushEvents\0\u{1}soWritePendingEvents\0\u{1}soUpdateFromBlacklist\0\u{1}soMifareAesKey\0\u{1}soMifareAid\0")
|
|
1402
1375
|
|
|
1403
1376
|
public var isInitialized: Bool {
|
|
1404
1377
|
if self._sidMifareAesKey == nil {return false}
|
|
@@ -1426,7 +1399,6 @@ extension BlueOssConfig: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementa
|
|
|
1426
1399
|
case 6: try { try decoder.decodeSingularBoolField(value: &self._soUpdateFromBlacklist) }()
|
|
1427
1400
|
case 7: try { try decoder.decodeSingularBytesField(value: &self._soMifareAesKey) }()
|
|
1428
1401
|
case 8: try { try decoder.decodeSingularUInt32Field(value: &self._soMifareAid) }()
|
|
1429
|
-
case 9: try { try decoder.decodeSingularUInt32Field(value: &self._minRefreshDays) }()
|
|
1430
1402
|
default: break
|
|
1431
1403
|
}
|
|
1432
1404
|
}
|
|
@@ -1461,9 +1433,6 @@ extension BlueOssConfig: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementa
|
|
|
1461
1433
|
try { if let v = self._soMifareAid {
|
|
1462
1434
|
try visitor.visitSingularUInt32Field(value: v, fieldNumber: 8)
|
|
1463
1435
|
} }()
|
|
1464
|
-
try { if let v = self._minRefreshDays {
|
|
1465
|
-
try visitor.visitSingularUInt32Field(value: v, fieldNumber: 9)
|
|
1466
|
-
} }()
|
|
1467
1436
|
try unknownFields.traverse(visitor: &visitor)
|
|
1468
1437
|
}
|
|
1469
1438
|
|
|
@@ -1476,7 +1445,6 @@ extension BlueOssConfig: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementa
|
|
|
1476
1445
|
if lhs._soUpdateFromBlacklist != rhs._soUpdateFromBlacklist {return false}
|
|
1477
1446
|
if lhs._soMifareAesKey != rhs._soMifareAesKey {return false}
|
|
1478
1447
|
if lhs._soMifareAid != rhs._soMifareAid {return false}
|
|
1479
|
-
if lhs._minRefreshDays != rhs._minRefreshDays {return false}
|
|
1480
1448
|
if lhs.unknownFields != rhs.unknownFields {return false}
|
|
1481
1449
|
return true
|
|
1482
1450
|
}
|
package/BlueNetworkCore.proto
DELETED
|
@@ -1,122 +0,0 @@
|
|
|
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
|
-
}
|