@dxos/protocols 0.5.3-main.4b570d7 → 0.5.3-main.4e877aa

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;AA+DhE,OAAO,aAAa,MAAM,kBAAkB,CAAC;AA0iB7C,MAAM,CAAC,MAAM,UAAU,GAAG,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,y/zGAAy/zG,CAAC,CAAC,CAAC;AAClj0G,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;AA+DhE,OAAO,aAAa,MAAM,kBAAkB,CAAC;AA2iB7C,MAAM,CAAC,MAAM,UAAU,GAAG,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,4o0GAA4o0G,CAAC,CAAC,CAAC;AACrs0G,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.5.3-main.4b570d7",
3
+ "version": "0.5.3-main.4e877aa",
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.5.3-main.4b570d7",
37
- "@dxos/invariant": "0.5.3-main.4b570d7",
38
- "@dxos/timeframe": "0.5.3-main.4b570d7",
39
- "@dxos/keys": "0.5.3-main.4b570d7"
36
+ "@dxos/codec-protobuf": "0.5.3-main.4e877aa",
37
+ "@dxos/keys": "0.5.3-main.4e877aa",
38
+ "@dxos/invariant": "0.5.3-main.4e877aa",
39
+ "@dxos/timeframe": "0.5.3-main.4e877aa"
40
40
  },
41
41
  "devDependencies": {
42
42
  "glob": "~7.1.6"
@@ -14,14 +14,13 @@ message FunctionsConfig {
14
14
  optional string manifest = 2;
15
15
  }
16
16
 
17
- // TODO(burdon): Reconcile with typedefs.
18
17
  message Function {
19
- string name = 1;
18
+ string id = 1;
19
+ string route = 2;
20
20
  }
21
21
 
22
22
  message RegisterRequest {
23
23
  string endpoint = 1;
24
- repeated Function functions = 2;
25
24
  }
26
25
 
27
26
  message RegisterResponse {
@@ -29,11 +28,17 @@ message RegisterResponse {
29
28
  string endpoint = 2;
30
29
  }
31
30
 
31
+ message UpdateRegistrationRequest {
32
+ string registration_id = 1;
33
+ repeated Function functions = 2;
34
+ }
35
+
32
36
  message UnregisterRequest {
33
37
  string registration_id = 1;
34
38
  }
35
39
 
36
40
  service FunctionRegistryService {
37
41
  rpc Register(RegisterRequest) returns (RegisterResponse) {}
42
+ rpc UpdateRegistration(UpdateRegistrationRequest) returns (google.protobuf.Empty) {}
38
43
  rpc Unregister(UnregisterRequest) returns (google.protobuf.Empty) {}
39
44
  }
@@ -170,13 +170,13 @@ message DeviceProfileDocument {
170
170
 
171
171
  optional string platform = 2;
172
172
  optional string platform_version = 3;
173
- optional string architecture = 4;
173
+ optional string architecture = 4;
174
174
  optional string os = 5;
175
175
  optional string os_version = 6;
176
176
  optional DeviceType type = 7;
177
177
  }
178
178
 
179
- /// [ASSERTION]: Sets device profile information.
179
+ /// [ASSERTION]: Sets device profile information.
180
180
  message DeviceProfile {
181
181
  DeviceProfileDocument profile = 1;
182
182
  }
@@ -82,7 +82,8 @@ export interface FunctionsConfig {
82
82
  * {@link file://./../../../dxos/agent/functions.proto}
83
83
  */
84
84
  export interface Function {
85
- name: string;
85
+ id: string;
86
+ route: string;
86
87
  }
87
88
  /**
88
89
  * Defined in:
@@ -90,7 +91,6 @@ export interface Function {
90
91
  */
91
92
  export interface RegisterRequest {
92
93
  endpoint: string;
93
- functions?: Function[];
94
94
  }
95
95
  /**
96
96
  * Defined in:
@@ -100,6 +100,14 @@ export interface RegisterResponse {
100
100
  registrationId: string;
101
101
  endpoint: string;
102
102
  }
103
+ /**
104
+ * Defined in:
105
+ * {@link file://./../../../dxos/agent/functions.proto}
106
+ */
107
+ export interface UpdateRegistrationRequest {
108
+ registrationId: string;
109
+ functions?: Function[];
110
+ }
103
111
  /**
104
112
  * Defined in:
105
113
  * {@link file://./../../../dxos/agent/functions.proto}
@@ -113,5 +121,6 @@ export interface UnregisterRequest {
113
121
  */
114
122
  export interface FunctionRegistryService {
115
123
  register: (request: RegisterRequest, options?: RequestOptions) => Promise<RegisterResponse>;
124
+ updateRegistration: (request: UpdateRegistrationRequest, options?: RequestOptions) => Promise<void>;
116
125
  unregister: (request: UnregisterRequest, options?: RequestOptions) => Promise<void>;
117
126
  }