@dxos/protocols 0.6.14-staging.54a8bab → 0.6.14-staging.8758a12

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,6 +63,184 @@ import * as dxos_value from "../value.js";
63
63
  import * as example_testing_data from "../../example/testing/data.js";
64
64
  import * as example_testing_rpc from "../../example/testing/rpc.js";
65
65
  import * as google_protobuf from "../../google/protobuf.js";
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
+ VERBOSE = 11,
152
+ INFO = 12,
153
+ WARN = 13,
154
+ ERROR = 14
155
+ }
156
+ /**
157
+ * Defined in:
158
+ * {@link file://./../../../dxos/client/logging.proto}
159
+ */
160
+ export interface QueryLogsRequest {
161
+ filters?: QueryLogsRequest.Filter[];
162
+ /**
163
+ * Options:
164
+ * - proto3_optional = true
165
+ */
166
+ options?: QueryLogsRequest.MatchingOptions;
167
+ }
168
+ export namespace QueryLogsRequest {
169
+ /**
170
+ * Defined in:
171
+ * {@link file://./../../../dxos/client/logging.proto}
172
+ */
173
+ export enum MatchingOptions {
174
+ NONE = 0,
175
+ INCLUSIVE = 1,
176
+ EXPLICIT = 2
177
+ }
178
+ /**
179
+ * Defined in:
180
+ * {@link file://./../../../dxos/client/logging.proto}
181
+ */
182
+ export interface Filter {
183
+ level: LogLevel;
184
+ /**
185
+ * Options:
186
+ * - proto3_optional = true
187
+ */
188
+ pattern?: string;
189
+ }
190
+ }
191
+ /**
192
+ * Defined in:
193
+ * {@link file://./../../../dxos/client/logging.proto}
194
+ */
195
+ export interface LogEntry {
196
+ level: LogLevel;
197
+ message: string;
198
+ /**
199
+ * Options:
200
+ * - proto3_optional = true
201
+ */
202
+ context?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
203
+ /**
204
+ * Options:
205
+ * - proto3_optional = true
206
+ */
207
+ meta?: LogEntry.Meta;
208
+ /**
209
+ * Options:
210
+ * - proto3_optional = true
211
+ */
212
+ error?: dxos_error.Error;
213
+ timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
214
+ }
215
+ export namespace LogEntry {
216
+ /**
217
+ * Defined in:
218
+ * {@link file://./../../../dxos/client/logging.proto}
219
+ */
220
+ export interface Meta {
221
+ file: string;
222
+ line: number;
223
+ /**
224
+ * Options:
225
+ * - proto3_optional = true
226
+ */
227
+ scope?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
228
+ /**
229
+ * Options:
230
+ * - proto3_optional = true
231
+ */
232
+ resourceId?: number;
233
+ }
234
+ }
235
+ /**
236
+ * Defined in:
237
+ * {@link file://./../../../dxos/client/logging.proto}
238
+ */
239
+ export interface LoggingService {
240
+ controlMetrics: (request: ControlMetricsRequest, options?: RequestOptions) => Promise<ControlMetricsResponse>;
241
+ queryMetrics: (request: QueryMetricsRequest, options?: RequestOptions) => Stream<QueryMetricsResponse>;
242
+ queryLogs: (request: QueryLogsRequest, options?: RequestOptions) => Stream<LogEntry>;
243
+ }
66
244
  /**
67
245
  * Defined in:
68
246
  * {@link file://./../../../dxos/client/invitation.proto}
@@ -255,184 +433,6 @@ export namespace Invitation {
255
433
  EXPIRED = 9
256
434
  }
257
435
  }
258
- /**
259
- * Defined in:
260
- * {@link file://./../../../dxos/client/logging.proto}
261
- */
262
- export interface Metrics {
263
- timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
264
- values?: Metrics.KeyPair[];
265
- }
266
- export namespace Metrics {
267
- /**
268
- * Defined in:
269
- * {@link file://./../../../dxos/client/logging.proto}
270
- */
271
- export interface KeyPair {
272
- /**
273
- * Options:
274
- * - proto3_optional = true
275
- */
276
- key?: string;
277
- /**
278
- * Options:
279
- * - proto3_optional = true
280
- */
281
- value?: dxos_value.Value;
282
- /**
283
- * Options:
284
- * - proto3_optional = true
285
- */
286
- stats?: dxos_value.Stats;
287
- }
288
- }
289
- /**
290
- * Defined in:
291
- * {@link file://./../../../dxos/client/logging.proto}
292
- */
293
- export interface ControlMetricsRequest {
294
- /**
295
- * Options:
296
- * - proto3_optional = true
297
- */
298
- reset?: boolean;
299
- /**
300
- * Options:
301
- * - proto3_optional = true
302
- */
303
- record?: boolean;
304
- }
305
- /**
306
- * Defined in:
307
- * {@link file://./../../../dxos/client/logging.proto}
308
- */
309
- export interface ControlMetricsResponse {
310
- /**
311
- * Options:
312
- * - proto3_optional = true
313
- */
314
- recording?: boolean;
315
- }
316
- /**
317
- * Defined in:
318
- * {@link file://./../../../dxos/client/logging.proto}
319
- */
320
- export interface QueryMetricsRequest {
321
- /**
322
- * Options:
323
- * - proto3_optional = true
324
- */
325
- interval?: number;
326
- }
327
- /**
328
- * Defined in:
329
- * {@link file://./../../../dxos/client/logging.proto}
330
- */
331
- export interface QueryMetricsResponse {
332
- timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
333
- metrics: Metrics;
334
- }
335
- /**
336
- * Defined in:
337
- * {@link file://./../../../dxos/client/logging.proto}
338
- */
339
- export enum LogLevel {
340
- NONE = 0,
341
- TRACE = 5,
342
- DEBUG = 10,
343
- VERBOSE = 11,
344
- INFO = 12,
345
- WARN = 13,
346
- ERROR = 14
347
- }
348
- /**
349
- * Defined in:
350
- * {@link file://./../../../dxos/client/logging.proto}
351
- */
352
- export interface QueryLogsRequest {
353
- filters?: QueryLogsRequest.Filter[];
354
- /**
355
- * Options:
356
- * - proto3_optional = true
357
- */
358
- options?: QueryLogsRequest.MatchingOptions;
359
- }
360
- export namespace QueryLogsRequest {
361
- /**
362
- * Defined in:
363
- * {@link file://./../../../dxos/client/logging.proto}
364
- */
365
- export enum MatchingOptions {
366
- NONE = 0,
367
- INCLUSIVE = 1,
368
- EXPLICIT = 2
369
- }
370
- /**
371
- * Defined in:
372
- * {@link file://./../../../dxos/client/logging.proto}
373
- */
374
- export interface Filter {
375
- level: LogLevel;
376
- /**
377
- * Options:
378
- * - proto3_optional = true
379
- */
380
- pattern?: string;
381
- }
382
- }
383
- /**
384
- * Defined in:
385
- * {@link file://./../../../dxos/client/logging.proto}
386
- */
387
- export interface LogEntry {
388
- level: LogLevel;
389
- message: string;
390
- /**
391
- * Options:
392
- * - proto3_optional = true
393
- */
394
- context?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
395
- /**
396
- * Options:
397
- * - proto3_optional = true
398
- */
399
- meta?: LogEntry.Meta;
400
- /**
401
- * Options:
402
- * - proto3_optional = true
403
- */
404
- error?: dxos_error.Error;
405
- timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
406
- }
407
- export namespace LogEntry {
408
- /**
409
- * Defined in:
410
- * {@link file://./../../../dxos/client/logging.proto}
411
- */
412
- export interface Meta {
413
- file: string;
414
- line: number;
415
- /**
416
- * Options:
417
- * - proto3_optional = true
418
- */
419
- scope?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
420
- /**
421
- * Options:
422
- * - proto3_optional = true
423
- */
424
- resourceId?: number;
425
- }
426
- }
427
- /**
428
- * Defined in:
429
- * {@link file://./../../../dxos/client/logging.proto}
430
- */
431
- export interface LoggingService {
432
- controlMetrics: (request: ControlMetricsRequest, options?: RequestOptions) => Promise<ControlMetricsResponse>;
433
- queryMetrics: (request: QueryMetricsRequest, options?: RequestOptions) => Stream<QueryMetricsResponse>;
434
- queryLogs: (request: QueryLogsRequest, options?: RequestOptions) => Stream<LogEntry>;
435
- }
436
436
  /**
437
437
  * Defined in:
438
438
  * {@link file://./../../../dxos/client/services.proto}
@@ -82,14 +82,14 @@ export enum NullValue {
82
82
  export interface ListValue {
83
83
  values?: Value[];
84
84
  }
85
- export interface Timestamp {
86
- seconds: string;
87
- nanos: number;
88
- }
89
85
  export interface Any {
90
86
  type_url: string;
91
87
  value: Uint8Array;
92
88
  }
89
+ export interface Timestamp {
90
+ seconds: string;
91
+ nanos: number;
92
+ }
93
93
  export interface FileDescriptorSet {
94
94
  file?: FileDescriptorProto[];
95
95
  }