@stacklink/sdk 0.2.0 → 0.2.2
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/README.md +10 -0
- package/compatibility.json +1 -1
- package/dist/src/domain/memory-contract.d.ts +1497 -335
- package/dist/src/domain/memory-contract.d.ts.map +1 -1
- package/dist/src/domain/memory-contract.js +330 -59
- package/dist/src/domain/memory-contract.js.map +1 -1
- package/dist/src/domain/provider-branding.d.ts +1 -1
- package/dist/src/domain/provider-branding.d.ts.map +1 -1
- package/dist/src/domain/provider-branding.js +296 -8
- package/dist/src/domain/provider-branding.js.map +1 -1
- package/dist/src/domain/stacklink-meta-tools.d.ts +14 -16
- package/dist/src/domain/stacklink-meta-tools.d.ts.map +1 -1
- package/dist/src/domain/stacklink-meta-tools.js +205 -127
- package/dist/src/domain/stacklink-meta-tools.js.map +1 -1
- package/dist/src/sdk/framework-tools.d.ts +3 -2
- package/dist/src/sdk/framework-tools.d.ts.map +1 -1
- package/dist/src/sdk/framework-tools.js +1 -0
- package/dist/src/sdk/framework-tools.js.map +1 -1
- package/dist/src/sdk/index.d.ts +280 -142
- package/dist/src/sdk/index.d.ts.map +1 -1
- package/dist/src/sdk/index.js +433 -224
- package/dist/src/sdk/index.js.map +1 -1
- package/dist/src/sdk/langchain.d.ts +7 -2
- package/dist/src/sdk/langchain.d.ts.map +1 -1
- package/dist/src/sdk/langchain.js +3 -2
- package/dist/src/sdk/langchain.js.map +1 -1
- package/dist/src/sdk/memory-lifecycle.d.ts +25 -0
- package/dist/src/sdk/memory-lifecycle.d.ts.map +1 -1
- package/dist/src/sdk/memory-lifecycle.js +75 -1
- package/dist/src/sdk/memory-lifecycle.js.map +1 -1
- package/dist/src/sdk/openai-agents.d.ts +6 -6
- package/dist/src/sdk/openai-agents.d.ts.map +1 -1
- package/dist/src/sdk/openai-agents.js +21 -16
- package/dist/src/sdk/openai-agents.js.map +1 -1
- package/dist/src/sdk/openai.d.ts +2 -2
- package/dist/src/sdk/openai.d.ts.map +1 -1
- package/dist/src/sdk/openai.js +67 -31
- package/dist/src/sdk/openai.js.map +1 -1
- package/dist/src/sdk/vercel-ai.d.ts +11 -4
- package/dist/src/sdk/vercel-ai.d.ts.map +1 -1
- package/dist/src/sdk/vercel-ai.js +21 -6
- package/dist/src/sdk/vercel-ai.js.map +1 -1
- package/package.json +1 -1
- package/dist/src/domain/knowledge-meta-tools.d.ts +0 -12
- package/dist/src/domain/knowledge-meta-tools.d.ts.map +0 -1
- package/dist/src/domain/knowledge-meta-tools.js +0 -38
- package/dist/src/domain/knowledge-meta-tools.js.map +0 -1
- package/dist/src/domain/memory-meta-tools.d.ts +0 -5
- package/dist/src/domain/memory-meta-tools.d.ts.map +0 -1
- package/dist/src/domain/memory-meta-tools.js +0 -18
- package/dist/src/domain/memory-meta-tools.js.map +0 -1
- package/dist/src/domain/platform-mcp-tools.d.ts +0 -3
- package/dist/src/domain/platform-mcp-tools.d.ts.map +0 -1
- package/dist/src/domain/platform-mcp-tools.js +0 -30
- package/dist/src/domain/platform-mcp-tools.js.map +0 -1
|
@@ -5,6 +5,100 @@ export declare const memoryAutomaticRecordKinds: readonly ["fact", "episode"];
|
|
|
5
5
|
export declare const memoryTypes: readonly ["preference", "decision", "commitment", "goal", "constraint", "relationship", "durable_fact"];
|
|
6
6
|
export type MemoryType = typeof memoryTypes[number];
|
|
7
7
|
export declare const memorySensitivityClasses: readonly ["standard", "personal", "restricted", "secret"];
|
|
8
|
+
export declare const memorySourceClasses: readonly ["human_communication", "structured_temporal", "structured_profile", "authored_document", "operational_event", "external_feed"];
|
|
9
|
+
export declare const memoryAuthorshipClasses: readonly ["connected_user", "other_human", "bot", "application", "system", "unknown"];
|
|
10
|
+
export declare const memoryAdmissionBases: readonly ["self_authored", "provider_structured_state", "attributed_third_party", "tool_execution", "user_confirmed"];
|
|
11
|
+
export declare const memoryDurabilities: readonly ["durable", "episodic", "transient"];
|
|
12
|
+
export declare const memoryQualityRatingClasses: readonly ["low", "medium", "high"];
|
|
13
|
+
export declare const memoryDestinations: readonly ["durable_memory", "episodic_memory", "restricted_candidate", "source_only", "reject_noise"];
|
|
14
|
+
export declare const memoryRetentionAdmissionStatuses: readonly ["memory", "source_only", "reject_noise", "uncertain"];
|
|
15
|
+
export declare const memoryQualityContractVersion: 1;
|
|
16
|
+
export declare const memoryProviderQualityContextSchema: z.ZodObject<{
|
|
17
|
+
authorshipBoundary: z.ZodOptional<z.ZodEnum<["exact_source_unit", "message_may_include_quotes"]>>;
|
|
18
|
+
contract: z.ZodLiteral<"stacklink.memory.source-quality.v1">;
|
|
19
|
+
qualityContractVersion: z.ZodLiteral<1>;
|
|
20
|
+
sourceClass: z.ZodEnum<["human_communication", "structured_temporal", "structured_profile", "authored_document", "operational_event", "external_feed"]>;
|
|
21
|
+
authorshipClass: z.ZodEnum<["connected_user", "other_human", "bot", "application", "system", "unknown"]>;
|
|
22
|
+
admissionBasis: z.ZodEnum<["self_authored", "provider_structured_state", "attributed_third_party", "tool_execution", "user_confirmed"]>;
|
|
23
|
+
actorCanonicalKey: z.ZodNullable<z.ZodString>;
|
|
24
|
+
actors: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
25
|
+
canonicalKey: z.ZodString;
|
|
26
|
+
authorshipClass: z.ZodEnum<["connected_user", "other_human", "bot", "application", "system", "unknown"]>;
|
|
27
|
+
admissionBasis: z.ZodEnum<["self_authored", "provider_structured_state", "attributed_third_party", "tool_execution", "user_confirmed"]>;
|
|
28
|
+
defaultDestination: z.ZodEnum<["durable_memory", "episodic_memory", "restricted_candidate", "source_only", "reject_noise"]>;
|
|
29
|
+
allowedMemoryTypes: z.ZodArray<z.ZodEnum<["preference", "decision", "commitment", "goal", "constraint", "relationship", "durable_fact"]>, "many">;
|
|
30
|
+
}, "strict", z.ZodTypeAny, {
|
|
31
|
+
authorshipClass: "bot" | "application" | "connected_user" | "other_human" | "system" | "unknown";
|
|
32
|
+
admissionBasis: "self_authored" | "provider_structured_state" | "attributed_third_party" | "tool_execution" | "user_confirmed";
|
|
33
|
+
canonicalKey: string;
|
|
34
|
+
defaultDestination: "durable_memory" | "episodic_memory" | "restricted_candidate" | "source_only" | "reject_noise";
|
|
35
|
+
allowedMemoryTypes: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
|
|
36
|
+
}, {
|
|
37
|
+
authorshipClass: "bot" | "application" | "connected_user" | "other_human" | "system" | "unknown";
|
|
38
|
+
admissionBasis: "self_authored" | "provider_structured_state" | "attributed_third_party" | "tool_execution" | "user_confirmed";
|
|
39
|
+
canonicalKey: string;
|
|
40
|
+
defaultDestination: "durable_memory" | "episodic_memory" | "restricted_candidate" | "source_only" | "reject_noise";
|
|
41
|
+
allowedMemoryTypes: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
|
|
42
|
+
}>, "many">>;
|
|
43
|
+
connectedUserCanonicalKey: z.ZodNullable<z.ZodString>;
|
|
44
|
+
allowConnectedUserIntent: z.ZodBoolean;
|
|
45
|
+
allowedMemoryTypes: z.ZodArray<z.ZodEnum<["preference", "decision", "commitment", "goal", "constraint", "relationship", "durable_fact"]>, "many">;
|
|
46
|
+
defaultDestination: z.ZodEnum<["durable_memory", "episodic_memory", "restricted_candidate", "source_only", "reject_noise"]>;
|
|
47
|
+
defaultDurability: z.ZodEnum<["durable", "episodic", "transient"]>;
|
|
48
|
+
attachmentsIncluded: z.ZodBoolean;
|
|
49
|
+
hardExclusionSignals: z.ZodArray<z.ZodString, "many">;
|
|
50
|
+
validFrom: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
51
|
+
validTo: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
52
|
+
}, "strict", z.ZodTypeAny, {
|
|
53
|
+
contract: "stacklink.memory.source-quality.v1";
|
|
54
|
+
qualityContractVersion: 1;
|
|
55
|
+
sourceClass: "human_communication" | "structured_temporal" | "structured_profile" | "authored_document" | "operational_event" | "external_feed";
|
|
56
|
+
authorshipClass: "bot" | "application" | "connected_user" | "other_human" | "system" | "unknown";
|
|
57
|
+
admissionBasis: "self_authored" | "provider_structured_state" | "attributed_third_party" | "tool_execution" | "user_confirmed";
|
|
58
|
+
actorCanonicalKey: string | null;
|
|
59
|
+
defaultDestination: "durable_memory" | "episodic_memory" | "restricted_candidate" | "source_only" | "reject_noise";
|
|
60
|
+
allowedMemoryTypes: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
|
|
61
|
+
actors: {
|
|
62
|
+
authorshipClass: "bot" | "application" | "connected_user" | "other_human" | "system" | "unknown";
|
|
63
|
+
admissionBasis: "self_authored" | "provider_structured_state" | "attributed_third_party" | "tool_execution" | "user_confirmed";
|
|
64
|
+
canonicalKey: string;
|
|
65
|
+
defaultDestination: "durable_memory" | "episodic_memory" | "restricted_candidate" | "source_only" | "reject_noise";
|
|
66
|
+
allowedMemoryTypes: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
|
|
67
|
+
}[];
|
|
68
|
+
connectedUserCanonicalKey: string | null;
|
|
69
|
+
allowConnectedUserIntent: boolean;
|
|
70
|
+
defaultDurability: "durable" | "episodic" | "transient";
|
|
71
|
+
attachmentsIncluded: boolean;
|
|
72
|
+
hardExclusionSignals: string[];
|
|
73
|
+
validFrom: string | null;
|
|
74
|
+
validTo: string | null;
|
|
75
|
+
authorshipBoundary?: "exact_source_unit" | "message_may_include_quotes" | undefined;
|
|
76
|
+
}, {
|
|
77
|
+
contract: "stacklink.memory.source-quality.v1";
|
|
78
|
+
qualityContractVersion: 1;
|
|
79
|
+
sourceClass: "human_communication" | "structured_temporal" | "structured_profile" | "authored_document" | "operational_event" | "external_feed";
|
|
80
|
+
authorshipClass: "bot" | "application" | "connected_user" | "other_human" | "system" | "unknown";
|
|
81
|
+
admissionBasis: "self_authored" | "provider_structured_state" | "attributed_third_party" | "tool_execution" | "user_confirmed";
|
|
82
|
+
actorCanonicalKey: string | null;
|
|
83
|
+
defaultDestination: "durable_memory" | "episodic_memory" | "restricted_candidate" | "source_only" | "reject_noise";
|
|
84
|
+
allowedMemoryTypes: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
|
|
85
|
+
connectedUserCanonicalKey: string | null;
|
|
86
|
+
allowConnectedUserIntent: boolean;
|
|
87
|
+
defaultDurability: "durable" | "episodic" | "transient";
|
|
88
|
+
attachmentsIncluded: boolean;
|
|
89
|
+
hardExclusionSignals: string[];
|
|
90
|
+
authorshipBoundary?: "exact_source_unit" | "message_may_include_quotes" | undefined;
|
|
91
|
+
actors?: {
|
|
92
|
+
authorshipClass: "bot" | "application" | "connected_user" | "other_human" | "system" | "unknown";
|
|
93
|
+
admissionBasis: "self_authored" | "provider_structured_state" | "attributed_third_party" | "tool_execution" | "user_confirmed";
|
|
94
|
+
canonicalKey: string;
|
|
95
|
+
defaultDestination: "durable_memory" | "episodic_memory" | "restricted_candidate" | "source_only" | "reject_noise";
|
|
96
|
+
allowedMemoryTypes: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
|
|
97
|
+
}[] | undefined;
|
|
98
|
+
validFrom?: string | null | undefined;
|
|
99
|
+
validTo?: string | null | undefined;
|
|
100
|
+
}>;
|
|
101
|
+
export type MemoryProviderQualityContext = z.infer<typeof memoryProviderQualityContextSchema>;
|
|
8
102
|
export declare const memoryRestrictedDataClasses: readonly ["health", "biometric", "government_identity", "precise_location", "protected_trait", "minor", "detailed_personal_financial"];
|
|
9
103
|
export declare const memoryRecordStates: readonly ["current", "conflicted", "forgotten"];
|
|
10
104
|
export declare const memoryRecallableRecordStates: readonly ["current", "conflicted"];
|
|
@@ -28,12 +122,12 @@ export declare const memoryConsentProofSchema: z.ZodObject<{
|
|
|
28
122
|
reference: z.ZodOptional<z.ZodString>;
|
|
29
123
|
}, "strict", z.ZodTypeAny, {
|
|
30
124
|
status: "granted";
|
|
31
|
-
basis: "
|
|
125
|
+
basis: "contract" | "user_consent" | "legitimate_interest" | "project_policy";
|
|
32
126
|
recordedAt: string;
|
|
33
127
|
reference?: string | undefined;
|
|
34
128
|
}, {
|
|
35
129
|
status: "granted";
|
|
36
|
-
basis: "
|
|
130
|
+
basis: "contract" | "user_consent" | "legitimate_interest" | "project_policy";
|
|
37
131
|
recordedAt: string;
|
|
38
132
|
reference?: string | undefined;
|
|
39
133
|
}>;
|
|
@@ -50,22 +144,172 @@ export declare const memoryTenantSelectorSchema: z.ZodEffects<z.ZodObject<{
|
|
|
50
144
|
externalTenantId: z.ZodOptional<z.ZodString>;
|
|
51
145
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
52
146
|
}, "strip", z.ZodTypeAny, {
|
|
53
|
-
tenantId?: string | undefined;
|
|
54
147
|
sessionId?: string | undefined;
|
|
148
|
+
tenantId?: string | undefined;
|
|
55
149
|
externalTenantId?: string | undefined;
|
|
56
150
|
}, {
|
|
57
|
-
tenantId?: string | undefined;
|
|
58
151
|
sessionId?: string | undefined;
|
|
152
|
+
tenantId?: string | undefined;
|
|
59
153
|
externalTenantId?: string | undefined;
|
|
60
154
|
}>, {
|
|
61
|
-
tenantId?: string | undefined;
|
|
62
155
|
sessionId?: string | undefined;
|
|
156
|
+
tenantId?: string | undefined;
|
|
63
157
|
externalTenantId?: string | undefined;
|
|
64
158
|
}, {
|
|
65
|
-
tenantId?: string | undefined;
|
|
66
159
|
sessionId?: string | undefined;
|
|
160
|
+
tenantId?: string | undefined;
|
|
67
161
|
externalTenantId?: string | undefined;
|
|
68
162
|
}>;
|
|
163
|
+
/** Minimal retained provenance, independent of the original source payload. */
|
|
164
|
+
export declare const memoryEvidenceReferenceSchema: z.ZodObject<{
|
|
165
|
+
contract: z.ZodDefault<z.ZodLiteral<"stacklink.memory.evidence.v1">>;
|
|
166
|
+
kind: z.ZodEnum<["email", "message", "object", "conversation", "file", "manual", "api", "unknown"]>;
|
|
167
|
+
href: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
168
|
+
availability: z.ZodDefault<z.ZodEnum<["available", "deleted", "unknown"]>>;
|
|
169
|
+
from: z.ZodOptional<z.ZodObject<{
|
|
170
|
+
name: z.ZodString;
|
|
171
|
+
address: z.ZodOptional<z.ZodString>;
|
|
172
|
+
}, "strip", z.ZodTypeAny, {
|
|
173
|
+
name: string;
|
|
174
|
+
address?: string | undefined;
|
|
175
|
+
}, {
|
|
176
|
+
name: string;
|
|
177
|
+
address?: string | undefined;
|
|
178
|
+
}>>;
|
|
179
|
+
subject: z.ZodOptional<z.ZodString>;
|
|
180
|
+
channel: z.ZodOptional<z.ZodString>;
|
|
181
|
+
object: z.ZodOptional<z.ZodObject<{
|
|
182
|
+
kind: z.ZodString;
|
|
183
|
+
name: z.ZodString;
|
|
184
|
+
id: z.ZodString;
|
|
185
|
+
observed: z.ZodOptional<z.ZodString>;
|
|
186
|
+
}, "strip", z.ZodTypeAny, {
|
|
187
|
+
id: string;
|
|
188
|
+
name: string;
|
|
189
|
+
kind: string;
|
|
190
|
+
observed?: string | undefined;
|
|
191
|
+
}, {
|
|
192
|
+
id: string;
|
|
193
|
+
name: string;
|
|
194
|
+
kind: string;
|
|
195
|
+
observed?: string | undefined;
|
|
196
|
+
}>>;
|
|
197
|
+
fields: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
198
|
+
label: z.ZodString;
|
|
199
|
+
before: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
200
|
+
after: z.ZodString;
|
|
201
|
+
}, "strip", z.ZodTypeAny, {
|
|
202
|
+
label: string;
|
|
203
|
+
after: string;
|
|
204
|
+
before?: string | null | undefined;
|
|
205
|
+
}, {
|
|
206
|
+
label: string;
|
|
207
|
+
after: string;
|
|
208
|
+
before?: string | null | undefined;
|
|
209
|
+
}>, "many">>;
|
|
210
|
+
conversation: z.ZodOptional<z.ZodObject<{
|
|
211
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
212
|
+
turn: z.ZodOptional<z.ZodString>;
|
|
213
|
+
speaker: z.ZodOptional<z.ZodString>;
|
|
214
|
+
assistant: z.ZodOptional<z.ZodBoolean>;
|
|
215
|
+
}, "strip", z.ZodTypeAny, {
|
|
216
|
+
sessionId?: string | undefined;
|
|
217
|
+
turn?: string | undefined;
|
|
218
|
+
speaker?: string | undefined;
|
|
219
|
+
assistant?: boolean | undefined;
|
|
220
|
+
}, {
|
|
221
|
+
sessionId?: string | undefined;
|
|
222
|
+
turn?: string | undefined;
|
|
223
|
+
speaker?: string | undefined;
|
|
224
|
+
assistant?: boolean | undefined;
|
|
225
|
+
}>>;
|
|
226
|
+
file: z.ZodOptional<z.ZodObject<{
|
|
227
|
+
title: z.ZodString;
|
|
228
|
+
section: z.ZodOptional<z.ZodString>;
|
|
229
|
+
edited: z.ZodOptional<z.ZodString>;
|
|
230
|
+
}, "strip", z.ZodTypeAny, {
|
|
231
|
+
title: string;
|
|
232
|
+
section?: string | undefined;
|
|
233
|
+
edited?: string | undefined;
|
|
234
|
+
}, {
|
|
235
|
+
title: string;
|
|
236
|
+
section?: string | undefined;
|
|
237
|
+
edited?: string | undefined;
|
|
238
|
+
}>>;
|
|
239
|
+
by: z.ZodOptional<z.ZodString>;
|
|
240
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
241
|
+
}, "strict", z.ZodTypeAny, {
|
|
242
|
+
contract: "stacklink.memory.evidence.v1";
|
|
243
|
+
kind: "object" | "message" | "unknown" | "conversation" | "email" | "file" | "manual" | "api";
|
|
244
|
+
availability: "unknown" | "available" | "deleted";
|
|
245
|
+
object?: {
|
|
246
|
+
id: string;
|
|
247
|
+
name: string;
|
|
248
|
+
kind: string;
|
|
249
|
+
observed?: string | undefined;
|
|
250
|
+
} | undefined;
|
|
251
|
+
conversation?: {
|
|
252
|
+
sessionId?: string | undefined;
|
|
253
|
+
turn?: string | undefined;
|
|
254
|
+
speaker?: string | undefined;
|
|
255
|
+
assistant?: boolean | undefined;
|
|
256
|
+
} | undefined;
|
|
257
|
+
file?: {
|
|
258
|
+
title: string;
|
|
259
|
+
section?: string | undefined;
|
|
260
|
+
edited?: string | undefined;
|
|
261
|
+
} | undefined;
|
|
262
|
+
href?: string | undefined;
|
|
263
|
+
from?: {
|
|
264
|
+
name: string;
|
|
265
|
+
address?: string | undefined;
|
|
266
|
+
} | undefined;
|
|
267
|
+
subject?: string | undefined;
|
|
268
|
+
channel?: string | undefined;
|
|
269
|
+
fields?: {
|
|
270
|
+
label: string;
|
|
271
|
+
after: string;
|
|
272
|
+
before?: string | null | undefined;
|
|
273
|
+
}[] | undefined;
|
|
274
|
+
by?: string | undefined;
|
|
275
|
+
requestId?: string | undefined;
|
|
276
|
+
}, {
|
|
277
|
+
kind: "object" | "message" | "unknown" | "conversation" | "email" | "file" | "manual" | "api";
|
|
278
|
+
object?: {
|
|
279
|
+
id: string;
|
|
280
|
+
name: string;
|
|
281
|
+
kind: string;
|
|
282
|
+
observed?: string | undefined;
|
|
283
|
+
} | undefined;
|
|
284
|
+
contract?: "stacklink.memory.evidence.v1" | undefined;
|
|
285
|
+
conversation?: {
|
|
286
|
+
sessionId?: string | undefined;
|
|
287
|
+
turn?: string | undefined;
|
|
288
|
+
speaker?: string | undefined;
|
|
289
|
+
assistant?: boolean | undefined;
|
|
290
|
+
} | undefined;
|
|
291
|
+
file?: {
|
|
292
|
+
title: string;
|
|
293
|
+
section?: string | undefined;
|
|
294
|
+
edited?: string | undefined;
|
|
295
|
+
} | undefined;
|
|
296
|
+
href?: string | undefined;
|
|
297
|
+
availability?: "unknown" | "available" | "deleted" | undefined;
|
|
298
|
+
from?: {
|
|
299
|
+
name: string;
|
|
300
|
+
address?: string | undefined;
|
|
301
|
+
} | undefined;
|
|
302
|
+
subject?: string | undefined;
|
|
303
|
+
channel?: string | undefined;
|
|
304
|
+
fields?: {
|
|
305
|
+
label: string;
|
|
306
|
+
after: string;
|
|
307
|
+
before?: string | null | undefined;
|
|
308
|
+
}[] | undefined;
|
|
309
|
+
by?: string | undefined;
|
|
310
|
+
requestId?: string | undefined;
|
|
311
|
+
}>;
|
|
312
|
+
export type MemoryEvidenceReference = z.input<typeof memoryEvidenceReferenceSchema>;
|
|
69
313
|
export declare const memoryIngestInputSchema: z.ZodEffects<z.ZodObject<{
|
|
70
314
|
occurredAt: z.ZodOptional<z.ZodString>;
|
|
71
315
|
validFrom: z.ZodOptional<z.ZodString>;
|
|
@@ -101,24 +345,244 @@ export declare const memoryIngestInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
101
345
|
resourceId: z.ZodOptional<z.ZodString>;
|
|
102
346
|
toolExecutionId: z.ZodOptional<z.ZodString>;
|
|
103
347
|
applicationKey: z.ZodOptional<z.ZodString>;
|
|
348
|
+
evidence: z.ZodOptional<z.ZodObject<{
|
|
349
|
+
contract: z.ZodDefault<z.ZodLiteral<"stacklink.memory.evidence.v1">>;
|
|
350
|
+
kind: z.ZodEnum<["email", "message", "object", "conversation", "file", "manual", "api", "unknown"]>;
|
|
351
|
+
href: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
352
|
+
availability: z.ZodDefault<z.ZodEnum<["available", "deleted", "unknown"]>>;
|
|
353
|
+
from: z.ZodOptional<z.ZodObject<{
|
|
354
|
+
name: z.ZodString;
|
|
355
|
+
address: z.ZodOptional<z.ZodString>;
|
|
356
|
+
}, "strip", z.ZodTypeAny, {
|
|
357
|
+
name: string;
|
|
358
|
+
address?: string | undefined;
|
|
359
|
+
}, {
|
|
360
|
+
name: string;
|
|
361
|
+
address?: string | undefined;
|
|
362
|
+
}>>;
|
|
363
|
+
subject: z.ZodOptional<z.ZodString>;
|
|
364
|
+
channel: z.ZodOptional<z.ZodString>;
|
|
365
|
+
object: z.ZodOptional<z.ZodObject<{
|
|
366
|
+
kind: z.ZodString;
|
|
367
|
+
name: z.ZodString;
|
|
368
|
+
id: z.ZodString;
|
|
369
|
+
observed: z.ZodOptional<z.ZodString>;
|
|
370
|
+
}, "strip", z.ZodTypeAny, {
|
|
371
|
+
id: string;
|
|
372
|
+
name: string;
|
|
373
|
+
kind: string;
|
|
374
|
+
observed?: string | undefined;
|
|
375
|
+
}, {
|
|
376
|
+
id: string;
|
|
377
|
+
name: string;
|
|
378
|
+
kind: string;
|
|
379
|
+
observed?: string | undefined;
|
|
380
|
+
}>>;
|
|
381
|
+
fields: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
382
|
+
label: z.ZodString;
|
|
383
|
+
before: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
384
|
+
after: z.ZodString;
|
|
385
|
+
}, "strip", z.ZodTypeAny, {
|
|
386
|
+
label: string;
|
|
387
|
+
after: string;
|
|
388
|
+
before?: string | null | undefined;
|
|
389
|
+
}, {
|
|
390
|
+
label: string;
|
|
391
|
+
after: string;
|
|
392
|
+
before?: string | null | undefined;
|
|
393
|
+
}>, "many">>;
|
|
394
|
+
conversation: z.ZodOptional<z.ZodObject<{
|
|
395
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
396
|
+
turn: z.ZodOptional<z.ZodString>;
|
|
397
|
+
speaker: z.ZodOptional<z.ZodString>;
|
|
398
|
+
assistant: z.ZodOptional<z.ZodBoolean>;
|
|
399
|
+
}, "strip", z.ZodTypeAny, {
|
|
400
|
+
sessionId?: string | undefined;
|
|
401
|
+
turn?: string | undefined;
|
|
402
|
+
speaker?: string | undefined;
|
|
403
|
+
assistant?: boolean | undefined;
|
|
404
|
+
}, {
|
|
405
|
+
sessionId?: string | undefined;
|
|
406
|
+
turn?: string | undefined;
|
|
407
|
+
speaker?: string | undefined;
|
|
408
|
+
assistant?: boolean | undefined;
|
|
409
|
+
}>>;
|
|
410
|
+
file: z.ZodOptional<z.ZodObject<{
|
|
411
|
+
title: z.ZodString;
|
|
412
|
+
section: z.ZodOptional<z.ZodString>;
|
|
413
|
+
edited: z.ZodOptional<z.ZodString>;
|
|
414
|
+
}, "strip", z.ZodTypeAny, {
|
|
415
|
+
title: string;
|
|
416
|
+
section?: string | undefined;
|
|
417
|
+
edited?: string | undefined;
|
|
418
|
+
}, {
|
|
419
|
+
title: string;
|
|
420
|
+
section?: string | undefined;
|
|
421
|
+
edited?: string | undefined;
|
|
422
|
+
}>>;
|
|
423
|
+
by: z.ZodOptional<z.ZodString>;
|
|
424
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
425
|
+
}, "strict", z.ZodTypeAny, {
|
|
426
|
+
contract: "stacklink.memory.evidence.v1";
|
|
427
|
+
kind: "object" | "message" | "unknown" | "conversation" | "email" | "file" | "manual" | "api";
|
|
428
|
+
availability: "unknown" | "available" | "deleted";
|
|
429
|
+
object?: {
|
|
430
|
+
id: string;
|
|
431
|
+
name: string;
|
|
432
|
+
kind: string;
|
|
433
|
+
observed?: string | undefined;
|
|
434
|
+
} | undefined;
|
|
435
|
+
conversation?: {
|
|
436
|
+
sessionId?: string | undefined;
|
|
437
|
+
turn?: string | undefined;
|
|
438
|
+
speaker?: string | undefined;
|
|
439
|
+
assistant?: boolean | undefined;
|
|
440
|
+
} | undefined;
|
|
441
|
+
file?: {
|
|
442
|
+
title: string;
|
|
443
|
+
section?: string | undefined;
|
|
444
|
+
edited?: string | undefined;
|
|
445
|
+
} | undefined;
|
|
446
|
+
href?: string | undefined;
|
|
447
|
+
from?: {
|
|
448
|
+
name: string;
|
|
449
|
+
address?: string | undefined;
|
|
450
|
+
} | undefined;
|
|
451
|
+
subject?: string | undefined;
|
|
452
|
+
channel?: string | undefined;
|
|
453
|
+
fields?: {
|
|
454
|
+
label: string;
|
|
455
|
+
after: string;
|
|
456
|
+
before?: string | null | undefined;
|
|
457
|
+
}[] | undefined;
|
|
458
|
+
by?: string | undefined;
|
|
459
|
+
requestId?: string | undefined;
|
|
460
|
+
}, {
|
|
461
|
+
kind: "object" | "message" | "unknown" | "conversation" | "email" | "file" | "manual" | "api";
|
|
462
|
+
object?: {
|
|
463
|
+
id: string;
|
|
464
|
+
name: string;
|
|
465
|
+
kind: string;
|
|
466
|
+
observed?: string | undefined;
|
|
467
|
+
} | undefined;
|
|
468
|
+
contract?: "stacklink.memory.evidence.v1" | undefined;
|
|
469
|
+
conversation?: {
|
|
470
|
+
sessionId?: string | undefined;
|
|
471
|
+
turn?: string | undefined;
|
|
472
|
+
speaker?: string | undefined;
|
|
473
|
+
assistant?: boolean | undefined;
|
|
474
|
+
} | undefined;
|
|
475
|
+
file?: {
|
|
476
|
+
title: string;
|
|
477
|
+
section?: string | undefined;
|
|
478
|
+
edited?: string | undefined;
|
|
479
|
+
} | undefined;
|
|
480
|
+
href?: string | undefined;
|
|
481
|
+
availability?: "unknown" | "available" | "deleted" | undefined;
|
|
482
|
+
from?: {
|
|
483
|
+
name: string;
|
|
484
|
+
address?: string | undefined;
|
|
485
|
+
} | undefined;
|
|
486
|
+
subject?: string | undefined;
|
|
487
|
+
channel?: string | undefined;
|
|
488
|
+
fields?: {
|
|
489
|
+
label: string;
|
|
490
|
+
after: string;
|
|
491
|
+
before?: string | null | undefined;
|
|
492
|
+
}[] | undefined;
|
|
493
|
+
by?: string | undefined;
|
|
494
|
+
requestId?: string | undefined;
|
|
495
|
+
}>>;
|
|
104
496
|
}, "strict", z.ZodTypeAny, {
|
|
105
|
-
kind: "artifact" | "
|
|
106
|
-
providerKey?: string | undefined;
|
|
497
|
+
kind: "artifact" | "tool_execution" | "direct" | "conversation" | "document" | "provider";
|
|
107
498
|
externalId?: string | undefined;
|
|
499
|
+
providerKey?: string | undefined;
|
|
108
500
|
connectedAccountId?: string | undefined;
|
|
109
501
|
resourceType?: string | undefined;
|
|
110
502
|
resourceId?: string | undefined;
|
|
111
503
|
toolExecutionId?: string | undefined;
|
|
112
504
|
applicationKey?: string | undefined;
|
|
505
|
+
evidence?: {
|
|
506
|
+
contract: "stacklink.memory.evidence.v1";
|
|
507
|
+
kind: "object" | "message" | "unknown" | "conversation" | "email" | "file" | "manual" | "api";
|
|
508
|
+
availability: "unknown" | "available" | "deleted";
|
|
509
|
+
object?: {
|
|
510
|
+
id: string;
|
|
511
|
+
name: string;
|
|
512
|
+
kind: string;
|
|
513
|
+
observed?: string | undefined;
|
|
514
|
+
} | undefined;
|
|
515
|
+
conversation?: {
|
|
516
|
+
sessionId?: string | undefined;
|
|
517
|
+
turn?: string | undefined;
|
|
518
|
+
speaker?: string | undefined;
|
|
519
|
+
assistant?: boolean | undefined;
|
|
520
|
+
} | undefined;
|
|
521
|
+
file?: {
|
|
522
|
+
title: string;
|
|
523
|
+
section?: string | undefined;
|
|
524
|
+
edited?: string | undefined;
|
|
525
|
+
} | undefined;
|
|
526
|
+
href?: string | undefined;
|
|
527
|
+
from?: {
|
|
528
|
+
name: string;
|
|
529
|
+
address?: string | undefined;
|
|
530
|
+
} | undefined;
|
|
531
|
+
subject?: string | undefined;
|
|
532
|
+
channel?: string | undefined;
|
|
533
|
+
fields?: {
|
|
534
|
+
label: string;
|
|
535
|
+
after: string;
|
|
536
|
+
before?: string | null | undefined;
|
|
537
|
+
}[] | undefined;
|
|
538
|
+
by?: string | undefined;
|
|
539
|
+
requestId?: string | undefined;
|
|
540
|
+
} | undefined;
|
|
113
541
|
}, {
|
|
114
|
-
providerKey?: string | undefined;
|
|
115
542
|
externalId?: string | undefined;
|
|
116
|
-
kind?: "artifact" | "
|
|
543
|
+
kind?: "artifact" | "tool_execution" | "direct" | "conversation" | "document" | "provider" | undefined;
|
|
544
|
+
providerKey?: string | undefined;
|
|
117
545
|
connectedAccountId?: string | undefined;
|
|
118
546
|
resourceType?: string | undefined;
|
|
119
547
|
resourceId?: string | undefined;
|
|
120
548
|
toolExecutionId?: string | undefined;
|
|
121
549
|
applicationKey?: string | undefined;
|
|
550
|
+
evidence?: {
|
|
551
|
+
kind: "object" | "message" | "unknown" | "conversation" | "email" | "file" | "manual" | "api";
|
|
552
|
+
object?: {
|
|
553
|
+
id: string;
|
|
554
|
+
name: string;
|
|
555
|
+
kind: string;
|
|
556
|
+
observed?: string | undefined;
|
|
557
|
+
} | undefined;
|
|
558
|
+
contract?: "stacklink.memory.evidence.v1" | undefined;
|
|
559
|
+
conversation?: {
|
|
560
|
+
sessionId?: string | undefined;
|
|
561
|
+
turn?: string | undefined;
|
|
562
|
+
speaker?: string | undefined;
|
|
563
|
+
assistant?: boolean | undefined;
|
|
564
|
+
} | undefined;
|
|
565
|
+
file?: {
|
|
566
|
+
title: string;
|
|
567
|
+
section?: string | undefined;
|
|
568
|
+
edited?: string | undefined;
|
|
569
|
+
} | undefined;
|
|
570
|
+
href?: string | undefined;
|
|
571
|
+
availability?: "unknown" | "available" | "deleted" | undefined;
|
|
572
|
+
from?: {
|
|
573
|
+
name: string;
|
|
574
|
+
address?: string | undefined;
|
|
575
|
+
} | undefined;
|
|
576
|
+
subject?: string | undefined;
|
|
577
|
+
channel?: string | undefined;
|
|
578
|
+
fields?: {
|
|
579
|
+
label: string;
|
|
580
|
+
after: string;
|
|
581
|
+
before?: string | null | undefined;
|
|
582
|
+
}[] | undefined;
|
|
583
|
+
by?: string | undefined;
|
|
584
|
+
requestId?: string | undefined;
|
|
585
|
+
} | undefined;
|
|
122
586
|
}>>;
|
|
123
587
|
idempotencyKey: z.ZodOptional<z.ZodString>;
|
|
124
588
|
policyKey: z.ZodOptional<z.ZodString>;
|
|
@@ -129,26 +593,62 @@ export declare const memoryIngestInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
129
593
|
reference: z.ZodOptional<z.ZodString>;
|
|
130
594
|
}, "strict", z.ZodTypeAny, {
|
|
131
595
|
status: "granted";
|
|
132
|
-
basis: "
|
|
596
|
+
basis: "contract" | "user_consent" | "legitimate_interest" | "project_policy";
|
|
133
597
|
recordedAt: string;
|
|
134
598
|
reference?: string | undefined;
|
|
135
599
|
}, {
|
|
136
600
|
status: "granted";
|
|
137
|
-
basis: "
|
|
601
|
+
basis: "contract" | "user_consent" | "legitimate_interest" | "project_policy";
|
|
138
602
|
recordedAt: string;
|
|
139
603
|
reference?: string | undefined;
|
|
140
604
|
}>>;
|
|
141
605
|
metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
142
606
|
}, "strip", z.ZodTypeAny, {
|
|
143
607
|
source: {
|
|
144
|
-
kind: "artifact" | "
|
|
145
|
-
providerKey?: string | undefined;
|
|
608
|
+
kind: "artifact" | "tool_execution" | "direct" | "conversation" | "document" | "provider";
|
|
146
609
|
externalId?: string | undefined;
|
|
610
|
+
providerKey?: string | undefined;
|
|
147
611
|
connectedAccountId?: string | undefined;
|
|
148
612
|
resourceType?: string | undefined;
|
|
149
613
|
resourceId?: string | undefined;
|
|
150
614
|
toolExecutionId?: string | undefined;
|
|
151
615
|
applicationKey?: string | undefined;
|
|
616
|
+
evidence?: {
|
|
617
|
+
contract: "stacklink.memory.evidence.v1";
|
|
618
|
+
kind: "object" | "message" | "unknown" | "conversation" | "email" | "file" | "manual" | "api";
|
|
619
|
+
availability: "unknown" | "available" | "deleted";
|
|
620
|
+
object?: {
|
|
621
|
+
id: string;
|
|
622
|
+
name: string;
|
|
623
|
+
kind: string;
|
|
624
|
+
observed?: string | undefined;
|
|
625
|
+
} | undefined;
|
|
626
|
+
conversation?: {
|
|
627
|
+
sessionId?: string | undefined;
|
|
628
|
+
turn?: string | undefined;
|
|
629
|
+
speaker?: string | undefined;
|
|
630
|
+
assistant?: boolean | undefined;
|
|
631
|
+
} | undefined;
|
|
632
|
+
file?: {
|
|
633
|
+
title: string;
|
|
634
|
+
section?: string | undefined;
|
|
635
|
+
edited?: string | undefined;
|
|
636
|
+
} | undefined;
|
|
637
|
+
href?: string | undefined;
|
|
638
|
+
from?: {
|
|
639
|
+
name: string;
|
|
640
|
+
address?: string | undefined;
|
|
641
|
+
} | undefined;
|
|
642
|
+
subject?: string | undefined;
|
|
643
|
+
channel?: string | undefined;
|
|
644
|
+
fields?: {
|
|
645
|
+
label: string;
|
|
646
|
+
after: string;
|
|
647
|
+
before?: string | null | undefined;
|
|
648
|
+
}[] | undefined;
|
|
649
|
+
by?: string | undefined;
|
|
650
|
+
requestId?: string | undefined;
|
|
651
|
+
} | undefined;
|
|
152
652
|
};
|
|
153
653
|
metadata: Record<string, unknown>;
|
|
154
654
|
content: string;
|
|
@@ -159,49 +659,87 @@ export declare const memoryIngestInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
159
659
|
restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
|
|
160
660
|
topicTags: string[];
|
|
161
661
|
idempotencyKey?: string | undefined;
|
|
162
|
-
tenantId?: string | undefined;
|
|
163
662
|
sessionId?: string | undefined;
|
|
663
|
+
validFrom?: string | undefined;
|
|
664
|
+
validTo?: string | undefined;
|
|
665
|
+
tenantId?: string | undefined;
|
|
164
666
|
externalTenantId?: string | undefined;
|
|
667
|
+
title?: string | undefined;
|
|
165
668
|
subjects?: {
|
|
166
669
|
type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
|
|
167
670
|
externalId: string;
|
|
168
671
|
}[] | undefined;
|
|
169
|
-
title?: string | undefined;
|
|
170
672
|
language?: string | undefined;
|
|
171
673
|
policyKey?: string | undefined;
|
|
172
674
|
consent?: {
|
|
173
675
|
status: "granted";
|
|
174
|
-
basis: "
|
|
676
|
+
basis: "contract" | "user_consent" | "legitimate_interest" | "project_policy";
|
|
175
677
|
recordedAt: string;
|
|
176
678
|
reference?: string | undefined;
|
|
177
679
|
} | undefined;
|
|
178
680
|
occurredAt?: string | undefined;
|
|
179
|
-
validFrom?: string | undefined;
|
|
180
|
-
validTo?: string | undefined;
|
|
181
681
|
}, {
|
|
182
682
|
content: string;
|
|
183
683
|
source?: {
|
|
184
|
-
providerKey?: string | undefined;
|
|
185
684
|
externalId?: string | undefined;
|
|
186
|
-
kind?: "artifact" | "
|
|
685
|
+
kind?: "artifact" | "tool_execution" | "direct" | "conversation" | "document" | "provider" | undefined;
|
|
686
|
+
providerKey?: string | undefined;
|
|
187
687
|
connectedAccountId?: string | undefined;
|
|
188
688
|
resourceType?: string | undefined;
|
|
189
689
|
resourceId?: string | undefined;
|
|
190
690
|
toolExecutionId?: string | undefined;
|
|
191
691
|
applicationKey?: string | undefined;
|
|
692
|
+
evidence?: {
|
|
693
|
+
kind: "object" | "message" | "unknown" | "conversation" | "email" | "file" | "manual" | "api";
|
|
694
|
+
object?: {
|
|
695
|
+
id: string;
|
|
696
|
+
name: string;
|
|
697
|
+
kind: string;
|
|
698
|
+
observed?: string | undefined;
|
|
699
|
+
} | undefined;
|
|
700
|
+
contract?: "stacklink.memory.evidence.v1" | undefined;
|
|
701
|
+
conversation?: {
|
|
702
|
+
sessionId?: string | undefined;
|
|
703
|
+
turn?: string | undefined;
|
|
704
|
+
speaker?: string | undefined;
|
|
705
|
+
assistant?: boolean | undefined;
|
|
706
|
+
} | undefined;
|
|
707
|
+
file?: {
|
|
708
|
+
title: string;
|
|
709
|
+
section?: string | undefined;
|
|
710
|
+
edited?: string | undefined;
|
|
711
|
+
} | undefined;
|
|
712
|
+
href?: string | undefined;
|
|
713
|
+
availability?: "unknown" | "available" | "deleted" | undefined;
|
|
714
|
+
from?: {
|
|
715
|
+
name: string;
|
|
716
|
+
address?: string | undefined;
|
|
717
|
+
} | undefined;
|
|
718
|
+
subject?: string | undefined;
|
|
719
|
+
channel?: string | undefined;
|
|
720
|
+
fields?: {
|
|
721
|
+
label: string;
|
|
722
|
+
after: string;
|
|
723
|
+
before?: string | null | undefined;
|
|
724
|
+
}[] | undefined;
|
|
725
|
+
by?: string | undefined;
|
|
726
|
+
requestId?: string | undefined;
|
|
727
|
+
} | undefined;
|
|
192
728
|
} | undefined;
|
|
193
729
|
metadata?: Record<string, unknown> | undefined;
|
|
194
730
|
idempotencyKey?: string | undefined;
|
|
195
|
-
tenantId?: string | undefined;
|
|
196
|
-
mode?: "exact" | "extract" | undefined;
|
|
197
731
|
sessionId?: string | undefined;
|
|
732
|
+
mode?: "exact" | "extract" | undefined;
|
|
733
|
+
validFrom?: string | undefined;
|
|
734
|
+
validTo?: string | undefined;
|
|
735
|
+
tenantId?: string | undefined;
|
|
198
736
|
externalTenantId?: string | undefined;
|
|
737
|
+
kind?: "fact" | "episode" | "profile_item" | "block" | undefined;
|
|
738
|
+
title?: string | undefined;
|
|
199
739
|
subjects?: {
|
|
200
740
|
type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
|
|
201
741
|
externalId: string;
|
|
202
742
|
}[] | undefined;
|
|
203
|
-
kind?: "fact" | "episode" | "profile_item" | "block" | undefined;
|
|
204
|
-
title?: string | undefined;
|
|
205
743
|
memoryType?: "preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact" | undefined;
|
|
206
744
|
sensitivityClass?: "standard" | "personal" | "restricted" | "secret" | undefined;
|
|
207
745
|
restrictedDataClasses?: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[] | undefined;
|
|
@@ -210,23 +748,57 @@ export declare const memoryIngestInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
210
748
|
policyKey?: string | undefined;
|
|
211
749
|
consent?: {
|
|
212
750
|
status: "granted";
|
|
213
|
-
basis: "
|
|
751
|
+
basis: "contract" | "user_consent" | "legitimate_interest" | "project_policy";
|
|
214
752
|
recordedAt: string;
|
|
215
753
|
reference?: string | undefined;
|
|
216
754
|
} | undefined;
|
|
217
755
|
occurredAt?: string | undefined;
|
|
218
|
-
validFrom?: string | undefined;
|
|
219
|
-
validTo?: string | undefined;
|
|
220
756
|
}>, {
|
|
221
757
|
source: {
|
|
222
|
-
kind: "artifact" | "
|
|
223
|
-
providerKey?: string | undefined;
|
|
758
|
+
kind: "artifact" | "tool_execution" | "direct" | "conversation" | "document" | "provider";
|
|
224
759
|
externalId?: string | undefined;
|
|
760
|
+
providerKey?: string | undefined;
|
|
225
761
|
connectedAccountId?: string | undefined;
|
|
226
762
|
resourceType?: string | undefined;
|
|
227
763
|
resourceId?: string | undefined;
|
|
228
764
|
toolExecutionId?: string | undefined;
|
|
229
765
|
applicationKey?: string | undefined;
|
|
766
|
+
evidence?: {
|
|
767
|
+
contract: "stacklink.memory.evidence.v1";
|
|
768
|
+
kind: "object" | "message" | "unknown" | "conversation" | "email" | "file" | "manual" | "api";
|
|
769
|
+
availability: "unknown" | "available" | "deleted";
|
|
770
|
+
object?: {
|
|
771
|
+
id: string;
|
|
772
|
+
name: string;
|
|
773
|
+
kind: string;
|
|
774
|
+
observed?: string | undefined;
|
|
775
|
+
} | undefined;
|
|
776
|
+
conversation?: {
|
|
777
|
+
sessionId?: string | undefined;
|
|
778
|
+
turn?: string | undefined;
|
|
779
|
+
speaker?: string | undefined;
|
|
780
|
+
assistant?: boolean | undefined;
|
|
781
|
+
} | undefined;
|
|
782
|
+
file?: {
|
|
783
|
+
title: string;
|
|
784
|
+
section?: string | undefined;
|
|
785
|
+
edited?: string | undefined;
|
|
786
|
+
} | undefined;
|
|
787
|
+
href?: string | undefined;
|
|
788
|
+
from?: {
|
|
789
|
+
name: string;
|
|
790
|
+
address?: string | undefined;
|
|
791
|
+
} | undefined;
|
|
792
|
+
subject?: string | undefined;
|
|
793
|
+
channel?: string | undefined;
|
|
794
|
+
fields?: {
|
|
795
|
+
label: string;
|
|
796
|
+
after: string;
|
|
797
|
+
before?: string | null | undefined;
|
|
798
|
+
}[] | undefined;
|
|
799
|
+
by?: string | undefined;
|
|
800
|
+
requestId?: string | undefined;
|
|
801
|
+
} | undefined;
|
|
230
802
|
};
|
|
231
803
|
metadata: Record<string, unknown>;
|
|
232
804
|
content: string;
|
|
@@ -237,49 +809,87 @@ export declare const memoryIngestInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
237
809
|
restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
|
|
238
810
|
topicTags: string[];
|
|
239
811
|
idempotencyKey?: string | undefined;
|
|
240
|
-
tenantId?: string | undefined;
|
|
241
812
|
sessionId?: string | undefined;
|
|
813
|
+
validFrom?: string | undefined;
|
|
814
|
+
validTo?: string | undefined;
|
|
815
|
+
tenantId?: string | undefined;
|
|
242
816
|
externalTenantId?: string | undefined;
|
|
817
|
+
title?: string | undefined;
|
|
243
818
|
subjects?: {
|
|
244
819
|
type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
|
|
245
820
|
externalId: string;
|
|
246
821
|
}[] | undefined;
|
|
247
|
-
title?: string | undefined;
|
|
248
822
|
language?: string | undefined;
|
|
249
823
|
policyKey?: string | undefined;
|
|
250
824
|
consent?: {
|
|
251
825
|
status: "granted";
|
|
252
|
-
basis: "
|
|
826
|
+
basis: "contract" | "user_consent" | "legitimate_interest" | "project_policy";
|
|
253
827
|
recordedAt: string;
|
|
254
828
|
reference?: string | undefined;
|
|
255
829
|
} | undefined;
|
|
256
830
|
occurredAt?: string | undefined;
|
|
257
|
-
validFrom?: string | undefined;
|
|
258
|
-
validTo?: string | undefined;
|
|
259
831
|
}, {
|
|
260
832
|
content: string;
|
|
261
833
|
source?: {
|
|
262
|
-
providerKey?: string | undefined;
|
|
263
834
|
externalId?: string | undefined;
|
|
264
|
-
kind?: "artifact" | "
|
|
835
|
+
kind?: "artifact" | "tool_execution" | "direct" | "conversation" | "document" | "provider" | undefined;
|
|
836
|
+
providerKey?: string | undefined;
|
|
265
837
|
connectedAccountId?: string | undefined;
|
|
266
838
|
resourceType?: string | undefined;
|
|
267
839
|
resourceId?: string | undefined;
|
|
268
840
|
toolExecutionId?: string | undefined;
|
|
269
841
|
applicationKey?: string | undefined;
|
|
842
|
+
evidence?: {
|
|
843
|
+
kind: "object" | "message" | "unknown" | "conversation" | "email" | "file" | "manual" | "api";
|
|
844
|
+
object?: {
|
|
845
|
+
id: string;
|
|
846
|
+
name: string;
|
|
847
|
+
kind: string;
|
|
848
|
+
observed?: string | undefined;
|
|
849
|
+
} | undefined;
|
|
850
|
+
contract?: "stacklink.memory.evidence.v1" | undefined;
|
|
851
|
+
conversation?: {
|
|
852
|
+
sessionId?: string | undefined;
|
|
853
|
+
turn?: string | undefined;
|
|
854
|
+
speaker?: string | undefined;
|
|
855
|
+
assistant?: boolean | undefined;
|
|
856
|
+
} | undefined;
|
|
857
|
+
file?: {
|
|
858
|
+
title: string;
|
|
859
|
+
section?: string | undefined;
|
|
860
|
+
edited?: string | undefined;
|
|
861
|
+
} | undefined;
|
|
862
|
+
href?: string | undefined;
|
|
863
|
+
availability?: "unknown" | "available" | "deleted" | undefined;
|
|
864
|
+
from?: {
|
|
865
|
+
name: string;
|
|
866
|
+
address?: string | undefined;
|
|
867
|
+
} | undefined;
|
|
868
|
+
subject?: string | undefined;
|
|
869
|
+
channel?: string | undefined;
|
|
870
|
+
fields?: {
|
|
871
|
+
label: string;
|
|
872
|
+
after: string;
|
|
873
|
+
before?: string | null | undefined;
|
|
874
|
+
}[] | undefined;
|
|
875
|
+
by?: string | undefined;
|
|
876
|
+
requestId?: string | undefined;
|
|
877
|
+
} | undefined;
|
|
270
878
|
} | undefined;
|
|
271
879
|
metadata?: Record<string, unknown> | undefined;
|
|
272
880
|
idempotencyKey?: string | undefined;
|
|
273
|
-
tenantId?: string | undefined;
|
|
274
|
-
mode?: "exact" | "extract" | undefined;
|
|
275
881
|
sessionId?: string | undefined;
|
|
882
|
+
mode?: "exact" | "extract" | undefined;
|
|
883
|
+
validFrom?: string | undefined;
|
|
884
|
+
validTo?: string | undefined;
|
|
885
|
+
tenantId?: string | undefined;
|
|
276
886
|
externalTenantId?: string | undefined;
|
|
887
|
+
kind?: "fact" | "episode" | "profile_item" | "block" | undefined;
|
|
888
|
+
title?: string | undefined;
|
|
277
889
|
subjects?: {
|
|
278
890
|
type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
|
|
279
891
|
externalId: string;
|
|
280
892
|
}[] | undefined;
|
|
281
|
-
kind?: "fact" | "episode" | "profile_item" | "block" | undefined;
|
|
282
|
-
title?: string | undefined;
|
|
283
893
|
memoryType?: "preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact" | undefined;
|
|
284
894
|
sensitivityClass?: "standard" | "personal" | "restricted" | "secret" | undefined;
|
|
285
895
|
restrictedDataClasses?: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[] | undefined;
|
|
@@ -288,13 +898,11 @@ export declare const memoryIngestInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
288
898
|
policyKey?: string | undefined;
|
|
289
899
|
consent?: {
|
|
290
900
|
status: "granted";
|
|
291
|
-
basis: "
|
|
901
|
+
basis: "contract" | "user_consent" | "legitimate_interest" | "project_policy";
|
|
292
902
|
recordedAt: string;
|
|
293
903
|
reference?: string | undefined;
|
|
294
904
|
} | undefined;
|
|
295
905
|
occurredAt?: string | undefined;
|
|
296
|
-
validFrom?: string | undefined;
|
|
297
|
-
validTo?: string | undefined;
|
|
298
906
|
}>;
|
|
299
907
|
export type MemoryIngestInput = z.input<typeof memoryIngestInputSchema>;
|
|
300
908
|
export type ParsedMemoryIngestInput = z.output<typeof memoryIngestInputSchema>;
|
|
@@ -357,12 +965,12 @@ export declare const memoryRichIngestInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
357
965
|
reference: z.ZodOptional<z.ZodString>;
|
|
358
966
|
}, "strict", z.ZodTypeAny, {
|
|
359
967
|
status: "granted";
|
|
360
|
-
basis: "
|
|
968
|
+
basis: "contract" | "user_consent" | "legitimate_interest" | "project_policy";
|
|
361
969
|
recordedAt: string;
|
|
362
970
|
reference?: string | undefined;
|
|
363
971
|
}, {
|
|
364
972
|
status: "granted";
|
|
365
|
-
basis: "
|
|
973
|
+
basis: "contract" | "user_consent" | "legitimate_interest" | "project_policy";
|
|
366
974
|
recordedAt: string;
|
|
367
975
|
reference?: string | undefined;
|
|
368
976
|
}>>;
|
|
@@ -385,25 +993,25 @@ export declare const memoryRichIngestInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
385
993
|
restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
|
|
386
994
|
topicTags: string[];
|
|
387
995
|
idempotencyKey?: string | undefined;
|
|
388
|
-
tenantId?: string | undefined;
|
|
389
996
|
sessionId?: string | undefined;
|
|
997
|
+
validFrom?: string | undefined;
|
|
998
|
+
validTo?: string | undefined;
|
|
999
|
+
tenantId?: string | undefined;
|
|
390
1000
|
externalTenantId?: string | undefined;
|
|
1001
|
+
title?: string | undefined;
|
|
391
1002
|
subjects?: {
|
|
392
1003
|
type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
|
|
393
1004
|
externalId: string;
|
|
394
1005
|
}[] | undefined;
|
|
395
|
-
title?: string | undefined;
|
|
396
1006
|
language?: string | undefined;
|
|
397
1007
|
policyKey?: string | undefined;
|
|
398
1008
|
consent?: {
|
|
399
1009
|
status: "granted";
|
|
400
|
-
basis: "
|
|
1010
|
+
basis: "contract" | "user_consent" | "legitimate_interest" | "project_policy";
|
|
401
1011
|
recordedAt: string;
|
|
402
1012
|
reference?: string | undefined;
|
|
403
1013
|
} | undefined;
|
|
404
1014
|
occurredAt?: string | undefined;
|
|
405
|
-
validFrom?: string | undefined;
|
|
406
|
-
validTo?: string | undefined;
|
|
407
1015
|
}, {
|
|
408
1016
|
input: {
|
|
409
1017
|
type: "file";
|
|
@@ -416,16 +1024,18 @@ export declare const memoryRichIngestInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
416
1024
|
};
|
|
417
1025
|
metadata?: Record<string, unknown> | undefined;
|
|
418
1026
|
idempotencyKey?: string | undefined;
|
|
419
|
-
tenantId?: string | undefined;
|
|
420
|
-
mode?: "exact" | "extract" | undefined;
|
|
421
1027
|
sessionId?: string | undefined;
|
|
1028
|
+
mode?: "exact" | "extract" | undefined;
|
|
1029
|
+
validFrom?: string | undefined;
|
|
1030
|
+
validTo?: string | undefined;
|
|
1031
|
+
tenantId?: string | undefined;
|
|
422
1032
|
externalTenantId?: string | undefined;
|
|
1033
|
+
kind?: "fact" | "episode" | "profile_item" | "block" | undefined;
|
|
1034
|
+
title?: string | undefined;
|
|
423
1035
|
subjects?: {
|
|
424
1036
|
type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
|
|
425
1037
|
externalId: string;
|
|
426
1038
|
}[] | undefined;
|
|
427
|
-
kind?: "fact" | "episode" | "profile_item" | "block" | undefined;
|
|
428
|
-
title?: string | undefined;
|
|
429
1039
|
memoryType?: "preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact" | undefined;
|
|
430
1040
|
sensitivityClass?: "standard" | "personal" | "restricted" | "secret" | undefined;
|
|
431
1041
|
restrictedDataClasses?: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[] | undefined;
|
|
@@ -434,13 +1044,11 @@ export declare const memoryRichIngestInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
434
1044
|
policyKey?: string | undefined;
|
|
435
1045
|
consent?: {
|
|
436
1046
|
status: "granted";
|
|
437
|
-
basis: "
|
|
1047
|
+
basis: "contract" | "user_consent" | "legitimate_interest" | "project_policy";
|
|
438
1048
|
recordedAt: string;
|
|
439
1049
|
reference?: string | undefined;
|
|
440
1050
|
} | undefined;
|
|
441
1051
|
occurredAt?: string | undefined;
|
|
442
|
-
validFrom?: string | undefined;
|
|
443
|
-
validTo?: string | undefined;
|
|
444
1052
|
}>, {
|
|
445
1053
|
metadata: Record<string, unknown>;
|
|
446
1054
|
input: {
|
|
@@ -459,25 +1067,25 @@ export declare const memoryRichIngestInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
459
1067
|
restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
|
|
460
1068
|
topicTags: string[];
|
|
461
1069
|
idempotencyKey?: string | undefined;
|
|
462
|
-
tenantId?: string | undefined;
|
|
463
1070
|
sessionId?: string | undefined;
|
|
1071
|
+
validFrom?: string | undefined;
|
|
1072
|
+
validTo?: string | undefined;
|
|
1073
|
+
tenantId?: string | undefined;
|
|
464
1074
|
externalTenantId?: string | undefined;
|
|
1075
|
+
title?: string | undefined;
|
|
465
1076
|
subjects?: {
|
|
466
1077
|
type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
|
|
467
1078
|
externalId: string;
|
|
468
1079
|
}[] | undefined;
|
|
469
|
-
title?: string | undefined;
|
|
470
1080
|
language?: string | undefined;
|
|
471
1081
|
policyKey?: string | undefined;
|
|
472
1082
|
consent?: {
|
|
473
1083
|
status: "granted";
|
|
474
|
-
basis: "
|
|
1084
|
+
basis: "contract" | "user_consent" | "legitimate_interest" | "project_policy";
|
|
475
1085
|
recordedAt: string;
|
|
476
1086
|
reference?: string | undefined;
|
|
477
1087
|
} | undefined;
|
|
478
1088
|
occurredAt?: string | undefined;
|
|
479
|
-
validFrom?: string | undefined;
|
|
480
|
-
validTo?: string | undefined;
|
|
481
1089
|
}, {
|
|
482
1090
|
input: {
|
|
483
1091
|
type: "file";
|
|
@@ -490,16 +1098,18 @@ export declare const memoryRichIngestInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
490
1098
|
};
|
|
491
1099
|
metadata?: Record<string, unknown> | undefined;
|
|
492
1100
|
idempotencyKey?: string | undefined;
|
|
493
|
-
tenantId?: string | undefined;
|
|
494
|
-
mode?: "exact" | "extract" | undefined;
|
|
495
1101
|
sessionId?: string | undefined;
|
|
1102
|
+
mode?: "exact" | "extract" | undefined;
|
|
1103
|
+
validFrom?: string | undefined;
|
|
1104
|
+
validTo?: string | undefined;
|
|
1105
|
+
tenantId?: string | undefined;
|
|
496
1106
|
externalTenantId?: string | undefined;
|
|
1107
|
+
kind?: "fact" | "episode" | "profile_item" | "block" | undefined;
|
|
1108
|
+
title?: string | undefined;
|
|
497
1109
|
subjects?: {
|
|
498
1110
|
type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
|
|
499
1111
|
externalId: string;
|
|
500
1112
|
}[] | undefined;
|
|
501
|
-
kind?: "fact" | "episode" | "profile_item" | "block" | undefined;
|
|
502
|
-
title?: string | undefined;
|
|
503
1113
|
memoryType?: "preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact" | undefined;
|
|
504
1114
|
sensitivityClass?: "standard" | "personal" | "restricted" | "secret" | undefined;
|
|
505
1115
|
restrictedDataClasses?: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[] | undefined;
|
|
@@ -508,13 +1118,11 @@ export declare const memoryRichIngestInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
508
1118
|
policyKey?: string | undefined;
|
|
509
1119
|
consent?: {
|
|
510
1120
|
status: "granted";
|
|
511
|
-
basis: "
|
|
1121
|
+
basis: "contract" | "user_consent" | "legitimate_interest" | "project_policy";
|
|
512
1122
|
recordedAt: string;
|
|
513
1123
|
reference?: string | undefined;
|
|
514
1124
|
} | undefined;
|
|
515
1125
|
occurredAt?: string | undefined;
|
|
516
|
-
validFrom?: string | undefined;
|
|
517
|
-
validTo?: string | undefined;
|
|
518
1126
|
}>;
|
|
519
1127
|
export type MemoryRichIngestInput = z.input<typeof memoryRichIngestInputSchema>;
|
|
520
1128
|
export type ParsedMemoryRichIngestInput = z.output<typeof memoryRichIngestInputSchema>;
|
|
@@ -558,9 +1166,9 @@ export declare const memorySearchInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
558
1166
|
states: ("current" | "conflicted")[];
|
|
559
1167
|
includeGraph: boolean;
|
|
560
1168
|
includeSourceRefs: boolean;
|
|
561
|
-
tenantId?: string | undefined;
|
|
562
1169
|
sessionId?: string | undefined;
|
|
563
1170
|
recordedAt?: string | undefined;
|
|
1171
|
+
tenantId?: string | undefined;
|
|
564
1172
|
externalTenantId?: string | undefined;
|
|
565
1173
|
subjects?: {
|
|
566
1174
|
type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
|
|
@@ -578,9 +1186,9 @@ export declare const memorySearchInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
578
1186
|
}, {
|
|
579
1187
|
query: string;
|
|
580
1188
|
limit?: number | undefined;
|
|
581
|
-
tenantId?: string | undefined;
|
|
582
1189
|
sessionId?: string | undefined;
|
|
583
1190
|
recordedAt?: string | undefined;
|
|
1191
|
+
tenantId?: string | undefined;
|
|
584
1192
|
externalTenantId?: string | undefined;
|
|
585
1193
|
subjects?: {
|
|
586
1194
|
type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
|
|
@@ -604,9 +1212,9 @@ export declare const memorySearchInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
604
1212
|
states: ("current" | "conflicted")[];
|
|
605
1213
|
includeGraph: boolean;
|
|
606
1214
|
includeSourceRefs: boolean;
|
|
607
|
-
tenantId?: string | undefined;
|
|
608
1215
|
sessionId?: string | undefined;
|
|
609
1216
|
recordedAt?: string | undefined;
|
|
1217
|
+
tenantId?: string | undefined;
|
|
610
1218
|
externalTenantId?: string | undefined;
|
|
611
1219
|
subjects?: {
|
|
612
1220
|
type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
|
|
@@ -624,9 +1232,9 @@ export declare const memorySearchInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
624
1232
|
}, {
|
|
625
1233
|
query: string;
|
|
626
1234
|
limit?: number | undefined;
|
|
627
|
-
tenantId?: string | undefined;
|
|
628
1235
|
sessionId?: string | undefined;
|
|
629
1236
|
recordedAt?: string | undefined;
|
|
1237
|
+
tenantId?: string | undefined;
|
|
630
1238
|
externalTenantId?: string | undefined;
|
|
631
1239
|
subjects?: {
|
|
632
1240
|
type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
|
|
@@ -690,9 +1298,9 @@ export declare const memoryContextInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
690
1298
|
includeSourceRefs: boolean;
|
|
691
1299
|
includeRecentEpisodes: boolean;
|
|
692
1300
|
promptFormat: "text" | "markdown";
|
|
693
|
-
tenantId?: string | undefined;
|
|
694
1301
|
sessionId?: string | undefined;
|
|
695
1302
|
recordedAt?: string | undefined;
|
|
1303
|
+
tenantId?: string | undefined;
|
|
696
1304
|
externalTenantId?: string | undefined;
|
|
697
1305
|
subjects?: {
|
|
698
1306
|
type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
|
|
@@ -713,9 +1321,9 @@ export declare const memoryContextInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
713
1321
|
}, {
|
|
714
1322
|
query: string;
|
|
715
1323
|
limit?: number | undefined;
|
|
716
|
-
tenantId?: string | undefined;
|
|
717
1324
|
sessionId?: string | undefined;
|
|
718
1325
|
recordedAt?: string | undefined;
|
|
1326
|
+
tenantId?: string | undefined;
|
|
719
1327
|
externalTenantId?: string | undefined;
|
|
720
1328
|
subjects?: {
|
|
721
1329
|
type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
|
|
@@ -746,9 +1354,9 @@ export declare const memoryContextInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
746
1354
|
includeSourceRefs: boolean;
|
|
747
1355
|
includeRecentEpisodes: boolean;
|
|
748
1356
|
promptFormat: "text" | "markdown";
|
|
749
|
-
tenantId?: string | undefined;
|
|
750
1357
|
sessionId?: string | undefined;
|
|
751
1358
|
recordedAt?: string | undefined;
|
|
1359
|
+
tenantId?: string | undefined;
|
|
752
1360
|
externalTenantId?: string | undefined;
|
|
753
1361
|
subjects?: {
|
|
754
1362
|
type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
|
|
@@ -769,9 +1377,9 @@ export declare const memoryContextInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
769
1377
|
}, {
|
|
770
1378
|
query: string;
|
|
771
1379
|
limit?: number | undefined;
|
|
772
|
-
tenantId?: string | undefined;
|
|
773
1380
|
sessionId?: string | undefined;
|
|
774
1381
|
recordedAt?: string | undefined;
|
|
1382
|
+
tenantId?: string | undefined;
|
|
775
1383
|
externalTenantId?: string | undefined;
|
|
776
1384
|
subjects?: {
|
|
777
1385
|
type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
|
|
@@ -811,47 +1419,47 @@ export declare const memoryRecordListQuerySchema: z.ZodEffects<z.ZodObject<{
|
|
|
811
1419
|
}, "strip", z.ZodTypeAny, {
|
|
812
1420
|
limit: number;
|
|
813
1421
|
cursor?: string | undefined;
|
|
814
|
-
tenantId?: string | undefined;
|
|
815
1422
|
sessionId?: string | undefined;
|
|
1423
|
+
tenantId?: string | undefined;
|
|
816
1424
|
externalTenantId?: string | undefined;
|
|
817
1425
|
kind?: "fact" | "episode" | "profile_item" | "block" | undefined;
|
|
818
1426
|
state?: "current" | "conflicted" | undefined;
|
|
819
1427
|
subjectType?: "run" | "user" | "agent" | "tenant" | "application" | "custom" | undefined;
|
|
820
1428
|
externalSubjectId?: string | undefined;
|
|
821
|
-
sourceKind?: "artifact" | "
|
|
1429
|
+
sourceKind?: "artifact" | "tool_execution" | "direct" | "conversation" | "document" | "provider" | undefined;
|
|
822
1430
|
}, {
|
|
823
1431
|
cursor?: string | undefined;
|
|
824
1432
|
limit?: number | undefined;
|
|
825
|
-
tenantId?: string | undefined;
|
|
826
1433
|
sessionId?: string | undefined;
|
|
1434
|
+
tenantId?: string | undefined;
|
|
827
1435
|
externalTenantId?: string | undefined;
|
|
828
1436
|
kind?: "fact" | "episode" | "profile_item" | "block" | undefined;
|
|
829
1437
|
state?: "current" | "conflicted" | undefined;
|
|
830
1438
|
subjectType?: "run" | "user" | "agent" | "tenant" | "application" | "custom" | undefined;
|
|
831
1439
|
externalSubjectId?: string | undefined;
|
|
832
|
-
sourceKind?: "artifact" | "
|
|
1440
|
+
sourceKind?: "artifact" | "tool_execution" | "direct" | "conversation" | "document" | "provider" | undefined;
|
|
833
1441
|
}>, {
|
|
834
1442
|
limit: number;
|
|
835
1443
|
cursor?: string | undefined;
|
|
836
|
-
tenantId?: string | undefined;
|
|
837
1444
|
sessionId?: string | undefined;
|
|
1445
|
+
tenantId?: string | undefined;
|
|
838
1446
|
externalTenantId?: string | undefined;
|
|
839
1447
|
kind?: "fact" | "episode" | "profile_item" | "block" | undefined;
|
|
840
1448
|
state?: "current" | "conflicted" | undefined;
|
|
841
1449
|
subjectType?: "run" | "user" | "agent" | "tenant" | "application" | "custom" | undefined;
|
|
842
1450
|
externalSubjectId?: string | undefined;
|
|
843
|
-
sourceKind?: "artifact" | "
|
|
1451
|
+
sourceKind?: "artifact" | "tool_execution" | "direct" | "conversation" | "document" | "provider" | undefined;
|
|
844
1452
|
}, {
|
|
845
1453
|
cursor?: string | undefined;
|
|
846
1454
|
limit?: number | undefined;
|
|
847
|
-
tenantId?: string | undefined;
|
|
848
1455
|
sessionId?: string | undefined;
|
|
1456
|
+
tenantId?: string | undefined;
|
|
849
1457
|
externalTenantId?: string | undefined;
|
|
850
1458
|
kind?: "fact" | "episode" | "profile_item" | "block" | undefined;
|
|
851
1459
|
state?: "current" | "conflicted" | undefined;
|
|
852
1460
|
subjectType?: "run" | "user" | "agent" | "tenant" | "application" | "custom" | undefined;
|
|
853
1461
|
externalSubjectId?: string | undefined;
|
|
854
|
-
sourceKind?: "artifact" | "
|
|
1462
|
+
sourceKind?: "artifact" | "tool_execution" | "direct" | "conversation" | "document" | "provider" | undefined;
|
|
855
1463
|
}>;
|
|
856
1464
|
export declare const memoryForgottenRecordListQuerySchema: z.ZodEffects<z.ZodObject<{
|
|
857
1465
|
readonly tenantId: z.ZodOptional<z.ZodString>;
|
|
@@ -866,43 +1474,43 @@ export declare const memoryForgottenRecordListQuerySchema: z.ZodEffects<z.ZodObj
|
|
|
866
1474
|
}, "strip", z.ZodTypeAny, {
|
|
867
1475
|
limit: number;
|
|
868
1476
|
cursor?: string | undefined;
|
|
869
|
-
tenantId?: string | undefined;
|
|
870
1477
|
sessionId?: string | undefined;
|
|
1478
|
+
tenantId?: string | undefined;
|
|
871
1479
|
externalTenantId?: string | undefined;
|
|
872
1480
|
kind?: "fact" | "episode" | "profile_item" | "block" | undefined;
|
|
873
1481
|
subjectType?: "run" | "user" | "agent" | "tenant" | "application" | "custom" | undefined;
|
|
874
1482
|
externalSubjectId?: string | undefined;
|
|
875
|
-
sourceKind?: "artifact" | "
|
|
1483
|
+
sourceKind?: "artifact" | "tool_execution" | "direct" | "conversation" | "document" | "provider" | undefined;
|
|
876
1484
|
}, {
|
|
877
1485
|
cursor?: string | undefined;
|
|
878
1486
|
limit?: number | undefined;
|
|
879
|
-
tenantId?: string | undefined;
|
|
880
1487
|
sessionId?: string | undefined;
|
|
1488
|
+
tenantId?: string | undefined;
|
|
881
1489
|
externalTenantId?: string | undefined;
|
|
882
1490
|
kind?: "fact" | "episode" | "profile_item" | "block" | undefined;
|
|
883
1491
|
subjectType?: "run" | "user" | "agent" | "tenant" | "application" | "custom" | undefined;
|
|
884
1492
|
externalSubjectId?: string | undefined;
|
|
885
|
-
sourceKind?: "artifact" | "
|
|
1493
|
+
sourceKind?: "artifact" | "tool_execution" | "direct" | "conversation" | "document" | "provider" | undefined;
|
|
886
1494
|
}>, {
|
|
887
1495
|
limit: number;
|
|
888
1496
|
cursor?: string | undefined;
|
|
889
|
-
tenantId?: string | undefined;
|
|
890
1497
|
sessionId?: string | undefined;
|
|
1498
|
+
tenantId?: string | undefined;
|
|
891
1499
|
externalTenantId?: string | undefined;
|
|
892
1500
|
kind?: "fact" | "episode" | "profile_item" | "block" | undefined;
|
|
893
1501
|
subjectType?: "run" | "user" | "agent" | "tenant" | "application" | "custom" | undefined;
|
|
894
1502
|
externalSubjectId?: string | undefined;
|
|
895
|
-
sourceKind?: "artifact" | "
|
|
1503
|
+
sourceKind?: "artifact" | "tool_execution" | "direct" | "conversation" | "document" | "provider" | undefined;
|
|
896
1504
|
}, {
|
|
897
1505
|
cursor?: string | undefined;
|
|
898
1506
|
limit?: number | undefined;
|
|
899
|
-
tenantId?: string | undefined;
|
|
900
1507
|
sessionId?: string | undefined;
|
|
1508
|
+
tenantId?: string | undefined;
|
|
901
1509
|
externalTenantId?: string | undefined;
|
|
902
1510
|
kind?: "fact" | "episode" | "profile_item" | "block" | undefined;
|
|
903
1511
|
subjectType?: "run" | "user" | "agent" | "tenant" | "application" | "custom" | undefined;
|
|
904
1512
|
externalSubjectId?: string | undefined;
|
|
905
|
-
sourceKind?: "artifact" | "
|
|
1513
|
+
sourceKind?: "artifact" | "tool_execution" | "direct" | "conversation" | "document" | "provider" | undefined;
|
|
906
1514
|
}>;
|
|
907
1515
|
export declare const memoryRecordUpdateInputSchema: z.ZodEffects<z.ZodObject<{
|
|
908
1516
|
content: z.ZodOptional<z.ZodString>;
|
|
@@ -921,56 +1529,230 @@ export declare const memoryRecordUpdateInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
921
1529
|
metadata?: Record<string, unknown> | undefined;
|
|
922
1530
|
content?: string | undefined;
|
|
923
1531
|
reason?: string | undefined;
|
|
1532
|
+
validFrom?: string | null | undefined;
|
|
1533
|
+
validTo?: string | null | undefined;
|
|
924
1534
|
title?: string | null | undefined;
|
|
925
1535
|
memoryType?: "preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact" | undefined;
|
|
926
1536
|
sensitivityClass?: "standard" | "personal" | "restricted" | "secret" | undefined;
|
|
927
1537
|
restrictedDataClasses?: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[] | undefined;
|
|
928
1538
|
topicTags?: string[] | undefined;
|
|
929
1539
|
language?: string | null | undefined;
|
|
930
|
-
validFrom?: string | null | undefined;
|
|
931
|
-
validTo?: string | null | undefined;
|
|
932
1540
|
state?: "current" | "conflicted" | undefined;
|
|
933
1541
|
}, {
|
|
934
1542
|
metadata?: Record<string, unknown> | undefined;
|
|
935
1543
|
content?: string | undefined;
|
|
936
1544
|
reason?: string | undefined;
|
|
1545
|
+
validFrom?: string | null | undefined;
|
|
1546
|
+
validTo?: string | null | undefined;
|
|
937
1547
|
title?: string | null | undefined;
|
|
938
1548
|
memoryType?: "preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact" | undefined;
|
|
939
1549
|
sensitivityClass?: "standard" | "personal" | "restricted" | "secret" | undefined;
|
|
940
1550
|
restrictedDataClasses?: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[] | undefined;
|
|
941
1551
|
topicTags?: string[] | undefined;
|
|
942
1552
|
language?: string | null | undefined;
|
|
943
|
-
validFrom?: string | null | undefined;
|
|
944
|
-
validTo?: string | null | undefined;
|
|
945
1553
|
state?: "current" | "conflicted" | undefined;
|
|
946
1554
|
}>, {
|
|
947
1555
|
metadata?: Record<string, unknown> | undefined;
|
|
948
1556
|
content?: string | undefined;
|
|
949
1557
|
reason?: string | undefined;
|
|
1558
|
+
validFrom?: string | null | undefined;
|
|
1559
|
+
validTo?: string | null | undefined;
|
|
950
1560
|
title?: string | null | undefined;
|
|
951
1561
|
memoryType?: "preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact" | undefined;
|
|
952
1562
|
sensitivityClass?: "standard" | "personal" | "restricted" | "secret" | undefined;
|
|
953
1563
|
restrictedDataClasses?: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[] | undefined;
|
|
954
1564
|
topicTags?: string[] | undefined;
|
|
955
1565
|
language?: string | null | undefined;
|
|
956
|
-
validFrom?: string | null | undefined;
|
|
957
|
-
validTo?: string | null | undefined;
|
|
958
1566
|
state?: "current" | "conflicted" | undefined;
|
|
959
1567
|
}, {
|
|
960
1568
|
metadata?: Record<string, unknown> | undefined;
|
|
961
1569
|
content?: string | undefined;
|
|
962
1570
|
reason?: string | undefined;
|
|
1571
|
+
validFrom?: string | null | undefined;
|
|
1572
|
+
validTo?: string | null | undefined;
|
|
963
1573
|
title?: string | null | undefined;
|
|
964
1574
|
memoryType?: "preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact" | undefined;
|
|
965
1575
|
sensitivityClass?: "standard" | "personal" | "restricted" | "secret" | undefined;
|
|
966
1576
|
restrictedDataClasses?: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[] | undefined;
|
|
967
1577
|
topicTags?: string[] | undefined;
|
|
968
1578
|
language?: string | null | undefined;
|
|
969
|
-
validFrom?: string | null | undefined;
|
|
970
|
-
validTo?: string | null | undefined;
|
|
971
1579
|
state?: "current" | "conflicted" | undefined;
|
|
972
1580
|
}>;
|
|
973
1581
|
export type MemoryRecordUpdateInput = z.infer<typeof memoryRecordUpdateInputSchema>;
|
|
1582
|
+
export declare const memoryQualityReviewDispositions: readonly ["keep", "correct", "convert_to_episode", "restrict"];
|
|
1583
|
+
export declare const memoryQualityReviewEntitySchema: z.ZodObject<{
|
|
1584
|
+
entityType: z.ZodString;
|
|
1585
|
+
canonicalKey: z.ZodString;
|
|
1586
|
+
displayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1587
|
+
attributes: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1588
|
+
}, "strict", z.ZodTypeAny, {
|
|
1589
|
+
canonicalKey: string;
|
|
1590
|
+
entityType: string;
|
|
1591
|
+
attributes: Record<string, unknown>;
|
|
1592
|
+
displayName?: string | null | undefined;
|
|
1593
|
+
}, {
|
|
1594
|
+
canonicalKey: string;
|
|
1595
|
+
entityType: string;
|
|
1596
|
+
displayName?: string | null | undefined;
|
|
1597
|
+
attributes?: Record<string, unknown> | undefined;
|
|
1598
|
+
}>;
|
|
1599
|
+
export declare const memoryRecordQualityReviewInputSchema: z.ZodEffects<z.ZodObject<{
|
|
1600
|
+
disposition: z.ZodEnum<["keep", "correct", "convert_to_episode", "restrict"]>;
|
|
1601
|
+
content: z.ZodOptional<z.ZodString>;
|
|
1602
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1603
|
+
memoryType: z.ZodEnum<["preference", "decision", "commitment", "goal", "constraint", "relationship", "durable_fact"]>;
|
|
1604
|
+
sensitivityClass: z.ZodEnum<["standard", "personal", "restricted", "secret"]>;
|
|
1605
|
+
restrictedDataClasses: z.ZodDefault<z.ZodArray<z.ZodEnum<["health", "biometric", "government_identity", "precise_location", "protected_trait", "minor", "detailed_personal_financial"]>, "many">>;
|
|
1606
|
+
topicTags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1607
|
+
language: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1608
|
+
validFrom: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1609
|
+
validTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1610
|
+
authorshipClass: z.ZodEnum<["connected_user", "other_human", "bot", "application", "system", "unknown"]>;
|
|
1611
|
+
salience: z.ZodEnum<["low", "medium", "high"]>;
|
|
1612
|
+
evidenceConfidence: z.ZodEnum<["low", "medium", "high"]>;
|
|
1613
|
+
actorEntity: z.ZodObject<{
|
|
1614
|
+
entityType: z.ZodString;
|
|
1615
|
+
canonicalKey: z.ZodString;
|
|
1616
|
+
displayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1617
|
+
attributes: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1618
|
+
}, "strict", z.ZodTypeAny, {
|
|
1619
|
+
canonicalKey: string;
|
|
1620
|
+
entityType: string;
|
|
1621
|
+
attributes: Record<string, unknown>;
|
|
1622
|
+
displayName?: string | null | undefined;
|
|
1623
|
+
}, {
|
|
1624
|
+
canonicalKey: string;
|
|
1625
|
+
entityType: string;
|
|
1626
|
+
displayName?: string | null | undefined;
|
|
1627
|
+
attributes?: Record<string, unknown> | undefined;
|
|
1628
|
+
}>;
|
|
1629
|
+
subjectEntity: z.ZodObject<{
|
|
1630
|
+
entityType: z.ZodString;
|
|
1631
|
+
canonicalKey: z.ZodString;
|
|
1632
|
+
displayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1633
|
+
attributes: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1634
|
+
}, "strict", z.ZodTypeAny, {
|
|
1635
|
+
canonicalKey: string;
|
|
1636
|
+
entityType: string;
|
|
1637
|
+
attributes: Record<string, unknown>;
|
|
1638
|
+
displayName?: string | null | undefined;
|
|
1639
|
+
}, {
|
|
1640
|
+
canonicalKey: string;
|
|
1641
|
+
entityType: string;
|
|
1642
|
+
displayName?: string | null | undefined;
|
|
1643
|
+
attributes?: Record<string, unknown> | undefined;
|
|
1644
|
+
}>;
|
|
1645
|
+
reason: z.ZodString;
|
|
1646
|
+
}, "strict", z.ZodTypeAny, {
|
|
1647
|
+
reason: string;
|
|
1648
|
+
authorshipClass: "bot" | "application" | "connected_user" | "other_human" | "system" | "unknown";
|
|
1649
|
+
memoryType: "preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
|
|
1650
|
+
sensitivityClass: "standard" | "personal" | "restricted" | "secret";
|
|
1651
|
+
restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
|
|
1652
|
+
disposition: "keep" | "correct" | "convert_to_episode" | "restrict";
|
|
1653
|
+
salience: "low" | "medium" | "high";
|
|
1654
|
+
evidenceConfidence: "low" | "medium" | "high";
|
|
1655
|
+
actorEntity: {
|
|
1656
|
+
canonicalKey: string;
|
|
1657
|
+
entityType: string;
|
|
1658
|
+
attributes: Record<string, unknown>;
|
|
1659
|
+
displayName?: string | null | undefined;
|
|
1660
|
+
};
|
|
1661
|
+
subjectEntity: {
|
|
1662
|
+
canonicalKey: string;
|
|
1663
|
+
entityType: string;
|
|
1664
|
+
attributes: Record<string, unknown>;
|
|
1665
|
+
displayName?: string | null | undefined;
|
|
1666
|
+
};
|
|
1667
|
+
content?: string | undefined;
|
|
1668
|
+
validFrom?: string | null | undefined;
|
|
1669
|
+
validTo?: string | null | undefined;
|
|
1670
|
+
title?: string | null | undefined;
|
|
1671
|
+
topicTags?: string[] | undefined;
|
|
1672
|
+
language?: string | null | undefined;
|
|
1673
|
+
}, {
|
|
1674
|
+
reason: string;
|
|
1675
|
+
authorshipClass: "bot" | "application" | "connected_user" | "other_human" | "system" | "unknown";
|
|
1676
|
+
memoryType: "preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
|
|
1677
|
+
sensitivityClass: "standard" | "personal" | "restricted" | "secret";
|
|
1678
|
+
disposition: "keep" | "correct" | "convert_to_episode" | "restrict";
|
|
1679
|
+
salience: "low" | "medium" | "high";
|
|
1680
|
+
evidenceConfidence: "low" | "medium" | "high";
|
|
1681
|
+
actorEntity: {
|
|
1682
|
+
canonicalKey: string;
|
|
1683
|
+
entityType: string;
|
|
1684
|
+
displayName?: string | null | undefined;
|
|
1685
|
+
attributes?: Record<string, unknown> | undefined;
|
|
1686
|
+
};
|
|
1687
|
+
subjectEntity: {
|
|
1688
|
+
canonicalKey: string;
|
|
1689
|
+
entityType: string;
|
|
1690
|
+
displayName?: string | null | undefined;
|
|
1691
|
+
attributes?: Record<string, unknown> | undefined;
|
|
1692
|
+
};
|
|
1693
|
+
content?: string | undefined;
|
|
1694
|
+
validFrom?: string | null | undefined;
|
|
1695
|
+
validTo?: string | null | undefined;
|
|
1696
|
+
title?: string | null | undefined;
|
|
1697
|
+
restrictedDataClasses?: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[] | undefined;
|
|
1698
|
+
topicTags?: string[] | undefined;
|
|
1699
|
+
language?: string | null | undefined;
|
|
1700
|
+
}>, {
|
|
1701
|
+
reason: string;
|
|
1702
|
+
authorshipClass: "bot" | "application" | "connected_user" | "other_human" | "system" | "unknown";
|
|
1703
|
+
memoryType: "preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
|
|
1704
|
+
sensitivityClass: "standard" | "personal" | "restricted" | "secret";
|
|
1705
|
+
restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
|
|
1706
|
+
disposition: "keep" | "correct" | "convert_to_episode" | "restrict";
|
|
1707
|
+
salience: "low" | "medium" | "high";
|
|
1708
|
+
evidenceConfidence: "low" | "medium" | "high";
|
|
1709
|
+
actorEntity: {
|
|
1710
|
+
canonicalKey: string;
|
|
1711
|
+
entityType: string;
|
|
1712
|
+
attributes: Record<string, unknown>;
|
|
1713
|
+
displayName?: string | null | undefined;
|
|
1714
|
+
};
|
|
1715
|
+
subjectEntity: {
|
|
1716
|
+
canonicalKey: string;
|
|
1717
|
+
entityType: string;
|
|
1718
|
+
attributes: Record<string, unknown>;
|
|
1719
|
+
displayName?: string | null | undefined;
|
|
1720
|
+
};
|
|
1721
|
+
content?: string | undefined;
|
|
1722
|
+
validFrom?: string | null | undefined;
|
|
1723
|
+
validTo?: string | null | undefined;
|
|
1724
|
+
title?: string | null | undefined;
|
|
1725
|
+
topicTags?: string[] | undefined;
|
|
1726
|
+
language?: string | null | undefined;
|
|
1727
|
+
}, {
|
|
1728
|
+
reason: string;
|
|
1729
|
+
authorshipClass: "bot" | "application" | "connected_user" | "other_human" | "system" | "unknown";
|
|
1730
|
+
memoryType: "preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
|
|
1731
|
+
sensitivityClass: "standard" | "personal" | "restricted" | "secret";
|
|
1732
|
+
disposition: "keep" | "correct" | "convert_to_episode" | "restrict";
|
|
1733
|
+
salience: "low" | "medium" | "high";
|
|
1734
|
+
evidenceConfidence: "low" | "medium" | "high";
|
|
1735
|
+
actorEntity: {
|
|
1736
|
+
canonicalKey: string;
|
|
1737
|
+
entityType: string;
|
|
1738
|
+
displayName?: string | null | undefined;
|
|
1739
|
+
attributes?: Record<string, unknown> | undefined;
|
|
1740
|
+
};
|
|
1741
|
+
subjectEntity: {
|
|
1742
|
+
canonicalKey: string;
|
|
1743
|
+
entityType: string;
|
|
1744
|
+
displayName?: string | null | undefined;
|
|
1745
|
+
attributes?: Record<string, unknown> | undefined;
|
|
1746
|
+
};
|
|
1747
|
+
content?: string | undefined;
|
|
1748
|
+
validFrom?: string | null | undefined;
|
|
1749
|
+
validTo?: string | null | undefined;
|
|
1750
|
+
title?: string | null | undefined;
|
|
1751
|
+
restrictedDataClasses?: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[] | undefined;
|
|
1752
|
+
topicTags?: string[] | undefined;
|
|
1753
|
+
language?: string | null | undefined;
|
|
1754
|
+
}>;
|
|
1755
|
+
export type MemoryRecordQualityReviewInput = z.infer<typeof memoryRecordQualityReviewInputSchema>;
|
|
974
1756
|
export declare const memoryForgetInputSchema: z.ZodObject<{
|
|
975
1757
|
reason: z.ZodOptional<z.ZodString>;
|
|
976
1758
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1005,8 +1787,8 @@ export declare const memoryBlockInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1005
1787
|
title: string;
|
|
1006
1788
|
access: "read_only" | "editable";
|
|
1007
1789
|
priority: number;
|
|
1008
|
-
tenantId?: string | undefined;
|
|
1009
1790
|
sessionId?: string | undefined;
|
|
1791
|
+
tenantId?: string | undefined;
|
|
1010
1792
|
externalTenantId?: string | undefined;
|
|
1011
1793
|
subjects?: {
|
|
1012
1794
|
type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
|
|
@@ -1017,8 +1799,8 @@ export declare const memoryBlockInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1017
1799
|
title: string;
|
|
1018
1800
|
required?: boolean | undefined;
|
|
1019
1801
|
metadata?: Record<string, unknown> | undefined;
|
|
1020
|
-
tenantId?: string | undefined;
|
|
1021
1802
|
sessionId?: string | undefined;
|
|
1803
|
+
tenantId?: string | undefined;
|
|
1022
1804
|
externalTenantId?: string | undefined;
|
|
1023
1805
|
subjects?: {
|
|
1024
1806
|
type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
|
|
@@ -1033,8 +1815,8 @@ export declare const memoryBlockInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1033
1815
|
title: string;
|
|
1034
1816
|
access: "read_only" | "editable";
|
|
1035
1817
|
priority: number;
|
|
1036
|
-
tenantId?: string | undefined;
|
|
1037
1818
|
sessionId?: string | undefined;
|
|
1819
|
+
tenantId?: string | undefined;
|
|
1038
1820
|
externalTenantId?: string | undefined;
|
|
1039
1821
|
subjects?: {
|
|
1040
1822
|
type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
|
|
@@ -1045,8 +1827,8 @@ export declare const memoryBlockInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1045
1827
|
title: string;
|
|
1046
1828
|
required?: boolean | undefined;
|
|
1047
1829
|
metadata?: Record<string, unknown> | undefined;
|
|
1048
|
-
tenantId?: string | undefined;
|
|
1049
1830
|
sessionId?: string | undefined;
|
|
1831
|
+
tenantId?: string | undefined;
|
|
1050
1832
|
externalTenantId?: string | undefined;
|
|
1051
1833
|
subjects?: {
|
|
1052
1834
|
type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
|
|
@@ -1095,12 +1877,12 @@ export declare const memorySourceBindingInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1095
1877
|
reference: z.ZodOptional<z.ZodString>;
|
|
1096
1878
|
}, "strict", z.ZodTypeAny, {
|
|
1097
1879
|
status: "granted";
|
|
1098
|
-
basis: "
|
|
1880
|
+
basis: "contract" | "user_consent" | "legitimate_interest" | "project_policy";
|
|
1099
1881
|
recordedAt: string;
|
|
1100
1882
|
reference?: string | undefined;
|
|
1101
1883
|
}, {
|
|
1102
1884
|
status: "granted";
|
|
1103
|
-
basis: "
|
|
1885
|
+
basis: "contract" | "user_consent" | "legitimate_interest" | "project_policy";
|
|
1104
1886
|
recordedAt: string;
|
|
1105
1887
|
reference?: string | undefined;
|
|
1106
1888
|
}>>;
|
|
@@ -1123,7 +1905,7 @@ export declare const memorySourceBindingInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1123
1905
|
externalTenantId?: string | undefined;
|
|
1124
1906
|
consent?: {
|
|
1125
1907
|
status: "granted";
|
|
1126
|
-
basis: "
|
|
1908
|
+
basis: "contract" | "user_consent" | "legitimate_interest" | "project_policy";
|
|
1127
1909
|
recordedAt: string;
|
|
1128
1910
|
reference?: string | undefined;
|
|
1129
1911
|
} | undefined;
|
|
@@ -1145,7 +1927,7 @@ export declare const memorySourceBindingInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1145
1927
|
policyKey?: string | undefined;
|
|
1146
1928
|
consent?: {
|
|
1147
1929
|
status: "granted";
|
|
1148
|
-
basis: "
|
|
1930
|
+
basis: "contract" | "user_consent" | "legitimate_interest" | "project_policy";
|
|
1149
1931
|
recordedAt: string;
|
|
1150
1932
|
reference?: string | undefined;
|
|
1151
1933
|
} | undefined;
|
|
@@ -1167,7 +1949,7 @@ export declare const memorySourceBindingInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1167
1949
|
externalTenantId?: string | undefined;
|
|
1168
1950
|
consent?: {
|
|
1169
1951
|
status: "granted";
|
|
1170
|
-
basis: "
|
|
1952
|
+
basis: "contract" | "user_consent" | "legitimate_interest" | "project_policy";
|
|
1171
1953
|
recordedAt: string;
|
|
1172
1954
|
reference?: string | undefined;
|
|
1173
1955
|
} | undefined;
|
|
@@ -1189,7 +1971,7 @@ export declare const memorySourceBindingInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1189
1971
|
policyKey?: string | undefined;
|
|
1190
1972
|
consent?: {
|
|
1191
1973
|
status: "granted";
|
|
1192
|
-
basis: "
|
|
1974
|
+
basis: "contract" | "user_consent" | "legitimate_interest" | "project_policy";
|
|
1193
1975
|
recordedAt: string;
|
|
1194
1976
|
reference?: string | undefined;
|
|
1195
1977
|
} | undefined;
|
|
@@ -1197,6 +1979,7 @@ export declare const memorySourceBindingInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1197
1979
|
export type MemorySourceBindingInput = z.input<typeof memorySourceBindingInputSchema>;
|
|
1198
1980
|
export declare const memoryConnectedSourceBackfillRangeSchema: z.ZodEnum<["future_only", "last_30_days", "last_90_days", "all"]>;
|
|
1199
1981
|
export declare const memoryConnectedSourceInputSchema: z.ZodEffects<z.ZodObject<{
|
|
1982
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
1200
1983
|
idempotencyKey: z.ZodString;
|
|
1201
1984
|
tenantId: z.ZodOptional<z.ZodString>;
|
|
1202
1985
|
externalTenantId: z.ZodOptional<z.ZodString>;
|
|
@@ -1217,6 +2000,17 @@ export declare const memoryConnectedSourceInputSchema: z.ZodEffects<z.ZodObject<
|
|
|
1217
2000
|
existingContent: z.ZodDefault<z.ZodEnum<["future_only", "last_30_days", "last_90_days", "all"]>>;
|
|
1218
2001
|
maxBackfillItems: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
1219
2002
|
deliveryMode: z.ZodDefault<z.ZodEnum<["auto", "webhook", "polling"]>>;
|
|
2003
|
+
authorizationPerspective: z.ZodDefault<z.ZodEnum<["provider_default", "bot", "user"]>>;
|
|
2004
|
+
includeAttachments: z.ZodDefault<z.ZodBoolean>;
|
|
2005
|
+
includeFileContent: z.ZodDefault<z.ZodBoolean>;
|
|
2006
|
+
includeEmailBodies: z.ZodDefault<z.ZodBoolean>;
|
|
2007
|
+
includeConversationTranscripts: z.ZodDefault<z.ZodBoolean>;
|
|
2008
|
+
includeCallActivity: z.ZodDefault<z.ZodBoolean>;
|
|
2009
|
+
includePrivateConversations: z.ZodDefault<z.ZodBoolean>;
|
|
2010
|
+
includeExternalConversations: z.ZodDefault<z.ZodBoolean>;
|
|
2011
|
+
includeBotMessages: z.ZodDefault<z.ZodBoolean>;
|
|
2012
|
+
approvedOperationalActorCanonicalKeys: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
2013
|
+
excludedActorCanonicalKeys: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1220
2014
|
rememberInstructions: z.ZodDefault<z.ZodString>;
|
|
1221
2015
|
excludeInstructions: z.ZodDefault<z.ZodString>;
|
|
1222
2016
|
allowedMemoryTypes: z.ZodDefault<z.ZodArray<z.ZodEnum<["preference", "decision", "commitment", "goal", "constraint", "relationship", "durable_fact"]>, "many">>;
|
|
@@ -1229,12 +2023,12 @@ export declare const memoryConnectedSourceInputSchema: z.ZodEffects<z.ZodObject<
|
|
|
1229
2023
|
reference: z.ZodOptional<z.ZodString>;
|
|
1230
2024
|
}, "strict", z.ZodTypeAny, {
|
|
1231
2025
|
status: "granted";
|
|
1232
|
-
basis: "
|
|
2026
|
+
basis: "contract" | "user_consent" | "legitimate_interest" | "project_policy";
|
|
1233
2027
|
recordedAt: string;
|
|
1234
2028
|
reference?: string | undefined;
|
|
1235
2029
|
}, {
|
|
1236
2030
|
status: "granted";
|
|
1237
|
-
basis: "
|
|
2031
|
+
basis: "contract" | "user_consent" | "legitimate_interest" | "project_policy";
|
|
1238
2032
|
recordedAt: string;
|
|
1239
2033
|
reference?: string | undefined;
|
|
1240
2034
|
}>>;
|
|
@@ -1242,27 +2036,39 @@ export declare const memoryConnectedSourceInputSchema: z.ZodEffects<z.ZodObject<
|
|
|
1242
2036
|
}, "strict", z.ZodTypeAny, {
|
|
1243
2037
|
metadata: Record<string, unknown>;
|
|
1244
2038
|
idempotencyKey: string;
|
|
2039
|
+
allowedMemoryTypes: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
|
|
1245
2040
|
connectedAccountId: string;
|
|
1246
2041
|
resourceIds: string[];
|
|
1247
2042
|
targets: {
|
|
1248
2043
|
type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
|
|
1249
2044
|
externalId: string;
|
|
1250
2045
|
}[];
|
|
2046
|
+
approvedOperationalActorCanonicalKeys: string[];
|
|
1251
2047
|
sourceFamilyKey: string;
|
|
1252
2048
|
selectionMode: "selected_resources" | "recipe_default";
|
|
1253
2049
|
existingContent: "future_only" | "last_30_days" | "last_90_days" | "all";
|
|
1254
2050
|
maxBackfillItems: number | null;
|
|
1255
2051
|
deliveryMode: "auto" | "webhook" | "polling";
|
|
2052
|
+
authorizationPerspective: "bot" | "user" | "provider_default";
|
|
2053
|
+
includeAttachments: boolean;
|
|
2054
|
+
includeFileContent: boolean;
|
|
2055
|
+
includeEmailBodies: boolean;
|
|
2056
|
+
includeConversationTranscripts: boolean;
|
|
2057
|
+
includeCallActivity: boolean;
|
|
2058
|
+
includePrivateConversations: boolean;
|
|
2059
|
+
includeExternalConversations: boolean;
|
|
2060
|
+
includeBotMessages: boolean;
|
|
2061
|
+
excludedActorCanonicalKeys: string[];
|
|
1256
2062
|
rememberInstructions: string;
|
|
1257
2063
|
excludeInstructions: string;
|
|
1258
|
-
allowedMemoryTypes: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
|
|
1259
2064
|
learnedRetentionDays: number | null;
|
|
1260
2065
|
sourceRetentionDays: number | null;
|
|
2066
|
+
sessionId?: string | undefined;
|
|
1261
2067
|
tenantId?: string | undefined;
|
|
1262
2068
|
externalTenantId?: string | undefined;
|
|
1263
2069
|
consent?: {
|
|
1264
2070
|
status: "granted";
|
|
1265
|
-
basis: "
|
|
2071
|
+
basis: "contract" | "user_consent" | "legitimate_interest" | "project_policy";
|
|
1266
2072
|
recordedAt: string;
|
|
1267
2073
|
reference?: string | undefined;
|
|
1268
2074
|
} | undefined;
|
|
@@ -1275,48 +2081,72 @@ export declare const memoryConnectedSourceInputSchema: z.ZodEffects<z.ZodObject<
|
|
|
1275
2081
|
}[];
|
|
1276
2082
|
sourceFamilyKey: string;
|
|
1277
2083
|
metadata?: Record<string, unknown> | undefined;
|
|
2084
|
+
sessionId?: string | undefined;
|
|
2085
|
+
allowedMemoryTypes?: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
|
|
1278
2086
|
tenantId?: string | undefined;
|
|
1279
2087
|
externalTenantId?: string | undefined;
|
|
1280
2088
|
consent?: {
|
|
1281
2089
|
status: "granted";
|
|
1282
|
-
basis: "
|
|
2090
|
+
basis: "contract" | "user_consent" | "legitimate_interest" | "project_policy";
|
|
1283
2091
|
recordedAt: string;
|
|
1284
2092
|
reference?: string | undefined;
|
|
1285
2093
|
} | undefined;
|
|
1286
2094
|
resourceIds?: string[] | undefined;
|
|
2095
|
+
approvedOperationalActorCanonicalKeys?: string[] | undefined;
|
|
1287
2096
|
selectionMode?: "selected_resources" | "recipe_default" | undefined;
|
|
1288
2097
|
existingContent?: "future_only" | "last_30_days" | "last_90_days" | "all" | undefined;
|
|
1289
2098
|
maxBackfillItems?: number | null | undefined;
|
|
1290
2099
|
deliveryMode?: "auto" | "webhook" | "polling" | undefined;
|
|
2100
|
+
authorizationPerspective?: "bot" | "user" | "provider_default" | undefined;
|
|
2101
|
+
includeAttachments?: boolean | undefined;
|
|
2102
|
+
includeFileContent?: boolean | undefined;
|
|
2103
|
+
includeEmailBodies?: boolean | undefined;
|
|
2104
|
+
includeConversationTranscripts?: boolean | undefined;
|
|
2105
|
+
includeCallActivity?: boolean | undefined;
|
|
2106
|
+
includePrivateConversations?: boolean | undefined;
|
|
2107
|
+
includeExternalConversations?: boolean | undefined;
|
|
2108
|
+
includeBotMessages?: boolean | undefined;
|
|
2109
|
+
excludedActorCanonicalKeys?: string[] | undefined;
|
|
1291
2110
|
rememberInstructions?: string | undefined;
|
|
1292
2111
|
excludeInstructions?: string | undefined;
|
|
1293
|
-
allowedMemoryTypes?: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
|
|
1294
2112
|
learnedRetentionDays?: number | null | undefined;
|
|
1295
2113
|
sourceRetentionDays?: number | null | undefined;
|
|
1296
2114
|
}>, {
|
|
1297
2115
|
metadata: Record<string, unknown>;
|
|
1298
2116
|
idempotencyKey: string;
|
|
2117
|
+
allowedMemoryTypes: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
|
|
1299
2118
|
connectedAccountId: string;
|
|
1300
2119
|
resourceIds: string[];
|
|
1301
2120
|
targets: {
|
|
1302
2121
|
type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
|
|
1303
2122
|
externalId: string;
|
|
1304
2123
|
}[];
|
|
2124
|
+
approvedOperationalActorCanonicalKeys: string[];
|
|
1305
2125
|
sourceFamilyKey: string;
|
|
1306
2126
|
selectionMode: "selected_resources" | "recipe_default";
|
|
1307
2127
|
existingContent: "future_only" | "last_30_days" | "last_90_days" | "all";
|
|
1308
2128
|
maxBackfillItems: number | null;
|
|
1309
2129
|
deliveryMode: "auto" | "webhook" | "polling";
|
|
2130
|
+
authorizationPerspective: "bot" | "user" | "provider_default";
|
|
2131
|
+
includeAttachments: boolean;
|
|
2132
|
+
includeFileContent: boolean;
|
|
2133
|
+
includeEmailBodies: boolean;
|
|
2134
|
+
includeConversationTranscripts: boolean;
|
|
2135
|
+
includeCallActivity: boolean;
|
|
2136
|
+
includePrivateConversations: boolean;
|
|
2137
|
+
includeExternalConversations: boolean;
|
|
2138
|
+
includeBotMessages: boolean;
|
|
2139
|
+
excludedActorCanonicalKeys: string[];
|
|
1310
2140
|
rememberInstructions: string;
|
|
1311
2141
|
excludeInstructions: string;
|
|
1312
|
-
allowedMemoryTypes: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
|
|
1313
2142
|
learnedRetentionDays: number | null;
|
|
1314
2143
|
sourceRetentionDays: number | null;
|
|
2144
|
+
sessionId?: string | undefined;
|
|
1315
2145
|
tenantId?: string | undefined;
|
|
1316
2146
|
externalTenantId?: string | undefined;
|
|
1317
2147
|
consent?: {
|
|
1318
2148
|
status: "granted";
|
|
1319
|
-
basis: "
|
|
2149
|
+
basis: "contract" | "user_consent" | "legitimate_interest" | "project_policy";
|
|
1320
2150
|
recordedAt: string;
|
|
1321
2151
|
reference?: string | undefined;
|
|
1322
2152
|
} | undefined;
|
|
@@ -1329,60 +2159,132 @@ export declare const memoryConnectedSourceInputSchema: z.ZodEffects<z.ZodObject<
|
|
|
1329
2159
|
}[];
|
|
1330
2160
|
sourceFamilyKey: string;
|
|
1331
2161
|
metadata?: Record<string, unknown> | undefined;
|
|
2162
|
+
sessionId?: string | undefined;
|
|
2163
|
+
allowedMemoryTypes?: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
|
|
1332
2164
|
tenantId?: string | undefined;
|
|
1333
2165
|
externalTenantId?: string | undefined;
|
|
1334
2166
|
consent?: {
|
|
1335
2167
|
status: "granted";
|
|
1336
|
-
basis: "
|
|
2168
|
+
basis: "contract" | "user_consent" | "legitimate_interest" | "project_policy";
|
|
1337
2169
|
recordedAt: string;
|
|
1338
2170
|
reference?: string | undefined;
|
|
1339
2171
|
} | undefined;
|
|
1340
2172
|
resourceIds?: string[] | undefined;
|
|
2173
|
+
approvedOperationalActorCanonicalKeys?: string[] | undefined;
|
|
1341
2174
|
selectionMode?: "selected_resources" | "recipe_default" | undefined;
|
|
1342
2175
|
existingContent?: "future_only" | "last_30_days" | "last_90_days" | "all" | undefined;
|
|
1343
2176
|
maxBackfillItems?: number | null | undefined;
|
|
1344
2177
|
deliveryMode?: "auto" | "webhook" | "polling" | undefined;
|
|
2178
|
+
authorizationPerspective?: "bot" | "user" | "provider_default" | undefined;
|
|
2179
|
+
includeAttachments?: boolean | undefined;
|
|
2180
|
+
includeFileContent?: boolean | undefined;
|
|
2181
|
+
includeEmailBodies?: boolean | undefined;
|
|
2182
|
+
includeConversationTranscripts?: boolean | undefined;
|
|
2183
|
+
includeCallActivity?: boolean | undefined;
|
|
2184
|
+
includePrivateConversations?: boolean | undefined;
|
|
2185
|
+
includeExternalConversations?: boolean | undefined;
|
|
2186
|
+
includeBotMessages?: boolean | undefined;
|
|
2187
|
+
excludedActorCanonicalKeys?: string[] | undefined;
|
|
1345
2188
|
rememberInstructions?: string | undefined;
|
|
1346
2189
|
excludeInstructions?: string | undefined;
|
|
1347
|
-
allowedMemoryTypes?: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
|
|
1348
2190
|
learnedRetentionDays?: number | null | undefined;
|
|
1349
2191
|
sourceRetentionDays?: number | null | undefined;
|
|
1350
2192
|
}>;
|
|
1351
2193
|
export declare const memoryConnectedSourcePreviewInputSchema: z.ZodEffects<z.ZodObject<{
|
|
2194
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
1352
2195
|
tenantId: z.ZodOptional<z.ZodString>;
|
|
1353
2196
|
externalTenantId: z.ZodOptional<z.ZodString>;
|
|
1354
2197
|
connectedAccountId: z.ZodString;
|
|
1355
2198
|
sourceFamilyKey: z.ZodString;
|
|
1356
2199
|
resourceIds: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1357
2200
|
existingContent: z.ZodDefault<z.ZodEnum<["future_only", "last_30_days", "last_90_days", "all"]>>;
|
|
2201
|
+
authorizationPerspective: z.ZodDefault<z.ZodEnum<["provider_default", "bot", "user"]>>;
|
|
2202
|
+
includeAttachments: z.ZodDefault<z.ZodBoolean>;
|
|
2203
|
+
includeFileContent: z.ZodDefault<z.ZodBoolean>;
|
|
2204
|
+
includeEmailBodies: z.ZodDefault<z.ZodBoolean>;
|
|
2205
|
+
includeConversationTranscripts: z.ZodDefault<z.ZodBoolean>;
|
|
2206
|
+
includeCallActivity: z.ZodDefault<z.ZodBoolean>;
|
|
2207
|
+
includePrivateConversations: z.ZodDefault<z.ZodBoolean>;
|
|
2208
|
+
includeExternalConversations: z.ZodDefault<z.ZodBoolean>;
|
|
2209
|
+
includeBotMessages: z.ZodDefault<z.ZodBoolean>;
|
|
2210
|
+
approvedOperationalActorCanonicalKeys: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
2211
|
+
excludedActorCanonicalKeys: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1358
2212
|
}, "strict", z.ZodTypeAny, {
|
|
1359
2213
|
connectedAccountId: string;
|
|
1360
2214
|
resourceIds: string[];
|
|
2215
|
+
approvedOperationalActorCanonicalKeys: string[];
|
|
1361
2216
|
sourceFamilyKey: string;
|
|
1362
2217
|
existingContent: "future_only" | "last_30_days" | "last_90_days" | "all";
|
|
2218
|
+
authorizationPerspective: "bot" | "user" | "provider_default";
|
|
2219
|
+
includeAttachments: boolean;
|
|
2220
|
+
includeFileContent: boolean;
|
|
2221
|
+
includeEmailBodies: boolean;
|
|
2222
|
+
includeConversationTranscripts: boolean;
|
|
2223
|
+
includeCallActivity: boolean;
|
|
2224
|
+
includePrivateConversations: boolean;
|
|
2225
|
+
includeExternalConversations: boolean;
|
|
2226
|
+
includeBotMessages: boolean;
|
|
2227
|
+
excludedActorCanonicalKeys: string[];
|
|
2228
|
+
sessionId?: string | undefined;
|
|
1363
2229
|
tenantId?: string | undefined;
|
|
1364
2230
|
externalTenantId?: string | undefined;
|
|
1365
2231
|
}, {
|
|
1366
2232
|
connectedAccountId: string;
|
|
1367
2233
|
sourceFamilyKey: string;
|
|
2234
|
+
sessionId?: string | undefined;
|
|
1368
2235
|
tenantId?: string | undefined;
|
|
1369
2236
|
externalTenantId?: string | undefined;
|
|
1370
2237
|
resourceIds?: string[] | undefined;
|
|
2238
|
+
approvedOperationalActorCanonicalKeys?: string[] | undefined;
|
|
1371
2239
|
existingContent?: "future_only" | "last_30_days" | "last_90_days" | "all" | undefined;
|
|
2240
|
+
authorizationPerspective?: "bot" | "user" | "provider_default" | undefined;
|
|
2241
|
+
includeAttachments?: boolean | undefined;
|
|
2242
|
+
includeFileContent?: boolean | undefined;
|
|
2243
|
+
includeEmailBodies?: boolean | undefined;
|
|
2244
|
+
includeConversationTranscripts?: boolean | undefined;
|
|
2245
|
+
includeCallActivity?: boolean | undefined;
|
|
2246
|
+
includePrivateConversations?: boolean | undefined;
|
|
2247
|
+
includeExternalConversations?: boolean | undefined;
|
|
2248
|
+
includeBotMessages?: boolean | undefined;
|
|
2249
|
+
excludedActorCanonicalKeys?: string[] | undefined;
|
|
1372
2250
|
}>, {
|
|
1373
2251
|
connectedAccountId: string;
|
|
1374
2252
|
resourceIds: string[];
|
|
2253
|
+
approvedOperationalActorCanonicalKeys: string[];
|
|
1375
2254
|
sourceFamilyKey: string;
|
|
1376
2255
|
existingContent: "future_only" | "last_30_days" | "last_90_days" | "all";
|
|
2256
|
+
authorizationPerspective: "bot" | "user" | "provider_default";
|
|
2257
|
+
includeAttachments: boolean;
|
|
2258
|
+
includeFileContent: boolean;
|
|
2259
|
+
includeEmailBodies: boolean;
|
|
2260
|
+
includeConversationTranscripts: boolean;
|
|
2261
|
+
includeCallActivity: boolean;
|
|
2262
|
+
includePrivateConversations: boolean;
|
|
2263
|
+
includeExternalConversations: boolean;
|
|
2264
|
+
includeBotMessages: boolean;
|
|
2265
|
+
excludedActorCanonicalKeys: string[];
|
|
2266
|
+
sessionId?: string | undefined;
|
|
1377
2267
|
tenantId?: string | undefined;
|
|
1378
2268
|
externalTenantId?: string | undefined;
|
|
1379
2269
|
}, {
|
|
1380
2270
|
connectedAccountId: string;
|
|
1381
2271
|
sourceFamilyKey: string;
|
|
2272
|
+
sessionId?: string | undefined;
|
|
1382
2273
|
tenantId?: string | undefined;
|
|
1383
2274
|
externalTenantId?: string | undefined;
|
|
1384
2275
|
resourceIds?: string[] | undefined;
|
|
2276
|
+
approvedOperationalActorCanonicalKeys?: string[] | undefined;
|
|
1385
2277
|
existingContent?: "future_only" | "last_30_days" | "last_90_days" | "all" | undefined;
|
|
2278
|
+
authorizationPerspective?: "bot" | "user" | "provider_default" | undefined;
|
|
2279
|
+
includeAttachments?: boolean | undefined;
|
|
2280
|
+
includeFileContent?: boolean | undefined;
|
|
2281
|
+
includeEmailBodies?: boolean | undefined;
|
|
2282
|
+
includeConversationTranscripts?: boolean | undefined;
|
|
2283
|
+
includeCallActivity?: boolean | undefined;
|
|
2284
|
+
includePrivateConversations?: boolean | undefined;
|
|
2285
|
+
includeExternalConversations?: boolean | undefined;
|
|
2286
|
+
includeBotMessages?: boolean | undefined;
|
|
2287
|
+
excludedActorCanonicalKeys?: string[] | undefined;
|
|
1386
2288
|
}>;
|
|
1387
2289
|
export declare const memoryConnectedSourceSettingsInputSchema: z.ZodObject<{
|
|
1388
2290
|
resourceIds: z.ZodArray<z.ZodString, "many">;
|
|
@@ -1397,24 +2299,45 @@ export declare const memoryConnectedSourceSettingsInputSchema: z.ZodObject<{
|
|
|
1397
2299
|
externalId: string;
|
|
1398
2300
|
}>, "many">;
|
|
1399
2301
|
existingContent: z.ZodEnum<["future_only", "last_30_days", "last_90_days", "all"]>;
|
|
2302
|
+
includeAttachments: z.ZodDefault<z.ZodBoolean>;
|
|
2303
|
+
includeFileContent: z.ZodDefault<z.ZodBoolean>;
|
|
2304
|
+
includeEmailBodies: z.ZodDefault<z.ZodBoolean>;
|
|
2305
|
+
includeConversationTranscripts: z.ZodDefault<z.ZodBoolean>;
|
|
2306
|
+
includeCallActivity: z.ZodDefault<z.ZodBoolean>;
|
|
2307
|
+
includePrivateConversations: z.ZodDefault<z.ZodBoolean>;
|
|
2308
|
+
includeExternalConversations: z.ZodDefault<z.ZodBoolean>;
|
|
2309
|
+
includeBotMessages: z.ZodDefault<z.ZodBoolean>;
|
|
2310
|
+
approvedOperationalActorCanonicalKeys: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
2311
|
+
excludedActorCanonicalKeys: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1400
2312
|
rememberInstructions: z.ZodString;
|
|
1401
2313
|
excludeInstructions: z.ZodString;
|
|
1402
2314
|
allowedMemoryTypes: z.ZodArray<z.ZodEnum<["preference", "decision", "commitment", "goal", "constraint", "relationship", "durable_fact"]>, "many">;
|
|
1403
2315
|
learnedRetentionDays: z.ZodNullable<z.ZodNumber>;
|
|
1404
2316
|
sourceRetentionDays: z.ZodNullable<z.ZodNumber>;
|
|
1405
2317
|
}, "strict", z.ZodTypeAny, {
|
|
2318
|
+
allowedMemoryTypes: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
|
|
1406
2319
|
resourceIds: string[];
|
|
1407
2320
|
targets: {
|
|
1408
2321
|
type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
|
|
1409
2322
|
externalId: string;
|
|
1410
2323
|
}[];
|
|
2324
|
+
approvedOperationalActorCanonicalKeys: string[];
|
|
1411
2325
|
existingContent: "future_only" | "last_30_days" | "last_90_days" | "all";
|
|
2326
|
+
includeAttachments: boolean;
|
|
2327
|
+
includeFileContent: boolean;
|
|
2328
|
+
includeEmailBodies: boolean;
|
|
2329
|
+
includeConversationTranscripts: boolean;
|
|
2330
|
+
includeCallActivity: boolean;
|
|
2331
|
+
includePrivateConversations: boolean;
|
|
2332
|
+
includeExternalConversations: boolean;
|
|
2333
|
+
includeBotMessages: boolean;
|
|
2334
|
+
excludedActorCanonicalKeys: string[];
|
|
1412
2335
|
rememberInstructions: string;
|
|
1413
2336
|
excludeInstructions: string;
|
|
1414
|
-
allowedMemoryTypes: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
|
|
1415
2337
|
learnedRetentionDays: number | null;
|
|
1416
2338
|
sourceRetentionDays: number | null;
|
|
1417
2339
|
}, {
|
|
2340
|
+
allowedMemoryTypes: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
|
|
1418
2341
|
resourceIds: string[];
|
|
1419
2342
|
targets: {
|
|
1420
2343
|
type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
|
|
@@ -1423,9 +2346,18 @@ export declare const memoryConnectedSourceSettingsInputSchema: z.ZodObject<{
|
|
|
1423
2346
|
existingContent: "future_only" | "last_30_days" | "last_90_days" | "all";
|
|
1424
2347
|
rememberInstructions: string;
|
|
1425
2348
|
excludeInstructions: string;
|
|
1426
|
-
allowedMemoryTypes: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
|
|
1427
2349
|
learnedRetentionDays: number | null;
|
|
1428
2350
|
sourceRetentionDays: number | null;
|
|
2351
|
+
approvedOperationalActorCanonicalKeys?: string[] | undefined;
|
|
2352
|
+
includeAttachments?: boolean | undefined;
|
|
2353
|
+
includeFileContent?: boolean | undefined;
|
|
2354
|
+
includeEmailBodies?: boolean | undefined;
|
|
2355
|
+
includeConversationTranscripts?: boolean | undefined;
|
|
2356
|
+
includeCallActivity?: boolean | undefined;
|
|
2357
|
+
includePrivateConversations?: boolean | undefined;
|
|
2358
|
+
includeExternalConversations?: boolean | undefined;
|
|
2359
|
+
includeBotMessages?: boolean | undefined;
|
|
2360
|
+
excludedActorCanonicalKeys?: string[] | undefined;
|
|
1429
2361
|
}>;
|
|
1430
2362
|
export declare const memorySourceBindingUpdateInputSchema: z.ZodEffects<z.ZodObject<{
|
|
1431
2363
|
status: z.ZodOptional<z.ZodEnum<["active", "paused"]>>;
|
|
@@ -1442,24 +2374,45 @@ export declare const memorySourceBindingUpdateInputSchema: z.ZodEffects<z.ZodObj
|
|
|
1442
2374
|
externalId: string;
|
|
1443
2375
|
}>, "many">;
|
|
1444
2376
|
existingContent: z.ZodEnum<["future_only", "last_30_days", "last_90_days", "all"]>;
|
|
2377
|
+
includeAttachments: z.ZodDefault<z.ZodBoolean>;
|
|
2378
|
+
includeFileContent: z.ZodDefault<z.ZodBoolean>;
|
|
2379
|
+
includeEmailBodies: z.ZodDefault<z.ZodBoolean>;
|
|
2380
|
+
includeConversationTranscripts: z.ZodDefault<z.ZodBoolean>;
|
|
2381
|
+
includeCallActivity: z.ZodDefault<z.ZodBoolean>;
|
|
2382
|
+
includePrivateConversations: z.ZodDefault<z.ZodBoolean>;
|
|
2383
|
+
includeExternalConversations: z.ZodDefault<z.ZodBoolean>;
|
|
2384
|
+
includeBotMessages: z.ZodDefault<z.ZodBoolean>;
|
|
2385
|
+
approvedOperationalActorCanonicalKeys: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
2386
|
+
excludedActorCanonicalKeys: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1445
2387
|
rememberInstructions: z.ZodString;
|
|
1446
2388
|
excludeInstructions: z.ZodString;
|
|
1447
2389
|
allowedMemoryTypes: z.ZodArray<z.ZodEnum<["preference", "decision", "commitment", "goal", "constraint", "relationship", "durable_fact"]>, "many">;
|
|
1448
2390
|
learnedRetentionDays: z.ZodNullable<z.ZodNumber>;
|
|
1449
2391
|
sourceRetentionDays: z.ZodNullable<z.ZodNumber>;
|
|
1450
2392
|
}, "strict", z.ZodTypeAny, {
|
|
2393
|
+
allowedMemoryTypes: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
|
|
1451
2394
|
resourceIds: string[];
|
|
1452
2395
|
targets: {
|
|
1453
2396
|
type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
|
|
1454
2397
|
externalId: string;
|
|
1455
2398
|
}[];
|
|
2399
|
+
approvedOperationalActorCanonicalKeys: string[];
|
|
1456
2400
|
existingContent: "future_only" | "last_30_days" | "last_90_days" | "all";
|
|
2401
|
+
includeAttachments: boolean;
|
|
2402
|
+
includeFileContent: boolean;
|
|
2403
|
+
includeEmailBodies: boolean;
|
|
2404
|
+
includeConversationTranscripts: boolean;
|
|
2405
|
+
includeCallActivity: boolean;
|
|
2406
|
+
includePrivateConversations: boolean;
|
|
2407
|
+
includeExternalConversations: boolean;
|
|
2408
|
+
includeBotMessages: boolean;
|
|
2409
|
+
excludedActorCanonicalKeys: string[];
|
|
1457
2410
|
rememberInstructions: string;
|
|
1458
2411
|
excludeInstructions: string;
|
|
1459
|
-
allowedMemoryTypes: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
|
|
1460
2412
|
learnedRetentionDays: number | null;
|
|
1461
2413
|
sourceRetentionDays: number | null;
|
|
1462
2414
|
}, {
|
|
2415
|
+
allowedMemoryTypes: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
|
|
1463
2416
|
resourceIds: string[];
|
|
1464
2417
|
targets: {
|
|
1465
2418
|
type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
|
|
@@ -1468,28 +2421,48 @@ export declare const memorySourceBindingUpdateInputSchema: z.ZodEffects<z.ZodObj
|
|
|
1468
2421
|
existingContent: "future_only" | "last_30_days" | "last_90_days" | "all";
|
|
1469
2422
|
rememberInstructions: string;
|
|
1470
2423
|
excludeInstructions: string;
|
|
1471
|
-
allowedMemoryTypes: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
|
|
1472
2424
|
learnedRetentionDays: number | null;
|
|
1473
2425
|
sourceRetentionDays: number | null;
|
|
2426
|
+
approvedOperationalActorCanonicalKeys?: string[] | undefined;
|
|
2427
|
+
includeAttachments?: boolean | undefined;
|
|
2428
|
+
includeFileContent?: boolean | undefined;
|
|
2429
|
+
includeEmailBodies?: boolean | undefined;
|
|
2430
|
+
includeConversationTranscripts?: boolean | undefined;
|
|
2431
|
+
includeCallActivity?: boolean | undefined;
|
|
2432
|
+
includePrivateConversations?: boolean | undefined;
|
|
2433
|
+
includeExternalConversations?: boolean | undefined;
|
|
2434
|
+
includeBotMessages?: boolean | undefined;
|
|
2435
|
+
excludedActorCanonicalKeys?: string[] | undefined;
|
|
1474
2436
|
}>>;
|
|
1475
2437
|
}, "strict", z.ZodTypeAny, {
|
|
1476
2438
|
status?: "active" | "paused" | undefined;
|
|
1477
2439
|
connectedSource?: {
|
|
2440
|
+
allowedMemoryTypes: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
|
|
1478
2441
|
resourceIds: string[];
|
|
1479
2442
|
targets: {
|
|
1480
2443
|
type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
|
|
1481
2444
|
externalId: string;
|
|
1482
2445
|
}[];
|
|
2446
|
+
approvedOperationalActorCanonicalKeys: string[];
|
|
1483
2447
|
existingContent: "future_only" | "last_30_days" | "last_90_days" | "all";
|
|
2448
|
+
includeAttachments: boolean;
|
|
2449
|
+
includeFileContent: boolean;
|
|
2450
|
+
includeEmailBodies: boolean;
|
|
2451
|
+
includeConversationTranscripts: boolean;
|
|
2452
|
+
includeCallActivity: boolean;
|
|
2453
|
+
includePrivateConversations: boolean;
|
|
2454
|
+
includeExternalConversations: boolean;
|
|
2455
|
+
includeBotMessages: boolean;
|
|
2456
|
+
excludedActorCanonicalKeys: string[];
|
|
1484
2457
|
rememberInstructions: string;
|
|
1485
2458
|
excludeInstructions: string;
|
|
1486
|
-
allowedMemoryTypes: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
|
|
1487
2459
|
learnedRetentionDays: number | null;
|
|
1488
2460
|
sourceRetentionDays: number | null;
|
|
1489
2461
|
} | undefined;
|
|
1490
2462
|
}, {
|
|
1491
2463
|
status?: "active" | "paused" | undefined;
|
|
1492
2464
|
connectedSource?: {
|
|
2465
|
+
allowedMemoryTypes: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
|
|
1493
2466
|
resourceIds: string[];
|
|
1494
2467
|
targets: {
|
|
1495
2468
|
type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
|
|
@@ -1498,28 +2471,48 @@ export declare const memorySourceBindingUpdateInputSchema: z.ZodEffects<z.ZodObj
|
|
|
1498
2471
|
existingContent: "future_only" | "last_30_days" | "last_90_days" | "all";
|
|
1499
2472
|
rememberInstructions: string;
|
|
1500
2473
|
excludeInstructions: string;
|
|
1501
|
-
allowedMemoryTypes: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
|
|
1502
2474
|
learnedRetentionDays: number | null;
|
|
1503
2475
|
sourceRetentionDays: number | null;
|
|
2476
|
+
approvedOperationalActorCanonicalKeys?: string[] | undefined;
|
|
2477
|
+
includeAttachments?: boolean | undefined;
|
|
2478
|
+
includeFileContent?: boolean | undefined;
|
|
2479
|
+
includeEmailBodies?: boolean | undefined;
|
|
2480
|
+
includeConversationTranscripts?: boolean | undefined;
|
|
2481
|
+
includeCallActivity?: boolean | undefined;
|
|
2482
|
+
includePrivateConversations?: boolean | undefined;
|
|
2483
|
+
includeExternalConversations?: boolean | undefined;
|
|
2484
|
+
includeBotMessages?: boolean | undefined;
|
|
2485
|
+
excludedActorCanonicalKeys?: string[] | undefined;
|
|
1504
2486
|
} | undefined;
|
|
1505
2487
|
}>, {
|
|
1506
2488
|
status?: "active" | "paused" | undefined;
|
|
1507
2489
|
connectedSource?: {
|
|
2490
|
+
allowedMemoryTypes: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
|
|
1508
2491
|
resourceIds: string[];
|
|
1509
2492
|
targets: {
|
|
1510
2493
|
type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
|
|
1511
2494
|
externalId: string;
|
|
1512
2495
|
}[];
|
|
2496
|
+
approvedOperationalActorCanonicalKeys: string[];
|
|
1513
2497
|
existingContent: "future_only" | "last_30_days" | "last_90_days" | "all";
|
|
2498
|
+
includeAttachments: boolean;
|
|
2499
|
+
includeFileContent: boolean;
|
|
2500
|
+
includeEmailBodies: boolean;
|
|
2501
|
+
includeConversationTranscripts: boolean;
|
|
2502
|
+
includeCallActivity: boolean;
|
|
2503
|
+
includePrivateConversations: boolean;
|
|
2504
|
+
includeExternalConversations: boolean;
|
|
2505
|
+
includeBotMessages: boolean;
|
|
2506
|
+
excludedActorCanonicalKeys: string[];
|
|
1514
2507
|
rememberInstructions: string;
|
|
1515
2508
|
excludeInstructions: string;
|
|
1516
|
-
allowedMemoryTypes: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
|
|
1517
2509
|
learnedRetentionDays: number | null;
|
|
1518
2510
|
sourceRetentionDays: number | null;
|
|
1519
2511
|
} | undefined;
|
|
1520
2512
|
}, {
|
|
1521
2513
|
status?: "active" | "paused" | undefined;
|
|
1522
2514
|
connectedSource?: {
|
|
2515
|
+
allowedMemoryTypes: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
|
|
1523
2516
|
resourceIds: string[];
|
|
1524
2517
|
targets: {
|
|
1525
2518
|
type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
|
|
@@ -1528,15 +2521,32 @@ export declare const memorySourceBindingUpdateInputSchema: z.ZodEffects<z.ZodObj
|
|
|
1528
2521
|
existingContent: "future_only" | "last_30_days" | "last_90_days" | "all";
|
|
1529
2522
|
rememberInstructions: string;
|
|
1530
2523
|
excludeInstructions: string;
|
|
1531
|
-
allowedMemoryTypes: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
|
|
1532
2524
|
learnedRetentionDays: number | null;
|
|
1533
2525
|
sourceRetentionDays: number | null;
|
|
2526
|
+
approvedOperationalActorCanonicalKeys?: string[] | undefined;
|
|
2527
|
+
includeAttachments?: boolean | undefined;
|
|
2528
|
+
includeFileContent?: boolean | undefined;
|
|
2529
|
+
includeEmailBodies?: boolean | undefined;
|
|
2530
|
+
includeConversationTranscripts?: boolean | undefined;
|
|
2531
|
+
includeCallActivity?: boolean | undefined;
|
|
2532
|
+
includePrivateConversations?: boolean | undefined;
|
|
2533
|
+
includeExternalConversations?: boolean | undefined;
|
|
2534
|
+
includeBotMessages?: boolean | undefined;
|
|
2535
|
+
excludedActorCanonicalKeys?: string[] | undefined;
|
|
1534
2536
|
} | undefined;
|
|
1535
2537
|
}>;
|
|
1536
2538
|
export type MemoryConnectedSourceInput = z.input<typeof memoryConnectedSourceInputSchema>;
|
|
1537
2539
|
export type MemoryConnectedSourcePreviewInput = z.input<typeof memoryConnectedSourcePreviewInputSchema>;
|
|
1538
2540
|
export type MemoryConnectedSourceSettingsInput = z.input<typeof memoryConnectedSourceSettingsInputSchema>;
|
|
1539
2541
|
export type MemorySourceBindingUpdateInput = z.input<typeof memorySourceBindingUpdateInputSchema>;
|
|
2542
|
+
export declare const memorySourceRemovalInputSchema: z.ZodObject<{
|
|
2543
|
+
learnedRecords: z.ZodEnum<["retain", "forget", "erase"]>;
|
|
2544
|
+
}, "strict", z.ZodTypeAny, {
|
|
2545
|
+
learnedRecords: "retain" | "forget" | "erase";
|
|
2546
|
+
}, {
|
|
2547
|
+
learnedRecords: "retain" | "forget" | "erase";
|
|
2548
|
+
}>;
|
|
2549
|
+
export type MemorySourceRemovalInput = z.input<typeof memorySourceRemovalInputSchema>;
|
|
1540
2550
|
export declare const memoryProcessSourceJobType = "memory_process_source";
|
|
1541
2551
|
export declare const memoryNormalizeRichSourceJobType = "memory_normalize_rich_source";
|
|
1542
2552
|
export declare const memoryRebuildProfileJobType = "memory_rebuild_profile";
|
|
@@ -1558,12 +2568,12 @@ export declare const memoryConversationTurnInputSchema: z.ZodObject<{
|
|
|
1558
2568
|
reference: z.ZodOptional<z.ZodString>;
|
|
1559
2569
|
}, "strict", z.ZodTypeAny, {
|
|
1560
2570
|
status: "granted";
|
|
1561
|
-
basis: "
|
|
2571
|
+
basis: "contract" | "user_consent" | "legitimate_interest" | "project_policy";
|
|
1562
2572
|
recordedAt: string;
|
|
1563
2573
|
reference?: string | undefined;
|
|
1564
2574
|
}, {
|
|
1565
2575
|
status: "granted";
|
|
1566
|
-
basis: "
|
|
2576
|
+
basis: "contract" | "user_consent" | "legitimate_interest" | "project_policy";
|
|
1567
2577
|
recordedAt: string;
|
|
1568
2578
|
reference?: string | undefined;
|
|
1569
2579
|
}>>;
|
|
@@ -1577,7 +2587,7 @@ export declare const memoryConversationTurnInputSchema: z.ZodObject<{
|
|
|
1577
2587
|
title?: string | undefined;
|
|
1578
2588
|
consent?: {
|
|
1579
2589
|
status: "granted";
|
|
1580
|
-
basis: "
|
|
2590
|
+
basis: "contract" | "user_consent" | "legitimate_interest" | "project_policy";
|
|
1581
2591
|
recordedAt: string;
|
|
1582
2592
|
reference?: string | undefined;
|
|
1583
2593
|
} | undefined;
|
|
@@ -1591,7 +2601,7 @@ export declare const memoryConversationTurnInputSchema: z.ZodObject<{
|
|
|
1591
2601
|
title?: string | undefined;
|
|
1592
2602
|
consent?: {
|
|
1593
2603
|
status: "granted";
|
|
1594
|
-
basis: "
|
|
2604
|
+
basis: "contract" | "user_consent" | "legitimate_interest" | "project_policy";
|
|
1595
2605
|
recordedAt: string;
|
|
1596
2606
|
reference?: string | undefined;
|
|
1597
2607
|
} | undefined;
|
|
@@ -1640,15 +2650,15 @@ export declare const memoryGraphQueryInputSchema: z.ZodEffects<z.ZodEffects<z.Zo
|
|
|
1640
2650
|
seedRecordIds: string[];
|
|
1641
2651
|
maxDepth: number;
|
|
1642
2652
|
maxClaims: number;
|
|
1643
|
-
query?: string | undefined;
|
|
1644
|
-
tenantId?: string | undefined;
|
|
1645
2653
|
sessionId?: string | undefined;
|
|
1646
2654
|
recordedAt?: string | undefined;
|
|
2655
|
+
tenantId?: string | undefined;
|
|
1647
2656
|
externalTenantId?: string | undefined;
|
|
1648
2657
|
subjects?: {
|
|
1649
2658
|
type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
|
|
1650
2659
|
externalId: string;
|
|
1651
2660
|
}[] | undefined;
|
|
2661
|
+
query?: string | undefined;
|
|
1652
2662
|
kinds?: ("fact" | "episode" | "profile_item" | "block")[] | undefined;
|
|
1653
2663
|
memoryTypes?: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
|
|
1654
2664
|
providerKeys?: string[] | undefined;
|
|
@@ -1661,15 +2671,15 @@ export declare const memoryGraphQueryInputSchema: z.ZodEffects<z.ZodEffects<z.Zo
|
|
|
1661
2671
|
predicates?: string[] | undefined;
|
|
1662
2672
|
}, {
|
|
1663
2673
|
limit?: number | undefined;
|
|
1664
|
-
query?: string | undefined;
|
|
1665
|
-
tenantId?: string | undefined;
|
|
1666
2674
|
sessionId?: string | undefined;
|
|
1667
2675
|
recordedAt?: string | undefined;
|
|
2676
|
+
tenantId?: string | undefined;
|
|
1668
2677
|
externalTenantId?: string | undefined;
|
|
1669
2678
|
subjects?: {
|
|
1670
2679
|
type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
|
|
1671
2680
|
externalId: string;
|
|
1672
2681
|
}[] | undefined;
|
|
2682
|
+
query?: string | undefined;
|
|
1673
2683
|
kinds?: ("fact" | "episode" | "profile_item" | "block")[] | undefined;
|
|
1674
2684
|
memoryTypes?: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
|
|
1675
2685
|
providerKeys?: string[] | undefined;
|
|
@@ -1694,15 +2704,15 @@ export declare const memoryGraphQueryInputSchema: z.ZodEffects<z.ZodEffects<z.Zo
|
|
|
1694
2704
|
seedRecordIds: string[];
|
|
1695
2705
|
maxDepth: number;
|
|
1696
2706
|
maxClaims: number;
|
|
1697
|
-
query?: string | undefined;
|
|
1698
|
-
tenantId?: string | undefined;
|
|
1699
2707
|
sessionId?: string | undefined;
|
|
1700
2708
|
recordedAt?: string | undefined;
|
|
2709
|
+
tenantId?: string | undefined;
|
|
1701
2710
|
externalTenantId?: string | undefined;
|
|
1702
2711
|
subjects?: {
|
|
1703
2712
|
type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
|
|
1704
2713
|
externalId: string;
|
|
1705
2714
|
}[] | undefined;
|
|
2715
|
+
query?: string | undefined;
|
|
1706
2716
|
kinds?: ("fact" | "episode" | "profile_item" | "block")[] | undefined;
|
|
1707
2717
|
memoryTypes?: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
|
|
1708
2718
|
providerKeys?: string[] | undefined;
|
|
@@ -1715,15 +2725,15 @@ export declare const memoryGraphQueryInputSchema: z.ZodEffects<z.ZodEffects<z.Zo
|
|
|
1715
2725
|
predicates?: string[] | undefined;
|
|
1716
2726
|
}, {
|
|
1717
2727
|
limit?: number | undefined;
|
|
1718
|
-
query?: string | undefined;
|
|
1719
|
-
tenantId?: string | undefined;
|
|
1720
2728
|
sessionId?: string | undefined;
|
|
1721
2729
|
recordedAt?: string | undefined;
|
|
2730
|
+
tenantId?: string | undefined;
|
|
1722
2731
|
externalTenantId?: string | undefined;
|
|
1723
2732
|
subjects?: {
|
|
1724
2733
|
type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
|
|
1725
2734
|
externalId: string;
|
|
1726
2735
|
}[] | undefined;
|
|
2736
|
+
query?: string | undefined;
|
|
1727
2737
|
kinds?: ("fact" | "episode" | "profile_item" | "block")[] | undefined;
|
|
1728
2738
|
memoryTypes?: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
|
|
1729
2739
|
providerKeys?: string[] | undefined;
|
|
@@ -1748,15 +2758,15 @@ export declare const memoryGraphQueryInputSchema: z.ZodEffects<z.ZodEffects<z.Zo
|
|
|
1748
2758
|
seedRecordIds: string[];
|
|
1749
2759
|
maxDepth: number;
|
|
1750
2760
|
maxClaims: number;
|
|
1751
|
-
query?: string | undefined;
|
|
1752
|
-
tenantId?: string | undefined;
|
|
1753
2761
|
sessionId?: string | undefined;
|
|
1754
2762
|
recordedAt?: string | undefined;
|
|
2763
|
+
tenantId?: string | undefined;
|
|
1755
2764
|
externalTenantId?: string | undefined;
|
|
1756
2765
|
subjects?: {
|
|
1757
2766
|
type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
|
|
1758
2767
|
externalId: string;
|
|
1759
2768
|
}[] | undefined;
|
|
2769
|
+
query?: string | undefined;
|
|
1760
2770
|
kinds?: ("fact" | "episode" | "profile_item" | "block")[] | undefined;
|
|
1761
2771
|
memoryTypes?: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
|
|
1762
2772
|
providerKeys?: string[] | undefined;
|
|
@@ -1769,15 +2779,15 @@ export declare const memoryGraphQueryInputSchema: z.ZodEffects<z.ZodEffects<z.Zo
|
|
|
1769
2779
|
predicates?: string[] | undefined;
|
|
1770
2780
|
}, {
|
|
1771
2781
|
limit?: number | undefined;
|
|
1772
|
-
query?: string | undefined;
|
|
1773
|
-
tenantId?: string | undefined;
|
|
1774
2782
|
sessionId?: string | undefined;
|
|
1775
2783
|
recordedAt?: string | undefined;
|
|
2784
|
+
tenantId?: string | undefined;
|
|
1776
2785
|
externalTenantId?: string | undefined;
|
|
1777
2786
|
subjects?: {
|
|
1778
2787
|
type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
|
|
1779
2788
|
externalId: string;
|
|
1780
2789
|
}[] | undefined;
|
|
2790
|
+
query?: string | undefined;
|
|
1781
2791
|
kinds?: ("fact" | "episode" | "profile_item" | "block")[] | undefined;
|
|
1782
2792
|
memoryTypes?: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
|
|
1783
2793
|
providerKeys?: string[] | undefined;
|
|
@@ -1819,8 +2829,8 @@ export declare const memoryExportInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1819
2829
|
externalId: string;
|
|
1820
2830
|
} | undefined;
|
|
1821
2831
|
}, {
|
|
1822
|
-
tenantId?: string | undefined;
|
|
1823
2832
|
format?: "json" | "jsonl" | undefined;
|
|
2833
|
+
tenantId?: string | undefined;
|
|
1824
2834
|
externalTenantId?: string | undefined;
|
|
1825
2835
|
subject?: {
|
|
1826
2836
|
type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
|
|
@@ -1835,8 +2845,8 @@ export declare const memoryExportInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1835
2845
|
externalId: string;
|
|
1836
2846
|
} | undefined;
|
|
1837
2847
|
}, {
|
|
1838
|
-
tenantId?: string | undefined;
|
|
1839
2848
|
format?: "json" | "jsonl" | undefined;
|
|
2849
|
+
tenantId?: string | undefined;
|
|
1840
2850
|
externalTenantId?: string | undefined;
|
|
1841
2851
|
subject?: {
|
|
1842
2852
|
type: "run" | "user" | "agent" | "tenant" | "application" | "custom";
|
|
@@ -1908,9 +2918,9 @@ export declare const memoryProjectPolicyInputSchema: z.ZodObject<{
|
|
|
1908
2918
|
metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1909
2919
|
}, "strip", z.ZodTypeAny, {
|
|
1910
2920
|
metadata: Record<string, unknown>;
|
|
2921
|
+
allowedMemoryTypes: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
|
|
1911
2922
|
restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
|
|
1912
2923
|
consent: Record<string, unknown>;
|
|
1913
|
-
allowedMemoryTypes: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
|
|
1914
2924
|
sourceRetentionDays: number | null;
|
|
1915
2925
|
key: string;
|
|
1916
2926
|
captureMode: "explicit" | "bound_sources";
|
|
@@ -1922,9 +2932,9 @@ export declare const memoryProjectPolicyInputSchema: z.ZodObject<{
|
|
|
1922
2932
|
context: Record<string, unknown>;
|
|
1923
2933
|
}, {
|
|
1924
2934
|
metadata?: Record<string, unknown> | undefined;
|
|
2935
|
+
allowedMemoryTypes?: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
|
|
1925
2936
|
restrictedDataClasses?: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[] | undefined;
|
|
1926
2937
|
consent?: Record<string, unknown> | undefined;
|
|
1927
|
-
allowedMemoryTypes?: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
|
|
1928
2938
|
sourceRetentionDays?: number | null | undefined;
|
|
1929
2939
|
key?: string | undefined;
|
|
1930
2940
|
captureMode?: "explicit" | "bound_sources" | undefined;
|
|
@@ -1953,9 +2963,9 @@ export declare const memoryProjectPolicyUpdateInputSchema: z.ZodObject<Omit<{
|
|
|
1953
2963
|
expectedVersion: z.ZodNumber;
|
|
1954
2964
|
}, "strict", z.ZodTypeAny, {
|
|
1955
2965
|
metadata: Record<string, unknown>;
|
|
2966
|
+
allowedMemoryTypes: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
|
|
1956
2967
|
restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
|
|
1957
2968
|
consent: Record<string, unknown>;
|
|
1958
|
-
allowedMemoryTypes: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
|
|
1959
2969
|
sourceRetentionDays: number | null;
|
|
1960
2970
|
captureMode: "explicit" | "bound_sources";
|
|
1961
2971
|
extractionEnabled: boolean;
|
|
@@ -1968,9 +2978,9 @@ export declare const memoryProjectPolicyUpdateInputSchema: z.ZodObject<Omit<{
|
|
|
1968
2978
|
}, {
|
|
1969
2979
|
expectedVersion: number;
|
|
1970
2980
|
metadata?: Record<string, unknown> | undefined;
|
|
2981
|
+
allowedMemoryTypes?: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
|
|
1971
2982
|
restrictedDataClasses?: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[] | undefined;
|
|
1972
2983
|
consent?: Record<string, unknown> | undefined;
|
|
1973
|
-
allowedMemoryTypes?: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
|
|
1974
2984
|
sourceRetentionDays?: number | null | undefined;
|
|
1975
2985
|
captureMode?: "explicit" | "bound_sources" | undefined;
|
|
1976
2986
|
extractionEnabled?: boolean | undefined;
|
|
@@ -2002,9 +3012,9 @@ export declare const memoryPolicyPreviewInputSchema: z.ZodObject<{
|
|
|
2002
3012
|
metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2003
3013
|
}, "key">, "strip", z.ZodTypeAny, {
|
|
2004
3014
|
metadata: Record<string, unknown>;
|
|
3015
|
+
allowedMemoryTypes: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
|
|
2005
3016
|
restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
|
|
2006
3017
|
consent: Record<string, unknown>;
|
|
2007
|
-
allowedMemoryTypes: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
|
|
2008
3018
|
sourceRetentionDays: number | null;
|
|
2009
3019
|
captureMode: "explicit" | "bound_sources";
|
|
2010
3020
|
extractionEnabled: boolean;
|
|
@@ -2015,9 +3025,9 @@ export declare const memoryPolicyPreviewInputSchema: z.ZodObject<{
|
|
|
2015
3025
|
context: Record<string, unknown>;
|
|
2016
3026
|
}, {
|
|
2017
3027
|
metadata?: Record<string, unknown> | undefined;
|
|
3028
|
+
allowedMemoryTypes?: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
|
|
2018
3029
|
restrictedDataClasses?: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[] | undefined;
|
|
2019
3030
|
consent?: Record<string, unknown> | undefined;
|
|
2020
|
-
allowedMemoryTypes?: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
|
|
2021
3031
|
sourceRetentionDays?: number | null | undefined;
|
|
2022
3032
|
captureMode?: "explicit" | "bound_sources" | undefined;
|
|
2023
3033
|
extractionEnabled?: boolean | undefined;
|
|
@@ -2032,9 +3042,9 @@ export declare const memoryPolicyPreviewInputSchema: z.ZodObject<{
|
|
|
2032
3042
|
idempotencyKey: string;
|
|
2033
3043
|
policy: {
|
|
2034
3044
|
metadata: Record<string, unknown>;
|
|
3045
|
+
allowedMemoryTypes: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
|
|
2035
3046
|
restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
|
|
2036
3047
|
consent: Record<string, unknown>;
|
|
2037
|
-
allowedMemoryTypes: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[];
|
|
2038
3048
|
sourceRetentionDays: number | null;
|
|
2039
3049
|
captureMode: "explicit" | "bound_sources";
|
|
2040
3050
|
extractionEnabled: boolean;
|
|
@@ -2055,9 +3065,9 @@ export declare const memoryPolicyPreviewInputSchema: z.ZodObject<{
|
|
|
2055
3065
|
sourceCategory?: string | undefined;
|
|
2056
3066
|
policy?: {
|
|
2057
3067
|
metadata?: Record<string, unknown> | undefined;
|
|
3068
|
+
allowedMemoryTypes?: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
|
|
2058
3069
|
restrictedDataClasses?: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[] | undefined;
|
|
2059
3070
|
consent?: Record<string, unknown> | undefined;
|
|
2060
|
-
allowedMemoryTypes?: ("preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact")[] | undefined;
|
|
2061
3071
|
sourceRetentionDays?: number | null | undefined;
|
|
2062
3072
|
captureMode?: "explicit" | "bound_sources" | undefined;
|
|
2063
3073
|
extractionEnabled?: boolean | undefined;
|
|
@@ -2071,106 +3081,6 @@ export declare const memoryPolicyPreviewInputSchema: z.ZodObject<{
|
|
|
2071
3081
|
export type MemoryProjectPolicyInput = z.input<typeof memoryProjectPolicyInputSchema>;
|
|
2072
3082
|
export type MemoryProjectPolicyUpdateInput = z.input<typeof memoryProjectPolicyUpdateInputSchema>;
|
|
2073
3083
|
export type MemoryPolicyPreviewInput = z.input<typeof memoryPolicyPreviewInputSchema>;
|
|
2074
|
-
export declare const stacklinkPlatformEventTypes: readonly ["provider.resource.created", "provider.resource.updated", "provider.resource.deleted", "tool.execution.completed", "conversation.turn.completed", "artifact.created"];
|
|
2075
|
-
export declare const stacklinkPlatformEventSchema: z.ZodObject<{
|
|
2076
|
-
id: z.ZodString;
|
|
2077
|
-
schemaVersion: z.ZodLiteral<"stacklink.event.v1">;
|
|
2078
|
-
consumerAppId: z.ZodString;
|
|
2079
|
-
tenantId: z.ZodString;
|
|
2080
|
-
sessionId: z.ZodOptional<z.ZodString>;
|
|
2081
|
-
userId: z.ZodOptional<z.ZodString>;
|
|
2082
|
-
type: z.ZodEnum<["provider.resource.created", "provider.resource.updated", "provider.resource.deleted", "tool.execution.completed", "conversation.turn.completed", "artifact.created"]>;
|
|
2083
|
-
source: z.ZodObject<{
|
|
2084
|
-
kind: z.ZodEnum<["provider", "tool_execution", "conversation", "artifact"]>;
|
|
2085
|
-
providerKey: z.ZodOptional<z.ZodString>;
|
|
2086
|
-
connectedAccountId: z.ZodOptional<z.ZodString>;
|
|
2087
|
-
resourceType: z.ZodOptional<z.ZodString>;
|
|
2088
|
-
resourceId: z.ZodOptional<z.ZodString>;
|
|
2089
|
-
resourcePreviousScopeIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2090
|
-
resourceCurrentScopeIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2091
|
-
resourceAffectedScopeIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2092
|
-
toolExecutionId: z.ZodOptional<z.ZodString>;
|
|
2093
|
-
applicationKey: z.ZodOptional<z.ZodString>;
|
|
2094
|
-
}, "strict", z.ZodTypeAny, {
|
|
2095
|
-
kind: "artifact" | "conversation" | "provider" | "tool_execution";
|
|
2096
|
-
providerKey?: string | undefined;
|
|
2097
|
-
connectedAccountId?: string | undefined;
|
|
2098
|
-
resourceType?: string | undefined;
|
|
2099
|
-
resourceId?: string | undefined;
|
|
2100
|
-
toolExecutionId?: string | undefined;
|
|
2101
|
-
applicationKey?: string | undefined;
|
|
2102
|
-
resourcePreviousScopeIds?: string[] | undefined;
|
|
2103
|
-
resourceCurrentScopeIds?: string[] | undefined;
|
|
2104
|
-
resourceAffectedScopeIds?: string[] | undefined;
|
|
2105
|
-
}, {
|
|
2106
|
-
kind: "artifact" | "conversation" | "provider" | "tool_execution";
|
|
2107
|
-
providerKey?: string | undefined;
|
|
2108
|
-
connectedAccountId?: string | undefined;
|
|
2109
|
-
resourceType?: string | undefined;
|
|
2110
|
-
resourceId?: string | undefined;
|
|
2111
|
-
toolExecutionId?: string | undefined;
|
|
2112
|
-
applicationKey?: string | undefined;
|
|
2113
|
-
resourcePreviousScopeIds?: string[] | undefined;
|
|
2114
|
-
resourceCurrentScopeIds?: string[] | undefined;
|
|
2115
|
-
resourceAffectedScopeIds?: string[] | undefined;
|
|
2116
|
-
}>;
|
|
2117
|
-
occurredAt: z.ZodString;
|
|
2118
|
-
observedAt: z.ZodString;
|
|
2119
|
-
payloadRef: z.ZodOptional<z.ZodString>;
|
|
2120
|
-
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
2121
|
-
metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
2122
|
-
}, "strict", z.ZodTypeAny, {
|
|
2123
|
-
id: string;
|
|
2124
|
-
type: "provider.resource.created" | "provider.resource.updated" | "provider.resource.deleted" | "tool.execution.completed" | "conversation.turn.completed" | "artifact.created";
|
|
2125
|
-
source: {
|
|
2126
|
-
kind: "artifact" | "conversation" | "provider" | "tool_execution";
|
|
2127
|
-
providerKey?: string | undefined;
|
|
2128
|
-
connectedAccountId?: string | undefined;
|
|
2129
|
-
resourceType?: string | undefined;
|
|
2130
|
-
resourceId?: string | undefined;
|
|
2131
|
-
toolExecutionId?: string | undefined;
|
|
2132
|
-
applicationKey?: string | undefined;
|
|
2133
|
-
resourcePreviousScopeIds?: string[] | undefined;
|
|
2134
|
-
resourceCurrentScopeIds?: string[] | undefined;
|
|
2135
|
-
resourceAffectedScopeIds?: string[] | undefined;
|
|
2136
|
-
};
|
|
2137
|
-
metadata: Record<string, unknown>;
|
|
2138
|
-
tenantId: string;
|
|
2139
|
-
occurredAt: string;
|
|
2140
|
-
schemaVersion: "stacklink.event.v1";
|
|
2141
|
-
consumerAppId: string;
|
|
2142
|
-
observedAt: string;
|
|
2143
|
-
data: Record<string, unknown>;
|
|
2144
|
-
sessionId?: string | undefined;
|
|
2145
|
-
userId?: string | undefined;
|
|
2146
|
-
payloadRef?: string | undefined;
|
|
2147
|
-
}, {
|
|
2148
|
-
id: string;
|
|
2149
|
-
type: "provider.resource.created" | "provider.resource.updated" | "provider.resource.deleted" | "tool.execution.completed" | "conversation.turn.completed" | "artifact.created";
|
|
2150
|
-
source: {
|
|
2151
|
-
kind: "artifact" | "conversation" | "provider" | "tool_execution";
|
|
2152
|
-
providerKey?: string | undefined;
|
|
2153
|
-
connectedAccountId?: string | undefined;
|
|
2154
|
-
resourceType?: string | undefined;
|
|
2155
|
-
resourceId?: string | undefined;
|
|
2156
|
-
toolExecutionId?: string | undefined;
|
|
2157
|
-
applicationKey?: string | undefined;
|
|
2158
|
-
resourcePreviousScopeIds?: string[] | undefined;
|
|
2159
|
-
resourceCurrentScopeIds?: string[] | undefined;
|
|
2160
|
-
resourceAffectedScopeIds?: string[] | undefined;
|
|
2161
|
-
};
|
|
2162
|
-
metadata: Record<string, unknown>;
|
|
2163
|
-
tenantId: string;
|
|
2164
|
-
occurredAt: string;
|
|
2165
|
-
schemaVersion: "stacklink.event.v1";
|
|
2166
|
-
consumerAppId: string;
|
|
2167
|
-
observedAt: string;
|
|
2168
|
-
data: Record<string, unknown>;
|
|
2169
|
-
sessionId?: string | undefined;
|
|
2170
|
-
userId?: string | undefined;
|
|
2171
|
-
payloadRef?: string | undefined;
|
|
2172
|
-
}>;
|
|
2173
|
-
export type StacklinkPlatformEvent = z.infer<typeof stacklinkPlatformEventSchema>;
|
|
2174
3084
|
export declare const memorySessionConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
2175
3085
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
2176
3086
|
agentExternalId: z.ZodOptional<z.ZodString>;
|
|
@@ -2182,41 +3092,41 @@ export declare const memorySessionConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2182
3092
|
contextTokenBudget: z.ZodDefault<z.ZodNumber>;
|
|
2183
3093
|
policyKey: z.ZodDefault<z.ZodString>;
|
|
2184
3094
|
}, "strict", z.ZodTypeAny, {
|
|
2185
|
-
enabled: boolean;
|
|
2186
3095
|
policyKey: string;
|
|
2187
3096
|
includeProfile: boolean;
|
|
2188
3097
|
includeBlocks: boolean;
|
|
2189
3098
|
captureMode: "explicit" | "bound_sources";
|
|
3099
|
+
enabled: boolean;
|
|
2190
3100
|
readableSubjects: ("session_user" | "session_agent" | "tenant_shared")[];
|
|
2191
3101
|
writableSubjects: ("session_user" | "session_agent" | "tenant_shared")[];
|
|
2192
3102
|
contextTokenBudget: number;
|
|
2193
3103
|
agentExternalId?: string | undefined;
|
|
2194
3104
|
}, {
|
|
2195
|
-
enabled?: boolean | undefined;
|
|
2196
3105
|
policyKey?: string | undefined;
|
|
2197
3106
|
includeProfile?: boolean | undefined;
|
|
2198
3107
|
includeBlocks?: boolean | undefined;
|
|
2199
3108
|
captureMode?: "explicit" | "bound_sources" | undefined;
|
|
3109
|
+
enabled?: boolean | undefined;
|
|
2200
3110
|
agentExternalId?: string | undefined;
|
|
2201
3111
|
readableSubjects?: ("session_user" | "session_agent" | "tenant_shared")[] | undefined;
|
|
2202
3112
|
writableSubjects?: ("session_user" | "session_agent" | "tenant_shared")[] | undefined;
|
|
2203
3113
|
contextTokenBudget?: number | undefined;
|
|
2204
3114
|
}>, {
|
|
2205
|
-
enabled: boolean;
|
|
2206
3115
|
policyKey: string;
|
|
2207
3116
|
includeProfile: boolean;
|
|
2208
3117
|
includeBlocks: boolean;
|
|
2209
3118
|
captureMode: "explicit" | "bound_sources";
|
|
3119
|
+
enabled: boolean;
|
|
2210
3120
|
readableSubjects: ("session_user" | "session_agent" | "tenant_shared")[];
|
|
2211
3121
|
writableSubjects: ("session_user" | "session_agent" | "tenant_shared")[];
|
|
2212
3122
|
contextTokenBudget: number;
|
|
2213
3123
|
agentExternalId?: string | undefined;
|
|
2214
3124
|
}, {
|
|
2215
|
-
enabled?: boolean | undefined;
|
|
2216
3125
|
policyKey?: string | undefined;
|
|
2217
3126
|
includeProfile?: boolean | undefined;
|
|
2218
3127
|
includeBlocks?: boolean | undefined;
|
|
2219
3128
|
captureMode?: "explicit" | "bound_sources" | undefined;
|
|
3129
|
+
enabled?: boolean | undefined;
|
|
2220
3130
|
agentExternalId?: string | undefined;
|
|
2221
3131
|
readableSubjects?: ("session_user" | "session_agent" | "tenant_shared")[] | undefined;
|
|
2222
3132
|
writableSubjects?: ("session_user" | "session_agent" | "tenant_shared")[] | undefined;
|
|
@@ -2231,19 +3141,20 @@ export declare const memoryExtractedEntitySchema: z.ZodObject<{
|
|
|
2231
3141
|
attributes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
2232
3142
|
}, "strict", z.ZodTypeAny, {
|
|
2233
3143
|
type: string;
|
|
2234
|
-
key: string;
|
|
2235
3144
|
canonicalKey: string;
|
|
2236
3145
|
displayName: string | null;
|
|
2237
3146
|
attributes: Record<string, unknown>;
|
|
3147
|
+
key: string;
|
|
2238
3148
|
}, {
|
|
2239
3149
|
type: string;
|
|
2240
|
-
key: string;
|
|
2241
3150
|
canonicalKey: string;
|
|
2242
3151
|
displayName: string | null;
|
|
2243
3152
|
attributes: Record<string, unknown>;
|
|
3153
|
+
key: string;
|
|
2244
3154
|
}>;
|
|
2245
3155
|
export declare const memoryExtractedClaimSchema: z.ZodEffects<z.ZodObject<{
|
|
2246
3156
|
subjectEntityKey: z.ZodString;
|
|
3157
|
+
assertedByEntityKey: z.ZodNullable<z.ZodString>;
|
|
2247
3158
|
predicate: z.ZodString;
|
|
2248
3159
|
objectEntityKey: z.ZodNullable<z.ZodString>;
|
|
2249
3160
|
literalValue: z.ZodNullable<z.ZodUnknown>;
|
|
@@ -2253,11 +3164,13 @@ export declare const memoryExtractedClaimSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2253
3164
|
validFrom: string | null;
|
|
2254
3165
|
validTo: string | null;
|
|
2255
3166
|
subjectEntityKey: string;
|
|
3167
|
+
assertedByEntityKey: string | null;
|
|
2256
3168
|
predicate: string;
|
|
2257
3169
|
objectEntityKey: string | null;
|
|
2258
3170
|
literalValue?: unknown;
|
|
2259
3171
|
}, {
|
|
2260
3172
|
subjectEntityKey: string;
|
|
3173
|
+
assertedByEntityKey: string | null;
|
|
2261
3174
|
predicate: string;
|
|
2262
3175
|
objectEntityKey: string | null;
|
|
2263
3176
|
validFrom?: unknown;
|
|
@@ -2267,11 +3180,13 @@ export declare const memoryExtractedClaimSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2267
3180
|
validFrom: string | null;
|
|
2268
3181
|
validTo: string | null;
|
|
2269
3182
|
subjectEntityKey: string;
|
|
3183
|
+
assertedByEntityKey: string | null;
|
|
2270
3184
|
predicate: string;
|
|
2271
3185
|
objectEntityKey: string | null;
|
|
2272
3186
|
literalValue?: unknown;
|
|
2273
3187
|
}, {
|
|
2274
3188
|
subjectEntityKey: string;
|
|
3189
|
+
assertedByEntityKey: string | null;
|
|
2275
3190
|
predicate: string;
|
|
2276
3191
|
objectEntityKey: string | null;
|
|
2277
3192
|
validFrom?: unknown;
|
|
@@ -2319,6 +3234,16 @@ export declare const memoryExtractedRecordSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2319
3234
|
sensitivityClass: z.ZodEnum<["standard", "personal", "restricted", "secret"]>;
|
|
2320
3235
|
restrictedDataClasses: z.ZodArray<z.ZodEnum<["health", "biometric", "government_identity", "precise_location", "protected_trait", "minor", "detailed_personal_financial"]>, "many">;
|
|
2321
3236
|
topicTags: z.ZodArray<z.ZodString, "many">;
|
|
3237
|
+
actorEntityKey: z.ZodNullable<z.ZodString>;
|
|
3238
|
+
subjectEntityKey: z.ZodNullable<z.ZodString>;
|
|
3239
|
+
authorshipClass: z.ZodEnum<["connected_user", "other_human", "bot", "application", "system", "unknown"]>;
|
|
3240
|
+
admissionBasis: z.ZodEnum<["self_authored", "provider_structured_state", "attributed_third_party", "tool_execution", "user_confirmed"]>;
|
|
3241
|
+
durability: z.ZodEnum<["durable", "episodic", "transient"]>;
|
|
3242
|
+
salience: z.ZodEnum<["low", "medium", "high"]>;
|
|
3243
|
+
evidenceConfidence: z.ZodEnum<["low", "medium", "high"]>;
|
|
3244
|
+
destination: z.ZodEnum<["durable_memory", "episodic_memory", "restricted_candidate", "source_only", "reject_noise"]>;
|
|
3245
|
+
contextEligible: z.ZodBoolean;
|
|
3246
|
+
qualityContractVersion: z.ZodLiteral<1>;
|
|
2322
3247
|
validFrom: z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, unknown>;
|
|
2323
3248
|
validTo: z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, unknown>;
|
|
2324
3249
|
evidence: z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
@@ -2360,19 +3285,20 @@ export declare const memoryExtractedRecordSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2360
3285
|
attributes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
2361
3286
|
}, "strict", z.ZodTypeAny, {
|
|
2362
3287
|
type: string;
|
|
2363
|
-
key: string;
|
|
2364
3288
|
canonicalKey: string;
|
|
2365
3289
|
displayName: string | null;
|
|
2366
3290
|
attributes: Record<string, unknown>;
|
|
3291
|
+
key: string;
|
|
2367
3292
|
}, {
|
|
2368
3293
|
type: string;
|
|
2369
|
-
key: string;
|
|
2370
3294
|
canonicalKey: string;
|
|
2371
3295
|
displayName: string | null;
|
|
2372
3296
|
attributes: Record<string, unknown>;
|
|
3297
|
+
key: string;
|
|
2373
3298
|
}>, "many">;
|
|
2374
3299
|
claims: z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
2375
3300
|
subjectEntityKey: z.ZodString;
|
|
3301
|
+
assertedByEntityKey: z.ZodNullable<z.ZodString>;
|
|
2376
3302
|
predicate: z.ZodString;
|
|
2377
3303
|
objectEntityKey: z.ZodNullable<z.ZodString>;
|
|
2378
3304
|
literalValue: z.ZodNullable<z.ZodUnknown>;
|
|
@@ -2382,11 +3308,13 @@ export declare const memoryExtractedRecordSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2382
3308
|
validFrom: string | null;
|
|
2383
3309
|
validTo: string | null;
|
|
2384
3310
|
subjectEntityKey: string;
|
|
3311
|
+
assertedByEntityKey: string | null;
|
|
2385
3312
|
predicate: string;
|
|
2386
3313
|
objectEntityKey: string | null;
|
|
2387
3314
|
literalValue?: unknown;
|
|
2388
3315
|
}, {
|
|
2389
3316
|
subjectEntityKey: string;
|
|
3317
|
+
assertedByEntityKey: string | null;
|
|
2390
3318
|
predicate: string;
|
|
2391
3319
|
objectEntityKey: string | null;
|
|
2392
3320
|
validFrom?: unknown;
|
|
@@ -2396,11 +3324,13 @@ export declare const memoryExtractedRecordSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2396
3324
|
validFrom: string | null;
|
|
2397
3325
|
validTo: string | null;
|
|
2398
3326
|
subjectEntityKey: string;
|
|
3327
|
+
assertedByEntityKey: string | null;
|
|
2399
3328
|
predicate: string;
|
|
2400
3329
|
objectEntityKey: string | null;
|
|
2401
3330
|
literalValue?: unknown;
|
|
2402
3331
|
}, {
|
|
2403
3332
|
subjectEntityKey: string;
|
|
3333
|
+
assertedByEntityKey: string | null;
|
|
2404
3334
|
predicate: string;
|
|
2405
3335
|
objectEntityKey: string | null;
|
|
2406
3336
|
validFrom?: unknown;
|
|
@@ -2410,17 +3340,17 @@ export declare const memoryExtractedRecordSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2410
3340
|
attributes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
2411
3341
|
}, "strict", z.ZodTypeAny, {
|
|
2412
3342
|
content: string;
|
|
3343
|
+
qualityContractVersion: 1;
|
|
3344
|
+
authorshipClass: "bot" | "application" | "connected_user" | "other_human" | "system" | "unknown";
|
|
3345
|
+
admissionBasis: "self_authored" | "provider_structured_state" | "attributed_third_party" | "tool_execution" | "user_confirmed";
|
|
3346
|
+
validFrom: string | null;
|
|
3347
|
+
validTo: string | null;
|
|
2413
3348
|
title: string;
|
|
2414
3349
|
memoryType: "preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
|
|
2415
3350
|
sensitivityClass: "standard" | "personal" | "restricted" | "secret";
|
|
2416
3351
|
restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
|
|
2417
3352
|
topicTags: string[];
|
|
2418
3353
|
language: string;
|
|
2419
|
-
validFrom: string | null;
|
|
2420
|
-
validTo: string | null;
|
|
2421
|
-
attributes: Record<string, unknown>;
|
|
2422
|
-
candidateId: string;
|
|
2423
|
-
recordKind: "fact" | "episode";
|
|
2424
3354
|
evidence: {
|
|
2425
3355
|
sourceObjectId: string;
|
|
2426
3356
|
segmentId: string;
|
|
@@ -2428,32 +3358,43 @@ export declare const memoryExtractedRecordSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2428
3358
|
endOffset: number;
|
|
2429
3359
|
quotedText: string;
|
|
2430
3360
|
}[];
|
|
3361
|
+
attributes: Record<string, unknown>;
|
|
3362
|
+
salience: "low" | "medium" | "high";
|
|
3363
|
+
evidenceConfidence: "low" | "medium" | "high";
|
|
3364
|
+
subjectEntityKey: string | null;
|
|
3365
|
+
candidateId: string;
|
|
3366
|
+
recordKind: "fact" | "episode";
|
|
3367
|
+
actorEntityKey: string | null;
|
|
3368
|
+
durability: "durable" | "episodic" | "transient";
|
|
3369
|
+
destination: "durable_memory" | "episodic_memory" | "restricted_candidate" | "source_only" | "reject_noise";
|
|
3370
|
+
contextEligible: boolean;
|
|
2431
3371
|
entities: {
|
|
2432
3372
|
type: string;
|
|
2433
|
-
key: string;
|
|
2434
3373
|
canonicalKey: string;
|
|
2435
3374
|
displayName: string | null;
|
|
2436
3375
|
attributes: Record<string, unknown>;
|
|
3376
|
+
key: string;
|
|
2437
3377
|
}[];
|
|
2438
3378
|
claims: {
|
|
2439
3379
|
validFrom: string | null;
|
|
2440
3380
|
validTo: string | null;
|
|
2441
3381
|
subjectEntityKey: string;
|
|
3382
|
+
assertedByEntityKey: string | null;
|
|
2442
3383
|
predicate: string;
|
|
2443
3384
|
objectEntityKey: string | null;
|
|
2444
3385
|
literalValue?: unknown;
|
|
2445
3386
|
}[];
|
|
2446
3387
|
}, {
|
|
2447
3388
|
content: string;
|
|
3389
|
+
qualityContractVersion: 1;
|
|
3390
|
+
authorshipClass: "bot" | "application" | "connected_user" | "other_human" | "system" | "unknown";
|
|
3391
|
+
admissionBasis: "self_authored" | "provider_structured_state" | "attributed_third_party" | "tool_execution" | "user_confirmed";
|
|
2448
3392
|
title: string;
|
|
2449
3393
|
memoryType: "preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
|
|
2450
3394
|
sensitivityClass: "standard" | "personal" | "restricted" | "secret";
|
|
2451
3395
|
restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
|
|
2452
3396
|
topicTags: string[];
|
|
2453
3397
|
language: string;
|
|
2454
|
-
attributes: Record<string, unknown>;
|
|
2455
|
-
candidateId: string;
|
|
2456
|
-
recordKind: "fact" | "episode";
|
|
2457
3398
|
evidence: {
|
|
2458
3399
|
sourceObjectId: string;
|
|
2459
3400
|
segmentId: string;
|
|
@@ -2461,15 +3402,26 @@ export declare const memoryExtractedRecordSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2461
3402
|
endOffset: number;
|
|
2462
3403
|
quotedText: string;
|
|
2463
3404
|
}[];
|
|
3405
|
+
attributes: Record<string, unknown>;
|
|
3406
|
+
salience: "low" | "medium" | "high";
|
|
3407
|
+
evidenceConfidence: "low" | "medium" | "high";
|
|
3408
|
+
subjectEntityKey: string | null;
|
|
3409
|
+
candidateId: string;
|
|
3410
|
+
recordKind: "fact" | "episode";
|
|
3411
|
+
actorEntityKey: string | null;
|
|
3412
|
+
durability: "durable" | "episodic" | "transient";
|
|
3413
|
+
destination: "durable_memory" | "episodic_memory" | "restricted_candidate" | "source_only" | "reject_noise";
|
|
3414
|
+
contextEligible: boolean;
|
|
2464
3415
|
entities: {
|
|
2465
3416
|
type: string;
|
|
2466
|
-
key: string;
|
|
2467
3417
|
canonicalKey: string;
|
|
2468
3418
|
displayName: string | null;
|
|
2469
3419
|
attributes: Record<string, unknown>;
|
|
3420
|
+
key: string;
|
|
2470
3421
|
}[];
|
|
2471
3422
|
claims: {
|
|
2472
3423
|
subjectEntityKey: string;
|
|
3424
|
+
assertedByEntityKey: string | null;
|
|
2473
3425
|
predicate: string;
|
|
2474
3426
|
objectEntityKey: string | null;
|
|
2475
3427
|
validFrom?: unknown;
|
|
@@ -2480,17 +3432,17 @@ export declare const memoryExtractedRecordSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2480
3432
|
validTo?: unknown;
|
|
2481
3433
|
}>, {
|
|
2482
3434
|
content: string;
|
|
3435
|
+
qualityContractVersion: 1;
|
|
3436
|
+
authorshipClass: "bot" | "application" | "connected_user" | "other_human" | "system" | "unknown";
|
|
3437
|
+
admissionBasis: "self_authored" | "provider_structured_state" | "attributed_third_party" | "tool_execution" | "user_confirmed";
|
|
3438
|
+
validFrom: string | null;
|
|
3439
|
+
validTo: string | null;
|
|
2483
3440
|
title: string;
|
|
2484
3441
|
memoryType: "preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
|
|
2485
3442
|
sensitivityClass: "standard" | "personal" | "restricted" | "secret";
|
|
2486
3443
|
restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
|
|
2487
3444
|
topicTags: string[];
|
|
2488
3445
|
language: string;
|
|
2489
|
-
validFrom: string | null;
|
|
2490
|
-
validTo: string | null;
|
|
2491
|
-
attributes: Record<string, unknown>;
|
|
2492
|
-
candidateId: string;
|
|
2493
|
-
recordKind: "fact" | "episode";
|
|
2494
3446
|
evidence: {
|
|
2495
3447
|
sourceObjectId: string;
|
|
2496
3448
|
segmentId: string;
|
|
@@ -2498,32 +3450,43 @@ export declare const memoryExtractedRecordSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2498
3450
|
endOffset: number;
|
|
2499
3451
|
quotedText: string;
|
|
2500
3452
|
}[];
|
|
3453
|
+
attributes: Record<string, unknown>;
|
|
3454
|
+
salience: "low" | "medium" | "high";
|
|
3455
|
+
evidenceConfidence: "low" | "medium" | "high";
|
|
3456
|
+
subjectEntityKey: string | null;
|
|
3457
|
+
candidateId: string;
|
|
3458
|
+
recordKind: "fact" | "episode";
|
|
3459
|
+
actorEntityKey: string | null;
|
|
3460
|
+
durability: "durable" | "episodic" | "transient";
|
|
3461
|
+
destination: "durable_memory" | "episodic_memory" | "restricted_candidate" | "source_only" | "reject_noise";
|
|
3462
|
+
contextEligible: boolean;
|
|
2501
3463
|
entities: {
|
|
2502
3464
|
type: string;
|
|
2503
|
-
key: string;
|
|
2504
3465
|
canonicalKey: string;
|
|
2505
3466
|
displayName: string | null;
|
|
2506
3467
|
attributes: Record<string, unknown>;
|
|
3468
|
+
key: string;
|
|
2507
3469
|
}[];
|
|
2508
3470
|
claims: {
|
|
2509
3471
|
validFrom: string | null;
|
|
2510
3472
|
validTo: string | null;
|
|
2511
3473
|
subjectEntityKey: string;
|
|
3474
|
+
assertedByEntityKey: string | null;
|
|
2512
3475
|
predicate: string;
|
|
2513
3476
|
objectEntityKey: string | null;
|
|
2514
3477
|
literalValue?: unknown;
|
|
2515
3478
|
}[];
|
|
2516
3479
|
}, {
|
|
2517
3480
|
content: string;
|
|
3481
|
+
qualityContractVersion: 1;
|
|
3482
|
+
authorshipClass: "bot" | "application" | "connected_user" | "other_human" | "system" | "unknown";
|
|
3483
|
+
admissionBasis: "self_authored" | "provider_structured_state" | "attributed_third_party" | "tool_execution" | "user_confirmed";
|
|
2518
3484
|
title: string;
|
|
2519
3485
|
memoryType: "preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
|
|
2520
3486
|
sensitivityClass: "standard" | "personal" | "restricted" | "secret";
|
|
2521
3487
|
restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
|
|
2522
3488
|
topicTags: string[];
|
|
2523
3489
|
language: string;
|
|
2524
|
-
attributes: Record<string, unknown>;
|
|
2525
|
-
candidateId: string;
|
|
2526
|
-
recordKind: "fact" | "episode";
|
|
2527
3490
|
evidence: {
|
|
2528
3491
|
sourceObjectId: string;
|
|
2529
3492
|
segmentId: string;
|
|
@@ -2531,15 +3494,26 @@ export declare const memoryExtractedRecordSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2531
3494
|
endOffset: number;
|
|
2532
3495
|
quotedText: string;
|
|
2533
3496
|
}[];
|
|
3497
|
+
attributes: Record<string, unknown>;
|
|
3498
|
+
salience: "low" | "medium" | "high";
|
|
3499
|
+
evidenceConfidence: "low" | "medium" | "high";
|
|
3500
|
+
subjectEntityKey: string | null;
|
|
3501
|
+
candidateId: string;
|
|
3502
|
+
recordKind: "fact" | "episode";
|
|
3503
|
+
actorEntityKey: string | null;
|
|
3504
|
+
durability: "durable" | "episodic" | "transient";
|
|
3505
|
+
destination: "durable_memory" | "episodic_memory" | "restricted_candidate" | "source_only" | "reject_noise";
|
|
3506
|
+
contextEligible: boolean;
|
|
2534
3507
|
entities: {
|
|
2535
3508
|
type: string;
|
|
2536
|
-
key: string;
|
|
2537
3509
|
canonicalKey: string;
|
|
2538
3510
|
displayName: string | null;
|
|
2539
3511
|
attributes: Record<string, unknown>;
|
|
3512
|
+
key: string;
|
|
2540
3513
|
}[];
|
|
2541
3514
|
claims: {
|
|
2542
3515
|
subjectEntityKey: string;
|
|
3516
|
+
assertedByEntityKey: string | null;
|
|
2543
3517
|
predicate: string;
|
|
2544
3518
|
objectEntityKey: string | null;
|
|
2545
3519
|
validFrom?: unknown;
|
|
@@ -2560,6 +3534,16 @@ export declare const memoryExtractionResultSchema: z.ZodObject<{
|
|
|
2560
3534
|
sensitivityClass: z.ZodEnum<["standard", "personal", "restricted", "secret"]>;
|
|
2561
3535
|
restrictedDataClasses: z.ZodArray<z.ZodEnum<["health", "biometric", "government_identity", "precise_location", "protected_trait", "minor", "detailed_personal_financial"]>, "many">;
|
|
2562
3536
|
topicTags: z.ZodArray<z.ZodString, "many">;
|
|
3537
|
+
actorEntityKey: z.ZodNullable<z.ZodString>;
|
|
3538
|
+
subjectEntityKey: z.ZodNullable<z.ZodString>;
|
|
3539
|
+
authorshipClass: z.ZodEnum<["connected_user", "other_human", "bot", "application", "system", "unknown"]>;
|
|
3540
|
+
admissionBasis: z.ZodEnum<["self_authored", "provider_structured_state", "attributed_third_party", "tool_execution", "user_confirmed"]>;
|
|
3541
|
+
durability: z.ZodEnum<["durable", "episodic", "transient"]>;
|
|
3542
|
+
salience: z.ZodEnum<["low", "medium", "high"]>;
|
|
3543
|
+
evidenceConfidence: z.ZodEnum<["low", "medium", "high"]>;
|
|
3544
|
+
destination: z.ZodEnum<["durable_memory", "episodic_memory", "restricted_candidate", "source_only", "reject_noise"]>;
|
|
3545
|
+
contextEligible: z.ZodBoolean;
|
|
3546
|
+
qualityContractVersion: z.ZodLiteral<1>;
|
|
2563
3547
|
validFrom: z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, unknown>;
|
|
2564
3548
|
validTo: z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, unknown>;
|
|
2565
3549
|
evidence: z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
@@ -2601,19 +3585,20 @@ export declare const memoryExtractionResultSchema: z.ZodObject<{
|
|
|
2601
3585
|
attributes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
2602
3586
|
}, "strict", z.ZodTypeAny, {
|
|
2603
3587
|
type: string;
|
|
2604
|
-
key: string;
|
|
2605
3588
|
canonicalKey: string;
|
|
2606
3589
|
displayName: string | null;
|
|
2607
3590
|
attributes: Record<string, unknown>;
|
|
3591
|
+
key: string;
|
|
2608
3592
|
}, {
|
|
2609
3593
|
type: string;
|
|
2610
|
-
key: string;
|
|
2611
3594
|
canonicalKey: string;
|
|
2612
3595
|
displayName: string | null;
|
|
2613
3596
|
attributes: Record<string, unknown>;
|
|
3597
|
+
key: string;
|
|
2614
3598
|
}>, "many">;
|
|
2615
3599
|
claims: z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
2616
3600
|
subjectEntityKey: z.ZodString;
|
|
3601
|
+
assertedByEntityKey: z.ZodNullable<z.ZodString>;
|
|
2617
3602
|
predicate: z.ZodString;
|
|
2618
3603
|
objectEntityKey: z.ZodNullable<z.ZodString>;
|
|
2619
3604
|
literalValue: z.ZodNullable<z.ZodUnknown>;
|
|
@@ -2623,11 +3608,13 @@ export declare const memoryExtractionResultSchema: z.ZodObject<{
|
|
|
2623
3608
|
validFrom: string | null;
|
|
2624
3609
|
validTo: string | null;
|
|
2625
3610
|
subjectEntityKey: string;
|
|
3611
|
+
assertedByEntityKey: string | null;
|
|
2626
3612
|
predicate: string;
|
|
2627
3613
|
objectEntityKey: string | null;
|
|
2628
3614
|
literalValue?: unknown;
|
|
2629
3615
|
}, {
|
|
2630
3616
|
subjectEntityKey: string;
|
|
3617
|
+
assertedByEntityKey: string | null;
|
|
2631
3618
|
predicate: string;
|
|
2632
3619
|
objectEntityKey: string | null;
|
|
2633
3620
|
validFrom?: unknown;
|
|
@@ -2637,11 +3624,13 @@ export declare const memoryExtractionResultSchema: z.ZodObject<{
|
|
|
2637
3624
|
validFrom: string | null;
|
|
2638
3625
|
validTo: string | null;
|
|
2639
3626
|
subjectEntityKey: string;
|
|
3627
|
+
assertedByEntityKey: string | null;
|
|
2640
3628
|
predicate: string;
|
|
2641
3629
|
objectEntityKey: string | null;
|
|
2642
3630
|
literalValue?: unknown;
|
|
2643
3631
|
}, {
|
|
2644
3632
|
subjectEntityKey: string;
|
|
3633
|
+
assertedByEntityKey: string | null;
|
|
2645
3634
|
predicate: string;
|
|
2646
3635
|
objectEntityKey: string | null;
|
|
2647
3636
|
validFrom?: unknown;
|
|
@@ -2651,17 +3640,17 @@ export declare const memoryExtractionResultSchema: z.ZodObject<{
|
|
|
2651
3640
|
attributes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
2652
3641
|
}, "strict", z.ZodTypeAny, {
|
|
2653
3642
|
content: string;
|
|
3643
|
+
qualityContractVersion: 1;
|
|
3644
|
+
authorshipClass: "bot" | "application" | "connected_user" | "other_human" | "system" | "unknown";
|
|
3645
|
+
admissionBasis: "self_authored" | "provider_structured_state" | "attributed_third_party" | "tool_execution" | "user_confirmed";
|
|
3646
|
+
validFrom: string | null;
|
|
3647
|
+
validTo: string | null;
|
|
2654
3648
|
title: string;
|
|
2655
3649
|
memoryType: "preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
|
|
2656
3650
|
sensitivityClass: "standard" | "personal" | "restricted" | "secret";
|
|
2657
3651
|
restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
|
|
2658
3652
|
topicTags: string[];
|
|
2659
3653
|
language: string;
|
|
2660
|
-
validFrom: string | null;
|
|
2661
|
-
validTo: string | null;
|
|
2662
|
-
attributes: Record<string, unknown>;
|
|
2663
|
-
candidateId: string;
|
|
2664
|
-
recordKind: "fact" | "episode";
|
|
2665
3654
|
evidence: {
|
|
2666
3655
|
sourceObjectId: string;
|
|
2667
3656
|
segmentId: string;
|
|
@@ -2669,32 +3658,43 @@ export declare const memoryExtractionResultSchema: z.ZodObject<{
|
|
|
2669
3658
|
endOffset: number;
|
|
2670
3659
|
quotedText: string;
|
|
2671
3660
|
}[];
|
|
3661
|
+
attributes: Record<string, unknown>;
|
|
3662
|
+
salience: "low" | "medium" | "high";
|
|
3663
|
+
evidenceConfidence: "low" | "medium" | "high";
|
|
3664
|
+
subjectEntityKey: string | null;
|
|
3665
|
+
candidateId: string;
|
|
3666
|
+
recordKind: "fact" | "episode";
|
|
3667
|
+
actorEntityKey: string | null;
|
|
3668
|
+
durability: "durable" | "episodic" | "transient";
|
|
3669
|
+
destination: "durable_memory" | "episodic_memory" | "restricted_candidate" | "source_only" | "reject_noise";
|
|
3670
|
+
contextEligible: boolean;
|
|
2672
3671
|
entities: {
|
|
2673
3672
|
type: string;
|
|
2674
|
-
key: string;
|
|
2675
3673
|
canonicalKey: string;
|
|
2676
3674
|
displayName: string | null;
|
|
2677
3675
|
attributes: Record<string, unknown>;
|
|
3676
|
+
key: string;
|
|
2678
3677
|
}[];
|
|
2679
3678
|
claims: {
|
|
2680
3679
|
validFrom: string | null;
|
|
2681
3680
|
validTo: string | null;
|
|
2682
3681
|
subjectEntityKey: string;
|
|
3682
|
+
assertedByEntityKey: string | null;
|
|
2683
3683
|
predicate: string;
|
|
2684
3684
|
objectEntityKey: string | null;
|
|
2685
3685
|
literalValue?: unknown;
|
|
2686
3686
|
}[];
|
|
2687
3687
|
}, {
|
|
2688
3688
|
content: string;
|
|
3689
|
+
qualityContractVersion: 1;
|
|
3690
|
+
authorshipClass: "bot" | "application" | "connected_user" | "other_human" | "system" | "unknown";
|
|
3691
|
+
admissionBasis: "self_authored" | "provider_structured_state" | "attributed_third_party" | "tool_execution" | "user_confirmed";
|
|
2689
3692
|
title: string;
|
|
2690
3693
|
memoryType: "preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
|
|
2691
3694
|
sensitivityClass: "standard" | "personal" | "restricted" | "secret";
|
|
2692
3695
|
restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
|
|
2693
3696
|
topicTags: string[];
|
|
2694
3697
|
language: string;
|
|
2695
|
-
attributes: Record<string, unknown>;
|
|
2696
|
-
candidateId: string;
|
|
2697
|
-
recordKind: "fact" | "episode";
|
|
2698
3698
|
evidence: {
|
|
2699
3699
|
sourceObjectId: string;
|
|
2700
3700
|
segmentId: string;
|
|
@@ -2702,15 +3702,26 @@ export declare const memoryExtractionResultSchema: z.ZodObject<{
|
|
|
2702
3702
|
endOffset: number;
|
|
2703
3703
|
quotedText: string;
|
|
2704
3704
|
}[];
|
|
3705
|
+
attributes: Record<string, unknown>;
|
|
3706
|
+
salience: "low" | "medium" | "high";
|
|
3707
|
+
evidenceConfidence: "low" | "medium" | "high";
|
|
3708
|
+
subjectEntityKey: string | null;
|
|
3709
|
+
candidateId: string;
|
|
3710
|
+
recordKind: "fact" | "episode";
|
|
3711
|
+
actorEntityKey: string | null;
|
|
3712
|
+
durability: "durable" | "episodic" | "transient";
|
|
3713
|
+
destination: "durable_memory" | "episodic_memory" | "restricted_candidate" | "source_only" | "reject_noise";
|
|
3714
|
+
contextEligible: boolean;
|
|
2705
3715
|
entities: {
|
|
2706
3716
|
type: string;
|
|
2707
|
-
key: string;
|
|
2708
3717
|
canonicalKey: string;
|
|
2709
3718
|
displayName: string | null;
|
|
2710
3719
|
attributes: Record<string, unknown>;
|
|
3720
|
+
key: string;
|
|
2711
3721
|
}[];
|
|
2712
3722
|
claims: {
|
|
2713
3723
|
subjectEntityKey: string;
|
|
3724
|
+
assertedByEntityKey: string | null;
|
|
2714
3725
|
predicate: string;
|
|
2715
3726
|
objectEntityKey: string | null;
|
|
2716
3727
|
validFrom?: unknown;
|
|
@@ -2721,17 +3732,17 @@ export declare const memoryExtractionResultSchema: z.ZodObject<{
|
|
|
2721
3732
|
validTo?: unknown;
|
|
2722
3733
|
}>, {
|
|
2723
3734
|
content: string;
|
|
3735
|
+
qualityContractVersion: 1;
|
|
3736
|
+
authorshipClass: "bot" | "application" | "connected_user" | "other_human" | "system" | "unknown";
|
|
3737
|
+
admissionBasis: "self_authored" | "provider_structured_state" | "attributed_third_party" | "tool_execution" | "user_confirmed";
|
|
3738
|
+
validFrom: string | null;
|
|
3739
|
+
validTo: string | null;
|
|
2724
3740
|
title: string;
|
|
2725
3741
|
memoryType: "preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
|
|
2726
3742
|
sensitivityClass: "standard" | "personal" | "restricted" | "secret";
|
|
2727
3743
|
restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
|
|
2728
3744
|
topicTags: string[];
|
|
2729
3745
|
language: string;
|
|
2730
|
-
validFrom: string | null;
|
|
2731
|
-
validTo: string | null;
|
|
2732
|
-
attributes: Record<string, unknown>;
|
|
2733
|
-
candidateId: string;
|
|
2734
|
-
recordKind: "fact" | "episode";
|
|
2735
3746
|
evidence: {
|
|
2736
3747
|
sourceObjectId: string;
|
|
2737
3748
|
segmentId: string;
|
|
@@ -2739,32 +3750,43 @@ export declare const memoryExtractionResultSchema: z.ZodObject<{
|
|
|
2739
3750
|
endOffset: number;
|
|
2740
3751
|
quotedText: string;
|
|
2741
3752
|
}[];
|
|
3753
|
+
attributes: Record<string, unknown>;
|
|
3754
|
+
salience: "low" | "medium" | "high";
|
|
3755
|
+
evidenceConfidence: "low" | "medium" | "high";
|
|
3756
|
+
subjectEntityKey: string | null;
|
|
3757
|
+
candidateId: string;
|
|
3758
|
+
recordKind: "fact" | "episode";
|
|
3759
|
+
actorEntityKey: string | null;
|
|
3760
|
+
durability: "durable" | "episodic" | "transient";
|
|
3761
|
+
destination: "durable_memory" | "episodic_memory" | "restricted_candidate" | "source_only" | "reject_noise";
|
|
3762
|
+
contextEligible: boolean;
|
|
2742
3763
|
entities: {
|
|
2743
3764
|
type: string;
|
|
2744
|
-
key: string;
|
|
2745
3765
|
canonicalKey: string;
|
|
2746
3766
|
displayName: string | null;
|
|
2747
3767
|
attributes: Record<string, unknown>;
|
|
3768
|
+
key: string;
|
|
2748
3769
|
}[];
|
|
2749
3770
|
claims: {
|
|
2750
3771
|
validFrom: string | null;
|
|
2751
3772
|
validTo: string | null;
|
|
2752
3773
|
subjectEntityKey: string;
|
|
3774
|
+
assertedByEntityKey: string | null;
|
|
2753
3775
|
predicate: string;
|
|
2754
3776
|
objectEntityKey: string | null;
|
|
2755
3777
|
literalValue?: unknown;
|
|
2756
3778
|
}[];
|
|
2757
3779
|
}, {
|
|
2758
3780
|
content: string;
|
|
3781
|
+
qualityContractVersion: 1;
|
|
3782
|
+
authorshipClass: "bot" | "application" | "connected_user" | "other_human" | "system" | "unknown";
|
|
3783
|
+
admissionBasis: "self_authored" | "provider_structured_state" | "attributed_third_party" | "tool_execution" | "user_confirmed";
|
|
2759
3784
|
title: string;
|
|
2760
3785
|
memoryType: "preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
|
|
2761
3786
|
sensitivityClass: "standard" | "personal" | "restricted" | "secret";
|
|
2762
3787
|
restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
|
|
2763
3788
|
topicTags: string[];
|
|
2764
3789
|
language: string;
|
|
2765
|
-
attributes: Record<string, unknown>;
|
|
2766
|
-
candidateId: string;
|
|
2767
|
-
recordKind: "fact" | "episode";
|
|
2768
3790
|
evidence: {
|
|
2769
3791
|
sourceObjectId: string;
|
|
2770
3792
|
segmentId: string;
|
|
@@ -2772,15 +3794,26 @@ export declare const memoryExtractionResultSchema: z.ZodObject<{
|
|
|
2772
3794
|
endOffset: number;
|
|
2773
3795
|
quotedText: string;
|
|
2774
3796
|
}[];
|
|
3797
|
+
attributes: Record<string, unknown>;
|
|
3798
|
+
salience: "low" | "medium" | "high";
|
|
3799
|
+
evidenceConfidence: "low" | "medium" | "high";
|
|
3800
|
+
subjectEntityKey: string | null;
|
|
3801
|
+
candidateId: string;
|
|
3802
|
+
recordKind: "fact" | "episode";
|
|
3803
|
+
actorEntityKey: string | null;
|
|
3804
|
+
durability: "durable" | "episodic" | "transient";
|
|
3805
|
+
destination: "durable_memory" | "episodic_memory" | "restricted_candidate" | "source_only" | "reject_noise";
|
|
3806
|
+
contextEligible: boolean;
|
|
2775
3807
|
entities: {
|
|
2776
3808
|
type: string;
|
|
2777
|
-
key: string;
|
|
2778
3809
|
canonicalKey: string;
|
|
2779
3810
|
displayName: string | null;
|
|
2780
3811
|
attributes: Record<string, unknown>;
|
|
3812
|
+
key: string;
|
|
2781
3813
|
}[];
|
|
2782
3814
|
claims: {
|
|
2783
3815
|
subjectEntityKey: string;
|
|
3816
|
+
assertedByEntityKey: string | null;
|
|
2784
3817
|
predicate: string;
|
|
2785
3818
|
objectEntityKey: string | null;
|
|
2786
3819
|
validFrom?: unknown;
|
|
@@ -2793,17 +3826,17 @@ export declare const memoryExtractionResultSchema: z.ZodObject<{
|
|
|
2793
3826
|
}, "strict", z.ZodTypeAny, {
|
|
2794
3827
|
records: {
|
|
2795
3828
|
content: string;
|
|
3829
|
+
qualityContractVersion: 1;
|
|
3830
|
+
authorshipClass: "bot" | "application" | "connected_user" | "other_human" | "system" | "unknown";
|
|
3831
|
+
admissionBasis: "self_authored" | "provider_structured_state" | "attributed_third_party" | "tool_execution" | "user_confirmed";
|
|
3832
|
+
validFrom: string | null;
|
|
3833
|
+
validTo: string | null;
|
|
2796
3834
|
title: string;
|
|
2797
3835
|
memoryType: "preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
|
|
2798
3836
|
sensitivityClass: "standard" | "personal" | "restricted" | "secret";
|
|
2799
3837
|
restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
|
|
2800
3838
|
topicTags: string[];
|
|
2801
3839
|
language: string;
|
|
2802
|
-
validFrom: string | null;
|
|
2803
|
-
validTo: string | null;
|
|
2804
|
-
attributes: Record<string, unknown>;
|
|
2805
|
-
candidateId: string;
|
|
2806
|
-
recordKind: "fact" | "episode";
|
|
2807
3840
|
evidence: {
|
|
2808
3841
|
sourceObjectId: string;
|
|
2809
3842
|
segmentId: string;
|
|
@@ -2811,17 +3844,28 @@ export declare const memoryExtractionResultSchema: z.ZodObject<{
|
|
|
2811
3844
|
endOffset: number;
|
|
2812
3845
|
quotedText: string;
|
|
2813
3846
|
}[];
|
|
3847
|
+
attributes: Record<string, unknown>;
|
|
3848
|
+
salience: "low" | "medium" | "high";
|
|
3849
|
+
evidenceConfidence: "low" | "medium" | "high";
|
|
3850
|
+
subjectEntityKey: string | null;
|
|
3851
|
+
candidateId: string;
|
|
3852
|
+
recordKind: "fact" | "episode";
|
|
3853
|
+
actorEntityKey: string | null;
|
|
3854
|
+
durability: "durable" | "episodic" | "transient";
|
|
3855
|
+
destination: "durable_memory" | "episodic_memory" | "restricted_candidate" | "source_only" | "reject_noise";
|
|
3856
|
+
contextEligible: boolean;
|
|
2814
3857
|
entities: {
|
|
2815
3858
|
type: string;
|
|
2816
|
-
key: string;
|
|
2817
3859
|
canonicalKey: string;
|
|
2818
3860
|
displayName: string | null;
|
|
2819
3861
|
attributes: Record<string, unknown>;
|
|
3862
|
+
key: string;
|
|
2820
3863
|
}[];
|
|
2821
3864
|
claims: {
|
|
2822
3865
|
validFrom: string | null;
|
|
2823
3866
|
validTo: string | null;
|
|
2824
3867
|
subjectEntityKey: string;
|
|
3868
|
+
assertedByEntityKey: string | null;
|
|
2825
3869
|
predicate: string;
|
|
2826
3870
|
objectEntityKey: string | null;
|
|
2827
3871
|
literalValue?: unknown;
|
|
@@ -2830,15 +3874,15 @@ export declare const memoryExtractionResultSchema: z.ZodObject<{
|
|
|
2830
3874
|
}, {
|
|
2831
3875
|
records: {
|
|
2832
3876
|
content: string;
|
|
3877
|
+
qualityContractVersion: 1;
|
|
3878
|
+
authorshipClass: "bot" | "application" | "connected_user" | "other_human" | "system" | "unknown";
|
|
3879
|
+
admissionBasis: "self_authored" | "provider_structured_state" | "attributed_third_party" | "tool_execution" | "user_confirmed";
|
|
2833
3880
|
title: string;
|
|
2834
3881
|
memoryType: "preference" | "decision" | "commitment" | "goal" | "constraint" | "relationship" | "durable_fact";
|
|
2835
3882
|
sensitivityClass: "standard" | "personal" | "restricted" | "secret";
|
|
2836
3883
|
restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
|
|
2837
3884
|
topicTags: string[];
|
|
2838
3885
|
language: string;
|
|
2839
|
-
attributes: Record<string, unknown>;
|
|
2840
|
-
candidateId: string;
|
|
2841
|
-
recordKind: "fact" | "episode";
|
|
2842
3886
|
evidence: {
|
|
2843
3887
|
sourceObjectId: string;
|
|
2844
3888
|
segmentId: string;
|
|
@@ -2846,15 +3890,26 @@ export declare const memoryExtractionResultSchema: z.ZodObject<{
|
|
|
2846
3890
|
endOffset: number;
|
|
2847
3891
|
quotedText: string;
|
|
2848
3892
|
}[];
|
|
3893
|
+
attributes: Record<string, unknown>;
|
|
3894
|
+
salience: "low" | "medium" | "high";
|
|
3895
|
+
evidenceConfidence: "low" | "medium" | "high";
|
|
3896
|
+
subjectEntityKey: string | null;
|
|
3897
|
+
candidateId: string;
|
|
3898
|
+
recordKind: "fact" | "episode";
|
|
3899
|
+
actorEntityKey: string | null;
|
|
3900
|
+
durability: "durable" | "episodic" | "transient";
|
|
3901
|
+
destination: "durable_memory" | "episodic_memory" | "restricted_candidate" | "source_only" | "reject_noise";
|
|
3902
|
+
contextEligible: boolean;
|
|
2849
3903
|
entities: {
|
|
2850
3904
|
type: string;
|
|
2851
|
-
key: string;
|
|
2852
3905
|
canonicalKey: string;
|
|
2853
3906
|
displayName: string | null;
|
|
2854
3907
|
attributes: Record<string, unknown>;
|
|
3908
|
+
key: string;
|
|
2855
3909
|
}[];
|
|
2856
3910
|
claims: {
|
|
2857
3911
|
subjectEntityKey: string;
|
|
3912
|
+
assertedByEntityKey: string | null;
|
|
2858
3913
|
predicate: string;
|
|
2859
3914
|
objectEntityKey: string | null;
|
|
2860
3915
|
validFrom?: unknown;
|
|
@@ -2866,83 +3921,107 @@ export declare const memoryExtractionResultSchema: z.ZodObject<{
|
|
|
2866
3921
|
}[];
|
|
2867
3922
|
}>;
|
|
2868
3923
|
export declare const memorySafetyDecisionSchema: z.ZodEffects<z.ZodObject<{
|
|
3924
|
+
authorshipStatus: z.ZodOptional<z.ZodEnum<["verified_sender_text", "quoted_or_forwarded", "uncertain"]>>;
|
|
2869
3925
|
candidateId: z.ZodString;
|
|
2870
3926
|
status: z.ZodEnum<["classified", "uncertain"]>;
|
|
3927
|
+
retentionStatus: z.ZodEnum<["memory", "source_only", "reject_noise", "uncertain"]>;
|
|
2871
3928
|
sensitivityClass: z.ZodEnum<["standard", "personal", "restricted", "secret"]>;
|
|
2872
3929
|
restrictedDataClasses: z.ZodArray<z.ZodEnum<["health", "biometric", "government_identity", "precise_location", "protected_trait", "minor", "detailed_personal_financial"]>, "many">;
|
|
2873
3930
|
reason: z.ZodString;
|
|
2874
3931
|
}, "strict", z.ZodTypeAny, {
|
|
2875
|
-
status: "
|
|
3932
|
+
status: "uncertain" | "classified";
|
|
2876
3933
|
reason: string;
|
|
2877
3934
|
sensitivityClass: "standard" | "personal" | "restricted" | "secret";
|
|
2878
3935
|
restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
|
|
2879
3936
|
candidateId: string;
|
|
3937
|
+
retentionStatus: "source_only" | "reject_noise" | "memory" | "uncertain";
|
|
3938
|
+
authorshipStatus?: "uncertain" | "verified_sender_text" | "quoted_or_forwarded" | undefined;
|
|
2880
3939
|
}, {
|
|
2881
|
-
status: "
|
|
3940
|
+
status: "uncertain" | "classified";
|
|
2882
3941
|
reason: string;
|
|
2883
3942
|
sensitivityClass: "standard" | "personal" | "restricted" | "secret";
|
|
2884
3943
|
restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
|
|
2885
3944
|
candidateId: string;
|
|
3945
|
+
retentionStatus: "source_only" | "reject_noise" | "memory" | "uncertain";
|
|
3946
|
+
authorshipStatus?: "uncertain" | "verified_sender_text" | "quoted_or_forwarded" | undefined;
|
|
2886
3947
|
}>, {
|
|
2887
|
-
status: "
|
|
3948
|
+
status: "uncertain" | "classified";
|
|
2888
3949
|
reason: string;
|
|
2889
3950
|
sensitivityClass: "standard" | "personal" | "restricted" | "secret";
|
|
2890
3951
|
restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
|
|
2891
3952
|
candidateId: string;
|
|
3953
|
+
retentionStatus: "source_only" | "reject_noise" | "memory" | "uncertain";
|
|
3954
|
+
authorshipStatus?: "uncertain" | "verified_sender_text" | "quoted_or_forwarded" | undefined;
|
|
2892
3955
|
}, {
|
|
2893
|
-
status: "
|
|
3956
|
+
status: "uncertain" | "classified";
|
|
2894
3957
|
reason: string;
|
|
2895
3958
|
sensitivityClass: "standard" | "personal" | "restricted" | "secret";
|
|
2896
3959
|
restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
|
|
2897
3960
|
candidateId: string;
|
|
3961
|
+
retentionStatus: "source_only" | "reject_noise" | "memory" | "uncertain";
|
|
3962
|
+
authorshipStatus?: "uncertain" | "verified_sender_text" | "quoted_or_forwarded" | undefined;
|
|
2898
3963
|
}>;
|
|
2899
3964
|
export declare const memorySafetyResultSchema: z.ZodObject<{
|
|
2900
3965
|
decisions: z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
3966
|
+
authorshipStatus: z.ZodOptional<z.ZodEnum<["verified_sender_text", "quoted_or_forwarded", "uncertain"]>>;
|
|
2901
3967
|
candidateId: z.ZodString;
|
|
2902
3968
|
status: z.ZodEnum<["classified", "uncertain"]>;
|
|
3969
|
+
retentionStatus: z.ZodEnum<["memory", "source_only", "reject_noise", "uncertain"]>;
|
|
2903
3970
|
sensitivityClass: z.ZodEnum<["standard", "personal", "restricted", "secret"]>;
|
|
2904
3971
|
restrictedDataClasses: z.ZodArray<z.ZodEnum<["health", "biometric", "government_identity", "precise_location", "protected_trait", "minor", "detailed_personal_financial"]>, "many">;
|
|
2905
3972
|
reason: z.ZodString;
|
|
2906
3973
|
}, "strict", z.ZodTypeAny, {
|
|
2907
|
-
status: "
|
|
3974
|
+
status: "uncertain" | "classified";
|
|
2908
3975
|
reason: string;
|
|
2909
3976
|
sensitivityClass: "standard" | "personal" | "restricted" | "secret";
|
|
2910
3977
|
restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
|
|
2911
3978
|
candidateId: string;
|
|
3979
|
+
retentionStatus: "source_only" | "reject_noise" | "memory" | "uncertain";
|
|
3980
|
+
authorshipStatus?: "uncertain" | "verified_sender_text" | "quoted_or_forwarded" | undefined;
|
|
2912
3981
|
}, {
|
|
2913
|
-
status: "
|
|
3982
|
+
status: "uncertain" | "classified";
|
|
2914
3983
|
reason: string;
|
|
2915
3984
|
sensitivityClass: "standard" | "personal" | "restricted" | "secret";
|
|
2916
3985
|
restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
|
|
2917
3986
|
candidateId: string;
|
|
3987
|
+
retentionStatus: "source_only" | "reject_noise" | "memory" | "uncertain";
|
|
3988
|
+
authorshipStatus?: "uncertain" | "verified_sender_text" | "quoted_or_forwarded" | undefined;
|
|
2918
3989
|
}>, {
|
|
2919
|
-
status: "
|
|
3990
|
+
status: "uncertain" | "classified";
|
|
2920
3991
|
reason: string;
|
|
2921
3992
|
sensitivityClass: "standard" | "personal" | "restricted" | "secret";
|
|
2922
3993
|
restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
|
|
2923
3994
|
candidateId: string;
|
|
3995
|
+
retentionStatus: "source_only" | "reject_noise" | "memory" | "uncertain";
|
|
3996
|
+
authorshipStatus?: "uncertain" | "verified_sender_text" | "quoted_or_forwarded" | undefined;
|
|
2924
3997
|
}, {
|
|
2925
|
-
status: "
|
|
3998
|
+
status: "uncertain" | "classified";
|
|
2926
3999
|
reason: string;
|
|
2927
4000
|
sensitivityClass: "standard" | "personal" | "restricted" | "secret";
|
|
2928
4001
|
restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
|
|
2929
4002
|
candidateId: string;
|
|
4003
|
+
retentionStatus: "source_only" | "reject_noise" | "memory" | "uncertain";
|
|
4004
|
+
authorshipStatus?: "uncertain" | "verified_sender_text" | "quoted_or_forwarded" | undefined;
|
|
2930
4005
|
}>, "many">;
|
|
2931
4006
|
}, "strict", z.ZodTypeAny, {
|
|
2932
4007
|
decisions: {
|
|
2933
|
-
status: "
|
|
4008
|
+
status: "uncertain" | "classified";
|
|
2934
4009
|
reason: string;
|
|
2935
4010
|
sensitivityClass: "standard" | "personal" | "restricted" | "secret";
|
|
2936
4011
|
restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
|
|
2937
4012
|
candidateId: string;
|
|
4013
|
+
retentionStatus: "source_only" | "reject_noise" | "memory" | "uncertain";
|
|
4014
|
+
authorshipStatus?: "uncertain" | "verified_sender_text" | "quoted_or_forwarded" | undefined;
|
|
2938
4015
|
}[];
|
|
2939
4016
|
}, {
|
|
2940
4017
|
decisions: {
|
|
2941
|
-
status: "
|
|
4018
|
+
status: "uncertain" | "classified";
|
|
2942
4019
|
reason: string;
|
|
2943
4020
|
sensitivityClass: "standard" | "personal" | "restricted" | "secret";
|
|
2944
4021
|
restrictedDataClasses: ("health" | "biometric" | "government_identity" | "precise_location" | "protected_trait" | "minor" | "detailed_personal_financial")[];
|
|
2945
4022
|
candidateId: string;
|
|
4023
|
+
retentionStatus: "source_only" | "reject_noise" | "memory" | "uncertain";
|
|
4024
|
+
authorshipStatus?: "uncertain" | "verified_sender_text" | "quoted_or_forwarded" | undefined;
|
|
2946
4025
|
}[];
|
|
2947
4026
|
}>;
|
|
2948
4027
|
export declare const memoryConsolidationResultSchema: z.ZodObject<{
|
|
@@ -3084,10 +4163,12 @@ export declare const memoryExtractionJsonSchema: {
|
|
|
3084
4163
|
readonly items: {
|
|
3085
4164
|
readonly type: "object";
|
|
3086
4165
|
readonly additionalProperties: false;
|
|
3087
|
-
readonly required: readonly ["candidateId", "recordKind", "memoryType", "title", "content", "language", "sensitivityClass", "restrictedDataClasses", "topicTags", "validFrom", "validTo", "evidence", "entities", "claims", "attributes"];
|
|
4166
|
+
readonly required: readonly ["candidateId", "recordKind", "memoryType", "title", "content", "language", "sensitivityClass", "restrictedDataClasses", "topicTags", "validFrom", "validTo", "actorEntityKey", "subjectEntityKey", "authorshipClass", "admissionBasis", "durability", "salience", "evidenceConfidence", "destination", "contextEligible", "qualityContractVersion", "evidence", "entities", "claims", "attributes"];
|
|
3088
4167
|
readonly properties: {
|
|
3089
4168
|
readonly candidateId: {
|
|
3090
4169
|
readonly type: "string";
|
|
4170
|
+
readonly minLength: 1;
|
|
4171
|
+
readonly maxLength: 120;
|
|
3091
4172
|
};
|
|
3092
4173
|
readonly recordKind: {
|
|
3093
4174
|
readonly type: "string";
|
|
@@ -3099,12 +4180,18 @@ export declare const memoryExtractionJsonSchema: {
|
|
|
3099
4180
|
};
|
|
3100
4181
|
readonly title: {
|
|
3101
4182
|
readonly type: "string";
|
|
4183
|
+
readonly minLength: 1;
|
|
4184
|
+
readonly maxLength: 260;
|
|
3102
4185
|
};
|
|
3103
4186
|
readonly content: {
|
|
3104
4187
|
readonly type: "string";
|
|
4188
|
+
readonly minLength: 1;
|
|
4189
|
+
readonly maxLength: 200000;
|
|
3105
4190
|
};
|
|
3106
4191
|
readonly language: {
|
|
3107
4192
|
readonly type: "string";
|
|
4193
|
+
readonly minLength: 1;
|
|
4194
|
+
readonly maxLength: 80;
|
|
3108
4195
|
};
|
|
3109
4196
|
readonly sensitivityClass: {
|
|
3110
4197
|
readonly type: "string";
|
|
@@ -3125,6 +4212,49 @@ export declare const memoryExtractionJsonSchema: {
|
|
|
3125
4212
|
readonly type: "string";
|
|
3126
4213
|
};
|
|
3127
4214
|
};
|
|
4215
|
+
readonly actorEntityKey: {
|
|
4216
|
+
readonly type: readonly ["string", "null"];
|
|
4217
|
+
readonly minLength: 1;
|
|
4218
|
+
readonly maxLength: 320;
|
|
4219
|
+
readonly description: "When non-null, must exactly match an entities[].key in this same record.";
|
|
4220
|
+
};
|
|
4221
|
+
readonly subjectEntityKey: {
|
|
4222
|
+
readonly type: readonly ["string", "null"];
|
|
4223
|
+
readonly minLength: 1;
|
|
4224
|
+
readonly maxLength: 320;
|
|
4225
|
+
readonly description: "When non-null, must exactly match an entities[].key in this same record.";
|
|
4226
|
+
};
|
|
4227
|
+
readonly authorshipClass: {
|
|
4228
|
+
readonly type: "string";
|
|
4229
|
+
readonly enum: readonly ["connected_user", "other_human", "bot", "application", "system", "unknown"];
|
|
4230
|
+
};
|
|
4231
|
+
readonly admissionBasis: {
|
|
4232
|
+
readonly type: "string";
|
|
4233
|
+
readonly enum: readonly ["self_authored", "provider_structured_state", "attributed_third_party", "tool_execution", "user_confirmed"];
|
|
4234
|
+
};
|
|
4235
|
+
readonly durability: {
|
|
4236
|
+
readonly type: "string";
|
|
4237
|
+
readonly enum: readonly ["durable", "episodic", "transient"];
|
|
4238
|
+
};
|
|
4239
|
+
readonly salience: {
|
|
4240
|
+
readonly type: "string";
|
|
4241
|
+
readonly enum: readonly ["low", "medium", "high"];
|
|
4242
|
+
};
|
|
4243
|
+
readonly evidenceConfidence: {
|
|
4244
|
+
readonly type: "string";
|
|
4245
|
+
readonly enum: readonly ["low", "medium", "high"];
|
|
4246
|
+
};
|
|
4247
|
+
readonly destination: {
|
|
4248
|
+
readonly type: "string";
|
|
4249
|
+
readonly enum: readonly ["durable_memory", "episodic_memory", "restricted_candidate", "source_only", "reject_noise"];
|
|
4250
|
+
};
|
|
4251
|
+
readonly contextEligible: {
|
|
4252
|
+
readonly type: "boolean";
|
|
4253
|
+
};
|
|
4254
|
+
readonly qualityContractVersion: {
|
|
4255
|
+
readonly type: "integer";
|
|
4256
|
+
readonly const: 1;
|
|
4257
|
+
};
|
|
3128
4258
|
readonly validFrom: {
|
|
3129
4259
|
readonly type: readonly ["string", "null"];
|
|
3130
4260
|
readonly format: "date-time";
|
|
@@ -3144,9 +4274,13 @@ export declare const memoryExtractionJsonSchema: {
|
|
|
3144
4274
|
readonly properties: {
|
|
3145
4275
|
readonly sourceObjectId: {
|
|
3146
4276
|
readonly type: "string";
|
|
4277
|
+
readonly minLength: 1;
|
|
4278
|
+
readonly maxLength: 320;
|
|
3147
4279
|
};
|
|
3148
4280
|
readonly segmentId: {
|
|
3149
4281
|
readonly type: "string";
|
|
4282
|
+
readonly minLength: 1;
|
|
4283
|
+
readonly maxLength: 80;
|
|
3150
4284
|
};
|
|
3151
4285
|
readonly startOffset: {
|
|
3152
4286
|
readonly type: "integer";
|
|
@@ -3158,12 +4292,15 @@ export declare const memoryExtractionJsonSchema: {
|
|
|
3158
4292
|
};
|
|
3159
4293
|
readonly quotedText: {
|
|
3160
4294
|
readonly type: "string";
|
|
4295
|
+
readonly minLength: 1;
|
|
4296
|
+
readonly maxLength: 20000;
|
|
3161
4297
|
};
|
|
3162
4298
|
};
|
|
3163
4299
|
};
|
|
3164
4300
|
};
|
|
3165
4301
|
readonly entities: {
|
|
3166
4302
|
readonly type: "array";
|
|
4303
|
+
readonly maxItems: 50;
|
|
3167
4304
|
readonly description: "Entities used by this record. Every entity key referenced by this record claims must be declared in this same array.";
|
|
3168
4305
|
readonly items: {
|
|
3169
4306
|
readonly type: "object";
|
|
@@ -3172,41 +4309,64 @@ export declare const memoryExtractionJsonSchema: {
|
|
|
3172
4309
|
readonly properties: {
|
|
3173
4310
|
readonly key: {
|
|
3174
4311
|
readonly type: "string";
|
|
4312
|
+
readonly minLength: 1;
|
|
4313
|
+
readonly maxLength: 320;
|
|
3175
4314
|
readonly description: "A key unique within this record and used by this record claims.";
|
|
3176
4315
|
};
|
|
3177
4316
|
readonly type: {
|
|
3178
4317
|
readonly type: "string";
|
|
4318
|
+
readonly minLength: 1;
|
|
4319
|
+
readonly maxLength: 80;
|
|
3179
4320
|
};
|
|
3180
4321
|
readonly canonicalKey: {
|
|
3181
4322
|
readonly type: "string";
|
|
4323
|
+
readonly minLength: 1;
|
|
4324
|
+
readonly maxLength: 320;
|
|
3182
4325
|
};
|
|
3183
4326
|
readonly displayName: {
|
|
3184
4327
|
readonly type: readonly ["string", "null"];
|
|
4328
|
+
readonly minLength: 1;
|
|
4329
|
+
readonly maxLength: 320;
|
|
3185
4330
|
};
|
|
3186
4331
|
readonly attributes: {
|
|
3187
4332
|
readonly type: "object";
|
|
3188
|
-
readonly
|
|
4333
|
+
readonly properties: {};
|
|
4334
|
+
readonly additionalProperties: false;
|
|
4335
|
+
readonly description: "Use the declared entity fields; source metadata is attached by the runtime.";
|
|
3189
4336
|
};
|
|
3190
4337
|
};
|
|
3191
4338
|
};
|
|
3192
4339
|
};
|
|
3193
4340
|
readonly claims: {
|
|
3194
4341
|
readonly type: "array";
|
|
4342
|
+
readonly maxItems: 100;
|
|
3195
4343
|
readonly description: "Claims for this record. Entity references may only use keys declared in this same record entities array.";
|
|
3196
4344
|
readonly items: {
|
|
3197
4345
|
readonly type: "object";
|
|
3198
4346
|
readonly additionalProperties: false;
|
|
3199
|
-
readonly required: readonly ["subjectEntityKey", "predicate", "objectEntityKey", "literalValue", "validFrom", "validTo"];
|
|
4347
|
+
readonly required: readonly ["subjectEntityKey", "assertedByEntityKey", "predicate", "objectEntityKey", "literalValue", "validFrom", "validTo"];
|
|
3200
4348
|
readonly properties: {
|
|
3201
4349
|
readonly subjectEntityKey: {
|
|
3202
4350
|
readonly type: "string";
|
|
4351
|
+
readonly minLength: 1;
|
|
4352
|
+
readonly maxLength: 320;
|
|
3203
4353
|
readonly description: "Must exactly match an entities[].key in this same record.";
|
|
3204
4354
|
};
|
|
4355
|
+
readonly assertedByEntityKey: {
|
|
4356
|
+
readonly type: readonly ["string", "null"];
|
|
4357
|
+
readonly minLength: 1;
|
|
4358
|
+
readonly maxLength: 320;
|
|
4359
|
+
readonly description: "When non-null, must exactly match an entities[].key in this same record.";
|
|
4360
|
+
};
|
|
3205
4361
|
readonly predicate: {
|
|
3206
4362
|
readonly type: "string";
|
|
4363
|
+
readonly minLength: 1;
|
|
4364
|
+
readonly maxLength: 120;
|
|
3207
4365
|
};
|
|
3208
4366
|
readonly objectEntityKey: {
|
|
3209
4367
|
readonly type: readonly ["string", "null"];
|
|
4368
|
+
readonly minLength: 1;
|
|
4369
|
+
readonly maxLength: 320;
|
|
3210
4370
|
readonly description: "When non-null, must exactly match an entities[].key in this same record.";
|
|
3211
4371
|
};
|
|
3212
4372
|
readonly literalValue: {
|
|
@@ -3216,10 +4376,6 @@ export declare const memoryExtractionJsonSchema: {
|
|
|
3216
4376
|
readonly type: "number";
|
|
3217
4377
|
}, {
|
|
3218
4378
|
readonly type: "boolean";
|
|
3219
|
-
}, {
|
|
3220
|
-
readonly type: "object";
|
|
3221
|
-
}, {
|
|
3222
|
-
readonly type: "array";
|
|
3223
4379
|
}, {
|
|
3224
4380
|
readonly type: "null";
|
|
3225
4381
|
}];
|
|
@@ -3237,7 +4393,9 @@ export declare const memoryExtractionJsonSchema: {
|
|
|
3237
4393
|
};
|
|
3238
4394
|
readonly attributes: {
|
|
3239
4395
|
readonly type: "object";
|
|
3240
|
-
readonly
|
|
4396
|
+
readonly properties: {};
|
|
4397
|
+
readonly additionalProperties: false;
|
|
4398
|
+
readonly description: "Use the declared memory fields; source metadata is attached by the runtime.";
|
|
3241
4399
|
};
|
|
3242
4400
|
};
|
|
3243
4401
|
};
|
|
@@ -3255,7 +4413,7 @@ export declare const memorySafetyJsonSchema: {
|
|
|
3255
4413
|
readonly items: {
|
|
3256
4414
|
readonly type: "object";
|
|
3257
4415
|
readonly additionalProperties: false;
|
|
3258
|
-
readonly required: readonly ["candidateId", "status", "sensitivityClass", "restrictedDataClasses", "reason"];
|
|
4416
|
+
readonly required: readonly ["candidateId", "status", "retentionStatus", "sensitivityClass", "restrictedDataClasses", "reason"];
|
|
3259
4417
|
readonly properties: {
|
|
3260
4418
|
readonly candidateId: {
|
|
3261
4419
|
readonly type: "string";
|
|
@@ -3264,6 +4422,10 @@ export declare const memorySafetyJsonSchema: {
|
|
|
3264
4422
|
readonly type: "string";
|
|
3265
4423
|
readonly enum: readonly ["classified", "uncertain"];
|
|
3266
4424
|
};
|
|
4425
|
+
readonly retentionStatus: {
|
|
4426
|
+
readonly type: "string";
|
|
4427
|
+
readonly enum: readonly ["memory", "source_only", "reject_noise", "uncertain"];
|
|
4428
|
+
};
|
|
3267
4429
|
readonly sensitivityClass: {
|
|
3268
4430
|
readonly type: "string";
|
|
3269
4431
|
readonly enum: readonly ["standard", "personal", "restricted", "secret"];
|