@dxos/protocols 0.4.10-main.e2d2318 → 0.4.10-main.e9f9c10
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 +176 -195
- package/dist/cjs/src/proto/gen/dxos/client/services.d.ts.map +1 -1
- package/dist/cjs/src/proto/gen/dxos/client/services.js +26 -26
- package/dist/cjs/src/proto/gen/dxos/client/services.js.map +1 -1
- package/dist/cjs/src/proto/gen/dxos/halo/invitations.d.ts +2 -23
- package/dist/cjs/src/proto/gen/dxos/halo/invitations.d.ts.map +1 -1
- package/dist/cjs/src/proto/gen/dxos/halo/invitations.js +0 -1
- package/dist/cjs/src/proto/gen/dxos/halo/invitations.js.map +1 -1
- package/dist/cjs/src/proto/gen/index.d.ts +0 -1
- 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 +176 -195
- package/dist/esm/src/proto/gen/dxos/client/services.d.ts.map +1 -1
- package/dist/esm/src/proto/gen/dxos/client/services.js +25 -25
- package/dist/esm/src/proto/gen/dxos/client/services.js.map +1 -1
- package/dist/esm/src/proto/gen/dxos/halo/invitations.d.ts +2 -23
- package/dist/esm/src/proto/gen/dxos/halo/invitations.d.ts.map +1 -1
- package/dist/esm/src/proto/gen/dxos/halo/invitations.js +0 -1
- package/dist/esm/src/proto/gen/dxos/halo/invitations.js.map +1 -1
- package/dist/esm/src/proto/gen/index.d.ts +0 -1
- 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/proto/dxos/client/services.proto +1 -9
- package/src/proto/dxos/halo/invitations.proto +1 -9
- package/src/proto/gen/dxos/client/services.ts +176 -195
- package/src/proto/gen/dxos/halo/invitations.ts +2 -23
- package/src/proto/gen/index.ts +1 -2
|
@@ -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;AA4hB7C,MAAM,CAAC,MAAM,UAAU,GAAG,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,21sGAA21sG,CAAC,CAAC,CAAC;AACp5sG,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.e9f9c10",
|
|
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/codec-protobuf": "0.4.10-main.
|
|
37
|
-
"@dxos/timeframe": "0.4.10-main.
|
|
38
|
-
"@dxos/
|
|
39
|
-
"@dxos/
|
|
36
|
+
"@dxos/codec-protobuf": "0.4.10-main.e9f9c10",
|
|
37
|
+
"@dxos/timeframe": "0.4.10-main.e9f9c10",
|
|
38
|
+
"@dxos/invariant": "0.4.10-main.e9f9c10",
|
|
39
|
+
"@dxos/keys": "0.4.10-main.e9f9c10"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"glob": "~7.1.6"
|
|
@@ -406,7 +406,7 @@ message Invitation {
|
|
|
406
406
|
/// Requires both to be online to complete key exchange.
|
|
407
407
|
INTERACTIVE = 0;
|
|
408
408
|
/// Invitation can be accepted by any valid peer.
|
|
409
|
-
|
|
409
|
+
OFFLINE = 1;
|
|
410
410
|
/**
|
|
411
411
|
* Multi-use interactive invitations.
|
|
412
412
|
* @deprecated use multiUse flag with type=interactive instead.
|
|
@@ -489,14 +489,6 @@ message Invitation {
|
|
|
489
489
|
|
|
490
490
|
/// Whether an invitation can be used multiple times.
|
|
491
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;
|
|
500
492
|
}
|
|
501
493
|
|
|
502
494
|
message AcceptInvitationRequest {
|
|
@@ -33,19 +33,12 @@ 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
|
-
|
|
39
36
|
/// Only present for testing invitation types.
|
|
40
37
|
optional dxos.keys.PublicKey space_key = 100;
|
|
41
38
|
}
|
|
42
39
|
|
|
43
40
|
message AuthenticationRequest {
|
|
44
|
-
|
|
45
|
-
optional string auth_code = 1;
|
|
46
|
-
|
|
47
|
-
/// Present when auth_method is KNOWN_PUBLIC_KEY.
|
|
48
|
-
optional bytes signed_challenge = 2;
|
|
41
|
+
string auth_code = 1;
|
|
49
42
|
}
|
|
50
43
|
|
|
51
44
|
message AuthenticationResponse {
|
|
@@ -54,7 +47,6 @@ message AuthenticationResponse {
|
|
|
54
47
|
INVALID_OTP = 1;
|
|
55
48
|
INVALID_OPT_ATTEMPTS = 2;
|
|
56
49
|
INTERNAL_ERROR = 3;
|
|
57
|
-
INVALID_SIGNATURE = 4;
|
|
58
50
|
}
|
|
59
51
|
|
|
60
52
|
optional Status status = 1;
|
|
@@ -60,181 +60,6 @@ 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
|
-
}
|
|
238
63
|
/**
|
|
239
64
|
* Defined in:
|
|
240
65
|
* {@link file://./../../../dxos/client/services.proto}
|
|
@@ -932,13 +757,6 @@ export interface Invitation {
|
|
|
932
757
|
* - proto3_optional = true
|
|
933
758
|
*/
|
|
934
759
|
multiUse?: boolean;
|
|
935
|
-
/**
|
|
936
|
-
* Guest's keypair required for AuthMethod.KNOWN_PUBLIC_KEY.
|
|
937
|
-
*
|
|
938
|
-
* Options:
|
|
939
|
-
* - proto3_optional = true
|
|
940
|
-
*/
|
|
941
|
-
guestKeypair?: AdmissionKeypair;
|
|
942
760
|
}
|
|
943
761
|
export namespace Invitation {
|
|
944
762
|
/**
|
|
@@ -947,7 +765,7 @@ export namespace Invitation {
|
|
|
947
765
|
*/
|
|
948
766
|
export enum Type {
|
|
949
767
|
INTERACTIVE = 0,
|
|
950
|
-
|
|
768
|
+
OFFLINE = 1,
|
|
951
769
|
MULTIUSE = 2
|
|
952
770
|
}
|
|
953
771
|
/**
|
|
@@ -984,18 +802,6 @@ export namespace Invitation {
|
|
|
984
802
|
EXPIRED = 9
|
|
985
803
|
}
|
|
986
804
|
}
|
|
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
|
-
}
|
|
999
805
|
/**
|
|
1000
806
|
* Defined in:
|
|
1001
807
|
* {@link file://./../../../dxos/client/services.proto}
|
|
@@ -1126,3 +932,178 @@ export interface NetworkService {
|
|
|
1126
932
|
updateConfig: (request: UpdateConfigRequest, options?: RequestOptions) => Promise<void>;
|
|
1127
933
|
queryStatus: (request: void, options?: RequestOptions) => Stream<NetworkStatus>;
|
|
1128
934
|
}
|
|
935
|
+
/**
|
|
936
|
+
* Defined in:
|
|
937
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
938
|
+
*/
|
|
939
|
+
export interface Metrics {
|
|
940
|
+
timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
941
|
+
values?: Metrics.KeyPair[];
|
|
942
|
+
}
|
|
943
|
+
export namespace Metrics {
|
|
944
|
+
/**
|
|
945
|
+
* Defined in:
|
|
946
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
947
|
+
*/
|
|
948
|
+
export interface KeyPair {
|
|
949
|
+
/**
|
|
950
|
+
* Options:
|
|
951
|
+
* - proto3_optional = true
|
|
952
|
+
*/
|
|
953
|
+
key?: string;
|
|
954
|
+
/**
|
|
955
|
+
* Options:
|
|
956
|
+
* - proto3_optional = true
|
|
957
|
+
*/
|
|
958
|
+
value?: dxos_value.Value;
|
|
959
|
+
/**
|
|
960
|
+
* Options:
|
|
961
|
+
* - proto3_optional = true
|
|
962
|
+
*/
|
|
963
|
+
stats?: dxos_value.Stats;
|
|
964
|
+
}
|
|
965
|
+
}
|
|
966
|
+
/**
|
|
967
|
+
* Defined in:
|
|
968
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
969
|
+
*/
|
|
970
|
+
export interface ControlMetricsRequest {
|
|
971
|
+
/**
|
|
972
|
+
* Options:
|
|
973
|
+
* - proto3_optional = true
|
|
974
|
+
*/
|
|
975
|
+
reset?: boolean;
|
|
976
|
+
/**
|
|
977
|
+
* Options:
|
|
978
|
+
* - proto3_optional = true
|
|
979
|
+
*/
|
|
980
|
+
record?: boolean;
|
|
981
|
+
}
|
|
982
|
+
/**
|
|
983
|
+
* Defined in:
|
|
984
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
985
|
+
*/
|
|
986
|
+
export interface ControlMetricsResponse {
|
|
987
|
+
/**
|
|
988
|
+
* Options:
|
|
989
|
+
* - proto3_optional = true
|
|
990
|
+
*/
|
|
991
|
+
recording?: boolean;
|
|
992
|
+
}
|
|
993
|
+
/**
|
|
994
|
+
* Defined in:
|
|
995
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
996
|
+
*/
|
|
997
|
+
export interface QueryMetricsRequest {
|
|
998
|
+
/**
|
|
999
|
+
* Options:
|
|
1000
|
+
* - proto3_optional = true
|
|
1001
|
+
*/
|
|
1002
|
+
interval?: number;
|
|
1003
|
+
}
|
|
1004
|
+
/**
|
|
1005
|
+
* Defined in:
|
|
1006
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
1007
|
+
*/
|
|
1008
|
+
export interface QueryMetricsResponse {
|
|
1009
|
+
timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
1010
|
+
metrics: Metrics;
|
|
1011
|
+
}
|
|
1012
|
+
/**
|
|
1013
|
+
* Defined in:
|
|
1014
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
1015
|
+
*/
|
|
1016
|
+
export enum LogLevel {
|
|
1017
|
+
TRACE = 5,
|
|
1018
|
+
DEBUG = 10,
|
|
1019
|
+
INFO = 11,
|
|
1020
|
+
WARN = 12,
|
|
1021
|
+
ERROR = 13
|
|
1022
|
+
}
|
|
1023
|
+
/**
|
|
1024
|
+
* Defined in:
|
|
1025
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
1026
|
+
*/
|
|
1027
|
+
export interface QueryLogsRequest {
|
|
1028
|
+
filters?: QueryLogsRequest.Filter[];
|
|
1029
|
+
/**
|
|
1030
|
+
* Options:
|
|
1031
|
+
* - proto3_optional = true
|
|
1032
|
+
*/
|
|
1033
|
+
options?: QueryLogsRequest.MatchingOptions;
|
|
1034
|
+
}
|
|
1035
|
+
export namespace QueryLogsRequest {
|
|
1036
|
+
/**
|
|
1037
|
+
* Defined in:
|
|
1038
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
1039
|
+
*/
|
|
1040
|
+
export enum MatchingOptions {
|
|
1041
|
+
INCLUSIVE = 1,
|
|
1042
|
+
EXPLICIT = 2
|
|
1043
|
+
}
|
|
1044
|
+
/**
|
|
1045
|
+
* Defined in:
|
|
1046
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
1047
|
+
*/
|
|
1048
|
+
export interface Filter {
|
|
1049
|
+
level: LogLevel;
|
|
1050
|
+
/**
|
|
1051
|
+
* Options:
|
|
1052
|
+
* - proto3_optional = true
|
|
1053
|
+
*/
|
|
1054
|
+
pattern?: string;
|
|
1055
|
+
}
|
|
1056
|
+
}
|
|
1057
|
+
/**
|
|
1058
|
+
* Defined in:
|
|
1059
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
1060
|
+
*/
|
|
1061
|
+
export interface LogEntry {
|
|
1062
|
+
level: LogLevel;
|
|
1063
|
+
message: string;
|
|
1064
|
+
/**
|
|
1065
|
+
* Options:
|
|
1066
|
+
* - proto3_optional = true
|
|
1067
|
+
*/
|
|
1068
|
+
context?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
|
|
1069
|
+
/**
|
|
1070
|
+
* Options:
|
|
1071
|
+
* - proto3_optional = true
|
|
1072
|
+
*/
|
|
1073
|
+
meta?: LogEntry.Meta;
|
|
1074
|
+
/**
|
|
1075
|
+
* Options:
|
|
1076
|
+
* - proto3_optional = true
|
|
1077
|
+
*/
|
|
1078
|
+
error?: dxos_error.Error;
|
|
1079
|
+
timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
1080
|
+
}
|
|
1081
|
+
export namespace LogEntry {
|
|
1082
|
+
/**
|
|
1083
|
+
* Defined in:
|
|
1084
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
1085
|
+
*/
|
|
1086
|
+
export interface Meta {
|
|
1087
|
+
file: string;
|
|
1088
|
+
line: number;
|
|
1089
|
+
/**
|
|
1090
|
+
* Options:
|
|
1091
|
+
* - proto3_optional = true
|
|
1092
|
+
*/
|
|
1093
|
+
scope?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
|
|
1094
|
+
/**
|
|
1095
|
+
* Options:
|
|
1096
|
+
* - proto3_optional = true
|
|
1097
|
+
*/
|
|
1098
|
+
resourceId?: number;
|
|
1099
|
+
}
|
|
1100
|
+
}
|
|
1101
|
+
/**
|
|
1102
|
+
* Defined in:
|
|
1103
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
1104
|
+
*/
|
|
1105
|
+
export interface LoggingService {
|
|
1106
|
+
controlMetrics: (request: ControlMetricsRequest, options?: RequestOptions) => Promise<ControlMetricsResponse>;
|
|
1107
|
+
queryMetrics: (request: QueryMetricsRequest, options?: RequestOptions) => Stream<QueryMetricsResponse>;
|
|
1108
|
+
queryLogs: (request: QueryLogsRequest, options?: RequestOptions) => Stream<LogEntry>;
|
|
1109
|
+
}
|
|
@@ -104,13 +104,6 @@ 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;
|
|
114
107
|
/**
|
|
115
108
|
* Only present for testing invitation types.
|
|
116
109
|
*
|
|
@@ -124,20 +117,7 @@ export interface IntroductionResponse {
|
|
|
124
117
|
* {@link file://./../../../dxos/halo/invitations.proto}
|
|
125
118
|
*/
|
|
126
119
|
export interface AuthenticationRequest {
|
|
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;
|
|
120
|
+
authCode: string;
|
|
141
121
|
}
|
|
142
122
|
/**
|
|
143
123
|
* Defined in:
|
|
@@ -159,8 +139,7 @@ export namespace AuthenticationResponse {
|
|
|
159
139
|
OK = 0,
|
|
160
140
|
INVALID_OTP = 1,
|
|
161
141
|
INVALID_OPT_ATTEMPTS = 2,
|
|
162
|
-
INTERNAL_ERROR = 3
|
|
163
|
-
INVALID_SIGNATURE = 4
|
|
142
|
+
INTERNAL_ERROR = 3
|
|
164
143
|
}
|
|
165
144
|
}
|
|
166
145
|
/**
|