@company-semantics/contracts 0.113.0 → 0.113.1

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": "@company-semantics/contracts",
3
- "version": "0.113.0",
3
+ "version": "0.113.1",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
package/src/index.ts CHANGED
@@ -251,6 +251,7 @@ export type {
251
251
  CompanyMdDependency,
252
252
  CompanyMdTreeNode,
253
253
  CompanyMdDoc,
254
+ CompanyMdContextBankItem,
254
255
  TeamDepartmentRole,
255
256
  TeamDepartmentMembership,
256
257
  // Team types (PRD-00306)
package/src/org/index.ts CHANGED
@@ -93,6 +93,7 @@ export type {
93
93
  CompanyMdDocCollaborators,
94
94
  CompanyMdDocRelations,
95
95
  CompanyMdDoc,
96
+ CompanyMdContextBankItem,
96
97
  TeamDepartmentRole,
97
98
  TeamDepartmentMembership,
98
99
  } from './company-md';
@@ -19,6 +19,7 @@ export type ResourceKey =
19
19
  | { type: 'department'; orgId: string; departmentId: string }
20
20
  | { type: 'chat'; orgId: string; chatId: string }
21
21
  | { type: 'goalDoc'; orgId: string; slug: string }
22
+ | { type: 'companyMdContextBank'; orgId: string; slug: string }
22
23
  | { type: 'workspace'; orgId: string }
23
24
  | { type: 'workspaceDomains'; orgId: string }
24
25
  | { type: 'authSettings'; orgId: string }
@@ -78,6 +79,7 @@ export function toQueryKey(key: ResourceKey): readonly string[] {
78
79
  case 'chat':
79
80
  return [key.type, key.orgId, key.chatId] as const;
80
81
  case 'goalDoc':
82
+ case 'companyMdContextBank':
81
83
  return [key.type, key.orgId, key.slug] as const;
82
84
 
83
85
  // User-scoped
@@ -131,6 +133,7 @@ export function fromQueryKey(queryKey: readonly string[]): ResourceKey {
131
133
  department: 'departmentId',
132
134
  chat: 'chatId',
133
135
  goalDoc: 'slug',
136
+ companyMdContextBank: 'slug',
134
137
  };
135
138
 
136
139
  if (type in identityFields) {