@blueid/access-proto 2.15.0 → 2.18.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
@@ -140,7 +140,13 @@ message BlueOssConfig {
140
140
  }
141
141
 
142
142
  message BlueSystemAVRUpdate {
143
- required bytes data = 1 [ (nanopb).max_size = 1024 ];
143
+ required bytes data = 1 [ (nanopb).max_size = 800 ];
144
+ }
145
+
146
+ message BlueSystemAVRInfo {
147
+ required uint32 vermaj = 1 [ (nanopb).int_size = IS_8 ];
148
+ required uint32 vermin = 2 [ (nanopb).int_size = IS_8 ];
149
+ required uint32 buildnr = 3 [ (nanopb).int_size = IS_8 ];
144
150
  }
145
151
 
146
152
  message BlueSystemConfig {
@@ -357,6 +357,40 @@ export declare class BlueSystemAVRUpdate extends Message<BlueSystemAVRUpdate> {
357
357
  static equals(a: BlueSystemAVRUpdate | PlainMessage<BlueSystemAVRUpdate> | undefined, b: BlueSystemAVRUpdate | PlainMessage<BlueSystemAVRUpdate> | undefined): boolean;
358
358
  }
359
359
 
360
+ /**
361
+ * @generated from message BlueSystemAVRInfo
362
+ */
363
+ export declare class BlueSystemAVRInfo extends Message<BlueSystemAVRInfo> {
364
+ /**
365
+ * @generated from field: required uint32 vermaj = 1;
366
+ */
367
+ vermaj: number;
368
+
369
+ /**
370
+ * @generated from field: required uint32 vermin = 2;
371
+ */
372
+ vermin: number;
373
+
374
+ /**
375
+ * @generated from field: required uint32 buildnr = 3;
376
+ */
377
+ buildnr: number;
378
+
379
+ constructor(data?: PartialMessage<BlueSystemAVRInfo>);
380
+
381
+ static readonly runtime: typeof proto2;
382
+ static readonly typeName = "BlueSystemAVRInfo";
383
+ static readonly fields: FieldList;
384
+
385
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): BlueSystemAVRInfo;
386
+
387
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): BlueSystemAVRInfo;
388
+
389
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): BlueSystemAVRInfo;
390
+
391
+ static equals(a: BlueSystemAVRInfo | PlainMessage<BlueSystemAVRInfo> | undefined, b: BlueSystemAVRInfo | PlainMessage<BlueSystemAVRInfo> | undefined): boolean;
392
+ }
393
+
360
394
  /**
361
395
  * @generated from message BlueSystemConfig
362
396
  */
@@ -26,6 +26,7 @@ __export(BlueSystem_pb_exports, {
26
26
  BlueEventLogResult: () => BlueEventLogResult,
27
27
  BlueOnlineConfig: () => BlueOnlineConfig,
28
28
  BlueOssConfig: () => BlueOssConfig,
29
+ BlueSystemAVRInfo: () => BlueSystemAVRInfo,
29
30
  BlueSystemAVRUpdate: () => BlueSystemAVRUpdate,
30
31
  BlueSystemConfig: () => BlueSystemConfig,
31
32
  BlueSystemLogEntry: () => BlueSystemLogEntry,
@@ -148,6 +149,32 @@ const BlueSystemAVRUpdate = import_protobuf.proto2.makeMessageType(
148
149
  }
149
150
  ]
150
151
  );
