@blueid/access-proto 12.23.0 → 12.24.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
@@ -430,7 +430,6 @@ enum BlueEventInfoSystem {
430
430
 
431
431
  SystemRestart = 0x01;
432
432
  SystemConfigured = 0x2;
433
- UnknownTransponderDetected= 0x3;
434
433
 
435
434
  // -- Oss So events
436
435
 
package/BlueSDK.proto CHANGED
@@ -224,6 +224,7 @@ message BlueIdentity {
224
224
  optional string siteName = 11;
225
225
  optional bytes privateKey = 12;
226
226
  optional string status = 13;
227
+ optional uint64 syncedUntil = 14; // validity after syncing the identity
227
228
  }
228
229
 
229
230
  message BlueIdentitiesList {
@@ -981,11 +981,6 @@ 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,
989
984
  }
990
985
 
991
986
  /**
@@ -310,8 +310,7 @@ const BlueEventInfoSystem = import_protobuf.proto2.makeEnum(
310
310
  "BlueEventInfoSystem",
311
311
  [
312
312
  { no: 1, name: "SystemRestart" },
313
- { no: 2, name: "SystemConfigured" },
314
- { no: 3, name: "UnknownTransponderDetected" }
313
+ { no: 2, name: "SystemConfigured" }
315
314
  ]
316
315
  );
317
316
  const BlueEventInfoAccess = import_protobuf.proto2.makeEnum(
@@ -632,6 +632,13 @@ export declare class BlueIdentity extends Message<BlueIdentity> {
632
632
  */
633
633
  status?: string;
634
634
 
635
+ /**
636
+ * validity after syncing the identity
637
+ *
638
+ * @generated from field: optional uint64 syncedUntil = 14;
639
+ */
640
+ syncedUntil?: bigint;
641
+
635
642
  constructor(data?: PartialMessage<BlueIdentity>);
636
643
 
637
644
  static readonly runtime: typeof proto2;
package/cjs/BlueSDK_pb.js CHANGED
@@ -245,7 +245,8 @@ const BlueIdentity = import_protobuf.proto2.makeMessageType(
245
245
  },
246
246
  { no: 11, name: "siteName", kind: "scalar", T: 9, opt: true },
247
247
  { no: 12, name: "privateKey", kind: "scalar", T: 12, opt: true },
248
- { no: 13, name: "status", kind: "scalar", T: 9, opt: true }
248
+ { no: 13, name: "status", kind: "scalar", T: 9, opt: true },
249
+ { no: 14, name: "syncedUntil", kind: "scalar", T: 4, opt: true }
249
250
  ]
250
251
  );
251
252
  const BlueIdentitiesList = import_protobuf.proto2.makeMessageType(
@@ -981,11 +981,6 @@ 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,
989
984
  }
990
985
 
991
986
  /**
package/es/BlueCore_pb.js CHANGED
@@ -267,7 +267,6 @@ export const BlueEventInfoSystem = proto2.makeEnum(
267
267
  [
268
268
  {no: 1, name: "SystemRestart"},
269
269
  {no: 2, name: "SystemConfigured"},
270
- {no: 3, name: "UnknownTransponderDetected"},
271
270
  ],
272
271
  );
273
272
 
@@ -632,6 +632,13 @@ export declare class BlueIdentity extends Message<BlueIdentity> {
632
632
  */
633
633
  status?: string;
634
634
 
635
+ /**
636
+ * validity after syncing the identity
637
+ *
638
+ * @generated from field: optional uint64 syncedUntil = 14;
639
+ */
640
+ syncedUntil?: bigint;
641
+
635
642
  constructor(data?: PartialMessage<BlueIdentity>);
636
643
 
637
644
  static readonly runtime: typeof proto2;
