@blueid/access-proto 7.0.0 → 7.2.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/package.json +1 -1
- package/swift/BlueCore.pb.swift +210 -804
- package/swift/BlueLock.pb.swift +5 -25
- package/swift/BlueSDK.pb.swift +8 -56
- package/swift/BlueSystem.pb.swift +0 -8
package/swift/BlueCore.pb.swift
CHANGED
|
@@ -21,1000 +21,410 @@ fileprivate struct _GeneratedWithProtocGenSwiftVersion: SwiftProtobuf.ProtobufAP
|
|
|
21
21
|
typealias Version = _2
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
public enum BlueReturnCode: SwiftProtobuf.Enum, Swift.CaseIterable {
|
|
25
|
-
public typealias RawValue = Int
|
|
24
|
+
public enum BlueReturnCode: Int, SwiftProtobuf.Enum, Swift.CaseIterable {
|
|
26
25
|
|
|
27
26
|
///
|
|
28
27
|
/// Success results
|
|
29
|
-
case ok
|
|
30
|
-
case pending
|
|
28
|
+
case ok = 0
|
|
29
|
+
case pending = 1
|
|
31
30
|
|
|
32
31
|
///
|
|
33
32
|
/// General errors
|
|
34
|
-
case error
|
|
35
|
-
case invalidArguments
|
|
36
|
-
case invalidState
|
|
37
|
-
case notSupported
|
|
38
|
-
case eof
|
|
39
|
-
case overflow
|
|
40
|
-
case storageFull
|
|
41
|
-
case invalidCrc
|
|
42
|
-
case invalidMemoryAddress
|
|
43
|
-
case versionMissmatch
|
|
44
|
-
case invalidSignature
|
|
45
|
-
case invalidValidity
|
|
46
|
-
case cryptLibraryFailed
|
|
47
|
-
case notFound
|
|
48
|
-
case alreadyExists
|
|
49
|
-
case timeout
|
|
50
|
-
case disconnected
|
|
51
|
-
case pointerConversionFailed
|
|
52
|
-
case unavailable
|
|
53
|
-
case aborted
|
|
54
|
-
case test
|
|
55
|
-
case encodeDataWriteFailed
|
|
56
|
-
case encodeDataWriteNothingWritten
|
|
57
|
-
case decodeDataReadFailed
|
|
58
|
-
case bleInvalidCompanyIdentifier
|
|
59
|
-
case invalidSystemConfig
|
|
60
|
-
case invalidProvisioning
|
|
61
|
-
case invalidTransponder
|
|
62
|
-
case bleServiceNotFound
|
|
63
|
-
case bleCharacteristicNotFound
|
|
64
|
-
case bleFailSetCharacteristicNotify
|
|
65
|
-
case nfcTransponderNoResult
|
|
66
|
-
case nfcTransponderCommandError
|
|
67
|
-
case nfcTransponderStorageFull
|
|
68
|
-
case nfcTransponderAuthenticateFailed
|
|
33
|
+
case error = -1
|
|
34
|
+
case invalidArguments = -3
|
|
35
|
+
case invalidState = -4
|
|
36
|
+
case notSupported = -5
|
|
37
|
+
case eof = -6
|
|
38
|
+
case overflow = -7
|
|
39
|
+
case storageFull = -8
|
|
40
|
+
case invalidCrc = -9
|
|
41
|
+
case invalidMemoryAddress = -10
|
|
42
|
+
case versionMissmatch = -11
|
|
43
|
+
case invalidSignature = -12
|
|
44
|
+
case invalidValidity = -13
|
|
45
|
+
case cryptLibraryFailed = -14
|
|
46
|
+
case notFound = -16
|
|
47
|
+
case alreadyExists = -17
|
|
48
|
+
case timeout = -18
|
|
49
|
+
case disconnected = -19
|
|
50
|
+
case pointerConversionFailed = -20
|
|
51
|
+
case unavailable = -21
|
|
52
|
+
case aborted = -22
|
|
53
|
+
case test = -29
|
|
54
|
+
case encodeDataWriteFailed = -30
|
|
55
|
+
case encodeDataWriteNothingWritten = -31
|
|
56
|
+
case decodeDataReadFailed = -32
|
|
57
|
+
case bleInvalidCompanyIdentifier = -33
|
|
58
|
+
case invalidSystemConfig = -34
|
|
59
|
+
case invalidProvisioning = -35
|
|
60
|
+
case invalidTransponder = -104
|
|
61
|
+
case bleServiceNotFound = -105
|
|
62
|
+
case bleCharacteristicNotFound = -106
|
|
63
|
+
case bleFailSetCharacteristicNotify = -107
|
|
64
|
+
case nfcTransponderNoResult = -100
|
|
65
|
+
case nfcTransponderCommandError = -101
|
|
66
|
+
case nfcTransponderStorageFull = -102
|
|
67
|
+
case nfcTransponderAuthenticateFailed = -103
|
|
69
68
|
|
|
70
69
|
///
|
|
71
70
|
/// SP Errors
|
|
72
|
-
case spinvalidSalt
|
|
73
|
-
case spfailedHashing
|
|
74
|
-
case spfailedSigning
|
|
75
|
-
case spfailedGetOwnSalt
|
|
76
|
-
case spfailedSetPeerSalt
|
|
77
|
-
case spfailedEncrypt
|
|
78
|
-
case spfailedDecrypt
|
|
79
|
-
case spfailedGetCurrentTime
|
|
80
|
-
case spfailedSignature
|
|
81
|
-
case sperrorStatusCode
|
|
82
|
-
case ossInvalidCredentialID
|
|
83
|
-
case ossMaFailedMcpLib
|
|
84
|
-
case ossSoIncompatibleMajorVersion
|
|
85
|
-
case ossSoInvalidCredentialType
|
|
86
|
-
case ossSoInvalidTimestamp
|
|
87
|
-
case ossSoInvalidTimeperiod
|
|
88
|
-
case ossSoInvalidSiteID
|
|
89
|
-
case ossSoInvalidDoorAccessBy
|
|
90
|
-
case ossSoInvalidDoorDtscheduleNumber
|
|
91
|
-
case ossSoTimePeriodsCountMissmatch
|
|
92
|
-
case ossSoInvalidDtscheduleNumber
|
|
93
|
-
case ossSoEventIDNotSupportedForWrite
|
|
94
|
-
case ossSoExtensionFileSizeTooLarge
|
|
95
|
-
case ossSoExtensionFileSizeInvalid
|
|
96
|
-
case ossSoExtensionTooManyFeatures
|
|
97
|
-
case ossSoExtensionValueTooLarge
|
|
98
|
-
case ossSoInvalidExtensionLength
|
|
99
|
-
case ossSoInvalidExtensionTag
|
|
100
|
-
case ossSoMaxEventEntriesExceeded
|
|
101
|
-
case ossSoMaxBlacklistEntriesExceeded
|
|
102
|
-
case ossSidIncompatibleMajorVersion
|
|
103
|
-
case ossSidInvalidCredentialType
|
|
71
|
+
case spinvalidSalt = -150
|
|
72
|
+
case spfailedHashing = -151
|
|
73
|
+
case spfailedSigning = -152
|
|
74
|
+
case spfailedGetOwnSalt = -153
|
|
75
|
+
case spfailedSetPeerSalt = -154
|
|
76
|
+
case spfailedEncrypt = -155
|
|
77
|
+
case spfailedDecrypt = -156
|
|
78
|
+
case spfailedGetCurrentTime = -157
|
|
79
|
+
case spfailedSignature = -158
|
|
80
|
+
case sperrorStatusCode = -170
|
|
81
|
+
case ossInvalidCredentialID = -200
|
|
82
|
+
case ossMaFailedMcpLib = -201
|
|
83
|
+
case ossSoIncompatibleMajorVersion = -230
|
|
84
|
+
case ossSoInvalidCredentialType = -231
|
|
85
|
+
case ossSoInvalidTimestamp = -233
|
|
86
|
+
case ossSoInvalidTimeperiod = -234
|
|
87
|
+
case ossSoInvalidSiteID = -235
|
|
88
|
+
case ossSoInvalidDoorAccessBy = -236
|
|
89
|
+
case ossSoInvalidDoorDtscheduleNumber = -237
|
|
90
|
+
case ossSoTimePeriodsCountMissmatch = -238
|
|
91
|
+
case ossSoInvalidDtscheduleNumber = -239
|
|
92
|
+
case ossSoEventIDNotSupportedForWrite = -242
|
|
93
|
+
case ossSoExtensionFileSizeTooLarge = -243
|
|
94
|
+
case ossSoExtensionFileSizeInvalid = -244
|
|
95
|
+
case ossSoExtensionTooManyFeatures = -245
|
|
96
|
+
case ossSoExtensionValueTooLarge = -246
|
|
97
|
+
case ossSoInvalidExtensionLength = -247
|
|
98
|
+
case ossSoInvalidExtensionTag = -248
|
|
99
|
+
case ossSoMaxEventEntriesExceeded = -249
|
|
100
|
+
case ossSoMaxBlacklistEntriesExceeded = -250
|
|
101
|
+
case ossSidIncompatibleMajorVersion = -280
|
|
102
|
+
case ossSidInvalidCredentialType = -281
|
|
104
103
|
|
|
105
104
|
///
|
|
106
105
|
/// Mifare Desfire errors
|
|
107
|
-
case mifareDesfireWrongKeyType
|
|
108
|
-
case mifareDesfireWrongKey
|
|
109
|
-
case mifareDesfireCmacNotReceived
|
|
110
|
-
case mifareDesfireCmacNotVerified
|
|
111
|
-
case mifareDesfireNoneOrInvalidAid
|
|
112
|
-
case sdkCredentialNotFound
|
|
113
|
-
case sdkCredentialPrivateKeyNotFound
|
|
114
|
-
case sdkUnsupportedPlatform
|
|
115
|
-
case sdkDeviceNotFound
|
|
116
|
-
case sdkSpTokenNotFound
|
|
117
|
-
case sdkOssEntryNotFound
|
|
118
|
-
case sdkOssSoSettingsNotFound
|
|
119
|
-
case sdkGetSystemConfigFailed
|
|
120
|
-
case sdkEventLogsPushFailed
|
|
121
|
-
case sdkSystemLogEntriesPushFailed
|
|
122
|
-
case sdkBlacklistEntriesDeployFailed
|
|
123
|
-
case sdkDeviceSystemStatusPushFailed
|
|
124
|
-
case sdkNetworkError
|
|
125
|
-
case sdkDecodeBase64Failed
|
|
126
|
-
case sdkDecodeJsonFailed
|
|
127
|
-
case sdkFetchDataFailed
|
|
128
|
-
case sdkTimeout
|
|
129
|
-
case sdkGetAuthenticationTokenFailed
|
|
130
|
-
case sdkUpdateDeviceFailed
|
|
131
|
-
case sdkGetBlacklistEntriesFailed
|
|
132
|
-
case sdkGetSystemStatusFailed
|
|
133
|
-
case sdkWaitDeviceToRestartFailed
|
|
134
|
-
case sdkUnzipError
|
|
135
|
-
case sdkInvalidFirmwareURL
|
|
136
|
-
case sdkDeviceFactoryStateRequired
|
|
137
|
-
case sdkClaimDeviceFailedAutoUnclaimSuccess
|
|
138
|
-
case sdkClaimDeviceAndAutoUnclaimFailed
|
|
139
|
-
case ossMareturnCodeStart
|
|
140
|
-
case ossMareturnCodeEnd
|
|
106
|
+
case mifareDesfireWrongKeyType = -300
|
|
107
|
+
case mifareDesfireWrongKey = -301
|
|
108
|
+
case mifareDesfireCmacNotReceived = -302
|
|
109
|
+
case mifareDesfireCmacNotVerified = -303
|
|
110
|
+
case mifareDesfireNoneOrInvalidAid = -304
|
|
111
|
+
case sdkCredentialNotFound = -400
|
|
112
|
+
case sdkCredentialPrivateKeyNotFound = -401
|
|
113
|
+
case sdkUnsupportedPlatform = -402
|
|
114
|
+
case sdkDeviceNotFound = -403
|
|
115
|
+
case sdkSpTokenNotFound = -404
|
|
116
|
+
case sdkOssEntryNotFound = -405
|
|
117
|
+
case sdkOssSoSettingsNotFound = -406
|
|
118
|
+
case sdkGetSystemConfigFailed = -407
|
|
119
|
+
case sdkEventLogsPushFailed = -408
|
|
120
|
+
case sdkSystemLogEntriesPushFailed = -409
|
|
121
|
+
case sdkBlacklistEntriesDeployFailed = -410
|
|
122
|
+
case sdkDeviceSystemStatusPushFailed = -411
|
|
123
|
+
case sdkNetworkError = -412
|
|
124
|
+
case sdkDecodeBase64Failed = -413
|
|
125
|
+
case sdkDecodeJsonFailed = -414
|
|
126
|
+
case sdkFetchDataFailed = -415
|
|
127
|
+
case sdkTimeout = -416
|
|
128
|
+
case sdkGetAuthenticationTokenFailed = -417
|
|
129
|
+
case sdkUpdateDeviceFailed = -418
|
|
130
|
+
case sdkGetBlacklistEntriesFailed = -419
|
|
131
|
+
case sdkGetSystemStatusFailed = -420
|
|
132
|
+
case sdkWaitDeviceToRestartFailed = -421
|
|
133
|
+
case sdkUnzipError = -422
|
|
134
|
+
case sdkInvalidFirmwareURL = -423
|
|
135
|
+
case sdkDeviceFactoryStateRequired = -424
|
|
136
|
+
case sdkClaimDeviceFailedAutoUnclaimSuccess = -425
|
|
137
|
+
case sdkClaimDeviceAndAutoUnclaimFailed = -426
|
|
138
|
+
case ossMareturnCodeStart = -1000
|
|
139
|
+
case ossMareturnCodeEnd = -1100
|
|
141
140
|
|
|
142
141
|
public init() {
|
|
143
142
|
self = .ok
|
|
144
143
|
}
|
|
145
144
|
|
|
146
|
-
public init?(rawValue: Int) {
|
|
147
|
-
switch rawValue {
|
|
148
|
-
case -1100: self = .ossMareturnCodeEnd
|
|
149
|
-
case -1000: self = .ossMareturnCodeStart
|
|
150
|
-
case -426: self = .sdkClaimDeviceAndAutoUnclaimFailed
|
|
151
|
-
case -425: self = .sdkClaimDeviceFailedAutoUnclaimSuccess
|
|
152
|
-
case -424: self = .sdkDeviceFactoryStateRequired
|
|
153
|
-
case -423: self = .sdkInvalidFirmwareURL
|
|
154
|
-
case -422: self = .sdkUnzipError
|
|
155
|
-
case -421: self = .sdkWaitDeviceToRestartFailed
|
|
156
|
-
case -420: self = .sdkGetSystemStatusFailed
|
|
157
|
-
case -419: self = .sdkGetBlacklistEntriesFailed
|
|
158
|
-
case -418: self = .sdkUpdateDeviceFailed
|
|
159
|
-
case -417: self = .sdkGetAuthenticationTokenFailed
|
|
160
|
-
case -416: self = .sdkTimeout
|
|
161
|
-
case -415: self = .sdkFetchDataFailed
|
|
162
|
-
case -414: self = .sdkDecodeJsonFailed
|
|
163
|
-
case -413: self = .sdkDecodeBase64Failed
|
|
164
|
-
case -412: self = .sdkNetworkError
|
|
165
|
-
case -411: self = .sdkDeviceSystemStatusPushFailed
|
|
166
|
-
case -410: self = .sdkBlacklistEntriesDeployFailed
|
|
167
|
-
case -409: self = .sdkSystemLogEntriesPushFailed
|
|
168
|
-
case -408: self = .sdkEventLogsPushFailed
|
|
169
|
-
case -407: self = .sdkGetSystemConfigFailed
|
|
170
|
-
case -406: self = .sdkOssSoSettingsNotFound
|
|
171
|
-
case -405: self = .sdkOssEntryNotFound
|
|
172
|
-
case -404: self = .sdkSpTokenNotFound
|
|
173
|
-
case -403: self = .sdkDeviceNotFound
|
|
174
|
-
case -402: self = .sdkUnsupportedPlatform
|
|
175
|
-
case -401: self = .sdkCredentialPrivateKeyNotFound
|
|
176
|
-
case -400: self = .sdkCredentialNotFound
|
|
177
|
-
case -304: self = .mifareDesfireNoneOrInvalidAid
|
|
178
|
-
case -303: self = .mifareDesfireCmacNotVerified
|
|
179
|
-
case -302: self = .mifareDesfireCmacNotReceived
|
|
180
|
-
case -301: self = .mifareDesfireWrongKey
|
|
181
|
-
case -300: self = .mifareDesfireWrongKeyType
|
|
182
|
-
case -281: self = .ossSidInvalidCredentialType
|
|
183
|
-
case -280: self = .ossSidIncompatibleMajorVersion
|
|
184
|
-
case -250: self = .ossSoMaxBlacklistEntriesExceeded
|
|
185
|
-
case -249: self = .ossSoMaxEventEntriesExceeded
|
|
186
|
-
case -248: self = .ossSoInvalidExtensionTag
|
|
187
|
-
case -247: self = .ossSoInvalidExtensionLength
|
|
188
|
-
case -246: self = .ossSoExtensionValueTooLarge
|
|
189
|
-
case -245: self = .ossSoExtensionTooManyFeatures
|
|
190
|
-
case -244: self = .ossSoExtensionFileSizeInvalid
|
|
191
|
-
case -243: self = .ossSoExtensionFileSizeTooLarge
|
|
192
|
-
case -242: self = .ossSoEventIDNotSupportedForWrite
|
|
193
|
-
case -239: self = .ossSoInvalidDtscheduleNumber
|
|
194
|
-
case -238: self = .ossSoTimePeriodsCountMissmatch
|
|
195
|
-
case -237: self = .ossSoInvalidDoorDtscheduleNumber
|
|
196
|
-
case -236: self = .ossSoInvalidDoorAccessBy
|
|
197
|
-
case -235: self = .ossSoInvalidSiteID
|
|
198
|
-
case -234: self = .ossSoInvalidTimeperiod
|
|
199
|
-
case -233: self = .ossSoInvalidTimestamp
|
|
200
|
-
case -231: self = .ossSoInvalidCredentialType
|
|
201
|
-
case -230: self = .ossSoIncompatibleMajorVersion
|
|
202
|
-
case -201: self = .ossMaFailedMcpLib
|
|
203
|
-
case -200: self = .ossInvalidCredentialID
|
|
204
|
-
case -170: self = .sperrorStatusCode
|
|
205
|
-
case -158: self = .spfailedSignature
|
|
206
|
-
case -157: self = .spfailedGetCurrentTime
|
|
207
|
-
case -156: self = .spfailedDecrypt
|
|
208
|
-
case -155: self = .spfailedEncrypt
|
|
209
|
-
case -154: self = .spfailedSetPeerSalt
|
|
210
|
-
case -153: self = .spfailedGetOwnSalt
|
|
211
|
-
case -152: self = .spfailedSigning
|
|
212
|
-
case -151: self = .spfailedHashing
|
|
213
|
-
case -150: self = .spinvalidSalt
|
|
214
|
-
case -107: self = .bleFailSetCharacteristicNotify
|
|
215
|
-
case -106: self = .bleCharacteristicNotFound
|
|
216
|
-
case -105: self = .bleServiceNotFound
|
|
217
|
-
case -104: self = .invalidTransponder
|
|
218
|
-
case -103: self = .nfcTransponderAuthenticateFailed
|
|
219
|
-
case -102: self = .nfcTransponderStorageFull
|
|
220
|
-
case -101: self = .nfcTransponderCommandError
|
|
221
|
-
case -100: self = .nfcTransponderNoResult
|
|
222
|
-
case -35: self = .invalidProvisioning
|
|
223
|
-
case -34: self = .invalidSystemConfig
|
|
224
|
-
case -33: self = .bleInvalidCompanyIdentifier
|
|
225
|
-
case -32: self = .decodeDataReadFailed
|
|
226
|
-
case -31: self = .encodeDataWriteNothingWritten
|
|
227
|
-
case -30: self = .encodeDataWriteFailed
|
|
228
|
-
case -29: self = .test
|
|
229
|
-
case -22: self = .aborted
|
|
230
|
-
case -21: self = .unavailable
|
|
231
|
-
case -20: self = .pointerConversionFailed
|
|
232
|
-
case -19: self = .disconnected
|
|
233
|
-
case -18: self = .timeout
|
|
234
|
-
case -17: self = .alreadyExists
|
|
235
|
-
case -16: self = .notFound
|
|
236
|
-
case -14: self = .cryptLibraryFailed
|
|
237
|
-
case -13: self = .invalidValidity
|
|
238
|
-
case -12: self = .invalidSignature
|
|
239
|
-
case -11: self = .versionMissmatch
|
|
240
|
-
case -10: self = .invalidMemoryAddress
|
|
241
|
-
case -9: self = .invalidCrc
|
|
242
|
-
case -8: self = .storageFull
|
|
243
|
-
case -7: self = .overflow
|
|
244
|
-
case -6: self = .eof
|
|
245
|
-
case -5: self = .notSupported
|
|
246
|
-
case -4: self = .invalidState
|
|
247
|
-
case -3: self = .invalidArguments
|
|
248
|
-
case -1: self = .error
|
|
249
|
-
case 0: self = .ok
|
|
250
|
-
case 1: self = .pending
|
|
251
|
-
default: return nil
|
|
252
|
-
}
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
public var rawValue: Int {
|
|
256
|
-
switch self {
|
|
257
|
-
case .ossMareturnCodeEnd: return -1100
|
|
258
|
-
case .ossMareturnCodeStart: return -1000
|
|
259
|
-
case .sdkClaimDeviceAndAutoUnclaimFailed: return -426
|
|
260
|
-
case .sdkClaimDeviceFailedAutoUnclaimSuccess: return -425
|
|
261
|
-
case .sdkDeviceFactoryStateRequired: return -424
|
|
262
|
-
case .sdkInvalidFirmwareURL: return -423
|
|
263
|
-
case .sdkUnzipError: return -422
|
|
264
|
-
case .sdkWaitDeviceToRestartFailed: return -421
|
|
265
|
-
case .sdkGetSystemStatusFailed: return -420
|
|
266
|
-
case .sdkGetBlacklistEntriesFailed: return -419
|
|
267
|
-
case .sdkUpdateDeviceFailed: return -418
|
|
268
|
-
case .sdkGetAuthenticationTokenFailed: return -417
|
|
269
|
-
case .sdkTimeout: return -416
|
|
270
|
-
case .sdkFetchDataFailed: return -415
|
|
271
|
-
case .sdkDecodeJsonFailed: return -414
|
|
272
|
-
case .sdkDecodeBase64Failed: return -413
|
|
273
|
-
case .sdkNetworkError: return -412
|
|
274
|
-
case .sdkDeviceSystemStatusPushFailed: return -411
|
|
275
|
-
case .sdkBlacklistEntriesDeployFailed: return -410
|
|
276
|
-
case .sdkSystemLogEntriesPushFailed: return -409
|
|
277
|
-
case .sdkEventLogsPushFailed: return -408
|
|
278
|
-
case .sdkGetSystemConfigFailed: return -407
|
|
279
|
-
case .sdkOssSoSettingsNotFound: return -406
|
|
280
|
-
case .sdkOssEntryNotFound: return -405
|
|
281
|
-
case .sdkSpTokenNotFound: return -404
|
|
282
|
-
case .sdkDeviceNotFound: return -403
|
|
283
|
-
case .sdkUnsupportedPlatform: return -402
|
|
284
|
-
case .sdkCredentialPrivateKeyNotFound: return -401
|
|
285
|
-
case .sdkCredentialNotFound: return -400
|
|
286
|
-
case .mifareDesfireNoneOrInvalidAid: return -304
|
|
287
|
-
case .mifareDesfireCmacNotVerified: return -303
|
|
288
|
-
case .mifareDesfireCmacNotReceived: return -302
|
|
289
|
-
case .mifareDesfireWrongKey: return -301
|
|
290
|
-
case .mifareDesfireWrongKeyType: return -300
|
|
291
|
-
case .ossSidInvalidCredentialType: return -281
|
|
292
|
-
case .ossSidIncompatibleMajorVersion: return -280
|
|
293
|
-
case .ossSoMaxBlacklistEntriesExceeded: return -250
|
|
294
|
-
case .ossSoMaxEventEntriesExceeded: return -249
|
|
295
|
-
case .ossSoInvalidExtensionTag: return -248
|
|
296
|
-
case .ossSoInvalidExtensionLength: return -247
|
|
297
|
-
case .ossSoExtensionValueTooLarge: return -246
|
|
298
|
-
case .ossSoExtensionTooManyFeatures: return -245
|
|
299
|
-
case .ossSoExtensionFileSizeInvalid: return -244
|
|
300
|
-
case .ossSoExtensionFileSizeTooLarge: return -243
|
|
301
|
-
case .ossSoEventIDNotSupportedForWrite: return -242
|
|
302
|
-
case .ossSoInvalidDtscheduleNumber: return -239
|
|
303
|
-
case .ossSoTimePeriodsCountMissmatch: return -238
|
|
304
|
-
case .ossSoInvalidDoorDtscheduleNumber: return -237
|
|
305
|
-
case .ossSoInvalidDoorAccessBy: return -236
|
|
306
|
-
case .ossSoInvalidSiteID: return -235
|
|
307
|
-
case .ossSoInvalidTimeperiod: return -234
|
|
308
|
-
case .ossSoInvalidTimestamp: return -233
|
|
309
|
-
case .ossSoInvalidCredentialType: return -231
|
|
310
|
-
case .ossSoIncompatibleMajorVersion: return -230
|
|
311
|
-
case .ossMaFailedMcpLib: return -201
|
|
312
|
-
case .ossInvalidCredentialID: return -200
|
|
313
|
-
case .sperrorStatusCode: return -170
|
|
314
|
-
case .spfailedSignature: return -158
|
|
315
|
-
case .spfailedGetCurrentTime: return -157
|
|
316
|
-
case .spfailedDecrypt: return -156
|
|
317
|
-
case .spfailedEncrypt: return -155
|
|
318
|
-
case .spfailedSetPeerSalt: return -154
|
|
319
|
-
case .spfailedGetOwnSalt: return -153
|
|
320
|
-
case .spfailedSigning: return -152
|
|
321
|
-
case .spfailedHashing: return -151
|
|
322
|
-
case .spinvalidSalt: return -150
|
|
323
|
-
case .bleFailSetCharacteristicNotify: return -107
|
|
324
|
-
case .bleCharacteristicNotFound: return -106
|
|
325
|
-
case .bleServiceNotFound: return -105
|
|
326
|
-
case .invalidTransponder: return -104
|
|
327
|
-
case .nfcTransponderAuthenticateFailed: return -103
|
|
328
|
-
case .nfcTransponderStorageFull: return -102
|
|
329
|
-
case .nfcTransponderCommandError: return -101
|
|
330
|
-
case .nfcTransponderNoResult: return -100
|
|
331
|
-
case .invalidProvisioning: return -35
|
|
332
|
-
case .invalidSystemConfig: return -34
|
|
333
|
-
case .bleInvalidCompanyIdentifier: return -33
|
|
334
|
-
case .decodeDataReadFailed: return -32
|
|
335
|
-
case .encodeDataWriteNothingWritten: return -31
|
|
336
|
-
case .encodeDataWriteFailed: return -30
|
|
337
|
-
case .test: return -29
|
|
338
|
-
case .aborted: return -22
|
|
339
|
-
case .unavailable: return -21
|
|
340
|
-
case .pointerConversionFailed: return -20
|
|
341
|
-
case .disconnected: return -19
|
|
342
|
-
case .timeout: return -18
|
|
343
|
-
case .alreadyExists: return -17
|
|
344
|
-
case .notFound: return -16
|
|
345
|
-
case .cryptLibraryFailed: return -14
|
|
346
|
-
case .invalidValidity: return -13
|
|
347
|
-
case .invalidSignature: return -12
|
|
348
|
-
case .versionMissmatch: return -11
|
|
349
|
-
case .invalidMemoryAddress: return -10
|
|
350
|
-
case .invalidCrc: return -9
|
|
351
|
-
case .storageFull: return -8
|
|
352
|
-
case .overflow: return -7
|
|
353
|
-
case .eof: return -6
|
|
354
|
-
case .notSupported: return -5
|
|
355
|
-
case .invalidState: return -4
|
|
356
|
-
case .invalidArguments: return -3
|
|
357
|
-
case .error: return -1
|
|
358
|
-
case .ok: return 0
|
|
359
|
-
case .pending: return 1
|
|
360
|
-
}
|
|
361
|
-
}
|
|
362
|
-
|
|
363
145
|
}
|
|
364
146
|
|
|
365
|
-
public enum BlueTimeUnit: SwiftProtobuf.Enum, Swift.CaseIterable {
|
|
366
|
-
|
|
367
|
-
case
|
|
368
|
-
case
|
|
369
|
-
case
|
|
370
|
-
case
|
|
371
|
-
case
|
|
372
|
-
case years // = 6
|
|
147
|
+
public enum BlueTimeUnit: Int, SwiftProtobuf.Enum, Swift.CaseIterable {
|
|
148
|
+
case seconds = 1
|
|
149
|
+
case minutes = 2
|
|
150
|
+
case hours = 3
|
|
151
|
+
case days = 4
|
|
152
|
+
case months = 5
|
|
153
|
+
case years = 6
|
|
373
154
|
|
|
374
155
|
public init() {
|
|
375
156
|
self = .seconds
|
|
376
157
|
}
|
|
377
158
|
|
|
378
|
-
public init?(rawValue: Int) {
|
|
379
|
-
switch rawValue {
|
|
380
|
-
case 1: self = .seconds
|
|
381
|
-
case 2: self = .minutes
|
|
382
|
-
case 3: self = .hours
|
|
383
|
-
case 4: self = .days
|
|
384
|
-
case 5: self = .months
|
|
385
|
-
case 6: self = .years
|
|
386
|
-
default: return nil
|
|
387
|
-
}
|
|
388
|
-
}
|
|
389
|
-
|
|
390
|
-
public var rawValue: Int {
|
|
391
|
-
switch self {
|
|
392
|
-
case .seconds: return 1
|
|
393
|
-
case .minutes: return 2
|
|
394
|
-
case .hours: return 3
|
|
395
|
-
case .days: return 4
|
|
396
|
-
case .months: return 5
|
|
397
|
-
case .years: return 6
|
|
398
|
-
}
|
|
399
|
-
}
|
|
400
|
-
|
|
401
159
|
}
|
|
402
160
|
|
|
403
161
|
/// Those may never be changed
|
|
404
|
-
public enum BlueWeekday: SwiftProtobuf.Enum, Swift.CaseIterable {
|
|
405
|
-
|
|
406
|
-
case
|
|
407
|
-
case
|
|
408
|
-
case
|
|
409
|
-
case
|
|
410
|
-
case
|
|
411
|
-
case
|
|
412
|
-
case sunday // = 6
|
|
162
|
+
public enum BlueWeekday: Int, SwiftProtobuf.Enum, Swift.CaseIterable {
|
|
163
|
+
case monday = 0
|
|
164
|
+
case tuesday = 1
|
|
165
|
+
case wednesday = 2
|
|
166
|
+
case thursday = 3
|
|
167
|
+
case friday = 4
|
|
168
|
+
case saturday = 5
|
|
169
|
+
case sunday = 6
|
|
413
170
|
|
|
414
171
|
public init() {
|
|
415
172
|
self = .monday
|
|
416
173
|
}
|
|
417
174
|
|
|
418
|
-
public init?(rawValue: Int) {
|
|
419
|
-
switch rawValue {
|
|
420
|
-
case 0: self = .monday
|
|
421
|
-
case 1: self = .tuesday
|
|
422
|
-
case 2: self = .wednesday
|
|
423
|
-
case 3: self = .thursday
|
|
424
|
-
case 4: self = .friday
|
|
425
|
-
case 5: self = .saturday
|
|
426
|
-
case 6: self = .sunday
|
|
427
|
-
default: return nil
|
|
428
|
-
}
|
|
429
|
-
}
|
|
430
|
-
|
|
431
|
-
public var rawValue: Int {
|
|
432
|
-
switch self {
|
|
433
|
-
case .monday: return 0
|
|
434
|
-
case .tuesday: return 1
|
|
435
|
-
case .wednesday: return 2
|
|
436
|
-
case .thursday: return 3
|
|
437
|
-
case .friday: return 4
|
|
438
|
-
case .saturday: return 5
|
|
439
|
-
case .sunday: return 6
|
|
440
|
-
}
|
|
441
|
-
}
|
|
442
|
-
|
|
443
175
|
}
|
|
444
176
|
|
|
445
177
|
/// @TODO: Keep it until we have updated all places in both iOS and Android SDK.
|
|
446
178
|
/// This should be renamed to BlueIdentityRole later on.
|
|
447
|
-
public enum BlueCredentialType: SwiftProtobuf.Enum, Swift.CaseIterable {
|
|
448
|
-
public typealias RawValue = Int
|
|
179
|
+
public enum BlueCredentialType: Int, SwiftProtobuf.Enum, Swift.CaseIterable {
|
|
449
180
|
|
|
450
181
|
/// Regular credential can only open / enter
|
|
451
|
-
case regular
|
|
182
|
+
case regular = 1
|
|
452
183
|
|
|
453
184
|
/// Maintenance can open and update all locks within the site
|
|
454
|
-
case maintenance
|
|
185
|
+
case maintenance = 2
|
|
455
186
|
|
|
456
187
|
/// Master can open all locks within the given site
|
|
457
|
-
case master
|
|
188
|
+
case master = 3
|
|
458
189
|
|
|
459
190
|
/// Nfc writer allows to write any credential within this site on cards & fobs
|
|
460
|
-
case nfcWriter
|
|
191
|
+
case nfcWriter = 4
|
|
461
192
|
|
|
462
193
|
/// Emergency can open all locks within given site, requires no refresh and has no validity
|
|
463
|
-
case emergency
|
|
194
|
+
case emergency = 5
|
|
464
195
|
|
|
465
196
|
public init() {
|
|
466
197
|
self = .regular
|
|
467
198
|
}
|
|
468
199
|
|
|
469
|
-
public init?(rawValue: Int) {
|
|
470
|
-
switch rawValue {
|
|
471
|
-
case 1: self = .regular
|
|
472
|
-
case 2: self = .maintenance
|
|
473
|
-
case 3: self = .master
|
|
474
|
-
case 4: self = .nfcWriter
|
|
475
|
-
case 5: self = .emergency
|
|
476
|
-
default: return nil
|
|
477
|
-
}
|
|
478
|
-
}
|
|
479
|
-
|
|
480
|
-
public var rawValue: Int {
|
|
481
|
-
switch self {
|
|
482
|
-
case .regular: return 1
|
|
483
|
-
case .maintenance: return 2
|
|
484
|
-
case .master: return 3
|
|
485
|
-
case .nfcWriter: return 4
|
|
486
|
-
case .emergency: return 5
|
|
487
|
-
}
|
|
488
|
-
}
|
|
489
|
-
|
|
490
200
|
}
|
|
491
201
|
|
|
492
|
-
public enum BlueAccessType: SwiftProtobuf.Enum, Swift.CaseIterable {
|
|
493
|
-
public typealias RawValue = Int
|
|
202
|
+
public enum BlueAccessType: Int, SwiftProtobuf.Enum, Swift.CaseIterable {
|
|
494
203
|
|
|
495
204
|
/// Access with default unlock time
|
|
496
|
-
case defaultTime
|
|
205
|
+
case defaultTime = 1
|
|
497
206
|
|
|
498
207
|
/// Access with extended unlock time
|
|
499
|
-
case extendedTime
|
|
208
|
+
case extendedTime = 2
|
|
500
209
|
|
|
501
210
|
/// Access with custom unlock time
|
|
502
|
-
case customTime
|
|
211
|
+
case customTime = 3
|
|
503
212
|
|
|
504
213
|
/// Access with toggle function
|
|
505
|
-
case toggle
|
|
214
|
+
case toggle = 4
|
|
506
215
|
|
|
507
216
|
/// Access and close the lock
|
|
508
|
-
case close
|
|
217
|
+
case close = 5
|
|
509
218
|
|
|
510
219
|
/// No access
|
|
511
|
-
case noAccess
|
|
220
|
+
case noAccess = 6
|
|
512
221
|
|
|
513
222
|
/// No access due validity
|
|
514
|
-
case noAccessValidity
|
|
223
|
+
case noAccessValidity = 7
|
|
515
224
|
|
|
516
225
|
/// No access due blacklisted
|
|
517
|
-
case noAccessBlacklisted
|
|
226
|
+
case noAccessBlacklisted = 8
|
|
518
227
|
|
|
519
228
|
public init() {
|
|
520
229
|
self = .defaultTime
|
|
521
230
|
}
|
|
522
231
|
|
|
523
|
-
public init?(rawValue: Int) {
|
|
524
|
-
switch rawValue {
|
|
525
|
-
case 1: self = .defaultTime
|
|
526
|
-
case 2: self = .extendedTime
|
|
527
|
-
case 3: self = .customTime
|
|
528
|
-
case 4: self = .toggle
|
|
529
|
-
case 5: self = .close
|
|
530
|
-
case 6: self = .noAccess
|
|
531
|
-
case 7: self = .noAccessValidity
|
|
532
|
-
case 8: self = .noAccessBlacklisted
|
|
533
|
-
default: return nil
|
|
534
|
-
}
|
|
535
|
-
}
|
|
536
|
-
|
|
537
|
-
public var rawValue: Int {
|
|
538
|
-
switch self {
|
|
539
|
-
case .defaultTime: return 1
|
|
540
|
-
case .extendedTime: return 2
|
|
541
|
-
case .customTime: return 3
|
|
542
|
-
case .toggle: return 4
|
|
543
|
-
case .close: return 5
|
|
544
|
-
case .noAccess: return 6
|
|
545
|
-
case .noAccessValidity: return 7
|
|
546
|
-
case .noAccessBlacklisted: return 8
|
|
547
|
-
}
|
|
548
|
-
}
|
|
549
|
-
|
|
550
232
|
}
|
|
551
233
|
|
|
552
|
-
public enum BlueTransponderType: SwiftProtobuf.Enum, Swift.CaseIterable {
|
|
553
|
-
|
|
554
|
-
case
|
|
555
|
-
case
|
|
556
|
-
case mifareDesfire // = 2
|
|
234
|
+
public enum BlueTransponderType: Int, SwiftProtobuf.Enum, Swift.CaseIterable {
|
|
235
|
+
case unknownTransponder = 0
|
|
236
|
+
case mobileTransponder = 1
|
|
237
|
+
case mifareDesfire = 2
|
|
557
238
|
|
|
558
239
|
public init() {
|
|
559
240
|
self = .unknownTransponder
|
|
560
241
|
}
|
|
561
242
|
|
|
562
|
-
public init?(rawValue: Int) {
|
|
563
|
-
switch rawValue {
|
|
564
|
-
case 0: self = .unknownTransponder
|
|
565
|
-
case 1: self = .mobileTransponder
|
|
566
|
-
case 2: self = .mifareDesfire
|
|
567
|
-
default: return nil
|
|
568
|
-
}
|
|
569
|
-
}
|
|
570
|
-
|
|
571
|
-
public var rawValue: Int {
|
|
572
|
-
switch self {
|
|
573
|
-
case .unknownTransponder: return 0
|
|
574
|
-
case .mobileTransponder: return 1
|
|
575
|
-
case .mifareDesfire: return 2
|
|
576
|
-
}
|
|
577
|
-
}
|
|
578
|
-
|
|
579
243
|
}
|
|
580
244
|
|
|
581
|
-
public enum BlueHardwareType: SwiftProtobuf.Enum, Swift.CaseIterable {
|
|
582
|
-
|
|
583
|
-
case
|
|
584
|
-
case
|
|
585
|
-
case
|
|
586
|
-
case
|
|
587
|
-
case
|
|
588
|
-
case
|
|
589
|
-
case
|
|
590
|
-
case
|
|
591
|
-
case furnitureLock // = 8
|
|
245
|
+
public enum BlueHardwareType: Int, SwiftProtobuf.Enum, Swift.CaseIterable {
|
|
246
|
+
case unknownHardware = 0
|
|
247
|
+
case testHardware = 1
|
|
248
|
+
case gateway = 2
|
|
249
|
+
case cylinderLock = 3
|
|
250
|
+
case doorHandleLock = 4
|
|
251
|
+
case wallReader = 5
|
|
252
|
+
case kiosk = 6
|
|
253
|
+
case cylinderLockCompact = 7
|
|
254
|
+
case furnitureLock = 8
|
|
592
255
|
|
|
593
256
|
public init() {
|
|
594
257
|
self = .unknownHardware
|
|
595
258
|
}
|
|
596
259
|
|
|
597
|
-
public init?(rawValue: Int) {
|
|
598
|
-
switch rawValue {
|
|
599
|
-
case 0: self = .unknownHardware
|
|
600
|
-
case 1: self = .testHardware
|
|
601
|
-
case 2: self = .gateway
|
|
602
|
-
case 3: self = .cylinderLock
|
|
603
|
-
case 4: self = .doorHandleLock
|
|
604
|
-
case 5: self = .wallReader
|
|
605
|
-
case 6: self = .kiosk
|
|
606
|
-
case 7: self = .cylinderLockCompact
|
|
607
|
-
case 8: self = .furnitureLock
|
|
608
|
-
default: return nil
|
|
609
|
-
}
|
|
610
|
-
}
|
|
611
|
-
|
|
612
|
-
public var rawValue: Int {
|
|
613
|
-
switch self {
|
|
614
|
-
case .unknownHardware: return 0
|
|
615
|
-
case .testHardware: return 1
|
|
616
|
-
case .gateway: return 2
|
|
617
|
-
case .cylinderLock: return 3
|
|
618
|
-
case .doorHandleLock: return 4
|
|
619
|
-
case .wallReader: return 5
|
|
620
|
-
case .kiosk: return 6
|
|
621
|
-
case .cylinderLockCompact: return 7
|
|
622
|
-
case .furnitureLock: return 8
|
|
623
|
-
}
|
|
624
|
-
}
|
|
625
|
-
|
|
626
260
|
}
|
|
627
261
|
|
|
628
|
-
public enum BlueBatteryLevel: SwiftProtobuf.Enum, Swift.CaseIterable {
|
|
629
|
-
|
|
630
|
-
case
|
|
631
|
-
case
|
|
632
|
-
case
|
|
633
|
-
case
|
|
634
|
-
case
|
|
635
|
-
case almostEmpty // = 13
|
|
262
|
+
public enum BlueBatteryLevel: Int, SwiftProtobuf.Enum, Swift.CaseIterable {
|
|
263
|
+
case unknownBattery = 0
|
|
264
|
+
case onPower = 1
|
|
265
|
+
case goodPower = 10
|
|
266
|
+
case lowPower = 11
|
|
267
|
+
case criticalPower = 12
|
|
268
|
+
case almostEmpty = 13
|
|
636
269
|
|
|
637
270
|
/// 0% (100) - 100% (200)
|
|
638
|
-
case fullyDischarged
|
|
639
|
-
case fullyCharged
|
|
271
|
+
case fullyDischarged = 100
|
|
272
|
+
case fullyCharged = 200
|
|
640
273
|
|
|
641
274
|
public init() {
|
|
642
275
|
self = .unknownBattery
|
|
643
276
|
}
|
|
644
277
|
|
|
645
|
-
public init?(rawValue: Int) {
|
|
646
|
-
switch rawValue {
|
|
647
|
-
case 0: self = .unknownBattery
|
|
648
|
-
case 1: self = .onPower
|
|
649
|
-
case 10: self = .goodPower
|
|
650
|
-
case 11: self = .lowPower
|
|
651
|
-
case 12: self = .criticalPower
|
|
652
|
-
case 13: self = .almostEmpty
|
|
653
|
-
case 100: self = .fullyDischarged
|
|
654
|
-
case 200: self = .fullyCharged
|
|
655
|
-
default: return nil
|
|
656
|
-
}
|
|
657
|
-
}
|
|
658
|
-
|
|
659
|
-
public var rawValue: Int {
|
|
660
|
-
switch self {
|
|
661
|
-
case .unknownBattery: return 0
|
|
662
|
-
case .onPower: return 1
|
|
663
|
-
case .goodPower: return 10
|
|
664
|
-
case .lowPower: return 11
|
|
665
|
-
case .criticalPower: return 12
|
|
666
|
-
case .almostEmpty: return 13
|
|
667
|
-
case .fullyDischarged: return 100
|
|
668
|
-
case .fullyCharged: return 200
|
|
669
|
-
}
|
|
670
|
-
}
|
|
671
|
-
|
|
672
278
|
}
|
|
673
279
|
|
|
674
|
-
public enum BlueEventId: SwiftProtobuf.Enum, Swift.CaseIterable {
|
|
675
|
-
public typealias RawValue = Int
|
|
280
|
+
public enum BlueEventId: Int, SwiftProtobuf.Enum, Swift.CaseIterable {
|
|
676
281
|
|
|
677
282
|
///* eventInfo = 0
|
|
678
|
-
case batteryLow
|
|
283
|
+
case batteryLow = 1
|
|
679
284
|
|
|
680
285
|
///* eventInfo = 0
|
|
681
|
-
case batteryReplaced
|
|
286
|
+
case batteryReplaced = 2
|
|
682
287
|
|
|
683
288
|
///* eventInfo = 0
|
|
684
|
-
case lockJammed
|
|
289
|
+
case lockJammed = 3
|
|
685
290
|
|
|
686
291
|
///* eventInfo = BlueEventInfoSystem
|
|
687
|
-
case systemEvent
|
|
292
|
+
case systemEvent = 4
|
|
688
293
|
|
|
689
294
|
///* eventInfo = 0
|
|
690
|
-
case internalError
|
|
295
|
+
case internalError = 5
|
|
691
296
|
|
|
692
297
|
///* eventInfo = 0
|
|
693
|
-
case failedToUnlock
|
|
298
|
+
case failedToUnlock = 6
|
|
694
299
|
|
|
695
300
|
///* eventInfo = 0
|
|
696
|
-
case tamperingDetected
|
|
301
|
+
case tamperingDetected = 7
|
|
697
302
|
|
|
698
303
|
///* eventInfo = 0
|
|
699
|
-
case blacklistedCredentialDetected
|
|
304
|
+
case blacklistedCredentialDetected = 8
|
|
700
305
|
|
|
701
306
|
///* eventInfo = 0
|
|
702
|
-
case blacklistFull
|
|
307
|
+
case blacklistFull = 9
|
|
703
308
|
|
|
704
309
|
///* eventInfo = BlueEventInfoAccess
|
|
705
|
-
case accessGranted
|
|
310
|
+
case accessGranted = 10
|
|
706
311
|
|
|
707
312
|
///* eventInfo = BlueEventInfoAccess
|
|
708
|
-
case accessDenied
|
|
313
|
+
case accessDenied = 11
|
|
709
314
|
|
|
710
315
|
///* eventInfo = 0
|
|
711
|
-
case crcerror
|
|
712
|
-
case maxOssSoEventID
|
|
316
|
+
case crcerror = 12
|
|
317
|
+
case maxOssSoEventID = 13
|
|
713
318
|
|
|
714
319
|
///* eventInfo = BlueReturnCode
|
|
715
|
-
case terminalCommand
|
|
320
|
+
case terminalCommand = 14
|
|
716
321
|
|
|
717
322
|
///* eventInfo = BlueReturnCode
|
|
718
|
-
case terminalOss
|
|
323
|
+
case terminalOss = 15
|
|
719
324
|
|
|
720
325
|
public init() {
|
|
721
326
|
self = .batteryLow
|
|
722
327
|
}
|
|
723
328
|
|
|
724
|
-
public init?(rawValue: Int) {
|
|
725
|
-
switch rawValue {
|
|
726
|
-
case 1: self = .batteryLow
|
|
727
|
-
case 2: self = .batteryReplaced
|
|
728
|
-
case 3: self = .lockJammed
|
|
729
|
-
case 4: self = .systemEvent
|
|
730
|
-
case 5: self = .internalError
|
|
731
|
-
case 6: self = .failedToUnlock
|
|
732
|
-
case 7: self = .tamperingDetected
|
|
733
|
-
case 8: self = .blacklistedCredentialDetected
|
|
734
|
-
case 9: self = .blacklistFull
|
|
735
|
-
case 10: self = .accessGranted
|
|
736
|
-
case 11: self = .accessDenied
|
|
737
|
-
case 12: self = .crcerror
|
|
738
|
-
case 13: self = .maxOssSoEventID
|
|
739
|
-
case 14: self = .terminalCommand
|
|
740
|
-
case 15: self = .terminalOss
|
|
741
|
-
default: return nil
|
|
742
|
-
}
|
|
743
|
-
}
|
|
744
|
-
|
|
745
|
-
public var rawValue: Int {
|
|
746
|
-
switch self {
|
|
747
|
-
case .batteryLow: return 1
|
|
748
|
-
case .batteryReplaced: return 2
|
|
749
|
-
case .lockJammed: return 3
|
|
750
|
-
case .systemEvent: return 4
|
|
751
|
-
case .internalError: return 5
|
|
752
|
-
case .failedToUnlock: return 6
|
|
753
|
-
case .tamperingDetected: return 7
|
|
754
|
-
case .blacklistedCredentialDetected: return 8
|
|
755
|
-
case .blacklistFull: return 9
|
|
756
|
-
case .accessGranted: return 10
|
|
757
|
-
case .accessDenied: return 11
|
|
758
|
-
case .crcerror: return 12
|
|
759
|
-
case .maxOssSoEventID: return 13
|
|
760
|
-
case .terminalCommand: return 14
|
|
761
|
-
case .terminalOss: return 15
|
|
762
|
-
}
|
|
763
|
-
}
|
|
764
|
-
|
|
765
329
|
}
|
|
766
330
|
|
|
767
|
-
public enum BlueEventInfoSystem: SwiftProtobuf.Enum, Swift.CaseIterable {
|
|
768
|
-
|
|
769
|
-
case
|
|
770
|
-
case systemConfigured // = 2
|
|
331
|
+
public enum BlueEventInfoSystem: Int, SwiftProtobuf.Enum, Swift.CaseIterable {
|
|
332
|
+
case systemRestart = 1
|
|
333
|
+
case systemConfigured = 2
|
|
771
334
|
|
|
772
335
|
public init() {
|
|
773
336
|
self = .systemRestart
|
|
774
337
|
}
|
|
775
338
|
|
|
776
|
-
public init?(rawValue: Int) {
|
|
777
|
-
switch rawValue {
|
|
778
|
-
case 1: self = .systemRestart
|
|
779
|
-
case 2: self = .systemConfigured
|
|
780
|
-
default: return nil
|
|
781
|
-
}
|
|
782
|
-
}
|
|
783
|
-
|
|
784
|
-
public var rawValue: Int {
|
|
785
|
-
switch self {
|
|
786
|
-
case .systemRestart: return 1
|
|
787
|
-
case .systemConfigured: return 2
|
|
788
|
-
}
|
|
789
|
-
}
|
|
790
|
-
|
|
791
339
|
}
|
|
792
340
|
|
|
793
|
-
public enum BlueEventInfoAccess: SwiftProtobuf.Enum, Swift.CaseIterable {
|
|
794
|
-
|
|
795
|
-
case
|
|
796
|
-
case
|
|
797
|
-
case
|
|
798
|
-
case
|
|
799
|
-
case
|
|
800
|
-
case
|
|
801
|
-
case
|
|
802
|
-
case
|
|
803
|
-
case
|
|
804
|
-
case
|
|
805
|
-
case
|
|
806
|
-
case deniedInvalidTransponderData // = 135
|
|
341
|
+
public enum BlueEventInfoAccess: Int, SwiftProtobuf.Enum, Swift.CaseIterable {
|
|
342
|
+
case granted = 1
|
|
343
|
+
case grantedDefaultTime = 2
|
|
344
|
+
case grantedExtendedTime = 3
|
|
345
|
+
case grantedToggleUnlock = 4
|
|
346
|
+
case grantedToggleLock = 5
|
|
347
|
+
case denied = 128
|
|
348
|
+
case deniedBlacklisted = 130
|
|
349
|
+
case deniedValidity = 131
|
|
350
|
+
case deniedDtschedule = 132
|
|
351
|
+
case deniedInternalError = 133
|
|
352
|
+
case deniedTransponderError = 134
|
|
353
|
+
case deniedInvalidTransponderData = 135
|
|
807
354
|
|
|
808
355
|
public init() {
|
|
809
356
|
self = .granted
|
|
810
357
|
}
|
|
811
358
|
|
|
812
|
-
public init?(rawValue: Int) {
|
|
813
|
-
switch rawValue {
|
|
814
|
-
case 1: self = .granted
|
|
815
|
-
case 2: self = .grantedDefaultTime
|
|
816
|
-
case 3: self = .grantedExtendedTime
|
|
817
|
-
case 4: self = .grantedToggleUnlock
|
|
818
|
-
case 5: self = .grantedToggleLock
|
|
819
|
-
case 128: self = .denied
|
|
820
|
-
case 130: self = .deniedBlacklisted
|
|
821
|
-
case 131: self = .deniedValidity
|
|
822
|
-
case 132: self = .deniedDtschedule
|
|
823
|
-
case 133: self = .deniedInternalError
|
|
824
|
-
case 134: self = .deniedTransponderError
|
|
825
|
-
case 135: self = .deniedInvalidTransponderData
|
|
826
|
-
default: return nil
|
|
827
|
-
}
|
|
828
|
-
}
|
|
829
|
-
|
|
830
|
-
public var rawValue: Int {
|
|
831
|
-
switch self {
|
|
832
|
-
case .granted: return 1
|
|
833
|
-
case .grantedDefaultTime: return 2
|
|
834
|
-
case .grantedExtendedTime: return 3
|
|
835
|
-
case .grantedToggleUnlock: return 4
|
|
836
|
-
case .grantedToggleLock: return 5
|
|
837
|
-
case .denied: return 128
|
|
838
|
-
case .deniedBlacklisted: return 130
|
|
839
|
-
case .deniedValidity: return 131
|
|
840
|
-
case .deniedDtschedule: return 132
|
|
841
|
-
case .deniedInternalError: return 133
|
|
842
|
-
case .deniedTransponderError: return 134
|
|
843
|
-
case .deniedInvalidTransponderData: return 135
|
|
844
|
-
}
|
|
845
|
-
}
|
|
846
|
-
|
|
847
359
|
}
|
|
848
360
|
|
|
849
|
-
public enum BlueOssCredentialTypeSource: SwiftProtobuf.Enum, Swift.CaseIterable {
|
|
850
|
-
|
|
851
|
-
case
|
|
852
|
-
case proprietary // = 1
|
|
361
|
+
public enum BlueOssCredentialTypeSource: Int, SwiftProtobuf.Enum, Swift.CaseIterable {
|
|
362
|
+
case oss = 0
|
|
363
|
+
case proprietary = 1
|
|
853
364
|
|
|
854
365
|
public init() {
|
|
855
366
|
self = .oss
|
|
856
367
|
}
|
|
857
368
|
|
|
858
|
-
public init?(rawValue: Int) {
|
|
859
|
-
switch rawValue {
|
|
860
|
-
case 0: self = .oss
|
|
861
|
-
case 1: self = .proprietary
|
|
862
|
-
default: return nil
|
|
863
|
-
}
|
|
864
|
-
}
|
|
865
|
-
|
|
866
|
-
public var rawValue: Int {
|
|
867
|
-
switch self {
|
|
868
|
-
case .oss: return 0
|
|
869
|
-
case .proprietary: return 1
|
|
870
|
-
}
|
|
871
|
-
}
|
|
872
|
-
|
|
873
369
|
}
|
|
874
370
|
|
|
875
|
-
public enum BlueOssSoCredentialTypeOssCredential: SwiftProtobuf.Enum, Swift.CaseIterable {
|
|
876
|
-
|
|
877
|
-
case
|
|
878
|
-
case interventionMedia // = 1
|
|
371
|
+
public enum BlueOssSoCredentialTypeOssCredential: Int, SwiftProtobuf.Enum, Swift.CaseIterable {
|
|
372
|
+
case standard = 0
|
|
373
|
+
case interventionMedia = 1
|
|
879
374
|
|
|
880
375
|
public init() {
|
|
881
376
|
self = .standard
|
|
882
377
|
}
|
|
883
378
|
|
|
884
|
-
public init?(rawValue: Int) {
|
|
885
|
-
switch rawValue {
|
|
886
|
-
case 0: self = .standard
|
|
887
|
-
case 1: self = .interventionMedia
|
|
888
|
-
default: return nil
|
|
889
|
-
}
|
|
890
|
-
}
|
|
891
|
-
|
|
892
|
-
public var rawValue: Int {
|
|
893
|
-
switch self {
|
|
894
|
-
case .standard: return 0
|
|
895
|
-
case .interventionMedia: return 1
|
|
896
|
-
}
|
|
897
|
-
}
|
|
898
|
-
|
|
899
379
|
}
|
|
900
380
|
|
|
901
|
-
public enum BlueOssSoDoorGroupId: SwiftProtobuf.Enum, Swift.CaseIterable {
|
|
902
|
-
|
|
903
|
-
case masterGroupID // = 65535
|
|
381
|
+
public enum BlueOssSoDoorGroupId: Int, SwiftProtobuf.Enum, Swift.CaseIterable {
|
|
382
|
+
case masterGroupID = 65535
|
|
904
383
|
|
|
905
384
|
public init() {
|
|
906
385
|
self = .masterGroupID
|
|
907
386
|
}
|
|
908
387
|
|
|
909
|
-
public init?(rawValue: Int) {
|
|
910
|
-
switch rawValue {
|
|
911
|
-
case 65535: self = .masterGroupID
|
|
912
|
-
default: return nil
|
|
913
|
-
}
|
|
914
|
-
}
|
|
915
|
-
|
|
916
|
-
public var rawValue: Int {
|
|
917
|
-
switch self {
|
|
918
|
-
case .masterGroupID: return 65535
|
|
919
|
-
}
|
|
920
|
-
}
|
|
921
|
-
|
|
922
388
|
}
|
|
923
389
|
|
|
924
|
-
public enum BlueOssSoDoorInfoAccessBy: SwiftProtobuf.Enum, Swift.CaseIterable {
|
|
925
|
-
|
|
926
|
-
case
|
|
927
|
-
case doorID // = 1
|
|
390
|
+
public enum BlueOssSoDoorInfoAccessBy: Int, SwiftProtobuf.Enum, Swift.CaseIterable {
|
|
391
|
+
case doorGroupID = 0
|
|
392
|
+
case doorID = 1
|
|
928
393
|
|
|
929
394
|
public init() {
|
|
930
395
|
self = .doorGroupID
|
|
931
396
|
}
|
|
932
397
|
|
|
933
|
-
public init?(rawValue: Int) {
|
|
934
|
-
switch rawValue {
|
|
935
|
-
case 0: self = .doorGroupID
|
|
936
|
-
case 1: self = .doorID
|
|
937
|
-
default: return nil
|
|
938
|
-
}
|
|
939
|
-
}
|
|
940
|
-
|
|
941
|
-
public var rawValue: Int {
|
|
942
|
-
switch self {
|
|
943
|
-
case .doorGroupID: return 0
|
|
944
|
-
case .doorID: return 1
|
|
945
|
-
}
|
|
946
|
-
}
|
|
947
|
-
|
|
948
398
|
}
|
|
949
399
|
|
|
950
|
-
public enum BlueOssSoFileId: SwiftProtobuf.Enum, Swift.CaseIterable {
|
|
951
|
-
|
|
952
|
-
case
|
|
953
|
-
case
|
|
954
|
-
case
|
|
955
|
-
case
|
|
956
|
-
case customerExtensions // = 4
|
|
400
|
+
public enum BlueOssSoFileId: Int, SwiftProtobuf.Enum, Swift.CaseIterable {
|
|
401
|
+
case info = 0
|
|
402
|
+
case data = 1
|
|
403
|
+
case event = 2
|
|
404
|
+
case blacklist = 3
|
|
405
|
+
case customerExtensions = 4
|
|
957
406
|
|
|
958
407
|
public init() {
|
|
959
408
|
self = .info
|
|
960
409
|
}
|
|
961
410
|
|
|
962
|
-
public init?(rawValue: Int) {
|
|
963
|
-
switch rawValue {
|
|
964
|
-
case 0: self = .info
|
|
965
|
-
case 1: self = .data
|
|
966
|
-
case 2: self = .event
|
|
967
|
-
case 3: self = .blacklist
|
|
968
|
-
case 4: self = .customerExtensions
|
|
969
|
-
default: return nil
|
|
970
|
-
}
|
|
971
|
-
}
|
|
972
|
-
|
|
973
|
-
public var rawValue: Int {
|
|
974
|
-
switch self {
|
|
975
|
-
case .info: return 0
|
|
976
|
-
case .data: return 1
|
|
977
|
-
case .event: return 2
|
|
978
|
-
case .blacklist: return 3
|
|
979
|
-
case .customerExtensions: return 4
|
|
980
|
-
}
|
|
981
|
-
}
|
|
982
|
-
|
|
983
411
|
}
|
|
984
412
|
|
|
985
|
-
public enum BlueOssSoWriteStatus: SwiftProtobuf.Enum, Swift.CaseIterable {
|
|
986
|
-
public typealias RawValue = Int
|
|
413
|
+
public enum BlueOssSoWriteStatus: Int, SwiftProtobuf.Enum, Swift.CaseIterable {
|
|
987
414
|
|
|
988
415
|
/// transponder is writable with the default DES master key.
|
|
989
|
-
case writableByAnyOrg
|
|
416
|
+
case writableByAnyOrg = 0
|
|
990
417
|
|
|
991
418
|
/// transponder is writable with the organization's specific master key.
|
|
992
|
-
case writableBySpecificOrg
|
|
419
|
+
case writableBySpecificOrg = 1
|
|
993
420
|
|
|
994
421
|
/// transponder cannot be written.
|
|
995
|
-
case notWritable
|
|
422
|
+
case notWritable = 2
|
|
996
423
|
|
|
997
424
|
public init() {
|
|
998
425
|
self = .writableByAnyOrg
|
|
999
426
|
}
|
|
1000
427
|
|
|
1001
|
-
public init?(rawValue: Int) {
|
|
1002
|
-
switch rawValue {
|
|
1003
|
-
case 0: self = .writableByAnyOrg
|
|
1004
|
-
case 1: self = .writableBySpecificOrg
|
|
1005
|
-
case 2: self = .notWritable
|
|
1006
|
-
default: return nil
|
|
1007
|
-
}
|
|
1008
|
-
}
|
|
1009
|
-
|
|
1010
|
-
public var rawValue: Int {
|
|
1011
|
-
switch self {
|
|
1012
|
-
case .writableByAnyOrg: return 0
|
|
1013
|
-
case .writableBySpecificOrg: return 1
|
|
1014
|
-
case .notWritable: return 2
|
|
1015
|
-
}
|
|
1016
|
-
}
|
|
1017
|
-
|
|
1018
428
|
}
|
|
1019
429
|
|
|
1020
430
|
public struct BlueSharedDemoData: @unchecked Sendable {
|
|
@@ -6294,15 +5704,11 @@ extension BlueOssSoConfiguration: SwiftProtobuf.Message, SwiftProtobuf._MessageI
|
|
|
6294
5704
|
var _blacklist: BlueOssSoFileBlacklist? = nil
|
|
6295
5705
|
var _customerExtensions: BlueOssSoFileCustomerExtensions? = nil
|
|
6296
5706
|
|
|
6297
|
-
#if swift(>=5.10)
|
|
6298
5707
|
// This property is used as the initial default value for new instances of the type.
|
|
6299
5708
|
// The type itself is protecting the reference to its storage via CoW semantics.
|
|
6300
5709
|
// This will force a copy to be made of this reference when the first mutation occurs;
|
|
6301
5710
|
// hence, it is safe to mark this as `nonisolated(unsafe)`.
|
|
6302
5711
|
static nonisolated(unsafe) let defaultInstance = _StorageClass()
|
|
6303
|
-
#else
|
|
6304
|
-
static let defaultInstance = _StorageClass()
|
|
6305
|
-
#endif
|
|
6306
5712
|
|
|
6307
5713
|
private init() {}
|
|
6308
5714
|
|