@blueid/access-proto 12.2.0 → 12.4.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
@@ -513,7 +513,7 @@ message BlueSPTokenCommand {
513
513
  required BlueLocalTimestamp validityEnd = 3;
514
514
  required string command = 4 [ (nanopb).max_length = 8 ];
515
515
  required bytes data = 5
516
- [ (nanopb).max_size = 1792 ]; // we'll add 256b for add. data
516
+ [ (nanopb).max_size = 8216 ]; // we'll add 256b for add. data. The normal data for UUZ device would be 1792 however Nexus device will use 8216 buffer
517
517
  }
518
518
 
519
519
  message BlueSPToken {
package/BlueSystem.proto CHANGED
@@ -140,6 +140,9 @@ message BlueOssConfig {
140
140
  // The mifare application id for the oss offline application, default is the
141
141
  // oss so default aid. A value of 0 disables Oss So Mifare support.
142
142
  required uint32 soMifareAid = 8 [ default = 16076800 ];
143
+
144
+ // The card will request to refresh if the existing days passed. It can become required after stable
145
+ optional uint32 minRefreshDays = 9 [ default = 5, (nanopb).int_size = IS_8 ];
143
146
  }
144
147
 
145
148
  message BlueSystemAVRInfo {
@@ -227,6 +230,15 @@ message BlueSystemStatus {
227
230
  optional uint32 applicationVersionTest = 10;
228
231
  }
229
232
 
233
+ enum BlueNetworkType {
234
+ option (nanopb_enumopt).packed_enum = true;
235
+
236
+ None = 1;
237
+ Ethernet = 2;
238
+ Wifi = 3;
239
+ Gsm = 4;
240
+ }
241
+
230
242
  ///////////////////////////////////////////////////////////////////////
231
243
  // System Log
232
244
  ///////////////////////////////////////////////////////////////////////
@@ -281,4 +293,4 @@ message BlueEventLogResult {
281
293
 
282
294
  message BlueBlacklistEntries {
283
295
  repeated BlueBlacklistEntry entries = 1 [ (nanopb).max_count = 75 ];
284
- }
296
+ }
@@ -1658,7 +1658,7 @@ export declare class BlueSPTokenCommand extends Message<BlueSPTokenCommand> {
1658
1658
  command: string;
1659
1659
 
1660
1660
  /**
1661
- * we'll add 256b for add. data
1661
+ * we'll add 256b for add. data. The normal data for UUZ device would be 1792 however Nexus device will use 8216 buffer
1662
1662
  *
1663
1663
  * @generated from field: required bytes data = 5;
1664
1664
  */
@@ -1,5 +1,5 @@
1
1
  // @generated by protoc-gen-es v1.4.0 with parameter "target=js+dts"
2
- // @generated from file BlueNexusCore.proto (syntax proto2)
2
+ // @generated from file BlueNetworkCore.proto (syntax proto2)
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
5
5
 
@@ -15,8 +15,8 @@ var __copyProps = (to, from, except, desc) => {
15
15
  return to;
16
16
  };
17
17
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
- var BlueNexusCore_pb_exports = {};
19
- __export(BlueNexusCore_pb_exports, {
18
+ var BlueNetworkCore_pb_exports = {};
19
+ __export(BlueNetworkCore_pb_exports, {
20
20
  BlueErrorResult: () => BlueErrorResult,
21
21
  BlueSocketConfigurationResponse: () => BlueSocketConfigurationResponse,
22
22
  BlueSocketRequestConfiguration: () => BlueSocketRequestConfiguration,
@@ -36,7 +36,7 @@ __export(BlueNexusCore_pb_exports, {
36
36
  BlueWebSPServerSocketMessageSuccess: () => BlueWebSPServerSocketMessageSuccess,
37
37
  BlueWebSPStatusMessage: () => BlueWebSPStatusMessage
38
38
  });
39
- module.exports = __toCommonJS(BlueNexusCore_pb_exports);
39
+ module.exports = __toCommonJS(BlueNetworkCore_pb_exports);
40
40
  var import_protobuf = require("@bufbuild/protobuf");
41
41
  var import_BlueCore_pb = require("./BlueCore_pb.js");
42
42
  const BlueErrorResult = import_protobuf.proto2.makeMessageType(
@@ -8,6 +8,31 @@ import { Message, proto2 } from "@bufbuild/protobuf";
8
8
  import type { BlueBatteryLevel, BlueBlacklistEntry, BlueEvent, BlueHardwareType, BlueLocalTimeSchedule, BlueLocalTimestamp } from "./BlueCore_pb.js";
9
9
  import type { BlueLockConfig, BlueLockStatus } from "./BlueLock_pb.js";
10
10
 
11
+ /**
12
+ * @generated from enum BlueNetworkType
13
+ */
14
+ export declare enum BlueNetworkType {
15
+ /**
16
+ * @generated from enum value: None = 1;
17
+ */
18
+ None = 1,
19
+
20
+ /**
21
+ * @generated from enum value: Ethernet = 2;
22
+ */
23
+ Ethernet = 2,
24
+
25
+ /**
26
+ * @generated from enum value: Wifi = 3;
27
+ */
28
+ Wifi = 3,
29
+
30
+ /**
31
+ * @generated from enum value: Gsm = 4;
32
+ */
33
+ Gsm = 4,
34
+ }
35
+
11
36
  /**
12
37
  * @generated from message BlueBaseConfig
13
38
  */
@@ -325,6 +350,13 @@ export declare class BlueOssConfig extends Message<BlueOssConfig> {
325
350
  */
326
351
  soMifareAid: number;
327
352
 
353
+ /**
354
+ * The card will request to refresh if the existing days passed. It can become required after stable
355
+ *
356
+ * @generated from field: optional uint32 minRefreshDays = 9 [default = 5];
357
+ */
358
+ minRefreshDays?: number;
359
+
328
360
  constructor(data?: PartialMessage<BlueOssConfig>);
329
361
 
330
362
  static readonly runtime: typeof proto2;
@@ -24,6 +24,7 @@ __export(BlueSystem_pb_exports, {
24
24
  BlueBleConfig: () => BlueBleConfig,
25
25
  BlueEventLogQuery: () => BlueEventLogQuery,
26
26
  BlueEventLogResult: () => BlueEventLogResult,
27
+ BlueNetworkType: () => BlueNetworkType,
27
28
  BlueOnlineConfig: () => BlueOnlineConfig,
28
29
  BlueOssConfig: () => BlueOssConfig,
29
30
  BlueSystemAVRInfo: () => BlueSystemAVRInfo,
@@ -41,6 +42,15 @@ module.exports = __toCommonJS(BlueSystem_pb_exports);
41
42
  var import_protobuf = require("@bufbuild/protobuf");
42
43
  var import_BlueCore_pb = require("./BlueCore_pb.js");
43
44
  var import_BlueLock_pb = require("./BlueLock_pb.js");
45
+ const BlueNetworkType = import_protobuf.proto2.makeEnum(
46
+ "BlueNetworkType",
47
+ [
48
+ { no: 1, name: "None" },
49
+ { no: 2, name: "Ethernet" },
50
+ { no: 3, name: "Wifi" },
51
+ { no: 4, name: "Gsm" }
52
+ ]
53
+ );
44
54
  const BlueBaseConfig = import_protobuf.proto2.makeMessageType(
45
55
  "BlueBaseConfig",
46
56
  () => [
@@ -134,7 +144,8 @@ const BlueOssConfig = import_protobuf.proto2.makeMessageType(
134
144
  { no: 5, name: "soWritePendingEvents", kind: "scalar", T: 8, default: true },
135
145
  { no: 6, name: "soUpdateFromBlacklist", kind: "scalar", T: 8, default: true },
136
146
  { no: 7, name: "soMifareAesKey", kind: "scalar", T: 12, default: new Uint8Array([16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31]) },
137
- { no: 8, name: "soMifareAid", kind: "scalar", T: 13, default: 16076800 }
147
+ { no: 8, name: "soMifareAid", kind: "scalar", T: 13, default: 16076800 },
148
+ { no: 9, name: "minRefreshDays", kind: "scalar", T: 13, opt: true, default: 5 }
138
149
  ]
139
150
  );
140
151
  const BlueSystemAVRInfo = import_protobuf.proto2.makeMessageType(
package/cjs/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  export * from "./BlueCore_pb"
2
2
  export * from "./BlueLock_pb"
3
- export * from "./BlueNexusCore_pb"
3
+ export * from "./BlueNetworkCore_pb"
4
4
  export * from "./BlueSDK_pb"
5
5
  export * from "./BlueSystem_pb"
6
6
 
package/cjs/index.js CHANGED
@@ -16,6 +16,6 @@ var es_exports = {};
16
16
  module.exports = __toCommonJS(es_exports);
17
17
  __reExport(es_exports, require("./BlueCore_pb.js"), module.exports);
18
18
  __reExport(es_exports, require("./BlueLock_pb.js"), module.exports);
19
- __reExport(es_exports, require("./BlueNexusCore_pb.js"), module.exports);
19
+ __reExport(es_exports, require("./BlueNetworkCore_pb.js"), module.exports);
20
20
  __reExport(es_exports, require("./BlueSDK_pb.js"), module.exports);
21
21
  __reExport(es_exports, require("./BlueSystem_pb.js"), module.exports);
@@ -1658,7 +1658,7 @@ export declare class BlueSPTokenCommand extends Message<BlueSPTokenCommand> {
1658
1658
  command: string;
1659
1659
 
1660
1660
  /**
1661
- * we'll add 256b for add. data
1661
+ * we'll add 256b for add. data. The normal data for UUZ device would be 1792 however Nexus device will use 8216 buffer
1662
1662
  *
1663
1663
  * @generated from field: required bytes data = 5;
1664
1664
  */
@@ -1,5 +1,5 @@
1
1
  // @generated by protoc-gen-es v1.4.0 with parameter "target=js+dts"
2
- // @generated from file BlueNexusCore.proto (syntax proto2)
2
+ // @generated from file BlueNetworkCore.proto (syntax proto2)
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
5
5
 
@@ -1,5 +1,5 @@
1
1
  // @generated by protoc-gen-es v1.4.0 with parameter "target=js+dts"
2
- // @generated from file BlueNexusCore.proto (syntax proto2)
2
+ // @generated from file BlueNetworkCore.proto (syntax proto2)
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
5
5
 
@@ -8,6 +8,31 @@ import { Message, proto2 } from "@bufbuild/protobuf";
8
8
  import type { BlueBatteryLevel, BlueBlacklistEntry, BlueEvent, BlueHardwareType, BlueLocalTimeSchedule, BlueLocalTimestamp } from "./BlueCore_pb.js";
9
9
  import type { BlueLockConfig, BlueLockStatus } from "./BlueLock_pb.js";
10
10
 
11
+ /**
12
+ * @generated from enum BlueNetworkType
13
+ */
14
+ export declare enum BlueNetworkType {
15
+ /**
16
+ * @generated from enum value: None = 1;
17
+ */
18
+ None = 1,
19
+
20
+ /**
21
+ * @generated from enum value: Ethernet = 2;
22
+ */
23
+ Ethernet = 2,
24
+
25
+ /**
26
+ * @generated from enum value: Wifi = 3;
27
+ */
28
+ Wifi = 3,
29
+
30
+ /**
31
+ * @generated from enum value: Gsm = 4;
32
+ */
33
+ Gsm = 4,
34
+ }
35
+
11
36
  /**
12
37
  * @generated from message BlueBaseConfig
13
38
  */
@@ -325,6 +350,13 @@ export declare class BlueOssConfig extends Message<BlueOssConfig> {
325
350
  */
326
351
  soMifareAid: number;
327
352
 
353
+ /**
354
+ * The card will request to refresh if the existing days passed. It can become required after stable
355
+ *
356
+ * @generated from field: optional uint32 minRefreshDays = 9 [default = 5];
357
+ */
358
+ minRefreshDays?: number;
359
+
328
360
  constructor(data?: PartialMessage<BlueOssConfig>);
329
361
 
330
362
  static readonly runtime: typeof proto2;
@@ -7,6 +7,19 @@ import { proto2 } from "@bufbuild/protobuf";
7
7
  import { BlueBatteryLevel, BlueBlacklistEntry, BlueEvent, BlueHardwareType, BlueLocalTimeSchedule, BlueLocalTimestamp } from "./BlueCore_pb.js";
8
8
  import { BlueLockConfig, BlueLockStatus } from "./BlueLock_pb.js";
9
9
 
10
+ /**
11
+ * @generated from enum BlueNetworkType
12
+ */
13
+ export const BlueNetworkType = proto2.makeEnum(
14
+ "BlueNetworkType",
15
+ [
16
+ {no: 1, name: "None"},
17
+ {no: 2, name: "Ethernet"},
18
+ {no: 3, name: "Wifi"},
19
+ {no: 4, name: "Gsm"},
20
+ ],
21
+ );
22
+
10
23
  /**
11
24
  * @generated from message BlueBaseConfig
12
25
  */
@@ -92,6 +105,7 @@ export const BlueOssConfig = proto2.makeMessageType(
92
105
  { no: 6, name: "soUpdateFromBlacklist", kind: "scalar", T: 8 /* ScalarType.BOOL */, default: true },
93
106
  { no: 7, name: "soMifareAesKey", kind: "scalar", T: 12 /* ScalarType.BYTES */, default: new Uint8Array([0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18, 0x19, 0x1A, 0x1B, 0x1C, 0x1D, 0x1E, 0x1F]) },
94
107
  { no: 8, name: "soMifareAid", kind: "scalar", T: 13 /* ScalarType.UINT32 */, default: 16076800 },
108
+ { no: 9, name: "minRefreshDays", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true, default: 5 },
95
109
  ],
96
110
  );
97
111
 
package/es/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  export * from "./BlueCore_pb"
2
2
  export * from "./BlueLock_pb"
3
- export * from "./BlueNexusCore_pb"
3
+ export * from "./BlueNetworkCore_pb"
4
4
  export * from "./BlueSDK_pb"
5
5
  export * from "./BlueSystem_pb"
6
6
 
package/es/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  export * from "./BlueCore_pb.js"
2
2
  export * from "./BlueLock_pb.js"
3
- export * from "./BlueNexusCore_pb.js"
3
+ export * from "./BlueNetworkCore_pb.js"
4
4
  export * from "./BlueSDK_pb.js"
5
5
  export * from "./BlueSystem_pb.js"
6
6
 
@@ -42,10 +42,10 @@ PB_BIND(BLUESPHANDSHAKE, BlueSPHandshake_t, AUTO)
42
42
  PB_BIND(BLUESPHANDSHAKEREPLY, BlueSPHandshakeReply_t, AUTO)
43
43
 
44
44
 
45
- PB_BIND(BLUESPTOKENCOMMAND, BlueSPTokenCommand_t, 2)
45
+ PB_BIND(BLUESPTOKENCOMMAND, BlueSPTokenCommand_t, 4)
46
46
 
47
47
 
48
- PB_BIND(BLUESPTOKEN, BlueSPToken_t, 2)
48
+ PB_BIND(BLUESPTOKEN, BlueSPToken_t, 4)
49
49
 
50
50
 
51
51
  PB_BIND(BLUESPRESULT, BlueSPResult_t, 2)
@@ -394,13 +394,13 @@ typedef struct BlueSPHandshakeReply {
394
394
  BlueSPHandshakeReply_terminalSignature_t terminalSignature;
395
395
  } BlueSPHandshakeReply_t;
396
396
 
397
- typedef PB_BYTES_ARRAY_T(1792) BlueSPTokenCommand_data_t;
397
+ typedef PB_BYTES_ARRAY_T(8216) BlueSPTokenCommand_data_t;
398
398
  typedef struct BlueSPTokenCommand {
399
399
  BlueCredentialId_t credentialId;
400
400
  BlueLocalTimestamp_t validityStart;
401
401
  BlueLocalTimestamp_t validityEnd;
402
402
  char command[9];
403
- BlueSPTokenCommand_data_t data; /* we'll add 256b for add. data */
403
+ BlueSPTokenCommand_data_t data; /* we'll add 256b for add. data. The normal data for UUZ device would be 1792 however Nexus device will use 8216 buffer */
404
404
  } BlueSPTokenCommand_t;
405
405
 
406
406
  typedef PB_BYTES_ARRAY_T(1792) BlueSPResult_data_t;
@@ -1843,8 +1843,8 @@ extern const pb_msgdesc_t _BlueTestEncodeDecode_t_msg;
1843
1843
  #define BLUESPHANDSHAKEREPLY_SIZE 94
1844
1844
  #define BLUESPHANDSHAKE_SIZE 18
1845
1845
  #define BLUESPRESULT_SIZE 1795
1846
- #define BLUESPTOKENCOMMAND_SIZE 1861
1847
- #define BLUESPTOKEN_SIZE 1940
1846
+ #define BLUESPTOKENCOMMAND_SIZE 8285
1847
+ #define BLUESPTOKEN_SIZE 8364
1848
1848
  #define BLUEVERSIONINFO_SIZE 14
1849
1849
  #define _BLUETESTENCODEDECODE_SIZE 90
1850
1850
 
@@ -1,7 +1,7 @@
1
1
  /* Automatically generated nanopb constant definitions */
2
2
  /* Generated by nanopb-0.4.8-dev */
3
3
 
4
- #include "BlueNexusCore.pb.h"
4
+ #include "BlueNetworkCore.pb.h"
5
5
  #if PB_PROTO_HEADER_VERSION != 40
6
6
  #error Regenerate this file with the current version of nanopb generator.
7
7
  #endif
@@ -1,8 +1,8 @@
1
1
  /* Automatically generated nanopb header */
2
2
  /* Generated by nanopb-0.4.8-dev */
3
3
 
4
- #ifndef PB_BLUENEXUSCORE_PB_H_INCLUDED
5
- #define PB_BLUENEXUSCORE_PB_H_INCLUDED
4
+ #ifndef PB_BLUENETWORKCORE_PB_H_INCLUDED
5
+ #define PB_BLUENETWORKCORE_PB_H_INCLUDED
6
6
  #include "pb.h"
7
7
  #include "BlueCore.pb.h"
8
8
 
@@ -64,3 +64,4 @@ PB_BIND(BLUEBLACKLISTENTRIES, BlueBlacklistEntries_t, 2)
64
64
 
65
65
 
66
66
 
67
+
@@ -11,6 +11,14 @@
11
11
  #error Regenerate this file with the current version of nanopb generator.
12
12
  #endif
13
13
 
14
+ /* Enum definitions */
15
+ typedef enum BlueNetworkType {
16
+ BlueNetworkType_None = 1,
17
+ BlueNetworkType_Ethernet = 2,
18
+ BlueNetworkType_Wifi = 3,
19
+ BlueNetworkType_Gsm = 4
20
+ } pb_packed BlueNetworkType_t;
21
+
14
22
  /* Struct definitions */
15
23
  typedef struct BlueBaseConfig {
16
24
  char isoCountry[3];
@@ -103,6 +111,9 @@ typedef struct BlueOssConfig { /* -- Oss SecureId -- */
103
111
  /* The mifare application id for the oss offline application, default is the
104
112
  oss so default aid. A value of 0 disables Oss So Mifare support. */
105
113
  uint32_t soMifareAid;
114
+ /* The card will request to refresh if the existing days passed. It can become required after stable */
115
+ bool has_minRefreshDays;
116
+ uint8_t minRefreshDays;
106
117
  } BlueOssConfig_t;
107
118
 
108
119
  typedef struct BlueSystemAVRInfo {
@@ -233,13 +244,41 @@ typedef struct BlueBlacklistEntries {
233
244
  extern "C" {
234
245
  #endif
235
246
 
247
+ /* Helper constants for enums */
248
+ #define _BLUENETWORKTYPE_MIN BlueNetworkType_None
249
+ #define _BLUENETWORKTYPE_MAX BlueNetworkType_Gsm
250
+ #define _BLUENETWORKTYPE_ARRAYSIZE ((BlueNetworkType_t)(BlueNetworkType_Gsm+1))
251
+
252
+
253
+
254
+
255
+
256
+
257
+
258
+
259
+
260
+
261
+
262
+
263
+ #define BlueSystemProvisioning_t_hardwareType_ENUMTYPE BlueHardwareType_t
264
+
265
+ #define BlueSystemStatus_t_hardwareType_ENUMTYPE BlueHardwareType_t
266
+ #define BlueSystemStatus_t_batteryLevel_ENUMTYPE BlueBatteryLevel_t
267
+
268
+
269
+
270
+
271
+
272
+
273
+
274
+
236
275
  /* Initializer values for message structs */
237
276
  #define BLUEBASECONFIG_INIT_DEFAULT {"", "", 0, false}
238
277
  #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}
239
278
  #define BLUEONLINECONFIG_INIT_DEFAULT {0, {BLUELOCALTIMESCHEDULE_INIT_DEFAULT, BLUELOCALTIMESCHEDULE_INIT_DEFAULT, BLUELOCALTIMESCHEDULE_INIT_DEFAULT, BLUELOCALTIMESCHEDULE_INIT_DEFAULT}, "", "", 30u}
240
279
  #define BLUEACCESSCONFIGGROUP_INIT_DEFAULT {0, 0, {BLUELOCALTIMESCHEDULE_INIT_DEFAULT, BLUELOCALTIMESCHEDULE_INIT_DEFAULT}}
241
280
  #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}
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}
281
+ #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, false, 5u}
243
282
  #define BLUESYSTEMAVRINFO_INIT_DEFAULT {0, 0, 0, false, 0}
244
283
  #define BLUESYSTEMCONFIG_INIT_DEFAULT {"", BLUEBASECONFIG_INIT_DEFAULT, BLUEBLECONFIG_INIT_DEFAULT, BLUEONLINECONFIG_INIT_DEFAULT, BLUEACCESSCONFIG_INIT_DEFAULT, BLUEOSSCONFIG_INIT_DEFAULT, false, BLUELOCKCONFIG_INIT_DEFAULT}
245
284
  #define BLUESYSTEMTIMEUNIX_INIT_DEFAULT {0}
@@ -258,7 +297,7 @@ extern "C" {
258
297
  #define BLUEONLINECONFIG_INIT_ZERO {0, {BLUELOCALTIMESCHEDULE_INIT_ZERO, BLUELOCALTIMESCHEDULE_INIT_ZERO, BLUELOCALTIMESCHEDULE_INIT_ZERO, BLUELOCALTIMESCHEDULE_INIT_ZERO}, "", "", 0}
259
298
  #define BLUEACCESSCONFIGGROUP_INIT_ZERO {0, 0, {BLUELOCALTIMESCHEDULE_INIT_ZERO, BLUELOCALTIMESCHEDULE_INIT_ZERO}}
260
299
  #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}
261
- #define BLUEOSSCONFIG_INIT_ZERO {{0}, 0, 0, 0, 0, 0, {0}, 0}
300
+ #define BLUEOSSCONFIG_INIT_ZERO {{0}, 0, 0, 0, 0, 0, {0}, 0, false, 0}
262
301
  #define BLUESYSTEMAVRINFO_INIT_ZERO {0, 0, 0, false, 0}
263
302
  #define BLUESYSTEMCONFIG_INIT_ZERO {"", BLUEBASECONFIG_INIT_ZERO, BLUEBLECONFIG_INIT_ZERO, BLUEONLINECONFIG_INIT_ZERO, BLUEACCESSCONFIG_INIT_ZERO, BLUEOSSCONFIG_INIT_ZERO, false, BLUELOCKCONFIG_INIT_ZERO}
264
303
  #define BLUESYSTEMTIMEUNIX_INIT_ZERO {0}
@@ -304,6 +343,7 @@ extern "C" {
304
343
  #define BLUEOSSCONFIG_SOUPDATEFROMBLACKLIST_TAG 6
305
344
  #define BLUEOSSCONFIG_SOMIFAREAESKEY_TAG 7
306
345
  #define BLUEOSSCONFIG_SOMIFAREAID_TAG 8
346
+ #define BLUEOSSCONFIG_MINREFRESHDAYS_TAG 9
307
347
  #define BLUESYSTEMAVRINFO_VERMAJ_TAG 1
308
348
  #define BLUESYSTEMAVRINFO_VERMIN_TAG 2
309
349
  #define BLUESYSTEMAVRINFO_BUILDNR_TAG 3
@@ -416,9 +456,10 @@ X(a, STATIC, REQUIRED, BOOL, soPushEvents, 4) \
416
456
  X(a, STATIC, REQUIRED, BOOL, soWritePendingEvents, 5) \
417
457
  X(a, STATIC, REQUIRED, BOOL, soUpdateFromBlacklist, 6) \
418
458
  X(a, STATIC, REQUIRED, FIXED_LENGTH_BYTES, soMifareAesKey, 7) \
419
- X(a, STATIC, REQUIRED, UINT32, soMifareAid, 8)
459
+ X(a, STATIC, REQUIRED, UINT32, soMifareAid, 8) \
460
+ X(a, STATIC, OPTIONAL, UINT32, minRefreshDays, 9)
420
461
  #define BLUEOSSCONFIG_CALLBACK NULL
421
- #define BLUEOSSCONFIG_DEFAULT (const pb_byte_t*)"\x0a\x10\xff\xee\xdd\xcc\xbb\xaa\x99\x88\x77\x66\x55\x44\x33\x22\x11\x00\x10\x81\xa0\xd5\x07\x18\x00\x20\x00\x28\x01\x30\x01\x3a\x10\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f\x40\x80\xa0\xd5\x07\x00"
462
+ #define BLUEOSSCONFIG_DEFAULT (const pb_byte_t*)"\x0a\x10\xff\xee\xdd\xcc\xbb\xaa\x99\x88\x77\x66\x55\x44\x33\x22\x11\x00\x10\x81\xa0\xd5\x07\x18\x00\x20\x00\x28\x01\x30\x01\x3a\x10\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f\x40\x80\xa0\xd5\x07\x48\x05\x00"
422
463
 
423
464
  #define BLUESYSTEMAVRINFO_FIELDLIST(X, a) \
424
465
  X(a, STATIC, REQUIRED, UINT32, vermaj, 1) \
@@ -593,9 +634,9 @@ extern const pb_msgdesc_t BlueBlacklistEntries_t_msg;
593
634
  #define BLUEEVENTLOGQUERY_SIZE 12
594
635
  #define BLUEEVENTLOGRESULT_SIZE 1650
595
636
  #define BLUEONLINECONFIG_SIZE 224
596
- #define BLUEOSSCONFIG_SIZE 56
637
+ #define BLUEOSSCONFIG_SIZE 59
597
638
  #define BLUESYSTEMAVRINFO_SIZE 15
598
- #define BLUESYSTEMCONFIG_SIZE 1661
639
+ #define BLUESYSTEMCONFIG_SIZE 1664
599
640
  #define BLUESYSTEMLOGENTRY_SIZE 152
600
641
  #define BLUESYSTEMLOGQUERY_SIZE 9
601
642
  #define BLUESYSTEMLOGRESULT_SIZE 1550
@@ -603,7 +644,7 @@ extern const pb_msgdesc_t BlueBlacklistEntries_t_msg;
603
644
  #define BLUESYSTEMSETTINGS_SIZE 48
604
645
  #define BLUESYSTEMSTATUS_SIZE 140
605
646
  #define BLUESYSTEMTIMEUNIX_SIZE 6
606
- #define BLUESYSTEMUPDATE_SIZE 1672
647
+ #define BLUESYSTEMUPDATE_SIZE 1675
607
648
 
608
649
  #ifdef __cplusplus
609
650
  } /* extern "C" */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blueid/access-proto",
3
- "version": "12.2.0",
3
+ "version": "12.4.0",
4
4
  "description": "BlueID Access Proto files",
5
5
  "author": "BlueID GmbH",
6
6
  "main": "cjs/index.js",
@@ -1048,7 +1048,7 @@ public struct BlueSPTokenCommand: Sendable {
1048
1048
  /// Clears the value of `command`. Subsequent reads from it will return its default value.
1049
1049
  public mutating func clearCommand() {self._command = nil}
1050
1050
 
1051
- /// we'll add 256b for add. data
1051
+ /// we'll add 256b for add. data. The normal data for UUZ device would be 1792 however Nexus device will use 8216 buffer
1052
1052
  public var data: Data {
1053
1053
  get {return _data ?? Data()}
1054
1054
  set {_data = newValue}
@@ -3,7 +3,7 @@
3
3
  // swiftlint:disable all
4
4
  //
5
5
  // Generated by the Swift generator plugin for the protocol buffer compiler.
6
- // Source: BlueNexusCore.proto
6
+ // Source: BlueNetworkCore.proto
7
7
  //
8
8
  // For information on using the generated types, please see the documentation:
9
9
  // https://github.com/apple/swift-protobuf/
@@ -21,6 +21,18 @@ fileprivate struct _GeneratedWithProtocGenSwiftVersion: SwiftProtobuf.ProtobufAP
21
21
  typealias Version = _2
22
22
  }
23
23
 
24
+ public enum BlueNetworkType: Int, SwiftProtobuf.Enum, Swift.CaseIterable {
25
+ case none = 1
26
+ case ethernet = 2
27
+ case wifi = 3
28
+ case gsm = 4
29
+
30
+ public init() {
31
+ self = .none
32
+ }
33
+
34
+ }
35
+
24
36
  public struct BlueBaseConfig: Sendable {
25
37
  // SwiftProtobuf.Message conformance is added in an extension below. See the
26
38
  // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
@@ -374,6 +386,16 @@ public struct BlueOssConfig: Sendable {
374
386
  /// Clears the value of `soMifareAid`. Subsequent reads from it will return its default value.
375
387
  public mutating func clearSoMifareAid() {self._soMifareAid = nil}
376
388
 
389
+ /// The card will request to refresh if the existing days passed. It can become required after stable
390
+ public var minRefreshDays: UInt32 {
391
+ get {return _minRefreshDays ?? 5}
392
+ set {_minRefreshDays = newValue}
393
+ }
394
+ /// Returns true if `minRefreshDays` has been explicitly set.
395
+ public var hasMinRefreshDays: Bool {return self._minRefreshDays != nil}
396
+ /// Clears the value of `minRefreshDays`. Subsequent reads from it will return its default value.
397
+ public mutating func clearMinRefreshDays() {self._minRefreshDays = nil}
398
+
377
399
  public var unknownFields = SwiftProtobuf.UnknownStorage()
378
400
 
379
401
  public init() {}
@@ -386,6 +408,7 @@ public struct BlueOssConfig: Sendable {
386
408
  fileprivate var _soUpdateFromBlacklist: Bool? = nil
387
409
  fileprivate var _soMifareAesKey: Data? = nil
388
410
  fileprivate var _soMifareAid: UInt32? = nil
411
+ fileprivate var _minRefreshDays: UInt32? = nil
389
412
  }
390
413
 
391
414
  public struct BlueSystemAVRInfo: Sendable {
@@ -1074,6 +1097,10 @@ public struct BlueBlacklistEntries: Sendable {
1074
1097
 
1075
1098
  // MARK: - Code below here is support for the SwiftProtobuf runtime.
1076
1099
 
1100
+ extension BlueNetworkType: SwiftProtobuf._ProtoNameProviding {
1101
+ public static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}None\0\u{1}Ethernet\0\u{1}Wifi\0\u{1}Gsm\0")
1102
+ }
1103
+
1077
1104
  extension BlueBaseConfig: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
1078
1105
  public static let protoMessageName: String = "BlueBaseConfig"
1079
1106
  public static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}isoCountry\0\u{1}isoState\0\u{1}utcOffsetMinutes\0\u{1}autoCheckSystemStatus\0")
@@ -1371,7 +1398,7 @@ extension BlueAccessConfig: SwiftProtobuf.Message, SwiftProtobuf._MessageImpleme
1371
1398
 
1372
1399
  extension BlueOssConfig: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
1373
1400
  public static let protoMessageName: String = "BlueOssConfig"
1374
- public static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}sidMifareAesKey\0\u{1}sidMifareAid\0\u{1}soUpdater\0\u{1}soPushEvents\0\u{1}soWritePendingEvents\0\u{1}soUpdateFromBlacklist\0\u{1}soMifareAesKey\0\u{1}soMifareAid\0")
1401
+ public static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}sidMifareAesKey\0\u{1}sidMifareAid\0\u{1}soUpdater\0\u{1}soPushEvents\0\u{1}soWritePendingEvents\0\u{1}soUpdateFromBlacklist\0\u{1}soMifareAesKey\0\u{1}soMifareAid\0\u{1}minRefreshDays\0")
1375
1402
 
1376
1403
  public var isInitialized: Bool {
1377
1404
  if self._sidMifareAesKey == nil {return false}
@@ -1399,6 +1426,7 @@ extension BlueOssConfig: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementa
1399
1426
  case 6: try { try decoder.decodeSingularBoolField(value: &self._soUpdateFromBlacklist) }()
1400
1427
  case 7: try { try decoder.decodeSingularBytesField(value: &self._soMifareAesKey) }()
1401
1428
  case 8: try { try decoder.decodeSingularUInt32Field(value: &self._soMifareAid) }()
1429
+ case 9: try { try decoder.decodeSingularUInt32Field(value: &self._minRefreshDays) }()
1402
1430
  default: break
1403
1431
  }
1404
1432
  }
@@ -1433,6 +1461,9 @@ extension BlueOssConfig: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementa
1433
1461
  try { if let v = self._soMifareAid {
1434
1462
  try visitor.visitSingularUInt32Field(value: v, fieldNumber: 8)
1435
1463
  } }()
1464
+ try { if let v = self._minRefreshDays {
1465
+ try visitor.visitSingularUInt32Field(value: v, fieldNumber: 9)
1466
+ } }()
1436
1467
  try unknownFields.traverse(visitor: &visitor)
1437
1468
  }
1438
1469
 
@@ -1445,6 +1476,7 @@ extension BlueOssConfig: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementa
1445
1476
  if lhs._soUpdateFromBlacklist != rhs._soUpdateFromBlacklist {return false}
1446
1477
  if lhs._soMifareAesKey != rhs._soMifareAesKey {return false}
1447
1478
  if lhs._soMifareAid != rhs._soMifareAid {return false}
1479
+ if lhs._minRefreshDays != rhs._minRefreshDays {return false}
1448
1480
  if lhs.unknownFields != rhs.unknownFields {return false}
1449
1481
  return true
1450
1482
  }
File without changes