@blueid/access-proto 2.31.0 → 2.33.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 +10 -9
- package/cjs/BlueSDK_pb.d.ts +5 -0
- package/cjs/BlueSDK_pb.js +8 -1
- package/es/BlueSDK_pb.d.ts +5 -0
- package/es/BlueSDK_pb.js +1 -0
- package/nanopb/BlueSDK.pb.c +1 -1
- package/nanopb/BlueSDK.pb.h +6 -3
- package/package.json +1 -1
- package/swift/BlueSDK.pb.swift +18 -0
package/BlueSDK.proto
CHANGED
|
@@ -34,7 +34,7 @@ message BlueI18n {
|
|
|
34
34
|
required string nfcTransponderSuccessReadMessage = 102
|
|
35
35
|
[ default = "Transponder was successfully read" ];
|
|
36
36
|
|
|
37
|
-
|
|
37
|
+
|
|
38
38
|
required string openViaOssTitle = 10
|
|
39
39
|
[ default = "Unlocking in Progress"];
|
|
40
40
|
required string openViaOssWaitMessage = 11
|
|
@@ -193,8 +193,9 @@ message BlueIdentity {
|
|
|
193
193
|
required int32 siteId = 10;
|
|
194
194
|
optional string siteName = 11;
|
|
195
195
|
optional bytes privateKey = 12;
|
|
196
|
+
required string status = 13;
|
|
196
197
|
}
|
|
197
|
-
|
|
198
|
+
|
|
198
199
|
message BlueIdentitiesList {
|
|
199
200
|
repeated BlueIdentity identities = 1;
|
|
200
201
|
}
|
|
@@ -267,7 +268,7 @@ message BlueSynchronizeIdentities {
|
|
|
267
268
|
repeated BlueSynchronizeIdentity identities = 1;
|
|
268
269
|
}
|
|
269
270
|
|
|
270
|
-
message BlueLegacyProvisioningRequest {
|
|
271
|
+
message BlueLegacyProvisioningRequest {
|
|
271
272
|
required string deviceId = 1;
|
|
272
273
|
required string soid = 2;
|
|
273
274
|
required string vendor = 3;
|
|
@@ -276,7 +277,7 @@ message BlueLegacyProvisioningRequest {
|
|
|
276
277
|
optional string hardwareSerialNumber = 6;
|
|
277
278
|
}
|
|
278
279
|
|
|
279
|
-
message BlueLegacyProvisioningResponse {
|
|
280
|
+
message BlueLegacyProvisioningResponse {
|
|
280
281
|
required string deviceId = 1;
|
|
281
282
|
required string objectId = 2;
|
|
282
283
|
required string objectName = 3;
|
|
@@ -303,7 +304,7 @@ message BlueAccessCredential {
|
|
|
303
304
|
required string organisation = 12;
|
|
304
305
|
optional string organisationName = 13;
|
|
305
306
|
}
|
|
306
|
-
|
|
307
|
+
|
|
307
308
|
message BlueAccessCredentialList {
|
|
308
309
|
repeated BlueAccessCredential credentials = 1;
|
|
309
310
|
}
|
|
@@ -314,23 +315,23 @@ message BlueAccessCredential {
|
|
|
314
315
|
NotNeeded = 0x03;
|
|
315
316
|
Unsupported = 0x04;
|
|
316
317
|
}
|
|
317
|
-
|
|
318
|
+
|
|
318
319
|
message BlueRefreshOssSoCredential {
|
|
319
320
|
required BlueCredentialId credentialId = 1;
|
|
320
321
|
required BlueRefreshOssSoCredentialStatus status = 2;
|
|
321
322
|
optional BlueOssSoConfiguration configuration = 3;
|
|
322
323
|
}
|
|
323
|
-
|
|
324
|
+
|
|
324
325
|
message BlueRefreshOssSoCredentials {
|
|
325
326
|
repeated BlueRefreshOssSoCredential credentials = 1;
|
|
326
327
|
}
|
|
327
|
-
|
|
328
|
+
|
|
328
329
|
message BlueSynchronizeAccessCredential {
|
|
329
330
|
required BlueCredentialId credentialId = 1;
|
|
330
331
|
required BlueReturnCode returnCode = 2;
|
|
331
332
|
optional string errorDescription = 3;
|
|
332
333
|
}
|
|
333
|
-
|
|
334
|
+
|
|
334
335
|
message BlueSynchronizeAccessCredentials {
|
|
335
336
|
repeated BlueSynchronizeAccessCredential credentials = 1;
|
|
336
337
|
}
|
package/cjs/BlueSDK_pb.d.ts
CHANGED
|
@@ -558,6 +558,11 @@ export declare class BlueIdentity extends Message<BlueIdentity> {
|
|
|
558
558
|
*/
|
|
559
559
|
privateKey?: Uint8Array;
|
|
560
560
|
|
|
561
|
+
/**
|
|
562
|
+
* @generated from field: required string status = 13;
|
|
563
|
+
*/
|
|
564
|
+
status: string;
|
|
565
|
+
|
|
561
566
|
constructor(data?: PartialMessage<BlueIdentity>);
|
|
562
567
|
|
|
563
568
|
static readonly runtime: typeof proto2;
|
package/cjs/BlueSDK_pb.js
CHANGED
|
@@ -224,7 +224,14 @@ const BlueIdentity = import_protobuf.proto2.makeMessageType(
|
|
|
224
224
|
/* ScalarType.INT32 */
|
|
225
225
|
},
|
|
226
226
|
{ no: 11, name: "siteName", kind: "scalar", T: 9, opt: true },
|
|
227
|
-
{ no: 12, name: "privateKey", kind: "scalar", T: 12, opt: true }
|
|
227
|
+
{ no: 12, name: "privateKey", kind: "scalar", T: 12, opt: true },
|
|
228
|
+
{
|
|
229
|
+
no: 13,
|
|
230
|
+
name: "status",
|
|
231
|
+
kind: "scalar",
|
|
232
|
+
T: 9
|
|
233
|
+
/* ScalarType.STRING */
|
|
234
|
+
}
|
|
228
235
|
]
|
|
229
236
|
);
|
|
230
237
|
const BlueIdentitiesList = import_protobuf.proto2.makeMessageType(
|
package/es/BlueSDK_pb.d.ts
CHANGED
|
@@ -558,6 +558,11 @@ export declare class BlueIdentity extends Message<BlueIdentity> {
|
|
|
558
558
|
*/
|
|
559
559
|
privateKey?: Uint8Array;
|
|
560
560
|
|
|
561
|
+
/**
|
|
562
|
+
* @generated from field: required string status = 13;
|
|
563
|
+
*/
|
|
564
|
+
status: string;
|
|
565
|
+
|
|
561
566
|
constructor(data?: PartialMessage<BlueIdentity>);
|
|
562
567
|
|
|
563
568
|
static readonly runtime: typeof proto2;
|
package/es/BlueSDK_pb.js
CHANGED
|
@@ -157,6 +157,7 @@ export const BlueIdentity = proto2.makeMessageType(
|
|
|
157
157
|
{ no: 10, name: "siteId", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
158
158
|
{ no: 11, name: "siteName", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
159
159
|
{ no: 12, name: "privateKey", kind: "scalar", T: 12 /* ScalarType.BYTES */, opt: true },
|
|
160
|
+
{ no: 13, name: "status", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
160
161
|
],
|
|
161
162
|
);
|
|
162
163
|
|
package/nanopb/BlueSDK.pb.c
CHANGED
|
@@ -18,7 +18,7 @@ PB_BIND(BLUEDEVICEDETAILSUWB, BlueDeviceDetailsUWB_t, AUTO)
|
|
|
18
18
|
PB_BIND(BLUEDEVICEINFO, BlueDeviceInfo_t, AUTO)
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
PB_BIND(BLUEIDENTITY, BlueIdentity_t,
|
|
21
|
+
PB_BIND(BLUEIDENTITY, BlueIdentity_t, 2)
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
PB_BIND(BLUEIDENTITIESLIST, BlueIdentitiesList_t, AUTO)
|
package/nanopb/BlueSDK.pb.h
CHANGED
|
@@ -130,6 +130,7 @@ typedef struct BlueIdentity {
|
|
|
130
130
|
int32_t siteId;
|
|
131
131
|
pb_callback_t siteName;
|
|
132
132
|
pb_callback_t privateKey;
|
|
133
|
+
pb_callback_t status;
|
|
133
134
|
} BlueIdentity_t;
|
|
134
135
|
|
|
135
136
|
typedef struct BlueIdentitiesList {
|
|
@@ -316,7 +317,7 @@ extern "C" {
|
|
|
316
317
|
#define BLUEDEVICEDETAILSBLUETOOTH_INIT_DEFAULT {0, 0, 0}
|
|
317
318
|
#define BLUEDEVICEDETAILSUWB_INIT_DEFAULT {0}
|
|
318
319
|
#define BLUEDEVICEINFO_INIT_DEFAULT {_BLUEDEVICETYPE_MIN, {{NULL}, NULL}, 0, false, BLUEBLEMANUFACTURERINFO_INIT_DEFAULT, 0, {BLUEDEVICEDETAILSBLUETOOTH_INIT_DEFAULT}}
|
|
319
|
-
#define BLUEIDENTITY_INIT_DEFAULT {{{NULL}, NULL}, _BLUECREDENTIALTYPE_MIN, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, false, BLUELOCALTIMESTAMP_INIT_DEFAULT, false, BLUELOCALTIMESTAMP_INIT_DEFAULT, {{NULL}, NULL}, {{NULL}, NULL}, 0, {{NULL}, NULL}, {{NULL}, NULL}}
|
|
320
|
+
#define BLUEIDENTITY_INIT_DEFAULT {{{NULL}, NULL}, _BLUECREDENTIALTYPE_MIN, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, false, BLUELOCALTIMESTAMP_INIT_DEFAULT, false, BLUELOCALTIMESTAMP_INIT_DEFAULT, {{NULL}, NULL}, {{NULL}, NULL}, 0, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}}
|
|
320
321
|
#define BLUEIDENTITIESLIST_INIT_DEFAULT {{{NULL}, NULL}}
|
|
321
322
|
#define BLUEACCESSDEVICE_INIT_DEFAULT {{{NULL}, NULL}, {{NULL}, NULL}, false, 0}
|
|
322
323
|
#define BLUEACCESSDEVICELIST_INIT_DEFAULT {{{NULL}, NULL}}
|
|
@@ -340,7 +341,7 @@ extern "C" {
|
|
|
340
341
|
#define BLUEDEVICEDETAILSBLUETOOTH_INIT_ZERO {0, 0, 0}
|
|
341
342
|
#define BLUEDEVICEDETAILSUWB_INIT_ZERO {0}
|
|
342
343
|
#define BLUEDEVICEINFO_INIT_ZERO {_BLUEDEVICETYPE_MIN, {{NULL}, NULL}, 0, false, BLUEBLEMANUFACTURERINFO_INIT_ZERO, 0, {BLUEDEVICEDETAILSBLUETOOTH_INIT_ZERO}}
|
|
343
|
-
#define BLUEIDENTITY_INIT_ZERO {{{NULL}, NULL}, _BLUECREDENTIALTYPE_MIN, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, false, BLUELOCALTIMESTAMP_INIT_ZERO, false, BLUELOCALTIMESTAMP_INIT_ZERO, {{NULL}, NULL}, {{NULL}, NULL}, 0, {{NULL}, NULL}, {{NULL}, NULL}}
|
|
344
|
+
#define BLUEIDENTITY_INIT_ZERO {{{NULL}, NULL}, _BLUECREDENTIALTYPE_MIN, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, false, BLUELOCALTIMESTAMP_INIT_ZERO, false, BLUELOCALTIMESTAMP_INIT_ZERO, {{NULL}, NULL}, {{NULL}, NULL}, 0, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}}
|
|
344
345
|
#define BLUEIDENTITIESLIST_INIT_ZERO {{{NULL}, NULL}}
|
|
345
346
|
#define BLUEACCESSDEVICE_INIT_ZERO {{{NULL}, NULL}, {{NULL}, NULL}, false, 0}
|
|
346
347
|
#define BLUEACCESSDEVICELIST_INIT_ZERO {{{NULL}, NULL}}
|
|
@@ -446,6 +447,7 @@ extern "C" {
|
|
|
446
447
|
#define BLUEIDENTITY_SITEID_TAG 10
|
|
447
448
|
#define BLUEIDENTITY_SITENAME_TAG 11
|
|
448
449
|
#define BLUEIDENTITY_PRIVATEKEY_TAG 12
|
|
450
|
+
#define BLUEIDENTITY_STATUS_TAG 13
|
|
449
451
|
#define BLUEIDENTITIESLIST_IDENTITIES_TAG 1
|
|
450
452
|
#define BLUEACCESSDEVICE_DEVICEID_TAG 1
|
|
451
453
|
#define BLUEACCESSDEVICE_OBJECTNAME_TAG 2
|
|
@@ -612,7 +614,8 @@ X(a, CALLBACK, REQUIRED, STRING, organization, 8) \
|
|
|
612
614
|
X(a, CALLBACK, OPTIONAL, STRING, organizationName, 9) \
|
|
613
615
|
X(a, STATIC, REQUIRED, INT32, siteId, 10) \
|
|
614
616
|
X(a, CALLBACK, OPTIONAL, STRING, siteName, 11) \
|
|
615
|
-
X(a, CALLBACK, OPTIONAL, BYTES, privateKey, 12)
|
|
617
|
+
X(a, CALLBACK, OPTIONAL, BYTES, privateKey, 12) \
|
|
618
|
+
X(a, CALLBACK, REQUIRED, STRING, status, 13)
|
|
616
619
|
#define BLUEIDENTITY_CALLBACK pb_default_field_callback
|
|
617
620
|
#define BLUEIDENTITY_DEFAULT (const pb_byte_t*)"\x10\x01\x00"
|
|
618
621
|
#define BlueIdentity_t_validFrom_MSGTYPE BlueLocalTimestamp_t
|
package/package.json
CHANGED
package/swift/BlueSDK.pb.swift
CHANGED
|
@@ -917,6 +917,15 @@ public struct BlueIdentity: @unchecked Sendable {
|
|
|
917
917
|
/// Clears the value of `privateKey`. Subsequent reads from it will return its default value.
|
|
918
918
|
public mutating func clearPrivateKey() {_uniqueStorage()._privateKey = nil}
|
|
919
919
|
|
|
920
|
+
public var status: String {
|
|
921
|
+
get {return _storage._status ?? String()}
|
|
922
|
+
set {_uniqueStorage()._status = newValue}
|
|
923
|
+
}
|
|
924
|
+
/// Returns true if `status` has been explicitly set.
|
|
925
|
+
public var hasStatus: Bool {return _storage._status != nil}
|
|
926
|
+
/// Clears the value of `status`. Subsequent reads from it will return its default value.
|
|
927
|
+
public mutating func clearStatus() {_uniqueStorage()._status = nil}
|
|
928
|
+
|
|
920
929
|
public var unknownFields = SwiftProtobuf.UnknownStorage()
|
|
921
930
|
|
|
922
931
|
public init() {}
|
|
@@ -2518,6 +2527,7 @@ extension BlueIdentity: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementat
|
|
|
2518
2527
|
10: .same(proto: "siteId"),
|
|
2519
2528
|
11: .same(proto: "siteName"),
|
|
2520
2529
|
12: .same(proto: "privateKey"),
|
|
2530
|
+
13: .same(proto: "status"),
|
|
2521
2531
|
]
|
|
2522
2532
|
|
|
2523
2533
|
fileprivate class _StorageClass {
|
|
@@ -2533,6 +2543,7 @@ extension BlueIdentity: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementat
|
|
|
2533
2543
|
var _siteID: Int32? = nil
|
|
2534
2544
|
var _siteName: String? = nil
|
|
2535
2545
|
var _privateKey: Data? = nil
|
|
2546
|
+
var _status: String? = nil
|
|
2536
2547
|
|
|
2537
2548
|
#if swift(>=5.10)
|
|
2538
2549
|
// This property is used as the initial default value for new instances of the type.
|
|
@@ -2559,6 +2570,7 @@ extension BlueIdentity: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementat
|
|
|
2559
2570
|
_siteID = source._siteID
|
|
2560
2571
|
_siteName = source._siteName
|
|
2561
2572
|
_privateKey = source._privateKey
|
|
2573
|
+
_status = source._status
|
|
2562
2574
|
}
|
|
2563
2575
|
}
|
|
2564
2576
|
|
|
@@ -2575,6 +2587,7 @@ extension BlueIdentity: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementat
|
|
|
2575
2587
|
if _storage._role == nil {return false}
|
|
2576
2588
|
if _storage._organization == nil {return false}
|
|
2577
2589
|
if _storage._siteID == nil {return false}
|
|
2590
|
+
if _storage._status == nil {return false}
|
|
2578
2591
|
if let v = _storage._validFrom, !v.isInitialized {return false}
|
|
2579
2592
|
if let v = _storage._validTo, !v.isInitialized {return false}
|
|
2580
2593
|
return true
|
|
@@ -2601,6 +2614,7 @@ extension BlueIdentity: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementat
|
|
|
2601
2614
|
case 10: try { try decoder.decodeSingularInt32Field(value: &_storage._siteID) }()
|
|
2602
2615
|
case 11: try { try decoder.decodeSingularStringField(value: &_storage._siteName) }()
|
|
2603
2616
|
case 12: try { try decoder.decodeSingularBytesField(value: &_storage._privateKey) }()
|
|
2617
|
+
case 13: try { try decoder.decodeSingularStringField(value: &_storage._status) }()
|
|
2604
2618
|
default: break
|
|
2605
2619
|
}
|
|
2606
2620
|
}
|
|
@@ -2649,6 +2663,9 @@ extension BlueIdentity: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementat
|
|
|
2649
2663
|
try { if let v = _storage._privateKey {
|
|
2650
2664
|
try visitor.visitSingularBytesField(value: v, fieldNumber: 12)
|
|
2651
2665
|
} }()
|
|
2666
|
+
try { if let v = _storage._status {
|
|
2667
|
+
try visitor.visitSingularStringField(value: v, fieldNumber: 13)
|
|
2668
|
+
} }()
|
|
2652
2669
|
}
|
|
2653
2670
|
try unknownFields.traverse(visitor: &visitor)
|
|
2654
2671
|
}
|
|
@@ -2670,6 +2687,7 @@ extension BlueIdentity: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementat
|
|
|
2670
2687
|
if _storage._siteID != rhs_storage._siteID {return false}
|
|
2671
2688
|
if _storage._siteName != rhs_storage._siteName {return false}
|
|
2672
2689
|
if _storage._privateKey != rhs_storage._privateKey {return false}
|
|
2690
|
+
if _storage._status != rhs_storage._status {return false}
|
|
2673
2691
|
return true
|
|
2674
2692
|
}
|
|
2675
2693
|
if !storagesAreEqual {return false}
|