@company-semantics/contracts 1.21.0 → 1.23.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,3 +1,3 @@
|
|
|
1
1
|
// AUTO-GENERATED — do not edit. Run pnpm generate:spec-hash to regenerate.
|
|
2
|
-
export const SPEC_HASH = '
|
|
3
|
-
export const SPEC_HASH_FULL = '
|
|
2
|
+
export const SPEC_HASH = 'f49b8ee41599' as const;
|
|
3
|
+
export const SPEC_HASH_FULL = 'f49b8ee415991dc71ab889a9ea577a95b5aac4c72ffe51b8b448fdcb130ecb6a' as const;
|
package/src/api/generated.ts
CHANGED
|
@@ -1368,6 +1368,40 @@ export interface paths {
|
|
|
1368
1368
|
patch: operations["reorderCompanyMdContextBankItem"];
|
|
1369
1369
|
trace?: never;
|
|
1370
1370
|
};
|
|
1371
|
+
"/api/company-md/docs/{parentSlug}/context-bank/upload": {
|
|
1372
|
+
parameters: {
|
|
1373
|
+
query?: never;
|
|
1374
|
+
header?: never;
|
|
1375
|
+
path?: never;
|
|
1376
|
+
cookie?: never;
|
|
1377
|
+
};
|
|
1378
|
+
get?: never;
|
|
1379
|
+
put?: never;
|
|
1380
|
+
/** Upload a file to the context bank for a parent doc and enqueue extraction */
|
|
1381
|
+
post: operations["uploadCompanyMdContextBankFile"];
|
|
1382
|
+
delete?: never;
|
|
1383
|
+
options?: never;
|
|
1384
|
+
head?: never;
|
|
1385
|
+
patch?: never;
|
|
1386
|
+
trace?: never;
|
|
1387
|
+
};
|
|
1388
|
+
"/api/company-md/docs/{slug}/context-bank/retry": {
|
|
1389
|
+
parameters: {
|
|
1390
|
+
query?: never;
|
|
1391
|
+
header?: never;
|
|
1392
|
+
path?: never;
|
|
1393
|
+
cookie?: never;
|
|
1394
|
+
};
|
|
1395
|
+
get?: never;
|
|
1396
|
+
put?: never;
|
|
1397
|
+
/** Retry extraction for a context-bank doc */
|
|
1398
|
+
post: operations["retryCompanyMdContextBankExtraction"];
|
|
1399
|
+
delete?: never;
|
|
1400
|
+
options?: never;
|
|
1401
|
+
head?: never;
|
|
1402
|
+
patch?: never;
|
|
1403
|
+
trace?: never;
|
|
1404
|
+
};
|
|
1371
1405
|
"/api/company-md/docs/{slug}/sharing": {
|
|
1372
1406
|
parameters: {
|
|
1373
1407
|
query?: never;
|
|
@@ -1986,6 +2020,23 @@ export interface paths {
|
|
|
1986
2020
|
patch?: never;
|
|
1987
2021
|
trace?: never;
|
|
1988
2022
|
};
|
|
2023
|
+
"/api/workspace/work-item-counts": {
|
|
2024
|
+
parameters: {
|
|
2025
|
+
query?: never;
|
|
2026
|
+
header?: never;
|
|
2027
|
+
path?: never;
|
|
2028
|
+
cookie?: never;
|
|
2029
|
+
};
|
|
2030
|
+
/** Per-member work item counts for the active org */
|
|
2031
|
+
get: operations["getWorkspaceWorkItemCounts"];
|
|
2032
|
+
put?: never;
|
|
2033
|
+
post?: never;
|
|
2034
|
+
delete?: never;
|
|
2035
|
+
options?: never;
|
|
2036
|
+
head?: never;
|
|
2037
|
+
patch?: never;
|
|
2038
|
+
trace?: never;
|
|
2039
|
+
};
|
|
1989
2040
|
"/api/work-items/{id}": {
|
|
1990
2041
|
parameters: {
|
|
1991
2042
|
query?: never;
|
|
@@ -2003,6 +2054,40 @@ export interface paths {
|
|
|
2003
2054
|
patch?: never;
|
|
2004
2055
|
trace?: never;
|
|
2005
2056
|
};
|
|
2057
|
+
"/api/work-items/{id}/content": {
|
|
2058
|
+
parameters: {
|
|
2059
|
+
query?: never;
|
|
2060
|
+
header?: never;
|
|
2061
|
+
path?: never;
|
|
2062
|
+
cookie?: never;
|
|
2063
|
+
};
|
|
2064
|
+
get?: never;
|
|
2065
|
+
/** Update a work item markdown body (owner-only) */
|
|
2066
|
+
put: operations["updateWorkItemContent"];
|
|
2067
|
+
post?: never;
|
|
2068
|
+
delete?: never;
|
|
2069
|
+
options?: never;
|
|
2070
|
+
head?: never;
|
|
2071
|
+
patch?: never;
|
|
2072
|
+
trace?: never;
|
|
2073
|
+
};
|
|
2074
|
+
"/api/work-items/{id}/title": {
|
|
2075
|
+
parameters: {
|
|
2076
|
+
query?: never;
|
|
2077
|
+
header?: never;
|
|
2078
|
+
path?: never;
|
|
2079
|
+
cookie?: never;
|
|
2080
|
+
};
|
|
2081
|
+
get?: never;
|
|
2082
|
+
/** Update a work item title (owner-only) */
|
|
2083
|
+
put: operations["updateWorkItemTitle"];
|
|
2084
|
+
post?: never;
|
|
2085
|
+
delete?: never;
|
|
2086
|
+
options?: never;
|
|
2087
|
+
head?: never;
|
|
2088
|
+
patch?: never;
|
|
2089
|
+
trace?: never;
|
|
2090
|
+
};
|
|
2006
2091
|
"/api/internal-admin/impersonate/start": {
|
|
2007
2092
|
parameters: {
|
|
2008
2093
|
query?: never;
|
|
@@ -2135,7 +2220,7 @@ export interface components {
|
|
|
2135
2220
|
initials: string;
|
|
2136
2221
|
};
|
|
2137
2222
|
/** Format: uuid */
|
|
2138
|
-
|
|
2223
|
+
activeOrgId: string;
|
|
2139
2224
|
orgName: string | null;
|
|
2140
2225
|
orgSlug: string;
|
|
2141
2226
|
plan: string;
|
|
@@ -3509,6 +3594,15 @@ export interface components {
|
|
|
3509
3594
|
/** @constant */
|
|
3510
3595
|
ok: true;
|
|
3511
3596
|
};
|
|
3597
|
+
UpdateWorkItemResponse: {
|
|
3598
|
+
updatedAt: string;
|
|
3599
|
+
};
|
|
3600
|
+
UpdateWorkItemContentRequest: {
|
|
3601
|
+
content: string;
|
|
3602
|
+
};
|
|
3603
|
+
UpdateWorkItemTitleRequest: {
|
|
3604
|
+
title: string;
|
|
3605
|
+
};
|
|
3512
3606
|
ImpersonationSessionResponse: {
|
|
3513
3607
|
session: {
|
|
3514
3608
|
impersonationSessionId: string;
|
|
@@ -5625,6 +5719,73 @@ export interface operations {
|
|
|
5625
5719
|
};
|
|
5626
5720
|
};
|
|
5627
5721
|
};
|
|
5722
|
+
uploadCompanyMdContextBankFile: {
|
|
5723
|
+
parameters: {
|
|
5724
|
+
query?: never;
|
|
5725
|
+
header?: never;
|
|
5726
|
+
path: {
|
|
5727
|
+
parentSlug: string;
|
|
5728
|
+
};
|
|
5729
|
+
cookie?: never;
|
|
5730
|
+
};
|
|
5731
|
+
requestBody: {
|
|
5732
|
+
content: {
|
|
5733
|
+
"multipart/form-data": {
|
|
5734
|
+
[key: string]: unknown;
|
|
5735
|
+
};
|
|
5736
|
+
};
|
|
5737
|
+
};
|
|
5738
|
+
responses: {
|
|
5739
|
+
/** @description Context-bank doc created and extraction enqueued */
|
|
5740
|
+
202: {
|
|
5741
|
+
headers: {
|
|
5742
|
+
[name: string]: unknown;
|
|
5743
|
+
};
|
|
5744
|
+
content?: never;
|
|
5745
|
+
};
|
|
5746
|
+
/** @description Unsupported MIME type */
|
|
5747
|
+
415: {
|
|
5748
|
+
headers: {
|
|
5749
|
+
[name: string]: unknown;
|
|
5750
|
+
};
|
|
5751
|
+
content?: never;
|
|
5752
|
+
};
|
|
5753
|
+
/** @description Empty document or scanned PDF */
|
|
5754
|
+
422: {
|
|
5755
|
+
headers: {
|
|
5756
|
+
[name: string]: unknown;
|
|
5757
|
+
};
|
|
5758
|
+
content?: never;
|
|
5759
|
+
};
|
|
5760
|
+
};
|
|
5761
|
+
};
|
|
5762
|
+
retryCompanyMdContextBankExtraction: {
|
|
5763
|
+
parameters: {
|
|
5764
|
+
query?: never;
|
|
5765
|
+
header?: never;
|
|
5766
|
+
path: {
|
|
5767
|
+
slug: string;
|
|
5768
|
+
};
|
|
5769
|
+
cookie?: never;
|
|
5770
|
+
};
|
|
5771
|
+
requestBody?: never;
|
|
5772
|
+
responses: {
|
|
5773
|
+
/** @description Retry enqueued */
|
|
5774
|
+
202: {
|
|
5775
|
+
headers: {
|
|
5776
|
+
[name: string]: unknown;
|
|
5777
|
+
};
|
|
5778
|
+
content?: never;
|
|
5779
|
+
};
|
|
5780
|
+
/** @description Retry limit exceeded or invalid slug */
|
|
5781
|
+
422: {
|
|
5782
|
+
headers: {
|
|
5783
|
+
[name: string]: unknown;
|
|
5784
|
+
};
|
|
5785
|
+
content?: never;
|
|
5786
|
+
};
|
|
5787
|
+
};
|
|
5788
|
+
};
|
|
5628
5789
|
getCompanyMdDocSharing: {
|
|
5629
5790
|
parameters: {
|
|
5630
5791
|
query?: never;
|
|
@@ -6617,6 +6778,24 @@ export interface operations {
|
|
|
6617
6778
|
};
|
|
6618
6779
|
};
|
|
6619
6780
|
};
|
|
6781
|
+
getWorkspaceWorkItemCounts: {
|
|
6782
|
+
parameters: {
|
|
6783
|
+
query?: never;
|
|
6784
|
+
header?: never;
|
|
6785
|
+
path?: never;
|
|
6786
|
+
cookie?: never;
|
|
6787
|
+
};
|
|
6788
|
+
requestBody?: never;
|
|
6789
|
+
responses: {
|
|
6790
|
+
/** @description Per-(userId, kind) counts across the org */
|
|
6791
|
+
200: {
|
|
6792
|
+
headers: {
|
|
6793
|
+
[name: string]: unknown;
|
|
6794
|
+
};
|
|
6795
|
+
content?: never;
|
|
6796
|
+
};
|
|
6797
|
+
};
|
|
6798
|
+
};
|
|
6620
6799
|
getWorkItemById: {
|
|
6621
6800
|
parameters: {
|
|
6622
6801
|
query?: never;
|
|
@@ -6644,6 +6823,72 @@ export interface operations {
|
|
|
6644
6823
|
};
|
|
6645
6824
|
};
|
|
6646
6825
|
};
|
|
6826
|
+
updateWorkItemContent: {
|
|
6827
|
+
parameters: {
|
|
6828
|
+
query?: never;
|
|
6829
|
+
header?: never;
|
|
6830
|
+
path: {
|
|
6831
|
+
id: string;
|
|
6832
|
+
};
|
|
6833
|
+
cookie?: never;
|
|
6834
|
+
};
|
|
6835
|
+
requestBody: {
|
|
6836
|
+
content: {
|
|
6837
|
+
"application/json": components["schemas"]["UpdateWorkItemContentRequest"];
|
|
6838
|
+
};
|
|
6839
|
+
};
|
|
6840
|
+
responses: {
|
|
6841
|
+
/** @description Content updated; returns the new updatedAt timestamp */
|
|
6842
|
+
200: {
|
|
6843
|
+
headers: {
|
|
6844
|
+
[name: string]: unknown;
|
|
6845
|
+
};
|
|
6846
|
+
content: {
|
|
6847
|
+
"application/json": components["schemas"]["UpdateWorkItemResponse"];
|
|
6848
|
+
};
|
|
6849
|
+
};
|
|
6850
|
+
/** @description Not found or not visible to this viewer */
|
|
6851
|
+
404: {
|
|
6852
|
+
headers: {
|
|
6853
|
+
[name: string]: unknown;
|
|
6854
|
+
};
|
|
6855
|
+
content?: never;
|
|
6856
|
+
};
|
|
6857
|
+
};
|
|
6858
|
+
};
|
|
6859
|
+
updateWorkItemTitle: {
|
|
6860
|
+
parameters: {
|
|
6861
|
+
query?: never;
|
|
6862
|
+
header?: never;
|
|
6863
|
+
path: {
|
|
6864
|
+
id: string;
|
|
6865
|
+
};
|
|
6866
|
+
cookie?: never;
|
|
6867
|
+
};
|
|
6868
|
+
requestBody: {
|
|
6869
|
+
content: {
|
|
6870
|
+
"application/json": components["schemas"]["UpdateWorkItemTitleRequest"];
|
|
6871
|
+
};
|
|
6872
|
+
};
|
|
6873
|
+
responses: {
|
|
6874
|
+
/** @description Title updated; returns the new updatedAt timestamp */
|
|
6875
|
+
200: {
|
|
6876
|
+
headers: {
|
|
6877
|
+
[name: string]: unknown;
|
|
6878
|
+
};
|
|
6879
|
+
content: {
|
|
6880
|
+
"application/json": components["schemas"]["UpdateWorkItemResponse"];
|
|
6881
|
+
};
|
|
6882
|
+
};
|
|
6883
|
+
/** @description Not found or not visible to this viewer */
|
|
6884
|
+
404: {
|
|
6885
|
+
headers: {
|
|
6886
|
+
[name: string]: unknown;
|
|
6887
|
+
};
|
|
6888
|
+
content?: never;
|
|
6889
|
+
};
|
|
6890
|
+
};
|
|
6891
|
+
};
|
|
6647
6892
|
startImpersonation: {
|
|
6648
6893
|
parameters: {
|
|
6649
6894
|
query?: never;
|
package/src/identity/schemas.ts
CHANGED
|
@@ -39,7 +39,9 @@ export const MeResponseSchema = z.object({
|
|
|
39
39
|
primaryUnitId: z.string().nullable(),
|
|
40
40
|
slackUserId: z.string().nullable(),
|
|
41
41
|
avatar: ResolvedAvatarSchema,
|
|
42
|
-
|
|
42
|
+
// Single canonical active-org field (PRD-00582 api/me-remove-orgid).
|
|
43
|
+
// Replaces the deprecated `orgId` alias from the dual-field transition.
|
|
44
|
+
activeOrgId: z.string().uuid(),
|
|
43
45
|
orgName: z.string().nullable(),
|
|
44
46
|
orgSlug: z.string(),
|
|
45
47
|
plan: z.string(),
|
|
@@ -7,6 +7,7 @@ describe('VIEW_SCOPE_MAP golden snapshot', () => {
|
|
|
7
7
|
workspace: 'org.view_workspace',
|
|
8
8
|
timeline: 'org.view_timeline',
|
|
9
9
|
teamwork: 'org.view_teamwork',
|
|
10
|
+
'teamwork-member': 'org.view_teamwork',
|
|
10
11
|
'company-md': 'org.view_company_md',
|
|
11
12
|
teams: 'org.view_teams',
|
|
12
13
|
'internal-admin': 'internal.view_admin',
|
|
@@ -14,6 +15,7 @@ describe('VIEW_SCOPE_MAP golden snapshot', () => {
|
|
|
14
15
|
settings: null,
|
|
15
16
|
chats: null,
|
|
16
17
|
'my-work': null,
|
|
18
|
+
'user-md': null,
|
|
17
19
|
upgrade: null,
|
|
18
20
|
})
|
|
19
21
|
})
|
package/src/org/view-scopes.ts
CHANGED
|
@@ -20,6 +20,7 @@ export const VIEW_SCOPE_MAP = {
|
|
|
20
20
|
workspace: 'org.view_workspace',
|
|
21
21
|
timeline: 'org.view_timeline',
|
|
22
22
|
teamwork: 'org.view_teamwork',
|
|
23
|
+
'teamwork-member': 'org.view_teamwork',
|
|
23
24
|
'company-md': 'org.view_company_md',
|
|
24
25
|
teams: 'org.view_teams',
|
|
25
26
|
'internal-admin': 'internal.view_admin',
|