@dxos/protocols 0.5.3-main.6e12b97 → 0.5.3-main.6f2dfea

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;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"}
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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dxos/protocols",
3
- "version": "0.5.3-main.6e12b97",
3
+ "version": "0.5.3-main.6f2dfea",
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.6e12b97",
37
- "@dxos/keys": "0.5.3-main.6e12b97",
38
- "@dxos/invariant": "0.5.3-main.6e12b97",
39
- "@dxos/timeframe": "0.5.3-main.6e12b97"
36
+ "@dxos/codec-protobuf": "0.5.3-main.6f2dfea",
37
+ "@dxos/keys": "0.5.3-main.6f2dfea",
38
+ "@dxos/invariant": "0.5.3-main.6f2dfea",
39
+ "@dxos/timeframe": "0.5.3-main.6f2dfea"
40
40
  },
41
41
  "devDependencies": {
42
42
  "glob": "~7.1.6"
@@ -16,11 +16,12 @@ message FunctionsConfig {
16
16
 
17
17
  message Function {
18
18
  string id = 1;
19
- string route = 2;
19
+ string path = 2;
20
20
  }
21
21
 
22
22
  message RegisterRequest {
23
23
  string endpoint = 1;
24
+ repeated Function functions = 2;
24
25
  }
25
26
 
26
27
  message RegisterResponse {
@@ -28,17 +29,11 @@ message RegisterResponse {
28
29
  string endpoint = 2;
29
30
  }
30
31
 
31
- message UpdateRegistrationRequest {
32
- string registration_id = 1;
33
- repeated Function functions = 2;
34
- }
35
-
36
32
  message UnregisterRequest {
37
33
  string registration_id = 1;
38
34
  }
39
35
 
40
36
  service FunctionRegistryService {
41
37
  rpc Register(RegisterRequest) returns (RegisterResponse) {}
42
- rpc UpdateRegistration(UpdateRegistrationRequest) returns (google.protobuf.Empty) {}
43
38
  rpc Unregister(UnregisterRequest) returns (google.protobuf.Empty) {}
44
39
  }
@@ -83,7 +83,7 @@ export interface FunctionsConfig {
83
83
  */
84
84
  export interface Function {
85
85
  id: string;
86
- route: string;
86
+ path: string;
87
87
  }
88
88
  /**
89
89
  * Defined in:
@@ -91,6 +91,7 @@ export interface Function {
91
91
  */
92
92
  export interface RegisterRequest {
93
93
  endpoint: string;
94
+ functions?: Function[];
94
95
  }
95
96
  /**
96
97
  * Defined in:
@@ -100,14 +101,6 @@ export interface RegisterResponse {
100
101
  registrationId: string;
101
102
  endpoint: string;
102
103
  }
103
- /**
104
- * Defined in:
105
- * {@link file://./../../../dxos/agent/functions.proto}
106
- */
107
- export interface UpdateRegistrationRequest {
108
- registrationId: string;
109
- functions?: Function[];
110
- }
111
104
  /**
112
105
  * Defined in:
113
106
  * {@link file://./../../../dxos/agent/functions.proto}
@@ -121,6 +114,5 @@ export interface UnregisterRequest {
121
114
  */
122
115
  export interface FunctionRegistryService {
123
116
  register: (request: RegisterRequest, options?: RequestOptions) => Promise<RegisterResponse>;
124
- updateRegistration: (request: UpdateRegistrationRequest, options?: RequestOptions) => Promise<void>;
125
117
  unregister: (request: UnregisterRequest, options?: RequestOptions) => Promise<void>;
126
118
  }
@@ -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
  }