@blueid/access-proto 12.1.0 → 12.2.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 +8 -7
- package/cjs/BlueNexusCore_pb.d.ts +43 -28
- package/cjs/BlueNexusCore_pb.js +35 -14
- package/es/BlueNexusCore_pb.d.ts +43 -28
- package/es/BlueNexusCore_pb.js +15 -12
- package/nanopb/BlueNexusCore.pb.c +3 -3
- package/nanopb/BlueNexusCore.pb.h +31 -22
- package/package.json +1 -1
- package/swift/BlueNexusCore.pb.swift +114 -66
package/BlueNexusCore.proto
CHANGED
|
@@ -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
|
|
@@ -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;
|
package/cjs/BlueNexusCore_pb.js
CHANGED
|
@@ -39,18 +39,6 @@ __export(BlueNexusCore_pb_exports, {
|
|
|
39
39
|
module.exports = __toCommonJS(BlueNexusCore_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/es/BlueNexusCore_pb.d.ts
CHANGED
|
@@ -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;
|
package/es/BlueNexusCore_pb.js
CHANGED
|
@@ -6,16 +6,6 @@
|
|
|
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
|
|
|
@@ -6,9 +6,6 @@
|
|
|
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
|
|
|
@@ -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/package.json
CHANGED
|
@@ -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
|
}
|