@blueid/access-proto 1.34.0 → 1.35.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.
@@ -166,20 +166,6 @@ export const BlueSystemProvisioning = proto2.makeMessageType(
166
166
  ],
167
167
  );
168
168
 
169
- /**
170
- * @generated from message BlueHardwareInfo
171
- */
172
- export const BlueHardwareInfo = proto2.makeMessageType(
173
- "BlueHardwareInfo",
174
- () => [
175
- { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
176
- { no: 2, name: "vendor", kind: "scalar", T: 9 /* ScalarType.STRING */ },
177
- { no: 3, name: "vendorName", kind: "scalar", T: 9 /* ScalarType.STRING */ },
178
- { no: 4, name: "version", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
179
- { no: 5, name: "type", kind: "enum", T: proto2.getEnumType(BlueHardwareType) },
180
- ],
181
- );
182
-
183
169
  /**
184
170
  * @generated from message BlueSystemStatus
185
171
  */
@@ -196,10 +182,6 @@ export const BlueSystemStatus = proto2.makeMessageType(
196
182
  { no: 8, name: "settings", kind: "message", T: BlueSystemSettings },
197
183
  { no: 9, name: "lock", kind: "message", T: BlueLockStatus, opt: true },
198
184
  { no: 10, name: "applicationVersionTest", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
199
- { no: 11, name: "newFirmwareVersionAvailable", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
200
- { no: 12, name: "newTestFirmwareVersionAvailable", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
201
- { no: 13, name: "newConfigurationAvailable", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
202
- { no: 14, name: "hardwareInfo", kind: "message", T: BlueHardwareInfo, opt: true },
203
185
  ],
204
186
  );
205
187
 
@@ -48,6 +48,12 @@ PB_BIND(BLUESYNCHRONIZEACCESSCREDENTIAL, BlueSynchronizeAccessCredential_t, AUTO
48
48
  PB_BIND(BLUESYNCHRONIZEACCESSCREDENTIALS, BlueSynchronizeAccessCredentials_t, AUTO)
49
49
 
50
50
 
51
+ PB_BIND(BLUEHARDWAREINFO, BlueHardwareInfo_t, AUTO)
52
+
53
+
54
+ PB_BIND(BLUESYSTEMSTATUSEXT, BlueSystemStatusExt_t, AUTO)
55
+
56
+
51
57
 
52
58
 
53
59
 
@@ -5,6 +5,7 @@
5
5
  #define PB_BLUESDK_PB_H_INCLUDED
6
6
  #include "pb.h"
7
7
  #include "BlueCore.pb.h"
8
+ #include "BlueSystem.pb.h"
8
9
 
9
10
  #if PB_PROTO_HEADER_VERSION != 40
10
11
  #error Regenerate this file with the current version of nanopb generator.
@@ -169,6 +170,26 @@ typedef struct BlueSynchronizeAccessCredentials {
169
170
  pb_callback_t credentials;
170
171
  } BlueSynchronizeAccessCredentials_t;
171
172
 
173
+ typedef struct BlueHardwareInfo {
174
+ pb_callback_t name;
175
+ pb_callback_t vendor;
176
+ pb_callback_t vendorName;
177
+ uint32_t version;
178
+ BlueHardwareType_t type;
179
+ } BlueHardwareInfo_t;
180
+
181
+ typedef struct BlueSystemStatusExt {
182
+ BlueSystemStatus_t status;
183
+ bool has_newFirmwareVersionAvailable;
184
+ bool newFirmwareVersionAvailable;
185
+ bool has_newTestFirmwareVersionAvailable;
186
+ bool newTestFirmwareVersionAvailable;
187
+ bool has_newConfigurationAvailable;
188
+ bool newConfigurationAvailable;
189
+ bool has_hardwareInfo;
190
+ BlueHardwareInfo_t hardwareInfo;
191
+ } BlueSystemStatusExt_t;
192
+
172
193
 
173
194
  #ifdef __cplusplus
174
195
  extern "C" {
@@ -201,6 +222,9 @@ extern "C" {
201
222
  #define BlueSynchronizeAccessCredential_t_returnCode_ENUMTYPE BlueReturnCode_t
202
223
 
203
224
 
225
+ #define BlueHardwareInfo_t_type_ENUMTYPE BlueHardwareType_t
226
+
227
+
204
228
 
205
229
  /* Initializer values for message structs */
206
230
  #define BLUEI18N_INIT_DEFAULT {{{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}}
@@ -217,6 +241,8 @@ extern "C" {
217
241
  #define BLUEREFRESHOSSSOCREDENTIALS_INIT_DEFAULT {{{NULL}, NULL}}
218
242
  #define BLUESYNCHRONIZEACCESSCREDENTIAL_INIT_DEFAULT {BLUECREDENTIALID_INIT_DEFAULT, _BLUERETURNCODE_MIN, {{NULL}, NULL}}
219
243
  #define BLUESYNCHRONIZEACCESSCREDENTIALS_INIT_DEFAULT {{{NULL}, NULL}}
244
+ #define BLUEHARDWAREINFO_INIT_DEFAULT {{{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, 0, _BLUEHARDWARETYPE_MIN}
245
+ #define BLUESYSTEMSTATUSEXT_INIT_DEFAULT {BLUESYSTEMSTATUS_INIT_DEFAULT, false, 0, false, 0, false, 0, false, BLUEHARDWAREINFO_INIT_DEFAULT}
220
246
  #define BLUEI18N_INIT_ZERO {{{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}}
221
247
  #define BLUEDEVICEDETAILSBLUETOOTH_INIT_ZERO {0, 0, 0}
222
248
  #define BLUEDEVICEDETAILSUWB_INIT_ZERO {0}
@@ -231,6 +257,8 @@ extern "C" {
231
257
  #define BLUEREFRESHOSSSOCREDENTIALS_INIT_ZERO {{{NULL}, NULL}}
232
258
  #define BLUESYNCHRONIZEACCESSCREDENTIAL_INIT_ZERO {BLUECREDENTIALID_INIT_ZERO, _BLUERETURNCODE_MIN, {{NULL}, NULL}}
233
259
  #define BLUESYNCHRONIZEACCESSCREDENTIALS_INIT_ZERO {{{NULL}, NULL}}
260
+ #define BLUEHARDWAREINFO_INIT_ZERO {{{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, 0, _BLUEHARDWARETYPE_MIN}
261
+ #define BLUESYSTEMSTATUSEXT_INIT_ZERO {BLUESYSTEMSTATUS_INIT_ZERO, false, 0, false, 0, false, 0, false, BLUEHARDWAREINFO_INIT_ZERO}
234
262
 
235
263
  /* Field tags (for use in manual encoding/decoding) */
236
264
  #define BLUEI18N_NFCWAITMESSAGE_TAG 1
@@ -327,6 +355,16 @@ extern "C" {
327
355
  #define BLUESYNCHRONIZEACCESSCREDENTIAL_RETURNCODE_TAG 2
328
356
  #define BLUESYNCHRONIZEACCESSCREDENTIAL_ERRORDESCRIPTION_TAG 3
329
357
  #define BLUESYNCHRONIZEACCESSCREDENTIALS_CREDENTIALS_TAG 1
358
+ #define BLUEHARDWAREINFO_NAME_TAG 1
359
+ #define BLUEHARDWAREINFO_VENDOR_TAG 2
360
+ #define BLUEHARDWAREINFO_VENDORNAME_TAG 3
361
+ #define BLUEHARDWAREINFO_VERSION_TAG 4
362
+ #define BLUEHARDWAREINFO_TYPE_TAG 5
363
+ #define BLUESYSTEMSTATUSEXT_STATUS_TAG 1
364
+ #define BLUESYSTEMSTATUSEXT_NEWFIRMWAREVERSIONAVAILABLE_TAG 2
365
+ #define BLUESYSTEMSTATUSEXT_NEWTESTFIRMWAREVERSIONAVAILABLE_TAG 3
366
+ #define BLUESYSTEMSTATUSEXT_NEWCONFIGURATIONAVAILABLE_TAG 4
367
+ #define BLUESYSTEMSTATUSEXT_HARDWAREINFO_TAG 5
330
368
 
331
369
  /* Struct field encoding specification for nanopb */
332
370
  #define BLUEI18N_FIELDLIST(X, a) \
@@ -494,6 +532,26 @@ X(a, CALLBACK, REPEATED, MESSAGE, credentials, 1)
494
532
  #define BLUESYNCHRONIZEACCESSCREDENTIALS_DEFAULT NULL
495
533
  #define BlueSynchronizeAccessCredentials_t_credentials_MSGTYPE BlueSynchronizeAccessCredential_t
496
534
 
535
+ #define BLUEHARDWAREINFO_FIELDLIST(X, a) \
536
+ X(a, CALLBACK, REQUIRED, STRING, name, 1) \
537
+ X(a, CALLBACK, REQUIRED, STRING, vendor, 2) \
538
+ X(a, CALLBACK, REQUIRED, STRING, vendorName, 3) \
539
+ X(a, STATIC, REQUIRED, UINT32, version, 4) \
540
+ X(a, STATIC, REQUIRED, UENUM, type, 5)
541
+ #define BLUEHARDWAREINFO_CALLBACK pb_default_field_callback
542
+ #define BLUEHARDWAREINFO_DEFAULT NULL
543
+
544
+ #define BLUESYSTEMSTATUSEXT_FIELDLIST(X, a) \
545
+ X(a, STATIC, REQUIRED, MESSAGE, status, 1) \
546
+ X(a, STATIC, OPTIONAL, BOOL, newFirmwareVersionAvailable, 2) \
547
+ X(a, STATIC, OPTIONAL, BOOL, newTestFirmwareVersionAvailable, 3) \
548
+ X(a, STATIC, OPTIONAL, BOOL, newConfigurationAvailable, 4) \
549
+ X(a, STATIC, OPTIONAL, MESSAGE, hardwareInfo, 5)
550
+ #define BLUESYSTEMSTATUSEXT_CALLBACK NULL
551
+ #define BLUESYSTEMSTATUSEXT_DEFAULT NULL
552
+ #define BlueSystemStatusExt_t_status_MSGTYPE BlueSystemStatus_t
553
+ #define BlueSystemStatusExt_t_hardwareInfo_MSGTYPE BlueHardwareInfo_t
554
+
497
555
  extern const pb_msgdesc_t BlueI18n_t_msg;
498
556
  extern const pb_msgdesc_t BlueDeviceDetailsBluetooth_t_msg;
499
557
  extern const pb_msgdesc_t BlueDeviceDetailsUWB_t_msg;
@@ -508,6 +566,8 @@ extern const pb_msgdesc_t BlueRefreshOssSoCredential_t_msg;
508
566
  extern const pb_msgdesc_t BlueRefreshOssSoCredentials_t_msg;
509
567
  extern const pb_msgdesc_t BlueSynchronizeAccessCredential_t_msg;
510
568
  extern const pb_msgdesc_t BlueSynchronizeAccessCredentials_t_msg;
569
+ extern const pb_msgdesc_t BlueHardwareInfo_t_msg;
570
+ extern const pb_msgdesc_t BlueSystemStatusExt_t_msg;
511
571
 
512
572
  /* Defines for backwards compatibility with code written before nanopb-0.4.0 */
513
573
  #define BLUEI18N_FIELDS &BlueI18n_t_msg
@@ -524,6 +584,8 @@ extern const pb_msgdesc_t BlueSynchronizeAccessCredentials_t_msg;
524
584
  #define BLUEREFRESHOSSSOCREDENTIALS_FIELDS &BlueRefreshOssSoCredentials_t_msg
525
585
  #define BLUESYNCHRONIZEACCESSCREDENTIAL_FIELDS &BlueSynchronizeAccessCredential_t_msg
526
586
  #define BLUESYNCHRONIZEACCESSCREDENTIALS_FIELDS &BlueSynchronizeAccessCredentials_t_msg
587
+ #define BLUEHARDWAREINFO_FIELDS &BlueHardwareInfo_t_msg
588
+ #define BLUESYSTEMSTATUSEXT_FIELDS &BlueSystemStatusExt_t_msg
527
589
 
528
590
  /* Maximum encoded size of messages (where known) */
529
591
  /* BlueI18n_size depends on runtime parameters */
@@ -537,6 +599,8 @@ extern const pb_msgdesc_t BlueSynchronizeAccessCredentials_t_msg;
537
599
  /* BlueRefreshOssSoCredentials_size depends on runtime parameters */
538
600
  /* BlueSynchronizeAccessCredential_size depends on runtime parameters */
539
601
  /* BlueSynchronizeAccessCredentials_size depends on runtime parameters */
602
+ /* BlueHardwareInfo_size depends on runtime parameters */
603
+ /* BlueSystemStatusExt_size depends on runtime parameters */
540
604
  #define BLUEDEVICEDETAILSBLUETOOTH_SIZE 24
541
605
  #define BLUEDEVICEDETAILSUWB_SIZE 2
542
606
  #define BLUEREFRESHOSSSOCREDENTIAL_SIZE 26038
@@ -39,9 +39,6 @@ PB_BIND(BLUESYSTEMSETTINGS, BlueSystemSettings_t, AUTO)
39
39
  PB_BIND(BLUESYSTEMPROVISIONING, BlueSystemProvisioning_t, 2)
40
40
 
41
41
 
42
- PB_BIND(BLUEHARDWAREINFO, BlueHardwareInfo_t, AUTO)
43
-
44
-
45
42
  PB_BIND(BLUESYSTEMSTATUS, BlueSystemStatus_t, AUTO)
46
43
 
47
44
 
@@ -158,14 +158,6 @@ typedef struct BlueSystemProvisioning {
158
158
  BlueSystemProvisioning_signaturePublicKey_t signaturePublicKey;
159
159
  } BlueSystemProvisioning_t;
160
160
 
161
- typedef struct BlueHardwareInfo {
162
- pb_callback_t name;
163
- pb_callback_t vendor;
164
- pb_callback_t vendorName;
165
- uint32_t version;
166
- BlueHardwareType_t type;
167
- } BlueHardwareInfo_t;
168
-
169
161
  typedef struct BlueSystemStatus {
170
162
  char configId[9];
171
163
  char deviceId[9];
@@ -180,14 +172,6 @@ typedef struct BlueSystemStatus {
180
172
  BlueLockStatus_t lock;
181
173
  bool has_applicationVersionTest;
182
174
  uint32_t applicationVersionTest;
183
- bool has_newFirmwareVersionAvailable;
184
- bool newFirmwareVersionAvailable;
185
- bool has_newTestFirmwareVersionAvailable;
186
- bool newTestFirmwareVersionAvailable;
187
- bool has_newConfigurationAvailable;
188
- bool newConfigurationAvailable;
189
- bool has_hardwareInfo;
190
- BlueHardwareInfo_t hardwareInfo;
191
175
  } BlueSystemStatus_t;
192
176
 
193
177
  typedef struct BlueSystemLogQuery {
@@ -249,8 +233,7 @@ extern "C" {
249
233
  #define BLUESYSTEMUPDATE_INIT_DEFAULT {false, BLUESYSTEMCONFIG_INIT_DEFAULT, false, BLUESYSTEMTIMEUNIX_INIT_DEFAULT}
250
234
  #define BLUESYSTEMSETTINGS_INIT_DEFAULT {0u, 0u, 0u, 0u, 0u, 0u, 0u, 0u, 0u, 0u, 0, 0}
251
235
  #define BLUESYSTEMPROVISIONING_INIT_DEFAULT {BlueHardwareType_TestHardware, "", "00000000000000000000", {0, {0}}, {0, {0}}}
252
- #define BLUEHARDWAREINFO_INIT_DEFAULT {{{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, 0, _BLUEHARDWARETYPE_MIN}
253
- #define BLUESYSTEMSTATUS_INIT_DEFAULT {"", "", "", _BLUEHARDWARETYPE_MIN, _BLUEBATTERYLEVEL_MIN, 0, BLUELOCALTIMESTAMP_INIT_DEFAULT, BLUESYSTEMSETTINGS_INIT_DEFAULT, false, BLUELOCKSTATUS_INIT_DEFAULT, false, 0, false, 0, false, 0, false, 0, false, BLUEHARDWAREINFO_INIT_DEFAULT}
236
+ #define BLUESYSTEMSTATUS_INIT_DEFAULT {"", "", "", _BLUEHARDWARETYPE_MIN, _BLUEBATTERYLEVEL_MIN, 0, BLUELOCALTIMESTAMP_INIT_DEFAULT, BLUESYSTEMSETTINGS_INIT_DEFAULT, false, BLUELOCKSTATUS_INIT_DEFAULT, false, 0}
254
237
  #define BLUESYSTEMLOGQUERY_INIT_DEFAULT {0, 0, {0}}
255
238
  #define BLUESYSTEMLOGENTRY_INIT_DEFAULT {0, BLUELOCALTIMESTAMP_INIT_DEFAULT, 0, 0, "", ""}
256
239
  #define BLUESYSTEMLOGRESULT_INIT_DEFAULT {0, {BLUESYSTEMLOGENTRY_INIT_DEFAULT, BLUESYSTEMLOGENTRY_INIT_DEFAULT, BLUESYSTEMLOGENTRY_INIT_DEFAULT, BLUESYSTEMLOGENTRY_INIT_DEFAULT, BLUESYSTEMLOGENTRY_INIT_DEFAULT, BLUESYSTEMLOGENTRY_INIT_DEFAULT, BLUESYSTEMLOGENTRY_INIT_DEFAULT, BLUESYSTEMLOGENTRY_INIT_DEFAULT, BLUESYSTEMLOGENTRY_INIT_DEFAULT, BLUESYSTEMLOGENTRY_INIT_DEFAULT}}
@@ -268,8 +251,7 @@ extern "C" {
268
251
  #define BLUESYSTEMUPDATE_INIT_ZERO {false, BLUESYSTEMCONFIG_INIT_ZERO, false, BLUESYSTEMTIMEUNIX_INIT_ZERO}
269
252
  #define BLUESYSTEMSETTINGS_INIT_ZERO {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
270
253
  #define BLUESYSTEMPROVISIONING_INIT_ZERO {_BLUEHARDWARETYPE_MIN, "", "", {0, {0}}, {0, {0}}}
271
- #define BLUEHARDWAREINFO_INIT_ZERO {{{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, 0, _BLUEHARDWARETYPE_MIN}
272
- #define BLUESYSTEMSTATUS_INIT_ZERO {"", "", "", _BLUEHARDWARETYPE_MIN, _BLUEBATTERYLEVEL_MIN, 0, BLUELOCALTIMESTAMP_INIT_ZERO, BLUESYSTEMSETTINGS_INIT_ZERO, false, BLUELOCKSTATUS_INIT_ZERO, false, 0, false, 0, false, 0, false, 0, false, BLUEHARDWAREINFO_INIT_ZERO}
254
+ #define BLUESYSTEMSTATUS_INIT_ZERO {"", "", "", _BLUEHARDWARETYPE_MIN, _BLUEBATTERYLEVEL_MIN, 0, BLUELOCALTIMESTAMP_INIT_ZERO, BLUESYSTEMSETTINGS_INIT_ZERO, false, BLUELOCKSTATUS_INIT_ZERO, false, 0}
273
255
  #define BLUESYSTEMLOGQUERY_INIT_ZERO {0, 0, {0}}
274
256
  #define BLUESYSTEMLOGENTRY_INIT_ZERO {0, BLUELOCALTIMESTAMP_INIT_ZERO, 0, 0, "", ""}
275
257
  #define BLUESYSTEMLOGRESULT_INIT_ZERO {0, {BLUESYSTEMLOGENTRY_INIT_ZERO, BLUESYSTEMLOGENTRY_INIT_ZERO, BLUESYSTEMLOGENTRY_INIT_ZERO, BLUESYSTEMLOGENTRY_INIT_ZERO, BLUESYSTEMLOGENTRY_INIT_ZERO, BLUESYSTEMLOGENTRY_INIT_ZERO, BLUESYSTEMLOGENTRY_INIT_ZERO, BLUESYSTEMLOGENTRY_INIT_ZERO, BLUESYSTEMLOGENTRY_INIT_ZERO, BLUESYSTEMLOGENTRY_INIT_ZERO}}
@@ -334,11 +316,6 @@ extern "C" {
334
316
  #define BLUESYSTEMPROVISIONING_SERIALNUMBER_TAG 3
335
317
  #define BLUESYSTEMPROVISIONING_TERMINALPRIVATEKEY_TAG 4
336
318
  #define BLUESYSTEMPROVISIONING_SIGNATUREPUBLICKEY_TAG 5
337
- #define BLUEHARDWAREINFO_NAME_TAG 1
338
- #define BLUEHARDWAREINFO_VENDOR_TAG 2
339
- #define BLUEHARDWAREINFO_VENDORNAME_TAG 3
340
- #define BLUEHARDWAREINFO_VERSION_TAG 4
341
- #define BLUEHARDWAREINFO_TYPE_TAG 5
342
319
  #define BLUESYSTEMSTATUS_CONFIGID_TAG 1
343
320
  #define BLUESYSTEMSTATUS_DEVICEID_TAG 2
344
321
  #define BLUESYSTEMSTATUS_SERIALNUMBER_TAG 3
@@ -349,10 +326,6 @@ extern "C" {
349
326
  #define BLUESYSTEMSTATUS_SETTINGS_TAG 8
350
327
  #define BLUESYSTEMSTATUS_LOCK_TAG 9
351
328
  #define BLUESYSTEMSTATUS_APPLICATIONVERSIONTEST_TAG 10
352
- #define BLUESYSTEMSTATUS_NEWFIRMWAREVERSIONAVAILABLE_TAG 11
353
- #define BLUESYSTEMSTATUS_NEWTESTFIRMWAREVERSIONAVAILABLE_TAG 12
354
- #define BLUESYSTEMSTATUS_NEWCONFIGURATIONAVAILABLE_TAG 13
355
- #define BLUESYSTEMSTATUS_HARDWAREINFO_TAG 14
356
329
  #define BLUESYSTEMLOGQUERY_MAXCOUNT_TAG 1
357
330
  #define BLUESYSTEMLOGQUERY_SEQUENCEID_TAG 2
358
331
  #define BLUESYSTEMLOGQUERY_FROMHEAD_TAG 3
@@ -482,15 +455,6 @@ X(a, STATIC, REQUIRED, BYTES, signaturePublicKey, 5)
482
455
  #define BLUESYSTEMPROVISIONING_CALLBACK NULL
483
456
  #define BLUESYSTEMPROVISIONING_DEFAULT (const pb_byte_t*)"\x08\x01\x1a\x14\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x00"
484
457
 
485
- #define BLUEHARDWAREINFO_FIELDLIST(X, a) \
486
- X(a, CALLBACK, REQUIRED, STRING, name, 1) \
487
- X(a, CALLBACK, REQUIRED, STRING, vendor, 2) \
488
- X(a, CALLBACK, REQUIRED, STRING, vendorName, 3) \
489
- X(a, STATIC, REQUIRED, UINT32, version, 4) \
490
- X(a, STATIC, REQUIRED, UENUM, type, 5)
491
- #define BLUEHARDWAREINFO_CALLBACK pb_default_field_callback
492
- #define BLUEHARDWAREINFO_DEFAULT NULL
493
-
494
458
  #define BLUESYSTEMSTATUS_FIELDLIST(X, a) \
495
459
  X(a, STATIC, REQUIRED, STRING, configId, 1) \
496
460
  X(a, STATIC, REQUIRED, STRING, deviceId, 2) \
@@ -501,17 +465,12 @@ X(a, STATIC, REQUIRED, UINT32, applicationVersion, 6) \
501
465
  X(a, STATIC, REQUIRED, MESSAGE, localTime, 7) \
502
466
  X(a, STATIC, REQUIRED, MESSAGE, settings, 8) \
503
467
  X(a, STATIC, OPTIONAL, MESSAGE, lock, 9) \
504
- X(a, STATIC, OPTIONAL, UINT32, applicationVersionTest, 10) \
505
- X(a, STATIC, OPTIONAL, BOOL, newFirmwareVersionAvailable, 11) \
506
- X(a, STATIC, OPTIONAL, BOOL, newTestFirmwareVersionAvailable, 12) \
507
- X(a, STATIC, OPTIONAL, BOOL, newConfigurationAvailable, 13) \
508
- X(a, STATIC, OPTIONAL, MESSAGE, hardwareInfo, 14)
468
+ X(a, STATIC, OPTIONAL, UINT32, applicationVersionTest, 10)
509
469
  #define BLUESYSTEMSTATUS_CALLBACK NULL
510
470
  #define BLUESYSTEMSTATUS_DEFAULT NULL
511
471
  #define BlueSystemStatus_t_localTime_MSGTYPE BlueLocalTimestamp_t
512
472
  #define BlueSystemStatus_t_settings_MSGTYPE BlueSystemSettings_t
513
473
  #define BlueSystemStatus_t_lock_MSGTYPE BlueLockStatus_t
514
- #define BlueSystemStatus_t_hardwareInfo_MSGTYPE BlueHardwareInfo_t
515
474
 
516
475
  #define BLUESYSTEMLOGQUERY_FIELDLIST(X, a) \
517
476
  X(a, STATIC, REQUIRED, UINT32, maxCount, 1) \
@@ -567,7 +526,6 @@ extern const pb_msgdesc_t BlueSystemTimeUnix_t_msg;
567
526
  extern const pb_msgdesc_t BlueSystemUpdate_t_msg;
568
527
  extern const pb_msgdesc_t BlueSystemSettings_t_msg;
569
528
  extern const pb_msgdesc_t BlueSystemProvisioning_t_msg;
570
- extern const pb_msgdesc_t BlueHardwareInfo_t_msg;
571
529
  extern const pb_msgdesc_t BlueSystemStatus_t_msg;
572
530
  extern const pb_msgdesc_t BlueSystemLogQuery_t_msg;
573
531
  extern const pb_msgdesc_t BlueSystemLogEntry_t_msg;
@@ -588,7 +546,6 @@ extern const pb_msgdesc_t BlueBlacklistEntries_t_msg;
588
546
  #define BLUESYSTEMUPDATE_FIELDS &BlueSystemUpdate_t_msg
589
547
  #define BLUESYSTEMSETTINGS_FIELDS &BlueSystemSettings_t_msg
590
548
  #define BLUESYSTEMPROVISIONING_FIELDS &BlueSystemProvisioning_t_msg
591
- #define BLUEHARDWAREINFO_FIELDS &BlueHardwareInfo_t_msg
592
549
  #define BLUESYSTEMSTATUS_FIELDS &BlueSystemStatus_t_msg
593
550
  #define BLUESYSTEMLOGQUERY_FIELDS &BlueSystemLogQuery_t_msg
594
551
  #define BLUESYSTEMLOGENTRY_FIELDS &BlueSystemLogEntry_t_msg
@@ -598,8 +555,6 @@ extern const pb_msgdesc_t BlueBlacklistEntries_t_msg;
598
555
  #define BLUEBLACKLISTENTRIES_FIELDS &BlueBlacklistEntries_t_msg
599
556
 
600
557
  /* Maximum encoded size of messages (where known) */
601
- /* BlueHardwareInfo_size depends on runtime parameters */
602
- /* BlueSystemStatus_size depends on runtime parameters */
603
558
  #define BLUEACCESSCONFIGGROUP_SIZE 79
604
559
  #define BLUEACCESSCONFIG_SIZE 816
605
560
  #define BLUEBASECONFIG_SIZE 22
@@ -615,6 +570,7 @@ extern const pb_msgdesc_t BlueBlacklistEntries_t_msg;
615
570
  #define BLUESYSTEMLOGRESULT_SIZE 1550
616
571
  #define BLUESYSTEMPROVISIONING_SIZE 299
617
572
  #define BLUESYSTEMSETTINGS_SIZE 48
573
+ #define BLUESYSTEMSTATUS_SIZE 140
618
574
  #define BLUESYSTEMTIMEUNIX_SIZE 6
619
575
  #define BLUESYSTEMUPDATE_SIZE 1668
620
576
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blueid/access-proto",
3
- "version": "1.34.0",
3
+ "version": "1.35.0",
4
4
  "description": "BlueID Access Proto files",
5
5
  "author": "BlueID GmbH",
6
6
  "main": "cjs/index.js",
@@ -226,7 +226,7 @@ public struct BlueI18n {
226
226
  public mutating func clearOpenViaOssAccessGrantedLockEngagedTitle() {_uniqueStorage()._openViaOssAccessGrantedLockEngagedTitle = nil}
227
227
 
228
228
  public var openViaOssAccessGrantedLockEngagedMessage: String {
229
- get {return _storage._openViaOssAccessGrantedLockEngagedMessage ?? "Lock remains closed until toggled again."}
229
+ get {return _storage._openViaOssAccessGrantedLockEngagedMessage ?? "Lock permanently closed."}
230
230
  set {_uniqueStorage()._openViaOssAccessGrantedLockEngagedMessage = newValue}
231
231
  }
232
232
  /// Returns true if `openViaOssAccessGrantedLockEngagedMessage` has been explicitly set.
@@ -244,7 +244,7 @@ public struct BlueI18n {
244
244
  public mutating func clearOpenViaOssAccessGrantedLockDisengagedTitle() {_uniqueStorage()._openViaOssAccessGrantedLockDisengagedTitle = nil}
245
245
 
246
246
  public var openViaOssAccessGrantedLockDisengagedMessage: String {
247
- get {return _storage._openViaOssAccessGrantedLockDisengagedMessage ?? "Lock remains open until toggled again."}
247
+ get {return _storage._openViaOssAccessGrantedLockDisengagedMessage ?? "Lock permanently opened."}
248
248
  set {_uniqueStorage()._openViaOssAccessGrantedLockDisengagedMessage = newValue}
249
249
  }
250
250
  /// Returns true if `openViaOssAccessGrantedLockDisengagedMessage` has been explicitly set.
@@ -1110,6 +1110,128 @@ public struct BlueSynchronizeAccessCredentials {
1110
1110
  public init() {}
1111
1111
  }
1112
1112
 
1113
+ public struct BlueHardwareInfo {
1114
+ // SwiftProtobuf.Message conformance is added in an extension below. See the
1115
+ // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
1116
+ // methods supported on all messages.
1117
+
1118
+ public var name: String {
1119
+ get {return _name ?? String()}
1120
+ set {_name = newValue}
1121
+ }
1122
+ /// Returns true if `name` has been explicitly set.
1123
+ public var hasName: Bool {return self._name != nil}
1124
+ /// Clears the value of `name`. Subsequent reads from it will return its default value.
1125
+ public mutating func clearName() {self._name = nil}
1126
+
1127
+ public var vendor: String {
1128
+ get {return _vendor ?? String()}
1129
+ set {_vendor = newValue}
1130
+ }
1131
+ /// Returns true if `vendor` has been explicitly set.
1132
+ public var hasVendor: Bool {return self._vendor != nil}
1133
+ /// Clears the value of `vendor`. Subsequent reads from it will return its default value.
1134
+ public mutating func clearVendor() {self._vendor = nil}
1135
+
1136
+ public var vendorName: String {
1137
+ get {return _vendorName ?? String()}
1138
+ set {_vendorName = newValue}
1139
+ }
1140
+ /// Returns true if `vendorName` has been explicitly set.
1141
+ public var hasVendorName: Bool {return self._vendorName != nil}
1142
+ /// Clears the value of `vendorName`. Subsequent reads from it will return its default value.
1143
+ public mutating func clearVendorName() {self._vendorName = nil}
1144
+
1145
+ public var version: UInt32 {
1146
+ get {return _version ?? 0}
1147
+ set {_version = newValue}
1148
+ }
1149
+ /// Returns true if `version` has been explicitly set.
1150
+ public var hasVersion: Bool {return self._version != nil}
1151
+ /// Clears the value of `version`. Subsequent reads from it will return its default value.
1152
+ public mutating func clearVersion() {self._version = nil}
1153
+
1154
+ public var type: BlueHardwareType {
1155
+ get {return _type ?? .unknownHardware}
1156
+ set {_type = newValue}
1157
+ }
1158
+ /// Returns true if `type` has been explicitly set.
1159
+ public var hasType: Bool {return self._type != nil}
1160
+ /// Clears the value of `type`. Subsequent reads from it will return its default value.
1161
+ public mutating func clearType() {self._type = nil}
1162
+
1163
+ public var unknownFields = SwiftProtobuf.UnknownStorage()
1164
+
1165
+ public init() {}
1166
+
1167
+ fileprivate var _name: String? = nil
1168
+ fileprivate var _vendor: String? = nil
1169
+ fileprivate var _vendorName: String? = nil
1170
+ fileprivate var _version: UInt32? = nil
1171
+ fileprivate var _type: BlueHardwareType? = nil
1172
+ }
1173
+
1174
+ public struct BlueSystemStatusExt {
1175
+ // SwiftProtobuf.Message conformance is added in an extension below. See the
1176
+ // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
1177
+ // methods supported on all messages.
1178
+
1179
+ public var status: BlueSystemStatus {
1180
+ get {return _status ?? BlueSystemStatus()}
1181
+ set {_status = newValue}
1182
+ }
1183
+ /// Returns true if `status` has been explicitly set.
1184
+ public var hasStatus: Bool {return self._status != nil}
1185
+ /// Clears the value of `status`. Subsequent reads from it will return its default value.
1186
+ public mutating func clearStatus() {self._status = nil}
1187
+
1188
+ public var newFirmwareVersionAvailable: Bool {
1189
+ get {return _newFirmwareVersionAvailable ?? false}
1190
+ set {_newFirmwareVersionAvailable = newValue}
1191
+ }
1192
+ /// Returns true if `newFirmwareVersionAvailable` has been explicitly set.
1193
+ public var hasNewFirmwareVersionAvailable: Bool {return self._newFirmwareVersionAvailable != nil}
1194
+ /// Clears the value of `newFirmwareVersionAvailable`. Subsequent reads from it will return its default value.
1195
+ public mutating func clearNewFirmwareVersionAvailable() {self._newFirmwareVersionAvailable = nil}
1196
+
1197
+ public var newTestFirmwareVersionAvailable: Bool {
1198
+ get {return _newTestFirmwareVersionAvailable ?? false}
1199
+ set {_newTestFirmwareVersionAvailable = newValue}
1200
+ }
1201
+ /// Returns true if `newTestFirmwareVersionAvailable` has been explicitly set.
1202
+ public var hasNewTestFirmwareVersionAvailable: Bool {return self._newTestFirmwareVersionAvailable != nil}
1203
+ /// Clears the value of `newTestFirmwareVersionAvailable`. Subsequent reads from it will return its default value.
1204
+ public mutating func clearNewTestFirmwareVersionAvailable() {self._newTestFirmwareVersionAvailable = nil}
1205
+
1206
+ public var newConfigurationAvailable: Bool {
1207
+ get {return _newConfigurationAvailable ?? false}
1208
+ set {_newConfigurationAvailable = newValue}
1209
+ }
1210
+ /// Returns true if `newConfigurationAvailable` has been explicitly set.
1211
+ public var hasNewConfigurationAvailable: Bool {return self._newConfigurationAvailable != nil}
1212
+ /// Clears the value of `newConfigurationAvailable`. Subsequent reads from it will return its default value.
1213
+ public mutating func clearNewConfigurationAvailable() {self._newConfigurationAvailable = nil}
1214
+
1215
+ public var hardwareInfo: BlueHardwareInfo {
1216
+ get {return _hardwareInfo ?? BlueHardwareInfo()}
1217
+ set {_hardwareInfo = newValue}
1218
+ }
1219
+ /// Returns true if `hardwareInfo` has been explicitly set.
1220
+ public var hasHardwareInfo: Bool {return self._hardwareInfo != nil}
1221
+ /// Clears the value of `hardwareInfo`. Subsequent reads from it will return its default value.
1222
+ public mutating func clearHardwareInfo() {self._hardwareInfo = nil}
1223
+
1224
+ public var unknownFields = SwiftProtobuf.UnknownStorage()
1225
+
1226
+ public init() {}
1227
+
1228
+ fileprivate var _status: BlueSystemStatus? = nil
1229
+ fileprivate var _newFirmwareVersionAvailable: Bool? = nil
1230
+ fileprivate var _newTestFirmwareVersionAvailable: Bool? = nil
1231
+ fileprivate var _newConfigurationAvailable: Bool? = nil
1232
+ fileprivate var _hardwareInfo: BlueHardwareInfo? = nil
1233
+ }
1234
+
1113
1235
  #if swift(>=5.5) && canImport(_Concurrency)
1114
1236
  extension BlueDeviceType: @unchecked Sendable {}
1115
1237
  extension BlueRefreshOssSoCredentialStatus: @unchecked Sendable {}
@@ -1128,6 +1250,8 @@ extension BlueRefreshOssSoCredential: @unchecked Sendable {}
1128
1250
  extension BlueRefreshOssSoCredentials: @unchecked Sendable {}
1129
1251
  extension BlueSynchronizeAccessCredential: @unchecked Sendable {}
1130
1252
  extension BlueSynchronizeAccessCredentials: @unchecked Sendable {}
1253
+ extension BlueHardwareInfo: @unchecked Sendable {}
1254
+ extension BlueSystemStatusExt: @unchecked Sendable {}
1131
1255
  #endif // swift(>=5.5) && canImport(_Concurrency)
1132
1256
 
1133
1257
  // MARK: - Code below here is support for the SwiftProtobuf runtime.
@@ -2490,3 +2614,139 @@ extension BlueSynchronizeAccessCredentials: SwiftProtobuf.Message, SwiftProtobuf
2490
2614
  return true
2491
2615
  }
2492
2616
  }
2617
+
2618
+ extension BlueHardwareInfo: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
2619
+ public static let protoMessageName: String = "BlueHardwareInfo"
2620
+ public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
2621
+ 1: .same(proto: "name"),
2622
+ 2: .same(proto: "vendor"),
2623
+ 3: .same(proto: "vendorName"),
2624
+ 4: .same(proto: "version"),
2625
+ 5: .same(proto: "type"),
2626
+ ]
2627
+
2628
+ public var isInitialized: Bool {
2629
+ if self._name == nil {return false}
2630
+ if self._vendor == nil {return false}
2631
+ if self._vendorName == nil {return false}
2632
+ if self._version == nil {return false}
2633
+ if self._type == nil {return false}
2634
+ return true
2635
+ }
2636
+
2637
+ public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
2638
+ while let fieldNumber = try decoder.nextFieldNumber() {
2639
+ // The use of inline closures is to circumvent an issue where the compiler
2640
+ // allocates stack space for every case branch when no optimizations are
2641
+ // enabled. https://github.com/apple/swift-protobuf/issues/1034
2642
+ switch fieldNumber {
2643
+ case 1: try { try decoder.decodeSingularStringField(value: &self._name) }()
2644
+ case 2: try { try decoder.decodeSingularStringField(value: &self._vendor) }()
2645
+ case 3: try { try decoder.decodeSingularStringField(value: &self._vendorName) }()
2646
+ case 4: try { try decoder.decodeSingularUInt32Field(value: &self._version) }()
2647
+ case 5: try { try decoder.decodeSingularEnumField(value: &self._type) }()
2648
+ default: break
2649
+ }
2650
+ }
2651
+ }
2652
+
2653
+ public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
2654
+ // The use of inline closures is to circumvent an issue where the compiler
2655
+ // allocates stack space for every if/case branch local when no optimizations
2656
+ // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
2657
+ // https://github.com/apple/swift-protobuf/issues/1182
2658
+ try { if let v = self._name {
2659
+ try visitor.visitSingularStringField(value: v, fieldNumber: 1)
2660
+ } }()
2661
+ try { if let v = self._vendor {
2662
+ try visitor.visitSingularStringField(value: v, fieldNumber: 2)
2663
+ } }()
2664
+ try { if let v = self._vendorName {
2665
+ try visitor.visitSingularStringField(value: v, fieldNumber: 3)
2666
+ } }()
2667
+ try { if let v = self._version {
2668
+ try visitor.visitSingularUInt32Field(value: v, fieldNumber: 4)
2669
+ } }()
2670
+ try { if let v = self._type {
2671
+ try visitor.visitSingularEnumField(value: v, fieldNumber: 5)
2672
+ } }()
2673
+ try unknownFields.traverse(visitor: &visitor)
2674
+ }
2675
+
2676
+ public static func ==(lhs: BlueHardwareInfo, rhs: BlueHardwareInfo) -> Bool {
2677
+ if lhs._name != rhs._name {return false}
2678
+ if lhs._vendor != rhs._vendor {return false}
2679
+ if lhs._vendorName != rhs._vendorName {return false}
2680
+ if lhs._version != rhs._version {return false}
2681
+ if lhs._type != rhs._type {return false}
2682
+ if lhs.unknownFields != rhs.unknownFields {return false}
2683
+ return true
2684
+ }
2685
+ }
2686
+
2687
+ extension BlueSystemStatusExt: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
2688
+ public static let protoMessageName: String = "BlueSystemStatusExt"
2689
+ public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
2690
+ 1: .same(proto: "status"),
2691
+ 2: .same(proto: "newFirmwareVersionAvailable"),
2692
+ 3: .same(proto: "newTestFirmwareVersionAvailable"),
2693
+ 4: .same(proto: "newConfigurationAvailable"),
2694
+ 5: .same(proto: "hardwareInfo"),
2695
+ ]
2696
+
2697
+ public var isInitialized: Bool {
2698
+ if self._status == nil {return false}
2699
+ if let v = self._status, !v.isInitialized {return false}
2700
+ if let v = self._hardwareInfo, !v.isInitialized {return false}
2701
+ return true
2702
+ }
2703
+
2704
+ public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
2705
+ while let fieldNumber = try decoder.nextFieldNumber() {
2706
+ // The use of inline closures is to circumvent an issue where the compiler
2707
+ // allocates stack space for every case branch when no optimizations are
2708
+ // enabled. https://github.com/apple/swift-protobuf/issues/1034
2709
+ switch fieldNumber {
2710
+ case 1: try { try decoder.decodeSingularMessageField(value: &self._status) }()
2711
+ case 2: try { try decoder.decodeSingularBoolField(value: &self._newFirmwareVersionAvailable) }()
2712
+ case 3: try { try decoder.decodeSingularBoolField(value: &self._newTestFirmwareVersionAvailable) }()
2713
+ case 4: try { try decoder.decodeSingularBoolField(value: &self._newConfigurationAvailable) }()
2714
+ case 5: try { try decoder.decodeSingularMessageField(value: &self._hardwareInfo) }()
2715
+ default: break
2716
+ }
2717
+ }
2718
+ }
2719
+
2720
+ public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
2721
+ // The use of inline closures is to circumvent an issue where the compiler
2722
+ // allocates stack space for every if/case branch local when no optimizations
2723
+ // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
2724
+ // https://github.com/apple/swift-protobuf/issues/1182
2725
+ try { if let v = self._status {
2726
+ try visitor.visitSingularMessageField(value: v, fieldNumber: 1)
2727
+ } }()
2728
+ try { if let v = self._newFirmwareVersionAvailable {
2729
+ try visitor.visitSingularBoolField(value: v, fieldNumber: 2)
2730
+ } }()
2731
+ try { if let v = self._newTestFirmwareVersionAvailable {
2732
+ try visitor.visitSingularBoolField(value: v, fieldNumber: 3)
2733
+ } }()
2734
+ try { if let v = self._newConfigurationAvailable {
2735
+ try visitor.visitSingularBoolField(value: v, fieldNumber: 4)
2736
+ } }()
2737
+ try { if let v = self._hardwareInfo {
2738
+ try visitor.visitSingularMessageField(value: v, fieldNumber: 5)
2739
+ } }()
2740
+ try unknownFields.traverse(visitor: &visitor)
2741
+ }
2742
+
2743
+ public static func ==(lhs: BlueSystemStatusExt, rhs: BlueSystemStatusExt) -> Bool {
2744
+ if lhs._status != rhs._status {return false}
2745
+ if lhs._newFirmwareVersionAvailable != rhs._newFirmwareVersionAvailable {return false}
2746
+ if lhs._newTestFirmwareVersionAvailable != rhs._newTestFirmwareVersionAvailable {return false}
2747
+ if lhs._newConfigurationAvailable != rhs._newConfigurationAvailable {return false}
2748
+ if lhs._hardwareInfo != rhs._hardwareInfo {return false}
2749
+ if lhs.unknownFields != rhs.unknownFields {return false}
2750
+ return true
2751
+ }
2752
+ }