@dxos/protocols 0.3.2 → 0.3.3-main.1b7ca63

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