@company-semantics/contracts 1.22.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 +1 -1
- package/src/api/generated.ts +102 -1
- package/src/identity/schemas.ts +3 -1
package/package.json
CHANGED
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;
|
|
@@ -2186,7 +2220,7 @@ export interface components {
|
|
|
2186
2220
|
initials: string;
|
|
2187
2221
|
};
|
|
2188
2222
|
/** Format: uuid */
|
|
2189
|
-
|
|
2223
|
+
activeOrgId: string;
|
|
2190
2224
|
orgName: string | null;
|
|
2191
2225
|
orgSlug: string;
|
|
2192
2226
|
plan: string;
|
|
@@ -5685,6 +5719,73 @@ export interface operations {
|
|
|
5685
5719
|
};
|
|
5686
5720
|
};
|
|
5687
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
|
+
};
|
|
5688
5789
|
getCompanyMdDocSharing: {
|
|
5689
5790
|
parameters: {
|
|
5690
5791
|
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(),
|