@blueid/access-proto 0.40.0 → 0.42.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
@@ -63,12 +63,15 @@ message BlueAccessCredential {
63
63
  required BlueCredentialId credentialId = 1;
64
64
  required BlueCredentialType credentialType = 2;
65
65
  optional string name = 3;
66
- optional int32 siteId = 4;
66
+ required int32 siteId = 4;
67
67
  optional string siteName = 5;
68
68
  optional BlueLocalTimestamp validFrom = 6;
69
69
  optional BlueLocalTimestamp validTo = 7;
70
70
  optional BlueLocalTimestamp validity = 8;
71
71
  optional bytes privateKey = 9;
72
+ optional string receiverName = 10;
73
+ required string organisation = 11;
74
+ optional string organisationName = 12;
72
75
  }
73
76
 
74
77
  message BlueAccessCredentialList {
@@ -215,9 +215,9 @@ export declare class BlueAccessCredential extends Message<BlueAccessCredential>
215
215
  name?: string;
216
216
 
217
217
  /**
218
- * @generated from field: optional int32 siteId = 4;
218
+ * @generated from field: required int32 siteId = 4;
219
219
  */
220
- siteId?: number;
220
+ siteId: number;
221
221
 
222
222
  /**
223
223
  * @generated from field: optional string siteName = 5;
@@ -244,6 +244,21 @@ export declare class BlueAccessCredential extends Message<BlueAccessCredential>
244
244
  */
245
245
  privateKey?: Uint8Array;
246
246
 
247
+ /**
248
+ * @generated from field: optional string receiverName = 10;
249
+ */
250
+ receiverName?: string;
251
+
252
+ /**
253
+ * @generated from field: required string organisation = 11;
254
+ */
255
+ organisation: string;
256
+
257
+ /**
258
+ * @generated from field: optional string organisationName = 12;
259
+ */
260
+ organisationName?: string;
261
+
247
262
  constructor(data?: PartialMessage<BlueAccessCredential>);
248
263
 
249
264
  static readonly runtime: typeof proto2;
package/cjs/BlueSDK_pb.js CHANGED
@@ -119,12 +119,27 @@ const BlueAccessCredential = import_protobuf.proto2.makeMessageType(
119
119
  { no: 1, name: "credentialId", kind: "message", T: import_BlueCore_pb.BlueCredentialId },
120
120
  { no: 2, name: "credentialType", kind: "enum", T: import_protobuf.proto2.getEnumType(import_BlueCore_pb.BlueCredentialType) },
121
121
  { no: 3, name: "name", kind: "scalar", T: 9, opt: true },
122
- { no: 4, name: "siteId", kind: "scalar", T: 5, opt: true },
122
+ {
123
+ no: 4,
124
+ name: "siteId",
125
+ kind: "scalar",
126
+ T: 5
127
+ /* ScalarType.INT32 */
128
+ },
123
129
  { no: 5, name: "siteName", kind: "scalar", T: 9, opt: true },
124
130
  { no: 6, name: "validFrom", kind: "message", T: import_BlueCore_pb.BlueLocalTimestamp, opt: true },
125
131
  { no: 7, name: "validTo", kind: "message", T: import_BlueCore_pb.BlueLocalTimestamp, opt: true },
126
132
  { no: 8, name: "validity", kind: "message", T: import_BlueCore_pb.BlueLocalTimestamp, opt: true },
127
- { no: 9, name: "privateKey", kind: "scalar", T: 12, opt: true }
133
+ { no: 9, name: "privateKey", kind: "scalar", T: 12, opt: true },
134
+ { no: 10, name: "receiverName", kind: "scalar", T: 9, opt: true },
135
+ {
136
+ no: 11,
137
+ name: "organisation",
138
+ kind: "scalar",
139
+ T: 9
140
+ /* ScalarType.STRING */
141
+ },
142
+ { no: 12, name: "organisationName", kind: "scalar", T: 9, opt: true }
128
143
  ]
129
144
  );
