@dxos/protocols 0.4.7-main.e015b9e → 0.4.7-main.ec8b8b7

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;AA6DhE,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAshB7C,MAAM,CAAC,MAAM,UAAU,GAAG,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,q0nGAAq0nG,CAAC,CAAC,CAAC;AAC93nG,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;AA6DhE,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAuhB7C,MAAM,CAAC,MAAM,UAAU,GAAG,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,61nGAA61nG,CAAC,CAAC,CAAC;AACt5nG,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.4.7-main.e015b9e",
3
+ "version": "0.4.7-main.ec8b8b7",
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.4.7-main.e015b9e",
37
- "@dxos/keys": "0.4.7-main.e015b9e",
38
- "@dxos/timeframe": "0.4.7-main.e015b9e",
39
- "@dxos/invariant": "0.4.7-main.e015b9e"
36
+ "@dxos/codec-protobuf": "0.4.7-main.ec8b8b7",
37
+ "@dxos/keys": "0.4.7-main.ec8b8b7",
38
+ "@dxos/timeframe": "0.4.7-main.ec8b8b7",
39
+ "@dxos/invariant": "0.4.7-main.ec8b8b7"
40
40
  },
41
41
  "devDependencies": {
42
42
  "glob": "~7.1.6"
@@ -160,9 +160,16 @@ enum DeviceKind {
160
160
 
161
161
  // TODO(burdon): Preferences (in database).
162
162
  message Device {
163
+ // TODO(nf): dedupe?
164
+ enum PresenceState {
165
+ OFFLINE = 0;
166
+ ONLINE = 1;
167
+ REMOVED = 2;
168
+ }
163
169
  dxos.keys.PublicKey device_key = 1;
164
170
  DeviceKind kind = 2;
165
171
  optional halo.credentials.DeviceProfileDocument profile = 3;
172
+ PresenceState presence = 4;
166
173
  }
167
174
 
168
175
  message QueryDevicesResponse {
@@ -481,6 +481,18 @@ export interface Device {
481
481
  * - proto3_optional = true
482
482
  */
483
483
  profile?: dxos_halo_credentials.DeviceProfileDocument;
484
+ presence: Device.PresenceState;
485
+ }
486
+ export namespace Device {
487
+ /**
488
+ * Defined in:
489
+ * {@link file://./../../../dxos/client/services.proto}
490
+ */
491
+ export enum PresenceState {
492
+ OFFLINE = 0,
493
+ ONLINE = 1,
494
+ REMOVED = 2
495
+ }
484
496
  }
485
497
  /**
486
498
  * Defined in:
@@ -78,14 +78,14 @@ export enum NullValue {
78
78
  export interface ListValue {
79
79
  values?: Value[];
80
80
  }
81
- export interface Any {
82
- type_url: string;
83
- value: Uint8Array;
84
- }
85
81
  export interface Timestamp {
86
82
  seconds: string;
87
83
  nanos: number;
88
84
  }
85
+ export interface Any {
86
+ type_url: string;
87
+ value: Uint8Array;
88
+ }
89
89
  export interface FileDescriptorSet {
90
90
  file?: FileDescriptorProto[];
91
91
  }