152
+ const BlueSystemAVRInfo = import_protobuf.proto2.makeMessageType(
153
+ "BlueSystemAVRInfo",
154
+ () => [
155
+ {
156
+ no: 1,
157
+ name: "vermaj",
158
+ kind: "scalar",
159
+ T: 13
160
+ /* ScalarType.UINT32 */
161
+ },
162
+ {
163
+ no: 2,
164
+ name: "vermin",
165
+ kind: "scalar",
166
+ T: 13
167
+ /* ScalarType.UINT32 */
168
+ },
169
+ {
170
+ no: 3,
171
+ name: "buildnr",
172
+ kind: "scalar",
173
+ T: 13
174
+ /* ScalarType.UINT32 */
175
+ }
176
+ ]
177
+ );
151
178
  const BlueSystemConfig = import_protobuf.proto2.makeMessageType(
152
179
  "BlueSystemConfig",
153
180
  () => [
@@ -357,6 +357,40 @@ export declare class BlueSystemAVRUpdate extends Message<BlueSystemAVRUpdate> {
357
357
  static equals(a: BlueSystemAVRUpdate | PlainMessage<BlueSystemAVRUpdate> | undefined, b: BlueSystemAVRUpdate | PlainMessage<BlueSystemAVRUpdate> | undefined): boolean;
358
358
  }
359
359
 
360
+ /**
361
+ * @generated from message BlueSystemAVRInfo
362
+ */
363
+ export declare class BlueSystemAVRInfo extends Message<BlueSystemAVRInfo> {
364
+ /**
365
+ * @generated from field: required uint32 vermaj = 1;
366
+ */
367
+ vermaj: number;
368
+
369
+ /**
370
+ * @generated from field: required uint32 vermin = 2;
371
+ */
372
+ vermin: number;
373
+
374
+ /**
375
+ * @generated from field: required uint32 buildnr = 3;
376
+ */
377
+ buildnr: number;
378
+
379
+ constructor(data?: PartialMessage<BlueSystemAVRInfo>);
380
+
381
+ static readonly runtime: typeof proto2;
382
+ static readonly typeName = "BlueSystemAVRInfo";
383
+ static readonly fields: FieldList;
384
+
385
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): BlueSystemAVRInfo;
386
+
387
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): BlueSystemAVRInfo;
388
+
389
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): BlueSystemAVRInfo;
390
+
391
+ static equals(a: BlueSystemAVRInfo | PlainMessage<BlueSystemAVRInfo> | undefined, b: BlueSystemAVRInfo | PlainMessage<BlueSystemAVRInfo> | undefined): boolean;
392
+ }
393
+
360
394
  /**
361
395
  * @generated from message BlueSystemConfig
362
396
  */
@@ -104,6 +104,18 @@ export const BlueSystemAVRUpdate = proto2.makeMessageType(
104
104
  ],
105
105
  );
106
106
 
