@blueid/access-proto 0.65.0 → 0.67.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/BlueSDK.proto CHANGED
@@ -120,3 +120,20 @@ message BlueAccessObject {
120
120
  message BlueAccessObjectList {
121
121
  repeated BlueAccessObject objects = 1;
122
122
  }
123
+
124
+ enum BlueRefreshOssSoCredentialStatus {
125
+ Succeeded = 0x01;
126
+ Failed = 0x02;
127
+ NotNeeded = 0x03;
128
+ Unsupported = 0x04;
129
+ }
130
+
131
+ message BlueRefreshOssSoCredential {
132
+ required BlueCredentialId credentialId = 1;
133
+ required BlueRefreshOssSoCredentialStatus status = 2;
134
+ optional BlueOssSoConfiguration configuration = 3;
135
+ }
136
+
137
+ message BlueRefreshOssSoCredentials {
138
+ repeated BlueRefreshOssSoCredential credentials = 1;
139
+ }
@@ -5,7 +5,7 @@
5
5
 
6
6
  import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
7
7
  import { Message, proto2 } from "@bufbuild/protobuf";
8
- import type { BlueBleManufacturerInfo, BlueCredentialId, BlueCredentialType, BlueLocalTimestamp } from "./BlueCore_pb.js";
8
+ import type { BlueBleManufacturerInfo, BlueCredentialId, BlueCredentialType, BlueLocalTimestamp, BlueOssSoConfiguration } from "./BlueCore_pb.js";
9
9
 
10
10
  /**
11
11
  * @generated from enum BlueDeviceType
@@ -22,6 +22,31 @@ export declare enum BlueDeviceType {
22
22
  UWBDevice = 2,
23
23
  }
24
24
 
25
+ /**
26
+ * @generated from enum BlueRefreshOssSoCredentialStatus
27
+ */
28
+ export declare enum BlueRefreshOssSoCredentialStatus {
29
+ /**
30
+ * @generated from enum value: Succeeded = 1;
31
+ */
32
+ Succeeded = 1,
33
+
34
+ /**
35
+ * @generated from enum value: Failed = 2;
36
+ */
37
+ Failed = 2,
38
+
39
+ /**
40
+ * @generated from enum value: NotNeeded = 3;
41
+ */
42
+ NotNeeded = 3,
43
+
44
+ /**
45
+ * @generated from enum value: Unsupported = 4;
46
+ */
47
+ Unsupported = 4,
48
+ }
49
+
25
50
  /**
26
51
  * @generated from message BlueI18n
27
52
  */
@@ -454,3 +479,61 @@ export declare class BlueAccessObjectList extends Message<BlueAccessObjectList>
454
479
  static equals(a: BlueAccessObjectList | PlainMessage<BlueAccessObjectList> | undefined, b: BlueAccessObjectList | PlainMessage<BlueAccessObjectList> | undefined): boolean;
455
480
  }
456
481
 
482
+ /**
483
+ * @generated from message BlueRefreshOssSoCredential
484
+ */
485
+ export declare class BlueRefreshOssSoCredential extends Message<BlueRefreshOssSoCredential> {
486
+ /**
487
+ * @generated from field: required BlueCredentialId credentialId = 1;
488
+ */
489
+ credentialId?: BlueCredentialId;
490
+
491
+ /**
492
+ * @generated from field: required BlueRefreshOssSoCredentialStatus status = 2;
493
+ */
494
+ status: BlueRefreshOssSoCredentialStatus;
495
+
496
+ /**
497
+ * @generated from field: optional BlueOssSoConfiguration configuration = 3;
498
+ */
499
+ configuration?: BlueOssSoConfiguration;
500
+
501
+ constructor(data?: PartialMessage<BlueRefreshOssSoCredential>);
502
+
503
+ static readonly runtime: typeof proto2;
504
+ static readonly typeName = "BlueRefreshOssSoCredential";
505
+ static readonly fields: FieldList;
506
+
507
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): BlueRefreshOssSoCredential;
508
+
509
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): BlueRefreshOssSoCredential;
510
+
511
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): BlueRefreshOssSoCredential;
512
+
513
+ static equals(a: BlueRefreshOssSoCredential | PlainMessage<BlueRefreshOssSoCredential> | undefined, b: BlueRefreshOssSoCredential | PlainMessage<BlueRefreshOssSoCredential> | undefined): boolean;
514
+ }
515
+
516
+ /**
517
+ * @generated from message BlueRefreshOssSoCredentials
518
+ */
519
+ export declare class BlueRefreshOssSoCredentials extends Message<BlueRefreshOssSoCredentials> {
520
+ /**
521
+ * @generated from field: repeated BlueRefreshOssSoCredential credentials = 1;
522
+ */
523
+ credentials: BlueRefreshOssSoCredential[];
524
+
525
+ constructor(data?: PartialMessage<BlueRefreshOssSoCredentials>);
526
+
527
+ static readonly runtime: typeof proto2;
528
+ static readonly typeName = "BlueRefreshOssSoCredentials";
529
+ static readonly fields: FieldList;
530
+
531
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): BlueRefreshOssSoCredentials;
532
+
533
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): BlueRefreshOssSoCredentials;
534
+
535
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): BlueRefreshOssSoCredentials;
536
+
537
+ static equals(a: BlueRefreshOssSoCredentials | PlainMessage<BlueRefreshOssSoCredentials> | undefined, b: BlueRefreshOssSoCredentials | PlainMessage<BlueRefreshOssSoCredentials> | undefined): boolean;
538
+ }
539
+
package/cjs/BlueSDK_pb.js CHANGED
@@ -27,7 +27,10 @@ __export(BlueSDK_pb_exports, {
27
27
  BlueDeviceDetailsUWB: () => BlueDeviceDetailsUWB,
28
28
  BlueDeviceInfo: () => BlueDeviceInfo,
29
29
  BlueDeviceType: () => BlueDeviceType,
30
- BlueI18n: () => BlueI18n
30
+ BlueI18n: () => BlueI18n,
31
+ BlueRefreshOssSoCredential: () => BlueRefreshOssSoCredential,
32
+ BlueRefreshOssSoCredentialStatus: () => BlueRefreshOssSoCredentialStatus,
33
+ BlueRefreshOssSoCredentials: () => BlueRefreshOssSoCredentials
31
34
  });
