@dxos/protocols 0.3.11-main.fbbdc2a → 0.3.11-main.fc97a54
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/errors/base-errors.d.ts.map +1 -1
- package/dist/cjs/src/errors/base-errors.js.map +1 -1
- package/dist/cjs/src/errors/errors.d.ts +3 -0
- package/dist/cjs/src/errors/errors.d.ts.map +1 -1
- package/dist/cjs/src/errors/errors.js +8 -1
- package/dist/cjs/src/errors/errors.js.map +1 -1
- package/dist/cjs/src/proto/gen/dxos/agent/echoproxy.d.ts +1 -1
- package/dist/cjs/src/proto/gen/dxos/agent/echoproxy.d.ts.map +1 -1
- package/dist/cjs/src/proto/gen/dxos/client/services.d.ts +90 -1
- package/dist/cjs/src/proto/gen/dxos/client/services.d.ts.map +1 -1
- package/dist/cjs/src/proto/gen/dxos/client/services.js +14 -1
- package/dist/cjs/src/proto/gen/dxos/client/services.js.map +1 -1
- package/dist/cjs/src/proto/gen/dxos/config.d.ts +21 -0
- 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/iframe.d.ts +30 -2
- package/dist/cjs/src/proto/gen/dxos/iframe.d.ts.map +1 -1
- package/dist/cjs/src/proto/gen/dxos/iframe.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 +5 -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/errors/base-errors.d.ts.map +1 -1
- package/dist/esm/src/errors/base-errors.js.map +1 -1
- package/dist/esm/src/errors/errors.d.ts +3 -0
- package/dist/esm/src/errors/errors.d.ts.map +1 -1
- package/dist/esm/src/errors/errors.js +6 -0
- package/dist/esm/src/errors/errors.js.map +1 -1
- package/dist/esm/src/proto/gen/dxos/agent/echoproxy.d.ts +1 -1
- package/dist/esm/src/proto/gen/dxos/agent/echoproxy.d.ts.map +1 -1
- package/dist/esm/src/proto/gen/dxos/client/services.d.ts +90 -1
- package/dist/esm/src/proto/gen/dxos/client/services.d.ts.map +1 -1
- package/dist/esm/src/proto/gen/dxos/client/services.js +13 -0
- package/dist/esm/src/proto/gen/dxos/client/services.js.map +1 -1
- package/dist/esm/src/proto/gen/dxos/config.d.ts +21 -0
- 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/iframe.d.ts +30 -2
- package/dist/esm/src/proto/gen/dxos/iframe.d.ts.map +1 -1
- package/dist/esm/src/proto/gen/dxos/iframe.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 +5 -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/errors/base-errors.ts +5 -1
- package/src/errors/errors.ts +8 -0
- package/src/proto/dxos/agent/echo-proxy.proto +1 -1
- package/src/proto/dxos/agent/query.proto +0 -1
- package/src/proto/dxos/client/services.proto +36 -1
- package/src/proto/dxos/config.proto +7 -0
- package/src/proto/dxos/iframe.proto +18 -2
- package/src/proto/gen/dxos/agent/echoproxy.ts +1 -1
- package/src/proto/gen/dxos/client/services.ts +89 -1
- package/src/proto/gen/dxos/config.ts +21 -0
- package/src/proto/gen/dxos/iframe.ts +30 -2
- package/src/proto/gen/google/protobuf.ts +4 -4
- package/src/proto/gen/index.ts +6 -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;AA6DhE,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;AA6DhE,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAohB7C,MAAM,CAAC,MAAM,UAAU,GAAG,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,oimGAAoimG,CAAC,CAAC,CAAC;AAC7lmG,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.3.11-main.
|
|
3
|
+
"version": "0.3.11-main.fc97a54",
|
|
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/
|
|
37
|
-
"@dxos/
|
|
38
|
-
"@dxos/keys": "0.3.11-main.
|
|
39
|
-
"@dxos/timeframe": "0.3.11-main.
|
|
36
|
+
"@dxos/codec-protobuf": "0.3.11-main.fc97a54",
|
|
37
|
+
"@dxos/invariant": "0.3.11-main.fc97a54",
|
|
38
|
+
"@dxos/keys": "0.3.11-main.fc97a54",
|
|
39
|
+
"@dxos/timeframe": "0.3.11-main.fc97a54"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"glob": "~7.1.6"
|
|
@@ -7,7 +7,11 @@
|
|
|
7
7
|
* Errors can optionally include a JSON context object.
|
|
8
8
|
*/
|
|
9
9
|
export class BaseError extends Error {
|
|
10
|
-
constructor(
|
|
10
|
+
constructor(
|
|
11
|
+
readonly code: string,
|
|
12
|
+
message?: string,
|
|
13
|
+
readonly context?: Record<string, any>,
|
|
14
|
+
) {
|
|
11
15
|
super(message ?? code);
|
|
12
16
|
this.name = code;
|
|
13
17
|
// NOTE: Restores prototype chain (https://stackoverflow.com/a/48342359).
|
package/src/errors/errors.ts
CHANGED
|
@@ -100,6 +100,14 @@ export class InvalidInvitationError extends DatabaseError {
|
|
|
100
100
|
|
|
101
101
|
registerErrorMessageContext('INVALID_INVITATION', InvalidInvitationError);
|
|
102
102
|
|
|
103
|
+
export class AlreadyJoinedError extends DatabaseError {
|
|
104
|
+
constructor(message?: string, context?: Record<string, any>) {
|
|
105
|
+
super('ALREADY_JOINED', message, context);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
registerErrorMessageContext('ALREADY_JOINED', AlreadyJoinedError);
|
|
110
|
+
|
|
103
111
|
export class ConnectionResetError extends BaseError {
|
|
104
112
|
constructor(message?: string, context?: any) {
|
|
105
113
|
super('CONNECTION_RESET', message, context);
|
|
@@ -19,6 +19,7 @@ import "dxos/mesh/signal.proto";
|
|
|
19
19
|
import "dxos/mesh/teleport/gossip.proto";
|
|
20
20
|
import "dxos/mesh/presence.proto";
|
|
21
21
|
import "dxos/value.proto";
|
|
22
|
+
import "dxos/devtools/swarm.proto";
|
|
22
23
|
|
|
23
24
|
// TODO(burdon): Reorganize packages (e.g., client.services, echo.database).
|
|
24
25
|
|
|
@@ -63,6 +64,28 @@ message GetDiagnosticsResponse {
|
|
|
63
64
|
google.protobuf.Struct diagnostics = 2;
|
|
64
65
|
}
|
|
65
66
|
|
|
67
|
+
message Platform {
|
|
68
|
+
enum PLATFORM_TYPE {
|
|
69
|
+
BROWSER = 0;
|
|
70
|
+
SHARED_WORKER = 1;
|
|
71
|
+
NODE = 2;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
PLATFORM_TYPE type = 1;
|
|
75
|
+
/// The User-Agent string from a browser
|
|
76
|
+
optional string user_agent = 2;
|
|
77
|
+
/// e.g process.platform from node, e.g. 'darwin', 'linux', 'win32'
|
|
78
|
+
optional string platform = 3;
|
|
79
|
+
/// the Node.JS arch string, e.g. 'arm64', 'x64'
|
|
80
|
+
optional string arch = 4;
|
|
81
|
+
/// the node.js version string
|
|
82
|
+
optional string runtime = 5;
|
|
83
|
+
// TODO(nf): uint64? :)
|
|
84
|
+
/// the number of seconds the client has been up
|
|
85
|
+
optional uint32 uptime = 6;
|
|
86
|
+
/// e.g. NodeJS.MemoryUsage, subject to change
|
|
87
|
+
optional google.protobuf.Struct memory = 7;
|
|
88
|
+
}
|
|
66
89
|
//
|
|
67
90
|
// System
|
|
68
91
|
//
|
|
@@ -82,6 +105,9 @@ service SystemService {
|
|
|
82
105
|
|
|
83
106
|
/// Reset the client.
|
|
84
107
|
rpc Reset(google.protobuf.Empty) returns (google.protobuf.Empty);
|
|
108
|
+
|
|
109
|
+
/// Get platform Information
|
|
110
|
+
rpc GetPlatform(google.protobuf.Empty) returns (Platform);
|
|
85
111
|
}
|
|
86
112
|
|
|
87
113
|
//
|
|
@@ -107,9 +133,14 @@ message SignPresentationRequest {
|
|
|
107
133
|
optional bytes nonce = 2;
|
|
108
134
|
}
|
|
109
135
|
|
|
136
|
+
message CreateIdentityRequest {
|
|
137
|
+
optional halo.credentials.ProfileDocument profile = 1;
|
|
138
|
+
optional bool use_automerge = 2;
|
|
139
|
+
}
|
|
140
|
+
|
|
110
141
|
// TODO(wittjosiah): Align pluralization with other services.
|
|
111
142
|
service IdentityService {
|
|
112
|
-
rpc CreateIdentity(
|
|
143
|
+
rpc CreateIdentity(CreateIdentityRequest) returns (Identity);
|
|
113
144
|
rpc RecoverIdentity(RecoverIdentityRequest) returns (Identity);
|
|
114
145
|
rpc QueryIdentity(google.protobuf.Empty) returns (stream QueryIdentityResponse);
|
|
115
146
|
rpc UpdateProfile(halo.credentials.ProfileDocument) returns (Identity);
|
|
@@ -407,6 +438,9 @@ message Invitation {
|
|
|
407
438
|
|
|
408
439
|
/// Authentication code created by host (only present if auth_method is SHARED_SECRET).
|
|
409
440
|
optional string auth_code = 10;
|
|
441
|
+
|
|
442
|
+
/// Path or identifier to navigate to after successful authentication.
|
|
443
|
+
optional string target = 11;
|
|
410
444
|
}
|
|
411
445
|
|
|
412
446
|
message AuthenticationRequest {
|
|
@@ -468,6 +502,7 @@ message NetworkStatus {
|
|
|
468
502
|
|
|
469
503
|
ConnectionState swarm = 1;
|
|
470
504
|
repeated Signal signaling = 2;
|
|
505
|
+
repeated dxos.devtools.swarm.SwarmInfo connection_info = 3;
|
|
471
506
|
}
|
|
472
507
|
|
|
473
508
|
message UpdateConfigRequest {
|
|
@@ -367,6 +367,12 @@ message Runtime {
|
|
|
367
367
|
optional string username = 2;
|
|
368
368
|
optional string password = 3;
|
|
369
369
|
}
|
|
370
|
+
// TODO(nf): Set API version, authentication scheme, etc.
|
|
371
|
+
message AgentHosting {
|
|
372
|
+
// TODO(nf): read enum from yml?
|
|
373
|
+
optional string server = 1;
|
|
374
|
+
optional string type = 2;
|
|
375
|
+
}
|
|
370
376
|
|
|
371
377
|
optional Kube kube = 1;
|
|
372
378
|
optional AppServer app = 2;
|
|
@@ -380,6 +386,7 @@ message Runtime {
|
|
|
380
386
|
optional Supervisor supervisor = 10; // TODO(burdon): Promote to 1; start others at 10.
|
|
381
387
|
optional Tunneling tunneling = 11;
|
|
382
388
|
optional Faasd faasd = 12;
|
|
389
|
+
optional AgentHosting agent_hosting = 13;
|
|
383
390
|
}
|
|
384
391
|
|
|
385
392
|
message Keys {
|
|
@@ -29,11 +29,19 @@ enum ShellDisplay {
|
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
message AppContextRequest {
|
|
32
|
-
/// The display mode that shell should use
|
|
32
|
+
/// The display mode that shell should use.
|
|
33
33
|
optional ShellDisplay display = 1;
|
|
34
34
|
|
|
35
|
-
/// The key of the joined space
|
|
35
|
+
/// The key of the joined space.
|
|
36
36
|
optional dxos.keys.PublicKey space_key = 2;
|
|
37
|
+
|
|
38
|
+
/// Target to redirect to after a successful invitation.
|
|
39
|
+
optional string target = 3;
|
|
40
|
+
|
|
41
|
+
/// Reload the app.
|
|
42
|
+
/// Shell cannot reload the app from within an iframe.
|
|
43
|
+
/// Used after sign out/identity reset.
|
|
44
|
+
optional bool reload = 4;
|
|
37
45
|
}
|
|
38
46
|
|
|
39
47
|
/// App RPCs for the shell.
|
|
@@ -52,9 +60,17 @@ enum ShellLayout {
|
|
|
52
60
|
}
|
|
53
61
|
|
|
54
62
|
message LayoutRequest {
|
|
63
|
+
/// Determins which panel of the shell is opened.
|
|
55
64
|
ShellLayout layout = 1;
|
|
65
|
+
|
|
66
|
+
/// Invitation code to join a space.
|
|
56
67
|
optional string invitation_code = 2;
|
|
68
|
+
|
|
69
|
+
/// Key of the space to share.
|
|
57
70
|
optional dxos.keys.PublicKey space_key = 3;
|
|
71
|
+
|
|
72
|
+
/// Target to include in an invitation for redirecting after a successful invitation.
|
|
73
|
+
optional string target = 4;
|
|
58
74
|
}
|
|
59
75
|
|
|
60
76
|
/// Shell UI RPCs.
|
|
@@ -297,6 +297,66 @@ export interface GetDiagnosticsResponse {
|
|
|
297
297
|
timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
298
298
|
diagnostics: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
|
|
299
299
|
}
|
|
300
|
+
/**
|
|
301
|
+
* Defined in:
|
|
302
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
303
|
+
*/
|
|
304
|
+
export interface Platform {
|
|
305
|
+
type: Platform.PLATFORM_TYPE;
|
|
306
|
+
/**
|
|
307
|
+
* The User-Agent string from a browser
|
|
308
|
+
*
|
|
309
|
+
* Options:
|
|
310
|
+
* - proto3_optional = true
|
|
311
|
+
*/
|
|
312
|
+
userAgent?: string;
|
|
313
|
+
/**
|
|
314
|
+
* e.g process.platform from node, e.g. 'darwin', 'linux', 'win32'
|
|
315
|
+
*
|
|
316
|
+
* Options:
|
|
317
|
+
* - proto3_optional = true
|
|
318
|
+
*/
|
|
319
|
+
platform?: string;
|
|
320
|
+
/**
|
|
321
|
+
* the Node.JS arch string, e.g. 'arm64', 'x64'
|
|
322
|
+
*
|
|
323
|
+
* Options:
|
|
324
|
+
* - proto3_optional = true
|
|
325
|
+
*/
|
|
326
|
+
arch?: string;
|
|
327
|
+
/**
|
|
328
|
+
* the node.js version string
|
|
329
|
+
*
|
|
330
|
+
* Options:
|
|
331
|
+
* - proto3_optional = true
|
|
332
|
+
*/
|
|
333
|
+
runtime?: string;
|
|
334
|
+
/**
|
|
335
|
+
* the number of seconds the client has been up
|
|
336
|
+
*
|
|
337
|
+
* Options:
|
|
338
|
+
* - proto3_optional = true
|
|
339
|
+
*/
|
|
340
|
+
uptime?: number;
|
|
341
|
+
/**
|
|
342
|
+
* e.g. NodeJS.MemoryUsage, subject to change
|
|
343
|
+
*
|
|
344
|
+
* Options:
|
|
345
|
+
* - proto3_optional = true
|
|
346
|
+
*/
|
|
347
|
+
memory?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
|
|
348
|
+
}
|
|
349
|
+
export namespace Platform {
|
|
350
|
+
/**
|
|
351
|
+
* Defined in:
|
|
352
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
353
|
+
*/
|
|
354
|
+
export enum PLATFORM_TYPE {
|
|
355
|
+
BROWSER = 0,
|
|
356
|
+
SHARED_WORKER = 1,
|
|
357
|
+
NODE = 2
|
|
358
|
+
}
|
|
359
|
+
}
|
|
300
360
|
/**
|
|
301
361
|
* Defined in:
|
|
302
362
|
* {@link file://./../../../dxos/client/services.proto}
|
|
@@ -322,6 +382,10 @@ export interface SystemService {
|
|
|
322
382
|
* Reset the client.
|
|
323
383
|
*/
|
|
324
384
|
reset: (request: void, options?: RequestOptions) => Promise<void>;
|
|
385
|
+
/**
|
|
386
|
+
* Get platform Information
|
|
387
|
+
*/
|
|
388
|
+
getPlatform: (request: void, options?: RequestOptions) => Promise<Platform>;
|
|
325
389
|
}
|
|
326
390
|
/**
|
|
327
391
|
* Defined in:
|
|
@@ -370,12 +434,28 @@ export interface SignPresentationRequest {
|
|
|
370
434
|
*/
|
|
371
435
|
nonce?: Uint8Array;
|
|
372
436
|
}
|
|
437
|
+
/**
|
|
438
|
+
* Defined in:
|
|
439
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
440
|
+
*/
|
|
441
|
+
export interface CreateIdentityRequest {
|
|
442
|
+
/**
|
|
443
|
+
* Options:
|
|
444
|
+
* - proto3_optional = true
|
|
445
|
+
*/
|
|
446
|
+
profile?: dxos_halo_credentials.ProfileDocument;
|
|
447
|
+
/**
|
|
448
|
+
* Options:
|
|
449
|
+
* - proto3_optional = true
|
|
450
|
+
*/
|
|
451
|
+
useAutomerge?: boolean;
|
|
452
|
+
}
|
|
373
453
|
/**
|
|
374
454
|
* Defined in:
|
|
375
455
|
* {@link file://./../../../dxos/client/services.proto}
|
|
376
456
|
*/
|
|
377
457
|
export interface IdentityService {
|
|
378
|
-
createIdentity: (request:
|
|
458
|
+
createIdentity: (request: CreateIdentityRequest, options?: RequestOptions) => Promise<Identity>;
|
|
379
459
|
recoverIdentity: (request: RecoverIdentityRequest, options?: RequestOptions) => Promise<Identity>;
|
|
380
460
|
queryIdentity: (request: void, options?: RequestOptions) => Stream<QueryIdentityResponse>;
|
|
381
461
|
updateProfile: (request: dxos_halo_credentials.ProfileDocument, options?: RequestOptions) => Promise<Identity>;
|
|
@@ -798,6 +878,13 @@ export interface Invitation {
|
|
|
798
878
|
* - proto3_optional = true
|
|
799
879
|
*/
|
|
800
880
|
authCode?: string;
|
|
881
|
+
/**
|
|
882
|
+
* Path or identifier to navigate to after successful authentication.
|
|
883
|
+
*
|
|
884
|
+
* Options:
|
|
885
|
+
* - proto3_optional = true
|
|
886
|
+
*/
|
|
887
|
+
target?: string;
|
|
801
888
|
}
|
|
802
889
|
export namespace Invitation {
|
|
803
890
|
/**
|
|
@@ -917,6 +1004,7 @@ export enum ConnectionState {
|
|
|
917
1004
|
export interface NetworkStatus {
|
|
918
1005
|
swarm: ConnectionState;
|
|
919
1006
|
signaling?: NetworkStatus.Signal[];
|
|
1007
|
+
connectionInfo?: dxos_devtools_swarm.SwarmInfo[];
|
|
920
1008
|
}
|
|
921
1009
|
export namespace NetworkStatus {
|
|
922
1010
|
/**
|
|
@@ -757,6 +757,11 @@ export namespace Runtime {
|
|
|
757
757
|
* - proto3_optional = true
|
|
758
758
|
*/
|
|
759
759
|
faasd?: Runtime.Services.Faasd;
|
|
760
|
+
/**
|
|
761
|
+
* Options:
|
|
762
|
+
* - proto3_optional = true
|
|
763
|
+
*/
|
|
764
|
+
agentHosting?: Runtime.Services.AgentHosting;
|
|
760
765
|
}
|
|
761
766
|
export namespace Services {
|
|
762
767
|
/**
|
|
@@ -1006,6 +1011,22 @@ export namespace Runtime {
|
|
|
1006
1011
|
*/
|
|
1007
1012
|
password?: string;
|
|
1008
1013
|
}
|
|
1014
|
+
/**
|
|
1015
|
+
* Defined in:
|
|
1016
|
+
* {@link file://./../../dxos/config.proto}
|
|
1017
|
+
*/
|
|
1018
|
+
export interface AgentHosting {
|
|
1019
|
+
/**
|
|
1020
|
+
* Options:
|
|
1021
|
+
* - proto3_optional = true
|
|
1022
|
+
*/
|
|
1023
|
+
server?: string;
|
|
1024
|
+
/**
|
|
1025
|
+
* Options:
|
|
1026
|
+
* - proto3_optional = true
|
|
1027
|
+
*/
|
|
1028
|
+
type?: string;
|
|
1029
|
+
}
|
|
1009
1030
|
}
|
|
1010
1031
|
/**
|
|
1011
1032
|
* Defined in:
|
|
@@ -97,19 +97,33 @@ export enum ShellDisplay {
|
|
|
97
97
|
*/
|
|
98
98
|
export interface AppContextRequest {
|
|
99
99
|
/**
|
|
100
|
-
* The display mode that shell should use
|
|
100
|
+
* The display mode that shell should use.
|
|
101
101
|
*
|
|
102
102
|
* Options:
|
|
103
103
|
* - proto3_optional = true
|
|
104
104
|
*/
|
|
105
105
|
display?: ShellDisplay;
|
|
106
106
|
/**
|
|
107
|
-
* The key of the joined space
|
|
107
|
+
* The key of the joined space.
|
|
108
108
|
*
|
|
109
109
|
* Options:
|
|
110
110
|
* - proto3_optional = true
|
|
111
111
|
*/
|
|
112
112
|
spaceKey?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
113
|
+
/**
|
|
114
|
+
* Target to redirect to after a successful invitation.
|
|
115
|
+
*
|
|
116
|
+
* Options:
|
|
117
|
+
* - proto3_optional = true
|
|
118
|
+
*/
|
|
119
|
+
target?: string;
|
|
120
|
+
/**
|
|
121
|
+
* Used after sign out/identity reset.
|
|
122
|
+
*
|
|
123
|
+
* Options:
|
|
124
|
+
* - proto3_optional = true
|
|
125
|
+
*/
|
|
126
|
+
reload?: boolean;
|
|
113
127
|
}
|
|
114
128
|
/**
|
|
115
129
|
* App RPCs for the shell.
|
|
@@ -138,17 +152,31 @@ export enum ShellLayout {
|
|
|
138
152
|
* {@link file://./../../dxos/iframe.proto}
|
|
139
153
|
*/
|
|
140
154
|
export interface LayoutRequest {
|
|
155
|
+
/**
|
|
156
|
+
* Determins which panel of the shell is opened.
|
|
157
|
+
*/
|
|
141
158
|
layout: ShellLayout;
|
|
142
159
|
/**
|
|
160
|
+
* Invitation code to join a space.
|
|
161
|
+
*
|
|
143
162
|
* Options:
|
|
144
163
|
* - proto3_optional = true
|
|
145
164
|
*/
|
|
146
165
|
invitationCode?: string;
|
|
147
166
|
/**
|
|
167
|
+
* Key of the space to share.
|
|
168
|
+
*
|
|
148
169
|
* Options:
|
|
149
170
|
* - proto3_optional = true
|
|
150
171
|
*/
|
|
151
172
|
spaceKey?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
173
|
+
/**
|
|
174
|
+
* Target to include in an invitation for redirecting after a successful invitation.
|
|
175
|
+
*
|
|
176
|
+
* Options:
|
|
177
|
+
* - proto3_optional = true
|
|
178
|
+
*/
|
|
179
|
+
target?: string;
|
|
152
180
|
}
|
|
153
181
|
/**
|
|
154
182
|
* Shell UI RPCs.
|
|
@@ -78,14 +78,14 @@ export enum NullValue {
|
|
|
78
78
|
export interface ListValue {
|
|
79
79
|
values?: Value[];
|
|
80
80
|
}
|
|
81
|
-
export interface Timestamp {
|
|
82
|
-
seconds: string;
|
|
83
|
-
nanos: number;
|
|
84
|
-
}
|
|
85
81
|
export interface Any {
|
|
86
82
|
type_url: string;
|
|
87
83
|
value: Uint8Array;
|
|
88
84
|
}
|
|
85
|
+
export interface Timestamp {
|
|
86
|
+
seconds: string;
|
|
87
|
+
nanos: number;
|
|
88
|
+
}
|
|
89
89
|
export interface FileDescriptorSet {
|
|
90
90
|
file?: FileDescriptorProto[];
|
|
91
91
|
}
|