@mentra/cloud-client 3.5.0-dev.1316 → 3.5.0-dev.1322
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mentra/cloud-client",
|
|
3
|
-
"version": "3.5.0-dev.
|
|
3
|
+
"version": "3.5.0-dev.1322",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./src/index.ts",
|
|
6
6
|
"exports": {
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"test": "bun test"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@mentra/cloud-protocol": "3.5.0-dev.
|
|
15
|
+
"@mentra/cloud-protocol": "3.5.0-dev.1322",
|
|
16
16
|
"tweetnacl": "^1.0.3"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
@@ -22,12 +22,17 @@ export interface InvitationPreview {
|
|
|
22
22
|
expiresAt: string;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
/** The workspace the signed-in phone
|
|
25
|
+
/** The workspace managing the signed-in phone (`GET /api/client/workspaces/mine`). */
|
|
26
26
|
export interface MyWorkspace {
|
|
27
27
|
workspaceId: string;
|
|
28
28
|
name: string;
|
|
29
29
|
role: ClientWorkspaceRole;
|
|
30
30
|
membershipId: string;
|
|
31
|
+
/**
|
|
32
|
+
* Whether it is the person's own automatic workspace: a workspace they join then manages the phone instead.
|
|
33
|
+
* Otherwise it keeps managing the phone when they join another. An older Core leaves it out.
|
|
34
|
+
*/
|
|
35
|
+
automatic?: boolean;
|
|
31
36
|
}
|
|
32
37
|
|
|
33
38
|
/** `GET /api/client/workspaces/mine`. */
|
|
@@ -50,6 +50,8 @@ function readWorkspace(value: unknown): MyWorkspace {
|
|
|
50
50
|
name: value.name,
|
|
51
51
|
role: value.role as MyWorkspace["role"],
|
|
52
52
|
membershipId: value.membershipId,
|
|
53
|
+
// An older Core sends none.
|
|
54
|
+
...(typeof value.automatic === "boolean" ? {automatic: value.automatic} : {}),
|
|
53
55
|
}
|
|
54
56
|
}
|
|
55
57
|
|