@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.
@@ -20,36 +20,16 @@ fileprivate struct _GeneratedWithProtocGenSwiftVersion: SwiftProtobuf.ProtobufAP
20
20
  typealias Version = _2
21
21
  }
22
22
 
23
- public enum BlueLockState: SwiftProtobuf.Enum, Swift.CaseIterable {
24
- public typealias RawValue = Int
25
- case unknownLockState // = 1
26
- case locked // = 2
27
- case unlocked // = 3
28
- case jammed // = 4
23
+ public enum BlueLockState: Int, SwiftProtobuf.Enum, Swift.CaseIterable {
24
+ case unknownLockState = 1
25
+ case locked = 2
26
+ case unlocked = 3
27
+ case jammed = 4
29
28
 
30
29
  public init() {
31
30
  self = .unknownLockState
32
31
  }
33
32
 
34
- public init?(rawValue: Int) {
35
- switch rawValue {
36
- case 1: self = .unknownLockState
37
- case 2: self = .locked
38
- case 3: self = .unlocked
39
- case 4: self = .jammed
40
- default: return nil
41
- }
42
- }
43
-
44
- public var rawValue: Int {
45
- switch self {
46
- case .unknownLockState: return 1
47
- case .locked: return 2
48
- case .unlocked: return 3
49
- case .jammed: return 4
50
- }
51
- }
52
-
53
33
  }
54
34
 
55
35
  public struct BlueLockConfig: Sendable {
@@ -21,62 +21,26 @@ fileprivate struct _GeneratedWithProtocGenSwiftVersion: SwiftProtobuf.ProtobufAP
21
21
  typealias Version = _2
22
22
  }
23
23
 
24
- public enum BlueDeviceType: SwiftProtobuf.Enum, Swift.CaseIterable {
25
- public typealias RawValue = Int
26
- case bluetoothDevice // = 1
27
- case uwbdevice // = 2
24
+ public enum BlueDeviceType: Int, SwiftProtobuf.Enum, Swift.CaseIterable {
25
+ case bluetoothDevice = 1
26
+ case uwbdevice = 2
28
27
 
29
28
  public init() {
30
29
  self = .bluetoothDevice
31
30
  }
32
31
 
33
- public init?(rawValue: Int) {
34
- switch rawValue {
35
- case 1: self = .bluetoothDevice
36
- case 2: self = .uwbdevice
37
- default: return nil
38
- }
39
- }
40
-
41
- public var rawValue: Int {
42
- switch self {
43
- case .bluetoothDevice: return 1
44
- case .uwbdevice: return 2
45
- }
46
- }
47
-
48
32
  }
49
33
 
50
- public enum BlueRefreshOssSoCredentialStatus: SwiftProtobuf.Enum, Swift.CaseIterable {
51
- public typealias RawValue = Int
52
- case succeeded // = 1
53
- case failed // = 2
54
- case notNeeded // = 3
55
- case unsupported // = 4
34
+ public enum BlueRefreshOssSoCredentialStatus: Int, SwiftProtobuf.Enum, Swift.CaseIterable {
35
+ case succeeded = 1
36
+ case failed = 2
37
+ case notNeeded = 3
38
+ case unsupported = 4
56
39
 
57
40
  public init() {
58
41
  self = .succeeded
59
42
  }
60
43
 
61
- public init?(rawValue: Int) {
62
- switch rawValue {
63
- case 1: self = .succeeded
64
- case 2: self = .failed
65
- case 3: self = .notNeeded
66
- case 4: self = .unsupported
67
- default: return nil
68
- }
69
- }
70
-
71
- public var rawValue: Int {
72
- switch self {
73
- case .succeeded: return 1
74
- case .failed: return 2
75
- case .notNeeded: return 3
76
- case .unsupported: return 4
77
- }
78
- }
79
-
80
44
  }
81
45
 
82
46
  public struct BlueI18n: @unchecked Sendable {
@@ -1892,15 +1856,11 @@ extension BlueI18n: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationB
1892
1856
  var _openViaOssSoSelectAccessTypeTitle: String? = nil
1893
1857
  var _openViaOssSoSelectAccessTypeMessage: String? = nil
1894
1858
 
1895
- #if swift(>=5.10)
1896
1859
  // This property is used as the initial default value for new instances of the type.
1897
1860
  // The type itself is protecting the reference to its storage via CoW semantics.
1898
1861
  // This will force a copy to be made of this reference when the first mutation occurs;
1899
1862
  // hence, it is safe to mark this as `nonisolated(unsafe)`.
1900
1863
  static nonisolated(unsafe) let defaultInstance = _StorageClass()
1901
- #else
1902
- static let defaultInstance = _StorageClass()
1903
- #endif
1904
1864
 
1905
1865
  private init() {}
1906
1866
 
@@ -2646,15 +2606,11 @@ extension BlueIdentity: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementat
2646
2606
  var _privateKey: Data? = nil
2647
2607
  var _status: String? = nil
2648
2608
 
2649
- #if swift(>=5.10)
2650
2609
  // This property is used as the initial default value for new instances of the type.
2651
2610
  // The type itself is protecting the reference to its storage via CoW semantics.
2652
2611
  // This will force a copy to be made of this reference when the first mutation occurs;
2653
2612
  // hence, it is safe to mark this as `nonisolated(unsafe)`.
2654
2613
  static nonisolated(unsafe) let defaultInstance = _StorageClass()
2655
- #else
2656
- static let defaultInstance = _StorageClass()
2657
- #endif
2658
2614
 
2659
2615
  private init() {}
2660
2616
 
@@ -3617,15 +3573,11 @@ extension BlueAccessCredential: SwiftProtobuf.Message, SwiftProtobuf._MessageImp
3617
3573
  var _organisation: String? = nil
3618
3574
  var _organisationName: String? = nil
3619
3575
 
3620
- #if swift(>=5.10)
3621
3576
  // This property is used as the initial default value for new instances of the type.
3622
3577
  // The type itself is protecting the reference to its storage via CoW semantics.
3623
3578
  // This will force a copy to be made of this reference when the first mutation occurs;
3624
3579
  // hence, it is safe to mark this as `nonisolated(unsafe)`.
3625
3580
  static nonisolated(unsafe) let defaultInstance = _StorageClass()
3626
- #else
3627
- static let defaultInstance = _StorageClass()
3628
- #endif
3629
3581
 
3630
3582
  private init() {}
3631
3583
 
@@ -1551,15 +1551,11 @@ extension BlueSystemConfig: SwiftProtobuf.Message, SwiftProtobuf._MessageImpleme
1551
1551
  var _oss: BlueOssConfig? = nil
1552
1552
  var _lock: BlueLockConfig? = nil
1553
1553
 
1554
- #if swift(>=5.10)
1555
1554
  // This property is used as the initial default value for new instances of the type.
1556
1555
  // The type itself is protecting the reference to its storage via CoW semantics.
1557
1556
  // This will force a copy to be made of this reference when the first mutation occurs;
1558
1557
  // hence, it is safe to mark this as `nonisolated(unsafe)`.
1559
1558
  static nonisolated(unsafe) let defaultInstance = _StorageClass()
1560
- #else
1561
- static let defaultInstance = _StorageClass()
1562
- #endif
1563
1559
 
1564
1560
  private init() {}
1565
1561
 
@@ -1975,15 +1971,11 @@ extension BlueSystemStatus: SwiftProtobuf.Message, SwiftProtobuf._MessageImpleme
1975
1971
  var _lock: BlueLockStatus? = nil
1976
1972
  var _applicationVersionTest: UInt32? = nil
1977
1973
 
1978
- #if swift(>=5.10)
1979
1974
  // This property is used as the initial default value for new instances of the type.
1980
1975
  // The type itself is protecting the reference to its storage via CoW semantics.
1981
1976
  // This will force a copy to be made of this reference when the first mutation occurs;
1982
1977
  // hence, it is safe to mark this as `nonisolated(unsafe)`.
1983
1978
  static nonisolated(unsafe) let defaultInstance = _StorageClass()
1984
- #else
1985
- static let defaultInstance = _StorageClass()
1986
- #endif
1987
1979
 
1988
1980
  private init() {}
1989
1981