@dxos/protocols 0.6.9-staging.8e43e2a → 0.6.9
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/google/protobuf.d.ts +4 -4
- package/dist/cjs/src/proto/gen/google/protobuf.d.ts.map +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/google/protobuf.d.ts +4 -4
- package/dist/esm/src/proto/gen/google/protobuf.d.ts.map +1 -1
- package/package.json +6 -6
- package/src/proto/gen/dxos/client/services.ts +302 -302
- package/src/proto/gen/google/protobuf.ts +4 -4
|
@@ -11,226 +11,234 @@ 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/invitation.proto}
|
|
15
15
|
*/
|
|
16
|
-
export interface
|
|
17
|
-
|
|
18
|
-
values?: Metrics.KeyPair[];
|
|
19
|
-
}
|
|
20
|
-
export declare namespace Metrics {
|
|
16
|
+
export interface AdmissionKeypair {
|
|
17
|
+
publicKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
21
18
|
/**
|
|
22
|
-
*
|
|
23
|
-
*
|
|
19
|
+
* Options:
|
|
20
|
+
* - proto3_optional = true
|
|
24
21
|
*/
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
22
|
+
privateKey?: ReturnType<(typeof substitutions)["dxos.keys.PrivateKey"]["decode"]>;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Runtime state of the space object.
|
|
26
|
+
*
|
|
27
|
+
* Defined in:
|
|
28
|
+
* {@link file://./../../../dxos/client/invitation.proto}
|
|
29
|
+
*/
|
|
30
|
+
export declare enum SpaceState {
|
|
31
|
+
INVALID = 0,
|
|
32
|
+
SPACE_INACTIVE = 2,
|
|
33
|
+
SPACE_ACTIVE = 6,
|
|
34
|
+
SPACE_CLOSED = 1,
|
|
35
|
+
SPACE_CONTROL_ONLY = 7,
|
|
36
|
+
SPACE_INITIALIZING = 4,
|
|
37
|
+
SPACE_READY = 3,
|
|
38
|
+
SPACE_ERROR = 5,
|
|
39
|
+
SPACE_REQUIRES_MIGRATION = 8
|
|
42
40
|
}
|
|
43
41
|
/**
|
|
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/invitation.proto}
|
|
46
46
|
*/
|
|
47
|
-
export interface
|
|
47
|
+
export interface Invitation {
|
|
48
48
|
/**
|
|
49
|
-
*
|
|
50
|
-
* - proto3_optional = true
|
|
49
|
+
* Local identifier (random).
|
|
51
50
|
*/
|
|
52
|
-
|
|
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;
|
|
53
72
|
/**
|
|
73
|
+
* Timeout for guest to complete invitation once connected (ms).
|
|
74
|
+
*
|
|
54
75
|
* Options:
|
|
55
76
|
* - proto3_optional = true
|
|
56
77
|
*/
|
|
57
|
-
|
|
58
|
-
}
|
|
59
|
-
/**
|
|
60
|
-
* Defined in:
|
|
61
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
62
|
-
*/
|
|
63
|
-
export interface ControlMetricsResponse {
|
|
78
|
+
timeout?: number;
|
|
64
79
|
/**
|
|
80
|
+
* Guest's identity.
|
|
81
|
+
*
|
|
65
82
|
* Options:
|
|
66
83
|
* - proto3_optional = true
|
|
67
84
|
*/
|
|
68
|
-
|
|
69
|
-
}
|
|
70
|
-
/**
|
|
71
|
-
* Defined in:
|
|
72
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
73
|
-
*/
|
|
74
|
-
export interface QueryMetricsRequest {
|
|
85
|
+
identityKey?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
75
86
|
/**
|
|
87
|
+
* Space to join (only present if kind is SPACE).
|
|
88
|
+
*
|
|
76
89
|
* Options:
|
|
77
90
|
* - proto3_optional = true
|
|
78
91
|
*/
|
|
79
|
-
|
|
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[];
|
|
92
|
+
spaceKey?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
107
93
|
/**
|
|
94
|
+
* Authentication code created by host (only present if auth_method is SHARED_SECRET).
|
|
95
|
+
*
|
|
108
96
|
* Options:
|
|
109
97
|
* - proto3_optional = true
|
|
110
98
|
*/
|
|
111
|
-
|
|
112
|
-
}
|
|
113
|
-
export declare namespace QueryLogsRequest {
|
|
99
|
+
authCode?: string;
|
|
114
100
|
/**
|
|
115
|
-
*
|
|
116
|
-
*
|
|
101
|
+
* Path or identifier to navigate to after successful authentication.
|
|
102
|
+
*
|
|
103
|
+
* Options:
|
|
104
|
+
* - proto3_optional = true
|
|
117
105
|
*/
|
|
118
|
-
|
|
119
|
-
NONE = 0,
|
|
120
|
-
INCLUSIVE = 1,
|
|
121
|
-
EXPLICIT = 2
|
|
122
|
-
}
|
|
106
|
+
target?: string;
|
|
123
107
|
/**
|
|
124
|
-
*
|
|
125
|
-
*
|
|
108
|
+
* Host should resume invitation on startup until timeout.
|
|
109
|
+
*
|
|
110
|
+
* Options:
|
|
111
|
+
* - proto3_optional = true
|
|
126
112
|
*/
|
|
127
|
-
|
|
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;
|
|
113
|
+
persistent?: boolean;
|
|
143
114
|
/**
|
|
144
115
|
* Options:
|
|
145
116
|
* - proto3_optional = true
|
|
146
117
|
*/
|
|
147
|
-
|
|
118
|
+
created?: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
148
119
|
/**
|
|
149
120
|
* Options:
|
|
150
121
|
* - proto3_optional = true
|
|
151
122
|
*/
|
|
152
|
-
|
|
123
|
+
lifetime?: number;
|
|
153
124
|
/**
|
|
125
|
+
* Whether an invitation can be used multiple times.
|
|
126
|
+
*
|
|
154
127
|
* Options:
|
|
155
128
|
* - proto3_optional = true
|
|
156
129
|
*/
|
|
157
|
-
|
|
158
|
-
timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
159
|
-
}
|
|
160
|
-
export declare namespace LogEntry {
|
|
130
|
+
multiUse?: boolean;
|
|
161
131
|
/**
|
|
162
|
-
*
|
|
163
|
-
*
|
|
132
|
+
* Guest's keypair required for AuthMethod.KNOWN_PUBLIC_KEY.
|
|
133
|
+
*
|
|
134
|
+
* Options:
|
|
135
|
+
* - proto3_optional = true
|
|
164
136
|
*/
|
|
165
|
-
|
|
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 {
|
|
137
|
+
guestKeypair?: AdmissionKeypair;
|
|
209
138
|
/**
|
|
139
|
+
* Present on Type.DELEGATED invitations.
|
|
140
|
+
*
|
|
210
141
|
* Options:
|
|
211
142
|
* - proto3_optional = true
|
|
212
143
|
*/
|
|
213
|
-
|
|
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 {
|
|
144
|
+
delegationCredentialId?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
227
145
|
/**
|
|
146
|
+
* Role of the admitted member, defaults to ADMIN.
|
|
147
|
+
*
|
|
228
148
|
* Options:
|
|
229
149
|
* - proto3_optional = true
|
|
230
150
|
*/
|
|
231
|
-
|
|
151
|
+
role?: dxos_halo_credentials.SpaceMember.Role;
|
|
232
152
|
}
|
|
233
|
-
export declare namespace
|
|
153
|
+
export declare namespace Invitation {
|
|
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 {
|
|
234
242
|
/**
|
|
235
243
|
* Defined in:
|
|
236
244
|
* {@link file://./../../../dxos/client/services.proto}
|
|
@@ -993,187 +1001,179 @@ export interface NetworkService {
|
|
|
993
1001
|
}
|
|
994
1002
|
/**
|
|
995
1003
|
* Defined in:
|
|
996
|
-
* {@link file://./../../../dxos/client/
|
|
1004
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
997
1005
|
*/
|
|
998
|
-
export interface
|
|
999
|
-
|
|
1006
|
+
export interface Metrics {
|
|
1007
|
+
timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
1008
|
+
values?: Metrics.KeyPair[];
|
|
1009
|
+
}
|
|
1010
|
+
export declare namespace Metrics {
|
|
1000
1011
|
/**
|
|
1001
|
-
*
|
|
1002
|
-
*
|
|
1012
|
+
* Defined in:
|
|
1013
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
1003
1014
|
*/
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
SPACE_REQUIRES_MIGRATION = 8
|
|
1015
|
+
interface KeyPair {
|
|
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
|
+
}
|
|
1022
1032
|
}
|
|
1023
1033
|
/**
|
|
1024
|
-
* Represents the invitation state passed between client and service.
|
|
1025
|
-
*
|
|
1026
1034
|
* Defined in:
|
|
1027
|
-
* {@link file://./../../../dxos/client/
|
|
1035
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
1028
1036
|
*/
|
|
1029
|
-
export interface
|
|
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
|
-
*
|
|
1057
|
-
* Options:
|
|
1058
|
-
* - proto3_optional = true
|
|
1059
|
-
*/
|
|
1060
|
-
timeout?: number;
|
|
1061
|
-
/**
|
|
1062
|
-
* Guest's identity.
|
|
1063
|
-
*
|
|
1064
|
-
* Options:
|
|
1065
|
-
* - proto3_optional = true
|
|
1066
|
-
*/
|
|
1067
|
-
identityKey?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
1037
|
+
export interface ControlMetricsRequest {
|
|
1068
1038
|
/**
|
|
1069
|
-
* Space to join (only present if kind is SPACE).
|
|
1070
|
-
*
|
|
1071
1039
|
* Options:
|
|
1072
1040
|
* - proto3_optional = true
|
|
1073
1041
|
*/
|
|
1074
|
-
|
|
1042
|
+
reset?: boolean;
|
|
1075
1043
|
/**
|
|
1076
|
-
* Authentication code created by host (only present if auth_method is SHARED_SECRET).
|
|
1077
|
-
*
|
|
1078
1044
|
* Options:
|
|
1079
1045
|
* - proto3_optional = true
|
|
1080
1046
|
*/
|
|
1081
|
-
|
|
1047
|
+
record?: boolean;
|
|
1048
|
+
}
|
|
1049
|
+
/**
|
|
1050
|
+
* Defined in:
|
|
1051
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
1052
|
+
*/
|
|
1053
|
+
export interface ControlMetricsResponse {
|
|
1082
1054
|
/**
|
|
1083
|
-
* Path or identifier to navigate to after successful authentication.
|
|
1084
|
-
*
|
|
1085
1055
|
* Options:
|
|
1086
1056
|
* - proto3_optional = true
|
|
1087
1057
|
*/
|
|
1088
|
-
|
|
1058
|
+
recording?: boolean;
|
|
1059
|
+
}
|
|
1060
|
+
/**
|
|
1061
|
+
* Defined in:
|
|
1062
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
1063
|
+
*/
|
|
1064
|
+
export interface QueryMetricsRequest {
|
|
1089
1065
|
/**
|
|
1090
|
-
* Host should resume invitation on startup until timeout.
|
|
1091
|
-
*
|
|
1092
1066
|
* Options:
|
|
1093
1067
|
* - proto3_optional = true
|
|
1094
1068
|
*/
|
|
1095
|
-
|
|
1069
|
+
interval?: number;
|
|
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[];
|
|
1096
1097
|
/**
|
|
1097
1098
|
* Options:
|
|
1098
1099
|
* - proto3_optional = true
|
|
1099
1100
|
*/
|
|
1100
|
-
|
|
1101
|
+
options?: QueryLogsRequest.MatchingOptions;
|
|
1102
|
+
}
|
|
1103
|
+
export declare namespace QueryLogsRequest {
|
|
1101
1104
|
/**
|
|
1102
|
-
*
|
|
1103
|
-
*
|
|
1105
|
+
* Defined in:
|
|
1106
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
1104
1107
|
*/
|
|
1105
|
-
|
|
1108
|
+
enum MatchingOptions {
|
|
1109
|
+
NONE = 0,
|
|
1110
|
+
INCLUSIVE = 1,
|
|
1111
|
+
EXPLICIT = 2
|
|
1112
|
+
}
|
|
1106
1113
|
/**
|
|
1107
|
-
*
|
|
1108
|
-
*
|
|
1109
|
-
* Options:
|
|
1110
|
-
* - proto3_optional = true
|
|
1114
|
+
* Defined in:
|
|
1115
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
1111
1116
|
*/
|
|
1112
|
-
|
|
1117
|
+
interface Filter {
|
|
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;
|
|
1113
1133
|
/**
|
|
1114
|
-
* Guest's keypair required for AuthMethod.KNOWN_PUBLIC_KEY.
|
|
1115
|
-
*
|
|
1116
1134
|
* Options:
|
|
1117
1135
|
* - proto3_optional = true
|
|
1118
1136
|
*/
|
|
1119
|
-
|
|
1137
|
+
context?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
|
|
1120
1138
|
/**
|
|
1121
|
-
* Present on Type.DELEGATED invitations.
|
|
1122
|
-
*
|
|
1123
1139
|
* Options:
|
|
1124
1140
|
* - proto3_optional = true
|
|
1125
1141
|
*/
|
|
1126
|
-
|
|
1142
|
+
meta?: LogEntry.Meta;
|
|
1127
1143
|
/**
|
|
1128
|
-
* Role of the admitted member, defaults to ADMIN.
|
|
1129
|
-
*
|
|
1130
1144
|
* Options:
|
|
1131
1145
|
* - proto3_optional = true
|
|
1132
1146
|
*/
|
|
1133
|
-
|
|
1147
|
+
error?: dxos_error.Error;
|
|
1148
|
+
timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
1134
1149
|
}
|
|
1135
|
-
export declare namespace
|
|
1136
|
-
/**
|
|
1137
|
-
* Defined in:
|
|
1138
|
-
* {@link file://./../../../dxos/client/invitation.proto}
|
|
1139
|
-
*/
|
|
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
|
-
}
|
|
1150
|
+
export declare namespace LogEntry {
|
|
1162
1151
|
/**
|
|
1163
1152
|
* Defined in:
|
|
1164
|
-
* {@link file://./../../../dxos/client/
|
|
1153
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
1165
1154
|
*/
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1155
|
+
interface Meta {
|
|
1156
|
+
file: string;
|
|
1157
|
+
line: number;
|
|
1158
|
+
/**
|
|
1159
|
+
* Options:
|
|
1160
|
+
* - proto3_optional = true
|
|
1161
|
+
*/
|
|
1162
|
+
scope?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
|
|
1163
|
+
/**
|
|
1164
|
+
* Options:
|
|
1165
|
+
* - proto3_optional = true
|
|
1166
|
+
*/
|
|
1167
|
+
resourceId?: number;
|
|
1177
1168
|
}
|
|
1178
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
|
+
}
|
|
1179
1179
|
//# sourceMappingURL=services.d.ts.map
|