32
35
  module.exports = __toCommonJS(BlueSDK_pb_exports);
33
36
  var import_protobuf = require("@bufbuild/protobuf");
@@ -39,6 +42,15 @@ const BlueDeviceType = import_protobuf.proto2.makeEnum(
39
42
  { no: 2, name: "UWBDevice" }
40
43
  ]
41
44
  );
45
+ const BlueRefreshOssSoCredentialStatus = import_protobuf.proto2.makeEnum(
46
+ "BlueRefreshOssSoCredentialStatus",
47
+ [
48
+ { no: 1, name: "Succeeded" },
49
+ { no: 2, name: "Failed" },
50
+ { no: 3, name: "NotNeeded" },
51
+ { no: 4, name: "Unsupported" }
52
+ ]
53
+ );
42
54
  const BlueI18n = import_protobuf.proto2.makeMessageType(
43
55
  "BlueI18n",
44
56
  () => [
@@ -208,3 +220,17 @@ const BlueAccessObjectList = import_protobuf.proto2.makeMessageType(
208
220
  { no: 1, name: "objects", kind: "message", T: BlueAccessObject, repeated: true }
209
221
  ]
210
222
  );
223
+ const BlueRefreshOssSoCredential = import_protobuf.proto2.makeMessageType(
224
+ "BlueRefreshOssSoCredential",
225
+ () => [
226
+ { no: 1, name: "credentialId", kind: "message", T: import_BlueCore_pb.BlueCredentialId },
227
+ { no: 2, name: "status", kind: "enum", T: import_protobuf.proto2.getEnumType(BlueRefreshOssSoCredentialStatus) },
228
+ { no: 3, name: "configuration", kind: "message", T: import_BlueCore_pb.BlueOssSoConfiguration, opt: true }
229
+ ]
230
+ );
231
+ const BlueRefreshOssSoCredentials = import_protobuf.proto2.makeMessageType(
232
+ "BlueRefreshOssSoCredentials",
233
+ () => [
234
+ { no: 1, name: "credentials", kind: "message", T: BlueRefreshOssSoCredential, repeated: true }
235
+ ]
236
+ );
@@ -5,7 +5,7 @@
5
5
 
6
6
  import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
7
7
  import { Message, proto2 } from "@bufbuild/protobuf";
8
- import type { BlueBleManufacturerInfo, BlueCredentialId, BlueCredentialType, BlueLocalTimestamp } from "./BlueCore_pb.js";
8
+ import type { BlueBleManufacturerInfo, BlueCredentialId, BlueCredentialType, BlueLocalTimestamp, BlueOssSoConfiguration } from "./BlueCore_pb.js";
9
9
 
10
10
  /**
11
11
  * @generated from enum BlueDeviceType
@@ -22,6 +22,31 @@ export declare enum BlueDeviceType {
22
22
  UWBDevice = 2,
23
23
  }
24
24
 
25
+ /**
26
+ * @generated from enum BlueRefreshOssSoCredentialStatus
27
+ */
28
+ export declare enum BlueRefreshOssSoCredentialStatus {
29
+ /**
30
+ * @generated from enum value: Succeeded = 1;
31
+ */
32
+ Succeeded = 1,
33
+
34
+ /**
35
+ * @generated from enum value: Failed = 2;
36
+ */
37
+ Failed = 2,
38
+
39
+ /**
40
+ * @generated from enum value: NotNeeded = 3;
41
+ */
42
+ NotNeeded = 3,
43
+
44
+ /**
45
+ * @generated from enum value: Unsupported = 4;
46
+ */
47
+ Unsupported = 4,
48
+ }
49
+
25
50
  /**
26
51
  * @generated from message BlueI18n
27
52
  */
@@ -454,3 +479,61 @@ export declare class BlueAccessObjectList extends Message<BlueAccessObjectList>
454
479
  static equals(a: BlueAccessObjectList | PlainMessage<BlueAccessObjectList> | undefined, b: BlueAccessObjectList | PlainMessage<BlueAccessObjectList> | undefined): boolean;
455
480
  }
