@blueid/access-proto 0.29.0 → 0.32.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,11 +63,12 @@ message BlueAccessCredential {
63
63
  required BlueCredentialId credentialId = 1;
64
64
  required BlueCredentialType credentialType = 2;
65
65
  optional string name = 3;
66
- optional string siteName = 4;
67
- optional BlueLocalTimestamp validFrom = 5;
68
- optional BlueLocalTimestamp validTo = 6;
69
- optional BlueLocalTimestamp validity = 7;
70
- optional bytes privateKey = 8;
66
+ optional int32 siteId = 4;
67
+ optional string siteName = 5;
68
+ optional BlueLocalTimestamp validFrom = 6;
69
+ optional BlueLocalTimestamp validTo = 7;
70
+ optional BlueLocalTimestamp validity = 8;
71
+ optional bytes privateKey = 9;
71
72
  }
72
73
 
73
74
  message BlueAccessCredentialList {
@@ -215,27 +215,32 @@ export declare class BlueAccessCredential extends Message<BlueAccessCredential>
215
215
  name?: string;
216
216
 
217
217
  /**
218
- * @generated from field: optional string siteName = 4;
218
+ * @generated from field: optional int32 siteId = 4;
219
+ */
220
+ siteId?: number;
221
+
222
+ /**
223
+ * @generated from field: optional string siteName = 5;
219
224
  */
220
225
  siteName?: string;
221
226
 
222
227
  /**
223
- * @generated from field: optional BlueLocalTimestamp validFrom = 5;
228
+ * @generated from field: optional BlueLocalTimestamp validFrom = 6;
224
229
  */
225
230
  validFrom?: BlueLocalTimestamp;
226
231
 
227
232
  /**
228
- * @generated from field: optional BlueLocalTimestamp validTo = 6;
233
+ * @generated from field: optional BlueLocalTimestamp validTo = 7;
229
234
  */
230
235
  validTo?: BlueLocalTimestamp;
231
236
 
232
237
  /**
233
- * @generated from field: optional BlueLocalTimestamp validity = 7;
238
+ * @generated from field: optional BlueLocalTimestamp validity = 8;
234
239
  */
235
240
  validity?: BlueLocalTimestamp;
236
241
 
237
242
  /**
238
- * @generated from field: optional bytes privateKey = 8;
243
+ * @generated from field: optional bytes privateKey = 9;
239
244
  */
240
245
  privateKey?: Uint8Array;
241
246
 
package/cjs/BlueSDK_pb.js CHANGED
@@ -117,11 +117,12 @@ const BlueAccessCredential = import_protobuf.proto2.makeMessageType(
117
117
  { no: 1, name: "credentialId", kind: "message", T: import_BlueCore_pb.BlueCredentialId },
118
118
  { no: 2, name: "credentialType", kind: "enum", T: import_protobuf.proto2.getEnumType(import_BlueCore_pb.BlueCredentialType) },
119
119
  { no: 3, name: "name", kind: "scalar", T: 9, opt: true },
120
- { no: 4, name: "siteName", kind: "scalar", T: 9, opt: true },
121
- { no: 5, name: "validFrom", kind: "message", T: import_BlueCore_pb.BlueLocalTimestamp, opt: true },
122
- { no: 6, name: "validTo", kind: "message", T: import_BlueCore_pb.BlueLocalTimestamp, opt: true },
123
- { no: 7, name: "validity", kind: "message", T: import_BlueCore_pb.BlueLocalTimestamp, opt: true },
124
- { no: 8, name: "privateKey", kind: "scalar", T: 12, opt: true }
120
+ { no: 4, name: "siteId", kind: "scalar", T: 5, opt: true },
121
+ { no: 5, name: "siteName", kind: "scalar", T: 9, opt: true },
122
+ { no: 6, name: "validFrom", kind: "message", T: import_BlueCore_pb.BlueLocalTimestamp, opt: true },
123
+ { no: 7, name: "validTo", kind: "message", T: import_BlueCore_pb.BlueLocalTimestamp, opt: true },
124
+ { no: 8, name: "validity", kind: "message", T: import_BlueCore_pb.BlueLocalTimestamp, opt: true },
125
+ { no: 9, name: "privateKey", kind: "scalar", T: 12, opt: true }
125
126
  ]
126
127
  );
