@blueid/access-proto 2.29.0 → 2.31.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 +3 -0
- package/cjs/BlueSystem_pb.d.ts +7 -0
- package/cjs/BlueSystem_pb.js +2 -1
- package/es/BlueSystem_pb.d.ts +7 -0
- package/es/BlueSystem_pb.js +1 -0
- package/nanopb/BlueSystem.pb.h +9 -4
- package/package.json +1 -1
- package/swift/BlueSystem.pb.swift +17 -0
package/BlueSystem.proto
CHANGED
|
@@ -143,6 +143,9 @@ message BlueSystemAVRInfo {
|
|
|
143
143
|
required uint32 vermaj = 1 [ (nanopb).int_size = IS_8 ];
|
|
144
144
|
required uint32 vermin = 2 [ (nanopb).int_size = IS_8 ];
|
|
145
145
|
required uint32 buildnr = 3 [ (nanopb).int_size = IS_8 ];
|
|
146
|
+
|
|
147
|
+
// For an ongoing upgrade, this field shows the total bytes written up to this point.
|
|
148
|
+
optional uint32 bytesWritten = 4;
|
|
146
149
|
}
|
|
147
150
|
|
|
148
151
|
message BlueSystemConfig {
|
package/cjs/BlueSystem_pb.d.ts
CHANGED
|
@@ -352,6 +352,13 @@ export declare class BlueSystemAVRInfo extends Message<BlueSystemAVRInfo> {
|
|
|
352
352
|
*/
|
|
353
353
|
buildnr: number;
|
|
354
354
|
|
|
355
|
+
/**
|
|
356
|
+
* For an ongoing upgrade, this field shows the total bytes written up to this point.
|
|
357
|
+
*
|
|
358
|
+
* @generated from field: optional uint32 bytesWritten = 4;
|
|
359
|
+
*/
|
|
360
|
+
bytesWritten?: number;
|
|
361
|
+
|
|
355
362
|
constructor(data?: PartialMessage<BlueSystemAVRInfo>);
|
|
356
363
|
|
|
357
364
|
static readonly runtime: typeof proto2;
|
package/cjs/BlueSystem_pb.js
CHANGED
|
@@ -159,7 +159,8 @@ const BlueSystemAVRInfo = import_protobuf.proto2.makeMessageType(
|
|
|
159
159
|
kind: "scalar",
|
|
160
160
|
T: 13
|
|
161
161
|
/* ScalarType.UINT32 */
|
|
162
|
-
}
|
|
162
|
+
},
|
|
163
|
+
{ no: 4, name: "bytesWritten", kind: "scalar", T: 13, opt: true }
|
|
163
164
|
]
|
|
164
165
|
);
|
|
165
166
|
const BlueSystemConfig = import_protobuf.proto2.makeMessageType(
|
package/es/BlueSystem_pb.d.ts
CHANGED
|
@@ -352,6 +352,13 @@ export declare class BlueSystemAVRInfo extends Message<BlueSystemAVRInfo> {
|
|
|
352
352
|
*/
|
|
353
353
|
buildnr: number;
|
|
354
354
|
|
|
355
|
+
/**
|
|
356
|
+
* For an ongoing upgrade, this field shows the total bytes written up to this point.
|
|
357
|
+
*
|
|
358
|
+
* @generated from field: optional uint32 bytesWritten = 4;
|
|
359
|
+
*/
|
|
360
|
+
bytesWritten?: number;
|
|
361
|
+
|
|
355
362
|
constructor(data?: PartialMessage<BlueSystemAVRInfo>);
|
|
356
363
|
|
|
357
364
|
static readonly runtime: typeof proto2;
|
package/es/BlueSystem_pb.js
CHANGED
|
@@ -103,6 +103,7 @@ export const BlueSystemAVRInfo = proto2.makeMessageType(
|
|
|
103
103
|
{ no: 1, name: "vermaj", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
104
104
|
{ no: 2, name: "vermin", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
105
105
|
{ no: 3, name: "buildnr", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
106
|
+
{ no: 4, name: "bytesWritten", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
|
|
106
107
|
],
|
|
107
108
|
);
|
|
108
109
|
|
package/nanopb/BlueSystem.pb.h
CHANGED
|
@@ -106,6 +106,9 @@ typedef struct BlueSystemAVRInfo {
|
|
|
106
106
|
uint8_t vermaj;
|
|
107
107
|
uint8_t vermin;
|
|
108
108
|
uint8_t buildnr;
|
|
109
|
+
/* For an ongoing upgrade, this field shows the total bytes written up to this point. */
|
|
110
|
+
bool has_bytesWritten;
|
|
111
|
+
uint32_t bytesWritten;
|
|
109
112
|
} BlueSystemAVRInfo_t;
|
|
110
113
|
|
|
111
114
|
typedef struct BlueSystemConfig {
|
|
@@ -234,7 +237,7 @@ extern "C" {
|
|
|
234
237
|
#define BLUEACCESSCONFIGGROUP_INIT_DEFAULT {0, 0, {BLUELOCALTIMESCHEDULE_INIT_DEFAULT, BLUELOCALTIMESCHEDULE_INIT_DEFAULT}}
|
|
235
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}}
|
|
236
239
|
#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}
|
|
237
|
-
#define BLUESYSTEMAVRINFO_INIT_DEFAULT {0, 0, 0}
|
|
240
|
+
#define BLUESYSTEMAVRINFO_INIT_DEFAULT {0, 0, 0, false, 0}
|
|
238
241
|
#define BLUESYSTEMCONFIG_INIT_DEFAULT {"", BLUEBASECONFIG_INIT_DEFAULT, BLUEBLECONFIG_INIT_DEFAULT, BLUEONLINECONFIG_INIT_DEFAULT, BLUEACCESSCONFIG_INIT_DEFAULT, BLUEOSSCONFIG_INIT_DEFAULT, false, BLUELOCKCONFIG_INIT_DEFAULT}
|
|
239
242
|
#define BLUESYSTEMTIMEUNIX_INIT_DEFAULT {0}
|
|
240
243
|
#define BLUESYSTEMUPDATE_INIT_DEFAULT {false, BLUESYSTEMCONFIG_INIT_DEFAULT, false, BLUESYSTEMTIMEUNIX_INIT_DEFAULT}
|
|
@@ -253,7 +256,7 @@ extern "C" {
|
|
|
253
256
|
#define BLUEACCESSCONFIGGROUP_INIT_ZERO {0, 0, {BLUELOCALTIMESCHEDULE_INIT_ZERO, BLUELOCALTIMESCHEDULE_INIT_ZERO}}
|
|
254
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}}
|
|
255
258
|
#define BLUEOSSCONFIG_INIT_ZERO {{0}, 0, 0, 0, 0, 0, {0}, 0}
|
|
256
|
-
#define BLUESYSTEMAVRINFO_INIT_ZERO {0, 0, 0}
|
|
259
|
+
#define BLUESYSTEMAVRINFO_INIT_ZERO {0, 0, 0, false, 0}
|
|
257
260
|
#define BLUESYSTEMCONFIG_INIT_ZERO {"", BLUEBASECONFIG_INIT_ZERO, BLUEBLECONFIG_INIT_ZERO, BLUEONLINECONFIG_INIT_ZERO, BLUEACCESSCONFIG_INIT_ZERO, BLUEOSSCONFIG_INIT_ZERO, false, BLUELOCKCONFIG_INIT_ZERO}
|
|
258
261
|
#define BLUESYSTEMTIMEUNIX_INIT_ZERO {0}
|
|
259
262
|
#define BLUESYSTEMUPDATE_INIT_ZERO {false, BLUESYSTEMCONFIG_INIT_ZERO, false, BLUESYSTEMTIMEUNIX_INIT_ZERO}
|
|
@@ -300,6 +303,7 @@ extern "C" {
|
|
|
300
303
|
#define BLUESYSTEMAVRINFO_VERMAJ_TAG 1
|
|
301
304
|
#define BLUESYSTEMAVRINFO_VERMIN_TAG 2
|
|
302
305
|
#define BLUESYSTEMAVRINFO_BUILDNR_TAG 3
|
|
306
|
+
#define BLUESYSTEMAVRINFO_BYTESWRITTEN_TAG 4
|
|
303
307
|
#define BLUESYSTEMCONFIG_CONFIGID_TAG 1
|
|
304
308
|
#define BLUESYSTEMCONFIG_BASE_TAG 2
|
|
305
309
|
#define BLUESYSTEMCONFIG_BLE_TAG 3
|
|
@@ -414,7 +418,8 @@ X(a, STATIC, REQUIRED, UINT32, soMifareAid, 8)
|
|
|
414
418
|
#define BLUESYSTEMAVRINFO_FIELDLIST(X, a) \
|
|
415
419
|
X(a, STATIC, REQUIRED, UINT32, vermaj, 1) \
|
|
416
420
|
X(a, STATIC, REQUIRED, UINT32, vermin, 2) \
|
|
417
|
-
X(a, STATIC, REQUIRED, UINT32, buildnr, 3)
|
|
421
|
+
X(a, STATIC, REQUIRED, UINT32, buildnr, 3) \
|
|
422
|
+
X(a, STATIC, OPTIONAL, UINT32, bytesWritten, 4)
|
|
418
423
|
#define BLUESYSTEMAVRINFO_CALLBACK NULL
|
|
419
424
|
#define BLUESYSTEMAVRINFO_DEFAULT NULL
|
|
420
425
|
|
|
@@ -584,7 +589,7 @@ extern const pb_msgdesc_t BlueBlacklistEntries_t_msg;
|
|
|
584
589
|
#define BLUEEVENTLOGRESULT_SIZE 1650
|
|
585
590
|
#define BLUEONLINECONFIG_SIZE 224
|
|
586
591
|
#define BLUEOSSCONFIG_SIZE 56
|
|
587
|
-
#define BLUESYSTEMAVRINFO_SIZE
|
|
592
|
+
#define BLUESYSTEMAVRINFO_SIZE 15
|
|
588
593
|
#define BLUESYSTEMCONFIG_SIZE 1657
|
|
589
594
|
#define BLUESYSTEMLOGENTRY_SIZE 152
|
|
590
595
|
#define BLUESYSTEMLOGQUERY_SIZE 9
|
package/package.json
CHANGED
|
@@ -409,6 +409,16 @@ public struct BlueSystemAVRInfo: Sendable {
|
|
|
409
409
|
/// Clears the value of `buildnr`. Subsequent reads from it will return its default value.
|
|
410
410
|
public mutating func clearBuildnr() {self._buildnr = nil}
|
|
411
411
|
|
|
412
|
+
/// For an ongoing upgrade, this field shows the total bytes written up to this point.
|
|
413
|
+
public var bytesWritten: UInt32 {
|
|
414
|
+
get {return _bytesWritten ?? 0}
|
|
415
|
+
set {_bytesWritten = newValue}
|
|
416
|
+
}
|
|
417
|
+
/// Returns true if `bytesWritten` has been explicitly set.
|
|
418
|
+
public var hasBytesWritten: Bool {return self._bytesWritten != nil}
|
|
419
|
+
/// Clears the value of `bytesWritten`. Subsequent reads from it will return its default value.
|
|
420
|
+
public mutating func clearBytesWritten() {self._bytesWritten = nil}
|
|
421
|
+
|
|
412
422
|
public var unknownFields = SwiftProtobuf.UnknownStorage()
|
|
413
423
|
|
|
414
424
|
public init() {}
|
|
@@ -416,6 +426,7 @@ public struct BlueSystemAVRInfo: Sendable {
|
|
|
416
426
|
fileprivate var _vermaj: UInt32? = nil
|
|
417
427
|
fileprivate var _vermin: UInt32? = nil
|
|
418
428
|
fileprivate var _buildnr: UInt32? = nil
|
|
429
|
+
fileprivate var _bytesWritten: UInt32? = nil
|
|
419
430
|
}
|
|
420
431
|
|
|
421
432
|
public struct BlueSystemConfig: @unchecked Sendable {
|
|
@@ -1464,6 +1475,7 @@ extension BlueSystemAVRInfo: SwiftProtobuf.Message, SwiftProtobuf._MessageImplem
|
|
|
1464
1475
|
1: .same(proto: "vermaj"),
|
|
1465
1476
|
2: .same(proto: "vermin"),
|
|
1466
1477
|
3: .same(proto: "buildnr"),
|
|
1478
|
+
4: .same(proto: "bytesWritten"),
|
|
1467
1479
|
]
|
|
1468
1480
|
|
|
1469
1481
|
public var isInitialized: Bool {
|
|
@@ -1482,6 +1494,7 @@ extension BlueSystemAVRInfo: SwiftProtobuf.Message, SwiftProtobuf._MessageImplem
|
|
|
1482
1494
|
case 1: try { try decoder.decodeSingularUInt32Field(value: &self._vermaj) }()
|
|
1483
1495
|
case 2: try { try decoder.decodeSingularUInt32Field(value: &self._vermin) }()
|
|
1484
1496
|
case 3: try { try decoder.decodeSingularUInt32Field(value: &self._buildnr) }()
|
|
1497
|
+
case 4: try { try decoder.decodeSingularUInt32Field(value: &self._bytesWritten) }()
|
|
1485
1498
|
default: break
|
|
1486
1499
|
}
|
|
1487
1500
|
}
|
|
@@ -1501,6 +1514,9 @@ extension BlueSystemAVRInfo: SwiftProtobuf.Message, SwiftProtobuf._MessageImplem
|
|
|
1501
1514
|
try { if let v = self._buildnr {
|
|
1502
1515
|
try visitor.visitSingularUInt32Field(value: v, fieldNumber: 3)
|
|
1503
1516
|
} }()
|
|
1517
|
+
try { if let v = self._bytesWritten {
|
|
1518
|
+
try visitor.visitSingularUInt32Field(value: v, fieldNumber: 4)
|
|
1519
|
+
} }()
|
|
1504
1520
|
try unknownFields.traverse(visitor: &visitor)
|
|
1505
1521
|
}
|
|
1506
1522
|
|
|
@@ -1508,6 +1524,7 @@ extension BlueSystemAVRInfo: SwiftProtobuf.Message, SwiftProtobuf._MessageImplem
|
|
|
1508
1524
|
if lhs._vermaj != rhs._vermaj {return false}
|
|
1509
1525
|
if lhs._vermin != rhs._vermin {return false}
|
|
1510
1526
|
if lhs._buildnr != rhs._buildnr {return false}
|
|
1527
|
+
if lhs._bytesWritten != rhs._bytesWritten {return false}
|
|
1511
1528
|
if lhs.unknownFields != rhs.unknownFields {return false}
|
|
1512
1529
|
return true
|
|
1513
1530
|
}
|