@company-semantics/contracts 0.112.1 → 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 +1 -1
- package/src/api/generated.ts +20 -20
- package/src/org/company-md.ts +14 -2
package/package.json
CHANGED
package/src/api/generated.ts
CHANGED
|
@@ -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["
|
|
1738
|
+
get: operations["getCompanyMdTree"];
|
|
1739
1739
|
put?: never;
|
|
1740
1740
|
post?: never;
|
|
1741
1741
|
delete?: 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["
|
|
1760
|
+
get: operations["getCompanyMdDoc"];
|
|
1761
1761
|
put?: never;
|
|
1762
1762
|
post?: never;
|
|
1763
1763
|
delete?: 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["
|
|
1782
|
+
put: operations["updateCompanyMdDocContent"];
|
|
1783
1783
|
post?: never;
|
|
1784
1784
|
delete?: never;
|
|
1785
1785
|
options?: 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["
|
|
1803
|
+
put: operations["updateCompanyMdDocTitle"];
|
|
1804
1804
|
post?: never;
|
|
1805
1805
|
delete?: never;
|
|
1806
1806
|
options?: 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["
|
|
1824
|
+
get: operations["getCompanyMdDocSharing"];
|
|
1825
1825
|
put?: never;
|
|
1826
1826
|
post?: never;
|
|
1827
1827
|
delete?: 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["
|
|
1846
|
+
put: operations["updateCompanyMdDocSharingPolicy"];
|
|
1847
1847
|
post?: never;
|
|
1848
1848
|
delete?: never;
|
|
1849
1849
|
options?: never;
|
|
@@ -1865,7 +1865,7 @@ 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["
|
|
1868
|
+
post: operations["addCompanyMdDocAclEntry"];
|
|
1869
1869
|
delete?: never;
|
|
1870
1870
|
options?: never;
|
|
1871
1871
|
head?: never;
|
|
@@ -1885,13 +1885,13 @@ 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["
|
|
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["
|
|
1894
|
+
delete: operations["deleteCompanyMdDocAclEntry"];
|
|
1895
1895
|
options?: never;
|
|
1896
1896
|
head?: never;
|
|
1897
1897
|
patch?: 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["
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
7398
|
+
extractCompanyMd: {
|
|
7399
7399
|
parameters: {
|
|
7400
7400
|
query?: never;
|
|
7401
7401
|
header?: never;
|
package/src/org/company-md.ts
CHANGED
|
@@ -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
|
+
}
|