@crossworks/client-types 0.232.295 → 0.232.297
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 +1 -1
- package/src/dto/access.ts +2 -2
- package/src/dto/rows.ts +15 -14
package/package.json
CHANGED
package/src/dto/access.ts
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* The Access control's wire shapes (`/api/access/nodes/:id`). One level
|
|
3
3
|
* system: admin > team > client > public. A caller sees what is at or below
|
|
4
4
|
* its level. The level is the truth and the item's share link follows it:
|
|
5
|
-
* none at admin
|
|
6
|
-
*
|
|
5
|
+
* none at admin or team (members read team items with their own logins), an
|
|
6
|
+
* open link at client and public. See docs/access-levels.md.
|
|
7
7
|
*/
|
|
8
8
|
import type { ShareMode } from './rows';
|
|
9
9
|
|
package/src/dto/rows.ts
CHANGED
|
@@ -167,8 +167,8 @@ export type AppRow = {
|
|
|
167
167
|
/** Whether an uncommitted draft exists. */
|
|
168
168
|
hasDraft: boolean;
|
|
169
169
|
/**
|
|
170
|
-
* The app's exposure: mode of its active share ('public'
|
|
171
|
-
*
|
|
170
|
+
* The app's exposure: mode of its active share ('public'), or null when it
|
|
171
|
+
* has never been shared / the share is revoked (owner-only).
|
|
172
172
|
*/
|
|
173
173
|
shareMode: ShareMode | null;
|
|
174
174
|
/** Whether this app is the designated Team Hub (prefs.teamHubAppId). */
|
|
@@ -445,12 +445,11 @@ export type ProfilePreferences = {
|
|
|
445
445
|
* group grant, so the switch can't be bypassed by a manifest change. Flip it
|
|
446
446
|
* from the Team admin surface. */
|
|
447
447
|
teamPrivateReads?: boolean;
|
|
448
|
-
/** Node id of the mini-app designated as
|
|
449
|
-
*
|
|
450
|
-
*
|
|
451
|
-
*
|
|
452
|
-
*
|
|
453
|
-
* when the whole chain (pref → app → build → share) is intact. Read via
|
|
448
|
+
/** Node id of the mini-app designated as the members' HOME APP (the name
|
|
449
|
+
* is from the retired /team hub). A member login's home renders it
|
|
450
|
+
* full-bleed while it has a green published build and is at a level
|
|
451
|
+
* members may run (`resolveMemberHomeApp`, member-apps.ts); the built-in
|
|
452
|
+
* member home is the fallback. No share link is involved. Read via
|
|
454
453
|
* projectTeamHubAppId, never raw. */
|
|
455
454
|
teamHubAppId?: string;
|
|
456
455
|
/** Tags the owner curates as Dashboard sections on the /team overview: each
|
|
@@ -842,13 +841,15 @@ export interface OnboardingModelChoices {
|
|
|
842
841
|
* every pre-existing share keeps its behavior).
|
|
843
842
|
*
|
|
844
843
|
* public — anyone with the link (the original model).
|
|
845
|
-
*
|
|
846
|
-
*
|
|
847
|
-
*
|
|
848
|
-
*
|
|
849
|
-
*
|
|
844
|
+
*
|
|
845
|
+
* 'team' is retired (member logins Phase 6 stage 6): members read team items
|
|
846
|
+
* by level with their own logins. Migration 0176 revoked every team link, no
|
|
847
|
+
* link is created or switched to team (PATCH /api/shares answers 400
|
|
848
|
+
* `team-links-retired`), and an old team `/s` link shows a "sign in as a
|
|
849
|
+
* member" page. Kept as a named type so the fields that carry it
|
|
850
|
+
* (`AccessLinkView.mode`, `AppRow.shareMode`) keep their shape.
|
|
850
851
|
*/
|
|
851
|
-
export type ShareMode = 'public'
|
|
852
|
+
export type ShareMode = 'public';
|
|
852
853
|
|
|
853
854
|
export type TeamVisibleShare = {
|
|
854
855
|
/** Share token — the workspace opens /s/<token>. */
|