130
145
  const BlueAccessCredentialList = import_protobuf.proto2.makeMessageType(
@@ -215,9 +215,9 @@ export declare class BlueAccessCredential extends Message<BlueAccessCredential>
215
215
  name?: string;
216
216
 
217
217
  /**
218
- * @generated from field: optional int32 siteId = 4;
218
+ * @generated from field: required int32 siteId = 4;
219
219
  */
220
- siteId?: number;
220
+ siteId: number;
221
221
 
222
222
  /**
223
223
  * @generated from field: optional string siteName = 5;
@@ -244,6 +244,21 @@ export declare class BlueAccessCredential extends Message<BlueAccessCredential>
244
244
  */
245
245
  privateKey?: Uint8Array;
246
246
 
247
+ /**
248
+ * @generated from field: optional string receiverName = 10;
249
+ */
250
+ receiverName?: string;
251
+
252
+ /**
253
+ * @generated from field: required string organisation = 11;
254
+ */
255
+ organisation: string;
256
+
257
+ /**
258
+ * @generated from field: optional string organisationName = 12;
259
+ */
260
+ organisationName?: string;
261
+
247
262
  constructor(data?: PartialMessage<BlueAccessCredential>);
248
263
 
249
264
  static readonly runtime: typeof proto2;
package/es/BlueSDK_pb.js CHANGED
@@ -80,12 +80,15 @@ export const BlueAccessCredential = proto2.makeMessageType(
80
80
  { no: 1, name: "credentialId", kind: "message", T: BlueCredentialId },
81
81
  { no: 2, name: "credentialType", kind: "enum", T: proto2.getEnumType(BlueCredentialType) },
82
82
  { no: 3, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
83
- { no: 4, name: "siteId", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
83
+ { no: 4, name: "siteId", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
84
84
  { no: 5, name: "siteName", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
85
85
  { no: 6, name: "validFrom", kind: "message", T: BlueLocalTimestamp, opt: true },
86
86
  { no: 7, name: "validTo", kind: "message", T: BlueLocalTimestamp, opt: true },
87
87
  { no: 8, name: "validity", kind: "message", T: BlueLocalTimestamp, opt: true },
88
88
  { no: 9, name: "privateKey", kind: "scalar", T: 12 /* ScalarType.BYTES */, opt: true },
89
+ { no: 10, name: "receiverName", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
90
+ { no: 11, name: "organisation", kind: "scalar", T: 9 /* ScalarType.STRING */ },
91
+ { no: 12, name: "organisationName", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
89
92
  ],
90
93
  );
91
94
 
@@ -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(BLUEACCESSCREDENTIAL, BlueAccessCredential_t, AUTO)
21
+ PB_BIND(BLUEACCESSCREDENTIAL, BlueAccessCredential_t, 2)
22
22
 
23
23
 
24
24
  PB_BIND(BLUEACCESSCREDENTIALLIST, BlueAccessCredentialList_t, AUTO)
@@ -55,7 +55,6 @@ typedef struct BlueAccessCredential {
55
55
  BlueCredentialId_t credentialId;
56
56
  BlueCredentialType_t credentialType;
57
57
  pb_callback_t name;
58
- bool has_siteId;
59
58
  int32_t siteId;
60
59
  pb_callback_t siteName;
61
60
  bool has_validFrom;
@@ -65,6 +64,9 @@ typedef struct BlueAccessCredential {
65
64
  bool has_validity;
66
65
  BlueLocalTimestamp_t validity;
67
66
  pb_callback_t privateKey;
67
+ pb_callback_t receiverName;
68
+ pb_callback_t organisation;
69
+ pb_callback_t organisationName;
68
70
  } BlueAccessCredential_t;
69
71
 
70
72
  typedef struct BlueAccessCredentialList {
@@ -122,7 +124,7 @@ extern "C" {
122
124
  #define BLUEDEVICEDETAILSBLUETOOTH_INIT_DEFAULT {0, 0, 0}
123
125
  #define BLUEDEVICEDETAILSUWB_INIT_DEFAULT {0}
124
126
  #define BLUEDEVICEINFO_INIT_DEFAULT {_BLUEDEVICETYPE_MIN, {{NULL}, NULL}, 0, false, BLUEBLEMANUFACTURERINFO_INIT_DEFAULT, 0, {BLUEDEVICEDETAILSBLUETOOTH_INIT_DEFAULT}}
125
- #define BLUEACCESSCREDENTIAL_INIT_DEFAULT {BLUECREDENTIALID_INIT_DEFAULT, _BLUECREDENTIALTYPE_MIN, {{NULL}, NULL}, false, 0, {{NULL}, NULL}, false, BLUELOCALTIMESTAMP_INIT_DEFAULT, false, BLUELOCALTIMESTAMP_INIT_DEFAULT, false, BLUELOCALTIMESTAMP_INIT_DEFAULT, {{NULL}, NULL}}
127
+ #define BLUEACCESSCREDENTIAL_INIT_DEFAULT {BLUECREDENTIALID_INIT_DEFAULT, _BLUECREDENTIALTYPE_MIN, {{NULL}, NULL}, 0, {{NULL}, NULL}, false, BLUELOCALTIMESTAMP_INIT_DEFAULT, false, BLUELOCALTIMESTAMP_INIT_DEFAULT, false, BLUELOCALTIMESTAMP_INIT_DEFAULT, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}}
126
128
  #define BLUEACCESSCREDENTIALLIST_INIT_DEFAULT {{{NULL}, NULL}}
127
129
  #define BLUEACCESSDEVICE_INIT_DEFAULT {{{NULL}, NULL}, {{NULL}, NULL}, false, 0}
128
130
  #define BLUEACCESSDEVICELIST_INIT_DEFAULT {{{NULL}, NULL}}
@@ -132,7 +134,7 @@ extern "C" {
132
134
  #define BLUEDEVICEDETAILSBLUETOOTH_INIT_ZERO {0, 0, 0}
133
135
  #define BLUEDEVICEDETAILSUWB_INIT_ZERO {0}
134
136
  #define BLUEDEVICEINFO_INIT_ZERO {_BLUEDEVICETYPE_MIN, {{NULL}, NULL}, 0, false, BLUEBLEMANUFACTURERINFO_INIT_ZERO, 0, {BLUEDEVICEDETAILSBLUETOOTH_INIT_ZERO}}
135
- #define BLUEACCESSCREDENTIAL_INIT_ZERO {BLUECREDENTIALID_INIT_ZERO, _BLUECREDENTIALTYPE_MIN, {{NULL}, NULL}, false, 0, {{NULL}, NULL}, false, BLUELOCALTIMESTAMP_INIT_ZERO, false, BLUELOCALTIMESTAMP_INIT_ZERO, false, BLUELOCALTIMESTAMP_INIT_ZERO, {{NULL}, NULL}}
137
+ #define BLUEACCESSCREDENTIAL_INIT_ZERO {BLUECREDENTIALID_INIT_ZERO, _BLUECREDENTIALTYPE_MIN, {{NULL}, NULL}, 0, {{NULL}, NULL}, false, BLUELOCALTIMESTAMP_INIT_ZERO, false, BLUELOCALTIMESTAMP_INIT_ZERO, false, BLUELOCALTIMESTAMP_INIT_ZERO, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}}
136
138
  #define BLUEACCESSCREDENTIALLIST_INIT_ZERO {{{NULL}, NULL}}
137
139
  #define BLUEACCESSDEVICE_INIT_ZERO {{{NULL}, NULL}, {{NULL}, NULL}, false, 0}
138
140
  #define BLUEACCESSDEVICELIST_INIT_ZERO {{{NULL}, NULL}}
@@ -167,6 +169,9 @@ extern "C" {
167
169
  #define BLUEACCESSCREDENTIAL_VALIDTO_TAG 7
168
170
  #define BLUEACCESSCREDENTIAL_VALIDITY_TAG 8
169
171
  #define BLUEACCESSCREDENTIAL_PRIVATEKEY_TAG 9
172
+ #define BLUEACCESSCREDENTIAL_RECEIVERNAME_TAG 10
173
+ #define BLUEACCESSCREDENTIAL_ORGANISATION_TAG 11
174
+ #define BLUEACCESSCREDENTIAL_ORGANISATIONNAME_TAG 12
170
175
  #define BLUEACCESSCREDENTIALLIST_CREDENTIALS_TAG 1
171
176
  #define BLUEACCESSDEVICE_DEVICEID_TAG 1
172
177
  #define BLUEACCESSDEVICE_OBJECTNAME_TAG 2
@@ -221,12 +226,15 @@ X(a, STATIC, ONEOF, MESSAGE, (details,uwb,details.uwb), 6)
221
226
  X(a, STATIC, REQUIRED, MESSAGE, credentialId, 1) \
222
227
  X(a, STATIC, REQUIRED, UENUM, credentialType, 2) \
223
228
  X(a, CALLBACK, OPTIONAL, STRING, name, 3) \
224
- X(a, STATIC, OPTIONAL, INT32, siteId, 4) \
229
+ X(a, STATIC, REQUIRED, INT32, siteId, 4) \
225
230
  X(a, CALLBACK, OPTIONAL, STRING, siteName, 5) \
226
231
  X(a, STATIC, OPTIONAL, MESSAGE, validFrom, 6) \
227
232
  X(a, STATIC, OPTIONAL, MESSAGE, validTo, 7) \
228
233
  X(a, STATIC, OPTIONAL, MESSAGE, validity, 8) \
229
- X(a, CALLBACK, OPTIONAL, BYTES, privateKey, 9)
234
+ X(a, CALLBACK, OPTIONAL, BYTES, privateKey, 9) \
235
+ X(a, CALLBACK, OPTIONAL, STRING, receiverName, 10) \
236
+ X(a, CALLBACK, REQUIRED, STRING, organisation, 11) \
237
+ X(a, CALLBACK, OPTIONAL, STRING, organisationName, 12)
230
238
  #define BLUEACCESSCREDENTIAL_CALLBACK pb_default_field_callback
231
239
  #define BLUEACCESSCREDENTIAL_DEFAULT (const pb_byte_t*)"\x10\x01\x00"
232
240
  #define BlueAccessCredential_t_credentialId_MSGTYPE BlueCredentialId_t
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blueid/access-proto",
3
- "version": "0.40.0",
3
+ "version": "0.42.0",
4
4
  "description": "BlueID Access Proto files",
5
5
  "author": "BlueID GmbH",
6
6
  "main": "cjs/index.js",
@@ -402,6 +402,33 @@ public struct BlueAccessCredential {
402
402
  /// Clears the value of `privateKey`. Subsequent reads from it will return its default value.
403
403
  public mutating func clearPrivateKey() {_uniqueStorage()._privateKey = nil}
404
404
 
405
+ public var receiverName: String {
406
+ get {return _storage._receiverName ?? String()}
407
+ set {_uniqueStorage()._receiverName = newValue}
408
+ }
409
+ /// Returns true if `receiverName` has been explicitly set.
410
+ public var hasReceiverName: Bool {return _storage._receiverName != nil}
411
+ /// Clears the value of `receiverName`. Subsequent reads from it will return its default value.
412
+ public mutating func clearReceiverName() {_uniqueStorage()._receiverName = nil}
413
+
414
+ public var organisation: String {
415
+ get {return _storage._organisation ?? String()}
416
+ set {_uniqueStorage()._organisation = newValue}
417
+ }
418
+ /// Returns true if `organisation` has been explicitly set.
419
+ public var hasOrganisation: Bool {return _storage._organisation != nil}
420
+ /// Clears the value of `organisation`. Subsequent reads from it will return its default value.
421
+ public mutating func clearOrganisation() {_uniqueStorage()._organisation = nil}
422
+
423
+ public var organisationName: String {
424
+ get {return _storage._organisationName ?? String()}
425
+ set {_uniqueStorage()._organisationName = newValue}
426
+ }
427
+ /// Returns true if `organisationName` has been explicitly set.
428
+ public var hasOrganisationName: Bool {return _storage._organisationName != nil}
429
+ /// Clears the value of `organisationName`. Subsequent reads from it will return its default value.
430
+ public mutating func clearOrganisationName() {_uniqueStorage()._organisationName = nil}
431
+
405
432
  public var unknownFields = SwiftProtobuf.UnknownStorage()
406
433
 
407
434
  public init() {}
@@ -864,6 +891,9 @@ extension BlueAccessCredential: SwiftProtobuf.Message, SwiftProtobuf._MessageImp
864
891
  7: .same(proto: "validTo"),
865
892
  8: .same(proto: "validity"),
866
893
  9: .same(proto: "privateKey"),
894
+ 10: .same(proto: "receiverName"),
895
+ 11: .same(proto: "organisation"),
896
+ 12: .same(proto: "organisationName"),
867
897
  ]
868
898
 
869
899
  fileprivate class _StorageClass {
@@ -876,6 +906,9 @@ extension BlueAccessCredential: SwiftProtobuf.Message, SwiftProtobuf._MessageImp
876
906
  var _validTo: BlueLocalTimestamp? = nil
877
907
  var _validity: BlueLocalTimestamp? = nil
878
908
  var _privateKey: Data? = nil
909
+ var _receiverName: String? = nil
910
+ var _organisation: String? = nil
911
+ var _organisationName: String? = nil
879
912
 
880
913
  static let defaultInstance = _StorageClass()
881
914
 
@@ -891,6 +924,9 @@ extension BlueAccessCredential: SwiftProtobuf.Message, SwiftProtobuf._MessageImp
891
924
  _validTo = source._validTo
892
925
  _validity = source._validity
893
926
  _privateKey = source._privateKey
927
+ _receiverName = source._receiverName
928
+ _organisation = source._organisation
929
+ _organisationName = source._organisationName
894
930
  }
895
931
  }
896
932
 
@@ -905,6 +941,8 @@ extension BlueAccessCredential: SwiftProtobuf.Message, SwiftProtobuf._MessageImp
905
941
  return withExtendedLifetime(_storage) { (_storage: _StorageClass) in
906
942
  if _storage._credentialID == nil {return false}
907
943
  if _storage._credentialType == nil {return false}
944
+ if _storage._siteID == nil {return false}
945
+ if _storage._organisation == nil {return false}
908
946
  if let v = _storage._credentialID, !v.isInitialized {return false}
909
947
  if let v = _storage._validFrom, !v.isInitialized {return false}
910
948
  if let v = _storage._validTo, !v.isInitialized {return false}
@@ -930,6 +968,9 @@ extension BlueAccessCredential: SwiftProtobuf.Message, SwiftProtobuf._MessageImp
930
968
  case 7: try { try decoder.decodeSingularMessageField(value: &_storage._validTo) }()
931
969
  case 8: try { try decoder.decodeSingularMessageField(value: &_storage._validity) }()
932
970
  case 9: try { try decoder.decodeSingularBytesField(value: &_storage._privateKey) }()
971
+ case 10: try { try decoder.decodeSingularStringField(value: &_storage._receiverName) }()
972
+ case 11: try { try decoder.decodeSingularStringField(value: &_storage._organisation) }()
973
+ case 12: try { try decoder.decodeSingularStringField(value: &_storage._organisationName) }()
933
974
  default: break
934
975
  }
935
976
  }
@@ -969,6 +1010,15 @@ extension BlueAccessCredential: SwiftProtobuf.Message, SwiftProtobuf._MessageImp
969
1010
  try { if let v = _storage._privateKey {
970
1011
  try visitor.visitSingularBytesField(value: v, fieldNumber: 9)
971
1012
  } }()
1013
+ try { if let v = _storage._receiverName {
1014
+ try visitor.visitSingularStringField(value: v, fieldNumber: 10)
1015
+ } }()
1016
+ try { if let v = _storage._organisation {
1017
+ try visitor.visitSingularStringField(value: v, fieldNumber: 11)
1018
+ } }()
1019
+ try { if let v = _storage._organisationName {
1020
+ try visitor.visitSingularStringField(value: v, fieldNumber: 12)
1021
+ } }()
972
1022
  }
973
1023
  try unknownFields.traverse(visitor: &visitor)
974
1024
  }
@@ -987,6 +1037,9 @@ extension BlueAccessCredential: SwiftProtobuf.Message, SwiftProtobuf._MessageImp
987
1037
  if _storage._validTo != rhs_storage._validTo {return false}
988
1038
  if _storage._validity != rhs_storage._validity {return false}
989
1039
  if _storage._privateKey != rhs_storage._privateKey {return false}
1040
+ if _storage._receiverName != rhs_storage._receiverName {return false}
1041
+ if _storage._organisation != rhs_storage._organisation {return false}
1042
+ if _storage._organisationName != rhs_storage._organisationName {return false}
990
1043
  return true
991
1044
  }
992
1045
  if !storagesAreEqual {return false}