@dxos/protocols 0.6.7 → 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.
- package/dist/cjs/src/buf/index.d.ts +1 -0
- package/dist/cjs/src/buf/index.d.ts.map +1 -1
- package/dist/cjs/src/buf/index.js +3 -1
- package/dist/cjs/src/buf/index.js.map +1 -1
- package/dist/cjs/src/buf/proto/gen/dxos/echo/filter_pb.d.ts +17 -16
- package/dist/cjs/src/buf/proto/gen/dxos/echo/filter_pb.d.ts.map +1 -1
- package/dist/cjs/src/buf/proto/gen/dxos/echo/filter_pb.js +1 -1
- package/dist/cjs/src/buf/proto/gen/dxos/echo/filter_pb.js.map +1 -1
- package/dist/cjs/src/buf/proto/gen/dxos/echo/query_pb.d.ts +38 -5
- package/dist/cjs/src/buf/proto/gen/dxos/echo/query_pb.d.ts.map +1 -1
- package/dist/cjs/src/buf/proto/gen/dxos/echo/query_pb.js +24 -2
- package/dist/cjs/src/buf/proto/gen/dxos/echo/query_pb.js.map +1 -1
- package/dist/cjs/src/buf/proto/gen/dxos/echo/service_pb.d.ts +4 -0
- package/dist/cjs/src/buf/proto/gen/dxos/echo/service_pb.d.ts.map +1 -1
- package/dist/cjs/src/buf/proto/gen/dxos/echo/service_pb.js +1 -1
- package/dist/cjs/src/buf/proto/gen/dxos/echo/service_pb.js.map +1 -1
- package/dist/cjs/src/errors/base-errors.d.ts.map +1 -1
- package/dist/cjs/src/proto/gen/dxos/client/services.d.ts +302 -302
- package/dist/cjs/src/proto/gen/dxos/client/services.d.ts.map +1 -1
- package/dist/cjs/src/proto/gen/dxos/client/services.js +82 -82
- package/dist/cjs/src/proto/gen/dxos/client/services.js.map +1 -1
- package/dist/cjs/src/proto/gen/dxos/echo/filter.d.ts +13 -12
- package/dist/cjs/src/proto/gen/dxos/echo/filter.d.ts.map +1 -1
- package/dist/cjs/src/proto/gen/dxos/echo/filter.js.map +1 -1
- package/dist/cjs/src/proto/gen/dxos/echo/query.d.ts +20 -1
- package/dist/cjs/src/proto/gen/dxos/echo/query.d.ts.map +1 -1
- package/dist/cjs/src/proto/gen/dxos/echo/query.js +10 -0
- package/dist/cjs/src/proto/gen/dxos/echo/query.js.map +1 -1
- package/dist/cjs/src/proto/gen/dxos/echo/service.d.ts +1 -0
- package/dist/cjs/src/proto/gen/dxos/echo/service.d.ts.map +1 -1
- package/dist/cjs/src/proto/gen/index.d.ts +1 -0
- package/dist/cjs/src/proto/gen/index.d.ts.map +1 -1
- package/dist/cjs/src/proto/gen/index.js +1 -1
- package/dist/cjs/src/proto/gen/index.js.map +1 -1
- package/dist/cjs/src/proto/substitutions.d.ts +2 -5
- package/dist/cjs/src/proto/substitutions.d.ts.map +1 -1
- package/dist/cjs/tsconfig.tsbuildinfo +1 -1
- package/dist/esm/src/buf/index.d.ts +1 -0
- package/dist/esm/src/buf/index.d.ts.map +1 -1
- package/dist/esm/src/buf/index.js +1 -0
- package/dist/esm/src/buf/index.js.map +1 -1
- package/dist/esm/src/buf/proto/gen/dxos/echo/filter_pb.d.ts +17 -16
- package/dist/esm/src/buf/proto/gen/dxos/echo/filter_pb.d.ts.map +1 -1
- package/dist/esm/src/buf/proto/gen/dxos/echo/filter_pb.js +1 -1
- package/dist/esm/src/buf/proto/gen/dxos/echo/filter_pb.js.map +1 -1
- package/dist/esm/src/buf/proto/gen/dxos/echo/query_pb.d.ts +38 -5
- package/dist/esm/src/buf/proto/gen/dxos/echo/query_pb.d.ts.map +1 -1
- package/dist/esm/src/buf/proto/gen/dxos/echo/query_pb.js +24 -2
- package/dist/esm/src/buf/proto/gen/dxos/echo/query_pb.js.map +1 -1
- package/dist/esm/src/buf/proto/gen/dxos/echo/service_pb.d.ts +4 -0
- package/dist/esm/src/buf/proto/gen/dxos/echo/service_pb.d.ts.map +1 -1
- package/dist/esm/src/buf/proto/gen/dxos/echo/service_pb.js +1 -1
- package/dist/esm/src/buf/proto/gen/dxos/echo/service_pb.js.map +1 -1
- package/dist/esm/src/errors/base-errors.d.ts.map +1 -1
- package/dist/esm/src/proto/gen/dxos/client/services.d.ts +302 -302
- package/dist/esm/src/proto/gen/dxos/client/services.d.ts.map +1 -1
- package/dist/esm/src/proto/gen/dxos/client/services.js +81 -81
- package/dist/esm/src/proto/gen/dxos/client/services.js.map +1 -1
- package/dist/esm/src/proto/gen/dxos/echo/filter.d.ts +13 -12
- package/dist/esm/src/proto/gen/dxos/echo/filter.d.ts.map +1 -1
- package/dist/esm/src/proto/gen/dxos/echo/filter.js.map +1 -1
- package/dist/esm/src/proto/gen/dxos/echo/query.d.ts +20 -1
- package/dist/esm/src/proto/gen/dxos/echo/query.d.ts.map +1 -1
- package/dist/esm/src/proto/gen/dxos/echo/query.js +9 -1
- package/dist/esm/src/proto/gen/dxos/echo/query.js.map +1 -1
- package/dist/esm/src/proto/gen/dxos/echo/service.d.ts +1 -0
- package/dist/esm/src/proto/gen/dxos/echo/service.d.ts.map +1 -1
- package/dist/esm/src/proto/gen/index.d.ts +1 -0
- package/dist/esm/src/proto/gen/index.d.ts.map +1 -1
- package/dist/esm/src/proto/gen/index.js +1 -1
- package/dist/esm/src/proto/gen/index.js.map +1 -1
- package/dist/esm/src/proto/substitutions.d.ts +2 -4
- package/dist/esm/src/proto/substitutions.d.ts.map +1 -1
- package/package.json +6 -6
- package/src/buf/index.ts +2 -0
- package/src/buf/proto/gen/dxos/echo/filter_pb.ts +19 -18
- package/src/buf/proto/gen/dxos/echo/query_pb.ts +48 -8
- package/src/buf/proto/gen/dxos/echo/service_pb.ts +6 -1
- package/src/proto/dxos/echo/filter.proto +22 -16
- package/src/proto/dxos/echo/query.proto +14 -1
- package/src/proto/dxos/echo/service.proto +1 -0
- package/src/proto/gen/dxos/client/services.ts +302 -302
- package/src/proto/gen/dxos/echo/filter.ts +13 -12
- package/src/proto/gen/dxos/echo/query.ts +20 -1
- package/src/proto/gen/dxos/echo/service.ts +1 -0
- package/src/proto/gen/index.ts +2 -1
|
@@ -65,226 +65,234 @@ import * as example_testing_rpc from "../../example/testing/rpc";
|
|
|
65
65
|
import * as google_protobuf from "../../google/protobuf";
|
|
66
66
|
/**
|
|
67
67
|
* Defined in:
|
|
68
|
-
* {@link file://./../../../dxos/client/
|
|
68
|
+
* {@link file://./../../../dxos/client/invitation.proto}
|
|
69
69
|
*/
|
|
70
|
-
export interface
|
|
71
|
-
|
|
72
|
-
values?: Metrics.KeyPair[];
|
|
73
|
-
}
|
|
74
|
-
export namespace Metrics {
|
|
70
|
+
export interface AdmissionKeypair {
|
|
71
|
+
publicKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
75
72
|
/**
|
|
76
|
-
*
|
|
77
|
-
*
|
|
73
|
+
* Options:
|
|
74
|
+
* - proto3_optional = true
|
|
78
75
|
*/
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
76
|
+
privateKey?: ReturnType<(typeof substitutions)["dxos.keys.PrivateKey"]["decode"]>;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Runtime state of the space object.
|
|
80
|
+
*
|
|
81
|
+
* Defined in:
|
|
82
|
+
* {@link file://./../../../dxos/client/invitation.proto}
|
|
83
|
+
*/
|
|
84
|
+
export enum SpaceState {
|
|
85
|
+
INVALID = 0,
|
|
86
|
+
SPACE_INACTIVE = 2,
|
|
87
|
+
SPACE_ACTIVE = 6,
|
|
88
|
+
SPACE_CLOSED = 1,
|
|
89
|
+
SPACE_CONTROL_ONLY = 7,
|
|
90
|
+
SPACE_INITIALIZING = 4,
|
|
91
|
+
SPACE_READY = 3,
|
|
92
|
+
SPACE_ERROR = 5,
|
|
93
|
+
SPACE_REQUIRES_MIGRATION = 8
|
|
96
94
|
}
|
|
97
95
|
/**
|
|
96
|
+
* Represents the invitation state passed between client and service.
|
|
97
|
+
*
|
|
98
98
|
* Defined in:
|
|
99
|
-
* {@link file://./../../../dxos/client/
|
|
99
|
+
* {@link file://./../../../dxos/client/invitation.proto}
|
|
100
100
|
*/
|
|
101
|
-
export interface
|
|
101
|
+
export interface Invitation {
|
|
102
102
|
/**
|
|
103
|
-
*
|
|
104
|
-
* - proto3_optional = true
|
|
103
|
+
* Local identifier (random).
|
|
105
104
|
*/
|
|
106
|
-
|
|
105
|
+
invitationId: string;
|
|
106
|
+
/**
|
|
107
|
+
* Determines the behavior of the invitation.
|
|
108
|
+
*/
|
|
109
|
+
type: Invitation.Type;
|
|
110
|
+
/**
|
|
111
|
+
* Kind of access the invitation will grant.
|
|
112
|
+
*/
|
|
113
|
+
kind: Invitation.Kind;
|
|
114
|
+
/**
|
|
115
|
+
* How the invitation is authenticated.
|
|
116
|
+
*/
|
|
117
|
+
authMethod: Invitation.AuthMethod;
|
|
118
|
+
/**
|
|
119
|
+
* Swarm rendezvous (random).
|
|
120
|
+
*/
|
|
121
|
+
swarmKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
122
|
+
/**
|
|
123
|
+
* Local state.
|
|
124
|
+
*/
|
|
125
|
+
state: Invitation.State;
|
|
107
126
|
/**
|
|
127
|
+
* Timeout for guest to complete invitation once connected (ms).
|
|
128
|
+
*
|
|
108
129
|
* Options:
|
|
109
130
|
* - proto3_optional = true
|
|
110
131
|
*/
|
|
111
|
-
|
|
112
|
-
}
|
|
113
|
-
/**
|
|
114
|
-
* Defined in:
|
|
115
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
116
|
-
*/
|
|
117
|
-
export interface ControlMetricsResponse {
|
|
132
|
+
timeout?: number;
|
|
118
133
|
/**
|
|
134
|
+
* Guest's identity.
|
|
135
|
+
*
|
|
119
136
|
* Options:
|
|
120
137
|
* - proto3_optional = true
|
|
121
138
|
*/
|
|
122
|
-
|
|
123
|
-
}
|
|
124
|
-
/**
|
|
125
|
-
* Defined in:
|
|
126
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
127
|
-
*/
|
|
128
|
-
export interface QueryMetricsRequest {
|
|
139
|
+
identityKey?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
129
140
|
/**
|
|
141
|
+
* Space to join (only present if kind is SPACE).
|
|
142
|
+
*
|
|
130
143
|
* Options:
|
|
131
144
|
* - proto3_optional = true
|
|
132
145
|
*/
|
|
133
|
-
|
|
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[];
|
|
146
|
+
spaceKey?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
161
147
|
/**
|
|
148
|
+
* Authentication code created by host (only present if auth_method is SHARED_SECRET).
|
|
149
|
+
*
|
|
162
150
|
* Options:
|
|
163
151
|
* - proto3_optional = true
|
|
164
152
|
*/
|
|
165
|
-
|
|
166
|
-
}
|
|
167
|
-
export namespace QueryLogsRequest {
|
|
153
|
+
authCode?: string;
|
|
168
154
|
/**
|
|
169
|
-
*
|
|
170
|
-
*
|
|
155
|
+
* Path or identifier to navigate to after successful authentication.
|
|
156
|
+
*
|
|
157
|
+
* Options:
|
|
158
|
+
* - proto3_optional = true
|
|
171
159
|
*/
|
|
172
|
-
|
|
173
|
-
NONE = 0,
|
|
174
|
-
INCLUSIVE = 1,
|
|
175
|
-
EXPLICIT = 2
|
|
176
|
-
}
|
|
160
|
+
target?: string;
|
|
177
161
|
/**
|
|
178
|
-
*
|
|
179
|
-
*
|
|
162
|
+
* Host should resume invitation on startup until timeout.
|
|
163
|
+
*
|
|
164
|
+
* Options:
|
|
165
|
+
* - proto3_optional = true
|
|
180
166
|
*/
|
|
181
|
-
|
|
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;
|
|
167
|
+
persistent?: boolean;
|
|
197
168
|
/**
|
|
198
169
|
* Options:
|
|
199
170
|
* - proto3_optional = true
|
|
200
171
|
*/
|
|
201
|
-
|
|
172
|
+
created?: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
202
173
|
/**
|
|
203
174
|
* Options:
|
|
204
175
|
* - proto3_optional = true
|
|
205
176
|
*/
|
|
206
|
-
|
|
177
|
+
lifetime?: number;
|
|
207
178
|
/**
|
|
179
|
+
* Whether an invitation can be used multiple times.
|
|
180
|
+
*
|
|
208
181
|
* Options:
|
|
209
182
|
* - proto3_optional = true
|
|
210
183
|
*/
|
|
211
|
-
|
|
212
|
-
timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
213
|
-
}
|
|
214
|
-
export namespace LogEntry {
|
|
184
|
+
multiUse?: boolean;
|
|
215
185
|
/**
|
|
216
|
-
*
|
|
217
|
-
*
|
|
186
|
+
* Guest's keypair required for AuthMethod.KNOWN_PUBLIC_KEY.
|
|
187
|
+
*
|
|
188
|
+
* Options:
|
|
189
|
+
* - proto3_optional = true
|
|
218
190
|
*/
|
|
219
|
-
|
|
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
|
-
/**
|
|
244
|
-
* Defined in:
|
|
245
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
246
|
-
*/
|
|
247
|
-
export enum SystemStatus {
|
|
248
|
-
ACTIVE = 0,
|
|
249
|
-
INACTIVE = 1
|
|
250
|
-
}
|
|
251
|
-
/**
|
|
252
|
-
* Defined in:
|
|
253
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
254
|
-
*/
|
|
255
|
-
export interface UpdateStatusRequest {
|
|
256
|
-
status: SystemStatus;
|
|
257
|
-
}
|
|
258
|
-
/**
|
|
259
|
-
* Defined in:
|
|
260
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
261
|
-
*/
|
|
262
|
-
export interface QueryStatusRequest {
|
|
191
|
+
guestKeypair?: AdmissionKeypair;
|
|
263
192
|
/**
|
|
193
|
+
* Present on Type.DELEGATED invitations.
|
|
194
|
+
*
|
|
264
195
|
* Options:
|
|
265
196
|
* - proto3_optional = true
|
|
266
197
|
*/
|
|
267
|
-
|
|
268
|
-
}
|
|
269
|
-
/**
|
|
270
|
-
* Defined in:
|
|
271
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
272
|
-
*/
|
|
273
|
-
export interface QueryStatusResponse {
|
|
274
|
-
status: SystemStatus;
|
|
275
|
-
}
|
|
276
|
-
/**
|
|
277
|
-
* Defined in:
|
|
278
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
279
|
-
*/
|
|
280
|
-
export interface GetDiagnosticsRequest {
|
|
198
|
+
delegationCredentialId?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
281
199
|
/**
|
|
200
|
+
* Role of the admitted member, defaults to ADMIN.
|
|
201
|
+
*
|
|
282
202
|
* Options:
|
|
283
203
|
* - proto3_optional = true
|
|
284
204
|
*/
|
|
285
|
-
|
|
205
|
+
role?: dxos_halo_credentials.SpaceMember.Role;
|
|
286
206
|
}
|
|
287
|
-
export namespace
|
|
207
|
+
export namespace Invitation {
|
|
208
|
+
/**
|
|
209
|
+
* Defined in:
|
|
210
|
+
* {@link file://./../../../dxos/client/invitation.proto}
|
|
211
|
+
*/
|
|
212
|
+
export enum Type {
|
|
213
|
+
INTERACTIVE = 0,
|
|
214
|
+
DELEGATED = 1,
|
|
215
|
+
MULTIUSE = 2
|
|
216
|
+
}
|
|
217
|
+
/**
|
|
218
|
+
* Defined in:
|
|
219
|
+
* {@link file://./../../../dxos/client/invitation.proto}
|
|
220
|
+
*/
|
|
221
|
+
export enum Kind {
|
|
222
|
+
DEVICE = 0,
|
|
223
|
+
SPACE = 1
|
|
224
|
+
}
|
|
225
|
+
/**
|
|
226
|
+
* Defined in:
|
|
227
|
+
* {@link file://./../../../dxos/client/invitation.proto}
|
|
228
|
+
*/
|
|
229
|
+
export enum AuthMethod {
|
|
230
|
+
NONE = 0,
|
|
231
|
+
SHARED_SECRET = 1,
|
|
232
|
+
KNOWN_PUBLIC_KEY = 2
|
|
233
|
+
}
|
|
234
|
+
/**
|
|
235
|
+
* Defined in:
|
|
236
|
+
* {@link file://./../../../dxos/client/invitation.proto}
|
|
237
|
+
*/
|
|
238
|
+
export enum State {
|
|
239
|
+
INIT = 0,
|
|
240
|
+
CONNECTING = 1,
|
|
241
|
+
CONNECTED = 2,
|
|
242
|
+
READY_FOR_AUTHENTICATION = 3,
|
|
243
|
+
AUTHENTICATING = 4,
|
|
244
|
+
SUCCESS = 5,
|
|
245
|
+
CANCELLED = 6,
|
|
246
|
+
TIMEOUT = 7,
|
|
247
|
+
ERROR = 8,
|
|
248
|
+
EXPIRED = 9
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
/**
|
|
252
|
+
* Defined in:
|
|
253
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
254
|
+
*/
|
|
255
|
+
export enum SystemStatus {
|
|
256
|
+
ACTIVE = 0,
|
|
257
|
+
INACTIVE = 1
|
|
258
|
+
}
|
|
259
|
+
/**
|
|
260
|
+
* Defined in:
|
|
261
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
262
|
+
*/
|
|
263
|
+
export interface UpdateStatusRequest {
|
|
264
|
+
status: SystemStatus;
|
|
265
|
+
}
|
|
266
|
+
/**
|
|
267
|
+
* Defined in:
|
|
268
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
269
|
+
*/
|
|
270
|
+
export interface QueryStatusRequest {
|
|
271
|
+
/**
|
|
272
|
+
* Options:
|
|
273
|
+
* - proto3_optional = true
|
|
274
|
+
*/
|
|
275
|
+
interval?: number;
|
|
276
|
+
}
|
|
277
|
+
/**
|
|
278
|
+
* Defined in:
|
|
279
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
280
|
+
*/
|
|
281
|
+
export interface QueryStatusResponse {
|
|
282
|
+
status: SystemStatus;
|
|
283
|
+
}
|
|
284
|
+
/**
|
|
285
|
+
* Defined in:
|
|
286
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
287
|
+
*/
|
|
288
|
+
export interface GetDiagnosticsRequest {
|
|
289
|
+
/**
|
|
290
|
+
* Options:
|
|
291
|
+
* - proto3_optional = true
|
|
292
|
+
*/
|
|
293
|
+
keys?: GetDiagnosticsRequest.KEY_OPTION;
|
|
294
|
+
}
|
|
295
|
+
export namespace GetDiagnosticsRequest {
|
|
288
296
|
/**
|
|
289
297
|
* Defined in:
|
|
290
298
|
* {@link file://./../../../dxos/client/services.proto}
|
|
@@ -1047,186 +1055,178 @@ export interface NetworkService {
|
|
|
1047
1055
|
}
|
|
1048
1056
|
/**
|
|
1049
1057
|
* Defined in:
|
|
1050
|
-
* {@link file://./../../../dxos/client/
|
|
1058
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
1051
1059
|
*/
|
|
1052
|
-
export interface
|
|
1053
|
-
|
|
1060
|
+
export interface Metrics {
|
|
1061
|
+
timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
1062
|
+
values?: Metrics.KeyPair[];
|
|
1063
|
+
}
|
|
1064
|
+
export namespace Metrics {
|
|
1054
1065
|
/**
|
|
1055
|
-
*
|
|
1056
|
-
*
|
|
1066
|
+
* Defined in:
|
|
1067
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
1057
1068
|
*/
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
SPACE_REQUIRES_MIGRATION = 8
|
|
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
|
+
}
|
|
1076
1086
|
}
|
|
1077
1087
|
/**
|
|
1078
|
-
* Represents the invitation state passed between client and service.
|
|
1079
|
-
*
|
|
1080
1088
|
* Defined in:
|
|
1081
|
-
* {@link file://./../../../dxos/client/
|
|
1089
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
1082
1090
|
*/
|
|
1083
|
-
export interface
|
|
1084
|
-
/**
|
|
1085
|
-
* Local identifier (random).
|
|
1086
|
-
*/
|
|
1087
|
-
invitationId: string;
|
|
1088
|
-
/**
|
|
1089
|
-
* Determines the behavior of the invitation.
|
|
1090
|
-
*/
|
|
1091
|
-
type: Invitation.Type;
|
|
1092
|
-
/**
|
|
1093
|
-
* Kind of access the invitation will grant.
|
|
1094
|
-
*/
|
|
1095
|
-
kind: Invitation.Kind;
|
|
1096
|
-
/**
|
|
1097
|
-
* How the invitation is authenticated.
|
|
1098
|
-
*/
|
|
1099
|
-
authMethod: Invitation.AuthMethod;
|
|
1100
|
-
/**
|
|
1101
|
-
* Swarm rendezvous (random).
|
|
1102
|
-
*/
|
|
1103
|
-
swarmKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
1104
|
-
/**
|
|
1105
|
-
* Local state.
|
|
1106
|
-
*/
|
|
1107
|
-
state: Invitation.State;
|
|
1108
|
-
/**
|
|
1109
|
-
* Timeout for guest to complete invitation once connected (ms).
|
|
1110
|
-
*
|
|
1111
|
-
* Options:
|
|
1112
|
-
* - proto3_optional = true
|
|
1113
|
-
*/
|
|
1114
|
-
timeout?: number;
|
|
1115
|
-
/**
|
|
1116
|
-
* Guest's identity.
|
|
1117
|
-
*
|
|
1118
|
-
* Options:
|
|
1119
|
-
* - proto3_optional = true
|
|
1120
|
-
*/
|
|
1121
|
-
identityKey?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
1091
|
+
export interface ControlMetricsRequest {
|
|
1122
1092
|
/**
|
|
1123
|
-
* Space to join (only present if kind is SPACE).
|
|
1124
|
-
*
|
|
1125
1093
|
* Options:
|
|
1126
1094
|
* - proto3_optional = true
|
|
1127
1095
|
*/
|
|
1128
|
-
|
|
1096
|
+
reset?: boolean;
|
|
1129
1097
|
/**
|
|
1130
|
-
* Authentication code created by host (only present if auth_method is SHARED_SECRET).
|
|
1131
|
-
*
|
|
1132
1098
|
* Options:
|
|
1133
1099
|
* - proto3_optional = true
|
|
1134
1100
|
*/
|
|
1135
|
-
|
|
1101
|
+
record?: boolean;
|
|
1102
|
+
}
|
|
1103
|
+
/**
|
|
1104
|
+
* Defined in:
|
|
1105
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
1106
|
+
*/
|
|
1107
|
+
export interface ControlMetricsResponse {
|
|
1136
1108
|
/**
|
|
1137
|
-
* Path or identifier to navigate to after successful authentication.
|
|
1138
|
-
*
|
|
1139
1109
|
* Options:
|
|
1140
1110
|
* - proto3_optional = true
|
|
1141
1111
|
*/
|
|
1142
|
-
|
|
1112
|
+
recording?: boolean;
|
|
1113
|
+
}
|
|
1114
|
+
/**
|
|
1115
|
+
* Defined in:
|
|
1116
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
1117
|
+
*/
|
|
1118
|
+
export interface QueryMetricsRequest {
|
|
1143
1119
|
/**
|
|
1144
|
-
* Host should resume invitation on startup until timeout.
|
|
1145
|
-
*
|
|
1146
1120
|
* Options:
|
|
1147
1121
|
* - proto3_optional = true
|
|
1148
1122
|
*/
|
|
1149
|
-
|
|
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[];
|
|
1150
1151
|
/**
|
|
1151
1152
|
* Options:
|
|
1152
1153
|
* - proto3_optional = true
|
|
1153
1154
|
*/
|
|
1154
|
-
|
|
1155
|
+
options?: QueryLogsRequest.MatchingOptions;
|
|
1156
|
+
}
|
|
1157
|
+
export namespace QueryLogsRequest {
|
|
1155
1158
|
/**
|
|
1156
|
-
*
|
|
1157
|
-
*
|
|
1159
|
+
* Defined in:
|
|
1160
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
1158
1161
|
*/
|
|
1159
|
-
|
|
1162
|
+
export enum MatchingOptions {
|
|
1163
|
+
NONE = 0,
|
|
1164
|
+
INCLUSIVE = 1,
|
|
1165
|
+
EXPLICIT = 2
|
|
1166
|
+
}
|
|
1160
1167
|
/**
|
|
1161
|
-
*
|
|
1162
|
-
*
|
|
1163
|
-
* Options:
|
|
1164
|
-
* - proto3_optional = true
|
|
1168
|
+
* Defined in:
|
|
1169
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
1165
1170
|
*/
|
|
1166
|
-
|
|
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;
|
|
1167
1187
|
/**
|
|
1168
|
-
* Guest's keypair required for AuthMethod.KNOWN_PUBLIC_KEY.
|
|
1169
|
-
*
|
|
1170
1188
|
* Options:
|
|
1171
1189
|
* - proto3_optional = true
|
|
1172
1190
|
*/
|
|
1173
|
-
|
|
1191
|
+
context?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
|
|
1174
1192
|
/**
|
|
1175
|
-
* Present on Type.DELEGATED invitations.
|
|
1176
|
-
*
|
|
1177
1193
|
* Options:
|
|
1178
1194
|
* - proto3_optional = true
|
|
1179
1195
|
*/
|
|
1180
|
-
|
|
1196
|
+
meta?: LogEntry.Meta;
|
|
1181
1197
|
/**
|
|
1182
|
-
* Role of the admitted member, defaults to ADMIN.
|
|
1183
|
-
*
|
|
1184
1198
|
* Options:
|
|
1185
1199
|
* - proto3_optional = true
|
|
1186
1200
|
*/
|
|
1187
|
-
|
|
1201
|
+
error?: dxos_error.Error;
|
|
1202
|
+
timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
1188
1203
|
}
|
|
1189
|
-
export namespace
|
|
1190
|
-
/**
|
|
1191
|
-
* Defined in:
|
|
1192
|
-
* {@link file://./../../../dxos/client/invitation.proto}
|
|
1193
|
-
*/
|
|
1194
|
-
export enum Type {
|
|
1195
|
-
INTERACTIVE = 0,
|
|
1196
|
-
DELEGATED = 1,
|
|
1197
|
-
MULTIUSE = 2
|
|
1198
|
-
}
|
|
1199
|
-
/**
|
|
1200
|
-
* Defined in:
|
|
1201
|
-
* {@link file://./../../../dxos/client/invitation.proto}
|
|
1202
|
-
*/
|
|
1203
|
-
export enum Kind {
|
|
1204
|
-
DEVICE = 0,
|
|
1205
|
-
SPACE = 1
|
|
1206
|
-
}
|
|
1207
|
-
/**
|
|
1208
|
-
* Defined in:
|
|
1209
|
-
* {@link file://./../../../dxos/client/invitation.proto}
|
|
1210
|
-
*/
|
|
1211
|
-
export enum AuthMethod {
|
|
1212
|
-
NONE = 0,
|
|
1213
|
-
SHARED_SECRET = 1,
|
|
1214
|
-
KNOWN_PUBLIC_KEY = 2
|
|
1215
|
-
}
|
|
1204
|
+
export namespace LogEntry {
|
|
1216
1205
|
/**
|
|
1217
1206
|
* Defined in:
|
|
1218
|
-
* {@link file://./../../../dxos/client/
|
|
1207
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
1219
1208
|
*/
|
|
1220
|
-
export
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
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;
|
|
1231
1222
|
}
|
|
1232
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
|
+
}
|