@dxos/protocols 0.1.56-next.dc2716a → 0.1.56

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