@dxos/protocols 0.1.58-main.e460f33 → 0.1.58-main.eedac7a
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/errors.js +3 -3
- package/dist/cjs/src/proto/gen/dxos/iframe.d.ts +5 -10
- package/dist/cjs/src/proto/gen/dxos/iframe.d.ts.map +1 -1
- package/dist/cjs/src/proto/gen/dxos/iframe.js +5 -3
- package/dist/cjs/src/proto/gen/dxos/iframe.js.map +1 -1
- package/dist/cjs/src/proto/gen/index.d.ts.map +1 -1
- package/dist/cjs/src/proto/gen/index.js +1 -1
- package/dist/cjs/src/proto/gen/index.js.map +1 -1
- package/dist/cjs/tsconfig.tsbuildinfo +1 -1
- package/dist/esm/src/errors/errors.js +3 -3
- package/dist/esm/src/proto/gen/dxos/iframe.d.ts +5 -10
- package/dist/esm/src/proto/gen/dxos/iframe.d.ts.map +1 -1
- package/dist/esm/src/proto/gen/dxos/iframe.js +5 -3
- package/dist/esm/src/proto/gen/dxos/iframe.js.map +1 -1
- package/dist/esm/src/proto/gen/index.d.ts.map +1 -1
- package/dist/esm/src/proto/gen/index.js +1 -1
- package/dist/esm/src/proto/gen/index.js.map +1 -1
- package/package.json +5 -5
- package/src/errors/errors.ts +3 -3
- package/src/proto/dxos/iframe.proto +6 -5
- package/src/proto/gen/dxos/iframe.ts +5 -10
- package/src/proto/gen/index.ts +1 -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;AAuDhE,OAAO,aAAa,MAAM,kBAAkB,CAAC;AA+e7C,MAAM,CAAC,MAAM,UAAU,GAAG,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/proto/gen/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAuDhE,OAAO,aAAa,MAAM,kBAAkB,CAAC;AA+e7C,MAAM,CAAC,MAAM,UAAU,GAAG,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,qm0FAAqm0F,CAAC,CAAC,CAAC;AAC9p0F,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.1.58-main.
|
|
3
|
+
"version": "0.1.58-main.eedac7a",
|
|
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.1.58-main.
|
|
39
|
-
"@dxos/timeframe": "0.1.58-main.
|
|
36
|
+
"@dxos/codec-protobuf": "0.1.58-main.eedac7a",
|
|
37
|
+
"@dxos/invariant": "0.1.58-main.eedac7a",
|
|
38
|
+
"@dxos/keys": "0.1.58-main.eedac7a",
|
|
39
|
+
"@dxos/timeframe": "0.1.58-main.eedac7a"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"glob": "~7.1.6"
|
package/src/errors/errors.ts
CHANGED
|
@@ -121,21 +121,21 @@ export class TimeoutError extends BaseError {
|
|
|
121
121
|
}
|
|
122
122
|
}
|
|
123
123
|
|
|
124
|
-
//
|
|
124
|
+
// General protocol error
|
|
125
125
|
export class ProtocolError extends BaseError {
|
|
126
126
|
constructor(message?: string, context?: any) {
|
|
127
127
|
super('PROTOCOL_ERROR', message, context);
|
|
128
128
|
}
|
|
129
129
|
}
|
|
130
130
|
|
|
131
|
-
//
|
|
131
|
+
// General connectivity errors
|
|
132
132
|
export class ConnectivityError extends BaseError {
|
|
133
133
|
constructor(message?: string, context?: any) {
|
|
134
134
|
super('CONNECTIVITY_ERROR', message, context);
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
137
|
|
|
138
|
-
// TODO(nf):
|
|
138
|
+
// TODO(nf): Rename? the protocol isn't what's unknown...
|
|
139
139
|
export class UnknownProtocolError extends BaseError {
|
|
140
140
|
constructor(message?: string, innerError?: Error) {
|
|
141
141
|
super('UNKNOWN_PROTOCOL_ERROR', message, innerError);
|
|
@@ -31,10 +31,9 @@ enum ShellDisplay {
|
|
|
31
31
|
message AppContextRequest {
|
|
32
32
|
/// The display mode that shell should use
|
|
33
33
|
optional ShellDisplay display = 1;
|
|
34
|
+
|
|
34
35
|
/// The key of the joined space
|
|
35
36
|
optional dxos.keys.PublicKey space_key = 2;
|
|
36
|
-
/// The invitation code which has become invalidated
|
|
37
|
-
optional string invalidated_invitation_code = 3;
|
|
38
37
|
}
|
|
39
38
|
|
|
40
39
|
/// App RPCs for the shell.
|
|
@@ -45,9 +44,11 @@ service AppService {
|
|
|
45
44
|
enum ShellLayout {
|
|
46
45
|
DEFAULT = 0;
|
|
47
46
|
INITIALIZE_IDENTITY = 1;
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
47
|
+
IDENTITY = 2;
|
|
48
|
+
SHARE_IDENTITY = 3;
|
|
49
|
+
EDIT_PROFILE = 4;
|
|
50
|
+
SPACE = 5;
|
|
51
|
+
JOIN_SPACE = 6;
|
|
51
52
|
}
|
|
52
53
|
|
|
53
54
|
message LayoutRequest {
|
|
@@ -104,13 +104,6 @@ export interface AppContextRequest {
|
|
|
104
104
|
* - proto3_optional = true
|
|
105
105
|
*/
|
|
106
106
|
spaceKey?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
107
|
-
/**
|
|
108
|
-
* The invitation code which has become invalidated
|
|
109
|
-
*
|
|
110
|
-
* Options:
|
|
111
|
-
* - proto3_optional = true
|
|
112
|
-
*/
|
|
113
|
-
invalidatedInvitationCode?: string;
|
|
114
107
|
}
|
|
115
108
|
/**
|
|
116
109
|
* App RPCs for the shell.
|
|
@@ -128,9 +121,11 @@ export interface AppService {
|
|
|
128
121
|
export enum ShellLayout {
|
|
129
122
|
DEFAULT = 0,
|
|
130
123
|
INITIALIZE_IDENTITY = 1,
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
124
|
+
IDENTITY = 2,
|
|
125
|
+
SHARE_IDENTITY = 3,
|
|
126
|
+
EDIT_PROFILE = 4,
|
|
127
|
+
SPACE = 5,
|
|
128
|
+
JOIN_SPACE = 6
|
|
134
129
|
}
|
|
135
130
|
/**
|
|
136
131
|
* Defined in:
|