@crossworks/client-types 0.232.296 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crossworks/client-types",
3
- "version": "0.232.296",
3
+ "version": "0.232.297",
4
4
  "type": "module",
5
5
  "main": "./src/index.ts",
6
6
  "types": "./src/index.ts",
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, a team-only link at team (the team workspace opens items
6
- * through it), an open link at client and public. See docs/access-levels.md.
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' | 'team'), or null
171
- * when it has never been shared / the share is revoked (owner-only).
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 this brain's TEAM HUB. When set (and
449
- * the app has a green published build + an active team-mode share), the /team
450
- * shell renders that app full-bleed in place of the built-in hub body; the
451
- * built-in hub remains the fallback for every other state. Resolve via
452
- * `resolveTeamHubApp` (team-hub.ts), never raw — designation is only honoured
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
- * team — the visitor must additionally present a live team credential
846
- * (see @mantle/content/team-tokens). Enforced for every kind on
847
- * the /s/ surface (page render, asset bytes, app brokers).
848
- * Team-mode PAGE shares double as the /team hub's briefing
849
- * sections (see ./team-hub).
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' | 'team';
852
+ export type ShareMode = 'public';
852
853
 
853
854
  export type TeamVisibleShare = {
854
855
  /** Share token — the workspace opens /s/<token>. */