@dxos/protocols 0.6.14-staging.77003c1 → 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}
@@ -1105,181 +1283,3 @@ export namespace QueryAgentStatusResponse {
1105
1283
  NOT_FOUND = 3
1106
1284
  }
1107
1285
  }
1108
- /**
1109
- * Defined in:
1110
- * {@link file://./../../../dxos/client/logging.proto}
1111
- */
1112
- export interface Metrics {
1113
- timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
1114
- values?: Metrics.KeyPair[];
1115
- }
1116
- export namespace Metrics {
1117
- /**
1118
- * Defined in:
1119
- * {@link file://./../../../dxos/client/logging.proto}
1120
- */
1121
- export interface KeyPair {
1122
- /**
1123
- * Options:
1124
- * - proto3_optional = true
1125
- */
1126
- key?: string;
1127
- /**
1128
- * Options:
1129
- * - proto3_optional = true
1130
- */
1131
- value?: dxos_value.Value;
1132
- /**
1133
- * Options:
1134
- * - proto3_optional = true
1135
- */
1136
- stats?: dxos_value.Stats;
1137
- }
1138
- }
1139
- /**
1140
- * Defined in:
1141
- * {@link file://./../../../dxos/client/logging.proto}
1142
- */
1143
- export interface ControlMetricsRequest {
1144
- /**
1145
- * Options:
1146
- * - proto3_optional = true
1147
- */
1148
- reset?: boolean;
1149
- /**
1150
- * Options:
1151
- * - proto3_optional = true
1152
- */
1153
- record?: boolean;
1154
- }
1155
- /**
1156
- * Defined in:
1157
- * {@link file://./../../../dxos/client/logging.proto}
1158
- */
1159
- export interface ControlMetricsResponse {
1160
- /**
1161
- * Options:
1162
- * - proto3_optional = true
1163
- */
1164
- recording?: boolean;
1165
- }
1166
- /**
1167
- * Defined in:
1168
- * {@link file://./../../../dxos/client/logging.proto}
1169
- */
1170
- export interface QueryMetricsRequest {
1171
- /**
1172
- * Options:
1173
- * - proto3_optional = true
1174
- */
1175
- interval?: number;
1176
- }
1177
- /**
1178
- * Defined in:
1179
- * {@link file://./../../../dxos/client/logging.proto}
1180
- */
1181
- export interface QueryMetricsResponse {
1182
- timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
1183
- metrics: Metrics;
1184
- }
1185
- /**
1186
- * Defined in:
1187
- * {@link file://./../../../dxos/client/logging.proto}
1188
- */
1189
- export enum LogLevel {
1190
- NONE = 0,
1191
- TRACE = 5,
1192
- DEBUG = 10,
1193
- VERBOSE = 11,
1194
- INFO = 12,
1195
- WARN = 13,
1196
- ERROR = 14
1197
- }
1198
- /**
1199
- * Defined in:
1200
- * {@link file://./../../../dxos/client/logging.proto}
1201
- */
1202
- export interface QueryLogsRequest {
1203
- filters?: QueryLogsRequest.Filter[];
1204
- /**
1205
- * Options:
1206
- * - proto3_optional = true
1207
- */
1208
- options?: QueryLogsRequest.MatchingOptions;
1209
- }
1210
- export namespace QueryLogsRequest {
1211
- /**
1212
- * Defined in:
1213
- * {@link file://./../../../dxos/client/logging.proto}
1214
- */
1215
- export enum MatchingOptions {
1216
- NONE = 0,
1217
- INCLUSIVE = 1,
1218
- EXPLICIT = 2
1219
- }
1220
- /**
1221
- * Defined in:
1222
- * {@link file://./../../../dxos/client/logging.proto}
1223
- */
1224
- export interface Filter {
1225
- level: LogLevel;
1226
- /**
1227
- * Options:
1228
- * - proto3_optional = true
1229
- */
1230
- pattern?: string;
1231
- }
1232
- }
1233
- /**
1234
- * Defined in:
1235
- * {@link file://./../../../dxos/client/logging.proto}
1236
- */
1237
- export interface LogEntry {
1238
- level: LogLevel;
1239
- message: string;
1240
- /**
1241
- * Options:
1242
- * - proto3_optional = true
1243
- */
1244
- context?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
1245
- /**
1246
- * Options:
1247
- * - proto3_optional = true
1248
- */
1249
- meta?: LogEntry.Meta;
1250
- /**
1251
- * Options:
1252
- * - proto3_optional = true
1253
- */
1254
- error?: dxos_error.Error;
1255
- timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
1256
- }
1257
- export namespace LogEntry {
1258
- /**
1259
- * Defined in:
1260
- * {@link file://./../../../dxos/client/logging.proto}
1261
- */
1262
- export interface Meta {
1263
- file: string;
1264
- line: number;
1265
- /**
1266
- * Options:
1267
- * - proto3_optional = true
1268
- */
1269
- scope?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
1270
- /**
1271
- * Options:
1272
- * - proto3_optional = true
1273
- */
1274
- resourceId?: number;
1275
- }
1276
- }
1277
- /**
1278
- * Defined in:
1279
- * {@link file://./../../../dxos/client/logging.proto}
1280
- */
1281
- export interface LoggingService {
1282
- controlMetrics: (request: ControlMetricsRequest, options?: RequestOptions) => Promise<ControlMetricsResponse>;
1283
- queryMetrics: (request: QueryMetricsRequest, options?: RequestOptions) => Stream<QueryMetricsResponse>;
1284
- queryLogs: (request: QueryLogsRequest, options?: RequestOptions) => Stream<LogEntry>;
1285
- }
@@ -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
  }