@company-semantics/contracts 27.11.0 → 27.12.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 = '43cd15935d12' as const;
|
|
3
|
+
export const SPEC_HASH_FULL = '43cd15935d1232049463ee9ed6c4e833b6e012906cfc46644157aaaa310b895b' as const;
|
package/src/api/generated.ts
CHANGED
package/src/content/schemas.ts
CHANGED
|
@@ -126,6 +126,15 @@ export const CompanyMdDocResponseSchema = z.object({
|
|
|
126
126
|
owningUnitId: z.string().nullable(),
|
|
127
127
|
owner: CompanyMdPersonSchema.nullable(),
|
|
128
128
|
canEdit: z.boolean(),
|
|
129
|
+
/**
|
|
130
|
+
* UI capability signal (ADR-BE-382): whether the requesting actor holds
|
|
131
|
+
* `CompanyMd.CanUploadContext` on this doc — the SAME binding every
|
|
132
|
+
* context-bank mutation (upload/attach/remove/reorder/detach) enforces.
|
|
133
|
+
* The app hides bank-mutation affordances when false. Signal only;
|
|
134
|
+
* admittance and enforcement are unchanged. Optional for back-compat with
|
|
135
|
+
* doc shapes returned outside the single-doc read.
|
|
136
|
+
*/
|
|
137
|
+
canUploadContext: z.boolean().optional(),
|
|
129
138
|
// Stable id of the inherited-from doc — the resolution key (mirrors the
|
|
130
139
|
// resolved parentId). `inheritsFrom` is presentation only (ADR-BE-315).
|
|
131
140
|
inheritsFromId: z.string().nullable(),
|