@blueid/access-proto 12.1.0 → 12.3.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/{BlueNexusCore.proto → BlueNetworkCore.proto} +8 -7
- package/BlueSystem.proto +13 -1
- package/cjs/{BlueNexusCore_pb.d.ts → BlueNetworkCore_pb.d.ts} +44 -29
- package/cjs/{BlueNexusCore_pb.js → BlueNetworkCore_pb.js} +38 -17
- package/cjs/BlueSystem_pb.d.ts +32 -0
- package/cjs/BlueSystem_pb.js +12 -1
- package/cjs/index.d.ts +1 -1
- package/cjs/index.js +1 -1
- package/es/{BlueNexusCore_pb.d.ts → BlueNetworkCore_pb.d.ts} +44 -29
- package/es/{BlueNexusCore_pb.js → BlueNetworkCore_pb.js} +16 -13
- package/es/BlueSystem_pb.d.ts +32 -0
- package/es/BlueSystem_pb.js +14 -0
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/nanopb/{BlueNexusCore.pb.c → BlueNetworkCore.pb.c} +4 -4
- package/nanopb/{BlueNexusCore.pb.h → BlueNetworkCore.pb.h} +33 -24
- package/nanopb/BlueSystem.pb.c +1 -0
- package/nanopb/BlueSystem.pb.h +48 -7
- package/package.json +1 -1
- package/swift/{BlueNexusCore.pb.swift → BlueNetworkCore.pb.swift} +115 -67
- package/swift/BlueSystem.pb.swift +33 -1
|
@@ -4,11 +4,6 @@ import "nanopb.proto";
|
|
|
4
4
|
|
|
5
5
|
import "BlueCore.proto";
|
|
6
6
|
|
|
7
|
-
message BlueTransponderId {
|
|
8
|
-
required string id = 1 [ (nanopb).max_length = 21 ]; // Most NFC UIDs are 4, 7, or 10 bytes (not 15). When converted to hex, each byte becomes 2 hex characters → maximum 20 characters + null = 21 bytes
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
|
|
12
7
|
///////////////////////////////////////////////////////////////////////
|
|
13
8
|
// Secure Protocol over WebSocket
|
|
14
9
|
///////////////////////////////////////////////////////////////////////
|
|
@@ -38,6 +33,9 @@ message BlueWebSPStatusMessage {
|
|
|
38
33
|
required BlueReturnCode status = 1;
|
|
39
34
|
}
|
|
40
35
|
|
|
36
|
+
message BlueTransponderId {
|
|
37
|
+
required string id = 1 [ (nanopb).max_length = 21 ]; // Most NFC UIDs are 4, 7, or 10 bytes (not 15). When converted to hex, each byte becomes 2 hex characters → maximum 20 characters + null = 21 bytes
|
|
38
|
+
}
|
|
41
39
|
|
|
42
40
|
message BlueSocketConfigurationResponse{
|
|
43
41
|
required BlueTransponderId transponderId = 2;
|
|
@@ -46,8 +44,11 @@ message BlueSocketConfigurationResponse{
|
|
|
46
44
|
}
|
|
47
45
|
|
|
48
46
|
message BlueSocketRequestConfiguration {
|
|
49
|
-
required BlueTransponderId transponderId =
|
|
50
|
-
required uint32 aid =
|
|
47
|
+
required BlueTransponderId transponderId = 1;
|
|
48
|
+
required uint32 aid = 2;
|
|
49
|
+
required uint32 miniRefreshDays = 3;
|
|
50
|
+
required bool updateBlackListed = 4;
|
|
51
|
+
required bool writePendingEvents = 5;
|
|
51
52
|
}
|
|
52
53
|
|
|
53
54
|
// Message sent by the server to the device
|
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
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @generated by protoc-gen-es v1.4.0 with parameter "target=js+dts"
|
|
2
|
-
// @generated from file
|
|
2
|
+
// @generated from file BlueNetworkCore.proto (syntax proto2)
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
5
5
|
|
|
@@ -7,32 +7,6 @@ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialM
|
|
|
7
7
|
import { Message, proto2 } from "@bufbuild/protobuf";
|
|
8
8
|
import type { BlueOssSidMobile, BlueOssSoConfiguration, BlueOssSoMobile, BlueReturnCode, BlueSPResult, BlueSPTokenCommand } from "./BlueCore_pb.js";
|
|
9
9
|
|
|
10
|
-
/**
|
|
11
|
-
* @generated from message BlueTransponderId
|
|
12
|
-
*/
|
|
13
|
-
export declare class BlueTransponderId extends Message<BlueTransponderId> {
|
|
14
|
-
/**
|
|
15
|
-
* Most NFC UIDs are 4, 7, or 10 bytes (not 15). When converted to hex, each byte becomes 2 hex characters → maximum 20 characters + null = 21 bytes
|
|
16
|
-
*
|
|
17
|
-
* @generated from field: required string id = 1;
|
|
18
|
-
*/
|
|
19
|
-
id: string;
|
|
20
|
-
|
|
21
|
-
constructor(data?: PartialMessage<BlueTransponderId>);
|
|
22
|
-
|
|
23
|
-
static readonly runtime: typeof proto2;
|
|
24
|
-
static readonly typeName = "BlueTransponderId";
|
|
25
|
-
static readonly fields: FieldList;
|
|
26
|
-
|
|
27
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): BlueTransponderId;
|
|
28
|
-
|
|
29
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): BlueTransponderId;
|
|
30
|
-
|
|
31
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): BlueTransponderId;
|
|
32
|
-
|
|
33
|
-
static equals(a: BlueTransponderId | PlainMessage<BlueTransponderId> | undefined, b: BlueTransponderId | PlainMessage<BlueTransponderId> | undefined): boolean;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
10
|
/**
|
|
37
11
|
* @generated from message BlueErrorResult
|
|
38
12
|
*/
|
|
@@ -168,6 +142,32 @@ export declare class BlueWebSPStatusMessage extends Message<BlueWebSPStatusMessa
|
|
|
168
142
|
static equals(a: BlueWebSPStatusMessage | PlainMessage<BlueWebSPStatusMessage> | undefined, b: BlueWebSPStatusMessage | PlainMessage<BlueWebSPStatusMessage> | undefined): boolean;
|
|
169
143
|
}
|
|
170
144
|
|
|
145
|
+
/**
|
|
146
|
+
* @generated from message BlueTransponderId
|
|
147
|
+
*/
|
|
148
|
+
export declare class BlueTransponderId extends Message<BlueTransponderId> {
|
|
149
|
+
/**
|
|
150
|
+
* Most NFC UIDs are 4, 7, or 10 bytes (not 15). When converted to hex, each byte becomes 2 hex characters → maximum 20 characters + null = 21 bytes
|
|
151
|
+
*
|
|
152
|
+
* @generated from field: required string id = 1;
|
|
153
|
+
*/
|
|
154
|
+
id: string;
|
|
155
|
+
|
|
156
|
+
constructor(data?: PartialMessage<BlueTransponderId>);
|
|
157
|
+
|
|
158
|
+
static readonly runtime: typeof proto2;
|
|
159
|
+
static readonly typeName = "BlueTransponderId";
|
|
160
|
+
static readonly fields: FieldList;
|
|
161
|
+
|
|
162
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): BlueTransponderId;
|
|
163
|
+
|
|
164
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): BlueTransponderId;
|
|
165
|
+
|
|
166
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): BlueTransponderId;
|
|
167
|
+
|
|
168
|
+
static equals(a: BlueTransponderId | PlainMessage<BlueTransponderId> | undefined, b: BlueTransponderId | PlainMessage<BlueTransponderId> | undefined): boolean;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
171
|
/**
|
|
172
172
|
* @generated from message BlueSocketConfigurationResponse
|
|
173
173
|
*/
|
|
@@ -207,15 +207,30 @@ export declare class BlueSocketConfigurationResponse extends Message<BlueSocketC
|
|
|
207
207
|
*/
|
|
208
208
|
export declare class BlueSocketRequestConfiguration extends Message<BlueSocketRequestConfiguration> {
|
|
209
209
|
/**
|
|
210
|
-
* @generated from field: required BlueTransponderId transponderId =
|
|
210
|
+
* @generated from field: required BlueTransponderId transponderId = 1;
|
|
211
211
|
*/
|
|
212
212
|
transponderId?: BlueTransponderId;
|
|
213
213
|
|
|
214
214
|
/**
|
|
215
|
-
* @generated from field: required uint32 aid =
|
|
215
|
+
* @generated from field: required uint32 aid = 2;
|
|
216
216
|
*/
|
|
217
217
|
aid: number;
|
|
218
218
|
|
|
219
|
+
/**
|
|
220
|
+
* @generated from field: required uint32 miniRefreshDays = 3;
|
|
221
|
+
*/
|
|
222
|
+
miniRefreshDays: number;
|
|
223
|
+
|
|
224
|
+
/**
|
|
225
|
+
* @generated from field: required bool updateBlackListed = 4;
|
|
226
|
+
*/
|
|
227
|
+
updateBlackListed: boolean;
|
|
228
|
+
|
|
229
|
+
/**
|
|
230
|
+
* @generated from field: required bool writePendingEvents = 5;
|
|
231
|
+
*/
|
|
232
|
+
writePendingEvents: boolean;
|
|
233
|
+
|
|
219
234
|
constructor(data?: PartialMessage<BlueSocketRequestConfiguration>);
|
|
220
235
|
|
|
221
236
|
static readonly runtime: typeof proto2;
|
|
@@ -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
|
|
19
|
-
__export(
|
|
18
|
+
var BlueNetworkCore_pb_exports = {};
|
|
19
|
+
__export(BlueNetworkCore_pb_exports, {
|
|
20
20
|
BlueErrorResult: () => BlueErrorResult,
|
|
21
21
|
BlueSocketConfigurationResponse: () => BlueSocketConfigurationResponse,
|
|
22
22
|
BlueSocketRequestConfiguration: () => BlueSocketRequestConfiguration,
|
|
@@ -36,21 +36,9 @@ __export(BlueNexusCore_pb_exports, {
|
|
|
36
36
|
BlueWebSPServerSocketMessageSuccess: () => BlueWebSPServerSocketMessageSuccess,
|
|
37
37
|
BlueWebSPStatusMessage: () => BlueWebSPStatusMessage
|
|
38
38
|
});
|
|
39
|
-
module.exports = __toCommonJS(
|
|
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
|
-
const BlueTransponderId = import_protobuf.proto2.makeMessageType(
|
|
43
|
-
"BlueTransponderId",
|
|
44
|
-
() => [
|
|
45
|
-
{
|
|
46
|
-
no: 1,
|
|
47
|
-
name: "id",
|
|
48
|
-
kind: "scalar",
|
|
49
|
-
T: 9
|
|
50
|
-
/* ScalarType.STRING */
|
|
51
|
-
}
|
|
52
|
-
]
|
|
53
|
-
);
|
|
54
42
|
const BlueErrorResult = import_protobuf.proto2.makeMessageType(
|
|
55
43
|
"BlueErrorResult",
|
|
56
44
|
() => [
|
|
@@ -114,6 +102,18 @@ const BlueWebSPStatusMessage = import_protobuf.proto2.makeMessageType(
|
|
|
114
102
|
{ no: 1, name: "status", kind: "enum", T: import_protobuf.proto2.getEnumType(import_BlueCore_pb.BlueReturnCode) }
|
|
115
103
|
]
|
|
116
104
|
);
|
|
105
|
+
const BlueTransponderId = import_protobuf.proto2.makeMessageType(
|
|
106
|
+
"BlueTransponderId",
|
|
107
|
+
() => [
|
|
108
|
+
{
|
|
109
|
+
no: 1,
|
|
110
|
+
name: "id",
|
|
111
|
+
kind: "scalar",
|
|
112
|
+
T: 9
|
|
113
|
+
/* ScalarType.STRING */
|
|
114
|
+
}
|
|
115
|
+
]
|
|
116
|
+
);
|
|
117
117
|
const BlueSocketConfigurationResponse = import_protobuf.proto2.makeMessageType(
|
|
118
118
|
"BlueSocketConfigurationResponse",
|
|
119
119
|
() => [
|
|
@@ -125,13 +125,34 @@ const BlueSocketConfigurationResponse = import_protobuf.proto2.makeMessageType(
|
|
|
125
125
|
const BlueSocketRequestConfiguration = import_protobuf.proto2.makeMessageType(
|
|
126
126
|
"BlueSocketRequestConfiguration",
|
|
127
127
|
() => [
|
|
128
|
-
{ no:
|
|
128
|
+
{ no: 1, name: "transponderId", kind: "message", T: BlueTransponderId },
|
|
129
129
|
{
|
|
130
|
-
no:
|
|
130
|
+
no: 2,
|
|
131
131
|
name: "aid",
|
|
132
132
|
kind: "scalar",
|
|
133
133
|
T: 13
|
|
134
134
|
/* ScalarType.UINT32 */
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
no: 3,
|
|
138
|
+
name: "miniRefreshDays",
|
|
139
|
+
kind: "scalar",
|
|
140
|
+
T: 13
|
|
141
|
+
/* ScalarType.UINT32 */
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
no: 4,
|
|
145
|
+
name: "updateBlackListed",
|
|
146
|
+
kind: "scalar",
|
|
147
|
+
T: 8
|
|
148
|
+
/* ScalarType.BOOL */
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
no: 5,
|
|
152
|
+
name: "writePendingEvents",
|
|
153
|
+
kind: "scalar",
|
|
154
|
+
T: 8
|
|
155
|
+
/* ScalarType.BOOL */
|
|
135
156
|
}
|
|
136
157
|
]
|
|
137
158
|
);
|
package/cjs/BlueSystem_pb.d.ts
CHANGED
|
@@ -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;
|
package/cjs/BlueSystem_pb.js
CHANGED
|
@@ -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
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("./
|
|
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);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @generated by protoc-gen-es v1.4.0 with parameter "target=js+dts"
|
|
2
|
-
// @generated from file
|
|
2
|
+
// @generated from file BlueNetworkCore.proto (syntax proto2)
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
5
5
|
|
|
@@ -7,32 +7,6 @@ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialM
|
|
|
7
7
|
import { Message, proto2 } from "@bufbuild/protobuf";
|
|
8
8
|
import type { BlueOssSidMobile, BlueOssSoConfiguration, BlueOssSoMobile, BlueReturnCode, BlueSPResult, BlueSPTokenCommand } from "./BlueCore_pb.js";
|
|
9
9
|
|
|
10
|
-
/**
|
|
11
|
-
* @generated from message BlueTransponderId
|
|
12
|
-
*/
|
|
13
|
-
export declare class BlueTransponderId extends Message<BlueTransponderId> {
|
|
14
|
-
/**
|
|
15
|
-
* Most NFC UIDs are 4, 7, or 10 bytes (not 15). When converted to hex, each byte becomes 2 hex characters → maximum 20 characters + null = 21 bytes
|
|
16
|
-
*
|
|
17
|
-
* @generated from field: required string id = 1;
|
|
18
|
-
*/
|
|
19
|
-
id: string;
|
|
20
|
-
|
|
21
|
-
constructor(data?: PartialMessage<BlueTransponderId>);
|
|
22
|
-
|
|
23
|
-
static readonly runtime: typeof proto2;
|
|
24
|
-
static readonly typeName = "BlueTransponderId";
|
|
25
|
-
static readonly fields: FieldList;
|
|
26
|
-
|
|
27
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): BlueTransponderId;
|
|
28
|
-
|
|
29
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): BlueTransponderId;
|
|
30
|
-
|
|
31
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): BlueTransponderId;
|
|
32
|
-
|
|
33
|
-
static equals(a: BlueTransponderId | PlainMessage<BlueTransponderId> | undefined, b: BlueTransponderId | PlainMessage<BlueTransponderId> | undefined): boolean;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
10
|
/**
|
|
37
11
|
* @generated from message BlueErrorResult
|
|
38
12
|
*/
|
|
@@ -168,6 +142,32 @@ export declare class BlueWebSPStatusMessage extends Message<BlueWebSPStatusMessa
|
|
|
168
142
|
static equals(a: BlueWebSPStatusMessage | PlainMessage<BlueWebSPStatusMessage> | undefined, b: BlueWebSPStatusMessage | PlainMessage<BlueWebSPStatusMessage> | undefined): boolean;
|
|
169
143
|
}
|
|
170
144
|
|
|
145
|
+
/**
|
|
146
|
+
* @generated from message BlueTransponderId
|
|
147
|
+
*/
|
|
148
|
+
export declare class BlueTransponderId extends Message<BlueTransponderId> {
|
|
149
|
+
/**
|
|
150
|
+
* Most NFC UIDs are 4, 7, or 10 bytes (not 15). When converted to hex, each byte becomes 2 hex characters → maximum 20 characters + null = 21 bytes
|
|
151
|
+
*
|
|
152
|
+
* @generated from field: required string id = 1;
|
|
153
|
+
*/
|
|
154
|
+
id: string;
|
|
155
|
+
|
|
156
|
+
constructor(data?: PartialMessage<BlueTransponderId>);
|
|
157
|
+
|
|
158
|
+
static readonly runtime: typeof proto2;
|
|
159
|
+
static readonly typeName = "BlueTransponderId";
|
|
160
|
+
static readonly fields: FieldList;
|
|
161
|
+
|
|
162
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): BlueTransponderId;
|
|
163
|
+
|
|
164
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): BlueTransponderId;
|
|
165
|
+
|
|
166
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): BlueTransponderId;
|
|
167
|
+
|
|
168
|
+
static equals(a: BlueTransponderId | PlainMessage<BlueTransponderId> | undefined, b: BlueTransponderId | PlainMessage<BlueTransponderId> | undefined): boolean;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
171
|
/**
|
|
172
172
|
* @generated from message BlueSocketConfigurationResponse
|
|
173
173
|
*/
|
|
@@ -207,15 +207,30 @@ export declare class BlueSocketConfigurationResponse extends Message<BlueSocketC
|
|
|
207
207
|
*/
|
|
208
208
|
export declare class BlueSocketRequestConfiguration extends Message<BlueSocketRequestConfiguration> {
|
|
209
209
|
/**
|
|
210
|
-
* @generated from field: required BlueTransponderId transponderId =
|
|
210
|
+
* @generated from field: required BlueTransponderId transponderId = 1;
|
|
211
211
|
*/
|
|
212
212
|
transponderId?: BlueTransponderId;
|
|
213
213
|
|
|
214
214
|
/**
|
|
215
|
-
* @generated from field: required uint32 aid =
|
|
215
|
+
* @generated from field: required uint32 aid = 2;
|
|
216
216
|
*/
|
|
217
217
|
aid: number;
|
|
218
218
|
|
|
219
|
+
/**
|
|
220
|
+
* @generated from field: required uint32 miniRefreshDays = 3;
|
|
221
|
+
*/
|
|
222
|
+
miniRefreshDays: number;
|
|
223
|
+
|
|
224
|
+
/**
|
|
225
|
+
* @generated from field: required bool updateBlackListed = 4;
|
|
226
|
+
*/
|
|
227
|
+
updateBlackListed: boolean;
|
|
228
|
+
|
|
229
|
+
/**
|
|
230
|
+
* @generated from field: required bool writePendingEvents = 5;
|
|
231
|
+
*/
|
|
232
|
+
writePendingEvents: boolean;
|
|
233
|
+
|
|
219
234
|
constructor(data?: PartialMessage<BlueSocketRequestConfiguration>);
|
|
220
235
|
|
|
221
236
|
static readonly runtime: typeof proto2;
|
|
@@ -1,21 +1,11 @@
|
|
|
1
1
|
// @generated by protoc-gen-es v1.4.0 with parameter "target=js+dts"
|
|
2
|
-
// @generated from file
|
|
2
|
+
// @generated from file BlueNetworkCore.proto (syntax proto2)
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
5
5
|
|
|
6
6
|
import { proto2 } from "@bufbuild/protobuf";
|
|
7
7
|
import { BlueOssSidMobile, BlueOssSoConfiguration, BlueOssSoMobile, BlueReturnCode, BlueSPResult, BlueSPTokenCommand } from "./BlueCore_pb.js";
|
|
8
8
|
|
|
9
|
-
/**
|
|
10
|
-
* @generated from message BlueTransponderId
|
|
11
|
-
*/
|
|
12
|
-
export const BlueTransponderId = proto2.makeMessageType(
|
|
13
|
-
"BlueTransponderId",
|
|
14
|
-
() => [
|
|
15
|
-
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
16
|
-
],
|
|
17
|
-
);
|
|
18
|
-
|
|
19
9
|
/**
|
|
20
10
|
* @generated from message BlueErrorResult
|
|
21
11
|
*/
|
|
@@ -69,6 +59,16 @@ export const BlueWebSPStatusMessage = proto2.makeMessageType(
|
|
|
69
59
|
],
|
|
70
60
|
);
|
|
71
61
|
|
|
62
|
+
/**
|
|
63
|
+
* @generated from message BlueTransponderId
|
|
64
|
+
*/
|
|
65
|
+
export const BlueTransponderId = proto2.makeMessageType(
|
|
66
|
+
"BlueTransponderId",
|
|
67
|
+
() => [
|
|
68
|
+
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
69
|
+
],
|
|
70
|
+
);
|
|
71
|
+
|
|
72
72
|
/**
|
|
73
73
|
* @generated from message BlueSocketConfigurationResponse
|
|
74
74
|
*/
|
|
@@ -87,8 +87,11 @@ export const BlueSocketConfigurationResponse = proto2.makeMessageType(
|
|
|
87
87
|
export const BlueSocketRequestConfiguration = proto2.makeMessageType(
|
|
88
88
|
"BlueSocketRequestConfiguration",
|
|
89
89
|
() => [
|
|
90
|
-
{ no:
|
|
91
|
-
{ no:
|
|
90
|
+
{ no: 1, name: "transponderId", kind: "message", T: BlueTransponderId },
|
|
91
|
+
{ no: 2, name: "aid", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
92
|
+
{ no: 3, name: "miniRefreshDays", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
93
|
+
{ no: 4, name: "updateBlackListed", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
94
|
+
{ no: 5, name: "writePendingEvents", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
92
95
|
],
|
|
93
96
|
);
|
|
94
97
|
|
package/es/BlueSystem_pb.d.ts
CHANGED
|
@@ -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;
|
package/es/BlueSystem_pb.js
CHANGED
|
@@ -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
package/es/index.js
CHANGED
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
/* Automatically generated nanopb constant definitions */
|
|
2
2
|
/* Generated by nanopb-0.4.8-dev */
|
|
3
3
|
|
|
4
|
-
#include "
|
|
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
|
|
8
8
|
|
|
9
|
-
PB_BIND(BLUETRANSPONDERID, BlueTransponderId_t, AUTO)
|
|
10
|
-
|
|
11
|
-
|
|
12
9
|
PB_BIND(BLUEERRORRESULT, BlueErrorResult_t, AUTO)
|
|
13
10
|
|
|
14
11
|
|
|
@@ -24,6 +21,9 @@ PB_BIND(BLUEWEBSPMESSAGE, BlueWebSPMessage_t, 2)
|
|
|
24
21
|
PB_BIND(BLUEWEBSPSTATUSMESSAGE, BlueWebSPStatusMessage_t, AUTO)
|
|
25
22
|
|
|
26
23
|
|
|
24
|
+
PB_BIND(BLUETRANSPONDERID, BlueTransponderId_t, AUTO)
|
|
25
|
+
|
|
26
|
+
|
|
27
27
|
PB_BIND(BLUESOCKETCONFIGURATIONRESPONSE, BlueSocketConfigurationResponse_t, 4)
|
|
28
28
|
|
|
29
29
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/* Automatically generated nanopb header */
|
|
2
2
|
/* Generated by nanopb-0.4.8-dev */
|
|
3
3
|
|
|
4
|
-
#ifndef
|
|
5
|
-
#define
|
|
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
|
|
|
@@ -11,10 +11,6 @@
|
|
|
11
11
|
#endif
|
|
12
12
|
|
|
13
13
|
/* Struct definitions */
|
|
14
|
-
typedef struct BlueTransponderId {
|
|
15
|
-
char id[22]; /* Most NFC UIDs are 4, 7, or 10 bytes (not 15). When converted to hex, each byte becomes 2 hex characters → maximum 20 characters + null = 21 bytes */
|
|
16
|
-
} BlueTransponderId_t;
|
|
17
|
-
|
|
18
14
|
typedef struct BlueErrorResult {
|
|
19
15
|
pb_callback_t data;
|
|
20
16
|
} BlueErrorResult_t;
|
|
@@ -40,6 +36,10 @@ typedef struct BlueWebSPStatusMessage {
|
|
|
40
36
|
BlueReturnCode_t status;
|
|
41
37
|
} BlueWebSPStatusMessage_t;
|
|
42
38
|
|
|
39
|
+
typedef struct BlueTransponderId {
|
|
40
|
+
char id[22]; /* Most NFC UIDs are 4, 7, or 10 bytes (not 15). When converted to hex, each byte becomes 2 hex characters → maximum 20 characters + null = 21 bytes */
|
|
41
|
+
} BlueTransponderId_t;
|
|
42
|
+
|
|
43
43
|
typedef struct BlueSocketConfigurationResponse {
|
|
44
44
|
BlueOssSoConfiguration_t config;
|
|
45
45
|
BlueTransponderId_t transponderId;
|
|
@@ -50,6 +50,9 @@ typedef struct BlueSocketConfigurationResponse {
|
|
|
50
50
|
typedef struct BlueSocketRequestConfiguration {
|
|
51
51
|
BlueTransponderId_t transponderId;
|
|
52
52
|
uint32_t aid;
|
|
53
|
+
uint32_t miniRefreshDays;
|
|
54
|
+
bool updateBlackListed;
|
|
55
|
+
bool writePendingEvents;
|
|
53
56
|
} BlueSocketRequestConfiguration_t;
|
|
54
57
|
|
|
55
58
|
typedef struct BlueWebSPClientRequest {
|
|
@@ -131,14 +134,14 @@ extern "C" {
|
|
|
131
134
|
#endif
|
|
132
135
|
|
|
133
136
|
/* Initializer values for message structs */
|
|
134
|
-
#define BLUETRANSPONDERID_INIT_DEFAULT {""}
|
|
135
137
|
#define BLUEERRORRESULT_INIT_DEFAULT {{{NULL}, NULL}}
|
|
136
138
|
#define BLUEWEBSPHANDSHAKE_INIT_DEFAULT {{0}}
|
|
137
139
|
#define BLUEWEBSPHANDSHAKEREPLY_INIT_DEFAULT {"", {0, {0}}}
|
|
138
140
|
#define BLUEWEBSPMESSAGE_INIT_DEFAULT {0, BLUESPRESULT_INIT_DEFAULT, false, false}
|
|
139
141
|
#define BLUEWEBSPSTATUSMESSAGE_INIT_DEFAULT {_BLUERETURNCODE_MIN}
|
|
142
|
+
#define BLUETRANSPONDERID_INIT_DEFAULT {""}
|
|
140
143
|
#define BLUESOCKETCONFIGURATIONRESPONSE_INIT_DEFAULT {BLUEOSSSOCONFIGURATION_INIT_DEFAULT, BLUETRANSPONDERID_INIT_DEFAULT, false, BLUEERRORRESULT_INIT_DEFAULT}
|
|
141
|
-
#define BLUESOCKETREQUESTCONFIGURATION_INIT_DEFAULT {BLUETRANSPONDERID_INIT_DEFAULT, 0}
|
|
144
|
+
#define BLUESOCKETREQUESTCONFIGURATION_INIT_DEFAULT {BLUETRANSPONDERID_INIT_DEFAULT, 0, 0, 0, 0}
|
|
142
145
|
#define BLUEWEBSPSERVERMESSAGE_INIT_DEFAULT {0, {BLUEWEBSPHANDSHAKE_INIT_DEFAULT}}
|
|
143
146
|
#define BLUEWEBSPCLIENTREQUEST_INIT_DEFAULT {0, {BLUESOCKETREQUESTCONFIGURATION_INIT_DEFAULT}}
|
|
144
147
|
#define BLUEWEBSPCLIENTRESPONSE_INIT_DEFAULT {0, {BLUEWEBSPMESSAGE_INIT_DEFAULT}}
|
|
@@ -149,14 +152,14 @@ extern "C" {
|
|
|
149
152
|
#define BLUEWEBSPSERVERSOCKETMESSAGE_INIT_DEFAULT {0, 0, {BLUEWEBSPSERVERSOCKETMESSAGESUCCESS_INIT_DEFAULT}}
|
|
150
153
|
#define BLUEWEBSPCLIENTSOCKETMESSAGESUCCESS_INIT_DEFAULT {BLUESPRESULT_INIT_DEFAULT}
|
|
151
154
|
#define BLUEWEBSPCLIENTSOCKETMESSAGE_INIT_DEFAULT {0, {BLUEWEBSPCLIENTSOCKETMESSAGESUCCESS_INIT_DEFAULT}}
|
|
152
|
-
#define BLUETRANSPONDERID_INIT_ZERO {""}
|
|
153
155
|
#define BLUEERRORRESULT_INIT_ZERO {{{NULL}, NULL}}
|
|
154
156
|
#define BLUEWEBSPHANDSHAKE_INIT_ZERO {{0}}
|
|
155
157
|
#define BLUEWEBSPHANDSHAKEREPLY_INIT_ZERO {"", {0, {0}}}
|
|
156
158
|
#define BLUEWEBSPMESSAGE_INIT_ZERO {0, BLUESPRESULT_INIT_ZERO, false, 0}
|
|
157
159
|
#define BLUEWEBSPSTATUSMESSAGE_INIT_ZERO {_BLUERETURNCODE_MIN}
|
|
160
|
+
#define BLUETRANSPONDERID_INIT_ZERO {""}
|
|
158
161
|
#define BLUESOCKETCONFIGURATIONRESPONSE_INIT_ZERO {BLUEOSSSOCONFIGURATION_INIT_ZERO, BLUETRANSPONDERID_INIT_ZERO, false, BLUEERRORRESULT_INIT_ZERO}
|
|
159
|
-
#define BLUESOCKETREQUESTCONFIGURATION_INIT_ZERO {BLUETRANSPONDERID_INIT_ZERO, 0}
|
|
162
|
+
#define BLUESOCKETREQUESTCONFIGURATION_INIT_ZERO {BLUETRANSPONDERID_INIT_ZERO, 0, 0, 0, 0}
|
|
160
163
|
#define BLUEWEBSPSERVERMESSAGE_INIT_ZERO {0, {BLUEWEBSPHANDSHAKE_INIT_ZERO}}
|
|
161
164
|
#define BLUEWEBSPCLIENTREQUEST_INIT_ZERO {0, {BLUESOCKETREQUESTCONFIGURATION_INIT_ZERO}}
|
|
162
165
|
#define BLUEWEBSPCLIENTRESPONSE_INIT_ZERO {0, {BLUEWEBSPMESSAGE_INIT_ZERO}}
|
|
@@ -169,7 +172,6 @@ extern "C" {
|
|
|
169
172
|
#define BLUEWEBSPCLIENTSOCKETMESSAGE_INIT_ZERO {0, {BLUEWEBSPCLIENTSOCKETMESSAGESUCCESS_INIT_ZERO}}
|
|
170
173
|
|
|
171
174
|
/* Field tags (for use in manual encoding/decoding) */
|
|
172
|
-
#define BLUETRANSPONDERID_ID_TAG 1
|
|
173
175
|
#define BLUEERRORRESULT_DATA_TAG 1
|
|
174
176
|
#define BLUEWEBSPHANDSHAKE_SALT_TAG 1
|
|
175
177
|
#define BLUEWEBSPHANDSHAKEREPLY_DEVICEID_TAG 1
|
|
@@ -178,11 +180,15 @@ extern "C" {
|
|
|
178
180
|
#define BLUEWEBSPMESSAGE_PAYLOAD_TAG 2
|
|
179
181
|
#define BLUEWEBSPMESSAGE_ISCONTINUED_TAG 3
|
|
180
182
|
#define BLUEWEBSPSTATUSMESSAGE_STATUS_TAG 1
|
|
183
|
+
#define BLUETRANSPONDERID_ID_TAG 1
|
|
181
184
|
#define BLUESOCKETCONFIGURATIONRESPONSE_CONFIG_TAG 1
|
|
182
185
|
#define BLUESOCKETCONFIGURATIONRESPONSE_TRANSPONDERID_TAG 2
|
|
183
186
|
#define BLUESOCKETCONFIGURATIONRESPONSE_ERROR_TAG 3
|
|
184
|
-
#define BLUESOCKETREQUESTCONFIGURATION_TRANSPONDERID_TAG
|
|
185
|
-
#define BLUESOCKETREQUESTCONFIGURATION_AID_TAG
|
|
187
|
+
#define BLUESOCKETREQUESTCONFIGURATION_TRANSPONDERID_TAG 1
|
|
188
|
+
#define BLUESOCKETREQUESTCONFIGURATION_AID_TAG 2
|
|
189
|
+
#define BLUESOCKETREQUESTCONFIGURATION_MINIREFRESHDAYS_TAG 3
|
|
190
|
+
#define BLUESOCKETREQUESTCONFIGURATION_UPDATEBLACKLISTED_TAG 4
|
|
191
|
+
#define BLUESOCKETREQUESTCONFIGURATION_WRITEPENDINGEVENTS_TAG 5
|
|
186
192
|
#define BLUEWEBSPCLIENTREQUEST_REQUESTCONFIG_TAG 1
|
|
187
193
|
#define BLUEWEBSPCLIENTRESPONSE_MESSAGE_TAG 1
|
|
188
194
|
#define BLUEWEBSPCLIENTMESSAGE_REQUEST_TAG 1
|
|
@@ -205,11 +211,6 @@ extern "C" {
|
|
|
205
211
|
#define BLUEWEBSPCLIENTSOCKETMESSAGE_FAILED_TAG 2
|
|
206
212
|
|
|
207
213
|
/* Struct field encoding specification for nanopb */
|
|
208
|
-
#define BLUETRANSPONDERID_FIELDLIST(X, a) \
|
|
209
|
-
X(a, STATIC, REQUIRED, STRING, id, 1)
|
|
210
|
-
#define BLUETRANSPONDERID_CALLBACK NULL
|
|
211
|
-
#define BLUETRANSPONDERID_DEFAULT NULL
|
|
212
|
-
|
|
213
214
|
#define BLUEERRORRESULT_FIELDLIST(X, a) \
|
|
214
215
|
X(a, CALLBACK, REQUIRED, STRING, data, 1)
|
|
215
216
|
#define BLUEERRORRESULT_CALLBACK pb_default_field_callback
|
|
@@ -239,6 +240,11 @@ X(a, STATIC, REQUIRED, ENUM, status, 1)
|
|
|
239
240
|
#define BLUEWEBSPSTATUSMESSAGE_CALLBACK NULL
|
|
240
241
|
#define BLUEWEBSPSTATUSMESSAGE_DEFAULT NULL
|
|
241
242
|
|
|
243
|
+
#define BLUETRANSPONDERID_FIELDLIST(X, a) \
|
|
244
|
+
X(a, STATIC, REQUIRED, STRING, id, 1)
|
|
245
|
+
#define BLUETRANSPONDERID_CALLBACK NULL
|
|
246
|
+
#define BLUETRANSPONDERID_DEFAULT NULL
|
|
247
|
+
|
|
242
248
|
#define BLUESOCKETCONFIGURATIONRESPONSE_FIELDLIST(X, a) \
|
|
243
249
|
X(a, STATIC, REQUIRED, MESSAGE, config, 1) \
|
|
244
250
|
X(a, STATIC, REQUIRED, MESSAGE, transponderId, 2) \
|
|
@@ -250,8 +256,11 @@ X(a, STATIC, OPTIONAL, MESSAGE, error, 3)
|
|
|
250
256
|
#define BlueSocketConfigurationResponse_t_error_MSGTYPE BlueErrorResult_t
|
|
251
257
|
|
|
252
258
|
#define BLUESOCKETREQUESTCONFIGURATION_FIELDLIST(X, a) \
|
|
253
|
-
X(a, STATIC, REQUIRED, MESSAGE, transponderId,
|
|
254
|
-
X(a, STATIC, REQUIRED, UINT32, aid,
|
|
259
|
+
X(a, STATIC, REQUIRED, MESSAGE, transponderId, 1) \
|
|
260
|
+
X(a, STATIC, REQUIRED, UINT32, aid, 2) \
|
|
261
|
+
X(a, STATIC, REQUIRED, UINT32, miniRefreshDays, 3) \
|
|
262
|
+
X(a, STATIC, REQUIRED, BOOL, updateBlackListed, 4) \
|
|
263
|
+
X(a, STATIC, REQUIRED, BOOL, writePendingEvents, 5)
|
|
255
264
|
#define BLUESOCKETREQUESTCONFIGURATION_CALLBACK NULL
|
|
256
265
|
#define BLUESOCKETREQUESTCONFIGURATION_DEFAULT NULL
|
|
257
266
|
#define BlueSocketRequestConfiguration_t_transponderId_MSGTYPE BlueTransponderId_t
|
|
@@ -334,12 +343,12 @@ X(a, STATIC, ONEOF, ENUM, (payload,failed,payload.failed), 2)
|
|
|
334
343
|
#define BLUEWEBSPCLIENTSOCKETMESSAGE_DEFAULT NULL
|
|
335
344
|
#define BlueWebSPClientSocketMessage_t_payload_success_MSGTYPE BlueWebSPClientSocketMessageSuccess_t
|
|
336
345
|
|
|
337
|
-
extern const pb_msgdesc_t BlueTransponderId_t_msg;
|
|
338
346
|
extern const pb_msgdesc_t BlueErrorResult_t_msg;
|
|
339
347
|
extern const pb_msgdesc_t BlueWebSPHandshake_t_msg;
|
|
340
348
|
extern const pb_msgdesc_t BlueWebSPHandshakeReply_t_msg;
|
|
341
349
|
extern const pb_msgdesc_t BlueWebSPMessage_t_msg;
|
|
342
350
|
extern const pb_msgdesc_t BlueWebSPStatusMessage_t_msg;
|
|
351
|
+
extern const pb_msgdesc_t BlueTransponderId_t_msg;
|
|
343
352
|
extern const pb_msgdesc_t BlueSocketConfigurationResponse_t_msg;
|
|
344
353
|
extern const pb_msgdesc_t BlueSocketRequestConfiguration_t_msg;
|
|
345
354
|
extern const pb_msgdesc_t BlueWebSPServerMessage_t_msg;
|
|
@@ -354,12 +363,12 @@ extern const pb_msgdesc_t BlueWebSPClientSocketMessageSuccess_t_msg;
|
|
|
354
363
|
extern const pb_msgdesc_t BlueWebSPClientSocketMessage_t_msg;
|
|
355
364
|
|
|
356
365
|
/* Defines for backwards compatibility with code written before nanopb-0.4.0 */
|
|
357
|
-
#define BLUETRANSPONDERID_FIELDS &BlueTransponderId_t_msg
|
|
358
366
|
#define BLUEERRORRESULT_FIELDS &BlueErrorResult_t_msg
|
|
359
367
|
#define BLUEWEBSPHANDSHAKE_FIELDS &BlueWebSPHandshake_t_msg
|
|
360
368
|
#define BLUEWEBSPHANDSHAKEREPLY_FIELDS &BlueWebSPHandshakeReply_t_msg
|
|
361
369
|
#define BLUEWEBSPMESSAGE_FIELDS &BlueWebSPMessage_t_msg
|
|
362
370
|
#define BLUEWEBSPSTATUSMESSAGE_FIELDS &BlueWebSPStatusMessage_t_msg
|
|
371
|
+
#define BLUETRANSPONDERID_FIELDS &BlueTransponderId_t_msg
|
|
363
372
|
#define BLUESOCKETCONFIGURATIONRESPONSE_FIELDS &BlueSocketConfigurationResponse_t_msg
|
|
364
373
|
#define BLUESOCKETREQUESTCONFIGURATION_FIELDS &BlueSocketRequestConfiguration_t_msg
|
|
365
374
|
#define BLUEWEBSPSERVERMESSAGE_FIELDS &BlueWebSPServerMessage_t_msg
|
|
@@ -379,10 +388,10 @@ extern const pb_msgdesc_t BlueWebSPClientSocketMessage_t_msg;
|
|
|
379
388
|
/* BlueWebSPServerMessage_size depends on runtime parameters */
|
|
380
389
|
/* BlueWebSPServerSocketMessageFailed_size depends on runtime parameters */
|
|
381
390
|
/* BlueWebSPServerSocketMessage_size depends on runtime parameters */
|
|
382
|
-
#define BLUESOCKETREQUESTCONFIGURATION_SIZE
|
|
391
|
+
#define BLUESOCKETREQUESTCONFIGURATION_SIZE 41
|
|
383
392
|
#define BLUETRANSPONDERID_SIZE 23
|
|
384
393
|
#define BLUEWEBSPCLIENTMESSAGE_SIZE 1809
|
|
385
|
-
#define BLUEWEBSPCLIENTREQUEST_SIZE
|
|
394
|
+
#define BLUEWEBSPCLIENTREQUEST_SIZE 43
|
|
386
395
|
#define BLUEWEBSPCLIENTRESPONSE_SIZE 1806
|
|
387
396
|
#define BLUEWEBSPCLIENTSOCKETMESSAGESUCCESS_SIZE 1798
|
|
388
397
|
#define BLUEWEBSPCLIENTSOCKETMESSAGE_SIZE 1801
|
package/nanopb/BlueSystem.pb.c
CHANGED
package/nanopb/BlueSystem.pb.h
CHANGED
|
@@ -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
|
|
637
|
+
#define BLUEOSSCONFIG_SIZE 59
|
|
597
638
|
#define BLUESYSTEMAVRINFO_SIZE 15
|
|
598
|
-
#define BLUESYSTEMCONFIG_SIZE
|
|
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
|
|
647
|
+
#define BLUESYSTEMUPDATE_SIZE 1675
|
|
607
648
|
|
|
608
649
|
#ifdef __cplusplus
|
|
609
650
|
} /* extern "C" */
|
package/package.json
CHANGED
|
@@ -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:
|
|
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,28 +21,6 @@ fileprivate struct _GeneratedWithProtocGenSwiftVersion: SwiftProtobuf.ProtobufAP
|
|
|
21
21
|
typealias Version = _2
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
public struct BlueTransponderId: Sendable {
|
|
25
|
-
// SwiftProtobuf.Message conformance is added in an extension below. See the
|
|
26
|
-
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
|
|
27
|
-
// methods supported on all messages.
|
|
28
|
-
|
|
29
|
-
/// Most NFC UIDs are 4, 7, or 10 bytes (not 15). When converted to hex, each byte becomes 2 hex characters → maximum 20 characters + null = 21 bytes
|
|
30
|
-
public var id: String {
|
|
31
|
-
get {return _id ?? String()}
|
|
32
|
-
set {_id = newValue}
|
|
33
|
-
}
|
|
34
|
-
/// Returns true if `id` has been explicitly set.
|
|
35
|
-
public var hasID: Bool {return self._id != nil}
|
|
36
|
-
/// Clears the value of `id`. Subsequent reads from it will return its default value.
|
|
37
|
-
public mutating func clearID() {self._id = nil}
|
|
38
|
-
|
|
39
|
-
public var unknownFields = SwiftProtobuf.UnknownStorage()
|
|
40
|
-
|
|
41
|
-
public init() {}
|
|
42
|
-
|
|
43
|
-
fileprivate var _id: String? = nil
|
|
44
|
-
}
|
|
45
|
-
|
|
46
24
|
public struct BlueErrorResult: Sendable {
|
|
47
25
|
// SwiftProtobuf.Message conformance is added in an extension below. See the
|
|
48
26
|
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
|
|
@@ -178,6 +156,28 @@ public struct BlueWebSPStatusMessage: Sendable {
|
|
|
178
156
|
fileprivate var _status: BlueReturnCode? = nil
|
|
179
157
|
}
|
|
180
158
|
|
|
159
|
+
public struct BlueTransponderId: Sendable {
|
|
160
|
+
// SwiftProtobuf.Message conformance is added in an extension below. See the
|
|
161
|
+
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
|
|
162
|
+
// methods supported on all messages.
|
|
163
|
+
|
|
164
|
+
/// Most NFC UIDs are 4, 7, or 10 bytes (not 15). When converted to hex, each byte becomes 2 hex characters → maximum 20 characters + null = 21 bytes
|
|
165
|
+
public var id: String {
|
|
166
|
+
get {return _id ?? String()}
|
|
167
|
+
set {_id = newValue}
|
|
168
|
+
}
|
|
169
|
+
/// Returns true if `id` has been explicitly set.
|
|
170
|
+
public var hasID: Bool {return self._id != nil}
|
|
171
|
+
/// Clears the value of `id`. Subsequent reads from it will return its default value.
|
|
172
|
+
public mutating func clearID() {self._id = nil}
|
|
173
|
+
|
|
174
|
+
public var unknownFields = SwiftProtobuf.UnknownStorage()
|
|
175
|
+
|
|
176
|
+
public init() {}
|
|
177
|
+
|
|
178
|
+
fileprivate var _id: String? = nil
|
|
179
|
+
}
|
|
180
|
+
|
|
181
181
|
public struct BlueSocketConfigurationResponse: Sendable {
|
|
182
182
|
// SwiftProtobuf.Message conformance is added in an extension below. See the
|
|
183
183
|
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
|
|
@@ -242,12 +242,42 @@ public struct BlueSocketRequestConfiguration: Sendable {
|
|
|
242
242
|
/// Clears the value of `aid`. Subsequent reads from it will return its default value.
|
|
243
243
|
public mutating func clearAid() {self._aid = nil}
|
|
244
244
|
|
|
245
|
+
public var miniRefreshDays: UInt32 {
|
|
246
|
+
get {return _miniRefreshDays ?? 0}
|
|
247
|
+
set {_miniRefreshDays = newValue}
|
|
248
|
+
}
|
|
249
|
+
/// Returns true if `miniRefreshDays` has been explicitly set.
|
|
250
|
+
public var hasMiniRefreshDays: Bool {return self._miniRefreshDays != nil}
|
|
251
|
+
/// Clears the value of `miniRefreshDays`. Subsequent reads from it will return its default value.
|
|
252
|
+
public mutating func clearMiniRefreshDays() {self._miniRefreshDays = nil}
|
|
253
|
+
|
|
254
|
+
public var updateBlackListed: Bool {
|
|
255
|
+
get {return _updateBlackListed ?? false}
|
|
256
|
+
set {_updateBlackListed = newValue}
|
|
257
|
+
}
|
|
258
|
+
/// Returns true if `updateBlackListed` has been explicitly set.
|
|
259
|
+
public var hasUpdateBlackListed: Bool {return self._updateBlackListed != nil}
|
|
260
|
+
/// Clears the value of `updateBlackListed`. Subsequent reads from it will return its default value.
|
|
261
|
+
public mutating func clearUpdateBlackListed() {self._updateBlackListed = nil}
|
|
262
|
+
|
|
263
|
+
public var writePendingEvents: Bool {
|
|
264
|
+
get {return _writePendingEvents ?? false}
|
|
265
|
+
set {_writePendingEvents = newValue}
|
|
266
|
+
}
|
|
267
|
+
/// Returns true if `writePendingEvents` has been explicitly set.
|
|
268
|
+
public var hasWritePendingEvents: Bool {return self._writePendingEvents != nil}
|
|
269
|
+
/// Clears the value of `writePendingEvents`. Subsequent reads from it will return its default value.
|
|
270
|
+
public mutating func clearWritePendingEvents() {self._writePendingEvents = nil}
|
|
271
|
+
|
|
245
272
|
public var unknownFields = SwiftProtobuf.UnknownStorage()
|
|
246
273
|
|
|
247
274
|
public init() {}
|
|
248
275
|
|
|
249
276
|
fileprivate var _transponderID: BlueTransponderId? = nil
|
|
250
277
|
fileprivate var _aid: UInt32? = nil
|
|
278
|
+
fileprivate var _miniRefreshDays: UInt32? = nil
|
|
279
|
+
fileprivate var _updateBlackListed: Bool? = nil
|
|
280
|
+
fileprivate var _writePendingEvents: Bool? = nil
|
|
251
281
|
}
|
|
252
282
|
|
|
253
283
|
/// Message sent by the server to the device
|
|
@@ -665,45 +695,6 @@ public struct BlueWebSPClientSocketMessage: Sendable {
|
|
|
665
695
|
|
|
666
696
|
// MARK: - Code below here is support for the SwiftProtobuf runtime.
|
|
667
697
|
|
|
668
|
-
extension BlueTransponderId: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
669
|
-
public static let protoMessageName: String = "BlueTransponderId"
|
|
670
|
-
public static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}id\0")
|
|
671
|
-
|
|
672
|
-
public var isInitialized: Bool {
|
|
673
|
-
if self._id == nil {return false}
|
|
674
|
-
return true
|
|
675
|
-
}
|
|
676
|
-
|
|
677
|
-
public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
|
|
678
|
-
while let fieldNumber = try decoder.nextFieldNumber() {
|
|
679
|
-
// The use of inline closures is to circumvent an issue where the compiler
|
|
680
|
-
// allocates stack space for every case branch when no optimizations are
|
|
681
|
-
// enabled. https://github.com/apple/swift-protobuf/issues/1034
|
|
682
|
-
switch fieldNumber {
|
|
683
|
-
case 1: try { try decoder.decodeSingularStringField(value: &self._id) }()
|
|
684
|
-
default: break
|
|
685
|
-
}
|
|
686
|
-
}
|
|
687
|
-
}
|
|
688
|
-
|
|
689
|
-
public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
|
|
690
|
-
// The use of inline closures is to circumvent an issue where the compiler
|
|
691
|
-
// allocates stack space for every if/case branch local when no optimizations
|
|
692
|
-
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
|
|
693
|
-
// https://github.com/apple/swift-protobuf/issues/1182
|
|
694
|
-
try { if let v = self._id {
|
|
695
|
-
try visitor.visitSingularStringField(value: v, fieldNumber: 1)
|
|
696
|
-
} }()
|
|
697
|
-
try unknownFields.traverse(visitor: &visitor)
|
|
698
|
-
}
|
|
699
|
-
|
|
700
|
-
public static func ==(lhs: BlueTransponderId, rhs: BlueTransponderId) -> Bool {
|
|
701
|
-
if lhs._id != rhs._id {return false}
|
|
702
|
-
if lhs.unknownFields != rhs.unknownFields {return false}
|
|
703
|
-
return true
|
|
704
|
-
}
|
|
705
|
-
}
|
|
706
|
-
|
|
707
698
|
extension BlueErrorResult: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
708
699
|
public static let protoMessageName: String = "BlueErrorResult"
|
|
709
700
|
public static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}data\0")
|
|
@@ -917,6 +908,45 @@ extension BlueWebSPStatusMessage: SwiftProtobuf.Message, SwiftProtobuf._MessageI
|
|
|
917
908
|
}
|
|
918
909
|
}
|
|
919
910
|
|
|
911
|
+
extension BlueTransponderId: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
912
|
+
public static let protoMessageName: String = "BlueTransponderId"
|
|
913
|
+
public static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}id\0")
|
|
914
|
+
|
|
915
|
+
public var isInitialized: Bool {
|
|
916
|
+
if self._id == nil {return false}
|
|
917
|
+
return true
|
|
918
|
+
}
|
|
919
|
+
|
|
920
|
+
public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
|
|
921
|
+
while let fieldNumber = try decoder.nextFieldNumber() {
|
|
922
|
+
// The use of inline closures is to circumvent an issue where the compiler
|
|
923
|
+
// allocates stack space for every case branch when no optimizations are
|
|
924
|
+
// enabled. https://github.com/apple/swift-protobuf/issues/1034
|
|
925
|
+
switch fieldNumber {
|
|
926
|
+
case 1: try { try decoder.decodeSingularStringField(value: &self._id) }()
|
|
927
|
+
default: break
|
|
928
|
+
}
|
|
929
|
+
}
|
|
930
|
+
}
|
|
931
|
+
|
|
932
|
+
public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
|
|
933
|
+
// The use of inline closures is to circumvent an issue where the compiler
|
|
934
|
+
// allocates stack space for every if/case branch local when no optimizations
|
|
935
|
+
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
|
|
936
|
+
// https://github.com/apple/swift-protobuf/issues/1182
|
|
937
|
+
try { if let v = self._id {
|
|
938
|
+
try visitor.visitSingularStringField(value: v, fieldNumber: 1)
|
|
939
|
+
} }()
|
|
940
|
+
try unknownFields.traverse(visitor: &visitor)
|
|
941
|
+
}
|
|
942
|
+
|
|
943
|
+
public static func ==(lhs: BlueTransponderId, rhs: BlueTransponderId) -> Bool {
|
|
944
|
+
if lhs._id != rhs._id {return false}
|
|
945
|
+
if lhs.unknownFields != rhs.unknownFields {return false}
|
|
946
|
+
return true
|
|
947
|
+
}
|
|
948
|
+
}
|
|
949
|
+
|
|
920
950
|
extension BlueSocketConfigurationResponse: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
921
951
|
public static let protoMessageName: String = "BlueSocketConfigurationResponse"
|
|
922
952
|
public static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}config\0\u{1}transponderId\0\u{1}error\0")
|
|
@@ -972,11 +1002,14 @@ extension BlueSocketConfigurationResponse: SwiftProtobuf.Message, SwiftProtobuf.
|
|
|
972
1002
|
|
|
973
1003
|
extension BlueSocketRequestConfiguration: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
974
1004
|
public static let protoMessageName: String = "BlueSocketRequestConfiguration"
|
|
975
|
-
public static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{
|
|
1005
|
+
public static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}transponderId\0\u{1}aid\0\u{1}miniRefreshDays\0\u{1}updateBlackListed\0\u{1}writePendingEvents\0")
|
|
976
1006
|
|
|
977
1007
|
public var isInitialized: Bool {
|
|
978
1008
|
if self._transponderID == nil {return false}
|
|
979
1009
|
if self._aid == nil {return false}
|
|
1010
|
+
if self._miniRefreshDays == nil {return false}
|
|
1011
|
+
if self._updateBlackListed == nil {return false}
|
|
1012
|
+
if self._writePendingEvents == nil {return false}
|
|
980
1013
|
if let v = self._transponderID, !v.isInitialized {return false}
|
|
981
1014
|
return true
|
|
982
1015
|
}
|
|
@@ -987,8 +1020,11 @@ extension BlueSocketRequestConfiguration: SwiftProtobuf.Message, SwiftProtobuf._
|
|
|
987
1020
|
// allocates stack space for every case branch when no optimizations are
|
|
988
1021
|
// enabled. https://github.com/apple/swift-protobuf/issues/1034
|
|
989
1022
|
switch fieldNumber {
|
|
990
|
-
case
|
|
991
|
-
case
|
|
1023
|
+
case 1: try { try decoder.decodeSingularMessageField(value: &self._transponderID) }()
|
|
1024
|
+
case 2: try { try decoder.decodeSingularUInt32Field(value: &self._aid) }()
|
|
1025
|
+
case 3: try { try decoder.decodeSingularUInt32Field(value: &self._miniRefreshDays) }()
|
|
1026
|
+
case 4: try { try decoder.decodeSingularBoolField(value: &self._updateBlackListed) }()
|
|
1027
|
+
case 5: try { try decoder.decodeSingularBoolField(value: &self._writePendingEvents) }()
|
|
992
1028
|
default: break
|
|
993
1029
|
}
|
|
994
1030
|
}
|
|
@@ -1000,10 +1036,19 @@ extension BlueSocketRequestConfiguration: SwiftProtobuf.Message, SwiftProtobuf._
|
|
|
1000
1036
|
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
|
|
1001
1037
|
// https://github.com/apple/swift-protobuf/issues/1182
|
|
1002
1038
|
try { if let v = self._transponderID {
|
|
1003
|
-
try visitor.visitSingularMessageField(value: v, fieldNumber:
|
|
1039
|
+
try visitor.visitSingularMessageField(value: v, fieldNumber: 1)
|
|
1004
1040
|
} }()
|
|
1005
1041
|
try { if let v = self._aid {
|
|
1006
|
-
try visitor.visitSingularUInt32Field(value: v, fieldNumber:
|
|
1042
|
+
try visitor.visitSingularUInt32Field(value: v, fieldNumber: 2)
|
|
1043
|
+
} }()
|
|
1044
|
+
try { if let v = self._miniRefreshDays {
|
|
1045
|
+
try visitor.visitSingularUInt32Field(value: v, fieldNumber: 3)
|
|
1046
|
+
} }()
|
|
1047
|
+
try { if let v = self._updateBlackListed {
|
|
1048
|
+
try visitor.visitSingularBoolField(value: v, fieldNumber: 4)
|
|
1049
|
+
} }()
|
|
1050
|
+
try { if let v = self._writePendingEvents {
|
|
1051
|
+
try visitor.visitSingularBoolField(value: v, fieldNumber: 5)
|
|
1007
1052
|
} }()
|
|
1008
1053
|
try unknownFields.traverse(visitor: &visitor)
|
|
1009
1054
|
}
|
|
@@ -1011,6 +1056,9 @@ extension BlueSocketRequestConfiguration: SwiftProtobuf.Message, SwiftProtobuf._
|
|
|
1011
1056
|
public static func ==(lhs: BlueSocketRequestConfiguration, rhs: BlueSocketRequestConfiguration) -> Bool {
|
|
1012
1057
|
if lhs._transponderID != rhs._transponderID {return false}
|
|
1013
1058
|
if lhs._aid != rhs._aid {return false}
|
|
1059
|
+
if lhs._miniRefreshDays != rhs._miniRefreshDays {return false}
|
|
1060
|
+
if lhs._updateBlackListed != rhs._updateBlackListed {return false}
|
|
1061
|
+
if lhs._writePendingEvents != rhs._writePendingEvents {return false}
|
|
1014
1062
|
if lhs.unknownFields != rhs.unknownFields {return false}
|
|
1015
1063
|
return true
|
|
1016
1064
|
}
|
|
@@ -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
|
}
|