127
128
  const BlueAccessCredentialList = import_protobuf.proto2.makeMessageType(
@@ -215,27 +215,32 @@ export declare class BlueAccessCredential extends Message<BlueAccessCredential>
215
215
  name?: string;
216
216
 
217
217
  /**
218
- * @generated from field: optional string siteName = 4;
218
+ * @generated from field: optional int32 siteId = 4;
219
+ */
220
+ siteId?: number;
221
+
222
+ /**
223
+ * @generated from field: optional string siteName = 5;
219
224
  */
220
225
  siteName?: string;
221
226
 
222
227
  /**
223
- * @generated from field: optional BlueLocalTimestamp validFrom = 5;
228
+ * @generated from field: optional BlueLocalTimestamp validFrom = 6;
224
229
  */
225
230
  validFrom?: BlueLocalTimestamp;
226
231
 
227
232
  /**
228
- * @generated from field: optional BlueLocalTimestamp validTo = 6;
233
+ * @generated from field: optional BlueLocalTimestamp validTo = 7;
229
234
  */
230
235
  validTo?: BlueLocalTimestamp;
231
236
 
232
237
  /**
233
- * @generated from field: optional BlueLocalTimestamp validity = 7;
238
+ * @generated from field: optional BlueLocalTimestamp validity = 8;
234
239
  */
235
240
  validity?: BlueLocalTimestamp;
236
241
 
237
242
  /**
238
- * @generated from field: optional bytes privateKey = 8;
243
+ * @generated from field: optional bytes privateKey = 9;
239
244
  */
240
245
  privateKey?: Uint8Array;
241
246
 
package/es/BlueSDK_pb.js CHANGED
@@ -80,11 +80,12 @@ 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: "siteName", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
84
- { no: 5, name: "validFrom", kind: "message", T: BlueLocalTimestamp, opt: true },
85
- { no: 6, name: "validTo", kind: "message", T: BlueLocalTimestamp, opt: true },
86
- { no: 7, name: "validity", kind: "message", T: BlueLocalTimestamp, opt: true },
87
- { no: 8, name: "privateKey", kind: "scalar", T: 12 /* ScalarType.BYTES */, opt: true },
83
+ { no: 4, name: "siteId", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
84
+ { no: 5, name: "siteName", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
85
+ { no: 6, name: "validFrom", kind: "message", T: BlueLocalTimestamp, opt: true },
86
+ { no: 7, name: "validTo", kind: "message", T: BlueLocalTimestamp, opt: true },
87
+ { no: 8, name: "validity", kind: "message", T: BlueLocalTimestamp, opt: true },
88
+ { no: 9, name: "privateKey", kind: "scalar", T: 12 /* ScalarType.BYTES */, opt: true },
88
89
  ],
89
90
  );
90
91
 
@@ -55,6 +55,8 @@ typedef struct BlueAccessCredential {
55
55
  BlueCredentialId_t credentialId;
56
56
  BlueCredentialType_t credentialType;
57
57
  pb_callback_t name;
58
+ bool has_siteId;
59
+ int32_t siteId;
58
60
  pb_callback_t siteName;
59
61
  bool has_validFrom;
60
62
  BlueLocalTimestamp_t validFrom;
@@ -104,7 +106,7 @@ extern "C" {
104
106
  #define BLUEDEVICEDETAILSBLUETOOTH_INIT_DEFAULT {0, 0, 0}
105
107
  #define BLUEDEVICEDETAILSUWB_INIT_DEFAULT {0}
106
108
  #define BLUEDEVICEINFO_INIT_DEFAULT {_BLUEDEVICETYPE_MIN, {{NULL}, NULL}, 0, false, BLUEBLEMANUFACTURERINFO_INIT_DEFAULT, 0, {BLUEDEVICEDETAILSBLUETOOTH_INIT_DEFAULT}}
107
- #define BLUEACCESSCREDENTIAL_INIT_DEFAULT {BLUECREDENTIALID_INIT_DEFAULT, _BLUECREDENTIALTYPE_MIN, {{NULL}, NULL}, {{NULL}, NULL}, false, BLUELOCALTIMESTAMP_INIT_DEFAULT, false, BLUELOCALTIMESTAMP_INIT_DEFAULT, false, BLUELOCALTIMESTAMP_INIT_DEFAULT, {{NULL}, NULL}}
109
+ #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}}
108
110
  #define BLUEACCESSCREDENTIALLIST_INIT_DEFAULT {{{NULL}, NULL}}
109
111
  #define BLUEACCESSDEVICE_INIT_DEFAULT {{{NULL}, NULL}, {{NULL}, NULL}}
110
112
  #define BLUEACCESSDEVICELIST_INIT_DEFAULT {{{NULL}, NULL}}
@@ -112,7 +114,7 @@ extern "C" {
112
114
  #define BLUEDEVICEDETAILSBLUETOOTH_INIT_ZERO {0, 0, 0}
113
115
  #define BLUEDEVICEDETAILSUWB_INIT_ZERO {0}
114
116
  #define BLUEDEVICEINFO_INIT_ZERO {_BLUEDEVICETYPE_MIN, {{NULL}, NULL}, 0, false, BLUEBLEMANUFACTURERINFO_INIT_ZERO, 0, {BLUEDEVICEDETAILSBLUETOOTH_INIT_ZERO}}
115
- #define BLUEACCESSCREDENTIAL_INIT_ZERO {BLUECREDENTIALID_INIT_ZERO, _BLUECREDENTIALTYPE_MIN, {{NULL}, NULL}, {{NULL}, NULL}, false, BLUELOCALTIMESTAMP_INIT_ZERO, false, BLUELOCALTIMESTAMP_INIT_ZERO, false, BLUELOCALTIMESTAMP_INIT_ZERO, {{NULL}, NULL}}
117
+ #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}}
116
118
  #define BLUEACCESSCREDENTIALLIST_INIT_ZERO {{{NULL}, NULL}}
117
119
  #define BLUEACCESSDEVICE_INIT_ZERO {{{NULL}, NULL}, {{NULL}, NULL}}
118
120
  #define BLUEACCESSDEVICELIST_INIT_ZERO {{{NULL}, NULL}}
@@ -139,11 +141,12 @@ extern "C" {
139
141
  #define BLUEACCESSCREDENTIAL_CREDENTIALID_TAG 1
140
142
  #define BLUEACCESSCREDENTIAL_CREDENTIALTYPE_TAG 2
141
143
  #define BLUEACCESSCREDENTIAL_NAME_TAG 3
142
- #define BLUEACCESSCREDENTIAL_SITENAME_TAG 4
143
- #define BLUEACCESSCREDENTIAL_VALIDFROM_TAG 5
144
- #define BLUEACCESSCREDENTIAL_VALIDTO_TAG 6
145
- #define BLUEACCESSCREDENTIAL_VALIDITY_TAG 7
146
- #define BLUEACCESSCREDENTIAL_PRIVATEKEY_TAG 8
144
+ #define BLUEACCESSCREDENTIAL_SITEID_TAG 4
145
+ #define BLUEACCESSCREDENTIAL_SITENAME_TAG 5
146
+ #define BLUEACCESSCREDENTIAL_VALIDFROM_TAG 6
147
+ #define BLUEACCESSCREDENTIAL_VALIDTO_TAG 7
148
+ #define BLUEACCESSCREDENTIAL_VALIDITY_TAG 8
149
+ #define BLUEACCESSCREDENTIAL_PRIVATEKEY_TAG 9
147
150
  #define BLUEACCESSCREDENTIALLIST_CREDENTIALS_TAG 1
148
151
  #define BLUEACCESSDEVICE_DEVICEID_TAG 1
149
152
  #define BLUEACCESSDEVICE_OBJECTNAME_TAG 2
@@ -191,11 +194,12 @@ X(a, STATIC, ONEOF, MESSAGE, (details,uwb,details.uwb), 6)
191
194
  X(a, STATIC, REQUIRED, MESSAGE, credentialId, 1) \
192
195
  X(a, STATIC, REQUIRED, UENUM, credentialType, 2) \
193
196
  X(a, CALLBACK, OPTIONAL, STRING, name, 3) \
194
- X(a, CALLBACK, OPTIONAL, STRING, siteName, 4) \
195
- X(a, STATIC, OPTIONAL, MESSAGE, validFrom, 5) \
196
- X(a, STATIC, OPTIONAL, MESSAGE, validTo, 6) \
197
- X(a, STATIC, OPTIONAL, MESSAGE, validity, 7) \
198
- X(a, CALLBACK, OPTIONAL, BYTES, privateKey, 8)
197
+ X(a, STATIC, OPTIONAL, INT32, siteId, 4) \
198
+ X(a, CALLBACK, OPTIONAL, STRING, siteName, 5) \
199
+ X(a, STATIC, OPTIONAL, MESSAGE, validFrom, 6) \
200
+ X(a, STATIC, OPTIONAL, MESSAGE, validTo, 7) \
201
+ X(a, STATIC, OPTIONAL, MESSAGE, validity, 8) \
202
+ X(a, CALLBACK, OPTIONAL, BYTES, privateKey, 9)
199
203
  #define BLUEACCESSCREDENTIAL_CALLBACK pb_default_field_callback
200
204
  #define BLUEACCESSCREDENTIAL_DEFAULT (const pb_byte_t*)"\x10\x01\x00"
201
205
  #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.29.0",
3
+ "version": "0.32.0",
4
4
  "description": "BlueID Access Proto files",
5
5
  "author": "BlueID GmbH",
6
6
  "main": "cjs/index.js",
@@ -348,6 +348,15 @@ public struct BlueAccessCredential {
348
348
  /// Clears the value of `name`. Subsequent reads from it will return its default value.
349
349
  public mutating func clearName() {_uniqueStorage()._name = nil}
350
350
 
351
+ public var siteID: Int32 {
352
+ get {return _storage._siteID ?? 0}
353
+ set {_uniqueStorage()._siteID = newValue}
354
+ }
355
+ /// Returns true if `siteID` has been explicitly set.
356
+ public var hasSiteID: Bool {return _storage._siteID != nil}
357
+ /// Clears the value of `siteID`. Subsequent reads from it will return its default value.
358
+ public mutating func clearSiteID() {_uniqueStorage()._siteID = nil}
359
+
351
360
  public var siteName: String {
352
361
  get {return _storage._siteName ?? String()}
353
362
  set {_uniqueStorage()._siteName = newValue}
@@ -772,17 +781,19 @@ extension BlueAccessCredential: SwiftProtobuf.Message, SwiftProtobuf._MessageImp
772
781
  1: .same(proto: "credentialId"),
773
782
  2: .same(proto: "credentialType"),
774
783
  3: .same(proto: "name"),
775
- 4: .same(proto: "siteName"),
776
- 5: .same(proto: "validFrom"),
777
- 6: .same(proto: "validTo"),
778
- 7: .same(proto: "validity"),
779
- 8: .same(proto: "privateKey"),
784
+ 4: .same(proto: "siteId"),
785
+ 5: .same(proto: "siteName"),
786
+ 6: .same(proto: "validFrom"),
787
+ 7: .same(proto: "validTo"),
788
+ 8: .same(proto: "validity"),
789
+ 9: .same(proto: "privateKey"),
780
790
  ]
781
791
 
782
792
  fileprivate class _StorageClass {
783
793
  var _credentialID: BlueCredentialId? = nil
784
794
  var _credentialType: BlueCredentialType? = nil
785
795
  var _name: String? = nil
796
+ var _siteID: Int32? = nil
786
797
  var _siteName: String? = nil
787
798
  var _validFrom: BlueLocalTimestamp? = nil
788
799
  var _validTo: BlueLocalTimestamp? = nil
@@ -797,6 +808,7 @@ extension BlueAccessCredential: SwiftProtobuf.Message, SwiftProtobuf._MessageImp
797
808
  _credentialID = source._credentialID
798
809
  _credentialType = source._credentialType
799
810
  _name = source._name
811
+ _siteID = source._siteID
800
812
  _siteName = source._siteName
801
813
  _validFrom = source._validFrom
802
814
  _validTo = source._validTo
@@ -835,11 +847,12 @@ extension BlueAccessCredential: SwiftProtobuf.Message, SwiftProtobuf._MessageImp
835
847
  case 1: try { try decoder.decodeSingularMessageField(value: &_storage._credentialID) }()
836
848
  case 2: try { try decoder.decodeSingularEnumField(value: &_storage._credentialType) }()
837
849
  case 3: try { try decoder.decodeSingularStringField(value: &_storage._name) }()
838
- case 4: try { try decoder.decodeSingularStringField(value: &_storage._siteName) }()
839
- case 5: try { try decoder.decodeSingularMessageField(value: &_storage._validFrom) }()
840
- case 6: try { try decoder.decodeSingularMessageField(value: &_storage._validTo) }()
841
- case 7: try { try decoder.decodeSingularMessageField(value: &_storage._validity) }()
842
- case 8: try { try decoder.decodeSingularBytesField(value: &_storage._privateKey) }()
850
+ case 4: try { try decoder.decodeSingularInt32Field(value: &_storage._siteID) }()
851
+ case 5: try { try decoder.decodeSingularStringField(value: &_storage._siteName) }()
852
+ case 6: try { try decoder.decodeSingularMessageField(value: &_storage._validFrom) }()
853
+ case 7: try { try decoder.decodeSingularMessageField(value: &_storage._validTo) }()
854
+ case 8: try { try decoder.decodeSingularMessageField(value: &_storage._validity) }()
855
+ case 9: try { try decoder.decodeSingularBytesField(value: &_storage._privateKey) }()
843
856
  default: break
844
857
  }
845
858
  }
@@ -861,20 +874,23 @@ extension BlueAccessCredential: SwiftProtobuf.Message, SwiftProtobuf._MessageImp
861
874
  try { if let v = _storage._name {
862
875
  try visitor.visitSingularStringField(value: v, fieldNumber: 3)
863
876
  } }()
877
+ try { if let v = _storage._siteID {
878
+ try visitor.visitSingularInt32Field(value: v, fieldNumber: 4)
879
+ } }()
864
880
  try { if let v = _storage._siteName {
865
- try visitor.visitSingularStringField(value: v, fieldNumber: 4)
881
+ try visitor.visitSingularStringField(value: v, fieldNumber: 5)
866
882
  } }()
867
883
  try { if let v = _storage._validFrom {
868
- try visitor.visitSingularMessageField(value: v, fieldNumber: 5)
884
+ try visitor.visitSingularMessageField(value: v, fieldNumber: 6)
869
885
  } }()
870
886
  try { if let v = _storage._validTo {
871
- try visitor.visitSingularMessageField(value: v, fieldNumber: 6)
887
+ try visitor.visitSingularMessageField(value: v, fieldNumber: 7)
872
888
  } }()
873
889
  try { if let v = _storage._validity {
874
- try visitor.visitSingularMessageField(value: v, fieldNumber: 7)
890
+ try visitor.visitSingularMessageField(value: v, fieldNumber: 8)
875
891
  } }()
876
892
  try { if let v = _storage._privateKey {
877
- try visitor.visitSingularBytesField(value: v, fieldNumber: 8)
893
+ try visitor.visitSingularBytesField(value: v, fieldNumber: 9)
878
894
  } }()
879
895
  }
880
896
  try unknownFields.traverse(visitor: &visitor)
@@ -888,6 +904,7 @@ extension BlueAccessCredential: SwiftProtobuf.Message, SwiftProtobuf._MessageImp
888
904
  if _storage._credentialID != rhs_storage._credentialID {return false}
889
905
  if _storage._credentialType != rhs_storage._credentialType {return false}
890
906
  if _storage._name != rhs_storage._name {return false}
907
+ if _storage._siteID != rhs_storage._siteID {return false}
891
908
  if _storage._siteName != rhs_storage._siteName {return false}
892
909
  if _storage._validFrom != rhs_storage._validFrom {return false}
893
910
  if _storage._validTo != rhs_storage._validTo {return false}