@dxos/protocols 0.3.2-main.d77d2bc → 0.3.2-main.ec06501

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.
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/proto/gen/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAwDhE,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAuf7C,MAAM,CAAC,MAAM,UAAU,GAAG,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,ml5FAAml5F,CAAC,CAAC,CAAC;AAC5o5F,MAAM,CAAC,MAAM,MAAM,GAAG,MAAM,CAAC,QAAQ,CAAkB,UAAU,EAAE,aAAa,CAAC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/proto/gen/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAwDhE,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAwf7C,MAAM,CAAC,MAAM,UAAU,GAAG,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,sj6FAAsj6F,CAAC,CAAC,CAAC;AAC/m6F,MAAM,CAAC,MAAM,MAAM,GAAG,MAAM,CAAC,QAAQ,CAAkB,UAAU,EAAE,aAAa,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dxos/protocols",
3
- "version": "0.3.2-main.d77d2bc",
3
+ "version": "0.3.2-main.ec06501",
4
4
  "description": "Protobuf definitions for DXOS protocols.",
5
5
  "homepage": "https://dxos.org",
6
6
  "bugs": "https://github.com/dxos/dxos/issues",
@@ -33,10 +33,10 @@
33
33
  "src"
34
34
  ],
35
35
  "dependencies": {
36
- "@dxos/codec-protobuf": "0.3.2-main.d77d2bc",
37
- "@dxos/invariant": "0.3.2-main.d77d2bc",
38
- "@dxos/keys": "0.3.2-main.d77d2bc",
39
- "@dxos/timeframe": "0.3.2-main.d77d2bc"
36
+ "@dxos/codec-protobuf": "0.3.2-main.ec06501",
37
+ "@dxos/invariant": "0.3.2-main.ec06501",
38
+ "@dxos/keys": "0.3.2-main.ec06501",
39
+ "@dxos/timeframe": "0.3.2-main.ec06501"
40
40
  },
41
41
  "devDependencies": {
42
42
  "glob": "~7.1.6"
@@ -129,7 +129,7 @@ enum DeviceKind {
129
129
  message Device {
130
130
  dxos.keys.PublicKey device_key = 1;
131
131
  DeviceKind kind = 2;
132
- optional halo.credentials.ProfileDocument profile = 3;
132
+ optional halo.credentials.DeviceProfileDocument profile = 3;
133
133
  }
134
134
 
135
135
  message QueryDevicesResponse {
@@ -137,7 +137,7 @@ message QueryDevicesResponse {
137
137
  }
138
138
 
139
139
  service DevicesService {
140
- rpc UpdateDevice(halo.credentials.ProfileDocument) returns (Device);
140
+ rpc UpdateDevice(halo.credentials.DeviceProfileDocument) returns (Device);
141
141
  rpc QueryDevices(google.protobuf.Empty) returns (stream QueryDevicesResponse);
142
142
  }
143
143
 
@@ -144,10 +144,20 @@ message IdentityProfile {
144
144
  ProfileDocument profile = 1;
145
145
  }
146
146
 
147
+ message DeviceProfileDocument {
148
+ // TODO(mykola): Use for user defined label.
149
+ optional string label = 1;
150
+
151
+ optional string platform = 2;
152
+ optional string platform_version = 3;
153
+ optional string architecture = 4;
154
+ optional string os = 5;
155
+ optional string os_version = 6;
156
+ }
157
+
147
158
  /// [ASSERTION]: Sets device profile information.
148
159
  message DeviceProfile {
149
- dxos.keys.PublicKey device_key = 1;
150
- ProfileDocument profile = 2;
160
+ DeviceProfileDocument profile = 1;
151
161
  }
152
162
 
153
163
  // [ASSERTION]: Identity is authorized to access a KUBE.
@@ -395,7 +395,7 @@ export interface Device {
395
395
  * Options:
396
396
  * - proto3_optional = true
397
397
  */
398
- profile?: dxos_halo_credentials.ProfileDocument;
398
+ profile?: dxos_halo_credentials.DeviceProfileDocument;
399
399
  }
400
400
  /**
401
401
  * Defined in:
@@ -409,7 +409,7 @@ export interface QueryDevicesResponse {
409
409
  * {@link file://./../../../dxos/client/services.proto}
410
410
  */
411
411
  export interface DevicesService {
412
- updateDevice: (request: dxos_halo_credentials.ProfileDocument) => Promise<Device>;
412
+ updateDevice: (request: dxos_halo_credentials.DeviceProfileDocument) => Promise<Device>;
413
413
  queryDevices: (request: void) => Stream<QueryDevicesResponse>;
414
414
  }
415
415
  /**
@@ -216,6 +216,42 @@ export interface ProfileDocument {
216
216
  export interface IdentityProfile {
217
217
  profile: ProfileDocument;
218
218
  }
219
+ /**
220
+ * Defined in:
221
+ * {@link file://./../../../dxos/halo/credentials.proto}
222
+ */
223
+ export interface DeviceProfileDocument {
224
+ /**
225
+ * Options:
226
+ * - proto3_optional = true
227
+ */
228
+ label?: string;
229
+ /**
230
+ * Options:
231
+ * - proto3_optional = true
232
+ */
233
+ platform?: string;
234
+ /**
235
+ * Options:
236
+ * - proto3_optional = true
237
+ */
238
+ platformVersion?: string;
239
+ /**
240
+ * Options:
241
+ * - proto3_optional = true
242
+ */
243
+ architecture?: string;
244
+ /**
245
+ * Options:
246
+ * - proto3_optional = true
247
+ */
248
+ os?: string;
249
+ /**
250
+ * Options:
251
+ * - proto3_optional = true
252
+ */
253
+ osVersion?: string;
254
+ }
219
255
  /**
220
256
  * [ASSERTION]: Sets device profile information.
221
257
  *
@@ -223,8 +259,7 @@ export interface IdentityProfile {
223
259
  * {@link file://./../../../dxos/halo/credentials.proto}
224
260
  */
225
261
  export interface DeviceProfile {
226
- deviceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
227
- profile: ProfileDocument;
262
+ profile: DeviceProfileDocument;
228
263
  }
229
264
  /**
230
265
  * Defined in: