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