456
481
 
482
+ /**
483
+ * @generated from message BlueRefreshOssSoCredential
484
+ */
485
+ export declare class BlueRefreshOssSoCredential extends Message<BlueRefreshOssSoCredential> {
486
+ /**
487
+ * @generated from field: required BlueCredentialId credentialId = 1;
488
+ */
489
+ credentialId?: BlueCredentialId;
490
+
491
+ /**
492
+ * @generated from field: required BlueRefreshOssSoCredentialStatus status = 2;
493
+ */
494
+ status: BlueRefreshOssSoCredentialStatus;
495
+
496
+ /**
497
+ * @generated from field: optional BlueOssSoConfiguration configuration = 3;
498
+ */
499
+ configuration?: BlueOssSoConfiguration;
500
+
501
+ constructor(data?: PartialMessage<BlueRefreshOssSoCredential>);
502
+
503
+ static readonly runtime: typeof proto2;
504
+ static readonly typeName = "BlueRefreshOssSoCredential";
505
+ static readonly fields: FieldList;
506
+
507
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): BlueRefreshOssSoCredential;
508
+
509
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): BlueRefreshOssSoCredential;
510
+
511
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): BlueRefreshOssSoCredential;
512
+
513
+ static equals(a: BlueRefreshOssSoCredential | PlainMessage<BlueRefreshOssSoCredential> | undefined, b: BlueRefreshOssSoCredential | PlainMessage<BlueRefreshOssSoCredential> | undefined): boolean;
514
+ }
515
+
516
+ /**
517
+ * @generated from message BlueRefreshOssSoCredentials
518
+ */
519
+ export declare class BlueRefreshOssSoCredentials extends Message<BlueRefreshOssSoCredentials> {
520
+ /**
521
+ * @generated from field: repeated BlueRefreshOssSoCredential credentials = 1;
522
+ */
523
+ credentials: BlueRefreshOssSoCredential[];
524
+
525
+ constructor(data?: PartialMessage<BlueRefreshOssSoCredentials>);
526
+
527
+ static readonly runtime: typeof proto2;
528
+ static readonly typeName = "BlueRefreshOssSoCredentials";
529
+ static readonly fields: FieldList;
530
+
531
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): BlueRefreshOssSoCredentials;
532
+
533
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): BlueRefreshOssSoCredentials;
534
+
535
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): BlueRefreshOssSoCredentials;
536
+
537
+ static equals(a: BlueRefreshOssSoCredentials | PlainMessage<BlueRefreshOssSoCredentials> | undefined, b: BlueRefreshOssSoCredentials | PlainMessage<BlueRefreshOssSoCredentials> | undefined): boolean;
538
+ }
539
+
package/es/BlueSDK_pb.js CHANGED
@@ -4,7 +4,7 @@
4
4
  // @ts-nocheck
5
5
 
6
6
  import { proto2 } from "@bufbuild/protobuf";
7
- import { BlueBleManufacturerInfo, BlueCredentialId, BlueCredentialType, BlueLocalTimestamp } from "./BlueCore_pb.js";
7
+ import { BlueBleManufacturerInfo, BlueCredentialId, BlueCredentialType, BlueLocalTimestamp, BlueOssSoConfiguration } from "./BlueCore_pb.js";
8
8
 
9
9
  /**
10
10
  * @generated from enum BlueDeviceType
@@ -17,6 +17,19 @@ export const BlueDeviceType = proto2.makeEnum(
17
17
  ],
18
18
  );
19
19
 
20
+ /**
21
+ * @generated from enum BlueRefreshOssSoCredentialStatus
22
+ */
23
+ export const BlueRefreshOssSoCredentialStatus = proto2.makeEnum(
24
+ "BlueRefreshOssSoCredentialStatus",
25
+ [
26
+ {no: 1, name: "Succeeded"},
27
+ {no: 2, name: "Failed"},
28
+ {no: 3, name: "NotNeeded"},
29
+ {no: 4, name: "Unsupported"},
30
+ ],
31
+ );
32
+
20
33
  /**
21
34
  * @generated from message BlueI18n
22
35
  */
