@dxos/protocols 0.5.1-next.bb5476b → 0.5.1-next.d0efa9a
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 +192 -175
- package/dist/cjs/src/proto/gen/dxos/client/services.d.ts.map +1 -1
- package/dist/cjs/src/proto/gen/dxos/client/services.js +25 -25
- 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/query.d.ts +3 -3
- package/dist/cjs/src/proto/gen/dxos/echo/query.d.ts.map +1 -1
- package/dist/cjs/src/proto/gen/dxos/halo/credentials.d.ts +5 -11
- package/dist/cjs/src/proto/gen/dxos/halo/credentials.d.ts.map +1 -1
- package/dist/cjs/src/proto/gen/dxos/halo/credentials.js +3 -1
- package/dist/cjs/src/proto/gen/dxos/halo/credentials.js.map +1 -1
- package/dist/cjs/src/proto/gen/index.d.ts +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 +192 -175
- package/dist/esm/src/proto/gen/dxos/client/services.d.ts.map +1 -1
- package/dist/esm/src/proto/gen/dxos/client/services.js +24 -24
- 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/query.d.ts +3 -3
- package/dist/esm/src/proto/gen/dxos/echo/query.d.ts.map +1 -1
- package/dist/esm/src/proto/gen/dxos/halo/credentials.d.ts +5 -11
- package/dist/esm/src/proto/gen/dxos/halo/credentials.d.ts.map +1 -1
- package/dist/esm/src/proto/gen/dxos/halo/credentials.js +3 -1
- package/dist/esm/src/proto/gen/dxos/halo/credentials.js.map +1 -1
- package/dist/esm/src/proto/gen/index.d.ts +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 +13 -2
- package/src/proto/dxos/echo/query.proto +4 -4
- package/src/proto/dxos/halo/credentials.proto +6 -8
- package/src/proto/dxos/tracing.proto +1 -2
- package/src/proto/gen/dxos/client/services.ts +192 -175
- package/src/proto/gen/dxos/devtools/host.ts +31 -31
- package/src/proto/gen/dxos/echo/query.ts +3 -3
- package/src/proto/gen/dxos/halo/credentials.ts +5 -11
- package/src/proto/gen/index.ts +2 -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;AA+DhE,OAAO,aAAa,MAAM,kBAAkB,CAAC;AA0iB7C,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;AA+DhE,OAAO,aAAa,MAAM,kBAAkB,CAAC;AA0iB7C,MAAM,CAAC,MAAM,UAAU,GAAG,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,q+zGAAq+zG,CAAC,CAAC,CAAC;AAC9h0G,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.5.1-next.
|
|
3
|
+
"version": "0.5.1-next.d0efa9a",
|
|
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.5.1-next.
|
|
37
|
-
"@dxos/invariant": "0.5.1-next.
|
|
38
|
-
"@dxos/keys": "0.5.1-next.
|
|
39
|
-
"@dxos/timeframe": "0.5.1-next.
|
|
36
|
+
"@dxos/codec-protobuf": "0.5.1-next.d0efa9a",
|
|
37
|
+
"@dxos/invariant": "0.5.1-next.d0efa9a",
|
|
38
|
+
"@dxos/keys": "0.5.1-next.d0efa9a",
|
|
39
|
+
"@dxos/timeframe": "0.5.1-next.d0efa9a"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"glob": "~7.1.6"
|
|
@@ -208,7 +208,7 @@ message SpaceMember {
|
|
|
208
208
|
|
|
209
209
|
Identity identity = 1;
|
|
210
210
|
PresenceState presence = 2;
|
|
211
|
-
repeated PeerState peerStates = 3;
|
|
211
|
+
repeated dxos.mesh.presence.PeerState peerStates = 3;
|
|
212
212
|
}
|
|
213
213
|
|
|
214
214
|
/// Runtime state of the space object.
|
|
@@ -364,11 +364,19 @@ message CreateEpochRequest {
|
|
|
364
364
|
optional Migration migration = 2;
|
|
365
365
|
}
|
|
366
366
|
|
|
367
|
+
message UpdateMemberRoleRequest {
|
|
368
|
+
dxos.keys.PublicKey space_key = 1;
|
|
369
|
+
dxos.keys.PublicKey member_key = 2;
|
|
370
|
+
dxos.halo.credentials.SpaceMember.Role new_role = 3;
|
|
371
|
+
}
|
|
372
|
+
|
|
367
373
|
service SpacesService {
|
|
368
374
|
rpc CreateSpace(google.protobuf.Empty) returns (Space);
|
|
369
375
|
rpc UpdateSpace(UpdateSpaceRequest) returns (google.protobuf.Empty);
|
|
370
376
|
rpc QuerySpaces(google.protobuf.Empty) returns (stream QuerySpacesResponse);
|
|
371
377
|
|
|
378
|
+
rpc UpdateMemberRole(UpdateMemberRoleRequest) returns (google.protobuf.Empty);
|
|
379
|
+
|
|
372
380
|
/// Broadcast an ephemeral message to the space swarm.
|
|
373
381
|
rpc PostMessage(PostMessageRequest) returns (google.protobuf.Empty);
|
|
374
382
|
/// Subscribe to messages from the space swarm.
|
|
@@ -483,6 +491,9 @@ message Invitation {
|
|
|
483
491
|
|
|
484
492
|
/// Present on Type.DELEGATED invitations.
|
|
485
493
|
optional dxos.keys.PublicKey delegation_credential_id = 17;
|
|
494
|
+
|
|
495
|
+
/// Role of the admitted member, defaults to ADMIN.
|
|
496
|
+
optional dxos.halo.credentials.SpaceMember.Role role = 18;
|
|
486
497
|
}
|
|
487
498
|
|
|
488
499
|
message AdmissionKeypair {
|
|
@@ -492,7 +503,7 @@ message AdmissionKeypair {
|
|
|
492
503
|
|
|
493
504
|
message AcceptInvitationRequest {
|
|
494
505
|
Invitation invitation = 1;
|
|
495
|
-
optional dxos.credentials.DeviceProfileDocument device_profile = 2;
|
|
506
|
+
optional dxos.halo.credentials.DeviceProfileDocument device_profile = 2;
|
|
496
507
|
}
|
|
497
508
|
|
|
498
509
|
message AuthenticationRequest {
|
|
@@ -22,7 +22,7 @@ message QueryRequest {
|
|
|
22
22
|
* Automerge heads.
|
|
23
23
|
* Used for encoding in Index metadata store.
|
|
24
24
|
* @see https://automerge.org/automerge-repo/types/_automerge_automerge_repo.Heads.html
|
|
25
|
-
*/
|
|
25
|
+
*/
|
|
26
26
|
message Heads {
|
|
27
27
|
repeated string hashes = 1;
|
|
28
28
|
}
|
|
@@ -40,7 +40,7 @@ message QueryResponse {
|
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
service QueryService {
|
|
43
|
-
rpc
|
|
44
|
-
rpc
|
|
45
|
-
rpc
|
|
43
|
+
rpc SetConfig(dxos.echo.indexing.IndexConfig) returns (google.protobuf.Empty);
|
|
44
|
+
rpc ExecQuery(QueryRequest) returns (stream QueryResponse);
|
|
45
|
+
rpc Reindex(google.protobuf.Empty) returns (google.protobuf.Empty);
|
|
46
46
|
}
|
|
@@ -39,13 +39,6 @@ message SpaceGenesis {
|
|
|
39
39
|
// Claims can be written directly to a feed or used within Credentials.
|
|
40
40
|
//
|
|
41
41
|
|
|
42
|
-
/**
|
|
43
|
-
* Revocation of another credential.
|
|
44
|
-
* Subject must be the credential id being revoked.
|
|
45
|
-
*/
|
|
46
|
-
message Revocation {
|
|
47
|
-
}
|
|
48
|
-
|
|
49
42
|
// TODO(burdon): Reconcile with dxos.client.SpaceMember.
|
|
50
43
|
// [ASSERTION]: Agent is authorized to access Space.
|
|
51
44
|
message SpaceMember {
|
|
@@ -55,9 +48,13 @@ message SpaceMember {
|
|
|
55
48
|
/// Manage members.
|
|
56
49
|
ADMIN = 1;
|
|
57
50
|
/// Read and write.
|
|
58
|
-
|
|
51
|
+
EDITOR = 2;
|
|
59
52
|
/// Read-only.
|
|
60
53
|
READER = 3;
|
|
54
|
+
/// Admin that can't be removed.
|
|
55
|
+
OWNER = 4;
|
|
56
|
+
/// Revoked membership.
|
|
57
|
+
REMOVED = 5;
|
|
61
58
|
}
|
|
62
59
|
|
|
63
60
|
dxos.keys.PublicKey space_key = 1;
|
|
@@ -276,6 +273,7 @@ message Credential {
|
|
|
276
273
|
optional bytes expiration_ref = 5; // Could reference blockchain or epoch number.
|
|
277
274
|
Claim subject = 10;
|
|
278
275
|
optional Proof proof = 11;
|
|
276
|
+
repeated dxos.keys.PublicKey parent_credential_ids = 12; // Can be used for resolution of concurrent mutually exclusive actions
|
|
279
277
|
}
|
|
280
278
|
|
|
281
279
|
//
|
|
@@ -61,181 +61,6 @@ import * as dxos_value from "../value";
|
|
|
61
61
|
import * as example_testing_data from "../../example/testing/data";
|
|
62
62
|
import * as example_testing_rpc from "../../example/testing/rpc";
|
|
63
63
|
import * as google_protobuf from "../../google/protobuf";
|
|
64
|
-
/**
|
|
65
|
-
* Defined in:
|
|
66
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
67
|
-
*/
|
|
68
|
-
export interface Metrics {
|
|
69
|
-
timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
70
|
-
values?: Metrics.KeyPair[];
|
|
71
|
-
}
|
|
72
|
-
export namespace Metrics {
|
|
73
|
-
/**
|
|
74
|
-
* Defined in:
|
|
75
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
76
|
-
*/
|
|
77
|
-
export interface KeyPair {
|
|
78
|
-
/**
|
|
79
|
-
* Options:
|
|
80
|
-
* - proto3_optional = true
|
|
81
|
-
*/
|
|
82
|
-
key?: string;
|
|
83
|
-
/**
|
|
84
|
-
* Options:
|
|
85
|
-
* - proto3_optional = true
|
|
86
|
-
*/
|
|
87
|
-
value?: dxos_value.Value;
|
|
88
|
-
/**
|
|
89
|
-
* Options:
|
|
90
|
-
* - proto3_optional = true
|
|
91
|
-
*/
|
|
92
|
-
stats?: dxos_value.Stats;
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
/**
|
|
96
|
-
* Defined in:
|
|
97
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
98
|
-
*/
|
|
99
|
-
export interface ControlMetricsRequest {
|
|
100
|
-
/**
|
|
101
|
-
* Options:
|
|
102
|
-
* - proto3_optional = true
|
|
103
|
-
*/
|
|
104
|
-
reset?: boolean;
|
|
105
|
-
/**
|
|
106
|
-
* Options:
|
|
107
|
-
* - proto3_optional = true
|
|
108
|
-
*/
|
|
109
|
-
record?: boolean;
|
|
110
|
-
}
|
|
111
|
-
/**
|
|
112
|
-
* Defined in:
|
|
113
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
114
|
-
*/
|
|
115
|
-
export interface ControlMetricsResponse {
|
|
116
|
-
/**
|
|
117
|
-
* Options:
|
|
118
|
-
* - proto3_optional = true
|
|
119
|
-
*/
|
|
120
|
-
recording?: boolean;
|
|
121
|
-
}
|
|
122
|
-
/**
|
|
123
|
-
* Defined in:
|
|
124
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
125
|
-
*/
|
|
126
|
-
export interface QueryMetricsRequest {
|
|
127
|
-
/**
|
|
128
|
-
* Options:
|
|
129
|
-
* - proto3_optional = true
|
|
130
|
-
*/
|
|
131
|
-
interval?: number;
|
|
132
|
-
}
|
|
133
|
-
/**
|
|
134
|
-
* Defined in:
|
|
135
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
136
|
-
*/
|
|
137
|
-
export interface QueryMetricsResponse {
|
|
138
|
-
timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
139
|
-
metrics: Metrics;
|
|
140
|
-
}
|
|
141
|
-
/**
|
|
142
|
-
* Defined in:
|
|
143
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
144
|
-
*/
|
|
145
|
-
export enum LogLevel {
|
|
146
|
-
TRACE = 5,
|
|
147
|
-
DEBUG = 10,
|
|
148
|
-
INFO = 11,
|
|
149
|
-
WARN = 12,
|
|
150
|
-
ERROR = 13
|
|
151
|
-
}
|
|
152
|
-
/**
|
|
153
|
-
* Defined in:
|
|
154
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
155
|
-
*/
|
|
156
|
-
export interface QueryLogsRequest {
|
|
157
|
-
filters?: QueryLogsRequest.Filter[];
|
|
158
|
-
/**
|
|
159
|
-
* Options:
|
|
160
|
-
* - proto3_optional = true
|
|
161
|
-
*/
|
|
162
|
-
options?: QueryLogsRequest.MatchingOptions;
|
|
163
|
-
}
|
|
164
|
-
export namespace QueryLogsRequest {
|
|
165
|
-
/**
|
|
166
|
-
* Defined in:
|
|
167
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
168
|
-
*/
|
|
169
|
-
export enum MatchingOptions {
|
|
170
|
-
INCLUSIVE = 1,
|
|
171
|
-
EXPLICIT = 2
|
|
172
|
-
}
|
|
173
|
-
/**
|
|
174
|
-
* Defined in:
|
|
175
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
176
|
-
*/
|
|
177
|
-
export interface Filter {
|
|
178
|
-
level: LogLevel;
|
|
179
|
-
/**
|
|
180
|
-
* Options:
|
|
181
|
-
* - proto3_optional = true
|
|
182
|
-
*/
|
|
183
|
-
pattern?: string;
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
/**
|
|
187
|
-
* Defined in:
|
|
188
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
189
|
-
*/
|
|
190
|
-
export interface LogEntry {
|
|
191
|
-
level: LogLevel;
|
|
192
|
-
message: string;
|
|
193
|
-
/**
|
|
194
|
-
* Options:
|
|
195
|
-
* - proto3_optional = true
|
|
196
|
-
*/
|
|
197
|
-
context?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
|
|
198
|
-
/**
|
|
199
|
-
* Options:
|
|
200
|
-
* - proto3_optional = true
|
|
201
|
-
*/
|
|
202
|
-
meta?: LogEntry.Meta;
|
|
203
|
-
/**
|
|
204
|
-
* Options:
|
|
205
|
-
* - proto3_optional = true
|
|
206
|
-
*/
|
|
207
|
-
error?: dxos_error.Error;
|
|
208
|
-
timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
209
|
-
}
|
|
210
|
-
export namespace LogEntry {
|
|
211
|
-
/**
|
|
212
|
-
* Defined in:
|
|
213
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
214
|
-
*/
|
|
215
|
-
export interface Meta {
|
|
216
|
-
file: string;
|
|
217
|
-
line: number;
|
|
218
|
-
/**
|
|
219
|
-
* Options:
|
|
220
|
-
* - proto3_optional = true
|
|
221
|
-
*/
|
|
222
|
-
scope?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
|
|
223
|
-
/**
|
|
224
|
-
* Options:
|
|
225
|
-
* - proto3_optional = true
|
|
226
|
-
*/
|
|
227
|
-
resourceId?: number;
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
/**
|
|
231
|
-
* Defined in:
|
|
232
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
233
|
-
*/
|
|
234
|
-
export interface LoggingService {
|
|
235
|
-
controlMetrics: (request: ControlMetricsRequest, options?: RequestOptions) => Promise<ControlMetricsResponse>;
|
|
236
|
-
queryMetrics: (request: QueryMetricsRequest, options?: RequestOptions) => Stream<QueryMetricsResponse>;
|
|
237
|
-
queryLogs: (request: QueryLogsRequest, options?: RequestOptions) => Stream<LogEntry>;
|
|
238
|
-
}
|
|
239
64
|
/**
|
|
240
65
|
* Defined in:
|
|
241
66
|
* {@link file://./../../../dxos/client/services.proto}
|
|
@@ -809,6 +634,15 @@ export namespace CreateEpochRequest {
|
|
|
809
634
|
FRAGMENT_AUTOMERGE_ROOT = 3
|
|
810
635
|
}
|
|
811
636
|
}
|
|
637
|
+
/**
|
|
638
|
+
* Defined in:
|
|
639
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
640
|
+
*/
|
|
641
|
+
export interface UpdateMemberRoleRequest {
|
|
642
|
+
spaceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
643
|
+
memberKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
644
|
+
newRole: dxos_halo_credentials.SpaceMember.Role;
|
|
645
|
+
}
|
|
812
646
|
/**
|
|
813
647
|
* Defined in:
|
|
814
648
|
* {@link file://./../../../dxos/client/services.proto}
|
|
@@ -817,6 +651,7 @@ export interface SpacesService {
|
|
|
817
651
|
createSpace: (request: void, options?: RequestOptions) => Promise<Space>;
|
|
818
652
|
updateSpace: (request: UpdateSpaceRequest, options?: RequestOptions) => Promise<void>;
|
|
819
653
|
querySpaces: (request: void, options?: RequestOptions) => Stream<QuerySpacesResponse>;
|
|
654
|
+
updateMemberRole: (request: UpdateMemberRoleRequest, options?: RequestOptions) => Promise<void>;
|
|
820
655
|
/**
|
|
821
656
|
* Broadcast an ephemeral message to the space swarm.
|
|
822
657
|
*/
|
|
@@ -939,6 +774,13 @@ export interface Invitation {
|
|
|
939
774
|
* - proto3_optional = true
|
|
940
775
|
*/
|
|
941
776
|
delegationCredentialId?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
777
|
+
/**
|
|
778
|
+
* Role of the admitted member, defaults to ADMIN.
|
|
779
|
+
*
|
|
780
|
+
* Options:
|
|
781
|
+
* - proto3_optional = true
|
|
782
|
+
*/
|
|
783
|
+
role?: dxos_halo_credentials.SpaceMember.Role;
|
|
942
784
|
}
|
|
943
785
|
export namespace Invitation {
|
|
944
786
|
/**
|
|
@@ -1125,3 +967,178 @@ export interface NetworkService {
|
|
|
1125
967
|
updateConfig: (request: UpdateConfigRequest, options?: RequestOptions) => Promise<void>;
|
|
1126
968
|
queryStatus: (request: void, options?: RequestOptions) => Stream<NetworkStatus>;
|
|
1127
969
|
}
|
|
970
|
+
/**
|
|
971
|
+
* Defined in:
|
|
972
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
973
|
+
*/
|
|
974
|
+
export interface Metrics {
|
|
975
|
+
timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
976
|
+
values?: Metrics.KeyPair[];
|
|
977
|
+
}
|
|
978
|
+
export namespace Metrics {
|
|
979
|
+
/**
|
|
980
|
+
* Defined in:
|
|
981
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
982
|
+
*/
|
|
983
|
+
export interface KeyPair {
|
|
984
|
+
/**
|
|
985
|
+
* Options:
|
|
986
|
+
* - proto3_optional = true
|
|
987
|
+
*/
|
|
988
|
+
key?: string;
|
|
989
|
+
/**
|
|
990
|
+
* Options:
|
|
991
|
+
* - proto3_optional = true
|
|
992
|
+
*/
|
|
993
|
+
value?: dxos_value.Value;
|
|
994
|
+
/**
|
|
995
|
+
* Options:
|
|
996
|
+
* - proto3_optional = true
|
|
997
|
+
*/
|
|
998
|
+
stats?: dxos_value.Stats;
|
|
999
|
+
}
|
|
1000
|
+
}
|
|
1001
|
+
/**
|
|
1002
|
+
* Defined in:
|
|
1003
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
1004
|
+
*/
|
|
1005
|
+
export interface ControlMetricsRequest {
|
|
1006
|
+
/**
|
|
1007
|
+
* Options:
|
|
1008
|
+
* - proto3_optional = true
|
|
1009
|
+
*/
|
|
1010
|
+
reset?: boolean;
|
|
1011
|
+
/**
|
|
1012
|
+
* Options:
|
|
1013
|
+
* - proto3_optional = true
|
|
1014
|
+
*/
|
|
1015
|
+
record?: boolean;
|
|
1016
|
+
}
|
|
1017
|
+
/**
|
|
1018
|
+
* Defined in:
|
|
1019
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
1020
|
+
*/
|
|
1021
|
+
export interface ControlMetricsResponse {
|
|
1022
|
+
/**
|
|
1023
|
+
* Options:
|
|
1024
|
+
* - proto3_optional = true
|
|
1025
|
+
*/
|
|
1026
|
+
recording?: boolean;
|
|
1027
|
+
}
|
|
1028
|
+
/**
|
|
1029
|
+
* Defined in:
|
|
1030
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
1031
|
+
*/
|
|
1032
|
+
export interface QueryMetricsRequest {
|
|
1033
|
+
/**
|
|
1034
|
+
* Options:
|
|
1035
|
+
* - proto3_optional = true
|
|
1036
|
+
*/
|
|
1037
|
+
interval?: number;
|
|
1038
|
+
}
|
|
1039
|
+
/**
|
|
1040
|
+
* Defined in:
|
|
1041
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
1042
|
+
*/
|
|
1043
|
+
export interface QueryMetricsResponse {
|
|
1044
|
+
timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
1045
|
+
metrics: Metrics;
|
|
1046
|
+
}
|
|
1047
|
+
/**
|
|
1048
|
+
* Defined in:
|
|
1049
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
1050
|
+
*/
|
|
1051
|
+
export enum LogLevel {
|
|
1052
|
+
TRACE = 5,
|
|
1053
|
+
DEBUG = 10,
|
|
1054
|
+
INFO = 11,
|
|
1055
|
+
WARN = 12,
|
|
1056
|
+
ERROR = 13
|
|
1057
|
+
}
|
|
1058
|
+
/**
|
|
1059
|
+
* Defined in:
|
|
1060
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
1061
|
+
*/
|
|
1062
|
+
export interface QueryLogsRequest {
|
|
1063
|
+
filters?: QueryLogsRequest.Filter[];
|
|
1064
|
+
/**
|
|
1065
|
+
* Options:
|
|
1066
|
+
* - proto3_optional = true
|
|
1067
|
+
*/
|
|
1068
|
+
options?: QueryLogsRequest.MatchingOptions;
|
|
1069
|
+
}
|
|
1070
|
+
export namespace QueryLogsRequest {
|
|
1071
|
+
/**
|
|
1072
|
+
* Defined in:
|
|
1073
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
1074
|
+
*/
|
|
1075
|
+
export enum MatchingOptions {
|
|
1076
|
+
INCLUSIVE = 1,
|
|
1077
|
+
EXPLICIT = 2
|
|
1078
|
+
}
|
|
1079
|
+
/**
|
|
1080
|
+
* Defined in:
|
|
1081
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
1082
|
+
*/
|
|
1083
|
+
export interface Filter {
|
|
1084
|
+
level: LogLevel;
|
|
1085
|
+
/**
|
|
1086
|
+
* Options:
|
|
1087
|
+
* - proto3_optional = true
|
|
1088
|
+
*/
|
|
1089
|
+
pattern?: string;
|
|
1090
|
+
}
|
|
1091
|
+
}
|
|
1092
|
+
/**
|
|
1093
|
+
* Defined in:
|
|
1094
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
1095
|
+
*/
|
|
1096
|
+
export interface LogEntry {
|
|
1097
|
+
level: LogLevel;
|
|
1098
|
+
message: string;
|
|
1099
|
+
/**
|
|
1100
|
+
* Options:
|
|
1101
|
+
* - proto3_optional = true
|
|
1102
|
+
*/
|
|
1103
|
+
context?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
|
|
1104
|
+
/**
|
|
1105
|
+
* Options:
|
|
1106
|
+
* - proto3_optional = true
|
|
1107
|
+
*/
|
|
1108
|
+
meta?: LogEntry.Meta;
|
|
1109
|
+
/**
|
|
1110
|
+
* Options:
|
|
1111
|
+
* - proto3_optional = true
|
|
1112
|
+
*/
|
|
1113
|
+
error?: dxos_error.Error;
|
|
1114
|
+
timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
1115
|
+
}
|
|
1116
|
+
export namespace LogEntry {
|
|
1117
|
+
/**
|
|
1118
|
+
* Defined in:
|
|
1119
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
1120
|
+
*/
|
|
1121
|
+
export interface Meta {
|
|
1122
|
+
file: string;
|
|
1123
|
+
line: number;
|
|
1124
|
+
/**
|
|
1125
|
+
* Options:
|
|
1126
|
+
* - proto3_optional = true
|
|
1127
|
+
*/
|
|
1128
|
+
scope?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
|
|
1129
|
+
/**
|
|
1130
|
+
* Options:
|
|
1131
|
+
* - proto3_optional = true
|
|
1132
|
+
*/
|
|
1133
|
+
resourceId?: number;
|
|
1134
|
+
}
|
|
1135
|
+
}
|
|
1136
|
+
/**
|
|
1137
|
+
* Defined in:
|
|
1138
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
1139
|
+
*/
|
|
1140
|
+
export interface LoggingService {
|
|
1141
|
+
controlMetrics: (request: ControlMetricsRequest, options?: RequestOptions) => Promise<ControlMetricsResponse>;
|
|
1142
|
+
queryMetrics: (request: QueryMetricsRequest, options?: RequestOptions) => Stream<QueryMetricsResponse>;
|
|
1143
|
+
queryLogs: (request: QueryLogsRequest, options?: RequestOptions) => Stream<LogEntry>;
|
|
1144
|
+
}
|
|
@@ -61,37 +61,6 @@ import * as dxos_value from "../value";
|
|
|
61
61
|
import * as example_testing_data from "../../example/testing/data";
|
|
62
62
|
import * as example_testing_rpc from "../../example/testing/rpc";
|
|
63
63
|
import * as google_protobuf from "../../google/protobuf";
|
|
64
|
-
/**
|
|
65
|
-
* Defined in:
|
|
66
|
-
* {@link file://./../../../dxos/devtools/diagnostics.proto}
|
|
67
|
-
*/
|
|
68
|
-
export interface Services {
|
|
69
|
-
spaces?: SpaceStats[];
|
|
70
|
-
}
|
|
71
|
-
/**
|
|
72
|
-
* Defined in:
|
|
73
|
-
* {@link file://./../../../dxos/devtools/diagnostics.proto}
|
|
74
|
-
*/
|
|
75
|
-
export interface SpaceStats {
|
|
76
|
-
key: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
77
|
-
peers?: PeerStats[];
|
|
78
|
-
}
|
|
79
|
-
/**
|
|
80
|
-
* Defined in:
|
|
81
|
-
* {@link file://./../../../dxos/devtools/diagnostics.proto}
|
|
82
|
-
*/
|
|
83
|
-
export interface PeerStats {
|
|
84
|
-
controlFeed: FeedStats;
|
|
85
|
-
dataFeed: FeedStats;
|
|
86
|
-
}
|
|
87
|
-
/**
|
|
88
|
-
* Defined in:
|
|
89
|
-
* {@link file://./../../../dxos/devtools/diagnostics.proto}
|
|
90
|
-
*/
|
|
91
|
-
export interface FeedStats {
|
|
92
|
-
key: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
93
|
-
length: number;
|
|
94
|
-
}
|
|
95
64
|
/**
|
|
96
65
|
* Defined in:
|
|
97
66
|
* {@link file://./../../../dxos/devtools/host.proto}
|
|
@@ -514,3 +483,34 @@ export interface SubscribeToSwarmInfoRequest {
|
|
|
514
483
|
export interface SubscribeToSwarmInfoResponse {
|
|
515
484
|
data?: dxos_devtools_swarm.SwarmInfo[];
|
|
516
485
|
}
|
|
486
|
+
/**
|
|
487
|
+
* Defined in:
|
|
488
|
+
* {@link file://./../../../dxos/devtools/diagnostics.proto}
|
|
489
|
+
*/
|
|
490
|
+
export interface Services {
|
|
491
|
+
spaces?: SpaceStats[];
|
|
492
|
+
}
|
|
493
|
+
/**
|
|
494
|
+
* Defined in:
|
|
495
|
+
* {@link file://./../../../dxos/devtools/diagnostics.proto}
|
|
496
|
+
*/
|
|
497
|
+
export interface SpaceStats {
|
|
498
|
+
key: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
499
|
+
peers?: PeerStats[];
|
|
500
|
+
}
|
|
501
|
+
/**
|
|
502
|
+
* Defined in:
|
|
503
|
+
* {@link file://./../../../dxos/devtools/diagnostics.proto}
|
|
504
|
+
*/
|
|
505
|
+
export interface PeerStats {
|
|
506
|
+
controlFeed: FeedStats;
|
|
507
|
+
dataFeed: FeedStats;
|
|
508
|
+
}
|
|
509
|
+
/**
|
|
510
|
+
* Defined in:
|
|
511
|
+
* {@link file://./../../../dxos/devtools/diagnostics.proto}
|
|
512
|
+
*/
|
|
513
|
+
export interface FeedStats {
|
|
514
|
+
key: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
515
|
+
length: number;
|
|
516
|
+
}
|
|
@@ -111,7 +111,7 @@ export interface QueryResponse {
|
|
|
111
111
|
* {@link file://./../../../dxos/echo/query.proto}
|
|
112
112
|
*/
|
|
113
113
|
export interface QueryService {
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
114
|
+
setConfig: (request: dxos_echo_indexing.IndexConfig, options?: RequestOptions) => Promise<void>;
|
|
115
|
+
execQuery: (request: QueryRequest, options?: RequestOptions) => Stream<QueryResponse>;
|
|
116
|
+
reindex: (request: void, options?: RequestOptions) => Promise<void>;
|
|
117
117
|
}
|
|
@@ -68,15 +68,6 @@ import * as google_protobuf from "../../google/protobuf";
|
|
|
68
68
|
export interface SpaceGenesis {
|
|
69
69
|
spaceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
70
70
|
}
|
|
71
|
-
/**
|
|
72
|
-
* Revocation of another credential.
|
|
73
|
-
* Subject must be the credential id being revoked.
|
|
74
|
-
*
|
|
75
|
-
* Defined in:
|
|
76
|
-
* {@link file://./../../../dxos/halo/credentials.proto}
|
|
77
|
-
*/
|
|
78
|
-
export interface Revocation {
|
|
79
|
-
}
|
|
80
71
|
/**
|
|
81
72
|
* Defined in:
|
|
82
73
|
* {@link file://./../../../dxos/halo/credentials.proto}
|
|
@@ -109,8 +100,10 @@ export namespace SpaceMember {
|
|
|
109
100
|
export enum Role {
|
|
110
101
|
INVALID = 0,
|
|
111
102
|
ADMIN = 1,
|
|
112
|
-
|
|
113
|
-
READER = 3
|
|
103
|
+
EDITOR = 2,
|
|
104
|
+
READER = 3,
|
|
105
|
+
OWNER = 4,
|
|
106
|
+
REMOVED = 5
|
|
114
107
|
}
|
|
115
108
|
}
|
|
116
109
|
/**
|
|
@@ -445,6 +438,7 @@ export interface Credential {
|
|
|
445
438
|
* - proto3_optional = true
|
|
446
439
|
*/
|
|
447
440
|
proof?: Proof;
|
|
441
|
+
parentCredentialIds?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>[];
|
|
448
442
|
}
|
|
449
443
|
/**
|
|
450
444
|
* Defined in:
|