@dxos/protocols 0.3.4-next.1e21f62 → 0.3.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dxos/protocols",
3
- "version": "0.3.4-next.1e21f62",
3
+ "version": "0.3.4",
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.4-next.1e21f62",
37
- "@dxos/invariant": "0.3.4-next.1e21f62",
38
- "@dxos/keys": "0.3.4-next.1e21f62",
39
- "@dxos/timeframe": "0.3.4-next.1e21f62"
36
+ "@dxos/codec-protobuf": "0.3.4",
37
+ "@dxos/invariant": "0.3.4",
38
+ "@dxos/keys": "0.3.4",
39
+ "@dxos/timeframe": "0.3.4"
40
40
  },
41
41
  "devDependencies": {
42
42
  "glob": "~7.1.6"
@@ -57,6 +57,181 @@ import * as dxos_value from "../value";
57
57
  import * as example_testing_data from "../../example/testing/data";
58
58
  import * as example_testing_rpc from "../../example/testing/rpc";
59
59
  import * as google_protobuf from "../../google/protobuf";
60
+ /**
61
+ * Defined in:
62
+ * {@link file://./../../../dxos/client/logging.proto}
63
+ */
64
+ export interface Metrics {
65
+ timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
66
+ values?: Metrics.KeyPair[];
67
+ }
68
+ export namespace Metrics {
69
+ /**
70
+ * Defined in:
71
+ * {@link file://./../../../dxos/client/logging.proto}
72
+ */
73
+ export interface KeyPair {
74
+ /**
75
+ * Options:
76
+ * - proto3_optional = true
77
+ */
78
+ key?: string;
79
+ /**
80
+ * Options:
81
+ * - proto3_optional = true
82
+ */
83
+ value?: dxos_value.Value;
84
+ /**
85
+ * Options:
86
+ * - proto3_optional = true
87
+ */
88
+ stats?: dxos_value.Stats;
89
+ }
90
+ }
91
+ /**
92
+ * Defined in:
93
+ * {@link file://./../../../dxos/client/logging.proto}
94
+ */
95
+ export interface ControlMetricsRequest {
96
+ /**
97
+ * Options:
98
+ * - proto3_optional = true
99
+ */
100
+ reset?: boolean;
101
+ /**
102
+ * Options:
103
+ * - proto3_optional = true
104
+ */
105
+ record?: boolean;
106
+ }
107
+ /**
108
+ * Defined in:
109
+ * {@link file://./../../../dxos/client/logging.proto}
110
+ */
111
+ export interface ControlMetricsResponse {
112
+ /**
113
+ * Options:
114
+ * - proto3_optional = true
115
+ */
116
+ recording?: boolean;
117
+ }
118
+ /**
119
+ * Defined in:
120
+ * {@link file://./../../../dxos/client/logging.proto}
121
+ */
122
+ export interface QueryMetricsRequest {
123
+ /**
124
+ * Options:
125
+ * - proto3_optional = true
126
+ */
127
+ interval?: number;
128
+ }
129
+ /**
130
+ * Defined in:
131
+ * {@link file://./../../../dxos/client/logging.proto}
132
+ */
133
+ export interface QueryMetricsResponse {
134
+ timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
135
+ metrics: Metrics;
136
+ }
137
+ /**
138
+ * Defined in:
139
+ * {@link file://./../../../dxos/client/logging.proto}
140
+ */
141
+ export enum LogLevel {
142
+ TRACE = 5,
143
+ DEBUG = 10,
144
+ INFO = 11,
145
+ WARN = 12,
146
+ ERROR = 13
147
+ }
148
+ /**
149
+ * Defined in:
150
+ * {@link file://./../../../dxos/client/logging.proto}
151
+ */
152
+ export interface QueryLogsRequest {
153
+ filters?: QueryLogsRequest.Filter[];
154
+ /**
155
+ * Options:
156
+ * - proto3_optional = true
157
+ */
158
+ options?: QueryLogsRequest.MatchingOptions;
159
+ }
160
+ export namespace QueryLogsRequest {
161
+ /**
162
+ * Defined in:
163
+ * {@link file://./../../../dxos/client/logging.proto}
164
+ */
165
+ export enum MatchingOptions {
166
+ INCLUSIVE = 1,
167
+ EXPLICIT = 2
168
+ }
169
+ /**
170
+ * Defined in:
171
+ * {@link file://./../../../dxos/client/logging.proto}
172
+ */
173
+ export interface Filter {
174
+ level: LogLevel;
175
+ /**
176
+ * Options:
177
+ * - proto3_optional = true
178
+ */
179
+ pattern?: string;
180
+ }
181
+ }
182
+ /**
183
+ * Defined in:
184
+ * {@link file://./../../../dxos/client/logging.proto}
185
+ */
186
+ export interface LogEntry {
187
+ level: LogLevel;
188
+ message: string;
189
+ /**
190
+ * Options:
191
+ * - proto3_optional = true
192
+ */
193
+ context?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
194
+ /**
195
+ * Options:
196
+ * - proto3_optional = true
197
+ */
198
+ meta?: LogEntry.Meta;
199
+ /**
200
+ * Options:
201
+ * - proto3_optional = true
202
+ */
203
+ error?: dxos_error.Error;
204
+ timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
205
+ }
206
+ export namespace LogEntry {
207
+ /**
208
+ * Defined in:
209
+ * {@link file://./../../../dxos/client/logging.proto}
210
+ */
211
+ export interface Meta {
212
+ file: string;
213
+ line: number;
214
+ /**
215
+ * Options:
216
+ * - proto3_optional = true
217
+ */
218
+ scope?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
219
+ /**
220
+ * Options:
221
+ * - proto3_optional = true
222
+ */
223
+ resourceId?: number;
224
+ }
225
+ }
226
+ /**
227
+ * Defined in:
228
+ * {@link file://./../../../dxos/client/logging.proto}
229
+ */
230
+ export interface LoggingService {
231
+ controlMetrics: (request: ControlMetricsRequest) => Promise<ControlMetricsResponse>;
232
+ queryMetrics: (request: QueryMetricsRequest) => Stream<QueryMetricsResponse>;
233
+ queryLogs: (request: QueryLogsRequest) => Stream<LogEntry>;
234
+ }
60
235
  /**
61
236
  * Defined in:
62
237
  * {@link file://./../../../dxos/client/services.proto}
@@ -751,178 +926,3 @@ export interface NetworkService {
751
926
  updateConfig: (request: UpdateConfigRequest) => Promise<void>;
752
927
  queryStatus: (request: void) => Stream<NetworkStatus>;
753
928
  }
754
- /**
755
- * Defined in:
756
- * {@link file://./../../../dxos/client/logging.proto}
757
- */
758
- export interface Metrics {
759
- timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
760
- values?: Metrics.KeyPair[];
761
- }
762
- export namespace Metrics {
763
- /**
764
- * Defined in:
765
- * {@link file://./../../../dxos/client/logging.proto}
766
- */
767
- export interface KeyPair {
768
- /**
769
- * Options:
770
- * - proto3_optional = true
771
- */
772
- key?: string;
773
- /**
774
- * Options:
775
- * - proto3_optional = true
776
- */
777
- value?: dxos_value.Value;
778
- /**
779
- * Options:
780
- * - proto3_optional = true
781
- */
782
- stats?: dxos_value.Stats;
783
- }
784
- }
785
- /**
786
- * Defined in:
787
- * {@link file://./../../../dxos/client/logging.proto}
788
- */
789
- export interface ControlMetricsRequest {
790
- /**
791
- * Options:
792
- * - proto3_optional = true
793
- */
794
- reset?: boolean;
795
- /**
796
- * Options:
797
- * - proto3_optional = true
798
- */
799
- record?: boolean;
800
- }
801
- /**
802
- * Defined in:
803
- * {@link file://./../../../dxos/client/logging.proto}
804
- */
805
- export interface ControlMetricsResponse {
806
- /**
807
- * Options:
808
- * - proto3_optional = true
809
- */
810
- recording?: boolean;
811
- }
812
- /**
813
- * Defined in:
814
- * {@link file://./../../../dxos/client/logging.proto}
815
- */
816
- export interface QueryMetricsRequest {
817
- /**
818
- * Options:
819
- * - proto3_optional = true
820
- */
821
- interval?: number;
822
- }
823
- /**
824
- * Defined in:
825
- * {@link file://./../../../dxos/client/logging.proto}
826
- */
827
- export interface QueryMetricsResponse {
828
- timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
829
- metrics: Metrics;
830
- }
831
- /**
832
- * Defined in:
833
- * {@link file://./../../../dxos/client/logging.proto}
834
- */
835
- export enum LogLevel {
836
- TRACE = 5,
837
- DEBUG = 10,
838
- INFO = 11,
839
- WARN = 12,
840
- ERROR = 13
841
- }
842
- /**
843
- * Defined in:
844
- * {@link file://./../../../dxos/client/logging.proto}
845
- */
846
- export interface QueryLogsRequest {
847
- filters?: QueryLogsRequest.Filter[];
848
- /**
849
- * Options:
850
- * - proto3_optional = true
851
- */
852
- options?: QueryLogsRequest.MatchingOptions;
853
- }
854
- export namespace QueryLogsRequest {
855
- /**
856
- * Defined in:
857
- * {@link file://./../../../dxos/client/logging.proto}
858
- */
859
- export enum MatchingOptions {
860
- INCLUSIVE = 1,
861
- EXPLICIT = 2
862
- }
863
- /**
864
- * Defined in:
865
- * {@link file://./../../../dxos/client/logging.proto}
866
- */
867
- export interface Filter {
868
- level: LogLevel;
869
- /**
870
- * Options:
871
- * - proto3_optional = true
872
- */
873
- pattern?: string;
874
- }
875
- }
876
- /**
877
- * Defined in:
878
- * {@link file://./../../../dxos/client/logging.proto}
879
- */
880
- export interface LogEntry {
881
- level: LogLevel;
882
- message: string;
883
- /**
884
- * Options:
885
- * - proto3_optional = true
886
- */
887
- context?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
888
- /**
889
- * Options:
890
- * - proto3_optional = true
891
- */
892
- meta?: LogEntry.Meta;
893
- /**
894
- * Options:
895
- * - proto3_optional = true
896
- */
897
- error?: dxos_error.Error;
898
- timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
899
- }
900
- export namespace LogEntry {
901
- /**
902
- * Defined in:
903
- * {@link file://./../../../dxos/client/logging.proto}
904
- */
905
- export interface Meta {
906
- file: string;
907
- line: number;
908
- /**
909
- * Options:
910
- * - proto3_optional = true
911
- */
912
- scope?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
913
- /**
914
- * Options:
915
- * - proto3_optional = true
916
- */
917
- resourceId?: number;
918
- }
919
- }
920
- /**
921
- * Defined in:
922
- * {@link file://./../../../dxos/client/logging.proto}
923
- */
924
- export interface LoggingService {
925
- controlMetrics: (request: ControlMetricsRequest) => Promise<ControlMetricsResponse>;
926
- queryMetrics: (request: QueryMetricsRequest) => Stream<QueryMetricsResponse>;
927
- queryLogs: (request: QueryLogsRequest) => Stream<LogEntry>;
928
- }
@@ -57,6 +57,37 @@ import * as dxos_value from "../value";
57
57
  import * as example_testing_data from "../../example/testing/data";
58
58
  import * as example_testing_rpc from "../../example/testing/rpc";
59
59
  import * as google_protobuf from "../../google/protobuf";
60
+ /**
61
+ * Defined in:
62
+ * {@link file://./../../../dxos/devtools/diagnostics.proto}
63
+ */
64
+ export interface Services {
65
+ spaces?: SpaceStats[];
66
+ }
67
+ /**
68
+ * Defined in:
69
+ * {@link file://./../../../dxos/devtools/diagnostics.proto}
70
+ */
71
+ export interface SpaceStats {
72
+ key: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
73
+ peers?: PeerStats[];
74
+ }
75
+ /**
76
+ * Defined in:
77
+ * {@link file://./../../../dxos/devtools/diagnostics.proto}
78
+ */
79
+ export interface PeerStats {
80
+ controlFeed: FeedStats;
81
+ dataFeed: FeedStats;
82
+ }
83
+ /**
84
+ * Defined in:
85
+ * {@link file://./../../../dxos/devtools/diagnostics.proto}
86
+ */
87
+ export interface FeedStats {
88
+ key: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
89
+ length: number;
90
+ }
60
91
  /**
61
92
  * Defined in:
62
93
  * {@link file://./../../../dxos/devtools/host.proto}
@@ -479,34 +510,3 @@ export interface SubscribeToSwarmInfoRequest {
479
510
  export interface SubscribeToSwarmInfoResponse {
480
511
  data?: dxos_devtools_swarm.SwarmInfo[];
481
512
  }
482
- /**
483
- * Defined in:
484
- * {@link file://./../../../dxos/devtools/diagnostics.proto}
485
- */
486
- export interface Services {
487
- spaces?: SpaceStats[];
488
- }
489
- /**
490
- * Defined in:
491
- * {@link file://./../../../dxos/devtools/diagnostics.proto}
492
- */
493
- export interface SpaceStats {
494
- key: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
495
- peers?: PeerStats[];
496
- }
497
- /**
498
- * Defined in:
499
- * {@link file://./../../../dxos/devtools/diagnostics.proto}
500
- */
501
- export interface PeerStats {
502
- controlFeed: FeedStats;
503
- dataFeed: FeedStats;
504
- }
505
- /**
506
- * Defined in:
507
- * {@link file://./../../../dxos/devtools/diagnostics.proto}
508
- */
509
- export interface FeedStats {
510
- key: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
511
- length: number;
512
- }
@@ -76,14 +76,14 @@ export enum NullValue {
76
76
  export interface ListValue {
77
77
  values?: Value[];
78
78
  }
79
- export interface Any {
80
- type_url: string;
81
- value: Uint8Array;
82
- }
83
79
  export interface Timestamp {
84
80
  seconds: string;
85
81
  nanos: number;
86
82
  }
83
+ export interface Any {
84
+ type_url: string;
85
+ value: Uint8Array;
86
+ }
87
87
  export interface FileDescriptorSet {
88
88
  file?: FileDescriptorProto[];
89
89
  }