@company-semantics/contracts 85.1.0 → 85.3.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": "85.1.0",
3
+ "version": "85.3.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 = '90f648ff0c6c' as const;
3
- export const SPEC_HASH_FULL = '90f648ff0c6cb1f68e7ffaaa08a4e2606b111519803a5fe0346970679dda43ba' as const;
2
+ export const SPEC_HASH = '2e58fba933bb' as const;
3
+ export const SPEC_HASH_FULL = '2e58fba933bbbd6356dcac9c8e3f4735c6c7556dd205e4fe9ac6d18be8517395' as const;
@@ -6925,7 +6925,7 @@ export interface components {
6925
6925
  CompanyMdSearchResponse: {
6926
6926
  hits: {
6927
6927
  /** @enum {string} */
6928
- sourceKind: "docs" | "slack" | "meetings";
6928
+ sourceKind: "docs" | "slack" | "meetings" | "org_facts";
6929
6929
  documentId: string;
6930
6930
  recordingId: string | null;
6931
6931
  title: string | null;
@@ -6933,18 +6933,45 @@ export interface components {
6933
6933
  score: number;
6934
6934
  /** @enum {string} */
6935
6935
  matchedVia: "fts" | "vector";
6936
+ /** @description Where the hit came from, projected per reader after admission; [] when none. */
6937
+ citations: ({
6938
+ /** @constant */
6939
+ kind: "company_md_section";
6940
+ docId: string;
6941
+ sectionAnchor: string;
6942
+ versionId: string | null;
6943
+ } | {
6944
+ /** @constant */
6945
+ kind: "landed_source";
6946
+ sourceId: string | null;
6947
+ title: string | null;
6948
+ classLabel: string;
6949
+ /** @enum {string} */
6950
+ use: "attached" | "direction_only";
6951
+ withheld: boolean;
6952
+ sectionAnchor: string;
6953
+ } | {
6954
+ /** @constant */
6955
+ kind: "org_fact";
6956
+ /** @enum {string} */
6957
+ entity: "unit" | "member";
6958
+ entityId: string;
6959
+ /** @enum {string} */
6960
+ authority: "system_of_record" | "human_confirmed" | "ai_inferred";
6961
+ })[];
6936
6962
  }[];
6937
- searchedSources: ("docs" | "slack" | "meetings")[];
6963
+ searchedSources: ("docs" | "slack" | "meetings" | "org_facts")[];
6938
6964
  };
6939
6965
  /** @description A Company.md retrieval query with optional per-source opt-in. */
6940
6966
  CompanyMdSearchRequest: {
6941
6967
  query: string;
6942
6968
  limit?: number;
6943
- /** @description Per-source opt-in. Server defaults: docs/slack ON, meetings OFF (INV-MTG-23) — applied even when this object or the meetings field is omitted. */
6969
+ /** @description Per-source opt-in. Server defaults: docs/slack/org facts ON, meetings OFF (INV-MTG-23) — applied even when this object or the meetings field is omitted. */
6944
6970
  includeSources?: {
6945
6971
  docs?: boolean;
6946
6972
  slack?: boolean;
6947
6973
  meetings?: boolean;
6974
+ orgFacts?: boolean;
6948
6975
  };
6949
6976
  };
6950
6977
  CompanyMdShareResponse: {
@@ -9598,6 +9625,7 @@ export interface components {
9598
9625
  /** Format: date-time */
9599
9626
  lastObservedAt: string;
9600
9627
  dismissedAt: string | null;
9628
+ fingerprint?: string;
9601
9629
  }[];
9602
9630
  };
9603
9631
  SourceSyncFinding: {
@@ -9622,6 +9650,7 @@ export interface components {
9622
9650
  /** Format: date-time */
9623
9651
  lastObservedAt: string;
9624
9652
  dismissedAt: string | null;
9653
+ fingerprint?: string;
9625
9654
  };
9626
9655
  SourceSyncDismissFindingRequest: {
9627
9656
  note?: string;
@@ -54,6 +54,11 @@ export const SourceSyncFindingSchema = z.object({
54
54
  firstObservedAt: IsoDateTime,
55
55
  lastObservedAt: IsoDateTime,
56
56
  dismissedAt: IsoDateTime.nullable(),
57
+ /**
58
+ * What the finding says right now, as the reader saw it. A dismissal sends it
59
+ * back as `expectedFingerprint`. Optional while the backend starts sending it.
60
+ */
61
+ fingerprint: z.string().length(32).optional(),
57
62
  });
58
63
 
59
64
  export const SourceSyncFindingsResponseSchema = z.object({