@dxos/protocols 0.3.8 → 0.3.9-main.14901ff

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.
Files changed (34) hide show
  1. package/dist/cjs/src/proto/gen/dxos/client/services.d.ts +175 -175
  2. package/dist/cjs/src/proto/gen/dxos/client/services.d.ts.map +1 -1
  3. package/dist/cjs/src/proto/gen/dxos/client/services.js +25 -25
  4. package/dist/cjs/src/proto/gen/dxos/client/services.js.map +1 -1
  5. package/dist/cjs/src/proto/gen/dxos/devtools/swarm.d.ts +30 -0
  6. package/dist/cjs/src/proto/gen/dxos/devtools/swarm.d.ts.map +1 -1
  7. package/dist/cjs/src/proto/gen/dxos/mesh/bridge.d.ts +30 -0
  8. package/dist/cjs/src/proto/gen/dxos/mesh/bridge.d.ts.map +1 -1
  9. package/dist/cjs/src/proto/gen/dxos/mesh/bridge.js.map +1 -1
  10. package/dist/cjs/src/proto/gen/index.d.ts +4 -0
  11. package/dist/cjs/src/proto/gen/index.d.ts.map +1 -1
  12. package/dist/cjs/src/proto/gen/index.js +1 -1
  13. package/dist/cjs/src/proto/gen/index.js.map +1 -1
  14. package/dist/cjs/tsconfig.tsbuildinfo +1 -1
  15. package/dist/esm/src/proto/gen/dxos/client/services.d.ts +175 -175
  16. package/dist/esm/src/proto/gen/dxos/client/services.d.ts.map +1 -1
  17. package/dist/esm/src/proto/gen/dxos/client/services.js +24 -24
  18. package/dist/esm/src/proto/gen/dxos/client/services.js.map +1 -1
  19. package/dist/esm/src/proto/gen/dxos/devtools/swarm.d.ts +30 -0
  20. package/dist/esm/src/proto/gen/dxos/devtools/swarm.d.ts.map +1 -1
  21. package/dist/esm/src/proto/gen/dxos/mesh/bridge.d.ts +30 -0
  22. package/dist/esm/src/proto/gen/dxos/mesh/bridge.d.ts.map +1 -1
  23. package/dist/esm/src/proto/gen/dxos/mesh/bridge.js.map +1 -1
  24. package/dist/esm/src/proto/gen/index.d.ts +4 -0
  25. package/dist/esm/src/proto/gen/index.d.ts.map +1 -1
  26. package/dist/esm/src/proto/gen/index.js +1 -1
  27. package/dist/esm/src/proto/gen/index.js.map +1 -1
  28. package/package.json +5 -5
  29. package/src/proto/dxos/devtools/swarm.proto +7 -0
  30. package/src/proto/dxos/mesh/bridge.proto +23 -0
  31. package/src/proto/gen/dxos/client/services.ts +175 -175
  32. package/src/proto/gen/dxos/devtools/swarm.ts +30 -0
  33. package/src/proto/gen/dxos/mesh/bridge.ts +30 -0
  34. package/src/proto/gen/index.ts +5 -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;AA4DhE,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAugB7C,MAAM,CAAC,MAAM,UAAU,GAAG,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,k7+FAAk7+F,CAAC,CAAC,CAAC;AAC3++F,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;AA2gB7C,MAAM,CAAC,MAAM,UAAU,GAAG,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,4ygGAA4ygG,CAAC,CAAC,CAAC;AACr2gG,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",
3
+ "version": "0.3.9-main.14901ff",
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.3.8",
37
- "@dxos/keys": "0.3.8",
38
- "@dxos/invariant": "0.3.8",
39
- "@dxos/timeframe": "0.3.8"
36
+ "@dxos/codec-protobuf": "0.3.9-main.14901ff",
37
+ "@dxos/invariant": "0.3.9-main.14901ff",
38
+ "@dxos/keys": "0.3.9-main.14901ff",
39
+ "@dxos/timeframe": "0.3.9-main.14901ff"
40
40
  },