@@ -154,3 +167,25 @@ export const BlueAccessObjectList = proto2.makeMessageType(
154
167
  ],
155
168
  );
156
169
 
170
+ /**
171
+ * @generated from message BlueRefreshOssSoCredential
172
+ */
173
+ export const BlueRefreshOssSoCredential = proto2.makeMessageType(
174
+ "BlueRefreshOssSoCredential",
175
+ () => [
176
+ { no: 1, name: "credentialId", kind: "message", T: BlueCredentialId },
177
+ { no: 2, name: "status", kind: "enum", T: proto2.getEnumType(BlueRefreshOssSoCredentialStatus) },
178
+ { no: 3, name: "configuration", kind: "message", T: BlueOssSoConfiguration, opt: true },
179
+ ],
180
+ );
181
+
182
+ /**
183
+ * @generated from message BlueRefreshOssSoCredentials
184
+ */
185
+ export const BlueRefreshOssSoCredentials = proto2.makeMessageType(
186
+ "BlueRefreshOssSoCredentials",
187
+ () => [
188
+ { no: 1, name: "credentials", kind: "message", T: BlueRefreshOssSoCredential, repeated: true },
189
+ ],
190
+ );
191
+
@@ -36,5 +36,12 @@ PB_BIND(BLUEACCESSOBJECT, BlueAccessObject_t, AUTO)
36
36
  PB_BIND(BLUEACCESSOBJECTLIST, BlueAccessObjectList_t, AUTO)
37
37
 
38
38
 
39
+ PB_BIND(BLUEREFRESHOSSSOCREDENTIAL, BlueRefreshOssSoCredential_t, 4)
40
+
41
+
42
+ PB_BIND(BLUEREFRESHOSSSOCREDENTIALS, BlueRefreshOssSoCredentials_t, AUTO)
43
+
44
+
45
+
39
46
 
40
47
 
@@ -16,6 +16,13 @@ typedef enum BlueDeviceType {
16
16
  BlueDeviceType_UWBDevice = 2
17
17
  } BlueDeviceType_t;
18
18
 
19
+ typedef enum BlueRefreshOssSoCredentialStatus {
20
+ BlueRefreshOssSoCredentialStatus_Succeeded = 1,
21
+ BlueRefreshOssSoCredentialStatus_Failed = 2,
22
+ BlueRefreshOssSoCredentialStatus_NotNeeded = 3,
23
+ BlueRefreshOssSoCredentialStatus_Unsupported = 4
24
+ } BlueRefreshOssSoCredentialStatus_t;
25
+
19
26
  /* Struct definitions */
