@dxos/protocols 0.6.3-main.0ca5117 → 0.6.3-main.0dc8689
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 +313 -310
- package/dist/cjs/src/proto/gen/dxos/client/services.d.ts.map +1 -1
- package/dist/cjs/src/proto/gen/dxos/client/services.js +88 -85
- package/dist/cjs/src/proto/gen/dxos/client/services.js.map +1 -1
- package/dist/cjs/src/proto/gen/dxos/devtools/host.d.ts +31 -31
- package/dist/cjs/src/proto/gen/dxos/devtools/host.d.ts.map +1 -1
- package/dist/cjs/src/proto/gen/dxos/echo/metadata.d.ts +3 -3
- package/dist/cjs/src/proto/gen/dxos/echo/object.d.ts +2 -2
- package/dist/cjs/src/proto/gen/dxos/halo/invitations.d.ts +4 -4
- package/dist/cjs/src/proto/gen/dxos/halo/invitations.d.ts.map +1 -1
- package/dist/cjs/src/proto/gen/dxos/halo/invitations.js +5 -5
- package/dist/cjs/src/proto/gen/dxos/halo/invitations.js.map +1 -1
- package/dist/cjs/src/proto/gen/dxos/halo/keys.d.ts +0 -10
- package/dist/cjs/src/proto/gen/dxos/halo/keys.d.ts.map +1 -1
- package/dist/cjs/src/proto/gen/dxos/halo/signed.d.ts +5 -4
- package/dist/cjs/src/proto/gen/dxos/halo/signed.d.ts.map +1 -1
- package/dist/cjs/src/proto/gen/dxos/mesh/teleport/gossip.d.ts +1 -1
- package/dist/cjs/src/proto/gen/google/protobuf.d.ts +9 -4
- package/dist/cjs/src/proto/gen/google/protobuf.d.ts.map +1 -1
- package/dist/cjs/src/proto/gen/google/protobuf.js.map +1 -1
- package/dist/cjs/src/proto/gen/index.d.ts +3 -4
- 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/tsconfig.tsbuildinfo +1 -1
- package/dist/esm/src/proto/gen/dxos/client/services.d.ts +313 -310
- package/dist/esm/src/proto/gen/dxos/client/services.d.ts.map +1 -1
- package/dist/esm/src/proto/gen/dxos/client/services.js +87 -84
- package/dist/esm/src/proto/gen/dxos/client/services.js.map +1 -1
- package/dist/esm/src/proto/gen/dxos/devtools/host.d.ts +31 -31
- package/dist/esm/src/proto/gen/dxos/devtools/host.d.ts.map +1 -1
- package/dist/esm/src/proto/gen/dxos/echo/metadata.d.ts +3 -3
- package/dist/esm/src/proto/gen/dxos/echo/object.d.ts +2 -2
- package/dist/esm/src/proto/gen/dxos/halo/invitations.d.ts +4 -4
- package/dist/esm/src/proto/gen/dxos/halo/invitations.d.ts.map +1 -1
- package/dist/esm/src/proto/gen/dxos/halo/invitations.js +4 -4
- package/dist/esm/src/proto/gen/dxos/halo/invitations.js.map +1 -1
- package/dist/esm/src/proto/gen/dxos/halo/keys.d.ts +0 -10
- package/dist/esm/src/proto/gen/dxos/halo/keys.d.ts.map +1 -1
- package/dist/esm/src/proto/gen/dxos/halo/signed.d.ts +5 -4
- package/dist/esm/src/proto/gen/dxos/halo/signed.d.ts.map +1 -1
- package/dist/esm/src/proto/gen/dxos/mesh/teleport/gossip.d.ts +1 -1
- package/dist/esm/src/proto/gen/google/protobuf.d.ts +9 -4
- package/dist/esm/src/proto/gen/google/protobuf.d.ts.map +1 -1
- package/dist/esm/src/proto/gen/google/protobuf.js.map +1 -1
- package/dist/esm/src/proto/gen/index.d.ts +3 -4
- 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/package.json +16 -7
- package/src/proto/dxos/agent/dashboard.proto +3 -2
- package/src/proto/dxos/bot.proto +2 -1
- package/src/proto/dxos/client/invitation.proto +171 -0
- package/src/proto/dxos/client/logging.proto +3 -0
- package/src/proto/dxos/client/services.proto +10 -144
- package/src/proto/dxos/config.proto +10 -10
- package/src/proto/dxos/echo/metadata.proto +10 -14
- package/src/proto/dxos/echo/object.proto +4 -2
- package/src/proto/dxos/field_options.proto +11 -0
- package/src/proto/dxos/halo/credentials.proto +2 -0
- package/src/proto/dxos/halo/invitations.proto +3 -3
- package/src/proto/dxos/halo/keys.proto +0 -12
- package/src/proto/dxos/halo/signed.proto +10 -6
- package/src/proto/dxos/mesh/presence.proto +3 -1
- package/src/proto/dxos/mesh/teleport/gossip.proto +3 -1
- package/src/proto/gen/dxos/client/services.ts +313 -310
- package/src/proto/gen/dxos/devtools/host.ts +31 -31
- package/src/proto/gen/dxos/echo/metadata.ts +3 -3
- package/src/proto/gen/dxos/echo/object.ts +2 -2
- package/src/proto/gen/dxos/halo/invitations.ts +4 -4
- package/src/proto/gen/dxos/halo/keys.ts +0 -9
- package/src/proto/gen/dxos/halo/signed.ts +5 -3
- package/src/proto/gen/dxos/mesh/teleport/gossip.ts +1 -1
- package/src/proto/gen/google/protobuf.ts +9 -4
- package/src/proto/gen/index.ts +4 -5
|
@@ -64,178 +64,188 @@ 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/invitation.proto}
|
|
68
68
|
*/
|
|
69
|
-
export interface
|
|
70
|
-
|
|
71
|
-
values?: Metrics.KeyPair[];
|
|
72
|
-
}
|
|
73
|
-
export namespace Metrics {
|
|
69
|
+
export interface AdmissionKeypair {
|
|
70
|
+
publicKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
74
71
|
/**
|
|
75
|
-
*
|
|
76
|
-
*
|
|
72
|
+
* Options:
|
|
73
|
+
* - proto3_optional = true
|
|
77
74
|
*/
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
75
|
+
privateKey?: ReturnType<(typeof substitutions)["dxos.keys.PrivateKey"]["decode"]>;
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Runtime state of the space object.
|
|
79
|
+
*
|
|
80
|
+
* Defined in:
|
|
81
|
+
* {@link file://./../../../dxos/client/invitation.proto}
|
|
82
|
+
*/
|
|
83
|
+
export enum SpaceState {
|
|
84
|
+
INVALID = 0,
|
|
85
|
+
SPACE_INACTIVE = 2,
|
|
86
|
+
SPACE_ACTIVE = 6,
|
|
87
|
+
SPACE_CLOSED = 1,
|
|
88
|
+
SPACE_CONTROL_ONLY = 7,
|
|
89
|
+
SPACE_INITIALIZING = 4,
|
|
90
|
+
SPACE_READY = 3,
|
|
91
|
+
SPACE_ERROR = 5,
|
|
92
|
+
SPACE_REQUIRES_MIGRATION = 8
|
|
95
93
|
}
|
|
96
94
|
/**
|
|
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/invitation.proto}
|
|
99
99
|
*/
|
|
100
|
-
export interface
|
|
100
|
+
export interface Invitation {
|
|
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;
|
|
101
125
|
/**
|
|
126
|
+
* Timeout for guest to complete invitation once connected (ms).
|
|
127
|
+
*
|
|
102
128
|
* Options:
|
|
103
129
|
* - proto3_optional = true
|
|
104
130
|
*/
|
|
105
|
-
|
|
131
|
+
timeout?: number;
|
|
106
132
|
/**
|
|
133
|
+
* Guest's identity.
|
|
134
|
+
*
|
|
107
135
|
* Options:
|
|
108
136
|
* - proto3_optional = true
|
|
109
137
|
*/
|
|
110
|
-
|
|
111
|
-
}
|
|
112
|
-
/**
|
|
113
|
-
* Defined in:
|
|
114
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
115
|
-
*/
|
|
116
|
-
export interface ControlMetricsResponse {
|
|
138
|
+
identityKey?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
117
139
|
/**
|
|
140
|
+
* Space to join (only present if kind is SPACE).
|
|
141
|
+
*
|
|
118
142
|
* Options:
|
|
119
143
|
* - proto3_optional = true
|
|
120
144
|
*/
|
|
121
|
-
|
|
122
|
-
}
|
|
123
|
-
/**
|
|
124
|
-
* Defined in:
|
|
125
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
126
|
-
*/
|
|
127
|
-
export interface QueryMetricsRequest {
|
|
145
|
+
spaceKey?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
128
146
|
/**
|
|
147
|
+
* Authentication code created by host (only present if auth_method is SHARED_SECRET).
|
|
148
|
+
*
|
|
129
149
|
* Options:
|
|
130
150
|
* - proto3_optional = true
|
|
131
151
|
*/
|
|
132
|
-
|
|
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
|
-
TRACE = 5,
|
|
148
|
-
DEBUG = 10,
|
|
149
|
-
INFO = 11,
|
|
150
|
-
WARN = 12,
|
|
151
|
-
ERROR = 13
|
|
152
|
-
}
|
|
153
|
-
/**
|
|
154
|
-
* Defined in:
|
|
155
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
156
|
-
*/
|
|
157
|
-
export interface QueryLogsRequest {
|
|
158
|
-
filters?: QueryLogsRequest.Filter[];
|
|
152
|
+
authCode?: string;
|
|
159
153
|
/**
|
|
154
|
+
* Path or identifier to navigate to after successful authentication.
|
|
155
|
+
*
|
|
160
156
|
* Options:
|
|
161
157
|
* - proto3_optional = true
|
|
162
158
|
*/
|
|
163
|
-
|
|
164
|
-
}
|
|
165
|
-
export namespace QueryLogsRequest {
|
|
159
|
+
target?: string;
|
|
166
160
|
/**
|
|
167
|
-
*
|
|
168
|
-
*
|
|
161
|
+
* Host should resume invitation on startup until timeout.
|
|
162
|
+
*
|
|
163
|
+
* Options:
|
|
164
|
+
* - proto3_optional = true
|
|
169
165
|
*/
|
|
170
|
-
|
|
171
|
-
INCLUSIVE = 1,
|
|
172
|
-
EXPLICIT = 2
|
|
173
|
-
}
|
|
166
|
+
persistent?: boolean;
|
|
174
167
|
/**
|
|
175
|
-
*
|
|
176
|
-
*
|
|
168
|
+
* Options:
|
|
169
|
+
* - proto3_optional = true
|
|
177
170
|
*/
|
|
178
|
-
|
|
179
|
-
level: LogLevel;
|
|
180
|
-
/**
|
|
181
|
-
* Options:
|
|
182
|
-
* - proto3_optional = true
|
|
183
|
-
*/
|
|
184
|
-
pattern?: string;
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
/**
|
|
188
|
-
* Defined in:
|
|
189
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
190
|
-
*/
|
|
191
|
-
export interface LogEntry {
|
|
192
|
-
level: LogLevel;
|
|
193
|
-
message: string;
|
|
171
|
+
created?: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
194
172
|
/**
|
|
195
173
|
* Options:
|
|
196
174
|
* - proto3_optional = true
|
|
197
175
|
*/
|
|
198
|
-
|
|
176
|
+
lifetime?: number;
|
|
199
177
|
/**
|
|
178
|
+
* Whether an invitation can be used multiple times.
|
|
179
|
+
*
|
|
200
180
|
* Options:
|
|
201
181
|
* - proto3_optional = true
|
|
202
182
|
*/
|
|
203
|
-
|
|
183
|
+
multiUse?: boolean;
|
|
204
184
|
/**
|
|
185
|
+
* Guest's keypair required for AuthMethod.KNOWN_PUBLIC_KEY.
|
|
186
|
+
*
|
|
205
187
|
* Options:
|
|
206
188
|
* - proto3_optional = true
|
|
207
189
|
*/
|
|
208
|
-
|
|
209
|
-
|
|
190
|
+
guestKeypair?: AdmissionKeypair;
|
|
191
|
+
/**
|
|
192
|
+
* Present on Type.DELEGATED invitations.
|
|
193
|
+
*
|
|
194
|
+
* Options:
|
|
195
|
+
* - proto3_optional = true
|
|
196
|
+
*/
|
|
197
|
+
delegationCredentialId?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
198
|
+
/**
|
|
199
|
+
* Role of the admitted member, defaults to ADMIN.
|
|
200
|
+
*
|
|
201
|
+
* Options:
|
|
202
|
+
* - proto3_optional = true
|
|
203
|
+
*/
|
|
204
|
+
role?: dxos_halo_credentials.SpaceMember.Role;
|
|
210
205
|
}
|
|
211
|
-
export namespace
|
|
206
|
+
export namespace Invitation {
|
|
212
207
|
/**
|
|
213
208
|
* Defined in:
|
|
214
|
-
* {@link file://./../../../dxos/client/
|
|
209
|
+
* {@link file://./../../../dxos/client/invitation.proto}
|
|
215
210
|
*/
|
|
216
|
-
export
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
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
|
|
229
248
|
}
|
|
230
|
-
}
|
|
231
|
-
/**
|
|
232
|
-
* Defined in:
|
|
233
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
234
|
-
*/
|
|
235
|
-
export interface LoggingService {
|
|
236
|
-
controlMetrics: (request: ControlMetricsRequest, options?: RequestOptions) => Promise<ControlMetricsResponse>;
|
|
237
|
-
queryMetrics: (request: QueryMetricsRequest, options?: RequestOptions) => Stream<QueryMetricsResponse>;
|
|
238
|
-
queryLogs: (request: QueryLogsRequest, options?: RequestOptions) => Stream<LogEntry>;
|
|
239
249
|
}
|
|
240
250
|
/**
|
|
241
251
|
* Defined in:
|
|
@@ -560,22 +570,6 @@ export namespace SpaceMember {
|
|
|
560
570
|
ONLINE = 1
|
|
561
571
|
}
|
|
562
572
|
}
|
|
563
|
-
/**
|
|
564
|
-
* Runtime state of the space object.
|
|
565
|
-
*
|
|
566
|
-
* Defined in:
|
|
567
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
568
|
-
*/
|
|
569
|
-
export enum SpaceState {
|
|
570
|
-
INACTIVE = 2,
|
|
571
|
-
ACTIVE = 6,
|
|
572
|
-
CLOSED = 1,
|
|
573
|
-
CONTROL_ONLY = 7,
|
|
574
|
-
INITIALIZING = 4,
|
|
575
|
-
READY = 3,
|
|
576
|
-
ERROR = 5,
|
|
577
|
-
REQUIRES_MIGRATION = 8
|
|
578
|
-
}
|
|
579
573
|
/**
|
|
580
574
|
* Defined in:
|
|
581
575
|
* {@link file://./../../../dxos/client/services.proto}
|
|
@@ -930,179 +924,11 @@ export interface SpacesService {
|
|
|
930
924
|
createEpoch: (request: CreateEpochRequest, options?: RequestOptions) => Promise<CreateEpochResponse>;
|
|
931
925
|
}
|
|
932
926
|
/**
|
|
933
|
-
* Represents the invitation state passed between client and service.
|
|
934
|
-
*
|
|
935
927
|
* Defined in:
|
|
936
928
|
* {@link file://./../../../dxos/client/services.proto}
|
|
937
929
|
*/
|
|
938
|
-
export interface
|
|
939
|
-
|
|
940
|
-
* Local identifier (random).
|
|
941
|
-
*/
|
|
942
|
-
invitationId: string;
|
|
943
|
-
/**
|
|
944
|
-
* Determines the behavior of the invitation.
|
|
945
|
-
*/
|
|
946
|
-
type: Invitation.Type;
|
|
947
|
-
/**
|
|
948
|
-
* Kind of access the invitation will grant.
|
|
949
|
-
*/
|
|
950
|
-
kind: Invitation.Kind;
|
|
951
|
-
/**
|
|
952
|
-
* How the invitation is authenticated.
|
|
953
|
-
*/
|
|
954
|
-
authMethod: Invitation.AuthMethod;
|
|
955
|
-
/**
|
|
956
|
-
* Swarm rendezvous (random).
|
|
957
|
-
*/
|
|
958
|
-
swarmKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
959
|
-
/**
|
|
960
|
-
* Local state.
|
|
961
|
-
*/
|
|
962
|
-
state: Invitation.State;
|
|
963
|
-
/**
|
|
964
|
-
* Timeout for guest to complete invitation once connected (ms).
|
|
965
|
-
*
|
|
966
|
-
* Options:
|
|
967
|
-
* - proto3_optional = true
|
|
968
|
-
*/
|
|
969
|
-
timeout?: number;
|
|
970
|
-
/**
|
|
971
|
-
* Guest's identity.
|
|
972
|
-
*
|
|
973
|
-
* Options:
|
|
974
|
-
* - proto3_optional = true
|
|
975
|
-
*/
|
|
976
|
-
identityKey?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
977
|
-
/**
|
|
978
|
-
* Space to join (only present if kind is SPACE).
|
|
979
|
-
*
|
|
980
|
-
* Options:
|
|
981
|
-
* - proto3_optional = true
|
|
982
|
-
*/
|
|
983
|
-
spaceKey?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
984
|
-
/**
|
|
985
|
-
* Authentication code created by host (only present if auth_method is SHARED_SECRET).
|
|
986
|
-
*
|
|
987
|
-
* Options:
|
|
988
|
-
* - proto3_optional = true
|
|
989
|
-
*/
|
|
990
|
-
authCode?: string;
|
|
991
|
-
/**
|
|
992
|
-
* Path or identifier to navigate to after successful authentication.
|
|
993
|
-
*
|
|
994
|
-
* Options:
|
|
995
|
-
* - proto3_optional = true
|
|
996
|
-
*/
|
|
997
|
-
target?: string;
|
|
998
|
-
/**
|
|
999
|
-
* Host should resume invitation on startup until timeout.
|
|
1000
|
-
*
|
|
1001
|
-
* Options:
|
|
1002
|
-
* - proto3_optional = true
|
|
1003
|
-
*/
|
|
1004
|
-
persistent?: boolean;
|
|
1005
|
-
/**
|
|
1006
|
-
* Options:
|
|
1007
|
-
* - proto3_optional = true
|
|
1008
|
-
*/
|
|
1009
|
-
created?: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
1010
|
-
/**
|
|
1011
|
-
* Options:
|
|
1012
|
-
* - proto3_optional = true
|
|
1013
|
-
*/
|
|
1014
|
-
lifetime?: number;
|
|
1015
|
-
/**
|
|
1016
|
-
* Whether an invitation can be used multiple times.
|
|
1017
|
-
*
|
|
1018
|
-
* Options:
|
|
1019
|
-
* - proto3_optional = true
|
|
1020
|
-
*/
|
|
1021
|
-
multiUse?: boolean;
|
|
1022
|
-
/**
|
|
1023
|
-
* Guest's keypair required for AuthMethod.KNOWN_PUBLIC_KEY.
|
|
1024
|
-
*
|
|
1025
|
-
* Options:
|
|
1026
|
-
* - proto3_optional = true
|
|
1027
|
-
*/
|
|
1028
|
-
guestKeypair?: AdmissionKeypair;
|
|
1029
|
-
/**
|
|
1030
|
-
* Present on Type.DELEGATED invitations.
|
|
1031
|
-
*
|
|
1032
|
-
* Options:
|
|
1033
|
-
* - proto3_optional = true
|
|
1034
|
-
*/
|
|
1035
|
-
delegationCredentialId?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
1036
|
-
/**
|
|
1037
|
-
* Role of the admitted member, defaults to ADMIN.
|
|
1038
|
-
*
|
|
1039
|
-
* Options:
|
|
1040
|
-
* - proto3_optional = true
|
|
1041
|
-
*/
|
|
1042
|
-
role?: dxos_halo_credentials.SpaceMember.Role;
|
|
1043
|
-
}
|
|
1044
|
-
export namespace Invitation {
|
|
1045
|
-
/**
|
|
1046
|
-
* Defined in:
|
|
1047
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
1048
|
-
*/
|
|
1049
|
-
export enum Type {
|
|
1050
|
-
INTERACTIVE = 0,
|
|
1051
|
-
DELEGATED = 1,
|
|
1052
|
-
MULTIUSE = 2
|
|
1053
|
-
}
|
|
1054
|
-
/**
|
|
1055
|
-
* Defined in:
|
|
1056
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
1057
|
-
*/
|
|
1058
|
-
export enum Kind {
|
|
1059
|
-
DEVICE = 0,
|
|
1060
|
-
SPACE = 1
|
|
1061
|
-
}
|
|
1062
|
-
/**
|
|
1063
|
-
* Defined in:
|
|
1064
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
1065
|
-
*/
|
|
1066
|
-
export enum AuthMethod {
|
|
1067
|
-
NONE = 0,
|
|
1068
|
-
SHARED_SECRET = 1,
|
|
1069
|
-
KNOWN_PUBLIC_KEY = 2
|
|
1070
|
-
}
|
|
1071
|
-
/**
|
|
1072
|
-
* Defined in:
|
|
1073
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
1074
|
-
*/
|
|
1075
|
-
export enum State {
|
|
1076
|
-
INIT = 0,
|
|
1077
|
-
CONNECTING = 1,
|
|
1078
|
-
CONNECTED = 2,
|
|
1079
|
-
READY_FOR_AUTHENTICATION = 3,
|
|
1080
|
-
AUTHENTICATING = 4,
|
|
1081
|
-
SUCCESS = 5,
|
|
1082
|
-
CANCELLED = 6,
|
|
1083
|
-
TIMEOUT = 7,
|
|
1084
|
-
ERROR = 8,
|
|
1085
|
-
EXPIRED = 9
|
|
1086
|
-
}
|
|
1087
|
-
}
|
|
1088
|
-
/**
|
|
1089
|
-
* Defined in:
|
|
1090
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
1091
|
-
*/
|
|
1092
|
-
export interface AdmissionKeypair {
|
|
1093
|
-
publicKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
1094
|
-
/**
|
|
1095
|
-
* Options:
|
|
1096
|
-
* - proto3_optional = true
|
|
1097
|
-
*/
|
|
1098
|
-
privateKey?: ReturnType<(typeof substitutions)["dxos.keys.PrivateKey"]["decode"]>;
|
|
1099
|
-
}
|
|
1100
|
-
/**
|
|
1101
|
-
* Defined in:
|
|
1102
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
1103
|
-
*/
|
|
1104
|
-
export interface AcceptInvitationRequest {
|
|
1105
|
-
invitation: Invitation;
|
|
930
|
+
export interface AcceptInvitationRequest {
|
|
931
|
+
invitation: Invitation;
|
|
1106
932
|
/**
|
|
1107
933
|
* Options:
|
|
1108
934
|
* - proto3_optional = true
|
|
@@ -1226,3 +1052,180 @@ export interface NetworkService {
|
|
|
1226
1052
|
updateConfig: (request: UpdateConfigRequest, options?: RequestOptions) => Promise<void>;
|
|
1227
1053
|
queryStatus: (request: void, options?: RequestOptions) => Stream<NetworkStatus>;
|
|
1228
1054
|
}
|
|
1055
|
+
/**
|
|
1056
|
+
* Defined in:
|
|
1057
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
1058
|
+
*/
|
|
1059
|
+
export interface Metrics {
|
|
1060
|
+
timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
1061
|
+
values?: Metrics.KeyPair[];
|
|
1062
|
+
}
|
|
1063
|
+
export namespace Metrics {
|
|
1064
|
+
/**
|
|
1065
|
+
* Defined in:
|
|
1066
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
1067
|
+
*/
|
|
1068
|
+
export interface KeyPair {
|
|
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
|
+
}
|
|
1085
|
+
}
|
|
1086
|
+
/**
|
|
1087
|
+
* Defined in:
|
|
1088
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
1089
|
+
*/
|
|
1090
|
+
export interface ControlMetricsRequest {
|
|
1091
|
+
/**
|
|
1092
|
+
* Options:
|
|
1093
|
+
* - proto3_optional = true
|
|
1094
|
+
*/
|
|
1095
|
+
reset?: boolean;
|
|
1096
|
+
/**
|
|
1097
|
+
* Options:
|
|
1098
|
+
* - proto3_optional = true
|
|
1099
|
+
*/
|
|
1100
|
+
record?: boolean;
|
|
1101
|
+
}
|
|
1102
|
+
/**
|
|
1103
|
+
* Defined in:
|
|
1104
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
1105
|
+
*/
|
|
1106
|
+
export interface ControlMetricsResponse {
|
|
1107
|
+
/**
|
|
1108
|
+
* Options:
|
|
1109
|
+
* - proto3_optional = true
|
|
1110
|
+
*/
|
|
1111
|
+
recording?: boolean;
|
|
1112
|
+
}
|
|
1113
|
+
/**
|
|
1114
|
+
* Defined in:
|
|
1115
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
1116
|
+
*/
|
|
1117
|
+
export interface QueryMetricsRequest {
|
|
1118
|
+
/**
|
|
1119
|
+
* Options:
|
|
1120
|
+
* - proto3_optional = true
|
|
1121
|
+
*/
|
|
1122
|
+
interval?: number;
|
|
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[];
|
|
1150
|
+
/**
|
|
1151
|
+
* Options:
|
|
1152
|
+
* - proto3_optional = true
|
|
1153
|
+
*/
|
|
1154
|
+
options?: QueryLogsRequest.MatchingOptions;
|
|
1155
|
+
}
|
|
1156
|
+
export namespace QueryLogsRequest {
|
|
1157
|
+
/**
|
|
1158
|
+
* Defined in:
|
|
1159
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
1160
|
+
*/
|
|
1161
|
+
export enum MatchingOptions {
|
|
1162
|
+
NONE = 0,
|
|
1163
|
+
INCLUSIVE = 1,
|
|
1164
|
+
EXPLICIT = 2
|
|
1165
|
+
}
|
|
1166
|
+
/**
|
|
1167
|
+
* Defined in:
|
|
1168
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
1169
|
+
*/
|
|
1170
|
+
export interface Filter {
|
|
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;
|
|
1186
|
+
/**
|
|
1187
|
+
* Options:
|
|
1188
|
+
* - proto3_optional = true
|
|
1189
|
+
*/
|
|
1190
|
+
context?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
|
|
1191
|
+
/**
|
|
1192
|
+
* Options:
|
|
1193
|
+
* - proto3_optional = true
|
|
1194
|
+
*/
|
|
1195
|
+
meta?: LogEntry.Meta;
|
|
1196
|
+
/**
|
|
1197
|
+
* Options:
|
|
1198
|
+
* - proto3_optional = true
|
|
1199
|
+
*/
|
|
1200
|
+
error?: dxos_error.Error;
|
|
1201
|
+
timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
1202
|
+
}
|
|
1203
|
+
export namespace LogEntry {
|
|
1204
|
+
/**
|
|
1205
|
+
* Defined in:
|
|
1206
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
1207
|
+
*/
|
|
1208
|
+
export interface Meta {
|
|
1209
|
+
file: string;
|
|
1210
|
+
line: number;
|
|
1211
|
+
/**
|
|
1212
|
+
* Options:
|
|
1213
|
+
* - proto3_optional = true
|
|
1214
|
+
*/
|
|
1215
|
+
scope?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
|
|
1216
|
+
/**
|
|
1217
|
+
* Options:
|
|
1218
|
+
* - proto3_optional = true
|
|
1219
|
+
*/
|
|
1220
|
+
resourceId?: number;
|
|
1221
|
+
}
|
|
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
|
+
}
|