@company-semantics/contracts 0.112.0 → 0.113.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@company-semantics/contracts",
3
- "version": "0.112.0",
3
+ "version": "0.113.0",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
@@ -1722,7 +1722,7 @@ export interface paths {
1722
1722
  patch?: never;
1723
1723
  trace?: never;
1724
1724
  };
1725
- "/api/goals/tree": {
1725
+ "/api/company-md/tree": {
1726
1726
  parameters: {
1727
1727
  query?: never;
1728
1728
  header?: never;
@@ -1735,7 +1735,7 @@ export interface paths {
1735
1735
  * Auto-materializes docs on first access.
1736
1736
  * Requires org.view_goals capability.
1737
1737
  */
1738
- get: operations["getGoalTree"];
1738
+ get: operations["getCompanyMdTree"];
1739
1739
  put?: never;
1740
1740
  post?: never;
1741
1741
  delete?: never;
@@ -1744,7 +1744,7 @@ export interface paths {
1744
1744
  patch?: never;
1745
1745
  trace?: never;
1746
1746
  };
1747
- "/api/goals/docs/{slug}": {
1747
+ "/api/company-md/docs/{slug}": {
1748
1748
  parameters: {
1749
1749
  query?: never;
1750
1750
  header?: never;
@@ -1757,7 +1757,7 @@ export interface paths {
1757
1757
  * Enforces visibility (returns 404 if user cannot see the doc).
1758
1758
  * Requires org.view_goals capability.
1759
1759
  */
1760
- get: operations["getGoalDoc"];
1760
+ get: operations["getCompanyMdDoc"];
1761
1761
  put?: never;
1762
1762
  post?: never;
1763
1763
  delete?: never;
@@ -1766,7 +1766,7 @@ export interface paths {
1766
1766
  patch?: never;
1767
1767
  trace?: never;
1768
1768
  };
1769
- "/api/goals/docs/{slug}/content": {
1769
+ "/api/company-md/docs/{slug}/content": {
1770
1770
  parameters: {
1771
1771
  query?: never;
1772
1772
  header?: never;
@@ -1779,7 +1779,7 @@ export interface paths {
1779
1779
  * @description Updates the content of a goal doc.
1780
1780
  * canEdit checked in service (owner/co-owner/manage_goals).
1781
1781
  */
1782
- put: operations["updateGoalDocContent"];
1782
+ put: operations["updateCompanyMdDocContent"];
1783
1783
  post?: never;
1784
1784
  delete?: never;
1785
1785
  options?: never;
@@ -1787,7 +1787,7 @@ export interface paths {
1787
1787
  patch?: never;
1788
1788
  trace?: never;
1789
1789
  };
1790
- "/api/goals/docs/{slug}/title": {
1790
+ "/api/company-md/docs/{slug}/title": {
1791
1791
  parameters: {
1792
1792
  query?: never;
1793
1793
  header?: never;
@@ -1800,7 +1800,7 @@ export interface paths {
1800
1800
  * @description Updates the title of a goal doc.
1801
1801
  * canEdit checked in service (owner/co-owner/manage_goals).
1802
1802
  */
1803
- put: operations["updateGoalDocTitle"];
1803
+ put: operations["updateCompanyMdDocTitle"];
1804
1804
  post?: never;
1805
1805
  delete?: never;
1806
1806
  options?: never;
@@ -1808,7 +1808,7 @@ export interface paths {
1808
1808
  patch?: never;
1809
1809
  trace?: never;
1810
1810
  };
1811
- "/api/goals/docs/{slug}/sharing": {
1811
+ "/api/company-md/docs/{slug}/sharing": {
1812
1812
  parameters: {
1813
1813
  query?: never;
1814
1814
  header?: never;
@@ -1821,7 +1821,7 @@ export interface paths {
1821
1821
  * for the current user on a goal doc.
1822
1822
  * Requires at least viewer access to the doc.
1823
1823
  */
1824
- get: operations["getGoalDocSharing"];
1824
+ get: operations["getCompanyMdDocSharing"];
1825
1825
  put?: never;
1826
1826
  post?: never;
1827
1827
  delete?: never;
@@ -1830,7 +1830,7 @@ export interface paths {
1830
1830
  patch?: never;
1831
1831
  trace?: never;
1832
1832
  };
1833
- "/api/goals/docs/{slug}/sharing/policy": {
1833
+ "/api/company-md/docs/{slug}/sharing/policy": {
1834
1834
  parameters: {
1835
1835
  query?: never;
1836
1836
  header?: never;
@@ -1843,7 +1843,7 @@ export interface paths {
1843
1843
  * @description Sets the org-wide sharing policy for a goal doc.
1844
1844
  * Requires canShare permission (doc ownership, team ownership, or org admin).
1845
1845
  */
1846
- put: operations["updateGoalDocSharingPolicy"];
1846
+ put: operations["updateCompanyMdDocSharingPolicy"];
1847
1847
  post?: never;
1848
1848
  delete?: never;
1849
1849
  options?: never;
@@ -1851,7 +1851,7 @@ export interface paths {
1851
1851
  patch?: never;
1852
1852
  trace?: never;
1853
1853
  };
1854
- "/api/goals/docs/{slug}/sharing/acl": {
1854
+ "/api/company-md/docs/{slug}/sharing/acl": {
1855
1855
  parameters: {
1856
1856
  query?: never;
1857
1857
  header?: never;
@@ -1865,14 +1865,14 @@ export interface paths {
1865
1865
  * @description Grants a user or team access to a goal doc at a specified level.
1866
1866
  * Requires canShare permission. Unique constraint on (doc, principalType, principalId).
1867
1867
  */
1868
- post: operations["addGoalDocAclEntry"];
1868
+ post: operations["addCompanyMdDocAclEntry"];
1869
1869
  delete?: never;
1870
1870
  options?: never;
1871
1871
  head?: never;
1872
1872
  patch?: never;
1873
1873
  trace?: never;
1874
1874
  };
1875
- "/api/goals/docs/{slug}/sharing/acl/{aclId}": {
1875
+ "/api/company-md/docs/{slug}/sharing/acl/{aclId}": {
1876
1876
  parameters: {
1877
1877
  query?: never;
1878
1878
  header?: never;
@@ -1885,19 +1885,19 @@ export interface paths {
1885
1885
  * @description Changes the access level of an existing ACL entry.
1886
1886
  * Requires canShare permission.
1887
1887
  */
1888
- put: operations["updateGoalDocAclEntry"];
1888
+ put: operations["updateCompanyMdDocAclEntry"];
1889
1889
  post?: never;
1890
1890
  /**
1891
1891
  * Remove an ACL entry from a goal doc
1892
1892
  * @description Revokes a specific ACL entry. Requires canShare permission.
1893
1893
  */
1894
- delete: operations["deleteGoalDocAclEntry"];
1894
+ delete: operations["deleteCompanyMdDocAclEntry"];
1895
1895
  options?: never;
1896
1896
  head?: never;
1897
1897
  patch?: never;
1898
1898
  trace?: never;
1899
1899
  };
1900
- "/api/goals/extract": {
1900
+ "/api/company-md/extract": {
1901
1901
  parameters: {
1902
1902
  query?: never;
1903
1903
  header?: never;
@@ -1914,7 +1914,7 @@ export interface paths {
1914
1914
  * Requires org.manage_goals capability.
1915
1915
  * Max 10 concurrent extractions per server instance.
1916
1916
  */
1917
- post: operations["extractGoals"];
1917
+ post: operations["extractCompanyMd"];
1918
1918
  delete?: never;
1919
1919
  options?: never;
1920
1920
  head?: never;
@@ -6954,7 +6954,7 @@ export interface operations {
6954
6954
  };
6955
6955
  };
6956
6956
  };
6957
- getGoalTree: {
6957
+ getCompanyMdTree: {
6958
6958
  parameters: {
6959
6959
  query?: never;
6960
6960
  header?: never;
@@ -6983,7 +6983,7 @@ export interface operations {
6983
6983
  };
6984
6984
  };
6985
6985
  };
6986
- getGoalDoc: {
6986
+ getCompanyMdDoc: {
6987
6987
  parameters: {
6988
6988
  query?: never;
6989
6989
  header?: never;
@@ -7024,7 +7024,7 @@ export interface operations {
7024
7024
  };
7025
7025
  };
7026
7026
  };
7027
- updateGoalDocContent: {
7027
+ updateCompanyMdDocContent: {
7028
7028
  parameters: {
7029
7029
  query?: never;
7030
7030
  header?: never;
@@ -7078,7 +7078,7 @@ export interface operations {
7078
7078
  };
7079
7079
  };
7080
7080
  };
7081
- updateGoalDocTitle: {
7081
+ updateCompanyMdDocTitle: {
7082
7082
  parameters: {
7083
7083
  query?: never;
7084
7084
  header?: never;
@@ -7132,7 +7132,7 @@ export interface operations {
7132
7132
  };
7133
7133
  };
7134
7134
  };
7135
- getGoalDocSharing: {
7135
+ getCompanyMdDocSharing: {
7136
7136
  parameters: {
7137
7137
  query?: never;
7138
7138
  header?: never;
@@ -7169,7 +7169,7 @@ export interface operations {
7169
7169
  };
7170
7170
  };
7171
7171
  };
7172
- updateGoalDocSharingPolicy: {
7172
+ updateCompanyMdDocSharingPolicy: {
7173
7173
  parameters: {
7174
7174
  query?: never;
7175
7175
  header?: never;
@@ -7224,7 +7224,7 @@ export interface operations {
7224
7224
  };
7225
7225
  };
7226
7226
  };
7227
- addGoalDocAclEntry: {
7227
+ addCompanyMdDocAclEntry: {
7228
7228
  parameters: {
7229
7229
  query?: never;
7230
7230
  header?: never;
@@ -7297,7 +7297,7 @@ export interface operations {
7297
7297
  };
7298
7298
  };
7299
7299
  };
7300
- updateGoalDocAclEntry: {
7300
+ updateCompanyMdDocAclEntry: {
7301
7301
  parameters: {
7302
7302
  query?: never;
7303
7303
  header?: never;
@@ -7354,7 +7354,7 @@ export interface operations {
7354
7354
  };
7355
7355
  };
7356
7356
  };
7357
- deleteGoalDocAclEntry: {
7357
+ deleteCompanyMdDocAclEntry: {
7358
7358
  parameters: {
7359
7359
  query?: never;
7360
7360
  header?: never;
@@ -7395,7 +7395,7 @@ export interface operations {
7395
7395
  };
7396
7396
  };
7397
7397
  };
7398
- extractGoals: {
7398
+ extractCompanyMd: {
7399
7399
  parameters: {
7400
7400
  query?: never;
7401
7401
  header?: never;
@@ -8,9 +8,9 @@
8
8
 
9
9
  export type CompanyMdVisibility = 'public' | 'private';
10
10
 
11
- export type CompanyMdDocLevel = 'root' | 'department' | 'team';
11
+ export type CompanyMdDocLevel = 'root' | 'department' | 'team' | 'context';
12
12
 
13
- export type CompanyMdNodeType = 'company' | 'department' | 'team' | 'cross_team' | 'doc' | 'goal' | 'source' | 'map';
13
+ export type CompanyMdNodeType = 'company' | 'department' | 'team' | 'cross_team' | 'doc' | 'goal' | 'source' | 'map' | 'context_bank';
14
14
 
15
15
  export type TeamDepartmentRole = 'owner' | 'participant' | 'supporting';
16
16
 
@@ -75,3 +75,15 @@ export interface CompanyMdDocRelations {
75
75
  }
76
76
 
77
77
  export type CompanyMdDoc = CompanyMdDocCore & CompanyMdDocCollaborators & CompanyMdDocRelations;
78
+
79
+ /**
80
+ * A context bank item — a company.md doc associated with one or more parent nodes.
81
+ * Context bank files can belong to company, department, or team levels.
82
+ */
83
+ export interface CompanyMdContextBankItem {
84
+ readonly id: string;
85
+ readonly slug: string;
86
+ readonly title: string;
87
+ readonly visibility: CompanyMdVisibility;
88
+ readonly updatedAt: string;
89
+ }