@dxos/protocols 0.1.53-next.e9dc2bc → 0.1.54-main.270ec56
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.
- package/dist/cjs/src/proto/gen/example/testing/rpc.d.ts +29 -0
- package/dist/cjs/src/proto/gen/example/testing/rpc.d.ts.map +1 -1
- package/dist/cjs/src/proto/gen/index.d.ts +3 -0
- package/dist/cjs/src/proto/gen/index.d.ts.map +1 -1
- package/dist/cjs/src/proto/gen/index.js +1 -1
- package/dist/cjs/src/proto/gen/index.js.map +1 -1
- package/dist/cjs/tsconfig.tsbuildinfo +1 -1
- package/dist/esm/src/proto/gen/example/testing/rpc.d.ts +29 -0
- package/dist/esm/src/proto/gen/example/testing/rpc.d.ts.map +1 -1
- package/dist/esm/src/proto/gen/index.d.ts +3 -0
- package/dist/esm/src/proto/gen/index.d.ts.map +1 -1
- package/dist/esm/src/proto/gen/index.js +1 -1
- package/dist/esm/src/proto/gen/index.js.map +1 -1
- package/package.json +5 -5
- package/src/proto/example/testing/rpc.proto +20 -0
- package/src/proto/gen/example/testing/rpc.ts +29 -0
- package/src/proto/gen/index.ts +4 -1
|
@@ -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;AAqDhE,OAAO,aAAa,MAAM,kBAAkB,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;AAqDhE,OAAO,aAAa,MAAM,kBAAkB,CAAC;AA2c7C,MAAM,CAAC,MAAM,UAAU,GAAG,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,gzmFAAgzmF,CAAC,CAAC,CAAC;AACz2mF,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.1.
|
|
3
|
+
"version": "0.1.54-main.270ec56",
|
|
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.1.
|
|
37
|
-
"@dxos/hypercore": "0.1.
|
|
38
|
-
"@dxos/keys": "0.1.
|
|
39
|
-
"@dxos/timeframe": "0.1.
|
|
36
|
+
"@dxos/codec-protobuf": "0.1.54-main.270ec56",
|
|
37
|
+
"@dxos/hypercore": "0.1.54-main.270ec56",
|
|
38
|
+
"@dxos/keys": "0.1.54-main.270ec56",
|
|
39
|
+
"@dxos/timeframe": "0.1.54-main.270ec56"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"glob": "~7.1.6"
|
|
@@ -19,6 +19,21 @@ message TestRpcResponse {
|
|
|
19
19
|
string data = 1;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
+
message TestStreamRpcRequest {
|
|
23
|
+
string data = 1;
|
|
24
|
+
uint32 streamLoadInterval = 2;
|
|
25
|
+
uint32 streamLoadChunkSize = 3;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
message TestStreamRpcResponse {
|
|
29
|
+
string data = 1;
|
|
30
|
+
uint32 bytesSent = 2;
|
|
31
|
+
uint32 bytesReceived = 3;
|
|
32
|
+
uint32 sendErrors = 4;
|
|
33
|
+
uint32 receiveErrors = 5;
|
|
34
|
+
uint32 runningTime = 6;
|
|
35
|
+
}
|
|
36
|
+
|
|
22
37
|
service TestService {
|
|
23
38
|
rpc TestCall (TestRpcRequest) returns (TestRpcResponse);
|
|
24
39
|
rpc VoidCall (google.protobuf.Empty) returns (google.protobuf.Empty);
|
|
@@ -28,6 +43,11 @@ service TestStreamService {
|
|
|
28
43
|
rpc TestCall (TestRpcRequest) returns (stream TestRpcResponse);
|
|
29
44
|
}
|
|
30
45
|
|
|
46
|
+
service TestServiceWithStreams {
|
|
47
|
+
rpc RequestTestStream (TestStreamRpcRequest) returns (TestRpcResponse);
|
|
48
|
+
rpc CloseTestStream (TestRpcRequest) returns (TestStreamRpcResponse);
|
|
49
|
+
}
|
|
50
|
+
|
|
31
51
|
message PingRequest {
|
|
32
52
|
int32 nonce = 1;
|
|
33
53
|
}
|
|
@@ -65,6 +65,27 @@ export interface TestRpcRequest {
|
|
|
65
65
|
export interface TestRpcResponse {
|
|
66
66
|
data: string;
|
|
67
67
|
}
|
|
68
|
+
/**
|
|
69
|
+
* Defined in:
|
|
70
|
+
* {@link file://./../../../example/testing/rpc.proto}
|
|
71
|
+
*/
|
|
72
|
+
export interface TestStreamRpcRequest {
|
|
73
|
+
data: string;
|
|
74
|
+
streamLoadInterval: number;
|
|
75
|
+
streamLoadChunkSize: number;
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Defined in:
|
|
79
|
+
* {@link file://./../../../example/testing/rpc.proto}
|
|
80
|
+
*/
|
|
81
|
+
export interface TestStreamRpcResponse {
|
|
82
|
+
data: string;
|
|
83
|
+
bytesSent: number;
|
|
84
|
+
bytesReceived: number;
|
|
85
|
+
sendErrors: number;
|
|
86
|
+
receiveErrors: number;
|
|
87
|
+
runningTime: number;
|
|
88
|
+
}
|
|
68
89
|
/**
|
|
69
90
|
* Defined in:
|
|
70
91
|
* {@link file://./../../../example/testing/rpc.proto}
|
|
@@ -80,6 +101,14 @@ export interface TestService {
|
|
|
80
101
|
export interface TestStreamService {
|
|
81
102
|
testCall: (request: TestRpcRequest) => Stream<TestRpcResponse>;
|
|
82
103
|
}
|
|
104
|
+
/**
|
|
105
|
+
* Defined in:
|
|
106
|
+
* {@link file://./../../../example/testing/rpc.proto}
|
|
107
|
+
*/
|
|
108
|
+
export interface TestServiceWithStreams {
|
|
109
|
+
requestTestStream: (request: TestStreamRpcRequest) => Promise<TestRpcResponse>;
|
|
110
|
+
closeTestStream: (request: TestRpcRequest) => Promise<TestStreamRpcResponse>;
|
|
111
|
+
}
|
|
83
112
|
/**
|
|
84
113
|
* Defined in:
|
|
85
114
|
* {@link file://./../../../example/testing/rpc.proto}
|