@company-semantics/contracts 20.1.0 → 20.2.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 = '325ec2565e49' as const;
|
|
3
|
+
export const SPEC_HASH_FULL = '325ec2565e49e75abbf3b93a918e328dbe47a74586212e390cd0dff381a9913f' as const;
|
package/src/api/generated.ts
CHANGED
|
@@ -4147,6 +4147,7 @@ export interface components {
|
|
|
4147
4147
|
name: string;
|
|
4148
4148
|
} | null;
|
|
4149
4149
|
canEdit: boolean;
|
|
4150
|
+
inheritsFromId: string | null;
|
|
4150
4151
|
inheritsFrom: string | null;
|
|
4151
4152
|
sources: {
|
|
4152
4153
|
label: string;
|
|
@@ -4155,6 +4156,7 @@ export interface components {
|
|
|
4155
4156
|
referencedAt: string;
|
|
4156
4157
|
}[];
|
|
4157
4158
|
dependencies: {
|
|
4159
|
+
targetId: string;
|
|
4158
4160
|
targetSlug: string;
|
|
4159
4161
|
description: string;
|
|
4160
4162
|
}[];
|
package/src/content/schemas.ts
CHANGED
|
@@ -28,6 +28,9 @@ const CompanyMdSourceSchema = z.object({
|
|
|
28
28
|
});
|
|
29
29
|
|
|
30
30
|
const CompanyMdDependencySchema = z.object({
|
|
31
|
+
// Stable id of the target doc — the resolution key (ADR-BE-315). `targetSlug`
|
|
32
|
+
// is presentation only; slugs are only parent-scoped unique post-ADR-BE-315.
|
|
33
|
+
targetId: z.string(),
|
|
31
34
|
targetSlug: z.string(),
|
|
32
35
|
description: z.string(),
|
|
33
36
|
});
|
|
@@ -85,6 +88,9 @@ export const CompanyMdDocResponseSchema = z.object({
|
|
|
85
88
|
owningUnitId: z.string().nullable(),
|
|
86
89
|
owner: CompanyMdPersonSchema.nullable(),
|
|
87
90
|
canEdit: z.boolean(),
|
|
91
|
+
// Stable id of the inherited-from doc — the resolution key (mirrors the
|
|
92
|
+
// resolved parentId). `inheritsFrom` is presentation only (ADR-BE-315).
|
|
93
|
+
inheritsFromId: z.string().nullable(),
|
|
88
94
|
inheritsFrom: z.string().nullable(),
|
|
89
95
|
sources: z.array(CompanyMdSourceSchema),
|
|
90
96
|
dependencies: z.array(CompanyMdDependencySchema),
|
|
@@ -22,20 +22,20 @@ export const openApiRoutes = {
|
|
|
22
22
|
'/api/chats/{id}/messages/{messageId}': ['DELETE'],
|
|
23
23
|
'/api/chats/{id}/pin': ['DELETE', 'POST'],
|
|
24
24
|
'/api/company-md/context-bank': ['POST'],
|
|
25
|
-
'/api/company-md/docs/{
|
|
26
|
-
'/api/company-md/docs/{
|
|
27
|
-
'/api/company-md/docs/{
|
|
28
|
-
'/api/company-md/docs/{
|
|
29
|
-
'/api/company-md/docs/{
|
|
30
|
-
'/api/company-md/docs/{
|
|
31
|
-
'/api/company-md/docs/{
|
|
32
|
-
'/api/company-md/docs/{
|
|
33
|
-
'/api/company-md/docs/{
|
|
34
|
-
'/api/company-md/docs/{
|
|
35
|
-
'/api/company-md/docs/{
|
|
36
|
-
'/api/company-md/docs/{
|
|
37
|
-
'/api/company-md/docs/{
|
|
38
|
-
'/api/company-md/docs/{
|
|
25
|
+
'/api/company-md/docs/{id}': ['GET'],
|
|
26
|
+
'/api/company-md/docs/{id}/content': ['PUT'],
|
|
27
|
+
'/api/company-md/docs/{id}/context-bank': ['GET'],
|
|
28
|
+
'/api/company-md/docs/{id}/context-bank/associate': ['POST'],
|
|
29
|
+
'/api/company-md/docs/{id}/context-bank/retry': ['POST'],
|
|
30
|
+
'/api/company-md/docs/{id}/context-bank/upload': ['POST'],
|
|
31
|
+
'/api/company-md/docs/{id}/context-bank/{contextDocId}': ['DELETE'],
|
|
32
|
+
'/api/company-md/docs/{id}/context-bank/{contextDocId}/order': ['PATCH'],
|
|
33
|
+
'/api/company-md/docs/{id}/sharing': ['GET'],
|
|
34
|
+
'/api/company-md/docs/{id}/sharing/acl': ['POST'],
|
|
35
|
+
'/api/company-md/docs/{id}/sharing/acl/{aclId}': ['DELETE', 'PUT'],
|
|
36
|
+
'/api/company-md/docs/{id}/sharing/policy': ['PUT'],
|
|
37
|
+
'/api/company-md/docs/{id}/title': ['PUT'],
|
|
38
|
+
'/api/company-md/docs/{id}/transfer-owner': ['POST'],
|
|
39
39
|
'/api/company-md/extract': ['POST'],
|
|
40
40
|
'/api/company-md/ownership/reassign': ['POST'],
|
|
41
41
|
'/api/company-md/ownership/reassign/suggestion': ['GET'],
|
package/src/org/company-md.ts
CHANGED
|
@@ -80,6 +80,13 @@ export interface CompanyMdSource {
|
|
|
80
80
|
}
|
|
81
81
|
|
|
82
82
|
export interface CompanyMdDependency {
|
|
83
|
+
/**
|
|
84
|
+
* Stable id of the target doc — the identity used to resolve the reference.
|
|
85
|
+
* Post-ADR-BE-315 slugs are only parent-scoped unique, so `targetSlug` cannot
|
|
86
|
+
* identify a doc unambiguously; resolve by `targetId`, display `targetSlug`.
|
|
87
|
+
*/
|
|
88
|
+
readonly targetId: string;
|
|
89
|
+
/** Human-readable slug of the target doc — presentation/label only. */
|
|
83
90
|
readonly targetSlug: string;
|
|
84
91
|
readonly description: string;
|
|
85
92
|
}
|
|
@@ -137,6 +144,13 @@ export interface CompanyMdDocCollaborators {
|
|
|
137
144
|
}
|
|
138
145
|
|
|
139
146
|
export interface CompanyMdDocRelations {
|
|
147
|
+
/**
|
|
148
|
+
* Stable id of the doc this one inherits from — the identity used to resolve
|
|
149
|
+
* the reference (mirrors the resolved `parentId`). Resolve by `inheritsFromId`,
|
|
150
|
+
* display `inheritsFrom`. See ADR-BE-315: slugs are only parent-scoped unique.
|
|
151
|
+
*/
|
|
152
|
+
readonly inheritsFromId: string | null;
|
|
153
|
+
/** Human-readable slug of the inherited-from doc — presentation/label only. */
|
|
140
154
|
readonly inheritsFrom: string | null;
|
|
141
155
|
readonly sources: readonly CompanyMdSource[];
|
|
142
156
|
readonly dependencies: readonly CompanyMdDependency[];
|