@dxos/protocols 0.3.8-main.c3b295a → 0.3.8-main.f4e0086

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;AA4DhE,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAmgB7C,MAAM,CAAC,MAAM,UAAU,GAAG,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,y09FAAy09F,CAAC,CAAC,CAAC;AACl49F,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;AA4DhE,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAqgB7C,MAAM,CAAC,MAAM,UAAU,GAAG,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,+99FAA+99F,CAAC,CAAC,CAAC;AACxh+F,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.8-main.c3b295a",
3
+ "version": "0.3.8-main.f4e0086",
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/invariant": "0.3.8-main.c3b295a",
37
- "@dxos/codec-protobuf": "0.3.8-main.c3b295a",
38
- "@dxos/keys": "0.3.8-main.c3b295a",
39
- "@dxos/timeframe": "0.3.8-main.c3b295a"
36
+ "@dxos/codec-protobuf": "0.3.8-main.f4e0086",
37
+ "@dxos/invariant": "0.3.8-main.f4e0086",
38
+ "@dxos/timeframe": "0.3.8-main.f4e0086",
39
+ "@dxos/keys": "0.3.8-main.f4e0086"
40
40
  },
41
41
  "devDependencies": {
42
42
  "glob": "~7.1.6"
@@ -4,6 +4,9 @@
4
4
 
5
5
  syntax = "proto3";
6
6
 
7
+ import "google/protobuf/empty.proto";
8
+ import "google/protobuf/timestamp.proto";
9
+
7
10
  package dxos.mesh.teleport.control;
8
11
 
9
12
  message RegisterExtensionRequest {
@@ -11,9 +14,17 @@ message RegisterExtensionRequest {
11
14
  string name = 1;
12
15
  }
13
16
 
17
+ message ControlHeartbeatRequest {
18
+ google.protobuf.Timestamp request_timestamp = 1;
19
+ }
20
+
21
+ message ControlHeartbeatResponse {
22
+ google.protobuf.Timestamp request_timestamp = 1;
23
+ }
24
+
25
+
14
26
  /// Controls the lifycycle of the teleport session and its exentsions.
15
27
  service ControlService {
16
28
  rpc RegisterExtension (RegisterExtensionRequest) returns (google.protobuf.Empty);
17
-
18
- rpc Heartbeat(google.protobuf.Empty) returns (google.protobuf.Empty);
29
+ rpc Heartbeat(ControlHeartbeatRequest) returns (ControlHeartbeatResponse);
19
30
  }
@@ -68,6 +68,20 @@ export interface RegisterExtensionRequest {
68
68
  */
69
69
  name: string;
70
70
  }
71
+ /**
72
+ * Defined in:
73
+ * {@link file://./../../../../dxos/mesh/teleport/control.proto}
74
+ */
75
+ export interface ControlHeartbeatRequest {
76
+ requestTimestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
77
+ }
78
+ /**
79
+ * Defined in:
80
+ * {@link file://./../../../../dxos/mesh/teleport/control.proto}
81
+ */
82
+ export interface ControlHeartbeatResponse {
83
+ requestTimestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
84
+ }
71
85
  /**
72
86
  * Controls the lifycycle of the teleport session and its exentsions.
73
87
  *
@@ -76,5 +90,5 @@ export interface RegisterExtensionRequest {
76
90
  */
77
91
  export interface ControlService {
78
92
  registerExtension: (request: RegisterExtensionRequest, options?: RequestOptions) => Promise<void>;
79
- heartbeat: (request: void, options?: RequestOptions) => Promise<void>;
93
+ heartbeat: (request: ControlHeartbeatRequest, options?: RequestOptions) => Promise<ControlHeartbeatResponse>;
80
94
  }
@@ -77,14 +77,14 @@ export enum NullValue {
77
77
  export interface ListValue {
78
78
  values?: Value[];
79
79
  }
80
- export interface Any {
81
- type_url: string;
82
- value: Uint8Array;
83
- }
84
80
  export interface Timestamp {
85
81
  seconds: string;
86
82
  nanos: number;
87
83
  }
84
+ export interface Any {
85
+ type_url: string;
86
+ value: Uint8Array;
87
+ }
88
88
  export interface FileDescriptorSet {
89
89
  file?: FileDescriptorProto[];
90
90
  }