@dxos/protocols 0.4.10-main.fd4f2a3 → 0.4.10-main.fe71b4c
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/indexing.d.ts +4 -3
- package/dist/cjs/src/indexing.d.ts.map +1 -1
- package/dist/cjs/src/indexing.js.map +1 -1
- package/dist/cjs/src/proto/gen/dxos/client/services.d.ts +204 -177
- package/dist/cjs/src/proto/gen/dxos/client/services.d.ts.map +1 -1
- package/dist/cjs/src/proto/gen/dxos/client/services.js +27 -26
- package/dist/cjs/src/proto/gen/dxos/client/services.js.map +1 -1
- package/dist/cjs/src/proto/gen/dxos/config.d.ts +5 -0
- package/dist/cjs/src/proto/gen/dxos/config.d.ts.map +1 -1
- package/dist/cjs/src/proto/gen/dxos/config.js.map +1 -1
- package/dist/cjs/src/proto/gen/dxos/echo/model/document.d.ts +0 -1
- package/dist/cjs/src/proto/gen/dxos/echo/model/document.d.ts.map +1 -1
- package/dist/cjs/src/proto/gen/dxos/echo/model/document.js.map +1 -1
- package/dist/cjs/src/proto/gen/dxos/halo/invitations.d.ts +23 -2
- package/dist/cjs/src/proto/gen/dxos/halo/invitations.d.ts.map +1 -1
- package/dist/cjs/src/proto/gen/dxos/halo/invitations.js +1 -0
- package/dist/cjs/src/proto/gen/dxos/halo/invitations.js.map +1 -1
- package/dist/cjs/src/proto/gen/index.d.ts +1 -0
- package/dist/cjs/src/proto/gen/index.d.ts.map +1 -1
- package/dist/cjs/src/proto/gen/index.js +1 -1
- package/dist/cjs/src/proto/gen/index.js.map +1 -1
- package/dist/cjs/tsconfig.tsbuildinfo +1 -1
- package/dist/esm/src/indexing.d.ts +4 -3
- package/dist/esm/src/indexing.d.ts.map +1 -1
- package/dist/esm/src/indexing.js.map +1 -1
- package/dist/esm/src/proto/gen/dxos/client/services.d.ts +204 -177
- package/dist/esm/src/proto/gen/dxos/client/services.d.ts.map +1 -1
- package/dist/esm/src/proto/gen/dxos/client/services.js +26 -25
- package/dist/esm/src/proto/gen/dxos/client/services.js.map +1 -1
- package/dist/esm/src/proto/gen/dxos/config.d.ts +5 -0
- package/dist/esm/src/proto/gen/dxos/config.d.ts.map +1 -1
- package/dist/esm/src/proto/gen/dxos/config.js.map +1 -1
- package/dist/esm/src/proto/gen/dxos/echo/model/document.d.ts +0 -1
- package/dist/esm/src/proto/gen/dxos/echo/model/document.d.ts.map +1 -1
- package/dist/esm/src/proto/gen/dxos/echo/model/document.js.map +1 -1
- package/dist/esm/src/proto/gen/dxos/halo/invitations.d.ts +23 -2
- package/dist/esm/src/proto/gen/dxos/halo/invitations.d.ts.map +1 -1
- package/dist/esm/src/proto/gen/dxos/halo/invitations.js +1 -0
- package/dist/esm/src/proto/gen/dxos/halo/invitations.js.map +1 -1
- package/dist/esm/src/proto/gen/index.d.ts +1 -0
- package/dist/esm/src/proto/gen/index.d.ts.map +1 -1
- package/dist/esm/src/proto/gen/index.js +1 -1
- package/dist/esm/src/proto/gen/index.js.map +1 -1
- package/package.json +5 -5
- package/src/indexing.ts +5 -4
- package/src/proto/dxos/client/services.proto +20 -3
- package/src/proto/dxos/config.proto +5 -1
- package/src/proto/dxos/echo/model/document.proto +0 -3
- package/src/proto/dxos/halo/invitations.proto +9 -1
- package/src/proto/gen/dxos/client/services.ts +204 -177
- package/src/proto/gen/dxos/config.ts +5 -0
- package/src/proto/gen/dxos/echo/model/document.ts +0 -1
- package/src/proto/gen/dxos/halo/invitations.ts +23 -2
- package/src/proto/gen/index.ts +2 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/proto/gen/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AA8DhE,OAAO,aAAa,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/proto/gen/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AA8DhE,OAAO,aAAa,MAAM,kBAAkB,CAAC;AA6hB7C,MAAM,CAAC,MAAM,UAAU,GAAG,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,6huGAA6huG,CAAC,CAAC,CAAC;AACtluG,MAAM,CAAC,MAAM,MAAM,GAAG,MAAM,CAAC,QAAQ,CAAkB,UAAU,EAAE,aAAa,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/protocols",
|
|
3
|
-
"version": "0.4.10-main.
|
|
3
|
+
"version": "0.4.10-main.fe71b4c",
|
|
4
4
|
"description": "Protobuf definitions for DXOS protocols.",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
@@ -33,10 +33,10 @@
|
|
|
33
33
|
"src"
|
|
34
34
|
],
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@dxos/invariant": "0.4.10-main.
|
|
37
|
-
"@dxos/
|
|
38
|
-
"@dxos/timeframe": "0.4.10-main.
|
|
39
|
-
"@dxos/
|
|
36
|
+
"@dxos/invariant": "0.4.10-main.fe71b4c",
|
|
37
|
+
"@dxos/keys": "0.4.10-main.fe71b4c",
|
|
38
|
+
"@dxos/timeframe": "0.4.10-main.fe71b4c",
|
|
39
|
+
"@dxos/codec-protobuf": "0.4.10-main.fe71b4c"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"glob": "~7.1.6"
|
package/src/indexing.ts
CHANGED
|
@@ -2,15 +2,16 @@
|
|
|
2
2
|
// Copyright 2024 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
export type IdDecoded = {
|
|
5
|
+
export type ObjectPointerDecoded = {
|
|
7
6
|
documentId: string;
|
|
8
7
|
objectId: string;
|
|
9
8
|
};
|
|
10
9
|
|
|
10
|
+
export type ObjectPointerEncoded = string;
|
|
11
|
+
|
|
11
12
|
export const idCodec = {
|
|
12
|
-
encode: ({ documentId, objectId }:
|
|
13
|
-
decode: (id:
|
|
13
|
+
encode: ({ documentId, objectId }: ObjectPointerDecoded): ObjectPointerEncoded => `${documentId}|${objectId}`,
|
|
14
|
+
decode: (id: ObjectPointerEncoded): ObjectPointerDecoded => {
|
|
14
15
|
const [documentId, objectId] = id.split('|');
|
|
15
16
|
return { documentId, objectId };
|
|
16
17
|
},
|
|
@@ -405,9 +405,12 @@ message Invitation {
|
|
|
405
405
|
enum Type {
|
|
406
406
|
/// Requires both to be online to complete key exchange.
|
|
407
407
|
INTERACTIVE = 0;
|
|
408
|
-
///
|
|
409
|
-
|
|
410
|
-
|
|
408
|
+
/// Invitation can be accepted by any valid peer.
|
|
409
|
+
DELEGATED = 1;
|
|
410
|
+
/**
|
|
411
|
+
* Multi-use interactive invitations.
|
|
412
|
+
* @deprecated use multiUse flag with type=interactive instead.
|
|
413
|
+
*/
|
|
411
414
|
MULTIUSE = 2;
|
|
412
415
|
}
|
|
413
416
|
|
|
@@ -422,6 +425,9 @@ message Invitation {
|
|
|
422
425
|
|
|
423
426
|
/// Guest should call `Authenticate` with the shared secret.
|
|
424
427
|
SHARED_SECRET = 1;
|
|
428
|
+
|
|
429
|
+
/// Guest should prove they possess a private key corresponding to the known public key recorded in an invitation.
|
|
430
|
+
KNOWN_PUBLIC_KEY = 2;
|
|
425
431
|
}
|
|
426
432
|
|
|
427
433
|
enum State {
|
|
@@ -480,6 +486,17 @@ message Invitation {
|
|
|
480
486
|
// TODO(nf): some feedback mechanism or GC for immortal invitations?
|
|
481
487
|
// TODO(nf): should the creator have a way to make an invitation last as long as the client? this was the previous behavior.
|
|
482
488
|
optional int32 lifetime = 14;
|
|
489
|
+
|
|
490
|
+
/// Whether an invitation can be used multiple times.
|
|
491
|
+
optional bool multi_use = 15;
|
|
492
|
+
|
|
493
|
+
/// Guest's keypair required for AuthMethod.KNOWN_PUBLIC_KEY.
|
|
494
|
+
optional AdmissionKeypair guest_keypair = 16;
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
message AdmissionKeypair {
|
|
498
|
+
dxos.keys.PublicKey public_key = 1;
|
|
499
|
+
optional dxos.keys.PrivateKey private_key = 2;
|
|
483
500
|
}
|
|
484
501
|
|
|
485
502
|
message AcceptInvitationRequest {
|
|
@@ -131,9 +131,13 @@ message Runtime {
|
|
|
131
131
|
/// Location of the remote client host.
|
|
132
132
|
// TODO(burdon): Rename vault_endpoint (generalize http/ws; drop vault.html).
|
|
133
133
|
optional string remote_source = 6;
|
|
134
|
-
|
|
134
|
+
|
|
135
|
+
// Authenticate via `Sec-WebSocket-Protocol` header hack.
|
|
136
|
+
optional string remote_source_authentication_token = 8;
|
|
137
|
+
|
|
135
138
|
/// Connect to and serve client services to a remote proxy.
|
|
136
139
|
optional string devtools_proxy = 7;
|
|
140
|
+
|
|
137
141
|
}
|
|
138
142
|
|
|
139
143
|
message App {
|
|
@@ -33,12 +33,19 @@ message IntroductionRequest {
|
|
|
33
33
|
message IntroductionResponse {
|
|
34
34
|
dxos.client.services.Invitation.AuthMethod auth_method = 1;
|
|
35
35
|
|
|
36
|
+
/// Present when auth_method is KNOWN_PUBLIC_KEY.
|
|
37
|
+
optional bytes challenge = 2;
|
|
38
|
+
|
|
36
39
|
/// Only present for testing invitation types.
|
|
37
40
|
optional dxos.keys.PublicKey space_key = 100;
|
|
38
41
|
}
|
|
39
42
|
|
|
40
43
|
message AuthenticationRequest {
|
|
41
|
-
|
|
44
|
+
/// Present when auth_method is SHARED_SECRET.
|
|
45
|
+
optional string auth_code = 1;
|
|
46
|
+
|
|
47
|
+
/// Present when auth_method is KNOWN_PUBLIC_KEY.
|
|
48
|
+
optional bytes signed_challenge = 2;
|
|
42
49
|
}
|
|
43
50
|
|
|
44
51
|
message AuthenticationResponse {
|
|
@@ -47,6 +54,7 @@ message AuthenticationResponse {
|
|
|
47
54
|
INVALID_OTP = 1;
|
|
48
55
|
INVALID_OPT_ATTEMPTS = 2;
|
|
49
56
|
INTERNAL_ERROR = 3;
|
|
57
|
+
INVALID_SIGNATURE = 4;
|
|
50
58
|
}
|
|
51
59
|
|
|
52
60
|
optional Status status = 1;
|
|
@@ -60,6 +60,181 @@ import * as dxos_value from "../value";
|
|
|
60
60
|
import * as example_testing_data from "../../example/testing/data";
|
|
61
61
|
import * as example_testing_rpc from "../../example/testing/rpc";
|
|
62
62
|
import * as google_protobuf from "../../google/protobuf";
|
|
63
|
+
/**
|
|
64
|
+
* Defined in:
|
|
65
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
66
|
+
*/
|
|
67
|
+
export interface Metrics {
|
|
68
|
+
timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
69
|
+
values?: Metrics.KeyPair[];
|
|
70
|
+
}
|
|
71
|
+
export namespace Metrics {
|
|
72
|
+
/**
|
|
73
|
+
* Defined in:
|
|
74
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
75
|
+
*/
|
|
76
|
+
export interface KeyPair {
|
|
77
|
+
/**
|
|
78
|
+
* Options:
|
|
79
|
+
* - proto3_optional = true
|
|
80
|
+
*/
|
|
81
|
+
key?: string;
|
|
82
|
+
/**
|
|
83
|
+
* Options:
|
|
84
|
+
* - proto3_optional = true
|
|
85
|
+
*/
|
|
86
|
+
value?: dxos_value.Value;
|
|
87
|
+
/**
|
|
88
|
+
* Options:
|
|
89
|
+
* - proto3_optional = true
|
|
90
|
+
*/
|
|
91
|
+
stats?: dxos_value.Stats;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Defined in:
|
|
96
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
97
|
+
*/
|
|
98
|
+
export interface ControlMetricsRequest {
|
|
99
|
+
/**
|
|
100
|
+
* Options:
|
|
101
|
+
* - proto3_optional = true
|
|
102
|
+
*/
|
|
103
|
+
reset?: boolean;
|
|
104
|
+
/**
|
|
105
|
+
* Options:
|
|
106
|
+
* - proto3_optional = true
|
|
107
|
+
*/
|
|
108
|
+
record?: boolean;
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* Defined in:
|
|
112
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
113
|
+
*/
|
|
114
|
+
export interface ControlMetricsResponse {
|
|
115
|
+
/**
|
|
116
|
+
* Options:
|
|
117
|
+
* - proto3_optional = true
|
|
118
|
+
*/
|
|
119
|
+
recording?: boolean;
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* Defined in:
|
|
123
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
124
|
+
*/
|
|
125
|
+
export interface QueryMetricsRequest {
|
|
126
|
+
/**
|
|
127
|
+
* Options:
|
|
128
|
+
* - proto3_optional = true
|
|
129
|
+
*/
|
|
130
|
+
interval?: number;
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* Defined in:
|
|
134
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
135
|
+
*/
|
|
136
|
+
export interface QueryMetricsResponse {
|
|
137
|
+
timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
138
|
+
metrics: Metrics;
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* Defined in:
|
|
142
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
143
|
+
*/
|
|
144
|
+
export enum LogLevel {
|
|
145
|
+
TRACE = 5,
|
|
146
|
+
DEBUG = 10,
|
|
147
|
+
INFO = 11,
|
|
148
|
+
WARN = 12,
|
|
149
|
+
ERROR = 13
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* Defined in:
|
|
153
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
154
|
+
*/
|
|
155
|
+
export interface QueryLogsRequest {
|
|
156
|
+
filters?: QueryLogsRequest.Filter[];
|
|
157
|
+
/**
|
|
158
|
+
* Options:
|
|
159
|
+
* - proto3_optional = true
|
|
160
|
+
*/
|
|
161
|
+
options?: QueryLogsRequest.MatchingOptions;
|
|
162
|
+
}
|
|
163
|
+
export namespace QueryLogsRequest {
|
|
164
|
+
/**
|
|
165
|
+
* Defined in:
|
|
166
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
167
|
+
*/
|
|
168
|
+
export enum MatchingOptions {
|
|
169
|
+
INCLUSIVE = 1,
|
|
170
|
+
EXPLICIT = 2
|
|
171
|
+
}
|
|
172
|
+
/**
|
|
173
|
+
* Defined in:
|
|
174
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
175
|
+
*/
|
|
176
|
+
export interface Filter {
|
|
177
|
+
level: LogLevel;
|
|
178
|
+
/**
|
|
179
|
+
* Options:
|
|
180
|
+
* - proto3_optional = true
|
|
181
|
+
*/
|
|
182
|
+
pattern?: string;
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
/**
|
|
186
|
+
* Defined in:
|
|
187
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
188
|
+
*/
|
|
189
|
+
export interface LogEntry {
|
|
190
|
+
level: LogLevel;
|
|
191
|
+
message: string;
|
|
192
|
+
/**
|
|
193
|
+
* Options:
|
|
194
|
+
* - proto3_optional = true
|
|
195
|
+
*/
|
|
196
|
+
context?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
|
|
197
|
+
/**
|
|
198
|
+
* Options:
|
|
199
|
+
* - proto3_optional = true
|
|
200
|
+
*/
|
|
201
|
+
meta?: LogEntry.Meta;
|
|
202
|
+
/**
|
|
203
|
+
* Options:
|
|
204
|
+
* - proto3_optional = true
|
|
205
|
+
*/
|
|
206
|
+
error?: dxos_error.Error;
|
|
207
|
+
timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
208
|
+
}
|
|
209
|
+
export namespace LogEntry {
|
|
210
|
+
/**
|
|
211
|
+
* Defined in:
|
|
212
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
213
|
+
*/
|
|
214
|
+
export interface Meta {
|
|
215
|
+
file: string;
|
|
216
|
+
line: number;
|
|
217
|
+
/**
|
|
218
|
+
* Options:
|
|
219
|
+
* - proto3_optional = true
|
|
220
|
+
*/
|
|
221
|
+
scope?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
|
|
222
|
+
/**
|
|
223
|
+
* Options:
|
|
224
|
+
* - proto3_optional = true
|
|
225
|
+
*/
|
|
226
|
+
resourceId?: number;
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
/**
|
|
230
|
+
* Defined in:
|
|
231
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
232
|
+
*/
|
|
233
|
+
export interface LoggingService {
|
|
234
|
+
controlMetrics: (request: ControlMetricsRequest, options?: RequestOptions) => Promise<ControlMetricsResponse>;
|
|
235
|
+
queryMetrics: (request: QueryMetricsRequest, options?: RequestOptions) => Stream<QueryMetricsResponse>;
|
|
236
|
+
queryLogs: (request: QueryLogsRequest, options?: RequestOptions) => Stream<LogEntry>;
|
|
237
|
+
}
|
|
63
238
|
/**
|
|
64
239
|
* Defined in:
|
|
65
240
|
* {@link file://./../../../dxos/client/services.proto}
|
|
@@ -750,6 +925,20 @@ export interface Invitation {
|
|
|
750
925
|
* - proto3_optional = true
|
|
751
926
|
*/
|
|
752
927
|
lifetime?: number;
|
|
928
|
+
/**
|
|
929
|
+
* Whether an invitation can be used multiple times.
|
|
930
|
+
*
|
|
931
|
+
* Options:
|
|
932
|
+
* - proto3_optional = true
|
|
933
|
+
*/
|
|
934
|
+
multiUse?: boolean;
|
|
935
|
+
/**
|
|
936
|
+
* Guest's keypair required for AuthMethod.KNOWN_PUBLIC_KEY.
|
|
937
|
+
*
|
|
938
|
+
* Options:
|
|
939
|
+
* - proto3_optional = true
|
|
940
|
+
*/
|
|
941
|
+
guestKeypair?: AdmissionKeypair;
|
|
753
942
|
}
|
|
754
943
|
export namespace Invitation {
|
|
755
944
|
/**
|
|
@@ -758,7 +947,7 @@ export namespace Invitation {
|
|
|
758
947
|
*/
|
|
759
948
|
export enum Type {
|
|
760
949
|
INTERACTIVE = 0,
|
|
761
|
-
|
|
950
|
+
DELEGATED = 1,
|
|
762
951
|
MULTIUSE = 2
|
|
763
952
|
}
|
|
764
953
|
/**
|
|
@@ -775,7 +964,8 @@ export namespace Invitation {
|
|
|
775
964
|
*/
|
|
776
965
|
export enum AuthMethod {
|
|
777
966
|
NONE = 0,
|
|
778
|
-
SHARED_SECRET = 1
|
|
967
|
+
SHARED_SECRET = 1,
|
|
968
|
+
KNOWN_PUBLIC_KEY = 2
|
|
779
969
|
}
|
|
780
970
|
/**
|
|
781
971
|
* Defined in:
|
|
@@ -794,6 +984,18 @@ export namespace Invitation {
|
|
|
794
984
|
EXPIRED = 9
|
|
795
985
|
}
|
|
796
986
|
}
|
|
987
|
+
/**
|
|
988
|
+
* Defined in:
|
|
989
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
990
|
+
*/
|
|
991
|
+
export interface AdmissionKeypair {
|
|
992
|
+
publicKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
993
|
+
/**
|
|
994
|
+
* Options:
|
|
995
|
+
* - proto3_optional = true
|
|
996
|
+
*/
|
|
997
|
+
privateKey?: ReturnType<(typeof substitutions)["dxos.keys.PrivateKey"]["decode"]>;
|
|
998
|
+
}
|
|
797
999
|
/**
|
|
798
1000
|
* Defined in:
|
|
799
1001
|
* {@link file://./../../../dxos/client/services.proto}
|
|
@@ -924,178 +1126,3 @@ export interface NetworkService {
|
|
|
924
1126
|
updateConfig: (request: UpdateConfigRequest, options?: RequestOptions) => Promise<void>;
|
|
925
1127
|
queryStatus: (request: void, options?: RequestOptions) => Stream<NetworkStatus>;
|
|
926
1128
|
}
|
|
927
|
-
/**
|
|
928
|
-
* Defined in:
|
|
929
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
930
|
-
*/
|
|
931
|
-
export interface Metrics {
|
|
932
|
-
timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
933
|
-
values?: Metrics.KeyPair[];
|
|
934
|
-
}
|
|
935
|
-
export namespace Metrics {
|
|
936
|
-
/**
|
|
937
|
-
* Defined in:
|
|
938
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
939
|
-
*/
|
|
940
|
-
export interface KeyPair {
|
|
941
|
-
/**
|
|
942
|
-
* Options:
|
|
943
|
-
* - proto3_optional = true
|
|
944
|
-
*/
|
|
945
|
-
key?: string;
|
|
946
|
-
/**
|
|
947
|
-
* Options:
|
|
948
|
-
* - proto3_optional = true
|
|
949
|
-
*/
|
|
950
|
-
value?: dxos_value.Value;
|
|
951
|
-
/**
|
|
952
|
-
* Options:
|
|
953
|
-
* - proto3_optional = true
|
|
954
|
-
*/
|
|
955
|
-
stats?: dxos_value.Stats;
|
|
956
|
-
}
|
|
957
|
-
}
|
|
958
|
-
/**
|
|
959
|
-
* Defined in:
|
|
960
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
961
|
-
*/
|
|
962
|
-
export interface ControlMetricsRequest {
|
|
963
|
-
/**
|
|
964
|
-
* Options:
|
|
965
|
-
* - proto3_optional = true
|
|
966
|
-
*/
|
|
967
|
-
reset?: boolean;
|
|
968
|
-
/**
|
|
969
|
-
* Options:
|
|
970
|
-
* - proto3_optional = true
|
|
971
|
-
*/
|
|
972
|
-
record?: boolean;
|
|
973
|
-
}
|
|
974
|
-
/**
|
|
975
|
-
* Defined in:
|
|
976
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
977
|
-
*/
|
|
978
|
-
export interface ControlMetricsResponse {
|
|
979
|
-
/**
|
|
980
|
-
* Options:
|
|
981
|
-
* - proto3_optional = true
|
|
982
|
-
*/
|
|
983
|
-
recording?: boolean;
|
|
984
|
-
}
|
|
985
|
-
/**
|
|
986
|
-
* Defined in:
|
|
987
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
988
|
-
*/
|
|
989
|
-
export interface QueryMetricsRequest {
|
|
990
|
-
/**
|
|
991
|
-
* Options:
|
|
992
|
-
* - proto3_optional = true
|
|
993
|
-
*/
|
|
994
|
-
interval?: number;
|
|
995
|
-
}
|
|
996
|
-
/**
|
|
997
|
-
* Defined in:
|
|
998
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
999
|
-
*/
|
|
1000
|
-
export interface QueryMetricsResponse {
|
|
1001
|
-
timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
1002
|
-
metrics: Metrics;
|
|
1003
|
-
}
|
|
1004
|
-
/**
|
|
1005
|
-
* Defined in:
|
|
1006
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
1007
|
-
*/
|
|
1008
|
-
export enum LogLevel {
|
|
1009
|
-
TRACE = 5,
|
|
1010
|
-
DEBUG = 10,
|
|
1011
|
-
INFO = 11,
|
|
1012
|
-
WARN = 12,
|
|
1013
|
-
ERROR = 13
|
|
1014
|
-
}
|
|
1015
|
-
/**
|
|
1016
|
-
* Defined in:
|
|
1017
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
1018
|
-
*/
|
|
1019
|
-
export interface QueryLogsRequest {
|
|
1020
|
-
filters?: QueryLogsRequest.Filter[];
|
|
1021
|
-
/**
|
|
1022
|
-
* Options:
|
|
1023
|
-
* - proto3_optional = true
|
|
1024
|
-
*/
|
|
1025
|
-
options?: QueryLogsRequest.MatchingOptions;
|
|
1026
|
-
}
|
|
1027
|
-
export namespace QueryLogsRequest {
|
|
1028
|
-
/**
|
|
1029
|
-
* Defined in:
|
|
1030
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
1031
|
-
*/
|
|
1032
|
-
export enum MatchingOptions {
|
|
1033
|
-
INCLUSIVE = 1,
|
|
1034
|
-
EXPLICIT = 2
|
|
1035
|
-
}
|
|
1036
|
-
/**
|
|
1037
|
-
* Defined in:
|
|
1038
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
1039
|
-
*/
|
|
1040
|
-
export interface Filter {
|
|
1041
|
-
level: LogLevel;
|
|
1042
|
-
/**
|
|
1043
|
-
* Options:
|
|
1044
|
-
* - proto3_optional = true
|
|
1045
|
-
*/
|
|
1046
|
-
pattern?: string;
|
|
1047
|
-
}
|
|
1048
|
-
}
|
|
1049
|
-
/**
|
|
1050
|
-
* Defined in:
|
|
1051
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
1052
|
-
*/
|
|
1053
|
-
export interface LogEntry {
|
|
1054
|
-
level: LogLevel;
|
|
1055
|
-
message: string;
|
|
1056
|
-
/**
|
|
1057
|
-
* Options:
|
|
1058
|
-
* - proto3_optional = true
|
|
1059
|
-
*/
|
|
1060
|
-
context?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
|
|
1061
|
-
/**
|
|
1062
|
-
* Options:
|
|
1063
|
-
* - proto3_optional = true
|
|
1064
|
-
*/
|
|
1065
|
-
meta?: LogEntry.Meta;
|
|
1066
|
-
/**
|
|
1067
|
-
* Options:
|
|
1068
|
-
* - proto3_optional = true
|
|
1069
|
-
*/
|
|
1070
|
-
error?: dxos_error.Error;
|
|
1071
|
-
timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
1072
|
-
}
|
|
1073
|
-
export namespace LogEntry {
|
|
1074
|
-
/**
|
|
1075
|
-
* Defined in:
|
|
1076
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
1077
|
-
*/
|
|
1078
|
-
export interface Meta {
|
|
1079
|
-
file: string;
|
|
1080
|
-
line: number;
|
|
1081
|
-
/**
|
|
1082
|
-
* Options:
|
|
1083
|
-
* - proto3_optional = true
|
|
1084
|
-
*/
|
|
1085
|
-
scope?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
|
|
1086
|
-
/**
|
|
1087
|
-
* Options:
|
|
1088
|
-
* - proto3_optional = true
|
|
1089
|
-
*/
|
|
1090
|
-
resourceId?: number;
|
|
1091
|
-
}
|
|
1092
|
-
}
|
|
1093
|
-
/**
|
|
1094
|
-
* Defined in:
|
|
1095
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
1096
|
-
*/
|
|
1097
|
-
export interface LoggingService {
|
|
1098
|
-
controlMetrics: (request: ControlMetricsRequest, options?: RequestOptions) => Promise<ControlMetricsResponse>;
|
|
1099
|
-
queryMetrics: (request: QueryMetricsRequest, options?: RequestOptions) => Stream<QueryMetricsResponse>;
|
|
1100
|
-
queryLogs: (request: QueryLogsRequest, options?: RequestOptions) => Stream<LogEntry>;
|
|
1101
|
-
}
|
|
@@ -291,6 +291,11 @@ export namespace Runtime {
|
|
|
291
291
|
* - proto3_optional = true
|
|
292
292
|
*/
|
|
293
293
|
remoteSource?: string;
|
|
294
|
+
/**
|
|
295
|
+
* Options:
|
|
296
|
+
* - proto3_optional = true
|
|
297
|
+
*/
|
|
298
|
+
remoteSourceAuthenticationToken?: string;
|
|
294
299
|
/**
|
|
295
300
|
* Connect to and serve client services to a remote proxy.
|
|
296
301
|
*
|
|
@@ -104,6 +104,13 @@ export interface IntroductionRequest {
|
|
|
104
104
|
*/
|
|
105
105
|
export interface IntroductionResponse {
|
|
106
106
|
authMethod: dxos_client_services.Invitation.AuthMethod;
|
|
107
|
+
/**
|
|
108
|
+
* Present when auth_method is KNOWN_PUBLIC_KEY.
|
|
109
|
+
*
|
|
110
|
+
* Options:
|
|
111
|
+
* - proto3_optional = true
|
|
112
|
+
*/
|
|
113
|
+
challenge?: Uint8Array;
|
|
107
114
|
/**
|
|
108
115
|
* Only present for testing invitation types.
|
|
109
116
|
*
|
|
@@ -117,7 +124,20 @@ export interface IntroductionResponse {
|
|
|
117
124
|
* {@link file://./../../../dxos/halo/invitations.proto}
|
|
118
125
|
*/
|
|
119
126
|
export interface AuthenticationRequest {
|
|
120
|
-
|
|
127
|
+
/**
|
|
128
|
+
* Present when auth_method is SHARED_SECRET.
|
|
129
|
+
*
|
|
130
|
+
* Options:
|
|
131
|
+
* - proto3_optional = true
|
|
132
|
+
*/
|
|
133
|
+
authCode?: string;
|
|
134
|
+
/**
|
|
135
|
+
* Present when auth_method is KNOWN_PUBLIC_KEY.
|
|
136
|
+
*
|
|
137
|
+
* Options:
|
|
138
|
+
* - proto3_optional = true
|
|
139
|
+
*/
|
|
140
|
+
signedChallenge?: Uint8Array;
|
|
121
141
|
}
|
|
122
142
|
/**
|
|
123
143
|
* Defined in:
|
|
@@ -139,7 +159,8 @@ export namespace AuthenticationResponse {
|
|
|
139
159
|
OK = 0,
|
|
140
160
|
INVALID_OTP = 1,
|
|
141
161
|
INVALID_OPT_ATTEMPTS = 2,
|
|
142
|
-
INTERNAL_ERROR = 3
|
|
162
|
+
INTERNAL_ERROR = 3,
|
|
163
|
+
INVALID_SIGNATURE = 4
|
|
143
164
|
}
|
|
144
165
|
}
|
|
145
166
|
/**
|