@company-semantics/contracts 39.0.0 → 39.1.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 = '4669379f3c9c' as const;
|
|
3
|
+
export const SPEC_HASH_FULL = '4669379f3c9c9733dea3f5bf53f2c1c0d1f0e496fddbf874e8d1f1951e805d7c' as const;
|
package/src/api/generated.ts
CHANGED
|
@@ -4546,6 +4546,8 @@ export interface components {
|
|
|
4546
4546
|
}[];
|
|
4547
4547
|
canEdit: boolean;
|
|
4548
4548
|
canUploadContext?: boolean;
|
|
4549
|
+
canManageAcl?: boolean;
|
|
4550
|
+
canChangeVisibility?: boolean;
|
|
4549
4551
|
inheritsFromId: string | null;
|
|
4550
4552
|
inheritsFrom: string | null;
|
|
4551
4553
|
sources: {
|
package/src/content/schemas.ts
CHANGED
|
@@ -153,6 +153,26 @@ export const CompanyMdDocResponseSchema = z.object({
|
|
|
153
153
|
* doc shapes returned outside the single-doc read.
|
|
154
154
|
*/
|
|
155
155
|
canUploadContext: z.boolean().optional(),
|
|
156
|
+
/**
|
|
157
|
+
* COLLABORATION capability signal (ADR-BE-434): whether the requesting actor
|
|
158
|
+
* holds `CompanyMd.CanShare` (`ACL_MANAGE` — the editor+ effective band OR the
|
|
159
|
+
* `org.manage_content_sharing` admin custody) on this doc — the SAME binding the
|
|
160
|
+
* `/acl` + sharing routes enforce. The app gates the Share affordance on it so a
|
|
161
|
+
* viewer/commenter never opens a dead Share dialog. Signal only; admittance and
|
|
162
|
+
* enforcement are unchanged. Optional for back-compat with doc shapes returned
|
|
163
|
+
* outside the single-doc read.
|
|
164
|
+
*/
|
|
165
|
+
canManageAcl: z.boolean().optional(),
|
|
166
|
+
/**
|
|
167
|
+
* GOVERNANCE capability signal (ADR-BE-435): whether the requesting actor holds
|
|
168
|
+
* `CompanyMd.CanChangeVisibility` (owner OR the `org.manage_content_sharing`
|
|
169
|
+
* admin custody) on this doc — the SAME binding the visibility/sharing-policy
|
|
170
|
+
* write enforces. The app renders the Share dialog's general-access +
|
|
171
|
+
* discoverability controls read-only when false, so a non-governing editor
|
|
172
|
+
* cannot change a governance control and 403 on save. Signal only; admittance
|
|
173
|
+
* and enforcement are unchanged. Optional for back-compat.
|
|
174
|
+
*/
|
|
175
|
+
canChangeVisibility: z.boolean().optional(),
|
|
156
176
|
// Stable id of the inherited-from doc — the resolution key (mirrors the
|
|
157
177
|
// resolved parentId). `inheritsFrom` is presentation only (ADR-BE-315).
|
|
158
178
|
inheritsFromId: z.string().nullable(),
|