@dxos/protocols 0.4.5-main.623c49f → 0.4.5-main.6461ceb

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.
@@ -59,181 +59,6 @@ import * as dxos_value from "../value";
59
59
  import * as example_testing_data from "../../example/testing/data";
60
60
  import * as example_testing_rpc from "../../example/testing/rpc";
61
61
  import * as google_protobuf from "../../google/protobuf";
62
- /**
63
- * Defined in:
64
- * {@link file://./../../../dxos/client/logging.proto}
65
- */
66
- export interface Metrics {
67
- timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
68
- values?: Metrics.KeyPair[];
69
- }
70
- export namespace Metrics {
71
- /**
72
- * Defined in:
73
- * {@link file://./../../../dxos/client/logging.proto}
74
- */
75
- export interface KeyPair {
76
- /**
77
- * Options:
78
- * - proto3_optional = true
79
- */
80
- key?: string;
81
- /**
82
- * Options:
83
- * - proto3_optional = true
84
- */
85
- value?: dxos_value.Value;
86
- /**
87
- * Options:
88
- * - proto3_optional = true
89
- */
90
- stats?: dxos_value.Stats;
91
- }
92
- }
93
- /**
94
- * Defined in:
95
- * {@link file://./../../../dxos/client/logging.proto}
96
- */
97
- export interface ControlMetricsRequest {
98
- /**
99
- * Options:
100
- * - proto3_optional = true
101
- */
102
- reset?: boolean;
103
- /**
104
- * Options:
105
- * - proto3_optional = true
106
- */
107
- record?: boolean;
108
- }
109
- /**
110
- * Defined in:
111
- * {@link file://./../../../dxos/client/logging.proto}
112
- */
113
- export interface ControlMetricsResponse {
114
- /**
115
- * Options:
116
- * - proto3_optional = true
117
- */
118
- recording?: boolean;
119
- }
120
- /**
121
- * Defined in:
122
- * {@link file://./../../../dxos/client/logging.proto}
123
- */
124
- export interface QueryMetricsRequest {
125
- /**
126
- * Options:
127
- * - proto3_optional = true
128
- */
129
- interval?: number;
130
- }
131
- /**
132
- * Defined in:
133
- * {@link file://./../../../dxos/client/logging.proto}
134
- */
135
- export interface QueryMetricsResponse {
136
- timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
137
- metrics: Metrics;
138
- }
139
- /**
140
- * Defined in:
141
- * {@link file://./../../../dxos/client/logging.proto}
142
- */
143
- export enum LogLevel {
144
- TRACE = 5,
145
- DEBUG = 10,
146
- INFO = 11,
147
- WARN = 12,
148
- ERROR = 13
149
- }
150
- /**
151
- * Defined in:
152
- * {@link file://./../../../dxos/client/logging.proto}
153
- */
154
- export interface QueryLogsRequest {
155
- filters?: QueryLogsRequest.Filter[];
156
- /**
157
- * Options:
158
- * - proto3_optional = true
159
- */
160
- options?: QueryLogsRequest.MatchingOptions;
161
- }
162
- export namespace QueryLogsRequest {
163
- /**
164
- * Defined in:
165
- * {@link file://./../../../dxos/client/logging.proto}
166
- */
167
- export enum MatchingOptions {
168
- INCLUSIVE = 1,
169
- EXPLICIT = 2
170
- }
171
- /**
172
- * Defined in:
173
- * {@link file://./../../../dxos/client/logging.proto}
174
- */
175
- export interface Filter {
176
- level: LogLevel;
177
- /**
178
- * Options:
179
- * - proto3_optional = true
180
- */
181
- pattern?: string;
182
- }
183
- }
184
- /**
185
- * Defined in:
186
- * {@link file://./../../../dxos/client/logging.proto}
187
- */
188
- export interface LogEntry {
189
- level: LogLevel;
190
- message: string;
191
- /**
192
- * Options:
193
- * - proto3_optional = true
194
- */
195
- context?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
196
- /**
197
- * Options:
198
- * - proto3_optional = true
199
- */
200
- meta?: LogEntry.Meta;
201
- /**
202
- * Options:
203
- * - proto3_optional = true
204
- */
205
- error?: dxos_error.Error;
206
- timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
207
- }
208
- export namespace LogEntry {
209
- /**
210
- * Defined in:
211
- * {@link file://./../../../dxos/client/logging.proto}
212
- */
213
- export interface Meta {
214
- file: string;
215
- line: number;
216
- /**
217
- * Options:
218
- * - proto3_optional = true
219
- */
220
- scope?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
221
- /**
222
- * Options:
223
- * - proto3_optional = true
224
- */
225
- resourceId?: number;
226
- }
227
- }
228
- /**
229
- * Defined in:
230
- * {@link file://./../../../dxos/client/logging.proto}
231
- */
232
- export interface LoggingService {
233
- controlMetrics: (request: ControlMetricsRequest, options?: RequestOptions) => Promise<ControlMetricsResponse>;
234
- queryMetrics: (request: QueryMetricsRequest, options?: RequestOptions) => Stream<QueryMetricsResponse>;
235
- queryLogs: (request: QueryLogsRequest, options?: RequestOptions) => Stream<LogEntry>;
236
- }
237
62
  /**
238
63
  * Defined in:
239
64
  * {@link file://./../../../dxos/client/services.proto}
@@ -1026,3 +851,178 @@ export interface NetworkService {
1026
851
  updateConfig: (request: UpdateConfigRequest, options?: RequestOptions) => Promise<void>;
1027
852
  queryStatus: (request: void, options?: RequestOptions) => Stream<NetworkStatus>;
1028
853
  }
854
+ /**
855
+ * Defined in:
856
+ * {@link file://./../../../dxos/client/logging.proto}
857
+ */
858
+ export interface Metrics {
859
+ timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
860
+ values?: Metrics.KeyPair[];
861
+ }
862
+ export namespace Metrics {
863
+ /**
864
+ * Defined in:
865
+ * {@link file://./../../../dxos/client/logging.proto}
866
+ */
867
+ export interface KeyPair {
868
+ /**
869
+ * Options:
870
+ * - proto3_optional = true
871
+ */
872
+ key?: string;
873
+ /**
874
+ * Options:
875
+ * - proto3_optional = true
876
+ */
877
+ value?: dxos_value.Value;
878
+ /**
879
+ * Options:
880
+ * - proto3_optional = true
881
+ */
882
+ stats?: dxos_value.Stats;
883
+ }
884
+ }
885
+ /**
886
+ * Defined in:
887
+ * {@link file://./../../../dxos/client/logging.proto}
888
+ */
889
+ export interface ControlMetricsRequest {
890
+ /**
891
+ * Options:
892
+ * - proto3_optional = true
893
+ */
894
+ reset?: boolean;
895
+ /**
896
+ * Options:
897
+ * - proto3_optional = true
898
+ */
899
+ record?: boolean;
900
+ }
901
+ /**
902
+ * Defined in:
903
+ * {@link file://./../../../dxos/client/logging.proto}
904
+ */
905
+ export interface ControlMetricsResponse {
906
+ /**
907
+ * Options:
908
+ * - proto3_optional = true
909
+ */
910
+ recording?: boolean;
911
+ }
912
+ /**
913
+ * Defined in:
914
+ * {@link file://./../../../dxos/client/logging.proto}
915
+ */
916
+ export interface QueryMetricsRequest {
917
+ /**
918
+ * Options:
919
+ * - proto3_optional = true
920
+ */
921
+ interval?: number;
922
+ }
923
+ /**
924
+ * Defined in:
925
+ * {@link file://./../../../dxos/client/logging.proto}
926
+ */
927
+ export interface QueryMetricsResponse {
928
+ timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
929
+ metrics: Metrics;
930
+ }
931
+ /**
932
+ * Defined in:
933
+ * {@link file://./../../../dxos/client/logging.proto}
934
+ */
935
+ export enum LogLevel {
936
+ TRACE = 5,
937
+ DEBUG = 10,
938
+ INFO = 11,
939
+ WARN = 12,
940
+ ERROR = 13
941
+ }
942
+ /**
943
+ * Defined in:
944
+ * {@link file://./../../../dxos/client/logging.proto}
945
+ */
946
+ export interface QueryLogsRequest {
947
+ filters?: QueryLogsRequest.Filter[];
948
+ /**
949
+ * Options:
950
+ * - proto3_optional = true
951
+ */
952
+ options?: QueryLogsRequest.MatchingOptions;
953
+ }
954
+ export namespace QueryLogsRequest {
955
+ /**
956
+ * Defined in:
957
+ * {@link file://./../../../dxos/client/logging.proto}
958
+ */
959
+ export enum MatchingOptions {
960
+ INCLUSIVE = 1,
961
+ EXPLICIT = 2
962
+ }
963
+ /**
964
+ * Defined in:
965
+ * {@link file://./../../../dxos/client/logging.proto}
966
+ */
967
+ export interface Filter {
968
+ level: LogLevel;
969
+ /**
970
+ * Options:
971
+ * - proto3_optional = true
972
+ */
973
+ pattern?: string;
974
+ }
975
+ }
976
+ /**
977
+ * Defined in:
978
+ * {@link file://./../../../dxos/client/logging.proto}
979
+ */
980
+ export interface LogEntry {
981
+ level: LogLevel;
982
+ message: string;
983
+ /**
984
+ * Options:
985
+ * - proto3_optional = true
986
+ */
987
+ context?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
988
+ /**
989
+ * Options:
990
+ * - proto3_optional = true
991
+ */
992
+ meta?: LogEntry.Meta;
993
+ /**
994
+ * Options:
995
+ * - proto3_optional = true
996
+ */
997
+ error?: dxos_error.Error;
998
+ timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
999
+ }
1000
+ export namespace LogEntry {
1001
+ /**
1002
+ * Defined in:
1003
+ * {@link file://./../../../dxos/client/logging.proto}
1004
+ */
1005
+ export interface Meta {
1006
+ file: string;
1007
+ line: number;
1008
+ /**
1009
+ * Options:
1010
+ * - proto3_optional = true
1011
+ */
1012
+ scope?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
1013
+ /**
1014
+ * Options:
1015
+ * - proto3_optional = true
1016
+ */
1017
+ resourceId?: number;
1018
+ }
1019
+ }
1020
+ /**
1021
+ * Defined in:
1022
+ * {@link file://./../../../dxos/client/logging.proto}
1023
+ */
1024
+ export interface LoggingService {
1025
+ controlMetrics: (request: ControlMetricsRequest, options?: RequestOptions) => Promise<ControlMetricsResponse>;
1026
+ queryMetrics: (request: QueryMetricsRequest, options?: RequestOptions) => Stream<QueryMetricsResponse>;
1027
+ queryLogs: (request: QueryLogsRequest, options?: RequestOptions) => Stream<LogEntry>;
1028
+ }