@blueid/access-proto 1.96.0 → 2.0.0-beta.1

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/BlueCore.proto CHANGED
@@ -263,6 +263,8 @@ message BlueCredentialId {
263
263
  required string id = 1 [ (nanopb).max_length = 10 ];
264
264
  }
265
265
 
266
+ // @TODO: Keep it until we have updated all places in both iOS and Android SDK.
267
+ // This should be renamed to BlueIdentityRole later on.
266
268
  enum BlueCredentialType {
267
269
  option (nanopb_enumopt).packed_enum = true;
268
270
 
package/BlueSDK.proto CHANGED
@@ -173,27 +173,28 @@ message BlueDeviceInfo {
173
173
  }
174
174
 
175
175
  ///////////////////////////////////////////////////////////////////////
176
- // AccessCredential
176
+ // Identity
177
177
  ///////////////////////////////////////////////////////////////////////
178
178
 
179
- message BlueAccessCredential {
180
- required BlueCredentialId credentialId = 1;
181
- required BlueCredentialType credentialType = 2;
179
+ message BlueIdentity {
180
+ required string identityId = 1;
181
+ // @TODO: Keep it until we have updated all places in both iOS and Android SDK.
182
+ // This should be renamed to BlueIdentityRole later on.
183
+ required BlueCredentialType role = 2;
182
184
  optional string name = 3;
183
185
  optional string description = 4;
184
- required int32 siteId = 5;
185
- optional string siteName = 6;
186
- optional BlueLocalTimestamp validFrom = 7;
187
- optional BlueLocalTimestamp validTo = 8;
188
- optional BlueLocalTimestamp validity = 9;
189
- optional bytes privateKey = 10;
190
- optional string receiverName = 11;
191
- required string organisation = 12;
192
- optional string organisationName = 13;
186
+ optional string receiverName = 5;
187
+ optional BlueLocalTimestamp validFrom = 6;
188
+ optional BlueLocalTimestamp validTo = 7;
189
+ required string organization = 8;
190
+ optional string organizationName = 9;
191
+ required int32 siteId = 10;
192
+ optional string siteName = 11;
193
+ optional bytes privateKey = 12;
193
194
  }
194
-
195
- message BlueAccessCredentialList {
196
- repeated BlueAccessCredential credentials = 1;
195
+
196
+ message BlueIdentitiesList {
197
+ repeated BlueIdentity identities = 1;
197
198
  }
198
199
 
199
200
  ///////////////////////////////////////////////////////////////////////
@@ -226,45 +227,107 @@ message BlueAccessObjectList {
226
227
  repeated BlueAccessObject objects = 1;
227
228
  }
228
229
 
229
- enum BlueRefreshOssSoCredentialStatus {
230
- Succeeded = 0x01;
231
- Failed = 0x02;
232
- NotNeeded = 0x03;
233
- Unsupported = 0x04;
230
+ message BlueHardwareInfo {
231
+ required string name = 1;
232
+ required string vendor = 2;
233
+ required string vendorName = 3;
234
+ required uint32 version = 4;
235
+ required BlueHardwareType type = 5;
236
+ }
237
+
238
+ message BlueSystemStatusExt {
239
+ required BlueSystemStatus status = 1;
240
+ optional bool newFirmwareVersionAvailable = 2;
241
+ optional bool newTestFirmwareVersionAvailable = 3;
242
+ optional bool newConfigurationAvailable = 4;
243
+ optional BlueHardwareInfo hardwareInfo = 5;
234
244
  }
235
245
 
236
- message BlueRefreshOssSoCredential {
237
- required BlueCredentialId credentialId = 1;
246
+ message BlueRefreshOssSoIdentity {
247
+ required string identityId = 1;
248
+ // @TODO: Keep it until we have updated all places in both iOS and Android SDK.
249
+ // This should be renamed to BlueRefreshOssSoIdentityStatus later on.
238
250
  required BlueRefreshOssSoCredentialStatus status = 2;
239
251
  optional BlueOssSoConfiguration configuration = 3;
240
252
  }
241
253
 
242
- message BlueRefreshOssSoCredentials {
243
- repeated BlueRefreshOssSoCredential credentials = 1;
254
+ message BlueRefreshOssSoIdentities {
255
+ repeated BlueRefreshOssSoIdentity identities = 1;
244
256
  }
245
257
 
246
- message BlueSynchronizeAccessCredential {
247
- required BlueCredentialId credentialId = 1;
258
+ message BlueSynchronizeIdentity {
259
+ required string identityId = 1;
248
260
  required BlueReturnCode returnCode = 2;
249
261
  optional string errorDescription = 3;
250
262
  }
251
263
 
252
- message BlueSynchronizeAccessCredentials {
253
- repeated BlueSynchronizeAccessCredential credentials = 1;
264
+ message BlueSynchronizeIdentities {
265
+ repeated BlueSynchronizeIdentity identities = 1;
254
266
  }
255
267
 
256
- message BlueHardwareInfo {
257
- required string name = 1;
258
- required string vendor = 2;
259
- required string vendorName = 3;
260
- required uint32 version = 4;
261
- required BlueHardwareType type = 5;
268
+ message BlueLegacyProvisioningRequest {
269
+ required string deviceId = 1;
270
+ required string soid = 2;
271
+ required string vendor = 3;
272
+ required BlueHardwareType hardwareType = 4;
273
+ required uint32 hardwareVersion = 5;
274
+ optional string hardwareSerialNumber = 6;
262
275
  }
263
276
 
264
- message BlueSystemStatusExt {
265
- required BlueSystemStatus status = 1;
266
- optional bool newFirmwareVersionAvailable = 2;
267
- optional bool newTestFirmwareVersionAvailable = 3;
268
- optional bool newConfigurationAvailable = 4;
269
- optional BlueHardwareInfo hardwareInfo = 5;
277
+ message BlueLegacyProvisioningResponse {
278
+ required string deviceId = 1;
279
+ required string objectId = 2;
280
+ required BlueSystemProvisioning provisioning = 3;
270
281
  }
282
+
283
+ ///////////////////////////////////////////////////////////////////////
284
+ // DEPRECATED - WILL BE REMOVED
285
+ ///////////////////////////////////////////////////////////////////////
286
+
287
+ // @TODO: Keep it until we have updated all places in both iOS and Android SDK.
288
+ message BlueAccessCredential {
289
+ required BlueCredentialId credentialId = 1;
290
+ required BlueCredentialType credentialType = 2;
291
+ optional string name = 3;
292
+ optional string description = 4;
293
+ required int32 siteId = 5;
294
+ optional string siteName = 6;
295
+ optional BlueLocalTimestamp validFrom = 7;
296
+ optional BlueLocalTimestamp validTo = 8;
297
+ optional BlueLocalTimestamp validity = 9;
298
+ optional bytes privateKey = 10;
299
+ optional string receiverName = 11;
300
+ required string organisation = 12;
301
+ optional string organisationName = 13;
302
+ }
303
+
304
+ message BlueAccessCredentialList {
305
+ repeated BlueAccessCredential credentials = 1;
306
+ }
307
+
308
+ enum BlueRefreshOssSoCredentialStatus {
309
+ Succeeded = 0x01;
310
+ Failed = 0x02;
311
+ NotNeeded = 0x03;
312
+ Unsupported = 0x04;
313
+ }
314
+
315
+ message BlueRefreshOssSoCredential {
316
+ required BlueCredentialId credentialId = 1;
317
+ required BlueRefreshOssSoCredentialStatus status = 2;
318
+ optional BlueOssSoConfiguration configuration = 3;
319
+ }
320
+
321
+ message BlueRefreshOssSoCredentials {
322
+ repeated BlueRefreshOssSoCredential credentials = 1;
323
+ }
324
+
325
+ message BlueSynchronizeAccessCredential {
326
+ required BlueCredentialId credentialId = 1;
327
+ required BlueReturnCode returnCode = 2;
328
+ optional string errorDescription = 3;
329
+ }
330
+
331
+ message BlueSynchronizeAccessCredentials {
332
+ repeated BlueSynchronizeAccessCredential credentials = 1;
333
+ }
@@ -610,6 +610,9 @@ export declare enum BlueWeekday {
610
610
  }
611
611
 
612
612
  /**
613
+ * @TODO: Keep it until we have updated all places in both iOS and Android SDK.
614
+ * This should be renamed to BlueIdentityRole later on.
615
+ *
613
616
  * @generated from enum BlueCredentialType
614
617
  */
615
618
  export declare enum BlueCredentialType {