@dxos/protocols 0.5.3-main.c3feabc → 0.5.3-main.cb47aab

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,ug0GAAug0G,CAAC,CAAC,CAAC;AAChk0G,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.c3feabc",
3
+ "version": "0.5.3-main.cb47aab",
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.c3feabc",
37
- "@dxos/invariant": "0.5.3-main.c3feabc",
38
- "@dxos/keys": "0.5.3-main.c3feabc",
39
- "@dxos/timeframe": "0.5.3-main.c3feabc"
36
+ "@dxos/codec-protobuf": "0.5.3-main.cb47aab",
37
+ "@dxos/invariant": "0.5.3-main.cb47aab",
38
+ "@dxos/keys": "0.5.3-main.cb47aab",
39
+ "@dxos/timeframe": "0.5.3-main.cb47aab"
40
40
  },
41
41
  "devDependencies": {
42
42
  "glob": "~7.1.6"
@@ -16,12 +16,11 @@ message FunctionsConfig {
16
16
 
17
17
  message Function {
18
18
  string id = 1;
19
- string path = 2;
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
  }
@@ -83,7 +83,7 @@ export interface FunctionsConfig {
83
83
  */
84
84
  export interface Function {
85
85
  id: string;
86
- path: string;
86
+ route: string;
87
87
  }
88
88
  /**
89
89
  * Defined in:
@@ -91,7 +91,6 @@ export interface Function {
91
91
  */
92
92
  export interface RegisterRequest {
93
93
  endpoint: string;
94
- functions?: Function[];
95
94
  }
96
95
  /**
97
96
  * Defined in:
@@ -101,6 +100,14 @@ export interface RegisterResponse {
101
100
  registrationId: string;
102
101
  endpoint: string;
103
102
  }
103
+ /**
104
+ * Defined in:
105
+ * {@link file://./../../../dxos/agent/functions.proto}
106
+ */
107
+ export interface UpdateRegistrationRequest {
108
+ registrationId: string;
109
+ functions?: Function[];
110
+ }
104
111
  /**
105
112
  * Defined in:
106
113
  * {@link file://./../../../dxos/agent/functions.proto}
@@ -114,5 +121,6 @@ export interface UnregisterRequest {
114
121
  */
115
122
  export interface FunctionRegistryService {
116
123
  register: (request: RegisterRequest, options?: RequestOptions) => Promise<RegisterResponse>;
124
+ updateRegistration: (request: UpdateRegistrationRequest, options?: RequestOptions) => Promise<void>;
117
125
  unregister: (request: UnregisterRequest, options?: RequestOptions) => Promise<void>;
118
126
  }
@@ -80,14 +80,14 @@ export enum NullValue {
80
80
  export interface ListValue {
81
81
  values?: Value[];
82
82
  }
83
- export interface Timestamp {
84
- seconds: string;
85
- nanos: number;
86
- }
87
83
  export interface Any {
88
84
  type_url: string;
89
85
  value: Uint8Array;
90
86
  }
87
+ export interface Timestamp {
88
+ seconds: string;
89
+ nanos: number;
90
+ }
91
91
  export interface FileDescriptorSet {
92
92
  file?: FileDescriptorProto[];
93
93
  }