41
41
  "devDependencies": {
42
42
  "glob": "~7.1.6"
@@ -41,6 +41,13 @@ message ConnectionInfo {
41
41
  optional string identity = 9;
42
42
  optional uint32 readBufferSize = 10;
43
43
  optional uint32 writeBufferSize = 11;
44
+ optional google.protobuf.Timestamp last_update = 12;
45
+ optional string transport_details = 13;
46
+ // TODO(nf): uint64?
47
+ optional uint32 transport_bytes_sent = 14;
48
+ optional uint32 transport_bytes_received = 15;
49
+ optional uint32 transport_packets_sent = 16;
50
+ optional uint32 transport_packets_received = 17;
44
51
  }
45
52
 
46
53
  message ConnectionEvent {
@@ -7,6 +7,7 @@ syntax = "proto3";
7
7
  import "dxos/keys.proto";
8
8
  import "dxos/mesh/swarm.proto";
9
9
  import "google/protobuf/empty.proto";
10
+ import "google/protobuf/struct.proto";
10
11
 
11
12
  package dxos.mesh.bridge;
12
13
 
@@ -26,6 +27,13 @@ service BridgeService {
26
27
 
27
28
  ///
28
29
  rpc Close(CloseRequest) returns (google.protobuf.Empty);
30
+
31
+ ///
32
+ rpc GetDetails(DetailsRequest) returns (DetailsResponse);
33
+
34
+ ///
35
+ rpc GetStats(StatsRequest) returns (StatsResponse);
36
+
29
37
  }
30
38
 
31
39
  enum ConnectionState {
@@ -74,3 +82,18 @@ message DataRequest {
74
82
  message CloseRequest{
75
83
  dxos.keys.PublicKey proxy_id = 1;
76
84
  }
85
+
86
+ message DetailsRequest{
87
+ dxos.keys.PublicKey proxy_id = 1;
88
+ }
89
+
90
+ message DetailsResponse{
91
+ string details = 1;
92
+ }
93
+
94
+ message StatsRequest{
95
+ dxos.keys.PublicKey proxy_id = 1;
96
+ }
97
+ message StatsResponse{
98
+ google.protobuf.Struct stats = 1;
99
+ }
@@ -58,6 +58,181 @@ import * as dxos_value from "../value";
58
58
  import * as example_testing_data from "../../example/testing/data";
59
59
  import * as example_testing_rpc from "../../example/testing/rpc";
60
60
  import * as google_protobuf from "../../google/protobuf";
61
+ /**
62
+ * Defined in:
63
+ * {@link file://./../../../dxos/client/logging.proto}
64
+ */
65
+ export interface Metrics {
66
+ timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
67
+ values?: Metrics.KeyPair[];
68
+ }
69
+ export namespace Metrics {
70
+ /**
71
+ * Defined in:
72
+ * {@link file://./../../../dxos/client/logging.proto}
73
+ */
74
+ export interface KeyPair {
75
+ /**
76
+ * Options:
77
+ * - proto3_optional = true
78
+ */
79
+ key?: string;
80
+ /**
81
+ * Options:
82
+ * - proto3_optional = true
83
+ */
84
+ value?: dxos_value.Value;
85
+ /**
86
+ * Options:
87
+ * - proto3_optional = true
88
+ */
89
+ stats?: dxos_value.Stats;
90
+ }
91
+ }
92
+ /**
93
+ * Defined in:
94
+ * {@link file://./../../../dxos/client/logging.proto}
95
+ */
96
+ export interface ControlMetricsRequest {
97
+ /**
98
+ * Options:
99
+ * - proto3_optional = true
100
+ */
101
+ reset?: boolean;
102
+ /**
103
+ * Options:
104
+ * - proto3_optional = true
105
+ */
106
+ record?: boolean;
107
+ }
108
+ /**
109
+ * Defined in:
110
+ * {@link file://./../../../dxos/client/logging.proto}
111
+ */
112
+ export interface ControlMetricsResponse {
113
+ /**
114
+ * Options:
115
+ * - proto3_optional = true
116
+ */
117
+ recording?: boolean;
118
+ }
119
+ /**
120
+ * Defined in:
121
+ * {@link file://./../../../dxos/client/logging.proto}
122
+ */
123
+ export interface QueryMetricsRequest {
124
+ /**
125
+ * Options:
126
+ * - proto3_optional = true
127
+ */
128
+ interval?: number;
129
+ }
130
+ /**
131
+ * Defined in:
132
+ * {@link file://./../../../dxos/client/logging.proto}
133
+ */
134
+ export interface QueryMetricsResponse {
135
+ timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
136
+ metrics: Metrics;
137
+ }
138
+ /**
139
+ * Defined in:
140
+ * {@link file://./../../../dxos/client/logging.proto}
141
+ */
142
+ export enum LogLevel {
143
+ TRACE = 5,
144
+ DEBUG = 10,
145
+ INFO = 11,
146
+ WARN = 12,
147
+ ERROR = 13
148
+ }
149
+ /**
150
+ * Defined in:
151
+ * {@link file://./../../../dxos/client/logging.proto}
152
+ */
153
+ export interface QueryLogsRequest {
154
+ filters?: QueryLogsRequest.Filter[];
155
+ /**
156
+ * Options:
157
+ * - proto3_optional = true
158
+ */
159
+ options?: QueryLogsRequest.MatchingOptions;
160
+ }
161
+ export namespace QueryLogsRequest {
162
+ /**
163
+ * Defined in:
164
+ * {@link file://./../../../dxos/client/logging.proto}
165
+ */
166
+ export enum MatchingOptions {
167
+ INCLUSIVE = 1,
168
+ EXPLICIT = 2
169
+ }
170
+ /**
171
+ * Defined in:
172
+ * {@link file://./../../../dxos/client/logging.proto}
173
+ */
174
+ export interface Filter {
175
+ level: LogLevel;
176
+ /**
177
+ * Options:
178
+ * - proto3_optional = true
179
+ */
180
+ pattern?: string;
181
+ }
182
+ }
183
+ /**
184
+ * Defined in:
185
+ * {@link file://./../../../dxos/client/logging.proto}
186
+ */
187
+ export interface LogEntry {
188
+ level: LogLevel;
189
+ message: string;
190
+ /**
191
+ * Options:
192
+ * - proto3_optional = true
193
+ */
194
+ context?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
195
+ /**
196
+ * Options:
197
+ * - proto3_optional = true
198
+ */
199
+ meta?: LogEntry.Meta;
200
+ /**
201
+ * Options:
202
+ * - proto3_optional = true
203
+ */
204
+ error?: dxos_error.Error;
205
+ timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
206
+ }
207
+ export namespace LogEntry {
208
+ /**
209
+ * Defined in:
210
+ * {@link file://./../../../dxos/client/logging.proto}
211
+ */
212
+ export interface Meta {
213
+ file: string;
214
+ line: number;
215
+ /**
216
+ * Options:
217
+ * - proto3_optional = true
218
+ */
219
+ scope?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
220
+ /**
221
+ * Options:
222
+ * - proto3_optional = true
223
+ */
224
+ resourceId?: number;
225
+ }
226
+ }
227
+ /**
228
+ * Defined in:
229
+ * {@link file://./../../../dxos/client/logging.proto}
230
+ */
231
+ export interface LoggingService {
232
+ controlMetrics: (request: ControlMetricsRequest, options?: RequestOptions) => Promise<ControlMetricsResponse>;
233
+ queryMetrics: (request: QueryMetricsRequest, options?: RequestOptions) => Stream<QueryMetricsResponse>;
234
+ queryLogs: (request: QueryLogsRequest, options?: RequestOptions) => Stream<LogEntry>;
235
+ }
61
236
  /**
62
237
  * Defined in:
63
238
  * {@link file://./../../../dxos/client/services.proto}
@@ -752,178 +927,3 @@ export interface NetworkService {
752
927
  updateConfig: (request: UpdateConfigRequest, options?: RequestOptions) => Promise<void>;
753
928
  queryStatus: (request: void, options?: RequestOptions) => Stream<NetworkStatus>;
754
929
  }
755
- /**
756
- * Defined in:
757
- * {@link file://./../../../dxos/client/logging.proto}
758
- */
759
- export interface Metrics {
760
- timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
761
- values?: Metrics.KeyPair[];
762
- }
763
- export namespace Metrics {
764
- /**
765
- * Defined in:
766
- * {@link file://./../../../dxos/client/logging.proto}
767
- */
768
- export interface KeyPair {
769
- /**
770
- * Options:
771
- * - proto3_optional = true
772
- */
773
- key?: string;
774
- /**
775
- * Options:
776
- * - proto3_optional = true
777
- */
778
- value?: dxos_value.Value;
779
- /**
780
- * Options:
781
- * - proto3_optional = true
782
- */
783
- stats?: dxos_value.Stats;
784
- }
785
- }
786
- /**
787
- * Defined in:
788
- * {@link file://./../../../dxos/client/logging.proto}
789
- */
790
- export interface ControlMetricsRequest {
791
- /**
792
- * Options:
793
- * - proto3_optional = true
794
- */
795
- reset?: boolean;
796
- /**
797
- * Options:
798
- * - proto3_optional = true
799
- */
800
- record?: boolean;
801
- }
802
- /**
803
- * Defined in:
804
- * {@link file://./../../../dxos/client/logging.proto}
805
- */
806
- export interface ControlMetricsResponse {
807
- /**
808
- * Options:
809
- * - proto3_optional = true
810
- */
811
- recording?: boolean;
812
- }
813
- /**
814
- * Defined in:
815
- * {@link file://./../../../dxos/client/logging.proto}
816
- */
817
- export interface QueryMetricsRequest {
818
- /**
819
- * Options:
820
- * - proto3_optional = true
821
- */
822
- interval?: number;
823
- }
824
- /**
825
- * Defined in:
826
- * {@link file://./../../../dxos/client/logging.proto}
827
- */
828
- export interface QueryMetricsResponse {
829
- timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
830
- metrics: Metrics;
831
- }
832
- /**
833
- * Defined in:
834
- * {@link file://./../../../dxos/client/logging.proto}
835
- */
836
- export enum LogLevel {
837
- TRACE = 5,
838
- DEBUG = 10,
839
- INFO = 11,
840
- WARN = 12,
841
- ERROR = 13
842
- }
843
- /**
844
- * Defined in:
845
- * {@link file://./../../../dxos/client/logging.proto}
846
- */
847
- export interface QueryLogsRequest {
848
- filters?: QueryLogsRequest.Filter[];
849
- /**
850
- * Options:
851
- * - proto3_optional = true
852
- */
853
- options?: QueryLogsRequest.MatchingOptions;
854
- }
855
- export namespace QueryLogsRequest {
856
- /**
857
- * Defined in:
858
- * {@link file://./../../../dxos/client/logging.proto}
859
- */
860
- export enum MatchingOptions {
861
- INCLUSIVE = 1,
862
- EXPLICIT = 2
863
- }
864
- /**
865
- * Defined in:
866
- * {@link file://./../../../dxos/client/logging.proto}
867
- */
868
- export interface Filter {
869
- level: LogLevel;
870
- /**
871
- * Options:
872
- * - proto3_optional = true
873
- */
874
- pattern?: string;
875
- }
876
- }
877
- /**
878
- * Defined in:
879
- * {@link file://./../../../dxos/client/logging.proto}
880
- */
881
- export interface LogEntry {
882
- level: LogLevel;
883
- message: string;
884
- /**
885
- * Options:
886
- * - proto3_optional = true
887
- */
888
- context?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
889
- /**
890
- * Options:
891
- * - proto3_optional = true
892
- */
893
- meta?: LogEntry.Meta;
894
- /**
895
- * Options:
896
- * - proto3_optional = true
897
- */
898
- error?: dxos_error.Error;
899
- timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
900
- }
901
- export namespace LogEntry {
902
- /**
903
- * Defined in:
904
- * {@link file://./../../../dxos/client/logging.proto}
905
- */
906
- export interface Meta {
907
- file: string;
908
- line: number;
909
- /**
910
- * Options:
911
- * - proto3_optional = true
912
- */
913
- scope?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
914
- /**
915
- * Options:
916
- * - proto3_optional = true
917
- */
918
- resourceId?: number;
919
- }
920
- }
921
- /**
922
- * Defined in:
923
- * {@link file://./../../../dxos/client/logging.proto}
924
- */
925
- export interface LoggingService {
926
- controlMetrics: (request: ControlMetricsRequest, options?: RequestOptions) => Promise<ControlMetricsResponse>;
927
- queryMetrics: (request: QueryMetricsRequest, options?: RequestOptions) => Stream<QueryMetricsResponse>;
928
- queryLogs: (request: QueryLogsRequest, options?: RequestOptions) => Stream<LogEntry>;
929
- }
@@ -109,6 +109,36 @@ export interface ConnectionInfo {
109
109
  * - proto3_optional = true
110
110
  */
111
111
  writeBufferSize?: number;
112
+ /**
113
+ * Options:
114
+ * - proto3_optional = true
115
+ */
116
+ lastUpdate?: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
117
+ /**
118
+ * Options:
119
+ * - proto3_optional = true
120
+ */
121
+ transportDetails?: string;
122
+ /**
123
+ * Options:
124
+ * - proto3_optional = true
125
+ */
126
+ transportBytesSent?: number;
127
+ /**
128
+ * Options:
129
+ * - proto3_optional = true
130
+ */
131
+ transportBytesReceived?: number;
132
+ /**
133
+ * Options:
134
+ * - proto3_optional = true
135
+ */
136
+ transportPacketsSent?: number;
137
+ /**
138
+ * Options:
139
+ * - proto3_optional = true
140
+ */
141
+ transportPacketsReceived?: number;
112
142
  }
113
143
  export namespace ConnectionInfo {
114
144
  /**
@@ -67,6 +67,8 @@ export interface BridgeService {
67
67
  sendSignal: (request: SignalRequest, options?: RequestOptions) => Promise<void>;
68
68
  sendData: (request: DataRequest, options?: RequestOptions) => Promise<void>;
69
69
  close: (request: CloseRequest, options?: RequestOptions) => Promise<void>;
70
+ getDetails: (request: DetailsRequest, options?: RequestOptions) => Promise<DetailsResponse>;
71
+ getStats: (request: StatsRequest, options?: RequestOptions) => Promise<StatsResponse>;
70
72
  }
71
73
  /**
72
74
  * Defined in:
@@ -146,3 +148,31 @@ export interface DataRequest {
146
148
  export interface CloseRequest {
147
149
  proxyId: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
148
150
  }
151
+ /**
152
+ * Defined in:
153
+ * {@link file://./../../../dxos/mesh/bridge.proto}
154
+ */
155
+ export interface DetailsRequest {
156
+ proxyId: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
157
+ }
158
+ /**
159
+ * Defined in:
160
+ * {@link file://./../../../dxos/mesh/bridge.proto}
161
+ */
162
+ export interface DetailsResponse {
163
+ details: string;
164
+ }
165
+ /**
166
+ * Defined in:
167
+ * {@link file://./../../../dxos/mesh/bridge.proto}
168
+ */
169
+ export interface StatsRequest {
170
+ proxyId: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
171
+ }
172
+ /**
173
+ * Defined in:
174
+ * {@link file://./../../../dxos/mesh/bridge.proto}
175
+ */
176
+ export interface StatsResponse {
177
+ stats: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
178
+ }