@dxos/protocols 0.4.10-main.fa5a270 → 0.4.10-main.fda6f37
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 +207 -179
- package/dist/cjs/src/proto/gen/dxos/client/services.d.ts.map +1 -1
- package/dist/cjs/src/proto/gen/dxos/client/services.js +28 -26
- package/dist/cjs/src/proto/gen/dxos/client/services.js.map +1 -1
- package/dist/cjs/src/proto/gen/dxos/config.d.ts +2 -7
- 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/echo/service.d.ts +9 -1
- package/dist/cjs/src/proto/gen/dxos/echo/service.d.ts.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/dxos/iframe.d.ts +17 -5
- package/dist/cjs/src/proto/gen/dxos/iframe.d.ts.map +1 -1
- package/dist/cjs/src/proto/gen/dxos/iframe.js +7 -5
- package/dist/cjs/src/proto/gen/dxos/iframe.js.map +1 -1
- package/dist/cjs/src/proto/gen/dxos/mesh/signal.d.ts +10 -0
- package/dist/cjs/src/proto/gen/dxos/mesh/signal.d.ts.map +1 -1
- package/dist/cjs/src/proto/gen/dxos/mesh/signal.js.map +1 -1
- package/dist/cjs/src/proto/gen/google/protobuf.d.ts +4 -4
- package/dist/cjs/src/proto/gen/google/protobuf.d.ts.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 +207 -179
- package/dist/esm/src/proto/gen/dxos/client/services.d.ts.map +1 -1
- package/dist/esm/src/proto/gen/dxos/client/services.js +27 -25
- package/dist/esm/src/proto/gen/dxos/client/services.js.map +1 -1
- package/dist/esm/src/proto/gen/dxos/config.d.ts +2 -7
- 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/echo/service.d.ts +9 -1
- package/dist/esm/src/proto/gen/dxos/echo/service.d.ts.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/dxos/iframe.d.ts +17 -5
- package/dist/esm/src/proto/gen/dxos/iframe.d.ts.map +1 -1
- package/dist/esm/src/proto/gen/dxos/iframe.js +7 -5
- package/dist/esm/src/proto/gen/dxos/iframe.js.map +1 -1
- package/dist/esm/src/proto/gen/dxos/mesh/signal.d.ts +10 -0
- package/dist/esm/src/proto/gen/dxos/mesh/signal.d.ts.map +1 -1
- package/dist/esm/src/proto/gen/dxos/mesh/signal.js.map +1 -1
- package/dist/esm/src/proto/gen/google/protobuf.d.ts +4 -4
- package/dist/esm/src/proto/gen/google/protobuf.d.ts.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 -3
- package/src/proto/dxos/client/services.proto +25 -4
- package/src/proto/dxos/config.proto +4 -3
- package/src/proto/dxos/echo/model/document.proto +0 -3
- package/src/proto/dxos/echo/service.proto +5 -1
- package/src/proto/dxos/halo/invitations.proto +9 -1
- package/src/proto/dxos/iframe.proto +10 -5
- package/src/proto/dxos/mesh/signal.proto +4 -0
- package/src/proto/gen/dxos/client/services.ts +207 -179
- package/src/proto/gen/dxos/config.ts +2 -7
- package/src/proto/gen/dxos/echo/model/document.ts +0 -1
- package/src/proto/gen/dxos/echo/service.ts +9 -1
- package/src/proto/gen/dxos/halo/invitations.ts +23 -2
- package/src/proto/gen/dxos/iframe.ts +17 -5
- package/src/proto/gen/dxos/mesh/signal.ts +10 -0
- package/src/proto/gen/google/protobuf.ts +4 -4
- 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,g7tGAAg7tG,CAAC,CAAC,CAAC;AACz+tG,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.fda6f37",
|
|
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.fda6f37",
|
|
37
|
+
"@dxos/timeframe": "0.4.10-main.fda6f37",
|
|
38
|
+
"@dxos/invariant": "0.4.10-main.fda6f37",
|
|
39
|
+
"@dxos/keys": "0.4.10-main.fda6f37"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"glob": "~7.1.6"
|
package/src/indexing.ts
CHANGED
|
@@ -2,14 +2,16 @@
|
|
|
2
2
|
// Copyright 2024 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
export type
|
|
5
|
+
export type ObjectPointerDecoded = {
|
|
6
6
|
documentId: string;
|
|
7
7
|
objectId: string;
|
|
8
8
|
};
|
|
9
9
|
|
|
10
|
+
export type ObjectPointerEncoded = string;
|
|
11
|
+
|
|
10
12
|
export const idCodec = {
|
|
11
|
-
encode: ({ documentId, objectId }:
|
|
12
|
-
decode: (id:
|
|
13
|
+
encode: ({ documentId, objectId }: ObjectPointerDecoded): ObjectPointerEncoded => `${documentId}|${objectId}`,
|
|
14
|
+
decode: (id: ObjectPointerEncoded): ObjectPointerDecoded => {
|
|
13
15
|
const [documentId, objectId] = id.split('|');
|
|
14
16
|
return { documentId, objectId };
|
|
15
17
|
},
|
|
@@ -356,6 +356,9 @@ message CreateEpochRequest {
|
|
|
356
356
|
|
|
357
357
|
/// Init new automerge root by clonning the current space root. History is pruned.
|
|
358
358
|
PRUNE_AUTOMERGE_ROOT_HISTORY = 2;
|
|
359
|
+
|
|
360
|
+
/// Create a new space root and move objects from the current space root to separate automerge documents and.
|
|
361
|
+
FRAGMENT_AUTOMERGE_ROOT = 3;
|
|
359
362
|
}
|
|
360
363
|
|
|
361
364
|
dxos.keys.PublicKey space_key = 1;
|
|
@@ -387,7 +390,8 @@ service SpacesService {
|
|
|
387
390
|
|
|
388
391
|
service IndexService {
|
|
389
392
|
rpc SetConfig(dxos.echo.indexing.IndexConfig) returns (google.protobuf.Empty);
|
|
390
|
-
rpc Find(dxos.agent.query.QueryRequest) returns (dxos.agent.query.QueryResponse);
|
|
393
|
+
rpc Find(dxos.agent.query.QueryRequest) returns (stream dxos.agent.query.QueryResponse);
|
|
394
|
+
|
|
391
395
|
}
|
|
392
396
|
|
|
393
397
|
//
|
|
@@ -401,9 +405,12 @@ message Invitation {
|
|
|
401
405
|
enum Type {
|
|
402
406
|
/// Requires both to be online to complete key exchange.
|
|
403
407
|
INTERACTIVE = 0;
|
|
404
|
-
///
|
|
405
|
-
|
|
406
|
-
|
|
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
|
+
*/
|
|
407
414
|
MULTIUSE = 2;
|
|
408
415
|
}
|
|
409
416
|
|
|
@@ -418,6 +425,9 @@ message Invitation {
|
|
|
418
425
|
|
|
419
426
|
/// Guest should call `Authenticate` with the shared secret.
|
|
420
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;
|
|
421
431
|
}
|
|
422
432
|
|
|
423
433
|
enum State {
|
|
@@ -476,6 +486,17 @@ message Invitation {
|
|
|
476
486
|
// TODO(nf): some feedback mechanism or GC for immortal invitations?
|
|
477
487
|
// TODO(nf): should the creator have a way to make an invitation last as long as the client? this was the previous behavior.
|
|
478
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;
|
|
479
500
|
}
|
|
480
501
|
|
|
481
502
|
message AcceptInvitationRequest {
|
|
@@ -103,6 +103,10 @@ message Runtime {
|
|
|
103
103
|
optional StorageDriver key_store = 2;
|
|
104
104
|
optional StorageDriver data_store = 3;
|
|
105
105
|
optional string data_root = 4;
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* @deprecated
|
|
109
|
+
*/
|
|
106
110
|
optional bool space_fragmentation = 5;
|
|
107
111
|
}
|
|
108
112
|
|
|
@@ -130,9 +134,6 @@ message Runtime {
|
|
|
130
134
|
|
|
131
135
|
/// Connect to and serve client services to a remote proxy.
|
|
132
136
|
optional string devtools_proxy = 7;
|
|
133
|
-
|
|
134
|
-
/// Enable E.object api
|
|
135
|
-
optional bool use_reactive_object_api = 8;
|
|
136
137
|
}
|
|
137
138
|
|
|
138
139
|
message App {
|
|
@@ -47,7 +47,11 @@ message MutationReceipt {
|
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
message FlushRequest {
|
|
50
|
-
dxos.keys.PublicKey space_key = 1;
|
|
50
|
+
optional dxos.keys.PublicKey space_key = 1;
|
|
51
|
+
/**
|
|
52
|
+
* Automerge specific document ids to wait to flush.
|
|
53
|
+
*/
|
|
54
|
+
repeated string document_ids = 2;
|
|
51
55
|
}
|
|
52
56
|
|
|
53
57
|
// Automerge specific.
|
|
@@ -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;
|
|
@@ -15,6 +15,9 @@ message StartRequest {
|
|
|
15
15
|
string origin = 1;
|
|
16
16
|
/// Key for the iframe resource lock used to determine when the service is closing.
|
|
17
17
|
optional string lock_key = 2;
|
|
18
|
+
// TODO(nf): extract or remove?
|
|
19
|
+
optional string observabilityGroup = 3;
|
|
20
|
+
optional bool signalTelemetryEnabled = 4;
|
|
18
21
|
}
|
|
19
22
|
|
|
20
23
|
/// Iframe-to-worker RPCs.
|
|
@@ -52,11 +55,13 @@ service AppService {
|
|
|
52
55
|
enum ShellLayout {
|
|
53
56
|
DEFAULT = 0;
|
|
54
57
|
INITIALIZE_IDENTITY = 1;
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
58
|
+
INITIALIZE_IDENTITY_FROM_INVITATION = 2;
|
|
59
|
+
IDENTITY = 3;
|
|
60
|
+
SHARE_IDENTITY = 4;
|
|
61
|
+
EDIT_PROFILE = 5;
|
|
62
|
+
SPACE = 6;
|
|
63
|
+
JOIN_SPACE = 7;
|
|
64
|
+
STATUS = 8;
|
|
60
65
|
}
|
|
61
66
|
|
|
62
67
|
message LayoutRequest {
|
|
@@ -6,8 +6,10 @@ syntax = "proto3";
|
|
|
6
6
|
|
|
7
7
|
import "google/protobuf/any.proto";
|
|
8
8
|
import "google/protobuf/empty.proto";
|
|
9
|
+
import "google/protobuf/struct.proto";
|
|
9
10
|
import "google/protobuf/timestamp.proto";
|
|
10
11
|
|
|
12
|
+
|
|
11
13
|
package dxos.mesh.signal;
|
|
12
14
|
|
|
13
15
|
option go_package = "github.com/dxos/kube/proto/def/dxos/mesh/signal";
|
|
@@ -15,6 +17,7 @@ option go_package = "github.com/dxos/kube/proto/def/dxos/mesh/signal";
|
|
|
15
17
|
message JoinRequest {
|
|
16
18
|
bytes swarm = 1;
|
|
17
19
|
bytes peer = 2;
|
|
20
|
+
optional google.protobuf.Struct metadata = 3;
|
|
18
21
|
}
|
|
19
22
|
|
|
20
23
|
message Message {
|
|
@@ -22,6 +25,7 @@ message Message {
|
|
|
22
25
|
bytes author = 1;
|
|
23
26
|
bytes recipient = 2;
|
|
24
27
|
google.protobuf.Any payload = 3;
|
|
28
|
+
optional google.protobuf.Struct metadata = 4;
|
|
25
29
|
}
|
|
26
30
|
|
|
27
31
|
message ReceptionRequest {
|
|
@@ -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}
|
|
@@ -804,7 +629,8 @@ export namespace CreateEpochRequest {
|
|
|
804
629
|
export enum Migration {
|
|
805
630
|
NONE = 0,
|
|
806
631
|
INIT_AUTOMERGE = 1,
|
|
807
|
-
PRUNE_AUTOMERGE_ROOT_HISTORY = 2
|
|
632
|
+
PRUNE_AUTOMERGE_ROOT_HISTORY = 2,
|
|
633
|
+
FRAGMENT_AUTOMERGE_ROOT = 3
|
|
808
634
|
}
|
|
809
635
|
}
|
|
810
636
|
/**
|
|
@@ -839,7 +665,7 @@ export interface SpacesService {
|
|
|
839
665
|
*/
|
|
840
666
|
export interface IndexService {
|
|
841
667
|
setConfig: (request: dxos_echo_indexing.IndexConfig, options?: RequestOptions) => Promise<void>;
|
|
842
|
-
find: (request: dxos_agent_query.QueryRequest, options?: RequestOptions) =>
|
|
668
|
+
find: (request: dxos_agent_query.QueryRequest, options?: RequestOptions) => Stream<dxos_agent_query.QueryResponse>;
|
|
843
669
|
}
|
|
844
670
|
/**
|
|
845
671
|
* Represents the invitation state passed between client and service.
|
|
@@ -924,6 +750,20 @@ export interface Invitation {
|
|
|
924
750
|
* - proto3_optional = true
|
|
925
751
|
*/
|
|
926
752
|
lifetime?: number;
|
|
753
|
+
/**
|
|
754
|
+
* Whether an invitation can be used multiple times.
|
|
755
|
+
*
|
|
756
|
+
* Options:
|
|
757
|
+
* - proto3_optional = true
|
|
758
|
+
*/
|
|
759
|
+
multiUse?: boolean;
|
|
760
|
+
/**
|
|
761
|
+
* Guest's keypair required for AuthMethod.KNOWN_PUBLIC_KEY.
|
|
762
|
+
*
|
|
763
|
+
* Options:
|
|
764
|
+
* - proto3_optional = true
|
|
765
|
+
*/
|
|
766
|
+
guestKeypair?: AdmissionKeypair;
|
|
927
767
|
}
|
|
928
768
|
export namespace Invitation {
|
|
929
769
|
/**
|
|
@@ -932,7 +772,7 @@ export namespace Invitation {
|
|
|
932
772
|
*/
|
|
933
773
|
export enum Type {
|
|
934
774
|
INTERACTIVE = 0,
|
|
935
|
-
|
|
775
|
+
DELEGATED = 1,
|
|
936
776
|
MULTIUSE = 2
|
|
937
777
|
}
|
|
938
778
|
/**
|
|
@@ -949,7 +789,8 @@ export namespace Invitation {
|
|
|
949
789
|
*/
|
|
950
790
|
export enum AuthMethod {
|
|
951
791
|
NONE = 0,
|
|
952
|
-
SHARED_SECRET = 1
|
|
792
|
+
SHARED_SECRET = 1,
|
|
793
|
+
KNOWN_PUBLIC_KEY = 2
|
|
953
794
|
}
|
|
954
795
|
/**
|
|
955
796
|
* Defined in:
|
|
@@ -968,6 +809,18 @@ export namespace Invitation {
|
|
|
968
809
|
EXPIRED = 9
|
|
969
810
|
}
|
|
970
811
|
}
|
|
812
|
+
/**
|
|
813
|
+
* Defined in:
|
|
814
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
815
|
+
*/
|
|
816
|
+
export interface AdmissionKeypair {
|
|
817
|
+
publicKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
818
|
+
/**
|
|
819
|
+
* Options:
|
|
820
|
+
* - proto3_optional = true
|
|
821
|
+
*/
|
|
822
|
+
privateKey?: ReturnType<(typeof substitutions)["dxos.keys.PrivateKey"]["decode"]>;
|
|
823
|
+
}
|
|
971
824
|
/**
|
|
972
825
|
* Defined in:
|
|
973
826
|
* {@link file://./../../../dxos/client/services.proto}
|
|
@@ -1098,3 +951,178 @@ export interface NetworkService {
|
|
|
1098
951
|
updateConfig: (request: UpdateConfigRequest, options?: RequestOptions) => Promise<void>;
|
|
1099
952
|
queryStatus: (request: void, options?: RequestOptions) => Stream<NetworkStatus>;
|
|
1100
953
|
}
|
|
954
|
+
/**
|
|
955
|
+
* Defined in:
|
|
956
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
957
|
+
*/
|
|
958
|
+
export interface Metrics {
|
|
959
|
+
timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
960
|
+
values?: Metrics.KeyPair[];
|
|
961
|
+
}
|
|
962
|
+
export namespace Metrics {
|
|
963
|
+
/**
|
|
964
|
+
* Defined in:
|
|
965
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
966
|
+
*/
|
|
967
|
+
export interface KeyPair {
|
|
968
|
+
/**
|
|
969
|
+
* Options:
|
|
970
|
+
* - proto3_optional = true
|
|
971
|
+
*/
|
|
972
|
+
key?: string;
|
|
973
|
+
/**
|
|
974
|
+
* Options:
|
|
975
|
+
* - proto3_optional = true
|
|
976
|
+
*/
|
|
977
|
+
value?: dxos_value.Value;
|
|
978
|
+
/**
|
|
979
|
+
* Options:
|
|
980
|
+
* - proto3_optional = true
|
|
981
|
+
*/
|
|
982
|
+
stats?: dxos_value.Stats;
|
|
983
|
+
}
|
|
984
|
+
}
|
|
985
|
+
/**
|
|
986
|
+
* Defined in:
|
|
987
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
988
|
+
*/
|
|
989
|
+
export interface ControlMetricsRequest {
|
|
990
|
+
/**
|
|
991
|
+
* Options:
|
|
992
|
+
* - proto3_optional = true
|
|
993
|
+
*/
|
|
994
|
+
reset?: boolean;
|
|
995
|
+
/**
|
|
996
|
+
* Options:
|
|
997
|
+
* - proto3_optional = true
|
|
998
|
+
*/
|
|
999
|
+
record?: boolean;
|
|
1000
|
+
}
|
|
1001
|
+
/**
|
|
1002
|
+
* Defined in:
|
|
1003
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
1004
|
+
*/
|
|
1005
|
+
export interface ControlMetricsResponse {
|
|
1006
|
+
/**
|
|
1007
|
+
* Options:
|
|
1008
|
+
* - proto3_optional = true
|
|
1009
|
+
*/
|
|
1010
|
+
recording?: boolean;
|
|
1011
|
+
}
|
|
1012
|
+
/**
|
|
1013
|
+
* Defined in:
|
|
1014
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
1015
|
+
*/
|
|
1016
|
+
export interface QueryMetricsRequest {
|
|
1017
|
+
/**
|
|
1018
|
+
* Options:
|
|
1019
|
+
* - proto3_optional = true
|
|
1020
|
+
*/
|
|
1021
|
+
interval?: number;
|
|
1022
|
+
}
|
|
1023
|
+
/**
|
|
1024
|
+
* Defined in:
|
|
1025
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
1026
|
+
*/
|
|
1027
|
+
export interface QueryMetricsResponse {
|
|
1028
|
+
timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
1029
|
+
metrics: Metrics;
|
|
1030
|
+
}
|
|
1031
|
+
/**
|
|
1032
|
+
* Defined in:
|
|
1033
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
1034
|
+
*/
|
|
1035
|
+
export enum LogLevel {
|
|
1036
|
+
TRACE = 5,
|
|
1037
|
+
DEBUG = 10,
|
|
1038
|
+
INFO = 11,
|
|
1039
|
+
WARN = 12,
|
|
1040
|
+
ERROR = 13
|
|
1041
|
+
}
|
|
1042
|
+
/**
|
|
1043
|
+
* Defined in:
|
|
1044
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
1045
|
+
*/
|
|
1046
|
+
export interface QueryLogsRequest {
|
|
1047
|
+
filters?: QueryLogsRequest.Filter[];
|
|
1048
|
+
/**
|
|
1049
|
+
* Options:
|
|
1050
|
+
* - proto3_optional = true
|
|
1051
|
+
*/
|
|
1052
|
+
options?: QueryLogsRequest.MatchingOptions;
|
|
1053
|
+
}
|
|
1054
|
+
export namespace QueryLogsRequest {
|
|
1055
|
+
/**
|
|
1056
|
+
* Defined in:
|
|
1057
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
1058
|
+
*/
|
|
1059
|
+
export enum MatchingOptions {
|
|
1060
|
+
INCLUSIVE = 1,
|
|
1061
|
+
EXPLICIT = 2
|
|
1062
|
+
}
|
|
1063
|
+
/**
|
|
1064
|
+
* Defined in:
|
|
1065
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
1066
|
+
*/
|
|
1067
|
+
export interface Filter {
|
|
1068
|
+
level: LogLevel;
|
|
1069
|
+
/**
|
|
1070
|
+
* Options:
|
|
1071
|
+
* - proto3_optional = true
|
|
1072
|
+
*/
|
|
1073
|
+
pattern?: string;
|
|
1074
|
+
}
|
|
1075
|
+
}
|
|
1076
|
+
/**
|
|
1077
|
+
* Defined in:
|
|
1078
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
1079
|
+
*/
|
|
1080
|
+
export interface LogEntry {
|
|
1081
|
+
level: LogLevel;
|
|
1082
|
+
message: string;
|
|
1083
|
+
/**
|
|
1084
|
+
* Options:
|
|
1085
|
+
* - proto3_optional = true
|
|
1086
|
+
*/
|
|
1087
|
+
context?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
|
|
1088
|
+
/**
|
|
1089
|
+
* Options:
|
|
1090
|
+
* - proto3_optional = true
|
|
1091
|
+
*/
|
|
1092
|
+
meta?: LogEntry.Meta;
|
|
1093
|
+
/**
|
|
1094
|
+
* Options:
|
|
1095
|
+
* - proto3_optional = true
|
|
1096
|
+
*/
|
|
1097
|
+
error?: dxos_error.Error;
|
|
1098
|
+
timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
1099
|
+
}
|
|
1100
|
+
export namespace LogEntry {
|
|
1101
|
+
/**
|
|
1102
|
+
* Defined in:
|
|
1103
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
1104
|
+
*/
|
|
1105
|
+
export interface Meta {
|
|
1106
|
+
file: string;
|
|
1107
|
+
line: number;
|
|
1108
|
+
/**
|
|
1109
|
+
* Options:
|
|
1110
|
+
* - proto3_optional = true
|
|
1111
|
+
*/
|
|
1112
|
+
scope?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
|
|
1113
|
+
/**
|
|
1114
|
+
* Options:
|
|
1115
|
+
* - proto3_optional = true
|
|
1116
|
+
*/
|
|
1117
|
+
resourceId?: number;
|
|
1118
|
+
}
|
|
1119
|
+
}
|
|
1120
|
+
/**
|
|
1121
|
+
* Defined in:
|
|
1122
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
1123
|
+
*/
|
|
1124
|
+
export interface LoggingService {
|
|
1125
|
+
controlMetrics: (request: ControlMetricsRequest, options?: RequestOptions) => Promise<ControlMetricsResponse>;
|
|
1126
|
+
queryMetrics: (request: QueryMetricsRequest, options?: RequestOptions) => Stream<QueryMetricsResponse>;
|
|
1127
|
+
queryLogs: (request: QueryLogsRequest, options?: RequestOptions) => Stream<LogEntry>;
|
|
1128
|
+
}
|
|
@@ -298,13 +298,6 @@ export namespace Runtime {
|
|
|
298
298
|
* - proto3_optional = true
|
|
299
299
|
*/
|
|
300
300
|
devtoolsProxy?: string;
|
|
301
|
-
/**
|
|
302
|
-
* Enable E.object api
|
|
303
|
-
*
|
|
304
|
-
* Options:
|
|
305
|
-
* - proto3_optional = true
|
|
306
|
-
*/
|
|
307
|
-
useReactiveObjectApi?: boolean;
|
|
308
301
|
}
|
|
309
302
|
export namespace Client {
|
|
310
303
|
/**
|
|
@@ -333,6 +326,8 @@ export namespace Runtime {
|
|
|
333
326
|
*/
|
|
334
327
|
dataRoot?: string;
|
|
335
328
|
/**
|
|
329
|
+
* @deprecated
|
|
330
|
+
*
|
|
336
331
|
* Options:
|
|
337
332
|
* - proto3_optional = true
|
|
338
333
|
*/
|