@company-semantics/contracts 39.2.0 → 39.4.0

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.
@@ -55,6 +55,13 @@ export type ResourceKey =
55
55
  // dashboard reads over Global-infra factory tables; tenant-less, scope 'system'.
56
56
  | { type: "factoryFloor"; scope: "system" }
57
57
  | { type: "factorySnapshot"; scope: "system" }
58
+ // Everything awaiting the viewer's decision, across every domain
59
+ // (ADR-CONT-104). ORG-scoped, not user-scoped, even though the content is
60
+ // per-viewer: the bucket differs per org, so a user-keyed entry would serve
61
+ // one org's items after switching to another. Same shape as `chats` and
62
+ // `timeline`, which are likewise viewer-filtered but org-partitioned — and it
63
+ // inherits `resolveScope`'s impersonation handling for free.
64
+ | { type: "actionItems"; orgId: string }
58
65
  // User-scoped
59
66
  | { type: "dismissedBanners"; userId: string }
60
67
  | { type: "userOrgs"; userId: string }
@@ -98,6 +105,7 @@ const ORG_SCOPED_TYPES = [
98
105
  "orgLevelConfig",
99
106
  "peopleOrgChart",
100
107
  "orgUnitOwners",
108
+ "actionItems",
101
109
  ] as const;
102
110
 
103
111
  const USER_SCOPED_TYPES = [
@@ -181,6 +189,7 @@ export function toQueryKey(key: ResourceKey): readonly string[] {
181
189
  case "orgLevelConfig":
182
190
  case "peopleOrgChart":
183
191
  case "orgUnitOwners":
192
+ case "actionItems":
184
193
  return [key.type, key.orgId] as const;
185
194
 
186
195
  // System-scoped (ADR-CONTRACTS-052) — tenant-less super-admin resources