@dxos/protocols 0.6.3-main.6906e91 → 0.6.3-main.98b0ce6
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 -187
- package/dist/cjs/src/proto/gen/dxos/client/services.d.ts.map +1 -1
- package/dist/cjs/src/proto/gen/dxos/client/services.js +67 -70
- 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/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 +10 -0
- 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 +4 -5
- 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 +0 -5
- 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 +4 -3
- 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 -187
- package/dist/esm/src/proto/gen/dxos/client/services.d.ts.map +1 -1
- package/dist/esm/src/proto/gen/dxos/client/services.js +66 -69
- 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/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 +10 -0
- 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 +4 -5
- 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 +0 -5
- 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 +4 -3
- 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 +7 -16
- package/src/proto/dxos/agent/dashboard.proto +2 -3
- package/src/proto/dxos/bot.proto +1 -2
- package/src/proto/dxos/client/logging.proto +0 -3
- package/src/proto/dxos/client/services.proto +144 -10
- package/src/proto/dxos/config.proto +10 -10
- package/src/proto/dxos/echo/metadata.proto +14 -10
- package/src/proto/dxos/echo/object.proto +2 -4
- package/src/proto/dxos/halo/credentials.proto +0 -2
- package/src/proto/dxos/halo/invitations.proto +3 -3
- package/src/proto/dxos/halo/keys.proto +12 -0
- package/src/proto/dxos/halo/signed.proto +6 -10
- package/src/proto/dxos/mesh/presence.proto +1 -3
- package/src/proto/dxos/mesh/teleport/gossip.proto +1 -3
- package/src/proto/gen/dxos/client/services.ts +184 -187
- package/src/proto/gen/dxos/devtools/host.ts +31 -31
- 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 +9 -0
- package/src/proto/gen/dxos/halo/signed.ts +3 -5
- package/src/proto/gen/dxos/mesh/teleport/gossip.ts +1 -1
- package/src/proto/gen/google/protobuf.ts +0 -5
- package/src/proto/gen/index.ts +5 -4
- package/src/proto/dxos/client/invitation.proto +0 -171
- package/src/proto/dxos/field_options.proto +0 -11
|
@@ -62,191 +62,6 @@ import * as dxos_value from "../value";
|
|
|
62
62
|
import * as example_testing_data from "../../example/testing/data";
|
|
63
63
|
import * as example_testing_rpc from "../../example/testing/rpc";
|
|
64
64
|
import * as google_protobuf from "../../google/protobuf";
|
|
65
|
-
/**
|
|
66
|
-
* Defined in:
|
|
67
|
-
* {@link file://./../../../dxos/client/invitation.proto}
|
|
68
|
-
*/
|
|
69
|
-
export interface AdmissionKeypair {
|
|
70
|
-
publicKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
71
|
-
/**
|
|
72
|
-
* Options:
|
|
73
|
-
* - proto3_optional = true
|
|
74
|
-
*/
|
|
75
|
-
privateKey?: ReturnType<(typeof substitutions)["dxos.keys.PrivateKey"]["decode"]>;
|
|
76
|
-
}
|
|
77
|
-
/**
|
|
78
|
-
* Runtime state of the space object.
|
|
79
|
-
*
|
|
80
|
-
* Defined in:
|
|
81
|
-
* {@link file://./../../../dxos/client/invitation.proto}
|
|
82
|
-
*/
|
|
83
|
-
export enum SpaceState {
|
|
84
|
-
INVALID = 0,
|
|
85
|
-
SPACE_INACTIVE = 2,
|
|
86
|
-
SPACE_ACTIVE = 6,
|
|
87
|
-
SPACE_CLOSED = 1,
|
|
88
|
-
SPACE_CONTROL_ONLY = 7,
|
|
89
|
-
SPACE_INITIALIZING = 4,
|
|
90
|
-
SPACE_READY = 3,
|
|
91
|
-
SPACE_ERROR = 5,
|
|
92
|
-
SPACE_REQUIRES_MIGRATION = 8
|
|
93
|
-
}
|
|
94
|
-
/**
|
|
95
|
-
* Represents the invitation state passed between client and service.
|
|
96
|
-
*
|
|
97
|
-
* Defined in:
|
|
98
|
-
* {@link file://./../../../dxos/client/invitation.proto}
|
|
99
|
-
*/
|
|
100
|
-
export interface Invitation {
|
|
101
|
-
/**
|
|
102
|
-
* Local identifier (random).
|
|
103
|
-
*/
|
|
104
|
-
invitationId: string;
|
|
105
|
-
/**
|
|
106
|
-
* Determines the behavior of the invitation.
|
|
107
|
-
*/
|
|
108
|
-
type: Invitation.Type;
|
|
109
|
-
/**
|
|
110
|
-
* Kind of access the invitation will grant.
|
|
111
|
-
*/
|
|
112
|
-
kind: Invitation.Kind;
|
|
113
|
-
/**
|
|
114
|
-
* How the invitation is authenticated.
|
|
115
|
-
*/
|
|
116
|
-
authMethod: Invitation.AuthMethod;
|
|
117
|
-
/**
|
|
118
|
-
* Swarm rendezvous (random).
|
|
119
|
-
*/
|
|
120
|
-
swarmKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
121
|
-
/**
|
|
122
|
-
* Local state.
|
|
123
|
-
*/
|
|
124
|
-
state: Invitation.State;
|
|
125
|
-
/**
|
|
126
|
-
* Timeout for guest to complete invitation once connected (ms).
|
|
127
|
-
*
|
|
128
|
-
* Options:
|
|
129
|
-
* - proto3_optional = true
|
|
130
|
-
*/
|
|
131
|
-
timeout?: number;
|
|
132
|
-
/**
|
|
133
|
-
* Guest's identity.
|
|
134
|
-
*
|
|
135
|
-
* Options:
|
|
136
|
-
* - proto3_optional = true
|
|
137
|
-
*/
|
|
138
|
-
identityKey?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
139
|
-
/**
|
|
140
|
-
* Space to join (only present if kind is SPACE).
|
|
141
|
-
*
|
|
142
|
-
* Options:
|
|
143
|
-
* - proto3_optional = true
|
|
144
|
-
*/
|
|
145
|
-
spaceKey?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
146
|
-
/**
|
|
147
|
-
* Authentication code created by host (only present if auth_method is SHARED_SECRET).
|
|
148
|
-
*
|
|
149
|
-
* Options:
|
|
150
|
-
* - proto3_optional = true
|
|
151
|
-
*/
|
|
152
|
-
authCode?: string;
|
|
153
|
-
/**
|
|
154
|
-
* Path or identifier to navigate to after successful authentication.
|
|
155
|
-
*
|
|
156
|
-
* Options:
|
|
157
|
-
* - proto3_optional = true
|
|
158
|
-
*/
|
|
159
|
-
target?: string;
|
|
160
|
-
/**
|
|
161
|
-
* Host should resume invitation on startup until timeout.
|
|
162
|
-
*
|
|
163
|
-
* Options:
|
|
164
|
-
* - proto3_optional = true
|
|
165
|
-
*/
|
|
166
|
-
persistent?: boolean;
|
|
167
|
-
/**
|
|
168
|
-
* Options:
|
|
169
|
-
* - proto3_optional = true
|
|
170
|
-
*/
|
|
171
|
-
created?: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
172
|
-
/**
|
|
173
|
-
* Options:
|
|
174
|
-
* - proto3_optional = true
|
|
175
|
-
*/
|
|
176
|
-
lifetime?: number;
|
|
177
|
-
/**
|
|
178
|
-
* Whether an invitation can be used multiple times.
|
|
179
|
-
*
|
|
180
|
-
* Options:
|
|
181
|
-
* - proto3_optional = true
|
|
182
|
-
*/
|
|
183
|
-
multiUse?: boolean;
|
|
184
|
-
/**
|
|
185
|
-
* Guest's keypair required for AuthMethod.KNOWN_PUBLIC_KEY.
|
|
186
|
-
*
|
|
187
|
-
* Options:
|
|
188
|
-
* - proto3_optional = true
|
|
189
|
-
*/
|
|
190
|
-
guestKeypair?: AdmissionKeypair;
|
|
191
|
-
/**
|
|
192
|
-
* Present on Type.DELEGATED invitations.
|
|
193
|
-
*
|
|
194
|
-
* Options:
|
|
195
|
-
* - proto3_optional = true
|
|
196
|
-
*/
|
|
197
|
-
delegationCredentialId?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
198
|
-
/**
|
|
199
|
-
* Role of the admitted member, defaults to ADMIN.
|
|
200
|
-
*
|
|
201
|
-
* Options:
|
|
202
|
-
* - proto3_optional = true
|
|
203
|
-
*/
|
|
204
|
-
role?: dxos_halo_credentials.SpaceMember.Role;
|
|
205
|
-
}
|
|
206
|
-
export namespace Invitation {
|
|
207
|
-
/**
|
|
208
|
-
* Defined in:
|
|
209
|
-
* {@link file://./../../../dxos/client/invitation.proto}
|
|
210
|
-
*/
|
|
211
|
-
export enum Type {
|
|
212
|
-
INTERACTIVE = 0,
|
|
213
|
-
DELEGATED = 1,
|
|
214
|
-
MULTIUSE = 2
|
|
215
|
-
}
|
|
216
|
-
/**
|
|
217
|
-
* Defined in:
|
|
218
|
-
* {@link file://./../../../dxos/client/invitation.proto}
|
|
219
|
-
*/
|
|
220
|
-
export enum Kind {
|
|
221
|
-
DEVICE = 0,
|
|
222
|
-
SPACE = 1
|
|
223
|
-
}
|
|
224
|
-
/**
|
|
225
|
-
* Defined in:
|
|
226
|
-
* {@link file://./../../../dxos/client/invitation.proto}
|
|
227
|
-
*/
|
|
228
|
-
export enum AuthMethod {
|
|
229
|
-
NONE = 0,
|
|
230
|
-
SHARED_SECRET = 1,
|
|
231
|
-
KNOWN_PUBLIC_KEY = 2
|
|
232
|
-
}
|
|
233
|
-
/**
|
|
234
|
-
* Defined in:
|
|
235
|
-
* {@link file://./../../../dxos/client/invitation.proto}
|
|
236
|
-
*/
|
|
237
|
-
export enum State {
|
|
238
|
-
INIT = 0,
|
|
239
|
-
CONNECTING = 1,
|
|
240
|
-
CONNECTED = 2,
|
|
241
|
-
READY_FOR_AUTHENTICATION = 3,
|
|
242
|
-
AUTHENTICATING = 4,
|
|
243
|
-
SUCCESS = 5,
|
|
244
|
-
CANCELLED = 6,
|
|
245
|
-
TIMEOUT = 7,
|
|
246
|
-
ERROR = 8,
|
|
247
|
-
EXPIRED = 9
|
|
248
|
-
}
|
|
249
|
-
}
|
|
250
65
|
/**
|
|
251
66
|
* Defined in:
|
|
252
67
|
* {@link file://./../../../dxos/client/logging.proto}
|
|
@@ -329,7 +144,6 @@ export interface QueryMetricsResponse {
|
|
|
329
144
|
* {@link file://./../../../dxos/client/logging.proto}
|
|
330
145
|
*/
|
|
331
146
|
export enum LogLevel {
|
|
332
|
-
NONE = 0,
|
|
333
147
|
TRACE = 5,
|
|
334
148
|
DEBUG = 10,
|
|
335
149
|
INFO = 11,
|
|
@@ -354,7 +168,6 @@ export namespace QueryLogsRequest {
|
|
|
354
168
|
* {@link file://./../../../dxos/client/logging.proto}
|
|
355
169
|
*/
|
|
356
170
|
export enum MatchingOptions {
|
|
357
|
-
NONE = 0,
|
|
358
171
|
INCLUSIVE = 1,
|
|
359
172
|
EXPLICIT = 2
|
|
360
173
|
}
|
|
@@ -747,6 +560,22 @@ export namespace SpaceMember {
|
|
|
747
560
|
ONLINE = 1
|
|
748
561
|
}
|
|
749
562
|
}
|
|
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
|
+
}
|
|
750
579
|
/**
|
|
751
580
|
* Defined in:
|
|
752
581
|
* {@link file://./../../../dxos/client/services.proto}
|
|
@@ -1100,6 +929,174 @@ export interface SpacesService {
|
|
|
1100
929
|
queryCredentials: (request: QueryCredentialsRequest, options?: RequestOptions) => Stream<dxos_halo_credentials.Credential>;
|
|
1101
930
|
createEpoch: (request: CreateEpochRequest, options?: RequestOptions) => Promise<CreateEpochResponse>;
|
|
1102
931
|
}
|
|
932
|
+
/**
|
|
933
|
+
* Represents the invitation state passed between client and service.
|
|
934
|
+
*
|
|
935
|
+
* Defined in:
|
|
936
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
937
|
+
*/
|
|
938
|
+
export interface Invitation {
|
|
939
|
+
/**
|
|
940
|
+
* Local identifier (random).
|
|
941
|
+
*/
|
|
942
|
+
invitationId: string;
|
|
943
|
+
/**
|
|
944
|
+
* Determines the behavior of the invitation.
|
|
945
|
+
*/
|
|
946
|
+
type: Invitation.Type;
|
|
947
|
+
/**
|
|
948
|
+
* Kind of access the invitation will grant.
|
|
949
|
+
*/
|
|
950
|
+
kind: Invitation.Kind;
|
|
951
|
+
/**
|
|
952
|
+
* How the invitation is authenticated.
|
|
953
|
+
*/
|
|
954
|
+
authMethod: Invitation.AuthMethod;
|
|
955
|
+
/**
|
|
956
|
+
* Swarm rendezvous (random).
|
|
957
|
+
*/
|
|
958
|
+
swarmKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
959
|
+
/**
|
|
960
|
+
* Local state.
|
|
961
|
+
*/
|
|
962
|
+
state: Invitation.State;
|
|
963
|
+
/**
|
|
964
|
+
* Timeout for guest to complete invitation once connected (ms).
|
|
965
|
+
*
|
|
966
|
+
* Options:
|
|
967
|
+
* - proto3_optional = true
|
|
968
|
+
*/
|
|
969
|
+
timeout?: number;
|
|
970
|
+
/**
|
|
971
|
+
* Guest's identity.
|
|
972
|
+
*
|
|
973
|
+
* Options:
|
|
974
|
+
* - proto3_optional = true
|
|
975
|
+
*/
|
|
976
|
+
identityKey?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
977
|
+
/**
|
|
978
|
+
* Space to join (only present if kind is SPACE).
|
|
979
|
+
*
|
|
980
|
+
* Options:
|
|
981
|
+
* - proto3_optional = true
|
|
982
|
+
*/
|
|
983
|
+
spaceKey?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
984
|
+
/**
|
|
985
|
+
* Authentication code created by host (only present if auth_method is SHARED_SECRET).
|
|
986
|
+
*
|
|
987
|
+
* Options:
|
|
988
|
+
* - proto3_optional = true
|
|
989
|
+
*/
|
|
990
|
+
authCode?: string;
|
|
991
|
+
/**
|
|
992
|
+
* Path or identifier to navigate to after successful authentication.
|
|
993
|
+
*
|
|
994
|
+
* Options:
|
|
995
|
+
* - proto3_optional = true
|
|
996
|
+
*/
|
|
997
|
+
target?: string;
|
|
998
|
+
/**
|
|
999
|
+
* Host should resume invitation on startup until timeout.
|
|
1000
|
+
*
|
|
1001
|
+
* Options:
|
|
1002
|
+
* - proto3_optional = true
|
|
1003
|
+
*/
|
|
1004
|
+
persistent?: boolean;
|
|
1005
|
+
/**
|
|
1006
|
+
* Options:
|
|
1007
|
+
* - proto3_optional = true
|
|
1008
|
+
*/
|
|
1009
|
+
created?: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
1010
|
+
/**
|
|
1011
|
+
* Options:
|
|
1012
|
+
* - proto3_optional = true
|
|
1013
|
+
*/
|
|
1014
|
+
lifetime?: number;
|
|
1015
|
+
/**
|
|
1016
|
+
* Whether an invitation can be used multiple times.
|
|
1017
|
+
*
|
|
1018
|
+
* Options:
|
|
1019
|
+
* - proto3_optional = true
|
|
1020
|
+
*/
|
|
1021
|
+
multiUse?: boolean;
|
|
1022
|
+
/**
|
|
1023
|
+
* Guest's keypair required for AuthMethod.KNOWN_PUBLIC_KEY.
|
|
1024
|
+
*
|
|
1025
|
+
* Options:
|
|
1026
|
+
* - proto3_optional = true
|
|
1027
|
+
*/
|
|
1028
|
+
guestKeypair?: AdmissionKeypair;
|
|
1029
|
+
/**
|
|
1030
|
+
* Present on Type.DELEGATED invitations.
|
|
1031
|
+
*
|
|
1032
|
+
* Options:
|
|
1033
|
+
* - proto3_optional = true
|
|
1034
|
+
*/
|
|
1035
|
+
delegationCredentialId?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
1036
|
+
/**
|
|
1037
|
+
* Role of the admitted member, defaults to ADMIN.
|
|
1038
|
+
*
|
|
1039
|
+
* Options:
|
|
1040
|
+
* - proto3_optional = true
|
|
1041
|
+
*/
|
|
1042
|
+
role?: dxos_halo_credentials.SpaceMember.Role;
|
|
1043
|
+
}
|
|
1044
|
+
export namespace Invitation {
|
|
1045
|
+
/**
|
|
1046
|
+
* Defined in:
|
|
1047
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
1048
|
+
*/
|
|
1049
|
+
export enum Type {
|
|
1050
|
+
INTERACTIVE = 0,
|
|
1051
|
+
DELEGATED = 1,
|
|
1052
|
+
MULTIUSE = 2
|
|
1053
|
+
}
|
|
1054
|
+
/**
|
|
1055
|
+
* Defined in:
|
|
1056
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
1057
|
+
*/
|
|
1058
|
+
export enum Kind {
|
|
1059
|
+
DEVICE = 0,
|
|
1060
|
+
SPACE = 1
|
|
1061
|
+
}
|
|
1062
|
+
/**
|
|
1063
|
+
* Defined in:
|
|
1064
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
1065
|
+
*/
|
|
1066
|
+
export enum AuthMethod {
|
|
1067
|
+
NONE = 0,
|
|
1068
|
+
SHARED_SECRET = 1,
|
|
1069
|
+
KNOWN_PUBLIC_KEY = 2
|
|
1070
|
+
}
|
|
1071
|
+
/**
|
|
1072
|
+
* Defined in:
|
|
1073
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
1074
|
+
*/
|
|
1075
|
+
export enum State {
|
|
1076
|
+
INIT = 0,
|
|
1077
|
+
CONNECTING = 1,
|
|
1078
|
+
CONNECTED = 2,
|
|
1079
|
+
READY_FOR_AUTHENTICATION = 3,
|
|
1080
|
+
AUTHENTICATING = 4,
|
|
1081
|
+
SUCCESS = 5,
|
|
1082
|
+
CANCELLED = 6,
|
|
1083
|
+
TIMEOUT = 7,
|
|
1084
|
+
ERROR = 8,
|
|
1085
|
+
EXPIRED = 9
|
|
1086
|
+
}
|
|
1087
|
+
}
|
|
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
|
+
}
|
|
1103
1100
|
/**
|
|
1104
1101
|
* Defined in:
|
|
1105
1102
|
* {@link file://./../../../dxos/client/services.proto}
|
|
@@ -62,6 +62,37 @@ import * as dxos_value from "../value";
|
|
|
62
62
|
import * as example_testing_data from "../../example/testing/data";
|
|
63
63
|
import * as example_testing_rpc from "../../example/testing/rpc";
|
|
64
64
|
import * as google_protobuf from "../../google/protobuf";
|
|
65
|
+
/**
|
|
66
|
+
* Defined in:
|
|
67
|
+
* {@link file://./../../../dxos/devtools/diagnostics.proto}
|
|
68
|
+
*/
|
|
69
|
+
export interface Services {
|
|
70
|
+
spaces?: SpaceStats[];
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Defined in:
|
|
74
|
+
* {@link file://./../../../dxos/devtools/diagnostics.proto}
|
|
75
|
+
*/
|
|
76
|
+
export interface SpaceStats {
|
|
77
|
+
key: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
78
|
+
peers?: PeerStats[];
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Defined in:
|
|
82
|
+
* {@link file://./../../../dxos/devtools/diagnostics.proto}
|
|
83
|
+
*/
|
|
84
|
+
export interface PeerStats {
|
|
85
|
+
controlFeed: FeedStats;
|
|
86
|
+
dataFeed: FeedStats;
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Defined in:
|
|
90
|
+
* {@link file://./../../../dxos/devtools/diagnostics.proto}
|
|
91
|
+
*/
|
|
92
|
+
export interface FeedStats {
|
|
93
|
+
key: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
94
|
+
length: number;
|
|
95
|
+
}
|
|
65
96
|
/**
|
|
66
97
|
* Defined in:
|
|
67
98
|
* {@link file://./../../../dxos/devtools/host.proto}
|
|
@@ -484,34 +515,3 @@ export interface SubscribeToSwarmInfoRequest {
|
|
|
484
515
|
export interface SubscribeToSwarmInfoResponse {
|
|
485
516
|
data?: dxos_devtools_swarm.SwarmInfo[];
|
|
486
517
|
}
|
|
487
|
-
/**
|
|
488
|
-
* Defined in:
|
|
489
|
-
* {@link file://./../../../dxos/devtools/diagnostics.proto}
|
|
490
|
-
*/
|
|
491
|
-
export interface Services {
|
|
492
|
-
spaces?: SpaceStats[];
|
|
493
|
-
}
|
|
494
|
-
/**
|
|
495
|
-
* Defined in:
|
|
496
|
-
* {@link file://./../../../dxos/devtools/diagnostics.proto}
|
|
497
|
-
*/
|
|
498
|
-
export interface SpaceStats {
|
|
499
|
-
key: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
500
|
-
peers?: PeerStats[];
|
|
501
|
-
}
|
|
502
|
-
/**
|
|
503
|
-
* Defined in:
|
|
504
|
-
* {@link file://./../../../dxos/devtools/diagnostics.proto}
|
|
505
|
-
*/
|
|
506
|
-
export interface PeerStats {
|
|
507
|
-
controlFeed: FeedStats;
|
|
508
|
-
dataFeed: FeedStats;
|
|
509
|
-
}
|
|
510
|
-
/**
|
|
511
|
-
* Defined in:
|
|
512
|
-
* {@link file://./../../../dxos/devtools/diagnostics.proto}
|
|
513
|
-
*/
|
|
514
|
-
export interface FeedStats {
|
|
515
|
-
key: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
516
|
-
length: number;
|
|
517
|
-
}
|
|
@@ -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 inceremnted 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 wriatable 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 wriatable 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
|
-
* -
|
|
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
|
-
* -
|
|
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 Options {
|
|
70
70
|
/**
|
|
71
71
|
* Role of the peer.
|
|
72
72
|
*/
|
|
73
|
-
role:
|
|
73
|
+
role: Options.Role;
|
|
74
74
|
}
|
|
75
|
-
export namespace
|
|
75
|
+
export namespace Options {
|
|
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: Options, options?: RequestOptions) => Promise<void>;
|
|
285
285
|
/**
|
|
286
286
|
* Introduce guest to the host. Only on the host.
|
|
287
287
|
*/
|
|
@@ -138,3 +138,12 @@ 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,10 +66,8 @@ 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
|
-
|
|
71
|
-
message: SignedMessage;
|
|
72
|
-
parents?: KeyChain[];
|
|
69
|
+
export interface Message {
|
|
70
|
+
payload: ReturnType<(typeof substitutions)["google.protobuf.Any"]["decode"]>;
|
|
73
71
|
}
|
|
74
72
|
/**
|
|
75
73
|
* A generic container message used whenever messages are signed (e.g. SpaceCredential)
|
|
@@ -122,6 +120,6 @@ export namespace SignedMessage {
|
|
|
122
120
|
* Options:
|
|
123
121
|
* - proto3_optional = true
|
|
124
122
|
*/
|
|
125
|
-
keyChain?: KeyChain;
|
|
123
|
+
keyChain?: dxos_halo_keys.KeyChain;
|
|
126
124
|
}
|
|
127
125
|
}
|
|
@@ -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 differnt payload types to correct listeners.
|
|
73
73
|
*/
|
|
74
74
|
channelId: string;
|
|
75
75
|
/**
|
|
@@ -262,11 +262,6 @@ 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;
|
|
270
265
|
}
|
|
271
266
|
export namespace FieldOptions {
|
|
272
267
|
export enum CType {
|