@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
|
@@ -11,234 +11,226 @@ import * as dxos_mesh_teleport_gossip from "../mesh/teleport/gossip";
|
|
|
11
11
|
import * as dxos_value from "../value";
|
|
12
12
|
/**
|
|
13
13
|
* Defined in:
|
|
14
|
-
* {@link file://./../../../dxos/client/
|
|
14
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
15
15
|
*/
|
|
16
|
-
export interface
|
|
17
|
-
|
|
16
|
+
export interface Metrics {
|
|
17
|
+
timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
18
|
+
values?: Metrics.KeyPair[];
|
|
19
|
+
}
|
|
20
|
+
export declare namespace Metrics {
|
|
18
21
|
/**
|
|
19
|
-
*
|
|
20
|
-
*
|
|
22
|
+
* Defined in:
|
|
23
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
21
24
|
*/
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
SPACE_REQUIRES_MIGRATION = 8
|
|
25
|
+
interface KeyPair {
|
|
26
|
+
/**
|
|
27
|
+
* Options:
|
|
28
|
+
* - proto3_optional = true
|
|
29
|
+
*/
|
|
30
|
+
key?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Options:
|
|
33
|
+
* - proto3_optional = true
|
|
34
|
+
*/
|
|
35
|
+
value?: dxos_value.Value;
|
|
36
|
+
/**
|
|
37
|
+
* Options:
|
|
38
|
+
* - proto3_optional = true
|
|
39
|
+
*/
|
|
40
|
+
stats?: dxos_value.Stats;
|
|
41
|
+
}
|
|
40
42
|
}
|
|
41
43
|
/**
|
|
42
|
-
* Represents the invitation state passed between client and service.
|
|
43
|
-
*
|
|
44
44
|
* Defined in:
|
|
45
|
-
* {@link file://./../../../dxos/client/
|
|
45
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
46
46
|
*/
|
|
47
|
-
export interface
|
|
48
|
-
/**
|
|
49
|
-
* Local identifier (random).
|
|
50
|
-
*/
|
|
51
|
-
invitationId: string;
|
|
52
|
-
/**
|
|
53
|
-
* Determines the behavior of the invitation.
|
|
54
|
-
*/
|
|
55
|
-
type: Invitation.Type;
|
|
56
|
-
/**
|
|
57
|
-
* Kind of access the invitation will grant.
|
|
58
|
-
*/
|
|
59
|
-
kind: Invitation.Kind;
|
|
60
|
-
/**
|
|
61
|
-
* How the invitation is authenticated.
|
|
62
|
-
*/
|
|
63
|
-
authMethod: Invitation.AuthMethod;
|
|
64
|
-
/**
|
|
65
|
-
* Swarm rendezvous (random).
|
|
66
|
-
*/
|
|
67
|
-
swarmKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
68
|
-
/**
|
|
69
|
-
* Local state.
|
|
70
|
-
*/
|
|
71
|
-
state: Invitation.State;
|
|
47
|
+
export interface ControlMetricsRequest {
|
|
72
48
|
/**
|
|
73
|
-
* Timeout for guest to complete invitation once connected (ms).
|
|
74
|
-
*
|
|
75
49
|
* Options:
|
|
76
50
|
* - proto3_optional = true
|
|
77
51
|
*/
|
|
78
|
-
|
|
52
|
+
reset?: boolean;
|
|
79
53
|
/**
|
|
80
|
-
* Guest's identity.
|
|
81
|
-
*
|
|
82
54
|
* Options:
|
|
83
55
|
* - proto3_optional = true
|
|
84
56
|
*/
|
|
85
|
-
|
|
57
|
+
record?: boolean;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Defined in:
|
|
61
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
62
|
+
*/
|
|
63
|
+
export interface ControlMetricsResponse {
|
|
86
64
|
/**
|
|
87
|
-
* Space to join (only present if kind is SPACE).
|
|
88
|
-
*
|
|
89
65
|
* Options:
|
|
90
66
|
* - proto3_optional = true
|
|
91
67
|
*/
|
|
92
|
-
|
|
68
|
+
recording?: boolean;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Defined in:
|
|
72
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
73
|
+
*/
|
|
74
|
+
export interface QueryMetricsRequest {
|
|
93
75
|
/**
|
|
94
|
-
* Authentication code created by host (only present if auth_method is SHARED_SECRET).
|
|
95
|
-
*
|
|
96
76
|
* Options:
|
|
97
77
|
* - proto3_optional = true
|
|
98
78
|
*/
|
|
99
|
-
|
|
79
|
+
interval?: number;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Defined in:
|
|
83
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
84
|
+
*/
|
|
85
|
+
export interface QueryMetricsResponse {
|
|
86
|
+
timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
87
|
+
metrics: Metrics;
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Defined in:
|
|
91
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
92
|
+
*/
|
|
93
|
+
export declare enum LogLevel {
|
|
94
|
+
NONE = 0,
|
|
95
|
+
TRACE = 5,
|
|
96
|
+
DEBUG = 10,
|
|
97
|
+
INFO = 11,
|
|
98
|
+
WARN = 12,
|
|
99
|
+
ERROR = 13
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Defined in:
|
|
103
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
104
|
+
*/
|
|
105
|
+
export interface QueryLogsRequest {
|
|
106
|
+
filters?: QueryLogsRequest.Filter[];
|
|
100
107
|
/**
|
|
101
|
-
* Path or identifier to navigate to after successful authentication.
|
|
102
|
-
*
|
|
103
108
|
* Options:
|
|
104
109
|
* - proto3_optional = true
|
|
105
110
|
*/
|
|
106
|
-
|
|
111
|
+
options?: QueryLogsRequest.MatchingOptions;
|
|
112
|
+
}
|
|
113
|
+
export declare namespace QueryLogsRequest {
|
|
107
114
|
/**
|
|
108
|
-
*
|
|
109
|
-
*
|
|
110
|
-
* Options:
|
|
111
|
-
* - proto3_optional = true
|
|
115
|
+
* Defined in:
|
|
116
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
112
117
|
*/
|
|
113
|
-
|
|
118
|
+
enum MatchingOptions {
|
|
119
|
+
NONE = 0,
|
|
120
|
+
INCLUSIVE = 1,
|
|
121
|
+
EXPLICIT = 2
|
|
122
|
+
}
|
|
114
123
|
/**
|
|
115
|
-
*
|
|
116
|
-
*
|
|
124
|
+
* Defined in:
|
|
125
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
117
126
|
*/
|
|
118
|
-
|
|
127
|
+
interface Filter {
|
|
128
|
+
level: LogLevel;
|
|
129
|
+
/**
|
|
130
|
+
* Options:
|
|
131
|
+
* - proto3_optional = true
|
|
132
|
+
*/
|
|
133
|
+
pattern?: string;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* Defined in:
|
|
138
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
139
|
+
*/
|
|
140
|
+
export interface LogEntry {
|
|
141
|
+
level: LogLevel;
|
|
142
|
+
message: string;
|
|
119
143
|
/**
|
|
120
144
|
* Options:
|
|
121
145
|
* - proto3_optional = true
|
|
122
146
|
*/
|
|
123
|
-
|
|
147
|
+
context?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
|
|
124
148
|
/**
|
|
125
|
-
* Whether an invitation can be used multiple times.
|
|
126
|
-
*
|
|
127
149
|
* Options:
|
|
128
150
|
* - proto3_optional = true
|
|
129
151
|
*/
|
|
130
|
-
|
|
152
|
+
meta?: LogEntry.Meta;
|
|
131
153
|
/**
|
|
132
|
-
* Guest's keypair required for AuthMethod.KNOWN_PUBLIC_KEY.
|
|
133
|
-
*
|
|
134
154
|
* Options:
|
|
135
155
|
* - proto3_optional = true
|
|
136
156
|
*/
|
|
137
|
-
|
|
157
|
+
error?: dxos_error.Error;
|
|
158
|
+
timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
159
|
+
}
|
|
160
|
+
export declare namespace LogEntry {
|
|
161
|
+
/**
|
|
162
|
+
* Defined in:
|
|
163
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
164
|
+
*/
|
|
165
|
+
interface Meta {
|
|
166
|
+
file: string;
|
|
167
|
+
line: number;
|
|
168
|
+
/**
|
|
169
|
+
* Options:
|
|
170
|
+
* - proto3_optional = true
|
|
171
|
+
*/
|
|
172
|
+
scope?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
|
|
173
|
+
/**
|
|
174
|
+
* Options:
|
|
175
|
+
* - proto3_optional = true
|
|
176
|
+
*/
|
|
177
|
+
resourceId?: number;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
/**
|
|
181
|
+
* Defined in:
|
|
182
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
183
|
+
*/
|
|
184
|
+
export interface LoggingService {
|
|
185
|
+
controlMetrics: (request: ControlMetricsRequest, options?: RequestOptions) => Promise<ControlMetricsResponse>;
|
|
186
|
+
queryMetrics: (request: QueryMetricsRequest, options?: RequestOptions) => Stream<QueryMetricsResponse>;
|
|
187
|
+
queryLogs: (request: QueryLogsRequest, options?: RequestOptions) => Stream<LogEntry>;
|
|
188
|
+
}
|
|
189
|
+
/**
|
|
190
|
+
* Defined in:
|
|
191
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
192
|
+
*/
|
|
193
|
+
export declare enum SystemStatus {
|
|
194
|
+
ACTIVE = 0,
|
|
195
|
+
INACTIVE = 1
|
|
196
|
+
}
|
|
197
|
+
/**
|
|
198
|
+
* Defined in:
|
|
199
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
200
|
+
*/
|
|
201
|
+
export interface UpdateStatusRequest {
|
|
202
|
+
status: SystemStatus;
|
|
203
|
+
}
|
|
204
|
+
/**
|
|
205
|
+
* Defined in:
|
|
206
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
207
|
+
*/
|
|
208
|
+
export interface QueryStatusRequest {
|
|
138
209
|
/**
|
|
139
|
-
* Present on Type.DELEGATED invitations.
|
|
140
|
-
*
|
|
141
210
|
* Options:
|
|
142
211
|
* - proto3_optional = true
|
|
143
212
|
*/
|
|
144
|
-
|
|
213
|
+
interval?: number;
|
|
214
|
+
}
|
|
215
|
+
/**
|
|
216
|
+
* Defined in:
|
|
217
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
218
|
+
*/
|
|
219
|
+
export interface QueryStatusResponse {
|
|
220
|
+
status: SystemStatus;
|
|
221
|
+
}
|
|
222
|
+
/**
|
|
223
|
+
* Defined in:
|
|
224
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
225
|
+
*/
|
|
226
|
+
export interface GetDiagnosticsRequest {
|
|
145
227
|
/**
|
|
146
|
-
* Role of the admitted member, defaults to ADMIN.
|
|
147
|
-
*
|
|
148
228
|
* Options:
|
|
149
229
|
* - proto3_optional = true
|
|
150
230
|
*/
|
|
151
|
-
|
|
231
|
+
keys?: GetDiagnosticsRequest.KEY_OPTION;
|
|
152
232
|
}
|
|
153
|
-
export declare namespace
|
|
154
|
-
/**
|
|
155
|
-
* Defined in:
|
|
156
|
-
* {@link file://./../../../dxos/client/invitation.proto}
|
|
157
|
-
*/
|
|
158
|
-
enum Type {
|
|
159
|
-
INTERACTIVE = 0,
|
|
160
|
-
DELEGATED = 1,
|
|
161
|
-
MULTIUSE = 2
|
|
162
|
-
}
|
|
163
|
-
/**
|
|
164
|
-
* Defined in:
|
|
165
|
-
* {@link file://./../../../dxos/client/invitation.proto}
|
|
166
|
-
*/
|
|
167
|
-
enum Kind {
|
|
168
|
-
DEVICE = 0,
|
|
169
|
-
SPACE = 1
|
|
170
|
-
}
|
|
171
|
-
/**
|
|
172
|
-
* Defined in:
|
|
173
|
-
* {@link file://./../../../dxos/client/invitation.proto}
|
|
174
|
-
*/
|
|
175
|
-
enum AuthMethod {
|
|
176
|
-
NONE = 0,
|
|
177
|
-
SHARED_SECRET = 1,
|
|
178
|
-
KNOWN_PUBLIC_KEY = 2
|
|
179
|
-
}
|
|
180
|
-
/**
|
|
181
|
-
* Defined in:
|
|
182
|
-
* {@link file://./../../../dxos/client/invitation.proto}
|
|
183
|
-
*/
|
|
184
|
-
enum State {
|
|
185
|
-
INIT = 0,
|
|
186
|
-
CONNECTING = 1,
|
|
187
|
-
CONNECTED = 2,
|
|
188
|
-
READY_FOR_AUTHENTICATION = 3,
|
|
189
|
-
AUTHENTICATING = 4,
|
|
190
|
-
SUCCESS = 5,
|
|
191
|
-
CANCELLED = 6,
|
|
192
|
-
TIMEOUT = 7,
|
|
193
|
-
ERROR = 8,
|
|
194
|
-
EXPIRED = 9
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
/**
|
|
198
|
-
* Defined in:
|
|
199
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
200
|
-
*/
|
|
201
|
-
export declare enum SystemStatus {
|
|
202
|
-
ACTIVE = 0,
|
|
203
|
-
INACTIVE = 1
|
|
204
|
-
}
|
|
205
|
-
/**
|
|
206
|
-
* Defined in:
|
|
207
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
208
|
-
*/
|
|
209
|
-
export interface UpdateStatusRequest {
|
|
210
|
-
status: SystemStatus;
|
|
211
|
-
}
|
|
212
|
-
/**
|
|
213
|
-
* Defined in:
|
|
214
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
215
|
-
*/
|
|
216
|
-
export interface QueryStatusRequest {
|
|
217
|
-
/**
|
|
218
|
-
* Options:
|
|
219
|
-
* - proto3_optional = true
|
|
220
|
-
*/
|
|
221
|
-
interval?: number;
|
|
222
|
-
}
|
|
223
|
-
/**
|
|
224
|
-
* Defined in:
|
|
225
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
226
|
-
*/
|
|
227
|
-
export interface QueryStatusResponse {
|
|
228
|
-
status: SystemStatus;
|
|
229
|
-
}
|
|
230
|
-
/**
|
|
231
|
-
* Defined in:
|
|
232
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
233
|
-
*/
|
|
234
|
-
export interface GetDiagnosticsRequest {
|
|
235
|
-
/**
|
|
236
|
-
* Options:
|
|
237
|
-
* - proto3_optional = true
|
|
238
|
-
*/
|
|
239
|
-
keys?: GetDiagnosticsRequest.KEY_OPTION;
|
|
240
|
-
}
|
|
241
|
-
export declare namespace GetDiagnosticsRequest {
|
|
233
|
+
export declare namespace GetDiagnosticsRequest {
|
|
242
234
|
/**
|
|
243
235
|
* Defined in:
|
|
244
236
|
* {@link file://./../../../dxos/client/services.proto}
|
|
@@ -1001,179 +993,187 @@ export interface NetworkService {
|
|
|
1001
993
|
}
|
|
1002
994
|
/**
|
|
1003
995
|
* Defined in:
|
|
1004
|
-
* {@link file://./../../../dxos/client/
|
|
996
|
+
* {@link file://./../../../dxos/client/invitation.proto}
|
|
1005
997
|
*/
|
|
1006
|
-
export interface
|
|
1007
|
-
|
|
1008
|
-
values?: Metrics.KeyPair[];
|
|
1009
|
-
}
|
|
1010
|
-
export declare namespace Metrics {
|
|
998
|
+
export interface AdmissionKeypair {
|
|
999
|
+
publicKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
1011
1000
|
/**
|
|
1012
|
-
*
|
|
1013
|
-
*
|
|
1001
|
+
* Options:
|
|
1002
|
+
* - proto3_optional = true
|
|
1014
1003
|
*/
|
|
1015
|
-
|
|
1016
|
-
/**
|
|
1017
|
-
* Options:
|
|
1018
|
-
* - proto3_optional = true
|
|
1019
|
-
*/
|
|
1020
|
-
key?: string;
|
|
1021
|
-
/**
|
|
1022
|
-
* Options:
|
|
1023
|
-
* - proto3_optional = true
|
|
1024
|
-
*/
|
|
1025
|
-
value?: dxos_value.Value;
|
|
1026
|
-
/**
|
|
1027
|
-
* Options:
|
|
1028
|
-
* - proto3_optional = true
|
|
1029
|
-
*/
|
|
1030
|
-
stats?: dxos_value.Stats;
|
|
1031
|
-
}
|
|
1004
|
+
privateKey?: ReturnType<(typeof substitutions)["dxos.keys.PrivateKey"]["decode"]>;
|
|
1032
1005
|
}
|
|
1033
1006
|
/**
|
|
1007
|
+
* Runtime state of the space object.
|
|
1008
|
+
*
|
|
1034
1009
|
* Defined in:
|
|
1035
|
-
* {@link file://./../../../dxos/client/
|
|
1010
|
+
* {@link file://./../../../dxos/client/invitation.proto}
|
|
1036
1011
|
*/
|
|
1037
|
-
export
|
|
1012
|
+
export declare enum SpaceState {
|
|
1013
|
+
INVALID = 0,
|
|
1014
|
+
SPACE_INACTIVE = 2,
|
|
1015
|
+
SPACE_ACTIVE = 6,
|
|
1016
|
+
SPACE_CLOSED = 1,
|
|
1017
|
+
SPACE_CONTROL_ONLY = 7,
|
|
1018
|
+
SPACE_INITIALIZING = 4,
|
|
1019
|
+
SPACE_READY = 3,
|
|
1020
|
+
SPACE_ERROR = 5,
|
|
1021
|
+
SPACE_REQUIRES_MIGRATION = 8
|
|
1022
|
+
}
|
|
1023
|
+
/**
|
|
1024
|
+
* Represents the invitation state passed between client and service.
|
|
1025
|
+
*
|
|
1026
|
+
* Defined in:
|
|
1027
|
+
* {@link file://./../../../dxos/client/invitation.proto}
|
|
1028
|
+
*/
|
|
1029
|
+
export interface Invitation {
|
|
1038
1030
|
/**
|
|
1031
|
+
* Local identifier (random).
|
|
1032
|
+
*/
|
|
1033
|
+
invitationId: string;
|
|
1034
|
+
/**
|
|
1035
|
+
* Determines the behavior of the invitation.
|
|
1036
|
+
*/
|
|
1037
|
+
type: Invitation.Type;
|
|
1038
|
+
/**
|
|
1039
|
+
* Kind of access the invitation will grant.
|
|
1040
|
+
*/
|
|
1041
|
+
kind: Invitation.Kind;
|
|
1042
|
+
/**
|
|
1043
|
+
* How the invitation is authenticated.
|
|
1044
|
+
*/
|
|
1045
|
+
authMethod: Invitation.AuthMethod;
|
|
1046
|
+
/**
|
|
1047
|
+
* Swarm rendezvous (random).
|
|
1048
|
+
*/
|
|
1049
|
+
swarmKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
1050
|
+
/**
|
|
1051
|
+
* Local state.
|
|
1052
|
+
*/
|
|
1053
|
+
state: Invitation.State;
|
|
1054
|
+
/**
|
|
1055
|
+
* Timeout for guest to complete invitation once connected (ms).
|
|
1056
|
+
*
|
|
1039
1057
|
* Options:
|
|
1040
1058
|
* - proto3_optional = true
|
|
1041
1059
|
*/
|
|
1042
|
-
|
|
1060
|
+
timeout?: number;
|
|
1043
1061
|
/**
|
|
1062
|
+
* Guest's identity.
|
|
1063
|
+
*
|
|
1044
1064
|
* Options:
|
|
1045
1065
|
* - proto3_optional = true
|
|
1046
1066
|
*/
|
|
1047
|
-
|
|
1048
|
-
}
|
|
1049
|
-
/**
|
|
1050
|
-
* Defined in:
|
|
1051
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
1052
|
-
*/
|
|
1053
|
-
export interface ControlMetricsResponse {
|
|
1067
|
+
identityKey?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
1054
1068
|
/**
|
|
1069
|
+
* Space to join (only present if kind is SPACE).
|
|
1070
|
+
*
|
|
1055
1071
|
* Options:
|
|
1056
1072
|
* - proto3_optional = true
|
|
1057
1073
|
*/
|
|
1058
|
-
|
|
1059
|
-
}
|
|
1060
|
-
/**
|
|
1061
|
-
* Defined in:
|
|
1062
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
1063
|
-
*/
|
|
1064
|
-
export interface QueryMetricsRequest {
|
|
1074
|
+
spaceKey?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
1065
1075
|
/**
|
|
1076
|
+
* Authentication code created by host (only present if auth_method is SHARED_SECRET).
|
|
1077
|
+
*
|
|
1066
1078
|
* Options:
|
|
1067
1079
|
* - proto3_optional = true
|
|
1068
1080
|
*/
|
|
1069
|
-
|
|
1070
|
-
}
|
|
1071
|
-
/**
|
|
1072
|
-
* Defined in:
|
|
1073
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
1074
|
-
*/
|
|
1075
|
-
export interface QueryMetricsResponse {
|
|
1076
|
-
timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
1077
|
-
metrics: Metrics;
|
|
1078
|
-
}
|
|
1079
|
-
/**
|
|
1080
|
-
* Defined in:
|
|
1081
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
1082
|
-
*/
|
|
1083
|
-
export declare enum LogLevel {
|
|
1084
|
-
NONE = 0,
|
|
1085
|
-
TRACE = 5,
|
|
1086
|
-
DEBUG = 10,
|
|
1087
|
-
INFO = 11,
|
|
1088
|
-
WARN = 12,
|
|
1089
|
-
ERROR = 13
|
|
1090
|
-
}
|
|
1091
|
-
/**
|
|
1092
|
-
* Defined in:
|
|
1093
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
1094
|
-
*/
|
|
1095
|
-
export interface QueryLogsRequest {
|
|
1096
|
-
filters?: QueryLogsRequest.Filter[];
|
|
1081
|
+
authCode?: string;
|
|
1097
1082
|
/**
|
|
1083
|
+
* Path or identifier to navigate to after successful authentication.
|
|
1084
|
+
*
|
|
1098
1085
|
* Options:
|
|
1099
1086
|
* - proto3_optional = true
|
|
1100
1087
|
*/
|
|
1101
|
-
|
|
1102
|
-
}
|
|
1103
|
-
export declare namespace QueryLogsRequest {
|
|
1088
|
+
target?: string;
|
|
1104
1089
|
/**
|
|
1105
|
-
*
|
|
1106
|
-
*
|
|
1090
|
+
* Host should resume invitation on startup until timeout.
|
|
1091
|
+
*
|
|
1092
|
+
* Options:
|
|
1093
|
+
* - proto3_optional = true
|
|
1107
1094
|
*/
|
|
1108
|
-
|
|
1109
|
-
NONE = 0,
|
|
1110
|
-
INCLUSIVE = 1,
|
|
1111
|
-
EXPLICIT = 2
|
|
1112
|
-
}
|
|
1095
|
+
persistent?: boolean;
|
|
1113
1096
|
/**
|
|
1114
|
-
*
|
|
1115
|
-
*
|
|
1097
|
+
* Options:
|
|
1098
|
+
* - proto3_optional = true
|
|
1116
1099
|
*/
|
|
1117
|
-
|
|
1118
|
-
level: LogLevel;
|
|
1119
|
-
/**
|
|
1120
|
-
* Options:
|
|
1121
|
-
* - proto3_optional = true
|
|
1122
|
-
*/
|
|
1123
|
-
pattern?: string;
|
|
1124
|
-
}
|
|
1125
|
-
}
|
|
1126
|
-
/**
|
|
1127
|
-
* Defined in:
|
|
1128
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
1129
|
-
*/
|
|
1130
|
-
export interface LogEntry {
|
|
1131
|
-
level: LogLevel;
|
|
1132
|
-
message: string;
|
|
1100
|
+
created?: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
1133
1101
|
/**
|
|
1134
1102
|
* Options:
|
|
1135
1103
|
* - proto3_optional = true
|
|
1136
1104
|
*/
|
|
1137
|
-
|
|
1105
|
+
lifetime?: number;
|
|
1138
1106
|
/**
|
|
1107
|
+
* Whether an invitation can be used multiple times.
|
|
1108
|
+
*
|
|
1139
1109
|
* Options:
|
|
1140
1110
|
* - proto3_optional = true
|
|
1141
1111
|
*/
|
|
1142
|
-
|
|
1112
|
+
multiUse?: boolean;
|
|
1143
1113
|
/**
|
|
1114
|
+
* Guest's keypair required for AuthMethod.KNOWN_PUBLIC_KEY.
|
|
1115
|
+
*
|
|
1144
1116
|
* Options:
|
|
1145
1117
|
* - proto3_optional = true
|
|
1146
1118
|
*/
|
|
1147
|
-
|
|
1148
|
-
|
|
1119
|
+
guestKeypair?: AdmissionKeypair;
|
|
1120
|
+
/**
|
|
1121
|
+
* Present on Type.DELEGATED invitations.
|
|
1122
|
+
*
|
|
1123
|
+
* Options:
|
|
1124
|
+
* - proto3_optional = true
|
|
1125
|
+
*/
|
|
1126
|
+
delegationCredentialId?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
1127
|
+
/**
|
|
1128
|
+
* Role of the admitted member, defaults to ADMIN.
|
|
1129
|
+
*
|
|
1130
|
+
* Options:
|
|
1131
|
+
* - proto3_optional = true
|
|
1132
|
+
*/
|
|
1133
|
+
role?: dxos_halo_credentials.SpaceMember.Role;
|
|
1149
1134
|
}
|
|
1150
|
-
export declare namespace
|
|
1135
|
+
export declare namespace Invitation {
|
|
1151
1136
|
/**
|
|
1152
1137
|
* Defined in:
|
|
1153
|
-
* {@link file://./../../../dxos/client/
|
|
1138
|
+
* {@link file://./../../../dxos/client/invitation.proto}
|
|
1154
1139
|
*/
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1140
|
+
enum Type {
|
|
1141
|
+
INTERACTIVE = 0,
|
|
1142
|
+
DELEGATED = 1,
|
|
1143
|
+
MULTIUSE = 2
|
|
1144
|
+
}
|
|
1145
|
+
/**
|
|
1146
|
+
* Defined in:
|
|
1147
|
+
* {@link file://./../../../dxos/client/invitation.proto}
|
|
1148
|
+
*/
|
|
1149
|
+
enum Kind {
|
|
1150
|
+
DEVICE = 0,
|
|
1151
|
+
SPACE = 1
|
|
1152
|
+
}
|
|
1153
|
+
/**
|
|
1154
|
+
* Defined in:
|
|
1155
|
+
* {@link file://./../../../dxos/client/invitation.proto}
|
|
1156
|
+
*/
|
|
1157
|
+
enum AuthMethod {
|
|
1158
|
+
NONE = 0,
|
|
1159
|
+
SHARED_SECRET = 1,
|
|
1160
|
+
KNOWN_PUBLIC_KEY = 2
|
|
1161
|
+
}
|
|
1162
|
+
/**
|
|
1163
|
+
* Defined in:
|
|
1164
|
+
* {@link file://./../../../dxos/client/invitation.proto}
|
|
1165
|
+
*/
|
|
1166
|
+
enum State {
|
|
1167
|
+
INIT = 0,
|
|
1168
|
+
CONNECTING = 1,
|
|
1169
|
+
CONNECTED = 2,
|
|
1170
|
+
READY_FOR_AUTHENTICATION = 3,
|
|
1171
|
+
AUTHENTICATING = 4,
|
|
1172
|
+
SUCCESS = 5,
|
|
1173
|
+
CANCELLED = 6,
|
|
1174
|
+
TIMEOUT = 7,
|
|
1175
|
+
ERROR = 8,
|
|
1176
|
+
EXPIRED = 9
|
|
1168
1177
|
}
|
|
1169
|
-
}
|
|
1170
|
-
/**
|
|
1171
|
-
* Defined in:
|
|
1172
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
1173
|
-
*/
|
|
1174
|
-
export interface LoggingService {
|
|
1175
|
-
controlMetrics: (request: ControlMetricsRequest, options?: RequestOptions) => Promise<ControlMetricsResponse>;
|
|
1176
|
-
queryMetrics: (request: QueryMetricsRequest, options?: RequestOptions) => Stream<QueryMetricsResponse>;
|
|
1177
|
-
queryLogs: (request: QueryLogsRequest, options?: RequestOptions) => Stream<LogEntry>;
|
|
1178
1178
|
}
|
|
1179
1179
|
//# sourceMappingURL=services.d.ts.map
|