@dxos/protocols 0.6.8-main.046e6cf → 0.6.8-main.3be982f

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.
@@ -63,183 +63,6 @@ import * as dxos_value from "../value";
63
63
  import * as example_testing_data from "../../example/testing/data";
64
64
  import * as example_testing_rpc from "../../example/testing/rpc";
65
65
  import * as google_protobuf from "../../google/protobuf";
66
- /**
67
- * Defined in:
68
- * {@link file://./../../../dxos/client/logging.proto}
69
- */
70
- export interface Metrics {
71
- timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
72
- values?: Metrics.KeyPair[];
73
- }
74
- export namespace Metrics {
75
- /**
76
- * Defined in:
77
- * {@link file://./../../../dxos/client/logging.proto}
78
- */
79
- export interface KeyPair {
80
- /**
81
- * Options:
82
- * - proto3_optional = true
83
- */
84
- key?: string;
85
- /**
86
- * Options:
87
- * - proto3_optional = true
88
- */
89
- value?: dxos_value.Value;
90
- /**
91
- * Options:
92
- * - proto3_optional = true
93
- */
94
- stats?: dxos_value.Stats;
95
- }
96
- }
97
- /**
98
- * Defined in:
99
- * {@link file://./../../../dxos/client/logging.proto}
100
- */
101
- export interface ControlMetricsRequest {
102
- /**
103
- * Options:
104
- * - proto3_optional = true
105
- */
106
- reset?: boolean;
107
- /**
108
- * Options:
109
- * - proto3_optional = true
110
- */
111
- record?: boolean;
112
- }
113
- /**
114
- * Defined in:
115
- * {@link file://./../../../dxos/client/logging.proto}
116
- */
117
- export interface ControlMetricsResponse {
118
- /**
119
- * Options:
120
- * - proto3_optional = true
121
- */
122
- recording?: boolean;
123
- }
124
- /**
125
- * Defined in:
126
- * {@link file://./../../../dxos/client/logging.proto}
127
- */
128
- export interface QueryMetricsRequest {
129
- /**
130
- * Options:
131
- * - proto3_optional = true
132
- */
133
- interval?: number;
134
- }
135
- /**
136
- * Defined in:
137
- * {@link file://./../../../dxos/client/logging.proto}
138
- */
139
- export interface QueryMetricsResponse {
140
- timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
141
- metrics: Metrics;
142
- }
143
- /**
144
- * Defined in:
145
- * {@link file://./../../../dxos/client/logging.proto}
146
- */
147
- export enum LogLevel {
148
- NONE = 0,
149
- TRACE = 5,
150
- DEBUG = 10,
151
- INFO = 11,
152
- WARN = 12,
153
- ERROR = 13
154
- }
155
- /**
156
- * Defined in:
157
- * {@link file://./../../../dxos/client/logging.proto}
158
- */
159
- export interface QueryLogsRequest {
160
- filters?: QueryLogsRequest.Filter[];
161
- /**
162
- * Options:
163
- * - proto3_optional = true
164
- */
165
- options?: QueryLogsRequest.MatchingOptions;
166
- }
167
- export namespace QueryLogsRequest {
168
- /**
169
- * Defined in:
170
- * {@link file://./../../../dxos/client/logging.proto}
171
- */
172
- export enum MatchingOptions {
173
- NONE = 0,
174
- INCLUSIVE = 1,
175
- EXPLICIT = 2
176
- }
177
- /**
178
- * Defined in:
179
- * {@link file://./../../../dxos/client/logging.proto}
180
- */
181
- export interface Filter {
182
- level: LogLevel;
183
- /**
184
- * Options:
185
- * - proto3_optional = true
186
- */
187
- pattern?: string;
188
- }
189
- }
190
- /**
191
- * Defined in:
192
- * {@link file://./../../../dxos/client/logging.proto}
193
- */
194
- export interface LogEntry {
195
- level: LogLevel;
196
- message: string;
197
- /**
198
- * Options:
199
- * - proto3_optional = true
200
- */
201
- context?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
202
- /**
203
- * Options:
204
- * - proto3_optional = true
205
- */
206
- meta?: LogEntry.Meta;
207
- /**
208
- * Options:
209
- * - proto3_optional = true
210
- */
211
- error?: dxos_error.Error;
212
- timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
213
- }
214
- export namespace LogEntry {
215
- /**
216
- * Defined in:
217
- * {@link file://./../../../dxos/client/logging.proto}
218
- */
219
- export interface Meta {
220
- file: string;
221
- line: number;
222
- /**
223
- * Options:
224
- * - proto3_optional = true
225
- */
226
- scope?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
227
- /**
228
- * Options:
229
- * - proto3_optional = true
230
- */
231
- resourceId?: number;
232
- }
233
- }
234
- /**
235
- * Defined in:
236
- * {@link file://./../../../dxos/client/logging.proto}
237
- */
238
- export interface LoggingService {
239
- controlMetrics: (request: ControlMetricsRequest, options?: RequestOptions) => Promise<ControlMetricsResponse>;
240
- queryMetrics: (request: QueryMetricsRequest, options?: RequestOptions) => Stream<QueryMetricsResponse>;
241
- queryLogs: (request: QueryLogsRequest, options?: RequestOptions) => Stream<LogEntry>;
242
- }
243
66
  /**
244
67
  * Defined in:
245
68
  * {@link file://./../../../dxos/client/invitation.proto}
@@ -1230,3 +1053,180 @@ export interface NetworkService {
1230
1053
  updateConfig: (request: UpdateConfigRequest, options?: RequestOptions) => Promise<void>;
1231
1054
  queryStatus: (request: void, options?: RequestOptions) => Stream<NetworkStatus>;
1232
1055
  }
1056
+ /**
1057
+ * Defined in:
1058
+ * {@link file://./../../../dxos/client/logging.proto}
1059
+ */
1060
+ export interface Metrics {
1061
+ timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
1062
+ values?: Metrics.KeyPair[];
1063
+ }
1064
+ export namespace Metrics {
1065
+ /**
1066
+ * Defined in:
1067
+ * {@link file://./../../../dxos/client/logging.proto}
1068
+ */
1069
+ export interface KeyPair {
1070
+ /**
1071
+ * Options:
1072
+ * - proto3_optional = true
1073
+ */
1074
+ key?: string;
1075
+ /**
1076
+ * Options:
1077
+ * - proto3_optional = true
1078
+ */
1079
+ value?: dxos_value.Value;
1080
+ /**
1081
+ * Options:
1082
+ * - proto3_optional = true
1083
+ */
1084
+ stats?: dxos_value.Stats;
1085
+ }
1086
+ }
1087
+ /**
1088
+ * Defined in:
1089
+ * {@link file://./../../../dxos/client/logging.proto}
1090
+ */
1091
+ export interface ControlMetricsRequest {
1092
+ /**
1093
+ * Options:
1094
+ * - proto3_optional = true
1095
+ */
1096
+ reset?: boolean;
1097
+ /**
1098
+ * Options:
1099
+ * - proto3_optional = true
1100
+ */
1101
+ record?: boolean;
1102
+ }
1103
+ /**
1104
+ * Defined in:
1105
+ * {@link file://./../../../dxos/client/logging.proto}
1106
+ */
1107
+ export interface ControlMetricsResponse {
1108
+ /**
1109
+ * Options:
1110
+ * - proto3_optional = true
1111
+ */
1112
+ recording?: boolean;
1113
+ }
1114
+ /**
1115
+ * Defined in:
1116
+ * {@link file://./../../../dxos/client/logging.proto}
1117
+ */
1118
+ export interface QueryMetricsRequest {
1119
+ /**
1120
+ * Options:
1121
+ * - proto3_optional = true
1122
+ */
1123
+ interval?: number;
1124
+ }
1125
+ /**
1126
+ * Defined in:
1127
+ * {@link file://./../../../dxos/client/logging.proto}
1128
+ */
1129
+ export interface QueryMetricsResponse {
1130
+ timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
1131
+ metrics: Metrics;
1132
+ }
1133
+ /**
1134
+ * Defined in:
1135
+ * {@link file://./../../../dxos/client/logging.proto}
1136
+ */
1137
+ export enum LogLevel {
1138
+ NONE = 0,
1139
+ TRACE = 5,
1140
+ DEBUG = 10,
1141
+ INFO = 11,
1142
+ WARN = 12,
1143
+ ERROR = 13
1144
+ }
1145
+ /**
1146
+ * Defined in:
1147
+ * {@link file://./../../../dxos/client/logging.proto}
1148
+ */
1149
+ export interface QueryLogsRequest {
1150
+ filters?: QueryLogsRequest.Filter[];
1151
+ /**
1152
+ * Options:
1153
+ * - proto3_optional = true
1154
+ */
1155
+ options?: QueryLogsRequest.MatchingOptions;
1156
+ }
1157
+ export namespace QueryLogsRequest {
1158
+ /**
1159
+ * Defined in:
1160
+ * {@link file://./../../../dxos/client/logging.proto}
1161
+ */
1162
+ export enum MatchingOptions {
1163
+ NONE = 0,
1164
+ INCLUSIVE = 1,
1165
+ EXPLICIT = 2
1166
+ }
1167
+ /**
1168
+ * Defined in:
1169
+ * {@link file://./../../../dxos/client/logging.proto}
1170
+ */
1171
+ export interface Filter {
1172
+ level: LogLevel;
1173
+ /**
1174
+ * Options:
1175
+ * - proto3_optional = true
1176
+ */
1177
+ pattern?: string;
1178
+ }
1179
+ }
1180
+ /**
1181
+ * Defined in:
1182
+ * {@link file://./../../../dxos/client/logging.proto}
1183
+ */
1184
+ export interface LogEntry {
1185
+ level: LogLevel;
1186
+ message: string;
1187
+ /**
1188
+ * Options:
1189
+ * - proto3_optional = true
1190
+ */
1191
+ context?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
1192
+ /**
1193
+ * Options:
1194
+ * - proto3_optional = true
1195
+ */
1196
+ meta?: LogEntry.Meta;
1197
+ /**
1198
+ * Options:
1199
+ * - proto3_optional = true
1200
+ */
1201
+ error?: dxos_error.Error;
1202
+ timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
1203
+ }
1204
+ export namespace LogEntry {
1205
+ /**
1206
+ * Defined in:
1207
+ * {@link file://./../../../dxos/client/logging.proto}
1208
+ */
1209
+ export interface Meta {
1210
+ file: string;
1211
+ line: number;
1212
+ /**
1213
+ * Options:
1214
+ * - proto3_optional = true
1215
+ */
1216
+ scope?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
1217
+ /**
1218
+ * Options:
1219
+ * - proto3_optional = true
1220
+ */
1221
+ resourceId?: number;
1222
+ }
1223
+ }
1224
+ /**
1225
+ * Defined in:
1226
+ * {@link file://./../../../dxos/client/logging.proto}
1227
+ */
1228
+ export interface LoggingService {
1229
+ controlMetrics: (request: ControlMetricsRequest, options?: RequestOptions) => Promise<ControlMetricsResponse>;
1230
+ queryMetrics: (request: QueryMetricsRequest, options?: RequestOptions) => Stream<QueryMetricsResponse>;
1231
+ queryLogs: (request: QueryLogsRequest, options?: RequestOptions) => Stream<LogEntry>;
1232
+ }