107
+ /**
108
+ * @generated from message BlueSystemAVRInfo
109
+ */
110
+ export const BlueSystemAVRInfo = proto2.makeMessageType(
111
+ "BlueSystemAVRInfo",
112
+ () => [
113
+ { no: 1, name: "vermaj", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
114
+ { no: 2, name: "vermin", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
115
+ { no: 3, name: "buildnr", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
116
+ ],
117
+ );
118
+
107
119
  /**
108
120
  * @generated from message BlueSystemConfig
109
121
  */
@@ -27,6 +27,9 @@ PB_BIND(BLUEOSSCONFIG, BlueOssConfig_t, AUTO)
27
27
  PB_BIND(BLUESYSTEMAVRUPDATE, BlueSystemAVRUpdate_t, 2)
28
28
 
29
29
 
30
+ PB_BIND(BLUESYSTEMAVRINFO, BlueSystemAVRInfo_t, AUTO)
31
+
32
+
30
33
  PB_BIND(BLUESYSTEMCONFIG, BlueSystemConfig_t, 2)
31
34
 
32
35
 
@@ -102,11 +102,17 @@ typedef struct BlueOssConfig { /* -- Oss SecureId -- */
102
102
  uint32_t soMifareAid;
103
103
  } BlueOssConfig_t;
104
104
 
105
- typedef PB_BYTES_ARRAY_T(1024) BlueSystemAVRUpdate_data_t;
105
+ typedef PB_BYTES_ARRAY_T(800) BlueSystemAVRUpdate_data_t;
106
106
  typedef struct BlueSystemAVRUpdate {
107
107
  BlueSystemAVRUpdate_data_t data;
108
108
  } BlueSystemAVRUpdate_t;
109
109
 
110
+ typedef struct BlueSystemAVRInfo {
111
+ uint8_t vermaj;
112
+ uint8_t vermin;
113
+ uint8_t buildnr;
114
+ } BlueSystemAVRInfo_t;
115
+
110
116
  typedef struct BlueSystemConfig {
111
117
  char configId[9];
112
118
  /* -- Base */
@@ -234,6 +240,7 @@ extern "C" {
234
240
  #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}}
235
241
  #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}
236
242
  #define BLUESYSTEMAVRUPDATE_INIT_DEFAULT {{0, {0}}}
243
+ #define BLUESYSTEMAVRINFO_INIT_DEFAULT {0, 0, 0}
237
244
  #define BLUESYSTEMCONFIG_INIT_DEFAULT {"", BLUEBASECONFIG_INIT_DEFAULT, BLUEBLECONFIG_INIT_DEFAULT, BLUEONLINECONFIG_INIT_DEFAULT, BLUEACCESSCONFIG_INIT_DEFAULT, BLUEOSSCONFIG_INIT_DEFAULT, false, BLUELOCKCONFIG_INIT_DEFAULT}
238
245
  #define BLUESYSTEMTIMEUNIX_INIT_DEFAULT {0}
239
246
  #define BLUESYSTEMUPDATE_INIT_DEFAULT {false, BLUESYSTEMCONFIG_INIT_DEFAULT, false, BLUESYSTEMTIMEUNIX_INIT_DEFAULT}
@@ -253,6 +260,7 @@ extern "C" {
253
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}}
254
261
  #define BLUEOSSCONFIG_INIT_ZERO {{0}, 0, 0, 0, 0, 0, {0}, 0}
255
262
  #define BLUESYSTEMAVRUPDATE_INIT_ZERO {{0, {0}}}
263
+ #define BLUESYSTEMAVRINFO_INIT_ZERO {0, 0, 0}
256
264
  #define BLUESYSTEMCONFIG_INIT_ZERO {"", BLUEBASECONFIG_INIT_ZERO, BLUEBLECONFIG_INIT_ZERO, BLUEONLINECONFIG_INIT_ZERO, BLUEACCESSCONFIG_INIT_ZERO, BLUEOSSCONFIG_INIT_ZERO, false, BLUELOCKCONFIG_INIT_ZERO}
257
265
  #define BLUESYSTEMTIMEUNIX_INIT_ZERO {0}
258
266
  #define BLUESYSTEMUPDATE_INIT_ZERO {false, BLUESYSTEMCONFIG_INIT_ZERO, false, BLUESYSTEMTIMEUNIX_INIT_ZERO}
@@ -297,6 +305,9 @@ extern "C" {
297
305
  #define BLUEOSSCONFIG_SOMIFAREAESKEY_TAG 7
298
306
  #define BLUEOSSCONFIG_SOMIFAREAID_TAG 8
299
307
  #define BLUESYSTEMAVRUPDATE_DATA_TAG 1
308
+ #define BLUESYSTEMAVRINFO_VERMAJ_TAG 1
309
+ #define BLUESYSTEMAVRINFO_VERMIN_TAG 2
310
+ #define BLUESYSTEMAVRINFO_BUILDNR_TAG 3
300
311
  #define BLUESYSTEMCONFIG_CONFIGID_TAG 1
301
312
  #define BLUESYSTEMCONFIG_BASE_TAG 2
302
313
  #define BLUESYSTEMCONFIG_BLE_TAG 3
@@ -413,6 +424,13 @@ X(a, STATIC, REQUIRED, BYTES, data, 1)
413
424
  #define BLUESYSTEMAVRUPDATE_CALLBACK NULL
414
425
  #define BLUESYSTEMAVRUPDATE_DEFAULT NULL
415
426
 
427
+ #define BLUESYSTEMAVRINFO_FIELDLIST(X, a) \
428
+ X(a, STATIC, REQUIRED, UINT32, vermaj, 1) \
429
+ X(a, STATIC, REQUIRED, UINT32, vermin, 2) \
430
+ X(a, STATIC, REQUIRED, UINT32, buildnr, 3)
431
+ #define BLUESYSTEMAVRINFO_CALLBACK NULL
432
+ #define BLUESYSTEMAVRINFO_DEFAULT NULL
433
+
416
434
  #define BLUESYSTEMCONFIG_FIELDLIST(X, a) \
417
435
  X(a, STATIC, REQUIRED, STRING, configId, 1) \
418
436
  X(a, STATIC, REQUIRED, MESSAGE, base, 2) \
@@ -535,6 +553,7 @@ extern const pb_msgdesc_t BlueAccessConfigGroup_t_msg;
535
553
  extern const pb_msgdesc_t BlueAccessConfig_t_msg;
536
554
  extern const pb_msgdesc_t BlueOssConfig_t_msg;
537
555
  extern const pb_msgdesc_t BlueSystemAVRUpdate_t_msg;
556
+ extern const pb_msgdesc_t BlueSystemAVRInfo_t_msg;
538
557
  extern const pb_msgdesc_t BlueSystemConfig_t_msg;
539
558
  extern const pb_msgdesc_t BlueSystemTimeUnix_t_msg;
540
559
  extern const pb_msgdesc_t BlueSystemUpdate_t_msg;
@@ -556,6 +575,7 @@ extern const pb_msgdesc_t BlueBlacklistEntries_t_msg;
556
575
  #define BLUEACCESSCONFIG_FIELDS &BlueAccessConfig_t_msg
557
576
  #define BLUEOSSCONFIG_FIELDS &BlueOssConfig_t_msg
558
577
  #define BLUESYSTEMAVRUPDATE_FIELDS &BlueSystemAVRUpdate_t_msg
578
+ #define BLUESYSTEMAVRINFO_FIELDS &BlueSystemAVRInfo_t_msg
559
579
  #define BLUESYSTEMCONFIG_FIELDS &BlueSystemConfig_t_msg
560
580
  #define BLUESYSTEMTIMEUNIX_FIELDS &BlueSystemTimeUnix_t_msg
561
581
  #define BLUESYSTEMUPDATE_FIELDS &BlueSystemUpdate_t_msg
@@ -579,7 +599,8 @@ extern const pb_msgdesc_t BlueBlacklistEntries_t_msg;
579
599
  #define BLUEEVENTLOGRESULT_SIZE 1650
580
600
  #define BLUEONLINECONFIG_SIZE 224
581
601
  #define BLUEOSSCONFIG_SIZE 56
582
- #define BLUESYSTEMAVRUPDATE_SIZE 1027
602
+ #define BLUESYSTEMAVRINFO_SIZE 9
603
+ #define BLUESYSTEMAVRUPDATE_SIZE 803
583
604
  #define BLUESYSTEMCONFIG_SIZE 1657
584
605
  #define BLUESYSTEMLOGENTRY_SIZE 152
585
606
  #define BLUESYSTEMLOGQUERY_SIZE 9
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blueid/access-proto",
3
- "version": "2.15.0",
3
+ "version": "2.18.0",
4
4
  "description": "BlueID Access Proto files",
5
5
  "author": "BlueID GmbH",
6
6
  "main": "cjs/index.js",
@@ -398,6 +398,47 @@ public struct BlueSystemAVRUpdate: @unchecked Sendable {
398
398
  fileprivate var _data: Data? = nil
399
399
  }
400
400
 
401
+ public struct BlueSystemAVRInfo: Sendable {
402
+ // SwiftProtobuf.Message conformance is added in an extension below. See the
403
+ // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
404
+ // methods supported on all messages.
405
+
406
+ public var vermaj: UInt32 {
407
+ get {return _vermaj ?? 0}
408
+ set {_vermaj = newValue}
409
+ }
410
+ /// Returns true if `vermaj` has been explicitly set.
411
+ public var hasVermaj: Bool {return self._vermaj != nil}
412
+ /// Clears the value of `vermaj`. Subsequent reads from it will return its default value.
413
+ public mutating func clearVermaj() {self._vermaj = nil}
414
+
415
+ public var vermin: UInt32 {
416
+ get {return _vermin ?? 0}
417
+ set {_vermin = newValue}
418
+ }
419
+ /// Returns true if `vermin` has been explicitly set.
420
+ public var hasVermin: Bool {return self._vermin != nil}
421
+ /// Clears the value of `vermin`. Subsequent reads from it will return its default value.
422
+ public mutating func clearVermin() {self._vermin = nil}
423
+
424
+ public var buildnr: UInt32 {
425
+ get {return _buildnr ?? 0}
426
+ set {_buildnr = newValue}
427
+ }
428
+ /// Returns true if `buildnr` has been explicitly set.
429
+ public var hasBuildnr: Bool {return self._buildnr != nil}
430
+ /// Clears the value of `buildnr`. Subsequent reads from it will return its default value.
431
+ public mutating func clearBuildnr() {self._buildnr = nil}
432
+
433
+ public var unknownFields = SwiftProtobuf.UnknownStorage()
434
+
435
+ public init() {}
436
+
437
+ fileprivate var _vermaj: UInt32? = nil
438
+ fileprivate var _vermin: UInt32? = nil
439
+ fileprivate var _buildnr: UInt32? = nil
440
+ }
441
+
401
442
  public struct BlueSystemConfig: @unchecked Sendable {
402
443
  // SwiftProtobuf.Message conformance is added in an extension below. See the
403
444
  // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
@@ -1479,6 +1520,61 @@ extension BlueSystemAVRUpdate: SwiftProtobuf.Message, SwiftProtobuf._MessageImpl
1479
1520
  }
1480
1521
  }
1481
1522
 
1523
+ extension BlueSystemAVRInfo: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
1524
+ public static let protoMessageName: String = "BlueSystemAVRInfo"
1525
+ public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1526
+ 1: .same(proto: "vermaj"),
1527
+ 2: .same(proto: "vermin"),
1528
+ 3: .same(proto: "buildnr"),
1529
+ ]
1530
+
1531
+ public var isInitialized: Bool {
1532
+ if self._vermaj == nil {return false}
1533
+ if self._vermin == nil {return false}
1534
+ if self._buildnr == nil {return false}
1535
+ return true
1536
+ }
1537
+
1538
+ public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
1539
+ while let fieldNumber = try decoder.nextFieldNumber() {
1540
+ // The use of inline closures is to circumvent an issue where the compiler
1541
+ // allocates stack space for every case branch when no optimizations are
1542
+ // enabled. https://github.com/apple/swift-protobuf/issues/1034
1543
+ switch fieldNumber {
1544
+ case 1: try { try decoder.decodeSingularUInt32Field(value: &self._vermaj) }()
1545
+ case 2: try { try decoder.decodeSingularUInt32Field(value: &self._vermin) }()
1546
+ case 3: try { try decoder.decodeSingularUInt32Field(value: &self._buildnr) }()
1547
+ default: break
1548
+ }
1549
+ }
1550
+ }
1551
+
1552
+ public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
1553
+ // The use of inline closures is to circumvent an issue where the compiler
1554
+ // allocates stack space for every if/case branch local when no optimizations
1555
+ // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
1556
+ // https://github.com/apple/swift-protobuf/issues/1182
1557
+ try { if let v = self._vermaj {
1558
+ try visitor.visitSingularUInt32Field(value: v, fieldNumber: 1)
1559
+ } }()
1560
+ try { if let v = self._vermin {
1561
+ try visitor.visitSingularUInt32Field(value: v, fieldNumber: 2)
1562
+ } }()
1563
+ try { if let v = self._buildnr {
1564
+ try visitor.visitSingularUInt32Field(value: v, fieldNumber: 3)
1565
+ } }()
1566
+ try unknownFields.traverse(visitor: &visitor)
1567
+ }
1568
+
1569
+ public static func ==(lhs: BlueSystemAVRInfo, rhs: BlueSystemAVRInfo) -> Bool {
1570
+ if lhs._vermaj != rhs._vermaj {return false}
1571
+ if lhs._vermin != rhs._vermin {return false}
1572
+ if lhs._buildnr != rhs._buildnr {return false}
1573
+ if lhs.unknownFields != rhs.unknownFields {return false}
1574
+ return true
1575
+ }
1576
+ }
1577
+
1482
1578
  extension BlueSystemConfig: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
1483
1579
  public static let protoMessageName: String = "BlueSystemConfig"
1484
1580
  public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [