@dxos/protocols 0.6.3-main.3c9610d → 0.6.3-main.4203f37
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 +165 -162
- package/dist/cjs/src/proto/gen/dxos/client/services.d.ts.map +1 -1
- package/dist/cjs/src/proto/gen/dxos/client/services.js +57 -54
- package/dist/cjs/src/proto/gen/dxos/client/services.js.map +1 -1
- package/dist/cjs/src/proto/gen/dxos/echo/metadata.d.ts +3 -3
- package/dist/cjs/src/proto/gen/dxos/echo/object.d.ts +2 -2
- package/dist/cjs/src/proto/gen/dxos/halo/invitations.d.ts +4 -4
- package/dist/cjs/src/proto/gen/dxos/halo/invitations.d.ts.map +1 -1
- package/dist/cjs/src/proto/gen/dxos/halo/invitations.js +5 -5
- package/dist/cjs/src/proto/gen/dxos/halo/invitations.js.map +1 -1
- package/dist/cjs/src/proto/gen/dxos/halo/keys.d.ts +0 -10
- package/dist/cjs/src/proto/gen/dxos/halo/keys.d.ts.map +1 -1
- package/dist/cjs/src/proto/gen/dxos/halo/signed.d.ts +5 -4
- package/dist/cjs/src/proto/gen/dxos/halo/signed.d.ts.map +1 -1
- package/dist/cjs/src/proto/gen/dxos/mesh/teleport/gossip.d.ts +1 -1
- package/dist/cjs/src/proto/gen/google/protobuf.d.ts +5 -0
- package/dist/cjs/src/proto/gen/google/protobuf.d.ts.map +1 -1
- package/dist/cjs/src/proto/gen/google/protobuf.js.map +1 -1
- package/dist/cjs/src/proto/gen/index.d.ts +3 -4
- 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 +165 -162
- package/dist/esm/src/proto/gen/dxos/client/services.d.ts.map +1 -1
- package/dist/esm/src/proto/gen/dxos/client/services.js +56 -53
- package/dist/esm/src/proto/gen/dxos/client/services.js.map +1 -1
- package/dist/esm/src/proto/gen/dxos/echo/metadata.d.ts +3 -3
- package/dist/esm/src/proto/gen/dxos/echo/object.d.ts +2 -2
- package/dist/esm/src/proto/gen/dxos/halo/invitations.d.ts +4 -4
- package/dist/esm/src/proto/gen/dxos/halo/invitations.d.ts.map +1 -1
- package/dist/esm/src/proto/gen/dxos/halo/invitations.js +4 -4
- package/dist/esm/src/proto/gen/dxos/halo/invitations.js.map +1 -1
- package/dist/esm/src/proto/gen/dxos/halo/keys.d.ts +0 -10
- package/dist/esm/src/proto/gen/dxos/halo/keys.d.ts.map +1 -1
- package/dist/esm/src/proto/gen/dxos/halo/signed.d.ts +5 -4
- package/dist/esm/src/proto/gen/dxos/halo/signed.d.ts.map +1 -1
- package/dist/esm/src/proto/gen/dxos/mesh/teleport/gossip.d.ts +1 -1
- package/dist/esm/src/proto/gen/google/protobuf.d.ts +5 -0
- package/dist/esm/src/proto/gen/google/protobuf.d.ts.map +1 -1
- package/dist/esm/src/proto/gen/google/protobuf.js.map +1 -1
- package/dist/esm/src/proto/gen/index.d.ts +3 -4
- 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 +16 -7
- package/src/proto/dxos/agent/dashboard.proto +3 -2
- package/src/proto/dxos/bot.proto +2 -1
- package/src/proto/dxos/client/invitation.proto +171 -0
- package/src/proto/dxos/client/logging.proto +3 -0
- package/src/proto/dxos/client/services.proto +10 -144
- package/src/proto/dxos/config.proto +10 -10
- package/src/proto/dxos/echo/metadata.proto +10 -14
- package/src/proto/dxos/echo/object.proto +4 -2
- package/src/proto/dxos/field_options.proto +11 -0
- package/src/proto/dxos/halo/credentials.proto +2 -0
- package/src/proto/dxos/halo/invitations.proto +3 -3
- package/src/proto/dxos/halo/keys.proto +0 -12
- package/src/proto/dxos/halo/signed.proto +10 -6
- package/src/proto/dxos/mesh/presence.proto +3 -1
- package/src/proto/dxos/mesh/teleport/gossip.proto +3 -1
- package/src/proto/gen/dxos/client/services.ts +165 -162
- package/src/proto/gen/dxos/echo/metadata.ts +3 -3
- package/src/proto/gen/dxos/echo/object.ts +2 -2
- package/src/proto/gen/dxos/halo/invitations.ts +4 -4
- package/src/proto/gen/dxos/halo/keys.ts +0 -9
- package/src/proto/gen/dxos/halo/signed.ts +5 -3
- package/src/proto/gen/dxos/mesh/teleport/gossip.ts +1 -1
- package/src/proto/gen/google/protobuf.ts +5 -0
- package/src/proto/gen/index.ts +4 -5
|
@@ -7,14 +7,14 @@ syntax = "proto3";
|
|
|
7
7
|
import "google/protobuf/empty.proto";
|
|
8
8
|
import "google/protobuf/timestamp.proto";
|
|
9
9
|
|
|
10
|
-
import "dxos/client/
|
|
10
|
+
import "dxos/client/invitation.proto";
|
|
11
11
|
import "dxos/echo/timeframe.proto";
|
|
12
12
|
import "dxos/halo/credentials.proto";
|
|
13
13
|
import "dxos/keys.proto";
|
|
14
14
|
|
|
15
15
|
package dxos.halo.invitations;
|
|
16
16
|
|
|
17
|
-
message
|
|
17
|
+
message InvitationOptions {
|
|
18
18
|
enum Role {
|
|
19
19
|
GUEST = 0;
|
|
20
20
|
HOST = 1;
|
|
@@ -127,7 +127,7 @@ message AdmissionResponse {
|
|
|
127
127
|
// TODO(dmaretskyi): Rename to InvitationExtensionService.
|
|
128
128
|
service InvitationHostService {
|
|
129
129
|
/// Both peers must call this method before any other.
|
|
130
|
-
rpc Options(
|
|
130
|
+
rpc Options(InvitationOptions) returns (google.protobuf.Empty);
|
|
131
131
|
|
|
132
132
|
/// Introduce guest to the host. Only on the host.
|
|
133
133
|
rpc Introduce(IntroductionRequest) returns (IntroductionResponse);
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
syntax = "proto3";
|
|
6
6
|
|
|
7
7
|
import "dxos/keys.proto";
|
|
8
|
-
import "dxos/halo/signed.proto";
|
|
9
8
|
|
|
10
9
|
package dxos.halo.keys;
|
|
11
10
|
|
|
@@ -70,14 +69,3 @@ message KeyRecord {
|
|
|
70
69
|
message KeyRecordList {
|
|
71
70
|
repeated KeyRecord keys = 1;
|
|
72
71
|
}
|
|
73
|
-
|
|
74
|
-
//
|
|
75
|
-
// A key which includes its parent keys and SignedMessages leading back to the root of its authority.
|
|
76
|
-
// For example, if IdentityA signed for DeviceA, which signed for DeviceB, which signed for DeviceC the chain
|
|
77
|
-
// would comprised: DeviceC->DeviceB->DeviceA->IdentityA moving from tip to root.
|
|
78
|
-
//
|
|
79
|
-
message KeyChain {
|
|
80
|
-
dxos.keys.PublicKey public_key = 1;
|
|
81
|
-
dxos.halo.signed.SignedMessage message = 2; // TODO(burdon): Circular dep.
|
|
82
|
-
repeated KeyChain parents = 3;
|
|
83
|
-
}
|
|
@@ -6,15 +6,19 @@ syntax = "proto3";
|
|
|
6
6
|
|
|
7
7
|
import "google/protobuf/any.proto";
|
|
8
8
|
|
|
9
|
-
import "dxos/halo/keys.proto";
|
|
10
9
|
import "dxos/keys.proto";
|
|
11
10
|
|
|
12
11
|
package dxos.halo.signed;
|
|
13
12
|
|
|
14
|
-
//
|
|
15
|
-
//
|
|
16
|
-
|
|
17
|
-
|
|
13
|
+
//
|
|
14
|
+
// A key which includes its parent keys and SignedMessages leading back to the root of its authority.
|
|
15
|
+
// For example, if IdentityA signed for DeviceA, which signed for DeviceB, which signed for DeviceC the chain
|
|
16
|
+
// would comprised: DeviceC->DeviceB->DeviceA->IdentityA moving from tip to root.
|
|
17
|
+
//
|
|
18
|
+
message KeyChain {
|
|
19
|
+
dxos.keys.PublicKey public_key = 1;
|
|
20
|
+
SignedMessage message = 2;
|
|
21
|
+
repeated KeyChain parents = 3;
|
|
18
22
|
}
|
|
19
23
|
|
|
20
24
|
/**
|
|
@@ -41,7 +45,7 @@ message SignedMessage {
|
|
|
41
45
|
/// The bytes of the signature.
|
|
42
46
|
bytes signature = 2;
|
|
43
47
|
/// The certification chain of SignedMessages for this key.
|
|
44
|
-
optional
|
|
48
|
+
optional KeyChain key_chain = 3;
|
|
45
49
|
}
|
|
46
50
|
|
|
47
51
|
/// The signed message contents.
|
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
syntax = "proto3";
|
|
6
6
|
|
|
7
|
+
import "dxos/keys.proto";
|
|
8
|
+
|
|
7
9
|
package dxos.mesh.presence;
|
|
8
10
|
|
|
9
11
|
// Even though those definitions don't use Any the schema can be added dynamically later.
|
|
@@ -12,7 +14,7 @@ import "google/protobuf/any.proto";
|
|
|
12
14
|
|
|
13
15
|
message PeerState {
|
|
14
16
|
/// Will be used to build network graph
|
|
15
|
-
repeated dxos.keys.PublicKey connections = 1;
|
|
17
|
+
repeated dxos.keys.PublicKey connections = 1;
|
|
16
18
|
|
|
17
19
|
// TODO(mykola): Remove once IdentityKey can be obtained from DeviceKey.
|
|
18
20
|
dxos.keys.PublicKey identity_key = 2;
|
|
@@ -6,13 +6,15 @@ syntax = "proto3";
|
|
|
6
6
|
|
|
7
7
|
import "google/protobuf/empty.proto";
|
|
8
8
|
import "google/protobuf/any.proto";
|
|
9
|
+
import "google/protobuf/timestamp.proto";
|
|
10
|
+
|
|
9
11
|
import "dxos/keys.proto";
|
|
10
12
|
|
|
11
13
|
package dxos.mesh.teleport.gossip;
|
|
12
14
|
|
|
13
15
|
message GossipMessage {
|
|
14
16
|
dxos.keys.PublicKey peer_id = 1;
|
|
15
|
-
/// Used to route
|
|
17
|
+
/// Used to route different payload types to correct listeners.
|
|
16
18
|
string channel_id = 2;
|
|
17
19
|
/// Peer tracks what had been sent by message id.
|
|
18
20
|
dxos.keys.PublicKey message_id = 3;
|
|
@@ -144,6 +144,7 @@ export interface QueryMetricsResponse {
|
|
|
144
144
|
* {@link file://./../../../dxos/client/logging.proto}
|
|
145
145
|
*/
|
|
146
146
|
export enum LogLevel {
|
|
147
|
+
NONE = 0,
|
|
147
148
|
TRACE = 5,
|
|
148
149
|
DEBUG = 10,
|
|
149
150
|
INFO = 11,
|
|
@@ -168,6 +169,7 @@ export namespace QueryLogsRequest {
|
|
|
168
169
|
* {@link file://./../../../dxos/client/logging.proto}
|
|
169
170
|
*/
|
|
170
171
|
export enum MatchingOptions {
|
|
172
|
+
NONE = 0,
|
|
171
173
|
INCLUSIVE = 1,
|
|
172
174
|
EXPLICIT = 2
|
|
173
175
|
}
|
|
@@ -560,22 +562,6 @@ export namespace SpaceMember {
|
|
|
560
562
|
ONLINE = 1
|
|
561
563
|
}
|
|
562
564
|
}
|
|
563
|
-
/**
|
|
564
|
-
* Runtime state of the space object.
|
|
565
|
-
*
|
|
566
|
-
* Defined in:
|
|
567
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
568
|
-
*/
|
|
569
|
-
export enum SpaceState {
|
|
570
|
-
INACTIVE = 2,
|
|
571
|
-
ACTIVE = 6,
|
|
572
|
-
CLOSED = 1,
|
|
573
|
-
CONTROL_ONLY = 7,
|
|
574
|
-
INITIALIZING = 4,
|
|
575
|
-
READY = 3,
|
|
576
|
-
ERROR = 5,
|
|
577
|
-
REQUIRES_MIGRATION = 8
|
|
578
|
-
}
|
|
579
565
|
/**
|
|
580
566
|
* Defined in:
|
|
581
567
|
* {@link file://./../../../dxos/client/services.proto}
|
|
@@ -929,11 +915,169 @@ export interface SpacesService {
|
|
|
929
915
|
queryCredentials: (request: QueryCredentialsRequest, options?: RequestOptions) => Stream<dxos_halo_credentials.Credential>;
|
|
930
916
|
createEpoch: (request: CreateEpochRequest, options?: RequestOptions) => Promise<CreateEpochResponse>;
|
|
931
917
|
}
|
|
918
|
+
/**
|
|
919
|
+
* Defined in:
|
|
920
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
921
|
+
*/
|
|
922
|
+
export interface AcceptInvitationRequest {
|
|
923
|
+
invitation: Invitation;
|
|
924
|
+
/**
|
|
925
|
+
* Options:
|
|
926
|
+
* - proto3_optional = true
|
|
927
|
+
*/
|
|
928
|
+
deviceProfile?: dxos_halo_credentials.DeviceProfileDocument;
|
|
929
|
+
}
|
|
930
|
+
/**
|
|
931
|
+
* Defined in:
|
|
932
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
933
|
+
*/
|
|
934
|
+
export interface AuthenticationRequest {
|
|
935
|
+
invitationId: string;
|
|
936
|
+
authCode: string;
|
|
937
|
+
}
|
|
938
|
+
/**
|
|
939
|
+
* Defined in:
|
|
940
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
941
|
+
*/
|
|
942
|
+
export interface CancelInvitationRequest {
|
|
943
|
+
invitationId: string;
|
|
944
|
+
}
|
|
945
|
+
/**
|
|
946
|
+
* Defined in:
|
|
947
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
948
|
+
*/
|
|
949
|
+
export interface InvitationMethod {
|
|
950
|
+
created?: Invitation;
|
|
951
|
+
accepted?: Invitation;
|
|
952
|
+
}
|
|
953
|
+
/**
|
|
954
|
+
* Defined in:
|
|
955
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
956
|
+
*/
|
|
957
|
+
export interface QueryInvitationsResponse {
|
|
958
|
+
action: QueryInvitationsResponse.Action;
|
|
959
|
+
type: QueryInvitationsResponse.Type;
|
|
960
|
+
invitations?: Invitation[];
|
|
961
|
+
/**
|
|
962
|
+
* Options:
|
|
963
|
+
* - proto3_optional = true
|
|
964
|
+
*/
|
|
965
|
+
existing?: boolean;
|
|
966
|
+
}
|
|
967
|
+
export namespace QueryInvitationsResponse {
|
|
968
|
+
/**
|
|
969
|
+
* Defined in:
|
|
970
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
971
|
+
*/
|
|
972
|
+
export enum Action {
|
|
973
|
+
ADDED = 0,
|
|
974
|
+
REMOVED = 1,
|
|
975
|
+
SAVED = 2,
|
|
976
|
+
LOAD_COMPLETE = 3
|
|
977
|
+
}
|
|
978
|
+
/**
|
|
979
|
+
* Defined in:
|
|
980
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
981
|
+
*/
|
|
982
|
+
export enum Type {
|
|
983
|
+
CREATED = 0,
|
|
984
|
+
ACCEPTED = 1
|
|
985
|
+
}
|
|
986
|
+
}
|
|
987
|
+
/**
|
|
988
|
+
* Defined in:
|
|
989
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
990
|
+
*/
|
|
991
|
+
export interface LoadPersistentInvitationsResponse {
|
|
992
|
+
invitations?: Invitation[];
|
|
993
|
+
}
|
|
994
|
+
/**
|
|
995
|
+
* Defined in:
|
|
996
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
997
|
+
*/
|
|
998
|
+
export interface InvitationsService {
|
|
999
|
+
createInvitation: (request: Invitation, options?: RequestOptions) => Stream<Invitation>;
|
|
1000
|
+
acceptInvitation: (request: AcceptInvitationRequest, options?: RequestOptions) => Stream<Invitation>;
|
|
1001
|
+
authenticate: (request: AuthenticationRequest, options?: RequestOptions) => Promise<void>;
|
|
1002
|
+
cancelInvitation: (request: CancelInvitationRequest, options?: RequestOptions) => Promise<void>;
|
|
1003
|
+
queryInvitations: (request: void, options?: RequestOptions) => Stream<QueryInvitationsResponse>;
|
|
1004
|
+
}
|
|
1005
|
+
/**
|
|
1006
|
+
* Defined in:
|
|
1007
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
1008
|
+
*/
|
|
1009
|
+
export enum ConnectionState {
|
|
1010
|
+
OFFLINE = 0,
|
|
1011
|
+
ONLINE = 1
|
|
1012
|
+
}
|
|
1013
|
+
/**
|
|
1014
|
+
* Defined in:
|
|
1015
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
1016
|
+
*/
|
|
1017
|
+
export interface NetworkStatus {
|
|
1018
|
+
swarm: ConnectionState;
|
|
1019
|
+
signaling?: NetworkStatus.Signal[];
|
|
1020
|
+
connectionInfo?: dxos_devtools_swarm.SwarmInfo[];
|
|
1021
|
+
}
|
|
1022
|
+
export namespace NetworkStatus {
|
|
1023
|
+
/**
|
|
1024
|
+
* Defined in:
|
|
1025
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
1026
|
+
*/
|
|
1027
|
+
export interface Signal {
|
|
1028
|
+
server: string;
|
|
1029
|
+
state: dxos_mesh_signal.SignalState;
|
|
1030
|
+
}
|
|
1031
|
+
}
|
|
1032
|
+
/**
|
|
1033
|
+
* Defined in:
|
|
1034
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
1035
|
+
*/
|
|
1036
|
+
export interface UpdateConfigRequest {
|
|
1037
|
+
swarm: ConnectionState;
|
|
1038
|
+
}
|
|
1039
|
+
/**
|
|
1040
|
+
* Defined in:
|
|
1041
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
1042
|
+
*/
|
|
1043
|
+
export interface NetworkService {
|
|
1044
|
+
updateConfig: (request: UpdateConfigRequest, options?: RequestOptions) => Promise<void>;
|
|
1045
|
+
queryStatus: (request: void, options?: RequestOptions) => Stream<NetworkStatus>;
|
|
1046
|
+
}
|
|
1047
|
+
/**
|
|
1048
|
+
* Defined in:
|
|
1049
|
+
* {@link file://./../../../dxos/client/invitation.proto}
|
|
1050
|
+
*/
|
|
1051
|
+
export interface AdmissionKeypair {
|
|
1052
|
+
publicKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
1053
|
+
/**
|
|
1054
|
+
* Options:
|
|
1055
|
+
* - proto3_optional = true
|
|
1056
|
+
*/
|
|
1057
|
+
privateKey?: ReturnType<(typeof substitutions)["dxos.keys.PrivateKey"]["decode"]>;
|
|
1058
|
+
}
|
|
1059
|
+
/**
|
|
1060
|
+
* Runtime state of the space object.
|
|
1061
|
+
*
|
|
1062
|
+
* Defined in:
|
|
1063
|
+
* {@link file://./../../../dxos/client/invitation.proto}
|
|
1064
|
+
*/
|
|
1065
|
+
export enum SpaceState {
|
|
1066
|
+
INVALID = 0,
|
|
1067
|
+
SPACE_INACTIVE = 2,
|
|
1068
|
+
SPACE_ACTIVE = 6,
|
|
1069
|
+
SPACE_CLOSED = 1,
|
|
1070
|
+
SPACE_CONTROL_ONLY = 7,
|
|
1071
|
+
SPACE_INITIALIZING = 4,
|
|
1072
|
+
SPACE_READY = 3,
|
|
1073
|
+
SPACE_ERROR = 5,
|
|
1074
|
+
SPACE_REQUIRES_MIGRATION = 8
|
|
1075
|
+
}
|
|
932
1076
|
/**
|
|
933
1077
|
* Represents the invitation state passed between client and service.
|
|
934
1078
|
*
|
|
935
1079
|
* Defined in:
|
|
936
|
-
* {@link file://./../../../dxos/client/
|
|
1080
|
+
* {@link file://./../../../dxos/client/invitation.proto}
|
|
937
1081
|
*/
|
|
938
1082
|
export interface Invitation {
|
|
939
1083
|
/**
|
|
@@ -1044,7 +1188,7 @@ export interface Invitation {
|
|
|
1044
1188
|
export namespace Invitation {
|
|
1045
1189
|
/**
|
|
1046
1190
|
* Defined in:
|
|
1047
|
-
* {@link file://./../../../dxos/client/
|
|
1191
|
+
* {@link file://./../../../dxos/client/invitation.proto}
|
|
1048
1192
|
*/
|
|
1049
1193
|
export enum Type {
|
|
1050
1194
|
INTERACTIVE = 0,
|
|
@@ -1053,7 +1197,7 @@ export namespace Invitation {
|
|
|
1053
1197
|
}
|
|
1054
1198
|
/**
|
|
1055
1199
|
* Defined in:
|
|
1056
|
-
* {@link file://./../../../dxos/client/
|
|
1200
|
+
* {@link file://./../../../dxos/client/invitation.proto}
|
|
1057
1201
|
*/
|
|
1058
1202
|
export enum Kind {
|
|
1059
1203
|
DEVICE = 0,
|
|
@@ -1061,7 +1205,7 @@ export namespace Invitation {
|
|
|
1061
1205
|
}
|
|
1062
1206
|
/**
|
|
1063
1207
|
* Defined in:
|
|
1064
|
-
* {@link file://./../../../dxos/client/
|
|
1208
|
+
* {@link file://./../../../dxos/client/invitation.proto}
|
|
1065
1209
|
*/
|
|
1066
1210
|
export enum AuthMethod {
|
|
1067
1211
|
NONE = 0,
|
|
@@ -1070,7 +1214,7 @@ export namespace Invitation {
|
|
|
1070
1214
|
}
|
|
1071
1215
|
/**
|
|
1072
1216
|
* Defined in:
|
|
1073
|
-
* {@link file://./../../../dxos/client/
|
|
1217
|
+
* {@link file://./../../../dxos/client/invitation.proto}
|
|
1074
1218
|
*/
|
|
1075
1219
|
export enum State {
|
|
1076
1220
|
INIT = 0,
|
|
@@ -1085,144 +1229,3 @@ export namespace Invitation {
|
|
|
1085
1229
|
EXPIRED = 9
|
|
1086
1230
|
}
|
|
1087
1231
|
}
|
|
1088
|
-
/**
|
|
1089
|
-
* Defined in:
|
|
1090
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
1091
|
-
*/
|
|
1092
|
-
export interface AdmissionKeypair {
|
|
1093
|
-
publicKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
1094
|
-
/**
|
|
1095
|
-
* Options:
|
|
1096
|
-
* - proto3_optional = true
|
|
1097
|
-
*/
|
|
1098
|
-
privateKey?: ReturnType<(typeof substitutions)["dxos.keys.PrivateKey"]["decode"]>;
|
|
1099
|
-
}
|
|
1100
|
-
/**
|
|
1101
|
-
* Defined in:
|
|
1102
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
1103
|
-
*/
|
|
1104
|
-
export interface AcceptInvitationRequest {
|
|
1105
|
-
invitation: Invitation;
|
|
1106
|
-
/**
|
|
1107
|
-
* Options:
|
|
1108
|
-
* - proto3_optional = true
|
|
1109
|
-
*/
|
|
1110
|
-
deviceProfile?: dxos_halo_credentials.DeviceProfileDocument;
|
|
1111
|
-
}
|
|
1112
|
-
/**
|
|
1113
|
-
* Defined in:
|
|
1114
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
1115
|
-
*/
|
|
1116
|
-
export interface AuthenticationRequest {
|
|
1117
|
-
invitationId: string;
|
|
1118
|
-
authCode: string;
|
|
1119
|
-
}
|
|
1120
|
-
/**
|
|
1121
|
-
* Defined in:
|
|
1122
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
1123
|
-
*/
|
|
1124
|
-
export interface CancelInvitationRequest {
|
|
1125
|
-
invitationId: string;
|
|
1126
|
-
}
|
|
1127
|
-
/**
|
|
1128
|
-
* Defined in:
|
|
1129
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
1130
|
-
*/
|
|
1131
|
-
export interface InvitationMethod {
|
|
1132
|
-
created?: Invitation;
|
|
1133
|
-
accepted?: Invitation;
|
|
1134
|
-
}
|
|
1135
|
-
/**
|
|
1136
|
-
* Defined in:
|
|
1137
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
1138
|
-
*/
|
|
1139
|
-
export interface QueryInvitationsResponse {
|
|
1140
|
-
action: QueryInvitationsResponse.Action;
|
|
1141
|
-
type: QueryInvitationsResponse.Type;
|
|
1142
|
-
invitations?: Invitation[];
|
|
1143
|
-
/**
|
|
1144
|
-
* Options:
|
|
1145
|
-
* - proto3_optional = true
|
|
1146
|
-
*/
|
|
1147
|
-
existing?: boolean;
|
|
1148
|
-
}
|
|
1149
|
-
export namespace QueryInvitationsResponse {
|
|
1150
|
-
/**
|
|
1151
|
-
* Defined in:
|
|
1152
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
1153
|
-
*/
|
|
1154
|
-
export enum Action {
|
|
1155
|
-
ADDED = 0,
|
|
1156
|
-
REMOVED = 1,
|
|
1157
|
-
SAVED = 2,
|
|
1158
|
-
LOAD_COMPLETE = 3
|
|
1159
|
-
}
|
|
1160
|
-
/**
|
|
1161
|
-
* Defined in:
|
|
1162
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
1163
|
-
*/
|
|
1164
|
-
export enum Type {
|
|
1165
|
-
CREATED = 0,
|
|
1166
|
-
ACCEPTED = 1
|
|
1167
|
-
}
|
|
1168
|
-
}
|
|
1169
|
-
/**
|
|
1170
|
-
* Defined in:
|
|
1171
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
1172
|
-
*/
|
|
1173
|
-
export interface LoadPersistentInvitationsResponse {
|
|
1174
|
-
invitations?: Invitation[];
|
|
1175
|
-
}
|
|
1176
|
-
/**
|
|
1177
|
-
* Defined in:
|
|
1178
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
1179
|
-
*/
|
|
1180
|
-
export interface InvitationsService {
|
|
1181
|
-
createInvitation: (request: Invitation, options?: RequestOptions) => Stream<Invitation>;
|
|
1182
|
-
acceptInvitation: (request: AcceptInvitationRequest, options?: RequestOptions) => Stream<Invitation>;
|
|
1183
|
-
authenticate: (request: AuthenticationRequest, options?: RequestOptions) => Promise<void>;
|
|
1184
|
-
cancelInvitation: (request: CancelInvitationRequest, options?: RequestOptions) => Promise<void>;
|
|
1185
|
-
queryInvitations: (request: void, options?: RequestOptions) => Stream<QueryInvitationsResponse>;
|
|
1186
|
-
}
|
|
1187
|
-
/**
|
|
1188
|
-
* Defined in:
|
|
1189
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
1190
|
-
*/
|
|
1191
|
-
export enum ConnectionState {
|
|
1192
|
-
OFFLINE = 0,
|
|
1193
|
-
ONLINE = 1
|
|
1194
|
-
}
|
|
1195
|
-
/**
|
|
1196
|
-
* Defined in:
|
|
1197
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
1198
|
-
*/
|
|
1199
|
-
export interface NetworkStatus {
|
|
1200
|
-
swarm: ConnectionState;
|
|
1201
|
-
signaling?: NetworkStatus.Signal[];
|
|
1202
|
-
connectionInfo?: dxos_devtools_swarm.SwarmInfo[];
|
|
1203
|
-
}
|
|
1204
|
-
export namespace NetworkStatus {
|
|
1205
|
-
/**
|
|
1206
|
-
* Defined in:
|
|
1207
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
1208
|
-
*/
|
|
1209
|
-
export interface Signal {
|
|
1210
|
-
server: string;
|
|
1211
|
-
state: dxos_mesh_signal.SignalState;
|
|
1212
|
-
}
|
|
1213
|
-
}
|
|
1214
|
-
/**
|
|
1215
|
-
* Defined in:
|
|
1216
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
1217
|
-
*/
|
|
1218
|
-
export interface UpdateConfigRequest {
|
|
1219
|
-
swarm: ConnectionState;
|
|
1220
|
-
}
|
|
1221
|
-
/**
|
|
1222
|
-
* Defined in:
|
|
1223
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
1224
|
-
*/
|
|
1225
|
-
export interface NetworkService {
|
|
1226
|
-
updateConfig: (request: UpdateConfigRequest, options?: RequestOptions) => Promise<void>;
|
|
1227
|
-
queryStatus: (request: void, options?: RequestOptions) => Stream<NetworkStatus>;
|
|
1228
|
-
}
|
|
@@ -70,7 +70,7 @@ import * as google_protobuf from "../../google/protobuf";
|
|
|
70
70
|
*/
|
|
71
71
|
export interface EchoMetadata {
|
|
72
72
|
/**
|
|
73
|
-
* Version number that is
|
|
73
|
+
* Version number that is incremented every time there's a breaking change to the storage schema.
|
|
74
74
|
* This is used to detect if the storage schema has changed since the last time the client was run.
|
|
75
75
|
* Loading data from a different version will might result in an error.
|
|
76
76
|
*/
|
|
@@ -144,7 +144,7 @@ export interface SpaceMetadata {
|
|
|
144
144
|
*/
|
|
145
145
|
genesisFeedKey?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
146
146
|
/**
|
|
147
|
-
* Key of the
|
|
147
|
+
* Key of the writable control feed.
|
|
148
148
|
*
|
|
149
149
|
* Options:
|
|
150
150
|
* - proto3_optional = true
|
|
@@ -155,7 +155,7 @@ export interface SpaceMetadata {
|
|
|
155
155
|
*/
|
|
156
156
|
feedKeys?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>[];
|
|
157
157
|
/**
|
|
158
|
-
* Key of the
|
|
158
|
+
* Key of the writable data feed.
|
|
159
159
|
*
|
|
160
160
|
* Options:
|
|
161
161
|
* - proto3_optional = true
|
|
@@ -126,7 +126,7 @@ export namespace EchoObject {
|
|
|
126
126
|
* Set the model to the provided snapshot.
|
|
127
127
|
*
|
|
128
128
|
* Options:
|
|
129
|
-
* - preserve_any = true
|
|
129
|
+
* - (preserve_any) = true
|
|
130
130
|
* - proto3_optional = true
|
|
131
131
|
*/
|
|
132
132
|
model?: ReturnType<(typeof substitutions)["google.protobuf.Any"]["decode"]>;
|
|
@@ -155,7 +155,7 @@ export namespace EchoObject {
|
|
|
155
155
|
action?: EchoObject.Mutation.Action;
|
|
156
156
|
/**
|
|
157
157
|
* Options:
|
|
158
|
-
* - preserve_any = true
|
|
158
|
+
* - (preserve_any) = true
|
|
159
159
|
* - proto3_optional = true
|
|
160
160
|
*/
|
|
161
161
|
model?: ReturnType<(typeof substitutions)["google.protobuf.Any"]["decode"]>;
|
|
@@ -66,13 +66,13 @@ import * as google_protobuf from "../../google/protobuf";
|
|
|
66
66
|
* Defined in:
|
|
67
67
|
* {@link file://./../../../dxos/halo/invitations.proto}
|
|
68
68
|
*/
|
|
69
|
-
export interface
|
|
69
|
+
export interface InvitationOptions {
|
|
70
70
|
/**
|
|
71
71
|
* Role of the peer.
|
|
72
72
|
*/
|
|
73
|
-
role:
|
|
73
|
+
role: InvitationOptions.Role;
|
|
74
74
|
}
|
|
75
|
-
export namespace
|
|
75
|
+
export namespace InvitationOptions {
|
|
76
76
|
/**
|
|
77
77
|
* Defined in:
|
|
78
78
|
* {@link file://./../../../dxos/halo/invitations.proto}
|
|
@@ -281,7 +281,7 @@ export interface InvitationHostService {
|
|
|
281
281
|
/**
|
|
282
282
|
* Both peers must call this method before any other.
|
|
283
283
|
*/
|
|
284
|
-
options: (request:
|
|
284
|
+
options: (request: InvitationOptions, options?: RequestOptions) => Promise<void>;
|
|
285
285
|
/**
|
|
286
286
|
* Introduce guest to the host. Only on the host.
|
|
287
287
|
*/
|
|
@@ -138,12 +138,3 @@ export interface KeyRecord {
|
|
|
138
138
|
export interface KeyRecordList {
|
|
139
139
|
keys?: KeyRecord[];
|
|
140
140
|
}
|
|
141
|
-
/**
|
|
142
|
-
* Defined in:
|
|
143
|
-
* {@link file://./../../../dxos/halo/keys.proto}
|
|
144
|
-
*/
|
|
145
|
-
export interface KeyChain {
|
|
146
|
-
publicKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
147
|
-
message: dxos_halo_signed.SignedMessage;
|
|
148
|
-
parents?: KeyChain[];
|
|
149
|
-
}
|
|
@@ -66,8 +66,10 @@ import * as google_protobuf from "../../google/protobuf";
|
|
|
66
66
|
* Defined in:
|
|
67
67
|
* {@link file://./../../../dxos/halo/signed.proto}
|
|
68
68
|
*/
|
|
69
|
-
export interface
|
|
70
|
-
|
|
69
|
+
export interface KeyChain {
|
|
70
|
+
publicKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
71
|
+
message: SignedMessage;
|
|
72
|
+
parents?: KeyChain[];
|
|
71
73
|
}
|
|
72
74
|
/**
|
|
73
75
|
* A generic container message used whenever messages are signed (e.g. SpaceCredential)
|
|
@@ -120,6 +122,6 @@ export namespace SignedMessage {
|
|
|
120
122
|
* Options:
|
|
121
123
|
* - proto3_optional = true
|
|
122
124
|
*/
|
|
123
|
-
keyChain?:
|
|
125
|
+
keyChain?: KeyChain;
|
|
124
126
|
}
|
|
125
127
|
}
|
|
@@ -69,7 +69,7 @@ import * as google_protobuf from "../../../google/protobuf";
|
|
|
69
69
|
export interface GossipMessage {
|
|
70
70
|
peerId: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
71
71
|
/**
|
|
72
|
-
* Used to route
|
|
72
|
+
* Used to route different payload types to correct listeners.
|
|
73
73
|
*/
|
|
74
74
|
channelId: string;
|
|
75
75
|
/**
|
|
@@ -262,6 +262,11 @@ export interface FieldOptions {
|
|
|
262
262
|
* - proto3_optional = true
|
|
263
263
|
*/
|
|
264
264
|
".dxos.config.envVar"?: string;
|
|
265
|
+
/**
|
|
266
|
+
* Options:
|
|
267
|
+
* - proto3_optional = true
|
|
268
|
+
*/
|
|
269
|
+
".preserveAny"?: boolean;
|
|
265
270
|
}
|
|
266
271
|
export namespace FieldOptions {
|
|
267
272
|
export enum CType {
|