20
27
  typedef struct BlueI18n {
21
28
  pb_callback_t nfcWaitMessage;
@@ -102,6 +109,17 @@ typedef struct BlueAccessObjectList {
102
109
  pb_callback_t objects;
103
110
  } BlueAccessObjectList_t;
104
111
 
112
+ typedef struct BlueRefreshOssSoCredential {
113
+ BlueCredentialId_t credentialId;
114
+ BlueRefreshOssSoCredentialStatus_t status;
115
+ bool has_configuration;
116
+ BlueOssSoConfiguration_t configuration;
117
+ } BlueRefreshOssSoCredential_t;
118
+
119
+ typedef struct BlueRefreshOssSoCredentials {
120
+ pb_callback_t credentials;
121
+ } BlueRefreshOssSoCredentials_t;
122
+
105
123
 
106
124
  #ifdef __cplusplus
107
125
  extern "C" {
@@ -112,6 +130,10 @@ extern "C" {
112
130
  #define _BLUEDEVICETYPE_MAX BlueDeviceType_UWBDevice
113
131
  #define _BLUEDEVICETYPE_ARRAYSIZE ((BlueDeviceType_t)(BlueDeviceType_UWBDevice+1))
114
132
 
133
+ #define _BLUEREFRESHOSSSOCREDENTIALSTATUS_MIN BlueRefreshOssSoCredentialStatus_Succeeded
134
+ #define _BLUEREFRESHOSSSOCREDENTIALSTATUS_MAX BlueRefreshOssSoCredentialStatus_Unsupported
135
+ #define _BLUEREFRESHOSSSOCREDENTIALSTATUS_ARRAYSIZE ((BlueRefreshOssSoCredentialStatus_t)(BlueRefreshOssSoCredentialStatus_Unsupported+1))
136
+
115
137
 
116
138
 
117
139
 
@@ -124,6 +146,9 @@ extern "C" {
124
146
 
125
147
 
126
148
 
149
+ #define BlueRefreshOssSoCredential_t_status_ENUMTYPE BlueRefreshOssSoCredentialStatus_t
150
+
151
+
127
152
 
128
153
  /* Initializer values for message structs */
129
154
  #define BLUEI18N_INIT_DEFAULT {{{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}}
@@ -136,6 +161,8 @@ extern "C" {
136
161
  #define BLUEACCESSDEVICELIST_INIT_DEFAULT {{{NULL}, NULL}}
137
162
  #define BLUEACCESSOBJECT_INIT_DEFAULT {{{NULL}, NULL}, 0, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}}
138
163
  #define BLUEACCESSOBJECTLIST_INIT_DEFAULT {{{NULL}, NULL}}
164
+ #define BLUEREFRESHOSSSOCREDENTIAL_INIT_DEFAULT {BLUECREDENTIALID_INIT_DEFAULT, _BLUEREFRESHOSSSOCREDENTIALSTATUS_MIN, false, BLUEOSSSOCONFIGURATION_INIT_DEFAULT}
165
+ #define BLUEREFRESHOSSSOCREDENTIALS_INIT_DEFAULT {{{NULL}, NULL}}
139
166
  #define BLUEI18N_INIT_ZERO {{{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}}
140
167
  #define BLUEDEVICEDETAILSBLUETOOTH_INIT_ZERO {0, 0, 0}
141
168
  #define BLUEDEVICEDETAILSUWB_INIT_ZERO {0}
@@ -146,6 +173,8 @@ extern "C" {
146
173
  #define BLUEACCESSDEVICELIST_INIT_ZERO {{{NULL}, NULL}}
147
174
  #define BLUEACCESSOBJECT_INIT_ZERO {{{NULL}, NULL}, 0, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}}
148
175
  #define BLUEACCESSOBJECTLIST_INIT_ZERO {{{NULL}, NULL}}
176
+ #define BLUEREFRESHOSSSOCREDENTIAL_INIT_ZERO {BLUECREDENTIALID_INIT_ZERO, _BLUEREFRESHOSSSOCREDENTIALSTATUS_MIN, false, BLUEOSSSOCONFIGURATION_INIT_ZERO}
177
+ #define BLUEREFRESHOSSSOCREDENTIALS_INIT_ZERO {{{NULL}, NULL}}
149
178
 
150
179
  /* Field tags (for use in manual encoding/decoding) */
151
180
  #define BLUEI18N_NFCWAITMESSAGE_TAG 1
@@ -195,6 +224,10 @@ extern "C" {
195
224
  #define BLUEACCESSOBJECT_DESCRIPTION_TAG 4
196
225
  #define BLUEACCESSOBJECT_DEVICEIDS_TAG 5
197
226
  #define BLUEACCESSOBJECTLIST_OBJECTS_TAG 1
227
+ #define BLUEREFRESHOSSSOCREDENTIAL_CREDENTIALID_TAG 1
228
+ #define BLUEREFRESHOSSSOCREDENTIAL_STATUS_TAG 2
229
+ #define BLUEREFRESHOSSSOCREDENTIAL_CONFIGURATION_TAG 3
230
+ #define BLUEREFRESHOSSSOCREDENTIALS_CREDENTIALS_TAG 1
198
231
 
199
232
  /* Struct field encoding specification for nanopb */
200
233
  #define BLUEI18N_FIELDLIST(X, a) \
@@ -294,6 +327,21 @@ X(a, CALLBACK, REPEATED, MESSAGE, objects, 1)
294
327
  #define BLUEACCESSOBJECTLIST_DEFAULT NULL
295
328
  #define BlueAccessObjectList_t_objects_MSGTYPE BlueAccessObject_t
296
329
 
330
+ #define BLUEREFRESHOSSSOCREDENTIAL_FIELDLIST(X, a) \
331
+ X(a, STATIC, REQUIRED, MESSAGE, credentialId, 1) \
332
+ X(a, STATIC, REQUIRED, UENUM, status, 2) \
333
+ X(a, STATIC, OPTIONAL, MESSAGE, configuration, 3)
334
+ #define BLUEREFRESHOSSSOCREDENTIAL_CALLBACK NULL
335
+ #define BLUEREFRESHOSSSOCREDENTIAL_DEFAULT (const pb_byte_t*)"\x10\x01\x00"
336
+ #define BlueRefreshOssSoCredential_t_credentialId_MSGTYPE BlueCredentialId_t
337
+ #define BlueRefreshOssSoCredential_t_configuration_MSGTYPE BlueOssSoConfiguration_t
338
+
339
+ #define BLUEREFRESHOSSSOCREDENTIALS_FIELDLIST(X, a) \
340
+ X(a, CALLBACK, REPEATED, MESSAGE, credentials, 1)
341
+ #define BLUEREFRESHOSSSOCREDENTIALS_CALLBACK pb_default_field_callback
342
+ #define BLUEREFRESHOSSSOCREDENTIALS_DEFAULT NULL
343
+ #define BlueRefreshOssSoCredentials_t_credentials_MSGTYPE BlueRefreshOssSoCredential_t
344
+
297
345
  extern const pb_msgdesc_t BlueI18n_t_msg;
298
346
  extern const pb_msgdesc_t BlueDeviceDetailsBluetooth_t_msg;
299
347
  extern const pb_msgdesc_t BlueDeviceDetailsUWB_t_msg;
@@ -304,6 +352,8 @@ extern const pb_msgdesc_t BlueAccessDevice_t_msg;
304
352
  extern const pb_msgdesc_t BlueAccessDeviceList_t_msg;
305
353
  extern const pb_msgdesc_t BlueAccessObject_t_msg;
306
354
  extern const pb_msgdesc_t BlueAccessObjectList_t_msg;
355
+ extern const pb_msgdesc_t BlueRefreshOssSoCredential_t_msg;
356
+ extern const pb_msgdesc_t BlueRefreshOssSoCredentials_t_msg;
307
357
 
308
358
  /* Defines for backwards compatibility with code written before nanopb-0.4.0 */
309
359
  #define BLUEI18N_FIELDS &BlueI18n_t_msg
@@ -316,6 +366,8 @@ extern const pb_msgdesc_t BlueAccessObjectList_t_msg;
316
366
  #define BLUEACCESSDEVICELIST_FIELDS &BlueAccessDeviceList_t_msg
317
367
  #define BLUEACCESSOBJECT_FIELDS &BlueAccessObject_t_msg
318
368
  #define BLUEACCESSOBJECTLIST_FIELDS &BlueAccessObjectList_t_msg
369
+ #define BLUEREFRESHOSSSOCREDENTIAL_FIELDS &BlueRefreshOssSoCredential_t_msg
370
+ #define BLUEREFRESHOSSSOCREDENTIALS_FIELDS &BlueRefreshOssSoCredentials_t_msg
319
371
 
320
372
  /* Maximum encoded size of messages (where known) */
321
373
  /* BlueI18n_size depends on runtime parameters */
@@ -326,8 +378,10 @@ extern const pb_msgdesc_t BlueAccessObjectList_t_msg;
326
378
  /* BlueAccessDeviceList_size depends on runtime parameters */
327
379
  /* BlueAccessObject_size depends on runtime parameters */
328
380
  /* BlueAccessObjectList_size depends on runtime parameters */
381
+ /* BlueRefreshOssSoCredentials_size depends on runtime parameters */
329
382
  #define BLUEDEVICEDETAILSBLUETOOTH_SIZE 24
330
383
  #define BLUEDEVICEDETAILSUWB_SIZE 2
384
+ #define BLUEREFRESHOSSSOCREDENTIAL_SIZE 28588
331
385
 
332
386
  #ifdef __cplusplus
333
387
  } /* extern "C" */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blueid/access-proto",
3
- "version": "0.65.0",
3
+ "version": "0.67.0",
4
4
  "description": "BlueID Access Proto files",
5
5
  "author": "BlueID GmbH",
6
6
  "main": "cjs/index.js",
@@ -54,6 +54,46 @@ extension BlueDeviceType: CaseIterable {
54
54
 
55
55
  #endif // swift(>=4.2)
56
56
 
57
+ public enum BlueRefreshOssSoCredentialStatus: SwiftProtobuf.Enum {
58
+ public typealias RawValue = Int
59
+ case succeeded // = 1
60
+ case failed // = 2
61
+ case notNeeded // = 3
62
+ case unsupported // = 4
63
+
64
+ public init() {
65
+ self = .succeeded
66
+ }
67
+
68
+ public init?(rawValue: Int) {
69
+ switch rawValue {
70
+ case 1: self = .succeeded
71
+ case 2: self = .failed
72
+ case 3: self = .notNeeded
73
+ case 4: self = .unsupported
74
+ default: return nil
75
+ }
76
+ }
77
+
78
+ public var rawValue: Int {
79
+ switch self {
80
+ case .succeeded: return 1
81
+ case .failed: return 2
82
+ case .notNeeded: return 3
83
+ case .unsupported: return 4
84
+ }
85
+ }
86
+
87
+ }
88
+
89
+ #if swift(>=4.2)
90
+
91
+ extension BlueRefreshOssSoCredentialStatus: CaseIterable {
92
+ // Support synthesized by the compiler.
93
+ }
94
+
95
+ #endif // swift(>=4.2)
96
+
57
97
  public struct BlueI18n {
58
98
  // SwiftProtobuf.Message conformance is added in an extension below. See the
59
99
  // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
@@ -625,8 +665,62 @@ public struct BlueAccessObjectList {
625
665
  public init() {}
626
666
  }
627
667
 
668
+ public struct BlueRefreshOssSoCredential {
669
+ // SwiftProtobuf.Message conformance is added in an extension below. See the
670
+ // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
671
+ // methods supported on all messages.
672
+
673
+ public var credentialID: BlueCredentialId {
674
+ get {return _credentialID ?? BlueCredentialId()}
675
+ set {_credentialID = newValue}
676
+ }
677
+ /// Returns true if `credentialID` has been explicitly set.
678
+ public var hasCredentialID: Bool {return self._credentialID != nil}
679
+ /// Clears the value of `credentialID`. Subsequent reads from it will return its default value.
680
+ public mutating func clearCredentialID() {self._credentialID = nil}
681
+
682
+ public var status: BlueRefreshOssSoCredentialStatus {
683
+ get {return _status ?? .succeeded}
684
+ set {_status = newValue}
685
+ }
686
+ /// Returns true if `status` has been explicitly set.
687
+ public var hasStatus: Bool {return self._status != nil}
688
+ /// Clears the value of `status`. Subsequent reads from it will return its default value.
689
+ public mutating func clearStatus() {self._status = nil}
690
+
691
+ public var configuration: BlueOssSoConfiguration {
692
+ get {return _configuration ?? BlueOssSoConfiguration()}
693
+ set {_configuration = newValue}
694
+ }
695
+ /// Returns true if `configuration` has been explicitly set.
696
+ public var hasConfiguration: Bool {return self._configuration != nil}
697
+ /// Clears the value of `configuration`. Subsequent reads from it will return its default value.
698
+ public mutating func clearConfiguration() {self._configuration = nil}
699
+
700
+ public var unknownFields = SwiftProtobuf.UnknownStorage()
701
+
702
+ public init() {}
703
+
704
+ fileprivate var _credentialID: BlueCredentialId? = nil
705
+ fileprivate var _status: BlueRefreshOssSoCredentialStatus? = nil
706
+ fileprivate var _configuration: BlueOssSoConfiguration? = nil
707
+ }
708
+
709
+ public struct BlueRefreshOssSoCredentials {
710
+ // SwiftProtobuf.Message conformance is added in an extension below. See the
711
+ // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
712
+ // methods supported on all messages.
713
+
714
+ public var credentials: [BlueRefreshOssSoCredential] = []
715
+
716
+ public var unknownFields = SwiftProtobuf.UnknownStorage()
717
+
718
+ public init() {}
719
+ }
720
+
628
721
  #if swift(>=5.5) && canImport(_Concurrency)
629
722
  extension BlueDeviceType: @unchecked Sendable {}
723
+ extension BlueRefreshOssSoCredentialStatus: @unchecked Sendable {}
630
724
  extension BlueI18n: @unchecked Sendable {}
631
725
  extension BlueDeviceDetailsBluetooth: @unchecked Sendable {}
632
726
  extension BlueDeviceDetailsUWB: @unchecked Sendable {}
@@ -638,6 +732,8 @@ extension BlueAccessDevice: @unchecked Sendable {}
638
732
  extension BlueAccessDeviceList: @unchecked Sendable {}
639
733
  extension BlueAccessObject: @unchecked Sendable {}
640
734
  extension BlueAccessObjectList: @unchecked Sendable {}
735
+ extension BlueRefreshOssSoCredential: @unchecked Sendable {}
736
+ extension BlueRefreshOssSoCredentials: @unchecked Sendable {}
641
737
  #endif // swift(>=5.5) && canImport(_Concurrency)
642
738
 
643
739
  // MARK: - Code below here is support for the SwiftProtobuf runtime.
@@ -649,6 +745,15 @@ extension BlueDeviceType: SwiftProtobuf._ProtoNameProviding {
649
745
  ]
650
746
  }
651
747
 
748
+ extension BlueRefreshOssSoCredentialStatus: SwiftProtobuf._ProtoNameProviding {
749
+ public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
750
+ 1: .same(proto: "Succeeded"),
751
+ 2: .same(proto: "Failed"),
752
+ 3: .same(proto: "NotNeeded"),
753
+ 4: .same(proto: "Unsupported"),
754
+ ]
755
+ }
756
+
652
757
  extension BlueI18n: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
653
758
  public static let protoMessageName: String = "BlueI18n"
654
759
  public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
@@ -1381,3 +1486,96 @@ extension BlueAccessObjectList: SwiftProtobuf.Message, SwiftProtobuf._MessageImp
1381
1486
  return true
1382
1487
  }
1383
1488
  }
1489
+
1490
+ extension BlueRefreshOssSoCredential: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
1491
+ public static let protoMessageName: String = "BlueRefreshOssSoCredential"
1492
+ public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1493
+ 1: .same(proto: "credentialId"),
1494
+ 2: .same(proto: "status"),
1495
+ 3: .same(proto: "configuration"),
1496
+ ]
1497
+
1498
+ public var isInitialized: Bool {
1499
+ if self._credentialID == nil {return false}
1500
+ if self._status == nil {return false}
1501
+ if let v = self._credentialID, !v.isInitialized {return false}
1502
+ if let v = self._configuration, !v.isInitialized {return false}
1503
+ return true
1504
+ }
1505
+
1506
+ public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
1507
+ while let fieldNumber = try decoder.nextFieldNumber() {
1508
+ // The use of inline closures is to circumvent an issue where the compiler
1509
+ // allocates stack space for every case branch when no optimizations are
1510
+ // enabled. https://github.com/apple/swift-protobuf/issues/1034
1511
+ switch fieldNumber {
1512
+ case 1: try { try decoder.decodeSingularMessageField(value: &self._credentialID) }()
1513
+ case 2: try { try decoder.decodeSingularEnumField(value: &self._status) }()
1514
+ case 3: try { try decoder.decodeSingularMessageField(value: &self._configuration) }()
1515
+ default: break
1516
+ }
1517
+ }
1518
+ }
1519
+
1520
+ public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
1521
+ // The use of inline closures is to circumvent an issue where the compiler
1522
+ // allocates stack space for every if/case branch local when no optimizations
1523
+ // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
1524
+ // https://github.com/apple/swift-protobuf/issues/1182
1525
+ try { if let v = self._credentialID {
1526
+ try visitor.visitSingularMessageField(value: v, fieldNumber: 1)
1527
+ } }()
1528
+ try { if let v = self._status {
1529
+ try visitor.visitSingularEnumField(value: v, fieldNumber: 2)
1530
+ } }()
1531
+ try { if let v = self._configuration {
1532
+ try visitor.visitSingularMessageField(value: v, fieldNumber: 3)
1533
+ } }()
1534
+ try unknownFields.traverse(visitor: &visitor)
1535
+ }
1536
+
1537
+ public static func ==(lhs: BlueRefreshOssSoCredential, rhs: BlueRefreshOssSoCredential) -> Bool {
1538
+ if lhs._credentialID != rhs._credentialID {return false}
1539
+ if lhs._status != rhs._status {return false}
1540
+ if lhs._configuration != rhs._configuration {return false}
1541
+ if lhs.unknownFields != rhs.unknownFields {return false}
1542
+ return true
1543
+ }
1544
+ }
1545
+
1546
+ extension BlueRefreshOssSoCredentials: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
1547
+ public static let protoMessageName: String = "BlueRefreshOssSoCredentials"
1548
+ public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1549
+ 1: .same(proto: "credentials"),
1550
+ ]
1551
+
1552
+ public var isInitialized: Bool {
1553
+ if !SwiftProtobuf.Internal.areAllInitialized(self.credentials) {return false}
1554
+ return true
1555
+ }
1556
+
1557
+ public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
1558
+ while let fieldNumber = try decoder.nextFieldNumber() {
1559
+ // The use of inline closures is to circumvent an issue where the compiler
1560
+ // allocates stack space for every case branch when no optimizations are
1561
+ // enabled. https://github.com/apple/swift-protobuf/issues/1034
1562
+ switch fieldNumber {
1563
+ case 1: try { try decoder.decodeRepeatedMessageField(value: &self.credentials) }()
1564
+ default: break
1565
+ }
1566
+ }
1567
+ }
1568
+
1569
+ public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
1570
+ if !self.credentials.isEmpty {
1571
+ try visitor.visitRepeatedMessageField(value: self.credentials, fieldNumber: 1)
1572
+ }
1573
+ try unknownFields.traverse(visitor: &visitor)
1574
+ }
1575
+
1576
+ public static func ==(lhs: BlueRefreshOssSoCredentials, rhs: BlueRefreshOssSoCredentials) -> Bool {
1577
+ if lhs.credentials != rhs.credentials {return false}
1578
+ if lhs.unknownFields != rhs.unknownFields {return false}
1579
+ return true
1580
+ }
1581
+ }