@company-semantics/contracts 27.9.0 → 27.11.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,6 +1,6 @@
1
1
  {
2
2
  "name": "@company-semantics/contracts",
3
- "version": "27.9.0",
3
+ "version": "27.11.0",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
@@ -1,3 +1,3 @@
1
1
  // AUTO-GENERATED — do not edit. Run pnpm generate:spec-hash to regenerate.
2
- export const SPEC_HASH = '3974d23a4348' as const;
3
- export const SPEC_HASH_FULL = '3974d23a434834c5a1f81d93ef082b993014143e7b95e97dd775293045809af8' as const;
2
+ export const SPEC_HASH = '82dd95d10a7a' as const;
3
+ export const SPEC_HASH_FULL = '82dd95d10a7ab91ce536889a823b6fb149634142227bedc4a68e012e1a48256d' as const;
@@ -1542,6 +1542,40 @@ export interface paths {
1542
1542
  patch?: never;
1543
1543
  trace?: never;
1544
1544
  };
1545
+ "/api/company-md/context-bank/{contextDocId}/attachments": {
1546
+ parameters: {
1547
+ query?: never;
1548
+ header?: never;
1549
+ path?: never;
1550
+ cookie?: never;
1551
+ };
1552
+ /** List parent docs a context doc is attached to, with per-parent detach capability */
1553
+ get: operations["getCompanyMdContextDocAttachments"];
1554
+ put?: never;
1555
+ post?: never;
1556
+ delete?: never;
1557
+ options?: never;
1558
+ head?: never;
1559
+ patch?: never;
1560
+ trace?: never;
1561
+ };
1562
+ "/api/company-md/context-bank/{contextDocId}/detach": {
1563
+ parameters: {
1564
+ query?: never;
1565
+ header?: never;
1566
+ path?: never;
1567
+ cookie?: never;
1568
+ };
1569
+ get?: never;
1570
+ put?: never;
1571
+ /** Detach a context doc from parent docs; deletes the doc when orphaned */
1572
+ post: operations["detachCompanyMdContextDoc"];
1573
+ delete?: never;
1574
+ options?: never;
1575
+ head?: never;
1576
+ patch?: never;
1577
+ trace?: never;
1578
+ };
1545
1579
  "/api/company-md/docs/{id}/context-bank/{contextDocId}/order": {
1546
1580
  parameters: {
1547
1581
  query?: never;
@@ -3942,6 +3976,7 @@ export interface components {
3942
3976
  title: string;
3943
3977
  })[];
3944
3978
  reason: string | null;
3979
+ /** Format: uuid */
3945
3980
  idempotencyKey: string;
3946
3981
  };
3947
3982
  SubmitInteractiveTaskResponse: {
@@ -4557,6 +4592,9 @@ export interface components {
4557
4592
  AssociateContextDocRequest: {
4558
4593
  contextDocId: string;
4559
4594
  };
4595
+ DetachContextDocRequest: {
4596
+ parentDocIds: string[];
4597
+ };
4560
4598
  TransferCompanyMdDocOwnerRequest: {
4561
4599
  /** Format: uuid */
4562
4600
  newOwnerUserId: string;
@@ -5589,6 +5627,8 @@ export interface components {
5589
5627
  VisibilityPatchRequest: {
5590
5628
  /** @enum {string} */
5591
5629
  tier: "private" | "unit" | "org";
5630
+ /** @enum {string} */
5631
+ role?: "editor" | "commenter" | "viewer";
5592
5632
  };
5593
5633
  OwnerTransferRequest: {
5594
5634
  /** Format: uuid */
@@ -8191,6 +8231,50 @@ export interface operations {
8191
8231
  };
8192
8232
  };
8193
8233
  };
8234
+ getCompanyMdContextDocAttachments: {
8235
+ parameters: {
8236
+ query?: never;
8237
+ header?: never;
8238
+ path: {
8239
+ contextDocId: string;
8240
+ };
8241
+ cookie?: never;
8242
+ };
8243
+ requestBody?: never;
8244
+ responses: {
8245
+ /** @description Attachments with canDetach flags */
8246
+ 200: {
8247
+ headers: {
8248
+ [name: string]: unknown;
8249
+ };
8250
+ content?: never;
8251
+ };
8252
+ };
8253
+ };
8254
+ detachCompanyMdContextDoc: {
8255
+ parameters: {
8256
+ query?: never;
8257
+ header?: never;
8258
+ path: {
8259
+ contextDocId: string;
8260
+ };
8261
+ cookie?: never;
8262
+ };
8263
+ requestBody: {
8264
+ content: {
8265
+ "application/json": components["schemas"]["DetachContextDocRequest"];
8266
+ };
8267
+ };
8268
+ responses: {
8269
+ /** @description Associations removed; deleted=true when the doc was orphaned */
8270
+ 200: {
8271
+ headers: {
8272
+ [name: string]: unknown;
8273
+ };
8274
+ content?: never;
8275
+ };
8276
+ };
8277
+ };
8194
8278
  reorderCompanyMdContextBankItem: {
8195
8279
  parameters: {
8196
8280
  query?: never;
@@ -25,6 +25,8 @@ export const openApiRoutes = {
25
25
  '/api/company-md/access-requests/{id}/deny': ['POST'],
26
26
  '/api/company-md/context-bank': ['POST'],
27
27
  '/api/company-md/context-bank/search': ['GET'],
28
+ '/api/company-md/context-bank/{contextDocId}/attachments': ['GET'],
29
+ '/api/company-md/context-bank/{contextDocId}/detach': ['POST'],
28
30
  '/api/company-md/docs/:id/context-bank/suggestions': ['GET'],
29
31
  '/api/company-md/docs/{id}': ['GET'],
30
32
  '/api/company-md/docs/{id}/access-requests': ['GET', 'POST'],
@@ -66,7 +66,7 @@ export const AclListResponseSchema = z.object({
66
66
  visibility: EntityVisibilitySchema,
67
67
  /**
68
68
  * The ROLE the general-access scope grants its audience: WHAT they may do (the
69
- * capability axis, ADR-BE-375). Orthogonal to `visibility` — e.g. "Everyone in
69
+ * capability axis, ADR-BE-378). Orthogonal to `visibility` — e.g. "Everyone in
70
70
  * Product · Commenter". Defaults to `viewer` (the historical view-only band);
71
71
  * ignored when `visibility` is `private` (no general grant).
72
72
  */
@@ -80,7 +80,7 @@ export const VisibilityPatchRequestSchema = z.object({
80
80
  /** The general-access scope (WHO is eligible). */
81
81
  tier: EntityVisibilitySchema,
82
82
  /**
83
- * The role granted to that scope (WHAT they may do, ADR-BE-375). Optional and
83
+ * The role granted to that scope (WHAT they may do, ADR-BE-378). Optional and
84
84
  * backward-compatible: omitted preserves the current role (or `viewer` on first
85
85
  * set); ignored when `tier` is `private`.
86
86
  */