@dxos/protocols 0.4.10-main.e7449de → 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 +184 -176
- 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 -25
- package/dist/cjs/src/proto/gen/dxos/client/services.js.map +1 -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 +184 -176
- 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 -24
- package/dist/esm/src/proto/gen/dxos/client/services.js.map +1 -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 +11 -2
- package/src/proto/gen/dxos/client/services.ts +184 -176
- package/src/proto/gen/index.ts +1 -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;AA4hB7C,MAAM,CAAC,MAAM,UAAU,GAAG,gBAAgB,CAAC,IAAI,CAAC,KAAK,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/
|
|
38
|
-
"@dxos/
|
|
39
|
-
"@dxos/keys": "0.4.10-main.
|
|
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"
|
|
@@ -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
|
-
///
|
|
408
|
+
/// Invitation can be accepted by any valid peer.
|
|
409
409
|
OFFLINE = 1;
|
|
410
|
-
|
|
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,9 @@ 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;
|
|
483
492
|
}
|
|
484
493
|
|
|
485
494
|
message AcceptInvitationRequest {
|
|
@@ -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}
|
|
@@ -925,6 +750,13 @@ export interface Invitation {
|
|
|
925
750
|
* - proto3_optional = true
|
|
926
751
|
*/
|
|
927
752
|
lifetime?: number;
|
|
753
|
+
/**
|
|
754
|
+
* Whether an invitation can be used multiple times.
|
|
755
|
+
*
|
|
756
|
+
* Options:
|
|
757
|
+
* - proto3_optional = true
|
|
758
|
+
*/
|
|
759
|
+
multiUse?: boolean;
|
|
928
760
|
}
|
|
929
761
|
export namespace Invitation {
|
|
930
762
|
/**
|
|
@@ -950,7 +782,8 @@ export namespace Invitation {
|
|
|
950
782
|
*/
|
|
951
783
|
export enum AuthMethod {
|
|
952
784
|
NONE = 0,
|
|
953
|
-
SHARED_SECRET = 1
|
|
785
|
+
SHARED_SECRET = 1,
|
|
786
|
+
KNOWN_PUBLIC_KEY = 2
|
|
954
787
|
}
|
|
955
788
|
/**
|
|
956
789
|
* Defined in:
|
|
@@ -1099,3 +932,178 @@ export interface NetworkService {
|
|
|
1099
932
|
updateConfig: (request: UpdateConfigRequest, options?: RequestOptions) => Promise<void>;
|
|
1100
933
|
queryStatus: (request: void, options?: RequestOptions) => Stream<NetworkStatus>;
|
|
1101
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
|
+
}
|