@opencxh/domain 1.264.0 → 1.264.3
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MemoryKindId,
|
|
1
|
+
import { MemoryKindId, MemorySubjectKey } from './item';
|
|
2
2
|
/**
|
|
3
3
|
* Writing is a **CAS upsert**, not a snapshot replace like analytics.
|
|
4
4
|
*
|
|
@@ -28,7 +28,6 @@ export interface MemoryUpsertRequest {
|
|
|
28
28
|
/** Omit it: the hub extracts keywords from title + body itself (one tokenizer, write and read). */
|
|
29
29
|
keywords?: string[];
|
|
30
30
|
tags?: string[];
|
|
31
|
-
links?: MemoryLink[];
|
|
32
31
|
}
|
|
33
32
|
export type MemoryUpsertRejection = "stale-version" | "stale-watermark" | "unknown-kind" | "kind-disabled" | "subject-kind-mismatch" | "not-owner";
|
|
34
33
|
export interface MemoryUpsertResult {
|
|
@@ -9,17 +9,6 @@
|
|
|
9
9
|
export type MemorySubjectKey = string;
|
|
10
10
|
/** `comms.resolution` (app-declared) or `sales_besluitvormer` (org-owned). */
|
|
11
11
|
export type MemoryKindId = string;
|
|
12
|
-
/**
|
|
13
|
-
* A reference to something else — internal (`interaction:i_2`) or external (`hubspot:5591`,
|
|
14
|
-
* `clickup:86ab2`).
|
|
15
|
-
*
|
|
16
|
-
* A **list**, never an object keyed by the relation: **the same `rel` may occur twice** — two
|
|
17
|
-
* linked companies, three involved interactions — and a map would throw one away.
|
|
18
|
-
*/
|
|
19
|
-
export interface MemoryLink {
|
|
20
|
-
rel: string;
|
|
21
|
-
target: string;
|
|
22
|
-
}
|
|
23
12
|
/** Hard limit on the body. Memory is a summary; it is not a shadow copy of a mailbox. */
|
|
24
13
|
export declare const MAX_MEMORY_CHARS = 2000;
|
|
25
14
|
export interface MemoryItem {
|
|
@@ -91,7 +80,6 @@ export interface MemoryItem {
|
|
|
91
80
|
keywords?: string[];
|
|
92
81
|
/** Fast alternative keys, e.g. `tel:+31612345678` for the moment the phone rings. */
|
|
93
82
|
tags?: string[];
|
|
94
|
-
links?: MemoryLink[];
|
|
95
83
|
/** Model the vector was made with; retrieval only compares within the same model. */
|
|
96
84
|
embeddingModel?: string;
|
|
97
85
|
/** From a live pull (phase 3); never persisted. */
|