@blueid/access-proto 7.5.0 → 7.7.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/BlueSystem.proto CHANGED
@@ -88,6 +88,9 @@ message BlueAccessConfig {
88
88
 
89
89
  // The access groups this device is part of
90
90
  repeated BlueAccessConfigGroup groups = 3 [ (nanopb).max_count = 10 ];
91
+
92
+ // The device's unique access id (16-bit)
93
+ optional uint32 extendedId = 4 [ (nanopb).int_size = IS_16, default = 1 ];
91
94
  }
92
95
 
93
96
  message BlueOssConfig {
@@ -232,6 +232,13 @@ export declare class BlueAccessConfig extends Message<BlueAccessConfig> {
232
232
  */
233
233
  groups: BlueAccessConfigGroup[];
234
234
 
235
+ /**
236
+ * The device's unique access id (16-bit)
237
+ *
238
+ * @generated from field: optional uint32 extendedId = 4 [default = 1];
239
+ */
240
+ extendedId?: number;
241
+
235
242
  constructor(data?: PartialMessage<BlueAccessConfig>);
236
243
 
237
244
  static readonly runtime: typeof proto2;
@@ -120,7 +120,8 @@ const BlueAccessConfig = import_protobuf.proto2.makeMessageType(
120
120
  () => [
121
121
  { no: 1, name: "id", kind: "scalar", T: 13, default: 1 },
122
122
  { no: 2, name: "siteId", kind: "scalar", T: 13, default: 1 },
123
- { no: 3, name: "groups", kind: "message", T: BlueAccessConfigGroup, repeated: true }
123
+ { no: 3, name: "groups", kind: "message", T: BlueAccessConfigGroup, repeated: true },
124
+ { no: 4, name: "extendedId", kind: "scalar", T: 13, opt: true, default: 1 }
124
125
  ]
125
126
  );
126
127
  const BlueOssConfig = import_protobuf.proto2.makeMessageType(
@@ -232,6 +232,13 @@ export declare class BlueAccessConfig extends Message<BlueAccessConfig> {
232
232
  */
233
233
  groups: BlueAccessConfigGroup[];
234
234
 
235
+ /**
236
+ * The device's unique access id (16-bit)
237
+ *
238
+ * @generated from field: optional uint32 extendedId = 4 [default = 1];
239
+ */
240
+ extendedId?: number;
241
+
235
242
  constructor(data?: PartialMessage<BlueAccessConfig>);
236
243
 
237
244
  static readonly runtime: typeof proto2;
@@ -70,6 +70,7 @@ export const BlueAccessConfig = proto2.makeMessageType(
70
70
  { no: 1, name: "id", kind: "scalar", T: 13 /* ScalarType.UINT32 */, default: 1 },
71
71
  { no: 2, name: "siteId", kind: "scalar", T: 13 /* ScalarType.UINT32 */, default: 1 },
72
72
  { no: 3, name: "groups", kind: "message", T: BlueAccessConfigGroup, repeated: true },
73
+ { no: 4, name: "extendedId", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true, default: 1 },
73
74
  ],
74
75
  );
75
76
 
@@ -74,6 +74,9 @@ typedef struct BlueAccessConfig {
74
74
  /* The access groups this device is part of */
75
75
  pb_size_t groups_count;
76
76
  BlueAccessConfigGroup_t groups[10];
77
+ /* The device's unique access id (16-bit) */
78
+ bool has_extendedId;
79
+ uint16_t extendedId;
77
80
  } BlueAccessConfig_t;
78
81
 
79
82
  typedef struct BlueOssConfig { /* -- Oss SecureId -- */
@@ -235,7 +238,7 @@ extern "C" {
235
238
  #define BLUEBLECONFIG_INIT_DEFAULT {true, 0, {BLUELOCALTIMESCHEDULE_INIT_DEFAULT, BLUELOCALTIMESCHEDULE_INIT_DEFAULT, BLUELOCALTIMESCHEDULE_INIT_DEFAULT, BLUELOCALTIMESCHEDULE_INIT_DEFAULT, BLUELOCALTIMESCHEDULE_INIT_DEFAULT, BLUELOCALTIMESCHEDULE_INIT_DEFAULT, BLUELOCALTIMESCHEDULE_INIT_DEFAULT, BLUELOCALTIMESCHEDULE_INIT_DEFAULT}, 0, {0, 0, 0, 0}, 500u, 3000u, 3u, -77, 0}
236
239
  #define BLUEONLINECONFIG_INIT_DEFAULT {0, {BLUELOCALTIMESCHEDULE_INIT_DEFAULT, BLUELOCALTIMESCHEDULE_INIT_DEFAULT, BLUELOCALTIMESCHEDULE_INIT_DEFAULT, BLUELOCALTIMESCHEDULE_INIT_DEFAULT}, "", "", 30u}
237
240
  #define BLUEACCESSCONFIGGROUP_INIT_DEFAULT {0, 0, {BLUELOCALTIMESCHEDULE_INIT_DEFAULT, BLUELOCALTIMESCHEDULE_INIT_DEFAULT}}
238
- #define BLUEACCESSCONFIG_INIT_DEFAULT {1u, 1u, 0, {BLUEACCESSCONFIGGROUP_INIT_DEFAULT, BLUEACCESSCONFIGGROUP_INIT_DEFAULT, BLUEACCESSCONFIGGROUP_INIT_DEFAULT, BLUEACCESSCONFIGGROUP_INIT_DEFAULT, BLUEACCESSCONFIGGROUP_INIT_DEFAULT, BLUEACCESSCONFIGGROUP_INIT_DEFAULT, BLUEACCESSCONFIGGROUP_INIT_DEFAULT, BLUEACCESSCONFIGGROUP_INIT_DEFAULT, BLUEACCESSCONFIGGROUP_INIT_DEFAULT, BLUEACCESSCONFIGGROUP_INIT_DEFAULT}}
241
+ #define BLUEACCESSCONFIG_INIT_DEFAULT {1u, 1u, 0, {BLUEACCESSCONFIGGROUP_INIT_DEFAULT, BLUEACCESSCONFIGGROUP_INIT_DEFAULT, BLUEACCESSCONFIGGROUP_INIT_DEFAULT, BLUEACCESSCONFIGGROUP_INIT_DEFAULT, BLUEACCESSCONFIGGROUP_INIT_DEFAULT, BLUEACCESSCONFIGGROUP_INIT_DEFAULT, BLUEACCESSCONFIGGROUP_INIT_DEFAULT, BLUEACCESSCONFIGGROUP_INIT_DEFAULT, BLUEACCESSCONFIGGROUP_INIT_DEFAULT, BLUEACCESSCONFIGGROUP_INIT_DEFAULT}, false, 1u}
239
242
  #define BLUEOSSCONFIG_INIT_DEFAULT {{0xff,0xee,0xdd,0xcc,0xbb,0xaa,0x99,0x88,0x77,0x66,0x55,0x44,0x33,0x22,0x11,0x00}, 16076801u, false, false, true, true, {0x10,0x11,0x12,0x13,0x14,0x15,0x16,0x17,0x18,0x19,0x1a,0x1b,0x1c,0x1d,0x1e,0x1f}, 16076800u}
240
243
  #define BLUESYSTEMAVRINFO_INIT_DEFAULT {0, 0, 0, false, 0}
241
244
  #define BLUESYSTEMCONFIG_INIT_DEFAULT {"", BLUEBASECONFIG_INIT_DEFAULT, BLUEBLECONFIG_INIT_DEFAULT, BLUEONLINECONFIG_INIT_DEFAULT, BLUEACCESSCONFIG_INIT_DEFAULT, BLUEOSSCONFIG_INIT_DEFAULT, false, BLUELOCKCONFIG_INIT_DEFAULT}
@@ -254,7 +257,7 @@ extern "C" {
254
257
  #define BLUEBLECONFIG_INIT_ZERO {0, 0, {BLUELOCALTIMESCHEDULE_INIT_ZERO, BLUELOCALTIMESCHEDULE_INIT_ZERO, BLUELOCALTIMESCHEDULE_INIT_ZERO, BLUELOCALTIMESCHEDULE_INIT_ZERO, BLUELOCALTIMESCHEDULE_INIT_ZERO, BLUELOCALTIMESCHEDULE_INIT_ZERO, BLUELOCALTIMESCHEDULE_INIT_ZERO, BLUELOCALTIMESCHEDULE_INIT_ZERO}, 0, {0, 0, 0, 0}, 0, 0, 0, 0, 0}
255
258
  #define BLUEONLINECONFIG_INIT_ZERO {0, {BLUELOCALTIMESCHEDULE_INIT_ZERO, BLUELOCALTIMESCHEDULE_INIT_ZERO, BLUELOCALTIMESCHEDULE_INIT_ZERO, BLUELOCALTIMESCHEDULE_INIT_ZERO}, "", "", 0}
256
259
  #define BLUEACCESSCONFIGGROUP_INIT_ZERO {0, 0, {BLUELOCALTIMESCHEDULE_INIT_ZERO, BLUELOCALTIMESCHEDULE_INIT_ZERO}}
257
- #define BLUEACCESSCONFIG_INIT_ZERO {0, 0, 0, {BLUEACCESSCONFIGGROUP_INIT_ZERO, BLUEACCESSCONFIGGROUP_INIT_ZERO, BLUEACCESSCONFIGGROUP_INIT_ZERO, BLUEACCESSCONFIGGROUP_INIT_ZERO, BLUEACCESSCONFIGGROUP_INIT_ZERO, BLUEACCESSCONFIGGROUP_INIT_ZERO, BLUEACCESSCONFIGGROUP_INIT_ZERO, BLUEACCESSCONFIGGROUP_INIT_ZERO, BLUEACCESSCONFIGGROUP_INIT_ZERO, BLUEACCESSCONFIGGROUP_INIT_ZERO}}
260
+ #define BLUEACCESSCONFIG_INIT_ZERO {0, 0, 0, {BLUEACCESSCONFIGGROUP_INIT_ZERO, BLUEACCESSCONFIGGROUP_INIT_ZERO, BLUEACCESSCONFIGGROUP_INIT_ZERO, BLUEACCESSCONFIGGROUP_INIT_ZERO, BLUEACCESSCONFIGGROUP_INIT_ZERO, BLUEACCESSCONFIGGROUP_INIT_ZERO, BLUEACCESSCONFIGGROUP_INIT_ZERO, BLUEACCESSCONFIGGROUP_INIT_ZERO, BLUEACCESSCONFIGGROUP_INIT_ZERO, BLUEACCESSCONFIGGROUP_INIT_ZERO}, false, 0}
258
261
  #define BLUEOSSCONFIG_INIT_ZERO {{0}, 0, 0, 0, 0, 0, {0}, 0}
259
262
  #define BLUESYSTEMAVRINFO_INIT_ZERO {0, 0, 0, false, 0}
260
263
  #define BLUESYSTEMCONFIG_INIT_ZERO {"", BLUEBASECONFIG_INIT_ZERO, BLUEBLECONFIG_INIT_ZERO, BLUEONLINECONFIG_INIT_ZERO, BLUEACCESSCONFIG_INIT_ZERO, BLUEOSSCONFIG_INIT_ZERO, false, BLUELOCKCONFIG_INIT_ZERO}
@@ -292,6 +295,7 @@ extern "C" {
292
295
  #define BLUEACCESSCONFIG_ID_TAG 1
293
296
  #define BLUEACCESSCONFIG_SITEID_TAG 2
294
297
  #define BLUEACCESSCONFIG_GROUPS_TAG 3
298
+ #define BLUEACCESSCONFIG_EXTENDEDID_TAG 4
295
299
  #define BLUEOSSCONFIG_SIDMIFAREAESKEY_TAG 1
296
300
  #define BLUEOSSCONFIG_SIDMIFAREAID_TAG 2
297
301
  #define BLUEOSSCONFIG_SOUPDATER_TAG 3
@@ -398,9 +402,10 @@ X(a, STATIC, REPEATED, MESSAGE, schedules, 2)
398
402
  #define BLUEACCESSCONFIG_FIELDLIST(X, a) \
399
403
  X(a, STATIC, REQUIRED, UINT32, id, 1) \
400
404
  X(a, STATIC, REQUIRED, UINT32, siteId, 2) \
401
- X(a, STATIC, REPEATED, MESSAGE, groups, 3)
405
+ X(a, STATIC, REPEATED, MESSAGE, groups, 3) \
406
+ X(a, STATIC, OPTIONAL, UINT32, extendedId, 4)
402
407
  #define BLUEACCESSCONFIG_CALLBACK NULL
403
- #define BLUEACCESSCONFIG_DEFAULT (const pb_byte_t*)"\x08\x01\x10\x01\x00"
408
+ #define BLUEACCESSCONFIG_DEFAULT (const pb_byte_t*)"\x08\x01\x10\x01\x20\x01\x00"
404
409
  #define BlueAccessConfig_t_groups_MSGTYPE BlueAccessConfigGroup_t
405
410
 
406
411
  #define BLUEOSSCONFIG_FIELDLIST(X, a) \
@@ -581,7 +586,7 @@ extern const pb_msgdesc_t BlueBlacklistEntries_t_msg;
581
586
 
582
587
  /* Maximum encoded size of messages (where known) */
583
588
  #define BLUEACCESSCONFIGGROUP_SIZE 79
584
- #define BLUEACCESSCONFIG_SIZE 816
589
+ #define BLUEACCESSCONFIG_SIZE 820
585
590
  #define BLUEBASECONFIG_SIZE 22
586
591
  #define BLUEBLACKLISTENTRIES_SIZE 2775
587
592
  #define BLUEBLECONFIG_SIZE 342
@@ -590,7 +595,7 @@ extern const pb_msgdesc_t BlueBlacklistEntries_t_msg;
590
595
  #define BLUEONLINECONFIG_SIZE 224
591
596
  #define BLUEOSSCONFIG_SIZE 56
592
597
  #define BLUESYSTEMAVRINFO_SIZE 15
593
- #define BLUESYSTEMCONFIG_SIZE 1657
598
+ #define BLUESYSTEMCONFIG_SIZE 1661
594
599
  #define BLUESYSTEMLOGENTRY_SIZE 152
595
600
  #define BLUESYSTEMLOGQUERY_SIZE 9
596
601
  #define BLUESYSTEMLOGRESULT_SIZE 1550
@@ -598,7 +603,7 @@ extern const pb_msgdesc_t BlueBlacklistEntries_t_msg;
598
603
  #define BLUESYSTEMSETTINGS_SIZE 48
599
604
  #define BLUESYSTEMSTATUS_SIZE 140
600
605
  #define BLUESYSTEMTIMEUNIX_SIZE 6
601
- #define BLUESYSTEMUPDATE_SIZE 1668
606
+ #define BLUESYSTEMUPDATE_SIZE 1672
602
607
 
603
608
  #ifdef __cplusplus
604
609
  } /* extern "C" */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blueid/access-proto",
3
- "version": "7.5.0",
3
+ "version": "7.7.0",
4
4
  "description": "BlueID Access Proto files",
5
5
  "author": "BlueID GmbH",
6
6
  "main": "cjs/index.js",
@@ -5704,11 +5704,15 @@ extension BlueOssSoConfiguration: SwiftProtobuf.Message, SwiftProtobuf._MessageI
5704
5704
  var _blacklist: BlueOssSoFileBlacklist? = nil
5705
5705
  var _customerExtensions: BlueOssSoFileCustomerExtensions? = nil
5706
5706
 
5707
+ #if swift(>=5.10)
5707
5708
  // This property is used as the initial default value for new instances of the type.
5708
5709
  // The type itself is protecting the reference to its storage via CoW semantics.
5709
5710
  // This will force a copy to be made of this reference when the first mutation occurs;
5710
5711
  // hence, it is safe to mark this as `nonisolated(unsafe)`.
5711
5712
  static nonisolated(unsafe) let defaultInstance = _StorageClass()
5713
+ #else
5714
+ static let defaultInstance = _StorageClass()
5715
+ #endif
5712
5716
 
5713
5717
  private init() {}
5714
5718
 
@@ -1856,11 +1856,15 @@ extension BlueI18n: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationB
1856
1856
  var _openViaOssSoSelectAccessTypeTitle: String? = nil
1857
1857
  var _openViaOssSoSelectAccessTypeMessage: String? = nil
1858
1858
 
1859
+ #if swift(>=5.10)
1859
1860
  // This property is used as the initial default value for new instances of the type.
1860
1861
  // The type itself is protecting the reference to its storage via CoW semantics.
1861
1862
  // This will force a copy to be made of this reference when the first mutation occurs;
1862
1863
  // hence, it is safe to mark this as `nonisolated(unsafe)`.
1863
1864
  static nonisolated(unsafe) let defaultInstance = _StorageClass()
1865
+ #else
1866
+ static let defaultInstance = _StorageClass()
1867
+ #endif
1864
1868
 
1865
1869
  private init() {}
1866
1870
 
@@ -2606,11 +2610,15 @@ extension BlueIdentity: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementat
2606
2610
  var _privateKey: Data? = nil
2607
2611
  var _status: String? = nil
2608
2612
 
2613
+ #if swift(>=5.10)
2609
2614
  // This property is used as the initial default value for new instances of the type.
2610
2615
  // The type itself is protecting the reference to its storage via CoW semantics.
2611
2616
  // This will force a copy to be made of this reference when the first mutation occurs;
2612
2617
  // hence, it is safe to mark this as `nonisolated(unsafe)`.
2613
2618
  static nonisolated(unsafe) let defaultInstance = _StorageClass()
2619
+ #else
2620
+ static let defaultInstance = _StorageClass()
2621
+ #endif
2614
2622
 
2615
2623
  private init() {}
2616
2624
 
@@ -3573,11 +3581,15 @@ extension BlueAccessCredential: SwiftProtobuf.Message, SwiftProtobuf._MessageImp
3573
3581
  var _organisation: String? = nil
3574
3582
  var _organisationName: String? = nil
3575
3583
 
3584
+ #if swift(>=5.10)
3576
3585
  // This property is used as the initial default value for new instances of the type.
3577
3586
  // The type itself is protecting the reference to its storage via CoW semantics.
3578
3587
  // This will force a copy to be made of this reference when the first mutation occurs;
3579
3588
  // hence, it is safe to mark this as `nonisolated(unsafe)`.
3580
3589
  static nonisolated(unsafe) let defaultInstance = _StorageClass()
3590
+ #else
3591
+ static let defaultInstance = _StorageClass()
3592
+ #endif
3581
3593
 
3582
3594
  private init() {}
3583
3595
 
@@ -261,12 +261,23 @@ public struct BlueAccessConfig: Sendable {
261
261
  /// The access groups this device is part of
262
262
  public var groups: [BlueAccessConfigGroup] = []
263
263
 
264
+ /// The device's unique access id (16-bit)
265
+ public var extendedID: UInt32 {
266
+ get {return _extendedID ?? 1}
267
+ set {_extendedID = newValue}
268
+ }
269
+ /// Returns true if `extendedID` has been explicitly set.
270
+ public var hasExtendedID: Bool {return self._extendedID != nil}
271
+ /// Clears the value of `extendedID`. Subsequent reads from it will return its default value.
272
+ public mutating func clearExtendedID() {self._extendedID = nil}
273
+
264
274
  public var unknownFields = SwiftProtobuf.UnknownStorage()
265
275
 
266
276
  public init() {}
267
277
 
268
278
  fileprivate var _id: UInt32? = nil
269
279
  fileprivate var _siteID: UInt32? = nil
280
+ fileprivate var _extendedID: UInt32? = nil
270
281
  }
271
282
 
272
283
  ///
@@ -1330,6 +1341,7 @@ extension BlueAccessConfig: SwiftProtobuf.Message, SwiftProtobuf._MessageImpleme
1330
1341
  1: .same(proto: "id"),
1331
1342
  2: .same(proto: "siteId"),
1332
1343
  3: .same(proto: "groups"),
1344
+ 4: .same(proto: "extendedId"),
1333
1345
  ]
1334
1346
 
1335
1347
  public var isInitialized: Bool {
@@ -1348,6 +1360,7 @@ extension BlueAccessConfig: SwiftProtobuf.Message, SwiftProtobuf._MessageImpleme
1348
1360
  case 1: try { try decoder.decodeSingularUInt32Field(value: &self._id) }()
1349
1361
  case 2: try { try decoder.decodeSingularUInt32Field(value: &self._siteID) }()
1350
1362
  case 3: try { try decoder.decodeRepeatedMessageField(value: &self.groups) }()
1363
+ case 4: try { try decoder.decodeSingularUInt32Field(value: &self._extendedID) }()
1351
1364
  default: break
1352
1365
  }
1353
1366
  }
@@ -1367,6 +1380,9 @@ extension BlueAccessConfig: SwiftProtobuf.Message, SwiftProtobuf._MessageImpleme
1367
1380
  if !self.groups.isEmpty {
1368
1381
  try visitor.visitRepeatedMessageField(value: self.groups, fieldNumber: 3)
1369
1382
  }
1383
+ try { if let v = self._extendedID {
1384
+ try visitor.visitSingularUInt32Field(value: v, fieldNumber: 4)
1385
+ } }()
1370
1386
  try unknownFields.traverse(visitor: &visitor)
1371
1387
  }
1372
1388
 
@@ -1374,6 +1390,7 @@ extension BlueAccessConfig: SwiftProtobuf.Message, SwiftProtobuf._MessageImpleme
1374
1390
  if lhs._id != rhs._id {return false}
1375
1391
  if lhs._siteID != rhs._siteID {return false}
1376
1392
  if lhs.groups != rhs.groups {return false}
1393
+ if lhs._extendedID != rhs._extendedID {return false}
1377
1394
  if lhs.unknownFields != rhs.unknownFields {return false}
1378
1395
  return true
1379
1396
  }
@@ -1551,11 +1568,15 @@ extension BlueSystemConfig: SwiftProtobuf.Message, SwiftProtobuf._MessageImpleme
1551
1568
  var _oss: BlueOssConfig? = nil
1552
1569
  var _lock: BlueLockConfig? = nil
1553
1570
 
1571
+ #if swift(>=5.10)
1554
1572
  // This property is used as the initial default value for new instances of the type.
1555
1573
  // The type itself is protecting the reference to its storage via CoW semantics.
1556
1574
  // This will force a copy to be made of this reference when the first mutation occurs;
1557
1575
  // hence, it is safe to mark this as `nonisolated(unsafe)`.
1558
1576
  static nonisolated(unsafe) let defaultInstance = _StorageClass()
1577
+ #else
1578
+ static let defaultInstance = _StorageClass()
1579
+ #endif
1559
1580
 
1560
1581
  private init() {}
1561
1582
 
@@ -1971,11 +1992,15 @@ extension BlueSystemStatus: SwiftProtobuf.Message, SwiftProtobuf._MessageImpleme
1971
1992
  var _lock: BlueLockStatus? = nil
1972
1993
  var _applicationVersionTest: UInt32? = nil
1973
1994
 
1995
+ #if swift(>=5.10)
1974
1996
  // This property is used as the initial default value for new instances of the type.
1975
1997
  // The type itself is protecting the reference to its storage via CoW semantics.
1976
1998
  // This will force a copy to be made of this reference when the first mutation occurs;
1977
1999
  // hence, it is safe to mark this as `nonisolated(unsafe)`.
1978
2000
  static nonisolated(unsafe) let defaultInstance = _StorageClass()
2001
+ #else
2002
+ static let defaultInstance = _StorageClass()
2003
+ #endif
1979
2004
 
1980
2005
  private init() {}
1981
2006