package/es/BlueSDK_pb.js CHANGED
@@ -179,6 +179,7 @@ export const BlueIdentity = proto2.makeMessageType(
179
179
  { no: 11, name: "siteName", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
180
180
  { no: 12, name: "privateKey", kind: "scalar", T: 12 /* ScalarType.BYTES */, opt: true },
181
181
  { no: 13, name: "status", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
182
+ { no: 14, name: "syncedUntil", kind: "scalar", T: 4 /* ScalarType.UINT64 */, opt: true },
182
183
  ],
183
184
  );
184
185
 
@@ -242,8 +242,7 @@ typedef enum BlueEventId {
242
242
 
243
243
  typedef enum BlueEventInfoSystem {
244
244
  BlueEventInfoSystem_SystemRestart = 1,
245
- BlueEventInfoSystem_SystemConfigured = 2,
246
- BlueEventInfoSystem_UnknownTransponderDetected = 3
245
+ BlueEventInfoSystem_SystemConfigured = 2
247
246
  } pb_packed BlueEventInfoSystem_t;
248
247
 
249
248
  typedef enum BlueEventInfoAccess {
@@ -802,8 +801,8 @@ extern "C" {
802
801
  #define _BLUEEVENTID_ARRAYSIZE ((BlueEventId_t)(BlueEventId_TerminalOss+1))
803
802
 
804
803
  #define _BLUEEVENTINFOSYSTEM_MIN BlueEventInfoSystem_SystemRestart
805
- #define _BLUEEVENTINFOSYSTEM_MAX BlueEventInfoSystem_UnknownTransponderDetected
806
- #define _BLUEEVENTINFOSYSTEM_ARRAYSIZE ((BlueEventInfoSystem_t)(BlueEventInfoSystem_UnknownTransponderDetected+1))
804
+ #define _BLUEEVENTINFOSYSTEM_MAX BlueEventInfoSystem_SystemConfigured
805
+ #define _BLUEEVENTINFOSYSTEM_ARRAYSIZE ((BlueEventInfoSystem_t)(BlueEventInfoSystem_SystemConfigured+1))
807
806
 
808
807
  #define _BLUEEVENTINFOACCESS_MIN BlueEventInfoAccess_Granted
809
808
  #define _BLUEEVENTINFOACCESS_MAX BlueEventInfoAccess_DeniedInvalidTransponderData
@@ -146,6 +146,8 @@ typedef struct BlueIdentity {
146
146
  pb_callback_t siteName;
147
147
  pb_callback_t privateKey;
148
148
  pb_callback_t status;
149
+ bool has_syncedUntil;
150
+ uint64_t syncedUntil; /* validity after syncing the identity */
149
151
  } BlueIdentity_t;
150
152
 
151
153
  typedef struct BlueIdentitiesList {
@@ -350,7 +352,7 @@ extern "C" {
350
352
  #define BLUEDEVICEDETAILSBLUETOOTH_INIT_DEFAULT {0, 0, 0}
351
353
  #define BLUEDEVICEDETAILSUWB_INIT_DEFAULT {0}
352
354
  #define BLUEDEVICEINFO_INIT_DEFAULT {_BLUEDEVICETYPE_MIN, {{NULL}, NULL}, 0, false, BLUEBLEMANUFACTURERINFO_INIT_DEFAULT, 0, {BLUEDEVICEDETAILSBLUETOOTH_INIT_DEFAULT}}
353
- #define BLUEIDENTITY_INIT_DEFAULT {{{NULL}, NULL}, _BLUECREDENTIALTYPE_MIN, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, false, BLUELOCALTIMESTAMP_INIT_DEFAULT, false, BLUELOCALTIMESTAMP_INIT_DEFAULT, {{NULL}, NULL}, {{NULL}, NULL}, 0, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}}
355
+ #define BLUEIDENTITY_INIT_DEFAULT {{{NULL}, NULL}, _BLUECREDENTIALTYPE_MIN, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, false, BLUELOCALTIMESTAMP_INIT_DEFAULT, false, BLUELOCALTIMESTAMP_INIT_DEFAULT, {{NULL}, NULL}, {{NULL}, NULL}, 0, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, false, 0}
354
356
  #define BLUEIDENTITIESLIST_INIT_DEFAULT {{{NULL}, NULL}}
355
357
  #define BLUEACCESSDEVICE_INIT_DEFAULT {{{NULL}, NULL}, {{NULL}, NULL}, false, 0, {{NULL}, NULL}}
356
358
  #define BLUEACCESSDEVICELIST_INIT_DEFAULT {{{NULL}, NULL}}
@@ -376,7 +378,7 @@ extern "C" {
376
378
  #define BLUEDEVICEDETAILSBLUETOOTH_INIT_ZERO {0, 0, 0}
377
379
  #define BLUEDEVICEDETAILSUWB_INIT_ZERO {0}
378
380
  #define BLUEDEVICEINFO_INIT_ZERO {_BLUEDEVICETYPE_MIN, {{NULL}, NULL}, 0, false, BLUEBLEMANUFACTURERINFO_INIT_ZERO, 0, {BLUEDEVICEDETAILSBLUETOOTH_INIT_ZERO}}
379
- #define BLUEIDENTITY_INIT_ZERO {{{NULL}, NULL}, _BLUECREDENTIALTYPE_MIN, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, false, BLUELOCALTIMESTAMP_INIT_ZERO, false, BLUELOCALTIMESTAMP_INIT_ZERO, {{NULL}, NULL}, {{NULL}, NULL}, 0, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}}
381
+ #define BLUEIDENTITY_INIT_ZERO {{{NULL}, NULL}, _BLUECREDENTIALTYPE_MIN, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, false, BLUELOCALTIMESTAMP_INIT_ZERO, false, BLUELOCALTIMESTAMP_INIT_ZERO, {{NULL}, NULL}, {{NULL}, NULL}, 0, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, false, 0}
380
382
  #define BLUEIDENTITIESLIST_INIT_ZERO {{{NULL}, NULL}}
381
383
  #define BLUEACCESSDEVICE_INIT_ZERO {{{NULL}, NULL}, {{NULL}, NULL}, false, 0, {{NULL}, NULL}}
382
384
  #define BLUEACCESSDEVICELIST_INIT_ZERO {{{NULL}, NULL}}
@@ -495,6 +497,7 @@ extern "C" {
495
497
  #define BLUEIDENTITY_SITENAME_TAG 11
496
498
  #define BLUEIDENTITY_PRIVATEKEY_TAG 12
497
499
  #define BLUEIDENTITY_STATUS_TAG 13
500
+ #define BLUEIDENTITY_SYNCEDUNTIL_TAG 14
498
501
  #define BLUEIDENTITIESLIST_IDENTITIES_TAG 1
499
502
  #define BLUEACCESSDEVICE_DEVICEID_TAG 1
500
503
  #define BLUEACCESSDEVICE_OBJECTNAME_TAG 2
@@ -678,7 +681,8 @@ X(a, CALLBACK, OPTIONAL, STRING, organizationName, 9) \
678
681
  X(a, STATIC, REQUIRED, INT32, siteId, 10) \
679
682
  X(a, CALLBACK, OPTIONAL, STRING, siteName, 11) \
680
683
  X(a, CALLBACK, OPTIONAL, BYTES, privateKey, 12) \
681
- X(a, CALLBACK, OPTIONAL, STRING, status, 13)
684
+ X(a, CALLBACK, OPTIONAL, STRING, status, 13) \
685
+ X(a, STATIC, OPTIONAL, UINT64, syncedUntil, 14)
682
686
  #define BLUEIDENTITY_CALLBACK pb_default_field_callback
683
687
  #define BLUEIDENTITY_DEFAULT (const pb_byte_t*)"\x10\x01\x00"
684
688
  #define BlueIdentity_t_validFrom_MSGTYPE BlueLocalTimestamp_t
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blueid/access-proto",
3
- "version": "12.23.0",
3
+ "version": "12.24.0",
4
4
  "description": "BlueID Access Proto files",
5
5
  "author": "BlueID GmbH",
6
6
  "main": "cjs/index.js",
@@ -335,7 +335,6 @@ public enum BlueEventId: Int, SwiftProtobuf.Enum, Swift.CaseIterable {
335
335
  public enum BlueEventInfoSystem: Int, SwiftProtobuf.Enum, Swift.CaseIterable {
336
336
  case systemRestart = 1
337
337
  case systemConfigured = 2
338
- case unknownTransponderDetected = 3
339
338
 
340
339
  public init() {
341
340
  self = .systemRestart
@@ -3001,7 +3000,7 @@ extension BlueEventId: SwiftProtobuf._ProtoNameProviding {
3001
3000
  }
3002
3001
 
3003
3002
  extension BlueEventInfoSystem: SwiftProtobuf._ProtoNameProviding {
3004
- public static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}SystemRestart\0\u{1}SystemConfigured\0\u{1}UnknownTransponderDetected\0")
3003
+ public static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}SystemRestart\0\u{1}SystemConfigured\0")
3005
3004
  }
3006
3005
 
3007
3006
  extension BlueEventInfoAccess: SwiftProtobuf._ProtoNameProviding {
@@ -994,6 +994,16 @@ public struct BlueIdentity: @unchecked Sendable {
994
994
  /// Clears the value of `status`. Subsequent reads from it will return its default value.
995
995
  public mutating func clearStatus() {_uniqueStorage()._status = nil}
996
996
 
997
+ /// validity after syncing the identity
998
+ public var syncedUntil: UInt64 {
999
+ get {return _storage._syncedUntil ?? 0}
1000
+ set {_uniqueStorage()._syncedUntil = newValue}
1001
+ }
1002
+ /// Returns true if `syncedUntil` has been explicitly set.
1003
+ public var hasSyncedUntil: Bool {return _storage._syncedUntil != nil}
1004
+ /// Clears the value of `syncedUntil`. Subsequent reads from it will return its default value.
1005
+ public mutating func clearSyncedUntil() {_uniqueStorage()._syncedUntil = nil}
1006
+
997
1007
  public var unknownFields = SwiftProtobuf.UnknownStorage()
998
1008
 
999
1009
  public init() {}
@@ -2635,7 +2645,7 @@ extension BlueDeviceInfo: SwiftProtobuf.Message, SwiftProtobuf._MessageImplement
2635
2645
 
2636
2646
  extension BlueIdentity: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
2637
2647
  public static let protoMessageName: String = "BlueIdentity"
2638
- public static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}identityId\0\u{1}role\0\u{1}name\0\u{1}description\0\u{1}receiverName\0\u{1}validFrom\0\u{1}validTo\0\u{1}organization\0\u{1}organizationName\0\u{1}siteId\0\u{1}siteName\0\u{1}privateKey\0\u{1}status\0")
2648
+ public static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}identityId\0\u{1}role\0\u{1}name\0\u{1}description\0\u{1}receiverName\0\u{1}validFrom\0\u{1}validTo\0\u{1}organization\0\u{1}organizationName\0\u{1}siteId\0\u{1}siteName\0\u{1}privateKey\0\u{1}status\0\u{1}syncedUntil\0")
2639
2649
 
2640
2650
  fileprivate class _StorageClass {
2641
2651
  var _identityID: String? = nil
@@ -2651,6 +2661,7 @@ extension BlueIdentity: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementat
2651
2661
  var _siteName: String? = nil
2652
2662
  var _privateKey: Data? = nil
2653
2663
  var _status: String? = nil
2664
+ var _syncedUntil: UInt64? = nil
2654
2665
 
2655
2666
  // This property is used as the initial default value for new instances of the type.
2656
2667
  // The type itself is protecting the reference to its storage via CoW semantics.
@@ -2674,6 +2685,7 @@ extension BlueIdentity: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementat
2674
2685
  _siteName = source._siteName
2675
2686
  _privateKey = source._privateKey
2676
2687
  _status = source._status
2688
+ _syncedUntil = source._syncedUntil
2677
2689
  }
2678
2690
  }
2679
2691
 
@@ -2717,6 +2729,7 @@ extension BlueIdentity: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementat
2717
2729
  case 11: try { try decoder.decodeSingularStringField(value: &_storage._siteName) }()
2718
2730
  case 12: try { try decoder.decodeSingularBytesField(value: &_storage._privateKey) }()
2719
2731
  case 13: try { try decoder.decodeSingularStringField(value: &_storage._status) }()
2732
+ case 14: try { try decoder.decodeSingularUInt64Field(value: &_storage._syncedUntil) }()
2720
2733
  default: break
2721
2734
  }
2722
2735
  }
@@ -2768,6 +2781,9 @@ extension BlueIdentity: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementat
2768
2781
  try { if let v = _storage._status {
2769
2782
  try visitor.visitSingularStringField(value: v, fieldNumber: 13)
2770
2783
  } }()
2784
+ try { if let v = _storage._syncedUntil {
2785
+ try visitor.visitSingularUInt64Field(value: v, fieldNumber: 14)
2786
+ } }()
2771
2787
  }
2772
2788
  try unknownFields.traverse(visitor: &visitor)
2773
2789
  }
@@ -2790,6 +2806,7 @@ extension BlueIdentity: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementat
2790
2806
  if _storage._siteName != rhs_storage._siteName {return false}
2791
2807
  if _storage._privateKey != rhs_storage._privateKey {return false}
2792
2808
  if _storage._status != rhs_storage._status {return false}
2809
+ if _storage._syncedUntil != rhs_storage._syncedUntil {return false}
2793
2810
  return true
2794
2811
  }
2795
2812
  if !storagesAreEqual {return false}